From 189d11d796fa8f8693a5fac07716cd5daba6aef4 Mon Sep 17 00:00:00 2001 From: Cameron DeCoster Date: Thu, 2 Jul 2026 15:41:30 -0600 Subject: [PATCH 1/2] Updates for release v3.7.0 --- CHANGELOG.md | 14 ++++++++++++++ CITATION.cff | 4 ++-- README.md | 6 +++--- draftlogs/7773_fix.md | 1 - draftlogs/7802_change.md | 2 -- draftlogs/7836_fix.md | 1 - draftlogs/7837_fix.md | 1 - draftlogs/7838_fix.md | 1 - draftlogs/7882_fix.md | 1 - 9 files changed, 19 insertions(+), 12 deletions(-) delete mode 100644 draftlogs/7773_fix.md delete mode 100644 draftlogs/7802_change.md delete mode 100644 draftlogs/7836_fix.md delete mode 100644 draftlogs/7837_fix.md delete mode 100644 draftlogs/7838_fix.md delete mode 100644 draftlogs/7882_fix.md diff --git a/CHANGELOG.md b/CHANGELOG.md index dc2299687ad..f23afd563cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,20 @@ To see all merged commits on the master branch that will be part of the next plo where X.Y.Z is the semver of most recent plotly.js release. +## [3.7.0] -- 2026-07-03 + +### Changed +- Update `sendDataToCloud` modebar button to upload chart to Plotly Cloud [[#7802](https://github.com/plotly/plotly.js/pull/7802), [#7852](https://github.com/plotly/plotly.js/pull/7852), [#7854](https://github.com/plotly/plotly.js/pull/7854)] + - NOTE: The Plotly Cloud endpoint for receiving charts is not yet functional, so this button won't complete the upload. + +### Fixed +- Fix stale `scattergl` error bars after toggling traces with mixed error bar visibility [[#7773](https://github.com/plotly/plotly.js/issues/7773)], with thanks to @JulienIcon for the contribution! +- Fix "unrecognized GUI edit: selections[0]..." warnings emitted after making a box or lasso selection and then calling `Plotly.react()` [[#7836](https://github.com/plotly/plotly.js/issues/7836)] +- Fix geo `fitbounds` to choose a compact longitude range when point data straddles the antimeridian [[#7837](https://github.com/plotly/plotly.js/pull/7837)], with thanks to @SharadhNaidu for the contribution! +- Preserve XML structural entities during decode when exporting SVG [[#7838](https://github.com/plotly/plotly.js/pull/7838)] +- Fix `Plotly.Fx.hover` crash on `scattermap` traces when called programmatically with a `pointNumber` selection [[#7882](https://github.com/plotly/plotly.js/pull/7882)] + + ## [3.6.0] -- 2026-06-01 ### Added diff --git a/CITATION.cff b/CITATION.cff index b75d6c50aa5..1184f92ea78 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -9,7 +9,7 @@ authors: - family-names: "Samimi" given-names: "Mojtaba" title: "Open source Plotly charting library" -version: 3.6.0 +version: 3.7.0 doi: 10.5281/zenodo.13964707 -date-released: 2026-06-01 +date-released: 2026-07-03 url: "https://github.com/plotly/plotly.js" diff --git a/README.md b/README.md index 1778b7b1b57..68a51412ccf 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo ```html - +
@@ -79,7 +79,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo Alternatively, you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag. ```html ``` @@ -89,7 +89,7 @@ Fastly supports Plotly.js with free CDN service. Read more at + ``` > Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version. diff --git a/draftlogs/7773_fix.md b/draftlogs/7773_fix.md deleted file mode 100644 index 40ed76178e8..00000000000 --- a/draftlogs/7773_fix.md +++ /dev/null @@ -1 +0,0 @@ - - Fix stale `scattergl` error bars after toggling traces with mixed error bar visibility [[#7773](https://github.com/plotly/plotly.js/issues/7773)], with thanks to @JulienIcon for the contribution! diff --git a/draftlogs/7802_change.md b/draftlogs/7802_change.md deleted file mode 100644 index e1e372d23eb..00000000000 --- a/draftlogs/7802_change.md +++ /dev/null @@ -1,2 +0,0 @@ -- Update `sendDataToCloud` modebar button to upload chart to Plotly Cloud [[#7802](https://github.com/plotly/plotly.js/pull/7802), [#7852](https://github.com/plotly/plotly.js/pull/7852), [#7854](https://github.com/plotly/plotly.js/pull/7854)] - - NOTE: The Plotly Cloud endpoint for receiving charts is not yet functional, so this button won't complete the upload. diff --git a/draftlogs/7836_fix.md b/draftlogs/7836_fix.md deleted file mode 100644 index 42cc1bad486..00000000000 --- a/draftlogs/7836_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix "unrecognized GUI edit: selections[0]..." warnings emitted after making a box or lasso selection and then calling `Plotly.react()` [[#7836](https://github.com/plotly/plotly.js/issues/7836)] diff --git a/draftlogs/7837_fix.md b/draftlogs/7837_fix.md deleted file mode 100644 index 94a7fd4486a..00000000000 --- a/draftlogs/7837_fix.md +++ /dev/null @@ -1 +0,0 @@ - - Fix geo `fitbounds` to choose a compact longitude range when point data straddles the antimeridian [[#7837](https://github.com/plotly/plotly.js/pull/7837)], with thanks to @SharadhNaidu for the contribution! diff --git a/draftlogs/7838_fix.md b/draftlogs/7838_fix.md deleted file mode 100644 index 3cf8a366ba0..00000000000 --- a/draftlogs/7838_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Preserve XML structural entities during decode when exporting SVG [[#7838](https://github.com/plotly/plotly.js/pull/7838)] diff --git a/draftlogs/7882_fix.md b/draftlogs/7882_fix.md deleted file mode 100644 index 7993e353437..00000000000 --- a/draftlogs/7882_fix.md +++ /dev/null @@ -1 +0,0 @@ - - Fix `Plotly.Fx.hover` crash on `scattermap` traces when called programmatically with a `pointNumber` selection [[#7882](https://github.com/plotly/plotly.js/pull/7882)] From ee0b3b93d326f147b0b854edebea2e302da851fe Mon Sep 17 00:00:00 2001 From: Cameron DeCoster Date: Thu, 2 Jul 2026 15:42:03 -0600 Subject: [PATCH 2/2] 3.7.0 --- dist/README.md | 52 +- dist/plot-schema.json | 8 +- dist/plotly-basic.js | 204 +- dist/plotly-basic.min.js | 16 +- dist/plotly-cartesian.js | 268 +- dist/plotly-cartesian.min.js | 68 +- dist/plotly-finance.js | 225 +- dist/plotly-finance.min.js | 16 +- dist/plotly-geo-assets.js | 10 +- dist/plotly-geo.js | 304 +- dist/plotly-geo.min.js | 16 +- dist/plotly-gl2d.js | 297 +- dist/plotly-gl2d.min.js | 98 +- dist/plotly-gl3d.js | 1448 +- dist/plotly-gl3d.min.js | 48 +- dist/plotly-mapbox.js | 756 +- dist/plotly-mapbox.min.js | 72 +- dist/plotly-strict.js | 45615 +++++++++++++++++---------------- dist/plotly-strict.min.js | 198 +- dist/plotly-with-meta.js | 3692 +-- dist/plotly.js | 3671 +-- dist/plotly.min.js | 180 +- dist/translation-keys.txt | 79 +- package-lock.json | 4 +- package.json | 2 +- src/version.js | 2 +- 26 files changed, 29228 insertions(+), 28121 deletions(-) diff --git a/dist/README.md b/dist/README.md index 08580cd3d92..b484326ff38 100644 --- a/dist/README.md +++ b/dist/README.md @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at: | 10.7 MB | 4.6 MB | 1.4 MB | 11 MB | #### CDN links -> https://cdn.plot.ly/plotly-3.6.0.js +> https://cdn.plot.ly/plotly-3.7.0.js -> https://cdn.plot.ly/plotly-3.6.0.min.js +> https://cdn.plot.ly/plotly-3.7.0.min.js #### npm packages @@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`. | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 2.7 MB | 1.1 MB | 365.3 kB | +| 2.7 MB | 1.1 MB | 366.4 kB | #### CDN links -> https://cdn.plot.ly/plotly-basic-3.6.0.js +> https://cdn.plot.ly/plotly-basic-3.7.0.js -> https://cdn.plot.ly/plotly-basic-3.6.0.min.js +> https://cdn.plot.ly/plotly-basic-3.7.0.min.js #### npm packages @@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, ` | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 3.4 MB | 1.4 MB | 463.5 kB | +| 3.4 MB | 1.4 MB | 464.8 kB | #### CDN links -> https://cdn.plot.ly/plotly-cartesian-3.6.0.js +> https://cdn.plot.ly/plotly-cartesian-3.7.0.js -> https://cdn.plot.ly/plotly-cartesian-3.6.0.min.js +> https://cdn.plot.ly/plotly-cartesian-3.7.0.min.js #### npm packages @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 3 MB | 1.2 MB | 415.7 kB | +| 3 MB | 1.2 MB | 417.4 kB | #### CDN links -> https://cdn.plot.ly/plotly-geo-3.6.0.js +> https://cdn.plot.ly/plotly-geo-3.7.0.js -> https://cdn.plot.ly/plotly-geo-3.6.0.min.js +> https://cdn.plot.ly/plotly-geo-3.7.0.min.js #### npm packages @@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`, | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 4.2 MB | 1.6 MB | 527.9 kB | +| 4.2 MB | 1.6 MB | 529.2 kB | #### CDN links -> https://cdn.plot.ly/plotly-gl3d-3.6.0.js +> https://cdn.plot.ly/plotly-gl3d-3.7.0.js -> https://cdn.plot.ly/plotly-gl3d-3.6.0.min.js +> https://cdn.plot.ly/plotly-gl3d-3.7.0.min.js #### npm packages @@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 3.8 MB | 1.5 MB | 521.8 kB | +| 3.8 MB | 1.5 MB | 523.1 kB | #### CDN links -> https://cdn.plot.ly/plotly-gl2d-3.6.0.js +> https://cdn.plot.ly/plotly-gl2d-3.7.0.js -> https://cdn.plot.ly/plotly-gl2d-3.6.0.min.js +> https://cdn.plot.ly/plotly-gl2d-3.7.0.min.js #### npm packages @@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 4.5 MB | 1.9 MB | 580.7 kB | +| 4.5 MB | 1.9 MB | 582.2 kB | #### CDN links -> https://cdn.plot.ly/plotly-mapbox-3.6.0.js +> https://cdn.plot.ly/plotly-mapbox-3.7.0.js -> https://cdn.plot.ly/plotly-mapbox-3.6.0.min.js +> https://cdn.plot.ly/plotly-mapbox-3.7.0.min.js #### npm packages @@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 2.9 MB | 1.2 MB | 398.9 kB | +| 2.9 MB | 1.2 MB | 400 kB | #### CDN links -> https://cdn.plot.ly/plotly-finance-3.6.0.js +> https://cdn.plot.ly/plotly-finance-3.7.0.js -> https://cdn.plot.ly/plotly-finance-3.6.0.min.js +> https://cdn.plot.ly/plotly-finance-3.7.0.min.js #### npm packages @@ -252,12 +252,12 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 11.5 MB | 4.9 MB | 1.5 MB | +| 11.5 MB | 5 MB | 1.5 MB | #### CDN links -> https://cdn.plot.ly/plotly-strict-3.6.0.js +> https://cdn.plot.ly/plotly-strict-3.7.0.js -> https://cdn.plot.ly/plotly-strict-3.6.0.min.js +> https://cdn.plot.ly/plotly-strict-3.7.0.min.js #### npm packages diff --git a/dist/plot-schema.json b/dist/plot-schema.json index 318c0578d92..78614b86693 100644 --- a/dist/plot-schema.json +++ b/dist/plot-schema.json @@ -279,7 +279,7 @@ "valType": "number" }, "plotlyServerURL": { - "description": "When set it determines base URL for the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button and the showLink/sendData on-graph link. To enable sending your data to Chart Studio Cloud, you need to set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and also set `showSendToCloud` to true.", + "description": "Sets the URL for the `sendChartToCloud` modebar button. When clicked, the button will send the chart data to this URL.", "dflt": "", "valType": "string" }, @@ -331,7 +331,7 @@ "valType": "boolean" }, "showEditInChartStudio": { - "description": "Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk. Note that if both `showSendToCloud` and `showEditInChartStudio` are turned, only `showEditInChartStudio` will be honored.", + "description": "Deprecated. Use `showSendToCloud` instead.", "dflt": false, "valType": "boolean" }, @@ -341,7 +341,7 @@ "valType": "boolean" }, "showSendToCloud": { - "description": "Should we include a ModeBar button, labeled \"Edit in Chart Studio\", that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0 this button was included by default, now it is opt-in using this flag. Note that this button can (depending on `plotlyServerURL` being set) send your data to an external server. However that server does not persist your data until you arrive at the Chart Studio and explicitly click \"Save\".", + "description": "Should we include a modebar button that sends this chart to a URL specified by `plotlyServerURL`, for sharing the chart with others? Note that this button will (after a confirmation step) send chart data to an external server.", "dflt": false, "valType": "boolean" }, @@ -4639,7 +4639,7 @@ }, "remove": { "arrayOk": true, - "description": "Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMap*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMap*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMap*, *zoomOutMapbox*, *zoomin*, *zoomout*.", + "description": "Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMap*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendChartToCloud*, *sendcharttocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMap*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMap*, *zoomOutMapbox*, *zoomin*, *zoomout*.", "dflt": "", "editType": "modebar", "valType": "string" diff --git a/dist/plotly-basic.js b/dist/plotly-basic.js index 1a2f14555d3..4d9926dd467 100644 --- a/dist/plotly-basic.js +++ b/dist/plotly-basic.js @@ -1,5 +1,5 @@ /** -* plotly.js (basic) v3.6.0 +* plotly.js (basic) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -35,14 +35,18 @@ var Plotly = (() => { }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; // src/version.js var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -78,7 +82,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -105,7 +109,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8131,7 +8135,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8371,7 +8375,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8488,7 +8492,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8533,7 +8537,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9936,7 +9940,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9955,7 +9959,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color) { return !!matchers.CSS_UNIT.exec(color); } @@ -13778,9 +13782,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -16033,6 +16037,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -17745,6 +17760,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -17873,24 +17889,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -32790,7 +32813,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -34592,6 +34625,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -36807,6 +36846,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -36816,6 +36889,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -36846,26 +36920,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.disk, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.pencil, - click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -38004,8 +38082,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -46033,6 +46117,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -47044,19 +47129,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); diff --git a/dist/plotly-basic.min.js b/dist/plotly-basic.min.js index e1ceae74b0f..6a2ee64ab7c 100644 --- a/dist/plotly-basic.min.js +++ b/dist/plotly-basic.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (basic - minified) v3.6.0 +* plotly.js (basic - minified) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var vI=Object.defineProperty,hI=Object.defineProperties;var dI=Object.getOwnPropertyDescriptors;var mb=Object.getOwnPropertySymbols;var pI=Object.prototype.hasOwnProperty,mI=Object.prototype.propertyIsEnumerable;var yb=(e,r,t)=>r in e?vI(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,io=(e,r)=>{for(var t in r||(r={}))pI.call(r,t)&&yb(e,t,r[t]);if(mb)for(var t of mb(r))mI.call(r,t)&&yb(e,t,r[t]);return e},yv=(e,r)=>hI(e,dI(r));var K=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var gv=K(gb=>{"use strict";gb.version="3.6.0"});var xb=K((bb,bv)=>{(function(r,t,a){t[r]=t[r]||a(),typeof bv!="undefined"&&bv.exports&&(bv.exports=t[r])})("Promise",typeof window!="undefined"?window:bb,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,w,b,M){return Object.defineProperty(T,w,{value:b,writable:!0,configurable:M!==!1})}}catch(_){r=function(w,b,M){return w[b]=M,w}}a=function(){var T,w,b;function M(C,k){this.fn=C,this.self=k,this.next=void 0}return{add:function(k,q){b=new M(k,q),w?w.next=b:T=b,w=b,b=void 0},drain:function(){var k=T;for(T=w=t=void 0;k;)k.fn.call(k.self),k=k.next}}}();function l(_,T){a.add(_,T),t||(t=i(a.drain))}function o(_){var T,w=typeof _;return _!=null&&(w=="object"||w=="function")&&(T=_.then),typeof T=="function"?T:!1}function s(){for(var _=0;_0&&l(s,w))}catch(b){v.call(new d(w),b)}}}function v(_){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=_,T.state=2,T.chain.length>0&&l(s,T))}function h(_,T,w,b){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},a=self.document;function n(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(c){t=function(p){for(var x=p.length,A=new Array(x);x--;)A[x]=p[x];return A}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(p,x){o.call(this,p,x+"")},l.setAttributeNS=function(p,x,A){s.call(this,p,x,A+"")},u.setProperty=function(p,x,A){f.call(this,p,x+"",A)}}e.ascending=v;function v(c,p){return cp?1:c>=p?0:NaN}e.descending=function(c,p){return pc?1:p>=c?0:NaN},e.min=function(c,p){var x=-1,A=c.length,S,L;if(arguments.length===1){for(;++x=L){S=L;break}for(;++xL&&(S=L)}else{for(;++x=L){S=L;break}for(;++xL&&(S=L)}return S},e.max=function(c,p){var x=-1,A=c.length,S,L;if(arguments.length===1){for(;++x=L){S=L;break}for(;++xS&&(S=L)}else{for(;++x=L){S=L;break}for(;++xS&&(S=L)}return S},e.extent=function(c,p){var x=-1,A=c.length,S,L,R;if(arguments.length===1){for(;++x=L){S=R=L;break}for(;++xL&&(S=L),R=L){S=R=L;break}for(;++xL&&(S=L),R1)return R/(N-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(p,x,A,S){for(arguments.length<3&&(A=0),arguments.length<4&&(S=p.length);A>>1;c(p[L],x)<0?A=L+1:S=L}return A},right:function(p,x,A,S){for(arguments.length<3&&(A=0),arguments.length<4&&(S=p.length);A>>1;c(p[L],x)>0?S=L:A=L+1}return A}}}var y=m(v);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(c){return m(c.length===1?function(p,x){return v(c(p),x)}:c)},e.shuffle=function(c,p,x){(A=arguments.length)<3&&(x=c.length,A<2&&(p=0));for(var A=x-p,S,L;A;)L=Math.random()*A--|0,S=c[A+p],c[A+p]=c[L+p],c[L+p]=S;return c},e.permute=function(c,p){for(var x=p.length,A=new Array(x);x--;)A[x]=c[p[x]];return A},e.pairs=function(c){for(var p=0,x=c.length-1,A,S=c[0],L=new Array(x<0?0:x);p=0;)for(R=c[p],x=R.length;--x>=0;)L[--S]=R[x];return L};var _=Math.abs;e.range=function(c,p,x){if(arguments.length<3&&(x=1,arguments.length<2&&(p=c,c=0)),(p-c)/x===1/0)throw new Error("infinite range");var A=[],S=T(_(x)),L=-1,R;if(c*=S,p*=S,x*=S,x<0)for(;(R=c+x*++L)>p;)A.push(R/S);else for(;(R=c+x*++L)=p.length)return S?S.call(c,N):A?N.sort(A):N;for(var X=-1,j=N.length,ee=p[W++],de,we,te,se=new b,ue;++X=p.length)return E;var W=[],X=x[N++];return E.forEach(function(j,ee){W.push({key:j,values:R(ee,N)})}),X?W.sort(function(j,ee){return X(j.key,ee.key)}):W}return c.map=function(E,N){return L(N,E,0)},c.entries=function(E){return R(L(e.map,E,0),0)},c.key=function(E){return p.push(E),c},c.sortKeys=function(E){return x[p.length-1]=E,c},c.sortValues=function(E){return A=E,c},c.rollup=function(E){return S=E,c},c},e.set=function(c){var p=new I;if(c)for(var x=0,A=c.length;x=0&&(A=c.slice(x+1),c=c.slice(0,x)),c)return arguments.length<2?this[c].on(A):this[c].on(A,p);if(arguments.length===2){if(p==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(A,null);return this}};function Z(c){var p=[],x=new b;function A(){for(var S=p,L=-1,R=S.length,E;++L=0&&(x=c.slice(0,p))!=="xmlns"&&(c=c.slice(p+1)),le.hasOwnProperty(x)?{space:le[x],local:c}:c}},ge.attr=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node();return c=e.ns.qualify(c),c.local?x.getAttributeNS(c.space,c.local):x.getAttribute(c)}for(p in c)this.each(he(p,c[p]));return this}return this.each(he(c,p))};function he(c,p){c=e.ns.qualify(c);function x(){this.removeAttribute(c)}function A(){this.removeAttributeNS(c.space,c.local)}function S(){this.setAttribute(c,p)}function L(){this.setAttributeNS(c.space,c.local,p)}function R(){var N=p.apply(this,arguments);N==null?this.removeAttribute(c):this.setAttribute(c,N)}function E(){var N=p.apply(this,arguments);N==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,N)}return p==null?c.local?A:x:typeof p=="function"?c.local?E:R:c.local?L:S}function me(c){return c.trim().replace(/\s+/g," ")}ge.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),A=(c=Ee(c)).length,S=-1;if(p=x.classList){for(;++S=0;)(L=x[A])&&(S&&S!==L.nextSibling&&S.parentNode.insertBefore(L,S),S=L);return this},ge.sort=function(c){c=xe.apply(this,arguments);for(var p=-1,x=this.length;++p=p&&(p=S+1);!(N=R[p])&&++p0&&(c=c.slice(0,S));var R=He.get(c);R&&(c=R,L=Ue);function E(){var X=this[A];X&&(this.removeEventListener(c,X,X.$),delete this[A])}function N(){var X=L(p,t(arguments));E.call(this),this.addEventListener(c,this[A]=X,X.$=x),X._=p}function W(){var X=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),j;for(var ee in this)if(j=ee.match(X)){var de=this[ee];this.removeEventListener(j[1],de,de.$),delete this[ee]}}return S?p?N:E:p?H:W}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(c){"on"+c in a&&He.remove(c)});function Ze(c,p){return function(x){var A=e.event;e.event=x,p[0]=this.__data__;try{c.apply(this,p)}finally{e.event=A}}}function Ue(c,p){var x=Ze(c,p);return function(A){var S=this,L=A.relatedTarget;(!L||L!==S&&!(L.compareDocumentPosition(S)&8))&&x.call(S,A)}}var Ge,ir=0;function ar(c){var p=".dragsuppress-"+ ++ir,x="click"+p,A=e.select(i(c)).on("touchmove"+p,ne).on("dragstart"+p,ne).on("selectstart"+p,ne);if(Ge==null&&(Ge="onselectstart"in c?!1:G(c.style,"userSelect")),Ge){var S=n(c).style,L=S[Ge];S[Ge]="none"}return function(R){if(A.on(p,null),Ge&&(S[Ge]=L),R){var E=function(){A.on(x,null)};A.on(x,function(){ne(),E()},!0),setTimeout(E,0)}}}e.mouse=function(c){return Ne(c,ce())};var er=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ne(c,p){p.changedTouches&&(p=p.changedTouches[0]);var x=c.ownerSVGElement||c;if(x.createSVGPoint){var A=x.createSVGPoint();if(er<0){var S=i(c);if(S.scrollX||S.scrollY){x=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=x[0][0].getScreenCTM();er=!(L.f||L.e),x.remove()}}return er?(A.x=p.pageX,A.y=p.pageY):(A.x=p.clientX,A.y=p.clientY),A=A.matrixTransform(c.getScreenCTM().inverse()),[A.x,A.y]}var R=c.getBoundingClientRect();return[p.clientX-R.left-c.clientLeft,p.clientY-R.top-c.clientTop]}e.touch=function(c,p,x){if(arguments.length<3&&(x=p,p=ce().changedTouches),p){for(var A=0,S=p.length,L;A0?1:c<0?-1:0}function lt(c,p,x){return(p[0]-c[0])*(x[1]-c[1])-(p[1]-c[1])*(x[0]-c[0])}function _t(c){return c>1?0:c<-1?Pe:Math.acos(c)}function gt(c){return c>1?sr:c<-1?-sr:Math.asin(c)}function Bt(c){return((c=Math.exp(c))-1/c)/2}function zt(c){return((c=Math.exp(c))+1/c)/2}function Oa(c){return((c=Math.exp(2*c))-1)/(c+1)}function va(c){return(c=Math.sin(c/2))*c}var aa=Math.SQRT2,Ba=2,na=4;e.interpolateZoom=function(c,p){var x=c[0],A=c[1],S=c[2],L=p[0],R=p[1],E=p[2],N=L-x,W=R-A,X=N*N+W*W,j,ee;if(X0&&(rr=rr.transition().duration(R)),rr.call(Te.event)}function dr(){se&&se.domain(te.range().map(function(rr){return(rr-c.x)/c.k}).map(te.invert)),_e&&_e.domain(ue.range().map(function(rr){return(rr-c.y)/c.k}).map(ue.invert))}function pr(rr){E++||rr({type:"zoomstart"})}function Cr(rr){dr(),rr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function mr(rr){--E||(rr({type:"zoomend"}),x=null)}function Tr(){var rr=this,Lr=we.of(rr,arguments),qr=0,Qr=e.select(i(rr)).on(W,pa).on(X,Da),wt=ve(e.mouse(rr)),Ut=ar(rr);hv.call(rr),pr(Lr);function pa(){qr=1,fr(e.mouse(rr),wt),Cr(Lr)}function Da(){Qr.on(W,null).on(X,null),Ut(qr),mr(Lr)}}function Kr(){var rr=this,Lr=we.of(rr,arguments),qr={},Qr=0,wt,Ut=".zoom-"+e.event.changedTouches[0].identifier,pa="touchmove"+Ut,Da="touchend"+Ut,Ua=[],Ea=e.select(rr),Za=ar(rr);Ja(),pr(Lr),Ea.on(N,null).on(ee,Ja);function Ta(){var Wn=e.touches(rr);return wt=c.k,Wn.forEach(function(ma){ma.identifier in qr&&(qr[ma.identifier]=ve(ma))}),Wn}function Ja(){var Wn=e.event.target;e.select(Wn).on(pa,ao).on(Da,cI),Ua.push(Wn);for(var ma=e.event.changedTouches,xn=0,yi=ma.length;xn1){var no=_n[0],fl=_n[1],mv=no[0]-fl[0],pb=no[1]-fl[1];Qr=mv*mv+pb*pb}}function ao(){var Wn=e.touches(rr),ma,xn,yi,_n;hv.call(rr);for(var gs=0,no=Wn.length;gs1?1:p,x=x<0?0:x>1?1:x,S=x<=.5?x*(1+p):x+p-x*p,A=2*x-S;function L(E){return E>360?E-=360:E<0&&(E+=360),E<60?A+(S-A)*E/60:E<180?S:E<240?A+(S-A)*(240-E)/60:A}function R(E){return Math.round(L(E)*255)}return new qa(R(c+120),R(c),R(c-120))}e.hcl=at;function at(c,p,x){return this instanceof at?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof at?new at(c.h,c.c,c.l):c instanceof Jt?Wc(c.l,c.a,c.b):Wc((c=or((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new at(c,p,x)}var Xa=at.prototype=new Jr;Xa.brighter=function(c){return new at(this.h,this.c,Math.min(100,this.l+vt*(arguments.length?c:1)))},Xa.darker=function(c){return new at(this.h,this.c,Math.max(0,this.l-vt*(arguments.length?c:1)))},Xa.rgb=function(){return Un(this.h,this.c,this.l).rgb()};function Un(c,p,x){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Jt(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Jt;function Jt(c,p,x){return this instanceof Jt?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Jt?new Jt(c.l,c.a,c.b):c instanceof at?Un(c.h,c.c,c.l):or((c=qa(c)).r,c.g,c.b):new Jt(c,p,x)}var vt=18,Nt=.95047,Ya=1,$l=1.08883,sl=Jt.prototype=new Jr;sl.brighter=function(c){return new Jt(Math.min(100,this.l+vt*(arguments.length?c:1)),this.a,this.b)},sl.darker=function(c){return new Jt(Math.max(0,this.l-vt*(arguments.length?c:1)),this.a,this.b)},sl.rgb=function(){return Gc(this.l,this.a,this.b)};function Gc(c,p,x){var A=(c+16)/116,S=A+p/500,L=A-x/200;return S=zu(S)*Nt,A=zu(A)*Ya,L=zu(L)*$l,new qa(Fu(3.2404542*S-1.5371385*A-.4985314*L),Fu(-.969266*S+1.8760108*A+.041556*L),Fu(.0556434*S-.2040259*A+1.0572252*L))}function Wc(c,p,x){return c>0?new at(Math.atan2(x,p)*Ir,Math.sqrt(p*p+x*x),c):new at(NaN,NaN,c)}function zu(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function Nu(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Fu(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=qa;function qa(c,p,x){return this instanceof qa?(this.r=~~c,this.g=~~p,void(this.b=~~x)):arguments.length<2?c instanceof qa?new qa(c.r,c.g,c.b):Gr(""+c,qa,oa):new qa(c,p,x)}function Xc(c){return new qa(c>>16,c>>8&255,c&255)}function fs(c){return Xc(c)+""}var cs=qa.prototype=new Jr;cs.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var p=this.r,x=this.g,A=this.b,S=30;return!p&&!x&&!A?new qa(S,S,S):(p&&p>4,A=A>>4|A,S=N&240,S=S>>4|S,L=N&15,L=L<<4|L):c.length===7&&(A=(N&16711680)>>16,S=(N&65280)>>8,L=N&255)),p(A,S,L))}function $r(c,p,x){var A=Math.min(c/=255,p/=255,x/=255),S=Math.max(c,p,x),L=S-A,R,E,N=(S+A)/2;return L?(E=N<.5?L/(S+A):L/(2-S-A),c==S?R=(p-x)/L+(p0&&N<1?0:R),new nt(R,E,N)}function or(c,p,x){c=ha(c),p=ha(p),x=ha(x);var A=Nu((.4124564*c+.3575761*p+.1804375*x)/Nt),S=Nu((.2126729*c+.7151522*p+.072175*x)/Ya),L=Nu((.0193339*c+.119192*p+.9503041*x)/$l);return Jt(116*S-16,500*(A-S),200*(S-L))}function ha(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function st(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var da=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});da.forEach(function(c,p){da.set(c,Xc(p))});function Rr(c){return typeof c=="function"?c:function(){return c}}e.functor=Rr,e.xhr=Vn(V);function Vn(c){return function(p,x,A){return arguments.length===2&&typeof x=="function"&&(A=x,x=null),jl(p,x,c,A)}}function jl(c,p,x,A){var S={},L=e.dispatch("beforesend","progress","load","error"),R={},E=new XMLHttpRequest,N=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(c)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=W:E.onreadystatechange=function(){E.readyState>3&&W()};function W(){var X=E.status,j;if(!X&&hN(E)||X>=200&&X<300||X===304){try{j=x.call(S,E)}catch(ee){L.error.call(S,ee);return}L.load.call(S,j)}else L.error.call(S,E)}return E.onprogress=function(X){var j=e.event;e.event=X;try{L.progress.call(S,E)}finally{e.event=j}},S.header=function(X,j){return X=(X+"").toLowerCase(),arguments.length<2?R[X]:(j==null?delete R[X]:R[X]=j+"",S)},S.mimeType=function(X){return arguments.length?(p=X==null?null:X+"",S):p},S.responseType=function(X){return arguments.length?(N=X,S):N},S.response=function(X){return x=X,S},["get","post"].forEach(function(X){S[X]=function(){return S.send.apply(S,[X].concat(t(arguments)))}}),S.send=function(X,j,ee){if(arguments.length===2&&typeof j=="function"&&(ee=j,j=null),E.open(X,c,!0),p!=null&&!("accept"in R)&&(R.accept=p+",*/*"),E.setRequestHeader)for(var de in R)E.setRequestHeader(de,R[de]);return p!=null&&E.overrideMimeType&&E.overrideMimeType(p),N!=null&&(E.responseType=N),ee!=null&&S.on("error",ee).on("load",function(we){ee(null,we)}),L.beforesend.call(S,E),E.send(j==null?null:j),S},S.abort=function(){return E.abort(),S},e.rebind(S,L,"on"),A==null?S:S.get(vN(A))}function vN(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function hN(c){var p=c.responseType;return p&&p!=="text"?c.response:c.responseText}e.dsv=function(c,p){var x=new RegExp('["'+c+` -]`),A=c.charCodeAt(0);function S(W,X,j){arguments.length<3&&(j=X,X=null);var ee=jl(W,p,X==null?L:R(X),j);return ee.row=function(de){return arguments.length?ee.response((X=de)==null?L:R(de)):X},ee}function L(W){return S.parse(W.responseText)}function R(W){return function(X){return S.parse(X.responseText,W)}}S.parse=function(W,X){var j;return S.parseRows(W,function(ee,de){if(j)return j(ee,de-1);var we=function(te){for(var se={},ue=ee.length,_e=0;_e=we)return ee;if(_e)return _e=!1,j;var Ye=te;if(W.charCodeAt(Ye)===34){for(var nr=Ye;nr++24?(isFinite(p)&&(clearTimeout(Qc),Qc=setTimeout(w1,p)),Kc=0):(Kc=1,r5(w1))}e.timer.flush=function(){t5(),a5()};function t5(){for(var c=Date.now(),p=Zc;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function a5(){for(var c,p=Zc,x=1/0;p;)p.c?(p.t=0;--E)te.push(S[W[j[E]][2]]);for(E=+de;E1&<(c[x[A-2]],c[x[A-1]],c[S])<=0;)--A;x[A++]=S}return x.slice(0,A)}function dN(c,p){return c[0]-p[0]||c[1]-p[1]}e.geom.polygon=function(c){return re(c,jc),c};var jc=e.geom.polygon.prototype=[];jc.area=function(){for(var c=-1,p=this.length,x,A=this[p-1],S=0;++coe)E=E.L;else if(R=p-gN(E,x),R>oe){if(!E.R){A=E;break}E=E.R}else{L>-oe?(A=E.P,S=E):R>-oe?(A=E,S=E.N):A=S=E;break}var N=s5(c);if(ds.insert(A,N),!(!A&&!S)){if(A===S){ms(A),S=s5(A.site),ds.insert(N,S),N.edge=S.edge=Ou(A.site,N.site),ps(A),ps(S);return}if(!S){N.edge=Ou(A.site,N.site);return}ms(A),ms(S);var W=A.site,X=W.x,j=W.y,ee=c.x-X,de=c.y-j,we=S.site,te=we.x-X,se=we.y-j,ue=2*(ee*se-de*te),_e=ee*ee+de*de,Te=te*te+se*se,ve={x:(se*_e-de*Te)/ue+X,y:(ee*Te-te*_e)/ue+j};ev(S.edge,W,we,ve),N.edge=Ou(W,c,null,ve),S.edge=Ou(c,we,null,ve),ps(A),ps(S)}}function u5(c,p){var x=c.site,A=x.x,S=x.y,L=S-p;if(!L)return A;var R=c.P;if(!R)return-1/0;x=R.site;var E=x.x,N=x.y,W=N-p;if(!W)return E;var X=E-A,j=1/L-1/W,ee=X/W;return j?(-ee+Math.sqrt(ee*ee-2*j*(X*X/(-2*W)-N+W/2+S-L/2)))/j+A:(A+E)/2}function gN(c,p){var x=c.N;if(x)return u5(x,p);var A=c.site;return A.y===p?A.x:1/0}function f5(c){this.site=c,this.edges=[]}f5.prototype.prepare=function(){for(var c=this.edges,p=c.length,x;p--;)x=c[p].edge,(!x.b||!x.a)&&c.splice(p,1);return c.sort(c5),c.length};function bN(c){for(var p=c[0][0],x=c[1][0],A=c[0][1],S=c[1][1],L,R,E,N,W=eo,X=W.length,j,ee,de,we,te,se;X--;)if(j=W[X],!(!j||!j.prepare()))for(de=j.edges,we=de.length,ee=0;eeoe||_(N-R)>oe)&&(de.splice(ee,0,new rv(MN(j.site,se,_(E-p)oe?{x:p,y:_(L-p)oe?{x:_(R-S)oe?{x,y:_(L-x)oe?{x:_(R-A)=-qe)){var ee=N*N+W*W,de=X*X+se*se,we=(se*ee-W*de)/j,te=(N*de-X*ee)/j,se=te+E,ue=o5.pop()||new xN;ue.arc=c,ue.site=S,ue.x=we+R,ue.y=se+Math.sqrt(we*we+te*te),ue.cy=se,c.circle=ue;for(var _e=null,Te=Hu._;Te;)if(ue.y0)){if(te/=de,de<0){if(te0){if(te>ee)return;te>j&&(j=te)}if(te=x-E,!(!de&&te<0)){if(te/=de,de<0){if(te>ee)return;te>j&&(j=te)}else if(de>0){if(te0)){if(te/=we,we<0){if(te0){if(te>ee)return;te>j&&(j=te)}if(te=A-N,!(!we&&te<0)){if(te/=we,we<0){if(te>ee)return;te>j&&(j=te)}else if(we>0){if(te0&&(S.a={x:E+j*de,y:N+j*we}),ee<1&&(S.b={x:E+ee*de,y:N+ee*we}),S}}}}}}function wN(c){for(var p=hs,x=_N(c[0][0],c[0][1],c[1][0],c[1][1]),A=p.length,S;A--;)S=p[A],(!TN(S,c)||!x(S)||_(S.a.x-S.b.x)=L)return;if(X>ee){if(!A)A={x:we,y:R};else if(A.y>=E)return;x={x:we,y:E}}else{if(!A)A={x:we,y:E};else if(A.y1)if(X>ee){if(!A)A={x:(R-ue)/se,y:R};else if(A.y>=E)return;x={x:(E-ue)/se,y:E}}else{if(!A)A={x:(E-ue)/se,y:E};else if(A.y=L)return;x={x:L,y:se*L+ue}}else{if(!A)A={x:L,y:se*L+ue};else if(A.x=X&&ue.x<=ee&&ue.y>=j&&ue.y<=de?[[X,de],[ee,de],[ee,j],[X,j]]:[];_e.point=N[te]}),W}function E(N){return N.map(function(W,X){return{x:Math.round(A(W,X)/oe)*oe,y:Math.round(S(W,X)/oe)*oe,i:X}})}return R.links=function(N){return C1(E(N)).edges.filter(function(W){return W.l&&W.r}).map(function(W){return{source:N[W.l.i],target:N[W.r.i]}})},R.triangles=function(N){var W=[];return C1(E(N)).cells.forEach(function(X,j){for(var ee=X.site,de=X.edges.sort(c5),we=-1,te=de.length,se,ue,_e=de[te-1].edge,Te=_e.l===ee?_e.r:_e.l;++weTe&&(Te=X.x),X.y>ve&&(ve=X.y),de.push(X.x),we.push(X.y);else for(te=0;teTe&&(Te=Ye),nr>ve&&(ve=nr),de.push(Ye),we.push(nr)}var fr=Te-ue,lr=ve-_e;fr>lr?ve=_e+fr:Te=ue+lr;function dr(mr,Tr,Kr,Ct,et,rr,Lr,qr){if(!(isNaN(Kr)||isNaN(Ct)))if(mr.leaf){var Qr=mr.x,wt=mr.y;if(Qr!=null)if(_(Qr-Kr)+_(wt-Ct)<.01)pr(mr,Tr,Kr,Ct,et,rr,Lr,qr);else{var Ut=mr.point;mr.x=mr.y=mr.point=null,pr(mr,Ut,Qr,wt,et,rr,Lr,qr),pr(mr,Tr,Kr,Ct,et,rr,Lr,qr)}else mr.x=Kr,mr.y=Ct,mr.point=Tr}else pr(mr,Tr,Kr,Ct,et,rr,Lr,qr)}function pr(mr,Tr,Kr,Ct,et,rr,Lr,qr){var Qr=(et+Lr)*.5,wt=(rr+qr)*.5,Ut=Kr>=Qr,pa=Ct>=wt,Da=pa<<1|Ut;mr.leaf=!1,mr=mr.nodes[Da]||(mr.nodes[Da]=d5()),Ut?et=Qr:Lr=Qr,pa?rr=wt:qr=wt,dr(mr,Tr,Kr,Ct,et,rr,Lr,qr)}var Cr=d5();if(Cr.add=function(mr){dr(Cr,mr,+j(mr,++te),+ee(mr,te),ue,_e,Te,ve)},Cr.visit=function(mr){Uu(mr,Cr,ue,_e,Te,ve)},Cr.find=function(mr){return LN(Cr,mr[0],mr[1],ue,_e,Te,ve)},te=-1,p==null){for(;++teL||ee>R||de=Ye,lr=x>=nr,dr=lr<<1|fr,pr=dr+4;drx&&(L=p.slice(x,L),E[R]?E[R]+=L:E[++R]=L),(A=A[0])===(S=S[0])?E[R]?E[R]+=S:E[++R]=S:(E[++R]=null,N.push({i:R,x:Yi(A,S)})),x=D1.lastIndex;return x=0&&!(A=e.interpolators[x](c,p)););return A}e.interpolators=[function(c,p){var x=typeof p;return(x==="string"?da.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?L1:m5:p instanceof Jr?L1:Array.isArray(p)?nv:x==="object"&&isNaN(p)?p5:Yi)(c,p)}],e.interpolateArray=nv;function nv(c,p){var x=[],A=[],S=c.length,L=p.length,R=Math.min(c.length,p.length),E;for(E=0;E=0?c.slice(0,p):c,A=p>=0?c.slice(p+1):"in";return x=qN.get(x)||y5,A=DN.get(A)||V,EN(A(x.apply(null,r.call(arguments,1))))};function EN(c){return function(p){return p<=0?0:p>=1?1:c(p)}}function g5(c){return function(p){return 1-c(1-p)}}function b5(c){return function(p){return .5*(p<.5?c(2*p):2-c(2-2*p))}}function PN(c){return c*c}function RN(c){return c*c*c}function zN(c){if(c<=0)return 0;if(c>=1)return 1;var p=c*c,x=p*c;return 4*(c<.5?x:3*(c-p)+x-.75)}function NN(c){return function(p){return Math.pow(p,c)}}function FN(c){return 1-Math.cos(c*sr)}function IN(c){return Math.pow(2,10*(c-1))}function HN(c){return 1-Math.sqrt(1-c*c)}function ON(c,p){var x;return arguments.length<2&&(p=.45),arguments.length?x=p/$e*Math.asin(1/c):(c=1,x=p/4),function(A){return 1+c*Math.pow(2,-10*A)*Math.sin((A-x)*$e/p)}}function BN(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function YN(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=UN;function UN(c,p){c=e.hcl(c),p=e.hcl(p);var x=c.h,A=c.c,S=c.l,L=p.h-x,R=p.c-A,E=p.l-S;return isNaN(R)&&(R=0,A=isNaN(A)?p.c:A),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return Un(x+L*N,A+R*N,S+E*N)+""}}e.interpolateHsl=VN;function VN(c,p){c=e.hsl(c),p=e.hsl(p);var x=c.h,A=c.s,S=c.l,L=p.h-x,R=p.s-A,E=p.l-S;return isNaN(R)&&(R=0,A=isNaN(A)?p.s:A),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return oa(x+L*N,A+R*N,S+E*N)+""}}e.interpolateLab=GN;function GN(c,p){c=e.lab(c),p=e.lab(p);var x=c.l,A=c.a,S=c.b,L=p.l-x,R=p.a-A,E=p.b-S;return function(N){return Gc(x+L*N,A+R*N,S+E*N)+""}}e.interpolateRound=x5;function x5(c,p){return p-=c,function(x){return Math.round(c+p*x)}}e.transform=function(c){var p=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(x){if(x!=null){p.setAttribute("transform",x);var A=p.transform.baseVal.consolidate()}return new _5(A?A.matrix:XN)})(c)};function _5(c){var p=[c.a,c.b],x=[c.c,c.d],A=T5(p),S=w5(p,x),L=T5(WN(x,p,-S))||0;p[0]*x[1]180?p+=360:p-c>180&&(c+=360),A.push({i:x.push(ys(x)+"rotate(",null,")")-2,x:Yi(c,p)})):p&&x.push(ys(x)+"rotate("+p+")")}function KN(c,p,x,A){c!==p?A.push({i:x.push(ys(x)+"skewX(",null,")")-2,x:Yi(c,p)}):p&&x.push(ys(x)+"skewX("+p+")")}function QN(c,p,x,A){if(c[0]!==p[0]||c[1]!==p[1]){var S=x.push(ys(x)+"scale(",null,",",null,")");A.push({i:S-4,x:Yi(c[0],p[0])},{i:S-2,x:Yi(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&x.push(ys(x)+"scale("+p+")")}function M5(c,p){var x=[],A=[];return c=e.transform(c),p=e.transform(p),ZN(c.translate,p.translate,x,A),JN(c.rotate,p.rotate,x,A),KN(c.skew,p.skew,x,A),QN(c.scale,p.scale,x,A),c=p=null,function(S){for(var L=-1,R=A.length,E;++L0?L=ve:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):ve>0&&(p.start({type:"start",alpha:L=ve}),x=$c(c.tick)),c):L},c.start=function(){var ve,Ye=de.length,nr=we.length,fr=A[0],lr=A[1],dr,pr;for(ve=0;ve=0;)L.push(X=W[N]),X.parent=E,X.depth=E.depth+1;x&&(E.value=0),E.children=W}else x&&(E.value=+x.call(A,E,E.depth)||0),delete E.children;return mi(S,function(j){var ee,de;c&&(ee=j.children)&&ee.sort(c),x&&(de=j.parent)&&(de.value+=j.value)}),R}return A.sort=function(S){return arguments.length?(c=S,A):c},A.children=function(S){return arguments.length?(p=S,A):p},A.value=function(S){return arguments.length?(x=S,A):x},A.revalue=function(S){return x&&(Gu(S,function(L){L.children&&(L.value=0)}),mi(S,function(L){var R;L.children||(L.value=+x.call(A,L,L.depth)||0),(R=L.parent)&&(R.value+=L.value)})),S},A};function Vu(c,p){return e.rebind(c,p,"sort","children","value"),c.nodes=c,c.links=vF,c}function Gu(c,p){for(var x=[c];(c=x.pop())!=null;)if(p(c),(S=c.children)&&(A=S.length))for(var A,S;--A>=0;)x.push(S[A])}function mi(c,p){for(var x=[c],A=[];(c=x.pop())!=null;)if(A.push(c),(R=c.children)&&(L=R.length))for(var S=-1,L,R;++SS&&(S=E),A.push(E)}for(R=0;RA&&(x=p,A=S);return x}function bF(c){return c.reduce(xF,0)}function xF(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,x=wF,A=_F;function S(L,ee){for(var E=[],N=L.map(p,this),W=x.call(this,N,ee),X=A.call(this,W,N,ee),j,ee=-1,de=N.length,we=X.length-1,te=c?1:1/de,se;++ee0)for(ee=-1;++ee=W[0]&&se<=W[1]&&(j=E[e.bisect(X,se,1,we)-1],j.y+=te,j.push(L[ee]));return E}return S.value=function(L){return arguments.length?(p=L,S):p},S.range=function(L){return arguments.length?(x=Rr(L),S):x},S.bins=function(L){return arguments.length?(A=typeof L=="number"?function(R){return C5(R,L)}:Rr(L),S):A},S.frequency=function(L){return arguments.length?(c=!!L,S):c},S};function _F(c,p){return C5(c,Math.ceil(Math.log(p.length)/Math.LN2+1))}function C5(c,p){for(var x=-1,A=+c[0],S=(c[1]-A)/p,L=[];++x<=p;)L[x]=S*x+A;return L}function wF(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(TF),p=0,x=[1,1],A;function S(L,R){var E=c.call(this,L,R),N=E[0],W=x[0],X=x[1],j=A==null?Math.sqrt:typeof A=="function"?A:function(){return A};if(N.x=N.y=0,mi(N,function(de){de.r=+j(de.value)}),mi(N,D5),p){var ee=p*(A?1:Math.max(2*N.r/W,2*N.r/X))/2;mi(N,function(de){de.r+=ee}),mi(N,D5),mi(N,function(de){de.r-=ee})}return E5(N,W/2,X/2,A?1:1/Math.max(2*N.r/W,2*N.r/X)),E}return S.size=function(L){return arguments.length?(x=L,S):x},S.radius=function(L){return arguments.length?(A=L==null||typeof L=="function"?L:+L,S):A},S.padding=function(L){return arguments.length?(p=+L,S):p},Vu(S,c)};function TF(c,p){return c.value-p.value}function R1(c,p){var x=c._pack_next;c._pack_next=p,p._pack_prev=c,p._pack_next=x,x._pack_prev=p}function L5(c,p){c._pack_next=p,p._pack_prev=c}function q5(c,p){var x=p.x-c.x,A=p.y-c.y,S=c.r+p.r;return .999*S*S>x*x+A*A}function D5(c){if(!(p=c.children)||!(ee=p.length))return;var p,x=1/0,A=-1/0,S=1/0,L=-1/0,R,E,N,W,X,j,ee;function de(ve){x=Math.min(ve.x-ve.r,x),A=Math.max(ve.x+ve.r,A),S=Math.min(ve.y-ve.r,S),L=Math.max(ve.y+ve.r,L)}if(p.forEach(MF),R=p[0],R.x=-R.r,R.y=0,de(R),ee>1&&(E=p[1],E.x=E.r,E.y=0,de(E),ee>2))for(N=p[2],P5(R,E,N),de(N),R1(R,N),R._pack_prev=N,R1(N,E),E=R._pack_next,W=3;Wse.x&&(se=Ye),Ye.depth>ue.depth&&(ue=Ye)});var _e=p(te,se)/2-te.x,Te=x[0]/(se.x+p(se,te)/2+_e),ve=x[1]/(ue.depth||1);Gu(de,function(Ye){Ye.x=(Ye.x+_e)*Te,Ye.y=Ye.depth*ve})}return ee}function L(X){for(var j={A:null,children:[X]},ee=[j],de;(de=ee.pop())!=null;)for(var we=de.children,te,se=0,ue=we.length;se0&&(kF(CF(te,X,ee),X,Ye),ue+=Ye,_e+=Ye),Te+=te.m,ue+=de.m,ve+=se.m,_e+=we.m;te&&!N1(we)&&(we.t=te,we.m+=Te-_e),de&&!z1(se)&&(se.t=de,se.m+=ue-ve,ee=X)}return ee}function W(X){X.x*=x[0],X.y=X.depth*x[1]}return S.separation=function(X){return arguments.length?(p=X,S):p},S.size=function(X){return arguments.length?(A=(x=X)==null?W:null,S):A?null:x},S.nodeSize=function(X){return arguments.length?(A=(x=X)==null?null:W,S):A?x:null},Vu(S,c)};function R5(c,p){return c.parent==p.parent?1:2}function z1(c){var p=c.children;return p.length?p[0]:c.t}function N1(c){var p=c.children,x;return(x=p.length)?p[x-1]:c.t}function kF(c,p,x){var A=x/(p.i-c.i);p.c-=A,p.s+=x,c.c+=A,p.z+=x,p.m+=x}function SF(c){for(var p=0,x=0,A=c.children,S=A.length,L;--S>=0;)L=A[S],L.z+=p,L.m+=p,p+=L.s+(x+=L.c)}function CF(c,p,x){return c.a.parent===p.parent?c.a:x}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),p=R5,x=[1,1],A=!1;function S(L,R){var E=c.call(this,L,R),N=E[0],W,X=0;mi(N,function(te){var se=te.children;se&&se.length?(te.x=qF(se),te.y=LF(se)):(te.x=W?X+=p(te,W):0,te.y=0,W=te)});var j=z5(N),ee=N5(N),de=j.x-p(j,ee)/2,we=ee.x+p(ee,j)/2;return mi(N,A?function(te){te.x=(te.x-N.x)*x[0],te.y=(N.y-te.y)*x[1]}:function(te){te.x=(te.x-de)/(we-de)*x[0],te.y=(1-(N.y?te.y/N.y:1))*x[1]}),E}return S.separation=function(L){return arguments.length?(p=L,S):p},S.size=function(L){return arguments.length?(A=(x=L)==null,S):A?null:x},S.nodeSize=function(L){return arguments.length?(A=(x=L)!=null,S):A?x:null},Vu(S,c)};function LF(c){return 1+e.max(c,function(p){return p.y})}function qF(c){return c.reduce(function(p,x){return p+x.x},0)/c.length}function z5(c){var p=c.children;return p&&p.length?z5(p[0]):c}function N5(c){var p=c.children,x;return p&&(x=p.length)?N5(p[x-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,x=[1,1],A=null,S=F1,L=!1,R,E="squarify",N=.5*(1+Math.sqrt(5));function W(te,se){for(var ue=-1,_e=te.length,Te,ve;++ue<_e;)ve=(Te=te[ue]).value*(se<0?0:se),Te.area=isNaN(ve)||ve<=0?0:ve}function X(te){var se=te.children;if(se&&se.length){var ue=S(te),_e=[],Te=se.slice(),ve,Ye=1/0,nr,fr=E==="slice"?ue.dx:E==="dice"?ue.dy:E==="slice-dice"?te.depth&1?ue.dy:ue.dx:Math.min(ue.dx,ue.dy),lr;for(W(Te,ue.dx*ue.dy/te.value),_e.area=0;(lr=Te.length)>0;)_e.push(ve=Te[lr-1]),_e.area+=ve.area,E!=="squarify"||(nr=ee(_e,fr))<=Ye?(Te.pop(),Ye=nr):(_e.area-=_e.pop().area,de(_e,fr,ue,!1),fr=Math.min(ue.dx,ue.dy),_e.length=_e.area=0,Ye=1/0);_e.length&&(de(_e,fr,ue,!0),_e.length=_e.area=0),se.forEach(X)}}function j(te){var se=te.children;if(se&&se.length){var ue=S(te),_e=se.slice(),Te,ve=[];for(W(_e,ue.dx*ue.dy/te.value),ve.area=0;Te=_e.pop();)ve.push(Te),ve.area+=Te.area,Te.z!=null&&(de(ve,Te.z?ue.dx:ue.dy,ue,!_e.length),ve.length=ve.area=0);se.forEach(j)}}function ee(te,se){for(var ue=te.area,_e,Te=0,ve=1/0,Ye=-1,nr=te.length;++YeTe&&(Te=_e));return ue*=ue,se*=se,ue?Math.max(se*Te*N/ue,ue/(se*ve*N)):1/0}function de(te,se,ue,_e){var Te=-1,ve=te.length,Ye=ue.x,nr=ue.y,fr=se?p(te.area/se):0,lr;if(se==ue.dx){for((_e||fr>ue.dy)&&(fr=ue.dy);++Teue.dx)&&(fr=ue.dx);++Te1);return c+p*A*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var p=e.random.irwinHall(c);return function(){return p()/c}},irwinHall:function(c){return function(){for(var p=0,x=0;x2?PF:DF,W=A?jN:$N;return S=N(c,p,W,x),L=N(p,c,W,ro),E}function E(N){return S(N)}return E.invert=function(N){return L(N)},E.domain=function(N){return arguments.length?(c=N.map(Number),R()):c},E.range=function(N){return arguments.length?(p=N,R()):p},E.rangeRound=function(N){return E.range(N).interpolate(x5)},E.clamp=function(N){return arguments.length?(A=N,R()):A},E.interpolate=function(N){return arguments.length?(x=N,R()):x},E.ticks=function(N){return O1(c,N)},E.tickFormat=function(N,W){return d3_scale_linearTickFormat(c,N,W)},E.nice=function(N){return B5(c,N),R()},E.copy=function(){return H5(c,p,x,A)},R()}function O5(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function B5(c,p){return I1(c,I5(H1(c,p)[2])),I1(c,I5(H1(c,p)[2])),c}function H1(c,p){p==null&&(p=10);var x=iv(c),A=x[1]-x[0],S=Math.pow(10,Math.floor(Math.log(A/p)/Math.LN10)),L=p/A*S;return L<=.15?S*=10:L<=.35?S*=5:L<=.75&&(S*=2),x[0]=Math.ceil(x[0]/S)*S,x[1]=Math.floor(x[1]/S)*S+S*.5,x[2]=S,x}function O1(c,p){return e.range.apply(e,H1(c,p))}var RF={s:1,g:1,p:1,r:1,e:1};function Y5(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function Lie(c,p){var x=Y5(p[2]);return c in RF?Math.abs(x-Y5(Math.max(_(p[0]),_(p[1]))))+ +(c!=="e"):x-(c==="%")*2}e.scale.log=function(){return U5(e.scale.linear().domain([0,1]),10,!0,[1,10])};function U5(c,p,x,A){function S(E){return(x?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(p)}function L(E){return x?Math.pow(p,E):-Math.pow(p,-E)}function R(E){return c(S(E))}return R.invert=function(E){return L(c.invert(E))},R.domain=function(E){return arguments.length?(x=E[0]>=0,c.domain((A=E.map(Number)).map(S)),R):A},R.base=function(E){return arguments.length?(p=+E,c.domain(A.map(S)),R):p},R.nice=function(){var E=I1(A.map(S),x?Math:zF);return c.domain(E),A=E.map(L),R},R.ticks=function(){var E=iv(A),N=[],W=E[0],X=E[1],j=Math.floor(S(W)),ee=Math.ceil(S(X)),de=p%1?2:p;if(isFinite(ee-j)){if(x){for(;j0;we--)N.push(L(j)*we);for(j=0;N[j]X;ee--);N=N.slice(j,ee)}return N},R.copy=function(){return U5(c.copy(),p,x,A)},O5(R,c)}var zF={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return V5(e.scale.linear(),1,[0,1])};function V5(c,p,x){var A=ov(p),S=ov(1/p);function L(R){return c(A(R))}return L.invert=function(R){return S(c.invert(R))},L.domain=function(R){return arguments.length?(c.domain((x=R.map(Number)).map(A)),L):x},L.ticks=function(R){return O1(x,R)},L.tickFormat=function(R,E){return d3_scale_linearTickFormat(x,R,E)},L.nice=function(R){return L.domain(B5(x,R))},L.exponent=function(R){return arguments.length?(A=ov(p=R),S=ov(1/p),c.domain(x.map(A)),L):p},L.copy=function(){return V5(c.copy(),p,x)},O5(L,c)}function ov(c){return function(p){return p<0?-Math.pow(-p,c):Math.pow(p,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return G5([],{t:"range",a:[[]]})};function G5(c,p){var x,A,S;function L(E){return A[((x.get(E)||(p.t==="range"?x.set(E,c.push(E)):NaN))-1)%A.length]}function R(E,N){return e.range(c.length).map(function(W){return E+N*W})}return L.domain=function(E){if(!arguments.length)return c;c=[],x=new b;for(var N=-1,W=E.length,X;++N0?x[L-1]:c[0],Lee?0:1;if(X=cr)return N(X,we)+(W?N(W,1-we):"")+"Z";var te,se,ue,_e,Te=0,ve=0,Ye,nr,fr,lr,dr,pr,Cr,mr,Tr=[];if((_e=(+R.apply(this,arguments)||0)/2)&&(ue=A===sv?Math.sqrt(W*W+X*X):+A.apply(this,arguments),we||(ve*=-1),X&&(ve=gt(ue/X*Math.sin(_e))),W&&(Te=gt(ue/W*Math.sin(_e)))),X){Ye=X*Math.cos(j+ve),nr=X*Math.sin(j+ve),fr=X*Math.cos(ee-ve),lr=X*Math.sin(ee-ve);var Kr=Math.abs(ee-j-2*ve)<=Pe?0:1;if(ve&&uv(Ye,nr,fr,lr)===we^Kr){var Ct=(j+ee)/2;Ye=X*Math.cos(Ct),nr=X*Math.sin(Ct),fr=lr=null}}else Ye=nr=0;if(W){dr=W*Math.cos(ee-Te),pr=W*Math.sin(ee-Te),Cr=W*Math.cos(j+Te),mr=W*Math.sin(j+Te);var et=Math.abs(j-ee+2*Te)<=Pe?0:1;if(Te&&uv(dr,pr,Cr,mr)===1-we^et){var rr=(j+ee)/2;dr=W*Math.cos(rr),pr=W*Math.sin(rr),Cr=mr=null}}else dr=pr=0;if(de>oe&&(te=Math.min(Math.abs(X-W)/2,+x.apply(this,arguments)))>.001){se=W0?0:1}function fv(c,p,x,A,S){var L=c[0]-p[0],R=c[1]-p[1],E=(S?A:-A)/Math.sqrt(L*L+R*R),N=E*R,W=-E*L,X=c[0]+N,j=c[1]+W,ee=p[0]+N,de=p[1]+W,we=(X+ee)/2,te=(j+de)/2,se=ee-X,ue=de-j,_e=se*se+ue*ue,Te=x-A,ve=X*de-ee*j,Ye=(ue<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*_e-ve*ve)),nr=(ve*ue-se*Ye)/_e,fr=(-ve*se-ue*Ye)/_e,lr=(ve*ue+se*Ye)/_e,dr=(-ve*se+ue*Ye)/_e,pr=nr-we,Cr=fr-te,mr=lr-we,Tr=dr-te;return pr*pr+Cr*Cr>mr*mr+Tr*Tr&&(nr=lr,fr=dr),[[nr-N,fr-W],[nr*x/Te,fr*x/Te]]}function $5(){return!0}function j5(c){var p=vs,x=Iu,A=$5,S=Gn,L=S.key,R=.7;function E(N){var W=[],X=[],j=-1,ee=N.length,de,we=Rr(p),te=Rr(x);function se(){W.push("M",S(c(X),R))}for(;++j1?c.join("L"):c+"Z"}function eb(c){return c.join("L")+"Z"}function VF(c){for(var p=0,x=c.length,A=c[0],S=[A[0],",",A[1]];++p1&&S.push("H",A[0]),S.join("")}function Y1(c){for(var p=0,x=c.length,A=c[0],S=[A[0],",",A[1]];++p1){E=p[1],L=c[N],N++,A+="C"+(S[0]+R[0])+","+(S[1]+R[1])+","+(L[0]-E[0])+","+(L[1]-E[1])+","+L[0]+","+L[1];for(var W=2;W9&&(L=x*3/Math.sqrt(L),R[E]=L*A,R[E+1]=L*S));for(E=-1;++E<=N;)L=(c[Math.min(N,E+1)][0]-c[Math.max(0,E-1)][0])/(6*(1+R[E]*R[E])),p.push([L||0,R[E]*L||0]);return p}function jF(c){return c.length<3?Gn(c):c[0]+cv(c,$F(c))}e.svg.line.radial=function(){var c=j5(nb);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function nb(c){for(var p,x=-1,A=c.length,S,L;++xPe)+",1 "+j}function W(X,j,ee,de){return"Q 0,0 "+de}return L.radius=function(X){return arguments.length?(x=Rr(X),L):x},L.source=function(X){return arguments.length?(c=Rr(X),L):c},L.target=function(X){return arguments.length?(p=Rr(X),L):p},L.startAngle=function(X){return arguments.length?(A=Rr(X),L):A},L.endAngle=function(X){return arguments.length?(S=Rr(X),L):S},L};function eI(c){return c.radius}e.svg.diagonal=function(){var c=lb,p=ob,x=sb;function A(S,L){var R=c.call(this,S,L),E=p.call(this,S,L),N=(R.y+E.y)/2,W=[R,{x:R.x,y:N},{x:E.x,y:N},E];return W=W.map(x),"M"+W[0]+"C"+W[1]+" "+W[2]+" "+W[3]}return A.source=function(S){return arguments.length?(c=Rr(S),A):c},A.target=function(S){return arguments.length?(p=Rr(S),A):p},A.projection=function(S){return arguments.length?(x=S,A):x},A};function sb(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),p=sb,x=c.projection;return c.projection=function(A){return arguments.length?x(rI(p=A)):p},c};function rI(c){return function(){var p=c.apply(this,arguments),x=p[0],A=p[1]-sr;return[x*Math.cos(A),x*Math.sin(A)]}}e.svg.symbol=function(){var c=aI,p=tI;function x(A,S){return(fb.get(c.call(this,A,S))||ub)(p.call(this,A,S))}return x.type=function(A){return arguments.length?(c=Rr(A),x):c},x.size=function(A){return arguments.length?(p=Rr(A),x):p},x};function tI(){return 64}function aI(){return"circle"}function ub(c){var p=Math.sqrt(c/Pe);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var fb=e.map({circle:ub,cross:function(c){var p=Math.sqrt(c/5)/2;return"M"+-3*p+","+-p+"H"+-p+"V"+-3*p+"H"+p+"V"+-p+"H"+3*p+"V"+p+"H"+p+"V"+3*p+"H"+-p+"V"+p+"H"+-3*p+"Z"},diamond:function(c){var p=Math.sqrt(c/(2*cb)),x=p*cb;return"M0,"+-p+"L"+x+",0 0,"+p+" "+-x+",0Z"},square:function(c){var p=Math.sqrt(c)/2;return"M"+-p+","+-p+"L"+p+","+-p+" "+p+","+p+" "+-p+","+p+"Z"},"triangle-down":function(c){var p=Math.sqrt(c/vv),x=p*vv/2;return"M0,"+x+"L"+p+","+-x+" "+-p+","+-x+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/vv),x=p*vv/2;return"M0,"+-x+"L"+p+","+x+" "+-p+","+x+"Z"}});e.svg.symbolTypes=fb.keys();var vv=Math.sqrt(3),cb=Math.tan(30*Mr);ge.transition=function(c){for(var p=to||++hb,x=Z1(c),A=[],S,L,R=dv||{time:Date.now(),ease:zN,delay:0,duration:250},E=-1,N=this.length;++E0;)j[--_e].call(c,ue);if(se>=1)return R.event&&R.event.end.call(c,c.__data__,p),--L.count?delete L[A]:delete c[x],1}R||(E=S.time,N=$c(ee,0,E),R=L[A]={tween:new b,time:E,timer:N,delay:S.delay,duration:S.duration,ease:S.ease,index:p},S=null,++L.count)}e.svg.axis=function(){var c=e.scale.linear(),p=db,x=6,A=6,S=3,L=[10],R=null,E;function N(W){W.each(function(){var X=e.select(this),j=this.__chart__||c,ee=this.__chart__=c.copy(),de=R==null?ee.ticks?ee.ticks.apply(ee,L):ee.domain():R,we=E==null?ee.tickFormat?ee.tickFormat.apply(ee,L):V:E,te=X.selectAll(".tick").data(de,ee),se=te.enter().insert("g",".domain").attr("class","tick").style("opacity",oe),ue=e.transition(te.exit()).style("opacity",oe).remove(),_e=e.transition(te.order()).style("opacity",1),Te=Math.max(x,0)+S,ve,Ye=lv(ee),nr=X.selectAll(".domain").data([0]),fr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));se.append("line"),se.append("text");var lr=se.select("line"),dr=_e.select("line"),pr=te.select("text").text(we),Cr=se.select("text"),mr=_e.select("text"),Tr=p==="top"||p==="left"?-1:1,Kr,Ct,et,rr;if(p==="bottom"||p==="top"?(ve=lI,Kr="x",et="y",Ct="x2",rr="y2",pr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),fr.attr("d","M"+Ye[0]+","+Tr*A+"V0H"+Ye[1]+"V"+Tr*A)):(ve=oI,Kr="y",et="x",Ct="y2",rr="x2",pr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),fr.attr("d","M"+Tr*A+","+Ye[0]+"H0V"+Ye[1]+"H"+Tr*A)),lr.attr(rr,Tr*x),Cr.attr(et,Tr*Te),dr.attr(Ct,0).attr(rr,Tr*x),mr.attr(Kr,0).attr(et,Tr*Te),ee.rangeBand){var Lr=ee,qr=Lr.rangeBand()/2;j=ee=function(Qr){return Lr(Qr)+qr}}else j.rangeBand?j=ee:ue.call(ve,ee,j);se.call(ve,j,ee),_e.call(ve,ee,ee)})}return N.scale=function(W){return arguments.length?(c=W,N):c},N.orient=function(W){return arguments.length?(p=W in iI?W+"":db,N):p},N.ticks=function(){return arguments.length?(L=t(arguments),N):L},N.tickValues=function(W){return arguments.length?(R=W,N):R},N.tickFormat=function(W){return arguments.length?(E=W,N):E},N.tickSize=function(W){var X=arguments.length;return X?(x=+W,A=+arguments[X-1],N):x},N.innerTickSize=function(W){return arguments.length?(x=+W,N):x},N.outerTickSize=function(W){return arguments.length?(A=+W,N):A},N.tickPadding=function(W){return arguments.length?(S=+W,N):S},N.tickSubdivide=function(){return arguments.length&&N},N};var db="bottom",iI={top:1,right:1,bottom:1,left:1};function lI(c,p,x){c.attr("transform",function(A){var S=p(A);return"translate("+(isFinite(S)?S:x(A))+",0)"})}function oI(c,p,x){c.attr("transform",function(A){var S=p(A);return"translate(0,"+(isFinite(S)?S:x(A))+")"})}e.svg.brush=function(){var c=ye(X,"brushstart","brush","brushend"),p=null,x=null,A=[0,0],S=[0,0],L,R,E=!0,N=!0,W=J1[0];function X(te){te.each(function(){var se=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),ue=se.selectAll(".background").data([0]);ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),se.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=se.selectAll(".resize").data(W,V);_e.exit().remove(),_e.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return sI[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_e.style("display",X.empty()?"none":null);var Te=e.transition(se),ve=e.transition(ue),Ye;p&&(Ye=lv(p),ve.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),ee(Te)),x&&(Ye=lv(x),ve.attr("y",Ye[0]).attr("height",Ye[1]-Ye[0]),de(Te)),j(Te)})}X.event=function(te){te.each(function(){var se=c.of(this,arguments),ue={x:A,y:S,i:L,j:R},_e=this.__chart__||ue;this.__chart__=ue,to?e.select(this).transition().each("start.brush",function(){L=_e.i,R=_e.j,A=_e.x,S=_e.y,se({type:"brushstart"})}).tween("brush:brush",function(){var Te=nv(A,ue.x),ve=nv(S,ue.y);return L=R=null,function(Ye){A=ue.x=Te(Ye),S=ue.y=ve(Ye),se({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ue.i,R=ue.j,se({type:"brush",mode:"resize"}),se({type:"brushend"})}):(se({type:"brushstart"}),se({type:"brush",mode:"resize"}),se({type:"brushend"}))})};function j(te){te.selectAll(".resize").attr("transform",function(se){return"translate("+A[+/e$/.test(se)]+","+S[+/^s/.test(se)]+")"})}function ee(te){te.select(".extent").attr("x",A[0]),te.selectAll(".extent,.n>rect,.s>rect").attr("width",A[1]-A[0])}function de(te){te.select(".extent").attr("y",S[0]),te.selectAll(".extent,.e>rect,.w>rect").attr("height",S[1]-S[0])}function we(){var te=this,se=e.select(e.event.target),ue=c.of(te,arguments),_e=e.select(te),Te=se.datum(),ve=!/^(n|s)$/.test(Te)&&p,Ye=!/^(e|w)$/.test(Te)&&x,nr=se.classed("extent"),fr=ar(te),lr,dr=e.mouse(te),pr,Cr=e.select(i(te)).on("keydown.brush",Kr).on("keyup.brush",Ct);if(e.event.changedTouches?Cr.on("touchmove.brush",et).on("touchend.brush",Lr):Cr.on("mousemove.brush",et).on("mouseup.brush",Lr),_e.interrupt().selectAll("*").interrupt(),nr)dr[0]=A[0]-dr[0],dr[1]=S[0]-dr[1];else if(Te){var mr=+/w$/.test(Te),Tr=+/^n/.test(Te);pr=[A[1-mr]-dr[0],S[1-Tr]-dr[1]],dr[0]=A[mr],dr[1]=S[Tr]}else e.event.altKey&&(lr=dr.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",se.style("cursor")),ue({type:"brushstart"}),et();function Kr(){e.event.keyCode==32&&(nr||(lr=null,dr[0]-=A[1],dr[1]-=S[1],nr=2),ne())}function Ct(){e.event.keyCode==32&&nr==2&&(dr[0]+=A[1],dr[1]+=S[1],nr=0,ne())}function et(){var qr=e.mouse(te),Qr=!1;pr&&(qr[0]+=pr[0],qr[1]+=pr[1]),nr||(e.event.altKey?(lr||(lr=[(A[0]+A[1])/2,(S[0]+S[1])/2]),dr[0]=A[+(qr[0]{(function(e,r){typeof _v=="object"&&typeof _b!="undefined"?r(_v):(e=e||self,r(e.d3=e.d3||{}))})(_v,function(e){"use strict";var r=new Date,t=new Date;function a(ie,xe,Ke,hr){function ze(Me){return ie(Me=arguments.length===0?new Date:new Date(+Me)),Me}return ze.floor=function(Me){return ie(Me=new Date(+Me)),Me},ze.ceil=function(Me){return ie(Me=new Date(Me-1)),xe(Me,1),ie(Me),Me},ze.round=function(Me){var ke=ze(Me),He=ze.ceil(Me);return Me-ke0))return Ze;do Ze.push(Ue=new Date(+Me)),xe(Me,He),ie(Me);while(Ue=ke)for(;ie(ke),!Me(ke);)ke.setTime(ke-1)},function(ke,He){if(ke>=ke)if(He<0)for(;++He<=0;)for(;xe(ke,-1),!Me(ke););else for(;--He>=0;)for(;xe(ke,1),!Me(ke););})},Ke&&(ze.count=function(Me,ke){return r.setTime(+Me),t.setTime(+ke),ie(r),ie(t),Math.floor(Ke(r,t))},ze.every=function(Me){return Me=Math.floor(Me),!isFinite(Me)||!(Me>0)?null:Me>1?ze.filter(hr?function(ke){return hr(ke)%Me===0}:function(ke){return ze.count(0,ke)%Me===0}):ze}),ze}var n=a(function(){},function(ie,xe){ie.setTime(+ie+xe)},function(ie,xe){return xe-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(xe){xe.setTime(Math.floor(xe/ie)*ie)},function(xe,Ke){xe.setTime(+xe+Ke*ie)},function(xe,Ke){return(Ke-xe)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,v=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,xe){ie.setTime(+ie+xe*l)},function(ie,xe){return(xe-ie)/l},function(ie){return ie.getUTCSeconds()}),h=v.range,d=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,xe){ie.setTime(+ie+xe*o)},function(ie,xe){return(xe-ie)/o},function(ie){return ie.getMinutes()}),m=d.range,y=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,xe){ie.setTime(+ie+xe*s)},function(ie,xe){return(xe-ie)/s},function(ie){return ie.getHours()}),g=y.range,_=a(function(ie){ie.setHours(0,0,0,0)},function(ie,xe){ie.setDate(ie.getDate()+xe)},function(ie,xe){return(xe-ie-(xe.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),T=_.range;function w(ie){return a(function(xe){xe.setDate(xe.getDate()-(xe.getDay()+7-ie)%7),xe.setHours(0,0,0,0)},function(xe,Ke){xe.setDate(xe.getDate()+Ke*7)},function(xe,Ke){return(Ke-xe-(Ke.getTimezoneOffset()-xe.getTimezoneOffset())*o)/f})}var b=w(0),M=w(1),C=w(2),k=w(3),q=w(4),D=w(5),P=w(6),z=b.range,F=M.range,O=C.range,I=k.range,V=q.range,J=D.range,G=P.range,U=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,xe){ie.setMonth(ie.getMonth()+xe)},function(ie,xe){return xe.getMonth()-ie.getMonth()+(xe.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),H=U.range,Q=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,xe){ie.setFullYear(ie.getFullYear()+xe)},function(ie,xe){return xe.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});Q.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(xe){xe.setFullYear(Math.floor(xe.getFullYear()/ie)*ie),xe.setMonth(0,1),xe.setHours(0,0,0,0)},function(xe,Ke){xe.setFullYear(xe.getFullYear()+Ke*ie)})};var Z=Q.range,ne=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,xe){ie.setTime(+ie+xe*o)},function(ie,xe){return(xe-ie)/o},function(ie){return ie.getUTCMinutes()}),ce=ne.range,ye=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,xe){ie.setTime(+ie+xe*s)},function(ie,xe){return(xe-ie)/s},function(ie){return ie.getUTCHours()}),Se=ye.range,re=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,xe){ie.setUTCDate(ie.getUTCDate()+xe)},function(ie,xe){return(xe-ie)/u},function(ie){return ie.getUTCDate()-1}),Ce=re.range;function pe(ie){return a(function(xe){xe.setUTCDate(xe.getUTCDate()-(xe.getUTCDay()+7-ie)%7),xe.setUTCHours(0,0,0,0)},function(xe,Ke){xe.setUTCDate(xe.getUTCDate()+Ke*7)},function(xe,Ke){return(Ke-xe)/f})}var be=pe(0),Ae=pe(1),ge=pe(2),B=pe(3),$=pe(4),Y=pe(5),le=pe(6),he=be.range,me=Ae.range,Re=ge.range,Ee=B.range,Le=$.range,Ve=Y.range,Fe=le.range,Xe=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,xe){ie.setUTCMonth(ie.getUTCMonth()+xe)},function(ie,xe){return xe.getUTCMonth()-ie.getUTCMonth()+(xe.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),De=Xe.range,Ie=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,xe){ie.setUTCFullYear(ie.getUTCFullYear()+xe)},function(ie,xe){return xe.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});Ie.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(xe){xe.setUTCFullYear(Math.floor(xe.getUTCFullYear()/ie)*ie),xe.setUTCMonth(0,1),xe.setUTCHours(0,0,0,0)},function(xe,Ke){xe.setUTCFullYear(xe.getUTCFullYear()+Ke*ie)})};var We=Ie.range;e.timeDay=_,e.timeDays=T,e.timeFriday=D,e.timeFridays=J,e.timeHour=y,e.timeHours=g,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=M,e.timeMondays=F,e.timeMonth=U,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=G,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=z,e.timeThursday=q,e.timeThursdays=V,e.timeTuesday=C,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=I,e.timeWeek=b,e.timeWeeks=z,e.timeYear=Q,e.timeYears=Z,e.utcDay=re,e.utcDays=Ce,e.utcFriday=Y,e.utcFridays=Ve,e.utcHour=ye,e.utcHours=Se,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ne,e.utcMinutes=ce,e.utcMonday=Ae,e.utcMondays=me,e.utcMonth=Xe,e.utcMonths=De,e.utcSaturday=le,e.utcSaturdays=Fe,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=he,e.utcThursday=$,e.utcThursdays=Le,e.utcTuesday=ge,e.utcTuesdays=Re,e.utcWednesday=B,e.utcWednesdays=Ee,e.utcWeek=be,e.utcWeeks=he,e.utcYear=Ie,e.utcYears=We,Object.defineProperty(e,"__esModule",{value:!0})})});var bs=K((wv,wb)=>{(function(e,r){typeof wv=="object"&&typeof wb!="undefined"?r(wv,K1()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(wv,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var oe=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return oe.setFullYear(ae.y),oe}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var oe=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return oe.setUTCFullYear(ae.y),oe}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,oe,qe){return{y:ae,m:oe,d:qe,H:0,M:0,S:0,L:0}}function i(ae){var oe=ae.dateTime,qe=ae.date,Pe=ae.time,$e=ae.periods,cr=ae.days,sr=ae.shortDays,Mr=ae.months,Ir=ae.shortMonths,Zr=h($e),lt=d($e),_t=h(cr),gt=d(cr),Bt=h(sr),zt=d(sr),Oa=h(Mr),va=d(Mr),aa=h(Ir),Ba=d(Ir),na={a:Ya,A:$l,b:sl,B:Gc,c:null,d:U,e:U,f:ce,H,I:Q,j:Z,L:ne,m:ye,M:Se,p:Wc,q:zu,Q:ke,s:He,S:re,u:Ce,U:pe,V:be,w:Ae,W:ge,x:null,X:null,y:B,Y:$,Z:Y,"%":Me},ia={a:Nu,A:Fu,b:qa,B:Xc,c:null,d:le,e:le,f:Le,H:he,I:me,j:Re,L:Ee,m:Ve,M:Fe,p:fs,q:cs,Q:ke,s:He,S:Xe,u:De,U:Ie,V:We,w:ie,W:xe,x:null,X:null,y:Ke,Y:hr,Z:ze,"%":Me},vr={a:oa,A:at,b:Xa,B:Un,c:Jt,d:q,e:q,f:I,H:P,I:P,j:D,L:O,m:k,M:z,p:la,q:C,Q:J,s:G,S:F,u:y,U:g,V:_,w:m,W:T,x:vt,X:Nt,y:b,Y:w,Z:M,"%":V};na.x=ot(qe,na),na.X=ot(Pe,na),na.c=ot(oe,na),ia.x=ot(qe,ia),ia.X=ot(Pe,ia),ia.c=ot(oe,ia);function ot(yr,Gr){return function($r){var or=[],ha=-1,st=0,da=yr.length,Rr,Vn,jl;for($r instanceof Date||($r=new Date(+$r));++ha53)return null;"w"in or||(or.w=1),"Z"in or?(st=a(n(or.y,0,1)),da=st.getUTCDay(),st=da>4||da===0?r.utcMonday.ceil(st):r.utcMonday(st),st=r.utcDay.offset(st,(or.V-1)*7),or.y=st.getUTCFullYear(),or.m=st.getUTCMonth(),or.d=st.getUTCDate()+(or.w+6)%7):(st=t(n(or.y,0,1)),da=st.getDay(),st=da>4||da===0?r.timeMonday.ceil(st):r.timeMonday(st),st=r.timeDay.offset(st,(or.V-1)*7),or.y=st.getFullYear(),or.m=st.getMonth(),or.d=st.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),da="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(da+5)%7:or.w+or.U*7-(da+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function nt(yr,Gr,$r,or){for(var ha=0,st=Gr.length,da=$r.length,Rr,Vn;ha=da)return-1;if(Rr=Gr.charCodeAt(ha++),Rr===37){if(Rr=Gr.charAt(ha++),Vn=vr[Rr in l?Gr.charAt(ha++):Rr],!Vn||(or=Vn(yr,$r,or))<0)return-1}else if(Rr!=$r.charCodeAt(or++))return-1}return or}function la(yr,Gr,$r){var or=Zr.exec(Gr.slice($r));return or?(yr.p=lt[or[0].toLowerCase()],$r+or[0].length):-1}function oa(yr,Gr,$r){var or=Bt.exec(Gr.slice($r));return or?(yr.w=zt[or[0].toLowerCase()],$r+or[0].length):-1}function at(yr,Gr,$r){var or=_t.exec(Gr.slice($r));return or?(yr.w=gt[or[0].toLowerCase()],$r+or[0].length):-1}function Xa(yr,Gr,$r){var or=aa.exec(Gr.slice($r));return or?(yr.m=Ba[or[0].toLowerCase()],$r+or[0].length):-1}function Un(yr,Gr,$r){var or=Oa.exec(Gr.slice($r));return or?(yr.m=va[or[0].toLowerCase()],$r+or[0].length):-1}function Jt(yr,Gr,$r){return nt(yr,oe,Gr,$r)}function vt(yr,Gr,$r){return nt(yr,qe,Gr,$r)}function Nt(yr,Gr,$r){return nt(yr,Pe,Gr,$r)}function Ya(yr){return sr[yr.getDay()]}function $l(yr){return cr[yr.getDay()]}function sl(yr){return Ir[yr.getMonth()]}function Gc(yr){return Mr[yr.getMonth()]}function Wc(yr){return $e[+(yr.getHours()>=12)]}function zu(yr){return 1+~~(yr.getMonth()/3)}function Nu(yr){return sr[yr.getUTCDay()]}function Fu(yr){return cr[yr.getUTCDay()]}function qa(yr){return Ir[yr.getUTCMonth()]}function Xc(yr){return Mr[yr.getUTCMonth()]}function fs(yr){return $e[+(yr.getUTCHours()>=12)]}function cs(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Gr=ot(yr+="",na);return Gr.toString=function(){return yr},Gr},parse:function(yr){var Gr=Jr(yr+="",!1);return Gr.toString=function(){return yr},Gr},utcFormat:function(yr){var Gr=ot(yr+="",ia);return Gr.toString=function(){return yr},Gr},utcParse:function(yr){var Gr=Jr(yr+="",!0);return Gr.toString=function(){return yr},Gr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,oe,qe){var Pe=ae<0?"-":"",$e=(Pe?-ae:ae)+"",cr=$e.length;return Pe+(cr68?1900:2e3),qe+Pe[0].length):-1}function M(ae,oe,qe){var Pe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(oe.slice(qe,qe+6));return Pe?(ae.Z=Pe[1]?0:-(Pe[2]+(Pe[3]||"00")),qe+Pe[0].length):-1}function C(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+1));return Pe?(ae.q=Pe[0]*3-3,qe+Pe[0].length):-1}function k(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.m=Pe[0]-1,qe+Pe[0].length):-1}function q(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.d=+Pe[0],qe+Pe[0].length):-1}function D(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+3));return Pe?(ae.m=0,ae.d=+Pe[0],qe+Pe[0].length):-1}function P(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.H=+Pe[0],qe+Pe[0].length):-1}function z(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.M=+Pe[0],qe+Pe[0].length):-1}function F(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.S=+Pe[0],qe+Pe[0].length):-1}function O(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+3));return Pe?(ae.L=+Pe[0],qe+Pe[0].length):-1}function I(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+6));return Pe?(ae.L=Math.floor(Pe[0]/1e3),qe+Pe[0].length):-1}function V(ae,oe,qe){var Pe=s.exec(oe.slice(qe,qe+1));return Pe?qe+Pe[0].length:-1}function J(ae,oe,qe){var Pe=o.exec(oe.slice(qe));return Pe?(ae.Q=+Pe[0],qe+Pe[0].length):-1}function G(ae,oe,qe){var Pe=o.exec(oe.slice(qe));return Pe?(ae.s=+Pe[0],qe+Pe[0].length):-1}function U(ae,oe){return f(ae.getDate(),oe,2)}function H(ae,oe){return f(ae.getHours(),oe,2)}function Q(ae,oe){return f(ae.getHours()%12||12,oe,2)}function Z(ae,oe){return f(1+r.timeDay.count(r.timeYear(ae),ae),oe,3)}function ne(ae,oe){return f(ae.getMilliseconds(),oe,3)}function ce(ae,oe){return ne(ae,oe)+"000"}function ye(ae,oe){return f(ae.getMonth()+1,oe,2)}function Se(ae,oe){return f(ae.getMinutes(),oe,2)}function re(ae,oe){return f(ae.getSeconds(),oe,2)}function Ce(ae){var oe=ae.getDay();return oe===0?7:oe}function pe(ae,oe){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),oe,2)}function be(ae,oe){var qe=ae.getDay();return ae=qe>=4||qe===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),oe,2)}function Ae(ae){return ae.getDay()}function ge(ae,oe){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),oe,2)}function B(ae,oe){return f(ae.getFullYear()%100,oe,2)}function $(ae,oe){return f(ae.getFullYear()%1e4,oe,4)}function Y(ae){var oe=ae.getTimezoneOffset();return(oe>0?"-":(oe*=-1,"+"))+f(oe/60|0,"0",2)+f(oe%60,"0",2)}function le(ae,oe){return f(ae.getUTCDate(),oe,2)}function he(ae,oe){return f(ae.getUTCHours(),oe,2)}function me(ae,oe){return f(ae.getUTCHours()%12||12,oe,2)}function Re(ae,oe){return f(1+r.utcDay.count(r.utcYear(ae),ae),oe,3)}function Ee(ae,oe){return f(ae.getUTCMilliseconds(),oe,3)}function Le(ae,oe){return Ee(ae,oe)+"000"}function Ve(ae,oe){return f(ae.getUTCMonth()+1,oe,2)}function Fe(ae,oe){return f(ae.getUTCMinutes(),oe,2)}function Xe(ae,oe){return f(ae.getUTCSeconds(),oe,2)}function De(ae){var oe=ae.getUTCDay();return oe===0?7:oe}function Ie(ae,oe){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),oe,2)}function We(ae,oe){var qe=ae.getUTCDay();return ae=qe>=4||qe===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),oe,2)}function ie(ae){return ae.getUTCDay()}function xe(ae,oe){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),oe,2)}function Ke(ae,oe){return f(ae.getUTCFullYear()%100,oe,2)}function hr(ae,oe){return f(ae.getUTCFullYear()%1e4,oe,4)}function ze(){return"+0000"}function Me(){return"%"}function ke(ae){return+ae}function He(ae){return Math.floor(+ae/1e3)}var Ze;Ue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ue(ae){return Ze=i(ae),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var Ge="%Y-%m-%dT%H:%M:%S.%LZ";function ir(ae){return ae.toISOString()}var ar=Date.prototype.toISOString?ir:e.utcFormat(Ge);function er(ae){var oe=new Date(ae);return isNaN(oe)?null:oe}var Ne=+new Date("2000-01-01T00:00:00.000Z")?er:e.utcParse(Ge);e.isoFormat=ar,e.isoParse=Ne,e.timeFormatDefaultLocale=Ue,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Q1=K((Tv,Tb)=>{(function(e,r){typeof Tv=="object"&&typeof Tb!="undefined"?r(Tv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Tv,function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,q){if((D=(k=q?k.toExponential(q-1):k.toExponential()).indexOf("e"))<0)return null;var D,P=k.slice(0,D);return[P.length>1?P[0]+P.slice(2):P,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,q){return function(D,P){for(var z=D.length,F=[],O=0,I=k[0],V=0;z>0&&I>0&&(V+I+1>P&&(I=Math.max(1,P-V)),F.push(D.substring(z-=I,z+I)),!((V+=I+1)>P));)I=k[O=(O+1)%k.length];return F.reverse().join(q)}}function i(k){return function(q){return q.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(q=l.exec(k)))throw new Error("invalid format: "+k);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}o.prototype=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var q=k.length,D=1,P=-1,z;D0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(z+1):k}var f;function v(k,q){var D=t(k,q);if(!D)return k+"";var P=D[0],z=D[1],F=z-(f=Math.max(-8,Math.min(8,Math.floor(z/3)))*3)+1,O=P.length;return F===O?P:F>O?P+new Array(F-O+1).join("0"):F>0?P.slice(0,F)+"."+P.slice(F):"0."+new Array(1-F).join("0")+t(k,Math.max(0,q+F-1))[0]}function h(k,q){var D=t(k,q);if(!D)return k+"";var P=D[0],z=D[1];return z<0?"0."+new Array(-z).join("0")+P:P.length>z+1?P.slice(0,z+1)+"."+P.slice(z+1):P+new Array(z-P.length+2).join("0")}var d={"%":function(k,q){return(k*100).toFixed(q)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,q){return k.toExponential(q)},f:function(k,q){return k.toFixed(q)},g:function(k,q){return k.toPrecision(q)},o:function(k){return Math.round(k).toString(8)},p:function(k,q){return h(k*100,q)},r:h,s:v,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function m(k){return k}var y=Array.prototype.map,g=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(k){var q=k.grouping===void 0||k.thousands===void 0?m:n(y.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",z=k.decimal===void 0?".":k.decimal+"",F=k.numerals===void 0?m:i(y.call(k.numerals,String)),O=k.percent===void 0?"%":k.percent+"",I=k.minus===void 0?"-":k.minus+"",V=k.nan===void 0?"NaN":k.nan+"";function J(U){U=o(U);var H=U.fill,Q=U.align,Z=U.sign,ne=U.symbol,ce=U.zero,ye=U.width,Se=U.comma,re=U.precision,Ce=U.trim,pe=U.type;pe==="n"?(Se=!0,pe="g"):d[pe]||(re===void 0&&(re=12),Ce=!0,pe="g"),(ce||H==="0"&&Q==="=")&&(ce=!0,H="0",Q="=");var be=ne==="$"?D:ne==="#"&&/[boxX]/.test(pe)?"0"+pe.toLowerCase():"",Ae=ne==="$"?P:/[%p]/.test(pe)?O:"",ge=d[pe],B=/[defgprs%]/.test(pe);re=re===void 0?6:/[gprs]/.test(pe)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function $(Y){var le=be,he=Ae,me,Re,Ee;if(pe==="c")he=ge(Y)+he,Y="";else{Y=+Y;var Le=Y<0||1/Y<0;if(Y=isNaN(Y)?V:ge(Math.abs(Y),re),Ce&&(Y=u(Y)),Le&&+Y==0&&Z!=="+"&&(Le=!1),le=(Le?Z==="("?Z:I:Z==="-"||Z==="("?"":Z)+le,he=(pe==="s"?g[8+f/3]:"")+he+(Le&&Z==="("?")":""),B){for(me=-1,Re=Y.length;++meEe||Ee>57){he=(Ee===46?z+Y.slice(me+1):Y.slice(me))+he,Y=Y.slice(0,me);break}}}Se&&!ce&&(Y=q(Y,1/0));var Ve=le.length+Y.length+he.length,Fe=Ve>1)+le+Y+he+Fe.slice(Ve);break;default:Y=Fe+le+Y+he;break}return F(Y)}return $.toString=function(){return U+""},$}function G(U,H){var Q=J((U=o(U),U.type="f",U)),Z=Math.max(-8,Math.min(8,Math.floor(a(H)/3)))*3,ne=Math.pow(10,-Z),ce=g[8+Z/3];return function(ye){return Q(ne*ye)+ce}}return{format:J,formatPrefix:G}}var T;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(k){return T=_(k),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function b(k){return Math.max(0,-a(Math.abs(k)))}function M(k,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(k)))}function C(k,q){return k=Math.abs(k),q=Math.abs(q)-k,Math.max(0,a(q)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=_,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=C,Object.defineProperty(e,"__esModule",{value:!0})})});var Ab=K((Pie,Mb)=>{"use strict";Mb.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Or=K((Rie,kb)=>{"use strict";var yI=Ab();kb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&yI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Vt=K((zie,Sb)=>{"use strict";Sb.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var $1=K((Mv,Cb)=>{(function(e,r){typeof Mv=="object"&&typeof Cb!="undefined"?r(Mv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Mv,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,v,h,d,m;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),g=new Uint8Array(y);for(u=0;u>4,g[f++]=(h&15)<<4|d>>2,g[f++]=(d&3)<<6|m&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var cl=K((Nie,Lb)=>{"use strict";Lb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Ka=K(Xn=>{"use strict";var gI=$1().decode,bI=cl(),j1=Array.isArray,xI=ArrayBuffer,_I=DataView;function qb(e){return xI.isView(e)&&!(e instanceof _I)}Xn.isTypedArray=qb;function Av(e){return j1(e)||qb(e)}Xn.isArrayOrTypedArray=Av;function wI(e){return!Av(e[0])}Xn.isArray1D=wI;Xn.ensureArray=function(e,r){return j1(e)||(e=[]),e.length=r,e};var sa={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};sa.uint8c=sa.u1c;sa.uint8=sa.u1;sa.int8=sa.i1;sa.uint16=sa.u2;sa.int16=sa.i2;sa.uint32=sa.u4;sa.int32=sa.i4;sa.float32=sa.f4;sa.float64=sa.f8;function ep(e){return e.constructor===ArrayBuffer}Xn.isArrayBuffer=ep;Xn.decodeTypedArraySpec=function(e){var r=[],t=TI(e),a=t.dtype,n=sa[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;ep(l)||(l=gI(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,v=+o[0],h=i*v,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var Eb=Or(),tp=Ka().isArrayOrTypedArray;Nb.exports=function(r,t){if(Eb(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var xs=kv(),CI=/^\w*$/,LI=0,Fb=1,Sv=2,Ib=3,lo=4;Hb.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=xs(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|Sv,v.set(h,null);if(f){for(i=d;i{"use strict";var qI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,DI=/^[^\.\[\]]+$/;Bb.exports=function(e,r){for(;r;){var t=e.match(qI);if(t)e=t[1];else if(e.match(DI))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Cv=K((Bie,Ub)=>{"use strict";var EI=Or();Ub.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return EI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var Wb=K((Yie,Gb)=>{"use strict";var Vb=Ka().isArrayOrTypedArray,Xu=cl();Gb.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(Vb(n)&&Vb(i)&&Xu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function PI(e,r){var t=e%r;return t<0?t+r:t}function RI(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Xb.exports={mod:PI,modHalf:RI}});var wn=K((Vie,Lv)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(B,$){if(B=B||"",$=$||{},B instanceof s)return B;if(!(this instanceof s))return new s(B,$);var Y=u(B);this._originalInput=B,this._r=Y.r,this._g=Y.g,this._b=Y.b,this._a=Y.a,this._roundA=n(100*this._a)/100,this._format=$.format||Y.format,this._gradientType=$.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=Y.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var B=this.toRgb();return(B.r*299+B.g*587+B.b*114)/1e3},getLuminance:function(){var B=this.toRgb(),$,Y,le,he,me,Re;return $=B.r/255,Y=B.g/255,le=B.b/255,$<=.03928?he=$/12.92:he=e.pow(($+.055)/1.055,2.4),Y<=.03928?me=Y/12.92:me=e.pow((Y+.055)/1.055,2.4),le<=.03928?Re=le/12.92:Re=e.pow((le+.055)/1.055,2.4),.2126*he+.7152*me+.0722*Re},setAlpha:function(B){return this._a=U(B),this._roundA=n(100*this._a)/100,this},toHsv:function(){var B=d(this._r,this._g,this._b);return{h:B.h*360,s:B.s,v:B.v,a:this._a}},toHsvString:function(){var B=d(this._r,this._g,this._b),$=n(B.h*360),Y=n(B.s*100),le=n(B.v*100);return this._a==1?"hsv("+$+", "+Y+"%, "+le+"%)":"hsva("+$+", "+Y+"%, "+le+"%, "+this._roundA+")"},toHsl:function(){var B=v(this._r,this._g,this._b);return{h:B.h*360,s:B.s,l:B.l,a:this._a}},toHslString:function(){var B=v(this._r,this._g,this._b),$=n(B.h*360),Y=n(B.s*100),le=n(B.l*100);return this._a==1?"hsl("+$+", "+Y+"%, "+le+"%)":"hsla("+$+", "+Y+"%, "+le+"%, "+this._roundA+")"},toHex:function(B){return y(this._r,this._g,this._b,B)},toHexString:function(B){return"#"+this.toHex(B)},toHex8:function(B){return g(this._r,this._g,this._b,this._a,B)},toHex8String:function(B){return"#"+this.toHex8(B)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(H(this._r,255)*100)+"%",g:n(H(this._g,255)*100)+"%",b:n(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%)":"rgba("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:J[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(B){var $="#"+_(this._r,this._g,this._b,this._a),Y=$,le=this._gradientType?"GradientType = 1, ":"";if(B){var he=s(B);Y="#"+_(he._r,he._g,he._b,he._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+$+",endColorstr="+Y+")"},toString:function(B){var $=!!B;B=B||this._format;var Y=!1,le=this._a<1&&this._a>=0,he=!$&&le&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return he?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(Y=this.toRgbString()),B==="prgb"&&(Y=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(Y=this.toHexString()),B==="hex3"&&(Y=this.toHexString(!0)),B==="hex4"&&(Y=this.toHex8String(!0)),B==="hex8"&&(Y=this.toHex8String()),B==="name"&&(Y=this.toName()),B==="hsl"&&(Y=this.toHslString()),B==="hsv"&&(Y=this.toHsvString()),Y||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(B,$){var Y=B.apply(null,[this].concat([].slice.call($)));return this._r=Y._r,this._g=Y._g,this._b=Y._b,this.setAlpha(Y._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(B,$){return B.apply(null,[this].concat([].slice.call($)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},s.fromRatio=function(B,$){if(typeof B=="object"){var Y={};for(var le in B)B.hasOwnProperty(le)&&(le==="a"?Y[le]=B[le]:Y[le]=Se(B[le]));B=Y}return s(B,$)};function u(B){var $={r:0,g:0,b:0},Y=1,le=null,he=null,me=null,Re=!1,Ee=!1;return typeof B=="string"&&(B=Ae(B)),typeof B=="object"&&(be(B.r)&&be(B.g)&&be(B.b)?($=f(B.r,B.g,B.b),Re=!0,Ee=String(B.r).substr(-1)==="%"?"prgb":"rgb"):be(B.h)&&be(B.s)&&be(B.v)?(le=Se(B.s),he=Se(B.v),$=m(B.h,le,he),Re=!0,Ee="hsv"):be(B.h)&&be(B.s)&&be(B.l)&&(le=Se(B.s),me=Se(B.l),$=h(B.h,le,me),Re=!0,Ee="hsl"),B.hasOwnProperty("a")&&(Y=B.a)),Y=U(Y),{ok:Re,format:B.format||Ee,r:i(255,l($.r,0)),g:i(255,l($.g,0)),b:i(255,l($.b,0)),a:Y}}function f(B,$,Y){return{r:H(B,255)*255,g:H($,255)*255,b:H(Y,255)*255}}function v(B,$,Y){B=H(B,255),$=H($,255),Y=H(Y,255);var le=l(B,$,Y),he=i(B,$,Y),me,Re,Ee=(le+he)/2;if(le==he)me=Re=0;else{var Le=le-he;switch(Re=Ee>.5?Le/(2-le-he):Le/(le+he),le){case B:me=($-Y)/Le+($1&&(Xe-=1),Xe<1/6?Ve+(Fe-Ve)*6*Xe:Xe<1/2?Fe:Xe<2/3?Ve+(Fe-Ve)*(2/3-Xe)*6:Ve}if($===0)le=he=me=Y;else{var Ee=Y<.5?Y*(1+$):Y+$-Y*$,Le=2*Y-Ee;le=Re(Le,Ee,B+1/3),he=Re(Le,Ee,B),me=Re(Le,Ee,B-1/3)}return{r:le*255,g:he*255,b:me*255}}function d(B,$,Y){B=H(B,255),$=H($,255),Y=H(Y,255);var le=l(B,$,Y),he=i(B,$,Y),me,Re,Ee=le,Le=le-he;if(Re=le===0?0:Le/le,le==he)me=0;else{switch(le){case B:me=($-Y)/Le+($>1)+720)%360;--$;)le.h=(le.h+he)%360,me.push(s(le));return me}function I(B,$){$=$||6;for(var Y=s(B).toHsv(),le=Y.h,he=Y.s,me=Y.v,Re=[],Ee=1/$;$--;)Re.push(s({h:le,s:he,v:me})),me=(me+Ee)%1;return Re}s.mix=function(B,$,Y){Y=Y===0?0:Y||50;var le=s(B).toRgb(),he=s($).toRgb(),me=Y/100,Re={r:(he.r-le.r)*me+le.r,g:(he.g-le.g)*me+le.g,b:(he.b-le.b)*me+le.b,a:(he.a-le.a)*me+le.a};return s(Re)},s.readability=function(B,$){var Y=s(B),le=s($);return(e.max(Y.getLuminance(),le.getLuminance())+.05)/(e.min(Y.getLuminance(),le.getLuminance())+.05)},s.isReadable=function(B,$,Y){var le=s.readability(B,$),he,me;switch(me=!1,he=ge(Y),he.level+he.size){case"AAsmall":case"AAAlarge":me=le>=4.5;break;case"AAlarge":me=le>=3;break;case"AAAsmall":me=le>=7;break}return me},s.mostReadable=function(B,$,Y){var le=null,he=0,me,Re,Ee,Le;Y=Y||{},Re=Y.includeFallbackColors,Ee=Y.level,Le=Y.size;for(var Ve=0;Ve<$.length;Ve++)me=s.readability(B,$[Ve]),me>he&&(he=me,le=s($[Ve]));return s.isReadable(B,le,{level:Ee,size:Le})||!Re?le:(Y.includeFallbackColors=!1,s.mostReadable(B,["#fff","#000"],Y))};var V=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},J=s.hexNames=G(V);function G(B){var $={};for(var Y in B)B.hasOwnProperty(Y)&&($[B[Y]]=Y);return $}function U(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function H(B,$){ne(B)&&(B="100%");var Y=ce(B);return B=i($,l(0,parseFloat(B))),Y&&(B=parseInt(B*$,10)/100),e.abs(B-$)<1e-6?1:B%$/parseFloat($)}function Q(B){return i(1,l(0,B))}function Z(B){return parseInt(B,16)}function ne(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function ce(B){return typeof B=="string"&&B.indexOf("%")!=-1}function ye(B){return B.length==1?"0"+B:""+B}function Se(B){return B<=1&&(B=B*100+"%"),B}function re(B){return e.round(parseFloat(B)*255).toString(16)}function Ce(B){return Z(B)/255}var pe=function(){var B="[-\\+]?\\d+%?",$="[-\\+]?\\d*\\.\\d+%?",Y="(?:"+$+")|(?:"+B+")",le="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",he="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?";return{CSS_UNIT:new RegExp(Y),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+he),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+he),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+he),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(B){return!!pe.CSS_UNIT.exec(B)}function Ae(B){B=B.replace(r,"").replace(t,"").toLowerCase();var $=!1;if(V[B])B=V[B],$=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Y;return(Y=pe.rgb.exec(B))?{r:Y[1],g:Y[2],b:Y[3]}:(Y=pe.rgba.exec(B))?{r:Y[1],g:Y[2],b:Y[3],a:Y[4]}:(Y=pe.hsl.exec(B))?{h:Y[1],s:Y[2],l:Y[3]}:(Y=pe.hsla.exec(B))?{h:Y[1],s:Y[2],l:Y[3],a:Y[4]}:(Y=pe.hsv.exec(B))?{h:Y[1],s:Y[2],v:Y[3]}:(Y=pe.hsva.exec(B))?{h:Y[1],s:Y[2],v:Y[3],a:Y[4]}:(Y=pe.hex8.exec(B))?{r:Z(Y[1]),g:Z(Y[2]),b:Z(Y[3]),a:Ce(Y[4]),format:$?"name":"hex8"}:(Y=pe.hex6.exec(B))?{r:Z(Y[1]),g:Z(Y[2]),b:Z(Y[3]),format:$?"name":"hex"}:(Y=pe.hex4.exec(B))?{r:Z(Y[1]+""+Y[1]),g:Z(Y[2]+""+Y[2]),b:Z(Y[3]+""+Y[3]),a:Ce(Y[4]+""+Y[4]),format:$?"name":"hex8"}:(Y=pe.hex3.exec(B))?{r:Z(Y[1]+""+Y[1]),g:Z(Y[2]+""+Y[2]),b:Z(Y[3]+""+Y[3]),format:$?"name":"hex"}:!1}function ge(B){var $,Y;return B=B||{level:"AA",size:"small"},$=(B.level||"AA").toUpperCase(),Y=(B.size||"small").toLowerCase(),$!=="AA"&&$!=="AAA"&&($="AA"),Y!=="small"&&Y!=="large"&&(Y="small"),{level:$,size:Y}}typeof Lv!="undefined"&&Lv.exports?Lv.exports=s:window.tinycolor=s})(Math)});var Gt=K(Ku=>{"use strict";var Zb=cl(),Zu=Array.isArray;function zI(e,r){var t,a;for(t=0;t{"use strict";Jb.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Qu=K((Xie,Kb)=>{"use strict";Kb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var ws=K((Zie,jb)=>{"use strict";var Qb=Qu(),$b=ya(),ap=$b({editType:"none"});ap.family.dflt=Qb.HOVERFONT;ap.size.dflt=Qb.HOVERFONTSIZE;jb.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:ap,grouptitlefont:$b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var qv=K((Jie,ex)=>{"use strict";var NI=ya(),$u=ws().hoverlabel,ju=Gt().extendFlat;ex.exports={hoverlabel:{bgcolor:ju({},$u.bgcolor,{arrayOk:!0}),bordercolor:ju({},$u.bordercolor,{arrayOk:!0}),font:NI({arrayOk:!0,editType:"none"}),align:ju({},$u.align,{arrayOk:!0}),namelength:ju({},$u.namelength,{arrayOk:!0}),showarrow:ju({},$u.showarrow),editType:"none"}}});var Zn=K((Kie,rx)=>{"use strict";var FI=ya(),II=qv();rx.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:FI({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:II.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var oo=K((Qie,nx)=>{"use strict";var HI=wn(),Dv={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},tx=Dv.RdBu;function OI(e,r){if(r||(r=tx),!e)return r;function t(){try{e=Dv[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),ax(e)?e:r}function ax(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";so.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];so.defaultLine="#444";so.lightLine="#eee";so.background="#fff";so.borderLine="#BEC8D9";so.lightFraction=100*10/11});var Er=K((jie,ix)=>{"use strict";var Qa=wn(),YI=Or(),UI=Ka().isTypedArray,Kt=ix.exports={},Ev=gi();Kt.defaults=Ev.defaults;var VI=Kt.defaultLine=Ev.defaultLine;Kt.lightLine=Ev.lightLine;var ip=Kt.background=Ev.background;Kt.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};Kt.rgb=function(e){return Kt.tinyRGB(Qa(e))};Kt.opacity=function(e){return e?Qa(e).getAlpha():0};Kt.addOpacity=function(e,r){var t=Qa(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};Kt.combine=function(e,r){var t=Qa(e).toRgb();if(t.a===1)return Qa(e).toRgbString();var a=Qa(r||ip).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Qa(i).toRgbString()};Kt.interpolate=function(e,r,t){var a=Qa(e).toRgb(),n=Qa(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Qa(i).toRgbString()};Kt.contrast=function(e,r,t){var a=Qa(e);a.getAlpha()!==1&&(a=Qa(Kt.combine(e,ip)));var n=a.isDark()?r?a.lighten(r):ip:t?a.darken(t):VI;return n.toString()};Kt.stroke=function(e,r){var t=Qa(r);e.style({stroke:Kt.tinyRGB(t),"stroke-opacity":t.getAlpha()})};Kt.fill=function(e,r){var t=Qa(r);e.style({fill:Kt.tinyRGB(t),"fill-opacity":t.getAlpha()})};Kt.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var Pv=K((ele,lx)=>{"use strict";lx.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Ts=K(ox=>{"use strict";ox.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var cx=K($a=>{"use strict";var lp=Or(),sx=wn(),ux=Gt().extendFlat,GI=Zn(),WI=oo(),XI=Er(),ZI=Pv().DESELECTDIM,Ms=kv(),fx=Ts().counter,JI=_s().modHalf,Jn=Ka().isArrayOrTypedArray,vl=Ka().isTypedArraySpec,hl=Ka().decodeTypedArraySpec;$a.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Jn(e)?e:vl(e)?hl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){vl(e)&&(e=hl(e)),!lp(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}vl(e)&&(e=hl(e)),e%1||!lp(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){vl(e)&&(e=hl(e)),sx(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return sx(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(WI.get(e,t))}},angle:{coerceFunction:function(e,r,t){vl(e)&&(e=hl(e)),e==="auto"?r.set("auto"):lp(e)?r.set(JI(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||fx(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&Jn(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!fx(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var vx={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},hx={};function dx(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),dx(a,r[t]))}}dx(vx,hx);px.exports={configAttributes:vx,dfltConfig:hx}});var sp=K((nle,mx)=>{"use strict";var op=Hr(),KI=Or(),ef=[];mx.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||ef.indexOf(e)!==-1)return;ef.push(e);var a=1e3;KI(r)?a=r:r==="long"&&(a=3e3);var n=op.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(ef);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=ef.indexOf(u);f!==-1&&ef.splice(f,1),op.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=op.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),v=s.split(//g),h=0;h{"use strict";var As=uo().dfltConfig,up=sp(),fp=yx.exports={};fp.log=function(){var e;if(As.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};fp.warn=function(){var e;if(As.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};fp.error=function(){var e;if(As.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var zv=K((lle,gx)=>{"use strict";gx.exports=function(){}});var cp=K((ole,bx)=>{"use strict";bx.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{xx.exports=QI;function QI(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Tx=K((ule,wx)=>{wx.exports=$I;function $I(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var Ax=K((fle,Mx)=>{Mx.exports=jI;function jI(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var vp=K((cle,kx)=>{kx.exports=eH;function eH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Cx=K((vle,Sx)=>{Sx.exports=rH;function rH(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var qx=K((hle,Lx)=>{Lx.exports=tH;function tH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],y=r[13],g=r[14],_=r[15],T=t*o-a*l,w=t*s-n*l,b=t*u-i*l,M=a*s-n*o,C=a*u-i*o,k=n*u-i*s,q=f*y-v*m,D=f*g-h*m,P=f*_-d*m,z=v*g-h*y,F=v*_-d*y,O=h*_-d*g,I=T*O-w*F+b*z+M*P-C*D+k*q;return I?(I=1/I,e[0]=(o*O-s*F+u*z)*I,e[1]=(n*F-a*O-i*z)*I,e[2]=(y*k-g*C+_*M)*I,e[3]=(h*C-v*k-d*M)*I,e[4]=(s*P-l*O-u*D)*I,e[5]=(t*O-n*P+i*D)*I,e[6]=(g*b-m*k-_*w)*I,e[7]=(f*k-h*b+d*w)*I,e[8]=(l*F-o*P+u*q)*I,e[9]=(a*P-t*F-i*q)*I,e[10]=(m*C-y*b+_*T)*I,e[11]=(v*b-f*C-d*T)*I,e[12]=(o*D-l*z-s*q)*I,e[13]=(t*z-a*D+n*q)*I,e[14]=(y*w-m*M-g*T)*I,e[15]=(f*M-v*w+h*T)*I,e):null}});var Ex=K((dle,Dx)=>{Dx.exports=aH;function aH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],y=r[13],g=r[14],_=r[15];return e[0]=o*(h*_-d*g)-v*(s*_-u*g)+y*(s*d-u*h),e[1]=-(a*(h*_-d*g)-v*(n*_-i*g)+y*(n*d-i*h)),e[2]=a*(s*_-u*g)-o*(n*_-i*g)+y*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+v*(n*u-i*s)),e[4]=-(l*(h*_-d*g)-f*(s*_-u*g)+m*(s*d-u*h)),e[5]=t*(h*_-d*g)-f*(n*_-i*g)+m*(n*d-i*h),e[6]=-(t*(s*_-u*g)-l*(n*_-i*g)+m*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(v*_-d*y)-f*(o*_-u*y)+m*(o*d-u*v),e[9]=-(t*(v*_-d*y)-f*(a*_-i*y)+m*(a*d-i*v)),e[10]=t*(o*_-u*y)-l*(a*_-i*y)+m*(a*u-i*o),e[11]=-(t*(o*d-u*v)-l*(a*d-i*v)+f*(a*u-i*o)),e[12]=-(l*(v*g-h*y)-f*(o*g-s*y)+m*(o*h-s*v)),e[13]=t*(v*g-h*y)-f*(a*g-n*y)+m*(a*h-n*v),e[14]=-(t*(o*g-s*y)-l*(a*g-n*y)+m*(a*s-n*o)),e[15]=t*(o*h-s*v)-l*(a*h-n*v)+f*(a*s-n*o),e}});var Rx=K((ple,Px)=>{Px.exports=nH;function nH(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],y=e[14],g=e[15],_=r*l-t*i,T=r*o-a*i,w=r*s-n*i,b=t*o-a*l,M=t*s-n*l,C=a*s-n*o,k=u*m-f*d,q=u*y-v*d,D=u*g-h*d,P=f*y-v*m,z=f*g-h*m,F=v*g-h*y;return _*F-T*z+w*P+b*D-M*q+C*k}});var Nx=K((mle,zx)=>{zx.exports=iH;function iH(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],y=r[12],g=r[13],_=r[14],T=r[15],w=t[0],b=t[1],M=t[2],C=t[3];return e[0]=w*a+b*o+M*v+C*y,e[1]=w*n+b*s+M*h+C*g,e[2]=w*i+b*u+M*d+C*_,e[3]=w*l+b*f+M*m+C*T,w=t[4],b=t[5],M=t[6],C=t[7],e[4]=w*a+b*o+M*v+C*y,e[5]=w*n+b*s+M*h+C*g,e[6]=w*i+b*u+M*d+C*_,e[7]=w*l+b*f+M*m+C*T,w=t[8],b=t[9],M=t[10],C=t[11],e[8]=w*a+b*o+M*v+C*y,e[9]=w*n+b*s+M*h+C*g,e[10]=w*i+b*u+M*d+C*_,e[11]=w*l+b*f+M*m+C*T,w=t[12],b=t[13],M=t[14],C=t[15],e[12]=w*a+b*o+M*v+C*y,e[13]=w*n+b*s+M*h+C*g,e[14]=w*i+b*u+M*d+C*_,e[15]=w*l+b*f+M*m+C*T,e}});var Ix=K((yle,Fx)=>{Fx.exports=lH;function lH(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,v,h,d,m,y,g,_;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],y=r[9],g=r[10],_=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=y,e[10]=g,e[11]=_,e[12]=l*a+f*n+m*i+r[12],e[13]=o*a+v*n+y*i+r[13],e[14]=s*a+h*n+g*i+r[14],e[15]=u*a+d*n+_*i+r[15]),e}});var Ox=K((gle,Hx)=>{Hx.exports=oH;function oH(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Yx=K((ble,Bx)=>{Bx.exports=sH;function sH(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,v,h,d,m,y,g,_,T,w,b,M,C,k,q,D,P,z,F,O,I,V;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],y=r[4],g=r[5],_=r[6],T=r[7],w=r[8],b=r[9],M=r[10],C=r[11],k=n*n*f+u,q=i*n*f+l*s,D=l*n*f-i*s,P=n*i*f-l*s,z=i*i*f+u,F=l*i*f+n*s,O=n*l*f+i*s,I=i*l*f-n*s,V=l*l*f+u,e[0]=v*k+y*q+w*D,e[1]=h*k+g*q+b*D,e[2]=d*k+_*q+M*D,e[3]=m*k+T*q+C*D,e[4]=v*P+y*z+w*F,e[5]=h*P+g*z+b*F,e[6]=d*P+_*z+M*F,e[7]=m*P+T*z+C*F,e[8]=v*O+y*I+w*V,e[9]=h*O+g*I+b*V,e[10]=d*O+_*I+M*V,e[11]=m*O+T*I+C*V,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Vx=K((xle,Ux)=>{Ux.exports=uH;function uH(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+v*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=v*n-o*a,e[11]=h*n-s*a,e}});var Wx=K((_le,Gx)=>{Gx.exports=fH;function fH(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-v*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+v*n,e[11]=s*a+h*n,e}});var Zx=K((wle,Xx)=>{Xx.exports=cH;function cH(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+v*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=v*n-o*a,e[7]=h*n-s*a,e}});var Kx=K((Tle,Jx)=>{Jx.exports=vH;function vH(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var $x=K((Mle,Qx)=>{Qx.exports=hH;function hH(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,v=a*s,h=a*u,d=n*s,m=n*u,y=i*u,g=l*o,_=l*s,T=l*u;return e[0]=1-(d+y),e[1]=v+T,e[2]=h-_,e[3]=0,e[4]=v-T,e[5]=1-(f+y),e[6]=m+g,e[7]=0,e[8]=h+_,e[9]=m-g,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var e_=K((Ale,jx)=>{jx.exports=dH;function dH(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var t_=K((kle,r_)=>{r_.exports=pH;function pH(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var n_=K((Sle,a_)=>{a_.exports=mH;function mH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var l_=K((Cle,i_)=>{i_.exports=yH;function yH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var s_=K((Lle,o_)=>{o_.exports=gH;function gH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var f_=K((qle,u_)=>{u_.exports=bH;function bH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,v=a*o,h=n*l,d=n*o,m=n*s,y=i*l,g=i*o,_=i*s;return e[0]=1-v-m,e[1]=f+_,e[2]=h-g,e[3]=0,e[4]=f-_,e[5]=1-u-m,e[6]=d+y,e[7]=0,e[8]=h+g,e[9]=d-y,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var v_=K((Dle,c_)=>{c_.exports=xH;function xH(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var d_=K((Ele,h_)=>{h_.exports=_H;function _H(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var m_=K((Ple,p_)=>{p_.exports=wH;function wH(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var g_=K((Rle,y_)=>{y_.exports=TH;function TH(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var x_=K((zle,b_)=>{var MH=vp();b_.exports=AH;function AH(e,r,t,a){var n,i,l,o,s,u,f,v,h,d,m=r[0],y=r[1],g=r[2],_=a[0],T=a[1],w=a[2],b=t[0],M=t[1],C=t[2];return Math.abs(m-b)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(g-C)<1e-6?MH(e):(f=m-b,v=y-M,h=g-C,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,n=T*h-w*v,i=w*f-_*h,l=_*v-T*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=v*l-h*i,s=h*n-f*l,u=f*i-v*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*m+i*y+l*g),e[13]=-(o*m+s*y+u*g),e[14]=-(f*m+v*y+h*g),e[15]=1,e)}});var w_=K((Nle,__)=>{__.exports=kH;function kH(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var hp=K((Fle,T_)=>{T_.exports={create:_x(),clone:Tx(),copy:Ax(),identity:vp(),transpose:Cx(),invert:qx(),adjoint:Ex(),determinant:Rx(),multiply:Nx(),translate:Ix(),scale:Ox(),rotate:Yx(),rotateX:Vx(),rotateY:Wx(),rotateZ:Zx(),fromRotation:Kx(),fromRotationTranslation:$x(),fromScaling:e_(),fromTranslation:t_(),fromXRotation:n_(),fromYRotation:l_(),fromZRotation:s_(),fromQuat:f_(),frustum:v_(),perspective:d_(),perspectiveFromFieldOfView:m_(),ortho:g_(),lookAt:x_(),str:w_()}});var Nv=K(Lt=>{"use strict";var SH=hp();Lt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var CH=Hr(),M_=fo(),LH=Nv(),qH=hp();function DH(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function EH(e){var r=CH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function A_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function PH(e,r){k_("global",e,r)}function k_(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):M_.warn("addStyleRule failed"):M_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function RH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&A_(t)}function zH(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function NH(e){var r=C_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=S_(a);if(n){var i=LH.convertCssMatrix(n);t=qH.multiply(t,t,i)}}),t}function S_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function C_(e){for(var r=[];FH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function FH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function IH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}L_.exports={getGraphDiv:DH,isPlotDiv:EH,removeElement:A_,addStyleRule:PH,addRelatedStyleRule:k_,deleteRelatedStyleRule:RH,setStyleOnHover:zH,getFullTransformMatrix:NH,getElementTransformMatrix:S_,getElementAndAncestors:C_,equalDomRects:IH}});var tf=K((Ole,q_)=>{"use strict";q_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var bi=K((Ble,F_)=>{"use strict";var E_=Gt().extendFlat,HH=cl(),P_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},R_={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},OH=P_.flags.slice().concat(["fullReplot"]),BH=R_.flags.slice().concat("layoutReplot");F_.exports={traces:P_,layout:R_,traceFlags:function(){return D_(OH)},layoutFlags:function(){return D_(BH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";dp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};dp.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var pp=K((Ule,I_)=>{"use strict";I_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var co=K(ks=>{"use strict";var{DATE_FORMAT_LINK:YH,FORMAT_LINK:UH}=pp(),VH=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function GH({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,UH,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,YH,"for details on the date formatting syntax.",VH].join(" ")}ks.templateFormatStringDescription=GH;ks.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>io({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});ks.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>io({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});ks.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});ks.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Hv=K((Wle,V_)=>{"use strict";function dl(e,r){return r?r.d2l(e):e}function H_(e,r){return r?r.l2d(e):e}function WH(e){return e.x0}function XH(e){return e.x1}function ZH(e){return e.y0}function JH(e){return e.y1}function O_(e){return e.x0shift||0}function B_(e){return e.x1shift||0}function Y_(e){return e.y0shift||0}function U_(e){return e.y1shift||0}function Fv(e,r){return dl(e.x1,r)+B_(e)-dl(e.x0,r)-O_(e)}function Iv(e,r,t){return dl(e.y1,t)+U_(e)-dl(e.y0,t)-Y_(e)}function KH(e,r){return Math.abs(Fv(e,r))}function QH(e,r,t){return Math.abs(Iv(e,r,t))}function $H(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Fv(e,r),2)+Math.pow(Iv(e,r,t),2))}function jH(e,r){return H_((dl(e.x1,r)+B_(e)+dl(e.x0,r)+O_(e))/2,r)}function eO(e,r,t){return H_((dl(e.y1,t)+U_(e)+dl(e.y0,t)+Y_(e))/2,t)}function rO(e,r,t){return e.type!=="line"?void 0:Iv(e,r,t)/Fv(e,r)}var tO=["x0","x1","y0","y1","dy","height","ycenter"],aO=["x0","x1","y0","y1","dx","width","xcenter"];V_.exports={x0:WH,x1:XH,y0:ZH,y1:JH,slope:rO,dx:Fv,dy:Iv,width:KH,height:QH,length:$H,xcenter:jH,ycenter:eO,simpleXVariables:tO,simpleYVariables:aO}});var X_=K((Xle,W_)=>{"use strict";var nO=bi().overrideAll,vo=Zn(),G_=ya(),iO=xi().dash,pl=Gt().extendFlat,{shapeTexttemplateAttrs:lO,templatefallbackAttrs:oO}=co(),sO=Hv();W_.exports=nO({newshape:{visible:pl({},vo.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:pl({},vo.legend,{}),legendgroup:pl({},vo.legendgroup,{}),legendgrouptitle:{text:pl({},vo.legendgrouptitle.text,{}),font:G_({})},legendrank:pl({},vo.legendrank,{}),legendwidth:pl({},vo.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:pl({},iO,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:pl({},vo.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:lO({newshape:!0},{keys:Object.keys(sO)}),texttemplatefallback:oO({editType:"arraydraw"}),font:G_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var J_=K((Zle,Z_)=>{"use strict";var uO=xi().dash,fO=Gt().extendFlat;Z_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:fO({},uO,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Ov=K((Jle,K_)=>{"use strict";K_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Ss=K((Kle,e4)=>{"use strict";var mp=ya(),cO=tf(),Bv=gi(),Q_=X_(),$_=J_(),vO=Ov(),j_=Gt().extendFlat,Yv=mp({editType:"calc"});Yv.family.dflt='"Open Sans", verdana, arial, sans-serif';Yv.size.dflt=12;Yv.color.dflt=Bv.defaultLine;e4.exports={font:Yv,title:{text:{valType:"string",editType:"layoutstyle"},font:mp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:mp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:j_(vO({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Bv.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Bv.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Bv.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Q_.newshape,activeshape:Q_.activeshape,newselection:$_.newselection,activeselection:$_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:j_({},cO.transition,{editType:"none"})}});var r4=K(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var br=K(zr=>{"use strict";var Cs=fo(),t4=zv(),a4=cp(),hO=cl(),dO=rf().addStyleRule,n4=Gt(),pO=Zn(),mO=Ss(),yO=n4.extendFlat,yp=n4.extendDeepAll;zr.modules={};zr.allCategories={};zr.allTypes=[];zr.subplotsRegistry={};zr.componentsRegistry={};zr.layoutArrayContainers=[];zr.layoutArrayRegexes=[];zr.traceLayoutAttributes={};zr.localeRegistry={};zr.apiMethodRegistry={};zr.collectableSubplotTypes=null;zr.register=function(r){if(zr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var TO=bs().timeFormat,p4=Or(),gp=fo(),yl=_s().mod,Ds=Vt(),Tn=Ds.BADNUM,ja=Ds.ONEDAY,af=Ds.ONEHOUR,ml=Ds.ONEMIN,qs=Ds.ONESEC,nf=Ds.EPOCHJD,Ui=br(),u4=bs().utcFormat,MO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,AO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,f4=new Date().getFullYear()-70;function Vi(e){return e&&Ui.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}qt.dateTick0=function(e,r){var t=kO(e,!!r);if(r<2)return t;var a=qt.dateTime2ms(t,e);return a+=ja*(r-1),qt.ms2DateTime(a,0,e)};function kO(e,r){return Vi(e)?r?Ui.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ui.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}qt.dfltRange=function(e){return Vi(e)?Ui.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};qt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Vv,Gv;qt.dateTime2ms=function(e,r){if(qt.isJSDate(e)){var t=e.getTimezoneOffset()*ml,a=(e.getUTCMinutes()-e.getMinutes())*ml+(e.getUTCSeconds()-e.getSeconds())*qs+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*ml;t=t-n/2+yl(a-t+n/2,n)}return e=Number(e)-t,e>=Vv&&e<=Gv?e:Tn}if(typeof e!="string"&&typeof e!="number")return Tn;e=String(e);var i=Vi(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?AO:MO);if(!s)return Tn;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return Tn;u=Number(u);var y;try{var g=Ui.getComponentMethod("calendars","getCal")(r);if(o){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=g.newDate(u,g.toMonthIndex(u,f,_),v)}else y=g.newDate(u,Number(f),v)}catch(w){return Tn}return y?(y.toJD()-nf)*ja+h*af+d*ml+m*qs:Tn}u.length===2?u=(Number(u)+2e3-f4)%100+f4:u=Number(u),f-=1;var T=new Date(Date.UTC(2e3,f,v,h,d));return T.setUTCFullYear(u),T.getUTCMonth()!==f||T.getUTCDate()!==v?Tn:T.getTime()+m*qs};Vv=qt.MIN_MS=qt.dateTime2ms("-9999");Gv=qt.MAX_MS=qt.dateTime2ms("9999-12-31 23:59:59.9999");qt.isDateTime=function(e,r){return qt.dateTime2ms(e,r)!==Tn};function Ls(e,r){return String(e+Math.pow(10,r)).slice(1)}var Uv=90*ja,c4=3*af,v4=5*ml;qt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Vv&&e<=Gv))return Tn;r||(r=0);var a=Math.floor(yl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Vi(t)){var v=Math.floor(n/ja)+nf,h=Math.floor(yl(e,ja));try{i=Ui.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=u4("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=Vv+ja&&e<=Gv-ja))return Tn;var r=Math.floor(yl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=TO("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return m4(a,n,i,l,o)};function m4(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Ls(r,2)+":"+Ls(t,2),(a||n)&&(e+=":"+Ls(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Ls(n,i)}return e}qt.cleanDate=function(e,r,t){if(e===Tn)return r;if(qt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Vi(t))return gp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=qt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!qt.isDateTime(e,t))return gp.error("unrecognized date",e),r;return e};var SO=/%\d?f/g,CO=/%h/g,LO={1:"1",2:"1",3:"2",4:"2"};function h4(e,r,t,a){e=e.replace(SO,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(CO,function(){return LO[t("%q")(n)]}),Vi(a))try{e=Ui.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var qO=[59,59.9,59.99,59.999,59.9999];function DO(e,r){var t=yl(e+.05,ja),a=Ls(Math.floor(t/af),2)+":"+Ls(yl(Math.floor(t/ml),60),2);if(r!=="M"){p4(r)||(r=0);var n=Math.min(yl(e/qs,60),qO[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}qt.formatDate=function(e,r,t,a,n,i){if(n=Vi(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return DO(e,t)+` -`+h4(i.dayMonthYear,e,a,n);return h4(r,e,a,n)};var d4=3*ja;qt.incrementMonth=function(e,r,t){t=Vi(t)&&t;var a=yl(e,ja);if(e=Math.round(e-a),t)try{var n=Math.round(e/ja)+nf,i=Ui.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-nf)*ja+a}catch(s){gp.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+d4);return o.setUTCMonth(o.getUTCMonth()+r)+a-d4};qt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Vi(r)&&Ui.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";g4.exports=function(r){return r}});var _p=K(Gi=>{"use strict";var EO=Or(),PO=fo(),RO=bp(),zO=Vt().BADNUM,xp=1e-9;Gi.findBin=function(e,r,t){if(EO(r.start))return t?Math.ceil((e-r.start)/r.size-xp)-1:Math.floor((e-r.start)/r.size+xp);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?NO:FO:s=t?HO:IO,e+=l*xp*(t?-1:1)*(l>=0?1:-1);a90&&PO.log("Long binary search..."),a-1};function NO(e,r){return er}function HO(e,r){return e>=r}Gi.sorterAsc=function(e,r){return e-r};Gi.sorterDes=function(e,r){return r-e};Gi.distinctVals=function(e){var r=e.slice();r.sort(Gi.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===zO;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};Gi.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Gi.findIndexOfMin=function(e,r){r=r||RO;for(var t=1/0,a,n=0;n{"use strict";b4.exports=function(r){return Object.keys(r).sort()}});var x4=K(Dt=>{"use strict";var lf=Or(),OO=Ka().isArrayOrTypedArray;Dt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),lf(r)||(r=!1),OO(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var A4=K((ioe,M4)=>{"use strict";var _4=_s(),Tp=_4.mod,BO=_4.modHalf,of=Math.PI,gl=2*of;function YO(e){return e/180*of}function UO(e){return e/of*180}function Mp(e){return Math.abs(e[1]-e[0])>gl-1e-14}function w4(e,r){return BO(r-e,gl)}function VO(e,r){return Math.abs(w4(e,r))}function T4(e,r){if(Mp(r))return!0;var t,a;r[0]a&&(a+=gl);var n=Tp(e,gl),i=n+gl;return n>=t&&n<=a||i>=t&&i<=a}function GO(e,r,t,a){if(!T4(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Ap(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=Mp([t,a]),s,u,f,v,h;o?(s=0,u=of,f=gl):t{"use strict";ho.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ho.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ho.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ho.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ho.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ho.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var L4=K(po=>{"use strict";var kp=_s().mod;po.segmentsIntersect=C4;function C4(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,v=a-r,h=i-r,d=o-i,m=s*d-f*v;if(m===0)return null;var y=(u*d-f*h)/m,g=(u*v-s*h)/m;return g<0||g>1||y<0||y>1?null:{x:e+s*y,y:r+v*y}}po.segmentDistance=function(r,t,a,n,i,l,o,s){if(C4(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,v=o-i,h=s-l,d=u*u+f*f,m=v*v+h*h,y=Math.min(Wv(u,f,d,i-r,l-t),Wv(u,f,d,o-r,s-t),Wv(v,h,m,r-i,t-l),Wv(v,h,m,a-i,n-l));return Math.sqrt(y)};function Wv(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Xv,Sp,S4;po.getTextLocation=function(r,t,a,n){if((r!==Sp||n!==S4)&&(Xv={},Sp=r,S4=n),Xv[a])return Xv[a];var i=r.getPointAtLength(kp(a-n/2,t)),l=r.getPointAtLength(kp(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(kp(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,v={x:u,y:f,theta:o};return Xv[a]=v,v};po.clearLocationCache=function(){Sp=null};po.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(y){var g=r.getPointAtLength(y);y===0?v=g:y===u&&(h=g);var _=g.xi?g.x-i:0,T=g.yo?g.y-o:0;return Math.sqrt(_*_+T*T)}for(var m=d(s);m;){if(s+=m+a,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+a,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};po.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var Zv=K(sf=>{"use strict";var Wi={};sf.throttle=function(r,t,a){var n=Wi[r],i=Date.now();if(!n){for(var l in Wi)Wi[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};sf.done=function(e){var r=Wi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};sf.clear=function(e){if(e)q4(Wi[e]),delete Wi[e];else for(var r in Wi)sf.clear(r)};function q4(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var E4=K((uoe,D4)=>{"use strict";D4.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var P4=K((foe,Jv)=>{"use strict";Jv.exports=Cp;Jv.exports.isMobile=Cp;Jv.exports.default=Cp;var JO=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,KO=/CrOS/,QO=/android|ipad|playbook|silk/i;function Cp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=JO.test(r)&&!KO.test(r)||!!e.tablet&&QO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var z4=K((coe,R4)=>{"use strict";var $O=Or(),jO=P4();R4.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=eB(),typeof t!="string")return!0;var a=jO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if($O(u)&&(u=+u),u>=13)return!0}}}return a};function eB(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var F4=K((voe,N4)=>{"use strict";var rB=Hr();N4.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=rB.select(this)}),n}});var H4=K((hoe,I4)=>{"use strict";var tB=br();I4.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=tB.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var B4=K((doe,O4)=>{"use strict";O4.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";Y4.exports=function(r){for(var t=iB(r)?nB:aB,a=[],n=0;n{"use strict";V4.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var X4=K((yoe,W4)=>{"use strict";var lB=Or(),oB=Vt().BADNUM,sB=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;W4.exports=function(r){return typeof r=="string"&&(r=r.replace(sB,"")),lB(r)?Number(r):oB}});var Oe=K((goe,l6)=>{"use strict";var uf=Hr(),uB=bs().utcFormat,fB=Q1().format,j4=Or(),e6=Vt(),r6=e6.FP_SAFE,cB=-r6,Z4=e6.BADNUM,fe=l6.exports={};fe.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var J4={};fe.warnBadFormat=function(e){var r=String(e);J4[r]||(J4[r]=1,fe.warn('encountered bad format: "'+r+'"'))};fe.noFormat=function(e){return String(e)};fe.numberFormat=function(e){var r;try{r=fB(fe.adjustFormat(e))}catch(t){return fe.warnBadFormat(e),fe.noFormat}return r};fe.nestedProperty=kv();fe.keyedContainer=Ob();fe.relativeAttr=Yb();fe.isPlainObject=cl();fe.toLogRange=Cv();fe.relinkPrivateKeys=Wb();var bl=Ka();fe.isArrayBuffer=bl.isArrayBuffer;fe.isTypedArray=bl.isTypedArray;fe.isArrayOrTypedArray=bl.isArrayOrTypedArray;fe.isArray1D=bl.isArray1D;fe.ensureArray=bl.ensureArray;fe.concat=bl.concat;fe.maxRowLength=bl.maxRowLength;fe.minRowLength=bl.minRowLength;var t6=_s();fe.mod=t6.mod;fe.modHalf=t6.modHalf;var xl=cx();fe.valObjectMeta=xl.valObjectMeta;fe.coerce=xl.coerce;fe.coerce2=xl.coerce2;fe.coerceFont=xl.coerceFont;fe.coercePattern=xl.coercePattern;fe.coerceHoverinfo=xl.coerceHoverinfo;fe.coerceSelectionMarkerOpacity=xl.coerceSelectionMarkerOpacity;fe.validate=xl.validate;var sn=y4();fe.dateTime2ms=sn.dateTime2ms;fe.isDateTime=sn.isDateTime;fe.ms2DateTime=sn.ms2DateTime;fe.ms2DateTimeLocal=sn.ms2DateTimeLocal;fe.cleanDate=sn.cleanDate;fe.isJSDate=sn.isJSDate;fe.formatDate=sn.formatDate;fe.incrementMonth=sn.incrementMonth;fe.dateTick0=sn.dateTick0;fe.dfltRange=sn.dfltRange;fe.findExactDates=sn.findExactDates;fe.MIN_MS=sn.MIN_MS;fe.MAX_MS=sn.MAX_MS;var mo=_p();fe.findBin=mo.findBin;fe.sorterAsc=mo.sorterAsc;fe.sorterDes=mo.sorterDes;fe.distinctVals=mo.distinctVals;fe.roundUp=mo.roundUp;fe.sort=mo.sort;fe.findIndexOfMin=mo.findIndexOfMin;fe.sortObjectKeys=wp();var Xi=x4();fe.aggNums=Xi.aggNums;fe.len=Xi.len;fe.mean=Xi.mean;fe.geometricMean=Xi.geometricMean;fe.median=Xi.median;fe.midRange=Xi.midRange;fe.variance=Xi.variance;fe.stdev=Xi.stdev;fe.interp=Xi.interp;var Kn=Nv();fe.init2dArray=Kn.init2dArray;fe.transposeRagged=Kn.transposeRagged;fe.dot=Kn.dot;fe.translationMatrix=Kn.translationMatrix;fe.rotationMatrix=Kn.rotationMatrix;fe.rotationXYMatrix=Kn.rotationXYMatrix;fe.apply3DTransform=Kn.apply3DTransform;fe.apply2DTransform=Kn.apply2DTransform;fe.apply2DTransform2=Kn.apply2DTransform2;fe.convertCssMatrix=Kn.convertCssMatrix;fe.inverseTransformMatrix=Kn.inverseTransformMatrix;var _i=A4();fe.deg2rad=_i.deg2rad;fe.rad2deg=_i.rad2deg;fe.angleDelta=_i.angleDelta;fe.angleDist=_i.angleDist;fe.isFullCircle=_i.isFullCircle;fe.isAngleInsideSector=_i.isAngleInsideSector;fe.isPtInsideSector=_i.isPtInsideSector;fe.pathArc=_i.pathArc;fe.pathSector=_i.pathSector;fe.pathAnnulus=_i.pathAnnulus;var Ps=k4();fe.isLeftAnchor=Ps.isLeftAnchor;fe.isCenterAnchor=Ps.isCenterAnchor;fe.isRightAnchor=Ps.isRightAnchor;fe.isTopAnchor=Ps.isTopAnchor;fe.isMiddleAnchor=Ps.isMiddleAnchor;fe.isBottomAnchor=Ps.isBottomAnchor;var Rs=L4();fe.segmentsIntersect=Rs.segmentsIntersect;fe.segmentDistance=Rs.segmentDistance;fe.getTextLocation=Rs.getTextLocation;fe.clearLocationCache=Rs.clearLocationCache;fe.getVisibleSegment=Rs.getVisibleSegment;fe.findPointOnPath=Rs.findPointOnPath;var $v=Gt();fe.extendFlat=$v.extendFlat;fe.extendDeep=$v.extendDeep;fe.extendDeepAll=$v.extendDeepAll;fe.extendDeepNoArrays=$v.extendDeepNoArrays;var Lp=fo();fe.log=Lp.log;fe.warn=Lp.warn;fe.error=Lp.error;var vB=Ts();fe.counterRegex=vB.counter;var qp=Zv();fe.throttle=qp.throttle;fe.throttleDone=qp.done;fe.clearThrottle=qp.clear;var Qn=rf();fe.getGraphDiv=Qn.getGraphDiv;fe.isPlotDiv=Qn.isPlotDiv;fe.removeElement=Qn.removeElement;fe.addStyleRule=Qn.addStyleRule;fe.addRelatedStyleRule=Qn.addRelatedStyleRule;fe.deleteRelatedStyleRule=Qn.deleteRelatedStyleRule;fe.setStyleOnHover=Qn.setStyleOnHover;fe.getFullTransformMatrix=Qn.getFullTransformMatrix;fe.getElementTransformMatrix=Qn.getElementTransformMatrix;fe.getElementAndAncestors=Qn.getElementAndAncestors;fe.equalDomRects=Qn.equalDomRects;fe.clearResponsive=E4();fe.preserveDrawingBuffer=z4();fe.makeTraceGroups=F4();fe._=H4();fe.notifier=sp();fe.filterUnique=B4();fe.filterVisible=U4();fe.pushUnique=cp();fe.increment=G4();fe.cleanNumber=X4();fe.ensureNumber=function(r){return j4(r)?(r=Number(r),r>r6||r=r?!1:j4(e)&&e>=0&&e%1===0};fe.noop=zv();fe.identity=bp();fe.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};fe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};fe.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(fe.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};fe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};fe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};fe.syncOrAsync=function(e,r,t){var a,n;function i(){return fe.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};fe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};fe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};fe.fillArray=function(e,r,t,a){if(a=a||fe.identity,fe.isArrayOrTypedArray(e))for(var n=0;npB.test(window.navigator.userAgent);var mB=/Firefox\/(\d+)\.\d+/;fe.getFirefoxVersion=function(){var e=mB.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};fe.isD3Selection=function(e){return e instanceof uf.selection};fe.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};fe.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};fe.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};fe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var i6=/^\w*$/;fe.templateString=function(e,r){var t={};return e.replace(fe.TEMPLATE_STRING_REGEX,function(a,n){var i;return i6.test(n)?i=r[n]:(t[n]=t[n]||fe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var bB={max:10,count:0,name:"hovertemplate"};fe.hovertemplateString=e=>Dp(yv(io({},e),{opts:bB}));var xB={max:10,count:0,name:"texttemplate"};fe.texttemplateString=e=>Dp(yv(io({},e),{opts:xB}));var _B=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function wB(e){var r=e.match(_B);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var TB={max:10,count:0,name:"texttemplate",parseMultDiv:!0};fe.texttemplateStringForShapes=e=>Dp(yv(io({},e),{opts:TB}));var K4=/^[:|\|]/;function Dp({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(fe.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),v=["_xother_","_yother_"].includes(o),h=["xother_","yother_"].includes(o),d=u||f||h||v;(f||v)&&(o=o.substring(1)),(h||v)&&(o=o.substring(0,o.length-1));let m=null,y=null;if(n.parseMultDiv){var g=wB(o);o=g.key,m=g.op,y=g.number}let _;if(d){if(a[o]===void 0)return"";_=a[o]}else for(let M of e)if(M){if(M.hasOwnProperty(o)){_=M[o];break}if(i6.test(o)||(_=fe.nestedProperty(M,o).get(!0)),_!==void 0)break}if(_===void 0){let{count:M,max:C,name:k}=n,q=t===!1?l:t;return M=Qv&&l<=Q4,u=o>=Qv&&o<=Q4;if(s&&(a=10*a+l-Qv),u&&(n=10*n+o-Qv),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Es=2e9;fe.seedPseudoRandom=function(){Es=2e9};fe.pseudoRandom=function(){var e=Es;return Es=(69069*Es+1)%4294967296,Math.abs(Es-e)<429496729?fe.pseudoRandom():Es/4294967296};fe.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=fe.extractOption(e,r,"htx","hovertext");if(fe.isValidTextValue(n))return a(n);var i=fe.extractOption(e,r,"tx","text");if(fe.isValidTextValue(i))return a(i)};fe.isValidTextValue=function(e){return e||e===0};fe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,fe.strTranslate(n-u*(t+l),i-u*(a+o))+fe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};fe.setTransormAndDisplay=function(e,r){e.attr("transform",fe.getTextTransform(r)),e.style("display",r.scale?null:"none")};fe.ensureUniformFontSize=function(e,r){var t=fe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};fe.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};fe.bigFont=function(e){return Math.round(1.2*e)};var $4=fe.getFirefoxVersion(),MB=$4!==null&&$4<86;fe.getPositionFromD3Event=function(){return MB?[uf.event.layerX,uf.event.layerY]:[uf.event.offsetX,uf.event.offsetY]}});var u6=K(()=>{"use strict";var AB=Oe(),o6={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Ep in o6)s6=Ep.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),AB.addStyleRule(s6,o6[Ep]);var s6,Ep});var Pp=K((woe,f6)=>{f6.exports=!0});var zp=K((Toe,c6)=>{"use strict";var kB=Pp(),Rp;typeof window.matchMedia=="function"?Rp=!window.matchMedia("(hover: none)").matches:Rp=kB;c6.exports=Rp});var r0=K((Moe,Np)=>{"use strict";var zs=typeof Reflect=="object"?Reflect:null,v6=zs&&typeof zs.apply=="function"?zs.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},jv;zs&&typeof zs.ownKeys=="function"?jv=zs.ownKeys:Object.getOwnPropertySymbols?jv=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:jv=function(r){return Object.getOwnPropertyNames(r)};function SB(e){console&&console.warn&&console.warn(e)}var d6=Number.isNaN||function(r){return r!==r};function ht(){ht.init.call(this)}Np.exports=ht;Np.exports.once=DB;ht.EventEmitter=ht;ht.prototype._events=void 0;ht.prototype._eventsCount=0;ht.prototype._maxListeners=void 0;var h6=10;function e0(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ht,"defaultMaxListeners",{enumerable:!0,get:function(){return h6},set:function(e){if(typeof e!="number"||e<0||d6(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");h6=e}});ht.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ht.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||d6(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function p6(e){return e._maxListeners===void 0?ht.defaultMaxListeners:e._maxListeners}ht.prototype.getMaxListeners=function(){return p6(this)};ht.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")v6(s,this,t);else for(var u=s.length,f=x6(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,SB(o)}return e}ht.prototype.addListener=function(r,t){return m6(this,r,t,!1)};ht.prototype.on=ht.prototype.addListener;ht.prototype.prependListener=function(r,t){return m6(this,r,t,!0)};function CB(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y6(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=CB.bind(a);return n.listener=t,a.wrapFn=n,n}ht.prototype.once=function(r,t){return e0(t),this.on(r,y6(this,r,t)),this};ht.prototype.prependOnceListener=function(r,t){return e0(t),this.prependListener(r,y6(this,r,t)),this};ht.prototype.removeListener=function(r,t){var a,n,i,l,o;if(e0(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():LB(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};ht.prototype.off=ht.prototype.removeListener;ht.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function g6(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?qB(n):x6(n,n.length)}ht.prototype.listeners=function(r){return g6(this,r,!0)};ht.prototype.rawListeners=function(r){return g6(this,r,!1)};ht.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):b6.call(e,r)};ht.prototype.listenerCount=b6;function b6(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}ht.prototype.eventNames=function(){return this._eventsCount>0?jv(this._events):[]};function x6(e,r){for(var t=new Array(r),a=0;a{"use strict";var Fp=r0().EventEmitter,PB={init:function(e){if(e._ev instanceof Fp)return e;var r=new Fp,t=new Fp;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var T6=Oe(),RB=uo().dfltConfig;function zB(e,r){for(var t=[],a,n=0;nRB.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Zi.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Zi.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Zi.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";k6.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Is=K(Wt=>{"use strict";var Mn=br(),cf=Oe(),a0=Zn(),Hp=Ss(),NB=Ip(),FB=tf(),IB=uo().configAttributes,S6=bi(),$n=cf.extendDeepAll,Ns=cf.isPlainObject,HB=cf.isArrayOrTypedArray,n0=cf.nestedProperty,OB=cf.valObjectMeta,Op="_isSubplotObj",i0="_isLinkedToArray",BB="_arrayAttrRegexps",L6="_deprecated",Bp=[Op,i0,BB,L6];Wt.IS_SUBPLOT_OBJ=Op;Wt.IS_LINKED_TO_ARRAY=i0;Wt.DEPRECATED=L6;Wt.UNDERSCORE_ATTRS=Bp;Wt.get=function(){var e={};return Mn.allTypes.forEach(function(r){e[r]=UB(r)}),{defs:{valObjects:OB,metaKeys:Bp.concat(["description","role","editType","impliedEdits"]),editType:{traces:S6.traces,layout:S6.layout},impliedEdits:{}},traces:e,layout:VB(),frames:GB(),animation:Fs(FB),config:Fs(IB)}};Wt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Bp.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Wt.isValObject(l)&&Ns(l)&&i!=="impliedEdits"&&Wt.crawl(l,r,n+1,o)}})};Wt.isValObject=function(e){return e&&e.valType!==void 0};Wt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,v){t=t.slice(0,v).concat([u]),a=a.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)HB(v)&&r.push(i+h);else if(a[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!t0(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function t0(e){return e===Math.round(e)&&e>=0}function UB(e){var r,t;r=Mn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=$n({},a0),i=$n({},r.attributes);Wt.crawl(i,function(s,u,f,v,h){n0(n,h).set(void 0),s===void 0&&n0(i,h).set(void 0)}),$n(a,n),Mn.traceIs(e,"noOpacity")&&delete a.opacity,Mn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Mn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,$n(a,i),t.attributes&&$n(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Fs(a)};if(r.layoutAttributes){var o={};$n(o,r.layoutAttributes),l.layoutAttributes=Fs(o)}return r.animatable||Wt.crawl(l,function(s){Wt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function VB(){var e={},r,t;$n(e,Hp);for(r in Mn.subplotsRegistry)if(t=Mn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Hs=Oe(),KB=Zn(),_l="templateitemname",Yp={name:{valType:"string",editType:"none"}};Yp[_l]={valType:"string",editType:"calc"};yo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Yp.name,r[_l]=Yp[_l],r};yo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Hs.coerce(i,{},KB,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};yo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Hs.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};yo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[E6(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},v=f[_l]=u[_l];if(!D6(v))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][_l]=i)}s();function u(d,m){o[d]=m}function f(d,m){i?Hs.nestedProperty(o[l],d).set(m):o[l+"."+d]=m}function v(){var d=o;return s(),d}function h(d,m){d&&f(d,m);var y=v();for(var g in y)Hs.nestedProperty(e,g).set(y[g])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var Qt=K((qoe,P6)=>{"use strict";var vf=Ts().counter;P6.exports={idRegex:{x:vf("x","( domain)?"),y:vf("y","( domain)?")},attrRegex:vf("[xy]axis"),xAxisMatch:vf("xaxis"),yAxisMatch:vf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Xt=K(en=>{"use strict";var QB=br(),Up=Qt();en.id2name=function(r){if(!(typeof r!="string"||!r.match(Up.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};en.name2id=function(r){if(r.match(Up.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};en.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Up.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};en.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=en.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};en.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function R6(e,r){if(r&&r.length){for(var t=0;t{"use strict";function $B(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function jB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}z6.exports={clearOutlineControllers:$B,clearOutline:jB}});var l0=K((Poe,N6)=>{"use strict";N6.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Vp=K(s0=>{"use strict";var o0=br(),Roe=Qt().SUBPLOT_PATTERN;s0.getSubplotCalcData=function(e,r,t){var a=o0.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var eY=br(),Os=Oe();go.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=go.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){F6(e,l,n.cache),n.check=function(){if(i){var f=F6(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Os.isPlainObject(i)?Gp(i,r,l,a+1):r(l,n,i)}})}});var Ft=K((Foe,e7)=>{"use strict";var X6=Hr(),tY=bs().timeFormatLocale,aY=Q1().formatLocale,hf=Or(),nY=$1(),Wr=br(),Z6=Is(),iY=ct(),ur=Oe(),J6=Er(),B6=Vt().BADNUM,rn=Xt(),lY=wl().clearOutline,oY=l0(),Wp=tf(),sY=Ip(),uY=Vp().getModuleCalcData,Y6=ur.relinkPrivateKeys,bo=ur._,Qe=e7.exports={};ur.extendFlat(Qe,Wr);Qe.attributes=Zn();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=ya();Qe.layoutAttributes=Ss();var f0=O6();Qe.executeAPICommand=f0.executeAPICommand;Qe.computeAPICommandBindings=f0.computeAPICommandBindings;Qe.manageCommandObserver=f0.manageCommandObserver;Qe.hasSimpleAPICommandBindings=f0.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Wr.getComponentMethod("annotations","draw")(e),Wr.getComponentMethod("legend","draw")(e),Wr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Wr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:J6.defaultLine,"pointer-events":"all"}).each(function(){var u=X6.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&fY(e,i),l.text(i.text()&&o.text()?" - ":"")}};function fY(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Qe.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Qe.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=X6.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Qe.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var cY=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],vY=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:bo(e,"Click to enter Plot title"),subtitle:bo(e,"Click to enter Plot subtitle"),x:bo(e,"Click to enter X axis title"),y:bo(e,"Click to enter Y axis title"),colorbar:bo(e,"Click to enter Colorscale title"),annotation:bo(e,"new text")},n._traceWord=bo(e,"trace");var h=U6(e,cY);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,m=a.height;Qe.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,h);var y=!i.width||!i.height,g=n.autosize,_=f.autosizable,T=y&&(g||_);T?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!g&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=pY(h,n.separators),n._extraFormat=U6(e,vY),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=dY(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=hY(l,s),Qe.supplyDataDefaults(s,o,i,n);var C=Object.keys(b.x),k=Object.keys(b.y);if(C.length>1&&k.length>1){for(Wr.getComponentMethod("grid","sizeDefaults")(i,n),v=0;v15&&k.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),O=!!(n._has&&n._has("cartesian")),I=F,V=O;I&&!V?a._bgLayer.remove():V&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&lY({_fullLayout:a}),mY(o,n),Y6(n,a),Wr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var J=n._tracePreGUI,G={},U;for(U in J)G[U]="old";for(v=0;v0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var v=Qe.layoutAttributes.width.min,h=Qe.layoutAttributes.height.min;l1,m=!t.height&&Math.abs(a.height-o)>1;(m||d)&&(d&&(a.width=l),m&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Wr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Wr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Wr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=g,t.r/=g)}if(h){var _=(t.t+t.b)/h;_>1&&(t.t/=_,t.b/=_)}var T=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+y},r:{val:w,size:t.r+y},b:{val:M,size:t.b+y},t:{val:b,size:t.t+y}},m[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function gY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=rn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),K6(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var g in h)d[g]||delete h[g];var _=e._fullLayout._reservedMargin;for(var T in _)for(var w in _[T]){var b=_[T][w];l[w]=Math.max(l[w],b)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var M in l){var C=0;for(var k in h)k!=="base"&&hf(h[k][M].size)&&(C=h[k][M].size>C?h[k][M].size:C);var q=Math.max(0,i[M]-C);l[M]=Math.max(0,l[M]-q)}for(var D in h){var P=h[D].l||{},z=h[D].b||{},F=P.val,O=P.size,I=z.val,V=z.size,J=t-l.r-l.l,G=a-l.t-l.b;for(var U in h){if(hf(O)&&h[U].r){var H=h[U].r.val,Q=h[U].r.size;if(H>F){var Z=(O*H+(Q-J)*F)/(H-F),ne=(Q*(1-F)+(O-J)*(1-H))/(H-F);Z+ne>s+u&&(s=Z,u=ne)}}if(hf(V)&&h[U].t){var ce=h[U].t.val,ye=h[U].t.size;if(ce>I){var Se=(V*ce+(ye-G)*I)/(ce-I),re=(ye*(1-I)+(V-G)*(1-ce))/(ce-I);Se+re>v+f&&(v=Se,f=re)}}}}}var Ce=ur.constrain(t-i.l-i.r,Q6,m),pe=ur.constrain(a-i.t-i.b,$6,y),be=Math.max(0,t-Ce),Ae=Math.max(0,a-pe);if(be){var ge=(s+u)/be;ge>1&&(s/=ge,u/=ge)}if(Ae){var B=(v+f)/Ae;B>1&&(v/=B,f/=B)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(v)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(o,n)||gY(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var $=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<$)return Wr.call("_doPlot",e);r._size=o,ur.warn("Too many auto-margin redraws.")}bY(e)};function bY(e){var r=rn.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a1)return!0}return!1};Qe.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ur.isPlainObject(h)){var m={},y;return Object.keys(h).sort().forEach(function(w){if(["_","["].indexOf(w.charAt(0))===-1){if(typeof h[w]=="function"){d&&(m[w]="_function");return}if(t==="keepdata"){if(w.slice(-3)==="src")return}else if(t==="keepstream"){if(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0&&!ur.isPlainObject(h.stream))return}else if(t!=="keepall"&&(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0))return;m[w]=u(h[w],d)}}),m}var g=Array.isArray(h),_=ur.isTypedArray(h);if((g||_)&&h.dtype&&h.shape){var T=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ur.isArrayBuffer(T)?nY.encode(T):T},d)}return g?h.map(function(w){return u(w,d)}):_?ur.simpleMap(h,ur.identity):ur.isJSDate(h)?ur.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var v=o._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Wr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&o(v)}}t.runFn(m),setTimeout(m())})}function o(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Wr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=rn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(M[s].enabled){i._indexToPoints=M[s]._indexToPoints;break}l&&l.calc&&(b=l.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:B6,y:B6}]),b[0].t||(b[0].t={}),b[0].trace=i,u[T]=b}}for(G6(t,a,n),o=0;o{"use strict";xo.xmlns="http://www.w3.org/2000/xmlns/";xo.svg="http://www.w3.org/2000/svg";xo.xlink="http://www.w3.org/1999/xlink";xo.svgAttrs={xmlns:xo.svg,"xmlns:xlink":xo.xlink}});var Ma=K((Hoe,r7)=>{"use strict";r7.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ga=K(An=>{"use strict";var It=Hr(),Ji=Oe(),wY=Ji.strTranslate,Xp=_o(),TY=Ma().LINE_SPACING,MY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;An.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(MY),i=It.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=FY(e.node(),a);s&&e.style("pointer-events","all"),An.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};CY(n[2],f,function(v,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){o(),s();return}var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var g=d.width,_=d.height;m.attr({class:l,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var T=e.node().style.fill||"black",w=m.select("g");w.attr({fill:T,stroke:T});var b=w.node().getBoundingClientRect(),M=b.width,C=b.height;(M>g||C>_)&&(m.style("overflow","hidden"),b=m.node().getBoundingClientRect(),M=b.width,C=b.height);var k=+e.attr("x"),q=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,P=-D/4;if(l[0]==="y")y.attr({transform:"rotate("+[-90,k,q]+")"+wY(-M/2,P-C/2)});else if(l[0]==="l")q=P-C/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)k=0,q=P;else{var z=e.attr("text-anchor");k=k-M*(z==="middle"?.5:z==="end"?1:0),q=q+P-C/2}m.attr({x:k,y:q}),t&&t.call(e,y),s(y)})})):o(),e};var AY=/(<|<|<)/g,kY=/(>|>|>)/g;function SY(e){return e.replace(AY,"\\lt ").replace(kY,"\\gt ")}var t7=[["$","$"],["\\(","\\)"]];function CY(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){Ji.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=Ji.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:t7},displayAlign:"left"})},u=function(){i=Ji.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=t7},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var T="math-output-"+Ji.randstr({},64);o=It.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(SY(e));var w=o.node();return a===2?MathJax.Hub.Typeset(w):MathJax.typeset([w])},d=function(){var T=o.select(a===2?".MathJax_SVG":".MathJax"),w=!T.empty()&&o.select("svg").node();if(!w)Ji.log("There was an error in the tex syntax.",e),t();else{var b=w.getBoundingClientRect(),M;a===2?M=It.select("body").select("#MathJax_SVG_glyphs"):M=T.select("defs"),t(T,M,b)}o.remove()},m=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},g=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},_=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,m,g):a===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),y(),_()}))}var l7={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},LY={sub:"0.3em",sup:"-0.6em"},qY={sub:"-0.21em",sup:"0.42em"},a7="\u200B",n7=["http:","https:","mailto:","",void 0,":"],o7=An.NEWLINES=/(\r\n?|\n)/g,Jp=/(<[^<>]*>)/,Kp=/<(\/?)([^ >]*)(\s+(.*))?>/i,DY=//i;An.BR_TAG_ALL=//gi;var s7=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,u7=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,f7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,EY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function wo(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&c0(a)}var PY=/(^|;)\s*color:/;An.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Jp),o=[],s="",u=0,f=0;fi?o.push(v.slice(0,Math.max(0,y-i))+n):o.push(v.slice(0,y));break}s=""}}return o.join("")};var RY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},zY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function c0(e){return e.replace(zY,function(r,t){var a;return t.charAt(0)==="#"?a=NY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=RY[t],a||r})}An.convertEntities=c0;function NY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function FY(e,r){r=r.replace(o7," ");var t=!1,a=[],n,i=-1;function l(){i++;var C=document.createElementNS(Xp.svg,"tspan");It.select(C).attr({class:"line",dy:i*TY+"em"}),e.appendChild(C),n=C;var k=a;if(a=[{node:C}],k.length>1)for(var q=1;q.",r);return}var k=a.pop();C!==k.type&&Ji.log("Start tag <"+k.type+"> doesnt match end tag <"+C+">. Pretending it did match.",r),n=a[a.length-1].node}var f=DY.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(Jp),h=0;h{"use strict";var IY=Hr(),h0=wn(),pf=Or(),v0=Oe(),v7=Er(),HY=oo().isValid;function OY(e,r,t){var a=r?v0.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(v0.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function g7(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var x7=pp(),YY=x7.FORMAT_LINK,UY=x7.DATE_FORMAT_LINK;function VY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Qp:_7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Qp(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+YY+"."].join(" ")}function _7(e,r){return Qp(e,r)+[" And for dates see: "+UY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}w7.exports={axisHoverFormat:VY,descriptionOnlyNumbers:Qp,descriptionWithDates:_7}});var jn=K((Voe,H7)=>{"use strict";var T7=ya(),Bs=gi(),I7=xi().dash,jp=Gt().extendFlat,M7=ct().templatedArray,Uoe=co().templateFormatStringDescription,A7=d0().descriptionWithDates,GY=Vt().ONEDAY,wi=Qt(),WY=wi.HOUR_PATTERN,XY=wi.WEEKDAY_PATTERN,$p={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},ZY=jp({},$p,{values:$p.values.slice().concat(["sync"])});function k7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var S7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},C7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},L7={valType:"data_array",editType:"ticks"},q7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function D7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function E7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var P7={valType:"color",dflt:Bs.defaultLine,editType:"ticks"},R7={valType:"color",dflt:Bs.lightLine,editType:"ticks"};function z7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var N7=jp({},I7,{editType:"ticks"}),F7={valType:"boolean",editType:"ticks"};H7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Bs.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:T7({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[wi.idRegex.x.toString(),wi.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[wi.idRegex.x.toString(),wi.idRegex.y.toString()],editType:"calc"},rangebreaks:M7("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[XY,WY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:GY},editType:"calc"}),tickmode:ZY,nticks:k7(),tick0:S7,dtick:C7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:L7,ticktext:{valType:"data_array",editType:"ticks"},ticks:q7,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:D7(),tickwidth:E7(),tickcolor:P7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:jp({},I7,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:T7({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:A7("tick label")},tickformatstops:M7("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:A7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Bs.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:F7,gridcolor:R7,gridwidth:z7(),griddash:N7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Bs.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Bs.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",wi.idRegex.x.toString(),wi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",wi.idRegex.x.toString(),wi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:$p,nticks:k7("minor"),tick0:S7,dtick:C7,tickvals:L7,ticks:q7,ticklen:D7("minor"),tickwidth:E7("minor"),tickcolor:P7,gridcolor:R7,gridwidth:z7("minor"),griddash:N7,showgrid:F7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var p0=K((Goe,Y7)=>{"use strict";var dt=jn(),O7=ya(),B7=Gt().extendFlat,JY=bi().overrideAll;Y7.exports=JY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:dt.linecolor,outlinewidth:dt.linewidth,bordercolor:dt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:dt.minor.tickmode,nticks:dt.nticks,tick0:dt.tick0,dtick:dt.dtick,tickvals:dt.tickvals,ticktext:dt.ticktext,ticks:B7({},dt.ticks,{dflt:""}),ticklabeloverflow:B7({},dt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:dt.ticklen,tickwidth:dt.tickwidth,tickcolor:dt.tickcolor,ticklabelstep:dt.ticklabelstep,showticklabels:dt.showticklabels,labelalias:dt.labelalias,tickfont:O7({}),tickangle:dt.tickangle,tickformat:dt.tickformat,tickformatstops:dt.tickformatstops,tickprefix:dt.tickprefix,showtickprefix:dt.showtickprefix,ticksuffix:dt.ticksuffix,showticksuffix:dt.showticksuffix,separatethousands:dt.separatethousands,exponentformat:dt.exponentformat,minexponent:dt.minexponent,showexponent:dt.showexponent,title:{text:{valType:"string"},font:O7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var mf=K((Xoe,V7)=>{"use strict";var KY=p0(),QY=Ts().counter,$Y=wp(),U7=oo().scales,Woe=$Y(U7);function m0(e){return"`"+e+"`"}V7.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?U7[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[a],v="in "+m0(u+f));var h=n?" Has an effect only if "+v+" is set to a numerical array.":"",d=a+"auto",m=a+"min",y=a+"max",g=a+"mid",_=m0(u+d),T=m0(u+m),w=m0(u+y),b=T+" and "+w,M={};M[m]=M[y]=void 0;var C={};C[d]=!1;var k={};return f==="color"&&(k.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},k[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:C},k[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:C},k[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},k.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(k.showscale={valType:"boolean",dflt:l,editType:"calc"},k.colorbar=KY),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:QY("coloraxis"),dflt:null,editType:"calc"}),k}});var rm=K((Zoe,G7)=>{"use strict";var jY=Gt().extendFlat,eU=mf(),em=oo().scales;G7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:em.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:em.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:em.RdBu,editType:"calc"}},coloraxis:jY({_isSubplotObj:!0,editType:"calc"},eU("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var tm=K((Joe,W7)=>{"use strict";var rU=Oe();W7.exports=function(r){return rU.isPlainObject(r.colorbar)}});var im=K(nm=>{"use strict";var am=Or(),X7=Oe(),Z7=Vt(),tU=Z7.ONEDAY,aU=Z7.ONEWEEK;nm.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?tU:1;if(!e)return i;if(am(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=am(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};nm.tick0=function(e,r,t,a){if(r==="date")return X7.cleanDate(e,X7.dateTick0(t,a%aU===0?1:0));if(!(a==="D1"||a==="D2"))return am(e)?Number(e):0}});var lm=K((Qoe,K7)=>{"use strict";var J7=im(),nU=Oe().isArrayOrTypedArray,iU=Ka().isTypedArraySpec,lU=Ka().decodeTypedArraySpec;K7.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(T){var w=o[T];return iU(w)&&(w=lU(w)),w!==void 0?w:(s._template||{})[T]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=nU(d)?"array":h?"linear":"auto",y=a(u+"tickmode",m);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var g=s.dtick=J7.dtick(h,n);s.tick0=J7.tick0(v,n,t.calendar,g)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":l||a("ticktext")}}});var sm=K(($oe,$7)=>{"use strict";var om=Oe(),Q7=jn();$7.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?Q7.minor:Q7,u=i?"minor.":"",f=om.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=om.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=om.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||v||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var um=K((joe,j7)=>{"use strict";j7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var ei=K((ese,e9)=>{"use strict";var y0=Oe(),oU=ct();e9.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=y0.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=oU.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var fm=Oe(),sU=Er().contrast,r9=jn(),uU=um(),fU=ei();t9.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");fm.isPlainObject(l)||delete t.labelalias;var o=uU(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?sU(i.bgColor):f&&f!==r9.color.dflt?f:u.color;if(fm.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");fU(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:cU}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function cU(e,r){function t(n,i){return fm.coerce(e,r,r9.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var vm=K((tse,a9)=>{"use strict";var vU=um();a9.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=vU(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var hm=K((ase,n9)=>{"use strict";var Tl=Oe(),hU=ct(),dU=lm(),pU=sm(),mU=cm(),yU=vm(),gU=p0();n9.exports=function(r,t,a){var n=hU.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,F){return Tl.coerce(i,n,gU,z,F)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),v=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(v?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:v?u:s);var m=l("yref"),y=l("xref"),g=m==="paper",_=y==="paper",T,w,b,M="left";v?(b="middle",M=_?"left":"right",T=_?1.02:1,w=.5):(b=g?"bottom":"top",M="center",T=.5,w=g?1.02:1),Tl.coerce(i,n,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:T}},"x"),Tl.coerce(i,n,{y:{valType:"number",min:g?-2:0,max:g?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",b),l("ypad"),Tl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var C=Tl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":"hide past div"),dU(i,n,l,"linear");var k=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};C.indexOf("inside")!==-1&&(q.bgColor="black"),yU(i,n,l,"linear",q),mU(i,n,l,"linear",q),pU(i,n,l,"linear",q),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:k,P=Tl.extendFlat({},k,{family:D.family,size:Tl.bigFont(D.size)});Tl.coerceFont(l,"title.font",P),l("title.side",v?"top":"right")}});var Ys=K((nse,o9)=>{"use strict";var i9=Or(),pm=Oe(),bU=tm(),xU=hm(),l9=oo().isValid,_U=br().traceIs;function dm(e,r){var t=r.slice(0,r.length-1);return r?pm.nestedProperty(e,t).get()||{}:e}o9.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=dm(r,l),f=dm(t,l),v=dm(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},m=n(l+"coloraxis");if(m){var y=_U(t,"contour")&&pm.nestedProperty(t,"contours.coloring").get()||"heatmap",g=d[m];g?(g[2].push(h),g[0]!==y&&(g[0]=!1,pm.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[y,t,[h]];return}}var _=u[o+"min"],T=u[o+"max"],w=i9(_)&&i9(T)&&_{"use strict";var s9=Oe(),wU=ct(),u9=rm(),TU=Ys();f9.exports=function(r,t){function a(v,h){return s9.coerce(r,t,u9,v,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(v,h){return s9.coerce(i,l,u9.coloraxis,v,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=wU.newContainer(t,s,"coloraxis"),l._name=s,TU(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var MU=Oe(),AU=kn().hasColorscale,kU=kn().extractOpts;v9.exports=function(r,t){function a(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function n(f,v){var h=v.container?MU.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=kU(h),m=d.auto;(m||d.min===void 0)&&a(h,v.min),(m||d.max===void 0)&&a(h,v.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var d9=Or(),mm=Oe(),SU=kn().extractOpts;p9.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?mm.nestedProperty(t,l).get():t,s=SU(o),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return mm.aggNums(Math.min,null,i)},m=function(){return mm.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&d9(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(o._colorAx&&d9(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var ym=K((sse,m9)=>{"use strict";var b0=oo(),Us=kn();m9.exports={moduleType:"component",name:"colorscale",attributes:mf(),layoutAttributes:rm(),supplyLayoutDefaults:c9(),handleDefaults:Ys(),crossTraceDefaults:h9(),calc:g0(),scales:b0.scales,defaultScale:b0.defaultScale,getScale:b0.get,isValidScale:b0.isValid,hasColorscale:Us.hasColorscale,extractOpts:Us.extractOpts,extractScale:Us.extractScale,flipScale:Us.flipScale,makeColorScaleFunc:Us.makeColorScaleFunc,makeColorScaleFuncFromTrace:Us.makeColorScaleFuncFromTrace}});var un=K((use,g9)=>{"use strict";var y9=Oe(),CU=Ka().isTypedArraySpec;g9.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return y9.isPlainObject(r)&&(y9.isArrayOrTypedArray(r.size)||CU(r.size))}}});var x9=K((fse,b9)=>{"use strict";var LU=Or();b9.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return LU(s)&&s>0?Math.max(s,i):0}}});var Ti=K(Aa=>{"use strict";var x0=Oe();Aa.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Aa.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{T9.exports=RU;var gm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},PU=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function RU(e){var r=[];return e.replace(PU,function(t,a,n){var i=a.toLowerCase();for(n=NU(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==gm[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var FU=bm(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ar="M0,0Z",M9=Math.sqrt(2),Ml=Math.sqrt(3),xm=Math.PI,_m=Math.cos,wm=Math.sin;L9.exports={circle:{n:0,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.4,2),n=Je(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.8/M9,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Sr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2/Ml,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2/Ml,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2/Ml,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2/Ml,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),l=Je(e*-.309,2),o=Je(e*.809,2);return Sr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Ml/2,2);return Sr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Ml/2,2);return Sr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.924,2),n=Je(e*.383,2);return Sr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(kr(r))return Ar;var a=e*1.4,n=Je(a*.225,2),i=Je(a*.951,2),l=Je(a*.363,2),o=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),v=Je(a*.809,2),h=Je(a*.382,2);return Sr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+v+"L0,"+h+"L-"+o+","+v+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Sr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*Ml*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*Ml*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.7,2),n=Je(e*1.4,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2),n=Je(e*.7,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e/M9,2);return Sr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.3,2),n=Je(e*.65,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*.85,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e/2,2),n=Je(e,2);return Sr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2);return Sr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Sr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(kr(r))return Ar;var a=xm/2.5,n=2*e*_m(a),i=2*e*wm(a);return Sr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(kr(r))return Ar;var a=xm/4,n=2*e*_m(a),i=2*e*wm(a);return Sr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function kr(e){return e===null}var A9,k9,S9,C9;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(S9===e&&C9===r&&A9===t)return k9;S9=e,C9=r,A9=t;function a(g,_){var T=_m(g),w=wm(g),b=_[0],M=_[1]+(r||0);return[b*T-M*w,b*w+M*T]}for(var n=e/180*xm,i=0,l=0,o=FU(t),s="",u=0;u{"use strict";var $t=Hr(),rt=Oe(),IU=rt.numberFormat,ko=Or(),Cm=wn(),w0=br(),ba=Er(),HU=ym(),gf=rt.strTranslate,T0=ga(),OU=_o(),BU=Ma(),YU=BU.LINE_SPACING,O9=Pv().DESELECTDIM,UU=un(),VU=x9(),GU=Ti().appendArrayPointValue,je=K9.exports={};je.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ba.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Tm(XU(f))),s&&e.style("text-shadow",s==="auto"?T0.makeTextShadow(ba.contrast(i)):Tm(s)),u&&e.style("text-decoration-line",Tm(ZU(u)))};function Tm(e){return e==="none"?void 0:e}var WU={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function XU(e){return WU[e]}function ZU(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}je.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};je.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};je.setRect=function(e,r,t,a,n){e.call(je.setPosition,r,t).call(je.setSize,a,n)};je.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(ko(n)&&ko(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",gf(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=$t.select(this);je.translatePoint(a,n,r,t)})};je.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};je.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=w0.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){je.hideOutsideRangePoint(u,$t.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!ko(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};je.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ba.stroke(r,a||i.color),je.dashLine(r,o,l)};je.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";$t.select(this).call(ba.stroke,t||i.color).call(je.dashLine,o,l)})};je.dashLine=function(e,r,t){t=+t||0,r=je.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};je.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function B9(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=je.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,v=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;je.pattern(e,"point",t,d,o,v,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var g,_;m==="horizontal"?(g={x:i.start,y:0},_={x:i.stop,y:0}):m==="vertical"&&(g={x:0,y:i.start},_={x:0,y:i.stop}),g.x=r._xA.c2p(g.x===void 0?r._extremes.x.min[0].val:g.x,!0),g.y=r._yA.c2p(g.y===void 0?r._extremes.y.min[0].val:g.y,!0),_.x=r._xA.c2p(_.x===void 0?r._extremes.x.max[0].val:_.x,!0),_.y=r._yA.c2p(_.y===void 0?r._extremes.y.max[0].val:_.y,!0),e.call(V9,t,y,"linear",i.colorscale,"fill",g,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(je.gradient,t,y,m,i.colorscale,"fill")}else r.fillcolor&&e.call(ba.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=$t.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};B9(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=$t.select(this);a[0].trace&&B9(n,a[0].trace,r,t)})};var D9=q9();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(D9).forEach(function(e){var r=D9[e],t=r.n;je.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),je.symbolNames[t]=e,je.symbolFuncs[t]=r.f,je.symbolBackOffs[t]=r.backoff||0,r.needLine&&(je.symbolNeedLines[t]=!0),r.noDot?je.symbolNoDot[t]=!0:je.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(je.symbolNoFill[t]=!0)});var JU=je.symbolNames.length,KU="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(ko(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=je.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=JU||e>=400?0:Math.floor(Math.max(e,0))};function Y9(e,r,t,a){var n=e%100;return je.symbolFuncs[n](r,t,a)+(e>=200?KU:"")}var E9=IU("~f"),U9={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};je.gradient=function(e,r,t,a,n,i){var l=U9[a];return V9(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function V9(e,r,t,a,n,i,l,o,s,u){var f=n.length,v;a==="linear"?v={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=je.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=Dm(e,t),v=qm(e,t);r.attr("d",Y9(u,s,f,v))}var h=!1,d,m,y;if(e.so)y=o.outlierwidth,m=o.outliercolor,d=l.outliercolor;else{var g=(o||{}).width;y=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):rt.isArrayOrTypedArray(o.color)?m=ba.defaultLine:m=o.color,rt.isArrayOrTypedArray(l.color)&&(d=ba.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let _=e.mld||(o||{}).dash;if(_&&je.dashLine(r,_,y),e.om)r.call(ba.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var T=l.gradient,w=e.mgt;w?h=!0:w=T&&T.type,rt.isArrayOrTypedArray(w)&&(w=w[0],U9[w]||(w=0));var b=l.pattern,M=je.getPatternAttr,C=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(w&&w!=="none"){var k=e.mgc;k?h=!0:k=T.color;var q=t.uid;h&&(q+="-"+e.i),je.gradient(r,n,q,w,[[0,k],[1,d]],"fill")}else if(C){var D=!1,P=b.fgcolor;!P&&i&&i.color&&(P=i.color,D=!0);var z=M(P,e.i,i&&i.color||null),F=M(b.bgcolor,e.i,null),O=b.fgopacity,I=M(b.size,e.i,8),V=M(b.solidity,e.i,.3);D=D||e.mcc||rt.isArrayOrTypedArray(b.shape)||rt.isArrayOrTypedArray(b.path)||rt.isArrayOrTypedArray(b.bgcolor)||rt.isArrayOrTypedArray(b.fgcolor)||rt.isArrayOrTypedArray(b.size)||rt.isArrayOrTypedArray(b.solidity);var J=t.uid;D&&(J+="-"+e.i),je.pattern(r,"point",n,J,C,I,V,e.mcc,b.fillmode,F,z,O)}else rt.isArrayOrTypedArray(d)?ba.fill(r,d[e.i]):ba.fill(r,d);y&&ba.stroke(r,m)}};je.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=je.tryColorscale(t,""),r.lineScale=je.tryColorscale(t,"line"),w0.traceIs(e,"symbols")&&(r.ms2mrc=UU.isBubble(e)?VU(e):function(){return(t.size||6)/2}),e.selectedpoints&&rt.extendFlat(r,je.makeSelectedPointStyleFns(e)),r};je.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,v=u!==void 0;(rt.isArrayOrTypedArray(o)||f||v)&&(r.selectedOpacityFn=function(b){var M=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:M:v?u:O9*M});var h=n.color,d=i.color,m=l.color;(d||m)&&(r.selectedColorFn=function(b){var M=b.mcc||h;return b.selected?d||M:m||M});var y=n.size,g=i.size,_=l.size,T=g!==void 0,w=_!==void 0;return w0.traceIs(e,"symbols")&&(T||w)&&(r.selectedSizeFn=function(b){var M=b.mrc||y/2;return b.selected?T?g/2:M:w?_/2:M}),r};je.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var v=f.tc||o;return f.selected?s||v:u||(s?v:ba.addOpacity(v,O9))},r};je.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ba.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",Y9(je.symbolNumber(o),s,Dm(l,r),qm(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=$t.select(this),o=0;o0?t:0}je.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=je.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=$t.select(this),u=i?rt.extractOption(o,r,"txt","texttemplate"):rt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(o,r,l):{},h={};GU(h,r,o.i),u=rt.texttemplateString({data:[h,o,r._meta],fallback:r.texttemplatefallback,labels:v,locale:l._d3locale,template:u})}var d=o.tp||r.textposition,m=W9(o,r),y=a?a(o):o.tc||r.textfont.color;s.call(je.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:m,color:y}).text(u).call(T0.convertToTspans,t).call(G9,d,m,o.mrc)})}};je.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedTextStyleFns(r);e.each(function(a){var n=$t.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=W9(a,r);ba.fill(n,i);var s=w0.traceIs(r,"bar-like");G9(n,l,o,a.mrc2||a.mrc,s)})}};var P9=.5;je.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(M<=v&&M>=u||M>=v&&M<=u)&&(e=[b,M])}return e}je.applyBackoff=J9;je.makeTester=function(){var e=rt.ensureSingleById($t.select("body"),"svg","js-plotly-tester",function(t){t.attr(OU.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=rt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});je.tester=e,je.testref=r};je.savedBBoxes={};var Am=0,jU=1e4;je.bBox=function(e,r,t){t||(t=R9(e));var a;if(t){if(a=je.savedBBoxes[t],a)return rt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=R9(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=je.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=je.savedBBoxes[t],a)return rt.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),$t.select(u).attr("transform",null).call(T0.positionText,0,0);var v=u.getBoundingClientRect(),h=je.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return Am>=jU&&(je.savedBBoxes={},Am=0),t&&(je.savedBBoxes[t]=d),Am++,rt.extendFlat({},d)};function R9(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}je.setClipUrl=function(e,r,t){e.attr("clip-path",Lm(r,t))};function Lm(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}je.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};je.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=gf(r,t),l=l.trim(),e[i]("transform",l),l};je.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};je.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var eV=/\s*sc.*/;je.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(eV,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var rV=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=$t.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(rV);r===1&&t===1?a=[]:a=[gf(l,o),"scale("+r+","+t+")",gf(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function qm(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}je.getMarkerStandoff=qm;var yf=Math.atan2,To=Math.cos,Gs=Math.sin;function z9(e,r){var t=r[0],a=r[1];return[t*To(e)-a*Gs(e),t*Gs(e)+a*To(e)]}var N9,F9,I9,H9,km,Sm;function Dm(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||rt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=yf(h[1]-n,h[0]-a),m=yf(v[1]-n,v[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var g=u/180*Math.PI,_=f/180*Math.PI,T=N9/180*Math.PI,w=F9/180*Math.PI,b=T-g,M=To(w)*Gs(b),C=Gs(w)*To(_)-To(w)*Gs(_)*To(b);y=-yf(M,C)-Math.PI,N9=u,F9=f}var k=z9(d,[To(y),0]),q=z9(m,[Gs(y),0]);t=yf(k[1]+q[1],k[0]+q[0])/Math.PI*180,i==="previous"&&!(Sm===r.uid&&e.i===km+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Sm===r.uid&&e.i===km+1&&ko(a)&&ko(n)){var D=a-I9,P=n-H9,z=r.line&&r.line.shape||"",F=z.slice(z.length-1);F==="h"&&(P=0),F==="v"&&(D=0),t+=yf(P,D)/Math.PI*180+90}else t=null}return I9=a,H9=n,km=e.i,Sm=r.uid,t}je.getMarkerAngle=Dm});var bf=K((pse,e8)=>{"use strict";var Ws=Hr(),tV=Or(),aV=Ft(),Em=br(),So=Oe(),Q9=So.strTranslate,M0=tt(),A0=Er(),Xs=ga(),$9=Pv(),nV=Ma().OPPOSITE_SIDE,j9=/ [XY][0-9]* /,Pm=1.6,Rm=1.6;function iV(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),y=!1,g=d&&d.font?d.font:{},_=g.family,T=g.size,w=g.color,b=g.weight,M=g.style,C=g.variant,k=g.textcase,q=g.lineposition,D=g.shadow,P=t.subtitlePropName,z=!!P,F=t.subtitlePlaceholder,O=(n.title||{}).subtitle||{text:"",font:{}},I=(O.text||"").trim(),V=!1,J=1,G=O.font,U=G.family,H=G.size,Q=G.color,Z=G.weight,ne=G.style,ce=G.variant,ye=G.textcase,Se=G.lineposition,re=G.shadow,Ce;i==="title.text"?Ce="titleText":i.indexOf("axis")!==-1?Ce="axisTitleText":i.indexOf("colorbar")!==-1&&(Ce="colorbarTitleText");var pe=e._context.edits[Ce];function be(Fe,Xe){return Fe===void 0||Xe===void 0?!1:Fe.replace(j9," % ")===Xe.replace(j9," % ")}m===""?h=0:be(m,l)&&(pe||(m=""),h=.2,y=!0),z&&(I===""?J=0:be(I,F)&&(pe||(I=""),J=.2,V=!0)),t._meta?m=So.templateString(m,t._meta):a._meta&&(m=So.templateString(m,a._meta));var Ae=m||I||pe,ge;v||(v=So.ensureSingle(a._infolayer,"g","g-"+r),ge=a._hColorbarMoveTitle);var B=v.selectAll("text."+r).data(Ae?[0]:[]);B.enter().append("text"),B.text(m).attr("class",r),B.exit().remove();var $=null,Y=r+"-subtitle",le=I||pe;if(z&&($=v.selectAll("text."+Y).data(le?[0]:[]),$.enter().append("text"),$.text(I).attr("class",Y),$.exit().remove()),!Ae)return v;function he(Fe,Xe){So.syncOrAsync([me,Re],{title:Fe,subtitle:Xe})}function me(Fe){var Xe=Fe.title,De=Fe.subtitle,Ie;!f&&ge&&(f={}),f?(Ie="",f.rotate&&(Ie+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ge)&&(Ie+=Q9(0,(f.offset||0)-(ge||0)))):Ie=null,Xe.attr("transform",Ie);function We(Me){if(Me){var ke=Ws.select(Me.node().parentNode).select("."+Y);if(!ke.empty()){var He=Me.node().getBBox();if(He.height){var Ze=He.y+He.height+Pm*H;ke.attr("y",Ze)}}}}if(Xe.style("opacity",h*A0.opacity(w)).call(M0.font,{color:A0.rgb(w),size:Ws.round(T,2),family:_,weight:b,style:M,variant:C,textcase:k,shadow:D,lineposition:q}).attr(u).call(Xs.convertToTspans,e,We),De&&!De.empty()){var ie=v.select("."+r+"-math-group"),xe=Xe.node().getBBox(),Ke=ie.node()?ie.node().getBBox():void 0,hr=Ke?Ke.y+Ke.height+Pm*H:xe.y+xe.height+Rm*H,ze=So.extendFlat({},u,{y:hr});De.attr("transform",Ie),De.style("opacity",J*A0.opacity(Q)).call(M0.font,{color:A0.rgb(Q),size:Ws.round(H,2),family:U,weight:Z,style:ne,variant:ce,textcase:ye,shadow:re,lineposition:Se}).attr(ze).call(Xs.convertToTspans,e)}return aV.previousPromises(e)}function Re(Fe){var Xe=Fe.title,De=Ws.select(Xe.node().parentNode);if(s&&s.selection&&s.side&&m){De.attr("transform",null);var Ie=nV[s.side],We=s.side==="left"||s.side==="top"?-1:1,ie=tV(s.pad)?s.pad:2,xe=M0.bBox(De.node()),Ke={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var ze in hr)for(var Me in hr[ze]){var ke=hr[ze][Me];Ke[Me]=Math.max(Ke[Me],ke)}var He={left:Ke.l,top:Ke.t,right:a.width-Ke.r,bottom:a.height-Ke.b},Ze=s.maxShift||We*(He[s.side]-xe[s.side]),Ue=0;if(Ze<0)Ue=Ze;else{var Ge=s.offsetLeft||0,ir=s.offsetTop||0;xe.left-=Ge,xe.right-=Ge,xe.top-=ir,xe.bottom-=ir,s.selection.each(function(){var er=M0.bBox(this);So.bBoxIntersect(xe,er,ie)&&(Ue=Math.max(Ue,We*(er[s.side]-xe[Ie])+ie))}),Ue=Math.min(Ze,Ue),n._titleScoot=Math.abs(Ue)}if(Ue>0||Ze<0){var ar={left:[-Ue,0],right:[Ue,0],top:[0,-Ue],bottom:[0,Ue]}[s.side];De.attr("transform",Q9(ar[0],ar[1]))}}}B.call(he,$);function Ee(Fe,Xe){Fe.text(Xe).on("mouseover.opacity",function(){Ws.select(this).transition().duration($9.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ws.select(this).transition().duration($9.HIDE_PLACEHOLDER).style("opacity",0)})}if(pe&&(m?B.on(".opacity",null):(Ee(B,l),y=!0),B.call(Xs.makeEditable,{gd:e}).on("edit",function(Fe){o!==void 0?Em.call("_guiRestyle",e,i,Fe,o):Em.call("_guiRelayout",e,i,Fe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(he)}).on("input",function(Fe){this.text(Fe||" ").call(Xs.positionText,u.x,u.y)}),z)){if(z&&!m){var Le=B.node().getBBox(),Ve=Le.y+Le.height+Rm*H;$.attr("y",Ve)}I?$.on(".opacity",null):(Ee($,F),V=!0),$.call(Xs.makeEditable,{gd:e}).on("edit",function(Fe){Em.call("_guiRelayout",e,"title.subtitle.text",Fe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(he)}).on("input",function(Fe){this.text(Fe||" ").call(Xs.positionText,$.attr("x"),$.attr("y"))})}return B.classed("js-placeholder",y),$&&!$.empty()&&$.classed("js-placeholder",V),v}e8.exports={draw:iV,SUBTITLE_PADDING_EM:Rm,SUBTITLE_PADDING_MATHJAX_EM:Pm}});var P0=K((mse,i8)=>{"use strict";var lV=Hr(),oV=bs().utcFormat,it=Oe(),sV=it.numberFormat,Mi=Or(),Al=it.cleanNumber,uV=it.ms2DateTime,r8=it.dateTime2ms,Ai=it.ensureNumber,t8=it.isArrayOrTypedArray,kl=Vt(),k0=kl.FP_SAFE,ri=kl.BADNUM,fV=kl.LOG_CLIP,cV=kl.ONEWEEK,S0=kl.ONEDAY,C0=kl.ONEHOUR,a8=kl.ONEMIN,n8=kl.ONESEC,L0=Xt(),E0=Qt(),q0=E0.HOUR_PATTERN,D0=E0.WEEKDAY_PATTERN;function xf(e){return Math.pow(10,e)}function zm(e){return e!=null}i8.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&r.range&&r.range.length===2){var C=r.range[0],k=r.range[1];return .5*(C+k-2*fV*Math.abs(C-k))}else return ri}function l(b,M,C,k){if((k||{}).msUTC&&Mi(b))return+b;var q=r8(b,C||r.calendar);if(q===ri)if(Mi(b)){b=+b;var D=Math.floor(it.mod(b+.05,1)*10),P=Math.round(b-D/10);q=r8(new Date(P))+D/10}else return ri;return q}function o(b,M,C){return uV(b,M,C||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(zm(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var M=r._categories.length-1;return r._categoriesMap[b]=M,M}return ri}function f(b,M){for(var C=new Array(M),k=0;kr.range[1]&&(C=!C);for(var k=C?-1:1,q=k*b,D=0,P=0;PF)D=P+1;else{D=q<(z+F)/2?P:P+1;break}}var O=r._B[D]||0;return isFinite(O)?m(b,r._m2,O):0},_=function(b){var M=r._rangebreaks.length;if(!M)return y(b,r._m,r._b);for(var C=0,k=0;kr._rangebreaks[k].pmax&&(C=k+1);return y(b,r._m2,r._B[C])}}r.c2l=r.type==="log"?i:Ai,r.l2c=r.type==="log"?xf:Ai,r.l2p=g,r.p2l=_,r.c2p=r.type==="log"?function(b,M){return g(i(b,M))}:g,r.p2c=r.type==="log"?function(b){return xf(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Al,r.c2d=r.c2r=r.l2d=r.l2r=Ai,r.d2p=r.r2p=function(b){return r.l2p(Al(b))},r.p2d=r.p2r=_,r.cleanPos=Ai):r.type==="log"?(r.d2r=r.d2l=function(b,M){return i(Al(b),M)},r.r2d=r.r2c=function(b){return xf(Al(b))},r.d2c=r.r2l=Al,r.c2d=r.l2r=Ai,r.c2r=i,r.l2d=xf,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return xf(_(b))},r.r2p=function(b){return r.l2p(Al(b))},r.p2r=_,r.cleanPos=Ai):r.type==="date"?(r.d2r=r.r2d=it.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,M,C){return r.l2p(l(b,0,C))},r.p2d=r.p2r=function(b,M,C){return o(_(b),M,C)},r.cleanPos=function(b){return it.cleanDate(b,ri,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var M=d(b);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Ai,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Ai(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var M=h(b);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=Ai,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Ai(b)},r.setupMultiCategory=function(b){var M=r._traceIndices,C,k,q=r._matchGroup;if(q&&r._categories.length===0){for(var D in q)if(D!==a){var P=t[L0.id2name(D)];M=M.concat(P._traceIndices)}}var z=[[0,{}],[0,{}]],F=[];for(C=0;CP[1]&&(k[D?0:1]=C,q[1]=P[1]),q[0]>=q[1])if(M!==void 0){var z=P[0]+1;C!==void 0&&(z=Math.min(z,P[1])),k[D?0:1]=r.l2r(z)}else C!==void 0&&(k[D?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var C=it.nestedProperty(r,b).get(),k,q;if(r.type==="date"?q=it.dfltRange(r.calendar):n==="y"?q=E0.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=M.dfltRange||E0.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!C||C.length!==2){it.nestedProperty(r,b).set(q);return}var D=C[0]===null,P=C[1]===null;for(r.type==="date"&&!r.autorange&&(C[0]=it.cleanDate(C[0],ri,r.calendar),C[1]=it.cleanDate(C[1],ri,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!it.isDateTime(C[k],r.calendar)){r[b]=q;break}if(r.r2l(C[0])===r.r2l(C[1])){var z=it.constrain(r.r2l(C[0]),it.MIN_MS+1e3,it.MAX_MS-1e3);C[0]=r.l2r(z-1e3),C[1]=r.l2r(z+1e3);break}}else{if(!Mi(C[k]))if(!(D||P)&&Mi(C[1-k]))C[k]=C[1-k]*(k?10:.1);else{r[b]=q;break}if(C[k]<-k0?C[k]=-k0:C[k]>k0&&(C[k]=k0),C[0]===C[1]){var F=Math.max(1,Math.abs(C[0]*1e-6));C[0]-=F,C[1]+=F}}},r.setScale=function(b){var M=t._size;if(r.overlaying){var C=L0.getFromId({_fullLayout:t},r.overlaying);r.domain=C.domain}var k=b&&r._r?"_r":"range",q=r.calendar;r.cleanRange(k);var D=r.r2l(r[k][0],q),P=r.r2l(r[k][1],q),z=n==="y";if(z?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-P),r._b=-r._m*P):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,O;if(r._rangebreaks=r.locateBreaks(Math.min(D,P),Math.max(D,P)),r._rangebreaks.length){for(F=0;FP&&(I=!I),I&&r._rangebreaks.reverse();var V=I?-1:1;for(r._m2=V*r._length/(Math.abs(P-D)-r._lBreaks),r._B.push(-r._m2*(z?P:D)),F=0;Fq&&(q+=7,Dq&&(q+=24,D=k&&D=k&&b=re.min&&(nere.max&&(re.max=ce),ye=!1)}ye&&P.push({min:ne,max:ce})}};for(C=0;C{"use strict";var l8=Or(),Nm=Oe(),vV=Vt().BADNUM,R0=Nm.isArrayOrTypedArray,hV=Nm.isDateTime,dV=Nm.cleanNumber,o8=Math.round;u8.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(R0(n)&&!n.length)return"-";if(!i&&bV(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function s8(e){return Math.max(1,(e-1)/1e3)}function gV(e,r){for(var t=e.length,a=s8(t),n=0,i=0,l={},o=0;on*2}function bV(e){return R0(e[0])&&R0(e[1])}});var _f=K((gse,y8)=>{"use strict";var xV=Hr(),h8=Or(),Sl=Oe(),z0=Vt().FP_SAFE,_V=br(),wV=tt(),d8=Xt(),TV=d8.getFromId,MV=d8.isLinked;y8.exports={applyAutorangeOptions:m8,getAutoRange:Im,makePadFn:Hm,doAutoRange:kV,findExtremes:SV,concatExtremes:Ym};function Im(e,r){var t,a,n=[],i=e._fullLayout,l=Hm(i,r,0),o=Hm(i,r,1),s=Ym(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Sl.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(P=w-l(C)-o(k),P>b?z/P>M&&(q=C,D=k,M=z/P):z/w>M&&(q={val:C.val,nopad:1},D={val:k.val,nopad:1},M=z/w));function F(G,U){return Math.max(G,o(U))}if(v===h){var O=v-1,I=v+1;if(_)if(v===0)n=[0,1];else{var V=(v>0?f:u).reduce(F,0),J=v/(1-Math.min(.5,V/w));n=v>0?[0,J]:[J,0]}else T?n=[Math.max(0,O),Math.max(1,I)]:n=[O,I]}else _?(q.val>=0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):T&&(q.val-M*l(q)<0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-q.val-f8(r,C.val,k.val))/(w-l(q)-o(D)),n=[q.val-M*l(q),D.val+M*o(D)];return n=m8(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),Sl.simpleMap(n,r.l2r||Number)}function f8(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),C=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),k=b(t.vpadplus||t.vpad),q=b(t.vpadminus||t.vpad);if(!u){if(T=1/0,w=-1/0,s)for(v=0;v0&&(T=h),h>w&&h-z0&&(T=h),h>w&&h=z;v--)P(v);return{min:a,max:n,opts:t}}function Om(e,r,t,a){p8(e,r,t,a,CV)}function Bm(e,r,t,a){p8(e,r,t,a,LV)}function p8(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function v8(e){return h8(e)&&Math.abs(e)=r}function qV(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&N0(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&N0(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function DV(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&N0(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&N0(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function N0(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=qV(t,r),a=DV(a,r),[t,a]}});var pt=K((xse,O8)=>{"use strict";var Sn=Hr(),Ht=Or(),Zs=Ft(),Tf=br(),gr=Oe(),Js=gr.strTranslate,Co=ga(),EV=bf(),Mf=Er(),fn=tt(),PV=jn(),g8=im(),bse=Qt(),xa=Vt(),RV=xa.ONEMAXYEAR,H0=xa.ONEAVGYEAR,O0=xa.ONEMINYEAR,zV=xa.ONEMAXQUARTER,Wm=xa.ONEAVGQUARTER,B0=xa.ONEMINQUARTER,NV=xa.ONEMAXMONTH,Ks=xa.ONEAVGMONTH,Y0=xa.ONEMINMONTH,cn=xa.ONEWEEK,Pa=xa.ONEDAY,Cl=Pa/2,Si=xa.ONEHOUR,Af=xa.ONEMIN,U0=xa.ONESEC,FV=xa.ONEMILLI,IV=xa.ONEMICROSEC,Lo=xa.MINUS_SIGN,G0=xa.BADNUM,Xm={K:"zeroline"},Zm={K:"gridline",L:"path"},Jm={K:"minor-gridline",L:"path"},L8={K:"tick",L:"path"},b8={K:"tick",L:"text"},x8={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},W0=Ma(),wf=W0.MID_SHIFT,qo=W0.CAP_SHIFT,kf=W0.LINE_SPACING,HV=W0.OPPOSITE_SIDE,V0=3,Be=O8.exports={};Be.setConvert=P0();var OV=Fm(),Ci=Xt(),BV=Ci.idSort,YV=Ci.isLinked;Be.id2name=Ci.id2name;Be.name2id=Ci.name2id;Be.cleanId=Ci.cleanId;Be.list=Ci.list;Be.listIds=Ci.listIds;Be.getFromId=Ci.getFromId;Be.getFromTrace=Ci.getFromTrace;var q8=_f();Be.getAutoRange=q8.getAutoRange;Be.findExtremes=q8.findExtremes;var UV=1e-4;function jm(e){var r=(e[1]-e[0])*UV;return[e[0]-r,e[1]+r]}Be.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},gr.coerce(e,r,u,s)};Be.coerceRefArray=function(e,r,t,a,n,i,l){let o=a.charAt(a.length-1);var s=t._fullLayout._subplots[o+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(h=>h+" domain")),s=s.concat(i||[]),f.length>l?(gr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Be.saveRangeInitial=function(e,r){for(var t=Be.list(e,"",!0),a=!1,n=0;nv*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Be.tickIncrement(e,"M6","reverse")+Pa*1.5:i.exactMonths>l?e=Be.tickIncrement(e,"M1","reverse")+Pa*15.5:e-=Cl;var s=Be.tickIncrement(e,t);if(s<=a)return s}return e}Be.prepMinorTicks=function(e,r,t){var v,h;if(!((v=r.minor)!=null&&v.dtick)){delete e.dtick;var a=r.dtick&&Ht(r._tmin),n;if(a){var i=Be.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=gr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=gr.simpleMap(n,r.l2r),e._isMinor=!0,Be.prepTicks(e,t),a){var o=Ht(r.dtick),s=Ht(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?Um(u,f)?u===2*cn&&f===2*Pa&&(e.dtick=cn):u===2*cn&&f===3*Pa?e.dtick=cn:u===cn&&!(r._input.minor||{}).nticks?e.dtick=Pa:T8(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Um(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Um(u,f)||(e.dtick=T8(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0)};function Um(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function T8(e,r){return Math.abs(e/r-1)<.001}Be.prepTicks=function(e,r){var t=gr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?gr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=gr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Be.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,v=0;f>=O0?u>=O0&&u<=RV?v=u:v=H0:t===Wm&&f>=B0?u>=B0&&u<=zV?v=u:v=Wm:f>=Y0?u>=Y0&&u<=NV?v=u:v=Ks:t===cn&&f>=cn?v=cn:f>=Pa?v=Pa:t===Cl&&f>=Cl?v=Cl:t===Si&&f>=Si&&(v=Si);var h;v>=u&&(v=u,h=!0);var d=n+v;if(r.rangebreaks&&v>0){for(var m=84,y=0,g=0;gcn&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}Be.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||gr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=gr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);M--){var C=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=M?r:gr.extendFlat({},r,b?r.minor:{minor:{}});if(C?Be.prepMinorTicks(k,r,t):Be.prepTicks(k,t),k.tickmode==="array"){M?(g=[],m=M8(r,!C)):(_=[],y=M8(r,!C));continue}if(k.tickmode==="sync"){g=[],m=JV(r);continue}var q=jm(u),D=q[0],P=q[1],z=Ht(k.dtick),F=a==="log"&&!(z||k.dtick.charAt(0)==="L"),O=Be.tickFirst(k,t);if(M){if(r._tmin=O,O=P:V<=P;V=Be.tickIncrement(V,U,f,n)){if(M&&J++,k.rangebreaks&&!f){if(V=h)break}if(g.length>d||V===I)break;I=V;var H={value:V};M?(F&&V!==(V|0)&&(H.simpleLabel=!0),i>1&&J%i&&(H.skipLabel=!0),g.push(H)):(H.minor=!0,_.push(H))}}if(!_||_.length<3)s=!1;else{var Q=(_[2].value-_[1].value)*(o?-1:1);xG(Q,r.tickformat)||(s=!1,_=_.slice(1))}if(!s)T=g;else{var Z=g.concat(_);l&&g.length&&(Z=Z.slice(1)),Z=Z.sort(function(Fe,Xe){return Fe.value-Xe.value}).filter(function(Fe,Xe,De){return Xe===0||Fe.value!==De[Xe-1].value});var ne=Z.map(function(Fe,Xe){return Fe.minor===void 0&&!Fe.skipLabel?Xe:null}).filter(function(Fe){return Fe!==null});ne.forEach(function(Fe){s.map(function(Xe){var De=Fe+Xe;De>=0&&De-1;ge--){if(g[ge].drop){g.splice(ge,1);continue}g[ge].value=Gm(g[ge].value,r);var le=r.c2p(g[ge].value);(B?Y>le-$:Yh||Ieh&&(De.periodX=h),Ien&&hH0)r/=H0,a=n(10),e.dtick="M"+12*ki(r,a,F0);else if(i>Ks)r/=Ks,e.dtick="M"+ki(r,1,A8);else if(i>Pa){if(e.dtick=ki(r,Pa,e._hasDayOfWeekBreaks?[1,2,7,14]:KV),!t){var l=Be.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=gr.dateTick0(e.calendar,2):e.tick0=gr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Si?e.dtick=ki(r,Si,A8):i>Af?e.dtick=ki(r,Af,k8):i>U0?e.dtick=ki(r,U0,k8):(a=n(10),e.dtick=ki(r,a,F0))}else if(e.type==="log"){e.tick0=0;var s=gr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+ki(r,a,F0)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):ay(e)?(e.tick0=0,a=1,e.dtick=ki(r,a,QV)):(e.tick0=0,a=n(10),e.dtick=ki(r,a,F0));if(e.dtick===0&&(e.dtick=1),!Ht(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function R8(e){var r=e.dtick;if(e._tickexponent=0,!Ht(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Pa&&n<=10||r>=Pa*15)e._tickround="d";else if(r>=Af&&n<=16||r>=Si)e._tickround="M";else if(r>=U0&&n<=19||r>=Af)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Ht(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Ht(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Qs(e.exponentformat)&&e.exponentformat!=="SI extended"&&!ey(s)||Qs(e.exponentformat)&&e.exponentformat==="SI extended"&&!ry(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Be.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Ht(r))return gr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return gr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?P8:E8,s=e+n*.01,u=gr.roundUp(gr.mod(s,1),o,t);return Math.floor(s)+Math.log(Sn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Be.tickFirst=function(e,r){var t=e.r2l||Number,a=gr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?g:null};if(i&&gr.isArrayOrTypedArray(e.ticktext)){var v=gr.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=Cf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function jV(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=Sf(Math.pow(10,l),e,n,a);else if(Ht(i)||s==="D"&&(e.minorloglabels==="complete"||gr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(gr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||Qs(m)&&m!=="SI extended"&&ey(h)||Qs(m)&&m==="SI extended"&&ry(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":Lo)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":Lo)+d:(r.text=Sf(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,gr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function eG(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function rG(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function tG(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Sf(r.x,e,n,a)}function aG(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=nG(i);if(l[1]>=100)r.text=Sf(gr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=Lo+r.text)}}}else r.text=Sf(r.x,e,n,a)}function nG(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var N8=["f","p","n","\u03BC","m","","k","M","G","T"],iG=["q","r","y","z","a",...N8,"P","E","Z","Y","R","Q"],Qs=e=>["SI","SI extended","B"].includes(e);function ey(e){return e>14||e<-15}function ry(e){return e>32||e<-30}function lG(e,r){return Qs(r)?!!(r==="SI extended"&&ry(e)||r!=="SI extended"&&ey(e)):!1}function Sf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Be.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Ht(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};R8(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Lo);var v=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+m+"":l==="B"&&o===9?e+="B":Qs(l)&&(e+=l==="SI extended"?iG[o/3+10]:N8[o/3+5])}return n?Lo+e:e}Be.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Ks}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function n(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(v||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return gr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Be.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Be.drawOne(e,u,t);return u._shiftPusher&&$m(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=gr.simpleMap(u._r,u.r2l),f}}}))};Be.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=Be.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),$m(r,m,a,!0),$m(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=bG(r,a));var y=h[f+"axislayer"],g=r._mainLinePosition,_=g+=r._shift,T=r._mainMirrorPosition,w=r._vals=Be.calcTicks(r),b=[r.mirror,_,T].join("_");for(i=0;i0?De.bottom-Fe:0,Xe))));var xe=0,Ke=0;if(r._shiftPusher&&(xe=Math.max(Xe,De.height>0?Le==="l"?Fe-De.left:De.right-Fe:0),r.title.text!==s._dfltTitle[f]&&(Ke=(r._titleStandoff||0)+(r._titleScoot||0),Le==="l"&&(Ke+=C8(r))),r._fullDepth=Math.max(xe,Ke)),r.automargin){Ie={x:0,y:0,r:0,l:0,t:0,b:0};var hr=[0,1],ze=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Le==="b"?Ie[Le]=r._depth:(Ie[Le]=r._depth=Math.max(De.width>0?Fe-De.top:0,Xe),hr.reverse()),De.width>0){var Me=De.right-(r._offset+r._length);Me>0&&(Ie.xr=1,Ie.r=Me);var ke=r._offset-De.left;ke>0&&(Ie.xl=0,Ie.l=ke)}}else if(Le==="l"?(r._depth=Math.max(De.height>0?Fe-De.left:0,Xe),Ie[Le]=r._depth-ze):(r._depth=Math.max(De.height>0?De.right-Fe:0,Xe),Ie[Le]=r._depth+ze,hr.reverse()),De.height>0){var He=De.bottom-(r._offset+r._length);He>0&&(Ie.yb=0,Ie.b=He);var Ze=r._offset-De.top;Ze>0&&(Ie.yt=1,Ie.t=Ze)}Ie[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(Ie[Le]+=C8(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(We={x:0,y:0,r:0,l:0,t:0,b:0},We[Ve]=r.linewidth,r.mirror&&r.mirror!==!0&&(We[Ve]+=Xe),r.mirror===!0||r.mirror==="ticks"?We[v]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(We[v]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Ee&&(ie=Tf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(S8(Ie,r.automargin),S8(We,r.automargin)),Zs.autoMargin(e,ty(r),Ie),Zs.autoMargin(e,I8(r),We),Zs.autoMargin(e,H8(r),ie)}),gr.syncOrAsync(me)}};function S8(e,r){if(e){var t=Object.keys(x8).reduce(function(a,n){return r.indexOf(n)!==-1&&x8[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function oG(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(gr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,v=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*v}return e._id.charAt(0)==="x"?function(h){return Js(n+e._offset+e.l2p(Km(h))+t,i+a)}:function(h){return Js(i+a,n+e._offset+e.l2p(Km(h))+t)}};function Km(e){return e.periodX!==void 0?e.periodX:e.x}function cG(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=V0,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(v+=d*qo,h+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,h+=V0),s&&f==="top"&&(h-=d*(1-qo)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}Be.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Be.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(O){return a.indexOf(O)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),v=i("inside"),h=a==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,y=h?e.ticklen:0;if(v?y*=-1:f&&(y=0),h&&(d+=y,t)){var g=gr.deg2rad(t);d=y*Math.cos(g)+1,m=y*Math.sin(g)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},T,w,b,M,C=0,k=e.side,q=e._id.charAt(0),D=e.tickangle,P;if(q==="x")P=!v&&k==="bottom"||v&&k==="top",M=P?1:-1,v&&(M*=-1),T=m*M,w=r+d*M,b=P?1:-.2,Math.abs(D)===90&&(v?b+=wf:D===-90&&k==="bottom"?b=qo:D===90&&k==="top"?b=wf:b=.5,C=wf/2*(D/90)),_.xFn=function(O){return O.dx+T+C*O.fontSize},_.yFn=function(O){return O.dy+w+O.fontSize*b},_.anchorFn=function(O,I){if(f){if(o)return"end";if(s)return"start"}return!Ht(I)||I===0||I===180?"middle":I*M<0!==v?"end":"start"},_.heightFn=function(O,I,V){return I<-60||I>60?-.5*V:e.side==="top"!==v?-V:0};else if(q==="y"){if(P=!v&&k==="left"||v&&k==="right",M=P?1:-1,v&&(M*=-1),T=d,w=m*M,b=0,!v&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=qo:b=.5),v){var z=Ht(D)?+D:0;if(z!==0){var F=gr.deg2rad(z);C=Math.abs(Math.sin(F))*qo*M,b=0}}_.xFn=function(O){return O.dx+r-(T+O.fontSize*b)*M+C*O.fontSize},_.yFn=function(O){return O.dy+w+O.fontSize*wf},_.anchorFn=function(O,I){return Ht(I)&&Math.abs(I)===90?"middle":P?"end":"start"},_.heightFn=function(O,I,V){return e.side==="right"&&(I*=-1),I<-30?-V:I<30?-.5*V:0}}return _};function X0(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Be.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,X0);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Mf.stroke(Sn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return fn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Z0(r,[L8]),i.attr("transform",t.transFn)};Be.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(_){return _.minor}):[],l=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],o=t.counterAxis;if(o&&Be.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;m--){var y=m?h:d;if(y){var g=y.selectAll("path."+a).data(m?l:i,X0);g.exit().remove(),g.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),g.attr("transform",t.transFn).attr("d",t.path).each(function(_){return Mf.stroke(Sn.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return fn.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&g.attr("d",t.path)}}Z0(r,[Zm,Jm])}};Be.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Be.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return BV(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Mf.stroke,r.zerolinecolor||Mf.defaultLine).style("stroke-width",fn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Z0(r,[Xm])};Be.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(H){return H.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],v=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],X0),h=[];v.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(H){var Q=Sn.select(this),Z=e._promises.length;Q.call(Co.positionText,s.xFn(H),s.yFn(H)).call(fn.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(Co.convertToTspans,e),e._promises[Z]?h.push(e._promises.pop().then(function(){d(Q,u)})):d(Q,u)}),Z0(r,[b8]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(H){Sn.select(this).select("text").call(Co.positionText,s.xFn(H),s.yFn(H))});function d(H,Q){H.each(function(Z){var ne=Sn.select(this),ce=ne.select(".text-math-group"),ye=s.anchorFn(Z,Q),Se=t.transFn.call(ne.node(),Z)+(Ht(Q)&&+Q!=0?" rotate("+Q+","+s.xFn(Z)+","+(s.yFn(Z)-Z.fontSize/2)+")":""),re=Co.lineCount(ne),Ce=kf*Z.fontSize,pe=s.heightFn(Z,Ht(Q)?+Q:0,(re-1)*Ce);if(pe&&(Se+=Js(0,pe)),ce.empty()){var be=ne.select("text");be.attr({transform:Se,"text-anchor":ye}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Ae=fn.bBox(ce.node()).width,ge=Ae*{end:-.5,start:.5}[ye];ce.attr("transform",Se+Js(ge,0))}})}r._adjustTickLabelsOverflow=function(){var H=r.ticklabeloverflow;if(!(!H||H==="allow")){var Q=H.indexOf("hide")!==-1,Z=r._id.charAt(0)==="x",ne=0,ce=Z?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var ye=gr.simpleMap(r.range,r.r2l);ne=r.l2p(ye[0])+r._offset,ce=r.l2p(ye[1])+r._offset}var Se=Math.min(ne,ce),re=Math.max(ne,ce),Ce=r.side,pe=1/0,be=-1/0;v.each(function($){var Y=Sn.select(this),le=Y.select(".text-math-group");if(le.empty()){var he=fn.bBox(Y.node()),me=0;Z?(he.right>re||he.leftre||he.top+(r.tickangle?0:$.fontSize/4)r["_visibleLabelMin_"+ye._id]?Y.style("display","none"):re.K==="tick"&&!Se&&Y.node().style.display!=="none"&&Y.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var y=null;function g(){if(d(v,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var H=0,Q=[],Z,ne=1;v.each(function(Ie){H=Math.max(H,Ie.fontSize);var We=r.l2p(Ie.x),ie=Qm(this),xe=fn.bBox(ie.node());ne=Math.max(ne,Co.lineCount(ie)),Q.push({top:0,bottom:10,height:10,left:We-xe.width/2,right:We+xe.width/2+2,width:xe.width+2})});var ce=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ye=o.length,Se=Math.abs((o[ye-1].x-o[0].x)*r._m)/(ye-1),re=ce?Se/2:Se,Ce=ce?r.ticklen:H*1.25*ne,pe=Math.sqrt(Math.pow(re,2)+Math.pow(Ce,2)),be=re/pe,Ae=r.autotickangles.map(function(Ie){return Ie*Math.PI/180}),ge=Ae.find(function(Ie){return Math.abs(Math.cos(Ie))<=be});ge===void 0&&(ge=Ae.reduce(function(Ie,We){return Math.abs(Math.cos(Ie))J*V&&(F=V,D[q]=P[q]=O[q])}var G=Math.abs(F-z);G-M>0?(G-=M,M*=1+M/G):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[k]=w.p2r(w.r2p(P[k])+C*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var U=gr.syncOrAsync(_);return U&&U.then&&e._promises.push(U),U};function vG(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,X0);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Mf.stroke,r.dividercolor).style("stroke-width",fn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Be.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function C8(e){var r=e.title.font.size,t=(e.title.text.match(Co.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(qo+t*kf):t?r*(t+1)*kf:r}function hG(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(Co.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*qo:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(wf+o*kf));else{var s=Cf(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Be.getPxPosition(e,r),v,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(m={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var g=fn.getTranslate(y.node().parentNode);m.offsetLeft=g.x,m.offsetTop=g.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,EV.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}Be.shouldShowZeroLine=function(e,r,t){var a=gr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===G0)&&(F8(r,0)||!dG(e,r,t,a)||pG(e,r))};Be.clipEnds=function(e,r){return r.filter(function(t){return F8(e,t.x)})};function F8(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=IV:/%L/.test(r)?e>=FV:/%[SX]/.test(r)?e>=U0:/%M/.test(r)?e>=Af:/%[HI]/.test(r)?e>=Si:/%p/.test(r)?e>=Cl:/%[Aadejuwx]/.test(r)?e>=Pa:/%[UVW]/.test(r)?e>=cn:/%[Bbm]/.test(r)?e>=Y0:/%[q]/.test(r)?e>=B0:/%[Yy]/.test(r)?e>=O0:!0}});var Y8=K((_se,B8)=>{"use strict";B8.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var ny=K((wse,U8)=>{"use strict";var _G=Y8();U8.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),v;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(_G(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var G8=K((Tse,V8)=>{var wG={left:0,top:0};V8.exports=TG;function TG(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=MG(r);return t[0]=a-i.left,t[1]=n-i.top,t}function MG(e){return e===window||e===document||e===document.body?wG:e.getBoundingClientRect()}});var iy=K((Mse,W8)=>{"use strict";var AG=Pp();function kG(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}W8.exports=AG&&kG()});var Z8=K((Ase,X8)=>{"use strict";X8.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var Q8=K((kse,K8)=>{"use strict";var J8=Oe(),SG=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];K8.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=J8.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=J8.constrain(Math.floor(t*3),0,2),SG[t][r]}});var j8=K((Sse,$8)=>{"use strict";var CG=ff(),LG=Zv(),qG=rf().getGraphDiv,DG=Qu(),ly=$8.exports={};ly.wrapped=function(e,r,t){e=qG(e),e._fullLayout&&LG.clear(e._fullLayout._uid+DG.HOVERID),ly.raw(e,r,t)};ly.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&CG.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var ti=K((Cse,aw)=>{"use strict";var EG=G8(),oy=zp(),PG=iy(),RG=Oe().removeElement,zG=Qt(),Do=aw.exports={};Do.align=Z8();Do.getCursor=Q8();var rw=j8();Do.unhover=rw.wrapped;Do.unhoverRaw=rw.raw;Do.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=g,PG?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=g,i.addEventListener("touchstart",g,{passive:!1})):i.ontouchstart=g;function m(w,b,M){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(M=>{var C=v[M];!b[M]&&typeof C!="function"&&(b[M]=C)})),r.clickFn&&r.clickFn(a,b),d||h.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function tw(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Do.coverSlip=tw;function ew(e){return EG(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ll=K((Lse,nw)=>{"use strict";nw.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var ow=K((qse,lw)=>{"use strict";var sy=Ll(),Lf="data-savedcursor",iw="!!";lw.exports=function(r,t){var a=r.attr(Lf);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var uy=ya(),NG=gi();sw.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:NG.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:uy({editType:"legend"}),grouptitlefont:uy({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:uy({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Df=K(qf=>{"use strict";qf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};qf.isVertical=function(r){return r.orientation!=="h"};qf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};qf.getId=function(r){return r._id||"legend"}});var vy=K((Pse,uw)=>{"use strict";var J0=br(),vn=Oe(),FG=ct(),IG=Zn(),HG=fy(),OG=Ss(),cy=Df();function BG(e,r,t,a,n){var i=r[e]||{},l=FG.newContainer(t,e);function o(H,Q){return vn.coerce(i,l,HG,H,Q)}var s=vn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,v=function(H,Q){var Z=f._input,ne=f;return vn.coerce(Z,ne,IG,H,Q)},h=t.font||{},d=vn.coerceFont(o,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),m=0,y=!1,g="normal",_=(t.shapes||[]).filter(function(H){return H.showlegend});function T(H){return J0.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}a.filter(T).forEach(function(H){H.visible&&m++;for(var Q=0;QH.legend.length)for(var ne=H.legend.length;ne(e==="legend"?1:0));if(C===!1&&(t[e]=void 0),!(C===!1&&!i.uirevision)&&(o("uirevision",t.uirevision),C!==!1)){o("borderwidth");var k=o("orientation"),q=o("yref"),D=o("xref"),P=k==="h",z=q==="paper",F=D==="paper",O,I,V,J="left";P?(O=0,J0.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(I=1.1,V="bottom"):(I=1,V="top"):z?(I=-.1,V="top"):(I=0,V="bottom")):(I=1,V="auto",F?O=1.02:(O=1,J="right")),vn.coerce(i,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:O}},"x"),vn.coerce(i,l,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:I}},"y"),o("traceorder",g),cy.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",J),o("yanchor",V),o("maxheight"),o("valign"),vn.noneOrAll(i,l,["x","y"]);var G=o("title.text");if(G){o("title.side",P?"left":"top");var U=vn.extendFlat({},s,{size:vn.bigFont(s.size)});vn.coerceFont(o,"title.font",U);let H=n>1;o("titleclick",H?"toggle":!1),o("titledoubleclick",H?"toggleothers":!1)}}}uw.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var ql=br(),hy=Oe(),YG=hy.pushUnique,UG=Df(),fw=!0;dy.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;var o=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&fw&&t.data&&t._context.showTips&&(hy.notifier(hy._(t,"Double-click on legend to isolate one trace"),"long",t),fw=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let v=(i.shapes||[]).filter(Ee=>Ee.showlegend||Ee.legendgroup);var h=f.concat(v),d=l.trace;d._isShape&&(d=d._fullInput);var m=d.legendgroup,y,g,_,T,w,b,M={},C=[],k=[],q=[];function D(Ee,Le){var Ve=C.indexOf(Ee),Fe=M.visible;return Fe||(Fe=M.visible=[]),C.indexOf(Ee)===-1&&(C.push(Ee),Ve=C.length-1),Fe[Ve]=Le,Ve}var P=(i.shapes||[]).map(function(Ee){return Ee._input}),z=!1;function F(Ee,Le){P[Ee].visible=Le,z=!0}function O(Ee,Le){if(!(l.groupTitle&&!s)){var Ve=Ee._fullInput||Ee,Fe=Ve._isShape,Xe=Ve.index;Xe===void 0&&(Xe=Ve._index);var De=Ve.visible===!1?!1:Le;Fe?F(Xe,De):D(Xe,De)}}var I=d.legend,V=d._fullInput,J=V&&V._isShape;if(!J&&ql.traceIs(d,"pie-like")){var G=l.label,U=u.indexOf(G);if(n==="toggle")U===-1?u.push(G):u.splice(U,1);else if(n==="toggleothers"){var H=U!==-1,Q=[];for(y=0;y_.showlegend||_.legendgroup),s=i.concat(o);function u(_){return(_.legend||"legend")===l}var f,v;if(a==="toggle")f=!s.some(function(T){return u(T)&&T.visible===!0}),v=!1;else{let _=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,v=!_}let h={visible:[]},d=[],m=(n.shapes||[]).map(function(_){return _._input});for(var y=!1,g=0;g{"use strict";cw.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var dw=K((Nse,hw)=>{"use strict";var{isArrayOrTypedArray:yy}=Ka(),vw=br(),gy=Df();hw.exports=function(r,t,a){var n=t._inHover,i=gy.isGrouped(t),l=gy.isReversed(t),o={},s=[],u=!1,f={},v=0,h=0,d,m;function y(Q,Z,ne){if(t.visible!==!1&&!(a&&Q!==t._id))if(Z===""||!gy.isGrouped(t)){var ce="~~i"+v;s.push(ce),o[ce]=[ne],v++}else s.indexOf(Z)===-1?(s.push(Z),u=!0,o[Z]=[ne]):o[Z].push(ne)}for(d=0;dO&&(z=O)}D[d][0]._groupMinRank=z,D[d][0]._preGroupSort=d}var I=function(Q,Z){return Q[0]._groupMinRank-Z[0]._groupMinRank||Q[0]._preGroupSort-Z[0]._preGroupSort},V=function(Q,Z){var ne=yy(Q.trace.legendrank)?Q.trace.legendrank[Q.i]:Q.trace.legendrank,ce=yy(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank;return ne-ce||Q._preSort-Z._preSort};for(D.forEach(function(Q,Z){Q[0]._preGroupSort=Z}),D.sort(I),d=0;d{"use strict";var K0=Oe();function pw(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Eo.formatPiePercent=function(r,t){var a=pw((r*100).toPrecision(3));return K0.numSeparate(a,t)+"%"};Eo.formatPieValue=function(r,t){var a=pw(r.toPrecision(10));return K0.numSeparate(a,t)};Eo.getFirstFilled=function(r,t){if(K0.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var VG=tt(),GG=Er();mw.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?VG.pointStyle(r,a,n,t):GG.fill(r,t.color)}});var $0=K((Hse,xw)=>{"use strict";var gw=Er(),bw=Q0().castOption,WG=yw();xw.exports=function(r,t,a,n){var i=a.marker.line,l=bw(i.color,t.pts)||gw.defaultLine,o=bw(i.width,t.pts)||0;r.call(WG,t,a,n).style("stroke-width",o).call(gw.stroke,l)}});var wy=K((Ose,kw)=>{"use strict";var Ra=Hr(),by=br(),ka=Oe(),_w=ka.strTranslate,hn=tt(),Cn=Er(),xy=kn().extractOpts,j0=un(),XG=$0(),ZG=Q0().castOption,JG=my(),ww=12,Tw=5,Po=2,KG=10,$s=5;kw.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+JG.itemGap*2)/2,s=_w(o,0),u=function(k,q,D,P){var z;if(k+1)z=k;else if(q&&q.width>0)z=q.width;else return 0;return i?P:Math.min(z,D)};r.each(function(k){var q=Ra.select(this),D=ka.ensureSingle(q,"g","layers");D.style("opacity",k[0].trace.opacity);var P=a.indentation,z=a.valign,F=k[0].lineHeight,O=k[0].height;if(z==="middle"&&P===0||!F||!O)D.attr("transform",null);else{var I={top:1,bottom:-1}[z],V=I*(.5*(F-O+3))||0,J=a.indentation;D.attr("transform",_w(J,V))}var G=D.selectAll("g.legendfill").data([k]);G.enter().append("g").classed("legendfill",!0);var U=D.selectAll("g.legendlines").data([k]);U.enter().append("g").classed("legendlines",!0);var H=D.selectAll("g.legendsymbols").data([k]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(C).each(h).each(m).each(d).each(g).each(b).each(w).each(f).each(v).each(_).each(T);function f(k){var q=Mw(k),D=q.showFill,P=q.showLine,z=q.showGradientLine,F=q.showGradientFill,O=q.anyFill,I=q.anyLine,V=k[0],J=V.trace,G,U,H=xy(J),Q=H.colorscale,Z=H.reversescale,ne=function(be){if(be.size())if(D)hn.fillGroupStyle(be,t,!0);else{var Ae="legendfill-"+J.uid;hn.gradient(be,t,Ae,_y(Z),Q,"fill")}},ce=function(be){if(be.size()){var Ae="legendline-"+J.uid;hn.lineGroupStyle(be),hn.gradient(be,t,Ae,_y(Z),Q,"stroke")}},ye=j0.hasMarkers(J)||!O?"M5,0":I?"M5,-2":"M5,-3",Se=Ra.select(this),re=Se.select(".legendfill").selectAll("path").data(D||F?[k]:[]);if(re.enter().append("path").classed("js-fill",!0),re.exit().remove(),re.attr("d",ye+"h"+l+"v6h-"+l+"z").call(ne),P||z){var Ce=u(void 0,J.line,KG,Tw);U=ka.minExtend(J,{line:{width:Ce}}),G=[ka.minExtend(V,{trace:U})]}var pe=Se.select(".legendlines").selectAll("path").data(P||z?[G]:[]);pe.enter().append("path").classed("js-line",!0),pe.exit().remove(),pe.attr("d",ye+(z?"l"+l+",0.0001":"h"+l)).call(P?hn.lineGroupStyle:ce)}function v(k){var q=Mw(k),D=q.anyFill,P=q.anyLine,z=q.showLine,F=q.showMarker,O=k[0],I=O.trace,V=!F&&!P&&!D&&j0.hasText(I),J,G;function U(re,Ce,pe,be){var Ae=ka.nestedProperty(I,re).get(),ge=ka.isArrayOrTypedArray(Ae)&&Ce?Ce(Ae):Ae;if(i&&ge&&be!==void 0&&(ge=be),pe){if(gepe[1])return pe[1]}return ge}function H(re){return O._distinct&&O.index&&re[O.index]?re[O.index]:re[0]}if(F||V||z){var Q={},Z={};if(F){Q.mc=U("marker.color",H),Q.mx=U("marker.symbol",H),Q.mo=U("marker.opacity",ka.mean,[.2,1]),Q.mlc=U("marker.line.color",H),Q.mlw=U("marker.line.width",ka.mean,[0,5],Po),Q.mld=I._isShape?"solid":U("marker.line.dash",H),Z.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=U("marker.size",ka.mean,[2,16],ww);Q.ms=ne,Z.marker.size=ne}z&&(Z.line={width:U("line.width",H,[0,10],Tw)}),V&&(Q.tx="Aa",Q.tp=U("textposition",H),Q.ts=10,Q.tc=U("textfont.color",H),Q.tf=U("textfont.family",H),Q.tw=U("textfont.weight",H),Q.ty=U("textfont.style",H),Q.tv=U("textfont.variant",H),Q.tC=U("textfont.textcase",H),Q.tE=U("textfont.lineposition",H),Q.tS=U("textfont.shadow",H)),J=[ka.minExtend(O,Q)],G=ka.minExtend(I,Z),G.selectedpoints=null,G.texttemplate=null}var ce=Ra.select(this).select("g.legendpoints"),ye=ce.selectAll("path.scatterpts").data(F?J:[]);ye.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ye.exit().remove(),ye.call(hn.pointStyle,G,t),F&&(J[0].mrc=3);var Se=ce.selectAll("g.pointtext").data(V?J:[]);Se.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Se.exit().remove(),Se.selectAll("text").call(hn.textPointStyle,G,t)}function h(k){var q=k[0].trace,D=q.type==="waterfall";if(k[0]._distinct&&D){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,y(k,this,"waterfall")}var z=[];q.visible&&D&&(z=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=Ra.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(O){var I=Ra.select(this),V=q[O[0]].marker,J=u(void 0,V.line,$s,Po);I.attr("d",O[1]).style("stroke-width",J+"px").call(Cn.fill,V.color),J&&I.call(Cn.stroke,V.line.color)})}function d(k){y(k,this)}function m(k){y(k,this,"funnel")}function y(k,q,D){var P=k[0].trace,z=P.marker||{},F=z.line||{},O=z.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",I=D?P.visible&&P.type===D:by.traceIs(P,"bar"),V=Ra.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(I?[k]:[]);V.enter().append("path").classed("legend"+D,!0).attr("d",O).attr("transform",s),V.exit().remove(),V.each(function(J){var G=Ra.select(this),U=J[0],H=u(U.mlw,z.line,$s,Po);G.style("stroke-width",H+"px");var Q=U.mcc;if(!a._inHover&&"mc"in U){var Z=xy(z),ne=Z.mid;ne===void 0&&(ne=(Z.max+Z.min)/2),Q=hn.tryColorscale(z,"")(ne)}var ce=Q||U.mc||z.color,ye=z.pattern,Se=hn.getPatternAttr,re=ye&&(Se(ye.shape,0,"")||Se(ye.path,0,""));if(re){var Ce=Se(ye.bgcolor,0,null),pe=Se(ye.fgcolor,0,null),be=ye.fgopacity,Ae=Aw(ye.size,8,10),ge=Aw(ye.solidity,.5,1),B="legend-"+P.uid;G.call(hn.pattern,"legend",t,B,re,Ae,ge,Q,ye.fillmode,Ce,pe,be)}else G.call(Cn.fill,ce);H&&Cn.stroke(G,U.mlc||F.color)})}function g(k){var q=k[0].trace,D=Ra.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&by.traceIs(q,"box-violin")?[k]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var P=Ra.select(this);if((q.boxpoints==="all"||q.points==="all")&&Cn.opacity(q.fillcolor)===0&&Cn.opacity((q.line||{}).color)===0){var z=ka.minExtend(q,{marker:{size:i?ww:ka.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(hn.pointStyle,z,t)}else{var F=u(void 0,q.line,$s,Po);P.style("stroke-width",F+"px").call(Cn.fill,q.fillcolor),F&&Cn.stroke(P,q.line.color)}})}function _(k){var q=k[0].trace,D=Ra.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[k,k]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(P,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(P,z){var F=Ra.select(this),O=q[z?"increasing":"decreasing"],I=u(void 0,O.line,$s,Po);F.style("stroke-width",I+"px").call(Cn.fill,O.fillcolor),I&&Cn.stroke(F,O.line.color)})}function T(k){var q=k[0].trace,D=Ra.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[k,k]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(P,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(P,z){var F=Ra.select(this),O=q[z?"increasing":"decreasing"],I=u(void 0,O.line,$s,Po);F.style("fill","none").call(hn.dashLine,O.line.dash,I),I&&Cn.stroke(F,O.line.color)})}function w(k){M(k,this,"pie")}function b(k){M(k,this,"funnelarea")}function M(k,q,D){var P=k[0],z=P.trace,F=D?z.visible&&z.type===D:by.traceIs(z,D),O=Ra.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(F?[k]:[]);if(O.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),O.exit().remove(),O.size()){var I=z.marker||{},V=u(ZG(I.line.width,P.pts),I.line,$s,Po),J="pieLike",G=ka.minExtend(z,{marker:{line:{width:V}}},J),U=ka.minExtend(P,{trace:G},J);XG(O,U,G,t)}}function C(k){var q=k[0].trace,D,P=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var z=Ra.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,O){var I=Ra.select(this),V=xy(q),J=V.colorscale,G=V.reversescale,U=function(ne){if(ne.size()){var ce="legendfill-"+q.uid;hn.gradient(ne,t,ce,_y(G,D==="radial"),J,"fill")}},H;if(J){if(!D){var Z=J.length;H=O===0?J[G?Z-1:0][1]:O===1?J[G?0:Z-1][1]:J[Math.floor((Z-1)/2)][1]}}else{var Q=q.vertexcolor||q.facecolor||q.color;H=ka.isArrayOrTypedArray(Q)?Q[O]||Q[0]:Q}I.attr("d",F[0]),H?I.call(Cn.fill,H):I.call(U)})}};function _y(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function Mw(e){var r=e[0].trace,t=r.contours,a=j0.hasLines(r),n=j0.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function Aw(e,r,t){return e&&ka.isArrayOrTypedArray(e)?r:e>t?t:e}});var ky=K((Bse,zw)=>{"use strict";var Va=Hr(),Et=Oe(),My=Ft(),Ro=br(),th=ff(),Ty=ti(),Pt=tt(),Ef=Er(),zo=ga(),Sw=py().handleItemClick,Cw=py().handleTitleClick,Ot=my(),Ay=Ma(),Pw=Ay.LINE_SPACING,eu=Ay.FROM_TL,Lw=Ay.FROM_BR,qw=dw(),QG=wy(),ru=Df(),js=1,$G=/^legend[0-9]*$/;zw.exports=function(r,t){if(t)Dw(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Va.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match($G)&&n.indexOf(v)===-1&&u.remove()});for(var l=0;l1)}var m=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),My.autoMargin(e,n);var y=Et.ensureSingle(l,"g",n,function(q){o||q.attr("pointer-events","all")}),g=Et.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),_=Et.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});_.call(Ef.stroke,t.bordercolor).call(Ef.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Et.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var b;w.text?(b=Et.ensureSingle(T,"text",n+"titletext"),b.attr("text-anchor","start").call(Pt.font,w.font).text(w.text),rh(b,T,e,t,js),!o&&(t.titleclick||t.titledoubleclick)&&tW(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var M=Et.ensureSingle(y,"rect","scrollbar",function(q){q.attr(Ot.scrollBarEnterAttrs).call(Ef.fill,Ot.scrollBarColor)}),C=T.selectAll("g.groups").data(s);C.enter().append("g").attr("class","groups"),C.exit().remove();var k=C.selectAll("g.traces").data(Et.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(q){let D=q[0],P=D.trace;if(D.groupTitle){let z=P.legendgroup,F=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(F).some(function(I){return I.legendgroup===z&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return Ro.traceIs(P,"pie-like")?m.indexOf(q[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){Va.select(this).call(eW,e,t)}).call(QG,e,t).each(function(q){o||q[0].groupTitle&&t.groupclick==="toggleitem"||Va.select(this).call(rW,e,n)}),Et.syncOrAsync([My.previousPromises,function(){return iW(e,C,k,t,T)},function(){var q=a._size,D=t.borderwidth,P=t.xref==="paper",z=t.yref==="paper";if(w.text){let le=(a.shapes||[]).filter(function(me){return me.showlegend}),he=e._fullData.concat(le).some(function(me){let Re=me.legend||"legend";var Ee=Array.isArray(Re)?Re.includes(n):Re===n;return Ee&&me.visible===!0});b.style("opacity",he?1:.5)}if(!o){var F,O;P?F=q.l+q.w*t.x-eu[ah(t)]*t._width:F=a.width*t.x-eu[ah(t)]*t._width,z?O=q.t+q.h*(1-t.y)-eu[nh(t)]*t._effHeight:O=a.height*(1-t.y)-eu[nh(t)]*t._effHeight;var I=lW(e,n,F,O);if(I)return;if(a.margin.autoexpand){var V=F,J=O;F=P?Et.constrain(F,0,a.width-t._width):V,O=z?Et.constrain(O,0,a.height-t._effHeight):J,F!==V&&Et.log("Constrain "+n+".x to make legend fit inside graph"),O!==J&&Et.log("Constrain "+n+".y to make legend fit inside graph")}Pt.setTranslate(y,F,O)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;o&&(G=t._height),_.attr({width:t._width-D,height:G-D,x:D/2,y:D/2}),Pt.setTranslate(T,0,0),g.select("rect").attr({width:t._width-2*D,height:G-2*D,x:D,y:D}),Pt.setClipUrl(T,i,e),Pt.setRect(M,0,0,0,0),delete t._scrollY}else{var U=Math.max(Ot.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),H=t._effHeight-U-2*Ot.scrollBarMargin,Q=t._height-t._effHeight,Z=H/Q,ne=Math.min(t._scrollY||0,Q);_.attr({width:t._width-2*D+Ot.scrollBarWidth+Ot.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),g.select("rect").attr({width:t._width-2*D+Ot.scrollBarWidth+Ot.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ne}),Pt.setClipUrl(T,i,e),Ae(ne,U,Z),y.on("wheel",function(){ne=Et.constrain(t._scrollY+Va.event.deltaY/Q*H,0,Q),Ae(ne,U,Z),ne!==0&&ne!==Q&&Va.event.preventDefault()});var ce,ye,Se,re=function(le,he,me){var Re=(me-he)/Z+le;return Et.constrain(Re,0,Q)},Ce=function(le,he,me){var Re=(he-me)/Z+le;return Et.constrain(Re,0,Q)},pe=Va.behavior.drag().on("dragstart",function(){var le=Va.event.sourceEvent;le.type==="touchstart"?ce=le.changedTouches[0].clientY:ce=le.clientY,Se=ne}).on("drag",function(){var le=Va.event.sourceEvent;le.buttons===2||le.ctrlKey||(le.type==="touchmove"?ye=le.changedTouches[0].clientY:ye=le.clientY,ne=re(Se,ce,ye),Ae(ne,U,Z))});M.call(pe);var be=Va.behavior.drag().on("dragstart",function(){var le=Va.event.sourceEvent;le.type==="touchstart"&&(ce=le.changedTouches[0].clientY,Se=ne)}).on("drag",function(){var le=Va.event.sourceEvent;le.type==="touchmove"&&(ye=le.changedTouches[0].clientY,ne=Ce(Se,ce,ye),Ae(ne,U,Z))});T.call(be)}function Ae(le,he,me){t._scrollY=e._fullLayout[n]._scrollY=le,Pt.setTranslate(T,0,-le),Pt.setRect(M,t._width,Ot.scrollBarMargin+le*me,Ot.scrollBarWidth,he),g.select("rect").attr("y",D+le)}if(e._context.edits.legendPosition){var ge,B,$,Y;y.classed("cursor-move",!0),Ty.init({element:y.node(),gd:e,prepFn:function(le){if(le.target!==M.node()){var he=Pt.getTranslate(y);$=he.x,Y=he.y}},moveFn:function(le,he){if($!==void 0&&Y!==void 0){var me=$+le,Re=Y+he;Pt.setTranslate(y,me,Re),ge=Ty.align(me,t._width,q.l,q.l+q.w,t.xanchor),B=Ty.align(Re+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(ge!==void 0&&B!==void 0){var le={};le[n+".x"]=ge,le[n+".y"]=B,Ro.call("_guiRelayout",e,le)}},clickFn:function(le,he){var me=l.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return he.clientX>=Re.left&&he.clientX<=Re.right&&he.clientY>=Re.top&&he.clientY<=Re.bottom});me.size()>0&&Rw(e,t,me,le,he)}})}}],e)}}function eh(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function Rw(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),Ro.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=th.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&Sw(t,e,r,o)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var v=th.triggerHandler(e,"plotly_legenddoubleclick",u);v!==!1&&f!==!1&&s&&Sw(t,e,r,s)}}function eW(e,r,t){var a=ru.getId(t),n=e.data()[0][0],i=n.trace,l=Ro.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Et.templateString(u,i._meta))));var v=Et.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Pt.font,f).text(o?Ew(u,s):u);var h=t.indentation+t.itemwidth+Ot.itemGap*2;zo.positionText(v,h,0),o?v.call(zo.makeEditable,{gd:r,text:u}).call(rh,e,r,t).on("edit",function(d){this.text(Ew(d,s)).call(rh,e,r,t);var m=n.trace._fullInput||{},y={};return y.name=d,m._isShape?Ro.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Ro.call("_guiRestyle",r,y,i.index)}):rh(v,e,r,t)}function Ew(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function rW(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Et.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Ef.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),Rw(r,o,e,i,Va.event)}}))}function tW(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&Ro.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Et.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Ef.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:Va.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(th.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&Cw(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,th.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&Cw(r,t,t.titledoubleclick))}))}function rh(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),zo.convertToTspans(e,t,function(){aW(r,t,a,n)})}function aW(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=ru.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===js?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var v=f.size*Pw,h,d;if(o){var m=Pt.bBox(o);h=m.height,d=m.width,a===js?Pt.setTranslate(l,u,u+h*.75):Pt.setTranslate(l,0,h*.25)}else{var y="."+s+(a===js?"title":"")+"text",g=e.select(y),_=zo.lineCount(g),T=g.node();if(h=v*_,d=T?Pt.bBox(T).width:0,a===js)t.title.side==="left"&&(d+=Ot.itemGap*2),zo.positionText(g,u+Ot.titlePad,u+v);else{var w=Ot.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Ot.itemGap,d-=t.indentation+t.itemwidth),zo.positionText(g,w,-v*((_-1)/2-.3))}}a===js?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=v,n.height=Math.max(h,16)+3,n.width=d)}function nW(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function iW(e,r,t,a,n){var i=e._fullLayout,l=ru.getId(a);a||(a=i[l]);var o=i._size,s=ru.isVertical(a),u=ru.isGrouped(a),f=a.entrywidthmode==="fraction",v=a.borderwidth,h=2*v,d=Ot.itemGap,m=a.indentation+a.itemwidth+d*2,y=2*(v+d),g=nh(a),_=a.y<0||a.y===0&&g==="top",T=a.y>1||a.y===1&&g==="bottom",w=a.tracegroupgap,b={};let{orientation:M,yref:C}=a,{maxheight:k}=a,q=_||T||M!=="v"||C!=="paper";k||(k=q?.5:1);let D=q?i.height:o.h;a._maxHeight=Math.max(k>1?k:k*D,30);var P=0;a._width=0,a._height=0;var z=nW(a);if(s)t.each(function(le){var he=le[0].height;Pt.setTranslate(this,v+z[0],v+z[1]+a._height+he/2+d),a._height+=he,a._width=Math.max(a._width,le[0].width)}),P=m+a._width,a._width+=d+m+h,a._height+=y,u&&(r.each(function(le,he){Pt.setTranslate(this,0,he*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var F=ah(a),O=a.x<0||a.x===0&&F==="right",I=a.x>1||a.x===1&&F==="left",V=T||_,J=i.width/2;a._maxWidth=Math.max(O?V&&F==="left"?o.l+o.w:J:I?V&&F==="right"?o.r+o.w:J:o.w,2*m);var G=0,U=0;t.each(function(le){var he=eh(le,a,m);G=Math.max(G,he),U+=he}),P=null;var H=0;if(u){var Q=0,Z=0,ne=0;r.each(function(){var le=0,he=0;Va.select(this).selectAll("g.traces").each(function(Re){var Ee=eh(Re,a,m),Le=Re[0].height;Pt.setTranslate(this,z[0],z[1]+v+d+Le/2+he),he+=Le,le=Math.max(le,Ee),b[Re[0].trace.legendgroup]=le});var me=le+d;Z>0&&me+v+Z>a._maxWidth?(H=Math.max(H,Z),Z=0,ne+=Q+w,Q=he):Q=Math.max(Q,he),Pt.setTranslate(this,Z,ne),Z+=me}),a._width=Math.max(H,Z)+v,a._height=ne+Q+y}else{var ce=t.size(),ye=U+h+(ce-1)*d=a._maxWidth&&(H=Math.max(H,pe),re=0,Ce+=Se,a._height+=Se,Se=0),Pt.setTranslate(this,z[0]+v+re,z[1]+v+Ce+he/2+d),pe=re+me+d,re+=Re,Se=Math.max(Se,he)}),ye?(a._width=re+h,a._height=Se+y):(a._width=Math.max(H,pe)+h,a._height+=Se+y)}}a._width=Math.ceil(Math.max(a._width+z[0],a._titleWidth+2*(v+Ot.titlePad))),a._height=Math.ceil(Math.max(a._height+z[1],a._titleHeight+2*(v+Ot.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,Ae=be.legendText||be.legendPosition;t.each(function(le){var he=Va.select(this).select("."+l+"toggle"),me=le[0].height,Re=le[0].trace.legendgroup,Ee=eh(le,a,m);u&&Re!==""&&(Ee=b[Re]);var Le=Ae?m:P||Ee;!s&&!f&&(Le+=d/2),Pt.setRect(he,0,-me/2,Le,me)});var ge=n.select("."+l+"titletext");ge.node()&&jG(ge,a,v);var B=n.select("."+l+"titletoggle");if(B.size()&&ge.node()){var $=ge.attr("x")||0,Y=Ot.titlePad;Pt.setRect(B,$-Y,v,a._titleWidth+2*Y,a._titleHeight+2*Y)}}function lW(e,r,t,a){var n=e._fullLayout,i=n[r],l=ah(i),o=nh(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return My.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*eu[l],r:i._width*Lw[l],b:i._effHeight*Lw[o],t:i._effHeight*eu[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function ah(e){return Et.isRightAnchor(e)?"right":Et.isCenterAnchor(e)?"center":"left"}function nh(e){return Et.isBottomAnchor(e)?"bottom":Et.isMiddleAnchor(e)?"middle":"top"}});var qy=K(Ly=>{"use strict";var No=Hr(),Ki=Or(),Nw=wn(),Tt=Oe(),oW=Tt.pushUnique,Sy=Tt.strTranslate,sW=Tt.strRotate,uW=ff(),Ln=ga(),fW=ow(),Li=tt(),jt=Er(),ih=ti(),qi=pt(),cW=Qt().zindexSeparator,au=br(),ai=Ti(),Fo=Qu(),vW=vy(),hW=ky(),Vw=Fo.YANGLE,Cy=Math.PI*Vw/180,dW=1/Math.sin(Cy),pW=Math.cos(Cy),mW=Math.sin(Cy),mt=Fo.HOVERARROWSIZE,Br=Fo.HOVERTEXTPAD,Fw={box:!0,ohlc:!0,violin:!0,candlestick:!0},yW={scatter:!0,scattergl:!0,splom:!0};function Iw(e,r){return e.distance-r.distance}Ly.hover=function(r,t,a,n){r=Tt.getGraphDiv(r);var i=t.target;Tt.throttle(r._fullLayout._uid+Fo.HOVERID,Fo.HOVERMINTIME,function(){gW(r,t,a,n,i)})};Ly.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Jw(n),l=Kw(n),o=r.map(function(g){var _=g._x0||g.x0||g.x||0,T=g._x1||g.x1||g.x||0,w=g._y0||g.y0||g.y||0,b=g._y1||g.y1||g.y||0,M=g.eventData;if(M){var C=Math.min(_,T),k=Math.max(_,T),q=Math.min(w,b),D=Math.max(w,b),P=g.trace;if(au.traceIs(P,"gl3d")){var z=n._fullLayout[P.scene]._scene.container,F=z.offsetLeft,O=z.offsetTop;C+=F,k+=F,q+=O,D+=O}M.bbox={x0:C+l,x1:k+l,y0:q+i,y1:D+i},M.xPixel=(_+T)/2,M.yPixel=(w+b)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:g.color||jt.defaultLine,x0:g.x0||g.x||0,x1:g.x1||g.x||0,y0:g.y0||g.y||0,y1:g.y1||g.y||0,xLabel:g.xLabel,yLabel:g.yLabel,zLabel:g.zLabel,text:g.text,name:g.name,idealAlign:g.idealAlign,borderColor:g.borderColor,fontFamily:g.fontFamily,fontSize:g.fontSize,fontColor:g.fontColor,fontWeight:g.fontWeight,fontStyle:g.fontStyle,fontVariant:g.fontVariant,nameLength:g.nameLength,textAlign:g.textAlign,trace:g.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:g.hovertemplate||!1,hovertemplateLabels:g.hovertemplateLabels||!1,eventData:M}}),s=!1,u=Ww(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||jt.background,container:No.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(g,_){return g.y0-_.y0}).each(function(g,_){var T=g.y0-g.by/2;T-vk[0]._length||Y<0||Y>q[0]._length)return ih.unhoverRaw(e,r)}if(r.pointerX=$+k[0]._offset,r.pointerY=Y+q[0]._offset,"xval"in r?J=ai.flat(i,r.xval):J=ai.p2c(k,$),"yval"in r?G=ai.flat(i,r.yval):G=ai.p2c(q,Y),!Ki(J[0])||!Ki(G[0]))return Tt.warn("Fx.hover failed",r,e),ih.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=J,e._hoverYVals=G,e._hoverXAxes=k,e._hoverYAxes=q);var me=1/0;function Re(vr,ot){for(H=0;Hpe&&(I.splice(0,pe),me=I[0].distance),v&&O!==0&&I.length===0){Ce.distance=O,Ce.index=!1;var at=Z._module.hoverPoints(Ce,Se,re,"closest",{hoverLayer:o._hoverlayer});if(at&&(at=at.filter(function(Ya){return Ya.spikeDistance<=O})),at&&at.length){var Xa,Un=at.filter(function(Ya){return Ya.xa.showspikes&&Ya.xa.spikesnap!=="hovered data"});if(Un.length){var Jt=Un[0];Ki(Jt.x0)&&Ki(Jt.y0)&&(Xa=Le(Jt),(!be.vLinePoint||be.vLinePoint.spikeDistance>Xa.spikeDistance)&&(be.vLinePoint=Xa))}var vt=at.filter(function(Ya){return Ya.ya.showspikes&&Ya.ya.spikesnap!=="hovered data"});if(vt.length){var Nt=vt[0];Ki(Nt.x0)&&Ki(Nt.y0)&&(Xa=Le(Nt),(!be.hLinePoint||be.hLinePoint.spikeDistance>Xa.spikeDistance)&&(be.hLinePoint=Xa))}}}}}Re();function Ee(vr,ot,Jr){for(var nt=null,la=1/0,oa,at=0;atvr.trace.index===ke.trace.index):I=[ke];var He=I.length,Ze=Uw("x",ke,o),Ue=Uw("y",ke,o);Re(Ze,Ue);var Ge=[],ir={},ar=0,er=function(vr){var ot=Fw[vr.trace.type]?Gw(vr):vr.trace.index;if(!ir[ot])ar++,ir[ot]=ar,Ge.push(vr);else{var Jr=ir[ot]-1,nt=Ge[Jr];Jr>0&&Math.abs(vr.distance)He-1;Ne--)er(I[Ne]);I=Ge,De()}var ae=e._hoverdata,oe=[],qe=Jw(e),Pe=Kw(e);for(let vr of I){var $e=ai.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var cr=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(cr=vr.cd[vr.index].ht),vr.hovertemplate=cr||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var sr=vr.x0+vr.xa._offset,Mr=vr.x1+vr.xa._offset,Ir=vr.y0+vr.ya._offset,Zr=vr.y1+vr.ya._offset,lt=Math.min(sr,Mr),_t=Math.max(sr,Mr),gt=Math.min(Ir,Zr),Bt=Math.max(Ir,Zr);$e.bbox={x0:lt+Pe,x1:_t+Pe,y0:gt+qe,y1:Bt+qe},$e.xPixel=(sr+Mr)/2,$e.yPixel=(Ir+Zr)/2}vr.eventData=[$e],oe.push($e)}e._hoverdata=oe;var zt=h==="y"&&(V.length>1||I.length>1)||h==="closest"&&Ae&&I.length>1,Oa=jt.combine(o.plot_bgcolor||jt.background,o.paper_bgcolor),va=Ww(I,{gd:e,hovermode:h,rotateLabels:zt,bgColor:Oa,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),aa=va.hoverLabels;if(ai.isUnifiedHover(h)||(xW(aa,zt,o,va.commonLabelBoundingBox),Zw(aa,zt,o._invScaleX,o._invScaleY)),n&&n.tagName){var Ba=au.getComponentMethod("annotations","hasClickToShow")(e,oe);fW(No.select(n),Ba?"pointer":"")}var na=TW(e,r,ae);if(!n||a||!na&&!o.hoveranywhere)return;ae&&na&&e.emit("plotly_unhover",{event:r,points:ae}),ia(e._hoverdata);function ia(vr){e.emit("plotly_hover",{event:r,points:vr,xaxes:k,yaxes:q,xvals:J,yvals:G})}}function Gw(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var bW=/([\s\S]*)<\/extra>/;function Ww(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Fo.HOVERFONT,v=r.fontSize||Fo.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,g=r.fontLineposition||a.font.lineposition,_=r.fontShadow||a.font.shadow,T=e[0],w=T.xa,b=T.ya,M=n.charAt(0),C=M+"Label",k=T[C];if(k===void 0&&w.type==="multicategory")for(var q=0;qa.width-oe&&(qe=a.width-oe),Me.attr("d","M"+(er-qe)+",0L"+(er-qe+mt)+","+ae+mt+"H"+oe+"v"+ae+(Br*2+ar.height)+"H"+-oe+"V"+ae+mt+"H"+(er-qe-mt)+"Z"),er=qe,H.minX=er-oe,H.maxX=er+oe,w.side==="top"?(H.minY=Ne-(Br*2+ar.height),H.maxY=Ne-Br):(H.minY=Ne+Br,H.maxY=Ne+(Br*2+ar.height))}else{var Pe,$e,cr;b.side==="right"?(Pe="start",$e=1,cr="",er=w._offset+w._length):(Pe="end",$e=-1,cr="-",er=w._offset),Ne=b._offset+(T.y0+T.y1)/2,ke.attr("text-anchor",Pe),Me.attr("d","M0,0L"+cr+mt+","+mt+"V"+(Br+ar.height/2)+"h"+cr+(Br*2+ar.width)+"V-"+(Br+ar.height/2)+"H"+cr+mt+"V-"+mt+"Z"),H.minY=Ne-(Br+ar.height/2),H.maxY=Ne+(Br+ar.height/2),b.side==="right"?(H.minX=er+mt,H.maxX=er+mt+(Br*2+ar.width)):(H.minX=er-mt-(Br*2+ar.width),H.maxX=er-mt);var sr=ar.height/2,Mr=P-ar.top-sr,Ir="clip"+a._uid+"commonlabel"+b._id,Zr;if(erMe.hoverinfo!=="none");if(ze.length===0)return[];var Q=a.hoverlabel,Z=Q.font,ne=ze[0],ce=((n==="x unified"?ne.xa:ne.ya).unifiedhovertitle||{}).text,ye=ce?Tt.hovertemplateString({data:n==="x unified"?[{xa:ne.xa,x:ne.xVal}]:[{ya:ne.ya,y:ne.yVal}],fallback:ne.trace.hovertemplatefallback,locale:a._d3locale,template:ce}):k,Se={showlegend:!0,legend:{title:{text:ye,font:Z},font:Z,bgcolor:Q.bgcolor,bordercolor:Q.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},re={font:Z};vW(Se,re,t._fullData);var Ce=re.legend;Ce.entries=[];for(var pe=0;pe=0?xe=De:Ie+he=0?xe=Ie:We+he=0?Ke=Fe:Xe+me=0?Ke=Xe:ie+me=0,(ze.idealAlign==="top"||!gt)&&Bt?(cr-=Mr/2,ze.anchor="end"):gt?(cr+=Mr/2,ze.anchor="start"):ze.anchor="middle",ze.crossPos=cr;else{if(ze.pos=cr,gt=$e+sr/2+_t<=z,Bt=$e-sr/2-_t>=0,(ze.idealAlign==="left"||!gt)&&Bt)$e-=sr/2,ze.anchor="end";else if(gt)$e+=sr/2,ze.anchor="start";else{ze.anchor="middle";var zt=_t/2,Oa=$e+zt-z,va=$e-zt;Oa>0&&($e-=Oa),va<0&&($e+=-va)}ze.crossPos=$e}Ne.attr("text-anchor",ze.anchor),oe&&ae.attr("text-anchor",ze.anchor),Me.attr("transform",Sy($e,cr)+(i?sW(Vw):""))}),{hoverLabels:hr,commonLabelBoundingBox:H}}function Hw(e,r,t,a,n,i){var v,h;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Tt.templateString(e.name,e.trace._meta)),l=Yw(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(h=(v=e.trace)==null?void 0:v.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),o=Tt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),o=o.replace(bW,(m,y)=>(l=Yw(y,e.nameLength),""))}return[o,l]}function xW(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,v=a.minX,h=a.maxX,d=a.minY,m=a.maxY,y=function(J){return J*t._invScaleX},g=function(J){return J*t._invScaleY};e.each(function(J){var G=J[n],U=J[i],H=G._id.charAt(0)==="x",Q=G.range;f===0&&Q&&Q[0]>Q[1]!==H&&(o=-1);var Z=0,ne=H?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ce=Xw(J,r),ye=J.anchor,Se=ye==="end"?-1:1,re,Ce;if(ye==="middle")re=J.crossPos+(H?g(ce.y-J.by/2):y(J.bx/2+J.tx2width/2)),Ce=re+(H?g(J.by):y(J.bx));else if(H)re=J.crossPos+g(mt+ce.y)-g(J.by/2-mt),Ce=re+g(J.by);else{var pe=y(Se*mt+ce.x),be=pe+y(Se*J.bx);re=J.crossPos+Math.min(pe,be),Ce=J.crossPos+Math.max(pe,be)}H?d!==void 0&&m!==void 0&&Math.min(Ce,m)-Math.max(re,d)>1&&(U.side==="left"?(Z=U._mainLinePosition,ne=t.width):ne=U._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Ce,h)-Math.max(re,v)>1&&(U.side==="top"?(Z=U._mainLinePosition,ne=t.height):ne=U._mainLinePosition)}u[f++]=[{datum:J,traceIndex:J.trace.index,dp:0,pos:J.pos,posref:J.posref,size:J.by*(H?dW:1)/2,pmin:Z,pmax:ne}]}),u.sort(function(J,G){return J[0].posref-G[0].posref||o*(G[0].traceIndex-J[0].traceIndex)});var _,T,w,b,M,C,k;function q(J){var G=J[0],U=J[J.length-1];if(T=G.pmin-G.pos-G.dp+G.size,w=U.pos+U.dp+U.size-G.pmax,T>.01){for(M=J.length-1;M>=0;M--)J[M].dp+=T;_=!1}if(!(w<.01)){if(T<-.01){for(M=J.length-1;M>=0;M--)J[M].dp-=w;_=!1}if(_){var H=0;for(b=0;bG.pmax&&H++;for(b=J.length-1;b>=0&&!(H<=0);b--)C=J[b],C.pos>G.pmax-1&&(C.del=!0,H--);for(b=0;b=0;M--)J[M].dp-=w;for(b=J.length-1;b>=0&&!(H<=0);b--)C=J[b],C.pos+C.dp+C.size>G.pmax&&(C.del=!0,H--)}}}for(;!_&&l<=s;){for(l++,_=!0,b=0;b.01){for(M=P.length-1;M>=0;M--)P[M].dp+=T;for(D.push.apply(D,P),u.splice(b+1,1),k=0,M=D.length-1;M>=0;M--)k+=D[M].dp;for(w=k/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;_=!1}else b++}u.forEach(q)}for(b=u.length-1;b>=0;b--){var O=u[b];for(M=O.length-1;M>=0;M--){var I=O[M],V=I.datum;V.offset=I.dp,V.del=I.del}}}function Xw(e,r){var t=0,a=e.offset;return r&&(a*=-mW,t=e.offset*pW),{x:t,y:a}}function _W(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(mt+Br),a=t+r*(e.txwidth+Br),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Br),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Zw(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=No.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=_W(l),h=Xw(l,r),d=h.x,m=h.y,y=u==="middle",g="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,_;y?_="M-"+n(l.bx/2+l.tx2width/2)+","+i(m-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":g?_="M0,0L"+n(f*mt+d)+","+i(mt+m)+"v"+i(l.by/2-mt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*mt+d)+"V"+i(m-mt)+"Z":_="M"+n(f*mt+d)+","+i(m-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",_);var T=d+v.textShiftX,w=m+l.ty0-l.by/2+Br,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=y?-l.bx/2-l.tx2width/2+Br:-l.bx-Br):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=y?l.bx/2-l.tx2width/2-Br:l.bx+Br)),s.call(Ln.positionText,n(T),i(w)),l.tx2width&&(o.select("text.name").call(Ln.positionText,n(v.text2ShiftX+v.alignShift*Br+d),i(m+l.ty0-l.by/2+Br)),o.select("rect").call(Li.setRect,n(v.text2ShiftX+(v.alignShift-1)*l.tx2width/2+d),i(m-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function wW(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||Ki(h)&&h===0}var o=Array.isArray(t)?function(h,d){var m=Tt.castOption(n,t,h);return l(m)?m:Tt.extractOption({},a,"",d)}:function(h,d){return Tt.extractOption(i,a,h,d)};function s(h,d,m){var y=o(d,m);l(y)&&(e[h]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Tt.constrain(e.x0,0,e.xa._length),e.x1=Tt.constrain(e.x1,0,e.xa._length),e.y0=Tt.constrain(e.y0,0,e.ya._length),e.y1=Tt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:qi.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:qi.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=qi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+qi.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=qi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+qi.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function Ow(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var v=jt.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var y=f.spikesnap;y==="cursor"?(d=l.pointerX,m=l.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var g=Nw.readability(h.color,v)<1.5?jt.contrast(v):h.color,_=f.spikemode,T=f.spikethickness,w=f.spikecolor||g,b=qi.getPxPosition(e,f),M,C;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(M=b,C=d),_.indexOf("across")!==-1){var k=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),q=Math.max(q,f.position)),M=i.l+k*i.w,C=i.l+q*i.w}a.insert("line",":first-child").attr({x1:M,x2:C,y1:m,y2:m,"stroke-width":T,stroke:w,"stroke-dasharray":Li.dashStyle(f.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:C,y1:m,y2:m,"stroke-width":T+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?T:-T),cy:m,r:T,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,P,z;u=D&&D.xa,f=D&&D.ya;var F=u.spikesnap;F==="cursor"?(P=l.pointerX,z=l.pointerY):(P=u._offset+D.x,z=f._offset+D.y);var O=Nw.readability(D.color,v)<1.5?jt.contrast(v):D.color,I=u.spikemode,V=u.spikethickness,J=u.spikecolor||O,G=qi.getPxPosition(e,u),U,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(U=G,H=z),I.indexOf("across")!==-1){var Q=u._counterDomainMin,Z=u._counterDomainMax;u.anchor==="free"&&(Q=Math.min(Q,u.position),Z=Math.max(Z,u.position)),U=i.t+(1-Z)*i.h,H=i.t+(1-Q)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:U,y2:H,"stroke-width":V,stroke:J,"stroke-dasharray":Li.dashStyle(u.spikedash,V)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:U,y2:H,"stroke-width":V+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:G-(u.side!=="top"?V:-V),r:V,fill:J}).classed("spikeline",!0)}}}function TW(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function Bw(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Yw(e,r){return Ln.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function MW(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,Kw=e=>e.offsetLeft+e.clientLeft;function tu(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Tt.apply3DTransform(t._invTransform)(n,i),u=Tt.apply3DTransform(t._invTransform)(l,o),f=s[0],v=s[1],h=u[0],d=u[1];return{x:f,y:v,width:h-f,height:d-v,top:Math.min(v,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(v,d)}}});var lh=K((Use,Qw)=>{"use strict";var AW=Oe(),kW=Er(),SW=Ti().isUnifiedHover;Qw.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&SW(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=kW.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),AW.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var jw=K((Vse,$w)=>{"use strict";var CW=Oe(),LW=lh(),qW=ws();$w.exports=function(r,t){function a(n,i){return CW.coerce(r,t,qW,n,i)}LW(r,t,a)}});var tT=K((Gse,rT)=>{"use strict";var eT=Oe(),DW=qv(),EW=lh();rT.exports=function(r,t,a,n){function i(o,s){return eT.coerce(r,t,DW,o,s)}var l=eT.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),EW(r,t,i,l)}});var Dy=K((Wse,aT)=>{"use strict";var PW=Oe(),RW=ws();aT.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:PW.coerce(r,t,RW,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var lT=K((Xse,iT)=>{"use strict";var nT=Oe(),zW=ws(),NW=Dy(),FW=lh();iT.exports=function(r,t){function a(f,v){return nT.coerce(r,t,zW,f,v)}var n=NW(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),FW(r,t,a),nT.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var uT=K((Zse,sT)=>{"use strict";var Ey=Oe(),oT=br();sT.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Ey.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var HW=br(),OW=qy().hover;fT.exports=function(r,t,a){var n=HW.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&OW(r,t,a,!0);function l(){var s,u,f,v;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals),(v=o.yvals)!=null||(o.yvals=r._hoverYVals),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ni=K((Kse,dT)=>{"use strict";var BW=Hr(),oh=Oe(),YW=ti(),Pf=Ti(),vT=ws(),hT=qy();dT.exports={moduleType:"component",name:"fx",constants:Qu(),schema:{layout:vT},attributes:qv(),layoutAttributes:vT,supplyLayoutGlobalDefaults:jw(),supplyDefaults:tT(),supplyLayoutDefaults:lT(),calc:uT(),getDistanceFunction:Pf.getDistanceFunction,getClosest:Pf.getClosest,inbox:Pf.inbox,quadrature:Pf.quadrature,appendArrayPointValue:Pf.appendArrayPointValue,castHoverOption:VW,castHoverinfo:GW,hover:hT.hover,unhover:YW.unhover,loneHover:hT.loneHover,loneUnhover:UW,click:cT()};function UW(e){var r=oh.isD3Selection(e)?e:BW.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function VW(e,r,t){return oh.castOption(e,r,"hoverlabel."+t)}function GW(e,r,t){function a(n){return oh.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return oh.castOption(e,t,"hoverinfo",a)}});var nu=K(Qi=>{"use strict";Qi.selectMode=function(e){return e==="lasso"||e==="select"};Qi.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Qi.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Qi.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Qi.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Qi.selectingOrDrawing=function(e){return Qi.freeMode(e)||Qi.rectMode(e)}});var sh=K(($se,pT)=>{"use strict";pT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var uh=K((jse,mT)=>{"use strict";mT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ch=K((eue,yT)=>{"use strict";var fh=32;yT.exports={CIRCLE_SIDES:fh,i000:0,i090:fh/4,i180:fh/2,i270:fh/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var vh=K((rue,bT)=>{"use strict";var WW=Oe().strTranslate;function gT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function XW(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function ZW(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return gT(e,t[r])}}function JW(e){return WW(e.xaxis._offset,e.yaxis._offset)}bT.exports={p2r:gT,r2p:XW,axValue:ZW,getTransform:JW}});var Dl=K($i=>{"use strict";var KW=bm(),wT=ch(),iu=wT.CIRCLE_SIDES,Py=wT.SQRT2,TT=vh(),xT=TT.p2r,_T=TT.r2p,QW=[0,3,4,5,6,1,2],$W=[0,3,4,1,2];$i.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var MT=Xt(),LT=nu(),jW=LT.drawMode,eX=LT.openMode,lu=ch(),AT=lu.i000,kT=lu.i090,ST=lu.i180,CT=lu.i270,rX=lu.cos45,tX=lu.sin45,qT=vh(),dh=qT.p2r,El=qT.r2p,aX=wl(),nX=aX.clearOutline,ph=Dl(),iX=ph.readPaths,lX=ph.writePaths,oX=ph.ellipseOver,sX=ph.fixDatesForPaths;function uX(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!jW(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var fX=nu(),cX=fX.selectMode,vX=wl(),hX=vX.clearOutline,Ry=Dl(),dX=Ry.readPaths,pX=Ry.writePaths,mX=Ry.fixDatesForPaths;PT.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!cX(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";RT.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Rl=K(ua=>{"use strict";var Ei=zf(),zT=Oe(),Pl=pt();ua.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ua.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ua.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ua.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ua.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ei.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(Ei.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};ua.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=ua.shapePositionToRange(r);l=function(s){var u=Di(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=ua.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};ua.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=ua.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};ua.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};ua.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};ua.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};ua.getPathString=function(e,r){let t=r.type,a=Pl.getRefType(r.xref),n=Pl.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,v,h,d,m,y,g,_;function T(P,z,F,O){var I;if(P)if(z==="domain")O?I=function(V){return P._offset+P._length*(1-V)}:I=function(V){return P._offset+P._length*V};else{let V=ua.shapePositionToRange(P);I=function(J){return P._offset+P.r2p(V(J,!0))},F==="path"&&P.type==="date"&&(I=ua.decodeDate(I))}else O?I=function(V){return i.t+i.h*(1-V)}:I=function(V){return i.l+i.w*V};return I}if(a==="array"?(h=[],l=r.xref.map(function(P){return Pl.getFromId(e,P)}),h=r.xref.map(function(P,z){return T(l[z],Pl.getRefType(P),t,!1)})):(l=Pl.getFromId(e,r.xref),h=T(l,a,t,!1)),n==="array"?(d=[],o=r.yref.map(function(P){return Pl.getFromId(e,P)}),d=r.yref.map(function(P,z){return T(o[z],Pl.getRefType(P),t,!0)})):(o=Pl.getFromId(e,r.yref),d=T(o,n,t,!0)),t==="path")return yX(r,h,d);if(a==="array")s=Di(l[0],r.x0shift),u=Di(l[1],r.x1shift),m=h[0](r.x0)+s,y=h[1](r.x1)+u;else if(s=Di(l,r.x0shift),u=Di(l,r.x1shift),r.xsizemode==="pixel"){let P=h(r.xanchor);m=P+r.x0+s,y=P+r.x1+u}else m=h(r.x0)+s,y=h(r.x1)+u;if(n==="array")f=Di(o[0],r.y0shift),v=Di(o[1],r.y1shift),g=d[0](r.y0)+f,_=d[1](r.y1)+v;else if(f=Di(o,r.y0shift),v=Di(o,r.y1shift),r.ysizemode==="pixel"){let P=d(r.yanchor);g=P-r.y0+f,_=P-r.y1+v}else g=d(r.y0)+f,_=d(r.y1)+v;if(t==="line")return"M"+m+","+g+"L"+y+","+_;if(t==="rect")return"M"+m+","+g+"H"+y+"V"+_+"H"+m+"Z";var w=(m+y)/2,b=(g+_)/2,M=Math.abs(w-m),C=Math.abs(b-g),k="A"+M+","+C,q=w+M+","+b,D=w+","+(b-C);return"M"+q+k+" 0 1,1 "+D+k+" 0 0,1 "+q+"Z"};function yX(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,v=0;return a.replace(Ei.segmentRE,function(h){var d=0,m=h.charAt(0),y=Ei.paramIsX[m],g=Ei.paramIsY[m],_=Ei.numParams[m];let T=y.drawn!==void 0,w=g.drawn!==void 0,b=s?r[f]:r,M=u?t[v]:t;var C=h.slice(1).replace(Ei.paramRE,function(k){return y[d]?n==="pixel"?k=b(l)+Number(k):k=b(k):g[d]&&(i==="pixel"?k=M(o)-Number(k):k=M(k)),d++,d>_&&(k="X"),k});return d>_&&(C=C.replace(/[\s,]*X.*/,""),zT.log("Ignoring extra params in segment "+h)),T&&f++,w&&v++,m+C})}ua.getPixelShift=Di;function Di(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Ny=K((oue,IT)=>{"use strict";var gX=Oe(),Pi=pt(),NT=ga(),FT=tt(),bX=Dl().readPaths,Io=Rl(),xX=Io.getPathString,Nf=Hv(),_X=Ma().FROM_TL;IT.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Pi.getFromId(r,a.xref),s=Pi.getFromId(r,a.yref);let Z=Array.isArray(a.xref),ne=Array.isArray(a.yref);for(var u in Nf){var f=typeof Nf[u]=="function",v=!Z||Nf.simpleXVariables.includes(u),h=!ne||Nf.simpleYVariables.includes(u);if(f&&v&&h){var d=Nf[u](a,o,s);d!==void 0&&(l[u]=d)}}}i=gX.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var m={"data-index":t},y=a.label.font,g={"data-notex":1},_=n.append("g").attr(m).classed("shape-label",!0),T=_.append("text").attr(g).classed("shape-label-text",!0).text(i),w,b,M,C;if(a.path){var k=xX(r,a),q=bX(k,r);w=1/0,M=1/0,b=-1/0,C=-1/0;for(var D=0;DIo.getDataToPixel(r,le,Y,!1,he)($),B=($,Y,le,he)=>Io.getDataToPixel(r,le,Y,!0,he)($);if(a.xsizemode==="pixel"){let $=ge(a.xanchor,void 0,ce,Ce),Y=Io.getPixelShift(ce,a.x0shift),le=Io.getPixelShift(ce,a.x1shift);w=$+a.x0+Y,b=$+a.x1+le}else w=ge(a.x0,a.x0shift,ce,Ce),b=ge(a.x1,a.x1shift,ye,pe);if(a.ysizemode==="pixel"){let $=B(a.yanchor,void 0,Se,be),Y=Io.getPixelShift(Se,a.y0shift),le=Io.getPixelShift(Se,a.y1shift);M=$-a.y0+Y,C=$-a.y1+le}else M=B(a.y0,a.y0shift,Se,be),C=B(a.y1,a.y1shift,re,Ae)}var V=a.label.textangle;V==="auto"&&(a.type==="line"?V=wX(w,M,b,C):V=0),T.call(function(Z){return Z.call(FT.font,y).attr({}),NT.convertToTspans(Z,r),Z});var J=FT.bBox(T.node()),G=TX(w,M,b,C,a,V,J),U=G.textx,H=G.texty,Q=G.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Q],y:H,x:U,transform:"rotate("+V+","+U+","+H+")"}).call(NT.positionText,U,H)}};function wX(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function TX(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=n.label.xanchor,y=n.label.yanchor,g,_,T,w;if(f==="line"){o==="start"?(g=e,_=r):o==="end"?(g=t,_=a):(g=(e+t)/2,_=(r+a)/2),m==="auto"&&(o==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var MX=Oe(),AX=MX.strTranslate,HT=ti(),YT=nu(),kX=YT.drawMode,UT=YT.selectMode,VT=br(),OT=Er(),gh=ch(),SX=gh.i000,CX=gh.i090,LX=gh.i180,qX=gh.i270,DX=wl(),GT=DX.clearOutlineControllers,Iy=Dl(),yh=Iy.pointsOnRectangle,Fy=Iy.pointsOnEllipse,EX=Iy.writePaths,PX=mh().newShapes,RX=mh().createShapeObj,zX=zy(),NX=Ny();WT.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Fy(r[0])||a.hasText)&&o({redrawing:!0})}function o(G){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=PX(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=zX(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&VT.call((G||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=kX(f),h=UT(f);(v||h)&&(i._fullLayout._outlining=!0),GT(i),t.attr("d",EX(r));var d,m,y,g,_;if(!n&&(a.isActiveShape||a.isActiveSelection)){_=FX([],r);var T=u.append("g").attr("class","outline-controllers");P(T),J()}if(v&&a.hasText){var w=u.select(".label-temp"),b=RX(t,a,a.dragmode);NX(i,"label-temp",b,w)}function M(G){y=+G.srcElement.getAttribute("data-i"),g=+G.srcElement.getAttribute("data-j"),d[y][g].moveFn=C}function C(G,U){if(r.length){var H=_[y][g][1],Q=_[y][g][2],Z=r[y],ne=Z.length;if(yh(Z)){var ce=G,ye=U;if(a.isActiveSelection){var Se=BT(Z,g);Se[1]===Z[g][1]?ye=0:ce=0}for(var re=0;re1&&!(G.length===2&&G[1][0]==="Z")&&(g===0&&(G[0][0]="M"),r[y]=G,l(),o())}}function D(G,U){if(G===2){y=+U.srcElement.getAttribute("data-i"),g=+U.srcElement.getAttribute("data-j");var H=r[y];!yh(H)&&!Fy(H)&&q()}}function P(G){d=[];for(var U=0;U{"use strict";var HX=Hr(),$T=br(),Oy=Oe(),Ho=pt(),OX=Dl().readPaths,BX=bh(),_h=Ny(),jT=wl().clearOutlineControllers,Hy=Er(),wh=tt(),YX=ct().arrayEditor,XT=ti(),ZT=ni(),JT=Ll(),Oo=zf(),tn=Rl(),By=tn.getPathString;tM.exports={draw:Yy,drawOne:eM,eraseActiveShape:XX,drawLabel:_h};function Yy(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&ZT.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&ZT.click(e,l,t.id)}})}function rM(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,l=VX(r,a,n);Oy.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),wh.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");wh.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function VX(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(h=>Ho.getFromId(e,h)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(h){return h._offset}),v=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...v)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function GX(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",v=t.type==="path",h=i.modifyItem,d,m,y,g,_,T,w,b,M,C,k,q,D,P,z,F=HX.select(r.node().parentNode),O=Ho.getFromId(e,t.xref),I=Ho.getRefType(t.xref),V=Ho.getFromId(e,t.yref),J=Ho.getRefType(t.yref),G=t.x0shift,U=t.x1shift,H=t.y0shift,Q=t.y1shift,Z=function(Ee,Le){var Ve=tn.getDataToPixel(e,O,Le,!1,I);return Ve(Ee)},ne=function(Ee,Le){var Ve=tn.getDataToPixel(e,V,Le,!0,J);return Ve(Ee)},ce=tn.getPixelToData(e,O,!1,I),ye=tn.getPixelToData(e,V,!0,J),Se=pe(),re={element:Se.node(),gd:e,prepFn:ge,doneFn:B,clickFn:$},Ce;XT.init(re),Se.node().onmousemove=Ae;function pe(){return f?be():r}function be(){var Ee=10,Le=Math.max(t.line.width,Ee),Ve=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ve.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Le,"stroke-opacity":"0"});var Fe={"fill-opacity":"0"},Xe=Math.max(Le/2,Ee);return Ve.append("circle").attr({"data-line-point":"start-point",cx:s?Z(t.xanchor)+t.x0:Z(t.x0,G),cy:u?ne(t.yanchor)-t.y0:ne(t.y0,H),r:Xe}).style(Fe).classed("cursor-grab",!0),Ve.append("circle").attr({"data-line-point":"end-point",cx:s?Z(t.xanchor)+t.x1:Z(t.x1,U),cy:u?ne(t.yanchor)-t.y1:ne(t.y1,Q),r:Xe}).style(Fe).classed("cursor-grab",!0),Ve}function Ae(Ee){if(xh(e)){Ce=null;return}if(f)Ee.target.tagName==="path"?Ce="move":Ce=Ee.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Le=re.element.getBoundingClientRect(),Ve=Le.right-Le.left,Fe=Le.bottom-Le.top,Xe=Ee.clientX-Le.left,De=Ee.clientY-Le.top,Ie=!v&&Ve>l&&Fe>o&&!Ee.shiftKey?XT.getCursor(Xe/Ve,1-De/Fe):"move";JT(r,Ie),Ce=Ie.split("-")[0]}}function ge(Ee){xh(e)||(s&&(_=Z(t.xanchor)),u&&(T=ne(t.yanchor)),t.type==="path"?z=t.path:(d=s?t.x0:Z(t.x0),m=u?t.y0:ne(t.y0),y=s?t.x1:Z(t.x1),g=u?t.y1:ne(t.y1)),dg?(w=m,k="y0",b=g,q="y1"):(w=g,k="y1",b=m,q="y0"),Ae(Ee),he(n,t),Re(r,t,e),re.moveFn=Ce==="move"?Y:le,re.altKey=Ee.altKey)}function B(){xh(e)||(JT(r),me(n),rM(r,e,t),$T.call("_guiRelayout",e,i.getUpdateObj()))}function $(){xh(e)||me(n)}function Y(Ee,Le){if(t.type==="path"){var Ve=function(De){return De},Fe=Ve,Xe=Ve;s?h("xanchor",t.xanchor=ce(_+Ee)):(Fe=function(Ie){return ce(Z(Ie)+Ee)},O&&O.type==="date"&&(Fe=tn.encodeDate(Fe))),u?h("yanchor",t.yanchor=ye(T+Le)):(Xe=function(Ie){return ye(ne(Ie)+Le)},V&&V.type==="date"&&(Xe=tn.encodeDate(Xe))),h("path",t.path=KT(z,Fe,Xe))}else s?h("xanchor",t.xanchor=ce(_+Ee)):(h("x0",t.x0=ce(d+Ee)),h("x1",t.x1=ce(y+Ee))),u?h("yanchor",t.yanchor=ye(T+Le)):(h("y0",t.y0=ye(m+Le)),h("y1",t.y1=ye(g+Le)));r.attr("d",By(e,t)),he(n,t),_h(e,a,t,F)}function le(Ee,Le){if(v){var Ve=function(Ge){return Ge},Fe=Ve,Xe=Ve;s?h("xanchor",t.xanchor=ce(_+Ee)):(Fe=function(ir){return ce(Z(ir)+Ee)},O&&O.type==="date"&&(Fe=tn.encodeDate(Fe))),u?h("yanchor",t.yanchor=ye(T+Le)):(Xe=function(ir){return ye(ne(ir)+Le)},V&&V.type==="date"&&(Xe=tn.encodeDate(Xe))),h("path",t.path=KT(z,Fe,Xe))}else if(f){if(Ce==="resize-over-start-point"){var De=d+Ee,Ie=u?m-Le:m+Le;h("x0",t.x0=s?De:ce(De)),h("y0",t.y0=u?Ie:ye(Ie))}else if(Ce==="resize-over-end-point"){var We=y+Ee,ie=u?g-Le:g+Le;h("x1",t.x1=s?We:ce(We)),h("y1",t.y1=u?ie:ye(ie))}}else{var xe=function(Ge){return Ce.indexOf(Ge)!==-1},Ke=xe("n"),hr=xe("s"),ze=xe("w"),Me=xe("e"),ke=Ke?w+Le:w,He=hr?b+Le:b,Ze=ze?M+Ee:M,Ue=Me?C+Ee:C;u&&(Ke&&(ke=w-Le),hr&&(He=b-Le)),(!u&&He-ke>o||u&&ke-He>o)&&(h(k,t[k]=u?ke:ye(ke)),h(q,t[q]=u?He:ye(He))),Ue-Ze>l&&(h(D,t[D]=s?Ze:ce(Ze)),h(P,t[P]=s?Ue:ce(Ue)))}r.attr("d",By(e,t)),he(n,t),_h(e,a,t,F)}function he(Ee,Le){(s||u)&&Ve();function Ve(){var Fe=Le.type!=="path",Xe=Ee.selectAll(".visual-cue").data([0]),De=1;Xe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var Ie=Z(s?Le.xanchor:Oy.midRange(Fe?[Le.x0,Le.x1]:tn.extractPathCoords(Le.path,Oo.paramIsX))),We=ne(u?Le.yanchor:Oy.midRange(Fe?[Le.y0,Le.y1]:tn.extractPathCoords(Le.path,Oo.paramIsY)));if(Ie=tn.roundPositionForSharpStrokeRendering(Ie,De),We=tn.roundPositionForSharpStrokeRendering(We,De),s&&u){var ie="M"+(Ie-1-De)+","+(We-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Xe.attr("d",ie)}else if(s){var xe="M"+(Ie-1-De)+","+(We-9-De)+"v18 h2 v-18 Z";Xe.attr("d",xe)}else{var Ke="M"+(Ie-9-De)+","+(We-1-De)+"h18 v2 h-18 Z";Xe.attr("d",Ke)}}}function me(Ee){Ee.selectAll(".visual-cue").remove()}function Re(Ee,Le,Ve){var Fe=Le.xref,Xe=Le.yref,De=Ho.getFromId(Ve,Fe),Ie=Ho.getFromId(Ve,Xe),We="";Fe!=="paper"&&!De.autorange&&(We+=Fe),Xe!=="paper"&&!Ie.autorange&&(We+=Xe),wh.setClipUrl(Ee,We?"clip"+Ve._fullLayout._uid+We:null,Ve)}}function KT(e,r,t){return e.replace(Oo.segmentRE,function(a){var n=0,i=a.charAt(0),l=Oo.paramIsX[i],o=Oo.paramIsY[i],s=Oo.numParams[i],u=a.slice(1).replace(Oo.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function WX(e,r){if(Th(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){QT(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=QT,Yy(e)}}}function QT(e){if(Th(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(jT(e),delete e._fullLayout._activeShapeIndex,Yy(e))}}function XX(e){if(Th(e)){jT(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var qn=br(),aM=Ft(),nM=Xt(),Ur=uh(),ZX=Mh().eraseActiveShape,Ah=Oe(),Nr=Ah._,Vr=cM.exports={};Vr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Nr(e,"Download plot as a PNG"):Nr(e,"Download plot")},icon:Ur.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Ah.notifier(Nr(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),qn.call("downloadImage",e,t).then(function(a){Ah.notifier(Nr(e,"Snapshot succeeded")+" - "+a,"long",e)}).catch(function(){Ah.notifier(Nr(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Vr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.disk,click:function(e){aM.sendDataToCloud(e)}};Vr.editInChartStudio={name:"editInChartStudio",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Ur.pencil,click:function(e){aM.sendDataToCloud(e)}};Vr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ur.zoombox,click:za};Vr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nr(e,"Pan")},attr:"dragmode",val:"pan",icon:Ur.pan,click:za};Vr.select2d={name:"select2d",_cat:"select",title:function(e){return Nr(e,"Box Select")},attr:"dragmode",val:"select",icon:Ur.selectbox,click:za};Vr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ur.lasso,click:za};Vr.drawclosedpath={name:"drawclosedpath",title:function(e){return Nr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ur.drawclosedpath,click:za};Vr.drawopenpath={name:"drawopenpath",title:function(e){return Nr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ur.drawopenpath,click:za};Vr.drawline={name:"drawline",title:function(e){return Nr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ur.drawline,click:za};Vr.drawrect={name:"drawrect",title:function(e){return Nr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ur.drawrect,click:za};Vr.drawcircle={name:"drawcircle",title:function(e){return Nr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ur.drawcircle,click:za};Vr.eraseshape={name:"eraseshape",title:function(e){return Nr(e,"Erase active shape")},icon:Ur.eraseshape,click:ZX};Vr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nr(e,"Zoom in")},attr:"zoom",val:"in",icon:Ur.zoom_plus,click:za};Vr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nr(e,"Zoom out")},attr:"zoom",val:"out",icon:Ur.zoom_minus,click:za};Vr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ur.autoscale,click:za};Vr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ur.home,click:za};Vr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ur.tooltip_basic,gravity:"ne",click:za};Vr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ur.tooltip_compare,gravity:"ne",click:za};function za(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=nM.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var v=n==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,y;for(f=0;f{"use strict";var vM=Gy(),QX=Object.keys(vM),hM=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],dM=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(hM),su=[],$X=function(e){if(dM.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();su.indexOf(r)===-1&&su.push(r),su.indexOf(t)===-1&&su.push(t)}};QX.forEach(function(e){$X(vM[e])});su.sort();pM.exports={DRAW_MODES:hM,backButtons:dM,foreButtons:su}});var Xy=K((hue,mM)=>{"use strict";var vue=Wy();mM.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var gM=K((due,yM)=>{"use strict";var jX=Oe(),Ff=Er(),eZ=ct(),rZ=Xy();yM.exports=function(r,t){var a=r.modebar||{},n=eZ.newContainer(t,"modebar");function i(o,s){return jX.coerce(a,n,rZ,o,s)}i("orientation"),i("bgcolor",Ff.addOpacity(t.paper_bgcolor,.5));var l=Ff.contrast(Ff.rgb(t.modebar.bgcolor));i("color",Ff.addOpacity(l,.3)),i("activecolor",Ff.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var wM=K((pue,_M)=>{"use strict";var Zy=Hr(),tZ=Or(),Sh=Oe(),bM=uh(),aZ=gv().version,nZ=new DOMParser;function xM(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ri=xM.prototype;Ri.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(v){v.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Sh.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ri.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Ri.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ri.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Zy.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||bM.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ri.createIcon=function(e){var r=tZ(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=nZ.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ri.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=Zy.select(a),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:Sh.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ri.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var oZ=Xt(),TM=un(),Jy=br(),sZ=Ti().isUnifiedHover,uZ=wM(),Ch=Gy(),fZ=Wy().DRAW_MODES,cZ=Oe().extendDeep;MM.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=yZ(i):!a.displayModeBar&&a.watermark?l=[]:l=vZ(r),n?n.update(r,l):t._modeBar=uZ(r,l)};function vZ(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,H){if(typeof H=="string"){if(H.toLowerCase()===U.toLowerCase())return!0}else{var Q=H.name,Z=H._cat||H.name;if(Q===U||Z===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var H=0;H1?(P=["toggleHover"],z=["resetViews"]):v?(D=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(D=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],z=["resetViewMapbox"]):g?(D=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):h?P=["hoverClosestPie"]:w?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(pZ(t)||M)&&(P=[]),u&&!b&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?F=["zoom2d","pan2d"]:y||g||v?F=["pan2d"]:_&&(F=["zoom2d"]),dZ(t)&&F.push("select2d","lasso2d");var O=[],I=function(U){O.indexOf(U)===-1&&P.indexOf(U)!==-1&&O.push(U)};if(Array.isArray(o)){for(var V=[],J=0;J{"use strict";kM.exports={moduleType:"component",name:"modebar",layoutAttributes:Xy(),supplyLayoutDefaults:gM(),manage:AM()}});var Qy=K((gue,SM)=>{"use strict";var gZ=Ma().FROM_BL;SM.exports=function(r,t,a){a===void 0&&(a=gZ[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Hf=K(If=>{"use strict";var Bo=Oe(),$y=_f(),ii=Xt().id2name,bZ=jn(),CM=Qy(),xZ=P0(),_Z=Vt().ALMOST_EQUAL,wZ=Ma().FROM_BL;If.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,v,h,d,m;for(o=0;oi?t.slice(i):a.slice(n))+l}function MZ(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;l_Z*m&&!T)){for(i=0;iF&&QP&&(P=Q);var ne=(P-D)/(2*z);v/=ne,D=s.l2r(D),P=s.l2r(P),s.range=s._input.range=C{"use strict";var qh=Hr(),Na=br(),dn=Ft(),Dn=Oe(),rg=ga(),tg=sh(),Of=Er(),uu=tt(),EM=bf(),FM=Ky(),Bf=pt(),ji=Ma(),IM=Hf(),AZ=IM.enforce,kZ=IM.clean,PM=_f().doAutoRange,HM="start",SZ="middle",OM="end",CZ=Qt().zindexSeparator;ea.layoutStyles=function(e){return Dn.syncOrAsync([dn.doAutoMargin,qZ],e)};function LZ(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function qZ(e){var r=e._fullLayout,t=r._size,a=t.p,n=Bf.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(uu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ea.drawMainTitle(e),FM.manage(e),!r._has("cartesian"))return dn.previousPromises(e);function v(ge,B,$){var Y=ge._lw/2;if(ge._id.charAt(0)==="x"){if(B){if($==="top")return B._offset-a-Y}else return t.t+t.h*(1-(ge.position||0))+Y%1;return B._offset+B._length+a+Y}if(B){if($==="right")return B._offset+B._length+a+Y}else return t.l+t.w*(ge.position||0)+Y%1;return B._offset-a-Y}for(i=0;i0){RZ(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:NM(r.yanchor)}).call(rg.positionText,l,i);var f=(r.text.match(rg.BR_TAG_ALL)||[]).length;if(f){var v=ji.LINE_SPACING*f+ji.MID_SHIFT;r.y===0&&(v=-v),o.selectAll(".line").each(function(){var g=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",g)})}var h=qh.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),m=d.y+d.height,y=m+EM.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y,"text-anchor":a,dy:NM(r.yanchor)}).call(rg.positionText,l,y)}}}};function DZ(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Dn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Dn.isTopAnchor(r)&&t==="t"||Dn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=EZ(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function RZ(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&DZ(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),dn.allowAutoMargin(e,n),dn.autoMargin(e,n,o)}function zZ(e,r){var t=e.title,a=e._size,n=0;switch(r===HM?n=t.pad.l:r===OM&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function NZ(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===ji.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function NM(e){return e==="top"?ji.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":ji.MID_SHIFT+"em"}function FZ(e){var r=e.title,t=SZ;return Dn.isRightAnchor(r)?t=OM:Dn.isLeftAnchor(r)&&(t=HM),t}function IZ(e){var r=e.title,t="0em";return Dn.isTopAnchor(r)?t=ji.CAP_SHIFT+"em":Dn.isMiddleAnchor(r)&&(t=ji.MID_SHIFT+"em"),t}ea.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var HZ=Dl().readPaths,OZ=bh(),BM=wl().clearOutlineControllers,ag=Er(),YM=tt(),BZ=ct().arrayEditor,UM=Rl(),YZ=UM.getPathString;GM.exports={draw:Eh,drawOne:VM,activateLastSelection:GZ};function Eh(e){var r=e._fullLayout;BM(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;g--){var _=l.append("path").attr(s).style("opacity",g?.1:u).call(ag.stroke,v).call(ag.fill,f).call(YM.dashLine,g?"solid":d,g?4+h:h);if(UZ(_,e,a),m){var T=BZ(e.layout,"selections",a);_.style({cursor:"move"});var w={element:_.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},b=HZ(o,e);OZ(b,_,w)}else _.style("pointer-events",g?"all":"none");y[g]=_}var M=y[0],C=y[1];C.node().addEventListener("click",function(){return VZ(e,M)})}}function UZ(e,r,t){var a=t.xref+t.yref;YM.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function VZ(e,r){if(Ph(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){ng(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=ng,Eh(e)}}}function GZ(e){if(Ph(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=ng,Eh(e)}}function ng(e){if(Ph(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(BM(e),delete e._fullLayout._activeSelectionIndex,Eh(e))}}});var XM=K((wue,WM)=>{function WZ(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}WM.exports=WZ});var JM=K((Tue,ZM)=>{function XZ(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-v)/(o-v)+f-n>e&&(s=!s),l=f,o=v}return s}};return r}ZM.exports=XZ});var QM=K((Mue,KM)=>{var ZZ={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};KM.exports=ZZ});var jM=K((Aue,$M)=>{var Yf=QM();function JZ(e,r,t){function a(m,y){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:null,below:null},otherFill:null}}function n(m,y,g){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:g.myFill.above,below:g.myFill.below},otherFill:null}}var i=Yf.create();function l(m,y,g,_,T,w){var b=r.pointsCompare(y,T);return b!==0?b:r.pointsSame(g,w)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(g,_?T:w,_?w:T)?1:-1}function o(m,y){i.insertBefore(m,function(g){var _=l(m.isStart,m.pt,y,g.isStart,g.pt,g.other.pt);return _<0})}function s(m,y){var g=Yf.node({isStart:!0,pt:m.start,seg:m,primary:y,other:null,status:null});return o(g,m.end),g}function u(m,y,g){var _=Yf.node({isStart:!1,pt:y.end,seg:y,primary:g,other:m,status:null});m.other=_,o(_,m.pt)}function f(m,y){var g=s(m,y);return u(g,m,y),g}function v(m,y){t&&t.segmentChop(m.seg,y),m.other.remove(),m.seg.end=y,m.other.pt=y,o(m.other,m.pt)}function h(m,y){var g=n(y,m.seg.end,m.seg);return v(m,y),f(g,m.primary)}function d(m,y){var g=Yf.create();function _(V,J){var G=V.seg.start,U=V.seg.end,H=J.seg.start,Q=J.seg.end;return r.pointsCollinear(G,H,Q)?r.pointsCollinear(U,H,Q)||r.pointAboveOrOnLine(U,H,Q)?1:-1:r.pointAboveOrOnLine(G,H,Q)?1:-1}function T(V){return g.findTransition(function(J){var G=_(V,J.ev);return G>0})}function w(V,J){var G=V.seg,U=J.seg,H=G.start,Q=G.end,Z=U.start,ne=U.end;t&&t.checkIntersection(G,U);var ce=r.linesIntersect(H,Q,Z,ne);if(ce===!1){if(!r.pointsCollinear(H,Q,Z)||r.pointsSame(H,ne)||r.pointsSame(Q,Z))return!1;var ye=r.pointsSame(H,Z),Se=r.pointsSame(Q,ne);if(ye&&Se)return J;var re=!ye&&r.pointBetween(H,Z,ne),Ce=!Se&&r.pointBetween(Q,Z,ne);if(ye)return Ce?h(J,Q):h(V,ne),J;re&&(Se||(Ce?h(J,Q):h(V,ne)),h(J,H))}else ce.alongA===0&&(ce.alongB===-1?h(V,Z):ce.alongB===0?h(V,ce.pt):ce.alongB===1&&h(V,ne)),ce.alongB===0&&(ce.alongA===-1?h(J,H):ce.alongA===0?h(J,ce.pt):ce.alongA===1&&h(J,Q));return!1}for(var b=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let V=function(){if(k){var J=w(M,k);if(J)return J}return q?w(M,q):!1};var I=V;t&&t.segmentNew(M.seg,M.primary);var C=T(M),k=C.before?C.before.ev:null,q=C.after?C.after.ev:null;t&&t.tempStatus(M.seg,k?k.seg:!1,q?q.seg:!1);var D=V();if(D){if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,P&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,q?M.seg.myFill.below=q.seg.myFill.above:M.seg.myFill.below=m,P?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var z;q?M.primary===q.primary?z=q.seg.otherFill.above:z=q.seg.myFill.above:z=M.primary?y:m,M.seg.otherFill={above:z,below:z}}t&&t.status(M.seg,k?k.seg:!1,q?q.seg:!1),M.other.status=C.insert(Yf.node({ev:M}))}else{var F=M.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(g.exists(F.prev)&&g.exists(F.next)&&w(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!M.primary){var O=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=O}b.push(M.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var y,g=m[m.length-1],_=0;_{function KZ(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(I,V,J){return f.index=I,f.matches_head=V,f.matches_pt1=J,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function Uf(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var QZ={union:function(e,r){return Uf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Uf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Uf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Uf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Uf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};tA.exports=QZ});var iA=K((Cue,nA)=>{var $Z={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var jZ=XM(),eJ=JM(),lA=jM(),rJ=rA(),Vf=aA(),oA=iA(),En=!1,Gf=eJ(),an;an={buildLog:function(e){return e===!0?En=jZ():e===!1&&(En=!1),En===!1?!1:En.list},epsilon:function(e){return Gf.epsilon(e)},segments:function(e){var r=lA(!0,Gf,En);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=lA(!1,Gf,En);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Vf.union(e.combined,En),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Vf.intersect(e.combined,En),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Vf.difference(e.combined,En),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Vf.differenceRev(e.combined,En),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Vf.xor(e.combined,En),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:rJ(e.segments,Gf,En),inverted:e.inverted}},polygonFromGeoJSON:function(e){return oA.toPolygon(an,e)},polygonToGeoJSON:function(e){return oA.fromPolygon(an,Gf,e)},union:function(e,r){return Wf(e,r,an.selectUnion)},intersect:function(e,r){return Wf(e,r,an.selectIntersect)},difference:function(e,r){return Wf(e,r,an.selectDifference)},differenceRev:function(e,r){return Wf(e,r,an.selectDifferenceRev)},xor:function(e,r){return Wf(e,r,an.selectXor)}};function Wf(e,r,t){var a=an.segments(e),n=an.segments(r),i=an.combine(a,n),l=t(i);return an.polygon(l)}typeof window=="object"&&(window.PolyBool=an);sA.exports=an});var cA=K((que,fA)=>{fA.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=m>l&&i<(d-v)*(l-h)/(m-h)+v;y&&(o=!o)}return o}});var og=K((Due,vA)=>{"use strict";var lg=Nv().dot,Rh=Vt().BADNUM,zh=vA.exports={};zh.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||_===Rh||_l||y&&u(m))}function v(m,y){var g=m[0],_=m[1];if(g===Rh||gn||_===Rh||_l)return!1;var T=t.length,w=t[0][0],b=t[0][1],M=0,C,k,q,D,P;for(C=1;CMath.max(k,w)||_>Math.max(q,b)))if(_o||Math.abs(lg(v,u))>n)return!0;return!1};zh.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var v=f+1;v1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var dA=K((Eue,hA)=>{"use strict";hA.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var NA=K((Pue,zA)=>{"use strict";var pA=uA(),tJ=cA(),Jf=br(),aJ=tt().dashStyle,Xf=Er(),nJ=ni(),iJ=Ti().makeEventData,ec=nu(),lJ=ec.freeMode,oJ=ec.rectMode,Kf=ec.drawMode,cg=ec.openMode,vg=ec.selectMode,mA=Rl(),yA=zf(),wA=bh(),TA=wl().clearOutline,MA=Dl(),sg=MA.handleEllipse,sJ=MA.readPaths,uJ=mh().newShapes,fJ=zy(),cJ=ig().activateLastSelection,Fh=Oe(),vJ=Fh.sorterAsc,AA=og(),Zf=Zv(),Pn=Xt().getFromId,hJ=sh(),dJ=Dh().redrawReglTraces,Ih=dA(),zi=Ih.MINSELECT,pJ=AA.filter,hg=AA.tester,dg=vh(),gA=dg.p2r,mJ=dg.axValue,yJ=dg.getTransform;function pg(e){return e.subplot!==void 0}function gJ(e,r,t,a,n){var i=!pg(a),l=lJ(n),o=oJ(n),s=cg(n),u=Kf(n),f=vg(n),v=n==="drawline",h=n==="drawcircle",d=v||h,m=a.gd,y=m._fullLayout,g=f&&y.newselection.mode==="immediate"&&i,_=y._zoomlayer,T=a.element.getBoundingClientRect(),w=a.plotinfo,b=yJ(w),M=r-T.left,C=t-T.top;y._calcInverseTransform(m);var k=Fh.apply3DTransform(y._invTransform)(M,C);M=k[0],C=k[1];var q=y._invScaleX,D=y._invScaleY,P=M,z=C,F="M"+M+","+C,O=a.xaxes[0],I=a.yaxes[0],V=O._length,J=I._length,G=e.altKey&&!(Kf(n)&&s),U,H,Q,Z,ne,ce,ye;SA(e,m,a),l&&(U=pJ([[M,C]],Ih.BENDPX));var Se=_.selectAll("path.select-outline-"+w.id).data([1]),re=u?y.newshape:y.newselection;u&&(a.hasText=re.label.text||re.label.texttemplate);var Ce=u&&!s?re.fillcolor:"rgba(0,0,0,0)",pe=re.line.color||(i?Xf.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Se.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?re.opacity/2:1,"stroke-dasharray":aJ(re.line.dash,re.line.width),"stroke-width":re.line.width+"px","shape-rendering":"crispEdges"}).call(Xf.stroke,pe).call(Xf.fill,Ce).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",F+"Z");var be=_.append("path").attr("class","zoombox-corners").style({fill:Xf.background,stroke:Xf.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var Ae=_.select(".label-temp");Ae.empty()&&(Ae=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ge=y._uid+Ih.SELECTID,B=[],$=Hh(m,a.xaxes,a.yaxes,a.subplot);g&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var le=O._id,he=I._id;EA(m,le,he,$);for(var me=(m.layout||{}).selections||[],Re=[],Ee=!1,Le=0;Le=0){m._fullLayout._deactivateShape(m);return}if(!u){var me=y.clickmode;Zf.done(ge).then(function(){if(Zf.clear(ge),le===2){for(Se.remove(),ne=0;ne<$.length;ne++)ce=$[ne],ce._module.selectPoints(ce,!1);if($f(m,$),Qf(a),gg(m),$.length){var Re=$[0].xaxis,Ee=$[0].yaxis;if(Re&&Ee){for(var Le=[],Ve=m._fullLayout.selections,Fe=0;Fe-1&&kA(he,m,a.xaxes,a.yaxes,a.subplot,a,Se),me==="event"&&jf(m,void 0);nJ.click(m,he,w.id)}).catch(Fh.error)}},a.doneFn=function(){be.remove(),Zf.done(ge).then(function(){Zf.clear(ge),!g&&Z&&a.selectionDefs&&(Z.subtract=G,a.selectionDefs.push(Z),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Q)),(g||u)&&Qf(a,g),a.doneFnCompleted&&a.doneFnCompleted(B),f&&jf(m,ye)}).catch(Fh.error)}}function kA(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,y,g,_,T,w,b,M;if(TJ(o)){SA(e,r,i),h=Hh(r,t,a,n);var C=MJ(o,h),k=C.pointNumbers.length>0;if(k?AJ(h,C):kJ(h)&&(T=xA(C))){for(l&&l.remove(),M=0;M=0}function wJ(e){return e._fullLayout._activeSelectionIndex>=0}function Qf(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;_J(n)&&n._fullLayout._deactivateShape(n),wJ(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Kf(t),s=vg(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=uJ(u,e)),f&&Jf.call("_guiRelayout",n,{shapes:f});var v;s&&!pg(e)&&(v=fJ(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,Jf.call("_guiRelayout",n,{selections:v}).then(function(){r&&cJ(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function bA(e){return e._id}function Hh(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(bA),l=t.map(bA),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function AJ(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function $f(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var le=_A(e,!0);if(le.length){var he=le[0].xref,me=le[0].yref;if(he&&me){var Re=PA(le),Ee=RA([Pn(e,he,"x"),Pn(e,me,"y")]);Ee(B,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Y&&jf(e,B),h._reselect=!1}if(!l&&h._deselect){var Le=h._deselect;o=Le.xref,s=Le.yref,LJ(o,s,f)||EA(e,o,s,a),Y&&(B.points.length?jf(e,B):gg(e)),h._deselect=!1}return{eventData:B,selectionTesters:t}}function CJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";FA.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var rc=K((zue,IA)=>{"use strict";IA.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var fu=K((Fue,BA)=>{"use strict";var HA=bg(),OA=ya(),Oh=Qt(),RJ=ct().templatedArray,Nue=rc();BA.exports=RJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:OA({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:HA.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:HA.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Oh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Oh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Oh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Oh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:OA({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Bh=K((Iue,YA)=>{"use strict";YA.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var VA=K((Hue,UA)=>{"use strict";UA.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Yo=K((Oue,$A)=>{"use strict";var GA=d0().axisHoverFormat,{hovertemplateAttrs:zJ,texttemplateAttrs:NJ,templatefallbackAttrs:WA}=co(),XA=mf(),FJ=ya(),ZA=xi().dash,IJ=xi().pattern,HJ=tt(),OJ=Bh(),tc=Gt().extendFlat,BJ=VA();function JA(e){return{valType:"any",dflt:0,editType:"calc"}}function KA(e){return{valType:"any",editType:"calc"}}function QA(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}$A.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:JA("x"),yperiod:JA("y"),xperiod0:KA("x0"),yperiod0:KA("y0"),xperiodalignment:QA("x"),yperiodalignment:QA("y"),xhoverformat:GA("x"),yhoverformat:GA("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:NJ(),texttemplatefallback:WA({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:zJ({},{keys:OJ.eventDataKeys}),hovertemplatefallback:WA(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:tc({},ZA,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:BJ(!0),fillgradient:tc({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:IJ,marker:tc({symbol:{valType:"enumerated",values:HJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:tc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:tc({},ZA,{arrayOk:!0}),editType:"calc"},XA("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},XA("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:FJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var xg=K((Yue,rk)=>{"use strict";var jA=fu(),ek=Yo().line,YJ=xi().dash,Yh=Gt().extendFlat,UJ=bi().overrideAll,VJ=ct().templatedArray,Bue=rc();rk.exports=UJ(VJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Yh({},jA.xref,{}),yref:Yh({},jA.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:ek.color,width:Yh({},ek.width,{min:1,dflt:1}),dash:Yh({},YJ,{dflt:"dot"})}}),"arraydraw","from-root")});var ik=K((Uue,nk)=>{"use strict";var tk=Oe(),Uh=pt(),GJ=ei(),WJ=xg(),ak=Rl();nk.exports=function(r,t){GJ(r,t,{name:"selections",handleItemDefaults:XJ});for(var a=t.selections,n=0;n{"use strict";lk.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var ac=K((Gue,fk)=>{"use strict";var ZJ=br(),sk=Oe(),uk=Xt();fk.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=ZJ.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var ck=ig(),nc=NA();vk.exports={moduleType:"component",name:"selections",layoutAttributes:xg(),supplyLayoutDefaults:ik(),supplyDrawNewSelectionDefaults:ok(),includeBasePlot:ac()("selections"),draw:ck.draw,drawOne:ck.drawOne,reselect:nc.reselect,prepSelect:nc.prepSelect,clearOutline:nc.clearOutline,clearSelectionsCache:nc.clearSelectionsCache,selectOnClick:nc.selectOnClick}});var Pk=K((Xue,Ek)=>{"use strict";var Ag=Hr(),Rn=Oe(),hk=Rn.numberFormat,JJ=wn(),KJ=iy(),Vh=br(),wk=Rn.strTranslate,QJ=ga(),dk=Er(),Nl=tt(),$J=ni(),pk=pt(),jJ=Ll(),eK=ti(),Tk=nu(),Gh=Tk.selectingOrDrawing,rK=Tk.freeMode,tK=Ma().FROM_TL,aK=sh(),nK=Dh().redrawReglTraces,iK=Ft(),wg=Xt().getFromId,lK=cu().prepSelect,oK=cu().clearOutline,sK=cu().selectOnClick,_g=Qy(),kg=Qt(),mk=kg.MINDRAG,Ga=kg.MINZOOM,yk=!0;function uK(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,v,h,d,m,y,g,_,T,w,b,M,C,k,q,D,P,z,F,O,I,V,J,G;t+=r.yaxis._shift;function U(){if(v=r.xaxis,h=r.yaxis,w=v._length,b=h._length,_=v._offset,T=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,l&&o)for(var Me=r.overlays,ke=0;ke=0){He._fullLayout._deactivateShape(He);return}var Ze=He._fullLayout.clickmode;if(Mg(He),Me===2&&!f&&We(),u)Ze.indexOf("select")>-1&&sK(ke,He,y,g,r.id,Z),Ze.indexOf("event")>-1&&$J.click(He,ke,r.id);else if(Me===1&&f){var Ue=l?h:v,Ge=l==="s"||o==="w"?0:1,ir=Ue._name+".range["+Ge+"]",ar=fK(Ue,Ge),er="left",Ne="middle";if(Ue.fixedrange)return;l?(Ne=l==="n"?"top":"bottom",Ue.side==="right"&&(er="right")):o==="e"&&(er="right"),He._context.showAxisRangeEntryBoxes&&Ag.select(Q).call(QJ.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(ar),fill:Ue.tickfont?Ue.tickfont.color:"#444",horizontalAlign:er,verticalAlign:Ne}).on("edit",function(ae){var oe=Ue.d2r(ae);oe!==void 0&&Vh.call("_guiRelayout",He,ir,oe)})}}eK.init(Z);var ye,Se,re,Ce,pe,be,Ae,ge,B,$;function Y(Me,ke,He){var Ze=Q.getBoundingClientRect();ye=ke-Ze.left,Se=He-Ze.top,e._fullLayout._calcInverseTransform(e);var Ue=Rn.apply3DTransform(e._fullLayout._invTransform)(ye,Se);ye=Ue[0],Se=Ue[1],re={l:ye,r:ye,w:0,t:Se,b:Se,h:0},Ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:JJ(e._fullLayout.plot_bgcolor).getLuminance(),pe="M0,0H"+w+"V"+b+"H0V0",be=!1,Ae="xy",$=!1,ge=kk(s,Ce,_,T,pe),B=Sk(s,_,T)}function le(Me,ke){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(w,J*Me+ye)),Ze=Math.max(0,Math.min(b,G*ke+Se)),Ue=Math.abs(He-ye),Ge=Math.abs(Ze-Se);re.l=Math.min(ye,He),re.r=Math.max(ye,He),re.t=Math.min(Se,Ze),re.b=Math.max(Se,Ze);function ir(){Ae="",re.r=re.l,re.t=re.b,B.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ue>Ga||Ge>Ga?(Ae="xy",Ue/w>Ge/b?(Ge=Ue*b/w,Se>Ze?re.t=Se-Ge:re.b=Se+Ge):(Ue=Ge*w/b,ye>He?re.l=ye-Ue:re.r=ye+Ue),B.attr("d",Wh(re))):ir();else if(C.isSubplotConstrained)if(Ue>Ga||Ge>Ga){Ae="xy";var ar=Math.min(re.l/w,(b-re.b)/b),er=Math.max(re.r/w,(b-re.t)/b);re.l=ar*w,re.r=er*w,re.b=(1-ar)*b,re.t=(1-er)*b,B.attr("d",Wh(re))}else ir();else!q||Ge0){var ae;if(C.isSubplotConstrained||!k&&q.length===1){for(ae=0;ae1&&(ir.maxallowed!==void 0&&P===(ir.range[0]1&&(ar.maxallowed!==void 0&&z===(ar.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function vK(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function kk(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",wk(t,a)).attr("d",n+"Z")}function Sk(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:dk.background,stroke:dk.defaultLine,"stroke-width":1,opacity:0}).attr("transform",wk(r,t)).attr("d","M0,0Z")}function Ck(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),Lk(e,r,n,i)}function Lk(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function Mg(e){Ag.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function qk(e){yk&&e.data&&e._context.showTips&&(Rn.notifier(Rn._(e,"Double-click to zoom back out"),"long",e),yk=!1)}function hK(e,r){return"M"+(e.l-.5)+","+(r-Ga-.5)+"h-3v"+(2*Ga+1)+"h3ZM"+(e.r+.5)+","+(r-Ga-.5)+"h3v"+(2*Ga+1)+"h-3Z"}function dK(e,r){return"M"+(r-Ga-.5)+","+(e.t-.5)+"v-3h"+(2*Ga+1)+"v3ZM"+(r-Ga-.5)+","+(e.b+.5)+"v3h"+(2*Ga+1)+"v-3Z"}function Wh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ga)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function xk(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,v,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m{"use strict";var pK=Hr(),Xh=ni(),mK=ti(),yK=Ll(),li=Pk().makeDragBox,ra=Qt().DRAGGERSIZE;Zh.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){pK.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=li(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Xh.hover(r,h,i)},Xh.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,mK.unhover(r,h))},r._context.showAxisDragHandles&&(li(r,l,o._offset-ra,s._offset-ra,ra,ra,"n","w"),li(r,l,o._offset+o._length,s._offset-ra,ra,ra,"n","e"),li(r,l,o._offset-ra,s._offset+s._length,ra,ra,"s","w"),li(r,l,o._offset+o._length,s._offset+s._length,ra,ra,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=ra),li(r,l,o._offset+o._length*.1,f,o._length*.8,ra,"","ew"),li(r,l,o._offset,f,o._length*.1,ra,"","w"),li(r,l,o._offset+o._length*.9,f,o._length*.1,ra,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=ra),li(r,l,v,s._offset+s._length*.1,ra,s._length*.8,"ns",""),li(r,l,v,s._offset+s._length*.9,ra,s._length*.1,"s",""),li(r,l,v,s._offset,ra,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Xh.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Xh.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Zh.updateFx(r)}};Zh.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";yK(r._draggers,t)}});var Nk=K((Jue,zk)=>{"use strict";var Rk=br();zk.exports=function(r){for(var t=Rk.layoutArrayContainers,a=Rk.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var gK=cl(),Cg=zv(),ic=fo(),bK=_p().sorterAsc,Lg=br();lc.containerArrayMatch=Nk();var xK=lc.isAddVal=function(r){return r==="add"||gK(r)},Fk=lc.isRemoveVal=function(r){return r===null||r==="remove"};lc.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=Lg.getComponentMethod(l,"supplyLayoutDefaults"),s=Lg.getComponentMethod(l,"draw"),u=Lg.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===Cg||s===Cg,v=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&ic.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(Fk(d))t.set(null);else if(Array.isArray(d))t.set(d);else return ic.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(v,h),s(r),!0)}var m=Object.keys(a).map(Number).sort(bK),y=t.get(),g=y||[],_=i(h,l).get(),T=[],w=-1,b=g.length,M,C,k,q,D,P,z,F;for(M=0;Mg.length-(z?0:1)){ic.warn("index out of range",l,k);continue}if(P!==void 0)D.length>1&&ic.warn("Insertion & removal are incompatible with edits to the same index.",l,k),Fk(P)?T.push(k):z?(P==="add"&&(P={}),g.splice(k,0,P),_&&_.splice(k,0,{})):ic.warn("Unrecognized full object edit value",l,k,P),w===-1&&(w=k);else for(C=0;C=0;M--)g.splice(T[M],1),_&&_.splice(T[M],1);if(g.length?y||t.set(g):t.set(null),f)return!1;if(o(v,h),u!==Cg){var O;if(w===-1)O=m;else{for(b=Math.max(g.length,b),O=[],M=0;M=w));M++)O.push(k);for(M=w;M{"use strict";var Yk=Or(),Uk=br(),Fa=Oe(),oc=Ft(),Vk=Xt(),Gk=Er(),sc=Vk.cleanId,_K=Vk.getFromTrace,qg=Uk.traceIs,wK=["x","y","z"];zn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Fa.log("Clearing previous rejected promises from queue."),e._promises=[]};zn.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(oc.subplotsRegistry.cartesian||{}).attrRegex,n=(oc.subplotsRegistry.polar||{}).attrRegex,i=(oc.subplotsRegistry.ternary||{}).attrRegex,l=(oc.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Gk.clean(e),e.template&&e.template.layout&&zn.cleanLayout(e.template.layout),e};function vu(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=sc(a,n,!0))}zn.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}zn.hasParent=function(e,r){for(var t=Bk(r);t;){if(t in e)return!0;t=Bk(t)}return!1};zn.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Fa.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aFa.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?Dg(n,i):!1))return!1}return!0}return!1};zn.collectionsAreEqual=Dg});var Fg=K(Yr=>{"use strict";var $h=Hr(),AK=Or(),kK=zp(),tr=Oe(),ut=tr.nestedProperty,Rg=ff(),Wa=A6(),Nn=br(),id=Is(),xr=Ft(),Ia=pt(),SK=ny(),CK=jn(),Eg=tt(),LK=Er(),qK=Sg().initInteractions,DK=_o(),EK=cu().clearOutline,Qk=uo().dfltConfig,Kh=Ik(),Rt=Wk(),jr=Dh(),Fl=bi(),PK=Qt().AX_NAME_PATTERN,Pg=0,Xk=5;function RK(e,r,t,a){var n;if(e=tr.getGraphDiv(e),Rg.init(e),tr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Rg.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!tr.isPlotDiv(e)&&tr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Yr.addFrames(e,n)}jk(e,a),t||(t={}),$h.select(e).classed("js-plotly-plot",!0),Eg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Rt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Rt.cleanLayout(t)),xr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(aQ(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Eg.initGradients(e),Eg.initPatterns(e),s&&Ia.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&xr.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function eS(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),ed(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&ed(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function HK(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof q.parts[z]!="string";)z--;var F=q.parts[z],O=q.parts[z-1]+"."+F,I=q.parts.slice(0,z).join("."),V=ut(e.layout,I).get(),J=ut(a,I).get(),G=q.get();if(D!==void 0){_[k]=D,T[k]=F==="reverse"?D:el(G);var U=id.getLayoutValObject(a,q.parts);if(U&&U.impliedEdits&&D!==null)for(var H in U.impliedEdits)w(tr.relativeAttr(k,H),U.impliedEdits[H]);if(["width","height"].indexOf(k)!==-1)if(D){w("autosize",null);var Q=k==="height"?"width":"height";w(Q,a[Q])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(O.match(uS))C(O),ut(a,I+"._inputRange").set(null);else if(O.match(fS)){C(O),ut(a,I+"._inputRange").set(null);var Z=ut(a,I).get();Z._inputDomain&&(Z._input.domain=Z._inputDomain.slice())}else O.match(UK)&&ut(a,I+"._inputDomain").set(null);if(F==="type"){M=V;var ne=J.type==="linear"&&D==="log",ce=J.type==="log"&&D==="linear";if(ne||ce){if(!M||!M.range)w(I+".autorange",!0);else if(J.autorange)ne&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var ye=M.range[0],Se=M.range[1];ne?(ye<=0&&Se<=0&&w(I+".autorange",!0),ye<=0?ye=Se/1e6:Se<=0&&(Se=ye/1e6),w(I+".range[0]",Math.log(ye)/Math.LN10),w(I+".range[1]",Math.log(Se)/Math.LN10)):(w(I+".range[0]",Math.pow(10,ye)),w(I+".range[1]",Math.pow(10,Se)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],Nn.getComponentMethod("annotations","convertCoords")(e,J,D,w),Nn.getComponentMethod("images","convertCoords")(e,J,D,w)}else w(I+".autorange",!0),w(I+".range",null);ut(a,I+"._inputRange").set(null)}else if(F.match(PK)){var re=ut(a,k).get(),Ce=(D||{}).type;(!Ce||Ce==="-")&&(Ce="linear"),Nn.getComponentMethod("annotations","convertCoords")(e,re,Ce,w),Nn.getComponentMethod("images","convertCoords")(e,re,Ce,w)}var pe=Kh.containerArrayMatch(k);if(pe){f=pe.array,v=pe.index;var be=pe.property,Ae=U||{editType:"calc"};v!==""&&be===""&&(Kh.isAddVal(D)?T[k]=null:Kh.isRemoveVal(D)?T[k]=(ut(t,f).get()||[])[v]:tr.warn("unrecognized full object value",r)),Fl.update(g,Ae),u[f]||(u[f]={});var ge=u[f][v];ge||(ge=u[f][v]={}),ge[be]=D,delete r[k]}else F==="reverse"?(V.range?V.range.reverse():(w(I+".autorange",!0),V.range=[1,0]),J.autorange?g.calc=!0:g.plot=!0):(k==="dragmode"&&(D===!1&&G!==!1||D!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(G==="lasso"||G==="select")?g.plot=!0:U?Fl.update(g,U):g.calc=!0,q.set(D))}}for(f in u){var B=Kh.applyContainerArrayChanges(e,i(t,f),u[f],g,i);B||(g.plot=!0)}for(var $ in b){M=Ia.getFromId(e,$);var Y=M&&M._constraintGroup;if(Y){g.calc=!0;for(var le in Y)b[le]||(Ia.getFromId(e,le)._constraintShrinkable=!0)}}(vS(e)||r.height||r.width)&&(g.plot=!0);var he=a.shapes;for(v=0;v1;)if(a.pop(),t=ut(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function WK(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Yr.newPlot(e,r,t,a).then(()=>{for(let[I,V]of O)V.forEach(J=>e.on(I,J));return Yr.react(e,r,t,a)})}else{e.data=r||[],Rt.cleanData(e.data),e.layout=t||{},Rt.cleanLayout(e.layout),ZK(e.data,e.layout,o,s),xr.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,y=QK(e,s,h,d,m),g=y.newDataRevision,_=KK(e,o,v,d,m,g);if(vS(e)&&(y.layoutReplot=!0),_.calc||y.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(h),w=0;w(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function KK(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Fl.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var m=id.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var O=0;Oa._timeToNext&&m()};F()}var g=0;function _(F){return Array.isArray(n)?g>=n.length?F.transitionOpts=n[g]:F.transitionOpts=n[0]:F.transitionOpts=n,g++,F}var T,w,b=[],M=r==null,C=Array.isArray(r),k=!M&&!C&&tr.isPlainObject(r);if(k)b.push({type:"object",data:_(tr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&PP)&&z.push(w);b=z}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function jK(e,r,t){if(e=tr.getGraphDiv(e),r==null)return Promise.resolve();if(!tr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],v={};for(a=r.length-1;a>=0;a--)if(tr.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||v[h]||{}).name,m=r[a].name,y=s[d]||v[d];d&&m&&typeof m=="number"&&y&&Pgq.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&tr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=xr.modifyFrames,s=xr.modifyFrames,u=[e,l],f=[e,i];return Wa&&Wa.add(e,o,u,s,f),xr.modifyFrames(e,i)}function rQ(e){e=tr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return xr.cleanPlot([],{},t,r),xr.purge(e),Rg.purge(e),r._container&&r._container.remove(),delete e._context,e}function tQ(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!tr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=tr.inverseTransformMatrix(tr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function aQ(e){var r=$h.select(e),t=e._fullLayout;if(t._calcInverseTransform=tQ,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};$h.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=tr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(DK.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Yr.animate=$K;Yr.addFrames=jK;Yr.deleteFrames=eQ;Yr.addTraces=iS;Yr.deleteTraces=lS;Yr.extendTraces=aS;Yr.moveTraces=zg;Yr.prependTraces=nS;Yr.newPlot=IK;Yr._doPlot=RK;Yr.purge=rQ;Yr.react=JK;Yr.redraw=FK;Yr.relayout=uc;Yr.restyle=rd;Yr.setPlotConfig=zK;Yr.update=ad;Yr._guiRelayout=Ng(uc);Yr._guiRestyle=Ng(rd);Yr._guiUpdate=Ng(ad);Yr._storeDirectGUIEdit=YK});var Uo=K(Ni=>{"use strict";var nQ=br();Ni.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Ni.getRedrawFunc=function(e){return function(){nQ.getComponentMethod("colorbar","draw")(e)}};Ni.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Ni.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var hS=window.URL||window.webkitURL;Ni.createObjectURL=function(e){return hS.createObjectURL(e)};Ni.revokeObjectURL=function(e){return hS.revokeObjectURL(e)};Ni.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=iQ(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Ni.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function iQ(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Hg=Hr(),efe=Oe(),lQ=tt(),oQ=Er(),rfe=_o(),Ig=/"/g,cc="TOBESTRIPPED",sQ=new RegExp('("'+cc+")|("+cc+'")',"g");function uQ(e){var r=Hg.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function fQ(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}dS.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(lQ.setRect,0,0,o,s).call(oQ.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var cQ=Oe(),vQ=r0().EventEmitter,vc=Uo();function hQ(e){var r=e.emitter||new vQ,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),y=new i,g,_;o==="svg"||cQ.isSafari()?_=vc.encodeSVG(l):(g=vc.createBlob(l,"svg"),_=vc.createObjectURL(g)),s.width=h,s.height=d,y.onload=function(){var T;switch(g=null,vc.revokeObjectURL(_),o!=="svg"&&m.drawImage(y,0,0,h,d),o){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=_;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(T),e.promise||r.emit("success",T)},y.onerror=function(T){if(g=null,vc.revokeObjectURL(_),n(T),!e.promise)return r.emit("error",T)},y.src=_});return e.promise?t:r}pS.exports=hQ});var Bg=K((nfe,gS)=>{"use strict";var mS=Or(),yS=Fg(),dQ=Ft(),Fi=Oe(),hc=Uo(),pQ=od(),mQ=sd(),yQ=gv().version,Og={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function gQ(e,r){r=r||{};var t,a,n,i;Fi.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Fi.getGraphDiv(e),t=Fi.extendDeep([],e.data),a=Fi.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(C){return!(C in r)||Fi.validate(r[C],Og[C])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Fi.join2(Og.format.values,", "," or ")+".");var o={};function s(C,k){return Fi.coerce(r,o,Og,C,k)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var g=Fi.extendFlat({},a);f?g.width=f:r.width===null&&mS(i.width)&&(g.width=i.width),v?g.height=v:r.height===null&&mS(i.height)&&(g.height=i.height);var _=Fi.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=hc.getRedrawFunc(y);function w(){return new Promise(function(C){setTimeout(C,hc.getDelay(y._fullLayout))})}function b(){return new Promise(function(C,k){var q=pQ(y,u,h),D=y._fullLayout.width,P=y._fullLayout.height;function z(){yS.purge(y),document.body.removeChild(y)}if(u==="full-json"){var F=dQ.graphJson(y,!1,"keepdata","object",!0,!0);return F.version=yQ,F=JSON.stringify(F),z(),C(m?F:hc.encodeJSON(F))}if(z(),u==="svg")return C(m?q:hc.encodeSVG(q));var O=document.createElement("canvas");O.id=Fi.randstr(),mQ({format:u,width:D,height:P,scale:h,canvas:O,svg:q,promise:!0}).then(C).catch(k)})}function M(C){return m?C.replace(hc.IMAGE_URL_PREFIX,""):C}return new Promise(function(C,k){yS.newPlot(y,t,g,_).then(T).then(w).then(b).then(function(q){C(M(q))}).catch(function(q){k(q)})})}gS.exports=gQ});var _S=K((ife,xS)=>{"use strict";var Fn=Oe(),bQ=Ft(),xQ=Is(),_Q=uo().dfltConfig,oi=Fn.isPlainObject,Go=Array.isArray,Yg=Fn.isArrayOrTypedArray;xS.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=xQ.get(),n=[],i={_context:Fn.extendFlat({},_Q)},l,o;Go(r)?(i.data=Fn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(ta("array","data"))),oi(t)?(i.layout=Fn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(ta("object","layout"))),bQ.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(ta("unused",n,u.concat(v.length)));var _=v.length,T=Array.isArray(g);T&&(_=Math.min(_,g.length));var w,b,M,C,k;if(h.dimensions===2)for(b=0;b<_;b++)if(Go(f[b])){f[b].length>v[b].length&&a.push(ta("unused",n,u.concat(b,v[b].length)));var q=v[b].length;for(w=0;w<(T?Math.min(q,g[b].length):q);w++)M=T?g[b][w]:g,C=f[b][w],k=v[b][w],Fn.validate(C,M)?k!==C&&k!==+C&&a.push(ta("dynamic",n,u.concat(b,w),C,k)):a.push(ta("value",n,u.concat(b,w),C))}else a.push(ta("array",n,u.concat(b),f[b]));else for(b=0;b<_;b++)M=T?g[b]:g,C=f[b],k=v[b],Fn.validate(C,M)?k!==C&&k!==+C&&a.push(ta("dynamic",n,u.concat(b),C,k)):a.push(ta("value",n,u.concat(b),C))}else if(h.items&&!m&&Go(f)){var D=g[Object.keys(g)[0]],P=[],z,F;for(z=0;z{"use strict";var CQ=Oe(),fd=Uo();function LQ(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=fd.createBlob(e,t),u=fd.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),fd.revokeObjectURL(u),s=null,l(r);if(CQ.isSafari()){var f=t==="svg"?",":";base64,";return fd.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}wS.exports=LQ});var Ug=K((sfe,AS)=>{"use strict";var MS=Oe(),qQ=Bg(),DQ=TS(),ofe=Uo();function EQ(e,r){var t;return MS.isPlainObject(e)||(t=MS.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=qQ(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),DQ(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}AS.exports=EQ});var qS=K(Vg=>{"use strict";var nn=Oe(),ln=nn.isPlainObject,kS=Is(),SS=Ft(),PQ=Zn(),CS=ct(),LS=uo().dfltConfig;Vg.makeTemplate=function(e){e=nn.isPlainObject(e)?e:nn.getGraphDiv(e),e=nn.extendDeep({_context:LS},{data:e.data,layout:e.layout}),SS.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};dc(d,m,zQ.bind(null,d));var y=nn.coerce(d,{},PQ,"type"),g=a.data[y];g||(g=a.data[y]=[]),g.push(m)}),dc(t,a.layout,RQ.bind(null,t)),delete a.layout.template;var n=t.template;if(ln(n)){var i=n.layout,l,o,s,u,f,v;ln(i)&&cd(i,a.layout);var h=n.data;if(ln(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],v=f.length,u=s.length,l=0;l_?l.push({code:"unused",traceType:d,templateCount:g,dataCount:_}):_>g&&l.push({code:"reused",traceType:d,templateCount:g,dataCount:_})}}function T(w,b){for(var M in w)if(M.charAt(0)!=="_"){var C=w[M],k=In(w,M,b);ln(C)?(Array.isArray(w)&&C._template===!1&&C.templateitemname&&l.push({code:"missing",path:k,templateitemname:C.templateitemname}),T(C,k)):Array.isArray(C)&&NQ(C)&&T(C,k)}}if(T({data:s,layout:o},""),l.length)return l.map(FQ)};function NQ(e){for(var r=0;r{"use strict";var Zt=Fg();yt._doPlot=Zt._doPlot;yt.newPlot=Zt.newPlot;yt.restyle=Zt.restyle;yt.relayout=Zt.relayout;yt.redraw=Zt.redraw;yt.update=Zt.update;yt._guiRestyle=Zt._guiRestyle;yt._guiRelayout=Zt._guiRelayout;yt._guiUpdate=Zt._guiUpdate;yt._storeDirectGUIEdit=Zt._storeDirectGUIEdit;yt.react=Zt.react;yt.extendTraces=Zt.extendTraces;yt.prependTraces=Zt.prependTraces;yt.addTraces=Zt.addTraces;yt.deleteTraces=Zt.deleteTraces;yt.moveTraces=Zt.moveTraces;yt.purge=Zt.purge;yt.addFrames=Zt.addFrames;yt.deleteFrames=Zt.deleteFrames;yt.animate=Zt.animate;yt.setPlotConfig=Zt.setPlotConfig;var IQ=rf().getGraphDiv,HQ=Mh().eraseActiveShape;yt.deleteActiveShape=function(e){return HQ(IQ(e))};yt.toImage=Bg();yt.validate=_S();yt.downloadImage=Ug();var DS=qS();yt.makeTemplate=DS.makeTemplate;yt.validateTemplate=DS.validateTemplate});var Wg=K((cfe,PS)=>{"use strict";var Gg=Oe(),OQ=br();PS.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=OQ.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Gg.minRowLength(i);l?o=Math.min(u,Gg.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Gg.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Xg=K((vfe,NS)=>{"use strict";var RS=Oe().dateTick0,BQ=Vt(),YQ=BQ.ONEWEEK;function zS(e,r){return e%YQ===0?RS(r,1):RS(r,0)}NS.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",zS(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",zS(o,t.ycalendar)),n("yperiodalignment"))}}});var HS=K((hfe,IS)=>{"use strict";var FS=["orientation","groupnorm","stackgaps"];IS.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var OS=Er(),BS=kn().hasColorscale,YS=Ys(),UQ=un();US.exports=function(r,t,a,n,i,l={}){var o=UQ.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),BS(r,"marker")&&YS(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=OS.background:u=OS.defaultLine,i("marker.line.color",u),BS(r,"marker.line")&&YS(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var WS=K((pfe,GS)=>{"use strict";var VQ=Oe().isArrayOrTypedArray,GQ=kn().hasColorscale,WQ=Ys();GS.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),GQ(r,"line"))WQ(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(VQ(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var ZS=K((mfe,XS)=>{"use strict";XS.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var KS=K((yfe,JS)=>{"use strict";var XQ=Oe();JS.exports=function(e,r,t,a,n){n=n||{},a("textposition"),XQ.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var jS=K((gfe,$S)=>{"use strict";var hd=Er(),QS=Oe().isArrayOrTypedArray;function ZQ(e){for(var r=hd.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var eC=Oe(),JQ=br(),KQ=Yo(),QQ=Bh(),hu=un(),$Q=Wg(),jQ=Xg(),e$=HS(),r$=VS(),t$=WS(),rC=ZS(),a$=KS(),n$=jS(),i$=Oe().coercePattern;tC.exports=function(r,t,a,n){function i(d,m){return eC.coerce(r,t,KQ,d,m)}var l=$Q(r,t,n,i);if(l||(t.visible=!1),!!t.visible){jQ(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=e$(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var l$=Hf().getAxisGroup;nC.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=l$(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,y=m[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=y.offsetIndex)}});var lC=K((_fe,iC)=>{"use strict";var o$=Oe(),s$=Zg(),u$=Yo();iC.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return o$.coerce(n._input,n,u$,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var sC=K((wfe,oC)=>{"use strict";var f$=Oe(),c$=l0();oC.exports=function(e,r){function t(n,i){return f$.coerce(e,r,c$,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Jg=K((Tfe,fC)=>{"use strict";var v$=Or(),uC=Oe(),h$=uC.dateTime2ms,dd=uC.incrementMonth,d$=Vt(),p$=d$.ONEAVGMONTH;fC.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(v$(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[a+"period0"],d=h$(h,u)||0,m=[],y=[],g=[],_=n.length,T=0;T<_;T++){var w=n[T],b,M,C;if(o){for(b=Math.round((w-d)/(o*p$)),C=dd(d,o*b,u);C>w;)C=dd(C,-o,u);for(;C<=w;)C=dd(C,o,u);M=dd(C,-o,u)}else{for(b=Math.round((w-d)/l),C=d+b*l;C>w;)C-=l;for(;C<=w;)C+=l;M=C-l}m[T]=f?M:v?C:(M+C)/2,y[T]=M,g[T]=C}return{vals:m,starts:y,ends:g}}});var hC=K((Mfe,vC)=>{"use strict";var Kg=kn().hasColorscale,Qg=g0(),cC=un();vC.exports=function(r,t){cC.hasLines(t)&&Kg(t,"line")&&Qg(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),cC.hasMarkers(t)&&(Kg(t,"marker")&&Qg(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Kg(t,"marker.line")&&Qg(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var $g=K((Afe,dC)=>{"use strict";var Mt=Oe();dC.exports=function(r,t){for(var a=0;a{"use strict";var pC=Oe();mC.exports=function(r,t){pC.isArrayOrTypedArray(t.selectedpoints)&&pC.tagSelected(r,t)}});var n2=K((Sfe,TC)=>{"use strict";var yC=Or(),r2=Oe(),pc=pt(),gC=Jg(),e2=Vt().BADNUM,t2=un(),m$=hC(),y$=$g(),g$=jg();function b$(e,r){var t=e._fullLayout,a=r._xA=pc.getFromId(e,r.xaxis||"x","x"),n=r._yA=pc.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=gC(r,a,"x",i),s=gC(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=a2(r,t,a,n),y=!1,g,_,T,w,b,M;_C(t,r);var C="x",k="y",q;if(m)r2.pushUnique(m.traceIndices,r.index),g=m.orientation==="v",g?(k="s",q="x"):(C="s",q="y"),b=m.stackgaps==="interpolate";else{var D=xC(r,v);bC(e,r,a,n,u,f,D)}var P=!!r.xperiodalignment,z=!!r.yperiodalignment;for(_=0;__&&h[w].gap;)w--;for(M=h[w].s,T=h.length-1;T>w;T--)h[T].s=M;for(;_{"use strict";MC.exports=pd;var x$=Oe().distinctVals;function pd(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";kC.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var f2=K((qfe,qC)=>{"use strict";var Hn=Or(),{isArrayOrTypedArray:rl}=Oe(),{BADNUM:du}=Vt(),_$=br(),yc=pt(),{getAxisGroup:w$}=Hf(),md=AC(),{TEXTPAD:T$}=mc(),{LINE_SPACING:M$}=Ma(),{BR_TAG_ALL:A$}=ga();function k$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!Hn(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*M$*t+T$;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function N$(e,r,t,a){for(var n=pu(a),i=0;i{"use strict";var DC=n2(),EC=f2().setGroupPositions;function I$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var O$=tt(),IC=Vt(),gc=IC.BADNUM,HC=IC.LOG_CLIP,zC=HC+.5,NC=HC-.5,yd=Oe(),B$=yd.segmentsIntersect,FC=yd.constrain,v2=Bh();OC.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,v=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,y=m==="linear",g=a.fill&&a.fill!=="none",_=[],T=v2.minTolerance,w=r.length,b=new Array(w),M=0,C,k,q,D,P,z,F,O,I,V,J,G,U,H,Q,Z;function ne(Ne){var ae=r[Ne];if(!ae)return!1;var oe=t.linearized?n.l2p(ae.x):n.c2p(ae.x),qe=t.linearized?i.l2p(ae.y):i.c2p(ae.y);if(oe===gc){if(l&&(oe=n.c2p(ae.x,!0)),oe===gc)return!1;o&&qe===gc&&(oe*=Math.abs(n._m*u*(n._m>0?zC:NC)/(i._m*s*(i._m>0?zC:NC)))),oe*=1e3}if(qe===gc){if(o&&(qe=i.c2p(ae.y,!0)),qe===gc)return!1;qe*=1e3}return[oe,qe]}function ce(Ne,ae,oe,qe){var Pe=oe-Ne,$e=qe-ae,cr=.5-Ne,sr=.5-ae,Mr=Pe*Pe+$e*$e,Ir=Pe*cr+$e*sr;if(Ir>0&&Ir1||Math.abs(cr.y-oe[0][1])>1)&&(cr=[cr.x,cr.y],qe&&Ce(cr,Ne)Ae||Ne[1]B)return[FC(Ne[0],be,Ae),FC(Ne[1],ge,B)]}function Fe(Ne,ae){if(Ne[0]===ae[0]&&(Ne[0]===be||Ne[0]===Ae)||Ne[1]===ae[1]&&(Ne[1]===ge||Ne[1]===B))return!0}function Xe(Ne,ae){var oe=[],qe=Ve(Ne),Pe=Ve(ae);return qe&&Pe&&Fe(qe,Pe)||(qe&&oe.push(qe),Pe&&oe.push(Pe)),oe}function De(Ne,ae,oe){return function(qe,Pe){var $e=Ve(qe),cr=Ve(Pe),sr=[];if($e&&cr&&Fe($e,cr))return sr;$e&&sr.push($e),cr&&sr.push(cr);var Mr=2*yd.constrain((qe[Ne]+Pe[Ne])/2,ae,oe)-(($e||qe)[Ne]+(cr||Pe)[Ne]);if(Mr){var Ir;$e&&cr?Ir=Mr>0==$e[Ne]>cr[Ne]?$e:cr:Ir=$e||cr,Ir[Ne]+=Mr}return sr}}var Ie;m==="linear"||m==="spline"?Ie=Le:m==="hv"||m==="vh"?Ie=Xe:m==="hvh"?Ie=De(0,be,Ae):m==="vhv"&&(Ie=De(1,ge,B));function We(Ne,ae){var oe=ae[0]-Ne[0],qe=(ae[1]-Ne[1])/oe,Pe=(Ne[1]*ae[0]-ae[1]*Ne[0])/oe;return Pe>0?[qe>0?be:Ae,B]:[qe>0?Ae:be,ge]}function ie(Ne){var ae=Ne[0],oe=Ne[1],qe=ae===b[M-1][0],Pe=oe===b[M-1][1];if(!(qe&&Pe))if(M>1){var $e=ae===b[M-2][0],cr=oe===b[M-2][1];qe&&(ae===be||ae===Ae)&&$e?cr?M--:b[M-1]=Ne:Pe&&(oe===ge||oe===B)&&cr?$e?M--:b[M-1]=Ne:b[M++]=Ne}else b[M++]=Ne}function xe(Ne){b[M-1][0]!==Ne[0]&&b[M-1][1]!==Ne[1]&&ie([he,me]),ie(Ne),Re=null,he=me=0}var Ke=yd.isArrayOrTypedArray(v);function hr(Ne){if(Ne&&f&&(Ne.i=C,Ne.d=r,Ne.trace=a,Ne.marker=Ke?v[Ne.i]:v,Ne.backoff=f),ye=Ne[0]/s,Se=Ne[1]/u,Y=Ne[0]Ae?Ae:0,le=Ne[1]B?B:0,Y||le){if(!M)b[M++]=[Y||Ne[0],le||Ne[1]];else if(Re){var ae=Ie(Re,Ne);ae.length>1&&(xe(ae[0]),b[M++]=ae[1])}else Ee=Ie(b[M-1],Ne)[0],b[M++]=Ee;var oe=b[M-1];Y&&le&&(oe[0]!==Y||oe[1]!==le)?(Re&&(he!==Y&&me!==le?ie(he&&me?We(Re,Ne):[he||Y,me||le]):he&&me&&ie([he,me])),ie([Y,le])):he-Y&&me-le&&ie([Y||he,le||me]),Re=Ne,he=Y,me=le}else Re&&xe(Ie(Re,Ne)[0]),b[M++]=Ne}for(C=0;Cre(z,ze))break;q=z,U=I[0]*O[0]+I[1]*O[1],U>J?(J=U,D=z,F=!1):U=r.length||!z)break;hr(z),k=z}}Re&&ie([he||Re[0],me||Re[1]]),_.push(b.slice(0,M))}var Me=m.slice(m.length-1);if(f&&Me!=="h"&&Me!=="v"){for(var ke=!1,He=-1,Ze=[],Ue=0;Ue<_.length;Ue++)for(var Ge=0;Ge<_[Ue].length-1;Ge++){var ir=_[Ue][Ge],ar=_[Ue][Ge+1],er=O$.applyBackoff(ar,ir);(er[0]!==ar[0]||er[1]!==ar[1])&&(ke=!0),Ze[He+1]||(He++,Ze[He]=[ir,[er[0],er[1]]])}return ke?Ze:_}return _}});var VC=K((Pfe,UC)=>{"use strict";var YC={tonextx:1,tonexty:1,tonext:1};UC.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var si=Hr(),Y$=br(),bc=Oe(),mu=bc.ensureSingle,WC=bc.identity,kt=tt(),yu=un(),U$=BC(),V$=VC(),gd=og().tester;XC.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=V$(r,t,a);if(o=n.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),G$(r,o,t),f){l&&(s=l());var h=si.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,m){GC(r,m,t,d,v,this,i)})})}else o.each(function(d,m){GC(r,m,t,d,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function G$(e,r,t){r.each(function(a){var n=mu(si.select(this),"g","fills");kt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,WC);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=mu(si.select(this),"path","js-fill")})})}function GC(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;W$(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var v=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,y=si.select(i),g=mu(y,"g","errorbars"),_=mu(y,"g","lines"),T=mu(y,"g","points"),w=mu(y,"g","text");if(Y$.getComponentMethod("errorbars","plot")(e,g,t,l),d.visible!==!0)return;f(y).style("opacity",d.opacity);var b,M,C=d.fill.charAt(d.fill.length-1);C!=="x"&&C!=="y"&&(C="");var k,q;C==="y"?(k=1,q=h.c2p(0,!0)):C==="x"&&(k=0,q=v.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var D="",P=[],z=d._prevtrace,F=null,O=null;z&&(D=z._prevRevpath||"",M=z._nextFill,P=z._ownPolygons,F=z._fillsegments,O=z._fillElement);var I,V,J="",G="",U,H,Q,Z,ne,ce,ye=[];d._polygons=[];var Se=[],re=[],Ce=bc.noop;if(b=d._ownFill,yu.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(U=kt.steps(m.shape),H=kt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?U=H=function(De){var Ie=De[De.length-1];return De.length>1&&De[0][0]===Ie[0]&&De[0][1]===Ie[1]?kt.smoothclosed(De.slice(1),m.smoothing):kt.smoothopen(De,m.smoothing)}:U=H=function(De){return"M"+De.join("L")},Q=function(De){return H(De.reverse())},re=U$(a,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Se=new Array(re.length);var pe=0;for(s=0;s=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),h=Math.ceil(v.length/f),d=0;n.forEach(function(y,g){var _=y[0].trace;yu.hasMarkers(_)&&_.marker.maxdisplayed>0&&g{"use strict";JC.exports={container:"marker",min:"cmin",max:"cmax"}});var QC=K((Nfe,KC)=>{"use strict";var bd=pt();KC.exports=function(r,t,a){var n={},i={_fullLayout:a},l=bd.getFromTrace(i,t,"x"),o=bd.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=bd.tickText(l,l.c2l(s),!0).text,n.yLabel=bd.tickText(o,o.c2l(u),!0).text,n}});var y2=K((Ffe,$C)=>{"use strict";var d2=Hr(),gu=tt(),X$=br();function Z$(e){var r=d2.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=d2.select(this),n=t.trace||t[0].trace;p2(a,n,e)}),r.selectAll("g.text").each(function(t){var a=d2.select(this),n=t.trace||t[0].trace;m2(a,n,e)}),r.selectAll("g.trace path.js-line").call(gu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(gu.fillGroupStyle,e,!1),X$.getComponentMethod("errorbars","style")(r)}function p2(e,r,t){gu.pointStyle(e.selectAll("path.point"),r,t)}function m2(e,r,t){gu.textPointStyle(e.selectAll("text"),r,t)}function J$(e,r,t){var a=r[0].trace;a.selectedpoints?(gu.selectedPointStyle(t.selectAll("path.point"),a),gu.selectedTextStyle(t.selectAll("text"),a)):(p2(t,a,e),m2(t,a,e))}$C.exports={style:Z$,stylePoints:p2,styleText:m2,styleOnSelect:J$}});var eL=K((Ife,jC)=>{"use strict";var bu=Er(),K$=un();jC.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&bu.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&bu.opacity(i)?i:l&&bu.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?bu.opacity(n)<.3?bu.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&bu.opacity(a)&&K$.hasLines(r)&&r.line.width?a:r.fillcolor)}});var aL=K((Hfe,tL)=>{"use strict";var xd=Oe(),rL=ni(),Q$=br(),$$=eL(),g2=Er(),j$=xd.fillText;tL.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),v=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,m=!!l.xperiodalignment,y=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var g=function(G){if(m){var U=o.c2p(G.xStart),H=o.c2p(G.xEnd);return u>=Math.min(U,H)&&u<=Math.max(U,H)?0:1/0}var Q=Math.max(3,G.mrc||0),Z=1-1/Q,ne=Math.abs(o.c2p(G.x)-u);return ne=Math.min(U,H)&&f<=Math.max(U,H)?0:1/0}var Q=Math.max(3,G.mrc||0),Z=1-1/Q,ne=Math.abs(s.c2p(G.y)-f);return neye!=B>=ye&&(be=Ce[re-1][0],Ae=Ce[re][0],B-ge&&(pe=be+(Ae-be)*(ye-ge)/(B-ge),Q=Math.min(Q,pe),Z=Math.max(Z,pe)));return Q=Math.max(Q,0),Z=Math.min(Z,o._length),{x0:Q,x1:Z,y0:ye,y1:ye}}if(h.indexOf("fills")!==-1&&l._fillElement){var I=F(l._fillElement)&&!F(l._fillExclusionElement);if(I){var V=O(l._polygons);V===null&&(V={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var J=g2.defaultLine;return g2.opacity(l.fillcolor)?J=l.fillcolor:g2.opacity((l.line||{}).color)&&(J=l.line.color),xd.extendFlat(r,{distance:r.maxHoverDistance,x0:V.x0,x1:V.x1,y0:V.y0,y1:V.y1,color:J,hovertemplate:!1}),delete r.index,l.text&&!xd.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var lL=K((Ofe,iL)=>{"use strict";var nL=un();iL.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,h=!nL.hasMarkers(o)&&!nL.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";oL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var vL=K((Yfe,cL)=>{"use strict";var xc=br().traceIs,b2=Fm();cL.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(ej(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function ej(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=rj(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!xc(i,"cartesian")||xc(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,fL(i,a)){var u=uL(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(fL(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function uL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function fL(e,r){var t=uL(e),a=xc(e,"box-violin"),n=xc(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var dL=K((Ufe,hL)=>{"use strict";var tj=Ka().isTypedArraySpec;function aj(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||tj(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=aj(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var yL=K((Vfe,mL)=>{"use strict";var pL=wn().mix,nj=gi(),ij=Oe();mL.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(q,D){return ij.coerce2(r,t,n.attributes,q,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=pL(i,n.bgColor,n.blend||nj.lightFraction).toRgbString(),v=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),m=a("showgrid",n.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=pL(t.gridcolor,n.bgColor,67).toRgbString(),g=l("minor.gridcolor",y),_=l("minor.gridwidth",t.gridwidth||1),T=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!g||!!_||!!T);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),M=l("zerolinecolor",i),C=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!M||!!C);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var _2=K((Gfe,TL)=>{"use strict";var gL=Or(),lj=br(),_c=Oe(),oj=ct(),sj=ei(),x2=jn(),bL=lm(),xL=sm(),uj=cm(),fj=vm(),cj=dL(),vj=yL(),hj=ny(),_L=P0(),_d=Qt().WEEKDAY_PATTERN,dj=Qt().HOUR_PATTERN;TL.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=lj.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(v==="date"||v==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||v==="multicategory")&&(m=_c.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),_L(t,i),hj(r,t,a,n),cj(r,t,a,n),n.noHover||(v!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),g=y!==x2.color.dflt?y:o.color,_=s.label||i._dfltTitle[l];if(fj(r,t,a,v,n),!u)return t;a("title.text",_),_c.coerceFont(a,"title.font",o,{overrideDflt:{size:_c.bigFont(o.size),color:g}}),bL(r,t,a,v);var T=n.hasMinor;if(T&&(oj.newContainer(t,"minor"),bL(r,t,a,v,{isMinor:!0})),uj(r,t,a,v,n),xL(r,t,a,n),T){var w=n.isMinor;n.isMinor=!0,xL(r,t,a,n),n.isMinor=w}vj(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:x2}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=v==="multicategory";if(!n.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(v==="date")if(sj(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:pj}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var C=0;C=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=wL(i[o]),s){l=_d;break}}var u=a("pattern",l);if(u===_d)for(o=0;o<2;o++)s=wL(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case _d:if(!gL(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case dj:if(!gL(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var yj=Or(),wd=Oe();ML.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,v,h,d,m,y;s&&(v=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(yj(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,m=0,y=!1;var g=wd.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=wd.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(g==="free"){if(o==="y"){var T=a("autoshift");T&&(d=_==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,m=_==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",y);var w=!1;if(l.length&&(w=wd.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),wd.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var PL=K((Xfe,EL)=>{"use strict";var Wo=Oe(),AL=Er(),gj=Ti().isUnifiedHover,bj=Dy(),kL=ct(),xj=Ss(),SL=jn(),_j=vL(),CL=_2(),wj=Hf(),LL=w2(),M2=Xt(),Ii=M2.id2name,qL=M2.name2id,Tj=Qt().AX_ID_PATTERN,DL=br(),Td=DL.traceIs,T2=DL.getComponentMethod;function Md(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}EL.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},v={},h={},d={},m={},y,g;for(y=0;y{"use strict";var Mj=Hr(),RL=br(),Ad=Oe(),pn=tt(),kd=pt();zL.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){kd.redrawComponents(r);return}function l(g){var _=g.xaxis,T=g.yaxis;i._defs.select("#"+g.clipId+"> rect").call(pn.setTranslate,0,0).call(pn.setScale,1,1),g.plot.call(pn.setTranslate,_._offset,T._offset).call(pn.setScale,1,1);var w=g.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(pn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(pn.setTextPointsScale,1,1),w.call(pn.hideOutsideRangePoints,g)}function o(g,_){var T=g.plotinfo,w=T.xaxis,b=T.yaxis,M=w._length,C=b._length,k=!!g.xr1,q=!!g.yr1,D=[];if(k){var P=Ad.simpleMap(g.xr0,w.r2l),z=Ad.simpleMap(g.xr1,w.r2l),F=P[1]-P[0],O=z[1]-z[0];D[0]=(P[0]*(1-_)+_*z[0]-P[0])/(P[1]-P[0])*M,D[2]=M*(1-_+_*O/F),w.range[0]=w.l2r(P[0]*(1-_)+_*z[0]),w.range[1]=w.l2r(P[1]*(1-_)+_*z[1])}else D[0]=0,D[2]=M;if(q){var I=Ad.simpleMap(g.yr0,b.r2l),V=Ad.simpleMap(g.yr1,b.r2l),J=I[1]-I[0],G=V[1]-V[0];D[1]=(I[1]*(1-_)+_*V[1]-I[1])/(I[0]-I[1])*C,D[3]=C*(1-_+_*G/J),b.range[0]=w.l2r(I[0]*(1-_)+_*V[0]),b.range[1]=b.l2r(I[1]*(1-_)+_*V[1])}else D[1]=0,D[3]=C;kd.drawOne(r,w,{skipTitle:!0}),kd.drawOne(r,b,{skipTitle:!0}),kd.redrawComponents(r,[w._id,b._id]);var U=k?M/D[2]:1,H=q?C/D[3]:1,Q=k?D[0]:0,Z=q?D[1]:0,ne=k?D[0]/D[2]*M:0,ce=q?D[1]/D[3]*C:0,ye=w._offset-ne,Se=b._offset-ce;T.clipRect.call(pn.setTranslate,Q,Z).call(pn.setScale,1/U,1/H),T.plot.call(pn.setTranslate,ye,Se).call(pn.setScale,U,H),pn.setPointGroupScale(T.zoomScalePts,1/U,1/H),pn.setTextPointsScale(T.zoomScaleTxt,1/U,1/H)}var s;n&&(s=n());function u(){for(var g={},_=0;_a.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return v=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var Ld=K(Sa=>{"use strict";var Cd=Hr(),FL=br(),Xo=Oe(),Aj=Ft(),kj=tt(),IL=Vp().getModuleCalcData,Il=Xt(),ui=Qt(),Sj=_o(),Xr=Xo.ensureSingle;function Sd(e,r,t){return Xo.ensureSingle(e,r,t,function(a){a.datum(t)})}var Zo=ui.zindexSeparator;Sa.name="cartesian";Sa.attr=["xaxis","yaxis"];Sa.idRoot=["x","y"];Sa.idRegex=ui.idRegex;Sa.attrRegex=ui.attrRegex;Sa.attributes=sL();Sa.layoutAttributes=jn();Sa.supplyLayoutDefaults=PL();Sa.transitionAxes=NL();Sa.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(Zo)!==-1)continue;d+=Zo+(u+1),h=Xo.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],y,g=0;g1&&(M+=Zo+b),w.push(o+M),l=0;l1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.xaxislayer=Xr(a,"g","xaxislayer-above"),r.yaxislayer=Xr(a,"g","yaxislayer-above");else{if(!l){var h=Xr(a,"g","layer-subplot");r.shapelayer=Xr(h,"g","shapelayer"),r.imagelayer=Xr(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Xr(a,"g","minor-gridlayer"),r.gridlayer=Xr(a,"g","gridlayer"),r.zerolinelayer=Xr(a,"g","zerolinelayer"));var d=Xr(a,"g","layer-between");r.shapelayerBetween=Xr(d,"g","shapelayer"),r.imagelayerBetween=Xr(d,"g","imagelayer"),Xr(a,"path","xlines-below"),Xr(a,"path","ylines-below"),r.overlinesBelow=Xr(a,"g","overlines-below"),Xr(a,"g","xaxislayer-below"),Xr(a,"g","yaxislayer-below"),r.overaxesBelow=Xr(a,"g","overaxes-below")}r.overplot=Xr(a,"g","overplot"),r.plot=Xr(r.overplot,"g",n),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Xr(a,"g","zerolinelayer-above"),l||(r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.overlinesAbove=Xr(a,"g","overlines-above"),Xr(a,"g","xaxislayer-above"),Xr(a,"g","yaxislayer-above"),r.overaxesAbove=Xr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=v.plotgroup,y=n+"-x",g=n+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Xr(v.overlinesBelow,"path",y),Xr(v.overlinesBelow,"path",g),Xr(v.overaxesBelow,"g",y),Xr(v.overaxesBelow,"g",g),r.plot=Xr(v.overplot,"g",n),Xr(v.overlinesAbove,"path",y),Xr(v.overlinesAbove,"path",g),Xr(v.overaxesAbove,"g",y),Xr(v.overaxesAbove,"g",g),r.xlines=m.select(".overlines-"+o).select("."+y),r.ylines=m.select(".overlines-"+s).select("."+g),r.xaxislayer=m.select(".overaxes-"+o).select("."+y),r.yaxislayer=m.select(".overaxes-"+s).select("."+g)}l||(u||(Sd(r.minorGridlayer,"g",r.xaxis._id),Sd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(Il.idSort),Sd(r.gridlayer,"g",r.xaxis._id),Sd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(Il.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function BL(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Cd.select(this);f.remove(),YL(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var qd=un();UL.exports={hasLines:qd.hasLines,hasMarkers:qd.hasMarkers,hasText:qd.hasText,isBubble:qd.isBubble,attributes:Yo(),layoutAttributes:l0(),supplyDefaults:aC(),crossTraceDefaults:lC(),supplyLayoutDefaults:sC(),calc:n2().calc,crossTraceCalc:RC(),arraysToCalcdata:$g(),plot:ZC(),colorbar:h2(),formatLabels:QC(),style:y2().style,styleOnSelect:y2().styleOnSelect,hoverPoints:aL(),selectPoints:lL(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ld(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var XL=K((Qfe,WL)=>{"use strict";var Lj=Hr(),qj=Er(),GL=bg(),A2=Oe(),Dj=A2.strScale,Ej=A2.strRotate,Pj=A2.strTranslate;WL.exports=function(r,t,a){var n=r.node(),i=GL[a.arrowhead||0],l=GL[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,m,y,g;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,T=d.y-m.y;if(y=Math.atan2(T,_),g=y+Math.PI,v&&h&&v+h>Math.sqrt(_*_+T*T)){I();return}if(v){if(v*v>_*_+T*T){I();return}var w=v*Math.cos(y),b=v*Math.sin(y);m.x+=w,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+T*T){I();return}var M=h*Math.cos(y),C=h*Math.sin(y);d.x-=M,d.y-=C,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),q="";if(k{"use strict";var ZL=Hr(),k2=br(),Rj=Ft(),Ol=Oe(),S2=Ol.strTranslate,Tc=pt(),Jo=Er(),tl=tt(),JL=ni(),C2=ga(),L2=Ll(),wc=ti(),zj=ct().arrayEditor,Nj=XL();$L.exports={draw:Fj,drawOne:KL,drawRaw:QL};function Fj(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Pe="right":Pe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Pe]}for(var ge=!1,B=["x","y"],$=0;$1)&&(he===le?(ze=me.r2fraction(r["a"+Y]),(ze<0||ze>1)&&(ge=!0)):ge=!0),Ie=me._offset+me.r2p(r[Y]),xe=.5}else{var Me=hr==="domain";Y==="x"?(ie=r[Y],Ie=Me?me._offset+me._length*ie:Ie=o.l+o.w*ie):(ie=1-r[Y],Ie=Me?me._offset+me._length*ie:Ie=o.t+o.h*ie),xe=r.showarrow?.5:ie}if(r.showarrow){De.head=Ie;var ke=r["a"+Y];if(Ke=Ee*Ae(.5,r.xanchor)-Le*Ae(.5,r.yanchor),he===le){var He=Tc.getRefType(he);He==="domain"?(Y==="y"&&(ke=1-ke),De.tail=me._offset+me._length*ke):He==="paper"?Y==="y"?(ke=1-ke,De.tail=o.t+o.h*ke):De.tail=o.l+o.w*ke:De.tail=me._offset+me.r2p(ke),We=Ke}else De.tail=Ie+ke,We=Ke+ke;De.text=De.tail+Ke;var Ze=l[Y==="x"?"width":"height"];if(le==="paper"&&(De.head=Ol.constrain(De.head,1,Ze-1)),he==="pixel"){var Ue=-Math.max(De.tail-3,De.text),Ge=Math.min(De.tail+3,De.text)-Ze;Ue>0?(De.tail+=Ue,De.text+=Ue):Ge>0&&(De.tail-=Ge,De.text-=Ge)}De.tail+=Xe,De.head+=Xe}else Ke=Ve*Ae(xe,Fe),We=Ke,De.text=Ie+Ke;De.text+=Xe,Ke+=Xe,We+=Xe,r["_"+Y+"padplus"]=Ve/2+We,r["_"+Y+"padminus"]=Ve/2-We,r["_"+Y+"size"]=Ve,r["_"+Y+"shift"]=Ke}if(ge){k.remove();return}var ir=0,ar=0;if(r.align!=="left"&&(ir=(re-ye)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ar=(Ce-Se)*(r.valign==="middle"?.5:1)),ne)Z.select("svg").attr({x:P+ir-1,y:P+ar}).call(tl.setClipUrl,F?y:null,e);else{var er=P+ar-ce.top,Ne=P+ir-ce.left;J.call(C2.positionText,Ne,er).call(tl.setClipUrl,F?y:null,e)}O.select("rect").call(tl.setRect,P,P,re,Ce),z.call(tl.setRect,q/2,q/2,pe-q,be-q),k.call(tl.setTranslate,Math.round(g.x.text-pe/2),Math.round(g.y.text-be/2)),w.attr({transform:"rotate("+_+","+g.x.text+","+g.y.text+")"});var ae=function(qe,Pe){T.selectAll(".annotation-arrow-g").remove();var $e=g.x.head,cr=g.y.head,sr=g.x.tail+qe,Mr=g.y.tail+Pe,Ir=g.x.text+qe,Zr=g.y.text+Pe,lt=Ol.rotationXYMatrix(_,Ir,Zr),_t=Ol.apply2DTransform(lt),gt=Ol.apply2DTransform2(lt),Bt=+z.attr("width"),zt=+z.attr("height"),Oa=Ir-.5*Bt,va=Oa+Bt,aa=Zr-.5*zt,Ba=aa+zt,na=[[Oa,aa,Oa,Ba],[Oa,Ba,va,Ba],[va,Ba,va,aa],[va,aa,Oa,aa]].map(gt);if(!na.reduce(function(vt,Nt){return vt^!!Ol.segmentsIntersect($e,cr,$e+1e6,cr+1e6,Nt[0],Nt[1],Nt[2],Nt[3])},!1)){na.forEach(function(vt){var Nt=Ol.segmentsIntersect(sr,Mr,$e,cr,vt[0],vt[1],vt[2],vt[3]);Nt&&(sr=Nt.x,Mr=Nt.y)});var ia=r.arrowwidth,vr=r.arrowcolor,ot=r.arrowside,Jr=T.append("g").style({opacity:Jo.opacity(vr)}).classed("annotation-arrow-g",!0),nt=Jr.append("path").attr("d","M"+sr+","+Mr+"L"+$e+","+cr).style("stroke-width",ia+"px").call(Jo.stroke,Jo.rgb(vr));if(Nj(nt,ot,r),s.annotationPosition&&nt.node().parentNode&&!a){var la=$e,oa=cr;if(r.standoff){var at=Math.sqrt(Math.pow($e-sr,2)+Math.pow(cr-Mr,2));la+=r.standoff*(sr-$e)/at,oa+=r.standoff*(Mr-cr)/at}var Xa=Jr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-la)+","+(Mr-oa),transform:S2(la,oa)}).style("stroke-width",ia+6+"px").call(Jo.stroke,"rgba(0,0,0,0)").call(Jo.fill,"rgba(0,0,0,0)"),Un,Jt;wc.init({element:Xa.node(),gd:e,prepFn:function(){var vt=tl.getTranslate(k);Un=vt.x,Jt=vt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(vt,Nt){var Ya=_t(Un,Jt),$l=Ya[0]+vt,sl=Ya[1]+Nt;k.call(tl.setTranslate,$l,sl),d("x",Hl(n,vt,"x",o,r)),d("y",Hl(i,Nt,"y",o,r)),r.axref===r.xref&&d("ax",Hl(n,vt,"ax",o,r)),r.ayref===r.yref&&d("ay",Hl(i,Nt,"ay",o,r)),Jr.attr("transform",S2(vt,Nt)),w.attr({transform:"rotate("+_+","+$l+","+sl+")"})},doneFn:function(){k2.call("_guiRelayout",e,m());var vt=document.querySelector(".js-notes-box-panel");vt&&vt.redraw(vt.selectedObj)}})}}};if(r.showarrow&&ae(0,0),b){var oe;wc.init({element:k.node(),gd:e,prepFn:function(){oe=w.attr("transform")},moveFn:function(qe,Pe){var $e="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Hl(n,qe,"ax",o,r)):d("ax",r.ax+qe),r.ayref===r.yref?d("ay",Hl(i,Pe,"ay",o.w,r)):d("ay",r.ay+Pe),ae(qe,Pe);else{if(a)return;var cr,sr;if(n)cr=Hl(n,qe,"x",o,r);else{var Mr=r._xsize/o.w,Ir=r.x+(r._xshift-r.xshift)/o.w-Mr/2;cr=wc.align(Ir+qe/o.w,Mr,0,1,r.xanchor)}if(i)sr=Hl(i,Pe,"y",o,r);else{var Zr=r._ysize/o.h,lt=r.y-(r._yshift+r.yshift)/o.h-Zr/2;sr=wc.align(lt-Pe/o.h,Zr,0,1,r.yanchor)}d("x",cr),d("y",sr),(!n||!i)&&($e=wc.getCursor(n?.5:cr,i?.5:sr,r.xanchor,r.yanchor))}w.attr({transform:S2(qe,Pe)+oe}),L2(k,$e)},clickFn:function(qe,Pe){r.captureevents&&e.emit("plotly_clickannotation",C(Pe))},doneFn:function(){L2(k),k2.call("_guiRelayout",e,m());var qe=document.querySelector(".js-notes-box-panel");qe&&qe.redraw(qe.selectedObj)}})}}s.annotationText?J.call(C2.makeEditable,{delegate:k,gd:e}).call(G).on("edit",function(H){r.text=H,this.call(G),d("text",H),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),k2.call("_guiRelayout",e,m())}):J.call(G)}});var nq=K((jfe,aq)=>{"use strict";var jL=Oe(),Ij=br(),eq=ct().arrayEditor;aq.exports={hasClickToShow:Hj,onClick:Oj};function Hj(e,r){var t=tq(e,r);return t.on.length>0||t.explicitOff.length>0}function Oj(e,r){var t=tq(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var q2=Oe(),xu=Er();iq.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=xu.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),q2.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var v=n("arrowside"),h,d;v.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),v.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:xu.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),y=a.hoverlabel||{};if(m){var g=n("hoverlabel.bgcolor",y.bgcolor||(xu.opacity(i)?xu.rgb(i):xu.defaultLine)),_=n("hoverlabel.bordercolor",y.bordercolor||xu.contrast(g)),T=q2.extendFlat({},y.font);T.color||(T.color=_),q2.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!m)}});var oq=K((rce,lq)=>{"use strict";var E2=Oe(),Ko=pt(),Bj=ei(),Yj=D2(),Uj=fu();lq.exports=function(r,t){Bj(r,t,{name:"annotations",handleItemDefaults:Vj})};function Vj(e,r,t){function a(w,b){return E2.coerce(e,r,Uj,w,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){Yj(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=o[f],h=Ko.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Ko.getFromId(u,h);d._annIndices.push(r._index)}if(Ko.coercePosition(r,u,a,h,v,.5),l){var m="a"+v,y=Ko.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=r[m]="pixel");var g=y==="pixel"?s[f]:.4;Ko.coercePosition(r,u,a,y,m,g)}a(v+"anchor"),a(v+"shift")}if(E2.noneOrAll(e,r,["x","y"]),l&&E2.noneOrAll(e,r,["ax","ay"]),i){var _=a("xclick"),T=a("yclick");r._xclick=_===void 0?r.x:Ko.cleanPosition(_,u,r.xref),r._yclick=T===void 0?r.y:Ko.cleanPosition(T,u,r.yref)}}}});var fq=K((tce,uq)=>{"use strict";var P2=Oe(),Qo=pt(),Gj=Dd().draw;uq.exports=function(r){var t=r._fullLayout,a=P2.filterVisible(t.annotations);if(a.length&&r._fullData.length)return P2.syncOrAsync([Gj,Wj],r)};function Wj(e){var r=e._fullLayout;P2.filterVisible(r.annotations).forEach(function(t){var a=Qo.getFromId(e,t.xref),n=Qo.getFromId(e,t.yref),i=Qo.getRefType(t.xref),l=Qo.getRefType(t.yref);t._extremes={},i==="range"&&sq(t,a),l==="range"&&sq(t,n)})}function sq(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,y=m+f,g=m-f,_;if(o===l){var T=Qo.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),w=Qo.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,g)});_={min:[T.min[0],w.min[0]],max:[T.max[0],w.max[0]]}}else y=i?y+i:y,g=i?g-i:g,_=Qo.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,y),ppadminus:Math.max(u,d,g)});e._extremes[t]=_}});var vq=K((ace,cq)=>{"use strict";var Xj=Or(),Zj=Cv();cq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],y=null;i?y=Zj(m,t.range):y=Math.pow(10,m),Xj(y)||(y=null),n(f+d,y)}for(var h=0;h{"use strict";var R2=Dd(),hq=nq();dq.exports={moduleType:"component",name:"annotations",layoutAttributes:fu(),supplyLayoutDefaults:oq(),includeBasePlot:ac()("annotations"),calcAutorange:fq(),draw:R2.draw,drawOne:R2.drawOne,drawRaw:R2.drawRaw,hasClickToShow:hq.hasClickToShow,onClick:hq.onClick,convertCoords:vq()}});var Ed=K((ice,mq)=>{"use strict";var ft=fu(),Jj=bi().overrideAll,Kj=ct().templatedArray;mq.exports=Jj(Kj("annotation",{visible:ft.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ft.xanchor,xshift:ft.xshift,yanchor:ft.yanchor,yshift:ft.yshift,text:ft.text,textangle:ft.textangle,font:ft.font,width:ft.width,height:ft.height,opacity:ft.opacity,align:ft.align,valign:ft.valign,bgcolor:ft.bgcolor,bordercolor:ft.bordercolor,borderpad:ft.borderpad,borderwidth:ft.borderwidth,showarrow:ft.showarrow,arrowcolor:ft.arrowcolor,arrowhead:ft.arrowhead,startarrowhead:ft.startarrowhead,arrowside:ft.arrowside,arrowsize:ft.arrowsize,startarrowsize:ft.startarrowsize,arrowwidth:ft.arrowwidth,standoff:ft.standoff,startstandoff:ft.startstandoff,hovertext:ft.hovertext,hoverlabel:ft.hoverlabel,captureevents:ft.captureevents}),"calc","from-root")});var gq=K((lce,yq)=>{"use strict";var z2=Oe(),Qj=pt(),$j=ei(),jj=D2(),eee=Ed();yq.exports=function(r,t,a){$j(r,t,{name:"annotations",handleItemDefaults:ree,fullLayout:a.fullLayout})};function ree(e,r,t,a){function n(o,s){return z2.coerce(e,r,eee,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Qj.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(jj(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),z2.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),z2.noneOrAll(e,r,["ax","ay"])))}});var wq=K((oce,_q)=>{"use strict";var bq=Oe(),xq=pt();_q.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function N2(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function aee(e,r){var t=N2(e.projection,N2(e.view,N2(e.model,[r[0],r[1],r[2],1])));return t}Tq.exports=aee});var kq=K((uce,Aq)=>{"use strict";var nee=Dd().drawRaw,iee=Mq(),lee=["x","y","z"];Aq.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=iee(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),nee(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var Lq=K((fce,Cq)=>{"use strict";var oee=br(),Sq=Oe();Cq.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Ed()}}},layoutAttributes:Ed(),handleDefaults:gq(),includeBasePlot:see,convert:wq(),draw:kq()};function see(e,r){var t=oee.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var cce=Qt(),qq=ya(),Dq=Yo().line,uee=xi().dash,fi=Gt().extendFlat,fee=ct().templatedArray,vce=rc(),_u=Zn(),Eq=fu(),{shapeTexttemplateAttrs:cee,templatefallbackAttrs:vee}=co(),hee=Hv();Pq.exports=fee("shape",{visible:fi({},_u.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:fi({},_u.legend,{editType:"calc+arraydraw"}),legendgroup:fi({},_u.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:fi({},_u.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:qq({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:fi({},_u.legendrank,{editType:"calc+arraydraw"}),legendwidth:fi({},_u.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:fi({},Eq.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:fi({},Eq.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:fi({},Dq.color,{editType:"arraydraw"}),width:fi({},Dq.width,{editType:"calc+arraydraw"}),dash:fi({},uee,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:cee({},{keys:Object.keys(hee)}),texttemplatefallback:vee({editType:"arraydraw"}),font:qq({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var zq=K((dce,Rq)=>{"use strict";var wu=Oe(),mn=pt(),dee=ei(),pee=F2(),Mc=Rl();Rq.exports=function(r,t){dee(r,t,{name:"shapes",handleItemDefaults:yee})};function mee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function yee(e,r,t){function a(w,b){return wu.coerce(e,r,pee,w,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),wu.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var v=a("xsizemode"),h=a("ysizemode");let d=[.25,.75],m=[0,10];["x","y"].forEach(w=>{var b=w+"anchor",M=w==="x"?v:h,C={_fullLayout:t},k,q,D,P;let z=w+"ref",F=e[z];if(Array.isArray(F)&&F.length>0){let O=Mc.countDefiningCoords(s,l,w);P=mn.coerceRefArray(e,r,C,w,void 0,"paper",O),r["_"+w+"refArray"]=!0}else P=mn.coerceRef(e,r,C,w,void 0,"paper");if(Array.isArray(P))P.forEach(function(O){mn.getRefType(O)==="range"&&(k=mn.getFromId(C,O),k&&k._shapeIndices.indexOf(r._index)===-1&&k._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(O){let I=P[O];mn.getRefType(I)==="range"?(k=mn.getFromId(C,I),q=Mc.shapePositionToRange(k),D=Mc.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(w+O+"shift")):q=D=wu.identity;let J=w+O,G=e[J];if(e[J]=q(e[J],!0),M==="pixel"?a(J,m[O]):mn.coercePosition(r,C,a,I,J,d[O]),r[J]=D(r[J]),e[J]=G,O===0&&M==="pixel"){let U=e[b];e[b]=q(e[b],!0),mn.coercePosition(r,C,a,I,b,.25),r[b]=D(r[b]),e[b]=U}});else{if(mn.getRefType(P)==="range"?(k=mn.getFromId(C,P),k._shapeIndices.push(r._index),D=Mc.rangeToShapePosition(k),q=Mc.shapePositionToRange(k),u&&(k.type==="category"||k.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):q=D=wu.identity,u){let I=w+"0",V=w+"1",J=e[I],G=e[V];e[I]=q(e[I],!0),e[V]=q(e[V],!0),M==="pixel"?(a(I,m[0]),a(V,m[1])):(mn.coercePosition(r,C,a,P,I,d[0]),mn.coercePosition(r,C,a,P,V,d[1])),r[I]=D(r[I]),r[V]=D(r[V]),e[I]=J,e[V]=G}if(M==="pixel"){let I=e[b];e[b]=q(e[b],!0),mn.coercePosition(r,C,a,P,b,.25),r[b]=D(r[b]),e[b]=I}}}),u&&wu.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",g,_;if(u&&(g=a("label.texttemplate"),a("label.texttemplatefallback")),g||(_=a("label.text")),_||g){a("label.textangle");var T=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",mee(y,T)),a("label.padding"),wu.coerceFont(a,"label.font",t.font)}}});var Iq=K((pce,Fq)=>{"use strict";var gee=Er(),Nq=Oe();function bee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}Fq.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),Nq.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",gee.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",bee(l,u)),a("newshape.label.padding"),Nq.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var Gq=K((mce,Vq)=>{"use strict";var I2=Oe(),On=pt(),Hi=zf(),H2=Rl();Vq.exports=function(r){var t=r._fullLayout,a=I2.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=On.getFromId(r,v),i._extremes[l._id]=On.findExtremes(l,h,Oq(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=On.getFromId(r,i.xref),o=Yq(l,i,Hi.paramIsX),o&&(i._extremes[l._id]=On.findExtremes(l,o,Oq(i))));if(u==="array"){let f=Hq(r,i,"y");Object.entries(f).forEach(([v,h])=>{l=On.getFromId(r,v),i._extremes[l._id]=On.findExtremes(l,h,Bq(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=On.getFromId(r,i.yref),o=Yq(l,i,Hi.paramIsY),o&&(i._extremes[l._id]=On.findExtremes(l,o,Bq(i))))}};function Hq(e,r,t){let a=r[t+"ref"],n=t==="x"?Hi.paramIsX:Hi.paramIsY;function i(v,h){v==="paper"||On.getRefType(v)==="domain"||(l[v]||(l[v]=[]),l[v].push(h))}let l={};if(r.type==="path"&&r.path){let v=r.path.match(Hi.segmentRE)||[];for(var o=0,s=0;sm&&(i(a[o],y[m]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let v in l){let h=On.getFromId(e,v);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=H2.decodeDate(f)),u[h._id]=l[v].map(f)}}return u}function Oq(e){return Uq(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Bq(e){return Uq(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function Uq(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?H2.extractPathCoords(n,i?Hi.paramIsY:Hi.paramIsX):[t,a],u=I2.aggNums(Math.max,null,s),f=I2.aggNums(Math.min,null,s),v=f<0?Math.abs(f)+l:l,h=u>0?u+l:l;return{ppad:l,ppadplus:o?v:h,ppadminus:o?h:v}}else return{ppad:l}}function Yq(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(Hi.segmentRE),m,y,g,_,T;for(e.type==="date"&&(u=H2.decodeDate(u)),m=0;mh&&(h=T)));if(h>=v)return[v,h]}}});var Zq=K((yce,Xq)=>{"use strict";var Wq=Mh();Xq.exports={moduleType:"component",name:"shapes",layoutAttributes:F2(),supplyLayoutDefaults:zq(),supplyDrawNewShapeDefaults:Iq(),includeBasePlot:ac()("shapes"),calcAutorange:Gq(),draw:Wq.draw,drawOne:Wq.drawOne}});var O2=K((bce,Kq)=>{"use strict";var Jq=Qt(),xee=ct().templatedArray,gce=rc();Kq.exports=xee("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",Jq.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Jq.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var $q=K((xce,Qq)=>{"use strict";var _ee=Oe(),B2=pt(),wee=ei(),Tee=O2(),Mee="images";Qq.exports=function(r,t){var a={name:Mee,handleItemDefaults:Aee};wee(r,t,a)};function Aee(e,r,t){function a(h,d){return _ee.coerce(e,r,Tee,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=B2.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=B2.getFromId(l,f);v._imgIndices.push(r._index)}B2.coercePosition(r,l,a,f,u,0)}return r}});var tD=K((_ce,rD)=>{"use strict";var jq=Hr(),kee=tt(),Tu=pt(),eD=Xt(),See=_o();rD.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var aD=Or(),Cee=Cv();nD.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";lD.exports={moduleType:"component",name:"images",layoutAttributes:O2(),supplyLayoutDefaults:$q(),includeBasePlot:ac()("images"),draw:tD(),convertCoords:iD()}});var Pd=K((Mce,sD)=>{"use strict";sD.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var Y2=K((Ace,fD)=>{"use strict";var Lee=ya(),qee=gi(),Dee=Gt().extendFlat,Eee=bi().overrideAll,Pee=Ov(),uD=ct().templatedArray,Ree=uD("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});fD.exports=Eee(uD("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Ree,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Dee(Pee({editType:"arraydraw"}),{}),font:Lee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:qee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var dD=K((kce,hD)=>{"use strict";var Rd=Oe(),cD=ei(),vD=Y2(),zee=Pd(),Nee=zee.name,Fee=vD.buttons;hD.exports=function(r,t){var a={name:Nee,handleItemDefaults:Iee};cD(r,t,a)};function Iee(e,r,t){function a(l,o){return Rd.coerce(e,r,vD,l,o)}var n=cD(e,r,{name:"buttons",handleItemDefaults:Hee}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Rd.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Rd.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Hee(e,r){function t(n,i){return Rd.coerce(e,r,Fee,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var yD=K((Sce,mD)=>{"use strict";mD.exports=xt;var ci=Hr(),pD=Er(),Mu=tt(),zd=Oe();function xt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}xt.barWidth=2;xt.barLength=20;xt.barRadius=2;xt.barPad=1;xt.barColor="#808BA4";xt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",y=v==="up",g=s,_=f,T,w,b,M;!h&&!d&&!m&&!y&&(this.position.direction="down",h=!0);var C=h||y;C?(T=o,w=T+g,h?(b=u,M=Math.min(b+_,l),_=M-b):(M=u+_,b=Math.max(M-_,0),_=M-b)):(b=u,M=b+_,d?(w=o+g,T=Math.max(w-g,0),g=w-T):(T=o,w=Math.min(T+g,i),g=w-T)),this._box={l:T,t:b,w:g,h:_};var k=s>g,q=xt.barLength+2*xt.barPad,D=xt.barWidth+2*xt.barPad,P=o,z=u+f;z+D>l&&(z=l-D);var F=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(pD.fill,xt.barColor),k?(this.hbar=F.attr({rx:xt.barRadius,ry:xt.barRadius,x:P,y:z,width:q,height:D}),this._hbarXMin=P+q/2,this._hbarTranslateMax=g-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=f>_,I=xt.barWidth+2*xt.barPad,V=xt.barLength+2*xt.barPad,J=o+s,G=u;J+I>i&&(J=i-I);var U=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(pD.fill,xt.barColor),O?(this.vbar=U.attr({rx:xt.barRadius,ry:xt.barRadius,x:J,y:G,width:I,height:V}),this._vbarYMin=G+V/2,this._vbarTranslateMax=_-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,Q=T-.5,Z=O?w+I+.5:w+.5,ne=b-.5,ce=k?M+D+.5:M+.5,ye=n._topdefs.selectAll("#"+H).data(k||O?[0]:[]);if(ye.exit().remove(),ye.enter().append("clipPath").attr("id",H).append("rect"),k||O?(this._clipRect=ye.select("rect").attr({x:Math.floor(Q),y:Math.floor(ne),width:Math.ceil(Z)-Math.floor(Q),height:Math.ceil(ce)-Math.floor(ne)}),this.container.call(Mu.setClipUrl,H,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mu.setClipUrl,null),delete this._clipRect),k||O){var Se=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Se);var re=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault(),ci.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(re),O&&this.vbar.on(".drag",null).call(re)}this.setTranslate(t,a)};xt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};xt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ci.event.dx),this.vbar&&(t-=ci.event.dy),this.setTranslate(r,t)};xt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ci.event.deltaY),this.vbar&&(t+=ci.event.deltaY),this.setTranslate(r,t)};xt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=zd.constrain(ci.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=zd.constrain(ci.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};xt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=zd.constrain(r||0,0,a),t=zd.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Mu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Mu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Mu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var SD=K((Cce,kD)=>{"use strict";var Au=Hr(),Ac=Ft(),kc=Er(),ku=tt(),yn=Oe(),Nd=ga(),Oee=ct().arrayEditor,bD=Ma().LINE_SPACING,_r=Pd(),Bee=yD();kD.exports=function(r){var t=r._fullLayout,a=yn.filterVisible(t[_r.name]);function n(h){Ac.autoMargin(r,MD(h))}var i=t._menulayer.selectAll("g."+_r.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(_r.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Au.select(this).selectAll("g."+_r.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+_r.headerGroupClassName).data(a,Yee);l.enter().append("g").classed(_r.headerGroupClassName,!0);for(var o=yn.ensureSingle(i,"g",_r.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var Jee=Pd();CD.exports={moduleType:"component",name:Jee.name,layoutAttributes:Y2(),supplyLayoutDefaults:dD(),draw:SD()}});var Cc=K((qce,qD)=>{"use strict";qD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var W2=K((Dce,PD)=>{"use strict";var DD=ya(),Kee=Ov(),Qee=Gt().extendDeepAll,$ee=bi().overrideAll,jee=tf(),ED=ct().templatedArray,$o=Cc(),ere=ED("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});PD.exports=$ee(ED("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ere,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Qee(Kee({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:jee.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:DD({})},font:DD({}),activebgcolor:{valType:"color",dflt:$o.gripBgActiveColor},bgcolor:{valType:"color",dflt:$o.railBgColor},bordercolor:{valType:"color",dflt:$o.railBorderColor},borderwidth:{valType:"number",min:0,dflt:$o.railBorderWidth},ticklen:{valType:"number",min:0,dflt:$o.tickLength},tickcolor:{valType:"color",dflt:$o.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:$o.minorTickLength}}),"arraydraw","from-root")});var FD=K((Ece,ND)=>{"use strict";var Su=Oe(),RD=ei(),zD=W2(),rre=Cc(),tre=rre.name,are=zD.steps;ND.exports=function(r,t){RD(r,t,{name:tre,handleItemDefaults:nre})};function nre(e,r,t){function a(v,h){return Su.coerce(e,r,zD,v,h)}for(var n=RD(e,r,{name:"steps",handleItemDefaults:ire}),i=0,l=0;l{"use strict";var vi=Hr(),Fd=Ft(),Bl=Er(),hi=tt(),gn=Oe(),lre=gn.strTranslate,Lc=ga(),ore=ct().arrayEditor,Dr=Cc(),J2=Ma(),OD=J2.LINE_SPACING,X2=J2.FROM_TL,Z2=J2.FROM_BR;WD.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=sre(a,r),i=a._infolayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Dr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Fd.autoMargin(r,BD(f))}if(i.exit().each(function(){vi.select(this).selectAll("g."+Dr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Dr.groupClassName).data(n,ure);o.enter().append("g").classed(Dr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",lre(l-Dr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function K2(e,r){var t=e._dims;return t.inputAreaStart+Dr.stepInset+(t.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,r))}function HD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Dr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Dr.stepInset-2*t.inputAreaStart)))}function mre(e,r,t){var a=t._dims,n=gn.ensureSingle(e,"rect",Dr.railTouchRectClass,function(i){i.call(VD,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Dr.tickOffset+t.ticklen+a.labelHeight)}).call(Bl.fill,t.bgcolor).attr("opacity",0),hi.setTranslate(n,0,a.currentValueTotalHeight)}function yre(e,r){var t=r._dims,a=t.inputAreaLength-Dr.railInset*2,n=gn.ensureSingle(e,"rect",Dr.railRectClass);n.attr({width:a,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Bl.stroke,r.bordercolor).call(Bl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),hi.setTranslate(n,Dr.railInset,(t.inputAreaWidth-Dr.railWidth)*.5+t.currentValueTotalHeight)}});var JD=K((Rce,ZD)=>{"use strict";var gre=Cc();ZD.exports={moduleType:"component",name:gre.name,layoutAttributes:W2(),supplyLayoutDefaults:FD(),draw:XD()}});var Hd=K((zce,QD)=>{"use strict";var KD=gi();QD.exports={bgcolor:{valType:"color",dflt:KD.background,editType:"plot"},bordercolor:{valType:"color",dflt:KD.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var Q2=K((Nce,$D)=>{"use strict";$D.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Od=K((Fce,jD)=>{"use strict";jD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var tE=K(Yd=>{"use strict";var bre=Xt(),xre=ga(),eE=Od(),_re=Ma().LINE_SPACING,Bd=eE.name;function rE(e){var r=e&&e[Bd];return r&&r.visible}Yd.isVisible=rE;Yd.makeData=function(e){for(var r=bre.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Ud=Oe(),aE=ct(),nE=Xt(),wre=Hd(),Tre=Q2();iE.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Ud.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=aE.newContainer(i,"rangeslider");function s(M,C){return Ud.coerce(l,o,wre,M,C)}var u,f;function v(M,C){return Ud.coerce(u,f,Tre,M,C)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===nE.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),y=Ud.simpleMap(m,nE.id2name),g=0;g{"use strict";var Mre=Xt().list,Are=_f().getAutoRange,kre=Od();oE.exports=function(r){for(var t=Mre(r,"x",!0),a=0;a{"use strict";var Vd=Hr(),Sre=br(),Cre=Ft(),St=Oe(),Gd=St.strTranslate,fE=tt(),Yl=Er(),Lre=bf(),qre=Ld(),$2=Xt(),Dre=ti(),Ere=Ll(),Fr=Od();cE.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=U.max)J=z[G+1];else if(V=U.pmax)J=z[G+1];else if(V0?e.touches[0].clientX:0}function Pre(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Fr.slideBoxClassName).node(),i=e.select("rect."+Fr.grabAreaMinClassName).node(),l=e.select("rect."+Fr.grabAreaMaxClassName).node();function o(){var s=Vd.event,u=s.target,f=uE(s),v=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=Dre.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",g),m.addEventListener("mousemove",y),m.addEventListener("mouseup",g);function y(_){var T=uE(_),w=+T-f,b,M,C;switch(u){case n:if(C="ew-resize",h+w>t._length||d+w<0)return;b=h+w,M=d+w;break;case i:if(C="col-resize",h+w>t._length)return;b=h+w,M=d;break;case l:if(C="col-resize",d+w<0)return;b=h,M=d+w;break;default:C="ew-resize",b=v,M=v+w;break}if(M{"use strict";var Ure=Oe(),Vre=Hd(),Gre=Q2(),j2=tE();hE.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ure.extendFlat({},Vre,{yaxis:Gre})}}},layoutAttributes:Hd(),handleDefaults:lE(),calcAutorange:sE(),draw:vE(),isVisible:j2.isVisible,makeData:j2.makeData,autoMarginOpts:j2.autoMarginOpts}});var Wd=K((Uce,mE)=>{"use strict";var Wre=ya(),pE=gi(),Xre=ct().templatedArray,Zre=Xre("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});mE.exports={visible:{valType:"boolean",editType:"plot"},buttons:Zre,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Wre({editType:"plot"}),bgcolor:{valType:"color",dflt:pE.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:pE.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var e3=K((Vce,yE)=>{"use strict";yE.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var xE=K((Gce,bE)=>{"use strict";var Xd=Oe(),Jre=Er(),Kre=ct(),Qre=ei(),gE=Wd(),r3=e3();bE.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Kre.newContainer(t,"rangeselector");function s(d,m){return Xd.coerce(l,o,gE,d,m)}var u=Qre(l,o,{name:"buttons",handleItemDefaults:$re,calendar:i}),f=s("visible",u.length>0);if(f){var v=jre(t,a,n);s("x",v[0]),s("y",v[1]),Xd.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Xd.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Jre.contrast(h,r3.lightAmount,r3.darkAmount)),s("bordercolor"),s("borderwidth")}};function $re(e,r,t,a){var n=a.calendar;function i(s,u){return Xd.coerce(e,r,gE.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function jre(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var ete=K1(),rte=Oe().titleCase;_E.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=tte(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function tte(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=ete["utc"+rte(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var qE=K((Xce,LE)=>{"use strict";var Jd=Hr(),ate=br(),nte=Ft(),TE=Er(),CE=tt(),al=Oe(),ME=al.strTranslate,Zd=ga(),ite=Xt(),n3=Ma(),AE=n3.LINE_SPACING,kE=n3.FROM_TL,SE=n3.FROM_BR,a3=e3(),lte=wE();LE.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(ote(r),ste);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Jd.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(al.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Jd.select(this),v=lte(l,u);u._isActive=ute(l,u,v),f.call(t3,o,u),f.call(cte,o,u,r),f.on("click",function(){r._dragged||ate.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(t3,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(t3,o,u)})}),hte(r,s,o,l._name,i)})};function ote(e){for(var r=ite.list(e,"x",!0),t=[],a=0;a{"use strict";DE.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Wd()}}},layoutAttributes:Wd(),handleDefaults:xE(),draw:qE()}});var Kd=K(i3=>{"use strict";var PE=Gt().extendFlat;i3.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:PE({},t,{}),y:PE({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};i3.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var dte=Oe(),pte=Ts().counter,mte=Kd().attributes,RE=Qt().idRegex,yte=ct(),l3={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[pte("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[RE.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[RE.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:mte({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Qd(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function gte(e,r){var t=e.grid||{},a=Qd(r,t,"x"),n=Qd(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var v=yte.newContainer(r,"grid");function h(C,k){return dte.coerce(t,v,l3,C,k)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!l&&!o){var y=h("pattern")==="independent";y&&(i=!0)}v._hasSubplotGrid=i;var g=h("roworder"),_=g==="top to bottom",T=i?.2:.1,w=i?.3:.1,b,M;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),v._domains={x:zE("x",h,T,b,m),y:zE("y",h,w,M,d,_)}}function zE(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),v=f*(1-l),h=0;h{"use strict";HE.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var YE=K(($ce,BE)=>{"use strict";var OE=Or(),xte=br(),_te=Oe(),wte=ct(),Tte=o3();BE.exports=function(e,r,t,a){var n="error_"+a.axis,i=wte.newContainer(r,n),l=e[n]||{};function o(m,y){return _te.coerce(l,i,Tte,m,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),v=!0;f!=="sqrt"&&(v=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),v||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),v||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||OE(l.thickness)||OE(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",xte.traceIs(r,"gl3d")?0:4))}}});var s3=K((jce,VE)=>{"use strict";VE.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var v=+n[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+n[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var l=UE(t,r.value),o=UE(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function UE(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var XE=K((eve,WE)=>{"use strict";var u3=Or(),Mte=br(),f3=pt(),Ate=Oe(),kte=s3();WE.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var ZE=Hr(),Ul=Or(),Ste=tt(),Cte=un();JE.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(T){return T.id});var y=Cte.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var g=ZE.select(this).selectAll("g.errorbar").data(f,m);if(g.exit().remove(),!!f.length){h.visible||g.selectAll("path.xerror").remove(),d.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var _=g.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(n.duration).style("opacity",1),Ste.setClipUrl(g,a.layerClipId,r),g.each(function(T){var w=ZE.select(this),b=Lte(T,l,o);if(!(y&&!T.vis)){var M,C=w.select("path.yerror");if(d.visible&&Ul(b.x)&&Ul(b.yh)&&Ul(b.ys)){var k=d.width;M="M"+(b.x-k)+","+b.yh+"h"+2*k+"m-"+k+",0V"+b.ys,b.noYS||(M+="m-"+k+",0h"+2*k),i=!C.size(),i?C=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",M)}else C.remove();var q=w.select("path.xerror");if(h.visible&&Ul(b.y)&&Ul(b.xh)&&Ul(b.xs)){var D=(h.copy_ystyle?d:h).width;M="M"+b.xh+","+(b.y-D)+"v"+2*D+"m0,-"+D+"H"+b.xs,b.noXS||(M+="m0,-"+D+"v"+2*D),i=!q.size(),i?q=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",M)}else q.remove()}})}})};function Lte(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),Ul(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),Ul(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var jE=K((tve,$E)=>{"use strict";var qte=Hr(),QE=Er();$E.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=qte.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(QE.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(QE.stroke,i.color)})}});var tP=K((ave,rP)=>{"use strict";var qc=Oe(),eP=bi().overrideAll,Dc=o3(),jo={error_x:qc.extendFlat({},Dc),error_y:qc.extendFlat({},Dc)};delete jo.error_x.copy_zstyle;delete jo.error_y.copy_zstyle;delete jo.error_y.copy_ystyle;var Ec={error_x:qc.extendFlat({},Dc),error_y:qc.extendFlat({},Dc),error_z:qc.extendFlat({},Dc)};delete Ec.error_x.copy_ystyle;delete Ec.error_y.copy_ystyle;delete Ec.error_z.copy_ystyle;delete Ec.error_z.copy_zstyle;rP.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:jo,bar:jo,histogram:jo,scatter3d:eP(Ec,"calc","nested"),scattergl:eP(jo,"calc","nested")}},supplyDefaults:YE(),calc:XE(),makeComputeError:s3(),plot:KE(),style:jE(),hoverInfo:Dte};function Dte(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var nP=K((nve,aP)=>{"use strict";aP.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var cP=K((ive,fP)=>{"use strict";var Vl=Hr(),c3=wn(),jd=Ft(),iP=br(),nl=pt(),$d=ti(),Bn=Oe(),pi=Bn.strTranslate,uP=Gt().extendFlat,v3=Ll(),di=tt(),h3=Er(),Ete=bf(),Pte=ga(),Rte=kn().flipScale,zte=_2(),Nte=w2(),Fte=jn(),d3=Ma(),lP=d3.LINE_SPACING,oP=d3.FROM_TL,sP=d3.FROM_BR,bt=nP().cn;function Ite(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+bt.colorbar).data(Hte(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(bt.colorbar,!0),t.each(function(a){var n=Vl.select(this);Bn.ensureSingle(n,"rect",bt.cbbg),Bn.ensureSingle(n,"g",bt.cbfills),Bn.ensureSingle(n,"g",bt.cblines),Bn.ensureSingle(n,"g",bt.cbaxis,function(l){l.classed(bt.crisp,!0)}),Bn.ensureSingle(n,"g",bt.cbtitleunshift,function(l){l.append("g").classed(bt.cbtitle,!0)}),Bn.ensureSingle(n,"rect",bt.cboutline);var i=Ote(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Bte(n,a,e)}),t.exit().each(function(a){jd.autoMargin(e,a._id)}).remove(),t.order()}function Hte(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return uP(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?Rte(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var $=Math.pow(10,Math.floor(Math.log(B)/Math.LN10));Ae*=$*Bn.roundUp(B/$,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(pe.tick0=0)}pe.dtick=Ae}pe.domain=a?[re+m/b.h,re+H-m/b.h]:[re+d/b.w,re+H-d/b.w],pe.setScale(),e.attr("transform",pi(Math.round(b.l),Math.round(b.t)));var Y=e.select("."+bt.cbtitleunshift).attr("transform",pi(-Math.round(b.l),-Math.round(b.t))),le=pe.ticklabelposition,he=pe.title.font.size,me=e.select("."+bt.cbaxis),Re,Ee=0,Le=0;function Ve(We,ie){var xe={propContainer:pe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+bt.cbtitle)},Ke=We.charAt(0)==="h"?We.slice(1):"h"+We;e.selectAll("."+Ke+",."+Ke+"-math-group").remove(),Ete.draw(t,We,uP(xe,ie||{}))}function Fe(){if(a&&be||!a&&!be){var We,ie;q==="top"&&(We=d+b.l+Q*y,ie=m+b.t+Z*(1-re-H)+3+he*.75),q==="bottom"&&(We=d+b.l+Q*y,ie=m+b.t+Z*(1-re)-3-he*.25),q==="right"&&(ie=m+b.t+Z*g+3+he*.75,We=d+b.l+Q*re),Ve(pe._id+"title",{attributes:{x:We,y:ie,"text-anchor":a?"start":"middle"}})}}function Xe(){if(a&&!be||!a&&be){var We=pe.position||0,ie=pe._offset+pe._length/2,xe,Ke;if(q==="right")Ke=ie,xe=b.l+Q*We+10+he*(pe.showticklabels?1:.5);else if(xe=ie,q==="bottom"&&(Ke=b.t+Z*We+10+(le.indexOf("inside")===-1?pe.tickfont.size:0)+(pe.ticks!=="inside"&&r.ticklen||0)),q==="top"){var hr=k.text.split("
").length;Ke=b.t+Z*We+10-J-lP*he*hr}Ve((a?"h":"v")+pe._id+"title",{avoid:{selection:Vl.select(t).selectAll("g."+pe._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?w.width:w.height},attributes:{x:xe,y:Ke,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!be||a&&be){var We=e.select("."+bt.cbtitle),ie=We.select("text"),xe=[-s/2,s/2],Ke=We.select(".h"+pe._id+"title-math-group").node(),hr=15.6;ie.node()&&(hr=parseInt(ie.node().style.fontSize,10)*lP);var ze;if(Ke?(ze=di.bBox(Ke),Le=ze.width,Ee=ze.height,Ee>hr&&(xe[1]-=(Ee-hr)/2)):ie.node()&&!ie.classed(bt.jsPlaceholder)&&(ze=di.bBox(ie.node()),Le=ze.width,Ee=ze.height),a){if(Ee){if(Ee+=5,q==="top")pe.domain[1]-=Ee/b.h,xe[1]*=-1;else{pe.domain[0]+=Ee/b.h;var Me=Pte.lineCount(ie);xe[1]+=(1-Me)*hr}We.attr("transform",pi(xe[0],xe[1])),pe.setScale()}}else Le&&(q==="right"&&(pe.domain[0]+=(Le+he/2)/b.w),We.attr("transform",pi(xe[0],xe[1])),pe.setScale())}e.selectAll("."+bt.cbfills+",."+bt.cblines).attr("transform",a?pi(0,Math.round(b.h*(1-pe.domain[1]))):pi(Math.round(b.w*pe.domain[0]),0)),me.attr("transform",a?pi(0,Math.round(-b.t)):pi(Math.round(-b.l),0));var ke=e.select("."+bt.cbfills).selectAll("rect."+bt.cbfill).attr("style","").data(I);ke.enter().append("rect").classed(bt.cbfill,!0).attr("style",""),ke.exit().remove();var He=D.map(pe.c2p).map(Math.round).sort(function(ar,er){return ar-er});ke.each(function(ar,er){var Ne=[er===0?D[0]:(I[er]+I[er-1])/2,er===I.length-1?D[1]:(I[er]+I[er+1])/2].map(pe.c2p).map(Math.round);a&&(Ne[1]=Bn.constrain(Ne[1]+(Ne[1]>Ne[0])?1:-1,He[0],He[1]));var ae=Vl.select(this).attr(a?"x":"y",ne).attr(a?"y":"x",Vl.min(Ne)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(Vl.max(Ne)-Vl.min(Ne),2));if(r._fillgradient)di.gradient(ae,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var oe=z(ar).replace("e-","");ae.attr("fill",c3(oe).toHexString())}});var Ze=e.select("."+bt.cblines).selectAll("path."+bt.cbline).data(C.color&&C.width?V:[]);Ze.enter().append("path").classed(bt.cbline,!0),Ze.exit().remove(),Ze.each(function(ar){var er=ne,Ne=Math.round(pe.c2p(ar))+C.width/2%1;Vl.select(this).attr("d","M"+(a?er+","+Ne:Ne+","+er)+(a?"h":"v")+J).call(di.lineGroupStyle,C.width,P(ar),C.dash)}),me.selectAll("g."+pe._id+"tick,path").remove();var Ue=ne+J+(s||0)/2-(r.ticks==="outside"?1:0),Ge=nl.calcTicks(pe),ir=nl.getTickSigns(pe)[2];return nl.drawTicks(t,pe,{vals:pe.ticks==="inside"?nl.clipEnds(pe,Ge):Ge,layer:me,path:nl.makeTickPath(pe,Ue,ir),transFn:nl.makeTransTickFn(pe)}),nl.drawLabels(t,pe,{vals:Ge,layer:me,transFn:nl.makeTransTickLabelFn(pe),labelFns:nl.makeLabelFns(pe,Ue)})}function Ie(){var We,ie=J+s/2;le.indexOf("inside")===-1&&(We=di.bBox(me.node()),ie+=a?We.width:We.height),Re=Y.select("text");var xe=0,Ke=a&&q==="top",hr=!a&&q==="right",ze=0;if(Re.node()&&!Re.classed(bt.jsPlaceholder)){var Me,ke=Y.select(".h"+pe._id+"title-math-group").node();ke&&(a&&be||!a&&!be)?(We=di.bBox(ke),xe=We.width,Me=We.height):(We=di.bBox(Y.node()),xe=We.right-b.l-(a?ne:Ce),Me=We.bottom-b.t-(a?Ce:ne),!a&&q==="top"&&(ie+=We.height,ze=We.height)),hr&&(Re.attr("transform",pi(xe/2+he/2,0)),xe*=2),ie=Math.max(ie,a?xe:Me)}var He=(a?d:m)*2+ie+u+s/2,Ze=0;!a&&k.text&&h==="bottom"&&g<=0&&(Ze=He/2,He+=Ze,ze+=Ze),w._hColorbarMoveTitle=Ze,w._hColorbarMoveCBTitle=ze;var Ue=u+s,Ge=(a?ne:Ce)-Ue/2-(a?d:0),ir=(a?Ce:ne)-(a?U:m+ze-Ze);e.select("."+bt.cbbg).attr("x",Ge).attr("y",ir).attr(a?"width":"height",Math.max(He-Ze,2)).attr(a?"height":"width",Math.max(U+Ue,2)).call(h3.fill,f).call(h3.stroke,r.bordercolor).style("stroke-width",u);var ar=hr?Math.max(xe-10,0):0;e.selectAll("."+bt.cboutline).attr("x",(a?ne:Ce+d)+ar).attr("y",(a?Ce+m-U:ne)+(Ke?Ee:0)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(U-(a?2*m+Ee:2*d+ar),2)).call(h3.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var er=a?ce*He:0,Ne=a?0:(1-ye)*He-ze;if(er=T?b.l-er:-er,Ne=_?b.t-Ne:-Ne,e.attr("transform",pi(er,Ne)),!a&&(u||c3(f).getAlpha()&&!c3.equals(w.paper_bgcolor,f))){var ae=me.selectAll("text"),oe=ae[0].length,qe=e.select("."+bt.cbbg).node(),Pe=di.bBox(qe),$e=di.getTranslate(e),cr=2;ae.each(function(Oa,va){var aa=0,Ba=oe-1;if(va===aa||va===Ba){var na=di.bBox(this),ia=di.getTranslate(this),vr;if(va===Ba){var ot=na.right+ia.x,Jr=Pe.right+$e.x+Ce-u-cr+y;vr=Jr-ot,vr>0&&(vr=0)}else if(va===aa){var nt=na.left+ia.x,la=Pe.left+$e.x+Ce+u+cr;vr=la-nt,vr<0&&(vr=0)}vr&&(oe<3?this.setAttribute("transform","translate("+vr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},Mr=oP[v],Ir=sP[v],Zr=oP[h],lt=sP[h],_t=He-J;a?(i==="pixels"?(sr.y=g,sr.t=U*Zr,sr.b=U*lt):(sr.t=sr.b=0,sr.yt=g+n*Zr,sr.yb=g-n*lt),o==="pixels"?(sr.x=y,sr.l=He*Mr,sr.r=He*Ir):(sr.l=_t*Mr,sr.r=_t*Ir,sr.xl=y-l*Mr,sr.xr=y+l*Ir)):(i==="pixels"?(sr.x=y,sr.l=U*Mr,sr.r=U*Ir):(sr.l=sr.r=0,sr.xl=y+n*Mr,sr.xr=y-n*Ir),o==="pixels"?(sr.y=1-g,sr.t=He*Zr,sr.b=He*lt):(sr.t=_t*Zr,sr.b=_t*lt,sr.yt=g-l*Zr,sr.yb=g+l*lt));var gt=r.y<.5?"b":"t",Bt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var zt={r:w.width-Ge-er,l:Ge+sr.r,b:w.height-ir-Ne,t:ir+sr.b};T&&_?jd.autoMargin(t,r._id,sr):T?t._fullLayout._reservedMargin[r._id][gt]=zt[gt]:_||a?t._fullLayout._reservedMargin[r._id][Bt]=zt[Bt]:t._fullLayout._reservedMargin[r._id][gt]=zt[gt]}return Bn.syncOrAsync([jd.previousPromises,Fe,De,Xe,jd.previousPromises,Ie],t)}function Bte(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;$d.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),v3(e)},moveFn:function(u,f){e.attr("transform",l+pi(u,f)),o=$d.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=$d.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=$d.getCursor(o,s,r.xanchor,r.yanchor);v3(e,v)},doneFn:function(){if(v3(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?iP.call("_guiRestyle",t,u,r._traceIndex):iP.call("_guiRelayout",t,u)}}})}function Yte(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";vP.exports={moduleType:"component",name:"colorbar",attributes:p0(),supplyDefaults:hm(),draw:cP().draw,hasColorbar:tm()}});var pP=K((ove,dP)=>{"use strict";dP.exports={moduleType:"component",name:"legend",layoutAttributes:fy(),supplyLayoutDefaults:vy(),draw:ky(),style:wy()}});var yP=K((sve,mP)=>{"use strict";mP.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var bP=K((uve,gP)=>{"use strict";gP.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var m3=K((fve,TP)=>{"use strict";var Vte=br(),wP=Oe(),p3=wP.extendFlat,xP=wP.extendDeep;function _P(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Gte(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}TP.exports=function(r,t){var a,n=r.data,i=r.layout,l=xP([],n),o=xP({},i,_P(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var Wte=r0().EventEmitter,Xte=br(),Zte=Oe(),MP=Uo(),Jte=m3(),Kte=od(),Qte=sd();function $te(e,r){var t=new Wte,a=Jte(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=MP.getDelay(n._fullLayout);setTimeout(function(){var s=Kte(n),u=document.createElement("canvas");u.id=Zte.randstr(),t=Qte({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=MP.getRedrawFunc(n);return Xte.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}AP.exports=$te});var LP=K((vve,CP)=>{"use strict";var SP=Uo(),jte={getDelay:SP.getDelay,getRedrawFunc:SP.getRedrawFunc,clone:m3(),toSVG:od(),svgToImg:sd(),toImage:kP(),downloadImage:Ug()};CP.exports=jte});var DP=K(il=>{"use strict";il.version=gv().version;xb();u6();var eae=br(),Pc=il.register=eae.register,g3=ES(),qP=Object.keys(g3);for(e1=0;e1{"use strict";EP.exports=DP()});var Rc=K((pve,IP)=>{"use strict";var At=Yo(),RP=d0().axisHoverFormat,{hovertemplateAttrs:rae,texttemplateAttrs:tae,templatefallbackAttrs:zP}=co(),FP=mf(),aae=ya(),NP=mc(),nae=xi().pattern,es=Gt().extendFlat,b3=aae({editType:"calc",arrayOk:!0,colorEditType:"style"}),iae=At.marker,lae=iae.line,oae=es({},lae.width,{dflt:0}),sae=es({width:oae,editType:"calc"},FP("marker.line")),uae=es({line:sae,editType:"calc"},FP("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:nae,cornerradius:{valType:"any",editType:"calc"}});IP.exports={x:At.x,x0:At.x0,dx:At.dx,y:At.y,y0:At.y0,dy:At.dy,xperiod:At.xperiod,yperiod:At.yperiod,xperiod0:At.xperiod0,yperiod0:At.yperiod0,xperiodalignment:At.xperiodalignment,yperiodalignment:At.yperiodalignment,xhoverformat:RP("x"),yhoverformat:RP("y"),text:At.text,texttemplate:tae({editType:"plot"},{keys:NP.eventDataKeys}),texttemplatefallback:zP({editType:"plot"}),hovertext:At.hovertext,hovertemplate:rae({},{keys:NP.eventDataKeys}),hovertemplatefallback:zP(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:es({},b3,{}),insidetextfont:es({},b3,{}),outsidetextfont:es({},b3,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:es({},At.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:uae,offsetgroup:At.offsetgroup,alignmentgroup:At.alignmentgroup,selected:{marker:{opacity:At.selected.marker.opacity,color:At.selected.marker.color,editType:"style"},textfont:At.selected.textfont,editType:"style"},unselected:{marker:{opacity:At.unselected.marker.opacity,color:At.unselected.marker.color,editType:"style"},textfont:At.unselected.textfont,editType:"style"},zorder:At.zorder}});var x3=K((mve,HP)=>{"use strict";HP.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var UP=K((yve,YP)=>{"use strict";var fae=Er(),OP=kn().hasColorscale,BP=Ys(),cae=Oe().coercePattern;YP.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=OP(r,"marker");o&&BP(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",fae.defaultLine),OP(r,"marker.line")&&BP(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),cae(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var zc=K((gve,JP)=>{"use strict";var VP=Or(),Lu=Oe(),GP=Er(),vae=br(),hae=Wg(),dae=Xg(),pae=UP(),mae=Zg(),WP=Rc(),t1=Lu.coerceFont;function yae(e,r,t,a){function n(u,f){return Lu.coerce(e,r,WP,u,f)}var i=hae(e,r,a,n);if(!i){r.visible=!1;return}dae(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");ZP(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),pae(e,r,n,t,a);var o=(r.marker.line||{}).color,s=vae.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||GP.defaultLine,{axis:"y"}),s(e,r,o||GP.defaultLine,{axis:"x",inherit:"y"}),Lu.coerceSelectionMarkerOpacity(r,n)}function gae(e,r){var t,a;function n(o,s){return Lu.coerce(a._input,a,WP,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&VP(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function ZP(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,v=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",m=d||n==="inside",y=d||n==="outside";if(m||y){var g=t1(a,"textfont",t.font),_=Lu.extendFlat({},g),T=e.textfont&&e.textfont.color,w=!T;if(w&&delete _.color,t1(a,"insidetextfont",_),h){var b=Lu.extendFlat({},g);w&&delete b.color,t1(a,"pathbar.textfont",b)}y&&t1(a,"outsidetextfont",g),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}m&&v&&a("insidetextanchor")}JP.exports={supplyDefaults:yae,crossTraceDefaults:gae,handleText:ZP,validateCornerradius:XP}});var QP=K((bve,KP)=>{"use strict";var bae=br(),xae=pt(),_ae=Oe(),wae=x3(),Tae=zc().validateCornerradius;KP.exports=function(e,r,t){function a(y,g){return _ae.coerce(e,r,wae,y,g)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),v.visible&&v.type==="histogram"){var d=xae.getFromId({_fullLayout:r},v[v.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var m=a("barcornerradius");r.barcornerradius=Tae(m)}});var _3=K((xve,$P)=>{"use strict";var qu=Oe();$P.exports=function(r,t){for(var a=0;a{"use strict";var jP=pt(),eR=Jg(),rR=kn().hasColorscale,tR=g0(),Mae=_3(),Aae=jg();aR.exports=function(r,t){var a=jP.getFromId(r,t.xaxis||"x"),n=jP.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,v={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",v),o=n.makeCalcdata(t,"y"),s=eR(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=eR(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),m=0;m{"use strict";var kae=Hr(),Sae=Oe();function Cae(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=kae.select(this).select("text");Sae.setTransormAndDisplay(u,s)}})}}function Lae(e,r,t){if(t.uniformtext.mode){var a=iR(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Dae=Or(),Eae=wn(),oR=Oe().isArrayOrTypedArray;rs.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};rs.coerceNumber=function(e,r,t){if(Dae(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};rs.coerceColor=function(e,r,t){return Eae(r).isValid()?r:t!==void 0?t:e.dflt};rs.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};rs.getValue=function(e,r){var t;return oR(e)?r{"use strict";var Fc=Hr(),Pae=Er(),Ic=tt(),sR=Oe(),uR=br(),fR=Nc().resizeText,w3=Rc(),Rae=w3.textfont,zae=w3.insidetextfont,Nae=w3.outsidetextfont,_a=a1();function Fae(e){var r=Fc.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");fR(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Fc.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Fc.select(this),l=n[0].trace;cR(i,l,e)}),uR.getComponentMethod("errorbars","style")(r)}function cR(e,r,t){Ic.pointStyle(e.selectAll("path"),r,t),vR(e,r,t)}function vR(e,r,t){e.selectAll("text").each(function(a){var n=Fc.select(this),i=sR.ensureUniformFontSize(t,hR(n,a,r,t));Ic.font(n,i)})}function Iae(e,r,t){var a=r[0].trace;a.selectedpoints?Hae(t,a,e):(cR(t,a,e),uR.getComponentMethod("errorbars","style")(t))}function Hae(e,r,t){Ic.selectedPointStyle(e.selectAll("path"),r),Oae(e.selectAll("text"),r,t)}function Oae(e,r,t){e.each(function(a){var n=Fc.select(this),i;if(a.selected){i=sR.ensureUniformFontSize(t,hR(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),Ic.font(n,i)}else Ic.selectedTextStyle(n,r)})}function hR(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=yR(r,t);i=pR(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=mR(t,r.i,n));return i}function dR(e,r,t){return T3(Rae,e.textfont,r,t)}function pR(e,r,t,a){var n=dR(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:Pae.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),T3(zae,e.insidetextfont,r,n)}function mR(e,r,t){var a=dR(e,r,t);return T3(Nae,e.outsidetextfont,r,a)}function T3(e,r,t,a){r=r||{};var n=_a.getValue(r.family,t),i=_a.getValue(r.size,t),l=_a.getValue(r.color,t),o=_a.getValue(r.weight,t),s=_a.getValue(r.style,t),u=_a.getValue(r.variant,t),f=_a.getValue(r.textcase,t),v=_a.getValue(r.lineposition,t),h=_a.getValue(r.shadow,t);return{family:_a.coerceString(e.family,n,a.family),size:_a.coerceNumber(e.size,i,a.size),color:_a.coerceColor(e.color,l,a.color),weight:_a.coerceString(e.weight,o,a.weight),style:_a.coerceString(e.style,s,a.style),variant:_a.coerceString(e.variant,u,a.variant),textcase:_a.coerceString(e.variant,f,a.textcase),lineposition:_a.coerceString(e.variant,v,a.lineposition),shadow:_a.coerceString(e.variant,h,a.shadow)}}function yR(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}gR.exports={style:Fae,styleTextPoints:vR,styleOnSelect:Iae,getInsideTextFont:pR,getOutsideTextFont:mR,getBarColor:yR,resizeText:fR}});var SR=K((Ave,kR)=>{"use strict";var i1=Hr(),l1=Or(),fa=Oe(),Bae=ga(),Yae=Er(),Gl=tt(),Uae=br(),o1=pt().tickText,bR=Nc(),Vae=bR.recordMinTextSize,Gae=bR.clearMinTextSize,M3=n1(),Du=a1(),Wae=mc(),xR=Rc(),Xae=xR.text,Zae=xR.textposition,Jae=Ti().appendArrayPointValue,Ha=Wae.TEXTPAD;function Kae(e){return e.id}function Qae(e){if(e.ids)return Kae}function A3(e){return(e>0)-(e<0)}function Oi(e,r){return e0}function jae(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},Gae("bar",s));var f=fa.makeTraceGroups(a,t,"trace bars").each(function(v){var h=i1.select(this),d=v[0].trace,m=v[0].t,y=d.type==="waterfall",g=d.type==="funnel",_=d.type==="histogram",T=d.type==="bar",w=T||g,b=0;y&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var M=d.orientation==="h",C=wR(n),k=fa.ensureSingle(h,"g","points"),q=Qae(d),D=k.selectAll("g.point").data(fa.identity,q);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(z,F){var O=i1.select(this),I=$ae(z,l,o,M),V=I[0][0],J=I[0][1],G=I[1][0],U=I[1][1],H=(M?J-V:U-G)===0;H&&w&&Du.getLineWidth(d,z)&&(H=!1),H||(H=!l1(V)||!l1(J)||!l1(G)||!l1(U)),z.isBlank=H,H&&(M?J=V:U=G),b&&!H&&(M?(V-=Oi(V,J)*b,J+=Oi(V,J)*b):(G-=Oi(G,U)*b,U+=Oi(G,U)*b));var Q,Z;if(d.type==="waterfall"){if(!H){var ne=d[z.dir].marker;Q=ne.line.width,Z=ne.color}}else Q=Du.getLineWidth(d,z),Z=z.mc||d.marker.color;function ce(ie){var xe=i1.round(Q/2%1,2);return n.gap===0&&n.groupgap===0?i1.round(Math.round(ie)-xe,2):ie}function ye(ie,xe,Ke){return Ke&&ie===xe?ie:Math.abs(ie-xe)>=2?ce(ie):ie>xe?Math.ceil(ie):Math.floor(ie)}var Se=Yae.opacity(Z),re=Se<1||Q>.01?ce:ye;e._context.staticPlot||(V=re(V,J,M),J=re(J,V,M),G=re(G,U,!M),U=re(U,G,!M));var Ce=M?l.c2p:o.c2p,pe;z.s0>0?pe=z._sMax:z.s0<0?pe=z._sMin:pe=z.s1>0?z._sMax:z._sMin;function be(ie,xe){if(!ie)return 0;var Ke=Math.abs(M?U-G:J-V),hr=Math.abs(M?J-V:U-G),ze=re(Math.abs(Ce(pe,!0)-Ce(0,!0))),Me=z.hasB?Math.min(Ke/2,hr/2):Math.min(Ke/2,ze),ke;if(xe==="%"){var He=Math.min(50,ie);ke=Ke*(He/100)}else ke=ie;return re(Math.max(Math.min(ke,Me),0))}var Ae=T||_?be(m.cornerradiusvalue,m.cornerradiusform):0,ge,B,$="M"+V+","+G+"V"+U+"H"+J+"V"+G+"Z",Y=0;if(Ae&&z.s){var le=A3(z.s0)===0||A3(z.s)===A3(z.s0)?z.s1:z.s0;if(Y=re(z.hasB?0:Math.abs(Ce(pe,!0)-Ce(le,!0))),Y0?Math.sqrt(Y*(2*Ae-Y)):0,Ve=he>0?Math.max:Math.min;ge="M"+V+","+G+"V"+(U-Ee*me)+"H"+Ve(J-(Ae-Y)*he,V)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+J+","+(U-Ae*me-Le)+"V"+(G+Ae*me+Le)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+Ve(J-(Ae-Y)*he,V)+","+(G+Ee*me)+"Z"}else if(z.hasB)ge="M"+(V+Ae*he)+","+G+"A "+Ae+","+Ae+" 0 0 "+Re+" "+V+","+(G+Ae*me)+"V"+(U-Ae*me)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+(V+Ae*he)+","+U+"H"+(J-Ae*he)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+J+","+(U-Ae*me)+"V"+(G+Ae*me)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+(J-Ae*he)+","+G+"Z";else{B=Math.abs(U-G)+Y;var Fe=B0?Math.sqrt(Y*(2*Ae-Y)):0,De=me>0?Math.max:Math.min;ge="M"+(V+Fe*he)+","+G+"V"+De(U-(Ae-Y)*me,G)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+(V+Ae*he-Xe)+","+U+"H"+(J-Ae*he+Xe)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+(J-Fe*he)+","+De(U-(Ae-Y)*me,G)+"V"+G+"Z"}}else ge=$}else ge=$;var Ie=_R(fa.ensureSingle(O,"path"),s,n,i);if(Ie.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((J-V)*(U-G))||H&&e._context.staticPlot?"M0,0Z":ge).call(Gl.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&C){var We=Gl.makePointStyleFns(d);Gl.singlePointStyle(z,Ie,d,We,e)}ene(e,r,O,v,F,V,J,G,U,Ae,Y,n,i),r.layerClipId&&Gl.hideOutsideRangePoint(z,O.select("text"),l,o,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;Gl.setClipUrl(h,P?null:r.layerClipId,e)});Uae.getComponentMethod("errorbars","plot")(e,f,r,n)}function ene(e,r,t,a,n,i,l,o,s,u,f,v,h){var d=r.xaxis,m=r.yaxis,y=e._fullLayout,g;function _(B,$,Y){var le=fa.ensureSingle(B,"text").text($).attr({class:"bartext bartext-"+g,"text-anchor":"middle","data-notex":1}).call(Gl.font,Y).call(Bae.convertToTspans,e);return le}var T=a[0].trace,w=T.orientation==="h",b=ane(y,a,n,d,m);g=nne(T,n);var M=v.mode==="stack"||v.mode==="relative",C=a[n],k=!M||C._outmost,q=C.hasB,D=u&&u-f>Ha;if(!b||g==="none"||(C.isBlank||i===l||o===s)&&(g==="auto"||g==="inside")){t.select("text").remove();return}var P=y.font,z=M3.getBarColor(a[n],T),F=M3.getInsideTextFont(T,n,P,z),O=M3.getOutsideTextFont(T,n,P),I=T.insidetextanchor||"end",V=t.datum();w?d.type==="log"&&V.s0<=0&&(d.range[0]0&&ce>0,re;D?q?re=ts(U-2*u,H,ne,ce,w)||ts(U,H-2*u,ne,ce,w):w?re=ts(U-(u-f),H,ne,ce,w)||ts(U,H-2*(u-f),ne,ce,w):re=ts(U,H-(u-f),ne,ce,w)||ts(U-2*(u-f),H,ne,ce,w):re=ts(U,H,ne,ce,w),Se&&re?g="inside":(g="outside",Q.remove(),Q=null)}else g="inside";if(!Q){ye=fa.ensureUniformFontSize(e,g==="outside"?O:F),Q=_(t,b,ye);var Ce=Q.attr("transform");if(Q.attr("transform",""),Z=Gl.bBox(Q.node()),ne=Z.width,ce=Z.height,Q.attr("transform",Ce),ne<=0||ce<=0){Q.remove();return}}var pe=T.textangle,be,Ae;g==="outside"?(Ae=T.constraintext==="both"||T.constraintext==="outside",be=tne(i,l,o,s,Z,{isHorizontal:w,constrained:Ae,angle:pe})):(Ae=T.constraintext==="both"||T.constraintext==="inside",be=AR(i,l,o,s,Z,{isHorizontal:w,constrained:Ae,angle:pe,anchor:I,hasB:q,r:u,overhead:f})),be.fontSize=ye.size,Vae(T.type==="histogram"?"bar":T.type,be,y),C.transform=be;var ge=_R(Q,y,v,h);fa.setTransormAndDisplay(ge,be)}function ts(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function TR(e){return e==="auto"?0:e}function MR(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function AR(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",v=u==="start",h=i.leftToRight||0,d=(h+1)/2,m=1-d,y=i.hasB,g=i.r,_=i.overhead,T=n.width,w=n.height,b=Math.abs(r-e),M=Math.abs(a-t),C=b>2*Ha&&M>2*Ha?Ha:0;b-=2*C,M-=2*C;var k=TR(s);s==="auto"&&!(T<=b&&w<=M)&&(T>b||w>M)&&(!(T>M||w>b)||THa){var z=rne(e,r,t,a,q,g,_,l,y);D=z.scale,P=z.pad}else D=1,o&&(D=Math.min(1,b/q.x,M/q.y)),P=0;var F=n.left*m+n.right*d,O=(n.top+n.bottom)/2,I=(e+Ha)*m+(r-Ha)*d,V=(t+a)/2,J=0,G=0;if(v||f){var U=(l?q.x:q.y)/2;g&&(f||y)&&(C+=P);var H=l?Oi(e,r):Oi(t,a);l?v?(I=e+H*C,J=-H*U):(I=r-H*C,J=H*U):v?(V=t+H*C,G=-H*U):(V=a-H*C,G=H*U)}return{textX:F,textY:O,targetX:I,targetY:V,anchorX:J,anchorY:G,scale:D,rotate:k}}function rne(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Ha),f=Math.max(0,Math.abs(a-t)-2*Ha),v=i-Ha,h=l?v-Math.sqrt(v*v-(v-l)*(v-l)):v,d=s?v*2:o?v-l:2*h,m=s?v*2:o?2*h:v-l,y,g,_,T,w;return n.y/n.x>=f/(u-d)?T=f/n.y:n.y/n.x<=(f-m)/u?T=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,g=-2*n.x*(u-v)-n.y*(f/2-v),_=(u-v)*(u-v)+(f/2-v)*(f/2-v)-v*v,T=(-g+Math.sqrt(g*g-4*y*_))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,g=-n.x*(u/2-v)-n.y*(f/2-v),_=(u/2-v)*(u/2-v)+(f/2-v)*(f/2-v)-v*v,T=(-g+Math.sqrt(g*g-4*y*_))/(2*y)):(y=n.x*n.x/4+n.y*n.y,g=-n.x*(u/2-v)-2*n.y*(f-v),_=(u/2-v)*(u/2-v)+(f-v)*(f-v)-v*v,T=(-g+Math.sqrt(g*g-4*y*_))/(2*y)),T=Math.min(1,T),o?w=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*T)/2)*(v-(f-n.y*T)/2)))-l):w=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*T)/2)*(v-(u-n.x*T)/2)))-l),{scale:T,pad:w}}function tne(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,v=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Ha?Ha:0:d=v>2*Ha?Ha:0;var m=1;o&&(m=l?Math.min(1,h/f):Math.min(1,v/u));var y=TR(s),g=MR(n,y),_=(l?g.x:g.y)/2,T=(n.left+n.right)/2,w=(n.top+n.bottom)/2,b=(e+r)/2,M=(t+a)/2,C=0,k=0,q=l?Oi(r,e):Oi(t,a);return l?(b=r-q*d,C=q*_):(M=a+q*d,k=-q*_),{textX:T,textY:w,targetX:b,targetY:M,anchorX:C,anchorY:k,scale:m,rotate:y}}function ane(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=ine(e,r,t,a,n):i.textinfo?o=lne(r,t,a,n):o=Du.getValue(i.text,t),Du.coerceString(Xae,o)}function nne(e,r){var t=Du.getValue(e.textposition,r);return Du.coerceEnumerated(Zae,t)}function ine(e,r,t,a,n){var i=r[0].trace,l=fa.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",v,h,d,m;f?(v="y",h=n,d="x",m=a):(v="x",h=a,d="y",m=n);function y(C){return o1(h,h.c2l(C),!0).text}function g(C){return o1(m,m.c2l(C),!0).text}var _=r[t],T={};T.label=_.p,T.labelLabel=T[v+"Label"]=y(_.p);var w=fa.castOption(i,_.i,"text");(w===0||w)&&(T.text=w),T.value=_.s,T.valueLabel=T[d+"Label"]=g(_.s);var b={};Jae(b,i,_.i),(o||b.x===void 0)&&(b.x=f?T.value:T.label),(o||b.y===void 0)&&(b.y=f?T.label:T.value),(o||b.xLabel===void 0)&&(b.xLabel=f?T.valueLabel:T.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?T.labelLabel:T.valueLabel),s&&(T.delta=+_.rawS||_.s,T.deltaLabel=g(T.delta),T.final=_.v,T.finalLabel=g(T.final),T.initial=T.final-T.delta,T.initialLabel=g(T.initial)),u&&(T.value=_.s,T.valueLabel=g(T.value),T.percentInitial=_.begR,T.percentInitialLabel=fa.formatPercent(_.begR),T.percentPrevious=_.difR,T.percentPreviousLabel=fa.formatPercent(_.difR),T.percentTotal=_.sumR,T.percenTotalLabel=fa.formatPercent(_.sumR));var M=fa.castOption(i,_.i,"customdata");return M&&(T.customdata=M),fa.texttemplateString({data:[b,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:l})}function lne(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var C=i?a:t;return o1(C,M,!0).text}function u(M){var C=i?t:a;return o1(C,+M,!0).text}var f=n.textinfo,v=e[r],h=f.split("+"),d=[],m,y=function(M){return h.indexOf(M)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(m=fa.castOption(n,v.i,"text"),(m===0||m)&&d.push(m)),l){var g=+v.rawS||v.s,_=v.v,T=_-g;y("initial")&&d.push(u(T)),y("delta")&&d.push(u(g)),y("final")&&d.push(u(_))}if(o){y("value")&&d.push(u(v.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var b=w>1;y("percent initial")&&(m=fa.formatPercent(v.begR),b&&(m+=" of initial"),d.push(m)),y("percent previous")&&(m=fa.formatPercent(v.difR),b&&(m+=" of previous"),d.push(m)),y("percent total")&&(m=fa.formatPercent(v.sumR),b&&(m+=" of total"),d.push(m))}return d.join("
")}kR.exports={plot:jae,toMoveInsideBar:AR}});var ER=K((kve,DR)=>{"use strict";var Hc=ni(),one=br(),CR=Er(),sne=Oe().fillText,une=a1().getLineWidth,k3=pt().hoverLabelText,fne=Vt().BADNUM;function cne(e,r,t,a,n){var i=LR(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=qR(o,s),one.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function LR(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,v=e.maxSpikeDistance,h,d,m,y,g,_,T;l.orientation==="h"?(h=t,d=r,m="y",y="x",g=V,_=F):(h=r,d=t,m="x",y="y",_=V,g=F);var w=l[m+"period"],b=s||w;function M(re){return k(re,-1)}function C(re){return k(re,1)}function k(re,Ce){var pe=re.w;return re[m]+Ce*pe/2}function q(re){return re[m+"End"]-re[m+"Start"]}var D=s?M:w?function(re){return re.p-q(re)/2}:function(re){return Math.min(M(re),re.p-o.bardelta/2)},P=s?C:w?function(re){return re.p+q(re)/2}:function(re){return Math.max(C(re),re.p+o.bardelta/2)};function z(re,Ce,pe){return n.finiteRange&&(pe=0),Hc.inbox(re-h,Ce-h,pe+Math.min(1,Math.abs(Ce-re)/T)-1)}function F(re){return z(D(re),P(re),f)}function O(re){return z(M(re),C(re),v)}function I(re){var Ce=re[y];if(u){var pe=Math.abs(re.rawS)||0;d>0?Ce+=pe:d<0&&(Ce-=pe)}return Ce}function V(re){var Ce=d,pe=re.b,be=I(re);return Hc.inbox(pe-Ce,be-Ce,f+(be-Ce)/(be-pe)-1)}function J(re){var Ce=d,pe=re.b,be=I(re);return Hc.inbox(pe-Ce,be-Ce,v+(be-Ce)/(be-pe)-1)}var G=e[m+"a"],U=e[y+"a"];T=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function H(re){return(g(re)+_(re))/2}var Q=Hc.getDistanceFunction(a,g,_,H);if(Hc.getClosest(i,Q,e),e.index!==!1&&i[e.index].p!==fne){b||(D=function(re){return Math.min(M(re),re.p-o.bargroupwidth/2)},P=function(re){return Math.max(C(re),re.p+o.bargroupwidth/2)});var Z=e.index,ne=i[Z],ce=l.base?ne.b+ne.s:ne.s;e[y+"0"]=e[y+"1"]=U.c2p(ne[y],!0),e[y+"LabelVal"]=ce;var ye=o.extents[o.extents.round(ne.p)];e[m+"0"]=G.c2p(s?D(ne):ye[0],!0),e[m+"1"]=G.c2p(s?P(ne):ye[1],!0);var Se=ne.orig_p!==void 0;return e[m+"LabelVal"]=Se?ne.orig_p:ne.p,e.labelLabel=k3(G,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=k3(U,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=k3(U,ne.b,l[y+"hoverformat"]),e.spikeDistance=(J(ne)+O(ne))/2,e[m+"Spike"]=G.c2p(ne.p,!0),sne(ne,l,e),e.hovertemplate=l.hovertemplate,e}}function qR(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=une(e,r);if(CR.opacity(t))return t;if(CR.opacity(a)&&n)return a}DR.exports={hoverPoints:cne,hoverOnBars:LR,getTraceColor:qR}});var RR=K((Sve,PR)=>{"use strict";PR.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var NR=K((Cve,zR)=>{"use strict";zR.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";FR.exports={attributes:Rc(),layoutAttributes:x3(),supplyDefaults:zc().supplyDefaults,crossTraceDefaults:zc().crossTraceDefaults,supplyLayoutDefaults:QP(),calc:nR(),crossTraceCalc:f2().crossTraceCalc,colorbar:h2(),arraysToCalcdata:_3(),plot:SR().plot,style:n1().style,styleOnSelect:n1().styleOnSelect,hoverPoints:ER().hoverPoints,eventData:RR(),selectPoints:NR(),moduleType:"trace",name:"bar",basePlotModule:Ld(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var OR=K((qve,HR)=>{"use strict";HR.exports=IR()});var S3=K((Dve,YR)=>{"use strict";var s1=Zn(),hne=Kd().attributes,dne=ya(),pne=gi(),{hovertemplateAttrs:mne,texttemplateAttrs:yne,templatefallbackAttrs:BR}=co(),Wl=Gt().extendFlat,gne=xi().pattern,u1=dne({editType:"plot",arrayOk:!0,colorEditType:"plot"});YR.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:pne.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:gne,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Wl({},s1.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:mne({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:BR(),texttemplate:yne({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:BR({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Wl({},u1,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Wl({},u1,{}),outsidetextfont:Wl({},u1,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Wl({},s1.showlegend,{arrayOk:!0}),legend:Wl({},s1.legend,{arrayOk:!0}),legendrank:Wl({},s1.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Wl({},u1,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:hne({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var WR=K((Eve,GR)=>{"use strict";var bne=Or(),Oc=Oe(),xne=S3(),_ne=Kd().defaults,wne=zc().handleText,Tne=Oe().coercePattern;function UR(e,r){var t=Oc.isArrayOrTypedArray(e),a=Oc.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function VR(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");Tne(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function Mne(e,r,t,a){function n(T,w){return Oc.coerce(e,r,xne,T,w)}var i=n("labels"),l=n("values"),o=UR(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,VR(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var v;if(f||(v=n("textinfo",Oc.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||v&&v!=="none"){var h=n("textposition");wne(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",m=d||h==="outside";m&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else v==="none"&&n("textposition","none");_ne(r,a,n);var y=n("hole"),g=n("title.text");if(g){var _=n("title.position",y?"middle center":"top center");!y&&_==="middle center"&&(r.title.position="top center"),Oc.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}GR.exports={handleLabelsAndValues:UR,handleMarkerDefaults:VR,supplyDefaults:Mne}});var C3=K((Pve,XR)=>{"use strict";XR.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var JR=K((Rve,ZR)=>{"use strict";var Ane=Oe(),kne=C3();ZR.exports=function(r,t){function a(n,i){return Ane.coerce(r,t,kne,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var q3=K((zve,$R)=>{"use strict";var Sne=Or(),L3=wn(),Cne=Er(),Lne={};function qne(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,v;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?y:r.sort;return b&&t.sort(function(M,C){return C.v-M.v}),t[0]&&(t[0].vTotal=m),t}function KR(e){return function(t,a){return!t||(t=L3(t),!t.isValid())?!1:(t=Cne.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function Dne(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=QR(i,Lne));for(var o=0,s=0;s{"use strict";var Ene=Ti().appendArrayMultiPointValues;jR.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),Ene(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var wz=K((Fve,_z)=>{"use strict";var on=Hr(),Pne=Ft(),f1=ni(),lz=Er(),ll=tt(),wa=Oe(),Rne=wa.strScale,rz=wa.strTranslate,D3=ga(),oz=Nc(),zne=oz.recordMinTextSize,Nne=oz.clearMinTextSize,sz=mc().TEXTPAD,wr=Q0(),c1=ez(),tz=Oe().isValidTextValue;function Fne(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Nne("pie",a),cz(r,e),gz(r,n);var i=wa.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=on.select(this),s=l[0],u=s.trace;Wne(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=on.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var v=[[[],[]],[[],[]]],h=!1;f.each(function(b,M){if(b.hidden){on.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,v[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var C=s.cx,k=s.cy,q=on.select(this),D=q.selectAll("path.surface").data([b]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(uz,e,l),u.pull){var P=+wr.castOption(u.pull,b.pts)||0;P>0&&(C+=P*b.pxmid[0],k+=P*b.pxmid[1])}b.cxFinal=C,b.cyFinal=k;function z(U,H,Q,Z){var ne=Z*(H[0]-U[0]),ce=Z*(H[1]-U[1]);return"a"+Z*s.r+","+Z*s.r+" 0 "+b.largeArc+(Q?" 1 ":" 0 ")+ne+","+ce}var F=u.hole;if(b.v===s.vTotal){var O="M"+(C+b.px0[0])+","+(k+b.px0[1])+z(b.px0,b.pxmid,!0,1)+z(b.pxmid,b.px0,!0,1)+"Z";F?D.attr("d","M"+(C+F*b.px0[0])+","+(k+F*b.px0[1])+z(b.px0,b.pxmid,!1,F)+z(b.pxmid,b.px0,!1,F)+"Z"+O):D.attr("d",O)}else{var I=z(b.px0,b.px1,!0,1);if(F){var V=1-F;D.attr("d","M"+(C+F*b.px1[0])+","+(k+F*b.px1[1])+z(b.px1,b.px0,!1,F)+"l"+V*b.px0[0]+","+V*b.px0[1]+I+"Z")}else D.attr("d","M"+C+","+k+"l"+b.px0[0]+","+b.px0[1]+I+"Z")}bz(e,b,s);var J=wr.castOption(u.textposition,b.pts),G=q.selectAll("g.slicetext").data(b.text&&J!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var U=wa.ensureSingle(on.select(this),"text","",function(re){re.attr("data-notex",1)}),H=wa.ensureUniformFontSize(e,J==="outside"?Hne(u,b,a.font):fz(u,b,a.font));U.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(ll.font,H).call(D3.convertToTspans,e);var Q=ll.bBox(U.node()),Z;if(J==="outside")Z=iz(Q,b);else if(Z=vz(Q,b,s),J==="auto"&&Z.scale<1){var ne=wa.ensureUniformFontSize(e,u.outsidetextfont);U.call(ll.font,ne),Q=ll.bBox(U.node()),Z=iz(Q,b)}var ce=Z.textPosAngle,ye=ce===void 0?b.pxmid:v1(s.r,ce);if(Z.targetX=C+ye[0]*Z.rCenter+(Z.x||0),Z.targetY=k+ye[1]*Z.rCenter+(Z.y||0),xz(Z,Q),Z.outside){var Se=Z.targetY;b.yLabelMin=Se-Q.height/2,b.yLabelMid=Se,b.yLabelMax=Se+Q.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}Z.fontSize=H.size,zne(u.type,Z,a),l[M].transform=Z,wa.setTransormAndDisplay(U,Z)})});var d=on.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=wa.ensureSingle(on.select(this),"text","",function(k){k.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=wa.templateString(M,u._meta)),b.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(ll.font,u.title.font).call(D3.convertToTspans,e);var C;u.title.position==="middle center"?C=Yne(s):C=mz(s,n),b.attr("transform",rz(C.x,C.y)+Rne(Math.min(1,C.scale))+rz(C.tx,C.ty))}),h&&Vne(v,u),Ine(f,u),h&&u.automargin){var m=ll.bBox(o.node()),y=u.domain,g=n.w*(y.x[1]-y.x[0]),_=n.h*(y.y[1]-y.y[0]),T=(.5*g-s.r)/n.w,w=(.5*_-s.r)/n.h;Pne.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-T,xr:y.x[1]+T,yb:y.y[0]-w,yt:y.y[1]+w,l:Math.max(s.cx-s.r-m.left,0),r:Math.max(m.right-(s.cx+s.r),0),b:Math.max(m.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-m.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=on.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function Ine(e,r){e.each(function(t){var a=on.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,wa.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;wa.ensureSingle(a,"path","textline").call(lz.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function uz(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var v=f.hoverinfo;if(Array.isArray(v)&&(v=f1.castHoverinfo({hoverinfo:[wr.castOption(v,s.pts)],_module:l._module},u,0)),v==="all"&&(v="label+text+value+percent+name"),f.hovertemplate||v!=="none"&&v!=="skip"&&v){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),m=i+s.pxmid[1]*(1-h),y=u.separators,g=[];if(v&&v.indexOf("label")!==-1&&g.push(s.label),s.text=wr.castOption(f.hovertext||f.text,s.pts),v&&v.indexOf("text")!==-1){var _=s.text;wa.isValidTextValue(_)&&g.push(_)}s.value=s.v,s.valueLabel=wr.formatPieValue(s.v,y),v&&v.indexOf("value")!==-1&&g.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=wr.formatPiePercent(s.percent,y),v&&v.indexOf("percent")!==-1&&g.push(s.percentLabel);var T=f.hoverlabel,w=T.font,b=[];f1.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:m,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:m-h*a.r,_y1:o?i+s.BL[1]:m+h*a.r,text:g.join("
"),name:f.hovertemplate||v.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:wr.castOption(T.bgcolor,s.pts)||s.color,borderColor:wr.castOption(T.bordercolor,s.pts),fontFamily:wr.castOption(w.family,s.pts),fontSize:wr.castOption(w.size,s.pts),fontColor:wr.castOption(w.color,s.pts),nameLength:wr.castOption(T.namelength,s.pts),textAlign:wr.castOption(T.align,s.pts),hovertemplate:wr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[c1(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[c1(s,f)],event:on.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=on.select(this).datum();l._hasHoverEvent&&(s.originalEvent=on.event,r.emit("plotly_unhover",{points:[c1(v,f)],event:on.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(f1.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[c1(s,f)],f1.click(r,on.event))})}function Hne(e,r,t){var a=wr.castOption(e.outsidetextfont.color,r.pts)||wr.castOption(e.textfont.color,r.pts)||t.color,n=wr.castOption(e.outsidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.outsidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.outsidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.outsidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.outsidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.outsidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.outsidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.outsidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function fz(e,r,t){var a=wr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=wr.castOption(e._input.textfont.color,r.pts));var n=wr.castOption(e.insidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.insidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.insidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.insidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.insidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.insidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.insidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.insidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||lz.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function cz(e,r){for(var t,a,n=0;n=-4;T-=2)_(Math.PI*T,"tan");for(T=4;T>=-4;T-=2)_(Math.PI*(T+1),"tan")}if(v||d){for(T=4;T>=-4;T-=2)_(Math.PI*(T+1.5),"rad");for(T=4;T>=-4;T-=2)_(Math.PI*(T+.5),"rad")}}if(o||m||v){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(g={scale:n*a*2/w,rCenter:1-n,rotate:0},g.textPosAngle=(r.startangle+r.stopangle)/2,g.scale>=1)return g;y.push(g)}(m||d)&&(g=az(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g)),(m||h)&&(g=nz(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g));for(var b=0,M=0,C=0;C=1)break}return y[b]}function One(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Yne(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function mz(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=yz(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=Une(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=E3(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function Une(e,r){return e/(r===void 0?1:r)}function E3(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function yz(e){var r=e.pull;if(!r)return 0;var t;if(wa.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function Vne(e,r){var t,a,n,i,l,o,s,u,f,v,h,d,m;function y(w,b){return w.pxmid[1]-b.pxmid[1]}function g(w,b){return b.pxmid[1]-w.pxmid[1]}function _(w,b){b||(b={});var M=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),C=a?w.yLabelMin:w.yLabelMax,k=a?w.yLabelMax:w.yLabelMin,q=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-C,P,z,F,O,I,V;if(D*s>0&&(w.labelExtraY=D),!!wa.isArrayOrTypedArray(r.pull))for(z=0;z=(wr.castOption(r.pull,F.pts)||0))&&((w.pxmid[1]-F.pxmid[1])*s>0?(O=F.cyFinal+l(F.px0[1],F.px1[1]),D=O-C-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(k+w.labelExtraY-q)*s>0&&(P=3*o*Math.abs(z-v.indexOf(w)),I=F.cxFinal+i(F.px0[0],F.px1[0]),V=I+P-(w.cxFinal+w.pxmid[0])-w.labelExtraX,V*o>0&&(w.labelExtraX+=V)))}for(a=0;a<2;a++)for(n=a?y:g,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],v=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Bne(u,r))}function v1(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function bz(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),v=s("value"),h=s("percent"),d=a.separators,m;if(m=u?[r.label]:[],f){var y=wr.getFirstFilled(n.text,r.pts);tz(y)&&m.push(y)}v&&m.push(wr.formatPieValue(r.v,d)),h&&m.push(wr.formatPiePercent(r.v/t.vTotal,d)),r.text=m.join("
")}function g(b){return{label:b.label,value:b.v,valueLabel:wr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:wr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:wa.castOption(n,b.i,"customdata")}}if(i){var _=wa.castOption(n,r.i,"texttemplate");if(!_)r.text="";else{var T=g(r),w=wr.getFirstFilled(n.text,r.pts);(tz(w)||w==="")&&(T.text=w),r.text=wa.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:_})}}}function xz(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}_z.exports={plot:Fne,formatSliceLabel:bz,transformInsideText:vz,determineInsideTextFont:fz,positionTitleOutside:mz,prerenderTitles:cz,layoutAreas:gz,attachFxHandlers:uz,computeTransform:xz}});var Az=K((Ive,Mz)=>{"use strict";var Tz=Hr(),Xne=$0(),Zne=Nc().resizeText;Mz.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Zne(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=Tz.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){Tz.select(this).call(Xne,o,i,r)})})}});var Sz=K(Eu=>{"use strict";var kz=Ft();Eu.name="pie";Eu.plot=function(e,r,t,a){kz.plotBasePlot(Eu.name,e,r,t,a)};Eu.clean=function(e,r,t,a){kz.cleanBasePlot(Eu.name,e,r,t,a)}});var Lz=K((Ove,Cz)=>{"use strict";Cz.exports={attributes:S3(),supplyDefaults:WR().supplyDefaults,supplyLayoutDefaults:JR(),layoutAttributes:C3(),calc:q3().calc,crossTraceCalc:q3().crossTraceCalc,plot:wz().plot,style:Az(),styleOne:$0(),moduleType:"trace",name:"pie",basePlotModule:Sz(),categories:["pie-like","pie","showLegend"],meta:{}}});var Dz=K((Bve,qz)=>{"use strict";qz.exports=Lz()});var Ca=K((Yve,Pz)=>{"use strict";var Ez=Object.getOwnPropertySymbols,Jne=Object.prototype.hasOwnProperty,Kne=Object.prototype.propertyIsEnumerable;function Qne(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function $ne(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}Pz.exports=$ne()?Object.assign:function(e,r){for(var t,a=Qne(e),n,i=1;i{var d1=Ca();function Rz(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}d1(Rz.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function P3(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function h1(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}d1(P3.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Pr.local.differentCalendars||Pr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+h1(Math.abs(this.year()),4)+"-"+h1(this.month(),2)+"-"+h1(this.day(),2)}});function R3(){this.shortYearCutoff="+10"}d1(R3.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new P3(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+h1(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lv-1+f.minMonth;)i++,l-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Pr=zz.exports=new Rz;Pr.cdate=P3;Pr.baseCalendar=R3;Pr.calendars.gregorian=z3});var Nz=K(()=>{var N3=Ca(),ca=La();N3(ca.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});ca.local=ca.regionalOptions[""];N3(ca.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});N3(ca.baseCalendar.prototype,{UNIX_EPOCH:ca.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:ca.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw ca.local.invalidFormat||ca.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,M){for(var C=1;w+C1},f=function(b,M,C,k){var q=""+M;if(u(b,k))for(;q.length1},T=function(F,O){var I=_(F,O),V=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],J=new RegExp("^-?\\d{1,"+V+"}"),G=r.substring(q).match(J);if(!G)throw(ca.local.missingNumberAt||ca.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=G[0].length,parseInt(G[0],10)},w=this,b=function(){if(typeof o=="function"){_("m");var F=o.call(w,r.substring(q));return q+=F.length,F}return T("m")},M=function(F,O,I,V){for(var J=_(F,V)?I:O,G=0;G-1){h=1,d=m;for(var z=this.daysInMonth(v,h);d>z;z=this.daysInMonth(v,h))h++,d-=z}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(v){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Fz=K(()=>{var Xl=La(),jne=Ca(),F3=Xl.instance();function p1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p1.prototype=new Xl.baseCalendar;jne(p1.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(rie);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(tie);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(aie);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Xl.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Xl.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Xl.local.invalidyear),n=Jl[a-Jl[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=F3.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Zl[e-Zl[0]],a=t>>13,n=a?12:11;if(r>n)throw Xl.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Xl.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=iie(e,i,t,n);return F3.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=F3.fromJD(e),t=nie(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(eie),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(p1.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),v=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);v!==u&&o.month(v)}return o}});var eie=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,rie=/^\d?\d[iI]?/m,tie=/^闰?十?[一二三四五六七八九]?月/m,aie=/^闰?十?[一二三四五六七八九]?/m;Xl.calendars.chinese=p1;var Zl=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Jl=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function nie(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Jl[n.year-Jl[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Jl[i.year-Jl[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,y=new Date(v,h-1,d),g=new Date(n.year,n.month-1,n.day);m=Math.round((g-y)/(24*3600*1e3));var _=Zl[i.year-Zl[0]],T;for(T=0;T<13;T++){var w=_&1<<12-T?30:29;if(m>13;return!b||T=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var v;v=l.day-1;var h=Zl[l.year-Zl[0]],d=h>>13,m;d&&(l.month>d||l.isIntercalary)?m=l.month:m=l.month-1;for(var y=0;y>9&4095,w=_>>5&15,b=_&31,M=new Date(T,w-1,b+v);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var Iz=K(()=>{var as=La(),lie=Ca();function I3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I3.prototype=new as.baseCalendar;lie(I3.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,as.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,as.local.invalidYear||as.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,as.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,as.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});as.calendars.coptic=I3});var Hz=K(()=>{var ol=La(),oie=Ca();function H3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H3.prototype=new ol.baseCalendar;oie(H3.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ol.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ol.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ol.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ol.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ol.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ol.local.invalidDate);return{century:sie[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,ol.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var sie={20:"Fruitbat",21:"Anchovy"};ol.calendars.discworld=H3});var Oz=K(()=>{var ns=La(),uie=Ca();function O3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O3.prototype=new ns.baseCalendar;uie(O3.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ns.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ns.local.invalidYear||ns.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ns.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,ns.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});ns.calendars.ethiopian=O3});var Bz=K(()=>{var Kl=La(),fie=Ca();function B3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B3.prototype=new Kl.baseCalendar;fie(B3.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,m1(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Kl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&m1(this.daysInYear(e),10)===5?30:r===9&&m1(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Kl.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Kl.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function m1(e,r){return e-r*Math.floor(e/r)}Kl.calendars.hebrew=B3});var Yz=K(()=>{var Bc=La(),cie=Ca();function Y3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y3.prototype=new Bc.baseCalendar;cie(Y3.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Bc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Bc.calendars.islamic=Y3});var Uz=K(()=>{var Yc=La(),vie=Ca();function U3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U3.prototype=new Yc.baseCalendar;vie(U3.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Yc.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Yc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Yc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});Yc.calendars.julian=U3});var Gz=K(()=>{var Yn=La(),hie=Ca();function G3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G3.prototype=new Yn.baseCalendar;hie(G3.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yn.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yn.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yn.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Yn.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yn.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Yn.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Yn.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Yn.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Yn.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=V3(e+8+17*20,365);return[Math.floor(r/20)+1,V3(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Vz(e+20,20),Vz(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Yn.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function V3(e,r){return e-r*Math.floor(e/r)}function Vz(e,r){return V3(e-1,r)+1}Yn.calendars.mayan=G3});var Xz=K(()=>{var is=La(),die=Ca();function W3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W3.prototype=new is.baseCalendar;var Wz=is.instance("gregorian");die(W3.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,is.local.invalidYear||is.regionalOptions[""].invalidYear);return Wz.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,is.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,is.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});is.calendars.nanakshahi=W3});var Zz=K(()=>{var ls=La(),pie=Ca();function X3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X3.prototype=new ls.baseCalendar;pie(X3.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,ls.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=ls.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=ls.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Pu=La(),mie=Ca();function g1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function y1(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}g1.prototype=new Pu.baseCalendar;mie(g1.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pu.local.invalidYear);return y1(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Pu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Pu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,y1(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Pu.calendars.persian=g1;Pu.calendars.jalali=g1});var Kz=K(()=>{var os=La(),yie=Ca(),b1=os.instance();function Z3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z3.prototype=new os.baseCalendar;yie(Z3.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,os.local.invalidYear),t=this._t2gYear(r.year());return b1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,os.local.invalidYear),n=this._t2gYear(a.year());return b1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,os.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,os.local.invalidDate),n=this._t2gYear(a.year());return b1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=b1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});os.calendars.taiwan=Z3});var Qz=K(()=>{var ss=La(),gie=Ca(),x1=ss.instance();function J3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J3.prototype=new ss.baseCalendar;gie(J3.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ss.local.invalidYear),t=this._t2gYear(r.year());return x1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ss.local.invalidYear),n=this._t2gYear(a.year());return x1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ss.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,ss.local.invalidDate),n=this._t2gYear(a.year());return x1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=x1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});ss.calendars.thai=J3});var $z=K(()=>{var us=La(),bie=Ca();function K3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K3.prototype=new us.baseCalendar;bie(K3.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,us.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,us.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ql[n]-Ql[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,us.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ql[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Ql[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=us.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=us.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});us.calendars.ummalqura=K3;var Ql=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var eN=K((x0e,jz)=>{"use strict";jz.exports=La();Nz();Fz();Iz();Hz();Oz();Bz();Yz();Uz();Gz();Xz();Zz();Jz();Kz();Qz();$z()});var oN=K((_0e,lN)=>{"use strict";var tN=eN(),Uc=Oe(),aN=Vt(),xie=aN.EPOCHJD,_ie=aN.ONEDAY,j3={valType:"enumerated",values:Uc.sortObjectKeys(tN.calendars),editType:"calc",dflt:"gregorian"},nN=function(e,r,t,a){var n={};return n[t]=j3,Uc.coerce(e,r,n,t,a)},wie=function(e,r,t,a){for(var n=0;n{"use strict";sN.exports=oN()});var Cie=K((T0e,cN)=>{var fN=PP();fN.register([OR(),Dz(),uN()]);cN.exports=fN});return Cie();})(); +"use strict";var Plotly=(()=>{var dI=Object.defineProperty,pI=Object.defineProperties;var mI=Object.getOwnPropertyDescriptors;var yb=Object.getOwnPropertySymbols;var yI=Object.prototype.hasOwnProperty,gI=Object.prototype.propertyIsEnumerable;var gb=(e,r,t)=>r in e?dI(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,io=(e,r)=>{for(var t in r||(r={}))yI.call(r,t)&&gb(e,t,r[t]);if(yb)for(var t of yb(r))gI.call(r,t)&&gb(e,t,r[t]);return e},gv=(e,r)=>pI(e,mI(r));var K=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var Zu=K(bb=>{"use strict";bb.version="3.7.0"});var _b=K((xb,bv)=>{(function(r,t,a){t[r]=t[r]||a(),typeof bv!="undefined"&&bv.exports&&(bv.exports=t[r])})("Promise",typeof window!="undefined"?window:xb,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,w,b,M){return Object.defineProperty(T,w,{value:b,writable:!0,configurable:M!==!1})}}catch(_){r=function(w,b,M){return w[b]=M,w}}a=(function(){var T,w,b;function M(S,k){this.fn=S,this.self=k,this.next=void 0}return{add:function(k,q){b=new M(k,q),w?w.next=b:T=b,w=b,b=void 0},drain:function(){var k=T;for(T=w=t=void 0;k;)k.fn.call(k.self),k=k.next}}})();function l(_,T){a.add(_,T),t||(t=i(a.drain))}function o(_){var T,w=typeof _;return _!=null&&(w=="object"||w=="function")&&(T=_.then),typeof T=="function"?T:!1}function s(){for(var _=0;_0&&l(s,w))}catch(b){v.call(new d(w),b)}}}function v(_){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=_,T.state=2,T.chain.length>0&&l(s,T))}function h(_,T,w,b){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},a=self.document;function n(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(c){t=function(p){for(var x=p.length,A=new Array(x);x--;)A[x]=p[x];return A}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(p,x){o.call(this,p,x+"")},l.setAttributeNS=function(p,x,A){s.call(this,p,x,A+"")},u.setProperty=function(p,x,A){f.call(this,p,x+"",A)}}e.ascending=v;function v(c,p){return cp?1:c>=p?0:NaN}e.descending=function(c,p){return pc?1:p>=c?0:NaN},e.min=function(c,p){var x=-1,A=c.length,C,L;if(arguments.length===1){for(;++x=L){C=L;break}for(;++xL&&(C=L)}else{for(;++x=L){C=L;break}for(;++xL&&(C=L)}return C},e.max=function(c,p){var x=-1,A=c.length,C,L;if(arguments.length===1){for(;++x=L){C=L;break}for(;++xC&&(C=L)}else{for(;++x=L){C=L;break}for(;++xC&&(C=L)}return C},e.extent=function(c,p){var x=-1,A=c.length,C,L,R;if(arguments.length===1){for(;++x=L){C=R=L;break}for(;++xL&&(C=L),R=L){C=R=L;break}for(;++xL&&(C=L),R1)return R/(N-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(p,x,A,C){for(arguments.length<3&&(A=0),arguments.length<4&&(C=p.length);A>>1;c(p[L],x)<0?A=L+1:C=L}return A},right:function(p,x,A,C){for(arguments.length<3&&(A=0),arguments.length<4&&(C=p.length);A>>1;c(p[L],x)>0?C=L:A=L+1}return A}}}var y=m(v);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(c){return m(c.length===1?function(p,x){return v(c(p),x)}:c)},e.shuffle=function(c,p,x){(A=arguments.length)<3&&(x=c.length,A<2&&(p=0));for(var A=x-p,C,L;A;)L=Math.random()*A--|0,C=c[A+p],c[A+p]=c[L+p],c[L+p]=C;return c},e.permute=function(c,p){for(var x=p.length,A=new Array(x);x--;)A[x]=c[p[x]];return A},e.pairs=function(c){for(var p=0,x=c.length-1,A,C=c[0],L=new Array(x<0?0:x);p=0;)for(R=c[p],x=R.length;--x>=0;)L[--C]=R[x];return L};var _=Math.abs;e.range=function(c,p,x){if(arguments.length<3&&(x=1,arguments.length<2&&(p=c,c=0)),(p-c)/x===1/0)throw new Error("infinite range");var A=[],C=T(_(x)),L=-1,R;if(c*=C,p*=C,x*=C,x<0)for(;(R=c+x*++L)>p;)A.push(R/C);else for(;(R=c+x*++L)=p.length)return C?C.call(c,N):A?N.sort(A):N;for(var X=-1,j=N.length,ee=p[W++],de,we,te,se=new b,ue;++X=p.length)return E;var W=[],X=x[N++];return E.forEach(function(j,ee){W.push({key:j,values:R(ee,N)})}),X?W.sort(function(j,ee){return X(j.key,ee.key)}):W}return c.map=function(E,N){return L(N,E,0)},c.entries=function(E){return R(L(e.map,E,0),0)},c.key=function(E){return p.push(E),c},c.sortKeys=function(E){return x[p.length-1]=E,c},c.sortValues=function(E){return A=E,c},c.rollup=function(E){return C=E,c},c},e.set=function(c){var p=new I;if(c)for(var x=0,A=c.length;x=0&&(A=c.slice(x+1),c=c.slice(0,x)),c)return arguments.length<2?this[c].on(A):this[c].on(A,p);if(arguments.length===2){if(p==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(A,null);return this}};function Z(c){var p=[],x=new b;function A(){for(var C=p,L=-1,R=C.length,E;++L=0&&(x=c.slice(0,p))!=="xmlns"&&(c=c.slice(p+1)),le.hasOwnProperty(x)?{space:le[x],local:c}:c}},ge.attr=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node();return c=e.ns.qualify(c),c.local?x.getAttributeNS(c.space,c.local):x.getAttribute(c)}for(p in c)this.each(he(p,c[p]));return this}return this.each(he(c,p))};function he(c,p){c=e.ns.qualify(c);function x(){this.removeAttribute(c)}function A(){this.removeAttributeNS(c.space,c.local)}function C(){this.setAttribute(c,p)}function L(){this.setAttributeNS(c.space,c.local,p)}function R(){var N=p.apply(this,arguments);N==null?this.removeAttribute(c):this.setAttribute(c,N)}function E(){var N=p.apply(this,arguments);N==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,N)}return p==null?c.local?A:x:typeof p=="function"?c.local?E:R:c.local?L:C}function me(c){return c.trim().replace(/\s+/g," ")}ge.classed=function(c,p){if(arguments.length<2){if(typeof c=="string"){var x=this.node(),A=(c=Ee(c)).length,C=-1;if(p=x.classList){for(;++C=0;)(L=x[A])&&(C&&C!==L.nextSibling&&C.parentNode.insertBefore(L,C),C=L);return this},ge.sort=function(c){c=xe.apply(this,arguments);for(var p=-1,x=this.length;++p=p&&(p=C+1);!(N=R[p])&&++p0&&(c=c.slice(0,C));var R=Oe.get(c);R&&(c=R,L=Ue);function E(){var X=this[A];X&&(this.removeEventListener(c,X,X.$),delete this[A])}function N(){var X=L(p,t(arguments));E.call(this),this.addEventListener(c,this[A]=X,X.$=x),X._=p}function W(){var X=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),j;for(var ee in this)if(j=ee.match(X)){var de=this[ee];this.removeEventListener(j[1],de,de.$),delete this[ee]}}return C?p?N:E:p?H:W}var Oe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Oe.forEach(function(c){"on"+c in a&&Oe.remove(c)});function Ze(c,p){return function(x){var A=e.event;e.event=x,p[0]=this.__data__;try{c.apply(this,p)}finally{e.event=A}}}function Ue(c,p){var x=Ze(c,p);return function(A){var C=this,L=A.relatedTarget;(!L||L!==C&&!(L.compareDocumentPosition(C)&8))&&x.call(C,A)}}var Ge,ir=0;function ar(c){var p=".dragsuppress-"+ ++ir,x="click"+p,A=e.select(i(c)).on("touchmove"+p,ne).on("dragstart"+p,ne).on("selectstart"+p,ne);if(Ge==null&&(Ge="onselectstart"in c?!1:G(c.style,"userSelect")),Ge){var C=n(c).style,L=C[Ge];C[Ge]="none"}return function(R){if(A.on(p,null),Ge&&(C[Ge]=L),R){var E=function(){A.on(x,null)};A.on(x,function(){ne(),E()},!0),setTimeout(E,0)}}}e.mouse=function(c){return Ne(c,ce())};var er=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ne(c,p){p.changedTouches&&(p=p.changedTouches[0]);var x=c.ownerSVGElement||c;if(x.createSVGPoint){var A=x.createSVGPoint();if(er<0){var C=i(c);if(C.scrollX||C.scrollY){x=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=x[0][0].getScreenCTM();er=!(L.f||L.e),x.remove()}}return er?(A.x=p.pageX,A.y=p.pageY):(A.x=p.clientX,A.y=p.clientY),A=A.matrixTransform(c.getScreenCTM().inverse()),[A.x,A.y]}var R=c.getBoundingClientRect();return[p.clientX-R.left-c.clientLeft,p.clientY-R.top-c.clientTop]}e.touch=function(c,p,x){if(arguments.length<3&&(x=p,p=ce().changedTouches),p){for(var A=0,C=p.length,L;A0?1:c<0?-1:0}function lt(c,p,x){return(p[0]-c[0])*(x[1]-c[1])-(p[1]-c[1])*(x[0]-c[0])}function _t(c){return c>1?0:c<-1?Pe:Math.acos(c)}function gt(c){return c>1?sr:c<-1?-sr:Math.asin(c)}function Yt(c){return((c=Math.exp(c))-1/c)/2}function zt(c){return((c=Math.exp(c))+1/c)/2}function Ba(c){return((c=Math.exp(2*c))-1)/(c+1)}function ha(c){return(c=Math.sin(c/2))*c}var na=Math.SQRT2,Ya=2,ia=4;e.interpolateZoom=function(c,p){var x=c[0],A=c[1],C=c[2],L=p[0],R=p[1],E=p[2],N=L-x,W=R-A,X=N*N+W*W,j,ee;if(X0&&(rr=rr.transition().duration(R)),rr.call(Te.event)}function dr(){se&&se.domain(te.range().map(function(rr){return(rr-c.x)/c.k}).map(te.invert)),_e&&_e.domain(ue.range().map(function(rr){return(rr-c.y)/c.k}).map(ue.invert))}function pr(rr){E++||rr({type:"zoomstart"})}function Sr(rr){dr(),rr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function mr(rr){--E||(rr({type:"zoomend"}),x=null)}function Tr(){var rr=this,Lr=we.of(rr,arguments),qr=0,Qr=e.select(i(rr)).on(W,ma).on(X,Ea),wt=ve(e.mouse(rr)),Vt=ar(rr);dv.call(rr),pr(Lr);function ma(){qr=1,fr(e.mouse(rr),wt),Sr(Lr)}function Ea(){Qr.on(W,null).on(X,null),Vt(qr),mr(Lr)}}function Kr(){var rr=this,Lr=we.of(rr,arguments),qr={},Qr=0,wt,Vt=".zoom-"+e.event.changedTouches[0].identifier,ma="touchmove"+Vt,Ea="touchend"+Vt,Ua=[],Pa=e.select(rr),Za=ar(rr);Ja(),pr(Lr),Pa.on(N,null).on(ee,Ja);function Ma(){var Wn=e.touches(rr);return wt=c.k,Wn.forEach(function(ya){ya.identifier in qr&&(qr[ya.identifier]=ve(ya))}),Wn}function Ja(){var Wn=e.event.target;e.select(Wn).on(ma,ao).on(Ea,hI),Ua.push(Wn);for(var ya=e.event.changedTouches,xn=0,yi=ya.length;xn1){var no=_n[0],fl=_n[1],yv=no[0]-fl[0],mb=no[1]-fl[1];Qr=yv*yv+mb*mb}}function ao(){var Wn=e.touches(rr),ya,xn,yi,_n;dv.call(rr);for(var bs=0,no=Wn.length;bs1?1:p,x=x<0?0:x>1?1:x,C=x<=.5?x*(1+p):x+p-x*p,A=2*x-C;function L(E){return E>360?E-=360:E<0&&(E+=360),E<60?A+(C-A)*E/60:E<180?C:E<240?A+(C-A)*(240-E)/60:A}function R(E){return Math.round(L(E)*255)}return new Da(R(c+120),R(c),R(c-120))}e.hcl=at;function at(c,p,x){return this instanceof at?(this.h=+c,this.c=+p,void(this.l=+x)):arguments.length<2?c instanceof at?new at(c.h,c.c,c.l):c instanceof Kt?Xc(c.l,c.a,c.b):Xc((c=or((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new at(c,p,x)}var Xa=at.prototype=new Xr;Xa.brighter=function(c){return new at(this.h,this.c,Math.min(100,this.l+vt*(arguments.length?c:1)))},Xa.darker=function(c){return new at(this.h,this.c,Math.max(0,this.l-vt*(arguments.length?c:1)))},Xa.rgb=function(){return Un(this.h,this.c,this.l).rgb()};function Un(c,p,x){return isNaN(c)&&(c=0),isNaN(p)&&(p=0),new Kt(x,Math.cos(c*=Mr)*p,Math.sin(c)*p)}e.lab=Kt;function Kt(c,p,x){return this instanceof Kt?(this.l=+c,this.a=+p,void(this.b=+x)):arguments.length<2?c instanceof Kt?new Kt(c.l,c.a,c.b):c instanceof at?Un(c.h,c.c,c.l):or((c=Da(c)).r,c.g,c.b):new Kt(c,p,x)}var vt=18,Nt=.95047,Ft=1,$l=1.08883,sl=Kt.prototype=new Xr;sl.brighter=function(c){return new Kt(Math.min(100,this.l+vt*(arguments.length?c:1)),this.a,this.b)},sl.darker=function(c){return new Kt(Math.max(0,this.l-vt*(arguments.length?c:1)),this.a,this.b)},sl.rgb=function(){return Wc(this.l,this.a,this.b)};function Wc(c,p,x){var A=(c+16)/116,C=A+p/500,L=A-x/200;return C=Nu(C)*Nt,A=Nu(A)*Ft,L=Nu(L)*$l,new Da(Iu(3.2404542*C-1.5371385*A-.4985314*L),Iu(-.969266*C+1.8760108*A+.041556*L),Iu(.0556434*C-.2040259*A+1.0572252*L))}function Xc(c,p,x){return c>0?new at(Math.atan2(x,p)*Ir,Math.sqrt(p*p+x*x),c):new at(NaN,NaN,c)}function Nu(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function Fu(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Iu(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Da;function Da(c,p,x){return this instanceof Da?(this.r=~~c,this.g=~~p,void(this.b=~~x)):arguments.length<2?c instanceof Da?new Da(c.r,c.g,c.b):Gr(""+c,Da,sa):new Da(c,p,x)}function Zc(c){return new Da(c>>16,c>>8&255,c&255)}function cs(c){return Zc(c)+""}var vs=Da.prototype=new Xr;vs.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var p=this.r,x=this.g,A=this.b,C=30;return!p&&!x&&!A?new Da(C,C,C):(p&&p>4,A=A>>4|A,C=N&240,C=C>>4|C,L=N&15,L=L<<4|L):c.length===7&&(A=(N&16711680)>>16,C=(N&65280)>>8,L=N&255)),p(A,C,L))}function $r(c,p,x){var A=Math.min(c/=255,p/=255,x/=255),C=Math.max(c,p,x),L=C-A,R,E,N=(C+A)/2;return L?(E=N<.5?L/(C+A):L/(2-C-A),c==C?R=(p-x)/L+(p0&&N<1?0:R),new nt(R,E,N)}function or(c,p,x){c=da(c),p=da(p),x=da(x);var A=Fu((.4124564*c+.3575761*p+.1804375*x)/Nt),C=Fu((.2126729*c+.7151522*p+.072175*x)/Ft),L=Fu((.0193339*c+.119192*p+.9503041*x)/$l);return Kt(116*C-16,500*(A-C),200*(C-L))}function da(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function st(c){var p=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(p*2.55):p}var pa=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});pa.forEach(function(c,p){pa.set(c,Zc(p))});function Rr(c){return typeof c=="function"?c:function(){return c}}e.functor=Rr,e.xhr=Vn(V);function Vn(c){return function(p,x,A){return arguments.length===2&&typeof x=="function"&&(A=x,x=null),jl(p,x,c,A)}}function jl(c,p,x,A){var C={},L=e.dispatch("beforesend","progress","load","error"),R={},E=new XMLHttpRequest,N=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(c)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=W:E.onreadystatechange=function(){E.readyState>3&&W()};function W(){var X=E.status,j;if(!X&&pN(E)||X>=200&&X<300||X===304){try{j=x.call(C,E)}catch(ee){L.error.call(C,ee);return}L.load.call(C,j)}else L.error.call(C,E)}return E.onprogress=function(X){var j=e.event;e.event=X;try{L.progress.call(C,E)}finally{e.event=j}},C.header=function(X,j){return X=(X+"").toLowerCase(),arguments.length<2?R[X]:(j==null?delete R[X]:R[X]=j+"",C)},C.mimeType=function(X){return arguments.length?(p=X==null?null:X+"",C):p},C.responseType=function(X){return arguments.length?(N=X,C):N},C.response=function(X){return x=X,C},["get","post"].forEach(function(X){C[X]=function(){return C.send.apply(C,[X].concat(t(arguments)))}}),C.send=function(X,j,ee){if(arguments.length===2&&typeof j=="function"&&(ee=j,j=null),E.open(X,c,!0),p!=null&&!("accept"in R)&&(R.accept=p+",*/*"),E.setRequestHeader)for(var de in R)E.setRequestHeader(de,R[de]);return p!=null&&E.overrideMimeType&&E.overrideMimeType(p),N!=null&&(E.responseType=N),ee!=null&&C.on("error",ee).on("load",function(we){ee(null,we)}),L.beforesend.call(C,E),E.send(j==null?null:j),C},C.abort=function(){return E.abort(),C},e.rebind(C,L,"on"),A==null?C:C.get(dN(A))}function dN(c){return c.length===1?function(p,x){c(p==null?x:null)}:c}function pN(c){var p=c.responseType;return p&&p!=="text"?c.response:c.responseText}e.dsv=function(c,p){var x=new RegExp('["'+c+` +]`),A=c.charCodeAt(0);function C(W,X,j){arguments.length<3&&(j=X,X=null);var ee=jl(W,p,X==null?L:R(X),j);return ee.row=function(de){return arguments.length?ee.response((X=de)==null?L:R(de)):X},ee}function L(W){return C.parse(W.responseText)}function R(W){return function(X){return C.parse(X.responseText,W)}}C.parse=function(W,X){var j;return C.parseRows(W,function(ee,de){if(j)return j(ee,de-1);var we=function(te){for(var se={},ue=ee.length,_e=0;_e=we)return ee;if(_e)return _e=!1,j;var Ye=te;if(W.charCodeAt(Ye)===34){for(var nr=Ye;nr++24?(isFinite(p)&&(clearTimeout($c),$c=setTimeout(T1,p)),Qc=0):(Qc=1,t5(T1))}e.timer.flush=function(){a5(),n5()};function a5(){for(var c=Date.now(),p=Jc;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function n5(){for(var c,p=Jc,x=1/0;p;)p.c?(p.t=0;--E)te.push(C[W[j[E]][2]]);for(E=+de;E1&<(c[x[A-2]],c[x[A-1]],c[C])<=0;)--A;x[A++]=C}return x.slice(0,A)}function mN(c,p){return c[0]-p[0]||c[1]-p[1]}e.geom.polygon=function(c){return re(c,ev),c};var ev=e.geom.polygon.prototype=[];ev.area=function(){for(var c=-1,p=this.length,x,A=this[p-1],C=0;++coe)E=E.L;else if(R=p-xN(E,x),R>oe){if(!E.R){A=E;break}E=E.R}else{L>-oe?(A=E.P,C=E):R>-oe?(A=E,C=E.N):A=C=E;break}var N=u5(c);if(ps.insert(A,N),!(!A&&!C)){if(A===C){ys(A),C=u5(A.site),ps.insert(N,C),N.edge=C.edge=Bu(A.site,N.site),ms(A),ms(C);return}if(!C){N.edge=Bu(A.site,N.site);return}ys(A),ys(C);var W=A.site,X=W.x,j=W.y,ee=c.x-X,de=c.y-j,we=C.site,te=we.x-X,se=we.y-j,ue=2*(ee*se-de*te),_e=ee*ee+de*de,Te=te*te+se*se,ve={x:(se*_e-de*Te)/ue+X,y:(ee*Te-te*_e)/ue+j};rv(C.edge,W,we,ve),N.edge=Bu(W,c,null,ve),C.edge=Bu(c,we,null,ve),ms(A),ms(C)}}function f5(c,p){var x=c.site,A=x.x,C=x.y,L=C-p;if(!L)return A;var R=c.P;if(!R)return-1/0;x=R.site;var E=x.x,N=x.y,W=N-p;if(!W)return E;var X=E-A,j=1/L-1/W,ee=X/W;return j?(-ee+Math.sqrt(ee*ee-2*j*(X*X/(-2*W)-N+W/2+C-L/2)))/j+A:(A+E)/2}function xN(c,p){var x=c.N;if(x)return f5(x,p);var A=c.site;return A.y===p?A.x:1/0}function c5(c){this.site=c,this.edges=[]}c5.prototype.prepare=function(){for(var c=this.edges,p=c.length,x;p--;)x=c[p].edge,(!x.b||!x.a)&&c.splice(p,1);return c.sort(v5),c.length};function _N(c){for(var p=c[0][0],x=c[1][0],A=c[0][1],C=c[1][1],L,R,E,N,W=eo,X=W.length,j,ee,de,we,te,se;X--;)if(j=W[X],!(!j||!j.prepare()))for(de=j.edges,we=de.length,ee=0;eeoe||_(N-R)>oe)&&(de.splice(ee,0,new tv(kN(j.site,se,_(E-p)oe?{x:p,y:_(L-p)oe?{x:_(R-C)oe?{x,y:_(L-x)oe?{x:_(R-A)=-qe)){var ee=N*N+W*W,de=X*X+se*se,we=(se*ee-W*de)/j,te=(N*de-X*ee)/j,se=te+E,ue=s5.pop()||new wN;ue.arc=c,ue.site=C,ue.x=we+R,ue.y=se+Math.sqrt(we*we+te*te),ue.cy=se,c.circle=ue;for(var _e=null,Te=Ou._;Te;)if(ue.y0)){if(te/=de,de<0){if(te0){if(te>ee)return;te>j&&(j=te)}if(te=x-E,!(!de&&te<0)){if(te/=de,de<0){if(te>ee)return;te>j&&(j=te)}else if(de>0){if(te0)){if(te/=we,we<0){if(te0){if(te>ee)return;te>j&&(j=te)}if(te=A-N,!(!we&&te<0)){if(te/=we,we<0){if(te>ee)return;te>j&&(j=te)}else if(we>0){if(te0&&(C.a={x:E+j*de,y:N+j*we}),ee<1&&(C.b={x:E+ee*de,y:N+ee*we}),C}}}}}}function MN(c){for(var p=ds,x=TN(c[0][0],c[0][1],c[1][0],c[1][1]),A=p.length,C;A--;)C=p[A],(!AN(C,c)||!x(C)||_(C.a.x-C.b.x)=L)return;if(X>ee){if(!A)A={x:we,y:R};else if(A.y>=E)return;x={x:we,y:E}}else{if(!A)A={x:we,y:E};else if(A.y1)if(X>ee){if(!A)A={x:(R-ue)/se,y:R};else if(A.y>=E)return;x={x:(E-ue)/se,y:E}}else{if(!A)A={x:(E-ue)/se,y:E};else if(A.y=L)return;x={x:L,y:se*L+ue}}else{if(!A)A={x:L,y:se*L+ue};else if(A.x=X&&ue.x<=ee&&ue.y>=j&&ue.y<=de?[[X,de],[ee,de],[ee,j],[X,j]]:[];_e.point=N[te]}),W}function E(N){return N.map(function(W,X){return{x:Math.round(A(W,X)/oe)*oe,y:Math.round(C(W,X)/oe)*oe,i:X}})}return R.links=function(N){return L1(E(N)).edges.filter(function(W){return W.l&&W.r}).map(function(W){return{source:N[W.l.i],target:N[W.r.i]}})},R.triangles=function(N){var W=[];return L1(E(N)).cells.forEach(function(X,j){for(var ee=X.site,de=X.edges.sort(v5),we=-1,te=de.length,se,ue,_e=de[te-1].edge,Te=_e.l===ee?_e.r:_e.l;++weTe&&(Te=X.x),X.y>ve&&(ve=X.y),de.push(X.x),we.push(X.y);else for(te=0;teTe&&(Te=Ye),nr>ve&&(ve=nr),de.push(Ye),we.push(nr)}var fr=Te-ue,lr=ve-_e;fr>lr?ve=_e+fr:Te=ue+lr;function dr(mr,Tr,Kr,St,et,rr,Lr,qr){if(!(isNaN(Kr)||isNaN(St)))if(mr.leaf){var Qr=mr.x,wt=mr.y;if(Qr!=null)if(_(Qr-Kr)+_(wt-St)<.01)pr(mr,Tr,Kr,St,et,rr,Lr,qr);else{var Vt=mr.point;mr.x=mr.y=mr.point=null,pr(mr,Vt,Qr,wt,et,rr,Lr,qr),pr(mr,Tr,Kr,St,et,rr,Lr,qr)}else mr.x=Kr,mr.y=St,mr.point=Tr}else pr(mr,Tr,Kr,St,et,rr,Lr,qr)}function pr(mr,Tr,Kr,St,et,rr,Lr,qr){var Qr=(et+Lr)*.5,wt=(rr+qr)*.5,Vt=Kr>=Qr,ma=St>=wt,Ea=ma<<1|Vt;mr.leaf=!1,mr=mr.nodes[Ea]||(mr.nodes[Ea]=p5()),Vt?et=Qr:Lr=Qr,ma?rr=wt:qr=wt,dr(mr,Tr,Kr,St,et,rr,Lr,qr)}var Sr=p5();if(Sr.add=function(mr){dr(Sr,mr,+j(mr,++te),+ee(mr,te),ue,_e,Te,ve)},Sr.visit=function(mr){Vu(mr,Sr,ue,_e,Te,ve)},Sr.find=function(mr){return DN(Sr,mr[0],mr[1],ue,_e,Te,ve)},te=-1,p==null){for(;++teL||ee>R||de=Ye,lr=x>=nr,dr=lr<<1|fr,pr=dr+4;drx&&(L=p.slice(x,L),E[R]?E[R]+=L:E[++R]=L),(A=A[0])===(C=C[0])?E[R]?E[R]+=C:E[++R]=C:(E[++R]=null,N.push({i:R,x:Yi(A,C)})),x=E1.lastIndex;return x=0&&!(A=e.interpolators[x](c,p)););return A}e.interpolators=[function(c,p){var x=typeof p;return(x==="string"?pa.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?q1:y5:p instanceof Xr?q1:Array.isArray(p)?iv:x==="object"&&isNaN(p)?m5:Yi)(c,p)}],e.interpolateArray=iv;function iv(c,p){var x=[],A=[],C=c.length,L=p.length,R=Math.min(c.length,p.length),E;for(E=0;E=0?c.slice(0,p):c,A=p>=0?c.slice(p+1):"in";return x=EN.get(x)||g5,A=PN.get(A)||V,RN(A(x.apply(null,r.call(arguments,1))))};function RN(c){return function(p){return p<=0?0:p>=1?1:c(p)}}function b5(c){return function(p){return 1-c(1-p)}}function x5(c){return function(p){return .5*(p<.5?c(2*p):2-c(2-2*p))}}function zN(c){return c*c}function NN(c){return c*c*c}function FN(c){if(c<=0)return 0;if(c>=1)return 1;var p=c*c,x=p*c;return 4*(c<.5?x:3*(c-p)+x-.75)}function IN(c){return function(p){return Math.pow(p,c)}}function HN(c){return 1-Math.cos(c*sr)}function ON(c){return Math.pow(2,10*(c-1))}function BN(c){return 1-Math.sqrt(1-c*c)}function YN(c,p){var x;return arguments.length<2&&(p=.45),arguments.length?x=p/$e*Math.asin(1/c):(c=1,x=p/4),function(A){return 1+c*Math.pow(2,-10*A)*Math.sin((A-x)*$e/p)}}function UN(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function VN(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=GN;function GN(c,p){c=e.hcl(c),p=e.hcl(p);var x=c.h,A=c.c,C=c.l,L=p.h-x,R=p.c-A,E=p.l-C;return isNaN(R)&&(R=0,A=isNaN(A)?p.c:A),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return Un(x+L*N,A+R*N,C+E*N)+""}}e.interpolateHsl=WN;function WN(c,p){c=e.hsl(c),p=e.hsl(p);var x=c.h,A=c.s,C=c.l,L=p.h-x,R=p.s-A,E=p.l-C;return isNaN(R)&&(R=0,A=isNaN(A)?p.s:A),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return sa(x+L*N,A+R*N,C+E*N)+""}}e.interpolateLab=XN;function XN(c,p){c=e.lab(c),p=e.lab(p);var x=c.l,A=c.a,C=c.b,L=p.l-x,R=p.a-A,E=p.b-C;return function(N){return Wc(x+L*N,A+R*N,C+E*N)+""}}e.interpolateRound=_5;function _5(c,p){return p-=c,function(x){return Math.round(c+p*x)}}e.transform=function(c){var p=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(x){if(x!=null){p.setAttribute("transform",x);var A=p.transform.baseVal.consolidate()}return new w5(A?A.matrix:JN)})(c)};function w5(c){var p=[c.a,c.b],x=[c.c,c.d],A=M5(p),C=T5(p,x),L=M5(ZN(x,p,-C))||0;p[0]*x[1]180?p+=360:p-c>180&&(c+=360),A.push({i:x.push(gs(x)+"rotate(",null,")")-2,x:Yi(c,p)})):p&&x.push(gs(x)+"rotate("+p+")")}function $N(c,p,x,A){c!==p?A.push({i:x.push(gs(x)+"skewX(",null,")")-2,x:Yi(c,p)}):p&&x.push(gs(x)+"skewX("+p+")")}function jN(c,p,x,A){if(c[0]!==p[0]||c[1]!==p[1]){var C=x.push(gs(x)+"scale(",null,",",null,")");A.push({i:C-4,x:Yi(c[0],p[0])},{i:C-2,x:Yi(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&x.push(gs(x)+"scale("+p+")")}function A5(c,p){var x=[],A=[];return c=e.transform(c),p=e.transform(p),KN(c.translate,p.translate,x,A),QN(c.rotate,p.rotate,x,A),$N(c.skew,p.skew,x,A),jN(c.scale,p.scale,x,A),c=p=null,function(C){for(var L=-1,R=A.length,E;++L0?L=ve:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):ve>0&&(p.start({type:"start",alpha:L=ve}),x=jc(c.tick)),c):L},c.start=function(){var ve,Ye=de.length,nr=we.length,fr=A[0],lr=A[1],dr,pr;for(ve=0;ve=0;)L.push(X=W[N]),X.parent=E,X.depth=E.depth+1;x&&(E.value=0),E.children=W}else x&&(E.value=+x.call(A,E,E.depth)||0),delete E.children;return mi(C,function(j){var ee,de;c&&(ee=j.children)&&ee.sort(c),x&&(de=j.parent)&&(de.value+=j.value)}),R}return A.sort=function(C){return arguments.length?(c=C,A):c},A.children=function(C){return arguments.length?(p=C,A):p},A.value=function(C){return arguments.length?(x=C,A):x},A.revalue=function(C){return x&&(Wu(C,function(L){L.children&&(L.value=0)}),mi(C,function(L){var R;L.children||(L.value=+x.call(A,L,L.depth)||0),(R=L.parent)&&(R.value+=L.value)})),C},A};function Gu(c,p){return e.rebind(c,p,"sort","children","value"),c.nodes=c,c.links=dF,c}function Wu(c,p){for(var x=[c];(c=x.pop())!=null;)if(p(c),(C=c.children)&&(A=C.length))for(var A,C;--A>=0;)x.push(C[A])}function mi(c,p){for(var x=[c],A=[];(c=x.pop())!=null;)if(A.push(c),(R=c.children)&&(L=R.length))for(var C=-1,L,R;++CC&&(C=E),A.push(E)}for(R=0;RA&&(x=p,A=C);return x}function _F(c){return c.reduce(wF,0)}function wF(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,x=MF,A=TF;function C(L,ee){for(var E=[],N=L.map(p,this),W=x.call(this,N,ee),X=A.call(this,W,N,ee),j,ee=-1,de=N.length,we=X.length-1,te=c?1:1/de,se;++ee0)for(ee=-1;++ee=W[0]&&se<=W[1]&&(j=E[e.bisect(X,se,1,we)-1],j.y+=te,j.push(L[ee]));return E}return C.value=function(L){return arguments.length?(p=L,C):p},C.range=function(L){return arguments.length?(x=Rr(L),C):x},C.bins=function(L){return arguments.length?(A=typeof L=="number"?function(R){return L5(R,L)}:Rr(L),C):A},C.frequency=function(L){return arguments.length?(c=!!L,C):c},C};function TF(c,p){return L5(c,Math.ceil(Math.log(p.length)/Math.LN2+1))}function L5(c,p){for(var x=-1,A=+c[0],C=(c[1]-A)/p,L=[];++x<=p;)L[x]=C*x+A;return L}function MF(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(AF),p=0,x=[1,1],A;function C(L,R){var E=c.call(this,L,R),N=E[0],W=x[0],X=x[1],j=A==null?Math.sqrt:typeof A=="function"?A:function(){return A};if(N.x=N.y=0,mi(N,function(de){de.r=+j(de.value)}),mi(N,E5),p){var ee=p*(A?1:Math.max(2*N.r/W,2*N.r/X))/2;mi(N,function(de){de.r+=ee}),mi(N,E5),mi(N,function(de){de.r-=ee})}return P5(N,W/2,X/2,A?1:1/Math.max(2*N.r/W,2*N.r/X)),E}return C.size=function(L){return arguments.length?(x=L,C):x},C.radius=function(L){return arguments.length?(A=L==null||typeof L=="function"?L:+L,C):A},C.padding=function(L){return arguments.length?(p=+L,C):p},Gu(C,c)};function AF(c,p){return c.value-p.value}function z1(c,p){var x=c._pack_next;c._pack_next=p,p._pack_prev=c,p._pack_next=x,x._pack_prev=p}function q5(c,p){c._pack_next=p,p._pack_prev=c}function D5(c,p){var x=p.x-c.x,A=p.y-c.y,C=c.r+p.r;return .999*C*C>x*x+A*A}function E5(c){if(!(p=c.children)||!(ee=p.length))return;var p,x=1/0,A=-1/0,C=1/0,L=-1/0,R,E,N,W,X,j,ee;function de(ve){x=Math.min(ve.x-ve.r,x),A=Math.max(ve.x+ve.r,A),C=Math.min(ve.y-ve.r,C),L=Math.max(ve.y+ve.r,L)}if(p.forEach(kF),R=p[0],R.x=-R.r,R.y=0,de(R),ee>1&&(E=p[1],E.x=E.r,E.y=0,de(E),ee>2))for(N=p[2],R5(R,E,N),de(N),z1(R,N),R._pack_prev=N,z1(N,E),E=R._pack_next,W=3;Wse.x&&(se=Ye),Ye.depth>ue.depth&&(ue=Ye)});var _e=p(te,se)/2-te.x,Te=x[0]/(se.x+p(se,te)/2+_e),ve=x[1]/(ue.depth||1);Wu(de,function(Ye){Ye.x=(Ye.x+_e)*Te,Ye.y=Ye.depth*ve})}return ee}function L(X){for(var j={A:null,children:[X]},ee=[j],de;(de=ee.pop())!=null;)for(var we=de.children,te,se=0,ue=we.length;se0&&(SF(qF(te,X,ee),X,Ye),ue+=Ye,_e+=Ye),Te+=te.m,ue+=de.m,ve+=se.m,_e+=we.m;te&&!F1(we)&&(we.t=te,we.m+=Te-_e),de&&!N1(se)&&(se.t=de,se.m+=ue-ve,ee=X)}return ee}function W(X){X.x*=x[0],X.y=X.depth*x[1]}return C.separation=function(X){return arguments.length?(p=X,C):p},C.size=function(X){return arguments.length?(A=(x=X)==null?W:null,C):A?null:x},C.nodeSize=function(X){return arguments.length?(A=(x=X)==null?null:W,C):A?x:null},Gu(C,c)};function z5(c,p){return c.parent==p.parent?1:2}function N1(c){var p=c.children;return p.length?p[0]:c.t}function F1(c){var p=c.children,x;return(x=p.length)?p[x-1]:c.t}function SF(c,p,x){var A=x/(p.i-c.i);p.c-=A,p.s+=x,c.c+=A,p.z+=x,p.m+=x}function LF(c){for(var p=0,x=0,A=c.children,C=A.length,L;--C>=0;)L=A[C],L.z+=p,L.m+=p,p+=L.s+(x+=L.c)}function qF(c,p,x){return c.a.parent===p.parent?c.a:x}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),p=z5,x=[1,1],A=!1;function C(L,R){var E=c.call(this,L,R),N=E[0],W,X=0;mi(N,function(te){var se=te.children;se&&se.length?(te.x=EF(se),te.y=DF(se)):(te.x=W?X+=p(te,W):0,te.y=0,W=te)});var j=N5(N),ee=F5(N),de=j.x-p(j,ee)/2,we=ee.x+p(ee,j)/2;return mi(N,A?function(te){te.x=(te.x-N.x)*x[0],te.y=(N.y-te.y)*x[1]}:function(te){te.x=(te.x-de)/(we-de)*x[0],te.y=(1-(N.y?te.y/N.y:1))*x[1]}),E}return C.separation=function(L){return arguments.length?(p=L,C):p},C.size=function(L){return arguments.length?(A=(x=L)==null,C):A?null:x},C.nodeSize=function(L){return arguments.length?(A=(x=L)!=null,C):A?x:null},Gu(C,c)};function DF(c){return 1+e.max(c,function(p){return p.y})}function EF(c){return c.reduce(function(p,x){return p+x.x},0)/c.length}function N5(c){var p=c.children;return p&&p.length?N5(p[0]):c}function F5(c){var p=c.children,x;return p&&(x=p.length)?F5(p[x-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,x=[1,1],A=null,C=I1,L=!1,R,E="squarify",N=.5*(1+Math.sqrt(5));function W(te,se){for(var ue=-1,_e=te.length,Te,ve;++ue<_e;)ve=(Te=te[ue]).value*(se<0?0:se),Te.area=isNaN(ve)||ve<=0?0:ve}function X(te){var se=te.children;if(se&&se.length){var ue=C(te),_e=[],Te=se.slice(),ve,Ye=1/0,nr,fr=E==="slice"?ue.dx:E==="dice"?ue.dy:E==="slice-dice"?te.depth&1?ue.dy:ue.dx:Math.min(ue.dx,ue.dy),lr;for(W(Te,ue.dx*ue.dy/te.value),_e.area=0;(lr=Te.length)>0;)_e.push(ve=Te[lr-1]),_e.area+=ve.area,E!=="squarify"||(nr=ee(_e,fr))<=Ye?(Te.pop(),Ye=nr):(_e.area-=_e.pop().area,de(_e,fr,ue,!1),fr=Math.min(ue.dx,ue.dy),_e.length=_e.area=0,Ye=1/0);_e.length&&(de(_e,fr,ue,!0),_e.length=_e.area=0),se.forEach(X)}}function j(te){var se=te.children;if(se&&se.length){var ue=C(te),_e=se.slice(),Te,ve=[];for(W(_e,ue.dx*ue.dy/te.value),ve.area=0;Te=_e.pop();)ve.push(Te),ve.area+=Te.area,Te.z!=null&&(de(ve,Te.z?ue.dx:ue.dy,ue,!_e.length),ve.length=ve.area=0);se.forEach(j)}}function ee(te,se){for(var ue=te.area,_e,Te=0,ve=1/0,Ye=-1,nr=te.length;++YeTe&&(Te=_e));return ue*=ue,se*=se,ue?Math.max(se*Te*N/ue,ue/(se*ve*N)):1/0}function de(te,se,ue,_e){var Te=-1,ve=te.length,Ye=ue.x,nr=ue.y,fr=se?p(te.area/se):0,lr;if(se==ue.dx){for((_e||fr>ue.dy)&&(fr=ue.dy);++Teue.dx)&&(fr=ue.dx);++Te1);return c+p*A*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var p=e.random.irwinHall(c);return function(){return p()/c}},irwinHall:function(c){return function(){for(var p=0,x=0;x2?zF:PF,W=A?rF:eF;return C=N(c,p,W,x),L=N(p,c,W,ro),E}function E(N){return C(N)}return E.invert=function(N){return L(N)},E.domain=function(N){return arguments.length?(c=N.map(Number),R()):c},E.range=function(N){return arguments.length?(p=N,R()):p},E.rangeRound=function(N){return E.range(N).interpolate(_5)},E.clamp=function(N){return arguments.length?(A=N,R()):A},E.interpolate=function(N){return arguments.length?(x=N,R()):x},E.ticks=function(N){return B1(c,N)},E.tickFormat=function(N,W){return d3_scale_linearTickFormat(c,N,W)},E.nice=function(N){return Y5(c,N),R()},E.copy=function(){return O5(c,p,x,A)},R()}function B5(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function Y5(c,p){return H1(c,H5(O1(c,p)[2])),H1(c,H5(O1(c,p)[2])),c}function O1(c,p){p==null&&(p=10);var x=lv(c),A=x[1]-x[0],C=Math.pow(10,Math.floor(Math.log(A/p)/Math.LN10)),L=p/A*C;return L<=.15?C*=10:L<=.35?C*=5:L<=.75&&(C*=2),x[0]=Math.ceil(x[0]/C)*C,x[1]=Math.floor(x[1]/C)*C+C*.5,x[2]=C,x}function B1(c,p){return e.range.apply(e,O1(c,p))}var NF={s:1,g:1,p:1,r:1,e:1};function U5(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function Iie(c,p){var x=U5(p[2]);return c in NF?Math.abs(x-U5(Math.max(_(p[0]),_(p[1]))))+ +(c!=="e"):x-(c==="%")*2}e.scale.log=function(){return V5(e.scale.linear().domain([0,1]),10,!0,[1,10])};function V5(c,p,x,A){function C(E){return(x?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(p)}function L(E){return x?Math.pow(p,E):-Math.pow(p,-E)}function R(E){return c(C(E))}return R.invert=function(E){return L(c.invert(E))},R.domain=function(E){return arguments.length?(x=E[0]>=0,c.domain((A=E.map(Number)).map(C)),R):A},R.base=function(E){return arguments.length?(p=+E,c.domain(A.map(C)),R):p},R.nice=function(){var E=H1(A.map(C),x?Math:FF);return c.domain(E),A=E.map(L),R},R.ticks=function(){var E=lv(A),N=[],W=E[0],X=E[1],j=Math.floor(C(W)),ee=Math.ceil(C(X)),de=p%1?2:p;if(isFinite(ee-j)){if(x){for(;j0;we--)N.push(L(j)*we);for(j=0;N[j]X;ee--);N=N.slice(j,ee)}return N},R.copy=function(){return V5(c.copy(),p,x,A)},B5(R,c)}var FF={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return G5(e.scale.linear(),1,[0,1])};function G5(c,p,x){var A=sv(p),C=sv(1/p);function L(R){return c(A(R))}return L.invert=function(R){return C(c.invert(R))},L.domain=function(R){return arguments.length?(c.domain((x=R.map(Number)).map(A)),L):x},L.ticks=function(R){return B1(x,R)},L.tickFormat=function(R,E){return d3_scale_linearTickFormat(x,R,E)},L.nice=function(R){return L.domain(Y5(x,R))},L.exponent=function(R){return arguments.length?(A=sv(p=R),C=sv(1/p),c.domain(x.map(A)),L):p},L.copy=function(){return G5(c.copy(),p,x)},B5(L,c)}function sv(c){return function(p){return p<0?-Math.pow(-p,c):Math.pow(p,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return W5([],{t:"range",a:[[]]})};function W5(c,p){var x,A,C;function L(E){return A[((x.get(E)||(p.t==="range"?x.set(E,c.push(E)):NaN))-1)%A.length]}function R(E,N){return e.range(c.length).map(function(W){return E+N*W})}return L.domain=function(E){if(!arguments.length)return c;c=[],x=new b;for(var N=-1,W=E.length,X;++N0?x[L-1]:c[0],Lee?0:1;if(X=cr)return N(X,we)+(W?N(W,1-we):"")+"Z";var te,se,ue,_e,Te=0,ve=0,Ye,nr,fr,lr,dr,pr,Sr,mr,Tr=[];if((_e=(+R.apply(this,arguments)||0)/2)&&(ue=A===uv?Math.sqrt(W*W+X*X):+A.apply(this,arguments),we||(ve*=-1),X&&(ve=gt(ue/X*Math.sin(_e))),W&&(Te=gt(ue/W*Math.sin(_e)))),X){Ye=X*Math.cos(j+ve),nr=X*Math.sin(j+ve),fr=X*Math.cos(ee-ve),lr=X*Math.sin(ee-ve);var Kr=Math.abs(ee-j-2*ve)<=Pe?0:1;if(ve&&fv(Ye,nr,fr,lr)===we^Kr){var St=(j+ee)/2;Ye=X*Math.cos(St),nr=X*Math.sin(St),fr=lr=null}}else Ye=nr=0;if(W){dr=W*Math.cos(ee-Te),pr=W*Math.sin(ee-Te),Sr=W*Math.cos(j+Te),mr=W*Math.sin(j+Te);var et=Math.abs(j-ee+2*Te)<=Pe?0:1;if(Te&&fv(dr,pr,Sr,mr)===1-we^et){var rr=(j+ee)/2;dr=W*Math.cos(rr),pr=W*Math.sin(rr),Sr=mr=null}}else dr=pr=0;if(de>oe&&(te=Math.min(Math.abs(X-W)/2,+x.apply(this,arguments)))>.001){se=W0?0:1}function cv(c,p,x,A,C){var L=c[0]-p[0],R=c[1]-p[1],E=(C?A:-A)/Math.sqrt(L*L+R*R),N=E*R,W=-E*L,X=c[0]+N,j=c[1]+W,ee=p[0]+N,de=p[1]+W,we=(X+ee)/2,te=(j+de)/2,se=ee-X,ue=de-j,_e=se*se+ue*ue,Te=x-A,ve=X*de-ee*j,Ye=(ue<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*_e-ve*ve)),nr=(ve*ue-se*Ye)/_e,fr=(-ve*se-ue*Ye)/_e,lr=(ve*ue+se*Ye)/_e,dr=(-ve*se+ue*Ye)/_e,pr=nr-we,Sr=fr-te,mr=lr-we,Tr=dr-te;return pr*pr+Sr*Sr>mr*mr+Tr*Tr&&(nr=lr,fr=dr),[[nr-N,fr-W],[nr*x/Te,fr*x/Te]]}function j5(){return!0}function eb(c){var p=hs,x=Hu,A=j5,C=Gn,L=C.key,R=.7;function E(N){var W=[],X=[],j=-1,ee=N.length,de,we=Rr(p),te=Rr(x);function se(){W.push("M",C(c(X),R))}for(;++j1?c.join("L"):c+"Z"}function rb(c){return c.join("L")+"Z"}function WF(c){for(var p=0,x=c.length,A=c[0],C=[A[0],",",A[1]];++p1&&C.push("H",A[0]),C.join("")}function U1(c){for(var p=0,x=c.length,A=c[0],C=[A[0],",",A[1]];++p1){E=p[1],L=c[N],N++,A+="C"+(C[0]+R[0])+","+(C[1]+R[1])+","+(L[0]-E[0])+","+(L[1]-E[1])+","+L[0]+","+L[1];for(var W=2;W9&&(L=x*3/Math.sqrt(L),R[E]=L*A,R[E+1]=L*C));for(E=-1;++E<=N;)L=(c[Math.min(N,E+1)][0]-c[Math.max(0,E-1)][0])/(6*(1+R[E]*R[E])),p.push([L||0,R[E]*L||0]);return p}function rI(c){return c.length<3?Gn(c):c[0]+vv(c,eI(c))}e.svg.line.radial=function(){var c=eb(ib);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function ib(c){for(var p,x=-1,A=c.length,C,L;++xPe)+",1 "+j}function W(X,j,ee,de){return"Q 0,0 "+de}return L.radius=function(X){return arguments.length?(x=Rr(X),L):x},L.source=function(X){return arguments.length?(c=Rr(X),L):c},L.target=function(X){return arguments.length?(p=Rr(X),L):p},L.startAngle=function(X){return arguments.length?(A=Rr(X),L):A},L.endAngle=function(X){return arguments.length?(C=Rr(X),L):C},L};function tI(c){return c.radius}e.svg.diagonal=function(){var c=ob,p=sb,x=ub;function A(C,L){var R=c.call(this,C,L),E=p.call(this,C,L),N=(R.y+E.y)/2,W=[R,{x:R.x,y:N},{x:E.x,y:N},E];return W=W.map(x),"M"+W[0]+"C"+W[1]+" "+W[2]+" "+W[3]}return A.source=function(C){return arguments.length?(c=Rr(C),A):c},A.target=function(C){return arguments.length?(p=Rr(C),A):p},A.projection=function(C){return arguments.length?(x=C,A):x},A};function ub(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),p=ub,x=c.projection;return c.projection=function(A){return arguments.length?x(aI(p=A)):p},c};function aI(c){return function(){var p=c.apply(this,arguments),x=p[0],A=p[1]-sr;return[x*Math.cos(A),x*Math.sin(A)]}}e.svg.symbol=function(){var c=iI,p=nI;function x(A,C){return(cb.get(c.call(this,A,C))||fb)(p.call(this,A,C))}return x.type=function(A){return arguments.length?(c=Rr(A),x):c},x.size=function(A){return arguments.length?(p=Rr(A),x):p},x};function nI(){return 64}function iI(){return"circle"}function fb(c){var p=Math.sqrt(c/Pe);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var cb=e.map({circle:fb,cross:function(c){var p=Math.sqrt(c/5)/2;return"M"+-3*p+","+-p+"H"+-p+"V"+-3*p+"H"+p+"V"+-p+"H"+3*p+"V"+p+"H"+p+"V"+3*p+"H"+-p+"V"+p+"H"+-3*p+"Z"},diamond:function(c){var p=Math.sqrt(c/(2*vb)),x=p*vb;return"M0,"+-p+"L"+x+",0 0,"+p+" "+-x+",0Z"},square:function(c){var p=Math.sqrt(c)/2;return"M"+-p+","+-p+"L"+p+","+-p+" "+p+","+p+" "+-p+","+p+"Z"},"triangle-down":function(c){var p=Math.sqrt(c/hv),x=p*hv/2;return"M0,"+x+"L"+p+","+-x+" "+-p+","+-x+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/hv),x=p*hv/2;return"M0,"+-x+"L"+p+","+x+" "+-p+","+x+"Z"}});e.svg.symbolTypes=cb.keys();var hv=Math.sqrt(3),vb=Math.tan(30*Mr);ge.transition=function(c){for(var p=to||++db,x=J1(c),A=[],C,L,R=pv||{time:Date.now(),ease:FN,delay:0,duration:250},E=-1,N=this.length;++E0;)j[--_e].call(c,ue);if(se>=1)return R.event&&R.event.end.call(c,c.__data__,p),--L.count?delete L[A]:delete c[x],1}R||(E=C.time,N=jc(ee,0,E),R=L[A]={tween:new b,time:E,timer:N,delay:C.delay,duration:C.duration,ease:C.ease,index:p},C=null,++L.count)}e.svg.axis=function(){var c=e.scale.linear(),p=pb,x=6,A=6,C=3,L=[10],R=null,E;function N(W){W.each(function(){var X=e.select(this),j=this.__chart__||c,ee=this.__chart__=c.copy(),de=R==null?ee.ticks?ee.ticks.apply(ee,L):ee.domain():R,we=E==null?ee.tickFormat?ee.tickFormat.apply(ee,L):V:E,te=X.selectAll(".tick").data(de,ee),se=te.enter().insert("g",".domain").attr("class","tick").style("opacity",oe),ue=e.transition(te.exit()).style("opacity",oe).remove(),_e=e.transition(te.order()).style("opacity",1),Te=Math.max(x,0)+C,ve,Ye=ov(ee),nr=X.selectAll(".domain").data([0]),fr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));se.append("line"),se.append("text");var lr=se.select("line"),dr=_e.select("line"),pr=te.select("text").text(we),Sr=se.select("text"),mr=_e.select("text"),Tr=p==="top"||p==="left"?-1:1,Kr,St,et,rr;if(p==="bottom"||p==="top"?(ve=sI,Kr="x",et="y",St="x2",rr="y2",pr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),fr.attr("d","M"+Ye[0]+","+Tr*A+"V0H"+Ye[1]+"V"+Tr*A)):(ve=uI,Kr="y",et="x",St="y2",rr="x2",pr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),fr.attr("d","M"+Tr*A+","+Ye[0]+"H0V"+Ye[1]+"H"+Tr*A)),lr.attr(rr,Tr*x),Sr.attr(et,Tr*Te),dr.attr(St,0).attr(rr,Tr*x),mr.attr(Kr,0).attr(et,Tr*Te),ee.rangeBand){var Lr=ee,qr=Lr.rangeBand()/2;j=ee=function(Qr){return Lr(Qr)+qr}}else j.rangeBand?j=ee:ue.call(ve,ee,j);se.call(ve,j,ee),_e.call(ve,ee,ee)})}return N.scale=function(W){return arguments.length?(c=W,N):c},N.orient=function(W){return arguments.length?(p=W in oI?W+"":pb,N):p},N.ticks=function(){return arguments.length?(L=t(arguments),N):L},N.tickValues=function(W){return arguments.length?(R=W,N):R},N.tickFormat=function(W){return arguments.length?(E=W,N):E},N.tickSize=function(W){var X=arguments.length;return X?(x=+W,A=+arguments[X-1],N):x},N.innerTickSize=function(W){return arguments.length?(x=+W,N):x},N.outerTickSize=function(W){return arguments.length?(A=+W,N):A},N.tickPadding=function(W){return arguments.length?(C=+W,N):C},N.tickSubdivide=function(){return arguments.length&&N},N};var pb="bottom",oI={top:1,right:1,bottom:1,left:1};function sI(c,p,x){c.attr("transform",function(A){var C=p(A);return"translate("+(isFinite(C)?C:x(A))+",0)"})}function uI(c,p,x){c.attr("transform",function(A){var C=p(A);return"translate(0,"+(isFinite(C)?C:x(A))+")"})}e.svg.brush=function(){var c=ye(X,"brushstart","brush","brushend"),p=null,x=null,A=[0,0],C=[0,0],L,R,E=!0,N=!0,W=K1[0];function X(te){te.each(function(){var se=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),ue=se.selectAll(".background").data([0]);ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),se.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=se.selectAll(".resize").data(W,V);_e.exit().remove(),_e.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return fI[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_e.style("display",X.empty()?"none":null);var Te=e.transition(se),ve=e.transition(ue),Ye;p&&(Ye=ov(p),ve.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),ee(Te)),x&&(Ye=ov(x),ve.attr("y",Ye[0]).attr("height",Ye[1]-Ye[0]),de(Te)),j(Te)})}X.event=function(te){te.each(function(){var se=c.of(this,arguments),ue={x:A,y:C,i:L,j:R},_e=this.__chart__||ue;this.__chart__=ue,to?e.select(this).transition().each("start.brush",function(){L=_e.i,R=_e.j,A=_e.x,C=_e.y,se({type:"brushstart"})}).tween("brush:brush",function(){var Te=iv(A,ue.x),ve=iv(C,ue.y);return L=R=null,function(Ye){A=ue.x=Te(Ye),C=ue.y=ve(Ye),se({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ue.i,R=ue.j,se({type:"brush",mode:"resize"}),se({type:"brushend"})}):(se({type:"brushstart"}),se({type:"brush",mode:"resize"}),se({type:"brushend"}))})};function j(te){te.selectAll(".resize").attr("transform",function(se){return"translate("+A[+/e$/.test(se)]+","+C[+/^s/.test(se)]+")"})}function ee(te){te.select(".extent").attr("x",A[0]),te.selectAll(".extent,.n>rect,.s>rect").attr("width",A[1]-A[0])}function de(te){te.select(".extent").attr("y",C[0]),te.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function we(){var te=this,se=e.select(e.event.target),ue=c.of(te,arguments),_e=e.select(te),Te=se.datum(),ve=!/^(n|s)$/.test(Te)&&p,Ye=!/^(e|w)$/.test(Te)&&x,nr=se.classed("extent"),fr=ar(te),lr,dr=e.mouse(te),pr,Sr=e.select(i(te)).on("keydown.brush",Kr).on("keyup.brush",St);if(e.event.changedTouches?Sr.on("touchmove.brush",et).on("touchend.brush",Lr):Sr.on("mousemove.brush",et).on("mouseup.brush",Lr),_e.interrupt().selectAll("*").interrupt(),nr)dr[0]=A[0]-dr[0],dr[1]=C[0]-dr[1];else if(Te){var mr=+/w$/.test(Te),Tr=+/^n/.test(Te);pr=[A[1-mr]-dr[0],C[1-Tr]-dr[1]],dr[0]=A[mr],dr[1]=C[Tr]}else e.event.altKey&&(lr=dr.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",se.style("cursor")),ue({type:"brushstart"}),et();function Kr(){e.event.keyCode==32&&(nr||(lr=null,dr[0]-=A[1],dr[1]-=C[1],nr=2),ne())}function St(){e.event.keyCode==32&&nr==2&&(dr[0]+=A[1],dr[1]+=C[1],nr=0,ne())}function et(){var qr=e.mouse(te),Qr=!1;pr&&(qr[0]+=pr[0],qr[1]+=pr[1]),nr||(e.event.altKey?(lr||(lr=[(A[0]+A[1])/2,(C[0]+C[1])/2]),dr[0]=A[+(qr[0]{(function(e,r){typeof _v=="object"&&typeof wb!="undefined"?r(_v):(e=e||self,r(e.d3=e.d3||{}))})(_v,function(e){"use strict";var r=new Date,t=new Date;function a(ie,xe,Ke,hr){function ze(Me){return ie(Me=arguments.length===0?new Date:new Date(+Me)),Me}return ze.floor=function(Me){return ie(Me=new Date(+Me)),Me},ze.ceil=function(Me){return ie(Me=new Date(Me-1)),xe(Me,1),ie(Me),Me},ze.round=function(Me){var ke=ze(Me),Oe=ze.ceil(Me);return Me-ke0))return Ze;do Ze.push(Ue=new Date(+Me)),xe(Me,Oe),ie(Me);while(Ue=ke)for(;ie(ke),!Me(ke);)ke.setTime(ke-1)},function(ke,Oe){if(ke>=ke)if(Oe<0)for(;++Oe<=0;)for(;xe(ke,-1),!Me(ke););else for(;--Oe>=0;)for(;xe(ke,1),!Me(ke););})},Ke&&(ze.count=function(Me,ke){return r.setTime(+Me),t.setTime(+ke),ie(r),ie(t),Math.floor(Ke(r,t))},ze.every=function(Me){return Me=Math.floor(Me),!isFinite(Me)||!(Me>0)?null:Me>1?ze.filter(hr?function(ke){return hr(ke)%Me===0}:function(ke){return ze.count(0,ke)%Me===0}):ze}),ze}var n=a(function(){},function(ie,xe){ie.setTime(+ie+xe)},function(ie,xe){return xe-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(xe){xe.setTime(Math.floor(xe/ie)*ie)},function(xe,Ke){xe.setTime(+xe+Ke*ie)},function(xe,Ke){return(Ke-xe)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,v=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,xe){ie.setTime(+ie+xe*l)},function(ie,xe){return(xe-ie)/l},function(ie){return ie.getUTCSeconds()}),h=v.range,d=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,xe){ie.setTime(+ie+xe*o)},function(ie,xe){return(xe-ie)/o},function(ie){return ie.getMinutes()}),m=d.range,y=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,xe){ie.setTime(+ie+xe*s)},function(ie,xe){return(xe-ie)/s},function(ie){return ie.getHours()}),g=y.range,_=a(function(ie){ie.setHours(0,0,0,0)},function(ie,xe){ie.setDate(ie.getDate()+xe)},function(ie,xe){return(xe-ie-(xe.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),T=_.range;function w(ie){return a(function(xe){xe.setDate(xe.getDate()-(xe.getDay()+7-ie)%7),xe.setHours(0,0,0,0)},function(xe,Ke){xe.setDate(xe.getDate()+Ke*7)},function(xe,Ke){return(Ke-xe-(Ke.getTimezoneOffset()-xe.getTimezoneOffset())*o)/f})}var b=w(0),M=w(1),S=w(2),k=w(3),q=w(4),D=w(5),P=w(6),z=b.range,F=M.range,O=S.range,I=k.range,V=q.range,J=D.range,G=P.range,U=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,xe){ie.setMonth(ie.getMonth()+xe)},function(ie,xe){return xe.getMonth()-ie.getMonth()+(xe.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),H=U.range,Q=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,xe){ie.setFullYear(ie.getFullYear()+xe)},function(ie,xe){return xe.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});Q.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(xe){xe.setFullYear(Math.floor(xe.getFullYear()/ie)*ie),xe.setMonth(0,1),xe.setHours(0,0,0,0)},function(xe,Ke){xe.setFullYear(xe.getFullYear()+Ke*ie)})};var Z=Q.range,ne=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,xe){ie.setTime(+ie+xe*o)},function(ie,xe){return(xe-ie)/o},function(ie){return ie.getUTCMinutes()}),ce=ne.range,ye=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,xe){ie.setTime(+ie+xe*s)},function(ie,xe){return(xe-ie)/s},function(ie){return ie.getUTCHours()}),Ce=ye.range,re=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,xe){ie.setUTCDate(ie.getUTCDate()+xe)},function(ie,xe){return(xe-ie)/u},function(ie){return ie.getUTCDate()-1}),Se=re.range;function pe(ie){return a(function(xe){xe.setUTCDate(xe.getUTCDate()-(xe.getUTCDay()+7-ie)%7),xe.setUTCHours(0,0,0,0)},function(xe,Ke){xe.setUTCDate(xe.getUTCDate()+Ke*7)},function(xe,Ke){return(Ke-xe)/f})}var be=pe(0),Ae=pe(1),ge=pe(2),B=pe(3),$=pe(4),Y=pe(5),le=pe(6),he=be.range,me=Ae.range,Re=ge.range,Ee=B.range,Le=$.range,Ve=Y.range,Ie=le.range,Xe=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,xe){ie.setUTCMonth(ie.getUTCMonth()+xe)},function(ie,xe){return xe.getUTCMonth()-ie.getUTCMonth()+(xe.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),De=Xe.range,He=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,xe){ie.setUTCFullYear(ie.getUTCFullYear()+xe)},function(ie,xe){return xe.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});He.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(xe){xe.setUTCFullYear(Math.floor(xe.getUTCFullYear()/ie)*ie),xe.setUTCMonth(0,1),xe.setUTCHours(0,0,0,0)},function(xe,Ke){xe.setUTCFullYear(xe.getUTCFullYear()+Ke*ie)})};var We=He.range;e.timeDay=_,e.timeDays=T,e.timeFriday=D,e.timeFridays=J,e.timeHour=y,e.timeHours=g,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=M,e.timeMondays=F,e.timeMonth=U,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=G,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=z,e.timeThursday=q,e.timeThursdays=V,e.timeTuesday=S,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=I,e.timeWeek=b,e.timeWeeks=z,e.timeYear=Q,e.timeYears=Z,e.utcDay=re,e.utcDays=Se,e.utcFriday=Y,e.utcFridays=Ve,e.utcHour=ye,e.utcHours=Ce,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ne,e.utcMinutes=ce,e.utcMonday=Ae,e.utcMondays=me,e.utcMonth=Xe,e.utcMonths=De,e.utcSaturday=le,e.utcSaturdays=Ie,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=he,e.utcThursday=$,e.utcThursdays=Le,e.utcTuesday=ge,e.utcTuesdays=Re,e.utcWednesday=B,e.utcWednesdays=Ee,e.utcWeek=be,e.utcWeeks=he,e.utcYear=He,e.utcYears=We,Object.defineProperty(e,"__esModule",{value:!0})})});var xs=K((wv,Tb)=>{(function(e,r){typeof wv=="object"&&typeof Tb!="undefined"?r(wv,Q1()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(wv,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var oe=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return oe.setFullYear(ae.y),oe}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var oe=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return oe.setUTCFullYear(ae.y),oe}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,oe,qe){return{y:ae,m:oe,d:qe,H:0,M:0,S:0,L:0}}function i(ae){var oe=ae.dateTime,qe=ae.date,Pe=ae.time,$e=ae.periods,cr=ae.days,sr=ae.shortDays,Mr=ae.months,Ir=ae.shortMonths,Jr=h($e),lt=d($e),_t=h(cr),gt=d(cr),Yt=h(sr),zt=d(sr),Ba=h(Mr),ha=d(Mr),na=h(Ir),Ya=d(Ir),ia={a:Ft,A:$l,b:sl,B:Wc,c:null,d:U,e:U,f:ce,H,I:Q,j:Z,L:ne,m:ye,M:Ce,p:Xc,q:Nu,Q:ke,s:Oe,S:re,u:Se,U:pe,V:be,w:Ae,W:ge,x:null,X:null,y:B,Y:$,Z:Y,"%":Me},la={a:Fu,A:Iu,b:Da,B:Zc,c:null,d:le,e:le,f:Le,H:he,I:me,j:Re,L:Ee,m:Ve,M:Ie,p:cs,q:vs,Q:ke,s:Oe,S:Xe,u:De,U:He,V:We,w:ie,W:xe,x:null,X:null,y:Ke,Y:hr,Z:ze,"%":Me},vr={a:sa,A:at,b:Xa,B:Un,c:Kt,d:q,e:q,f:I,H:P,I:P,j:D,L:O,m:k,M:z,p:oa,q:S,Q:J,s:G,S:F,u:y,U:g,V:_,w:m,W:T,x:vt,X:Nt,y:b,Y:w,Z:M,"%":V};ia.x=ot(qe,ia),ia.X=ot(Pe,ia),ia.c=ot(oe,ia),la.x=ot(qe,la),la.X=ot(Pe,la),la.c=ot(oe,la);function ot(yr,Gr){return function($r){var or=[],da=-1,st=0,pa=yr.length,Rr,Vn,jl;for($r instanceof Date||($r=new Date(+$r));++da53)return null;"w"in or||(or.w=1),"Z"in or?(st=a(n(or.y,0,1)),pa=st.getUTCDay(),st=pa>4||pa===0?r.utcMonday.ceil(st):r.utcMonday(st),st=r.utcDay.offset(st,(or.V-1)*7),or.y=st.getUTCFullYear(),or.m=st.getUTCMonth(),or.d=st.getUTCDate()+(or.w+6)%7):(st=t(n(or.y,0,1)),pa=st.getDay(),st=pa>4||pa===0?r.timeMonday.ceil(st):r.timeMonday(st),st=r.timeDay.offset(st,(or.V-1)*7),or.y=st.getFullYear(),or.m=st.getMonth(),or.d=st.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),pa="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(pa+5)%7:or.w+or.U*7-(pa+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function nt(yr,Gr,$r,or){for(var da=0,st=Gr.length,pa=$r.length,Rr,Vn;da=pa)return-1;if(Rr=Gr.charCodeAt(da++),Rr===37){if(Rr=Gr.charAt(da++),Vn=vr[Rr in l?Gr.charAt(da++):Rr],!Vn||(or=Vn(yr,$r,or))<0)return-1}else if(Rr!=$r.charCodeAt(or++))return-1}return or}function oa(yr,Gr,$r){var or=Jr.exec(Gr.slice($r));return or?(yr.p=lt[or[0].toLowerCase()],$r+or[0].length):-1}function sa(yr,Gr,$r){var or=Yt.exec(Gr.slice($r));return or?(yr.w=zt[or[0].toLowerCase()],$r+or[0].length):-1}function at(yr,Gr,$r){var or=_t.exec(Gr.slice($r));return or?(yr.w=gt[or[0].toLowerCase()],$r+or[0].length):-1}function Xa(yr,Gr,$r){var or=na.exec(Gr.slice($r));return or?(yr.m=Ya[or[0].toLowerCase()],$r+or[0].length):-1}function Un(yr,Gr,$r){var or=Ba.exec(Gr.slice($r));return or?(yr.m=ha[or[0].toLowerCase()],$r+or[0].length):-1}function Kt(yr,Gr,$r){return nt(yr,oe,Gr,$r)}function vt(yr,Gr,$r){return nt(yr,qe,Gr,$r)}function Nt(yr,Gr,$r){return nt(yr,Pe,Gr,$r)}function Ft(yr){return sr[yr.getDay()]}function $l(yr){return cr[yr.getDay()]}function sl(yr){return Ir[yr.getMonth()]}function Wc(yr){return Mr[yr.getMonth()]}function Xc(yr){return $e[+(yr.getHours()>=12)]}function Nu(yr){return 1+~~(yr.getMonth()/3)}function Fu(yr){return sr[yr.getUTCDay()]}function Iu(yr){return cr[yr.getUTCDay()]}function Da(yr){return Ir[yr.getUTCMonth()]}function Zc(yr){return Mr[yr.getUTCMonth()]}function cs(yr){return $e[+(yr.getUTCHours()>=12)]}function vs(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Gr=ot(yr+="",ia);return Gr.toString=function(){return yr},Gr},parse:function(yr){var Gr=Xr(yr+="",!1);return Gr.toString=function(){return yr},Gr},utcFormat:function(yr){var Gr=ot(yr+="",la);return Gr.toString=function(){return yr},Gr},utcParse:function(yr){var Gr=Xr(yr+="",!0);return Gr.toString=function(){return yr},Gr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,oe,qe){var Pe=ae<0?"-":"",$e=(Pe?-ae:ae)+"",cr=$e.length;return Pe+(cr68?1900:2e3),qe+Pe[0].length):-1}function M(ae,oe,qe){var Pe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(oe.slice(qe,qe+6));return Pe?(ae.Z=Pe[1]?0:-(Pe[2]+(Pe[3]||"00")),qe+Pe[0].length):-1}function S(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+1));return Pe?(ae.q=Pe[0]*3-3,qe+Pe[0].length):-1}function k(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.m=Pe[0]-1,qe+Pe[0].length):-1}function q(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.d=+Pe[0],qe+Pe[0].length):-1}function D(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+3));return Pe?(ae.m=0,ae.d=+Pe[0],qe+Pe[0].length):-1}function P(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.H=+Pe[0],qe+Pe[0].length):-1}function z(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.M=+Pe[0],qe+Pe[0].length):-1}function F(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+2));return Pe?(ae.S=+Pe[0],qe+Pe[0].length):-1}function O(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+3));return Pe?(ae.L=+Pe[0],qe+Pe[0].length):-1}function I(ae,oe,qe){var Pe=o.exec(oe.slice(qe,qe+6));return Pe?(ae.L=Math.floor(Pe[0]/1e3),qe+Pe[0].length):-1}function V(ae,oe,qe){var Pe=s.exec(oe.slice(qe,qe+1));return Pe?qe+Pe[0].length:-1}function J(ae,oe,qe){var Pe=o.exec(oe.slice(qe));return Pe?(ae.Q=+Pe[0],qe+Pe[0].length):-1}function G(ae,oe,qe){var Pe=o.exec(oe.slice(qe));return Pe?(ae.s=+Pe[0],qe+Pe[0].length):-1}function U(ae,oe){return f(ae.getDate(),oe,2)}function H(ae,oe){return f(ae.getHours(),oe,2)}function Q(ae,oe){return f(ae.getHours()%12||12,oe,2)}function Z(ae,oe){return f(1+r.timeDay.count(r.timeYear(ae),ae),oe,3)}function ne(ae,oe){return f(ae.getMilliseconds(),oe,3)}function ce(ae,oe){return ne(ae,oe)+"000"}function ye(ae,oe){return f(ae.getMonth()+1,oe,2)}function Ce(ae,oe){return f(ae.getMinutes(),oe,2)}function re(ae,oe){return f(ae.getSeconds(),oe,2)}function Se(ae){var oe=ae.getDay();return oe===0?7:oe}function pe(ae,oe){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),oe,2)}function be(ae,oe){var qe=ae.getDay();return ae=qe>=4||qe===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),oe,2)}function Ae(ae){return ae.getDay()}function ge(ae,oe){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),oe,2)}function B(ae,oe){return f(ae.getFullYear()%100,oe,2)}function $(ae,oe){return f(ae.getFullYear()%1e4,oe,4)}function Y(ae){var oe=ae.getTimezoneOffset();return(oe>0?"-":(oe*=-1,"+"))+f(oe/60|0,"0",2)+f(oe%60,"0",2)}function le(ae,oe){return f(ae.getUTCDate(),oe,2)}function he(ae,oe){return f(ae.getUTCHours(),oe,2)}function me(ae,oe){return f(ae.getUTCHours()%12||12,oe,2)}function Re(ae,oe){return f(1+r.utcDay.count(r.utcYear(ae),ae),oe,3)}function Ee(ae,oe){return f(ae.getUTCMilliseconds(),oe,3)}function Le(ae,oe){return Ee(ae,oe)+"000"}function Ve(ae,oe){return f(ae.getUTCMonth()+1,oe,2)}function Ie(ae,oe){return f(ae.getUTCMinutes(),oe,2)}function Xe(ae,oe){return f(ae.getUTCSeconds(),oe,2)}function De(ae){var oe=ae.getUTCDay();return oe===0?7:oe}function He(ae,oe){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),oe,2)}function We(ae,oe){var qe=ae.getUTCDay();return ae=qe>=4||qe===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),oe,2)}function ie(ae){return ae.getUTCDay()}function xe(ae,oe){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),oe,2)}function Ke(ae,oe){return f(ae.getUTCFullYear()%100,oe,2)}function hr(ae,oe){return f(ae.getUTCFullYear()%1e4,oe,4)}function ze(){return"+0000"}function Me(){return"%"}function ke(ae){return+ae}function Oe(ae){return Math.floor(+ae/1e3)}var Ze;Ue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ue(ae){return Ze=i(ae),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var Ge="%Y-%m-%dT%H:%M:%S.%LZ";function ir(ae){return ae.toISOString()}var ar=Date.prototype.toISOString?ir:e.utcFormat(Ge);function er(ae){var oe=new Date(ae);return isNaN(oe)?null:oe}var Ne=+new Date("2000-01-01T00:00:00.000Z")?er:e.utcParse(Ge);e.isoFormat=ar,e.isoParse=Ne,e.timeFormatDefaultLocale=Ue,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var $1=K((Tv,Mb)=>{(function(e,r){typeof Tv=="object"&&typeof Mb!="undefined"?r(Tv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Tv,(function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,q){if((D=(k=q?k.toExponential(q-1):k.toExponential()).indexOf("e"))<0)return null;var D,P=k.slice(0,D);return[P.length>1?P[0]+P.slice(2):P,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,q){return function(D,P){for(var z=D.length,F=[],O=0,I=k[0],V=0;z>0&&I>0&&(V+I+1>P&&(I=Math.max(1,P-V)),F.push(D.substring(z-=I,z+I)),!((V+=I+1)>P));)I=k[O=(O+1)%k.length];return F.reverse().join(q)}}function i(k){return function(q){return q.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(q=l.exec(k)))throw new Error("invalid format: "+k);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}o.prototype=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var q=k.length,D=1,P=-1,z;D0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(z+1):k}var f;function v(k,q){var D=t(k,q);if(!D)return k+"";var P=D[0],z=D[1],F=z-(f=Math.max(-8,Math.min(8,Math.floor(z/3)))*3)+1,O=P.length;return F===O?P:F>O?P+new Array(F-O+1).join("0"):F>0?P.slice(0,F)+"."+P.slice(F):"0."+new Array(1-F).join("0")+t(k,Math.max(0,q+F-1))[0]}function h(k,q){var D=t(k,q);if(!D)return k+"";var P=D[0],z=D[1];return z<0?"0."+new Array(-z).join("0")+P:P.length>z+1?P.slice(0,z+1)+"."+P.slice(z+1):P+new Array(z-P.length+2).join("0")}var d={"%":function(k,q){return(k*100).toFixed(q)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,q){return k.toExponential(q)},f:function(k,q){return k.toFixed(q)},g:function(k,q){return k.toPrecision(q)},o:function(k){return Math.round(k).toString(8)},p:function(k,q){return h(k*100,q)},r:h,s:v,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function m(k){return k}var y=Array.prototype.map,g=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(k){var q=k.grouping===void 0||k.thousands===void 0?m:n(y.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",z=k.decimal===void 0?".":k.decimal+"",F=k.numerals===void 0?m:i(y.call(k.numerals,String)),O=k.percent===void 0?"%":k.percent+"",I=k.minus===void 0?"-":k.minus+"",V=k.nan===void 0?"NaN":k.nan+"";function J(U){U=o(U);var H=U.fill,Q=U.align,Z=U.sign,ne=U.symbol,ce=U.zero,ye=U.width,Ce=U.comma,re=U.precision,Se=U.trim,pe=U.type;pe==="n"?(Ce=!0,pe="g"):d[pe]||(re===void 0&&(re=12),Se=!0,pe="g"),(ce||H==="0"&&Q==="=")&&(ce=!0,H="0",Q="=");var be=ne==="$"?D:ne==="#"&&/[boxX]/.test(pe)?"0"+pe.toLowerCase():"",Ae=ne==="$"?P:/[%p]/.test(pe)?O:"",ge=d[pe],B=/[defgprs%]/.test(pe);re=re===void 0?6:/[gprs]/.test(pe)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function $(Y){var le=be,he=Ae,me,Re,Ee;if(pe==="c")he=ge(Y)+he,Y="";else{Y=+Y;var Le=Y<0||1/Y<0;if(Y=isNaN(Y)?V:ge(Math.abs(Y),re),Se&&(Y=u(Y)),Le&&+Y==0&&Z!=="+"&&(Le=!1),le=(Le?Z==="("?Z:I:Z==="-"||Z==="("?"":Z)+le,he=(pe==="s"?g[8+f/3]:"")+he+(Le&&Z==="("?")":""),B){for(me=-1,Re=Y.length;++meEe||Ee>57){he=(Ee===46?z+Y.slice(me+1):Y.slice(me))+he,Y=Y.slice(0,me);break}}}Ce&&!ce&&(Y=q(Y,1/0));var Ve=le.length+Y.length+he.length,Ie=Ve>1)+le+Y+he+Ie.slice(Ve);break;default:Y=Ie+le+Y+he;break}return F(Y)}return $.toString=function(){return U+""},$}function G(U,H){var Q=J((U=o(U),U.type="f",U)),Z=Math.max(-8,Math.min(8,Math.floor(a(H)/3)))*3,ne=Math.pow(10,-Z),ce=g[8+Z/3];return function(ye){return Q(ne*ye)+ce}}return{format:J,formatPrefix:G}}var T;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(k){return T=_(k),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function b(k){return Math.max(0,-a(Math.abs(k)))}function M(k,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(k)))}function S(k,q){return k=Math.abs(k),q=Math.abs(q)-k,Math.max(0,a(q)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=_,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=S,Object.defineProperty(e,"__esModule",{value:!0})}))});var kb=K((Yie,Ab)=>{"use strict";Ab.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Hr=K((Uie,Cb)=>{"use strict";var bI=kb();Cb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&bI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Gt=K((Vie,Sb)=>{"use strict";Sb.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var j1=K((Mv,Lb)=>{(function(e,r){typeof Mv=="object"&&typeof Lb!="undefined"?r(Mv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Mv,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,v,h,d,m;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),g=new Uint8Array(y);for(u=0;u>4,g[f++]=(h&15)<<4|d>>2,g[f++]=(d&3)<<6|m&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var cl=K((Gie,qb)=>{"use strict";qb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Ka=K(Xn=>{"use strict";var xI=j1().decode,_I=cl(),ep=Array.isArray,wI=ArrayBuffer,TI=DataView;function Db(e){return wI.isView(e)&&!(e instanceof TI)}Xn.isTypedArray=Db;function Av(e){return ep(e)||Db(e)}Xn.isArrayOrTypedArray=Av;function MI(e){return!Av(e[0])}Xn.isArray1D=MI;Xn.ensureArray=function(e,r){return ep(e)||(e=[]),e.length=r,e};var ua={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ua.uint8c=ua.u1c;ua.uint8=ua.u1;ua.int8=ua.i1;ua.uint16=ua.u2;ua.int16=ua.i2;ua.uint32=ua.u4;ua.int32=ua.i4;ua.float32=ua.f4;ua.float64=ua.f8;function rp(e){return e.constructor===ArrayBuffer}Xn.isArrayBuffer=rp;Xn.decodeTypedArraySpec=function(e){var r=[],t=AI(e),a=t.dtype,n=ua[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;rp(l)||(l=xI(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,v=+o[0],h=i*v,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var Pb=Hr(),ap=Ka().isArrayOrTypedArray;Fb.exports=function(r,t){if(Pb(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var _s=kv(),qI=/^\w*$/,DI=0,Ib=1,Cv=2,Hb=3,lo=4;Ob.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=_s(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|Cv,v.set(h,null);if(f){for(i=d;i{"use strict";var EI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,PI=/^[^\.\[\]]+$/;Yb.exports=function(e,r){for(;r;){var t=e.match(EI);if(t)e=t[1];else if(e.match(PI))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Sv=K((Kie,Vb)=>{"use strict";var RI=Hr();Vb.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return RI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var Xb=K((Qie,Wb)=>{"use strict";var Gb=Ka().isArrayOrTypedArray,Ju=cl();Wb.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(Gb(n)&&Gb(i)&&Ju(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function zI(e,r){var t=e%r;return t<0?t+r:t}function NI(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Zb.exports={mod:zI,modHalf:NI}});var wn=K((jie,Lv)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(B,$){if(B=B||"",$=$||{},B instanceof s)return B;if(!(this instanceof s))return new s(B,$);var Y=u(B);this._originalInput=B,this._r=Y.r,this._g=Y.g,this._b=Y.b,this._a=Y.a,this._roundA=n(100*this._a)/100,this._format=$.format||Y.format,this._gradientType=$.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=Y.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var B=this.toRgb();return(B.r*299+B.g*587+B.b*114)/1e3},getLuminance:function(){var B=this.toRgb(),$,Y,le,he,me,Re;return $=B.r/255,Y=B.g/255,le=B.b/255,$<=.03928?he=$/12.92:he=e.pow(($+.055)/1.055,2.4),Y<=.03928?me=Y/12.92:me=e.pow((Y+.055)/1.055,2.4),le<=.03928?Re=le/12.92:Re=e.pow((le+.055)/1.055,2.4),.2126*he+.7152*me+.0722*Re},setAlpha:function(B){return this._a=U(B),this._roundA=n(100*this._a)/100,this},toHsv:function(){var B=d(this._r,this._g,this._b);return{h:B.h*360,s:B.s,v:B.v,a:this._a}},toHsvString:function(){var B=d(this._r,this._g,this._b),$=n(B.h*360),Y=n(B.s*100),le=n(B.v*100);return this._a==1?"hsv("+$+", "+Y+"%, "+le+"%)":"hsva("+$+", "+Y+"%, "+le+"%, "+this._roundA+")"},toHsl:function(){var B=v(this._r,this._g,this._b);return{h:B.h*360,s:B.s,l:B.l,a:this._a}},toHslString:function(){var B=v(this._r,this._g,this._b),$=n(B.h*360),Y=n(B.s*100),le=n(B.l*100);return this._a==1?"hsl("+$+", "+Y+"%, "+le+"%)":"hsla("+$+", "+Y+"%, "+le+"%, "+this._roundA+")"},toHex:function(B){return y(this._r,this._g,this._b,B)},toHexString:function(B){return"#"+this.toHex(B)},toHex8:function(B){return g(this._r,this._g,this._b,this._a,B)},toHex8String:function(B){return"#"+this.toHex8(B)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(H(this._r,255)*100)+"%",g:n(H(this._g,255)*100)+"%",b:n(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%)":"rgba("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:J[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(B){var $="#"+_(this._r,this._g,this._b,this._a),Y=$,le=this._gradientType?"GradientType = 1, ":"";if(B){var he=s(B);Y="#"+_(he._r,he._g,he._b,he._a)}return"progid:DXImageTransform.Microsoft.gradient("+le+"startColorstr="+$+",endColorstr="+Y+")"},toString:function(B){var $=!!B;B=B||this._format;var Y=!1,le=this._a<1&&this._a>=0,he=!$&&le&&(B==="hex"||B==="hex6"||B==="hex3"||B==="hex4"||B==="hex8"||B==="name");return he?B==="name"&&this._a===0?this.toName():this.toRgbString():(B==="rgb"&&(Y=this.toRgbString()),B==="prgb"&&(Y=this.toPercentageRgbString()),(B==="hex"||B==="hex6")&&(Y=this.toHexString()),B==="hex3"&&(Y=this.toHexString(!0)),B==="hex4"&&(Y=this.toHex8String(!0)),B==="hex8"&&(Y=this.toHex8String()),B==="name"&&(Y=this.toName()),B==="hsl"&&(Y=this.toHslString()),B==="hsv"&&(Y=this.toHsvString()),Y||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(B,$){var Y=B.apply(null,[this].concat([].slice.call($)));return this._r=Y._r,this._g=Y._g,this._b=Y._b,this.setAlpha(Y._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(B,$){return B.apply(null,[this].concat([].slice.call($)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},s.fromRatio=function(B,$){if(typeof B=="object"){var Y={};for(var le in B)B.hasOwnProperty(le)&&(le==="a"?Y[le]=B[le]:Y[le]=Ce(B[le]));B=Y}return s(B,$)};function u(B){var $={r:0,g:0,b:0},Y=1,le=null,he=null,me=null,Re=!1,Ee=!1;return typeof B=="string"&&(B=Ae(B)),typeof B=="object"&&(be(B.r)&&be(B.g)&&be(B.b)?($=f(B.r,B.g,B.b),Re=!0,Ee=String(B.r).substr(-1)==="%"?"prgb":"rgb"):be(B.h)&&be(B.s)&&be(B.v)?(le=Ce(B.s),he=Ce(B.v),$=m(B.h,le,he),Re=!0,Ee="hsv"):be(B.h)&&be(B.s)&&be(B.l)&&(le=Ce(B.s),me=Ce(B.l),$=h(B.h,le,me),Re=!0,Ee="hsl"),B.hasOwnProperty("a")&&(Y=B.a)),Y=U(Y),{ok:Re,format:B.format||Ee,r:i(255,l($.r,0)),g:i(255,l($.g,0)),b:i(255,l($.b,0)),a:Y}}function f(B,$,Y){return{r:H(B,255)*255,g:H($,255)*255,b:H(Y,255)*255}}function v(B,$,Y){B=H(B,255),$=H($,255),Y=H(Y,255);var le=l(B,$,Y),he=i(B,$,Y),me,Re,Ee=(le+he)/2;if(le==he)me=Re=0;else{var Le=le-he;switch(Re=Ee>.5?Le/(2-le-he):Le/(le+he),le){case B:me=($-Y)/Le+($1&&(Xe-=1),Xe<1/6?Ve+(Ie-Ve)*6*Xe:Xe<1/2?Ie:Xe<2/3?Ve+(Ie-Ve)*(2/3-Xe)*6:Ve}if($===0)le=he=me=Y;else{var Ee=Y<.5?Y*(1+$):Y+$-Y*$,Le=2*Y-Ee;le=Re(Le,Ee,B+1/3),he=Re(Le,Ee,B),me=Re(Le,Ee,B-1/3)}return{r:le*255,g:he*255,b:me*255}}function d(B,$,Y){B=H(B,255),$=H($,255),Y=H(Y,255);var le=l(B,$,Y),he=i(B,$,Y),me,Re,Ee=le,Le=le-he;if(Re=le===0?0:Le/le,le==he)me=0;else{switch(le){case B:me=($-Y)/Le+($>1)+720)%360;--$;)le.h=(le.h+he)%360,me.push(s(le));return me}function I(B,$){$=$||6;for(var Y=s(B).toHsv(),le=Y.h,he=Y.s,me=Y.v,Re=[],Ee=1/$;$--;)Re.push(s({h:le,s:he,v:me})),me=(me+Ee)%1;return Re}s.mix=function(B,$,Y){Y=Y===0?0:Y||50;var le=s(B).toRgb(),he=s($).toRgb(),me=Y/100,Re={r:(he.r-le.r)*me+le.r,g:(he.g-le.g)*me+le.g,b:(he.b-le.b)*me+le.b,a:(he.a-le.a)*me+le.a};return s(Re)},s.readability=function(B,$){var Y=s(B),le=s($);return(e.max(Y.getLuminance(),le.getLuminance())+.05)/(e.min(Y.getLuminance(),le.getLuminance())+.05)},s.isReadable=function(B,$,Y){var le=s.readability(B,$),he,me;switch(me=!1,he=ge(Y),he.level+he.size){case"AAsmall":case"AAAlarge":me=le>=4.5;break;case"AAlarge":me=le>=3;break;case"AAAsmall":me=le>=7;break}return me},s.mostReadable=function(B,$,Y){var le=null,he=0,me,Re,Ee,Le;Y=Y||{},Re=Y.includeFallbackColors,Ee=Y.level,Le=Y.size;for(var Ve=0;Ve<$.length;Ve++)me=s.readability(B,$[Ve]),me>he&&(he=me,le=s($[Ve]));return s.isReadable(B,le,{level:Ee,size:Le})||!Re?le:(Y.includeFallbackColors=!1,s.mostReadable(B,["#fff","#000"],Y))};var V=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},J=s.hexNames=G(V);function G(B){var $={};for(var Y in B)B.hasOwnProperty(Y)&&($[B[Y]]=Y);return $}function U(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function H(B,$){ne(B)&&(B="100%");var Y=ce(B);return B=i($,l(0,parseFloat(B))),Y&&(B=parseInt(B*$,10)/100),e.abs(B-$)<1e-6?1:B%$/parseFloat($)}function Q(B){return i(1,l(0,B))}function Z(B){return parseInt(B,16)}function ne(B){return typeof B=="string"&&B.indexOf(".")!=-1&&parseFloat(B)===1}function ce(B){return typeof B=="string"&&B.indexOf("%")!=-1}function ye(B){return B.length==1?"0"+B:""+B}function Ce(B){return B<=1&&(B=B*100+"%"),B}function re(B){return e.round(parseFloat(B)*255).toString(16)}function Se(B){return Z(B)/255}var pe=(function(){var B="[-\\+]?\\d+%?",$="[-\\+]?\\d*\\.\\d+%?",Y="(?:"+$+")|(?:"+B+")",le="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",he="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?";return{CSS_UNIT:new RegExp(Y),rgb:new RegExp("rgb"+le),rgba:new RegExp("rgba"+he),hsl:new RegExp("hsl"+le),hsla:new RegExp("hsla"+he),hsv:new RegExp("hsv"+le),hsva:new RegExp("hsva"+he),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function be(B){return!!pe.CSS_UNIT.exec(B)}function Ae(B){B=B.replace(r,"").replace(t,"").toLowerCase();var $=!1;if(V[B])B=V[B],$=!0;else if(B=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Y;return(Y=pe.rgb.exec(B))?{r:Y[1],g:Y[2],b:Y[3]}:(Y=pe.rgba.exec(B))?{r:Y[1],g:Y[2],b:Y[3],a:Y[4]}:(Y=pe.hsl.exec(B))?{h:Y[1],s:Y[2],l:Y[3]}:(Y=pe.hsla.exec(B))?{h:Y[1],s:Y[2],l:Y[3],a:Y[4]}:(Y=pe.hsv.exec(B))?{h:Y[1],s:Y[2],v:Y[3]}:(Y=pe.hsva.exec(B))?{h:Y[1],s:Y[2],v:Y[3],a:Y[4]}:(Y=pe.hex8.exec(B))?{r:Z(Y[1]),g:Z(Y[2]),b:Z(Y[3]),a:Se(Y[4]),format:$?"name":"hex8"}:(Y=pe.hex6.exec(B))?{r:Z(Y[1]),g:Z(Y[2]),b:Z(Y[3]),format:$?"name":"hex"}:(Y=pe.hex4.exec(B))?{r:Z(Y[1]+""+Y[1]),g:Z(Y[2]+""+Y[2]),b:Z(Y[3]+""+Y[3]),a:Se(Y[4]+""+Y[4]),format:$?"name":"hex8"}:(Y=pe.hex3.exec(B))?{r:Z(Y[1]+""+Y[1]),g:Z(Y[2]+""+Y[2]),b:Z(Y[3]+""+Y[3]),format:$?"name":"hex"}:!1}function ge(B){var $,Y;return B=B||{level:"AA",size:"small"},$=(B.level||"AA").toUpperCase(),Y=(B.size||"small").toLowerCase(),$!=="AA"&&$!=="AAA"&&($="AA"),Y!=="small"&&Y!=="large"&&(Y="small"),{level:$,size:Y}}typeof Lv!="undefined"&&Lv.exports?Lv.exports=s:window.tinycolor=s})(Math)});var Wt=K($u=>{"use strict";var Jb=cl(),Ku=Array.isArray;function FI(e,r){var t,a;for(t=0;t{"use strict";Kb.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var ju=K((tle,Qb)=>{"use strict";Qb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Ts=K((ale,ex)=>{"use strict";var $b=ju(),jb=ga(),np=jb({editType:"none"});np.family.dflt=$b.HOVERFONT;np.size.dflt=$b.HOVERFONTSIZE;ex.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:np,grouptitlefont:jb({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var qv=K((nle,rx)=>{"use strict";var II=ga(),ef=Ts().hoverlabel,rf=Wt().extendFlat;rx.exports={hoverlabel:{bgcolor:rf({},ef.bgcolor,{arrayOk:!0}),bordercolor:rf({},ef.bordercolor,{arrayOk:!0}),font:II({arrayOk:!0,editType:"none"}),align:rf({},ef.align,{arrayOk:!0}),namelength:rf({},ef.namelength,{arrayOk:!0}),showarrow:rf({},ef.showarrow),editType:"none"}}});var Zn=K((ile,tx)=>{"use strict";var HI=ga(),OI=qv();tx.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:HI({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:OI.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var oo=K((lle,ix)=>{"use strict";var BI=wn(),Dv={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},ax=Dv.RdBu;function YI(e,r){if(r||(r=ax),!e)return r;function t(){try{e=Dv[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),nx(e)?e:r}function nx(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";so.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];so.defaultLine="#444";so.lightLine="#eee";so.background="#fff";so.borderLine="#BEC8D9";so.lightFraction=1e3/11});var Er=K((sle,lx)=>{"use strict";var Qa=wn(),VI=Hr(),GI=Ka().isTypedArray,Qt=lx.exports={},Ev=gi();Qt.defaults=Ev.defaults;var WI=Qt.defaultLine=Ev.defaultLine;Qt.lightLine=Ev.lightLine;var lp=Qt.background=Ev.background;Qt.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};Qt.rgb=function(e){return Qt.tinyRGB(Qa(e))};Qt.opacity=function(e){return e?Qa(e).getAlpha():0};Qt.addOpacity=function(e,r){var t=Qa(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};Qt.combine=function(e,r){var t=Qa(e).toRgb();if(t.a===1)return Qa(e).toRgbString();var a=Qa(r||lp).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Qa(i).toRgbString()};Qt.interpolate=function(e,r,t){var a=Qa(e).toRgb(),n=Qa(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Qa(i).toRgbString()};Qt.contrast=function(e,r,t){var a=Qa(e);a.getAlpha()!==1&&(a=Qa(Qt.combine(e,lp)));var n=a.isDark()?r?a.lighten(r):lp:t?a.darken(t):WI;return n.toString()};Qt.stroke=function(e,r){var t=Qa(r);e.style({stroke:Qt.tinyRGB(t),"stroke-opacity":t.getAlpha()})};Qt.fill=function(e,r){var t=Qa(r);e.style({fill:Qt.tinyRGB(t),"fill-opacity":t.getAlpha()})};Qt.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var Pv=K((ule,ox)=>{"use strict";ox.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Ms=K(sx=>{"use strict";sx.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var vx=K($a=>{"use strict";var op=Hr(),ux=wn(),fx=Wt().extendFlat,XI=Zn(),ZI=oo(),JI=Er(),KI=Pv().DESELECTDIM,As=kv(),cx=Ms().counter,QI=ws().modHalf,Jn=Ka().isArrayOrTypedArray,vl=Ka().isTypedArraySpec,hl=Ka().decodeTypedArraySpec;$a.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Jn(e)?e:vl(e)?hl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){vl(e)&&(e=hl(e)),!op(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}vl(e)&&(e=hl(e)),e%1||!op(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){vl(e)&&(e=hl(e)),ux(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return ux(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(ZI.get(e,t))}},angle:{coerceFunction:function(e,r,t){vl(e)&&(e=hl(e)),e==="auto"?r.set("auto"):op(e)?r.set(QI(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||cx(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&Jn(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!cx(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var hx={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},dx={};function px(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),px(a,r[t]))}}px(hx,dx);mx.exports={configAttributes:hx,dfltConfig:dx}});var up=K((hle,yx)=>{"use strict";var sp=zr(),$I=Hr(),tf=[];yx.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||tf.indexOf(e)!==-1)return;tf.push(e);var a=1e3;$I(r)?a=r:r==="long"&&(a=3e3);var n=sp.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(tf);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=tf.indexOf(u);f!==-1&&tf.splice(f,1),sp.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=sp.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),v=s.split(//g),h=0;h{"use strict";var ks=uo().dfltConfig,fp=up(),cp=gx.exports={};cp.log=function(){var e;if(ks.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};cp.warn=function(){var e;if(ks.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};cp.error=function(){var e;if(ks.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var zv=K((ple,bx)=>{"use strict";bx.exports=function(){}});var vp=K((mle,xx)=>{"use strict";xx.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{_x.exports=jI;function jI(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Mx=K((gle,Tx)=>{Tx.exports=eH;function eH(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var kx=K((ble,Ax)=>{Ax.exports=rH;function rH(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var hp=K((xle,Cx)=>{Cx.exports=tH;function tH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Lx=K((_le,Sx)=>{Sx.exports=aH;function aH(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var Dx=K((wle,qx)=>{qx.exports=nH;function nH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],y=r[13],g=r[14],_=r[15],T=t*o-a*l,w=t*s-n*l,b=t*u-i*l,M=a*s-n*o,S=a*u-i*o,k=n*u-i*s,q=f*y-v*m,D=f*g-h*m,P=f*_-d*m,z=v*g-h*y,F=v*_-d*y,O=h*_-d*g,I=T*O-w*F+b*z+M*P-S*D+k*q;return I?(I=1/I,e[0]=(o*O-s*F+u*z)*I,e[1]=(n*F-a*O-i*z)*I,e[2]=(y*k-g*S+_*M)*I,e[3]=(h*S-v*k-d*M)*I,e[4]=(s*P-l*O-u*D)*I,e[5]=(t*O-n*P+i*D)*I,e[6]=(g*b-m*k-_*w)*I,e[7]=(f*k-h*b+d*w)*I,e[8]=(l*F-o*P+u*q)*I,e[9]=(a*P-t*F-i*q)*I,e[10]=(m*S-y*b+_*T)*I,e[11]=(v*b-f*S-d*T)*I,e[12]=(o*D-l*z-s*q)*I,e[13]=(t*z-a*D+n*q)*I,e[14]=(y*w-m*M-g*T)*I,e[15]=(f*M-v*w+h*T)*I,e):null}});var Px=K((Tle,Ex)=>{Ex.exports=iH;function iH(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],y=r[13],g=r[14],_=r[15];return e[0]=o*(h*_-d*g)-v*(s*_-u*g)+y*(s*d-u*h),e[1]=-(a*(h*_-d*g)-v*(n*_-i*g)+y*(n*d-i*h)),e[2]=a*(s*_-u*g)-o*(n*_-i*g)+y*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+v*(n*u-i*s)),e[4]=-(l*(h*_-d*g)-f*(s*_-u*g)+m*(s*d-u*h)),e[5]=t*(h*_-d*g)-f*(n*_-i*g)+m*(n*d-i*h),e[6]=-(t*(s*_-u*g)-l*(n*_-i*g)+m*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(v*_-d*y)-f*(o*_-u*y)+m*(o*d-u*v),e[9]=-(t*(v*_-d*y)-f*(a*_-i*y)+m*(a*d-i*v)),e[10]=t*(o*_-u*y)-l*(a*_-i*y)+m*(a*u-i*o),e[11]=-(t*(o*d-u*v)-l*(a*d-i*v)+f*(a*u-i*o)),e[12]=-(l*(v*g-h*y)-f*(o*g-s*y)+m*(o*h-s*v)),e[13]=t*(v*g-h*y)-f*(a*g-n*y)+m*(a*h-n*v),e[14]=-(t*(o*g-s*y)-l*(a*g-n*y)+m*(a*s-n*o)),e[15]=t*(o*h-s*v)-l*(a*h-n*v)+f*(a*s-n*o),e}});var zx=K((Mle,Rx)=>{Rx.exports=lH;function lH(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],y=e[14],g=e[15],_=r*l-t*i,T=r*o-a*i,w=r*s-n*i,b=t*o-a*l,M=t*s-n*l,S=a*s-n*o,k=u*m-f*d,q=u*y-v*d,D=u*g-h*d,P=f*y-v*m,z=f*g-h*m,F=v*g-h*y;return _*F-T*z+w*P+b*D-M*q+S*k}});var Fx=K((Ale,Nx)=>{Nx.exports=oH;function oH(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],y=r[12],g=r[13],_=r[14],T=r[15],w=t[0],b=t[1],M=t[2],S=t[3];return e[0]=w*a+b*o+M*v+S*y,e[1]=w*n+b*s+M*h+S*g,e[2]=w*i+b*u+M*d+S*_,e[3]=w*l+b*f+M*m+S*T,w=t[4],b=t[5],M=t[6],S=t[7],e[4]=w*a+b*o+M*v+S*y,e[5]=w*n+b*s+M*h+S*g,e[6]=w*i+b*u+M*d+S*_,e[7]=w*l+b*f+M*m+S*T,w=t[8],b=t[9],M=t[10],S=t[11],e[8]=w*a+b*o+M*v+S*y,e[9]=w*n+b*s+M*h+S*g,e[10]=w*i+b*u+M*d+S*_,e[11]=w*l+b*f+M*m+S*T,w=t[12],b=t[13],M=t[14],S=t[15],e[12]=w*a+b*o+M*v+S*y,e[13]=w*n+b*s+M*h+S*g,e[14]=w*i+b*u+M*d+S*_,e[15]=w*l+b*f+M*m+S*T,e}});var Hx=K((kle,Ix)=>{Ix.exports=sH;function sH(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,v,h,d,m,y,g,_;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],y=r[9],g=r[10],_=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=y,e[10]=g,e[11]=_,e[12]=l*a+f*n+m*i+r[12],e[13]=o*a+v*n+y*i+r[13],e[14]=s*a+h*n+g*i+r[14],e[15]=u*a+d*n+_*i+r[15]),e}});var Bx=K((Cle,Ox)=>{Ox.exports=uH;function uH(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Ux=K((Sle,Yx)=>{Yx.exports=fH;function fH(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,v,h,d,m,y,g,_,T,w,b,M,S,k,q,D,P,z,F,O,I,V;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],y=r[4],g=r[5],_=r[6],T=r[7],w=r[8],b=r[9],M=r[10],S=r[11],k=n*n*f+u,q=i*n*f+l*s,D=l*n*f-i*s,P=n*i*f-l*s,z=i*i*f+u,F=l*i*f+n*s,O=n*l*f+i*s,I=i*l*f-n*s,V=l*l*f+u,e[0]=v*k+y*q+w*D,e[1]=h*k+g*q+b*D,e[2]=d*k+_*q+M*D,e[3]=m*k+T*q+S*D,e[4]=v*P+y*z+w*F,e[5]=h*P+g*z+b*F,e[6]=d*P+_*z+M*F,e[7]=m*P+T*z+S*F,e[8]=v*O+y*I+w*V,e[9]=h*O+g*I+b*V,e[10]=d*O+_*I+M*V,e[11]=m*O+T*I+S*V,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Gx=K((Lle,Vx)=>{Vx.exports=cH;function cH(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+v*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=v*n-o*a,e[11]=h*n-s*a,e}});var Xx=K((qle,Wx)=>{Wx.exports=vH;function vH(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-v*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+v*n,e[11]=s*a+h*n,e}});var Jx=K((Dle,Zx)=>{Zx.exports=hH;function hH(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+v*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=v*n-o*a,e[7]=h*n-s*a,e}});var Qx=K((Ele,Kx)=>{Kx.exports=dH;function dH(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var jx=K((Ple,$x)=>{$x.exports=pH;function pH(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,v=a*s,h=a*u,d=n*s,m=n*u,y=i*u,g=l*o,_=l*s,T=l*u;return e[0]=1-(d+y),e[1]=v+T,e[2]=h-_,e[3]=0,e[4]=v-T,e[5]=1-(f+y),e[6]=m+g,e[7]=0,e[8]=h+_,e[9]=m-g,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var r_=K((Rle,e_)=>{e_.exports=mH;function mH(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var a_=K((zle,t_)=>{t_.exports=yH;function yH(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var i_=K((Nle,n_)=>{n_.exports=gH;function gH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var o_=K((Fle,l_)=>{l_.exports=bH;function bH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var u_=K((Ile,s_)=>{s_.exports=xH;function xH(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var c_=K((Hle,f_)=>{f_.exports=_H;function _H(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,v=a*o,h=n*l,d=n*o,m=n*s,y=i*l,g=i*o,_=i*s;return e[0]=1-v-m,e[1]=f+_,e[2]=h-g,e[3]=0,e[4]=f-_,e[5]=1-u-m,e[6]=d+y,e[7]=0,e[8]=h+g,e[9]=d-y,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var h_=K((Ole,v_)=>{v_.exports=wH;function wH(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var p_=K((Ble,d_)=>{d_.exports=TH;function TH(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var y_=K((Yle,m_)=>{m_.exports=MH;function MH(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var b_=K((Ule,g_)=>{g_.exports=AH;function AH(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var __=K((Vle,x_)=>{var kH=hp();x_.exports=CH;function CH(e,r,t,a){var n,i,l,o,s,u,f,v,h,d,m=r[0],y=r[1],g=r[2],_=a[0],T=a[1],w=a[2],b=t[0],M=t[1],S=t[2];return Math.abs(m-b)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(g-S)<1e-6?kH(e):(f=m-b,v=y-M,h=g-S,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,n=T*h-w*v,i=w*f-_*h,l=_*v-T*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=v*l-h*i,s=h*n-f*l,u=f*i-v*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*m+i*y+l*g),e[13]=-(o*m+s*y+u*g),e[14]=-(f*m+v*y+h*g),e[15]=1,e)}});var T_=K((Gle,w_)=>{w_.exports=SH;function SH(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var dp=K((Wle,M_)=>{M_.exports={create:wx(),clone:Mx(),copy:kx(),identity:hp(),transpose:Lx(),invert:Dx(),adjoint:Px(),determinant:zx(),multiply:Fx(),translate:Hx(),scale:Bx(),rotate:Ux(),rotateX:Gx(),rotateY:Xx(),rotateZ:Jx(),fromRotation:Qx(),fromRotationTranslation:jx(),fromScaling:r_(),fromTranslation:a_(),fromXRotation:i_(),fromYRotation:o_(),fromZRotation:u_(),fromQuat:c_(),frustum:h_(),perspective:p_(),perspectiveFromFieldOfView:y_(),ortho:b_(),lookAt:__(),str:T_()}});var Nv=K(Lt=>{"use strict";var LH=dp();Lt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var qH=zr(),A_=fo(),DH=Nv(),EH=dp();function PH(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function RH(e){var r=qH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function k_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function zH(e,r){C_("global",e,r)}function C_(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):A_.warn("addStyleRule failed"):A_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function NH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&k_(t)}function FH(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function IH(e){var r=L_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=S_(a);if(n){var i=DH.convertCssMatrix(n);t=EH.multiply(t,t,i)}}),t}function S_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function L_(e){for(var r=[];HH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function HH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function OH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}q_.exports={getGraphDiv:PH,isPlotDiv:RH,removeElement:k_,addStyleRule:zH,addRelatedStyleRule:C_,deleteRelatedStyleRule:NH,setStyleOnHover:FH,getFullTransformMatrix:IH,getElementTransformMatrix:S_,getElementAndAncestors:L_,equalDomRects:OH}});var nf=K((Jle,D_)=>{"use strict";D_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var bi=K((Kle,I_)=>{"use strict";var P_=Wt().extendFlat,BH=cl(),R_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},z_={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},YH=R_.flags.slice().concat(["fullReplot"]),UH=z_.flags.slice().concat("layoutReplot");I_.exports={traces:R_,layout:z_,traceFlags:function(){return E_(YH)},layoutFlags:function(){return E_(UH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";pp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};pp.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var mp=K(($le,H_)=>{"use strict";H_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var co=K(Cs=>{"use strict";var{DATE_FORMAT_LINK:VH,FORMAT_LINK:GH}=mp(),WH=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function XH({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,GH,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,VH,"for details on the date formatting syntax.",WH].join(" ")}Cs.templateFormatStringDescription=XH;Cs.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>io({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Cs.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>io({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Cs.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Cs.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Hv=K((roe,G_)=>{"use strict";function dl(e,r){return r?r.d2l(e):e}function O_(e,r){return r?r.l2d(e):e}function ZH(e){return e.x0}function JH(e){return e.x1}function KH(e){return e.y0}function QH(e){return e.y1}function B_(e){return e.x0shift||0}function Y_(e){return e.x1shift||0}function U_(e){return e.y0shift||0}function V_(e){return e.y1shift||0}function Fv(e,r){return dl(e.x1,r)+Y_(e)-dl(e.x0,r)-B_(e)}function Iv(e,r,t){return dl(e.y1,t)+V_(e)-dl(e.y0,t)-U_(e)}function $H(e,r){return Math.abs(Fv(e,r))}function jH(e,r,t){return Math.abs(Iv(e,r,t))}function eO(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Fv(e,r),2)+Math.pow(Iv(e,r,t),2))}function rO(e,r){return O_((dl(e.x1,r)+Y_(e)+dl(e.x0,r)+B_(e))/2,r)}function tO(e,r,t){return O_((dl(e.y1,t)+V_(e)+dl(e.y0,t)+U_(e))/2,t)}function aO(e,r,t){return e.type!=="line"?void 0:Iv(e,r,t)/Fv(e,r)}var nO=["x0","x1","y0","y1","dy","height","ycenter"],iO=["x0","x1","y0","y1","dx","width","xcenter"];G_.exports={x0:ZH,x1:JH,y0:KH,y1:QH,slope:aO,dx:Fv,dy:Iv,width:$H,height:jH,length:eO,xcenter:rO,ycenter:tO,simpleXVariables:nO,simpleYVariables:iO}});var Z_=K((toe,X_)=>{"use strict";var lO=bi().overrideAll,vo=Zn(),W_=ga(),oO=xi().dash,pl=Wt().extendFlat,{shapeTexttemplateAttrs:sO,templatefallbackAttrs:uO}=co(),fO=Hv();X_.exports=lO({newshape:{visible:pl({},vo.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:pl({},vo.legend,{}),legendgroup:pl({},vo.legendgroup,{}),legendgrouptitle:{text:pl({},vo.legendgrouptitle.text,{}),font:W_({})},legendrank:pl({},vo.legendrank,{}),legendwidth:pl({},vo.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:pl({},oO,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:pl({},vo.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:sO({newshape:!0},{keys:Object.keys(fO)}),texttemplatefallback:uO({editType:"arraydraw"}),font:W_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var K_=K((aoe,J_)=>{"use strict";var cO=xi().dash,vO=Wt().extendFlat;J_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:vO({},cO,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Ov=K((noe,Q_)=>{"use strict";Q_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Ss=K((ioe,r4)=>{"use strict";var yp=ga(),hO=nf(),Bv=gi(),$_=Z_(),j_=K_(),dO=Ov(),e4=Wt().extendFlat,Yv=yp({editType:"calc"});Yv.family.dflt='"Open Sans", verdana, arial, sans-serif';Yv.size.dflt=12;Yv.color.dflt=Bv.defaultLine;r4.exports={font:Yv,title:{text:{valType:"string",editType:"layoutstyle"},font:yp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:yp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:e4(dO({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Bv.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Bv.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Bv.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:$_.newshape,activeshape:$_.activeshape,newselection:j_.newselection,activeselection:j_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:e4({},hO.transition,{editType:"none"})}});var t4=K(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var br=K(Nr=>{"use strict";var Ls=fo(),a4=zv(),n4=vp(),pO=cl(),mO=af().addStyleRule,i4=Wt(),yO=Zn(),gO=Ss(),bO=i4.extendFlat,gp=i4.extendDeepAll;Nr.modules={};Nr.allCategories={};Nr.allTypes=[];Nr.subplotsRegistry={};Nr.componentsRegistry={};Nr.layoutArrayContainers=[];Nr.layoutArrayRegexes=[];Nr.traceLayoutAttributes={};Nr.localeRegistry={};Nr.apiMethodRegistry={};Nr.collectableSubplotTypes=null;Nr.register=function(r){if(Nr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var AO=xs().timeFormat,m4=Hr(),bp=fo(),yl=ws().mod,Es=Gt(),Tn=Es.BADNUM,ja=Es.ONEDAY,lf=Es.ONEHOUR,ml=Es.ONEMIN,Ds=Es.ONESEC,of=Es.EPOCHJD,Ui=br(),f4=xs().utcFormat,kO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,CO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,c4=new Date().getFullYear()-70;function Vi(e){return e&&Ui.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}qt.dateTick0=function(e,r){var t=SO(e,!!r);if(r<2)return t;var a=qt.dateTime2ms(t,e);return a+=ja*(r-1),qt.ms2DateTime(a,0,e)};function SO(e,r){return Vi(e)?r?Ui.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ui.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}qt.dfltRange=function(e){return Vi(e)?Ui.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};qt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Vv,Gv;qt.dateTime2ms=function(e,r){if(qt.isJSDate(e)){var t=e.getTimezoneOffset()*ml,a=(e.getUTCMinutes()-e.getMinutes())*ml+(e.getUTCSeconds()-e.getSeconds())*Ds+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*ml;t=t-n/2+yl(a-t+n/2,n)}return e=Number(e)-t,e>=Vv&&e<=Gv?e:Tn}if(typeof e!="string"&&typeof e!="number")return Tn;e=String(e);var i=Vi(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?CO:kO);if(!s)return Tn;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return Tn;u=Number(u);var y;try{var g=Ui.getComponentMethod("calendars","getCal")(r);if(o){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=g.newDate(u,g.toMonthIndex(u,f,_),v)}else y=g.newDate(u,Number(f),v)}catch(w){return Tn}return y?(y.toJD()-of)*ja+h*lf+d*ml+m*Ds:Tn}u.length===2?u=(Number(u)+2e3-c4)%100+c4:u=Number(u),f-=1;var T=new Date(Date.UTC(2e3,f,v,h,d));return T.setUTCFullYear(u),T.getUTCMonth()!==f||T.getUTCDate()!==v?Tn:T.getTime()+m*Ds};Vv=qt.MIN_MS=qt.dateTime2ms("-9999");Gv=qt.MAX_MS=qt.dateTime2ms("9999-12-31 23:59:59.9999");qt.isDateTime=function(e,r){return qt.dateTime2ms(e,r)!==Tn};function qs(e,r){return String(e+Math.pow(10,r)).slice(1)}var Uv=90*ja,v4=3*lf,h4=5*ml;qt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Vv&&e<=Gv))return Tn;r||(r=0);var a=Math.floor(yl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Vi(t)){var v=Math.floor(n/ja)+of,h=Math.floor(yl(e,ja));try{i=Ui.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=f4("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=Vv+ja&&e<=Gv-ja))return Tn;var r=Math.floor(yl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=AO("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return y4(a,n,i,l,o)};function y4(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+qs(r,2)+":"+qs(t,2),(a||n)&&(e+=":"+qs(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+qs(n,i)}return e}qt.cleanDate=function(e,r,t){if(e===Tn)return r;if(qt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Vi(t))return bp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=qt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!qt.isDateTime(e,t))return bp.error("unrecognized date",e),r;return e};var LO=/%\d?f/g,qO=/%h/g,DO={1:"1",2:"1",3:"2",4:"2"};function d4(e,r,t,a){e=e.replace(LO,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(qO,function(){return DO[t("%q")(n)]}),Vi(a))try{e=Ui.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var EO=[59,59.9,59.99,59.999,59.9999];function PO(e,r){var t=yl(e+.05,ja),a=qs(Math.floor(t/lf),2)+":"+qs(yl(Math.floor(t/ml),60),2);if(r!=="M"){m4(r)||(r=0);var n=Math.min(yl(e/Ds,60),EO[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}qt.formatDate=function(e,r,t,a,n,i){if(n=Vi(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return PO(e,t)+` +`+d4(i.dayMonthYear,e,a,n);return d4(r,e,a,n)};var p4=3*ja;qt.incrementMonth=function(e,r,t){t=Vi(t)&&t;var a=yl(e,ja);if(e=Math.round(e-a),t)try{var n=Math.round(e/ja)+of,i=Ui.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-of)*ja+a}catch(s){bp.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+p4);return o.setUTCMonth(o.getUTCMonth()+r)+a-p4};qt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Vi(r)&&Ui.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";b4.exports=function(r){return r}});var wp=K(Gi=>{"use strict";var RO=Hr(),zO=fo(),NO=xp(),FO=Gt().BADNUM,_p=1e-9;Gi.findBin=function(e,r,t){if(RO(r.start))return t?Math.ceil((e-r.start)/r.size-_p)-1:Math.floor((e-r.start)/r.size+_p);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?IO:HO:s=t?BO:OO,e+=l*_p*(t?-1:1)*(l>=0?1:-1);a90&&zO.log("Long binary search..."),a-1};function IO(e,r){return er}function BO(e,r){return e>=r}Gi.sorterAsc=function(e,r){return e-r};Gi.sorterDes=function(e,r){return r-e};Gi.distinctVals=function(e){var r=e.slice();r.sort(Gi.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===FO;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};Gi.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Gi.findIndexOfMin=function(e,r){r=r||NO;for(var t=1/0,a,n=0;n{"use strict";x4.exports=function(r){return Object.keys(r).sort()}});var _4=K(Dt=>{"use strict";var sf=Hr(),YO=Ka().isArrayOrTypedArray;Dt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),sf(r)||(r=!1),YO(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var k4=K((doe,A4)=>{"use strict";var w4=ws(),Mp=w4.mod,UO=w4.modHalf,uf=Math.PI,gl=2*uf;function VO(e){return e/180*uf}function GO(e){return e/uf*180}function Ap(e){return Math.abs(e[1]-e[0])>gl-1e-14}function T4(e,r){return UO(r-e,gl)}function WO(e,r){return Math.abs(T4(e,r))}function M4(e,r){if(Ap(r))return!0;var t,a;r[0]a&&(a+=gl);var n=Mp(e,gl),i=n+gl;return n>=t&&n<=a||i>=t&&i<=a}function XO(e,r,t,a){if(!M4(r,a))return!1;var n,i;return t[0]=n&&e<=i}function kp(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=Ap([t,a]),s,u,f,v,h;o?(s=0,u=uf,f=gl):t{"use strict";ho.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ho.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ho.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ho.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ho.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ho.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var q4=K(po=>{"use strict";var Cp=ws().mod;po.segmentsIntersect=L4;function L4(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,v=a-r,h=i-r,d=o-i,m=s*d-f*v;if(m===0)return null;var y=(u*d-f*h)/m,g=(u*v-s*h)/m;return g<0||g>1||y<0||y>1?null:{x:e+s*y,y:r+v*y}}po.segmentDistance=function(r,t,a,n,i,l,o,s){if(L4(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,v=o-i,h=s-l,d=u*u+f*f,m=v*v+h*h,y=Math.min(Wv(u,f,d,i-r,l-t),Wv(u,f,d,o-r,s-t),Wv(v,h,m,r-i,t-l),Wv(v,h,m,a-i,n-l));return Math.sqrt(y)};function Wv(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Xv,Sp,S4;po.getTextLocation=function(r,t,a,n){if((r!==Sp||n!==S4)&&(Xv={},Sp=r,S4=n),Xv[a])return Xv[a];var i=r.getPointAtLength(Cp(a-n/2,t)),l=r.getPointAtLength(Cp(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(Cp(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,v={x:u,y:f,theta:o};return Xv[a]=v,v};po.clearLocationCache=function(){Sp=null};po.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(y){var g=r.getPointAtLength(y);y===0?v=g:y===u&&(h=g);var _=g.xi?g.x-i:0,T=g.yo?g.y-o:0;return Math.sqrt(_*_+T*T)}for(var m=d(s);m;){if(s+=m+a,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+a,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};po.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var Zv=K(ff=>{"use strict";var Wi={};ff.throttle=function(r,t,a){var n=Wi[r],i=Date.now();if(!n){for(var l in Wi)Wi[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};ff.done=function(e){var r=Wi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};ff.clear=function(e){if(e)D4(Wi[e]),delete Wi[e];else for(var r in Wi)ff.clear(r)};function D4(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var P4=K((goe,E4)=>{"use strict";E4.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var R4=K((boe,Jv)=>{"use strict";Jv.exports=Lp;Jv.exports.isMobile=Lp;Jv.exports.default=Lp;var QO=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,$O=/CrOS/,jO=/android|ipad|playbook|silk/i;function Lp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=QO.test(r)&&!$O.test(r)||!!e.tablet&&jO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var N4=K((xoe,z4)=>{"use strict";var eB=Hr(),rB=R4();z4.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=tB(),typeof t!="string")return!0;var a=rB({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(eB(u)&&(u=+u),u>=13)return!0}}}return a};function tB(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var I4=K((_oe,F4)=>{"use strict";var aB=zr();F4.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=aB.select(this)}),n}});var O4=K((woe,H4)=>{"use strict";var nB=br();H4.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=nB.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var Y4=K((Toe,B4)=>{"use strict";B4.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";U4.exports=function(r){for(var t=oB(r)?lB:iB,a=[],n=0;n{"use strict";G4.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var Z4=K((koe,X4)=>{"use strict";var sB=Hr(),uB=Gt().BADNUM,fB=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;X4.exports=function(r){return typeof r=="string"&&(r=r.replace(fB,"")),sB(r)?Number(r):uB}});var Fe=K((Coe,o6)=>{"use strict";var cf=zr(),cB=xs().utcFormat,vB=$1().format,e6=Hr(),r6=Gt(),t6=r6.FP_SAFE,hB=-t6,J4=r6.BADNUM,fe=o6.exports={};fe.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var K4={};fe.warnBadFormat=function(e){var r=String(e);K4[r]||(K4[r]=1,fe.warn('encountered bad format: "'+r+'"'))};fe.noFormat=function(e){return String(e)};fe.numberFormat=function(e){var r;try{r=vB(fe.adjustFormat(e))}catch(t){return fe.warnBadFormat(e),fe.noFormat}return r};fe.nestedProperty=kv();fe.keyedContainer=Bb();fe.relativeAttr=Ub();fe.isPlainObject=cl();fe.toLogRange=Sv();fe.relinkPrivateKeys=Xb();var bl=Ka();fe.isArrayBuffer=bl.isArrayBuffer;fe.isTypedArray=bl.isTypedArray;fe.isArrayOrTypedArray=bl.isArrayOrTypedArray;fe.isArray1D=bl.isArray1D;fe.ensureArray=bl.ensureArray;fe.concat=bl.concat;fe.maxRowLength=bl.maxRowLength;fe.minRowLength=bl.minRowLength;var a6=ws();fe.mod=a6.mod;fe.modHalf=a6.modHalf;var xl=vx();fe.valObjectMeta=xl.valObjectMeta;fe.coerce=xl.coerce;fe.coerce2=xl.coerce2;fe.coerceFont=xl.coerceFont;fe.coercePattern=xl.coercePattern;fe.coerceHoverinfo=xl.coerceHoverinfo;fe.coerceSelectionMarkerOpacity=xl.coerceSelectionMarkerOpacity;fe.validate=xl.validate;var sn=g4();fe.dateTime2ms=sn.dateTime2ms;fe.isDateTime=sn.isDateTime;fe.ms2DateTime=sn.ms2DateTime;fe.ms2DateTimeLocal=sn.ms2DateTimeLocal;fe.cleanDate=sn.cleanDate;fe.isJSDate=sn.isJSDate;fe.formatDate=sn.formatDate;fe.incrementMonth=sn.incrementMonth;fe.dateTick0=sn.dateTick0;fe.dfltRange=sn.dfltRange;fe.findExactDates=sn.findExactDates;fe.MIN_MS=sn.MIN_MS;fe.MAX_MS=sn.MAX_MS;var mo=wp();fe.findBin=mo.findBin;fe.sorterAsc=mo.sorterAsc;fe.sorterDes=mo.sorterDes;fe.distinctVals=mo.distinctVals;fe.roundUp=mo.roundUp;fe.sort=mo.sort;fe.findIndexOfMin=mo.findIndexOfMin;fe.sortObjectKeys=Tp();var Xi=_4();fe.aggNums=Xi.aggNums;fe.len=Xi.len;fe.mean=Xi.mean;fe.geometricMean=Xi.geometricMean;fe.median=Xi.median;fe.midRange=Xi.midRange;fe.variance=Xi.variance;fe.stdev=Xi.stdev;fe.interp=Xi.interp;var Kn=Nv();fe.init2dArray=Kn.init2dArray;fe.transposeRagged=Kn.transposeRagged;fe.dot=Kn.dot;fe.translationMatrix=Kn.translationMatrix;fe.rotationMatrix=Kn.rotationMatrix;fe.rotationXYMatrix=Kn.rotationXYMatrix;fe.apply3DTransform=Kn.apply3DTransform;fe.apply2DTransform=Kn.apply2DTransform;fe.apply2DTransform2=Kn.apply2DTransform2;fe.convertCssMatrix=Kn.convertCssMatrix;fe.inverseTransformMatrix=Kn.inverseTransformMatrix;var _i=k4();fe.deg2rad=_i.deg2rad;fe.rad2deg=_i.rad2deg;fe.angleDelta=_i.angleDelta;fe.angleDist=_i.angleDist;fe.isFullCircle=_i.isFullCircle;fe.isAngleInsideSector=_i.isAngleInsideSector;fe.isPtInsideSector=_i.isPtInsideSector;fe.pathArc=_i.pathArc;fe.pathSector=_i.pathSector;fe.pathAnnulus=_i.pathAnnulus;var Rs=C4();fe.isLeftAnchor=Rs.isLeftAnchor;fe.isCenterAnchor=Rs.isCenterAnchor;fe.isRightAnchor=Rs.isRightAnchor;fe.isTopAnchor=Rs.isTopAnchor;fe.isMiddleAnchor=Rs.isMiddleAnchor;fe.isBottomAnchor=Rs.isBottomAnchor;var zs=q4();fe.segmentsIntersect=zs.segmentsIntersect;fe.segmentDistance=zs.segmentDistance;fe.getTextLocation=zs.getTextLocation;fe.clearLocationCache=zs.clearLocationCache;fe.getVisibleSegment=zs.getVisibleSegment;fe.findPointOnPath=zs.findPointOnPath;var $v=Wt();fe.extendFlat=$v.extendFlat;fe.extendDeep=$v.extendDeep;fe.extendDeepAll=$v.extendDeepAll;fe.extendDeepNoArrays=$v.extendDeepNoArrays;var qp=fo();fe.log=qp.log;fe.warn=qp.warn;fe.error=qp.error;var dB=Ms();fe.counterRegex=dB.counter;var Dp=Zv();fe.throttle=Dp.throttle;fe.throttleDone=Dp.done;fe.clearThrottle=Dp.clear;var Qn=af();fe.getGraphDiv=Qn.getGraphDiv;fe.isPlotDiv=Qn.isPlotDiv;fe.removeElement=Qn.removeElement;fe.addStyleRule=Qn.addStyleRule;fe.addRelatedStyleRule=Qn.addRelatedStyleRule;fe.deleteRelatedStyleRule=Qn.deleteRelatedStyleRule;fe.setStyleOnHover=Qn.setStyleOnHover;fe.getFullTransformMatrix=Qn.getFullTransformMatrix;fe.getElementTransformMatrix=Qn.getElementTransformMatrix;fe.getElementAndAncestors=Qn.getElementAndAncestors;fe.equalDomRects=Qn.equalDomRects;fe.clearResponsive=P4();fe.preserveDrawingBuffer=N4();fe.makeTraceGroups=I4();fe._=O4();fe.notifier=up();fe.filterUnique=Y4();fe.filterVisible=V4();fe.pushUnique=vp();fe.increment=W4();fe.cleanNumber=Z4();fe.ensureNumber=function(r){return e6(r)?(r=Number(r),r>t6||r=r?!1:e6(e)&&e>=0&&e%1===0};fe.noop=zv();fe.identity=xp();fe.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};fe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};fe.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(fe.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};fe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};fe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};fe.syncOrAsync=function(e,r,t){var a,n;function i(){return fe.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};fe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};fe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};fe.fillArray=function(e,r,t,a){if(a=a||fe.identity,fe.isArrayOrTypedArray(e))for(var n=0;nyB.test(window.navigator.userAgent);var gB=/Firefox\/(\d+)\.\d+/;fe.getFirefoxVersion=function(){var e=gB.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};fe.isD3Selection=function(e){return e instanceof cf.selection};fe.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};fe.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};fe.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};fe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var l6=/^\w*$/;fe.templateString=function(e,r){var t={};return e.replace(fe.TEMPLATE_STRING_REGEX,function(a,n){var i;return l6.test(n)?i=r[n]:(t[n]=t[n]||fe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var _B={max:10,count:0,name:"hovertemplate"};fe.hovertemplateString=e=>Ep(gv(io({},e),{opts:_B}));var wB={max:10,count:0,name:"texttemplate"};fe.texttemplateString=e=>Ep(gv(io({},e),{opts:wB}));var TB=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function MB(e){var r=e.match(TB);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var AB={max:10,count:0,name:"texttemplate",parseMultDiv:!0};fe.texttemplateStringForShapes=e=>Ep(gv(io({},e),{opts:AB}));var Q4=/^[:|\|]/;function Ep({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(fe.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),v=["_xother_","_yother_"].includes(o),h=["xother_","yother_"].includes(o),d=u||f||h||v;(f||v)&&(o=o.substring(1)),(h||v)&&(o=o.substring(0,o.length-1));let m=null,y=null;if(n.parseMultDiv){var g=MB(o);o=g.key,m=g.op,y=g.number}let _;if(d){if(a[o]===void 0)return"";_=a[o]}else for(let M of e)if(M){if(M.hasOwnProperty(o)){_=M[o];break}if(l6.test(o)||(_=fe.nestedProperty(M,o).get(!0)),_!==void 0)break}if(_===void 0){let{count:M,max:S,name:k}=n,q=t===!1?l:t;return M=Qv&&l<=$4,u=o>=Qv&&o<=$4;if(s&&(a=10*a+l-Qv),u&&(n=10*n+o-Qv),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Ps=2e9;fe.seedPseudoRandom=function(){Ps=2e9};fe.pseudoRandom=function(){var e=Ps;return Ps=(69069*Ps+1)%4294967296,Math.abs(Ps-e)<429496729?fe.pseudoRandom():Ps/4294967296};fe.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=fe.extractOption(e,r,"htx","hovertext");if(fe.isValidTextValue(n))return a(n);var i=fe.extractOption(e,r,"tx","text");if(fe.isValidTextValue(i))return a(i)};fe.isValidTextValue=function(e){return e||e===0};fe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,fe.strTranslate(n-u*(t+l),i-u*(a+o))+fe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};fe.setTransormAndDisplay=function(e,r){e.attr("transform",fe.getTextTransform(r)),e.style("display",r.scale?null:"none")};fe.ensureUniformFontSize=function(e,r){var t=fe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};fe.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};fe.bigFont=function(e){return Math.round(1.2*e)};var j4=fe.getFirefoxVersion(),kB=j4!==null&&j4<86;fe.getPositionFromD3Event=function(){return kB?[cf.event.layerX,cf.event.layerY]:[cf.event.offsetX,cf.event.offsetY]}});var f6=K(()=>{"use strict";var CB=Fe(),s6={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#fff;border-color:#e0e2e5;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#f3f3f3;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Pp in s6)u6=Pp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),CB.addStyleRule(u6,s6[Pp]);var u6,Pp});var Rp=K((Doe,c6)=>{c6.exports=!0});var Np=K((Eoe,v6)=>{"use strict";var SB=Rp(),zp;typeof window.matchMedia=="function"?zp=!window.matchMedia("(hover: none)").matches:zp=SB;v6.exports=zp});var r0=K((Poe,Fp)=>{"use strict";var Ns=typeof Reflect=="object"?Reflect:null,h6=Ns&&typeof Ns.apply=="function"?Ns.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},jv;Ns&&typeof Ns.ownKeys=="function"?jv=Ns.ownKeys:Object.getOwnPropertySymbols?jv=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:jv=function(r){return Object.getOwnPropertyNames(r)};function LB(e){console&&console.warn&&console.warn(e)}var p6=Number.isNaN||function(r){return r!==r};function ht(){ht.init.call(this)}Fp.exports=ht;Fp.exports.once=PB;ht.EventEmitter=ht;ht.prototype._events=void 0;ht.prototype._eventsCount=0;ht.prototype._maxListeners=void 0;var d6=10;function e0(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ht,"defaultMaxListeners",{enumerable:!0,get:function(){return d6},set:function(e){if(typeof e!="number"||e<0||p6(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");d6=e}});ht.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ht.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||p6(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function m6(e){return e._maxListeners===void 0?ht.defaultMaxListeners:e._maxListeners}ht.prototype.getMaxListeners=function(){return m6(this)};ht.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")h6(s,this,t);else for(var u=s.length,f=_6(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,LB(o)}return e}ht.prototype.addListener=function(r,t){return y6(this,r,t,!1)};ht.prototype.on=ht.prototype.addListener;ht.prototype.prependListener=function(r,t){return y6(this,r,t,!0)};function qB(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g6(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=qB.bind(a);return n.listener=t,a.wrapFn=n,n}ht.prototype.once=function(r,t){return e0(t),this.on(r,g6(this,r,t)),this};ht.prototype.prependOnceListener=function(r,t){return e0(t),this.prependListener(r,g6(this,r,t)),this};ht.prototype.removeListener=function(r,t){var a,n,i,l,o;if(e0(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():DB(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};ht.prototype.off=ht.prototype.removeListener;ht.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function b6(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?EB(n):_6(n,n.length)}ht.prototype.listeners=function(r){return b6(this,r,!0)};ht.prototype.rawListeners=function(r){return b6(this,r,!1)};ht.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):x6.call(e,r)};ht.prototype.listenerCount=x6;function x6(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}ht.prototype.eventNames=function(){return this._eventsCount>0?jv(this._events):[]};function _6(e,r){for(var t=new Array(r),a=0;a{"use strict";var Ip=r0().EventEmitter,zB={init:function(e){if(e._ev instanceof Ip)return e;var r=new Ip,t=new Ip;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var M6=Fe(),NB=uo().dfltConfig;function FB(e,r){for(var t=[],a,n=0;nNB.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Zi.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Zi.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Zi.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";C6.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Hs=K(Xt=>{"use strict";var Mn=br(),hf=Fe(),a0=Zn(),Op=Ss(),IB=Hp(),HB=nf(),OB=uo().configAttributes,S6=bi(),$n=hf.extendDeepAll,Fs=hf.isPlainObject,BB=hf.isArrayOrTypedArray,n0=hf.nestedProperty,YB=hf.valObjectMeta,Bp="_isSubplotObj",i0="_isLinkedToArray",UB="_arrayAttrRegexps",q6="_deprecated",Yp=[Bp,i0,UB,q6];Xt.IS_SUBPLOT_OBJ=Bp;Xt.IS_LINKED_TO_ARRAY=i0;Xt.DEPRECATED=q6;Xt.UNDERSCORE_ATTRS=Yp;Xt.get=function(){var e={};return Mn.allTypes.forEach(function(r){e[r]=GB(r)}),{defs:{valObjects:YB,metaKeys:Yp.concat(["description","role","editType","impliedEdits"]),editType:{traces:S6.traces,layout:S6.layout},impliedEdits:{}},traces:e,layout:WB(),frames:XB(),animation:Is(HB),config:Is(OB)}};Xt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Yp.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Xt.isValObject(l)&&Fs(l)&&i!=="impliedEdits"&&Xt.crawl(l,r,n+1,o)}})};Xt.isValObject=function(e){return e&&e.valType!==void 0};Xt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,v){t=t.slice(0,v).concat([u]),a=a.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)BB(v)&&r.push(i+h);else if(a[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!t0(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function t0(e){return e===Math.round(e)&&e>=0}function GB(e){var r,t;r=Mn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=$n({},a0),i=$n({},r.attributes);Xt.crawl(i,function(s,u,f,v,h){n0(n,h).set(void 0),s===void 0&&n0(i,h).set(void 0)}),$n(a,n),Mn.traceIs(e,"noOpacity")&&delete a.opacity,Mn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Mn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,$n(a,i),t.attributes&&$n(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Is(a)};if(r.layoutAttributes){var o={};$n(o,r.layoutAttributes),l.layoutAttributes=Is(o)}return r.animatable||Xt.crawl(l,function(s){Xt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function WB(){var e={},r,t;$n(e,Op);for(r in Mn.subplotsRegistry)if(t=Mn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Os=Fe(),$B=Zn(),_l="templateitemname",Up={name:{valType:"string",editType:"none"}};Up[_l]={valType:"string",editType:"calc"};yo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Up.name,r[_l]=Up[_l],r};yo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Os.coerce(i,{},$B,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};yo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Os.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};yo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[P6(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},v=f[_l]=u[_l];if(!E6(v))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][_l]=i)}s();function u(d,m){o[d]=m}function f(d,m){i?Os.nestedProperty(o[l],d).set(m):o[l+"."+d]=m}function v(){var d=o;return s(),d}function h(d,m){d&&f(d,m);var y=v();for(var g in y)Os.nestedProperty(e,g).set(y[g])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var $t=K((Hoe,R6)=>{"use strict";var df=Ms().counter;R6.exports={idRegex:{x:df("x","( domain)?"),y:df("y","( domain)?")},attrRegex:df("[xy]axis"),xAxisMatch:df("xaxis"),yAxisMatch:df("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Zt=K(en=>{"use strict";var jB=br(),Vp=$t();en.id2name=function(r){if(!(typeof r!="string"||!r.match(Vp.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};en.name2id=function(r){if(r.match(Vp.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};en.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Vp.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};en.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=en.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};en.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function z6(e,r){if(r&&r.length){for(var t=0;t{"use strict";function eY(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function rY(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}N6.exports={clearOutlineControllers:eY,clearOutline:rY}});var l0=K((Yoe,F6)=>{"use strict";F6.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Gp=K(s0=>{"use strict";var o0=br(),Uoe=$t().SUBPLOT_PATTERN;s0.getSubplotCalcData=function(e,r,t){var a=o0.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var tY=br(),Bs=Fe();go.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=go.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){I6(e,l,n.cache),n.check=function(){if(i){var f=I6(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Bs.isPlainObject(i)?Wp(i,r,l,a+1):r(l,n,i)}})}});var It=K((Woe,e7)=>{"use strict";var nY=zr(),iY=xs().timeFormatLocale,lY=$1().formatLocale,pf=Hr(),oY=j1(),sY=Zu().version,Wr=br(),Z6=Hs(),uY=ct(),ur=Fe(),J6=Er(),Y6=Gt().BADNUM,rn=Zt(),fY=wl().clearOutline,cY=l0(),Xp=nf(),vY=Hp(),hY=Gp().getModuleCalcData,U6=ur.relinkPrivateKeys,bo=ur._,Qe=e7.exports={};ur.extendFlat(Qe,Wr);Qe.attributes=Zn();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=ga();Qe.layoutAttributes=Ss();var f0=B6();Qe.executeAPICommand=f0.executeAPICommand;Qe.computeAPICommandBindings=f0.computeAPICommandBindings;Qe.manageCommandObserver=f0.manageCommandObserver;Qe.hasSimpleAPICommandBindings=f0.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Wr.getComponentMethod("annotations","draw")(e),Wr.getComponentMethod("legend","draw")(e),Wr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Wr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:J6.defaultLine,"pointer-events":"all"}).each(function(){var u=nY.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&dY(e,i),l.text(i.text()&&o.text()?" - ":"")}};function dY(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Qe.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Qe.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Qe.graphJson(e,!1,"keepdata","object");a.version=sY;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var l=function(o){o.origin===t&&o.data&&o.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var pY=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],mY=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:bo(e,"Click to enter Plot title"),subtitle:bo(e,"Click to enter Plot subtitle"),x:bo(e,"Click to enter X axis title"),y:bo(e,"Click to enter Y axis title"),colorbar:bo(e,"Click to enter Colorscale title"),annotation:bo(e,"new text")},n._traceWord=bo(e,"trace");var h=V6(e,pY);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,m=a.height;Qe.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,h);var y=!i.width||!i.height,g=n.autosize,_=f.autosizable,T=y&&(g||_);T?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!g&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=bY(h,n.separators),n._extraFormat=V6(e,mY),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=gY(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=yY(l,s),Qe.supplyDataDefaults(s,o,i,n);var S=Object.keys(b.x),k=Object.keys(b.y);if(S.length>1&&k.length>1){for(Wr.getComponentMethod("grid","sizeDefaults")(i,n),v=0;v15&&k.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),O=!!(n._has&&n._has("cartesian")),I=F,V=O;I&&!V?a._bgLayer.remove():V&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&fY({_fullLayout:a}),xY(o,n),U6(n,a),Wr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var J=n._tracePreGUI,G={},U;for(U in J)G[U]="old";for(v=0;v0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var v=Qe.layoutAttributes.width.min,h=Qe.layoutAttributes.height.min;l1,m=!t.height&&Math.abs(a.height-o)>1;(m||d)&&(d&&(a.width=l),m&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Wr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Wr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Wr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=g,t.r/=g)}if(h){var _=(t.t+t.b)/h;_>1&&(t.t/=_,t.b/=_)}var T=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+y},r:{val:w,size:t.r+y},b:{val:M,size:t.b+y},t:{val:b,size:t.t+y}},m[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function wY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=rn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),K6(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var g in h)d[g]||delete h[g];var _=e._fullLayout._reservedMargin;for(var T in _)for(var w in _[T]){var b=_[T][w];l[w]=Math.max(l[w],b)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var M in l){var S=0;for(var k in h)k!=="base"&&pf(h[k][M].size)&&(S=h[k][M].size>S?h[k][M].size:S);var q=Math.max(0,i[M]-S);l[M]=Math.max(0,l[M]-q)}for(var D in h){var P=h[D].l||{},z=h[D].b||{},F=P.val,O=P.size,I=z.val,V=z.size,J=t-l.r-l.l,G=a-l.t-l.b;for(var U in h){if(pf(O)&&h[U].r){var H=h[U].r.val,Q=h[U].r.size;if(H>F){var Z=(O*H+(Q-J)*F)/(H-F),ne=(Q*(1-F)+(O-J)*(1-H))/(H-F);Z+ne>s+u&&(s=Z,u=ne)}}if(pf(V)&&h[U].t){var ce=h[U].t.val,ye=h[U].t.size;if(ce>I){var Ce=(V*ce+(ye-G)*I)/(ce-I),re=(ye*(1-I)+(V-G)*(1-ce))/(ce-I);Ce+re>v+f&&(v=Ce,f=re)}}}}}var Se=ur.constrain(t-i.l-i.r,Q6,m),pe=ur.constrain(a-i.t-i.b,$6,y),be=Math.max(0,t-Se),Ae=Math.max(0,a-pe);if(be){var ge=(s+u)/be;ge>1&&(s/=ge,u/=ge)}if(Ae){var B=(v+f)/Ae;B>1&&(v/=B,f/=B)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(v)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(o,n)||wY(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var $=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<$)return Wr.call("_doPlot",e);r._size=o,ur.warn("Too many auto-margin redraws.")}TY(e)};function TY(e){var r=rn.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a1)return!0}return!1};Qe.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ur.isPlainObject(h)){var m={},y;return Object.keys(h).sort().forEach(function(w){if(["_","["].indexOf(w.charAt(0))===-1){if(typeof h[w]=="function"){d&&(m[w]="_function");return}if(t==="keepdata"){if(w.slice(-3)==="src")return}else if(t==="keepstream"){if(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0&&!ur.isPlainObject(h.stream))return}else if(t!=="keepall"&&(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0))return;m[w]=u(h[w],d)}}),m}var g=Array.isArray(h),_=ur.isTypedArray(h);if((g||_)&&h.dtype&&h.shape){var T=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ur.isArrayBuffer(T)?oY.encode(T):T},d)}return g?h.map(function(w){return u(w,d)}):_?ur.simpleMap(h,ur.identity):ur.isJSDate(h)?ur.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var v=o._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Wr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&o(v)}}t.runFn(m),setTimeout(m())})}function o(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Wr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=rn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(M[s].enabled){i._indexToPoints=M[s]._indexToPoints;break}l&&l.calc&&(b=l.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:Y6,y:Y6}]),b[0].t||(b[0].t={}),b[0].trace=i,u[T]=b}}for(W6(t,a,n),o=0;o{"use strict";xo.xmlns="http://www.w3.org/2000/xmlns/";xo.svg="http://www.w3.org/2000/svg";xo.xlink="http://www.w3.org/1999/xlink";xo.svgAttrs={xmlns:xo.svg,"xmlns:xlink":xo.xlink}});var Aa=K((Zoe,r7)=>{"use strict";r7.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ba=K(An=>{"use strict";var Ht=zr(),Ji=Fe(),kY=Ji.strTranslate,Zp=_o(),CY=Aa().LINE_SPACING,SY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;An.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(SY),i=Ht.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=BY(e.node(),a);s&&e.style("pointer-events","all"),An.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};EY(n[2],f,function(v,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){o(),s();return}var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var g=d.width,_=d.height;m.attr({class:l,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var T=e.node().style.fill||"black",w=m.select("g");w.attr({fill:T,stroke:T});var b=w.node().getBoundingClientRect(),M=b.width,S=b.height;(M>g||S>_)&&(m.style("overflow","hidden"),b=m.node().getBoundingClientRect(),M=b.width,S=b.height);var k=+e.attr("x"),q=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,P=-D/4;if(l[0]==="y")y.attr({transform:"rotate("+[-90,k,q]+")"+kY(-M/2,P-S/2)});else if(l[0]==="l")q=P-S/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)k=0,q=P;else{var z=e.attr("text-anchor");k=k-M*(z==="middle"?.5:z==="end"?1:0),q=q+P-S/2}m.attr({x:k,y:q}),t&&t.call(e,y),s(y)})})):o(),e};var LY=/(<|<|<)/g,qY=/(>|>|>)/g;function DY(e){return e.replace(LY,"\\lt ").replace(qY,"\\gt ")}var t7=[["$","$"],["\\(","\\)"]];function EY(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){Ji.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=Ji.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:t7},displayAlign:"left"})},u=function(){i=Ji.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=t7},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var T="math-output-"+Ji.randstr({},64);o=Ht.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(DY(e));var w=o.node();return a===2?MathJax.Hub.Typeset(w):MathJax.typeset([w])},d=function(){var T=o.select(a===2?".MathJax_SVG":".MathJax"),w=!T.empty()&&o.select("svg").node();if(!w)Ji.log("There was an error in the tex syntax.",e),t();else{var b=w.getBoundingClientRect(),M;a===2?M=Ht.select("body").select("#MathJax_SVG_glyphs"):M=T.select("defs"),t(T,M,b)}o.remove()},m=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},g=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},_=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,m,g):a===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),y(),_()}))}var l7={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},PY={sub:"0.3em",sup:"-0.6em"},RY={sub:"-0.21em",sup:"0.42em"},a7="\u200B",n7=["http:","https:","mailto:","",void 0,":"],o7=An.NEWLINES=/(\r\n?|\n)/g,Kp=/(<[^<>]*>)/,Qp=/<(\/?)([^ >]*)(\s+(.*))?>/i,zY=//i;An.BR_TAG_ALL=//gi;var s7=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,u7=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,f7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,NY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function wo(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&c0(a)}var FY=/(^|;)\s*color:/;An.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Kp),o=[],s="",u=0,f=0;fi?o.push(v.slice(0,Math.max(0,y-i))+n):o.push(v.slice(0,y));break}s=""}}return o.join("")};var IY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},HY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function c0(e){return e.replace(HY,function(r,t){var a;return t.charAt(0)==="#"?a=OY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=IY[t],a||r})}An.convertEntities=c0;function OY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function BY(e,r){r=r.replace(o7," ");var t=!1,a=[],n,i=-1;function l(){i++;var S=document.createElementNS(Zp.svg,"tspan");Ht.select(S).attr({class:"line",dy:i*CY+"em"}),e.appendChild(S),n=S;var k=a;if(a=[{node:S}],k.length>1)for(var q=1;q.",r);return}var k=a.pop();S!==k.type&&Ji.log("Start tag <"+k.type+"> doesnt match end tag <"+S+">. Pretending it did match.",r),n=a[a.length-1].node}var f=zY.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(Kp),h=0;h{"use strict";var YY=zr(),h0=wn(),yf=Hr(),v0=Fe(),v7=Er(),UY=oo().isValid;function VY(e,r,t){var a=r?v0.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(v0.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function g7(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var x7=mp(),WY=x7.FORMAT_LINK,XY=x7.DATE_FORMAT_LINK;function ZY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?$p:_7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function $p(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+WY+"."].join(" ")}function _7(e,r){return $p(e,r)+[" And for dates see: "+XY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}w7.exports={axisHoverFormat:ZY,descriptionOnlyNumbers:$p,descriptionWithDates:_7}});var jn=K((joe,H7)=>{"use strict";var T7=ga(),Ys=gi(),I7=xi().dash,em=Wt().extendFlat,M7=ct().templatedArray,$oe=co().templateFormatStringDescription,A7=d0().descriptionWithDates,JY=Gt().ONEDAY,wi=$t(),KY=wi.HOUR_PATTERN,QY=wi.WEEKDAY_PATTERN,jp={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},$Y=em({},jp,{values:jp.values.slice().concat(["sync"])});function k7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var C7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},S7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},L7={valType:"data_array",editType:"ticks"},q7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function D7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function E7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var P7={valType:"color",dflt:Ys.defaultLine,editType:"ticks"},R7={valType:"color",dflt:Ys.lightLine,editType:"ticks"};function z7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var N7=em({},I7,{editType:"ticks"}),F7={valType:"boolean",editType:"ticks"};H7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Ys.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:T7({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[wi.idRegex.x.toString(),wi.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[wi.idRegex.x.toString(),wi.idRegex.y.toString()],editType:"calc"},rangebreaks:M7("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[QY,KY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:JY},editType:"calc"}),tickmode:$Y,nticks:k7(),tick0:C7,dtick:S7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:L7,ticktext:{valType:"data_array",editType:"ticks"},ticks:q7,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:D7(),tickwidth:E7(),tickcolor:P7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:em({},I7,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:T7({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:A7("tick label")},tickformatstops:M7("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:A7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Ys.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:F7,gridcolor:R7,gridwidth:z7(),griddash:N7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Ys.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Ys.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",wi.idRegex.x.toString(),wi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",wi.idRegex.x.toString(),wi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:jp,nticks:k7("minor"),tick0:C7,dtick:S7,tickvals:L7,ticks:q7,ticklen:D7("minor"),tickwidth:E7("minor"),tickcolor:P7,gridcolor:R7,gridwidth:z7("minor"),griddash:N7,showgrid:F7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var p0=K((ese,Y7)=>{"use strict";var dt=jn(),O7=ga(),B7=Wt().extendFlat,jY=bi().overrideAll;Y7.exports=jY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:dt.linecolor,outlinewidth:dt.linewidth,bordercolor:dt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:dt.minor.tickmode,nticks:dt.nticks,tick0:dt.tick0,dtick:dt.dtick,tickvals:dt.tickvals,ticktext:dt.ticktext,ticks:B7({},dt.ticks,{dflt:""}),ticklabeloverflow:B7({},dt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:dt.ticklen,tickwidth:dt.tickwidth,tickcolor:dt.tickcolor,ticklabelstep:dt.ticklabelstep,showticklabels:dt.showticklabels,labelalias:dt.labelalias,tickfont:O7({}),tickangle:dt.tickangle,tickformat:dt.tickformat,tickformatstops:dt.tickformatstops,tickprefix:dt.tickprefix,showtickprefix:dt.showtickprefix,ticksuffix:dt.ticksuffix,showticksuffix:dt.showticksuffix,separatethousands:dt.separatethousands,exponentformat:dt.exponentformat,minexponent:dt.minexponent,showexponent:dt.showexponent,title:{text:{valType:"string"},font:O7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var gf=K((tse,V7)=>{"use strict";var eU=p0(),rU=Ms().counter,tU=Tp(),U7=oo().scales,rse=tU(U7);function m0(e){return"`"+e+"`"}V7.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?U7[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[a],v="in "+m0(u+f));var h=n?" Has an effect only if "+v+" is set to a numerical array.":"",d=a+"auto",m=a+"min",y=a+"max",g=a+"mid",_=m0(u+d),T=m0(u+m),w=m0(u+y),b=T+" and "+w,M={};M[m]=M[y]=void 0;var S={};S[d]=!1;var k={};return f==="color"&&(k.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},k[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},k[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},k[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},k.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(k.showscale={valType:"boolean",dflt:l,editType:"calc"},k.colorbar=eU),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:rU("coloraxis"),dflt:null,editType:"calc"}),k}});var tm=K((ase,G7)=>{"use strict";var aU=Wt().extendFlat,nU=gf(),rm=oo().scales;G7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:rm.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:rm.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:rm.RdBu,editType:"calc"}},coloraxis:aU({_isSubplotObj:!0,editType:"calc"},nU("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var am=K((nse,W7)=>{"use strict";var iU=Fe();W7.exports=function(r){return iU.isPlainObject(r.colorbar)}});var lm=K(im=>{"use strict";var nm=Hr(),X7=Fe(),Z7=Gt(),lU=Z7.ONEDAY,oU=Z7.ONEWEEK;im.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?lU:1;if(!e)return i;if(nm(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=nm(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};im.tick0=function(e,r,t,a){if(r==="date")return X7.cleanDate(e,X7.dateTick0(t,a%oU===0?1:0));if(!(a==="D1"||a==="D2"))return nm(e)?Number(e):0}});var om=K((lse,K7)=>{"use strict";var J7=lm(),sU=Fe().isArrayOrTypedArray,uU=Ka().isTypedArraySpec,fU=Ka().decodeTypedArraySpec;K7.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(T){var w=o[T];return uU(w)&&(w=fU(w)),w!==void 0?w:(s._template||{})[T]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=sU(d)?"array":h?"linear":"auto",y=a(u+"tickmode",m);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var g=s.dtick=J7.dtick(h,n);s.tick0=J7.tick0(v,n,t.calendar,g)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":l||a("ticktext")}}});var um=K((ose,$7)=>{"use strict";var sm=Fe(),Q7=jn();$7.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?Q7.minor:Q7,u=i?"minor.":"",f=sm.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=sm.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=sm.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||v||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var fm=K((sse,j7)=>{"use strict";j7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var ei=K((use,e9)=>{"use strict";var y0=Fe(),cU=ct();e9.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=y0.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=cU.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var cm=Fe(),vU=Er().contrast,r9=jn(),hU=fm(),dU=ei();t9.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");cm.isPlainObject(l)||delete t.labelalias;var o=hU(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?vU(i.bgColor):f&&f!==r9.color.dflt?f:u.color;if(cm.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");dU(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:pU}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function pU(e,r){function t(n,i){return cm.coerce(e,r,r9.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var hm=K((cse,a9)=>{"use strict";var mU=fm();a9.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=mU(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var dm=K((vse,n9)=>{"use strict";var Tl=Fe(),yU=ct(),gU=om(),bU=um(),xU=vm(),_U=hm(),wU=p0();n9.exports=function(r,t,a){var n=yU.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,F){return Tl.coerce(i,n,wU,z,F)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),v=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(v?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:v?u:s);var m=l("yref"),y=l("xref"),g=m==="paper",_=y==="paper",T,w,b,M="left";v?(b="middle",M=_?"left":"right",T=_?1.02:1,w=.5):(b=g?"bottom":"top",M="center",T=.5,w=g?1.02:1),Tl.coerce(i,n,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:T}},"x"),Tl.coerce(i,n,{y:{valType:"number",min:g?-2:0,max:g?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",b),l("ypad"),Tl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var S=Tl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",S.indexOf("inside")!==-1?"hide past domain":"hide past div"),gU(i,n,l,"linear");var k=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};S.indexOf("inside")!==-1&&(q.bgColor="black"),_U(i,n,l,"linear",q),xU(i,n,l,"linear",q),bU(i,n,l,"linear",q),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:k,P=Tl.extendFlat({},k,{family:D.family,size:Tl.bigFont(D.size)});Tl.coerceFont(l,"title.font",P),l("title.side",v?"top":"right")}});var Us=K((hse,o9)=>{"use strict";var i9=Hr(),mm=Fe(),TU=am(),MU=dm(),l9=oo().isValid,AU=br().traceIs;function pm(e,r){var t=r.slice(0,r.length-1);return r?mm.nestedProperty(e,t).get()||{}:e}o9.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=pm(r,l),f=pm(t,l),v=pm(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},m=n(l+"coloraxis");if(m){var y=AU(t,"contour")&&mm.nestedProperty(t,"contours.coloring").get()||"heatmap",g=d[m];g?(g[2].push(h),g[0]!==y&&(g[0]=!1,mm.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[y,t,[h]];return}}var _=u[o+"min"],T=u[o+"max"],w=i9(_)&&i9(T)&&_{"use strict";var s9=Fe(),kU=ct(),u9=tm(),CU=Us();f9.exports=function(r,t){function a(v,h){return s9.coerce(r,t,u9,v,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(v,h){return s9.coerce(i,l,u9.coloraxis,v,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=kU.newContainer(t,s,"coloraxis"),l._name=s,CU(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var SU=Fe(),LU=kn().hasColorscale,qU=kn().extractOpts;v9.exports=function(r,t){function a(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function n(f,v){var h=v.container?SU.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=qU(h),m=d.auto;(m||d.min===void 0)&&a(h,v.min),(m||d.max===void 0)&&a(h,v.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var d9=Hr(),ym=Fe(),DU=kn().extractOpts;p9.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?ym.nestedProperty(t,l).get():t,s=DU(o),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return ym.aggNums(Math.min,null,i)},m=function(){return ym.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&d9(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(o._colorAx&&d9(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var gm=K((yse,m9)=>{"use strict";var b0=oo(),Vs=kn();m9.exports={moduleType:"component",name:"colorscale",attributes:gf(),layoutAttributes:tm(),supplyLayoutDefaults:c9(),handleDefaults:Us(),crossTraceDefaults:h9(),calc:g0(),scales:b0.scales,defaultScale:b0.defaultScale,getScale:b0.get,isValidScale:b0.isValid,hasColorscale:Vs.hasColorscale,extractOpts:Vs.extractOpts,extractScale:Vs.extractScale,flipScale:Vs.flipScale,makeColorScaleFunc:Vs.makeColorScaleFunc,makeColorScaleFuncFromTrace:Vs.makeColorScaleFuncFromTrace}});var un=K((gse,g9)=>{"use strict";var y9=Fe(),EU=Ka().isTypedArraySpec;g9.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return y9.isPlainObject(r)&&(y9.isArrayOrTypedArray(r.size)||EU(r.size))}}});var x9=K((bse,b9)=>{"use strict";var PU=Hr();b9.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return PU(s)&&s>0?Math.max(s,i):0}}});var Ti=K(ka=>{"use strict";var x0=Fe();ka.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ka.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{T9.exports=IU;var bm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},FU=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function IU(e){var r=[];return e.replace(FU,function(t,a,n){var i=a.toLowerCase();for(n=OU(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==bm[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var BU=xm(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ar="M0,0Z",M9=Math.sqrt(2),Ml=Math.sqrt(3),_m=Math.PI,wm=Math.cos,Tm=Math.sin;L9.exports={circle:{n:0,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Cr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.4,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.8/M9,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Cr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2/Ml,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2/Ml,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2/Ml,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2/Ml,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),l=Je(e*-.309,2),o=Je(e*.809,2);return Cr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Ml/2,2);return Cr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Ml/2,2);return Cr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.924,2),n=Je(e*.383,2);return Cr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(kr(r))return Ar;var a=e*1.4,n=Je(a*.225,2),i=Je(a*.951,2),l=Je(a*.363,2),o=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),v=Je(a*.809,2),h=Je(a*.382,2);return Cr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+v+"L0,"+h+"L-"+o+","+v+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Cr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*Ml*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Cr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*Ml*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Cr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*.7,2),n=Je(e*1.4,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2),n=Je(e*.7,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e/M9,2);return Cr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.3,2),n=Je(e*.65,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*.85,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e/2,2),n=Je(e,2);return Cr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2);return Cr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Cr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(kr(r))return Ar;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(kr(r))return Ar;var a=_m/2.5,n=2*e*wm(a),i=2*e*Tm(a);return Cr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(kr(r))return Ar;var a=_m/4,n=2*e*wm(a),i=2*e*Tm(a);return Cr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function kr(e){return e===null}var A9,k9,C9,S9;function Cr(e,r,t){if((!e||e%360===0)&&!r)return t;if(C9===e&&S9===r&&A9===t)return k9;C9=e,S9=r,A9=t;function a(g,_){var T=wm(g),w=Tm(g),b=_[0],M=_[1]+(r||0);return[b*T-M*w,b*w+M*T]}for(var n=e/180*_m,i=0,l=0,o=BU(t),s="",u=0;u{"use strict";var jt=zr(),rt=Fe(),YU=rt.numberFormat,ko=Hr(),Lm=wn(),w0=br(),xa=Er(),UU=gm(),xf=rt.strTranslate,T0=ba(),VU=_o(),GU=Aa(),WU=GU.LINE_SPACING,O9=Pv().DESELECTDIM,XU=un(),ZU=x9(),JU=Ti().appendArrayPointValue,je=K9.exports={};je.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(xa.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Mm(QU(f))),s&&e.style("text-shadow",s==="auto"?T0.makeTextShadow(xa.contrast(i)):Mm(s)),u&&e.style("text-decoration-line",Mm($U(u)))};function Mm(e){return e==="none"?void 0:e}var KU={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function QU(e){return KU[e]}function $U(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}je.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};je.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};je.setRect=function(e,r,t,a,n){e.call(je.setPosition,r,t).call(je.setSize,a,n)};je.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(ko(n)&&ko(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",xf(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=jt.select(this);je.translatePoint(a,n,r,t)})};je.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};je.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=w0.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){je.hideOutsideRangePoint(u,jt.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!ko(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};je.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";xa.stroke(r,a||i.color),je.dashLine(r,o,l)};je.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";jt.select(this).call(xa.stroke,t||i.color).call(je.dashLine,o,l)})};je.dashLine=function(e,r,t){t=+t||0,r=je.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};je.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function B9(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=je.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,v=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;je.pattern(e,"point",t,d,o,v,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var g,_;m==="horizontal"?(g={x:i.start,y:0},_={x:i.stop,y:0}):m==="vertical"&&(g={x:0,y:i.start},_={x:0,y:i.stop}),g.x=r._xA.c2p(g.x===void 0?r._extremes.x.min[0].val:g.x,!0),g.y=r._yA.c2p(g.y===void 0?r._extremes.y.min[0].val:g.y,!0),_.x=r._xA.c2p(_.x===void 0?r._extremes.x.max[0].val:_.x,!0),_.y=r._yA.c2p(_.y===void 0?r._extremes.y.max[0].val:_.y,!0),e.call(V9,t,y,"linear",i.colorscale,"fill",g,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(je.gradient,t,y,m,i.colorscale,"fill")}else r.fillcolor&&e.call(xa.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=jt.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};B9(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=jt.select(this);a[0].trace&&B9(n,a[0].trace,r,t)})};var D9=q9();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(D9).forEach(function(e){var r=D9[e],t=r.n;je.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),je.symbolNames[t]=e,je.symbolFuncs[t]=r.f,je.symbolBackOffs[t]=r.backoff||0,r.needLine&&(je.symbolNeedLines[t]=!0),r.noDot?je.symbolNoDot[t]=!0:je.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(je.symbolNoFill[t]=!0)});var jU=je.symbolNames.length,eV="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(ko(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=je.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=jU||e>=400?0:Math.floor(Math.max(e,0))};function Y9(e,r,t,a){var n=e%100;return je.symbolFuncs[n](r,t,a)+(e>=200?eV:"")}var E9=YU("~f"),U9={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};je.gradient=function(e,r,t,a,n,i){var l=U9[a];return V9(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function V9(e,r,t,a,n,i,l,o,s,u){var f=n.length,v;a==="linear"?v={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=je.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=Em(e,t),v=Dm(e,t);r.attr("d",Y9(u,s,f,v))}var h=!1,d,m,y;if(e.so)y=o.outlierwidth,m=o.outliercolor,d=l.outliercolor;else{var g=(o||{}).width;y=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):rt.isArrayOrTypedArray(o.color)?m=xa.defaultLine:m=o.color,rt.isArrayOrTypedArray(l.color)&&(d=xa.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let _=e.mld||(o||{}).dash;if(_&&je.dashLine(r,_,y),e.om)r.call(xa.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var T=l.gradient,w=e.mgt;w?h=!0:w=T&&T.type,rt.isArrayOrTypedArray(w)&&(w=w[0],U9[w]||(w=0));var b=l.pattern,M=je.getPatternAttr,S=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(w&&w!=="none"){var k=e.mgc;k?h=!0:k=T.color;var q=t.uid;h&&(q+="-"+e.i),je.gradient(r,n,q,w,[[0,k],[1,d]],"fill")}else if(S){var D=!1,P=b.fgcolor;!P&&i&&i.color&&(P=i.color,D=!0);var z=M(P,e.i,i&&i.color||null),F=M(b.bgcolor,e.i,null),O=b.fgopacity,I=M(b.size,e.i,8),V=M(b.solidity,e.i,.3);D=D||e.mcc||rt.isArrayOrTypedArray(b.shape)||rt.isArrayOrTypedArray(b.path)||rt.isArrayOrTypedArray(b.bgcolor)||rt.isArrayOrTypedArray(b.fgcolor)||rt.isArrayOrTypedArray(b.size)||rt.isArrayOrTypedArray(b.solidity);var J=t.uid;D&&(J+="-"+e.i),je.pattern(r,"point",n,J,S,I,V,e.mcc,b.fillmode,F,z,O)}else rt.isArrayOrTypedArray(d)?xa.fill(r,d[e.i]):xa.fill(r,d);y&&xa.stroke(r,m)}};je.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=je.tryColorscale(t,""),r.lineScale=je.tryColorscale(t,"line"),w0.traceIs(e,"symbols")&&(r.ms2mrc=XU.isBubble(e)?ZU(e):function(){return(t.size||6)/2}),e.selectedpoints&&rt.extendFlat(r,je.makeSelectedPointStyleFns(e)),r};je.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,v=u!==void 0;(rt.isArrayOrTypedArray(o)||f||v)&&(r.selectedOpacityFn=function(b){var M=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:M:v?u:O9*M});var h=n.color,d=i.color,m=l.color;(d||m)&&(r.selectedColorFn=function(b){var M=b.mcc||h;return b.selected?d||M:m||M});var y=n.size,g=i.size,_=l.size,T=g!==void 0,w=_!==void 0;return w0.traceIs(e,"symbols")&&(T||w)&&(r.selectedSizeFn=function(b){var M=b.mrc||y/2;return b.selected?T?g/2:M:w?_/2:M}),r};je.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var v=f.tc||o;return f.selected?s||v:u||(s?v:xa.addOpacity(v,O9))},r};je.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){xa.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",Y9(je.symbolNumber(o),s,Em(l,r),Dm(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=jt.select(this),o=0;o0?t:0}je.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=je.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=jt.select(this),u=i?rt.extractOption(o,r,"txt","texttemplate"):rt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(o,r,l):{},h={};JU(h,r,o.i),u=rt.texttemplateString({data:[h,o,r._meta],fallback:r.texttemplatefallback,labels:v,locale:l._d3locale,template:u})}var d=o.tp||r.textposition,m=W9(o,r),y=a?a(o):o.tc||r.textfont.color;s.call(je.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:m,color:y}).text(u).call(T0.convertToTspans,t).call(G9,d,m,o.mrc)})}};je.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedTextStyleFns(r);e.each(function(a){var n=jt.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=W9(a,r);xa.fill(n,i);var s=w0.traceIs(r,"bar-like");G9(n,l,o,a.mrc2||a.mrc,s)})}};var P9=.5;je.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(M<=v&&M>=u||M>=v&&M<=u)&&(e=[b,M])}return e}je.applyBackoff=J9;je.makeTester=function(){var e=rt.ensureSingleById(jt.select("body"),"svg","js-plotly-tester",function(t){t.attr(VU.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=rt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});je.tester=e,je.testref=r};je.savedBBoxes={};var km=0,aV=1e4;je.bBox=function(e,r,t){t||(t=R9(e));var a;if(t){if(a=je.savedBBoxes[t],a)return rt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=R9(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=je.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=je.savedBBoxes[t],a)return rt.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),jt.select(u).attr("transform",null).call(T0.positionText,0,0);var v=u.getBoundingClientRect(),h=je.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return km>=aV&&(je.savedBBoxes={},km=0),t&&(je.savedBBoxes[t]=d),km++,rt.extendFlat({},d)};function R9(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}je.setClipUrl=function(e,r,t){e.attr("clip-path",qm(r,t))};function qm(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}je.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};je.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=xf(r,t),l=l.trim(),e[i]("transform",l),l};je.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};je.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var nV=/\s*sc.*/;je.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(nV,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var iV=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=jt.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(iV);r===1&&t===1?a=[]:a=[xf(l,o),"scale("+r+","+t+")",xf(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Dm(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}je.getMarkerStandoff=Dm;var bf=Math.atan2,To=Math.cos,Ws=Math.sin;function z9(e,r){var t=r[0],a=r[1];return[t*To(e)-a*Ws(e),t*Ws(e)+a*To(e)]}var N9,F9,I9,H9,Cm,Sm;function Em(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||rt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=bf(h[1]-n,h[0]-a),m=bf(v[1]-n,v[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var g=u/180*Math.PI,_=f/180*Math.PI,T=N9/180*Math.PI,w=F9/180*Math.PI,b=T-g,M=To(w)*Ws(b),S=Ws(w)*To(_)-To(w)*Ws(_)*To(b);y=-bf(M,S)-Math.PI,N9=u,F9=f}var k=z9(d,[To(y),0]),q=z9(m,[Ws(y),0]);t=bf(k[1]+q[1],k[0]+q[0])/Math.PI*180,i==="previous"&&!(Sm===r.uid&&e.i===Cm+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Sm===r.uid&&e.i===Cm+1&&ko(a)&&ko(n)){var D=a-I9,P=n-H9,z=r.line&&r.line.shape||"",F=z.slice(z.length-1);F==="h"&&(P=0),F==="v"&&(D=0),t+=bf(P,D)/Math.PI*180+90}else t=null}return I9=a,H9=n,Cm=e.i,Sm=r.uid,t}je.getMarkerAngle=Em});var _f=K((Mse,e8)=>{"use strict";var Xs=zr(),lV=Hr(),oV=It(),Pm=br(),Co=Fe(),Q9=Co.strTranslate,M0=tt(),A0=Er(),Zs=ba(),$9=Pv(),sV=Aa().OPPOSITE_SIDE,j9=/ [XY][0-9]* /,Rm=1.6,zm=1.6;function uV(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),y=!1,g=d&&d.font?d.font:{},_=g.family,T=g.size,w=g.color,b=g.weight,M=g.style,S=g.variant,k=g.textcase,q=g.lineposition,D=g.shadow,P=t.subtitlePropName,z=!!P,F=t.subtitlePlaceholder,O=(n.title||{}).subtitle||{text:"",font:{}},I=(O.text||"").trim(),V=!1,J=1,G=O.font,U=G.family,H=G.size,Q=G.color,Z=G.weight,ne=G.style,ce=G.variant,ye=G.textcase,Ce=G.lineposition,re=G.shadow,Se;i==="title.text"?Se="titleText":i.indexOf("axis")!==-1?Se="axisTitleText":i.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var pe=e._context.edits[Se];function be(Ie,Xe){return Ie===void 0||Xe===void 0?!1:Ie.replace(j9," % ")===Xe.replace(j9," % ")}m===""?h=0:be(m,l)&&(pe||(m=""),h=.2,y=!0),z&&(I===""?J=0:be(I,F)&&(pe||(I=""),J=.2,V=!0)),t._meta?m=Co.templateString(m,t._meta):a._meta&&(m=Co.templateString(m,a._meta));var Ae=m||I||pe,ge;v||(v=Co.ensureSingle(a._infolayer,"g","g-"+r),ge=a._hColorbarMoveTitle);var B=v.selectAll("text."+r).data(Ae?[0]:[]);B.enter().append("text"),B.text(m).attr("class",r),B.exit().remove();var $=null,Y=r+"-subtitle",le=I||pe;if(z&&($=v.selectAll("text."+Y).data(le?[0]:[]),$.enter().append("text"),$.text(I).attr("class",Y),$.exit().remove()),!Ae)return v;function he(Ie,Xe){Co.syncOrAsync([me,Re],{title:Ie,subtitle:Xe})}function me(Ie){var Xe=Ie.title,De=Ie.subtitle,He;!f&&ge&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ge)&&(He+=Q9(0,(f.offset||0)-(ge||0)))):He=null,Xe.attr("transform",He);function We(Me){if(Me){var ke=Xs.select(Me.node().parentNode).select("."+Y);if(!ke.empty()){var Oe=Me.node().getBBox();if(Oe.height){var Ze=Oe.y+Oe.height+Rm*H;ke.attr("y",Ze)}}}}if(Xe.style("opacity",h*A0.opacity(w)).call(M0.font,{color:A0.rgb(w),size:Xs.round(T,2),family:_,weight:b,style:M,variant:S,textcase:k,shadow:D,lineposition:q}).attr(u).call(Zs.convertToTspans,e,We),De&&!De.empty()){var ie=v.select("."+r+"-math-group"),xe=Xe.node().getBBox(),Ke=ie.node()?ie.node().getBBox():void 0,hr=Ke?Ke.y+Ke.height+Rm*H:xe.y+xe.height+zm*H,ze=Co.extendFlat({},u,{y:hr});De.attr("transform",He),De.style("opacity",J*A0.opacity(Q)).call(M0.font,{color:A0.rgb(Q),size:Xs.round(H,2),family:U,weight:Z,style:ne,variant:ce,textcase:ye,shadow:re,lineposition:Ce}).attr(ze).call(Zs.convertToTspans,e)}return oV.previousPromises(e)}function Re(Ie){var Xe=Ie.title,De=Xs.select(Xe.node().parentNode);if(s&&s.selection&&s.side&&m){De.attr("transform",null);var He=sV[s.side],We=s.side==="left"||s.side==="top"?-1:1,ie=lV(s.pad)?s.pad:2,xe=M0.bBox(De.node()),Ke={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var ze in hr)for(var Me in hr[ze]){var ke=hr[ze][Me];Ke[Me]=Math.max(Ke[Me],ke)}var Oe={left:Ke.l,top:Ke.t,right:a.width-Ke.r,bottom:a.height-Ke.b},Ze=s.maxShift||We*(Oe[s.side]-xe[s.side]),Ue=0;if(Ze<0)Ue=Ze;else{var Ge=s.offsetLeft||0,ir=s.offsetTop||0;xe.left-=Ge,xe.right-=Ge,xe.top-=ir,xe.bottom-=ir,s.selection.each(function(){var er=M0.bBox(this);Co.bBoxIntersect(xe,er,ie)&&(Ue=Math.max(Ue,We*(er[s.side]-xe[He])+ie))}),Ue=Math.min(Ze,Ue),n._titleScoot=Math.abs(Ue)}if(Ue>0||Ze<0){var ar={left:[-Ue,0],right:[Ue,0],top:[0,-Ue],bottom:[0,Ue]}[s.side];De.attr("transform",Q9(ar[0],ar[1]))}}}B.call(he,$);function Ee(Ie,Xe){Ie.text(Xe).on("mouseover.opacity",function(){Xs.select(this).transition().duration($9.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Xs.select(this).transition().duration($9.HIDE_PLACEHOLDER).style("opacity",0)})}if(pe&&(m?B.on(".opacity",null):(Ee(B,l),y=!0),B.call(Zs.makeEditable,{gd:e}).on("edit",function(Ie){o!==void 0?Pm.call("_guiRestyle",e,i,Ie,o):Pm.call("_guiRelayout",e,i,Ie)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(he)}).on("input",function(Ie){this.text(Ie||" ").call(Zs.positionText,u.x,u.y)}),z)){if(z&&!m){var Le=B.node().getBBox(),Ve=Le.y+Le.height+zm*H;$.attr("y",Ve)}I?$.on(".opacity",null):(Ee($,F),V=!0),$.call(Zs.makeEditable,{gd:e}).on("edit",function(Ie){Pm.call("_guiRelayout",e,"title.subtitle.text",Ie)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(he)}).on("input",function(Ie){this.text(Ie||" ").call(Zs.positionText,$.attr("x"),$.attr("y"))})}return B.classed("js-placeholder",y),$&&!$.empty()&&$.classed("js-placeholder",V),v}e8.exports={draw:uV,SUBTITLE_PADDING_EM:zm,SUBTITLE_PADDING_MATHJAX_EM:Rm}});var P0=K((Ase,i8)=>{"use strict";var fV=zr(),cV=xs().utcFormat,it=Fe(),vV=it.numberFormat,Mi=Hr(),Al=it.cleanNumber,hV=it.ms2DateTime,r8=it.dateTime2ms,Ai=it.ensureNumber,t8=it.isArrayOrTypedArray,kl=Gt(),k0=kl.FP_SAFE,ri=kl.BADNUM,dV=kl.LOG_CLIP,pV=kl.ONEWEEK,C0=kl.ONEDAY,S0=kl.ONEHOUR,a8=kl.ONEMIN,n8=kl.ONESEC,L0=Zt(),E0=$t(),q0=E0.HOUR_PATTERN,D0=E0.WEEKDAY_PATTERN;function wf(e){return Math.pow(10,e)}function Nm(e){return e!=null}i8.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&r.range&&r.range.length===2){var S=r.range[0],k=r.range[1];return .5*(S+k-2*dV*Math.abs(S-k))}else return ri}function l(b,M,S,k){if((k||{}).msUTC&&Mi(b))return+b;var q=r8(b,S||r.calendar);if(q===ri)if(Mi(b)){b=+b;var D=Math.floor(it.mod(b+.05,1)*10),P=Math.round(b-D/10);q=r8(new Date(P))+D/10}else return ri;return q}function o(b,M,S){return hV(b,M,S||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Nm(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var M=r._categories.length-1;return r._categoriesMap[b]=M,M}return ri}function f(b,M){for(var S=new Array(M),k=0;kr.range[1]&&(S=!S);for(var k=S?-1:1,q=k*b,D=0,P=0;PF)D=P+1;else{D=q<(z+F)/2?P:P+1;break}}var O=r._B[D]||0;return isFinite(O)?m(b,r._m2,O):0},_=function(b){var M=r._rangebreaks.length;if(!M)return y(b,r._m,r._b);for(var S=0,k=0;kr._rangebreaks[k].pmax&&(S=k+1);return y(b,r._m2,r._B[S])}}r.c2l=r.type==="log"?i:Ai,r.l2c=r.type==="log"?wf:Ai,r.l2p=g,r.p2l=_,r.c2p=r.type==="log"?function(b,M){return g(i(b,M))}:g,r.p2c=r.type==="log"?function(b){return wf(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Al,r.c2d=r.c2r=r.l2d=r.l2r=Ai,r.d2p=r.r2p=function(b){return r.l2p(Al(b))},r.p2d=r.p2r=_,r.cleanPos=Ai):r.type==="log"?(r.d2r=r.d2l=function(b,M){return i(Al(b),M)},r.r2d=r.r2c=function(b){return wf(Al(b))},r.d2c=r.r2l=Al,r.c2d=r.l2r=Ai,r.c2r=i,r.l2d=wf,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return wf(_(b))},r.r2p=function(b){return r.l2p(Al(b))},r.p2r=_,r.cleanPos=Ai):r.type==="date"?(r.d2r=r.r2d=it.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,M,S){return r.l2p(l(b,0,S))},r.p2d=r.p2r=function(b,M,S){return o(_(b),M,S)},r.cleanPos=function(b){return it.cleanDate(b,ri,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var M=d(b);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Ai,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Ai(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var M=h(b);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=Ai,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Ai(b)},r.setupMultiCategory=function(b){var M=r._traceIndices,S,k,q=r._matchGroup;if(q&&r._categories.length===0){for(var D in q)if(D!==a){var P=t[L0.id2name(D)];M=M.concat(P._traceIndices)}}var z=[[0,{}],[0,{}]],F=[];for(S=0;SP[1]&&(k[D?0:1]=S,q[1]=P[1]),q[0]>=q[1])if(M!==void 0){var z=P[0]+1;S!==void 0&&(z=Math.min(z,P[1])),k[D?0:1]=r.l2r(z)}else S!==void 0&&(k[D?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var S=it.nestedProperty(r,b).get(),k,q;if(r.type==="date"?q=it.dfltRange(r.calendar):n==="y"?q=E0.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=M.dfltRange||E0.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!S||S.length!==2){it.nestedProperty(r,b).set(q);return}var D=S[0]===null,P=S[1]===null;for(r.type==="date"&&!r.autorange&&(S[0]=it.cleanDate(S[0],ri,r.calendar),S[1]=it.cleanDate(S[1],ri,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!it.isDateTime(S[k],r.calendar)){r[b]=q;break}if(r.r2l(S[0])===r.r2l(S[1])){var z=it.constrain(r.r2l(S[0]),it.MIN_MS+1e3,it.MAX_MS-1e3);S[0]=r.l2r(z-1e3),S[1]=r.l2r(z+1e3);break}}else{if(!Mi(S[k]))if(!(D||P)&&Mi(S[1-k]))S[k]=S[1-k]*(k?10:.1);else{r[b]=q;break}if(S[k]<-k0?S[k]=-k0:S[k]>k0&&(S[k]=k0),S[0]===S[1]){var F=Math.max(1,Math.abs(S[0]*1e-6));S[0]-=F,S[1]+=F}}},r.setScale=function(b){var M=t._size;if(r.overlaying){var S=L0.getFromId({_fullLayout:t},r.overlaying);r.domain=S.domain}var k=b&&r._r?"_r":"range",q=r.calendar;r.cleanRange(k);var D=r.r2l(r[k][0],q),P=r.r2l(r[k][1],q),z=n==="y";if(z?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-P),r._b=-r._m*P):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,O;if(r._rangebreaks=r.locateBreaks(Math.min(D,P),Math.max(D,P)),r._rangebreaks.length){for(F=0;FP&&(I=!I),I&&r._rangebreaks.reverse();var V=I?-1:1;for(r._m2=V*r._length/(Math.abs(P-D)-r._lBreaks),r._B.push(-r._m2*(z?P:D)),F=0;Fq&&(q+=7,Dq&&(q+=24,D=k&&D=k&&b=re.min&&(nere.max&&(re.max=ce),ye=!1)}ye&&P.push({min:ne,max:ce})}};for(S=0;S{"use strict";var l8=Hr(),Fm=Fe(),mV=Gt().BADNUM,R0=Fm.isArrayOrTypedArray,yV=Fm.isDateTime,gV=Fm.cleanNumber,o8=Math.round;u8.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(R0(n)&&!n.length)return"-";if(!i&&TV(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function s8(e){return Math.max(1,(e-1)/1e3)}function wV(e,r){for(var t=e.length,a=s8(t),n=0,i=0,l={},o=0;on*2}function TV(e){return R0(e[0])&&R0(e[1])}});var Tf=K((Cse,y8)=>{"use strict";var MV=zr(),h8=Hr(),Cl=Fe(),z0=Gt().FP_SAFE,AV=br(),kV=tt(),d8=Zt(),CV=d8.getFromId,SV=d8.isLinked;y8.exports={applyAutorangeOptions:m8,getAutoRange:Hm,makePadFn:Om,doAutoRange:qV,findExtremes:DV,concatExtremes:Um};function Hm(e,r){var t,a,n=[],i=e._fullLayout,l=Om(i,r,0),o=Om(i,r,1),s=Um(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Cl.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(P=w-l(S)-o(k),P>b?z/P>M&&(q=S,D=k,M=z/P):z/w>M&&(q={val:S.val,nopad:1},D={val:k.val,nopad:1},M=z/w));function F(G,U){return Math.max(G,o(U))}if(v===h){var O=v-1,I=v+1;if(_)if(v===0)n=[0,1];else{var V=(v>0?f:u).reduce(F,0),J=v/(1-Math.min(.5,V/w));n=v>0?[0,J]:[J,0]}else T?n=[Math.max(0,O),Math.max(1,I)]:n=[O,I]}else _?(q.val>=0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):T&&(q.val-M*l(q)<0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-q.val-f8(r,S.val,k.val))/(w-l(q)-o(D)),n=[q.val-M*l(q),D.val+M*o(D)];return n=m8(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),Cl.simpleMap(n,r.l2r||Number)}function f8(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),S=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),k=b(t.vpadplus||t.vpad),q=b(t.vpadminus||t.vpad);if(!u){if(T=1/0,w=-1/0,s)for(v=0;v0&&(T=h),h>w&&h-z0&&(T=h),h>w&&h=z;v--)P(v);return{min:a,max:n,opts:t}}function Bm(e,r,t,a){p8(e,r,t,a,EV)}function Ym(e,r,t,a){p8(e,r,t,a,PV)}function p8(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function v8(e){return h8(e)&&Math.abs(e)=r}function RV(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&N0(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&N0(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function zV(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&N0(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&N0(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function N0(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=RV(t,r),a=zV(a,r),[t,a]}});var pt=K((Lse,O8)=>{"use strict";var Cn=zr(),Ot=Hr(),Js=It(),Af=br(),gr=Fe(),Ks=gr.strTranslate,So=ba(),NV=_f(),kf=Er(),fn=tt(),FV=jn(),g8=lm(),Sse=$t(),_a=Gt(),IV=_a.ONEMAXYEAR,H0=_a.ONEAVGYEAR,O0=_a.ONEMINYEAR,HV=_a.ONEMAXQUARTER,Xm=_a.ONEAVGQUARTER,B0=_a.ONEMINQUARTER,OV=_a.ONEMAXMONTH,Qs=_a.ONEAVGMONTH,Y0=_a.ONEMINMONTH,cn=_a.ONEWEEK,Ra=_a.ONEDAY,Sl=Ra/2,Ci=_a.ONEHOUR,Cf=_a.ONEMIN,U0=_a.ONESEC,BV=_a.ONEMILLI,YV=_a.ONEMICROSEC,Lo=_a.MINUS_SIGN,G0=_a.BADNUM,Zm={K:"zeroline"},Jm={K:"gridline",L:"path"},Km={K:"minor-gridline",L:"path"},L8={K:"tick",L:"path"},b8={K:"tick",L:"text"},x8={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},W0=Aa(),Mf=W0.MID_SHIFT,qo=W0.CAP_SHIFT,Sf=W0.LINE_SPACING,UV=W0.OPPOSITE_SIDE,V0=3,Be=O8.exports={};Be.setConvert=P0();var VV=Im(),Si=Zt(),GV=Si.idSort,WV=Si.isLinked;Be.id2name=Si.id2name;Be.name2id=Si.name2id;Be.cleanId=Si.cleanId;Be.list=Si.list;Be.listIds=Si.listIds;Be.getFromId=Si.getFromId;Be.getFromTrace=Si.getFromTrace;var q8=Tf();Be.getAutoRange=q8.getAutoRange;Be.findExtremes=q8.findExtremes;var XV=1e-4;function ey(e){var r=(e[1]-e[0])*XV;return[e[0]-r,e[1]+r]}Be.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},gr.coerce(e,r,u,s)};Be.coerceRefArray=function(e,r,t,a,n,i,l){let o=a.charAt(a.length-1);var s=t._fullLayout._subplots[o+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(h=>h+" domain")),s=s.concat(i||[]),f.length>l?(gr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Be.saveRangeInitial=function(e,r){for(var t=Be.list(e,"",!0),a=!1,n=0;nv*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Be.tickIncrement(e,"M6","reverse")+Ra*1.5:i.exactMonths>l?e=Be.tickIncrement(e,"M1","reverse")+Ra*15.5:e-=Sl;var s=Be.tickIncrement(e,t);if(s<=a)return s}return e}Be.prepMinorTicks=function(e,r,t){var v,h;if(!((v=r.minor)!=null&&v.dtick)){delete e.dtick;var a=r.dtick&&Ot(r._tmin),n;if(a){var i=Be.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=gr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=gr.simpleMap(n,r.l2r),e._isMinor=!0,Be.prepTicks(e,t),a){var o=Ot(r.dtick),s=Ot(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?Vm(u,f)?u===2*cn&&f===2*Ra&&(e.dtick=cn):u===2*cn&&f===3*Ra?e.dtick=cn:u===cn&&!(r._input.minor||{}).nticks?e.dtick=Ra:T8(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Vm(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Vm(u,f)||(e.dtick=T8(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0)};function Vm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function T8(e,r){return Math.abs(e/r-1)<.001}Be.prepTicks=function(e,r){var t=gr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?gr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=gr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Be.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,v=0;f>=O0?u>=O0&&u<=IV?v=u:v=H0:t===Xm&&f>=B0?u>=B0&&u<=HV?v=u:v=Xm:f>=Y0?u>=Y0&&u<=OV?v=u:v=Qs:t===cn&&f>=cn?v=cn:f>=Ra?v=Ra:t===Sl&&f>=Sl?v=Sl:t===Ci&&f>=Ci&&(v=Ci);var h;v>=u&&(v=u,h=!0);var d=n+v;if(r.rangebreaks&&v>0){for(var m=84,y=0,g=0;gcn&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}Be.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||gr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=gr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);M--){var S=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=M?r:gr.extendFlat({},r,b?r.minor:{minor:{}});if(S?Be.prepMinorTicks(k,r,t):Be.prepTicks(k,t),k.tickmode==="array"){M?(g=[],m=M8(r,!S)):(_=[],y=M8(r,!S));continue}if(k.tickmode==="sync"){g=[],m=jV(r);continue}var q=ey(u),D=q[0],P=q[1],z=Ot(k.dtick),F=a==="log"&&!(z||k.dtick.charAt(0)==="L"),O=Be.tickFirst(k,t);if(M){if(r._tmin=O,O=P:V<=P;V=Be.tickIncrement(V,U,f,n)){if(M&&J++,k.rangebreaks&&!f){if(V=h)break}if(g.length>d||V===I)break;I=V;var H={value:V};M?(F&&V!==(V|0)&&(H.simpleLabel=!0),i>1&&J%i&&(H.skipLabel=!0),g.push(H)):(H.minor=!0,_.push(H))}}if(!_||_.length<3)s=!1;else{var Q=(_[2].value-_[1].value)*(o?-1:1);MG(Q,r.tickformat)||(s=!1,_=_.slice(1))}if(!s)T=g;else{var Z=g.concat(_);l&&g.length&&(Z=Z.slice(1)),Z=Z.sort(function(Ie,Xe){return Ie.value-Xe.value}).filter(function(Ie,Xe,De){return Xe===0||Ie.value!==De[Xe-1].value});var ne=Z.map(function(Ie,Xe){return Ie.minor===void 0&&!Ie.skipLabel?Xe:null}).filter(function(Ie){return Ie!==null});ne.forEach(function(Ie){s.map(function(Xe){var De=Ie+Xe;De>=0&&De-1;ge--){if(g[ge].drop){g.splice(ge,1);continue}g[ge].value=Wm(g[ge].value,r);var le=r.c2p(g[ge].value);(B?Y>le-$:Yh||Heh&&(De.periodX=h),Hen&&hH0)r/=H0,a=n(10),e.dtick="M"+12*ki(r,a,F0);else if(i>Qs)r/=Qs,e.dtick="M"+ki(r,1,A8);else if(i>Ra){if(e.dtick=ki(r,Ra,e._hasDayOfWeekBreaks?[1,2,7,14]:eG),!t){var l=Be.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=gr.dateTick0(e.calendar,2):e.tick0=gr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Ci?e.dtick=ki(r,Ci,A8):i>Cf?e.dtick=ki(r,Cf,k8):i>U0?e.dtick=ki(r,U0,k8):(a=n(10),e.dtick=ki(r,a,F0))}else if(e.type==="log"){e.tick0=0;var s=gr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+ki(r,a,F0)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):ny(e)?(e.tick0=0,a=1,e.dtick=ki(r,a,rG)):(e.tick0=0,a=n(10),e.dtick=ki(r,a,F0));if(e.dtick===0&&(e.dtick=1),!Ot(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function R8(e){var r=e.dtick;if(e._tickexponent=0,!Ot(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Ra&&n<=10||r>=Ra*15)e._tickround="d";else if(r>=Cf&&n<=16||r>=Ci)e._tickround="M";else if(r>=U0&&n<=19||r>=Cf)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Ot(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Ot(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&($s(e.exponentformat)&&e.exponentformat!=="SI extended"&&!ry(s)||$s(e.exponentformat)&&e.exponentformat==="SI extended"&&!ty(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Be.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Ot(r))return gr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return gr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?P8:E8,s=e+n*.01,u=gr.roundUp(gr.mod(s,1),o,t);return Math.floor(s)+Math.log(Cn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Be.tickFirst=function(e,r){var t=e.r2l||Number,a=gr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?g:null};if(i&&gr.isArrayOrTypedArray(e.ticktext)){var v=gr.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=qf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function aG(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=Lf(Math.pow(10,l),e,n,a);else if(Ot(i)||s==="D"&&(e.minorloglabels==="complete"||gr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(gr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||$s(m)&&m!=="SI extended"&&ry(h)||$s(m)&&m==="SI extended"&&ty(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":Lo)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":Lo)+d:(r.text=Lf(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,gr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function nG(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function iG(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function lG(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Lf(r.x,e,n,a)}function oG(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=sG(i);if(l[1]>=100)r.text=Lf(gr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=Lo+r.text)}}}else r.text=Lf(r.x,e,n,a)}function sG(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var N8=["f","p","n","\u03BC","m","","k","M","G","T"],uG=["q","r","y","z","a",...N8,"P","E","Z","Y","R","Q"],$s=e=>["SI","SI extended","B"].includes(e);function ry(e){return e>14||e<-15}function ty(e){return e>32||e<-30}function fG(e,r){return $s(r)?!!(r==="SI extended"&&ty(e)||r!=="SI extended"&&ry(e)):!1}function Lf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Be.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Ot(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};R8(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Lo);var v=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+m+"":l==="B"&&o===9?e+="B":$s(l)&&(e+=l==="SI extended"?uG[o/3+10]:N8[o/3+5])}return n?Lo+e:e}Be.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Qs}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function n(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(v||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return gr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Be.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Be.drawOne(e,u,t);return u._shiftPusher&&jm(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=gr.simpleMap(u._r,u.r2l),f}}}))};Be.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=Be.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),jm(r,m,a,!0),jm(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=TG(r,a));var y=h[f+"axislayer"],g=r._mainLinePosition,_=g+=r._shift,T=r._mainMirrorPosition,w=r._vals=Be.calcTicks(r),b=[r.mirror,_,T].join("_");for(i=0;i0?De.bottom-Ie:0,Xe))));var xe=0,Ke=0;if(r._shiftPusher&&(xe=Math.max(Xe,De.height>0?Le==="l"?Ie-De.left:De.right-Ie:0),r.title.text!==s._dfltTitle[f]&&(Ke=(r._titleStandoff||0)+(r._titleScoot||0),Le==="l"&&(Ke+=S8(r))),r._fullDepth=Math.max(xe,Ke)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var hr=[0,1],ze=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Le==="b"?He[Le]=r._depth:(He[Le]=r._depth=Math.max(De.width>0?Ie-De.top:0,Xe),hr.reverse()),De.width>0){var Me=De.right-(r._offset+r._length);Me>0&&(He.xr=1,He.r=Me);var ke=r._offset-De.left;ke>0&&(He.xl=0,He.l=ke)}}else if(Le==="l"?(r._depth=Math.max(De.height>0?Ie-De.left:0,Xe),He[Le]=r._depth-ze):(r._depth=Math.max(De.height>0?De.right-Ie:0,Xe),He[Le]=r._depth+ze,hr.reverse()),De.height>0){var Oe=De.bottom-(r._offset+r._length);Oe>0&&(He.yb=0,He.b=Oe);var Ze=r._offset-De.top;Ze>0&&(He.yt=1,He.t=Ze)}He[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(He[Le]+=S8(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(We={x:0,y:0,r:0,l:0,t:0,b:0},We[Ve]=r.linewidth,r.mirror&&r.mirror!==!0&&(We[Ve]+=Xe),r.mirror===!0||r.mirror==="ticks"?We[v]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(We[v]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Ee&&(ie=Af.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(C8(He,r.automargin),C8(We,r.automargin)),Js.autoMargin(e,ay(r),He),Js.autoMargin(e,I8(r),We),Js.autoMargin(e,H8(r),ie)}),gr.syncOrAsync(me)}};function C8(e,r){if(e){var t=Object.keys(x8).reduce(function(a,n){return r.indexOf(n)!==-1&&x8[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function cG(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(gr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,v=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*v}return e._id.charAt(0)==="x"?function(h){return Ks(n+e._offset+e.l2p(Qm(h))+t,i+a)}:function(h){return Ks(i+a,n+e._offset+e.l2p(Qm(h))+t)}};function Qm(e){return e.periodX!==void 0?e.periodX:e.x}function pG(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=V0,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(v+=d*qo,h+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,h+=V0),s&&f==="top"&&(h-=d*(1-qo)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}Be.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Be.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(O){return a.indexOf(O)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),v=i("inside"),h=a==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,y=h?e.ticklen:0;if(v?y*=-1:f&&(y=0),h&&(d+=y,t)){var g=gr.deg2rad(t);d=y*Math.cos(g)+1,m=y*Math.sin(g)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},T,w,b,M,S=0,k=e.side,q=e._id.charAt(0),D=e.tickangle,P;if(q==="x")P=!v&&k==="bottom"||v&&k==="top",M=P?1:-1,v&&(M*=-1),T=m*M,w=r+d*M,b=P?1:-.2,Math.abs(D)===90&&(v?b+=Mf:D===-90&&k==="bottom"?b=qo:D===90&&k==="top"?b=Mf:b=.5,S=Mf/2*(D/90)),_.xFn=function(O){return O.dx+T+S*O.fontSize},_.yFn=function(O){return O.dy+w+O.fontSize*b},_.anchorFn=function(O,I){if(f){if(o)return"end";if(s)return"start"}return!Ot(I)||I===0||I===180?"middle":I*M<0!==v?"end":"start"},_.heightFn=function(O,I,V){return I<-60||I>60?-.5*V:e.side==="top"!==v?-V:0};else if(q==="y"){if(P=!v&&k==="left"||v&&k==="right",M=P?1:-1,v&&(M*=-1),T=d,w=m*M,b=0,!v&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=qo:b=.5),v){var z=Ot(D)?+D:0;if(z!==0){var F=gr.deg2rad(z);S=Math.abs(Math.sin(F))*qo*M,b=0}}_.xFn=function(O){return O.dx+r-(T+O.fontSize*b)*M+S*O.fontSize},_.yFn=function(O){return O.dy+w+O.fontSize*Mf},_.anchorFn=function(O,I){return Ot(I)&&Math.abs(I)===90?"middle":P?"end":"start"},_.heightFn=function(O,I,V){return e.side==="right"&&(I*=-1),I<-30?-V:I<30?-.5*V:0}}return _};function X0(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Be.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,X0);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return kf.stroke(Cn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return fn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Z0(r,[L8]),i.attr("transform",t.transFn)};Be.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(_){return _.minor}):[],l=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],o=t.counterAxis;if(o&&Be.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;m--){var y=m?h:d;if(y){var g=y.selectAll("path."+a).data(m?l:i,X0);g.exit().remove(),g.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),g.attr("transform",t.transFn).attr("d",t.path).each(function(_){return kf.stroke(Cn.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return fn.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&g.attr("d",t.path)}}Z0(r,[Jm,Km])}};Be.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Be.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return GV(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(kf.stroke,r.zerolinecolor||kf.defaultLine).style("stroke-width",fn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Z0(r,[Zm])};Be.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(H){return H.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],v=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],X0),h=[];v.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(H){var Q=Cn.select(this),Z=e._promises.length;Q.call(So.positionText,s.xFn(H),s.yFn(H)).call(fn.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(So.convertToTspans,e),e._promises[Z]?h.push(e._promises.pop().then(function(){d(Q,u)})):d(Q,u)}),Z0(r,[b8]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(H){Cn.select(this).select("text").call(So.positionText,s.xFn(H),s.yFn(H))});function d(H,Q){H.each(function(Z){var ne=Cn.select(this),ce=ne.select(".text-math-group"),ye=s.anchorFn(Z,Q),Ce=t.transFn.call(ne.node(),Z)+(Ot(Q)&&+Q!=0?" rotate("+Q+","+s.xFn(Z)+","+(s.yFn(Z)-Z.fontSize/2)+")":""),re=So.lineCount(ne),Se=Sf*Z.fontSize,pe=s.heightFn(Z,Ot(Q)?+Q:0,(re-1)*Se);if(pe&&(Ce+=Ks(0,pe)),ce.empty()){var be=ne.select("text");be.attr({transform:Ce,"text-anchor":ye}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Ae=fn.bBox(ce.node()).width,ge=Ae*{end:-.5,start:.5}[ye];ce.attr("transform",Ce+Ks(ge,0))}})}r._adjustTickLabelsOverflow=function(){var H=r.ticklabeloverflow;if(!(!H||H==="allow")){var Q=H.indexOf("hide")!==-1,Z=r._id.charAt(0)==="x",ne=0,ce=Z?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var ye=gr.simpleMap(r.range,r.r2l);ne=r.l2p(ye[0])+r._offset,ce=r.l2p(ye[1])+r._offset}var Ce=Math.min(ne,ce),re=Math.max(ne,ce),Se=r.side,pe=1/0,be=-1/0;v.each(function($){var Y=Cn.select(this),le=Y.select(".text-math-group");if(le.empty()){var he=fn.bBox(Y.node()),me=0;Z?(he.right>re||he.leftre||he.top+(r.tickangle?0:$.fontSize/4)r["_visibleLabelMin_"+ye._id]?Y.style("display","none"):re.K==="tick"&&!Ce&&Y.node().style.display!=="none"&&Y.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var y=null;function g(){if(d(v,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var H=0,Q=[],Z,ne=1;v.each(function(He){H=Math.max(H,He.fontSize);var We=r.l2p(He.x),ie=$m(this),xe=fn.bBox(ie.node());ne=Math.max(ne,So.lineCount(ie)),Q.push({top:0,bottom:10,height:10,left:We-xe.width/2,right:We+xe.width/2+2,width:xe.width+2})});var ce=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ye=o.length,Ce=Math.abs((o[ye-1].x-o[0].x)*r._m)/(ye-1),re=ce?Ce/2:Ce,Se=ce?r.ticklen:H*1.25*ne,pe=Math.sqrt(Math.pow(re,2)+Math.pow(Se,2)),be=re/pe,Ae=r.autotickangles.map(function(He){return He*Math.PI/180}),ge=Ae.find(function(He){return Math.abs(Math.cos(He))<=be});ge===void 0&&(ge=Ae.reduce(function(He,We){return Math.abs(Math.cos(He))J*V&&(F=V,D[q]=P[q]=O[q])}var G=Math.abs(F-z);G-M>0?(G-=M,M*=1+M/G):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[k]=w.p2r(w.r2p(P[k])+S*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var U=gr.syncOrAsync(_);return U&&U.then&&e._promises.push(U),U};function mG(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,X0);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(kf.stroke,r.dividercolor).style("stroke-width",fn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Be.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function S8(e){var r=e.title.font.size,t=(e.title.text.match(So.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(qo+t*Sf):t?r*(t+1)*Sf:r}function yG(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(So.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*qo:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(Mf+o*Sf));else{var s=qf(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Be.getPxPosition(e,r),v,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(m={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var g=fn.getTranslate(y.node().parentNode);m.offsetLeft=g.x,m.offsetTop=g.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,NV.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}Be.shouldShowZeroLine=function(e,r,t){var a=gr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===G0)&&(F8(r,0)||!gG(e,r,t,a)||bG(e,r))};Be.clipEnds=function(e,r){return r.filter(function(t){return F8(e,t.x)})};function F8(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=YV:/%L/.test(r)?e>=BV:/%[SX]/.test(r)?e>=U0:/%M/.test(r)?e>=Cf:/%[HI]/.test(r)?e>=Ci:/%p/.test(r)?e>=Sl:/%[Aadejuwx]/.test(r)?e>=Ra:/%[UVW]/.test(r)?e>=cn:/%[Bbm]/.test(r)?e>=Y0:/%[q]/.test(r)?e>=B0:/%[Yy]/.test(r)?e>=O0:!0}});var Y8=K((qse,B8)=>{"use strict";B8.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var iy=K((Dse,U8)=>{"use strict";var AG=Y8();U8.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),v;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(AG(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var G8=K((Ese,V8)=>{var kG={left:0,top:0};V8.exports=CG;function CG(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=SG(r);return t[0]=a-i.left,t[1]=n-i.top,t}function SG(e){return e===window||e===document||e===document.body?kG:e.getBoundingClientRect()}});var ly=K((Pse,W8)=>{"use strict";var LG=Rp();function qG(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}W8.exports=LG&&qG()});var Z8=K((Rse,X8)=>{"use strict";X8.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var Q8=K((zse,K8)=>{"use strict";var J8=Fe(),DG=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];K8.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=J8.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=J8.constrain(Math.floor(t*3),0,2),DG[t][r]}});var j8=K((Nse,$8)=>{"use strict";var EG=vf(),PG=Zv(),RG=af().getGraphDiv,zG=ju(),oy=$8.exports={};oy.wrapped=function(e,r,t){e=RG(e),e._fullLayout&&PG.clear(e._fullLayout._uid+zG.HOVERID),oy.raw(e,r,t)};oy.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&EG.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var ti=K((Fse,aw)=>{"use strict";var NG=G8(),sy=Np(),FG=ly(),IG=Fe().removeElement,HG=$t(),Do=aw.exports={};Do.align=Z8();Do.getCursor=Q8();var rw=j8();Do.unhover=rw.wrapped;Do.unhoverRaw=rw.raw;Do.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=g,FG?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=g,i.addEventListener("touchstart",g,{passive:!1})):i.ontouchstart=g;function m(w,b,M){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(M=>{var S=v[M];!b[M]&&typeof S!="function"&&(b[M]=S)})),r.clickFn&&r.clickFn(a,b),d||h.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function tw(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Do.coverSlip=tw;function ew(e){return NG(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ll=K((Ise,nw)=>{"use strict";nw.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var ow=K((Hse,lw)=>{"use strict";var uy=Ll(),Df="data-savedcursor",iw="!!";lw.exports=function(r,t){var a=r.attr(Df);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var fy=ga(),OG=gi();sw.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:OG.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:fy({editType:"legend"}),grouptitlefont:fy({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:fy({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Pf=K(Ef=>{"use strict";Ef.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Ef.isVertical=function(r){return r.orientation!=="h"};Ef.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Ef.getId=function(r){return r._id||"legend"}});var hy=K((Yse,uw)=>{"use strict";var J0=br(),vn=Fe(),BG=ct(),YG=Zn(),UG=cy(),VG=Ss(),vy=Pf();function GG(e,r,t,a,n){var i=r[e]||{},l=BG.newContainer(t,e);function o(H,Q){return vn.coerce(i,l,UG,H,Q)}var s=vn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,v=function(H,Q){var Z=f._input,ne=f;return vn.coerce(Z,ne,YG,H,Q)},h=t.font||{},d=vn.coerceFont(o,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),m=0,y=!1,g="normal",_=(t.shapes||[]).filter(function(H){return H.showlegend});function T(H){return J0.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}a.filter(T).forEach(function(H){H.visible&&m++;for(var Q=0;QH.legend.length)for(var ne=H.legend.length;ne(e==="legend"?1:0));if(S===!1&&(t[e]=void 0),!(S===!1&&!i.uirevision)&&(o("uirevision",t.uirevision),S!==!1)){o("borderwidth");var k=o("orientation"),q=o("yref"),D=o("xref"),P=k==="h",z=q==="paper",F=D==="paper",O,I,V,J="left";P?(O=0,J0.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(I=1.1,V="bottom"):(I=1,V="top"):z?(I=-.1,V="top"):(I=0,V="bottom")):(I=1,V="auto",F?O=1.02:(O=1,J="right")),vn.coerce(i,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:O}},"x"),vn.coerce(i,l,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:I}},"y"),o("traceorder",g),vy.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",J),o("yanchor",V),o("maxheight"),o("valign"),vn.noneOrAll(i,l,["x","y"]);var G=o("title.text");if(G){o("title.side",P?"left":"top");var U=vn.extendFlat({},s,{size:vn.bigFont(s.size)});vn.coerceFont(o,"title.font",U);let H=n>1;o("titleclick",H?"toggle":!1),o("titledoubleclick",H?"toggleothers":!1)}}}uw.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var ql=br(),dy=Fe(),WG=dy.pushUnique,XG=Pf(),fw=!0;py.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;var o=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&fw&&t.data&&t._context.showTips&&(dy.notifier(dy._(t,"Double-click on legend to isolate one trace"),"long",t),fw=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let v=(i.shapes||[]).filter(Ee=>Ee.showlegend||Ee.legendgroup);var h=f.concat(v),d=l.trace;d._isShape&&(d=d._fullInput);var m=d.legendgroup,y,g,_,T,w,b,M={},S=[],k=[],q=[];function D(Ee,Le){var Ve=S.indexOf(Ee),Ie=M.visible;return Ie||(Ie=M.visible=[]),S.indexOf(Ee)===-1&&(S.push(Ee),Ve=S.length-1),Ie[Ve]=Le,Ve}var P=(i.shapes||[]).map(function(Ee){return Ee._input}),z=!1;function F(Ee,Le){P[Ee].visible=Le,z=!0}function O(Ee,Le){if(!(l.groupTitle&&!s)){var Ve=Ee._fullInput||Ee,Ie=Ve._isShape,Xe=Ve.index;Xe===void 0&&(Xe=Ve._index);var De=Ve.visible===!1?!1:Le;Ie?F(Xe,De):D(Xe,De)}}var I=d.legend,V=d._fullInput,J=V&&V._isShape;if(!J&&ql.traceIs(d,"pie-like")){var G=l.label,U=u.indexOf(G);if(n==="toggle")U===-1?u.push(G):u.splice(U,1);else if(n==="toggleothers"){var H=U!==-1,Q=[];for(y=0;y_.showlegend||_.legendgroup),s=i.concat(o);function u(_){return(_.legend||"legend")===l}var f,v;if(a==="toggle")f=!s.some(function(T){return u(T)&&T.visible===!0}),v=!1;else{let _=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,v=!_}let h={visible:[]},d=[],m=(n.shapes||[]).map(function(_){return _._input});for(var y=!1,g=0;g{"use strict";cw.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var dw=K((Gse,hw)=>{"use strict";var{isArrayOrTypedArray:gy}=Ka(),vw=br(),by=Pf();hw.exports=function(r,t,a){var n=t._inHover,i=by.isGrouped(t),l=by.isReversed(t),o={},s=[],u=!1,f={},v=0,h=0,d,m;function y(Q,Z,ne){if(t.visible!==!1&&!(a&&Q!==t._id))if(Z===""||!by.isGrouped(t)){var ce="~~i"+v;s.push(ce),o[ce]=[ne],v++}else s.indexOf(Z)===-1?(s.push(Z),u=!0,o[Z]=[ne]):o[Z].push(ne)}for(d=0;dO&&(z=O)}D[d][0]._groupMinRank=z,D[d][0]._preGroupSort=d}var I=function(Q,Z){return Q[0]._groupMinRank-Z[0]._groupMinRank||Q[0]._preGroupSort-Z[0]._preGroupSort},V=function(Q,Z){var ne=gy(Q.trace.legendrank)?Q.trace.legendrank[Q.i]:Q.trace.legendrank,ce=gy(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank;return ne-ce||Q._preSort-Z._preSort};for(D.forEach(function(Q,Z){Q[0]._preGroupSort=Z}),D.sort(I),d=0;d{"use strict";var K0=Fe();function pw(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Eo.formatPiePercent=function(r,t){var a=pw((r*100).toPrecision(3));return K0.numSeparate(a,t)+"%"};Eo.formatPieValue=function(r,t){var a=pw(r.toPrecision(10));return K0.numSeparate(a,t)};Eo.getFirstFilled=function(r,t){if(K0.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var ZG=tt(),JG=Er();mw.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?ZG.pointStyle(r,a,n,t):JG.fill(r,t.color)}});var $0=K((Zse,xw)=>{"use strict";var gw=Er(),bw=Q0().castOption,KG=yw();xw.exports=function(r,t,a,n){var i=a.marker.line,l=bw(i.color,t.pts)||gw.defaultLine,o=bw(i.width,t.pts)||0;r.call(KG,t,a,n).style("stroke-width",o).call(gw.stroke,l)}});var Ty=K((Jse,kw)=>{"use strict";var za=zr(),xy=br(),Ca=Fe(),_w=Ca.strTranslate,hn=tt(),Sn=Er(),_y=kn().extractOpts,j0=un(),QG=$0(),$G=Q0().castOption,jG=yy(),ww=12,Tw=5,Po=2,eW=10,js=5;kw.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+jG.itemGap*2)/2,s=_w(o,0),u=function(k,q,D,P){var z;if(k+1)z=k;else if(q&&q.width>0)z=q.width;else return 0;return i?P:Math.min(z,D)};r.each(function(k){var q=za.select(this),D=Ca.ensureSingle(q,"g","layers");D.style("opacity",k[0].trace.opacity);var P=a.indentation,z=a.valign,F=k[0].lineHeight,O=k[0].height;if(z==="middle"&&P===0||!F||!O)D.attr("transform",null);else{var I={top:1,bottom:-1}[z],V=I*(.5*(F-O+3))||0,J=a.indentation;D.attr("transform",_w(J,V))}var G=D.selectAll("g.legendfill").data([k]);G.enter().append("g").classed("legendfill",!0);var U=D.selectAll("g.legendlines").data([k]);U.enter().append("g").classed("legendlines",!0);var H=D.selectAll("g.legendsymbols").data([k]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(S).each(h).each(m).each(d).each(g).each(b).each(w).each(f).each(v).each(_).each(T);function f(k){var q=Mw(k),D=q.showFill,P=q.showLine,z=q.showGradientLine,F=q.showGradientFill,O=q.anyFill,I=q.anyLine,V=k[0],J=V.trace,G,U,H=_y(J),Q=H.colorscale,Z=H.reversescale,ne=function(be){if(be.size())if(D)hn.fillGroupStyle(be,t,!0);else{var Ae="legendfill-"+J.uid;hn.gradient(be,t,Ae,wy(Z),Q,"fill")}},ce=function(be){if(be.size()){var Ae="legendline-"+J.uid;hn.lineGroupStyle(be),hn.gradient(be,t,Ae,wy(Z),Q,"stroke")}},ye=j0.hasMarkers(J)||!O?"M5,0":I?"M5,-2":"M5,-3",Ce=za.select(this),re=Ce.select(".legendfill").selectAll("path").data(D||F?[k]:[]);if(re.enter().append("path").classed("js-fill",!0),re.exit().remove(),re.attr("d",ye+"h"+l+"v6h-"+l+"z").call(ne),P||z){var Se=u(void 0,J.line,eW,Tw);U=Ca.minExtend(J,{line:{width:Se}}),G=[Ca.minExtend(V,{trace:U})]}var pe=Ce.select(".legendlines").selectAll("path").data(P||z?[G]:[]);pe.enter().append("path").classed("js-line",!0),pe.exit().remove(),pe.attr("d",ye+(z?"l"+l+",0.0001":"h"+l)).call(P?hn.lineGroupStyle:ce)}function v(k){var q=Mw(k),D=q.anyFill,P=q.anyLine,z=q.showLine,F=q.showMarker,O=k[0],I=O.trace,V=!F&&!P&&!D&&j0.hasText(I),J,G;function U(re,Se,pe,be){var Ae=Ca.nestedProperty(I,re).get(),ge=Ca.isArrayOrTypedArray(Ae)&&Se?Se(Ae):Ae;if(i&&ge&&be!==void 0&&(ge=be),pe){if(gepe[1])return pe[1]}return ge}function H(re){return O._distinct&&O.index&&re[O.index]?re[O.index]:re[0]}if(F||V||z){var Q={},Z={};if(F){Q.mc=U("marker.color",H),Q.mx=U("marker.symbol",H),Q.mo=U("marker.opacity",Ca.mean,[.2,1]),Q.mlc=U("marker.line.color",H),Q.mlw=U("marker.line.width",Ca.mean,[0,5],Po),Q.mld=I._isShape?"solid":U("marker.line.dash",H),Z.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=U("marker.size",Ca.mean,[2,16],ww);Q.ms=ne,Z.marker.size=ne}z&&(Z.line={width:U("line.width",H,[0,10],Tw)}),V&&(Q.tx="Aa",Q.tp=U("textposition",H),Q.ts=10,Q.tc=U("textfont.color",H),Q.tf=U("textfont.family",H),Q.tw=U("textfont.weight",H),Q.ty=U("textfont.style",H),Q.tv=U("textfont.variant",H),Q.tC=U("textfont.textcase",H),Q.tE=U("textfont.lineposition",H),Q.tS=U("textfont.shadow",H)),J=[Ca.minExtend(O,Q)],G=Ca.minExtend(I,Z),G.selectedpoints=null,G.texttemplate=null}var ce=za.select(this).select("g.legendpoints"),ye=ce.selectAll("path.scatterpts").data(F?J:[]);ye.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ye.exit().remove(),ye.call(hn.pointStyle,G,t),F&&(J[0].mrc=3);var Ce=ce.selectAll("g.pointtext").data(V?J:[]);Ce.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ce.exit().remove(),Ce.selectAll("text").call(hn.textPointStyle,G,t)}function h(k){var q=k[0].trace,D=q.type==="waterfall";if(k[0]._distinct&&D){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,y(k,this,"waterfall")}var z=[];q.visible&&D&&(z=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=za.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(O){var I=za.select(this),V=q[O[0]].marker,J=u(void 0,V.line,js,Po);I.attr("d",O[1]).style("stroke-width",J+"px").call(Sn.fill,V.color),J&&I.call(Sn.stroke,V.line.color)})}function d(k){y(k,this)}function m(k){y(k,this,"funnel")}function y(k,q,D){var P=k[0].trace,z=P.marker||{},F=z.line||{},O=z.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",I=D?P.visible&&P.type===D:xy.traceIs(P,"bar"),V=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(I?[k]:[]);V.enter().append("path").classed("legend"+D,!0).attr("d",O).attr("transform",s),V.exit().remove(),V.each(function(J){var G=za.select(this),U=J[0],H=u(U.mlw,z.line,js,Po);G.style("stroke-width",H+"px");var Q=U.mcc;if(!a._inHover&&"mc"in U){var Z=_y(z),ne=Z.mid;ne===void 0&&(ne=(Z.max+Z.min)/2),Q=hn.tryColorscale(z,"")(ne)}var ce=Q||U.mc||z.color,ye=z.pattern,Ce=hn.getPatternAttr,re=ye&&(Ce(ye.shape,0,"")||Ce(ye.path,0,""));if(re){var Se=Ce(ye.bgcolor,0,null),pe=Ce(ye.fgcolor,0,null),be=ye.fgopacity,Ae=Aw(ye.size,8,10),ge=Aw(ye.solidity,.5,1),B="legend-"+P.uid;G.call(hn.pattern,"legend",t,B,re,Ae,ge,Q,ye.fillmode,Se,pe,be)}else G.call(Sn.fill,ce);H&&Sn.stroke(G,U.mlc||F.color)})}function g(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&xy.traceIs(q,"box-violin")?[k]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var P=za.select(this);if((q.boxpoints==="all"||q.points==="all")&&Sn.opacity(q.fillcolor)===0&&Sn.opacity((q.line||{}).color)===0){var z=Ca.minExtend(q,{marker:{size:i?ww:Ca.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(hn.pointStyle,z,t)}else{var F=u(void 0,q.line,js,Po);P.style("stroke-width",F+"px").call(Sn.fill,q.fillcolor),F&&Sn.stroke(P,q.line.color)}})}function _(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[k,k]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(P,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(P,z){var F=za.select(this),O=q[z?"increasing":"decreasing"],I=u(void 0,O.line,js,Po);F.style("stroke-width",I+"px").call(Sn.fill,O.fillcolor),I&&Sn.stroke(F,O.line.color)})}function T(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[k,k]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(P,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(P,z){var F=za.select(this),O=q[z?"increasing":"decreasing"],I=u(void 0,O.line,js,Po);F.style("fill","none").call(hn.dashLine,O.line.dash,I),I&&Sn.stroke(F,O.line.color)})}function w(k){M(k,this,"pie")}function b(k){M(k,this,"funnelarea")}function M(k,q,D){var P=k[0],z=P.trace,F=D?z.visible&&z.type===D:xy.traceIs(z,D),O=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(F?[k]:[]);if(O.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),O.exit().remove(),O.size()){var I=z.marker||{},V=u($G(I.line.width,P.pts),I.line,js,Po),J="pieLike",G=Ca.minExtend(z,{marker:{line:{width:V}}},J),U=Ca.minExtend(P,{trace:G},J);QG(O,U,G,t)}}function S(k){var q=k[0].trace,D,P=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var z=za.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,O){var I=za.select(this),V=_y(q),J=V.colorscale,G=V.reversescale,U=function(ne){if(ne.size()){var ce="legendfill-"+q.uid;hn.gradient(ne,t,ce,wy(G,D==="radial"),J,"fill")}},H;if(J){if(!D){var Z=J.length;H=O===0?J[G?Z-1:0][1]:O===1?J[G?0:Z-1][1]:J[Math.floor((Z-1)/2)][1]}}else{var Q=q.vertexcolor||q.facecolor||q.color;H=Ca.isArrayOrTypedArray(Q)?Q[O]||Q[0]:Q}I.attr("d",F[0]),H?I.call(Sn.fill,H):I.call(U)})}};function wy(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function Mw(e){var r=e[0].trace,t=r.contours,a=j0.hasLines(r),n=j0.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function Aw(e,r,t){return e&&Ca.isArrayOrTypedArray(e)?r:e>t?t:e}});var Cy=K((Kse,zw)=>{"use strict";var Va=zr(),Et=Fe(),Ay=It(),Ro=br(),th=vf(),My=ti(),Pt=tt(),Rf=Er(),zo=ba(),Cw=my().handleItemClick,Sw=my().handleTitleClick,Bt=yy(),ky=Aa(),Pw=ky.LINE_SPACING,ru=ky.FROM_TL,Lw=ky.FROM_BR,qw=dw(),rW=Ty(),tu=Pf(),eu=1,tW=/^legend[0-9]*$/;zw.exports=function(r,t){if(t)Dw(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Va.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(tW)&&n.indexOf(v)===-1&&u.remove()});for(var l=0;l1)}var m=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Ay.autoMargin(e,n);var y=Et.ensureSingle(l,"g",n,function(q){o||q.attr("pointer-events","all")}),g=Et.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),_=Et.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});_.call(Rf.stroke,t.bordercolor).call(Rf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Et.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var b;w.text?(b=Et.ensureSingle(T,"text",n+"titletext"),b.attr("text-anchor","start").call(Pt.font,w.font).text(w.text),rh(b,T,e,t,eu),!o&&(t.titleclick||t.titledoubleclick)&&lW(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var M=Et.ensureSingle(y,"rect","scrollbar",function(q){q.attr(Bt.scrollBarEnterAttrs).call(Rf.fill,Bt.scrollBarColor)}),S=T.selectAll("g.groups").data(s);S.enter().append("g").attr("class","groups"),S.exit().remove();var k=S.selectAll("g.traces").data(Et.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(q){let D=q[0],P=D.trace;if(D.groupTitle){let z=P.legendgroup,F=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(F).some(function(I){return I.legendgroup===z&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return Ro.traceIs(P,"pie-like")?m.indexOf(q[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){Va.select(this).call(nW,e,t)}).call(rW,e,t).each(function(q){o||q[0].groupTitle&&t.groupclick==="toggleitem"||Va.select(this).call(iW,e,n)}),Et.syncOrAsync([Ay.previousPromises,function(){return uW(e,S,k,t,T)},function(){var q=a._size,D=t.borderwidth,P=t.xref==="paper",z=t.yref==="paper";if(w.text){let le=(a.shapes||[]).filter(function(me){return me.showlegend}),he=e._fullData.concat(le).some(function(me){let Re=me.legend||"legend";var Ee=Array.isArray(Re)?Re.includes(n):Re===n;return Ee&&me.visible===!0});b.style("opacity",he?1:.5)}if(!o){var F,O;P?F=q.l+q.w*t.x-ru[ah(t)]*t._width:F=a.width*t.x-ru[ah(t)]*t._width,z?O=q.t+q.h*(1-t.y)-ru[nh(t)]*t._effHeight:O=a.height*(1-t.y)-ru[nh(t)]*t._effHeight;var I=fW(e,n,F,O);if(I)return;if(a.margin.autoexpand){var V=F,J=O;F=P?Et.constrain(F,0,a.width-t._width):V,O=z?Et.constrain(O,0,a.height-t._effHeight):J,F!==V&&Et.log("Constrain "+n+".x to make legend fit inside graph"),O!==J&&Et.log("Constrain "+n+".y to make legend fit inside graph")}Pt.setTranslate(y,F,O)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;o&&(G=t._height),_.attr({width:t._width-D,height:G-D,x:D/2,y:D/2}),Pt.setTranslate(T,0,0),g.select("rect").attr({width:t._width-2*D,height:G-2*D,x:D,y:D}),Pt.setClipUrl(T,i,e),Pt.setRect(M,0,0,0,0),delete t._scrollY}else{var U=Math.max(Bt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),H=t._effHeight-U-2*Bt.scrollBarMargin,Q=t._height-t._effHeight,Z=H/Q,ne=Math.min(t._scrollY||0,Q);_.attr({width:t._width-2*D+Bt.scrollBarWidth+Bt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),g.select("rect").attr({width:t._width-2*D+Bt.scrollBarWidth+Bt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ne}),Pt.setClipUrl(T,i,e),Ae(ne,U,Z),y.on("wheel",function(){ne=Et.constrain(t._scrollY+Va.event.deltaY/Q*H,0,Q),Ae(ne,U,Z),ne!==0&&ne!==Q&&Va.event.preventDefault()});var ce,ye,Ce,re=function(le,he,me){var Re=(me-he)/Z+le;return Et.constrain(Re,0,Q)},Se=function(le,he,me){var Re=(he-me)/Z+le;return Et.constrain(Re,0,Q)},pe=Va.behavior.drag().on("dragstart",function(){var le=Va.event.sourceEvent;le.type==="touchstart"?ce=le.changedTouches[0].clientY:ce=le.clientY,Ce=ne}).on("drag",function(){var le=Va.event.sourceEvent;le.buttons===2||le.ctrlKey||(le.type==="touchmove"?ye=le.changedTouches[0].clientY:ye=le.clientY,ne=re(Ce,ce,ye),Ae(ne,U,Z))});M.call(pe);var be=Va.behavior.drag().on("dragstart",function(){var le=Va.event.sourceEvent;le.type==="touchstart"&&(ce=le.changedTouches[0].clientY,Ce=ne)}).on("drag",function(){var le=Va.event.sourceEvent;le.type==="touchmove"&&(ye=le.changedTouches[0].clientY,ne=Se(Ce,ce,ye),Ae(ne,U,Z))});T.call(be)}function Ae(le,he,me){t._scrollY=e._fullLayout[n]._scrollY=le,Pt.setTranslate(T,0,-le),Pt.setRect(M,t._width,Bt.scrollBarMargin+le*me,Bt.scrollBarWidth,he),g.select("rect").attr("y",D+le)}if(e._context.edits.legendPosition){var ge,B,$,Y;y.classed("cursor-move",!0),My.init({element:y.node(),gd:e,prepFn:function(le){if(le.target!==M.node()){var he=Pt.getTranslate(y);$=he.x,Y=he.y}},moveFn:function(le,he){if($!==void 0&&Y!==void 0){var me=$+le,Re=Y+he;Pt.setTranslate(y,me,Re),ge=My.align(me,t._width,q.l,q.l+q.w,t.xanchor),B=My.align(Re+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(ge!==void 0&&B!==void 0){var le={};le[n+".x"]=ge,le[n+".y"]=B,Ro.call("_guiRelayout",e,le)}},clickFn:function(le,he){var me=l.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return he.clientX>=Re.left&&he.clientX<=Re.right&&he.clientY>=Re.top&&he.clientY<=Re.bottom});me.size()>0&&Rw(e,t,me,le,he)}})}}],e)}}function eh(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function Rw(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),Ro.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=th.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&Cw(t,e,r,o)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var v=th.triggerHandler(e,"plotly_legenddoubleclick",u);v!==!1&&f!==!1&&s&&Cw(t,e,r,s)}}function nW(e,r,t){var a=tu.getId(t),n=e.data()[0][0],i=n.trace,l=Ro.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Et.templateString(u,i._meta))));var v=Et.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Pt.font,f).text(o?Ew(u,s):u);var h=t.indentation+t.itemwidth+Bt.itemGap*2;zo.positionText(v,h,0),o?v.call(zo.makeEditable,{gd:r,text:u}).call(rh,e,r,t).on("edit",function(d){this.text(Ew(d,s)).call(rh,e,r,t);var m=n.trace._fullInput||{},y={};return y.name=d,m._isShape?Ro.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Ro.call("_guiRestyle",r,y,i.index)}):rh(v,e,r,t)}function Ew(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function iW(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Et.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Rf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),Rw(r,o,e,i,Va.event)}}))}function lW(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&Ro.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Et.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Rf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:Va.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(th.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&Sw(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,th.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&Sw(r,t,t.titledoubleclick))}))}function rh(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),zo.convertToTspans(e,t,function(){oW(r,t,a,n)})}function oW(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=tu.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===eu?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var v=f.size*Pw,h,d;if(o){var m=Pt.bBox(o);h=m.height,d=m.width,a===eu?Pt.setTranslate(l,u,u+h*.75):Pt.setTranslate(l,0,h*.25)}else{var y="."+s+(a===eu?"title":"")+"text",g=e.select(y),_=zo.lineCount(g),T=g.node();if(h=v*_,d=T?Pt.bBox(T).width:0,a===eu)t.title.side==="left"&&(d+=Bt.itemGap*2),zo.positionText(g,u+Bt.titlePad,u+v);else{var w=Bt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Bt.itemGap,d-=t.indentation+t.itemwidth),zo.positionText(g,w,-v*((_-1)/2-.3))}}a===eu?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=v,n.height=Math.max(h,16)+3,n.width=d)}function sW(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function uW(e,r,t,a,n){var i=e._fullLayout,l=tu.getId(a);a||(a=i[l]);var o=i._size,s=tu.isVertical(a),u=tu.isGrouped(a),f=a.entrywidthmode==="fraction",v=a.borderwidth,h=2*v,d=Bt.itemGap,m=a.indentation+a.itemwidth+d*2,y=2*(v+d),g=nh(a),_=a.y<0||a.y===0&&g==="top",T=a.y>1||a.y===1&&g==="bottom",w=a.tracegroupgap,b={};let{orientation:M,yref:S}=a,{maxheight:k}=a,q=_||T||M!=="v"||S!=="paper";k||(k=q?.5:1);let D=q?i.height:o.h;a._maxHeight=Math.max(k>1?k:k*D,30);var P=0;a._width=0,a._height=0;var z=sW(a);if(s)t.each(function(le){var he=le[0].height;Pt.setTranslate(this,v+z[0],v+z[1]+a._height+he/2+d),a._height+=he,a._width=Math.max(a._width,le[0].width)}),P=m+a._width,a._width+=d+m+h,a._height+=y,u&&(r.each(function(le,he){Pt.setTranslate(this,0,he*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var F=ah(a),O=a.x<0||a.x===0&&F==="right",I=a.x>1||a.x===1&&F==="left",V=T||_,J=i.width/2;a._maxWidth=Math.max(O?V&&F==="left"?o.l+o.w:J:I?V&&F==="right"?o.r+o.w:J:o.w,2*m);var G=0,U=0;t.each(function(le){var he=eh(le,a,m);G=Math.max(G,he),U+=he}),P=null;var H=0;if(u){var Q=0,Z=0,ne=0;r.each(function(){var le=0,he=0;Va.select(this).selectAll("g.traces").each(function(Re){var Ee=eh(Re,a,m),Le=Re[0].height;Pt.setTranslate(this,z[0],z[1]+v+d+Le/2+he),he+=Le,le=Math.max(le,Ee),b[Re[0].trace.legendgroup]=le});var me=le+d;Z>0&&me+v+Z>a._maxWidth?(H=Math.max(H,Z),Z=0,ne+=Q+w,Q=he):Q=Math.max(Q,he),Pt.setTranslate(this,Z,ne),Z+=me}),a._width=Math.max(H,Z)+v,a._height=ne+Q+y}else{var ce=t.size(),ye=U+h+(ce-1)*d=a._maxWidth&&(H=Math.max(H,pe),re=0,Se+=Ce,a._height+=Ce,Ce=0),Pt.setTranslate(this,z[0]+v+re,z[1]+v+Se+he/2+d),pe=re+me+d,re+=Re,Ce=Math.max(Ce,he)}),ye?(a._width=re+h,a._height=Ce+y):(a._width=Math.max(H,pe)+h,a._height+=Ce+y)}}a._width=Math.ceil(Math.max(a._width+z[0],a._titleWidth+2*(v+Bt.titlePad))),a._height=Math.ceil(Math.max(a._height+z[1],a._titleHeight+2*(v+Bt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,Ae=be.legendText||be.legendPosition;t.each(function(le){var he=Va.select(this).select("."+l+"toggle"),me=le[0].height,Re=le[0].trace.legendgroup,Ee=eh(le,a,m);u&&Re!==""&&(Ee=b[Re]);var Le=Ae?m:P||Ee;!s&&!f&&(Le+=d/2),Pt.setRect(he,0,-me/2,Le,me)});var ge=n.select("."+l+"titletext");ge.node()&&aW(ge,a,v);var B=n.select("."+l+"titletoggle");if(B.size()&&ge.node()){var $=ge.attr("x")||0,Y=Bt.titlePad;Pt.setRect(B,$-Y,v,a._titleWidth+2*Y,a._titleHeight+2*Y)}}function fW(e,r,t,a){var n=e._fullLayout,i=n[r],l=ah(i),o=nh(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Ay.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*ru[l],r:i._width*Lw[l],b:i._effHeight*Lw[o],t:i._effHeight*ru[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function ah(e){return Et.isRightAnchor(e)?"right":Et.isCenterAnchor(e)?"center":"left"}function nh(e){return Et.isBottomAnchor(e)?"bottom":Et.isMiddleAnchor(e)?"middle":"top"}});var Dy=K(qy=>{"use strict";var No=zr(),Ki=Hr(),Nw=wn(),Tt=Fe(),cW=Tt.pushUnique,Sy=Tt.strTranslate,vW=Tt.strRotate,hW=vf(),Ln=ba(),dW=ow(),Li=tt(),ea=Er(),ih=ti(),qi=pt(),pW=$t().zindexSeparator,nu=br(),ai=Ti(),Fo=ju(),mW=hy(),yW=Cy(),Vw=Fo.YANGLE,Ly=Math.PI*Vw/180,gW=1/Math.sin(Ly),bW=Math.cos(Ly),xW=Math.sin(Ly),mt=Fo.HOVERARROWSIZE,Or=Fo.HOVERTEXTPAD,Fw={box:!0,ohlc:!0,violin:!0,candlestick:!0},_W={scatter:!0,scattergl:!0,splom:!0};function Iw(e,r){return e.distance-r.distance}qy.hover=function(r,t,a,n){r=Tt.getGraphDiv(r);var i=t.target;Tt.throttle(r._fullLayout._uid+Fo.HOVERID,Fo.HOVERMINTIME,function(){wW(r,t,a,n,i)})};qy.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Jw(n),l=Kw(n),o=r.map(function(g){var _=g._x0||g.x0||g.x||0,T=g._x1||g.x1||g.x||0,w=g._y0||g.y0||g.y||0,b=g._y1||g.y1||g.y||0,M=g.eventData;if(M){var S=Math.min(_,T),k=Math.max(_,T),q=Math.min(w,b),D=Math.max(w,b),P=g.trace;if(nu.traceIs(P,"gl3d")){var z=n._fullLayout[P.scene]._scene.container,F=z.offsetLeft,O=z.offsetTop;S+=F,k+=F,q+=O,D+=O}M.bbox={x0:S+l,x1:k+l,y0:q+i,y1:D+i},M.xPixel=(_+T)/2,M.yPixel=(w+b)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:g.color||ea.defaultLine,x0:g.x0||g.x||0,x1:g.x1||g.x||0,y0:g.y0||g.y||0,y1:g.y1||g.y||0,xLabel:g.xLabel,yLabel:g.yLabel,zLabel:g.zLabel,text:g.text,name:g.name,idealAlign:g.idealAlign,borderColor:g.borderColor,fontFamily:g.fontFamily,fontSize:g.fontSize,fontColor:g.fontColor,fontWeight:g.fontWeight,fontStyle:g.fontStyle,fontVariant:g.fontVariant,nameLength:g.nameLength,textAlign:g.textAlign,trace:g.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:g.hovertemplate||!1,hovertemplateLabels:g.hovertemplateLabels||!1,eventData:M}}),s=!1,u=Ww(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ea.background,container:No.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(g,_){return g.y0-_.y0}).each(function(g,_){var T=g.y0-g.by/2;T-vk[0]._length||Y<0||Y>q[0]._length)return ih.unhoverRaw(e,r)}if(r.pointerX=$+k[0]._offset,r.pointerY=Y+q[0]._offset,"xval"in r?J=ai.flat(i,r.xval):J=ai.p2c(k,$),"yval"in r?G=ai.flat(i,r.yval):G=ai.p2c(q,Y),!Ki(J[0])||!Ki(G[0]))return Tt.warn("Fx.hover failed",r,e),ih.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=J,e._hoverYVals=G,e._hoverXAxes=k,e._hoverYAxes=q);var me=1/0;function Re(vr,ot){for(H=0;Hpe&&(I.splice(0,pe),me=I[0].distance),v&&O!==0&&I.length===0){Se.distance=O,Se.index=!1;var at=Z._module.hoverPoints(Se,Ce,re,"closest",{hoverLayer:o._hoverlayer});if(at&&(at=at.filter(function(Ft){return Ft.spikeDistance<=O})),at&&at.length){var Xa,Un=at.filter(function(Ft){return Ft.xa.showspikes&&Ft.xa.spikesnap!=="hovered data"});if(Un.length){var Kt=Un[0];Ki(Kt.x0)&&Ki(Kt.y0)&&(Xa=Le(Kt),(!be.vLinePoint||be.vLinePoint.spikeDistance>Xa.spikeDistance)&&(be.vLinePoint=Xa))}var vt=at.filter(function(Ft){return Ft.ya.showspikes&&Ft.ya.spikesnap!=="hovered data"});if(vt.length){var Nt=vt[0];Ki(Nt.x0)&&Ki(Nt.y0)&&(Xa=Le(Nt),(!be.hLinePoint||be.hLinePoint.spikeDistance>Xa.spikeDistance)&&(be.hLinePoint=Xa))}}}}}Re();function Ee(vr,ot,Xr){for(var nt=null,oa=1/0,sa,at=0;atvr.trace.index===ke.trace.index):I=[ke];var Oe=I.length,Ze=Uw("x",ke,o),Ue=Uw("y",ke,o);Re(Ze,Ue);var Ge=[],ir={},ar=0,er=function(vr){var ot=Fw[vr.trace.type]?Gw(vr):vr.trace.index;if(!ir[ot])ar++,ir[ot]=ar,Ge.push(vr);else{var Xr=ir[ot]-1,nt=Ge[Xr];Xr>0&&Math.abs(vr.distance)Oe-1;Ne--)er(I[Ne]);I=Ge,De()}var ae=e._hoverdata,oe=[],qe=Jw(e),Pe=Kw(e);for(let vr of I){var $e=ai.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var cr=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(cr=vr.cd[vr.index].ht),vr.hovertemplate=cr||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var sr=vr.x0+vr.xa._offset,Mr=vr.x1+vr.xa._offset,Ir=vr.y0+vr.ya._offset,Jr=vr.y1+vr.ya._offset,lt=Math.min(sr,Mr),_t=Math.max(sr,Mr),gt=Math.min(Ir,Jr),Yt=Math.max(Ir,Jr);$e.bbox={x0:lt+Pe,x1:_t+Pe,y0:gt+qe,y1:Yt+qe},$e.xPixel=(sr+Mr)/2,$e.yPixel=(Ir+Jr)/2}vr.eventData=[$e],oe.push($e)}e._hoverdata=oe;var zt=h==="y"&&(V.length>1||I.length>1)||h==="closest"&&Ae&&I.length>1,Ba=ea.combine(o.plot_bgcolor||ea.background,o.paper_bgcolor),ha=Ww(I,{gd:e,hovermode:h,rotateLabels:zt,bgColor:Ba,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),na=ha.hoverLabels;if(ai.isUnifiedHover(h)||(MW(na,zt,o,ha.commonLabelBoundingBox),Zw(na,zt,o._invScaleX,o._invScaleY)),n&&n.tagName){var Ya=nu.getComponentMethod("annotations","hasClickToShow")(e,oe);dW(No.select(n),Ya?"pointer":"")}var ia=CW(e,r,ae);if(!n||a||!ia&&!o.hoveranywhere)return;ae&&ia&&e.emit("plotly_unhover",{event:r,points:ae}),la(e._hoverdata);function la(vr){e.emit("plotly_hover",{event:r,points:vr,xaxes:k,yaxes:q,xvals:J,yvals:G})}}function Gw(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var TW=/([\s\S]*)<\/extra>/;function Ww(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Fo.HOVERFONT,v=r.fontSize||Fo.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,g=r.fontLineposition||a.font.lineposition,_=r.fontShadow||a.font.shadow,T=e[0],w=T.xa,b=T.ya,M=n.charAt(0),S=M+"Label",k=T[S];if(k===void 0&&w.type==="multicategory")for(var q=0;qa.width-oe&&(qe=a.width-oe),Me.attr("d","M"+(er-qe)+",0L"+(er-qe+mt)+","+ae+mt+"H"+oe+"v"+ae+(Or*2+ar.height)+"H"+-oe+"V"+ae+mt+"H"+(er-qe-mt)+"Z"),er=qe,H.minX=er-oe,H.maxX=er+oe,w.side==="top"?(H.minY=Ne-(Or*2+ar.height),H.maxY=Ne-Or):(H.minY=Ne+Or,H.maxY=Ne+(Or*2+ar.height))}else{var Pe,$e,cr;b.side==="right"?(Pe="start",$e=1,cr="",er=w._offset+w._length):(Pe="end",$e=-1,cr="-",er=w._offset),Ne=b._offset+(T.y0+T.y1)/2,ke.attr("text-anchor",Pe),Me.attr("d","M0,0L"+cr+mt+","+mt+"V"+(Or+ar.height/2)+"h"+cr+(Or*2+ar.width)+"V-"+(Or+ar.height/2)+"H"+cr+mt+"V-"+mt+"Z"),H.minY=Ne-(Or+ar.height/2),H.maxY=Ne+(Or+ar.height/2),b.side==="right"?(H.minX=er+mt,H.maxX=er+mt+(Or*2+ar.width)):(H.minX=er-mt-(Or*2+ar.width),H.maxX=er-mt);var sr=ar.height/2,Mr=P-ar.top-sr,Ir="clip"+a._uid+"commonlabel"+b._id,Jr;if(erMe.hoverinfo!=="none");if(ze.length===0)return[];var Q=a.hoverlabel,Z=Q.font,ne=ze[0],ce=((n==="x unified"?ne.xa:ne.ya).unifiedhovertitle||{}).text,ye=ce?Tt.hovertemplateString({data:n==="x unified"?[{xa:ne.xa,x:ne.xVal}]:[{ya:ne.ya,y:ne.yVal}],fallback:ne.trace.hovertemplatefallback,locale:a._d3locale,template:ce}):k,Ce={showlegend:!0,legend:{title:{text:ye,font:Z},font:Z,bgcolor:Q.bgcolor,bordercolor:Q.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},re={font:Z};mW(Ce,re,t._fullData);var Se=re.legend;Se.entries=[];for(var pe=0;pe=0?xe=De:He+he=0?xe=He:We+he=0?Ke=Ie:Xe+me=0?Ke=Xe:ie+me=0,(ze.idealAlign==="top"||!gt)&&Yt?(cr-=Mr/2,ze.anchor="end"):gt?(cr+=Mr/2,ze.anchor="start"):ze.anchor="middle",ze.crossPos=cr;else{if(ze.pos=cr,gt=$e+sr/2+_t<=z,Yt=$e-sr/2-_t>=0,(ze.idealAlign==="left"||!gt)&&Yt)$e-=sr/2,ze.anchor="end";else if(gt)$e+=sr/2,ze.anchor="start";else{ze.anchor="middle";var zt=_t/2,Ba=$e+zt-z,ha=$e-zt;Ba>0&&($e-=Ba),ha<0&&($e+=-ha)}ze.crossPos=$e}Ne.attr("text-anchor",ze.anchor),oe&&ae.attr("text-anchor",ze.anchor),Me.attr("transform",Sy($e,cr)+(i?vW(Vw):""))}),{hoverLabels:hr,commonLabelBoundingBox:H}}function Hw(e,r,t,a,n,i){var v,h;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Tt.templateString(e.name,e.trace._meta)),l=Yw(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(h=(v=e.trace)==null?void 0:v.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),o=Tt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),o=o.replace(TW,(m,y)=>(l=Yw(y,e.nameLength),""))}return[o,l]}function MW(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,v=a.minX,h=a.maxX,d=a.minY,m=a.maxY,y=function(J){return J*t._invScaleX},g=function(J){return J*t._invScaleY};e.each(function(J){var G=J[n],U=J[i],H=G._id.charAt(0)==="x",Q=G.range;f===0&&Q&&Q[0]>Q[1]!==H&&(o=-1);var Z=0,ne=H?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ce=Xw(J,r),ye=J.anchor,Ce=ye==="end"?-1:1,re,Se;if(ye==="middle")re=J.crossPos+(H?g(ce.y-J.by/2):y(J.bx/2+J.tx2width/2)),Se=re+(H?g(J.by):y(J.bx));else if(H)re=J.crossPos+g(mt+ce.y)-g(J.by/2-mt),Se=re+g(J.by);else{var pe=y(Ce*mt+ce.x),be=pe+y(Ce*J.bx);re=J.crossPos+Math.min(pe,be),Se=J.crossPos+Math.max(pe,be)}H?d!==void 0&&m!==void 0&&Math.min(Se,m)-Math.max(re,d)>1&&(U.side==="left"?(Z=U._mainLinePosition,ne=t.width):ne=U._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(re,v)>1&&(U.side==="top"?(Z=U._mainLinePosition,ne=t.height):ne=U._mainLinePosition)}u[f++]=[{datum:J,traceIndex:J.trace.index,dp:0,pos:J.pos,posref:J.posref,size:J.by*(H?gW:1)/2,pmin:Z,pmax:ne}]}),u.sort(function(J,G){return J[0].posref-G[0].posref||o*(G[0].traceIndex-J[0].traceIndex)});var _,T,w,b,M,S,k;function q(J){var G=J[0],U=J[J.length-1];if(T=G.pmin-G.pos-G.dp+G.size,w=U.pos+U.dp+U.size-G.pmax,T>.01){for(M=J.length-1;M>=0;M--)J[M].dp+=T;_=!1}if(!(w<.01)){if(T<-.01){for(M=J.length-1;M>=0;M--)J[M].dp-=w;_=!1}if(_){var H=0;for(b=0;bG.pmax&&H++;for(b=J.length-1;b>=0&&!(H<=0);b--)S=J[b],S.pos>G.pmax-1&&(S.del=!0,H--);for(b=0;b=0;M--)J[M].dp-=w;for(b=J.length-1;b>=0&&!(H<=0);b--)S=J[b],S.pos+S.dp+S.size>G.pmax&&(S.del=!0,H--)}}}for(;!_&&l<=s;){for(l++,_=!0,b=0;b.01){for(M=P.length-1;M>=0;M--)P[M].dp+=T;for(D.push.apply(D,P),u.splice(b+1,1),k=0,M=D.length-1;M>=0;M--)k+=D[M].dp;for(w=k/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;_=!1}else b++}u.forEach(q)}for(b=u.length-1;b>=0;b--){var O=u[b];for(M=O.length-1;M>=0;M--){var I=O[M],V=I.datum;V.offset=I.dp,V.del=I.del}}}function Xw(e,r){var t=0,a=e.offset;return r&&(a*=-xW,t=e.offset*bW),{x:t,y:a}}function AW(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(mt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Zw(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=No.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=AW(l),h=Xw(l,r),d=h.x,m=h.y,y=u==="middle",g="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,_;y?_="M-"+n(l.bx/2+l.tx2width/2)+","+i(m-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":g?_="M0,0L"+n(f*mt+d)+","+i(mt+m)+"v"+i(l.by/2-mt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*mt+d)+"V"+i(m-mt)+"Z":_="M"+n(f*mt+d)+","+i(m-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",_);var T=d+v.textShiftX,w=m+l.ty0-l.by/2+Or,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=y?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=y?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(Ln.positionText,n(T),i(w)),l.tx2width&&(o.select("text.name").call(Ln.positionText,n(v.text2ShiftX+v.alignShift*Or+d),i(m+l.ty0-l.by/2+Or)),o.select("rect").call(Li.setRect,n(v.text2ShiftX+(v.alignShift-1)*l.tx2width/2+d),i(m-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function kW(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||Ki(h)&&h===0}var o=Array.isArray(t)?function(h,d){var m=Tt.castOption(n,t,h);return l(m)?m:Tt.extractOption({},a,"",d)}:function(h,d){return Tt.extractOption(i,a,h,d)};function s(h,d,m){var y=o(d,m);l(y)&&(e[h]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Tt.constrain(e.x0,0,e.xa._length),e.x1=Tt.constrain(e.x1,0,e.xa._length),e.y0=Tt.constrain(e.y0,0,e.ya._length),e.y1=Tt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:qi.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:qi.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=qi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+qi.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=qi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+qi.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function Ow(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var v=ea.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var y=f.spikesnap;y==="cursor"?(d=l.pointerX,m=l.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var g=Nw.readability(h.color,v)<1.5?ea.contrast(v):h.color,_=f.spikemode,T=f.spikethickness,w=f.spikecolor||g,b=qi.getPxPosition(e,f),M,S;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(M=b,S=d),_.indexOf("across")!==-1){var k=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),q=Math.max(q,f.position)),M=i.l+k*i.w,S=i.l+q*i.w}a.insert("line",":first-child").attr({x1:M,x2:S,y1:m,y2:m,"stroke-width":T,stroke:w,"stroke-dasharray":Li.dashStyle(f.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:S,y1:m,y2:m,"stroke-width":T+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?T:-T),cy:m,r:T,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,P,z;u=D&&D.xa,f=D&&D.ya;var F=u.spikesnap;F==="cursor"?(P=l.pointerX,z=l.pointerY):(P=u._offset+D.x,z=f._offset+D.y);var O=Nw.readability(D.color,v)<1.5?ea.contrast(v):D.color,I=u.spikemode,V=u.spikethickness,J=u.spikecolor||O,G=qi.getPxPosition(e,u),U,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(U=G,H=z),I.indexOf("across")!==-1){var Q=u._counterDomainMin,Z=u._counterDomainMax;u.anchor==="free"&&(Q=Math.min(Q,u.position),Z=Math.max(Z,u.position)),U=i.t+(1-Z)*i.h,H=i.t+(1-Q)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:U,y2:H,"stroke-width":V,stroke:J,"stroke-dasharray":Li.dashStyle(u.spikedash,V)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:U,y2:H,"stroke-width":V+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:G-(u.side!=="top"?V:-V),r:V,fill:J}).classed("spikeline",!0)}}}function CW(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function Bw(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Yw(e,r){return Ln.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function SW(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,Kw=e=>e.offsetLeft+e.clientLeft;function au(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Tt.apply3DTransform(t._invTransform)(n,i),u=Tt.apply3DTransform(t._invTransform)(l,o),f=s[0],v=s[1],h=u[0],d=u[1];return{x:f,y:v,width:h-f,height:d-v,top:Math.min(v,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(v,d)}}});var lh=K(($se,Qw)=>{"use strict";var LW=Fe(),qW=Er(),DW=Ti().isUnifiedHover;Qw.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&DW(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=qW.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),LW.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var jw=K((jse,$w)=>{"use strict";var EW=Fe(),PW=lh(),RW=Ts();$w.exports=function(r,t){function a(n,i){return EW.coerce(r,t,RW,n,i)}PW(r,t,a)}});var tT=K((eue,rT)=>{"use strict";var eT=Fe(),zW=qv(),NW=lh();rT.exports=function(r,t,a,n){function i(o,s){return eT.coerce(r,t,zW,o,s)}var l=eT.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),NW(r,t,i,l)}});var Ey=K((rue,aT)=>{"use strict";var FW=Fe(),IW=Ts();aT.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:FW.coerce(r,t,IW,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var lT=K((tue,iT)=>{"use strict";var nT=Fe(),HW=Ts(),OW=Ey(),BW=lh();iT.exports=function(r,t){function a(f,v){return nT.coerce(r,t,HW,f,v)}var n=OW(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),BW(r,t,a),nT.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var uT=K((aue,sT)=>{"use strict";var Py=Fe(),oT=br();sT.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Py.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var UW=br(),VW=Dy().hover;fT.exports=function(r,t,a){var n=UW.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&VW(r,t,a,!0);function l(){var s,u,f,v;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals),(v=o.yvals)!=null||(o.yvals=r._hoverYVals),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ni=K((iue,dT)=>{"use strict";var GW=zr(),oh=Fe(),WW=ti(),zf=Ti(),vT=Ts(),hT=Dy();dT.exports={moduleType:"component",name:"fx",constants:ju(),schema:{layout:vT},attributes:qv(),layoutAttributes:vT,supplyLayoutGlobalDefaults:jw(),supplyDefaults:tT(),supplyLayoutDefaults:lT(),calc:uT(),getDistanceFunction:zf.getDistanceFunction,getClosest:zf.getClosest,inbox:zf.inbox,quadrature:zf.quadrature,appendArrayPointValue:zf.appendArrayPointValue,castHoverOption:ZW,castHoverinfo:JW,hover:hT.hover,unhover:WW.unhover,loneHover:hT.loneHover,loneUnhover:XW,click:cT()};function XW(e){var r=oh.isD3Selection(e)?e:GW.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function ZW(e,r,t){return oh.castOption(e,r,"hoverlabel."+t)}function JW(e,r,t){function a(n){return oh.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return oh.castOption(e,t,"hoverinfo",a)}});var iu=K(Qi=>{"use strict";Qi.selectMode=function(e){return e==="lasso"||e==="select"};Qi.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Qi.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Qi.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Qi.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Qi.selectingOrDrawing=function(e){return Qi.freeMode(e)||Qi.rectMode(e)}});var sh=K((oue,pT)=>{"use strict";pT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var uh=K((sue,mT)=>{"use strict";mT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ch=K((uue,yT)=>{"use strict";var fh=32;yT.exports={CIRCLE_SIDES:fh,i000:0,i090:fh/4,i180:fh/2,i270:fh/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var vh=K((fue,bT)=>{"use strict";var KW=Fe().strTranslate;function gT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function QW(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function $W(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return gT(e,t[r])}}function jW(e){return KW(e.xaxis._offset,e.yaxis._offset)}bT.exports={p2r:gT,r2p:QW,axValue:$W,getTransform:jW}});var Dl=K($i=>{"use strict";var eX=xm(),wT=ch(),lu=wT.CIRCLE_SIDES,Ry=wT.SQRT2,TT=vh(),xT=TT.p2r,_T=TT.r2p,rX=[0,3,4,5,6,1,2],tX=[0,3,4,1,2];$i.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var MT=Zt(),LT=iu(),aX=LT.drawMode,nX=LT.openMode,ou=ch(),AT=ou.i000,kT=ou.i090,CT=ou.i180,ST=ou.i270,iX=ou.cos45,lX=ou.sin45,qT=vh(),dh=qT.p2r,El=qT.r2p,oX=wl(),sX=oX.clearOutline,ph=Dl(),uX=ph.readPaths,fX=ph.writePaths,cX=ph.ellipseOver,vX=ph.fixDatesForPaths;function hX(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!aX(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var dX=iu(),pX=dX.selectMode,mX=wl(),yX=mX.clearOutline,zy=Dl(),gX=zy.readPaths,bX=zy.writePaths,xX=zy.fixDatesForPaths;PT.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!pX(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";RT.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Rl=K(fa=>{"use strict";var Ei=Ff(),zT=Fe(),Pl=pt();fa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};fa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};fa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};fa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};fa.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ei.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(Ei.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};fa.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=fa.shapePositionToRange(r);l=function(s){var u=Di(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=fa.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};fa.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=fa.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};fa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};fa.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};fa.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};fa.getPathString=function(e,r){let t=r.type,a=Pl.getRefType(r.xref),n=Pl.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,v,h,d,m,y,g,_;function T(P,z,F,O){var I;if(P)if(z==="domain")O?I=function(V){return P._offset+P._length*(1-V)}:I=function(V){return P._offset+P._length*V};else{let V=fa.shapePositionToRange(P);I=function(J){return P._offset+P.r2p(V(J,!0))},F==="path"&&P.type==="date"&&(I=fa.decodeDate(I))}else O?I=function(V){return i.t+i.h*(1-V)}:I=function(V){return i.l+i.w*V};return I}if(a==="array"?(h=[],l=r.xref.map(function(P){return Pl.getFromId(e,P)}),h=r.xref.map(function(P,z){return T(l[z],Pl.getRefType(P),t,!1)})):(l=Pl.getFromId(e,r.xref),h=T(l,a,t,!1)),n==="array"?(d=[],o=r.yref.map(function(P){return Pl.getFromId(e,P)}),d=r.yref.map(function(P,z){return T(o[z],Pl.getRefType(P),t,!0)})):(o=Pl.getFromId(e,r.yref),d=T(o,n,t,!0)),t==="path")return _X(r,h,d);if(a==="array")s=Di(l[0],r.x0shift),u=Di(l[1],r.x1shift),m=h[0](r.x0)+s,y=h[1](r.x1)+u;else if(s=Di(l,r.x0shift),u=Di(l,r.x1shift),r.xsizemode==="pixel"){let P=h(r.xanchor);m=P+r.x0+s,y=P+r.x1+u}else m=h(r.x0)+s,y=h(r.x1)+u;if(n==="array")f=Di(o[0],r.y0shift),v=Di(o[1],r.y1shift),g=d[0](r.y0)+f,_=d[1](r.y1)+v;else if(f=Di(o,r.y0shift),v=Di(o,r.y1shift),r.ysizemode==="pixel"){let P=d(r.yanchor);g=P-r.y0+f,_=P-r.y1+v}else g=d(r.y0)+f,_=d(r.y1)+v;if(t==="line")return"M"+m+","+g+"L"+y+","+_;if(t==="rect")return"M"+m+","+g+"H"+y+"V"+_+"H"+m+"Z";var w=(m+y)/2,b=(g+_)/2,M=Math.abs(w-m),S=Math.abs(b-g),k="A"+M+","+S,q=w+M+","+b,D=w+","+(b-S);return"M"+q+k+" 0 1,1 "+D+k+" 0 0,1 "+q+"Z"};function _X(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,v=0;return a.replace(Ei.segmentRE,function(h){var d=0,m=h.charAt(0),y=Ei.paramIsX[m],g=Ei.paramIsY[m],_=Ei.numParams[m];let T=y.drawn!==void 0,w=g.drawn!==void 0,b=s?r[f]:r,M=u?t[v]:t;var S=h.slice(1).replace(Ei.paramRE,function(k){return y[d]?n==="pixel"?k=b(l)+Number(k):k=b(k):g[d]&&(i==="pixel"?k=M(o)-Number(k):k=M(k)),d++,d>_&&(k="X"),k});return d>_&&(S=S.replace(/[\s,]*X.*/,""),zT.log("Ignoring extra params in segment "+h)),T&&f++,w&&v++,m+S})}fa.getPixelShift=Di;function Di(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Fy=K((mue,IT)=>{"use strict";var wX=Fe(),Pi=pt(),NT=ba(),FT=tt(),TX=Dl().readPaths,Io=Rl(),MX=Io.getPathString,If=Hv(),AX=Aa().FROM_TL;IT.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Pi.getFromId(r,a.xref),s=Pi.getFromId(r,a.yref);let Z=Array.isArray(a.xref),ne=Array.isArray(a.yref);for(var u in If){var f=typeof If[u]=="function",v=!Z||If.simpleXVariables.includes(u),h=!ne||If.simpleYVariables.includes(u);if(f&&v&&h){var d=If[u](a,o,s);d!==void 0&&(l[u]=d)}}}i=wX.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var m={"data-index":t},y=a.label.font,g={"data-notex":1},_=n.append("g").attr(m).classed("shape-label",!0),T=_.append("text").attr(g).classed("shape-label-text",!0).text(i),w,b,M,S;if(a.path){var k=MX(r,a),q=TX(k,r);w=1/0,M=1/0,b=-1/0,S=-1/0;for(var D=0;DIo.getDataToPixel(r,le,Y,!1,he)($),B=($,Y,le,he)=>Io.getDataToPixel(r,le,Y,!0,he)($);if(a.xsizemode==="pixel"){let $=ge(a.xanchor,void 0,ce,Se),Y=Io.getPixelShift(ce,a.x0shift),le=Io.getPixelShift(ce,a.x1shift);w=$+a.x0+Y,b=$+a.x1+le}else w=ge(a.x0,a.x0shift,ce,Se),b=ge(a.x1,a.x1shift,ye,pe);if(a.ysizemode==="pixel"){let $=B(a.yanchor,void 0,Ce,be),Y=Io.getPixelShift(Ce,a.y0shift),le=Io.getPixelShift(Ce,a.y1shift);M=$-a.y0+Y,S=$-a.y1+le}else M=B(a.y0,a.y0shift,Ce,be),S=B(a.y1,a.y1shift,re,Ae)}var V=a.label.textangle;V==="auto"&&(a.type==="line"?V=kX(w,M,b,S):V=0),T.call(function(Z){return Z.call(FT.font,y).attr({}),NT.convertToTspans(Z,r),Z});var J=FT.bBox(T.node()),G=CX(w,M,b,S,a,V,J),U=G.textx,H=G.texty,Q=G.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Q],y:H,x:U,transform:"rotate("+V+","+U+","+H+")"}).call(NT.positionText,U,H)}};function kX(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function CX(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=n.label.xanchor,y=n.label.yanchor,g,_,T,w;if(f==="line"){o==="start"?(g=e,_=r):o==="end"?(g=t,_=a):(g=(e+t)/2,_=(r+a)/2),m==="auto"&&(o==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var SX=Fe(),LX=SX.strTranslate,HT=ti(),YT=iu(),qX=YT.drawMode,UT=YT.selectMode,VT=br(),OT=Er(),gh=ch(),DX=gh.i000,EX=gh.i090,PX=gh.i180,RX=gh.i270,zX=wl(),GT=zX.clearOutlineControllers,Hy=Dl(),yh=Hy.pointsOnRectangle,Iy=Hy.pointsOnEllipse,NX=Hy.writePaths,FX=mh().newShapes,IX=mh().createShapeObj,HX=Ny(),OX=Fy();WT.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Iy(r[0])||a.hasText)&&o({redrawing:!0})}function o(G){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=FX(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=HX(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&VT.call((G||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=qX(f),h=UT(f);(v||h)&&(i._fullLayout._outlining=!0),GT(i),t.attr("d",NX(r));var d,m,y,g,_;if(!n&&(a.isActiveShape||a.isActiveSelection)){_=BX([],r);var T=u.append("g").attr("class","outline-controllers");P(T),J()}if(v&&a.hasText){var w=u.select(".label-temp"),b=IX(t,a,a.dragmode);OX(i,"label-temp",b,w)}function M(G){y=+G.srcElement.getAttribute("data-i"),g=+G.srcElement.getAttribute("data-j"),d[y][g].moveFn=S}function S(G,U){if(r.length){var H=_[y][g][1],Q=_[y][g][2],Z=r[y],ne=Z.length;if(yh(Z)){var ce=G,ye=U;if(a.isActiveSelection){var Ce=BT(Z,g);Ce[1]===Z[g][1]?ye=0:ce=0}for(var re=0;re1&&!(G.length===2&&G[1][0]==="Z")&&(g===0&&(G[0][0]="M"),r[y]=G,l(),o())}}function D(G,U){if(G===2){y=+U.srcElement.getAttribute("data-i"),g=+U.srcElement.getAttribute("data-j");var H=r[y];!yh(H)&&!Iy(H)&&q()}}function P(G){d=[];for(var U=0;U{"use strict";var UX=zr(),$T=br(),By=Fe(),Ho=pt(),VX=Dl().readPaths,GX=bh(),_h=Fy(),jT=wl().clearOutlineControllers,Oy=Er(),wh=tt(),WX=ct().arrayEditor,XT=ti(),ZT=ni(),JT=Ll(),Oo=Ff(),tn=Rl(),Yy=tn.getPathString;tM.exports={draw:Uy,drawOne:eM,eraseActiveShape:QX,drawLabel:_h};function Uy(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&ZT.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&ZT.click(e,l,t.id)}})}function rM(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,l=ZX(r,a,n);By.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),wh.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");wh.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function ZX(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(h=>Ho.getFromId(e,h)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(h){return h._offset}),v=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...v)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function JX(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",v=t.type==="path",h=i.modifyItem,d,m,y,g,_,T,w,b,M,S,k,q,D,P,z,F=UX.select(r.node().parentNode),O=Ho.getFromId(e,t.xref),I=Ho.getRefType(t.xref),V=Ho.getFromId(e,t.yref),J=Ho.getRefType(t.yref),G=t.x0shift,U=t.x1shift,H=t.y0shift,Q=t.y1shift,Z=function(Ee,Le){var Ve=tn.getDataToPixel(e,O,Le,!1,I);return Ve(Ee)},ne=function(Ee,Le){var Ve=tn.getDataToPixel(e,V,Le,!0,J);return Ve(Ee)},ce=tn.getPixelToData(e,O,!1,I),ye=tn.getPixelToData(e,V,!0,J),Ce=pe(),re={element:Ce.node(),gd:e,prepFn:ge,doneFn:B,clickFn:$},Se;XT.init(re),Ce.node().onmousemove=Ae;function pe(){return f?be():r}function be(){var Ee=10,Le=Math.max(t.line.width,Ee),Ve=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ve.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Le,"stroke-opacity":"0"});var Ie={"fill-opacity":"0"},Xe=Math.max(Le/2,Ee);return Ve.append("circle").attr({"data-line-point":"start-point",cx:s?Z(t.xanchor)+t.x0:Z(t.x0,G),cy:u?ne(t.yanchor)-t.y0:ne(t.y0,H),r:Xe}).style(Ie).classed("cursor-grab",!0),Ve.append("circle").attr({"data-line-point":"end-point",cx:s?Z(t.xanchor)+t.x1:Z(t.x1,U),cy:u?ne(t.yanchor)-t.y1:ne(t.y1,Q),r:Xe}).style(Ie).classed("cursor-grab",!0),Ve}function Ae(Ee){if(xh(e)){Se=null;return}if(f)Ee.target.tagName==="path"?Se="move":Se=Ee.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Le=re.element.getBoundingClientRect(),Ve=Le.right-Le.left,Ie=Le.bottom-Le.top,Xe=Ee.clientX-Le.left,De=Ee.clientY-Le.top,He=!v&&Ve>l&&Ie>o&&!Ee.shiftKey?XT.getCursor(Xe/Ve,1-De/Ie):"move";JT(r,He),Se=He.split("-")[0]}}function ge(Ee){xh(e)||(s&&(_=Z(t.xanchor)),u&&(T=ne(t.yanchor)),t.type==="path"?z=t.path:(d=s?t.x0:Z(t.x0),m=u?t.y0:ne(t.y0),y=s?t.x1:Z(t.x1),g=u?t.y1:ne(t.y1)),dg?(w=m,k="y0",b=g,q="y1"):(w=g,k="y1",b=m,q="y0"),Ae(Ee),he(n,t),Re(r,t,e),re.moveFn=Se==="move"?Y:le,re.altKey=Ee.altKey)}function B(){xh(e)||(JT(r),me(n),rM(r,e,t),$T.call("_guiRelayout",e,i.getUpdateObj()))}function $(){xh(e)||me(n)}function Y(Ee,Le){if(t.type==="path"){var Ve=function(De){return De},Ie=Ve,Xe=Ve;s?h("xanchor",t.xanchor=ce(_+Ee)):(Ie=function(He){return ce(Z(He)+Ee)},O&&O.type==="date"&&(Ie=tn.encodeDate(Ie))),u?h("yanchor",t.yanchor=ye(T+Le)):(Xe=function(He){return ye(ne(He)+Le)},V&&V.type==="date"&&(Xe=tn.encodeDate(Xe))),h("path",t.path=KT(z,Ie,Xe))}else s?h("xanchor",t.xanchor=ce(_+Ee)):(h("x0",t.x0=ce(d+Ee)),h("x1",t.x1=ce(y+Ee))),u?h("yanchor",t.yanchor=ye(T+Le)):(h("y0",t.y0=ye(m+Le)),h("y1",t.y1=ye(g+Le)));r.attr("d",Yy(e,t)),he(n,t),_h(e,a,t,F)}function le(Ee,Le){if(v){var Ve=function(Ge){return Ge},Ie=Ve,Xe=Ve;s?h("xanchor",t.xanchor=ce(_+Ee)):(Ie=function(ir){return ce(Z(ir)+Ee)},O&&O.type==="date"&&(Ie=tn.encodeDate(Ie))),u?h("yanchor",t.yanchor=ye(T+Le)):(Xe=function(ir){return ye(ne(ir)+Le)},V&&V.type==="date"&&(Xe=tn.encodeDate(Xe))),h("path",t.path=KT(z,Ie,Xe))}else if(f){if(Se==="resize-over-start-point"){var De=d+Ee,He=u?m-Le:m+Le;h("x0",t.x0=s?De:ce(De)),h("y0",t.y0=u?He:ye(He))}else if(Se==="resize-over-end-point"){var We=y+Ee,ie=u?g-Le:g+Le;h("x1",t.x1=s?We:ce(We)),h("y1",t.y1=u?ie:ye(ie))}}else{var xe=function(Ge){return Se.indexOf(Ge)!==-1},Ke=xe("n"),hr=xe("s"),ze=xe("w"),Me=xe("e"),ke=Ke?w+Le:w,Oe=hr?b+Le:b,Ze=ze?M+Ee:M,Ue=Me?S+Ee:S;u&&(Ke&&(ke=w-Le),hr&&(Oe=b-Le)),(!u&&Oe-ke>o||u&&ke-Oe>o)&&(h(k,t[k]=u?ke:ye(ke)),h(q,t[q]=u?Oe:ye(Oe))),Ue-Ze>l&&(h(D,t[D]=s?Ze:ce(Ze)),h(P,t[P]=s?Ue:ce(Ue)))}r.attr("d",Yy(e,t)),he(n,t),_h(e,a,t,F)}function he(Ee,Le){(s||u)&&Ve();function Ve(){var Ie=Le.type!=="path",Xe=Ee.selectAll(".visual-cue").data([0]),De=1;Xe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=Z(s?Le.xanchor:By.midRange(Ie?[Le.x0,Le.x1]:tn.extractPathCoords(Le.path,Oo.paramIsX))),We=ne(u?Le.yanchor:By.midRange(Ie?[Le.y0,Le.y1]:tn.extractPathCoords(Le.path,Oo.paramIsY)));if(He=tn.roundPositionForSharpStrokeRendering(He,De),We=tn.roundPositionForSharpStrokeRendering(We,De),s&&u){var ie="M"+(He-1-De)+","+(We-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Xe.attr("d",ie)}else if(s){var xe="M"+(He-1-De)+","+(We-9-De)+"v18 h2 v-18 Z";Xe.attr("d",xe)}else{var Ke="M"+(He-9-De)+","+(We-1-De)+"h18 v2 h-18 Z";Xe.attr("d",Ke)}}}function me(Ee){Ee.selectAll(".visual-cue").remove()}function Re(Ee,Le,Ve){var Ie=Le.xref,Xe=Le.yref,De=Ho.getFromId(Ve,Ie),He=Ho.getFromId(Ve,Xe),We="";Ie!=="paper"&&!De.autorange&&(We+=Ie),Xe!=="paper"&&!He.autorange&&(We+=Xe),wh.setClipUrl(Ee,We?"clip"+Ve._fullLayout._uid+We:null,Ve)}}function KT(e,r,t){return e.replace(Oo.segmentRE,function(a){var n=0,i=a.charAt(0),l=Oo.paramIsX[i],o=Oo.paramIsY[i],s=Oo.numParams[i],u=a.slice(1).replace(Oo.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function KX(e,r){if(Th(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){QT(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=QT,Uy(e)}}}function QT(e){if(Th(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(jT(e),delete e._fullLayout._activeShapeIndex,Uy(e))}}function QX(e){if(Th(e)){jT(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var aM=zr(),Ah=Fe()._;nM.exports=function(r,t,a){var n=aM.select(r._fullLayout._paperdiv.node());n.selectAll(".plotly-cloud-dialog").remove();var i=n.append("div").classed("plotly-cloud-dialog",!0),l=i.append("div").classed("plotly-cloud-dialog-box",!0);l.append("div").classed("plotly-cloud-dialog-title",!0).text(Ah(r,"Share with Plotly Cloud")),l.append("div").classed("plotly-cloud-dialog-message",!0).text(Ah(r,"This chart and its data will be sent to")+" "+t+".");var o=l.append("div").classed("plotly-cloud-dialog-buttons",!0);function s(){i.remove(),document.removeEventListener("keydown",u)}function u(f){(f.key==="Escape"||f.keyCode===27)&&s()}document.addEventListener("keydown",u),i.on("click",function(){aM.event.target===i.node()&&s()}),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(Ah(r,"Cancel")).on("click",s),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(Ah(r,"Share")).on("click",function(){s(),a()})}});var Wy=K((xue,hM)=>{"use strict";var qn=br(),$X=It(),lM=Zt(),Vr=uh(),jX=Mh().eraseActiveShape,eZ=iM(),kh=Fe(),Br=kh._,Yr=hM.exports={};Yr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Br(e,"Download plot as a PNG"):Br(e,"Download plot")},icon:Vr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};kh.notifier(Br(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),qn.call("downloadImage",e,t).then(function(a){kh.notifier(Br(e,"Snapshot succeeded")+" - "+a,"long",e)}).catch(function(){kh.notifier(Br(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Yr.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Br(e,"Share with Plotly Cloud")},icon:Vr.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is not set)");return}try{new URL(r)}catch(t){console.error("Invalid plotlyServerURL: "+r);return}eZ(e,r,function(){$X.sendDataToCloud(e,r)})}};Yr.sendDataToCloud=Yr.sendChartToCloud;Yr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Br(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Vr.zoombox,click:Na};Yr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Br(e,"Pan")},attr:"dragmode",val:"pan",icon:Vr.pan,click:Na};Yr.select2d={name:"select2d",_cat:"select",title:function(e){return Br(e,"Box Select")},attr:"dragmode",val:"select",icon:Vr.selectbox,click:Na};Yr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Br(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Vr.lasso,click:Na};Yr.drawclosedpath={name:"drawclosedpath",title:function(e){return Br(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Vr.drawclosedpath,click:Na};Yr.drawopenpath={name:"drawopenpath",title:function(e){return Br(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Vr.drawopenpath,click:Na};Yr.drawline={name:"drawline",title:function(e){return Br(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Vr.drawline,click:Na};Yr.drawrect={name:"drawrect",title:function(e){return Br(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Vr.drawrect,click:Na};Yr.drawcircle={name:"drawcircle",title:function(e){return Br(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Vr.drawcircle,click:Na};Yr.eraseshape={name:"eraseshape",title:function(e){return Br(e,"Erase active shape")},icon:Vr.eraseshape,click:jX};Yr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Br(e,"Zoom in")},attr:"zoom",val:"in",icon:Vr.zoom_plus,click:Na};Yr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Br(e,"Zoom out")},attr:"zoom",val:"out",icon:Vr.zoom_minus,click:Na};Yr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Br(e,"Autoscale")},attr:"zoom",val:"auto",icon:Vr.autoscale,click:Na};Yr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Br(e,"Reset axes")},attr:"zoom",val:"reset",icon:Vr.home,click:Na};Yr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Br(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Vr.tooltip_basic,gravity:"ne",click:Na};Yr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Br(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Vr.tooltip_compare,gravity:"ne",click:Na};function Na(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=lM.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var v=n==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,y;for(f=0;f{"use strict";var dM=Wy(),aZ=Object.keys(dM),pM=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],mM=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(pM),uu=[],nZ=function(e){if(mM.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();uu.indexOf(r)===-1&&uu.push(r),uu.indexOf(t)===-1&&uu.push(t)}};aZ.forEach(function(e){nZ(dM[e])});uu.sort();yM.exports={DRAW_MODES:pM,backButtons:mM,foreButtons:uu}});var Zy=K((Tue,gM)=>{"use strict";var wue=Xy();gM.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var xM=K((Mue,bM)=>{"use strict";var iZ=Fe(),Hf=Er(),lZ=ct(),oZ=Zy();bM.exports=function(r,t){var a=r.modebar||{},n=lZ.newContainer(t,"modebar");function i(o,s){return iZ.coerce(a,n,oZ,o,s)}i("orientation"),i("bgcolor",Hf.addOpacity(t.paper_bgcolor,.5));var l=Hf.contrast(Hf.rgb(t.modebar.bgcolor));i("color",Hf.addOpacity(l,.3)),i("activecolor",Hf.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var MM=K((Aue,TM)=>{"use strict";var Jy=zr(),sZ=Hr(),Sh=Fe(),_M=uh(),uZ=Zu().version,fZ=new DOMParser;function wM(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ri=wM.prototype;Ri.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(v){v.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Sh.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ri.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Ri.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ri.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Jy.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||_M.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ri.createIcon=function(e){var r=sZ(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=fZ.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ri.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=Jy.select(a),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:Sh.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ri.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var hZ=Zt(),AM=un(),Ky=br(),dZ=Ti().isUnifiedHover,pZ=MM(),Lh=Wy(),mZ=Xy().DRAW_MODES,yZ=Fe().extendDeep;kM.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=TZ(i):!a.displayModeBar&&a.watermark?l=[]:l=gZ(r),n?n.update(r,l):t._modeBar=pZ(r,l)};function gZ(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,H){if(typeof H=="string"){if(H.toLowerCase()===U.toLowerCase())return!0}else{var Q=H.name,Z=H._cat||H.name;if(Q===U||Z===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var H=0;H1?(P=["toggleHover"],z=["resetViews"]):v?(D=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(D=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],z=["resetViewMapbox"]):g?(D=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):h?P=["hoverClosestPie"]:w?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(_Z(t)||M)&&(P=[]),u&&!b&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?F=["zoom2d","pan2d"]:y||g||v?F=["pan2d"]:_&&(F=["zoom2d"]),xZ(t)&&F.push("select2d","lasso2d");var O=[],I=function(U){O.indexOf(U)===-1&&P.indexOf(U)!==-1&&O.push(U)};if(Array.isArray(o)){for(var V=[],J=0;J{"use strict";SM.exports={moduleType:"component",name:"modebar",layoutAttributes:Zy(),supplyLayoutDefaults:xM(),manage:CM()}});var $y=K((Sue,LM)=>{"use strict";var MZ=Aa().FROM_BL;LM.exports=function(r,t,a){a===void 0&&(a=MZ[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Bf=K(Of=>{"use strict";var Bo=Fe(),jy=Tf(),ii=Zt().id2name,AZ=jn(),qM=$y(),kZ=P0(),CZ=Gt().ALMOST_EQUAL,SZ=Aa().FROM_BL;Of.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,v,h,d,m;for(o=0;oi?t.slice(i):a.slice(n))+l}function qZ(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lCZ*m&&!T)){for(i=0;iF&&QP&&(P=Q);var ne=(P-D)/(2*z);v/=ne,D=s.l2r(D),P=s.l2r(P),s.range=s._input.range=S{"use strict";var Dh=zr(),Fa=br(),dn=It(),Dn=Fe(),tg=ba(),ag=sh(),Yf=Er(),fu=tt(),RM=_f(),HM=Qy(),Uf=pt(),ji=Aa(),OM=Bf(),DZ=OM.enforce,EZ=OM.clean,zM=Tf().doAutoRange,BM="start",PZ="middle",YM="end",RZ=$t().zindexSeparator;ra.layoutStyles=function(e){return Dn.syncOrAsync([dn.doAutoMargin,NZ],e)};function zZ(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function NZ(e){var r=e._fullLayout,t=r._size,a=t.p,n=Uf.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(fu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ra.drawMainTitle(e),HM.manage(e),!r._has("cartesian"))return dn.previousPromises(e);function v(ge,B,$){var Y=ge._lw/2;if(ge._id.charAt(0)==="x"){if(B){if($==="top")return B._offset-a-Y}else return t.t+t.h*(1-(ge.position||0))+Y%1;return B._offset+B._length+a+Y}if(B){if($==="right")return B._offset+B._length+a+Y}else return t.l+t.w*(ge.position||0)+Y%1;return B._offset-a-Y}for(i=0;i0){OZ(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:IM(r.yanchor)}).call(tg.positionText,l,i);var f=(r.text.match(tg.BR_TAG_ALL)||[]).length;if(f){var v=ji.LINE_SPACING*f+ji.MID_SHIFT;r.y===0&&(v=-v),o.selectAll(".line").each(function(){var g=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",g)})}var h=Dh.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),m=d.y+d.height,y=m+RM.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y,"text-anchor":a,dy:IM(r.yanchor)}).call(tg.positionText,l,y)}}}};function FZ(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Dn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Dn.isTopAnchor(r)&&t==="t"||Dn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=IZ(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function OZ(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&FZ(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),dn.allowAutoMargin(e,n),dn.autoMargin(e,n,o)}function BZ(e,r){var t=e.title,a=e._size,n=0;return r===BM?n=t.pad.l:r===YM&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function YZ(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===ji.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function IM(e){return e==="top"?ji.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":ji.MID_SHIFT+"em"}function UZ(e){var r=e.title,t=PZ;return Dn.isRightAnchor(r)?t=YM:Dn.isLeftAnchor(r)&&(t=BM),t}function VZ(e){var r=e.title,t="0em";return Dn.isTopAnchor(r)?t=ji.CAP_SHIFT+"em":Dn.isMiddleAnchor(r)&&(t=ji.MID_SHIFT+"em"),t}ra.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var GZ=Dl().readPaths,WZ=bh(),UM=wl().clearOutlineControllers,ng=Er(),VM=tt(),XZ=ct().arrayEditor,GM=Rl(),ZZ=GM.getPathString;XM.exports={draw:Ph,drawOne:WM,activateLastSelection:QZ};function Ph(e){var r=e._fullLayout;UM(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;g--){var _=l.append("path").attr(s).style("opacity",g?.1:u).call(ng.stroke,v).call(ng.fill,f).call(VM.dashLine,g?"solid":d,g?4+h:h);if(JZ(_,e,a),m){var T=XZ(e.layout,"selections",a);_.style({cursor:"move"});var w={element:_.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},b=GZ(o,e);WZ(b,_,w)}else _.style("pointer-events",g?"all":"none");y[g]=_}var M=y[0],S=y[1];S.node().addEventListener("click",function(){return KZ(e,M)})}}function JZ(e,r,t){var a=t.xref+t.yref;VM.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function KZ(e,r){if(Rh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){ig(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=ig,Ph(e)}}}function QZ(e){if(Rh(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=ig,Ph(e)}}function ig(e){if(Rh(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(UM(e),delete e._fullLayout._activeSelectionIndex,Ph(e))}}});var JM=K((Eue,ZM)=>{function $Z(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}ZM.exports=$Z});var QM=K((Pue,KM)=>{function jZ(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-v)/(o-v)+f-n>e&&(s=!s),l=f,o=v}return s}};return r}KM.exports=jZ});var jM=K((Rue,$M)=>{var eJ={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};$M.exports=eJ});var rA=K((zue,eA)=>{var Vf=jM();function rJ(e,r,t){function a(m,y){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:null,below:null},otherFill:null}}function n(m,y,g){return{id:t?t.segmentId():-1,start:m,end:y,myFill:{above:g.myFill.above,below:g.myFill.below},otherFill:null}}var i=Vf.create();function l(m,y,g,_,T,w){var b=r.pointsCompare(y,T);return b!==0?b:r.pointsSame(g,w)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(g,_?T:w,_?w:T)?1:-1}function o(m,y){i.insertBefore(m,function(g){var _=l(m.isStart,m.pt,y,g.isStart,g.pt,g.other.pt);return _<0})}function s(m,y){var g=Vf.node({isStart:!0,pt:m.start,seg:m,primary:y,other:null,status:null});return o(g,m.end),g}function u(m,y,g){var _=Vf.node({isStart:!1,pt:y.end,seg:y,primary:g,other:m,status:null});m.other=_,o(_,m.pt)}function f(m,y){var g=s(m,y);return u(g,m,y),g}function v(m,y){t&&t.segmentChop(m.seg,y),m.other.remove(),m.seg.end=y,m.other.pt=y,o(m.other,m.pt)}function h(m,y){var g=n(y,m.seg.end,m.seg);return v(m,y),f(g,m.primary)}function d(m,y){var g=Vf.create();function _(V,J){var G=V.seg.start,U=V.seg.end,H=J.seg.start,Q=J.seg.end;return r.pointsCollinear(G,H,Q)?r.pointsCollinear(U,H,Q)||r.pointAboveOrOnLine(U,H,Q)?1:-1:r.pointAboveOrOnLine(G,H,Q)?1:-1}function T(V){return g.findTransition(function(J){var G=_(V,J.ev);return G>0})}function w(V,J){var G=V.seg,U=J.seg,H=G.start,Q=G.end,Z=U.start,ne=U.end;t&&t.checkIntersection(G,U);var ce=r.linesIntersect(H,Q,Z,ne);if(ce===!1){if(!r.pointsCollinear(H,Q,Z)||r.pointsSame(H,ne)||r.pointsSame(Q,Z))return!1;var ye=r.pointsSame(H,Z),Ce=r.pointsSame(Q,ne);if(ye&&Ce)return J;var re=!ye&&r.pointBetween(H,Z,ne),Se=!Ce&&r.pointBetween(Q,Z,ne);if(ye)return Se?h(J,Q):h(V,ne),J;re&&(Ce||(Se?h(J,Q):h(V,ne)),h(J,H))}else ce.alongA===0&&(ce.alongB===-1?h(V,Z):ce.alongB===0?h(V,ce.pt):ce.alongB===1&&h(V,ne)),ce.alongB===0&&(ce.alongA===-1?h(J,H):ce.alongA===0?h(J,ce.pt):ce.alongA===1&&h(J,Q));return!1}for(var b=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let V=function(){if(k){var J=w(M,k);if(J)return J}return q?w(M,q):!1};var I=V;t&&t.segmentNew(M.seg,M.primary);var S=T(M),k=S.before?S.before.ev:null,q=S.after?S.after.ev:null;t&&t.tempStatus(M.seg,k?k.seg:!1,q?q.seg:!1);var D=V();if(D){if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,P&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,q?M.seg.myFill.below=q.seg.myFill.above:M.seg.myFill.below=m,P?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var z;q?M.primary===q.primary?z=q.seg.otherFill.above:z=q.seg.myFill.above:z=M.primary?y:m,M.seg.otherFill={above:z,below:z}}t&&t.status(M.seg,k?k.seg:!1,q?q.seg:!1),M.other.status=S.insert(Vf.node({ev:M}))}else{var F=M.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(g.exists(F.prev)&&g.exists(F.next)&&w(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!M.primary){var O=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=O}b.push(M.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var y,g=m[m.length-1],_=0;_{function tJ(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(I,V,J){return f.index=I,f.matches_head=V,f.matches_pt1=J,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function Gf(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var aJ={union:function(e,r){return Gf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Gf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Gf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Gf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Gf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};nA.exports=aJ});var oA=K((Iue,lA)=>{var nJ={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var iJ=JM(),lJ=QM(),sA=rA(),oJ=aA(),Wf=iA(),uA=oA(),En=!1,Xf=lJ(),an;an={buildLog:function(e){return e===!0?En=iJ():e===!1&&(En=!1),En===!1?!1:En.list},epsilon:function(e){return Xf.epsilon(e)},segments:function(e){var r=sA(!0,Xf,En);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=sA(!1,Xf,En);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Wf.union(e.combined,En),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Wf.intersect(e.combined,En),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Wf.difference(e.combined,En),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Wf.differenceRev(e.combined,En),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Wf.xor(e.combined,En),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:oJ(e.segments,Xf,En),inverted:e.inverted}},polygonFromGeoJSON:function(e){return uA.toPolygon(an,e)},polygonToGeoJSON:function(e){return uA.fromPolygon(an,Xf,e)},union:function(e,r){return Zf(e,r,an.selectUnion)},intersect:function(e,r){return Zf(e,r,an.selectIntersect)},difference:function(e,r){return Zf(e,r,an.selectDifference)},differenceRev:function(e,r){return Zf(e,r,an.selectDifferenceRev)},xor:function(e,r){return Zf(e,r,an.selectXor)}};function Zf(e,r,t){var a=an.segments(e),n=an.segments(r),i=an.combine(a,n),l=t(i);return an.polygon(l)}typeof window=="object"&&(window.PolyBool=an);fA.exports=an});var hA=K((Oue,vA)=>{vA.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=m>l&&i<(d-v)*(l-h)/(m-h)+v;y&&(o=!o)}return o}});var sg=K((Bue,dA)=>{"use strict";var og=Nv().dot,zh=Gt().BADNUM,Nh=dA.exports={};Nh.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||_===zh||_l||y&&u(m))}function v(m,y){var g=m[0],_=m[1];if(g===zh||gn||_===zh||_l)return!1;var T=t.length,w=t[0][0],b=t[0][1],M=0,S,k,q,D,P;for(S=1;SMath.max(k,w)||_>Math.max(q,b)))if(_o||Math.abs(og(v,u))>n)return!0;return!1};Nh.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var v=f+1;v1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var mA=K((Yue,pA)=>{"use strict";pA.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var IA=K((Uue,FA)=>{"use strict";var yA=cA(),sJ=hA(),Qf=br(),uJ=tt().dashStyle,Jf=Er(),fJ=ni(),cJ=Ti().makeEventData,tc=iu(),vJ=tc.freeMode,hJ=tc.rectMode,$f=tc.drawMode,vg=tc.openMode,hg=tc.selectMode,gA=Rl(),bA=Ff(),MA=bh(),AA=wl().clearOutline,kA=Dl(),ug=kA.handleEllipse,dJ=kA.readPaths,pJ=mh().newShapes,mJ=Ny(),yJ=lg().activateLastSelection,Ih=Fe(),gJ=Ih.sorterAsc,CA=sg(),Kf=Zv(),Pn=Zt().getFromId,bJ=sh(),xJ=Eh().redrawReglTraces,Hh=mA(),zi=Hh.MINSELECT,_J=CA.filter,dg=CA.tester,pg=vh(),xA=pg.p2r,wJ=pg.axValue,TJ=pg.getTransform;function mg(e){return e.subplot!==void 0}function MJ(e,r,t,a,n){var i=!mg(a),l=vJ(n),o=hJ(n),s=vg(n),u=$f(n),f=hg(n),v=n==="drawline",h=n==="drawcircle",d=v||h,m=a.gd,y=m._fullLayout,g=f&&y.newselection.mode==="immediate"&&i,_=y._zoomlayer,T=a.element.getBoundingClientRect(),w=a.plotinfo,b=TJ(w),M=r-T.left,S=t-T.top;y._calcInverseTransform(m);var k=Ih.apply3DTransform(y._invTransform)(M,S);M=k[0],S=k[1];var q=y._invScaleX,D=y._invScaleY,P=M,z=S,F="M"+M+","+S,O=a.xaxes[0],I=a.yaxes[0],V=O._length,J=I._length,G=e.altKey&&!($f(n)&&s),U,H,Q,Z,ne,ce,ye;LA(e,m,a),l&&(U=_J([[M,S]],Hh.BENDPX));var Ce=_.selectAll("path.select-outline-"+w.id).data([1]),re=u?y.newshape:y.newselection;u&&(a.hasText=re.label.text||re.label.texttemplate);var Se=u&&!s?re.fillcolor:"rgba(0,0,0,0)",pe=re.line.color||(i?Jf.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Ce.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?re.opacity/2:1,"stroke-dasharray":uJ(re.line.dash,re.line.width),"stroke-width":re.line.width+"px","shape-rendering":"crispEdges"}).call(Jf.stroke,pe).call(Jf.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",F+"Z");var be=_.append("path").attr("class","zoombox-corners").style({fill:Jf.background,stroke:Jf.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var Ae=_.select(".label-temp");Ae.empty()&&(Ae=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ge=y._uid+Hh.SELECTID,B=[],$=Oh(m,a.xaxes,a.yaxes,a.subplot);g&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var le=O._id,he=I._id;RA(m,le,he,$);for(var me=(m.layout||{}).selections||[],Re=[],Ee=!1,Le=0;Le=0){m._fullLayout._deactivateShape(m);return}if(!u){var me=y.clickmode;Kf.done(ge).then(function(){if(Kf.clear(ge),le===2){for(Ce.remove(),ne=0;ne<$.length;ne++)ce=$[ne],ce._module.selectPoints(ce,!1);if(ec(m,$),jf(a),bg(m),$.length){var Re=$[0].xaxis,Ee=$[0].yaxis;if(Re&&Ee){for(var Le=[],Ve=m._fullLayout.selections,Ie=0;Ie-1&&SA(he,m,a.xaxes,a.yaxes,a.subplot,a,Ce),me==="event"&&rc(m,void 0);fJ.click(m,he,w.id)}).catch(Ih.error)}},a.doneFn=function(){be.remove(),Kf.done(ge).then(function(){Kf.clear(ge),!g&&Z&&a.selectionDefs&&(Z.subtract=G,a.selectionDefs.push(Z),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Q)),(g||u)&&jf(a,g),a.doneFnCompleted&&a.doneFnCompleted(B),f&&rc(m,ye)}).catch(Ih.error)}}function SA(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,y,g,_,T,w,b,M;if(LJ(o)){LA(e,r,i),h=Oh(r,t,a,n);var S=qJ(o,h),k=S.pointNumbers.length>0;if(k?DJ(h,S):EJ(h)&&(T=wA(S))){for(l&&l.remove(),M=0;M=0}function SJ(e){return e._fullLayout._activeSelectionIndex>=0}function jf(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;CJ(n)&&n._fullLayout._deactivateShape(n),SJ(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=$f(t),s=hg(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=pJ(u,e)),f&&Qf.call("_guiRelayout",n,{shapes:f});var v;s&&!mg(e)&&(v=mJ(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,Qf.call("_guiRelayout",n,{selections:v}).then(function(){r&&yJ(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function _A(e){return e._id}function Oh(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(_A),l=t.map(_A),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function DJ(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function ec(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var le=TA(e,!0);if(le.length){var he=le[0].xref,me=le[0].yref;if(he&&me){var Re=zA(le),Ee=NA([Pn(e,he,"x"),Pn(e,me,"y")]);Ee(B,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Y&&rc(e,B),h._reselect=!1}if(!l&&h._deselect){var Le=h._deselect;o=Le.xref,s=Le.yref,zJ(o,s,f)||RA(e,o,s,a),Y&&(B.points.length?rc(e,B):bg(e)),h._deselect=!1}return{eventData:B,selectionTesters:t}}function RJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";HA.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var ac=K((Gue,OA)=>{"use strict";OA.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var cu=K((Xue,UA)=>{"use strict";var BA=xg(),YA=ga(),Bh=$t(),OJ=ct().templatedArray,Wue=ac();UA.exports=OJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:YA({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:BA.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:BA.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Bh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Bh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:YA({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Yh=K((Zue,VA)=>{"use strict";VA.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var WA=K((Jue,GA)=>{"use strict";GA.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Yo=K((Kue,ek)=>{"use strict";var XA=d0().axisHoverFormat,{hovertemplateAttrs:BJ,texttemplateAttrs:YJ,templatefallbackAttrs:ZA}=co(),JA=gf(),UJ=ga(),KA=xi().dash,VJ=xi().pattern,GJ=tt(),WJ=Yh(),nc=Wt().extendFlat,XJ=WA();function QA(e){return{valType:"any",dflt:0,editType:"calc"}}function $A(e){return{valType:"any",editType:"calc"}}function jA(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}ek.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:QA("x"),yperiod:QA("y"),xperiod0:$A("x0"),yperiod0:$A("y0"),xperiodalignment:jA("x"),yperiodalignment:jA("y"),xhoverformat:XA("x"),yhoverformat:XA("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:YJ(),texttemplatefallback:ZA({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:BJ({},{keys:WJ.eventDataKeys}),hovertemplatefallback:ZA(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:nc({},KA,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:XJ(!0),fillgradient:nc({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:VJ,marker:nc({symbol:{valType:"enumerated",values:GJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:nc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:nc({},KA,{arrayOk:!0}),editType:"calc"},JA("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},JA("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:UJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var _g=K(($ue,ak)=>{"use strict";var rk=cu(),tk=Yo().line,ZJ=xi().dash,Uh=Wt().extendFlat,JJ=bi().overrideAll,KJ=ct().templatedArray,Que=ac();ak.exports=JJ(KJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Uh({},rk.xref,{}),yref:Uh({},rk.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:tk.color,width:Uh({},tk.width,{min:1,dflt:1}),dash:Uh({},ZJ,{dflt:"dot"})}}),"arraydraw","from-root")});var ok=K((jue,lk)=>{"use strict";var nk=Fe(),Vh=pt(),QJ=ei(),$J=_g(),ik=Rl();lk.exports=function(r,t){QJ(r,t,{name:"selections",handleItemDefaults:jJ});for(var a=t.selections,n=0;n{"use strict";sk.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var ic=K((rfe,vk)=>{"use strict";var eK=br(),fk=Fe(),ck=Zt();vk.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=eK.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var hk=lg(),lc=IA();dk.exports={moduleType:"component",name:"selections",layoutAttributes:_g(),supplyLayoutDefaults:ok(),supplyDrawNewSelectionDefaults:uk(),includeBasePlot:ic()("selections"),draw:hk.draw,drawOne:hk.drawOne,reselect:lc.reselect,prepSelect:lc.prepSelect,clearOutline:lc.clearOutline,clearSelectionsCache:lc.clearSelectionsCache,selectOnClick:lc.selectOnClick}});var zk=K((afe,Rk)=>{"use strict";var kg=zr(),Rn=Fe(),pk=Rn.numberFormat,rK=wn(),tK=ly(),Gh=br(),Mk=Rn.strTranslate,aK=ba(),mk=Er(),Nl=tt(),nK=ni(),yk=pt(),iK=Ll(),lK=ti(),Ak=iu(),Wh=Ak.selectingOrDrawing,oK=Ak.freeMode,sK=Aa().FROM_TL,uK=sh(),fK=Eh().redrawReglTraces,cK=It(),Tg=Zt().getFromId,vK=vu().prepSelect,hK=vu().clearOutline,dK=vu().selectOnClick,wg=$y(),Cg=$t(),gk=Cg.MINDRAG,Ga=Cg.MINZOOM,bk=!0;function pK(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,v,h,d,m,y,g,_,T,w,b,M,S,k,q,D,P,z,F,O,I,V,J,G;t+=r.yaxis._shift;function U(){if(v=r.xaxis,h=r.yaxis,w=v._length,b=h._length,_=v._offset,T=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,l&&o)for(var Me=r.overlays,ke=0;ke=0){Oe._fullLayout._deactivateShape(Oe);return}var Ze=Oe._fullLayout.clickmode;if(Ag(Oe),Me===2&&!f&&We(),u)Ze.indexOf("select")>-1&&dK(ke,Oe,y,g,r.id,Z),Ze.indexOf("event")>-1&&nK.click(Oe,ke,r.id);else if(Me===1&&f){var Ue=l?h:v,Ge=l==="s"||o==="w"?0:1,ir=Ue._name+".range["+Ge+"]",ar=mK(Ue,Ge),er="left",Ne="middle";if(Ue.fixedrange)return;l?(Ne=l==="n"?"top":"bottom",Ue.side==="right"&&(er="right")):o==="e"&&(er="right"),Oe._context.showAxisRangeEntryBoxes&&kg.select(Q).call(aK.makeEditable,{gd:Oe,immediate:!0,background:Oe._fullLayout.paper_bgcolor,text:String(ar),fill:Ue.tickfont?Ue.tickfont.color:"#444",horizontalAlign:er,verticalAlign:Ne}).on("edit",function(ae){var oe=Ue.d2r(ae);oe!==void 0&&Gh.call("_guiRelayout",Oe,ir,oe)})}}lK.init(Z);var ye,Ce,re,Se,pe,be,Ae,ge,B,$;function Y(Me,ke,Oe){var Ze=Q.getBoundingClientRect();ye=ke-Ze.left,Ce=Oe-Ze.top,e._fullLayout._calcInverseTransform(e);var Ue=Rn.apply3DTransform(e._fullLayout._invTransform)(ye,Ce);ye=Ue[0],Ce=Ue[1],re={l:ye,r:ye,w:0,t:Ce,b:Ce,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:rK(e._fullLayout.plot_bgcolor).getLuminance(),pe="M0,0H"+w+"V"+b+"H0V0",be=!1,Ae="xy",$=!1,ge=Sk(s,Se,_,T,pe),B=Lk(s,_,T)}function le(Me,ke){if(e._transitioningWithDuration)return!1;var Oe=Math.max(0,Math.min(w,J*Me+ye)),Ze=Math.max(0,Math.min(b,G*ke+Ce)),Ue=Math.abs(Oe-ye),Ge=Math.abs(Ze-Ce);re.l=Math.min(ye,Oe),re.r=Math.max(ye,Oe),re.t=Math.min(Ce,Ze),re.b=Math.max(Ce,Ze);function ir(){Ae="",re.r=re.l,re.t=re.b,B.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ue>Ga||Ge>Ga?(Ae="xy",Ue/w>Ge/b?(Ge=Ue*b/w,Ce>Ze?re.t=Ce-Ge:re.b=Ce+Ge):(Ue=Ge*w/b,ye>Oe?re.l=ye-Ue:re.r=ye+Ue),B.attr("d",Xh(re))):ir();else if(S.isSubplotConstrained)if(Ue>Ga||Ge>Ga){Ae="xy";var ar=Math.min(re.l/w,(b-re.b)/b),er=Math.max(re.r/w,(b-re.t)/b);re.l=ar*w,re.r=er*w,re.b=(1-ar)*b,re.t=(1-er)*b,B.attr("d",Xh(re))}else ir();else!q||Ge0){var ae;if(S.isSubplotConstrained||!k&&q.length===1){for(ae=0;ae1&&(ir.maxallowed!==void 0&&P===(ir.range[0]1&&(ar.maxallowed!==void 0&&z===(ar.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function gK(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Sk(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Mk(t,a)).attr("d",n+"Z")}function Lk(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:mk.background,stroke:mk.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Mk(r,t)).attr("d","M0,0Z")}function qk(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),Dk(e,r,n,i)}function Dk(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function Ag(e){kg.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Ek(e){bk&&e.data&&e._context.showTips&&(Rn.notifier(Rn._(e,"Double-click to zoom back out"),"long",e),bk=!1)}function bK(e,r){return"M"+(e.l-.5)+","+(r-Ga-.5)+"h-3v"+(2*Ga+1)+"h3ZM"+(e.r+.5)+","+(r-Ga-.5)+"h3v"+(2*Ga+1)+"h-3Z"}function xK(e,r){return"M"+(r-Ga-.5)+","+(e.t-.5)+"v-3h"+(2*Ga+1)+"v3ZM"+(r-Ga-.5)+","+(e.b+.5)+"v3h"+(2*Ga+1)+"v-3Z"}function Xh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ga)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function wk(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,v,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m{"use strict";var _K=zr(),Zh=ni(),wK=ti(),TK=Ll(),li=zk().makeDragBox,ta=$t().DRAGGERSIZE;Jh.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){_K.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=li(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Zh.hover(r,h,i)},Zh.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,wK.unhover(r,h))},r._context.showAxisDragHandles&&(li(r,l,o._offset-ta,s._offset-ta,ta,ta,"n","w"),li(r,l,o._offset+o._length,s._offset-ta,ta,ta,"n","e"),li(r,l,o._offset-ta,s._offset+s._length,ta,ta,"s","w"),li(r,l,o._offset+o._length,s._offset+s._length,ta,ta,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=ta),li(r,l,o._offset+o._length*.1,f,o._length*.8,ta,"","ew"),li(r,l,o._offset,f,o._length*.1,ta,"","w"),li(r,l,o._offset+o._length*.9,f,o._length*.1,ta,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=ta),li(r,l,v,s._offset+s._length*.1,ta,s._length*.8,"ns",""),li(r,l,v,s._offset+s._length*.9,ta,s._length*.1,"s",""),li(r,l,v,s._offset,ta,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Zh.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Zh.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Jh.updateFx(r)}};Jh.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";TK(r._draggers,t)}});var Ik=K((ife,Fk)=>{"use strict";var Nk=br();Fk.exports=function(r){for(var t=Nk.layoutArrayContainers,a=Nk.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var MK=cl(),Lg=zv(),oc=fo(),AK=wp().sorterAsc,qg=br();sc.containerArrayMatch=Ik();var kK=sc.isAddVal=function(r){return r==="add"||MK(r)},Hk=sc.isRemoveVal=function(r){return r===null||r==="remove"};sc.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=qg.getComponentMethod(l,"supplyLayoutDefaults"),s=qg.getComponentMethod(l,"draw"),u=qg.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===Lg||s===Lg,v=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&oc.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(Hk(d))t.set(null);else if(Array.isArray(d))t.set(d);else return oc.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(v,h),s(r),!0)}var m=Object.keys(a).map(Number).sort(AK),y=t.get(),g=y||[],_=i(h,l).get(),T=[],w=-1,b=g.length,M,S,k,q,D,P,z,F;for(M=0;Mg.length-(z?0:1)){oc.warn("index out of range",l,k);continue}if(P!==void 0)D.length>1&&oc.warn("Insertion & removal are incompatible with edits to the same index.",l,k),Hk(P)?T.push(k):z?(P==="add"&&(P={}),g.splice(k,0,P),_&&_.splice(k,0,{})):oc.warn("Unrecognized full object edit value",l,k,P),w===-1&&(w=k);else for(S=0;S=0;M--)g.splice(T[M],1),_&&_.splice(T[M],1);if(g.length?y||t.set(g):t.set(null),f)return!1;if(o(v,h),u!==Lg){var O;if(w===-1)O=m;else{for(b=Math.max(g.length,b),O=[],M=0;M=w));M++)O.push(k);for(M=w;M{"use strict";var Vk=Hr(),Gk=br(),Ia=Fe(),uc=It(),Wk=Zt(),Xk=Er(),fc=Wk.cleanId,CK=Wk.getFromTrace,Dg=Gk.traceIs,SK=["x","y","z"];zn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ia.log("Clearing previous rejected promises from queue."),e._promises=[]};zn.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(uc.subplotsRegistry.cartesian||{}).attrRegex,n=(uc.subplotsRegistry.polar||{}).attrRegex,i=(uc.subplotsRegistry.ternary||{}).attrRegex,l=(uc.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Xk.clean(e),e.template&&e.template.layout&&zn.cleanLayout(e.template.layout),e};function hu(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=fc(a,n,!0))}zn.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}zn.hasParent=function(e,r){for(var t=Uk(r);t;){if(t in e)return!0;t=Uk(t)}return!1};zn.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Ia.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aIa.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?Eg(n,i):!1))return!1}return!0}return!1};zn.collectionsAreEqual=Eg});var Ig=K(Ur=>{"use strict";var jh=zr(),DK=Hr(),EK=Np(),tr=Fe(),ut=tr.nestedProperty,zg=vf(),Wa=k6(),Nn=br(),ld=Hs(),xr=It(),Ha=pt(),PK=iy(),RK=jn(),Pg=tt(),zK=Er(),NK=Sg().initInteractions,FK=_o(),IK=vu().clearOutline,jk=uo().dfltConfig,Qh=Ok(),Rt=Zk(),jr=Eh(),Fl=bi(),HK=$t().AX_NAME_PATTERN,Rg=0,Jk=5;function OK(e,r,t,a){var n;if(e=tr.getGraphDiv(e),zg.init(e),tr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=zg.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!tr.isPlotDiv(e)&&tr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Ur.addFrames(e,n)}rC(e,a),t||(t={}),jh.select(e).classed("js-plotly-plot",!0),Pg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Rt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Rt.cleanLayout(t)),xr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(uQ(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Pg.initGradients(e),Pg.initPatterns(e),s&&Ha.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&xr.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function tC(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),rd(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&rd(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function GK(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof q.parts[z]!="string";)z--;var F=q.parts[z],O=q.parts[z-1]+"."+F,I=q.parts.slice(0,z).join("."),V=ut(e.layout,I).get(),J=ut(a,I).get(),G=q.get();if(D!==void 0){_[k]=D,T[k]=F==="reverse"?D:el(G);var U=ld.getLayoutValObject(a,q.parts);if(U&&U.impliedEdits&&D!==null)for(var H in U.impliedEdits)w(tr.relativeAttr(k,H),U.impliedEdits[H]);if(["width","height"].indexOf(k)!==-1)if(D){w("autosize",null);var Q=k==="height"?"width":"height";w(Q,a[Q])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(O.match(cC))S(O),ut(a,I+"._inputRange").set(null);else if(O.match(vC)){S(O),ut(a,I+"._inputRange").set(null);var Z=ut(a,I).get();Z._inputDomain&&(Z._input.domain=Z._inputDomain.slice())}else O.match(JK)&&ut(a,I+"._inputDomain").set(null);if(F==="type"){M=V;var ne=J.type==="linear"&&D==="log",ce=J.type==="log"&&D==="linear";if(ne||ce){if(!M||!M.range)w(I+".autorange",!0);else if(J.autorange)ne&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var ye=M.range[0],Ce=M.range[1];ne?(ye<=0&&Ce<=0&&w(I+".autorange",!0),ye<=0?ye=Ce/1e6:Ce<=0&&(Ce=ye/1e6),w(I+".range[0]",Math.log(ye)/Math.LN10),w(I+".range[1]",Math.log(Ce)/Math.LN10)):(w(I+".range[0]",Math.pow(10,ye)),w(I+".range[1]",Math.pow(10,Ce)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],Nn.getComponentMethod("annotations","convertCoords")(e,J,D,w),Nn.getComponentMethod("images","convertCoords")(e,J,D,w)}else w(I+".autorange",!0),w(I+".range",null);ut(a,I+"._inputRange").set(null)}else if(F.match(HK)){var re=ut(a,k).get(),Se=(D||{}).type;(!Se||Se==="-")&&(Se="linear"),Nn.getComponentMethod("annotations","convertCoords")(e,re,Se,w),Nn.getComponentMethod("images","convertCoords")(e,re,Se,w)}var pe=Qh.containerArrayMatch(k);if(pe){f=pe.array,v=pe.index;var be=pe.property,Ae=U||{editType:"calc"};v!==""&&be===""&&(Qh.isAddVal(D)?T[k]=null:Qh.isRemoveVal(D)?T[k]=(ut(t,f).get()||[])[v]:tr.warn("unrecognized full object value",r)),Fl.update(g,Ae),u[f]||(u[f]={});var ge=u[f][v];ge||(ge=u[f][v]={}),ge[be]=D,delete r[k]}else F==="reverse"?(V.range?V.range.reverse():(w(I+".autorange",!0),V.range=[1,0]),J.autorange?g.calc=!0:g.plot=!0):(k==="dragmode"&&(D===!1&&G!==!1||D!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(G==="lasso"||G==="select")?g.plot=!0:U?Fl.update(g,U):g.calc=!0,q.set(D))}}for(f in u){var B=Qh.applyContainerArrayChanges(e,i(t,f),u[f],g,i);B||(g.plot=!0)}for(var $ in b){M=Ha.getFromId(e,$);var Y=M&&M._constraintGroup;if(Y){g.calc=!0;for(var le in Y)b[le]||(Ha.getFromId(e,le)._constraintShrinkable=!0)}}(dC(e)||r.height||r.width)&&(g.plot=!0);var he=a.shapes;for(v=0;v1;)if(a.pop(),t=ut(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function $K(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Ur.newPlot(e,r,t,a).then(()=>{for(let[I,V]of O)V.forEach(J=>e.on(I,J));return Ur.react(e,r,t,a)})}else{e.data=r||[],Rt.cleanData(e.data),e.layout=t||{},Rt.cleanLayout(e.layout),eQ(e.data,e.layout,o,s),xr.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,y=aQ(e,s,h,d,m),g=y.newDataRevision,_=tQ(e,o,v,d,m,g);if(dC(e)&&(y.layoutReplot=!0),_.calc||y.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(h),w=0;w(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function tQ(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Fl.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var m=ld.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var O=0;Oa._timeToNext&&m()};F()}var g=0;function _(F){return Array.isArray(n)?g>=n.length?F.transitionOpts=n[g]:F.transitionOpts=n[0]:F.transitionOpts=n,g++,F}var T,w,b=[],M=r==null,S=Array.isArray(r),k=!M&&!S&&tr.isPlainObject(r);if(k)b.push({type:"object",data:_(tr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&PP)&&z.push(w);b=z}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function iQ(e,r,t){if(e=tr.getGraphDiv(e),r==null)return Promise.resolve();if(!tr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],v={};for(a=r.length-1;a>=0;a--)if(tr.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||v[h]||{}).name,m=r[a].name,y=s[d]||v[d];d&&m&&typeof m=="number"&&y&&Rgq.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&tr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=xr.modifyFrames,s=xr.modifyFrames,u=[e,l],f=[e,i];return Wa&&Wa.add(e,o,u,s,f),xr.modifyFrames(e,i)}function oQ(e){e=tr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return xr.cleanPlot([],{},t,r),xr.purge(e),zg.purge(e),r._container&&r._container.remove(),delete e._context,e}function sQ(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!tr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=tr.inverseTransformMatrix(tr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function uQ(e){var r=jh.select(e),t=e._fullLayout;if(t._calcInverseTransform=sQ,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};jh.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=tr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(FK.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ur.animate=nQ;Ur.addFrames=iQ;Ur.deleteFrames=lQ;Ur.addTraces=oC;Ur.deleteTraces=sC;Ur.extendTraces=iC;Ur.moveTraces=Ng;Ur.prependTraces=lC;Ur.newPlot=VK;Ur._doPlot=OK;Ur.purge=oQ;Ur.react=rQ;Ur.redraw=UK;Ur.relayout=cc;Ur.restyle=td;Ur.setPlotConfig=BK;Ur.update=nd;Ur._guiRelayout=Fg(cc);Ur._guiRestyle=Fg(td);Ur._guiUpdate=Fg(nd);Ur._storeDirectGUIEdit=ZK});var Uo=K(Ni=>{"use strict";var fQ=br();Ni.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Ni.getRedrawFunc=function(e){return function(){fQ.getComponentMethod("colorbar","draw")(e)}};Ni.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Ni.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var pC=window.URL||window.webkitURL;Ni.createObjectURL=function(e){return pC.createObjectURL(e)};Ni.revokeObjectURL=function(e){return pC.revokeObjectURL(e)};Ni.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=cQ(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Ni.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function cQ(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Og=zr(),ffe=Fe(),vQ=tt(),hQ=Er(),cfe=_o(),Hg=/"/g,Vo="TOBESTRIPPED",dQ=new RegExp(`("${Vo})|(${Vo}")|("${Vo})|(${Vo}")`,"g"),pQ=["&","&","&",""",""",""","'","'","'"],mQ=["<","<","<"],yQ=[">",">",">"];function gQ(e){let r=Og.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return pQ.includes(n)?a:mQ.includes(n)?"<":yQ.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function bQ(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}mC.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(vQ.setRect,0,0,o,s).call(hQ.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var xQ=Fe(),_Q=r0().EventEmitter,hc=Uo();function wQ(e){var r=e.emitter||new _Q,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),y=new i,g,_;o==="svg"||xQ.isSafari()?_=hc.encodeSVG(l):(g=hc.createBlob(l,"svg"),_=hc.createObjectURL(g)),s.width=h,s.height=d,y.onload=function(){var T;switch(g=null,hc.revokeObjectURL(_),o!=="svg"&&m.drawImage(y,0,0,h,d),o){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=_;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(T),e.promise||r.emit("success",T)},y.onerror=function(T){if(g=null,hc.revokeObjectURL(_),n(T),!e.promise)return r.emit("error",T)},y.src=_});return e.promise?t:r}yC.exports=wQ});var Yg=K((dfe,xC)=>{"use strict";var gC=Hr(),bC=Ig(),TQ=It(),Fi=Fe(),dc=Uo(),MQ=sd(),AQ=ud(),kQ=Zu().version,Bg={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function CQ(e,r){r=r||{};var t,a,n,i;Fi.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Fi.getGraphDiv(e),t=Fi.extendDeep([],e.data),a=Fi.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(S){return!(S in r)||Fi.validate(r[S],Bg[S])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Fi.join2(Bg.format.values,", "," or ")+".");var o={};function s(S,k){return Fi.coerce(r,o,Bg,S,k)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var g=Fi.extendFlat({},a);f?g.width=f:r.width===null&&gC(i.width)&&(g.width=i.width),v?g.height=v:r.height===null&&gC(i.height)&&(g.height=i.height);var _=Fi.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=dc.getRedrawFunc(y);function w(){return new Promise(function(S){setTimeout(S,dc.getDelay(y._fullLayout))})}function b(){return new Promise(function(S,k){var q=MQ(y,u,h),D=y._fullLayout.width,P=y._fullLayout.height;function z(){bC.purge(y),document.body.removeChild(y)}if(u==="full-json"){var F=TQ.graphJson(y,!1,"keepdata","object",!0,!0);return F.version=kQ,F=JSON.stringify(F),z(),S(m?F:dc.encodeJSON(F))}if(z(),u==="svg")return S(m?q:dc.encodeSVG(q));var O=document.createElement("canvas");O.id=Fi.randstr(),AQ({format:u,width:D,height:P,scale:h,canvas:O,svg:q,promise:!0}).then(S).catch(k)})}function M(S){return m?S.replace(dc.IMAGE_URL_PREFIX,""):S}return new Promise(function(S,k){bC.newPlot(y,t,g,_).then(T).then(w).then(b).then(function(q){S(M(q))}).catch(function(q){k(q)})})}xC.exports=CQ});var TC=K((pfe,wC)=>{"use strict";var Fn=Fe(),SQ=It(),LQ=Hs(),qQ=uo().dfltConfig,oi=Fn.isPlainObject,Wo=Array.isArray,Ug=Fn.isArrayOrTypedArray;wC.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=LQ.get(),n=[],i={_context:Fn.extendFlat({},qQ)},l,o;Wo(r)?(i.data=Fn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(aa("array","data"))),oi(t)?(i.layout=Fn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(aa("object","layout"))),SQ.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(aa("unused",n,u.concat(v.length)));var _=v.length,T=Array.isArray(g);T&&(_=Math.min(_,g.length));var w,b,M,S,k;if(h.dimensions===2)for(b=0;b<_;b++)if(Wo(f[b])){f[b].length>v[b].length&&a.push(aa("unused",n,u.concat(b,v[b].length)));var q=v[b].length;for(w=0;w<(T?Math.min(q,g[b].length):q);w++)M=T?g[b][w]:g,S=f[b][w],k=v[b][w],Fn.validate(S,M)?k!==S&&k!==+S&&a.push(aa("dynamic",n,u.concat(b,w),S,k)):a.push(aa("value",n,u.concat(b,w),S))}else a.push(aa("array",n,u.concat(b),f[b]));else for(b=0;b<_;b++)M=T?g[b]:g,S=f[b],k=v[b],Fn.validate(S,M)?k!==S&&k!==+S&&a.push(aa("dynamic",n,u.concat(b),S,k)):a.push(aa("value",n,u.concat(b),S))}else if(h.items&&!m&&Wo(f)){var D=g[Object.keys(g)[0]],P=[],z,F;for(z=0;z{"use strict";var FQ=Fe(),cd=Uo();function IQ(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=cd.createBlob(e,t),u=cd.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),cd.revokeObjectURL(u),s=null,l(r);if(FQ.isSafari()){var f=t==="svg"?",":";base64,";return cd.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}MC.exports=IQ});var Vg=K((gfe,CC)=>{"use strict";var kC=Fe(),HQ=Yg(),OQ=AC(),yfe=Uo();function BQ(e,r){var t;return kC.isPlainObject(e)||(t=kC.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=HQ(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),OQ(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}CC.exports=BQ});var EC=K(Gg=>{"use strict";var nn=Fe(),ln=nn.isPlainObject,SC=Hs(),LC=It(),YQ=Zn(),qC=ct(),DC=uo().dfltConfig;Gg.makeTemplate=function(e){e=nn.isPlainObject(e)?e:nn.getGraphDiv(e),e=nn.extendDeep({_context:DC},{data:e.data,layout:e.layout}),LC.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};pc(d,m,VQ.bind(null,d));var y=nn.coerce(d,{},YQ,"type"),g=a.data[y];g||(g=a.data[y]=[]),g.push(m)}),pc(t,a.layout,UQ.bind(null,t)),delete a.layout.template;var n=t.template;if(ln(n)){var i=n.layout,l,o,s,u,f,v;ln(i)&&vd(i,a.layout);var h=n.data;if(ln(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],v=f.length,u=s.length,l=0;l_?l.push({code:"unused",traceType:d,templateCount:g,dataCount:_}):_>g&&l.push({code:"reused",traceType:d,templateCount:g,dataCount:_})}}function T(w,b){for(var M in w)if(M.charAt(0)!=="_"){var S=w[M],k=In(w,M,b);ln(S)?(Array.isArray(w)&&S._template===!1&&S.templateitemname&&l.push({code:"missing",path:k,templateitemname:S.templateitemname}),T(S,k)):Array.isArray(S)&&GQ(S)&&T(S,k)}}if(T({data:s,layout:o},""),l.length)return l.map(WQ)};function GQ(e){for(var r=0;r{"use strict";var Jt=Ig();yt._doPlot=Jt._doPlot;yt.newPlot=Jt.newPlot;yt.restyle=Jt.restyle;yt.relayout=Jt.relayout;yt.redraw=Jt.redraw;yt.update=Jt.update;yt._guiRestyle=Jt._guiRestyle;yt._guiRelayout=Jt._guiRelayout;yt._guiUpdate=Jt._guiUpdate;yt._storeDirectGUIEdit=Jt._storeDirectGUIEdit;yt.react=Jt.react;yt.extendTraces=Jt.extendTraces;yt.prependTraces=Jt.prependTraces;yt.addTraces=Jt.addTraces;yt.deleteTraces=Jt.deleteTraces;yt.moveTraces=Jt.moveTraces;yt.purge=Jt.purge;yt.addFrames=Jt.addFrames;yt.deleteFrames=Jt.deleteFrames;yt.animate=Jt.animate;yt.setPlotConfig=Jt.setPlotConfig;var XQ=af().getGraphDiv,ZQ=Mh().eraseActiveShape;yt.deleteActiveShape=function(e){return ZQ(XQ(e))};yt.toImage=Yg();yt.validate=TC();yt.downloadImage=Vg();var PC=EC();yt.makeTemplate=PC.makeTemplate;yt.validateTemplate=PC.validateTemplate});var Xg=K((_fe,zC)=>{"use strict";var Wg=Fe(),JQ=br();zC.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=JQ.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Wg.minRowLength(i);l?o=Math.min(u,Wg.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Wg.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Zg=K((wfe,IC)=>{"use strict";var NC=Fe().dateTick0,KQ=Gt(),QQ=KQ.ONEWEEK;function FC(e,r){return e%QQ===0?NC(r,1):NC(r,0)}IC.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",FC(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",FC(o,t.ycalendar)),n("yperiodalignment"))}}});var BC=K((Tfe,OC)=>{"use strict";var HC=["orientation","groupnorm","stackgaps"];OC.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var YC=Er(),UC=kn().hasColorscale,VC=Us(),$Q=un();GC.exports=function(r,t,a,n,i,l={}){var o=$Q.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),UC(r,"marker")&&VC(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=YC.background:u=YC.defaultLine,i("marker.line.color",u),UC(r,"marker.line")&&VC(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var ZC=K((Afe,XC)=>{"use strict";var jQ=Fe().isArrayOrTypedArray,e$=kn().hasColorscale,r$=Us();XC.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),e$(r,"line"))r$(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(jQ(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var KC=K((kfe,JC)=>{"use strict";JC.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var $C=K((Cfe,QC)=>{"use strict";var t$=Fe();QC.exports=function(e,r,t,a,n){n=n||{},a("textposition"),t$.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var rS=K((Sfe,eS)=>{"use strict";var dd=Er(),jC=Fe().isArrayOrTypedArray;function a$(e){for(var r=dd.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var tS=Fe(),n$=br(),i$=Yo(),l$=Yh(),du=un(),o$=Xg(),s$=Zg(),u$=BC(),f$=WC(),c$=ZC(),aS=KC(),v$=$C(),h$=rS(),d$=Fe().coercePattern;nS.exports=function(r,t,a,n){function i(d,m){return tS.coerce(r,t,i$,d,m)}var l=o$(r,t,n,i);if(l||(t.visible=!1),!!t.visible){s$(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=u$(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var p$=Bf().getAxisGroup;lS.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=p$(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,y=m[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=y.offsetIndex)}});var sS=K((Dfe,oS)=>{"use strict";var m$=Fe(),y$=Jg(),g$=Yo();oS.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return m$.coerce(n._input,n,g$,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var fS=K((Efe,uS)=>{"use strict";var b$=Fe(),x$=l0();uS.exports=function(e,r){function t(n,i){return b$.coerce(e,r,x$,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Kg=K((Pfe,vS)=>{"use strict";var _$=Hr(),cS=Fe(),w$=cS.dateTime2ms,pd=cS.incrementMonth,T$=Gt(),M$=T$.ONEAVGMONTH;vS.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(_$(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[a+"period0"],d=w$(h,u)||0,m=[],y=[],g=[],_=n.length,T=0;T<_;T++){var w=n[T],b,M,S;if(o){for(b=Math.round((w-d)/(o*M$)),S=pd(d,o*b,u);S>w;)S=pd(S,-o,u);for(;S<=w;)S=pd(S,o,u);M=pd(S,-o,u)}else{for(b=Math.round((w-d)/l),S=d+b*l;S>w;)S-=l;for(;S<=w;)S+=l;M=S-l}m[T]=f?M:v?S:(M+S)/2,y[T]=M,g[T]=S}return{vals:m,starts:y,ends:g}}});var pS=K((Rfe,dS)=>{"use strict";var Qg=kn().hasColorscale,$g=g0(),hS=un();dS.exports=function(r,t){hS.hasLines(t)&&Qg(t,"line")&&$g(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),hS.hasMarkers(t)&&(Qg(t,"marker")&&$g(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Qg(t,"marker.line")&&$g(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var jg=K((zfe,mS)=>{"use strict";var Mt=Fe();mS.exports=function(r,t){for(var a=0;a{"use strict";var yS=Fe();gS.exports=function(r,t){yS.isArrayOrTypedArray(t.selectedpoints)&&yS.tagSelected(r,t)}});var i2=K((Ffe,AS)=>{"use strict";var bS=Hr(),t2=Fe(),mc=pt(),xS=Kg(),r2=Gt().BADNUM,a2=un(),A$=pS(),k$=jg(),C$=e2();function S$(e,r){var t=e._fullLayout,a=r._xA=mc.getFromId(e,r.xaxis||"x","x"),n=r._yA=mc.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=xS(r,a,"x",i),s=xS(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=n2(r,t,a,n),y=!1,g,_,T,w,b,M;TS(t,r);var S="x",k="y",q;if(m)t2.pushUnique(m.traceIndices,r.index),g=m.orientation==="v",g?(k="s",q="x"):(S="s",q="y"),b=m.stackgaps==="interpolate";else{var D=wS(r,v);_S(e,r,a,n,u,f,D)}var P=!!r.xperiodalignment,z=!!r.yperiodalignment;for(_=0;__&&h[w].gap;)w--;for(M=h[w].s,T=h.length-1;T>w;T--)h[T].s=M;for(;_{"use strict";kS.exports=md;var L$=Fe().distinctVals;function md(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";SS.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var c2=K((Ofe,ES)=>{"use strict";var Hn=Hr(),{isArrayOrTypedArray:rl}=Fe(),{BADNUM:pu}=Gt(),q$=br(),gc=pt(),{getAxisGroup:D$}=Bf(),yd=CS(),{TEXTPAD:E$}=yc(),{LINE_SPACING:P$}=Aa(),{BR_TAG_ALL:R$}=ba();function z$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!Hn(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*P$*t+E$;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function G$(e,r,t,a){for(var n=mu(a),i=0;i{"use strict";var PS=i2(),RS=c2().setGroupPositions;function X$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var J$=tt(),OS=Gt(),bc=OS.BADNUM,BS=OS.LOG_CLIP,FS=BS+.5,IS=BS-.5,gd=Fe(),K$=gd.segmentsIntersect,HS=gd.constrain,h2=Yh();YS.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,v=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,y=m==="linear",g=a.fill&&a.fill!=="none",_=[],T=h2.minTolerance,w=r.length,b=new Array(w),M=0,S,k,q,D,P,z,F,O,I,V,J,G,U,H,Q,Z;function ne(Ne){var ae=r[Ne];if(!ae)return!1;var oe=t.linearized?n.l2p(ae.x):n.c2p(ae.x),qe=t.linearized?i.l2p(ae.y):i.c2p(ae.y);if(oe===bc){if(l&&(oe=n.c2p(ae.x,!0)),oe===bc)return!1;o&&qe===bc&&(oe*=Math.abs(n._m*u*(n._m>0?FS:IS)/(i._m*s*(i._m>0?FS:IS)))),oe*=1e3}if(qe===bc){if(o&&(qe=i.c2p(ae.y,!0)),qe===bc)return!1;qe*=1e3}return[oe,qe]}function ce(Ne,ae,oe,qe){var Pe=oe-Ne,$e=qe-ae,cr=.5-Ne,sr=.5-ae,Mr=Pe*Pe+$e*$e,Ir=Pe*cr+$e*sr;if(Ir>0&&Ir1||Math.abs(cr.y-oe[0][1])>1)&&(cr=[cr.x,cr.y],qe&&Se(cr,Ne)Ae||Ne[1]B)return[HS(Ne[0],be,Ae),HS(Ne[1],ge,B)]}function Ie(Ne,ae){if(Ne[0]===ae[0]&&(Ne[0]===be||Ne[0]===Ae)||Ne[1]===ae[1]&&(Ne[1]===ge||Ne[1]===B))return!0}function Xe(Ne,ae){var oe=[],qe=Ve(Ne),Pe=Ve(ae);return qe&&Pe&&Ie(qe,Pe)||(qe&&oe.push(qe),Pe&&oe.push(Pe)),oe}function De(Ne,ae,oe){return function(qe,Pe){var $e=Ve(qe),cr=Ve(Pe),sr=[];if($e&&cr&&Ie($e,cr))return sr;$e&&sr.push($e),cr&&sr.push(cr);var Mr=2*gd.constrain((qe[Ne]+Pe[Ne])/2,ae,oe)-(($e||qe)[Ne]+(cr||Pe)[Ne]);if(Mr){var Ir;$e&&cr?Ir=Mr>0==$e[Ne]>cr[Ne]?$e:cr:Ir=$e||cr,Ir[Ne]+=Mr}return sr}}var He;m==="linear"||m==="spline"?He=Le:m==="hv"||m==="vh"?He=Xe:m==="hvh"?He=De(0,be,Ae):m==="vhv"&&(He=De(1,ge,B));function We(Ne,ae){var oe=ae[0]-Ne[0],qe=(ae[1]-Ne[1])/oe,Pe=(Ne[1]*ae[0]-ae[1]*Ne[0])/oe;return Pe>0?[qe>0?be:Ae,B]:[qe>0?Ae:be,ge]}function ie(Ne){var ae=Ne[0],oe=Ne[1],qe=ae===b[M-1][0],Pe=oe===b[M-1][1];if(!(qe&&Pe))if(M>1){var $e=ae===b[M-2][0],cr=oe===b[M-2][1];qe&&(ae===be||ae===Ae)&&$e?cr?M--:b[M-1]=Ne:Pe&&(oe===ge||oe===B)&&cr?$e?M--:b[M-1]=Ne:b[M++]=Ne}else b[M++]=Ne}function xe(Ne){b[M-1][0]!==Ne[0]&&b[M-1][1]!==Ne[1]&&ie([he,me]),ie(Ne),Re=null,he=me=0}var Ke=gd.isArrayOrTypedArray(v);function hr(Ne){if(Ne&&f&&(Ne.i=S,Ne.d=r,Ne.trace=a,Ne.marker=Ke?v[Ne.i]:v,Ne.backoff=f),ye=Ne[0]/s,Ce=Ne[1]/u,Y=Ne[0]Ae?Ae:0,le=Ne[1]B?B:0,Y||le){if(!M)b[M++]=[Y||Ne[0],le||Ne[1]];else if(Re){var ae=He(Re,Ne);ae.length>1&&(xe(ae[0]),b[M++]=ae[1])}else Ee=He(b[M-1],Ne)[0],b[M++]=Ee;var oe=b[M-1];Y&&le&&(oe[0]!==Y||oe[1]!==le)?(Re&&(he!==Y&&me!==le?ie(he&&me?We(Re,Ne):[he||Y,me||le]):he&&me&&ie([he,me])),ie([Y,le])):he-Y&&me-le&&ie([Y||he,le||me]),Re=Ne,he=Y,me=le}else Re&&xe(He(Re,Ne)[0]),b[M++]=Ne}for(S=0;Sre(z,ze))break;q=z,U=I[0]*O[0]+I[1]*O[1],U>J?(J=U,D=z,F=!1):U=r.length||!z)break;hr(z),k=z}}Re&&ie([he||Re[0],me||Re[1]]),_.push(b.slice(0,M))}var Me=m.slice(m.length-1);if(f&&Me!=="h"&&Me!=="v"){for(var ke=!1,Oe=-1,Ze=[],Ue=0;Ue<_.length;Ue++)for(var Ge=0;Ge<_[Ue].length-1;Ge++){var ir=_[Ue][Ge],ar=_[Ue][Ge+1],er=J$.applyBackoff(ar,ir);(er[0]!==ar[0]||er[1]!==ar[1])&&(ke=!0),Ze[Oe+1]||(Oe++,Ze[Oe]=[ir,[er[0],er[1]]])}return ke?Ze:_}return _}});var WS=K((Ufe,GS)=>{"use strict";var VS={tonextx:1,tonexty:1,tonext:1};GS.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var si=zr(),Q$=br(),xc=Fe(),yu=xc.ensureSingle,ZS=xc.identity,kt=tt(),gu=un(),$$=US(),j$=WS(),bd=sg().tester;JS.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=j$(r,t,a);if(o=n.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),ej(r,o,t),f){l&&(s=l());var h=si.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,m){XS(r,m,t,d,v,this,i)})})}else o.each(function(d,m){XS(r,m,t,d,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function ej(e,r,t){r.each(function(a){var n=yu(si.select(this),"g","fills");kt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,ZS);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=yu(si.select(this),"path","js-fill")})})}function XS(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;rj(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var v=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,y=si.select(i),g=yu(y,"g","errorbars"),_=yu(y,"g","lines"),T=yu(y,"g","points"),w=yu(y,"g","text");if(Q$.getComponentMethod("errorbars","plot")(e,g,t,l),d.visible!==!0)return;f(y).style("opacity",d.opacity);var b,M,S=d.fill.charAt(d.fill.length-1);S!=="x"&&S!=="y"&&(S="");var k,q;S==="y"?(k=1,q=h.c2p(0,!0)):S==="x"&&(k=0,q=v.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var D="",P=[],z=d._prevtrace,F=null,O=null;z&&(D=z._prevRevpath||"",M=z._nextFill,P=z._ownPolygons,F=z._fillsegments,O=z._fillElement);var I,V,J="",G="",U,H,Q,Z,ne,ce,ye=[];d._polygons=[];var Ce=[],re=[],Se=xc.noop;if(b=d._ownFill,gu.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(U=kt.steps(m.shape),H=kt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?U=H=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?kt.smoothclosed(De.slice(1),m.smoothing):kt.smoothopen(De,m.smoothing)}:U=H=function(De){return"M"+De.join("L")},Q=function(De){return H(De.reverse())},re=$$(a,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Ce=new Array(re.length);var pe=0;for(s=0;s=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),h=Math.ceil(v.length/f),d=0;n.forEach(function(y,g){var _=y[0].trace;gu.hasMarkers(_)&&_.marker.maxdisplayed>0&&g{"use strict";QS.exports={container:"marker",min:"cmin",max:"cmax"}});var jS=K((Wfe,$S)=>{"use strict";var xd=pt();$S.exports=function(r,t,a){var n={},i={_fullLayout:a},l=xd.getFromTrace(i,t,"x"),o=xd.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=xd.tickText(l,l.c2l(s),!0).text,n.yLabel=xd.tickText(o,o.c2l(u),!0).text,n}});var g2=K((Xfe,eL)=>{"use strict";var p2=zr(),bu=tt(),tj=br();function aj(e){var r=p2.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=p2.select(this),n=t.trace||t[0].trace;m2(a,n,e)}),r.selectAll("g.text").each(function(t){var a=p2.select(this),n=t.trace||t[0].trace;y2(a,n,e)}),r.selectAll("g.trace path.js-line").call(bu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(bu.fillGroupStyle,e,!1),tj.getComponentMethod("errorbars","style")(r)}function m2(e,r,t){bu.pointStyle(e.selectAll("path.point"),r,t)}function y2(e,r,t){bu.textPointStyle(e.selectAll("text"),r,t)}function nj(e,r,t){var a=r[0].trace;a.selectedpoints?(bu.selectedPointStyle(t.selectAll("path.point"),a),bu.selectedTextStyle(t.selectAll("text"),a)):(m2(t,a,e),y2(t,a,e))}eL.exports={style:aj,stylePoints:m2,styleText:y2,styleOnSelect:nj}});var tL=K((Zfe,rL)=>{"use strict";var xu=Er(),ij=un();rL.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&xu.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&xu.opacity(i)?i:l&&xu.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?xu.opacity(n)<.3?xu.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&xu.opacity(a)&&ij.hasLines(r)&&r.line.width?a:r.fillcolor)}});var iL=K((Jfe,nL)=>{"use strict";var _d=Fe(),aL=ni(),lj=br(),oj=tL(),b2=Er(),sj=_d.fillText;nL.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),v=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,m=!!l.xperiodalignment,y=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var g=function(G){if(m){var U=o.c2p(G.xStart),H=o.c2p(G.xEnd);return u>=Math.min(U,H)&&u<=Math.max(U,H)?0:1/0}var Q=Math.max(3,G.mrc||0),Z=1-1/Q,ne=Math.abs(o.c2p(G.x)-u);return ne=Math.min(U,H)&&f<=Math.max(U,H)?0:1/0}var Q=Math.max(3,G.mrc||0),Z=1-1/Q,ne=Math.abs(s.c2p(G.y)-f);return neye!=B>=ye&&(be=Se[re-1][0],Ae=Se[re][0],B-ge&&(pe=be+(Ae-be)*(ye-ge)/(B-ge),Q=Math.min(Q,pe),Z=Math.max(Z,pe)));return Q=Math.max(Q,0),Z=Math.min(Z,o._length),{x0:Q,x1:Z,y0:ye,y1:ye}}if(h.indexOf("fills")!==-1&&l._fillElement){var I=F(l._fillElement)&&!F(l._fillExclusionElement);if(I){var V=O(l._polygons);V===null&&(V={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var J=b2.defaultLine;return b2.opacity(l.fillcolor)?J=l.fillcolor:b2.opacity((l.line||{}).color)&&(J=l.line.color),_d.extendFlat(r,{distance:r.maxHoverDistance,x0:V.x0,x1:V.x1,y0:V.y0,y1:V.y1,color:J,hovertemplate:!1}),delete r.index,l.text&&!_d.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var sL=K((Kfe,oL)=>{"use strict";var lL=un();oL.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,h=!lL.hasMarkers(o)&&!lL.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";uL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var dL=K(($fe,hL)=>{"use strict";var _c=br().traceIs,x2=Im();hL.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(uj(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function uj(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=fj(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!_c(i,"cartesian")||_c(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,vL(i,a)){var u=cL(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(vL(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function cL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function vL(e,r){var t=cL(e),a=_c(e,"box-violin"),n=_c(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var mL=K((jfe,pL)=>{"use strict";var cj=Ka().isTypedArraySpec;function vj(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||cj(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=vj(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var bL=K((ece,gL)=>{"use strict";var yL=wn().mix,hj=gi(),dj=Fe();gL.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(q,D){return dj.coerce2(r,t,n.attributes,q,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=yL(i,n.bgColor,n.blend||hj.lightFraction).toRgbString(),v=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),m=a("showgrid",n.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=yL(t.gridcolor,n.bgColor,67).toRgbString(),g=l("minor.gridcolor",y),_=l("minor.gridwidth",t.gridwidth||1),T=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!g||!!_||!!T);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),M=l("zerolinecolor",i),S=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!M||!!S);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var w2=K((rce,AL)=>{"use strict";var xL=Hr(),pj=br(),wc=Fe(),mj=ct(),yj=ei(),_2=jn(),_L=om(),wL=um(),gj=vm(),bj=hm(),xj=mL(),_j=bL(),wj=iy(),TL=P0(),wd=$t().WEEKDAY_PATTERN,Tj=$t().HOUR_PATTERN;AL.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=pj.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(v==="date"||v==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||v==="multicategory")&&(m=wc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),TL(t,i),wj(r,t,a,n),xj(r,t,a,n),n.noHover||(v!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),g=y!==_2.color.dflt?y:o.color,_=s.label||i._dfltTitle[l];if(bj(r,t,a,v,n),!u)return t;a("title.text",_),wc.coerceFont(a,"title.font",o,{overrideDflt:{size:wc.bigFont(o.size),color:g}}),_L(r,t,a,v);var T=n.hasMinor;if(T&&(mj.newContainer(t,"minor"),_L(r,t,a,v,{isMinor:!0})),gj(r,t,a,v,n),wL(r,t,a,n),T){var w=n.isMinor;n.isMinor=!0,wL(r,t,a,n),n.isMinor=w}_j(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:_2}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=v==="multicategory";if(!n.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(v==="date")if(yj(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Mj}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var S=0;S=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=ML(i[o]),s){l=wd;break}}var u=a("pattern",l);if(u===wd)for(o=0;o<2;o++)s=ML(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case wd:if(!xL(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case Tj:if(!xL(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var kj=Hr(),Td=Fe();kL.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,v,h,d,m,y;s&&(v=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(kj(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,m=0,y=!1;var g=Td.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=Td.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(g==="free"){if(o==="y"){var T=a("autoshift");T&&(d=_==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,m=_==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",y);var w=!1;if(l.length&&(w=Td.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),Td.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var zL=K((ace,RL)=>{"use strict";var Xo=Fe(),CL=Er(),Cj=Ti().isUnifiedHover,Sj=Ey(),SL=ct(),Lj=Ss(),LL=jn(),qj=dL(),qL=w2(),Dj=Bf(),DL=T2(),A2=Zt(),Ii=A2.id2name,EL=A2.name2id,Ej=$t().AX_ID_PATTERN,PL=br(),Md=PL.traceIs,M2=PL.getComponentMethod;function Ad(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}RL.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},v={},h={},d={},m={},y,g;for(y=0;y{"use strict";var Pj=zr(),NL=br(),kd=Fe(),pn=tt(),Cd=pt();FL.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Cd.redrawComponents(r);return}function l(g){var _=g.xaxis,T=g.yaxis;i._defs.select("#"+g.clipId+"> rect").call(pn.setTranslate,0,0).call(pn.setScale,1,1),g.plot.call(pn.setTranslate,_._offset,T._offset).call(pn.setScale,1,1);var w=g.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(pn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(pn.setTextPointsScale,1,1),w.call(pn.hideOutsideRangePoints,g)}function o(g,_){var T=g.plotinfo,w=T.xaxis,b=T.yaxis,M=w._length,S=b._length,k=!!g.xr1,q=!!g.yr1,D=[];if(k){var P=kd.simpleMap(g.xr0,w.r2l),z=kd.simpleMap(g.xr1,w.r2l),F=P[1]-P[0],O=z[1]-z[0];D[0]=(P[0]*(1-_)+_*z[0]-P[0])/(P[1]-P[0])*M,D[2]=M*(1-_+_*O/F),w.range[0]=w.l2r(P[0]*(1-_)+_*z[0]),w.range[1]=w.l2r(P[1]*(1-_)+_*z[1])}else D[0]=0,D[2]=M;if(q){var I=kd.simpleMap(g.yr0,b.r2l),V=kd.simpleMap(g.yr1,b.r2l),J=I[1]-I[0],G=V[1]-V[0];D[1]=(I[1]*(1-_)+_*V[1]-I[1])/(I[0]-I[1])*S,D[3]=S*(1-_+_*G/J),b.range[0]=w.l2r(I[0]*(1-_)+_*V[0]),b.range[1]=b.l2r(I[1]*(1-_)+_*V[1])}else D[1]=0,D[3]=S;Cd.drawOne(r,w,{skipTitle:!0}),Cd.drawOne(r,b,{skipTitle:!0}),Cd.redrawComponents(r,[w._id,b._id]);var U=k?M/D[2]:1,H=q?S/D[3]:1,Q=k?D[0]:0,Z=q?D[1]:0,ne=k?D[0]/D[2]*M:0,ce=q?D[1]/D[3]*S:0,ye=w._offset-ne,Ce=b._offset-ce;T.clipRect.call(pn.setTranslate,Q,Z).call(pn.setScale,1/U,1/H),T.plot.call(pn.setTranslate,ye,Ce).call(pn.setScale,U,H),pn.setPointGroupScale(T.zoomScalePts,1/U,1/H),pn.setTextPointsScale(T.zoomScaleTxt,1/U,1/H)}var s;n&&(s=n());function u(){for(var g={},_=0;_a.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return v=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var qd=K(Sa=>{"use strict";var Ld=zr(),HL=br(),Zo=Fe(),Rj=It(),zj=tt(),OL=Gp().getModuleCalcData,Il=Zt(),ui=$t(),Nj=_o(),Zr=Zo.ensureSingle;function Sd(e,r,t){return Zo.ensureSingle(e,r,t,function(a){a.datum(t)})}var Jo=ui.zindexSeparator;Sa.name="cartesian";Sa.attr=["xaxis","yaxis"];Sa.idRoot=["x","y"];Sa.idRegex=ui.idRegex;Sa.attrRegex=ui.attrRegex;Sa.attributes=fL();Sa.layoutAttributes=jn();Sa.supplyLayoutDefaults=zL();Sa.transitionAxes=IL();Sa.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(Jo)!==-1)continue;d+=Jo+(u+1),h=Zo.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],y,g=0;g1&&(M+=Jo+b),w.push(o+M),l=0;l1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Zr(a,"path","xlines-above"),r.ylines=Zr(a,"path","ylines-above"),r.xaxislayer=Zr(a,"g","xaxislayer-above"),r.yaxislayer=Zr(a,"g","yaxislayer-above");else{if(!l){var h=Zr(a,"g","layer-subplot");r.shapelayer=Zr(h,"g","shapelayer"),r.imagelayer=Zr(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Zr(a,"g","minor-gridlayer"),r.gridlayer=Zr(a,"g","gridlayer"),r.zerolinelayer=Zr(a,"g","zerolinelayer"));var d=Zr(a,"g","layer-between");r.shapelayerBetween=Zr(d,"g","shapelayer"),r.imagelayerBetween=Zr(d,"g","imagelayer"),Zr(a,"path","xlines-below"),Zr(a,"path","ylines-below"),r.overlinesBelow=Zr(a,"g","overlines-below"),Zr(a,"g","xaxislayer-below"),Zr(a,"g","yaxislayer-below"),r.overaxesBelow=Zr(a,"g","overaxes-below")}r.overplot=Zr(a,"g","overplot"),r.plot=Zr(r.overplot,"g",n),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Zr(a,"g","zerolinelayer-above"),l||(r.xlines=Zr(a,"path","xlines-above"),r.ylines=Zr(a,"path","ylines-above"),r.overlinesAbove=Zr(a,"g","overlines-above"),Zr(a,"g","xaxislayer-above"),Zr(a,"g","yaxislayer-above"),r.overaxesAbove=Zr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=v.plotgroup,y=n+"-x",g=n+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Zr(v.overlinesBelow,"path",y),Zr(v.overlinesBelow,"path",g),Zr(v.overaxesBelow,"g",y),Zr(v.overaxesBelow,"g",g),r.plot=Zr(v.overplot,"g",n),Zr(v.overlinesAbove,"path",y),Zr(v.overlinesAbove,"path",g),Zr(v.overaxesAbove,"g",y),Zr(v.overaxesAbove,"g",g),r.xlines=m.select(".overlines-"+o).select("."+y),r.ylines=m.select(".overlines-"+s).select("."+g),r.xaxislayer=m.select(".overaxes-"+o).select("."+y),r.yaxislayer=m.select(".overaxes-"+s).select("."+g)}l||(u||(Sd(r.minorGridlayer,"g",r.xaxis._id),Sd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(Il.idSort),Sd(r.gridlayer,"g",r.xaxis._id),Sd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(Il.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function UL(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Ld.select(this);f.remove(),VL(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var Dd=un();GL.exports={hasLines:Dd.hasLines,hasMarkers:Dd.hasMarkers,hasText:Dd.hasText,isBubble:Dd.isBubble,attributes:Yo(),layoutAttributes:l0(),supplyDefaults:iS(),crossTraceDefaults:sS(),supplyLayoutDefaults:fS(),calc:i2().calc,crossTraceCalc:NS(),arraysToCalcdata:jg(),plot:KS(),colorbar:d2(),formatLabels:jS(),style:g2().style,styleOnSelect:g2().styleOnSelect,hoverPoints:iL(),selectPoints:sL(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:qd(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var JL=K((oce,ZL)=>{"use strict";var Ij=zr(),Hj=Er(),XL=xg(),k2=Fe(),Oj=k2.strScale,Bj=k2.strRotate,Yj=k2.strTranslate;ZL.exports=function(r,t,a){var n=r.node(),i=XL[a.arrowhead||0],l=XL[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,m,y,g;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,T=d.y-m.y;if(y=Math.atan2(T,_),g=y+Math.PI,v&&h&&v+h>Math.sqrt(_*_+T*T)){I();return}if(v){if(v*v>_*_+T*T){I();return}var w=v*Math.cos(y),b=v*Math.sin(y);m.x+=w,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+T*T){I();return}var M=h*Math.cos(y),S=h*Math.sin(y);d.x-=M,d.y-=S,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),q="";if(k{"use strict";var KL=zr(),C2=br(),Uj=It(),Ol=Fe(),S2=Ol.strTranslate,Mc=pt(),Ko=Er(),tl=tt(),QL=ni(),L2=ba(),q2=Ll(),Tc=ti(),Vj=ct().arrayEditor,Gj=JL();eq.exports={draw:Wj,drawOne:$L,drawRaw:jL};function Wj(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Pe="right":Pe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Pe]}for(var ge=!1,B=["x","y"],$=0;$1)&&(he===le?(ze=me.r2fraction(r["a"+Y]),(ze<0||ze>1)&&(ge=!0)):ge=!0),He=me._offset+me.r2p(r[Y]),xe=.5}else{var Me=hr==="domain";Y==="x"?(ie=r[Y],He=Me?me._offset+me._length*ie:He=o.l+o.w*ie):(ie=1-r[Y],He=Me?me._offset+me._length*ie:He=o.t+o.h*ie),xe=r.showarrow?.5:ie}if(r.showarrow){De.head=He;var ke=r["a"+Y];if(Ke=Ee*Ae(.5,r.xanchor)-Le*Ae(.5,r.yanchor),he===le){var Oe=Mc.getRefType(he);Oe==="domain"?(Y==="y"&&(ke=1-ke),De.tail=me._offset+me._length*ke):Oe==="paper"?Y==="y"?(ke=1-ke,De.tail=o.t+o.h*ke):De.tail=o.l+o.w*ke:De.tail=me._offset+me.r2p(ke),We=Ke}else De.tail=He+ke,We=Ke+ke;De.text=De.tail+Ke;var Ze=l[Y==="x"?"width":"height"];if(le==="paper"&&(De.head=Ol.constrain(De.head,1,Ze-1)),he==="pixel"){var Ue=-Math.max(De.tail-3,De.text),Ge=Math.min(De.tail+3,De.text)-Ze;Ue>0?(De.tail+=Ue,De.text+=Ue):Ge>0&&(De.tail-=Ge,De.text-=Ge)}De.tail+=Xe,De.head+=Xe}else Ke=Ve*Ae(xe,Ie),We=Ke,De.text=He+Ke;De.text+=Xe,Ke+=Xe,We+=Xe,r["_"+Y+"padplus"]=Ve/2+We,r["_"+Y+"padminus"]=Ve/2-We,r["_"+Y+"size"]=Ve,r["_"+Y+"shift"]=Ke}if(ge){k.remove();return}var ir=0,ar=0;if(r.align!=="left"&&(ir=(re-ye)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ar=(Se-Ce)*(r.valign==="middle"?.5:1)),ne)Z.select("svg").attr({x:P+ir-1,y:P+ar}).call(tl.setClipUrl,F?y:null,e);else{var er=P+ar-ce.top,Ne=P+ir-ce.left;J.call(L2.positionText,Ne,er).call(tl.setClipUrl,F?y:null,e)}O.select("rect").call(tl.setRect,P,P,re,Se),z.call(tl.setRect,q/2,q/2,pe-q,be-q),k.call(tl.setTranslate,Math.round(g.x.text-pe/2),Math.round(g.y.text-be/2)),w.attr({transform:"rotate("+_+","+g.x.text+","+g.y.text+")"});var ae=function(qe,Pe){T.selectAll(".annotation-arrow-g").remove();var $e=g.x.head,cr=g.y.head,sr=g.x.tail+qe,Mr=g.y.tail+Pe,Ir=g.x.text+qe,Jr=g.y.text+Pe,lt=Ol.rotationXYMatrix(_,Ir,Jr),_t=Ol.apply2DTransform(lt),gt=Ol.apply2DTransform2(lt),Yt=+z.attr("width"),zt=+z.attr("height"),Ba=Ir-.5*Yt,ha=Ba+Yt,na=Jr-.5*zt,Ya=na+zt,ia=[[Ba,na,Ba,Ya],[Ba,Ya,ha,Ya],[ha,Ya,ha,na],[ha,na,Ba,na]].map(gt);if(!ia.reduce(function(vt,Nt){return vt^!!Ol.segmentsIntersect($e,cr,$e+1e6,cr+1e6,Nt[0],Nt[1],Nt[2],Nt[3])},!1)){ia.forEach(function(vt){var Nt=Ol.segmentsIntersect(sr,Mr,$e,cr,vt[0],vt[1],vt[2],vt[3]);Nt&&(sr=Nt.x,Mr=Nt.y)});var la=r.arrowwidth,vr=r.arrowcolor,ot=r.arrowside,Xr=T.append("g").style({opacity:Ko.opacity(vr)}).classed("annotation-arrow-g",!0),nt=Xr.append("path").attr("d","M"+sr+","+Mr+"L"+$e+","+cr).style("stroke-width",la+"px").call(Ko.stroke,Ko.rgb(vr));if(Gj(nt,ot,r),s.annotationPosition&&nt.node().parentNode&&!a){var oa=$e,sa=cr;if(r.standoff){var at=Math.sqrt(Math.pow($e-sr,2)+Math.pow(cr-Mr,2));oa+=r.standoff*(sr-$e)/at,sa+=r.standoff*(Mr-cr)/at}var Xa=Xr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-oa)+","+(Mr-sa),transform:S2(oa,sa)}).style("stroke-width",la+6+"px").call(Ko.stroke,"rgba(0,0,0,0)").call(Ko.fill,"rgba(0,0,0,0)"),Un,Kt;Tc.init({element:Xa.node(),gd:e,prepFn:function(){var vt=tl.getTranslate(k);Un=vt.x,Kt=vt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(vt,Nt){var Ft=_t(Un,Kt),$l=Ft[0]+vt,sl=Ft[1]+Nt;k.call(tl.setTranslate,$l,sl),d("x",Hl(n,vt,"x",o,r)),d("y",Hl(i,Nt,"y",o,r)),r.axref===r.xref&&d("ax",Hl(n,vt,"ax",o,r)),r.ayref===r.yref&&d("ay",Hl(i,Nt,"ay",o,r)),Xr.attr("transform",S2(vt,Nt)),w.attr({transform:"rotate("+_+","+$l+","+sl+")"})},doneFn:function(){C2.call("_guiRelayout",e,m());var vt=document.querySelector(".js-notes-box-panel");vt&&vt.redraw(vt.selectedObj)}})}}};if(r.showarrow&&ae(0,0),b){var oe;Tc.init({element:k.node(),gd:e,prepFn:function(){oe=w.attr("transform")},moveFn:function(qe,Pe){var $e="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Hl(n,qe,"ax",o,r)):d("ax",r.ax+qe),r.ayref===r.yref?d("ay",Hl(i,Pe,"ay",o.w,r)):d("ay",r.ay+Pe),ae(qe,Pe);else{if(a)return;var cr,sr;if(n)cr=Hl(n,qe,"x",o,r);else{var Mr=r._xsize/o.w,Ir=r.x+(r._xshift-r.xshift)/o.w-Mr/2;cr=Tc.align(Ir+qe/o.w,Mr,0,1,r.xanchor)}if(i)sr=Hl(i,Pe,"y",o,r);else{var Jr=r._ysize/o.h,lt=r.y-(r._yshift+r.yshift)/o.h-Jr/2;sr=Tc.align(lt-Pe/o.h,Jr,0,1,r.yanchor)}d("x",cr),d("y",sr),(!n||!i)&&($e=Tc.getCursor(n?.5:cr,i?.5:sr,r.xanchor,r.yanchor))}w.attr({transform:S2(qe,Pe)+oe}),q2(k,$e)},clickFn:function(qe,Pe){r.captureevents&&e.emit("plotly_clickannotation",S(Pe))},doneFn:function(){q2(k),C2.call("_guiRelayout",e,m());var qe=document.querySelector(".js-notes-box-panel");qe&&qe.redraw(qe.selectedObj)}})}}s.annotationText?J.call(L2.makeEditable,{delegate:k,gd:e}).call(G).on("edit",function(H){r.text=H,this.call(G),d("text",H),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),C2.call("_guiRelayout",e,m())}):J.call(G)}});var lq=K((uce,iq)=>{"use strict";var rq=Fe(),Xj=br(),tq=ct().arrayEditor;iq.exports={hasClickToShow:Zj,onClick:Jj};function Zj(e,r){var t=nq(e,r);return t.on.length>0||t.explicitOff.length>0}function Jj(e,r){var t=nq(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var D2=Fe(),_u=Er();oq.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=_u.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),D2.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var v=n("arrowside"),h,d;v.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),v.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:_u.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),y=a.hoverlabel||{};if(m){var g=n("hoverlabel.bgcolor",y.bgcolor||(_u.opacity(i)?_u.rgb(i):_u.defaultLine)),_=n("hoverlabel.bordercolor",y.bordercolor||_u.contrast(g)),T=D2.extendFlat({},y.font);T.color||(T.color=_),D2.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!m)}});var uq=K((cce,sq)=>{"use strict";var P2=Fe(),Qo=pt(),Kj=ei(),Qj=E2(),$j=cu();sq.exports=function(r,t){Kj(r,t,{name:"annotations",handleItemDefaults:jj})};function jj(e,r,t){function a(w,b){return P2.coerce(e,r,$j,w,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){Qj(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=o[f],h=Qo.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Qo.getFromId(u,h);d._annIndices.push(r._index)}if(Qo.coercePosition(r,u,a,h,v,.5),l){var m="a"+v,y=Qo.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=r[m]="pixel");var g=y==="pixel"?s[f]:.4;Qo.coercePosition(r,u,a,y,m,g)}a(v+"anchor"),a(v+"shift")}if(P2.noneOrAll(e,r,["x","y"]),l&&P2.noneOrAll(e,r,["ax","ay"]),i){var _=a("xclick"),T=a("yclick");r._xclick=_===void 0?r.x:Qo.cleanPosition(_,u,r.xref),r._yclick=T===void 0?r.y:Qo.cleanPosition(T,u,r.yref)}}}});var vq=K((vce,cq)=>{"use strict";var R2=Fe(),$o=pt(),eee=Ed().draw;cq.exports=function(r){var t=r._fullLayout,a=R2.filterVisible(t.annotations);if(a.length&&r._fullData.length)return R2.syncOrAsync([eee,ree],r)};function ree(e){var r=e._fullLayout;R2.filterVisible(r.annotations).forEach(function(t){var a=$o.getFromId(e,t.xref),n=$o.getFromId(e,t.yref),i=$o.getRefType(t.xref),l=$o.getRefType(t.yref);t._extremes={},i==="range"&&fq(t,a),l==="range"&&fq(t,n)})}function fq(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,y=m+f,g=m-f,_;if(o===l){var T=$o.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),w=$o.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,g)});_={min:[T.min[0],w.min[0]],max:[T.max[0],w.max[0]]}}else y=i?y+i:y,g=i?g-i:g,_=$o.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,y),ppadminus:Math.max(u,d,g)});e._extremes[t]=_}});var dq=K((hce,hq)=>{"use strict";var tee=Hr(),aee=Sv();hq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],y=null;i?y=aee(m,t.range):y=Math.pow(10,m),tee(y)||(y=null),n(f+d,y)}for(var h=0;h{"use strict";var z2=Ed(),pq=lq();mq.exports={moduleType:"component",name:"annotations",layoutAttributes:cu(),supplyLayoutDefaults:uq(),includeBasePlot:ic()("annotations"),calcAutorange:vq(),draw:z2.draw,drawOne:z2.drawOne,drawRaw:z2.drawRaw,hasClickToShow:pq.hasClickToShow,onClick:pq.onClick,convertCoords:dq()}});var Pd=K((pce,gq)=>{"use strict";var ft=cu(),nee=bi().overrideAll,iee=ct().templatedArray;gq.exports=nee(iee("annotation",{visible:ft.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ft.xanchor,xshift:ft.xshift,yanchor:ft.yanchor,yshift:ft.yshift,text:ft.text,textangle:ft.textangle,font:ft.font,width:ft.width,height:ft.height,opacity:ft.opacity,align:ft.align,valign:ft.valign,bgcolor:ft.bgcolor,bordercolor:ft.bordercolor,borderpad:ft.borderpad,borderwidth:ft.borderwidth,showarrow:ft.showarrow,arrowcolor:ft.arrowcolor,arrowhead:ft.arrowhead,startarrowhead:ft.startarrowhead,arrowside:ft.arrowside,arrowsize:ft.arrowsize,startarrowsize:ft.startarrowsize,arrowwidth:ft.arrowwidth,standoff:ft.standoff,startstandoff:ft.startstandoff,hovertext:ft.hovertext,hoverlabel:ft.hoverlabel,captureevents:ft.captureevents}),"calc","from-root")});var xq=K((mce,bq)=>{"use strict";var N2=Fe(),lee=pt(),oee=ei(),see=E2(),uee=Pd();bq.exports=function(r,t,a){oee(r,t,{name:"annotations",handleItemDefaults:fee,fullLayout:a.fullLayout})};function fee(e,r,t,a){function n(o,s){return N2.coerce(e,r,uee,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],lee.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(see(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),N2.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),N2.noneOrAll(e,r,["ax","ay"])))}});var Mq=K((yce,Tq)=>{"use strict";var _q=Fe(),wq=pt();Tq.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function F2(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function vee(e,r){var t=F2(e.projection,F2(e.view,F2(e.model,[r[0],r[1],r[2],1])));return t}Aq.exports=vee});var Sq=K((bce,Cq)=>{"use strict";var hee=Ed().drawRaw,dee=kq(),pee=["x","y","z"];Cq.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=dee(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),hee(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var Dq=K((xce,qq)=>{"use strict";var mee=br(),Lq=Fe();qq.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Pd()}}},layoutAttributes:Pd(),handleDefaults:xq(),includeBasePlot:yee,convert:Mq(),draw:Sq()};function yee(e,r){var t=mee.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var _ce=$t(),Eq=ga(),Pq=Yo().line,gee=xi().dash,fi=Wt().extendFlat,bee=ct().templatedArray,wce=ac(),wu=Zn(),Rq=cu(),{shapeTexttemplateAttrs:xee,templatefallbackAttrs:_ee}=co(),wee=Hv();zq.exports=bee("shape",{visible:fi({},wu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:fi({},wu.legend,{editType:"calc+arraydraw"}),legendgroup:fi({},wu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:fi({},wu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Eq({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:fi({},wu.legendrank,{editType:"calc+arraydraw"}),legendwidth:fi({},wu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:fi({},Rq.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:fi({},Rq.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:fi({},Pq.color,{editType:"arraydraw"}),width:fi({},Pq.width,{editType:"calc+arraydraw"}),dash:fi({},gee,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:xee({},{keys:Object.keys(wee)}),texttemplatefallback:_ee({editType:"arraydraw"}),font:Eq({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Fq=K((Mce,Nq)=>{"use strict";var Tu=Fe(),mn=pt(),Tee=ei(),Mee=I2(),Ac=Rl();Nq.exports=function(r,t){Tee(r,t,{name:"shapes",handleItemDefaults:kee})};function Aee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function kee(e,r,t){function a(w,b){return Tu.coerce(e,r,Mee,w,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),Tu.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var v=a("xsizemode"),h=a("ysizemode");let d=[.25,.75],m=[0,10];["x","y"].forEach(w=>{var b=w+"anchor",M=w==="x"?v:h,S={_fullLayout:t},k,q,D,P;let z=w+"ref",F=e[z];if(Array.isArray(F)&&F.length>0){let O=Ac.countDefiningCoords(s,l,w);P=mn.coerceRefArray(e,r,S,w,void 0,"paper",O),r["_"+w+"refArray"]=!0}else P=mn.coerceRef(e,r,S,w,void 0,"paper");if(Array.isArray(P))P.forEach(function(O){mn.getRefType(O)==="range"&&(k=mn.getFromId(S,O),k&&k._shapeIndices.indexOf(r._index)===-1&&k._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(O){let I=P[O];mn.getRefType(I)==="range"?(k=mn.getFromId(S,I),q=Ac.shapePositionToRange(k),D=Ac.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(w+O+"shift")):q=D=Tu.identity;let J=w+O,G=e[J];if(e[J]=q(e[J],!0),M==="pixel"?a(J,m[O]):mn.coercePosition(r,S,a,I,J,d[O]),r[J]=D(r[J]),e[J]=G,O===0&&M==="pixel"){let U=e[b];e[b]=q(e[b],!0),mn.coercePosition(r,S,a,I,b,.25),r[b]=D(r[b]),e[b]=U}});else{if(mn.getRefType(P)==="range"?(k=mn.getFromId(S,P),k._shapeIndices.push(r._index),D=Ac.rangeToShapePosition(k),q=Ac.shapePositionToRange(k),u&&(k.type==="category"||k.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):q=D=Tu.identity,u){let I=w+"0",V=w+"1",J=e[I],G=e[V];e[I]=q(e[I],!0),e[V]=q(e[V],!0),M==="pixel"?(a(I,m[0]),a(V,m[1])):(mn.coercePosition(r,S,a,P,I,d[0]),mn.coercePosition(r,S,a,P,V,d[1])),r[I]=D(r[I]),r[V]=D(r[V]),e[I]=J,e[V]=G}if(M==="pixel"){let I=e[b];e[b]=q(e[b],!0),mn.coercePosition(r,S,a,P,b,.25),r[b]=D(r[b]),e[b]=I}}}),u&&Tu.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",g,_;if(u&&(g=a("label.texttemplate"),a("label.texttemplatefallback")),g||(_=a("label.text")),_||g){a("label.textangle");var T=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Aee(y,T)),a("label.padding"),Tu.coerceFont(a,"label.font",t.font)}}});var Oq=K((Ace,Hq)=>{"use strict";var Cee=Er(),Iq=Fe();function See(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}Hq.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),Iq.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Cee.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",See(l,u)),a("newshape.label.padding"),Iq.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var Xq=K((kce,Wq)=>{"use strict";var H2=Fe(),On=pt(),Hi=Ff(),O2=Rl();Wq.exports=function(r){var t=r._fullLayout,a=H2.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=On.getFromId(r,v),i._extremes[l._id]=On.findExtremes(l,h,Yq(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=On.getFromId(r,i.xref),o=Vq(l,i,Hi.paramIsX),o&&(i._extremes[l._id]=On.findExtremes(l,o,Yq(i))));if(u==="array"){let f=Bq(r,i,"y");Object.entries(f).forEach(([v,h])=>{l=On.getFromId(r,v),i._extremes[l._id]=On.findExtremes(l,h,Uq(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=On.getFromId(r,i.yref),o=Vq(l,i,Hi.paramIsY),o&&(i._extremes[l._id]=On.findExtremes(l,o,Uq(i))))}};function Bq(e,r,t){let a=r[t+"ref"],n=t==="x"?Hi.paramIsX:Hi.paramIsY;function i(v,h){v==="paper"||On.getRefType(v)==="domain"||(l[v]||(l[v]=[]),l[v].push(h))}let l={};if(r.type==="path"&&r.path){let v=r.path.match(Hi.segmentRE)||[];for(var o=0,s=0;sm&&(i(a[o],y[m]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let v in l){let h=On.getFromId(e,v);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=O2.decodeDate(f)),u[h._id]=l[v].map(f)}}return u}function Yq(e){return Gq(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Uq(e){return Gq(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function Gq(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?O2.extractPathCoords(n,i?Hi.paramIsY:Hi.paramIsX):[t,a],u=H2.aggNums(Math.max,null,s),f=H2.aggNums(Math.min,null,s),v=f<0?Math.abs(f)+l:l,h=u>0?u+l:l;return{ppad:l,ppadplus:o?v:h,ppadminus:o?h:v}}else return{ppad:l}}function Vq(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(Hi.segmentRE),m,y,g,_,T;for(e.type==="date"&&(u=O2.decodeDate(u)),m=0;mh&&(h=T)));if(h>=v)return[v,h]}}});var Kq=K((Cce,Jq)=>{"use strict";var Zq=Mh();Jq.exports={moduleType:"component",name:"shapes",layoutAttributes:I2(),supplyLayoutDefaults:Fq(),supplyDrawNewShapeDefaults:Oq(),includeBasePlot:ic()("shapes"),calcAutorange:Xq(),draw:Zq.draw,drawOne:Zq.drawOne}});var B2=K((Lce,$q)=>{"use strict";var Qq=$t(),Lee=ct().templatedArray,Sce=ac();$q.exports=Lee("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",Qq.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Qq.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var eD=K((qce,jq)=>{"use strict";var qee=Fe(),Y2=pt(),Dee=ei(),Eee=B2(),Pee="images";jq.exports=function(r,t){var a={name:Pee,handleItemDefaults:Ree};Dee(r,t,a)};function Ree(e,r,t){function a(h,d){return qee.coerce(e,r,Eee,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=Y2.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=Y2.getFromId(l,f);v._imgIndices.push(r._index)}Y2.coercePosition(r,l,a,f,u,0)}return r}});var nD=K((Dce,aD)=>{"use strict";var rD=zr(),zee=tt(),Mu=pt(),tD=Zt(),Nee=_o();aD.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var iD=Hr(),Fee=Sv();lD.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";sD.exports={moduleType:"component",name:"images",layoutAttributes:B2(),supplyLayoutDefaults:eD(),includeBasePlot:ic()("images"),draw:nD(),convertCoords:oD()}});var Rd=K((Rce,fD)=>{"use strict";fD.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var U2=K((zce,vD)=>{"use strict";var Iee=ga(),Hee=gi(),Oee=Wt().extendFlat,Bee=bi().overrideAll,Yee=Ov(),cD=ct().templatedArray,Uee=cD("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});vD.exports=Bee(cD("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Uee,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Oee(Yee({editType:"arraydraw"}),{}),font:Iee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Hee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var mD=K((Nce,pD)=>{"use strict";var zd=Fe(),hD=ei(),dD=U2(),Vee=Rd(),Gee=Vee.name,Wee=dD.buttons;pD.exports=function(r,t){var a={name:Gee,handleItemDefaults:Xee};hD(r,t,a)};function Xee(e,r,t){function a(l,o){return zd.coerce(e,r,dD,l,o)}var n=hD(e,r,{name:"buttons",handleItemDefaults:Zee}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),zd.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),zd.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Zee(e,r){function t(n,i){return zd.coerce(e,r,Wee,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var bD=K((Fce,gD)=>{"use strict";gD.exports=xt;var ci=zr(),yD=Er(),Au=tt(),Nd=Fe();function xt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}xt.barWidth=2;xt.barLength=20;xt.barRadius=2;xt.barPad=1;xt.barColor="#808BA4";xt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",y=v==="up",g=s,_=f,T,w,b,M;!h&&!d&&!m&&!y&&(this.position.direction="down",h=!0);var S=h||y;S?(T=o,w=T+g,h?(b=u,M=Math.min(b+_,l),_=M-b):(M=u+_,b=Math.max(M-_,0),_=M-b)):(b=u,M=b+_,d?(w=o+g,T=Math.max(w-g,0),g=w-T):(T=o,w=Math.min(T+g,i),g=w-T)),this._box={l:T,t:b,w:g,h:_};var k=s>g,q=xt.barLength+2*xt.barPad,D=xt.barWidth+2*xt.barPad,P=o,z=u+f;z+D>l&&(z=l-D);var F=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(yD.fill,xt.barColor),k?(this.hbar=F.attr({rx:xt.barRadius,ry:xt.barRadius,x:P,y:z,width:q,height:D}),this._hbarXMin=P+q/2,this._hbarTranslateMax=g-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=f>_,I=xt.barWidth+2*xt.barPad,V=xt.barLength+2*xt.barPad,J=o+s,G=u;J+I>i&&(J=i-I);var U=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(yD.fill,xt.barColor),O?(this.vbar=U.attr({rx:xt.barRadius,ry:xt.barRadius,x:J,y:G,width:I,height:V}),this._vbarYMin=G+V/2,this._vbarTranslateMax=_-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,Q=T-.5,Z=O?w+I+.5:w+.5,ne=b-.5,ce=k?M+D+.5:M+.5,ye=n._topdefs.selectAll("#"+H).data(k||O?[0]:[]);if(ye.exit().remove(),ye.enter().append("clipPath").attr("id",H).append("rect"),k||O?(this._clipRect=ye.select("rect").attr({x:Math.floor(Q),y:Math.floor(ne),width:Math.ceil(Z)-Math.floor(Q),height:Math.ceil(ce)-Math.floor(ne)}),this.container.call(Au.setClipUrl,H,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Au.setClipUrl,null),delete this._clipRect),k||O){var Ce=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ce);var re=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault(),ci.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(re),O&&this.vbar.on(".drag",null).call(re)}this.setTranslate(t,a)};xt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Au.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};xt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ci.event.dx),this.vbar&&(t-=ci.event.dy),this.setTranslate(r,t)};xt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ci.event.deltaY),this.vbar&&(t+=ci.event.deltaY),this.setTranslate(r,t)};xt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Nd.constrain(ci.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Nd.constrain(ci.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};xt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Nd.constrain(r||0,0,a),t=Nd.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Au.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Au.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Au.setTranslate,r,t+l*this._vbarTranslateMax)}}});var LD=K((Ice,SD)=>{"use strict";var ku=zr(),kc=It(),Cc=Er(),Cu=tt(),yn=Fe(),Fd=ba(),Jee=ct().arrayEditor,_D=Aa().LINE_SPACING,_r=Rd(),Kee=bD();SD.exports=function(r){var t=r._fullLayout,a=yn.filterVisible(t[_r.name]);function n(h){kc.autoMargin(r,kD(h))}var i=t._menulayer.selectAll("g."+_r.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(_r.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){ku.select(this).selectAll("g."+_r.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+_r.headerGroupClassName).data(a,Qee);l.enter().append("g").classed(_r.headerGroupClassName,!0);for(var o=yn.ensureSingle(i,"g",_r.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var nre=Rd();qD.exports={moduleType:"component",name:nre.name,layoutAttributes:U2(),supplyLayoutDefaults:mD(),draw:LD()}});var Lc=K((Oce,ED)=>{"use strict";ED.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var X2=K((Bce,zD)=>{"use strict";var PD=ga(),ire=Ov(),lre=Wt().extendDeepAll,ore=bi().overrideAll,sre=nf(),RD=ct().templatedArray,jo=Lc(),ure=RD("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});zD.exports=ore(RD("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ure,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:lre(ire({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:sre.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:PD({})},font:PD({}),activebgcolor:{valType:"color",dflt:jo.gripBgActiveColor},bgcolor:{valType:"color",dflt:jo.railBgColor},bordercolor:{valType:"color",dflt:jo.railBorderColor},borderwidth:{valType:"number",min:0,dflt:jo.railBorderWidth},ticklen:{valType:"number",min:0,dflt:jo.tickLength},tickcolor:{valType:"color",dflt:jo.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:jo.minorTickLength}}),"arraydraw","from-root")});var HD=K((Yce,ID)=>{"use strict";var Su=Fe(),ND=ei(),FD=X2(),fre=Lc(),cre=fre.name,vre=FD.steps;ID.exports=function(r,t){ND(r,t,{name:cre,handleItemDefaults:hre})};function hre(e,r,t){function a(v,h){return Su.coerce(e,r,FD,v,h)}for(var n=ND(e,r,{name:"steps",handleItemDefaults:dre}),i=0,l=0;l{"use strict";var vi=zr(),Id=It(),Bl=Er(),hi=tt(),gn=Fe(),pre=gn.strTranslate,qc=ba(),mre=ct().arrayEditor,Dr=Lc(),K2=Aa(),YD=K2.LINE_SPACING,Z2=K2.FROM_TL,J2=K2.FROM_BR;ZD.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=yre(a,r),i=a._infolayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Dr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Id.autoMargin(r,UD(f))}if(i.exit().each(function(){vi.select(this).selectAll("g."+Dr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Dr.groupClassName).data(n,gre);o.enter().append("g").classed(Dr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",pre(l-Dr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function Q2(e,r){var t=e._dims;return t.inputAreaStart+Dr.stepInset+(t.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,r))}function BD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Dr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Dr.stepInset-2*t.inputAreaStart)))}function Are(e,r,t){var a=t._dims,n=gn.ensureSingle(e,"rect",Dr.railTouchRectClass,function(i){i.call(WD,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Dr.tickOffset+t.ticklen+a.labelHeight)}).call(Bl.fill,t.bgcolor).attr("opacity",0),hi.setTranslate(n,0,a.currentValueTotalHeight)}function kre(e,r){var t=r._dims,a=t.inputAreaLength-Dr.railInset*2,n=gn.ensureSingle(e,"rect",Dr.railRectClass);n.attr({width:a,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Bl.stroke,r.bordercolor).call(Bl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),hi.setTranslate(n,Dr.railInset,(t.inputAreaWidth-Dr.railWidth)*.5+t.currentValueTotalHeight)}});var QD=K((Vce,KD)=>{"use strict";var Cre=Lc();KD.exports={moduleType:"component",name:Cre.name,layoutAttributes:X2(),supplyLayoutDefaults:HD(),draw:JD()}});var Od=K((Gce,jD)=>{"use strict";var $D=gi();jD.exports={bgcolor:{valType:"color",dflt:$D.background,editType:"plot"},bordercolor:{valType:"color",dflt:$D.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var $2=K((Wce,eE)=>{"use strict";eE.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Bd=K((Xce,rE)=>{"use strict";rE.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var nE=K(Ud=>{"use strict";var Sre=Zt(),Lre=ba(),tE=Bd(),qre=Aa().LINE_SPACING,Yd=tE.name;function aE(e){var r=e&&e[Yd];return r&&r.visible}Ud.isVisible=aE;Ud.makeData=function(e){for(var r=Sre.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Vd=Fe(),iE=ct(),lE=Zt(),Dre=Od(),Ere=$2();oE.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Vd.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=iE.newContainer(i,"rangeslider");function s(M,S){return Vd.coerce(l,o,Dre,M,S)}var u,f;function v(M,S){return Vd.coerce(u,f,Ere,M,S)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===lE.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),y=Vd.simpleMap(m,lE.id2name),g=0;g{"use strict";var Pre=Zt().list,Rre=Tf().getAutoRange,zre=Bd();uE.exports=function(r){for(var t=Pre(r,"x",!0),a=0;a{"use strict";var Gd=zr(),Nre=br(),Fre=It(),Ct=Fe(),Wd=Ct.strTranslate,vE=tt(),Yl=Er(),Ire=_f(),Hre=qd(),j2=Zt(),Ore=ti(),Bre=Ll(),Fr=Bd();hE.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=U.max)J=z[G+1];else if(V=U.pmax)J=z[G+1];else if(V0?e.touches[0].clientX:0}function Yre(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Fr.slideBoxClassName).node(),i=e.select("rect."+Fr.grabAreaMinClassName).node(),l=e.select("rect."+Fr.grabAreaMaxClassName).node();function o(){var s=Gd.event,u=s.target,f=cE(s),v=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=Ore.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",g),m.addEventListener("mousemove",y),m.addEventListener("mouseup",g);function y(_){var T=cE(_),w=+T-f,b,M,S;switch(u){case n:if(S="ew-resize",h+w>t._length||d+w<0)return;b=h+w,M=d+w;break;case i:if(S="col-resize",h+w>t._length)return;b=h+w,M=d;break;case l:if(S="col-resize",d+w<0)return;b=h,M=d+w;break;default:S="ew-resize",b=v,M=v+w;break}if(M{"use strict";var $re=Fe(),jre=Od(),ete=$2(),e3=nE();pE.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:$re.extendFlat({},jre,{yaxis:ete})}}},layoutAttributes:Od(),handleDefaults:sE(),calcAutorange:fE(),draw:dE(),isVisible:e3.isVisible,makeData:e3.makeData,autoMarginOpts:e3.autoMarginOpts}});var Xd=K((jce,gE)=>{"use strict";var rte=ga(),yE=gi(),tte=ct().templatedArray,ate=tte("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});gE.exports={visible:{valType:"boolean",editType:"plot"},buttons:ate,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:rte({editType:"plot"}),bgcolor:{valType:"color",dflt:yE.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:yE.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var r3=K((eve,bE)=>{"use strict";bE.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var wE=K((rve,_E)=>{"use strict";var Zd=Fe(),nte=Er(),ite=ct(),lte=ei(),xE=Xd(),t3=r3();_E.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=ite.newContainer(t,"rangeselector");function s(d,m){return Zd.coerce(l,o,xE,d,m)}var u=lte(l,o,{name:"buttons",handleItemDefaults:ote,calendar:i}),f=s("visible",u.length>0);if(f){var v=ste(t,a,n);s("x",v[0]),s("y",v[1]),Zd.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Zd.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",nte.contrast(h,t3.lightAmount,t3.darkAmount)),s("bordercolor"),s("borderwidth")}};function ote(e,r,t,a){var n=a.calendar;function i(s,u){return Zd.coerce(e,r,xE.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function ste(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var ute=Q1(),fte=Fe().titleCase;TE.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=cte(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function cte(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=ute["utc"+fte(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var EE=K((ave,DE)=>{"use strict";var Kd=zr(),vte=br(),hte=It(),AE=Er(),qE=tt(),al=Fe(),kE=al.strTranslate,Jd=ba(),dte=Zt(),i3=Aa(),CE=i3.LINE_SPACING,SE=i3.FROM_TL,LE=i3.FROM_BR,n3=r3(),pte=ME();DE.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(mte(r),yte);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Kd.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(al.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Kd.select(this),v=pte(l,u);u._isActive=gte(l,u,v),f.call(a3,o,u),f.call(xte,o,u,r),f.on("click",function(){r._dragged||vte.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(a3,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(a3,o,u)})}),wte(r,s,o,l._name,i)})};function mte(e){for(var r=dte.list(e,"x",!0),t=[],a=0;a{"use strict";PE.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Xd()}}},layoutAttributes:Xd(),handleDefaults:wE(),draw:EE()}});var Qd=K(l3=>{"use strict";var zE=Wt().extendFlat;l3.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:zE({},t,{}),y:zE({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};l3.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Tte=Fe(),Mte=Ms().counter,Ate=Qd().attributes,NE=$t().idRegex,kte=ct(),o3={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Mte("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[NE.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[NE.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Ate({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function $d(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Cte(e,r){var t=e.grid||{},a=$d(r,t,"x"),n=$d(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var v=kte.newContainer(r,"grid");function h(S,k){return Tte.coerce(t,v,o3,S,k)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!l&&!o){var y=h("pattern")==="independent";y&&(i=!0)}v._hasSubplotGrid=i;var g=h("roworder"),_=g==="top to bottom",T=i?.2:.1,w=i?.3:.1,b,M;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),v._domains={x:FE("x",h,T,b,m),y:FE("y",h,w,M,d,_)}}function FE(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),v=f*(1-l),h=0;h{"use strict";BE.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var VE=K((sve,UE)=>{"use strict";var YE=Hr(),Lte=br(),qte=Fe(),Dte=ct(),Ete=s3();UE.exports=function(e,r,t,a){var n="error_"+a.axis,i=Dte.newContainer(r,n),l=e[n]||{};function o(m,y){return qte.coerce(l,i,Ete,m,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),v=!0;f!=="sqrt"&&(v=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),v||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),v||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||YE(l.thickness)||YE(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",Lte.traceIs(r,"gl3d")?0:4))}}});var u3=K((uve,WE)=>{"use strict";WE.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var v=+n[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+n[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var l=GE(t,r.value),o=GE(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function GE(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var JE=K((fve,ZE)=>{"use strict";var f3=Hr(),Pte=br(),c3=pt(),Rte=Fe(),zte=u3();ZE.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var KE=zr(),Ul=Hr(),Nte=tt(),Fte=un();QE.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(T){return T.id});var y=Fte.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var g=KE.select(this).selectAll("g.errorbar").data(f,m);if(g.exit().remove(),!!f.length){h.visible||g.selectAll("path.xerror").remove(),d.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var _=g.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(n.duration).style("opacity",1),Nte.setClipUrl(g,a.layerClipId,r),g.each(function(T){var w=KE.select(this),b=Ite(T,l,o);if(!(y&&!T.vis)){var M,S=w.select("path.yerror");if(d.visible&&Ul(b.x)&&Ul(b.yh)&&Ul(b.ys)){var k=d.width;M="M"+(b.x-k)+","+b.yh+"h"+2*k+"m-"+k+",0V"+b.ys,b.noYS||(M+="m-"+k+",0h"+2*k),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",M)}else S.remove();var q=w.select("path.xerror");if(h.visible&&Ul(b.y)&&Ul(b.xh)&&Ul(b.xs)){var D=(h.copy_ystyle?d:h).width;M="M"+b.xh+","+(b.y-D)+"v"+2*D+"m0,-"+D+"H"+b.xs,b.noXS||(M+="m0,-"+D+"v"+2*D),i=!q.size(),i?q=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",M)}else q.remove()}})}})};function Ite(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),Ul(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),Ul(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var rP=K((vve,eP)=>{"use strict";var Hte=zr(),jE=Er();eP.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Hte.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(jE.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(jE.stroke,i.color)})}});var nP=K((hve,aP)=>{"use strict";var Dc=Fe(),tP=bi().overrideAll,Ec=s3(),es={error_x:Dc.extendFlat({},Ec),error_y:Dc.extendFlat({},Ec)};delete es.error_x.copy_zstyle;delete es.error_y.copy_zstyle;delete es.error_y.copy_ystyle;var Pc={error_x:Dc.extendFlat({},Ec),error_y:Dc.extendFlat({},Ec),error_z:Dc.extendFlat({},Ec)};delete Pc.error_x.copy_ystyle;delete Pc.error_y.copy_ystyle;delete Pc.error_z.copy_ystyle;delete Pc.error_z.copy_zstyle;aP.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:es,bar:es,histogram:es,scatter3d:tP(Pc,"calc","nested"),scattergl:tP(es,"calc","nested")}},supplyDefaults:VE(),calc:JE(),makeComputeError:u3(),plot:$E(),style:rP(),hoverInfo:Ote};function Ote(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var lP=K((dve,iP)=>{"use strict";iP.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var hP=K((pve,vP)=>{"use strict";var Vl=zr(),v3=wn(),e1=It(),oP=br(),nl=pt(),jd=ti(),Bn=Fe(),pi=Bn.strTranslate,cP=Wt().extendFlat,h3=Ll(),di=tt(),d3=Er(),Bte=_f(),Yte=ba(),Ute=kn().flipScale,Vte=w2(),Gte=T2(),Wte=jn(),p3=Aa(),sP=p3.LINE_SPACING,uP=p3.FROM_TL,fP=p3.FROM_BR,bt=lP().cn;function Xte(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+bt.colorbar).data(Zte(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(bt.colorbar,!0),t.each(function(a){var n=Vl.select(this);Bn.ensureSingle(n,"rect",bt.cbbg),Bn.ensureSingle(n,"g",bt.cbfills),Bn.ensureSingle(n,"g",bt.cblines),Bn.ensureSingle(n,"g",bt.cbaxis,function(l){l.classed(bt.crisp,!0)}),Bn.ensureSingle(n,"g",bt.cbtitleunshift,function(l){l.append("g").classed(bt.cbtitle,!0)}),Bn.ensureSingle(n,"rect",bt.cboutline);var i=Jte(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Kte(n,a,e)}),t.exit().each(function(a){e1.autoMargin(e,a._id)}).remove(),t.order()}function Zte(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return cP(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?Ute(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var $=Math.pow(10,Math.floor(Math.log(B)/Math.LN10));Ae*=$*Bn.roundUp(B/$,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(pe.tick0=0)}pe.dtick=Ae}pe.domain=a?[re+m/b.h,re+H-m/b.h]:[re+d/b.w,re+H-d/b.w],pe.setScale(),e.attr("transform",pi(Math.round(b.l),Math.round(b.t)));var Y=e.select("."+bt.cbtitleunshift).attr("transform",pi(-Math.round(b.l),-Math.round(b.t))),le=pe.ticklabelposition,he=pe.title.font.size,me=e.select("."+bt.cbaxis),Re,Ee=0,Le=0;function Ve(We,ie){var xe={propContainer:pe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+bt.cbtitle)},Ke=We.charAt(0)==="h"?We.slice(1):"h"+We;e.selectAll("."+Ke+",."+Ke+"-math-group").remove(),Bte.draw(t,We,cP(xe,ie||{}))}function Ie(){if(a&&be||!a&&!be){var We,ie;q==="top"&&(We=d+b.l+Q*y,ie=m+b.t+Z*(1-re-H)+3+he*.75),q==="bottom"&&(We=d+b.l+Q*y,ie=m+b.t+Z*(1-re)-3-he*.25),q==="right"&&(ie=m+b.t+Z*g+3+he*.75,We=d+b.l+Q*re),Ve(pe._id+"title",{attributes:{x:We,y:ie,"text-anchor":a?"start":"middle"}})}}function Xe(){if(a&&!be||!a&&be){var We=pe.position||0,ie=pe._offset+pe._length/2,xe,Ke;if(q==="right")Ke=ie,xe=b.l+Q*We+10+he*(pe.showticklabels?1:.5);else if(xe=ie,q==="bottom"&&(Ke=b.t+Z*We+10+(le.indexOf("inside")===-1?pe.tickfont.size:0)+(pe.ticks!=="inside"&&r.ticklen||0)),q==="top"){var hr=k.text.split("
").length;Ke=b.t+Z*We+10-J-sP*he*hr}Ve((a?"h":"v")+pe._id+"title",{avoid:{selection:Vl.select(t).selectAll("g."+pe._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?w.width:w.height},attributes:{x:xe,y:Ke,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!be||a&&be){var We=e.select("."+bt.cbtitle),ie=We.select("text"),xe=[-s/2,s/2],Ke=We.select(".h"+pe._id+"title-math-group").node(),hr=15.6;ie.node()&&(hr=parseInt(ie.node().style.fontSize,10)*sP);var ze;if(Ke?(ze=di.bBox(Ke),Le=ze.width,Ee=ze.height,Ee>hr&&(xe[1]-=(Ee-hr)/2)):ie.node()&&!ie.classed(bt.jsPlaceholder)&&(ze=di.bBox(ie.node()),Le=ze.width,Ee=ze.height),a){if(Ee){if(Ee+=5,q==="top")pe.domain[1]-=Ee/b.h,xe[1]*=-1;else{pe.domain[0]+=Ee/b.h;var Me=Yte.lineCount(ie);xe[1]+=(1-Me)*hr}We.attr("transform",pi(xe[0],xe[1])),pe.setScale()}}else Le&&(q==="right"&&(pe.domain[0]+=(Le+he/2)/b.w),We.attr("transform",pi(xe[0],xe[1])),pe.setScale())}e.selectAll("."+bt.cbfills+",."+bt.cblines).attr("transform",a?pi(0,Math.round(b.h*(1-pe.domain[1]))):pi(Math.round(b.w*pe.domain[0]),0)),me.attr("transform",a?pi(0,Math.round(-b.t)):pi(Math.round(-b.l),0));var ke=e.select("."+bt.cbfills).selectAll("rect."+bt.cbfill).attr("style","").data(I);ke.enter().append("rect").classed(bt.cbfill,!0).attr("style",""),ke.exit().remove();var Oe=D.map(pe.c2p).map(Math.round).sort(function(ar,er){return ar-er});ke.each(function(ar,er){var Ne=[er===0?D[0]:(I[er]+I[er-1])/2,er===I.length-1?D[1]:(I[er]+I[er+1])/2].map(pe.c2p).map(Math.round);a&&(Ne[1]=Bn.constrain(Ne[1]+(Ne[1]>Ne[0])?1:-1,Oe[0],Oe[1]));var ae=Vl.select(this).attr(a?"x":"y",ne).attr(a?"y":"x",Vl.min(Ne)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(Vl.max(Ne)-Vl.min(Ne),2));if(r._fillgradient)di.gradient(ae,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var oe=z(ar).replace("e-","");ae.attr("fill",v3(oe).toHexString())}});var Ze=e.select("."+bt.cblines).selectAll("path."+bt.cbline).data(S.color&&S.width?V:[]);Ze.enter().append("path").classed(bt.cbline,!0),Ze.exit().remove(),Ze.each(function(ar){var er=ne,Ne=Math.round(pe.c2p(ar))+S.width/2%1;Vl.select(this).attr("d","M"+(a?er+","+Ne:Ne+","+er)+(a?"h":"v")+J).call(di.lineGroupStyle,S.width,P(ar),S.dash)}),me.selectAll("g."+pe._id+"tick,path").remove();var Ue=ne+J+(s||0)/2-(r.ticks==="outside"?1:0),Ge=nl.calcTicks(pe),ir=nl.getTickSigns(pe)[2];return nl.drawTicks(t,pe,{vals:pe.ticks==="inside"?nl.clipEnds(pe,Ge):Ge,layer:me,path:nl.makeTickPath(pe,Ue,ir),transFn:nl.makeTransTickFn(pe)}),nl.drawLabels(t,pe,{vals:Ge,layer:me,transFn:nl.makeTransTickLabelFn(pe),labelFns:nl.makeLabelFns(pe,Ue)})}function He(){var We,ie=J+s/2;le.indexOf("inside")===-1&&(We=di.bBox(me.node()),ie+=a?We.width:We.height),Re=Y.select("text");var xe=0,Ke=a&&q==="top",hr=!a&&q==="right",ze=0;if(Re.node()&&!Re.classed(bt.jsPlaceholder)){var Me,ke=Y.select(".h"+pe._id+"title-math-group").node();ke&&(a&&be||!a&&!be)?(We=di.bBox(ke),xe=We.width,Me=We.height):(We=di.bBox(Y.node()),xe=We.right-b.l-(a?ne:Se),Me=We.bottom-b.t-(a?Se:ne),!a&&q==="top"&&(ie+=We.height,ze=We.height)),hr&&(Re.attr("transform",pi(xe/2+he/2,0)),xe*=2),ie=Math.max(ie,a?xe:Me)}var Oe=(a?d:m)*2+ie+u+s/2,Ze=0;!a&&k.text&&h==="bottom"&&g<=0&&(Ze=Oe/2,Oe+=Ze,ze+=Ze),w._hColorbarMoveTitle=Ze,w._hColorbarMoveCBTitle=ze;var Ue=u+s,Ge=(a?ne:Se)-Ue/2-(a?d:0),ir=(a?Se:ne)-(a?U:m+ze-Ze);e.select("."+bt.cbbg).attr("x",Ge).attr("y",ir).attr(a?"width":"height",Math.max(Oe-Ze,2)).attr(a?"height":"width",Math.max(U+Ue,2)).call(d3.fill,f).call(d3.stroke,r.bordercolor).style("stroke-width",u);var ar=hr?Math.max(xe-10,0):0;e.selectAll("."+bt.cboutline).attr("x",(a?ne:Se+d)+ar).attr("y",(a?Se+m-U:ne)+(Ke?Ee:0)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(U-(a?2*m+Ee:2*d+ar),2)).call(d3.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var er=a?ce*Oe:0,Ne=a?0:(1-ye)*Oe-ze;if(er=T?b.l-er:-er,Ne=_?b.t-Ne:-Ne,e.attr("transform",pi(er,Ne)),!a&&(u||v3(f).getAlpha()&&!v3.equals(w.paper_bgcolor,f))){var ae=me.selectAll("text"),oe=ae[0].length,qe=e.select("."+bt.cbbg).node(),Pe=di.bBox(qe),$e=di.getTranslate(e),cr=2;ae.each(function(Ba,ha){var na=0,Ya=oe-1;if(ha===na||ha===Ya){var ia=di.bBox(this),la=di.getTranslate(this),vr;if(ha===Ya){var ot=ia.right+la.x,Xr=Pe.right+$e.x+Se-u-cr+y;vr=Xr-ot,vr>0&&(vr=0)}else if(ha===na){var nt=ia.left+la.x,oa=Pe.left+$e.x+Se+u+cr;vr=oa-nt,vr<0&&(vr=0)}vr&&(oe<3?this.setAttribute("transform","translate("+vr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},Mr=uP[v],Ir=fP[v],Jr=uP[h],lt=fP[h],_t=Oe-J;a?(i==="pixels"?(sr.y=g,sr.t=U*Jr,sr.b=U*lt):(sr.t=sr.b=0,sr.yt=g+n*Jr,sr.yb=g-n*lt),o==="pixels"?(sr.x=y,sr.l=Oe*Mr,sr.r=Oe*Ir):(sr.l=_t*Mr,sr.r=_t*Ir,sr.xl=y-l*Mr,sr.xr=y+l*Ir)):(i==="pixels"?(sr.x=y,sr.l=U*Mr,sr.r=U*Ir):(sr.l=sr.r=0,sr.xl=y+n*Mr,sr.xr=y-n*Ir),o==="pixels"?(sr.y=1-g,sr.t=Oe*Jr,sr.b=Oe*lt):(sr.t=_t*Jr,sr.b=_t*lt,sr.yt=g-l*Jr,sr.yb=g+l*lt));var gt=r.y<.5?"b":"t",Yt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var zt={r:w.width-Ge-er,l:Ge+sr.r,b:w.height-ir-Ne,t:ir+sr.b};T&&_?e1.autoMargin(t,r._id,sr):T?t._fullLayout._reservedMargin[r._id][gt]=zt[gt]:_||a?t._fullLayout._reservedMargin[r._id][Yt]=zt[Yt]:t._fullLayout._reservedMargin[r._id][gt]=zt[gt]}return Bn.syncOrAsync([e1.previousPromises,Ie,De,Xe,e1.previousPromises,He],t)}function Kte(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;jd.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),h3(e)},moveFn:function(u,f){e.attr("transform",l+pi(u,f)),o=jd.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=jd.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=jd.getCursor(o,s,r.xanchor,r.yanchor);h3(e,v)},doneFn:function(){if(h3(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?oP.call("_guiRestyle",t,u,r._traceIndex):oP.call("_guiRelayout",t,u)}}})}function Qte(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";dP.exports={moduleType:"component",name:"colorbar",attributes:p0(),supplyDefaults:dm(),draw:hP().draw,hasColorbar:am()}});var yP=K((yve,mP)=>{"use strict";mP.exports={moduleType:"component",name:"legend",layoutAttributes:cy(),supplyLayoutDefaults:hy(),draw:Cy(),style:Ty()}});var bP=K((gve,gP)=>{"use strict";gP.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var _P=K((bve,xP)=>{"use strict";xP.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var y3=K((xve,AP)=>{"use strict";var jte=br(),MP=Fe(),m3=MP.extendFlat,wP=MP.extendDeep;function TP(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function eae(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}AP.exports=function(r,t){var a,n=r.data,i=r.layout,l=wP([],n),o=wP({},i,TP(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var rae=r0().EventEmitter,tae=br(),aae=Fe(),kP=Uo(),nae=y3(),iae=sd(),lae=ud();function oae(e,r){var t=new rae,a=nae(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=kP.getDelay(n._fullLayout);setTimeout(function(){var s=iae(n),u=document.createElement("canvas");u.id=aae.randstr(),t=lae({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=kP.getRedrawFunc(n);return tae.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}CP.exports=oae});var DP=K((wve,qP)=>{"use strict";var LP=Uo(),sae={getDelay:LP.getDelay,getRedrawFunc:LP.getRedrawFunc,clone:y3(),toSVG:sd(),svgToImg:ud(),toImage:SP(),downloadImage:Vg()};qP.exports=sae});var PP=K(il=>{"use strict";il.version=Zu().version;_b();f6();var uae=br(),Rc=il.register=uae.register,b3=RC(),EP=Object.keys(b3);for(r1=0;r1{"use strict";RP.exports=PP()});var zc=K((Ave,OP)=>{"use strict";var At=Yo(),NP=d0().axisHoverFormat,{hovertemplateAttrs:fae,texttemplateAttrs:cae,templatefallbackAttrs:FP}=co(),HP=gf(),vae=ga(),IP=yc(),hae=xi().pattern,rs=Wt().extendFlat,x3=vae({editType:"calc",arrayOk:!0,colorEditType:"style"}),dae=At.marker,pae=dae.line,mae=rs({},pae.width,{dflt:0}),yae=rs({width:mae,editType:"calc"},HP("marker.line")),gae=rs({line:yae,editType:"calc"},HP("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:hae,cornerradius:{valType:"any",editType:"calc"}});OP.exports={x:At.x,x0:At.x0,dx:At.dx,y:At.y,y0:At.y0,dy:At.dy,xperiod:At.xperiod,yperiod:At.yperiod,xperiod0:At.xperiod0,yperiod0:At.yperiod0,xperiodalignment:At.xperiodalignment,yperiodalignment:At.yperiodalignment,xhoverformat:NP("x"),yhoverformat:NP("y"),text:At.text,texttemplate:cae({editType:"plot"},{keys:IP.eventDataKeys}),texttemplatefallback:FP({editType:"plot"}),hovertext:At.hovertext,hovertemplate:fae({},{keys:IP.eventDataKeys}),hovertemplatefallback:FP(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:rs({},x3,{}),insidetextfont:rs({},x3,{}),outsidetextfont:rs({},x3,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:rs({},At.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:gae,offsetgroup:At.offsetgroup,alignmentgroup:At.alignmentgroup,selected:{marker:{opacity:At.selected.marker.opacity,color:At.selected.marker.color,editType:"style"},textfont:At.selected.textfont,editType:"style"},unselected:{marker:{opacity:At.unselected.marker.opacity,color:At.unselected.marker.color,editType:"style"},textfont:At.unselected.textfont,editType:"style"},zorder:At.zorder}});var _3=K((kve,BP)=>{"use strict";BP.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var GP=K((Cve,VP)=>{"use strict";var bae=Er(),YP=kn().hasColorscale,UP=Us(),xae=Fe().coercePattern;VP.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=YP(r,"marker");o&&UP(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",bae.defaultLine),YP(r,"marker.line")&&UP(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),xae(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Nc=K((Sve,QP)=>{"use strict";var WP=Hr(),qu=Fe(),XP=Er(),_ae=br(),wae=Xg(),Tae=Zg(),Mae=GP(),Aae=Jg(),ZP=zc(),a1=qu.coerceFont;function kae(e,r,t,a){function n(u,f){return qu.coerce(e,r,ZP,u,f)}var i=wae(e,r,a,n);if(!i){r.visible=!1;return}Tae(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");KP(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Mae(e,r,n,t,a);var o=(r.marker.line||{}).color,s=_ae.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||XP.defaultLine,{axis:"y"}),s(e,r,o||XP.defaultLine,{axis:"x",inherit:"y"}),qu.coerceSelectionMarkerOpacity(r,n)}function Cae(e,r){var t,a;function n(o,s){return qu.coerce(a._input,a,ZP,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&WP(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function KP(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,v=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",m=d||n==="inside",y=d||n==="outside";if(m||y){var g=a1(a,"textfont",t.font),_=qu.extendFlat({},g),T=e.textfont&&e.textfont.color,w=!T;if(w&&delete _.color,a1(a,"insidetextfont",_),h){var b=qu.extendFlat({},g);w&&delete b.color,a1(a,"pathbar.textfont",b)}y&&a1(a,"outsidetextfont",g),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}m&&v&&a("insidetextanchor")}QP.exports={supplyDefaults:kae,crossTraceDefaults:Cae,handleText:KP,validateCornerradius:JP}});var jP=K((Lve,$P)=>{"use strict";var Sae=br(),Lae=pt(),qae=Fe(),Dae=_3(),Eae=Nc().validateCornerradius;$P.exports=function(e,r,t){function a(y,g){return qae.coerce(e,r,Dae,y,g)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),v.visible&&v.type==="histogram"){var d=Lae.getFromId({_fullLayout:r},v[v.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var m=a("barcornerradius");r.barcornerradius=Eae(m)}});var w3=K((qve,eR)=>{"use strict";var Du=Fe();eR.exports=function(r,t){for(var a=0;a{"use strict";var rR=pt(),tR=Kg(),aR=kn().hasColorscale,nR=g0(),Pae=w3(),Rae=e2();iR.exports=function(r,t){var a=rR.getFromId(r,t.xaxis||"x"),n=rR.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,v={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",v),o=n.makeCalcdata(t,"y"),s=tR(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=tR(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),m=0;m{"use strict";var zae=zr(),Nae=Fe();function Fae(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=zae.select(this).select("text");Nae.setTransormAndDisplay(u,s)}})}}function Iae(e,r,t){if(t.uniformtext.mode){var a=oR(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Oae=Hr(),Bae=wn(),uR=Fe().isArrayOrTypedArray;ts.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};ts.coerceNumber=function(e,r,t){if(Oae(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};ts.coerceColor=function(e,r,t){return Bae(r).isValid()?r:t!==void 0?t:e.dflt};ts.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};ts.getValue=function(e,r){var t;return uR(e)?r{"use strict";var Ic=zr(),Yae=Er(),Hc=tt(),fR=Fe(),cR=br(),vR=Fc().resizeText,T3=zc(),Uae=T3.textfont,Vae=T3.insidetextfont,Gae=T3.outsidetextfont,wa=n1();function Wae(e){var r=Ic.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");vR(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Ic.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Ic.select(this),l=n[0].trace;hR(i,l,e)}),cR.getComponentMethod("errorbars","style")(r)}function hR(e,r,t){Hc.pointStyle(e.selectAll("path"),r,t),dR(e,r,t)}function dR(e,r,t){e.selectAll("text").each(function(a){var n=Ic.select(this),i=fR.ensureUniformFontSize(t,pR(n,a,r,t));Hc.font(n,i)})}function Xae(e,r,t){var a=r[0].trace;a.selectedpoints?Zae(t,a,e):(hR(t,a,e),cR.getComponentMethod("errorbars","style")(t))}function Zae(e,r,t){Hc.selectedPointStyle(e.selectAll("path"),r),Jae(e.selectAll("text"),r,t)}function Jae(e,r,t){e.each(function(a){var n=Ic.select(this),i;if(a.selected){i=fR.ensureUniformFontSize(t,pR(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),Hc.font(n,i)}else Hc.selectedTextStyle(n,r)})}function pR(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=bR(r,t);i=yR(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=gR(t,r.i,n));return i}function mR(e,r,t){return M3(Uae,e.textfont,r,t)}function yR(e,r,t,a){var n=mR(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:Yae.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),M3(Vae,e.insidetextfont,r,n)}function gR(e,r,t){var a=mR(e,r,t);return M3(Gae,e.outsidetextfont,r,a)}function M3(e,r,t,a){r=r||{};var n=wa.getValue(r.family,t),i=wa.getValue(r.size,t),l=wa.getValue(r.color,t),o=wa.getValue(r.weight,t),s=wa.getValue(r.style,t),u=wa.getValue(r.variant,t),f=wa.getValue(r.textcase,t),v=wa.getValue(r.lineposition,t),h=wa.getValue(r.shadow,t);return{family:wa.coerceString(e.family,n,a.family),size:wa.coerceNumber(e.size,i,a.size),color:wa.coerceColor(e.color,l,a.color),weight:wa.coerceString(e.weight,o,a.weight),style:wa.coerceString(e.style,s,a.style),variant:wa.coerceString(e.variant,u,a.variant),textcase:wa.coerceString(e.variant,f,a.textcase),lineposition:wa.coerceString(e.variant,v,a.lineposition),shadow:wa.coerceString(e.variant,h,a.shadow)}}function bR(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}xR.exports={style:Wae,styleTextPoints:dR,styleOnSelect:Xae,getInsideTextFont:yR,getOutsideTextFont:gR,getBarColor:bR,resizeText:vR}});var LR=K((zve,SR)=>{"use strict";var l1=zr(),o1=Hr(),ca=Fe(),Kae=ba(),Qae=Er(),Gl=tt(),$ae=br(),s1=pt().tickText,_R=Fc(),jae=_R.recordMinTextSize,ene=_R.clearMinTextSize,A3=i1(),Eu=n1(),rne=yc(),wR=zc(),tne=wR.text,ane=wR.textposition,nne=Ti().appendArrayPointValue,Oa=rne.TEXTPAD;function ine(e){return e.id}function lne(e){if(e.ids)return ine}function k3(e){return(e>0)-(e<0)}function Oi(e,r){return e0}function sne(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},ene("bar",s));var f=ca.makeTraceGroups(a,t,"trace bars").each(function(v){var h=l1.select(this),d=v[0].trace,m=v[0].t,y=d.type==="waterfall",g=d.type==="funnel",_=d.type==="histogram",T=d.type==="bar",w=T||g,b=0;y&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var M=d.orientation==="h",S=MR(n),k=ca.ensureSingle(h,"g","points"),q=lne(d),D=k.selectAll("g.point").data(ca.identity,q);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(z,F){var O=l1.select(this),I=one(z,l,o,M),V=I[0][0],J=I[0][1],G=I[1][0],U=I[1][1],H=(M?J-V:U-G)===0;H&&w&&Eu.getLineWidth(d,z)&&(H=!1),H||(H=!o1(V)||!o1(J)||!o1(G)||!o1(U)),z.isBlank=H,H&&(M?J=V:U=G),b&&!H&&(M?(V-=Oi(V,J)*b,J+=Oi(V,J)*b):(G-=Oi(G,U)*b,U+=Oi(G,U)*b));var Q,Z;if(d.type==="waterfall"){if(!H){var ne=d[z.dir].marker;Q=ne.line.width,Z=ne.color}}else Q=Eu.getLineWidth(d,z),Z=z.mc||d.marker.color;function ce(ie){var xe=l1.round(Q/2%1,2);return n.gap===0&&n.groupgap===0?l1.round(Math.round(ie)-xe,2):ie}function ye(ie,xe,Ke){return Ke&&ie===xe?ie:Math.abs(ie-xe)>=2?ce(ie):ie>xe?Math.ceil(ie):Math.floor(ie)}var Ce=Qae.opacity(Z),re=Ce<1||Q>.01?ce:ye;e._context.staticPlot||(V=re(V,J,M),J=re(J,V,M),G=re(G,U,!M),U=re(U,G,!M));var Se=M?l.c2p:o.c2p,pe;z.s0>0?pe=z._sMax:z.s0<0?pe=z._sMin:pe=z.s1>0?z._sMax:z._sMin;function be(ie,xe){if(!ie)return 0;var Ke=Math.abs(M?U-G:J-V),hr=Math.abs(M?J-V:U-G),ze=re(Math.abs(Se(pe,!0)-Se(0,!0))),Me=z.hasB?Math.min(Ke/2,hr/2):Math.min(Ke/2,ze),ke;if(xe==="%"){var Oe=Math.min(50,ie);ke=Ke*(Oe/100)}else ke=ie;return re(Math.max(Math.min(ke,Me),0))}var Ae=T||_?be(m.cornerradiusvalue,m.cornerradiusform):0,ge,B,$="M"+V+","+G+"V"+U+"H"+J+"V"+G+"Z",Y=0;if(Ae&&z.s){var le=k3(z.s0)===0||k3(z.s)===k3(z.s0)?z.s1:z.s0;if(Y=re(z.hasB?0:Math.abs(Se(pe,!0)-Se(le,!0))),Y0?Math.sqrt(Y*(2*Ae-Y)):0,Ve=he>0?Math.max:Math.min;ge="M"+V+","+G+"V"+(U-Ee*me)+"H"+Ve(J-(Ae-Y)*he,V)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+J+","+(U-Ae*me-Le)+"V"+(G+Ae*me+Le)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+Ve(J-(Ae-Y)*he,V)+","+(G+Ee*me)+"Z"}else if(z.hasB)ge="M"+(V+Ae*he)+","+G+"A "+Ae+","+Ae+" 0 0 "+Re+" "+V+","+(G+Ae*me)+"V"+(U-Ae*me)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+(V+Ae*he)+","+U+"H"+(J-Ae*he)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+J+","+(U-Ae*me)+"V"+(G+Ae*me)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+(J-Ae*he)+","+G+"Z";else{B=Math.abs(U-G)+Y;var Ie=B0?Math.sqrt(Y*(2*Ae-Y)):0,De=me>0?Math.max:Math.min;ge="M"+(V+Ie*he)+","+G+"V"+De(U-(Ae-Y)*me,G)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+(V+Ae*he-Xe)+","+U+"H"+(J-Ae*he+Xe)+"A "+Ae+","+Ae+" 0 0 "+Re+" "+(J-Ie*he)+","+De(U-(Ae-Y)*me,G)+"V"+G+"Z"}}else ge=$}else ge=$;var He=TR(ca.ensureSingle(O,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((J-V)*(U-G))||H&&e._context.staticPlot?"M0,0Z":ge).call(Gl.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&S){var We=Gl.makePointStyleFns(d);Gl.singlePointStyle(z,He,d,We,e)}une(e,r,O,v,F,V,J,G,U,Ae,Y,n,i),r.layerClipId&&Gl.hideOutsideRangePoint(z,O.select("text"),l,o,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;Gl.setClipUrl(h,P?null:r.layerClipId,e)});$ae.getComponentMethod("errorbars","plot")(e,f,r,n)}function une(e,r,t,a,n,i,l,o,s,u,f,v,h){var d=r.xaxis,m=r.yaxis,y=e._fullLayout,g;function _(B,$,Y){var le=ca.ensureSingle(B,"text").text($).attr({class:"bartext bartext-"+g,"text-anchor":"middle","data-notex":1}).call(Gl.font,Y).call(Kae.convertToTspans,e);return le}var T=a[0].trace,w=T.orientation==="h",b=vne(y,a,n,d,m);g=hne(T,n);var M=v.mode==="stack"||v.mode==="relative",S=a[n],k=!M||S._outmost,q=S.hasB,D=u&&u-f>Oa;if(!b||g==="none"||(S.isBlank||i===l||o===s)&&(g==="auto"||g==="inside")){t.select("text").remove();return}var P=y.font,z=A3.getBarColor(a[n],T),F=A3.getInsideTextFont(T,n,P,z),O=A3.getOutsideTextFont(T,n,P),I=T.insidetextanchor||"end",V=t.datum();w?d.type==="log"&&V.s0<=0&&(d.range[0]0&&ce>0,re;D?q?re=as(U-2*u,H,ne,ce,w)||as(U,H-2*u,ne,ce,w):w?re=as(U-(u-f),H,ne,ce,w)||as(U,H-2*(u-f),ne,ce,w):re=as(U,H-(u-f),ne,ce,w)||as(U-2*(u-f),H,ne,ce,w):re=as(U,H,ne,ce,w),Ce&&re?g="inside":(g="outside",Q.remove(),Q=null)}else g="inside";if(!Q){ye=ca.ensureUniformFontSize(e,g==="outside"?O:F),Q=_(t,b,ye);var Se=Q.attr("transform");if(Q.attr("transform",""),Z=Gl.bBox(Q.node()),ne=Z.width,ce=Z.height,Q.attr("transform",Se),ne<=0||ce<=0){Q.remove();return}}var pe=T.textangle,be,Ae;g==="outside"?(Ae=T.constraintext==="both"||T.constraintext==="outside",be=cne(i,l,o,s,Z,{isHorizontal:w,constrained:Ae,angle:pe})):(Ae=T.constraintext==="both"||T.constraintext==="inside",be=CR(i,l,o,s,Z,{isHorizontal:w,constrained:Ae,angle:pe,anchor:I,hasB:q,r:u,overhead:f})),be.fontSize=ye.size,jae(T.type==="histogram"?"bar":T.type,be,y),S.transform=be;var ge=TR(Q,y,v,h);ca.setTransormAndDisplay(ge,be)}function as(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function AR(e){return e==="auto"?0:e}function kR(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function CR(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",v=u==="start",h=i.leftToRight||0,d=(h+1)/2,m=1-d,y=i.hasB,g=i.r,_=i.overhead,T=n.width,w=n.height,b=Math.abs(r-e),M=Math.abs(a-t),S=b>2*Oa&&M>2*Oa?Oa:0;b-=2*S,M-=2*S;var k=AR(s);s==="auto"&&!(T<=b&&w<=M)&&(T>b||w>M)&&(!(T>M||w>b)||TOa){var z=fne(e,r,t,a,q,g,_,l,y);D=z.scale,P=z.pad}else D=1,o&&(D=Math.min(1,b/q.x,M/q.y)),P=0;var F=n.left*m+n.right*d,O=(n.top+n.bottom)/2,I=(e+Oa)*m+(r-Oa)*d,V=(t+a)/2,J=0,G=0;if(v||f){var U=(l?q.x:q.y)/2;g&&(f||y)&&(S+=P);var H=l?Oi(e,r):Oi(t,a);l?v?(I=e+H*S,J=-H*U):(I=r-H*S,J=H*U):v?(V=t+H*S,G=-H*U):(V=a-H*S,G=H*U)}return{textX:F,textY:O,targetX:I,targetY:V,anchorX:J,anchorY:G,scale:D,rotate:k}}function fne(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Oa),f=Math.max(0,Math.abs(a-t)-2*Oa),v=i-Oa,h=l?v-Math.sqrt(v*v-(v-l)*(v-l)):v,d=s?v*2:o?v-l:2*h,m=s?v*2:o?2*h:v-l,y,g,_,T,w;return n.y/n.x>=f/(u-d)?T=f/n.y:n.y/n.x<=(f-m)/u?T=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,g=-2*n.x*(u-v)-n.y*(f/2-v),_=(u-v)*(u-v)+(f/2-v)*(f/2-v)-v*v,T=(-g+Math.sqrt(g*g-4*y*_))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,g=-n.x*(u/2-v)-n.y*(f/2-v),_=(u/2-v)*(u/2-v)+(f/2-v)*(f/2-v)-v*v,T=(-g+Math.sqrt(g*g-4*y*_))/(2*y)):(y=n.x*n.x/4+n.y*n.y,g=-n.x*(u/2-v)-2*n.y*(f-v),_=(u/2-v)*(u/2-v)+(f-v)*(f-v)-v*v,T=(-g+Math.sqrt(g*g-4*y*_))/(2*y)),T=Math.min(1,T),o?w=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*T)/2)*(v-(f-n.y*T)/2)))-l):w=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*T)/2)*(v-(u-n.x*T)/2)))-l),{scale:T,pad:w}}function cne(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,v=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Oa?Oa:0:d=v>2*Oa?Oa:0;var m=1;o&&(m=l?Math.min(1,h/f):Math.min(1,v/u));var y=AR(s),g=kR(n,y),_=(l?g.x:g.y)/2,T=(n.left+n.right)/2,w=(n.top+n.bottom)/2,b=(e+r)/2,M=(t+a)/2,S=0,k=0,q=l?Oi(r,e):Oi(t,a);return l?(b=r-q*d,S=q*_):(M=a+q*d,k=-q*_),{textX:T,textY:w,targetX:b,targetY:M,anchorX:S,anchorY:k,scale:m,rotate:y}}function vne(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=dne(e,r,t,a,n):i.textinfo?o=pne(r,t,a,n):o=Eu.getValue(i.text,t),Eu.coerceString(tne,o)}function hne(e,r){var t=Eu.getValue(e.textposition,r);return Eu.coerceEnumerated(ane,t)}function dne(e,r,t,a,n){var i=r[0].trace,l=ca.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",v,h,d,m;f?(v="y",h=n,d="x",m=a):(v="x",h=a,d="y",m=n);function y(S){return s1(h,h.c2l(S),!0).text}function g(S){return s1(m,m.c2l(S),!0).text}var _=r[t],T={};T.label=_.p,T.labelLabel=T[v+"Label"]=y(_.p);var w=ca.castOption(i,_.i,"text");(w===0||w)&&(T.text=w),T.value=_.s,T.valueLabel=T[d+"Label"]=g(_.s);var b={};nne(b,i,_.i),(o||b.x===void 0)&&(b.x=f?T.value:T.label),(o||b.y===void 0)&&(b.y=f?T.label:T.value),(o||b.xLabel===void 0)&&(b.xLabel=f?T.valueLabel:T.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?T.labelLabel:T.valueLabel),s&&(T.delta=+_.rawS||_.s,T.deltaLabel=g(T.delta),T.final=_.v,T.finalLabel=g(T.final),T.initial=T.final-T.delta,T.initialLabel=g(T.initial)),u&&(T.value=_.s,T.valueLabel=g(T.value),T.percentInitial=_.begR,T.percentInitialLabel=ca.formatPercent(_.begR),T.percentPrevious=_.difR,T.percentPreviousLabel=ca.formatPercent(_.difR),T.percentTotal=_.sumR,T.percenTotalLabel=ca.formatPercent(_.sumR));var M=ca.castOption(i,_.i,"customdata");return M&&(T.customdata=M),ca.texttemplateString({data:[b,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:l})}function pne(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var S=i?a:t;return s1(S,M,!0).text}function u(M){var S=i?t:a;return s1(S,+M,!0).text}var f=n.textinfo,v=e[r],h=f.split("+"),d=[],m,y=function(M){return h.indexOf(M)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(m=ca.castOption(n,v.i,"text"),(m===0||m)&&d.push(m)),l){var g=+v.rawS||v.s,_=v.v,T=_-g;y("initial")&&d.push(u(T)),y("delta")&&d.push(u(g)),y("final")&&d.push(u(_))}if(o){y("value")&&d.push(u(v.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var b=w>1;y("percent initial")&&(m=ca.formatPercent(v.begR),b&&(m+=" of initial"),d.push(m)),y("percent previous")&&(m=ca.formatPercent(v.difR),b&&(m+=" of previous"),d.push(m)),y("percent total")&&(m=ca.formatPercent(v.sumR),b&&(m+=" of total"),d.push(m))}return d.join("
")}SR.exports={plot:sne,toMoveInsideBar:CR}});var RR=K((Nve,PR)=>{"use strict";var Oc=ni(),mne=br(),qR=Er(),yne=Fe().fillText,gne=n1().getLineWidth,C3=pt().hoverLabelText,bne=Gt().BADNUM;function xne(e,r,t,a,n){var i=DR(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=ER(o,s),mne.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function DR(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,v=e.maxSpikeDistance,h,d,m,y,g,_,T;l.orientation==="h"?(h=t,d=r,m="y",y="x",g=V,_=F):(h=r,d=t,m="x",y="y",_=V,g=F);var w=l[m+"period"],b=s||w;function M(re){return k(re,-1)}function S(re){return k(re,1)}function k(re,Se){var pe=re.w;return re[m]+Se*pe/2}function q(re){return re[m+"End"]-re[m+"Start"]}var D=s?M:w?function(re){return re.p-q(re)/2}:function(re){return Math.min(M(re),re.p-o.bardelta/2)},P=s?S:w?function(re){return re.p+q(re)/2}:function(re){return Math.max(S(re),re.p+o.bardelta/2)};function z(re,Se,pe){return n.finiteRange&&(pe=0),Oc.inbox(re-h,Se-h,pe+Math.min(1,Math.abs(Se-re)/T)-1)}function F(re){return z(D(re),P(re),f)}function O(re){return z(M(re),S(re),v)}function I(re){var Se=re[y];if(u){var pe=Math.abs(re.rawS)||0;d>0?Se+=pe:d<0&&(Se-=pe)}return Se}function V(re){var Se=d,pe=re.b,be=I(re);return Oc.inbox(pe-Se,be-Se,f+(be-Se)/(be-pe)-1)}function J(re){var Se=d,pe=re.b,be=I(re);return Oc.inbox(pe-Se,be-Se,v+(be-Se)/(be-pe)-1)}var G=e[m+"a"],U=e[y+"a"];T=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function H(re){return(g(re)+_(re))/2}var Q=Oc.getDistanceFunction(a,g,_,H);if(Oc.getClosest(i,Q,e),e.index!==!1&&i[e.index].p!==bne){b||(D=function(re){return Math.min(M(re),re.p-o.bargroupwidth/2)},P=function(re){return Math.max(S(re),re.p+o.bargroupwidth/2)});var Z=e.index,ne=i[Z],ce=l.base?ne.b+ne.s:ne.s;e[y+"0"]=e[y+"1"]=U.c2p(ne[y],!0),e[y+"LabelVal"]=ce;var ye=o.extents[o.extents.round(ne.p)];e[m+"0"]=G.c2p(s?D(ne):ye[0],!0),e[m+"1"]=G.c2p(s?P(ne):ye[1],!0);var Ce=ne.orig_p!==void 0;return e[m+"LabelVal"]=Ce?ne.orig_p:ne.p,e.labelLabel=C3(G,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=C3(U,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=C3(U,ne.b,l[y+"hoverformat"]),e.spikeDistance=(J(ne)+O(ne))/2,e[m+"Spike"]=G.c2p(ne.p,!0),yne(ne,l,e),e.hovertemplate=l.hovertemplate,e}}function ER(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=gne(e,r);if(qR.opacity(t))return t;if(qR.opacity(a)&&n)return a}PR.exports={hoverPoints:xne,hoverOnBars:DR,getTraceColor:ER}});var NR=K((Fve,zR)=>{"use strict";zR.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var IR=K((Ive,FR)=>{"use strict";FR.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";HR.exports={attributes:zc(),layoutAttributes:_3(),supplyDefaults:Nc().supplyDefaults,crossTraceDefaults:Nc().crossTraceDefaults,supplyLayoutDefaults:jP(),calc:lR(),crossTraceCalc:c2().crossTraceCalc,colorbar:d2(),arraysToCalcdata:w3(),plot:LR().plot,style:i1().style,styleOnSelect:i1().styleOnSelect,hoverPoints:RR().hoverPoints,eventData:NR(),selectPoints:IR(),moduleType:"trace",name:"bar",basePlotModule:qd(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var YR=K((Ove,BR)=>{"use strict";BR.exports=OR()});var S3=K((Bve,VR)=>{"use strict";var u1=Zn(),wne=Qd().attributes,Tne=ga(),Mne=gi(),{hovertemplateAttrs:Ane,texttemplateAttrs:kne,templatefallbackAttrs:UR}=co(),Wl=Wt().extendFlat,Cne=xi().pattern,f1=Tne({editType:"plot",arrayOk:!0,colorEditType:"plot"});VR.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Mne.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Cne,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Wl({},u1.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Ane({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:UR(),texttemplate:kne({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:UR({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Wl({},f1,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Wl({},f1,{}),outsidetextfont:Wl({},f1,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Wl({},u1.showlegend,{arrayOk:!0}),legend:Wl({},u1.legend,{arrayOk:!0}),legendrank:Wl({},u1.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Wl({},f1,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:wne({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var ZR=K((Yve,XR)=>{"use strict";var Sne=Hr(),Bc=Fe(),Lne=S3(),qne=Qd().defaults,Dne=Nc().handleText,Ene=Fe().coercePattern;function GR(e,r){var t=Bc.isArrayOrTypedArray(e),a=Bc.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function WR(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");Ene(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function Pne(e,r,t,a){function n(T,w){return Bc.coerce(e,r,Lne,T,w)}var i=n("labels"),l=n("values"),o=GR(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,WR(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var v;if(f||(v=n("textinfo",Bc.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||v&&v!=="none"){var h=n("textposition");Dne(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",m=d||h==="outside";m&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else v==="none"&&n("textposition","none");qne(r,a,n);var y=n("hole"),g=n("title.text");if(g){var _=n("title.position",y?"middle center":"top center");!y&&_==="middle center"&&(r.title.position="top center"),Bc.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}XR.exports={handleLabelsAndValues:GR,handleMarkerDefaults:WR,supplyDefaults:Pne}});var L3=K((Uve,JR)=>{"use strict";JR.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var QR=K((Vve,KR)=>{"use strict";var Rne=Fe(),zne=L3();KR.exports=function(r,t){function a(n,i){return Rne.coerce(r,t,zne,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var D3=K((Gve,ez)=>{"use strict";var Nne=Hr(),q3=wn(),Fne=Er(),Ine={};function Hne(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,v;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?y:r.sort;return b&&t.sort(function(M,S){return S.v-M.v}),t[0]&&(t[0].vTotal=m),t}function $R(e){return function(t,a){return!t||(t=q3(t),!t.isValid())?!1:(t=Fne.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function One(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=jR(i,Ine));for(var o=0,s=0;s{"use strict";var Bne=Ti().appendArrayMultiPointValues;rz.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),Bne(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var Mz=K((Xve,Tz)=>{"use strict";var on=zr(),Yne=It(),c1=ni(),sz=Er(),ll=tt(),Ta=Fe(),Une=Ta.strScale,az=Ta.strTranslate,E3=ba(),uz=Fc(),Vne=uz.recordMinTextSize,Gne=uz.clearMinTextSize,fz=yc().TEXTPAD,wr=Q0(),v1=tz(),nz=Fe().isValidTextValue;function Wne(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Gne("pie",a),hz(r,e),xz(r,n);var i=Ta.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=on.select(this),s=l[0],u=s.trace;rie(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=on.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var v=[[[],[]],[[],[]]],h=!1;f.each(function(b,M){if(b.hidden){on.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,v[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var S=s.cx,k=s.cy,q=on.select(this),D=q.selectAll("path.surface").data([b]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(cz,e,l),u.pull){var P=+wr.castOption(u.pull,b.pts)||0;P>0&&(S+=P*b.pxmid[0],k+=P*b.pxmid[1])}b.cxFinal=S,b.cyFinal=k;function z(U,H,Q,Z){var ne=Z*(H[0]-U[0]),ce=Z*(H[1]-U[1]);return"a"+Z*s.r+","+Z*s.r+" 0 "+b.largeArc+(Q?" 1 ":" 0 ")+ne+","+ce}var F=u.hole;if(b.v===s.vTotal){var O="M"+(S+b.px0[0])+","+(k+b.px0[1])+z(b.px0,b.pxmid,!0,1)+z(b.pxmid,b.px0,!0,1)+"Z";F?D.attr("d","M"+(S+F*b.px0[0])+","+(k+F*b.px0[1])+z(b.px0,b.pxmid,!1,F)+z(b.pxmid,b.px0,!1,F)+"Z"+O):D.attr("d",O)}else{var I=z(b.px0,b.px1,!0,1);if(F){var V=1-F;D.attr("d","M"+(S+F*b.px1[0])+","+(k+F*b.px1[1])+z(b.px1,b.px0,!1,F)+"l"+V*b.px0[0]+","+V*b.px0[1]+I+"Z")}else D.attr("d","M"+S+","+k+"l"+b.px0[0]+","+b.px0[1]+I+"Z")}_z(e,b,s);var J=wr.castOption(u.textposition,b.pts),G=q.selectAll("g.slicetext").data(b.text&&J!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var U=Ta.ensureSingle(on.select(this),"text","",function(re){re.attr("data-notex",1)}),H=Ta.ensureUniformFontSize(e,J==="outside"?Zne(u,b,a.font):vz(u,b,a.font));U.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(ll.font,H).call(E3.convertToTspans,e);var Q=ll.bBox(U.node()),Z;if(J==="outside")Z=oz(Q,b);else if(Z=dz(Q,b,s),J==="auto"&&Z.scale<1){var ne=Ta.ensureUniformFontSize(e,u.outsidetextfont);U.call(ll.font,ne),Q=ll.bBox(U.node()),Z=oz(Q,b)}var ce=Z.textPosAngle,ye=ce===void 0?b.pxmid:h1(s.r,ce);if(Z.targetX=S+ye[0]*Z.rCenter+(Z.x||0),Z.targetY=k+ye[1]*Z.rCenter+(Z.y||0),wz(Z,Q),Z.outside){var Ce=Z.targetY;b.yLabelMin=Ce-Q.height/2,b.yLabelMid=Ce,b.yLabelMax=Ce+Q.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}Z.fontSize=H.size,Vne(u.type,Z,a),l[M].transform=Z,Ta.setTransormAndDisplay(U,Z)})});var d=on.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=Ta.ensureSingle(on.select(this),"text","",function(k){k.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=Ta.templateString(M,u._meta)),b.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(ll.font,u.title.font).call(E3.convertToTspans,e);var S;u.title.position==="middle center"?S=Qne(s):S=gz(s,n),b.attr("transform",az(S.x,S.y)+Une(Math.min(1,S.scale))+az(S.tx,S.ty))}),h&&jne(v,u),Xne(f,u),h&&u.automargin){var m=ll.bBox(o.node()),y=u.domain,g=n.w*(y.x[1]-y.x[0]),_=n.h*(y.y[1]-y.y[0]),T=(.5*g-s.r)/n.w,w=(.5*_-s.r)/n.h;Yne.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-T,xr:y.x[1]+T,yb:y.y[0]-w,yt:y.y[1]+w,l:Math.max(s.cx-s.r-m.left,0),r:Math.max(m.right-(s.cx+s.r),0),b:Math.max(m.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-m.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=on.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function Xne(e,r){e.each(function(t){var a=on.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Ta.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Ta.ensureSingle(a,"path","textline").call(sz.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function cz(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var v=f.hoverinfo;if(Array.isArray(v)&&(v=c1.castHoverinfo({hoverinfo:[wr.castOption(v,s.pts)],_module:l._module},u,0)),v==="all"&&(v="label+text+value+percent+name"),f.hovertemplate||v!=="none"&&v!=="skip"&&v){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),m=i+s.pxmid[1]*(1-h),y=u.separators,g=[];if(v&&v.indexOf("label")!==-1&&g.push(s.label),s.text=wr.castOption(f.hovertext||f.text,s.pts),v&&v.indexOf("text")!==-1){var _=s.text;Ta.isValidTextValue(_)&&g.push(_)}s.value=s.v,s.valueLabel=wr.formatPieValue(s.v,y),v&&v.indexOf("value")!==-1&&g.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=wr.formatPiePercent(s.percent,y),v&&v.indexOf("percent")!==-1&&g.push(s.percentLabel);var T=f.hoverlabel,w=T.font,b=[];c1.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:m,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:m-h*a.r,_y1:o?i+s.BL[1]:m+h*a.r,text:g.join("
"),name:f.hovertemplate||v.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:wr.castOption(T.bgcolor,s.pts)||s.color,borderColor:wr.castOption(T.bordercolor,s.pts),fontFamily:wr.castOption(w.family,s.pts),fontSize:wr.castOption(w.size,s.pts),fontColor:wr.castOption(w.color,s.pts),nameLength:wr.castOption(T.namelength,s.pts),textAlign:wr.castOption(T.align,s.pts),hovertemplate:wr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[v1(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[v1(s,f)],event:on.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=on.select(this).datum();l._hasHoverEvent&&(s.originalEvent=on.event,r.emit("plotly_unhover",{points:[v1(v,f)],event:on.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(c1.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[v1(s,f)],c1.click(r,on.event))})}function Zne(e,r,t){var a=wr.castOption(e.outsidetextfont.color,r.pts)||wr.castOption(e.textfont.color,r.pts)||t.color,n=wr.castOption(e.outsidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.outsidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.outsidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.outsidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.outsidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.outsidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.outsidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.outsidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function vz(e,r,t){var a=wr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=wr.castOption(e._input.textfont.color,r.pts));var n=wr.castOption(e.insidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.insidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.insidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.insidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.insidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.insidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.insidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.insidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||sz.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function hz(e,r){for(var t,a,n=0;n=-4;T-=2)_(Math.PI*T,"tan");for(T=4;T>=-4;T-=2)_(Math.PI*(T+1),"tan")}if(v||d){for(T=4;T>=-4;T-=2)_(Math.PI*(T+1.5),"rad");for(T=4;T>=-4;T-=2)_(Math.PI*(T+.5),"rad")}}if(o||m||v){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(g={scale:n*a*2/w,rCenter:1-n,rotate:0},g.textPosAngle=(r.startangle+r.stopangle)/2,g.scale>=1)return g;y.push(g)}(m||d)&&(g=iz(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g)),(m||h)&&(g=lz(e,a,l,s,u),g.textPosAngle=(r.startangle+r.stopangle)/2,y.push(g));for(var b=0,M=0,S=0;S=1)break}return y[b]}function Jne(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Qne(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function gz(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=bz(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=$ne(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=P3(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function $ne(e,r){return e/(r===void 0?1:r)}function P3(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function bz(e){var r=e.pull;if(!r)return 0;var t;if(Ta.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function jne(e,r){var t,a,n,i,l,o,s,u,f,v,h,d,m;function y(w,b){return w.pxmid[1]-b.pxmid[1]}function g(w,b){return b.pxmid[1]-w.pxmid[1]}function _(w,b){b||(b={});var M=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),S=a?w.yLabelMin:w.yLabelMax,k=a?w.yLabelMax:w.yLabelMin,q=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-S,P,z,F,O,I,V;if(D*s>0&&(w.labelExtraY=D),!!Ta.isArrayOrTypedArray(r.pull))for(z=0;z=(wr.castOption(r.pull,F.pts)||0))&&((w.pxmid[1]-F.pxmid[1])*s>0?(O=F.cyFinal+l(F.px0[1],F.px1[1]),D=O-S-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(k+w.labelExtraY-q)*s>0&&(P=3*o*Math.abs(z-v.indexOf(w)),I=F.cxFinal+i(F.px0[0],F.px1[0]),V=I+P-(w.cxFinal+w.pxmid[0])-w.labelExtraX,V*o>0&&(w.labelExtraX+=V)))}for(a=0;a<2;a++)for(n=a?y:g,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],v=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Kne(u,r))}function h1(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function _z(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),v=s("value"),h=s("percent"),d=a.separators,m;if(m=u?[r.label]:[],f){var y=wr.getFirstFilled(n.text,r.pts);nz(y)&&m.push(y)}v&&m.push(wr.formatPieValue(r.v,d)),h&&m.push(wr.formatPiePercent(r.v/t.vTotal,d)),r.text=m.join("
")}function g(b){return{label:b.label,value:b.v,valueLabel:wr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:wr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:Ta.castOption(n,b.i,"customdata")}}if(i){var _=Ta.castOption(n,r.i,"texttemplate");if(!_)r.text="";else{var T=g(r),w=wr.getFirstFilled(n.text,r.pts);(nz(w)||w==="")&&(T.text=w),r.text=Ta.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:_})}}}function wz(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}Tz.exports={plot:Wne,formatSliceLabel:_z,transformInsideText:dz,determineInsideTextFont:vz,positionTitleOutside:gz,prerenderTitles:hz,layoutAreas:xz,attachFxHandlers:cz,computeTransform:wz}});var Cz=K((Zve,kz)=>{"use strict";var Az=zr(),tie=$0(),aie=Fc().resizeText;kz.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");aie(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=Az.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){Az.select(this).call(tie,o,i,r)})})}});var Lz=K(Pu=>{"use strict";var Sz=It();Pu.name="pie";Pu.plot=function(e,r,t,a){Sz.plotBasePlot(Pu.name,e,r,t,a)};Pu.clean=function(e,r,t,a){Sz.cleanBasePlot(Pu.name,e,r,t,a)}});var Dz=K((Kve,qz)=>{"use strict";qz.exports={attributes:S3(),supplyDefaults:ZR().supplyDefaults,supplyLayoutDefaults:QR(),layoutAttributes:L3(),calc:D3().calc,crossTraceCalc:D3().crossTraceCalc,plot:Mz().plot,style:Cz(),styleOne:$0(),moduleType:"trace",name:"pie",basePlotModule:Lz(),categories:["pie-like","pie","showLegend"],meta:{}}});var Pz=K((Qve,Ez)=>{"use strict";Ez.exports=Dz()});var La=K(($ve,zz)=>{"use strict";var Rz=Object.getOwnPropertySymbols,nie=Object.prototype.hasOwnProperty,iie=Object.prototype.propertyIsEnumerable;function lie(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function oie(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}zz.exports=oie()?Object.assign:function(e,r){for(var t,a=lie(e),n,i=1;i{var p1=La();function Nz(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}p1(Nz.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function R3(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d1(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}p1(R3.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Pr.local.differentCalendars||Pr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+d1(Math.abs(this.year()),4)+"-"+d1(this.month(),2)+"-"+d1(this.day(),2)}});function z3(){this.shortYearCutoff="+10"}p1(z3.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new R3(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+d1(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lv-1+f.minMonth;)i++,l-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Pr=Fz.exports=new Nz;Pr.cdate=R3;Pr.baseCalendar=z3;Pr.calendars.gregorian=N3});var Iz=K(()=>{var F3=La(),va=qa();F3(va.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});va.local=va.regionalOptions[""];F3(va.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});F3(va.baseCalendar.prototype,{UNIX_EPOCH:va.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:va.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw va.local.invalidFormat||va.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,M){for(var S=1;w+S1},f=function(b,M,S,k){var q=""+M;if(u(b,k))for(;q.length1},T=function(F,O){var I=_(F,O),V=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],J=new RegExp("^-?\\d{1,"+V+"}"),G=r.substring(q).match(J);if(!G)throw(va.local.missingNumberAt||va.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=G[0].length,parseInt(G[0],10)},w=this,b=function(){if(typeof o=="function"){_("m");var F=o.call(w,r.substring(q));return q+=F.length,F}return T("m")},M=function(F,O,I,V){for(var J=_(F,V)?I:O,G=0;G-1){h=1,d=m;for(var z=this.daysInMonth(v,h);d>z;z=this.daysInMonth(v,h))h++,d-=z}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(v){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Hz=K(()=>{var Xl=qa(),sie=La(),I3=Xl.instance();function m1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m1.prototype=new Xl.baseCalendar;sie(m1.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(fie);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(cie);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(vie);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Xl.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Xl.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Xl.local.invalidyear),n=Jl[a-Jl[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=I3.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Zl[e-Zl[0]],a=t>>13,n=a?12:11;if(r>n)throw Xl.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Xl.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=die(e,i,t,n);return I3.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=I3.fromJD(e),t=hie(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(uie),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(m1.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),v=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);v!==u&&o.month(v)}return o}});var uie=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,fie=/^\d?\d[iI]?/m,cie=/^闰?十?[一二三四五六七八九]?月/m,vie=/^闰?十?[一二三四五六七八九]?/m;Xl.calendars.chinese=m1;var Zl=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Jl=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function hie(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Jl[n.year-Jl[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Jl[i.year-Jl[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,y=new Date(v,h-1,d),g=new Date(n.year,n.month-1,n.day);m=Math.round((g-y)/(24*3600*1e3));var _=Zl[i.year-Zl[0]],T;for(T=0;T<13;T++){var w=_&1<<12-T?30:29;if(m>13;return!b||T=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var v;v=l.day-1;var h=Zl[l.year-Zl[0]],d=h>>13,m;d&&(l.month>d||l.isIntercalary)?m=l.month:m=l.month-1;for(var y=0;y>9&4095,w=_>>5&15,b=_&31,M=new Date(T,w-1,b+v);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var Oz=K(()=>{var ns=qa(),pie=La();function H3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H3.prototype=new ns.baseCalendar;pie(H3.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ns.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ns.local.invalidYear||ns.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ns.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,ns.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});ns.calendars.coptic=H3});var Bz=K(()=>{var ol=qa(),mie=La();function O3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O3.prototype=new ol.baseCalendar;mie(O3.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ol.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ol.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ol.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ol.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ol.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ol.local.invalidDate);return{century:yie[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,ol.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var yie={20:"Fruitbat",21:"Anchovy"};ol.calendars.discworld=O3});var Yz=K(()=>{var is=qa(),gie=La();function B3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B3.prototype=new is.baseCalendar;gie(B3.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,is.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,is.local.invalidYear||is.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,is.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,is.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});is.calendars.ethiopian=B3});var Uz=K(()=>{var Kl=qa(),bie=La();function Y3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y3.prototype=new Kl.baseCalendar;bie(Y3.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,y1(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Kl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&y1(this.daysInYear(e),10)===5?30:r===9&&y1(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Kl.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Kl.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function y1(e,r){return e-r*Math.floor(e/r)}Kl.calendars.hebrew=Y3});var Vz=K(()=>{var Yc=qa(),xie=La();function U3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U3.prototype=new Yc.baseCalendar;xie(U3.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yc.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Yc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Yc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Yc.calendars.islamic=U3});var Gz=K(()=>{var Uc=qa(),_ie=La();function V3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V3.prototype=new Uc.baseCalendar;_ie(V3.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Uc.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Uc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});Uc.calendars.julian=V3});var Xz=K(()=>{var Yn=qa(),wie=La();function W3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W3.prototype=new Yn.baseCalendar;wie(W3.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yn.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yn.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yn.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Yn.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yn.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Yn.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Yn.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Yn.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Yn.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=G3(e+8+340,365);return[Math.floor(r/20)+1,G3(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Wz(e+20,20),Wz(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Yn.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function G3(e,r){return e-r*Math.floor(e/r)}function Wz(e,r){return G3(e-1,r)+1}Yn.calendars.mayan=W3});var Jz=K(()=>{var ls=qa(),Tie=La();function X3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X3.prototype=new ls.baseCalendar;var Zz=ls.instance("gregorian");Tie(X3.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear||ls.regionalOptions[""].invalidYear);return Zz.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ls.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,ls.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});ls.calendars.nanakshahi=X3});var Kz=K(()=>{var os=qa(),Mie=La();function Z3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z3.prototype=new os.baseCalendar;Mie(Z3.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,os.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,os.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,os.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=os.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=os.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Ru=qa(),Aie=La();function b1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function g1(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}b1.prototype=new Ru.baseCalendar;Aie(b1.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ru.local.invalidYear);return g1(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ru.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Ru.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,g1(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Ru.calendars.persian=b1;Ru.calendars.jalali=b1});var $z=K(()=>{var ss=qa(),kie=La(),x1=ss.instance();function J3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J3.prototype=new ss.baseCalendar;kie(J3.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ss.local.invalidYear),t=this._t2gYear(r.year());return x1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ss.local.invalidYear),n=this._t2gYear(a.year());return x1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ss.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,ss.local.invalidDate),n=this._t2gYear(a.year());return x1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=x1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});ss.calendars.taiwan=J3});var jz=K(()=>{var us=qa(),Cie=La(),_1=us.instance();function K3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K3.prototype=new us.baseCalendar;Cie(K3.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,us.local.invalidYear),t=this._t2gYear(r.year());return _1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,us.local.invalidYear),n=this._t2gYear(a.year());return _1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,us.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,us.local.invalidDate),n=this._t2gYear(a.year());return _1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=_1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});us.calendars.thai=K3});var eN=K(()=>{var fs=qa(),Sie=La();function Q3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q3.prototype=new fs.baseCalendar;Sie(Q3.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,fs.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,fs.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ql[n]-Ql[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,fs.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ql[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Ql[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=fs.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=fs.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});fs.calendars.ummalqura=Q3;var Ql=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var tN=K((q0e,rN)=>{"use strict";rN.exports=qa();Iz();Hz();Oz();Bz();Yz();Uz();Vz();Gz();Xz();Jz();Kz();Qz();$z();jz();eN()});var uN=K((D0e,sN)=>{"use strict";var nN=tN(),Vc=Fe(),iN=Gt(),Lie=iN.EPOCHJD,qie=iN.ONEDAY,e5={valType:"enumerated",values:Vc.sortObjectKeys(nN.calendars),editType:"calc",dflt:"gregorian"},lN=function(e,r,t,a){var n={};return n[t]=e5,Vc.coerce(e,r,n,t,a)},Die=function(e,r,t,a){for(var n=0;n{"use strict";fN.exports=uN()});var Fie=K((P0e,hN)=>{var vN=zP();vN.register([YR(),Pz(),cN()]);hN.exports=vN});return Fie();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-cartesian.js b/dist/plotly-cartesian.js index 264d6a42af2..f0e12fa9b60 100644 --- a/dist/plotly-cartesian.js +++ b/dist/plotly-cartesian.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian) v3.6.0 +* plotly.js (cartesian) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -35,14 +35,18 @@ var Plotly = (() => { }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; // src/version.js var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -78,7 +82,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -105,7 +109,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8131,7 +8135,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8371,7 +8375,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8488,7 +8492,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8533,7 +8537,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9936,7 +9940,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9955,7 +9959,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color) { return !!matchers.CSS_UNIT.exec(color); } @@ -13778,9 +13782,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -16033,6 +16037,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -17745,6 +17760,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -17873,24 +17889,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -32790,7 +32813,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -34592,6 +34625,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -36807,6 +36846,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -36816,6 +36889,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -36846,26 +36920,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.disk, - click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.pencil, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -38004,8 +38082,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -46033,6 +46117,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -47044,19 +47129,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); @@ -72266,7 +72350,7 @@ var Plotly = (() => { function numberIsNaN(obj) { return obj !== obj; } - var hexSliceLookupTable = function() { + var hexSliceLookupTable = (function() { const alphabet = "0123456789abcdef"; const table = new Array(256); for (let i = 0; i < 16; ++i) { @@ -72276,7 +72360,7 @@ var Plotly = (() => { } } return table; - }(); + })(); function defineBigIntMethod(fn) { return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn; } @@ -72298,7 +72382,7 @@ var Plotly = (() => { return true; } var obj = {}; - var sym = Symbol("test"); + var sym = /* @__PURE__ */ Symbol("test"); var symObj = Object(sym); if (typeof sym === "string") { return false; @@ -72544,7 +72628,7 @@ var Plotly = (() => { if (typeof origSymbol("foo") !== "symbol") { return false; } - if (typeof Symbol("bar") !== "symbol") { + if (typeof /* @__PURE__ */ Symbol("bar") !== "symbol") { return false; } return hasSymbolSham(); @@ -72801,7 +72885,7 @@ var Plotly = (() => { var throwTypeError = function() { throw new $TypeError(); }; - var ThrowTypeError = $gOPD ? function() { + var ThrowTypeError = $gOPD ? (function() { try { arguments.callee; return throwTypeError; @@ -72812,7 +72896,7 @@ var Plotly = (() => { return throwTypeError; } } - }() : throwTypeError; + })() : throwTypeError; var hasSymbols = require_has_symbols()(); var getProto = require_get_proto(); var $ObjectGPO = require_Object_getPrototypeOf(); @@ -73294,9 +73378,9 @@ var Plotly = (() => { } return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]"; }; - var supportsStandardArguments = function() { + var supportsStandardArguments = (function() { return isStandardArguments(arguments); - }(); + })(); isStandardArguments.isLegacyArguments = isLegacyArguments; module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments; } @@ -74423,7 +74507,7 @@ var Plotly = (() => { function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } - var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0; + var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0; exports.promisify = function promisify(original) { if (typeof original !== "function") throw new TypeError('The "original" argument must be of type Function'); @@ -74589,7 +74673,7 @@ var Plotly = (() => { function copyBuffer(src, target, offset) { Buffer2.prototype.copy.call(src, target, offset); } - module.exports = /* @__PURE__ */ function() { + module.exports = /* @__PURE__ */ (function() { function BufferList() { _classCallCheck(this, BufferList); this.head = null; @@ -74753,7 +74837,7 @@ var Plotly = (() => { } }]); return BufferList; - }(); + })(); } }); @@ -74867,13 +74951,13 @@ var Plotly = (() => { return message(arg1, arg2, arg3); } } - var NodeError = /* @__PURE__ */ function(_Base) { + var NodeError = /* @__PURE__ */ (function(_Base) { _inheritsLoose(NodeError2, _Base); function NodeError2(arg1, arg2, arg3) { return _Base.call(this, getMessage(arg1, arg2, arg3)) || this; } return NodeError2; - }(Base); + })(Base); NodeError.prototype.name = Base.name; NodeError.prototype.code = code; codes[code] = NodeError; @@ -75982,13 +76066,13 @@ var Plotly = (() => { return obj; } var finished = require_end_of_stream(); - var kLastResolve = Symbol("lastResolve"); - var kLastReject = Symbol("lastReject"); - var kError = Symbol("error"); - var kEnded = Symbol("ended"); - var kLastPromise = Symbol("lastPromise"); - var kHandlePromise = Symbol("handlePromise"); - var kStream = Symbol("stream"); + var kLastResolve = /* @__PURE__ */ Symbol("lastResolve"); + var kLastReject = /* @__PURE__ */ Symbol("lastReject"); + var kError = /* @__PURE__ */ Symbol("error"); + var kEnded = /* @__PURE__ */ Symbol("ended"); + var kLastPromise = /* @__PURE__ */ Symbol("lastPromise"); + var kHandlePromise = /* @__PURE__ */ Symbol("handlePromise"); + var kStream = /* @__PURE__ */ Symbol("stream"); function createIterResult(value, done) { return { value, @@ -76760,11 +76844,11 @@ var Plotly = (() => { }); for (var i in stream) { if (this[i] === void 0 && typeof stream[i] === "function") { - this[i] = /* @__PURE__ */ function methodWrap(method) { + this[i] = /* @__PURE__ */ (function methodWrap(method) { return function methodWrapReturnFunction() { return stream[method].apply(stream, arguments); }; - }(i); + })(i); } } for (var n = 0; n < kProxyEvents.length; n++) { @@ -77622,7 +77706,7 @@ var Plotly = (() => { function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } - var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0; + var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0; exports.promisify = function promisify(original) { if (typeof original !== "function") throw new TypeError('The "original" argument must be of type Function'); @@ -77841,7 +77925,7 @@ var Plotly = (() => { return message(arg1, arg2, arg3); } } - var NodeError = /* @__PURE__ */ function(_Base) { + var NodeError = /* @__PURE__ */ (function(_Base) { _inherits(NodeError2, _Base); var _super = _createSuper(NodeError2); function NodeError2(arg1, arg2, arg3) { @@ -77852,7 +77936,7 @@ var Plotly = (() => { return _this; } return _createClass(NodeError2); - }(Base); + })(Base); codes[code] = NodeError; } function oneOf(expected, thing) { @@ -78344,7 +78428,7 @@ var Plotly = (() => { } return "".concat(msg).concat(skipped ? skippedMsg : "", "\n").concat(res).concat(other).concat(end).concat(indicator); } - var AssertionError = /* @__PURE__ */ function(_Error, _inspect$custom) { + var AssertionError = /* @__PURE__ */ (function(_Error, _inspect$custom) { _inherits(AssertionError2, _Error); var _super = _createSuper(AssertionError2); function AssertionError2(options) { @@ -78456,7 +78540,7 @@ var Plotly = (() => { } }]); return AssertionError2; - }(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); + })(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); module.exports = AssertionError; } }); @@ -78528,7 +78612,7 @@ var Plotly = (() => { $webkitStorageInfo: true, $window: true }; - hasAutomationEqualityBug = function() { + hasAutomationEqualityBug = (function() { if (typeof window === "undefined") { return false; } @@ -78546,7 +78630,7 @@ var Plotly = (() => { } } return false; - }(); + })(); equalsConstructorPrototypeIfNotBuggy = function(o) { if (typeof window === "undefined" || !hasAutomationEqualityBug) { return equalsConstructorPrototype(o); @@ -78622,10 +78706,10 @@ var Plotly = (() => { var originalKeys = Object.keys; keysShim.shim = function shimObjectKeys() { if (Object.keys) { - var keysWorksWithArguments = function() { + var keysWorksWithArguments = (function() { var args = Object.keys(arguments); return args && args.length === arguments.length; - }(1, 2); + })(1, 2); if (!keysWorksWithArguments) { Object.keys = function keys(object) { if (isArgs(object)) { @@ -78775,7 +78859,7 @@ var Plotly = (() => { "node_modules/define-properties/index.js"(exports, module) { "use strict"; var keys = require_object_keys(); - var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol"; + var hasSymbols = typeof Symbol === "function" && typeof /* @__PURE__ */ Symbol("foo") === "symbol"; var toStr = Object.prototype.toString; var concat = Array.prototype.concat; var origDefineProperty = Object.defineProperty; diff --git a/dist/plotly-cartesian.min.js b/dist/plotly-cartesian.min.js index 41351921fe4..6d916f1916d 100644 --- a/dist/plotly-cartesian.min.js +++ b/dist/plotly-cartesian.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian - minified) v3.6.0 +* plotly.js (cartesian - minified) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,90 +12,90 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var soe=Object.defineProperty,uoe=Object.defineProperties;var foe=Object.getOwnPropertyDescriptors;var $8=Object.getOwnPropertySymbols;var coe=Object.prototype.hasOwnProperty,voe=Object.prototype.propertyIsEnumerable;var K8=(e,r,t)=>r in e?soe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Qs=(e,r)=>{for(var t in r||(r={}))coe.call(r,t)&&K8(e,t,r[t]);if($8)for(var t of $8(r))voe.call(r,t)&&K8(e,t,r[t]);return e},mp=(e,r)=>uoe(e,foe(r));var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var gp=N(Q8=>{"use strict";Q8.version="3.6.0"});var rM=N((eM,bp)=>{(function(r,t,a){t[r]=t[r]||a(),typeof bp!="undefined"&&bp.exports&&(bp.exports=t[r])})("Promise",typeof window!="undefined"?window:eM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,_,b,w){return Object.defineProperty(T,_,{value:b,writable:!0,configurable:w!==!1})}}catch(x){r=function(_,b,w){return _[b]=w,_}}a=function(){var T,_,b;function w(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){b=new w(M,S),_?_.next=b:T=b,_=b,b=void 0},drain:function(){var M=T;for(T=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(x,T){a.add(x,T),t||(t=i(a.drain))}function l(x){var T,_=typeof x;return x!=null&&(_=="object"||_=="function")&&(T=x.then),typeof T=="function"?T:!1}function s(){for(var x=0;x0&&o(s,_))}catch(b){c.call(new d(_),b)}}}function c(x){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=x,T.state=2,T.chain.length>0&&o(s,T))}function v(x,T,_,b){for(var w=0;w{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,q=new Array(A);A--;)q[A]=g[A];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,q){s.call(this,g,A,q+"")},u.setProperty=function(g,A,q){f.call(this,g,A+"",q)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AC&&(L=C)}else{for(;++A=C){L=C;break}for(;++AC&&(L=C)}return L},e.max=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AL&&(L=C)}else{for(;++A=C){L=C;break}for(;++AL&&(L=C)}return L},e.extent=function(h,g){var A=-1,q=h.length,L,C,O;if(arguments.length===1){for(;++A=C){L=O=C;break}for(;++AC&&(L=C),O=C){L=O=C;break}for(;++AC&&(L=C),O1)return O/(U-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[C],A)<0?q=C+1:L=C}return q},right:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[C],A)>0?L=C:q=C+1}return q}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(q=arguments.length)<3&&(A=h.length,q<2&&(g=0));for(var q=A-g,L,C;q;)C=Math.random()*q--|0,L=h[q+g],h[q+g]=h[C+g],h[C+g]=L;return h},e.permute=function(h,g){for(var A=g.length,q=new Array(A);A--;)q[A]=h[g[A]];return q},e.pairs=function(h){for(var g=0,A=h.length-1,q,L=h[0],C=new Array(A<0?0:A);g=0;)for(O=h[g],A=O.length;--A>=0;)C[--L]=O[A];return C};var x=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var q=[],L=T(x(A)),C=-1,O;if(h*=L,g*=L,A*=L,A<0)for(;(O=h+A*++C)>g;)q.push(O/L);else for(;(O=h+A*++C)=g.length)return L?L.call(h,U):q?U.sort(q):U;for(var $=-1,re=U.length,te=g[J++],we,ke,ae,pe=new b,ge;++$=g.length)return F;var J=[],$=A[U++];return F.forEach(function(re,te){J.push({key:re,values:O(te,U)})}),$?J.sort(function(re,te){return $(re.key,te.key)}):J}return h.map=function(F,U){return C(U,F,0)},h.entries=function(F){return O(C(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return q=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new z;if(h)for(var A=0,q=h.length;A=0&&(q=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(q):this[h].on(q,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(q,null);return this}};function W(h){var g=[],A=new b;function q(){for(var L=g,C=-1,O=L.length,F;++C=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),ie.hasOwnProperty(A)?{space:ie[A],local:h}:h}},ce.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(he(g,h[g]));return this}return this.each(he(h,g))};function he(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function q(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function C(){this.setAttributeNS(h.space,h.local,g)}function O(){var U=g.apply(this,arguments);U==null?this.removeAttribute(h):this.setAttribute(h,U)}function F(){var U=g.apply(this,arguments);U==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,U)}return g==null?h.local?q:A:typeof g=="function"?h.local?F:O:h.local?C:L}function me(h){return h.trim().replace(/\s+/g," ")}ce.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),q=(h=De(h)).length,L=-1;if(g=A.classList){for(;++L=0;)(C=A[q])&&(L&&L!==C.nextSibling&&L.parentNode.insertBefore(C,L),L=C);return this},ce.sort=function(h){h=Ae.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=L+1);!(U=O[g])&&++g0&&(h=h.slice(0,L));var O=Be.get(h);O&&(h=O,C=Ve);function F(){var $=this[q];$&&(this.removeEventListener(h,$,$.$),delete this[q])}function U(){var $=C(g,t(arguments));F.call(this),this.addEventListener(h,this[q]=$,$.$=A),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),re;for(var te in this)if(re=te.match($)){var we=this[te];this.removeEventListener(re[1],we,we.$),delete this[te]}}return L?g?U:F:g?H:J}var Be=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Be.forEach(function(h){"on"+h in a&&Be.remove(h)});function Xe(h,g){return function(A){var q=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=q}}}function Ve(h,g){var A=Xe(h,g);return function(q){var L=this,C=q.relatedTarget;(!C||C!==L&&!(C.compareDocumentPosition(L)&8))&&A.call(L,q)}}var We,lr=0;function rr(h){var g=".dragsuppress-"+ ++lr,A="click"+g,q=e.select(i(h)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(We==null&&(We="onselectstart"in h?!1:Y(h.style,"userSelect")),We){var L=n(h).style,C=L[We];L[We]="none"}return function(O){if(q.on(g,null),We&&(L[We]=C),O){var F=function(){q.on(A,null)};q.on(A,function(){ee(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ie(h,oe())};var er=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ie(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var q=A.createSVGPoint();if(er<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var C=A[0][0].getScreenCTM();er=!(C.f||C.e),A.remove()}}return er?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(h.getScreenCTM().inverse()),[q.x,q.y]}var O=h.getBoundingClientRect();return[g.clientX-O.left-h.clientLeft,g.clientY-O.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=oe().changedTouches),g){for(var q=0,L=g.length,C;q0?1:h<0?-1:0}function et(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function qt(h){return h>1?0:h<-1?Fe:Math.acos(h)}function ct(h){return h>1?ur:h<-1?-ur:Math.asin(h)}function Ot(h){return((h=Math.exp(h))-1/h)/2}function gt(h){return((h=Math.exp(h))+1/h)/2}function wa(h){return((h=Math.exp(2*h))-1)/(h+1)}function Zt(h){return(h=Math.sin(h/2))*h}var Xt=Math.SQRT2,Ia=2,ua=4;e.interpolateZoom=function(h,g){var A=h[0],q=h[1],L=h[2],C=g[0],O=g[1],F=g[2],U=C-A,J=O-q,$=U*U+J*J,re,te;if($0&&(nr=nr.transition().duration(O)),nr.call(Se.event)}function pr(){pe&&pe.domain(ae.range().map(function(nr){return(nr-h.x)/h.k}).map(ae.invert)),Me&&Me.domain(ge.range().map(function(nr){return(nr-h.y)/h.k}).map(ge.invert))}function yr(nr){F++||nr({type:"zoomstart"})}function Er(nr){pr(),nr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function gr(nr){--F||(nr({type:"zoomend"}),A=null)}function kr(){var nr=this,Dr=ke.of(nr,arguments),Pr=0,nt=e.select(i(nr)).on(J,Ba).on($,nn),Bt=xe(e.mouse(nr)),ma=rr(nr);hp.call(nr),yr(Dr);function Ba(){Pr=1,hr(e.mouse(nr),Bt),Er(Dr)}function nn(){nt.on(J,null).on($,null),ma(Pr),gr(Dr)}}function at(){var nr=this,Dr=ke.of(nr,arguments),Pr={},nt=0,Bt,ma=".zoom-"+e.event.changedTouches[0].identifier,Ba="touchmove"+ma,nn="touchend"+ma,mn=[],on=e.select(nr),Sn=rr(nr);qn(),yr(Dr),on.on(U,null).on(te,qn);function Ja(){var $i=e.touches(nr);return Bt=h.k,$i.forEach(function(Ha){Ha.identifier in Pr&&(Pr[Ha.identifier]=xe(Ha))}),$i}function qn(){var $i=e.event.target;e.select($i).on(Ba,$s).on(nn,loe),mn.push($i);for(var Ha=e.event.changedTouches,si=0,ko=Ha.length;si1){var Ks=ui[0],Gl=ui[1],yp=Ks[0]-Gl[0],J8=Ks[1]-Gl[1];nt=yp*yp+J8*J8}}function $s(){var $i=e.touches(nr),Ha,si,ko,ui;hp.call(nr);for(var Ef=0,Ks=$i.length;Ef1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,q=2*A-L;function C(F){return F>360?F-=360:F<0&&(F+=360),F<60?q+(L-q)*F/60:F<180?L:F<240?q+(L-q)*(240-F)/60:q}function O(F){return Math.round(C(F)*255)}return new Yt(O(h+120),O(h),O(h-120))}e.hcl=ft;function ft(h,g,A){return this instanceof ft?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof ft?new ft(h.h,h.c,h.l):h instanceof Kt?Pt(h.l,h.a,h.b):Pt((h=fr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new ft(h,g,A)}var Ea=ft.prototype=new Xr;Ea.brighter=function(h){return new ft(this.h,this.c,Math.min(100,this.l+_t*(arguments.length?h:1)))},Ea.darker=function(h){return new ft(this.h,this.c,Math.max(0,this.l-_t*(arguments.length?h:1)))},Ea.rgb=function(){return Mn(this.h,this.c,this.l).rgb()};function Mn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Kt(A,Math.cos(h*=Mr)*g,Math.sin(h)*g)}e.lab=Kt;function Kt(h,g,A){return this instanceof Kt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Kt?new Kt(h.l,h.a,h.b):h instanceof ft?Mn(h.h,h.c,h.l):fr((h=Yt(h)).r,h.g,h.b):new Kt(h,g,A)}var _t=18,Vt=.95047,Xa=1,ll=1.08883,vt=Kt.prototype=new Xr;vt.brighter=function(h){return new Kt(Math.min(100,this.l+_t*(arguments.length?h:1)),this.a,this.b)},vt.darker=function(h){return new Kt(Math.max(0,this.l-_t*(arguments.length?h:1)),this.a,this.b)},vt.rgb=function(){return kn(this.l,this.a,this.b)};function kn(h,g,A){var q=(h+16)/116,L=q+g/500,C=q-A/200;return L=Ws(L)*Vt,q=Ws(q)*Xa,C=Ws(C)*ll,new Yt(ji(3.2404542*L-1.5371385*q-.4985314*C),ji(-.969266*L+1.8760108*q+.041556*C),ji(.0556434*L-.2040259*q+1.0572252*C))}function Pt(h,g,A){return h>0?new ft(Math.atan2(A,g)*Ir,Math.sqrt(g*g+A*A),h):new ft(NaN,NaN,h)}function Ws(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function yn(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function ji(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Yt;function Yt(h,g,A){return this instanceof Yt?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Yt?new Yt(h.r,h.g,h.b):Kr(""+h,Yt,$t):new Yt(h,g,A)}function Zi(h){return new Yt(h>>16,h>>8&255,h&255)}function Bl(h){return Zi(h)+""}var Hl=Yt.prototype=new Xr;Hl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,q=this.b,L=30;return!g&&!A&&!q?new Yt(L,L,L):(g&&g>4,q=q>>4|q,L=U&240,L=L>>4|L,C=U&15,C=C<<4|C):h.length===7&&(q=(U&16711680)>>16,L=(U&65280)>>8,C=U&255)),g(q,L,C))}function ht(h,g,A){var q=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),C=L-q,O,F,U=(L+q)/2;return C?(F=U<.5?C/(L+q):C/(2-L-q),h==L?O=(g-A)/C+(g0&&U<1?0:O),new $r(O,F,U)}function fr(h,g,A){h=za(h),g=za(g),A=za(A);var q=yn((.4124564*h+.3575761*g+.1804375*A)/Vt),L=yn((.2126729*h+.7151522*g+.072175*A)/Xa),C=yn((.0193339*h+.119192*g+.9503041*A)/ll);return Kt(116*L-16,500*(q-L),200*(L-C))}function za(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function At(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Oa=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Oa.forEach(function(h,g){Oa.set(h,Zi(g))});function Or(h){return typeof h=="function"?h:function(){return h}}e.functor=Or,e.xhr=Xi(B);function Xi(h){return function(g,A,q){return arguments.length===2&&typeof A=="function"&&(q=A,A=null),js(g,A,h,q)}}function js(h,g,A,q){var L={},C=e.dispatch("beforesend","progress","load","error"),O={},F=new XMLHttpRequest,U=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=J:F.onreadystatechange=function(){F.readyState>3&&J()};function J(){var $=F.status,re;if(!$&&une(F)||$>=200&&$<300||$===304){try{re=A.call(L,F)}catch(te){C.error.call(L,te);return}C.load.call(L,re)}else C.error.call(L,F)}return F.onprogress=function($){var re=e.event;e.event=$;try{C.progress.call(L,F)}finally{e.event=re}},L.header=function($,re){return $=($+"").toLowerCase(),arguments.length<2?O[$]:(re==null?delete O[$]:O[$]=re+"",L)},L.mimeType=function($){return arguments.length?(g=$==null?null:$+"",L):g},L.responseType=function($){return arguments.length?(U=$,L):U},L.response=function($){return A=$,L},["get","post"].forEach(function($){L[$]=function(){return L.send.apply(L,[$].concat(t(arguments)))}}),L.send=function($,re,te){if(arguments.length===2&&typeof re=="function"&&(te=re,re=null),F.open($,h,!0),g!=null&&!("accept"in O)&&(O.accept=g+",*/*"),F.setRequestHeader)for(var we in O)F.setRequestHeader(we,O[we]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),U!=null&&(F.responseType=U),te!=null&&L.on("error",te).on("load",function(ke){te(null,ke)}),C.beforesend.call(L,F),F.send(re==null?null:re),L},L.abort=function(){return F.abort(),L},e.rebind(L,C,"on"),q==null?L:L.get(sne(q))}function sne(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function une(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` -]`),q=h.charCodeAt(0);function L(J,$,re){arguments.length<3&&(re=$,$=null);var te=js(J,g,$==null?C:O($),re);return te.row=function(we){return arguments.length?te.response(($=we)==null?C:O(we)):$},te}function C(J){return L.parse(J.responseText)}function O(J){return function($){return L.parse($.responseText,J)}}L.parse=function(J,$){var re;return L.parseRows(J,function(te,we){if(re)return re(te,we-1);var ke=function(ae){for(var pe={},ge=te.length,Me=0;Me=ke)return te;if(Me)return Me=!1,re;var je=ae;if(J.charCodeAt(je)===34){for(var or=je;or++24?(isFinite(g)&&(clearTimeout($d),$d=setTimeout(P3,g)),Jd=0):(Jd=1,NA(P3))}e.timer.flush=function(){IA(),zA()};function IA(){for(var h=Date.now(),g=Zd;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function zA(){for(var h,g=Zd,A=1/0;g;)g.c?(g.t=0;--F)ae.push(L[J[re[F]][2]]);for(F=+we;F1&&et(h[A[q-2]],h[A[q-1]],h[L])<=0;)--q;A[q++]=L}return A.slice(0,q)}function fne(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return K(h,Qd),h};var Qd=e.geom.polygon.prototype=[];Qd.area=function(){for(var h=-1,g=this.length,A,q=this[g-1],L=0;++hde)F=F.L;else if(O=g-dne(F,A),O>de){if(!F.R){q=F;break}F=F.R}else{C>-de?(q=F.P,L=F):O>-de?(q=F,L=F.N):q=L=F;break}var U=GA(h);if(Sf.insert(q,U),!(!q&&!L)){if(q===L){Lf(q),L=GA(q.site),Sf.insert(U,L),U.edge=L.edge=Vv(q.site,U.site),qf(q),qf(L);return}if(!L){U.edge=Vv(q.site,U.site);return}Lf(q),Lf(L);var J=q.site,$=J.x,re=J.y,te=h.x-$,we=h.y-re,ke=L.site,ae=ke.x-$,pe=ke.y-re,ge=2*(te*pe-we*ae),Me=te*te+we*we,Se=ae*ae+pe*pe,xe={x:(pe*Me-we*Se)/ge+$,y:(te*Se-ae*Me)/ge+re};ep(L.edge,J,ke,xe),U.edge=Vv(J,h,null,xe),L.edge=Vv(h,ke,null,xe),qf(q),qf(L)}}function VA(h,g){var A=h.site,q=A.x,L=A.y,C=L-g;if(!C)return q;var O=h.P;if(!O)return-1/0;A=O.site;var F=A.x,U=A.y,J=U-g;if(!J)return F;var $=F-q,re=1/C-1/J,te=$/J;return re?(-te+Math.sqrt(te*te-2*re*($*$/(-2*J)-U+J/2+L-C/2)))/re+q:(q+F)/2}function dne(h,g){var A=h.N;if(A)return VA(A,g);var q=h.site;return q.y===g?q.x:1/0}function YA(h){this.site=h,this.edges=[]}YA.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(WA),h.length};function pne(h){for(var g=h[0][0],A=h[1][0],q=h[0][1],L=h[1][1],C,O,F,U,J=Zs,$=J.length,re,te,we,ke,ae,pe;$--;)if(re=J[$],!(!re||!re.prepare()))for(we=re.edges,ke=we.length,te=0;tede||x(U-O)>de)&&(we.splice(te,0,new rp(xne(re.site,pe,x(F-g)de?{x:g,y:x(C-g)de?{x:x(O-L)de?{x:A,y:x(C-A)de?{x:x(O-q)=-Pe)){var te=U*U+J*J,we=$*$+pe*pe,ke=(pe*te-J*we)/re,ae=(U*we-$*te)/re,pe=ae+F,ge=UA.pop()||new yne;ge.arc=h,ge.site=L,ge.x=ke+O,ge.y=pe+Math.sqrt(ke*ke+ae*ae),ge.cy=pe,h.circle=ge;for(var Me=null,Se=Gv._;Se;)if(ge.y0)){if(ae/=we,we<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=A-F,!(!we&&ae<0)){if(ae/=we,we<0){if(ae>te)return;ae>re&&(re=ae)}else if(we>0){if(ae0)){if(ae/=ke,ke<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=q-U,!(!ke&&ae<0)){if(ae/=ke,ke<0){if(ae>te)return;ae>re&&(re=ae)}else if(ke>0){if(ae0&&(L.a={x:F+re*we,y:U+re*ke}),te<1&&(L.b={x:F+te*we,y:U+te*ke}),L}}}}}}function gne(h){for(var g=kf,A=mne(h[0][0],h[0][1],h[1][0],h[1][1]),q=g.length,L;q--;)L=g[q],(!bne(L,h)||!A(L)||x(L.a.x-L.b.x)=C)return;if($>te){if(!q)q={x:ke,y:O};else if(q.y>=F)return;A={x:ke,y:F}}else{if(!q)q={x:ke,y:F};else if(q.y1)if($>te){if(!q)q={x:(O-ge)/pe,y:O};else if(q.y>=F)return;A={x:(F-ge)/pe,y:F}}else{if(!q)q={x:(F-ge)/pe,y:F};else if(q.y=C)return;A={x:C,y:pe*C+ge}}else{if(!q)q={x:C,y:pe*C+ge};else if(q.x=$&&ge.x<=te&&ge.y>=re&&ge.y<=we?[[$,we],[te,we],[te,re],[$,re]]:[];Me.point=U[ae]}),J}function F(U){return U.map(function(J,$){return{x:Math.round(q(J,$)/de)*de,y:Math.round(L(J,$)/de)*de,i:$}})}return O.links=function(U){return B3(F(U)).edges.filter(function(J){return J.l&&J.r}).map(function(J){return{source:U[J.l.i],target:U[J.r.i]}})},O.triangles=function(U){var J=[];return B3(F(U)).cells.forEach(function($,re){for(var te=$.site,we=$.edges.sort(WA),ke=-1,ae=we.length,pe,ge,Me=we[ae-1].edge,Se=Me.l===te?Me.r:Me.l;++keSe&&(Se=$.x),$.y>xe&&(xe=$.y),we.push($.x),ke.push($.y);else for(ae=0;aeSe&&(Se=je),or>xe&&(xe=or),we.push(je),ke.push(or)}var hr=Se-ge,sr=xe-Me;hr>sr?xe=Me+hr:Se=ge+sr;function pr(gr,kr,at,Qt,pt,nr,Dr,Pr){if(!(isNaN(at)||isNaN(Qt)))if(gr.leaf){var nt=gr.x,Bt=gr.y;if(nt!=null)if(x(nt-at)+x(Bt-Qt)<.01)yr(gr,kr,at,Qt,pt,nr,Dr,Pr);else{var ma=gr.point;gr.x=gr.y=gr.point=null,yr(gr,ma,nt,Bt,pt,nr,Dr,Pr),yr(gr,kr,at,Qt,pt,nr,Dr,Pr)}else gr.x=at,gr.y=Qt,gr.point=kr}else yr(gr,kr,at,Qt,pt,nr,Dr,Pr)}function yr(gr,kr,at,Qt,pt,nr,Dr,Pr){var nt=(pt+Dr)*.5,Bt=(nr+Pr)*.5,ma=at>=nt,Ba=Qt>=Bt,nn=Ba<<1|ma;gr.leaf=!1,gr=gr.nodes[nn]||(gr.nodes[nn]=XA()),ma?pt=nt:Dr=nt,Ba?nr=Bt:Pr=Bt,pr(gr,kr,at,Qt,pt,nr,Dr,Pr)}var Er=XA();if(Er.add=function(gr){pr(Er,gr,+re(gr,++ae),+te(gr,ae),ge,Me,Se,xe)},Er.visit=function(gr){jv(gr,Er,ge,Me,Se,xe)},Er.find=function(gr){return Mne(Er,gr[0],gr[1],ge,Me,Se,xe)},ae=-1,g==null){for(;++aeC||te>O||we=je,sr=A>=or,pr=sr<<1|hr,yr=pr+4;prA&&(C=g.slice(A,C),F[O]?F[O]+=C:F[++O]=C),(q=q[0])===(L=L[0])?F[O]?F[O]+=L:F[++O]=L:(F[++O]=null,U.push({i:O,x:sl(q,L)})),A=G3.lastIndex;return A=0&&!(q=e.interpolators[A](h,g)););return q}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Oa.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?H3:$A:g instanceof Xr?H3:Array.isArray(g)?np:A==="object"&&isNaN(g)?JA:sl)(h,g)}],e.interpolateArray=np;function np(h,g){var A=[],q=[],L=h.length,C=g.length,O=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,q=g>=0?h.slice(g+1):"in";return A=kne.get(A)||KA,q=Sne.get(q)||B,qne(q(A.apply(null,r.call(arguments,1))))};function qne(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function QA(h){return function(g){return 1-h(1-g)}}function e8(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function Lne(h){return h*h}function Cne(h){return h*h*h}function Ene(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function Dne(h){return function(g){return Math.pow(g,h)}}function Rne(h){return 1-Math.cos(h*ur)}function Pne(h){return Math.pow(2,10*(h-1))}function Fne(h){return 1-Math.sqrt(1-h*h)}function Nne(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/Ke*Math.asin(1/h):(h=1,A=g/4),function(q){return 1+h*Math.pow(2,-10*q)*Math.sin((q-A)*Ke/g)}}function Ine(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function zne(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=One;function One(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,q=h.c,L=h.l,C=g.h-A,O=g.c-q,F=g.l-L;return isNaN(O)&&(O=0,q=isNaN(q)?g.c:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(U){return Mn(A+C*U,q+O*U,L+F*U)+""}}e.interpolateHsl=Bne;function Bne(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,q=h.s,L=h.l,C=g.h-A,O=g.s-q,F=g.l-L;return isNaN(O)&&(O=0,q=isNaN(q)?g.s:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(U){return $t(A+C*U,q+O*U,L+F*U)+""}}e.interpolateLab=Hne;function Hne(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,q=h.a,L=h.b,C=g.l-A,O=g.a-q,F=g.b-L;return function(U){return kn(A+C*U,q+O*U,L+F*U)+""}}e.interpolateRound=r8;function r8(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var q=g.transform.baseVal.consolidate()}return new t8(q?q.matrix:Gne)})(h)};function t8(h){var g=[h.a,h.b],A=[h.c,h.d],q=n8(g),L=a8(g,A),C=n8(Une(A,g,-L))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),q.push({i:A.push(Cf(A)+"rotate(",null,")")-2,x:sl(h,g)})):g&&A.push(Cf(A)+"rotate("+g+")")}function Wne(h,g,A,q){h!==g?q.push({i:A.push(Cf(A)+"skewX(",null,")")-2,x:sl(h,g)}):g&&A.push(Cf(A)+"skewX("+g+")")}function jne(h,g,A,q){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(Cf(A)+"scale(",null,",",null,")");q.push({i:L-4,x:sl(h[0],g[0])},{i:L-2,x:sl(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(Cf(A)+"scale("+g+")")}function i8(h,g){var A=[],q=[];return h=e.transform(h),g=e.transform(g),Vne(h.translate,g.translate,A,q),Yne(h.rotate,g.rotate,A,q),Wne(h.skew,g.skew,A,q),jne(h.scale,g.scale,A,q),h=g=null,function(L){for(var C=-1,O=q.length,F;++C0?C=xe:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:C=0})):xe>0&&(g.start({type:"start",alpha:C=xe}),A=Kd(h.tick)),h):C},h.start=function(){var xe,je=we.length,or=ke.length,hr=q[0],sr=q[1],pr,yr;for(xe=0;xe=0;)C.push($=J[U]),$.parent=F,$.depth=F.depth+1;A&&(F.value=0),F.children=J}else A&&(F.value=+A.call(q,F,F.depth)||0),delete F.children;return Mo(L,function(re){var te,we;h&&(te=re.children)&&te.sort(h),A&&(we=re.parent)&&(we.value+=re.value)}),O}return q.sort=function(L){return arguments.length?(h=L,q):h},q.children=function(L){return arguments.length?(g=L,q):g},q.value=function(L){return arguments.length?(A=L,q):A},q.revalue=function(L){return A&&(Xv(L,function(C){C.children&&(C.value=0)}),Mo(L,function(C){var O;C.children||(C.value=+A.call(q,C,C.depth)||0),(O=C.parent)&&(O.value+=C.value)})),L},q};function Zv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=sie,h}function Xv(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(q=L.length))for(var q,L;--q>=0;)A.push(L[q])}function Mo(h,g){for(var A=[h],q=[];(h=A.pop())!=null;)if(q.push(h),(O=h.children)&&(C=O.length))for(var L=-1,C,O;++LL&&(L=F),q.push(F)}for(O=0;Oq&&(A=g,q=L);return A}function pie(h){return h.reduce(yie,0)}function yie(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=gie,q=mie;function L(C,te){for(var F=[],U=C.map(g,this),J=A.call(this,U,te),$=q.call(this,J,U,te),re,te=-1,we=U.length,ke=$.length-1,ae=h?1:1/we,pe;++te0)for(te=-1;++te=J[0]&&pe<=J[1]&&(re=F[e.bisect($,pe,1,ke)-1],re.y+=ae,re.push(C[te]));return F}return L.value=function(C){return arguments.length?(g=C,L):g},L.range=function(C){return arguments.length?(A=Or(C),L):A},L.bins=function(C){return arguments.length?(q=typeof C=="number"?function(O){return u8(O,C)}:Or(C),L):q},L.frequency=function(C){return arguments.length?(h=!!C,L):h},L};function mie(h,g){return u8(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function u8(h,g){for(var A=-1,q=+h[0],L=(h[1]-q)/g,C=[];++A<=g;)C[A]=L*A+q;return C}function gie(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(bie),g=0,A=[1,1],q;function L(C,O){var F=h.call(this,C,O),U=F[0],J=A[0],$=A[1],re=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(U.x=U.y=0,Mo(U,function(we){we.r=+re(we.value)}),Mo(U,v8),g){var te=g*(q?1:Math.max(2*U.r/J,2*U.r/$))/2;Mo(U,function(we){we.r+=te}),Mo(U,v8),Mo(U,function(we){we.r-=te})}return h8(U,J/2,$/2,q?1:1/Math.max(2*U.r/J,2*U.r/$)),F}return L.size=function(C){return arguments.length?(A=C,L):A},L.radius=function(C){return arguments.length?(q=C==null||typeof C=="function"?C:+C,L):q},L.padding=function(C){return arguments.length?(g=+C,L):g},Zv(L,h)};function bie(h,g){return h.value-g.value}function W3(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function f8(h,g){h._pack_next=g,g._pack_prev=h}function c8(h,g){var A=g.x-h.x,q=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+q*q}function v8(h){if(!(g=h.children)||!(te=g.length))return;var g,A=1/0,q=-1/0,L=1/0,C=-1/0,O,F,U,J,$,re,te;function we(xe){A=Math.min(xe.x-xe.r,A),q=Math.max(xe.x+xe.r,q),L=Math.min(xe.y-xe.r,L),C=Math.max(xe.y+xe.r,C)}if(g.forEach(xie),O=g[0],O.x=-O.r,O.y=0,we(O),te>1&&(F=g[1],F.x=F.r,F.y=0,we(F),te>2))for(U=g[2],d8(O,F,U),we(U),W3(O,U),O._pack_prev=U,W3(U,F),F=O._pack_next,J=3;Jpe.x&&(pe=je),je.depth>ge.depth&&(ge=je)});var Me=g(ae,pe)/2-ae.x,Se=A[0]/(pe.x+g(pe,ae)/2+Me),xe=A[1]/(ge.depth||1);Xv(we,function(je){je.x=(je.x+Me)*Se,je.y=je.depth*xe})}return te}function C($){for(var re={A:null,children:[$]},te=[re],we;(we=te.pop())!=null;)for(var ke=we.children,ae,pe=0,ge=ke.length;pe0&&(wie(Aie(ae,$,te),$,je),ge+=je,Me+=je),Se+=ae.m,ge+=we.m,xe+=pe.m,Me+=ke.m;ae&&!Z3(ke)&&(ke.t=ae,ke.m+=Se-Me),we&&!j3(pe)&&(pe.t=we,pe.m+=ge-xe,te=$)}return te}function J($){$.x*=A[0],$.y=$.depth*A[1]}return L.separation=function($){return arguments.length?(g=$,L):g},L.size=function($){return arguments.length?(q=(A=$)==null?J:null,L):q?null:A},L.nodeSize=function($){return arguments.length?(q=(A=$)==null?null:J,L):q?A:null},Zv(L,h)};function p8(h,g){return h.parent==g.parent?1:2}function j3(h){var g=h.children;return g.length?g[0]:h.t}function Z3(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function wie(h,g,A){var q=A/(g.i-h.i);g.c-=q,g.s+=A,h.c+=q,g.z+=A,g.m+=A}function Tie(h){for(var g=0,A=0,q=h.children,L=q.length,C;--L>=0;)C=q[L],C.z+=g,C.m+=g,g+=C.s+(A+=C.c)}function Aie(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=p8,A=[1,1],q=!1;function L(C,O){var F=h.call(this,C,O),U=F[0],J,$=0;Mo(U,function(ae){var pe=ae.children;pe&&pe.length?(ae.x=kie(pe),ae.y=Mie(pe)):(ae.x=J?$+=g(ae,J):0,ae.y=0,J=ae)});var re=y8(U),te=m8(U),we=re.x-g(re,te)/2,ke=te.x+g(te,re)/2;return Mo(U,q?function(ae){ae.x=(ae.x-U.x)*A[0],ae.y=(U.y-ae.y)*A[1]}:function(ae){ae.x=(ae.x-we)/(ke-we)*A[0],ae.y=(1-(U.y?ae.y/U.y:1))*A[1]}),F}return L.separation=function(C){return arguments.length?(g=C,L):g},L.size=function(C){return arguments.length?(q=(A=C)==null,L):q?null:A},L.nodeSize=function(C){return arguments.length?(q=(A=C)!=null,L):q?A:null},Zv(L,h)};function Mie(h){return 1+e.max(h,function(g){return g.y})}function kie(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function y8(h){var g=h.children;return g&&g.length?y8(g[0]):h}function m8(h){var g=h.children,A;return g&&(A=g.length)?m8(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],q=null,L=X3,C=!1,O,F="squarify",U=.5*(1+Math.sqrt(5));function J(ae,pe){for(var ge=-1,Me=ae.length,Se,xe;++ge0;)Me.push(xe=Se[sr-1]),Me.area+=xe.area,F!=="squarify"||(or=te(Me,hr))<=je?(Se.pop(),je=or):(Me.area-=Me.pop().area,we(Me,hr,ge,!1),hr=Math.min(ge.dx,ge.dy),Me.length=Me.area=0,je=1/0);Me.length&&(we(Me,hr,ge,!0),Me.length=Me.area=0),pe.forEach($)}}function re(ae){var pe=ae.children;if(pe&&pe.length){var ge=L(ae),Me=pe.slice(),Se,xe=[];for(J(Me,ge.dx*ge.dy/ae.value),xe.area=0;Se=Me.pop();)xe.push(Se),xe.area+=Se.area,Se.z!=null&&(we(xe,Se.z?ge.dx:ge.dy,ge,!Me.length),xe.length=xe.area=0);pe.forEach(re)}}function te(ae,pe){for(var ge=ae.area,Me,Se=0,xe=1/0,je=-1,or=ae.length;++jeSe&&(Se=Me));return ge*=ge,pe*=pe,ge?Math.max(pe*Se*U/ge,ge/(pe*xe*U)):1/0}function we(ae,pe,ge,Me){var Se=-1,xe=ae.length,je=ge.x,or=ge.y,hr=pe?g(ae.area/pe):0,sr;if(pe==ge.dx){for((Me||hr>ge.dy)&&(hr=ge.dy);++Sege.dx)&&(hr=ge.dx);++Se1);return h+g*q*Math.sqrt(-2*Math.log(C)/C)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A2?Lie:Sie,J=q?Xne:Zne;return L=U(h,g,J,A),C=U(g,h,J,Xs),F}function F(U){return L(U)}return F.invert=function(U){return C(U)},F.domain=function(U){return arguments.length?(h=U.map(Number),O()):h},F.range=function(U){return arguments.length?(g=U,O()):g},F.rangeRound=function(U){return F.range(U).interpolate(r8)},F.clamp=function(U){return arguments.length?(q=U,O()):q},F.interpolate=function(U){return arguments.length?(A=U,O()):A},F.ticks=function(U){return K3(h,U)},F.tickFormat=function(U,J){return d3_scale_linearTickFormat(h,U,J)},F.nice=function(U){return w8(h,U),O()},F.copy=function(){return x8(h,g,A,q)},O()}function _8(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function w8(h,g){return J3(h,b8($3(h,g)[2])),J3(h,b8($3(h,g)[2])),h}function $3(h,g){g==null&&(g=10);var A=ip(h),q=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),C=g/q*L;return C<=.15?L*=10:C<=.35?L*=5:C<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function K3(h,g){return e.range.apply(e,$3(h,g))}var Cie={s:1,g:1,p:1,r:1,e:1};function T8(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function CCe(h,g){var A=T8(g[2]);return h in Cie?Math.abs(A-T8(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return A8(e.scale.linear().domain([0,1]),10,!0,[1,10])};function A8(h,g,A,q){function L(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function C(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function O(F){return h(L(F))}return O.invert=function(F){return C(h.invert(F))},O.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((q=F.map(Number)).map(L)),O):q},O.base=function(F){return arguments.length?(g=+F,h.domain(q.map(L)),O):g},O.nice=function(){var F=J3(q.map(L),A?Math:Eie);return h.domain(F),q=F.map(C),O},O.ticks=function(){var F=ip(q),U=[],J=F[0],$=F[1],re=Math.floor(L(J)),te=Math.ceil(L($)),we=g%1?2:g;if(isFinite(te-re)){if(A){for(;re0;ke--)U.push(C(re)*ke);for(re=0;U[re]$;te--);U=U.slice(re,te)}return U},O.copy=function(){return A8(h.copy(),g,A,q)},_8(O,h)}var Eie={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return M8(e.scale.linear(),1,[0,1])};function M8(h,g,A){var q=lp(g),L=lp(1/g);function C(O){return h(q(O))}return C.invert=function(O){return L(h.invert(O))},C.domain=function(O){return arguments.length?(h.domain((A=O.map(Number)).map(q)),C):A},C.ticks=function(O){return K3(A,O)},C.tickFormat=function(O,F){return d3_scale_linearTickFormat(A,O,F)},C.nice=function(O){return C.domain(w8(A,O))},C.exponent=function(O){return arguments.length?(q=lp(g=O),L=lp(1/g),h.domain(A.map(q)),C):g},C.copy=function(){return M8(h.copy(),g,A)},_8(C,h)}function lp(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return k8([],{t:"range",a:[[]]})};function k8(h,g){var A,q,L;function C(F){return q[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%q.length]}function O(F,U){return e.range(h.length).map(function(J){return F+U*J})}return C.domain=function(F){if(!arguments.length)return h;h=[],A=new b;for(var U=-1,J=F.length,$;++U0?A[C-1]:h[0],Cte?0:1;if($=cr)return U($,ke)+(J?U(J,1-ke):"")+"Z";var ae,pe,ge,Me,Se=0,xe=0,je,or,hr,sr,pr,yr,Er,gr,kr=[];if((Me=(+O.apply(this,arguments)||0)/2)&&(ge=q===sp?Math.sqrt(J*J+$*$):+q.apply(this,arguments),ke||(xe*=-1),$&&(xe=ct(ge/$*Math.sin(Me))),J&&(Se=ct(ge/J*Math.sin(Me)))),$){je=$*Math.cos(re+xe),or=$*Math.sin(re+xe),hr=$*Math.cos(te-xe),sr=$*Math.sin(te-xe);var at=Math.abs(te-re-2*xe)<=Fe?0:1;if(xe&&up(je,or,hr,sr)===ke^at){var Qt=(re+te)/2;je=$*Math.cos(Qt),or=$*Math.sin(Qt),hr=sr=null}}else je=or=0;if(J){pr=J*Math.cos(te-Se),yr=J*Math.sin(te-Se),Er=J*Math.cos(re+Se),gr=J*Math.sin(re+Se);var pt=Math.abs(re-te+2*Se)<=Fe?0:1;if(Se&&up(pr,yr,Er,gr)===1-ke^pt){var nr=(re+te)/2;pr=J*Math.cos(nr),yr=J*Math.sin(nr),Er=gr=null}}else pr=yr=0;if(we>de&&(ae=Math.min(Math.abs($-J)/2,+A.apply(this,arguments)))>.001){pe=J<$^ke?0:1;var Dr=ae,Pr=ae;if(we0?0:1}function fp(h,g,A,q,L){var C=h[0]-g[0],O=h[1]-g[1],F=(L?q:-q)/Math.sqrt(C*C+O*O),U=F*O,J=-F*C,$=h[0]+U,re=h[1]+J,te=g[0]+U,we=g[1]+J,ke=($+te)/2,ae=(re+we)/2,pe=te-$,ge=we-re,Me=pe*pe+ge*ge,Se=A-q,xe=$*we-te*re,je=(ge<0?-1:1)*Math.sqrt(Math.max(0,Se*Se*Me-xe*xe)),or=(xe*ge-pe*je)/Me,hr=(-xe*pe-ge*je)/Me,sr=(xe*ge+pe*je)/Me,pr=(-xe*pe+ge*je)/Me,yr=or-ke,Er=hr-ae,gr=sr-ke,kr=pr-ae;return yr*yr+Er*Er>gr*gr+kr*kr&&(or=sr,hr=pr),[[or-U,hr-J],[or*A/Se,hr*A/Se]]}function R8(){return!0}function P8(h){var g=Mf,A=Uv,q=R8,L=Ji,C=L.key,O=.7;function F(U){var J=[],$=[],re=-1,te=U.length,we,ke=Or(g),ae=Or(A);function pe(){J.push("M",L(h($),O))}for(;++re1?h.join("L"):h+"Z"}function F8(h){return h.join("L")+"Z"}function Bie(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1&&L.push("H",q[0]),L.join("")}function eb(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1){F=g[1],C=h[U],U++,q+="C"+(L[0]+O[0])+","+(L[1]+O[1])+","+(C[0]-F[0])+","+(C[1]-F[1])+","+C[0]+","+C[1];for(var J=2;J9&&(C=A*3/Math.sqrt(C),O[F]=C*q,O[F+1]=C*L));for(F=-1;++F<=U;)C=(h[Math.min(U,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+O[F]*O[F])),g.push([C||0,O[F]*C||0]);return g}function Xie(h){return h.length<3?Ji(h):h[0]+cp(h,Zie(h))}e.svg.line.radial=function(){var h=P8(O8);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function O8(h){for(var g,A=-1,q=h.length,L,C;++AFe)+",1 "+re}function J($,re,te,we){return"Q 0,0 "+we}return C.radius=function($){return arguments.length?(A=Or($),C):A},C.source=function($){return arguments.length?(h=Or($),C):h},C.target=function($){return arguments.length?(g=Or($),C):g},C.startAngle=function($){return arguments.length?(q=Or($),C):q},C.endAngle=function($){return arguments.length?(L=Or($),C):L},C};function Jie(h){return h.radius}e.svg.diagonal=function(){var h=H8,g=U8,A=G8;function q(L,C){var O=h.call(this,L,C),F=g.call(this,L,C),U=(O.y+F.y)/2,J=[O,{x:O.x,y:U},{x:F.x,y:U},F];return J=J.map(A),"M"+J[0]+"C"+J[1]+" "+J[2]+" "+J[3]}return q.source=function(L){return arguments.length?(h=Or(L),q):h},q.target=function(L){return arguments.length?(g=Or(L),q):g},q.projection=function(L){return arguments.length?(A=L,q):A},q};function G8(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=G8,A=h.projection;return h.projection=function(q){return arguments.length?A($ie(g=q)):g},h};function $ie(h){return function(){var g=h.apply(this,arguments),A=g[0],q=g[1]-ur;return[A*Math.cos(q),A*Math.sin(q)]}}e.svg.symbol=function(){var h=Qie,g=Kie;function A(q,L){return(Y8.get(h.call(this,q,L))||V8)(g.call(this,q,L))}return A.type=function(q){return arguments.length?(h=Or(q),A):h},A.size=function(q){return arguments.length?(g=Or(q),A):g},A};function Kie(){return 64}function Qie(){return"circle"}function V8(h){var g=Math.sqrt(h/Fe);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var Y8=e.map({circle:V8,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*W8)),A=g*W8;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/vp),A=g*vp/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/vp),A=g*vp/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=Y8.keys();var vp=Math.sqrt(3),W8=Math.tan(30*Mr);ce.transition=function(h){for(var g=Js||++Z8,A=ob(h),q=[],L,C,O=dp||{time:Date.now(),ease:Ene,delay:0,duration:250},F=-1,U=this.length;++F0;)re[--Me].call(h,ge);if(pe>=1)return O.event&&O.event.end.call(h,h.__data__,g),--C.count?delete C[q]:delete h[A],1}O||(F=L.time,U=Kd(te,0,F),O=C[q]={tween:new b,time:F,timer:U,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++C.count)}e.svg.axis=function(){var h=e.scale.linear(),g=X8,A=6,q=6,L=3,C=[10],O=null,F;function U(J){J.each(function(){var $=e.select(this),re=this.__chart__||h,te=this.__chart__=h.copy(),we=O==null?te.ticks?te.ticks.apply(te,C):te.domain():O,ke=F==null?te.tickFormat?te.tickFormat.apply(te,C):B:F,ae=$.selectAll(".tick").data(we,te),pe=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",de),ge=e.transition(ae.exit()).style("opacity",de).remove(),Me=e.transition(ae.order()).style("opacity",1),Se=Math.max(A,0)+L,xe,je=op(te),or=$.selectAll(".domain").data([0]),hr=(or.enter().append("path").attr("class","domain"),e.transition(or));pe.append("line"),pe.append("text");var sr=pe.select("line"),pr=Me.select("line"),yr=ae.select("text").text(ke),Er=pe.select("text"),gr=Me.select("text"),kr=g==="top"||g==="left"?-1:1,at,Qt,pt,nr;if(g==="bottom"||g==="top"?(xe=toe,at="x",pt="y",Qt="x2",nr="y2",yr.attr("dy",kr<0?"0em":".71em").style("text-anchor","middle"),hr.attr("d","M"+je[0]+","+kr*q+"V0H"+je[1]+"V"+kr*q)):(xe=aoe,at="y",pt="x",Qt="y2",nr="x2",yr.attr("dy",".32em").style("text-anchor",kr<0?"end":"start"),hr.attr("d","M"+kr*q+","+je[0]+"H0V"+je[1]+"H"+kr*q)),sr.attr(nr,kr*A),Er.attr(pt,kr*Se),pr.attr(Qt,0).attr(nr,kr*A),gr.attr(at,0).attr(pt,kr*Se),te.rangeBand){var Dr=te,Pr=Dr.rangeBand()/2;re=te=function(nt){return Dr(nt)+Pr}}else re.rangeBand?re=te:ge.call(xe,te,re);pe.call(xe,re,te),Me.call(xe,te,te)})}return U.scale=function(J){return arguments.length?(h=J,U):h},U.orient=function(J){return arguments.length?(g=J in roe?J+"":X8,U):g},U.ticks=function(){return arguments.length?(C=t(arguments),U):C},U.tickValues=function(J){return arguments.length?(O=J,U):O},U.tickFormat=function(J){return arguments.length?(F=J,U):F},U.tickSize=function(J){var $=arguments.length;return $?(A=+J,q=+arguments[$-1],U):A},U.innerTickSize=function(J){return arguments.length?(A=+J,U):A},U.outerTickSize=function(J){return arguments.length?(q=+J,U):q},U.tickPadding=function(J){return arguments.length?(L=+J,U):L},U.tickSubdivide=function(){return arguments.length&&U},U};var X8="bottom",roe={top:1,right:1,bottom:1,left:1};function toe(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate("+(isFinite(L)?L:A(q))+",0)"})}function aoe(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate(0,"+(isFinite(L)?L:A(q))+")"})}e.svg.brush=function(){var h=le($,"brushstart","brush","brushend"),g=null,A=null,q=[0,0],L=[0,0],C,O,F=!0,U=!0,J=lb[0];function $(ae){ae.each(function(){var pe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ke).on("touchstart.brush",ke),ge=pe.selectAll(".background").data([0]);ge.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),pe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Me=pe.selectAll(".resize").data(J,B);Me.exit().remove(),Me.enter().append("g").attr("class",function(or){return"resize "+or}).style("cursor",function(or){return noe[or]}).append("rect").attr("x",function(or){return/[ew]$/.test(or)?-3:null}).attr("y",function(or){return/^[ns]/.test(or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Me.style("display",$.empty()?"none":null);var Se=e.transition(pe),xe=e.transition(ge),je;g&&(je=op(g),xe.attr("x",je[0]).attr("width",je[1]-je[0]),te(Se)),A&&(je=op(A),xe.attr("y",je[0]).attr("height",je[1]-je[0]),we(Se)),re(Se)})}$.event=function(ae){ae.each(function(){var pe=h.of(this,arguments),ge={x:q,y:L,i:C,j:O},Me=this.__chart__||ge;this.__chart__=ge,Js?e.select(this).transition().each("start.brush",function(){C=Me.i,O=Me.j,q=Me.x,L=Me.y,pe({type:"brushstart"})}).tween("brush:brush",function(){var Se=np(q,ge.x),xe=np(L,ge.y);return C=O=null,function(je){q=ge.x=Se(je),L=ge.y=xe(je),pe({type:"brush",mode:"resize"})}}).each("end.brush",function(){C=ge.i,O=ge.j,pe({type:"brush",mode:"resize"}),pe({type:"brushend"})}):(pe({type:"brushstart"}),pe({type:"brush",mode:"resize"}),pe({type:"brushend"}))})};function re(ae){ae.selectAll(".resize").attr("transform",function(pe){return"translate("+q[+/e$/.test(pe)]+","+L[+/^s/.test(pe)]+")"})}function te(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function we(ae){ae.select(".extent").attr("y",L[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function ke(){var ae=this,pe=e.select(e.event.target),ge=h.of(ae,arguments),Me=e.select(ae),Se=pe.datum(),xe=!/^(n|s)$/.test(Se)&&g,je=!/^(e|w)$/.test(Se)&&A,or=pe.classed("extent"),hr=rr(ae),sr,pr=e.mouse(ae),yr,Er=e.select(i(ae)).on("keydown.brush",at).on("keyup.brush",Qt);if(e.event.changedTouches?Er.on("touchmove.brush",pt).on("touchend.brush",Dr):Er.on("mousemove.brush",pt).on("mouseup.brush",Dr),Me.interrupt().selectAll("*").interrupt(),or)pr[0]=q[0]-pr[0],pr[1]=L[0]-pr[1];else if(Se){var gr=+/w$/.test(Se),kr=+/^n/.test(Se);yr=[q[1-gr]-pr[0],L[1-kr]-pr[1]],pr[0]=q[gr],pr[1]=L[kr]}else e.event.altKey&&(sr=pr.slice());Me.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",pe.style("cursor")),ge({type:"brushstart"}),pt();function at(){e.event.keyCode==32&&(or||(sr=null,pr[0]-=q[1],pr[1]-=L[1],or=2),ee())}function Qt(){e.event.keyCode==32&&or==2&&(pr[0]+=q[1],pr[1]+=L[1],or=0,ee())}function pt(){var Pr=e.mouse(ae),nt=!1;yr&&(Pr[0]+=yr[0],Pr[1]+=yr[1]),or||(e.event.altKey?(sr||(sr=[(q[0]+q[1])/2,(L[0]+L[1])/2]),pr[0]=q[+(Pr[0]{(function(e,r){typeof _p=="object"&&typeof tM!="undefined"?r(_p):(e=e||self,r(e.d3=e.d3||{}))})(_p,function(e){"use strict";var r=new Date,t=new Date;function a(se,Ae,Je,dr){function Ne(Te){return se(Te=arguments.length===0?new Date:new Date(+Te)),Te}return Ne.floor=function(Te){return se(Te=new Date(+Te)),Te},Ne.ceil=function(Te){return se(Te=new Date(Te-1)),Ae(Te,1),se(Te),Te},Ne.round=function(Te){var qe=Ne(Te),Be=Ne.ceil(Te);return Te-qe0))return Xe;do Xe.push(Ve=new Date(+Te)),Ae(Te,Be),se(Te);while(Ve=qe)for(;se(qe),!Te(qe);)qe.setTime(qe-1)},function(qe,Be){if(qe>=qe)if(Be<0)for(;++Be<=0;)for(;Ae(qe,-1),!Te(qe););else for(;--Be>=0;)for(;Ae(qe,1),!Te(qe););})},Je&&(Ne.count=function(Te,qe){return r.setTime(+Te),t.setTime(+qe),se(r),se(t),Math.floor(Je(r,t))},Ne.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?Ne.filter(dr?function(qe){return dr(qe)%Te===0}:function(qe){return Ne.count(0,qe)%Te===0}):Ne}),Ne}var n=a(function(){},function(se,Ae){se.setTime(+se+Ae)},function(se,Ae){return Ae-se});n.every=function(se){return se=Math.floor(se),!isFinite(se)||!(se>0)?null:se>1?a(function(Ae){Ae.setTime(Math.floor(Ae/se)*se)},function(Ae,Je){Ae.setTime(+Ae+Je*se)},function(Ae,Je){return(Je-Ae)/se}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(se){se.setTime(se-se.getMilliseconds())},function(se,Ae){se.setTime(+se+Ae*o)},function(se,Ae){return(Ae-se)/o},function(se){return se.getUTCSeconds()}),v=c.range,d=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o)},function(se,Ae){se.setTime(+se+Ae*l)},function(se,Ae){return(Ae-se)/l},function(se){return se.getMinutes()}),p=d.range,y=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o-se.getMinutes()*l)},function(se,Ae){se.setTime(+se+Ae*s)},function(se,Ae){return(Ae-se)/s},function(se){return se.getHours()}),m=y.range,x=a(function(se){se.setHours(0,0,0,0)},function(se,Ae){se.setDate(se.getDate()+Ae)},function(se,Ae){return(Ae-se-(Ae.getTimezoneOffset()-se.getTimezoneOffset())*l)/u},function(se){return se.getDate()-1}),T=x.range;function _(se){return a(function(Ae){Ae.setDate(Ae.getDate()-(Ae.getDay()+7-se)%7),Ae.setHours(0,0,0,0)},function(Ae,Je){Ae.setDate(Ae.getDate()+Je*7)},function(Ae,Je){return(Je-Ae-(Je.getTimezoneOffset()-Ae.getTimezoneOffset())*l)/f})}var b=_(0),w=_(1),k=_(2),M=_(3),S=_(4),E=_(5),D=_(6),P=b.range,R=w.range,I=k.range,z=M.range,B=S.range,G=E.range,Y=D.range,V=a(function(se){se.setDate(1),se.setHours(0,0,0,0)},function(se,Ae){se.setMonth(se.getMonth()+Ae)},function(se,Ae){return Ae.getMonth()-se.getMonth()+(Ae.getFullYear()-se.getFullYear())*12},function(se){return se.getMonth()}),H=V.range,X=a(function(se){se.setMonth(0,1),se.setHours(0,0,0,0)},function(se,Ae){se.setFullYear(se.getFullYear()+Ae)},function(se,Ae){return Ae.getFullYear()-se.getFullYear()},function(se){return se.getFullYear()});X.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ae){Ae.setFullYear(Math.floor(Ae.getFullYear()/se)*se),Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,Je){Ae.setFullYear(Ae.getFullYear()+Je*se)})};var W=X.range,ee=a(function(se){se.setUTCSeconds(0,0)},function(se,Ae){se.setTime(+se+Ae*l)},function(se,Ae){return(Ae-se)/l},function(se){return se.getUTCMinutes()}),oe=ee.range,le=a(function(se){se.setUTCMinutes(0,0,0)},function(se,Ae){se.setTime(+se+Ae*s)},function(se,Ae){return(Ae-se)/s},function(se){return se.getUTCHours()}),ue=le.range,K=a(function(se){se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCDate(se.getUTCDate()+Ae)},function(se,Ae){return(Ae-se)/u},function(se){return se.getUTCDate()-1}),_e=K.range;function fe(se){return a(function(Ae){Ae.setUTCDate(Ae.getUTCDate()-(Ae.getUTCDay()+7-se)%7),Ae.setUTCHours(0,0,0,0)},function(Ae,Je){Ae.setUTCDate(Ae.getUTCDate()+Je*7)},function(Ae,Je){return(Je-Ae)/f})}var ve=fe(0),ye=fe(1),ce=fe(2),j=fe(3),Q=fe(4),Z=fe(5),ie=fe(6),he=ve.range,me=ye.range,Re=ce.range,De=j.range,Le=Q.range,He=Z.range,Oe=ie.range,Ue=a(function(se){se.setUTCDate(1),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCMonth(se.getUTCMonth()+Ae)},function(se,Ae){return Ae.getUTCMonth()-se.getUTCMonth()+(Ae.getUTCFullYear()-se.getUTCFullYear())*12},function(se){return se.getUTCMonth()}),Ee=Ue.range,ze=a(function(se){se.setUTCMonth(0,1),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCFullYear(se.getUTCFullYear()+Ae)},function(se,Ae){return Ae.getUTCFullYear()-se.getUTCFullYear()},function(se){return se.getUTCFullYear()});ze.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ae){Ae.setUTCFullYear(Math.floor(Ae.getUTCFullYear()/se)*se),Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,Je){Ae.setUTCFullYear(Ae.getUTCFullYear()+Je*se)})};var Ge=ze.range;e.timeDay=x,e.timeDays=T,e.timeFriday=E,e.timeFridays=G,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=w,e.timeMondays=R,e.timeMonth=V,e.timeMonths=H,e.timeSaturday=D,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=P,e.timeThursday=S,e.timeThursdays=B,e.timeTuesday=k,e.timeTuesdays=I,e.timeWednesday=M,e.timeWednesdays=z,e.timeWeek=b,e.timeWeeks=P,e.timeYear=X,e.timeYears=W,e.utcDay=K,e.utcDays=_e,e.utcFriday=Z,e.utcFridays=He,e.utcHour=le,e.utcHours=ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=oe,e.utcMonday=ye,e.utcMondays=me,e.utcMonth=Ue,e.utcMonths=Ee,e.utcSaturday=ie,e.utcSaturdays=Oe,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ve,e.utcSundays=he,e.utcThursday=Q,e.utcThursdays=Le,e.utcTuesday=ce,e.utcTuesdays=Re,e.utcWednesday=j,e.utcWednesdays=De,e.utcWeek=ve,e.utcWeeks=he,e.utcYear=ze,e.utcYears=Ge,Object.defineProperty(e,"__esModule",{value:!0})})});var Df=N((wp,aM)=>{(function(e,r){typeof wp=="object"&&typeof aM!="undefined"?r(wp,sb()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(wp,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var de=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return de.setFullYear(ne.y),de}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var de=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return de.setUTCFullYear(ne.y),de}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,de,Pe){return{y:ne,m:de,d:Pe,H:0,M:0,S:0,L:0}}function i(ne){var de=ne.dateTime,Pe=ne.date,Fe=ne.time,Ke=ne.periods,cr=ne.days,ur=ne.shortDays,Mr=ne.months,Ir=ne.shortMonths,Gr=v(Ke),et=d(Ke),qt=v(cr),ct=d(cr),Ot=v(ur),gt=d(ur),wa=v(Mr),Zt=d(Mr),Xt=v(Ir),Ia=d(Ir),ua={a:Xa,A:ll,b:vt,B:kn,c:null,d:V,e:V,f:oe,H,I:X,j:W,L:ee,m:le,M:ue,p:Pt,q:Ws,Q:qe,s:Be,S:K,u:_e,U:fe,V:ve,w:ye,W:ce,x:null,X:null,y:j,Y:Q,Z,"%":Te},Jt={a:yn,A:ji,b:Yt,B:Zi,c:null,d:ie,e:ie,f:Le,H:he,I:me,j:Re,L:De,m:He,M:Oe,p:Bl,q:Hl,Q:qe,s:Be,S:Ue,u:Ee,U:ze,V:Ge,w:se,W:Ae,x:null,X:null,y:Je,Y:dr,Z:Ne,"%":Te},ar={a:$t,A:ft,b:Ea,B:Mn,c:Kt,d:S,e:S,f:z,H:D,I:D,j:E,L:I,m:M,M:P,p:Rt,q:k,Q:G,s:Y,S:R,u:y,U:m,V:x,w:p,W:T,x:_t,X:Vt,y:b,Y:_,Z:w,"%":B};ua.x=Jr(Pe,ua),ua.X=Jr(Fe,ua),ua.c=Jr(de,ua),Jt.x=Jr(Pe,Jt),Jt.X=Jr(Fe,Jt),Jt.c=Jr(de,Jt);function Jr(mr,Kr){return function(ht){var fr=[],za=-1,At=0,Oa=mr.length,Or,Xi,js;for(ht instanceof Date||(ht=new Date(+ht));++za53)return null;"w"in fr||(fr.w=1),"Z"in fr?(At=a(n(fr.y,0,1)),Oa=At.getUTCDay(),At=Oa>4||Oa===0?r.utcMonday.ceil(At):r.utcMonday(At),At=r.utcDay.offset(At,(fr.V-1)*7),fr.y=At.getUTCFullYear(),fr.m=At.getUTCMonth(),fr.d=At.getUTCDate()+(fr.w+6)%7):(At=t(n(fr.y,0,1)),Oa=At.getDay(),At=Oa>4||Oa===0?r.timeMonday.ceil(At):r.timeMonday(At),At=r.timeDay.offset(At,(fr.V-1)*7),fr.y=At.getFullYear(),fr.m=At.getMonth(),fr.d=At.getDate()+(fr.w+6)%7)}else("W"in fr||"U"in fr)&&("w"in fr||(fr.w="u"in fr?fr.u%7:"W"in fr?1:0),Oa="Z"in fr?a(n(fr.y,0,1)).getUTCDay():t(n(fr.y,0,1)).getDay(),fr.m=0,fr.d="W"in fr?(fr.w+6)%7+fr.W*7-(Oa+5)%7:fr.w+fr.U*7-(Oa+6)%7);return"Z"in fr?(fr.H+=fr.Z/100|0,fr.M+=fr.Z%100,a(fr)):t(fr)}}function $r(mr,Kr,ht,fr){for(var za=0,At=Kr.length,Oa=ht.length,Or,Xi;za=Oa)return-1;if(Or=Kr.charCodeAt(za++),Or===37){if(Or=Kr.charAt(za++),Xi=ar[Or in o?Kr.charAt(za++):Or],!Xi||(fr=Xi(mr,ht,fr))<0)return-1}else if(Or!=ht.charCodeAt(fr++))return-1}return fr}function Rt(mr,Kr,ht){var fr=Gr.exec(Kr.slice(ht));return fr?(mr.p=et[fr[0].toLowerCase()],ht+fr[0].length):-1}function $t(mr,Kr,ht){var fr=Ot.exec(Kr.slice(ht));return fr?(mr.w=gt[fr[0].toLowerCase()],ht+fr[0].length):-1}function ft(mr,Kr,ht){var fr=qt.exec(Kr.slice(ht));return fr?(mr.w=ct[fr[0].toLowerCase()],ht+fr[0].length):-1}function Ea(mr,Kr,ht){var fr=Xt.exec(Kr.slice(ht));return fr?(mr.m=Ia[fr[0].toLowerCase()],ht+fr[0].length):-1}function Mn(mr,Kr,ht){var fr=wa.exec(Kr.slice(ht));return fr?(mr.m=Zt[fr[0].toLowerCase()],ht+fr[0].length):-1}function Kt(mr,Kr,ht){return $r(mr,de,Kr,ht)}function _t(mr,Kr,ht){return $r(mr,Pe,Kr,ht)}function Vt(mr,Kr,ht){return $r(mr,Fe,Kr,ht)}function Xa(mr){return ur[mr.getDay()]}function ll(mr){return cr[mr.getDay()]}function vt(mr){return Ir[mr.getMonth()]}function kn(mr){return Mr[mr.getMonth()]}function Pt(mr){return Ke[+(mr.getHours()>=12)]}function Ws(mr){return 1+~~(mr.getMonth()/3)}function yn(mr){return ur[mr.getUTCDay()]}function ji(mr){return cr[mr.getUTCDay()]}function Yt(mr){return Ir[mr.getUTCMonth()]}function Zi(mr){return Mr[mr.getUTCMonth()]}function Bl(mr){return Ke[+(mr.getUTCHours()>=12)]}function Hl(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Kr=Jr(mr+="",ua);return Kr.toString=function(){return mr},Kr},parse:function(mr){var Kr=Xr(mr+="",!1);return Kr.toString=function(){return mr},Kr},utcFormat:function(mr){var Kr=Jr(mr+="",Jt);return Kr.toString=function(){return mr},Kr},utcParse:function(mr){var Kr=Xr(mr+="",!0);return Kr.toString=function(){return mr},Kr}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,de,Pe){var Fe=ne<0?"-":"",Ke=(Fe?-ne:ne)+"",cr=Ke.length;return Fe+(cr68?1900:2e3),Pe+Fe[0].length):-1}function w(ne,de,Pe){var Fe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(Pe,Pe+6));return Fe?(ne.Z=Fe[1]?0:-(Fe[2]+(Fe[3]||"00")),Pe+Fe[0].length):-1}function k(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+1));return Fe?(ne.q=Fe[0]*3-3,Pe+Fe[0].length):-1}function M(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.m=Fe[0]-1,Pe+Fe[0].length):-1}function S(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.d=+Fe[0],Pe+Fe[0].length):-1}function E(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+3));return Fe?(ne.m=0,ne.d=+Fe[0],Pe+Fe[0].length):-1}function D(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.H=+Fe[0],Pe+Fe[0].length):-1}function P(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.M=+Fe[0],Pe+Fe[0].length):-1}function R(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.S=+Fe[0],Pe+Fe[0].length):-1}function I(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+3));return Fe?(ne.L=+Fe[0],Pe+Fe[0].length):-1}function z(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+6));return Fe?(ne.L=Math.floor(Fe[0]/1e3),Pe+Fe[0].length):-1}function B(ne,de,Pe){var Fe=s.exec(de.slice(Pe,Pe+1));return Fe?Pe+Fe[0].length:-1}function G(ne,de,Pe){var Fe=l.exec(de.slice(Pe));return Fe?(ne.Q=+Fe[0],Pe+Fe[0].length):-1}function Y(ne,de,Pe){var Fe=l.exec(de.slice(Pe));return Fe?(ne.s=+Fe[0],Pe+Fe[0].length):-1}function V(ne,de){return f(ne.getDate(),de,2)}function H(ne,de){return f(ne.getHours(),de,2)}function X(ne,de){return f(ne.getHours()%12||12,de,2)}function W(ne,de){return f(1+r.timeDay.count(r.timeYear(ne),ne),de,3)}function ee(ne,de){return f(ne.getMilliseconds(),de,3)}function oe(ne,de){return ee(ne,de)+"000"}function le(ne,de){return f(ne.getMonth()+1,de,2)}function ue(ne,de){return f(ne.getMinutes(),de,2)}function K(ne,de){return f(ne.getSeconds(),de,2)}function _e(ne){var de=ne.getDay();return de===0?7:de}function fe(ne,de){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),de,2)}function ve(ne,de){var Pe=ne.getDay();return ne=Pe>=4||Pe===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),de,2)}function ye(ne){return ne.getDay()}function ce(ne,de){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),de,2)}function j(ne,de){return f(ne.getFullYear()%100,de,2)}function Q(ne,de){return f(ne.getFullYear()%1e4,de,4)}function Z(ne){var de=ne.getTimezoneOffset();return(de>0?"-":(de*=-1,"+"))+f(de/60|0,"0",2)+f(de%60,"0",2)}function ie(ne,de){return f(ne.getUTCDate(),de,2)}function he(ne,de){return f(ne.getUTCHours(),de,2)}function me(ne,de){return f(ne.getUTCHours()%12||12,de,2)}function Re(ne,de){return f(1+r.utcDay.count(r.utcYear(ne),ne),de,3)}function De(ne,de){return f(ne.getUTCMilliseconds(),de,3)}function Le(ne,de){return De(ne,de)+"000"}function He(ne,de){return f(ne.getUTCMonth()+1,de,2)}function Oe(ne,de){return f(ne.getUTCMinutes(),de,2)}function Ue(ne,de){return f(ne.getUTCSeconds(),de,2)}function Ee(ne){var de=ne.getUTCDay();return de===0?7:de}function ze(ne,de){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),de,2)}function Ge(ne,de){var Pe=ne.getUTCDay();return ne=Pe>=4||Pe===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),de,2)}function se(ne){return ne.getUTCDay()}function Ae(ne,de){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),de,2)}function Je(ne,de){return f(ne.getUTCFullYear()%100,de,2)}function dr(ne,de){return f(ne.getUTCFullYear()%1e4,de,4)}function Ne(){return"+0000"}function Te(){return"%"}function qe(ne){return+ne}function Be(ne){return Math.floor(+ne/1e3)}var Xe;Ve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ve(ne){return Xe=i(ne),e.timeFormat=Xe.format,e.timeParse=Xe.parse,e.utcFormat=Xe.utcFormat,e.utcParse=Xe.utcParse,Xe}var We="%Y-%m-%dT%H:%M:%S.%LZ";function lr(ne){return ne.toISOString()}var rr=Date.prototype.toISOString?lr:e.utcFormat(We);function er(ne){var de=new Date(ne);return isNaN(de)?null:de}var Ie=+new Date("2000-01-01T00:00:00.000Z")?er:e.utcParse(We);e.isoFormat=rr,e.isoParse=Ie,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var ub=N((Tp,nM)=>{(function(e,r){typeof Tp=="object"&&typeof nM!="undefined"?r(Tp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Tp,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,S){if((E=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var E,D=M.slice(0,E);return[D.length>1?D[0]+D.slice(2):D,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,S){return function(E,D){for(var P=E.length,R=[],I=0,z=M[0],B=0;P>0&&z>0&&(B+z+1>D&&(z=Math.max(1,D-B)),R.push(E.substring(P-=z,P+z)),!((B+=z+1)>D));)z=M[I=(I+1)%M.length];return R.reverse().join(S)}}function i(M){return function(S){return S.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(S=o.exec(M)))throw new Error("invalid format: "+M);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var S=M.length,E=1,D=-1,P;E0&&(D=0);break}return D>0?M.slice(0,D)+M.slice(P+1):M}var f;function c(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,I=D.length;return R===I?D:R>I?D+new Array(R-I+1).join("0"):R>0?D.slice(0,R)+"."+D.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,S+R-1))[0]}function v(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1];return P<0?"0."+new Array(-P).join("0")+D:D.length>P+1?D.slice(0,P+1)+"."+D.slice(P+1):D+new Array(P-D.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return v(M*100,S)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(M){var S=M.grouping===void 0||M.thousands===void 0?p:n(y.call(M.grouping,Number),M.thousands+""),E=M.currency===void 0?"":M.currency[0]+"",D=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(y.call(M.numerals,String)),I=M.percent===void 0?"%":M.percent+"",z=M.minus===void 0?"-":M.minus+"",B=M.nan===void 0?"NaN":M.nan+"";function G(V){V=l(V);var H=V.fill,X=V.align,W=V.sign,ee=V.symbol,oe=V.zero,le=V.width,ue=V.comma,K=V.precision,_e=V.trim,fe=V.type;fe==="n"?(ue=!0,fe="g"):d[fe]||(K===void 0&&(K=12),_e=!0,fe="g"),(oe||H==="0"&&X==="=")&&(oe=!0,H="0",X="=");var ve=ee==="$"?E:ee==="#"&&/[boxX]/.test(fe)?"0"+fe.toLowerCase():"",ye=ee==="$"?D:/[%p]/.test(fe)?I:"",ce=d[fe],j=/[defgprs%]/.test(fe);K=K===void 0?6:/[gprs]/.test(fe)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Q(Z){var ie=ve,he=ye,me,Re,De;if(fe==="c")he=ce(Z)+he,Z="";else{Z=+Z;var Le=Z<0||1/Z<0;if(Z=isNaN(Z)?B:ce(Math.abs(Z),K),_e&&(Z=u(Z)),Le&&+Z==0&&W!=="+"&&(Le=!1),ie=(Le?W==="("?W:z:W==="-"||W==="("?"":W)+ie,he=(fe==="s"?m[8+f/3]:"")+he+(Le&&W==="("?")":""),j){for(me=-1,Re=Z.length;++meDe||De>57){he=(De===46?P+Z.slice(me+1):Z.slice(me))+he,Z=Z.slice(0,me);break}}}ue&&!oe&&(Z=S(Z,1/0));var He=ie.length+Z.length+he.length,Oe=He>1)+ie+Z+he+Oe.slice(He);break;default:Z=Oe+ie+Z+he;break}return R(Z)}return Q.toString=function(){return V+""},Q}function Y(V,H){var X=G((V=l(V),V.type="f",V)),W=Math.max(-8,Math.min(8,Math.floor(a(H)/3)))*3,ee=Math.pow(10,-W),oe=m[8+W/3];return function(le){return X(ee*le)+oe}}return{format:G,formatPrefix:Y}}var T;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return T=x(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function b(M){return Math.max(0,-a(Math.abs(M)))}function w(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(M)))}function k(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,a(S)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=x,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=w,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var oM=N((PCe,iM)=>{"use strict";iM.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Rr=N((FCe,lM)=>{"use strict";var hoe=oM();lM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&hoe(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Ft=N((NCe,sM)=>{"use strict";sM.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var fb=N((Ap,uM)=>{(function(e,r){typeof Ap=="object"&&typeof uM!="undefined"?r(Ap):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ap,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var y=new ArrayBuffer(l),m=new Uint8Array(y);for(u=0;u>4,m[f++]=(v&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Vl=N((ICe,fM)=>{"use strict";fM.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Ln=N(Ki=>{"use strict";var doe=fb().decode,poe=Vl(),cb=Array.isArray,yoe=ArrayBuffer,moe=DataView;function cM(e){return yoe.isView(e)&&!(e instanceof moe)}Ki.isTypedArray=cM;function Mp(e){return cb(e)||cM(e)}Ki.isArrayOrTypedArray=Mp;function goe(e){return!Mp(e[0])}Ki.isArray1D=goe;Ki.ensureArray=function(e,r){return cb(e)||(e=[]),e.length=r,e};var Da={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Da.uint8c=Da.u1c;Da.uint8=Da.u1;Da.int8=Da.i1;Da.uint16=Da.u2;Da.int16=Da.i2;Da.uint32=Da.u4;Da.int32=Da.i4;Da.float32=Da.f4;Da.float64=Da.f8;function vb(e){return e.constructor===ArrayBuffer}Ki.isArrayBuffer=vb;Ki.decodeTypedArraySpec=function(e){var r=[],t=boe(e),a=t.dtype,n=Da[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;vb(o)||(o=doe(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var hM=Rr(),db=Ln().isArrayOrTypedArray;mM.exports=function(r,t){if(hM(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var Rf=kp(),Aoe=/^\w*$/,Moe=0,gM=1,Sp=2,bM=3,eu=4;xM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=Rf(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|Sp,c.set(v,null);if(f){for(i=d;i{"use strict";var koe=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Soe=/^[^\.\[\]]+$/;wM.exports=function(e,r){for(;r;){var t=e.match(koe);if(t)e=t[1];else if(e.match(Soe))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var qp=N((UCe,AM)=>{"use strict";var qoe=Rr();AM.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return qoe(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var SM=N((GCe,kM)=>{"use strict";var MM=Ln().isArrayOrTypedArray,$v=Vl();kM.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(MM(n)&&MM(i)&&$v(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function Loe(e,r){var t=e%r;return t<0?t+r:t}function Coe(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}qM.exports={mod:Loe,modHalf:Coe}});var Cn=N((YCe,Lp)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(j,Q){if(j=j||"",Q=Q||{},j instanceof s)return j;if(!(this instanceof s))return new s(j,Q);var Z=u(j);this._originalInput=j,this._r=Z.r,this._g=Z.g,this._b=Z.b,this._a=Z.a,this._roundA=n(100*this._a)/100,this._format=Q.format||Z.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=Z.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),Q,Z,ie,he,me,Re;return Q=j.r/255,Z=j.g/255,ie=j.b/255,Q<=.03928?he=Q/12.92:he=e.pow((Q+.055)/1.055,2.4),Z<=.03928?me=Z/12.92:me=e.pow((Z+.055)/1.055,2.4),ie<=.03928?Re=ie/12.92:Re=e.pow((ie+.055)/1.055,2.4),.2126*he+.7152*me+.0722*Re},setAlpha:function(j){return this._a=V(j),this._roundA=n(100*this._a)/100,this},toHsv:function(){var j=d(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=d(this._r,this._g,this._b),Q=n(j.h*360),Z=n(j.s*100),ie=n(j.v*100);return this._a==1?"hsv("+Q+", "+Z+"%, "+ie+"%)":"hsva("+Q+", "+Z+"%, "+ie+"%, "+this._roundA+")"},toHsl:function(){var j=c(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=c(this._r,this._g,this._b),Q=n(j.h*360),Z=n(j.s*100),ie=n(j.l*100);return this._a==1?"hsl("+Q+", "+Z+"%, "+ie+"%)":"hsla("+Q+", "+Z+"%, "+ie+"%, "+this._roundA+")"},toHex:function(j){return y(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return m(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(H(this._r,255)*100)+"%",g:n(H(this._g,255)*100)+"%",b:n(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%)":"rgba("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var Q="#"+x(this._r,this._g,this._b,this._a),Z=Q,ie=this._gradientType?"GradientType = 1, ":"";if(j){var he=s(j);Z="#"+x(he._r,he._g,he._b,he._a)}return"progid:DXImageTransform.Microsoft.gradient("+ie+"startColorstr="+Q+",endColorstr="+Z+")"},toString:function(j){var Q=!!j;j=j||this._format;var Z=!1,ie=this._a<1&&this._a>=0,he=!Q&&ie&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return he?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(Z=this.toRgbString()),j==="prgb"&&(Z=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(Z=this.toHexString()),j==="hex3"&&(Z=this.toHexString(!0)),j==="hex4"&&(Z=this.toHex8String(!0)),j==="hex8"&&(Z=this.toHex8String()),j==="name"&&(Z=this.toName()),j==="hsl"&&(Z=this.toHslString()),j==="hsv"&&(Z=this.toHsvString()),Z||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(j,Q){var Z=j.apply(null,[this].concat([].slice.call(Q)));return this._r=Z._r,this._g=Z._g,this._b=Z._b,this.setAlpha(Z._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(j,Q){return j.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},s.fromRatio=function(j,Q){if(typeof j=="object"){var Z={};for(var ie in j)j.hasOwnProperty(ie)&&(ie==="a"?Z[ie]=j[ie]:Z[ie]=ue(j[ie]));j=Z}return s(j,Q)};function u(j){var Q={r:0,g:0,b:0},Z=1,ie=null,he=null,me=null,Re=!1,De=!1;return typeof j=="string"&&(j=ye(j)),typeof j=="object"&&(ve(j.r)&&ve(j.g)&&ve(j.b)?(Q=f(j.r,j.g,j.b),Re=!0,De=String(j.r).substr(-1)==="%"?"prgb":"rgb"):ve(j.h)&&ve(j.s)&&ve(j.v)?(ie=ue(j.s),he=ue(j.v),Q=p(j.h,ie,he),Re=!0,De="hsv"):ve(j.h)&&ve(j.s)&&ve(j.l)&&(ie=ue(j.s),me=ue(j.l),Q=v(j.h,ie,me),Re=!0,De="hsl"),j.hasOwnProperty("a")&&(Z=j.a)),Z=V(Z),{ok:Re,format:j.format||De,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:Z}}function f(j,Q,Z){return{r:H(j,255)*255,g:H(Q,255)*255,b:H(Z,255)*255}}function c(j,Q,Z){j=H(j,255),Q=H(Q,255),Z=H(Z,255);var ie=o(j,Q,Z),he=i(j,Q,Z),me,Re,De=(ie+he)/2;if(ie==he)me=Re=0;else{var Le=ie-he;switch(Re=De>.5?Le/(2-ie-he):Le/(ie+he),ie){case j:me=(Q-Z)/Le+(Q1&&(Ue-=1),Ue<1/6?He+(Oe-He)*6*Ue:Ue<1/2?Oe:Ue<2/3?He+(Oe-He)*(2/3-Ue)*6:He}if(Q===0)ie=he=me=Z;else{var De=Z<.5?Z*(1+Q):Z+Q-Z*Q,Le=2*Z-De;ie=Re(Le,De,j+1/3),he=Re(Le,De,j),me=Re(Le,De,j-1/3)}return{r:ie*255,g:he*255,b:me*255}}function d(j,Q,Z){j=H(j,255),Q=H(Q,255),Z=H(Z,255);var ie=o(j,Q,Z),he=i(j,Q,Z),me,Re,De=ie,Le=ie-he;if(Re=ie===0?0:Le/ie,ie==he)me=0;else{switch(ie){case j:me=(Q-Z)/Le+(Q>1)+720)%360;--Q;)ie.h=(ie.h+he)%360,me.push(s(ie));return me}function z(j,Q){Q=Q||6;for(var Z=s(j).toHsv(),ie=Z.h,he=Z.s,me=Z.v,Re=[],De=1/Q;Q--;)Re.push(s({h:ie,s:he,v:me})),me=(me+De)%1;return Re}s.mix=function(j,Q,Z){Z=Z===0?0:Z||50;var ie=s(j).toRgb(),he=s(Q).toRgb(),me=Z/100,Re={r:(he.r-ie.r)*me+ie.r,g:(he.g-ie.g)*me+ie.g,b:(he.b-ie.b)*me+ie.b,a:(he.a-ie.a)*me+ie.a};return s(Re)},s.readability=function(j,Q){var Z=s(j),ie=s(Q);return(e.max(Z.getLuminance(),ie.getLuminance())+.05)/(e.min(Z.getLuminance(),ie.getLuminance())+.05)},s.isReadable=function(j,Q,Z){var ie=s.readability(j,Q),he,me;switch(me=!1,he=ce(Z),he.level+he.size){case"AAsmall":case"AAAlarge":me=ie>=4.5;break;case"AAlarge":me=ie>=3;break;case"AAAsmall":me=ie>=7;break}return me},s.mostReadable=function(j,Q,Z){var ie=null,he=0,me,Re,De,Le;Z=Z||{},Re=Z.includeFallbackColors,De=Z.level,Le=Z.size;for(var He=0;Hehe&&(he=me,ie=s(Q[He]));return s.isReadable(j,ie,{level:De,size:Le})||!Re?ie:(Z.includeFallbackColors=!1,s.mostReadable(j,["#fff","#000"],Z))};var B=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=s.hexNames=Y(B);function Y(j){var Q={};for(var Z in j)j.hasOwnProperty(Z)&&(Q[j[Z]]=Z);return Q}function V(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function H(j,Q){ee(j)&&(j="100%");var Z=oe(j);return j=i(Q,o(0,parseFloat(j))),Z&&(j=parseInt(j*Q,10)/100),e.abs(j-Q)<1e-6?1:j%Q/parseFloat(Q)}function X(j){return i(1,o(0,j))}function W(j){return parseInt(j,16)}function ee(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function oe(j){return typeof j=="string"&&j.indexOf("%")!=-1}function le(j){return j.length==1?"0"+j:""+j}function ue(j){return j<=1&&(j=j*100+"%"),j}function K(j){return e.round(parseFloat(j)*255).toString(16)}function _e(j){return W(j)/255}var fe=function(){var j="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",Z="(?:"+Q+")|(?:"+j+")",ie="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",he="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?";return{CSS_UNIT:new RegExp(Z),rgb:new RegExp("rgb"+ie),rgba:new RegExp("rgba"+he),hsl:new RegExp("hsl"+ie),hsla:new RegExp("hsla"+he),hsv:new RegExp("hsv"+ie),hsva:new RegExp("hsva"+he),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ve(j){return!!fe.CSS_UNIT.exec(j)}function ye(j){j=j.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(B[j])j=B[j],Q=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Z;return(Z=fe.rgb.exec(j))?{r:Z[1],g:Z[2],b:Z[3]}:(Z=fe.rgba.exec(j))?{r:Z[1],g:Z[2],b:Z[3],a:Z[4]}:(Z=fe.hsl.exec(j))?{h:Z[1],s:Z[2],l:Z[3]}:(Z=fe.hsla.exec(j))?{h:Z[1],s:Z[2],l:Z[3],a:Z[4]}:(Z=fe.hsv.exec(j))?{h:Z[1],s:Z[2],v:Z[3]}:(Z=fe.hsva.exec(j))?{h:Z[1],s:Z[2],v:Z[3],a:Z[4]}:(Z=fe.hex8.exec(j))?{r:W(Z[1]),g:W(Z[2]),b:W(Z[3]),a:_e(Z[4]),format:Q?"name":"hex8"}:(Z=fe.hex6.exec(j))?{r:W(Z[1]),g:W(Z[2]),b:W(Z[3]),format:Q?"name":"hex"}:(Z=fe.hex4.exec(j))?{r:W(Z[1]+""+Z[1]),g:W(Z[2]+""+Z[2]),b:W(Z[3]+""+Z[3]),a:_e(Z[4]+""+Z[4]),format:Q?"name":"hex8"}:(Z=fe.hex3.exec(j))?{r:W(Z[1]+""+Z[1]),g:W(Z[2]+""+Z[2]),b:W(Z[3]+""+Z[3]),format:Q?"name":"hex"}:!1}function ce(j){var Q,Z;return j=j||{level:"AA",size:"small"},Q=(j.level||"AA").toUpperCase(),Z=(j.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),Z!=="small"&&Z!=="large"&&(Z="small"),{level:Q,size:Z}}typeof Lp!="undefined"&&Lp.exports?Lp.exports=s:window.tinycolor=s})(Math)});var bt=N(eh=>{"use strict";var LM=Vl(),Kv=Array.isArray;function Eoe(e,r){var t,a;for(t=0;t{"use strict";CM.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var rh=N((ZCe,EM)=>{"use strict";EM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Ff=N((XCe,PM)=>{"use strict";var DM=rh(),RM=ga(),pb=RM({editType:"none"});pb.family.dflt=DM.HOVERFONT;pb.size.dflt=DM.HOVERFONTSIZE;PM.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:pb,grouptitlefont:RM({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Cp=N((JCe,FM)=>{"use strict";var Doe=ga(),th=Ff().hoverlabel,ah=bt().extendFlat;FM.exports={hoverlabel:{bgcolor:ah({},th.bgcolor,{arrayOk:!0}),bordercolor:ah({},th.bordercolor,{arrayOk:!0}),font:Doe({arrayOk:!0,editType:"none"}),align:ah({},th.align,{arrayOk:!0}),namelength:ah({},th.namelength,{arrayOk:!0}),showarrow:ah({},th.showarrow),editType:"none"}}});var gn=N(($Ce,NM)=>{"use strict";var Roe=ga(),Poe=Cp();NM.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Roe({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Poe.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ru=N((KCe,OM)=>{"use strict";var Foe=Cn(),Ep={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},IM=Ep.RdBu;function Noe(e,r){if(r||(r=IM),!e)return r;function t(){try{e=Ep[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),zM(e)?e:r}function zM(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";tu.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];tu.defaultLine="#444";tu.lightLine="#eee";tu.background="#fff";tu.borderLine="#BEC8D9";tu.lightFraction=100*10/11});var Tr=N((eEe,BM)=>{"use strict";var En=Cn(),zoe=Rr(),Ooe=Ln().isTypedArray,Ta=BM.exports={},Dp=fi();Ta.defaults=Dp.defaults;var Boe=Ta.defaultLine=Dp.defaultLine;Ta.lightLine=Dp.lightLine;var mb=Ta.background=Dp.background;Ta.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};Ta.rgb=function(e){return Ta.tinyRGB(En(e))};Ta.opacity=function(e){return e?En(e).getAlpha():0};Ta.addOpacity=function(e,r){var t=En(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};Ta.combine=function(e,r){var t=En(e).toRgb();if(t.a===1)return En(e).toRgbString();var a=En(r||mb).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return En(i).toRgbString()};Ta.interpolate=function(e,r,t){var a=En(e).toRgb(),n=En(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return En(i).toRgbString()};Ta.contrast=function(e,r,t){var a=En(e);a.getAlpha()!==1&&(a=En(Ta.combine(e,mb)));var n=a.isDark()?r?a.lighten(r):mb:t?a.darken(t):Boe;return n.toString()};Ta.stroke=function(e,r){var t=En(r);e.style({stroke:Ta.tinyRGB(t),"stroke-opacity":t.getAlpha()})};Ta.fill=function(e,r){var t=En(r);e.style({fill:Ta.tinyRGB(t),"fill-opacity":t.getAlpha()})};Ta.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var Rp=N((rEe,HM)=>{"use strict";HM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Nf=N(UM=>{"use strict";UM.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var WM=N(Dn=>{"use strict";var gb=Rr(),GM=Cn(),VM=bt().extendFlat,Hoe=gn(),Uoe=ru(),Goe=Tr(),Voe=Rp().DESELECTDIM,If=kp(),YM=Nf().counter,Yoe=Pf().modHalf,Qi=Ln().isArrayOrTypedArray,Yl=Ln().isTypedArraySpec,Wl=Ln().decodeTypedArraySpec;Dn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Qi(e)?e:Yl(e)?Wl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){Yl(e)&&(e=Wl(e)),!gb(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Yl(e)&&(e=Wl(e)),e%1||!gb(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Yl(e)&&(e=Wl(e)),GM(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return GM(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(Uoe.get(e,t))}},angle:{coerceFunction:function(e,r,t){Yl(e)&&(e=Wl(e)),e==="auto"?r.set("auto"):gb(e)?r.set(Yoe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||YM(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Qi(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!YM(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var jM={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},ZM={};function XM(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),XM(a,r[t]))}}XM(jM,ZM);JM.exports={configAttributes:jM,dfltConfig:ZM}});var xb=N((iEe,$M)=>{"use strict";var bb=Sr(),Woe=Rr(),nh=[];$M.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||nh.indexOf(e)!==-1)return;nh.push(e);var a=1e3;Woe(r)?a=r:r==="long"&&(a=3e3);var n=bb.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(nh);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=nh.indexOf(u);f!==-1&&nh.splice(f,1),bb.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=bb.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(//g),v=0;v{"use strict";var zf=au().dfltConfig,_b=xb(),wb=KM.exports={};wb.log=function(){var e;if(zf.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};wb.warn=function(){var e;if(zf.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};wb.error=function(){var e;if(zf.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Fp=N((lEe,QM)=>{"use strict";QM.exports=function(){}});var Tb=N((sEe,e9)=>{"use strict";e9.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{r9.exports=joe;function joe(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var n9=N((fEe,a9)=>{a9.exports=Zoe;function Zoe(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var o9=N((cEe,i9)=>{i9.exports=Xoe;function Xoe(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Ab=N((vEe,l9)=>{l9.exports=Joe;function Joe(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var u9=N((hEe,s9)=>{s9.exports=$oe;function $oe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var c9=N((dEe,f9)=>{f9.exports=Koe;function Koe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],x=r[15],T=t*l-a*o,_=t*s-n*o,b=t*u-i*o,w=a*s-n*l,k=a*u-i*l,M=n*u-i*s,S=f*y-c*p,E=f*m-v*p,D=f*x-d*p,P=c*m-v*y,R=c*x-d*y,I=v*x-d*m,z=T*I-_*R+b*P+w*D-k*E+M*S;return z?(z=1/z,e[0]=(l*I-s*R+u*P)*z,e[1]=(n*R-a*I-i*P)*z,e[2]=(y*M-m*k+x*w)*z,e[3]=(v*k-c*M-d*w)*z,e[4]=(s*D-o*I-u*E)*z,e[5]=(t*I-n*D+i*E)*z,e[6]=(m*b-p*M-x*_)*z,e[7]=(f*M-v*b+d*_)*z,e[8]=(o*R-l*D+u*S)*z,e[9]=(a*D-t*R-i*S)*z,e[10]=(p*k-y*b+x*T)*z,e[11]=(c*b-f*k-d*T)*z,e[12]=(l*E-o*P-s*S)*z,e[13]=(t*P-a*E+n*S)*z,e[14]=(y*_-p*w-m*T)*z,e[15]=(f*w-c*_+v*T)*z,e):null}});var h9=N((pEe,v9)=>{v9.exports=Qoe;function Qoe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],x=r[15];return e[0]=l*(v*x-d*m)-c*(s*x-u*m)+y*(s*d-u*v),e[1]=-(a*(v*x-d*m)-c*(n*x-i*m)+y*(n*d-i*v)),e[2]=a*(s*x-u*m)-l*(n*x-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*x-d*m)-f*(s*x-u*m)+p*(s*d-u*v)),e[5]=t*(v*x-d*m)-f*(n*x-i*m)+p*(n*d-i*v),e[6]=-(t*(s*x-u*m)-o*(n*x-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*x-d*y)-f*(l*x-u*y)+p*(l*d-u*c),e[9]=-(t*(c*x-d*y)-f*(a*x-i*y)+p*(a*d-i*c)),e[10]=t*(l*x-u*y)-o*(a*x-i*y)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*m-v*y)-f*(l*m-s*y)+p*(l*v-s*c)),e[13]=t*(c*m-v*y)-f*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(l*m-s*y)-o*(a*m-n*y)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var p9=N((yEe,d9)=>{d9.exports=ele;function ele(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],y=e[14],m=e[15],x=r*o-t*i,T=r*l-a*i,_=r*s-n*i,b=t*l-a*o,w=t*s-n*o,k=a*s-n*l,M=u*p-f*d,S=u*y-c*d,E=u*m-v*d,D=f*y-c*p,P=f*m-v*p,R=c*m-v*y;return x*R-T*P+_*D+b*E-w*S+k*M}});var m9=N((mEe,y9)=>{y9.exports=rle;function rle(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],y=r[12],m=r[13],x=r[14],T=r[15],_=t[0],b=t[1],w=t[2],k=t[3];return e[0]=_*a+b*l+w*c+k*y,e[1]=_*n+b*s+w*v+k*m,e[2]=_*i+b*u+w*d+k*x,e[3]=_*o+b*f+w*p+k*T,_=t[4],b=t[5],w=t[6],k=t[7],e[4]=_*a+b*l+w*c+k*y,e[5]=_*n+b*s+w*v+k*m,e[6]=_*i+b*u+w*d+k*x,e[7]=_*o+b*f+w*p+k*T,_=t[8],b=t[9],w=t[10],k=t[11],e[8]=_*a+b*l+w*c+k*y,e[9]=_*n+b*s+w*v+k*m,e[10]=_*i+b*u+w*d+k*x,e[11]=_*o+b*f+w*p+k*T,_=t[12],b=t[13],w=t[14],k=t[15],e[12]=_*a+b*l+w*c+k*y,e[13]=_*n+b*s+w*v+k*m,e[14]=_*i+b*u+w*d+k*x,e[15]=_*o+b*f+w*p+k*T,e}});var b9=N((gEe,g9)=>{g9.exports=tle;function tle(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,y,m,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],y=r[9],m=r[10],x=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=x,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+d*n+x*i+r[15]),e}});var _9=N((bEe,x9)=>{x9.exports=ale;function ale(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var T9=N((xEe,w9)=>{w9.exports=nle;function nle(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,y,m,x,T,_,b,w,k,M,S,E,D,P,R,I,z,B;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],y=r[4],m=r[5],x=r[6],T=r[7],_=r[8],b=r[9],w=r[10],k=r[11],M=n*n*f+u,S=i*n*f+o*s,E=o*n*f-i*s,D=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,I=n*o*f+i*s,z=i*o*f-n*s,B=o*o*f+u,e[0]=c*M+y*S+_*E,e[1]=v*M+m*S+b*E,e[2]=d*M+x*S+w*E,e[3]=p*M+T*S+k*E,e[4]=c*D+y*P+_*R,e[5]=v*D+m*P+b*R,e[6]=d*D+x*P+w*R,e[7]=p*D+T*P+k*R,e[8]=c*I+y*z+_*B,e[9]=v*I+m*z+b*B,e[10]=d*I+x*z+w*B,e[11]=p*I+T*z+k*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var M9=N((_Ee,A9)=>{A9.exports=ile;function ile(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var S9=N((wEe,k9)=>{k9.exports=ole;function ole(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var L9=N((TEe,q9)=>{q9.exports=lle;function lle(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var E9=N((AEe,C9)=>{C9.exports=sle;function sle(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var R9=N((MEe,D9)=>{D9.exports=ule;function ule(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,y=i*u,m=o*l,x=o*s,T=o*u;return e[0]=1-(d+y),e[1]=c+T,e[2]=v-x,e[3]=0,e[4]=c-T,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=v+x,e[9]=p-m,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var F9=N((kEe,P9)=>{P9.exports=fle;function fle(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var I9=N((SEe,N9)=>{N9.exports=cle;function cle(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var O9=N((qEe,z9)=>{z9.exports=vle;function vle(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var H9=N((LEe,B9)=>{B9.exports=hle;function hle(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var G9=N((CEe,U9)=>{U9.exports=dle;function dle(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Y9=N((EEe,V9)=>{V9.exports=ple;function ple(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,y=i*o,m=i*l,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-m,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=v+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var j9=N((DEe,W9)=>{W9.exports=yle;function yle(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var X9=N((REe,Z9)=>{Z9.exports=mle;function mle(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var $9=N((PEe,J9)=>{J9.exports=gle;function gle(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var Q9=N((FEe,K9)=>{K9.exports=ble;function ble(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var rk=N((NEe,ek)=>{var xle=Ab();ek.exports=_le;function _le(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],y=r[1],m=r[2],x=a[0],T=a[1],_=a[2],b=t[0],w=t[1],k=t[2];return Math.abs(p-b)<1e-6&&Math.abs(y-w)<1e-6&&Math.abs(m-k)<1e-6?xle(e):(f=p-b,c=y-w,v=m-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=T*v-_*c,i=_*f-x*v,o=x*c-T*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+o*m),e[13]=-(l*p+s*y+u*m),e[14]=-(f*p+c*y+v*m),e[15]=1,e)}});var ak=N((IEe,tk)=>{tk.exports=wle;function wle(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Mb=N((zEe,nk)=>{nk.exports={create:t9(),clone:n9(),copy:o9(),identity:Ab(),transpose:u9(),invert:c9(),adjoint:h9(),determinant:p9(),multiply:m9(),translate:b9(),scale:_9(),rotate:T9(),rotateX:M9(),rotateY:S9(),rotateZ:L9(),fromRotation:E9(),fromRotationTranslation:R9(),fromScaling:F9(),fromTranslation:I9(),fromXRotation:O9(),fromYRotation:H9(),fromZRotation:G9(),fromQuat:Y9(),frustum:j9(),perspective:X9(),perspectiveFromFieldOfView:$9(),ortho:Q9(),lookAt:rk(),str:ak()}});var Np=N(ea=>{"use strict";var Tle=Mb();ea.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var Ale=Sr(),ik=nu(),Mle=Np(),kle=Mb();function Sle(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function qle(e){var r=Ale.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function ok(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Lle(e,r){lk("global",e,r)}function lk(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):ik.warn("addStyleRule failed"):ik.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Cle(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&ok(t)}function Ele(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function Dle(e){var r=uk(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=sk(a);if(n){var i=Mle.convertCssMatrix(n);t=kle.multiply(t,t,i)}}),t}function sk(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function uk(e){for(var r=[];Rle(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Rle(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Ple(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}fk.exports={getGraphDiv:Sle,isPlotDiv:qle,removeElement:ok,addStyleRule:Lle,addRelatedStyleRule:lk,deleteRelatedStyleRule:Cle,setStyleOnHover:Ele,getFullTransformMatrix:Dle,getElementTransformMatrix:sk,getElementAndAncestors:uk,equalDomRects:Ple}});var oh=N((HEe,ck)=>{"use strict";ck.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var eo=N((UEe,gk)=>{"use strict";var hk=bt().extendFlat,Fle=Vl(),dk={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},pk={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Nle=dk.flags.slice().concat(["fullReplot"]),Ile=pk.flags.slice().concat("layoutReplot");gk.exports={traces:dk,layout:pk,traceFlags:function(){return vk(Nle)},layoutFlags:function(){return vk(Ile)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";kb.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};kb.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Sb=N((VEe,bk)=>{"use strict";bk.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Wn=N(Of=>{"use strict";var{DATE_FORMAT_LINK:zle,FORMAT_LINK:Ole}=Sb(),Ble=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Hle({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Ole,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,zle,"for details on the date formatting syntax.",Ble].join(" ")}Of.templateFormatStringDescription=Hle;Of.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Qs({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Of.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Qs({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Of.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Of.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Op=N((jEe,Mk)=>{"use strict";function jl(e,r){return r?r.d2l(e):e}function xk(e,r){return r?r.l2d(e):e}function Ule(e){return e.x0}function Gle(e){return e.x1}function Vle(e){return e.y0}function Yle(e){return e.y1}function _k(e){return e.x0shift||0}function wk(e){return e.x1shift||0}function Tk(e){return e.y0shift||0}function Ak(e){return e.y1shift||0}function Ip(e,r){return jl(e.x1,r)+wk(e)-jl(e.x0,r)-_k(e)}function zp(e,r,t){return jl(e.y1,t)+Ak(e)-jl(e.y0,t)-Tk(e)}function Wle(e,r){return Math.abs(Ip(e,r))}function jle(e,r,t){return Math.abs(zp(e,r,t))}function Zle(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ip(e,r),2)+Math.pow(zp(e,r,t),2))}function Xle(e,r){return xk((jl(e.x1,r)+wk(e)+jl(e.x0,r)+_k(e))/2,r)}function Jle(e,r,t){return xk((jl(e.y1,t)+Ak(e)+jl(e.y0,t)+Tk(e))/2,t)}function $le(e,r,t){return e.type!=="line"?void 0:zp(e,r,t)/Ip(e,r)}var Kle=["x0","x1","y0","y1","dy","height","ycenter"],Qle=["x0","x1","y0","y1","dx","width","xcenter"];Mk.exports={x0:Ule,x1:Gle,y0:Vle,y1:Yle,slope:$le,dx:Ip,dy:zp,width:Wle,height:jle,length:Zle,xcenter:Xle,ycenter:Jle,simpleXVariables:Kle,simpleYVariables:Qle}});var qk=N((ZEe,Sk)=>{"use strict";var ese=eo().overrideAll,iu=gn(),kk=ga(),rse=ci().dash,Zl=bt().extendFlat,{shapeTexttemplateAttrs:tse,templatefallbackAttrs:ase}=Wn(),nse=Op();Sk.exports=ese({newshape:{visible:Zl({},iu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Zl({},iu.legend,{}),legendgroup:Zl({},iu.legendgroup,{}),legendgrouptitle:{text:Zl({},iu.legendgrouptitle.text,{}),font:kk({})},legendrank:Zl({},iu.legendrank,{}),legendwidth:Zl({},iu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Zl({},rse,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Zl({},iu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:tse({newshape:!0},{keys:Object.keys(nse)}),texttemplatefallback:ase({editType:"arraydraw"}),font:kk({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Ck=N((XEe,Lk)=>{"use strict";var ise=ci().dash,ose=bt().extendFlat;Lk.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:ose({},ise,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Bp=N((JEe,Ek)=>{"use strict";Ek.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Bf=N(($Ee,Fk)=>{"use strict";var qb=ga(),lse=oh(),Hp=fi(),Dk=qk(),Rk=Ck(),sse=Bp(),Pk=bt().extendFlat,Up=qb({editType:"calc"});Up.family.dflt='"Open Sans", verdana, arial, sans-serif';Up.size.dflt=12;Up.color.dflt=Hp.defaultLine;Fk.exports={font:Up,title:{text:{valType:"string",editType:"layoutstyle"},font:qb({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:qb({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Pk(sse({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Hp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Hp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Hp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Dk.newshape,activeshape:Dk.activeshape,newselection:Rk.newselection,activeselection:Rk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Pk({},lse.transition,{editType:"none"})}});var Nk=N(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var br=N(Br=>{"use strict";var Hf=nu(),Ik=Fp(),zk=Tb(),use=Vl(),fse=ih().addStyleRule,Ok=bt(),cse=gn(),vse=Bf(),hse=Ok.extendFlat,Lb=Ok.extendDeepAll;Br.modules={};Br.allCategories={};Br.allTypes=[];Br.subplotsRegistry={};Br.componentsRegistry={};Br.layoutArrayContainers=[];Br.layoutArrayRegexes=[];Br.traceLayoutAttributes={};Br.localeRegistry={};Br.apiMethodRegistry={};Br.collectableSubplotTypes=null;Br.register=function(r){if(Br.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var bse=Df().timeFormat,Jk=Rr(),Cb=nu(),Jl=Pf().mod,Vf=Ft(),vi=Vf.BADNUM,Rn=Vf.ONEDAY,lh=Vf.ONEHOUR,Xl=Vf.ONEMIN,Gf=Vf.ONESEC,sh=Vf.EPOCHJD,ul=br(),Vk=Df().utcFormat,xse=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,_se=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Yk=new Date().getFullYear()-70;function fl(e){return e&&ul.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ra.dateTick0=function(e,r){var t=wse(e,!!r);if(r<2)return t;var a=ra.dateTime2ms(t,e);return a+=Rn*(r-1),ra.ms2DateTime(a,0,e)};function wse(e,r){return fl(e)?r?ul.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:ul.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ra.dfltRange=function(e){return fl(e)?ul.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ra.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Vp,Yp;ra.dateTime2ms=function(e,r){if(ra.isJSDate(e)){var t=e.getTimezoneOffset()*Xl,a=(e.getUTCMinutes()-e.getMinutes())*Xl+(e.getUTCSeconds()-e.getSeconds())*Gf+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Xl;t=t-n/2+Jl(a-t+n/2,n)}return e=Number(e)-t,e>=Vp&&e<=Yp?e:vi}if(typeof e!="string"&&typeof e!="number")return vi;e=String(e);var i=fl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?_se:xse);if(!s)return vi;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return vi;u=Number(u);var y;try{var m=ul.getComponentMethod("calendars","getCal")(r);if(l){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,x),c)}else y=m.newDate(u,Number(f),c)}catch(_){return vi}return y?(y.toJD()-sh)*Rn+v*lh+d*Xl+p*Gf:vi}u.length===2?u=(Number(u)+2e3-Yk)%100+Yk:u=Number(u),f-=1;var T=new Date(Date.UTC(2e3,f,c,v,d));return T.setUTCFullYear(u),T.getUTCMonth()!==f||T.getUTCDate()!==c?vi:T.getTime()+p*Gf};Vp=ra.MIN_MS=ra.dateTime2ms("-9999");Yp=ra.MAX_MS=ra.dateTime2ms("9999-12-31 23:59:59.9999");ra.isDateTime=function(e,r){return ra.dateTime2ms(e,r)!==vi};function Uf(e,r){return String(e+Math.pow(10,r)).slice(1)}var Gp=90*Rn,Wk=3*lh,jk=5*Xl;ra.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Vp&&e<=Yp))return vi;r||(r=0);var a=Math.floor(Jl(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(fl(t)){var c=Math.floor(n/Rn)+sh,v=Math.floor(Jl(e,Rn));try{i=ul.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Vk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r=Vp+Rn&&e<=Yp-Rn))return vi;var r=Math.floor(Jl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=bse("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return $k(a,n,i,o,l)};function $k(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Uf(r,2)+":"+Uf(t,2),(a||n)&&(e+=":"+Uf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Uf(n,i)}return e}ra.cleanDate=function(e,r,t){if(e===vi)return r;if(ra.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(fl(t))return Cb.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ra.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ra.isDateTime(e,t))return Cb.error("unrecognized date",e),r;return e};var Tse=/%\d?f/g,Ase=/%h/g,Mse={1:"1",2:"1",3:"2",4:"2"};function Zk(e,r,t,a){e=e.replace(Tse,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(Ase,function(){return Mse[t("%q")(n)]}),fl(a))try{e=ul.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var kse=[59,59.9,59.99,59.999,59.9999];function Sse(e,r){var t=Jl(e+.05,Rn),a=Uf(Math.floor(t/lh),2)+":"+Uf(Jl(Math.floor(t/Xl),60),2);if(r!=="M"){Jk(r)||(r=0);var n=Math.min(Jl(e/Gf,60),kse[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}ra.formatDate=function(e,r,t,a,n,i){if(n=fl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return Sse(e,t)+` -`+Zk(i.dayMonthYear,e,a,n);return Zk(r,e,a,n)};var Xk=3*Rn;ra.incrementMonth=function(e,r,t){t=fl(t)&&t;var a=Jl(e,Rn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Rn)+sh,i=ul.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-sh)*Rn+a}catch(s){Cb.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+Xk);return l.setUTCMonth(l.getUTCMonth()+r)+a-Xk};ra.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=fl(r)&&ul.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Qk.exports=function(r){return r}});var Rb=N(cl=>{"use strict";var qse=Rr(),Lse=nu(),Cse=Eb(),Ese=Ft().BADNUM,Db=1e-9;cl.findBin=function(e,r,t){if(qse(r.start))return t?Math.ceil((e-r.start)/r.size-Db)-1:Math.floor((e-r.start)/r.size+Db);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?Dse:Rse:s=t?Fse:Pse,e+=o*Db*(t?-1:1)*(o>=0?1:-1);a90&&Lse.log("Long binary search..."),a-1};function Dse(e,r){return er}function Fse(e,r){return e>=r}cl.sorterAsc=function(e,r){return e-r};cl.sorterDes=function(e,r){return r-e};cl.distinctVals=function(e){var r=e.slice();r.sort(cl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Ese;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};cl.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};cl.findIndexOfMin=function(e,r){r=r||Cse;for(var t=1/0,a,n=0;n{"use strict";eS.exports=function(r){return Object.keys(r).sort()}});var rS=N(ta=>{"use strict";var uh=Rr(),Nse=Ln().isArrayOrTypedArray;ta.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),uh(r)||(r=!1),Nse(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var oS=N((oDe,iS)=>{"use strict";var tS=Pf(),Fb=tS.mod,Ise=tS.modHalf,fh=Math.PI,$l=2*fh;function zse(e){return e/180*fh}function Ose(e){return e/fh*180}function Nb(e){return Math.abs(e[1]-e[0])>$l-1e-14}function aS(e,r){return Ise(r-e,$l)}function Bse(e,r){return Math.abs(aS(e,r))}function nS(e,r){if(Nb(r))return!0;var t,a;r[0]a&&(a+=$l);var n=Fb(e,$l),i=n+$l;return n>=t&&n<=a||i>=t&&i<=a}function Hse(e,r,t,a){if(!nS(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Ib(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Nb([t,a]),s,u,f,c,v;l?(s=0,u=fh,f=$l):t{"use strict";ou.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ou.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ou.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ou.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ou.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ou.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var fS=N(lu=>{"use strict";var zb=Pf().mod;lu.segmentsIntersect=uS;function uS(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var y=(u*d-f*v)/p,m=(u*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}lu.segmentDistance=function(r,t,a,n,i,o,l,s){if(uS(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,y=Math.min(Wp(u,f,d,i-r,o-t),Wp(u,f,d,l-r,s-t),Wp(c,v,p,r-i,t-o),Wp(c,v,p,a-i,n-o));return Math.sqrt(y)};function Wp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var jp,Ob,sS;lu.getTextLocation=function(r,t,a,n){if((r!==Ob||n!==sS)&&(jp={},Ob=r,sS=n),jp[a])return jp[a];var i=r.getPointAtLength(zb(a-n/2,t)),o=r.getPointAtLength(zb(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(zb(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return jp[a]=c,c};lu.clearLocationCache=function(){Ob=null};lu.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(v=m);var x=m.xi?m.x-i:0,T=m.yl?m.y-l:0;return Math.sqrt(x*x+T*T)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};lu.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var Zp=N(ch=>{"use strict";var vl={};ch.throttle=function(r,t,a){var n=vl[r],i=Date.now();if(!n){for(var o in vl)vl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};ch.done=function(e){var r=vl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};ch.clear=function(e){if(e)cS(vl[e]),delete vl[e];else for(var r in vl)ch.clear(r)};function cS(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var hS=N((fDe,vS)=>{"use strict";vS.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var dS=N((cDe,Xp)=>{"use strict";Xp.exports=Bb;Xp.exports.isMobile=Bb;Xp.exports.default=Bb;var Yse=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Wse=/CrOS/,jse=/android|ipad|playbook|silk/i;function Bb(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=Yse.test(r)&&!Wse.test(r)||!!e.tablet&&jse.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var yS=N((vDe,pS)=>{"use strict";var Zse=Rr(),Xse=dS();pS.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Jse(),typeof t!="string")return!0;var a=Xse({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(Zse(u)&&(u=+u),u>=13)return!0}}}return a};function Jse(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var gS=N((hDe,mS)=>{"use strict";var $se=Sr();mS.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=$se.select(this)}),n}});var xS=N((dDe,bS)=>{"use strict";var Kse=br();bS.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Kse.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var wS=N((pDe,_S)=>{"use strict";_S.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";TS.exports=function(r){for(var t=rue(r)?eue:Qse,a=[],n=0;n{"use strict";MS.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var qS=N((gDe,SS)=>{"use strict";var tue=Rr(),aue=Ft().BADNUM,nue=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;SS.exports=function(r){return typeof r=="string"&&(r=r.replace(nue,"")),tue(r)?Number(r):aue}});var Ce=N((bDe,HS)=>{"use strict";var vh=Sr(),iue=Df().utcFormat,oue=ub().format,PS=Rr(),FS=Ft(),NS=FS.FP_SAFE,lue=-NS,LS=FS.BADNUM,be=HS.exports={};be.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var CS={};be.warnBadFormat=function(e){var r=String(e);CS[r]||(CS[r]=1,be.warn('encountered bad format: "'+r+'"'))};be.noFormat=function(e){return String(e)};be.numberFormat=function(e){var r;try{r=oue(be.adjustFormat(e))}catch(t){return be.warnBadFormat(e),be.noFormat}return r};be.nestedProperty=kp();be.keyedContainer=_M();be.relativeAttr=TM();be.isPlainObject=Vl();be.toLogRange=qp();be.relinkPrivateKeys=SM();var Kl=Ln();be.isArrayBuffer=Kl.isArrayBuffer;be.isTypedArray=Kl.isTypedArray;be.isArrayOrTypedArray=Kl.isArrayOrTypedArray;be.isArray1D=Kl.isArray1D;be.ensureArray=Kl.ensureArray;be.concat=Kl.concat;be.maxRowLength=Kl.maxRowLength;be.minRowLength=Kl.minRowLength;var IS=Pf();be.mod=IS.mod;be.modHalf=IS.modHalf;var Ql=WM();be.valObjectMeta=Ql.valObjectMeta;be.coerce=Ql.coerce;be.coerce2=Ql.coerce2;be.coerceFont=Ql.coerceFont;be.coercePattern=Ql.coercePattern;be.coerceHoverinfo=Ql.coerceHoverinfo;be.coerceSelectionMarkerOpacity=Ql.coerceSelectionMarkerOpacity;be.validate=Ql.validate;var jn=Kk();be.dateTime2ms=jn.dateTime2ms;be.isDateTime=jn.isDateTime;be.ms2DateTime=jn.ms2DateTime;be.ms2DateTimeLocal=jn.ms2DateTimeLocal;be.cleanDate=jn.cleanDate;be.isJSDate=jn.isJSDate;be.formatDate=jn.formatDate;be.incrementMonth=jn.incrementMonth;be.dateTick0=jn.dateTick0;be.dfltRange=jn.dfltRange;be.findExactDates=jn.findExactDates;be.MIN_MS=jn.MIN_MS;be.MAX_MS=jn.MAX_MS;var su=Rb();be.findBin=su.findBin;be.sorterAsc=su.sorterAsc;be.sorterDes=su.sorterDes;be.distinctVals=su.distinctVals;be.roundUp=su.roundUp;be.sort=su.sort;be.findIndexOfMin=su.findIndexOfMin;be.sortObjectKeys=Pb();var hl=rS();be.aggNums=hl.aggNums;be.len=hl.len;be.mean=hl.mean;be.geometricMean=hl.geometricMean;be.median=hl.median;be.midRange=hl.midRange;be.variance=hl.variance;be.stdev=hl.stdev;be.interp=hl.interp;var ro=Np();be.init2dArray=ro.init2dArray;be.transposeRagged=ro.transposeRagged;be.dot=ro.dot;be.translationMatrix=ro.translationMatrix;be.rotationMatrix=ro.rotationMatrix;be.rotationXYMatrix=ro.rotationXYMatrix;be.apply3DTransform=ro.apply3DTransform;be.apply2DTransform=ro.apply2DTransform;be.apply2DTransform2=ro.apply2DTransform2;be.convertCssMatrix=ro.convertCssMatrix;be.inverseTransformMatrix=ro.inverseTransformMatrix;var So=oS();be.deg2rad=So.deg2rad;be.rad2deg=So.rad2deg;be.angleDelta=So.angleDelta;be.angleDist=So.angleDist;be.isFullCircle=So.isFullCircle;be.isAngleInsideSector=So.isAngleInsideSector;be.isPtInsideSector=So.isPtInsideSector;be.pathArc=So.pathArc;be.pathSector=So.pathSector;be.pathAnnulus=So.pathAnnulus;var Wf=lS();be.isLeftAnchor=Wf.isLeftAnchor;be.isCenterAnchor=Wf.isCenterAnchor;be.isRightAnchor=Wf.isRightAnchor;be.isTopAnchor=Wf.isTopAnchor;be.isMiddleAnchor=Wf.isMiddleAnchor;be.isBottomAnchor=Wf.isBottomAnchor;var jf=fS();be.segmentsIntersect=jf.segmentsIntersect;be.segmentDistance=jf.segmentDistance;be.getTextLocation=jf.getTextLocation;be.clearLocationCache=jf.clearLocationCache;be.getVisibleSegment=jf.getVisibleSegment;be.findPointOnPath=jf.findPointOnPath;var Kp=bt();be.extendFlat=Kp.extendFlat;be.extendDeep=Kp.extendDeep;be.extendDeepAll=Kp.extendDeepAll;be.extendDeepNoArrays=Kp.extendDeepNoArrays;var Hb=nu();be.log=Hb.log;be.warn=Hb.warn;be.error=Hb.error;var sue=Nf();be.counterRegex=sue.counter;var Ub=Zp();be.throttle=Ub.throttle;be.throttleDone=Ub.done;be.clearThrottle=Ub.clear;var to=ih();be.getGraphDiv=to.getGraphDiv;be.isPlotDiv=to.isPlotDiv;be.removeElement=to.removeElement;be.addStyleRule=to.addStyleRule;be.addRelatedStyleRule=to.addRelatedStyleRule;be.deleteRelatedStyleRule=to.deleteRelatedStyleRule;be.setStyleOnHover=to.setStyleOnHover;be.getFullTransformMatrix=to.getFullTransformMatrix;be.getElementTransformMatrix=to.getElementTransformMatrix;be.getElementAndAncestors=to.getElementAndAncestors;be.equalDomRects=to.equalDomRects;be.clearResponsive=hS();be.preserveDrawingBuffer=yS();be.makeTraceGroups=gS();be._=xS();be.notifier=xb();be.filterUnique=wS();be.filterVisible=AS();be.pushUnique=Tb();be.increment=kS();be.cleanNumber=qS();be.ensureNumber=function(r){return PS(r)?(r=Number(r),r>NS||r=r?!1:PS(e)&&e>=0&&e%1===0};be.noop=Fp();be.identity=Eb();be.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};be.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};be.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(be.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};be.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};be.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};be.syncOrAsync=function(e,r,t){var a,n;function i(){return be.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};be.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};be.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};be.fillArray=function(e,r,t,a){if(a=a||be.identity,be.isArrayOrTypedArray(e))for(var n=0;ncue.test(window.navigator.userAgent);var vue=/Firefox\/(\d+)\.\d+/;be.getFirefoxVersion=function(){var e=vue.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};be.isD3Selection=function(e){return e instanceof vh.selection};be.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};be.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};be.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};be.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var BS=/^\w*$/;be.templateString=function(e,r){var t={};return e.replace(be.TEMPLATE_STRING_REGEX,function(a,n){var i;return BS.test(n)?i=r[n]:(t[n]=t[n]||be.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var pue={max:10,count:0,name:"hovertemplate"};be.hovertemplateString=e=>Gb(mp(Qs({},e),{opts:pue}));var yue={max:10,count:0,name:"texttemplate"};be.texttemplateString=e=>Gb(mp(Qs({},e),{opts:yue}));var mue=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function gue(e){var r=e.match(mue);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var bue={max:10,count:0,name:"texttemplate",parseMultDiv:!0};be.texttemplateStringForShapes=e=>Gb(mp(Qs({},e),{opts:bue}));var ES=/^[:|\|]/;function Gb({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(be.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=u||f||v||c;(f||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,y=null;if(n.parseMultDiv){var m=gue(l);l=m.key,p=m.op,y=m.number}let x;if(d){if(a[l]===void 0)return"";x=a[l]}else for(let w of e)if(w){if(w.hasOwnProperty(l)){x=w[l];break}if(BS.test(l)||(x=be.nestedProperty(w,l).get(!0)),x!==void 0)break}if(x===void 0){let{count:w,max:k,name:M}=n,S=t===!1?o:t;return w=$p&&o<=DS,u=l>=$p&&l<=DS;if(s&&(a=10*a+o-$p),u&&(n=10*n+l-$p),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Yf=2e9;be.seedPseudoRandom=function(){Yf=2e9};be.pseudoRandom=function(){var e=Yf;return Yf=(69069*Yf+1)%4294967296,Math.abs(Yf-e)<429496729?be.pseudoRandom():Yf/4294967296};be.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=be.extractOption(e,r,"htx","hovertext");if(be.isValidTextValue(n))return a(n);var i=be.extractOption(e,r,"tx","text");if(be.isValidTextValue(i))return a(i)};be.isValidTextValue=function(e){return e||e===0};be.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,be.strTranslate(n-u*(t+o),i-u*(a+l))+be.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};be.setTransormAndDisplay=function(e,r){e.attr("transform",be.getTextTransform(r)),e.style("display",r.scale?null:"none")};be.ensureUniformFontSize=function(e,r){var t=be.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};be.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};be.bigFont=function(e){return Math.round(1.2*e)};var RS=be.getFirefoxVersion(),xue=RS!==null&&RS<86;be.getPositionFromD3Event=function(){return xue?[vh.event.layerX,vh.event.layerY]:[vh.event.offsetX,vh.event.offsetY]}});var VS=N(()=>{"use strict";var _ue=Ce(),US={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Vb in US)GS=Vb.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),_ue.addStyleRule(GS,US[Vb]);var GS,Vb});var Yb=N((TDe,YS)=>{YS.exports=!0});var jb=N((ADe,WS)=>{"use strict";var wue=Yb(),Wb;typeof window.matchMedia=="function"?Wb=!window.matchMedia("(hover: none)").matches:Wb=wue;WS.exports=Wb});var uu=N((MDe,Zb)=>{"use strict";var Zf=typeof Reflect=="object"?Reflect:null,jS=Zf&&typeof Zf.apply=="function"?Zf.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Qp;Zf&&typeof Zf.ownKeys=="function"?Qp=Zf.ownKeys:Object.getOwnPropertySymbols?Qp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Qp=function(r){return Object.getOwnPropertyNames(r)};function Tue(e){console&&console.warn&&console.warn(e)}var XS=Number.isNaN||function(r){return r!==r};function Lt(){Lt.init.call(this)}Zb.exports=Lt;Zb.exports.once=Sue;Lt.EventEmitter=Lt;Lt.prototype._events=void 0;Lt.prototype._eventsCount=0;Lt.prototype._maxListeners=void 0;var ZS=10;function e1(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Lt,"defaultMaxListeners",{enumerable:!0,get:function(){return ZS},set:function(e){if(typeof e!="number"||e<0||XS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ZS=e}});Lt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Lt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||XS(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function JS(e){return e._maxListeners===void 0?Lt.defaultMaxListeners:e._maxListeners}Lt.prototype.getMaxListeners=function(){return JS(this)};Lt.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")jS(s,this,t);else for(var u=s.length,f=rq(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,Tue(l)}return e}Lt.prototype.addListener=function(r,t){return $S(this,r,t,!1)};Lt.prototype.on=Lt.prototype.addListener;Lt.prototype.prependListener=function(r,t){return $S(this,r,t,!0)};function Aue(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function KS(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Aue.bind(a);return n.listener=t,a.wrapFn=n,n}Lt.prototype.once=function(r,t){return e1(t),this.on(r,KS(this,r,t)),this};Lt.prototype.prependOnceListener=function(r,t){return e1(t),this.prependListener(r,KS(this,r,t)),this};Lt.prototype.removeListener=function(r,t){var a,n,i,o,l;if(e1(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():Mue(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Lt.prototype.off=Lt.prototype.removeListener;Lt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function QS(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?kue(n):rq(n,n.length)}Lt.prototype.listeners=function(r){return QS(this,r,!0)};Lt.prototype.rawListeners=function(r){return QS(this,r,!1)};Lt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):eq.call(e,r)};Lt.prototype.listenerCount=eq;function eq(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Lt.prototype.eventNames=function(){return this._eventsCount>0?Qp(this._events):[]};function rq(e,r){for(var t=new Array(r),a=0;a{"use strict";var Xb=uu().EventEmitter,Lue={init:function(e){if(e._ev instanceof Xb)return e;var r=new Xb,t=new Xb;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var nq=Ce(),Cue=au().dfltConfig;function Eue(e,r){for(var t=[],a,n=0;nCue.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};dl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};dl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};dl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";lq.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var $f=N(ba=>{"use strict";var hi=br(),dh=Ce(),t1=gn(),$b=Bf(),Due=Jb(),Rue=oh(),Pue=au().configAttributes,sq=eo(),ao=dh.extendDeepAll,Xf=dh.isPlainObject,Fue=dh.isArrayOrTypedArray,a1=dh.nestedProperty,Nue=dh.valObjectMeta,Kb="_isSubplotObj",n1="_isLinkedToArray",Iue="_arrayAttrRegexps",fq="_deprecated",Qb=[Kb,n1,Iue,fq];ba.IS_SUBPLOT_OBJ=Kb;ba.IS_LINKED_TO_ARRAY=n1;ba.DEPRECATED=fq;ba.UNDERSCORE_ATTRS=Qb;ba.get=function(){var e={};return hi.allTypes.forEach(function(r){e[r]=Oue(r)}),{defs:{valObjects:Nue,metaKeys:Qb.concat(["description","role","editType","impliedEdits"]),editType:{traces:sq.traces,layout:sq.layout},impliedEdits:{}},traces:e,layout:Bue(),frames:Hue(),animation:Jf(Rue),config:Jf(Pue)}};ba.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(Qb.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!ba.isValObject(o)&&Xf(o)&&i!=="impliedEdits"&&ba.crawl(o,r,n+1,l)}})};ba.isValObject=function(e){return e&&e.valType!==void 0};ba.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)Fue(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!r1(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function r1(e){return e===Math.round(e)&&e>=0}function Oue(e){var r,t;r=hi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=ao({},t1),i=ao({},r.attributes);ba.crawl(i,function(s,u,f,c,v){a1(n,v).set(void 0),s===void 0&&a1(i,v).set(void 0)}),ao(a,n),hi.traceIs(e,"noOpacity")&&delete a.opacity,hi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),hi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,ao(a,i),t.attributes&&ao(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Jf(a)};if(r.layoutAttributes){var l={};ao(l,r.layoutAttributes),o.layoutAttributes=Jf(l)}return r.animatable||ba.crawl(o,function(s){ba.isValObject(s)&&"anim"in s&&delete s.anim}),o}function Bue(){var e={},r,t;ao(e,$b);for(r in hi.subplotsRegistry)if(t=hi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Kf=Ce(),Wue=gn(),es="templateitemname",ex={name:{valType:"string",editType:"none"}};ex[es]={valType:"string",editType:"calc"};fu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=ex.name,r[es]=ex[es],r};fu.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Kf.coerce(i,{},Wue,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};fu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Kf.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};fu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[hq(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[es]=u[es];if(!vq(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][es]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Kf.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var y=c();for(var m in y)Kf.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var xa=N((EDe,dq)=>{"use strict";var ph=Nf().counter;dq.exports={idRegex:{x:ph("x","( domain)?"),y:ph("y","( domain)?")},attrRegex:ph("[xy]axis"),xAxisMatch:ph("xaxis"),yAxisMatch:ph("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var fa=N(Pn=>{"use strict";var jue=br(),rx=xa();Pn.id2name=function(r){if(!(typeof r!="string"||!r.match(rx.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Pn.name2id=function(r){if(r.match(rx.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Pn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(rx.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Pn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Pn.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Pn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function pq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Zue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Xue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}yq.exports={clearOutlineControllers:Zue,clearOutline:Xue}});var i1=N((PDe,mq)=>{"use strict";mq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var s1=N(l1=>{"use strict";var o1=br(),FDe=xa().SUBPLOT_PATTERN;l1.getSubplotCalcData=function(e,r,t){var a=o1.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Jue=br(),Qf=Ce();cu.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=cu.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){gq(e,o,n.cache),n.check=function(){if(i){var f=gq(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Qf.isPlainObject(i)?tx(i,r,o,a+1):r(o,n,i)}})}});var aa=N((zDe,Fq)=>{"use strict";var qq=Sr(),Kue=Df().timeFormatLocale,Que=ub().formatLocale,yh=Rr(),efe=fb(),Qr=br(),Lq=$f(),rfe=wt(),vr=Ce(),Cq=Tr(),wq=Ft().BADNUM,Fn=fa(),tfe=rs().clearOutline,afe=i1(),ax=oh(),nfe=Jb(),ife=s1().getModuleCalcData,Tq=vr.relinkPrivateKeys,vu=vr._,Qe=Fq.exports={};vr.extendFlat(Qe,Qr);Qe.attributes=gn();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=ga();Qe.layoutAttributes=Bf();var f1=_q();Qe.executeAPICommand=f1.executeAPICommand;Qe.computeAPICommandBindings=f1.computeAPICommandBindings;Qe.manageCommandObserver=f1.manageCommandObserver;Qe.hasSimpleAPICommandBindings=f1.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Qr.getComponentMethod("annotations","draw")(e),Qr.getComponentMethod("legend","draw")(e),Qr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Qr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=vr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Cq.defaultLine,"pointer-events":"all"}).each(function(){var u=qq.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&ofe(e,i),o.text(i.text()&&l.text()?" - ":"")}};function ofe(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Qe.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Qe.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=qq.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Qe.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var lfe=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],sfe=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:vu(e,"Click to enter Plot title"),subtitle:vu(e,"Click to enter Plot subtitle"),x:vu(e,"Click to enter X axis title"),y:vu(e,"Click to enter Y axis title"),colorbar:vu(e,"Click to enter Colorscale title"),annotation:vu(e,"new text")},n._traceWord=vu(e,"trace");var v=Aq(e,lfe);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;Qe.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,x=f.autosizable,T=y&&(m||x);T?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=cfe(v,n.separators),n._extraFormat=Aq(e,sfe),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=ffe(),b=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=ufe(o,s),Qe.supplyDataDefaults(s,l,i,n);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.length>1){for(Qr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(l,n,o,a),Qe.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),z=R,B=I;z&&!B?a._bgLayer.remove():B&&!z&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&tfe({_fullLayout:a}),vfe(l,n),Tq(n,a),Qr.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var G=n._tracePreGUI,Y={},V;for(V in G)Y[V]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Qe.layoutAttributes.width.min,v=Qe.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Qr.componentsRegistry,i=r._basePlotModules,o,l,s,u=Qr.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Qr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var x=(t.t+t.b)/v;x>1&&(t.t/=x,t.b/=x)}var T=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,w=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+y},r:{val:_,size:t.r+y},b:{val:w,size:t.b+y},t:{val:b,size:t.t+y}},p[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function dfe(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Fn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),Eq(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var x=e._fullLayout._reservedMargin;for(var T in x)for(var _ in x[T]){var b=x[T][_];o[_]=Math.max(o[_],b)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var w in o){var k=0;for(var M in v)M!=="base"&&yh(v[M][w].size)&&(k=v[M][w].size>k?v[M][w].size:k);var S=Math.max(0,i[w]-k);o[w]=Math.max(0,o[w]-S)}for(var E in v){var D=v[E].l||{},P=v[E].b||{},R=D.val,I=D.size,z=P.val,B=P.size,G=t-o.r-o.l,Y=a-o.t-o.b;for(var V in v){if(yh(I)&&v[V].r){var H=v[V].r.val,X=v[V].r.size;if(H>R){var W=(I*H+(X-G)*R)/(H-R),ee=(X*(1-R)+(I-G)*(1-H))/(H-R);W+ee>s+u&&(s=W,u=ee)}}if(yh(B)&&v[V].t){var oe=v[V].t.val,le=v[V].t.size;if(oe>z){var ue=(B*oe+(le-Y)*z)/(oe-z),K=(le*(1-z)+(B-Y)*(1-oe))/(oe-z);ue+K>c+f&&(c=ue,f=K)}}}}}var _e=vr.constrain(t-i.l-i.r,Dq,p),fe=vr.constrain(a-i.t-i.b,Rq,y),ve=Math.max(0,t-_e),ye=Math.max(0,a-fe);if(ve){var ce=(s+u)/ve;ce>1&&(s/=ce,u/=ce)}if(ye){var j=(c+f)/ye;j>1&&(c/=j,f/=j)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(l,n)||dfe(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Qe.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(v,d){if(typeof v=="function")return d?"_function_":null;if(vr.isPlainObject(v)){var p={},y;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.slice(-3)==="src")return}else if(t==="keepstream"){if(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0&&!vr.isPlainObject(v.stream))return}else if(t!=="keepall"&&(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[_]=u(v[_],d)}}),p}var m=Array.isArray(v),x=vr.isTypedArray(v);if((m||x)&&v.dtype&&v.shape){var T=v.bdata;return u({dtype:v.dtype,shape:v.shape,bdata:vr.isArrayBuffer(T)?efe.encode(T):T},d)}return m?v.map(function(_){return u(_,d)}):x?vr.simpleMap(v,vr.identity):vr.isJSDate(v)?vr.ms2DateTimeLocal(+v):v}var f={data:(o||[]).map(function(v){var d=u(v);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),n)){var c=l._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Qr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Qr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,o],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=Fn.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(w[s].enabled){i._indexToPoints=w[s]._indexToPoints;break}o&&o.calc&&(b=o.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:wq,y:wq}]),b[0].t||(b[0].t={}),b[0].trace=i,u[T]=b}}for(kq(t,a,n),l=0;l{"use strict";hu.xmlns="http://www.w3.org/2000/xmlns/";hu.svg="http://www.w3.org/2000/svg";hu.xlink="http://www.w3.org/1999/xlink";hu.svgAttrs={xmlns:hu.svg,"xmlns:xlink":hu.xlink}});var Ua=N((BDe,Nq)=>{"use strict";Nq.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Aa=N(di=>{"use strict";var ca=Sr(),yl=Ce(),gfe=yl.strTranslate,nx=pl(),bfe=Ua().LINE_SPACING,xfe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;di.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(xfe),i=ca.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=Rfe(e.node(),a);s&&e.style("pointer-events","all"),di.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};Afe(n[2],f,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var m=d.width,x=d.height;p.attr({class:o,height:x,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var T=e.node().style.fill||"black",_=p.select("g");_.attr({fill:T,stroke:T});var b=_.node().getBoundingClientRect(),w=b.width,k=b.height;(w>m||k>x)&&(p.style("overflow","hidden"),b=p.node().getBoundingClientRect(),w=b.width,k=b.height);var M=+e.attr("x"),S=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,D=-E/4;if(o[0]==="y")y.attr({transform:"rotate("+[-90,M,S]+")"+gfe(-w/2,D-k/2)});else if(o[0]==="l")S=D-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,S=D;else{var P=e.attr("text-anchor");M=M-w*(P==="middle"?.5:P==="end"?1:0),S=S+D-k/2}p.attr({x:M,y:S}),t&&t.call(e,y),s(y)})})):l(),e};var _fe=/(<|<|<)/g,wfe=/(>|>|>)/g;function Tfe(e){return e.replace(_fe,"\\lt ").replace(wfe,"\\gt ")}var Iq=[["$","$"],["\\(","\\)"]];function Afe(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){yl.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=yl.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Iq},displayAlign:"left"})},u=function(){i=yl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Iq},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var T="math-output-"+yl.randstr({},64);l=ca.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(Tfe(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var T=l.select(a===2?".MathJax_SVG":".MathJax"),_=!T.empty()&&l.select("svg").node();if(!_)yl.log("There was an error in the tex syntax.",e),t();else{var b=_.getBoundingClientRect(),w;a===2?w=ca.select("body").select("#MathJax_SVG_glyphs"):w=T.select("defs"),t(T,w,b)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},x=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,v,d,p,m):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),y(),x()}))}var Hq={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Mfe={sub:"0.3em",sup:"-0.6em"},kfe={sub:"-0.21em",sup:"0.42em"},zq="\u200B",Oq=["http:","https:","mailto:","",void 0,":"],Uq=di.NEWLINES=/(\r\n?|\n)/g,ox=/(<[^<>]*>)/,lx=/<(\/?)([^ >]*)(\s+(.*))?>/i,Sfe=//i;di.BR_TAG_ALL=//gi;var Gq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Vq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Yq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,qfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function du(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&c1(a)}var Lfe=/(^|;)\s*color:/;di.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(ox),l=[],s="",u=0,f=0;fi?l.push(c.slice(0,Math.max(0,y-i))+n):l.push(c.slice(0,y));break}s=""}}return l.join("")};var Cfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Efe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function c1(e){return e.replace(Efe,function(r,t){var a;return t.charAt(0)==="#"?a=Dfe(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Cfe[t],a||r})}di.convertEntities=c1;function Dfe(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Rfe(e,r){r=r.replace(Uq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(nx.svg,"tspan");ca.select(k).attr({class:"line",dy:i*bfe+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var S=1;S.",r);return}var M=a.pop();k!==M.type&&yl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Sfe.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(ox),v=0;v{"use strict";var Pfe=Sr(),h1=Cn(),gh=Rr(),v1=Ce(),jq=Tr(),Ffe=ru().isValid;function Nfe(e,r,t){var a=r?v1.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(v1.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function Qq(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var rL=Sb(),zfe=rL.FORMAT_LINK,Ofe=rL.DATE_FORMAT_LINK;function Bfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?sx:tL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function sx(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+zfe+"."].join(" ")}function tL(e,r){return sx(e,r)+[" And for dates see: "+Ofe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}aL.exports={axisHoverFormat:Bfe,descriptionOnlyNumbers:sx,descriptionWithDates:tL}});var pi=N((YDe,xL)=>{"use strict";var nL=ga(),ec=fi(),bL=ci().dash,fx=bt().extendFlat,iL=wt().templatedArray,VDe=Wn().templateFormatStringDescription,oL=no().descriptionWithDates,Hfe=Ft().ONEDAY,qo=xa(),Ufe=qo.HOUR_PATTERN,Gfe=qo.WEEKDAY_PATTERN,ux={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Vfe=fx({},ux,{values:ux.values.slice().concat(["sync"])});function lL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var sL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},uL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},fL={valType:"data_array",editType:"ticks"},cL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function vL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function hL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var dL={valType:"color",dflt:ec.defaultLine,editType:"ticks"},pL={valType:"color",dflt:ec.lightLine,editType:"ticks"};function yL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var mL=fx({},bL,{editType:"ticks"}),gL={valType:"boolean",editType:"ticks"};xL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:ec.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:nL({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[qo.idRegex.x.toString(),qo.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[qo.idRegex.x.toString(),qo.idRegex.y.toString()],editType:"calc"},rangebreaks:iL("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Gfe,Ufe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Hfe},editType:"calc"}),tickmode:Vfe,nticks:lL(),tick0:sL,dtick:uL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:fL,ticktext:{valType:"data_array",editType:"ticks"},ticks:cL,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:vL(),tickwidth:hL(),tickcolor:dL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:fx({},bL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:nL({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:oL("tick label")},tickformatstops:iL("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:oL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:ec.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:gL,gridcolor:pL,gridwidth:yL(),griddash:mL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:ec.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:ec.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",qo.idRegex.x.toString(),qo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",qo.idRegex.x.toString(),qo.idRegex.y.toString()],editType:"plot"},minor:{tickmode:ux,nticks:lL("minor"),tick0:sL,dtick:uL,tickvals:fL,ticks:cL,ticklen:vL("minor"),tickwidth:hL("minor"),tickcolor:dL,gridcolor:pL,gridwidth:yL("minor"),griddash:mL,showgrid:gL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var d1=N((WDe,TL)=>{"use strict";var Ct=pi(),_L=ga(),wL=bt().extendFlat,Yfe=eo().overrideAll;TL.exports=Yfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Ct.linecolor,outlinewidth:Ct.linewidth,bordercolor:Ct.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Ct.minor.tickmode,nticks:Ct.nticks,tick0:Ct.tick0,dtick:Ct.dtick,tickvals:Ct.tickvals,ticktext:Ct.ticktext,ticks:wL({},Ct.ticks,{dflt:""}),ticklabeloverflow:wL({},Ct.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Ct.ticklen,tickwidth:Ct.tickwidth,tickcolor:Ct.tickcolor,ticklabelstep:Ct.ticklabelstep,showticklabels:Ct.showticklabels,labelalias:Ct.labelalias,tickfont:_L({}),tickangle:Ct.tickangle,tickformat:Ct.tickformat,tickformatstops:Ct.tickformatstops,tickprefix:Ct.tickprefix,showtickprefix:Ct.showtickprefix,ticksuffix:Ct.ticksuffix,showticksuffix:Ct.showticksuffix,separatethousands:Ct.separatethousands,exponentformat:Ct.exponentformat,minexponent:Ct.minexponent,showexponent:Ct.showexponent,title:{text:{valType:"string"},font:_L({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Lo=N((ZDe,ML)=>{"use strict";var Wfe=d1(),jfe=Nf().counter,Zfe=Pb(),AL=ru().scales,jDe=Zfe(AL);function p1(e){return"`"+e+"`"}ML.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?AL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+p1(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",x=p1(u+d),T=p1(u+p),_=p1(u+y),b=T+" and "+_,w={};w[p]=w[y]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:w},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:w},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Wfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:jfe("coloraxis"),dflt:null,editType:"calc"}),M}});var vx=N((XDe,kL)=>{"use strict";var Xfe=bt().extendFlat,Jfe=Lo(),cx=ru().scales;kL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:cx.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:cx.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:cx.RdBu,editType:"calc"}},coloraxis:Xfe({_isSubplotObj:!0,editType:"calc"},Jfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var hx=N((JDe,SL)=>{"use strict";var $fe=Ce();SL.exports=function(r){return $fe.isPlainObject(r.colorbar)}});var yx=N(px=>{"use strict";var dx=Rr(),qL=Ce(),LL=Ft(),Kfe=LL.ONEDAY,Qfe=LL.ONEWEEK;px.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Kfe:1;if(!e)return i;if(dx(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=dx(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};px.tick0=function(e,r,t,a){if(r==="date")return qL.cleanDate(e,qL.dateTick0(t,a%Qfe===0?1:0));if(!(a==="D1"||a==="D2"))return dx(e)?Number(e):0}});var y1=N((KDe,EL)=>{"use strict";var CL=yx(),ece=Ce().isArrayOrTypedArray,rce=Ln().isTypedArraySpec,tce=Ln().decodeTypedArraySpec;EL.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(T){var _=l[T];return rce(_)&&(_=tce(_)),_!==void 0?_:(s._template||{})[T]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=ece(d)?"array":v?"linear":"auto",y=a(u+"tickmode",p);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var m=s.dtick=CL.dtick(v,n);s.tick0=CL.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var m1=N((QDe,RL)=>{"use strict";var mx=Ce(),DL=pi();RL.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?DL.minor:DL,u=i?"minor.":"",f=mx.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=mx.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=mx.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var gx=N((eRe,PL)=>{"use strict";PL.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var io=N((rRe,FL)=>{"use strict";var g1=Ce(),ace=wt();FL.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=g1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=ace.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var bx=Ce(),nce=Tr().contrast,NL=pi(),ice=gx(),oce=io();IL.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");bx.isPlainObject(o)||delete t.labelalias;var l=ice(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?nce(i.bgColor):f&&f!==NL.color.dflt?f:u.color;if(bx.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");oce(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:lce}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function lce(e,r){function t(n,i){return bx.coerce(e,r,NL.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var x1=N((aRe,zL)=>{"use strict";var sce=gx();zL.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=sce(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var xx=N((nRe,OL)=>{"use strict";var ts=Ce(),uce=wt(),fce=y1(),cce=m1(),vce=b1(),hce=x1(),dce=d1();OL.exports=function(r,t,a){var n=uce.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return ts.coerce(i,n,dce,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),y=o("xref"),m=p==="paper",x=y==="paper",T,_,b,w="left";c?(b="middle",w=x?"left":"right",T=x?1.02:1,_=.5):(b=m?"bottom":"top",w="center",T=.5,_=m?1.02:1),ts.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:T}},"x"),ts.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",w),o("xpad"),o("yanchor",b),o("ypad"),ts.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=ts.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),fce(i,n,o,"linear");var M=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(S.bgColor="black"),hce(i,n,o,"linear",S),vce(i,n,o,"linear",S),cce(i,n,o,"linear",S),o("title.text",a._dfltTitle.colorbar);var E=n.showticklabels?n.tickfont:M,D=ts.extendFlat({},M,{family:E.family,size:ts.bigFont(E.size)});ts.coerceFont(o,"title.font",D),o("title.side",c?"top":"right")}});var ml=N((iRe,UL)=>{"use strict";var BL=Rr(),wx=Ce(),pce=hx(),yce=xx(),HL=ru().isValid,mce=br().traceIs;function _x(e,r){var t=r.slice(0,r.length-1);return r?wx.nestedProperty(e,t).get()||{}:e}UL.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=_x(r,o),f=_x(t,o),c=_x(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var y=mce(t,"contour")&&wx.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,wx.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[v]];return}}var x=u[l+"min"],T=u[l+"max"],_=BL(x)&&BL(T)&&x{"use strict";var GL=Ce(),gce=wt(),VL=vx(),bce=ml();YL.exports=function(r,t){function a(c,v){return GL.coerce(r,t,VL,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return GL.coerce(i,o,VL.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=gce.newContainer(t,s,"coloraxis"),o._name=s,bce(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var xce=Ce(),_ce=Zn().hasColorscale,wce=Zn().extractOpts;jL.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?xce.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=wce(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var XL=Rr(),Tx=Ce(),Tce=Zn().extractOpts;JL.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?Tx.nestedProperty(t,o).get():t,s=Tce(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return Tx.aggNums(Math.min,null,i)},p=function(){return Tx.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&XL(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&XL(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var Co=N((uRe,$L)=>{"use strict";var _1=ru(),tc=Zn();$L.exports={moduleType:"component",name:"colorscale",attributes:Lo(),layoutAttributes:vx(),supplyLayoutDefaults:WL(),handleDefaults:ml(),crossTraceDefaults:ZL(),calc:rc(),scales:_1.scales,defaultScale:_1.defaultScale,getScale:_1.get,isValidScale:_1.isValid,hasColorscale:tc.hasColorscale,extractOpts:tc.extractOpts,extractScale:tc.extractScale,flipScale:tc.flipScale,makeColorScaleFunc:tc.makeColorScaleFunc,makeColorScaleFuncFromTrace:tc.makeColorScaleFuncFromTrace}});var Nn=N((fRe,QL)=>{"use strict";var KL=Ce(),Ace=Ln().isTypedArraySpec;QL.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return KL.isPlainObject(r)&&(KL.isArrayOrTypedArray(r.size)||Ace(r.size))}}});var rC=N((cRe,eC)=>{"use strict";var Mce=Rr();eC.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Mce(s)&&s>0?Math.max(s,i):0}}});var Eo=N($a=>{"use strict";var w1=Ce();$a.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};$a.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{nC.exports=Cce;var Ax={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Lce=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Cce(e){var r=[];return e.replace(Lce,function(t,a,n){var i=a.toLowerCase();for(n=Dce(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Ax[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var Rce=Mx(),$e=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",iC=Math.sqrt(2),as=Math.sqrt(3),kx=Math.PI,Sx=Math.cos,qx=Math.sin;fC.exports={circle:{n:0,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Cr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.4,2),n=$e(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.8/iC,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Cr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*2/as,2),n=$e(e/2,2),i=$e(e,2);return Cr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*2/as,2),n=$e(e/2,2),i=$e(e,2);return Cr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*2/as,2),n=$e(e/2,2),i=$e(e,2);return Cr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*2/as,2),n=$e(e/2,2),i=$e(e,2);return Cr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Cr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Cr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Cr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.951,2),n=$e(e*.588,2),i=$e(-e,2),o=$e(e*-.309,2),l=$e(e*.809,2);return Cr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*as/2,2);return Cr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*as/2,2);return Cr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.924,2),n=$e(e*.383,2);return Cr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Lr(r))return qr;var a=e*1.4,n=$e(a*.225,2),i=$e(a*.951,2),o=$e(a*.363,2),l=$e(a*.588,2),s=$e(-a,2),u=$e(a*-.309,2),f=$e(a*.118,2),c=$e(a*.809,2),v=$e(a*.382,2);return Cr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.66,2),n=$e(e*.38,2),i=$e(e*.76,2);return Cr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*as*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),o=$e(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*as*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),o=$e(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.1,2),n=$e(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.4,2),n=$e(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*.7,2),n=$e(e*1.4,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.4,2),n=$e(e*.7,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2);return Cr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2),n=$e(e/iC,2);return Cr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.3,2),n=$e(e*.65,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.2,2),n=$e(e*.85,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e/2,2),n=$e(e,2);return Cr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Cr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Cr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Cr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Cr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.4,2);return Cr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2);return Cr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Cr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Cr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Lr(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Lr(r))return qr;var a=kx/2.5,n=2*e*Sx(a),i=2*e*qx(a);return Cr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Lr(r))return qr;var a=kx/4,n=2*e*Sx(a),i=2*e*qx(a);return Cr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Lr(e){return e===null}var oC,lC,sC,uC;function Cr(e,r,t){if((!e||e%360===0)&&!r)return t;if(sC===e&&uC===r&&oC===t)return lC;sC=e,uC=r,oC=t;function a(m,x){var T=Sx(m),_=qx(m),b=x[0],w=x[1]+(r||0);return[b*T-w*_,b*_+w*T]}for(var n=e/180*kx,i=0,o=0,l=Rce(t),s="",u=0;u{"use strict";var Ma=Sr(),yt=Ce(),Pce=yt.numberFormat,gu=Rr(),Px=Cn(),A1=br(),Ga=Tr(),Fce=Co(),xh=yt.strTranslate,M1=Aa(),Nce=pl(),Ice=Ua(),zce=Ice.LINE_SPACING,_C=Rp().DESELECTDIM,Oce=Nn(),Bce=rC(),Hce=Eo().appendArrayPointValue,tr=EC.exports={};tr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ga.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Lx(Gce(f))),s&&e.style("text-shadow",s==="auto"?M1.makeTextShadow(Ga.contrast(i)):Lx(s)),u&&e.style("text-decoration-line",Lx(Vce(u)))};function Lx(e){return e==="none"?void 0:e}var Uce={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Gce(e){return Uce[e]}function Vce(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}tr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};tr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};tr.setRect=function(e,r,t,a,n){e.call(tr.setPosition,r,t).call(tr.setSize,a,n)};tr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(gu(n)&&gu(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",xh(n,i));else return!1;return!0};tr.translatePoints=function(e,r,t){e.each(function(a){var n=Ma.select(this);tr.translatePoint(a,n,r,t)})};tr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};tr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=A1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){tr.hideOutsideRangePoint(u,Ma.select(this),t,a,o,l)})})}};tr.crispRound=function(e,r,t){return!r||!gu(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};tr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Ga.stroke(r,a||i.color),tr.dashLine(r,l,o)};tr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";Ma.select(this).call(Ga.stroke,t||i.color).call(tr.dashLine,l,o)})};tr.dashLine=function(e,r,t){t=+t||0,r=tr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};tr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function wC(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=tr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;tr.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,x;p==="horizontal"?(m={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},x={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(MC,t,y,"linear",i.colorscale,"fill",m,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(tr.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ga.fill,r.fillcolor)}tr.singleFillStyle=function(e,r){var t=Ma.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};wC(e,n,r,!1)};tr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Ma.select(this);a[0].trace&&wC(n,a[0].trace,r,t)})};var vC=cC();tr.symbolNames=[];tr.symbolFuncs=[];tr.symbolBackOffs=[];tr.symbolNeedLines={};tr.symbolNoDot={};tr.symbolNoFill={};tr.symbolList=[];Object.keys(vC).forEach(function(e){var r=vC[e],t=r.n;tr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),tr.symbolNames[t]=e,tr.symbolFuncs[t]=r.f,tr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(tr.symbolNeedLines[t]=!0),r.noDot?tr.symbolNoDot[t]=!0:tr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(tr.symbolNoFill[t]=!0)});var Yce=tr.symbolNames.length,Wce="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";tr.symbolNumber=function(e){if(gu(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=tr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Yce||e>=400?0:Math.floor(Math.max(e,0))};function TC(e,r,t,a){var n=e%100;return tr.symbolFuncs[n](r,t,a)+(e>=200?Wce:"")}var hC=Pce("~f"),AC={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};tr.gradient=function(e,r,t,a,n,i){var o=AC[a];return MC(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function MC(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=tr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=Ix(e,t),c=Nx(e,t);r.attr("d",TC(u,s,f,c))}var v=!1,d,p,y;if(e.so)y=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):yt.isArrayOrTypedArray(l.color)?p=Ga.defaultLine:p=l.color,yt.isArrayOrTypedArray(o.color)&&(d=Ga.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let x=e.mld||(l||{}).dash;if(x&&tr.dashLine(r,x,y),e.om)r.call(Ga.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var T=o.gradient,_=e.mgt;_?v=!0:_=T&&T.type,yt.isArrayOrTypedArray(_)&&(_=_[0],AC[_]||(_=0));var b=o.pattern,w=tr.getPatternAttr,k=b&&(w(b.shape,e.i,"")||w(b.path,e.i,""));if(_&&_!=="none"){var M=e.mgc;M?v=!0:M=T.color;var S=t.uid;v&&(S+="-"+e.i),tr.gradient(r,n,S,_,[[0,M],[1,d]],"fill")}else if(k){var E=!1,D=b.fgcolor;!D&&i&&i.color&&(D=i.color,E=!0);var P=w(D,e.i,i&&i.color||null),R=w(b.bgcolor,e.i,null),I=b.fgopacity,z=w(b.size,e.i,8),B=w(b.solidity,e.i,.3);E=E||e.mcc||yt.isArrayOrTypedArray(b.shape)||yt.isArrayOrTypedArray(b.path)||yt.isArrayOrTypedArray(b.bgcolor)||yt.isArrayOrTypedArray(b.fgcolor)||yt.isArrayOrTypedArray(b.size)||yt.isArrayOrTypedArray(b.solidity);var G=t.uid;E&&(G+="-"+e.i),tr.pattern(r,"point",n,G,k,z,B,e.mcc,b.fillmode,R,P,I)}else yt.isArrayOrTypedArray(d)?Ga.fill(r,d[e.i]):Ga.fill(r,d);y&&Ga.stroke(r,p)}};tr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=tr.tryColorscale(t,""),r.lineScale=tr.tryColorscale(t,"line"),A1.traceIs(e,"symbols")&&(r.ms2mrc=Oce.isBubble(e)?Bce(e):function(){return(t.size||6)/2}),e.selectedpoints&&yt.extendFlat(r,tr.makeSelectedPointStyleFns(e)),r};tr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(yt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var w=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:w:c?u:_C*w});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(b){var w=b.mcc||v;return b.selected?d||w:p||w});var y=n.size,m=i.size,x=o.size,T=m!==void 0,_=x!==void 0;return A1.traceIs(e,"symbols")&&(T||_)&&(r.selectedSizeFn=function(b){var w=b.mrc||y/2;return b.selected?T?m/2:w:_?x/2:w}),r};tr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Ga.addOpacity(c,_C))},r};tr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Ga.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",TC(tr.symbolNumber(l),s,Ix(o,r),Nx(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Ma.select(this),l=0;l0?t:0}tr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=tr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Ma.select(this),u=i?yt.extractOption(l,r,"txt","texttemplate"):yt.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};Hce(v,r,l.i),u=yt.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=SC(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(tr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(u).call(M1.convertToTspans,t).call(kC,d,p,l.mrc)})}};tr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Ma.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=SC(a,r);Ga.fill(n,i);var s=A1.traceIs(r,"bar-like");kC(n,o,l,a.mrc2||a.mrc,s)})}};var dC=.5;tr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(w<=c&&w>=u||w>=c&&w<=u)&&(e=[b,w])}return e}tr.applyBackoff=CC;tr.makeTester=function(){var e=yt.ensureSingleById(Ma.select("body"),"svg","js-plotly-tester",function(t){t.attr(Nce.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=yt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});tr.tester=e,tr.testref=r};tr.savedBBoxes={};var Ex=0,Xce=1e4;tr.bBox=function(e,r,t){t||(t=pC(e));var a;if(t){if(a=tr.savedBBoxes[t],a)return yt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=pC(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=tr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=tr.savedBBoxes[t],a)return yt.extendFlat({},a)}}var u,f;r?u=e:(f=tr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Ma.select(u).attr("transform",null).call(M1.positionText,0,0);var c=u.getBoundingClientRect(),v=tr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Ex>=Xce&&(tr.savedBBoxes={},Ex=0),t&&(tr.savedBBoxes[t]=d),Ex++,yt.extendFlat({},d)};function pC(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}tr.setClipUrl=function(e,r,t){e.attr("clip-path",Fx(r,t))};function Fx(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}tr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};tr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=xh(r,t),o=o.trim(),e[i]("transform",o),o};tr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};tr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Jce=/\s*sc.*/;tr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Jce,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var $ce=/translate\([^)]*\)\s*$/;tr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Ma.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match($ce);r===1&&t===1?a=[]:a=[xh(o,l),"scale("+r+","+t+")",xh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Nx(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}tr.getMarkerStandoff=Nx;var bh=Math.atan2,pu=Math.cos,nc=Math.sin;function yC(e,r){var t=r[0],a=r[1];return[t*pu(e)-a*nc(e),t*nc(e)+a*pu(e)]}var mC,gC,bC,xC,Dx,Rx;function Ix(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||yt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=bh(v[1]-n,v[0]-a),p=bh(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,x=f/180*Math.PI,T=mC/180*Math.PI,_=gC/180*Math.PI,b=T-m,w=pu(_)*nc(b),k=nc(_)*pu(x)-pu(_)*nc(x)*pu(b);y=-bh(w,k)-Math.PI,mC=u,gC=f}var M=yC(d,[pu(y),0]),S=yC(p,[nc(y),0]);t=bh(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(Rx===r.uid&&e.i===Dx+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Rx===r.uid&&e.i===Dx+1&&gu(a)&&gu(n)){var E=a-bC,D=n-xC,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(D=0),R==="v"&&(E=0),t+=bh(D,E)/Math.PI*180+90}else t=null}return bC=a,xC=n,Dx=e.i,Rx=r.uid,t}tr.getMarkerAngle=Ix});var lc=N((yRe,FC)=>{"use strict";var ic=Sr(),Kce=Rr(),Qce=aa(),zx=br(),bu=Ce(),DC=bu.strTranslate,k1=Yr(),S1=Tr(),oc=Aa(),RC=Rp(),eve=Ua().OPPOSITE_SIDE,PC=/ [XY][0-9]* /,Ox=1.6,Bx=1.6;function rve(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},x=m.family,T=m.size,_=m.color,b=m.weight,w=m.style,k=m.variant,M=m.textcase,S=m.lineposition,E=m.shadow,D=t.subtitlePropName,P=!!D,R=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},z=(I.text||"").trim(),B=!1,G=1,Y=I.font,V=Y.family,H=Y.size,X=Y.color,W=Y.weight,ee=Y.style,oe=Y.variant,le=Y.textcase,ue=Y.lineposition,K=Y.shadow,_e;i==="title.text"?_e="titleText":i.indexOf("axis")!==-1?_e="axisTitleText":i.indexOf("colorbar")!==-1&&(_e="colorbarTitleText");var fe=e._context.edits[_e];function ve(Oe,Ue){return Oe===void 0||Ue===void 0?!1:Oe.replace(PC," % ")===Ue.replace(PC," % ")}p===""?v=0:ve(p,o)&&(fe||(p=""),v=.2,y=!0),P&&(z===""?G=0:ve(z,R)&&(fe||(z=""),G=.2,B=!0)),t._meta?p=bu.templateString(p,t._meta):a._meta&&(p=bu.templateString(p,a._meta));var ye=p||z||fe,ce;c||(c=bu.ensureSingle(a._infolayer,"g","g-"+r),ce=a._hColorbarMoveTitle);var j=c.selectAll("text."+r).data(ye?[0]:[]);j.enter().append("text"),j.text(p).attr("class",r),j.exit().remove();var Q=null,Z=r+"-subtitle",ie=z||fe;if(P&&(Q=c.selectAll("text."+Z).data(ie?[0]:[]),Q.enter().append("text"),Q.text(z).attr("class",Z),Q.exit().remove()),!ye)return c;function he(Oe,Ue){bu.syncOrAsync([me,Re],{title:Oe,subtitle:Ue})}function me(Oe){var Ue=Oe.title,Ee=Oe.subtitle,ze;!f&&ce&&(f={}),f?(ze="",f.rotate&&(ze+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ce)&&(ze+=DC(0,(f.offset||0)-(ce||0)))):ze=null,Ue.attr("transform",ze);function Ge(Te){if(Te){var qe=ic.select(Te.node().parentNode).select("."+Z);if(!qe.empty()){var Be=Te.node().getBBox();if(Be.height){var Xe=Be.y+Be.height+Ox*H;qe.attr("y",Xe)}}}}if(Ue.style("opacity",v*S1.opacity(_)).call(k1.font,{color:S1.rgb(_),size:ic.round(T,2),family:x,weight:b,style:w,variant:k,textcase:M,shadow:E,lineposition:S}).attr(u).call(oc.convertToTspans,e,Ge),Ee&&!Ee.empty()){var se=c.select("."+r+"-math-group"),Ae=Ue.node().getBBox(),Je=se.node()?se.node().getBBox():void 0,dr=Je?Je.y+Je.height+Ox*H:Ae.y+Ae.height+Bx*H,Ne=bu.extendFlat({},u,{y:dr});Ee.attr("transform",ze),Ee.style("opacity",G*S1.opacity(X)).call(k1.font,{color:S1.rgb(X),size:ic.round(H,2),family:V,weight:W,style:ee,variant:oe,textcase:le,shadow:K,lineposition:ue}).attr(Ne).call(oc.convertToTspans,e)}return Qce.previousPromises(e)}function Re(Oe){var Ue=Oe.title,Ee=ic.select(Ue.node().parentNode);if(s&&s.selection&&s.side&&p){Ee.attr("transform",null);var ze=eve[s.side],Ge=s.side==="left"||s.side==="top"?-1:1,se=Kce(s.pad)?s.pad:2,Ae=k1.bBox(Ee.node()),Je={t:0,b:0,l:0,r:0},dr=e._fullLayout._reservedMargin;for(var Ne in dr)for(var Te in dr[Ne]){var qe=dr[Ne][Te];Je[Te]=Math.max(Je[Te],qe)}var Be={left:Je.l,top:Je.t,right:a.width-Je.r,bottom:a.height-Je.b},Xe=s.maxShift||Ge*(Be[s.side]-Ae[s.side]),Ve=0;if(Xe<0)Ve=Xe;else{var We=s.offsetLeft||0,lr=s.offsetTop||0;Ae.left-=We,Ae.right-=We,Ae.top-=lr,Ae.bottom-=lr,s.selection.each(function(){var er=k1.bBox(this);bu.bBoxIntersect(Ae,er,se)&&(Ve=Math.max(Ve,Ge*(er[s.side]-Ae[ze])+se))}),Ve=Math.min(Xe,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Xe<0){var rr={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];Ee.attr("transform",DC(rr[0],rr[1]))}}}j.call(he,Q);function De(Oe,Ue){Oe.text(Ue).on("mouseover.opacity",function(){ic.select(this).transition().duration(RC.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){ic.select(this).transition().duration(RC.HIDE_PLACEHOLDER).style("opacity",0)})}if(fe&&(p?j.on(".opacity",null):(De(j,o),y=!0),j.call(oc.makeEditable,{gd:e}).on("edit",function(Oe){l!==void 0?zx.call("_guiRestyle",e,i,Oe,l):zx.call("_guiRelayout",e,i,Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(he)}).on("input",function(Oe){this.text(Oe||" ").call(oc.positionText,u.x,u.y)}),P)){if(P&&!p){var Le=j.node().getBBox(),He=Le.y+Le.height+Bx*H;Q.attr("y",He)}z?Q.on(".opacity",null):(De(Q,R),B=!0),Q.call(oc.makeEditable,{gd:e}).on("edit",function(Oe){zx.call("_guiRelayout",e,"title.subtitle.text",Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(he)}).on("input",function(Oe){this.text(Oe||" ").call(oc.positionText,Q.attr("x"),Q.attr("y"))})}return j.classed("js-placeholder",y),Q&&!Q.empty()&&Q.classed("js-placeholder",B),c}FC.exports={draw:rve,SUBTITLE_PADDING_EM:Bx,SUBTITLE_PADDING_MATHJAX_EM:Ox}});var sc=N((mRe,BC)=>{"use strict";var tve=Sr(),ave=Df().utcFormat,Tt=Ce(),nve=Tt.numberFormat,Do=Rr(),ns=Tt.cleanNumber,ive=Tt.ms2DateTime,NC=Tt.dateTime2ms,Ro=Tt.ensureNumber,IC=Tt.isArrayOrTypedArray,is=Ft(),q1=is.FP_SAFE,oo=is.BADNUM,ove=is.LOG_CLIP,lve=is.ONEWEEK,L1=is.ONEDAY,C1=is.ONEHOUR,zC=is.ONEMIN,OC=is.ONESEC,E1=fa(),P1=xa(),D1=P1.HOUR_PATTERN,R1=P1.WEEKDAY_PATTERN;function _h(e){return Math.pow(10,e)}function Hx(e){return e!=null}BC.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,w){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&w&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*ove*Math.abs(k-M))}else return oo}function o(b,w,k,M){if((M||{}).msUTC&&Do(b))return+b;var S=NC(b,k||r.calendar);if(S===oo)if(Do(b)){b=+b;var E=Math.floor(Tt.mod(b+.05,1)*10),D=Math.round(b-E/10);S=NC(new Date(D))+E/10}else return oo;return S}function l(b,w,k){return ive(b,w,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Hx(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var w=r._categories.length-1;return r._categoriesMap[b]=w,w}return oo}function f(b,w){for(var k=new Array(w),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,S=M*b,E=0,D=0;DR)E=D+1;else{E=S<(P+R)/2?D:D+1;break}}var I=r._B[E]||0;return isFinite(I)?p(b,r._m2,I):0},x=function(b){var w=r._rangebreaks.length;if(!w)return y(b,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return y(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Ro,r.l2c=r.type==="log"?_h:Ro,r.l2p=m,r.p2l=x,r.c2p=r.type==="log"?function(b,w){return m(i(b,w))}:m,r.p2c=r.type==="log"?function(b){return _h(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=ns,r.c2d=r.c2r=r.l2d=r.l2r=Ro,r.d2p=r.r2p=function(b){return r.l2p(ns(b))},r.p2d=r.p2r=x,r.cleanPos=Ro):r.type==="log"?(r.d2r=r.d2l=function(b,w){return i(ns(b),w)},r.r2d=r.r2c=function(b){return _h(ns(b))},r.d2c=r.r2l=ns,r.c2d=r.l2r=Ro,r.c2r=i,r.l2d=_h,r.d2p=function(b,w){return r.l2p(r.d2r(b,w))},r.p2d=function(b){return _h(x(b))},r.r2p=function(b){return r.l2p(ns(b))},r.p2r=x,r.cleanPos=Ro):r.type==="date"?(r.d2r=r.r2d=Tt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,w,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,w,k){return l(x(b),w,k)},r.cleanPos=function(b){return Tt.cleanDate(b,oo,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var w=d(b);return w!==void 0?w:r.fraction2r(.5)},r.l2r=r.c2r=Ro,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Ro(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var w=v(b);return w!==void 0?w:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ro,r.r2l=v,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Ro(b)},r.setupMultiCategory=function(b){var w=r._traceIndices,k,M,S=r._matchGroup;if(S&&r._categories.length===0){for(var E in S)if(E!==a){var D=t[E1.id2name(E)];w=w.concat(D._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;kD[1]&&(M[E?0:1]=k,S[1]=D[1]),S[0]>=S[1])if(w!==void 0){var P=D[0]+1;k!==void 0&&(P=Math.min(P,D[1])),M[E?0:1]=r.l2r(P)}else k!==void 0&&(M[E?1:0]=r.l2r(D[1]-1))}},r.cleanRange=function(b,w){r._cleanRange(b,w),r.limitRange(b)},r._cleanRange=function(b,w){w||(w={}),b||(b="range");var k=Tt.nestedProperty(r,b).get(),M,S;if(r.type==="date"?S=Tt.dfltRange(r.calendar):n==="y"?S=P1.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=w.dfltRange||P1.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){Tt.nestedProperty(r,b).set(S);return}var E=k[0]===null,D=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Tt.cleanDate(k[0],oo,r.calendar),k[1]=Tt.cleanDate(k[1],oo,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Tt.isDateTime(k[M],r.calendar)){r[b]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Tt.constrain(r.r2l(k[0]),Tt.MIN_MS+1e3,Tt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!Do(k[M]))if(!(E||D)&&Do(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=S;break}if(k[M]<-q1?k[M]=-q1:k[M]>q1&&(k[M]=q1),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(b){var w=t._size;if(r.overlaying){var k=E1.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",S=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],S),D=r.r2l(r[M][1],S),P=n==="y";if(P?(r._offset=w.t+(1-r.domain[1])*w.h,r._length=w.h*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D):(r._offset=w.l+r.domain[0]*w.w,r._length=w.w*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,I;if(r._rangebreaks=r.locateBreaks(Math.min(E,D),Math.max(E,D)),r._rangebreaks.length){for(R=0;RD&&(z=!z),z&&r._rangebreaks.reverse();var B=z?-1:1;for(r._m2=B*r._length/(Math.abs(D-E)-r._lBreaks),r._B.push(-r._m2*(P?D:E)),R=0;RS&&(S+=7,ES&&(S+=24,E=M&&E=M&&b=K.min&&(eeK.max&&(K.max=oe),le=!1)}le&&D.push({min:ee,max:oe})}};for(k=0;k{"use strict";var HC=Rr(),Ux=Ce(),sve=Ft().BADNUM,F1=Ux.isArrayOrTypedArray,uve=Ux.isDateTime,fve=Ux.cleanNumber,UC=Math.round;VC.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(F1(n)&&!n.length)return"-";if(!i&&pve(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function GC(e){return Math.max(1,(e-1)/1e3)}function dve(e,r){for(var t=e.length,a=GC(t),n=0,i=0,o={},l=0;ln*2}function pve(e){return F1(e[0])&&F1(e[1])}});var wh=N((bRe,KC)=>{"use strict";var yve=Sr(),ZC=Rr(),os=Ce(),I1=Ft().FP_SAFE,mve=br(),gve=Yr(),XC=fa(),bve=XC.getFromId,xve=XC.isLinked;KC.exports={applyAutorangeOptions:$C,getAutoRange:Gx,makePadFn:Vx,doAutoRange:wve,findExtremes:Tve,concatExtremes:jx};function Gx(e,r){var t,a,n=[],i=e._fullLayout,o=Vx(i,r,0),l=Vx(i,r,1),s=jx(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return os.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(D=_-o(k)-l(M),D>b?P/D>w&&(S=k,E=M,w=P/D):P/_>w&&(S={val:k.val,nopad:1},E={val:M.val,nopad:1},w=P/_));function R(Y,V){return Math.max(Y,l(V))}if(c===v){var I=c-1,z=c+1;if(x)if(c===0)n=[0,1];else{var B=(c>0?f:u).reduce(R,0),G=c/(1-Math.min(.5,B/_));n=c>0?[0,G]:[G,0]}else T?n=[Math.max(0,I),Math.max(1,z)]:n=[I,z]}else x?(S.val>=0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):T&&(S.val-w*o(S)<0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),w=(E.val-S.val-YC(r,k.val,M.val))/(_-o(S)-l(E)),n=[S.val-w*o(S),E.val+w*l(E)];return n=$C(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),os.simpleMap(n,r.l2r||Number)}function YC(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),S=b(t.vpadminus||t.vpad);if(!u){if(T=1/0,_=-1/0,s)for(c=0;c0&&(T=v),v>_&&v-I1&&(T=v),v>_&&v=P;c--)D(c);return{min:a,max:n,opts:t}}function Yx(e,r,t,a){JC(e,r,t,a,Ave)}function Wx(e,r,t,a){JC(e,r,t,a,Mve)}function JC(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function jC(e){return ZC(e)&&Math.abs(e)=r}function kve(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&z1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&z1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Sve(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&z1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&z1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function z1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=kve(t,r),a=Sve(a,r),[t,a]}});var zr=N((_Re,_E)=>{"use strict";var yi=Sr(),va=Rr(),uc=aa(),Ah=br(),xr=Ce(),fc=xr.strTranslate,xu=Aa(),qve=lc(),Mh=Tr(),Xn=Yr(),Lve=pi(),QC=yx(),xRe=xa(),Va=Ft(),Cve=Va.ONEMAXYEAR,H1=Va.ONEAVGYEAR,U1=Va.ONEMINYEAR,Eve=Va.ONEMAXQUARTER,$x=Va.ONEAVGQUARTER,G1=Va.ONEMINQUARTER,Dve=Va.ONEMAXMONTH,cc=Va.ONEAVGMONTH,V1=Va.ONEMINMONTH,Jn=Va.ONEWEEK,ln=Va.ONEDAY,ls=ln/2,Fo=Va.ONEHOUR,kh=Va.ONEMIN,Y1=Va.ONESEC,Rve=Va.ONEMILLI,Pve=Va.ONEMICROSEC,_u=Va.MINUS_SIGN,j1=Va.BADNUM,Kx={K:"zeroline"},Qx={K:"gridline",L:"path"},e5={K:"minor-gridline",L:"path"},fE={K:"tick",L:"path"},eE={K:"tick",L:"text"},rE={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Z1=Ua(),Th=Z1.MID_SHIFT,wu=Z1.CAP_SHIFT,Sh=Z1.LINE_SPACING,Fve=Z1.OPPOSITE_SIDE,W1=3,Ye=_E.exports={};Ye.setConvert=sc();var Nve=N1(),No=fa(),Ive=No.idSort,zve=No.isLinked;Ye.id2name=No.id2name;Ye.name2id=No.name2id;Ye.cleanId=No.cleanId;Ye.list=No.list;Ye.listIds=No.listIds;Ye.getFromId=No.getFromId;Ye.getFromTrace=No.getFromTrace;var cE=wh();Ye.getAutoRange=cE.getAutoRange;Ye.findExtremes=cE.findExtremes;var Ove=1e-4;function n5(e){var r=(e[1]-e[0])*Ove;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},xr.coerce(e,r,u,s)};Ye.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var s=t._fullLayout._subplots[l+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(v=>v+" domain")),s=s.concat(i||[]),f.length>o?(xr.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=Ye.tickIncrement(e,"M6","reverse")+ln*1.5:i.exactMonths>o?e=Ye.tickIncrement(e,"M1","reverse")+ln*15.5:e-=ls;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&va(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=xr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=xr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var l=va(r.dtick),s=va(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?Zx(u,f)?u===2*Jn&&f===2*ln&&(e.dtick=Jn):u===2*Jn&&f===3*ln?e.dtick=Jn:u===Jn&&!(r._input.minor||{}).nticks?e.dtick=ln:nE(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Zx(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Zx(u,f)||(e.dtick=nE(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0)};function Zx(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function nE(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=xr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?xr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=xr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=U1?u>=U1&&u<=Cve?c=u:c=H1:t===$x&&f>=G1?u>=G1&&u<=Eve?c=u:c=$x:f>=V1?u>=V1&&u<=Dve?c=u:c=cc:t===Jn&&f>=Jn?c=Jn:f>=ln?c=ln:t===ls&&f>=ls?c=ls:t===Fo&&f>=Fo&&(c=Fo);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mJn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||xr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=xr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);w--){var k=!w;w?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=w?r:xr.extendFlat({},r,b?r.minor:{minor:{}});if(k?Ye.prepMinorTicks(M,r,t):Ye.prepTicks(M,t),M.tickmode==="array"){w?(m=[],p=iE(r,!k)):(x=[],y=iE(r,!k));continue}if(M.tickmode==="sync"){m=[],p=Yve(r);continue}var S=n5(u),E=S[0],D=S[1],P=va(M.dtick),R=a==="log"&&!(P||M.dtick.charAt(0)==="L"),I=Ye.tickFirst(M,t);if(w){if(r._tmin=I,I=D:B<=D;B=Ye.tickIncrement(B,V,f,n)){if(w&&G++,M.rangebreaks&&!f){if(B=v)break}if(m.length>d||B===z)break;z=B;var H={value:B};w?(R&&B!==(B|0)&&(H.simpleLabel=!0),i>1&&G%i&&(H.skipLabel=!0),m.push(H)):(H.minor=!0,x.push(H))}}if(!x||x.length<3)s=!1;else{var X=(x[2].value-x[1].value)*(l?-1:1);yhe(X,r.tickformat)||(s=!1,x=x.slice(1))}if(!s)T=m;else{var W=m.concat(x);o&&m.length&&(W=W.slice(1)),W=W.sort(function(Oe,Ue){return Oe.value-Ue.value}).filter(function(Oe,Ue,Ee){return Ue===0||Oe.value!==Ee[Ue-1].value});var ee=W.map(function(Oe,Ue){return Oe.minor===void 0&&!Oe.skipLabel?Ue:null}).filter(function(Oe){return Oe!==null});ee.forEach(function(Oe){s.map(function(Ue){var Ee=Oe+Ue;Ee>=0&&Ee-1;ce--){if(m[ce].drop){m.splice(ce,1);continue}m[ce].value=Jx(m[ce].value,r);var ie=r.c2p(m[ce].value);(j?Z>ie-Q:Zv||zev&&(Ee.periodX=v),zen&&vH1)r/=H1,a=n(10),e.dtick="M"+12*Po(r,a,O1);else if(i>cc)r/=cc,e.dtick="M"+Po(r,1,oE);else if(i>ln){if(e.dtick=Po(r,ln,e._hasDayOfWeekBreaks?[1,2,7,14]:Wve),!t){var o=Ye.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=xr.dateTick0(e.calendar,2):e.tick0=xr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Fo?e.dtick=Po(r,Fo,oE):i>kh?e.dtick=Po(r,kh,lE):i>Y1?e.dtick=Po(r,Y1,lE):(a=n(10),e.dtick=Po(r,a,O1))}else if(e.type==="log"){e.tick0=0;var s=xr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Po(r,a,O1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):s5(e)?(e.tick0=0,a=1,e.dtick=Po(r,a,jve)):(e.tick0=0,a=n(10),e.dtick=Po(r,a,O1));if(e.dtick===0&&(e.dtick=1),!va(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function pE(e){var r=e.dtick;if(e._tickexponent=0,!va(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ln&&n<=10||r>=ln*15)e._tickround="d";else if(r>=kh&&n<=16||r>=Fo)e._tickround="M";else if(r>=Y1&&n<=19||r>=kh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(va(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);va(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(vc(e.exponentformat)&&e.exponentformat!=="SI extended"&&!i5(s)||vc(e.exponentformat)&&e.exponentformat==="SI extended"&&!o5(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(va(r))return xr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return xr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?dE:hE,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),l,t);return Math.floor(s)+Math.log(yi.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=xr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?m:null};if(i&&xr.isArrayOrTypedArray(e.ticktext)){var c=xr.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=Lh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function Xve(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=qh(Math.pow(10,o),e,n,a);else if(va(i)||s==="D"&&(e.minorloglabels==="complete"||xr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(xr.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||vc(p)&&p!=="SI extended"&&i5(v)||vc(p)&&p==="SI extended"&&o5(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":_u)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":_u)+d:(r.text=qh(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,xr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Jve(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function $ve(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Kve(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=qh(r.x,e,n,a)}function Qve(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=ehe(i);if(o[1]>=100)r.text=qh(xr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=_u+r.text)}}}else r.text=qh(r.x,e,n,a)}function ehe(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var mE=["f","p","n","\u03BC","m","","k","M","G","T"],rhe=["q","r","y","z","a",...mE,"P","E","Z","Y","R","Q"],vc=e=>["SI","SI extended","B"].includes(e);function i5(e){return e>14||e<-15}function o5(e){return e>32||e<-30}function the(e,r){return vc(r)?!!(r==="SI extended"&&o5(e)||r!=="SI extended"&&i5(e)):!1}function qh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:va(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};pE(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,_u);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":vc(o)&&(e+=o==="SI extended"?rhe[l/3+10]:mE[l/3+5])}return n?_u+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*cc}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return xr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&a5(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=xr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),a5(r,p,a,!0),a5(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=phe(r,a));var y=v[f+"axislayer"],m=r._mainLinePosition,x=m+=r._shift,T=r._mainMirrorPosition,_=r._vals=Ye.calcTicks(r),b=[r.mirror,x,T].join("_");for(i=0;i<_.length;i++)_[i].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var w={};function k(Le){var He=u+(Le||"tick");return w[He]||(w[He]=ohe(r,He,x)),w[He]}if(r.visible){var M=Ye.makeTransTickFn(r),S=Ye.makeTransTickLabelFn(r),E,D,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var I=ahe(r,_);D=Ye.clipEnds(r,I),E=P?D:I}else D=Ye.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?D:_;var z=r._gridVals=D,B=ihe(r,_);if(!s._hasOnlyLargeSploms){var G=r._subplotsWith,Y={};for(i=0;i0?Ee.bottom-Oe:0,Ue))));var Ae=0,Je=0;if(r._shiftPusher&&(Ae=Math.max(Ue,Ee.height>0?Le==="l"?Oe-Ee.left:Ee.right-Oe:0),r.title.text!==s._dfltTitle[f]&&(Je=(r._titleStandoff||0)+(r._titleScoot||0),Le==="l"&&(Je+=uE(r))),r._fullDepth=Math.max(Ae,Je)),r.automargin){ze={x:0,y:0,r:0,l:0,t:0,b:0};var dr=[0,1],Ne=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Le==="b"?ze[Le]=r._depth:(ze[Le]=r._depth=Math.max(Ee.width>0?Oe-Ee.top:0,Ue),dr.reverse()),Ee.width>0){var Te=Ee.right-(r._offset+r._length);Te>0&&(ze.xr=1,ze.r=Te);var qe=r._offset-Ee.left;qe>0&&(ze.xl=0,ze.l=qe)}}else if(Le==="l"?(r._depth=Math.max(Ee.height>0?Oe-Ee.left:0,Ue),ze[Le]=r._depth-Ne):(r._depth=Math.max(Ee.height>0?Ee.right-Oe:0,Ue),ze[Le]=r._depth+Ne,dr.reverse()),Ee.height>0){var Be=Ee.bottom-(r._offset+r._length);Be>0&&(ze.yb=0,ze.b=Be);var Xe=r._offset-Ee.top;Xe>0&&(ze.yt=1,ze.t=Xe)}ze[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[dr[0]],r.title.text!==s._dfltTitle[f]&&(ze[Le]+=uE(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ge={x:0,y:0,r:0,l:0,t:0,b:0},Ge[He]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ge[He]+=Ue),r.mirror===!0||r.mirror==="ticks"?Ge[c]=r._anchorAxis.domain[dr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ge[c]=[r._counterDomainMin,r._counterDomainMax][dr[1]]))}De&&(se=Ah.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(sE(ze,r.automargin),sE(Ge,r.automargin)),uc.autoMargin(e,l5(r),ze),uc.autoMargin(e,bE(r),Ge),uc.autoMargin(e,xE(r),se)}),xr.syncOrAsync(me)}};function sE(e,r){if(e){var t=Object.keys(rE).reduce(function(a,n){return r.indexOf(n)!==-1&&rE[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function ahe(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(xr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return fc(n+e._offset+e.l2p(r5(v))+t,i+a)}:function(v){return fc(i+a,n+e._offset+e.l2p(r5(v))+t)}};function r5(e){return e.periodX!==void 0?e.periodX:e.x}function lhe(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=W1,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*wu,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=W1),s&&f==="top"&&(v-=d*(1-wu)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:f&&(y=0),v&&(d+=y,t)){var m=xr.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:d,labelShift:p},T,_,b,w,k=0,M=e.side,S=e._id.charAt(0),E=e.tickangle,D;if(S==="x")D=!c&&M==="bottom"||c&&M==="top",w=D?1:-1,c&&(w*=-1),T=p*w,_=r+d*w,b=D?1:-.2,Math.abs(E)===90&&(c?b+=Th:E===-90&&M==="bottom"?b=wu:E===90&&M==="top"?b=Th:b=.5,k=Th/2*(E/90)),x.xFn=function(I){return I.dx+T+k*I.fontSize},x.yFn=function(I){return I.dy+_+I.fontSize*b},x.anchorFn=function(I,z){if(f){if(l)return"end";if(s)return"start"}return!va(z)||z===0||z===180?"middle":z*w<0!==c?"end":"start"},x.heightFn=function(I,z,B){return z<-60||z>60?-.5*B:e.side==="top"!==c?-B:0};else if(S==="y"){if(D=!c&&M==="left"||c&&M==="right",w=D?1:-1,c&&(w*=-1),T=d,_=p*w,b=0,!c&&Math.abs(E)===90&&(E===-90&&M==="left"||E===90&&M==="right"?b=wu:b=.5),c){var P=va(E)?+E:0;if(P!==0){var R=xr.deg2rad(P);k=Math.abs(Math.sin(R))*wu*w,b=0}}x.xFn=function(I){return I.dx+r-(T+I.fontSize*b)*w+k*I.fontSize},x.yFn=function(I){return I.dy+_+I.fontSize*Th},x.anchorFn=function(I,z){return va(z)&&Math.abs(z)===90?"middle":D?"end":"start"},x.heightFn=function(I,z,B){return e.side==="right"&&(z*=-1),z<-30?-B:z<30?-.5*B:0}}return x};function X1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,X1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Mh.stroke(yi.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return Xn.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),J1(r,[fE]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],o=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],l=t.counterAxis;if(l&&Ye.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var y=p?v:d;if(y){var m=y.selectAll("path."+a).data(p?o:i,X1);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(x){return Mh.stroke(yi.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return Xn.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}J1(r,[Qx,e5])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Ive(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Mh.stroke,r.zerolinecolor||Mh.defaultLine).style("stroke-width",Xn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),J1(r,[Kx])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(H){return H.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],X1),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var X=yi.select(this),W=e._promises.length;X.call(xu.positionText,s.xFn(H),s.yFn(H)).call(Xn.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(xu.convertToTspans,e),e._promises[W]?v.push(e._promises.pop().then(function(){d(X,u)})):d(X,u)}),J1(r,[eE]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(H){yi.select(this).select("text").call(xu.positionText,s.xFn(H),s.yFn(H))});function d(H,X){H.each(function(W){var ee=yi.select(this),oe=ee.select(".text-math-group"),le=s.anchorFn(W,X),ue=t.transFn.call(ee.node(),W)+(va(X)&&+X!=0?" rotate("+X+","+s.xFn(W)+","+(s.yFn(W)-W.fontSize/2)+")":""),K=xu.lineCount(ee),_e=Sh*W.fontSize,fe=s.heightFn(W,va(X)?+X:0,(K-1)*_e);if(fe&&(ue+=fc(0,fe)),oe.empty()){var ve=ee.select("text");ve.attr({transform:ue,"text-anchor":le}),ve.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ye=Xn.bBox(oe.node()).width,ce=ye*{end:-.5,start:.5}[le];oe.attr("transform",ue+fc(ce,0))}})}r._adjustTickLabelsOverflow=function(){var H=r.ticklabeloverflow;if(!(!H||H==="allow")){var X=H.indexOf("hide")!==-1,W=r._id.charAt(0)==="x",ee=0,oe=W?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var le=xr.simpleMap(r.range,r.r2l);ee=r.l2p(le[0])+r._offset,oe=r.l2p(le[1])+r._offset}var ue=Math.min(ee,oe),K=Math.max(ee,oe),_e=r.side,fe=1/0,ve=-1/0;c.each(function(Q){var Z=yi.select(this),ie=Z.select(".text-math-group");if(ie.empty()){var he=Xn.bBox(Z.node()),me=0;W?(he.right>K||he.leftK||he.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+le._id]?Z.style("display","none"):K.K==="tick"&&!ue&&Z.node().style.display!=="none"&&Z.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var H=0,X=[],W,ee=1;c.each(function(ze){H=Math.max(H,ze.fontSize);var Ge=r.l2p(ze.x),se=t5(this),Ae=Xn.bBox(se.node());ee=Math.max(ee,xu.lineCount(se)),X.push({top:0,bottom:10,height:10,left:Ge-Ae.width/2,right:Ge+Ae.width/2+2,width:Ae.width+2})});var oe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,le=l.length,ue=Math.abs((l[le-1].x-l[0].x)*r._m)/(le-1),K=oe?ue/2:ue,_e=oe?r.ticklen:H*1.25*ee,fe=Math.sqrt(Math.pow(K,2)+Math.pow(_e,2)),ve=K/fe,ye=r.autotickangles.map(function(ze){return ze*Math.PI/180}),ce=ye.find(function(ze){return Math.abs(Math.cos(ze))<=ve});ce===void 0&&(ce=ye.reduce(function(ze,Ge){return Math.abs(Math.cos(ze))G*B&&(R=B,E[S]=D[S]=I[S])}var Y=Math.abs(R-P);Y-w>0?(Y-=w,w*=1+w/Y):w=0,r._id.charAt(0)!=="y"&&(w=-w),E[M]=_.p2r(_.r2p(D[M])+k*w),_.autorange==="min"||_.autorange==="max reversed"?(E[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(E[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=E}var V=xr.syncOrAsync(x);return V&&V.then&&e._promises.push(V),V};function she(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,X1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Mh.stroke,r.dividercolor).style("stroke-width",Xn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function uE(e){var r=e.title.font.size,t=(e.title.text.match(xu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(wu+t*Sh):t?r*(t+1)*Sh:r}function uhe(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(xu.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*wu:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Th+l*Sh));else{var s=Lh(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=Xn.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,qve.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=xr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===j1)&&(gE(r,0)||!fhe(e,r,t,a)||che(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return gE(e,t.x)})};function gE(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Pve:/%L/.test(r)?e>=Rve:/%[SX]/.test(r)?e>=Y1:/%M/.test(r)?e>=kh:/%[HI]/.test(r)?e>=Fo:/%p/.test(r)?e>=ls:/%[Aadejuwx]/.test(r)?e>=ln:/%[UVW]/.test(r)?e>=Jn:/%[Bbm]/.test(r)?e>=V1:/%[q]/.test(r)?e>=G1:/%[Yy]/.test(r)?e>=U1:!0}});var TE=N((wRe,wE)=>{"use strict";wE.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var u5=N((TRe,AE)=>{"use strict";var mhe=TE();AE.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(mhe(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var kE=N((ARe,ME)=>{var ghe={left:0,top:0};ME.exports=bhe;function bhe(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=xhe(r);return t[0]=a-i.left,t[1]=n-i.top,t}function xhe(e){return e===window||e===document||e===document.body?ghe:e.getBoundingClientRect()}});var f5=N((MRe,SE)=>{"use strict";var _he=Yb();function whe(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}SE.exports=_he&&whe()});var LE=N((kRe,qE)=>{"use strict";qE.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var DE=N((SRe,EE)=>{"use strict";var CE=Ce(),The=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];EE.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=CE.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=CE.constrain(Math.floor(t*3),0,2),The[t][r]}});var PE=N((qRe,RE)=>{"use strict";var Ahe=hh(),Mhe=Zp(),khe=ih().getGraphDiv,She=rh(),c5=RE.exports={};c5.wrapped=function(e,r,t){e=khe(e),e._fullLayout&&Mhe.clear(e._fullLayout._uid+She.HOVERID),c5.raw(e,r,t)};c5.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Ahe.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var mi=N((LRe,zE)=>{"use strict";var qhe=kE(),v5=jb(),Lhe=f5(),Che=Ce().removeElement,Ehe=xa(),Tu=zE.exports={};Tu.align=LE();Tu.getCursor=DE();var NE=PE();Tu.unhover=NE.wrapped;Tu.unhoverRaw=NE.raw;Tu.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,Lhe?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(_,b,w){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===v?b=c:(b={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(w=>{var k=c[w];!b[w]&&typeof k!="function"&&(b[w]=k)})),r.clickFn&&r.clickFn(a,b),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function IE(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Tu.coverSlip=IE;function FE(e){return qhe(e.changedTouches?e.changedTouches[0]:e,document.body)}});var ss=N((CRe,OE)=>{"use strict";OE.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var UE=N((ERe,HE)=>{"use strict";var h5=ss(),Ch="data-savedcursor",BE="!!";HE.exports=function(r,t){var a=r.attr(Ch);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var d5=ga(),Dhe=fi();GE.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Dhe.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:d5({editType:"legend"}),grouptitlefont:d5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:d5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Dh=N(Eh=>{"use strict";Eh.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Eh.isVertical=function(r){return r.orientation!=="h"};Eh.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Eh.getId=function(r){return r._id||"legend"}});var m5=N((PRe,VE)=>{"use strict";var $1=br(),$n=Ce(),Rhe=wt(),Phe=gn(),Fhe=p5(),Nhe=Bf(),y5=Dh();function Ihe(e,r,t,a,n){var i=r[e]||{},o=Rhe.newContainer(t,e);function l(H,X){return $n.coerce(i,o,Fhe,H,X)}var s=$n.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(H,X){var W=f._input,ee=f;return $n.coerce(W,ee,Phe,H,X)},v=t.font||{},d=$n.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,y=!1,m="normal",x=(t.shapes||[]).filter(function(H){return H.showlegend});function T(H){return $1.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}a.filter(T).forEach(function(H){H.visible&&p++;for(var X=0;XH.legend.length)for(var ee=H.legend.length;ee(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),!(k===!1&&!i.uirevision)&&(l("uirevision",t.uirevision),k!==!1)){l("borderwidth");var M=l("orientation"),S=l("yref"),E=l("xref"),D=M==="h",P=S==="paper",R=E==="paper",I,z,B,G="left";D?(I=0,$1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(z=1.1,B="bottom"):(z=1,B="top"):P?(z=-.1,B="top"):(z=0,B="bottom")):(z=1,B="auto",R?I=1.02:(I=1,G="right")),$n.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:I}},"x"),$n.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:z}},"y"),l("traceorder",m),y5.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",G),l("yanchor",B),l("maxheight"),l("valign"),$n.noneOrAll(i,o,["x","y"]);var Y=l("title.text");if(Y){l("title.side",D?"left":"top");var V=$n.extendFlat({},s,{size:$n.bigFont(s.size)});$n.coerceFont(l,"title.font",V);let H=n>1;l("titleclick",H?"toggle":!1),l("titledoubleclick",H?"toggleothers":!1)}}}VE.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var us=br(),g5=Ce(),zhe=g5.pushUnique,Ohe=Dh(),YE=!0;b5.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;var l=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&YE&&t.data&&t._context.showTips&&(g5.notifier(g5._(t,"Double-click on legend to isolate one trace"),"long",t),YE=!1);var s=l==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let c=(i.shapes||[]).filter(De=>De.showlegend||De.legendgroup);var v=f.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,y,m,x,T,_,b,w={},k=[],M=[],S=[];function E(De,Le){var He=k.indexOf(De),Oe=w.visible;return Oe||(Oe=w.visible=[]),k.indexOf(De)===-1&&(k.push(De),He=k.length-1),Oe[He]=Le,He}var D=(i.shapes||[]).map(function(De){return De._input}),P=!1;function R(De,Le){D[De].visible=Le,P=!0}function I(De,Le){if(!(o.groupTitle&&!s)){var He=De._fullInput||De,Oe=He._isShape,Ue=He.index;Ue===void 0&&(Ue=He._index);var Ee=He.visible===!1?!1:Le;Oe?R(Ue,Ee):E(Ue,Ee)}}var z=d.legend,B=d._fullInput,G=B&&B._isShape;if(!G&&us.traceIs(d,"pie-like")){var Y=o.label,V=u.indexOf(Y);if(n==="toggle")V===-1?u.push(Y):u.splice(V,1);else if(n==="toggleothers"){var H=V!==-1,X=[];for(y=0;yx.showlegend||x.legendgroup),s=i.concat(l);function u(x){return(x.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(T){return u(T)&&T.visible===!0}),c=!1;else{let x=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,c=!x}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(x){return x._input});for(var y=!1,m=0;m{"use strict";WE.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var XE=N((IRe,ZE)=>{"use strict";var{isArrayOrTypedArray:w5}=Ln(),jE=br(),T5=Dh();ZE.exports=function(r,t,a){var n=t._inHover,i=T5.isGrouped(t),o=T5.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function y(X,W,ee){if(t.visible!==!1&&!(a&&X!==t._id))if(W===""||!T5.isGrouped(t)){var oe="~~i"+c;s.push(oe),l[oe]=[ee],c++}else s.indexOf(W)===-1?(s.push(W),u=!0,l[W]=[ee]):l[W].push(ee)}for(d=0;dI&&(P=I)}E[d][0]._groupMinRank=P,E[d][0]._preGroupSort=d}var z=function(X,W){return X[0]._groupMinRank-W[0]._groupMinRank||X[0]._preGroupSort-W[0]._preGroupSort},B=function(X,W){var ee=w5(X.trace.legendrank)?X.trace.legendrank[X.i]:X.trace.legendrank,oe=w5(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank;return ee-oe||X._preSort-W._preSort};for(E.forEach(function(X,W){X[0]._preGroupSort=W}),E.sort(z),d=0;d{"use strict";var K1=Ce();function JE(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Au.formatPiePercent=function(r,t){var a=JE((r*100).toPrecision(3));return K1.numSeparate(a,t)+"%"};Au.formatPieValue=function(r,t){var a=JE(r.toPrecision(10));return K1.numSeparate(a,t)};Au.getFirstFilled=function(r,t){if(K1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Bhe=Yr(),Hhe=Tr();$E.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Bhe.pointStyle(r,a,n,t):Hhe.fill(r,t.color)}});var ey=N((BRe,rD)=>{"use strict";var QE=Tr(),eD=Q1().castOption,Uhe=KE();rD.exports=function(r,t,a,n){var i=a.marker.line,o=eD(i.color,t.pts)||QE.defaultLine,l=eD(i.width,t.pts)||0;r.call(Uhe,t,a,n).style("stroke-width",l).call(QE.stroke,o)}});var S5=N((HRe,lD)=>{"use strict";var sn=Sr(),A5=br(),Ka=Ce(),tD=Ka.strTranslate,Kn=Yr(),gi=Tr(),M5=Zn().extractOpts,ry=Nn(),Ghe=ey(),Vhe=Q1().castOption,Yhe=_5(),aD=12,nD=5,Mu=2,Whe=10,hc=5;lD.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Yhe.itemGap*2)/2,s=tD(l,0),u=function(M,S,E,D){var P;if(M+1)P=M;else if(S&&S.width>0)P=S.width;else return 0;return i?D:Math.min(P,E)};r.each(function(M){var S=sn.select(this),E=Ka.ensureSingle(S,"g","layers");E.style("opacity",M[0].trace.opacity);var D=a.indentation,P=a.valign,R=M[0].lineHeight,I=M[0].height;if(P==="middle"&&D===0||!R||!I)E.attr("transform",null);else{var z={top:1,bottom:-1}[P],B=z*(.5*(R-I+3))||0,G=a.indentation;E.attr("transform",tD(G,B))}var Y=E.selectAll("g.legendfill").data([M]);Y.enter().append("g").classed("legendfill",!0);var V=E.selectAll("g.legendlines").data([M]);V.enter().append("g").classed("legendlines",!0);var H=E.selectAll("g.legendsymbols").data([M]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(m).each(b).each(_).each(f).each(c).each(x).each(T);function f(M){var S=iD(M),E=S.showFill,D=S.showLine,P=S.showGradientLine,R=S.showGradientFill,I=S.anyFill,z=S.anyLine,B=M[0],G=B.trace,Y,V,H=M5(G),X=H.colorscale,W=H.reversescale,ee=function(ve){if(ve.size())if(E)Kn.fillGroupStyle(ve,t,!0);else{var ye="legendfill-"+G.uid;Kn.gradient(ve,t,ye,k5(W),X,"fill")}},oe=function(ve){if(ve.size()){var ye="legendline-"+G.uid;Kn.lineGroupStyle(ve),Kn.gradient(ve,t,ye,k5(W),X,"stroke")}},le=ry.hasMarkers(G)||!I?"M5,0":z?"M5,-2":"M5,-3",ue=sn.select(this),K=ue.select(".legendfill").selectAll("path").data(E||R?[M]:[]);if(K.enter().append("path").classed("js-fill",!0),K.exit().remove(),K.attr("d",le+"h"+o+"v6h-"+o+"z").call(ee),D||P){var _e=u(void 0,G.line,Whe,nD);V=Ka.minExtend(G,{line:{width:_e}}),Y=[Ka.minExtend(B,{trace:V})]}var fe=ue.select(".legendlines").selectAll("path").data(D||P?[Y]:[]);fe.enter().append("path").classed("js-line",!0),fe.exit().remove(),fe.attr("d",le+(P?"l"+o+",0.0001":"h"+o)).call(D?Kn.lineGroupStyle:oe)}function c(M){var S=iD(M),E=S.anyFill,D=S.anyLine,P=S.showLine,R=S.showMarker,I=M[0],z=I.trace,B=!R&&!D&&!E&&ry.hasText(z),G,Y;function V(K,_e,fe,ve){var ye=Ka.nestedProperty(z,K).get(),ce=Ka.isArrayOrTypedArray(ye)&&_e?_e(ye):ye;if(i&&ce&&ve!==void 0&&(ce=ve),fe){if(cefe[1])return fe[1]}return ce}function H(K){return I._distinct&&I.index&&K[I.index]?K[I.index]:K[0]}if(R||B||P){var X={},W={};if(R){X.mc=V("marker.color",H),X.mx=V("marker.symbol",H),X.mo=V("marker.opacity",Ka.mean,[.2,1]),X.mlc=V("marker.line.color",H),X.mlw=V("marker.line.width",Ka.mean,[0,5],Mu),X.mld=z._isShape?"solid":V("marker.line.dash",H),W.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ee=V("marker.size",Ka.mean,[2,16],aD);X.ms=ee,W.marker.size=ee}P&&(W.line={width:V("line.width",H,[0,10],nD)}),B&&(X.tx="Aa",X.tp=V("textposition",H),X.ts=10,X.tc=V("textfont.color",H),X.tf=V("textfont.family",H),X.tw=V("textfont.weight",H),X.ty=V("textfont.style",H),X.tv=V("textfont.variant",H),X.tC=V("textfont.textcase",H),X.tE=V("textfont.lineposition",H),X.tS=V("textfont.shadow",H)),G=[Ka.minExtend(I,X)],Y=Ka.minExtend(z,W),Y.selectedpoints=null,Y.texttemplate=null}var oe=sn.select(this).select("g.legendpoints"),le=oe.selectAll("path.scatterpts").data(R?G:[]);le.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),le.exit().remove(),le.call(Kn.pointStyle,Y,t),R&&(G[0].mrc=3);var ue=oe.selectAll("g.pointtext").data(B?G:[]);ue.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ue.exit().remove(),ue.selectAll("text").call(Kn.textPointStyle,Y,t)}function v(M){var S=M[0].trace,E=S.type==="waterfall";if(M[0]._distinct&&E){var D=M[0].trace[M[0].dir].marker;return M[0].mc=D.color,M[0].mlw=D.line.width,M[0].mlc=D.line.color,y(M,this,"waterfall")}var P=[];S.visible&&E&&(P=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=sn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(I){var z=sn.select(this),B=S[I[0]].marker,G=u(void 0,B.line,hc,Mu);z.attr("d",I[1]).style("stroke-width",G+"px").call(gi.fill,B.color),G&&z.call(gi.stroke,B.line.color)})}function d(M){y(M,this)}function p(M){y(M,this,"funnel")}function y(M,S,E){var D=M[0].trace,P=D.marker||{},R=P.line||{},I=P.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",z=E?D.visible&&D.type===E:A5.traceIs(D,"bar"),B=sn.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(z?[M]:[]);B.enter().append("path").classed("legend"+E,!0).attr("d",I).attr("transform",s),B.exit().remove(),B.each(function(G){var Y=sn.select(this),V=G[0],H=u(V.mlw,P.line,hc,Mu);Y.style("stroke-width",H+"px");var X=V.mcc;if(!a._inHover&&"mc"in V){var W=M5(P),ee=W.mid;ee===void 0&&(ee=(W.max+W.min)/2),X=Kn.tryColorscale(P,"")(ee)}var oe=X||V.mc||P.color,le=P.pattern,ue=Kn.getPatternAttr,K=le&&(ue(le.shape,0,"")||ue(le.path,0,""));if(K){var _e=ue(le.bgcolor,0,null),fe=ue(le.fgcolor,0,null),ve=le.fgopacity,ye=oD(le.size,8,10),ce=oD(le.solidity,.5,1),j="legend-"+D.uid;Y.call(Kn.pattern,"legend",t,j,K,ye,ce,X,le.fillmode,_e,fe,ve)}else Y.call(gi.fill,oe);H&&gi.stroke(Y,V.mlc||R.color)})}function m(M){var S=M[0].trace,E=sn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&A5.traceIs(S,"box-violin")?[M]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),E.exit().remove(),E.each(function(){var D=sn.select(this);if((S.boxpoints==="all"||S.points==="all")&&gi.opacity(S.fillcolor)===0&&gi.opacity((S.line||{}).color)===0){var P=Ka.minExtend(S,{marker:{size:i?aD:Ka.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(Kn.pointStyle,P,t)}else{var R=u(void 0,S.line,hc,Mu);D.style("stroke-width",R+"px").call(gi.fill,S.fillcolor),R&&gi.stroke(D,S.line.color)}})}function x(M){var S=M[0].trace,E=sn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[M,M]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(D,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=sn.select(this),I=S[P?"increasing":"decreasing"],z=u(void 0,I.line,hc,Mu);R.style("stroke-width",z+"px").call(gi.fill,I.fillcolor),z&&gi.stroke(R,I.line.color)})}function T(M){var S=M[0].trace,E=sn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[M,M]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(D,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=sn.select(this),I=S[P?"increasing":"decreasing"],z=u(void 0,I.line,hc,Mu);R.style("fill","none").call(Kn.dashLine,I.line.dash,z),z&&gi.stroke(R,I.line.color)})}function _(M){w(M,this,"pie")}function b(M){w(M,this,"funnelarea")}function w(M,S,E){var D=M[0],P=D.trace,R=E?P.visible&&P.type===E:A5.traceIs(P,E),I=sn.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(R?[M]:[]);if(I.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var z=P.marker||{},B=u(Vhe(z.line.width,D.pts),z.line,hc,Mu),G="pieLike",Y=Ka.minExtend(P,{marker:{line:{width:B}}},G),V=Ka.minExtend(D,{trace:Y},G);Ghe(I,V,Y,t)}}function k(M){var S=M[0].trace,E,D=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":D=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":D=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":case"densitymap":D=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":D=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":D=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":D=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var P=sn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(D);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,I){var z=sn.select(this),B=M5(S),G=B.colorscale,Y=B.reversescale,V=function(ee){if(ee.size()){var oe="legendfill-"+S.uid;Kn.gradient(ee,t,oe,k5(Y,E==="radial"),G,"fill")}},H;if(G){if(!E){var W=G.length;H=I===0?G[Y?W-1:0][1]:I===1?G[Y?0:W-1][1]:G[Math.floor((W-1)/2)][1]}}else{var X=S.vertexcolor||S.facecolor||S.color;H=Ka.isArrayOrTypedArray(X)?X[I]||X[0]:X}z.attr("d",R[0]),H?z.call(gi.fill,H):z.call(V)})}};function k5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function iD(e){var r=e[0].trace,t=r.contours,a=ry.hasLines(r),n=ry.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function oD(e,r,t){return e&&Ka.isArrayOrTypedArray(e)?r:e>t?t:e}});var E5=N((URe,yD)=>{"use strict";var bn=Sr(),na=Ce(),L5=aa(),ku=br(),ny=hh(),q5=mi(),ia=Yr(),Rh=Tr(),Su=Aa(),sD=x5().handleItemClick,uD=x5().handleTitleClick,ha=_5(),C5=Ua(),dD=C5.LINE_SPACING,pc=C5.FROM_TL,fD=C5.FROM_BR,cD=XE(),jhe=S5(),yc=Dh(),dc=1,Zhe=/^legend[0-9]*$/;yD.exports=function(r,t){if(t)vD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=bn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Zhe)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),L5.autoMargin(e,n);var y=na.ensureSingle(o,"g",n,function(S){l||S.attr("pointer-events","all")}),m=na.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),x=na.ensureSingle(y,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});x.call(Rh.stroke,t.bordercolor).call(Rh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=na.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var b;_.text?(b=na.ensureSingle(T,"text",n+"titletext"),b.attr("text-anchor","start").call(ia.font,_.font).text(_.text),ay(b,T,e,t,dc),!l&&(t.titleclick||t.titledoubleclick)&&Khe(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var w=na.ensureSingle(y,"rect","scrollbar",function(S){S.attr(ha.scrollBarEnterAttrs).call(Rh.fill,ha.scrollBarColor)}),k=T.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(na.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){let E=S[0],D=E.trace;if(E.groupTitle){let P=D.legendgroup,R=(a.shapes||[]).filter(function(z){return z.showlegend});return e._fullData.concat(R).some(function(z){return z.legendgroup===P&&(z.legend||"legend")===n&&z.visible===!0})?1:.5}return ku.traceIs(D,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){bn.select(this).call(Jhe,e,t)}).call(jhe,e,t).each(function(S){l||S[0].groupTitle&&t.groupclick==="toggleitem"||bn.select(this).call($he,e,n)}),na.syncOrAsync([L5.previousPromises,function(){return r0e(e,k,M,t,T)},function(){var S=a._size,E=t.borderwidth,D=t.xref==="paper",P=t.yref==="paper";if(_.text){let ie=(a.shapes||[]).filter(function(me){return me.showlegend}),he=e._fullData.concat(ie).some(function(me){let Re=me.legend||"legend";var De=Array.isArray(Re)?Re.includes(n):Re===n;return De&&me.visible===!0});b.style("opacity",he?1:.5)}if(!l){var R,I;D?R=S.l+S.w*t.x-pc[iy(t)]*t._width:R=a.width*t.x-pc[iy(t)]*t._width,P?I=S.t+S.h*(1-t.y)-pc[oy(t)]*t._effHeight:I=a.height*(1-t.y)-pc[oy(t)]*t._effHeight;var z=t0e(e,n,R,I);if(z)return;if(a.margin.autoexpand){var B=R,G=I;R=D?na.constrain(R,0,a.width-t._width):B,I=P?na.constrain(I,0,a.height-t._effHeight):G,R!==B&&na.log("Constrain "+n+".x to make legend fit inside graph"),I!==G&&na.log("Constrain "+n+".y to make legend fit inside graph")}ia.setTranslate(y,R,I)}if(w.on(".drag",null),y.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;l&&(Y=t._height),x.attr({width:t._width-E,height:Y-E,x:E/2,y:E/2}),ia.setTranslate(T,0,0),m.select("rect").attr({width:t._width-2*E,height:Y-2*E,x:E,y:E}),ia.setClipUrl(T,i,e),ia.setRect(w,0,0,0,0),delete t._scrollY}else{var V=Math.max(ha.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),H=t._effHeight-V-2*ha.scrollBarMargin,X=t._height-t._effHeight,W=H/X,ee=Math.min(t._scrollY||0,X);x.attr({width:t._width-2*E+ha.scrollBarWidth+ha.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),m.select("rect").attr({width:t._width-2*E+ha.scrollBarWidth+ha.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+ee}),ia.setClipUrl(T,i,e),ye(ee,V,W),y.on("wheel",function(){ee=na.constrain(t._scrollY+bn.event.deltaY/X*H,0,X),ye(ee,V,W),ee!==0&&ee!==X&&bn.event.preventDefault()});var oe,le,ue,K=function(ie,he,me){var Re=(me-he)/W+ie;return na.constrain(Re,0,X)},_e=function(ie,he,me){var Re=(he-me)/W+ie;return na.constrain(Re,0,X)},fe=bn.behavior.drag().on("dragstart",function(){var ie=bn.event.sourceEvent;ie.type==="touchstart"?oe=ie.changedTouches[0].clientY:oe=ie.clientY,ue=ee}).on("drag",function(){var ie=bn.event.sourceEvent;ie.buttons===2||ie.ctrlKey||(ie.type==="touchmove"?le=ie.changedTouches[0].clientY:le=ie.clientY,ee=K(ue,oe,le),ye(ee,V,W))});w.call(fe);var ve=bn.behavior.drag().on("dragstart",function(){var ie=bn.event.sourceEvent;ie.type==="touchstart"&&(oe=ie.changedTouches[0].clientY,ue=ee)}).on("drag",function(){var ie=bn.event.sourceEvent;ie.type==="touchmove"&&(le=ie.changedTouches[0].clientY,ee=_e(ue,oe,le),ye(ee,V,W))});T.call(ve)}function ye(ie,he,me){t._scrollY=e._fullLayout[n]._scrollY=ie,ia.setTranslate(T,0,-ie),ia.setRect(w,t._width,ha.scrollBarMargin+ie*me,ha.scrollBarWidth,he),m.select("rect").attr("y",E+ie)}if(e._context.edits.legendPosition){var ce,j,Q,Z;y.classed("cursor-move",!0),q5.init({element:y.node(),gd:e,prepFn:function(ie){if(ie.target!==w.node()){var he=ia.getTranslate(y);Q=he.x,Z=he.y}},moveFn:function(ie,he){if(Q!==void 0&&Z!==void 0){var me=Q+ie,Re=Z+he;ia.setTranslate(y,me,Re),ce=q5.align(me,t._width,S.l,S.l+S.w,t.xanchor),j=q5.align(Re+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(ce!==void 0&&j!==void 0){var ie={};ie[n+".x"]=ce,ie[n+".y"]=j,ku.call("_guiRelayout",e,ie)}},clickFn:function(ie,he){var me=o.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return he.clientX>=Re.left&&he.clientX<=Re.right&&he.clientY>=Re.top&&he.clientY<=Re.bottom});me.size()>0&&pD(e,t,me,ie,he)}})}}],e)}}function ty(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function pD(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),ku.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=ny.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&sD(t,e,r,l)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=ny.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&sD(t,e,r,s)}}function Jhe(e,r,t){var a=yc.getId(t),n=e.data()[0][0],i=n.trace,o=ku.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=na.templateString(u,i._meta))));var c=na.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ia.font,f).text(l?hD(u,s):u);var v=t.indentation+t.itemwidth+ha.itemGap*2;Su.positionText(c,v,0),l?c.call(Su.makeEditable,{gd:r,text:u}).call(ay,e,r,t).on("edit",function(d){this.text(hD(d,s)).call(ay,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?ku.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):ku.call("_guiRestyle",r,y,i.index)}):ay(c,e,r,t)}function hD(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function $he(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=na.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Rh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),pD(r,l,e,i,bn.event)}}))}function Khe(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&ku.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=na.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Rh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:bn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(ny.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&uD(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,ny.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&uD(r,t,t.titledoubleclick))}))}function ay(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Su.convertToTspans(e,t,function(){Qhe(r,t,a,n)})}function Qhe(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=yc.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===dc?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*dD,v,d;if(l){var p=ia.bBox(l);v=p.height,d=p.width,a===dc?ia.setTranslate(o,u,u+v*.75):ia.setTranslate(o,0,v*.25)}else{var y="."+s+(a===dc?"title":"")+"text",m=e.select(y),x=Su.lineCount(m),T=m.node();if(v=c*x,d=T?ia.bBox(T).width:0,a===dc)t.title.side==="left"&&(d+=ha.itemGap*2),Su.positionText(m,u+ha.titlePad,u+c);else{var _=ha.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=ha.itemGap,d-=t.indentation+t.itemwidth),Su.positionText(m,_,-c*((x-1)/2-.3))}}a===dc?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function e0e(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function r0e(e,r,t,a,n){var i=e._fullLayout,o=yc.getId(a);a||(a=i[o]);var l=i._size,s=yc.isVertical(a),u=yc.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=ha.itemGap,p=a.indentation+a.itemwidth+d*2,y=2*(c+d),m=oy(a),x=a.y<0||a.y===0&&m==="top",T=a.y>1||a.y===1&&m==="bottom",_=a.tracegroupgap,b={};let{orientation:w,yref:k}=a,{maxheight:M}=a,S=x||T||w!=="v"||k!=="paper";M||(M=S?.5:1);let E=S?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*E,30);var D=0;a._width=0,a._height=0;var P=e0e(a);if(s)t.each(function(ie){var he=ie[0].height;ia.setTranslate(this,c+P[0],c+P[1]+a._height+he/2+d),a._height+=he,a._width=Math.max(a._width,ie[0].width)}),D=p+a._width,a._width+=d+p+v,a._height+=y,u&&(r.each(function(ie,he){ia.setTranslate(this,0,he*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=iy(a),I=a.x<0||a.x===0&&R==="right",z=a.x>1||a.x===1&&R==="left",B=T||x,G=i.width/2;a._maxWidth=Math.max(I?B&&R==="left"?l.l+l.w:G:z?B&&R==="right"?l.r+l.w:G:l.w,2*p);var Y=0,V=0;t.each(function(ie){var he=ty(ie,a,p);Y=Math.max(Y,he),V+=he}),D=null;var H=0;if(u){var X=0,W=0,ee=0;r.each(function(){var ie=0,he=0;bn.select(this).selectAll("g.traces").each(function(Re){var De=ty(Re,a,p),Le=Re[0].height;ia.setTranslate(this,P[0],P[1]+c+d+Le/2+he),he+=Le,ie=Math.max(ie,De),b[Re[0].trace.legendgroup]=ie});var me=ie+d;W>0&&me+c+W>a._maxWidth?(H=Math.max(H,W),W=0,ee+=X+_,X=he):X=Math.max(X,he),ia.setTranslate(this,W,ee),W+=me}),a._width=Math.max(H,W)+c,a._height=ee+X+y}else{var oe=t.size(),le=V+v+(oe-1)*d=a._maxWidth&&(H=Math.max(H,fe),K=0,_e+=ue,a._height+=ue,ue=0),ia.setTranslate(this,P[0]+c+K,P[1]+c+_e+he/2+d),fe=K+me+d,K+=Re,ue=Math.max(ue,he)}),le?(a._width=K+v,a._height=ue+y):(a._width=Math.max(H,fe)+v,a._height+=ue+y)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+ha.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+ha.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ve=e._context.edits,ye=ve.legendText||ve.legendPosition;t.each(function(ie){var he=bn.select(this).select("."+o+"toggle"),me=ie[0].height,Re=ie[0].trace.legendgroup,De=ty(ie,a,p);u&&Re!==""&&(De=b[Re]);var Le=ye?p:D||De;!s&&!f&&(Le+=d/2),ia.setRect(he,0,-me/2,Le,me)});var ce=n.select("."+o+"titletext");ce.node()&&Xhe(ce,a,c);var j=n.select("."+o+"titletoggle");if(j.size()&&ce.node()){var Q=ce.attr("x")||0,Z=ha.titlePad;ia.setRect(j,Q-Z,c,a._titleWidth+2*Z,a._titleHeight+2*Z)}}function t0e(e,r,t,a){var n=e._fullLayout,i=n[r],o=iy(i),l=oy(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return L5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*pc[o],r:i._width*fD[o],b:i._effHeight*fD[l],t:i._effHeight*pc[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function iy(e){return na.isRightAnchor(e)?"right":na.isCenterAnchor(e)?"center":"left"}function oy(e){return na.isBottomAnchor(e)?"bottom":na.isMiddleAnchor(e)?"middle":"top"}});var F5=N(P5=>{"use strict";var qu=Sr(),gl=Rr(),mD=Cn(),Ht=Ce(),a0e=Ht.pushUnique,D5=Ht.strTranslate,n0e=Ht.strRotate,i0e=hh(),bi=Aa(),o0e=UE(),Io=Yr(),ka=Tr(),ly=mi(),zo=zr(),l0e=xa().zindexSeparator,gc=br(),lo=Eo(),Lu=rh(),s0e=m5(),u0e=E5(),MD=Lu.YANGLE,R5=Math.PI*MD/180,f0e=1/Math.sin(R5),c0e=Math.cos(R5),v0e=Math.sin(R5),Et=Lu.HOVERARROWSIZE,Vr=Lu.HOVERTEXTPAD,gD={box:!0,ohlc:!0,violin:!0,candlestick:!0},h0e={scatter:!0,scattergl:!0,splom:!0};function bD(e,r){return e.distance-r.distance}P5.hover=function(r,t,a,n){r=Ht.getGraphDiv(r);var i=t.target;Ht.throttle(r._fullLayout._uid+Lu.HOVERID,Lu.HOVERMINTIME,function(){d0e(r,t,a,n,i)})};P5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=CD(n),o=ED(n),l=r.map(function(m){var x=m._x0||m.x0||m.x||0,T=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,b=m._y1||m.y1||m.y||0,w=m.eventData;if(w){var k=Math.min(x,T),M=Math.max(x,T),S=Math.min(_,b),E=Math.max(_,b),D=m.trace;if(gc.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,R=P.offsetLeft,I=P.offsetTop;k+=R,M+=R,S+=I,E+=I}w.bbox={x0:k+o,x1:M+o,y0:S+i,y1:E+i},w.xPixel=(x+T)/2,w.yPixel=(_+b)/2,t.inOut_bbox&&t.inOut_bbox.push(w.bbox)}else w=!1;return{color:m.color||ka.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:w}}),s=!1,u=SD(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ka.background,container:qu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(m,x){return m.y0-x.y0}).each(function(m,x){var T=m.y0-m.by/2;T-cM[0]._length||Z<0||Z>S[0]._length)return ly.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=Z+S[0]._offset,"xval"in r?G=lo.flat(i,r.xval):G=lo.p2c(M,Q),"yval"in r?Y=lo.flat(i,r.yval):Y=lo.p2c(S,Z),!gl(G[0])||!gl(Y[0]))return Ht.warn("Fx.hover failed",r,e),ly.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=G,e._hoverYVals=Y,e._hoverXAxes=M,e._hoverYAxes=S);var me=1/0;function Re(ar,Jr){for(H=0;Hfe&&(z.splice(0,fe),me=z[0].distance),c&&I!==0&&z.length===0){_e.distance=I,_e.index=!1;var ft=W._module.hoverPoints(_e,ue,K,"closest",{hoverLayer:l._hoverlayer});if(ft&&(ft=ft.filter(function(Xa){return Xa.spikeDistance<=I})),ft&&ft.length){var Ea,Mn=ft.filter(function(Xa){return Xa.xa.showspikes&&Xa.xa.spikesnap!=="hovered data"});if(Mn.length){var Kt=Mn[0];gl(Kt.x0)&&gl(Kt.y0)&&(Ea=Le(Kt),(!ve.vLinePoint||ve.vLinePoint.spikeDistance>Ea.spikeDistance)&&(ve.vLinePoint=Ea))}var _t=ft.filter(function(Xa){return Xa.ya.showspikes&&Xa.ya.spikesnap!=="hovered data"});if(_t.length){var Vt=_t[0];gl(Vt.x0)&&gl(Vt.y0)&&(Ea=Le(Vt),(!ve.hLinePoint||ve.hLinePoint.spikeDistance>Ea.spikeDistance)&&(ve.hLinePoint=Ea))}}}}}Re();function De(ar,Jr,Xr){for(var $r=null,Rt=1/0,$t,ft=0;ftar.trace.index===qe.trace.index):z=[qe];var Be=z.length,Xe=AD("x",qe,l),Ve=AD("y",qe,l);Re(Xe,Ve);var We=[],lr={},rr=0,er=function(ar){var Jr=gD[ar.trace.type]?kD(ar):ar.trace.index;if(!lr[Jr])rr++,lr[Jr]=rr,We.push(ar);else{var Xr=lr[Jr]-1,$r=We[Xr];Xr>0&&Math.abs(ar.distance)Be-1;Ie--)er(z[Ie]);z=We,Ee()}var ne=e._hoverdata,de=[],Pe=CD(e),Fe=ED(e);for(let ar of z){var Ke=lo.makeEventData(ar,ar.trace,ar.cd);if(ar.hovertemplate!==!1){var cr=!1;ar.cd[ar.index]&&ar.cd[ar.index].ht&&(cr=ar.cd[ar.index].ht),ar.hovertemplate=cr||ar.trace.hovertemplate||!1}if(ar.xa&&ar.ya){var ur=ar.x0+ar.xa._offset,Mr=ar.x1+ar.xa._offset,Ir=ar.y0+ar.ya._offset,Gr=ar.y1+ar.ya._offset,et=Math.min(ur,Mr),qt=Math.max(ur,Mr),ct=Math.min(Ir,Gr),Ot=Math.max(Ir,Gr);Ke.bbox={x0:et+Fe,x1:qt+Fe,y0:ct+Pe,y1:Ot+Pe},Ke.xPixel=(ur+Mr)/2,Ke.yPixel=(Ir+Gr)/2}ar.eventData=[Ke],de.push(Ke)}e._hoverdata=de;var gt=v==="y"&&(B.length>1||z.length>1)||v==="closest"&&ye&&z.length>1,wa=ka.combine(l.plot_bgcolor||ka.background,l.paper_bgcolor),Zt=SD(z,{gd:e,hovermode:v,rotateLabels:gt,bgColor:wa,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Xt=Zt.hoverLabels;if(lo.isUnifiedHover(v)||(y0e(Xt,gt,l,Zt.commonLabelBoundingBox),LD(Xt,gt,l._invScaleX,l._invScaleY)),n&&n.tagName){var Ia=gc.getComponentMethod("annotations","hasClickToShow")(e,de);o0e(qu.select(n),Ia?"pointer":"")}var ua=b0e(e,r,ne);if(!n||a||!ua&&!l.hoveranywhere)return;ne&&ua&&e.emit("plotly_unhover",{event:r,points:ne}),Jt(e._hoverdata);function Jt(ar){e.emit("plotly_hover",{event:r,points:ar,xaxes:M,yaxes:S,xvals:G,yvals:Y})}}function kD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var p0e=/([\s\S]*)<\/extra>/;function SD(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Lu.HOVERFONT,c=r.fontSize||Lu.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,T=e[0],_=T.xa,b=T.ya,w=n.charAt(0),k=w+"Label",M=T[k];if(M===void 0&&_.type==="multicategory")for(var S=0;Sa.width-de&&(Pe=a.width-de),Te.attr("d","M"+(er-Pe)+",0L"+(er-Pe+Et)+","+ne+Et+"H"+de+"v"+ne+(Vr*2+rr.height)+"H"+-de+"V"+ne+Et+"H"+(er-Pe-Et)+"Z"),er=Pe,H.minX=er-de,H.maxX=er+de,_.side==="top"?(H.minY=Ie-(Vr*2+rr.height),H.maxY=Ie-Vr):(H.minY=Ie+Vr,H.maxY=Ie+(Vr*2+rr.height))}else{var Fe,Ke,cr;b.side==="right"?(Fe="start",Ke=1,cr="",er=_._offset+_._length):(Fe="end",Ke=-1,cr="-",er=_._offset),Ie=b._offset+(T.y0+T.y1)/2,qe.attr("text-anchor",Fe),Te.attr("d","M0,0L"+cr+Et+","+Et+"V"+(Vr+rr.height/2)+"h"+cr+(Vr*2+rr.width)+"V-"+(Vr+rr.height/2)+"H"+cr+Et+"V-"+Et+"Z"),H.minY=Ie-(Vr+rr.height/2),H.maxY=Ie+(Vr+rr.height/2),b.side==="right"?(H.minX=er+Et,H.maxX=er+Et+(Vr*2+rr.width)):(H.minX=er-Et-(Vr*2+rr.width),H.maxX=er-Et);var ur=rr.height/2,Mr=D-rr.top-ur,Ir="clip"+a._uid+"commonlabel"+b._id,Gr;if(erTe.hoverinfo!=="none");if(Ne.length===0)return[];var X=a.hoverlabel,W=X.font,ee=Ne[0],oe=((n==="x unified"?ee.xa:ee.ya).unifiedhovertitle||{}).text,le=oe?Ht.hovertemplateString({data:n==="x unified"?[{xa:ee.xa,x:ee.xVal}]:[{ya:ee.ya,y:ee.yVal}],fallback:ee.trace.hovertemplatefallback,locale:a._d3locale,template:oe}):M,ue={showlegend:!0,legend:{title:{text:le,font:W},font:W,bgcolor:X.bgcolor,bordercolor:X.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},K={font:W};s0e(ue,K,t._fullData);var _e=K.legend;_e.entries=[];for(var fe=0;fe=0?Ae=Ee:ze+he=0?Ae=ze:Ge+he=0?Je=Oe:Ue+me=0?Je=Ue:se+me=0,(Ne.idealAlign==="top"||!ct)&&Ot?(cr-=Mr/2,Ne.anchor="end"):ct?(cr+=Mr/2,Ne.anchor="start"):Ne.anchor="middle",Ne.crossPos=cr;else{if(Ne.pos=cr,ct=Ke+ur/2+qt<=P,Ot=Ke-ur/2-qt>=0,(Ne.idealAlign==="left"||!ct)&&Ot)Ke-=ur/2,Ne.anchor="end";else if(ct)Ke+=ur/2,Ne.anchor="start";else{Ne.anchor="middle";var gt=qt/2,wa=Ke+gt-P,Zt=Ke-gt;wa>0&&(Ke-=wa),Zt<0&&(Ke+=-Zt)}Ne.crossPos=Ke}Ie.attr("text-anchor",Ne.anchor),de&&ne.attr("text-anchor",Ne.anchor),Te.attr("transform",D5(Ke,cr)+(i?n0e(MD):""))}),{hoverLabels:dr,commonLabelBoundingBox:H}}function xD(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ht.templateString(e.name,e.trace._meta)),o=TD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=Ht.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(p0e,(p,y)=>(o=TD(y,e.nameLength),""))}return[l,o]}function y0e(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,y=function(G){return G*t._invScaleX},m=function(G){return G*t._invScaleY};e.each(function(G){var Y=G[n],V=G[i],H=Y._id.charAt(0)==="x",X=Y.range;f===0&&X&&X[0]>X[1]!==H&&(l=-1);var W=0,ee=H?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var oe=qD(G,r),le=G.anchor,ue=le==="end"?-1:1,K,_e;if(le==="middle")K=G.crossPos+(H?m(oe.y-G.by/2):y(G.bx/2+G.tx2width/2)),_e=K+(H?m(G.by):y(G.bx));else if(H)K=G.crossPos+m(Et+oe.y)-m(G.by/2-Et),_e=K+m(G.by);else{var fe=y(ue*Et+oe.x),ve=fe+y(ue*G.bx);K=G.crossPos+Math.min(fe,ve),_e=G.crossPos+Math.max(fe,ve)}H?d!==void 0&&p!==void 0&&Math.min(_e,p)-Math.max(K,d)>1&&(V.side==="left"?(W=V._mainLinePosition,ee=t.width):ee=V._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(_e,v)-Math.max(K,c)>1&&(V.side==="top"?(W=V._mainLinePosition,ee=t.height):ee=V._mainLinePosition)}u[f++]=[{datum:G,traceIndex:G.trace.index,dp:0,pos:G.pos,posref:G.posref,size:G.by*(H?f0e:1)/2,pmin:W,pmax:ee}]}),u.sort(function(G,Y){return G[0].posref-Y[0].posref||l*(Y[0].traceIndex-G[0].traceIndex)});var x,T,_,b,w,k,M;function S(G){var Y=G[0],V=G[G.length-1];if(T=Y.pmin-Y.pos-Y.dp+Y.size,_=V.pos+V.dp+V.size-Y.pmax,T>.01){for(w=G.length-1;w>=0;w--)G[w].dp+=T;x=!1}if(!(_<.01)){if(T<-.01){for(w=G.length-1;w>=0;w--)G[w].dp-=_;x=!1}if(x){var H=0;for(b=0;bY.pmax&&H++;for(b=G.length-1;b>=0&&!(H<=0);b--)k=G[b],k.pos>Y.pmax-1&&(k.del=!0,H--);for(b=0;b=0;w--)G[w].dp-=_;for(b=G.length-1;b>=0&&!(H<=0);b--)k=G[b],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,H--)}}}for(;!x&&o<=s;){for(o++,x=!0,b=0;b.01){for(w=D.length-1;w>=0;w--)D[w].dp+=T;for(E.push.apply(E,D),u.splice(b+1,1),M=0,w=E.length-1;w>=0;w--)M+=E[w].dp;for(_=M/E.length,w=E.length-1;w>=0;w--)E[w].dp-=_;x=!1}else b++}u.forEach(S)}for(b=u.length-1;b>=0;b--){var I=u[b];for(w=I.length-1;w>=0;w--){var z=I[w],B=z.datum;B.offset=z.dp,B.del=z.del}}}function qD(e,r){var t=0,a=e.offset;return r&&(a*=-v0e,t=e.offset*c0e),{x:t,y:a}}function m0e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Et+Vr),a=t+r*(e.txwidth+Vr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Vr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function LD(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=qu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=m0e(o),v=qD(o,r),d=v.x,p=v.y,y=u==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,x;y?x="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?x="M0,0L"+n(f*Et+d)+","+i(Et+p)+"v"+i(o.by/2-Et)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Et+d)+"V"+i(p-Et)+"Z":x="M"+n(f*Et+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",x);var T=d+c.textShiftX,_=p+o.ty0-o.by/2+Vr,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=y?-o.bx/2-o.tx2width/2+Vr:-o.bx-Vr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=y?o.bx/2-o.tx2width/2-Vr:o.bx+Vr)),s.call(bi.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(bi.positionText,n(c.text2ShiftX+c.alignShift*Vr+d),i(p+o.ty0-o.by/2+Vr)),l.select("rect").call(Io.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function g0e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||gl(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Ht.castOption(n,t,v);return o(p)?p:Ht.extractOption({},a,"",d)}:function(v,d){return Ht.extractOption(i,a,v,d)};function s(v,d,p){var y=l(d,p);o(y)&&(e[v]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ht.constrain(e.x0,0,e.xa._length),e.x1=Ht.constrain(e.x1,0,e.xa._length),e.y0=Ht.constrain(e.y0,0,e.ya._length),e.y1=Ht.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:zo.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:zo.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=zo.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+zo.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=zo.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+zo.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function _D(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=ka.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var y=f.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var m=mD.readability(v.color,c)<1.5?ka.contrast(c):v.color,x=f.spikemode,T=f.spikethickness,_=f.spikecolor||m,b=zo.getPxPosition(e,f),w,k;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(w=b,k=d),x.indexOf("across")!==-1){var M=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),S=Math.max(S,f.position)),w=i.l+M*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":Io.dashStyle(f.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?T:-T),cy:p,r:T,fill:_}).classed("spikeline",!0)}if(s){var E=r.vLinePoint,D,P;u=E&&E.xa,f=E&&E.ya;var R=u.spikesnap;R==="cursor"?(D=o.pointerX,P=o.pointerY):(D=u._offset+E.x,P=f._offset+E.y);var I=mD.readability(E.color,c)<1.5?ka.contrast(c):E.color,z=u.spikemode,B=u.spikethickness,G=u.spikecolor||I,Y=zo.getPxPosition(e,u),V,H;if(z.indexOf("toaxis")!==-1||z.indexOf("across")!==-1){if(z.indexOf("toaxis")!==-1&&(V=Y,H=P),z.indexOf("across")!==-1){var X=u._counterDomainMin,W=u._counterDomainMax;u.anchor==="free"&&(X=Math.min(X,u.position),W=Math.max(W,u.position)),V=i.t+(1-W)*i.h,H=i.t+(1-X)*i.h}a.insert("line",":first-child").attr({x1:D,x2:D,y1:V,y2:H,"stroke-width":B,stroke:G,"stroke-dasharray":Io.dashStyle(u.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:D,x2:D,y1:V,y2:H,"stroke-width":B+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}z.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:D,cy:Y-(u.side!=="top"?B:-B),r:B,fill:G}).classed("spikeline",!0)}}}function b0e(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function wD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function TD(e,r){return bi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function x0e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,ED=e=>e.offsetLeft+e.clientLeft;function mc(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Ht.apply3DTransform(t._invTransform)(n,i),u=Ht.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],v=u[0],d=u[1];return{x:f,y:c,width:v-f,height:d-c,top:Math.min(c,d),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,d)}}});var sy=N((VRe,DD)=>{"use strict";var _0e=Ce(),w0e=Tr(),T0e=Eo().isUnifiedHover;DD.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&T0e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=w0e.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),_0e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var PD=N((YRe,RD)=>{"use strict";var A0e=Ce(),M0e=sy(),k0e=Ff();RD.exports=function(r,t){function a(n,i){return A0e.coerce(r,t,k0e,n,i)}M0e(r,t,a)}});var ID=N((WRe,ND)=>{"use strict";var FD=Ce(),S0e=Cp(),q0e=sy();ND.exports=function(r,t,a,n){function i(l,s){return FD.coerce(r,t,S0e,l,s)}var o=FD.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),q0e(r,t,i,o)}});var N5=N((jRe,zD)=>{"use strict";var L0e=Ce(),C0e=Ff();zD.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:L0e.coerce(r,t,C0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var HD=N((ZRe,BD)=>{"use strict";var OD=Ce(),E0e=Ff(),D0e=N5(),R0e=sy();BD.exports=function(r,t){function a(f,c){return OD.coerce(r,t,E0e,f,c)}var n=D0e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),R0e(r,t,a),OD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var VD=N((XRe,GD)=>{"use strict";var I5=Ce(),UD=br();GD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return I5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var F0e=br(),N0e=F5().hover;YD.exports=function(r,t,a){var n=F0e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&N0e(r,t,a,!0);function o(){var s,u,f,c;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals),(c=l.yvals)!=null||(l.yvals=r._hoverYVals),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var xn=N(($Re,XD)=>{"use strict";var I0e=Sr(),uy=Ce(),z0e=mi(),Ph=Eo(),jD=Ff(),ZD=F5();XD.exports={moduleType:"component",name:"fx",constants:rh(),schema:{layout:jD},attributes:Cp(),layoutAttributes:jD,supplyLayoutGlobalDefaults:PD(),supplyDefaults:ID(),supplyLayoutDefaults:HD(),calc:VD(),getDistanceFunction:Ph.getDistanceFunction,getClosest:Ph.getClosest,inbox:Ph.inbox,quadrature:Ph.quadrature,appendArrayPointValue:Ph.appendArrayPointValue,castHoverOption:B0e,castHoverinfo:H0e,hover:ZD.hover,unhover:z0e.unhover,loneHover:ZD.loneHover,loneUnhover:O0e,click:WD()};function O0e(e){var r=uy.isD3Selection(e)?e:I0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function B0e(e,r,t){return uy.castOption(e,r,"hoverlabel."+t)}function H0e(e,r,t){function a(n){return uy.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return uy.castOption(e,t,"hoverinfo",a)}});var Cu=N(bl=>{"use strict";bl.selectMode=function(e){return e==="lasso"||e==="select"};bl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};bl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};bl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};bl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};bl.selectingOrDrawing=function(e){return bl.freeMode(e)||bl.rectMode(e)}});var fy=N((QRe,JD)=>{"use strict";JD.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var cy=N((ePe,$D)=>{"use strict";$D.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var hy=N((rPe,KD)=>{"use strict";var vy=32;KD.exports={CIRCLE_SIDES:vy,i000:0,i090:vy/4,i180:vy/2,i270:vy/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var dy=N((tPe,eR)=>{"use strict";var U0e=Ce().strTranslate;function QD(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function G0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function V0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return QD(e,t[r])}}function Y0e(e){return U0e(e.xaxis._offset,e.yaxis._offset)}eR.exports={p2r:QD,r2p:G0e,axValue:V0e,getTransform:Y0e}});var fs=N(xl=>{"use strict";var W0e=Mx(),aR=hy(),bc=aR.CIRCLE_SIDES,z5=aR.SQRT2,nR=dy(),rR=nR.p2r,tR=nR.r2p,j0e=[0,3,4,5,6,1,2],Z0e=[0,3,4,1,2];xl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var iR=fa(),fR=Cu(),X0e=fR.drawMode,J0e=fR.openMode,xc=hy(),oR=xc.i000,lR=xc.i090,sR=xc.i180,uR=xc.i270,$0e=xc.cos45,K0e=xc.sin45,cR=dy(),yy=cR.p2r,cs=cR.r2p,Q0e=rs(),ede=Q0e.clearOutline,my=fs(),rde=my.readPaths,tde=my.writePaths,ade=my.ellipseOver,nde=my.fixDatesForPaths;function ide(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!X0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var ode=Cu(),lde=ode.selectMode,sde=rs(),ude=sde.clearOutline,O5=fs(),fde=O5.readPaths,cde=O5.writePaths,vde=O5.fixDatesForPaths;dR.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!lde(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";pR.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var hs=N(Ra=>{"use strict";var Bo=Nh(),yR=Ce(),vs=zr();Ra.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ra.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ra.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ra.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ra.extractPathCoords=function(e,r,t){var a=[],n=e.match(Bo.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Bo.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Ra.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Ra.shapePositionToRange(r);o=function(s){var u=Oo(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Ra.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Ra.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Ra.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Ra.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Ra.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Ra.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Ra.getPathString=function(e,r){let t=r.type,a=vs.getRefType(r.xref),n=vs.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,y,m,x;function T(D,P,R,I){var z;if(D)if(P==="domain")I?z=function(B){return D._offset+D._length*(1-B)}:z=function(B){return D._offset+D._length*B};else{let B=Ra.shapePositionToRange(D);z=function(G){return D._offset+D.r2p(B(G,!0))},R==="path"&&D.type==="date"&&(z=Ra.decodeDate(z))}else I?z=function(B){return i.t+i.h*(1-B)}:z=function(B){return i.l+i.w*B};return z}if(a==="array"?(v=[],o=r.xref.map(function(D){return vs.getFromId(e,D)}),v=r.xref.map(function(D,P){return T(o[P],vs.getRefType(D),t,!1)})):(o=vs.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(D){return vs.getFromId(e,D)}),d=r.yref.map(function(D,P){return T(l[P],vs.getRefType(D),t,!0)})):(l=vs.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return hde(r,v,d);if(a==="array")s=Oo(o[0],r.x0shift),u=Oo(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=Oo(o,r.x0shift),u=Oo(o,r.x1shift),r.xsizemode==="pixel"){let D=v(r.xanchor);p=D+r.x0+s,y=D+r.x1+u}else p=v(r.x0)+s,y=v(r.x1)+u;if(n==="array")f=Oo(l[0],r.y0shift),c=Oo(l[1],r.y1shift),m=d[0](r.y0)+f,x=d[1](r.y1)+c;else if(f=Oo(l,r.y0shift),c=Oo(l,r.y1shift),r.ysizemode==="pixel"){let D=d(r.yanchor);m=D-r.y0+f,x=D-r.y1+c}else m=d(r.y0)+f,x=d(r.y1)+c;if(t==="line")return"M"+p+","+m+"L"+y+","+x;if(t==="rect")return"M"+p+","+m+"H"+y+"V"+x+"H"+p+"Z";var _=(p+y)/2,b=(m+x)/2,w=Math.abs(_-p),k=Math.abs(b-m),M="A"+w+","+k,S=_+w+","+b,E=_+","+(b-k);return"M"+S+M+" 0 1,1 "+E+M+" 0 0,1 "+S+"Z"};function hde(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Bo.segmentRE,function(v){var d=0,p=v.charAt(0),y=Bo.paramIsX[p],m=Bo.paramIsY[p],x=Bo.numParams[p];let T=y.drawn!==void 0,_=m.drawn!==void 0,b=s?r[f]:r,w=u?t[c]:t;var k=v.slice(1).replace(Bo.paramRE,function(M){return y[d]?n==="pixel"?M=b(o)+Number(M):M=b(M):m[d]&&(i==="pixel"?M=w(l)-Number(M):M=w(M)),d++,d>x&&(M="X"),M});return d>x&&(k=k.replace(/[\s,]*X.*/,""),yR.log("Ignoring extra params in segment "+v)),T&&f++,_&&c++,p+k})}Ra.getPixelShift=Oo;function Oo(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var H5=N((sPe,bR)=>{"use strict";var dde=Ce(),Ho=zr(),mR=Aa(),gR=Yr(),pde=fs().readPaths,Eu=hs(),yde=Eu.getPathString,Ih=Op(),mde=Ua().FROM_TL;bR.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Ho.getFromId(r,a.xref),s=Ho.getFromId(r,a.yref);let W=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in Ih){var f=typeof Ih[u]=="function",c=!W||Ih.simpleXVariables.includes(u),v=!ee||Ih.simpleYVariables.includes(u);if(f&&c&&v){var d=Ih[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=dde.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},y=a.label.font,m={"data-notex":1},x=n.append("g").attr(p).classed("shape-label",!0),T=x.append("text").attr(m).classed("shape-label-text",!0).text(i),_,b,w,k;if(a.path){var M=yde(r,a),S=pde(M,r);_=1/0,w=1/0,b=-1/0,k=-1/0;for(var E=0;EEu.getDataToPixel(r,ie,Z,!1,he)(Q),j=(Q,Z,ie,he)=>Eu.getDataToPixel(r,ie,Z,!0,he)(Q);if(a.xsizemode==="pixel"){let Q=ce(a.xanchor,void 0,oe,_e),Z=Eu.getPixelShift(oe,a.x0shift),ie=Eu.getPixelShift(oe,a.x1shift);_=Q+a.x0+Z,b=Q+a.x1+ie}else _=ce(a.x0,a.x0shift,oe,_e),b=ce(a.x1,a.x1shift,le,fe);if(a.ysizemode==="pixel"){let Q=j(a.yanchor,void 0,ue,ve),Z=Eu.getPixelShift(ue,a.y0shift),ie=Eu.getPixelShift(ue,a.y1shift);w=Q-a.y0+Z,k=Q-a.y1+ie}else w=j(a.y0,a.y0shift,ue,ve),k=j(a.y1,a.y1shift,K,ye)}var B=a.label.textangle;B==="auto"&&(a.type==="line"?B=gde(_,w,b,k):B=0),T.call(function(W){return W.call(gR.font,y).attr({}),mR.convertToTspans(W,r),W});var G=gR.bBox(T.node()),Y=bde(_,w,b,k,a,B,G),V=Y.textx,H=Y.texty,X=Y.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[X],y:H,x:V,transform:"rotate("+B+","+V+","+H+")"}).call(mR.positionText,V,H)}};function gde(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function bde(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,x,T,_;if(f==="line"){l==="start"?(m=e,x=r):l==="end"?(m=t,x=a):(m=(e+t)/2,x=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var xde=Ce(),_de=xde.strTranslate,xR=mi(),TR=Cu(),wde=TR.drawMode,AR=TR.selectMode,MR=br(),_R=Tr(),xy=hy(),Tde=xy.i000,Ade=xy.i090,Mde=xy.i180,kde=xy.i270,Sde=rs(),kR=Sde.clearOutlineControllers,G5=fs(),by=G5.pointsOnRectangle,U5=G5.pointsOnEllipse,qde=G5.writePaths,Lde=gy().newShapes,Cde=gy().createShapeObj,Ede=B5(),Dde=H5();SR.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(U5(r[0])||a.hasText)&&l({redrawing:!0})}function l(Y){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=Lde(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=Ede(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&MR.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=wde(f),v=AR(f);(c||v)&&(i._fullLayout._outlining=!0),kR(i),t.attr("d",qde(r));var d,p,y,m,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=Rde([],r);var T=u.append("g").attr("class","outline-controllers");D(T),G()}if(c&&a.hasText){var _=u.select(".label-temp"),b=Cde(t,a,a.dragmode);Dde(i,"label-temp",b,_)}function w(Y){y=+Y.srcElement.getAttribute("data-i"),m=+Y.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(Y,V){if(r.length){var H=x[y][m][1],X=x[y][m][2],W=r[y],ee=W.length;if(by(W)){var oe=Y,le=V;if(a.isActiveSelection){var ue=wR(W,m);ue[1]===W[m][1]?le=0:oe=0}for(var K=0;K1&&!(Y.length===2&&Y[1][0]==="Z")&&(m===0&&(Y[0][0]="M"),r[y]=Y,o(),l())}}function E(Y,V){if(Y===2){y=+V.srcElement.getAttribute("data-i"),m=+V.srcElement.getAttribute("data-j");var H=r[y];!by(H)&&!U5(H)&&S()}}function D(Y){d=[];for(var V=0;V{"use strict";var Fde=Sr(),RR=br(),Y5=Ce(),Du=zr(),Nde=fs().readPaths,Ide=_y(),Ty=H5(),PR=rs().clearOutlineControllers,V5=Tr(),Ay=Yr(),zde=wt().arrayEditor,qR=mi(),LR=xn(),CR=ss(),Ru=Nh(),In=hs(),W5=In.getPathString;IR.exports={draw:j5,drawOne:FR,eraseActiveShape:Gde,drawLabel:Ty};function j5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&LR.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&LR.click(e,o,t.id)}})}function NR(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=Bde(r,a,n);Y5.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),Ay.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Ay.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function Bde(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>Du.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function Hde(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,y,m,x,T,_,b,w,k,M,S,E,D,P,R=Fde.select(r.node().parentNode),I=Du.getFromId(e,t.xref),z=Du.getRefType(t.xref),B=Du.getFromId(e,t.yref),G=Du.getRefType(t.yref),Y=t.x0shift,V=t.x1shift,H=t.y0shift,X=t.y1shift,W=function(De,Le){var He=In.getDataToPixel(e,I,Le,!1,z);return He(De)},ee=function(De,Le){var He=In.getDataToPixel(e,B,Le,!0,G);return He(De)},oe=In.getPixelToData(e,I,!1,z),le=In.getPixelToData(e,B,!0,G),ue=fe(),K={element:ue.node(),gd:e,prepFn:ce,doneFn:j,clickFn:Q},_e;qR.init(K),ue.node().onmousemove=ye;function fe(){return f?ve():r}function ve(){var De=10,Le=Math.max(t.line.width,De),He=n.append("g").attr("data-index",a).attr("drag-helper",!0);He.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Le,"stroke-opacity":"0"});var Oe={"fill-opacity":"0"},Ue=Math.max(Le/2,De);return He.append("circle").attr({"data-line-point":"start-point",cx:s?W(t.xanchor)+t.x0:W(t.x0,Y),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,H),r:Ue}).style(Oe).classed("cursor-grab",!0),He.append("circle").attr({"data-line-point":"end-point",cx:s?W(t.xanchor)+t.x1:W(t.x1,V),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,X),r:Ue}).style(Oe).classed("cursor-grab",!0),He}function ye(De){if(wy(e)){_e=null;return}if(f)De.target.tagName==="path"?_e="move":_e=De.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Le=K.element.getBoundingClientRect(),He=Le.right-Le.left,Oe=Le.bottom-Le.top,Ue=De.clientX-Le.left,Ee=De.clientY-Le.top,ze=!c&&He>o&&Oe>l&&!De.shiftKey?qR.getCursor(Ue/He,1-Ee/Oe):"move";CR(r,ze),_e=ze.split("-")[0]}}function ce(De){wy(e)||(s&&(x=W(t.xanchor)),u&&(T=ee(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:W(t.x0),p=u?t.y0:ee(t.y0),y=s?t.x1:W(t.x1),m=u?t.y1:ee(t.y1)),dm?(_=p,M="y0",b=m,S="y1"):(_=m,M="y1",b=p,S="y0"),ye(De),he(n,t),Re(r,t,e),K.moveFn=_e==="move"?Z:ie,K.altKey=De.altKey)}function j(){wy(e)||(CR(r),me(n),NR(r,e,t),RR.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){wy(e)||me(n)}function Z(De,Le){if(t.type==="path"){var He=function(Ee){return Ee},Oe=He,Ue=He;s?v("xanchor",t.xanchor=oe(x+De)):(Oe=function(ze){return oe(W(ze)+De)},I&&I.type==="date"&&(Oe=In.encodeDate(Oe))),u?v("yanchor",t.yanchor=le(T+Le)):(Ue=function(ze){return le(ee(ze)+Le)},B&&B.type==="date"&&(Ue=In.encodeDate(Ue))),v("path",t.path=ER(P,Oe,Ue))}else s?v("xanchor",t.xanchor=oe(x+De)):(v("x0",t.x0=oe(d+De)),v("x1",t.x1=oe(y+De))),u?v("yanchor",t.yanchor=le(T+Le)):(v("y0",t.y0=le(p+Le)),v("y1",t.y1=le(m+Le)));r.attr("d",W5(e,t)),he(n,t),Ty(e,a,t,R)}function ie(De,Le){if(c){var He=function(We){return We},Oe=He,Ue=He;s?v("xanchor",t.xanchor=oe(x+De)):(Oe=function(lr){return oe(W(lr)+De)},I&&I.type==="date"&&(Oe=In.encodeDate(Oe))),u?v("yanchor",t.yanchor=le(T+Le)):(Ue=function(lr){return le(ee(lr)+Le)},B&&B.type==="date"&&(Ue=In.encodeDate(Ue))),v("path",t.path=ER(P,Oe,Ue))}else if(f){if(_e==="resize-over-start-point"){var Ee=d+De,ze=u?p-Le:p+Le;v("x0",t.x0=s?Ee:oe(Ee)),v("y0",t.y0=u?ze:le(ze))}else if(_e==="resize-over-end-point"){var Ge=y+De,se=u?m-Le:m+Le;v("x1",t.x1=s?Ge:oe(Ge)),v("y1",t.y1=u?se:le(se))}}else{var Ae=function(We){return _e.indexOf(We)!==-1},Je=Ae("n"),dr=Ae("s"),Ne=Ae("w"),Te=Ae("e"),qe=Je?_+Le:_,Be=dr?b+Le:b,Xe=Ne?w+De:w,Ve=Te?k+De:k;u&&(Je&&(qe=_-Le),dr&&(Be=b-Le)),(!u&&Be-qe>l||u&&qe-Be>l)&&(v(M,t[M]=u?qe:le(qe)),v(S,t[S]=u?Be:le(Be))),Ve-Xe>o&&(v(E,t[E]=s?Xe:oe(Xe)),v(D,t[D]=s?Ve:oe(Ve)))}r.attr("d",W5(e,t)),he(n,t),Ty(e,a,t,R)}function he(De,Le){(s||u)&&He();function He(){var Oe=Le.type!=="path",Ue=De.selectAll(".visual-cue").data([0]),Ee=1;Ue.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ee}).classed("visual-cue",!0);var ze=W(s?Le.xanchor:Y5.midRange(Oe?[Le.x0,Le.x1]:In.extractPathCoords(Le.path,Ru.paramIsX))),Ge=ee(u?Le.yanchor:Y5.midRange(Oe?[Le.y0,Le.y1]:In.extractPathCoords(Le.path,Ru.paramIsY)));if(ze=In.roundPositionForSharpStrokeRendering(ze,Ee),Ge=In.roundPositionForSharpStrokeRendering(Ge,Ee),s&&u){var se="M"+(ze-1-Ee)+","+(Ge-1-Ee)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ue.attr("d",se)}else if(s){var Ae="M"+(ze-1-Ee)+","+(Ge-9-Ee)+"v18 h2 v-18 Z";Ue.attr("d",Ae)}else{var Je="M"+(ze-9-Ee)+","+(Ge-1-Ee)+"h18 v2 h-18 Z";Ue.attr("d",Je)}}}function me(De){De.selectAll(".visual-cue").remove()}function Re(De,Le,He){var Oe=Le.xref,Ue=Le.yref,Ee=Du.getFromId(He,Oe),ze=Du.getFromId(He,Ue),Ge="";Oe!=="paper"&&!Ee.autorange&&(Ge+=Oe),Ue!=="paper"&&!ze.autorange&&(Ge+=Ue),Ay.setClipUrl(De,Ge?"clip"+He._fullLayout._uid+Ge:null,He)}}function ER(e,r,t){return e.replace(Ru.segmentRE,function(a){var n=0,i=a.charAt(0),o=Ru.paramIsX[i],l=Ru.paramIsY[i],s=Ru.numParams[i],u=a.slice(1).replace(Ru.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function Ude(e,r){if(My(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){DR(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=DR,j5(e)}}}function DR(e){if(My(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(PR(e),delete e._fullLayout._activeShapeIndex,j5(e))}}function Gde(e){if(My(e)){PR(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var xi=br(),zR=aa(),OR=fa(),jr=cy(),Vde=ky().eraseActiveShape,Sy=Ce(),Hr=Sy._,Zr=WR.exports={};Zr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Hr(e,"Download plot as a PNG"):Hr(e,"Download plot")},icon:jr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Sy.notifier(Hr(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),xi.call("downloadImage",e,t).then(function(a){Sy.notifier(Hr(e,"Snapshot succeeded")+" - "+a,"long",e)}).catch(function(){Sy.notifier(Hr(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Zr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Hr(e,"Edit in Chart Studio")},icon:jr.disk,click:function(e){zR.sendDataToCloud(e)}};Zr.editInChartStudio={name:"editInChartStudio",title:function(e){return Hr(e,"Edit in Chart Studio")},icon:jr.pencil,click:function(e){zR.sendDataToCloud(e)}};Zr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Hr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:jr.zoombox,click:un};Zr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Hr(e,"Pan")},attr:"dragmode",val:"pan",icon:jr.pan,click:un};Zr.select2d={name:"select2d",_cat:"select",title:function(e){return Hr(e,"Box Select")},attr:"dragmode",val:"select",icon:jr.selectbox,click:un};Zr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Hr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:jr.lasso,click:un};Zr.drawclosedpath={name:"drawclosedpath",title:function(e){return Hr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:jr.drawclosedpath,click:un};Zr.drawopenpath={name:"drawopenpath",title:function(e){return Hr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:jr.drawopenpath,click:un};Zr.drawline={name:"drawline",title:function(e){return Hr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:jr.drawline,click:un};Zr.drawrect={name:"drawrect",title:function(e){return Hr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:jr.drawrect,click:un};Zr.drawcircle={name:"drawcircle",title:function(e){return Hr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:jr.drawcircle,click:un};Zr.eraseshape={name:"eraseshape",title:function(e){return Hr(e,"Erase active shape")},icon:jr.eraseshape,click:Vde};Zr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Hr(e,"Zoom in")},attr:"zoom",val:"in",icon:jr.zoom_plus,click:un};Zr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Hr(e,"Zoom out")},attr:"zoom",val:"out",icon:jr.zoom_minus,click:un};Zr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Hr(e,"Autoscale")},attr:"zoom",val:"auto",icon:jr.autoscale,click:un};Zr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Hr(e,"Reset axes")},attr:"zoom",val:"reset",icon:jr.home,click:un};Zr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Hr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:jr.tooltip_basic,gravity:"ne",click:un};Zr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Hr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:jr.tooltip_compare,gravity:"ne",click:un};function un(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=OR.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f{"use strict";var jR=J5(),jde=Object.keys(jR),ZR=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],XR=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(ZR),wc=[],Zde=function(e){if(XR.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();wc.indexOf(r)===-1&&wc.push(r),wc.indexOf(t)===-1&&wc.push(t)}};jde.forEach(function(e){Zde(jR[e])});wc.sort();JR.exports={DRAW_MODES:ZR,backButtons:XR,foreButtons:wc}});var K5=N((dPe,$R)=>{"use strict";var hPe=$5();$R.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var QR=N((pPe,KR)=>{"use strict";var Xde=Ce(),zh=Tr(),Jde=wt(),$de=K5();KR.exports=function(r,t){var a=r.modebar||{},n=Jde.newContainer(t,"modebar");function i(l,s){return Xde.coerce(a,n,$de,l,s)}i("orientation"),i("bgcolor",zh.addOpacity(t.paper_bgcolor,.5));var o=zh.contrast(zh.rgb(t.modebar.bgcolor));i("color",zh.addOpacity(o,.3)),i("activecolor",zh.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var aP=N((yPe,tP)=>{"use strict";var Q5=Sr(),Kde=Rr(),Ly=Ce(),eP=cy(),Qde=gp().version,epe=new DOMParser;function rP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Uo=rP.prototype;Uo.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Ly.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Uo.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Uo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Uo.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Q5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||eP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Uo.createIcon=function(e){var r=Kde(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=epe.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Uo.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=Q5.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:Ly.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Uo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var ape=fa(),nP=Nn(),e_=br(),npe=Eo().isUnifiedHover,ipe=aP(),Cy=J5(),ope=$5().DRAW_MODES,lpe=Ce().extendDeep;iP.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=hpe(i):!a.displayModeBar&&a.watermark?o=[]:o=spe(r),n?n.update(r,o):t._modeBar=ipe(r,o)};function spe(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(V,H){if(typeof H=="string"){if(H.toLowerCase()===V.toLowerCase())return!0}else{var X=H.name,W=H._cat||H.name;if(X===V||W===V.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(V){for(var H=0;H1?(D=["toggleHover"],P=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],P=["resetGeo"]):f?(D=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(E=["zoomInMapbox","zoomOutMapbox"],D=["toggleHover"],P=["resetViewMapbox"]):m?(E=["zoomInMap","zoomOutMap"],D=["toggleHover"],P=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(cpe(t)||w)&&(D=[]),u&&!b&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||p?R=["zoom2d","pan2d"]:y||m||c?R=["pan2d"]:x&&(R=["zoom2d"]),fpe(t)&&R.push("select2d","lasso2d");var I=[],z=function(V){I.indexOf(V)===-1&&D.indexOf(V)!==-1&&I.push(V)};if(Array.isArray(l)){for(var B=[],G=0;G{"use strict";lP.exports={moduleType:"component",name:"modebar",layoutAttributes:K5(),supplyLayoutDefaults:QR(),manage:oP()}});var t_=N((bPe,sP)=>{"use strict";var dpe=Ua().FROM_BL;sP.exports=function(r,t,a){a===void 0&&(a=dpe[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Fu=N(Oh=>{"use strict";var Pu=Ce(),a_=wh(),so=fa().id2name,ppe=pi(),uP=t_(),ype=sc(),mpe=Ft().ALMOST_EQUAL,gpe=Ua().FROM_BL;Oh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.slice(i):a.slice(n))+o}function xpe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;ompe*p&&!T)){for(i=0;iR&&XD&&(D=X);var ee=(D-E)/(2*P);c/=ee,E=s.l2r(E),D=s.l2r(D),s.range=s._input.range=k{"use strict";var Dy=Sr(),fn=br(),Qn=aa(),_i=Ce(),o_=Aa(),l_=fy(),Bh=Tr(),Tc=Yr(),hP=lc(),gP=r_(),Hh=zr(),_l=Ua(),bP=Fu(),_pe=bP.enforce,wpe=bP.clean,dP=wh().doAutoRange,xP="start",Tpe="middle",_P="end",Ape=xa().zindexSeparator;Sa.layoutStyles=function(e){return _i.syncOrAsync([Qn.doAutoMargin,kpe],e)};function Mpe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function kpe(e){var r=e._fullLayout,t=r._size,a=t.p,n=Hh.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(Tc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Sa.drawMainTitle(e),gP.manage(e),!r._has("cartesian"))return Qn.previousPromises(e);function c(ce,j,Q){var Z=ce._lw/2;if(ce._id.charAt(0)==="x"){if(j){if(Q==="top")return j._offset-a-Z}else return t.t+t.h*(1-(ce.position||0))+Z%1;return j._offset+j._length+a+Z}if(j){if(Q==="right")return j._offset+j._length+a+Z}else return t.l+t.w*(ce.position||0)+Z%1;return j._offset-a-Z}for(i=0;i0){Cpe(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:mP(r.yanchor)}).call(o_.positionText,o,i);var f=(r.text.match(o_.BR_TAG_ALL)||[]).length;if(f){var c=_l.LINE_SPACING*f+_l.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=Dy.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+hP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:mP(r.yanchor)}).call(o_.positionText,o,y)}}}};function Spe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=_i.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return _i.isTopAnchor(r)&&t==="t"||_i.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=qpe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Cpe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Spe(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Qn.allowAutoMargin(e,n),Qn.autoMargin(e,n,l)}function Epe(e,r){var t=e.title,a=e._size,n=0;switch(r===xP?n=t.pad.l:r===_P&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function Dpe(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===_l.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function mP(e){return e==="top"?_l.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":_l.MID_SHIFT+"em"}function Rpe(e){var r=e.title,t=Tpe;return _i.isRightAnchor(r)?t=_P:_i.isLeftAnchor(r)&&(t=xP),t}function Ppe(e){var r=e.title,t="0em";return _i.isTopAnchor(r)?t=_l.CAP_SHIFT+"em":_i.isMiddleAnchor(r)&&(t=_l.MID_SHIFT+"em"),t}Sa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Fpe=fs().readPaths,Npe=_y(),wP=rs().clearOutlineControllers,s_=Tr(),TP=Yr(),Ipe=wt().arrayEditor,AP=hs(),zpe=AP.getPathString;kP.exports={draw:Py,drawOne:MP,activateLastSelection:Hpe};function Py(e){var r=e._fullLayout;wP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var x=o.append("path").attr(s).style("opacity",m?.1:u).call(s_.stroke,c).call(s_.fill,f).call(TP.dashLine,m?"solid":d,m?4+v:v);if(Ope(x,e,a),p){var T=Ipe(e.layout,"selections",a);x.style({cursor:"move"});var _={element:x.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},b=Fpe(l,e);Npe(b,x,_)}else x.style("pointer-events",m?"all":"none");y[m]=x}var w=y[0],k=y[1];k.node().addEventListener("click",function(){return Bpe(e,w)})}}function Ope(e,r,t){var a=t.xref+t.yref;TP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Bpe(e,r){if(Fy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){u_(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=u_,Py(e)}}}function Hpe(e){if(Fy(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=u_,Py(e)}}function u_(e){if(Fy(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(wP(e),delete e._fullLayout._activeSelectionIndex,Py(e))}}});var qP=N((TPe,SP)=>{function Upe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}SP.exports=Upe});var CP=N((APe,LP)=>{function Gpe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}LP.exports=Gpe});var DP=N((MPe,EP)=>{var Vpe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};EP.exports=Vpe});var PP=N((kPe,RP)=>{var Uh=DP();function Ype(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Uh.create();function o(p,y,m,x,T,_){var b=r.pointsCompare(y,T);return b!==0?b:r.pointsSame(m,_)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(m,x?T:_,x?_:T)?1:-1}function l(p,y){i.insertBefore(p,function(m){var x=o(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return x<0})}function s(p,y){var m=Uh.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return l(m,p.end),m}function u(p,y,m){var x=Uh.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=x,l(x,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,l(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function d(p,y){var m=Uh.create();function x(B,G){var Y=B.seg.start,V=B.seg.end,H=G.seg.start,X=G.seg.end;return r.pointsCollinear(Y,H,X)?r.pointsCollinear(V,H,X)||r.pointAboveOrOnLine(V,H,X)?1:-1:r.pointAboveOrOnLine(Y,H,X)?1:-1}function T(B){return m.findTransition(function(G){var Y=x(B,G.ev);return Y>0})}function _(B,G){var Y=B.seg,V=G.seg,H=Y.start,X=Y.end,W=V.start,ee=V.end;t&&t.checkIntersection(Y,V);var oe=r.linesIntersect(H,X,W,ee);if(oe===!1){if(!r.pointsCollinear(H,X,W)||r.pointsSame(H,ee)||r.pointsSame(X,W))return!1;var le=r.pointsSame(H,W),ue=r.pointsSame(X,ee);if(le&&ue)return G;var K=!le&&r.pointBetween(H,W,ee),_e=!ue&&r.pointBetween(X,W,ee);if(le)return _e?v(G,X):v(B,ee),G;K&&(ue||(_e?v(G,X):v(B,ee)),v(G,H))}else oe.alongA===0&&(oe.alongB===-1?v(B,W):oe.alongB===0?v(B,oe.pt):oe.alongB===1&&v(B,ee)),oe.alongB===0&&(oe.alongA===-1?v(G,H):oe.alongA===0?v(G,oe.pt):oe.alongA===1&&v(G,X));return!1}for(var b=[];!i.isEmpty();){var w=i.getHead();if(t&&t.vert(w.pt[0]),w.isStart){let B=function(){if(M){var G=_(w,M);if(G)return G}return S?_(w,S):!1};var z=B;t&&t.segmentNew(w.seg,w.primary);var k=T(w),M=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(w.seg,M?M.seg:!1,S?S.seg:!1);var E=B();if(E){if(e){var D;w.seg.myFill.below===null?D=!0:D=w.seg.myFill.above!==w.seg.myFill.below,D&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=w.seg.myFill;t&&t.segmentUpdate(E.seg),w.other.remove(),w.remove()}if(i.getHead()!==w){t&&t.rewind(w.seg);continue}if(e){var D;w.seg.myFill.below===null?D=!0:D=w.seg.myFill.above!==w.seg.myFill.below,S?w.seg.myFill.below=S.seg.myFill.above:w.seg.myFill.below=p,D?w.seg.myFill.above=!w.seg.myFill.below:w.seg.myFill.above=w.seg.myFill.below}else if(w.seg.otherFill===null){var P;S?w.primary===S.primary?P=S.seg.otherFill.above:P=S.seg.myFill.above:P=w.primary?y:p,w.seg.otherFill={above:P,below:P}}t&&t.status(w.seg,M?M.seg:!1,S?S.seg:!1),w.other.status=k.insert(Uh.node({ev:w}))}else{var R=w.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(R.prev)&&m.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!w.primary){var I=w.seg.myFill;w.seg.myFill=w.seg.otherFill,w.seg.otherFill=I}b.push(w.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var y,m=p[p.length-1],x=0;x{function Wpe(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(z,B,G){return f.index=z,f.matches_head=B,f.matches_pt1=G,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function Gh(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var jpe={union:function(e,r){return Gh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Gh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Gh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Gh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Gh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};IP.exports=jpe});var BP=N((LPe,OP)=>{var Zpe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var Xpe=qP(),Jpe=CP(),HP=PP(),$pe=NP(),Vh=zP(),UP=BP(),wi=!1,Yh=Jpe(),zn;zn={buildLog:function(e){return e===!0?wi=Xpe():e===!1&&(wi=!1),wi===!1?!1:wi.list},epsilon:function(e){return Yh.epsilon(e)},segments:function(e){var r=HP(!0,Yh,wi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=HP(!1,Yh,wi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Vh.union(e.combined,wi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Vh.intersect(e.combined,wi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Vh.difference(e.combined,wi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Vh.differenceRev(e.combined,wi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Vh.xor(e.combined,wi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:$pe(e.segments,Yh,wi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return UP.toPolygon(zn,e)},polygonToGeoJSON:function(e){return UP.fromPolygon(zn,Yh,e)},union:function(e,r){return Wh(e,r,zn.selectUnion)},intersect:function(e,r){return Wh(e,r,zn.selectIntersect)},difference:function(e,r){return Wh(e,r,zn.selectDifference)},differenceRev:function(e,r){return Wh(e,r,zn.selectDifferenceRev)},xor:function(e,r){return Wh(e,r,zn.selectXor)}};function Wh(e,r,t){var a=zn.segments(e),n=zn.segments(r),i=zn.combine(a,n),o=t(i);return zn.polygon(o)}typeof window=="object"&&(window.PolyBool=zn);GP.exports=zn});var WP=N((EPe,YP)=>{YP.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;y&&(l=!l)}return l}});var v_=N((DPe,jP)=>{"use strict";var c_=Np().dot,Ny=Ft().BADNUM,Iy=jP.exports={};Iy.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||x===Ny||xo||y&&u(p))}function c(p,y){var m=p[0],x=p[1];if(m===Ny||mn||x===Ny||xo)return!1;var T=t.length,_=t[0][0],b=t[0][1],w=0,k,M,S,E,D;for(k=1;kMath.max(M,_)||x>Math.max(S,b)))if(xl||Math.abs(c_(c,u))>n)return!0;return!1};Iy.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var XP=N((RPe,ZP)=>{"use strict";ZP.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var mF=N((PPe,yF)=>{"use strict";var JP=VP(),Kpe=WP(),Xh=br(),Qpe=Yr().dashStyle,jh=Tr(),e1e=xn(),r1e=Eo().makeEventData,e0=Cu(),t1e=e0.freeMode,a1e=e0.rectMode,Jh=e0.drawMode,y_=e0.openMode,m_=e0.selectMode,$P=hs(),KP=Nh(),aF=_y(),nF=rs().clearOutline,iF=fs(),h_=iF.handleEllipse,n1e=iF.readPaths,i1e=gy().newShapes,o1e=B5(),l1e=f_().activateLastSelection,Oy=Ce(),s1e=Oy.sorterAsc,oF=v_(),Zh=Zp(),Ti=fa().getFromId,u1e=fy(),f1e=Ry().redrawReglTraces,By=XP(),Go=By.MINSELECT,c1e=oF.filter,g_=oF.tester,b_=dy(),QP=b_.p2r,v1e=b_.axValue,h1e=b_.getTransform;function x_(e){return e.subplot!==void 0}function d1e(e,r,t,a,n){var i=!x_(a),o=t1e(n),l=a1e(n),s=y_(n),u=Jh(n),f=m_(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,x=y._zoomlayer,T=a.element.getBoundingClientRect(),_=a.plotinfo,b=h1e(_),w=r-T.left,k=t-T.top;y._calcInverseTransform(p);var M=Oy.apply3DTransform(y._invTransform)(w,k);w=M[0],k=M[1];var S=y._invScaleX,E=y._invScaleY,D=w,P=k,R="M"+w+","+k,I=a.xaxes[0],z=a.yaxes[0],B=I._length,G=z._length,Y=e.altKey&&!(Jh(n)&&s),V,H,X,W,ee,oe,le;sF(e,p,a),o&&(V=c1e([[w,k]],By.BENDPX));var ue=x.selectAll("path.select-outline-"+_.id).data([1]),K=u?y.newshape:y.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var _e=u&&!s?K.fillcolor:"rgba(0,0,0,0)",fe=K.line.color||(i?jh.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ue.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":Qpe(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(jh.stroke,fe).call(jh.fill,_e).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",R+"Z");var ve=x.append("path").attr("class","zoombox-corners").style({fill:jh.background,stroke:jh.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ye=x.select(".label-temp");ye.empty()&&(ye=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ce=y._uid+By.SELECTID,j=[],Q=Hy(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ie=I._id,he=z._id;hF(p,ie,he,Q);for(var me=(p.layout||{}).selections||[],Re=[],De=!1,Le=0;Le=0){p._fullLayout._deactivateShape(p);return}if(!u){var me=y.clickmode;Zh.done(ce).then(function(){if(Zh.clear(ce),ie===2){for(ue.remove(),ee=0;ee-1&&lF(he,p,a.xaxes,a.yaxes,a.subplot,a,ue),me==="event"&&Qh(p,void 0);e1e.click(p,he,_.id)}).catch(Oy.error)}},a.doneFn=function(){ve.remove(),Zh.done(ce).then(function(){Zh.clear(ce),!m&&W&&a.selectionDefs&&(W.subtract=Y,a.selectionDefs.push(W),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,X)),(m||u)&&$h(a,m),a.doneFnCompleted&&a.doneFnCompleted(j),f&&Qh(p,le)}).catch(Oy.error)}}function lF(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,y,m,x,T,_,b,w;if(b1e(l)){sF(e,r,i),v=Hy(r,t,a,n);var k=x1e(l,v),M=k.pointNumbers.length>0;if(M?_1e(v,k):w1e(v)&&(T=rF(k))){for(o&&o.remove(),w=0;w=0}function g1e(e){return e._fullLayout._activeSelectionIndex>=0}function $h(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;m1e(n)&&n._fullLayout._deactivateShape(n),g1e(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Jh(t),s=m_(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=i1e(u,e)),f&&Xh.call("_guiRelayout",n,{shapes:f});var c;s&&!x_(e)&&(c=o1e(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Xh.call("_guiRelayout",n,{selections:c}).then(function(){r&&l1e(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function eF(e){return e._id}function Hy(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(eF),o=t.map(eF),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function _1e(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Kh(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var ie=tF(e,!0);if(ie.length){var he=ie[0].xref,me=ie[0].yref;if(he&&me){var Re=dF(ie),De=pF([Ti(e,he,"x"),Ti(e,me,"y")]);De(j,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Z&&Qh(e,j),v._reselect=!1}if(!o&&v._deselect){var Le=v._deselect;l=Le.xref,s=Le.yref,M1e(l,s,f)||hF(e,l,s,a),Z&&(j.points.length?Qh(e,j):T_(e)),v._deselect=!1}return{eventData:j,selectionTesters:t}}function A1e(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";gF.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var r0=N((NPe,bF)=>{"use strict";bF.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var Ac=N((zPe,wF)=>{"use strict";var xF=A_(),_F=ga(),Uy=xa(),C1e=wt().templatedArray,IPe=r0();wF.exports=C1e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:_F({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:xF.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:xF.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Uy.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Uy.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Uy.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Uy.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:_F({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var t0=N((OPe,TF)=>{"use strict";TF.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Gy=N((BPe,AF)=>{"use strict";AF.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ai=N((HPe,DF)=>{"use strict";var MF=no().axisHoverFormat,{hovertemplateAttrs:E1e,texttemplateAttrs:D1e,templatefallbackAttrs:kF}=Wn(),SF=Lo(),R1e=ga(),qF=ci().dash,P1e=ci().pattern,F1e=Yr(),N1e=t0(),a0=bt().extendFlat,I1e=Gy();function LF(e){return{valType:"any",dflt:0,editType:"calc"}}function CF(e){return{valType:"any",editType:"calc"}}function EF(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}DF.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:LF("x"),yperiod:LF("y"),xperiod0:CF("x0"),yperiod0:CF("y0"),xperiodalignment:EF("x"),yperiodalignment:EF("y"),xhoverformat:MF("x"),yhoverformat:MF("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:D1e(),texttemplatefallback:kF({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:E1e({},{keys:N1e.eventDataKeys}),hovertemplatefallback:kF(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:a0({},qF,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:I1e(!0),fillgradient:a0({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:P1e,marker:a0({symbol:{valType:"enumerated",values:F1e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:a0({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:a0({},qF,{arrayOk:!0}),editType:"calc"},SF("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},SF("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:R1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var M_=N((GPe,FF)=>{"use strict";var RF=Ac(),PF=Ai().line,z1e=ci().dash,Vy=bt().extendFlat,O1e=eo().overrideAll,B1e=wt().templatedArray,UPe=r0();FF.exports=O1e(B1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Vy({},RF.xref,{}),yref:Vy({},RF.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:PF.color,width:Vy({},PF.width,{min:1,dflt:1}),dash:Vy({},z1e,{dflt:"dot"})}}),"arraydraw","from-root")});var OF=N((VPe,zF)=>{"use strict";var NF=Ce(),Yy=zr(),H1e=io(),U1e=M_(),IF=hs();zF.exports=function(r,t){H1e(r,t,{name:"selections",handleItemDefaults:G1e});for(var a=t.selections,n=0;n{"use strict";BF.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var n0=N((WPe,VF)=>{"use strict";var V1e=br(),UF=Ce(),GF=fa();VF.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=V1e.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var YF=f_(),i0=mF();WF.exports={moduleType:"component",name:"selections",layoutAttributes:M_(),supplyLayoutDefaults:OF(),supplyDrawNewSelectionDefaults:HF(),includeBasePlot:n0()("selections"),draw:YF.draw,drawOne:YF.drawOne,reselect:i0.reselect,prepSelect:i0.prepSelect,clearOutline:i0.clearOutline,clearSelectionsCache:i0.clearSelectionsCache,selectOnClick:i0.selectOnClick}});var hN=N((ZPe,vN)=>{"use strict";var C_=Sr(),Mi=Ce(),jF=Mi.numberFormat,Y1e=Cn(),W1e=f5(),Wy=br(),tN=Mi.strTranslate,j1e=Aa(),ZF=Tr(),ps=Yr(),Z1e=xn(),XF=zr(),X1e=ss(),J1e=mi(),aN=Cu(),jy=aN.selectingOrDrawing,$1e=aN.freeMode,K1e=Ua().FROM_TL,Q1e=fy(),eye=Ry().redrawReglTraces,rye=aa(),S_=fa().getFromId,tye=Vo().prepSelect,aye=Vo().clearOutline,nye=Vo().selectOnClick,k_=t_(),E_=xa(),JF=E_.MINDRAG,_n=E_.MINZOOM,$F=!0;function iye(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,y,m,x,T,_,b,w,k,M,S,E,D,P,R,I,z,B,G,Y;t+=r.yaxis._shift;function V(){if(c=r.xaxis,v=r.yaxis,_=c._length,b=v._length,x=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var Te=r.overlays,qe=0;qe=0){Be._fullLayout._deactivateShape(Be);return}var Xe=Be._fullLayout.clickmode;if(L_(Be),Te===2&&!f&&Ge(),u)Xe.indexOf("select")>-1&&nye(qe,Be,y,m,r.id,W),Xe.indexOf("event")>-1&&Z1e.click(Be,qe,r.id);else if(Te===1&&f){var Ve=o?v:c,We=o==="s"||l==="w"?0:1,lr=Ve._name+".range["+We+"]",rr=oye(Ve,We),er="left",Ie="middle";if(Ve.fixedrange)return;o?(Ie=o==="n"?"top":"bottom",Ve.side==="right"&&(er="right")):l==="e"&&(er="right"),Be._context.showAxisRangeEntryBoxes&&C_.select(X).call(j1e.makeEditable,{gd:Be,immediate:!0,background:Be._fullLayout.paper_bgcolor,text:String(rr),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:er,verticalAlign:Ie}).on("edit",function(ne){var de=Ve.d2r(ne);de!==void 0&&Wy.call("_guiRelayout",Be,lr,de)})}}J1e.init(W);var le,ue,K,_e,fe,ve,ye,ce,j,Q;function Z(Te,qe,Be){var Xe=X.getBoundingClientRect();le=qe-Xe.left,ue=Be-Xe.top,e._fullLayout._calcInverseTransform(e);var Ve=Mi.apply3DTransform(e._fullLayout._invTransform)(le,ue);le=Ve[0],ue=Ve[1],K={l:le,r:le,w:0,t:ue,b:ue,h:0},_e=e._hmpixcount?e._hmlumcount/e._hmpixcount:Y1e(e._fullLayout.plot_bgcolor).getLuminance(),fe="M0,0H"+_+"V"+b+"H0V0",ve=!1,ye="xy",Q=!1,ce=oN(s,_e,x,T,fe),j=lN(s,x,T)}function ie(Te,qe){if(e._transitioningWithDuration)return!1;var Be=Math.max(0,Math.min(_,G*Te+le)),Xe=Math.max(0,Math.min(b,Y*qe+ue)),Ve=Math.abs(Be-le),We=Math.abs(Xe-ue);K.l=Math.min(le,Be),K.r=Math.max(le,Be),K.t=Math.min(ue,Xe),K.b=Math.max(ue,Xe);function lr(){ye="",K.r=K.l,K.t=K.b,j.attr("d","M0,0Z")}if(w.isSubplotConstrained)Ve>_n||We>_n?(ye="xy",Ve/_>We/b?(We=Ve*b/_,ue>Xe?K.t=ue-We:K.b=ue+We):(Ve=We*_/b,le>Be?K.l=le-Ve:K.r=le+Ve),j.attr("d",Zy(K))):lr();else if(k.isSubplotConstrained)if(Ve>_n||We>_n){ye="xy";var rr=Math.min(K.l/_,(b-K.b)/b),er=Math.max(K.r/_,(b-K.t)/b);K.l=rr*_,K.r=er*_,K.b=(1-rr)*b,K.t=(1-er)*b,j.attr("d",Zy(K))}else lr();else!S||We0){var ne;if(k.isSubplotConstrained||!M&&S.length===1){for(ne=0;ne1&&(lr.maxallowed!==void 0&&D===(lr.range[0]1&&(rr.maxallowed!==void 0&&P===(rr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function sye(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function oN(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",tN(t,a)).attr("d",n+"Z")}function lN(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:ZF.background,stroke:ZF.defaultLine,"stroke-width":1,opacity:0}).attr("transform",tN(r,t)).attr("d","M0,0Z")}function sN(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),uN(e,r,n,i)}function uN(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function L_(e){C_.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function fN(e){$F&&e.data&&e._context.showTips&&(Mi.notifier(Mi._(e,"Double-click to zoom back out"),"long",e),$F=!1)}function uye(e,r){return"M"+(e.l-.5)+","+(r-_n-.5)+"h-3v"+(2*_n+1)+"h3ZM"+(e.r+.5)+","+(r-_n-.5)+"h3v"+(2*_n+1)+"h-3Z"}function fye(e,r){return"M"+(r-_n-.5)+","+(e.t-.5)+"v-3h"+(2*_n+1)+"v3ZM"+(r-_n-.5)+","+(e.b+.5)+"v3h"+(2*_n+1)+"v-3Z"}function Zy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,_n)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function eN(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var cye=Sr(),Xy=xn(),vye=mi(),hye=ss(),uo=hN().makeDragBox,qa=xa().DRAGGERSIZE;Jy.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){cye.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=uo(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Xy.hover(r,v,i)},Xy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,vye.unhover(r,v))},r._context.showAxisDragHandles&&(uo(r,o,l._offset-qa,s._offset-qa,qa,qa,"n","w"),uo(r,o,l._offset+l._length,s._offset-qa,qa,qa,"n","e"),uo(r,o,l._offset-qa,s._offset+s._length,qa,qa,"s","w"),uo(r,o,l._offset+l._length,s._offset+s._length,qa,qa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=qa),uo(r,o,l._offset+l._length*.1,f,l._length*.8,qa,"","ew"),uo(r,o,l._offset,f,l._length*.1,qa,"","w"),uo(r,o,l._offset+l._length*.9,f,l._length*.1,qa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=qa),uo(r,o,c,s._offset+s._length*.1,qa,s._length*.8,"ns",""),uo(r,o,c,s._offset+s._length*.9,qa,s._length*.1,"s",""),uo(r,o,c,s._offset,qa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Xy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Xy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Jy.updateFx(r)}};Jy.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";hye(r._draggers,t)}});var yN=N((JPe,pN)=>{"use strict";var dN=br();pN.exports=function(r){for(var t=dN.layoutArrayContainers,a=dN.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var dye=Vl(),R_=Fp(),o0=nu(),pye=Rb().sorterAsc,P_=br();l0.containerArrayMatch=yN();var yye=l0.isAddVal=function(r){return r==="add"||dye(r)},mN=l0.isRemoveVal=function(r){return r===null||r==="remove"};l0.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=P_.getComponentMethod(o,"supplyLayoutDefaults"),s=P_.getComponentMethod(o,"draw"),u=P_.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===R_||s===R_,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&o0.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(mN(d))t.set(null);else if(Array.isArray(d))t.set(d);else return o0.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(pye),y=t.get(),m=y||[],x=i(v,o).get(),T=[],_=-1,b=m.length,w,k,M,S,E,D,P,R;for(w=0;wm.length-(P?0:1)){o0.warn("index out of range",o,M);continue}if(D!==void 0)E.length>1&&o0.warn("Insertion & removal are incompatible with edits to the same index.",o,M),mN(D)?T.push(M):P?(D==="add"&&(D={}),m.splice(M,0,D),x&&x.splice(M,0,{})):o0.warn("Unrecognized full object edit value",o,M,D),_===-1&&(_=M);else for(k=0;k=0;w--)m.splice(T[w],1),x&&x.splice(T[w],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(l(c,v),u!==R_){var I;if(_===-1)I=p;else{for(b=Math.max(m.length,b),I=[],w=0;w=_));w++)I.push(M);for(w=_;w{"use strict";var wN=Rr(),TN=br(),cn=Ce(),s0=aa(),AN=fa(),MN=Tr(),u0=AN.cleanId,mye=AN.getFromTrace,F_=TN.traceIs,gye=["x","y","z"];ki.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&cn.log("Clearing previous rejected promises from queue."),e._promises=[]};ki.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(s0.subplotsRegistry.cartesian||{}).attrRegex,n=(s0.subplotsRegistry.polar||{}).attrRegex,i=(s0.subplotsRegistry.ternary||{}).attrRegex,o=(s0.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),MN.clean(e),e.template&&e.template.layout&&ki.cleanLayout(e.template.layout),e};function Mc(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=u0(a,n,!0))}ki.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}ki.hasParent=function(e,r){for(var t=_N(r);t;){if(t in e)return!0;t=_N(t)}return!1};ki.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>cn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;acn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?N_(n,i):!1))return!1}return!0}return!1};ki.collectionsAreEqual=N_});var U_=N(Wr=>{"use strict";var em=Sr(),_ye=Rr(),wye=jb(),ir=Ce(),Mt=ir.nestedProperty,O_=hh(),wn=oq(),Si=br(),lm=$f(),_r=aa(),vn=zr(),Tye=u5(),Aye=pi(),I_=Yr(),Mye=Tr(),kye=D_().initInteractions,Sye=pl(),qye=Vo().clearOutline,EN=au().dfltConfig,Ky=gN(),oa=kN(),dt=Ry(),ys=eo(),Lye=xa().AX_NAME_PATTERN,z_=0,SN=5;function Cye(e,r,t,a){var n;if(e=ir.getGraphDiv(e),O_.init(e),ir.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=O_.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!ir.isPlotDiv(e)&&ir.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Wr.addFrames(e,n)}RN(e,a),t||(t={}),em.select(e).classed("js-plotly-plot",!0),I_.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(oa.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=oa.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Qye(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),I_.initGradients(e),I_.initPatterns(e),s&&vn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function PN(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),tm(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&tm(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Fye(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[P]!="string";)P--;var R=S.parts[P],I=S.parts[P-1]+"."+R,z=S.parts.slice(0,P).join("."),B=Mt(e.layout,z).get(),G=Mt(a,z).get(),Y=S.get();if(E!==void 0){x[M]=E,T[M]=R==="reverse"?E:wl(Y);var V=lm.getLayoutValObject(a,S.parts);if(V&&V.impliedEdits&&E!==null)for(var H in V.impliedEdits)_(ir.relativeAttr(M,H),V.impliedEdits[H]);if(["width","height"].indexOf(M)!==-1)if(E){_("autosize",null);var X=M==="height"?"width":"height";_(X,a[X])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",E?null:a.width),_("height",E?null:a.height);else if(I.match(GN))k(I),Mt(a,z+"._inputRange").set(null);else if(I.match(VN)){k(I),Mt(a,z+"._inputRange").set(null);var W=Mt(a,z).get();W._inputDomain&&(W._input.domain=W._inputDomain.slice())}else I.match(Oye)&&Mt(a,z+"._inputDomain").set(null);if(R==="type"){w=B;var ee=G.type==="linear"&&E==="log",oe=G.type==="log"&&E==="linear";if(ee||oe){if(!w||!w.range)_(z+".autorange",!0);else if(G.autorange)ee&&(w.range=w.range[1]>w.range[0]?[1,2]:[2,1]);else{var le=w.range[0],ue=w.range[1];ee?(le<=0&&ue<=0&&_(z+".autorange",!0),le<=0?le=ue/1e6:ue<=0&&(ue=le/1e6),_(z+".range[0]",Math.log(le)/Math.LN10),_(z+".range[1]",Math.log(ue)/Math.LN10)):(_(z+".range[0]",Math.pow(10,le)),_(z+".range[1]",Math.pow(10,ue)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Si.getComponentMethod("annotations","convertCoords")(e,G,E,_),Si.getComponentMethod("images","convertCoords")(e,G,E,_)}else _(z+".autorange",!0),_(z+".range",null);Mt(a,z+"._inputRange").set(null)}else if(R.match(Lye)){var K=Mt(a,M).get(),_e=(E||{}).type;(!_e||_e==="-")&&(_e="linear"),Si.getComponentMethod("annotations","convertCoords")(e,K,_e,_),Si.getComponentMethod("images","convertCoords")(e,K,_e,_)}var fe=Ky.containerArrayMatch(M);if(fe){f=fe.array,c=fe.index;var ve=fe.property,ye=V||{editType:"calc"};c!==""&&ve===""&&(Ky.isAddVal(E)?T[M]=null:Ky.isRemoveVal(E)?T[M]=(Mt(t,f).get()||[])[c]:ir.warn("unrecognized full object value",r)),ys.update(m,ye),u[f]||(u[f]={});var ce=u[f][c];ce||(ce=u[f][c]={}),ce[ve]=E,delete r[M]}else R==="reverse"?(B.range?B.range.reverse():(_(z+".autorange",!0),B.range=[1,0]),G.autorange?m.calc=!0:m.plot=!0):(M==="dragmode"&&(E===!1&&Y!==!1||E!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(Y==="lasso"||Y==="select")?m.plot=!0:V?ys.update(m,V):m.calc=!0,S.set(E))}}for(f in u){var j=Ky.applyContainerArrayChanges(e,i(t,f),u[f],m,i);j||(m.plot=!0)}for(var Q in b){w=vn.getFromId(e,Q);var Z=w&&w._constraintGroup;if(Z){m.calc=!0;for(var ie in Z)b[ie]||(vn.getFromId(e,ie)._constraintShrinkable=!0)}}(WN(e)||r.height||r.width)&&(m.plot=!0);var he=a.shapes;for(c=0;c1;)if(a.pop(),t=Mt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Uye(e,r){for(var t=0;t[z,e._ev.listeners(z)]);i=Wr.newPlot(e,r,t,a).then(()=>{for(let[z,B]of I)B.forEach(G=>e.on(z,G));return Wr.react(e,r,t,a)})}else{e.data=r||[],oa.cleanData(e.data),e.layout=t||{},oa.cleanLayout(e.layout),Vye(e.data,e.layout,l,s),_r.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,y=jye(e,s,v,d,p),m=y.newDataRevision,x=Wye(e,l,c,d,p,m);if(WN(e)&&(y.layoutReplot=!0),x.calc||y.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),_=0;_(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function Wye(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=ys.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=lm.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var I=0;Ia._timeToNext&&p()};R()}var m=0;function x(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var T,_,b=[],w=r==null,k=Array.isArray(r),M=!w&&!k&&ir.isPlainObject(r);if(M)b.push({type:"object",data:x(ir.extendFlat({},r))});else if(w||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&DD)&&P.push(_);b=P}}b.length>0?v(b):(e.emit("plotly_animated"),u())})}function Xye(e,r,t){if(e=ir.getGraphDiv(e),r==null)return Promise.resolve();if(!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(ir.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&z_S.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&ir.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=_r.modifyFrames,s=_r.modifyFrames,u=[e,o],f=[e,i];return wn&&wn.add(e,l,u,s,f),_r.modifyFrames(e,i)}function $ye(e){e=ir.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),O_.purge(e),r._container&&r._container.remove(),delete e._context,e}function Kye(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ir.equalDomRects(t,r._lastBBox)){var a=r._invTransform=ir.inverseTransformMatrix(ir.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Qye(e){var r=em.select(e),t=e._fullLayout;if(t._calcInverseTransform=Kye,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};em.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=ir.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Sye.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Wr.animate=Zye;Wr.addFrames=Xye;Wr.deleteFrames=Jye;Wr.addTraces=ON;Wr.deleteTraces=BN;Wr.extendTraces=IN;Wr.moveTraces=B_;Wr.prependTraces=zN;Wr.newPlot=Pye;Wr._doPlot=Cye;Wr.purge=$ye;Wr.react=Yye;Wr.redraw=Rye;Wr.relayout=f0;Wr.restyle=am;Wr.setPlotConfig=Eye;Wr.update=im;Wr._guiRelayout=H_(f0);Wr._guiRestyle=H_(am);Wr._guiUpdate=H_(im);Wr._storeDirectGUIEdit=zye});var Tl=N(Yo=>{"use strict";var eme=br();Yo.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Yo.getRedrawFunc=function(e){return function(){eme.getComponentMethod("colorbar","draw")(e)}};Yo.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Yo.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var jN=window.URL||window.webkitURL;Yo.createObjectURL=function(e){return jN.createObjectURL(e)};Yo.revokeObjectURL=function(e){return jN.revokeObjectURL(e)};Yo.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=rme(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Yo.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function rme(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var V_=Sr(),rFe=Ce(),tme=Yr(),ame=Tr(),tFe=pl(),G_=/"/g,v0="TOBESTRIPPED",nme=new RegExp('("'+v0+")|("+v0+'")',"g");function ime(e){var r=V_.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function ome(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ZN.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(tme.setRect,0,0,l,s).call(ame.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var lme=Ce(),sme=uu().EventEmitter,h0=Tl();function ume(e){var r=e.emitter||new sme,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,x;l==="svg"||lme.isSafari()?x=h0.encodeSVG(o):(m=h0.createBlob(o,"svg"),x=h0.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var T;switch(m=null,h0.revokeObjectURL(x),l!=="svg"&&p.drawImage(y,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=x;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(T),e.promise||r.emit("success",T)},y.onerror=function(T){if(m=null,h0.revokeObjectURL(x),n(T),!e.promise)return r.emit("error",T)},y.src=x});return e.promise?t:r}XN.exports=ume});var W_=N((iFe,KN)=>{"use strict";var JN=Rr(),$N=U_(),fme=aa(),Wo=Ce(),d0=Tl(),cme=um(),vme=fm(),hme=gp().version,Y_={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function dme(e,r){r=r||{};var t,a,n,i;Wo.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Wo.getGraphDiv(e),t=Wo.extendDeep([],e.data),a=Wo.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Wo.validate(r[k],Y_[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Wo.join2(Y_.format.values,", "," or ")+".");var l={};function s(k,M){return Wo.coerce(r,l,Y_,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Wo.extendFlat({},a);f?m.width=f:r.width===null&&JN(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&JN(i.height)&&(m.height=i.height);var x=Wo.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=d0.getRedrawFunc(y);function _(){return new Promise(function(k){setTimeout(k,d0.getDelay(y._fullLayout))})}function b(){return new Promise(function(k,M){var S=cme(y,u,v),E=y._fullLayout.width,D=y._fullLayout.height;function P(){$N.purge(y),document.body.removeChild(y)}if(u==="full-json"){var R=fme.graphJson(y,!1,"keepdata","object",!0,!0);return R.version=hme,R=JSON.stringify(R),P(),k(p?R:d0.encodeJSON(R))}if(P(),u==="svg")return k(p?S:d0.encodeSVG(S));var I=document.createElement("canvas");I.id=Wo.randstr(),vme({format:u,width:E,height:D,scale:v,canvas:I,svg:S,promise:!0}).then(k).catch(M)})}function w(k){return p?k.replace(d0.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){$N.newPlot(y,t,m,x).then(T).then(_).then(b).then(function(S){k(w(S))}).catch(function(S){M(S)})})}KN.exports=dme});var rI=N((oFe,eI)=>{"use strict";var qi=Ce(),pme=aa(),yme=$f(),mme=au().dfltConfig,fo=qi.isPlainObject,Iu=Array.isArray,j_=qi.isArrayOrTypedArray;eI.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=yme.get(),n=[],i={_context:qi.extendFlat({},mme)},o,l;Iu(r)?(i.data=qi.extendDeep([],r),o=r):(i.data=[],o=[],n.push(La("array","data"))),fo(t)?(i.layout=qi.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(La("object","layout"))),pme.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(La("unused",n,u.concat(c.length)));var x=c.length,T=Array.isArray(m);T&&(x=Math.min(x,m.length));var _,b,w,k,M;if(v.dimensions===2)for(b=0;bc[b].length&&a.push(La("unused",n,u.concat(b,c[b].length)));var S=c[b].length;for(_=0;_<(T?Math.min(S,m[b].length):S);_++)w=T?m[b][_]:m,k=f[b][_],M=c[b][_],qi.validate(k,w)?M!==k&&M!==+k&&a.push(La("dynamic",n,u.concat(b,_),k,M)):a.push(La("value",n,u.concat(b,_),k))}else a.push(La("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var Ame=Ce(),vm=Tl();function Mme(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=vm.createBlob(e,t),u=vm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),vm.revokeObjectURL(u),s=null,o(r);if(Ame.isSafari()){var f=t==="svg"?",":";base64,";return vm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}tI.exports=Mme});var Z_=N((uFe,iI)=>{"use strict";var nI=Ce(),kme=W_(),Sme=aI(),sFe=Tl();function qme(e,r){var t;return nI.isPlainObject(e)||(t=nI.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=kme(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),Sme(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}iI.exports=qme});var fI=N(X_=>{"use strict";var On=Ce(),Bn=On.isPlainObject,oI=$f(),lI=aa(),Lme=gn(),sI=wt(),uI=au().dfltConfig;X_.makeTemplate=function(e){e=On.isPlainObject(e)?e:On.getGraphDiv(e),e=On.extendDeep({_context:uI},{data:e.data,layout:e.layout}),lI.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};p0(d,p,Eme.bind(null,d));var y=On.coerce(d,{},Lme,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),p0(t,a.layout,Cme.bind(null,t)),delete a.layout.template;var n=t.template;if(Bn(n)){var i=n.layout,o,l,s,u,f,c;Bn(i)&&hm(i,a.layout);var v=n.data;if(Bn(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ox?o.push({code:"unused",traceType:d,templateCount:m,dataCount:x}):x>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:x})}}function T(_,b){for(var w in _)if(w.charAt(0)!=="_"){var k=_[w],M=Li(_,w,b);Bn(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&Dme(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(Rme)};function Dme(e){for(var r=0;r{"use strict";var _a=U_();Dt._doPlot=_a._doPlot;Dt.newPlot=_a.newPlot;Dt.restyle=_a.restyle;Dt.relayout=_a.relayout;Dt.redraw=_a.redraw;Dt.update=_a.update;Dt._guiRestyle=_a._guiRestyle;Dt._guiRelayout=_a._guiRelayout;Dt._guiUpdate=_a._guiUpdate;Dt._storeDirectGUIEdit=_a._storeDirectGUIEdit;Dt.react=_a.react;Dt.extendTraces=_a.extendTraces;Dt.prependTraces=_a.prependTraces;Dt.addTraces=_a.addTraces;Dt.deleteTraces=_a.deleteTraces;Dt.moveTraces=_a.moveTraces;Dt.purge=_a.purge;Dt.addFrames=_a.addFrames;Dt.deleteFrames=_a.deleteFrames;Dt.animate=_a.animate;Dt.setPlotConfig=_a.setPlotConfig;var Pme=ih().getGraphDiv,Fme=ky().eraseActiveShape;Dt.deleteActiveShape=function(e){return Fme(Pme(e))};Dt.toImage=W_();Dt.validate=rI();Dt.downloadImage=Z_();var cI=fI();Dt.makeTemplate=cI.makeTemplate;Dt.validateTemplate=cI.validateTemplate});var $_=N((vFe,hI)=>{"use strict";var J_=Ce(),Nme=br();hI.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Nme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=J_.minRowLength(i);o?l=Math.min(u,J_.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=J_.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var kc=N((hFe,yI)=>{"use strict";var dI=Ce().dateTick0,Ime=Ft(),zme=Ime.ONEWEEK;function pI(e,r){return e%zme===0?dI(r,1):dI(r,0)}yI.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",pI(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",pI(l,t.ycalendar)),n("yperiodalignment"))}}});var bI=N((dFe,gI)=>{"use strict";var mI=["orientation","groupnorm","stackgaps"];gI.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var xI=Tr(),_I=Zn().hasColorscale,wI=ml(),Ome=Nn();TI.exports=function(r,t,a,n,i,o={}){var l=Ome.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),_I(r,"marker")&&wI(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=xI.background:u=xI.defaultLine,i("marker.line.color",u),_I(r,"marker.line")&&wI(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Q_=N((yFe,AI)=>{"use strict";var Bme=Ce().isArrayOrTypedArray,Hme=Zn().hasColorscale,Ume=ml();AI.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),Hme(r,"line"))Ume(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Bme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var e4=N((mFe,MI)=>{"use strict";MI.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var r4=N((gFe,kI)=>{"use strict";var Gme=Ce();kI.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Gme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var t4=N((bFe,qI)=>{"use strict";var pm=Tr(),SI=Ce().isArrayOrTypedArray;function Vme(e){for(var r=pm.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var LI=Ce(),Yme=br(),Wme=Ai(),jme=t0(),Sc=Nn(),Zme=$_(),Xme=kc(),Jme=bI(),$me=K_(),Kme=Q_(),CI=e4(),Qme=r4(),ege=t4(),rge=Ce().coercePattern;EI.exports=function(r,t,a,n){function i(d,p){return LI.coerce(r,t,Wme,d,p)}var o=Zme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Xme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Jme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var tge=Fu().getAxisGroup;RI.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=tge(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var FI=N((wFe,PI)=>{"use strict";var age=Ce(),nge=y0(),ige=Ai();PI.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return age.coerce(n._input,n,ige,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var II=N((TFe,NI)=>{"use strict";var oge=Ce(),lge=i1();NI.exports=function(e,r){function t(n,i){return oge.coerce(e,r,lge,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var qc=N((AFe,OI)=>{"use strict";var sge=Rr(),zI=Ce(),uge=zI.dateTime2ms,ym=zI.incrementMonth,fge=Ft(),cge=fge.ONEAVGMONTH;OI.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(sge(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=uge(v,u)||0,p=[],y=[],m=[],x=n.length,T=0;T_;)k=ym(k,-l,u);for(;k<=_;)k=ym(k,l,u);w=ym(k,-l,u)}else{for(b=Math.round((_-d)/o),k=d+b*o;k>_;)k-=o;for(;k<=_;)k+=o;w=k-o}p[T]=f?w:c?k:(w+k)/2,y[T]=w,m[T]=k}return{vals:p,starts:y,ends:m}}});var i4=N((MFe,HI)=>{"use strict";var a4=Zn().hasColorscale,n4=rc(),BI=Nn();HI.exports=function(r,t){BI.hasLines(t)&&a4(t,"line")&&n4(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),BI.hasMarkers(t)&&(a4(t,"marker")&&n4(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),a4(t,"marker.line")&&n4(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var mm=N((kFe,UI)=>{"use strict";var Ut=Ce();UI.exports=function(r,t){for(var a=0;a{"use strict";var GI=Ce();VI.exports=function(r,t){GI.isArrayOrTypedArray(t.selectedpoints)&&GI.tagSelected(r,t)}});var bm=N((qFe,$I)=>{"use strict";var YI=Rr(),l4=Ce(),m0=zr(),WI=qc(),o4=Ft().BADNUM,s4=Nn(),vge=i4(),hge=mm(),dge=gm();function pge(e,r){var t=e._fullLayout,a=r._xA=m0.getFromId(e,r.xaxis||"x","x"),n=r._yA=m0.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=WI(r,a,"x",i),s=WI(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=u4(r,t,a,n),y=!1,m,x,T,_,b,w;XI(t,r);var k="x",M="y",S;if(p)l4.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(M="s",S="x"):(k="s",S="y"),b=p.stackgaps==="interpolate";else{var E=ZI(r,c);jI(e,r,a,n,u,f,E)}var D=!!r.xperiodalignment,P=!!r.yperiodalignment;for(x=0;xx&&v[_].gap;)_--;for(w=v[_].s,T=v.length-1;T>_;T--)v[T].s=w;for(;x<_;)if(x++,v[x].gap){for(T=x+1;v[T].gap;)T++;for(var B=v[x-1][S],G=v[x-1].s,Y=(v[T].s-G)/(v[T][S]-B);x{"use strict";KI.exports=xm;var yge=Ce().distinctVals;function xm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";ez.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var wm=N((EFe,nz)=>{"use strict";var Ci=Rr(),{isArrayOrTypedArray:Al}=Ce(),{BADNUM:Lc}=Ft(),mge=br(),b0=zr(),{getAxisGroup:gge}=Fu(),_m=QI(),{TEXTPAD:bge}=g0(),{LINE_SPACING:xge}=Ua(),{BR_TAG_ALL:_ge}=Aa();function wge(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!Ci(l))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*xge*t+bge;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function Dge(e,r,t,a){for(var n=Cc(a),i=0;i{"use strict";var iz=bm(),oz=wm().setGroupPositions;function Pge(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uE[f]&&f{"use strict";var Nge=Yr(),vz=Ft(),x0=vz.BADNUM,hz=vz.LOG_CLIP,uz=hz+.5,fz=hz-.5,Tm=Ce(),Ige=Tm.segmentsIntersect,cz=Tm.constrain,y4=t0();dz.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",x=[],T=y4.minTolerance,_=r.length,b=new Array(_),w=0,k,M,S,E,D,P,R,I,z,B,G,Y,V,H,X,W;function ee(Ie){var ne=r[Ie];if(!ne)return!1;var de=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Pe=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(de===x0){if(o&&(de=n.c2p(ne.x,!0)),de===x0)return!1;l&&Pe===x0&&(de*=Math.abs(n._m*u*(n._m>0?uz:fz)/(i._m*s*(i._m>0?uz:fz)))),de*=1e3}if(Pe===x0){if(l&&(Pe=i.c2p(ne.y,!0)),Pe===x0)return!1;Pe*=1e3}return[de,Pe]}function oe(Ie,ne,de,Pe){var Fe=de-Ie,Ke=Pe-ne,cr=.5-Ie,ur=.5-ne,Mr=Fe*Fe+Ke*Ke,Ir=Fe*cr+Ke*ur;if(Ir>0&&Ir1||Math.abs(cr.y-de[0][1])>1)&&(cr=[cr.x,cr.y],Pe&&_e(cr,Ie)<_e(de[0],Ie)?de.unshift(cr):de.push(cr),Pe++)}return de}function He(Ie){if(Ie[0]ye||Ie[1]j)return[cz(Ie[0],ve,ye),cz(Ie[1],ce,j)]}function Oe(Ie,ne){if(Ie[0]===ne[0]&&(Ie[0]===ve||Ie[0]===ye)||Ie[1]===ne[1]&&(Ie[1]===ce||Ie[1]===j))return!0}function Ue(Ie,ne){var de=[],Pe=He(Ie),Fe=He(ne);return Pe&&Fe&&Oe(Pe,Fe)||(Pe&&de.push(Pe),Fe&&de.push(Fe)),de}function Ee(Ie,ne,de){return function(Pe,Fe){var Ke=He(Pe),cr=He(Fe),ur=[];if(Ke&&cr&&Oe(Ke,cr))return ur;Ke&&ur.push(Ke),cr&&ur.push(cr);var Mr=2*Tm.constrain((Pe[Ie]+Fe[Ie])/2,ne,de)-((Ke||Pe)[Ie]+(cr||Fe)[Ie]);if(Mr){var Ir;Ke&&cr?Ir=Mr>0==Ke[Ie]>cr[Ie]?Ke:cr:Ir=Ke||cr,Ir[Ie]+=Mr}return ur}}var ze;p==="linear"||p==="spline"?ze=Le:p==="hv"||p==="vh"?ze=Ue:p==="hvh"?ze=Ee(0,ve,ye):p==="vhv"&&(ze=Ee(1,ce,j));function Ge(Ie,ne){var de=ne[0]-Ie[0],Pe=(ne[1]-Ie[1])/de,Fe=(Ie[1]*ne[0]-ne[1]*Ie[0])/de;return Fe>0?[Pe>0?ve:ye,j]:[Pe>0?ye:ve,ce]}function se(Ie){var ne=Ie[0],de=Ie[1],Pe=ne===b[w-1][0],Fe=de===b[w-1][1];if(!(Pe&&Fe))if(w>1){var Ke=ne===b[w-2][0],cr=de===b[w-2][1];Pe&&(ne===ve||ne===ye)&&Ke?cr?w--:b[w-1]=Ie:Fe&&(de===ce||de===j)&&cr?Ke?w--:b[w-1]=Ie:b[w++]=Ie}else b[w++]=Ie}function Ae(Ie){b[w-1][0]!==Ie[0]&&b[w-1][1]!==Ie[1]&&se([he,me]),se(Ie),Re=null,he=me=0}var Je=Tm.isArrayOrTypedArray(c);function dr(Ie){if(Ie&&f&&(Ie.i=k,Ie.d=r,Ie.trace=a,Ie.marker=Je?c[Ie.i]:c,Ie.backoff=f),le=Ie[0]/s,ue=Ie[1]/u,Z=Ie[0]ye?ye:0,ie=Ie[1]j?j:0,Z||ie){if(!w)b[w++]=[Z||Ie[0],ie||Ie[1]];else if(Re){var ne=ze(Re,Ie);ne.length>1&&(Ae(ne[0]),b[w++]=ne[1])}else De=ze(b[w-1],Ie)[0],b[w++]=De;var de=b[w-1];Z&&ie&&(de[0]!==Z||de[1]!==ie)?(Re&&(he!==Z&&me!==ie?se(he&&me?Ge(Re,Ie):[he||Z,me||ie]):he&&me&&se([he,me])),se([Z,ie])):he-Z&&me-ie&&se([Z||he,ie||me]),Re=Ie,he=Z,me=ie}else Re&&Ae(ze(Re,Ie)[0]),b[w++]=Ie}for(k=0;k<_;k++)if(M=ee(k),!!M){for(w=0,Re=null,dr(M),k++;k<_;k++){if(E=ee(k),!E){if(v)continue;break}if(!y||!t.simplify){dr(E);continue}var Ne=ee(k+1);if(B=_e(E,M),!(!(m&&(w===0||w===_-1))&&BK(P,Ne))break;S=P,V=z[0]*I[0]+z[1]*I[1],V>G?(G=V,E=P,R=!1):V=r.length||!P)break;dr(P),M=P}}Re&&se([he||Re[0],me||Re[1]]),x.push(b.slice(0,w))}var Te=p.slice(p.length-1);if(f&&Te!=="h"&&Te!=="v"){for(var qe=!1,Be=-1,Xe=[],Ve=0;Ve{"use strict";var pz={tonextx:1,tonexty:1,tonext:1};yz.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var co=Sr(),zge=br(),_0=Ce(),Ec=_0.ensureSingle,bz=_0.identity,Wt=Yr(),Dc=Nn(),Oge=m4(),Bge=mz(),Am=v_().tester;xz.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Bge(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Hge(r,l,t),f){o&&(s=o());var v=co.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){gz(r,p,t,d,c,this,i)})})}else l.each(function(d,p){gz(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Hge(e,r,t){r.each(function(a){var n=Ec(co.select(this),"g","fills");Wt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,bz);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Ec(co.select(this),"path","js-fill")})})}function gz(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Uge(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Ee){return u?Ee.transition():Ee}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=co.select(i),m=Ec(y,"g","errorbars"),x=Ec(y,"g","lines"),T=Ec(y,"g","points"),_=Ec(y,"g","text");if(zge.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;f(y).style("opacity",d.opacity);var b,w,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,S;k==="y"?(M=1,S=v.c2p(0,!0)):k==="x"&&(M=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var E="",D=[],P=d._prevtrace,R=null,I=null;P&&(E=P._prevRevpath||"",w=P._nextFill,D=P._ownPolygons,R=P._fillsegments,I=P._fillElement);var z,B,G="",Y="",V,H,X,W,ee,oe,le=[];d._polygons=[];var ue=[],K=[],_e=_0.noop;if(b=d._ownFill,Dc.hasLines(d)||d.fill!=="none"){w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=Wt.steps(p.shape),H=Wt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=H=function(Ee){var ze=Ee[Ee.length-1];return Ee.length>1&&Ee[0][0]===ze[0]&&Ee[0][1]===ze[1]?Wt.smoothclosed(Ee.slice(1),p.smoothing):Wt.smoothopen(Ee,p.smoothing)}:V=H=function(Ee){return"M"+Ee.join("L")},X=function(Ee){return H(Ee.reverse())},K=Oge(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),ue=new Array(K.length);var fe=0;for(s=0;s=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var x=y[0].trace;Dc.hasMarkers(x)&&x.marker.maxdisplayed>0&&m{"use strict";_z.exports={container:"marker",min:"cmin",max:"cmax"}});var b4=N((IFe,wz)=>{"use strict";var Mm=zr();wz.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Mm.getFromTrace(i,t,"x"),l=Mm.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=Mm.tickText(o,o.c2l(s),!0).text,n.yLabel=Mm.tickText(l,l.c2l(u),!0).text,n}});var zu=N((zFe,Tz)=>{"use strict";var x4=Sr(),Rc=Yr(),Gge=br();function Vge(e){var r=x4.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=x4.select(this),n=t.trace||t[0].trace;_4(a,n,e)}),r.selectAll("g.text").each(function(t){var a=x4.select(this),n=t.trace||t[0].trace;w4(a,n,e)}),r.selectAll("g.trace path.js-line").call(Rc.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Rc.fillGroupStyle,e,!1),Gge.getComponentMethod("errorbars","style")(r)}function _4(e,r,t){Rc.pointStyle(e.selectAll("path.point"),r,t)}function w4(e,r,t){Rc.textPointStyle(e.selectAll("text"),r,t)}function Yge(e,r,t){var a=r[0].trace;a.selectedpoints?(Rc.selectedPointStyle(t.selectAll("path.point"),a),Rc.selectedTextStyle(t.selectAll("text"),a)):(_4(t,a,e),w4(t,a,e))}Tz.exports={style:Vge,stylePoints:_4,styleText:w4,styleOnSelect:Yge}});var Mz=N((OFe,Az)=>{"use strict";var Pc=Tr(),Wge=Nn();Az.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Pc.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Pc.opacity(i)?i:o&&Pc.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Pc.opacity(n)<.3?Pc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Pc.opacity(a)&&Wge.hasLines(r)&&r.line.width?a:r.fillcolor)}});var A4=N((BFe,Sz)=>{"use strict";var km=Ce(),kz=xn(),jge=br(),Zge=Mz(),T4=Tr(),Xge=km.fillText;Sz.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(Y){if(p){var V=l.c2p(Y.xStart),H=l.c2p(Y.xEnd);return u>=Math.min(V,H)&&u<=Math.max(V,H)?0:1/0}var X=Math.max(3,Y.mrc||0),W=1-1/X,ee=Math.abs(l.c2p(Y.x)-u);return ee=Math.min(V,H)&&f<=Math.max(V,H)?0:1/0}var X=Math.max(3,Y.mrc||0),W=1-1/X,ee=Math.abs(s.c2p(Y.y)-f);return eele!=j>=le&&(ve=_e[K-1][0],ye=_e[K][0],j-ce&&(fe=ve+(ye-ve)*(le-ce)/(j-ce),X=Math.min(X,fe),W=Math.max(W,fe)));return X=Math.max(X,0),W=Math.min(W,l._length),{x0:X,x1:W,y0:le,y1:le}}if(v.indexOf("fills")!==-1&&o._fillElement){var z=R(o._fillElement)&&!R(o._fillExclusionElement);if(z){var B=I(o._polygons);B===null&&(B={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var G=T4.defaultLine;return T4.opacity(o.fillcolor)?G=o.fillcolor:T4.opacity((o.line||{}).color)&&(G=o.line.color),km.extendFlat(r,{distance:r.maxHoverDistance,x0:B.x0,x1:B.x1,y0:B.y0,y1:B.y1,color:G,hovertemplate:!1}),delete r.index,o.text&&!km.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var M4=N((HFe,Lz)=>{"use strict";var qz=Nn();Lz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=!qz.hasMarkers(l)&&!qz.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";Cz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Fz=N((GFe,Pz)=>{"use strict";var T0=br().traceIs,k4=N1();Pz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Jge(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Jge(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=$ge(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!T0(i,"cartesian")||T0(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,Rz(i,a)){var u=Dz(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(Rz(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function Dz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Rz(e,r){var t=Dz(e),a=T0(e,"box-violin"),n=T0(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var Iz=N((VFe,Nz)=>{"use strict";var Kge=Ln().isTypedArraySpec;function Qge(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Kge(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Qge(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var S4=N((YFe,Oz)=>{"use strict";var zz=Cn().mix,e2e=fi(),r2e=Ce();Oz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(S,E){return r2e.coerce2(r,t,n.attributes,S,E)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=zz(i,n.bgColor,n.blend||e2e.lightFraction).toRgbString(),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=zz(t.gridcolor,n.bgColor,67).toRgbString(),m=o("minor.gridcolor",y),x=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!m||!!x||!!T);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),w=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!w||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var L4=N((WFe,Yz)=>{"use strict";var Bz=Rr(),t2e=br(),A0=Ce(),a2e=wt(),n2e=io(),q4=pi(),Hz=y1(),Uz=m1(),i2e=b1(),o2e=x1(),l2e=Iz(),s2e=S4(),u2e=u5(),Gz=sc(),Sm=xa().WEEKDAY_PATTERN,f2e=xa().HOUR_PATTERN;Yz.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=t2e.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=A0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),Gz(t,i),u2e(r,t,a,n),l2e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==q4.color.dflt?y:l.color,x=s.label||i._dfltTitle[o];if(o2e(r,t,a,c,n),!u)return t;a("title.text",x),A0.coerceFont(a,"title.font",l,{overrideDflt:{size:A0.bigFont(l.size),color:m}}),Hz(r,t,a,c);var T=n.hasMinor;if(T&&(a2e.newContainer(t,"minor"),Hz(r,t,a,c,{isMinor:!0})),i2e(r,t,a,c,n),Uz(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,Uz(r,t,a,n),n.isMinor=_}s2e(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:q4}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var w=a("showdividers");w&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(n2e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:c2e}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=Vz(i[l]),s){o=Sm;break}}var u=a("pattern",o);if(u===Sm)for(l=0;l<2;l++)s=Vz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case Sm:if(!Bz(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case f2e:if(!Bz(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var h2e=Rr(),qm=Ce();Wz.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,y;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(h2e(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=qm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=qm.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var T=a("autoshift");T&&(d=x==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var _=!1;if(o.length&&(_=qm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),qm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var rO=N((ZFe,eO)=>{"use strict";var Ou=Ce(),jz=Tr(),d2e=Eo().isUnifiedHover,p2e=N5(),Zz=wt(),y2e=Bf(),Xz=pi(),m2e=Fz(),Jz=L4(),g2e=Fu(),$z=C4(),D4=fa(),jo=D4.id2name,Kz=D4.name2id,b2e=xa().AX_ID_PATTERN,Qz=br(),Lm=Qz.traceIs,E4=Qz.getComponentMethod;function Cm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}eO.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},y,m;for(y=0;y{"use strict";var x2e=Sr(),tO=br(),Em=Ce(),ei=Yr(),Dm=zr();aO.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Dm.redrawComponents(r);return}function o(m){var x=m.xaxis,T=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(ei.setTranslate,0,0).call(ei.setScale,1,1),m.plot.call(ei.setTranslate,x._offset,T._offset).call(ei.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(ei.setPointGroupScale,1,1),_.selectAll(".textpoint").call(ei.setTextPointsScale,1,1),_.call(ei.hideOutsideRangePoints,m)}function l(m,x){var T=m.plotinfo,_=T.xaxis,b=T.yaxis,w=_._length,k=b._length,M=!!m.xr1,S=!!m.yr1,E=[];if(M){var D=Em.simpleMap(m.xr0,_.r2l),P=Em.simpleMap(m.xr1,_.r2l),R=D[1]-D[0],I=P[1]-P[0];E[0]=(D[0]*(1-x)+x*P[0]-D[0])/(D[1]-D[0])*w,E[2]=w*(1-x+x*I/R),_.range[0]=_.l2r(D[0]*(1-x)+x*P[0]),_.range[1]=_.l2r(D[1]*(1-x)+x*P[1])}else E[0]=0,E[2]=w;if(S){var z=Em.simpleMap(m.yr0,b.r2l),B=Em.simpleMap(m.yr1,b.r2l),G=z[1]-z[0],Y=B[1]-B[0];E[1]=(z[1]*(1-x)+x*B[1]-z[1])/(z[0]-z[1])*k,E[3]=k*(1-x+x*Y/G),b.range[0]=_.l2r(z[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(z[1]*(1-x)+x*B[1])}else E[1]=0,E[3]=k;Dm.drawOne(r,_,{skipTitle:!0}),Dm.drawOne(r,b,{skipTitle:!0}),Dm.redrawComponents(r,[_._id,b._id]);var V=M?w/E[2]:1,H=S?k/E[3]:1,X=M?E[0]:0,W=S?E[1]:0,ee=M?E[0]/E[2]*w:0,oe=S?E[1]/E[3]*k:0,le=_._offset-ee,ue=b._offset-oe;T.clipRect.call(ei.setTranslate,X,W).call(ei.setScale,1/V,1/H),T.plot.call(ei.setTranslate,le,ue).call(ei.setScale,V,H),ei.setPointGroupScale(T.zoomScalePts,1/V,1/H),ei.setTextPointsScale(T.zoomScaleTxt,1/V,1/H)}var s;n&&(s=n());function u(){for(var m={},x=0;xa.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var Ei=N(Qa=>{"use strict";var Pm=Sr(),iO=br(),Bu=Ce(),_2e=aa(),w2e=Yr(),oO=s1().getModuleCalcData,ms=fa(),vo=xa(),T2e=pl(),rt=Bu.ensureSingle;function Rm(e,r,t){return Bu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Hu=vo.zindexSeparator;Qa.name="cartesian";Qa.attr=["xaxis","yaxis"];Qa.idRoot=["x","y"];Qa.idRegex=vo.idRegex;Qa.attrRegex=vo.attrRegex;Qa.attributes=Ez();Qa.layoutAttributes=pi();Qa.supplyLayoutDefaults=rO();Qa.transitionAxes=nO();Qa.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(Hu)!==-1)continue;d+=Hu+(u+1),v=Bu.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(w+=Hu+b),_.push(l+w),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=rt(a,"path","xlines-above"),r.ylines=rt(a,"path","ylines-above"),r.xaxislayer=rt(a,"g","xaxislayer-above"),r.yaxislayer=rt(a,"g","yaxislayer-above");else{if(!o){var v=rt(a,"g","layer-subplot");r.shapelayer=rt(v,"g","shapelayer"),r.imagelayer=rt(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=rt(a,"g","minor-gridlayer"),r.gridlayer=rt(a,"g","gridlayer"),r.zerolinelayer=rt(a,"g","zerolinelayer"));var d=rt(a,"g","layer-between");r.shapelayerBetween=rt(d,"g","shapelayer"),r.imagelayerBetween=rt(d,"g","imagelayer"),rt(a,"path","xlines-below"),rt(a,"path","ylines-below"),r.overlinesBelow=rt(a,"g","overlines-below"),rt(a,"g","xaxislayer-below"),rt(a,"g","yaxislayer-below"),r.overaxesBelow=rt(a,"g","overaxes-below")}r.overplot=rt(a,"g","overplot"),r.plot=rt(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=rt(a,"g","zerolinelayer-above"),o||(r.xlines=rt(a,"path","xlines-above"),r.ylines=rt(a,"path","ylines-above"),r.overlinesAbove=rt(a,"g","overlines-above"),rt(a,"g","xaxislayer-above"),rt(a,"g","yaxislayer-above"),r.overaxesAbove=rt(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,rt(c.overlinesBelow,"path",y),rt(c.overlinesBelow,"path",m),rt(c.overaxesBelow,"g",y),rt(c.overaxesBelow,"g",m),r.plot=rt(c.overplot,"g",n),rt(c.overlinesAbove,"path",y),rt(c.overlinesAbove,"path",m),rt(c.overaxesAbove,"g",y),rt(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(u||(Rm(r.minorGridlayer,"g",r.xaxis._id),Rm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(ms.idSort),Rm(r.gridlayer,"g",r.xaxis._id),Rm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(ms.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function uO(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Pm.select(this);f.remove(),fO(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Fm=Nn();cO.exports={hasLines:Fm.hasLines,hasMarkers:Fm.hasMarkers,hasText:Fm.hasText,isBubble:Fm.isBubble,attributes:Ai(),layoutAttributes:i1(),supplyDefaults:DI(),crossTraceDefaults:FI(),supplyLayoutDefaults:II(),calc:bm().calc,crossTraceCalc:sz(),arraysToCalcdata:mm(),plot:g4(),colorbar:w0(),formatLabels:b4(),style:zu().style,styleOnSelect:zu().styleOnSelect,hoverPoints:A4(),selectPoints:M4(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ei(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var pO=N((KFe,dO)=>{"use strict";var M2e=Sr(),k2e=Tr(),hO=A_(),R4=Ce(),S2e=R4.strScale,q2e=R4.strRotate,L2e=R4.strTranslate;dO.exports=function(r,t,a){var n=r.node(),i=hO[a.arrowhead||0],o=hO[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=d.x-p.x,T=d.y-p.y;if(y=Math.atan2(T,x),m=y+Math.PI,c&&v&&c+v>Math.sqrt(x*x+T*T)){z();return}if(c){if(c*c>x*x+T*T){z();return}var _=c*Math.cos(y),b=c*Math.sin(y);p.x+=_,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>x*x+T*T){z();return}var w=v*Math.cos(y),k=v*Math.sin(y);d.x-=w,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),S="";if(M{"use strict";var yO=Sr(),P4=br(),C2e=aa(),bs=Ce(),F4=bs.strTranslate,k0=zr(),Uu=Tr(),Ml=Yr(),mO=xn(),N4=Aa(),I4=ss(),M0=mi(),E2e=wt().arrayEditor,D2e=pO();xO.exports={draw:R2e,drawOne:gO,drawRaw:bO};function R2e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Fe="right":Fe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Fe]}for(var ce=!1,j=["x","y"],Q=0;Q1)&&(he===ie?(Ne=me.r2fraction(r["a"+Z]),(Ne<0||Ne>1)&&(ce=!0)):ce=!0),ze=me._offset+me.r2p(r[Z]),Ae=.5}else{var Te=dr==="domain";Z==="x"?(se=r[Z],ze=Te?me._offset+me._length*se:ze=l.l+l.w*se):(se=1-r[Z],ze=Te?me._offset+me._length*se:ze=l.t+l.h*se),Ae=r.showarrow?.5:se}if(r.showarrow){Ee.head=ze;var qe=r["a"+Z];if(Je=De*ye(.5,r.xanchor)-Le*ye(.5,r.yanchor),he===ie){var Be=k0.getRefType(he);Be==="domain"?(Z==="y"&&(qe=1-qe),Ee.tail=me._offset+me._length*qe):Be==="paper"?Z==="y"?(qe=1-qe,Ee.tail=l.t+l.h*qe):Ee.tail=l.l+l.w*qe:Ee.tail=me._offset+me.r2p(qe),Ge=Je}else Ee.tail=ze+qe,Ge=Je+qe;Ee.text=Ee.tail+Je;var Xe=o[Z==="x"?"width":"height"];if(ie==="paper"&&(Ee.head=bs.constrain(Ee.head,1,Xe-1)),he==="pixel"){var Ve=-Math.max(Ee.tail-3,Ee.text),We=Math.min(Ee.tail+3,Ee.text)-Xe;Ve>0?(Ee.tail+=Ve,Ee.text+=Ve):We>0&&(Ee.tail-=We,Ee.text-=We)}Ee.tail+=Ue,Ee.head+=Ue}else Je=He*ye(Ae,Oe),Ge=Je,Ee.text=ze+Je;Ee.text+=Ue,Je+=Ue,Ge+=Ue,r["_"+Z+"padplus"]=He/2+Ge,r["_"+Z+"padminus"]=He/2-Ge,r["_"+Z+"size"]=He,r["_"+Z+"shift"]=Je}if(ce){M.remove();return}var lr=0,rr=0;if(r.align!=="left"&&(lr=(K-le)*(r.align==="center"?.5:1)),r.valign!=="top"&&(rr=(_e-ue)*(r.valign==="middle"?.5:1)),ee)W.select("svg").attr({x:D+lr-1,y:D+rr}).call(Ml.setClipUrl,R?y:null,e);else{var er=D+rr-oe.top,Ie=D+lr-oe.left;G.call(N4.positionText,Ie,er).call(Ml.setClipUrl,R?y:null,e)}I.select("rect").call(Ml.setRect,D,D,K,_e),P.call(Ml.setRect,S/2,S/2,fe-S,ve-S),M.call(Ml.setTranslate,Math.round(m.x.text-fe/2),Math.round(m.y.text-ve/2)),_.attr({transform:"rotate("+x+","+m.x.text+","+m.y.text+")"});var ne=function(Pe,Fe){T.selectAll(".annotation-arrow-g").remove();var Ke=m.x.head,cr=m.y.head,ur=m.x.tail+Pe,Mr=m.y.tail+Fe,Ir=m.x.text+Pe,Gr=m.y.text+Fe,et=bs.rotationXYMatrix(x,Ir,Gr),qt=bs.apply2DTransform(et),ct=bs.apply2DTransform2(et),Ot=+P.attr("width"),gt=+P.attr("height"),wa=Ir-.5*Ot,Zt=wa+Ot,Xt=Gr-.5*gt,Ia=Xt+gt,ua=[[wa,Xt,wa,Ia],[wa,Ia,Zt,Ia],[Zt,Ia,Zt,Xt],[Zt,Xt,wa,Xt]].map(ct);if(!ua.reduce(function(_t,Vt){return _t^!!bs.segmentsIntersect(Ke,cr,Ke+1e6,cr+1e6,Vt[0],Vt[1],Vt[2],Vt[3])},!1)){ua.forEach(function(_t){var Vt=bs.segmentsIntersect(ur,Mr,Ke,cr,_t[0],_t[1],_t[2],_t[3]);Vt&&(ur=Vt.x,Mr=Vt.y)});var Jt=r.arrowwidth,ar=r.arrowcolor,Jr=r.arrowside,Xr=T.append("g").style({opacity:Uu.opacity(ar)}).classed("annotation-arrow-g",!0),$r=Xr.append("path").attr("d","M"+ur+","+Mr+"L"+Ke+","+cr).style("stroke-width",Jt+"px").call(Uu.stroke,Uu.rgb(ar));if(D2e($r,Jr,r),s.annotationPosition&&$r.node().parentNode&&!a){var Rt=Ke,$t=cr;if(r.standoff){var ft=Math.sqrt(Math.pow(Ke-ur,2)+Math.pow(cr-Mr,2));Rt+=r.standoff*(ur-Ke)/ft,$t+=r.standoff*(Mr-cr)/ft}var Ea=Xr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ur-Rt)+","+(Mr-$t),transform:F4(Rt,$t)}).style("stroke-width",Jt+6+"px").call(Uu.stroke,"rgba(0,0,0,0)").call(Uu.fill,"rgba(0,0,0,0)"),Mn,Kt;M0.init({element:Ea.node(),gd:e,prepFn:function(){var _t=Ml.getTranslate(M);Mn=_t.x,Kt=_t.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(_t,Vt){var Xa=qt(Mn,Kt),ll=Xa[0]+_t,vt=Xa[1]+Vt;M.call(Ml.setTranslate,ll,vt),d("x",gs(n,_t,"x",l,r)),d("y",gs(i,Vt,"y",l,r)),r.axref===r.xref&&d("ax",gs(n,_t,"ax",l,r)),r.ayref===r.yref&&d("ay",gs(i,Vt,"ay",l,r)),Xr.attr("transform",F4(_t,Vt)),_.attr({transform:"rotate("+x+","+ll+","+vt+")"})},doneFn:function(){P4.call("_guiRelayout",e,p());var _t=document.querySelector(".js-notes-box-panel");_t&&_t.redraw(_t.selectedObj)}})}}};if(r.showarrow&&ne(0,0),b){var de;M0.init({element:M.node(),gd:e,prepFn:function(){de=_.attr("transform")},moveFn:function(Pe,Fe){var Ke="pointer";if(r.showarrow)r.axref===r.xref?d("ax",gs(n,Pe,"ax",l,r)):d("ax",r.ax+Pe),r.ayref===r.yref?d("ay",gs(i,Fe,"ay",l.w,r)):d("ay",r.ay+Fe),ne(Pe,Fe);else{if(a)return;var cr,ur;if(n)cr=gs(n,Pe,"x",l,r);else{var Mr=r._xsize/l.w,Ir=r.x+(r._xshift-r.xshift)/l.w-Mr/2;cr=M0.align(Ir+Pe/l.w,Mr,0,1,r.xanchor)}if(i)ur=gs(i,Fe,"y",l,r);else{var Gr=r._ysize/l.h,et=r.y-(r._yshift+r.yshift)/l.h-Gr/2;ur=M0.align(et-Fe/l.h,Gr,0,1,r.yanchor)}d("x",cr),d("y",ur),(!n||!i)&&(Ke=M0.getCursor(n?.5:cr,i?.5:ur,r.xanchor,r.yanchor))}_.attr({transform:F4(Pe,Fe)+de}),I4(M,Ke)},clickFn:function(Pe,Fe){r.captureevents&&e.emit("plotly_clickannotation",k(Fe))},doneFn:function(){I4(M),P4.call("_guiRelayout",e,p());var Pe=document.querySelector(".js-notes-box-panel");Pe&&Pe.redraw(Pe.selectedObj)}})}}s.annotationText?G.call(N4.makeEditable,{delegate:M,gd:e}).call(Y).on("edit",function(H){r.text=H,this.call(Y),d("text",H),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),P4.call("_guiRelayout",e,p())}):G.call(Y)}});var kO=N((eNe,MO)=>{"use strict";var _O=Ce(),P2e=br(),wO=wt().arrayEditor;MO.exports={hasClickToShow:F2e,onClick:N2e};function F2e(e,r){var t=AO(e,r);return t.on.length>0||t.explicitOff.length>0}function N2e(e,r){var t=AO(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var z4=Ce(),Fc=Tr();SO.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Fc.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),z4.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Fc.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(Fc.opacity(i)?Fc.rgb(i):Fc.defaultLine)),x=n("hoverlabel.bordercolor",y.bordercolor||Fc.contrast(m)),T=z4.extendFlat({},y.font);T.color||(T.color=x),z4.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var LO=N((tNe,qO)=>{"use strict";var B4=Ce(),Gu=zr(),I2e=io(),z2e=O4(),O2e=Ac();qO.exports=function(r,t){I2e(r,t,{name:"annotations",handleItemDefaults:B2e})};function B2e(e,r,t){function a(_,b){return B4.coerce(e,r,O2e,_,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){z2e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Gu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Gu.getFromId(u,v);d._annIndices.push(r._index)}if(Gu.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,y=Gu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;Gu.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(B4.noneOrAll(e,r,["x","y"]),o&&B4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),T=a("yclick");r._xclick=x===void 0?r.x:Gu.cleanPosition(x,u,r.xref),r._yclick=T===void 0?r.y:Gu.cleanPosition(T,u,r.yref)}}}});var DO=N((aNe,EO)=>{"use strict";var H4=Ce(),Vu=zr(),H2e=Nm().draw;EO.exports=function(r){var t=r._fullLayout,a=H4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return H4.syncOrAsync([H2e,U2e],r)};function U2e(e){var r=e._fullLayout;H4.filterVisible(r.annotations).forEach(function(t){var a=Vu.getFromId(e,t.xref),n=Vu.getFromId(e,t.yref),i=Vu.getRefType(t.xref),o=Vu.getRefType(t.yref);t._extremes={},i==="range"&&CO(t,a),o==="range"&&CO(t,n)})}function CO(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,x;if(l===o){var T=Vu.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Vu.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});x={min:[T.min[0],_.min[0]],max:[T.max[0],_.max[0]]}}else y=i?y+i:y,m=i?m-i:m,x=Vu.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=x}});var PO=N((nNe,RO)=>{"use strict";var G2e=Rr(),V2e=qp();RO.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],y=null;i?y=V2e(p,t.range):y=Math.pow(10,p),G2e(y)||(y=null),n(f+d,y)}for(var v=0;v{"use strict";var U4=Nm(),FO=kO();NO.exports={moduleType:"component",name:"annotations",layoutAttributes:Ac(),supplyLayoutDefaults:LO(),includeBasePlot:n0()("annotations"),calcAutorange:DO(),draw:U4.draw,drawOne:U4.drawOne,drawRaw:U4.drawRaw,hasClickToShow:FO.hasClickToShow,onClick:FO.onClick,convertCoords:PO()}});var Im=N((oNe,zO)=>{"use strict";var kt=Ac(),Y2e=eo().overrideAll,W2e=wt().templatedArray;zO.exports=Y2e(W2e("annotation",{visible:kt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:kt.xanchor,xshift:kt.xshift,yanchor:kt.yanchor,yshift:kt.yshift,text:kt.text,textangle:kt.textangle,font:kt.font,width:kt.width,height:kt.height,opacity:kt.opacity,align:kt.align,valign:kt.valign,bgcolor:kt.bgcolor,bordercolor:kt.bordercolor,borderpad:kt.borderpad,borderwidth:kt.borderwidth,showarrow:kt.showarrow,arrowcolor:kt.arrowcolor,arrowhead:kt.arrowhead,startarrowhead:kt.startarrowhead,arrowside:kt.arrowside,arrowsize:kt.arrowsize,startarrowsize:kt.startarrowsize,arrowwidth:kt.arrowwidth,standoff:kt.standoff,startstandoff:kt.startstandoff,hovertext:kt.hovertext,hoverlabel:kt.hoverlabel,captureevents:kt.captureevents}),"calc","from-root")});var BO=N((lNe,OO)=>{"use strict";var G4=Ce(),j2e=zr(),Z2e=io(),X2e=O4(),J2e=Im();OO.exports=function(r,t,a){Z2e(r,t,{name:"annotations",handleItemDefaults:$2e,fullLayout:a.fullLayout})};function $2e(e,r,t,a){function n(l,s){return G4.coerce(e,r,J2e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],j2e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(X2e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),G4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),G4.noneOrAll(e,r,["ax","ay"])))}});var VO=N((sNe,GO)=>{"use strict";var HO=Ce(),UO=zr();GO.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function V4(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Q2e(e,r){var t=V4(e.projection,V4(e.view,V4(e.model,[r[0],r[1],r[2],1])));return t}YO.exports=Q2e});var ZO=N((fNe,jO)=>{"use strict";var e3e=Nm().drawRaw,r3e=WO(),t3e=["x","y","z"];jO.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=r3e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),e3e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var $O=N((cNe,JO)=>{"use strict";var a3e=br(),XO=Ce();JO.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Im()}}},layoutAttributes:Im(),handleDefaults:BO(),includeBasePlot:n3e,convert:VO(),draw:ZO()};function n3e(e,r){var t=a3e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var vNe=xa(),KO=ga(),QO=Ai().line,i3e=ci().dash,ho=bt().extendFlat,o3e=wt().templatedArray,hNe=r0(),Nc=gn(),eB=Ac(),{shapeTexttemplateAttrs:l3e,templatefallbackAttrs:s3e}=Wn(),u3e=Op();rB.exports=o3e("shape",{visible:ho({},Nc.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ho({},Nc.legend,{editType:"calc+arraydraw"}),legendgroup:ho({},Nc.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ho({},Nc.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:KO({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ho({},Nc.legendrank,{editType:"calc+arraydraw"}),legendwidth:ho({},Nc.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ho({},eB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ho({},eB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ho({},QO.color,{editType:"arraydraw"}),width:ho({},QO.width,{editType:"calc+arraydraw"}),dash:ho({},i3e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:l3e({},{keys:Object.keys(u3e)}),texttemplatefallback:s3e({editType:"arraydraw"}),font:KO({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var aB=N((pNe,tB)=>{"use strict";var Ic=Ce(),ri=zr(),f3e=io(),c3e=Y4(),S0=hs();tB.exports=function(r,t){f3e(r,t,{name:"shapes",handleItemDefaults:h3e})};function v3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function h3e(e,r,t){function a(_,b){return Ic.coerce(e,r,c3e,_,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),Ic.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(_=>{var b=_+"anchor",w=_==="x"?c:v,k={_fullLayout:t},M,S,E,D;let P=_+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let I=S0.countDefiningCoords(s,o,_);D=ri.coerceRefArray(e,r,k,_,void 0,"paper",I),r["_"+_+"refArray"]=!0}else D=ri.coerceRef(e,r,k,_,void 0,"paper");if(Array.isArray(D))D.forEach(function(I){ri.getRefType(I)==="range"&&(M=ri.getFromId(k,I),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(I){let z=D[I];ri.getRefType(z)==="range"?(M=ri.getFromId(k,z),S=S0.shapePositionToRange(M),E=S0.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+I+"shift")):S=E=Ic.identity;let G=_+I,Y=e[G];if(e[G]=S(e[G],!0),w==="pixel"?a(G,p[I]):ri.coercePosition(r,k,a,z,G,d[I]),r[G]=E(r[G]),e[G]=Y,I===0&&w==="pixel"){let V=e[b];e[b]=S(e[b],!0),ri.coercePosition(r,k,a,z,b,.25),r[b]=E(r[b]),e[b]=V}});else{if(ri.getRefType(D)==="range"?(M=ri.getFromId(k,D),M._shapeIndices.push(r._index),E=S0.rangeToShapePosition(M),S=S0.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):S=E=Ic.identity,u){let z=_+"0",B=_+"1",G=e[z],Y=e[B];e[z]=S(e[z],!0),e[B]=S(e[B],!0),w==="pixel"?(a(z,p[0]),a(B,p[1])):(ri.coercePosition(r,k,a,D,z,d[0]),ri.coercePosition(r,k,a,D,B,d[1])),r[z]=E(r[z]),r[B]=E(r[B]),e[z]=G,e[B]=Y}if(w==="pixel"){let z=e[b];e[b]=S(e[b],!0),ri.coercePosition(r,k,a,D,b,.25),r[b]=E(r[b]),e[b]=z}}}),u&&Ic.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",m,x;if(u&&(m=a("label.texttemplate"),a("label.texttemplatefallback")),m||(x=a("label.text")),x||m){a("label.textangle");var T=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",v3e(y,T)),a("label.padding"),Ic.coerceFont(a,"label.font",t.font)}}});var oB=N((yNe,iB)=>{"use strict";var d3e=Tr(),nB=Ce();function p3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}iB.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),nB.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",d3e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",p3e(o,u)),a("newshape.label.padding"),nB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var hB=N((mNe,vB)=>{"use strict";var W4=Ce(),Di=zr(),Zo=Nh(),j4=hs();vB.exports=function(r){var t=r._fullLayout,a=W4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=Di.getFromId(r,c),i._extremes[o._id]=Di.findExtremes(o,v,sB(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=Di.getFromId(r,i.xref),l=fB(o,i,Zo.paramIsX),l&&(i._extremes[o._id]=Di.findExtremes(o,l,sB(i))));if(u==="array"){let f=lB(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=Di.getFromId(r,c),i._extremes[o._id]=Di.findExtremes(o,v,uB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=Di.getFromId(r,i.yref),l=fB(o,i,Zo.paramIsY),l&&(i._extremes[o._id]=Di.findExtremes(o,l,uB(i))))}};function lB(e,r,t){let a=r[t+"ref"],n=t==="x"?Zo.paramIsX:Zo.paramIsY;function i(c,v){c==="paper"||Di.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Zo.segmentRE)||[];for(var l=0,s=0;sp&&(i(a[l],y[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=Di.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=j4.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function sB(e){return cB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function uB(e){return cB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function cB(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?j4.extractPathCoords(n,i?Zo.paramIsY:Zo.paramIsX):[t,a],u=W4.aggNums(Math.max,null,s),f=W4.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,v=u>0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function fB(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Zo.segmentRE),p,y,m,x,T;for(e.type==="date"&&(u=j4.decodeDate(u)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var yB=N((gNe,pB)=>{"use strict";var dB=ky();pB.exports={moduleType:"component",name:"shapes",layoutAttributes:Y4(),supplyLayoutDefaults:aB(),supplyDrawNewShapeDefaults:oB(),includeBasePlot:n0()("shapes"),calcAutorange:hB(),draw:dB.draw,drawOne:dB.drawOne}});var Z4=N((xNe,gB)=>{"use strict";var mB=xa(),y3e=wt().templatedArray,bNe=r0();gB.exports=y3e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",mB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",mB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var xB=N((_Ne,bB)=>{"use strict";var m3e=Ce(),X4=zr(),g3e=io(),b3e=Z4(),x3e="images";bB.exports=function(r,t){var a={name:x3e,handleItemDefaults:_3e};g3e(r,t,a)};function _3e(e,r,t){function a(v,d){return m3e.coerce(e,r,b3e,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=X4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=X4.getFromId(o,f);c._imgIndices.push(r._index)}X4.coercePosition(r,o,a,f,u,0)}return r}});var AB=N((wNe,TB)=>{"use strict";var _B=Sr(),w3e=Yr(),zc=zr(),wB=fa(),T3e=pl();TB.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var MB=Rr(),A3e=qp();kB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";qB.exports={moduleType:"component",name:"images",layoutAttributes:Z4(),supplyLayoutDefaults:xB(),includeBasePlot:n0()("images"),draw:AB(),convertCoords:SB()}});var zm=N((MNe,CB)=>{"use strict";CB.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var J4=N((kNe,DB)=>{"use strict";var M3e=ga(),k3e=fi(),S3e=bt().extendFlat,q3e=eo().overrideAll,L3e=Bp(),EB=wt().templatedArray,C3e=EB("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});DB.exports=q3e(EB("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:C3e,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:S3e(L3e({editType:"arraydraw"}),{}),font:M3e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:k3e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var NB=N((SNe,FB)=>{"use strict";var Om=Ce(),RB=io(),PB=J4(),E3e=zm(),D3e=E3e.name,R3e=PB.buttons;FB.exports=function(r,t){var a={name:D3e,handleItemDefaults:P3e};RB(r,t,a)};function P3e(e,r,t){function a(o,l){return Om.coerce(e,r,PB,o,l)}var n=RB(e,r,{name:"buttons",handleItemDefaults:F3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Om.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Om.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function F3e(e,r){function t(n,i){return Om.coerce(e,r,R3e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var OB=N((qNe,zB)=>{"use strict";zB.exports=It;var po=Sr(),IB=Tr(),Oc=Yr(),Bm=Ce();function It(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}It.barWidth=2;It.barLength=20;It.barRadius=2;It.barPad=1;It.barColor="#808BA4";It.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,x=f,T,_,b,w;!v&&!d&&!p&&!y&&(this.position.direction="down",v=!0);var k=v||y;k?(T=l,_=T+m,v?(b=u,w=Math.min(b+x,o),x=w-b):(w=u+x,b=Math.max(w-x,0),x=w-b)):(b=u,w=b+x,d?(_=l+m,T=Math.max(_-m,0),m=_-T):(T=l,_=Math.min(T+m,i),m=_-T)),this._box={l:T,t:b,w:m,h:x};var M=s>m,S=It.barLength+2*It.barPad,E=It.barWidth+2*It.barPad,D=l,P=u+f;P+E>o&&(P=o-E);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(IB.fill,It.barColor),M?(this.hbar=R.attr({rx:It.barRadius,ry:It.barRadius,x:D,y:P,width:S,height:E}),this._hbarXMin=D+S/2,this._hbarTranslateMax=m-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>x,z=It.barWidth+2*It.barPad,B=It.barLength+2*It.barPad,G=l+s,Y=u;G+z>i&&(G=i-z);var V=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(IB.fill,It.barColor),I?(this.vbar=V.attr({rx:It.barRadius,ry:It.barRadius,x:G,y:Y,width:z,height:B}),this._vbarYMin=Y+B/2,this._vbarTranslateMax=x-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,X=T-.5,W=I?_+z+.5:_+.5,ee=b-.5,oe=M?w+E+.5:w+.5,le=n._topdefs.selectAll("#"+H).data(M||I?[0]:[]);if(le.exit().remove(),le.enter().append("clipPath").attr("id",H).append("rect"),M||I?(this._clipRect=le.select("rect").attr({x:Math.floor(X),y:Math.floor(ee),width:Math.ceil(W)-Math.floor(X),height:Math.ceil(oe)-Math.floor(ee)}),this.container.call(Oc.setClipUrl,H,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Oc.setClipUrl,null),delete this._clipRect),M||I){var ue=po.behavior.drag().on("dragstart",function(){po.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ue);var K=po.behavior.drag().on("dragstart",function(){po.event.sourceEvent.preventDefault(),po.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(K),I&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};It.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Oc.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};It.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=po.event.dx),this.vbar&&(t-=po.event.dy),this.setTranslate(r,t)};It.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=po.event.deltaY),this.vbar&&(t+=po.event.deltaY),this.setTranslate(r,t)};It.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Bm.constrain(po.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Bm.constrain(po.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};It.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Bm.constrain(r||0,0,a),t=Bm.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Oc.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Oc.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Oc.setTranslate,r,t+o*this._vbarTranslateMax)}}});var XB=N((LNe,ZB)=>{"use strict";var Bc=Sr(),q0=aa(),L0=Tr(),Hc=Yr(),ti=Ce(),Hm=Aa(),N3e=wt().arrayEditor,HB=Ua().LINE_SPACING,wr=zm(),I3e=OB();ZB.exports=function(r){var t=r._fullLayout,a=ti.filterVisible(t[wr.name]);function n(v){q0.autoMargin(r,WB(v))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Bc.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+wr.headerGroupClassName).data(a,z3e);o.enter().append("g").classed(wr.headerGroupClassName,!0);for(var l=ti.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var Y3e=zm();JB.exports={moduleType:"component",name:Y3e.name,layoutAttributes:J4(),supplyLayoutDefaults:NB(),draw:XB()}});var E0=N((ENe,KB)=>{"use strict";KB.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var ew=N((DNe,rH)=>{"use strict";var QB=ga(),W3e=Bp(),j3e=bt().extendDeepAll,Z3e=eo().overrideAll,X3e=oh(),eH=wt().templatedArray,Yu=E0(),J3e=eH("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});rH.exports=Z3e(eH("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:J3e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:j3e(W3e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:X3e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:QB({})},font:QB({}),activebgcolor:{valType:"color",dflt:Yu.gripBgActiveColor},bgcolor:{valType:"color",dflt:Yu.railBgColor},bordercolor:{valType:"color",dflt:Yu.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Yu.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Yu.tickLength},tickcolor:{valType:"color",dflt:Yu.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Yu.minorTickLength}}),"arraydraw","from-root")});var iH=N((RNe,nH)=>{"use strict";var Uc=Ce(),tH=io(),aH=ew(),$3e=E0(),K3e=$3e.name,Q3e=aH.steps;nH.exports=function(r,t){tH(r,t,{name:K3e,handleItemDefaults:ebe})};function ebe(e,r,t){function a(c,v){return Uc.coerce(e,r,aH,c,v)}for(var n=tH(e,r,{name:"steps",handleItemDefaults:rbe}),i=0,o=0;o{"use strict";var yo=Sr(),Um=aa(),xs=Tr(),mo=Yr(),ai=Ce(),tbe=ai.strTranslate,D0=Aa(),abe=wt().arrayEditor,Fr=E0(),aw=Ua(),sH=aw.LINE_SPACING,rw=aw.FROM_TL,tw=aw.FROM_BR;dH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=nbe(a,r),i=a._infolayer.selectAll("g."+Fr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Fr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Um.autoMargin(r,uH(f))}if(i.exit().each(function(){yo.select(this).selectAll("g."+Fr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Fr.groupClassName).data(n,ibe);l.enter().append("g").classed(Fr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",tbe(o-Fr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function nw(e,r){var t=e._dims;return t.inputAreaStart+Fr.stepInset+(t.inputAreaLength-2*Fr.stepInset)*Math.min(1,Math.max(0,r))}function lH(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Fr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Fr.stepInset-2*t.inputAreaStart)))}function vbe(e,r,t){var a=t._dims,n=ai.ensureSingle(e,"rect",Fr.railTouchRectClass,function(i){i.call(vH,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Fr.tickOffset+t.ticklen+a.labelHeight)}).call(xs.fill,t.bgcolor).attr("opacity",0),mo.setTranslate(n,0,a.currentValueTotalHeight)}function hbe(e,r){var t=r._dims,a=t.inputAreaLength-Fr.railInset*2,n=ai.ensureSingle(e,"rect",Fr.railRectClass);n.attr({width:a,height:Fr.railWidth,rx:Fr.railRadius,ry:Fr.railRadius,"shape-rendering":"crispEdges"}).call(xs.stroke,r.bordercolor).call(xs.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),mo.setTranslate(n,Fr.railInset,(t.inputAreaWidth-Fr.railWidth)*.5+t.currentValueTotalHeight)}});var mH=N((FNe,yH)=>{"use strict";var dbe=E0();yH.exports={moduleType:"component",name:dbe.name,layoutAttributes:ew(),supplyLayoutDefaults:iH(),draw:pH()}});var Vm=N((NNe,bH)=>{"use strict";var gH=fi();bH.exports={bgcolor:{valType:"color",dflt:gH.background,editType:"plot"},bordercolor:{valType:"color",dflt:gH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var iw=N((INe,xH)=>{"use strict";xH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Ym=N((zNe,_H)=>{"use strict";_H.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var AH=N(jm=>{"use strict";var pbe=fa(),ybe=Aa(),wH=Ym(),mbe=Ua().LINE_SPACING,Wm=wH.name;function TH(e){var r=e&&e[Wm];return r&&r.visible}jm.isVisible=TH;jm.makeData=function(e){for(var r=pbe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Zm=Ce(),MH=wt(),kH=fa(),gbe=Vm(),bbe=iw();SH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Zm.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=MH.newContainer(i,"rangeslider");function s(w,k){return Zm.coerce(o,l,gbe,w,k)}var u,f;function c(w,k){return Zm.coerce(u,f,bbe,w,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(w){return w.slice(0,Math.max(0,w.indexOf("y")))===kH.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),y=Zm.simpleMap(p,kH.id2name),m=0;m{"use strict";var xbe=fa().list,_be=wh().getAutoRange,wbe=Ym();LH.exports=function(r){for(var t=xbe(r,"x",!0),a=0;a{"use strict";var Xm=Sr(),Tbe=br(),Abe=aa(),jt=Ce(),Jm=jt.strTranslate,DH=Yr(),_s=Tr(),Mbe=lc(),kbe=Ei(),ow=fa(),Sbe=mi(),qbe=ss(),Ur=Ym();RH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=V.max)G=P[Y+1];else if(B=V.pmax)G=P[Y+1];else if(B0?e.touches[0].clientX:0}function Lbe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Ur.slideBoxClassName).node(),i=e.select("rect."+Ur.grabAreaMinClassName).node(),o=e.select("rect."+Ur.grabAreaMaxClassName).node();function l(){var s=Xm.event,u=s.target,f=EH(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Sbe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(x){var T=EH(x),_=+T-f,b,w,k;switch(u){case n:if(k="ew-resize",v+_>t._length||d+_<0)return;b=v+_,w=d+_;break;case i:if(k="col-resize",v+_>t._length)return;b=v+_,w=d;break;case o:if(k="col-resize",d+_<0)return;b=v,w=d+_;break;default:k="ew-resize",b=c,w=c+_;break}if(w{"use strict";var Obe=Ce(),Bbe=Vm(),Hbe=iw(),lw=AH();FH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Obe.extendFlat({},Bbe,{yaxis:Hbe})}}},layoutAttributes:Vm(),handleDefaults:qH(),calcAutorange:CH(),draw:PH(),isVisible:lw.isVisible,makeData:lw.makeData,autoMarginOpts:lw.autoMarginOpts}});var $m=N((VNe,zH)=>{"use strict";var Ube=ga(),IH=fi(),Gbe=wt().templatedArray,Vbe=Gbe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});zH.exports={visible:{valType:"boolean",editType:"plot"},buttons:Vbe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Ube({editType:"plot"}),bgcolor:{valType:"color",dflt:IH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:IH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var sw=N((YNe,OH)=>{"use strict";OH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var UH=N((WNe,HH)=>{"use strict";var Km=Ce(),Ybe=Tr(),Wbe=wt(),jbe=io(),BH=$m(),uw=sw();HH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=Wbe.newContainer(t,"rangeselector");function s(d,p){return Km.coerce(o,l,BH,d,p)}var u=jbe(o,l,{name:"buttons",handleItemDefaults:Zbe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Xbe(t,a,n);s("x",c[0]),s("y",c[1]),Km.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Km.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",Ybe.contrast(v,uw.lightAmount,uw.darkAmount)),s("bordercolor"),s("borderwidth")}};function Zbe(e,r,t,a){var n=a.calendar;function i(s,u){return Km.coerce(e,r,BH.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Xbe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var Jbe=sb(),$be=Ce().titleCase;GH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Kbe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Kbe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Jbe["utc"+$be(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var KH=N((ZNe,$H)=>{"use strict";var eg=Sr(),Qbe=br(),exe=aa(),YH=Tr(),JH=Yr(),kl=Ce(),WH=kl.strTranslate,Qm=Aa(),rxe=fa(),vw=Ua(),jH=vw.LINE_SPACING,ZH=vw.FROM_TL,XH=vw.FROM_BR,cw=sw(),txe=VH();$H.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(axe(r),nxe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=eg.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(kl.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=eg.select(this),c=txe(o,u);u._isActive=ixe(o,u,c),f.call(fw,l,u),f.call(lxe,l,u,r),f.on("click",function(){r._dragged||Qbe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(fw,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(fw,l,u)})}),uxe(r,s,l,o._name,i)})};function axe(e){for(var r=rxe.list(e,"x",!0),t=[],a=0;a{"use strict";QH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:$m()}}},layoutAttributes:$m(),handleDefaults:UH(),draw:KH()}});var Gc=N(hw=>{"use strict";var rU=bt().extendFlat;hw.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:rU({},t,{}),y:rU({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};hw.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var fxe=Ce(),cxe=Nf().counter,vxe=Gc().attributes,tU=xa().idRegex,hxe=wt(),dw={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[cxe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[tU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[tU.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:vxe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function rg(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function dxe(e,r){var t=e.grid||{},a=rg(r,t,"x"),n=rg(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=hxe.newContainer(r,"grid");function v(k,M){return fxe.coerce(t,c,dw,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),x=m==="top to bottom",T=i?.2:.1,_=i?.3:.1,b,w;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,w=r._splomGridDflt.yside),c._domains={x:aU("x",v,T,b,p),y:aU("y",v,_,w,d,x)}}function aU(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";lU.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var fU=N((QNe,uU)=>{"use strict";var sU=Rr(),yxe=br(),mxe=Ce(),gxe=wt(),bxe=pw();uU.exports=function(e,r,t,a){var n="error_"+a.axis,i=gxe.newContainer(r,n),o=e[n]||{};function l(p,y){return mxe.coerce(o,i,bxe,p,y)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||sU(o.thickness)||sU(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",yxe.traceIs(r,"gl3d")?0:4))}}});var yw=N((eIe,vU)=>{"use strict";vU.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=cU(t,r.value),l=cU(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function cU(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var pU=N((rIe,dU)=>{"use strict";var mw=Rr(),xxe=br(),gw=zr(),_xe=Ce(),wxe=yw();dU.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var yU=Sr(),ws=Rr(),Txe=Yr(),Axe=Nn();mU.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(T){return T.id});var y=Axe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var m=yU.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var x=m.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),Txe.setClipUrl(m,a.layerClipId,r),m.each(function(T){var _=yU.select(this),b=Mxe(T,o,l);if(!(y&&!T.vis)){var w,k=_.select("path.yerror");if(d.visible&&ws(b.x)&&ws(b.yh)&&ws(b.ys)){var M=d.width;w="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(w+="m-"+M+",0h"+2*M),i=!k.size(),i?k=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",w)}else k.remove();var S=_.select("path.xerror");if(v.visible&&ws(b.y)&&ws(b.xh)&&ws(b.xs)){var E=(v.copy_ystyle?d:v).width;w="M"+b.xh+","+(b.y-E)+"v"+2*E+"m0,-"+E+"H"+b.xs,b.noXS||(w+="m0,-"+E+"v"+2*E),i=!S.size(),i?S=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",w)}else S.remove()}})}})};function Mxe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),ws(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),ws(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var _U=N((aIe,xU)=>{"use strict";var kxe=Sr(),bU=Tr();xU.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=kxe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(bU.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(bU.stroke,i.color)})}});var AU=N((nIe,TU)=>{"use strict";var R0=Ce(),wU=eo().overrideAll,P0=pw(),Wu={error_x:R0.extendFlat({},P0),error_y:R0.extendFlat({},P0)};delete Wu.error_x.copy_zstyle;delete Wu.error_y.copy_zstyle;delete Wu.error_y.copy_ystyle;var F0={error_x:R0.extendFlat({},P0),error_y:R0.extendFlat({},P0),error_z:R0.extendFlat({},P0)};delete F0.error_x.copy_ystyle;delete F0.error_y.copy_ystyle;delete F0.error_z.copy_ystyle;delete F0.error_z.copy_zstyle;TU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Wu,bar:Wu,histogram:Wu,scatter3d:wU(F0,"calc","nested"),scattergl:wU(Wu,"calc","nested")}},supplyDefaults:fU(),calc:pU(),makeComputeError:yw(),plot:gU(),style:_U(),hoverInfo:Sxe};function Sxe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var kU=N((iIe,MU)=>{"use strict";MU.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var RU=N((oIe,DU)=>{"use strict";var Ts=Sr(),bw=Cn(),ag=aa(),SU=br(),Sl=zr(),tg=mi(),Ri=Ce(),bo=Ri.strTranslate,EU=bt().extendFlat,xw=ss(),go=Yr(),_w=Tr(),qxe=lc(),Lxe=Aa(),Cxe=Zn().flipScale,Exe=L4(),Dxe=C4(),Rxe=pi(),ww=Ua(),qU=ww.LINE_SPACING,LU=ww.FROM_TL,CU=ww.FROM_BR,Nt=kU().cn;function Pxe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Nt.colorbar).data(Fxe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Nt.colorbar,!0),t.each(function(a){var n=Ts.select(this);Ri.ensureSingle(n,"rect",Nt.cbbg),Ri.ensureSingle(n,"g",Nt.cbfills),Ri.ensureSingle(n,"g",Nt.cblines),Ri.ensureSingle(n,"g",Nt.cbaxis,function(o){o.classed(Nt.crisp,!0)}),Ri.ensureSingle(n,"g",Nt.cbtitleunshift,function(o){o.append("g").classed(Nt.cbtitle,!0)}),Ri.ensureSingle(n,"rect",Nt.cboutline);var i=Nxe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Ixe(n,a,e)}),t.exit().each(function(a){ag.autoMargin(e,a._id)}).remove(),t.order()}function Fxe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return EU(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?Cxe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(j)/Math.LN10));ye*=Q*Ri.roundUp(j/Q,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(fe.tick0=0)}fe.dtick=ye}fe.domain=a?[K+p/b.h,K+H-p/b.h]:[K+d/b.w,K+H-d/b.w],fe.setScale(),e.attr("transform",bo(Math.round(b.l),Math.round(b.t)));var Z=e.select("."+Nt.cbtitleunshift).attr("transform",bo(-Math.round(b.l),-Math.round(b.t))),ie=fe.ticklabelposition,he=fe.title.font.size,me=e.select("."+Nt.cbaxis),Re,De=0,Le=0;function He(Ge,se){var Ae={propContainer:fe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+Nt.cbtitle)},Je=Ge.charAt(0)==="h"?Ge.slice(1):"h"+Ge;e.selectAll("."+Je+",."+Je+"-math-group").remove(),qxe.draw(t,Ge,EU(Ae,se||{}))}function Oe(){if(a&&ve||!a&&!ve){var Ge,se;S==="top"&&(Ge=d+b.l+X*y,se=p+b.t+W*(1-K-H)+3+he*.75),S==="bottom"&&(Ge=d+b.l+X*y,se=p+b.t+W*(1-K)-3-he*.25),S==="right"&&(se=p+b.t+W*m+3+he*.75,Ge=d+b.l+X*K),He(fe._id+"title",{attributes:{x:Ge,y:se,"text-anchor":a?"start":"middle"}})}}function Ue(){if(a&&!ve||!a&&ve){var Ge=fe.position||0,se=fe._offset+fe._length/2,Ae,Je;if(S==="right")Je=se,Ae=b.l+X*Ge+10+he*(fe.showticklabels?1:.5);else if(Ae=se,S==="bottom"&&(Je=b.t+W*Ge+10+(ie.indexOf("inside")===-1?fe.tickfont.size:0)+(fe.ticks!=="inside"&&r.ticklen||0)),S==="top"){var dr=M.text.split("
").length;Je=b.t+W*Ge+10-G-qU*he*dr}He((a?"h":"v")+fe._id+"title",{avoid:{selection:Ts.select(t).selectAll("g."+fe._id+"tick"),side:S,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?_.width:_.height},attributes:{x:Ae,y:Je,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Ee(){if(!a&&!ve||a&&ve){var Ge=e.select("."+Nt.cbtitle),se=Ge.select("text"),Ae=[-s/2,s/2],Je=Ge.select(".h"+fe._id+"title-math-group").node(),dr=15.6;se.node()&&(dr=parseInt(se.node().style.fontSize,10)*qU);var Ne;if(Je?(Ne=go.bBox(Je),Le=Ne.width,De=Ne.height,De>dr&&(Ae[1]-=(De-dr)/2)):se.node()&&!se.classed(Nt.jsPlaceholder)&&(Ne=go.bBox(se.node()),Le=Ne.width,De=Ne.height),a){if(De){if(De+=5,S==="top")fe.domain[1]-=De/b.h,Ae[1]*=-1;else{fe.domain[0]+=De/b.h;var Te=Lxe.lineCount(se);Ae[1]+=(1-Te)*dr}Ge.attr("transform",bo(Ae[0],Ae[1])),fe.setScale()}}else Le&&(S==="right"&&(fe.domain[0]+=(Le+he/2)/b.w),Ge.attr("transform",bo(Ae[0],Ae[1])),fe.setScale())}e.selectAll("."+Nt.cbfills+",."+Nt.cblines).attr("transform",a?bo(0,Math.round(b.h*(1-fe.domain[1]))):bo(Math.round(b.w*fe.domain[0]),0)),me.attr("transform",a?bo(0,Math.round(-b.t)):bo(Math.round(-b.l),0));var qe=e.select("."+Nt.cbfills).selectAll("rect."+Nt.cbfill).attr("style","").data(z);qe.enter().append("rect").classed(Nt.cbfill,!0).attr("style",""),qe.exit().remove();var Be=E.map(fe.c2p).map(Math.round).sort(function(rr,er){return rr-er});qe.each(function(rr,er){var Ie=[er===0?E[0]:(z[er]+z[er-1])/2,er===z.length-1?E[1]:(z[er]+z[er+1])/2].map(fe.c2p).map(Math.round);a&&(Ie[1]=Ri.constrain(Ie[1]+(Ie[1]>Ie[0])?1:-1,Be[0],Be[1]));var ne=Ts.select(this).attr(a?"x":"y",ee).attr(a?"y":"x",Ts.min(Ie)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(Ts.max(Ie)-Ts.min(Ie),2));if(r._fillgradient)go.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var de=P(rr).replace("e-","");ne.attr("fill",bw(de).toHexString())}});var Xe=e.select("."+Nt.cblines).selectAll("path."+Nt.cbline).data(k.color&&k.width?B:[]);Xe.enter().append("path").classed(Nt.cbline,!0),Xe.exit().remove(),Xe.each(function(rr){var er=ee,Ie=Math.round(fe.c2p(rr))+k.width/2%1;Ts.select(this).attr("d","M"+(a?er+","+Ie:Ie+","+er)+(a?"h":"v")+G).call(go.lineGroupStyle,k.width,D(rr),k.dash)}),me.selectAll("g."+fe._id+"tick,path").remove();var Ve=ee+G+(s||0)/2-(r.ticks==="outside"?1:0),We=Sl.calcTicks(fe),lr=Sl.getTickSigns(fe)[2];return Sl.drawTicks(t,fe,{vals:fe.ticks==="inside"?Sl.clipEnds(fe,We):We,layer:me,path:Sl.makeTickPath(fe,Ve,lr),transFn:Sl.makeTransTickFn(fe)}),Sl.drawLabels(t,fe,{vals:We,layer:me,transFn:Sl.makeTransTickLabelFn(fe),labelFns:Sl.makeLabelFns(fe,Ve)})}function ze(){var Ge,se=G+s/2;ie.indexOf("inside")===-1&&(Ge=go.bBox(me.node()),se+=a?Ge.width:Ge.height),Re=Z.select("text");var Ae=0,Je=a&&S==="top",dr=!a&&S==="right",Ne=0;if(Re.node()&&!Re.classed(Nt.jsPlaceholder)){var Te,qe=Z.select(".h"+fe._id+"title-math-group").node();qe&&(a&&ve||!a&&!ve)?(Ge=go.bBox(qe),Ae=Ge.width,Te=Ge.height):(Ge=go.bBox(Z.node()),Ae=Ge.right-b.l-(a?ee:_e),Te=Ge.bottom-b.t-(a?_e:ee),!a&&S==="top"&&(se+=Ge.height,Ne=Ge.height)),dr&&(Re.attr("transform",bo(Ae/2+he/2,0)),Ae*=2),se=Math.max(se,a?Ae:Te)}var Be=(a?d:p)*2+se+u+s/2,Xe=0;!a&&M.text&&v==="bottom"&&m<=0&&(Xe=Be/2,Be+=Xe,Ne+=Xe),_._hColorbarMoveTitle=Xe,_._hColorbarMoveCBTitle=Ne;var Ve=u+s,We=(a?ee:_e)-Ve/2-(a?d:0),lr=(a?_e:ee)-(a?V:p+Ne-Xe);e.select("."+Nt.cbbg).attr("x",We).attr("y",lr).attr(a?"width":"height",Math.max(Be-Xe,2)).attr(a?"height":"width",Math.max(V+Ve,2)).call(_w.fill,f).call(_w.stroke,r.bordercolor).style("stroke-width",u);var rr=dr?Math.max(Ae-10,0):0;e.selectAll("."+Nt.cboutline).attr("x",(a?ee:_e+d)+rr).attr("y",(a?_e+p-V:ee)+(Je?De:0)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(V-(a?2*p+De:2*d+rr),2)).call(_w.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var er=a?oe*Be:0,Ie=a?0:(1-le)*Be-Ne;if(er=T?b.l-er:-er,Ie=x?b.t-Ie:-Ie,e.attr("transform",bo(er,Ie)),!a&&(u||bw(f).getAlpha()&&!bw.equals(_.paper_bgcolor,f))){var ne=me.selectAll("text"),de=ne[0].length,Pe=e.select("."+Nt.cbbg).node(),Fe=go.bBox(Pe),Ke=go.getTranslate(e),cr=2;ne.each(function(wa,Zt){var Xt=0,Ia=de-1;if(Zt===Xt||Zt===Ia){var ua=go.bBox(this),Jt=go.getTranslate(this),ar;if(Zt===Ia){var Jr=ua.right+Jt.x,Xr=Fe.right+Ke.x+_e-u-cr+y;ar=Xr-Jr,ar>0&&(ar=0)}else if(Zt===Xt){var $r=ua.left+Jt.x,Rt=Fe.left+Ke.x+_e+u+cr;ar=Rt-$r,ar<0&&(ar=0)}ar&&(de<3?this.setAttribute("transform","translate("+ar+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ur={},Mr=LU[c],Ir=CU[c],Gr=LU[v],et=CU[v],qt=Be-G;a?(i==="pixels"?(ur.y=m,ur.t=V*Gr,ur.b=V*et):(ur.t=ur.b=0,ur.yt=m+n*Gr,ur.yb=m-n*et),l==="pixels"?(ur.x=y,ur.l=Be*Mr,ur.r=Be*Ir):(ur.l=qt*Mr,ur.r=qt*Ir,ur.xl=y-o*Mr,ur.xr=y+o*Ir)):(i==="pixels"?(ur.x=y,ur.l=V*Mr,ur.r=V*Ir):(ur.l=ur.r=0,ur.xl=y+n*Mr,ur.xr=y-n*Ir),l==="pixels"?(ur.y=1-m,ur.t=Be*Gr,ur.b=Be*et):(ur.t=qt*Gr,ur.b=qt*et,ur.yt=m-o*Gr,ur.yb=m+o*et));var ct=r.y<.5?"b":"t",Ot=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var gt={r:_.width-We-er,l:We+ur.r,b:_.height-lr-Ie,t:lr+ur.b};T&&x?ag.autoMargin(t,r._id,ur):T?t._fullLayout._reservedMargin[r._id][ct]=gt[ct]:x||a?t._fullLayout._reservedMargin[r._id][Ot]=gt[Ot]:t._fullLayout._reservedMargin[r._id][ct]=gt[ct]}return Ri.syncOrAsync([ag.previousPromises,Oe,Ee,Ue,ag.previousPromises,ze],t)}function Ixe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;tg.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),xw(e)},moveFn:function(u,f){e.attr("transform",o+bo(u,f)),l=tg.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=tg.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=tg.getCursor(l,s,r.xanchor,r.yanchor);xw(e,c)},doneFn:function(){if(xw(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?SU.call("_guiRestyle",t,u,r._traceIndex):SU.call("_guiRelayout",t,u)}}})}function zxe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";PU.exports={moduleType:"component",name:"colorbar",attributes:d1(),supplyDefaults:xx(),draw:RU().draw,hasColorbar:hx()}});var IU=N((sIe,NU)=>{"use strict";NU.exports={moduleType:"component",name:"legend",layoutAttributes:p5(),supplyLayoutDefaults:m5(),draw:E5(),style:S5()}});var OU=N((uIe,zU)=>{"use strict";zU.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var HU=N((fIe,BU)=>{"use strict";BU.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var Aw=N((cIe,YU)=>{"use strict";var Bxe=br(),VU=Ce(),Tw=VU.extendFlat,UU=VU.extendDeep;function GU(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Hxe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}YU.exports=function(r,t){var a,n=r.data,i=r.layout,o=UU([],n),l=UU({},i,GU(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(a=0;a{"use strict";var Uxe=uu().EventEmitter,Gxe=br(),Vxe=Ce(),WU=Tl(),Yxe=Aw(),Wxe=um(),jxe=fm();function Zxe(e,r){var t=new Uxe,a=Yxe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=WU.getDelay(n._fullLayout);setTimeout(function(){var s=Wxe(n),u=document.createElement("canvas");u.id=Vxe.randstr(),t=jxe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=WU.getRedrawFunc(n);return Gxe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}jU.exports=Zxe});var $U=N((hIe,JU)=>{"use strict";var XU=Tl(),Xxe={getDelay:XU.getDelay,getRedrawFunc:XU.getRedrawFunc,clone:Aw(),toSVG:um(),svgToImg:fm(),toImage:ZU(),downloadImage:Z_()};JU.exports=Xxe});var QU=N(ql=>{"use strict";ql.version=gp().version;rM();VS();var Jxe=br(),N0=ql.register=Jxe.register,kw=vI(),KU=Object.keys(kw);for(ng=0;ng{"use strict";eG.exports=QU()});var Zu=N((yIe,oG)=>{"use strict";var Gt=Ai(),tG=no().axisHoverFormat,{hovertemplateAttrs:$xe,texttemplateAttrs:Kxe,templatefallbackAttrs:aG}=Wn(),iG=Lo(),Qxe=ga(),nG=g0(),e5e=ci().pattern,ju=bt().extendFlat,Sw=Qxe({editType:"calc",arrayOk:!0,colorEditType:"style"}),r5e=Gt.marker,t5e=r5e.line,a5e=ju({},t5e.width,{dflt:0}),n5e=ju({width:a5e,editType:"calc"},iG("marker.line")),i5e=ju({line:n5e,editType:"calc"},iG("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:e5e,cornerradius:{valType:"any",editType:"calc"}});oG.exports={x:Gt.x,x0:Gt.x0,dx:Gt.dx,y:Gt.y,y0:Gt.y0,dy:Gt.dy,xperiod:Gt.xperiod,yperiod:Gt.yperiod,xperiod0:Gt.xperiod0,yperiod0:Gt.yperiod0,xperiodalignment:Gt.xperiodalignment,yperiodalignment:Gt.yperiodalignment,xhoverformat:tG("x"),yhoverformat:tG("y"),text:Gt.text,texttemplate:Kxe({editType:"plot"},{keys:nG.eventDataKeys}),texttemplatefallback:aG({editType:"plot"}),hovertext:Gt.hovertext,hovertemplate:$xe({},{keys:nG.eventDataKeys}),hovertemplatefallback:aG(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:ju({},Sw,{}),insidetextfont:ju({},Sw,{}),outsidetextfont:ju({},Sw,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:ju({},Gt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:i5e,offsetgroup:Gt.offsetgroup,alignmentgroup:Gt.alignmentgroup,selected:{marker:{opacity:Gt.selected.marker.opacity,color:Gt.selected.marker.color,editType:"style"},textfont:Gt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Gt.unselected.marker.opacity,color:Gt.unselected.marker.color,editType:"style"},textfont:Gt.unselected.textfont,editType:"style"},zorder:Gt.zorder}});var og=N((mIe,lG)=>{"use strict";lG.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var qw=N((gIe,fG)=>{"use strict";var o5e=Tr(),sG=Zn().hasColorscale,uG=ml(),l5e=Ce().coercePattern;fG.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=sG(r,"marker");l&&uG(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",o5e.defaultLine),sG(r,"marker.line")&&uG(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),l5e(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var Xu=N((bIe,yG)=>{"use strict";var cG=Rr(),Yc=Ce(),vG=Tr(),s5e=br(),u5e=$_(),f5e=kc(),c5e=qw(),v5e=y0(),hG=Zu(),lg=Yc.coerceFont;function h5e(e,r,t,a){function n(u,f){return Yc.coerce(e,r,hG,u,f)}var i=u5e(e,r,a,n);if(!i){r.visible=!1;return}f5e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");pG(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),c5e(e,r,n,t,a);var l=(r.marker.line||{}).color,s=s5e.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||vG.defaultLine,{axis:"y"}),s(e,r,l||vG.defaultLine,{axis:"x",inherit:"y"}),Yc.coerceSelectionMarkerOpacity(r,n)}function d5e(e,r){var t,a;function n(l,s){return Yc.coerce(a._input,a,hG,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&cG(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function pG(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",y=d||n==="outside";if(p||y){var m=lg(a,"textfont",t.font),x=Yc.extendFlat({},m),T=e.textfont&&e.textfont.color,_=!T;if(_&&delete x.color,lg(a,"insidetextfont",x),v){var b=Yc.extendFlat({},m);_&&delete b.color,lg(a,"pathbar.textfont",b)}y&&lg(a,"outsidetextfont",m),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}yG.exports={supplyDefaults:h5e,crossTraceDefaults:d5e,handleText:pG,validateCornerradius:dG}});var Lw=N((xIe,mG)=>{"use strict";var p5e=br(),y5e=zr(),m5e=Ce(),g5e=og(),b5e=Xu().validateCornerradius;mG.exports=function(e,r,t){function a(y,m){return m5e.coerce(e,r,g5e,y,m)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=y5e.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=b5e(p)}});var sg=N((_Ie,gG)=>{"use strict";var Wc=Ce();gG.exports=function(r,t){for(var a=0;a{"use strict";var bG=zr(),xG=qc(),_G=Zn().hasColorscale,wG=rc(),x5e=sg(),_5e=gm();TG.exports=function(r,t){var a=bG.getFromId(r,t.xaxis||"x"),n=bG.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=xG(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=xG(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p{"use strict";var w5e=Sr(),T5e=Ce();function A5e(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=w5e.select(this).select("text");T5e.setTransormAndDisplay(u,s)}})}}function M5e(e,r,t){if(t.uniformtext.mode){var a=MG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var S5e=Rr(),q5e=Cn(),SG=Ce().isArrayOrTypedArray;Ju.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Ju.coerceNumber=function(e,r,t){if(S5e(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Ju.coerceColor=function(e,r,t){return q5e(r).isValid()?r:t!==void 0?t:e.dflt};Ju.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Ju.getValue=function(e,r){var t;return SG(e)?r{"use strict";var z0=Sr(),L5e=Tr(),O0=Yr(),qG=Ce(),LG=br(),CG=I0().resizeText,Cw=Zu(),C5e=Cw.textfont,E5e=Cw.insidetextfont,D5e=Cw.outsidetextfont,Ya=ug();function R5e(e){var r=z0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");CG(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&z0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=z0.select(this),o=n[0].trace;EG(i,o,e)}),LG.getComponentMethod("errorbars","style")(r)}function EG(e,r,t){O0.pointStyle(e.selectAll("path"),r,t),DG(e,r,t)}function DG(e,r,t){e.selectAll("text").each(function(a){var n=z0.select(this),i=qG.ensureUniformFontSize(t,RG(n,a,r,t));O0.font(n,i)})}function P5e(e,r,t){var a=r[0].trace;a.selectedpoints?F5e(t,a,e):(EG(t,a,e),LG.getComponentMethod("errorbars","style")(t))}function F5e(e,r,t){O0.selectedPointStyle(e.selectAll("path"),r),N5e(e.selectAll("text"),r,t)}function N5e(e,r,t){e.each(function(a){var n=z0.select(this),i;if(a.selected){i=qG.ensureUniformFontSize(t,RG(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),O0.font(n,i)}else O0.selectedTextStyle(n,r)})}function RG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=IG(r,t);i=FG(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=NG(t,r.i,n));return i}function PG(e,r,t){return Ew(C5e,e.textfont,r,t)}function FG(e,r,t,a){var n=PG(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:L5e.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),Ew(E5e,e.insidetextfont,r,n)}function NG(e,r,t){var a=PG(e,r,t);return Ew(D5e,e.outsidetextfont,r,a)}function Ew(e,r,t,a){r=r||{};var n=Ya.getValue(r.family,t),i=Ya.getValue(r.size,t),o=Ya.getValue(r.color,t),l=Ya.getValue(r.weight,t),s=Ya.getValue(r.style,t),u=Ya.getValue(r.variant,t),f=Ya.getValue(r.textcase,t),c=Ya.getValue(r.lineposition,t),v=Ya.getValue(r.shadow,t);return{family:Ya.coerceString(e.family,n,a.family),size:Ya.coerceNumber(e.size,i,a.size),color:Ya.coerceColor(e.color,o,a.color),weight:Ya.coerceString(e.weight,l,a.weight),style:Ya.coerceString(e.style,s,a.style),variant:Ya.coerceString(e.variant,u,a.variant),textcase:Ya.coerceString(e.variant,f,a.textcase),lineposition:Ya.coerceString(e.variant,c,a.lineposition),shadow:Ya.coerceString(e.variant,v,a.shadow)}}function IG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}zG.exports={style:R5e,styleTextPoints:DG,styleOnSelect:P5e,getInsideTextFont:FG,getOutsideTextFont:NG,getBarColor:IG,resizeText:CG}});var Pw=N((kIe,WG)=>{"use strict";var fg=Sr(),cg=Rr(),Pa=Ce(),I5e=Aa(),z5e=Tr(),As=Yr(),O5e=br(),vg=zr().tickText,OG=I0(),B5e=OG.recordMinTextSize,H5e=OG.clearMinTextSize,Dw=jc(),Zc=ug(),U5e=g0(),BG=Zu(),G5e=BG.text,V5e=BG.textposition,Y5e=Eo().appendArrayPointValue,hn=U5e.TEXTPAD;function W5e(e){return e.id}function j5e(e){if(e.ids)return W5e}function Rw(e){return(e>0)-(e<0)}function Xo(e,r){return e0}function X5e(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},H5e("bar",s));var f=Pa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=fg.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",m=d.type==="funnel",x=d.type==="histogram",T=d.type==="bar",_=T||m,b=0;y&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var w=d.orientation==="h",k=UG(n),M=Pa.ensureSingle(v,"g","points"),S=j5e(d),E=M.selectAll("g.point").data(Pa.identity,S);E.enter().append("g").classed("point",!0),E.exit().remove(),E.each(function(P,R){var I=fg.select(this),z=Z5e(P,o,l,w),B=z[0][0],G=z[0][1],Y=z[1][0],V=z[1][1],H=(w?G-B:V-Y)===0;H&&_&&Zc.getLineWidth(d,P)&&(H=!1),H||(H=!cg(B)||!cg(G)||!cg(Y)||!cg(V)),P.isBlank=H,H&&(w?G=B:V=Y),b&&!H&&(w?(B-=Xo(B,G)*b,G+=Xo(B,G)*b):(Y-=Xo(Y,V)*b,V+=Xo(Y,V)*b));var X,W;if(d.type==="waterfall"){if(!H){var ee=d[P.dir].marker;X=ee.line.width,W=ee.color}}else X=Zc.getLineWidth(d,P),W=P.mc||d.marker.color;function oe(se){var Ae=fg.round(X/2%1,2);return n.gap===0&&n.groupgap===0?fg.round(Math.round(se)-Ae,2):se}function le(se,Ae,Je){return Je&&se===Ae?se:Math.abs(se-Ae)>=2?oe(se):se>Ae?Math.ceil(se):Math.floor(se)}var ue=z5e.opacity(W),K=ue<1||X>.01?oe:le;e._context.staticPlot||(B=K(B,G,w),G=K(G,B,w),Y=K(Y,V,!w),V=K(V,Y,!w));var _e=w?o.c2p:l.c2p,fe;P.s0>0?fe=P._sMax:P.s0<0?fe=P._sMin:fe=P.s1>0?P._sMax:P._sMin;function ve(se,Ae){if(!se)return 0;var Je=Math.abs(w?V-Y:G-B),dr=Math.abs(w?G-B:V-Y),Ne=K(Math.abs(_e(fe,!0)-_e(0,!0))),Te=P.hasB?Math.min(Je/2,dr/2):Math.min(Je/2,Ne),qe;if(Ae==="%"){var Be=Math.min(50,se);qe=Je*(Be/100)}else qe=se;return K(Math.max(Math.min(qe,Te),0))}var ye=T||x?ve(p.cornerradiusvalue,p.cornerradiusform):0,ce,j,Q="M"+B+","+Y+"V"+V+"H"+G+"V"+Y+"Z",Z=0;if(ye&&P.s){var ie=Rw(P.s0)===0||Rw(P.s)===Rw(P.s0)?P.s1:P.s0;if(Z=K(P.hasB?0:Math.abs(_e(fe,!0)-_e(ie,!0))),Z0?Math.sqrt(Z*(2*ye-Z)):0,He=he>0?Math.max:Math.min;ce="M"+B+","+Y+"V"+(V-De*me)+"H"+He(G-(ye-Z)*he,B)+"A "+ye+","+ye+" 0 0 "+Re+" "+G+","+(V-ye*me-Le)+"V"+(Y+ye*me+Le)+"A "+ye+","+ye+" 0 0 "+Re+" "+He(G-(ye-Z)*he,B)+","+(Y+De*me)+"Z"}else if(P.hasB)ce="M"+(B+ye*he)+","+Y+"A "+ye+","+ye+" 0 0 "+Re+" "+B+","+(Y+ye*me)+"V"+(V-ye*me)+"A "+ye+","+ye+" 0 0 "+Re+" "+(B+ye*he)+","+V+"H"+(G-ye*he)+"A "+ye+","+ye+" 0 0 "+Re+" "+G+","+(V-ye*me)+"V"+(Y+ye*me)+"A "+ye+","+ye+" 0 0 "+Re+" "+(G-ye*he)+","+Y+"Z";else{j=Math.abs(V-Y)+Z;var Oe=j0?Math.sqrt(Z*(2*ye-Z)):0,Ee=me>0?Math.max:Math.min;ce="M"+(B+Oe*he)+","+Y+"V"+Ee(V-(ye-Z)*me,Y)+"A "+ye+","+ye+" 0 0 "+Re+" "+(B+ye*he-Ue)+","+V+"H"+(G-ye*he+Ue)+"A "+ye+","+ye+" 0 0 "+Re+" "+(G-Oe*he)+","+Ee(V-(ye-Z)*me,Y)+"V"+Y+"Z"}}else ce=Q}else ce=Q;var ze=HG(Pa.ensureSingle(I,"path"),s,n,i);if(ze.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((G-B)*(V-Y))||H&&e._context.staticPlot?"M0,0Z":ce).call(As.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Ge=As.makePointStyleFns(d);As.singlePointStyle(P,ze,d,Ge,e)}J5e(e,r,I,c,R,B,G,Y,V,ye,Z,n,i),r.layerClipId&&As.hideOutsideRangePoint(P,I.select("text"),o,l,d.xcalendar,d.ycalendar)});var D=d.cliponaxis===!1;As.setClipUrl(v,D?null:r.layerClipId,e)});O5e.getComponentMethod("errorbars","plot")(e,f,r,n)}function J5e(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function x(j,Q,Z){var ie=Pa.ensureSingle(j,"text").text(Q).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(As.font,Z).call(I5e.convertToTspans,e);return ie}var T=a[0].trace,_=T.orientation==="h",b=Q5e(y,a,n,d,p);m=e_e(T,n);var w=c.mode==="stack"||c.mode==="relative",k=a[n],M=!w||k._outmost,S=k.hasB,E=u&&u-f>hn;if(!b||m==="none"||(k.isBlank||i===o||l===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var D=y.font,P=Dw.getBarColor(a[n],T),R=Dw.getInsideTextFont(T,n,D,P),I=Dw.getOutsideTextFont(T,n,D),z=T.insidetextanchor||"end",B=t.datum();_?d.type==="log"&&B.s0<=0&&(d.range[0]0&&oe>0,K;E?S?K=$u(V-2*u,H,ee,oe,_)||$u(V,H-2*u,ee,oe,_):_?K=$u(V-(u-f),H,ee,oe,_)||$u(V,H-2*(u-f),ee,oe,_):K=$u(V,H-(u-f),ee,oe,_)||$u(V-2*(u-f),H,ee,oe,_):K=$u(V,H,ee,oe,_),ue&&K?m="inside":(m="outside",X.remove(),X=null)}else m="inside";if(!X){le=Pa.ensureUniformFontSize(e,m==="outside"?I:R),X=x(t,b,le);var _e=X.attr("transform");if(X.attr("transform",""),W=As.bBox(X.node()),ee=W.width,oe=W.height,X.attr("transform",_e),ee<=0||oe<=0){X.remove();return}}var fe=T.textangle,ve,ye;m==="outside"?(ye=T.constraintext==="both"||T.constraintext==="outside",ve=K5e(i,o,l,s,W,{isHorizontal:_,constrained:ye,angle:fe})):(ye=T.constraintext==="both"||T.constraintext==="inside",ve=YG(i,o,l,s,W,{isHorizontal:_,constrained:ye,angle:fe,anchor:z,hasB:S,r:u,overhead:f})),ve.fontSize=le.size,B5e(T.type==="histogram"?"bar":T.type,ve,y),k.transform=ve;var ce=HG(X,y,c,v);Pa.setTransormAndDisplay(ce,ve)}function $u(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function GG(e){return e==="auto"?0:e}function VG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function YG(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,y=i.hasB,m=i.r,x=i.overhead,T=n.width,_=n.height,b=Math.abs(r-e),w=Math.abs(a-t),k=b>2*hn&&w>2*hn?hn:0;b-=2*k,w-=2*k;var M=GG(s);s==="auto"&&!(T<=b&&_<=w)&&(T>b||_>w)&&(!(T>w||_>b)||T<_!=bhn){var P=$5e(e,r,t,a,S,m,x,o,y);E=P.scale,D=P.pad}else E=1,l&&(E=Math.min(1,b/S.x,w/S.y)),D=0;var R=n.left*p+n.right*d,I=(n.top+n.bottom)/2,z=(e+hn)*p+(r-hn)*d,B=(t+a)/2,G=0,Y=0;if(c||f){var V=(o?S.x:S.y)/2;m&&(f||y)&&(k+=D);var H=o?Xo(e,r):Xo(t,a);o?c?(z=e+H*k,G=-H*V):(z=r-H*k,G=H*V):c?(B=t+H*k,Y=-H*V):(B=a-H*k,Y=H*V)}return{textX:R,textY:I,targetX:z,targetY:B,anchorX:G,anchorY:Y,scale:E,rotate:M}}function $5e(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*hn),f=Math.max(0,Math.abs(a-t)-2*hn),c=i-hn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,y,m,x,T,_;return n.y/n.x>=f/(u-d)?T=f/n.y:n.y/n.x<=(f-p)/u?T=u/n.x:!s&&l?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,T=(-m+Math.sqrt(m*m-4*y*x))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,T=(-m+Math.sqrt(m*m-4*y*x))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,T=(-m+Math.sqrt(m*m-4*y*x))/(2*y)),T=Math.min(1,T),l?_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*T)/2)*(c-(f-n.y*T)/2)))-o):_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*T)/2)*(c-(u-n.x*T)/2)))-o),{scale:T,pad:_}}function K5e(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*hn?hn:0:d=c>2*hn?hn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var y=GG(s),m=VG(n,y),x=(o?m.x:m.y)/2,T=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+r)/2,w=(t+a)/2,k=0,M=0,S=o?Xo(r,e):Xo(t,a);return o?(b=r-S*d,k=S*x):(w=a+S*d,M=-S*x),{textX:T,textY:_,targetX:b,targetY:w,anchorX:k,anchorY:M,scale:p,rotate:y}}function Q5e(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=r_e(e,r,t,a,n):i.textinfo?l=t_e(r,t,a,n):l=Zc.getValue(i.text,t),Zc.coerceString(G5e,l)}function e_e(e,r){var t=Zc.getValue(e.textposition,r);return Zc.coerceEnumerated(V5e,t)}function r_e(e,r,t,a,n){var i=r[0].trace,o=Pa.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function y(k){return vg(v,v.c2l(k),!0).text}function m(k){return vg(p,p.c2l(k),!0).text}var x=r[t],T={};T.label=x.p,T.labelLabel=T[c+"Label"]=y(x.p);var _=Pa.castOption(i,x.i,"text");(_===0||_)&&(T.text=_),T.value=x.s,T.valueLabel=T[d+"Label"]=m(x.s);var b={};Y5e(b,i,x.i),(l||b.x===void 0)&&(b.x=f?T.value:T.label),(l||b.y===void 0)&&(b.y=f?T.label:T.value),(l||b.xLabel===void 0)&&(b.xLabel=f?T.valueLabel:T.labelLabel),(l||b.yLabel===void 0)&&(b.yLabel=f?T.labelLabel:T.valueLabel),s&&(T.delta=+x.rawS||x.s,T.deltaLabel=m(T.delta),T.final=x.v,T.finalLabel=m(T.final),T.initial=T.final-T.delta,T.initialLabel=m(T.initial)),u&&(T.value=x.s,T.valueLabel=m(T.value),T.percentInitial=x.begR,T.percentInitialLabel=Pa.formatPercent(x.begR),T.percentPrevious=x.difR,T.percentPreviousLabel=Pa.formatPercent(x.difR),T.percentTotal=x.sumR,T.percenTotalLabel=Pa.formatPercent(x.sumR));var w=Pa.castOption(i,x.i,"customdata");return w&&(T.customdata=w),Pa.texttemplateString({data:[b,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:o})}function t_e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(w){var k=i?a:t;return vg(k,w,!0).text}function u(w){var k=i?t:a;return vg(k,+w,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,y=function(w){return v.indexOf(w)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(p=Pa.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var m=+c.rawS||c.s,x=c.v,T=x-m;y("initial")&&d.push(u(T)),y("delta")&&d.push(u(m)),y("final")&&d.push(u(x))}if(l){y("value")&&d.push(u(c.s));var _=0;y("percent initial")&&_++,y("percent previous")&&_++,y("percent total")&&_++;var b=_>1;y("percent initial")&&(p=Pa.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Pa.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Pa.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}WG.exports={plot:X5e,toMoveInsideBar:YG}});var Nw=N((SIe,JG)=>{"use strict";var B0=xn(),a_e=br(),jG=Tr(),n_e=Ce().fillText,i_e=ug().getLineWidth,Fw=zr().hoverLabelText,o_e=Ft().BADNUM;function l_e(e,r,t,a,n){var i=ZG(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=XG(l,s),a_e.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function ZG(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,y,m,x,T;o.orientation==="h"?(v=t,d=r,p="y",y="x",m=B,x=R):(v=r,d=t,p="x",y="y",x=B,m=R);var _=o[p+"period"],b=s||_;function w(K){return M(K,-1)}function k(K){return M(K,1)}function M(K,_e){var fe=K.w;return K[p]+_e*fe/2}function S(K){return K[p+"End"]-K[p+"Start"]}var E=s?w:_?function(K){return K.p-S(K)/2}:function(K){return Math.min(w(K),K.p-l.bardelta/2)},D=s?k:_?function(K){return K.p+S(K)/2}:function(K){return Math.max(k(K),K.p+l.bardelta/2)};function P(K,_e,fe){return n.finiteRange&&(fe=0),B0.inbox(K-v,_e-v,fe+Math.min(1,Math.abs(_e-K)/T)-1)}function R(K){return P(E(K),D(K),f)}function I(K){return P(w(K),k(K),c)}function z(K){var _e=K[y];if(u){var fe=Math.abs(K.rawS)||0;d>0?_e+=fe:d<0&&(_e-=fe)}return _e}function B(K){var _e=d,fe=K.b,ve=z(K);return B0.inbox(fe-_e,ve-_e,f+(ve-_e)/(ve-fe)-1)}function G(K){var _e=d,fe=K.b,ve=z(K);return B0.inbox(fe-_e,ve-_e,c+(ve-_e)/(ve-fe)-1)}var Y=e[p+"a"],V=e[y+"a"];T=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function H(K){return(m(K)+x(K))/2}var X=B0.getDistanceFunction(a,m,x,H);if(B0.getClosest(i,X,e),e.index!==!1&&i[e.index].p!==o_e){b||(E=function(K){return Math.min(w(K),K.p-l.bargroupwidth/2)},D=function(K){return Math.max(k(K),K.p+l.bargroupwidth/2)});var W=e.index,ee=i[W],oe=o.base?ee.b+ee.s:ee.s;e[y+"0"]=e[y+"1"]=V.c2p(ee[y],!0),e[y+"LabelVal"]=oe;var le=l.extents[l.extents.round(ee.p)];e[p+"0"]=Y.c2p(s?E(ee):le[0],!0),e[p+"1"]=Y.c2p(s?D(ee):le[1],!0);var ue=ee.orig_p!==void 0;return e[p+"LabelVal"]=ue?ee.orig_p:ee.p,e.labelLabel=Fw(Y,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=Fw(V,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=Fw(V,ee.b,o[y+"hoverformat"]),e.spikeDistance=(G(ee)+I(ee))/2,e[p+"Spike"]=Y.c2p(ee.p,!0),n_e(ee,o,e),e.hovertemplate=o.hovertemplate,e}}function XG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=i_e(e,r);if(jG.opacity(t))return t;if(jG.opacity(a)&&n)return a}JG.exports={hoverPoints:l_e,hoverOnBars:ZG,getTraceColor:XG}});var KG=N((qIe,$G)=>{"use strict";$G.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var Iw=N((LIe,QG)=>{"use strict";QG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";eV.exports={attributes:Zu(),layoutAttributes:og(),supplyDefaults:Xu().supplyDefaults,crossTraceDefaults:Xu().crossTraceDefaults,supplyLayoutDefaults:Lw(),calc:AG(),crossTraceCalc:wm().crossTraceCalc,colorbar:w0(),arraysToCalcdata:sg(),plot:Pw().plot,style:jc().style,styleOnSelect:jc().styleOnSelect,hoverPoints:Nw().hoverPoints,eventData:KG(),selectPoints:Iw(),moduleType:"trace",name:"bar",basePlotModule:Ei(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var aV=N((EIe,tV)=>{"use strict";tV.exports=rV()});var hg=N((DIe,lV)=>{"use strict";var u_e=Gy(),Pi=Ai(),nV=Zu(),f_e=fi(),iV=no().axisHoverFormat,{hovertemplateAttrs:c_e,templatefallbackAttrs:v_e}=Wn(),Ll=bt().extendFlat,Xc=Pi.marker,oV=Xc.line;lV.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:Pi.xperiod,yperiod:Pi.yperiod,xperiod0:Pi.xperiod0,yperiod0:Pi.yperiod0,xperiodalignment:Pi.xperiodalignment,yperiodalignment:Pi.yperiodalignment,xhoverformat:iV("x"),yhoverformat:iV("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Ll({},Xc.symbol,{arrayOk:!1,editType:"plot"}),opacity:Ll({},Xc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Ll({},Xc.angle,{arrayOk:!1,editType:"calc"}),size:Ll({},Xc.size,{arrayOk:!1,editType:"calc"}),color:Ll({},Xc.color,{arrayOk:!1,editType:"style"}),line:{color:Ll({},oV.color,{arrayOk:!1,dflt:f_e.defaultLine,editType:"style"}),width:Ll({},oV.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:u_e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:nV.offsetgroup,alignmentgroup:nV.alignmentgroup,selected:{marker:Pi.selected.marker,editType:"style"},unselected:{marker:Pi.unselected.marker,editType:"style"},text:Ll({},Pi.text,{}),hovertext:Ll({},Pi.hovertext,{}),hovertemplate:c_e({}),hovertemplatefallback:v_e(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Pi.zorder}});var dg=N((RIe,sV)=>{"use strict";sV.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var U0=N((PIe,vV)=>{"use strict";var Fi=Ce(),h_e=br(),d_e=Tr(),p_e=kc(),y_e=y0(),uV=N1(),H0=hg();function m_e(e,r,t,a){function n(p,y){return Fi.coerce(e,r,H0,p,y)}if(fV(e,r,n,a),r.visible!==!1){p_e(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",d_e.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else Fi.validate(e.notchwidth,H0.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),cV(e,r,n,{prefix:"box"}),n("zorder")}}function fV(e,r,t,a){function n(D){var P=0;return D&&D.length&&(P+=1,Fi.isArrayOrTypedArray(D[0])&&D[0].length&&(P+=1)),P}function i(D){return Fi.validate(e[D],H0[D])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(Fi.minRowLength(u),Fi.minRowLength(f),Fi.minRowLength(c))}else r._hasPreCompStats=!1;var v=n(o),d=n(l),p=v&&Fi.minRowLength(o),y=d&&Fi.minRowLength(l),m=a.calendar,x={autotypenumbers:a.autotypenumbers},T,_;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var b=i("x0")||i("dx"),w=i("y0")||i("dy");w&&!b?T="h":T="v",_=s;break;case"10":T="v",_=Math.min(s,y);break;case"20":T="h",_=Math.min(s,l.length);break;case"01":T="h",_=Math.min(s,p);break;case"02":T="v",_=Math.min(s,o.length);break;case"12":T="v",_=Math.min(s,y,o.length);break;case"21":T="h",_=Math.min(s,l.length,p);break;case"11":_=0;break;case"22":var k=!1,M;for(M=0;M0?(T="v",d>0?_=Math.min(y,p):_=Math.min(p)):d>0?(T="h",_=Math.min(y)):_=0;if(!_){r.visible=!1;return}r._length=_;var S=t("orientation",T);r._hasPreCompStats?S==="v"&&d===0?(t("x0",0),t("dx",1)):S==="h"&&v===0&&(t("y0",0),t("dy",1)):S==="v"&&d===0?t("x0"):S==="h"&&v===0&&t("y0");var E=h_e.getComponentMethod("calendars","handleTraceDefaults");E(e,r,["x","y"],a)}function cV(e,r,t,a){var n=a.prefix,i=Fi.coerce2(e,r,H0,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(t("hovertemplate"),t("hovertemplatefallback")),Fi.coerceSelectionMarkerOpacity(r,t)}function g_e(e,r){var t,a;function n(s){return Fi.coerce(a._input,a,H0,s)}for(var i=0;i{"use strict";var b_e=br(),x_e=Ce(),__e=dg();function hV(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var Bw=Rr(),pg=zr(),T_e=qc(),la=Ce(),ni=Ft().BADNUM,Cl=la._;TV.exports=function(r,t){var a=r._fullLayout,n=pg.getFromId(r,t.xaxis||"x"),i=pg.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var y=A_e(t,d,v,a[l]),m=y[0],x=y[1],T=la.distinctVals(m,v),_=T.vals,b=T.minDiff/2,w,k,M,S,E,D,P=(t.boxpoints||t.points)==="all"?la.identity:function(Re){return Re.vw.uf};if(t._hasPreCompStats){var R=t[c],I=function(Re){return f.d2c((t[Re]||[])[s])},z=1/0,B=-1/0;for(s=0;s=w.q1&&w.q3>=w.med){var Y=I("lowerfence");w.lf=Y!==ni&&Y<=w.q1?Y:gV(w,M,S);var V=I("upperfence");w.uf=V!==ni&&V>=w.q3?V:bV(w,M,S);var H=I("mean");w.mean=H!==ni?H:S?la.mean(M,S):(w.q1+w.q3)/2;var X=I("sd");w.sd=H!==ni&&X>=0?X:S?la.stdev(M,S,w.mean):w.q3-w.q1,w.lo=xV(w),w.uo=_V(w);var W=I("notchspan");W=W!==ni&&W>0?W:wV(w,S),w.ln=w.med-W,w.un=w.med+W;var ee=w.lf,oe=w.uf;t.boxpoints&&M.length&&(ee=Math.min(ee,M[0]),oe=Math.max(oe,M[S-1])),t.notched&&(ee=Math.min(ee,w.ln),oe=Math.max(oe,w.un)),w.min=ee,w.max=oe}else{la.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+w.q1,"median = "+w.med,"q3 = "+w.q3].join(` -`));var le;w.med!==ni?le=w.med:w.q1!==ni?w.q3!==ni?le=(w.q1+w.q3)/2:le=w.q1:w.q3!==ni?le=w.q3:le=0,w.med=le,w.q1=w.q3=le,w.lf=w.uf=le,w.mean=w.sd=le,w.ln=w.un=le,w.min=w.max=le}z=Math.min(z,w.min),B=Math.max(B,w.max),w.pts2=k.filter(P),o.push(w)}}t._extremes[f._id]=pg.findExtremes(f,[z,B],{padded:!0})}else{var ue=f.makeCalcdata(t,c),K=M_e(_,b),_e=_.length,fe=k_e(_e);for(s=0;s=0&&ve<_e&&(E={v:D,i:s},pV(E,t,s),fe[ve].push(E))}var ye=1/0,ce=-1/0,j=t.quartilemethod,Q=j==="exclusive",Z=j==="inclusive";for(s=0;s<_e;s++)if(fe[s].length>0){if(w={},w.pos=w[d]=_[s],k=w.pts=fe[s].sort(yV),M=w[c]=k.map(mV),S=M.length,w.min=M[0],w.max=M[S-1],w.mean=la.mean(M,S),w.sd=la.stdev(M,S,w.mean)*t.sdmultiple,w.med=la.interp(M,.5),S%2&&(Q||Z)){var ie,he;Q?(ie=M.slice(0,S/2),he=M.slice(S/2+1)):Z&&(ie=M.slice(0,S/2+1),he=M.slice(S/2)),w.q1=la.interp(ie,.5),w.q3=la.interp(he,.5)}else w.q1=la.interp(M,.25),w.q3=la.interp(M,.75);w.lf=gV(w,M,S),w.uf=bV(w,M,S),w.lo=xV(w),w.uo=_V(w);var me=wV(w,S);w.ln=w.med-me,w.un=w.med+me,ye=Math.min(ye,w.ln),ce=Math.max(ce,w.un),w.pts2=k.filter(P),o.push(w)}t.notched&&la.isTypedArray(ue)&&(ue=Array.from(ue)),t._extremes[f._id]=pg.findExtremes(f,t.notched?ue.concat([ye,ce]):ue,{padded:!0})}return S_e(o,t),o.length>0?(o[0].t={num:a[l],dPos:b,posLetter:d,valLetter:c,labels:{med:Cl(r,"median:"),min:Cl(r,"min:"),q1:Cl(r,"q1:"),q3:Cl(r,"q3:"),max:Cl(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?Cl(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):Cl(r,"mean:"),lf:Cl(r,"lower fence:"),uf:Cl(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function A_e(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=T_e(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||Bw(e.name)&&["linear","log"].indexOf(t.type)!==-1||la.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d{"use strict";var AV=zr(),q_e=Ce(),L_e=Fu().getAxisGroup,MV=["v","h"];function C_e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,T=1-i[e+"gap"],_=1-i[e+"groupgap"];for(s=0;s0;if(M==="positive"?(V=S*(k?1:.5),W=X,H=W=D):M==="negative"?(V=W=D,H=S*(k?1:.5),ee=X):(V=H=S,W=ee=X),fe){var ve=b.pointpos,ye=b.jitter,ce=b.marker.size/2,j=0;ve+ye>=0&&(j=X*(ve+ye),j>V?(_e=!0,ue=ce,oe=j):j>W&&(ue=ce,oe=V)),j<=V&&(oe=V);var Q=0;ve-ye<=0&&(Q=-X*(ve-ye),Q>H?(_e=!0,K=ce,le=Q):Q>ee&&(K=ce,le=H)),Q<=H&&(le=H)}else oe=V,le=H;var Z=new Array(f.length);for(u=0;u{"use strict";var Jc=Sr(),Ku=Ce(),E_e=Yr(),qV=5,D_e=.01;function R_e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Ku.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Jc.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),LV(s,{pos:v,val:d},c,f,n),CV(s,{x:i,y:o},c,f),EV(s,{pos:v,val:d},c,f)})}function LV(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,y=p?1-2*t.notchwidth:1,m,x;Array.isArray(a.bdPos)?(m=a.bdPos[0],x=a.bdPos[1]):(m=a.bdPos,x=a.bdPos);var T=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Ku.identity:[]);T.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),T.exit().remove(),T.each(function(_){if(_.empty)return Jc.select(this).attr("d","M0,0Z");var b=l.c2l(_.pos+u,!0),w=l.l2p(b-m)+c,k=l.l2p(b+x)+c,M=s?(w+k)/2:l.l2p(b)+c,S=t.whiskerwidth,E=s?w*S+(1-S)*M:l.l2p(b-f)+c,D=s?k*S+(1-S)*M:l.l2p(b+f)+c,P=l.l2p(b-m*y)+c,R=l.l2p(b+x*y)+c,I=t.sizemode==="sd",z=o.c2p(I?_.mean-_.sd:_.q1,!0),B=I?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),G=Ku.constrain(I?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(z,B)+1,Math.max(z,B)-1),Y=_.lf===void 0||t.boxpoints===!1||I,V=o.c2p(Y?_.min:_.lf,!0),H=o.c2p(Y?_.max:_.uf,!0),X=o.c2p(_.ln,!0),W=o.c2p(_.un,!0);i?Jc.select(this).attr("d","M"+G+","+P+"V"+R+"M"+z+","+w+"V"+k+(p?"H"+X+"L"+G+","+R+"L"+W+","+k:"")+"H"+B+"V"+w+(p?"H"+W+"L"+G+","+P+"L"+X+","+w:"")+"Z"+(d?"M"+z+","+M+"H"+V+"M"+B+","+M+"H"+H+(v===0?"":"M"+V+","+E+"V"+D+"M"+H+","+E+"V"+D):"")):Jc.select(this).attr("d","M"+P+","+G+"H"+R+"M"+w+","+z+"H"+k+(p?"V"+X+"L"+R+","+G+"L"+k+","+W:"")+"V"+B+"H"+w+(p?"V"+W+"L"+P+","+G+"L"+w+","+X:"")+"Z"+(d?"M"+M+","+z+"V"+V+"M"+M+","+B+"V"+H+(v===0?"":"M"+E+","+V+"H"+D+"M"+E+","+H+"H"+D):""))})}function CV(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Ku.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var d,p=v.pts2,y=Math.max((v.max-v.min)/10,v.q3-v.q1),m=y*1e-9,x=y*D_e,T=[],_=0,b;if(t.jitter){if(y===0)for(_=1,T=new Array(p.length),d=0;dv.lo&&(D.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(E_e.translatePoints,n,i)}function EV(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Ku.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,x=o?(y+m)/2:i.l2p(p)+s,T=n.c2p(d.mean,!0),_=n.c2p(d.mean-d.sd,!0),b=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Jc.select(this).attr("d","M"+T+","+y+"V"+m+(u==="sd"?"m0,0L"+_+","+x+"L"+T+","+y+"L"+b+","+x+"Z":"")):Jc.select(this).attr("d","M"+y+","+T+"H"+m+(u==="sd"?"m0,0L"+x+","+_+"L"+y+","+T+"L"+x+","+b+"Z":""))})}DV.exports={plot:R_e,plotBoxAndWhiskers:LV,plotPoints:CV,plotBoxMean:EV}});var jw=N((OIe,RV)=>{"use strict";var Vw=Sr(),Yw=Tr(),Ww=Yr();function P_e(e,r,t){var a=t||Vw.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Vw.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(Yw.stroke,d).call(Yw.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=Vw.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(Yw.stroke,o.line.color);var f=i.selectAll("path.point");Ww.pointStyle(f,o,e)}})}function F_e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?Ww.selectedPointStyle(n,a):Ww.pointStyle(n,a,e)}RV.exports={style:P_e,styleOnSelect:F_e}});var Xw=N((BIe,IV)=>{"use strict";var N_e=zr(),Zw=Ce(),Ms=xn(),PV=Tr(),I_e=Zw.fillText;function z_e(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(FV(e,r,t,a))),o.indexOf("points")!==-1&&(s=NV(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function FV(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,y,m,x,T,_,b,w=s.bdPos,k,M,S=s.wHover,E=function(ce){return v.c2l(ce.pos)+s.bPos-v.c2l(y)};u&&l.side!=="both"?(l.side==="positive"&&(T=function(ce){var j=E(ce);return Ms.inbox(j,j+S,_)},k=w,M=0),l.side==="negative"&&(T=function(ce){var j=E(ce);return Ms.inbox(j-S,j,_)},k=0,M=w)):(T=function(ce){var j=E(ce);return Ms.inbox(j-S,j+S,_)},k=M=w);var D;u?D=function(ce){return Ms.inbox(ce.span[0]-p,ce.span[1]-p,_)}:D=function(ce){return Ms.inbox(ce.min-p,ce.max-p,_)},l.orientation==="h"?(p=r,y=t,m=D,x=T,f="y",v=o,c="x",d=i):(p=t,y=r,m=T,x=D,f="x",v=i,c="y",d=o);var P=Math.min(1,w/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));_=e.maxHoverDistance-P,b=e.maxSpikeDistance-P;function R(ce){return(m(ce)+x(ce))/2}var I=Ms.getDistanceFunction(a,m,x,R);if(Ms.getClosest(n,I,e),e.index===!1)return[];var z=n[e.index],B=l.line.color,G=(l.marker||{}).color;PV.opacity(B)&&l.line.width?e.color=B:PV.opacity(G)&&l.boxpoints?e.color=G:e.color=l.fillcolor,e[f+"0"]=v.c2p(z.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(z.pos+s.bPos+k,!0),e[f+"LabelVal"]=z.orig_p!==void 0?z.orig_p:z.pos;var Y=f+"Spike";e.spikeDistance=R(z)*b/_,e[Y]=v.c2p(z.pos,!0);var V=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,H=l.boxpoints||l.points,X=H&&V?["max","uf","q3","med","mean","q1","lf","min"]:H&&!V?["max","uf","q3","med","q1","lf","min"]:!H&&V?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],W=d.range[1]{"use strict";zV.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var Jw=N((UIe,BV)=>{"use strict";BV.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l{"use strict";HV.exports={attributes:hg(),layoutAttributes:dg(),supplyDefaults:U0().supplyDefaults,crossTraceDefaults:U0().crossTraceDefaults,supplyLayoutDefaults:zw().supplyLayoutDefaults,calc:Hw(),crossTraceCalc:Uw().crossTraceCalc,plot:Gw().plot,style:jw().style,styleOnSelect:jw().styleOnSelect,hoverPoints:Xw().hoverPoints,eventData:OV(),selectPoints:Jw(),moduleType:"trace",name:"box",basePlotModule:Ei(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var VV=N((VIe,GV)=>{"use strict";GV.exports=UV()});var G0=N((YIe,WV)=>{"use strict";var O_e=Lo(),{extendFlat:Hn}=bt(),B_e=gn(),{axisHoverFormat:$w}=no(),H_e=ga(),{hovertemplateAttrs:U_e,templatefallbackAttrs:YV,texttemplateAttrs:G_e}=Wn(),ii=Ai();WV.exports=Hn({z:{valType:"data_array",editType:"calc"},x:Hn({},ii.x,{impliedEdits:{xtype:"array"}}),x0:Hn({},ii.x0,{impliedEdits:{xtype:"scaled"}}),dx:Hn({},ii.dx,{impliedEdits:{xtype:"scaled"}}),y:Hn({},ii.y,{impliedEdits:{ytype:"array"}}),y0:Hn({},ii.y0,{impliedEdits:{ytype:"scaled"}}),dy:Hn({},ii.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Hn({},ii.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Hn({},ii.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Hn({},ii.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Hn({},ii.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Hn({},ii.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Hn({},ii.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:$w("x"),yhoverformat:$w("y"),zhoverformat:$w("z",1),hovertemplate:U_e(),hovertemplatefallback:YV(),texttemplate:G_e({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:YV({editType:"plot"}),textfont:H_e({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Hn({},B_e.showlegend,{dflt:!1}),zorder:ii.zorder},O_e("",{cLetter:"z",autoColorDflt:!1}))});var Kw=N((WIe,ZV)=>{"use strict";var V_e=Rr(),yg=Ce(),Y_e=br();ZV.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(yg.isArray1D(l)){s=a(i),u=a(o);var f=yg.minRowLength(s),c=yg.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=jV(i,a),u=jV(o,a),!W_e(l))return 0;a("transpose"),t._length=null}var v=Y_e.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function jV(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function W_e(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var XV=Ce();JV.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=XV.extendFlat({},t.font,{color:"auto",size:"auto"});XV.coerceFont(r,"textfont",a)}});var Qw=N((ZIe,$V)=>{"use strict";$V.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var eY=N((XIe,QV)=>{"use strict";var KV=Ce(),j_e=Kw(),Z_e=V0(),X_e=kc(),J_e=Qw(),$_e=ml(),K_e=G0();QV.exports=function(r,t,a,n){function i(l,s){return KV.coerce(r,t,K_e,l,s)}var o=j_e(r,t,i,n);if(!o){t.visible=!1;return}X_e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),Z_e(i,n),J_e(r,t,i,n),i("hoverongaps"),i("connectgaps",KV.isArray1D(t.z)&&t.zsmooth!==!1),$_e(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var e6=N((JIe,rY)=>{"use strict";var $c=Rr();rY.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return $c(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return $c(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if($c(n))if(n=Number(n),$c(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if($c(n))if(n=Number(n),$c(t[e])){if(t[e]{"use strict";tY.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";aY.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Kc=Ft(),Qu=Kc.ONEAVGYEAR,nY=Kc.ONEAVGMONTH,gg=Kc.ONEDAY,iY=Kc.ONEHOUR,oY=Kc.ONEMIN,lY=Kc.ONESEC,sY=zr().tickIncrement;cY.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(mg(u+l,u+s,n,i),mg(f+l,f+s,n,i)),v=Math.min(mg(u+o,u+l,n,i),mg(f+o,f+l,n,i)),d,p;if(c>v&&vgg){var y=d===Qu?1:6,m=d===Qu?"M12":"M1";return function(x,T){var _=n.c2d(x,Qu,i),b=_.indexOf("-",y);b>0&&(_=_.slice(0,b));var w=n.d2c(_,0,i);if(wlY?e>gg?e>Qu*1.1?Qu:e>nY*1.1?nY:gg:e>iY?iY:e>oY?oY:lY:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Q_e(e,r,t,a,n,i){if(a&&e>gg){var o=fY(r,n,i),l=fY(t,n,i),s=e===Qu?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function fY(e,r,t){var a=r.c2d(e,Qu,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var o6=N((eze,yY)=>{"use strict";var n6=Rr(),dn=Ce(),vY=br(),Ni=zr(),{hasColorscale:hY}=Zn(),dY=rc(),e4e=sg(),pY=e6(),r4e=r6(),t4e=t6(),a4e=a6();function n4e(e,r){var t=[],a=[],n=r.orientation==="h",i=Ni.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=i6(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",y=[],m=p?y:v,x=[],T=[],_=[],b=0,w=r.histnorm,k=r.histfunc,M=w.indexOf("density")!==-1,S,E,D;u.enabled&&M&&(w=w.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,I=pY.count,z=r4e[w],B=!1,G=function(j){return i.r2c(j,0,s)},Y;for(dn.isArrayOrTypedArray(r[l])&&k!=="count"&&(Y=r[l],B=k==="avg",I=pY[k]),f=G(v.start),E=G(v.end)+(f-Ni.tickIncrement(f,v.size,!1,s))/1e6;f=0&&D=ve;f--)if(a[f]){ye=f;break}for(f=ve;f<=ye;f++)if(n6(t[f])&&n6(a[f])){var ce={p:t[f],s:a[f],b:0};u.enabled||(ce.pts=_[f],W?ce.ph0=ce.ph1=_[f].length?d[_[f][0]]:t[f]:(r._computePh=!0,ce.ph0=K(y[f]),ce.ph1=K(y[f+1],!0))),fe.push(ce)}return fe.length===1&&(fe[0].width1=Ni.tickIncrement(fe[0].p,v.size,!1,s)-fe[0].p),hY(r,"marker")&&dY(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),hY(r,"marker.line")&&dY(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),e4e(fe,r),dn.isArrayOrTypedArray(r.selectedpoints)&&dn.tagSelected(fe,r,le),fe}function i6(e,r,t,a,n){var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,y,m,x=function(ue){return t.r2c(ue,0,d)},T=function(ue){return t.c2r(ue,0,d)},_=t.type==="date"?function(ue){return ue||ue===0?dn.cleanDate(ue,null,d):null}:function(ue){return n6(ue)?Number(ue):null};function b(ue,K,_e){K[ue+"Found"]?(K[ue]=_(K[ue]),K[ue]===null&&(K[ue]=_e[ue])):(y[ue]=K[ue]=_e[ue],dn.nestedProperty(c[0],i+"."+ue).set(_e[ue]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var w=[],k=!0,M=!1,S=!1;for(f=0;ft.r2l(Y)&&(H=Ni.tickIncrement(H,s.size,!0,d)),I.start=t.l2r(H),G||dn.nestedProperty(r,i+".start").set(I.start)}var X=s.end,W=t.r2l(R.end),ee=W!==void 0;if((s.endFound||ee)&&W!==t.r2l(X)){var oe=ee?W:dn.aggNums(Math.max,null,p);I.end=t.l2r(oe),ee||dn.nestedProperty(r,i+".start").set(I.end)}var le="autobin"+a;return r._input[le]===!1&&(r._input[i]=dn.extendFlat({},r[i]||{}),delete r._input[le],delete r[le]),[I,p]}function i4e(e,r,t,a,n){var i=e._fullLayout,o=o4e(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)l(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}yY.exports={calc:n4e,calcAllAutoBins:i6}});var AY=N((rze,TY)=>{"use strict";var mY=Ce(),Qc=zr(),gY=e6(),s4e=r6(),u4e=t6(),f4e=a6(),bY=o6().calcAllAutoBins;TY.exports=function(r,t){var a=Qc.getFromId(r,t.xaxis),n=Qc.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(Te){return a.r2c(Te,0,i)},s=function(Te){return n.r2c(Te,0,o)},u=function(Te){return a.c2r(Te,0,i)},f=function(Te){return n.c2r(Te,0,o)},c,v,d,p,y=bY(r,t,a,"x"),m=y[0],x=y[1],T=bY(r,t,n,"y"),_=T[0],b=T[1],w=t._length;x.length>w&&x.splice(w,x.length-w),b.length>w&&b.splice(w,b.length-w);var k=[],M=[],S=[],E=typeof m.size=="string",D=typeof _.size=="string",P=[],R=[],I=E?P:m,z=D?R:_,B=0,G=[],Y=[],V=t.histnorm,H=t.histfunc,X=V.indexOf("density")!==-1,W=H==="max"||H==="min",ee=W?null:0,oe=gY.count,le=s4e[V],ue=!1,K=[],_e=[],fe="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";fe&&H!=="count"&&(ue=H==="avg",oe=gY[H]);var ve=m.size,ye=l(m.start),ce=l(m.end)+(ye-Qc.tickIncrement(ye,ve,!1,i))/1e6;for(c=ye;c=0&&d=0&&p{"use strict";var Jo=Ce(),MY=Ft().BADNUM,kY=qc();SY.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=kY(r,t,n,s).vals,u=kY(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Jo.isArray1D(f),v=r.hovertext,d=v!==void 0&&Jo.isArray1D(v),p,y,m=Jo.distinctVals(s),x=m.vals,T=Jo.distinctVals(u),_=T.vals,b=[],w,k,M=_.length,S=x.length;for(p=0;p{"use strict";var c4e=Rr(),v4e=Ce(),bg=Ft().BADNUM;LY.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(x){if(c4e(x))return+x}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var h4e=Ce(),EY=.01,d4e=[[-1,0],[1,0],[0,-1],[0,1]];function p4e(e){return .5-.25*Math.min(1,e*.5)}RY.exports=function(r,t){var a=1,n;for(DY(r,t),n=0;nEY;n++)a=DY(r,t,p4e(a));return a>EY&&h4e.log("interp2d didn't converge quickly",a),r};function DY(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,y,m;for(l=0;ly&&(a=Math.max(a,Math.abs(e[i][o]-p)/(m-y))))}return a}});var NY=N((ize,FY)=>{"use strict";var y4e=Ce().maxRowLength;FY.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=y4e(r),u,f,c,v,d,p,y,m;for(f=0;f=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(y[v]=[f,c,p],n.splice(d,1),m=!0);if(!m)throw"findEmpties iterated with no new neighbors";for(v in y)a[v]=y[v],t.push(y[v])}return t.sort(function(x,T){return T[2]-x[2]})}});var BY=N((oze,OY)=>{"use strict";var IY=br(),zY=Ce().isArrayOrTypedArray;OY.exports=function(r,t,a,n,i,o){var l=[],s=IY.traceIs(r,"contour"),u=IY.traceIs(r,"histogram"),f,c,v,d=zY(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v{"use strict";var HY=br(),l6=Ce(),xg=zr(),UY=qc(),m4e=AY(),g4e=rc(),b4e=qY(),x4e=CY(),_4e=PY(),w4e=NY(),_g=BY(),s6=Ft().BADNUM;VY.exports=function(r,t){var a=xg.getFromId(r,t.xaxis||"x"),n=xg.getFromId(r,t.yaxis||"y"),i=HY.traceIs(t,"contour"),o=HY.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,y,m,x,T;if(a._minDtick=0,n._minDtick=0,o)T=m4e(r,t),c=T.orig_x,s=T.x,u=T.x0,f=T.dx,y=T.orig_y,v=T.y,d=T.y0,p=T.dy,m=T.z;else{var _=t.z;l6.isArray1D(_)?(b4e(t,a,n,"x","y",["z"]),s=t._x,v=t._y,_=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],y=t.y?n.makeCalcdata(t,"y"):[],s=UY(t,a,"x",c).vals,v=UY(t,n,"y",y).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,m=x4e(_,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(m=T4e(s,v,m),o||(s=GY(s),v=GY(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=w4e(m),_4e(m,t._emptypoints));function b(I){l=t._input.zsmooth=t.zsmooth=!1,l6.warn('cannot use zsmooth: "fast": '+I)}function w(I){if(I.length>1){var z=(I[I.length-1]-I[0])/(I.length-1),B=Math.abs(z/100);for(x=0;xB)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&b("log axis found"):w(s)?w(v)?t._islinear=!0:l==="fast"&&b("y scale is not linear"):l==="fast"&&b("x scale is not linear");var k=l6.maxRowLength(m),M=t.xtype==="scaled"?"":s,S=_g(t,M,u,f,k,a),E=t.ytype==="scaled"?"":v,D=_g(t,E,d,p,m.length,n);t._extremes[a._id]=xg.findExtremes(a,S),t._extremes[n._id]=xg.findExtremes(n,D);var P={x:S,y:D,z:m,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&y&&(P.orig_y=y),M&&M.length===S.length-1&&(P.xCenter=M),E&&E.length===D.length-1&&(P.yCenter=E),o&&(P.xRanges=T.xRanges,P.yRanges=T.yRanges,P.pts=T.pts),i||g4e(r,t,{vals:m,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=_g(R,M,u,f,k,a),P.yfill=_g(R,E,d,p,m.length,n)}return[P]};function GY(e){for(var r=[],t=e.length,a=0;a{"use strict";Tg.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];Tg.STYLE=Tg.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var f6=N((uze,WY)=>{"use strict";var YY=Ag(),A4e=Yr(),u6=Ce(),ev=null;function M4e(){if(ev!==null)return ev;ev=!1;var e=u6.isSafari()||u6.isMacWKWebView()||u6.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(YY.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")ev=r.some(function(o){return t.apply(null,o)});else{var a=A4e.tester.append("image").attr("style",YY.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;ev=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return ev}WY.exports=M4e});var Mg=N((fze,rW)=>{"use strict";var jY=Sr(),k4e=Cn(),S4e=br(),q4e=Yr(),L4e=zr(),Ii=Ce(),ZY=Aa(),C4e=b4(),E4e=Tr(),D4e=Co().extractOpts,R4e=Co().makeColorScaleFuncFromTrace,P4e=pl(),F4e=Ua(),c6=F4e.LINE_SPACING,N4e=f6(),I4e=Ag().STYLE,QY="heatmap-label";function eW(e){return e.selectAll("g."+QY)}function XY(e){eW(e).remove()}rW.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;Ii.makeTraceGroups(a,t,"hm").each(function(o){var l=jY.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,y=s.xCenter,m=s.yCenter,x=S4e.traceIs(u,"contour"),T=x?"best":u.zsmooth,_=v.length,b=Ii.maxRowLength(v),w=!1,k=!1,M,S,E,D,P,R,I,z;for(R=0;M===void 0&&R0;)S=n.c2p(d[R]),R--;for(S0;)P=i.c2p(p[R]),R--;P=n._length||S<=0||D>=i._length||P<=0;if(H){var X=l.selectAll("image").data([]);X.exit().remove(),XY(l);return}var W,ee;B==="fast"?(W=b,ee=_):(W=Y,ee=V);var oe=document.createElement("canvas");oe.width=W,oe.height=ee;var le=oe.getContext("2d",{willReadFrequently:!0}),ue=R4e(u,{noNumericCheck:!0,returnArray:!0}),K,_e;B==="fast"?(K=w?function(vt){return b-1-vt}:Ii.identity,_e=k?function(vt){return _-1-vt}:Ii.identity):(K=function(vt){return Ii.constrain(Math.round(n.c2p(d[vt])-M),0,Y)},_e=function(vt){return Ii.constrain(Math.round(i.c2p(p[vt])-D),0,V)});var fe=_e(0),ve=[fe,fe],ye=w?0:1,ce=k?0:1,j=0,Q=0,Z=0,ie=0,he,me,Re,De,Le;function He(vt,kn){if(vt!==void 0){var Pt=ue(vt);return Pt[0]=Math.round(Pt[0]),Pt[1]=Math.round(Pt[1]),Pt[2]=Math.round(Pt[2]),j+=kn,Q+=Pt[0]*kn,Z+=Pt[1]*kn,ie+=Pt[2]*kn,Pt}return[0,0,0,0]}function Oe(vt,kn,Pt,Ws){var yn=vt[Pt.bin0];if(yn===void 0)return He(void 0,1);var ji=vt[Pt.bin1],Yt=kn[Pt.bin0],Zi=kn[Pt.bin1],Bl=ji-yn||0,Hl=Yt-yn||0,mr;return ji===void 0?Zi===void 0?mr=0:Yt===void 0?mr=2*(Zi-yn):mr=(2*Zi-Yt-yn)*2/3:Zi===void 0?Yt===void 0?mr=0:mr=(2*yn-ji-Yt)*2/3:Yt===void 0?mr=(2*Zi-ji-yn)*2/3:mr=Zi+yn-ji-Yt,He(yn+Pt.frac*Bl+Ws.frac*(Hl+Pt.frac*mr))}if(B!=="default"){var Ue=0,Ee;try{Ee=new Uint8Array(W*ee*4)}catch(vt){Ee=new Array(W*ee*4)}if(B==="smooth"){var ze=y||d,Ge=m||p,se=new Array(ze.length),Ae=new Array(Ge.length),Je=new Array(Y),dr=y?$Y:JY,Ne=m?$Y:JY,Te,qe,Be;for(R=0;Rqt||qt>i._length))for(I=Mr;IOt||Ot>n._length)){var gt=C4e({x:ct,y:et},u,e._fullLayout);gt.x=ct,gt.y=et;var wa=s.z[R][I];wa===void 0?(gt.z="",gt.zLabel=""):(gt.z=wa,gt.zLabel=L4e.tickText(Pe,wa,"hover").text);var Zt=s.text&&s.text[R]&&s.text[R][I];(Zt===void 0||Zt===!1)&&(Zt=""),gt.text=Zt;var Xt=Ii.texttemplateString({data:[gt,u._meta],fallback:u.texttemplatefallback,labels:gt,locale:e._fullLayout._d3locale,template:ne});if(Xt){var Ia=Xt.split("
"),ua=Ia.length,Jt=0;for(z=0;z{"use strict";tW.exports={min:"zmin",max:"zmax"}});var kg=N((vze,aW)=>{"use strict";var z4e=Sr();aW.exports=function(r){z4e.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var qg=N((hze,iW)=>{"use strict";var nW=xn(),Y0=Ce(),Sg=Y0.isArrayOrTypedArray,O4e=zr(),B4e=Co().extractOpts;iW.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,y=l.yCenter,m=l.zmask,x=s.zhoverformat,T=c,_=v,b,w,k,M;if(r.index!==!1){try{k=Math.round(r.index[1]),M=Math.round(r.index[0])}catch(X){Y0.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||M<0||M>d.length)return}else{if(nW.inbox(t-c[0],t-c[c.length-1],0)>0||nW.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var S;for(T=[2*c[0]-c[1]],S=1;S{"use strict";oW.exports={attributes:G0(),supplyDefaults:eY(),calc:wg(),plot:Mg(),colorbar:v6(),style:kg(),hoverPoints:qg(),moduleType:"trace",name:"heatmap",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var uW=N((pze,sW)=>{"use strict";sW.exports=lW()});var h6=N((yze,fW)=>{"use strict";fW.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var vW=N((mze,cW)=>{"use strict";cW.exports={eventDataKeys:["binNumber"]}});var Lg=N((gze,yW)=>{"use strict";var Un=Zu(),hW=no().axisHoverFormat,{hovertemplateAttrs:H4e,texttemplateAttrs:U4e,templatefallbackAttrs:dW}=Wn(),d6=ga(),pW=h6(),G4e=vW(),p6=bt().extendFlat;yW.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:hW("x"),yhoverformat:hW("y"),text:p6({},Un.text,{}),hovertext:p6({},Un.hovertext,{}),orientation:Un.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:pW("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:pW("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:H4e({},{keys:G4e.eventDataKeys}),hovertemplatefallback:dW(),texttemplate:U4e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:dW({editType:"plot"}),textposition:p6({},Un.textposition,{arrayOk:!1}),textfont:d6({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:d6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:d6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Un.insidetextanchor,textangle:Un.textangle,cliponaxis:Un.cliponaxis,constraintext:Un.constraintext,marker:Un.marker,offsetgroup:Un.offsetgroup,alignmentgroup:Un.alignmentgroup,selected:Un.selected,unselected:Un.unselected,zorder:Un.zorder}});var xW=N((bze,bW)=>{"use strict";var mW=br(),W0=Ce(),gW=Tr(),V4e=Xu().handleText,Y4e=qw(),W4e=Lg();bW.exports=function(r,t,a,n){function i(T,_){return W0.coerce(r,t,W4e,T,_)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");V4e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(W0.minRowLength(o)&&W0.minRowLength(l)):W0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=mW.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),Y4e(r,t,i,a,n),W0.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,x=mW.getComponentMethod("errorbars","supplyDefaults");x(r,t,m||gW.defaultLine,{axis:"y"}),x(r,t,m||gW.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var Eg=N((xze,TW)=>{"use strict";var j0=Ce(),j4e=fa(),Cg=br().traceIs,Z4e=y0(),X4e=Xu().validateCornerradius,_W=j0.nestedProperty,y6=Fu().getAxisGroup,wW=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],J4e=["x","y"];TW.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(B,G){return j0.coerce(l._input,l,l._module.attributes,B,G)}function y(B){return B.orientation==="v"?"x":"y"}function m(B,G){var Y=j4e.getFromTrace({_fullLayout:t},B,G);return Y.type}function x(B,G,Y){var V=B.uid+"__"+Y;G||(G=V);var H=m(B,Y),X=B[Y+"calendar"]||"",W=a[G],ee=!0;W&&(H===W.axType&&X===W.calendar?(ee=!1,W.traces.push(B),W.dirs.push(Y)):(G=V,H!==W.axType&&j0.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+H,"axis","with bins on","type:"+W.axType,"axis."].join(" ")),X!==W.calendar&&j0.warn(["Attempted to group the bins of trace",B.index,"set with a",X,"calendar","with bins",W.calendar?"on a "+W.calendar+" calendar":"w/o a set calendar"].join(" ")))),ee&&(a[G]={traces:[B],dirs:[Y],axType:H,calendar:B[Y+"calendar"]||""}),B["_"+Y+"bingroup"]=G}for(c=0;c{"use strict";var $4e=Nw().hoverPoints,K4e=zr().hoverLabelText;AW.exports=function(r,t,a,n,i){var o=$4e(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=K4e(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var m6=N((wze,kW)=>{"use strict";kW.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var l;if(a._indexToPoints){l=[];for(var s=0;s{"use strict";SW.exports={attributes:Lg(),layoutAttributes:og(),supplyDefaults:xW(),crossTraceDefaults:Eg(),supplyLayoutDefaults:Lw(),calc:o6().calc,crossTraceCalc:wm().crossTraceCalc,plot:Pw().plot,layerName:"barlayer",style:jc().style,styleOnSelect:jc().styleOnSelect,colorbar:w0(),hoverPoints:MW(),selectPoints:Iw(),eventData:m6(),moduleType:"trace",name:"histogram",basePlotModule:Ei(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var CW=N((Aze,LW)=>{"use strict";LW.exports=qW()});var Rg=N((Mze,RW)=>{"use strict";var xo=Lg(),EW=h6(),Dg=G0(),Q4e=gn(),g6=no().axisHoverFormat,{hovertemplateAttrs:ewe,texttemplateAttrs:rwe,templatefallbackAttrs:DW}=Wn(),twe=Lo(),Z0=bt().extendFlat;RW.exports=Z0({x:xo.x,y:xo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:xo.histnorm,histfunc:xo.histfunc,nbinsx:xo.nbinsx,xbins:EW("x"),nbinsy:xo.nbinsy,ybins:EW("y"),autobinx:xo.autobinx,autobiny:xo.autobiny,bingroup:Z0({},xo.bingroup,{}),xbingroup:Z0({},xo.bingroup,{}),ybingroup:Z0({},xo.bingroup,{}),xgap:Dg.xgap,ygap:Dg.ygap,zsmooth:Dg.zsmooth,xhoverformat:g6("x"),yhoverformat:g6("y"),zhoverformat:g6("z",1),hovertemplate:ewe({},{keys:["z"]}),hovertemplatefallback:DW(),texttemplate:rwe({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:DW({editType:"plot"}),textfont:Dg.textfont,showlegend:Z0({},Q4e.showlegend,{dflt:!1})},twe("",{cLetter:"z",autoColorDflt:!1}))});var b6=N((kze,FW)=>{"use strict";var awe=br(),PW=Ce();FW.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=PW.minRowLength(i),s=PW.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=awe.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var IW=N((Sze,NW)=>{"use strict";var nwe=Ce(),iwe=b6(),owe=Qw(),lwe=ml(),swe=V0(),uwe=Rg();NW.exports=function(r,t,a,n){function i(o,l){return nwe.coerce(r,t,uwe,o,l)}iwe(r,t,i,n),t.visible!==!1&&(owe(r,t,i,n),lwe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),swe(i,n),i("xhoverformat"),i("yhoverformat"))}});var BW=N((qze,OW)=>{"use strict";var fwe=qg(),zW=zr().hoverLabelText;OW.exports=function(r,t,a,n,i){var o=fwe(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=zW(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=zW(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var UW=N((Lze,HW)=>{"use strict";HW.exports={attributes:Rg(),supplyDefaults:IW(),crossTraceDefaults:Eg(),calc:wg(),plot:Mg(),layerName:"heatmaplayer",colorbar:v6(),style:kg(),hoverPoints:BW(),eventData:m6(),moduleType:"trace",name:"histogram2d",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var VW=N((Cze,GW)=>{"use strict";GW.exports=UW()});var Pg=N((Eze,YW)=>{"use strict";YW.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var Ng=N((Dze,XW)=>{"use strict";var sa=G0(),Fg=Ai(),jW=no(),x6=jW.axisHoverFormat,cwe=jW.descriptionOnlyNumbers,vwe=Lo(),hwe=ci().dash,dwe=ga(),rv=bt().extendFlat,ZW=Pg(),pwe=ZW.COMPARISON_OPS2,ywe=ZW.INTERVAL_OPS,WW=Fg.line;XW.exports=rv({z:sa.z,x:sa.x,x0:sa.x0,dx:sa.dx,y:sa.y,y0:sa.y0,dy:sa.dy,xperiod:sa.xperiod,yperiod:sa.yperiod,xperiod0:Fg.xperiod0,yperiod0:Fg.yperiod0,xperiodalignment:sa.xperiodalignment,yperiodalignment:sa.yperiodalignment,text:sa.text,hovertext:sa.hovertext,transpose:sa.transpose,xtype:sa.xtype,ytype:sa.ytype,xhoverformat:x6("x"),yhoverformat:x6("y"),zhoverformat:x6("z",1),hovertemplate:sa.hovertemplate,hovertemplatefallback:sa.hovertemplatefallback,texttemplate:rv({},sa.texttemplate,{}),texttemplatefallback:sa.texttemplatefallback,textfont:rv({},sa.textfont,{}),hoverongaps:sa.hoverongaps,connectgaps:rv({},sa.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:dwe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:cwe("contour label")},operation:{valType:"enumerated",values:[].concat(pwe).concat(ywe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:rv({},WW.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:hwe,smoothing:rv({},WW.smoothing,{}),editType:"plot"},zorder:Fg.zorder},vwe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var w6=N((Rze,$W)=>{"use strict";var en=Rg(),$o=Ng(),mwe=Lo(),_6=no().axisHoverFormat,JW=bt().extendFlat;$W.exports=JW({x:en.x,y:en.y,z:en.z,marker:en.marker,histnorm:en.histnorm,histfunc:en.histfunc,nbinsx:en.nbinsx,xbins:en.xbins,nbinsy:en.nbinsy,ybins:en.ybins,autobinx:en.autobinx,autobiny:en.autobiny,bingroup:en.bingroup,xbingroup:en.xbingroup,ybingroup:en.ybingroup,autocontour:$o.autocontour,ncontours:$o.ncontours,contours:$o.contours,line:{color:$o.line.color,width:JW({},$o.line.width,{dflt:.5}),dash:$o.line.dash,smoothing:$o.line.smoothing,editType:"plot"},xhoverformat:_6("x"),yhoverformat:_6("y"),zhoverformat:_6("z",1),hovertemplate:en.hovertemplate,hovertemplatefallback:en.hovertemplatefallback,texttemplate:$o.texttemplate,texttemplatefallback:$o.texttemplatefallback,textfont:$o.textfont},mwe("",{cLetter:"z",editTypeOverride:"calc"}))});var T6=N((Pze,KW)=>{"use strict";KW.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var A6=N((Fze,QW)=>{"use strict";var gwe=Ce();QW.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;gwe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var M6=N((Nze,ej)=>{"use strict";var bwe=ml(),xwe=A6();ej.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,bwe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),xwe(a,n,s,i)}});var nj=N((Ize,aj)=>{"use strict";var rj=Ce(),_we=b6(),wwe=T6(),Twe=M6(),Awe=V0(),tj=w6();aj.exports=function(r,t,a,n){function i(l,s){return rj.coerce(r,t,tj,l,s)}function o(l){return rj.coerce2(r,t,tj,l)}_we(r,t,i,n),t.visible!==!1&&(wwe(r,t,i,o),Twe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&Awe(i,n))}});var lj=N((zze,oj)=>{"use strict";var S6=zr(),k6=Ce();oj.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=k6.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=k6.aggNums(Math.max,null,t));var o=ij(n,i,r.ncontours);a.size=o.dtick,a.start=S6.tickFirst(o),o.range.reverse(),a.end=S6.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),k6.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=ij(l,s,r.ncontours).dtick,u.size=a.size=f}}};function ij(e,r,t){var a={type:"linear",range:[e,r]};return S6.autoTicks(a,(r-e)/(t||15)),a}});var X0=N((Oze,sj)=>{"use strict";sj.exports=function(r){return r.end+r.size/1e6}});var q6=N((Bze,fj)=>{"use strict";var uj=Co(),Mwe=wg(),kwe=lj(),Swe=X0();fj.exports=function(r,t){var a=Mwe(r,t),n=a[0].z;kwe(t,n);var i=t.contours,o=uj.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=Swe(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return uj.calc(r,t,{vals:l,cLetter:"z"}),a}});var Ig=N((Hze,cj)=>{"use strict";cj.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var hj=N((Uze,vj)=>{"use strict";var zg=Ig();vj.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;le?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var mj=N((Gze,yj)=>{"use strict";var Og=Ce(),tv=Ig();yj.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=tv.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=tv.SADDLEREMAINDER[o]):delete e.crossings[i],l=tv.NEWDELTA[o],!l){Og.log("Found bad marching index:",o,r,e.level);break}s.push(pj(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),J0(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),y=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(y||t&&p)break;o=e.crossings[i]}d===1e4&&Og.log("Infinite loop in contour?");var m=J0(s[0],s[s.length-1],a,n),x=0,T=.2*e.smoothing,_=[],b=0,w,k,M,S,E,D,P,R,I,z,B;for(d=1;d=b;d--)if(w=_[d],w=b&&w+_[k]R&&I--,e.edgepaths[I]=B.concat(s,z));break}H||(e.edgepaths[R]=s.concat(z))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:tv.BOTTOMSTART.indexOf(e)!==-1?n=1:tv.LEFTSTART.indexOf(e)!==-1?a=1:tv.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function pj(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var _j=N((Vze,xj)=>{"use strict";var L6=Pg(),Ewe=Rr();xj.exports={"[]":gj("[]"),"][":gj("]["),">":C6(">"),"<":C6("<"),"=":C6("=")};function bj(e,r){var t=Array.isArray(r),a;function n(i){return Ewe(i)?+i:null}return L6.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):L6.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:L6.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function gj(e){return function(r){r=bj(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function C6(e){return function(r){return r=bj(e,r),{start:r,end:1/0,size:1/0}}}});var Aj=N((Yze,Tj)=>{"use strict";var wj=Ce(),Dwe=_j(),Rwe=X0();Tj.exports=function(r,t,a){for(var n=r.type==="constraint"?Dwe[r._operation](r.value):r,i=n.size,o=[],l=Rwe(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f1e3){wj.warn("Too many contours, clipping at 1000",r);break}return o}});var Sj=N((Wze,kj)=>{"use strict";var av=Ce();kj.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&av.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";qj.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;no.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(t.prefixBoundary=!0);break;case"<":(cu||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),vu&&(t.prefixBoundary=!0);break}break}}});var E6=N(pn=>{"use strict";var K0=Sr(),Fa=Ce(),El=Yr(),Pwe=Co(),Dj=Aa(),Cj=zr(),Ej=sc(),Fwe=Mg(),Rj=hj(),Pj=mj(),Nwe=Aj(),Iwe=Sj(),Fj=Lj(),$0=Ig(),Ko=$0.LABELOPTIMIZER;pn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Fa.makeTraceGroups(n,a,"contour").each(function(l){var s=K0.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=Nwe(d,t,u),y=Fa.ensureSingle(s,"g","heatmapcoloring"),m=[];d.coloring==="heatmap"&&(m=[l]),Fwe(r,t,m,y),Rj(p),Pj(p);var x=i.c2p(c[0],!0),T=i.c2p(c[c.length-1],!0),_=o.c2p(v[0],!0),b=o.c2p(v[v.length-1],!0),w=[[x,b],[T,b],[T,_],[x,_]],k=p;d.type==="constraint"&&(k=Iwe(p,d._operation)),zwe(s,w,d),Owe(s,k,w,d),Bwe(s,p,r,u,d),Uwe(s,t,r,u,w)})};function zwe(e,r,t){var a=Fa.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function Owe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&Fj(r,a);var o=Fa.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+Nj(s,t);u?K0.select(this).attr("d",u).style("stroke","none"):K0.select(this).remove()})}function Nj(e,r){var t="",a=0,n=e.edgepaths.map(function(x,T){return T}),i=!0,o,l,s,u,f,c;function v(x){return Math.abs(x[1]-r[0][1])<.01}function d(x){return Math.abs(x[1]-r[2][1])<.01}function p(x){return Math.abs(x[0]-r[0][0])<.01}function y(x){return Math.abs(x[0]-r[2][0])<.01}for(;n.length;){for(c=El.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){Fa.log("Missing end?",a,e);break}for(v(o)&&!y(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:y(o)&&(l=r[2]),f=0;f=0&&(l=m,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-m[1])<.01&&(m[0]-o[0])*(l[0]-m[0])>=0&&(l=m,u=f):Fa.log("endpt to newendpt is not vert. or horz.",o,l,m)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){Fa.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;aKo.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Ko.MAXCOST)return f};function Hwe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=Ko.EDGECOST*(1/(c-1)+1/(v-1));d+=Ko.ANGLECOST*s*s;for(var p=o-u,y=l-f,m=o+u,x=l+f,T=0;T{"use strict";var Vwe=Sr(),D6=Co(),Ywe=X0();Ij.exports=function(r){var t=r.contours,a=t.start,n=Ywe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=D6.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?D6.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,y=s.min,m=s.max;if(t.coloring==="heatmap"){for(p=0;p=m)&&(a<=y&&(a=y),n>=m&&(n=m),o=Math.floor((n-a)/i)+1,l=0),p=0;py&&(c.unshift(y),v.unshift(v[0])),c[c.length-1]{"use strict";var Bg=Sr(),zj=Yr(),Wwe=kg(),jwe=R6();Oj.exports=function(r){var t=Bg.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=Bg.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?jwe(i):null;n.selectAll("g.contourlevel").each(function(m){Bg.select(this).selectAll("path").call(zj.lineGroupStyle,l.width,c?d(m.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){zj.font(Bg.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(m.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var y;n.selectAll("g.contourfill path").style("fill",function(m){return y===void 0&&(y=m.level),d(m.level+.5*s)}),y===void 0&&(y=u),n.selectAll("g.contourbg path").style("fill",d(y-.5*s))}}),Wwe(r)}});var F6=N(($ze,Hj)=>{"use strict";var Bj=Co(),Zwe=R6(),Xwe=X0();function Jwe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=Zwe(r,{isColorbar:!0});if(o==="heatmap"){var s=Bj.extractOpts(r);t._fillgradient=s.reversescale?Bj.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:Xwe(a),size:i}}Hj.exports={min:"zmin",max:"zmax",calc:Jwe}});var N6=N((Kze,Uj)=>{"use strict";var Hg=Tr(),$we=qg();Uj.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=$we(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&Hg.opacity(s.fillcolor)?l.color=Hg.addOpacity(s.fillcolor,1):s.contours.showlines&&Hg.opacity(s.line.color)&&(l.color=Hg.addOpacity(s.line.color,1)))}),o}});var Vj=N((Qze,Gj)=>{"use strict";Gj.exports={attributes:w6(),supplyDefaults:nj(),crossTraceDefaults:Eg(),calc:q6(),plot:E6().plot,layerName:"contourlayer",style:P6(),colorbar:F6(),hoverPoints:N6(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Wj=N((eOe,Yj)=>{"use strict";Yj.exports=Vj()});var Qj=N((rOe,Kj)=>{"use strict";var jj=Rr(),Kwe=A6(),Jj=Tr(),Zj=Jj.addOpacity,Qwe=Jj.opacity,$j=Pg(),Xj=Ce().isArrayOrTypedArray,e6e=$j.CONSTRAINT_REDUCTION,r6e=$j.COMPARISON_OPS2;Kj.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=e6e[c],t6e(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",Zj((r.line||{}).color||i,.5))),s){var v=f&&Qwe(f)?Zj(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),Kwe(a,n,u,o)};function t6e(e,r){var t;r6e.indexOf(r.operation)===-1?(e("contours.value",[0,1]),Xj(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:jj(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),jj(r.value)||(Xj(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var tZ=N((tOe,rZ)=>{"use strict";var I6=Ce(),a6e=Kw(),n6e=kc(),i6e=Qj(),o6e=T6(),l6e=M6(),s6e=V0(),eZ=Ng();rZ.exports=function(r,t,a,n){function i(u,f){return I6.coerce(r,t,eZ,u,f)}function o(u){return I6.coerce2(r,t,eZ,u)}var l=a6e(r,t,i,n);if(!l){t.visible=!1;return}n6e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate"),i("hovertemplatefallback");var s=i("contours.type")==="constraint";i("connectgaps",I6.isArray1D(t.z)),s?i6e(r,t,i,n,a):(o6e(r,t,i,o),l6e(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&s6e(i,n),i("zorder")}});var nZ=N((aOe,aZ)=>{"use strict";aZ.exports={attributes:Ng(),supplyDefaults:tZ(),calc:q6(),plot:E6().plot,style:P6(),colorbar:F6(),hoverPoints:N6(),moduleType:"trace",name:"contour",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var oZ=N((nOe,iZ)=>{"use strict";iZ.exports=nZ()});var z6=N((iOe,fZ)=>{"use strict";var{hovertemplateAttrs:u6e,texttemplateAttrs:f6e,templatefallbackAttrs:lZ}=Wn(),c6e=Gy(),oi=Ai(),v6e=gn(),sZ=Lo(),h6e=ci().dash,ks=bt().extendFlat,zi=oi.marker,Q0=oi.line,uZ=zi.line;fZ.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:ks({},oi.mode,{dflt:"markers"}),text:ks({},oi.text,{}),texttemplate:f6e({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:lZ({editType:"plot"}),hovertext:ks({},oi.hovertext,{}),line:{color:Q0.color,width:Q0.width,dash:h6e,backoff:Q0.backoff,shape:ks({},Q0.shape,{values:["linear","spline"]}),smoothing:Q0.smoothing,editType:"calc"},connectgaps:oi.connectgaps,cliponaxis:oi.cliponaxis,fill:ks({},oi.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:c6e(),marker:ks({symbol:zi.symbol,opacity:zi.opacity,angle:zi.angle,angleref:zi.angleref,standoff:zi.standoff,maxdisplayed:zi.maxdisplayed,size:zi.size,sizeref:zi.sizeref,sizemin:zi.sizemin,sizemode:zi.sizemode,line:ks({width:uZ.width,dash:uZ.dash,editType:"calc"},sZ("marker.line")),gradient:zi.gradient,editType:"calc"},sZ("marker")),textfont:oi.textfont,textposition:oi.textposition,selected:oi.selected,unselected:oi.unselected,hoverinfo:ks({},v6e.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:oi.hoveron,hovertemplate:u6e(),hovertemplatefallback:lZ()}});var dZ=N((oOe,hZ)=>{"use strict";var cZ=Ce(),d6e=t0(),nv=Nn(),p6e=K_(),y6e=Q_(),vZ=e4(),m6e=r4(),g6e=t4(),b6e=z6();hZ.exports=function(r,t,a,n){function i(v,d){return cZ.coerce(r,t,b6e,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var f=u{"use strict";var O6=zr();pZ.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=O6.tickText(i.aaxis,r.a,!0).text,n.bLabel=O6.tickText(i.baxis,r.b,!0).text,n.cLabel=O6.tickText(i.caxis,r.c,!0).text,n}});var xZ=N((sOe,bZ)=>{"use strict";var B6=Rr(),x6e=i4(),_6e=mm(),w6e=gm(),T6e=bm().calcMarkerSize,mZ=["a","b","c"],gZ={a:["b","c"],b:["a","c"],c:["a","b"]};bZ.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s{"use strict";var A6e=g4();_Z.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var M6e=A4();TZ.exports=function(r,t,a,n){var i=M6e(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var y=v._module.formatLabels(c,v,p);o.aLabel=y.aLabel,o.bLabel=y.bLabel,o.cLabel=y.cLabel;var m=c.hi||v.hoverinfo,x=[];function T(b,w){x.push(b._hovertitle+": "+w)}if(!v.hovertemplate){var _=m.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&T(d.aaxis,o.aLabel),_.indexOf("b")!==-1&&T(d.baxis,o.bLabel),_.indexOf("c")!==-1&&T(d.caxis,o.cLabel)}return o.extraText=x.join("
"),o.hovertemplate=v.hovertemplate,i}});var kZ=N((cOe,MZ)=>{"use strict";MZ.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var IZ=N((vOe,NZ)=>{"use strict";var DZ=Sr(),k6e=Cn(),H6=br(),Dl=Ce(),Qo=Dl.strTranslate,Ug=Dl._,ov=Tr(),Gg=Yr(),ed=sc(),U6=bt().extendFlat,S6e=aa(),Ss=zr(),SZ=mi(),qZ=xn(),RZ=Cu(),LZ=RZ.freeMode,q6e=RZ.rectMode,G6=lc(),L6e=Vo().prepSelect,C6e=Vo().selectOnClick,E6e=Vo().clearOutline,D6e=Vo().clearSelectionsCache,PZ=xa();function FZ(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}NZ.exports=FZ;var el=FZ.prototype;el.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};el.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;iiv*u?(x=u,m=x*iv):(m=s,x=m/iv),T=o*m/s,_=l*x/u,p=r.l+r.w*n-m/2,y=r.t+r.h*(1-i)-x/2,t.x0=p,t.y0=y,t.w=m,t.h=x,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-T/2,n+T/2],_id:"x"},ed(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(z){return z.a>=t.aaxis.range[0]&&z.a<=t.aaxis.range[1]&&z.b>=t.baxis.range[1]&&z.b<=t.baxis.range[0]&&z.c>=t.caxis.range[1]&&z.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-_/2,i+_/2],_id:"y"},ed(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var b=t.yaxis.domain[0],w=t.aaxis=U6({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*iv],anchor:"free",position:0,_id:"y",_length:m});ed(w,t.graphDiv._fullLayout),w.setScale();var k=t.baxis=U6({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:m});ed(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=U6({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*iv],anchor:"free",position:0,_id:"y",_length:m});ed(M,t.graphDiv._fullLayout),M.setScale();var S="M"+p+","+(y+x)+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDef.select("path").attr("d",S),t.layers.plotbg.select("path").attr("d",S);var E="M0,"+x+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDefRelative.select("path").attr("d",E);var D=Qo(p,y);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),t.clipDefRelative.select("path").attr("transform",null);var P=Qo(p-k._offset,y+x);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=Qo(p+m/2,y)+"rotate(30)"+Qo(0,-w._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var I=Qo(p+m/2,y)+"rotate(-30)"+Qo(0,-M._offset);t.layers.caxis.attr("transform",I),t.layers.cgrid.attr("transform",I),t.drawAxes(!0),t.layers.aline.select("path").attr("d",w.showline?"M"+p+","+(y+x)+"l"+m/2+",-"+x:"M0,0").call(ov.stroke,w.linecolor||"#000").style("stroke-width",(w.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(y+x)+"h"+m:"M0,0").call(ov.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",M.showline?"M"+(p+m/2)+","+y+"l"+m/2+","+x:"M0,0").call(ov.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Gg.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};el.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.slice(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=G6.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:Ug(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=G6.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:Ug(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=G6.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:Ug(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};el.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=R6e(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=Ss.calcTicks(e),c=Ss.clipEnds(e,f),v=Ss.makeTransTickFn(e),d=Ss.getTickSigns(e)[2],p=Dl.deg2rad(l),y=d*(e.linewidth||1)/2,m=d*e.ticklen,x=r.w,T=r.h,_=n==="b"?"M0,"+y+"l"+Math.sin(p)*m+","+Math.cos(p)*m:"M"+y+",0l"+Math.cos(p)*m+","+-Math.sin(p)*m,b={a:"M0,0l"+T+",-"+x/2,b:"M0,0l-"+x/2+",-"+T,c:"M0,0l-"+T+","+x/2}[n];Ss.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:_,transFn:v,crisp:!1}),Ss.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:b,transFn:v,crisp:!1}),Ss.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:Ss.makeLabelFns(e,0,l)})};function R6e(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Ca=PZ.MINZOOM/2+.87,P6e="m-0.87,.5h"+Ca+"v3h-"+(Ca+5.2)+"l"+(Ca/2+2.6)+",-"+(Ca*.87+4.5)+"l2.6,1.5l-"+Ca/2+","+Ca*.87+"Z",F6e="m0.87,.5h-"+Ca+"v3h"+(Ca+5.2)+"l-"+(Ca/2+2.6)+",-"+(Ca*.87+4.5)+"l-2.6,1.5l"+Ca/2+","+Ca*.87+"Z",N6e="m0,1l"+Ca/2+","+Ca*.87+"l2.6,-1.5l-"+(Ca/2+2.6)+",-"+(Ca*.87+4.5)+"l-"+(Ca/2+2.6)+","+(Ca*.87+4.5)+"l2.6,1.5l"+Ca/2+",-"+Ca*.87+"Z",I6e="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",CZ=!0;el.clearOutline=function(){D6e(this.dragOptions),E6e(this.dragOptions.gd)};el.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,I){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var z=e.dragOptions.dragmode=t._fullLayout.dragmode;LZ(z)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,z==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=x,e.dragOptions.doneFn=M,T(P,R,I)):z==="pan"?(e.dragOptions.moveFn=E,e.dragOptions.clickFn=x,e.dragOptions.doneFn=D,S(),e.clearOutline(t)):(q6e(z)||LZ(z))&&L6e(P,R,I,e.dragOptions,z)}};var o,l,s,u,f,c,v,d,p,y;function m(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function x(P,R){var I=t._fullLayout.clickmode;EZ(t),P===2&&(t.emit("plotly_doubleclick",null),H6.call("_guiRelayout",t,m({a:0,b:0,c:0}))),I.indexOf("select")>-1&&P===1&&C6e(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),I.indexOf("event")>-1&&qZ.click(t,R,e.id)}function T(P,R,I){var z=r.getBoundingClientRect();o=R-z.left,l=I-z.top,t._fullLayout._calcInverseTransform(t);var B=t._fullLayout._invTransform,G=Dl.apply3DTransform(B)(o,l);o=G[0],l=G[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=k6e(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",Qo(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),y=a.append("path").attr("class","zoombox-corners").attr("transform",Qo(e.x0,e.y0)).style({fill:ov.background,stroke:ov.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function _(P,R){return 1-R/e.h}function b(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function w(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var I=o+P*n,z=l+R*i,B=Math.max(0,Math.min(1,_(o,l),_(I,z))),G=Math.max(0,Math.min(1,b(o,l),b(I,z))),Y=Math.max(0,Math.min(1,w(o,l),w(I,z))),V=(B/2+Y)*e.w,H=(1-B/2-G)*e.w,X=(V+H)/2,W=H-V,ee=(1-B)*e.h,oe=ee-W/iv;W.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),y.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",m(f))}function M(){EZ(t),f!==s&&(H6.call("_guiRelayout",t,m(f)),CZ&&t.data&&t._context.showTips&&(Dl.notifier(Ug(t,"Double-click to zoom back out"),"long",t),CZ=!1))}function S(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function E(P,R){var I=P/e.xaxis._m,z=R/e.yaxis._m;f={a:s.a-z,b:s.b+(I+z)/2,c:s.c-(I-z)/2};var B=[f.a,f.b,f.c].sort(Dl.sorterAsc),G={a:B.indexOf(f.a),b:B.indexOf(f.b),c:B.indexOf(f.c)};B[0]<0&&(B[1]+B[0]/2<0?(B[2]+=B[0]+B[1],B[0]=B[1]=0):(B[2]+=B[0]/2,B[1]+=B[0]/2,B[0]=0),f={a:B[G.a],b:B[G.b],c:B[G.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var Y=Qo(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Y);var V=Qo(-P,-R);e.clipDefRelative.select("path").attr("transform",V),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Gg.hideOutsideRangePoints,e),t.emit("plotly_relayouting",m(f))}function D(){H6.call("_guiRelayout",t,m(f))}r.onmousemove=function(P){qZ.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||SZ.unhover(t,P)},SZ.init(this.dragOptions)};function EZ(e){DZ.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var W6=N((hOe,zZ)=>{"use strict";var z6e=fi(),O6e=Gc().attributes,it=pi(),B6e=eo().overrideAll,V6=bt().extendFlat,Y6={title:{text:it.title.text,font:it.title.font},color:it.color,tickmode:it.minor.tickmode,nticks:V6({},it.nticks,{dflt:6,min:1}),tick0:it.tick0,dtick:it.dtick,tickvals:it.tickvals,ticktext:it.ticktext,ticks:it.ticks,ticklen:it.ticklen,tickwidth:it.tickwidth,tickcolor:it.tickcolor,ticklabelstep:it.ticklabelstep,showticklabels:it.showticklabels,labelalias:it.labelalias,showtickprefix:it.showtickprefix,tickprefix:it.tickprefix,showticksuffix:it.showticksuffix,ticksuffix:it.ticksuffix,showexponent:it.showexponent,exponentformat:it.exponentformat,minexponent:it.minexponent,separatethousands:it.separatethousands,tickfont:it.tickfont,tickangle:it.tickangle,tickformat:it.tickformat,tickformatstops:it.tickformatstops,hoverformat:it.hoverformat,showline:V6({},it.showline,{dflt:!0}),linecolor:it.linecolor,linewidth:it.linewidth,showgrid:V6({},it.showgrid,{dflt:!0}),gridcolor:it.gridcolor,gridwidth:it.gridwidth,griddash:it.griddash,layer:it.layer,min:{valType:"number",dflt:0,min:0}},Vg=zZ.exports=B6e({domain:O6e({name:"ternary"}),bgcolor:{valType:"color",dflt:z6e.background},sum:{valType:"number",dflt:1,min:0},aaxis:Y6,baxis:Y6,caxis:Y6},"plot","from-root");Vg.uirevision={valType:"any",editType:"none"};Vg.aaxis.uirevision=Vg.baxis.uirevision=Vg.caxis.uirevision={valType:"any",editType:"none"}});var BZ=N((dOe,OZ)=>{"use strict";var H6e=Ce(),U6e=wt(),G6e=Gc().defaults;OZ.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(T,_){return H6e.coerce(v,d,o,T,_)}for(var y=0;y{"use strict";var V6e=Tr(),Y6e=wt(),Yg=Ce(),W6e=BZ(),j6e=b1(),Z6e=x1(),X6e=m1(),J6e=y1(),$6e=S4(),UZ=W6(),HZ=["aaxis","baxis","caxis"];GZ.exports=function(r,t,a){W6e(r,t,a,{type:"ternary",attributes:UZ,handleDefaults:K6e,font:t.font,paper_bgcolor:t.paper_bgcolor})};function K6e(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=V6e.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function Q6e(e,r,t,a){var n=UZ[r._name];function i(d,p){return Yg.coerce(e,r,n,d,p)}i("uirevision",a.uirevision),r.type="linear";var o=i("color"),l=o!==n.color.dflt?o:t.font.color,s=r._name,u=s.charAt(0).toUpperCase(),f="Component "+u,c=i("title.text",f);r._hovertitle=c===f?c:u,Yg.coerceFont(i,"title.font",t.font,{overrideDflt:{size:Yg.bigFont(t.font.size),color:l}}),i("min"),J6e(e,r,i,"linear"),Z6e(e,r,i,"linear"),j6e(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),X6e(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(Yg.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),$6e(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var YZ=N(Oi=>{"use strict";var e7e=IZ(),r7e=s1().getSubplotCalcData,t7e=Ce().counterRegex,lv="ternary";Oi.name=lv;var a7e=Oi.attr="subplot";Oi.idRoot=lv;Oi.idRegex=Oi.attrRegex=t7e(lv);var n7e=Oi.attributes={};n7e[a7e]={valType:"subplotid",dflt:"ternary",editType:"calc"};Oi.layoutAttributes=W6();Oi.supplyLayoutDefaults=VZ();Oi.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[lv],i=0;i{"use strict";WZ.exports={attributes:z6(),supplyDefaults:dZ(),colorbar:w0(),formatLabels:yZ(),calc:xZ(),plot:wZ(),style:zu().style,styleOnSelect:zu().styleOnSelect,hoverPoints:AZ(),selectPoints:M4(),eventData:kZ(),moduleType:"trace",name:"scatterternary",basePlotModule:YZ(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var XZ=N((gOe,ZZ)=>{"use strict";ZZ.exports=jZ()});var j6=N((bOe,$Z)=>{"use strict";var da=hg(),sv=bt().extendFlat,JZ=no().axisHoverFormat;$Z.exports={y:da.y,x:da.x,x0:da.x0,y0:da.y0,xhoverformat:JZ("x"),yhoverformat:JZ("y"),name:sv({},da.name,{}),orientation:sv({},da.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:da.fillcolor,points:sv({},da.boxpoints,{}),jitter:sv({},da.jitter,{}),pointpos:sv({},da.pointpos,{}),width:sv({},da.width,{}),marker:da.marker,text:da.text,hovertext:da.hovertext,hovertemplate:da.hovertemplate,hovertemplatefallback:da.hovertemplatefallback,quartilemethod:da.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:da.offsetgroup,alignmentgroup:da.alignmentgroup,selected:da.selected,unselected:da.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:da.zorder}});var J6=N((xOe,KZ)=>{"use strict";var Z6=dg(),X6=Ce().extendFlat;KZ.exports={violinmode:X6({},Z6.boxmode,{}),violingap:X6({},Z6.boxgap,{}),violingroupgap:X6({},Z6.boxgroupgap,{})}});var aX=N((_Oe,tX)=>{"use strict";var QZ=Ce(),i7e=Tr(),eX=U0(),rX=j6();tX.exports=function(r,t,a,n){function i(w,k){return QZ.coerce(r,t,rX,w,k)}function o(w,k){return QZ.coerce2(r,t,rX,w,k)}if(eX.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",i7e.addOpacity(t.line.color,.5));eX.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),y=o("box.line.color",f),m=o("box.line.width",c),x=i("box.visible",!!(d||p||y||m));x||(t.box={visible:!1});var T=o("meanline.color",f),_=o("meanline.width",c),b=i("meanline.visible",!!(T||_));b||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var iX=N((wOe,nX)=>{"use strict";var o7e=Ce(),l7e=J6(),s7e=zw();nX.exports=function(r,t,a){function n(i,o){return o7e.coerce(r,t,l7e,i,o)}s7e._supply(r,t,a,n,"violin")}});var Wg=N(ef=>{"use strict";var u7e=Ce(),f7e={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};ef.makeKDE=function(e,r,t){var a=t.length,n=f7e.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var $6=Ce(),K6=zr(),c7e=Hw(),oX=Wg(),v7e=Ft().BADNUM;lX.exports=function(r,t){var a=c7e(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=K6.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var y7e=Uw().setPositionOffset,uX=["v","h"];fX.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var Q6=Sr(),e7=Ce(),m7e=Yr(),r7=Gw(),g7e=m4(),b7e=Wg();vX.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=g7e(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return m7e.smoothopen(v[0],1)}e7.makeTraceGroups(n,a,"trace violins").each(function(f){var c=Q6.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var y=d.bPos,m=d.bdPos,x=t[d.valLetter+"axis"],T=t[d.posLetter+"axis"],_=p.side==="both",b=_||p.side==="positive",w=_||p.side==="negative",k=c.selectAll("path.violin").data(e7.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(z){var B=Q6.select(this),G=z.density,Y=G.length,V=T.c2l(z.pos+y,!0),H=T.l2p(V),X;if(p.width)X=d.maxKDE/m;else{var W=o._violinScaleGroupStats[p.scalegroup];X=p.scalemode==="count"?W.maxKDE/m*(W.maxCount/z.pts.length):W.maxKDE/m}var ee,oe,le,ue,K,_e,fe;if(b){for(_e=new Array(Y),ue=0;ue{"use strict";var dX=Sr(),uv=Tr(),x7e=zu().stylePoints;pX.exports=function(r){var t=dX.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=dX.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(uv.stroke,n.line.color).call(uv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(uv.stroke,l.color).call(uv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(uv.stroke,s.color),i.selectAll("path.meanline").style(f).call(uv.stroke,s.color),x7e(i,n,r)})}});var xX=N((qOe,bX)=>{"use strict";var _7e=Tr(),t7=Ce(),w7e=zr(),mX=Xw(),gX=Wg();bX.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var y=mX.hoverOnBoxes(r,t,a,n);if(c&&y.length>0){var m=r.xa,x=r.ya,T,_,b,w,k;s.orientation==="h"?(k=t,T="y",b=x,_="x",w=m):(k=a,T="x",b=m,_="y",w=x);var M=l[r.index];if(k>=M.span[0]&&k<=M.span[1]){var S=t7.extendFlat({},r),E=w.c2p(k,!0),D=gX.getKdeValue(M,s,k),P=gX.getPositionOnKdePath(M,s,E),R=b._offset,I=b._length;S[T+"0"]=P[0],S[T+"1"]=P[1],S[_+"0"]=S[_+"1"]=E,S[_+"Label"]=_+": "+w7e.hoverLabelText(w,k,s[_+"hoverformat"])+", "+l[0].t.labels.kde+" "+D.toFixed(3);for(var z=0,B=0;B{"use strict";_X.exports={attributes:j6(),layoutAttributes:J6(),supplyDefaults:aX(),crossTraceDefaults:U0().crossTraceDefaults,supplyLayoutDefaults:iX(),calc:sX(),crossTraceCalc:cX(),plot:hX(),style:yX(),styleOnSelect:zu().styleOnSelect,hoverPoints:xX(),selectPoints:Jw(),moduleType:"trace",name:"violin",basePlotModule:Ei(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var AX=N((COe,TX)=>{"use strict";TX.exports=wX()});var fv=N((EOe,MX)=>{"use strict";MX.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}}});var a7=N((DOe,SX)=>{"use strict";var T7e=gn(),A7e=Ai().zorder,{hovertemplateAttrs:M7e,templatefallbackAttrs:k7e}=Wn(),kX=bt().extendFlat,S7e=fv().colormodel,td=["rgb","rgba","rgba256","hsl","hsla"],q7e=[],L7e=[];for(cv=0;cv{"use strict";var C7e=Ce(),E7e=a7(),qX=fv(),D7e=Tl().IMAGE_URL_PREFIX;LX.exports=function(r,t){function a(o,l){return C7e.coerce(r,t,E7e,o,l)}a("source"),t.source&&!t.source.match(D7e)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=qX.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=qX.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),t._length=null,a("zorder")}});var Rl=N((POe,n7)=>{typeof Object.create=="function"?n7.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:n7.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var i7=N((FOe,EX)=>{EX.exports=uu().EventEmitter});var PX=N(jg=>{"use strict";jg.byteLength=P7e;jg.toByteArray=N7e;jg.fromByteArray=O7e;var rl=[],Bi=[],R7e=typeof Uint8Array!="undefined"?Uint8Array:Array,o7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(rf=0,DX=o7.length;rf0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function P7e(e){var r=RX(e),t=r[0],a=r[1];return(t+a)*3/4-a}function F7e(e,r,t){return(r+t)*3/4-t}function N7e(e){var r,t=RX(e),a=t[0],n=t[1],i=new R7e(F7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=Bi[e.charCodeAt(s)]<<2|Bi[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Bi[e.charCodeAt(s)]<<10|Bi[e.charCodeAt(s+1)]<<4|Bi[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function I7e(e){return rl[e>>18&63]+rl[e>>12&63]+rl[e>>6&63]+rl[e&63]}function z7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(rl[r>>2]+rl[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(rl[r>>10]+rl[r>>4&63]+rl[r<<2&63]+"=")),n.join("")}});var FX=N(l7=>{l7.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};l7.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=y*128}});var yv=N(pv=>{"use strict";var s7=PX(),hv=FX(),NX=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;pv.Buffer=Ze;pv.SlowBuffer=Y7e;pv.INSPECT_MAX_BYTES=50;var Zg=2147483647;pv.kMaxLength=Zg;Ze.TYPED_ARRAY_SUPPORT=B7e();!Ze.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function B7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(Ze.prototype,"parent",{enumerable:!0,get:function(){if(Ze.isBuffer(this))return this.buffer}});Object.defineProperty(Ze.prototype,"offset",{enumerable:!0,get:function(){if(Ze.isBuffer(this))return this.byteOffset}});function Pl(e){if(e>Zg)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,Ze.prototype),r}function Ze(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v7(e)}return BX(e,r,t)}Ze.poolSize=8192;function BX(e,r,t){if(typeof e=="string")return U7e(e,r);if(ArrayBuffer.isView(e))return G7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(tl(e,ArrayBuffer)||e&&tl(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(tl(e,SharedArrayBuffer)||e&&tl(e.buffer,SharedArrayBuffer)))return f7(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return Ze.from(a,r,t);let n=V7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Ze.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Ze.from=function(e,r,t){return BX(e,r,t)};Object.setPrototypeOf(Ze.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ze,Uint8Array);function HX(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function H7e(e,r,t){return HX(e),e<=0?Pl(e):r!==void 0?typeof t=="string"?Pl(e).fill(r,t):Pl(e).fill(r):Pl(e)}Ze.alloc=function(e,r,t){return H7e(e,r,t)};function v7(e){return HX(e),Pl(e<0?0:h7(e)|0)}Ze.allocUnsafe=function(e){return v7(e)};Ze.allocUnsafeSlow=function(e){return v7(e)};function U7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Ze.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=UX(e,r)|0,a=Pl(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function u7(e){let r=e.length<0?0:h7(e.length)|0,t=Pl(r);for(let a=0;a=Zg)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Zg.toString(16)+" bytes");return e|0}function Y7e(e){return+e!=e&&(e=0),Ze.alloc(+e)}Ze.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Ze.prototype};Ze.compare=function(r,t){if(tl(r,Uint8Array)&&(r=Ze.from(r,r.offset,r.byteLength)),tl(t,Uint8Array)&&(t=Ze.from(t,t.offset,t.byteLength)),!Ze.isBuffer(r)||!Ze.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(Ze.isBuffer(o)||(o=Ze.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(Ze.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function UX(e,r){if(Ze.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||tl(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return c7(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return $X(e).length;default:if(n)return a?-1:c7(e).length;r=(""+r).toLowerCase(),n=!0}}Ze.byteLength=UX;function W7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return tTe(this,r,t);case"utf8":case"utf-8":return VX(this,r,t);case"ascii":return eTe(this,r,t);case"latin1":case"binary":return rTe(this,r,t);case"base64":return K7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return aTe(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Ze.prototype._isBuffer=!0;function tf(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}Ze.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};NX&&(Ze.prototype[NX]=Ze.prototype.inspect);Ze.prototype.compare=function(r,t,a,n,i){if(tl(r,Uint8Array)&&(r=Ze.from(r,r.offset,r.byteLength)),!Ze.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,p7(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=Ze.from(r,a)),Ze.isBuffer(r))return r.length===0?-1:IX(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):IX(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function IX(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return j7e(this,r,t,a);case"utf8":case"utf-8":return Z7e(this,r,t,a);case"ascii":case"latin1":case"binary":return X7e(this,r,t,a);case"base64":return J7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};Ze.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function K7e(e,r,t){return r===0&&t===e.length?s7.fromByteArray(e):s7.fromByteArray(e.slice(r,t))}function VX(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return Q7e(a)}var zX=4096;function Q7e(e){let r=e.length;if(r<=zX)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}Ze.prototype.readUintLE=Ze.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Wa(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Wa(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};Ze.prototype.readUint8=Ze.prototype.readUInt8=function(r,t){return r=r>>>0,t||Wa(r,1,this.length),this[r]};Ze.prototype.readUint16LE=Ze.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Wa(r,2,this.length),this[r]|this[r+1]<<8};Ze.prototype.readUint16BE=Ze.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Wa(r,2,this.length),this[r]<<8|this[r+1]};Ze.prototype.readUint32LE=Ze.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Wa(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Ze.prototype.readUint32BE=Ze.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Wa(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Ze.prototype.readBigUInt64LE=qs(function(r){r=r>>>0,dv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&ad(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,dv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&ad(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Wa(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};Ze.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Wa(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};Ze.prototype.readInt8=function(r,t){return r=r>>>0,t||Wa(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Ze.prototype.readInt16LE=function(r,t){r=r>>>0,t||Wa(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};Ze.prototype.readInt16BE=function(r,t){r=r>>>0,t||Wa(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};Ze.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Wa(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Ze.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Wa(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Ze.prototype.readBigInt64LE=qs(function(r){r=r>>>0,dv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&ad(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,dv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&ad(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Wa(r,4,this.length),hv.read(this,r,!0,23,4)};Ze.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Wa(r,4,this.length),hv.read(this,r,!1,23,4)};Ze.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Wa(r,8,this.length),hv.read(this,r,!0,52,8)};Ze.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Wa(r,8,this.length),hv.read(this,r,!1,52,8)};function Gn(e,r,t,a,n,i){if(!Ze.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Ze.prototype.writeUintLE=Ze.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Gn(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Gn(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};Ze.prototype.writeUint8=Ze.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,1,255,0),this[t]=r&255,t+1};Ze.prototype.writeUint16LE=Ze.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};Ze.prototype.writeUint16BE=Ze.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};Ze.prototype.writeUint32LE=Ze.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};Ze.prototype.writeUint32BE=Ze.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function YX(e,r,t,a,n){JX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function WX(e,r,t,a,n){JX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}Ze.prototype.writeBigUInt64LE=qs(function(r,t=0){return YX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Ze.prototype.writeBigUInt64BE=qs(function(r,t=0){return WX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Ze.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Gn(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};Ze.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Gn(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};Ze.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};Ze.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};Ze.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};Ze.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};Ze.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};Ze.prototype.writeBigInt64LE=qs(function(r,t=0){return YX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ze.prototype.writeBigInt64BE=qs(function(r,t=0){return WX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function jX(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function ZX(e,r,t,a,n){return r=+r,t=t>>>0,n||jX(e,r,t,4,34028234663852886e22,-34028234663852886e22),hv.write(e,r,t,a,23,4),t+4}Ze.prototype.writeFloatLE=function(r,t,a){return ZX(this,r,t,!0,a)};Ze.prototype.writeFloatBE=function(r,t,a){return ZX(this,r,t,!1,a)};function XX(e,r,t,a,n){return r=+r,t=t>>>0,n||jX(e,r,t,8,17976931348623157e292,-17976931348623157e292),hv.write(e,r,t,a,52,8),t+8}Ze.prototype.writeDoubleLE=function(r,t,a){return XX(this,r,t,!0,a)};Ze.prototype.writeDoubleBE=function(r,t,a){return XX(this,r,t,!1,a)};Ze.prototype.copy=function(r,t,a,n){if(!Ze.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=OX(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=OX(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function OX(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function nTe(e,r,t){dv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&ad(r,e.length-(t+1))}function JX(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new vv.ERR_OUT_OF_RANGE("value",l,e)}nTe(a,n,i)}function dv(e,r){if(typeof e!="number")throw new vv.ERR_INVALID_ARG_TYPE(r,"number",e)}function ad(e,r,t){throw Math.floor(e)!==e?(dv(e,t),new vv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new vv.ERR_BUFFER_OUT_OF_BOUNDS:new vv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var iTe=/[^+/0-9A-Za-z-_]/g;function oTe(e){if(e=e.split("=")[0],e=e.trim().replace(iTe,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function c7(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function lTe(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function $X(e){return s7.toByteArray(oTe(e))}function Xg(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function tl(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function p7(e){return e!==e}var uTe=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function qs(e){return typeof BigInt=="undefined"?fTe:e}function fTe(){throw new Error("BigInt not supported")}});var Jg=N((BOe,KX)=>{"use strict";KX.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var nd=N((HOe,QX)=>{"use strict";var cTe=Jg();QX.exports=function(){return cTe()&&!!Symbol.toStringTag}});var y7=N((UOe,eJ)=>{"use strict";eJ.exports=Object});var tJ=N((GOe,rJ)=>{"use strict";rJ.exports=Error});var nJ=N((VOe,aJ)=>{"use strict";aJ.exports=EvalError});var oJ=N((YOe,iJ)=>{"use strict";iJ.exports=RangeError});var sJ=N((WOe,lJ)=>{"use strict";lJ.exports=ReferenceError});var m7=N((jOe,uJ)=>{"use strict";uJ.exports=SyntaxError});var mv=N((ZOe,fJ)=>{"use strict";fJ.exports=TypeError});var vJ=N((XOe,cJ)=>{"use strict";cJ.exports=URIError});var dJ=N((JOe,hJ)=>{"use strict";hJ.exports=Math.abs});var yJ=N(($Oe,pJ)=>{"use strict";pJ.exports=Math.floor});var gJ=N((KOe,mJ)=>{"use strict";mJ.exports=Math.max});var xJ=N((QOe,bJ)=>{"use strict";bJ.exports=Math.min});var wJ=N((eBe,_J)=>{"use strict";_J.exports=Math.pow});var AJ=N((rBe,TJ)=>{"use strict";TJ.exports=Math.round});var kJ=N((tBe,MJ)=>{"use strict";MJ.exports=Number.isNaN||function(r){return r!==r}});var qJ=N((aBe,SJ)=>{"use strict";var vTe=kJ();SJ.exports=function(r){return vTe(r)||r===0?r:r<0?-1:1}});var CJ=N((nBe,LJ)=>{"use strict";LJ.exports=Object.getOwnPropertyDescriptor});var af=N((iBe,EJ)=>{"use strict";var $g=CJ();if($g)try{$g([],"length")}catch(e){$g=null}EJ.exports=$g});var id=N((oBe,DJ)=>{"use strict";var Kg=Object.defineProperty||!1;if(Kg)try{Kg({},"a",{value:1})}catch(e){Kg=!1}DJ.exports=Kg});var FJ=N((lBe,PJ)=>{"use strict";var RJ=typeof Symbol!="undefined"&&Symbol,hTe=Jg();PJ.exports=function(){return typeof RJ!="function"||typeof Symbol!="function"||typeof RJ("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hTe()}});var g7=N((sBe,NJ)=>{"use strict";NJ.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var b7=N((uBe,IJ)=>{"use strict";var dTe=y7();IJ.exports=dTe.getPrototypeOf||null});var BJ=N((fBe,OJ)=>{"use strict";var pTe="Function.prototype.bind called on incompatible ",yTe=Object.prototype.toString,mTe=Math.max,gTe="[object Function]",zJ=function(r,t){for(var a=[],n=0;n{"use strict";var _Te=BJ();HJ.exports=Function.prototype.bind||_Te});var Qg=N((vBe,UJ)=>{"use strict";UJ.exports=Function.prototype.call});var x7=N((hBe,GJ)=>{"use strict";GJ.exports=Function.prototype.apply});var YJ=N((dBe,VJ)=>{"use strict";VJ.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var jJ=N((pBe,WJ)=>{"use strict";var wTe=gv(),TTe=x7(),ATe=Qg(),MTe=YJ();WJ.exports=MTe||wTe.call(ATe,TTe)});var XJ=N((yBe,ZJ)=>{"use strict";var kTe=gv(),STe=mv(),qTe=Qg(),LTe=jJ();ZJ.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new STe("a function is required");return LTe(kTe,qTe,r)}});var r$=N((mBe,e$)=>{"use strict";var CTe=XJ(),JJ=af(),KJ;try{KJ=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var _7=!!KJ&&JJ&&JJ(Object.prototype,"__proto__"),QJ=Object,$J=QJ.getPrototypeOf;e$.exports=_7&&typeof _7.get=="function"?CTe([_7.get]):typeof $J=="function"?function(r){return $J(r==null?r:QJ(r))}:!1});var o$=N((gBe,i$)=>{"use strict";var t$=g7(),a$=b7(),n$=r$();i$.exports=t$?function(r){return t$(r)}:a$?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return a$(r)}:n$?function(r){return n$(r)}:null});var s$=N((bBe,l$)=>{"use strict";var ETe=Function.prototype.call,DTe=Object.prototype.hasOwnProperty,RTe=gv();l$.exports=RTe.call(ETe,DTe)});var t2=N((xBe,d$)=>{"use strict";var ot,PTe=y7(),FTe=tJ(),NTe=nJ(),ITe=oJ(),zTe=sJ(),wv=m7(),_v=mv(),OTe=vJ(),BTe=dJ(),HTe=yJ(),UTe=gJ(),GTe=xJ(),VTe=wJ(),YTe=AJ(),WTe=qJ(),v$=Function,w7=function(e){try{return v$('"use strict"; return ('+e+").constructor;")()}catch(r){}},od=af(),jTe=id(),T7=function(){throw new _v},ZTe=od?function(){try{return arguments.callee,T7}catch(e){try{return od(arguments,"callee").get}catch(r){return T7}}}():T7,bv=FJ()(),ja=o$(),XTe=b7(),JTe=g7(),h$=x7(),ld=Qg(),xv={},$Te=typeof Uint8Array=="undefined"||!ja?ot:ja(Uint8Array),nf={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":bv&&ja?ja([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":xv,"%AsyncGenerator%":xv,"%AsyncGeneratorFunction%":xv,"%AsyncIteratorPrototype%":xv,"%Atomics%":typeof Atomics=="undefined"?ot:Atomics,"%BigInt%":typeof BigInt=="undefined"?ot:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ot:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ot:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ot:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":FTe,"%eval%":eval,"%EvalError%":NTe,"%Float16Array%":typeof Float16Array=="undefined"?ot:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?ot:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ot:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ot:FinalizationRegistry,"%Function%":v$,"%GeneratorFunction%":xv,"%Int8Array%":typeof Int8Array=="undefined"?ot:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ot:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":bv&&ja?ja(ja([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map=="undefined"?ot:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!bv||!ja?ot:ja(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":PTe,"%Object.getOwnPropertyDescriptor%":od,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ot:Promise,"%Proxy%":typeof Proxy=="undefined"?ot:Proxy,"%RangeError%":ITe,"%ReferenceError%":zTe,"%Reflect%":typeof Reflect=="undefined"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ot:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!bv||!ja?ot:ja(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":bv&&ja?ja(""[Symbol.iterator]()):ot,"%Symbol%":bv?Symbol:ot,"%SyntaxError%":wv,"%ThrowTypeError%":ZTe,"%TypedArray%":$Te,"%TypeError%":_v,"%Uint8Array%":typeof Uint8Array=="undefined"?ot:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ot:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ot:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ot:Uint32Array,"%URIError%":OTe,"%WeakMap%":typeof WeakMap=="undefined"?ot:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ot:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ot:WeakSet,"%Function.prototype.call%":ld,"%Function.prototype.apply%":h$,"%Object.defineProperty%":jTe,"%Object.getPrototypeOf%":XTe,"%Math.abs%":BTe,"%Math.floor%":HTe,"%Math.max%":UTe,"%Math.min%":GTe,"%Math.pow%":VTe,"%Math.round%":YTe,"%Math.sign%":WTe,"%Reflect.getPrototypeOf%":JTe};if(ja)try{null.error}catch(e){u$=ja(ja(e)),nf["%Error.prototype%"]=u$}var u$,KTe=function e(r){var t;if(r==="%AsyncFunction%")t=w7("async function () {}");else if(r==="%GeneratorFunction%")t=w7("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=w7("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&ja&&(t=ja(n.prototype))}return nf[r]=t,t},f$={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},sd=gv(),e2=s$(),QTe=sd.call(ld,Array.prototype.concat),eAe=sd.call(h$,Array.prototype.splice),c$=sd.call(ld,String.prototype.replace),r2=sd.call(ld,String.prototype.slice),rAe=sd.call(ld,RegExp.prototype.exec),tAe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,aAe=/\\(\\)?/g,nAe=function(r){var t=r2(r,0,1),a=r2(r,-1);if(t==="%"&&a!=="%")throw new wv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new wv("invalid intrinsic syntax, expected opening `%`");var n=[];return c$(r,tAe,function(i,o,l,s){n[n.length]=l?c$(s,aAe,"$1"):o||i}),n},iAe=function(r,t){var a=r,n;if(e2(f$,a)&&(n=f$[a],a="%"+n[0]+"%"),e2(nf,a)){var i=nf[a];if(i===xv&&(i=KTe(a)),typeof i=="undefined"&&!t)throw new _v("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new wv("intrinsic "+r+" does not exist!")};d$.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new _v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new _v('"allowMissing" argument must be a boolean');if(rAe(/^%?[^%]*%?$/,r)===null)throw new wv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=nAe(r),n=a.length>0?a[0]:"",i=iAe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],eAe(a,QTe([0,1],u)));for(var f=1,c=!0;f=a.length){var y=od(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=e2(l,v),l=l[v];c&&!s&&(nf[o]=l)}}return l}});var g$=N((_Be,m$)=>{"use strict";var p$=id(),oAe=m7(),Tv=mv(),y$=af();m$.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new Tv("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Tv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Tv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Tv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Tv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Tv("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!y$&&y$(r,t);if(p$)p$(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new oAe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var M7=N((wBe,x$)=>{"use strict";var A7=id(),b$=function(){return!!A7};b$.hasArrayLengthDefineBug=function(){if(!A7)return null;try{return A7([],"length",{value:1}).length!==1}catch(r){return!0}};x$.exports=b$});var M$=N((TBe,A$)=>{"use strict";var lAe=t2(),_$=g$(),sAe=M7()(),w$=af(),T$=mv(),uAe=lAe("%Math.floor%");A$.exports=function(r,t){if(typeof r!="function")throw new T$("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||uAe(t)!==t)throw new T$("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&w$){var o=w$(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(sAe?_$(r,"length",t,!0,!0):_$(r,"length",t)),r}});var ud=N((ABe,a2)=>{"use strict";var k7=gv(),n2=t2(),fAe=M$(),cAe=mv(),q$=n2("%Function.prototype.apply%"),L$=n2("%Function.prototype.call%"),C$=n2("%Reflect.apply%",!0)||k7.call(L$,q$),k$=id(),vAe=n2("%Math.max%");a2.exports=function(r){if(typeof r!="function")throw new cAe("a function is required");var t=C$(k7,L$,arguments);return fAe(t,1+vAe(0,r.length-(arguments.length-1)),!0)};var S$=function(){return C$(k7,q$,arguments)};k$?k$(a2.exports,"apply",{value:S$}):a2.exports.apply=S$});var Av=N((MBe,R$)=>{"use strict";var E$=t2(),D$=ud(),hAe=D$(E$("String.prototype.indexOf"));R$.exports=function(r,t){var a=E$(r,!!t);return typeof a=="function"&&hAe(r,".prototype.")>-1?D$(a):a}});var N$=N((kBe,F$)=>{"use strict";var dAe=nd()(),pAe=Av(),S7=pAe("Object.prototype.toString"),i2=function(r){return dAe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:S7(r)==="[object Arguments]"},P$=function(r){return i2(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&S7(r)!=="[object Array]"&&S7(r.callee)==="[object Function]"},yAe=function(){return i2(arguments)}();i2.isLegacyArguments=P$;F$.exports=yAe?i2:P$});var O$=N((SBe,z$)=>{"use strict";var mAe=Object.prototype.toString,gAe=Function.prototype.toString,bAe=/^\s*(?:function)?\*/,I$=nd()(),q7=Object.getPrototypeOf,xAe=function(){if(!I$)return!1;try{return Function("return function*() {}")()}catch(e){}},L7;z$.exports=function(r){if(typeof r!="function")return!1;if(bAe.test(gAe.call(r)))return!0;if(!I$){var t=mAe.call(r);return t==="[object GeneratorFunction]"}if(!q7)return!1;if(typeof L7=="undefined"){var a=xAe();L7=a?q7(a):!1}return q7(r)===L7}});var G$=N((qBe,U$)=>{"use strict";var H$=Function.prototype.toString,Mv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,E7,o2;if(typeof Mv=="function"&&typeof Object.defineProperty=="function")try{E7=Object.defineProperty({},"length",{get:function(){throw o2}}),o2={},Mv(function(){throw 42},null,E7)}catch(e){e!==o2&&(Mv=null)}else Mv=null;var _Ae=/^\s*class\b/,D7=function(r){try{var t=H$.call(r);return _Ae.test(t)}catch(a){return!1}},C7=function(r){try{return D7(r)?!1:(H$.call(r),!0)}catch(t){return!1}},l2=Object.prototype.toString,wAe="[object Object]",TAe="[object Function]",AAe="[object GeneratorFunction]",MAe="[object HTMLAllCollection]",kAe="[object HTML document.all class]",SAe="[object HTMLCollection]",qAe=typeof Symbol=="function"&&!!Symbol.toStringTag,LAe=!(0 in[,]),R7=function(){return!1};typeof document=="object"&&(B$=document.all,l2.call(B$)===l2.call(document.all)&&(R7=function(r){if((LAe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=l2.call(r);return(t===MAe||t===kAe||t===SAe||t===wAe)&&r("")==null}catch(a){}return!1}));var B$;U$.exports=Mv?function(r){if(R7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{Mv(r,null,E7)}catch(t){if(t!==o2)return!1}return!D7(r)&&C7(r)}:function(r){if(R7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(qAe)return C7(r);if(D7(r))return!1;var t=l2.call(r);return t!==TAe&&t!==AAe&&!/^\[object HTML/.test(t)?!1:C7(r)}});var P7=N((LBe,Y$)=>{"use strict";var CAe=G$(),EAe=Object.prototype.toString,V$=Object.prototype.hasOwnProperty,DAe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),EAe.call(r)==="[object Array]"?DAe(r,t,n):typeof r=="string"?RAe(r,t,n):PAe(r,t,n)};Y$.exports=FAe});var N7=N((CBe,W$)=>{"use strict";var F7=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],NAe=typeof globalThis=="undefined"?window:globalThis;W$.exports=function(){for(var r=[],t=0;t{"use strict";var u2=P7(),IAe=N7(),j$=ud(),O7=Av(),s2=af(),zAe=O7("Object.prototype.toString"),X$=nd()(),Z$=typeof globalThis=="undefined"?window:globalThis,z7=IAe(),B7=O7("String.prototype.slice"),I7=Object.getPrototypeOf,OAe=O7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:HAe(r)}return s2?BAe(r):null}});var aK=N((DBe,tK)=>{"use strict";var K$=P7(),UAe=N7(),U7=Av(),GAe=U7("Object.prototype.toString"),Q$=nd()(),c2=af(),VAe=typeof globalThis=="undefined"?window:globalThis,eK=UAe(),YAe=U7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return c2?jAe(r):!1}});var Y7=N(lt=>{"use strict";var ZAe=N$(),XAe=O$(),_o=$$(),nK=aK();function kv(e){return e.call.bind(e)}var iK=typeof BigInt!="undefined",oK=typeof Symbol!="undefined",Hi=kv(Object.prototype.toString),JAe=kv(Number.prototype.valueOf),$Ae=kv(String.prototype.valueOf),KAe=kv(Boolean.prototype.valueOf);iK&&(lK=kv(BigInt.prototype.valueOf));var lK;oK&&(sK=kv(Symbol.prototype.valueOf));var sK;function cd(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}lt.isArgumentsObject=ZAe;lt.isGeneratorFunction=XAe;lt.isTypedArray=nK;function QAe(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}lt.isPromise=QAe;function e8e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):nK(e)||fK(e)}lt.isArrayBufferView=e8e;function r8e(e){return _o(e)==="Uint8Array"}lt.isUint8Array=r8e;function t8e(e){return _o(e)==="Uint8ClampedArray"}lt.isUint8ClampedArray=t8e;function a8e(e){return _o(e)==="Uint16Array"}lt.isUint16Array=a8e;function n8e(e){return _o(e)==="Uint32Array"}lt.isUint32Array=n8e;function i8e(e){return _o(e)==="Int8Array"}lt.isInt8Array=i8e;function o8e(e){return _o(e)==="Int16Array"}lt.isInt16Array=o8e;function l8e(e){return _o(e)==="Int32Array"}lt.isInt32Array=l8e;function s8e(e){return _o(e)==="Float32Array"}lt.isFloat32Array=s8e;function u8e(e){return _o(e)==="Float64Array"}lt.isFloat64Array=u8e;function f8e(e){return _o(e)==="BigInt64Array"}lt.isBigInt64Array=f8e;function c8e(e){return _o(e)==="BigUint64Array"}lt.isBigUint64Array=c8e;function v2(e){return Hi(e)==="[object Map]"}v2.working=typeof Map!="undefined"&&v2(new Map);function v8e(e){return typeof Map=="undefined"?!1:v2.working?v2(e):e instanceof Map}lt.isMap=v8e;function h2(e){return Hi(e)==="[object Set]"}h2.working=typeof Set!="undefined"&&h2(new Set);function h8e(e){return typeof Set=="undefined"?!1:h2.working?h2(e):e instanceof Set}lt.isSet=h8e;function d2(e){return Hi(e)==="[object WeakMap]"}d2.working=typeof WeakMap!="undefined"&&d2(new WeakMap);function d8e(e){return typeof WeakMap=="undefined"?!1:d2.working?d2(e):e instanceof WeakMap}lt.isWeakMap=d8e;function V7(e){return Hi(e)==="[object WeakSet]"}V7.working=typeof WeakSet!="undefined"&&V7(new WeakSet);function p8e(e){return V7(e)}lt.isWeakSet=p8e;function p2(e){return Hi(e)==="[object ArrayBuffer]"}p2.working=typeof ArrayBuffer!="undefined"&&p2(new ArrayBuffer);function uK(e){return typeof ArrayBuffer=="undefined"?!1:p2.working?p2(e):e instanceof ArrayBuffer}lt.isArrayBuffer=uK;function y2(e){return Hi(e)==="[object DataView]"}y2.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&y2(new DataView(new ArrayBuffer(1),0,1));function fK(e){return typeof DataView=="undefined"?!1:y2.working?y2(e):e instanceof DataView}lt.isDataView=fK;var G7=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function fd(e){return Hi(e)==="[object SharedArrayBuffer]"}function cK(e){return typeof G7=="undefined"?!1:(typeof fd.working=="undefined"&&(fd.working=fd(new G7)),fd.working?fd(e):e instanceof G7)}lt.isSharedArrayBuffer=cK;function y8e(e){return Hi(e)==="[object AsyncFunction]"}lt.isAsyncFunction=y8e;function m8e(e){return Hi(e)==="[object Map Iterator]"}lt.isMapIterator=m8e;function g8e(e){return Hi(e)==="[object Set Iterator]"}lt.isSetIterator=g8e;function b8e(e){return Hi(e)==="[object Generator]"}lt.isGeneratorObject=b8e;function x8e(e){return Hi(e)==="[object WebAssembly.Module]"}lt.isWebAssemblyCompiledModule=x8e;function vK(e){return cd(e,JAe)}lt.isNumberObject=vK;function hK(e){return cd(e,$Ae)}lt.isStringObject=hK;function dK(e){return cd(e,KAe)}lt.isBooleanObject=dK;function pK(e){return iK&&cd(e,lK)}lt.isBigIntObject=pK;function yK(e){return oK&&cd(e,sK)}lt.isSymbolObject=yK;function _8e(e){return vK(e)||hK(e)||dK(e)||pK(e)||yK(e)}lt.isBoxedPrimitive=_8e;function w8e(e){return typeof Uint8Array!="undefined"&&(uK(e)||cK(e))}lt.isAnyArrayBuffer=w8e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(lt,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var W7=N((PBe,mK)=>{mK.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var K7=N(st=>{var gK=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),J7(r)?t.showHidden=r:r&&st._extend(t,r),lf(t.showHidden)&&(t.showHidden=!1),lf(t.depth)&&(t.depth=2),lf(t.colors)&&(t.colors=!1),lf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=A8e),x2(t,e,t.depth)}st.inspect=Ls;Ls.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Ls.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function A8e(e,r){var t=Ls.styles[r];return t?"\x1B["+Ls.colors[t][0]+"m"+e+"\x1B["+Ls.colors[t][1]+"m":e}function M8e(e,r){return e}function k8e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function x2(e,r,t){if(e.customInspect&&r&&b2(r.inspect)&&r.inspect!==st.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return T2(a)||(a=x2(e,a,t)),a}var n=S8e(e,r);if(n)return n;var i=Object.keys(r),o=k8e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),hd(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return j7(r);if(i.length===0){if(b2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(vd(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(_2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(hd(r))return j7(r)}var s="",u=!1,f=["{","}"];if(xK(r)&&(u=!0,f=["[","]"]),b2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(vd(r)&&(s=" "+RegExp.prototype.toString.call(r)),_2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),hd(r)&&(s=" "+j7(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return vd(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=q8e(e,r,t,o,i):v=i.map(function(d){return X7(e,r,t,o,d,u)}),e.seen.pop(),L8e(v,s,f)}function S8e(e,r){if(lf(r))return e.stylize("undefined","undefined");if(T2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(_K(r))return e.stylize(""+r,"number");if(J7(r))return e.stylize(""+r,"boolean");if(w2(r))return e.stylize("null","null")}function j7(e){return"["+Error.prototype.toString.call(e)+"]"}function q8e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o{var foe=Object.defineProperty,coe=Object.defineProperties;var voe=Object.getOwnPropertyDescriptors;var K8=Object.getOwnPropertySymbols;var hoe=Object.prototype.hasOwnProperty,doe=Object.prototype.propertyIsEnumerable;var Q8=(e,r,t)=>r in e?foe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Qs=(e,r)=>{for(var t in r||(r={}))hoe.call(r,t)&&Q8(e,t,r[t]);if(K8)for(var t of K8(r))doe.call(r,t)&&Q8(e,t,r[t]);return e},gp=(e,r)=>coe(e,voe(r));var N=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var Kv=N(eM=>{"use strict";eM.version="3.7.0"});var tM=N((rM,bp)=>{(function(r,t,a){t[r]=t[r]||a(),typeof bp!="undefined"&&bp.exports&&(bp.exports=t[r])})("Promise",typeof window!="undefined"?window:rM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,_,b,w){return Object.defineProperty(T,_,{value:b,writable:!0,configurable:w!==!1})}}catch(x){r=function(_,b,w){return _[b]=w,_}}a=(function(){var T,_,b;function w(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){b=new w(M,S),_?_.next=b:T=b,_=b,b=void 0},drain:function(){var M=T;for(T=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(x,T){a.add(x,T),t||(t=i(a.drain))}function l(x){var T,_=typeof x;return x!=null&&(_=="object"||_=="function")&&(T=x.then),typeof T=="function"?T:!1}function s(){for(var x=0;x0&&o(s,_))}catch(b){c.call(new d(_),b)}}}function c(x){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=x,T.state=2,T.chain.length>0&&o(s,T))}function v(x,T,_,b){for(var w=0;w{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,q=new Array(A);A--;)q[A]=g[A];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,q){s.call(this,g,A,q+"")},u.setProperty=function(g,A,q){f.call(this,g,A+"",q)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,q=h.length,C,L;if(arguments.length===1){for(;++A=L){C=L;break}for(;++AL&&(C=L)}else{for(;++A=L){C=L;break}for(;++AL&&(C=L)}return C},e.max=function(h,g){var A=-1,q=h.length,C,L;if(arguments.length===1){for(;++A=L){C=L;break}for(;++AC&&(C=L)}else{for(;++A=L){C=L;break}for(;++AC&&(C=L)}return C},e.extent=function(h,g){var A=-1,q=h.length,C,L,O;if(arguments.length===1){for(;++A=L){C=O=L;break}for(;++AL&&(C=L),O=L){C=O=L;break}for(;++AL&&(C=L),O1)return O/(U-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;h(g[L],A)<0?q=L+1:C=L}return q},right:function(g,A,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;h(g[L],A)>0?C=L:q=L+1}return q}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(q=arguments.length)<3&&(A=h.length,q<2&&(g=0));for(var q=A-g,C,L;q;)L=Math.random()*q--|0,C=h[q+g],h[q+g]=h[L+g],h[L+g]=C;return h},e.permute=function(h,g){for(var A=g.length,q=new Array(A);A--;)q[A]=h[g[A]];return q},e.pairs=function(h){for(var g=0,A=h.length-1,q,C=h[0],L=new Array(A<0?0:A);g=0;)for(O=h[g],A=O.length;--A>=0;)L[--C]=O[A];return L};var x=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var q=[],C=T(x(A)),L=-1,O;if(h*=C,g*=C,A*=C,A<0)for(;(O=h+A*++L)>g;)q.push(O/C);else for(;(O=h+A*++L)=g.length)return C?C.call(h,U):q?U.sort(q):U;for(var $=-1,re=U.length,te=g[J++],we,ke,ae,pe=new b,ge;++$=g.length)return F;var J=[],$=A[U++];return F.forEach(function(re,te){J.push({key:re,values:O(te,U)})}),$?J.sort(function(re,te){return $(re.key,te.key)}):J}return h.map=function(F,U){return L(U,F,0)},h.entries=function(F){return O(L(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return q=F,h},h.rollup=function(F){return C=F,h},h},e.set=function(h){var g=new z;if(h)for(var A=0,q=h.length;A=0&&(q=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(q):this[h].on(q,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(q,null);return this}};function W(h){var g=[],A=new b;function q(){for(var C=g,L=-1,O=C.length,F;++L=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),ie.hasOwnProperty(A)?{space:ie[A],local:h}:h}},ce.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(he(g,h[g]));return this}return this.each(he(h,g))};function he(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function q(){this.removeAttributeNS(h.space,h.local)}function C(){this.setAttribute(h,g)}function L(){this.setAttributeNS(h.space,h.local,g)}function O(){var U=g.apply(this,arguments);U==null?this.removeAttribute(h):this.setAttribute(h,U)}function F(){var U=g.apply(this,arguments);U==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,U)}return g==null?h.local?q:A:typeof g=="function"?h.local?F:O:h.local?L:C}function me(h){return h.trim().replace(/\s+/g," ")}ce.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),q=(h=De(h)).length,C=-1;if(g=A.classList){for(;++C=0;)(L=A[q])&&(C&&C!==L.nextSibling&&C.parentNode.insertBefore(L,C),C=L);return this},ce.sort=function(h){h=Ae.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=C+1);!(U=O[g])&&++g0&&(h=h.slice(0,C));var O=Be.get(h);O&&(h=O,L=Ve);function F(){var $=this[q];$&&(this.removeEventListener(h,$,$.$),delete this[q])}function U(){var $=L(g,t(arguments));F.call(this),this.addEventListener(h,this[q]=$,$.$=A),$._=g}function J(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),re;for(var te in this)if(re=te.match($)){var we=this[te];this.removeEventListener(re[1],we,we.$),delete this[te]}}return C?g?U:F:g?H:J}var Be=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Be.forEach(function(h){"on"+h in a&&Be.remove(h)});function Ze(h,g){return function(A){var q=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=q}}}function Ve(h,g){var A=Ze(h,g);return function(q){var C=this,L=q.relatedTarget;(!L||L!==C&&!(L.compareDocumentPosition(C)&8))&&A.call(C,q)}}var We,lr=0;function rr(h){var g=".dragsuppress-"+ ++lr,A="click"+g,q=e.select(i(h)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(We==null&&(We="onselectstart"in h?!1:Y(h.style,"userSelect")),We){var C=n(h).style,L=C[We];C[We]="none"}return function(O){if(q.on(g,null),We&&(C[We]=L),O){var F=function(){q.on(A,null)};q.on(A,function(){ee(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ie(h,oe())};var er=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ie(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var q=A.createSVGPoint();if(er<0){var C=i(h);if(C.scrollX||C.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=A[0][0].getScreenCTM();er=!(L.f||L.e),A.remove()}}return er?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(h.getScreenCTM().inverse()),[q.x,q.y]}var O=h.getBoundingClientRect();return[g.clientX-O.left-h.clientLeft,g.clientY-O.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=oe().changedTouches),g){for(var q=0,C=g.length,L;q0?1:h<0?-1:0}function et(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function qt(h){return h>1?0:h<-1?Fe:Math.acos(h)}function ct(h){return h>1?ur:h<-1?-ur:Math.asin(h)}function Ot(h){return((h=Math.exp(h))-1/h)/2}function gt(h){return((h=Math.exp(h))+1/h)/2}function Ta(h){return((h=Math.exp(2*h))-1)/(h+1)}function Zt(h){return(h=Math.sin(h/2))*h}var Jt=Math.SQRT2,za=2,fa=4;e.interpolateZoom=function(h,g){var A=h[0],q=h[1],C=h[2],L=g[0],O=g[1],F=g[2],U=L-A,J=O-q,$=U*U+J*J,re,te;if($0&&(nr=nr.transition().duration(O)),nr.call(Se.event)}function pr(){pe&&pe.domain(ae.range().map(function(nr){return(nr-h.x)/h.k}).map(ae.invert)),Me&&Me.domain(ge.range().map(function(nr){return(nr-h.y)/h.k}).map(ge.invert))}function yr(nr){F++||nr({type:"zoomstart"})}function Er(nr){pr(),nr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function gr(nr){--F||(nr({type:"zoomend"}),A=null)}function kr(){var nr=this,Dr=ke.of(nr,arguments),Pr=0,nt=e.select(i(nr)).on(J,Ha).on($,nn),Bt=xe(e.mouse(nr)),ga=rr(nr);dp.call(nr),yr(Dr);function Ha(){Pr=1,hr(e.mouse(nr),Bt),Er(Dr)}function nn(){nt.on(J,null).on($,null),ga(Pr),gr(Dr)}}function at(){var nr=this,Dr=ke.of(nr,arguments),Pr={},nt=0,Bt,ga=".zoom-"+e.event.changedTouches[0].identifier,Ha="touchmove"+ga,nn="touchend"+ga,mn=[],on=e.select(nr),Sn=rr(nr);qn(),yr(Dr),on.on(U,null).on(te,qn);function Ja(){var $i=e.touches(nr);return Bt=h.k,$i.forEach(function(Ua){Ua.identifier in Pr&&(Pr[Ua.identifier]=xe(Ua))}),$i}function qn(){var $i=e.event.target;e.select($i).on(Ha,$s).on(nn,uoe),mn.push($i);for(var Ua=e.event.changedTouches,si=0,ko=Ua.length;si1){var Ks=ui[0],Gl=ui[1],mp=Ks[0]-Gl[0],$8=Ks[1]-Gl[1];nt=mp*mp+$8*$8}}function $s(){var $i=e.touches(nr),Ua,si,ko,ui;dp.call(nr);for(var Df=0,Ks=$i.length;Df1?1:g,A=A<0?0:A>1?1:A,C=A<=.5?A*(1+g):A+g-A*g,q=2*A-C;function L(F){return F>360?F-=360:F<0&&(F+=360),F<60?q+(C-q)*F/60:F<180?C:F<240?q+(C-q)*(240-F)/60:q}function O(F){return Math.round(L(F)*255)}return new Wt(O(h+120),O(h),O(h-120))}e.hcl=ft;function ft(h,g,A){return this instanceof ft?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof ft?new ft(h.h,h.c,h.l):h instanceof Qt?Pt(h.l,h.a,h.b):Pt((h=fr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new ft(h,g,A)}var Da=ft.prototype=new Xr;Da.brighter=function(h){return new ft(this.h,this.c,Math.min(100,this.l+_t*(arguments.length?h:1)))},Da.darker=function(h){return new ft(this.h,this.c,Math.max(0,this.l-_t*(arguments.length?h:1)))},Da.rgb=function(){return Mn(this.h,this.c,this.l).rgb()};function Mn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Qt(A,Math.cos(h*=Mr)*g,Math.sin(h)*g)}e.lab=Qt;function Qt(h,g,A){return this instanceof Qt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Qt?new Qt(h.l,h.a,h.b):h instanceof ft?Mn(h.h,h.c,h.l):fr((h=Wt(h)).r,h.g,h.b):new Qt(h,g,A)}var _t=18,Vt=.95047,Yt=1,ll=1.08883,vt=Qt.prototype=new Xr;vt.brighter=function(h){return new Qt(Math.min(100,this.l+_t*(arguments.length?h:1)),this.a,this.b)},vt.darker=function(h){return new Qt(Math.max(0,this.l-_t*(arguments.length?h:1)),this.a,this.b)},vt.rgb=function(){return kn(this.l,this.a,this.b)};function kn(h,g,A){var q=(h+16)/116,C=q+g/500,L=q-A/200;return C=Ws(C)*Vt,q=Ws(q)*Yt,L=Ws(L)*ll,new Wt(ji(3.2404542*C-1.5371385*q-.4985314*L),ji(-.969266*C+1.8760108*q+.041556*L),ji(.0556434*C-.2040259*q+1.0572252*L))}function Pt(h,g,A){return h>0?new ft(Math.atan2(A,g)*Ir,Math.sqrt(g*g+A*A),h):new ft(NaN,NaN,h)}function Ws(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function yn(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function ji(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Wt;function Wt(h,g,A){return this instanceof Wt?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Wt?new Wt(h.r,h.g,h.b):Kr(""+h,Wt,Kt):new Wt(h,g,A)}function Xi(h){return new Wt(h>>16,h>>8&255,h&255)}function Bl(h){return Xi(h)+""}var Hl=Wt.prototype=new Xr;Hl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,q=this.b,C=30;return!g&&!A&&!q?new Wt(C,C,C):(g&&g>4,q=q>>4|q,C=U&240,C=C>>4|C,L=U&15,L=L<<4|L):h.length===7&&(q=(U&16711680)>>16,C=(U&65280)>>8,L=U&255)),g(q,C,L))}function ht(h,g,A){var q=Math.min(h/=255,g/=255,A/=255),C=Math.max(h,g,A),L=C-q,O,F,U=(C+q)/2;return L?(F=U<.5?L/(C+q):L/(2-C-q),h==C?O=(g-A)/L+(g0&&U<1?0:O),new $r(O,F,U)}function fr(h,g,A){h=Oa(h),g=Oa(g),A=Oa(A);var q=yn((.4124564*h+.3575761*g+.1804375*A)/Vt),C=yn((.2126729*h+.7151522*g+.072175*A)/Yt),L=yn((.0193339*h+.119192*g+.9503041*A)/ll);return Qt(116*C-16,500*(q-C),200*(C-L))}function Oa(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function At(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Ba=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Ba.forEach(function(h,g){Ba.set(h,Xi(g))});function Or(h){return typeof h=="function"?h:function(){return h}}e.functor=Or,e.xhr=Zi(B);function Zi(h){return function(g,A,q){return arguments.length===2&&typeof A=="function"&&(q=A,A=null),js(g,A,h,q)}}function js(h,g,A,q){var C={},L=e.dispatch("beforesend","progress","load","error"),O={},F=new XMLHttpRequest,U=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=J:F.onreadystatechange=function(){F.readyState>3&&J()};function J(){var $=F.status,re;if(!$&&cne(F)||$>=200&&$<300||$===304){try{re=A.call(C,F)}catch(te){L.error.call(C,te);return}L.load.call(C,re)}else L.error.call(C,F)}return F.onprogress=function($){var re=e.event;e.event=$;try{L.progress.call(C,F)}finally{e.event=re}},C.header=function($,re){return $=($+"").toLowerCase(),arguments.length<2?O[$]:(re==null?delete O[$]:O[$]=re+"",C)},C.mimeType=function($){return arguments.length?(g=$==null?null:$+"",C):g},C.responseType=function($){return arguments.length?(U=$,C):U},C.response=function($){return A=$,C},["get","post"].forEach(function($){C[$]=function(){return C.send.apply(C,[$].concat(t(arguments)))}}),C.send=function($,re,te){if(arguments.length===2&&typeof re=="function"&&(te=re,re=null),F.open($,h,!0),g!=null&&!("accept"in O)&&(O.accept=g+",*/*"),F.setRequestHeader)for(var we in O)F.setRequestHeader(we,O[we]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),U!=null&&(F.responseType=U),te!=null&&C.on("error",te).on("load",function(ke){te(null,ke)}),L.beforesend.call(C,F),F.send(re==null?null:re),C},C.abort=function(){return F.abort(),C},e.rebind(C,L,"on"),q==null?C:C.get(fne(q))}function fne(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function cne(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` +]`),q=h.charCodeAt(0);function C(J,$,re){arguments.length<3&&(re=$,$=null);var te=js(J,g,$==null?L:O($),re);return te.row=function(we){return arguments.length?te.response(($=we)==null?L:O(we)):$},te}function L(J){return C.parse(J.responseText)}function O(J){return function($){return C.parse($.responseText,J)}}C.parse=function(J,$){var re;return C.parseRows(J,function(te,we){if(re)return re(te,we-1);var ke=function(ae){for(var pe={},ge=te.length,Me=0;Me=ke)return te;if(Me)return Me=!1,re;var je=ae;if(J.charCodeAt(je)===34){for(var or=je;or++24?(isFinite(g)&&(clearTimeout(Kd),Kd=setTimeout(F3,g)),$d=0):($d=1,IA(F3))}e.timer.flush=function(){zA(),OA()};function zA(){for(var h=Date.now(),g=Zd;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function OA(){for(var h,g=Zd,A=1/0;g;)g.c?(g.t=0;--F)ae.push(C[J[re[F]][2]]);for(F=+we;F1&&et(h[A[q-2]],h[A[q-1]],h[C])<=0;)--q;A[q++]=C}return A.slice(0,q)}function vne(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return K(h,ep),h};var ep=e.geom.polygon.prototype=[];ep.area=function(){for(var h=-1,g=this.length,A,q=this[g-1],C=0;++hde)F=F.L;else if(O=g-yne(F,A),O>de){if(!F.R){q=F;break}F=F.R}else{L>-de?(q=F.P,C=F):O>-de?(q=F,C=F.N):q=C=F;break}var U=VA(h);if(qf.insert(q,U),!(!q&&!C)){if(q===C){Lf(q),C=VA(q.site),qf.insert(U,C),U.edge=C.edge=Yv(q.site,U.site),Cf(q),Cf(C);return}if(!C){U.edge=Yv(q.site,U.site);return}Lf(q),Lf(C);var J=q.site,$=J.x,re=J.y,te=h.x-$,we=h.y-re,ke=C.site,ae=ke.x-$,pe=ke.y-re,ge=2*(te*pe-we*ae),Me=te*te+we*we,Se=ae*ae+pe*pe,xe={x:(pe*Me-we*Se)/ge+$,y:(te*Se-ae*Me)/ge+re};rp(C.edge,J,ke,xe),U.edge=Yv(J,h,null,xe),C.edge=Yv(h,ke,null,xe),Cf(q),Cf(C)}}function YA(h,g){var A=h.site,q=A.x,C=A.y,L=C-g;if(!L)return q;var O=h.P;if(!O)return-1/0;A=O.site;var F=A.x,U=A.y,J=U-g;if(!J)return F;var $=F-q,re=1/L-1/J,te=$/J;return re?(-te+Math.sqrt(te*te-2*re*($*$/(-2*J)-U+J/2+C-L/2)))/re+q:(q+F)/2}function yne(h,g){var A=h.N;if(A)return YA(A,g);var q=h.site;return q.y===g?q.x:1/0}function WA(h){this.site=h,this.edges=[]}WA.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(jA),h.length};function mne(h){for(var g=h[0][0],A=h[1][0],q=h[0][1],C=h[1][1],L,O,F,U,J=Xs,$=J.length,re,te,we,ke,ae,pe;$--;)if(re=J[$],!(!re||!re.prepare()))for(we=re.edges,ke=we.length,te=0;tede||x(U-O)>de)&&(we.splice(te,0,new tp(wne(re.site,pe,x(F-g)de?{x:g,y:x(L-g)de?{x:x(O-C)de?{x:A,y:x(L-A)de?{x:x(O-q)=-Pe)){var te=U*U+J*J,we=$*$+pe*pe,ke=(pe*te-J*we)/re,ae=(U*we-$*te)/re,pe=ae+F,ge=GA.pop()||new gne;ge.arc=h,ge.site=C,ge.x=ke+O,ge.y=pe+Math.sqrt(ke*ke+ae*ae),ge.cy=pe,h.circle=ge;for(var Me=null,Se=Vv._;Se;)if(ge.y0)){if(ae/=we,we<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=A-F,!(!we&&ae<0)){if(ae/=we,we<0){if(ae>te)return;ae>re&&(re=ae)}else if(we>0){if(ae0)){if(ae/=ke,ke<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=q-U,!(!ke&&ae<0)){if(ae/=ke,ke<0){if(ae>te)return;ae>re&&(re=ae)}else if(ke>0){if(ae0&&(C.a={x:F+re*we,y:U+re*ke}),te<1&&(C.b={x:F+te*we,y:U+te*ke}),C}}}}}}function xne(h){for(var g=Sf,A=bne(h[0][0],h[0][1],h[1][0],h[1][1]),q=g.length,C;q--;)C=g[q],(!_ne(C,h)||!A(C)||x(C.a.x-C.b.x)=L)return;if($>te){if(!q)q={x:ke,y:O};else if(q.y>=F)return;A={x:ke,y:F}}else{if(!q)q={x:ke,y:F};else if(q.y1)if($>te){if(!q)q={x:(O-ge)/pe,y:O};else if(q.y>=F)return;A={x:(F-ge)/pe,y:F}}else{if(!q)q={x:(F-ge)/pe,y:F};else if(q.y=L)return;A={x:L,y:pe*L+ge}}else{if(!q)q={x:L,y:pe*L+ge};else if(q.x=$&&ge.x<=te&&ge.y>=re&&ge.y<=we?[[$,we],[te,we],[te,re],[$,re]]:[];Me.point=U[ae]}),J}function F(U){return U.map(function(J,$){return{x:Math.round(q(J,$)/de)*de,y:Math.round(C(J,$)/de)*de,i:$}})}return O.links=function(U){return H3(F(U)).edges.filter(function(J){return J.l&&J.r}).map(function(J){return{source:U[J.l.i],target:U[J.r.i]}})},O.triangles=function(U){var J=[];return H3(F(U)).cells.forEach(function($,re){for(var te=$.site,we=$.edges.sort(jA),ke=-1,ae=we.length,pe,ge,Me=we[ae-1].edge,Se=Me.l===te?Me.r:Me.l;++keSe&&(Se=$.x),$.y>xe&&(xe=$.y),we.push($.x),ke.push($.y);else for(ae=0;aeSe&&(Se=je),or>xe&&(xe=or),we.push(je),ke.push(or)}var hr=Se-ge,sr=xe-Me;hr>sr?xe=Me+hr:Se=ge+sr;function pr(gr,kr,at,ea,pt,nr,Dr,Pr){if(!(isNaN(at)||isNaN(ea)))if(gr.leaf){var nt=gr.x,Bt=gr.y;if(nt!=null)if(x(nt-at)+x(Bt-ea)<.01)yr(gr,kr,at,ea,pt,nr,Dr,Pr);else{var ga=gr.point;gr.x=gr.y=gr.point=null,yr(gr,ga,nt,Bt,pt,nr,Dr,Pr),yr(gr,kr,at,ea,pt,nr,Dr,Pr)}else gr.x=at,gr.y=ea,gr.point=kr}else yr(gr,kr,at,ea,pt,nr,Dr,Pr)}function yr(gr,kr,at,ea,pt,nr,Dr,Pr){var nt=(pt+Dr)*.5,Bt=(nr+Pr)*.5,ga=at>=nt,Ha=ea>=Bt,nn=Ha<<1|ga;gr.leaf=!1,gr=gr.nodes[nn]||(gr.nodes[nn]=JA()),ga?pt=nt:Dr=nt,Ha?nr=Bt:Pr=Bt,pr(gr,kr,at,ea,pt,nr,Dr,Pr)}var Er=JA();if(Er.add=function(gr){pr(Er,gr,+re(gr,++ae),+te(gr,ae),ge,Me,Se,xe)},Er.visit=function(gr){Xv(gr,Er,ge,Me,Se,xe)},Er.find=function(gr){return Sne(Er,gr[0],gr[1],ge,Me,Se,xe)},ae=-1,g==null){for(;++aeL||te>O||we=je,sr=A>=or,pr=sr<<1|hr,yr=pr+4;prA&&(L=g.slice(A,L),F[O]?F[O]+=L:F[++O]=L),(q=q[0])===(C=C[0])?F[O]?F[O]+=C:F[++O]=C:(F[++O]=null,U.push({i:O,x:sl(q,C)})),A=V3.lastIndex;return A=0&&!(q=e.interpolators[A](h,g)););return q}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Ba.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?U3:KA:g instanceof Xr?U3:Array.isArray(g)?ip:A==="object"&&isNaN(g)?$A:sl)(h,g)}],e.interpolateArray=ip;function ip(h,g){var A=[],q=[],C=h.length,L=g.length,O=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,q=g>=0?h.slice(g+1):"in";return A=qne.get(A)||QA,q=Cne.get(q)||B,Lne(q(A.apply(null,r.call(arguments,1))))};function Lne(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function e8(h){return function(g){return 1-h(1-g)}}function r8(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function Ene(h){return h*h}function Dne(h){return h*h*h}function Rne(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function Pne(h){return function(g){return Math.pow(g,h)}}function Fne(h){return 1-Math.cos(h*ur)}function Nne(h){return Math.pow(2,10*(h-1))}function Ine(h){return 1-Math.sqrt(1-h*h)}function zne(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/Ke*Math.asin(1/h):(h=1,A=g/4),function(q){return 1+h*Math.pow(2,-10*q)*Math.sin((q-A)*Ke/g)}}function One(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function Bne(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Hne;function Hne(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,q=h.c,C=h.l,L=g.h-A,O=g.c-q,F=g.l-C;return isNaN(O)&&(O=0,q=isNaN(q)?g.c:q),isNaN(L)?(L=0,A=isNaN(A)?g.h:A):L>180?L-=360:L<-180&&(L+=360),function(U){return Mn(A+L*U,q+O*U,C+F*U)+""}}e.interpolateHsl=Une;function Une(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,q=h.s,C=h.l,L=g.h-A,O=g.s-q,F=g.l-C;return isNaN(O)&&(O=0,q=isNaN(q)?g.s:q),isNaN(L)?(L=0,A=isNaN(A)?g.h:A):L>180?L-=360:L<-180&&(L+=360),function(U){return Kt(A+L*U,q+O*U,C+F*U)+""}}e.interpolateLab=Gne;function Gne(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,q=h.a,C=h.b,L=g.l-A,O=g.a-q,F=g.b-C;return function(U){return kn(A+L*U,q+O*U,C+F*U)+""}}e.interpolateRound=t8;function t8(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var q=g.transform.baseVal.consolidate()}return new a8(q?q.matrix:Yne)})(h)};function a8(h){var g=[h.a,h.b],A=[h.c,h.d],q=i8(g),C=n8(g,A),L=i8(Vne(A,g,-C))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),q.push({i:A.push(Ef(A)+"rotate(",null,")")-2,x:sl(h,g)})):g&&A.push(Ef(A)+"rotate("+g+")")}function Xne(h,g,A,q){h!==g?q.push({i:A.push(Ef(A)+"skewX(",null,")")-2,x:sl(h,g)}):g&&A.push(Ef(A)+"skewX("+g+")")}function Zne(h,g,A,q){if(h[0]!==g[0]||h[1]!==g[1]){var C=A.push(Ef(A)+"scale(",null,",",null,")");q.push({i:C-4,x:sl(h[0],g[0])},{i:C-2,x:sl(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(Ef(A)+"scale("+g+")")}function o8(h,g){var A=[],q=[];return h=e.transform(h),g=e.transform(g),Wne(h.translate,g.translate,A,q),jne(h.rotate,g.rotate,A,q),Xne(h.skew,g.skew,A,q),Zne(h.scale,g.scale,A,q),h=g=null,function(C){for(var L=-1,O=q.length,F;++L0?L=xe:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:L=0})):xe>0&&(g.start({type:"start",alpha:L=xe}),A=Qd(h.tick)),h):L},h.start=function(){var xe,je=we.length,or=ke.length,hr=q[0],sr=q[1],pr,yr;for(xe=0;xe=0;)L.push($=J[U]),$.parent=F,$.depth=F.depth+1;A&&(F.value=0),F.children=J}else A&&(F.value=+A.call(q,F,F.depth)||0),delete F.children;return Mo(C,function(re){var te,we;h&&(te=re.children)&&te.sort(h),A&&(we=re.parent)&&(we.value+=re.value)}),O}return q.sort=function(C){return arguments.length?(h=C,q):h},q.children=function(C){return arguments.length?(g=C,q):g},q.value=function(C){return arguments.length?(A=C,q):A},q.revalue=function(C){return A&&(Jv(C,function(L){L.children&&(L.value=0)}),Mo(C,function(L){var O;L.children||(L.value=+A.call(q,L,L.depth)||0),(O=L.parent)&&(O.value+=L.value)})),C},q};function Zv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=fie,h}function Jv(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(C=h.children)&&(q=C.length))for(var q,C;--q>=0;)A.push(C[q])}function Mo(h,g){for(var A=[h],q=[];(h=A.pop())!=null;)if(q.push(h),(O=h.children)&&(L=O.length))for(var C=-1,L,O;++CC&&(C=F),q.push(F)}for(O=0;Oq&&(A=g,q=C);return A}function mie(h){return h.reduce(gie,0)}function gie(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=xie,q=bie;function C(L,te){for(var F=[],U=L.map(g,this),J=A.call(this,U,te),$=q.call(this,J,U,te),re,te=-1,we=U.length,ke=$.length-1,ae=h?1:1/we,pe;++te0)for(te=-1;++te=J[0]&&pe<=J[1]&&(re=F[e.bisect($,pe,1,ke)-1],re.y+=ae,re.push(L[te]));return F}return C.value=function(L){return arguments.length?(g=L,C):g},C.range=function(L){return arguments.length?(A=Or(L),C):A},C.bins=function(L){return arguments.length?(q=typeof L=="number"?function(O){return f8(O,L)}:Or(L),C):q},C.frequency=function(L){return arguments.length?(h=!!L,C):h},C};function bie(h,g){return f8(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function f8(h,g){for(var A=-1,q=+h[0],C=(h[1]-q)/g,L=[];++A<=g;)L[A]=C*A+q;return L}function xie(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(_ie),g=0,A=[1,1],q;function C(L,O){var F=h.call(this,L,O),U=F[0],J=A[0],$=A[1],re=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(U.x=U.y=0,Mo(U,function(we){we.r=+re(we.value)}),Mo(U,h8),g){var te=g*(q?1:Math.max(2*U.r/J,2*U.r/$))/2;Mo(U,function(we){we.r+=te}),Mo(U,h8),Mo(U,function(we){we.r-=te})}return d8(U,J/2,$/2,q?1:1/Math.max(2*U.r/J,2*U.r/$)),F}return C.size=function(L){return arguments.length?(A=L,C):A},C.radius=function(L){return arguments.length?(q=L==null||typeof L=="function"?L:+L,C):q},C.padding=function(L){return arguments.length?(g=+L,C):g},Zv(C,h)};function _ie(h,g){return h.value-g.value}function j3(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function c8(h,g){h._pack_next=g,g._pack_prev=h}function v8(h,g){var A=g.x-h.x,q=g.y-h.y,C=h.r+g.r;return .999*C*C>A*A+q*q}function h8(h){if(!(g=h.children)||!(te=g.length))return;var g,A=1/0,q=-1/0,C=1/0,L=-1/0,O,F,U,J,$,re,te;function we(xe){A=Math.min(xe.x-xe.r,A),q=Math.max(xe.x+xe.r,q),C=Math.min(xe.y-xe.r,C),L=Math.max(xe.y+xe.r,L)}if(g.forEach(wie),O=g[0],O.x=-O.r,O.y=0,we(O),te>1&&(F=g[1],F.x=F.r,F.y=0,we(F),te>2))for(U=g[2],p8(O,F,U),we(U),j3(O,U),O._pack_prev=U,j3(U,F),F=O._pack_next,J=3;Jpe.x&&(pe=je),je.depth>ge.depth&&(ge=je)});var Me=g(ae,pe)/2-ae.x,Se=A[0]/(pe.x+g(pe,ae)/2+Me),xe=A[1]/(ge.depth||1);Jv(we,function(je){je.x=(je.x+Me)*Se,je.y=je.depth*xe})}return te}function L($){for(var re={A:null,children:[$]},te=[re],we;(we=te.pop())!=null;)for(var ke=we.children,ae,pe=0,ge=ke.length;pe0&&(Aie(kie(ae,$,te),$,je),ge+=je,Me+=je),Se+=ae.m,ge+=we.m,xe+=pe.m,Me+=ke.m;ae&&!Z3(ke)&&(ke.t=ae,ke.m+=Se-Me),we&&!X3(pe)&&(pe.t=we,pe.m+=ge-xe,te=$)}return te}function J($){$.x*=A[0],$.y=$.depth*A[1]}return C.separation=function($){return arguments.length?(g=$,C):g},C.size=function($){return arguments.length?(q=(A=$)==null?J:null,C):q?null:A},C.nodeSize=function($){return arguments.length?(q=(A=$)==null?null:J,C):q?A:null},Zv(C,h)};function y8(h,g){return h.parent==g.parent?1:2}function X3(h){var g=h.children;return g.length?g[0]:h.t}function Z3(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function Aie(h,g,A){var q=A/(g.i-h.i);g.c-=q,g.s+=A,h.c+=q,g.z+=A,g.m+=A}function Mie(h){for(var g=0,A=0,q=h.children,C=q.length,L;--C>=0;)L=q[C],L.z+=g,L.m+=g,g+=L.s+(A+=L.c)}function kie(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=y8,A=[1,1],q=!1;function C(L,O){var F=h.call(this,L,O),U=F[0],J,$=0;Mo(U,function(ae){var pe=ae.children;pe&&pe.length?(ae.x=qie(pe),ae.y=Sie(pe)):(ae.x=J?$+=g(ae,J):0,ae.y=0,J=ae)});var re=m8(U),te=g8(U),we=re.x-g(re,te)/2,ke=te.x+g(te,re)/2;return Mo(U,q?function(ae){ae.x=(ae.x-U.x)*A[0],ae.y=(U.y-ae.y)*A[1]}:function(ae){ae.x=(ae.x-we)/(ke-we)*A[0],ae.y=(1-(U.y?ae.y/U.y:1))*A[1]}),F}return C.separation=function(L){return arguments.length?(g=L,C):g},C.size=function(L){return arguments.length?(q=(A=L)==null,C):q?null:A},C.nodeSize=function(L){return arguments.length?(q=(A=L)!=null,C):q?A:null},Zv(C,h)};function Sie(h){return 1+e.max(h,function(g){return g.y})}function qie(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function m8(h){var g=h.children;return g&&g.length?m8(g[0]):h}function g8(h){var g=h.children,A;return g&&(A=g.length)?g8(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],q=null,C=J3,L=!1,O,F="squarify",U=.5*(1+Math.sqrt(5));function J(ae,pe){for(var ge=-1,Me=ae.length,Se,xe;++ge0;)Me.push(xe=Se[sr-1]),Me.area+=xe.area,F!=="squarify"||(or=te(Me,hr))<=je?(Se.pop(),je=or):(Me.area-=Me.pop().area,we(Me,hr,ge,!1),hr=Math.min(ge.dx,ge.dy),Me.length=Me.area=0,je=1/0);Me.length&&(we(Me,hr,ge,!0),Me.length=Me.area=0),pe.forEach($)}}function re(ae){var pe=ae.children;if(pe&&pe.length){var ge=C(ae),Me=pe.slice(),Se,xe=[];for(J(Me,ge.dx*ge.dy/ae.value),xe.area=0;Se=Me.pop();)xe.push(Se),xe.area+=Se.area,Se.z!=null&&(we(xe,Se.z?ge.dx:ge.dy,ge,!Me.length),xe.length=xe.area=0);pe.forEach(re)}}function te(ae,pe){for(var ge=ae.area,Me,Se=0,xe=1/0,je=-1,or=ae.length;++jeSe&&(Se=Me));return ge*=ge,pe*=pe,ge?Math.max(pe*Se*U/ge,ge/(pe*xe*U)):1/0}function we(ae,pe,ge,Me){var Se=-1,xe=ae.length,je=ge.x,or=ge.y,hr=pe?g(ae.area/pe):0,sr;if(pe==ge.dx){for((Me||hr>ge.dy)&&(hr=ge.dy);++Sege.dx)&&(hr=ge.dx);++Se1);return h+g*q*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A2?Eie:Cie,J=q?$ne:Jne;return C=U(h,g,J,A),L=U(g,h,J,Zs),F}function F(U){return C(U)}return F.invert=function(U){return L(U)},F.domain=function(U){return arguments.length?(h=U.map(Number),O()):h},F.range=function(U){return arguments.length?(g=U,O()):g},F.rangeRound=function(U){return F.range(U).interpolate(t8)},F.clamp=function(U){return arguments.length?(q=U,O()):q},F.interpolate=function(U){return arguments.length?(A=U,O()):A},F.ticks=function(U){return Q3(h,U)},F.tickFormat=function(U,J){return d3_scale_linearTickFormat(h,U,J)},F.nice=function(U){return T8(h,U),O()},F.copy=function(){return _8(h,g,A,q)},O()}function w8(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function T8(h,g){return $3(h,x8(K3(h,g)[2])),$3(h,x8(K3(h,g)[2])),h}function K3(h,g){g==null&&(g=10);var A=op(h),q=A[1]-A[0],C=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),L=g/q*C;return L<=.15?C*=10:L<=.35?C*=5:L<=.75&&(C*=2),A[0]=Math.ceil(A[0]/C)*C,A[1]=Math.floor(A[1]/C)*C+C*.5,A[2]=C,A}function Q3(h,g){return e.range.apply(e,K3(h,g))}var Die={s:1,g:1,p:1,r:1,e:1};function A8(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function OLe(h,g){var A=A8(g[2]);return h in Die?Math.abs(A-A8(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return M8(e.scale.linear().domain([0,1]),10,!0,[1,10])};function M8(h,g,A,q){function C(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function L(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function O(F){return h(C(F))}return O.invert=function(F){return L(h.invert(F))},O.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((q=F.map(Number)).map(C)),O):q},O.base=function(F){return arguments.length?(g=+F,h.domain(q.map(C)),O):g},O.nice=function(){var F=$3(q.map(C),A?Math:Rie);return h.domain(F),q=F.map(L),O},O.ticks=function(){var F=op(q),U=[],J=F[0],$=F[1],re=Math.floor(C(J)),te=Math.ceil(C($)),we=g%1?2:g;if(isFinite(te-re)){if(A){for(;re0;ke--)U.push(L(re)*ke);for(re=0;U[re]$;te--);U=U.slice(re,te)}return U},O.copy=function(){return M8(h.copy(),g,A,q)},w8(O,h)}var Rie={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return k8(e.scale.linear(),1,[0,1])};function k8(h,g,A){var q=sp(g),C=sp(1/g);function L(O){return h(q(O))}return L.invert=function(O){return C(h.invert(O))},L.domain=function(O){return arguments.length?(h.domain((A=O.map(Number)).map(q)),L):A},L.ticks=function(O){return Q3(A,O)},L.tickFormat=function(O,F){return d3_scale_linearTickFormat(A,O,F)},L.nice=function(O){return L.domain(T8(A,O))},L.exponent=function(O){return arguments.length?(q=sp(g=O),C=sp(1/g),h.domain(A.map(q)),L):g},L.copy=function(){return k8(h.copy(),g,A)},w8(L,h)}function sp(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return S8([],{t:"range",a:[[]]})};function S8(h,g){var A,q,C;function L(F){return q[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%q.length]}function O(F,U){return e.range(h.length).map(function(J){return F+U*J})}return L.domain=function(F){if(!arguments.length)return h;h=[],A=new b;for(var U=-1,J=F.length,$;++U0?A[L-1]:h[0],Lte?0:1;if($=cr)return U($,ke)+(J?U(J,1-ke):"")+"Z";var ae,pe,ge,Me,Se=0,xe=0,je,or,hr,sr,pr,yr,Er,gr,kr=[];if((Me=(+O.apply(this,arguments)||0)/2)&&(ge=q===up?Math.sqrt(J*J+$*$):+q.apply(this,arguments),ke||(xe*=-1),$&&(xe=ct(ge/$*Math.sin(Me))),J&&(Se=ct(ge/J*Math.sin(Me)))),$){je=$*Math.cos(re+xe),or=$*Math.sin(re+xe),hr=$*Math.cos(te-xe),sr=$*Math.sin(te-xe);var at=Math.abs(te-re-2*xe)<=Fe?0:1;if(xe&&fp(je,or,hr,sr)===ke^at){var ea=(re+te)/2;je=$*Math.cos(ea),or=$*Math.sin(ea),hr=sr=null}}else je=or=0;if(J){pr=J*Math.cos(te-Se),yr=J*Math.sin(te-Se),Er=J*Math.cos(re+Se),gr=J*Math.sin(re+Se);var pt=Math.abs(re-te+2*Se)<=Fe?0:1;if(Se&&fp(pr,yr,Er,gr)===1-ke^pt){var nr=(re+te)/2;pr=J*Math.cos(nr),yr=J*Math.sin(nr),Er=gr=null}}else pr=yr=0;if(we>de&&(ae=Math.min(Math.abs($-J)/2,+A.apply(this,arguments)))>.001){pe=J<$^ke?0:1;var Dr=ae,Pr=ae;if(we0?0:1}function cp(h,g,A,q,C){var L=h[0]-g[0],O=h[1]-g[1],F=(C?q:-q)/Math.sqrt(L*L+O*O),U=F*O,J=-F*L,$=h[0]+U,re=h[1]+J,te=g[0]+U,we=g[1]+J,ke=($+te)/2,ae=(re+we)/2,pe=te-$,ge=we-re,Me=pe*pe+ge*ge,Se=A-q,xe=$*we-te*re,je=(ge<0?-1:1)*Math.sqrt(Math.max(0,Se*Se*Me-xe*xe)),or=(xe*ge-pe*je)/Me,hr=(-xe*pe-ge*je)/Me,sr=(xe*ge+pe*je)/Me,pr=(-xe*pe+ge*je)/Me,yr=or-ke,Er=hr-ae,gr=sr-ke,kr=pr-ae;return yr*yr+Er*Er>gr*gr+kr*kr&&(or=sr,hr=pr),[[or-U,hr-J],[or*A/Se,hr*A/Se]]}function P8(){return!0}function F8(h){var g=kf,A=Gv,q=P8,C=Ji,L=C.key,O=.7;function F(U){var J=[],$=[],re=-1,te=U.length,we,ke=Or(g),ae=Or(A);function pe(){J.push("M",C(h($),O))}for(;++re1?h.join("L"):h+"Z"}function N8(h){return h.join("L")+"Z"}function Uie(h){for(var g=0,A=h.length,q=h[0],C=[q[0],",",q[1]];++g1&&C.push("H",q[0]),C.join("")}function rb(h){for(var g=0,A=h.length,q=h[0],C=[q[0],",",q[1]];++g1){F=g[1],L=h[U],U++,q+="C"+(C[0]+O[0])+","+(C[1]+O[1])+","+(L[0]-F[0])+","+(L[1]-F[1])+","+L[0]+","+L[1];for(var J=2;J9&&(L=A*3/Math.sqrt(L),O[F]=L*q,O[F+1]=L*C));for(F=-1;++F<=U;)L=(h[Math.min(U,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+O[F]*O[F])),g.push([L||0,O[F]*L||0]);return g}function $ie(h){return h.length<3?Ji(h):h[0]+vp(h,Jie(h))}e.svg.line.radial=function(){var h=F8(B8);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function B8(h){for(var g,A=-1,q=h.length,C,L;++AFe)+",1 "+re}function J($,re,te,we){return"Q 0,0 "+we}return L.radius=function($){return arguments.length?(A=Or($),L):A},L.source=function($){return arguments.length?(h=Or($),L):h},L.target=function($){return arguments.length?(g=Or($),L):g},L.startAngle=function($){return arguments.length?(q=Or($),L):q},L.endAngle=function($){return arguments.length?(C=Or($),L):C},L};function Kie(h){return h.radius}e.svg.diagonal=function(){var h=U8,g=G8,A=V8;function q(C,L){var O=h.call(this,C,L),F=g.call(this,C,L),U=(O.y+F.y)/2,J=[O,{x:O.x,y:U},{x:F.x,y:U},F];return J=J.map(A),"M"+J[0]+"C"+J[1]+" "+J[2]+" "+J[3]}return q.source=function(C){return arguments.length?(h=Or(C),q):h},q.target=function(C){return arguments.length?(g=Or(C),q):g},q.projection=function(C){return arguments.length?(A=C,q):A},q};function V8(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=V8,A=h.projection;return h.projection=function(q){return arguments.length?A(Qie(g=q)):g},h};function Qie(h){return function(){var g=h.apply(this,arguments),A=g[0],q=g[1]-ur;return[A*Math.cos(q),A*Math.sin(q)]}}e.svg.symbol=function(){var h=roe,g=eoe;function A(q,C){return(W8.get(h.call(this,q,C))||Y8)(g.call(this,q,C))}return A.type=function(q){return arguments.length?(h=Or(q),A):h},A.size=function(q){return arguments.length?(g=Or(q),A):g},A};function eoe(){return 64}function roe(){return"circle"}function Y8(h){var g=Math.sqrt(h/Fe);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var W8=e.map({circle:Y8,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*j8)),A=g*j8;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/hp),A=g*hp/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/hp),A=g*hp/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=W8.keys();var hp=Math.sqrt(3),j8=Math.tan(30*Mr);ce.transition=function(h){for(var g=Js||++Z8,A=lb(h),q=[],C,L,O=pp||{time:Date.now(),ease:Rne,delay:0,duration:250},F=-1,U=this.length;++F0;)re[--Me].call(h,ge);if(pe>=1)return O.event&&O.event.end.call(h,h.__data__,g),--L.count?delete L[q]:delete h[A],1}O||(F=C.time,U=Qd(te,0,F),O=L[q]={tween:new b,time:F,timer:U,delay:C.delay,duration:C.duration,ease:C.ease,index:g},C=null,++L.count)}e.svg.axis=function(){var h=e.scale.linear(),g=J8,A=6,q=6,C=3,L=[10],O=null,F;function U(J){J.each(function(){var $=e.select(this),re=this.__chart__||h,te=this.__chart__=h.copy(),we=O==null?te.ticks?te.ticks.apply(te,L):te.domain():O,ke=F==null?te.tickFormat?te.tickFormat.apply(te,L):B:F,ae=$.selectAll(".tick").data(we,te),pe=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",de),ge=e.transition(ae.exit()).style("opacity",de).remove(),Me=e.transition(ae.order()).style("opacity",1),Se=Math.max(A,0)+C,xe,je=lp(te),or=$.selectAll(".domain").data([0]),hr=(or.enter().append("path").attr("class","domain"),e.transition(or));pe.append("line"),pe.append("text");var sr=pe.select("line"),pr=Me.select("line"),yr=ae.select("text").text(ke),Er=pe.select("text"),gr=Me.select("text"),kr=g==="top"||g==="left"?-1:1,at,ea,pt,nr;if(g==="bottom"||g==="top"?(xe=noe,at="x",pt="y",ea="x2",nr="y2",yr.attr("dy",kr<0?"0em":".71em").style("text-anchor","middle"),hr.attr("d","M"+je[0]+","+kr*q+"V0H"+je[1]+"V"+kr*q)):(xe=ioe,at="y",pt="x",ea="y2",nr="x2",yr.attr("dy",".32em").style("text-anchor",kr<0?"end":"start"),hr.attr("d","M"+kr*q+","+je[0]+"H0V"+je[1]+"H"+kr*q)),sr.attr(nr,kr*A),Er.attr(pt,kr*Se),pr.attr(ea,0).attr(nr,kr*A),gr.attr(at,0).attr(pt,kr*Se),te.rangeBand){var Dr=te,Pr=Dr.rangeBand()/2;re=te=function(nt){return Dr(nt)+Pr}}else re.rangeBand?re=te:ge.call(xe,te,re);pe.call(xe,re,te),Me.call(xe,te,te)})}return U.scale=function(J){return arguments.length?(h=J,U):h},U.orient=function(J){return arguments.length?(g=J in aoe?J+"":J8,U):g},U.ticks=function(){return arguments.length?(L=t(arguments),U):L},U.tickValues=function(J){return arguments.length?(O=J,U):O},U.tickFormat=function(J){return arguments.length?(F=J,U):F},U.tickSize=function(J){var $=arguments.length;return $?(A=+J,q=+arguments[$-1],U):A},U.innerTickSize=function(J){return arguments.length?(A=+J,U):A},U.outerTickSize=function(J){return arguments.length?(q=+J,U):q},U.tickPadding=function(J){return arguments.length?(C=+J,U):C},U.tickSubdivide=function(){return arguments.length&&U},U};var J8="bottom",aoe={top:1,right:1,bottom:1,left:1};function noe(h,g,A){h.attr("transform",function(q){var C=g(q);return"translate("+(isFinite(C)?C:A(q))+",0)"})}function ioe(h,g,A){h.attr("transform",function(q){var C=g(q);return"translate(0,"+(isFinite(C)?C:A(q))+")"})}e.svg.brush=function(){var h=le($,"brushstart","brush","brushend"),g=null,A=null,q=[0,0],C=[0,0],L,O,F=!0,U=!0,J=sb[0];function $(ae){ae.each(function(){var pe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ke).on("touchstart.brush",ke),ge=pe.selectAll(".background").data([0]);ge.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),pe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Me=pe.selectAll(".resize").data(J,B);Me.exit().remove(),Me.enter().append("g").attr("class",function(or){return"resize "+or}).style("cursor",function(or){return ooe[or]}).append("rect").attr("x",function(or){return/[ew]$/.test(or)?-3:null}).attr("y",function(or){return/^[ns]/.test(or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Me.style("display",$.empty()?"none":null);var Se=e.transition(pe),xe=e.transition(ge),je;g&&(je=lp(g),xe.attr("x",je[0]).attr("width",je[1]-je[0]),te(Se)),A&&(je=lp(A),xe.attr("y",je[0]).attr("height",je[1]-je[0]),we(Se)),re(Se)})}$.event=function(ae){ae.each(function(){var pe=h.of(this,arguments),ge={x:q,y:C,i:L,j:O},Me=this.__chart__||ge;this.__chart__=ge,Js?e.select(this).transition().each("start.brush",function(){L=Me.i,O=Me.j,q=Me.x,C=Me.y,pe({type:"brushstart"})}).tween("brush:brush",function(){var Se=ip(q,ge.x),xe=ip(C,ge.y);return L=O=null,function(je){q=ge.x=Se(je),C=ge.y=xe(je),pe({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ge.i,O=ge.j,pe({type:"brush",mode:"resize"}),pe({type:"brushend"})}):(pe({type:"brushstart"}),pe({type:"brush",mode:"resize"}),pe({type:"brushend"}))})};function re(ae){ae.selectAll(".resize").attr("transform",function(pe){return"translate("+q[+/e$/.test(pe)]+","+C[+/^s/.test(pe)]+")"})}function te(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function we(ae){ae.select(".extent").attr("y",C[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function ke(){var ae=this,pe=e.select(e.event.target),ge=h.of(ae,arguments),Me=e.select(ae),Se=pe.datum(),xe=!/^(n|s)$/.test(Se)&&g,je=!/^(e|w)$/.test(Se)&&A,or=pe.classed("extent"),hr=rr(ae),sr,pr=e.mouse(ae),yr,Er=e.select(i(ae)).on("keydown.brush",at).on("keyup.brush",ea);if(e.event.changedTouches?Er.on("touchmove.brush",pt).on("touchend.brush",Dr):Er.on("mousemove.brush",pt).on("mouseup.brush",Dr),Me.interrupt().selectAll("*").interrupt(),or)pr[0]=q[0]-pr[0],pr[1]=C[0]-pr[1];else if(Se){var gr=+/w$/.test(Se),kr=+/^n/.test(Se);yr=[q[1-gr]-pr[0],C[1-kr]-pr[1]],pr[0]=q[gr],pr[1]=C[kr]}else e.event.altKey&&(sr=pr.slice());Me.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",pe.style("cursor")),ge({type:"brushstart"}),pt();function at(){e.event.keyCode==32&&(or||(sr=null,pr[0]-=q[1],pr[1]-=C[1],or=2),ee())}function ea(){e.event.keyCode==32&&or==2&&(pr[0]+=q[1],pr[1]+=C[1],or=0,ee())}function pt(){var Pr=e.mouse(ae),nt=!1;yr&&(Pr[0]+=yr[0],Pr[1]+=yr[1]),or||(e.event.altKey?(sr||(sr=[(q[0]+q[1])/2,(C[0]+C[1])/2]),pr[0]=q[+(Pr[0]{(function(e,r){typeof _p=="object"&&typeof aM!="undefined"?r(_p):(e=e||self,r(e.d3=e.d3||{}))})(_p,function(e){"use strict";var r=new Date,t=new Date;function a(se,Ae,Je,dr){function Ne(Te){return se(Te=arguments.length===0?new Date:new Date(+Te)),Te}return Ne.floor=function(Te){return se(Te=new Date(+Te)),Te},Ne.ceil=function(Te){return se(Te=new Date(Te-1)),Ae(Te,1),se(Te),Te},Ne.round=function(Te){var qe=Ne(Te),Be=Ne.ceil(Te);return Te-qe0))return Ze;do Ze.push(Ve=new Date(+Te)),Ae(Te,Be),se(Te);while(Ve=qe)for(;se(qe),!Te(qe);)qe.setTime(qe-1)},function(qe,Be){if(qe>=qe)if(Be<0)for(;++Be<=0;)for(;Ae(qe,-1),!Te(qe););else for(;--Be>=0;)for(;Ae(qe,1),!Te(qe););})},Je&&(Ne.count=function(Te,qe){return r.setTime(+Te),t.setTime(+qe),se(r),se(t),Math.floor(Je(r,t))},Ne.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?Ne.filter(dr?function(qe){return dr(qe)%Te===0}:function(qe){return Ne.count(0,qe)%Te===0}):Ne}),Ne}var n=a(function(){},function(se,Ae){se.setTime(+se+Ae)},function(se,Ae){return Ae-se});n.every=function(se){return se=Math.floor(se),!isFinite(se)||!(se>0)?null:se>1?a(function(Ae){Ae.setTime(Math.floor(Ae/se)*se)},function(Ae,Je){Ae.setTime(+Ae+Je*se)},function(Ae,Je){return(Je-Ae)/se}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(se){se.setTime(se-se.getMilliseconds())},function(se,Ae){se.setTime(+se+Ae*o)},function(se,Ae){return(Ae-se)/o},function(se){return se.getUTCSeconds()}),v=c.range,d=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o)},function(se,Ae){se.setTime(+se+Ae*l)},function(se,Ae){return(Ae-se)/l},function(se){return se.getMinutes()}),p=d.range,y=a(function(se){se.setTime(se-se.getMilliseconds()-se.getSeconds()*o-se.getMinutes()*l)},function(se,Ae){se.setTime(+se+Ae*s)},function(se,Ae){return(Ae-se)/s},function(se){return se.getHours()}),m=y.range,x=a(function(se){se.setHours(0,0,0,0)},function(se,Ae){se.setDate(se.getDate()+Ae)},function(se,Ae){return(Ae-se-(Ae.getTimezoneOffset()-se.getTimezoneOffset())*l)/u},function(se){return se.getDate()-1}),T=x.range;function _(se){return a(function(Ae){Ae.setDate(Ae.getDate()-(Ae.getDay()+7-se)%7),Ae.setHours(0,0,0,0)},function(Ae,Je){Ae.setDate(Ae.getDate()+Je*7)},function(Ae,Je){return(Je-Ae-(Je.getTimezoneOffset()-Ae.getTimezoneOffset())*l)/f})}var b=_(0),w=_(1),k=_(2),M=_(3),S=_(4),E=_(5),D=_(6),P=b.range,R=w.range,I=k.range,z=M.range,B=S.range,G=E.range,Y=D.range,V=a(function(se){se.setDate(1),se.setHours(0,0,0,0)},function(se,Ae){se.setMonth(se.getMonth()+Ae)},function(se,Ae){return Ae.getMonth()-se.getMonth()+(Ae.getFullYear()-se.getFullYear())*12},function(se){return se.getMonth()}),H=V.range,Z=a(function(se){se.setMonth(0,1),se.setHours(0,0,0,0)},function(se,Ae){se.setFullYear(se.getFullYear()+Ae)},function(se,Ae){return Ae.getFullYear()-se.getFullYear()},function(se){return se.getFullYear()});Z.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ae){Ae.setFullYear(Math.floor(Ae.getFullYear()/se)*se),Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,Je){Ae.setFullYear(Ae.getFullYear()+Je*se)})};var W=Z.range,ee=a(function(se){se.setUTCSeconds(0,0)},function(se,Ae){se.setTime(+se+Ae*l)},function(se,Ae){return(Ae-se)/l},function(se){return se.getUTCMinutes()}),oe=ee.range,le=a(function(se){se.setUTCMinutes(0,0,0)},function(se,Ae){se.setTime(+se+Ae*s)},function(se,Ae){return(Ae-se)/s},function(se){return se.getUTCHours()}),ue=le.range,K=a(function(se){se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCDate(se.getUTCDate()+Ae)},function(se,Ae){return(Ae-se)/u},function(se){return se.getUTCDate()-1}),_e=K.range;function fe(se){return a(function(Ae){Ae.setUTCDate(Ae.getUTCDate()-(Ae.getUTCDay()+7-se)%7),Ae.setUTCHours(0,0,0,0)},function(Ae,Je){Ae.setUTCDate(Ae.getUTCDate()+Je*7)},function(Ae,Je){return(Je-Ae)/f})}var ve=fe(0),ye=fe(1),ce=fe(2),j=fe(3),Q=fe(4),X=fe(5),ie=fe(6),he=ve.range,me=ye.range,Re=ce.range,De=j.range,Ce=Q.range,He=X.range,Oe=ie.range,Ue=a(function(se){se.setUTCDate(1),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCMonth(se.getUTCMonth()+Ae)},function(se,Ae){return Ae.getUTCMonth()-se.getUTCMonth()+(Ae.getUTCFullYear()-se.getUTCFullYear())*12},function(se){return se.getUTCMonth()}),Ee=Ue.range,ze=a(function(se){se.setUTCMonth(0,1),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCFullYear(se.getUTCFullYear()+Ae)},function(se,Ae){return Ae.getUTCFullYear()-se.getUTCFullYear()},function(se){return se.getUTCFullYear()});ze.every=function(se){return!isFinite(se=Math.floor(se))||!(se>0)?null:a(function(Ae){Ae.setUTCFullYear(Math.floor(Ae.getUTCFullYear()/se)*se),Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,Je){Ae.setUTCFullYear(Ae.getUTCFullYear()+Je*se)})};var Ge=ze.range;e.timeDay=x,e.timeDays=T,e.timeFriday=E,e.timeFridays=G,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=w,e.timeMondays=R,e.timeMonth=V,e.timeMonths=H,e.timeSaturday=D,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=P,e.timeThursday=S,e.timeThursdays=B,e.timeTuesday=k,e.timeTuesdays=I,e.timeWednesday=M,e.timeWednesdays=z,e.timeWeek=b,e.timeWeeks=P,e.timeYear=Z,e.timeYears=W,e.utcDay=K,e.utcDays=_e,e.utcFriday=X,e.utcFridays=He,e.utcHour=le,e.utcHours=ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=oe,e.utcMonday=ye,e.utcMondays=me,e.utcMonth=Ue,e.utcMonths=Ee,e.utcSaturday=ie,e.utcSaturdays=Oe,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ve,e.utcSundays=he,e.utcThursday=Q,e.utcThursdays=Ce,e.utcTuesday=ce,e.utcTuesdays=Re,e.utcWednesday=j,e.utcWednesdays=De,e.utcWeek=ve,e.utcWeeks=he,e.utcYear=ze,e.utcYears=Ge,Object.defineProperty(e,"__esModule",{value:!0})})});var Rf=N((wp,nM)=>{(function(e,r){typeof wp=="object"&&typeof nM!="undefined"?r(wp,ub()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(wp,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var de=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return de.setFullYear(ne.y),de}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var de=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return de.setUTCFullYear(ne.y),de}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,de,Pe){return{y:ne,m:de,d:Pe,H:0,M:0,S:0,L:0}}function i(ne){var de=ne.dateTime,Pe=ne.date,Fe=ne.time,Ke=ne.periods,cr=ne.days,ur=ne.shortDays,Mr=ne.months,Ir=ne.shortMonths,Ur=v(Ke),et=d(Ke),qt=v(cr),ct=d(cr),Ot=v(ur),gt=d(ur),Ta=v(Mr),Zt=d(Mr),Jt=v(Ir),za=d(Ir),fa={a:Yt,A:ll,b:vt,B:kn,c:null,d:V,e:V,f:oe,H,I:Z,j:W,L:ee,m:le,M:ue,p:Pt,q:Ws,Q:qe,s:Be,S:K,u:_e,U:fe,V:ve,w:ye,W:ce,x:null,X:null,y:j,Y:Q,Z:X,"%":Te},$t={a:yn,A:ji,b:Wt,B:Xi,c:null,d:ie,e:ie,f:Ce,H:he,I:me,j:Re,L:De,m:He,M:Oe,p:Bl,q:Hl,Q:qe,s:Be,S:Ue,u:Ee,U:ze,V:Ge,w:se,W:Ae,x:null,X:null,y:Je,Y:dr,Z:Ne,"%":Te},ar={a:Kt,A:ft,b:Da,B:Mn,c:Qt,d:S,e:S,f:z,H:D,I:D,j:E,L:I,m:M,M:P,p:Rt,q:k,Q:G,s:Y,S:R,u:y,U:m,V:x,w:p,W:T,x:_t,X:Vt,y:b,Y:_,Z:w,"%":B};fa.x=Jr(Pe,fa),fa.X=Jr(Fe,fa),fa.c=Jr(de,fa),$t.x=Jr(Pe,$t),$t.X=Jr(Fe,$t),$t.c=Jr(de,$t);function Jr(mr,Kr){return function(ht){var fr=[],Oa=-1,At=0,Ba=mr.length,Or,Zi,js;for(ht instanceof Date||(ht=new Date(+ht));++Oa53)return null;"w"in fr||(fr.w=1),"Z"in fr?(At=a(n(fr.y,0,1)),Ba=At.getUTCDay(),At=Ba>4||Ba===0?r.utcMonday.ceil(At):r.utcMonday(At),At=r.utcDay.offset(At,(fr.V-1)*7),fr.y=At.getUTCFullYear(),fr.m=At.getUTCMonth(),fr.d=At.getUTCDate()+(fr.w+6)%7):(At=t(n(fr.y,0,1)),Ba=At.getDay(),At=Ba>4||Ba===0?r.timeMonday.ceil(At):r.timeMonday(At),At=r.timeDay.offset(At,(fr.V-1)*7),fr.y=At.getFullYear(),fr.m=At.getMonth(),fr.d=At.getDate()+(fr.w+6)%7)}else("W"in fr||"U"in fr)&&("w"in fr||(fr.w="u"in fr?fr.u%7:"W"in fr?1:0),Ba="Z"in fr?a(n(fr.y,0,1)).getUTCDay():t(n(fr.y,0,1)).getDay(),fr.m=0,fr.d="W"in fr?(fr.w+6)%7+fr.W*7-(Ba+5)%7:fr.w+fr.U*7-(Ba+6)%7);return"Z"in fr?(fr.H+=fr.Z/100|0,fr.M+=fr.Z%100,a(fr)):t(fr)}}function $r(mr,Kr,ht,fr){for(var Oa=0,At=Kr.length,Ba=ht.length,Or,Zi;Oa=Ba)return-1;if(Or=Kr.charCodeAt(Oa++),Or===37){if(Or=Kr.charAt(Oa++),Zi=ar[Or in o?Kr.charAt(Oa++):Or],!Zi||(fr=Zi(mr,ht,fr))<0)return-1}else if(Or!=ht.charCodeAt(fr++))return-1}return fr}function Rt(mr,Kr,ht){var fr=Ur.exec(Kr.slice(ht));return fr?(mr.p=et[fr[0].toLowerCase()],ht+fr[0].length):-1}function Kt(mr,Kr,ht){var fr=Ot.exec(Kr.slice(ht));return fr?(mr.w=gt[fr[0].toLowerCase()],ht+fr[0].length):-1}function ft(mr,Kr,ht){var fr=qt.exec(Kr.slice(ht));return fr?(mr.w=ct[fr[0].toLowerCase()],ht+fr[0].length):-1}function Da(mr,Kr,ht){var fr=Jt.exec(Kr.slice(ht));return fr?(mr.m=za[fr[0].toLowerCase()],ht+fr[0].length):-1}function Mn(mr,Kr,ht){var fr=Ta.exec(Kr.slice(ht));return fr?(mr.m=Zt[fr[0].toLowerCase()],ht+fr[0].length):-1}function Qt(mr,Kr,ht){return $r(mr,de,Kr,ht)}function _t(mr,Kr,ht){return $r(mr,Pe,Kr,ht)}function Vt(mr,Kr,ht){return $r(mr,Fe,Kr,ht)}function Yt(mr){return ur[mr.getDay()]}function ll(mr){return cr[mr.getDay()]}function vt(mr){return Ir[mr.getMonth()]}function kn(mr){return Mr[mr.getMonth()]}function Pt(mr){return Ke[+(mr.getHours()>=12)]}function Ws(mr){return 1+~~(mr.getMonth()/3)}function yn(mr){return ur[mr.getUTCDay()]}function ji(mr){return cr[mr.getUTCDay()]}function Wt(mr){return Ir[mr.getUTCMonth()]}function Xi(mr){return Mr[mr.getUTCMonth()]}function Bl(mr){return Ke[+(mr.getUTCHours()>=12)]}function Hl(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Kr=Jr(mr+="",fa);return Kr.toString=function(){return mr},Kr},parse:function(mr){var Kr=Xr(mr+="",!1);return Kr.toString=function(){return mr},Kr},utcFormat:function(mr){var Kr=Jr(mr+="",$t);return Kr.toString=function(){return mr},Kr},utcParse:function(mr){var Kr=Xr(mr+="",!0);return Kr.toString=function(){return mr},Kr}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,de,Pe){var Fe=ne<0?"-":"",Ke=(Fe?-ne:ne)+"",cr=Ke.length;return Fe+(cr68?1900:2e3),Pe+Fe[0].length):-1}function w(ne,de,Pe){var Fe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(Pe,Pe+6));return Fe?(ne.Z=Fe[1]?0:-(Fe[2]+(Fe[3]||"00")),Pe+Fe[0].length):-1}function k(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+1));return Fe?(ne.q=Fe[0]*3-3,Pe+Fe[0].length):-1}function M(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.m=Fe[0]-1,Pe+Fe[0].length):-1}function S(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.d=+Fe[0],Pe+Fe[0].length):-1}function E(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+3));return Fe?(ne.m=0,ne.d=+Fe[0],Pe+Fe[0].length):-1}function D(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.H=+Fe[0],Pe+Fe[0].length):-1}function P(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.M=+Fe[0],Pe+Fe[0].length):-1}function R(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+2));return Fe?(ne.S=+Fe[0],Pe+Fe[0].length):-1}function I(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+3));return Fe?(ne.L=+Fe[0],Pe+Fe[0].length):-1}function z(ne,de,Pe){var Fe=l.exec(de.slice(Pe,Pe+6));return Fe?(ne.L=Math.floor(Fe[0]/1e3),Pe+Fe[0].length):-1}function B(ne,de,Pe){var Fe=s.exec(de.slice(Pe,Pe+1));return Fe?Pe+Fe[0].length:-1}function G(ne,de,Pe){var Fe=l.exec(de.slice(Pe));return Fe?(ne.Q=+Fe[0],Pe+Fe[0].length):-1}function Y(ne,de,Pe){var Fe=l.exec(de.slice(Pe));return Fe?(ne.s=+Fe[0],Pe+Fe[0].length):-1}function V(ne,de){return f(ne.getDate(),de,2)}function H(ne,de){return f(ne.getHours(),de,2)}function Z(ne,de){return f(ne.getHours()%12||12,de,2)}function W(ne,de){return f(1+r.timeDay.count(r.timeYear(ne),ne),de,3)}function ee(ne,de){return f(ne.getMilliseconds(),de,3)}function oe(ne,de){return ee(ne,de)+"000"}function le(ne,de){return f(ne.getMonth()+1,de,2)}function ue(ne,de){return f(ne.getMinutes(),de,2)}function K(ne,de){return f(ne.getSeconds(),de,2)}function _e(ne){var de=ne.getDay();return de===0?7:de}function fe(ne,de){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),de,2)}function ve(ne,de){var Pe=ne.getDay();return ne=Pe>=4||Pe===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),de,2)}function ye(ne){return ne.getDay()}function ce(ne,de){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),de,2)}function j(ne,de){return f(ne.getFullYear()%100,de,2)}function Q(ne,de){return f(ne.getFullYear()%1e4,de,4)}function X(ne){var de=ne.getTimezoneOffset();return(de>0?"-":(de*=-1,"+"))+f(de/60|0,"0",2)+f(de%60,"0",2)}function ie(ne,de){return f(ne.getUTCDate(),de,2)}function he(ne,de){return f(ne.getUTCHours(),de,2)}function me(ne,de){return f(ne.getUTCHours()%12||12,de,2)}function Re(ne,de){return f(1+r.utcDay.count(r.utcYear(ne),ne),de,3)}function De(ne,de){return f(ne.getUTCMilliseconds(),de,3)}function Ce(ne,de){return De(ne,de)+"000"}function He(ne,de){return f(ne.getUTCMonth()+1,de,2)}function Oe(ne,de){return f(ne.getUTCMinutes(),de,2)}function Ue(ne,de){return f(ne.getUTCSeconds(),de,2)}function Ee(ne){var de=ne.getUTCDay();return de===0?7:de}function ze(ne,de){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),de,2)}function Ge(ne,de){var Pe=ne.getUTCDay();return ne=Pe>=4||Pe===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),de,2)}function se(ne){return ne.getUTCDay()}function Ae(ne,de){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),de,2)}function Je(ne,de){return f(ne.getUTCFullYear()%100,de,2)}function dr(ne,de){return f(ne.getUTCFullYear()%1e4,de,4)}function Ne(){return"+0000"}function Te(){return"%"}function qe(ne){return+ne}function Be(ne){return Math.floor(+ne/1e3)}var Ze;Ve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ve(ne){return Ze=i(ne),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var We="%Y-%m-%dT%H:%M:%S.%LZ";function lr(ne){return ne.toISOString()}var rr=Date.prototype.toISOString?lr:e.utcFormat(We);function er(ne){var de=new Date(ne);return isNaN(de)?null:de}var Ie=+new Date("2000-01-01T00:00:00.000Z")?er:e.utcParse(We);e.isoFormat=rr,e.isoParse=Ie,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var fb=N((Tp,iM)=>{(function(e,r){typeof Tp=="object"&&typeof iM!="undefined"?r(Tp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Tp,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,S){if((E=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var E,D=M.slice(0,E);return[D.length>1?D[0]+D.slice(2):D,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,S){return function(E,D){for(var P=E.length,R=[],I=0,z=M[0],B=0;P>0&&z>0&&(B+z+1>D&&(z=Math.max(1,D-B)),R.push(E.substring(P-=z,P+z)),!((B+=z+1)>D));)z=M[I=(I+1)%M.length];return R.reverse().join(S)}}function i(M){return function(S){return S.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(S=o.exec(M)))throw new Error("invalid format: "+M);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var S=M.length,E=1,D=-1,P;E0&&(D=0);break}return D>0?M.slice(0,D)+M.slice(P+1):M}var f;function c(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,I=D.length;return R===I?D:R>I?D+new Array(R-I+1).join("0"):R>0?D.slice(0,R)+"."+D.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,S+R-1))[0]}function v(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1];return P<0?"0."+new Array(-P).join("0")+D:D.length>P+1?D.slice(0,P+1)+"."+D.slice(P+1):D+new Array(P-D.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return v(M*100,S)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(M){var S=M.grouping===void 0||M.thousands===void 0?p:n(y.call(M.grouping,Number),M.thousands+""),E=M.currency===void 0?"":M.currency[0]+"",D=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(y.call(M.numerals,String)),I=M.percent===void 0?"%":M.percent+"",z=M.minus===void 0?"-":M.minus+"",B=M.nan===void 0?"NaN":M.nan+"";function G(V){V=l(V);var H=V.fill,Z=V.align,W=V.sign,ee=V.symbol,oe=V.zero,le=V.width,ue=V.comma,K=V.precision,_e=V.trim,fe=V.type;fe==="n"?(ue=!0,fe="g"):d[fe]||(K===void 0&&(K=12),_e=!0,fe="g"),(oe||H==="0"&&Z==="=")&&(oe=!0,H="0",Z="=");var ve=ee==="$"?E:ee==="#"&&/[boxX]/.test(fe)?"0"+fe.toLowerCase():"",ye=ee==="$"?D:/[%p]/.test(fe)?I:"",ce=d[fe],j=/[defgprs%]/.test(fe);K=K===void 0?6:/[gprs]/.test(fe)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Q(X){var ie=ve,he=ye,me,Re,De;if(fe==="c")he=ce(X)+he,X="";else{X=+X;var Ce=X<0||1/X<0;if(X=isNaN(X)?B:ce(Math.abs(X),K),_e&&(X=u(X)),Ce&&+X==0&&W!=="+"&&(Ce=!1),ie=(Ce?W==="("?W:z:W==="-"||W==="("?"":W)+ie,he=(fe==="s"?m[8+f/3]:"")+he+(Ce&&W==="("?")":""),j){for(me=-1,Re=X.length;++meDe||De>57){he=(De===46?P+X.slice(me+1):X.slice(me))+he,X=X.slice(0,me);break}}}ue&&!oe&&(X=S(X,1/0));var He=ie.length+X.length+he.length,Oe=He>1)+ie+X+he+Oe.slice(He);break;default:X=Oe+ie+X+he;break}return R(X)}return Q.toString=function(){return V+""},Q}function Y(V,H){var Z=G((V=l(V),V.type="f",V)),W=Math.max(-8,Math.min(8,Math.floor(a(H)/3)))*3,ee=Math.pow(10,-W),oe=m[8+W/3];return function(le){return Z(ee*le)+oe}}return{format:G,formatPrefix:Y}}var T;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return T=x(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function b(M){return Math.max(0,-a(Math.abs(M)))}function w(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(M)))}function k(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,a(S)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=x,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=w,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var lM=N((GLe,oM)=>{"use strict";oM.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Rr=N((VLe,sM)=>{"use strict";var poe=lM();sM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&poe(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Ft=N((YLe,uM)=>{"use strict";uM.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var cb=N((Ap,fM)=>{(function(e,r){typeof Ap=="object"&&typeof fM!="undefined"?r(Ap):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ap,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var y=new ArrayBuffer(l),m=new Uint8Array(y);for(u=0;u>4,m[f++]=(v&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Vl=N((WLe,cM)=>{"use strict";cM.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Cn=N(Ki=>{"use strict";var yoe=cb().decode,moe=Vl(),vb=Array.isArray,goe=ArrayBuffer,boe=DataView;function vM(e){return goe.isView(e)&&!(e instanceof boe)}Ki.isTypedArray=vM;function Mp(e){return vb(e)||vM(e)}Ki.isArrayOrTypedArray=Mp;function xoe(e){return!Mp(e[0])}Ki.isArray1D=xoe;Ki.ensureArray=function(e,r){return vb(e)||(e=[]),e.length=r,e};var Ra={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ra.uint8c=Ra.u1c;Ra.uint8=Ra.u1;Ra.int8=Ra.i1;Ra.uint16=Ra.u2;Ra.int16=Ra.i2;Ra.uint32=Ra.u4;Ra.int32=Ra.i4;Ra.float32=Ra.f4;Ra.float64=Ra.f8;function hb(e){return e.constructor===ArrayBuffer}Ki.isArrayBuffer=hb;Ki.decodeTypedArraySpec=function(e){var r=[],t=_oe(e),a=t.dtype,n=Ra[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;hb(o)||(o=yoe(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var dM=Rr(),pb=Cn().isArrayOrTypedArray;gM.exports=function(r,t){if(dM(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var Pf=kp(),koe=/^\w*$/,Soe=0,bM=1,Sp=2,xM=3,eu=4;_M.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=Pf(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|Sp,c.set(v,null);if(f){for(i=d;i{"use strict";var qoe=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Coe=/^[^\.\[\]]+$/;TM.exports=function(e,r){for(;r;){var t=e.match(qoe);if(t)e=t[1];else if(e.match(Coe))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var qp=N(($Le,MM)=>{"use strict";var Loe=Rr();MM.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return Loe(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var qM=N((KLe,SM)=>{"use strict";var kM=Cn().isArrayOrTypedArray,Qv=Vl();SM.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(kM(n)&&kM(i)&&Qv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function Eoe(e,r){var t=e%r;return t<0?t+r:t}function Doe(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}CM.exports={mod:Eoe,modHalf:Doe}});var Ln=N((eEe,Cp)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(j,Q){if(j=j||"",Q=Q||{},j instanceof s)return j;if(!(this instanceof s))return new s(j,Q);var X=u(j);this._originalInput=j,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=n(100*this._a)/100,this._format=Q.format||X.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=X.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),Q,X,ie,he,me,Re;return Q=j.r/255,X=j.g/255,ie=j.b/255,Q<=.03928?he=Q/12.92:he=e.pow((Q+.055)/1.055,2.4),X<=.03928?me=X/12.92:me=e.pow((X+.055)/1.055,2.4),ie<=.03928?Re=ie/12.92:Re=e.pow((ie+.055)/1.055,2.4),.2126*he+.7152*me+.0722*Re},setAlpha:function(j){return this._a=V(j),this._roundA=n(100*this._a)/100,this},toHsv:function(){var j=d(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=d(this._r,this._g,this._b),Q=n(j.h*360),X=n(j.s*100),ie=n(j.v*100);return this._a==1?"hsv("+Q+", "+X+"%, "+ie+"%)":"hsva("+Q+", "+X+"%, "+ie+"%, "+this._roundA+")"},toHsl:function(){var j=c(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=c(this._r,this._g,this._b),Q=n(j.h*360),X=n(j.s*100),ie=n(j.l*100);return this._a==1?"hsl("+Q+", "+X+"%, "+ie+"%)":"hsla("+Q+", "+X+"%, "+ie+"%, "+this._roundA+")"},toHex:function(j){return y(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return m(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(H(this._r,255)*100)+"%",g:n(H(this._g,255)*100)+"%",b:n(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%)":"rgba("+n(H(this._r,255)*100)+"%, "+n(H(this._g,255)*100)+"%, "+n(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var Q="#"+x(this._r,this._g,this._b,this._a),X=Q,ie=this._gradientType?"GradientType = 1, ":"";if(j){var he=s(j);X="#"+x(he._r,he._g,he._b,he._a)}return"progid:DXImageTransform.Microsoft.gradient("+ie+"startColorstr="+Q+",endColorstr="+X+")"},toString:function(j){var Q=!!j;j=j||this._format;var X=!1,ie=this._a<1&&this._a>=0,he=!Q&&ie&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return he?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(X=this.toRgbString()),j==="prgb"&&(X=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(X=this.toHexString()),j==="hex3"&&(X=this.toHexString(!0)),j==="hex4"&&(X=this.toHex8String(!0)),j==="hex8"&&(X=this.toHex8String()),j==="name"&&(X=this.toName()),j==="hsl"&&(X=this.toHslString()),j==="hsv"&&(X=this.toHsvString()),X||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(j,Q){var X=j.apply(null,[this].concat([].slice.call(Q)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(j,Q){return j.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},s.fromRatio=function(j,Q){if(typeof j=="object"){var X={};for(var ie in j)j.hasOwnProperty(ie)&&(ie==="a"?X[ie]=j[ie]:X[ie]=ue(j[ie]));j=X}return s(j,Q)};function u(j){var Q={r:0,g:0,b:0},X=1,ie=null,he=null,me=null,Re=!1,De=!1;return typeof j=="string"&&(j=ye(j)),typeof j=="object"&&(ve(j.r)&&ve(j.g)&&ve(j.b)?(Q=f(j.r,j.g,j.b),Re=!0,De=String(j.r).substr(-1)==="%"?"prgb":"rgb"):ve(j.h)&&ve(j.s)&&ve(j.v)?(ie=ue(j.s),he=ue(j.v),Q=p(j.h,ie,he),Re=!0,De="hsv"):ve(j.h)&&ve(j.s)&&ve(j.l)&&(ie=ue(j.s),me=ue(j.l),Q=v(j.h,ie,me),Re=!0,De="hsl"),j.hasOwnProperty("a")&&(X=j.a)),X=V(X),{ok:Re,format:j.format||De,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:X}}function f(j,Q,X){return{r:H(j,255)*255,g:H(Q,255)*255,b:H(X,255)*255}}function c(j,Q,X){j=H(j,255),Q=H(Q,255),X=H(X,255);var ie=o(j,Q,X),he=i(j,Q,X),me,Re,De=(ie+he)/2;if(ie==he)me=Re=0;else{var Ce=ie-he;switch(Re=De>.5?Ce/(2-ie-he):Ce/(ie+he),ie){case j:me=(Q-X)/Ce+(Q1&&(Ue-=1),Ue<1/6?He+(Oe-He)*6*Ue:Ue<1/2?Oe:Ue<2/3?He+(Oe-He)*(2/3-Ue)*6:He}if(Q===0)ie=he=me=X;else{var De=X<.5?X*(1+Q):X+Q-X*Q,Ce=2*X-De;ie=Re(Ce,De,j+1/3),he=Re(Ce,De,j),me=Re(Ce,De,j-1/3)}return{r:ie*255,g:he*255,b:me*255}}function d(j,Q,X){j=H(j,255),Q=H(Q,255),X=H(X,255);var ie=o(j,Q,X),he=i(j,Q,X),me,Re,De=ie,Ce=ie-he;if(Re=ie===0?0:Ce/ie,ie==he)me=0;else{switch(ie){case j:me=(Q-X)/Ce+(Q>1)+720)%360;--Q;)ie.h=(ie.h+he)%360,me.push(s(ie));return me}function z(j,Q){Q=Q||6;for(var X=s(j).toHsv(),ie=X.h,he=X.s,me=X.v,Re=[],De=1/Q;Q--;)Re.push(s({h:ie,s:he,v:me})),me=(me+De)%1;return Re}s.mix=function(j,Q,X){X=X===0?0:X||50;var ie=s(j).toRgb(),he=s(Q).toRgb(),me=X/100,Re={r:(he.r-ie.r)*me+ie.r,g:(he.g-ie.g)*me+ie.g,b:(he.b-ie.b)*me+ie.b,a:(he.a-ie.a)*me+ie.a};return s(Re)},s.readability=function(j,Q){var X=s(j),ie=s(Q);return(e.max(X.getLuminance(),ie.getLuminance())+.05)/(e.min(X.getLuminance(),ie.getLuminance())+.05)},s.isReadable=function(j,Q,X){var ie=s.readability(j,Q),he,me;switch(me=!1,he=ce(X),he.level+he.size){case"AAsmall":case"AAAlarge":me=ie>=4.5;break;case"AAlarge":me=ie>=3;break;case"AAAsmall":me=ie>=7;break}return me},s.mostReadable=function(j,Q,X){var ie=null,he=0,me,Re,De,Ce;X=X||{},Re=X.includeFallbackColors,De=X.level,Ce=X.size;for(var He=0;Hehe&&(he=me,ie=s(Q[He]));return s.isReadable(j,ie,{level:De,size:Ce})||!Re?ie:(X.includeFallbackColors=!1,s.mostReadable(j,["#fff","#000"],X))};var B=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=s.hexNames=Y(B);function Y(j){var Q={};for(var X in j)j.hasOwnProperty(X)&&(Q[j[X]]=X);return Q}function V(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function H(j,Q){ee(j)&&(j="100%");var X=oe(j);return j=i(Q,o(0,parseFloat(j))),X&&(j=parseInt(j*Q,10)/100),e.abs(j-Q)<1e-6?1:j%Q/parseFloat(Q)}function Z(j){return i(1,o(0,j))}function W(j){return parseInt(j,16)}function ee(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function oe(j){return typeof j=="string"&&j.indexOf("%")!=-1}function le(j){return j.length==1?"0"+j:""+j}function ue(j){return j<=1&&(j=j*100+"%"),j}function K(j){return e.round(parseFloat(j)*255).toString(16)}function _e(j){return W(j)/255}var fe=(function(){var j="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",X="(?:"+Q+")|(?:"+j+")",ie="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",he="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?";return{CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+ie),rgba:new RegExp("rgba"+he),hsl:new RegExp("hsl"+ie),hsla:new RegExp("hsla"+he),hsv:new RegExp("hsv"+ie),hsva:new RegExp("hsva"+he),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function ve(j){return!!fe.CSS_UNIT.exec(j)}function ye(j){j=j.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(B[j])j=B[j],Q=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var X;return(X=fe.rgb.exec(j))?{r:X[1],g:X[2],b:X[3]}:(X=fe.rgba.exec(j))?{r:X[1],g:X[2],b:X[3],a:X[4]}:(X=fe.hsl.exec(j))?{h:X[1],s:X[2],l:X[3]}:(X=fe.hsla.exec(j))?{h:X[1],s:X[2],l:X[3],a:X[4]}:(X=fe.hsv.exec(j))?{h:X[1],s:X[2],v:X[3]}:(X=fe.hsva.exec(j))?{h:X[1],s:X[2],v:X[3],a:X[4]}:(X=fe.hex8.exec(j))?{r:W(X[1]),g:W(X[2]),b:W(X[3]),a:_e(X[4]),format:Q?"name":"hex8"}:(X=fe.hex6.exec(j))?{r:W(X[1]),g:W(X[2]),b:W(X[3]),format:Q?"name":"hex"}:(X=fe.hex4.exec(j))?{r:W(X[1]+""+X[1]),g:W(X[2]+""+X[2]),b:W(X[3]+""+X[3]),a:_e(X[4]+""+X[4]),format:Q?"name":"hex8"}:(X=fe.hex3.exec(j))?{r:W(X[1]+""+X[1]),g:W(X[2]+""+X[2]),b:W(X[3]+""+X[3]),format:Q?"name":"hex"}:!1}function ce(j){var Q,X;return j=j||{level:"AA",size:"small"},Q=(j.level||"AA").toUpperCase(),X=(j.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),X!=="small"&&X!=="large"&&(X="small"),{level:Q,size:X}}typeof Cp!="undefined"&&Cp.exports?Cp.exports=s:window.tinycolor=s})(Math)});var bt=N(th=>{"use strict";var LM=Vl(),eh=Array.isArray;function Roe(e,r){var t,a;for(t=0;t{"use strict";EM.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var ah=N((aEe,DM)=>{"use strict";DM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Nf=N((nEe,FM)=>{"use strict";var RM=ah(),PM=ba(),yb=PM({editType:"none"});yb.family.dflt=RM.HOVERFONT;yb.size.dflt=RM.HOVERFONTSIZE;FM.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:yb,grouptitlefont:PM({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Lp=N((iEe,NM)=>{"use strict";var Poe=ba(),nh=Nf().hoverlabel,ih=bt().extendFlat;NM.exports={hoverlabel:{bgcolor:ih({},nh.bgcolor,{arrayOk:!0}),bordercolor:ih({},nh.bordercolor,{arrayOk:!0}),font:Poe({arrayOk:!0,editType:"none"}),align:ih({},nh.align,{arrayOk:!0}),namelength:ih({},nh.namelength,{arrayOk:!0}),showarrow:ih({},nh.showarrow),editType:"none"}}});var gn=N((oEe,IM)=>{"use strict";var Foe=ba(),Noe=Lp();IM.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Foe({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Noe.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ru=N((lEe,BM)=>{"use strict";var Ioe=Ln(),Ep={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},zM=Ep.RdBu;function zoe(e,r){if(r||(r=zM),!e)return r;function t(){try{e=Ep[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),OM(e)?e:r}function OM(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";tu.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];tu.defaultLine="#444";tu.lightLine="#eee";tu.background="#fff";tu.borderLine="#BEC8D9";tu.lightFraction=1e3/11});var Tr=N((uEe,HM)=>{"use strict";var En=Ln(),Boe=Rr(),Hoe=Cn().isTypedArray,Aa=HM.exports={},Dp=fi();Aa.defaults=Dp.defaults;var Uoe=Aa.defaultLine=Dp.defaultLine;Aa.lightLine=Dp.lightLine;var gb=Aa.background=Dp.background;Aa.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};Aa.rgb=function(e){return Aa.tinyRGB(En(e))};Aa.opacity=function(e){return e?En(e).getAlpha():0};Aa.addOpacity=function(e,r){var t=En(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};Aa.combine=function(e,r){var t=En(e).toRgb();if(t.a===1)return En(e).toRgbString();var a=En(r||gb).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return En(i).toRgbString()};Aa.interpolate=function(e,r,t){var a=En(e).toRgb(),n=En(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return En(i).toRgbString()};Aa.contrast=function(e,r,t){var a=En(e);a.getAlpha()!==1&&(a=En(Aa.combine(e,gb)));var n=a.isDark()?r?a.lighten(r):gb:t?a.darken(t):Uoe;return n.toString()};Aa.stroke=function(e,r){var t=En(r);e.style({stroke:Aa.tinyRGB(t),"stroke-opacity":t.getAlpha()})};Aa.fill=function(e,r){var t=En(r);e.style({fill:Aa.tinyRGB(t),"fill-opacity":t.getAlpha()})};Aa.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var Rp=N((fEe,UM)=>{"use strict";UM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var If=N(GM=>{"use strict";GM.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var jM=N(Dn=>{"use strict";var bb=Rr(),VM=Ln(),YM=bt().extendFlat,Goe=gn(),Voe=ru(),Yoe=Tr(),Woe=Rp().DESELECTDIM,zf=kp(),WM=If().counter,joe=Ff().modHalf,Qi=Cn().isArrayOrTypedArray,Yl=Cn().isTypedArraySpec,Wl=Cn().decodeTypedArraySpec;Dn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Qi(e)?e:Yl(e)?Wl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){Yl(e)&&(e=Wl(e)),!bb(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Yl(e)&&(e=Wl(e)),e%1||!bb(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Yl(e)&&(e=Wl(e)),VM(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return VM(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(Voe.get(e,t))}},angle:{coerceFunction:function(e,r,t){Yl(e)&&(e=Wl(e)),e==="auto"?r.set("auto"):bb(e)?r.set(joe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||WM(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Qi(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!WM(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var XM={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},ZM={};function JM(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),JM(a,r[t]))}}JM(XM,ZM);$M.exports={configAttributes:XM,dfltConfig:ZM}});var _b=N((dEe,KM)=>{"use strict";var xb=Sr(),Xoe=Rr(),oh=[];KM.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||oh.indexOf(e)!==-1)return;oh.push(e);var a=1e3;Xoe(r)?a=r:r==="long"&&(a=3e3);var n=xb.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(oh);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=oh.indexOf(u);f!==-1&&oh.splice(f,1),xb.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=xb.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(//g),v=0;v{"use strict";var Of=au().dfltConfig,wb=_b(),Tb=QM.exports={};Tb.log=function(){var e;if(Of.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Tb.warn=function(){var e;if(Of.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Tb.error=function(){var e;if(Of.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Fp=N((yEe,e9)=>{"use strict";e9.exports=function(){}});var Ab=N((mEe,r9)=>{"use strict";r9.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{t9.exports=Zoe;function Zoe(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var i9=N((bEe,n9)=>{n9.exports=Joe;function Joe(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var l9=N((xEe,o9)=>{o9.exports=$oe;function $oe(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Mb=N((_Ee,s9)=>{s9.exports=Koe;function Koe(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var f9=N((wEe,u9)=>{u9.exports=Qoe;function Qoe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var v9=N((TEe,c9)=>{c9.exports=ele;function ele(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],x=r[15],T=t*l-a*o,_=t*s-n*o,b=t*u-i*o,w=a*s-n*l,k=a*u-i*l,M=n*u-i*s,S=f*y-c*p,E=f*m-v*p,D=f*x-d*p,P=c*m-v*y,R=c*x-d*y,I=v*x-d*m,z=T*I-_*R+b*P+w*D-k*E+M*S;return z?(z=1/z,e[0]=(l*I-s*R+u*P)*z,e[1]=(n*R-a*I-i*P)*z,e[2]=(y*M-m*k+x*w)*z,e[3]=(v*k-c*M-d*w)*z,e[4]=(s*D-o*I-u*E)*z,e[5]=(t*I-n*D+i*E)*z,e[6]=(m*b-p*M-x*_)*z,e[7]=(f*M-v*b+d*_)*z,e[8]=(o*R-l*D+u*S)*z,e[9]=(a*D-t*R-i*S)*z,e[10]=(p*k-y*b+x*T)*z,e[11]=(c*b-f*k-d*T)*z,e[12]=(l*E-o*P-s*S)*z,e[13]=(t*P-a*E+n*S)*z,e[14]=(y*_-p*w-m*T)*z,e[15]=(f*w-c*_+v*T)*z,e):null}});var d9=N((AEe,h9)=>{h9.exports=rle;function rle(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],x=r[15];return e[0]=l*(v*x-d*m)-c*(s*x-u*m)+y*(s*d-u*v),e[1]=-(a*(v*x-d*m)-c*(n*x-i*m)+y*(n*d-i*v)),e[2]=a*(s*x-u*m)-l*(n*x-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*x-d*m)-f*(s*x-u*m)+p*(s*d-u*v)),e[5]=t*(v*x-d*m)-f*(n*x-i*m)+p*(n*d-i*v),e[6]=-(t*(s*x-u*m)-o*(n*x-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*x-d*y)-f*(l*x-u*y)+p*(l*d-u*c),e[9]=-(t*(c*x-d*y)-f*(a*x-i*y)+p*(a*d-i*c)),e[10]=t*(l*x-u*y)-o*(a*x-i*y)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*m-v*y)-f*(l*m-s*y)+p*(l*v-s*c)),e[13]=t*(c*m-v*y)-f*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(l*m-s*y)-o*(a*m-n*y)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var y9=N((MEe,p9)=>{p9.exports=tle;function tle(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],y=e[14],m=e[15],x=r*o-t*i,T=r*l-a*i,_=r*s-n*i,b=t*l-a*o,w=t*s-n*o,k=a*s-n*l,M=u*p-f*d,S=u*y-c*d,E=u*m-v*d,D=f*y-c*p,P=f*m-v*p,R=c*m-v*y;return x*R-T*P+_*D+b*E-w*S+k*M}});var g9=N((kEe,m9)=>{m9.exports=ale;function ale(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],y=r[12],m=r[13],x=r[14],T=r[15],_=t[0],b=t[1],w=t[2],k=t[3];return e[0]=_*a+b*l+w*c+k*y,e[1]=_*n+b*s+w*v+k*m,e[2]=_*i+b*u+w*d+k*x,e[3]=_*o+b*f+w*p+k*T,_=t[4],b=t[5],w=t[6],k=t[7],e[4]=_*a+b*l+w*c+k*y,e[5]=_*n+b*s+w*v+k*m,e[6]=_*i+b*u+w*d+k*x,e[7]=_*o+b*f+w*p+k*T,_=t[8],b=t[9],w=t[10],k=t[11],e[8]=_*a+b*l+w*c+k*y,e[9]=_*n+b*s+w*v+k*m,e[10]=_*i+b*u+w*d+k*x,e[11]=_*o+b*f+w*p+k*T,_=t[12],b=t[13],w=t[14],k=t[15],e[12]=_*a+b*l+w*c+k*y,e[13]=_*n+b*s+w*v+k*m,e[14]=_*i+b*u+w*d+k*x,e[15]=_*o+b*f+w*p+k*T,e}});var x9=N((SEe,b9)=>{b9.exports=nle;function nle(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,y,m,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],y=r[9],m=r[10],x=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=x,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+d*n+x*i+r[15]),e}});var w9=N((qEe,_9)=>{_9.exports=ile;function ile(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var A9=N((CEe,T9)=>{T9.exports=ole;function ole(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,y,m,x,T,_,b,w,k,M,S,E,D,P,R,I,z,B;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],y=r[4],m=r[5],x=r[6],T=r[7],_=r[8],b=r[9],w=r[10],k=r[11],M=n*n*f+u,S=i*n*f+o*s,E=o*n*f-i*s,D=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,I=n*o*f+i*s,z=i*o*f-n*s,B=o*o*f+u,e[0]=c*M+y*S+_*E,e[1]=v*M+m*S+b*E,e[2]=d*M+x*S+w*E,e[3]=p*M+T*S+k*E,e[4]=c*D+y*P+_*R,e[5]=v*D+m*P+b*R,e[6]=d*D+x*P+w*R,e[7]=p*D+T*P+k*R,e[8]=c*I+y*z+_*B,e[9]=v*I+m*z+b*B,e[10]=d*I+x*z+w*B,e[11]=p*I+T*z+k*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var k9=N((LEe,M9)=>{M9.exports=lle;function lle(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var q9=N((EEe,S9)=>{S9.exports=sle;function sle(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var L9=N((DEe,C9)=>{C9.exports=ule;function ule(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var D9=N((REe,E9)=>{E9.exports=fle;function fle(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var P9=N((PEe,R9)=>{R9.exports=cle;function cle(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,y=i*u,m=o*l,x=o*s,T=o*u;return e[0]=1-(d+y),e[1]=c+T,e[2]=v-x,e[3]=0,e[4]=c-T,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=v+x,e[9]=p-m,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var N9=N((FEe,F9)=>{F9.exports=vle;function vle(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var z9=N((NEe,I9)=>{I9.exports=hle;function hle(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var B9=N((IEe,O9)=>{O9.exports=dle;function dle(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var U9=N((zEe,H9)=>{H9.exports=ple;function ple(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var V9=N((OEe,G9)=>{G9.exports=yle;function yle(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var W9=N((BEe,Y9)=>{Y9.exports=mle;function mle(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,y=i*o,m=i*l,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-m,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=v+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var X9=N((HEe,j9)=>{j9.exports=gle;function gle(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var J9=N((UEe,Z9)=>{Z9.exports=ble;function ble(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var K9=N((GEe,$9)=>{$9.exports=xle;function xle(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var ek=N((VEe,Q9)=>{Q9.exports=_le;function _le(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var tk=N((YEe,rk)=>{var wle=Mb();rk.exports=Tle;function Tle(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],y=r[1],m=r[2],x=a[0],T=a[1],_=a[2],b=t[0],w=t[1],k=t[2];return Math.abs(p-b)<1e-6&&Math.abs(y-w)<1e-6&&Math.abs(m-k)<1e-6?wle(e):(f=p-b,c=y-w,v=m-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=T*v-_*c,i=_*f-x*v,o=x*c-T*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+o*m),e[13]=-(l*p+s*y+u*m),e[14]=-(f*p+c*y+v*m),e[15]=1,e)}});var nk=N((WEe,ak)=>{ak.exports=Ale;function Ale(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var kb=N((jEe,ik)=>{ik.exports={create:a9(),clone:i9(),copy:l9(),identity:Mb(),transpose:f9(),invert:v9(),adjoint:d9(),determinant:y9(),multiply:g9(),translate:x9(),scale:w9(),rotate:A9(),rotateX:k9(),rotateY:q9(),rotateZ:L9(),fromRotation:D9(),fromRotationTranslation:P9(),fromScaling:N9(),fromTranslation:z9(),fromXRotation:B9(),fromYRotation:U9(),fromZRotation:V9(),fromQuat:W9(),frustum:X9(),perspective:J9(),perspectiveFromFieldOfView:K9(),ortho:ek(),lookAt:tk(),str:nk()}});var Np=N(ra=>{"use strict";var Mle=kb();ra.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var kle=Sr(),ok=nu(),Sle=Np(),qle=kb();function Cle(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Lle(e){var r=kle.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function lk(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Ele(e,r){sk("global",e,r)}function sk(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):ok.warn("addStyleRule failed"):ok.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Dle(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&lk(t)}function Rle(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function Ple(e){var r=fk(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=uk(a);if(n){var i=Sle.convertCssMatrix(n);t=qle.multiply(t,t,i)}}),t}function uk(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function fk(e){for(var r=[];Fle(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Fle(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Nle(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}ck.exports={getGraphDiv:Cle,isPlotDiv:Lle,removeElement:lk,addStyleRule:Ele,addRelatedStyleRule:sk,deleteRelatedStyleRule:Dle,setStyleOnHover:Rle,getFullTransformMatrix:Ple,getElementTransformMatrix:uk,getElementAndAncestors:fk,equalDomRects:Nle}});var sh=N((JEe,vk)=>{"use strict";vk.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var eo=N(($Ee,bk)=>{"use strict";var dk=bt().extendFlat,Ile=Vl(),pk={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},yk={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},zle=pk.flags.slice().concat(["fullReplot"]),Ole=yk.flags.slice().concat("layoutReplot");bk.exports={traces:pk,layout:yk,traceFlags:function(){return hk(zle)},layoutFlags:function(){return hk(Ole)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Sb.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Sb.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var qb=N((QEe,xk)=>{"use strict";xk.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Wn=N(Bf=>{"use strict";var{DATE_FORMAT_LINK:Ble,FORMAT_LINK:Hle}=qb(),Ule=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Gle({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Hle,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Ble,"for details on the date formatting syntax.",Ule].join(" ")}Bf.templateFormatStringDescription=Gle;Bf.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Qs({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Bf.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Qs({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Bf.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Bf.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Op=N((tDe,kk)=>{"use strict";function jl(e,r){return r?r.d2l(e):e}function _k(e,r){return r?r.l2d(e):e}function Vle(e){return e.x0}function Yle(e){return e.x1}function Wle(e){return e.y0}function jle(e){return e.y1}function wk(e){return e.x0shift||0}function Tk(e){return e.x1shift||0}function Ak(e){return e.y0shift||0}function Mk(e){return e.y1shift||0}function Ip(e,r){return jl(e.x1,r)+Tk(e)-jl(e.x0,r)-wk(e)}function zp(e,r,t){return jl(e.y1,t)+Mk(e)-jl(e.y0,t)-Ak(e)}function Xle(e,r){return Math.abs(Ip(e,r))}function Zle(e,r,t){return Math.abs(zp(e,r,t))}function Jle(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ip(e,r),2)+Math.pow(zp(e,r,t),2))}function $le(e,r){return _k((jl(e.x1,r)+Tk(e)+jl(e.x0,r)+wk(e))/2,r)}function Kle(e,r,t){return _k((jl(e.y1,t)+Mk(e)+jl(e.y0,t)+Ak(e))/2,t)}function Qle(e,r,t){return e.type!=="line"?void 0:zp(e,r,t)/Ip(e,r)}var ese=["x0","x1","y0","y1","dy","height","ycenter"],rse=["x0","x1","y0","y1","dx","width","xcenter"];kk.exports={x0:Vle,x1:Yle,y0:Wle,y1:jle,slope:Qle,dx:Ip,dy:zp,width:Xle,height:Zle,length:Jle,xcenter:$le,ycenter:Kle,simpleXVariables:ese,simpleYVariables:rse}});var Ck=N((aDe,qk)=>{"use strict";var tse=eo().overrideAll,iu=gn(),Sk=ba(),ase=ci().dash,Xl=bt().extendFlat,{shapeTexttemplateAttrs:nse,templatefallbackAttrs:ise}=Wn(),ose=Op();qk.exports=tse({newshape:{visible:Xl({},iu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Xl({},iu.legend,{}),legendgroup:Xl({},iu.legendgroup,{}),legendgrouptitle:{text:Xl({},iu.legendgrouptitle.text,{}),font:Sk({})},legendrank:Xl({},iu.legendrank,{}),legendwidth:Xl({},iu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Xl({},ase,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Xl({},iu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:nse({newshape:!0},{keys:Object.keys(ose)}),texttemplatefallback:ise({editType:"arraydraw"}),font:Sk({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Ek=N((nDe,Lk)=>{"use strict";var lse=ci().dash,sse=bt().extendFlat;Lk.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:sse({},lse,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Bp=N((iDe,Dk)=>{"use strict";Dk.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Hf=N((oDe,Nk)=>{"use strict";var Cb=ba(),use=sh(),Hp=fi(),Rk=Ck(),Pk=Ek(),fse=Bp(),Fk=bt().extendFlat,Up=Cb({editType:"calc"});Up.family.dflt='"Open Sans", verdana, arial, sans-serif';Up.size.dflt=12;Up.color.dflt=Hp.defaultLine;Nk.exports={font:Up,title:{text:{valType:"string",editType:"layoutstyle"},font:Cb({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Cb({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Fk(fse({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Hp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Hp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Hp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Rk.newshape,activeshape:Rk.activeshape,newselection:Pk.newselection,activeselection:Pk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Fk({},use.transition,{editType:"none"})}});var Ik=N(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var br=N(Br=>{"use strict";var Uf=nu(),zk=Fp(),Ok=Ab(),cse=Vl(),vse=lh().addStyleRule,Bk=bt(),hse=gn(),dse=Hf(),pse=Bk.extendFlat,Lb=Bk.extendDeepAll;Br.modules={};Br.allCategories={};Br.allTypes=[];Br.subplotsRegistry={};Br.componentsRegistry={};Br.layoutArrayContainers=[];Br.layoutArrayRegexes=[];Br.traceLayoutAttributes={};Br.localeRegistry={};Br.apiMethodRegistry={};Br.collectableSubplotTypes=null;Br.register=function(r){if(Br.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var _se=Rf().timeFormat,$k=Rr(),Eb=nu(),Jl=Ff().mod,Yf=Ft(),vi=Yf.BADNUM,Rn=Yf.ONEDAY,uh=Yf.ONEHOUR,Zl=Yf.ONEMIN,Vf=Yf.ONESEC,fh=Yf.EPOCHJD,ul=br(),Yk=Rf().utcFormat,wse=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Tse=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Wk=new Date().getFullYear()-70;function fl(e){return e&&ul.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ta.dateTick0=function(e,r){var t=Ase(e,!!r);if(r<2)return t;var a=ta.dateTime2ms(t,e);return a+=Rn*(r-1),ta.ms2DateTime(a,0,e)};function Ase(e,r){return fl(e)?r?ul.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:ul.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ta.dfltRange=function(e){return fl(e)?ul.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ta.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Vp,Yp;ta.dateTime2ms=function(e,r){if(ta.isJSDate(e)){var t=e.getTimezoneOffset()*Zl,a=(e.getUTCMinutes()-e.getMinutes())*Zl+(e.getUTCSeconds()-e.getSeconds())*Vf+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Zl;t=t-n/2+Jl(a-t+n/2,n)}return e=Number(e)-t,e>=Vp&&e<=Yp?e:vi}if(typeof e!="string"&&typeof e!="number")return vi;e=String(e);var i=fl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?Tse:wse);if(!s)return vi;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return vi;u=Number(u);var y;try{var m=ul.getComponentMethod("calendars","getCal")(r);if(l){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,x),c)}else y=m.newDate(u,Number(f),c)}catch(_){return vi}return y?(y.toJD()-fh)*Rn+v*uh+d*Zl+p*Vf:vi}u.length===2?u=(Number(u)+2e3-Wk)%100+Wk:u=Number(u),f-=1;var T=new Date(Date.UTC(2e3,f,c,v,d));return T.setUTCFullYear(u),T.getUTCMonth()!==f||T.getUTCDate()!==c?vi:T.getTime()+p*Vf};Vp=ta.MIN_MS=ta.dateTime2ms("-9999");Yp=ta.MAX_MS=ta.dateTime2ms("9999-12-31 23:59:59.9999");ta.isDateTime=function(e,r){return ta.dateTime2ms(e,r)!==vi};function Gf(e,r){return String(e+Math.pow(10,r)).slice(1)}var Gp=90*Rn,jk=3*uh,Xk=5*Zl;ta.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Vp&&e<=Yp))return vi;r||(r=0);var a=Math.floor(Jl(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(fl(t)){var c=Math.floor(n/Rn)+fh,v=Math.floor(Jl(e,Rn));try{i=ul.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Yk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r=Vp+Rn&&e<=Yp-Rn))return vi;var r=Math.floor(Jl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=_se("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Kk(a,n,i,o,l)};function Kk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Gf(r,2)+":"+Gf(t,2),(a||n)&&(e+=":"+Gf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Gf(n,i)}return e}ta.cleanDate=function(e,r,t){if(e===vi)return r;if(ta.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(fl(t))return Eb.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ta.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ta.isDateTime(e,t))return Eb.error("unrecognized date",e),r;return e};var Mse=/%\d?f/g,kse=/%h/g,Sse={1:"1",2:"1",3:"2",4:"2"};function Zk(e,r,t,a){e=e.replace(Mse,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(kse,function(){return Sse[t("%q")(n)]}),fl(a))try{e=ul.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var qse=[59,59.9,59.99,59.999,59.9999];function Cse(e,r){var t=Jl(e+.05,Rn),a=Gf(Math.floor(t/uh),2)+":"+Gf(Jl(Math.floor(t/Zl),60),2);if(r!=="M"){$k(r)||(r=0);var n=Math.min(Jl(e/Vf,60),qse[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}ta.formatDate=function(e,r,t,a,n,i){if(n=fl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return Cse(e,t)+` +`+Zk(i.dayMonthYear,e,a,n);return Zk(r,e,a,n)};var Jk=3*Rn;ta.incrementMonth=function(e,r,t){t=fl(t)&&t;var a=Jl(e,Rn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Rn)+fh,i=ul.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-fh)*Rn+a}catch(s){Eb.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+Jk);return l.setUTCMonth(l.getUTCMonth()+r)+a-Jk};ta.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=fl(r)&&ul.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";eS.exports=function(r){return r}});var Pb=N(cl=>{"use strict";var Lse=Rr(),Ese=nu(),Dse=Db(),Rse=Ft().BADNUM,Rb=1e-9;cl.findBin=function(e,r,t){if(Lse(r.start))return t?Math.ceil((e-r.start)/r.size-Rb)-1:Math.floor((e-r.start)/r.size+Rb);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?Pse:Fse:s=t?Ise:Nse,e+=o*Rb*(t?-1:1)*(o>=0?1:-1);a90&&Ese.log("Long binary search..."),a-1};function Pse(e,r){return er}function Ise(e,r){return e>=r}cl.sorterAsc=function(e,r){return e-r};cl.sorterDes=function(e,r){return r-e};cl.distinctVals=function(e){var r=e.slice();r.sort(cl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Rse;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};cl.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};cl.findIndexOfMin=function(e,r){r=r||Dse;for(var t=1/0,a,n=0;n{"use strict";rS.exports=function(r){return Object.keys(r).sort()}});var tS=N(aa=>{"use strict";var ch=Rr(),zse=Cn().isArrayOrTypedArray;aa.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),ch(r)||(r=!1),zse(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var lS=N((pDe,oS)=>{"use strict";var aS=Ff(),Nb=aS.mod,Ose=aS.modHalf,vh=Math.PI,$l=2*vh;function Bse(e){return e/180*vh}function Hse(e){return e/vh*180}function Ib(e){return Math.abs(e[1]-e[0])>$l-1e-14}function nS(e,r){return Ose(r-e,$l)}function Use(e,r){return Math.abs(nS(e,r))}function iS(e,r){if(Ib(r))return!0;var t,a;r[0]a&&(a+=$l);var n=Nb(e,$l),i=n+$l;return n>=t&&n<=a||i>=t&&i<=a}function Gse(e,r,t,a){if(!iS(r,a))return!1;var n,i;return t[0]=n&&e<=i}function zb(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Ib([t,a]),s,u,f,c,v;l?(s=0,u=vh,f=$l):t{"use strict";ou.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ou.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ou.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ou.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ou.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ou.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var cS=N(lu=>{"use strict";var Ob=Ff().mod;lu.segmentsIntersect=fS;function fS(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var y=(u*d-f*v)/p,m=(u*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}lu.segmentDistance=function(r,t,a,n,i,o,l,s){if(fS(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,y=Math.min(Wp(u,f,d,i-r,o-t),Wp(u,f,d,l-r,s-t),Wp(c,v,p,r-i,t-o),Wp(c,v,p,a-i,n-o));return Math.sqrt(y)};function Wp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var jp,Bb,uS;lu.getTextLocation=function(r,t,a,n){if((r!==Bb||n!==uS)&&(jp={},Bb=r,uS=n),jp[a])return jp[a];var i=r.getPointAtLength(Ob(a-n/2,t)),o=r.getPointAtLength(Ob(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(Ob(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return jp[a]=c,c};lu.clearLocationCache=function(){Bb=null};lu.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(v=m);var x=m.xi?m.x-i:0,T=m.yl?m.y-l:0;return Math.sqrt(x*x+T*T)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};lu.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var Xp=N(hh=>{"use strict";var vl={};hh.throttle=function(r,t,a){var n=vl[r],i=Date.now();if(!n){for(var o in vl)vl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};hh.done=function(e){var r=vl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};hh.clear=function(e){if(e)vS(vl[e]),delete vl[e];else for(var r in vl)hh.clear(r)};function vS(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var dS=N((bDe,hS)=>{"use strict";hS.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var pS=N((xDe,Zp)=>{"use strict";Zp.exports=Hb;Zp.exports.isMobile=Hb;Zp.exports.default=Hb;var jse=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Xse=/CrOS/,Zse=/android|ipad|playbook|silk/i;function Hb(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=jse.test(r)&&!Xse.test(r)||!!e.tablet&&Zse.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var mS=N((_De,yS)=>{"use strict";var Jse=Rr(),$se=pS();yS.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Kse(),typeof t!="string")return!0;var a=$se({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(Jse(u)&&(u=+u),u>=13)return!0}}}return a};function Kse(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var bS=N((wDe,gS)=>{"use strict";var Qse=Sr();gS.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Qse.select(this)}),n}});var _S=N((TDe,xS)=>{"use strict";var eue=br();xS.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=eue.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var TS=N((ADe,wS)=>{"use strict";wS.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";AS.exports=function(r){for(var t=aue(r)?tue:rue,a=[],n=0;n{"use strict";kS.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var CS=N((SDe,qS)=>{"use strict";var nue=Rr(),iue=Ft().BADNUM,oue=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;qS.exports=function(r){return typeof r=="string"&&(r=r.replace(oue,"")),nue(r)?Number(r):iue}});var Le=N((qDe,US)=>{"use strict";var dh=Sr(),lue=Rf().utcFormat,sue=fb().format,FS=Rr(),NS=Ft(),IS=NS.FP_SAFE,uue=-IS,LS=NS.BADNUM,be=US.exports={};be.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var ES={};be.warnBadFormat=function(e){var r=String(e);ES[r]||(ES[r]=1,be.warn('encountered bad format: "'+r+'"'))};be.noFormat=function(e){return String(e)};be.numberFormat=function(e){var r;try{r=sue(be.adjustFormat(e))}catch(t){return be.warnBadFormat(e),be.noFormat}return r};be.nestedProperty=kp();be.keyedContainer=wM();be.relativeAttr=AM();be.isPlainObject=Vl();be.toLogRange=qp();be.relinkPrivateKeys=qM();var Kl=Cn();be.isArrayBuffer=Kl.isArrayBuffer;be.isTypedArray=Kl.isTypedArray;be.isArrayOrTypedArray=Kl.isArrayOrTypedArray;be.isArray1D=Kl.isArray1D;be.ensureArray=Kl.ensureArray;be.concat=Kl.concat;be.maxRowLength=Kl.maxRowLength;be.minRowLength=Kl.minRowLength;var zS=Ff();be.mod=zS.mod;be.modHalf=zS.modHalf;var Ql=jM();be.valObjectMeta=Ql.valObjectMeta;be.coerce=Ql.coerce;be.coerce2=Ql.coerce2;be.coerceFont=Ql.coerceFont;be.coercePattern=Ql.coercePattern;be.coerceHoverinfo=Ql.coerceHoverinfo;be.coerceSelectionMarkerOpacity=Ql.coerceSelectionMarkerOpacity;be.validate=Ql.validate;var jn=Qk();be.dateTime2ms=jn.dateTime2ms;be.isDateTime=jn.isDateTime;be.ms2DateTime=jn.ms2DateTime;be.ms2DateTimeLocal=jn.ms2DateTimeLocal;be.cleanDate=jn.cleanDate;be.isJSDate=jn.isJSDate;be.formatDate=jn.formatDate;be.incrementMonth=jn.incrementMonth;be.dateTick0=jn.dateTick0;be.dfltRange=jn.dfltRange;be.findExactDates=jn.findExactDates;be.MIN_MS=jn.MIN_MS;be.MAX_MS=jn.MAX_MS;var su=Pb();be.findBin=su.findBin;be.sorterAsc=su.sorterAsc;be.sorterDes=su.sorterDes;be.distinctVals=su.distinctVals;be.roundUp=su.roundUp;be.sort=su.sort;be.findIndexOfMin=su.findIndexOfMin;be.sortObjectKeys=Fb();var hl=tS();be.aggNums=hl.aggNums;be.len=hl.len;be.mean=hl.mean;be.geometricMean=hl.geometricMean;be.median=hl.median;be.midRange=hl.midRange;be.variance=hl.variance;be.stdev=hl.stdev;be.interp=hl.interp;var ro=Np();be.init2dArray=ro.init2dArray;be.transposeRagged=ro.transposeRagged;be.dot=ro.dot;be.translationMatrix=ro.translationMatrix;be.rotationMatrix=ro.rotationMatrix;be.rotationXYMatrix=ro.rotationXYMatrix;be.apply3DTransform=ro.apply3DTransform;be.apply2DTransform=ro.apply2DTransform;be.apply2DTransform2=ro.apply2DTransform2;be.convertCssMatrix=ro.convertCssMatrix;be.inverseTransformMatrix=ro.inverseTransformMatrix;var So=lS();be.deg2rad=So.deg2rad;be.rad2deg=So.rad2deg;be.angleDelta=So.angleDelta;be.angleDist=So.angleDist;be.isFullCircle=So.isFullCircle;be.isAngleInsideSector=So.isAngleInsideSector;be.isPtInsideSector=So.isPtInsideSector;be.pathArc=So.pathArc;be.pathSector=So.pathSector;be.pathAnnulus=So.pathAnnulus;var jf=sS();be.isLeftAnchor=jf.isLeftAnchor;be.isCenterAnchor=jf.isCenterAnchor;be.isRightAnchor=jf.isRightAnchor;be.isTopAnchor=jf.isTopAnchor;be.isMiddleAnchor=jf.isMiddleAnchor;be.isBottomAnchor=jf.isBottomAnchor;var Xf=cS();be.segmentsIntersect=Xf.segmentsIntersect;be.segmentDistance=Xf.segmentDistance;be.getTextLocation=Xf.getTextLocation;be.clearLocationCache=Xf.clearLocationCache;be.getVisibleSegment=Xf.getVisibleSegment;be.findPointOnPath=Xf.findPointOnPath;var Kp=bt();be.extendFlat=Kp.extendFlat;be.extendDeep=Kp.extendDeep;be.extendDeepAll=Kp.extendDeepAll;be.extendDeepNoArrays=Kp.extendDeepNoArrays;var Ub=nu();be.log=Ub.log;be.warn=Ub.warn;be.error=Ub.error;var fue=If();be.counterRegex=fue.counter;var Gb=Xp();be.throttle=Gb.throttle;be.throttleDone=Gb.done;be.clearThrottle=Gb.clear;var to=lh();be.getGraphDiv=to.getGraphDiv;be.isPlotDiv=to.isPlotDiv;be.removeElement=to.removeElement;be.addStyleRule=to.addStyleRule;be.addRelatedStyleRule=to.addRelatedStyleRule;be.deleteRelatedStyleRule=to.deleteRelatedStyleRule;be.setStyleOnHover=to.setStyleOnHover;be.getFullTransformMatrix=to.getFullTransformMatrix;be.getElementTransformMatrix=to.getElementTransformMatrix;be.getElementAndAncestors=to.getElementAndAncestors;be.equalDomRects=to.equalDomRects;be.clearResponsive=dS();be.preserveDrawingBuffer=mS();be.makeTraceGroups=bS();be._=_S();be.notifier=_b();be.filterUnique=TS();be.filterVisible=MS();be.pushUnique=Ab();be.increment=SS();be.cleanNumber=CS();be.ensureNumber=function(r){return FS(r)?(r=Number(r),r>IS||r=r?!1:FS(e)&&e>=0&&e%1===0};be.noop=Fp();be.identity=Db();be.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};be.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};be.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(be.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};be.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};be.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};be.syncOrAsync=function(e,r,t){var a,n;function i(){return be.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};be.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};be.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};be.fillArray=function(e,r,t,a){if(a=a||be.identity,be.isArrayOrTypedArray(e))for(var n=0;nhue.test(window.navigator.userAgent);var due=/Firefox\/(\d+)\.\d+/;be.getFirefoxVersion=function(){var e=due.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};be.isD3Selection=function(e){return e instanceof dh.selection};be.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};be.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};be.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};be.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var HS=/^\w*$/;be.templateString=function(e,r){var t={};return e.replace(be.TEMPLATE_STRING_REGEX,function(a,n){var i;return HS.test(n)?i=r[n]:(t[n]=t[n]||be.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var mue={max:10,count:0,name:"hovertemplate"};be.hovertemplateString=e=>Vb(gp(Qs({},e),{opts:mue}));var gue={max:10,count:0,name:"texttemplate"};be.texttemplateString=e=>Vb(gp(Qs({},e),{opts:gue}));var bue=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function xue(e){var r=e.match(bue);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var _ue={max:10,count:0,name:"texttemplate",parseMultDiv:!0};be.texttemplateStringForShapes=e=>Vb(gp(Qs({},e),{opts:_ue}));var DS=/^[:|\|]/;function Vb({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(be.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=u||f||v||c;(f||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,y=null;if(n.parseMultDiv){var m=xue(l);l=m.key,p=m.op,y=m.number}let x;if(d){if(a[l]===void 0)return"";x=a[l]}else for(let w of e)if(w){if(w.hasOwnProperty(l)){x=w[l];break}if(HS.test(l)||(x=be.nestedProperty(w,l).get(!0)),x!==void 0)break}if(x===void 0){let{count:w,max:k,name:M}=n,S=t===!1?o:t;return w=$p&&o<=RS,u=l>=$p&&l<=RS;if(s&&(a=10*a+o-$p),u&&(n=10*n+l-$p),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Wf=2e9;be.seedPseudoRandom=function(){Wf=2e9};be.pseudoRandom=function(){var e=Wf;return Wf=(69069*Wf+1)%4294967296,Math.abs(Wf-e)<429496729?be.pseudoRandom():Wf/4294967296};be.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=be.extractOption(e,r,"htx","hovertext");if(be.isValidTextValue(n))return a(n);var i=be.extractOption(e,r,"tx","text");if(be.isValidTextValue(i))return a(i)};be.isValidTextValue=function(e){return e||e===0};be.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,be.strTranslate(n-u*(t+o),i-u*(a+l))+be.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};be.setTransormAndDisplay=function(e,r){e.attr("transform",be.getTextTransform(r)),e.style("display",r.scale?null:"none")};be.ensureUniformFontSize=function(e,r){var t=be.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};be.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};be.bigFont=function(e){return Math.round(1.2*e)};var PS=be.getFirefoxVersion(),wue=PS!==null&&PS<86;be.getPositionFromD3Event=function(){return wue?[dh.event.layerX,dh.event.layerY]:[dh.event.offsetX,dh.event.offsetY]}});var YS=N(()=>{"use strict";var Tue=Le(),GS={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#fff;border-color:#e0e2e5;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#f3f3f3;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Yb in GS)VS=Yb.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Tue.addStyleRule(VS,GS[Yb]);var VS,Yb});var Wb=N((DDe,WS)=>{WS.exports=!0});var Xb=N((RDe,jS)=>{"use strict";var Aue=Wb(),jb;typeof window.matchMedia=="function"?jb=!window.matchMedia("(hover: none)").matches:jb=Aue;jS.exports=jb});var uu=N((PDe,Zb)=>{"use strict";var Zf=typeof Reflect=="object"?Reflect:null,XS=Zf&&typeof Zf.apply=="function"?Zf.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Qp;Zf&&typeof Zf.ownKeys=="function"?Qp=Zf.ownKeys:Object.getOwnPropertySymbols?Qp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Qp=function(r){return Object.getOwnPropertyNames(r)};function Mue(e){console&&console.warn&&console.warn(e)}var JS=Number.isNaN||function(r){return r!==r};function Ct(){Ct.init.call(this)}Zb.exports=Ct;Zb.exports.once=Cue;Ct.EventEmitter=Ct;Ct.prototype._events=void 0;Ct.prototype._eventsCount=0;Ct.prototype._maxListeners=void 0;var ZS=10;function e1(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ct,"defaultMaxListeners",{enumerable:!0,get:function(){return ZS},set:function(e){if(typeof e!="number"||e<0||JS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ZS=e}});Ct.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ct.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||JS(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function $S(e){return e._maxListeners===void 0?Ct.defaultMaxListeners:e._maxListeners}Ct.prototype.getMaxListeners=function(){return $S(this)};Ct.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")XS(s,this,t);else for(var u=s.length,f=tq(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,Mue(l)}return e}Ct.prototype.addListener=function(r,t){return KS(this,r,t,!1)};Ct.prototype.on=Ct.prototype.addListener;Ct.prototype.prependListener=function(r,t){return KS(this,r,t,!0)};function kue(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function QS(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=kue.bind(a);return n.listener=t,a.wrapFn=n,n}Ct.prototype.once=function(r,t){return e1(t),this.on(r,QS(this,r,t)),this};Ct.prototype.prependOnceListener=function(r,t){return e1(t),this.prependListener(r,QS(this,r,t)),this};Ct.prototype.removeListener=function(r,t){var a,n,i,o,l;if(e1(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():Sue(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Ct.prototype.off=Ct.prototype.removeListener;Ct.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function eq(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?que(n):tq(n,n.length)}Ct.prototype.listeners=function(r){return eq(this,r,!0)};Ct.prototype.rawListeners=function(r){return eq(this,r,!1)};Ct.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):rq.call(e,r)};Ct.prototype.listenerCount=rq;function rq(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Ct.prototype.eventNames=function(){return this._eventsCount>0?Qp(this._events):[]};function tq(e,r){for(var t=new Array(r),a=0;a{"use strict";var Jb=uu().EventEmitter,Eue={init:function(e){if(e._ev instanceof Jb)return e;var r=new Jb,t=new Jb;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var iq=Le(),Due=au().dfltConfig;function Rue(e,r){for(var t=[],a,n=0;nDue.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};dl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};dl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};dl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";sq.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Kf=N(xa=>{"use strict";var hi=br(),yh=Le(),t1=gn(),Kb=Hf(),Pue=$b(),Fue=sh(),Nue=au().configAttributes,uq=eo(),ao=yh.extendDeepAll,Jf=yh.isPlainObject,Iue=yh.isArrayOrTypedArray,a1=yh.nestedProperty,zue=yh.valObjectMeta,Qb="_isSubplotObj",n1="_isLinkedToArray",Oue="_arrayAttrRegexps",cq="_deprecated",ex=[Qb,n1,Oue,cq];xa.IS_SUBPLOT_OBJ=Qb;xa.IS_LINKED_TO_ARRAY=n1;xa.DEPRECATED=cq;xa.UNDERSCORE_ATTRS=ex;xa.get=function(){var e={};return hi.allTypes.forEach(function(r){e[r]=Hue(r)}),{defs:{valObjects:zue,metaKeys:ex.concat(["description","role","editType","impliedEdits"]),editType:{traces:uq.traces,layout:uq.layout},impliedEdits:{}},traces:e,layout:Uue(),frames:Gue(),animation:$f(Fue),config:$f(Nue)}};xa.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(ex.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!xa.isValObject(o)&&Jf(o)&&i!=="impliedEdits"&&xa.crawl(o,r,n+1,l)}})};xa.isValObject=function(e){return e&&e.valType!==void 0};xa.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)Iue(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!r1(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function r1(e){return e===Math.round(e)&&e>=0}function Hue(e){var r,t;r=hi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=ao({},t1),i=ao({},r.attributes);xa.crawl(i,function(s,u,f,c,v){a1(n,v).set(void 0),s===void 0&&a1(i,v).set(void 0)}),ao(a,n),hi.traceIs(e,"noOpacity")&&delete a.opacity,hi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),hi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,ao(a,i),t.attributes&&ao(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:$f(a)};if(r.layoutAttributes){var l={};ao(l,r.layoutAttributes),o.layoutAttributes=$f(l)}return r.animatable||xa.crawl(o,function(s){xa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function Uue(){var e={},r,t;ao(e,Kb);for(r in hi.subplotsRegistry)if(t=hi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Qf=Le(),Xue=gn(),es="templateitemname",rx={name:{valType:"string",editType:"none"}};rx[es]={valType:"string",editType:"calc"};fu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=rx.name,r[es]=rx[es],r};fu.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Qf.coerce(i,{},Xue,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};fu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Qf.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};fu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[dq(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[es]=u[es];if(!hq(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][es]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Qf.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var y=c();for(var m in y)Qf.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var _a=N((BDe,pq)=>{"use strict";var mh=If().counter;pq.exports={idRegex:{x:mh("x","( domain)?"),y:mh("y","( domain)?")},attrRegex:mh("[xy]axis"),xAxisMatch:mh("xaxis"),yAxisMatch:mh("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var ca=N(Pn=>{"use strict";var Zue=br(),tx=_a();Pn.id2name=function(r){if(!(typeof r!="string"||!r.match(tx.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Pn.name2id=function(r){if(r.match(tx.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Pn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(tx.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Pn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Pn.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Pn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function yq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Jue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function $ue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}mq.exports={clearOutlineControllers:Jue,clearOutline:$ue}});var i1=N((GDe,gq)=>{"use strict";gq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var s1=N(l1=>{"use strict";var o1=br(),VDe=_a().SUBPLOT_PATTERN;l1.getSubplotCalcData=function(e,r,t){var a=o1.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Kue=br(),ec=Le();cu.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=cu.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){bq(e,o,n.cache),n.check=function(){if(i){var f=bq(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;ec.isPlainObject(i)?ax(i,r,o,a+1):r(o,n,i)}})}});var na=N((jDe,Fq)=>{"use strict";var efe=Sr(),rfe=Rf().timeFormatLocale,tfe=fb().formatLocale,gh=Rr(),afe=cb(),nfe=Kv().version,Qr=br(),Cq=Kf(),ife=wt(),vr=Le(),Lq=Tr(),Tq=Ft().BADNUM,Fn=ca(),ofe=rs().clearOutline,lfe=i1(),nx=sh(),sfe=$b(),ufe=s1().getModuleCalcData,Aq=vr.relinkPrivateKeys,vu=vr._,Qe=Fq.exports={};vr.extendFlat(Qe,Qr);Qe.attributes=gn();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=ba();Qe.layoutAttributes=Hf();var f1=wq();Qe.executeAPICommand=f1.executeAPICommand;Qe.computeAPICommandBindings=f1.computeAPICommandBindings;Qe.manageCommandObserver=f1.manageCommandObserver;Qe.hasSimpleAPICommandBindings=f1.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Qr.getComponentMethod("annotations","draw")(e),Qr.getComponentMethod("legend","draw")(e),Qr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Qr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=vr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Lq.defaultLine,"pointer-events":"all"}).each(function(){var u=efe.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&ffe(e,i),o.text(i.text()&&l.text()?" - ":"")}};function ffe(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Qe.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Qe.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Qe.graphJson(e,!1,"keepdata","object");a.version=nfe;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var cfe=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],vfe=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:vu(e,"Click to enter Plot title"),subtitle:vu(e,"Click to enter Plot subtitle"),x:vu(e,"Click to enter X axis title"),y:vu(e,"Click to enter Y axis title"),colorbar:vu(e,"Click to enter Colorscale title"),annotation:vu(e,"new text")},n._traceWord=vu(e,"trace");var v=Mq(e,cfe);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;Qe.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,x=f.autosizable,T=y&&(m||x);T?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=pfe(v,n.separators),n._extraFormat=Mq(e,vfe),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=dfe(),b=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=hfe(o,s),Qe.supplyDataDefaults(s,l,i,n);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.length>1){for(Qr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(l,n,o,a),Qe.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),z=R,B=I;z&&!B?a._bgLayer.remove():B&&!z&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&ofe({_fullLayout:a}),yfe(l,n),Aq(n,a),Qr.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var G=n._tracePreGUI,Y={},V;for(V in G)Y[V]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Qe.layoutAttributes.width.min,v=Qe.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Qr.componentsRegistry,i=r._basePlotModules,o,l,s,u=Qr.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Qr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var x=(t.t+t.b)/v;x>1&&(t.t/=x,t.b/=x)}var T=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,w=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+y},r:{val:_,size:t.r+y},b:{val:w,size:t.b+y},t:{val:b,size:t.t+y}},p[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function gfe(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Fn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),Eq(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var x=e._fullLayout._reservedMargin;for(var T in x)for(var _ in x[T]){var b=x[T][_];o[_]=Math.max(o[_],b)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var w in o){var k=0;for(var M in v)M!=="base"&&gh(v[M][w].size)&&(k=v[M][w].size>k?v[M][w].size:k);var S=Math.max(0,i[w]-k);o[w]=Math.max(0,o[w]-S)}for(var E in v){var D=v[E].l||{},P=v[E].b||{},R=D.val,I=D.size,z=P.val,B=P.size,G=t-o.r-o.l,Y=a-o.t-o.b;for(var V in v){if(gh(I)&&v[V].r){var H=v[V].r.val,Z=v[V].r.size;if(H>R){var W=(I*H+(Z-G)*R)/(H-R),ee=(Z*(1-R)+(I-G)*(1-H))/(H-R);W+ee>s+u&&(s=W,u=ee)}}if(gh(B)&&v[V].t){var oe=v[V].t.val,le=v[V].t.size;if(oe>z){var ue=(B*oe+(le-Y)*z)/(oe-z),K=(le*(1-z)+(B-Y)*(1-oe))/(oe-z);ue+K>c+f&&(c=ue,f=K)}}}}}var _e=vr.constrain(t-i.l-i.r,Dq,p),fe=vr.constrain(a-i.t-i.b,Rq,y),ve=Math.max(0,t-_e),ye=Math.max(0,a-fe);if(ve){var ce=(s+u)/ve;ce>1&&(s/=ce,u/=ce)}if(ye){var j=(c+f)/ye;j>1&&(c/=j,f/=j)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(l,n)||gfe(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Qe.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(v,d){if(typeof v=="function")return d?"_function_":null;if(vr.isPlainObject(v)){var p={},y;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.slice(-3)==="src")return}else if(t==="keepstream"){if(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0&&!vr.isPlainObject(v.stream))return}else if(t!=="keepall"&&(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[_]=u(v[_],d)}}),p}var m=Array.isArray(v),x=vr.isTypedArray(v);if((m||x)&&v.dtype&&v.shape){var T=v.bdata;return u({dtype:v.dtype,shape:v.shape,bdata:vr.isArrayBuffer(T)?afe.encode(T):T},d)}return m?v.map(function(_){return u(_,d)}):x?vr.simpleMap(v,vr.identity):vr.isJSDate(v)?vr.ms2DateTimeLocal(+v):v}var f={data:(o||[]).map(function(v){var d=u(v);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),n)){var c=l._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Qr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Qr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,o],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=Fn.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(w[s].enabled){i._indexToPoints=w[s]._indexToPoints;break}o&&o.calc&&(b=o.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:Tq,y:Tq}]),b[0].t||(b[0].t={}),b[0].trace=i,u[T]=b}}for(Sq(t,a,n),l=0;l{"use strict";hu.xmlns="http://www.w3.org/2000/xmlns/";hu.svg="http://www.w3.org/2000/svg";hu.xlink="http://www.w3.org/1999/xlink";hu.svgAttrs={xmlns:hu.svg,"xmlns:xlink":hu.xlink}});var Ga=N((ZDe,Nq)=>{"use strict";Nq.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Ma=N(di=>{"use strict";var va=Sr(),yl=Le(),wfe=yl.strTranslate,ix=pl(),Tfe=Ga().LINE_SPACING,Afe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;di.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(Afe),i=va.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=Ife(e.node(),a);s&&e.style("pointer-events","all"),di.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};qfe(n[2],f,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var m=d.width,x=d.height;p.attr({class:o,height:x,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var T=e.node().style.fill||"black",_=p.select("g");_.attr({fill:T,stroke:T});var b=_.node().getBoundingClientRect(),w=b.width,k=b.height;(w>m||k>x)&&(p.style("overflow","hidden"),b=p.node().getBoundingClientRect(),w=b.width,k=b.height);var M=+e.attr("x"),S=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,D=-E/4;if(o[0]==="y")y.attr({transform:"rotate("+[-90,M,S]+")"+wfe(-w/2,D-k/2)});else if(o[0]==="l")S=D-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,S=D;else{var P=e.attr("text-anchor");M=M-w*(P==="middle"?.5:P==="end"?1:0),S=S+D-k/2}p.attr({x:M,y:S}),t&&t.call(e,y),s(y)})})):l(),e};var Mfe=/(<|<|<)/g,kfe=/(>|>|>)/g;function Sfe(e){return e.replace(Mfe,"\\lt ").replace(kfe,"\\gt ")}var Iq=[["$","$"],["\\(","\\)"]];function qfe(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){yl.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=yl.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Iq},displayAlign:"left"})},u=function(){i=yl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Iq},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var T="math-output-"+yl.randstr({},64);l=va.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(Sfe(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var T=l.select(a===2?".MathJax_SVG":".MathJax"),_=!T.empty()&&l.select("svg").node();if(!_)yl.log("There was an error in the tex syntax.",e),t();else{var b=_.getBoundingClientRect(),w;a===2?w=va.select("body").select("#MathJax_SVG_glyphs"):w=T.select("defs"),t(T,w,b)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},x=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,v,d,p,m):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),y(),x()}))}var Hq={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Cfe={sub:"0.3em",sup:"-0.6em"},Lfe={sub:"-0.21em",sup:"0.42em"},zq="\u200B",Oq=["http:","https:","mailto:","",void 0,":"],Uq=di.NEWLINES=/(\r\n?|\n)/g,lx=/(<[^<>]*>)/,sx=/<(\/?)([^ >]*)(\s+(.*))?>/i,Efe=//i;di.BR_TAG_ALL=//gi;var Gq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Vq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Yq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Dfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function du(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&c1(a)}var Rfe=/(^|;)\s*color:/;di.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(lx),l=[],s="",u=0,f=0;fi?l.push(c.slice(0,Math.max(0,y-i))+n):l.push(c.slice(0,y));break}s=""}}return l.join("")};var Pfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Ffe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function c1(e){return e.replace(Ffe,function(r,t){var a;return t.charAt(0)==="#"?a=Nfe(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Pfe[t],a||r})}di.convertEntities=c1;function Nfe(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Ife(e,r){r=r.replace(Uq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(ix.svg,"tspan");va.select(k).attr({class:"line",dy:i*Tfe+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var S=1;S.",r);return}var M=a.pop();k!==M.type&&yl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Efe.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(lx),v=0;v{"use strict";var zfe=Sr(),h1=Ln(),xh=Rr(),v1=Le(),jq=Tr(),Ofe=ru().isValid;function Bfe(e,r,t){var a=r?v1.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(v1.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function Qq(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var rC=qb(),Ufe=rC.FORMAT_LINK,Gfe=rC.DATE_FORMAT_LINK;function Vfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?ux:tC)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ux(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Ufe+"."].join(" ")}function tC(e,r){return ux(e,r)+[" And for dates see: "+Gfe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}aC.exports={axisHoverFormat:Vfe,descriptionOnlyNumbers:ux,descriptionWithDates:tC}});var pi=N((eRe,xC)=>{"use strict";var nC=ba(),rc=fi(),bC=ci().dash,cx=bt().extendFlat,iC=wt().templatedArray,QDe=Wn().templateFormatStringDescription,oC=no().descriptionWithDates,Yfe=Ft().ONEDAY,qo=_a(),Wfe=qo.HOUR_PATTERN,jfe=qo.WEEKDAY_PATTERN,fx={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Xfe=cx({},fx,{values:fx.values.slice().concat(["sync"])});function lC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var sC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},uC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},fC={valType:"data_array",editType:"ticks"},cC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function vC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function hC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var dC={valType:"color",dflt:rc.defaultLine,editType:"ticks"},pC={valType:"color",dflt:rc.lightLine,editType:"ticks"};function yC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var mC=cx({},bC,{editType:"ticks"}),gC={valType:"boolean",editType:"ticks"};xC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:rc.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:nC({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[qo.idRegex.x.toString(),qo.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[qo.idRegex.x.toString(),qo.idRegex.y.toString()],editType:"calc"},rangebreaks:iC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[jfe,Wfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Yfe},editType:"calc"}),tickmode:Xfe,nticks:lC(),tick0:sC,dtick:uC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:fC,ticktext:{valType:"data_array",editType:"ticks"},ticks:cC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:vC(),tickwidth:hC(),tickcolor:dC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:cx({},bC,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:nC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:oC("tick label")},tickformatstops:iC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:oC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:rc.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:gC,gridcolor:pC,gridwidth:yC(),griddash:mC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:rc.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:rc.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",qo.idRegex.x.toString(),qo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",qo.idRegex.x.toString(),qo.idRegex.y.toString()],editType:"plot"},minor:{tickmode:fx,nticks:lC("minor"),tick0:sC,dtick:uC,tickvals:fC,ticks:cC,ticklen:vC("minor"),tickwidth:hC("minor"),tickcolor:dC,gridcolor:pC,gridwidth:yC("minor"),griddash:mC,showgrid:gC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var d1=N((rRe,TC)=>{"use strict";var Lt=pi(),_C=ba(),wC=bt().extendFlat,Zfe=eo().overrideAll;TC.exports=Zfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Lt.linecolor,outlinewidth:Lt.linewidth,bordercolor:Lt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Lt.minor.tickmode,nticks:Lt.nticks,tick0:Lt.tick0,dtick:Lt.dtick,tickvals:Lt.tickvals,ticktext:Lt.ticktext,ticks:wC({},Lt.ticks,{dflt:""}),ticklabeloverflow:wC({},Lt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Lt.ticklen,tickwidth:Lt.tickwidth,tickcolor:Lt.tickcolor,ticklabelstep:Lt.ticklabelstep,showticklabels:Lt.showticklabels,labelalias:Lt.labelalias,tickfont:_C({}),tickangle:Lt.tickangle,tickformat:Lt.tickformat,tickformatstops:Lt.tickformatstops,tickprefix:Lt.tickprefix,showtickprefix:Lt.showtickprefix,ticksuffix:Lt.ticksuffix,showticksuffix:Lt.showticksuffix,separatethousands:Lt.separatethousands,exponentformat:Lt.exponentformat,minexponent:Lt.minexponent,showexponent:Lt.showexponent,title:{text:{valType:"string"},font:_C({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Co=N((aRe,MC)=>{"use strict";var Jfe=d1(),$fe=If().counter,Kfe=Fb(),AC=ru().scales,tRe=Kfe(AC);function p1(e){return"`"+e+"`"}MC.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?AC[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+p1(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",x=p1(u+d),T=p1(u+p),_=p1(u+y),b=T+" and "+_,w={};w[p]=w[y]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:w},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:w},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Jfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:$fe("coloraxis"),dflt:null,editType:"calc"}),M}});var hx=N((nRe,kC)=>{"use strict";var Qfe=bt().extendFlat,ece=Co(),vx=ru().scales;kC.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:vx.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:vx.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:vx.RdBu,editType:"calc"}},coloraxis:Qfe({_isSubplotObj:!0,editType:"calc"},ece("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var dx=N((iRe,SC)=>{"use strict";var rce=Le();SC.exports=function(r){return rce.isPlainObject(r.colorbar)}});var mx=N(yx=>{"use strict";var px=Rr(),qC=Le(),CC=Ft(),tce=CC.ONEDAY,ace=CC.ONEWEEK;yx.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?tce:1;if(!e)return i;if(px(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=px(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};yx.tick0=function(e,r,t,a){if(r==="date")return qC.cleanDate(e,qC.dateTick0(t,a%ace===0?1:0));if(!(a==="D1"||a==="D2"))return px(e)?Number(e):0}});var y1=N((lRe,EC)=>{"use strict";var LC=mx(),nce=Le().isArrayOrTypedArray,ice=Cn().isTypedArraySpec,oce=Cn().decodeTypedArraySpec;EC.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(T){var _=l[T];return ice(_)&&(_=oce(_)),_!==void 0?_:(s._template||{})[T]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=nce(d)?"array":v?"linear":"auto",y=a(u+"tickmode",p);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var m=s.dtick=LC.dtick(v,n);s.tick0=LC.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var m1=N((sRe,RC)=>{"use strict";var gx=Le(),DC=pi();RC.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?DC.minor:DC,u=i?"minor.":"",f=gx.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=gx.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=gx.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var bx=N((uRe,PC)=>{"use strict";PC.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var io=N((fRe,FC)=>{"use strict";var g1=Le(),lce=wt();FC.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=g1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=lce.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var xx=Le(),sce=Tr().contrast,NC=pi(),uce=bx(),fce=io();IC.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");xx.isPlainObject(o)||delete t.labelalias;var l=uce(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?sce(i.bgColor):f&&f!==NC.color.dflt?f:u.color;if(xx.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");fce(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:cce}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function cce(e,r){function t(n,i){return xx.coerce(e,r,NC.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var x1=N((vRe,zC)=>{"use strict";var vce=bx();zC.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=vce(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var _x=N((hRe,OC)=>{"use strict";var ts=Le(),hce=wt(),dce=y1(),pce=m1(),yce=b1(),mce=x1(),gce=d1();OC.exports=function(r,t,a){var n=hce.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return ts.coerce(i,n,gce,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),y=o("xref"),m=p==="paper",x=y==="paper",T,_,b,w="left";c?(b="middle",w=x?"left":"right",T=x?1.02:1,_=.5):(b=m?"bottom":"top",w="center",T=.5,_=m?1.02:1),ts.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:T}},"x"),ts.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",w),o("xpad"),o("yanchor",b),o("ypad"),ts.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=ts.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),dce(i,n,o,"linear");var M=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(S.bgColor="black"),mce(i,n,o,"linear",S),yce(i,n,o,"linear",S),pce(i,n,o,"linear",S),o("title.text",a._dfltTitle.colorbar);var E=n.showticklabels?n.tickfont:M,D=ts.extendFlat({},M,{family:E.family,size:ts.bigFont(E.size)});ts.coerceFont(o,"title.font",D),o("title.side",c?"top":"right")}});var ml=N((dRe,UC)=>{"use strict";var BC=Rr(),Tx=Le(),bce=dx(),xce=_x(),HC=ru().isValid,_ce=br().traceIs;function wx(e,r){var t=r.slice(0,r.length-1);return r?Tx.nestedProperty(e,t).get()||{}:e}UC.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=wx(r,o),f=wx(t,o),c=wx(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var y=_ce(t,"contour")&&Tx.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,Tx.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[v]];return}}var x=u[l+"min"],T=u[l+"max"],_=BC(x)&&BC(T)&&x{"use strict";var GC=Le(),wce=wt(),VC=hx(),Tce=ml();YC.exports=function(r,t){function a(c,v){return GC.coerce(r,t,VC,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return GC.coerce(i,o,VC.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=wce.newContainer(t,s,"coloraxis"),o._name=s,Tce(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Ace=Le(),Mce=Xn().hasColorscale,kce=Xn().extractOpts;jC.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Ace.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=kce(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var ZC=Rr(),Ax=Le(),Sce=Xn().extractOpts;JC.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?Ax.nestedProperty(t,o).get():t,s=Sce(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return Ax.aggNums(Math.min,null,i)},p=function(){return Ax.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&ZC(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&ZC(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var Lo=N((gRe,$C)=>{"use strict";var _1=ru(),ac=Xn();$C.exports={moduleType:"component",name:"colorscale",attributes:Co(),layoutAttributes:hx(),supplyLayoutDefaults:WC(),handleDefaults:ml(),crossTraceDefaults:XC(),calc:tc(),scales:_1.scales,defaultScale:_1.defaultScale,getScale:_1.get,isValidScale:_1.isValid,hasColorscale:ac.hasColorscale,extractOpts:ac.extractOpts,extractScale:ac.extractScale,flipScale:ac.flipScale,makeColorScaleFunc:ac.makeColorScaleFunc,makeColorScaleFuncFromTrace:ac.makeColorScaleFuncFromTrace}});var Nn=N((bRe,QC)=>{"use strict";var KC=Le(),qce=Cn().isTypedArraySpec;QC.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return KC.isPlainObject(r)&&(KC.isArrayOrTypedArray(r.size)||qce(r.size))}}});var rL=N((xRe,eL)=>{"use strict";var Cce=Rr();eL.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Cce(s)&&s>0?Math.max(s,i):0}}});var Eo=N($a=>{"use strict";var w1=Le();$a.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};$a.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{nL.exports=Pce;var Mx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Rce=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Pce(e){var r=[];return e.replace(Rce,function(t,a,n){var i=a.toLowerCase();for(n=Nce(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Mx[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var Ice=kx(),$e=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",iL=Math.sqrt(2),as=Math.sqrt(3),Sx=Math.PI,qx=Math.cos,Cx=Math.sin;fL.exports={circle:{n:0,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Lr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2);return Lr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.3,2);return Lr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.4,2),n=$e(e*1.2,2);return Lr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.8/iL,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Lr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*2/as,2),n=$e(e/2,2),i=$e(e,2);return Lr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*2/as,2),n=$e(e/2,2),i=$e(e,2);return Lr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*2/as,2),n=$e(e/2,2),i=$e(e,2);return Lr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*2/as,2),n=$e(e/2,2),i=$e(e,2);return Lr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Lr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Lr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Lr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Lr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.951,2),n=$e(e*.588,2),i=$e(-e,2),o=$e(e*-.309,2),l=$e(e*.809,2);return Lr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*as/2,2);return Lr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*as/2,2);return Lr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.924,2),n=$e(e*.383,2);return Lr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Cr(r))return qr;var a=e*1.4,n=$e(a*.225,2),i=$e(a*.951,2),o=$e(a*.363,2),l=$e(a*.588,2),s=$e(-a,2),u=$e(a*-.309,2),f=$e(a*.118,2),c=$e(a*.809,2),v=$e(a*.382,2);return Lr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.66,2),n=$e(e*.38,2),i=$e(e*.76,2);return Lr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*as*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),o=$e(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Lr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*as*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),o=$e(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Lr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.1,2),n=$e(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Lr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.4,2),n=$e(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Lr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*.7,2),n=$e(e*1.4,2);return Lr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.4,2),n=$e(e*.7,2);return Lr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2);return Lr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2);return Lr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2);return Lr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2),n=$e(e/iL,2);return Lr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2);return Lr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2);return Lr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.3,2);return Lr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.3,2),n=$e(e*.65,2);return Lr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.4,2);return Lr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2);return Lr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.2,2),n=$e(e*.85,2);return Lr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e/2,2),n=$e(e,2);return Lr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Lr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Lr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Lr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Lr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.4,2);return Lr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*1.4,2);return Lr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2);return Lr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2);return Lr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Lr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Lr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Lr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Lr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Lr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Lr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Lr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Cr(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Lr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Cr(r))return qr;var a=Sx/2.5,n=2*e*qx(a),i=2*e*Cx(a);return Lr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Cr(r))return qr;var a=Sx/4,n=2*e*qx(a),i=2*e*Cx(a);return Lr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Cr(e){return e===null}var oL,lL,sL,uL;function Lr(e,r,t){if((!e||e%360===0)&&!r)return t;if(sL===e&&uL===r&&oL===t)return lL;sL=e,uL=r,oL=t;function a(m,x){var T=qx(m),_=Cx(m),b=x[0],w=x[1]+(r||0);return[b*T-w*_,b*_+w*T]}for(var n=e/180*Sx,i=0,o=0,l=Ice(t),s="",u=0;u{"use strict";var ka=Sr(),yt=Le(),zce=yt.numberFormat,gu=Rr(),Fx=Ln(),A1=br(),Va=Tr(),Oce=Lo(),wh=yt.strTranslate,M1=Ma(),Bce=pl(),Hce=Ga(),Uce=Hce.LINE_SPACING,_L=Rp().DESELECTDIM,Gce=Nn(),Vce=rL(),Yce=Eo().appendArrayPointValue,tr=EL.exports={};tr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Va.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Lx(jce(f))),s&&e.style("text-shadow",s==="auto"?M1.makeTextShadow(Va.contrast(i)):Lx(s)),u&&e.style("text-decoration-line",Lx(Xce(u)))};function Lx(e){return e==="none"?void 0:e}var Wce={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function jce(e){return Wce[e]}function Xce(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}tr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};tr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};tr.setRect=function(e,r,t,a,n){e.call(tr.setPosition,r,t).call(tr.setSize,a,n)};tr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(gu(n)&&gu(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",wh(n,i));else return!1;return!0};tr.translatePoints=function(e,r,t){e.each(function(a){var n=ka.select(this);tr.translatePoint(a,n,r,t)})};tr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};tr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=A1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){tr.hideOutsideRangePoint(u,ka.select(this),t,a,o,l)})})}};tr.crispRound=function(e,r,t){return!r||!gu(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};tr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Va.stroke(r,a||i.color),tr.dashLine(r,l,o)};tr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";ka.select(this).call(Va.stroke,t||i.color).call(tr.dashLine,l,o)})};tr.dashLine=function(e,r,t){t=+t||0,r=tr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};tr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function wL(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=tr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;tr.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,x;p==="horizontal"?(m={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},x={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(ML,t,y,"linear",i.colorscale,"fill",m,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(tr.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Va.fill,r.fillcolor)}tr.singleFillStyle=function(e,r){var t=ka.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};wL(e,n,r,!1)};tr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ka.select(this);a[0].trace&&wL(n,a[0].trace,r,t)})};var vL=cL();tr.symbolNames=[];tr.symbolFuncs=[];tr.symbolBackOffs=[];tr.symbolNeedLines={};tr.symbolNoDot={};tr.symbolNoFill={};tr.symbolList=[];Object.keys(vL).forEach(function(e){var r=vL[e],t=r.n;tr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),tr.symbolNames[t]=e,tr.symbolFuncs[t]=r.f,tr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(tr.symbolNeedLines[t]=!0),r.noDot?tr.symbolNoDot[t]=!0:tr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(tr.symbolNoFill[t]=!0)});var Zce=tr.symbolNames.length,Jce="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";tr.symbolNumber=function(e){if(gu(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=tr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Zce||e>=400?0:Math.floor(Math.max(e,0))};function TL(e,r,t,a){var n=e%100;return tr.symbolFuncs[n](r,t,a)+(e>=200?Jce:"")}var hL=zce("~f"),AL={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};tr.gradient=function(e,r,t,a,n,i){var o=AL[a];return ML(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function ML(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=tr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=zx(e,t),c=Ix(e,t);r.attr("d",TL(u,s,f,c))}var v=!1,d,p,y;if(e.so)y=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):yt.isArrayOrTypedArray(l.color)?p=Va.defaultLine:p=l.color,yt.isArrayOrTypedArray(o.color)&&(d=Va.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let x=e.mld||(l||{}).dash;if(x&&tr.dashLine(r,x,y),e.om)r.call(Va.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var T=o.gradient,_=e.mgt;_?v=!0:_=T&&T.type,yt.isArrayOrTypedArray(_)&&(_=_[0],AL[_]||(_=0));var b=o.pattern,w=tr.getPatternAttr,k=b&&(w(b.shape,e.i,"")||w(b.path,e.i,""));if(_&&_!=="none"){var M=e.mgc;M?v=!0:M=T.color;var S=t.uid;v&&(S+="-"+e.i),tr.gradient(r,n,S,_,[[0,M],[1,d]],"fill")}else if(k){var E=!1,D=b.fgcolor;!D&&i&&i.color&&(D=i.color,E=!0);var P=w(D,e.i,i&&i.color||null),R=w(b.bgcolor,e.i,null),I=b.fgopacity,z=w(b.size,e.i,8),B=w(b.solidity,e.i,.3);E=E||e.mcc||yt.isArrayOrTypedArray(b.shape)||yt.isArrayOrTypedArray(b.path)||yt.isArrayOrTypedArray(b.bgcolor)||yt.isArrayOrTypedArray(b.fgcolor)||yt.isArrayOrTypedArray(b.size)||yt.isArrayOrTypedArray(b.solidity);var G=t.uid;E&&(G+="-"+e.i),tr.pattern(r,"point",n,G,k,z,B,e.mcc,b.fillmode,R,P,I)}else yt.isArrayOrTypedArray(d)?Va.fill(r,d[e.i]):Va.fill(r,d);y&&Va.stroke(r,p)}};tr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=tr.tryColorscale(t,""),r.lineScale=tr.tryColorscale(t,"line"),A1.traceIs(e,"symbols")&&(r.ms2mrc=Gce.isBubble(e)?Vce(e):function(){return(t.size||6)/2}),e.selectedpoints&&yt.extendFlat(r,tr.makeSelectedPointStyleFns(e)),r};tr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(yt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var w=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:w:c?u:_L*w});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(b){var w=b.mcc||v;return b.selected?d||w:p||w});var y=n.size,m=i.size,x=o.size,T=m!==void 0,_=x!==void 0;return A1.traceIs(e,"symbols")&&(T||_)&&(r.selectedSizeFn=function(b){var w=b.mrc||y/2;return b.selected?T?m/2:w:_?x/2:w}),r};tr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Va.addOpacity(c,_L))},r};tr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Va.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",TL(tr.symbolNumber(l),s,zx(o,r),Ix(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=ka.select(this),l=0;l0?t:0}tr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=tr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=ka.select(this),u=i?yt.extractOption(l,r,"txt","texttemplate"):yt.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};Yce(v,r,l.i),u=yt.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=SL(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(tr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(u).call(M1.convertToTspans,t).call(kL,d,p,l.mrc)})}};tr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedTextStyleFns(r);e.each(function(a){var n=ka.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=SL(a,r);Va.fill(n,i);var s=A1.traceIs(r,"bar-like");kL(n,o,l,a.mrc2||a.mrc,s)})}};var dL=.5;tr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(w<=c&&w>=u||w>=c&&w<=u)&&(e=[b,w])}return e}tr.applyBackoff=LL;tr.makeTester=function(){var e=yt.ensureSingleById(ka.select("body"),"svg","js-plotly-tester",function(t){t.attr(Bce.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=yt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});tr.tester=e,tr.testref=r};tr.savedBBoxes={};var Dx=0,Qce=1e4;tr.bBox=function(e,r,t){t||(t=pL(e));var a;if(t){if(a=tr.savedBBoxes[t],a)return yt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=pL(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=tr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=tr.savedBBoxes[t],a)return yt.extendFlat({},a)}}var u,f;r?u=e:(f=tr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ka.select(u).attr("transform",null).call(M1.positionText,0,0);var c=u.getBoundingClientRect(),v=tr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Dx>=Qce&&(tr.savedBBoxes={},Dx=0),t&&(tr.savedBBoxes[t]=d),Dx++,yt.extendFlat({},d)};function pL(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}tr.setClipUrl=function(e,r,t){e.attr("clip-path",Nx(r,t))};function Nx(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}tr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};tr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=wh(r,t),o=o.trim(),e[i]("transform",o),o};tr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};tr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var eve=/\s*sc.*/;tr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(eve,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var rve=/translate\([^)]*\)\s*$/;tr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ka.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(rve);r===1&&t===1?a=[]:a=[wh(o,l),"scale("+r+","+t+")",wh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Ix(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}tr.getMarkerStandoff=Ix;var _h=Math.atan2,pu=Math.cos,ic=Math.sin;function yL(e,r){var t=r[0],a=r[1];return[t*pu(e)-a*ic(e),t*ic(e)+a*pu(e)]}var mL,gL,bL,xL,Rx,Px;function zx(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||yt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=_h(v[1]-n,v[0]-a),p=_h(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,x=f/180*Math.PI,T=mL/180*Math.PI,_=gL/180*Math.PI,b=T-m,w=pu(_)*ic(b),k=ic(_)*pu(x)-pu(_)*ic(x)*pu(b);y=-_h(w,k)-Math.PI,mL=u,gL=f}var M=yL(d,[pu(y),0]),S=yL(p,[ic(y),0]);t=_h(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(Px===r.uid&&e.i===Rx+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Px===r.uid&&e.i===Rx+1&&gu(a)&&gu(n)){var E=a-bL,D=n-xL,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(D=0),R==="v"&&(E=0),t+=_h(D,E)/Math.PI*180+90}else t=null}return bL=a,xL=n,Rx=e.i,Px=r.uid,t}tr.getMarkerAngle=zx});var sc=N((MRe,FL)=>{"use strict";var oc=Sr(),tve=Rr(),ave=na(),Ox=br(),bu=Le(),DL=bu.strTranslate,k1=Yr(),S1=Tr(),lc=Ma(),RL=Rp(),nve=Ga().OPPOSITE_SIDE,PL=/ [XY][0-9]* /,Bx=1.6,Hx=1.6;function ive(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},x=m.family,T=m.size,_=m.color,b=m.weight,w=m.style,k=m.variant,M=m.textcase,S=m.lineposition,E=m.shadow,D=t.subtitlePropName,P=!!D,R=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},z=(I.text||"").trim(),B=!1,G=1,Y=I.font,V=Y.family,H=Y.size,Z=Y.color,W=Y.weight,ee=Y.style,oe=Y.variant,le=Y.textcase,ue=Y.lineposition,K=Y.shadow,_e;i==="title.text"?_e="titleText":i.indexOf("axis")!==-1?_e="axisTitleText":i.indexOf("colorbar")!==-1&&(_e="colorbarTitleText");var fe=e._context.edits[_e];function ve(Oe,Ue){return Oe===void 0||Ue===void 0?!1:Oe.replace(PL," % ")===Ue.replace(PL," % ")}p===""?v=0:ve(p,o)&&(fe||(p=""),v=.2,y=!0),P&&(z===""?G=0:ve(z,R)&&(fe||(z=""),G=.2,B=!0)),t._meta?p=bu.templateString(p,t._meta):a._meta&&(p=bu.templateString(p,a._meta));var ye=p||z||fe,ce;c||(c=bu.ensureSingle(a._infolayer,"g","g-"+r),ce=a._hColorbarMoveTitle);var j=c.selectAll("text."+r).data(ye?[0]:[]);j.enter().append("text"),j.text(p).attr("class",r),j.exit().remove();var Q=null,X=r+"-subtitle",ie=z||fe;if(P&&(Q=c.selectAll("text."+X).data(ie?[0]:[]),Q.enter().append("text"),Q.text(z).attr("class",X),Q.exit().remove()),!ye)return c;function he(Oe,Ue){bu.syncOrAsync([me,Re],{title:Oe,subtitle:Ue})}function me(Oe){var Ue=Oe.title,Ee=Oe.subtitle,ze;!f&&ce&&(f={}),f?(ze="",f.rotate&&(ze+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ce)&&(ze+=DL(0,(f.offset||0)-(ce||0)))):ze=null,Ue.attr("transform",ze);function Ge(Te){if(Te){var qe=oc.select(Te.node().parentNode).select("."+X);if(!qe.empty()){var Be=Te.node().getBBox();if(Be.height){var Ze=Be.y+Be.height+Bx*H;qe.attr("y",Ze)}}}}if(Ue.style("opacity",v*S1.opacity(_)).call(k1.font,{color:S1.rgb(_),size:oc.round(T,2),family:x,weight:b,style:w,variant:k,textcase:M,shadow:E,lineposition:S}).attr(u).call(lc.convertToTspans,e,Ge),Ee&&!Ee.empty()){var se=c.select("."+r+"-math-group"),Ae=Ue.node().getBBox(),Je=se.node()?se.node().getBBox():void 0,dr=Je?Je.y+Je.height+Bx*H:Ae.y+Ae.height+Hx*H,Ne=bu.extendFlat({},u,{y:dr});Ee.attr("transform",ze),Ee.style("opacity",G*S1.opacity(Z)).call(k1.font,{color:S1.rgb(Z),size:oc.round(H,2),family:V,weight:W,style:ee,variant:oe,textcase:le,shadow:K,lineposition:ue}).attr(Ne).call(lc.convertToTspans,e)}return ave.previousPromises(e)}function Re(Oe){var Ue=Oe.title,Ee=oc.select(Ue.node().parentNode);if(s&&s.selection&&s.side&&p){Ee.attr("transform",null);var ze=nve[s.side],Ge=s.side==="left"||s.side==="top"?-1:1,se=tve(s.pad)?s.pad:2,Ae=k1.bBox(Ee.node()),Je={t:0,b:0,l:0,r:0},dr=e._fullLayout._reservedMargin;for(var Ne in dr)for(var Te in dr[Ne]){var qe=dr[Ne][Te];Je[Te]=Math.max(Je[Te],qe)}var Be={left:Je.l,top:Je.t,right:a.width-Je.r,bottom:a.height-Je.b},Ze=s.maxShift||Ge*(Be[s.side]-Ae[s.side]),Ve=0;if(Ze<0)Ve=Ze;else{var We=s.offsetLeft||0,lr=s.offsetTop||0;Ae.left-=We,Ae.right-=We,Ae.top-=lr,Ae.bottom-=lr,s.selection.each(function(){var er=k1.bBox(this);bu.bBoxIntersect(Ae,er,se)&&(Ve=Math.max(Ve,Ge*(er[s.side]-Ae[ze])+se))}),Ve=Math.min(Ze,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Ze<0){var rr={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];Ee.attr("transform",DL(rr[0],rr[1]))}}}j.call(he,Q);function De(Oe,Ue){Oe.text(Ue).on("mouseover.opacity",function(){oc.select(this).transition().duration(RL.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){oc.select(this).transition().duration(RL.HIDE_PLACEHOLDER).style("opacity",0)})}if(fe&&(p?j.on(".opacity",null):(De(j,o),y=!0),j.call(lc.makeEditable,{gd:e}).on("edit",function(Oe){l!==void 0?Ox.call("_guiRestyle",e,i,Oe,l):Ox.call("_guiRelayout",e,i,Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(he)}).on("input",function(Oe){this.text(Oe||" ").call(lc.positionText,u.x,u.y)}),P)){if(P&&!p){var Ce=j.node().getBBox(),He=Ce.y+Ce.height+Hx*H;Q.attr("y",He)}z?Q.on(".opacity",null):(De(Q,R),B=!0),Q.call(lc.makeEditable,{gd:e}).on("edit",function(Oe){Ox.call("_guiRelayout",e,"title.subtitle.text",Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(he)}).on("input",function(Oe){this.text(Oe||" ").call(lc.positionText,Q.attr("x"),Q.attr("y"))})}return j.classed("js-placeholder",y),Q&&!Q.empty()&&Q.classed("js-placeholder",B),c}FL.exports={draw:ive,SUBTITLE_PADDING_EM:Hx,SUBTITLE_PADDING_MATHJAX_EM:Bx}});var uc=N((kRe,BL)=>{"use strict";var ove=Sr(),lve=Rf().utcFormat,Tt=Le(),sve=Tt.numberFormat,Do=Rr(),ns=Tt.cleanNumber,uve=Tt.ms2DateTime,NL=Tt.dateTime2ms,Ro=Tt.ensureNumber,IL=Tt.isArrayOrTypedArray,is=Ft(),q1=is.FP_SAFE,oo=is.BADNUM,fve=is.LOG_CLIP,cve=is.ONEWEEK,C1=is.ONEDAY,L1=is.ONEHOUR,zL=is.ONEMIN,OL=is.ONESEC,E1=ca(),P1=_a(),D1=P1.HOUR_PATTERN,R1=P1.WEEKDAY_PATTERN;function Th(e){return Math.pow(10,e)}function Ux(e){return e!=null}BL.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,w){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&w&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*fve*Math.abs(k-M))}else return oo}function o(b,w,k,M){if((M||{}).msUTC&&Do(b))return+b;var S=NL(b,k||r.calendar);if(S===oo)if(Do(b)){b=+b;var E=Math.floor(Tt.mod(b+.05,1)*10),D=Math.round(b-E/10);S=NL(new Date(D))+E/10}else return oo;return S}function l(b,w,k){return uve(b,w,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Ux(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var w=r._categories.length-1;return r._categoriesMap[b]=w,w}return oo}function f(b,w){for(var k=new Array(w),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,S=M*b,E=0,D=0;DR)E=D+1;else{E=S<(P+R)/2?D:D+1;break}}var I=r._B[E]||0;return isFinite(I)?p(b,r._m2,I):0},x=function(b){var w=r._rangebreaks.length;if(!w)return y(b,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return y(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Ro,r.l2c=r.type==="log"?Th:Ro,r.l2p=m,r.p2l=x,r.c2p=r.type==="log"?function(b,w){return m(i(b,w))}:m,r.p2c=r.type==="log"?function(b){return Th(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=ns,r.c2d=r.c2r=r.l2d=r.l2r=Ro,r.d2p=r.r2p=function(b){return r.l2p(ns(b))},r.p2d=r.p2r=x,r.cleanPos=Ro):r.type==="log"?(r.d2r=r.d2l=function(b,w){return i(ns(b),w)},r.r2d=r.r2c=function(b){return Th(ns(b))},r.d2c=r.r2l=ns,r.c2d=r.l2r=Ro,r.c2r=i,r.l2d=Th,r.d2p=function(b,w){return r.l2p(r.d2r(b,w))},r.p2d=function(b){return Th(x(b))},r.r2p=function(b){return r.l2p(ns(b))},r.p2r=x,r.cleanPos=Ro):r.type==="date"?(r.d2r=r.r2d=Tt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,w,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,w,k){return l(x(b),w,k)},r.cleanPos=function(b){return Tt.cleanDate(b,oo,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var w=d(b);return w!==void 0?w:r.fraction2r(.5)},r.l2r=r.c2r=Ro,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Ro(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var w=v(b);return w!==void 0?w:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ro,r.r2l=v,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Ro(b)},r.setupMultiCategory=function(b){var w=r._traceIndices,k,M,S=r._matchGroup;if(S&&r._categories.length===0){for(var E in S)if(E!==a){var D=t[E1.id2name(E)];w=w.concat(D._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;kD[1]&&(M[E?0:1]=k,S[1]=D[1]),S[0]>=S[1])if(w!==void 0){var P=D[0]+1;k!==void 0&&(P=Math.min(P,D[1])),M[E?0:1]=r.l2r(P)}else k!==void 0&&(M[E?1:0]=r.l2r(D[1]-1))}},r.cleanRange=function(b,w){r._cleanRange(b,w),r.limitRange(b)},r._cleanRange=function(b,w){w||(w={}),b||(b="range");var k=Tt.nestedProperty(r,b).get(),M,S;if(r.type==="date"?S=Tt.dfltRange(r.calendar):n==="y"?S=P1.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=w.dfltRange||P1.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){Tt.nestedProperty(r,b).set(S);return}var E=k[0]===null,D=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Tt.cleanDate(k[0],oo,r.calendar),k[1]=Tt.cleanDate(k[1],oo,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Tt.isDateTime(k[M],r.calendar)){r[b]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Tt.constrain(r.r2l(k[0]),Tt.MIN_MS+1e3,Tt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!Do(k[M]))if(!(E||D)&&Do(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=S;break}if(k[M]<-q1?k[M]=-q1:k[M]>q1&&(k[M]=q1),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(b){var w=t._size;if(r.overlaying){var k=E1.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",S=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],S),D=r.r2l(r[M][1],S),P=n==="y";if(P?(r._offset=w.t+(1-r.domain[1])*w.h,r._length=w.h*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D):(r._offset=w.l+r.domain[0]*w.w,r._length=w.w*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,I;if(r._rangebreaks=r.locateBreaks(Math.min(E,D),Math.max(E,D)),r._rangebreaks.length){for(R=0;RD&&(z=!z),z&&r._rangebreaks.reverse();var B=z?-1:1;for(r._m2=B*r._length/(Math.abs(D-E)-r._lBreaks),r._B.push(-r._m2*(P?D:E)),R=0;RS&&(S+=7,ES&&(S+=24,E=M&&E=M&&b=K.min&&(eeK.max&&(K.max=oe),le=!1)}le&&D.push({min:ee,max:oe})}};for(k=0;k{"use strict";var HL=Rr(),Gx=Le(),vve=Ft().BADNUM,F1=Gx.isArrayOrTypedArray,hve=Gx.isDateTime,dve=Gx.cleanNumber,UL=Math.round;VL.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(F1(n)&&!n.length)return"-";if(!i&&bve(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function GL(e){return Math.max(1,(e-1)/1e3)}function gve(e,r){for(var t=e.length,a=GL(t),n=0,i=0,o={},l=0;ln*2}function bve(e){return F1(e[0])&&F1(e[1])}});var Ah=N((qRe,KL)=>{"use strict";var xve=Sr(),XL=Rr(),os=Le(),I1=Ft().FP_SAFE,_ve=br(),wve=Yr(),ZL=ca(),Tve=ZL.getFromId,Ave=ZL.isLinked;KL.exports={applyAutorangeOptions:$L,getAutoRange:Vx,makePadFn:Yx,doAutoRange:kve,findExtremes:Sve,concatExtremes:Xx};function Vx(e,r){var t,a,n=[],i=e._fullLayout,o=Yx(i,r,0),l=Yx(i,r,1),s=Xx(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return os.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(D=_-o(k)-l(M),D>b?P/D>w&&(S=k,E=M,w=P/D):P/_>w&&(S={val:k.val,nopad:1},E={val:M.val,nopad:1},w=P/_));function R(Y,V){return Math.max(Y,l(V))}if(c===v){var I=c-1,z=c+1;if(x)if(c===0)n=[0,1];else{var B=(c>0?f:u).reduce(R,0),G=c/(1-Math.min(.5,B/_));n=c>0?[0,G]:[G,0]}else T?n=[Math.max(0,I),Math.max(1,z)]:n=[I,z]}else x?(S.val>=0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):T&&(S.val-w*o(S)<0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),w=(E.val-S.val-YL(r,k.val,M.val))/(_-o(S)-l(E)),n=[S.val-w*o(S),E.val+w*l(E)];return n=$L(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),os.simpleMap(n,r.l2r||Number)}function YL(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),S=b(t.vpadminus||t.vpad);if(!u){if(T=1/0,_=-1/0,s)for(c=0;c0&&(T=v),v>_&&v-I1&&(T=v),v>_&&v=P;c--)D(c);return{min:a,max:n,opts:t}}function Wx(e,r,t,a){JL(e,r,t,a,qve)}function jx(e,r,t,a){JL(e,r,t,a,Cve)}function JL(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function jL(e){return XL(e)&&Math.abs(e)=r}function Lve(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&z1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&z1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Eve(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&z1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&z1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function z1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Lve(t,r),a=Eve(a,r),[t,a]}});var zr=N((LRe,_E)=>{"use strict";var yi=Sr(),ha=Rr(),fc=na(),kh=br(),xr=Le(),cc=xr.strTranslate,xu=Ma(),Dve=sc(),Sh=Tr(),Zn=Yr(),Rve=pi(),QL=mx(),CRe=_a(),Ya=Ft(),Pve=Ya.ONEMAXYEAR,H1=Ya.ONEAVGYEAR,U1=Ya.ONEMINYEAR,Fve=Ya.ONEMAXQUARTER,Kx=Ya.ONEAVGQUARTER,G1=Ya.ONEMINQUARTER,Nve=Ya.ONEMAXMONTH,vc=Ya.ONEAVGMONTH,V1=Ya.ONEMINMONTH,Jn=Ya.ONEWEEK,ln=Ya.ONEDAY,ls=ln/2,Fo=Ya.ONEHOUR,qh=Ya.ONEMIN,Y1=Ya.ONESEC,Ive=Ya.ONEMILLI,zve=Ya.ONEMICROSEC,_u=Ya.MINUS_SIGN,j1=Ya.BADNUM,Qx={K:"zeroline"},e5={K:"gridline",L:"path"},r5={K:"minor-gridline",L:"path"},fE={K:"tick",L:"path"},eE={K:"tick",L:"text"},rE={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},X1=Ga(),Mh=X1.MID_SHIFT,wu=X1.CAP_SHIFT,Ch=X1.LINE_SPACING,Ove=X1.OPPOSITE_SIDE,W1=3,Ye=_E.exports={};Ye.setConvert=uc();var Bve=N1(),No=ca(),Hve=No.idSort,Uve=No.isLinked;Ye.id2name=No.id2name;Ye.name2id=No.name2id;Ye.cleanId=No.cleanId;Ye.list=No.list;Ye.listIds=No.listIds;Ye.getFromId=No.getFromId;Ye.getFromTrace=No.getFromTrace;var cE=Ah();Ye.getAutoRange=cE.getAutoRange;Ye.findExtremes=cE.findExtremes;var Gve=1e-4;function i5(e){var r=(e[1]-e[0])*Gve;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},xr.coerce(e,r,u,s)};Ye.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var s=t._fullLayout._subplots[l+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(v=>v+" domain")),s=s.concat(i||[]),f.length>o?(xr.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=Ye.tickIncrement(e,"M6","reverse")+ln*1.5:i.exactMonths>o?e=Ye.tickIncrement(e,"M1","reverse")+ln*15.5:e-=ls;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&ha(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=xr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=xr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var l=ha(r.dtick),s=ha(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?Zx(u,f)?u===2*Jn&&f===2*ln&&(e.dtick=Jn):u===2*Jn&&f===3*ln?e.dtick=Jn:u===Jn&&!(r._input.minor||{}).nticks?e.dtick=ln:nE(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Zx(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Zx(u,f)||(e.dtick=nE(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0)};function Zx(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function nE(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=xr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?xr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=xr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=U1?u>=U1&&u<=Pve?c=u:c=H1:t===Kx&&f>=G1?u>=G1&&u<=Fve?c=u:c=Kx:f>=V1?u>=V1&&u<=Nve?c=u:c=vc:t===Jn&&f>=Jn?c=Jn:f>=ln?c=ln:t===ls&&f>=ls?c=ls:t===Fo&&f>=Fo&&(c=Fo);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mJn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||xr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=xr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);w--){var k=!w;w?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=w?r:xr.extendFlat({},r,b?r.minor:{minor:{}});if(k?Ye.prepMinorTicks(M,r,t):Ye.prepTicks(M,t),M.tickmode==="array"){w?(m=[],p=iE(r,!k)):(x=[],y=iE(r,!k));continue}if(M.tickmode==="sync"){m=[],p=Zve(r);continue}var S=i5(u),E=S[0],D=S[1],P=ha(M.dtick),R=a==="log"&&!(P||M.dtick.charAt(0)==="L"),I=Ye.tickFirst(M,t);if(w){if(r._tmin=I,I=D:B<=D;B=Ye.tickIncrement(B,V,f,n)){if(w&&G++,M.rangebreaks&&!f){if(B=v)break}if(m.length>d||B===z)break;z=B;var H={value:B};w?(R&&B!==(B|0)&&(H.simpleLabel=!0),i>1&&G%i&&(H.skipLabel=!0),m.push(H)):(H.minor=!0,x.push(H))}}if(!x||x.length<3)s=!1;else{var Z=(x[2].value-x[1].value)*(l?-1:1);xhe(Z,r.tickformat)||(s=!1,x=x.slice(1))}if(!s)T=m;else{var W=m.concat(x);o&&m.length&&(W=W.slice(1)),W=W.sort(function(Oe,Ue){return Oe.value-Ue.value}).filter(function(Oe,Ue,Ee){return Ue===0||Oe.value!==Ee[Ue-1].value});var ee=W.map(function(Oe,Ue){return Oe.minor===void 0&&!Oe.skipLabel?Ue:null}).filter(function(Oe){return Oe!==null});ee.forEach(function(Oe){s.map(function(Ue){var Ee=Oe+Ue;Ee>=0&&Ee-1;ce--){if(m[ce].drop){m.splice(ce,1);continue}m[ce].value=$x(m[ce].value,r);var ie=r.c2p(m[ce].value);(j?X>ie-Q:Xv||zev&&(Ee.periodX=v),zen&&vH1)r/=H1,a=n(10),e.dtick="M"+12*Po(r,a,O1);else if(i>vc)r/=vc,e.dtick="M"+Po(r,1,oE);else if(i>ln){if(e.dtick=Po(r,ln,e._hasDayOfWeekBreaks?[1,2,7,14]:Jve),!t){var o=Ye.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=xr.dateTick0(e.calendar,2):e.tick0=xr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Fo?e.dtick=Po(r,Fo,oE):i>qh?e.dtick=Po(r,qh,lE):i>Y1?e.dtick=Po(r,Y1,lE):(a=n(10),e.dtick=Po(r,a,O1))}else if(e.type==="log"){e.tick0=0;var s=xr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Po(r,a,O1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):u5(e)?(e.tick0=0,a=1,e.dtick=Po(r,a,$ve)):(e.tick0=0,a=n(10),e.dtick=Po(r,a,O1));if(e.dtick===0&&(e.dtick=1),!ha(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function pE(e){var r=e.dtick;if(e._tickexponent=0,!ha(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ln&&n<=10||r>=ln*15)e._tickround="d";else if(r>=qh&&n<=16||r>=Fo)e._tickround="M";else if(r>=Y1&&n<=19||r>=qh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ha(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ha(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(hc(e.exponentformat)&&e.exponentformat!=="SI extended"&&!o5(s)||hc(e.exponentformat)&&e.exponentformat==="SI extended"&&!l5(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ha(r))return xr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return xr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?dE:hE,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),l,t);return Math.floor(s)+Math.log(yi.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=xr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?m:null};if(i&&xr.isArrayOrTypedArray(e.ticktext)){var c=xr.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=Eh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function Qve(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Lh(Math.pow(10,o),e,n,a);else if(ha(i)||s==="D"&&(e.minorloglabels==="complete"||xr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(xr.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||hc(p)&&p!=="SI extended"&&o5(v)||hc(p)&&p==="SI extended"&&l5(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":_u)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":_u)+d:(r.text=Lh(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,xr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function ehe(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function rhe(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function the(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Lh(r.x,e,n,a)}function ahe(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=nhe(i);if(o[1]>=100)r.text=Lh(xr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=_u+r.text)}}}else r.text=Lh(r.x,e,n,a)}function nhe(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var mE=["f","p","n","\u03BC","m","","k","M","G","T"],ihe=["q","r","y","z","a",...mE,"P","E","Z","Y","R","Q"],hc=e=>["SI","SI extended","B"].includes(e);function o5(e){return e>14||e<-15}function l5(e){return e>32||e<-30}function ohe(e,r){return hc(r)?!!(r==="SI extended"&&l5(e)||r!=="SI extended"&&o5(e)):!1}function Lh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ha(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};pE(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,_u);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":hc(o)&&(e+=o==="SI extended"?ihe[l/3+10]:mE[l/3+5])}return n?_u+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*vc}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return xr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&n5(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=xr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),n5(r,p,a,!0),n5(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=bhe(r,a));var y=v[f+"axislayer"],m=r._mainLinePosition,x=m+=r._shift,T=r._mainMirrorPosition,_=r._vals=Ye.calcTicks(r),b=[r.mirror,x,T].join("_");for(i=0;i<_.length;i++)_[i].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var w={};function k(Ce){var He=u+(Ce||"tick");return w[He]||(w[He]=fhe(r,He,x)),w[He]}if(r.visible){var M=Ye.makeTransTickFn(r),S=Ye.makeTransTickLabelFn(r),E,D,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var I=lhe(r,_);D=Ye.clipEnds(r,I),E=P?D:I}else D=Ye.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?D:_;var z=r._gridVals=D,B=uhe(r,_);if(!s._hasOnlyLargeSploms){var G=r._subplotsWith,Y={};for(i=0;i0?Ee.bottom-Oe:0,Ue))));var Ae=0,Je=0;if(r._shiftPusher&&(Ae=Math.max(Ue,Ee.height>0?Ce==="l"?Oe-Ee.left:Ee.right-Oe:0),r.title.text!==s._dfltTitle[f]&&(Je=(r._titleStandoff||0)+(r._titleScoot||0),Ce==="l"&&(Je+=uE(r))),r._fullDepth=Math.max(Ae,Je)),r.automargin){ze={x:0,y:0,r:0,l:0,t:0,b:0};var dr=[0,1],Ne=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ce==="b"?ze[Ce]=r._depth:(ze[Ce]=r._depth=Math.max(Ee.width>0?Oe-Ee.top:0,Ue),dr.reverse()),Ee.width>0){var Te=Ee.right-(r._offset+r._length);Te>0&&(ze.xr=1,ze.r=Te);var qe=r._offset-Ee.left;qe>0&&(ze.xl=0,ze.l=qe)}}else if(Ce==="l"?(r._depth=Math.max(Ee.height>0?Oe-Ee.left:0,Ue),ze[Ce]=r._depth-Ne):(r._depth=Math.max(Ee.height>0?Ee.right-Oe:0,Ue),ze[Ce]=r._depth+Ne,dr.reverse()),Ee.height>0){var Be=Ee.bottom-(r._offset+r._length);Be>0&&(ze.yb=0,ze.b=Be);var Ze=r._offset-Ee.top;Ze>0&&(ze.yt=1,ze.t=Ze)}ze[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[dr[0]],r.title.text!==s._dfltTitle[f]&&(ze[Ce]+=uE(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ge={x:0,y:0,r:0,l:0,t:0,b:0},Ge[He]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ge[He]+=Ue),r.mirror===!0||r.mirror==="ticks"?Ge[c]=r._anchorAxis.domain[dr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ge[c]=[r._counterDomainMin,r._counterDomainMax][dr[1]]))}De&&(se=kh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(sE(ze,r.automargin),sE(Ge,r.automargin)),fc.autoMargin(e,s5(r),ze),fc.autoMargin(e,bE(r),Ge),fc.autoMargin(e,xE(r),se)}),xr.syncOrAsync(me)}};function sE(e,r){if(e){var t=Object.keys(rE).reduce(function(a,n){return r.indexOf(n)!==-1&&rE[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function lhe(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(xr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return cc(n+e._offset+e.l2p(t5(v))+t,i+a)}:function(v){return cc(i+a,n+e._offset+e.l2p(t5(v))+t)}};function t5(e){return e.periodX!==void 0?e.periodX:e.x}function che(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=W1,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*wu,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=W1),s&&f==="top"&&(v-=d*(1-wu)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:f&&(y=0),v&&(d+=y,t)){var m=xr.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:d,labelShift:p},T,_,b,w,k=0,M=e.side,S=e._id.charAt(0),E=e.tickangle,D;if(S==="x")D=!c&&M==="bottom"||c&&M==="top",w=D?1:-1,c&&(w*=-1),T=p*w,_=r+d*w,b=D?1:-.2,Math.abs(E)===90&&(c?b+=Mh:E===-90&&M==="bottom"?b=wu:E===90&&M==="top"?b=Mh:b=.5,k=Mh/2*(E/90)),x.xFn=function(I){return I.dx+T+k*I.fontSize},x.yFn=function(I){return I.dy+_+I.fontSize*b},x.anchorFn=function(I,z){if(f){if(l)return"end";if(s)return"start"}return!ha(z)||z===0||z===180?"middle":z*w<0!==c?"end":"start"},x.heightFn=function(I,z,B){return z<-60||z>60?-.5*B:e.side==="top"!==c?-B:0};else if(S==="y"){if(D=!c&&M==="left"||c&&M==="right",w=D?1:-1,c&&(w*=-1),T=d,_=p*w,b=0,!c&&Math.abs(E)===90&&(E===-90&&M==="left"||E===90&&M==="right"?b=wu:b=.5),c){var P=ha(E)?+E:0;if(P!==0){var R=xr.deg2rad(P);k=Math.abs(Math.sin(R))*wu*w,b=0}}x.xFn=function(I){return I.dx+r-(T+I.fontSize*b)*w+k*I.fontSize},x.yFn=function(I){return I.dy+_+I.fontSize*Mh},x.anchorFn=function(I,z){return ha(z)&&Math.abs(z)===90?"middle":D?"end":"start"},x.heightFn=function(I,z,B){return e.side==="right"&&(z*=-1),z<-30?-B:z<30?-.5*B:0}}return x};function Z1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Z1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Sh.stroke(yi.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return Zn.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),J1(r,[fE]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],o=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],l=t.counterAxis;if(l&&Ye.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var y=p?v:d;if(y){var m=y.selectAll("path."+a).data(p?o:i,Z1);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(x){return Sh.stroke(yi.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return Zn.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}J1(r,[e5,r5])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Hve(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Sh.stroke,r.zerolinecolor||Sh.defaultLine).style("stroke-width",Zn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),J1(r,[Qx])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(H){return H.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Z1),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var Z=yi.select(this),W=e._promises.length;Z.call(xu.positionText,s.xFn(H),s.yFn(H)).call(Zn.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(xu.convertToTspans,e),e._promises[W]?v.push(e._promises.pop().then(function(){d(Z,u)})):d(Z,u)}),J1(r,[eE]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(H){yi.select(this).select("text").call(xu.positionText,s.xFn(H),s.yFn(H))});function d(H,Z){H.each(function(W){var ee=yi.select(this),oe=ee.select(".text-math-group"),le=s.anchorFn(W,Z),ue=t.transFn.call(ee.node(),W)+(ha(Z)&&+Z!=0?" rotate("+Z+","+s.xFn(W)+","+(s.yFn(W)-W.fontSize/2)+")":""),K=xu.lineCount(ee),_e=Ch*W.fontSize,fe=s.heightFn(W,ha(Z)?+Z:0,(K-1)*_e);if(fe&&(ue+=cc(0,fe)),oe.empty()){var ve=ee.select("text");ve.attr({transform:ue,"text-anchor":le}),ve.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ye=Zn.bBox(oe.node()).width,ce=ye*{end:-.5,start:.5}[le];oe.attr("transform",ue+cc(ce,0))}})}r._adjustTickLabelsOverflow=function(){var H=r.ticklabeloverflow;if(!(!H||H==="allow")){var Z=H.indexOf("hide")!==-1,W=r._id.charAt(0)==="x",ee=0,oe=W?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var le=xr.simpleMap(r.range,r.r2l);ee=r.l2p(le[0])+r._offset,oe=r.l2p(le[1])+r._offset}var ue=Math.min(ee,oe),K=Math.max(ee,oe),_e=r.side,fe=1/0,ve=-1/0;c.each(function(Q){var X=yi.select(this),ie=X.select(".text-math-group");if(ie.empty()){var he=Zn.bBox(X.node()),me=0;W?(he.right>K||he.leftK||he.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+le._id]?X.style("display","none"):K.K==="tick"&&!ue&&X.node().style.display!=="none"&&X.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var H=0,Z=[],W,ee=1;c.each(function(ze){H=Math.max(H,ze.fontSize);var Ge=r.l2p(ze.x),se=a5(this),Ae=Zn.bBox(se.node());ee=Math.max(ee,xu.lineCount(se)),Z.push({top:0,bottom:10,height:10,left:Ge-Ae.width/2,right:Ge+Ae.width/2+2,width:Ae.width+2})});var oe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,le=l.length,ue=Math.abs((l[le-1].x-l[0].x)*r._m)/(le-1),K=oe?ue/2:ue,_e=oe?r.ticklen:H*1.25*ee,fe=Math.sqrt(Math.pow(K,2)+Math.pow(_e,2)),ve=K/fe,ye=r.autotickangles.map(function(ze){return ze*Math.PI/180}),ce=ye.find(function(ze){return Math.abs(Math.cos(ze))<=ve});ce===void 0&&(ce=ye.reduce(function(ze,Ge){return Math.abs(Math.cos(ze))G*B&&(R=B,E[S]=D[S]=I[S])}var Y=Math.abs(R-P);Y-w>0?(Y-=w,w*=1+w/Y):w=0,r._id.charAt(0)!=="y"&&(w=-w),E[M]=_.p2r(_.r2p(D[M])+k*w),_.autorange==="min"||_.autorange==="max reversed"?(E[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(E[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=E}var V=xr.syncOrAsync(x);return V&&V.then&&e._promises.push(V),V};function vhe(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Z1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Sh.stroke,r.dividercolor).style("stroke-width",Zn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function uE(e){var r=e.title.font.size,t=(e.title.text.match(xu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(wu+t*Ch):t?r*(t+1)*Ch:r}function hhe(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(xu.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*wu:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Mh+l*Ch));else{var s=Eh(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=Zn.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Dve.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=xr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===j1)&&(gE(r,0)||!dhe(e,r,t,a)||phe(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return gE(e,t.x)})};function gE(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=zve:/%L/.test(r)?e>=Ive:/%[SX]/.test(r)?e>=Y1:/%M/.test(r)?e>=qh:/%[HI]/.test(r)?e>=Fo:/%p/.test(r)?e>=ls:/%[Aadejuwx]/.test(r)?e>=ln:/%[UVW]/.test(r)?e>=Jn:/%[Bbm]/.test(r)?e>=V1:/%[q]/.test(r)?e>=G1:/%[Yy]/.test(r)?e>=U1:!0}});var TE=N((ERe,wE)=>{"use strict";wE.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var f5=N((DRe,AE)=>{"use strict";var _he=TE();AE.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(_he(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var kE=N((RRe,ME)=>{var whe={left:0,top:0};ME.exports=The;function The(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Ahe(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Ahe(e){return e===window||e===document||e===document.body?whe:e.getBoundingClientRect()}});var c5=N((PRe,SE)=>{"use strict";var Mhe=Wb();function khe(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}SE.exports=Mhe&&khe()});var CE=N((FRe,qE)=>{"use strict";qE.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var DE=N((NRe,EE)=>{"use strict";var LE=Le(),She=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];EE.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=LE.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=LE.constrain(Math.floor(t*3),0,2),She[t][r]}});var PE=N((IRe,RE)=>{"use strict";var qhe=ph(),Che=Xp(),Lhe=lh().getGraphDiv,Ehe=ah(),v5=RE.exports={};v5.wrapped=function(e,r,t){e=Lhe(e),e._fullLayout&&Che.clear(e._fullLayout._uid+Ehe.HOVERID),v5.raw(e,r,t)};v5.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&qhe.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var mi=N((zRe,zE)=>{"use strict";var Dhe=kE(),h5=Xb(),Rhe=c5(),Phe=Le().removeElement,Fhe=_a(),Tu=zE.exports={};Tu.align=CE();Tu.getCursor=DE();var NE=PE();Tu.unhover=NE.wrapped;Tu.unhoverRaw=NE.raw;Tu.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,Rhe?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(_,b,w){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===v?b=c:(b={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(w=>{var k=c[w];!b[w]&&typeof k!="function"&&(b[w]=k)})),r.clickFn&&r.clickFn(a,b),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function IE(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Tu.coverSlip=IE;function FE(e){return Dhe(e.changedTouches?e.changedTouches[0]:e,document.body)}});var ss=N((ORe,OE)=>{"use strict";OE.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var UE=N((BRe,HE)=>{"use strict";var d5=ss(),Dh="data-savedcursor",BE="!!";HE.exports=function(r,t){var a=r.attr(Dh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var p5=ba(),Nhe=fi();GE.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Nhe.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:p5({editType:"legend"}),grouptitlefont:p5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:p5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Ph=N(Rh=>{"use strict";Rh.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Rh.isVertical=function(r){return r.orientation!=="h"};Rh.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Rh.getId=function(r){return r._id||"legend"}});var g5=N((GRe,VE)=>{"use strict";var $1=br(),$n=Le(),Ihe=wt(),zhe=gn(),Ohe=y5(),Bhe=Hf(),m5=Ph();function Hhe(e,r,t,a,n){var i=r[e]||{},o=Ihe.newContainer(t,e);function l(H,Z){return $n.coerce(i,o,Ohe,H,Z)}var s=$n.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(H,Z){var W=f._input,ee=f;return $n.coerce(W,ee,zhe,H,Z)},v=t.font||{},d=$n.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,y=!1,m="normal",x=(t.shapes||[]).filter(function(H){return H.showlegend});function T(H){return $1.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}a.filter(T).forEach(function(H){H.visible&&p++;for(var Z=0;ZH.legend.length)for(var ee=H.legend.length;ee(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),!(k===!1&&!i.uirevision)&&(l("uirevision",t.uirevision),k!==!1)){l("borderwidth");var M=l("orientation"),S=l("yref"),E=l("xref"),D=M==="h",P=S==="paper",R=E==="paper",I,z,B,G="left";D?(I=0,$1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(z=1.1,B="bottom"):(z=1,B="top"):P?(z=-.1,B="top"):(z=0,B="bottom")):(z=1,B="auto",R?I=1.02:(I=1,G="right")),$n.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:I}},"x"),$n.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:z}},"y"),l("traceorder",m),m5.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",G),l("yanchor",B),l("maxheight"),l("valign"),$n.noneOrAll(i,o,["x","y"]);var Y=l("title.text");if(Y){l("title.side",D?"left":"top");var V=$n.extendFlat({},s,{size:$n.bigFont(s.size)});$n.coerceFont(l,"title.font",V);let H=n>1;l("titleclick",H?"toggle":!1),l("titledoubleclick",H?"toggleothers":!1)}}}VE.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var us=br(),b5=Le(),Uhe=b5.pushUnique,Ghe=Ph(),YE=!0;x5.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;var l=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&YE&&t.data&&t._context.showTips&&(b5.notifier(b5._(t,"Double-click on legend to isolate one trace"),"long",t),YE=!1);var s=l==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let c=(i.shapes||[]).filter(De=>De.showlegend||De.legendgroup);var v=f.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,y,m,x,T,_,b,w={},k=[],M=[],S=[];function E(De,Ce){var He=k.indexOf(De),Oe=w.visible;return Oe||(Oe=w.visible=[]),k.indexOf(De)===-1&&(k.push(De),He=k.length-1),Oe[He]=Ce,He}var D=(i.shapes||[]).map(function(De){return De._input}),P=!1;function R(De,Ce){D[De].visible=Ce,P=!0}function I(De,Ce){if(!(o.groupTitle&&!s)){var He=De._fullInput||De,Oe=He._isShape,Ue=He.index;Ue===void 0&&(Ue=He._index);var Ee=He.visible===!1?!1:Ce;Oe?R(Ue,Ee):E(Ue,Ee)}}var z=d.legend,B=d._fullInput,G=B&&B._isShape;if(!G&&us.traceIs(d,"pie-like")){var Y=o.label,V=u.indexOf(Y);if(n==="toggle")V===-1?u.push(Y):u.splice(V,1);else if(n==="toggleothers"){var H=V!==-1,Z=[];for(y=0;yx.showlegend||x.legendgroup),s=i.concat(l);function u(x){return(x.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(T){return u(T)&&T.visible===!0}),c=!1;else{let x=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,c=!x}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(x){return x._input});for(var y=!1,m=0;m{"use strict";WE.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var ZE=N((WRe,XE)=>{"use strict";var{isArrayOrTypedArray:T5}=Cn(),jE=br(),A5=Ph();XE.exports=function(r,t,a){var n=t._inHover,i=A5.isGrouped(t),o=A5.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function y(Z,W,ee){if(t.visible!==!1&&!(a&&Z!==t._id))if(W===""||!A5.isGrouped(t)){var oe="~~i"+c;s.push(oe),l[oe]=[ee],c++}else s.indexOf(W)===-1?(s.push(W),u=!0,l[W]=[ee]):l[W].push(ee)}for(d=0;dI&&(P=I)}E[d][0]._groupMinRank=P,E[d][0]._preGroupSort=d}var z=function(Z,W){return Z[0]._groupMinRank-W[0]._groupMinRank||Z[0]._preGroupSort-W[0]._preGroupSort},B=function(Z,W){var ee=T5(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank,oe=T5(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank;return ee-oe||Z._preSort-W._preSort};for(E.forEach(function(Z,W){Z[0]._preGroupSort=W}),E.sort(z),d=0;d{"use strict";var K1=Le();function JE(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Au.formatPiePercent=function(r,t){var a=JE((r*100).toPrecision(3));return K1.numSeparate(a,t)+"%"};Au.formatPieValue=function(r,t){var a=JE(r.toPrecision(10));return K1.numSeparate(a,t)};Au.getFirstFilled=function(r,t){if(K1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Vhe=Yr(),Yhe=Tr();$E.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Vhe.pointStyle(r,a,n,t):Yhe.fill(r,t.color)}});var ey=N((ZRe,rD)=>{"use strict";var QE=Tr(),eD=Q1().castOption,Whe=KE();rD.exports=function(r,t,a,n){var i=a.marker.line,o=eD(i.color,t.pts)||QE.defaultLine,l=eD(i.width,t.pts)||0;r.call(Whe,t,a,n).style("stroke-width",l).call(QE.stroke,o)}});var q5=N((JRe,lD)=>{"use strict";var sn=Sr(),M5=br(),Ka=Le(),tD=Ka.strTranslate,Kn=Yr(),gi=Tr(),k5=Xn().extractOpts,ry=Nn(),jhe=ey(),Xhe=Q1().castOption,Zhe=w5(),aD=12,nD=5,Mu=2,Jhe=10,dc=5;lD.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Zhe.itemGap*2)/2,s=tD(l,0),u=function(M,S,E,D){var P;if(M+1)P=M;else if(S&&S.width>0)P=S.width;else return 0;return i?D:Math.min(P,E)};r.each(function(M){var S=sn.select(this),E=Ka.ensureSingle(S,"g","layers");E.style("opacity",M[0].trace.opacity);var D=a.indentation,P=a.valign,R=M[0].lineHeight,I=M[0].height;if(P==="middle"&&D===0||!R||!I)E.attr("transform",null);else{var z={top:1,bottom:-1}[P],B=z*(.5*(R-I+3))||0,G=a.indentation;E.attr("transform",tD(G,B))}var Y=E.selectAll("g.legendfill").data([M]);Y.enter().append("g").classed("legendfill",!0);var V=E.selectAll("g.legendlines").data([M]);V.enter().append("g").classed("legendlines",!0);var H=E.selectAll("g.legendsymbols").data([M]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(m).each(b).each(_).each(f).each(c).each(x).each(T);function f(M){var S=iD(M),E=S.showFill,D=S.showLine,P=S.showGradientLine,R=S.showGradientFill,I=S.anyFill,z=S.anyLine,B=M[0],G=B.trace,Y,V,H=k5(G),Z=H.colorscale,W=H.reversescale,ee=function(ve){if(ve.size())if(E)Kn.fillGroupStyle(ve,t,!0);else{var ye="legendfill-"+G.uid;Kn.gradient(ve,t,ye,S5(W),Z,"fill")}},oe=function(ve){if(ve.size()){var ye="legendline-"+G.uid;Kn.lineGroupStyle(ve),Kn.gradient(ve,t,ye,S5(W),Z,"stroke")}},le=ry.hasMarkers(G)||!I?"M5,0":z?"M5,-2":"M5,-3",ue=sn.select(this),K=ue.select(".legendfill").selectAll("path").data(E||R?[M]:[]);if(K.enter().append("path").classed("js-fill",!0),K.exit().remove(),K.attr("d",le+"h"+o+"v6h-"+o+"z").call(ee),D||P){var _e=u(void 0,G.line,Jhe,nD);V=Ka.minExtend(G,{line:{width:_e}}),Y=[Ka.minExtend(B,{trace:V})]}var fe=ue.select(".legendlines").selectAll("path").data(D||P?[Y]:[]);fe.enter().append("path").classed("js-line",!0),fe.exit().remove(),fe.attr("d",le+(P?"l"+o+",0.0001":"h"+o)).call(D?Kn.lineGroupStyle:oe)}function c(M){var S=iD(M),E=S.anyFill,D=S.anyLine,P=S.showLine,R=S.showMarker,I=M[0],z=I.trace,B=!R&&!D&&!E&&ry.hasText(z),G,Y;function V(K,_e,fe,ve){var ye=Ka.nestedProperty(z,K).get(),ce=Ka.isArrayOrTypedArray(ye)&&_e?_e(ye):ye;if(i&&ce&&ve!==void 0&&(ce=ve),fe){if(cefe[1])return fe[1]}return ce}function H(K){return I._distinct&&I.index&&K[I.index]?K[I.index]:K[0]}if(R||B||P){var Z={},W={};if(R){Z.mc=V("marker.color",H),Z.mx=V("marker.symbol",H),Z.mo=V("marker.opacity",Ka.mean,[.2,1]),Z.mlc=V("marker.line.color",H),Z.mlw=V("marker.line.width",Ka.mean,[0,5],Mu),Z.mld=z._isShape?"solid":V("marker.line.dash",H),W.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ee=V("marker.size",Ka.mean,[2,16],aD);Z.ms=ee,W.marker.size=ee}P&&(W.line={width:V("line.width",H,[0,10],nD)}),B&&(Z.tx="Aa",Z.tp=V("textposition",H),Z.ts=10,Z.tc=V("textfont.color",H),Z.tf=V("textfont.family",H),Z.tw=V("textfont.weight",H),Z.ty=V("textfont.style",H),Z.tv=V("textfont.variant",H),Z.tC=V("textfont.textcase",H),Z.tE=V("textfont.lineposition",H),Z.tS=V("textfont.shadow",H)),G=[Ka.minExtend(I,Z)],Y=Ka.minExtend(z,W),Y.selectedpoints=null,Y.texttemplate=null}var oe=sn.select(this).select("g.legendpoints"),le=oe.selectAll("path.scatterpts").data(R?G:[]);le.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),le.exit().remove(),le.call(Kn.pointStyle,Y,t),R&&(G[0].mrc=3);var ue=oe.selectAll("g.pointtext").data(B?G:[]);ue.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ue.exit().remove(),ue.selectAll("text").call(Kn.textPointStyle,Y,t)}function v(M){var S=M[0].trace,E=S.type==="waterfall";if(M[0]._distinct&&E){var D=M[0].trace[M[0].dir].marker;return M[0].mc=D.color,M[0].mlw=D.line.width,M[0].mlc=D.line.color,y(M,this,"waterfall")}var P=[];S.visible&&E&&(P=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=sn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(I){var z=sn.select(this),B=S[I[0]].marker,G=u(void 0,B.line,dc,Mu);z.attr("d",I[1]).style("stroke-width",G+"px").call(gi.fill,B.color),G&&z.call(gi.stroke,B.line.color)})}function d(M){y(M,this)}function p(M){y(M,this,"funnel")}function y(M,S,E){var D=M[0].trace,P=D.marker||{},R=P.line||{},I=P.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",z=E?D.visible&&D.type===E:M5.traceIs(D,"bar"),B=sn.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(z?[M]:[]);B.enter().append("path").classed("legend"+E,!0).attr("d",I).attr("transform",s),B.exit().remove(),B.each(function(G){var Y=sn.select(this),V=G[0],H=u(V.mlw,P.line,dc,Mu);Y.style("stroke-width",H+"px");var Z=V.mcc;if(!a._inHover&&"mc"in V){var W=k5(P),ee=W.mid;ee===void 0&&(ee=(W.max+W.min)/2),Z=Kn.tryColorscale(P,"")(ee)}var oe=Z||V.mc||P.color,le=P.pattern,ue=Kn.getPatternAttr,K=le&&(ue(le.shape,0,"")||ue(le.path,0,""));if(K){var _e=ue(le.bgcolor,0,null),fe=ue(le.fgcolor,0,null),ve=le.fgopacity,ye=oD(le.size,8,10),ce=oD(le.solidity,.5,1),j="legend-"+D.uid;Y.call(Kn.pattern,"legend",t,j,K,ye,ce,Z,le.fillmode,_e,fe,ve)}else Y.call(gi.fill,oe);H&&gi.stroke(Y,V.mlc||R.color)})}function m(M){var S=M[0].trace,E=sn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&M5.traceIs(S,"box-violin")?[M]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),E.exit().remove(),E.each(function(){var D=sn.select(this);if((S.boxpoints==="all"||S.points==="all")&&gi.opacity(S.fillcolor)===0&&gi.opacity((S.line||{}).color)===0){var P=Ka.minExtend(S,{marker:{size:i?aD:Ka.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(Kn.pointStyle,P,t)}else{var R=u(void 0,S.line,dc,Mu);D.style("stroke-width",R+"px").call(gi.fill,S.fillcolor),R&&gi.stroke(D,S.line.color)}})}function x(M){var S=M[0].trace,E=sn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[M,M]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(D,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=sn.select(this),I=S[P?"increasing":"decreasing"],z=u(void 0,I.line,dc,Mu);R.style("stroke-width",z+"px").call(gi.fill,I.fillcolor),z&&gi.stroke(R,I.line.color)})}function T(M){var S=M[0].trace,E=sn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[M,M]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(D,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=sn.select(this),I=S[P?"increasing":"decreasing"],z=u(void 0,I.line,dc,Mu);R.style("fill","none").call(Kn.dashLine,I.line.dash,z),z&&gi.stroke(R,I.line.color)})}function _(M){w(M,this,"pie")}function b(M){w(M,this,"funnelarea")}function w(M,S,E){var D=M[0],P=D.trace,R=E?P.visible&&P.type===E:M5.traceIs(P,E),I=sn.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(R?[M]:[]);if(I.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var z=P.marker||{},B=u(Xhe(z.line.width,D.pts),z.line,dc,Mu),G="pieLike",Y=Ka.minExtend(P,{marker:{line:{width:B}}},G),V=Ka.minExtend(D,{trace:Y},G);jhe(I,V,Y,t)}}function k(M){var S=M[0].trace,E,D=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":D=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":D=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":case"densitymap":D=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":D=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":D=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":D=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var P=sn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(D);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,I){var z=sn.select(this),B=k5(S),G=B.colorscale,Y=B.reversescale,V=function(ee){if(ee.size()){var oe="legendfill-"+S.uid;Kn.gradient(ee,t,oe,S5(Y,E==="radial"),G,"fill")}},H;if(G){if(!E){var W=G.length;H=I===0?G[Y?W-1:0][1]:I===1?G[Y?0:W-1][1]:G[Math.floor((W-1)/2)][1]}}else{var Z=S.vertexcolor||S.facecolor||S.color;H=Ka.isArrayOrTypedArray(Z)?Z[I]||Z[0]:Z}z.attr("d",R[0]),H?z.call(gi.fill,H):z.call(V)})}};function S5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function iD(e){var r=e[0].trace,t=r.contours,a=ry.hasLines(r),n=ry.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function oD(e,r,t){return e&&Ka.isArrayOrTypedArray(e)?r:e>t?t:e}});var D5=N(($Re,yD)=>{"use strict";var bn=Sr(),ia=Le(),L5=na(),ku=br(),ny=ph(),C5=mi(),oa=Yr(),Fh=Tr(),Su=Ma(),sD=_5().handleItemClick,uD=_5().handleTitleClick,da=w5(),E5=Ga(),dD=E5.LINE_SPACING,yc=E5.FROM_TL,fD=E5.FROM_BR,cD=ZE(),$he=q5(),mc=Ph(),pc=1,Khe=/^legend[0-9]*$/;yD.exports=function(r,t){if(t)vD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=bn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Khe)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),L5.autoMargin(e,n);var y=ia.ensureSingle(o,"g",n,function(S){l||S.attr("pointer-events","all")}),m=ia.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),x=ia.ensureSingle(y,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});x.call(Fh.stroke,t.bordercolor).call(Fh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=ia.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var b;_.text?(b=ia.ensureSingle(T,"text",n+"titletext"),b.attr("text-anchor","start").call(oa.font,_.font).text(_.text),ay(b,T,e,t,pc),!l&&(t.titleclick||t.titledoubleclick)&&t0e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var w=ia.ensureSingle(y,"rect","scrollbar",function(S){S.attr(da.scrollBarEnterAttrs).call(Fh.fill,da.scrollBarColor)}),k=T.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(ia.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){let E=S[0],D=E.trace;if(E.groupTitle){let P=D.legendgroup,R=(a.shapes||[]).filter(function(z){return z.showlegend});return e._fullData.concat(R).some(function(z){return z.legendgroup===P&&(z.legend||"legend")===n&&z.visible===!0})?1:.5}return ku.traceIs(D,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){bn.select(this).call(e0e,e,t)}).call($he,e,t).each(function(S){l||S[0].groupTitle&&t.groupclick==="toggleitem"||bn.select(this).call(r0e,e,n)}),ia.syncOrAsync([L5.previousPromises,function(){return i0e(e,k,M,t,T)},function(){var S=a._size,E=t.borderwidth,D=t.xref==="paper",P=t.yref==="paper";if(_.text){let ie=(a.shapes||[]).filter(function(me){return me.showlegend}),he=e._fullData.concat(ie).some(function(me){let Re=me.legend||"legend";var De=Array.isArray(Re)?Re.includes(n):Re===n;return De&&me.visible===!0});b.style("opacity",he?1:.5)}if(!l){var R,I;D?R=S.l+S.w*t.x-yc[iy(t)]*t._width:R=a.width*t.x-yc[iy(t)]*t._width,P?I=S.t+S.h*(1-t.y)-yc[oy(t)]*t._effHeight:I=a.height*(1-t.y)-yc[oy(t)]*t._effHeight;var z=o0e(e,n,R,I);if(z)return;if(a.margin.autoexpand){var B=R,G=I;R=D?ia.constrain(R,0,a.width-t._width):B,I=P?ia.constrain(I,0,a.height-t._effHeight):G,R!==B&&ia.log("Constrain "+n+".x to make legend fit inside graph"),I!==G&&ia.log("Constrain "+n+".y to make legend fit inside graph")}oa.setTranslate(y,R,I)}if(w.on(".drag",null),y.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;l&&(Y=t._height),x.attr({width:t._width-E,height:Y-E,x:E/2,y:E/2}),oa.setTranslate(T,0,0),m.select("rect").attr({width:t._width-2*E,height:Y-2*E,x:E,y:E}),oa.setClipUrl(T,i,e),oa.setRect(w,0,0,0,0),delete t._scrollY}else{var V=Math.max(da.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),H=t._effHeight-V-2*da.scrollBarMargin,Z=t._height-t._effHeight,W=H/Z,ee=Math.min(t._scrollY||0,Z);x.attr({width:t._width-2*E+da.scrollBarWidth+da.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),m.select("rect").attr({width:t._width-2*E+da.scrollBarWidth+da.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+ee}),oa.setClipUrl(T,i,e),ye(ee,V,W),y.on("wheel",function(){ee=ia.constrain(t._scrollY+bn.event.deltaY/Z*H,0,Z),ye(ee,V,W),ee!==0&&ee!==Z&&bn.event.preventDefault()});var oe,le,ue,K=function(ie,he,me){var Re=(me-he)/W+ie;return ia.constrain(Re,0,Z)},_e=function(ie,he,me){var Re=(he-me)/W+ie;return ia.constrain(Re,0,Z)},fe=bn.behavior.drag().on("dragstart",function(){var ie=bn.event.sourceEvent;ie.type==="touchstart"?oe=ie.changedTouches[0].clientY:oe=ie.clientY,ue=ee}).on("drag",function(){var ie=bn.event.sourceEvent;ie.buttons===2||ie.ctrlKey||(ie.type==="touchmove"?le=ie.changedTouches[0].clientY:le=ie.clientY,ee=K(ue,oe,le),ye(ee,V,W))});w.call(fe);var ve=bn.behavior.drag().on("dragstart",function(){var ie=bn.event.sourceEvent;ie.type==="touchstart"&&(oe=ie.changedTouches[0].clientY,ue=ee)}).on("drag",function(){var ie=bn.event.sourceEvent;ie.type==="touchmove"&&(le=ie.changedTouches[0].clientY,ee=_e(ue,oe,le),ye(ee,V,W))});T.call(ve)}function ye(ie,he,me){t._scrollY=e._fullLayout[n]._scrollY=ie,oa.setTranslate(T,0,-ie),oa.setRect(w,t._width,da.scrollBarMargin+ie*me,da.scrollBarWidth,he),m.select("rect").attr("y",E+ie)}if(e._context.edits.legendPosition){var ce,j,Q,X;y.classed("cursor-move",!0),C5.init({element:y.node(),gd:e,prepFn:function(ie){if(ie.target!==w.node()){var he=oa.getTranslate(y);Q=he.x,X=he.y}},moveFn:function(ie,he){if(Q!==void 0&&X!==void 0){var me=Q+ie,Re=X+he;oa.setTranslate(y,me,Re),ce=C5.align(me,t._width,S.l,S.l+S.w,t.xanchor),j=C5.align(Re+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(ce!==void 0&&j!==void 0){var ie={};ie[n+".x"]=ce,ie[n+".y"]=j,ku.call("_guiRelayout",e,ie)}},clickFn:function(ie,he){var me=o.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return he.clientX>=Re.left&&he.clientX<=Re.right&&he.clientY>=Re.top&&he.clientY<=Re.bottom});me.size()>0&&pD(e,t,me,ie,he)}})}}],e)}}function ty(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function pD(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),ku.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=ny.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&sD(t,e,r,l)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=ny.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&sD(t,e,r,s)}}function e0e(e,r,t){var a=mc.getId(t),n=e.data()[0][0],i=n.trace,o=ku.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=ia.templateString(u,i._meta))));var c=ia.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(oa.font,f).text(l?hD(u,s):u);var v=t.indentation+t.itemwidth+da.itemGap*2;Su.positionText(c,v,0),l?c.call(Su.makeEditable,{gd:r,text:u}).call(ay,e,r,t).on("edit",function(d){this.text(hD(d,s)).call(ay,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?ku.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):ku.call("_guiRestyle",r,y,i.index)}):ay(c,e,r,t)}function hD(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function r0e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=ia.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Fh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),pD(r,l,e,i,bn.event)}}))}function t0e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&ku.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=ia.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Fh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:bn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(ny.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&uD(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,ny.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&uD(r,t,t.titledoubleclick))}))}function ay(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Su.convertToTspans(e,t,function(){a0e(r,t,a,n)})}function a0e(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=mc.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===pc?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*dD,v,d;if(l){var p=oa.bBox(l);v=p.height,d=p.width,a===pc?oa.setTranslate(o,u,u+v*.75):oa.setTranslate(o,0,v*.25)}else{var y="."+s+(a===pc?"title":"")+"text",m=e.select(y),x=Su.lineCount(m),T=m.node();if(v=c*x,d=T?oa.bBox(T).width:0,a===pc)t.title.side==="left"&&(d+=da.itemGap*2),Su.positionText(m,u+da.titlePad,u+c);else{var _=da.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=da.itemGap,d-=t.indentation+t.itemwidth),Su.positionText(m,_,-c*((x-1)/2-.3))}}a===pc?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function n0e(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function i0e(e,r,t,a,n){var i=e._fullLayout,o=mc.getId(a);a||(a=i[o]);var l=i._size,s=mc.isVertical(a),u=mc.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=da.itemGap,p=a.indentation+a.itemwidth+d*2,y=2*(c+d),m=oy(a),x=a.y<0||a.y===0&&m==="top",T=a.y>1||a.y===1&&m==="bottom",_=a.tracegroupgap,b={};let{orientation:w,yref:k}=a,{maxheight:M}=a,S=x||T||w!=="v"||k!=="paper";M||(M=S?.5:1);let E=S?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*E,30);var D=0;a._width=0,a._height=0;var P=n0e(a);if(s)t.each(function(ie){var he=ie[0].height;oa.setTranslate(this,c+P[0],c+P[1]+a._height+he/2+d),a._height+=he,a._width=Math.max(a._width,ie[0].width)}),D=p+a._width,a._width+=d+p+v,a._height+=y,u&&(r.each(function(ie,he){oa.setTranslate(this,0,he*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=iy(a),I=a.x<0||a.x===0&&R==="right",z=a.x>1||a.x===1&&R==="left",B=T||x,G=i.width/2;a._maxWidth=Math.max(I?B&&R==="left"?l.l+l.w:G:z?B&&R==="right"?l.r+l.w:G:l.w,2*p);var Y=0,V=0;t.each(function(ie){var he=ty(ie,a,p);Y=Math.max(Y,he),V+=he}),D=null;var H=0;if(u){var Z=0,W=0,ee=0;r.each(function(){var ie=0,he=0;bn.select(this).selectAll("g.traces").each(function(Re){var De=ty(Re,a,p),Ce=Re[0].height;oa.setTranslate(this,P[0],P[1]+c+d+Ce/2+he),he+=Ce,ie=Math.max(ie,De),b[Re[0].trace.legendgroup]=ie});var me=ie+d;W>0&&me+c+W>a._maxWidth?(H=Math.max(H,W),W=0,ee+=Z+_,Z=he):Z=Math.max(Z,he),oa.setTranslate(this,W,ee),W+=me}),a._width=Math.max(H,W)+c,a._height=ee+Z+y}else{var oe=t.size(),le=V+v+(oe-1)*d=a._maxWidth&&(H=Math.max(H,fe),K=0,_e+=ue,a._height+=ue,ue=0),oa.setTranslate(this,P[0]+c+K,P[1]+c+_e+he/2+d),fe=K+me+d,K+=Re,ue=Math.max(ue,he)}),le?(a._width=K+v,a._height=ue+y):(a._width=Math.max(H,fe)+v,a._height+=ue+y)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+da.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+da.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ve=e._context.edits,ye=ve.legendText||ve.legendPosition;t.each(function(ie){var he=bn.select(this).select("."+o+"toggle"),me=ie[0].height,Re=ie[0].trace.legendgroup,De=ty(ie,a,p);u&&Re!==""&&(De=b[Re]);var Ce=ye?p:D||De;!s&&!f&&(Ce+=d/2),oa.setRect(he,0,-me/2,Ce,me)});var ce=n.select("."+o+"titletext");ce.node()&&Qhe(ce,a,c);var j=n.select("."+o+"titletoggle");if(j.size()&&ce.node()){var Q=ce.attr("x")||0,X=da.titlePad;oa.setRect(j,Q-X,c,a._titleWidth+2*X,a._titleHeight+2*X)}}function o0e(e,r,t,a){var n=e._fullLayout,i=n[r],o=iy(i),l=oy(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return L5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*yc[o],r:i._width*fD[o],b:i._effHeight*fD[l],t:i._effHeight*yc[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function iy(e){return ia.isRightAnchor(e)?"right":ia.isCenterAnchor(e)?"center":"left"}function oy(e){return ia.isBottomAnchor(e)?"bottom":ia.isMiddleAnchor(e)?"middle":"top"}});var N5=N(F5=>{"use strict";var qu=Sr(),gl=Rr(),mD=Ln(),Ht=Le(),l0e=Ht.pushUnique,R5=Ht.strTranslate,s0e=Ht.strRotate,u0e=ph(),bi=Ma(),f0e=UE(),Io=Yr(),Sa=Tr(),ly=mi(),zo=zr(),c0e=_a().zindexSeparator,bc=br(),lo=Eo(),Cu=ah(),v0e=g5(),h0e=D5(),MD=Cu.YANGLE,P5=Math.PI*MD/180,d0e=1/Math.sin(P5),p0e=Math.cos(P5),y0e=Math.sin(P5),Et=Cu.HOVERARROWSIZE,Gr=Cu.HOVERTEXTPAD,gD={box:!0,ohlc:!0,violin:!0,candlestick:!0},m0e={scatter:!0,scattergl:!0,splom:!0};function bD(e,r){return e.distance-r.distance}F5.hover=function(r,t,a,n){r=Ht.getGraphDiv(r);var i=t.target;Ht.throttle(r._fullLayout._uid+Cu.HOVERID,Cu.HOVERMINTIME,function(){g0e(r,t,a,n,i)})};F5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=LD(n),o=ED(n),l=r.map(function(m){var x=m._x0||m.x0||m.x||0,T=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,b=m._y1||m.y1||m.y||0,w=m.eventData;if(w){var k=Math.min(x,T),M=Math.max(x,T),S=Math.min(_,b),E=Math.max(_,b),D=m.trace;if(bc.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,R=P.offsetLeft,I=P.offsetTop;k+=R,M+=R,S+=I,E+=I}w.bbox={x0:k+o,x1:M+o,y0:S+i,y1:E+i},w.xPixel=(x+T)/2,w.yPixel=(_+b)/2,t.inOut_bbox&&t.inOut_bbox.push(w.bbox)}else w=!1;return{color:m.color||Sa.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:w}}),s=!1,u=SD(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Sa.background,container:qu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(m,x){return m.y0-x.y0}).each(function(m,x){var T=m.y0-m.by/2;T-cM[0]._length||X<0||X>S[0]._length)return ly.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=X+S[0]._offset,"xval"in r?G=lo.flat(i,r.xval):G=lo.p2c(M,Q),"yval"in r?Y=lo.flat(i,r.yval):Y=lo.p2c(S,X),!gl(G[0])||!gl(Y[0]))return Ht.warn("Fx.hover failed",r,e),ly.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=G,e._hoverYVals=Y,e._hoverXAxes=M,e._hoverYAxes=S);var me=1/0;function Re(ar,Jr){for(H=0;Hfe&&(z.splice(0,fe),me=z[0].distance),c&&I!==0&&z.length===0){_e.distance=I,_e.index=!1;var ft=W._module.hoverPoints(_e,ue,K,"closest",{hoverLayer:l._hoverlayer});if(ft&&(ft=ft.filter(function(Yt){return Yt.spikeDistance<=I})),ft&&ft.length){var Da,Mn=ft.filter(function(Yt){return Yt.xa.showspikes&&Yt.xa.spikesnap!=="hovered data"});if(Mn.length){var Qt=Mn[0];gl(Qt.x0)&&gl(Qt.y0)&&(Da=Ce(Qt),(!ve.vLinePoint||ve.vLinePoint.spikeDistance>Da.spikeDistance)&&(ve.vLinePoint=Da))}var _t=ft.filter(function(Yt){return Yt.ya.showspikes&&Yt.ya.spikesnap!=="hovered data"});if(_t.length){var Vt=_t[0];gl(Vt.x0)&&gl(Vt.y0)&&(Da=Ce(Vt),(!ve.hLinePoint||ve.hLinePoint.spikeDistance>Da.spikeDistance)&&(ve.hLinePoint=Da))}}}}}Re();function De(ar,Jr,Xr){for(var $r=null,Rt=1/0,Kt,ft=0;ftar.trace.index===qe.trace.index):z=[qe];var Be=z.length,Ze=AD("x",qe,l),Ve=AD("y",qe,l);Re(Ze,Ve);var We=[],lr={},rr=0,er=function(ar){var Jr=gD[ar.trace.type]?kD(ar):ar.trace.index;if(!lr[Jr])rr++,lr[Jr]=rr,We.push(ar);else{var Xr=lr[Jr]-1,$r=We[Xr];Xr>0&&Math.abs(ar.distance)Be-1;Ie--)er(z[Ie]);z=We,Ee()}var ne=e._hoverdata,de=[],Pe=LD(e),Fe=ED(e);for(let ar of z){var Ke=lo.makeEventData(ar,ar.trace,ar.cd);if(ar.hovertemplate!==!1){var cr=!1;ar.cd[ar.index]&&ar.cd[ar.index].ht&&(cr=ar.cd[ar.index].ht),ar.hovertemplate=cr||ar.trace.hovertemplate||!1}if(ar.xa&&ar.ya){var ur=ar.x0+ar.xa._offset,Mr=ar.x1+ar.xa._offset,Ir=ar.y0+ar.ya._offset,Ur=ar.y1+ar.ya._offset,et=Math.min(ur,Mr),qt=Math.max(ur,Mr),ct=Math.min(Ir,Ur),Ot=Math.max(Ir,Ur);Ke.bbox={x0:et+Fe,x1:qt+Fe,y0:ct+Pe,y1:Ot+Pe},Ke.xPixel=(ur+Mr)/2,Ke.yPixel=(Ir+Ur)/2}ar.eventData=[Ke],de.push(Ke)}e._hoverdata=de;var gt=v==="y"&&(B.length>1||z.length>1)||v==="closest"&&ye&&z.length>1,Ta=Sa.combine(l.plot_bgcolor||Sa.background,l.paper_bgcolor),Zt=SD(z,{gd:e,hovermode:v,rotateLabels:gt,bgColor:Ta,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Jt=Zt.hoverLabels;if(lo.isUnifiedHover(v)||(x0e(Jt,gt,l,Zt.commonLabelBoundingBox),CD(Jt,gt,l._invScaleX,l._invScaleY)),n&&n.tagName){var za=bc.getComponentMethod("annotations","hasClickToShow")(e,de);f0e(qu.select(n),za?"pointer":"")}var fa=T0e(e,r,ne);if(!n||a||!fa&&!l.hoveranywhere)return;ne&&fa&&e.emit("plotly_unhover",{event:r,points:ne}),$t(e._hoverdata);function $t(ar){e.emit("plotly_hover",{event:r,points:ar,xaxes:M,yaxes:S,xvals:G,yvals:Y})}}function kD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var b0e=/([\s\S]*)<\/extra>/;function SD(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Cu.HOVERFONT,c=r.fontSize||Cu.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,T=e[0],_=T.xa,b=T.ya,w=n.charAt(0),k=w+"Label",M=T[k];if(M===void 0&&_.type==="multicategory")for(var S=0;Sa.width-de&&(Pe=a.width-de),Te.attr("d","M"+(er-Pe)+",0L"+(er-Pe+Et)+","+ne+Et+"H"+de+"v"+ne+(Gr*2+rr.height)+"H"+-de+"V"+ne+Et+"H"+(er-Pe-Et)+"Z"),er=Pe,H.minX=er-de,H.maxX=er+de,_.side==="top"?(H.minY=Ie-(Gr*2+rr.height),H.maxY=Ie-Gr):(H.minY=Ie+Gr,H.maxY=Ie+(Gr*2+rr.height))}else{var Fe,Ke,cr;b.side==="right"?(Fe="start",Ke=1,cr="",er=_._offset+_._length):(Fe="end",Ke=-1,cr="-",er=_._offset),Ie=b._offset+(T.y0+T.y1)/2,qe.attr("text-anchor",Fe),Te.attr("d","M0,0L"+cr+Et+","+Et+"V"+(Gr+rr.height/2)+"h"+cr+(Gr*2+rr.width)+"V-"+(Gr+rr.height/2)+"H"+cr+Et+"V-"+Et+"Z"),H.minY=Ie-(Gr+rr.height/2),H.maxY=Ie+(Gr+rr.height/2),b.side==="right"?(H.minX=er+Et,H.maxX=er+Et+(Gr*2+rr.width)):(H.minX=er-Et-(Gr*2+rr.width),H.maxX=er-Et);var ur=rr.height/2,Mr=D-rr.top-ur,Ir="clip"+a._uid+"commonlabel"+b._id,Ur;if(erTe.hoverinfo!=="none");if(Ne.length===0)return[];var Z=a.hoverlabel,W=Z.font,ee=Ne[0],oe=((n==="x unified"?ee.xa:ee.ya).unifiedhovertitle||{}).text,le=oe?Ht.hovertemplateString({data:n==="x unified"?[{xa:ee.xa,x:ee.xVal}]:[{ya:ee.ya,y:ee.yVal}],fallback:ee.trace.hovertemplatefallback,locale:a._d3locale,template:oe}):M,ue={showlegend:!0,legend:{title:{text:le,font:W},font:W,bgcolor:Z.bgcolor,bordercolor:Z.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},K={font:W};v0e(ue,K,t._fullData);var _e=K.legend;_e.entries=[];for(var fe=0;fe=0?Ae=Ee:ze+he=0?Ae=ze:Ge+he=0?Je=Oe:Ue+me=0?Je=Ue:se+me=0,(Ne.idealAlign==="top"||!ct)&&Ot?(cr-=Mr/2,Ne.anchor="end"):ct?(cr+=Mr/2,Ne.anchor="start"):Ne.anchor="middle",Ne.crossPos=cr;else{if(Ne.pos=cr,ct=Ke+ur/2+qt<=P,Ot=Ke-ur/2-qt>=0,(Ne.idealAlign==="left"||!ct)&&Ot)Ke-=ur/2,Ne.anchor="end";else if(ct)Ke+=ur/2,Ne.anchor="start";else{Ne.anchor="middle";var gt=qt/2,Ta=Ke+gt-P,Zt=Ke-gt;Ta>0&&(Ke-=Ta),Zt<0&&(Ke+=-Zt)}Ne.crossPos=Ke}Ie.attr("text-anchor",Ne.anchor),de&&ne.attr("text-anchor",Ne.anchor),Te.attr("transform",R5(Ke,cr)+(i?s0e(MD):""))}),{hoverLabels:dr,commonLabelBoundingBox:H}}function xD(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ht.templateString(e.name,e.trace._meta)),o=TD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=Ht.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(b0e,(p,y)=>(o=TD(y,e.nameLength),""))}return[l,o]}function x0e(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,y=function(G){return G*t._invScaleX},m=function(G){return G*t._invScaleY};e.each(function(G){var Y=G[n],V=G[i],H=Y._id.charAt(0)==="x",Z=Y.range;f===0&&Z&&Z[0]>Z[1]!==H&&(l=-1);var W=0,ee=H?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var oe=qD(G,r),le=G.anchor,ue=le==="end"?-1:1,K,_e;if(le==="middle")K=G.crossPos+(H?m(oe.y-G.by/2):y(G.bx/2+G.tx2width/2)),_e=K+(H?m(G.by):y(G.bx));else if(H)K=G.crossPos+m(Et+oe.y)-m(G.by/2-Et),_e=K+m(G.by);else{var fe=y(ue*Et+oe.x),ve=fe+y(ue*G.bx);K=G.crossPos+Math.min(fe,ve),_e=G.crossPos+Math.max(fe,ve)}H?d!==void 0&&p!==void 0&&Math.min(_e,p)-Math.max(K,d)>1&&(V.side==="left"?(W=V._mainLinePosition,ee=t.width):ee=V._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(_e,v)-Math.max(K,c)>1&&(V.side==="top"?(W=V._mainLinePosition,ee=t.height):ee=V._mainLinePosition)}u[f++]=[{datum:G,traceIndex:G.trace.index,dp:0,pos:G.pos,posref:G.posref,size:G.by*(H?d0e:1)/2,pmin:W,pmax:ee}]}),u.sort(function(G,Y){return G[0].posref-Y[0].posref||l*(Y[0].traceIndex-G[0].traceIndex)});var x,T,_,b,w,k,M;function S(G){var Y=G[0],V=G[G.length-1];if(T=Y.pmin-Y.pos-Y.dp+Y.size,_=V.pos+V.dp+V.size-Y.pmax,T>.01){for(w=G.length-1;w>=0;w--)G[w].dp+=T;x=!1}if(!(_<.01)){if(T<-.01){for(w=G.length-1;w>=0;w--)G[w].dp-=_;x=!1}if(x){var H=0;for(b=0;bY.pmax&&H++;for(b=G.length-1;b>=0&&!(H<=0);b--)k=G[b],k.pos>Y.pmax-1&&(k.del=!0,H--);for(b=0;b=0;w--)G[w].dp-=_;for(b=G.length-1;b>=0&&!(H<=0);b--)k=G[b],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,H--)}}}for(;!x&&o<=s;){for(o++,x=!0,b=0;b.01){for(w=D.length-1;w>=0;w--)D[w].dp+=T;for(E.push.apply(E,D),u.splice(b+1,1),M=0,w=E.length-1;w>=0;w--)M+=E[w].dp;for(_=M/E.length,w=E.length-1;w>=0;w--)E[w].dp-=_;x=!1}else b++}u.forEach(S)}for(b=u.length-1;b>=0;b--){var I=u[b];for(w=I.length-1;w>=0;w--){var z=I[w],B=z.datum;B.offset=z.dp,B.del=z.del}}}function qD(e,r){var t=0,a=e.offset;return r&&(a*=-y0e,t=e.offset*p0e),{x:t,y:a}}function _0e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Et+Gr),a=t+r*(e.txwidth+Gr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Gr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function CD(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=qu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=_0e(o),v=qD(o,r),d=v.x,p=v.y,y=u==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,x;y?x="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?x="M0,0L"+n(f*Et+d)+","+i(Et+p)+"v"+i(o.by/2-Et)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Et+d)+"V"+i(p-Et)+"Z":x="M"+n(f*Et+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",x);var T=d+c.textShiftX,_=p+o.ty0-o.by/2+Gr,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=y?-o.bx/2-o.tx2width/2+Gr:-o.bx-Gr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=y?o.bx/2-o.tx2width/2-Gr:o.bx+Gr)),s.call(bi.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(bi.positionText,n(c.text2ShiftX+c.alignShift*Gr+d),i(p+o.ty0-o.by/2+Gr)),l.select("rect").call(Io.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function w0e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||gl(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Ht.castOption(n,t,v);return o(p)?p:Ht.extractOption({},a,"",d)}:function(v,d){return Ht.extractOption(i,a,v,d)};function s(v,d,p){var y=l(d,p);o(y)&&(e[v]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ht.constrain(e.x0,0,e.xa._length),e.x1=Ht.constrain(e.x1,0,e.xa._length),e.y0=Ht.constrain(e.y0,0,e.ya._length),e.y1=Ht.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:zo.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:zo.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=zo.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+zo.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=zo.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+zo.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function _D(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Sa.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var y=f.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var m=mD.readability(v.color,c)<1.5?Sa.contrast(c):v.color,x=f.spikemode,T=f.spikethickness,_=f.spikecolor||m,b=zo.getPxPosition(e,f),w,k;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(w=b,k=d),x.indexOf("across")!==-1){var M=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),S=Math.max(S,f.position)),w=i.l+M*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":Io.dashStyle(f.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?T:-T),cy:p,r:T,fill:_}).classed("spikeline",!0)}if(s){var E=r.vLinePoint,D,P;u=E&&E.xa,f=E&&E.ya;var R=u.spikesnap;R==="cursor"?(D=o.pointerX,P=o.pointerY):(D=u._offset+E.x,P=f._offset+E.y);var I=mD.readability(E.color,c)<1.5?Sa.contrast(c):E.color,z=u.spikemode,B=u.spikethickness,G=u.spikecolor||I,Y=zo.getPxPosition(e,u),V,H;if(z.indexOf("toaxis")!==-1||z.indexOf("across")!==-1){if(z.indexOf("toaxis")!==-1&&(V=Y,H=P),z.indexOf("across")!==-1){var Z=u._counterDomainMin,W=u._counterDomainMax;u.anchor==="free"&&(Z=Math.min(Z,u.position),W=Math.max(W,u.position)),V=i.t+(1-W)*i.h,H=i.t+(1-Z)*i.h}a.insert("line",":first-child").attr({x1:D,x2:D,y1:V,y2:H,"stroke-width":B,stroke:G,"stroke-dasharray":Io.dashStyle(u.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:D,x2:D,y1:V,y2:H,"stroke-width":B+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}z.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:D,cy:Y-(u.side!=="top"?B:-B),r:B,fill:G}).classed("spikeline",!0)}}}function T0e(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function wD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function TD(e,r){return bi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function A0e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,ED=e=>e.offsetLeft+e.clientLeft;function gc(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Ht.apply3DTransform(t._invTransform)(n,i),u=Ht.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],v=u[0],d=u[1];return{x:f,y:c,width:v-f,height:d-c,top:Math.min(c,d),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,d)}}});var sy=N((QRe,DD)=>{"use strict";var M0e=Le(),k0e=Tr(),S0e=Eo().isUnifiedHover;DD.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&S0e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=k0e.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),M0e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var PD=N((ePe,RD)=>{"use strict";var q0e=Le(),C0e=sy(),L0e=Nf();RD.exports=function(r,t){function a(n,i){return q0e.coerce(r,t,L0e,n,i)}C0e(r,t,a)}});var ID=N((rPe,ND)=>{"use strict";var FD=Le(),E0e=Lp(),D0e=sy();ND.exports=function(r,t,a,n){function i(l,s){return FD.coerce(r,t,E0e,l,s)}var o=FD.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),D0e(r,t,i,o)}});var I5=N((tPe,zD)=>{"use strict";var R0e=Le(),P0e=Nf();zD.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:R0e.coerce(r,t,P0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var HD=N((aPe,BD)=>{"use strict";var OD=Le(),F0e=Nf(),N0e=I5(),I0e=sy();BD.exports=function(r,t){function a(f,c){return OD.coerce(r,t,F0e,f,c)}var n=N0e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),I0e(r,t,a),OD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var VD=N((nPe,GD)=>{"use strict";var z5=Le(),UD=br();GD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return z5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var O0e=br(),B0e=N5().hover;YD.exports=function(r,t,a){var n=O0e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&B0e(r,t,a,!0);function o(){var s,u,f,c;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals),(c=l.yvals)!=null||(l.yvals=r._hoverYVals),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var xn=N((oPe,ZD)=>{"use strict";var H0e=Sr(),uy=Le(),U0e=mi(),Nh=Eo(),jD=Nf(),XD=N5();ZD.exports={moduleType:"component",name:"fx",constants:ah(),schema:{layout:jD},attributes:Lp(),layoutAttributes:jD,supplyLayoutGlobalDefaults:PD(),supplyDefaults:ID(),supplyLayoutDefaults:HD(),calc:VD(),getDistanceFunction:Nh.getDistanceFunction,getClosest:Nh.getClosest,inbox:Nh.inbox,quadrature:Nh.quadrature,appendArrayPointValue:Nh.appendArrayPointValue,castHoverOption:V0e,castHoverinfo:Y0e,hover:XD.hover,unhover:U0e.unhover,loneHover:XD.loneHover,loneUnhover:G0e,click:WD()};function G0e(e){var r=uy.isD3Selection(e)?e:H0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function V0e(e,r,t){return uy.castOption(e,r,"hoverlabel."+t)}function Y0e(e,r,t){function a(n){return uy.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return uy.castOption(e,t,"hoverinfo",a)}});var Lu=N(bl=>{"use strict";bl.selectMode=function(e){return e==="lasso"||e==="select"};bl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};bl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};bl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};bl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};bl.selectingOrDrawing=function(e){return bl.freeMode(e)||bl.rectMode(e)}});var fy=N((sPe,JD)=>{"use strict";JD.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var cy=N((uPe,$D)=>{"use strict";$D.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var hy=N((fPe,KD)=>{"use strict";var vy=32;KD.exports={CIRCLE_SIDES:vy,i000:0,i090:vy/4,i180:vy/2,i270:vy/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var dy=N((cPe,eR)=>{"use strict";var W0e=Le().strTranslate;function QD(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function j0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function X0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return QD(e,t[r])}}function Z0e(e){return W0e(e.xaxis._offset,e.yaxis._offset)}eR.exports={p2r:QD,r2p:j0e,axValue:X0e,getTransform:Z0e}});var fs=N(xl=>{"use strict";var J0e=kx(),aR=hy(),xc=aR.CIRCLE_SIDES,O5=aR.SQRT2,nR=dy(),rR=nR.p2r,tR=nR.r2p,$0e=[0,3,4,5,6,1,2],K0e=[0,3,4,1,2];xl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var iR=ca(),fR=Lu(),Q0e=fR.drawMode,ede=fR.openMode,_c=hy(),oR=_c.i000,lR=_c.i090,sR=_c.i180,uR=_c.i270,rde=_c.cos45,tde=_c.sin45,cR=dy(),yy=cR.p2r,cs=cR.r2p,ade=rs(),nde=ade.clearOutline,my=fs(),ide=my.readPaths,ode=my.writePaths,lde=my.ellipseOver,sde=my.fixDatesForPaths;function ude(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!Q0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var fde=Lu(),cde=fde.selectMode,vde=rs(),hde=vde.clearOutline,B5=fs(),dde=B5.readPaths,pde=B5.writePaths,yde=B5.fixDatesForPaths;dR.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!cde(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";pR.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var hs=N(Pa=>{"use strict";var Bo=zh(),yR=Le(),vs=zr();Pa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Pa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Pa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Pa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Pa.extractPathCoords=function(e,r,t){var a=[],n=e.match(Bo.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Bo.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Pa.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Pa.shapePositionToRange(r);o=function(s){var u=Oo(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Pa.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Pa.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Pa.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Pa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Pa.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Pa.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Pa.getPathString=function(e,r){let t=r.type,a=vs.getRefType(r.xref),n=vs.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,y,m,x;function T(D,P,R,I){var z;if(D)if(P==="domain")I?z=function(B){return D._offset+D._length*(1-B)}:z=function(B){return D._offset+D._length*B};else{let B=Pa.shapePositionToRange(D);z=function(G){return D._offset+D.r2p(B(G,!0))},R==="path"&&D.type==="date"&&(z=Pa.decodeDate(z))}else I?z=function(B){return i.t+i.h*(1-B)}:z=function(B){return i.l+i.w*B};return z}if(a==="array"?(v=[],o=r.xref.map(function(D){return vs.getFromId(e,D)}),v=r.xref.map(function(D,P){return T(o[P],vs.getRefType(D),t,!1)})):(o=vs.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(D){return vs.getFromId(e,D)}),d=r.yref.map(function(D,P){return T(l[P],vs.getRefType(D),t,!0)})):(l=vs.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return mde(r,v,d);if(a==="array")s=Oo(o[0],r.x0shift),u=Oo(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=Oo(o,r.x0shift),u=Oo(o,r.x1shift),r.xsizemode==="pixel"){let D=v(r.xanchor);p=D+r.x0+s,y=D+r.x1+u}else p=v(r.x0)+s,y=v(r.x1)+u;if(n==="array")f=Oo(l[0],r.y0shift),c=Oo(l[1],r.y1shift),m=d[0](r.y0)+f,x=d[1](r.y1)+c;else if(f=Oo(l,r.y0shift),c=Oo(l,r.y1shift),r.ysizemode==="pixel"){let D=d(r.yanchor);m=D-r.y0+f,x=D-r.y1+c}else m=d(r.y0)+f,x=d(r.y1)+c;if(t==="line")return"M"+p+","+m+"L"+y+","+x;if(t==="rect")return"M"+p+","+m+"H"+y+"V"+x+"H"+p+"Z";var _=(p+y)/2,b=(m+x)/2,w=Math.abs(_-p),k=Math.abs(b-m),M="A"+w+","+k,S=_+w+","+b,E=_+","+(b-k);return"M"+S+M+" 0 1,1 "+E+M+" 0 0,1 "+S+"Z"};function mde(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Bo.segmentRE,function(v){var d=0,p=v.charAt(0),y=Bo.paramIsX[p],m=Bo.paramIsY[p],x=Bo.numParams[p];let T=y.drawn!==void 0,_=m.drawn!==void 0,b=s?r[f]:r,w=u?t[c]:t;var k=v.slice(1).replace(Bo.paramRE,function(M){return y[d]?n==="pixel"?M=b(o)+Number(M):M=b(M):m[d]&&(i==="pixel"?M=w(l)-Number(M):M=w(M)),d++,d>x&&(M="X"),M});return d>x&&(k=k.replace(/[\s,]*X.*/,""),yR.log("Ignoring extra params in segment "+v)),T&&f++,_&&c++,p+k})}Pa.getPixelShift=Oo;function Oo(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var U5=N((mPe,bR)=>{"use strict";var gde=Le(),Ho=zr(),mR=Ma(),gR=Yr(),bde=fs().readPaths,Eu=hs(),xde=Eu.getPathString,Oh=Op(),_de=Ga().FROM_TL;bR.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Ho.getFromId(r,a.xref),s=Ho.getFromId(r,a.yref);let W=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in Oh){var f=typeof Oh[u]=="function",c=!W||Oh.simpleXVariables.includes(u),v=!ee||Oh.simpleYVariables.includes(u);if(f&&c&&v){var d=Oh[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=gde.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},y=a.label.font,m={"data-notex":1},x=n.append("g").attr(p).classed("shape-label",!0),T=x.append("text").attr(m).classed("shape-label-text",!0).text(i),_,b,w,k;if(a.path){var M=xde(r,a),S=bde(M,r);_=1/0,w=1/0,b=-1/0,k=-1/0;for(var E=0;EEu.getDataToPixel(r,ie,X,!1,he)(Q),j=(Q,X,ie,he)=>Eu.getDataToPixel(r,ie,X,!0,he)(Q);if(a.xsizemode==="pixel"){let Q=ce(a.xanchor,void 0,oe,_e),X=Eu.getPixelShift(oe,a.x0shift),ie=Eu.getPixelShift(oe,a.x1shift);_=Q+a.x0+X,b=Q+a.x1+ie}else _=ce(a.x0,a.x0shift,oe,_e),b=ce(a.x1,a.x1shift,le,fe);if(a.ysizemode==="pixel"){let Q=j(a.yanchor,void 0,ue,ve),X=Eu.getPixelShift(ue,a.y0shift),ie=Eu.getPixelShift(ue,a.y1shift);w=Q-a.y0+X,k=Q-a.y1+ie}else w=j(a.y0,a.y0shift,ue,ve),k=j(a.y1,a.y1shift,K,ye)}var B=a.label.textangle;B==="auto"&&(a.type==="line"?B=wde(_,w,b,k):B=0),T.call(function(W){return W.call(gR.font,y).attr({}),mR.convertToTspans(W,r),W});var G=gR.bBox(T.node()),Y=Tde(_,w,b,k,a,B,G),V=Y.textx,H=Y.texty,Z=Y.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:H,x:V,transform:"rotate("+B+","+V+","+H+")"}).call(mR.positionText,V,H)}};function wde(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Tde(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,x,T,_;if(f==="line"){l==="start"?(m=e,x=r):l==="end"?(m=t,x=a):(m=(e+t)/2,x=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Ade=Le(),Mde=Ade.strTranslate,xR=mi(),TR=Lu(),kde=TR.drawMode,AR=TR.selectMode,MR=br(),_R=Tr(),xy=hy(),Sde=xy.i000,qde=xy.i090,Cde=xy.i180,Lde=xy.i270,Ede=rs(),kR=Ede.clearOutlineControllers,V5=fs(),by=V5.pointsOnRectangle,G5=V5.pointsOnEllipse,Dde=V5.writePaths,Rde=gy().newShapes,Pde=gy().createShapeObj,Fde=H5(),Nde=U5();SR.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(G5(r[0])||a.hasText)&&l({redrawing:!0})}function l(Y){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=Rde(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=Fde(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&MR.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=kde(f),v=AR(f);(c||v)&&(i._fullLayout._outlining=!0),kR(i),t.attr("d",Dde(r));var d,p,y,m,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=Ide([],r);var T=u.append("g").attr("class","outline-controllers");D(T),G()}if(c&&a.hasText){var _=u.select(".label-temp"),b=Pde(t,a,a.dragmode);Nde(i,"label-temp",b,_)}function w(Y){y=+Y.srcElement.getAttribute("data-i"),m=+Y.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(Y,V){if(r.length){var H=x[y][m][1],Z=x[y][m][2],W=r[y],ee=W.length;if(by(W)){var oe=Y,le=V;if(a.isActiveSelection){var ue=wR(W,m);ue[1]===W[m][1]?le=0:oe=0}for(var K=0;K1&&!(Y.length===2&&Y[1][0]==="Z")&&(m===0&&(Y[0][0]="M"),r[y]=Y,o(),l())}}function E(Y,V){if(Y===2){y=+V.srcElement.getAttribute("data-i"),m=+V.srcElement.getAttribute("data-j");var H=r[y];!by(H)&&!G5(H)&&S()}}function D(Y){d=[];for(var V=0;V{"use strict";var Ode=Sr(),RR=br(),W5=Le(),Du=zr(),Bde=fs().readPaths,Hde=_y(),Ty=U5(),PR=rs().clearOutlineControllers,Y5=Tr(),Ay=Yr(),Ude=wt().arrayEditor,qR=mi(),CR=xn(),LR=ss(),Ru=zh(),In=hs(),j5=In.getPathString;IR.exports={draw:X5,drawOne:FR,eraseActiveShape:jde,drawLabel:Ty};function X5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&CR.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&CR.click(e,o,t.id)}})}function NR(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=Vde(r,a,n);W5.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),Ay.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Ay.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function Vde(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>Du.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function Yde(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,y,m,x,T,_,b,w,k,M,S,E,D,P,R=Ode.select(r.node().parentNode),I=Du.getFromId(e,t.xref),z=Du.getRefType(t.xref),B=Du.getFromId(e,t.yref),G=Du.getRefType(t.yref),Y=t.x0shift,V=t.x1shift,H=t.y0shift,Z=t.y1shift,W=function(De,Ce){var He=In.getDataToPixel(e,I,Ce,!1,z);return He(De)},ee=function(De,Ce){var He=In.getDataToPixel(e,B,Ce,!0,G);return He(De)},oe=In.getPixelToData(e,I,!1,z),le=In.getPixelToData(e,B,!0,G),ue=fe(),K={element:ue.node(),gd:e,prepFn:ce,doneFn:j,clickFn:Q},_e;qR.init(K),ue.node().onmousemove=ye;function fe(){return f?ve():r}function ve(){var De=10,Ce=Math.max(t.line.width,De),He=n.append("g").attr("data-index",a).attr("drag-helper",!0);He.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Ce,"stroke-opacity":"0"});var Oe={"fill-opacity":"0"},Ue=Math.max(Ce/2,De);return He.append("circle").attr({"data-line-point":"start-point",cx:s?W(t.xanchor)+t.x0:W(t.x0,Y),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,H),r:Ue}).style(Oe).classed("cursor-grab",!0),He.append("circle").attr({"data-line-point":"end-point",cx:s?W(t.xanchor)+t.x1:W(t.x1,V),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,Z),r:Ue}).style(Oe).classed("cursor-grab",!0),He}function ye(De){if(wy(e)){_e=null;return}if(f)De.target.tagName==="path"?_e="move":_e=De.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ce=K.element.getBoundingClientRect(),He=Ce.right-Ce.left,Oe=Ce.bottom-Ce.top,Ue=De.clientX-Ce.left,Ee=De.clientY-Ce.top,ze=!c&&He>o&&Oe>l&&!De.shiftKey?qR.getCursor(Ue/He,1-Ee/Oe):"move";LR(r,ze),_e=ze.split("-")[0]}}function ce(De){wy(e)||(s&&(x=W(t.xanchor)),u&&(T=ee(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:W(t.x0),p=u?t.y0:ee(t.y0),y=s?t.x1:W(t.x1),m=u?t.y1:ee(t.y1)),dm?(_=p,M="y0",b=m,S="y1"):(_=m,M="y1",b=p,S="y0"),ye(De),he(n,t),Re(r,t,e),K.moveFn=_e==="move"?X:ie,K.altKey=De.altKey)}function j(){wy(e)||(LR(r),me(n),NR(r,e,t),RR.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){wy(e)||me(n)}function X(De,Ce){if(t.type==="path"){var He=function(Ee){return Ee},Oe=He,Ue=He;s?v("xanchor",t.xanchor=oe(x+De)):(Oe=function(ze){return oe(W(ze)+De)},I&&I.type==="date"&&(Oe=In.encodeDate(Oe))),u?v("yanchor",t.yanchor=le(T+Ce)):(Ue=function(ze){return le(ee(ze)+Ce)},B&&B.type==="date"&&(Ue=In.encodeDate(Ue))),v("path",t.path=ER(P,Oe,Ue))}else s?v("xanchor",t.xanchor=oe(x+De)):(v("x0",t.x0=oe(d+De)),v("x1",t.x1=oe(y+De))),u?v("yanchor",t.yanchor=le(T+Ce)):(v("y0",t.y0=le(p+Ce)),v("y1",t.y1=le(m+Ce)));r.attr("d",j5(e,t)),he(n,t),Ty(e,a,t,R)}function ie(De,Ce){if(c){var He=function(We){return We},Oe=He,Ue=He;s?v("xanchor",t.xanchor=oe(x+De)):(Oe=function(lr){return oe(W(lr)+De)},I&&I.type==="date"&&(Oe=In.encodeDate(Oe))),u?v("yanchor",t.yanchor=le(T+Ce)):(Ue=function(lr){return le(ee(lr)+Ce)},B&&B.type==="date"&&(Ue=In.encodeDate(Ue))),v("path",t.path=ER(P,Oe,Ue))}else if(f){if(_e==="resize-over-start-point"){var Ee=d+De,ze=u?p-Ce:p+Ce;v("x0",t.x0=s?Ee:oe(Ee)),v("y0",t.y0=u?ze:le(ze))}else if(_e==="resize-over-end-point"){var Ge=y+De,se=u?m-Ce:m+Ce;v("x1",t.x1=s?Ge:oe(Ge)),v("y1",t.y1=u?se:le(se))}}else{var Ae=function(We){return _e.indexOf(We)!==-1},Je=Ae("n"),dr=Ae("s"),Ne=Ae("w"),Te=Ae("e"),qe=Je?_+Ce:_,Be=dr?b+Ce:b,Ze=Ne?w+De:w,Ve=Te?k+De:k;u&&(Je&&(qe=_-Ce),dr&&(Be=b-Ce)),(!u&&Be-qe>l||u&&qe-Be>l)&&(v(M,t[M]=u?qe:le(qe)),v(S,t[S]=u?Be:le(Be))),Ve-Ze>o&&(v(E,t[E]=s?Ze:oe(Ze)),v(D,t[D]=s?Ve:oe(Ve)))}r.attr("d",j5(e,t)),he(n,t),Ty(e,a,t,R)}function he(De,Ce){(s||u)&&He();function He(){var Oe=Ce.type!=="path",Ue=De.selectAll(".visual-cue").data([0]),Ee=1;Ue.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ee}).classed("visual-cue",!0);var ze=W(s?Ce.xanchor:W5.midRange(Oe?[Ce.x0,Ce.x1]:In.extractPathCoords(Ce.path,Ru.paramIsX))),Ge=ee(u?Ce.yanchor:W5.midRange(Oe?[Ce.y0,Ce.y1]:In.extractPathCoords(Ce.path,Ru.paramIsY)));if(ze=In.roundPositionForSharpStrokeRendering(ze,Ee),Ge=In.roundPositionForSharpStrokeRendering(Ge,Ee),s&&u){var se="M"+(ze-1-Ee)+","+(Ge-1-Ee)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ue.attr("d",se)}else if(s){var Ae="M"+(ze-1-Ee)+","+(Ge-9-Ee)+"v18 h2 v-18 Z";Ue.attr("d",Ae)}else{var Je="M"+(ze-9-Ee)+","+(Ge-1-Ee)+"h18 v2 h-18 Z";Ue.attr("d",Je)}}}function me(De){De.selectAll(".visual-cue").remove()}function Re(De,Ce,He){var Oe=Ce.xref,Ue=Ce.yref,Ee=Du.getFromId(He,Oe),ze=Du.getFromId(He,Ue),Ge="";Oe!=="paper"&&!Ee.autorange&&(Ge+=Oe),Ue!=="paper"&&!ze.autorange&&(Ge+=Ue),Ay.setClipUrl(De,Ge?"clip"+He._fullLayout._uid+Ge:null,He)}}function ER(e,r,t){return e.replace(Ru.segmentRE,function(a){var n=0,i=a.charAt(0),o=Ru.paramIsX[i],l=Ru.paramIsY[i],s=Ru.numParams[i],u=a.slice(1).replace(Ru.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function Wde(e,r){if(My(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){DR(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=DR,X5(e)}}}function DR(e){if(My(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(PR(e),delete e._fullLayout._activeShapeIndex,X5(e))}}function jde(e){if(My(e)){PR(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var zR=Sr(),Sy=Le()._;OR.exports=function(r,t,a){var n=zR.select(r._fullLayout._paperdiv.node());n.selectAll(".plotly-cloud-dialog").remove();var i=n.append("div").classed("plotly-cloud-dialog",!0),o=i.append("div").classed("plotly-cloud-dialog-box",!0);o.append("div").classed("plotly-cloud-dialog-title",!0).text(Sy(r,"Share with Plotly Cloud")),o.append("div").classed("plotly-cloud-dialog-message",!0).text(Sy(r,"This chart and its data will be sent to")+" "+t+".");var l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);function s(){i.remove(),document.removeEventListener("keydown",u)}function u(f){(f.key==="Escape"||f.keyCode===27)&&s()}document.addEventListener("keydown",u),i.on("click",function(){zR.event.target===i.node()&&s()}),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(Sy(r,"Cancel")).on("click",s),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(Sy(r,"Share")).on("click",function(){s(),a()})}});var $5=N((_Pe,XR)=>{"use strict";var xi=br(),Xde=na(),HR=ca(),Zr=cy(),Zde=ky().eraseActiveShape,Jde=BR(),qy=Le(),Vr=qy._,Wr=XR.exports={};Wr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Vr(e,"Download plot as a PNG"):Vr(e,"Download plot")},icon:Zr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};qy.notifier(Vr(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),xi.call("downloadImage",e,t).then(function(a){qy.notifier(Vr(e,"Snapshot succeeded")+" - "+a,"long",e)}).catch(function(){qy.notifier(Vr(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Wr.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Vr(e,"Share with Plotly Cloud")},icon:Zr.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is not set)");return}try{new URL(r)}catch(t){console.error("Invalid plotlyServerURL: "+r);return}Jde(e,r,function(){Xde.sendDataToCloud(e,r)})}};Wr.sendDataToCloud=Wr.sendChartToCloud;Wr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Vr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Zr.zoombox,click:un};Wr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Vr(e,"Pan")},attr:"dragmode",val:"pan",icon:Zr.pan,click:un};Wr.select2d={name:"select2d",_cat:"select",title:function(e){return Vr(e,"Box Select")},attr:"dragmode",val:"select",icon:Zr.selectbox,click:un};Wr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Vr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Zr.lasso,click:un};Wr.drawclosedpath={name:"drawclosedpath",title:function(e){return Vr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Zr.drawclosedpath,click:un};Wr.drawopenpath={name:"drawopenpath",title:function(e){return Vr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Zr.drawopenpath,click:un};Wr.drawline={name:"drawline",title:function(e){return Vr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Zr.drawline,click:un};Wr.drawrect={name:"drawrect",title:function(e){return Vr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Zr.drawrect,click:un};Wr.drawcircle={name:"drawcircle",title:function(e){return Vr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Zr.drawcircle,click:un};Wr.eraseshape={name:"eraseshape",title:function(e){return Vr(e,"Erase active shape")},icon:Zr.eraseshape,click:Zde};Wr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Vr(e,"Zoom in")},attr:"zoom",val:"in",icon:Zr.zoom_plus,click:un};Wr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Vr(e,"Zoom out")},attr:"zoom",val:"out",icon:Zr.zoom_minus,click:un};Wr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Vr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Zr.autoscale,click:un};Wr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Vr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Zr.home,click:un};Wr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Vr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Zr.tooltip_basic,gravity:"ne",click:un};Wr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Vr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Zr.tooltip_compare,gravity:"ne",click:un};function un(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=HR.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f{"use strict";var ZR=$5(),Qde=Object.keys(ZR),JR=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],$R=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(JR),Tc=[],epe=function(e){if($R.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Tc.indexOf(r)===-1&&Tc.push(r),Tc.indexOf(t)===-1&&Tc.push(t)}};Qde.forEach(function(e){epe(ZR[e])});Tc.sort();KR.exports={DRAW_MODES:JR,backButtons:$R,foreButtons:Tc}});var Q5=N((APe,QR)=>{"use strict";var TPe=K5();QR.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var rP=N((MPe,eP)=>{"use strict";var rpe=Le(),Bh=Tr(),tpe=wt(),ape=Q5();eP.exports=function(r,t){var a=r.modebar||{},n=tpe.newContainer(t,"modebar");function i(l,s){return rpe.coerce(a,n,ape,l,s)}i("orientation"),i("bgcolor",Bh.addOpacity(t.paper_bgcolor,.5));var o=Bh.contrast(Bh.rgb(t.modebar.bgcolor));i("color",Bh.addOpacity(o,.3)),i("activecolor",Bh.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var iP=N((kPe,nP)=>{"use strict";var e_=Sr(),npe=Rr(),Ly=Le(),tP=cy(),ipe=Kv().version,ope=new DOMParser;function aP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Uo=aP.prototype;Uo.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Ly.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Uo.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Uo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Uo.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&e_.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||tP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Uo.createIcon=function(e){var r=npe(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=ope.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Uo.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=e_.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:Ly.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Uo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var upe=ca(),oP=Nn(),r_=br(),fpe=Eo().isUnifiedHover,cpe=iP(),Ey=$5(),vpe=K5().DRAW_MODES,hpe=Le().extendDeep;lP.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=bpe(i):!a.displayModeBar&&a.watermark?o=[]:o=dpe(r),n?n.update(r,o):t._modeBar=cpe(r,o)};function dpe(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(V,H){if(typeof H=="string"){if(H.toLowerCase()===V.toLowerCase())return!0}else{var Z=H.name,W=H._cat||H.name;if(Z===V||W===V.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(V){for(var H=0;H1?(D=["toggleHover"],P=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],P=["resetGeo"]):f?(D=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(E=["zoomInMapbox","zoomOutMapbox"],D=["toggleHover"],P=["resetViewMapbox"]):m?(E=["zoomInMap","zoomOutMap"],D=["toggleHover"],P=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(mpe(t)||w)&&(D=[]),u&&!b&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||p?R=["zoom2d","pan2d"]:y||m||c?R=["pan2d"]:x&&(R=["zoom2d"]),ype(t)&&R.push("select2d","lasso2d");var I=[],z=function(V){I.indexOf(V)===-1&&D.indexOf(V)!==-1&&I.push(V)};if(Array.isArray(l)){for(var B=[],G=0;G{"use strict";uP.exports={moduleType:"component",name:"modebar",layoutAttributes:Q5(),supplyLayoutDefaults:rP(),manage:sP()}});var a_=N((CPe,fP)=>{"use strict";var xpe=Ga().FROM_BL;fP.exports=function(r,t,a){a===void 0&&(a=xpe[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Fu=N(Hh=>{"use strict";var Pu=Le(),n_=Ah(),so=ca().id2name,_pe=pi(),cP=a_(),wpe=uc(),Tpe=Ft().ALMOST_EQUAL,Ape=Ga().FROM_BL;Hh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.slice(i):a.slice(n))+o}function kpe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oTpe*p&&!T)){for(i=0;iR&&ZD&&(D=Z);var ee=(D-E)/(2*P);c/=ee,E=s.l2r(E),D=s.l2r(D),s.range=s._input.range=k{"use strict";var Ry=Sr(),fn=br(),Qn=na(),_i=Le(),l_=Ma(),s_=fy(),Uh=Tr(),Ac=Yr(),pP=sc(),xP=t_(),Gh=zr(),_l=Ga(),_P=Fu(),Spe=_P.enforce,qpe=_P.clean,yP=Ah().doAutoRange,wP="start",Cpe="middle",TP="end",Lpe=_a().zindexSeparator;qa.layoutStyles=function(e){return _i.syncOrAsync([Qn.doAutoMargin,Dpe],e)};function Epe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Dpe(e){var r=e._fullLayout,t=r._size,a=t.p,n=Gh.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(Ac.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),qa.drawMainTitle(e),xP.manage(e),!r._has("cartesian"))return Qn.previousPromises(e);function c(ce,j,Q){var X=ce._lw/2;if(ce._id.charAt(0)==="x"){if(j){if(Q==="top")return j._offset-a-X}else return t.t+t.h*(1-(ce.position||0))+X%1;return j._offset+j._length+a+X}if(j){if(Q==="right")return j._offset+j._length+a+X}else return t.l+t.w*(ce.position||0)+X%1;return j._offset-a-X}for(i=0;i0){Npe(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:bP(r.yanchor)}).call(l_.positionText,o,i);var f=(r.text.match(l_.BR_TAG_ALL)||[]).length;if(f){var c=_l.LINE_SPACING*f+_l.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=Ry.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+pP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:bP(r.yanchor)}).call(l_.positionText,o,y)}}}};function Rpe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=_i.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return _i.isTopAnchor(r)&&t==="t"||_i.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Ppe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Npe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Rpe(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Qn.allowAutoMargin(e,n),Qn.autoMargin(e,n,l)}function Ipe(e,r){var t=e.title,a=e._size,n=0;return r===wP?n=t.pad.l:r===TP&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function zpe(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===_l.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function bP(e){return e==="top"?_l.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":_l.MID_SHIFT+"em"}function Ope(e){var r=e.title,t=Cpe;return _i.isRightAnchor(r)?t=TP:_i.isLeftAnchor(r)&&(t=wP),t}function Bpe(e){var r=e.title,t="0em";return _i.isTopAnchor(r)?t=_l.CAP_SHIFT+"em":_i.isMiddleAnchor(r)&&(t=_l.MID_SHIFT+"em"),t}qa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Hpe=fs().readPaths,Upe=_y(),AP=rs().clearOutlineControllers,u_=Tr(),MP=Yr(),Gpe=wt().arrayEditor,kP=hs(),Vpe=kP.getPathString;qP.exports={draw:Fy,drawOne:SP,activateLastSelection:jpe};function Fy(e){var r=e._fullLayout;AP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var x=o.append("path").attr(s).style("opacity",m?.1:u).call(u_.stroke,c).call(u_.fill,f).call(MP.dashLine,m?"solid":d,m?4+v:v);if(Ype(x,e,a),p){var T=Gpe(e.layout,"selections",a);x.style({cursor:"move"});var _={element:x.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},b=Hpe(l,e);Upe(b,x,_)}else x.style("pointer-events",m?"all":"none");y[m]=x}var w=y[0],k=y[1];k.node().addEventListener("click",function(){return Wpe(e,w)})}}function Ype(e,r,t){var a=t.xref+t.yref;MP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Wpe(e,r){if(Ny(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){f_(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=f_,Fy(e)}}}function jpe(e){if(Ny(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=f_,Fy(e)}}function f_(e){if(Ny(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(AP(e),delete e._fullLayout._activeSelectionIndex,Fy(e))}}});var LP=N((RPe,CP)=>{function Xpe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}CP.exports=Xpe});var DP=N((PPe,EP)=>{function Zpe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}EP.exports=Zpe});var PP=N((FPe,RP)=>{var Jpe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};RP.exports=Jpe});var NP=N((NPe,FP)=>{var Vh=PP();function $pe(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Vh.create();function o(p,y,m,x,T,_){var b=r.pointsCompare(y,T);return b!==0?b:r.pointsSame(m,_)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(m,x?T:_,x?_:T)?1:-1}function l(p,y){i.insertBefore(p,function(m){var x=o(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return x<0})}function s(p,y){var m=Vh.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return l(m,p.end),m}function u(p,y,m){var x=Vh.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=x,l(x,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,l(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function d(p,y){var m=Vh.create();function x(B,G){var Y=B.seg.start,V=B.seg.end,H=G.seg.start,Z=G.seg.end;return r.pointsCollinear(Y,H,Z)?r.pointsCollinear(V,H,Z)||r.pointAboveOrOnLine(V,H,Z)?1:-1:r.pointAboveOrOnLine(Y,H,Z)?1:-1}function T(B){return m.findTransition(function(G){var Y=x(B,G.ev);return Y>0})}function _(B,G){var Y=B.seg,V=G.seg,H=Y.start,Z=Y.end,W=V.start,ee=V.end;t&&t.checkIntersection(Y,V);var oe=r.linesIntersect(H,Z,W,ee);if(oe===!1){if(!r.pointsCollinear(H,Z,W)||r.pointsSame(H,ee)||r.pointsSame(Z,W))return!1;var le=r.pointsSame(H,W),ue=r.pointsSame(Z,ee);if(le&&ue)return G;var K=!le&&r.pointBetween(H,W,ee),_e=!ue&&r.pointBetween(Z,W,ee);if(le)return _e?v(G,Z):v(B,ee),G;K&&(ue||(_e?v(G,Z):v(B,ee)),v(G,H))}else oe.alongA===0&&(oe.alongB===-1?v(B,W):oe.alongB===0?v(B,oe.pt):oe.alongB===1&&v(B,ee)),oe.alongB===0&&(oe.alongA===-1?v(G,H):oe.alongA===0?v(G,oe.pt):oe.alongA===1&&v(G,Z));return!1}for(var b=[];!i.isEmpty();){var w=i.getHead();if(t&&t.vert(w.pt[0]),w.isStart){let B=function(){if(M){var G=_(w,M);if(G)return G}return S?_(w,S):!1};var z=B;t&&t.segmentNew(w.seg,w.primary);var k=T(w),M=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(w.seg,M?M.seg:!1,S?S.seg:!1);var E=B();if(E){if(e){var D;w.seg.myFill.below===null?D=!0:D=w.seg.myFill.above!==w.seg.myFill.below,D&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=w.seg.myFill;t&&t.segmentUpdate(E.seg),w.other.remove(),w.remove()}if(i.getHead()!==w){t&&t.rewind(w.seg);continue}if(e){var D;w.seg.myFill.below===null?D=!0:D=w.seg.myFill.above!==w.seg.myFill.below,S?w.seg.myFill.below=S.seg.myFill.above:w.seg.myFill.below=p,D?w.seg.myFill.above=!w.seg.myFill.below:w.seg.myFill.above=w.seg.myFill.below}else if(w.seg.otherFill===null){var P;S?w.primary===S.primary?P=S.seg.otherFill.above:P=S.seg.myFill.above:P=w.primary?y:p,w.seg.otherFill={above:P,below:P}}t&&t.status(w.seg,M?M.seg:!1,S?S.seg:!1),w.other.status=k.insert(Vh.node({ev:w}))}else{var R=w.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(R.prev)&&m.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!w.primary){var I=w.seg.myFill;w.seg.myFill=w.seg.otherFill,w.seg.otherFill=I}b.push(w.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var y,m=p[p.length-1],x=0;x{function Kpe(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(z,B,G){return f.index=z,f.matches_head=B,f.matches_pt1=G,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function Yh(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var Qpe={union:function(e,r){return Yh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Yh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Yh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Yh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Yh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};OP.exports=Qpe});var UP=N((OPe,HP)=>{var e1e={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var r1e=LP(),t1e=DP(),GP=NP(),a1e=zP(),Wh=BP(),VP=UP(),wi=!1,jh=t1e(),zn;zn={buildLog:function(e){return e===!0?wi=r1e():e===!1&&(wi=!1),wi===!1?!1:wi.list},epsilon:function(e){return jh.epsilon(e)},segments:function(e){var r=GP(!0,jh,wi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=GP(!1,jh,wi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Wh.union(e.combined,wi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Wh.intersect(e.combined,wi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Wh.difference(e.combined,wi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Wh.differenceRev(e.combined,wi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Wh.xor(e.combined,wi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:a1e(e.segments,jh,wi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return VP.toPolygon(zn,e)},polygonToGeoJSON:function(e){return VP.fromPolygon(zn,jh,e)},union:function(e,r){return Xh(e,r,zn.selectUnion)},intersect:function(e,r){return Xh(e,r,zn.selectIntersect)},difference:function(e,r){return Xh(e,r,zn.selectDifference)},differenceRev:function(e,r){return Xh(e,r,zn.selectDifferenceRev)},xor:function(e,r){return Xh(e,r,zn.selectXor)}};function Xh(e,r,t){var a=zn.segments(e),n=zn.segments(r),i=zn.combine(a,n),o=t(i);return zn.polygon(o)}typeof window=="object"&&(window.PolyBool=zn);YP.exports=zn});var XP=N((HPe,jP)=>{jP.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;y&&(l=!l)}return l}});var h_=N((UPe,ZP)=>{"use strict";var v_=Np().dot,Iy=Ft().BADNUM,zy=ZP.exports={};zy.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||x===Iy||xo||y&&u(p))}function c(p,y){var m=p[0],x=p[1];if(m===Iy||mn||x===Iy||xo)return!1;var T=t.length,_=t[0][0],b=t[0][1],w=0,k,M,S,E,D;for(k=1;kMath.max(M,_)||x>Math.max(S,b)))if(xl||Math.abs(v_(c,u))>n)return!0;return!1};zy.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var $P=N((GPe,JP)=>{"use strict";JP.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var bF=N((VPe,gF)=>{"use strict";var KP=WP(),n1e=XP(),$h=br(),i1e=Yr().dashStyle,Zh=Tr(),o1e=xn(),l1e=Eo().makeEventData,t0=Lu(),s1e=t0.freeMode,u1e=t0.rectMode,Kh=t0.drawMode,m_=t0.openMode,g_=t0.selectMode,QP=hs(),eF=zh(),iF=_y(),oF=rs().clearOutline,lF=fs(),d_=lF.handleEllipse,f1e=lF.readPaths,c1e=gy().newShapes,v1e=H5(),h1e=c_().activateLastSelection,By=Le(),d1e=By.sorterAsc,sF=h_(),Jh=Xp(),Ti=ca().getFromId,p1e=fy(),y1e=Py().redrawReglTraces,Hy=$P(),Go=Hy.MINSELECT,m1e=sF.filter,b_=sF.tester,x_=dy(),rF=x_.p2r,g1e=x_.axValue,b1e=x_.getTransform;function __(e){return e.subplot!==void 0}function x1e(e,r,t,a,n){var i=!__(a),o=s1e(n),l=u1e(n),s=m_(n),u=Kh(n),f=g_(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,x=y._zoomlayer,T=a.element.getBoundingClientRect(),_=a.plotinfo,b=b1e(_),w=r-T.left,k=t-T.top;y._calcInverseTransform(p);var M=By.apply3DTransform(y._invTransform)(w,k);w=M[0],k=M[1];var S=y._invScaleX,E=y._invScaleY,D=w,P=k,R="M"+w+","+k,I=a.xaxes[0],z=a.yaxes[0],B=I._length,G=z._length,Y=e.altKey&&!(Kh(n)&&s),V,H,Z,W,ee,oe,le;fF(e,p,a),o&&(V=m1e([[w,k]],Hy.BENDPX));var ue=x.selectAll("path.select-outline-"+_.id).data([1]),K=u?y.newshape:y.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var _e=u&&!s?K.fillcolor:"rgba(0,0,0,0)",fe=K.line.color||(i?Zh.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ue.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":i1e(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(Zh.stroke,fe).call(Zh.fill,_e).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",R+"Z");var ve=x.append("path").attr("class","zoombox-corners").style({fill:Zh.background,stroke:Zh.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ye=x.select(".label-temp");ye.empty()&&(ye=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ce=y._uid+Hy.SELECTID,j=[],Q=Uy(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ie=I._id,he=z._id;pF(p,ie,he,Q);for(var me=(p.layout||{}).selections||[],Re=[],De=!1,Ce=0;Ce=0){p._fullLayout._deactivateShape(p);return}if(!u){var me=y.clickmode;Jh.done(ce).then(function(){if(Jh.clear(ce),ie===2){for(ue.remove(),ee=0;ee-1&&uF(he,p,a.xaxes,a.yaxes,a.subplot,a,ue),me==="event"&&r0(p,void 0);o1e.click(p,he,_.id)}).catch(By.error)}},a.doneFn=function(){ve.remove(),Jh.done(ce).then(function(){Jh.clear(ce),!m&&W&&a.selectionDefs&&(W.subtract=Y,a.selectionDefs.push(W),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Z)),(m||u)&&Qh(a,m),a.doneFnCompleted&&a.doneFnCompleted(j),f&&r0(p,le)}).catch(By.error)}}function uF(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,y,m,x,T,_,b,w;if(M1e(l)){fF(e,r,i),v=Uy(r,t,a,n);var k=k1e(l,v),M=k.pointNumbers.length>0;if(M?S1e(v,k):q1e(v)&&(T=aF(k))){for(o&&o.remove(),w=0;w=0}function A1e(e){return e._fullLayout._activeSelectionIndex>=0}function Qh(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;T1e(n)&&n._fullLayout._deactivateShape(n),A1e(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Kh(t),s=g_(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=c1e(u,e)),f&&$h.call("_guiRelayout",n,{shapes:f});var c;s&&!__(e)&&(c=v1e(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,$h.call("_guiRelayout",n,{selections:c}).then(function(){r&&h1e(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function tF(e){return e._id}function Uy(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(tF),o=t.map(tF),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function S1e(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function e0(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var ie=nF(e,!0);if(ie.length){var he=ie[0].xref,me=ie[0].yref;if(he&&me){var Re=yF(ie),De=mF([Ti(e,he,"x"),Ti(e,me,"y")]);De(j,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:X&&r0(e,j),v._reselect=!1}if(!o&&v._deselect){var Ce=v._deselect;l=Ce.xref,s=Ce.yref,E1e(l,s,f)||pF(e,l,s,a),X&&(j.points.length?r0(e,j):A_(e)),v._deselect=!1}return{eventData:j,selectionTesters:t}}function L1e(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";xF.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var a0=N((WPe,_F)=>{"use strict";_F.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var Mc=N((XPe,AF)=>{"use strict";var wF=M_(),TF=ba(),Gy=_a(),N1e=wt().templatedArray,jPe=a0();AF.exports=N1e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:TF({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:wF.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:wF.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Gy.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Gy.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Gy.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Gy.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:TF({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var n0=N((ZPe,MF)=>{"use strict";MF.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Vy=N((JPe,kF)=>{"use strict";kF.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ai=N(($Pe,PF)=>{"use strict";var SF=no().axisHoverFormat,{hovertemplateAttrs:I1e,texttemplateAttrs:z1e,templatefallbackAttrs:qF}=Wn(),CF=Co(),O1e=ba(),LF=ci().dash,B1e=ci().pattern,H1e=Yr(),U1e=n0(),i0=bt().extendFlat,G1e=Vy();function EF(e){return{valType:"any",dflt:0,editType:"calc"}}function DF(e){return{valType:"any",editType:"calc"}}function RF(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}PF.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:EF("x"),yperiod:EF("y"),xperiod0:DF("x0"),yperiod0:DF("y0"),xperiodalignment:RF("x"),yperiodalignment:RF("y"),xhoverformat:SF("x"),yhoverformat:SF("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:z1e(),texttemplatefallback:qF({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:I1e({},{keys:U1e.eventDataKeys}),hovertemplatefallback:qF(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:i0({},LF,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:G1e(!0),fillgradient:i0({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:B1e,marker:i0({symbol:{valType:"enumerated",values:H1e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:i0({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:i0({},LF,{arrayOk:!0}),editType:"calc"},CF("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},CF("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:O1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var k_=N((QPe,IF)=>{"use strict";var FF=Mc(),NF=Ai().line,V1e=ci().dash,Yy=bt().extendFlat,Y1e=eo().overrideAll,W1e=wt().templatedArray,KPe=a0();IF.exports=Y1e(W1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Yy({},FF.xref,{}),yref:Yy({},FF.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:NF.color,width:Yy({},NF.width,{min:1,dflt:1}),dash:Yy({},V1e,{dflt:"dot"})}}),"arraydraw","from-root")});var HF=N((eFe,BF)=>{"use strict";var zF=Le(),Wy=zr(),j1e=io(),X1e=k_(),OF=hs();BF.exports=function(r,t){j1e(r,t,{name:"selections",handleItemDefaults:Z1e});for(var a=t.selections,n=0;n{"use strict";UF.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var o0=N((tFe,WF)=>{"use strict";var J1e=br(),VF=Le(),YF=ca();WF.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=J1e.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var jF=c_(),l0=bF();XF.exports={moduleType:"component",name:"selections",layoutAttributes:k_(),supplyLayoutDefaults:HF(),supplyDrawNewSelectionDefaults:GF(),includeBasePlot:o0()("selections"),draw:jF.draw,drawOne:jF.drawOne,reselect:l0.reselect,prepSelect:l0.prepSelect,clearOutline:l0.clearOutline,clearSelectionsCache:l0.clearSelectionsCache,selectOnClick:l0.selectOnClick}});var pN=N((nFe,dN)=>{"use strict";var E_=Sr(),Mi=Le(),ZF=Mi.numberFormat,$1e=Ln(),K1e=c5(),jy=br(),nN=Mi.strTranslate,Q1e=Ma(),JF=Tr(),ps=Yr(),eye=xn(),$F=zr(),rye=ss(),tye=mi(),iN=Lu(),Xy=iN.selectingOrDrawing,aye=iN.freeMode,nye=Ga().FROM_TL,iye=fy(),oye=Py().redrawReglTraces,lye=na(),q_=ca().getFromId,sye=Vo().prepSelect,uye=Vo().clearOutline,fye=Vo().selectOnClick,S_=a_(),D_=_a(),KF=D_.MINDRAG,_n=D_.MINZOOM,QF=!0;function cye(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,y,m,x,T,_,b,w,k,M,S,E,D,P,R,I,z,B,G,Y;t+=r.yaxis._shift;function V(){if(c=r.xaxis,v=r.yaxis,_=c._length,b=v._length,x=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var Te=r.overlays,qe=0;qe=0){Be._fullLayout._deactivateShape(Be);return}var Ze=Be._fullLayout.clickmode;if(L_(Be),Te===2&&!f&&Ge(),u)Ze.indexOf("select")>-1&&fye(qe,Be,y,m,r.id,W),Ze.indexOf("event")>-1&&eye.click(Be,qe,r.id);else if(Te===1&&f){var Ve=o?v:c,We=o==="s"||l==="w"?0:1,lr=Ve._name+".range["+We+"]",rr=vye(Ve,We),er="left",Ie="middle";if(Ve.fixedrange)return;o?(Ie=o==="n"?"top":"bottom",Ve.side==="right"&&(er="right")):l==="e"&&(er="right"),Be._context.showAxisRangeEntryBoxes&&E_.select(Z).call(Q1e.makeEditable,{gd:Be,immediate:!0,background:Be._fullLayout.paper_bgcolor,text:String(rr),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:er,verticalAlign:Ie}).on("edit",function(ne){var de=Ve.d2r(ne);de!==void 0&&jy.call("_guiRelayout",Be,lr,de)})}}tye.init(W);var le,ue,K,_e,fe,ve,ye,ce,j,Q;function X(Te,qe,Be){var Ze=Z.getBoundingClientRect();le=qe-Ze.left,ue=Be-Ze.top,e._fullLayout._calcInverseTransform(e);var Ve=Mi.apply3DTransform(e._fullLayout._invTransform)(le,ue);le=Ve[0],ue=Ve[1],K={l:le,r:le,w:0,t:ue,b:ue,h:0},_e=e._hmpixcount?e._hmlumcount/e._hmpixcount:$1e(e._fullLayout.plot_bgcolor).getLuminance(),fe="M0,0H"+_+"V"+b+"H0V0",ve=!1,ye="xy",Q=!1,ce=sN(s,_e,x,T,fe),j=uN(s,x,T)}function ie(Te,qe){if(e._transitioningWithDuration)return!1;var Be=Math.max(0,Math.min(_,G*Te+le)),Ze=Math.max(0,Math.min(b,Y*qe+ue)),Ve=Math.abs(Be-le),We=Math.abs(Ze-ue);K.l=Math.min(le,Be),K.r=Math.max(le,Be),K.t=Math.min(ue,Ze),K.b=Math.max(ue,Ze);function lr(){ye="",K.r=K.l,K.t=K.b,j.attr("d","M0,0Z")}if(w.isSubplotConstrained)Ve>_n||We>_n?(ye="xy",Ve/_>We/b?(We=Ve*b/_,ue>Ze?K.t=ue-We:K.b=ue+We):(Ve=We*_/b,le>Be?K.l=le-Ve:K.r=le+Ve),j.attr("d",Zy(K))):lr();else if(k.isSubplotConstrained)if(Ve>_n||We>_n){ye="xy";var rr=Math.min(K.l/_,(b-K.b)/b),er=Math.max(K.r/_,(b-K.t)/b);K.l=rr*_,K.r=er*_,K.b=(1-rr)*b,K.t=(1-er)*b,j.attr("d",Zy(K))}else lr();else!S||We0){var ne;if(k.isSubplotConstrained||!M&&S.length===1){for(ne=0;ne1&&(lr.maxallowed!==void 0&&D===(lr.range[0]1&&(rr.maxallowed!==void 0&&P===(rr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function dye(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function sN(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",nN(t,a)).attr("d",n+"Z")}function uN(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:JF.background,stroke:JF.defaultLine,"stroke-width":1,opacity:0}).attr("transform",nN(r,t)).attr("d","M0,0Z")}function fN(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),cN(e,r,n,i)}function cN(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function L_(e){E_.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function vN(e){QF&&e.data&&e._context.showTips&&(Mi.notifier(Mi._(e,"Double-click to zoom back out"),"long",e),QF=!1)}function pye(e,r){return"M"+(e.l-.5)+","+(r-_n-.5)+"h-3v"+(2*_n+1)+"h3ZM"+(e.r+.5)+","+(r-_n-.5)+"h3v"+(2*_n+1)+"h-3Z"}function yye(e,r){return"M"+(r-_n-.5)+","+(e.t-.5)+"v-3h"+(2*_n+1)+"v3ZM"+(r-_n-.5)+","+(e.b+.5)+"v3h"+(2*_n+1)+"v-3Z"}function Zy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,_n)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function tN(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var mye=Sr(),Jy=xn(),gye=mi(),bye=ss(),uo=pN().makeDragBox,Ca=_a().DRAGGERSIZE;$y.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){mye.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=uo(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Jy.hover(r,v,i)},Jy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,gye.unhover(r,v))},r._context.showAxisDragHandles&&(uo(r,o,l._offset-Ca,s._offset-Ca,Ca,Ca,"n","w"),uo(r,o,l._offset+l._length,s._offset-Ca,Ca,Ca,"n","e"),uo(r,o,l._offset-Ca,s._offset+s._length,Ca,Ca,"s","w"),uo(r,o,l._offset+l._length,s._offset+s._length,Ca,Ca,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Ca),uo(r,o,l._offset+l._length*.1,f,l._length*.8,Ca,"","ew"),uo(r,o,l._offset,f,l._length*.1,Ca,"","w"),uo(r,o,l._offset+l._length*.9,f,l._length*.1,Ca,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ca),uo(r,o,c,s._offset+s._length*.1,Ca,s._length*.8,"ns",""),uo(r,o,c,s._offset+s._length*.9,Ca,s._length*.1,"s",""),uo(r,o,c,s._offset,Ca,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Jy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Jy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},$y.updateFx(r)}};$y.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";bye(r._draggers,t)}});var gN=N((oFe,mN)=>{"use strict";var yN=br();mN.exports=function(r){for(var t=yN.layoutArrayContainers,a=yN.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var xye=Vl(),P_=Fp(),s0=nu(),_ye=Pb().sorterAsc,F_=br();u0.containerArrayMatch=gN();var wye=u0.isAddVal=function(r){return r==="add"||xye(r)},bN=u0.isRemoveVal=function(r){return r===null||r==="remove"};u0.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=F_.getComponentMethod(o,"supplyLayoutDefaults"),s=F_.getComponentMethod(o,"draw"),u=F_.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===P_||s===P_,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&s0.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(bN(d))t.set(null);else if(Array.isArray(d))t.set(d);else return s0.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(_ye),y=t.get(),m=y||[],x=i(v,o).get(),T=[],_=-1,b=m.length,w,k,M,S,E,D,P,R;for(w=0;wm.length-(P?0:1)){s0.warn("index out of range",o,M);continue}if(D!==void 0)E.length>1&&s0.warn("Insertion & removal are incompatible with edits to the same index.",o,M),bN(D)?T.push(M):P?(D==="add"&&(D={}),m.splice(M,0,D),x&&x.splice(M,0,{})):s0.warn("Unrecognized full object edit value",o,M,D),_===-1&&(_=M);else for(k=0;k=0;w--)m.splice(T[w],1),x&&x.splice(T[w],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(l(c,v),u!==P_){var I;if(_===-1)I=p;else{for(b=Math.max(m.length,b),I=[],w=0;w=_));w++)I.push(M);for(w=_;w{"use strict";var AN=Rr(),MN=br(),cn=Le(),f0=na(),kN=ca(),SN=Tr(),c0=kN.cleanId,Tye=kN.getFromTrace,N_=MN.traceIs,Aye=["x","y","z"];ki.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&cn.log("Clearing previous rejected promises from queue."),e._promises=[]};ki.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(f0.subplotsRegistry.cartesian||{}).attrRegex,n=(f0.subplotsRegistry.polar||{}).attrRegex,i=(f0.subplotsRegistry.ternary||{}).attrRegex,o=(f0.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),SN.clean(e),e.template&&e.template.layout&&ki.cleanLayout(e.template.layout),e};function kc(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=c0(a,n,!0))}ki.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}ki.hasParent=function(e,r){for(var t=TN(r);t;){if(t in e)return!0;t=TN(t)}return!1};ki.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>cn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;acn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?I_(n,i):!1))return!1}return!0}return!1};ki.collectionsAreEqual=I_});var G_=N(jr=>{"use strict";var rm=Sr(),Sye=Rr(),qye=Xb(),ir=Le(),Mt=ir.nestedProperty,B_=ph(),wn=lq(),Si=br(),sm=Kf(),_r=na(),vn=zr(),Cye=f5(),Lye=pi(),z_=Yr(),Eye=Tr(),Dye=R_().initInteractions,Rye=pl(),Pye=Vo().clearOutline,RN=au().dfltConfig,Qy=xN(),la=qN(),dt=Py(),ys=eo(),Fye=_a().AX_NAME_PATTERN,O_=0,CN=5;function Nye(e,r,t,a){var n;if(e=ir.getGraphDiv(e),B_.init(e),ir.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=B_.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!ir.isPlotDiv(e)&&ir.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return jr.addFrames(e,n)}FN(e,a),t||(t={}),rm.select(e).classed("js-plotly-plot",!0),z_.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(la.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=la.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(ime(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),z_.initGradients(e),z_.initPatterns(e),s&&vn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function NN(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),am(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&am(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Hye(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[P]!="string";)P--;var R=S.parts[P],I=S.parts[P-1]+"."+R,z=S.parts.slice(0,P).join("."),B=Mt(e.layout,z).get(),G=Mt(a,z).get(),Y=S.get();if(E!==void 0){x[M]=E,T[M]=R==="reverse"?E:wl(Y);var V=sm.getLayoutValObject(a,S.parts);if(V&&V.impliedEdits&&E!==null)for(var H in V.impliedEdits)_(ir.relativeAttr(M,H),V.impliedEdits[H]);if(["width","height"].indexOf(M)!==-1)if(E){_("autosize",null);var Z=M==="height"?"width":"height";_(Z,a[Z])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",E?null:a.width),_("height",E?null:a.height);else if(I.match(YN))k(I),Mt(a,z+"._inputRange").set(null);else if(I.match(WN)){k(I),Mt(a,z+"._inputRange").set(null);var W=Mt(a,z).get();W._inputDomain&&(W._input.domain=W._inputDomain.slice())}else I.match(Yye)&&Mt(a,z+"._inputDomain").set(null);if(R==="type"){w=B;var ee=G.type==="linear"&&E==="log",oe=G.type==="log"&&E==="linear";if(ee||oe){if(!w||!w.range)_(z+".autorange",!0);else if(G.autorange)ee&&(w.range=w.range[1]>w.range[0]?[1,2]:[2,1]);else{var le=w.range[0],ue=w.range[1];ee?(le<=0&&ue<=0&&_(z+".autorange",!0),le<=0?le=ue/1e6:ue<=0&&(ue=le/1e6),_(z+".range[0]",Math.log(le)/Math.LN10),_(z+".range[1]",Math.log(ue)/Math.LN10)):(_(z+".range[0]",Math.pow(10,le)),_(z+".range[1]",Math.pow(10,ue)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Si.getComponentMethod("annotations","convertCoords")(e,G,E,_),Si.getComponentMethod("images","convertCoords")(e,G,E,_)}else _(z+".autorange",!0),_(z+".range",null);Mt(a,z+"._inputRange").set(null)}else if(R.match(Fye)){var K=Mt(a,M).get(),_e=(E||{}).type;(!_e||_e==="-")&&(_e="linear"),Si.getComponentMethod("annotations","convertCoords")(e,K,_e,_),Si.getComponentMethod("images","convertCoords")(e,K,_e,_)}var fe=Qy.containerArrayMatch(M);if(fe){f=fe.array,c=fe.index;var ve=fe.property,ye=V||{editType:"calc"};c!==""&&ve===""&&(Qy.isAddVal(E)?T[M]=null:Qy.isRemoveVal(E)?T[M]=(Mt(t,f).get()||[])[c]:ir.warn("unrecognized full object value",r)),ys.update(m,ye),u[f]||(u[f]={});var ce=u[f][c];ce||(ce=u[f][c]={}),ce[ve]=E,delete r[M]}else R==="reverse"?(B.range?B.range.reverse():(_(z+".autorange",!0),B.range=[1,0]),G.autorange?m.calc=!0:m.plot=!0):(M==="dragmode"&&(E===!1&&Y!==!1||E!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(Y==="lasso"||Y==="select")?m.plot=!0:V?ys.update(m,V):m.calc=!0,S.set(E))}}for(f in u){var j=Qy.applyContainerArrayChanges(e,i(t,f),u[f],m,i);j||(m.plot=!0)}for(var Q in b){w=vn.getFromId(e,Q);var X=w&&w._constraintGroup;if(X){m.calc=!0;for(var ie in X)b[ie]||(vn.getFromId(e,ie)._constraintShrinkable=!0)}}(XN(e)||r.height||r.width)&&(m.plot=!0);var he=a.shapes;for(c=0;c1;)if(a.pop(),t=Mt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Xye(e,r){for(var t=0;t[z,e._ev.listeners(z)]);i=jr.newPlot(e,r,t,a).then(()=>{for(let[z,B]of I)B.forEach(G=>e.on(z,G));return jr.react(e,r,t,a)})}else{e.data=r||[],la.cleanData(e.data),e.layout=t||{},la.cleanLayout(e.layout),Jye(e.data,e.layout,l,s),_r.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,y=Qye(e,s,v,d,p),m=y.newDataRevision,x=Kye(e,l,c,d,p,m);if(XN(e)&&(y.layoutReplot=!0),x.calc||y.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),_=0;_(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function Kye(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=ys.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=sm.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var I=0;Ia._timeToNext&&p()};R()}var m=0;function x(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var T,_,b=[],w=r==null,k=Array.isArray(r),M=!w&&!k&&ir.isPlainObject(r);if(M)b.push({type:"object",data:x(ir.extendFlat({},r))});else if(w||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&DD)&&P.push(_);b=P}}b.length>0?v(b):(e.emit("plotly_animated"),u())})}function rme(e,r,t){if(e=ir.getGraphDiv(e),r==null)return Promise.resolve();if(!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(ir.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&O_S.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&ir.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=_r.modifyFrames,s=_r.modifyFrames,u=[e,o],f=[e,i];return wn&&wn.add(e,l,u,s,f),_r.modifyFrames(e,i)}function ame(e){e=ir.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),B_.purge(e),r._container&&r._container.remove(),delete e._context,e}function nme(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ir.equalDomRects(t,r._lastBBox)){var a=r._invTransform=ir.inverseTransformMatrix(ir.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function ime(e){var r=rm.select(e),t=e._fullLayout;if(t._calcInverseTransform=nme,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};rm.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=ir.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Rye.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}jr.animate=eme;jr.addFrames=rme;jr.deleteFrames=tme;jr.addTraces=HN;jr.deleteTraces=UN;jr.extendTraces=ON;jr.moveTraces=H_;jr.prependTraces=BN;jr.newPlot=Bye;jr._doPlot=Nye;jr.purge=ame;jr.react=$ye;jr.redraw=Oye;jr.relayout=v0;jr.restyle=nm;jr.setPlotConfig=Iye;jr.update=om;jr._guiRelayout=U_(v0);jr._guiRestyle=U_(nm);jr._guiUpdate=U_(om);jr._storeDirectGUIEdit=Vye});var Tl=N(Yo=>{"use strict";var ome=br();Yo.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Yo.getRedrawFunc=function(e){return function(){ome.getComponentMethod("colorbar","draw")(e)}};Yo.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Yo.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var ZN=window.URL||window.webkitURL;Yo.createObjectURL=function(e){return ZN.createObjectURL(e)};Yo.revokeObjectURL=function(e){return ZN.revokeObjectURL(e)};Yo.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=lme(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Yo.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function lme(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Y_=Sr(),cFe=Le(),sme=Yr(),ume=Tr(),vFe=pl(),V_=/"/g,Nu="TOBESTRIPPED",fme=new RegExp(`("${Nu})|(${Nu}")|("${Nu})|(${Nu}")`,"g"),cme=["&","&","&",""",""",""","'","'","'"],vme=["<","<","<"],hme=[">",">",">"];function dme(e){let r=Y_.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return cme.includes(n)?a:vme.includes(n)?"<":hme.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function pme(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}JN.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(sme.setRect,0,0,l,s).call(ume.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var yme=Le(),mme=uu().EventEmitter,d0=Tl();function gme(e){var r=e.emitter||new mme,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,x;l==="svg"||yme.isSafari()?x=d0.encodeSVG(o):(m=d0.createBlob(o,"svg"),x=d0.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var T;switch(m=null,d0.revokeObjectURL(x),l!=="svg"&&p.drawImage(y,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=x;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(T),e.promise||r.emit("success",T)},y.onerror=function(T){if(m=null,d0.revokeObjectURL(x),n(T),!e.promise)return r.emit("error",T)},y.src=x});return e.promise?t:r}$N.exports=gme});var j_=N((pFe,eI)=>{"use strict";var KN=Rr(),QN=G_(),bme=na(),Wo=Le(),p0=Tl(),xme=fm(),_me=cm(),wme=Kv().version,W_={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Tme(e,r){r=r||{};var t,a,n,i;Wo.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Wo.getGraphDiv(e),t=Wo.extendDeep([],e.data),a=Wo.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Wo.validate(r[k],W_[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Wo.join2(W_.format.values,", "," or ")+".");var l={};function s(k,M){return Wo.coerce(r,l,W_,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Wo.extendFlat({},a);f?m.width=f:r.width===null&&KN(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&KN(i.height)&&(m.height=i.height);var x=Wo.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=p0.getRedrawFunc(y);function _(){return new Promise(function(k){setTimeout(k,p0.getDelay(y._fullLayout))})}function b(){return new Promise(function(k,M){var S=xme(y,u,v),E=y._fullLayout.width,D=y._fullLayout.height;function P(){QN.purge(y),document.body.removeChild(y)}if(u==="full-json"){var R=bme.graphJson(y,!1,"keepdata","object",!0,!0);return R.version=wme,R=JSON.stringify(R),P(),k(p?R:p0.encodeJSON(R))}if(P(),u==="svg")return k(p?S:p0.encodeSVG(S));var I=document.createElement("canvas");I.id=Wo.randstr(),_me({format:u,width:E,height:D,scale:v,canvas:I,svg:S,promise:!0}).then(k).catch(M)})}function w(k){return p?k.replace(p0.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){QN.newPlot(y,t,m,x).then(T).then(_).then(b).then(function(S){k(w(S))}).catch(function(S){M(S)})})}eI.exports=Tme});var aI=N((yFe,tI)=>{"use strict";var qi=Le(),Ame=na(),Mme=Kf(),kme=au().dfltConfig,fo=qi.isPlainObject,zu=Array.isArray,X_=qi.isArrayOrTypedArray;tI.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Mme.get(),n=[],i={_context:qi.extendFlat({},kme)},o,l;zu(r)?(i.data=qi.extendDeep([],r),o=r):(i.data=[],o=[],n.push(La("array","data"))),fo(t)?(i.layout=qi.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(La("object","layout"))),Ame.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(La("unused",n,u.concat(c.length)));var x=c.length,T=Array.isArray(m);T&&(x=Math.min(x,m.length));var _,b,w,k,M;if(v.dimensions===2)for(b=0;bc[b].length&&a.push(La("unused",n,u.concat(b,c[b].length)));var S=c[b].length;for(_=0;_<(T?Math.min(S,m[b].length):S);_++)w=T?m[b][_]:m,k=f[b][_],M=c[b][_],qi.validate(k,w)?M!==k&&M!==+k&&a.push(La("dynamic",n,u.concat(b,_),k,M)):a.push(La("value",n,u.concat(b,_),k))}else a.push(La("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var Rme=Le(),hm=Tl();function Pme(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=hm.createBlob(e,t),u=hm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),hm.revokeObjectURL(u),s=null,o(r);if(Rme.isSafari()){var f=t==="svg"?",":";base64,";return hm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}nI.exports=Pme});var Z_=N((bFe,lI)=>{"use strict";var oI=Le(),Fme=j_(),Nme=iI(),gFe=Tl();function Ime(e,r){var t;return oI.isPlainObject(e)||(t=oI.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Fme(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),Nme(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}lI.exports=Ime});var vI=N(J_=>{"use strict";var On=Le(),Bn=On.isPlainObject,sI=Kf(),uI=na(),zme=gn(),fI=wt(),cI=au().dfltConfig;J_.makeTemplate=function(e){e=On.isPlainObject(e)?e:On.getGraphDiv(e),e=On.extendDeep({_context:cI},{data:e.data,layout:e.layout}),uI.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};y0(d,p,Bme.bind(null,d));var y=On.coerce(d,{},zme,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),y0(t,a.layout,Ome.bind(null,t)),delete a.layout.template;var n=t.template;if(Bn(n)){var i=n.layout,o,l,s,u,f,c;Bn(i)&&dm(i,a.layout);var v=n.data;if(Bn(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ox?o.push({code:"unused",traceType:d,templateCount:m,dataCount:x}):x>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:x})}}function T(_,b){for(var w in _)if(w.charAt(0)!=="_"){var k=_[w],M=Ci(_,w,b);Bn(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&Hme(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(Ume)};function Hme(e){for(var r=0;r{"use strict";var wa=G_();Dt._doPlot=wa._doPlot;Dt.newPlot=wa.newPlot;Dt.restyle=wa.restyle;Dt.relayout=wa.relayout;Dt.redraw=wa.redraw;Dt.update=wa.update;Dt._guiRestyle=wa._guiRestyle;Dt._guiRelayout=wa._guiRelayout;Dt._guiUpdate=wa._guiUpdate;Dt._storeDirectGUIEdit=wa._storeDirectGUIEdit;Dt.react=wa.react;Dt.extendTraces=wa.extendTraces;Dt.prependTraces=wa.prependTraces;Dt.addTraces=wa.addTraces;Dt.deleteTraces=wa.deleteTraces;Dt.moveTraces=wa.moveTraces;Dt.purge=wa.purge;Dt.addFrames=wa.addFrames;Dt.deleteFrames=wa.deleteFrames;Dt.animate=wa.animate;Dt.setPlotConfig=wa.setPlotConfig;var Gme=lh().getGraphDiv,Vme=ky().eraseActiveShape;Dt.deleteActiveShape=function(e){return Vme(Gme(e))};Dt.toImage=j_();Dt.validate=aI();Dt.downloadImage=Z_();var hI=vI();Dt.makeTemplate=hI.makeTemplate;Dt.validateTemplate=hI.validateTemplate});var K_=N((wFe,pI)=>{"use strict";var $_=Le(),Yme=br();pI.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Yme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=$_.minRowLength(i);o?l=Math.min(u,$_.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=$_.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var Sc=N((TFe,gI)=>{"use strict";var yI=Le().dateTick0,Wme=Ft(),jme=Wme.ONEWEEK;function mI(e,r){return e%jme===0?yI(r,1):yI(r,0)}gI.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",mI(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",mI(l,t.ycalendar)),n("yperiodalignment"))}}});var _I=N((AFe,xI)=>{"use strict";var bI=["orientation","groupnorm","stackgaps"];xI.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var wI=Tr(),TI=Xn().hasColorscale,AI=ml(),Xme=Nn();MI.exports=function(r,t,a,n,i,o={}){var l=Xme.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),TI(r,"marker")&&AI(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=wI.background:u=wI.defaultLine,i("marker.line.color",u),TI(r,"marker.line")&&AI(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var e4=N((kFe,kI)=>{"use strict";var Zme=Le().isArrayOrTypedArray,Jme=Xn().hasColorscale,$me=ml();kI.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),Jme(r,"line"))$me(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Zme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var r4=N((SFe,SI)=>{"use strict";SI.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var t4=N((qFe,qI)=>{"use strict";var Kme=Le();qI.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Kme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var a4=N((CFe,LI)=>{"use strict";var ym=Tr(),CI=Le().isArrayOrTypedArray;function Qme(e){for(var r=ym.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var EI=Le(),ege=br(),rge=Ai(),tge=n0(),qc=Nn(),age=K_(),nge=Sc(),ige=_I(),oge=Q_(),lge=e4(),DI=r4(),sge=t4(),uge=a4(),fge=Le().coercePattern;RI.exports=function(r,t,a,n){function i(d,p){return EI.coerce(r,t,rge,d,p)}var o=age(r,t,n,i);if(o||(t.visible=!1),!!t.visible){nge(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=ige(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var cge=Fu().getAxisGroup;FI.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=cge(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var II=N((DFe,NI)=>{"use strict";var vge=Le(),hge=m0(),dge=Ai();NI.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return vge.coerce(n._input,n,dge,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var OI=N((RFe,zI)=>{"use strict";var pge=Le(),yge=i1();zI.exports=function(e,r){function t(n,i){return pge.coerce(e,r,yge,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Cc=N((PFe,HI)=>{"use strict";var mge=Rr(),BI=Le(),gge=BI.dateTime2ms,mm=BI.incrementMonth,bge=Ft(),xge=bge.ONEAVGMONTH;HI.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(mge(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=gge(v,u)||0,p=[],y=[],m=[],x=n.length,T=0;T_;)k=mm(k,-l,u);for(;k<=_;)k=mm(k,l,u);w=mm(k,-l,u)}else{for(b=Math.round((_-d)/o),k=d+b*o;k>_;)k-=o;for(;k<=_;)k+=o;w=k-o}p[T]=f?w:c?k:(w+k)/2,y[T]=w,m[T]=k}return{vals:p,starts:y,ends:m}}});var o4=N((FFe,GI)=>{"use strict";var n4=Xn().hasColorscale,i4=tc(),UI=Nn();GI.exports=function(r,t){UI.hasLines(t)&&n4(t,"line")&&i4(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),UI.hasMarkers(t)&&(n4(t,"marker")&&i4(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),n4(t,"marker.line")&&i4(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var gm=N((NFe,VI)=>{"use strict";var Ut=Le();VI.exports=function(r,t){for(var a=0;a{"use strict";var YI=Le();WI.exports=function(r,t){YI.isArrayOrTypedArray(t.selectedpoints)&&YI.tagSelected(r,t)}});var xm=N((zFe,QI)=>{"use strict";var jI=Rr(),s4=Le(),g0=zr(),XI=Cc(),l4=Ft().BADNUM,u4=Nn(),_ge=o4(),wge=gm(),Tge=bm();function Age(e,r){var t=e._fullLayout,a=r._xA=g0.getFromId(e,r.xaxis||"x","x"),n=r._yA=g0.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=XI(r,a,"x",i),s=XI(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=f4(r,t,a,n),y=!1,m,x,T,_,b,w;$I(t,r);var k="x",M="y",S;if(p)s4.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(M="s",S="x"):(k="s",S="y"),b=p.stackgaps==="interpolate";else{var E=JI(r,c);ZI(e,r,a,n,u,f,E)}var D=!!r.xperiodalignment,P=!!r.yperiodalignment;for(x=0;xx&&v[_].gap;)_--;for(w=v[_].s,T=v.length-1;T>_;T--)v[T].s=w;for(;x<_;)if(x++,v[x].gap){for(T=x+1;v[T].gap;)T++;for(var B=v[x-1][S],G=v[x-1].s,Y=(v[T].s-G)/(v[T][S]-B);x{"use strict";ez.exports=_m;var Mge=Le().distinctVals;function _m(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";tz.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Tm=N((HFe,oz)=>{"use strict";var Li=Rr(),{isArrayOrTypedArray:Al}=Le(),{BADNUM:Lc}=Ft(),kge=br(),x0=zr(),{getAxisGroup:Sge}=Fu(),wm=rz(),{TEXTPAD:qge}=b0(),{LINE_SPACING:Cge}=Ga(),{BR_TAG_ALL:Lge}=Ma();function Ege(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!Li(l))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*Cge*t+qge;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function Hge(e,r,t,a){for(var n=Ec(a),i=0;i{"use strict";var lz=xm(),sz=Tm().setGroupPositions;function Gge(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uE[f]&&f{"use strict";var Yge=Yr(),dz=Ft(),_0=dz.BADNUM,pz=dz.LOG_CLIP,cz=pz+.5,vz=pz-.5,Am=Le(),Wge=Am.segmentsIntersect,hz=Am.constrain,m4=n0();yz.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",x=[],T=m4.minTolerance,_=r.length,b=new Array(_),w=0,k,M,S,E,D,P,R,I,z,B,G,Y,V,H,Z,W;function ee(Ie){var ne=r[Ie];if(!ne)return!1;var de=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Pe=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(de===_0){if(o&&(de=n.c2p(ne.x,!0)),de===_0)return!1;l&&Pe===_0&&(de*=Math.abs(n._m*u*(n._m>0?cz:vz)/(i._m*s*(i._m>0?cz:vz)))),de*=1e3}if(Pe===_0){if(l&&(Pe=i.c2p(ne.y,!0)),Pe===_0)return!1;Pe*=1e3}return[de,Pe]}function oe(Ie,ne,de,Pe){var Fe=de-Ie,Ke=Pe-ne,cr=.5-Ie,ur=.5-ne,Mr=Fe*Fe+Ke*Ke,Ir=Fe*cr+Ke*ur;if(Ir>0&&Ir1||Math.abs(cr.y-de[0][1])>1)&&(cr=[cr.x,cr.y],Pe&&_e(cr,Ie)<_e(de[0],Ie)?de.unshift(cr):de.push(cr),Pe++)}return de}function He(Ie){if(Ie[0]ye||Ie[1]j)return[hz(Ie[0],ve,ye),hz(Ie[1],ce,j)]}function Oe(Ie,ne){if(Ie[0]===ne[0]&&(Ie[0]===ve||Ie[0]===ye)||Ie[1]===ne[1]&&(Ie[1]===ce||Ie[1]===j))return!0}function Ue(Ie,ne){var de=[],Pe=He(Ie),Fe=He(ne);return Pe&&Fe&&Oe(Pe,Fe)||(Pe&&de.push(Pe),Fe&&de.push(Fe)),de}function Ee(Ie,ne,de){return function(Pe,Fe){var Ke=He(Pe),cr=He(Fe),ur=[];if(Ke&&cr&&Oe(Ke,cr))return ur;Ke&&ur.push(Ke),cr&&ur.push(cr);var Mr=2*Am.constrain((Pe[Ie]+Fe[Ie])/2,ne,de)-((Ke||Pe)[Ie]+(cr||Fe)[Ie]);if(Mr){var Ir;Ke&&cr?Ir=Mr>0==Ke[Ie]>cr[Ie]?Ke:cr:Ir=Ke||cr,Ir[Ie]+=Mr}return ur}}var ze;p==="linear"||p==="spline"?ze=Ce:p==="hv"||p==="vh"?ze=Ue:p==="hvh"?ze=Ee(0,ve,ye):p==="vhv"&&(ze=Ee(1,ce,j));function Ge(Ie,ne){var de=ne[0]-Ie[0],Pe=(ne[1]-Ie[1])/de,Fe=(Ie[1]*ne[0]-ne[1]*Ie[0])/de;return Fe>0?[Pe>0?ve:ye,j]:[Pe>0?ye:ve,ce]}function se(Ie){var ne=Ie[0],de=Ie[1],Pe=ne===b[w-1][0],Fe=de===b[w-1][1];if(!(Pe&&Fe))if(w>1){var Ke=ne===b[w-2][0],cr=de===b[w-2][1];Pe&&(ne===ve||ne===ye)&&Ke?cr?w--:b[w-1]=Ie:Fe&&(de===ce||de===j)&&cr?Ke?w--:b[w-1]=Ie:b[w++]=Ie}else b[w++]=Ie}function Ae(Ie){b[w-1][0]!==Ie[0]&&b[w-1][1]!==Ie[1]&&se([he,me]),se(Ie),Re=null,he=me=0}var Je=Am.isArrayOrTypedArray(c);function dr(Ie){if(Ie&&f&&(Ie.i=k,Ie.d=r,Ie.trace=a,Ie.marker=Je?c[Ie.i]:c,Ie.backoff=f),le=Ie[0]/s,ue=Ie[1]/u,X=Ie[0]ye?ye:0,ie=Ie[1]j?j:0,X||ie){if(!w)b[w++]=[X||Ie[0],ie||Ie[1]];else if(Re){var ne=ze(Re,Ie);ne.length>1&&(Ae(ne[0]),b[w++]=ne[1])}else De=ze(b[w-1],Ie)[0],b[w++]=De;var de=b[w-1];X&&ie&&(de[0]!==X||de[1]!==ie)?(Re&&(he!==X&&me!==ie?se(he&&me?Ge(Re,Ie):[he||X,me||ie]):he&&me&&se([he,me])),se([X,ie])):he-X&&me-ie&&se([X||he,ie||me]),Re=Ie,he=X,me=ie}else Re&&Ae(ze(Re,Ie)[0]),b[w++]=Ie}for(k=0;k<_;k++)if(M=ee(k),!!M){for(w=0,Re=null,dr(M),k++;k<_;k++){if(E=ee(k),!E){if(v)continue;break}if(!y||!t.simplify){dr(E);continue}var Ne=ee(k+1);if(B=_e(E,M),!(!(m&&(w===0||w===_-1))&&BK(P,Ne))break;S=P,V=z[0]*I[0]+z[1]*I[1],V>G?(G=V,E=P,R=!1):V=r.length||!P)break;dr(P),M=P}}Re&&se([he||Re[0],me||Re[1]]),x.push(b.slice(0,w))}var Te=p.slice(p.length-1);if(f&&Te!=="h"&&Te!=="v"){for(var qe=!1,Be=-1,Ze=[],Ve=0;Ve{"use strict";var mz={tonextx:1,tonexty:1,tonext:1};gz.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var co=Sr(),jge=br(),w0=Le(),Dc=w0.ensureSingle,_z=w0.identity,jt=Yr(),Rc=Nn(),Xge=g4(),Zge=bz(),Mm=h_().tester;wz.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Zge(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Jge(r,l,t),f){o&&(s=o());var v=co.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){xz(r,p,t,d,c,this,i)})})}else l.each(function(d,p){xz(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Jge(e,r,t){r.each(function(a){var n=Dc(co.select(this),"g","fills");jt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,_z);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Dc(co.select(this),"path","js-fill")})})}function xz(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;$ge(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Ee){return u?Ee.transition():Ee}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=co.select(i),m=Dc(y,"g","errorbars"),x=Dc(y,"g","lines"),T=Dc(y,"g","points"),_=Dc(y,"g","text");if(jge.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;f(y).style("opacity",d.opacity);var b,w,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,S;k==="y"?(M=1,S=v.c2p(0,!0)):k==="x"&&(M=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var E="",D=[],P=d._prevtrace,R=null,I=null;P&&(E=P._prevRevpath||"",w=P._nextFill,D=P._ownPolygons,R=P._fillsegments,I=P._fillElement);var z,B,G="",Y="",V,H,Z,W,ee,oe,le=[];d._polygons=[];var ue=[],K=[],_e=w0.noop;if(b=d._ownFill,Rc.hasLines(d)||d.fill!=="none"){w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=jt.steps(p.shape),H=jt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=H=function(Ee){var ze=Ee[Ee.length-1];return Ee.length>1&&Ee[0][0]===ze[0]&&Ee[0][1]===ze[1]?jt.smoothclosed(Ee.slice(1),p.smoothing):jt.smoothopen(Ee,p.smoothing)}:V=H=function(Ee){return"M"+Ee.join("L")},Z=function(Ee){return H(Ee.reverse())},K=Xge(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),ue=new Array(K.length);var fe=0;for(s=0;s=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var x=y[0].trace;Rc.hasMarkers(x)&&x.marker.maxdisplayed>0&&m{"use strict";Tz.exports={container:"marker",min:"cmin",max:"cmax"}});var x4=N((jFe,Az)=>{"use strict";var km=zr();Az.exports=function(r,t,a){var n={},i={_fullLayout:a},o=km.getFromTrace(i,t,"x"),l=km.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=km.tickText(o,o.c2l(s),!0).text,n.yLabel=km.tickText(l,l.c2l(u),!0).text,n}});var Ou=N((XFe,Mz)=>{"use strict";var _4=Sr(),Pc=Yr(),Kge=br();function Qge(e){var r=_4.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=_4.select(this),n=t.trace||t[0].trace;w4(a,n,e)}),r.selectAll("g.text").each(function(t){var a=_4.select(this),n=t.trace||t[0].trace;T4(a,n,e)}),r.selectAll("g.trace path.js-line").call(Pc.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Pc.fillGroupStyle,e,!1),Kge.getComponentMethod("errorbars","style")(r)}function w4(e,r,t){Pc.pointStyle(e.selectAll("path.point"),r,t)}function T4(e,r,t){Pc.textPointStyle(e.selectAll("text"),r,t)}function e2e(e,r,t){var a=r[0].trace;a.selectedpoints?(Pc.selectedPointStyle(t.selectAll("path.point"),a),Pc.selectedTextStyle(t.selectAll("text"),a)):(w4(t,a,e),T4(t,a,e))}Mz.exports={style:Qge,stylePoints:w4,styleText:T4,styleOnSelect:e2e}});var Sz=N((ZFe,kz)=>{"use strict";var Fc=Tr(),r2e=Nn();kz.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Fc.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Fc.opacity(i)?i:o&&Fc.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Fc.opacity(n)<.3?Fc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Fc.opacity(a)&&r2e.hasLines(r)&&r.line.width?a:r.fillcolor)}});var M4=N((JFe,Cz)=>{"use strict";var Sm=Le(),qz=xn(),t2e=br(),a2e=Sz(),A4=Tr(),n2e=Sm.fillText;Cz.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(Y){if(p){var V=l.c2p(Y.xStart),H=l.c2p(Y.xEnd);return u>=Math.min(V,H)&&u<=Math.max(V,H)?0:1/0}var Z=Math.max(3,Y.mrc||0),W=1-1/Z,ee=Math.abs(l.c2p(Y.x)-u);return ee=Math.min(V,H)&&f<=Math.max(V,H)?0:1/0}var Z=Math.max(3,Y.mrc||0),W=1-1/Z,ee=Math.abs(s.c2p(Y.y)-f);return eele!=j>=le&&(ve=_e[K-1][0],ye=_e[K][0],j-ce&&(fe=ve+(ye-ve)*(le-ce)/(j-ce),Z=Math.min(Z,fe),W=Math.max(W,fe)));return Z=Math.max(Z,0),W=Math.min(W,l._length),{x0:Z,x1:W,y0:le,y1:le}}if(v.indexOf("fills")!==-1&&o._fillElement){var z=R(o._fillElement)&&!R(o._fillExclusionElement);if(z){var B=I(o._polygons);B===null&&(B={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var G=A4.defaultLine;return A4.opacity(o.fillcolor)?G=o.fillcolor:A4.opacity((o.line||{}).color)&&(G=o.line.color),Sm.extendFlat(r,{distance:r.maxHoverDistance,x0:B.x0,x1:B.x1,y0:B.y0,y1:B.y1,color:G,hovertemplate:!1}),delete r.index,o.text&&!Sm.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var k4=N(($Fe,Ez)=>{"use strict";var Lz=Nn();Ez.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=!Lz.hasMarkers(l)&&!Lz.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";Dz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Iz=N((QFe,Nz)=>{"use strict";var A0=br().traceIs,S4=N1();Nz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(i2e(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function i2e(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=o2e(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!A0(i,"cartesian")||A0(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,Fz(i,a)){var u=Pz(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(Fz(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function Pz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Fz(e,r){var t=Pz(e),a=A0(e,"box-violin"),n=A0(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var Oz=N((eNe,zz)=>{"use strict";var l2e=Cn().isTypedArraySpec;function s2e(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||l2e(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=s2e(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var q4=N((rNe,Hz)=>{"use strict";var Bz=Ln().mix,u2e=fi(),f2e=Le();Hz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(S,E){return f2e.coerce2(r,t,n.attributes,S,E)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=Bz(i,n.bgColor,n.blend||u2e.lightFraction).toRgbString(),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=Bz(t.gridcolor,n.bgColor,67).toRgbString(),m=o("minor.gridcolor",y),x=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!m||!!x||!!T);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),w=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!w||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var L4=N((tNe,jz)=>{"use strict";var Uz=Rr(),c2e=br(),M0=Le(),v2e=wt(),h2e=io(),C4=pi(),Gz=y1(),Vz=m1(),d2e=b1(),p2e=x1(),y2e=Oz(),m2e=q4(),g2e=f5(),Yz=uc(),qm=_a().WEEKDAY_PATTERN,b2e=_a().HOUR_PATTERN;jz.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=c2e.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=M0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),Yz(t,i),g2e(r,t,a,n),y2e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==C4.color.dflt?y:l.color,x=s.label||i._dfltTitle[o];if(p2e(r,t,a,c,n),!u)return t;a("title.text",x),M0.coerceFont(a,"title.font",l,{overrideDflt:{size:M0.bigFont(l.size),color:m}}),Gz(r,t,a,c);var T=n.hasMinor;if(T&&(v2e.newContainer(t,"minor"),Gz(r,t,a,c,{isMinor:!0})),d2e(r,t,a,c,n),Vz(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,Vz(r,t,a,n),n.isMinor=_}m2e(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:C4}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var w=a("showdividers");w&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(h2e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:x2e}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=Wz(i[l]),s){o=qm;break}}var u=a("pattern",o);if(u===qm)for(l=0;l<2;l++)s=Wz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case qm:if(!Uz(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case b2e:if(!Uz(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var w2e=Rr(),Cm=Le();Xz.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,y;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(w2e(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=Cm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=Cm.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var T=a("autoshift");T&&(d=x==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var _=!1;if(o.length&&(_=Cm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),Cm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var aO=N((nNe,tO)=>{"use strict";var Bu=Le(),Zz=Tr(),T2e=Eo().isUnifiedHover,A2e=I5(),Jz=wt(),M2e=Hf(),$z=pi(),k2e=Iz(),Kz=L4(),S2e=Fu(),Qz=E4(),R4=ca(),jo=R4.id2name,eO=R4.name2id,q2e=_a().AX_ID_PATTERN,rO=br(),Lm=rO.traceIs,D4=rO.getComponentMethod;function Em(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}tO.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},y,m;for(y=0;y{"use strict";var C2e=Sr(),nO=br(),Dm=Le(),ei=Yr(),Rm=zr();iO.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Rm.redrawComponents(r);return}function o(m){var x=m.xaxis,T=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(ei.setTranslate,0,0).call(ei.setScale,1,1),m.plot.call(ei.setTranslate,x._offset,T._offset).call(ei.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(ei.setPointGroupScale,1,1),_.selectAll(".textpoint").call(ei.setTextPointsScale,1,1),_.call(ei.hideOutsideRangePoints,m)}function l(m,x){var T=m.plotinfo,_=T.xaxis,b=T.yaxis,w=_._length,k=b._length,M=!!m.xr1,S=!!m.yr1,E=[];if(M){var D=Dm.simpleMap(m.xr0,_.r2l),P=Dm.simpleMap(m.xr1,_.r2l),R=D[1]-D[0],I=P[1]-P[0];E[0]=(D[0]*(1-x)+x*P[0]-D[0])/(D[1]-D[0])*w,E[2]=w*(1-x+x*I/R),_.range[0]=_.l2r(D[0]*(1-x)+x*P[0]),_.range[1]=_.l2r(D[1]*(1-x)+x*P[1])}else E[0]=0,E[2]=w;if(S){var z=Dm.simpleMap(m.yr0,b.r2l),B=Dm.simpleMap(m.yr1,b.r2l),G=z[1]-z[0],Y=B[1]-B[0];E[1]=(z[1]*(1-x)+x*B[1]-z[1])/(z[0]-z[1])*k,E[3]=k*(1-x+x*Y/G),b.range[0]=_.l2r(z[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(z[1]*(1-x)+x*B[1])}else E[1]=0,E[3]=k;Rm.drawOne(r,_,{skipTitle:!0}),Rm.drawOne(r,b,{skipTitle:!0}),Rm.redrawComponents(r,[_._id,b._id]);var V=M?w/E[2]:1,H=S?k/E[3]:1,Z=M?E[0]:0,W=S?E[1]:0,ee=M?E[0]/E[2]*w:0,oe=S?E[1]/E[3]*k:0,le=_._offset-ee,ue=b._offset-oe;T.clipRect.call(ei.setTranslate,Z,W).call(ei.setScale,1/V,1/H),T.plot.call(ei.setTranslate,le,ue).call(ei.setScale,V,H),ei.setPointGroupScale(T.zoomScalePts,1/V,1/H),ei.setTextPointsScale(T.zoomScaleTxt,1/V,1/H)}var s;n&&(s=n());function u(){for(var m={},x=0;xa.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var Ei=N(Qa=>{"use strict";var Fm=Sr(),lO=br(),Hu=Le(),L2e=na(),E2e=Yr(),sO=s1().getModuleCalcData,ms=ca(),vo=_a(),D2e=pl(),rt=Hu.ensureSingle;function Pm(e,r,t){return Hu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Uu=vo.zindexSeparator;Qa.name="cartesian";Qa.attr=["xaxis","yaxis"];Qa.idRoot=["x","y"];Qa.idRegex=vo.idRegex;Qa.attrRegex=vo.attrRegex;Qa.attributes=Rz();Qa.layoutAttributes=pi();Qa.supplyLayoutDefaults=aO();Qa.transitionAxes=oO();Qa.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(Uu)!==-1)continue;d+=Uu+(u+1),v=Hu.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(w+=Uu+b),_.push(l+w),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=rt(a,"path","xlines-above"),r.ylines=rt(a,"path","ylines-above"),r.xaxislayer=rt(a,"g","xaxislayer-above"),r.yaxislayer=rt(a,"g","yaxislayer-above");else{if(!o){var v=rt(a,"g","layer-subplot");r.shapelayer=rt(v,"g","shapelayer"),r.imagelayer=rt(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=rt(a,"g","minor-gridlayer"),r.gridlayer=rt(a,"g","gridlayer"),r.zerolinelayer=rt(a,"g","zerolinelayer"));var d=rt(a,"g","layer-between");r.shapelayerBetween=rt(d,"g","shapelayer"),r.imagelayerBetween=rt(d,"g","imagelayer"),rt(a,"path","xlines-below"),rt(a,"path","ylines-below"),r.overlinesBelow=rt(a,"g","overlines-below"),rt(a,"g","xaxislayer-below"),rt(a,"g","yaxislayer-below"),r.overaxesBelow=rt(a,"g","overaxes-below")}r.overplot=rt(a,"g","overplot"),r.plot=rt(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=rt(a,"g","zerolinelayer-above"),o||(r.xlines=rt(a,"path","xlines-above"),r.ylines=rt(a,"path","ylines-above"),r.overlinesAbove=rt(a,"g","overlines-above"),rt(a,"g","xaxislayer-above"),rt(a,"g","yaxislayer-above"),r.overaxesAbove=rt(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,rt(c.overlinesBelow,"path",y),rt(c.overlinesBelow,"path",m),rt(c.overaxesBelow,"g",y),rt(c.overaxesBelow,"g",m),r.plot=rt(c.overplot,"g",n),rt(c.overlinesAbove,"path",y),rt(c.overlinesAbove,"path",m),rt(c.overaxesAbove,"g",y),rt(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(u||(Pm(r.minorGridlayer,"g",r.xaxis._id),Pm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(ms.idSort),Pm(r.gridlayer,"g",r.xaxis._id),Pm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(ms.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function cO(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Fm.select(this);f.remove(),vO(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Nm=Nn();hO.exports={hasLines:Nm.hasLines,hasMarkers:Nm.hasMarkers,hasText:Nm.hasText,isBubble:Nm.isBubble,attributes:Ai(),layoutAttributes:i1(),supplyDefaults:PI(),crossTraceDefaults:II(),supplyLayoutDefaults:OI(),calc:xm().calc,crossTraceCalc:fz(),arraysToCalcdata:gm(),plot:b4(),colorbar:T0(),formatLabels:x4(),style:Ou().style,styleOnSelect:Ou().styleOnSelect,hoverPoints:M4(),selectPoints:k4(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ei(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var mO=N((sNe,yO)=>{"use strict";var P2e=Sr(),F2e=Tr(),pO=M_(),P4=Le(),N2e=P4.strScale,I2e=P4.strRotate,z2e=P4.strTranslate;yO.exports=function(r,t,a){var n=r.node(),i=pO[a.arrowhead||0],o=pO[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=d.x-p.x,T=d.y-p.y;if(y=Math.atan2(T,x),m=y+Math.PI,c&&v&&c+v>Math.sqrt(x*x+T*T)){z();return}if(c){if(c*c>x*x+T*T){z();return}var _=c*Math.cos(y),b=c*Math.sin(y);p.x+=_,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>x*x+T*T){z();return}var w=v*Math.cos(y),k=v*Math.sin(y);d.x-=w,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),S="";if(M{"use strict";var gO=Sr(),F4=br(),O2e=na(),bs=Le(),N4=bs.strTranslate,S0=zr(),Gu=Tr(),Ml=Yr(),bO=xn(),I4=Ma(),z4=ss(),k0=mi(),B2e=wt().arrayEditor,H2e=mO();wO.exports={draw:U2e,drawOne:xO,drawRaw:_O};function U2e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Fe="right":Fe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Fe]}for(var ce=!1,j=["x","y"],Q=0;Q1)&&(he===ie?(Ne=me.r2fraction(r["a"+X]),(Ne<0||Ne>1)&&(ce=!0)):ce=!0),ze=me._offset+me.r2p(r[X]),Ae=.5}else{var Te=dr==="domain";X==="x"?(se=r[X],ze=Te?me._offset+me._length*se:ze=l.l+l.w*se):(se=1-r[X],ze=Te?me._offset+me._length*se:ze=l.t+l.h*se),Ae=r.showarrow?.5:se}if(r.showarrow){Ee.head=ze;var qe=r["a"+X];if(Je=De*ye(.5,r.xanchor)-Ce*ye(.5,r.yanchor),he===ie){var Be=S0.getRefType(he);Be==="domain"?(X==="y"&&(qe=1-qe),Ee.tail=me._offset+me._length*qe):Be==="paper"?X==="y"?(qe=1-qe,Ee.tail=l.t+l.h*qe):Ee.tail=l.l+l.w*qe:Ee.tail=me._offset+me.r2p(qe),Ge=Je}else Ee.tail=ze+qe,Ge=Je+qe;Ee.text=Ee.tail+Je;var Ze=o[X==="x"?"width":"height"];if(ie==="paper"&&(Ee.head=bs.constrain(Ee.head,1,Ze-1)),he==="pixel"){var Ve=-Math.max(Ee.tail-3,Ee.text),We=Math.min(Ee.tail+3,Ee.text)-Ze;Ve>0?(Ee.tail+=Ve,Ee.text+=Ve):We>0&&(Ee.tail-=We,Ee.text-=We)}Ee.tail+=Ue,Ee.head+=Ue}else Je=He*ye(Ae,Oe),Ge=Je,Ee.text=ze+Je;Ee.text+=Ue,Je+=Ue,Ge+=Ue,r["_"+X+"padplus"]=He/2+Ge,r["_"+X+"padminus"]=He/2-Ge,r["_"+X+"size"]=He,r["_"+X+"shift"]=Je}if(ce){M.remove();return}var lr=0,rr=0;if(r.align!=="left"&&(lr=(K-le)*(r.align==="center"?.5:1)),r.valign!=="top"&&(rr=(_e-ue)*(r.valign==="middle"?.5:1)),ee)W.select("svg").attr({x:D+lr-1,y:D+rr}).call(Ml.setClipUrl,R?y:null,e);else{var er=D+rr-oe.top,Ie=D+lr-oe.left;G.call(I4.positionText,Ie,er).call(Ml.setClipUrl,R?y:null,e)}I.select("rect").call(Ml.setRect,D,D,K,_e),P.call(Ml.setRect,S/2,S/2,fe-S,ve-S),M.call(Ml.setTranslate,Math.round(m.x.text-fe/2),Math.round(m.y.text-ve/2)),_.attr({transform:"rotate("+x+","+m.x.text+","+m.y.text+")"});var ne=function(Pe,Fe){T.selectAll(".annotation-arrow-g").remove();var Ke=m.x.head,cr=m.y.head,ur=m.x.tail+Pe,Mr=m.y.tail+Fe,Ir=m.x.text+Pe,Ur=m.y.text+Fe,et=bs.rotationXYMatrix(x,Ir,Ur),qt=bs.apply2DTransform(et),ct=bs.apply2DTransform2(et),Ot=+P.attr("width"),gt=+P.attr("height"),Ta=Ir-.5*Ot,Zt=Ta+Ot,Jt=Ur-.5*gt,za=Jt+gt,fa=[[Ta,Jt,Ta,za],[Ta,za,Zt,za],[Zt,za,Zt,Jt],[Zt,Jt,Ta,Jt]].map(ct);if(!fa.reduce(function(_t,Vt){return _t^!!bs.segmentsIntersect(Ke,cr,Ke+1e6,cr+1e6,Vt[0],Vt[1],Vt[2],Vt[3])},!1)){fa.forEach(function(_t){var Vt=bs.segmentsIntersect(ur,Mr,Ke,cr,_t[0],_t[1],_t[2],_t[3]);Vt&&(ur=Vt.x,Mr=Vt.y)});var $t=r.arrowwidth,ar=r.arrowcolor,Jr=r.arrowside,Xr=T.append("g").style({opacity:Gu.opacity(ar)}).classed("annotation-arrow-g",!0),$r=Xr.append("path").attr("d","M"+ur+","+Mr+"L"+Ke+","+cr).style("stroke-width",$t+"px").call(Gu.stroke,Gu.rgb(ar));if(H2e($r,Jr,r),s.annotationPosition&&$r.node().parentNode&&!a){var Rt=Ke,Kt=cr;if(r.standoff){var ft=Math.sqrt(Math.pow(Ke-ur,2)+Math.pow(cr-Mr,2));Rt+=r.standoff*(ur-Ke)/ft,Kt+=r.standoff*(Mr-cr)/ft}var Da=Xr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ur-Rt)+","+(Mr-Kt),transform:N4(Rt,Kt)}).style("stroke-width",$t+6+"px").call(Gu.stroke,"rgba(0,0,0,0)").call(Gu.fill,"rgba(0,0,0,0)"),Mn,Qt;k0.init({element:Da.node(),gd:e,prepFn:function(){var _t=Ml.getTranslate(M);Mn=_t.x,Qt=_t.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(_t,Vt){var Yt=qt(Mn,Qt),ll=Yt[0]+_t,vt=Yt[1]+Vt;M.call(Ml.setTranslate,ll,vt),d("x",gs(n,_t,"x",l,r)),d("y",gs(i,Vt,"y",l,r)),r.axref===r.xref&&d("ax",gs(n,_t,"ax",l,r)),r.ayref===r.yref&&d("ay",gs(i,Vt,"ay",l,r)),Xr.attr("transform",N4(_t,Vt)),_.attr({transform:"rotate("+x+","+ll+","+vt+")"})},doneFn:function(){F4.call("_guiRelayout",e,p());var _t=document.querySelector(".js-notes-box-panel");_t&&_t.redraw(_t.selectedObj)}})}}};if(r.showarrow&&ne(0,0),b){var de;k0.init({element:M.node(),gd:e,prepFn:function(){de=_.attr("transform")},moveFn:function(Pe,Fe){var Ke="pointer";if(r.showarrow)r.axref===r.xref?d("ax",gs(n,Pe,"ax",l,r)):d("ax",r.ax+Pe),r.ayref===r.yref?d("ay",gs(i,Fe,"ay",l.w,r)):d("ay",r.ay+Fe),ne(Pe,Fe);else{if(a)return;var cr,ur;if(n)cr=gs(n,Pe,"x",l,r);else{var Mr=r._xsize/l.w,Ir=r.x+(r._xshift-r.xshift)/l.w-Mr/2;cr=k0.align(Ir+Pe/l.w,Mr,0,1,r.xanchor)}if(i)ur=gs(i,Fe,"y",l,r);else{var Ur=r._ysize/l.h,et=r.y-(r._yshift+r.yshift)/l.h-Ur/2;ur=k0.align(et-Fe/l.h,Ur,0,1,r.yanchor)}d("x",cr),d("y",ur),(!n||!i)&&(Ke=k0.getCursor(n?.5:cr,i?.5:ur,r.xanchor,r.yanchor))}_.attr({transform:N4(Pe,Fe)+de}),z4(M,Ke)},clickFn:function(Pe,Fe){r.captureevents&&e.emit("plotly_clickannotation",k(Fe))},doneFn:function(){z4(M),F4.call("_guiRelayout",e,p());var Pe=document.querySelector(".js-notes-box-panel");Pe&&Pe.redraw(Pe.selectedObj)}})}}s.annotationText?G.call(I4.makeEditable,{delegate:M,gd:e}).call(Y).on("edit",function(H){r.text=H,this.call(Y),d("text",H),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),F4.call("_guiRelayout",e,p())}):G.call(Y)}});var qO=N((fNe,SO)=>{"use strict";var TO=Le(),G2e=br(),AO=wt().arrayEditor;SO.exports={hasClickToShow:V2e,onClick:Y2e};function V2e(e,r){var t=kO(e,r);return t.on.length>0||t.explicitOff.length>0}function Y2e(e,r){var t=kO(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var O4=Le(),Nc=Tr();CO.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Nc.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),O4.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Nc.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(Nc.opacity(i)?Nc.rgb(i):Nc.defaultLine)),x=n("hoverlabel.bordercolor",y.bordercolor||Nc.contrast(m)),T=O4.extendFlat({},y.font);T.color||(T.color=x),O4.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var EO=N((vNe,LO)=>{"use strict";var H4=Le(),Vu=zr(),W2e=io(),j2e=B4(),X2e=Mc();LO.exports=function(r,t){W2e(r,t,{name:"annotations",handleItemDefaults:Z2e})};function Z2e(e,r,t){function a(_,b){return H4.coerce(e,r,X2e,_,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){j2e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Vu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Vu.getFromId(u,v);d._annIndices.push(r._index)}if(Vu.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,y=Vu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;Vu.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(H4.noneOrAll(e,r,["x","y"]),o&&H4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),T=a("yclick");r._xclick=x===void 0?r.x:Vu.cleanPosition(x,u,r.xref),r._yclick=T===void 0?r.y:Vu.cleanPosition(T,u,r.yref)}}}});var PO=N((hNe,RO)=>{"use strict";var U4=Le(),Yu=zr(),J2e=Im().draw;RO.exports=function(r){var t=r._fullLayout,a=U4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return U4.syncOrAsync([J2e,$2e],r)};function $2e(e){var r=e._fullLayout;U4.filterVisible(r.annotations).forEach(function(t){var a=Yu.getFromId(e,t.xref),n=Yu.getFromId(e,t.yref),i=Yu.getRefType(t.xref),o=Yu.getRefType(t.yref);t._extremes={},i==="range"&&DO(t,a),o==="range"&&DO(t,n)})}function DO(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,x;if(l===o){var T=Yu.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Yu.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});x={min:[T.min[0],_.min[0]],max:[T.max[0],_.max[0]]}}else y=i?y+i:y,m=i?m-i:m,x=Yu.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=x}});var NO=N((dNe,FO)=>{"use strict";var K2e=Rr(),Q2e=qp();FO.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],y=null;i?y=Q2e(p,t.range):y=Math.pow(10,p),K2e(y)||(y=null),n(f+d,y)}for(var v=0;v{"use strict";var G4=Im(),IO=qO();zO.exports={moduleType:"component",name:"annotations",layoutAttributes:Mc(),supplyLayoutDefaults:EO(),includeBasePlot:o0()("annotations"),calcAutorange:PO(),draw:G4.draw,drawOne:G4.drawOne,drawRaw:G4.drawRaw,hasClickToShow:IO.hasClickToShow,onClick:IO.onClick,convertCoords:NO()}});var zm=N((yNe,BO)=>{"use strict";var kt=Mc(),e3e=eo().overrideAll,r3e=wt().templatedArray;BO.exports=e3e(r3e("annotation",{visible:kt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:kt.xanchor,xshift:kt.xshift,yanchor:kt.yanchor,yshift:kt.yshift,text:kt.text,textangle:kt.textangle,font:kt.font,width:kt.width,height:kt.height,opacity:kt.opacity,align:kt.align,valign:kt.valign,bgcolor:kt.bgcolor,bordercolor:kt.bordercolor,borderpad:kt.borderpad,borderwidth:kt.borderwidth,showarrow:kt.showarrow,arrowcolor:kt.arrowcolor,arrowhead:kt.arrowhead,startarrowhead:kt.startarrowhead,arrowside:kt.arrowside,arrowsize:kt.arrowsize,startarrowsize:kt.startarrowsize,arrowwidth:kt.arrowwidth,standoff:kt.standoff,startstandoff:kt.startstandoff,hovertext:kt.hovertext,hoverlabel:kt.hoverlabel,captureevents:kt.captureevents}),"calc","from-root")});var UO=N((mNe,HO)=>{"use strict";var V4=Le(),t3e=zr(),a3e=io(),n3e=B4(),i3e=zm();HO.exports=function(r,t,a){a3e(r,t,{name:"annotations",handleItemDefaults:o3e,fullLayout:a.fullLayout})};function o3e(e,r,t,a){function n(l,s){return V4.coerce(e,r,i3e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],t3e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(n3e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),V4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),V4.noneOrAll(e,r,["ax","ay"])))}});var WO=N((gNe,YO)=>{"use strict";var GO=Le(),VO=zr();YO.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function Y4(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function s3e(e,r){var t=Y4(e.projection,Y4(e.view,Y4(e.model,[r[0],r[1],r[2],1])));return t}jO.exports=s3e});var JO=N((xNe,ZO)=>{"use strict";var u3e=Im().drawRaw,f3e=XO(),c3e=["x","y","z"];ZO.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=f3e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),u3e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var QO=N((_Ne,KO)=>{"use strict";var v3e=br(),$O=Le();KO.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:zm()}}},layoutAttributes:zm(),handleDefaults:UO(),includeBasePlot:h3e,convert:WO(),draw:JO()};function h3e(e,r){var t=v3e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var wNe=_a(),eB=ba(),rB=Ai().line,d3e=ci().dash,ho=bt().extendFlat,p3e=wt().templatedArray,TNe=a0(),Ic=gn(),tB=Mc(),{shapeTexttemplateAttrs:y3e,templatefallbackAttrs:m3e}=Wn(),g3e=Op();aB.exports=p3e("shape",{visible:ho({},Ic.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ho({},Ic.legend,{editType:"calc+arraydraw"}),legendgroup:ho({},Ic.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ho({},Ic.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:eB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ho({},Ic.legendrank,{editType:"calc+arraydraw"}),legendwidth:ho({},Ic.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ho({},tB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ho({},tB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ho({},rB.color,{editType:"arraydraw"}),width:ho({},rB.width,{editType:"calc+arraydraw"}),dash:ho({},d3e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:y3e({},{keys:Object.keys(g3e)}),texttemplatefallback:m3e({editType:"arraydraw"}),font:eB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var iB=N((MNe,nB)=>{"use strict";var zc=Le(),ri=zr(),b3e=io(),x3e=W4(),q0=hs();nB.exports=function(r,t){b3e(r,t,{name:"shapes",handleItemDefaults:w3e})};function _3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function w3e(e,r,t){function a(_,b){return zc.coerce(e,r,x3e,_,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),zc.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(_=>{var b=_+"anchor",w=_==="x"?c:v,k={_fullLayout:t},M,S,E,D;let P=_+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let I=q0.countDefiningCoords(s,o,_);D=ri.coerceRefArray(e,r,k,_,void 0,"paper",I),r["_"+_+"refArray"]=!0}else D=ri.coerceRef(e,r,k,_,void 0,"paper");if(Array.isArray(D))D.forEach(function(I){ri.getRefType(I)==="range"&&(M=ri.getFromId(k,I),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(I){let z=D[I];ri.getRefType(z)==="range"?(M=ri.getFromId(k,z),S=q0.shapePositionToRange(M),E=q0.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+I+"shift")):S=E=zc.identity;let G=_+I,Y=e[G];if(e[G]=S(e[G],!0),w==="pixel"?a(G,p[I]):ri.coercePosition(r,k,a,z,G,d[I]),r[G]=E(r[G]),e[G]=Y,I===0&&w==="pixel"){let V=e[b];e[b]=S(e[b],!0),ri.coercePosition(r,k,a,z,b,.25),r[b]=E(r[b]),e[b]=V}});else{if(ri.getRefType(D)==="range"?(M=ri.getFromId(k,D),M._shapeIndices.push(r._index),E=q0.rangeToShapePosition(M),S=q0.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):S=E=zc.identity,u){let z=_+"0",B=_+"1",G=e[z],Y=e[B];e[z]=S(e[z],!0),e[B]=S(e[B],!0),w==="pixel"?(a(z,p[0]),a(B,p[1])):(ri.coercePosition(r,k,a,D,z,d[0]),ri.coercePosition(r,k,a,D,B,d[1])),r[z]=E(r[z]),r[B]=E(r[B]),e[z]=G,e[B]=Y}if(w==="pixel"){let z=e[b];e[b]=S(e[b],!0),ri.coercePosition(r,k,a,D,b,.25),r[b]=E(r[b]),e[b]=z}}}),u&&zc.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",m,x;if(u&&(m=a("label.texttemplate"),a("label.texttemplatefallback")),m||(x=a("label.text")),x||m){a("label.textangle");var T=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",_3e(y,T)),a("label.padding"),zc.coerceFont(a,"label.font",t.font)}}});var sB=N((kNe,lB)=>{"use strict";var T3e=Tr(),oB=Le();function A3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}lB.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),oB.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",T3e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",A3e(o,u)),a("newshape.label.padding"),oB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var pB=N((SNe,dB)=>{"use strict";var j4=Le(),Di=zr(),Xo=zh(),X4=hs();dB.exports=function(r){var t=r._fullLayout,a=j4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=Di.getFromId(r,c),i._extremes[o._id]=Di.findExtremes(o,v,fB(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=Di.getFromId(r,i.xref),l=vB(o,i,Xo.paramIsX),l&&(i._extremes[o._id]=Di.findExtremes(o,l,fB(i))));if(u==="array"){let f=uB(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=Di.getFromId(r,c),i._extremes[o._id]=Di.findExtremes(o,v,cB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=Di.getFromId(r,i.yref),l=vB(o,i,Xo.paramIsY),l&&(i._extremes[o._id]=Di.findExtremes(o,l,cB(i))))}};function uB(e,r,t){let a=r[t+"ref"],n=t==="x"?Xo.paramIsX:Xo.paramIsY;function i(c,v){c==="paper"||Di.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Xo.segmentRE)||[];for(var l=0,s=0;sp&&(i(a[l],y[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=Di.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=X4.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function fB(e){return hB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function cB(e){return hB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function hB(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?X4.extractPathCoords(n,i?Xo.paramIsY:Xo.paramIsX):[t,a],u=j4.aggNums(Math.max,null,s),f=j4.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,v=u>0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function vB(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Xo.segmentRE),p,y,m,x,T;for(e.type==="date"&&(u=X4.decodeDate(u)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var gB=N((qNe,mB)=>{"use strict";var yB=ky();mB.exports={moduleType:"component",name:"shapes",layoutAttributes:W4(),supplyLayoutDefaults:iB(),supplyDrawNewShapeDefaults:sB(),includeBasePlot:o0()("shapes"),calcAutorange:pB(),draw:yB.draw,drawOne:yB.drawOne}});var Z4=N((LNe,xB)=>{"use strict";var bB=_a(),M3e=wt().templatedArray,CNe=a0();xB.exports=M3e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",bB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",bB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var wB=N((ENe,_B)=>{"use strict";var k3e=Le(),J4=zr(),S3e=io(),q3e=Z4(),C3e="images";_B.exports=function(r,t){var a={name:C3e,handleItemDefaults:L3e};S3e(r,t,a)};function L3e(e,r,t){function a(v,d){return k3e.coerce(e,r,q3e,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=J4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=J4.getFromId(o,f);c._imgIndices.push(r._index)}J4.coercePosition(r,o,a,f,u,0)}return r}});var kB=N((DNe,MB)=>{"use strict";var TB=Sr(),E3e=Yr(),Oc=zr(),AB=ca(),D3e=pl();MB.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var SB=Rr(),R3e=qp();qB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";LB.exports={moduleType:"component",name:"images",layoutAttributes:Z4(),supplyLayoutDefaults:wB(),includeBasePlot:o0()("images"),draw:kB(),convertCoords:CB()}});var Om=N((FNe,DB)=>{"use strict";DB.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var $4=N((NNe,PB)=>{"use strict";var P3e=ba(),F3e=fi(),N3e=bt().extendFlat,I3e=eo().overrideAll,z3e=Bp(),RB=wt().templatedArray,O3e=RB("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});PB.exports=I3e(RB("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:O3e,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:N3e(z3e({editType:"arraydraw"}),{}),font:P3e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:F3e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var zB=N((INe,IB)=>{"use strict";var Bm=Le(),FB=io(),NB=$4(),B3e=Om(),H3e=B3e.name,U3e=NB.buttons;IB.exports=function(r,t){var a={name:H3e,handleItemDefaults:G3e};FB(r,t,a)};function G3e(e,r,t){function a(o,l){return Bm.coerce(e,r,NB,o,l)}var n=FB(e,r,{name:"buttons",handleItemDefaults:V3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Bm.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Bm.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function V3e(e,r){function t(n,i){return Bm.coerce(e,r,U3e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var HB=N((zNe,BB)=>{"use strict";BB.exports=It;var po=Sr(),OB=Tr(),Bc=Yr(),Hm=Le();function It(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}It.barWidth=2;It.barLength=20;It.barRadius=2;It.barPad=1;It.barColor="#808BA4";It.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,x=f,T,_,b,w;!v&&!d&&!p&&!y&&(this.position.direction="down",v=!0);var k=v||y;k?(T=l,_=T+m,v?(b=u,w=Math.min(b+x,o),x=w-b):(w=u+x,b=Math.max(w-x,0),x=w-b)):(b=u,w=b+x,d?(_=l+m,T=Math.max(_-m,0),m=_-T):(T=l,_=Math.min(T+m,i),m=_-T)),this._box={l:T,t:b,w:m,h:x};var M=s>m,S=It.barLength+2*It.barPad,E=It.barWidth+2*It.barPad,D=l,P=u+f;P+E>o&&(P=o-E);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(OB.fill,It.barColor),M?(this.hbar=R.attr({rx:It.barRadius,ry:It.barRadius,x:D,y:P,width:S,height:E}),this._hbarXMin=D+S/2,this._hbarTranslateMax=m-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>x,z=It.barWidth+2*It.barPad,B=It.barLength+2*It.barPad,G=l+s,Y=u;G+z>i&&(G=i-z);var V=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(OB.fill,It.barColor),I?(this.vbar=V.attr({rx:It.barRadius,ry:It.barRadius,x:G,y:Y,width:z,height:B}),this._vbarYMin=Y+B/2,this._vbarTranslateMax=x-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,Z=T-.5,W=I?_+z+.5:_+.5,ee=b-.5,oe=M?w+E+.5:w+.5,le=n._topdefs.selectAll("#"+H).data(M||I?[0]:[]);if(le.exit().remove(),le.enter().append("clipPath").attr("id",H).append("rect"),M||I?(this._clipRect=le.select("rect").attr({x:Math.floor(Z),y:Math.floor(ee),width:Math.ceil(W)-Math.floor(Z),height:Math.ceil(oe)-Math.floor(ee)}),this.container.call(Bc.setClipUrl,H,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Bc.setClipUrl,null),delete this._clipRect),M||I){var ue=po.behavior.drag().on("dragstart",function(){po.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ue);var K=po.behavior.drag().on("dragstart",function(){po.event.sourceEvent.preventDefault(),po.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(K),I&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};It.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Bc.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};It.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=po.event.dx),this.vbar&&(t-=po.event.dy),this.setTranslate(r,t)};It.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=po.event.deltaY),this.vbar&&(t+=po.event.deltaY),this.setTranslate(r,t)};It.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Hm.constrain(po.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Hm.constrain(po.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};It.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Hm.constrain(r||0,0,a),t=Hm.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Bc.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Bc.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Bc.setTranslate,r,t+o*this._vbarTranslateMax)}}});var $B=N((ONe,JB)=>{"use strict";var Hc=Sr(),C0=na(),L0=Tr(),Uc=Yr(),ti=Le(),Um=Ma(),Y3e=wt().arrayEditor,GB=Ga().LINE_SPACING,wr=Om(),W3e=HB();JB.exports=function(r){var t=r._fullLayout,a=ti.filterVisible(t[wr.name]);function n(v){C0.autoMargin(r,XB(v))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Hc.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+wr.headerGroupClassName).data(a,j3e);o.enter().append("g").classed(wr.headerGroupClassName,!0);for(var l=ti.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var ebe=Om();KB.exports={moduleType:"component",name:ebe.name,layoutAttributes:$4(),supplyLayoutDefaults:zB(),draw:$B()}});var D0=N((HNe,eH)=>{"use strict";eH.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var rw=N((UNe,aH)=>{"use strict";var rH=ba(),rbe=Bp(),tbe=bt().extendDeepAll,abe=eo().overrideAll,nbe=sh(),tH=wt().templatedArray,Wu=D0(),ibe=tH("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});aH.exports=abe(tH("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ibe,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:tbe(rbe({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:nbe.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:rH({})},font:rH({}),activebgcolor:{valType:"color",dflt:Wu.gripBgActiveColor},bgcolor:{valType:"color",dflt:Wu.railBgColor},bordercolor:{valType:"color",dflt:Wu.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Wu.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Wu.tickLength},tickcolor:{valType:"color",dflt:Wu.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Wu.minorTickLength}}),"arraydraw","from-root")});var lH=N((GNe,oH)=>{"use strict";var Gc=Le(),nH=io(),iH=rw(),obe=D0(),lbe=obe.name,sbe=iH.steps;oH.exports=function(r,t){nH(r,t,{name:lbe,handleItemDefaults:ube})};function ube(e,r,t){function a(c,v){return Gc.coerce(e,r,iH,c,v)}for(var n=nH(e,r,{name:"steps",handleItemDefaults:fbe}),i=0,o=0;o{"use strict";var yo=Sr(),Gm=na(),xs=Tr(),mo=Yr(),ai=Le(),cbe=ai.strTranslate,R0=Ma(),vbe=wt().arrayEditor,Fr=D0(),nw=Ga(),fH=nw.LINE_SPACING,tw=nw.FROM_TL,aw=nw.FROM_BR;yH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=hbe(a,r),i=a._infolayer.selectAll("g."+Fr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Fr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Gm.autoMargin(r,cH(f))}if(i.exit().each(function(){yo.select(this).selectAll("g."+Fr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Fr.groupClassName).data(n,dbe);l.enter().append("g").classed(Fr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",cbe(o-Fr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function iw(e,r){var t=e._dims;return t.inputAreaStart+Fr.stepInset+(t.inputAreaLength-2*Fr.stepInset)*Math.min(1,Math.max(0,r))}function uH(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Fr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Fr.stepInset-2*t.inputAreaStart)))}function _be(e,r,t){var a=t._dims,n=ai.ensureSingle(e,"rect",Fr.railTouchRectClass,function(i){i.call(dH,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Fr.tickOffset+t.ticklen+a.labelHeight)}).call(xs.fill,t.bgcolor).attr("opacity",0),mo.setTranslate(n,0,a.currentValueTotalHeight)}function wbe(e,r){var t=r._dims,a=t.inputAreaLength-Fr.railInset*2,n=ai.ensureSingle(e,"rect",Fr.railRectClass);n.attr({width:a,height:Fr.railWidth,rx:Fr.railRadius,ry:Fr.railRadius,"shape-rendering":"crispEdges"}).call(xs.stroke,r.bordercolor).call(xs.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),mo.setTranslate(n,Fr.railInset,(t.inputAreaWidth-Fr.railWidth)*.5+t.currentValueTotalHeight)}});var bH=N((YNe,gH)=>{"use strict";var Tbe=D0();gH.exports={moduleType:"component",name:Tbe.name,layoutAttributes:rw(),supplyLayoutDefaults:lH(),draw:mH()}});var Ym=N((WNe,_H)=>{"use strict";var xH=fi();_H.exports={bgcolor:{valType:"color",dflt:xH.background,editType:"plot"},bordercolor:{valType:"color",dflt:xH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var ow=N((jNe,wH)=>{"use strict";wH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Wm=N((XNe,TH)=>{"use strict";TH.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var kH=N(Xm=>{"use strict";var Abe=ca(),Mbe=Ma(),AH=Wm(),kbe=Ga().LINE_SPACING,jm=AH.name;function MH(e){var r=e&&e[jm];return r&&r.visible}Xm.isVisible=MH;Xm.makeData=function(e){for(var r=Abe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Zm=Le(),SH=wt(),qH=ca(),Sbe=Ym(),qbe=ow();CH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Zm.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=SH.newContainer(i,"rangeslider");function s(w,k){return Zm.coerce(o,l,Sbe,w,k)}var u,f;function c(w,k){return Zm.coerce(u,f,qbe,w,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(w){return w.slice(0,Math.max(0,w.indexOf("y")))===qH.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),y=Zm.simpleMap(p,qH.id2name),m=0;m{"use strict";var Cbe=ca().list,Lbe=Ah().getAutoRange,Ebe=Wm();EH.exports=function(r){for(var t=Cbe(r,"x",!0),a=0;a{"use strict";var Jm=Sr(),Dbe=br(),Rbe=na(),Xt=Le(),$m=Xt.strTranslate,PH=Yr(),_s=Tr(),Pbe=sc(),Fbe=Ei(),lw=ca(),Nbe=mi(),Ibe=ss(),Hr=Wm();FH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=V.max)G=P[Y+1];else if(B=V.pmax)G=P[Y+1];else if(B0?e.touches[0].clientX:0}function zbe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Hr.slideBoxClassName).node(),i=e.select("rect."+Hr.grabAreaMinClassName).node(),o=e.select("rect."+Hr.grabAreaMaxClassName).node();function l(){var s=Jm.event,u=s.target,f=RH(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Nbe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(x){var T=RH(x),_=+T-f,b,w,k;switch(u){case n:if(k="ew-resize",v+_>t._length||d+_<0)return;b=v+_,w=d+_;break;case i:if(k="col-resize",v+_>t._length)return;b=v+_,w=d;break;case o:if(k="col-resize",d+_<0)return;b=v,w=d+_;break;default:k="ew-resize",b=c,w=c+_;break}if(w{"use strict";var Xbe=Le(),Zbe=Ym(),Jbe=ow(),sw=kH();IH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Xbe.extendFlat({},Zbe,{yaxis:Jbe})}}},layoutAttributes:Ym(),handleDefaults:LH(),calcAutorange:DH(),draw:NH(),isVisible:sw.isVisible,makeData:sw.makeData,autoMarginOpts:sw.autoMarginOpts}});var Km=N((eIe,BH)=>{"use strict";var $be=ba(),OH=fi(),Kbe=wt().templatedArray,Qbe=Kbe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});BH.exports={visible:{valType:"boolean",editType:"plot"},buttons:Qbe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:$be({editType:"plot"}),bgcolor:{valType:"color",dflt:OH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:OH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var uw=N((rIe,HH)=>{"use strict";HH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var VH=N((tIe,GH)=>{"use strict";var Qm=Le(),exe=Tr(),rxe=wt(),txe=io(),UH=Km(),fw=uw();GH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=rxe.newContainer(t,"rangeselector");function s(d,p){return Qm.coerce(o,l,UH,d,p)}var u=txe(o,l,{name:"buttons",handleItemDefaults:axe,calendar:i}),f=s("visible",u.length>0);if(f){var c=nxe(t,a,n);s("x",c[0]),s("y",c[1]),Qm.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Qm.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",exe.contrast(v,fw.lightAmount,fw.darkAmount)),s("bordercolor"),s("borderwidth")}};function axe(e,r,t,a){var n=a.calendar;function i(s,u){return Qm.coerce(e,r,UH.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function nxe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var ixe=ub(),oxe=Le().titleCase;YH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=lxe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function lxe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=ixe["utc"+oxe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var eU=N((nIe,QH)=>{"use strict";var rg=Sr(),sxe=br(),uxe=na(),jH=Tr(),KH=Yr(),kl=Le(),XH=kl.strTranslate,eg=Ma(),fxe=ca(),hw=Ga(),ZH=hw.LINE_SPACING,JH=hw.FROM_TL,$H=hw.FROM_BR,vw=uw(),cxe=WH();QH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(vxe(r),hxe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=rg.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(kl.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=rg.select(this),c=cxe(o,u);u._isActive=dxe(o,u,c),f.call(cw,l,u),f.call(yxe,l,u,r),f.on("click",function(){r._dragged||sxe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(cw,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(cw,l,u)})}),gxe(r,s,l,o._name,i)})};function vxe(e){for(var r=fxe.list(e,"x",!0),t=[],a=0;a{"use strict";rU.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Km()}}},layoutAttributes:Km(),handleDefaults:VH(),draw:eU()}});var Vc=N(dw=>{"use strict";var aU=bt().extendFlat;dw.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:aU({},t,{}),y:aU({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};dw.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var bxe=Le(),xxe=If().counter,_xe=Vc().attributes,nU=_a().idRegex,wxe=wt(),pw={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[xxe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nU.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:_xe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function tg(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Txe(e,r){var t=e.grid||{},a=tg(r,t,"x"),n=tg(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=wxe.newContainer(r,"grid");function v(k,M){return bxe.coerce(t,c,pw,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),x=m==="top to bottom",T=i?.2:.1,_=i?.3:.1,b,w;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,w=r._splomGridDflt.yside),c._domains={x:iU("x",v,T,b,p),y:iU("y",v,_,w,d,x)}}function iU(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";uU.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var vU=N((uIe,cU)=>{"use strict";var fU=Rr(),Mxe=br(),kxe=Le(),Sxe=wt(),qxe=yw();cU.exports=function(e,r,t,a){var n="error_"+a.axis,i=Sxe.newContainer(r,n),o=e[n]||{};function l(p,y){return kxe.coerce(o,i,qxe,p,y)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||fU(o.thickness)||fU(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",Mxe.traceIs(r,"gl3d")?0:4))}}});var mw=N((fIe,dU)=>{"use strict";dU.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=hU(t,r.value),l=hU(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function hU(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var mU=N((cIe,yU)=>{"use strict";var gw=Rr(),Cxe=br(),bw=zr(),Lxe=Le(),Exe=mw();yU.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var gU=Sr(),ws=Rr(),Dxe=Yr(),Rxe=Nn();bU.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(T){return T.id});var y=Rxe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var m=gU.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var x=m.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),Dxe.setClipUrl(m,a.layerClipId,r),m.each(function(T){var _=gU.select(this),b=Pxe(T,o,l);if(!(y&&!T.vis)){var w,k=_.select("path.yerror");if(d.visible&&ws(b.x)&&ws(b.yh)&&ws(b.ys)){var M=d.width;w="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(w+="m-"+M+",0h"+2*M),i=!k.size(),i?k=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",w)}else k.remove();var S=_.select("path.xerror");if(v.visible&&ws(b.y)&&ws(b.xh)&&ws(b.xs)){var E=(v.copy_ystyle?d:v).width;w="M"+b.xh+","+(b.y-E)+"v"+2*E+"m0,-"+E+"H"+b.xs,b.noXS||(w+="m0,-"+E+"v"+2*E),i=!S.size(),i?S=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",w)}else S.remove()}})}})};function Pxe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),ws(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),ws(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var TU=N((hIe,wU)=>{"use strict";var Fxe=Sr(),_U=Tr();wU.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Fxe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(_U.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(_U.stroke,i.color)})}});var kU=N((dIe,MU)=>{"use strict";var P0=Le(),AU=eo().overrideAll,F0=yw(),ju={error_x:P0.extendFlat({},F0),error_y:P0.extendFlat({},F0)};delete ju.error_x.copy_zstyle;delete ju.error_y.copy_zstyle;delete ju.error_y.copy_ystyle;var N0={error_x:P0.extendFlat({},F0),error_y:P0.extendFlat({},F0),error_z:P0.extendFlat({},F0)};delete N0.error_x.copy_ystyle;delete N0.error_y.copy_ystyle;delete N0.error_z.copy_ystyle;delete N0.error_z.copy_zstyle;MU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:ju,bar:ju,histogram:ju,scatter3d:AU(N0,"calc","nested"),scattergl:AU(ju,"calc","nested")}},supplyDefaults:vU(),calc:mU(),makeComputeError:mw(),plot:xU(),style:TU(),hoverInfo:Nxe};function Nxe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var qU=N((pIe,SU)=>{"use strict";SU.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var FU=N((yIe,PU)=>{"use strict";var Ts=Sr(),xw=Ln(),ng=na(),CU=br(),Sl=zr(),ag=mi(),Ri=Le(),bo=Ri.strTranslate,RU=bt().extendFlat,_w=ss(),go=Yr(),ww=Tr(),Ixe=sc(),zxe=Ma(),Oxe=Xn().flipScale,Bxe=L4(),Hxe=E4(),Uxe=pi(),Tw=Ga(),LU=Tw.LINE_SPACING,EU=Tw.FROM_TL,DU=Tw.FROM_BR,Nt=qU().cn;function Gxe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Nt.colorbar).data(Vxe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Nt.colorbar,!0),t.each(function(a){var n=Ts.select(this);Ri.ensureSingle(n,"rect",Nt.cbbg),Ri.ensureSingle(n,"g",Nt.cbfills),Ri.ensureSingle(n,"g",Nt.cblines),Ri.ensureSingle(n,"g",Nt.cbaxis,function(o){o.classed(Nt.crisp,!0)}),Ri.ensureSingle(n,"g",Nt.cbtitleunshift,function(o){o.append("g").classed(Nt.cbtitle,!0)}),Ri.ensureSingle(n,"rect",Nt.cboutline);var i=Yxe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Wxe(n,a,e)}),t.exit().each(function(a){ng.autoMargin(e,a._id)}).remove(),t.order()}function Vxe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return RU(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?Oxe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(j)/Math.LN10));ye*=Q*Ri.roundUp(j/Q,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(fe.tick0=0)}fe.dtick=ye}fe.domain=a?[K+p/b.h,K+H-p/b.h]:[K+d/b.w,K+H-d/b.w],fe.setScale(),e.attr("transform",bo(Math.round(b.l),Math.round(b.t)));var X=e.select("."+Nt.cbtitleunshift).attr("transform",bo(-Math.round(b.l),-Math.round(b.t))),ie=fe.ticklabelposition,he=fe.title.font.size,me=e.select("."+Nt.cbaxis),Re,De=0,Ce=0;function He(Ge,se){var Ae={propContainer:fe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+Nt.cbtitle)},Je=Ge.charAt(0)==="h"?Ge.slice(1):"h"+Ge;e.selectAll("."+Je+",."+Je+"-math-group").remove(),Ixe.draw(t,Ge,RU(Ae,se||{}))}function Oe(){if(a&&ve||!a&&!ve){var Ge,se;S==="top"&&(Ge=d+b.l+Z*y,se=p+b.t+W*(1-K-H)+3+he*.75),S==="bottom"&&(Ge=d+b.l+Z*y,se=p+b.t+W*(1-K)-3-he*.25),S==="right"&&(se=p+b.t+W*m+3+he*.75,Ge=d+b.l+Z*K),He(fe._id+"title",{attributes:{x:Ge,y:se,"text-anchor":a?"start":"middle"}})}}function Ue(){if(a&&!ve||!a&&ve){var Ge=fe.position||0,se=fe._offset+fe._length/2,Ae,Je;if(S==="right")Je=se,Ae=b.l+Z*Ge+10+he*(fe.showticklabels?1:.5);else if(Ae=se,S==="bottom"&&(Je=b.t+W*Ge+10+(ie.indexOf("inside")===-1?fe.tickfont.size:0)+(fe.ticks!=="inside"&&r.ticklen||0)),S==="top"){var dr=M.text.split("
").length;Je=b.t+W*Ge+10-G-LU*he*dr}He((a?"h":"v")+fe._id+"title",{avoid:{selection:Ts.select(t).selectAll("g."+fe._id+"tick"),side:S,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?_.width:_.height},attributes:{x:Ae,y:Je,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Ee(){if(!a&&!ve||a&&ve){var Ge=e.select("."+Nt.cbtitle),se=Ge.select("text"),Ae=[-s/2,s/2],Je=Ge.select(".h"+fe._id+"title-math-group").node(),dr=15.6;se.node()&&(dr=parseInt(se.node().style.fontSize,10)*LU);var Ne;if(Je?(Ne=go.bBox(Je),Ce=Ne.width,De=Ne.height,De>dr&&(Ae[1]-=(De-dr)/2)):se.node()&&!se.classed(Nt.jsPlaceholder)&&(Ne=go.bBox(se.node()),Ce=Ne.width,De=Ne.height),a){if(De){if(De+=5,S==="top")fe.domain[1]-=De/b.h,Ae[1]*=-1;else{fe.domain[0]+=De/b.h;var Te=zxe.lineCount(se);Ae[1]+=(1-Te)*dr}Ge.attr("transform",bo(Ae[0],Ae[1])),fe.setScale()}}else Ce&&(S==="right"&&(fe.domain[0]+=(Ce+he/2)/b.w),Ge.attr("transform",bo(Ae[0],Ae[1])),fe.setScale())}e.selectAll("."+Nt.cbfills+",."+Nt.cblines).attr("transform",a?bo(0,Math.round(b.h*(1-fe.domain[1]))):bo(Math.round(b.w*fe.domain[0]),0)),me.attr("transform",a?bo(0,Math.round(-b.t)):bo(Math.round(-b.l),0));var qe=e.select("."+Nt.cbfills).selectAll("rect."+Nt.cbfill).attr("style","").data(z);qe.enter().append("rect").classed(Nt.cbfill,!0).attr("style",""),qe.exit().remove();var Be=E.map(fe.c2p).map(Math.round).sort(function(rr,er){return rr-er});qe.each(function(rr,er){var Ie=[er===0?E[0]:(z[er]+z[er-1])/2,er===z.length-1?E[1]:(z[er]+z[er+1])/2].map(fe.c2p).map(Math.round);a&&(Ie[1]=Ri.constrain(Ie[1]+(Ie[1]>Ie[0])?1:-1,Be[0],Be[1]));var ne=Ts.select(this).attr(a?"x":"y",ee).attr(a?"y":"x",Ts.min(Ie)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(Ts.max(Ie)-Ts.min(Ie),2));if(r._fillgradient)go.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var de=P(rr).replace("e-","");ne.attr("fill",xw(de).toHexString())}});var Ze=e.select("."+Nt.cblines).selectAll("path."+Nt.cbline).data(k.color&&k.width?B:[]);Ze.enter().append("path").classed(Nt.cbline,!0),Ze.exit().remove(),Ze.each(function(rr){var er=ee,Ie=Math.round(fe.c2p(rr))+k.width/2%1;Ts.select(this).attr("d","M"+(a?er+","+Ie:Ie+","+er)+(a?"h":"v")+G).call(go.lineGroupStyle,k.width,D(rr),k.dash)}),me.selectAll("g."+fe._id+"tick,path").remove();var Ve=ee+G+(s||0)/2-(r.ticks==="outside"?1:0),We=Sl.calcTicks(fe),lr=Sl.getTickSigns(fe)[2];return Sl.drawTicks(t,fe,{vals:fe.ticks==="inside"?Sl.clipEnds(fe,We):We,layer:me,path:Sl.makeTickPath(fe,Ve,lr),transFn:Sl.makeTransTickFn(fe)}),Sl.drawLabels(t,fe,{vals:We,layer:me,transFn:Sl.makeTransTickLabelFn(fe),labelFns:Sl.makeLabelFns(fe,Ve)})}function ze(){var Ge,se=G+s/2;ie.indexOf("inside")===-1&&(Ge=go.bBox(me.node()),se+=a?Ge.width:Ge.height),Re=X.select("text");var Ae=0,Je=a&&S==="top",dr=!a&&S==="right",Ne=0;if(Re.node()&&!Re.classed(Nt.jsPlaceholder)){var Te,qe=X.select(".h"+fe._id+"title-math-group").node();qe&&(a&&ve||!a&&!ve)?(Ge=go.bBox(qe),Ae=Ge.width,Te=Ge.height):(Ge=go.bBox(X.node()),Ae=Ge.right-b.l-(a?ee:_e),Te=Ge.bottom-b.t-(a?_e:ee),!a&&S==="top"&&(se+=Ge.height,Ne=Ge.height)),dr&&(Re.attr("transform",bo(Ae/2+he/2,0)),Ae*=2),se=Math.max(se,a?Ae:Te)}var Be=(a?d:p)*2+se+u+s/2,Ze=0;!a&&M.text&&v==="bottom"&&m<=0&&(Ze=Be/2,Be+=Ze,Ne+=Ze),_._hColorbarMoveTitle=Ze,_._hColorbarMoveCBTitle=Ne;var Ve=u+s,We=(a?ee:_e)-Ve/2-(a?d:0),lr=(a?_e:ee)-(a?V:p+Ne-Ze);e.select("."+Nt.cbbg).attr("x",We).attr("y",lr).attr(a?"width":"height",Math.max(Be-Ze,2)).attr(a?"height":"width",Math.max(V+Ve,2)).call(ww.fill,f).call(ww.stroke,r.bordercolor).style("stroke-width",u);var rr=dr?Math.max(Ae-10,0):0;e.selectAll("."+Nt.cboutline).attr("x",(a?ee:_e+d)+rr).attr("y",(a?_e+p-V:ee)+(Je?De:0)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(V-(a?2*p+De:2*d+rr),2)).call(ww.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var er=a?oe*Be:0,Ie=a?0:(1-le)*Be-Ne;if(er=T?b.l-er:-er,Ie=x?b.t-Ie:-Ie,e.attr("transform",bo(er,Ie)),!a&&(u||xw(f).getAlpha()&&!xw.equals(_.paper_bgcolor,f))){var ne=me.selectAll("text"),de=ne[0].length,Pe=e.select("."+Nt.cbbg).node(),Fe=go.bBox(Pe),Ke=go.getTranslate(e),cr=2;ne.each(function(Ta,Zt){var Jt=0,za=de-1;if(Zt===Jt||Zt===za){var fa=go.bBox(this),$t=go.getTranslate(this),ar;if(Zt===za){var Jr=fa.right+$t.x,Xr=Fe.right+Ke.x+_e-u-cr+y;ar=Xr-Jr,ar>0&&(ar=0)}else if(Zt===Jt){var $r=fa.left+$t.x,Rt=Fe.left+Ke.x+_e+u+cr;ar=Rt-$r,ar<0&&(ar=0)}ar&&(de<3?this.setAttribute("transform","translate("+ar+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ur={},Mr=EU[c],Ir=DU[c],Ur=EU[v],et=DU[v],qt=Be-G;a?(i==="pixels"?(ur.y=m,ur.t=V*Ur,ur.b=V*et):(ur.t=ur.b=0,ur.yt=m+n*Ur,ur.yb=m-n*et),l==="pixels"?(ur.x=y,ur.l=Be*Mr,ur.r=Be*Ir):(ur.l=qt*Mr,ur.r=qt*Ir,ur.xl=y-o*Mr,ur.xr=y+o*Ir)):(i==="pixels"?(ur.x=y,ur.l=V*Mr,ur.r=V*Ir):(ur.l=ur.r=0,ur.xl=y+n*Mr,ur.xr=y-n*Ir),l==="pixels"?(ur.y=1-m,ur.t=Be*Ur,ur.b=Be*et):(ur.t=qt*Ur,ur.b=qt*et,ur.yt=m-o*Ur,ur.yb=m+o*et));var ct=r.y<.5?"b":"t",Ot=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var gt={r:_.width-We-er,l:We+ur.r,b:_.height-lr-Ie,t:lr+ur.b};T&&x?ng.autoMargin(t,r._id,ur):T?t._fullLayout._reservedMargin[r._id][ct]=gt[ct]:x||a?t._fullLayout._reservedMargin[r._id][Ot]=gt[Ot]:t._fullLayout._reservedMargin[r._id][ct]=gt[ct]}return Ri.syncOrAsync([ng.previousPromises,Oe,Ee,Ue,ng.previousPromises,ze],t)}function Wxe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;ag.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),_w(e)},moveFn:function(u,f){e.attr("transform",o+bo(u,f)),l=ag.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=ag.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=ag.getCursor(l,s,r.xanchor,r.yanchor);_w(e,c)},doneFn:function(){if(_w(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?CU.call("_guiRestyle",t,u,r._traceIndex):CU.call("_guiRelayout",t,u)}}})}function jxe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";NU.exports={moduleType:"component",name:"colorbar",attributes:d1(),supplyDefaults:_x(),draw:FU().draw,hasColorbar:dx()}});var OU=N((gIe,zU)=>{"use strict";zU.exports={moduleType:"component",name:"legend",layoutAttributes:y5(),supplyLayoutDefaults:g5(),draw:D5(),style:q5()}});var HU=N((bIe,BU)=>{"use strict";BU.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var GU=N((xIe,UU)=>{"use strict";UU.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var Mw=N((_Ie,jU)=>{"use strict";var Zxe=br(),WU=Le(),Aw=WU.extendFlat,VU=WU.extendDeep;function YU(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Jxe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}jU.exports=function(r,t){var a,n=r.data,i=r.layout,o=VU([],n),l=VU({},i,YU(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(a=0;a{"use strict";var $xe=uu().EventEmitter,Kxe=br(),Qxe=Le(),XU=Tl(),e5e=Mw(),r5e=fm(),t5e=cm();function a5e(e,r){var t=new $xe,a=e5e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=XU.getDelay(n._fullLayout);setTimeout(function(){var s=r5e(n),u=document.createElement("canvas");u.id=Qxe.randstr(),t=t5e({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=XU.getRedrawFunc(n);return Kxe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}ZU.exports=a5e});var QU=N((TIe,KU)=>{"use strict";var $U=Tl(),n5e={getDelay:$U.getDelay,getRedrawFunc:$U.getRedrawFunc,clone:Mw(),toSVG:fm(),svgToImg:cm(),toImage:JU(),downloadImage:Z_()};KU.exports=n5e});var rG=N(ql=>{"use strict";ql.version=Kv().version;tM();YS();var i5e=br(),I0=ql.register=i5e.register,Sw=dI(),eG=Object.keys(Sw);for(ig=0;ig{"use strict";tG.exports=rG()});var Zu=N((kIe,sG)=>{"use strict";var Gt=Ai(),nG=no().axisHoverFormat,{hovertemplateAttrs:o5e,texttemplateAttrs:l5e,templatefallbackAttrs:iG}=Wn(),lG=Co(),s5e=ba(),oG=b0(),u5e=ci().pattern,Xu=bt().extendFlat,qw=s5e({editType:"calc",arrayOk:!0,colorEditType:"style"}),f5e=Gt.marker,c5e=f5e.line,v5e=Xu({},c5e.width,{dflt:0}),h5e=Xu({width:v5e,editType:"calc"},lG("marker.line")),d5e=Xu({line:h5e,editType:"calc"},lG("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:u5e,cornerradius:{valType:"any",editType:"calc"}});sG.exports={x:Gt.x,x0:Gt.x0,dx:Gt.dx,y:Gt.y,y0:Gt.y0,dy:Gt.dy,xperiod:Gt.xperiod,yperiod:Gt.yperiod,xperiod0:Gt.xperiod0,yperiod0:Gt.yperiod0,xperiodalignment:Gt.xperiodalignment,yperiodalignment:Gt.yperiodalignment,xhoverformat:nG("x"),yhoverformat:nG("y"),text:Gt.text,texttemplate:l5e({editType:"plot"},{keys:oG.eventDataKeys}),texttemplatefallback:iG({editType:"plot"}),hovertext:Gt.hovertext,hovertemplate:o5e({},{keys:oG.eventDataKeys}),hovertemplatefallback:iG(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Xu({},qw,{}),insidetextfont:Xu({},qw,{}),outsidetextfont:Xu({},qw,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Xu({},Gt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:d5e,offsetgroup:Gt.offsetgroup,alignmentgroup:Gt.alignmentgroup,selected:{marker:{opacity:Gt.selected.marker.opacity,color:Gt.selected.marker.color,editType:"style"},textfont:Gt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Gt.unselected.marker.opacity,color:Gt.unselected.marker.color,editType:"style"},textfont:Gt.unselected.textfont,editType:"style"},zorder:Gt.zorder}});var lg=N((SIe,uG)=>{"use strict";uG.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var Cw=N((qIe,vG)=>{"use strict";var p5e=Tr(),fG=Xn().hasColorscale,cG=ml(),y5e=Le().coercePattern;vG.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=fG(r,"marker");l&&cG(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",p5e.defaultLine),fG(r,"marker.line")&&cG(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),y5e(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var Ju=N((CIe,gG)=>{"use strict";var hG=Rr(),Wc=Le(),dG=Tr(),m5e=br(),g5e=K_(),b5e=Sc(),x5e=Cw(),_5e=m0(),pG=Zu(),sg=Wc.coerceFont;function w5e(e,r,t,a){function n(u,f){return Wc.coerce(e,r,pG,u,f)}var i=g5e(e,r,a,n);if(!i){r.visible=!1;return}b5e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");mG(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),x5e(e,r,n,t,a);var l=(r.marker.line||{}).color,s=m5e.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||dG.defaultLine,{axis:"y"}),s(e,r,l||dG.defaultLine,{axis:"x",inherit:"y"}),Wc.coerceSelectionMarkerOpacity(r,n)}function T5e(e,r){var t,a;function n(l,s){return Wc.coerce(a._input,a,pG,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&hG(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function mG(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",y=d||n==="outside";if(p||y){var m=sg(a,"textfont",t.font),x=Wc.extendFlat({},m),T=e.textfont&&e.textfont.color,_=!T;if(_&&delete x.color,sg(a,"insidetextfont",x),v){var b=Wc.extendFlat({},m);_&&delete b.color,sg(a,"pathbar.textfont",b)}y&&sg(a,"outsidetextfont",m),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}gG.exports={supplyDefaults:w5e,crossTraceDefaults:T5e,handleText:mG,validateCornerradius:yG}});var Lw=N((LIe,bG)=>{"use strict";var A5e=br(),M5e=zr(),k5e=Le(),S5e=lg(),q5e=Ju().validateCornerradius;bG.exports=function(e,r,t){function a(y,m){return k5e.coerce(e,r,S5e,y,m)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=M5e.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=q5e(p)}});var ug=N((EIe,xG)=>{"use strict";var jc=Le();xG.exports=function(r,t){for(var a=0;a{"use strict";var _G=zr(),wG=Cc(),TG=Xn().hasColorscale,AG=tc(),C5e=ug(),L5e=bm();MG.exports=function(r,t){var a=_G.getFromId(r,t.xaxis||"x"),n=_G.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=wG(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=wG(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p{"use strict";var E5e=Sr(),D5e=Le();function R5e(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=E5e.select(this).select("text");D5e.setTransormAndDisplay(u,s)}})}}function P5e(e,r,t){if(t.uniformtext.mode){var a=SG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var N5e=Rr(),I5e=Ln(),CG=Le().isArrayOrTypedArray;$u.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};$u.coerceNumber=function(e,r,t){if(N5e(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};$u.coerceColor=function(e,r,t){return I5e(r).isValid()?r:t!==void 0?t:e.dflt};$u.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};$u.getValue=function(e,r){var t;return CG(e)?r{"use strict";var O0=Sr(),z5e=Tr(),B0=Yr(),LG=Le(),EG=br(),DG=z0().resizeText,Ew=Zu(),O5e=Ew.textfont,B5e=Ew.insidetextfont,H5e=Ew.outsidetextfont,Wa=fg();function U5e(e){var r=O0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");DG(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&O0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=O0.select(this),o=n[0].trace;RG(i,o,e)}),EG.getComponentMethod("errorbars","style")(r)}function RG(e,r,t){B0.pointStyle(e.selectAll("path"),r,t),PG(e,r,t)}function PG(e,r,t){e.selectAll("text").each(function(a){var n=O0.select(this),i=LG.ensureUniformFontSize(t,FG(n,a,r,t));B0.font(n,i)})}function G5e(e,r,t){var a=r[0].trace;a.selectedpoints?V5e(t,a,e):(RG(t,a,e),EG.getComponentMethod("errorbars","style")(t))}function V5e(e,r,t){B0.selectedPointStyle(e.selectAll("path"),r),Y5e(e.selectAll("text"),r,t)}function Y5e(e,r,t){e.each(function(a){var n=O0.select(this),i;if(a.selected){i=LG.ensureUniformFontSize(t,FG(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),B0.font(n,i)}else B0.selectedTextStyle(n,r)})}function FG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=OG(r,t);i=IG(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=zG(t,r.i,n));return i}function NG(e,r,t){return Dw(O5e,e.textfont,r,t)}function IG(e,r,t,a){var n=NG(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:z5e.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),Dw(B5e,e.insidetextfont,r,n)}function zG(e,r,t){var a=NG(e,r,t);return Dw(H5e,e.outsidetextfont,r,a)}function Dw(e,r,t,a){r=r||{};var n=Wa.getValue(r.family,t),i=Wa.getValue(r.size,t),o=Wa.getValue(r.color,t),l=Wa.getValue(r.weight,t),s=Wa.getValue(r.style,t),u=Wa.getValue(r.variant,t),f=Wa.getValue(r.textcase,t),c=Wa.getValue(r.lineposition,t),v=Wa.getValue(r.shadow,t);return{family:Wa.coerceString(e.family,n,a.family),size:Wa.coerceNumber(e.size,i,a.size),color:Wa.coerceColor(e.color,o,a.color),weight:Wa.coerceString(e.weight,l,a.weight),style:Wa.coerceString(e.style,s,a.style),variant:Wa.coerceString(e.variant,u,a.variant),textcase:Wa.coerceString(e.variant,f,a.textcase),lineposition:Wa.coerceString(e.variant,c,a.lineposition),shadow:Wa.coerceString(e.variant,v,a.shadow)}}function OG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}BG.exports={style:U5e,styleTextPoints:PG,styleOnSelect:G5e,getInsideTextFont:IG,getOutsideTextFont:zG,getBarColor:OG,resizeText:DG}});var Fw=N((NIe,XG)=>{"use strict";var cg=Sr(),vg=Rr(),Fa=Le(),W5e=Ma(),j5e=Tr(),As=Yr(),X5e=br(),hg=zr().tickText,HG=z0(),Z5e=HG.recordMinTextSize,J5e=HG.clearMinTextSize,Rw=Xc(),Zc=fg(),$5e=b0(),UG=Zu(),K5e=UG.text,Q5e=UG.textposition,e_e=Eo().appendArrayPointValue,hn=$5e.TEXTPAD;function r_e(e){return e.id}function t_e(e){if(e.ids)return r_e}function Pw(e){return(e>0)-(e<0)}function Zo(e,r){return e0}function n_e(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},J5e("bar",s));var f=Fa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=cg.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",m=d.type==="funnel",x=d.type==="histogram",T=d.type==="bar",_=T||m,b=0;y&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var w=d.orientation==="h",k=VG(n),M=Fa.ensureSingle(v,"g","points"),S=t_e(d),E=M.selectAll("g.point").data(Fa.identity,S);E.enter().append("g").classed("point",!0),E.exit().remove(),E.each(function(P,R){var I=cg.select(this),z=a_e(P,o,l,w),B=z[0][0],G=z[0][1],Y=z[1][0],V=z[1][1],H=(w?G-B:V-Y)===0;H&&_&&Zc.getLineWidth(d,P)&&(H=!1),H||(H=!vg(B)||!vg(G)||!vg(Y)||!vg(V)),P.isBlank=H,H&&(w?G=B:V=Y),b&&!H&&(w?(B-=Zo(B,G)*b,G+=Zo(B,G)*b):(Y-=Zo(Y,V)*b,V+=Zo(Y,V)*b));var Z,W;if(d.type==="waterfall"){if(!H){var ee=d[P.dir].marker;Z=ee.line.width,W=ee.color}}else Z=Zc.getLineWidth(d,P),W=P.mc||d.marker.color;function oe(se){var Ae=cg.round(Z/2%1,2);return n.gap===0&&n.groupgap===0?cg.round(Math.round(se)-Ae,2):se}function le(se,Ae,Je){return Je&&se===Ae?se:Math.abs(se-Ae)>=2?oe(se):se>Ae?Math.ceil(se):Math.floor(se)}var ue=j5e.opacity(W),K=ue<1||Z>.01?oe:le;e._context.staticPlot||(B=K(B,G,w),G=K(G,B,w),Y=K(Y,V,!w),V=K(V,Y,!w));var _e=w?o.c2p:l.c2p,fe;P.s0>0?fe=P._sMax:P.s0<0?fe=P._sMin:fe=P.s1>0?P._sMax:P._sMin;function ve(se,Ae){if(!se)return 0;var Je=Math.abs(w?V-Y:G-B),dr=Math.abs(w?G-B:V-Y),Ne=K(Math.abs(_e(fe,!0)-_e(0,!0))),Te=P.hasB?Math.min(Je/2,dr/2):Math.min(Je/2,Ne),qe;if(Ae==="%"){var Be=Math.min(50,se);qe=Je*(Be/100)}else qe=se;return K(Math.max(Math.min(qe,Te),0))}var ye=T||x?ve(p.cornerradiusvalue,p.cornerradiusform):0,ce,j,Q="M"+B+","+Y+"V"+V+"H"+G+"V"+Y+"Z",X=0;if(ye&&P.s){var ie=Pw(P.s0)===0||Pw(P.s)===Pw(P.s0)?P.s1:P.s0;if(X=K(P.hasB?0:Math.abs(_e(fe,!0)-_e(ie,!0))),X0?Math.sqrt(X*(2*ye-X)):0,He=he>0?Math.max:Math.min;ce="M"+B+","+Y+"V"+(V-De*me)+"H"+He(G-(ye-X)*he,B)+"A "+ye+","+ye+" 0 0 "+Re+" "+G+","+(V-ye*me-Ce)+"V"+(Y+ye*me+Ce)+"A "+ye+","+ye+" 0 0 "+Re+" "+He(G-(ye-X)*he,B)+","+(Y+De*me)+"Z"}else if(P.hasB)ce="M"+(B+ye*he)+","+Y+"A "+ye+","+ye+" 0 0 "+Re+" "+B+","+(Y+ye*me)+"V"+(V-ye*me)+"A "+ye+","+ye+" 0 0 "+Re+" "+(B+ye*he)+","+V+"H"+(G-ye*he)+"A "+ye+","+ye+" 0 0 "+Re+" "+G+","+(V-ye*me)+"V"+(Y+ye*me)+"A "+ye+","+ye+" 0 0 "+Re+" "+(G-ye*he)+","+Y+"Z";else{j=Math.abs(V-Y)+X;var Oe=j0?Math.sqrt(X*(2*ye-X)):0,Ee=me>0?Math.max:Math.min;ce="M"+(B+Oe*he)+","+Y+"V"+Ee(V-(ye-X)*me,Y)+"A "+ye+","+ye+" 0 0 "+Re+" "+(B+ye*he-Ue)+","+V+"H"+(G-ye*he+Ue)+"A "+ye+","+ye+" 0 0 "+Re+" "+(G-Oe*he)+","+Ee(V-(ye-X)*me,Y)+"V"+Y+"Z"}}else ce=Q}else ce=Q;var ze=GG(Fa.ensureSingle(I,"path"),s,n,i);if(ze.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((G-B)*(V-Y))||H&&e._context.staticPlot?"M0,0Z":ce).call(As.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Ge=As.makePointStyleFns(d);As.singlePointStyle(P,ze,d,Ge,e)}i_e(e,r,I,c,R,B,G,Y,V,ye,X,n,i),r.layerClipId&&As.hideOutsideRangePoint(P,I.select("text"),o,l,d.xcalendar,d.ycalendar)});var D=d.cliponaxis===!1;As.setClipUrl(v,D?null:r.layerClipId,e)});X5e.getComponentMethod("errorbars","plot")(e,f,r,n)}function i_e(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function x(j,Q,X){var ie=Fa.ensureSingle(j,"text").text(Q).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(As.font,X).call(W5e.convertToTspans,e);return ie}var T=a[0].trace,_=T.orientation==="h",b=s_e(y,a,n,d,p);m=u_e(T,n);var w=c.mode==="stack"||c.mode==="relative",k=a[n],M=!w||k._outmost,S=k.hasB,E=u&&u-f>hn;if(!b||m==="none"||(k.isBlank||i===o||l===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var D=y.font,P=Rw.getBarColor(a[n],T),R=Rw.getInsideTextFont(T,n,D,P),I=Rw.getOutsideTextFont(T,n,D),z=T.insidetextanchor||"end",B=t.datum();_?d.type==="log"&&B.s0<=0&&(d.range[0]0&&oe>0,K;E?S?K=Ku(V-2*u,H,ee,oe,_)||Ku(V,H-2*u,ee,oe,_):_?K=Ku(V-(u-f),H,ee,oe,_)||Ku(V,H-2*(u-f),ee,oe,_):K=Ku(V,H-(u-f),ee,oe,_)||Ku(V-2*(u-f),H,ee,oe,_):K=Ku(V,H,ee,oe,_),ue&&K?m="inside":(m="outside",Z.remove(),Z=null)}else m="inside";if(!Z){le=Fa.ensureUniformFontSize(e,m==="outside"?I:R),Z=x(t,b,le);var _e=Z.attr("transform");if(Z.attr("transform",""),W=As.bBox(Z.node()),ee=W.width,oe=W.height,Z.attr("transform",_e),ee<=0||oe<=0){Z.remove();return}}var fe=T.textangle,ve,ye;m==="outside"?(ye=T.constraintext==="both"||T.constraintext==="outside",ve=l_e(i,o,l,s,W,{isHorizontal:_,constrained:ye,angle:fe})):(ye=T.constraintext==="both"||T.constraintext==="inside",ve=jG(i,o,l,s,W,{isHorizontal:_,constrained:ye,angle:fe,anchor:z,hasB:S,r:u,overhead:f})),ve.fontSize=le.size,Z5e(T.type==="histogram"?"bar":T.type,ve,y),k.transform=ve;var ce=GG(Z,y,c,v);Fa.setTransormAndDisplay(ce,ve)}function Ku(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function YG(e){return e==="auto"?0:e}function WG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function jG(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,y=i.hasB,m=i.r,x=i.overhead,T=n.width,_=n.height,b=Math.abs(r-e),w=Math.abs(a-t),k=b>2*hn&&w>2*hn?hn:0;b-=2*k,w-=2*k;var M=YG(s);s==="auto"&&!(T<=b&&_<=w)&&(T>b||_>w)&&(!(T>w||_>b)||T<_!=bhn){var P=o_e(e,r,t,a,S,m,x,o,y);E=P.scale,D=P.pad}else E=1,l&&(E=Math.min(1,b/S.x,w/S.y)),D=0;var R=n.left*p+n.right*d,I=(n.top+n.bottom)/2,z=(e+hn)*p+(r-hn)*d,B=(t+a)/2,G=0,Y=0;if(c||f){var V=(o?S.x:S.y)/2;m&&(f||y)&&(k+=D);var H=o?Zo(e,r):Zo(t,a);o?c?(z=e+H*k,G=-H*V):(z=r-H*k,G=H*V):c?(B=t+H*k,Y=-H*V):(B=a-H*k,Y=H*V)}return{textX:R,textY:I,targetX:z,targetY:B,anchorX:G,anchorY:Y,scale:E,rotate:M}}function o_e(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*hn),f=Math.max(0,Math.abs(a-t)-2*hn),c=i-hn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,y,m,x,T,_;return n.y/n.x>=f/(u-d)?T=f/n.y:n.y/n.x<=(f-p)/u?T=u/n.x:!s&&l?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,T=(-m+Math.sqrt(m*m-4*y*x))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,T=(-m+Math.sqrt(m*m-4*y*x))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,T=(-m+Math.sqrt(m*m-4*y*x))/(2*y)),T=Math.min(1,T),l?_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*T)/2)*(c-(f-n.y*T)/2)))-o):_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*T)/2)*(c-(u-n.x*T)/2)))-o),{scale:T,pad:_}}function l_e(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*hn?hn:0:d=c>2*hn?hn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var y=YG(s),m=WG(n,y),x=(o?m.x:m.y)/2,T=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+r)/2,w=(t+a)/2,k=0,M=0,S=o?Zo(r,e):Zo(t,a);return o?(b=r-S*d,k=S*x):(w=a+S*d,M=-S*x),{textX:T,textY:_,targetX:b,targetY:w,anchorX:k,anchorY:M,scale:p,rotate:y}}function s_e(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=f_e(e,r,t,a,n):i.textinfo?l=c_e(r,t,a,n):l=Zc.getValue(i.text,t),Zc.coerceString(K5e,l)}function u_e(e,r){var t=Zc.getValue(e.textposition,r);return Zc.coerceEnumerated(Q5e,t)}function f_e(e,r,t,a,n){var i=r[0].trace,o=Fa.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function y(k){return hg(v,v.c2l(k),!0).text}function m(k){return hg(p,p.c2l(k),!0).text}var x=r[t],T={};T.label=x.p,T.labelLabel=T[c+"Label"]=y(x.p);var _=Fa.castOption(i,x.i,"text");(_===0||_)&&(T.text=_),T.value=x.s,T.valueLabel=T[d+"Label"]=m(x.s);var b={};e_e(b,i,x.i),(l||b.x===void 0)&&(b.x=f?T.value:T.label),(l||b.y===void 0)&&(b.y=f?T.label:T.value),(l||b.xLabel===void 0)&&(b.xLabel=f?T.valueLabel:T.labelLabel),(l||b.yLabel===void 0)&&(b.yLabel=f?T.labelLabel:T.valueLabel),s&&(T.delta=+x.rawS||x.s,T.deltaLabel=m(T.delta),T.final=x.v,T.finalLabel=m(T.final),T.initial=T.final-T.delta,T.initialLabel=m(T.initial)),u&&(T.value=x.s,T.valueLabel=m(T.value),T.percentInitial=x.begR,T.percentInitialLabel=Fa.formatPercent(x.begR),T.percentPrevious=x.difR,T.percentPreviousLabel=Fa.formatPercent(x.difR),T.percentTotal=x.sumR,T.percenTotalLabel=Fa.formatPercent(x.sumR));var w=Fa.castOption(i,x.i,"customdata");return w&&(T.customdata=w),Fa.texttemplateString({data:[b,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:o})}function c_e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(w){var k=i?a:t;return hg(k,w,!0).text}function u(w){var k=i?t:a;return hg(k,+w,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,y=function(w){return v.indexOf(w)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(p=Fa.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var m=+c.rawS||c.s,x=c.v,T=x-m;y("initial")&&d.push(u(T)),y("delta")&&d.push(u(m)),y("final")&&d.push(u(x))}if(l){y("value")&&d.push(u(c.s));var _=0;y("percent initial")&&_++,y("percent previous")&&_++,y("percent total")&&_++;var b=_>1;y("percent initial")&&(p=Fa.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Fa.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Fa.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}XG.exports={plot:n_e,toMoveInsideBar:jG}});var Iw=N((IIe,KG)=>{"use strict";var H0=xn(),v_e=br(),ZG=Tr(),h_e=Le().fillText,d_e=fg().getLineWidth,Nw=zr().hoverLabelText,p_e=Ft().BADNUM;function y_e(e,r,t,a,n){var i=JG(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=$G(l,s),v_e.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function JG(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,y,m,x,T;o.orientation==="h"?(v=t,d=r,p="y",y="x",m=B,x=R):(v=r,d=t,p="x",y="y",x=B,m=R);var _=o[p+"period"],b=s||_;function w(K){return M(K,-1)}function k(K){return M(K,1)}function M(K,_e){var fe=K.w;return K[p]+_e*fe/2}function S(K){return K[p+"End"]-K[p+"Start"]}var E=s?w:_?function(K){return K.p-S(K)/2}:function(K){return Math.min(w(K),K.p-l.bardelta/2)},D=s?k:_?function(K){return K.p+S(K)/2}:function(K){return Math.max(k(K),K.p+l.bardelta/2)};function P(K,_e,fe){return n.finiteRange&&(fe=0),H0.inbox(K-v,_e-v,fe+Math.min(1,Math.abs(_e-K)/T)-1)}function R(K){return P(E(K),D(K),f)}function I(K){return P(w(K),k(K),c)}function z(K){var _e=K[y];if(u){var fe=Math.abs(K.rawS)||0;d>0?_e+=fe:d<0&&(_e-=fe)}return _e}function B(K){var _e=d,fe=K.b,ve=z(K);return H0.inbox(fe-_e,ve-_e,f+(ve-_e)/(ve-fe)-1)}function G(K){var _e=d,fe=K.b,ve=z(K);return H0.inbox(fe-_e,ve-_e,c+(ve-_e)/(ve-fe)-1)}var Y=e[p+"a"],V=e[y+"a"];T=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function H(K){return(m(K)+x(K))/2}var Z=H0.getDistanceFunction(a,m,x,H);if(H0.getClosest(i,Z,e),e.index!==!1&&i[e.index].p!==p_e){b||(E=function(K){return Math.min(w(K),K.p-l.bargroupwidth/2)},D=function(K){return Math.max(k(K),K.p+l.bargroupwidth/2)});var W=e.index,ee=i[W],oe=o.base?ee.b+ee.s:ee.s;e[y+"0"]=e[y+"1"]=V.c2p(ee[y],!0),e[y+"LabelVal"]=oe;var le=l.extents[l.extents.round(ee.p)];e[p+"0"]=Y.c2p(s?E(ee):le[0],!0),e[p+"1"]=Y.c2p(s?D(ee):le[1],!0);var ue=ee.orig_p!==void 0;return e[p+"LabelVal"]=ue?ee.orig_p:ee.p,e.labelLabel=Nw(Y,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=Nw(V,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=Nw(V,ee.b,o[y+"hoverformat"]),e.spikeDistance=(G(ee)+I(ee))/2,e[p+"Spike"]=Y.c2p(ee.p,!0),h_e(ee,o,e),e.hovertemplate=o.hovertemplate,e}}function $G(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=d_e(e,r);if(ZG.opacity(t))return t;if(ZG.opacity(a)&&n)return a}KG.exports={hoverPoints:y_e,hoverOnBars:JG,getTraceColor:$G}});var eV=N((zIe,QG)=>{"use strict";QG.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var zw=N((OIe,rV)=>{"use strict";rV.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";tV.exports={attributes:Zu(),layoutAttributes:lg(),supplyDefaults:Ju().supplyDefaults,crossTraceDefaults:Ju().crossTraceDefaults,supplyLayoutDefaults:Lw(),calc:kG(),crossTraceCalc:Tm().crossTraceCalc,colorbar:T0(),arraysToCalcdata:ug(),plot:Fw().plot,style:Xc().style,styleOnSelect:Xc().styleOnSelect,hoverPoints:Iw().hoverPoints,eventData:eV(),selectPoints:zw(),moduleType:"trace",name:"bar",basePlotModule:Ei(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var iV=N((HIe,nV)=>{"use strict";nV.exports=aV()});var dg=N((UIe,uV)=>{"use strict";var g_e=Vy(),Pi=Ai(),oV=Zu(),b_e=fi(),lV=no().axisHoverFormat,{hovertemplateAttrs:x_e,templatefallbackAttrs:__e}=Wn(),Cl=bt().extendFlat,Jc=Pi.marker,sV=Jc.line;uV.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:Pi.xperiod,yperiod:Pi.yperiod,xperiod0:Pi.xperiod0,yperiod0:Pi.yperiod0,xperiodalignment:Pi.xperiodalignment,yperiodalignment:Pi.yperiodalignment,xhoverformat:lV("x"),yhoverformat:lV("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Cl({},Jc.symbol,{arrayOk:!1,editType:"plot"}),opacity:Cl({},Jc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Cl({},Jc.angle,{arrayOk:!1,editType:"calc"}),size:Cl({},Jc.size,{arrayOk:!1,editType:"calc"}),color:Cl({},Jc.color,{arrayOk:!1,editType:"style"}),line:{color:Cl({},sV.color,{arrayOk:!1,dflt:b_e.defaultLine,editType:"style"}),width:Cl({},sV.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:g_e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:oV.offsetgroup,alignmentgroup:oV.alignmentgroup,selected:{marker:Pi.selected.marker,editType:"style"},unselected:{marker:Pi.unselected.marker,editType:"style"},text:Cl({},Pi.text,{}),hovertext:Cl({},Pi.hovertext,{}),hovertemplate:x_e({}),hovertemplatefallback:__e(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Pi.zorder}});var pg=N((GIe,fV)=>{"use strict";fV.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var G0=N((VIe,dV)=>{"use strict";var Fi=Le(),w_e=br(),T_e=Tr(),A_e=Sc(),M_e=m0(),cV=N1(),U0=dg();function k_e(e,r,t,a){function n(p,y){return Fi.coerce(e,r,U0,p,y)}if(vV(e,r,n,a),r.visible!==!1){A_e(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",T_e.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else Fi.validate(e.notchwidth,U0.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),hV(e,r,n,{prefix:"box"}),n("zorder")}}function vV(e,r,t,a){function n(D){var P=0;return D&&D.length&&(P+=1,Fi.isArrayOrTypedArray(D[0])&&D[0].length&&(P+=1)),P}function i(D){return Fi.validate(e[D],U0[D])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(Fi.minRowLength(u),Fi.minRowLength(f),Fi.minRowLength(c))}else r._hasPreCompStats=!1;var v=n(o),d=n(l),p=v&&Fi.minRowLength(o),y=d&&Fi.minRowLength(l),m=a.calendar,x={autotypenumbers:a.autotypenumbers},T,_;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var b=i("x0")||i("dx"),w=i("y0")||i("dy");w&&!b?T="h":T="v",_=s;break;case"10":T="v",_=Math.min(s,y);break;case"20":T="h",_=Math.min(s,l.length);break;case"01":T="h",_=Math.min(s,p);break;case"02":T="v",_=Math.min(s,o.length);break;case"12":T="v",_=Math.min(s,y,o.length);break;case"21":T="h",_=Math.min(s,l.length,p);break;case"11":_=0;break;case"22":var k=!1,M;for(M=0;M0?(T="v",d>0?_=Math.min(y,p):_=Math.min(p)):d>0?(T="h",_=Math.min(y)):_=0;if(!_){r.visible=!1;return}r._length=_;var S=t("orientation",T);r._hasPreCompStats?S==="v"&&d===0?(t("x0",0),t("dx",1)):S==="h"&&v===0&&(t("y0",0),t("dy",1)):S==="v"&&d===0?t("x0"):S==="h"&&v===0&&t("y0");var E=w_e.getComponentMethod("calendars","handleTraceDefaults");E(e,r,["x","y"],a)}function hV(e,r,t,a){var n=a.prefix,i=Fi.coerce2(e,r,U0,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(t("hovertemplate"),t("hovertemplatefallback")),Fi.coerceSelectionMarkerOpacity(r,t)}function S_e(e,r){var t,a;function n(s){return Fi.coerce(a._input,a,U0,s)}for(var i=0;i{"use strict";var q_e=br(),C_e=Le(),L_e=pg();function pV(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var Hw=Rr(),yg=zr(),D_e=Cc(),sa=Le(),ni=Ft().BADNUM,Ll=sa._;MV.exports=function(r,t){var a=r._fullLayout,n=yg.getFromId(r,t.xaxis||"x"),i=yg.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var y=R_e(t,d,v,a[l]),m=y[0],x=y[1],T=sa.distinctVals(m,v),_=T.vals,b=T.minDiff/2,w,k,M,S,E,D,P=(t.boxpoints||t.points)==="all"?sa.identity:function(Re){return Re.vw.uf};if(t._hasPreCompStats){var R=t[c],I=function(Re){return f.d2c((t[Re]||[])[s])},z=1/0,B=-1/0;for(s=0;s=w.q1&&w.q3>=w.med){var Y=I("lowerfence");w.lf=Y!==ni&&Y<=w.q1?Y:xV(w,M,S);var V=I("upperfence");w.uf=V!==ni&&V>=w.q3?V:_V(w,M,S);var H=I("mean");w.mean=H!==ni?H:S?sa.mean(M,S):(w.q1+w.q3)/2;var Z=I("sd");w.sd=H!==ni&&Z>=0?Z:S?sa.stdev(M,S,w.mean):w.q3-w.q1,w.lo=wV(w),w.uo=TV(w);var W=I("notchspan");W=W!==ni&&W>0?W:AV(w,S),w.ln=w.med-W,w.un=w.med+W;var ee=w.lf,oe=w.uf;t.boxpoints&&M.length&&(ee=Math.min(ee,M[0]),oe=Math.max(oe,M[S-1])),t.notched&&(ee=Math.min(ee,w.ln),oe=Math.max(oe,w.un)),w.min=ee,w.max=oe}else{sa.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+w.q1,"median = "+w.med,"q3 = "+w.q3].join(` +`));var le;w.med!==ni?le=w.med:w.q1!==ni?w.q3!==ni?le=(w.q1+w.q3)/2:le=w.q1:w.q3!==ni?le=w.q3:le=0,w.med=le,w.q1=w.q3=le,w.lf=w.uf=le,w.mean=w.sd=le,w.ln=w.un=le,w.min=w.max=le}z=Math.min(z,w.min),B=Math.max(B,w.max),w.pts2=k.filter(P),o.push(w)}}t._extremes[f._id]=yg.findExtremes(f,[z,B],{padded:!0})}else{var ue=f.makeCalcdata(t,c),K=P_e(_,b),_e=_.length,fe=F_e(_e);for(s=0;s=0&&ve<_e&&(E={v:D,i:s},mV(E,t,s),fe[ve].push(E))}var ye=1/0,ce=-1/0,j=t.quartilemethod,Q=j==="exclusive",X=j==="inclusive";for(s=0;s<_e;s++)if(fe[s].length>0){if(w={},w.pos=w[d]=_[s],k=w.pts=fe[s].sort(gV),M=w[c]=k.map(bV),S=M.length,w.min=M[0],w.max=M[S-1],w.mean=sa.mean(M,S),w.sd=sa.stdev(M,S,w.mean)*t.sdmultiple,w.med=sa.interp(M,.5),S%2&&(Q||X)){var ie,he;Q?(ie=M.slice(0,S/2),he=M.slice(S/2+1)):X&&(ie=M.slice(0,S/2+1),he=M.slice(S/2)),w.q1=sa.interp(ie,.5),w.q3=sa.interp(he,.5)}else w.q1=sa.interp(M,.25),w.q3=sa.interp(M,.75);w.lf=xV(w,M,S),w.uf=_V(w,M,S),w.lo=wV(w),w.uo=TV(w);var me=AV(w,S);w.ln=w.med-me,w.un=w.med+me,ye=Math.min(ye,w.ln),ce=Math.max(ce,w.un),w.pts2=k.filter(P),o.push(w)}t.notched&&sa.isTypedArray(ue)&&(ue=Array.from(ue)),t._extremes[f._id]=yg.findExtremes(f,t.notched?ue.concat([ye,ce]):ue,{padded:!0})}return N_e(o,t),o.length>0?(o[0].t={num:a[l],dPos:b,posLetter:d,valLetter:c,labels:{med:Ll(r,"median:"),min:Ll(r,"min:"),q1:Ll(r,"q1:"),q3:Ll(r,"q3:"),max:Ll(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?Ll(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):Ll(r,"mean:"),lf:Ll(r,"lower fence:"),uf:Ll(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function R_e(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=D_e(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||Hw(e.name)&&["linear","log"].indexOf(t.type)!==-1||sa.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d{"use strict";var kV=zr(),I_e=Le(),z_e=Fu().getAxisGroup,SV=["v","h"];function O_e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,T=1-i[e+"gap"],_=1-i[e+"groupgap"];for(s=0;s0;if(M==="positive"?(V=S*(k?1:.5),W=Z,H=W=D):M==="negative"?(V=W=D,H=S*(k?1:.5),ee=Z):(V=H=S,W=ee=Z),fe){var ve=b.pointpos,ye=b.jitter,ce=b.marker.size/2,j=0;ve+ye>=0&&(j=Z*(ve+ye),j>V?(_e=!0,ue=ce,oe=j):j>W&&(ue=ce,oe=V)),j<=V&&(oe=V);var Q=0;ve-ye<=0&&(Q=-Z*(ve-ye),Q>H?(_e=!0,K=ce,le=Q):Q>ee&&(K=ce,le=H)),Q<=H&&(le=H)}else oe=V,le=H;var X=new Array(f.length);for(u=0;u{"use strict";var $c=Sr(),Qu=Le(),B_e=Yr(),LV=5,H_e=.01;function U_e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Qu.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=$c.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),EV(s,{pos:v,val:d},c,f,n),DV(s,{x:i,y:o},c,f),RV(s,{pos:v,val:d},c,f)})}function EV(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,y=p?1-2*t.notchwidth:1,m,x;Array.isArray(a.bdPos)?(m=a.bdPos[0],x=a.bdPos[1]):(m=a.bdPos,x=a.bdPos);var T=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Qu.identity:[]);T.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),T.exit().remove(),T.each(function(_){if(_.empty)return $c.select(this).attr("d","M0,0Z");var b=l.c2l(_.pos+u,!0),w=l.l2p(b-m)+c,k=l.l2p(b+x)+c,M=s?(w+k)/2:l.l2p(b)+c,S=t.whiskerwidth,E=s?w*S+(1-S)*M:l.l2p(b-f)+c,D=s?k*S+(1-S)*M:l.l2p(b+f)+c,P=l.l2p(b-m*y)+c,R=l.l2p(b+x*y)+c,I=t.sizemode==="sd",z=o.c2p(I?_.mean-_.sd:_.q1,!0),B=I?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),G=Qu.constrain(I?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(z,B)+1,Math.max(z,B)-1),Y=_.lf===void 0||t.boxpoints===!1||I,V=o.c2p(Y?_.min:_.lf,!0),H=o.c2p(Y?_.max:_.uf,!0),Z=o.c2p(_.ln,!0),W=o.c2p(_.un,!0);i?$c.select(this).attr("d","M"+G+","+P+"V"+R+"M"+z+","+w+"V"+k+(p?"H"+Z+"L"+G+","+R+"L"+W+","+k:"")+"H"+B+"V"+w+(p?"H"+W+"L"+G+","+P+"L"+Z+","+w:"")+"Z"+(d?"M"+z+","+M+"H"+V+"M"+B+","+M+"H"+H+(v===0?"":"M"+V+","+E+"V"+D+"M"+H+","+E+"V"+D):"")):$c.select(this).attr("d","M"+P+","+G+"H"+R+"M"+w+","+z+"H"+k+(p?"V"+Z+"L"+R+","+G+"L"+k+","+W:"")+"V"+B+"H"+w+(p?"V"+W+"L"+P+","+G+"L"+w+","+Z:"")+"Z"+(d?"M"+M+","+z+"V"+V+"M"+M+","+B+"V"+H+(v===0?"":"M"+E+","+V+"H"+D+"M"+E+","+H+"H"+D):""))})}function DV(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Qu.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var d,p=v.pts2,y=Math.max((v.max-v.min)/10,v.q3-v.q1),m=y*1e-9,x=y*H_e,T=[],_=0,b;if(t.jitter){if(y===0)for(_=1,T=new Array(p.length),d=0;dv.lo&&(D.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(B_e.translatePoints,n,i)}function RV(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Qu.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,x=o?(y+m)/2:i.l2p(p)+s,T=n.c2p(d.mean,!0),_=n.c2p(d.mean-d.sd,!0),b=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?$c.select(this).attr("d","M"+T+","+y+"V"+m+(u==="sd"?"m0,0L"+_+","+x+"L"+T+","+y+"L"+b+","+x+"Z":"")):$c.select(this).attr("d","M"+y+","+T+"H"+m+(u==="sd"?"m0,0L"+x+","+_+"L"+y+","+T+"L"+x+","+b+"Z":""))})}PV.exports={plot:U_e,plotBoxAndWhiskers:EV,plotPoints:DV,plotBoxMean:RV}});var Xw=N((ZIe,FV)=>{"use strict";var Yw=Sr(),Ww=Tr(),jw=Yr();function G_e(e,r,t){var a=t||Yw.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Yw.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(Ww.stroke,d).call(Ww.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=Yw.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(Ww.stroke,o.line.color);var f=i.selectAll("path.point");jw.pointStyle(f,o,e)}})}function V_e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?jw.selectedPointStyle(n,a):jw.pointStyle(n,a,e)}FV.exports={style:G_e,styleOnSelect:V_e}});var Jw=N((JIe,OV)=>{"use strict";var Y_e=zr(),Zw=Le(),Ms=xn(),NV=Tr(),W_e=Zw.fillText;function j_e(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(IV(e,r,t,a))),o.indexOf("points")!==-1&&(s=zV(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function IV(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,y,m,x,T,_,b,w=s.bdPos,k,M,S=s.wHover,E=function(ce){return v.c2l(ce.pos)+s.bPos-v.c2l(y)};u&&l.side!=="both"?(l.side==="positive"&&(T=function(ce){var j=E(ce);return Ms.inbox(j,j+S,_)},k=w,M=0),l.side==="negative"&&(T=function(ce){var j=E(ce);return Ms.inbox(j-S,j,_)},k=0,M=w)):(T=function(ce){var j=E(ce);return Ms.inbox(j-S,j+S,_)},k=M=w);var D;u?D=function(ce){return Ms.inbox(ce.span[0]-p,ce.span[1]-p,_)}:D=function(ce){return Ms.inbox(ce.min-p,ce.max-p,_)},l.orientation==="h"?(p=r,y=t,m=D,x=T,f="y",v=o,c="x",d=i):(p=t,y=r,m=T,x=D,f="x",v=i,c="y",d=o);var P=Math.min(1,w/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));_=e.maxHoverDistance-P,b=e.maxSpikeDistance-P;function R(ce){return(m(ce)+x(ce))/2}var I=Ms.getDistanceFunction(a,m,x,R);if(Ms.getClosest(n,I,e),e.index===!1)return[];var z=n[e.index],B=l.line.color,G=(l.marker||{}).color;NV.opacity(B)&&l.line.width?e.color=B:NV.opacity(G)&&l.boxpoints?e.color=G:e.color=l.fillcolor,e[f+"0"]=v.c2p(z.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(z.pos+s.bPos+k,!0),e[f+"LabelVal"]=z.orig_p!==void 0?z.orig_p:z.pos;var Y=f+"Spike";e.spikeDistance=R(z)*b/_,e[Y]=v.c2p(z.pos,!0);var V=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,H=l.boxpoints||l.points,Z=H&&V?["max","uf","q3","med","mean","q1","lf","min"]:H&&!V?["max","uf","q3","med","q1","lf","min"]:!H&&V?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],W=d.range[1]{"use strict";BV.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var $w=N((KIe,UV)=>{"use strict";UV.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l{"use strict";GV.exports={attributes:dg(),layoutAttributes:pg(),supplyDefaults:G0().supplyDefaults,crossTraceDefaults:G0().crossTraceDefaults,supplyLayoutDefaults:Ow().supplyLayoutDefaults,calc:Uw(),crossTraceCalc:Gw().crossTraceCalc,plot:Vw().plot,style:Xw().style,styleOnSelect:Xw().styleOnSelect,hoverPoints:Jw().hoverPoints,eventData:HV(),selectPoints:$w(),moduleType:"trace",name:"box",basePlotModule:Ei(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var WV=N((eze,YV)=>{"use strict";YV.exports=VV()});var V0=N((rze,XV)=>{"use strict";var X_e=Co(),{extendFlat:Hn}=bt(),Z_e=gn(),{axisHoverFormat:Kw}=no(),J_e=ba(),{hovertemplateAttrs:$_e,templatefallbackAttrs:jV,texttemplateAttrs:K_e}=Wn(),ii=Ai();XV.exports=Hn({z:{valType:"data_array",editType:"calc"},x:Hn({},ii.x,{impliedEdits:{xtype:"array"}}),x0:Hn({},ii.x0,{impliedEdits:{xtype:"scaled"}}),dx:Hn({},ii.dx,{impliedEdits:{xtype:"scaled"}}),y:Hn({},ii.y,{impliedEdits:{ytype:"array"}}),y0:Hn({},ii.y0,{impliedEdits:{ytype:"scaled"}}),dy:Hn({},ii.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Hn({},ii.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Hn({},ii.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Hn({},ii.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Hn({},ii.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Hn({},ii.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Hn({},ii.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:Kw("x"),yhoverformat:Kw("y"),zhoverformat:Kw("z",1),hovertemplate:$_e(),hovertemplatefallback:jV(),texttemplate:K_e({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:jV({editType:"plot"}),textfont:J_e({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Hn({},Z_e.showlegend,{dflt:!1}),zorder:ii.zorder},X_e("",{cLetter:"z",autoColorDflt:!1}))});var Qw=N((tze,JV)=>{"use strict";var Q_e=Rr(),mg=Le(),e4e=br();JV.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(mg.isArray1D(l)){s=a(i),u=a(o);var f=mg.minRowLength(s),c=mg.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=ZV(i,a),u=ZV(o,a),!r4e(l))return 0;a("transpose"),t._length=null}var v=e4e.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function ZV(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function r4e(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var $V=Le();KV.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=$V.extendFlat({},t.font,{color:"auto",size:"auto"});$V.coerceFont(r,"textfont",a)}});var e6=N((nze,QV)=>{"use strict";QV.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var tY=N((ize,rY)=>{"use strict";var eY=Le(),t4e=Qw(),a4e=Y0(),n4e=Sc(),i4e=e6(),o4e=ml(),l4e=V0();rY.exports=function(r,t,a,n){function i(l,s){return eY.coerce(r,t,l4e,l,s)}var o=t4e(r,t,i,n);if(!o){t.visible=!1;return}n4e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),a4e(i,n),i4e(r,t,i,n),i("hoverongaps"),i("connectgaps",eY.isArray1D(t.z)&&t.zsmooth!==!1),o4e(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var r6=N((oze,aY)=>{"use strict";var Kc=Rr();aY.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Kc(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Kc(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Kc(n))if(n=Number(n),Kc(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Kc(n))if(n=Number(n),Kc(t[e])){if(t[e]{"use strict";nY.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";iY.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Qc=Ft(),ef=Qc.ONEAVGYEAR,oY=Qc.ONEAVGMONTH,bg=Qc.ONEDAY,lY=Qc.ONEHOUR,sY=Qc.ONEMIN,uY=Qc.ONESEC,fY=zr().tickIncrement;hY.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(gg(u+l,u+s,n,i),gg(f+l,f+s,n,i)),v=Math.min(gg(u+o,u+l,n,i),gg(f+o,f+l,n,i)),d,p;if(c>v&&vbg){var y=d===ef?1:6,m=d===ef?"M12":"M1";return function(x,T){var _=n.c2d(x,ef,i),b=_.indexOf("-",y);b>0&&(_=_.slice(0,b));var w=n.d2c(_,0,i);if(wuY?e>bg?e>ef*1.1?ef:e>oY*1.1?oY:bg:e>lY?lY:e>sY?sY:uY:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function s4e(e,r,t,a,n,i){if(a&&e>bg){var o=vY(r,n,i),l=vY(t,n,i),s=e===ef?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function vY(e,r,t){var a=r.c2d(e,ef,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var l6=N((fze,gY)=>{"use strict";var i6=Rr(),dn=Le(),dY=br(),Ni=zr(),{hasColorscale:pY}=Xn(),yY=tc(),u4e=ug(),mY=r6(),f4e=t6(),c4e=a6(),v4e=n6();function h4e(e,r){var t=[],a=[],n=r.orientation==="h",i=Ni.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=o6(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",y=[],m=p?y:v,x=[],T=[],_=[],b=0,w=r.histnorm,k=r.histfunc,M=w.indexOf("density")!==-1,S,E,D;u.enabled&&M&&(w=w.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,I=mY.count,z=f4e[w],B=!1,G=function(j){return i.r2c(j,0,s)},Y;for(dn.isArrayOrTypedArray(r[l])&&k!=="count"&&(Y=r[l],B=k==="avg",I=mY[k]),f=G(v.start),E=G(v.end)+(f-Ni.tickIncrement(f,v.size,!1,s))/1e6;f=0&&D=ve;f--)if(a[f]){ye=f;break}for(f=ve;f<=ye;f++)if(i6(t[f])&&i6(a[f])){var ce={p:t[f],s:a[f],b:0};u.enabled||(ce.pts=_[f],W?ce.ph0=ce.ph1=_[f].length?d[_[f][0]]:t[f]:(r._computePh=!0,ce.ph0=K(y[f]),ce.ph1=K(y[f+1],!0))),fe.push(ce)}return fe.length===1&&(fe[0].width1=Ni.tickIncrement(fe[0].p,v.size,!1,s)-fe[0].p),pY(r,"marker")&&yY(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),pY(r,"marker.line")&&yY(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),u4e(fe,r),dn.isArrayOrTypedArray(r.selectedpoints)&&dn.tagSelected(fe,r,le),fe}function o6(e,r,t,a,n){var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,y,m,x=function(ue){return t.r2c(ue,0,d)},T=function(ue){return t.c2r(ue,0,d)},_=t.type==="date"?function(ue){return ue||ue===0?dn.cleanDate(ue,null,d):null}:function(ue){return i6(ue)?Number(ue):null};function b(ue,K,_e){K[ue+"Found"]?(K[ue]=_(K[ue]),K[ue]===null&&(K[ue]=_e[ue])):(y[ue]=K[ue]=_e[ue],dn.nestedProperty(c[0],i+"."+ue).set(_e[ue]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var w=[],k=!0,M=!1,S=!1;for(f=0;ft.r2l(Y)&&(H=Ni.tickIncrement(H,s.size,!0,d)),I.start=t.l2r(H),G||dn.nestedProperty(r,i+".start").set(I.start)}var Z=s.end,W=t.r2l(R.end),ee=W!==void 0;if((s.endFound||ee)&&W!==t.r2l(Z)){var oe=ee?W:dn.aggNums(Math.max,null,p);I.end=t.l2r(oe),ee||dn.nestedProperty(r,i+".start").set(I.end)}var le="autobin"+a;return r._input[le]===!1&&(r._input[i]=dn.extendFlat({},r[i]||{}),delete r._input[le],delete r[le]),[I,p]}function d4e(e,r,t,a,n){var i=e._fullLayout,o=p4e(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)l(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}gY.exports={calc:h4e,calcAllAutoBins:o6}});var kY=N((cze,MY)=>{"use strict";var bY=Le(),ev=zr(),xY=r6(),m4e=t6(),g4e=a6(),b4e=n6(),_Y=l6().calcAllAutoBins;MY.exports=function(r,t){var a=ev.getFromId(r,t.xaxis),n=ev.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(Te){return a.r2c(Te,0,i)},s=function(Te){return n.r2c(Te,0,o)},u=function(Te){return a.c2r(Te,0,i)},f=function(Te){return n.c2r(Te,0,o)},c,v,d,p,y=_Y(r,t,a,"x"),m=y[0],x=y[1],T=_Y(r,t,n,"y"),_=T[0],b=T[1],w=t._length;x.length>w&&x.splice(w,x.length-w),b.length>w&&b.splice(w,b.length-w);var k=[],M=[],S=[],E=typeof m.size=="string",D=typeof _.size=="string",P=[],R=[],I=E?P:m,z=D?R:_,B=0,G=[],Y=[],V=t.histnorm,H=t.histfunc,Z=V.indexOf("density")!==-1,W=H==="max"||H==="min",ee=W?null:0,oe=xY.count,le=m4e[V],ue=!1,K=[],_e=[],fe="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";fe&&H!=="count"&&(ue=H==="avg",oe=xY[H]);var ve=m.size,ye=l(m.start),ce=l(m.end)+(ye-ev.tickIncrement(ye,ve,!1,i))/1e6;for(c=ye;c=0&&d=0&&p{"use strict";var Jo=Le(),SY=Ft().BADNUM,qY=Cc();CY.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=qY(r,t,n,s).vals,u=qY(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Jo.isArray1D(f),v=r.hovertext,d=v!==void 0&&Jo.isArray1D(v),p,y,m=Jo.distinctVals(s),x=m.vals,T=Jo.distinctVals(u),_=T.vals,b=[],w,k,M=_.length,S=x.length;for(p=0;p{"use strict";var x4e=Rr(),_4e=Le(),xg=Ft().BADNUM;EY.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(x){if(x4e(x))return+x}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var w4e=Le(),RY=.01,T4e=[[-1,0],[1,0],[0,-1],[0,1]];function A4e(e){return .5-.25*Math.min(1,e*.5)}FY.exports=function(r,t){var a=1,n;for(PY(r,t),n=0;nRY;n++)a=PY(r,t,A4e(a));return a>RY&&w4e.log("interp2d didn't converge quickly",a),r};function PY(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,y,m;for(l=0;ly&&(a=Math.max(a,Math.abs(e[i][o]-p)/(m-y))))}return a}});var zY=N((pze,IY)=>{"use strict";var M4e=Le().maxRowLength;IY.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=M4e(r),u,f,c,v,d,p,y,m;for(f=0;f=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(y[v]=[f,c,p],n.splice(d,1),m=!0);if(!m)throw"findEmpties iterated with no new neighbors";for(v in y)a[v]=y[v],t.push(y[v])}return t.sort(function(x,T){return T[2]-x[2]})}});var UY=N((yze,HY)=>{"use strict";var OY=br(),BY=Le().isArrayOrTypedArray;HY.exports=function(r,t,a,n,i,o){var l=[],s=OY.traceIs(r,"contour"),u=OY.traceIs(r,"histogram"),f,c,v,d=BY(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v{"use strict";var GY=br(),s6=Le(),_g=zr(),VY=Cc(),k4e=kY(),S4e=tc(),q4e=LY(),C4e=DY(),L4e=NY(),E4e=zY(),wg=UY(),u6=Ft().BADNUM;WY.exports=function(r,t){var a=_g.getFromId(r,t.xaxis||"x"),n=_g.getFromId(r,t.yaxis||"y"),i=GY.traceIs(t,"contour"),o=GY.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,y,m,x,T;if(a._minDtick=0,n._minDtick=0,o)T=k4e(r,t),c=T.orig_x,s=T.x,u=T.x0,f=T.dx,y=T.orig_y,v=T.y,d=T.y0,p=T.dy,m=T.z;else{var _=t.z;s6.isArray1D(_)?(q4e(t,a,n,"x","y",["z"]),s=t._x,v=t._y,_=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],y=t.y?n.makeCalcdata(t,"y"):[],s=VY(t,a,"x",c).vals,v=VY(t,n,"y",y).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,m=C4e(_,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(m=D4e(s,v,m),o||(s=YY(s),v=YY(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=E4e(m),L4e(m,t._emptypoints));function b(I){l=t._input.zsmooth=t.zsmooth=!1,s6.warn('cannot use zsmooth: "fast": '+I)}function w(I){if(I.length>1){var z=(I[I.length-1]-I[0])/(I.length-1),B=Math.abs(z/100);for(x=0;xB)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&b("log axis found"):w(s)?w(v)?t._islinear=!0:l==="fast"&&b("y scale is not linear"):l==="fast"&&b("x scale is not linear");var k=s6.maxRowLength(m),M=t.xtype==="scaled"?"":s,S=wg(t,M,u,f,k,a),E=t.ytype==="scaled"?"":v,D=wg(t,E,d,p,m.length,n);t._extremes[a._id]=_g.findExtremes(a,S),t._extremes[n._id]=_g.findExtremes(n,D);var P={x:S,y:D,z:m,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&y&&(P.orig_y=y),M&&M.length===S.length-1&&(P.xCenter=M),E&&E.length===D.length-1&&(P.yCenter=E),o&&(P.xRanges=T.xRanges,P.yRanges=T.yRanges,P.pts=T.pts),i||S4e(r,t,{vals:m,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=wg(R,M,u,f,k,a),P.yfill=wg(R,E,d,p,m.length,n)}return[P]};function YY(e){for(var r=[],t=e.length,a=0;a{"use strict";Ag.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];Ag.STYLE=Ag.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var c6=N((bze,XY)=>{"use strict";var jY=Mg(),R4e=Yr(),f6=Le(),rv=null;function P4e(){if(rv!==null)return rv;rv=!1;var e=f6.isSafari()||f6.isMacWKWebView()||f6.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(jY.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")rv=r.some(function(o){return t.apply(null,o)});else{var a=R4e.tester.append("image").attr("style",jY.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;rv=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return rv}XY.exports=P4e});var kg=N((xze,aW)=>{"use strict";var ZY=Sr(),F4e=Ln(),N4e=br(),I4e=Yr(),z4e=zr(),Ii=Le(),JY=Ma(),O4e=x4(),B4e=Tr(),H4e=Lo().extractOpts,U4e=Lo().makeColorScaleFuncFromTrace,G4e=pl(),V4e=Ga(),v6=V4e.LINE_SPACING,Y4e=c6(),W4e=Mg().STYLE,rW="heatmap-label";function tW(e){return e.selectAll("g."+rW)}function $Y(e){tW(e).remove()}aW.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;Ii.makeTraceGroups(a,t,"hm").each(function(o){var l=ZY.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,y=s.xCenter,m=s.yCenter,x=N4e.traceIs(u,"contour"),T=x?"best":u.zsmooth,_=v.length,b=Ii.maxRowLength(v),w=!1,k=!1,M,S,E,D,P,R,I,z;for(R=0;M===void 0&&R0;)S=n.c2p(d[R]),R--;for(S0;)P=i.c2p(p[R]),R--;P=n._length||S<=0||D>=i._length||P<=0;if(H){var Z=l.selectAll("image").data([]);Z.exit().remove(),$Y(l);return}var W,ee;B==="fast"?(W=b,ee=_):(W=Y,ee=V);var oe=document.createElement("canvas");oe.width=W,oe.height=ee;var le=oe.getContext("2d",{willReadFrequently:!0}),ue=U4e(u,{noNumericCheck:!0,returnArray:!0}),K,_e;B==="fast"?(K=w?function(vt){return b-1-vt}:Ii.identity,_e=k?function(vt){return _-1-vt}:Ii.identity):(K=function(vt){return Ii.constrain(Math.round(n.c2p(d[vt])-M),0,Y)},_e=function(vt){return Ii.constrain(Math.round(i.c2p(p[vt])-D),0,V)});var fe=_e(0),ve=[fe,fe],ye=w?0:1,ce=k?0:1,j=0,Q=0,X=0,ie=0,he,me,Re,De,Ce;function He(vt,kn){if(vt!==void 0){var Pt=ue(vt);return Pt[0]=Math.round(Pt[0]),Pt[1]=Math.round(Pt[1]),Pt[2]=Math.round(Pt[2]),j+=kn,Q+=Pt[0]*kn,X+=Pt[1]*kn,ie+=Pt[2]*kn,Pt}return[0,0,0,0]}function Oe(vt,kn,Pt,Ws){var yn=vt[Pt.bin0];if(yn===void 0)return He(void 0,1);var ji=vt[Pt.bin1],Wt=kn[Pt.bin0],Xi=kn[Pt.bin1],Bl=ji-yn||0,Hl=Wt-yn||0,mr;return ji===void 0?Xi===void 0?mr=0:Wt===void 0?mr=2*(Xi-yn):mr=(2*Xi-Wt-yn)*2/3:Xi===void 0?Wt===void 0?mr=0:mr=(2*yn-ji-Wt)*2/3:Wt===void 0?mr=(2*Xi-ji-yn)*2/3:mr=Xi+yn-ji-Wt,He(yn+Pt.frac*Bl+Ws.frac*(Hl+Pt.frac*mr))}if(B!=="default"){var Ue=0,Ee;try{Ee=new Uint8Array(W*ee*4)}catch(vt){Ee=new Array(W*ee*4)}if(B==="smooth"){var ze=y||d,Ge=m||p,se=new Array(ze.length),Ae=new Array(Ge.length),Je=new Array(Y),dr=y?QY:KY,Ne=m?QY:KY,Te,qe,Be;for(R=0;Rqt||qt>i._length))for(I=Mr;IOt||Ot>n._length)){var gt=O4e({x:ct,y:et},u,e._fullLayout);gt.x=ct,gt.y=et;var Ta=s.z[R][I];Ta===void 0?(gt.z="",gt.zLabel=""):(gt.z=Ta,gt.zLabel=z4e.tickText(Pe,Ta,"hover").text);var Zt=s.text&&s.text[R]&&s.text[R][I];(Zt===void 0||Zt===!1)&&(Zt=""),gt.text=Zt;var Jt=Ii.texttemplateString({data:[gt,u._meta],fallback:u.texttemplatefallback,labels:gt,locale:e._fullLayout._d3locale,template:ne});if(Jt){var za=Jt.split("
"),fa=za.length,$t=0;for(z=0;z{"use strict";nW.exports={min:"zmin",max:"zmax"}});var Sg=N((wze,iW)=>{"use strict";var j4e=Sr();iW.exports=function(r){j4e.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var Cg=N((Tze,lW)=>{"use strict";var oW=xn(),W0=Le(),qg=W0.isArrayOrTypedArray,X4e=zr(),Z4e=Lo().extractOpts;lW.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,y=l.yCenter,m=l.zmask,x=s.zhoverformat,T=c,_=v,b,w,k,M;if(r.index!==!1){try{k=Math.round(r.index[1]),M=Math.round(r.index[0])}catch(Z){W0.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||M<0||M>d.length)return}else{if(oW.inbox(t-c[0],t-c[c.length-1],0)>0||oW.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var S;for(T=[2*c[0]-c[1]],S=1;S{"use strict";sW.exports={attributes:V0(),supplyDefaults:tY(),calc:Tg(),plot:kg(),colorbar:h6(),style:Sg(),hoverPoints:Cg(),moduleType:"trace",name:"heatmap",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var cW=N((Mze,fW)=>{"use strict";fW.exports=uW()});var d6=N((kze,vW)=>{"use strict";vW.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var dW=N((Sze,hW)=>{"use strict";hW.exports={eventDataKeys:["binNumber"]}});var Lg=N((qze,gW)=>{"use strict";var Un=Zu(),pW=no().axisHoverFormat,{hovertemplateAttrs:J4e,texttemplateAttrs:$4e,templatefallbackAttrs:yW}=Wn(),p6=ba(),mW=d6(),K4e=dW(),y6=bt().extendFlat;gW.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:pW("x"),yhoverformat:pW("y"),text:y6({},Un.text,{}),hovertext:y6({},Un.hovertext,{}),orientation:Un.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:mW("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:mW("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:J4e({},{keys:K4e.eventDataKeys}),hovertemplatefallback:yW(),texttemplate:$4e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:yW({editType:"plot"}),textposition:y6({},Un.textposition,{arrayOk:!1}),textfont:p6({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:p6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:p6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Un.insidetextanchor,textangle:Un.textangle,cliponaxis:Un.cliponaxis,constraintext:Un.constraintext,marker:Un.marker,offsetgroup:Un.offsetgroup,alignmentgroup:Un.alignmentgroup,selected:Un.selected,unselected:Un.unselected,zorder:Un.zorder}});var wW=N((Cze,_W)=>{"use strict";var bW=br(),j0=Le(),xW=Tr(),Q4e=Ju().handleText,ewe=Cw(),rwe=Lg();_W.exports=function(r,t,a,n){function i(T,_){return j0.coerce(r,t,rwe,T,_)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");Q4e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(j0.minRowLength(o)&&j0.minRowLength(l)):j0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=bW.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),ewe(r,t,i,a,n),j0.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,x=bW.getComponentMethod("errorbars","supplyDefaults");x(r,t,m||xW.defaultLine,{axis:"y"}),x(r,t,m||xW.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var Dg=N((Lze,MW)=>{"use strict";var X0=Le(),twe=ca(),Eg=br().traceIs,awe=m0(),nwe=Ju().validateCornerradius,TW=X0.nestedProperty,m6=Fu().getAxisGroup,AW=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],iwe=["x","y"];MW.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(B,G){return X0.coerce(l._input,l,l._module.attributes,B,G)}function y(B){return B.orientation==="v"?"x":"y"}function m(B,G){var Y=twe.getFromTrace({_fullLayout:t},B,G);return Y.type}function x(B,G,Y){var V=B.uid+"__"+Y;G||(G=V);var H=m(B,Y),Z=B[Y+"calendar"]||"",W=a[G],ee=!0;W&&(H===W.axType&&Z===W.calendar?(ee=!1,W.traces.push(B),W.dirs.push(Y)):(G=V,H!==W.axType&&X0.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+H,"axis","with bins on","type:"+W.axType,"axis."].join(" ")),Z!==W.calendar&&X0.warn(["Attempted to group the bins of trace",B.index,"set with a",Z,"calendar","with bins",W.calendar?"on a "+W.calendar+" calendar":"w/o a set calendar"].join(" ")))),ee&&(a[G]={traces:[B],dirs:[Y],axType:H,calendar:B[Y+"calendar"]||""}),B["_"+Y+"bingroup"]=G}for(c=0;c{"use strict";var owe=Iw().hoverPoints,lwe=zr().hoverLabelText;kW.exports=function(r,t,a,n,i){var o=owe(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=lwe(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var g6=N((Dze,qW)=>{"use strict";qW.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var l;if(a._indexToPoints){l=[];for(var s=0;s{"use strict";CW.exports={attributes:Lg(),layoutAttributes:lg(),supplyDefaults:wW(),crossTraceDefaults:Dg(),supplyLayoutDefaults:Lw(),calc:l6().calc,crossTraceCalc:Tm().crossTraceCalc,plot:Fw().plot,layerName:"barlayer",style:Xc().style,styleOnSelect:Xc().styleOnSelect,colorbar:T0(),hoverPoints:SW(),selectPoints:zw(),eventData:g6(),moduleType:"trace",name:"histogram",basePlotModule:Ei(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var DW=N((Pze,EW)=>{"use strict";EW.exports=LW()});var Pg=N((Fze,FW)=>{"use strict";var xo=Lg(),RW=d6(),Rg=V0(),swe=gn(),b6=no().axisHoverFormat,{hovertemplateAttrs:uwe,texttemplateAttrs:fwe,templatefallbackAttrs:PW}=Wn(),cwe=Co(),Z0=bt().extendFlat;FW.exports=Z0({x:xo.x,y:xo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:xo.histnorm,histfunc:xo.histfunc,nbinsx:xo.nbinsx,xbins:RW("x"),nbinsy:xo.nbinsy,ybins:RW("y"),autobinx:xo.autobinx,autobiny:xo.autobiny,bingroup:Z0({},xo.bingroup,{}),xbingroup:Z0({},xo.bingroup,{}),ybingroup:Z0({},xo.bingroup,{}),xgap:Rg.xgap,ygap:Rg.ygap,zsmooth:Rg.zsmooth,xhoverformat:b6("x"),yhoverformat:b6("y"),zhoverformat:b6("z",1),hovertemplate:uwe({},{keys:["z"]}),hovertemplatefallback:PW(),texttemplate:fwe({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:PW({editType:"plot"}),textfont:Rg.textfont,showlegend:Z0({},swe.showlegend,{dflt:!1})},cwe("",{cLetter:"z",autoColorDflt:!1}))});var x6=N((Nze,IW)=>{"use strict";var vwe=br(),NW=Le();IW.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=NW.minRowLength(i),s=NW.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=vwe.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var OW=N((Ize,zW)=>{"use strict";var hwe=Le(),dwe=x6(),pwe=e6(),ywe=ml(),mwe=Y0(),gwe=Pg();zW.exports=function(r,t,a,n){function i(o,l){return hwe.coerce(r,t,gwe,o,l)}dwe(r,t,i,n),t.visible!==!1&&(pwe(r,t,i,n),ywe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),mwe(i,n),i("xhoverformat"),i("yhoverformat"))}});var UW=N((zze,HW)=>{"use strict";var bwe=Cg(),BW=zr().hoverLabelText;HW.exports=function(r,t,a,n,i){var o=bwe(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=BW(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=BW(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var VW=N((Oze,GW)=>{"use strict";GW.exports={attributes:Pg(),supplyDefaults:OW(),crossTraceDefaults:Dg(),calc:Tg(),plot:kg(),layerName:"heatmaplayer",colorbar:h6(),style:Sg(),hoverPoints:UW(),eventData:g6(),moduleType:"trace",name:"histogram2d",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var WW=N((Bze,YW)=>{"use strict";YW.exports=VW()});var Fg=N((Hze,jW)=>{"use strict";jW.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var Ig=N((Uze,$W)=>{"use strict";var ua=V0(),Ng=Ai(),ZW=no(),_6=ZW.axisHoverFormat,xwe=ZW.descriptionOnlyNumbers,_we=Co(),wwe=ci().dash,Twe=ba(),tv=bt().extendFlat,JW=Fg(),Awe=JW.COMPARISON_OPS2,Mwe=JW.INTERVAL_OPS,XW=Ng.line;$W.exports=tv({z:ua.z,x:ua.x,x0:ua.x0,dx:ua.dx,y:ua.y,y0:ua.y0,dy:ua.dy,xperiod:ua.xperiod,yperiod:ua.yperiod,xperiod0:Ng.xperiod0,yperiod0:Ng.yperiod0,xperiodalignment:ua.xperiodalignment,yperiodalignment:ua.yperiodalignment,text:ua.text,hovertext:ua.hovertext,transpose:ua.transpose,xtype:ua.xtype,ytype:ua.ytype,xhoverformat:_6("x"),yhoverformat:_6("y"),zhoverformat:_6("z",1),hovertemplate:ua.hovertemplate,hovertemplatefallback:ua.hovertemplatefallback,texttemplate:tv({},ua.texttemplate,{}),texttemplatefallback:ua.texttemplatefallback,textfont:tv({},ua.textfont,{}),hoverongaps:ua.hoverongaps,connectgaps:tv({},ua.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Twe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:xwe("contour label")},operation:{valType:"enumerated",values:[].concat(Awe).concat(Mwe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:tv({},XW.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:wwe,smoothing:tv({},XW.smoothing,{}),editType:"plot"},zorder:Ng.zorder},_we("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var T6=N((Gze,QW)=>{"use strict";var en=Pg(),$o=Ig(),kwe=Co(),w6=no().axisHoverFormat,KW=bt().extendFlat;QW.exports=KW({x:en.x,y:en.y,z:en.z,marker:en.marker,histnorm:en.histnorm,histfunc:en.histfunc,nbinsx:en.nbinsx,xbins:en.xbins,nbinsy:en.nbinsy,ybins:en.ybins,autobinx:en.autobinx,autobiny:en.autobiny,bingroup:en.bingroup,xbingroup:en.xbingroup,ybingroup:en.ybingroup,autocontour:$o.autocontour,ncontours:$o.ncontours,contours:$o.contours,line:{color:$o.line.color,width:KW({},$o.line.width,{dflt:.5}),dash:$o.line.dash,smoothing:$o.line.smoothing,editType:"plot"},xhoverformat:w6("x"),yhoverformat:w6("y"),zhoverformat:w6("z",1),hovertemplate:en.hovertemplate,hovertemplatefallback:en.hovertemplatefallback,texttemplate:$o.texttemplate,texttemplatefallback:$o.texttemplatefallback,textfont:$o.textfont},kwe("",{cLetter:"z",editTypeOverride:"calc"}))});var A6=N((Vze,ej)=>{"use strict";ej.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var M6=N((Yze,rj)=>{"use strict";var Swe=Le();rj.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;Swe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var k6=N((Wze,tj)=>{"use strict";var qwe=ml(),Cwe=M6();tj.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,qwe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),Cwe(a,n,s,i)}});var oj=N((jze,ij)=>{"use strict";var aj=Le(),Lwe=x6(),Ewe=A6(),Dwe=k6(),Rwe=Y0(),nj=T6();ij.exports=function(r,t,a,n){function i(l,s){return aj.coerce(r,t,nj,l,s)}function o(l){return aj.coerce2(r,t,nj,l)}Lwe(r,t,i,n),t.visible!==!1&&(Ewe(r,t,i,o),Dwe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&Rwe(i,n))}});var uj=N((Xze,sj)=>{"use strict";var q6=zr(),S6=Le();sj.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=S6.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=S6.aggNums(Math.max,null,t));var o=lj(n,i,r.ncontours);a.size=o.dtick,a.start=q6.tickFirst(o),o.range.reverse(),a.end=q6.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),S6.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=lj(l,s,r.ncontours).dtick,u.size=a.size=f}}};function lj(e,r,t){var a={type:"linear",range:[e,r]};return q6.autoTicks(a,(r-e)/(t||15)),a}});var J0=N((Zze,fj)=>{"use strict";fj.exports=function(r){return r.end+r.size/1e6}});var C6=N((Jze,vj)=>{"use strict";var cj=Lo(),Pwe=Tg(),Fwe=uj(),Nwe=J0();vj.exports=function(r,t){var a=Pwe(r,t),n=a[0].z;Fwe(t,n);var i=t.contours,o=cj.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=Nwe(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return cj.calc(r,t,{vals:l,cLetter:"z"}),a}});var zg=N(($ze,hj)=>{"use strict";hj.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var pj=N((Kze,dj)=>{"use strict";var Og=zg();dj.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;le?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var bj=N((Qze,gj)=>{"use strict";var Bg=Le(),av=zg();gj.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=av.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=av.SADDLEREMAINDER[o]):delete e.crossings[i],l=av.NEWDELTA[o],!l){Bg.log("Found bad marching index:",o,r,e.level);break}s.push(mj(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),$0(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),y=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(y||t&&p)break;o=e.crossings[i]}d===1e4&&Bg.log("Infinite loop in contour?");var m=$0(s[0],s[s.length-1],a,n),x=0,T=.2*e.smoothing,_=[],b=0,w,k,M,S,E,D,P,R,I,z,B;for(d=1;d=b;d--)if(w=_[d],w=b&&w+_[k]R&&I--,e.edgepaths[I]=B.concat(s,z));break}H||(e.edgepaths[R]=s.concat(z))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:av.BOTTOMSTART.indexOf(e)!==-1?n=1:av.LEFTSTART.indexOf(e)!==-1?a=1:av.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function mj(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var Tj=N((eOe,wj)=>{"use strict";var L6=Fg(),Bwe=Rr();wj.exports={"[]":xj("[]"),"][":xj("]["),">":E6(">"),"<":E6("<"),"=":E6("=")};function _j(e,r){var t=Array.isArray(r),a;function n(i){return Bwe(i)?+i:null}return L6.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):L6.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:L6.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function xj(e){return function(r){r=_j(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function E6(e){return function(r){return r=_j(e,r),{start:r,end:1/0,size:1/0}}}});var kj=N((rOe,Mj)=>{"use strict";var Aj=Le(),Hwe=Tj(),Uwe=J0();Mj.exports=function(r,t,a){for(var n=r.type==="constraint"?Hwe[r._operation](r.value):r,i=n.size,o=[],l=Uwe(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f1e3){Aj.warn("Too many contours, clipping at 1000",r);break}return o}});var Cj=N((tOe,qj)=>{"use strict";var nv=Le();qj.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&nv.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";Lj.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;no.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(t.prefixBoundary=!0);break;case"<":(cu||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),vu&&(t.prefixBoundary=!0);break}break}}});var D6=N(pn=>{"use strict";var Q0=Sr(),Na=Le(),El=Yr(),Gwe=Lo(),Pj=Ma(),Dj=zr(),Rj=uc(),Vwe=kg(),Fj=pj(),Nj=bj(),Ywe=kj(),Wwe=Cj(),Ij=Ej(),K0=zg(),Ko=K0.LABELOPTIMIZER;pn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Na.makeTraceGroups(n,a,"contour").each(function(l){var s=Q0.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=Ywe(d,t,u),y=Na.ensureSingle(s,"g","heatmapcoloring"),m=[];d.coloring==="heatmap"&&(m=[l]),Vwe(r,t,m,y),Fj(p),Nj(p);var x=i.c2p(c[0],!0),T=i.c2p(c[c.length-1],!0),_=o.c2p(v[0],!0),b=o.c2p(v[v.length-1],!0),w=[[x,b],[T,b],[T,_],[x,_]],k=p;d.type==="constraint"&&(k=Wwe(p,d._operation)),jwe(s,w,d),Xwe(s,k,w,d),Zwe(s,p,r,u,d),$we(s,t,r,u,w)})};function jwe(e,r,t){var a=Na.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function Xwe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&Ij(r,a);var o=Na.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+zj(s,t);u?Q0.select(this).attr("d",u).style("stroke","none"):Q0.select(this).remove()})}function zj(e,r){var t="",a=0,n=e.edgepaths.map(function(x,T){return T}),i=!0,o,l,s,u,f,c;function v(x){return Math.abs(x[1]-r[0][1])<.01}function d(x){return Math.abs(x[1]-r[2][1])<.01}function p(x){return Math.abs(x[0]-r[0][0])<.01}function y(x){return Math.abs(x[0]-r[2][0])<.01}for(;n.length;){for(c=El.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){Na.log("Missing end?",a,e);break}for(v(o)&&!y(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:y(o)&&(l=r[2]),f=0;f=0&&(l=m,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-m[1])<.01&&(m[0]-o[0])*(l[0]-m[0])>=0&&(l=m,u=f):Na.log("endpt to newendpt is not vert. or horz.",o,l,m)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){Na.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;aKo.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Ko.MAXCOST)return f};function Jwe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=Ko.EDGECOST*(1/(c-1)+1/(v-1));d+=Ko.ANGLECOST*s*s;for(var p=o-u,y=l-f,m=o+u,x=l+f,T=0;T{"use strict";var Qwe=Sr(),R6=Lo(),e6e=J0();Oj.exports=function(r){var t=r.contours,a=t.start,n=e6e(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=R6.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?R6.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,y=s.min,m=s.max;if(t.coloring==="heatmap"){for(p=0;p=m)&&(a<=y&&(a=y),n>=m&&(n=m),o=Math.floor((n-a)/i)+1,l=0),p=0;py&&(c.unshift(y),v.unshift(v[0])),c[c.length-1]{"use strict";var Hg=Sr(),Bj=Yr(),r6e=Sg(),t6e=P6();Hj.exports=function(r){var t=Hg.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=Hg.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?t6e(i):null;n.selectAll("g.contourlevel").each(function(m){Hg.select(this).selectAll("path").call(Bj.lineGroupStyle,l.width,c?d(m.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){Bj.font(Hg.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(m.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var y;n.selectAll("g.contourfill path").style("fill",function(m){return y===void 0&&(y=m.level),d(m.level+.5*s)}),y===void 0&&(y=u),n.selectAll("g.contourbg path").style("fill",d(y-.5*s))}}),r6e(r)}});var N6=N((lOe,Gj)=>{"use strict";var Uj=Lo(),a6e=P6(),n6e=J0();function i6e(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=a6e(r,{isColorbar:!0});if(o==="heatmap"){var s=Uj.extractOpts(r);t._fillgradient=s.reversescale?Uj.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:n6e(a),size:i}}Gj.exports={min:"zmin",max:"zmax",calc:i6e}});var I6=N((sOe,Vj)=>{"use strict";var Ug=Tr(),o6e=Cg();Vj.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=o6e(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&Ug.opacity(s.fillcolor)?l.color=Ug.addOpacity(s.fillcolor,1):s.contours.showlines&&Ug.opacity(s.line.color)&&(l.color=Ug.addOpacity(s.line.color,1)))}),o}});var Wj=N((uOe,Yj)=>{"use strict";Yj.exports={attributes:T6(),supplyDefaults:oj(),crossTraceDefaults:Dg(),calc:C6(),plot:D6().plot,layerName:"contourlayer",style:F6(),colorbar:N6(),hoverPoints:I6(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Xj=N((fOe,jj)=>{"use strict";jj.exports=Wj()});var rX=N((cOe,eX)=>{"use strict";var Zj=Rr(),l6e=M6(),Kj=Tr(),Jj=Kj.addOpacity,s6e=Kj.opacity,Qj=Fg(),$j=Le().isArrayOrTypedArray,u6e=Qj.CONSTRAINT_REDUCTION,f6e=Qj.COMPARISON_OPS2;eX.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=u6e[c],c6e(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",Jj((r.line||{}).color||i,.5))),s){var v=f&&s6e(f)?Jj(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),l6e(a,n,u,o)};function c6e(e,r){var t;f6e.indexOf(r.operation)===-1?(e("contours.value",[0,1]),$j(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:Zj(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),Zj(r.value)||($j(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var nX=N((vOe,aX)=>{"use strict";var z6=Le(),v6e=Qw(),h6e=Sc(),d6e=rX(),p6e=A6(),y6e=k6(),m6e=Y0(),tX=Ig();aX.exports=function(r,t,a,n){function i(u,f){return z6.coerce(r,t,tX,u,f)}function o(u){return z6.coerce2(r,t,tX,u)}var l=v6e(r,t,i,n);if(!l){t.visible=!1;return}h6e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate"),i("hovertemplatefallback");var s=i("contours.type")==="constraint";i("connectgaps",z6.isArray1D(t.z)),s?d6e(r,t,i,n,a):(p6e(r,t,i,o),y6e(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&m6e(i,n),i("zorder")}});var oX=N((hOe,iX)=>{"use strict";iX.exports={attributes:Ig(),supplyDefaults:nX(),calc:C6(),plot:D6().plot,style:F6(),colorbar:N6(),hoverPoints:I6(),moduleType:"trace",name:"contour",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var sX=N((dOe,lX)=>{"use strict";lX.exports=oX()});var O6=N((pOe,vX)=>{"use strict";var{hovertemplateAttrs:g6e,texttemplateAttrs:b6e,templatefallbackAttrs:uX}=Wn(),x6e=Vy(),oi=Ai(),_6e=gn(),fX=Co(),w6e=ci().dash,ks=bt().extendFlat,zi=oi.marker,ed=oi.line,cX=zi.line;vX.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:ks({},oi.mode,{dflt:"markers"}),text:ks({},oi.text,{}),texttemplate:b6e({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:uX({editType:"plot"}),hovertext:ks({},oi.hovertext,{}),line:{color:ed.color,width:ed.width,dash:w6e,backoff:ed.backoff,shape:ks({},ed.shape,{values:["linear","spline"]}),smoothing:ed.smoothing,editType:"calc"},connectgaps:oi.connectgaps,cliponaxis:oi.cliponaxis,fill:ks({},oi.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:x6e(),marker:ks({symbol:zi.symbol,opacity:zi.opacity,angle:zi.angle,angleref:zi.angleref,standoff:zi.standoff,maxdisplayed:zi.maxdisplayed,size:zi.size,sizeref:zi.sizeref,sizemin:zi.sizemin,sizemode:zi.sizemode,line:ks({width:cX.width,dash:cX.dash,editType:"calc"},fX("marker.line")),gradient:zi.gradient,editType:"calc"},fX("marker")),textfont:oi.textfont,textposition:oi.textposition,selected:oi.selected,unselected:oi.unselected,hoverinfo:ks({},_6e.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:oi.hoveron,hovertemplate:g6e(),hovertemplatefallback:uX()}});var yX=N((yOe,pX)=>{"use strict";var hX=Le(),T6e=n0(),iv=Nn(),A6e=Q_(),M6e=e4(),dX=r4(),k6e=t4(),S6e=a4(),q6e=O6();pX.exports=function(r,t,a,n){function i(v,d){return hX.coerce(r,t,q6e,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var f=u{"use strict";var B6=zr();mX.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=B6.tickText(i.aaxis,r.a,!0).text,n.bLabel=B6.tickText(i.baxis,r.b,!0).text,n.cLabel=B6.tickText(i.caxis,r.c,!0).text,n}});var wX=N((gOe,_X)=>{"use strict";var H6=Rr(),C6e=o4(),L6e=gm(),E6e=bm(),D6e=xm().calcMarkerSize,bX=["a","b","c"],xX={a:["b","c"],b:["a","c"],c:["a","b"]};_X.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s{"use strict";var R6e=b4();TX.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var P6e=M4();MX.exports=function(r,t,a,n){var i=P6e(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var y=v._module.formatLabels(c,v,p);o.aLabel=y.aLabel,o.bLabel=y.bLabel,o.cLabel=y.cLabel;var m=c.hi||v.hoverinfo,x=[];function T(b,w){x.push(b._hovertitle+": "+w)}if(!v.hovertemplate){var _=m.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&T(d.aaxis,o.aLabel),_.indexOf("b")!==-1&&T(d.baxis,o.bLabel),_.indexOf("c")!==-1&&T(d.caxis,o.cLabel)}return o.extraText=x.join("
"),o.hovertemplate=v.hovertemplate,i}});var qX=N((_Oe,SX)=>{"use strict";SX.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var OX=N((wOe,zX)=>{"use strict";var PX=Sr(),F6e=Ln(),U6=br(),Dl=Le(),Qo=Dl.strTranslate,Gg=Dl._,lv=Tr(),Vg=Yr(),rd=uc(),G6=bt().extendFlat,N6e=na(),Ss=zr(),CX=mi(),LX=xn(),FX=Lu(),EX=FX.freeMode,I6e=FX.rectMode,V6=sc(),z6e=Vo().prepSelect,O6e=Vo().selectOnClick,B6e=Vo().clearOutline,H6e=Vo().clearSelectionsCache,NX=_a();function IX(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}zX.exports=IX;var el=IX.prototype;el.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};el.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;iov*u?(x=u,m=x*ov):(m=s,x=m/ov),T=o*m/s,_=l*x/u,p=r.l+r.w*n-m/2,y=r.t+r.h*(1-i)-x/2,t.x0=p,t.y0=y,t.w=m,t.h=x,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-T/2,n+T/2],_id:"x"},rd(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(z){return z.a>=t.aaxis.range[0]&&z.a<=t.aaxis.range[1]&&z.b>=t.baxis.range[1]&&z.b<=t.baxis.range[0]&&z.c>=t.caxis.range[1]&&z.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-_/2,i+_/2],_id:"y"},rd(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var b=t.yaxis.domain[0],w=t.aaxis=G6({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*ov],anchor:"free",position:0,_id:"y",_length:m});rd(w,t.graphDiv._fullLayout),w.setScale();var k=t.baxis=G6({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:m});rd(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=G6({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*ov],anchor:"free",position:0,_id:"y",_length:m});rd(M,t.graphDiv._fullLayout),M.setScale();var S="M"+p+","+(y+x)+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDef.select("path").attr("d",S),t.layers.plotbg.select("path").attr("d",S);var E="M0,"+x+"h"+m+"l-"+m/2+",-"+x+"Z";t.clipDefRelative.select("path").attr("d",E);var D=Qo(p,y);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),t.clipDefRelative.select("path").attr("transform",null);var P=Qo(p-k._offset,y+x);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=Qo(p+m/2,y)+"rotate(30)"+Qo(0,-w._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var I=Qo(p+m/2,y)+"rotate(-30)"+Qo(0,-M._offset);t.layers.caxis.attr("transform",I),t.layers.cgrid.attr("transform",I),t.drawAxes(!0),t.layers.aline.select("path").attr("d",w.showline?"M"+p+","+(y+x)+"l"+m/2+",-"+x:"M0,0").call(lv.stroke,w.linecolor||"#000").style("stroke-width",(w.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(y+x)+"h"+m:"M0,0").call(lv.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",M.showline?"M"+(p+m/2)+","+y+"l"+m/2+","+x:"M0,0").call(lv.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Vg.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};el.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.slice(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=V6.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:Gg(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=V6.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:Gg(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=V6.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:Gg(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};el.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=U6e(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=Ss.calcTicks(e),c=Ss.clipEnds(e,f),v=Ss.makeTransTickFn(e),d=Ss.getTickSigns(e)[2],p=Dl.deg2rad(l),y=d*(e.linewidth||1)/2,m=d*e.ticklen,x=r.w,T=r.h,_=n==="b"?"M0,"+y+"l"+Math.sin(p)*m+","+Math.cos(p)*m:"M"+y+",0l"+Math.cos(p)*m+","+-Math.sin(p)*m,b={a:"M0,0l"+T+",-"+x/2,b:"M0,0l-"+x/2+",-"+T,c:"M0,0l-"+T+","+x/2}[n];Ss.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:_,transFn:v,crisp:!1}),Ss.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:b,transFn:v,crisp:!1}),Ss.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:Ss.makeLabelFns(e,0,l)})};function U6e(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Ea=NX.MINZOOM/2+.87,G6e="m-0.87,.5h"+Ea+"v3h-"+(Ea+5.2)+"l"+(Ea/2+2.6)+",-"+(Ea*.87+4.5)+"l2.6,1.5l-"+Ea/2+","+Ea*.87+"Z",V6e="m0.87,.5h-"+Ea+"v3h"+(Ea+5.2)+"l-"+(Ea/2+2.6)+",-"+(Ea*.87+4.5)+"l-2.6,1.5l"+Ea/2+","+Ea*.87+"Z",Y6e="m0,1l"+Ea/2+","+Ea*.87+"l2.6,-1.5l-"+(Ea/2+2.6)+",-"+(Ea*.87+4.5)+"l-"+(Ea/2+2.6)+","+(Ea*.87+4.5)+"l2.6,1.5l"+Ea/2+",-"+Ea*.87+"Z",W6e="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",DX=!0;el.clearOutline=function(){H6e(this.dragOptions),B6e(this.dragOptions.gd)};el.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,I){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var z=e.dragOptions.dragmode=t._fullLayout.dragmode;EX(z)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,z==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=x,e.dragOptions.doneFn=M,T(P,R,I)):z==="pan"?(e.dragOptions.moveFn=E,e.dragOptions.clickFn=x,e.dragOptions.doneFn=D,S(),e.clearOutline(t)):(I6e(z)||EX(z))&&z6e(P,R,I,e.dragOptions,z)}};var o,l,s,u,f,c,v,d,p,y;function m(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function x(P,R){var I=t._fullLayout.clickmode;RX(t),P===2&&(t.emit("plotly_doubleclick",null),U6.call("_guiRelayout",t,m({a:0,b:0,c:0}))),I.indexOf("select")>-1&&P===1&&O6e(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),I.indexOf("event")>-1&&LX.click(t,R,e.id)}function T(P,R,I){var z=r.getBoundingClientRect();o=R-z.left,l=I-z.top,t._fullLayout._calcInverseTransform(t);var B=t._fullLayout._invTransform,G=Dl.apply3DTransform(B)(o,l);o=G[0],l=G[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=F6e(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",Qo(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),y=a.append("path").attr("class","zoombox-corners").attr("transform",Qo(e.x0,e.y0)).style({fill:lv.background,stroke:lv.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function _(P,R){return 1-R/e.h}function b(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function w(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var I=o+P*n,z=l+R*i,B=Math.max(0,Math.min(1,_(o,l),_(I,z))),G=Math.max(0,Math.min(1,b(o,l),b(I,z))),Y=Math.max(0,Math.min(1,w(o,l),w(I,z))),V=(B/2+Y)*e.w,H=(1-B/2-G)*e.w,Z=(V+H)/2,W=H-V,ee=(1-B)*e.h,oe=ee-W/ov;W.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),y.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",m(f))}function M(){RX(t),f!==s&&(U6.call("_guiRelayout",t,m(f)),DX&&t.data&&t._context.showTips&&(Dl.notifier(Gg(t,"Double-click to zoom back out"),"long",t),DX=!1))}function S(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function E(P,R){var I=P/e.xaxis._m,z=R/e.yaxis._m;f={a:s.a-z,b:s.b+(I+z)/2,c:s.c-(I-z)/2};var B=[f.a,f.b,f.c].sort(Dl.sorterAsc),G={a:B.indexOf(f.a),b:B.indexOf(f.b),c:B.indexOf(f.c)};B[0]<0&&(B[1]+B[0]/2<0?(B[2]+=B[0]+B[1],B[0]=B[1]=0):(B[2]+=B[0]/2,B[1]+=B[0]/2,B[0]=0),f={a:B[G.a],b:B[G.b],c:B[G.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var Y=Qo(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Y);var V=Qo(-P,-R);e.clipDefRelative.select("path").attr("transform",V),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Vg.hideOutsideRangePoints,e),t.emit("plotly_relayouting",m(f))}function D(){U6.call("_guiRelayout",t,m(f))}r.onmousemove=function(P){LX.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||CX.unhover(t,P)},CX.init(this.dragOptions)};function RX(e){PX.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var j6=N((TOe,BX)=>{"use strict";var j6e=fi(),X6e=Vc().attributes,it=pi(),Z6e=eo().overrideAll,Y6=bt().extendFlat,W6={title:{text:it.title.text,font:it.title.font},color:it.color,tickmode:it.minor.tickmode,nticks:Y6({},it.nticks,{dflt:6,min:1}),tick0:it.tick0,dtick:it.dtick,tickvals:it.tickvals,ticktext:it.ticktext,ticks:it.ticks,ticklen:it.ticklen,tickwidth:it.tickwidth,tickcolor:it.tickcolor,ticklabelstep:it.ticklabelstep,showticklabels:it.showticklabels,labelalias:it.labelalias,showtickprefix:it.showtickprefix,tickprefix:it.tickprefix,showticksuffix:it.showticksuffix,ticksuffix:it.ticksuffix,showexponent:it.showexponent,exponentformat:it.exponentformat,minexponent:it.minexponent,separatethousands:it.separatethousands,tickfont:it.tickfont,tickangle:it.tickangle,tickformat:it.tickformat,tickformatstops:it.tickformatstops,hoverformat:it.hoverformat,showline:Y6({},it.showline,{dflt:!0}),linecolor:it.linecolor,linewidth:it.linewidth,showgrid:Y6({},it.showgrid,{dflt:!0}),gridcolor:it.gridcolor,gridwidth:it.gridwidth,griddash:it.griddash,layer:it.layer,min:{valType:"number",dflt:0,min:0}},Yg=BX.exports=Z6e({domain:X6e({name:"ternary"}),bgcolor:{valType:"color",dflt:j6e.background},sum:{valType:"number",dflt:1,min:0},aaxis:W6,baxis:W6,caxis:W6},"plot","from-root");Yg.uirevision={valType:"any",editType:"none"};Yg.aaxis.uirevision=Yg.baxis.uirevision=Yg.caxis.uirevision={valType:"any",editType:"none"}});var UX=N((AOe,HX)=>{"use strict";var J6e=Le(),$6e=wt(),K6e=Vc().defaults;HX.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(T,_){return J6e.coerce(v,d,o,T,_)}for(var y=0;y{"use strict";var Q6e=Tr(),e7e=wt(),Wg=Le(),r7e=UX(),t7e=b1(),a7e=x1(),n7e=m1(),i7e=y1(),o7e=q4(),VX=j6(),GX=["aaxis","baxis","caxis"];YX.exports=function(r,t,a){r7e(r,t,a,{type:"ternary",attributes:VX,handleDefaults:l7e,font:t.font,paper_bgcolor:t.paper_bgcolor})};function l7e(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=Q6e.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function s7e(e,r,t,a){var n=VX[r._name];function i(d,p){return Wg.coerce(e,r,n,d,p)}i("uirevision",a.uirevision),r.type="linear";var o=i("color"),l=o!==n.color.dflt?o:t.font.color,s=r._name,u=s.charAt(0).toUpperCase(),f="Component "+u,c=i("title.text",f);r._hovertitle=c===f?c:u,Wg.coerceFont(i,"title.font",t.font,{overrideDflt:{size:Wg.bigFont(t.font.size),color:l}}),i("min"),i7e(e,r,i,"linear"),a7e(e,r,i,"linear"),t7e(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),n7e(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(Wg.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),o7e(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var jX=N(Oi=>{"use strict";var u7e=OX(),f7e=s1().getSubplotCalcData,c7e=Le().counterRegex,sv="ternary";Oi.name=sv;var v7e=Oi.attr="subplot";Oi.idRoot=sv;Oi.idRegex=Oi.attrRegex=c7e(sv);var h7e=Oi.attributes={};h7e[v7e]={valType:"subplotid",dflt:"ternary",editType:"calc"};Oi.layoutAttributes=j6();Oi.supplyLayoutDefaults=WX();Oi.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[sv],i=0;i{"use strict";XX.exports={attributes:O6(),supplyDefaults:yX(),colorbar:T0(),formatLabels:gX(),calc:wX(),plot:AX(),style:Ou().style,styleOnSelect:Ou().styleOnSelect,hoverPoints:kX(),selectPoints:k4(),eventData:qX(),moduleType:"trace",name:"scatterternary",basePlotModule:jX(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var $X=N((qOe,JX)=>{"use strict";JX.exports=ZX()});var X6=N((COe,QX)=>{"use strict";var pa=dg(),uv=bt().extendFlat,KX=no().axisHoverFormat;QX.exports={y:pa.y,x:pa.x,x0:pa.x0,y0:pa.y0,xhoverformat:KX("x"),yhoverformat:KX("y"),name:uv({},pa.name,{}),orientation:uv({},pa.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:pa.fillcolor,points:uv({},pa.boxpoints,{}),jitter:uv({},pa.jitter,{}),pointpos:uv({},pa.pointpos,{}),width:uv({},pa.width,{}),marker:pa.marker,text:pa.text,hovertext:pa.hovertext,hovertemplate:pa.hovertemplate,hovertemplatefallback:pa.hovertemplatefallback,quartilemethod:pa.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:pa.offsetgroup,alignmentgroup:pa.alignmentgroup,selected:pa.selected,unselected:pa.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:pa.zorder}});var $6=N((LOe,eZ)=>{"use strict";var Z6=pg(),J6=Le().extendFlat;eZ.exports={violinmode:J6({},Z6.boxmode,{}),violingap:J6({},Z6.boxgap,{}),violingroupgap:J6({},Z6.boxgroupgap,{})}});var iZ=N((EOe,nZ)=>{"use strict";var rZ=Le(),d7e=Tr(),tZ=G0(),aZ=X6();nZ.exports=function(r,t,a,n){function i(w,k){return rZ.coerce(r,t,aZ,w,k)}function o(w,k){return rZ.coerce2(r,t,aZ,w,k)}if(tZ.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",d7e.addOpacity(t.line.color,.5));tZ.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),y=o("box.line.color",f),m=o("box.line.width",c),x=i("box.visible",!!(d||p||y||m));x||(t.box={visible:!1});var T=o("meanline.color",f),_=o("meanline.width",c),b=i("meanline.visible",!!(T||_));b||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var lZ=N((DOe,oZ)=>{"use strict";var p7e=Le(),y7e=$6(),m7e=Ow();oZ.exports=function(r,t,a){function n(i,o){return p7e.coerce(r,t,y7e,i,o)}m7e._supply(r,t,a,n,"violin")}});var jg=N(rf=>{"use strict";var g7e=Le(),b7e={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};rf.makeKDE=function(e,r,t){var a=t.length,n=b7e.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var K6=Le(),Q6=zr(),x7e=Uw(),sZ=jg(),_7e=Ft().BADNUM;uZ.exports=function(r,t){var a=x7e(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=Q6.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var M7e=Gw().setPositionOffset,cZ=["v","h"];vZ.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var e7=Sr(),r7=Le(),k7e=Yr(),t7=Vw(),S7e=g4(),q7e=jg();dZ.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=S7e(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return k7e.smoothopen(v[0],1)}r7.makeTraceGroups(n,a,"trace violins").each(function(f){var c=e7.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var y=d.bPos,m=d.bdPos,x=t[d.valLetter+"axis"],T=t[d.posLetter+"axis"],_=p.side==="both",b=_||p.side==="positive",w=_||p.side==="negative",k=c.selectAll("path.violin").data(r7.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(z){var B=e7.select(this),G=z.density,Y=G.length,V=T.c2l(z.pos+y,!0),H=T.l2p(V),Z;if(p.width)Z=d.maxKDE/m;else{var W=o._violinScaleGroupStats[p.scalegroup];Z=p.scalemode==="count"?W.maxKDE/m*(W.maxCount/z.pts.length):W.maxKDE/m}var ee,oe,le,ue,K,_e,fe;if(b){for(_e=new Array(Y),ue=0;ue{"use strict";var yZ=Sr(),fv=Tr(),C7e=Ou().stylePoints;mZ.exports=function(r){var t=yZ.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=yZ.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(fv.stroke,n.line.color).call(fv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(fv.stroke,l.color).call(fv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(fv.stroke,s.color),i.selectAll("path.meanline").style(f).call(fv.stroke,s.color),C7e(i,n,r)})}});var wZ=N((zOe,_Z)=>{"use strict";var L7e=Tr(),a7=Le(),E7e=zr(),bZ=Jw(),xZ=jg();_Z.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var y=bZ.hoverOnBoxes(r,t,a,n);if(c&&y.length>0){var m=r.xa,x=r.ya,T,_,b,w,k;s.orientation==="h"?(k=t,T="y",b=x,_="x",w=m):(k=a,T="x",b=m,_="y",w=x);var M=l[r.index];if(k>=M.span[0]&&k<=M.span[1]){var S=a7.extendFlat({},r),E=w.c2p(k,!0),D=xZ.getKdeValue(M,s,k),P=xZ.getPositionOnKdePath(M,s,E),R=b._offset,I=b._length;S[T+"0"]=P[0],S[T+"1"]=P[1],S[_+"0"]=S[_+"1"]=E,S[_+"Label"]=_+": "+E7e.hoverLabelText(w,k,s[_+"hoverformat"])+", "+l[0].t.labels.kde+" "+D.toFixed(3);for(var z=0,B=0;B{"use strict";TZ.exports={attributes:X6(),layoutAttributes:$6(),supplyDefaults:iZ(),crossTraceDefaults:G0().crossTraceDefaults,supplyLayoutDefaults:lZ(),calc:fZ(),crossTraceCalc:hZ(),plot:pZ(),style:gZ(),styleOnSelect:Ou().styleOnSelect,hoverPoints:wZ(),selectPoints:$w(),moduleType:"trace",name:"violin",basePlotModule:Ei(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var kZ=N((BOe,MZ)=>{"use strict";MZ.exports=AZ()});var cv=N((HOe,SZ)=>{"use strict";SZ.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}}});var n7=N((UOe,CZ)=>{"use strict";var D7e=gn(),R7e=Ai().zorder,{hovertemplateAttrs:P7e,templatefallbackAttrs:F7e}=Wn(),qZ=bt().extendFlat,N7e=cv().colormodel,ad=["rgb","rgba","rgba256","hsl","hsla"],I7e=[],z7e=[];for(vv=0;vv{"use strict";var O7e=Le(),B7e=n7(),LZ=cv(),H7e=Tl().IMAGE_URL_PREFIX;EZ.exports=function(r,t){function a(o,l){return O7e.coerce(r,t,B7e,o,l)}a("source"),t.source&&!t.source.match(H7e)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=LZ.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=LZ.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),t._length=null,a("zorder")}});var Rl=N((VOe,i7)=>{typeof Object.create=="function"?i7.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:i7.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var o7=N((YOe,RZ)=>{RZ.exports=uu().EventEmitter});var NZ=N(Xg=>{"use strict";Xg.byteLength=G7e;Xg.toByteArray=Y7e;Xg.fromByteArray=X7e;var rl=[],Bi=[],U7e=typeof Uint8Array!="undefined"?Uint8Array:Array,l7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(tf=0,PZ=l7.length;tf0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function G7e(e){var r=FZ(e),t=r[0],a=r[1];return(t+a)*3/4-a}function V7e(e,r,t){return(r+t)*3/4-t}function Y7e(e){var r,t=FZ(e),a=t[0],n=t[1],i=new U7e(V7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=Bi[e.charCodeAt(s)]<<2|Bi[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Bi[e.charCodeAt(s)]<<10|Bi[e.charCodeAt(s+1)]<<4|Bi[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function W7e(e){return rl[e>>18&63]+rl[e>>12&63]+rl[e>>6&63]+rl[e&63]}function j7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(rl[r>>2]+rl[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(rl[r>>10]+rl[r>>4&63]+rl[r<<2&63]+"=")),n.join("")}});var IZ=N(s7=>{s7.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};s7.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=y*128}});var mv=N(yv=>{"use strict";var u7=NZ(),dv=IZ(),zZ=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;yv.Buffer=Xe;yv.SlowBuffer=eTe;yv.INSPECT_MAX_BYTES=50;var Zg=2147483647;yv.kMaxLength=Zg;Xe.TYPED_ARRAY_SUPPORT=Z7e();!Xe.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Z7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(Xe.prototype,"parent",{enumerable:!0,get:function(){if(Xe.isBuffer(this))return this.buffer}});Object.defineProperty(Xe.prototype,"offset",{enumerable:!0,get:function(){if(Xe.isBuffer(this))return this.byteOffset}});function Pl(e){if(e>Zg)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,Xe.prototype),r}function Xe(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h7(e)}return UZ(e,r,t)}Xe.poolSize=8192;function UZ(e,r,t){if(typeof e=="string")return $7e(e,r);if(ArrayBuffer.isView(e))return K7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(tl(e,ArrayBuffer)||e&&tl(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(tl(e,SharedArrayBuffer)||e&&tl(e.buffer,SharedArrayBuffer)))return c7(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return Xe.from(a,r,t);let n=Q7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Xe.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Xe.from=function(e,r,t){return UZ(e,r,t)};Object.setPrototypeOf(Xe.prototype,Uint8Array.prototype);Object.setPrototypeOf(Xe,Uint8Array);function GZ(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function J7e(e,r,t){return GZ(e),e<=0?Pl(e):r!==void 0?typeof t=="string"?Pl(e).fill(r,t):Pl(e).fill(r):Pl(e)}Xe.alloc=function(e,r,t){return J7e(e,r,t)};function h7(e){return GZ(e),Pl(e<0?0:d7(e)|0)}Xe.allocUnsafe=function(e){return h7(e)};Xe.allocUnsafeSlow=function(e){return h7(e)};function $7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Xe.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=VZ(e,r)|0,a=Pl(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function f7(e){let r=e.length<0?0:d7(e.length)|0,t=Pl(r);for(let a=0;a=Zg)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Zg.toString(16)+" bytes");return e|0}function eTe(e){return+e!=e&&(e=0),Xe.alloc(+e)}Xe.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Xe.prototype};Xe.compare=function(r,t){if(tl(r,Uint8Array)&&(r=Xe.from(r,r.offset,r.byteLength)),tl(t,Uint8Array)&&(t=Xe.from(t,t.offset,t.byteLength)),!Xe.isBuffer(r)||!Xe.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(Xe.isBuffer(o)||(o=Xe.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(Xe.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function VZ(e,r){if(Xe.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||tl(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return v7(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return QZ(e).length;default:if(n)return a?-1:v7(e).length;r=(""+r).toLowerCase(),n=!0}}Xe.byteLength=VZ;function rTe(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return cTe(this,r,t);case"utf8":case"utf-8":return WZ(this,r,t);case"ascii":return uTe(this,r,t);case"latin1":case"binary":return fTe(this,r,t);case"base64":return lTe(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vTe(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Xe.prototype._isBuffer=!0;function af(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}Xe.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};zZ&&(Xe.prototype[zZ]=Xe.prototype.inspect);Xe.prototype.compare=function(r,t,a,n,i){if(tl(r,Uint8Array)&&(r=Xe.from(r,r.offset,r.byteLength)),!Xe.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,y7(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=Xe.from(r,a)),Xe.isBuffer(r))return r.length===0?-1:OZ(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):OZ(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function OZ(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return tTe(this,r,t,a);case"utf8":case"utf-8":return aTe(this,r,t,a);case"ascii":case"latin1":case"binary":return nTe(this,r,t,a);case"base64":return iTe(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oTe(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};Xe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function lTe(e,r,t){return r===0&&t===e.length?u7.fromByteArray(e):u7.fromByteArray(e.slice(r,t))}function WZ(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return sTe(a)}var BZ=4096;function sTe(e){let r=e.length;if(r<=BZ)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}Xe.prototype.readUintLE=Xe.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||ja(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||ja(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};Xe.prototype.readUint8=Xe.prototype.readUInt8=function(r,t){return r=r>>>0,t||ja(r,1,this.length),this[r]};Xe.prototype.readUint16LE=Xe.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||ja(r,2,this.length),this[r]|this[r+1]<<8};Xe.prototype.readUint16BE=Xe.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||ja(r,2,this.length),this[r]<<8|this[r+1]};Xe.prototype.readUint32LE=Xe.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||ja(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Xe.prototype.readUint32BE=Xe.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||ja(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Xe.prototype.readBigUInt64LE=qs(function(r){r=r>>>0,pv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&nd(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,pv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&nd(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||ja(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};Xe.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||ja(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};Xe.prototype.readInt8=function(r,t){return r=r>>>0,t||ja(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Xe.prototype.readInt16LE=function(r,t){r=r>>>0,t||ja(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};Xe.prototype.readInt16BE=function(r,t){r=r>>>0,t||ja(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};Xe.prototype.readInt32LE=function(r,t){return r=r>>>0,t||ja(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Xe.prototype.readInt32BE=function(r,t){return r=r>>>0,t||ja(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Xe.prototype.readBigInt64LE=qs(function(r){r=r>>>0,pv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&nd(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,pv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&nd(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||ja(r,4,this.length),dv.read(this,r,!0,23,4)};Xe.prototype.readFloatBE=function(r,t){return r=r>>>0,t||ja(r,4,this.length),dv.read(this,r,!1,23,4)};Xe.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||ja(r,8,this.length),dv.read(this,r,!0,52,8)};Xe.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||ja(r,8,this.length),dv.read(this,r,!1,52,8)};function Gn(e,r,t,a,n,i){if(!Xe.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Xe.prototype.writeUintLE=Xe.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Gn(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Gn(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};Xe.prototype.writeUint8=Xe.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,1,255,0),this[t]=r&255,t+1};Xe.prototype.writeUint16LE=Xe.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};Xe.prototype.writeUint16BE=Xe.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};Xe.prototype.writeUint32LE=Xe.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};Xe.prototype.writeUint32BE=Xe.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function jZ(e,r,t,a,n){KZ(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function XZ(e,r,t,a,n){KZ(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}Xe.prototype.writeBigUInt64LE=qs(function(r,t=0){return jZ(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Xe.prototype.writeBigUInt64BE=qs(function(r,t=0){return XZ(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Xe.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Gn(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};Xe.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Gn(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};Xe.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};Xe.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};Xe.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};Xe.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};Xe.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Gn(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};Xe.prototype.writeBigInt64LE=qs(function(r,t=0){return jZ(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Xe.prototype.writeBigInt64BE=qs(function(r,t=0){return XZ(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ZZ(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function JZ(e,r,t,a,n){return r=+r,t=t>>>0,n||ZZ(e,r,t,4,34028234663852886e22,-34028234663852886e22),dv.write(e,r,t,a,23,4),t+4}Xe.prototype.writeFloatLE=function(r,t,a){return JZ(this,r,t,!0,a)};Xe.prototype.writeFloatBE=function(r,t,a){return JZ(this,r,t,!1,a)};function $Z(e,r,t,a,n){return r=+r,t=t>>>0,n||ZZ(e,r,t,8,17976931348623157e292,-17976931348623157e292),dv.write(e,r,t,a,52,8),t+8}Xe.prototype.writeDoubleLE=function(r,t,a){return $Z(this,r,t,!0,a)};Xe.prototype.writeDoubleBE=function(r,t,a){return $Z(this,r,t,!1,a)};Xe.prototype.copy=function(r,t,a,n){if(!Xe.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=HZ(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=HZ(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function HZ(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function hTe(e,r,t){pv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&nd(r,e.length-(t+1))}function KZ(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new hv.ERR_OUT_OF_RANGE("value",l,e)}hTe(a,n,i)}function pv(e,r){if(typeof e!="number")throw new hv.ERR_INVALID_ARG_TYPE(r,"number",e)}function nd(e,r,t){throw Math.floor(e)!==e?(pv(e,t),new hv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new hv.ERR_BUFFER_OUT_OF_BOUNDS:new hv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var dTe=/[^+/0-9A-Za-z-_]/g;function pTe(e){if(e=e.split("=")[0],e=e.trim().replace(dTe,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function v7(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function yTe(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function QZ(e){return u7.toByteArray(pTe(e))}function Jg(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function tl(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function y7(e){return e!==e}var gTe=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r})();function qs(e){return typeof BigInt=="undefined"?bTe:e}function bTe(){throw new Error("BigInt not supported")}});var $g=N((JOe,eJ)=>{"use strict";eJ.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var id=N(($Oe,rJ)=>{"use strict";var xTe=$g();rJ.exports=function(){return xTe()&&!!Symbol.toStringTag}});var m7=N((KOe,tJ)=>{"use strict";tJ.exports=Object});var nJ=N((QOe,aJ)=>{"use strict";aJ.exports=Error});var oJ=N((eBe,iJ)=>{"use strict";iJ.exports=EvalError});var sJ=N((rBe,lJ)=>{"use strict";lJ.exports=RangeError});var fJ=N((tBe,uJ)=>{"use strict";uJ.exports=ReferenceError});var g7=N((aBe,cJ)=>{"use strict";cJ.exports=SyntaxError});var gv=N((nBe,vJ)=>{"use strict";vJ.exports=TypeError});var dJ=N((iBe,hJ)=>{"use strict";hJ.exports=URIError});var yJ=N((oBe,pJ)=>{"use strict";pJ.exports=Math.abs});var gJ=N((lBe,mJ)=>{"use strict";mJ.exports=Math.floor});var xJ=N((sBe,bJ)=>{"use strict";bJ.exports=Math.max});var wJ=N((uBe,_J)=>{"use strict";_J.exports=Math.min});var AJ=N((fBe,TJ)=>{"use strict";TJ.exports=Math.pow});var kJ=N((cBe,MJ)=>{"use strict";MJ.exports=Math.round});var qJ=N((vBe,SJ)=>{"use strict";SJ.exports=Number.isNaN||function(r){return r!==r}});var LJ=N((hBe,CJ)=>{"use strict";var _Te=qJ();CJ.exports=function(r){return _Te(r)||r===0?r:r<0?-1:1}});var DJ=N((dBe,EJ)=>{"use strict";EJ.exports=Object.getOwnPropertyDescriptor});var nf=N((pBe,RJ)=>{"use strict";var Kg=DJ();if(Kg)try{Kg([],"length")}catch(e){Kg=null}RJ.exports=Kg});var od=N((yBe,PJ)=>{"use strict";var Qg=Object.defineProperty||!1;if(Qg)try{Qg({},"a",{value:1})}catch(e){Qg=!1}PJ.exports=Qg});var IJ=N((mBe,NJ)=>{"use strict";var FJ=typeof Symbol!="undefined"&&Symbol,wTe=$g();NJ.exports=function(){return typeof FJ!="function"||typeof Symbol!="function"||typeof FJ("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:wTe()}});var b7=N((gBe,zJ)=>{"use strict";zJ.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var x7=N((bBe,OJ)=>{"use strict";var TTe=m7();OJ.exports=TTe.getPrototypeOf||null});var UJ=N((xBe,HJ)=>{"use strict";var ATe="Function.prototype.bind called on incompatible ",MTe=Object.prototype.toString,kTe=Math.max,STe="[object Function]",BJ=function(r,t){for(var a=[],n=0;n{"use strict";var LTe=UJ();GJ.exports=Function.prototype.bind||LTe});var e2=N((wBe,VJ)=>{"use strict";VJ.exports=Function.prototype.call});var _7=N((TBe,YJ)=>{"use strict";YJ.exports=Function.prototype.apply});var jJ=N((ABe,WJ)=>{"use strict";WJ.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var ZJ=N((MBe,XJ)=>{"use strict";var ETe=bv(),DTe=_7(),RTe=e2(),PTe=jJ();XJ.exports=PTe||ETe.call(RTe,DTe)});var $J=N((kBe,JJ)=>{"use strict";var FTe=bv(),NTe=gv(),ITe=e2(),zTe=ZJ();JJ.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new NTe("a function is required");return zTe(FTe,ITe,r)}});var a$=N((SBe,t$)=>{"use strict";var OTe=$J(),KJ=nf(),e$;try{e$=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var w7=!!e$&&KJ&&KJ(Object.prototype,"__proto__"),r$=Object,QJ=r$.getPrototypeOf;t$.exports=w7&&typeof w7.get=="function"?OTe([w7.get]):typeof QJ=="function"?function(r){return QJ(r==null?r:r$(r))}:!1});var s$=N((qBe,l$)=>{"use strict";var n$=b7(),i$=x7(),o$=a$();l$.exports=n$?function(r){return n$(r)}:i$?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return i$(r)}:o$?function(r){return o$(r)}:null});var f$=N((CBe,u$)=>{"use strict";var BTe=Function.prototype.call,HTe=Object.prototype.hasOwnProperty,UTe=bv();u$.exports=UTe.call(BTe,HTe)});var a2=N((LBe,y$)=>{"use strict";var ot,GTe=m7(),VTe=nJ(),YTe=oJ(),WTe=sJ(),jTe=fJ(),Tv=g7(),wv=gv(),XTe=dJ(),ZTe=yJ(),JTe=gJ(),$Te=xJ(),KTe=wJ(),QTe=AJ(),eAe=kJ(),rAe=LJ(),d$=Function,T7=function(e){try{return d$('"use strict"; return ('+e+").constructor;")()}catch(r){}},ld=nf(),tAe=od(),A7=function(){throw new wv},aAe=ld?(function(){try{return arguments.callee,A7}catch(e){try{return ld(arguments,"callee").get}catch(r){return A7}}})():A7,xv=IJ()(),Xa=s$(),nAe=x7(),iAe=b7(),p$=_7(),sd=e2(),_v={},oAe=typeof Uint8Array=="undefined"||!Xa?ot:Xa(Uint8Array),of={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":xv&&Xa?Xa([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":_v,"%AsyncGenerator%":_v,"%AsyncGeneratorFunction%":_v,"%AsyncIteratorPrototype%":_v,"%Atomics%":typeof Atomics=="undefined"?ot:Atomics,"%BigInt%":typeof BigInt=="undefined"?ot:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ot:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ot:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ot:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":VTe,"%eval%":eval,"%EvalError%":YTe,"%Float16Array%":typeof Float16Array=="undefined"?ot:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?ot:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ot:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ot:FinalizationRegistry,"%Function%":d$,"%GeneratorFunction%":_v,"%Int8Array%":typeof Int8Array=="undefined"?ot:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ot:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xv&&Xa?Xa(Xa([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map=="undefined"?ot:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!xv||!Xa?ot:Xa(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":GTe,"%Object.getOwnPropertyDescriptor%":ld,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ot:Promise,"%Proxy%":typeof Proxy=="undefined"?ot:Proxy,"%RangeError%":WTe,"%ReferenceError%":jTe,"%Reflect%":typeof Reflect=="undefined"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ot:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!xv||!Xa?ot:Xa(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xv&&Xa?Xa(""[Symbol.iterator]()):ot,"%Symbol%":xv?Symbol:ot,"%SyntaxError%":Tv,"%ThrowTypeError%":aAe,"%TypedArray%":oAe,"%TypeError%":wv,"%Uint8Array%":typeof Uint8Array=="undefined"?ot:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ot:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ot:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ot:Uint32Array,"%URIError%":XTe,"%WeakMap%":typeof WeakMap=="undefined"?ot:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ot:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ot:WeakSet,"%Function.prototype.call%":sd,"%Function.prototype.apply%":p$,"%Object.defineProperty%":tAe,"%Object.getPrototypeOf%":nAe,"%Math.abs%":ZTe,"%Math.floor%":JTe,"%Math.max%":$Te,"%Math.min%":KTe,"%Math.pow%":QTe,"%Math.round%":eAe,"%Math.sign%":rAe,"%Reflect.getPrototypeOf%":iAe};if(Xa)try{null.error}catch(e){c$=Xa(Xa(e)),of["%Error.prototype%"]=c$}var c$,lAe=function e(r){var t;if(r==="%AsyncFunction%")t=T7("async function () {}");else if(r==="%GeneratorFunction%")t=T7("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=T7("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Xa&&(t=Xa(n.prototype))}return of[r]=t,t},v$={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ud=bv(),r2=f$(),sAe=ud.call(sd,Array.prototype.concat),uAe=ud.call(p$,Array.prototype.splice),h$=ud.call(sd,String.prototype.replace),t2=ud.call(sd,String.prototype.slice),fAe=ud.call(sd,RegExp.prototype.exec),cAe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vAe=/\\(\\)?/g,hAe=function(r){var t=t2(r,0,1),a=t2(r,-1);if(t==="%"&&a!=="%")throw new Tv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new Tv("invalid intrinsic syntax, expected opening `%`");var n=[];return h$(r,cAe,function(i,o,l,s){n[n.length]=l?h$(s,vAe,"$1"):o||i}),n},dAe=function(r,t){var a=r,n;if(r2(v$,a)&&(n=v$[a],a="%"+n[0]+"%"),r2(of,a)){var i=of[a];if(i===_v&&(i=lAe(a)),typeof i=="undefined"&&!t)throw new wv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new Tv("intrinsic "+r+" does not exist!")};y$.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new wv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new wv('"allowMissing" argument must be a boolean');if(fAe(/^%?[^%]*%?$/,r)===null)throw new Tv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=hAe(r),n=a.length>0?a[0]:"",i=dAe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],uAe(a,sAe([0,1],u)));for(var f=1,c=!0;f=a.length){var y=ld(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=r2(l,v),l=l[v];c&&!s&&(of[o]=l)}}return l}});var x$=N((EBe,b$)=>{"use strict";var m$=od(),pAe=g7(),Av=gv(),g$=nf();b$.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new Av("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Av("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Av("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Av("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Av("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Av("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!g$&&g$(r,t);if(m$)m$(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new pAe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var k7=N((DBe,w$)=>{"use strict";var M7=od(),_$=function(){return!!M7};_$.hasArrayLengthDefineBug=function(){if(!M7)return null;try{return M7([],"length",{value:1}).length!==1}catch(r){return!0}};w$.exports=_$});var S$=N((RBe,k$)=>{"use strict";var yAe=a2(),T$=x$(),mAe=k7()(),A$=nf(),M$=gv(),gAe=yAe("%Math.floor%");k$.exports=function(r,t){if(typeof r!="function")throw new M$("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||gAe(t)!==t)throw new M$("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&A$){var o=A$(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(mAe?T$(r,"length",t,!0,!0):T$(r,"length",t)),r}});var fd=N((PBe,n2)=>{"use strict";var S7=bv(),i2=a2(),bAe=S$(),xAe=gv(),L$=i2("%Function.prototype.apply%"),E$=i2("%Function.prototype.call%"),D$=i2("%Reflect.apply%",!0)||S7.call(E$,L$),q$=od(),_Ae=i2("%Math.max%");n2.exports=function(r){if(typeof r!="function")throw new xAe("a function is required");var t=D$(S7,E$,arguments);return bAe(t,1+_Ae(0,r.length-(arguments.length-1)),!0)};var C$=function(){return D$(S7,L$,arguments)};q$?q$(n2.exports,"apply",{value:C$}):n2.exports.apply=C$});var Mv=N((FBe,F$)=>{"use strict";var R$=a2(),P$=fd(),wAe=P$(R$("String.prototype.indexOf"));F$.exports=function(r,t){var a=R$(r,!!t);return typeof a=="function"&&wAe(r,".prototype.")>-1?P$(a):a}});var z$=N((NBe,I$)=>{"use strict";var TAe=id()(),AAe=Mv(),q7=AAe("Object.prototype.toString"),o2=function(r){return TAe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:q7(r)==="[object Arguments]"},N$=function(r){return o2(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&q7(r)!=="[object Array]"&&q7(r.callee)==="[object Function]"},MAe=(function(){return o2(arguments)})();o2.isLegacyArguments=N$;I$.exports=MAe?o2:N$});var H$=N((IBe,B$)=>{"use strict";var kAe=Object.prototype.toString,SAe=Function.prototype.toString,qAe=/^\s*(?:function)?\*/,O$=id()(),C7=Object.getPrototypeOf,CAe=function(){if(!O$)return!1;try{return Function("return function*() {}")()}catch(e){}},L7;B$.exports=function(r){if(typeof r!="function")return!1;if(qAe.test(SAe.call(r)))return!0;if(!O$){var t=kAe.call(r);return t==="[object GeneratorFunction]"}if(!C7)return!1;if(typeof L7=="undefined"){var a=CAe();L7=a?C7(a):!1}return C7(r)===L7}});var Y$=N((zBe,V$)=>{"use strict";var G$=Function.prototype.toString,kv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,D7,l2;if(typeof kv=="function"&&typeof Object.defineProperty=="function")try{D7=Object.defineProperty({},"length",{get:function(){throw l2}}),l2={},kv(function(){throw 42},null,D7)}catch(e){e!==l2&&(kv=null)}else kv=null;var LAe=/^\s*class\b/,R7=function(r){try{var t=G$.call(r);return LAe.test(t)}catch(a){return!1}},E7=function(r){try{return R7(r)?!1:(G$.call(r),!0)}catch(t){return!1}},s2=Object.prototype.toString,EAe="[object Object]",DAe="[object Function]",RAe="[object GeneratorFunction]",PAe="[object HTMLAllCollection]",FAe="[object HTML document.all class]",NAe="[object HTMLCollection]",IAe=typeof Symbol=="function"&&!!Symbol.toStringTag,zAe=!(0 in[,]),P7=function(){return!1};typeof document=="object"&&(U$=document.all,s2.call(U$)===s2.call(document.all)&&(P7=function(r){if((zAe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=s2.call(r);return(t===PAe||t===FAe||t===NAe||t===EAe)&&r("")==null}catch(a){}return!1}));var U$;V$.exports=kv?function(r){if(P7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{kv(r,null,D7)}catch(t){if(t!==l2)return!1}return!R7(r)&&E7(r)}:function(r){if(P7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(IAe)return E7(r);if(R7(r))return!1;var t=s2.call(r);return t!==DAe&&t!==RAe&&!/^\[object HTML/.test(t)?!1:E7(r)}});var F7=N((OBe,j$)=>{"use strict";var OAe=Y$(),BAe=Object.prototype.toString,W$=Object.prototype.hasOwnProperty,HAe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),BAe.call(r)==="[object Array]"?HAe(r,t,n):typeof r=="string"?UAe(r,t,n):GAe(r,t,n)};j$.exports=VAe});var I7=N((BBe,X$)=>{"use strict";var N7=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],YAe=typeof globalThis=="undefined"?window:globalThis;X$.exports=function(){for(var r=[],t=0;t{"use strict";var f2=F7(),WAe=I7(),Z$=fd(),B7=Mv(),u2=nf(),jAe=B7("Object.prototype.toString"),$$=id()(),J$=typeof globalThis=="undefined"?window:globalThis,O7=WAe(),H7=B7("String.prototype.slice"),z7=Object.getPrototypeOf,XAe=B7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:JAe(r)}return u2?ZAe(r):null}});var iK=N((UBe,nK)=>{"use strict";var eK=F7(),$Ae=I7(),G7=Mv(),KAe=G7("Object.prototype.toString"),rK=id()(),v2=nf(),QAe=typeof globalThis=="undefined"?window:globalThis,tK=$Ae(),e8e=G7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return v2?t8e(r):!1}});var W7=N(lt=>{"use strict";var a8e=z$(),n8e=H$(),_o=Q$(),oK=iK();function Sv(e){return e.call.bind(e)}var lK=typeof BigInt!="undefined",sK=typeof Symbol!="undefined",Hi=Sv(Object.prototype.toString),i8e=Sv(Number.prototype.valueOf),o8e=Sv(String.prototype.valueOf),l8e=Sv(Boolean.prototype.valueOf);lK&&(uK=Sv(BigInt.prototype.valueOf));var uK;sK&&(fK=Sv(Symbol.prototype.valueOf));var fK;function vd(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}lt.isArgumentsObject=a8e;lt.isGeneratorFunction=n8e;lt.isTypedArray=oK;function s8e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}lt.isPromise=s8e;function u8e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):oK(e)||vK(e)}lt.isArrayBufferView=u8e;function f8e(e){return _o(e)==="Uint8Array"}lt.isUint8Array=f8e;function c8e(e){return _o(e)==="Uint8ClampedArray"}lt.isUint8ClampedArray=c8e;function v8e(e){return _o(e)==="Uint16Array"}lt.isUint16Array=v8e;function h8e(e){return _o(e)==="Uint32Array"}lt.isUint32Array=h8e;function d8e(e){return _o(e)==="Int8Array"}lt.isInt8Array=d8e;function p8e(e){return _o(e)==="Int16Array"}lt.isInt16Array=p8e;function y8e(e){return _o(e)==="Int32Array"}lt.isInt32Array=y8e;function m8e(e){return _o(e)==="Float32Array"}lt.isFloat32Array=m8e;function g8e(e){return _o(e)==="Float64Array"}lt.isFloat64Array=g8e;function b8e(e){return _o(e)==="BigInt64Array"}lt.isBigInt64Array=b8e;function x8e(e){return _o(e)==="BigUint64Array"}lt.isBigUint64Array=x8e;function h2(e){return Hi(e)==="[object Map]"}h2.working=typeof Map!="undefined"&&h2(new Map);function _8e(e){return typeof Map=="undefined"?!1:h2.working?h2(e):e instanceof Map}lt.isMap=_8e;function d2(e){return Hi(e)==="[object Set]"}d2.working=typeof Set!="undefined"&&d2(new Set);function w8e(e){return typeof Set=="undefined"?!1:d2.working?d2(e):e instanceof Set}lt.isSet=w8e;function p2(e){return Hi(e)==="[object WeakMap]"}p2.working=typeof WeakMap!="undefined"&&p2(new WeakMap);function T8e(e){return typeof WeakMap=="undefined"?!1:p2.working?p2(e):e instanceof WeakMap}lt.isWeakMap=T8e;function Y7(e){return Hi(e)==="[object WeakSet]"}Y7.working=typeof WeakSet!="undefined"&&Y7(new WeakSet);function A8e(e){return Y7(e)}lt.isWeakSet=A8e;function y2(e){return Hi(e)==="[object ArrayBuffer]"}y2.working=typeof ArrayBuffer!="undefined"&&y2(new ArrayBuffer);function cK(e){return typeof ArrayBuffer=="undefined"?!1:y2.working?y2(e):e instanceof ArrayBuffer}lt.isArrayBuffer=cK;function m2(e){return Hi(e)==="[object DataView]"}m2.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&m2(new DataView(new ArrayBuffer(1),0,1));function vK(e){return typeof DataView=="undefined"?!1:m2.working?m2(e):e instanceof DataView}lt.isDataView=vK;var V7=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function cd(e){return Hi(e)==="[object SharedArrayBuffer]"}function hK(e){return typeof V7=="undefined"?!1:(typeof cd.working=="undefined"&&(cd.working=cd(new V7)),cd.working?cd(e):e instanceof V7)}lt.isSharedArrayBuffer=hK;function M8e(e){return Hi(e)==="[object AsyncFunction]"}lt.isAsyncFunction=M8e;function k8e(e){return Hi(e)==="[object Map Iterator]"}lt.isMapIterator=k8e;function S8e(e){return Hi(e)==="[object Set Iterator]"}lt.isSetIterator=S8e;function q8e(e){return Hi(e)==="[object Generator]"}lt.isGeneratorObject=q8e;function C8e(e){return Hi(e)==="[object WebAssembly.Module]"}lt.isWebAssemblyCompiledModule=C8e;function dK(e){return vd(e,i8e)}lt.isNumberObject=dK;function pK(e){return vd(e,o8e)}lt.isStringObject=pK;function yK(e){return vd(e,l8e)}lt.isBooleanObject=yK;function mK(e){return lK&&vd(e,uK)}lt.isBigIntObject=mK;function gK(e){return sK&&vd(e,fK)}lt.isSymbolObject=gK;function L8e(e){return dK(e)||pK(e)||yK(e)||mK(e)||gK(e)}lt.isBoxedPrimitive=L8e;function E8e(e){return typeof Uint8Array!="undefined"&&(cK(e)||hK(e))}lt.isAnyArrayBuffer=E8e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(lt,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var j7=N((VBe,bK)=>{bK.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var Q7=N(st=>{var xK=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),$7(r)?t.showHidden=r:r&&st._extend(t,r),sf(t.showHidden)&&(t.showHidden=!1),sf(t.depth)&&(t.depth=2),sf(t.colors)&&(t.colors=!1),sf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=R8e),_2(t,e,t.depth)}st.inspect=Cs;Cs.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Cs.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function R8e(e,r){var t=Cs.styles[r];return t?"\x1B["+Cs.colors[t][0]+"m"+e+"\x1B["+Cs.colors[t][1]+"m":e}function P8e(e,r){return e}function F8e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function _2(e,r,t){if(e.customInspect&&r&&x2(r.inspect)&&r.inspect!==st.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return A2(a)||(a=_2(e,a,t)),a}var n=N8e(e,r);if(n)return n;var i=Object.keys(r),o=F8e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),dd(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return X7(r);if(i.length===0){if(x2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(hd(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(dd(r))return X7(r)}var s="",u=!1,f=["{","}"];if(wK(r)&&(u=!0,f=["[","]"]),x2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(hd(r)&&(s=" "+RegExp.prototype.toString.call(r)),w2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),dd(r)&&(s=" "+X7(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return hd(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=I8e(e,r,t,o,i):v=i.map(function(d){return J7(e,r,t,o,d,u)}),e.seen.pop(),z8e(v,s,f)}function N8e(e,r){if(sf(r))return e.stylize("undefined","undefined");if(A2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(TK(r))return e.stylize(""+r,"number");if($7(r))return e.stylize(""+r,"boolean");if(T2(r))return e.stylize("null","null")}function X7(e){return"["+Error.prototype.toString.call(e)+"]"}function I8e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).slice(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=e.stylize("[Circular]","special")),lf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function L8e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),sf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function z8e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}st.types=Y7();function xK(e){return Array.isArray(e)}st.isArray=xK;function J7(e){return typeof e=="boolean"}st.isBoolean=J7;function w2(e){return e===null}st.isNull=w2;function C8e(e){return e==null}st.isNullOrUndefined=C8e;function _K(e){return typeof e=="number"}st.isNumber=_K;function T2(e){return typeof e=="string"}st.isString=T2;function E8e(e){return typeof e=="symbol"}st.isSymbol=E8e;function lf(e){return e===void 0}st.isUndefined=lf;function vd(e){return Sv(e)&&$7(e)==="[object RegExp]"}st.isRegExp=vd;st.types.isRegExp=vd;function Sv(e){return typeof e=="object"&&e!==null}st.isObject=Sv;function _2(e){return Sv(e)&&$7(e)==="[object Date]"}st.isDate=_2;st.types.isDate=_2;function hd(e){return Sv(e)&&($7(e)==="[object Error]"||e instanceof Error)}st.isError=hd;st.types.isNativeError=hd;function b2(e){return typeof e=="function"}st.isFunction=b2;function D8e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}st.isPrimitive=D8e;st.isBuffer=W7();function $7(e){return Object.prototype.toString.call(e)}function Z7(e){return e<10?"0"+e.toString(10):e.toString(10)}var R8e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P8e(){var e=new Date,r=[Z7(e.getHours()),Z7(e.getMinutes()),Z7(e.getSeconds())].join(":");return[e.getDate(),R8e[e.getMonth()],r].join(" ")}st.log=function(){console.log("%s - %s",P8e(),st.format.apply(st,arguments))};st.inherits=Rl();st._extend=function(e,r){if(!r||!Sv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function wK(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var of=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;st.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(of&&r[of]){var t=r[of];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,of,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function TK(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function I8e(e){for(var r=1;r0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return A2.alloc(0);for(var a=A2.allocUnsafe(t>>>0),n=this.head,i=0;n;)V8e(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return to.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=A2.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:G8e,value:function(t,a){return Q7(this,I8e({},a,{depth:0,customInspect:!1}))}}]),e}()});var rT=N((IBe,qK)=>{"use strict";function Y8e(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(eT,this,e)):process.nextTick(eT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(M2,t):(t._writableState.errorEmitted=!0,process.nextTick(SK,t,i)):process.nextTick(SK,t,i):r?(process.nextTick(M2,t),r(i)):process.nextTick(M2,t)}),this)}function SK(e,r){eT(e,r),M2(e)}function M2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function W8e(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function eT(e,r){e.emit("error",r)}function j8e(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}qK.exports={destroy:Y8e,undestroy:W8e,errorOrDestroy:j8e}});var sf=N((zBe,EK)=>{"use strict";function Z8e(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var CK={};function Ui(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=function(i){Z8e(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o}(t);n.prototype.name=t.name,n.prototype.code=e,CK[e]=n}function LK(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function X8e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function J8e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function $8e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Ui("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Ui("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&X8e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(J8e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(LK(r,"type"));else{var i=$8e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(LK(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);Ui("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ui("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ui("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ui("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ui("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ui("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ui("ERR_STREAM_WRITE_AFTER_END","write after end");Ui("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ui("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ui("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");EK.exports.codes=CK});var tT=N((OBe,DK)=>{"use strict";var K8e=sf().codes.ERR_INVALID_OPT_VALUE;function Q8e(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function eMe(e,r,t,a){var n=Q8e(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new K8e(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}DK.exports={getHighWaterMark:eMe}});var PK=N((BBe,RK)=>{RK.exports=rMe;function rMe(e,r){if(aT("noDeprecation"))return e;var t=!1;function a(){if(!t){if(aT("throwDeprecation"))throw new Error(r);aT("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function aT(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var oT=N((HBe,BK)=>{"use strict";BK.exports=pa;function NK(e){var r=this;this.next=null,this.entry=null,this.finish=function(){qMe(r,e)}}var qv;pa.WritableState=pd;var tMe={deprecate:PK()},IK=i7(),S2=yv().Buffer,aMe=window.Uint8Array||function(){};function nMe(e){return S2.from(e)}function iMe(e){return S2.isBuffer(e)||e instanceof aMe}var iT=rT(),oMe=tT(),lMe=oMe.getHighWaterMark,Cs=sf().codes,sMe=Cs.ERR_INVALID_ARG_TYPE,uMe=Cs.ERR_METHOD_NOT_IMPLEMENTED,fMe=Cs.ERR_MULTIPLE_CALLBACK,cMe=Cs.ERR_STREAM_CANNOT_PIPE,vMe=Cs.ERR_STREAM_DESTROYED,hMe=Cs.ERR_STREAM_NULL_VALUES,dMe=Cs.ERR_STREAM_WRITE_AFTER_END,pMe=Cs.ERR_UNKNOWN_ENCODING,Lv=iT.errorOrDestroy;Rl()(pa,IK);function yMe(){}function pd(e,r,t){qv=qv||uf(),e=e||{},typeof t!="boolean"&&(t=r instanceof qv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=lMe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){TMe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new NK(this)}pd.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(pd.prototype,"buffer",{get:tMe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var k2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(k2=Function.prototype[Symbol.hasInstance],Object.defineProperty(pa,Symbol.hasInstance,{value:function(r){return k2.call(this,r)?!0:this!==pa?!1:r&&r._writableState instanceof pd}})):k2=function(r){return r instanceof this};function pa(e){qv=qv||uf();var r=this instanceof qv;if(!r&&!k2.call(pa,this))return new pa(e);this._writableState=new pd(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),IK.call(this)}pa.prototype.pipe=function(){Lv(this,new cMe)};function mMe(e,r){var t=new dMe;Lv(e,t),process.nextTick(r,t)}function gMe(e,r,t,a){var n;return t===null?n=new hMe:typeof t!="string"&&!r.objectMode&&(n=new sMe("chunk",["string","Buffer"],t)),n?(Lv(e,n),process.nextTick(a,n),!1):!0}pa.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&iMe(e);return i&&!S2.isBuffer(e)&&(e=nMe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=yMe),a.ending?mMe(this,t):(i||gMe(this,a,e,t))&&(a.pendingcb++,n=xMe(this,a,i,e,r,t)),n};pa.prototype.cork=function(){this._writableState.corked++};pa.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&zK(this,e))};pa.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new pMe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(pa.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function bMe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=S2.from(r,t)),r}Object.defineProperty(pa.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function xMe(e,r,t,a,n,i){if(!t){var o=bMe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length{"use strict";var LMe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};UK.exports=al;var HK=uT(),sT=oT();Rl()(al,HK);for(lT=LMe(sT.prototype),q2=0;q2{var C2=yv(),nl=C2.Buffer;function GK(e,r){for(var t in e)r[t]=e[t]}nl.from&&nl.alloc&&nl.allocUnsafe&&nl.allocUnsafeSlow?VK.exports=C2:(GK(C2,fT),fT.Buffer=ff);function ff(e,r,t){return nl(e,r,t)}ff.prototype=Object.create(nl.prototype);GK(nl,ff);ff.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return nl(e,r,t)};ff.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=nl(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};ff.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return nl(e)};ff.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return C2.SlowBuffer(e)}});var hT=N(jK=>{"use strict";var vT=YK().Buffer,WK=vT.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function DMe(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function RMe(e){var r=DMe(e);if(typeof r!="string"&&(vT.isEncoding===WK||!WK(e)))throw new Error("Unknown encoding: "+e);return r||e}jK.StringDecoder=yd;function yd(e){this.encoding=RMe(e);var r;switch(this.encoding){case"utf16le":this.text=OMe,this.end=BMe,r=4;break;case"utf8":this.fillLast=NMe,r=4;break;case"base64":this.text=HMe,this.end=UMe,r=3;break;default:this.write=GMe,this.end=VMe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=vT.allocUnsafe(r)}yd.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function PMe(e,r,t){var a=r.length-1;if(a=0?(n>0&&(e.lastNeed=n-1),n):--a=0?(n>0&&(e.lastNeed=n-2),n):--a=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function FMe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function NMe(e){var r=this.lastTotal-this.lastNeed,t=FMe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function IMe(e,r){var t=PMe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function zMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function OMe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function BMe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function HMe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function UMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function GMe(e){return e.toString(this.encoding)}function VMe(e){return e&&e.length?this.write(e):""}});var E2=N((VBe,JK)=>{"use strict";var ZK=sf().codes.ERR_STREAM_PREMATURE_CLOSE;function YMe(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n{"use strict";var D2;function Es(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ZMe=E2(),Ds=Symbol("lastResolve"),cf=Symbol("lastReject"),md=Symbol("error"),R2=Symbol("ended"),vf=Symbol("lastPromise"),dT=Symbol("handlePromise"),hf=Symbol("stream");function Rs(e,r){return{value:e,done:r}}function XMe(e){var r=e[Ds];if(r!==null){var t=e[hf].read();t!==null&&(e[vf]=null,e[Ds]=null,e[cf]=null,r(Rs(t,!1)))}}function JMe(e){process.nextTick(XMe,e)}function $Me(e,r){return function(t,a){e.then(function(){if(r[R2]){t(Rs(void 0,!0));return}r[dT](t,a)},a)}}var KMe=Object.getPrototypeOf(function(){}),QMe=Object.setPrototypeOf((D2={get stream(){return this[hf]},next:function(){var r=this,t=this[md];if(t!==null)return Promise.reject(t);if(this[R2])return Promise.resolve(Rs(void 0,!0));if(this[hf].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[md]?l(r[md]):o(Rs(void 0,!0))})});var a=this[vf],n;if(a)n=new Promise($Me(a,this));else{var i=this[hf].read();if(i!==null)return Promise.resolve(Rs(i,!1));n=new Promise(this[dT])}return this[vf]=n,n}},Es(D2,Symbol.asyncIterator,function(){return this}),Es(D2,"return",function(){var r=this;return new Promise(function(t,a){r[hf].destroy(null,function(n){if(n){a(n);return}t(Rs(void 0,!0))})})}),D2),KMe),e9e=function(r){var t,a=Object.create(QMe,(t={},Es(t,hf,{value:r,writable:!0}),Es(t,Ds,{value:null,writable:!0}),Es(t,cf,{value:null,writable:!0}),Es(t,md,{value:null,writable:!0}),Es(t,R2,{value:r._readableState.endEmitted,writable:!0}),Es(t,dT,{value:function(i,o){var l=a[hf].read();l?(a[vf]=null,a[Ds]=null,a[cf]=null,i(Rs(l,!1))):(a[Ds]=i,a[cf]=o)},writable:!0}),t));return a[vf]=null,ZMe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[cf];i!==null&&(a[vf]=null,a[Ds]=null,a[cf]=null,i(n)),a[md]=n;return}var o=a[Ds];o!==null&&(a[vf]=null,a[Ds]=null,a[cf]=null,o(Rs(void 0,!0))),a[R2]=!0}),r.on("readable",JMe.bind(null,a)),a};$K.exports=e9e});var eQ=N((WBe,QK)=>{QK.exports=function(){throw new Error("Readable.from is not available in the browser")}});var uT=N((ZBe,fQ)=>{"use strict";fQ.exports=mt;var Cv;mt.ReadableState=nQ;var jBe=uu().EventEmitter,aQ=function(r,t){return r.listeners(t).length},bd=i7(),P2=yv().Buffer,r9e=window.Uint8Array||function(){};function t9e(e){return P2.from(e)}function a9e(e){return P2.isBuffer(e)||e instanceof r9e}var pT=K7(),tt;pT&&pT.debuglog?tt=pT.debuglog("stream"):tt=function(){};var n9e=kK(),wT=rT(),i9e=tT(),o9e=i9e.getHighWaterMark,F2=sf().codes,l9e=F2.ERR_INVALID_ARG_TYPE,s9e=F2.ERR_STREAM_PUSH_AFTER_EOF,u9e=F2.ERR_METHOD_NOT_IMPLEMENTED,f9e=F2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ev,yT,mT;Rl()(mt,bd);var gd=wT.errorOrDestroy,gT=["error","close","destroy","pause","resume"];function c9e(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function nQ(e,r,t){Cv=Cv||uf(),e=e||{},typeof t!="boolean"&&(t=r instanceof Cv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=o9e(this,e,"readableHighWaterMark",t),this.buffer=new n9e,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Ev||(Ev=hT().StringDecoder),this.decoder=new Ev(e.encoding),this.encoding=e.encoding)}function mt(e){if(Cv=Cv||uf(),!(this instanceof mt))return new mt(e);var r=this instanceof Cv;this._readableState=new nQ(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),bd.call(this)}Object.defineProperty(mt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});mt.prototype.destroy=wT.destroy;mt.prototype._undestroy=wT.undestroy;mt.prototype._destroy=function(e,r){r(e)};mt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=P2.from(e,r),r=""),a=!0),iQ(this,e,r,!1,a)};mt.prototype.unshift=function(e){return iQ(this,e,null,!0,!1)};function iQ(e,r,t,a,n){tt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,d9e(e,i);else{var o;if(n||(o=v9e(i,r)),o)gd(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==P2.prototype&&(r=t9e(r)),a)i.endEmitted?gd(e,new f9e):bT(e,i,r,!0);else if(i.ended)gd(e,new s9e);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?bT(e,i,r,!1):_T(e,i)):bT(e,i,r,!1)}else a||(i.reading=!1,_T(e,i))}return!i.ended&&(i.length=rQ?e=rQ:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function tQ(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=h9e(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}mt.prototype.read=function(e){tt("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return tt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?xT(this):N2(this),null;if(e=tQ(e,r),e===0&&r.ended)return r.length===0&&xT(this),null;var a=r.needReadable;tt("need readable",a),(r.length===0||r.length-e0?n=sQ(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&xT(this)),n!==null&&this.emit("data",n),n};function d9e(e,r){if(tt("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?N2(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,oQ(e)))}}function N2(e){var r=e._readableState;tt("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(tt("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(oQ,e))}function oQ(e){var r=e._readableState;tt("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,TT(e)}function _T(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(p9e,e,r))}function p9e(e,r){for(;!r.reading&&!r.ended&&(r.length1&&uQ(a.pipes,e)!==-1)&&!u&&(tt("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(m){tt("onerror",m),y(),e.removeListener("error",v),aQ(e,"error")===0&&gd(e,m)}c9e(e,"error",v);function d(){e.removeListener("finish",p),y()}e.once("close",d);function p(){tt("onfinish"),e.removeListener("close",d),y()}e.once("finish",p);function y(){tt("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(tt("pipe resume"),t.resume()),e};function y9e(e){return function(){var t=e._readableState;tt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&aQ(e,"data")&&(t.flowing=!0,TT(e))}}mt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,tt("on readable",a.length,a.reading),a.length?N2(this):a.reading||process.nextTick(m9e,this)),t};mt.prototype.addListener=mt.prototype.on;mt.prototype.removeListener=function(e,r){var t=bd.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(lQ,this),t};mt.prototype.removeAllListeners=function(e){var r=bd.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(lQ,this),r};function lQ(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function m9e(e){tt("readable nexttick read 0"),e.read(0)}mt.prototype.resume=function(){var e=this._readableState;return e.flowing||(tt("resume"),e.flowing=!e.readableListening,g9e(this,e)),e.paused=!1,this};function g9e(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(b9e,e,r))}function b9e(e,r){tt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),TT(e),r.flowing&&!r.reading&&e.read(0)}mt.prototype.pause=function(){return tt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(tt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function TT(e){var r=e._readableState;for(tt("flow",r.flowing);r.flowing&&e.read()!==null;);}mt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(tt("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(tt("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(l){return function(){return e[l].apply(e,arguments)}}(n));for(var i=0;i=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function xT(e){var r=e._readableState;tt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(x9e,r,e))}function x9e(e,r){if(tt("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(mt.from=function(e,r){return mT===void 0&&(mT=eQ()),mT(mt,e,r)});function uQ(e,r){for(var t=0,a=e.length;t{"use strict";vQ.exports=Fl;var I2=sf().codes,_9e=I2.ERR_METHOD_NOT_IMPLEMENTED,w9e=I2.ERR_MULTIPLE_CALLBACK,T9e=I2.ERR_TRANSFORM_ALREADY_TRANSFORMING,A9e=I2.ERR_TRANSFORM_WITH_LENGTH_0,z2=uf();Rl()(Fl,z2);function M9e(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new w9e);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";dQ.exports=xd;var hQ=AT();Rl()(xd,hQ);function xd(e){if(!(this instanceof xd))return new xd(e);hQ.call(this,e)}xd.prototype._transform=function(e,r,t){t(null,e)}});var xQ=N(($Be,bQ)=>{"use strict";var MT;function S9e(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var gQ=sf().codes,q9e=gQ.ERR_MISSING_ARGS,L9e=gQ.ERR_STREAM_DESTROYED;function yQ(e){if(e)throw e}function C9e(e){return e.setHeader&&typeof e.abort=="function"}function E9e(e,r,t,a){a=S9e(a);var n=!1;e.on("close",function(){n=!0}),MT===void 0&&(MT=E2()),MT(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,C9e(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new L9e("pipe"))}}}function mQ(e){e()}function D9e(e,r){return e.pipe(r)}function R9e(e){return!e.length||typeof e[e.length-1]!="function"?yQ:e.pop()}function P9e(){for(var e=arguments.length,r=new Array(e),t=0;t0;return E9e(o,s,u,function(f){n||(n=f),f&&i.forEach(mQ),!s&&(i.forEach(mQ),a(n))})});return r.reduce(D9e)}bQ.exports=P9e});var wQ=N((KBe,_Q)=>{_Q.exports=Gi;var kT=uu().EventEmitter,F9e=Rl();F9e(Gi,kT);Gi.Readable=uT();Gi.Writable=oT();Gi.Duplex=uf();Gi.Transform=AT();Gi.PassThrough=pQ();Gi.finished=E2();Gi.pipeline=xQ();Gi.Stream=Gi;function Gi(){kT.call(this)}Gi.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),kT.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Rv=N(ut=>{var TQ=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),CT(r)?t.showHidden=r:r&&ut._extend(t,r),pf(t.showHidden)&&(t.showHidden=!1),pf(t.depth)&&(t.depth=2),pf(t.colors)&&(t.colors=!1),pf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=I9e),U2(t,e,t.depth)}ut.inspect=Ps;Ps.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Ps.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function I9e(e,r){var t=Ps.styles[r];return t?"\x1B["+Ps.colors[t][0]+"m"+e+"\x1B["+Ps.colors[t][1]+"m":e}function z9e(e,r){return e}function O9e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function U2(e,r,t){if(e.customInspect&&r&&H2(r.inspect)&&r.inspect!==ut.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Y2(a)||(a=U2(e,a,t)),a}var n=B9e(e,r);if(n)return n;var i=Object.keys(r),o=O9e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),wd(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return ST(r);if(i.length===0){if(H2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(_d(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(G2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(wd(r))return ST(r)}var s="",u=!1,f=["{","}"];if(MQ(r)&&(u=!0,f=["[","]"]),H2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(_d(r)&&(s=" "+RegExp.prototype.toString.call(r)),G2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),wd(r)&&(s=" "+ST(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return _d(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=H9e(e,r,t,o,i):v=i.map(function(d){return LT(e,r,t,o,d,u)}),e.seen.pop(),U9e(v,s,f)}function B9e(e,r){if(pf(r))return e.stylize("undefined","undefined");if(Y2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(kQ(r))return e.stylize(""+r,"number");if(CT(r))return e.stylize(""+r,"boolean");if(V2(r))return e.stylize("null","null")}function ST(e){return"["+Error.prototype.toString.call(e)+"]"}function H9e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o{"use strict";function MK(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function W8e(e){for(var r=1;r0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return M2.alloc(0);for(var a=M2.allocUnsafe(t>>>0),n=this.head,i=0;n;)Q8e(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return to.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=M2.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:K8e,value:function(t,a){return eT(this,W8e({},a,{depth:0,customInspect:!1}))}}]),e})()});var tT=N((jBe,LK)=>{"use strict";function eMe(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(rT,this,e)):process.nextTick(rT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(k2,t):(t._writableState.errorEmitted=!0,process.nextTick(CK,t,i)):process.nextTick(CK,t,i):r?(process.nextTick(k2,t),r(i)):process.nextTick(k2,t)}),this)}function CK(e,r){rT(e,r),k2(e)}function k2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function rMe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function rT(e,r){e.emit("error",r)}function tMe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}LK.exports={destroy:eMe,undestroy:rMe,errorOrDestroy:tMe}});var uf=N((XBe,RK)=>{"use strict";function aMe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var DK={};function Ui(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){aMe(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o})(t);n.prototype.name=t.name,n.prototype.code=e,DK[e]=n}function EK(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function nMe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function iMe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function oMe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Ui("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Ui("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&nMe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(iMe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(EK(r,"type"));else{var i=oMe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(EK(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);Ui("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ui("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ui("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ui("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ui("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ui("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ui("ERR_STREAM_WRITE_AFTER_END","write after end");Ui("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ui("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ui("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");RK.exports.codes=DK});var aT=N((ZBe,PK)=>{"use strict";var lMe=uf().codes.ERR_INVALID_OPT_VALUE;function sMe(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function uMe(e,r,t,a){var n=sMe(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new lMe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}PK.exports={getHighWaterMark:uMe}});var NK=N((JBe,FK)=>{FK.exports=fMe;function fMe(e,r){if(nT("noDeprecation"))return e;var t=!1;function a(){if(!t){if(nT("throwDeprecation"))throw new Error(r);nT("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function nT(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var lT=N(($Be,UK)=>{"use strict";UK.exports=ya;function zK(e){var r=this;this.next=null,this.entry=null,this.finish=function(){IMe(r,e)}}var Cv;ya.WritableState=yd;var cMe={deprecate:NK()},OK=o7(),q2=mv().Buffer,vMe=window.Uint8Array||function(){};function hMe(e){return q2.from(e)}function dMe(e){return q2.isBuffer(e)||e instanceof vMe}var oT=tT(),pMe=aT(),yMe=pMe.getHighWaterMark,Ls=uf().codes,mMe=Ls.ERR_INVALID_ARG_TYPE,gMe=Ls.ERR_METHOD_NOT_IMPLEMENTED,bMe=Ls.ERR_MULTIPLE_CALLBACK,xMe=Ls.ERR_STREAM_CANNOT_PIPE,_Me=Ls.ERR_STREAM_DESTROYED,wMe=Ls.ERR_STREAM_NULL_VALUES,TMe=Ls.ERR_STREAM_WRITE_AFTER_END,AMe=Ls.ERR_UNKNOWN_ENCODING,Lv=oT.errorOrDestroy;Rl()(ya,OK);function MMe(){}function yd(e,r,t){Cv=Cv||ff(),e=e||{},typeof t!="boolean"&&(t=r instanceof Cv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=yMe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){DMe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new zK(this)}yd.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(yd.prototype,"buffer",{get:cMe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var S2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S2=Function.prototype[Symbol.hasInstance],Object.defineProperty(ya,Symbol.hasInstance,{value:function(r){return S2.call(this,r)?!0:this!==ya?!1:r&&r._writableState instanceof yd}})):S2=function(r){return r instanceof this};function ya(e){Cv=Cv||ff();var r=this instanceof Cv;if(!r&&!S2.call(ya,this))return new ya(e);this._writableState=new yd(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),OK.call(this)}ya.prototype.pipe=function(){Lv(this,new xMe)};function kMe(e,r){var t=new TMe;Lv(e,t),process.nextTick(r,t)}function SMe(e,r,t,a){var n;return t===null?n=new wMe:typeof t!="string"&&!r.objectMode&&(n=new mMe("chunk",["string","Buffer"],t)),n?(Lv(e,n),process.nextTick(a,n),!1):!0}ya.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&dMe(e);return i&&!q2.isBuffer(e)&&(e=hMe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=MMe),a.ending?kMe(this,t):(i||SMe(this,a,e,t))&&(a.pendingcb++,n=CMe(this,a,i,e,r,t)),n};ya.prototype.cork=function(){this._writableState.corked++};ya.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&BK(this,e))};ya.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new AMe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(ya.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function qMe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=q2.from(r,t)),r}Object.defineProperty(ya.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function CMe(e,r,t,a,n,i){if(!t){var o=qMe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length{"use strict";var zMe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};VK.exports=al;var GK=fT(),uT=lT();Rl()(al,GK);for(sT=zMe(uT.prototype),C2=0;C2{var E2=mv(),nl=E2.Buffer;function YK(e,r){for(var t in e)r[t]=e[t]}nl.from&&nl.alloc&&nl.allocUnsafe&&nl.allocUnsafeSlow?WK.exports=E2:(YK(E2,cT),cT.Buffer=cf);function cf(e,r,t){return nl(e,r,t)}cf.prototype=Object.create(nl.prototype);YK(nl,cf);cf.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return nl(e,r,t)};cf.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=nl(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};cf.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return nl(e)};cf.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return E2.SlowBuffer(e)}});var dT=N(ZK=>{"use strict";var hT=jK().Buffer,XK=hT.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function HMe(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function UMe(e){var r=HMe(e);if(typeof r!="string"&&(hT.isEncoding===XK||!XK(e)))throw new Error("Unknown encoding: "+e);return r||e}ZK.StringDecoder=md;function md(e){this.encoding=UMe(e);var r;switch(this.encoding){case"utf16le":this.text=XMe,this.end=ZMe,r=4;break;case"utf8":this.fillLast=YMe,r=4;break;case"base64":this.text=JMe,this.end=$Me,r=3;break;default:this.write=KMe,this.end=QMe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=hT.allocUnsafe(r)}md.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function GMe(e,r,t){var a=r.length-1;if(a=0?(n>0&&(e.lastNeed=n-1),n):--a=0?(n>0&&(e.lastNeed=n-2),n):--a=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function VMe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function YMe(e){var r=this.lastTotal-this.lastNeed,t=VMe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function WMe(e,r){var t=GMe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function jMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function XMe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function ZMe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function JMe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function $Me(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function KMe(e){return e.toString(this.encoding)}function QMe(e){return e&&e.length?this.write(e):""}});var D2=N((eHe,KK)=>{"use strict";var JK=uf().codes.ERR_STREAM_PREMATURE_CLOSE;function e9e(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n{"use strict";var R2;function Es(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var a9e=D2(),Ds=Symbol("lastResolve"),vf=Symbol("lastReject"),gd=Symbol("error"),P2=Symbol("ended"),hf=Symbol("lastPromise"),pT=Symbol("handlePromise"),df=Symbol("stream");function Rs(e,r){return{value:e,done:r}}function n9e(e){var r=e[Ds];if(r!==null){var t=e[df].read();t!==null&&(e[hf]=null,e[Ds]=null,e[vf]=null,r(Rs(t,!1)))}}function i9e(e){process.nextTick(n9e,e)}function o9e(e,r){return function(t,a){e.then(function(){if(r[P2]){t(Rs(void 0,!0));return}r[pT](t,a)},a)}}var l9e=Object.getPrototypeOf(function(){}),s9e=Object.setPrototypeOf((R2={get stream(){return this[df]},next:function(){var r=this,t=this[gd];if(t!==null)return Promise.reject(t);if(this[P2])return Promise.resolve(Rs(void 0,!0));if(this[df].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[gd]?l(r[gd]):o(Rs(void 0,!0))})});var a=this[hf],n;if(a)n=new Promise(o9e(a,this));else{var i=this[df].read();if(i!==null)return Promise.resolve(Rs(i,!1));n=new Promise(this[pT])}return this[hf]=n,n}},Es(R2,Symbol.asyncIterator,function(){return this}),Es(R2,"return",function(){var r=this;return new Promise(function(t,a){r[df].destroy(null,function(n){if(n){a(n);return}t(Rs(void 0,!0))})})}),R2),l9e),u9e=function(r){var t,a=Object.create(s9e,(t={},Es(t,df,{value:r,writable:!0}),Es(t,Ds,{value:null,writable:!0}),Es(t,vf,{value:null,writable:!0}),Es(t,gd,{value:null,writable:!0}),Es(t,P2,{value:r._readableState.endEmitted,writable:!0}),Es(t,pT,{value:function(i,o){var l=a[df].read();l?(a[hf]=null,a[Ds]=null,a[vf]=null,i(Rs(l,!1))):(a[Ds]=i,a[vf]=o)},writable:!0}),t));return a[hf]=null,a9e(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[vf];i!==null&&(a[hf]=null,a[Ds]=null,a[vf]=null,i(n)),a[gd]=n;return}var o=a[Ds];o!==null&&(a[hf]=null,a[Ds]=null,a[vf]=null,o(Rs(void 0,!0))),a[P2]=!0}),r.on("readable",i9e.bind(null,a)),a};QK.exports=u9e});var tQ=N((tHe,rQ)=>{rQ.exports=function(){throw new Error("Readable.from is not available in the browser")}});var fT=N((nHe,vQ)=>{"use strict";vQ.exports=mt;var Ev;mt.ReadableState=oQ;var aHe=uu().EventEmitter,iQ=function(r,t){return r.listeners(t).length},xd=o7(),F2=mv().Buffer,f9e=window.Uint8Array||function(){};function c9e(e){return F2.from(e)}function v9e(e){return F2.isBuffer(e)||e instanceof f9e}var yT=Q7(),tt;yT&&yT.debuglog?tt=yT.debuglog("stream"):tt=function(){};var h9e=qK(),TT=tT(),d9e=aT(),p9e=d9e.getHighWaterMark,N2=uf().codes,y9e=N2.ERR_INVALID_ARG_TYPE,m9e=N2.ERR_STREAM_PUSH_AFTER_EOF,g9e=N2.ERR_METHOD_NOT_IMPLEMENTED,b9e=N2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Dv,mT,gT;Rl()(mt,xd);var bd=TT.errorOrDestroy,bT=["error","close","destroy","pause","resume"];function x9e(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function oQ(e,r,t){Ev=Ev||ff(),e=e||{},typeof t!="boolean"&&(t=r instanceof Ev),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p9e(this,e,"readableHighWaterMark",t),this.buffer=new h9e,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Dv||(Dv=dT().StringDecoder),this.decoder=new Dv(e.encoding),this.encoding=e.encoding)}function mt(e){if(Ev=Ev||ff(),!(this instanceof mt))return new mt(e);var r=this instanceof Ev;this._readableState=new oQ(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),xd.call(this)}Object.defineProperty(mt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});mt.prototype.destroy=TT.destroy;mt.prototype._undestroy=TT.undestroy;mt.prototype._destroy=function(e,r){r(e)};mt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=F2.from(e,r),r=""),a=!0),lQ(this,e,r,!1,a)};mt.prototype.unshift=function(e){return lQ(this,e,null,!0,!1)};function lQ(e,r,t,a,n){tt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,T9e(e,i);else{var o;if(n||(o=_9e(i,r)),o)bd(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==F2.prototype&&(r=c9e(r)),a)i.endEmitted?bd(e,new b9e):xT(e,i,r,!0);else if(i.ended)bd(e,new m9e);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?xT(e,i,r,!1):wT(e,i)):xT(e,i,r,!1)}else a||(i.reading=!1,wT(e,i))}return!i.ended&&(i.length=aQ?e=aQ:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function nQ(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=w9e(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}mt.prototype.read=function(e){tt("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return tt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?_T(this):I2(this),null;if(e=nQ(e,r),e===0&&r.ended)return r.length===0&&_T(this),null;var a=r.needReadable;tt("need readable",a),(r.length===0||r.length-e0?n=fQ(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&_T(this)),n!==null&&this.emit("data",n),n};function T9e(e,r){if(tt("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?I2(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,sQ(e)))}}function I2(e){var r=e._readableState;tt("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(tt("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(sQ,e))}function sQ(e){var r=e._readableState;tt("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,AT(e)}function wT(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(A9e,e,r))}function A9e(e,r){for(;!r.reading&&!r.ended&&(r.length1&&cQ(a.pipes,e)!==-1)&&!u&&(tt("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(m){tt("onerror",m),y(),e.removeListener("error",v),iQ(e,"error")===0&&bd(e,m)}x9e(e,"error",v);function d(){e.removeListener("finish",p),y()}e.once("close",d);function p(){tt("onfinish"),e.removeListener("close",d),y()}e.once("finish",p);function y(){tt("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(tt("pipe resume"),t.resume()),e};function M9e(e){return function(){var t=e._readableState;tt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&iQ(e,"data")&&(t.flowing=!0,AT(e))}}mt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,tt("on readable",a.length,a.reading),a.length?I2(this):a.reading||process.nextTick(k9e,this)),t};mt.prototype.addListener=mt.prototype.on;mt.prototype.removeListener=function(e,r){var t=xd.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(uQ,this),t};mt.prototype.removeAllListeners=function(e){var r=xd.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(uQ,this),r};function uQ(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function k9e(e){tt("readable nexttick read 0"),e.read(0)}mt.prototype.resume=function(){var e=this._readableState;return e.flowing||(tt("resume"),e.flowing=!e.readableListening,S9e(this,e)),e.paused=!1,this};function S9e(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(q9e,e,r))}function q9e(e,r){tt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),AT(e),r.flowing&&!r.reading&&e.read(0)}mt.prototype.pause=function(){return tt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(tt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function AT(e){var r=e._readableState;for(tt("flow",r.flowing);r.flowing&&e.read()!==null;);}mt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(tt("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(tt("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(l){return function(){return e[l].apply(e,arguments)}})(n));for(var i=0;i=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function _T(e){var r=e._readableState;tt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(C9e,r,e))}function C9e(e,r){if(tt("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(mt.from=function(e,r){return gT===void 0&&(gT=tQ()),gT(mt,e,r)});function cQ(e,r){for(var t=0,a=e.length;t{"use strict";dQ.exports=Fl;var z2=uf().codes,L9e=z2.ERR_METHOD_NOT_IMPLEMENTED,E9e=z2.ERR_MULTIPLE_CALLBACK,D9e=z2.ERR_TRANSFORM_ALREADY_TRANSFORMING,R9e=z2.ERR_TRANSFORM_WITH_LENGTH_0,O2=ff();Rl()(Fl,O2);function P9e(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new E9e);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";yQ.exports=_d;var pQ=MT();Rl()(_d,pQ);function _d(e){if(!(this instanceof _d))return new _d(e);pQ.call(this,e)}_d.prototype._transform=function(e,r,t){t(null,e)}});var wQ=N((lHe,_Q)=>{"use strict";var kT;function N9e(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var xQ=uf().codes,I9e=xQ.ERR_MISSING_ARGS,z9e=xQ.ERR_STREAM_DESTROYED;function gQ(e){if(e)throw e}function O9e(e){return e.setHeader&&typeof e.abort=="function"}function B9e(e,r,t,a){a=N9e(a);var n=!1;e.on("close",function(){n=!0}),kT===void 0&&(kT=D2()),kT(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,O9e(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new z9e("pipe"))}}}function bQ(e){e()}function H9e(e,r){return e.pipe(r)}function U9e(e){return!e.length||typeof e[e.length-1]!="function"?gQ:e.pop()}function G9e(){for(var e=arguments.length,r=new Array(e),t=0;t0;return B9e(o,s,u,function(f){n||(n=f),f&&i.forEach(bQ),!s&&(i.forEach(bQ),a(n))})});return r.reduce(H9e)}_Q.exports=G9e});var AQ=N((sHe,TQ)=>{TQ.exports=Gi;var ST=uu().EventEmitter,V9e=Rl();V9e(Gi,ST);Gi.Readable=fT();Gi.Writable=lT();Gi.Duplex=ff();Gi.Transform=MT();Gi.PassThrough=mQ();Gi.finished=D2();Gi.pipeline=wQ();Gi.Stream=Gi;function Gi(){ST.call(this)}Gi.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),ST.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Pv=N(ut=>{var MQ=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),ET(r)?t.showHidden=r:r&&ut._extend(t,r),yf(t.showHidden)&&(t.showHidden=!1),yf(t.depth)&&(t.depth=2),yf(t.colors)&&(t.colors=!1),yf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=W9e),G2(t,e,t.depth)}ut.inspect=Ps;Ps.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Ps.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function W9e(e,r){var t=Ps.styles[r];return t?"\x1B["+Ps.colors[t][0]+"m"+e+"\x1B["+Ps.colors[t][1]+"m":e}function j9e(e,r){return e}function X9e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function G2(e,r,t){if(e.customInspect&&r&&U2(r.inspect)&&r.inspect!==ut.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return W2(a)||(a=G2(e,a,t)),a}var n=Z9e(e,r);if(n)return n;var i=Object.keys(r),o=X9e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),Td(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return qT(r);if(i.length===0){if(U2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(wd(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(V2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Td(r))return qT(r)}var s="",u=!1,f=["{","}"];if(SQ(r)&&(u=!0,f=["[","]"]),U2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(wd(r)&&(s=" "+RegExp.prototype.toString.call(r)),V2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),Td(r)&&(s=" "+qT(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return wd(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=J9e(e,r,t,o,i):v=i.map(function(d){return LT(e,r,t,o,d,u)}),e.seen.pop(),$9e(v,s,f)}function Z9e(e,r){if(yf(r))return e.stylize("undefined","undefined");if(W2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(qQ(r))return e.stylize(""+r,"number");if(ET(r))return e.stylize(""+r,"boolean");if(Y2(r))return e.stylize("null","null")}function qT(e){return"["+Error.prototype.toString.call(e)+"]"}function J9e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).slice(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=e.stylize("[Circular]","special")),pf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function U9e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),yf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function $9e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}ut.types=Y7();function MQ(e){return Array.isArray(e)}ut.isArray=MQ;function CT(e){return typeof e=="boolean"}ut.isBoolean=CT;function V2(e){return e===null}ut.isNull=V2;function G9e(e){return e==null}ut.isNullOrUndefined=G9e;function kQ(e){return typeof e=="number"}ut.isNumber=kQ;function Y2(e){return typeof e=="string"}ut.isString=Y2;function V9e(e){return typeof e=="symbol"}ut.isSymbol=V9e;function pf(e){return e===void 0}ut.isUndefined=pf;function _d(e){return Dv(e)&&ET(e)==="[object RegExp]"}ut.isRegExp=_d;ut.types.isRegExp=_d;function Dv(e){return typeof e=="object"&&e!==null}ut.isObject=Dv;function G2(e){return Dv(e)&&ET(e)==="[object Date]"}ut.isDate=G2;ut.types.isDate=G2;function wd(e){return Dv(e)&&(ET(e)==="[object Error]"||e instanceof Error)}ut.isError=wd;ut.types.isNativeError=wd;function H2(e){return typeof e=="function"}ut.isFunction=H2;function Y9e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ut.isPrimitive=Y9e;ut.isBuffer=W7();function ET(e){return Object.prototype.toString.call(e)}function qT(e){return e<10?"0"+e.toString(10):e.toString(10)}var W9e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j9e(){var e=new Date,r=[qT(e.getHours()),qT(e.getMinutes()),qT(e.getSeconds())].join(":");return[e.getDate(),W9e[e.getMonth()],r].join(" ")}ut.log=function(){console.log("%s - %s",j9e(),ut.format.apply(ut,arguments))};ut.inherits=Rl();ut._extend=function(e,r){if(!r||!Dv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function SQ(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var df=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ut.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(df&&r[df]){var t=r[df];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,df,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function Fs(e){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fs(e)}function qQ(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function ike(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function oke(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function lke(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Td("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Td("ERR_INVALID_ARG_TYPE",function(e,r,t){Pv===void 0&&(Pv=j2()),Pv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&ike(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(oke(e," argument"))n="The ".concat(e," ").concat(a," ").concat(LQ(r,"type"));else{var i=lke(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(LQ(r,"type"))}return n+=". Received type ".concat(Fs(t)),n},TypeError);Td("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";DT===void 0&&(DT=Rv());var a=DT.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);Td("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(Fs(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);Td("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);EQ.exports.codes=CQ});var HQ=N((rHe,BQ)=>{"use strict";function DQ(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function RQ(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function gke(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var wo="",Ad="",Md="",rn="",yf={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},bke=10;function NQ(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function kd(e){return IT(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function xke(e,r,t){var a="",n="",i=0,o="",l=!1,s=kd(e),u=s.split(` -`),f=kd(r).split(` -`),c=0,v="";if(t==="strictEqual"&&Vn(e)==="object"&&Vn(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=bke){if((Vn(e)!=="object"||e===null)&&(Vn(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(yf[t],` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}ut.types=W7();function SQ(e){return Array.isArray(e)}ut.isArray=SQ;function ET(e){return typeof e=="boolean"}ut.isBoolean=ET;function Y2(e){return e===null}ut.isNull=Y2;function K9e(e){return e==null}ut.isNullOrUndefined=K9e;function qQ(e){return typeof e=="number"}ut.isNumber=qQ;function W2(e){return typeof e=="string"}ut.isString=W2;function Q9e(e){return typeof e=="symbol"}ut.isSymbol=Q9e;function yf(e){return e===void 0}ut.isUndefined=yf;function wd(e){return Rv(e)&&DT(e)==="[object RegExp]"}ut.isRegExp=wd;ut.types.isRegExp=wd;function Rv(e){return typeof e=="object"&&e!==null}ut.isObject=Rv;function V2(e){return Rv(e)&&DT(e)==="[object Date]"}ut.isDate=V2;ut.types.isDate=V2;function Td(e){return Rv(e)&&(DT(e)==="[object Error]"||e instanceof Error)}ut.isError=Td;ut.types.isNativeError=Td;function U2(e){return typeof e=="function"}ut.isFunction=U2;function eke(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ut.isPrimitive=eke;ut.isBuffer=j7();function DT(e){return Object.prototype.toString.call(e)}function CT(e){return e<10?"0"+e.toString(10):e.toString(10)}var rke=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tke(){var e=new Date,r=[CT(e.getHours()),CT(e.getMinutes()),CT(e.getSeconds())].join(":");return[e.getDate(),rke[e.getMonth()],r].join(" ")}ut.log=function(){console.log("%s - %s",tke(),ut.format.apply(ut,arguments))};ut.inherits=Rl();ut._extend=function(e,r){if(!r||!Rv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function CQ(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var pf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ut.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(pf&&r[pf]){var t=r[pf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,pf,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function Fs(e){"@babel/helpers - typeof";return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fs(e)}function LQ(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function dke(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function pke(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function yke(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Ad("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Ad("ERR_INVALID_ARG_TYPE",function(e,r,t){Fv===void 0&&(Fv=X2()),Fv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&dke(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(pke(e," argument"))n="The ".concat(e," ").concat(a," ").concat(EQ(r,"type"));else{var i=yke(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(EQ(r,"type"))}return n+=". Received type ".concat(Fs(t)),n},TypeError);Ad("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";RT===void 0&&(RT=Pv());var a=RT.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);Ad("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(Fs(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);Ad("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);RQ.exports.codes=DQ});var GQ=N((cHe,UQ)=>{"use strict";function PQ(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function FQ(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function Ske(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var wo="",Md="",kd="",rn="",mf={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},qke=10;function zQ(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function Sd(e){return zT(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Cke(e,r,t){var a="",n="",i=0,o="",l=!1,s=Sd(e),u=s.split(` +`),f=Sd(r).split(` +`),c=0,v="";if(t==="strictEqual"&&Vn(e)==="object"&&Vn(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=qke){if((Vn(e)!=="object"||e===null)&&(Vn(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(mf[t],` `)+"".concat(u[0]," !== ").concat(f[0],` `)}else if(t!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(v=` - `.concat(gke(" ",c),"^"),c=0)}}}for(var y=u[u.length-1],m=f[f.length-1];y===m&&(c++<2?o=` + `.concat(Ske(" ",c),"^"),c=0)}}}for(var y=u[u.length-1],m=f[f.length-1];y===m&&(c++<2?o=` `.concat(y).concat(o):a=y,u.pop(),f.pop(),!(u.length===0||f.length===0));)y=u[u.length-1],m=f[f.length-1];var x=Math.max(u.length,f.length);if(x===0){var T=s.split(` -`);if(T.length>30)for(T[26]="".concat(wo,"...").concat(rn);T.length>27;)T.pop();return"".concat(yf.notIdentical,` +`);if(T.length>30)for(T[26]="".concat(wo,"...").concat(rn);T.length>27;)T.pop();return"".concat(mf.notIdentical,` `).concat(T.join(` `),` `)}c>3&&(o=` `.concat(wo,"...").concat(rn).concat(o),l=!0),a!==""&&(o=` - `.concat(a).concat(o),a="");var _=0,b=yf[t]+` -`.concat(Ad,"+ actual").concat(rn," ").concat(Md,"- expected").concat(rn),w=" ".concat(wo,"...").concat(rn," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` + `.concat(a).concat(o),a="");var _=0,b=mf[t]+` +`.concat(Md,"+ actual").concat(rn," ").concat(kd,"- expected").concat(rn),w=" ".concat(wo,"...").concat(rn," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` `.concat(wo,"...").concat(rn),l=!0):k>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,a+=` -`.concat(Md,"-").concat(rn," ").concat(f[c]),_++;else if(f.length1&&c>2&&(k>4?(n+=` +`.concat(kd,"-").concat(rn," ").concat(f[c]),_++;else if(f.length1&&c>2&&(k>4?(n+=` `.concat(wo,"...").concat(rn),l=!0):k>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,n+=` -`.concat(Ad,"+").concat(rn," ").concat(u[c]),_++;else{var M=f[c],S=u[c],E=S!==M&&(!FQ(S,",")||S.slice(0,-1)!==M);E&&FQ(M,",")&&M.slice(0,-1)===S&&(E=!1,S+=","),E?(k>1&&c>2&&(k>4?(n+=` +`.concat(Md,"+").concat(rn," ").concat(u[c]),_++;else{var M=f[c],S=u[c],E=S!==M&&(!IQ(S,",")||S.slice(0,-1)!==M);E&&IQ(M,",")&&M.slice(0,-1)===S&&(E=!1,S+=","),E?(k>1&&c>2&&(k>4?(n+=` `.concat(wo,"...").concat(rn),l=!0):k>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,n+=` -`.concat(Ad,"+").concat(rn," ").concat(S),a+=` -`.concat(Md,"-").concat(rn," ").concat(M),_+=2):(n+=a,a="",(k===1||c===0)&&(n+=` +`.concat(Md,"+").concat(rn," ").concat(S),a+=` +`.concat(kd,"-").concat(rn," ").concat(M),_+=2):(n+=a,a="",(k===1||c===0)&&(n+=` `.concat(S),_++))}if(_>20&&c30)for(d[26]="".concat(wo,"...").concat(rn);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` +`).concat(n).concat(a).concat(o).concat(v)}var Lke=(function(e,r){_ke(a,e);var t=wke(a);function a(n){var i;if(gke(this,a),Vn(n)!=="object"||n===null)throw new kke("options","Object",n);var o=n.message,l=n.operator,s=n.stackStartFn,u=n.actual,f=n.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)i=t.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(wo="\x1B[34m",Md="\x1B[32m",rn="\x1B[39m",kd="\x1B[31m"):(wo="",Md="",rn="",kd="")),Vn(u)==="object"&&u!==null&&Vn(f)==="object"&&f!==null&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=zQ(u),f=zQ(f)),l==="deepStrictEqual"||l==="strictEqual")i=t.call(this,Cke(u,f,l));else if(l==="notDeepStrictEqual"||l==="notStrictEqual"){var v=mf[l],d=Sd(u).split(` +`);if(l==="notStrictEqual"&&Vn(u)==="object"&&u!==null&&(v=mf.notStrictEqualObject),d.length>30)for(d[26]="".concat(wo,"...").concat(rn);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` `).concat(d.join(` `),` -`))}else{var p=kd(u),y="",m=yf[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(yf[l],` +`))}else{var p=Sd(u),y="",m=mf[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(mf[l],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(kd(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(Sd(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,` `).concat(p,` should equal -`):y=" ".concat(l," ").concat(y)),i=t.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(FT(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=u,i.expected=f,i.operator=l,Error.captureStackTrace&&Error.captureStackTrace(FT(i),s),i.stack,i.name="AssertionError",zQ(i)}return fke(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return IT(this,RQ(RQ({},o),{},{customInspect:!1,depth:0}))}}]),a}(NT(Error),IT.custom);BQ.exports=_ke});var zT=N((tHe,GQ)=>{"use strict";var UQ=Object.prototype.toString;GQ.exports=function(r){var t=UQ.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&UQ.call(r.callee)==="[object Function]"),a}});var KQ=N((aHe,$Q)=>{"use strict";var JQ;Object.keys||(Ld=Object.prototype.hasOwnProperty,OT=Object.prototype.toString,VQ=zT(),BT=Object.prototype.propertyIsEnumerable,YQ=!BT.call({toString:null},"toString"),WQ=BT.call(function(){},"prototype"),Cd=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],X2=function(e){var r=e.constructor;return r&&r.prototype===e},jQ={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},ZQ=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!jQ["$"+e]&&Ld.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{X2(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),XQ=function(e){if(typeof window=="undefined"||!ZQ)return X2(e);try{return X2(e)}catch(r){return!1}},JQ=function(r){var t=r!==null&&typeof r=="object",a=OT.call(r)==="[object Function]",n=VQ(r),i=t&&OT.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=WQ&&a;if(i&&r.length>0&&!Ld.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var wke=Array.prototype.slice,Tke=zT(),QQ=Object.keys,J2=QQ?function(r){return QQ(r)}:KQ(),eee=Object.keys;J2.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return Tke(a)?eee(wke.call(a)):eee(a)})}else Object.keys=J2;return Object.keys||J2};ree.exports=J2});var lee=N((iHe,oee)=>{"use strict";var Ake=HT(),nee=Jg()(),iee=Av(),tee=Object,Mke=iee("Array.prototype.push"),aee=iee("Object.prototype.propertyIsEnumerable"),kke=nee?Object.getOwnPropertySymbols:null;oee.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=tee(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var UT=lee(),Ske=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var fee=function(e){return e!==e};cee.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||fee(r)&&fee(t))}});var $2=N((sHe,vee)=>{"use strict";var Lke=GT();vee.exports=function(){return typeof Object.is=="function"?Object.is:Lke}});var Ed=N((uHe,yee)=>{"use strict";var Cke=HT(),Eke=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Dke=Object.prototype.toString,Rke=Array.prototype.concat,hee=Object.defineProperty,Pke=function(e){return typeof e=="function"&&Dke.call(e)==="[object Function]"},Fke=M7()(),dee=hee&&Fke,Nke=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!Pke(a)||!a())return}dee?hee(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},pee=function(e,r){var t=arguments.length>2?arguments[2]:{},a=Cke(r);Eke&&(a=Rke.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var Ike=$2(),zke=Ed();mee.exports=function(){var r=Ike();return zke(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var wee=N((cHe,_ee)=>{"use strict";var Oke=Ed(),Bke=ud(),Hke=GT(),bee=$2(),Uke=gee(),xee=Bke(bee(),Object);Oke(xee,{getPolyfill:bee,implementation:Hke,shim:Uke});_ee.exports=xee});var VT=N((vHe,Tee)=>{"use strict";Tee.exports=function(r){return r!==r}});var YT=N((hHe,Aee)=>{"use strict";var Gke=VT();Aee.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Gke}});var kee=N((dHe,Mee)=>{"use strict";var Vke=Ed(),Yke=YT();Mee.exports=function(){var r=Yke();return Vke(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var Cee=N((pHe,Lee)=>{"use strict";var Wke=ud(),jke=Ed(),Zke=VT(),See=YT(),Xke=kee(),qee=Wke(See(),Number);jke(qee,{getPolyfill:See,implementation:Zke,shim:Xke});Lee.exports=qee});var Jee=N((yHe,Xee)=>{"use strict";function Eee(e,r){return Qke(e)||Kke(e,r)||$ke(e,r)||Jke()}function Jke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ke(e,r){if(e){if(typeof e=="string")return Dee(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Dee(e,r)}}function Dee(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function e3(e){return Object.keys(e).filter(sSe).concat(t3(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function Yee(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},To(e)}function $ee(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var VQ=Object.prototype.toString;YQ.exports=function(r){var t=VQ.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&VQ.call(r.callee)==="[object Function]"),a}});var eee=N((hHe,QQ)=>{"use strict";var KQ;Object.keys||(Ld=Object.prototype.hasOwnProperty,BT=Object.prototype.toString,WQ=OT(),HT=Object.prototype.propertyIsEnumerable,jQ=!HT.call({toString:null},"toString"),XQ=HT.call(function(){},"prototype"),Ed=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],J2=function(e){var r=e.constructor;return r&&r.prototype===e},ZQ={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},JQ=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!ZQ["$"+e]&&Ld.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{J2(window[e])}catch(r){return!0}}catch(r){return!0}return!1})(),$Q=function(e){if(typeof window=="undefined"||!JQ)return J2(e);try{return J2(e)}catch(r){return!1}},KQ=function(r){var t=r!==null&&typeof r=="object",a=BT.call(r)==="[object Function]",n=WQ(r),i=t&&BT.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=XQ&&a;if(i&&r.length>0&&!Ld.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var Eke=Array.prototype.slice,Dke=OT(),ree=Object.keys,$2=ree?function(r){return ree(r)}:eee(),tee=Object.keys;$2.shim=function(){if(Object.keys){var r=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);r||(Object.keys=function(a){return Dke(a)?tee(Eke.call(a)):tee(a)})}else Object.keys=$2;return Object.keys||$2};aee.exports=$2});var uee=N((pHe,see)=>{"use strict";var Rke=UT(),oee=$g()(),lee=Mv(),nee=Object,Pke=lee("Array.prototype.push"),iee=lee("Object.prototype.propertyIsEnumerable"),Fke=oee?Object.getOwnPropertySymbols:null;see.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=nee(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var GT=uee(),Nke=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var vee=function(e){return e!==e};hee.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||vee(r)&&vee(t))}});var K2=N((gHe,dee)=>{"use strict";var zke=VT();dee.exports=function(){return typeof Object.is=="function"?Object.is:zke}});var Dd=N((bHe,gee)=>{"use strict";var Oke=UT(),Bke=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Hke=Object.prototype.toString,Uke=Array.prototype.concat,pee=Object.defineProperty,Gke=function(e){return typeof e=="function"&&Hke.call(e)==="[object Function]"},Vke=k7()(),yee=pee&&Vke,Yke=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!Gke(a)||!a())return}yee?pee(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},mee=function(e,r){var t=arguments.length>2?arguments[2]:{},a=Oke(r);Bke&&(a=Uke.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var Wke=K2(),jke=Dd();bee.exports=function(){var r=Wke();return jke(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var Aee=N((_He,Tee)=>{"use strict";var Xke=Dd(),Zke=fd(),Jke=VT(),_ee=K2(),$ke=xee(),wee=Zke(_ee(),Object);Xke(wee,{getPolyfill:_ee,implementation:Jke,shim:$ke});Tee.exports=wee});var YT=N((wHe,Mee)=>{"use strict";Mee.exports=function(r){return r!==r}});var WT=N((THe,kee)=>{"use strict";var Kke=YT();kee.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Kke}});var qee=N((AHe,See)=>{"use strict";var Qke=Dd(),eSe=WT();See.exports=function(){var r=eSe();return Qke(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var Dee=N((MHe,Eee)=>{"use strict";var rSe=fd(),tSe=Dd(),aSe=YT(),Cee=WT(),nSe=qee(),Lee=rSe(Cee(),Number);tSe(Lee,{getPolyfill:Cee,implementation:aSe,shim:nSe});Eee.exports=Lee});var Kee=N((kHe,$ee)=>{"use strict";function Ree(e,r){return sSe(e)||lSe(e,r)||oSe(e,r)||iSe()}function iSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oSe(e,r){if(e){if(typeof e=="string")return Pee(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Pee(e,r)}}function Pee(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function r3(e){return Object.keys(e).filter(mSe).concat(a3(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function jee(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},To(e)}function Qee(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{var Nd=1e3,Id=Nd*60,zd=Id*60,Od=zd*24,PSe=Od*365.25;pre.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return FSe(e);if(t==="number"&&isNaN(e)===!1)return r.long?ISe(e):NSe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function FSe(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*PSe;case"days":case"day":case"d":return t*Od;case"hours":case"hour":case"hrs":case"hr":case"h":return t*zd;case"minutes":case"minute":case"mins":case"min":case"m":return t*Id;case"seconds":case"second":case"secs":case"sec":case"s":return t*Nd;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function NSe(e){return e>=Od?Math.round(e/Od)+"d":e>=zd?Math.round(e/zd)+"h":e>=Id?Math.round(e/Id)+"m":e>=Nd?Math.round(e/Nd)+"s":e+"ms"}function ISe(e){return f3(e,Od,"day")||f3(e,zd,"hour")||f3(e,Id,"minute")||f3(e,Nd,"second")||e+" ms"}function f3(e,r,t){if(!(e{St=mre.exports=KT.debug=KT.default=KT;St.coerce=USe;St.disable=BSe;St.enable=OSe;St.enabled=HSe;St.humanize=yre();St.names=[];St.skips=[];St.formatters={};var $T;function zSe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return St.colors[Math.abs(r)%St.colors.length]}function KT(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-($T||a);t.diff=n,t.prev=$T,t.curr=a,$T=a;for(var i=new Array(arguments.length),o=0;o{An=xre.exports=gre();An.log=YSe;An.formatArgs=VSe;An.save=WSe;An.load=bre;An.useColors=GSe;An.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:jSe();An.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function GSe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}An.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function VSe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+An.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function YSe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function WSe(e){try{e==null?An.storage.removeItem("debug"):An.storage.debug=e}catch(r){}}function bre(){var e;try{e=An.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}An.enable(bre());function jSe(){try{return window.localStorage}catch(e){}}});var Lre=N((bHe,qre)=>{var Nv=j2(),Os=_re()("stream-parser");qre.exports=XSe;var Tre=-1,c3=0,ZSe=1,Are=2;function XSe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");Os("extending Parser into stream"),e._bytes=JSe,e._skipBytes=$Se,r&&(e._passthrough=KSe),r?e._transform=eqe:e._write=QSe}function Bd(e){Os("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=Tre,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function JSe(e,r){Nv(!this._parserCallback,'there is already a "callback" set!'),Nv(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||Bd(this),Os("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=c3}function $Se(e,r){Nv(!this._parserCallback,'there is already a "callback" set!'),Nv(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||Bd(this),Os("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=ZSe}function KSe(e,r){Nv(!this._parserCallback,'There is already a "callback" set!'),Nv(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||Bd(this),Os("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=Are}function QSe(e,r,t){this._parserInit||Bd(this),Os("write(%o bytes)",e.length),typeof r=="function"&&(t=r),kre(this,e,null,t)}function eqe(e,r,t){this._parserInit||Bd(this),Os("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),kre(this,e,r,t)}function Mre(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return wre(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return wre(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return Mre(e,r.slice(n.length),t,a)}})}}function wre(e,r,t,a){if(e._parserBytesLeft-=r.length,Os("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===c3?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===Are&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===c3&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==c3&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=Tre,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(Sre(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var kre=Sre(Mre);function Sre(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var xt=N(Nl=>{"use strict";var Cre=wQ().Transform,rqe=Lre();function Hd(){Cre.call(this,{readableObjectMode:!0})}Hd.prototype=Object.create(Cre.prototype);Hd.prototype.constructor=Hd;rqe(Hd.prototype);Nl.ParserStream=Hd;Nl.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var Iv=xt().readUInt16BE,eA=xt().readUInt32BE;function Ud(e,r){if(e.length<4+r)return null;var t=eA(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=Iv(e,6),o=8,l=0;li.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}h3.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(oqe(e,r),!!r.sizes.length){var t=lqe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s{"use strict";function d3(e,r){var t=new Error(e);return t.code=r,t}function sqe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function Il(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw d3("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}Il.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};Il.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw d3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};Il.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw d3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};Il.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};Il.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Il.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Il.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;nthis.input.length)throw d3("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var m={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(m)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};rA.exports.ExifParser=Il;rA.exports.get_orientation=function(e){var r=0;try{return new Il(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var Rre=N((THe,Dre)=>{"use strict";var uqe=xt().str2arr,fqe=xt().sliceEq,cqe=xt().readUInt32BE,y3=Ere(),vqe=p3(),hqe=uqe("ftyp");Dre.exports=function(e){if(fqe(e,4,hqe)){var r=y3.unbox(e,0);if(r){var t=y3.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=y3.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=y3.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=cqe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=vqe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var Nre=N((AHe,Fre)=>{"use strict";var dqe=xt().str2arr,pqe=xt().sliceEq,Pre=xt().readUInt16LE,yqe=dqe("BM");Fre.exports=function(e){if(!(e.length<26)&&pqe(e,0,yqe))return{width:Pre(e,18),height:Pre(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var Hre=N((MHe,Bre)=>{"use strict";var Ore=xt().str2arr,Ire=xt().sliceEq,zre=xt().readUInt16LE,mqe=Ore("GIF87a"),gqe=Ore("GIF89a");Bre.exports=function(e){if(!(e.length<10)&&!(!Ire(e,0,mqe)&&!Ire(e,0,gqe)))return{width:zre(e,6),height:zre(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Vre=N((kHe,Gre)=>{"use strict";var tA=xt().readUInt16LE,bqe=0,xqe=1,Ure=16;Gre.exports=function(e){var r=tA(e,0),t=tA(e,2),a=tA(e,4);if(!(r!==bqe||t!==xqe||!a)){for(var n=[],i={width:0,height:0},o=0;oi.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Wre=N((SHe,Yre)=>{"use strict";var aA=xt().readUInt16BE,_qe=xt().str2arr,wqe=xt().sliceEq,Tqe=p3(),Aqe=_qe("Exif\0\0");Yre.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(208<=t&&t<=217||t===1)a=0;else if(192<=t&&t<=254){if(e.length-r<2)return;a=aA(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&wqe(e,r,Aqe)&&(n=Tqe.get_orientation(e.slice(r+6,r+a))),a>=5&&192<=t&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r0&&(i.orientation=n),i}r+=a}}});var $re=N((qHe,Jre)=>{"use strict";var Xre=xt().str2arr,jre=xt().sliceEq,Zre=xt().readUInt32BE,Mqe=Xre(`\x89PNG\r +`).concat(o3(e),` +`));var l=new zs({actual:e,expected:r,message:t,operator:n,stackStartFn:a});throw l.generatedMessage=o,l}}zt.match=function e(r,t,a){dre(r,t,a,e,"match")};zt.doesNotMatch=function e(r,t,a){dre(r,t,a,e,"doesNotMatch")};function pre(){for(var e=arguments.length,r=new Array(e),t=0;t{var Id=1e3,zd=Id*60,Od=zd*60,Bd=Od*24,GSe=Bd*365.25;mre.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return VSe(e);if(t==="number"&&isNaN(e)===!1)return r.long?WSe(e):YSe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function VSe(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*GSe;case"days":case"day":case"d":return t*Bd;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Od;case"minutes":case"minute":case"mins":case"min":case"m":return t*zd;case"seconds":case"second":case"secs":case"sec":case"s":return t*Id;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function YSe(e){return e>=Bd?Math.round(e/Bd)+"d":e>=Od?Math.round(e/Od)+"h":e>=zd?Math.round(e/zd)+"m":e>=Id?Math.round(e/Id)+"s":e+"ms"}function WSe(e){return c3(e,Bd,"day")||c3(e,Od,"hour")||c3(e,zd,"minute")||c3(e,Id,"second")||e+" ms"}function c3(e,r,t){if(!(e{St=bre.exports=QT.debug=QT.default=QT;St.coerce=$Se;St.disable=ZSe;St.enable=XSe;St.enabled=JSe;St.humanize=gre();St.names=[];St.skips=[];St.formatters={};var KT;function jSe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return St.colors[Math.abs(r)%St.colors.length]}function QT(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(KT||a);t.diff=n,t.prev=KT,t.curr=a,KT=a;for(var i=new Array(arguments.length),o=0;o{An=wre.exports=xre();An.log=eqe;An.formatArgs=QSe;An.save=rqe;An.load=_re;An.useColors=KSe;An.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:tqe();An.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function KSe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}An.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function QSe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+An.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function eqe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function rqe(e){try{e==null?An.storage.removeItem("debug"):An.storage.debug=e}catch(r){}}function _re(){var e;try{e=An.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}An.enable(_re());function tqe(){try{return window.localStorage}catch(e){}}});var Ere=N((CHe,Lre)=>{var Iv=X2(),Os=Tre()("stream-parser");Lre.exports=nqe;var Mre=-1,v3=0,aqe=1,kre=2;function nqe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");Os("extending Parser into stream"),e._bytes=iqe,e._skipBytes=oqe,r&&(e._passthrough=lqe),r?e._transform=uqe:e._write=sqe}function Hd(e){Os("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=Mre,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function iqe(e,r){Iv(!this._parserCallback,'there is already a "callback" set!'),Iv(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||Hd(this),Os("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=v3}function oqe(e,r){Iv(!this._parserCallback,'there is already a "callback" set!'),Iv(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||Hd(this),Os("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=aqe}function lqe(e,r){Iv(!this._parserCallback,'There is already a "callback" set!'),Iv(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||Hd(this),Os("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=kre}function sqe(e,r,t){this._parserInit||Hd(this),Os("write(%o bytes)",e.length),typeof r=="function"&&(t=r),qre(this,e,null,t)}function uqe(e,r,t){this._parserInit||Hd(this),Os("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),qre(this,e,r,t)}function Sre(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return Are(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return Are(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return Sre(e,r.slice(n.length),t,a)}})}}function Are(e,r,t,a){if(e._parserBytesLeft-=r.length,Os("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===v3?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===kre&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===v3&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==v3&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=Mre,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(Cre(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var qre=Cre(Sre);function Cre(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var xt=N(Nl=>{"use strict";var Dre=AQ().Transform,fqe=Ere();function Ud(){Dre.call(this,{readableObjectMode:!0})}Ud.prototype=Object.create(Dre.prototype);Ud.prototype.constructor=Ud;fqe(Ud.prototype);Nl.ParserStream=Ud;Nl.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var zv=xt().readUInt16BE,rA=xt().readUInt32BE;function Gd(e,r){if(e.length<4+r)return null;var t=rA(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=zv(e,6),o=8,l=0;li.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}d3.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(pqe(e,r),!!r.sizes.length){var t=yqe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s{"use strict";function p3(e,r){var t=new Error(e);return t.code=r,t}function mqe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function Il(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw p3("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}Il.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};Il.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw p3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};Il.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw p3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};Il.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};Il.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Il.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Il.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;nthis.input.length)throw p3("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var m={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(m)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};tA.exports.ExifParser=Il;tA.exports.get_orientation=function(e){var r=0;try{return new Il(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var Fre=N((RHe,Pre)=>{"use strict";var gqe=xt().str2arr,bqe=xt().sliceEq,xqe=xt().readUInt32BE,m3=Rre(),_qe=y3(),wqe=gqe("ftyp");Pre.exports=function(e){if(bqe(e,4,wqe)){var r=m3.unbox(e,0);if(r){var t=m3.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=m3.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=m3.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=xqe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=_qe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var zre=N((PHe,Ire)=>{"use strict";var Tqe=xt().str2arr,Aqe=xt().sliceEq,Nre=xt().readUInt16LE,Mqe=Tqe("BM");Ire.exports=function(e){if(!(e.length<26)&&Aqe(e,0,Mqe))return{width:Nre(e,18),height:Nre(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var Gre=N((FHe,Ure)=>{"use strict";var Hre=xt().str2arr,Ore=xt().sliceEq,Bre=xt().readUInt16LE,kqe=Hre("GIF87a"),Sqe=Hre("GIF89a");Ure.exports=function(e){if(!(e.length<10)&&!(!Ore(e,0,kqe)&&!Ore(e,0,Sqe)))return{width:Bre(e,6),height:Bre(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Wre=N((NHe,Yre)=>{"use strict";var aA=xt().readUInt16LE,qqe=0,Cqe=1,Vre=16;Yre.exports=function(e){var r=aA(e,0),t=aA(e,2),a=aA(e,4);if(!(r!==qqe||t!==Cqe||!a)){for(var n=[],i={width:0,height:0},o=0;oi.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Xre=N((IHe,jre)=>{"use strict";var nA=xt().readUInt16BE,Lqe=xt().str2arr,Eqe=xt().sliceEq,Dqe=y3(),Rqe=Lqe("Exif\0\0");jre.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(208<=t&&t<=217||t===1)a=0;else if(192<=t&&t<=254){if(e.length-r<2)return;a=nA(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&Eqe(e,r,Rqe)&&(n=Dqe.get_orientation(e.slice(r+6,r+a))),a>=5&&192<=t&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r0&&(i.orientation=n),i}r+=a}}});var Qre=N((zHe,Kre)=>{"use strict";var $re=xt().str2arr,Zre=xt().sliceEq,Jre=xt().readUInt32BE,Pqe=$re(`\x89PNG\r  -`),kqe=Xre("IHDR");Jre.exports=function(e){if(!(e.length<24)&&jre(e,0,Mqe)&&jre(e,12,kqe))return{width:Zre(e,16),height:Zre(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var ete=N((LHe,Qre)=>{"use strict";var Sqe=xt().str2arr,qqe=xt().sliceEq,Kre=xt().readUInt32BE,Lqe=Sqe("8BPS\0");Qre.exports=function(e){if(!(e.length<22)&&qqe(e,0,Lqe))return{width:Kre(e,18),height:Kre(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var ate=N((CHe,tte)=>{"use strict";function Cqe(e){return e===32||e===9||e===13||e===10}function zv(e){return typeof e=="number"&&isFinite(e)&&e>0}function Eqe(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r]*>/,Rqe=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Pqe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Fqe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,Nqe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,rte=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Iqe(e){var r=e.match(Pqe),t=e.match(Fqe),a=e.match(Nqe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function il(e){return rte.test(e)?e.match(rte)[0]:"px"}tte.exports=function(e){if(Eqe(e)){for(var r="",t=0;t{"use strict";var ote=xt().str2arr,nte=xt().sliceEq,zqe=xt().readUInt16LE,Oqe=xt().readUInt16BE,Bqe=xt().readUInt32LE,Hqe=xt().readUInt32BE,Uqe=ote("II*\0"),Gqe=ote("MM\0*");function m3(e,r,t){return t?Oqe(e,r):zqe(e,r)}function nA(e,r,t){return t?Hqe(e,r):Bqe(e,r)}function ite(e,r,t){var a=m3(e,r+2,t),n=nA(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?m3(e,r+8,t):nA(e,r+8,t)}lte.exports=function(e){if(!(e.length<8)&&!(!nte(e,0,Uqe)&&!nte(e,0,Gqe))){var r=e[0]===77,t=nA(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=m3(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var cte=xt().str2arr,ute=xt().sliceEq,fte=xt().readUInt16LE,iA=xt().readUInt32LE,Vqe=p3(),Yqe=cte("RIFF"),Wqe=cte("WEBP");function jqe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:fte(e,r+6)&16383,height:fte(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function Zqe(e,r){if(e[r]===47){var t=iA(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function Xqe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<e.length)){for(;r+8=10?t=t||jqe(e,r+8):i==="VP8L"&&o>=9?t=t||Zqe(e,r+8):i==="VP8X"&&o>=10?t=t||Xqe(e,r+8):i==="EXIF"&&(a=Vqe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var pte=N((RHe,dte)=>{"use strict";dte.exports={avif:Rre(),bmp:Nre(),gif:Hre(),ico:Vre(),jpeg:Wre(),png:$re(),psd:ete(),svg:ate(),tiff:ste(),webp:hte()}});var yte=N((PHe,lA)=>{"use strict";var oA=pte();function Jqe(e){for(var r=Object.keys(oA),t=0;t{"use strict";var $qe=yte(),Kqe=Tl().IMAGE_URL_PREFIX,Qqe=yv().Buffer;mte.getImageSize=function(e){var r=e.replace(Kqe,""),t=new Qqe(r,"base64");return $qe(t)}});var _te=N((NHe,xte)=>{"use strict";var bte=Ce(),eLe=fv(),rLe=Rr(),g3=zr(),tLe=Ce().maxRowLength,aLe=gte().getImageSize;xte.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=tLe(t.z);else if(t._hasSource){var i=aLe(t.source);a=i.height,n=i.width}var o=g3.getFromId(r,t.xaxis||"x"),l=g3.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var lLe=Sr(),mf=Ce(),wte=mf.strTranslate,sLe=pl(),uLe=fv(),fLe=f6(),cLe=Ag().STYLE;Tte.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&fLe();mf.makeTraceGroups(n,a,"im").each(function(s){var u=lLe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,y=f.y0,m=f.w,x=f.h,T=c.dx,_=c.dy,b,w,k,M,S,E;for(E=0;b===void 0&&E0;)w=i.c2p(p+E*T),E--;for(E=0;M===void 0&&E0;)S=o.c2p(y+E*_),E--;if(wH[0];if(X||W){var ee=b+P/2,oe=M+R/2;Y+="transform:"+wte(ee+"px",oe+"px")+"scale("+(X?-1:1)+","+(W?-1:1)+")"+wte(-ee+"px",-oe+"px")+";"}}G.attr("style",Y);var le=new Promise(function(ue){if(c._hasZ)ue();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===m&&c._canvas.el.height===x&&c._canvas.source===c.source)ue();else{var K=document.createElement("canvas");K.width=m,K.height=x;var _e=K.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var fe=c._image;fe.onload=function(){_e.drawImage(fe,0,0),c._canvas={el:K,source:c.source},ue()},fe.setAttribute("src",c.source)}}).then(function(){var ue,K;if(c._hasZ)K=B(function(ve,ye){var ce=d[ye][ve];return mf.isTypedArray(ce)&&(ce=Array.from(ce)),ce}),ue=K.toDataURL("image/png");else if(c._hasSource)if(v)ue=c.source;else{var _e=c._canvas.el.getContext("2d",{willReadFrequently:!0}),fe=_e.getImageData(0,0,m,x).data;K=B(function(ve,ye){var ce=4*(ye*m+ve);return[fe[ce],fe[ce+1],fe[ce+2],fe[ce+3]]}),ue=K.toDataURL("image/png")}G.attr({"xlink:href":ue,height:R,width:P,x:b,y:M})});r._promises.push(le)})}});var kte=N((zHe,Mte)=>{"use strict";var vLe=Sr();Mte.exports=function(r){vLe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var Cte=N((OHe,Lte)=>{"use strict";var Ste=xn(),qte=Ce(),b3=qte.isArrayOrTypedArray,hLe=fv();Lte.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(Ste.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||Ste.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=hLe.colormodel[i.colormodel],y=p.colormodel||i.colormodel,m=y.length,x=i._scaler(f),T=p.suffix,_=[];(i.hovertemplate||v)&&(_.push("["+[x[0]+T[0],x[1]+T[1],x[2]+T[2]].join(", ")),m===4&&_.push(", "+x[3]+T[3]),_.push("]"),_=_.join(""),r.extraText=y.toUpperCase()+": "+_);var b;b3(i.hovertext)&&b3(i.hovertext[u])?b=i.hovertext[u][s]:b3(i.text)&&b3(i.text[u])&&(b=i.text[u][s]);var w=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,M=n.y0+(u+.5)*i.dy,S="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[qte.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:w,y1:w,color:x,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:S,text:b,hovertemplateLabels:{zLabel:S,colorLabel:_,"color[0]Label":x[0]+T[0],"color[1]Label":x[1]+T[1],"color[2]Label":x[2]+T[2],"color[3]Label":x[3]+T[3]}})]}}}});var Dte=N((BHe,Ete)=>{"use strict";Ete.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var Pte=N((HHe,Rte)=>{"use strict";Rte.exports={attributes:a7(),supplyDefaults:CX(),calc:_te(),plot:Ate(),style:kte(),hoverPoints:Cte(),eventData:Dte(),moduleType:"trace",name:"image",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var Nte=N((UHe,Fte)=>{"use strict";Fte.exports=Pte()});var sA=N((GHe,zte)=>{"use strict";var x3=gn(),dLe=Gc().attributes,pLe=ga(),yLe=fi(),{hovertemplateAttrs:mLe,texttemplateAttrs:gLe,templatefallbackAttrs:Ite}=Wn(),Bs=bt().extendFlat,bLe=ci().pattern,_3=pLe({editType:"plot",arrayOk:!0,colorEditType:"plot"});zte.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:yLe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:bLe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Bs({},x3.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:mLe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:Ite(),texttemplate:gLe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:Ite({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Bs({},_3,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Bs({},_3,{}),outsidetextfont:Bs({},_3,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Bs({},x3.showlegend,{arrayOk:!0}),legend:Bs({},x3.legend,{arrayOk:!0}),legendrank:Bs({},x3.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Bs({},_3,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:dLe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var Ute=N((VHe,Hte)=>{"use strict";var xLe=Rr(),Gd=Ce(),_Le=sA(),wLe=Gc().defaults,TLe=Xu().handleText,ALe=Ce().coercePattern;function Ote(e,r){var t=Gd.isArrayOrTypedArray(e),a=Gd.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,o=0;o0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function Bte(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");ALe(a,"marker.pattern",o),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function MLe(e,r,t,a){function n(T,_){return Gd.coerce(e,r,_Le,T,_)}var i=n("labels"),o=n("values"),l=Ote(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,Bte(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",Gd.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");TLe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");wLe(r,a,n);var y=n("hole"),m=n("title.text");if(m){var x=n("title.position",y?"middle center":"top center");!y&&x==="middle center"&&(r.title.position="top center"),Gd.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}Hte.exports={handleLabelsAndValues:Ote,handleMarkerDefaults:Bte,supplyDefaults:MLe}});var uA=N((YHe,Gte)=>{"use strict";Gte.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Yte=N((WHe,Vte)=>{"use strict";var kLe=Ce(),SLe=uA();Vte.exports=function(r,t){function a(n,i){return kLe.coerce(r,t,SLe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var cA=N((jHe,Zte)=>{"use strict";var qLe=Rr(),fA=Cn(),LLe=Tr(),CLe={};function ELe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?y:r.sort;return b&&t.sort(function(w,k){return k.v-w.v}),t[0]&&(t[0].vTotal=p),t}function Wte(e){return function(t,a){return!t||(t=fA(t),!t.isValid())?!1:(t=LLe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function DLe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=jte(i,CLe));for(var l=0,s=0;s{"use strict";var RLe=Eo().appendArrayMultiPointValues;Xte.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),RLe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var gae=N((XHe,mae)=>{"use strict";var Yn=Sr(),PLe=aa(),w3=xn(),tae=Tr(),zl=Yr(),Za=Ce(),FLe=Za.strScale,$te=Za.strTranslate,vA=Aa(),aae=I0(),NLe=aae.recordMinTextSize,ILe=aae.clearMinTextSize,nae=g0().TEXTPAD,Ar=Q1(),T3=Jte(),Kte=Ce().isValidTextValue;function zLe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;ILe("pie",a),lae(r,e),dae(r,n);var i=Za.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=Yn.select(this),s=o[0],u=s.trace;jLe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=Yn.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(b,w){if(b.hidden){Yn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var k=s.cx,M=s.cy,S=Yn.select(this),E=S.selectAll("path.surface").data([b]);if(E.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(iae,e,o),u.pull){var D=+Ar.castOption(u.pull,b.pts)||0;D>0&&(k+=D*b.pxmid[0],M+=D*b.pxmid[1])}b.cxFinal=k,b.cyFinal=M;function P(V,H,X,W){var ee=W*(H[0]-V[0]),oe=W*(H[1]-V[1]);return"a"+W*s.r+","+W*s.r+" 0 "+b.largeArc+(X?" 1 ":" 0 ")+ee+","+oe}var R=u.hole;if(b.v===s.vTotal){var I="M"+(k+b.px0[0])+","+(M+b.px0[1])+P(b.px0,b.pxmid,!0,1)+P(b.pxmid,b.px0,!0,1)+"Z";R?E.attr("d","M"+(k+R*b.px0[0])+","+(M+R*b.px0[1])+P(b.px0,b.pxmid,!1,R)+P(b.pxmid,b.px0,!1,R)+"Z"+I):E.attr("d",I)}else{var z=P(b.px0,b.px1,!0,1);if(R){var B=1-R;E.attr("d","M"+(k+R*b.px1[0])+","+(M+R*b.px1[1])+P(b.px1,b.px0,!1,R)+"l"+B*b.px0[0]+","+B*b.px0[1]+z+"Z")}else E.attr("d","M"+k+","+M+"l"+b.px0[0]+","+b.px0[1]+z+"Z")}pae(e,b,s);var G=Ar.castOption(u.textposition,b.pts),Y=S.selectAll("g.slicetext").data(b.text&&G!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var V=Za.ensureSingle(Yn.select(this),"text","",function(K){K.attr("data-notex",1)}),H=Za.ensureUniformFontSize(e,G==="outside"?BLe(u,b,a.font):oae(u,b,a.font));V.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(zl.font,H).call(vA.convertToTspans,e);var X=zl.bBox(V.node()),W;if(G==="outside")W=rae(X,b);else if(W=sae(X,b,s),G==="auto"&&W.scale<1){var ee=Za.ensureUniformFontSize(e,u.outsidetextfont);V.call(zl.font,ee),X=zl.bBox(V.node()),W=rae(X,b)}var oe=W.textPosAngle,le=oe===void 0?b.pxmid:A3(s.r,oe);if(W.targetX=k+le[0]*W.rCenter+(W.x||0),W.targetY=M+le[1]*W.rCenter+(W.y||0),yae(W,X),W.outside){var ue=W.targetY;b.yLabelMin=ue-X.height/2,b.yLabelMid=ue,b.yLabelMax=ue+X.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}W.fontSize=H.size,NLe(u.type,W,a),o[w].transform=W,Za.setTransormAndDisplay(V,W)})});var d=Yn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=Za.ensureSingle(Yn.select(this),"text","",function(M){M.attr("data-notex",1)}),w=u.title.text;u._meta&&(w=Za.templateString(w,u._meta)),b.text(w).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(zl.font,u.title.font).call(vA.convertToTspans,e);var k;u.title.position==="middle center"?k=GLe(s):k=vae(s,n),b.attr("transform",$te(k.x,k.y)+FLe(Math.min(1,k.scale))+$te(k.tx,k.ty))}),v&&YLe(c,u),OLe(f,u),v&&u.automargin){var p=zl.bBox(l.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),x=n.h*(y.y[1]-y.y[0]),T=(.5*m-s.r)/n.w,_=(.5*x-s.r)/n.h;PLe.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-T,xr:y.x[1]+T,yb:y.y[0]-_,yt:y.y[1]+_,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=Yn.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function OLe(e,r){e.each(function(t){var a=Yn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Za.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Za.ensureSingle(a,"path","textline").call(tae.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function iae(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=w3.castHoverinfo({hoverinfo:[Ar.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=Ar.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;Za.isValidTextValue(x)&&m.push(x)}s.value=s.v,s.valueLabel=Ar.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Ar.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var T=f.hoverlabel,_=T.font,b=[];w3.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?i+s.BL[1]:p+v*a.r,text:m.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Ar.castOption(T.bgcolor,s.pts)||s.color,borderColor:Ar.castOption(T.bordercolor,s.pts),fontFamily:Ar.castOption(_.family,s.pts),fontSize:Ar.castOption(_.size,s.pts),fontColor:Ar.castOption(_.color,s.pts),nameLength:Ar.castOption(T.namelength,s.pts),textAlign:Ar.castOption(T.align,s.pts),hovertemplate:Ar.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[T3(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[T3(s,f)],event:Yn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=Yn.select(this).datum();o._hasHoverEvent&&(s.originalEvent=Yn.event,r.emit("plotly_unhover",{points:[T3(c,f)],event:Yn.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(w3.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[T3(s,f)],w3.click(r,Yn.event))})}function BLe(e,r,t){var a=Ar.castOption(e.outsidetextfont.color,r.pts)||Ar.castOption(e.textfont.color,r.pts)||t.color,n=Ar.castOption(e.outsidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.outsidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.outsidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.outsidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.outsidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.outsidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.outsidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.outsidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function oae(e,r,t){var a=Ar.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Ar.castOption(e._input.textfont.color,r.pts));var n=Ar.castOption(e.insidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.insidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.insidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.insidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.insidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.insidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.insidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.insidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||tae.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function lae(e,r){for(var t,a,n=0;n=-4;T-=2)x(Math.PI*T,"tan");for(T=4;T>=-4;T-=2)x(Math.PI*(T+1),"tan")}if(c||d){for(T=4;T>=-4;T-=2)x(Math.PI*(T+1.5),"rad");for(T=4;T>=-4;T-=2)x(Math.PI*(T+.5),"rad")}}if(l||p||c){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*a*2/_,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||d)&&(m=Qte(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=eae(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var b=0,w=0,k=0;k=1)break}return y[b]}function HLe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function GLe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function vae(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=hae(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=VLe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=hA(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function VLe(e,r){return e/(r===void 0?1:r)}function hA(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function hae(e){var r=e.pull;if(!r)return 0;var t;if(Za.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function YLe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function y(_,b){return _.pxmid[1]-b.pxmid[1]}function m(_,b){return b.pxmid[1]-_.pxmid[1]}function x(_,b){b||(b={});var w=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),k=a?_.yLabelMin:_.yLabelMax,M=a?_.yLabelMax:_.yLabelMin,S=_.cyFinal+o(_.px0[1],_.px1[1]),E=w-k,D,P,R,I,z,B;if(E*s>0&&(_.labelExtraY=E),!!Za.isArrayOrTypedArray(r.pull))for(P=0;P=(Ar.castOption(r.pull,R.pts)||0))&&((_.pxmid[1]-R.pxmid[1])*s>0?(I=R.cyFinal+o(R.px0[1],R.px1[1]),E=I-k-_.labelExtraY,E*s>0&&(_.labelExtraY+=E)):(M+_.labelExtraY-S)*s>0&&(D=3*l*Math.abs(P-c.indexOf(_)),z=R.cxFinal+i(R.px0[0],R.px1[0]),B=z+D-(_.cxFinal+_.pxmid[0])-_.labelExtraX,B*l>0&&(_.labelExtraX+=B)))}for(a=0;a<2;a++)for(n=a?y:m,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}o=Math.min(o,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=ULe(u,r))}function A3(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function pae(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(b){return l.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var y=Ar.getFirstFilled(n.text,r.pts);Kte(y)&&p.push(y)}c&&p.push(Ar.formatPieValue(r.v,d)),v&&p.push(Ar.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function m(b){return{label:b.label,value:b.v,valueLabel:Ar.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Ar.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:Za.castOption(n,b.i,"customdata")}}if(i){var x=Za.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var T=m(r),_=Ar.getFirstFilled(n.text,r.pts);(Kte(_)||_==="")&&(T.text=_),r.text=Za.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:x})}}}function yae(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}mae.exports={plot:zLe,formatSliceLabel:pae,transformInsideText:sae,determineInsideTextFont:oae,positionTitleOutside:vae,prerenderTitles:lae,layoutAreas:dae,attachFxHandlers:iae,computeTransform:yae}});var _ae=N((JHe,xae)=>{"use strict";var bae=Sr(),ZLe=ey(),XLe=I0().resizeText;xae.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");XLe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=bae.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){bae.select(this).call(ZLe,l,i,r)})})}});var Tae=N(Ov=>{"use strict";var wae=aa();Ov.name="pie";Ov.plot=function(e,r,t,a){wae.plotBasePlot(Ov.name,e,r,t,a)};Ov.clean=function(e,r,t,a){wae.cleanBasePlot(Ov.name,e,r,t,a)}});var Mae=N((KHe,Aae)=>{"use strict";Aae.exports={attributes:sA(),supplyDefaults:Ute().supplyDefaults,supplyLayoutDefaults:Yte(),layoutAttributes:uA(),calc:cA().calc,crossTraceCalc:cA().crossTraceCalc,plot:gae().plot,style:_ae(),styleOne:ey(),moduleType:"trace",name:"pie",basePlotModule:Tae(),categories:["pie-like","pie","showLegend"],meta:{}}});var Sae=N((QHe,kae)=>{"use strict";kae.exports=Mae()});var tn=N((eUe,Lae)=>{"use strict";var qae=Object.getOwnPropertySymbols,JLe=Object.prototype.hasOwnProperty,$Le=Object.prototype.propertyIsEnumerable;function KLe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function QLe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}Lae.exports=QLe()?Object.assign:function(e,r){for(var t,a=KLe(e),n,i=1;i{var k3=tn();function Cae(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}k3(Cae.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function dA(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function M3(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}k3(dA.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Nr.local.differentCalendars||Nr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+M3(Math.abs(this.year()),4)+"-"+M3(this.month(),2)+"-"+M3(this.day(),2)}});function pA(){this.shortYearCutoff="+10"}k3(pA.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new dA(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nr.local.invalidYear||Nr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nr.local.invalidYear||Nr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+M3(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Nr.local.invalidYear||Nr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Nr.local.invalidMonth||Nr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Nr.local.invalidMonth||Nr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nr.local.invalidYear||Nr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Nr=Eae.exports=new Cae;Nr.cdate=dA;Nr.baseCalendar=pA;Nr.calendars.gregorian=yA});var Dae=N(()=>{var mA=tn(),Na=an();mA(Na.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Na.local=Na.regionalOptions[""];mA(Na.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});mA(Na.baseCalendar.prototype,{UNIX_EPOCH:Na.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Na.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Na.local.invalidFormat||Na.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,w){for(var k=1;_+k1},f=function(b,w,k,M){var S=""+w;if(u(b,M))for(;S.length1},T=function(R,I){var z=x(R,I),B=[2,3,z?4:2,z?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],G=new RegExp("^-?\\d{1,"+B+"}"),Y=r.substring(S).match(G);if(!Y)throw(Na.local.missingNumberAt||Na.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=Y[0].length,parseInt(Y[0],10)},_=this,b=function(){if(typeof l=="function"){x("m");var R=l.call(_,r.substring(S));return S+=R.length,R}return T("m")},w=function(R,I,z,B){for(var G=x(R,B)?z:I,Y=0;Y-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Rae=N(()=>{var Hs=an(),eCe=tn(),gA=Hs.instance();function S3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S3.prototype=new Hs.baseCalendar;eCe(S3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(tCe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(aCe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(nCe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Hs.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Hs.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Hs.local.invalidyear),n=Gs[a-Gs[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=gA.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Us[e-Us[0]],a=t>>13,n=a?12:11;if(r>n)throw Hs.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Hs.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=oCe(e,i,t,n);return gA.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=gA.fromJD(e),t=iCe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(rCe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(S3.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var rCe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,tCe=/^\d?\d[iI]?/m,aCe=/^闰?十?[一二三四五六七八九]?月/m,nCe=/^闰?十?[一二三四五六七八九]?/m;Hs.calendars.chinese=S3;var Us=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Gs=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function iCe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Gs[n.year-Gs[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Gs[i.year-Gs[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,y=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var x=Us[i.year-Us[0]],T;for(T=0;T<13;T++){var _=x&1<<12-T?30:29;if(p<_)break;p-=_}var b=x>>13;return!b||T=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=Us[o.year-Us[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y>9&4095,_=x>>5&15,b=x&31,w=new Date(T,_-1,b+c);return i.year=w.getFullYear(),i.month=1+w.getMonth(),i.day=w.getDate(),i}});var Pae=N(()=>{var gf=an(),lCe=tn();function bA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bA.prototype=new gf.baseCalendar;lCe(bA.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gf.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,gf.local.invalidYear||gf.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,gf.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});gf.calendars.coptic=bA});var Fae=N(()=>{var Ol=an(),sCe=tn();function xA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xA.prototype=new Ol.baseCalendar;sCe(xA.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ol.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ol.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ol.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ol.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ol.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ol.local.invalidDate);return{century:uCe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Ol.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var uCe={20:"Fruitbat",21:"Anchovy"};Ol.calendars.discworld=xA});var Nae=N(()=>{var bf=an(),fCe=tn();function _A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_A.prototype=new bf.baseCalendar;fCe(_A.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,bf.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bf.local.invalidYear||bf.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,bf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,bf.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});bf.calendars.ethiopian=_A});var Iae=N(()=>{var Vs=an(),cCe=tn();function wA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wA.prototype=new Vs.baseCalendar;cCe(wA.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vs.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,q3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Vs.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vs.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Vs.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&q3(this.daysInYear(e),10)===5?30:r===9&&q3(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Vs.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Vs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function q3(e,r){return e-r*Math.floor(e/r)}Vs.calendars.hebrew=wA});var zae=N(()=>{var Vd=an(),vCe=tn();function TA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TA.prototype=new Vd.baseCalendar;vCe(TA.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vd.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Vd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Vd.calendars.islamic=TA});var Oae=N(()=>{var Yd=an(),hCe=tn();function AA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AA.prototype=new Yd.baseCalendar;hCe(AA.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Yd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Yd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Yd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Yd.calendars.julian=AA});var Hae=N(()=>{var Wi=an(),dCe=tn();function kA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kA.prototype=new Wi.baseCalendar;dCe(kA.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wi.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Wi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Wi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Wi.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Wi.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Wi.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=MA(e+8+17*20,365);return[Math.floor(r/20)+1,MA(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Bae(e+20,20),Bae(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Wi.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function MA(e,r){return e-r*Math.floor(e/r)}function Bae(e,r){return MA(e-1,r)+1}Wi.calendars.mayan=kA});var Gae=N(()=>{var xf=an(),pCe=tn();function SA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SA.prototype=new xf.baseCalendar;var Uae=xf.instance("gregorian");pCe(SA.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,xf.local.invalidYear||xf.regionalOptions[""].invalidYear);return Uae.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,xf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,xf.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});xf.calendars.nanakshahi=SA});var Vae=N(()=>{var _f=an(),yCe=tn();function qA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qA.prototype=new _f.baseCalendar;yCe(qA.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,_f.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,_f.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=_f.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=_f.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Bv=an(),mCe=tn();function C3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function L3(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}C3.prototype=new Bv.baseCalendar;mCe(C3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bv.local.invalidYear);return L3(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Bv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,L3(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Bv.calendars.persian=C3;Bv.calendars.jalali=C3});var Wae=N(()=>{var wf=an(),gCe=tn(),E3=wf.instance();function LA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LA.prototype=new wf.baseCalendar;gCe(LA.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,wf.local.invalidYear),t=this._t2gYear(r.year());return E3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,wf.local.invalidYear),n=this._t2gYear(a.year());return E3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,wf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,wf.local.invalidDate),n=this._t2gYear(a.year());return E3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=E3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});wf.calendars.taiwan=LA});var jae=N(()=>{var Tf=an(),bCe=tn(),D3=Tf.instance();function CA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CA.prototype=new Tf.baseCalendar;bCe(CA.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Tf.local.invalidYear),t=this._t2gYear(r.year());return D3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Tf.local.invalidYear),n=this._t2gYear(a.year());return D3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Tf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Tf.local.invalidDate),n=this._t2gYear(a.year());return D3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=D3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Tf.calendars.thai=CA});var Zae=N(()=>{var Af=an(),xCe=tn();function EA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EA.prototype=new Af.baseCalendar;xCe(EA.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Af.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ys[n]-Ys[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Af.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ys[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Ys[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Af.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Af.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Af.calendars.ummalqura=EA;var Ys=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Jae=N((DUe,Xae)=>{"use strict";Xae.exports=an();Dae();Rae();Pae();Fae();Nae();Iae();zae();Oae();Hae();Gae();Vae();Yae();Wae();jae();Zae()});var ane=N((RUe,tne)=>{"use strict";var Kae=Jae(),Wd=Ce(),Qae=Ft(),_Ce=Qae.EPOCHJD,wCe=Qae.ONEDAY,PA={valType:"enumerated",values:Wd.sortObjectKeys(Kae.calendars),editType:"calc",dflt:"gregorian"},ene=function(e,r,t,a){var n={};return n[t]=PA,Wd.coerce(e,r,n,t,a)},TCe=function(e,r,t,a){for(var n=0;n{"use strict";nne.exports=ane()});var LCe=N((FUe,lne)=>{var one=rG();one.register([aV(),VV(),uW(),CW(),VW(),Wj(),oZ(),XZ(),AX(),Nte(),Sae(),ine()]);lne.exports=one});return LCe();})(); +`),Fqe=$re("IHDR");Kre.exports=function(e){if(!(e.length<24)&&Zre(e,0,Pqe)&&Zre(e,12,Fqe))return{width:Jre(e,16),height:Jre(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var tte=N((OHe,rte)=>{"use strict";var Nqe=xt().str2arr,Iqe=xt().sliceEq,ete=xt().readUInt32BE,zqe=Nqe("8BPS\0");rte.exports=function(e){if(!(e.length<22)&&Iqe(e,0,zqe))return{width:ete(e,18),height:ete(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var ite=N((BHe,nte)=>{"use strict";function Oqe(e){return e===32||e===9||e===13||e===10}function Ov(e){return typeof e=="number"&&isFinite(e)&&e>0}function Bqe(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r]*>/,Uqe=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Gqe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Vqe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,Yqe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,ate=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Wqe(e){var r=e.match(Gqe),t=e.match(Vqe),a=e.match(Yqe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function il(e){return ate.test(e)?e.match(ate)[0]:"px"}nte.exports=function(e){if(Bqe(e)){for(var r="",t=0;t{"use strict";var ste=xt().str2arr,ote=xt().sliceEq,jqe=xt().readUInt16LE,Xqe=xt().readUInt16BE,Zqe=xt().readUInt32LE,Jqe=xt().readUInt32BE,$qe=ste("II*\0"),Kqe=ste("MM\0*");function g3(e,r,t){return t?Xqe(e,r):jqe(e,r)}function iA(e,r,t){return t?Jqe(e,r):Zqe(e,r)}function lte(e,r,t){var a=g3(e,r+2,t),n=iA(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?g3(e,r+8,t):iA(e,r+8,t)}ute.exports=function(e){if(!(e.length<8)&&!(!ote(e,0,$qe)&&!ote(e,0,Kqe))){var r=e[0]===77,t=iA(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=g3(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var hte=xt().str2arr,cte=xt().sliceEq,vte=xt().readUInt16LE,oA=xt().readUInt32LE,Qqe=y3(),eCe=hte("RIFF"),rCe=hte("WEBP");function tCe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:vte(e,r+6)&16383,height:vte(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function aCe(e,r){if(e[r]===47){var t=oA(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function nCe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<e.length)){for(;r+8=10?t=t||tCe(e,r+8):i==="VP8L"&&o>=9?t=t||aCe(e,r+8):i==="VP8X"&&o>=10?t=t||nCe(e,r+8):i==="EXIF"&&(a=Qqe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var mte=N((GHe,yte)=>{"use strict";yte.exports={avif:Fre(),bmp:zre(),gif:Gre(),ico:Wre(),jpeg:Xre(),png:Qre(),psd:tte(),svg:ite(),tiff:fte(),webp:pte()}});var gte=N((VHe,sA)=>{"use strict";var lA=mte();function iCe(e){for(var r=Object.keys(lA),t=0;t{"use strict";var oCe=gte(),lCe=Tl().IMAGE_URL_PREFIX,sCe=mv().Buffer;bte.getImageSize=function(e){var r=e.replace(lCe,""),t=new sCe(r,"base64");return oCe(t)}});var Tte=N((WHe,wte)=>{"use strict";var _te=Le(),uCe=cv(),fCe=Rr(),b3=zr(),cCe=Le().maxRowLength,vCe=xte().getImageSize;wte.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=cCe(t.z);else if(t._hasSource){var i=vCe(t.source);a=i.height,n=i.width}var o=b3.getFromId(r,t.xaxis||"x"),l=b3.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var yCe=Sr(),gf=Le(),Ate=gf.strTranslate,mCe=pl(),gCe=cv(),bCe=c6(),xCe=Mg().STYLE;Mte.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&bCe();gf.makeTraceGroups(n,a,"im").each(function(s){var u=yCe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,y=f.y0,m=f.w,x=f.h,T=c.dx,_=c.dy,b,w,k,M,S,E;for(E=0;b===void 0&&E0;)w=i.c2p(p+E*T),E--;for(E=0;M===void 0&&E0;)S=o.c2p(y+E*_),E--;if(wH[0];if(Z||W){var ee=b+P/2,oe=M+R/2;Y+="transform:"+Ate(ee+"px",oe+"px")+"scale("+(Z?-1:1)+","+(W?-1:1)+")"+Ate(-ee+"px",-oe+"px")+";"}}G.attr("style",Y);var le=new Promise(function(ue){if(c._hasZ)ue();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===m&&c._canvas.el.height===x&&c._canvas.source===c.source)ue();else{var K=document.createElement("canvas");K.width=m,K.height=x;var _e=K.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var fe=c._image;fe.onload=function(){_e.drawImage(fe,0,0),c._canvas={el:K,source:c.source},ue()},fe.setAttribute("src",c.source)}}).then(function(){var ue,K;if(c._hasZ)K=B(function(ve,ye){var ce=d[ye][ve];return gf.isTypedArray(ce)&&(ce=Array.from(ce)),ce}),ue=K.toDataURL("image/png");else if(c._hasSource)if(v)ue=c.source;else{var _e=c._canvas.el.getContext("2d",{willReadFrequently:!0}),fe=_e.getImageData(0,0,m,x).data;K=B(function(ve,ye){var ce=4*(ye*m+ve);return[fe[ce],fe[ce+1],fe[ce+2],fe[ce+3]]}),ue=K.toDataURL("image/png")}G.attr({"xlink:href":ue,height:R,width:P,x:b,y:M})});r._promises.push(le)})}});var qte=N((XHe,Ste)=>{"use strict";var _Ce=Sr();Ste.exports=function(r){_Ce.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var Dte=N((ZHe,Ete)=>{"use strict";var Cte=xn(),Lte=Le(),x3=Lte.isArrayOrTypedArray,wCe=cv();Ete.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(Cte.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||Cte.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=wCe.colormodel[i.colormodel],y=p.colormodel||i.colormodel,m=y.length,x=i._scaler(f),T=p.suffix,_=[];(i.hovertemplate||v)&&(_.push("["+[x[0]+T[0],x[1]+T[1],x[2]+T[2]].join(", ")),m===4&&_.push(", "+x[3]+T[3]),_.push("]"),_=_.join(""),r.extraText=y.toUpperCase()+": "+_);var b;x3(i.hovertext)&&x3(i.hovertext[u])?b=i.hovertext[u][s]:x3(i.text)&&x3(i.text[u])&&(b=i.text[u][s]);var w=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,M=n.y0+(u+.5)*i.dy,S="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[Lte.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:w,y1:w,color:x,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:S,text:b,hovertemplateLabels:{zLabel:S,colorLabel:_,"color[0]Label":x[0]+T[0],"color[1]Label":x[1]+T[1],"color[2]Label":x[2]+T[2],"color[3]Label":x[3]+T[3]}})]}}}});var Pte=N((JHe,Rte)=>{"use strict";Rte.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var Nte=N(($He,Fte)=>{"use strict";Fte.exports={attributes:n7(),supplyDefaults:DZ(),calc:Tte(),plot:kte(),style:qte(),hoverPoints:Dte(),eventData:Pte(),moduleType:"trace",name:"image",basePlotModule:Ei(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var zte=N((KHe,Ite)=>{"use strict";Ite.exports=Nte()});var uA=N((QHe,Bte)=>{"use strict";var _3=gn(),TCe=Vc().attributes,ACe=ba(),MCe=fi(),{hovertemplateAttrs:kCe,texttemplateAttrs:SCe,templatefallbackAttrs:Ote}=Wn(),Bs=bt().extendFlat,qCe=ci().pattern,w3=ACe({editType:"plot",arrayOk:!0,colorEditType:"plot"});Bte.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:MCe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:qCe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Bs({},_3.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:kCe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:Ote(),texttemplate:SCe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:Ote({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Bs({},w3,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Bs({},w3,{}),outsidetextfont:Bs({},w3,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Bs({},_3.showlegend,{arrayOk:!0}),legend:Bs({},_3.legend,{arrayOk:!0}),legendrank:Bs({},_3.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Bs({},w3,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:TCe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var Vte=N((eUe,Gte)=>{"use strict";var CCe=Rr(),Vd=Le(),LCe=uA(),ECe=Vc().defaults,DCe=Ju().handleText,RCe=Le().coercePattern;function Hte(e,r){var t=Vd.isArrayOrTypedArray(e),a=Vd.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,o=0;o0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function Ute(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");RCe(a,"marker.pattern",o),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function PCe(e,r,t,a){function n(T,_){return Vd.coerce(e,r,LCe,T,_)}var i=n("labels"),o=n("values"),l=Hte(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,Ute(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",Vd.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");DCe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");ECe(r,a,n);var y=n("hole"),m=n("title.text");if(m){var x=n("title.position",y?"middle center":"top center");!y&&x==="middle center"&&(r.title.position="top center"),Vd.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}Gte.exports={handleLabelsAndValues:Hte,handleMarkerDefaults:Ute,supplyDefaults:PCe}});var fA=N((rUe,Yte)=>{"use strict";Yte.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var jte=N((tUe,Wte)=>{"use strict";var FCe=Le(),NCe=fA();Wte.exports=function(r,t){function a(n,i){return FCe.coerce(r,t,NCe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var vA=N((aUe,Jte)=>{"use strict";var ICe=Rr(),cA=Ln(),zCe=Tr(),OCe={};function BCe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?y:r.sort;return b&&t.sort(function(w,k){return k.v-w.v}),t[0]&&(t[0].vTotal=p),t}function Xte(e){return function(t,a){return!t||(t=cA(t),!t.isValid())?!1:(t=zCe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function HCe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=Zte(i,OCe));for(var l=0,s=0;s{"use strict";var UCe=Eo().appendArrayMultiPointValues;$te.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),UCe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var xae=N((iUe,bae)=>{"use strict";var Yn=Sr(),GCe=na(),T3=xn(),nae=Tr(),zl=Yr(),Za=Le(),VCe=Za.strScale,Qte=Za.strTranslate,hA=Ma(),iae=z0(),YCe=iae.recordMinTextSize,WCe=iae.clearMinTextSize,oae=b0().TEXTPAD,Ar=Q1(),A3=Kte(),eae=Le().isValidTextValue;function jCe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;WCe("pie",a),uae(r,e),yae(r,n);var i=Za.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=Yn.select(this),s=o[0],u=s.trace;tLe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=Yn.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(b,w){if(b.hidden){Yn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var k=s.cx,M=s.cy,S=Yn.select(this),E=S.selectAll("path.surface").data([b]);if(E.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(lae,e,o),u.pull){var D=+Ar.castOption(u.pull,b.pts)||0;D>0&&(k+=D*b.pxmid[0],M+=D*b.pxmid[1])}b.cxFinal=k,b.cyFinal=M;function P(V,H,Z,W){var ee=W*(H[0]-V[0]),oe=W*(H[1]-V[1]);return"a"+W*s.r+","+W*s.r+" 0 "+b.largeArc+(Z?" 1 ":" 0 ")+ee+","+oe}var R=u.hole;if(b.v===s.vTotal){var I="M"+(k+b.px0[0])+","+(M+b.px0[1])+P(b.px0,b.pxmid,!0,1)+P(b.pxmid,b.px0,!0,1)+"Z";R?E.attr("d","M"+(k+R*b.px0[0])+","+(M+R*b.px0[1])+P(b.px0,b.pxmid,!1,R)+P(b.pxmid,b.px0,!1,R)+"Z"+I):E.attr("d",I)}else{var z=P(b.px0,b.px1,!0,1);if(R){var B=1-R;E.attr("d","M"+(k+R*b.px1[0])+","+(M+R*b.px1[1])+P(b.px1,b.px0,!1,R)+"l"+B*b.px0[0]+","+B*b.px0[1]+z+"Z")}else E.attr("d","M"+k+","+M+"l"+b.px0[0]+","+b.px0[1]+z+"Z")}mae(e,b,s);var G=Ar.castOption(u.textposition,b.pts),Y=S.selectAll("g.slicetext").data(b.text&&G!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var V=Za.ensureSingle(Yn.select(this),"text","",function(K){K.attr("data-notex",1)}),H=Za.ensureUniformFontSize(e,G==="outside"?ZCe(u,b,a.font):sae(u,b,a.font));V.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(zl.font,H).call(hA.convertToTspans,e);var Z=zl.bBox(V.node()),W;if(G==="outside")W=aae(Z,b);else if(W=fae(Z,b,s),G==="auto"&&W.scale<1){var ee=Za.ensureUniformFontSize(e,u.outsidetextfont);V.call(zl.font,ee),Z=zl.bBox(V.node()),W=aae(Z,b)}var oe=W.textPosAngle,le=oe===void 0?b.pxmid:M3(s.r,oe);if(W.targetX=k+le[0]*W.rCenter+(W.x||0),W.targetY=M+le[1]*W.rCenter+(W.y||0),gae(W,Z),W.outside){var ue=W.targetY;b.yLabelMin=ue-Z.height/2,b.yLabelMid=ue,b.yLabelMax=ue+Z.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}W.fontSize=H.size,YCe(u.type,W,a),o[w].transform=W,Za.setTransormAndDisplay(V,W)})});var d=Yn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=Za.ensureSingle(Yn.select(this),"text","",function(M){M.attr("data-notex",1)}),w=u.title.text;u._meta&&(w=Za.templateString(w,u._meta)),b.text(w).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(zl.font,u.title.font).call(hA.convertToTspans,e);var k;u.title.position==="middle center"?k=KCe(s):k=dae(s,n),b.attr("transform",Qte(k.x,k.y)+VCe(Math.min(1,k.scale))+Qte(k.tx,k.ty))}),v&&eLe(c,u),XCe(f,u),v&&u.automargin){var p=zl.bBox(l.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),x=n.h*(y.y[1]-y.y[0]),T=(.5*m-s.r)/n.w,_=(.5*x-s.r)/n.h;GCe.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-T,xr:y.x[1]+T,yb:y.y[0]-_,yt:y.y[1]+_,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=Yn.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function XCe(e,r){e.each(function(t){var a=Yn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Za.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Za.ensureSingle(a,"path","textline").call(nae.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function lae(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=T3.castHoverinfo({hoverinfo:[Ar.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=Ar.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;Za.isValidTextValue(x)&&m.push(x)}s.value=s.v,s.valueLabel=Ar.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Ar.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var T=f.hoverlabel,_=T.font,b=[];T3.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?i+s.BL[1]:p+v*a.r,text:m.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Ar.castOption(T.bgcolor,s.pts)||s.color,borderColor:Ar.castOption(T.bordercolor,s.pts),fontFamily:Ar.castOption(_.family,s.pts),fontSize:Ar.castOption(_.size,s.pts),fontColor:Ar.castOption(_.color,s.pts),nameLength:Ar.castOption(T.namelength,s.pts),textAlign:Ar.castOption(T.align,s.pts),hovertemplate:Ar.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[A3(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[A3(s,f)],event:Yn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=Yn.select(this).datum();o._hasHoverEvent&&(s.originalEvent=Yn.event,r.emit("plotly_unhover",{points:[A3(c,f)],event:Yn.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(T3.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[A3(s,f)],T3.click(r,Yn.event))})}function ZCe(e,r,t){var a=Ar.castOption(e.outsidetextfont.color,r.pts)||Ar.castOption(e.textfont.color,r.pts)||t.color,n=Ar.castOption(e.outsidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.outsidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.outsidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.outsidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.outsidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.outsidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.outsidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.outsidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function sae(e,r,t){var a=Ar.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Ar.castOption(e._input.textfont.color,r.pts));var n=Ar.castOption(e.insidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.insidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.insidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.insidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.insidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.insidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.insidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.insidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||nae.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function uae(e,r){for(var t,a,n=0;n=-4;T-=2)x(Math.PI*T,"tan");for(T=4;T>=-4;T-=2)x(Math.PI*(T+1),"tan")}if(c||d){for(T=4;T>=-4;T-=2)x(Math.PI*(T+1.5),"rad");for(T=4;T>=-4;T-=2)x(Math.PI*(T+.5),"rad")}}if(l||p||c){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*a*2/_,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||d)&&(m=rae(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=tae(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var b=0,w=0,k=0;k=1)break}return y[b]}function JCe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function KCe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function dae(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=pae(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=QCe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=dA(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function QCe(e,r){return e/(r===void 0?1:r)}function dA(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function pae(e){var r=e.pull;if(!r)return 0;var t;if(Za.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function eLe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function y(_,b){return _.pxmid[1]-b.pxmid[1]}function m(_,b){return b.pxmid[1]-_.pxmid[1]}function x(_,b){b||(b={});var w=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),k=a?_.yLabelMin:_.yLabelMax,M=a?_.yLabelMax:_.yLabelMin,S=_.cyFinal+o(_.px0[1],_.px1[1]),E=w-k,D,P,R,I,z,B;if(E*s>0&&(_.labelExtraY=E),!!Za.isArrayOrTypedArray(r.pull))for(P=0;P=(Ar.castOption(r.pull,R.pts)||0))&&((_.pxmid[1]-R.pxmid[1])*s>0?(I=R.cyFinal+o(R.px0[1],R.px1[1]),E=I-k-_.labelExtraY,E*s>0&&(_.labelExtraY+=E)):(M+_.labelExtraY-S)*s>0&&(D=3*l*Math.abs(P-c.indexOf(_)),z=R.cxFinal+i(R.px0[0],R.px1[0]),B=z+D-(_.cxFinal+_.pxmid[0])-_.labelExtraX,B*l>0&&(_.labelExtraX+=B)))}for(a=0;a<2;a++)for(n=a?y:m,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}o=Math.min(o,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=$Ce(u,r))}function M3(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function mae(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(b){return l.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var y=Ar.getFirstFilled(n.text,r.pts);eae(y)&&p.push(y)}c&&p.push(Ar.formatPieValue(r.v,d)),v&&p.push(Ar.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function m(b){return{label:b.label,value:b.v,valueLabel:Ar.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Ar.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:Za.castOption(n,b.i,"customdata")}}if(i){var x=Za.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var T=m(r),_=Ar.getFirstFilled(n.text,r.pts);(eae(_)||_==="")&&(T.text=_),r.text=Za.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:x})}}}function gae(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}bae.exports={plot:jCe,formatSliceLabel:mae,transformInsideText:fae,determineInsideTextFont:sae,positionTitleOutside:dae,prerenderTitles:uae,layoutAreas:yae,attachFxHandlers:lae,computeTransform:gae}});var Tae=N((oUe,wae)=>{"use strict";var _ae=Sr(),aLe=ey(),nLe=z0().resizeText;wae.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");nLe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=_ae.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){_ae.select(this).call(aLe,l,i,r)})})}});var Mae=N(Bv=>{"use strict";var Aae=na();Bv.name="pie";Bv.plot=function(e,r,t,a){Aae.plotBasePlot(Bv.name,e,r,t,a)};Bv.clean=function(e,r,t,a){Aae.cleanBasePlot(Bv.name,e,r,t,a)}});var Sae=N((sUe,kae)=>{"use strict";kae.exports={attributes:uA(),supplyDefaults:Vte().supplyDefaults,supplyLayoutDefaults:jte(),layoutAttributes:fA(),calc:vA().calc,crossTraceCalc:vA().crossTraceCalc,plot:xae().plot,style:Tae(),styleOne:ey(),moduleType:"trace",name:"pie",basePlotModule:Mae(),categories:["pie-like","pie","showLegend"],meta:{}}});var Cae=N((uUe,qae)=>{"use strict";qae.exports=Sae()});var tn=N((fUe,Eae)=>{"use strict";var Lae=Object.getOwnPropertySymbols,iLe=Object.prototype.hasOwnProperty,oLe=Object.prototype.propertyIsEnumerable;function lLe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function sLe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}Eae.exports=sLe()?Object.assign:function(e,r){for(var t,a=lLe(e),n,i=1;i{var S3=tn();function Dae(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}S3(Dae.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function pA(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function k3(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}S3(pA.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Nr.local.differentCalendars||Nr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+k3(Math.abs(this.year()),4)+"-"+k3(this.month(),2)+"-"+k3(this.day(),2)}});function yA(){this.shortYearCutoff="+10"}S3(yA.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new pA(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nr.local.invalidYear||Nr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nr.local.invalidYear||Nr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+k3(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Nr.local.invalidYear||Nr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Nr.local.invalidMonth||Nr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Nr.local.invalidMonth||Nr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nr.local.invalidYear||Nr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Nr.local.invalidDate||Nr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Nr=Rae.exports=new Dae;Nr.cdate=pA;Nr.baseCalendar=yA;Nr.calendars.gregorian=mA});var Pae=N(()=>{var gA=tn(),Ia=an();gA(Ia.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ia.local=Ia.regionalOptions[""];gA(Ia.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});gA(Ia.baseCalendar.prototype,{UNIX_EPOCH:Ia.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Ia.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ia.local.invalidFormat||Ia.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,w){for(var k=1;_+k1},f=function(b,w,k,M){var S=""+w;if(u(b,M))for(;S.length1},T=function(R,I){var z=x(R,I),B=[2,3,z?4:2,z?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],G=new RegExp("^-?\\d{1,"+B+"}"),Y=r.substring(S).match(G);if(!Y)throw(Ia.local.missingNumberAt||Ia.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=Y[0].length,parseInt(Y[0],10)},_=this,b=function(){if(typeof l=="function"){x("m");var R=l.call(_,r.substring(S));return S+=R.length,R}return T("m")},w=function(R,I,z,B){for(var G=x(R,B)?z:I,Y=0;Y-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Fae=N(()=>{var Hs=an(),uLe=tn(),bA=Hs.instance();function q3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q3.prototype=new Hs.baseCalendar;uLe(q3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(cLe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(vLe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(hLe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Hs.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Hs.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Hs.local.invalidyear),n=Gs[a-Gs[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=bA.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Us[e-Us[0]],a=t>>13,n=a?12:11;if(r>n)throw Hs.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Hs.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=pLe(e,i,t,n);return bA.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=bA.fromJD(e),t=dLe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(fLe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(q3.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var fLe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,cLe=/^\d?\d[iI]?/m,vLe=/^闰?十?[一二三四五六七八九]?月/m,hLe=/^闰?十?[一二三四五六七八九]?/m;Hs.calendars.chinese=q3;var Us=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Gs=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function dLe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Gs[n.year-Gs[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Gs[i.year-Gs[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,y=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var x=Us[i.year-Us[0]],T;for(T=0;T<13;T++){var _=x&1<<12-T?30:29;if(p<_)break;p-=_}var b=x>>13;return!b||T=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=Us[o.year-Us[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y>9&4095,_=x>>5&15,b=x&31,w=new Date(T,_-1,b+c);return i.year=w.getFullYear(),i.month=1+w.getMonth(),i.day=w.getDate(),i}});var Nae=N(()=>{var bf=an(),yLe=tn();function xA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xA.prototype=new bf.baseCalendar;yLe(xA.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,bf.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bf.local.invalidYear||bf.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,bf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,bf.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});bf.calendars.coptic=xA});var Iae=N(()=>{var Ol=an(),mLe=tn();function _A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_A.prototype=new Ol.baseCalendar;mLe(_A.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ol.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ol.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ol.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ol.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ol.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ol.local.invalidDate);return{century:gLe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Ol.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var gLe={20:"Fruitbat",21:"Anchovy"};Ol.calendars.discworld=_A});var zae=N(()=>{var xf=an(),bLe=tn();function wA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wA.prototype=new xf.baseCalendar;bLe(wA.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,xf.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xf.local.invalidYear||xf.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,xf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,xf.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});xf.calendars.ethiopian=wA});var Oae=N(()=>{var Vs=an(),xLe=tn();function TA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TA.prototype=new Vs.baseCalendar;xLe(TA.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vs.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,C3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Vs.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vs.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Vs.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&C3(this.daysInYear(e),10)===5?30:r===9&&C3(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Vs.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Vs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function C3(e,r){return e-r*Math.floor(e/r)}Vs.calendars.hebrew=TA});var Bae=N(()=>{var Yd=an(),_Le=tn();function AA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AA.prototype=new Yd.baseCalendar;_Le(AA.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yd.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Yd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Yd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Yd.calendars.islamic=AA});var Hae=N(()=>{var Wd=an(),wLe=tn();function MA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MA.prototype=new Wd.baseCalendar;wLe(MA.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Wd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Wd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Wd.calendars.julian=MA});var Gae=N(()=>{var Wi=an(),TLe=tn();function SA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SA.prototype=new Wi.baseCalendar;TLe(SA.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wi.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Wi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Wi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Wi.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Wi.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Wi.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=kA(e+8+340,365);return[Math.floor(r/20)+1,kA(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Uae(e+20,20),Uae(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Wi.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function kA(e,r){return e-r*Math.floor(e/r)}function Uae(e,r){return kA(e-1,r)+1}Wi.calendars.mayan=SA});var Yae=N(()=>{var _f=an(),ALe=tn();function qA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qA.prototype=new _f.baseCalendar;var Vae=_f.instance("gregorian");ALe(qA.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear||_f.regionalOptions[""].invalidYear);return Vae.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,_f.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,_f.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});_f.calendars.nanakshahi=qA});var Wae=N(()=>{var wf=an(),MLe=tn();function CA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CA.prototype=new wf.baseCalendar;MLe(CA.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,wf.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,wf.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,wf.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=wf.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=wf.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Hv=an(),kLe=tn();function E3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function L3(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}E3.prototype=new Hv.baseCalendar;kLe(E3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Hv.local.invalidYear);return L3(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Hv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Hv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,L3(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Hv.calendars.persian=E3;Hv.calendars.jalali=E3});var Xae=N(()=>{var Tf=an(),SLe=tn(),D3=Tf.instance();function LA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LA.prototype=new Tf.baseCalendar;SLe(LA.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Tf.local.invalidYear),t=this._t2gYear(r.year());return D3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Tf.local.invalidYear),n=this._t2gYear(a.year());return D3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Tf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Tf.local.invalidDate),n=this._t2gYear(a.year());return D3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=D3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Tf.calendars.taiwan=LA});var Zae=N(()=>{var Af=an(),qLe=tn(),R3=Af.instance();function EA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EA.prototype=new Af.baseCalendar;qLe(EA.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Af.local.invalidYear),t=this._t2gYear(r.year());return R3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Af.local.invalidYear),n=this._t2gYear(a.year());return R3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Af.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Af.local.invalidDate),n=this._t2gYear(a.year());return R3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=R3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Af.calendars.thai=EA});var Jae=N(()=>{var Mf=an(),CLe=tn();function DA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DA.prototype=new Mf.baseCalendar;CLe(DA.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mf.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Mf.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ys[n]-Ys[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Mf.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ys[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Ys[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Mf.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Mf.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Mf.calendars.ummalqura=DA;var Ys=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Kae=N((UUe,$ae)=>{"use strict";$ae.exports=an();Pae();Fae();Nae();Iae();zae();Oae();Bae();Hae();Gae();Yae();Wae();jae();Xae();Zae();Jae()});var ine=N((GUe,nne)=>{"use strict";var ene=Kae(),jd=Le(),rne=Ft(),LLe=rne.EPOCHJD,ELe=rne.ONEDAY,FA={valType:"enumerated",values:jd.sortObjectKeys(ene.calendars),editType:"calc",dflt:"gregorian"},tne=function(e,r,t,a){var n={};return n[t]=FA,jd.coerce(e,r,n,t,a)},DLe=function(e,r,t,a){for(var n=0;n{"use strict";one.exports=ine()});var zLe=N((YUe,une)=>{var sne=aG();sne.register([iV(),WV(),cW(),DW(),WW(),Xj(),sX(),$X(),kZ(),zte(),Cae(),lne()]);une.exports=sne});return zLe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-finance.js b/dist/plotly-finance.js index baed9f96a2a..4a887706eb3 100644 --- a/dist/plotly-finance.js +++ b/dist/plotly-finance.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance) v3.6.0 +* plotly.js (finance) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -35,11 +35,20 @@ var Plotly = (() => { return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); - var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + var __esm = (fn, res, err) => function __init() { + if (err) throw err[0]; + try { + return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + } catch (e) { + throw err = [e], e; + } }; var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; var __export = (target, all) => { for (var name in all) @@ -59,7 +68,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -95,7 +104,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -122,7 +131,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8148,7 +8157,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8388,7 +8397,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8505,7 +8514,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8550,7 +8559,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9953,7 +9962,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9972,7 +9981,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color2) { return !!matchers.CSS_UNIT.exec(color2); } @@ -13795,9 +13804,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -16050,6 +16059,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -17762,6 +17782,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -17890,24 +17911,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -32807,7 +32835,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -34609,6 +34647,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -36824,6 +36868,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -36833,6 +36911,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -36863,26 +36942,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.disk, - click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.pencil, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -38021,8 +38104,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -46050,6 +46139,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -47061,19 +47151,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); @@ -67100,7 +67189,7 @@ var Plotly = (() => { init_basis(); init_basisClosed(); init_color2(); - rgb_default = function rgbGamma(y) { + rgb_default = (function rgbGamma(y) { var color2 = gamma(y); function rgb2(start, end) { var r = color2((start = rgb(start)).r, (end = rgb(end)).r), g = color2(start.g, end.g), b = color2(start.b, end.b), opacity = nogamma(start.opacity, end.opacity); @@ -67114,7 +67203,7 @@ var Plotly = (() => { } rgb2.gamma = rgbGamma; return rgb2; - }(1); + })(1); rgbBasis = rgbSpline(basis_default); rgbBasisClosed = rgbSpline(basisClosed_default); } @@ -67434,7 +67523,7 @@ var Plotly = (() => { var init_zoom = __esm({ "node_modules/d3-interpolate/src/zoom.js"() { epsilon2 = 1e-12; - zoom_default = function zoomRho(rho, rho2, rho4) { + zoom_default = (function zoomRho(rho, rho2, rho4) { function zoom(p0, p1) { var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S; if (d2 < epsilon2) { @@ -67466,7 +67555,7 @@ var Plotly = (() => { return zoomRho(_1, _2, _4); }; return zoom; - }(Math.SQRT2, 2, 4); + })(Math.SQRT2, 2, 4); } }); @@ -67536,7 +67625,7 @@ var Plotly = (() => { // node_modules/d3-interpolate/src/cubehelix.js function cubehelix2(hue2) { - return function cubehelixGamma(y) { + return (function cubehelixGamma(y) { y = +y; function cubehelix3(start, end) { var h = hue2((start = cubehelix(start)).h, (end = cubehelix(end)).h), s = nogamma(start.s, end.s), l = nogamma(start.l, end.l), opacity = nogamma(start.opacity, end.opacity); @@ -67550,7 +67639,7 @@ var Plotly = (() => { } cubehelix3.gamma = cubehelixGamma; return cubehelix3; - }(1); + })(1); } var cubehelix_default, cubehelixLong; var init_cubehelix2 = __esm({ diff --git a/dist/plotly-finance.min.js b/dist/plotly-finance.min.js index 88d64c5ee13..6ace3e4d386 100644 --- a/dist/plotly-finance.min.js +++ b/dist/plotly-finance.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance - minified) v3.6.0 +* plotly.js (finance - minified) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var dh=Object.defineProperty,dW=Object.defineProperties,pW=Object.getOwnPropertyDescriptor,mW=Object.getOwnPropertyDescriptors,yW=Object.getOwnPropertyNames,e6=Object.getOwnPropertySymbols;var t6=Object.prototype.hasOwnProperty,gW=Object.prototype.propertyIsEnumerable;var r6=(e,r,t)=>r in e?dh(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Zo=(e,r)=>{for(var t in r||(r={}))t6.call(r,t)&&r6(e,t,r[t]);if(e6)for(var t of e6(r))gW.call(r,t)&&r6(e,t,r[t]);return e},ph=(e,r)=>dW(e,mW(r));var it=(e,r)=>()=>(e&&(r=e(e=0)),r);var O=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),xW=(e,r)=>{for(var t in r)dh(e,t,{get:r[t],enumerable:!0})},bW=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of yW(r))!t6.call(e,n)&&n!==t&&dh(e,n,{get:()=>r[n],enumerable:!(a=pW(r,n))||a.enumerable});return e};var a6=e=>bW(dh({},"__esModule",{value:!0}),e);var mh=O(n6=>{"use strict";n6.version="3.6.0"});var l6=O((i6,yh)=>{(function(r,t,a){t[r]=t[r]||a(),typeof yh!="undefined"&&yh.exports&&(yh.exports=t[r])})("Promise",typeof window!="undefined"?window:i6,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,x,A){return Object.defineProperty(_,w,{value:x,writable:!0,configurable:A!==!1})}}catch(b){r=function(w,x,A){return w[x]=A,w}}a=function(){var _,w,x;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){x=new A(M,S),w?w.next=x:_=x,w=x,x=void 0},drain:function(){var M=_;for(_=w=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b0&&l(s,w))}catch(x){c.call(new d(w),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function h(b,_,w,x){for(var A=0;A<_.length;A++)(function(M){b.resolve(_[M]).then(function(D){w(M,D)},x)})(A)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,A){var k={success:typeof x=="function"?x:!0,failure:typeof A=="function"?A:!1};return k.promise=new this.constructor(function(S,D){if(typeof S!="function"||typeof D!="function")throw TypeError("Not a function");k.resolve=S,k.reject=D}),_.chain.push(k),_.state!==0&&l(s,_),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(w){c.call(_,w)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");A(_)})}),r(m,"reject",function(_){return new this(function(x,A){if(typeof x!="function"||typeof A!="function")throw TypeError("Not a function");A(_)})}),r(m,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");var M=_.length,S=Array(M),D=0;h(w,_,function(R,N){S[R]=N,++D===M&&A(S)},k)})}),r(m,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");h(w,_,function(S,D){A(D)},k)})}),m})});var kr=O((xme,gh)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var T=g.length,q=new Array(T);T--;)q[T]=g[T];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,q){s.call(this,g,T,q+"")},u.setProperty=function(g,T,q){f.call(this,g,T+"",q)}}e.ascending=c;function c(v,g){return vg?1:v>=g?0:NaN}e.descending=function(v,g){return gv?1:g>=v?0:NaN},e.min=function(v,g){var T=-1,q=v.length,C,L;if(arguments.length===1){for(;++T=L){C=L;break}for(;++TL&&(C=L)}else{for(;++T=L){C=L;break}for(;++TL&&(C=L)}return C},e.max=function(v,g){var T=-1,q=v.length,C,L;if(arguments.length===1){for(;++T=L){C=L;break}for(;++TC&&(C=L)}else{for(;++T=L){C=L;break}for(;++TC&&(C=L)}return C},e.extent=function(v,g){var T=-1,q=v.length,C,L,z;if(arguments.length===1){for(;++T=L){C=z=L;break}for(;++TL&&(C=L),z=L){C=z=L;break}for(;++TL&&(C=L),z1)return z/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,T,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;v(g[L],T)<0?q=L+1:C=L}return q},right:function(g,T,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;v(g[L],T)>0?C=L:q=L+1}return q}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(v){return p(v.length===1?function(g,T){return c(v(g),T)}:v)},e.shuffle=function(v,g,T){(q=arguments.length)<3&&(T=v.length,q<2&&(g=0));for(var q=T-g,C,L;q;)L=Math.random()*q--|0,C=v[q+g],v[q+g]=v[L+g],v[L+g]=C;return v},e.permute=function(v,g){for(var T=g.length,q=new Array(T);T--;)q[T]=v[g[T]];return q},e.pairs=function(v){for(var g=0,T=v.length-1,q,C=v[0],L=new Array(T<0?0:T);g=0;)for(z=v[g],T=z.length;--T>=0;)L[--C]=z[T];return L};var b=Math.abs;e.range=function(v,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=v,v=0)),(g-v)/T===1/0)throw new Error("infinite range");var q=[],C=_(b(T)),L=-1,z;if(v*=C,g*=C,T*=C,T<0)for(;(z=v+T*++L)>g;)q.push(z/C);else for(;(z=v+T*++L)=g.length)return C?C.call(v,F):q?F.sort(q):F;for(var K=-1,re=F.length,te=g[$++],ye,Ae,ae,ue=new x,he;++K=g.length)return P;var $=[],K=T[F++];return P.forEach(function(re,te){$.push({key:re,values:z(te,F)})}),K?$.sort(function(re,te){return K(re.key,te.key)}):$}return v.map=function(P,F){return L(F,P,0)},v.entries=function(P){return z(L(e.map,P,0),0)},v.key=function(P){return g.push(P),v},v.sortKeys=function(P){return T[g.length-1]=P,v},v.sortValues=function(P){return q=P,v},v.rollup=function(P){return C=P,v},v},e.set=function(v){var g=new I;if(v)for(var T=0,q=v.length;T=0&&(q=v.slice(T+1),v=v.slice(0,T)),v)return arguments.length<2?this[v].on(q):this[v].on(q,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(q,null);return this}};function X(v){var g=[],T=new x;function q(){for(var C=g,L=-1,z=C.length,P;++L=0&&(T=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),oe.hasOwnProperty(T)?{space:oe[T],local:v}:v}},ge.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node();return v=e.ns.qualify(v),v.local?T.getAttributeNS(v.space,v.local):T.getAttribute(v)}for(g in v)this.each(me(g,v[g]));return this}return this.each(me(v,g))};function me(v,g){v=e.ns.qualify(v);function T(){this.removeAttribute(v)}function q(){this.removeAttributeNS(v.space,v.local)}function C(){this.setAttribute(v,g)}function L(){this.setAttributeNS(v.space,v.local,g)}function z(){var F=g.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function P(){var F=g.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return g==null?v.local?q:T:typeof g=="function"?v.local?P:z:v.local?L:C}function xe(v){return v.trim().replace(/\s+/g," ")}ge.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node(),q=(v=Ee(v)).length,C=-1;if(g=T.classList){for(;++C=0;)(L=T[q])&&(C&&C!==L.nextSibling&&C.parentNode.insertBefore(L,C),C=L);return this},ge.sort=function(v){v=we.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=C+1);!(F=z[g])&&++g0&&(v=v.slice(0,C));var z=Be.get(v);z&&(v=z,L=Ve);function P(){var K=this[q];K&&(this.removeEventListener(v,K,K.$),delete this[q])}function F(){var K=L(g,t(arguments));P.call(this),this.addEventListener(v,this[q]=K,K.$=T),K._=g}function $(){var K=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),re;for(var te in this)if(re=te.match(K)){var ye=this[te];this.removeEventListener(re[1],ye,ye.$),delete this[te]}}return C?g?F:P:g?B:$}var Be=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Be.forEach(function(v){"on"+v in a&&Be.remove(v)});function Ze(v,g){return function(T){var q=e.event;e.event=T,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=q}}}function Ve(v,g){var T=Ze(v,g);return function(q){var C=this,L=q.relatedTarget;(!L||L!==C&&!(L.compareDocumentPosition(C)&8))&&T.call(C,q)}}var Ue,ir=0;function ar(v){var g=".dragsuppress-"+ ++ir,T="click"+g,q=e.select(i(v)).on("touchmove"+g,j).on("dragstart"+g,j).on("selectstart"+g,j);if(Ue==null&&(Ue="onselectstart"in v?!1:V(v.style,"userSelect")),Ue){var C=n(v).style,L=C[Ue];C[Ue]="none"}return function(z){if(q.on(g,null),Ue&&(C[Ue]=L),z){var P=function(){q.on(T,null)};q.on(T,function(){j(),P()},!0),setTimeout(P,0)}}}e.mouse=function(v){return Fe(v,le())};var er=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Fe(v,g){g.changedTouches&&(g=g.changedTouches[0]);var T=v.ownerSVGElement||v;if(T.createSVGPoint){var q=T.createSVGPoint();if(er<0){var C=i(v);if(C.scrollX||C.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=T[0][0].getScreenCTM();er=!(L.f||L.e),T.remove()}}return er?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(v.getScreenCTM().inverse()),[q.x,q.y]}var z=v.getBoundingClientRect();return[g.clientX-z.left-v.clientLeft,g.clientY-z.top-v.clientTop]}e.touch=function(v,g,T){if(arguments.length<3&&(T=g,g=le().changedTouches),g){for(var q=0,C=g.length,L;q0?1:v<0?-1:0}function ft(v,g,T){return(g[0]-v[0])*(T[1]-v[1])-(g[1]-v[1])*(T[0]-v[0])}function kt(v){return v>1?0:v<-1?Pe:Math.acos(v)}function wt(v){return v>1?sr:v<-1?-sr:Math.asin(v)}function Jt(v){return((v=Math.exp(v))-1/v)/2}function Vt(v){return((v=Math.exp(v))+1/v)/2}function Ja(v){return((v=Math.exp(2*v))-1)/(v+1)}function ba(v){return(v=Math.sin(v/2))*v}var ca=Math.SQRT2,$a=2,va=4;e.interpolateZoom=function(v,g){var T=v[0],q=v[1],C=v[2],L=g[0],z=g[1],P=g[2],F=L-T,$=z-q,K=F*F+$*$,re,te;if(K0&&(rr=rr.transition().duration(z)),rr.call(Me.event)}function dr(){ue&&ue.domain(ae.range().map(function(rr){return(rr-v.x)/v.k}).map(ae.invert)),Te&&Te.domain(he.range().map(function(rr){return(rr-v.y)/v.k}).map(he.invert))}function pr(rr){P++||rr({type:"zoomstart"})}function Lr(rr){dr(),rr({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function mr(rr){--P||(rr({type:"zoomend"}),T=null)}function Ar(){var rr=this,Dr=Ae.of(rr,arguments),Er=0,jr=e.select(i(rr)).on($,Ta).on(K,Ha),qt=pe(e.mouse(rr)),Kt=ar(rr);fh.call(rr),pr(Dr);function Ta(){Er=1,fr(e.mouse(rr),qt),Lr(Dr)}function Ha(){jr.on($,null).on(K,null),Kt(Er),mr(Dr)}}function Qr(){var rr=this,Dr=Ae.of(rr,arguments),Er={},jr=0,qt,Kt=".zoom-"+e.event.changedTouches[0].identifier,Ta="touchmove"+Kt,Ha="touchend"+Kt,Qa=[],Ba=e.select(rr),nn=ar(rr);ln(),pr(Dr),Ba.on(F,null).on(te,ln);function Ea(){var vi=e.touches(rr);return qt=v.k,vi.forEach(function(Aa){Aa.identifier in Er&&(Er[Aa.identifier]=pe(Aa))}),vi}function ln(){var vi=e.event.target;e.select(vi).on(Ta,Xo).on(Ha,hW),Qa.push(vi);for(var Aa=e.event.changedTouches,Nn=0,Hi=Aa.length;Nn1){var Wo=Fn[0],Bl=Fn[1],hh=Wo[0]-Bl[0],j4=Wo[1]-Bl[1];jr=hh*hh+j4*j4}}function Xo(){var vi=e.touches(rr),Aa,Nn,Hi,Fn;fh.call(rr);for(var wu=0,Wo=vi.length;wu1?1:g,T=T<0?0:T>1?1:T,C=T<=.5?T*(1+g):T+g-T*g,q=2*T-C;function L(P){return P>360?P-=360:P<0&&(P+=360),P<60?q+(C-q)*P/60:P<180?C:P<240?q+(C-q)*(240-P)/60:q}function z(P){return Math.round(L(P)*255)}return new Ia(z(v+120),z(v),z(v-120))}e.hcl=nt;function nt(v,g,T){return this instanceof nt?(this.h=+v,this.c=+g,void(this.l=+T)):arguments.length<2?v instanceof nt?new nt(v.h,v.c,v.l):v instanceof ea?V0(v.l,v.a,v.b):V0((v=or((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new nt(v,g,T)}var an=nt.prototype=new Kr;an.brighter=function(v){return new nt(this.h,this.c,Math.min(100,this.l+mt*(arguments.length?v:1)))},an.darker=function(v){return new nt(this.h,this.c,Math.max(0,this.l-mt*(arguments.length?v:1)))},an.rgb=function(){return ui(this.h,this.c,this.l).rgb()};function ui(v,g,T){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new ea(T,Math.cos(v*=Mr)*g,Math.sin(v)*g)}e.lab=ea;function ea(v,g,T){return this instanceof ea?(this.l=+v,this.a=+g,void(this.b=+T)):arguments.length<2?v instanceof ea?new ea(v.l,v.a,v.b):v instanceof nt?ui(v.h,v.c,v.l):or((v=Ia(v)).r,v.g,v.b):new ea(v,g,T)}var mt=18,Gt=.95047,Ka=1,Oo=1.08883,Il=ea.prototype=new Kr;Il.brighter=function(v){return new ea(Math.min(100,this.l+mt*(arguments.length?v:1)),this.a,this.b)},Il.darker=function(v){return new ea(Math.max(0,this.l-mt*(arguments.length?v:1)),this.a,this.b)},Il.rgb=function(){return Y0(this.l,this.a,this.b)};function Y0(v,g,T){var q=(v+16)/116,C=q+g/500,L=q-T/200;return C=vc(C)*Gt,q=vc(q)*Ka,L=vc(L)*Oo,new Ia(dc(3.2404542*C-1.5371385*q-.4985314*L),dc(-.969266*C+1.8760108*q+.041556*L),dc(.0556434*C-.2040259*q+1.0572252*L))}function V0(v,g,T){return v>0?new nt(Math.atan2(T,g)*Br,Math.sqrt(g*g+T*T),v):new nt(NaN,NaN,v)}function vc(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function hc(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function dc(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Ia;function Ia(v,g,T){return this instanceof Ia?(this.r=~~v,this.g=~~g,void(this.b=~~T)):arguments.length<2?v instanceof Ia?new Ia(v.r,v.g,v.b):Xr(""+v,Ia,pa):new Ia(v,g,T)}function G0(v){return new Ia(v>>16,v>>8&255,v&255)}function du(v){return G0(v)+""}var pu=Ia.prototype=new Kr;pu.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,T=this.g,q=this.b,C=30;return!g&&!T&&!q?new Ia(C,C,C):(g&&g>4,q=q>>4|q,C=F&240,C=C>>4|C,L=F&15,L=L<<4|L):v.length===7&&(q=(F&16711680)>>16,C=(F&65280)>>8,L=F&255)),g(q,C,L))}function et(v,g,T){var q=Math.min(v/=255,g/=255,T/=255),C=Math.max(v,g,T),L=C-q,z,P,F=(C+q)/2;return L?(P=F<.5?L/(C+q):L/(2-C-q),v==C?z=(g-T)/L+(g0&&F<1?0:z),new lt(z,P,F)}function or(v,g,T){v=_a(v),g=_a(g),T=_a(T);var q=hc((.4124564*v+.3575761*g+.1804375*T)/Gt),C=hc((.2126729*v+.7151522*g+.072175*T)/Ka),L=hc((.0193339*v+.119192*g+.9503041*T)/Oo);return ea(116*C-16,500*(q-C),200*(C-L))}function _a(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function vt(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var wa=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});wa.forEach(function(v,g){wa.set(v,G0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=fi(Y);function fi(v){return function(g,T,q){return arguments.length===2&&typeof T=="function"&&(q=T,T=null),Yo(g,T,v,q)}}function Yo(v,g,T,q){var C={},L=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in P)&&/^(http(s)?:)?\/\//.test(v)&&(P=new XDomainRequest),"onload"in P?P.onload=P.onerror=$:P.onreadystatechange=function(){P.readyState>3&&$()};function $(){var K=P.status,re;if(!K&&pU(P)||K>=200&&K<300||K===304){try{re=T.call(C,P)}catch(te){L.error.call(C,te);return}L.load.call(C,re)}else L.error.call(C,P)}return P.onprogress=function(K){var re=e.event;e.event=K;try{L.progress.call(C,P)}finally{e.event=re}},C.header=function(K,re){return K=(K+"").toLowerCase(),arguments.length<2?z[K]:(re==null?delete z[K]:z[K]=re+"",C)},C.mimeType=function(K){return arguments.length?(g=K==null?null:K+"",C):g},C.responseType=function(K){return arguments.length?(F=K,C):F},C.response=function(K){return T=K,C},["get","post"].forEach(function(K){C[K]=function(){return C.send.apply(C,[K].concat(t(arguments)))}}),C.send=function(K,re,te){if(arguments.length===2&&typeof re=="function"&&(te=re,re=null),P.open(K,v,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),P.setRequestHeader)for(var ye in z)P.setRequestHeader(ye,z[ye]);return g!=null&&P.overrideMimeType&&P.overrideMimeType(g),F!=null&&(P.responseType=F),te!=null&&C.on("error",te).on("load",function(Ae){te(null,Ae)}),L.beforesend.call(C,P),P.send(re==null?null:re),C},C.abort=function(){return P.abort(),C},e.rebind(C,L,"on"),q==null?C:C.get(dU(q))}function dU(v){return v.length===1?function(g,T){v(g==null?T:null)}:v}function pU(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var T=new RegExp('["'+v+` -]`),q=v.charCodeAt(0);function C($,K,re){arguments.length<3&&(re=K,K=null);var te=Yo($,g,K==null?L:z(K),re);return te.row=function(ye){return arguments.length?te.response((K=ye)==null?L:z(ye)):K},te}function L($){return C.parse($.responseText)}function z($){return function(K){return C.parse(K.responseText,$)}}C.parse=function($,K){var re;return C.parseRows($,function(te,ye){if(re)return re(te,ye-1);var Ae=function(ae){for(var ue={},he=te.length,Te=0;Te=Ae)return te;if(Te)return Te=!1,re;var Ye=ae;if($.charCodeAt(Ye)===34){for(var nr=Ye;nr++24?(isFinite(g)&&(clearTimeout(Z0),Z0=setTimeout(ly,g)),W0=0):(W0=1,H_(ly))}e.timer.flush=function(){B_(),O_()};function B_(){for(var v=Date.now(),g=U0;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function O_(){for(var v,g=U0,T=1/0;g;)g.c?(g.t=0;--P)ae.push(C[$[re[P]][2]]);for(P=+ye;P1&&ft(v[T[q-2]],v[T[q-1]],v[C])<=0;)--q;T[q++]=C}return T.slice(0,q)}function mU(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return ee(v,$0),v};var $0=e.geom.polygon.prototype=[];$0.area=function(){for(var v=-1,g=this.length,T,q=this[g-1],C=0;++vse)P=P.L;else if(z=g-bU(P,T),z>se){if(!P.R){q=P;break}P=P.R}else{L>-se?(q=P.P,C=P):z>-se?(q=P,C=P.N):q=C=P;break}var F=X_(v);if(gu.insert(q,F),!(!q&&!C)){if(q===C){bu(q),C=X_(q.site),gu.insert(F,C),F.edge=C.edge=yc(q.site,F.site),xu(q),xu(C);return}if(!C){F.edge=yc(q.site,F.site);return}bu(q),bu(C);var $=q.site,K=$.x,re=$.y,te=v.x-K,ye=v.y-re,Ae=C.site,ae=Ae.x-K,ue=Ae.y-re,he=2*(te*ue-ye*ae),Te=te*te+ye*ye,Me=ae*ae+ue*ue,pe={x:(ue*Te-ye*Me)/he+K,y:(te*Me-ae*Te)/he+re};K0(C.edge,$,Ae,pe),F.edge=yc($,v,null,pe),C.edge=yc(v,Ae,null,pe),xu(q),xu(C)}}function W_(v,g){var T=v.site,q=T.x,C=T.y,L=C-g;if(!L)return q;var z=v.P;if(!z)return-1/0;T=z.site;var P=T.x,F=T.y,$=F-g;if(!$)return P;var K=P-q,re=1/L-1/$,te=K/$;return re?(-te+Math.sqrt(te*te-2*re*(K*K/(-2*$)-F+$/2+C-L/2)))/re+q:(q+P)/2}function bU(v,g){var T=v.N;if(T)return W_(T,g);var q=v.site;return q.y===g?q.x:1/0}function Z_(v){this.site=v,this.edges=[]}Z_.prototype.prepare=function(){for(var v=this.edges,g=v.length,T;g--;)T=v[g].edge,(!T.b||!T.a)&&v.splice(g,1);return v.sort(J_),v.length};function _U(v){for(var g=v[0][0],T=v[1][0],q=v[0][1],C=v[1][1],L,z,P,F,$=Vo,K=$.length,re,te,ye,Ae,ae,ue;K--;)if(re=$[K],!(!re||!re.prepare()))for(ye=re.edges,Ae=ye.length,te=0;tese||b(F-z)>se)&&(ye.splice(te,0,new Q0(kU(re.site,ue,b(P-g)se?{x:g,y:b(L-g)se?{x:b(z-C)se?{x:T,y:b(L-T)se?{x:b(z-q)=-Le)){var te=F*F+$*$,ye=K*K+ue*ue,Ae=(ue*te-$*ye)/re,ae=(F*ye-K*te)/re,ue=ae+P,he=U_.pop()||new wU;he.arc=v,he.site=C,he.x=Ae+z,he.y=ue+Math.sqrt(Ae*Ae+ae*ae),he.cy=ue,v.circle=he;for(var Te=null,Me=mc._;Me;)if(he.y0)){if(ae/=ye,ye<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=T-P,!(!ye&&ae<0)){if(ae/=ye,ye<0){if(ae>te)return;ae>re&&(re=ae)}else if(ye>0){if(ae0)){if(ae/=Ae,Ae<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=q-F,!(!Ae&&ae<0)){if(ae/=Ae,Ae<0){if(ae>te)return;ae>re&&(re=ae)}else if(Ae>0){if(ae0&&(C.a={x:P+re*ye,y:F+re*Ae}),te<1&&(C.b={x:P+te*ye,y:F+te*Ae}),C}}}}}}function AU(v){for(var g=yu,T=TU(v[0][0],v[0][1],v[1][0],v[1][1]),q=g.length,C;q--;)C=g[q],(!MU(C,v)||!T(C)||b(C.a.x-C.b.x)=L)return;if(K>te){if(!q)q={x:Ae,y:z};else if(q.y>=P)return;T={x:Ae,y:P}}else{if(!q)q={x:Ae,y:P};else if(q.y1)if(K>te){if(!q)q={x:(z-he)/ue,y:z};else if(q.y>=P)return;T={x:(P-he)/ue,y:P}}else{if(!q)q={x:(P-he)/ue,y:P};else if(q.y=L)return;T={x:L,y:ue*L+he}}else{if(!q)q={x:L,y:ue*L+he};else if(q.x=K&&he.x<=te&&he.y>=re&&he.y<=ye?[[K,ye],[te,ye],[te,re],[K,re]]:[];Te.point=F[ae]}),$}function P(F){return F.map(function($,K){return{x:Math.round(q($,K)/se)*se,y:Math.round(C($,K)/se)*se,i:K}})}return z.links=function(F){return vy(P(F)).edges.filter(function($){return $.l&&$.r}).map(function($){return{source:F[$.l.i],target:F[$.r.i]}})},z.triangles=function(F){var $=[];return vy(P(F)).cells.forEach(function(K,re){for(var te=K.site,ye=K.edges.sort(J_),Ae=-1,ae=ye.length,ue,he,Te=ye[ae-1].edge,Me=Te.l===te?Te.r:Te.l;++AeMe&&(Me=K.x),K.y>pe&&(pe=K.y),ye.push(K.x),Ae.push(K.y);else for(ae=0;aeMe&&(Me=Ye),nr>pe&&(pe=nr),ye.push(Ye),Ae.push(nr)}var fr=Me-he,lr=pe-Te;fr>lr?pe=Te+fr:Me=he+lr;function dr(mr,Ar,Qr,Nt,tt,rr,Dr,Er){if(!(isNaN(Qr)||isNaN(Nt)))if(mr.leaf){var jr=mr.x,qt=mr.y;if(jr!=null)if(b(jr-Qr)+b(qt-Nt)<.01)pr(mr,Ar,Qr,Nt,tt,rr,Dr,Er);else{var Kt=mr.point;mr.x=mr.y=mr.point=null,pr(mr,Kt,jr,qt,tt,rr,Dr,Er),pr(mr,Ar,Qr,Nt,tt,rr,Dr,Er)}else mr.x=Qr,mr.y=Nt,mr.point=Ar}else pr(mr,Ar,Qr,Nt,tt,rr,Dr,Er)}function pr(mr,Ar,Qr,Nt,tt,rr,Dr,Er){var jr=(tt+Dr)*.5,qt=(rr+Er)*.5,Kt=Qr>=jr,Ta=Nt>=qt,Ha=Ta<<1|Kt;mr.leaf=!1,mr=mr.nodes[Ha]||(mr.nodes[Ha]=Q_()),Kt?tt=jr:Dr=jr,Ta?rr=qt:Er=qt,dr(mr,Ar,Qr,Nt,tt,rr,Dr,Er)}var Lr=Q_();if(Lr.add=function(mr){dr(Lr,mr,+re(mr,++ae),+te(mr,ae),he,Te,Me,pe)},Lr.visit=function(mr){bc(mr,Lr,he,Te,Me,pe)},Lr.find=function(mr){return DU(Lr,mr[0],mr[1],he,Te,Me,pe)},ae=-1,g==null){for(;++aeL||te>z||ye=Ye,lr=T>=nr,dr=lr<<1|fr,pr=dr+4;drT&&(L=g.slice(T,L),P[z]?P[z]+=L:P[++z]=L),(q=q[0])===(C=C[0])?P[z]?P[z]+=C:P[++z]=C:(P[++z]=null,F.push({i:z,x:vl(q,C)})),T=py.lastIndex;return T=0&&!(q=e.interpolators[T](v,g)););return q}e.interpolators=[function(v,g){var T=typeof g;return(T==="string"?wa.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?hy:e4:g instanceof Kr?hy:Array.isArray(g)?rh:T==="object"&&isNaN(g)?j_:vl)(v,g)}],e.interpolateArray=rh;function rh(v,g){var T=[],q=[],C=v.length,L=g.length,z=Math.min(v.length,g.length),P;for(P=0;P=0?v.slice(0,g):v,q=g>=0?v.slice(g+1):"in";return T=EU.get(T)||r4,q=PU.get(q)||Y,RU(q(T.apply(null,r.call(arguments,1))))};function RU(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function t4(v){return function(g){return 1-v(1-g)}}function a4(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function zU(v){return v*v}function NU(v){return v*v*v}function FU(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,T=g*v;return 4*(v<.5?T:3*(v-g)+T-.75)}function IU(v){return function(g){return Math.pow(g,v)}}function HU(v){return 1-Math.cos(v*sr)}function BU(v){return Math.pow(2,10*(v-1))}function OU(v){return 1-Math.sqrt(1-v*v)}function YU(v,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/Qe*Math.asin(1/v):(v=1,T=g/4),function(q){return 1+v*Math.pow(2,-10*q)*Math.sin((q-T)*Qe/g)}}function VU(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function GU(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=UU;function UU(v,g){v=e.hcl(v),g=e.hcl(g);var T=v.h,q=v.c,C=v.l,L=g.h-T,z=g.c-q,P=g.l-C;return isNaN(z)&&(z=0,q=isNaN(q)?g.c:q),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return ui(T+L*F,q+z*F,C+P*F)+""}}e.interpolateHsl=XU;function XU(v,g){v=e.hsl(v),g=e.hsl(g);var T=v.h,q=v.s,C=v.l,L=g.h-T,z=g.s-q,P=g.l-C;return isNaN(z)&&(z=0,q=isNaN(q)?g.s:q),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return pa(T+L*F,q+z*F,C+P*F)+""}}e.interpolateLab=WU;function WU(v,g){v=e.lab(v),g=e.lab(g);var T=v.l,q=v.a,C=v.b,L=g.l-T,z=g.a-q,P=g.b-C;return function(F){return Y0(T+L*F,q+z*F,C+P*F)+""}}e.interpolateRound=n4;function n4(v,g){return g-=v,function(T){return Math.round(v+g*T)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var q=g.transform.baseVal.consolidate()}return new i4(q?q.matrix:JU)})(v)};function i4(v){var g=[v.a,v.b],T=[v.c,v.d],q=o4(g),C=l4(g,T),L=o4(ZU(T,g,-C))||0;g[0]*T[1]180?g+=360:g-v>180&&(v+=360),q.push({i:T.push(_u(T)+"rotate(",null,")")-2,x:vl(v,g)})):g&&T.push(_u(T)+"rotate("+g+")")}function QU(v,g,T,q){v!==g?q.push({i:T.push(_u(T)+"skewX(",null,")")-2,x:vl(v,g)}):g&&T.push(_u(T)+"skewX("+g+")")}function jU(v,g,T,q){if(v[0]!==g[0]||v[1]!==g[1]){var C=T.push(_u(T)+"scale(",null,",",null,")");q.push({i:C-4,x:vl(v[0],g[0])},{i:C-2,x:vl(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(_u(T)+"scale("+g+")")}function s4(v,g){var T=[],q=[];return v=e.transform(v),g=e.transform(g),$U(v.translate,g.translate,T,q),KU(v.rotate,g.rotate,T,q),QU(v.skew,g.skew,T,q),jU(v.scale,g.scale,T,q),v=g=null,function(C){for(var L=-1,z=q.length,P;++L0?L=pe:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:L=0})):pe>0&&(g.start({type:"start",alpha:L=pe}),T=J0(v.tick)),v):L},v.start=function(){var pe,Ye=ye.length,nr=Ae.length,fr=q[0],lr=q[1],dr,pr;for(pe=0;pe=0;)L.push(K=$[F]),K.parent=P,K.depth=P.depth+1;T&&(P.value=0),P.children=$}else T&&(P.value=+T.call(q,P,P.depth)||0),delete P.children;return Ii(C,function(re){var te,ye;v&&(te=re.children)&&te.sort(v),T&&(ye=re.parent)&&(ye.value+=re.value)}),z}return q.sort=function(C){return arguments.length?(v=C,q):v},q.children=function(C){return arguments.length?(g=C,q):g},q.value=function(C){return arguments.length?(T=C,q):T},q.revalue=function(C){return T&&(wc(C,function(L){L.children&&(L.value=0)}),Ii(C,function(L){var z;L.children||(L.value=+T.call(q,L,L.depth)||0),(z=L.parent)&&(z.value+=L.value)})),C},q};function _c(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=dX,v}function wc(v,g){for(var T=[v];(v=T.pop())!=null;)if(g(v),(C=v.children)&&(q=C.length))for(var q,C;--q>=0;)T.push(C[q])}function Ii(v,g){for(var T=[v],q=[];(v=T.pop())!=null;)if(q.push(v),(z=v.children)&&(L=z.length))for(var C=-1,L,z;++CC&&(C=P),q.push(P)}for(z=0;zq&&(T=g,q=C);return T}function _X(v){return v.reduce(wX,0)}function wX(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,T=AX,q=TX;function C(L,te){for(var P=[],F=L.map(g,this),$=T.call(this,F,te),K=q.call(this,$,F,te),re,te=-1,ye=F.length,Ae=K.length-1,ae=v?1:1/ye,ue;++te0)for(te=-1;++te=$[0]&&ue<=$[1]&&(re=P[e.bisect(K,ue,1,Ae)-1],re.y+=ae,re.push(L[te]));return P}return C.value=function(L){return arguments.length?(g=L,C):g},C.range=function(L){return arguments.length?(T=Nr(L),C):T},C.bins=function(L){return arguments.length?(q=typeof L=="number"?function(z){return v4(z,L)}:Nr(L),C):q},C.frequency=function(L){return arguments.length?(v=!!L,C):v},C};function TX(v,g){return v4(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function v4(v,g){for(var T=-1,q=+v[0],C=(v[1]-q)/g,L=[];++T<=g;)L[T]=C*T+q;return L}function AX(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(MX),g=0,T=[1,1],q;function C(L,z){var P=v.call(this,L,z),F=P[0],$=T[0],K=T[1],re=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(F.x=F.y=0,Ii(F,function(ye){ye.r=+re(ye.value)}),Ii(F,p4),g){var te=g*(q?1:Math.max(2*F.r/$,2*F.r/K))/2;Ii(F,function(ye){ye.r+=te}),Ii(F,p4),Ii(F,function(ye){ye.r-=te})}return m4(F,$/2,K/2,q?1:1/Math.max(2*F.r/$,2*F.r/K)),P}return C.size=function(L){return arguments.length?(T=L,C):T},C.radius=function(L){return arguments.length?(q=L==null||typeof L=="function"?L:+L,C):q},C.padding=function(L){return arguments.length?(g=+L,C):g},_c(C,v)};function MX(v,g){return v.value-g.value}function gy(v,g){var T=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=T,T._pack_prev=g}function h4(v,g){v._pack_next=g,g._pack_prev=v}function d4(v,g){var T=g.x-v.x,q=g.y-v.y,C=v.r+g.r;return .999*C*C>T*T+q*q}function p4(v){if(!(g=v.children)||!(te=g.length))return;var g,T=1/0,q=-1/0,C=1/0,L=-1/0,z,P,F,$,K,re,te;function ye(pe){T=Math.min(pe.x-pe.r,T),q=Math.max(pe.x+pe.r,q),C=Math.min(pe.y-pe.r,C),L=Math.max(pe.y+pe.r,L)}if(g.forEach(kX),z=g[0],z.x=-z.r,z.y=0,ye(z),te>1&&(P=g[1],P.x=P.r,P.y=0,ye(P),te>2))for(F=g[2],y4(z,P,F),ye(F),gy(z,F),z._pack_prev=F,gy(F,P),P=z._pack_next,$=3;$ue.x&&(ue=Ye),Ye.depth>he.depth&&(he=Ye)});var Te=g(ae,ue)/2-ae.x,Me=T[0]/(ue.x+g(ue,ae)/2+Te),pe=T[1]/(he.depth||1);wc(ye,function(Ye){Ye.x=(Ye.x+Te)*Me,Ye.y=Ye.depth*pe})}return te}function L(K){for(var re={A:null,children:[K]},te=[re],ye;(ye=te.pop())!=null;)for(var Ae=ye.children,ae,ue=0,he=Ae.length;ue0&&(CX(LX(ae,K,te),K,Ye),he+=Ye,Te+=Ye),Me+=ae.m,he+=ye.m,pe+=ue.m,Te+=Ae.m;ae&&!by(Ae)&&(Ae.t=ae,Ae.m+=Me-Te),ye&&!xy(ue)&&(ue.t=ye,ue.m+=he-pe,te=K)}return te}function $(K){K.x*=T[0],K.y=K.depth*T[1]}return C.separation=function(K){return arguments.length?(g=K,C):g},C.size=function(K){return arguments.length?(q=(T=K)==null?$:null,C):q?null:T},C.nodeSize=function(K){return arguments.length?(q=(T=K)==null?null:$,C):q?T:null},_c(C,v)};function g4(v,g){return v.parent==g.parent?1:2}function xy(v){var g=v.children;return g.length?g[0]:v.t}function by(v){var g=v.children,T;return(T=g.length)?g[T-1]:v.t}function CX(v,g,T){var q=T/(g.i-v.i);g.c-=q,g.s+=T,v.c+=q,g.z+=T,g.m+=T}function SX(v){for(var g=0,T=0,q=v.children,C=q.length,L;--C>=0;)L=q[C],L.z+=g,L.m+=g,g+=L.s+(T+=L.c)}function LX(v,g,T){return v.a.parent===g.parent?v.a:T}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=g4,T=[1,1],q=!1;function C(L,z){var P=v.call(this,L,z),F=P[0],$,K=0;Ii(F,function(ae){var ue=ae.children;ue&&ue.length?(ae.x=EX(ue),ae.y=DX(ue)):(ae.x=$?K+=g(ae,$):0,ae.y=0,$=ae)});var re=x4(F),te=b4(F),ye=re.x-g(re,te)/2,Ae=te.x+g(te,re)/2;return Ii(F,q?function(ae){ae.x=(ae.x-F.x)*T[0],ae.y=(F.y-ae.y)*T[1]}:function(ae){ae.x=(ae.x-ye)/(Ae-ye)*T[0],ae.y=(1-(F.y?ae.y/F.y:1))*T[1]}),P}return C.separation=function(L){return arguments.length?(g=L,C):g},C.size=function(L){return arguments.length?(q=(T=L)==null,C):q?null:T},C.nodeSize=function(L){return arguments.length?(q=(T=L)!=null,C):q?T:null},_c(C,v)};function DX(v){return 1+e.max(v,function(g){return g.y})}function EX(v){return v.reduce(function(g,T){return g+T.x},0)/v.length}function x4(v){var g=v.children;return g&&g.length?x4(g[0]):v}function b4(v){var g=v.children,T;return g&&(T=g.length)?b4(g[T-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,T=[1,1],q=null,C=_y,L=!1,z,P="squarify",F=.5*(1+Math.sqrt(5));function $(ae,ue){for(var he=-1,Te=ae.length,Me,pe;++he0;)Te.push(pe=Me[lr-1]),Te.area+=pe.area,P!=="squarify"||(nr=te(Te,fr))<=Ye?(Me.pop(),Ye=nr):(Te.area-=Te.pop().area,ye(Te,fr,he,!1),fr=Math.min(he.dx,he.dy),Te.length=Te.area=0,Ye=1/0);Te.length&&(ye(Te,fr,he,!0),Te.length=Te.area=0),ue.forEach(K)}}function re(ae){var ue=ae.children;if(ue&&ue.length){var he=C(ae),Te=ue.slice(),Me,pe=[];for($(Te,he.dx*he.dy/ae.value),pe.area=0;Me=Te.pop();)pe.push(Me),pe.area+=Me.area,Me.z!=null&&(ye(pe,Me.z?he.dx:he.dy,he,!Te.length),pe.length=pe.area=0);ue.forEach(re)}}function te(ae,ue){for(var he=ae.area,Te,Me=0,pe=1/0,Ye=-1,nr=ae.length;++YeMe&&(Me=Te));return he*=he,ue*=ue,he?Math.max(ue*Me*F/he,he/(ue*pe*F)):1/0}function ye(ae,ue,he,Te){var Me=-1,pe=ae.length,Ye=he.x,nr=he.y,fr=ue?g(ae.area/ue):0,lr;if(ue==he.dx){for((Te||fr>he.dy)&&(fr=he.dy);++Mehe.dx)&&(fr=he.dx);++Me1);return v+g*q*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,T=0;T2?zX:PX,$=q?rX:eX;return C=F(v,g,$,T),L=F(g,v,$,Go),P}function P(F){return C(F)}return P.invert=function(F){return L(F)},P.domain=function(F){return arguments.length?(v=F.map(Number),z()):v},P.range=function(F){return arguments.length?(g=F,z()):g},P.rangeRound=function(F){return P.range(F).interpolate(n4)},P.clamp=function(F){return arguments.length?(q=F,z()):q},P.interpolate=function(F){return arguments.length?(T=F,z()):T},P.ticks=function(F){return Ay(v,F)},P.tickFormat=function(F,$){return d3_scale_linearTickFormat(v,F,$)},P.nice=function(F){return M4(v,F),z()},P.copy=function(){return T4(v,g,T,q)},z()}function A4(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function M4(v,g){return wy(v,w4(Ty(v,g)[2])),wy(v,w4(Ty(v,g)[2])),v}function Ty(v,g){g==null&&(g=10);var T=th(v),q=T[1]-T[0],C=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),L=g/q*C;return L<=.15?C*=10:L<=.35?C*=5:L<=.75&&(C*=2),T[0]=Math.ceil(T[0]/C)*C,T[1]=Math.floor(T[1]/C)*C+C*.5,T[2]=C,T}function Ay(v,g){return e.range.apply(e,Ty(v,g))}var NX={s:1,g:1,p:1,r:1,e:1};function k4(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function mme(v,g){var T=k4(g[2]);return v in NX?Math.abs(T-k4(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):T-(v==="%")*2}e.scale.log=function(){return q4(e.scale.linear().domain([0,1]),10,!0,[1,10])};function q4(v,g,T,q){function C(P){return(T?Math.log(P<0?0:P):-Math.log(P>0?0:-P))/Math.log(g)}function L(P){return T?Math.pow(g,P):-Math.pow(g,-P)}function z(P){return v(C(P))}return z.invert=function(P){return L(v.invert(P))},z.domain=function(P){return arguments.length?(T=P[0]>=0,v.domain((q=P.map(Number)).map(C)),z):q},z.base=function(P){return arguments.length?(g=+P,v.domain(q.map(C)),z):g},z.nice=function(){var P=wy(q.map(C),T?Math:FX);return v.domain(P),q=P.map(L),z},z.ticks=function(){var P=th(q),F=[],$=P[0],K=P[1],re=Math.floor(C($)),te=Math.ceil(C(K)),ye=g%1?2:g;if(isFinite(te-re)){if(T){for(;re0;Ae--)F.push(L(re)*Ae);for(re=0;F[re]<$;re++);for(te=F.length;F[te-1]>K;te--);F=F.slice(re,te)}return F},z.copy=function(){return q4(v.copy(),g,T,q)},A4(z,v)}var FX={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return C4(e.scale.linear(),1,[0,1])};function C4(v,g,T){var q=nh(g),C=nh(1/g);function L(z){return v(q(z))}return L.invert=function(z){return C(v.invert(z))},L.domain=function(z){return arguments.length?(v.domain((T=z.map(Number)).map(q)),L):T},L.ticks=function(z){return Ay(T,z)},L.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},L.nice=function(z){return L.domain(M4(T,z))},L.exponent=function(z){return arguments.length?(q=nh(g=z),C=nh(1/g),v.domain(T.map(q)),L):g},L.copy=function(){return C4(v.copy(),g,T)},A4(L,v)}function nh(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return S4([],{t:"range",a:[[]]})};function S4(v,g){var T,q,C;function L(P){return q[((T.get(P)||(g.t==="range"?T.set(P,v.push(P)):NaN))-1)%q.length]}function z(P,F){return e.range(v.length).map(function($){return P+F*$})}return L.domain=function(P){if(!arguments.length)return v;v=[],T=new x;for(var F=-1,$=P.length,K;++F<$;)T.has(K=P[F])||T.set(K,v.push(K));return L[g.t].apply(L,g.a)},L.range=function(P){return arguments.length?(q=P,C=0,g={t:"range",a:arguments},L):q},L.rangePoints=function(P,F){arguments.length<2&&(F=0);var $=P[0],K=P[1],re=v.length<2?($=($+K)/2,0):(K-$)/(v.length-1+F);return q=z($+re*F/2,re),C=0,g={t:"rangePoints",a:arguments},L},L.rangeRoundPoints=function(P,F){arguments.length<2&&(F=0);var $=P[0],K=P[1],re=v.length<2?($=K=Math.round(($+K)/2),0):(K-$)/(v.length-1+F)|0;return q=z($+Math.round(re*F/2+(K-$-(v.length-1+F)*re)/2),re),C=0,g={t:"rangeRoundPoints",a:arguments},L},L.rangeBands=function(P,F,$){arguments.length<2&&(F=0),arguments.length<3&&($=F);var K=P[1]0?T[L-1]:v[0],Lte?0:1;if(K<$&&(ae=K,K=$,$=ae),ye>=cr)return F(K,Ae)+($?F($,1-Ae):"")+"Z";var ae,ue,he,Te,Me=0,pe=0,Ye,nr,fr,lr,dr,pr,Lr,mr,Ar=[];if((Te=(+z.apply(this,arguments)||0)/2)&&(he=q===ih?Math.sqrt($*$+K*K):+q.apply(this,arguments),Ae||(pe*=-1),K&&(pe=wt(he/K*Math.sin(Te))),$&&(Me=wt(he/$*Math.sin(Te)))),K){Ye=K*Math.cos(re+pe),nr=K*Math.sin(re+pe),fr=K*Math.cos(te-pe),lr=K*Math.sin(te-pe);var Qr=Math.abs(te-re-2*pe)<=Pe?0:1;if(pe&&lh(Ye,nr,fr,lr)===Ae^Qr){var Nt=(re+te)/2;Ye=K*Math.cos(Nt),nr=K*Math.sin(Nt),fr=lr=null}}else Ye=nr=0;if($){dr=$*Math.cos(te-Me),pr=$*Math.sin(te-Me),Lr=$*Math.cos(re+Me),mr=$*Math.sin(re+Me);var tt=Math.abs(re-te+2*Me)<=Pe?0:1;if(Me&&lh(dr,pr,Lr,mr)===1-Ae^tt){var rr=(re+te)/2;dr=$*Math.cos(rr),pr=$*Math.sin(rr),Lr=mr=null}}else dr=pr=0;if(ye>se&&(ae=Math.min(Math.abs(K-$)/2,+T.apply(this,arguments)))>.001){ue=$0?0:1}function oh(v,g,T,q,C){var L=v[0]-g[0],z=v[1]-g[1],P=(C?q:-q)/Math.sqrt(L*L+z*z),F=P*z,$=-P*L,K=v[0]+F,re=v[1]+$,te=g[0]+F,ye=g[1]+$,Ae=(K+te)/2,ae=(re+ye)/2,ue=te-K,he=ye-re,Te=ue*ue+he*he,Me=T-q,pe=K*ye-te*re,Ye=(he<0?-1:1)*Math.sqrt(Math.max(0,Me*Me*Te-pe*pe)),nr=(pe*he-ue*Ye)/Te,fr=(-pe*ue-he*Ye)/Te,lr=(pe*he+ue*Ye)/Te,dr=(-pe*ue+he*Ye)/Te,pr=nr-Ae,Lr=fr-ae,mr=lr-Ae,Ar=dr-ae;return pr*pr+Lr*Lr>mr*mr+Ar*Ar&&(nr=lr,fr=dr),[[nr-F,fr-$],[nr*T/Me,fr*T/Me]]}function N4(){return!0}function F4(v){var g=mu,T=pc,q=N4,C=ci,L=C.key,z=.7;function P(F){var $=[],K=[],re=-1,te=F.length,ye,Ae=Nr(g),ae=Nr(T);function ue(){$.push("M",C(v(K),z))}for(;++re1?v.join("L"):v+"Z"}function I4(v){return v.join("L")+"Z"}function XX(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1&&C.push("H",q[0]),C.join("")}function ky(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1){P=g[1],L=v[F],F++,q+="C"+(C[0]+z[0])+","+(C[1]+z[1])+","+(L[0]-P[0])+","+(L[1]-P[1])+","+L[0]+","+L[1];for(var $=2;$9&&(L=T*3/Math.sqrt(L),z[P]=L*q,z[P+1]=L*C));for(P=-1;++P<=F;)L=(v[Math.min(F,P+1)][0]-v[Math.max(0,P-1)][0])/(6*(1+z[P]*z[P])),g.push([L||0,z[P]*L||0]);return g}function rW(v){return v.length<3?ci(v):v[0]+sh(v,eW(v))}e.svg.line.radial=function(){var v=F4(Y4);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function Y4(v){for(var g,T=-1,q=v.length,C,L;++TPe)+",1 "+re}function $(K,re,te,ye){return"Q 0,0 "+ye}return L.radius=function(K){return arguments.length?(T=Nr(K),L):T},L.source=function(K){return arguments.length?(v=Nr(K),L):v},L.target=function(K){return arguments.length?(g=Nr(K),L):g},L.startAngle=function(K){return arguments.length?(q=Nr(K),L):q},L.endAngle=function(K){return arguments.length?(C=Nr(K),L):C},L};function tW(v){return v.radius}e.svg.diagonal=function(){var v=G4,g=U4,T=X4;function q(C,L){var z=v.call(this,C,L),P=g.call(this,C,L),F=(z.y+P.y)/2,$=[z,{x:z.x,y:F},{x:P.x,y:F},P];return $=$.map(T),"M"+$[0]+"C"+$[1]+" "+$[2]+" "+$[3]}return q.source=function(C){return arguments.length?(v=Nr(C),q):v},q.target=function(C){return arguments.length?(g=Nr(C),q):g},q.projection=function(C){return arguments.length?(T=C,q):T},q};function X4(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=X4,T=v.projection;return v.projection=function(q){return arguments.length?T(aW(g=q)):g},v};function aW(v){return function(){var g=v.apply(this,arguments),T=g[0],q=g[1]-sr;return[T*Math.cos(q),T*Math.sin(q)]}}e.svg.symbol=function(){var v=iW,g=nW;function T(q,C){return(Z4.get(v.call(this,q,C))||W4)(g.call(this,q,C))}return T.type=function(q){return arguments.length?(v=Nr(q),T):v},T.size=function(q){return arguments.length?(g=Nr(q),T):g},T};function nW(){return 64}function iW(){return"circle"}function W4(v){var g=Math.sqrt(v/Pe);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var Z4=e.map({circle:W4,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*J4)),T=g*J4;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/uh),T=g*uh/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/uh),T=g*uh/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=Z4.keys();var uh=Math.sqrt(3),J4=Math.tan(30*Mr);ge.transition=function(v){for(var g=Uo||++K4,T=Ey(v),q=[],C,L,z=ch||{time:Date.now(),ease:FU,delay:0,duration:250},P=-1,F=this.length;++P0;)re[--Te].call(v,he);if(ue>=1)return z.event&&z.event.end.call(v,v.__data__,g),--L.count?delete L[q]:delete v[T],1}z||(P=C.time,F=J0(te,0,P),z=L[q]={tween:new x,time:P,timer:F,delay:C.delay,duration:C.duration,ease:C.ease,index:g},C=null,++L.count)}e.svg.axis=function(){var v=e.scale.linear(),g=Q4,T=6,q=6,C=3,L=[10],z=null,P;function F($){$.each(function(){var K=e.select(this),re=this.__chart__||v,te=this.__chart__=v.copy(),ye=z==null?te.ticks?te.ticks.apply(te,L):te.domain():z,Ae=P==null?te.tickFormat?te.tickFormat.apply(te,L):Y:P,ae=K.selectAll(".tick").data(ye,te),ue=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",se),he=e.transition(ae.exit()).style("opacity",se).remove(),Te=e.transition(ae.order()).style("opacity",1),Me=Math.max(T,0)+C,pe,Ye=ah(te),nr=K.selectAll(".domain").data([0]),fr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));ue.append("line"),ue.append("text");var lr=ue.select("line"),dr=Te.select("line"),pr=ae.select("text").text(Ae),Lr=ue.select("text"),mr=Te.select("text"),Ar=g==="top"||g==="left"?-1:1,Qr,Nt,tt,rr;if(g==="bottom"||g==="top"?(pe=sW,Qr="x",tt="y",Nt="x2",rr="y2",pr.attr("dy",Ar<0?"0em":".71em").style("text-anchor","middle"),fr.attr("d","M"+Ye[0]+","+Ar*q+"V0H"+Ye[1]+"V"+Ar*q)):(pe=uW,Qr="y",tt="x",Nt="y2",rr="x2",pr.attr("dy",".32em").style("text-anchor",Ar<0?"end":"start"),fr.attr("d","M"+Ar*q+","+Ye[0]+"H0V"+Ye[1]+"H"+Ar*q)),lr.attr(rr,Ar*T),Lr.attr(tt,Ar*Me),dr.attr(Nt,0).attr(rr,Ar*T),mr.attr(Qr,0).attr(tt,Ar*Me),te.rangeBand){var Dr=te,Er=Dr.rangeBand()/2;re=te=function(jr){return Dr(jr)+Er}}else re.rangeBand?re=te:he.call(pe,te,re);ue.call(pe,re,te),Te.call(pe,te,te)})}return F.scale=function($){return arguments.length?(v=$,F):v},F.orient=function($){return arguments.length?(g=$ in oW?$+"":Q4,F):g},F.ticks=function(){return arguments.length?(L=t(arguments),F):L},F.tickValues=function($){return arguments.length?(z=$,F):z},F.tickFormat=function($){return arguments.length?(P=$,F):P},F.tickSize=function($){var K=arguments.length;return K?(T=+$,q=+arguments[K-1],F):T},F.innerTickSize=function($){return arguments.length?(T=+$,F):T},F.outerTickSize=function($){return arguments.length?(q=+$,F):q},F.tickPadding=function($){return arguments.length?(C=+$,F):C},F.tickSubdivide=function(){return arguments.length&&F},F};var Q4="bottom",oW={top:1,right:1,bottom:1,left:1};function sW(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate("+(isFinite(C)?C:T(q))+",0)"})}function uW(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate(0,"+(isFinite(C)?C:T(q))+")"})}e.svg.brush=function(){var v=fe(K,"brushstart","brush","brushend"),g=null,T=null,q=[0,0],C=[0,0],L,z,P=!0,F=!0,$=Py[0];function K(ae){ae.each(function(){var ue=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ae).on("touchstart.brush",Ae),he=ue.selectAll(".background").data([0]);he.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ue.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Te=ue.selectAll(".resize").data($,Y);Te.exit().remove(),Te.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return fW[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Te.style("display",K.empty()?"none":null);var Me=e.transition(ue),pe=e.transition(he),Ye;g&&(Ye=ah(g),pe.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),te(Me)),T&&(Ye=ah(T),pe.attr("y",Ye[0]).attr("height",Ye[1]-Ye[0]),ye(Me)),re(Me)})}K.event=function(ae){ae.each(function(){var ue=v.of(this,arguments),he={x:q,y:C,i:L,j:z},Te=this.__chart__||he;this.__chart__=he,Uo?e.select(this).transition().each("start.brush",function(){L=Te.i,z=Te.j,q=Te.x,C=Te.y,ue({type:"brushstart"})}).tween("brush:brush",function(){var Me=rh(q,he.x),pe=rh(C,he.y);return L=z=null,function(Ye){q=he.x=Me(Ye),C=he.y=pe(Ye),ue({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=he.i,z=he.j,ue({type:"brush",mode:"resize"}),ue({type:"brushend"})}):(ue({type:"brushstart"}),ue({type:"brush",mode:"resize"}),ue({type:"brushend"}))})};function re(ae){ae.selectAll(".resize").attr("transform",function(ue){return"translate("+q[+/e$/.test(ue)]+","+C[+/^s/.test(ue)]+")"})}function te(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function ye(ae){ae.select(".extent").attr("y",C[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function Ae(){var ae=this,ue=e.select(e.event.target),he=v.of(ae,arguments),Te=e.select(ae),Me=ue.datum(),pe=!/^(n|s)$/.test(Me)&&g,Ye=!/^(e|w)$/.test(Me)&&T,nr=ue.classed("extent"),fr=ar(ae),lr,dr=e.mouse(ae),pr,Lr=e.select(i(ae)).on("keydown.brush",Qr).on("keyup.brush",Nt);if(e.event.changedTouches?Lr.on("touchmove.brush",tt).on("touchend.brush",Dr):Lr.on("mousemove.brush",tt).on("mouseup.brush",Dr),Te.interrupt().selectAll("*").interrupt(),nr)dr[0]=q[0]-dr[0],dr[1]=C[0]-dr[1];else if(Me){var mr=+/w$/.test(Me),Ar=+/^n/.test(Me);pr=[q[1-mr]-dr[0],C[1-Ar]-dr[1]],dr[0]=q[mr],dr[1]=C[Ar]}else e.event.altKey&&(lr=dr.slice());Te.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ue.style("cursor")),he({type:"brushstart"}),tt();function Qr(){e.event.keyCode==32&&(nr||(lr=null,dr[0]-=q[1],dr[1]-=C[1],nr=2),j())}function Nt(){e.event.keyCode==32&&nr==2&&(dr[0]+=q[1],dr[1]+=C[1],nr=0,j())}function tt(){var Er=e.mouse(ae),jr=!1;pr&&(Er[0]+=pr[0],Er[1]+=pr[1]),nr||(e.event.altKey?(lr||(lr=[(q[0]+q[1])/2,(C[0]+C[1])/2]),dr[0]=q[+(Er[0]{(function(e,r){typeof xh=="object"&&typeof o6!="undefined"?r(xh):(e=e||self,r(e.d3=e.d3||{}))})(xh,function(e){"use strict";var r=new Date,t=new Date;function a(ie,we,$e,hr){function Ne(ke){return ie(ke=arguments.length===0?new Date:new Date(+ke)),ke}return Ne.floor=function(ke){return ie(ke=new Date(+ke)),ke},Ne.ceil=function(ke){return ie(ke=new Date(ke-1)),we(ke,1),ie(ke),ke},Ne.round=function(ke){var qe=Ne(ke),Be=Ne.ceil(ke);return ke-qe0))return Ze;do Ze.push(Ve=new Date(+ke)),we(ke,Be),ie(ke);while(Ve=qe)for(;ie(qe),!ke(qe);)qe.setTime(qe-1)},function(qe,Be){if(qe>=qe)if(Be<0)for(;++Be<=0;)for(;we(qe,-1),!ke(qe););else for(;--Be>=0;)for(;we(qe,1),!ke(qe););})},$e&&(Ne.count=function(ke,qe){return r.setTime(+ke),t.setTime(+qe),ie(r),ie(t),Math.floor($e(r,t))},Ne.every=function(ke){return ke=Math.floor(ke),!isFinite(ke)||!(ke>0)?null:ke>1?Ne.filter(hr?function(qe){return hr(qe)%ke===0}:function(qe){return Ne.count(0,qe)%ke===0}):Ne}),Ne}var n=a(function(){},function(ie,we){ie.setTime(+ie+we)},function(ie,we){return we-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(we){we.setTime(Math.floor(we/ie)*ie)},function(we,$e){we.setTime(+we+$e*ie)},function(we,$e){return($e-we)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,we){ie.setTime(+ie+we*l)},function(ie,we){return(we-ie)/l},function(ie){return ie.getUTCSeconds()}),h=c.range,d=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,we){ie.setTime(+ie+we*o)},function(ie,we){return(we-ie)/o},function(ie){return ie.getMinutes()}),p=d.range,m=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,we){ie.setTime(+ie+we*s)},function(ie,we){return(we-ie)/s},function(ie){return ie.getHours()}),y=m.range,b=a(function(ie){ie.setHours(0,0,0,0)},function(ie,we){ie.setDate(ie.getDate()+we)},function(ie,we){return(we-ie-(we.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),_=b.range;function w(ie){return a(function(we){we.setDate(we.getDate()-(we.getDay()+7-ie)%7),we.setHours(0,0,0,0)},function(we,$e){we.setDate(we.getDate()+$e*7)},function(we,$e){return($e-we-($e.getTimezoneOffset()-we.getTimezoneOffset())*o)/f})}var x=w(0),A=w(1),k=w(2),M=w(3),S=w(4),D=w(5),E=w(6),R=x.range,N=A.range,H=k.range,I=M.range,Y=S.range,U=D.range,V=E.range,G=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,we){ie.setMonth(ie.getMonth()+we)},function(ie,we){return we.getMonth()-ie.getMonth()+(we.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),B=G.range,J=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,we){ie.setFullYear(ie.getFullYear()+we)},function(ie,we){return we.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});J.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(we){we.setFullYear(Math.floor(we.getFullYear()/ie)*ie),we.setMonth(0,1),we.setHours(0,0,0,0)},function(we,$e){we.setFullYear(we.getFullYear()+$e*ie)})};var X=J.range,j=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,we){ie.setTime(+ie+we*o)},function(ie,we){return(we-ie)/o},function(ie){return ie.getUTCMinutes()}),le=j.range,fe=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,we){ie.setTime(+ie+we*s)},function(ie,we){return(we-ie)/s},function(ie){return ie.getUTCHours()}),ve=fe.range,ee=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,we){ie.setUTCDate(ie.getUTCDate()+we)},function(ie,we){return(we-ie)/u},function(ie){return ie.getUTCDate()-1}),Ce=ee.range;function ce(ie){return a(function(we){we.setUTCDate(we.getUTCDate()-(we.getUTCDay()+7-ie)%7),we.setUTCHours(0,0,0,0)},function(we,$e){we.setUTCDate(we.getUTCDate()+$e*7)},function(we,$e){return($e-we)/f})}var be=ce(0),_e=ce(1),ge=ce(2),W=ce(3),Q=ce(4),Z=ce(5),oe=ce(6),me=be.range,xe=_e.range,Re=ge.range,Ee=W.range,Se=Q.range,Ge=Z.range,Ie=oe.range,We=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,we){ie.setUTCMonth(ie.getUTCMonth()+we)},function(ie,we){return we.getUTCMonth()-ie.getUTCMonth()+(we.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),De=We.range,He=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,we){ie.setUTCFullYear(ie.getUTCFullYear()+we)},function(ie,we){return we.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});He.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(we){we.setUTCFullYear(Math.floor(we.getUTCFullYear()/ie)*ie),we.setUTCMonth(0,1),we.setUTCHours(0,0,0,0)},function(we,$e){we.setUTCFullYear(we.getUTCFullYear()+$e*ie)})};var Xe=He.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=U,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=N,e.timeMonth=G,e.timeMonths=B,e.timeSaturday=E,e.timeSaturdays=V,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=x,e.timeSundays=R,e.timeThursday=S,e.timeThursdays=Y,e.timeTuesday=k,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=I,e.timeWeek=x,e.timeWeeks=R,e.timeYear=J,e.timeYears=X,e.utcDay=ee,e.utcDays=Ce,e.utcFriday=Z,e.utcFridays=Ge,e.utcHour=fe,e.utcHours=ve,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=j,e.utcMinutes=le,e.utcMonday=_e,e.utcMondays=xe,e.utcMonth=We,e.utcMonths=De,e.utcSaturday=oe,e.utcSaturdays=Ie,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=me,e.utcThursday=Q,e.utcThursdays=Se,e.utcTuesday=ge,e.utcTuesdays=Re,e.utcWednesday=W,e.utcWednesdays=Ee,e.utcWeek=be,e.utcWeeks=me,e.utcYear=He,e.utcYears=Xe,Object.defineProperty(e,"__esModule",{value:!0})})});var Tu=O((bh,s6)=>{(function(e,r){typeof bh=="object"&&typeof s6!="undefined"?r(bh,Ry()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(bh,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var se=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return se.setFullYear(ne.y),se}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var se=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return se.setUTCFullYear(ne.y),se}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,se,Le){return{y:ne,m:se,d:Le,H:0,M:0,S:0,L:0}}function i(ne){var se=ne.dateTime,Le=ne.date,Pe=ne.time,Qe=ne.periods,cr=ne.days,sr=ne.shortDays,Mr=ne.months,Br=ne.shortMonths,$r=h(Qe),ft=d(Qe),kt=h(cr),wt=d(cr),Jt=h(sr),Vt=d(sr),Ja=h(Mr),ba=d(Mr),ca=h(Br),$a=d(Br),va={a:Ka,A:Oo,b:Il,B:Y0,c:null,d:G,e:G,f:le,H:B,I:J,j:X,L:j,m:fe,M:ve,p:V0,q:vc,Q:qe,s:Be,S:ee,u:Ce,U:ce,V:be,w:_e,W:ge,x:null,X:null,y:W,Y:Q,Z,"%":ke},ha={a:hc,A:dc,b:Ia,B:G0,c:null,d:oe,e:oe,f:Se,H:me,I:xe,j:Re,L:Ee,m:Ge,M:Ie,p:du,q:pu,Q:qe,s:Be,S:We,u:De,U:He,V:Xe,w:ie,W:we,x:null,X:null,y:$e,Y:hr,Z:Ne,"%":ke},vr={a:pa,A:nt,b:an,B:ui,c:ea,d:S,e:S,f:I,H:E,I:E,j:D,L:H,m:M,M:R,p:da,q:k,Q:U,s:V,S:N,u:m,U:y,V:b,w:p,W:_,x:mt,X:Gt,y:x,Y:w,Z:A,"%":Y};va.x=ct(Le,va),va.X=ct(Pe,va),va.c=ct(se,va),ha.x=ct(Le,ha),ha.X=ct(Pe,ha),ha.c=ct(se,ha);function ct(yr,Xr){return function(et){var or=[],_a=-1,vt=0,wa=yr.length,Nr,fi,Yo;for(et instanceof Date||(et=new Date(+et));++_a53)return null;"w"in or||(or.w=1),"Z"in or?(vt=a(n(or.y,0,1)),wa=vt.getUTCDay(),vt=wa>4||wa===0?r.utcMonday.ceil(vt):r.utcMonday(vt),vt=r.utcDay.offset(vt,(or.V-1)*7),or.y=vt.getUTCFullYear(),or.m=vt.getUTCMonth(),or.d=vt.getUTCDate()+(or.w+6)%7):(vt=t(n(or.y,0,1)),wa=vt.getDay(),vt=wa>4||wa===0?r.timeMonday.ceil(vt):r.timeMonday(vt),vt=r.timeDay.offset(vt,(or.V-1)*7),or.y=vt.getFullYear(),or.m=vt.getMonth(),or.d=vt.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),wa="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(wa+5)%7:or.w+or.U*7-(wa+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function lt(yr,Xr,et,or){for(var _a=0,vt=Xr.length,wa=et.length,Nr,fi;_a=wa)return-1;if(Nr=Xr.charCodeAt(_a++),Nr===37){if(Nr=Xr.charAt(_a++),fi=vr[Nr in l?Xr.charAt(_a++):Nr],!fi||(or=fi(yr,et,or))<0)return-1}else if(Nr!=et.charCodeAt(or++))return-1}return or}function da(yr,Xr,et){var or=$r.exec(Xr.slice(et));return or?(yr.p=ft[or[0].toLowerCase()],et+or[0].length):-1}function pa(yr,Xr,et){var or=Jt.exec(Xr.slice(et));return or?(yr.w=Vt[or[0].toLowerCase()],et+or[0].length):-1}function nt(yr,Xr,et){var or=kt.exec(Xr.slice(et));return or?(yr.w=wt[or[0].toLowerCase()],et+or[0].length):-1}function an(yr,Xr,et){var or=ca.exec(Xr.slice(et));return or?(yr.m=$a[or[0].toLowerCase()],et+or[0].length):-1}function ui(yr,Xr,et){var or=Ja.exec(Xr.slice(et));return or?(yr.m=ba[or[0].toLowerCase()],et+or[0].length):-1}function ea(yr,Xr,et){return lt(yr,se,Xr,et)}function mt(yr,Xr,et){return lt(yr,Le,Xr,et)}function Gt(yr,Xr,et){return lt(yr,Pe,Xr,et)}function Ka(yr){return sr[yr.getDay()]}function Oo(yr){return cr[yr.getDay()]}function Il(yr){return Br[yr.getMonth()]}function Y0(yr){return Mr[yr.getMonth()]}function V0(yr){return Qe[+(yr.getHours()>=12)]}function vc(yr){return 1+~~(yr.getMonth()/3)}function hc(yr){return sr[yr.getUTCDay()]}function dc(yr){return cr[yr.getUTCDay()]}function Ia(yr){return Br[yr.getUTCMonth()]}function G0(yr){return Mr[yr.getUTCMonth()]}function du(yr){return Qe[+(yr.getUTCHours()>=12)]}function pu(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Xr=ct(yr+="",va);return Xr.toString=function(){return yr},Xr},parse:function(yr){var Xr=Kr(yr+="",!1);return Xr.toString=function(){return yr},Xr},utcFormat:function(yr){var Xr=ct(yr+="",ha);return Xr.toString=function(){return yr},Xr},utcParse:function(yr){var Xr=Kr(yr+="",!0);return Xr.toString=function(){return yr},Xr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,se,Le){var Pe=ne<0?"-":"",Qe=(Pe?-ne:ne)+"",cr=Qe.length;return Pe+(cr68?1900:2e3),Le+Pe[0].length):-1}function A(ne,se,Le){var Pe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(se.slice(Le,Le+6));return Pe?(ne.Z=Pe[1]?0:-(Pe[2]+(Pe[3]||"00")),Le+Pe[0].length):-1}function k(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+1));return Pe?(ne.q=Pe[0]*3-3,Le+Pe[0].length):-1}function M(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.m=Pe[0]-1,Le+Pe[0].length):-1}function S(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.d=+Pe[0],Le+Pe[0].length):-1}function D(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+3));return Pe?(ne.m=0,ne.d=+Pe[0],Le+Pe[0].length):-1}function E(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.H=+Pe[0],Le+Pe[0].length):-1}function R(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.M=+Pe[0],Le+Pe[0].length):-1}function N(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.S=+Pe[0],Le+Pe[0].length):-1}function H(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+3));return Pe?(ne.L=+Pe[0],Le+Pe[0].length):-1}function I(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+6));return Pe?(ne.L=Math.floor(Pe[0]/1e3),Le+Pe[0].length):-1}function Y(ne,se,Le){var Pe=s.exec(se.slice(Le,Le+1));return Pe?Le+Pe[0].length:-1}function U(ne,se,Le){var Pe=o.exec(se.slice(Le));return Pe?(ne.Q=+Pe[0],Le+Pe[0].length):-1}function V(ne,se,Le){var Pe=o.exec(se.slice(Le));return Pe?(ne.s=+Pe[0],Le+Pe[0].length):-1}function G(ne,se){return f(ne.getDate(),se,2)}function B(ne,se){return f(ne.getHours(),se,2)}function J(ne,se){return f(ne.getHours()%12||12,se,2)}function X(ne,se){return f(1+r.timeDay.count(r.timeYear(ne),ne),se,3)}function j(ne,se){return f(ne.getMilliseconds(),se,3)}function le(ne,se){return j(ne,se)+"000"}function fe(ne,se){return f(ne.getMonth()+1,se,2)}function ve(ne,se){return f(ne.getMinutes(),se,2)}function ee(ne,se){return f(ne.getSeconds(),se,2)}function Ce(ne){var se=ne.getDay();return se===0?7:se}function ce(ne,se){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),se,2)}function be(ne,se){var Le=ne.getDay();return ne=Le>=4||Le===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),se,2)}function _e(ne){return ne.getDay()}function ge(ne,se){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),se,2)}function W(ne,se){return f(ne.getFullYear()%100,se,2)}function Q(ne,se){return f(ne.getFullYear()%1e4,se,4)}function Z(ne){var se=ne.getTimezoneOffset();return(se>0?"-":(se*=-1,"+"))+f(se/60|0,"0",2)+f(se%60,"0",2)}function oe(ne,se){return f(ne.getUTCDate(),se,2)}function me(ne,se){return f(ne.getUTCHours(),se,2)}function xe(ne,se){return f(ne.getUTCHours()%12||12,se,2)}function Re(ne,se){return f(1+r.utcDay.count(r.utcYear(ne),ne),se,3)}function Ee(ne,se){return f(ne.getUTCMilliseconds(),se,3)}function Se(ne,se){return Ee(ne,se)+"000"}function Ge(ne,se){return f(ne.getUTCMonth()+1,se,2)}function Ie(ne,se){return f(ne.getUTCMinutes(),se,2)}function We(ne,se){return f(ne.getUTCSeconds(),se,2)}function De(ne){var se=ne.getUTCDay();return se===0?7:se}function He(ne,se){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),se,2)}function Xe(ne,se){var Le=ne.getUTCDay();return ne=Le>=4||Le===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),se,2)}function ie(ne){return ne.getUTCDay()}function we(ne,se){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),se,2)}function $e(ne,se){return f(ne.getUTCFullYear()%100,se,2)}function hr(ne,se){return f(ne.getUTCFullYear()%1e4,se,4)}function Ne(){return"+0000"}function ke(){return"%"}function qe(ne){return+ne}function Be(ne){return Math.floor(+ne/1e3)}var Ze;Ve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ve(ne){return Ze=i(ne),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var Ue="%Y-%m-%dT%H:%M:%S.%LZ";function ir(ne){return ne.toISOString()}var ar=Date.prototype.toISOString?ir:e.utcFormat(Ue);function er(ne){var se=new Date(ne);return isNaN(se)?null:se}var Fe=+new Date("2000-01-01T00:00:00.000Z")?er:e.utcParse(Ue);e.isoFormat=ar,e.isoParse=Fe,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var zy=O((_h,u6)=>{(function(e,r){typeof _h=="object"&&typeof u6!="undefined"?r(_h):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(_h,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,S){if((D=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var D,E=M.slice(0,D);return[E.length>1?E[0]+E.slice(2):E,+M.slice(D+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,S){return function(D,E){for(var R=D.length,N=[],H=0,I=M[0],Y=0;R>0&&I>0&&(Y+I+1>E&&(I=Math.max(1,E-Y)),N.push(D.substring(R-=I,R+I)),!((Y+=I+1)>E));)I=M[H=(H+1)%M.length];return N.reverse().join(S)}}function i(M){return function(S){return S.replace(/[0-9]/g,function(D){return M[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(M){if(!(S=l.exec(M)))throw new Error("invalid format: "+M);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}o.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var S=M.length,D=1,E=-1,R;D0&&(E=0);break}return E>0?M.slice(0,E)+M.slice(R+1):M}var f;function c(M,S){var D=t(M,S);if(!D)return M+"";var E=D[0],R=D[1],N=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,H=E.length;return N===H?E:N>H?E+new Array(N-H+1).join("0"):N>0?E.slice(0,N)+"."+E.slice(N):"0."+new Array(1-N).join("0")+t(M,Math.max(0,S+N-1))[0]}function h(M,S){var D=t(M,S);if(!D)return M+"";var E=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+E:E.length>R+1?E.slice(0,R+1)+"."+E.slice(R+1):E+new Array(R-E.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return h(M*100,S)},r:h,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var S=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),D=M.currency===void 0?"":M.currency[0]+"",E=M.currency===void 0?"":M.currency[1]+"",R=M.decimal===void 0?".":M.decimal+"",N=M.numerals===void 0?p:i(m.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",I=M.minus===void 0?"-":M.minus+"",Y=M.nan===void 0?"NaN":M.nan+"";function U(G){G=o(G);var B=G.fill,J=G.align,X=G.sign,j=G.symbol,le=G.zero,fe=G.width,ve=G.comma,ee=G.precision,Ce=G.trim,ce=G.type;ce==="n"?(ve=!0,ce="g"):d[ce]||(ee===void 0&&(ee=12),Ce=!0,ce="g"),(le||B==="0"&&J==="=")&&(le=!0,B="0",J="=");var be=j==="$"?D:j==="#"&&/[boxX]/.test(ce)?"0"+ce.toLowerCase():"",_e=j==="$"?E:/[%p]/.test(ce)?H:"",ge=d[ce],W=/[defgprs%]/.test(ce);ee=ee===void 0?6:/[gprs]/.test(ce)?Math.max(1,Math.min(21,ee)):Math.max(0,Math.min(20,ee));function Q(Z){var oe=be,me=_e,xe,Re,Ee;if(ce==="c")me=ge(Z)+me,Z="";else{Z=+Z;var Se=Z<0||1/Z<0;if(Z=isNaN(Z)?Y:ge(Math.abs(Z),ee),Ce&&(Z=u(Z)),Se&&+Z==0&&X!=="+"&&(Se=!1),oe=(Se?X==="("?X:I:X==="-"||X==="("?"":X)+oe,me=(ce==="s"?y[8+f/3]:"")+me+(Se&&X==="("?")":""),W){for(xe=-1,Re=Z.length;++xeEe||Ee>57){me=(Ee===46?R+Z.slice(xe+1):Z.slice(xe))+me,Z=Z.slice(0,xe);break}}}ve&&!le&&(Z=S(Z,1/0));var Ge=oe.length+Z.length+me.length,Ie=Ge>1)+oe+Z+me+Ie.slice(Ge);break;default:Z=Ie+oe+Z+me;break}return N(Z)}return Q.toString=function(){return G+""},Q}function V(G,B){var J=U((G=o(G),G.type="f",G)),X=Math.max(-8,Math.min(8,Math.floor(a(B)/3)))*3,j=Math.pow(10,-X),le=y[8+X/3];return function(fe){return J(j*fe)+le}}return{format:U,formatPrefix:V}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(M){return _=b(M),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(M){return Math.max(0,-a(Math.abs(M)))}function A(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(M)))}function k(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,a(S)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=o,e.precisionFixed=x,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var c6=O((bme,f6)=>{"use strict";f6.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var zr=O((_me,v6)=>{"use strict";var _W=c6();v6.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&_W(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Tt=O((wme,h6)=>{"use strict";h6.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Ny=O((wh,d6)=>{(function(e,r){typeof wh=="object"&&typeof d6!="undefined"?r(wh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(wh,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,h,d,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var m=new ArrayBuffer(o),y=new Uint8Array(m);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Ol=O((Tme,p6)=>{"use strict";p6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var on=O(hi=>{"use strict";var wW=Ny().decode,TW=Ol(),Fy=Array.isArray,AW=ArrayBuffer,MW=DataView;function m6(e){return AW.isView(e)&&!(e instanceof MW)}hi.isTypedArray=m6;function Th(e){return Fy(e)||m6(e)}hi.isArrayOrTypedArray=Th;function kW(e){return!Th(e[0])}hi.isArray1D=kW;hi.ensureArray=function(e,r){return Fy(e)||(e=[]),e.length=r,e};var ma={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ma.uint8c=ma.u1c;ma.uint8=ma.u1;ma.int8=ma.i1;ma.uint16=ma.u2;ma.int16=ma.i2;ma.uint32=ma.u4;ma.int32=ma.i4;ma.float32=ma.f4;ma.float64=ma.f8;function Iy(e){return e.constructor===ArrayBuffer}hi.isArrayBuffer=Iy;hi.decodeTypedArraySpec=function(e){var r=[],t=qW(e),a=t.dtype,n=ma[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Iy(l)||(l=wW(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],h=i*c,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var g6=zr(),By=on().isArrayOrTypedArray;w6.exports=function(r,t){if(g6(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var Au=Ah(),EW=/^\w*$/,PW=0,T6=1,Mh=2,A6=3,Jo=4;M6.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=Au(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|Mh,c.set(h,null);if(f){for(i=d;i{"use strict";var RW=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,zW=/^[^\.\[\]]+$/;q6.exports=function(e,r){for(;r;){var t=e.match(RW);if(t)e=t[1];else if(e.match(zW))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var kh=O((Cme,S6)=>{"use strict";var NW=zr();S6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return NW(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var E6=O((Sme,D6)=>{"use strict";var L6=on().isArrayOrTypedArray,Ac=Ol();D6.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(L6(n)&&L6(i)&&Ac(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function FW(e,r){var t=e%r;return t<0?t+r:t}function IW(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}P6.exports={mod:FW,modHalf:IW}});var In=O((Dme,qh)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(W,Q){if(W=W||"",Q=Q||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,Q);var Z=u(W);this._originalInput=W,this._r=Z.r,this._g=Z.g,this._b=Z.b,this._a=Z.a,this._roundA=n(100*this._a)/100,this._format=Q.format||Z.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=Z.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),Q,Z,oe,me,xe,Re;return Q=W.r/255,Z=W.g/255,oe=W.b/255,Q<=.03928?me=Q/12.92:me=e.pow((Q+.055)/1.055,2.4),Z<=.03928?xe=Z/12.92:xe=e.pow((Z+.055)/1.055,2.4),oe<=.03928?Re=oe/12.92:Re=e.pow((oe+.055)/1.055,2.4),.2126*me+.7152*xe+.0722*Re},setAlpha:function(W){return this._a=G(W),this._roundA=n(100*this._a)/100,this},toHsv:function(){var W=d(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=d(this._r,this._g,this._b),Q=n(W.h*360),Z=n(W.s*100),oe=n(W.v*100);return this._a==1?"hsv("+Q+", "+Z+"%, "+oe+"%)":"hsva("+Q+", "+Z+"%, "+oe+"%, "+this._roundA+")"},toHsl:function(){var W=c(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=c(this._r,this._g,this._b),Q=n(W.h*360),Z=n(W.s*100),oe=n(W.l*100);return this._a==1?"hsl("+Q+", "+Z+"%, "+oe+"%)":"hsla("+Q+", "+Z+"%, "+oe+"%, "+this._roundA+")"},toHex:function(W){return m(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return y(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(B(this._r,255)*100)+"%",g:n(B(this._g,255)*100)+"%",b:n(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(B(this._r,255)*100)+"%, "+n(B(this._g,255)*100)+"%, "+n(B(this._b,255)*100)+"%)":"rgba("+n(B(this._r,255)*100)+"%, "+n(B(this._g,255)*100)+"%, "+n(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var Q="#"+b(this._r,this._g,this._b,this._a),Z=Q,oe=this._gradientType?"GradientType = 1, ":"";if(W){var me=s(W);Z="#"+b(me._r,me._g,me._b,me._a)}return"progid:DXImageTransform.Microsoft.gradient("+oe+"startColorstr="+Q+",endColorstr="+Z+")"},toString:function(W){var Q=!!W;W=W||this._format;var Z=!1,oe=this._a<1&&this._a>=0,me=!Q&&oe&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return me?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(Z=this.toRgbString()),W==="prgb"&&(Z=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(Z=this.toHexString()),W==="hex3"&&(Z=this.toHexString(!0)),W==="hex4"&&(Z=this.toHex8String(!0)),W==="hex8"&&(Z=this.toHex8String()),W==="name"&&(Z=this.toName()),W==="hsl"&&(Z=this.toHslString()),W==="hsv"&&(Z=this.toHsvString()),Z||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(W,Q){var Z=W.apply(null,[this].concat([].slice.call(Q)));return this._r=Z._r,this._g=Z._g,this._b=Z._b,this.setAlpha(Z._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(W,Q){return W.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},s.fromRatio=function(W,Q){if(typeof W=="object"){var Z={};for(var oe in W)W.hasOwnProperty(oe)&&(oe==="a"?Z[oe]=W[oe]:Z[oe]=ve(W[oe]));W=Z}return s(W,Q)};function u(W){var Q={r:0,g:0,b:0},Z=1,oe=null,me=null,xe=null,Re=!1,Ee=!1;return typeof W=="string"&&(W=_e(W)),typeof W=="object"&&(be(W.r)&&be(W.g)&&be(W.b)?(Q=f(W.r,W.g,W.b),Re=!0,Ee=String(W.r).substr(-1)==="%"?"prgb":"rgb"):be(W.h)&&be(W.s)&&be(W.v)?(oe=ve(W.s),me=ve(W.v),Q=p(W.h,oe,me),Re=!0,Ee="hsv"):be(W.h)&&be(W.s)&&be(W.l)&&(oe=ve(W.s),xe=ve(W.l),Q=h(W.h,oe,xe),Re=!0,Ee="hsl"),W.hasOwnProperty("a")&&(Z=W.a)),Z=G(Z),{ok:Re,format:W.format||Ee,r:i(255,l(Q.r,0)),g:i(255,l(Q.g,0)),b:i(255,l(Q.b,0)),a:Z}}function f(W,Q,Z){return{r:B(W,255)*255,g:B(Q,255)*255,b:B(Z,255)*255}}function c(W,Q,Z){W=B(W,255),Q=B(Q,255),Z=B(Z,255);var oe=l(W,Q,Z),me=i(W,Q,Z),xe,Re,Ee=(oe+me)/2;if(oe==me)xe=Re=0;else{var Se=oe-me;switch(Re=Ee>.5?Se/(2-oe-me):Se/(oe+me),oe){case W:xe=(Q-Z)/Se+(Q1&&(We-=1),We<1/6?Ge+(Ie-Ge)*6*We:We<1/2?Ie:We<2/3?Ge+(Ie-Ge)*(2/3-We)*6:Ge}if(Q===0)oe=me=xe=Z;else{var Ee=Z<.5?Z*(1+Q):Z+Q-Z*Q,Se=2*Z-Ee;oe=Re(Se,Ee,W+1/3),me=Re(Se,Ee,W),xe=Re(Se,Ee,W-1/3)}return{r:oe*255,g:me*255,b:xe*255}}function d(W,Q,Z){W=B(W,255),Q=B(Q,255),Z=B(Z,255);var oe=l(W,Q,Z),me=i(W,Q,Z),xe,Re,Ee=oe,Se=oe-me;if(Re=oe===0?0:Se/oe,oe==me)xe=0;else{switch(oe){case W:xe=(Q-Z)/Se+(Q>1)+720)%360;--Q;)oe.h=(oe.h+me)%360,xe.push(s(oe));return xe}function I(W,Q){Q=Q||6;for(var Z=s(W).toHsv(),oe=Z.h,me=Z.s,xe=Z.v,Re=[],Ee=1/Q;Q--;)Re.push(s({h:oe,s:me,v:xe})),xe=(xe+Ee)%1;return Re}s.mix=function(W,Q,Z){Z=Z===0?0:Z||50;var oe=s(W).toRgb(),me=s(Q).toRgb(),xe=Z/100,Re={r:(me.r-oe.r)*xe+oe.r,g:(me.g-oe.g)*xe+oe.g,b:(me.b-oe.b)*xe+oe.b,a:(me.a-oe.a)*xe+oe.a};return s(Re)},s.readability=function(W,Q){var Z=s(W),oe=s(Q);return(e.max(Z.getLuminance(),oe.getLuminance())+.05)/(e.min(Z.getLuminance(),oe.getLuminance())+.05)},s.isReadable=function(W,Q,Z){var oe=s.readability(W,Q),me,xe;switch(xe=!1,me=ge(Z),me.level+me.size){case"AAsmall":case"AAAlarge":xe=oe>=4.5;break;case"AAlarge":xe=oe>=3;break;case"AAAsmall":xe=oe>=7;break}return xe},s.mostReadable=function(W,Q,Z){var oe=null,me=0,xe,Re,Ee,Se;Z=Z||{},Re=Z.includeFallbackColors,Ee=Z.level,Se=Z.size;for(var Ge=0;Geme&&(me=xe,oe=s(Q[Ge]));return s.isReadable(W,oe,{level:Ee,size:Se})||!Re?oe:(Z.includeFallbackColors=!1,s.mostReadable(W,["#fff","#000"],Z))};var Y=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},U=s.hexNames=V(Y);function V(W){var Q={};for(var Z in W)W.hasOwnProperty(Z)&&(Q[W[Z]]=Z);return Q}function G(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function B(W,Q){j(W)&&(W="100%");var Z=le(W);return W=i(Q,l(0,parseFloat(W))),Z&&(W=parseInt(W*Q,10)/100),e.abs(W-Q)<1e-6?1:W%Q/parseFloat(Q)}function J(W){return i(1,l(0,W))}function X(W){return parseInt(W,16)}function j(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function le(W){return typeof W=="string"&&W.indexOf("%")!=-1}function fe(W){return W.length==1?"0"+W:""+W}function ve(W){return W<=1&&(W=W*100+"%"),W}function ee(W){return e.round(parseFloat(W)*255).toString(16)}function Ce(W){return X(W)/255}var ce=function(){var W="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",Z="(?:"+Q+")|(?:"+W+")",oe="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",me="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?";return{CSS_UNIT:new RegExp(Z),rgb:new RegExp("rgb"+oe),rgba:new RegExp("rgba"+me),hsl:new RegExp("hsl"+oe),hsla:new RegExp("hsla"+me),hsv:new RegExp("hsv"+oe),hsva:new RegExp("hsva"+me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(W){return!!ce.CSS_UNIT.exec(W)}function _e(W){W=W.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(Y[W])W=Y[W],Q=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Z;return(Z=ce.rgb.exec(W))?{r:Z[1],g:Z[2],b:Z[3]}:(Z=ce.rgba.exec(W))?{r:Z[1],g:Z[2],b:Z[3],a:Z[4]}:(Z=ce.hsl.exec(W))?{h:Z[1],s:Z[2],l:Z[3]}:(Z=ce.hsla.exec(W))?{h:Z[1],s:Z[2],l:Z[3],a:Z[4]}:(Z=ce.hsv.exec(W))?{h:Z[1],s:Z[2],v:Z[3]}:(Z=ce.hsva.exec(W))?{h:Z[1],s:Z[2],v:Z[3],a:Z[4]}:(Z=ce.hex8.exec(W))?{r:X(Z[1]),g:X(Z[2]),b:X(Z[3]),a:Ce(Z[4]),format:Q?"name":"hex8"}:(Z=ce.hex6.exec(W))?{r:X(Z[1]),g:X(Z[2]),b:X(Z[3]),format:Q?"name":"hex"}:(Z=ce.hex4.exec(W))?{r:X(Z[1]+""+Z[1]),g:X(Z[2]+""+Z[2]),b:X(Z[3]+""+Z[3]),a:Ce(Z[4]+""+Z[4]),format:Q?"name":"hex8"}:(Z=ce.hex3.exec(W))?{r:X(Z[1]+""+Z[1]),g:X(Z[2]+""+Z[2]),b:X(Z[3]+""+Z[3]),format:Q?"name":"hex"}:!1}function ge(W){var Q,Z;return W=W||{level:"AA",size:"small"},Q=(W.level||"AA").toUpperCase(),Z=(W.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),Z!=="small"&&Z!=="large"&&(Z="small"),{level:Q,size:Z}}typeof qh!="undefined"&&qh.exports?qh.exports=s:window.tinycolor=s})(Math)});var yt=O(qc=>{"use strict";var R6=Ol(),Mc=Array.isArray;function HW(e,r){var t,a;for(t=0;t{"use strict";z6.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Cc=O((Rme,N6)=>{"use strict";N6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var ku=O((zme,H6)=>{"use strict";var F6=Cc(),I6=ra(),Oy=I6({editType:"none"});Oy.family.dflt=F6.HOVERFONT;Oy.size.dflt=F6.HOVERFONTSIZE;H6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Oy,grouptitlefont:I6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Dc=O((Nme,B6)=>{"use strict";var BW=ra(),Sc=ku().hoverlabel,Lc=yt().extendFlat;B6.exports={hoverlabel:{bgcolor:Lc({},Sc.bgcolor,{arrayOk:!0}),bordercolor:Lc({},Sc.bordercolor,{arrayOk:!0}),font:BW({arrayOk:!0,editType:"none"}),align:Lc({},Sc.align,{arrayOk:!0}),namelength:Lc({},Sc.namelength,{arrayOk:!0}),showarrow:Lc({},Sc.showarrow),editType:"none"}}});var sn=O((Fme,O6)=>{"use strict";var OW=ra(),YW=Dc();O6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:OW({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:YW.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var $o=O((Ime,G6)=>{"use strict";var VW=In(),Ch={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Y6=Ch.RdBu;function GW(e,r){if(r||(r=Y6),!e)return r;function t(){try{e=Ch[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),V6(e)?e:r}function V6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Ko.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ko.defaultLine="#444";Ko.lightLine="#eee";Ko.background="#fff";Ko.borderLine="#BEC8D9";Ko.lightFraction=100*10/11});var br=O((Bme,U6)=>{"use strict";var un=In(),XW=zr(),WW=on().isTypedArray,ta=U6.exports={},Sh=Hn();ta.defaults=Sh.defaults;var ZW=ta.defaultLine=Sh.defaultLine;ta.lightLine=Sh.lightLine;var Vy=ta.background=Sh.background;ta.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ta.rgb=function(e){return ta.tinyRGB(un(e))};ta.opacity=function(e){return e?un(e).getAlpha():0};ta.addOpacity=function(e,r){var t=un(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ta.combine=function(e,r){var t=un(e).toRgb();if(t.a===1)return un(e).toRgbString();var a=un(r||Vy).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return un(i).toRgbString()};ta.interpolate=function(e,r,t){var a=un(e).toRgb(),n=un(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return un(i).toRgbString()};ta.contrast=function(e,r,t){var a=un(e);a.getAlpha()!==1&&(a=un(ta.combine(e,Vy)));var n=a.isDark()?r?a.lighten(r):Vy:t?a.darken(t):ZW;return n.toString()};ta.stroke=function(e,r){var t=un(r);e.style({stroke:ta.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ta.fill=function(e,r){var t=un(r);e.style({fill:ta.tinyRGB(t),"fill-opacity":t.getAlpha()})};ta.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var qu=O((Ome,X6)=>{"use strict";X6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Cu=O(W6=>{"use strict";W6.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var K6=O(fn=>{"use strict";var Gy=zr(),Z6=In(),J6=yt().extendFlat,JW=sn(),$W=$o(),KW=br(),QW=qu().DESELECTDIM,Su=Ah(),$6=Cu().counter,jW=Mu().modHalf,di=on().isArrayOrTypedArray,Yl=on().isTypedArraySpec,Vl=on().decodeTypedArraySpec;fn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(di(e)?e:Yl(e)?Vl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){Yl(e)&&(e=Vl(e)),!Gy(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Yl(e)&&(e=Vl(e)),e%1||!Gy(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Yl(e)&&(e=Vl(e)),Z6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return Z6(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set($W.get(e,t))}},angle:{coerceFunction:function(e,r,t){Yl(e)&&(e=Vl(e)),e==="auto"?r.set("auto"):Gy(e)?r.set(jW(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||$6(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&di(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!$6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var Q6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},j6={};function e7(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),e7(a,r[t]))}}e7(Q6,j6);r7.exports={configAttributes:Q6,dfltConfig:j6}});var Xy=O((Ume,t7)=>{"use strict";var Uy=kr(),eZ=zr(),Ec=[];t7.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||Ec.indexOf(e)!==-1)return;Ec.push(e);var a=1e3;eZ(r)?a=r:r==="long"&&(a=3e3);var n=Uy.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(Ec);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=Ec.indexOf(u);f!==-1&&Ec.splice(f,1),Uy.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=Uy.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),c=s.split(//g),h=0;h{"use strict";var Lu=Qo().dfltConfig,Wy=Xy(),Zy=a7.exports={};Zy.log=function(){var e;if(Lu.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Zy.warn=function(){var e;if(Lu.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Zy.error=function(){var e;if(Lu.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Dh=O((Wme,n7)=>{"use strict";n7.exports=function(){}});var Jy=O((Zme,i7)=>{"use strict";i7.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{l7.exports=rZ;function rZ(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var u7=O(($me,s7)=>{s7.exports=tZ;function tZ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var c7=O((Kme,f7)=>{f7.exports=aZ;function aZ(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var $y=O((Qme,v7)=>{v7.exports=nZ;function nZ(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var d7=O((jme,h7)=>{h7.exports=iZ;function iZ(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var m7=O((eye,p7)=>{p7.exports=lZ;function lZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15],_=t*o-a*l,w=t*s-n*l,x=t*u-i*l,A=a*s-n*o,k=a*u-i*o,M=n*u-i*s,S=f*m-c*p,D=f*y-h*p,E=f*b-d*p,R=c*y-h*m,N=c*b-d*m,H=h*b-d*y,I=_*H-w*N+x*R+A*E-k*D+M*S;return I?(I=1/I,e[0]=(o*H-s*N+u*R)*I,e[1]=(n*N-a*H-i*R)*I,e[2]=(m*M-y*k+b*A)*I,e[3]=(h*k-c*M-d*A)*I,e[4]=(s*E-l*H-u*D)*I,e[5]=(t*H-n*E+i*D)*I,e[6]=(y*x-p*M-b*w)*I,e[7]=(f*M-h*x+d*w)*I,e[8]=(l*N-o*E+u*S)*I,e[9]=(a*E-t*N-i*S)*I,e[10]=(p*k-m*x+b*_)*I,e[11]=(c*x-f*k-d*_)*I,e[12]=(o*D-l*R-s*S)*I,e[13]=(t*R-a*D+n*S)*I,e[14]=(m*w-p*A-y*_)*I,e[15]=(f*A-c*w+h*_)*I,e):null}});var g7=O((rye,y7)=>{y7.exports=oZ;function oZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15];return e[0]=o*(h*b-d*y)-c*(s*b-u*y)+m*(s*d-u*h),e[1]=-(a*(h*b-d*y)-c*(n*b-i*y)+m*(n*d-i*h)),e[2]=a*(s*b-u*y)-o*(n*b-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+c*(n*u-i*s)),e[4]=-(l*(h*b-d*y)-f*(s*b-u*y)+p*(s*d-u*h)),e[5]=t*(h*b-d*y)-f*(n*b-i*y)+p*(n*d-i*h),e[6]=-(t*(s*b-u*y)-l*(n*b-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(c*b-d*m)-f*(o*b-u*m)+p*(o*d-u*c),e[9]=-(t*(c*b-d*m)-f*(a*b-i*m)+p*(a*d-i*c)),e[10]=t*(o*b-u*m)-l*(a*b-i*m)+p*(a*u-i*o),e[11]=-(t*(o*d-u*c)-l*(a*d-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*y-h*m)-f*(o*y-s*m)+p*(o*h-s*c)),e[13]=t*(c*y-h*m)-f*(a*y-n*m)+p*(a*h-n*c),e[14]=-(t*(o*y-s*m)-l*(a*y-n*m)+p*(a*s-n*o)),e[15]=t*(o*h-s*c)-l*(a*h-n*c)+f*(a*s-n*o),e}});var b7=O((tye,x7)=>{x7.exports=sZ;function sZ(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],m=e[14],y=e[15],b=r*l-t*i,_=r*o-a*i,w=r*s-n*i,x=t*o-a*l,A=t*s-n*l,k=a*s-n*o,M=u*p-f*d,S=u*m-c*d,D=u*y-h*d,E=f*m-c*p,R=f*y-h*p,N=c*y-h*m;return b*N-_*R+w*E+x*D-A*S+k*M}});var w7=O((aye,_7)=>{_7.exports=uZ;function uZ(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],h=r[9],d=r[10],p=r[11],m=r[12],y=r[13],b=r[14],_=r[15],w=t[0],x=t[1],A=t[2],k=t[3];return e[0]=w*a+x*o+A*c+k*m,e[1]=w*n+x*s+A*h+k*y,e[2]=w*i+x*u+A*d+k*b,e[3]=w*l+x*f+A*p+k*_,w=t[4],x=t[5],A=t[6],k=t[7],e[4]=w*a+x*o+A*c+k*m,e[5]=w*n+x*s+A*h+k*y,e[6]=w*i+x*u+A*d+k*b,e[7]=w*l+x*f+A*p+k*_,w=t[8],x=t[9],A=t[10],k=t[11],e[8]=w*a+x*o+A*c+k*m,e[9]=w*n+x*s+A*h+k*y,e[10]=w*i+x*u+A*d+k*b,e[11]=w*l+x*f+A*p+k*_,w=t[12],x=t[13],A=t[14],k=t[15],e[12]=w*a+x*o+A*c+k*m,e[13]=w*n+x*s+A*h+k*y,e[14]=w*i+x*u+A*d+k*b,e[15]=w*l+x*f+A*p+k*_,e}});var A7=O((nye,T7)=>{T7.exports=fZ;function fZ(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,h,d,p,m,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],h=r[6],d=r[7],p=r[8],m=r[9],y=r[10],b=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=b,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+m*i+r[13],e[14]=s*a+h*n+y*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var k7=O((iye,M7)=>{M7.exports=cZ;function cZ(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var C7=O((lye,q7)=>{q7.exports=vZ;function vZ(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,h,d,p,m,y,b,_,w,x,A,k,M,S,D,E,R,N,H,I,Y;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],h=r[1],d=r[2],p=r[3],m=r[4],y=r[5],b=r[6],_=r[7],w=r[8],x=r[9],A=r[10],k=r[11],M=n*n*f+u,S=i*n*f+l*s,D=l*n*f-i*s,E=n*i*f-l*s,R=i*i*f+u,N=l*i*f+n*s,H=n*l*f+i*s,I=i*l*f-n*s,Y=l*l*f+u,e[0]=c*M+m*S+w*D,e[1]=h*M+y*S+x*D,e[2]=d*M+b*S+A*D,e[3]=p*M+_*S+k*D,e[4]=c*E+m*R+w*N,e[5]=h*E+y*R+x*N,e[6]=d*E+b*R+A*N,e[7]=p*E+_*R+k*N,e[8]=c*H+m*I+w*Y,e[9]=h*H+y*I+x*Y,e[10]=d*H+b*I+A*Y,e[11]=p*H+_*I+k*Y,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var L7=O((oye,S7)=>{S7.exports=hZ;function hZ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=h*n-s*a,e}});var E7=O((sye,D7)=>{D7.exports=dZ;function dZ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+h*n,e}});var R7=O((uye,P7)=>{P7.exports=pZ;function pZ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=h*n-s*a,e}});var N7=O((fye,z7)=>{z7.exports=mZ;function mZ(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var I7=O((cye,F7)=>{F7.exports=yZ;function yZ(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,h=a*u,d=n*s,p=n*u,m=i*u,y=l*o,b=l*s,_=l*u;return e[0]=1-(d+m),e[1]=c+_,e[2]=h-b,e[3]=0,e[4]=c-_,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=h+b,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var B7=O((vye,H7)=>{H7.exports=gZ;function gZ(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Y7=O((hye,O7)=>{O7.exports=xZ;function xZ(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var G7=O((dye,V7)=>{V7.exports=bZ;function bZ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var X7=O((pye,U7)=>{U7.exports=_Z;function _Z(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Z7=O((mye,W7)=>{W7.exports=wZ;function wZ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $7=O((yye,J7)=>{J7.exports=TZ;function TZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,h=n*l,d=n*o,p=n*s,m=i*l,y=i*o,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=h-y,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=h+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Q7=O((gye,K7)=>{K7.exports=AZ;function AZ(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var ew=O((xye,j7)=>{j7.exports=MZ;function MZ(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var tw=O((bye,rw)=>{rw.exports=kZ;function kZ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var nw=O((_ye,aw)=>{aw.exports=qZ;function qZ(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var lw=O((wye,iw)=>{var CZ=$y();iw.exports=SZ;function SZ(e,r,t,a){var n,i,l,o,s,u,f,c,h,d,p=r[0],m=r[1],y=r[2],b=a[0],_=a[1],w=a[2],x=t[0],A=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(m-A)<1e-6&&Math.abs(y-k)<1e-6?CZ(e):(f=p-x,c=m-A,h=y-k,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=_*h-w*c,i=w*f-b*h,l=b*c-_*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=c*l-h*i,s=h*n-f*l,u=f*i-c*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*p+i*m+l*y),e[13]=-(o*p+s*m+u*y),e[14]=-(f*p+c*m+h*y),e[15]=1,e)}});var sw=O((Tye,ow)=>{ow.exports=LZ;function LZ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Ky=O((Aye,uw)=>{uw.exports={create:o7(),clone:u7(),copy:c7(),identity:$y(),transpose:d7(),invert:m7(),adjoint:g7(),determinant:b7(),multiply:w7(),translate:A7(),scale:k7(),rotate:C7(),rotateX:L7(),rotateY:E7(),rotateZ:R7(),fromRotation:N7(),fromRotationTranslation:I7(),fromScaling:B7(),fromTranslation:Y7(),fromXRotation:G7(),fromYRotation:X7(),fromZRotation:Z7(),fromQuat:$7(),frustum:Q7(),perspective:ew(),perspectiveFromFieldOfView:tw(),ortho:nw(),lookAt:lw(),str:sw()}});var Eh=O(Ft=>{"use strict";var DZ=Ky();Ft.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var EZ=kr(),fw=jo(),PZ=Eh(),RZ=Ky();function zZ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function NZ(e){var r=EZ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function cw(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function FZ(e,r){vw("global",e,r)}function vw(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):fw.warn("addStyleRule failed"):fw.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function IZ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&cw(t)}function HZ(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function BZ(e){var r=dw(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=hw(a);if(n){var i=PZ.convertCssMatrix(n);t=RZ.multiply(t,t,i)}}),t}function hw(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function dw(e){for(var r=[];OZ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function OZ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function YZ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}pw.exports={getGraphDiv:zZ,isPlotDiv:NZ,removeElement:cw,addStyleRule:FZ,addRelatedStyleRule:vw,deleteRelatedStyleRule:IZ,setStyleOnHover:HZ,getFullTransformMatrix:BZ,getElementTransformMatrix:hw,getElementAndAncestors:dw,equalDomRects:YZ}});var Rc=O((qye,mw)=>{"use strict";mw.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var pi=O((Cye,Tw)=>{"use strict";var gw=yt().extendFlat,VZ=Ol(),xw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},bw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},GZ=xw.flags.slice().concat(["fullReplot"]),UZ=bw.flags.slice().concat("layoutReplot");Tw.exports={traces:xw,layout:bw,traceFlags:function(){return yw(GZ)},layoutFlags:function(){return yw(UZ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Qy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Qy.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var jy=O((Lye,Aw)=>{"use strict";Aw.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var _n=O(Du=>{"use strict";var{DATE_FORMAT_LINK:XZ,FORMAT_LINK:WZ}=jy(),ZZ=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function JZ({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,WZ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,XZ,"for details on the date formatting syntax.",ZZ].join(" ")}Du.templateFormatStringDescription=JZ;Du.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Zo({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Du.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Zo({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Du.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Du.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var zh=O((Pye,Lw)=>{"use strict";function Gl(e,r){return r?r.d2l(e):e}function Mw(e,r){return r?r.l2d(e):e}function $Z(e){return e.x0}function KZ(e){return e.x1}function QZ(e){return e.y0}function jZ(e){return e.y1}function kw(e){return e.x0shift||0}function qw(e){return e.x1shift||0}function Cw(e){return e.y0shift||0}function Sw(e){return e.y1shift||0}function Ph(e,r){return Gl(e.x1,r)+qw(e)-Gl(e.x0,r)-kw(e)}function Rh(e,r,t){return Gl(e.y1,t)+Sw(e)-Gl(e.y0,t)-Cw(e)}function eJ(e,r){return Math.abs(Ph(e,r))}function rJ(e,r,t){return Math.abs(Rh(e,r,t))}function tJ(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ph(e,r),2)+Math.pow(Rh(e,r,t),2))}function aJ(e,r){return Mw((Gl(e.x1,r)+qw(e)+Gl(e.x0,r)+kw(e))/2,r)}function nJ(e,r,t){return Mw((Gl(e.y1,t)+Sw(e)+Gl(e.y0,t)+Cw(e))/2,t)}function iJ(e,r,t){return e.type!=="line"?void 0:Rh(e,r,t)/Ph(e,r)}var lJ=["x0","x1","y0","y1","dy","height","ycenter"],oJ=["x0","x1","y0","y1","dx","width","xcenter"];Lw.exports={x0:$Z,x1:KZ,y0:QZ,y1:jZ,slope:iJ,dx:Ph,dy:Rh,width:eJ,height:rJ,length:tJ,xcenter:aJ,ycenter:nJ,simpleXVariables:lJ,simpleYVariables:oJ}});var Pw=O((Rye,Ew)=>{"use strict";var sJ=pi().overrideAll,es=sn(),Dw=ra(),uJ=mi().dash,Ul=yt().extendFlat,{shapeTexttemplateAttrs:fJ,templatefallbackAttrs:cJ}=_n(),vJ=zh();Ew.exports=sJ({newshape:{visible:Ul({},es.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Ul({},es.legend,{}),legendgroup:Ul({},es.legendgroup,{}),legendgrouptitle:{text:Ul({},es.legendgrouptitle.text,{}),font:Dw({})},legendrank:Ul({},es.legendrank,{}),legendwidth:Ul({},es.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ul({},uJ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Ul({},es.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:fJ({newshape:!0},{keys:Object.keys(vJ)}),texttemplatefallback:cJ({editType:"arraydraw"}),font:Dw({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var zw=O((zye,Rw)=>{"use strict";var hJ=mi().dash,dJ=yt().extendFlat;Rw.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:dJ({},hJ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Nh=O((Nye,Nw)=>{"use strict";Nw.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Eu=O((Fye,Bw)=>{"use strict";var eg=ra(),pJ=Rc(),Fh=Hn(),Fw=Pw(),Iw=zw(),mJ=Nh(),Hw=yt().extendFlat,Ih=eg({editType:"calc"});Ih.family.dflt='"Open Sans", verdana, arial, sans-serif';Ih.size.dflt=12;Ih.color.dflt=Fh.defaultLine;Bw.exports={font:Ih,title:{text:{valType:"string",editType:"layoutstyle"},font:eg({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:eg({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Hw(mJ({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Fh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Fh.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Fh.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Fw.newshape,activeshape:Fw.activeshape,newselection:Iw.newselection,activeselection:Iw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Hw({},pJ.transition,{editType:"none"})}});var Ow=O(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var gr=O(Fr=>{"use strict";var Pu=jo(),Yw=Dh(),Vw=Jy(),yJ=Ol(),gJ=Pc().addStyleRule,Gw=yt(),xJ=sn(),bJ=Eu(),_J=Gw.extendFlat,rg=Gw.extendDeepAll;Fr.modules={};Fr.allCategories={};Fr.allTypes=[];Fr.subplotsRegistry={};Fr.componentsRegistry={};Fr.layoutArrayContainers=[];Fr.layoutArrayRegexes=[];Fr.traceLayoutAttributes={};Fr.localeRegistry={};Fr.apiMethodRegistry={};Fr.collectableSubplotTypes=null;Fr.register=function(r){if(Fr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var qJ=Tu().timeFormat,r8=zr(),tg=jo(),Wl=Mu().mod,Nu=Tt(),Bn=Nu.BADNUM,cn=Nu.ONEDAY,zc=Nu.ONEHOUR,Xl=Nu.ONEMIN,zu=Nu.ONESEC,Nc=Nu.EPOCHJD,hl=gr(),Jw=Tu().utcFormat,CJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,SJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,$w=new Date().getFullYear()-70;function dl(e){return e&&hl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}It.dateTick0=function(e,r){var t=LJ(e,!!r);if(r<2)return t;var a=It.dateTime2ms(t,e);return a+=cn*(r-1),It.ms2DateTime(a,0,e)};function LJ(e,r){return dl(e)?r?hl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:hl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}It.dfltRange=function(e){return dl(e)?hl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};It.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Bh,Oh;It.dateTime2ms=function(e,r){if(It.isJSDate(e)){var t=e.getTimezoneOffset()*Xl,a=(e.getUTCMinutes()-e.getMinutes())*Xl+(e.getUTCSeconds()-e.getSeconds())*zu+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Xl;t=t-n/2+Wl(a-t+n/2,n)}return e=Number(e)-t,e>=Bh&&e<=Oh?e:Bn}if(typeof e!="string"&&typeof e!="number")return Bn;e=String(e);var i=dl(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?SJ:CJ);if(!s)return Bn;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Bn;u=Number(u);var m;try{var y=hl.getComponentMethod("calendars","getCal")(r);if(o){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,b),c)}else m=y.newDate(u,Number(f),c)}catch(w){return Bn}return m?(m.toJD()-Nc)*cn+h*zc+d*Xl+p*zu:Bn}u.length===2?u=(Number(u)+2e3-$w)%100+$w:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,h,d));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Bn:_.getTime()+p*zu};Bh=It.MIN_MS=It.dateTime2ms("-9999");Oh=It.MAX_MS=It.dateTime2ms("9999-12-31 23:59:59.9999");It.isDateTime=function(e,r){return It.dateTime2ms(e,r)!==Bn};function Ru(e,r){return String(e+Math.pow(10,r)).slice(1)}var Hh=90*cn,Kw=3*zc,Qw=5*Xl;It.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Bh&&e<=Oh))return Bn;r||(r=0);var a=Math.floor(Wl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(dl(t)){var c=Math.floor(n/cn)+Nc,h=Math.floor(Wl(e,cn));try{i=hl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Jw("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=Bh+cn&&e<=Oh-cn))return Bn;var r=Math.floor(Wl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=qJ("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return t8(a,n,i,l,o)};function t8(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Ru(r,2)+":"+Ru(t,2),(a||n)&&(e+=":"+Ru(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Ru(n,i)}return e}It.cleanDate=function(e,r,t){if(e===Bn)return r;if(It.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(dl(t))return tg.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=It.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!It.isDateTime(e,t))return tg.error("unrecognized date",e),r;return e};var DJ=/%\d?f/g,EJ=/%h/g,PJ={1:"1",2:"1",3:"2",4:"2"};function jw(e,r,t,a){e=e.replace(DJ,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(EJ,function(){return PJ[t("%q")(n)]}),dl(a))try{e=hl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var RJ=[59,59.9,59.99,59.999,59.9999];function zJ(e,r){var t=Wl(e+.05,cn),a=Ru(Math.floor(t/zc),2)+":"+Ru(Wl(Math.floor(t/Xl),60),2);if(r!=="M"){r8(r)||(r=0);var n=Math.min(Wl(e/zu,60),RJ[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}It.formatDate=function(e,r,t,a,n,i){if(n=dl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return zJ(e,t)+` -`+jw(i.dayMonthYear,e,a,n);return jw(r,e,a,n)};var e8=3*cn;It.incrementMonth=function(e,r,t){t=dl(t)&&t;var a=Wl(e,cn);if(e=Math.round(e-a),t)try{var n=Math.round(e/cn)+Nc,i=hl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Nc)*cn+a}catch(s){tg.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+e8);return o.setUTCMonth(o.getUTCMonth()+r)+a-e8};It.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=dl(r)&&hl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";n8.exports=function(r){return r}});var ig=O(pl=>{"use strict";var NJ=zr(),FJ=jo(),IJ=ag(),HJ=Tt().BADNUM,ng=1e-9;pl.findBin=function(e,r,t){if(NJ(r.start))return t?Math.ceil((e-r.start)/r.size-ng)-1:Math.floor((e-r.start)/r.size+ng);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?BJ:OJ:s=t?VJ:YJ,e+=l*ng*(t?-1:1)*(l>=0?1:-1);a90&&FJ.log("Long binary search..."),a-1};function BJ(e,r){return er}function VJ(e,r){return e>=r}pl.sorterAsc=function(e,r){return e-r};pl.sorterDes=function(e,r){return r-e};pl.distinctVals=function(e){var r=e.slice();r.sort(pl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===HJ;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};pl.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};pl.findIndexOfMin=function(e,r){r=r||IJ;for(var t=1/0,a,n=0;n{"use strict";i8.exports=function(r){return Object.keys(r).sort()}});var l8=O(Ht=>{"use strict";var Fc=zr(),GJ=on().isArrayOrTypedArray;Ht.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Fc(r)||(r=!1),GJ(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var c8=O((Xye,f8)=>{"use strict";var o8=Mu(),og=o8.mod,UJ=o8.modHalf,Ic=Math.PI,Zl=2*Ic;function XJ(e){return e/180*Ic}function WJ(e){return e/Ic*180}function sg(e){return Math.abs(e[1]-e[0])>Zl-1e-14}function s8(e,r){return UJ(r-e,Zl)}function ZJ(e,r){return Math.abs(s8(e,r))}function u8(e,r){if(sg(r))return!0;var t,a;r[0]a&&(a+=Zl);var n=og(e,Zl),i=n+Zl;return n>=t&&n<=a||i>=t&&i<=a}function JJ(e,r,t,a){if(!u8(r,a))return!1;var n,i;return t[0]=n&&e<=i}function ug(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=sg([t,a]),s,u,f,c,h;o?(s=0,u=Ic,f=Zl):t{"use strict";rs.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};rs.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};rs.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};rs.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};rs.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};rs.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var p8=O(ts=>{"use strict";var fg=Mu().mod;ts.segmentsIntersect=d8;function d8(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,h=i-r,d=o-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*h)/p,y=(u*c-s*h)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}ts.segmentDistance=function(r,t,a,n,i,l,o,s){if(d8(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,h=s-l,d=u*u+f*f,p=c*c+h*h,m=Math.min(Yh(u,f,d,i-r,l-t),Yh(u,f,d,o-r,s-t),Yh(c,h,p,r-i,t-l),Yh(c,h,p,a-i,n-l));return Math.sqrt(m)};function Yh(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Vh,cg,h8;ts.getTextLocation=function(r,t,a,n){if((r!==cg||n!==h8)&&(Vh={},cg=r,h8=n),Vh[a])return Vh[a];var i=r.getPointAtLength(fg(a-n/2,t)),l=r.getPointAtLength(fg(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(fg(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return Vh[a]=c,c};ts.clearLocationCache=function(){cg=null};ts.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,h;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(h=y);var b=y.xi?y.x-i:0,_=y.yo?y.y-o:0;return Math.sqrt(b*b+_*_)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};ts.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,h,d,p;u0?c=h:f=h,u++}return d}});var Gh=O(Hc=>{"use strict";var ml={};Hc.throttle=function(r,t,a){var n=ml[r],i=Date.now();if(!n){for(var l in ml)ml[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Hc.done=function(e){var r=ml[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Hc.clear=function(e){if(e)m8(ml[e]),delete ml[e];else for(var r in ml)Hc.clear(r)};function m8(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var g8=O(($ye,y8)=>{"use strict";y8.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var x8=O((Kye,Uh)=>{"use strict";Uh.exports=vg;Uh.exports.isMobile=vg;Uh.exports.default=vg;var jJ=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e$=/CrOS/,r$=/android|ipad|playbook|silk/i;function vg(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=jJ.test(r)&&!e$.test(r)||!!e.tablet&&r$.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var _8=O((Qye,b8)=>{"use strict";var t$=zr(),a$=x8();b8.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=n$(),typeof t!="string")return!0;var a=a$({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(t$(u)&&(u=+u),u>=13)return!0}}}return a};function n$(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var T8=O((jye,w8)=>{"use strict";var i$=kr();w8.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=i$.select(this)}),n}});var M8=O((ege,A8)=>{"use strict";var l$=gr();A8.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=l$.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var q8=O((rge,k8)=>{"use strict";k8.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";C8.exports=function(r){for(var t=u$(r)?s$:o$,a=[],n=0;n{"use strict";L8.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var P8=O((nge,E8)=>{"use strict";var f$=zr(),c$=Tt().BADNUM,v$=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;E8.exports=function(r){return typeof r=="string"&&(r=r.replace(v$,"")),f$(r)?Number(r):c$}});var ze=O((ige,X8)=>{"use strict";var Bc=kr(),h$=Tu().utcFormat,d$=zy().format,H8=zr(),B8=Tt(),O8=B8.FP_SAFE,p$=-O8,R8=B8.BADNUM,de=X8.exports={};de.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var z8={};de.warnBadFormat=function(e){var r=String(e);z8[r]||(z8[r]=1,de.warn('encountered bad format: "'+r+'"'))};de.noFormat=function(e){return String(e)};de.numberFormat=function(e){var r;try{r=d$(de.adjustFormat(e))}catch(t){return de.warnBadFormat(e),de.noFormat}return r};de.nestedProperty=Ah();de.keyedContainer=k6();de.relativeAttr=C6();de.isPlainObject=Ol();de.toLogRange=kh();de.relinkPrivateKeys=E6();var Jl=on();de.isArrayBuffer=Jl.isArrayBuffer;de.isTypedArray=Jl.isTypedArray;de.isArrayOrTypedArray=Jl.isArrayOrTypedArray;de.isArray1D=Jl.isArray1D;de.ensureArray=Jl.ensureArray;de.concat=Jl.concat;de.maxRowLength=Jl.maxRowLength;de.minRowLength=Jl.minRowLength;var Y8=Mu();de.mod=Y8.mod;de.modHalf=Y8.modHalf;var $l=K6();de.valObjectMeta=$l.valObjectMeta;de.coerce=$l.coerce;de.coerce2=$l.coerce2;de.coerceFont=$l.coerceFont;de.coercePattern=$l.coercePattern;de.coerceHoverinfo=$l.coerceHoverinfo;de.coerceSelectionMarkerOpacity=$l.coerceSelectionMarkerOpacity;de.validate=$l.validate;var wn=a8();de.dateTime2ms=wn.dateTime2ms;de.isDateTime=wn.isDateTime;de.ms2DateTime=wn.ms2DateTime;de.ms2DateTimeLocal=wn.ms2DateTimeLocal;de.cleanDate=wn.cleanDate;de.isJSDate=wn.isJSDate;de.formatDate=wn.formatDate;de.incrementMonth=wn.incrementMonth;de.dateTick0=wn.dateTick0;de.dfltRange=wn.dfltRange;de.findExactDates=wn.findExactDates;de.MIN_MS=wn.MIN_MS;de.MAX_MS=wn.MAX_MS;var as=ig();de.findBin=as.findBin;de.sorterAsc=as.sorterAsc;de.sorterDes=as.sorterDes;de.distinctVals=as.distinctVals;de.roundUp=as.roundUp;de.sort=as.sort;de.findIndexOfMin=as.findIndexOfMin;de.sortObjectKeys=lg();var yl=l8();de.aggNums=yl.aggNums;de.len=yl.len;de.mean=yl.mean;de.geometricMean=yl.geometricMean;de.median=yl.median;de.midRange=yl.midRange;de.variance=yl.variance;de.stdev=yl.stdev;de.interp=yl.interp;var yi=Eh();de.init2dArray=yi.init2dArray;de.transposeRagged=yi.transposeRagged;de.dot=yi.dot;de.translationMatrix=yi.translationMatrix;de.rotationMatrix=yi.rotationMatrix;de.rotationXYMatrix=yi.rotationXYMatrix;de.apply3DTransform=yi.apply3DTransform;de.apply2DTransform=yi.apply2DTransform;de.apply2DTransform2=yi.apply2DTransform2;de.convertCssMatrix=yi.convertCssMatrix;de.inverseTransformMatrix=yi.inverseTransformMatrix;var Bi=c8();de.deg2rad=Bi.deg2rad;de.rad2deg=Bi.rad2deg;de.angleDelta=Bi.angleDelta;de.angleDist=Bi.angleDist;de.isFullCircle=Bi.isFullCircle;de.isAngleInsideSector=Bi.isAngleInsideSector;de.isPtInsideSector=Bi.isPtInsideSector;de.pathArc=Bi.pathArc;de.pathSector=Bi.pathSector;de.pathAnnulus=Bi.pathAnnulus;var Iu=v8();de.isLeftAnchor=Iu.isLeftAnchor;de.isCenterAnchor=Iu.isCenterAnchor;de.isRightAnchor=Iu.isRightAnchor;de.isTopAnchor=Iu.isTopAnchor;de.isMiddleAnchor=Iu.isMiddleAnchor;de.isBottomAnchor=Iu.isBottomAnchor;var Hu=p8();de.segmentsIntersect=Hu.segmentsIntersect;de.segmentDistance=Hu.segmentDistance;de.getTextLocation=Hu.getTextLocation;de.clearLocationCache=Hu.clearLocationCache;de.getVisibleSegment=Hu.getVisibleSegment;de.findPointOnPath=Hu.findPointOnPath;var Zh=yt();de.extendFlat=Zh.extendFlat;de.extendDeep=Zh.extendDeep;de.extendDeepAll=Zh.extendDeepAll;de.extendDeepNoArrays=Zh.extendDeepNoArrays;var hg=jo();de.log=hg.log;de.warn=hg.warn;de.error=hg.error;var m$=Cu();de.counterRegex=m$.counter;var dg=Gh();de.throttle=dg.throttle;de.throttleDone=dg.done;de.clearThrottle=dg.clear;var gi=Pc();de.getGraphDiv=gi.getGraphDiv;de.isPlotDiv=gi.isPlotDiv;de.removeElement=gi.removeElement;de.addStyleRule=gi.addStyleRule;de.addRelatedStyleRule=gi.addRelatedStyleRule;de.deleteRelatedStyleRule=gi.deleteRelatedStyleRule;de.setStyleOnHover=gi.setStyleOnHover;de.getFullTransformMatrix=gi.getFullTransformMatrix;de.getElementTransformMatrix=gi.getElementTransformMatrix;de.getElementAndAncestors=gi.getElementAndAncestors;de.equalDomRects=gi.equalDomRects;de.clearResponsive=g8();de.preserveDrawingBuffer=_8();de.makeTraceGroups=T8();de._=M8();de.notifier=Xy();de.filterUnique=q8();de.filterVisible=S8();de.pushUnique=Jy();de.increment=D8();de.cleanNumber=P8();de.ensureNumber=function(r){return H8(r)?(r=Number(r),r>O8||r=r?!1:H8(e)&&e>=0&&e%1===0};de.noop=Dh();de.identity=ag();de.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};de.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};de.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(de.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};de.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};de.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};de.syncOrAsync=function(e,r,t){var a,n;function i(){return de.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};de.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};de.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};de.fillArray=function(e,r,t,a){if(a=a||de.identity,de.isArrayOrTypedArray(e))for(var n=0;nx$.test(window.navigator.userAgent);var b$=/Firefox\/(\d+)\.\d+/;de.getFirefoxVersion=function(){var e=b$.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};de.isD3Selection=function(e){return e instanceof Bc.selection};de.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};de.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};de.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};de.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var U8=/^\w*$/;de.templateString=function(e,r){var t={};return e.replace(de.TEMPLATE_STRING_REGEX,function(a,n){var i;return U8.test(n)?i=r[n]:(t[n]=t[n]||de.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var T$={max:10,count:0,name:"hovertemplate"};de.hovertemplateString=e=>pg(ph(Zo({},e),{opts:T$}));var A$={max:10,count:0,name:"texttemplate"};de.texttemplateString=e=>pg(ph(Zo({},e),{opts:A$}));var M$=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function k$(e){var r=e.match(M$);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var q$={max:10,count:0,name:"texttemplate",parseMultDiv:!0};de.texttemplateStringForShapes=e=>pg(ph(Zo({},e),{opts:q$}));var N8=/^[:|\|]/;function pg({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(de.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),c=["_xother_","_yother_"].includes(o),h=["xother_","yother_"].includes(o),d=u||f||h||c;(f||c)&&(o=o.substring(1)),(h||c)&&(o=o.substring(0,o.length-1));let p=null,m=null;if(n.parseMultDiv){var y=k$(o);o=y.key,p=y.op,m=y.number}let b;if(d){if(a[o]===void 0)return"";b=a[o]}else for(let A of e)if(A){if(A.hasOwnProperty(o)){b=A[o];break}if(U8.test(o)||(b=de.nestedProperty(A,o).get(!0)),b!==void 0)break}if(b===void 0){let{count:A,max:k,name:M}=n,S=t===!1?l:t;return A=Wh&&l<=F8,u=o>=Wh&&o<=F8;if(s&&(a=10*a+l-Wh),u&&(n=10*n+o-Wh),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Fu=2e9;de.seedPseudoRandom=function(){Fu=2e9};de.pseudoRandom=function(){var e=Fu;return Fu=(69069*Fu+1)%4294967296,Math.abs(Fu-e)<429496729?de.pseudoRandom():Fu/4294967296};de.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=de.extractOption(e,r,"htx","hovertext");if(de.isValidTextValue(n))return a(n);var i=de.extractOption(e,r,"tx","text");if(de.isValidTextValue(i))return a(i)};de.isValidTextValue=function(e){return e||e===0};de.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,de.strTranslate(n-u*(t+l),i-u*(a+o))+de.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};de.setTransormAndDisplay=function(e,r){e.attr("transform",de.getTextTransform(r)),e.style("display",r.scale?null:"none")};de.ensureUniformFontSize=function(e,r){var t=de.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};de.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};de.bigFont=function(e){return Math.round(1.2*e)};var I8=de.getFirefoxVersion(),C$=I8!==null&&I8<86;de.getPositionFromD3Event=function(){return C$?[Bc.event.layerX,Bc.event.layerY]:[Bc.event.offsetX,Bc.event.offsetY]}});var J8=O(()=>{"use strict";var S$=ze(),W8={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(mg in W8)Z8=mg.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),S$.addStyleRule(Z8,W8[mg]);var Z8,mg});var yg=O((uge,$8)=>{$8.exports=!0});var xg=O((fge,K8)=>{"use strict";var L$=yg(),gg;typeof window.matchMedia=="function"?gg=!window.matchMedia("(hover: none)").matches:gg=L$;K8.exports=gg});var Kh=O((cge,bg)=>{"use strict";var Bu=typeof Reflect=="object"?Reflect:null,Q8=Bu&&typeof Bu.apply=="function"?Bu.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Jh;Bu&&typeof Bu.ownKeys=="function"?Jh=Bu.ownKeys:Object.getOwnPropertySymbols?Jh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Jh=function(r){return Object.getOwnPropertyNames(r)};function D$(e){console&&console.warn&&console.warn(e)}var e9=Number.isNaN||function(r){return r!==r};function gt(){gt.init.call(this)}bg.exports=gt;bg.exports.once=z$;gt.EventEmitter=gt;gt.prototype._events=void 0;gt.prototype._eventsCount=0;gt.prototype._maxListeners=void 0;var j8=10;function $h(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(gt,"defaultMaxListeners",{enumerable:!0,get:function(){return j8},set:function(e){if(typeof e!="number"||e<0||e9(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");j8=e}});gt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};gt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||e9(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function r9(e){return e._maxListeners===void 0?gt.defaultMaxListeners:e._maxListeners}gt.prototype.getMaxListeners=function(){return r9(this)};gt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")Q8(s,this,t);else for(var u=s.length,f=l9(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,D$(o)}return e}gt.prototype.addListener=function(r,t){return t9(this,r,t,!1)};gt.prototype.on=gt.prototype.addListener;gt.prototype.prependListener=function(r,t){return t9(this,r,t,!0)};function E$(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function a9(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=E$.bind(a);return n.listener=t,a.wrapFn=n,n}gt.prototype.once=function(r,t){return $h(t),this.on(r,a9(this,r,t)),this};gt.prototype.prependOnceListener=function(r,t){return $h(t),this.prependListener(r,a9(this,r,t)),this};gt.prototype.removeListener=function(r,t){var a,n,i,l,o;if($h(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():P$(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};gt.prototype.off=gt.prototype.removeListener;gt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function n9(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?R$(n):l9(n,n.length)}gt.prototype.listeners=function(r){return n9(this,r,!0)};gt.prototype.rawListeners=function(r){return n9(this,r,!1)};gt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):i9.call(e,r)};gt.prototype.listenerCount=i9;function i9(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}gt.prototype.eventNames=function(){return this._eventsCount>0?Jh(this._events):[]};function l9(e,r){for(var t=new Array(r),a=0;a{"use strict";var _g=Kh().EventEmitter,F$={init:function(e){if(e._ev instanceof _g)return e;var r=new _g,t=new _g;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var u9=ze(),I$=Qo().dfltConfig;function H$(e,r){for(var t=[],a,n=0;nI$.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};gl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};gl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};gl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";v9.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Vu=O(Qt=>{"use strict";var On=gr(),Yc=ze(),jh=sn(),Tg=Eu(),B$=wg(),O$=Rc(),Y$=Qo().configAttributes,h9=pi(),xi=Yc.extendDeepAll,Ou=Yc.isPlainObject,V$=Yc.isArrayOrTypedArray,ed=Yc.nestedProperty,G$=Yc.valObjectMeta,Ag="_isSubplotObj",rd="_isLinkedToArray",U$="_arrayAttrRegexps",p9="_deprecated",Mg=[Ag,rd,U$,p9];Qt.IS_SUBPLOT_OBJ=Ag;Qt.IS_LINKED_TO_ARRAY=rd;Qt.DEPRECATED=p9;Qt.UNDERSCORE_ATTRS=Mg;Qt.get=function(){var e={};return On.allTypes.forEach(function(r){e[r]=W$(r)}),{defs:{valObjects:G$,metaKeys:Mg.concat(["description","role","editType","impliedEdits"]),editType:{traces:h9.traces,layout:h9.layout},impliedEdits:{}},traces:e,layout:Z$(),frames:J$(),animation:Yu(O$),config:Yu(Y$)}};Qt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Mg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Qt.isValObject(l)&&Ou(l)&&i!=="impliedEdits"&&Qt.crawl(l,r,n+1,o)}})};Qt.isValObject=function(e){return e&&e.valType!==void 0};Qt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],h=f+t[u];if(u===t.length-1)V$(c)&&r.push(i+h);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Qh(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Qh(e){return e===Math.round(e)&&e>=0}function W$(e){var r,t;r=On.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=xi({},jh),i=xi({},r.attributes);Qt.crawl(i,function(s,u,f,c,h){ed(n,h).set(void 0),s===void 0&&ed(i,h).set(void 0)}),xi(a,n),On.traceIs(e,"noOpacity")&&delete a.opacity,On.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),On.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,xi(a,i),t.attributes&&xi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Yu(a)};if(r.layoutAttributes){var o={};xi(o,r.layoutAttributes),l.layoutAttributes=Yu(o)}return r.animatable||Qt.crawl(l,function(s){Qt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function Z$(){var e={},r,t;xi(e,Tg);for(r in On.subplotsRegistry)if(t=On.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Gu=ze(),eK=sn(),Kl="templateitemname",kg={name:{valType:"string",editType:"none"}};kg[Kl]={valType:"string",editType:"calc"};ns.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=kg.name,r[Kl]=kg[Kl],r};ns.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Gu.coerce(i,{},eK,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};ns.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Gu.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};ns.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[g9(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[Kl]=u[Kl];if(!y9(c))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Kl]=i)}s();function u(d,p){o[d]=p}function f(d,p){i?Gu.nestedProperty(o[l],d).set(p):o[l+"."+d]=p}function c(){var d=o;return s(),d}function h(d,p){d&&f(d,p);var m=c();for(var y in m)Gu.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var aa=O((yge,x9)=>{"use strict";var Vc=Cu().counter;x9.exports={idRegex:{x:Vc("x","( domain)?"),y:Vc("y","( domain)?")},attrRegex:Vc("[xy]axis"),xAxisMatch:Vc("xaxis"),yAxisMatch:Vc("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Ut=O(vn=>{"use strict";var rK=gr(),qg=aa();vn.id2name=function(r){if(!(typeof r!="string"||!r.match(qg.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};vn.name2id=function(r){if(r.match(qg.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};vn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(qg.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};vn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=vn.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};vn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function b9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function tK(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function aK(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}_9.exports={clearOutlineControllers:tK,clearOutline:aK}});var td=O((bge,w9)=>{"use strict";w9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Cg=O(nd=>{"use strict";var ad=gr(),_ge=aa().SUBPLOT_PATTERN;nd.getSubplotCalcData=function(e,r,t){var a=ad.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var nK=gr(),Uu=ze();is.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=is.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){T9(e,l,n.cache),n.check=function(){if(i){var f=T9(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Uu.isPlainObject(i)?Sg(i,r,l,a+1):r(l,n,i)}})}});var Et=O((Age,B9)=>{"use strict";var P9=kr(),lK=Tu().timeFormatLocale,oK=zy().formatLocale,Gc=zr(),sK=Ny(),Wr=gr(),R9=Vu(),uK=ot(),ur=ze(),z9=br(),q9=Tt().BADNUM,hn=Ut(),fK=Ql().clearOutline,cK=td(),Lg=Rc(),vK=wg(),hK=Cg().getModuleCalcData,C9=ur.relinkPrivateKeys,ls=ur._,Ke=B9.exports={};ur.extendFlat(Ke,Wr);Ke.attributes=sn();Ke.attributes.type.values=Ke.allTypes;Ke.fontAttrs=ra();Ke.layoutAttributes=Eu();var ld=k9();Ke.executeAPICommand=ld.executeAPICommand;Ke.computeAPICommandBindings=ld.computeAPICommandBindings;Ke.manageCommandObserver=ld.manageCommandObserver;Ke.hasSimpleAPICommandBindings=ld.hasSimpleAPICommandBindings;Ke.redrawText=function(e){return e=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Wr.getComponentMethod("annotations","draw")(e),Wr.getComponentMethod("legend","draw")(e),Wr.getComponentMethod("colorbar","draw")(e),r(Ke.previousPromises(e)))},300)})};Ke.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Wr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Ke.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Ke.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:z9.defaultLine,"pointer-events":"all"}).each(function(){var u=P9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&dK(e,i),l.text(i.text()&&o.text()?" - ":"")}};function dK(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Ke.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Ke.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=P9.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Ke.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var pK=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],mK=["year","month","dayMonth","dayMonthYear"];Ke.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Ke.createTransitionData(e),n._dfltTitle={plot:ls(e,"Click to enter Plot title"),subtitle:ls(e,"Click to enter Plot subtitle"),x:ls(e,"Click to enter X axis title"),y:ls(e,"Click to enter Y axis title"),colorbar:ls(e,"Click to enter Colorscale title"),annotation:ls(e,"new text")},n._traceWord=ls(e,"trace");var h=S9(e,pK);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;Ke.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=p),Ke.sanitizeMargins(n)}else{Ke.supplyLayoutGlobalDefaults(i,n,h);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,_=m&&(y||b);_?Ke.plotAutoSize(e,i,n):m&&Ke.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=xK(h,n.separators),n._extraFormat=S9(e,mK),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=gK(),x=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=yK(l,s),Ke.supplyDataDefaults(s,o,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(Wr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Ke.linkSubplots(o,n,l,a),Ke.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),I=N,Y=H;I&&!Y?a._bgLayer.remove():Y&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&fK({_fullLayout:a}),bK(o,n),C9(n,a),Wr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var U=n._tracePreGUI,V={},G;for(G in U)V[G]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=Ke.layoutAttributes.width.min,h=Ke.layoutAttributes.height.min;l1,p=!t.height&&Math.abs(a.height-o)>1;(p||d)&&(d&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Ke.sanitizeMargins(a)};Ke.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Wr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Wr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Wr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=y,t.r/=y)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:_,size:t.l+m},r:{val:w,size:t.r+m},b:{val:A,size:t.b+m},t:{val:x,size:t.t+m}},p[r]=1}if(!a._replotting)return Ke.doAutoMargin(e)}};function wK(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=hn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Ke.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),N9(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,h=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var b=e._fullLayout._reservedMargin;for(var _ in b)for(var w in b[_]){var x=b[_][w];l[w]=Math.max(l[w],x)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var A in l){var k=0;for(var M in h)M!=="base"&&Gc(h[M][A].size)&&(k=h[M][A].size>k?h[M][A].size:k);var S=Math.max(0,i[A]-k);l[A]=Math.max(0,l[A]-S)}for(var D in h){var E=h[D].l||{},R=h[D].b||{},N=E.val,H=E.size,I=R.val,Y=R.size,U=t-l.r-l.l,V=a-l.t-l.b;for(var G in h){if(Gc(H)&&h[G].r){var B=h[G].r.val,J=h[G].r.size;if(B>N){var X=(H*B+(J-U)*N)/(B-N),j=(J*(1-N)+(H-U)*(1-B))/(B-N);X+j>s+u&&(s=X,u=j)}}if(Gc(Y)&&h[G].t){var le=h[G].t.val,fe=h[G].t.size;if(le>I){var ve=(Y*le+(fe-V)*I)/(le-I),ee=(fe*(1-I)+(Y-V)*(1-le))/(le-I);ve+ee>c+f&&(c=ve,f=ee)}}}}}var Ce=ur.constrain(t-i.l-i.r,F9,p),ce=ur.constrain(a-i.t-i.b,I9,m),be=Math.max(0,t-Ce),_e=Math.max(0,a-ce);if(be){var ge=(s+u)/be;ge>1&&(s/=ge,u/=ge)}if(_e){var W=(c+f)/_e;W>1&&(c/=W,f/=W)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Ke.didMarginChange(o,n)||wK(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Ke.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Ke.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ur.isPlainObject(h)){var p={},m;return Object.keys(h).sort().forEach(function(w){if(["_","["].indexOf(w.charAt(0))===-1){if(typeof h[w]=="function"){d&&(p[w]="_function");return}if(t==="keepdata"){if(w.slice(-3)==="src")return}else if(t==="keepstream"){if(m=h[w+"src"],typeof m=="string"&&m.indexOf(":")>0&&!ur.isPlainObject(h.stream))return}else if(t!=="keepall"&&(m=h[w+"src"],typeof m=="string"&&m.indexOf(":")>0))return;p[w]=u(h[w],d)}}),p}var y=Array.isArray(h),b=ur.isTypedArray(h);if((y||b)&&h.dtype&&h.shape){var _=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ur.isArrayBuffer(_)?sK.encode(_):_},d)}return y?h.map(function(w){return u(w,d)}):b?ur.simpleMap(h,ur.identity):ur.isJSDate(h)?ur.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var c=o._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Ke.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Wr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!a&&d===h&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Wr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Ke.previousPromises,s,t.prepareFn,Ke.rehover,Ke.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Ke.doCalcdata=function(e,r){var t=hn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}l&&l.calc&&(x=l.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:q9,y:q9}]),x[0].t||(x[0].t={}),x[0].trace=i,u[_]=x}}for(D9(t,a,n),o=0;o{"use strict";os.xmlns="http://www.w3.org/2000/xmlns/";os.svg="http://www.w3.org/2000/svg";os.xlink="http://www.w3.org/1999/xlink";os.svgAttrs={xmlns:os.svg,"xmlns:xlink":os.xlink}});var Ma=O((kge,O9)=>{"use strict";O9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var na=O(Yn=>{"use strict";var Xt=kr(),xl=ze(),kK=xl.strTranslate,Dg=ss(),qK=Ma().LINE_SPACING,CK=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(CK),i=Xt.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=OK(e.node(),a);s&&e.style("pointer-events","all"),Yn.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};EK(n[2],f,function(c,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){o(),s();return}var m=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var y=d.width,b=d.height;p.attr({class:l,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var _=e.node().style.fill||"black",w=p.select("g");w.attr({fill:_,stroke:_});var x=w.node().getBoundingClientRect(),A=x.width,k=x.height;(A>y||k>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),A=x.width,k=x.height);var M=+e.attr("x"),S=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,E=-D/4;if(l[0]==="y")m.attr({transform:"rotate("+[-90,M,S]+")"+kK(-A/2,E-k/2)});else if(l[0]==="l")S=E-k/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)M=0,S=E;else{var R=e.attr("text-anchor");M=M-A*(R==="middle"?.5:R==="end"?1:0),S=S+E-k/2}p.attr({x:M,y:S}),t&&t.call(e,m),s(m)})})):o(),e};var SK=/(<|<|<)/g,LK=/(>|>|>)/g;function DK(e){return e.replace(SK,"\\lt ").replace(LK,"\\gt ")}var Y9=[["$","$"],["\\(","\\)"]];function EK(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){xl.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=xl.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Y9},displayAlign:"left"})},u=function(){i=xl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Y9},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var _="math-output-"+xl.randstr({},64);o=Xt.select("body").append("div").attr({id:_}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(DK(e));var w=o.node();return a===2?MathJax.Hub.Typeset(w):MathJax.typeset([w])},d=function(){var _=o.select(a===2?".MathJax_SVG":".MathJax"),w=!_.empty()&&o.select("svg").node();if(!w)xl.log("There was an error in the tex syntax.",e),t();else{var x=w.getBoundingClientRect(),A;a===2?A=Xt.select("body").select("#MathJax_SVG_glyphs"):A=_.select("defs"),t(_,A,x)}o.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},m=function(){n!=="svg"&&(MathJax.config.startup.output=n)},y=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,p,y):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),m(),b()}))}var X9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},PK={sub:"0.3em",sup:"-0.6em"},RK={sub:"-0.21em",sup:"0.42em"},V9="\u200B",G9=["http:","https:","mailto:","",void 0,":"],W9=Yn.NEWLINES=/(\r\n?|\n)/g,Pg=/(<[^<>]*>)/,Rg=/<(\/?)([^ >]*)(\s+(.*))?>/i,zK=//i;Yn.BR_TAG_ALL=//gi;var Z9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,J9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,$9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,NK=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function us(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&od(a)}var FK=/(^|;)\s*color:/;Yn.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Pg),o=[],s="",u=0,f=0;fi?o.push(c.slice(0,Math.max(0,m-i))+n):o.push(c.slice(0,m));break}s=""}}return o.join("")};var IK={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},HK=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function od(e){return e.replace(HK,function(r,t){var a;return t.charAt(0)==="#"?a=BK(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=IK[t],a||r})}Yn.convertEntities=od;function BK(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function OK(e,r){r=r.replace(W9," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(Dg.svg,"tspan");Xt.select(k).attr({class:"line",dy:i*qK+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var S=1;S.",r);return}var M=a.pop();k!==M.type&&xl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=zK.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(Pg),h=0;h{"use strict";var YK=kr(),ud=In(),Xc=zr(),sd=ze(),Q9=br(),VK=$o().isValid;function GK(e,r,t){var a=r?sd.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(sd.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function nT(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var lT=jy(),XK=lT.FORMAT_LINK,WK=lT.DATE_FORMAT_LINK;function ZK(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?zg:oT)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function zg(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+XK+"."].join(" ")}function oT(e,r){return zg(e,r)+[" And for dates see: "+WK+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}sT.exports={axisHoverFormat:ZK,descriptionOnlyNumbers:zg,descriptionWithDates:oT}});var An=O((Dge,MT)=>{"use strict";var uT=ra(),Xu=Hn(),AT=mi().dash,Fg=yt().extendFlat,fT=ot().templatedArray,Lge=_n().templateFormatStringDescription,cT=bi().descriptionWithDates,JK=Tt().ONEDAY,Oi=aa(),$K=Oi.HOUR_PATTERN,KK=Oi.WEEKDAY_PATTERN,Ng={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},QK=Fg({},Ng,{values:Ng.values.slice().concat(["sync"])});function vT(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var hT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},dT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},pT={valType:"data_array",editType:"ticks"},mT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function yT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function gT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var xT={valType:"color",dflt:Xu.defaultLine,editType:"ticks"},bT={valType:"color",dflt:Xu.lightLine,editType:"ticks"};function _T(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var wT=Fg({},AT,{editType:"ticks"}),TT={valType:"boolean",editType:"ticks"};MT.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Xu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:uT({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Oi.idRegex.x.toString(),Oi.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Oi.idRegex.x.toString(),Oi.idRegex.y.toString()],editType:"calc"},rangebreaks:fT("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[KK,$K,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:JK},editType:"calc"}),tickmode:QK,nticks:vT(),tick0:hT,dtick:dT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:pT,ticktext:{valType:"data_array",editType:"ticks"},ticks:mT,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:yT(),tickwidth:gT(),tickcolor:xT,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Fg({},AT,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:uT({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:cT("tick label")},tickformatstops:fT("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:cT("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Xu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:TT,gridcolor:bT,gridwidth:_T(),griddash:wT,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Xu.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Xu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Oi.idRegex.x.toString(),Oi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Oi.idRegex.x.toString(),Oi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Ng,nticks:vT("minor"),tick0:hT,dtick:dT,tickvals:pT,ticks:mT,ticklen:yT("minor"),tickwidth:gT("minor"),tickcolor:xT,gridcolor:bT,gridwidth:_T("minor"),griddash:wT,showgrid:TT,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var fd=O((Ege,CT)=>{"use strict";var xt=An(),kT=ra(),qT=yt().extendFlat,jK=pi().overrideAll;CT.exports=jK({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:xt.linecolor,outlinewidth:xt.linewidth,bordercolor:xt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:xt.minor.tickmode,nticks:xt.nticks,tick0:xt.tick0,dtick:xt.dtick,tickvals:xt.tickvals,ticktext:xt.ticktext,ticks:qT({},xt.ticks,{dflt:""}),ticklabeloverflow:qT({},xt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:xt.ticklen,tickwidth:xt.tickwidth,tickcolor:xt.tickcolor,ticklabelstep:xt.ticklabelstep,showticklabels:xt.showticklabels,labelalias:xt.labelalias,tickfont:kT({}),tickangle:xt.tickangle,tickformat:xt.tickformat,tickformatstops:xt.tickformatstops,tickprefix:xt.tickprefix,showtickprefix:xt.showtickprefix,ticksuffix:xt.ticksuffix,showticksuffix:xt.showticksuffix,separatethousands:xt.separatethousands,exponentformat:xt.exponentformat,minexponent:xt.minexponent,showexponent:xt.showexponent,title:{text:{valType:"string"},font:kT({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Wc=O((Rge,LT)=>{"use strict";var eQ=fd(),rQ=Cu().counter,tQ=lg(),ST=$o().scales,Pge=tQ(ST);function cd(e){return"`"+e+"`"}LT.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?ST[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+cd(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",b=cd(u+d),_=cd(u+p),w=cd(u+m),x=_+" and "+w,A={};A[p]=A[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:l,editType:"calc"},M.colorbar=eQ),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:rQ("coloraxis"),dflt:null,editType:"calc"}),M}});var Hg=O((zge,DT)=>{"use strict";var aQ=yt().extendFlat,nQ=Wc(),Ig=$o().scales;DT.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Ig.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Ig.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Ig.RdBu,editType:"calc"}},coloraxis:aQ({_isSubplotObj:!0,editType:"calc"},nQ("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Bg=O((Nge,ET)=>{"use strict";var iQ=ze();ET.exports=function(r){return iQ.isPlainObject(r.colorbar)}});var Vg=O(Yg=>{"use strict";var Og=zr(),PT=ze(),RT=Tt(),lQ=RT.ONEDAY,oQ=RT.ONEWEEK;Yg.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?lQ:1;if(!e)return i;if(Og(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=Og(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};Yg.tick0=function(e,r,t,a){if(r==="date")return PT.cleanDate(e,PT.dateTick0(t,a%oQ===0?1:0));if(!(a==="D1"||a==="D2"))return Og(e)?Number(e):0}});var vd=O((Ige,NT)=>{"use strict";var zT=Vg(),sQ=ze().isArrayOrTypedArray,uQ=on().isTypedArraySpec,fQ=on().decodeTypedArraySpec;NT.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(_){var w=o[_];return uQ(w)&&(w=fQ(w)),w!==void 0?w:(s._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=sQ(d)?"array":h?"linear":"auto",m=a(u+"tickmode",p);if(m==="auto"||m==="sync")a(u+"nticks");else if(m==="linear"){var y=s.dtick=zT.dtick(h,n);s.tick0=zT.tick0(c,n,t.calendar,y)}else if(n!=="multicategory"){var b=a(u+"tickvals");b===void 0?s.tickmode="auto":l||a("ticktext")}}});var hd=O((Hge,IT)=>{"use strict";var Gg=ze(),FT=An();IT.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?FT.minor:FT,u=i?"minor.":"",f=Gg.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Gg.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=Gg.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var Ug=O((Bge,HT)=>{"use strict";HT.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Vn=O((Oge,BT)=>{"use strict";var dd=ze(),cQ=ot();BT.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=dd.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=cQ.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Xg=ze(),vQ=br().contrast,OT=An(),hQ=Ug(),dQ=Vn();YT.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Xg.isPlainObject(l)||delete t.labelalias;var o=hQ(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?vQ(i.bgColor):f&&f!==OT.color.dflt?f:u.color;if(Xg.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");dQ(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:pQ}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function pQ(e,r){function t(n,i){return Xg.coerce(e,r,OT.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var md=O((Vge,VT)=>{"use strict";var mQ=Ug();VT.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=mQ(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Wg=O((Gge,GT)=>{"use strict";var jl=ze(),yQ=ot(),gQ=vd(),xQ=hd(),bQ=pd(),_Q=md(),wQ=fd();GT.exports=function(r,t,a){var n=yQ.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return jl.coerce(i,n,wQ,R,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(c?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:c?u:s);var p=l("yref"),m=l("xref"),y=p==="paper",b=m==="paper",_,w,x,A="left";c?(x="middle",A=b?"left":"right",_=b?1.02:1,w=.5):(x=y?"bottom":"top",A="center",_=.5,w=y?1.02:1),jl.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),jl.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:w}},"y"),l("xanchor",A),l("xpad"),l("yanchor",x),l("ypad"),jl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=jl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),gQ(i,n,l,"linear");var M=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(S.bgColor="black"),_Q(i,n,l,"linear",S),bQ(i,n,l,"linear",S),xQ(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:M,E=jl.extendFlat({},M,{family:D.family,size:jl.bigFont(D.size)});jl.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Wu=O((Uge,WT)=>{"use strict";var UT=zr(),Jg=ze(),TQ=Bg(),AQ=Wg(),XT=$o().isValid,MQ=gr().traceIs;function Zg(e,r){var t=r.slice(0,r.length-1);return r?Jg.nestedProperty(e,t).get()||{}:e}WT.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Zg(r,l),f=Zg(t,l),c=Zg(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(l+"coloraxis");if(p){var m=MQ(t,"contour")&&Jg.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(h),y[0]!==m&&(y[0]=!1,Jg.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[h]];return}}var b=u[o+"min"],_=u[o+"max"],w=UT(b)&&UT(_)&&b<_,x=n(l+o+"auto",!w);x?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var A=u.colorscale,k=c.colorscale,M;if(A!==void 0&&(M=!XT(A)),k!==void 0&&(M=!XT(k)),n(l+"autocolorscale",M),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=TQ(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),AQ(u,f,a))}}});var KT=O((Xge,$T)=>{"use strict";var ZT=ze(),kQ=ot(),JT=Hg(),qQ=Wu();$T.exports=function(r,t){function a(c,h){return ZT.coerce(r,t,JT,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,h){return ZT.coerce(i,l,JT.coloraxis,c,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=kQ.newContainer(t,s,"coloraxis"),l._name=s,qQ(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var CQ=ze(),SQ=Tn().hasColorscale,LQ=Tn().extractOpts;QT.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?CQ.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=LQ(h),p=d.auto;(p||d.min===void 0)&&a(h,c.min),(p||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var eA=zr(),$g=ze(),DQ=Tn().extractOpts;rA.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?$g.nestedProperty(t,l).get():t,s=DQ(o),u=s.auto!==!1,f=s.min,c=s.max,h=s.mid,d=function(){return $g.aggNums(Math.min,null,i)},p=function(){return $g.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&eA(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(o._colorAx&&eA(c)?c=Math.max(c,p()):c=p()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var Kg=O((Jge,tA)=>{"use strict";var yd=$o(),Zu=Tn();tA.exports={moduleType:"component",name:"colorscale",attributes:Wc(),layoutAttributes:Hg(),supplyLayoutDefaults:KT(),handleDefaults:Wu(),crossTraceDefaults:jT(),calc:Zc(),scales:yd.scales,defaultScale:yd.defaultScale,getScale:yd.get,isValidScale:yd.isValid,hasColorscale:Zu.hasColorscale,extractOpts:Zu.extractOpts,extractScale:Zu.extractScale,flipScale:Zu.flipScale,makeColorScaleFunc:Zu.makeColorScaleFunc,makeColorScaleFuncFromTrace:Zu.makeColorScaleFuncFromTrace}});var Mn=O(($ge,nA)=>{"use strict";var aA=ze(),EQ=on().isTypedArraySpec;nA.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return aA.isPlainObject(r)&&(aA.isArrayOrTypedArray(r.size)||EQ(r.size))}}});var lA=O((Kge,iA)=>{"use strict";var PQ=zr();iA.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return PQ(s)&&s>0?Math.max(s,i):0}}});var Yi=O(Pa=>{"use strict";var gd=ze();Pa.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Pa.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{uA.exports=IQ;var Qg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},FQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function IQ(e){var r=[];return e.replace(FQ,function(t,a,n){var i=a.toLowerCase();for(n=BQ(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Qg[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var OQ=jg(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",fA=Math.sqrt(2),eo=Math.sqrt(3),e2=Math.PI,r2=Math.cos,t2=Math.sin;pA.exports={circle:{n:0,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.4,2),n=Je(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.8/fA,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Sr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2/eo,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2/eo,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2/eo,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2/eo,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),l=Je(e*-.309,2),o=Je(e*.809,2);return Sr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*eo/2,2);return Sr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*eo/2,2);return Sr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.924,2),n=Je(e*.383,2);return Sr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Cr(r))return qr;var a=e*1.4,n=Je(a*.225,2),i=Je(a*.951,2),l=Je(a*.363,2),o=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),c=Je(a*.809,2),h=Je(a*.382,2);return Sr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+h+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Sr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*eo*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*eo*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.7,2),n=Je(e*1.4,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2),n=Je(e*.7,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e/fA,2);return Sr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.3,2),n=Je(e*.65,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*.85,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e/2,2),n=Je(e,2);return Sr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2);return Sr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Sr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Cr(r))return qr;var a=e2/2.5,n=2*e*r2(a),i=2*e*t2(a);return Sr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Cr(r))return qr;var a=e2/4,n=2*e*r2(a),i=2*e*t2(a);return Sr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Cr(e){return e===null}var cA,vA,hA,dA;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(hA===e&&dA===r&&cA===t)return vA;hA=e,dA=r,cA=t;function a(y,b){var _=r2(y),w=t2(y),x=b[0],A=b[1]+(r||0);return[x*_-A*w,x*w+A*_]}for(var n=e/180*e2,i=0,l=0,o=OQ(t),s="",u=0;u{"use strict";var ia=kr(),at=ze(),YQ=at.numberFormat,hs=zr(),s2=In(),bd=gr(),ka=br(),VQ=Kg(),$c=at.strTranslate,_d=na(),GQ=ss(),UQ=Ma(),XQ=UQ.LINE_SPACING,kA=qu().DESELECTDIM,WQ=Mn(),ZQ=lA(),JQ=Yi().appendArrayPointValue,je=NA.exports={};je.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ka.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",a2(KQ(f))),s&&e.style("text-shadow",s==="auto"?_d.makeTextShadow(ka.contrast(i)):a2(s)),u&&e.style("text-decoration-line",a2(QQ(u)))};function a2(e){return e==="none"?void 0:e}var $Q={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function KQ(e){return $Q[e]}function QQ(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}je.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};je.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};je.setRect=function(e,r,t,a,n){e.call(je.setPosition,r,t).call(je.setSize,a,n)};je.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(hs(n)&&hs(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",$c(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=ia.select(this);je.translatePoint(a,n,r,t)})};je.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};je.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=bd.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){je.hideOutsideRangePoint(u,ia.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!hs(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};je.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ka.stroke(r,a||i.color),je.dashLine(r,o,l)};je.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";ia.select(this).call(ka.stroke,t||i.color).call(je.dashLine,o,l)})};je.dashLine=function(e,r,t){t=+t||0,r=je.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};je.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function qA(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=je.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;je.pattern(e,"point",t,d,o,c,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;p==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(LA,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(je.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ka.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=ia.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};qA(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ia.select(this);a[0].trace&&qA(n,a[0].trace,r,t)})};var yA=mA();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(yA).forEach(function(e){var r=yA[e],t=r.n;je.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),je.symbolNames[t]=e,je.symbolFuncs[t]=r.f,je.symbolBackOffs[t]=r.backoff||0,r.needLine&&(je.symbolNeedLines[t]=!0),r.noDot?je.symbolNoDot[t]=!0:je.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(je.symbolNoFill[t]=!0)});var jQ=je.symbolNames.length,ej="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(hs(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=je.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=jQ||e>=400?0:Math.floor(Math.max(e,0))};function CA(e,r,t,a){var n=e%100;return je.symbolFuncs[n](r,t,a)+(e>=200?ej:"")}var gA=YQ("~f"),SA={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};je.gradient=function(e,r,t,a,n,i){var l=SA[a];return LA(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function LA(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=je.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=c2(e,t),c=f2(e,t);r.attr("d",CA(u,s,f,c))}var h=!1,d,p,m;if(e.so)m=o.outlierwidth,p=o.outliercolor,d=l.outliercolor;else{var y=(o||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):at.isArrayOrTypedArray(o.color)?p=ka.defaultLine:p=o.color,at.isArrayOrTypedArray(l.color)&&(d=ka.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(o||{}).dash;if(b&&je.dashLine(r,b,m),e.om)r.call(ka.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var _=l.gradient,w=e.mgt;w?h=!0:w=_&&_.type,at.isArrayOrTypedArray(w)&&(w=w[0],SA[w]||(w=0));var x=l.pattern,A=je.getPatternAttr,k=x&&(A(x.shape,e.i,"")||A(x.path,e.i,""));if(w&&w!=="none"){var M=e.mgc;M?h=!0:M=_.color;var S=t.uid;h&&(S+="-"+e.i),je.gradient(r,n,S,w,[[0,M],[1,d]],"fill")}else if(k){var D=!1,E=x.fgcolor;!E&&i&&i.color&&(E=i.color,D=!0);var R=A(E,e.i,i&&i.color||null),N=A(x.bgcolor,e.i,null),H=x.fgopacity,I=A(x.size,e.i,8),Y=A(x.solidity,e.i,.3);D=D||e.mcc||at.isArrayOrTypedArray(x.shape)||at.isArrayOrTypedArray(x.path)||at.isArrayOrTypedArray(x.bgcolor)||at.isArrayOrTypedArray(x.fgcolor)||at.isArrayOrTypedArray(x.size)||at.isArrayOrTypedArray(x.solidity);var U=t.uid;D&&(U+="-"+e.i),je.pattern(r,"point",n,U,k,I,Y,e.mcc,x.fillmode,N,R,H)}else at.isArrayOrTypedArray(d)?ka.fill(r,d[e.i]):ka.fill(r,d);m&&ka.stroke(r,p)}};je.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=je.tryColorscale(t,""),r.lineScale=je.tryColorscale(t,"line"),bd.traceIs(e,"symbols")&&(r.ms2mrc=WQ.isBubble(e)?ZQ(e):function(){return(t.size||6)/2}),e.selectedpoints&&at.extendFlat(r,je.makeSelectedPointStyleFns(e)),r};je.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(at.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(x){var A=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:A:c?u:kA*A});var h=n.color,d=i.color,p=l.color;(d||p)&&(r.selectedColorFn=function(x){var A=x.mcc||h;return x.selected?d||A:p||A});var m=n.size,y=i.size,b=l.size,_=y!==void 0,w=b!==void 0;return bd.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(x){var A=x.mrc||m/2;return x.selected?_?y/2:A:w?b/2:A}),r};je.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:ka.addOpacity(c,kA))},r};je.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ka.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",CA(je.symbolNumber(o),s,c2(l,r),f2(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ia.select(this),o=0;o0?t:0}je.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=je.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=ia.select(this),u=i?at.extractOption(o,r,"txt","texttemplate"):at.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},h={};JQ(h,r,o.i),u=at.texttemplateString({data:[h,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var d=o.tp||r.textposition,p=EA(o,r),m=a?a(o):o.tc||r.textfont.color;s.call(je.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:p,color:m}).text(u).call(_d.convertToTspans,t).call(DA,d,p,o.mrc)})}};je.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedTextStyleFns(r);e.each(function(a){var n=ia.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=EA(a,r);ka.fill(n,i);var s=bd.traceIs(r,"bar-like");DA(n,l,o,a.mrc2||a.mrc,s)})}};var xA=.5;je.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(A<=c&&A>=u||A>=c&&A<=u)&&(e=[x,A])}return e}je.applyBackoff=zA;je.makeTester=function(){var e=at.ensureSingleById(ia.select("body"),"svg","js-plotly-tester",function(t){t.attr(GQ.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=at.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});je.tester=e,je.testref=r};je.savedBBoxes={};var i2=0,aj=1e4;je.bBox=function(e,r,t){t||(t=bA(e));var a;if(t){if(a=je.savedBBoxes[t],a)return at.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=bA(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=je.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=je.savedBBoxes[t],a)return at.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ia.select(u).attr("transform",null).call(_d.positionText,0,0);var c=u.getBoundingClientRect(),h=je.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return i2>=aj&&(je.savedBBoxes={},i2=0),t&&(je.savedBBoxes[t]=d),i2++,at.extendFlat({},d)};function bA(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}je.setClipUrl=function(e,r,t){e.attr("clip-path",u2(r,t))};function u2(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}je.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};je.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=$c(r,t),l=l.trim(),e[i]("transform",l),l};je.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};je.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var nj=/\s*sc.*/;je.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(nj,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var ij=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ia.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(ij);r===1&&t===1?a=[]:a=[$c(l,o),"scale("+r+","+t+")",$c(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function f2(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}je.getMarkerStandoff=f2;var Jc=Math.atan2,fs=Math.cos,$u=Math.sin;function _A(e,r){var t=r[0],a=r[1];return[t*fs(e)-a*$u(e),t*$u(e)+a*fs(e)]}var wA,TA,AA,MA,l2,o2;function c2(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||at.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=Jc(h[1]-n,h[0]-a),p=Jc(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,_=wA/180*Math.PI,w=TA/180*Math.PI,x=_-y,A=fs(w)*$u(x),k=$u(w)*fs(b)-fs(w)*$u(b)*fs(x);m=-Jc(A,k)-Math.PI,wA=u,TA=f}var M=_A(d,[fs(m),0]),S=_A(p,[$u(m),0]);t=Jc(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(o2===r.uid&&e.i===l2+1)&&(t=null)}if(i==="previous"&&!r._geo)if(o2===r.uid&&e.i===l2+1&&hs(a)&&hs(n)){var D=a-AA,E=n-MA,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=Jc(E,D)/Math.PI*180+90}else t=null}return AA=a,MA=n,l2=e.i,o2=r.uid,t}je.getMarkerAngle=c2});var Kc=O((t2e,BA)=>{"use strict";var Ku=kr(),lj=zr(),oj=Et(),v2=gr(),ds=ze(),FA=ds.strTranslate,wd=Yr(),Td=br(),Qu=na(),IA=qu(),sj=Ma().OPPOSITE_SIDE,HA=/ [XY][0-9]* /,h2=1.6,d2=1.6;function uj(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,y=d&&d.font?d.font:{},b=y.family,_=y.size,w=y.color,x=y.weight,A=y.style,k=y.variant,M=y.textcase,S=y.lineposition,D=y.shadow,E=t.subtitlePropName,R=!!E,N=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},I=(H.text||"").trim(),Y=!1,U=1,V=H.font,G=V.family,B=V.size,J=V.color,X=V.weight,j=V.style,le=V.variant,fe=V.textcase,ve=V.lineposition,ee=V.shadow,Ce;i==="title.text"?Ce="titleText":i.indexOf("axis")!==-1?Ce="axisTitleText":i.indexOf("colorbar")!==-1&&(Ce="colorbarTitleText");var ce=e._context.edits[Ce];function be(Ie,We){return Ie===void 0||We===void 0?!1:Ie.replace(HA," % ")===We.replace(HA," % ")}p===""?h=0:be(p,l)&&(ce||(p=""),h=.2,m=!0),R&&(I===""?U=0:be(I,N)&&(ce||(I=""),U=.2,Y=!0)),t._meta?p=ds.templateString(p,t._meta):a._meta&&(p=ds.templateString(p,a._meta));var _e=p||I||ce,ge;c||(c=ds.ensureSingle(a._infolayer,"g","g-"+r),ge=a._hColorbarMoveTitle);var W=c.selectAll("text."+r).data(_e?[0]:[]);W.enter().append("text"),W.text(p).attr("class",r),W.exit().remove();var Q=null,Z=r+"-subtitle",oe=I||ce;if(R&&(Q=c.selectAll("text."+Z).data(oe?[0]:[]),Q.enter().append("text"),Q.text(I).attr("class",Z),Q.exit().remove()),!_e)return c;function me(Ie,We){ds.syncOrAsync([xe,Re],{title:Ie,subtitle:We})}function xe(Ie){var We=Ie.title,De=Ie.subtitle,He;!f&&ge&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ge)&&(He+=FA(0,(f.offset||0)-(ge||0)))):He=null,We.attr("transform",He);function Xe(ke){if(ke){var qe=Ku.select(ke.node().parentNode).select("."+Z);if(!qe.empty()){var Be=ke.node().getBBox();if(Be.height){var Ze=Be.y+Be.height+h2*B;qe.attr("y",Ze)}}}}if(We.style("opacity",h*Td.opacity(w)).call(wd.font,{color:Td.rgb(w),size:Ku.round(_,2),family:b,weight:x,style:A,variant:k,textcase:M,shadow:D,lineposition:S}).attr(u).call(Qu.convertToTspans,e,Xe),De&&!De.empty()){var ie=c.select("."+r+"-math-group"),we=We.node().getBBox(),$e=ie.node()?ie.node().getBBox():void 0,hr=$e?$e.y+$e.height+h2*B:we.y+we.height+d2*B,Ne=ds.extendFlat({},u,{y:hr});De.attr("transform",He),De.style("opacity",U*Td.opacity(J)).call(wd.font,{color:Td.rgb(J),size:Ku.round(B,2),family:G,weight:X,style:j,variant:le,textcase:fe,shadow:ee,lineposition:ve}).attr(Ne).call(Qu.convertToTspans,e)}return oj.previousPromises(e)}function Re(Ie){var We=Ie.title,De=Ku.select(We.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var He=sj[s.side],Xe=s.side==="left"||s.side==="top"?-1:1,ie=lj(s.pad)?s.pad:2,we=wd.bBox(De.node()),$e={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var Ne in hr)for(var ke in hr[Ne]){var qe=hr[Ne][ke];$e[ke]=Math.max($e[ke],qe)}var Be={left:$e.l,top:$e.t,right:a.width-$e.r,bottom:a.height-$e.b},Ze=s.maxShift||Xe*(Be[s.side]-we[s.side]),Ve=0;if(Ze<0)Ve=Ze;else{var Ue=s.offsetLeft||0,ir=s.offsetTop||0;we.left-=Ue,we.right-=Ue,we.top-=ir,we.bottom-=ir,s.selection.each(function(){var er=wd.bBox(this);ds.bBoxIntersect(we,er,ie)&&(Ve=Math.max(Ve,Xe*(er[s.side]-we[He])+ie))}),Ve=Math.min(Ze,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Ze<0){var ar={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];De.attr("transform",FA(ar[0],ar[1]))}}}W.call(me,Q);function Ee(Ie,We){Ie.text(We).on("mouseover.opacity",function(){Ku.select(this).transition().duration(IA.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ku.select(this).transition().duration(IA.HIDE_PLACEHOLDER).style("opacity",0)})}if(ce&&(p?W.on(".opacity",null):(Ee(W,l),m=!0),W.call(Qu.makeEditable,{gd:e}).on("edit",function(Ie){o!==void 0?v2.call("_guiRestyle",e,i,Ie,o):v2.call("_guiRelayout",e,i,Ie)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(Ie){this.text(Ie||" ").call(Qu.positionText,u.x,u.y)}),R)){if(R&&!p){var Se=W.node().getBBox(),Ge=Se.y+Se.height+d2*B;Q.attr("y",Ge)}I?Q.on(".opacity",null):(Ee(Q,N),Y=!0),Q.call(Qu.makeEditable,{gd:e}).on("edit",function(Ie){v2.call("_guiRelayout",e,"title.subtitle.text",Ie)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(Ie){this.text(Ie||" ").call(Qu.positionText,Q.attr("x"),Q.attr("y"))})}return W.classed("js-placeholder",m),Q&&!Q.empty()&&Q.classed("js-placeholder",Y),c}BA.exports={draw:uj,SUBTITLE_PADDING_EM:d2,SUBTITLE_PADDING_MATHJAX_EM:h2}});var Dd=O((a2e,UA)=>{"use strict";var fj=kr(),cj=Tu().utcFormat,st=ze(),vj=st.numberFormat,Vi=zr(),ro=st.cleanNumber,hj=st.ms2DateTime,OA=st.dateTime2ms,Gi=st.ensureNumber,YA=st.isArrayOrTypedArray,to=Tt(),Ad=to.FP_SAFE,_i=to.BADNUM,dj=to.LOG_CLIP,pj=to.ONEWEEK,Md=to.ONEDAY,kd=to.ONEHOUR,VA=to.ONEMIN,GA=to.ONESEC,qd=Ut(),Ld=aa(),Cd=Ld.HOUR_PATTERN,Sd=Ld.WEEKDAY_PATTERN;function Qc(e){return Math.pow(10,e)}function p2(e){return e!=null}UA.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,A){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&A&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*dj*Math.abs(k-M))}else return _i}function l(x,A,k,M){if((M||{}).msUTC&&Vi(x))return+x;var S=OA(x,k||r.calendar);if(S===_i)if(Vi(x)){x=+x;var D=Math.floor(st.mod(x+.05,1)*10),E=Math.round(x-D/10);S=OA(new Date(E))+D/10}else return _i;return S}function o(x,A,k){return hj(x,A,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(p2(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var A=r._categories.length-1;return r._categoriesMap[x]=A,A}return _i}function f(x,A){for(var k=new Array(A),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,S=M*x,D=0,E=0;EN)D=E+1;else{D=S<(R+N)/2?E:E+1;break}}var H=r._B[D]||0;return isFinite(H)?p(x,r._m2,H):0},b=function(x){var A=r._rangebreaks.length;if(!A)return m(x,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return m(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Gi,r.l2c=r.type==="log"?Qc:Gi,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(x,A){return y(i(x,A))}:y,r.p2c=r.type==="log"?function(x){return Qc(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=ro,r.c2d=r.c2r=r.l2d=r.l2r=Gi,r.d2p=r.r2p=function(x){return r.l2p(ro(x))},r.p2d=r.p2r=b,r.cleanPos=Gi):r.type==="log"?(r.d2r=r.d2l=function(x,A){return i(ro(x),A)},r.r2d=r.r2c=function(x){return Qc(ro(x))},r.d2c=r.r2l=ro,r.c2d=r.l2r=Gi,r.c2r=i,r.l2d=Qc,r.d2p=function(x,A){return r.l2p(r.d2r(x,A))},r.p2d=function(x){return Qc(b(x))},r.r2p=function(x){return r.l2p(ro(x))},r.p2r=b,r.cleanPos=Gi):r.type==="date"?(r.d2r=r.r2d=st.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(x,A,k){return r.l2p(l(x,0,k))},r.p2d=r.p2r=function(x,A,k){return o(b(x),A,k)},r.cleanPos=function(x){return st.cleanDate(x,_i,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var A=d(x);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=Gi,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Gi(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var A=h(x);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Gi,r.r2l=h,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Gi(x)},r.setupMultiCategory=function(x){var A=r._traceIndices,k,M,S=r._matchGroup;if(S&&r._categories.length===0){for(var D in S)if(D!==a){var E=t[qd.id2name(D)];A=A.concat(E._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(k=0;kE[1]&&(M[D?0:1]=k,S[1]=E[1]),S[0]>=S[1])if(A!==void 0){var R=E[0]+1;k!==void 0&&(R=Math.min(R,E[1])),M[D?0:1]=r.l2r(R)}else k!==void 0&&(M[D?1:0]=r.l2r(E[1]-1))}},r.cleanRange=function(x,A){r._cleanRange(x,A),r.limitRange(x)},r._cleanRange=function(x,A){A||(A={}),x||(x="range");var k=st.nestedProperty(r,x).get(),M,S;if(r.type==="date"?S=st.dfltRange(r.calendar):n==="y"?S=Ld.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=A.dfltRange||Ld.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){st.nestedProperty(r,x).set(S);return}var D=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=st.cleanDate(k[0],_i,r.calendar),k[1]=st.cleanDate(k[1],_i,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!st.isDateTime(k[M],r.calendar)){r[x]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=st.constrain(r.r2l(k[0]),st.MIN_MS+1e3,st.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!Vi(k[M]))if(!(D||E)&&Vi(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=S;break}if(k[M]<-Ad?k[M]=-Ad:k[M]>Ad&&(k[M]=Ad),k[0]===k[1]){var N=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=N,k[1]+=N}}},r.setScale=function(x){var A=t._size;if(r.overlaying){var k=qd.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=x&&r._r?"_r":"range",S=r.calendar;r.cleanRange(M);var D=r.r2l(r[M][0],S),E=r.r2l(r[M][1],S),R=n==="y";if(R?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,H;if(r._rangebreaks=r.locateBreaks(Math.min(D,E),Math.max(D,E)),r._rangebreaks.length){for(N=0;NE&&(I=!I),I&&r._rangebreaks.reverse();var Y=I?-1:1;for(r._m2=Y*r._length/(Math.abs(E-D)-r._lBreaks),r._B.push(-r._m2*(R?E:D)),N=0;NS&&(S+=7,DS&&(S+=24,D=M&&D=M&&x=ee.min&&(jee.max&&(ee.max=le),fe=!1)}fe&&E.push({min:j,max:le})}};for(k=0;k{"use strict";var XA=zr(),m2=ze(),mj=Tt().BADNUM,Ed=m2.isArrayOrTypedArray,yj=m2.isDateTime,gj=m2.cleanNumber,WA=Math.round;JA.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(Ed(n)&&!n.length)return"-";if(!i&&Tj(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function ZA(e){return Math.max(1,(e-1)/1e3)}function wj(e,r){for(var t=e.length,a=ZA(t),n=0,i=0,l={},o=0;on*2}function Tj(e){return Ed(e[0])&&Ed(e[1])}});var jc=O((i2e,aM)=>{"use strict";var Aj=kr(),jA=zr(),ao=ze(),Pd=Tt().FP_SAFE,Mj=gr(),kj=Yr(),eM=Ut(),qj=eM.getFromId,Cj=eM.isLinked;aM.exports={applyAutorangeOptions:tM,getAutoRange:g2,makePadFn:x2,doAutoRange:Lj,findExtremes:Dj,concatExtremes:w2};function g2(e,r){var t,a,n=[],i=e._fullLayout,l=x2(i,r,0),o=x2(i,r,1),s=w2(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return ao.simpleMap(r.range,r.r2l);var c=u[0].val,h=f[0].val;for(t=1;t0&&(E=w-l(k)-o(M),E>x?R/E>A&&(S=k,D=M,A=R/E):R/w>A&&(S={val:k.val,nopad:1},D={val:M.val,nopad:1},A=R/w));function N(V,G){return Math.max(V,o(G))}if(c===h){var H=c-1,I=c+1;if(b)if(c===0)n=[0,1];else{var Y=(c>0?f:u).reduce(N,0),U=c/(1-Math.min(.5,Y/w));n=c>0?[0,U]:[U,0]}else _?n=[Math.max(0,H),Math.max(1,I)]:n=[H,I]}else b?(S.val>=0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(S.val-A*l(S)<0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),A=(D.val-S.val-$A(r,k.val,M.val))/(w-l(S)-o(D)),n=[S.val-A*l(S),D.val+A*o(D)];return n=tM(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),ao.simpleMap(n,r.l2r||Number)}function $A(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),S=x(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c0&&(_=h),h>w&&h-Pd&&(_=h),h>w&&h=R;c--)E(c);return{min:a,max:n,opts:t}}function b2(e,r,t,a){rM(e,r,t,a,Ej)}function _2(e,r,t,a){rM(e,r,t,a,Pj)}function rM(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function QA(e){return jA(e)&&Math.abs(e)=r}function Rj(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Rd(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Rd(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function zj(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Rd(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Rd(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Rd(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=Rj(t,r),a=zj(a,r),[t,a]}});var Zr=O((o2e,kM)=>{"use strict";var Gn=kr(),Wt=zr(),ju=Et(),rv=gr(),xr=ze(),ef=xr.strTranslate,ps=na(),Nj=Kc(),tv=br(),kn=Yr(),Fj=An(),nM=Vg(),l2e=aa(),qa=Tt(),Ij=qa.ONEMAXYEAR,Fd=qa.ONEAVGYEAR,Id=qa.ONEMINYEAR,Hj=qa.ONEMAXQUARTER,k2=qa.ONEAVGQUARTER,Hd=qa.ONEMINQUARTER,Bj=qa.ONEMAXMONTH,rf=qa.ONEAVGMONTH,Bd=qa.ONEMINMONTH,qn=qa.ONEWEEK,Oa=qa.ONEDAY,no=Oa/2,Xi=qa.ONEHOUR,av=qa.ONEMIN,Od=qa.ONESEC,Oj=qa.ONEMILLI,Yj=qa.ONEMICROSEC,ms=qa.MINUS_SIGN,Vd=qa.BADNUM,q2={K:"zeroline"},C2={K:"gridline",L:"path"},S2={K:"minor-gridline",L:"path"},pM={K:"tick",L:"path"},iM={K:"tick",L:"text"},lM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Gd=Ma(),ev=Gd.MID_SHIFT,ys=Gd.CAP_SHIFT,nv=Gd.LINE_SPACING,Vj=Gd.OPPOSITE_SIDE,Yd=3,Oe=kM.exports={};Oe.setConvert=Dd();var Gj=y2(),Wi=Ut(),Uj=Wi.idSort,Xj=Wi.isLinked;Oe.id2name=Wi.id2name;Oe.name2id=Wi.name2id;Oe.cleanId=Wi.cleanId;Oe.list=Wi.list;Oe.listIds=Wi.listIds;Oe.getFromId=Wi.getFromId;Oe.getFromTrace=Wi.getFromTrace;var mM=jc();Oe.getAutoRange=mM.getAutoRange;Oe.findExtremes=mM.findExtremes;var Wj=1e-4;function P2(e){var r=(e[1]-e[0])*Wj;return[e[0]-r,e[1]+r]}Oe.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},xr.coerce(e,r,u,s)};Oe.coerceRefArray=function(e,r,t,a,n,i,l){let o=a.charAt(a.length-1);var s=t._fullLayout._subplots[o+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(h=>h+" domain")),s=s.concat(i||[]),f.length>l?(xr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Oe.saveRangeInitial=function(e,r){for(var t=Oe.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Oe.tickIncrement(e,"M6","reverse")+Oa*1.5:i.exactMonths>l?e=Oe.tickIncrement(e,"M1","reverse")+Oa*15.5:e-=no;var s=Oe.tickIncrement(e,t);if(s<=a)return s}return e}Oe.prepMinorTicks=function(e,r,t){var c,h;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&Wt(r._tmin),n;if(a){var i=Oe.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=xr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=xr.simpleMap(n,r.l2r),e._isMinor=!0,Oe.prepTicks(e,t),a){var o=Wt(r.dtick),s=Wt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?T2(u,f)?u===2*qn&&f===2*Oa&&(e.dtick=qn):u===2*qn&&f===3*Oa?e.dtick=qn:u===qn&&!(r._input.minor||{}).nticks?e.dtick=Oa:uM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":T2(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?T2(u,f)||(e.dtick=uM(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0)};function T2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function uM(e,r){return Math.abs(e/r-1)<.001}Oe.prepTicks=function(e,r){var t=xr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?xr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=xr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Oe.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,c=0;f>=Id?u>=Id&&u<=Ij?c=u:c=Fd:t===k2&&f>=Hd?u>=Hd&&u<=Hj?c=u:c=k2:f>=Bd?u>=Bd&&u<=Bj?c=u:c=rf:t===qn&&f>=qn?c=qn:f>=Oa?c=Oa:t===no&&f>=no?c=no:t===Xi&&f>=Xi&&(c=Xi);var h;c>=u&&(c=u,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;yqn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Oe.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||xr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=xr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);A--){var k=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=A?r:xr.extendFlat({},r,x?r.minor:{minor:{}});if(k?Oe.prepMinorTicks(M,r,t):Oe.prepTicks(M,t),M.tickmode==="array"){A?(y=[],p=fM(r,!k)):(b=[],m=fM(r,!k));continue}if(M.tickmode==="sync"){y=[],p=jj(r);continue}var S=P2(u),D=S[0],E=S[1],R=Wt(M.dtick),N=a==="log"&&!(R||M.dtick.charAt(0)==="L"),H=Oe.tickFirst(M,t);if(A){if(r._tmin=H,H=E:Y<=E;Y=Oe.tickIncrement(Y,G,f,n)){if(A&&U++,M.rangebreaks&&!f){if(Y=h)break}if(y.length>d||Y===I)break;I=Y;var B={value:Y};A?(N&&Y!==(Y|0)&&(B.simpleLabel=!0),i>1&&U%i&&(B.skipLabel=!0),y.push(B)):(B.minor=!0,b.push(B))}}if(!b||b.length<3)s=!1;else{var J=(b[2].value-b[1].value)*(o?-1:1);Aee(J,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)_=y;else{var X=y.concat(b);l&&y.length&&(X=X.slice(1)),X=X.sort(function(Ie,We){return Ie.value-We.value}).filter(function(Ie,We,De){return We===0||Ie.value!==De[We-1].value});var j=X.map(function(Ie,We){return Ie.minor===void 0&&!Ie.skipLabel?We:null}).filter(function(Ie){return Ie!==null});j.forEach(function(Ie){s.map(function(We){var De=Ie+We;De>=0&&De-1;ge--){if(y[ge].drop){y.splice(ge,1);continue}y[ge].value=M2(y[ge].value,r);var oe=r.c2p(y[ge].value);(W?Z>oe-Q:Zh||Heh&&(De.periodX=h),Hen&&hFd)r/=Fd,a=n(10),e.dtick="M"+12*Ui(r,a,zd);else if(i>rf)r/=rf,e.dtick="M"+Ui(r,1,cM);else if(i>Oa){if(e.dtick=Ui(r,Oa,e._hasDayOfWeekBreaks?[1,2,7,14]:eee),!t){var l=Oe.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=xr.dateTick0(e.calendar,2):e.tick0=xr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Xi?e.dtick=Ui(r,Xi,cM):i>av?e.dtick=Ui(r,av,vM):i>Od?e.dtick=Ui(r,Od,vM):(a=n(10),e.dtick=Ui(r,a,zd))}else if(e.type==="log"){e.tick0=0;var s=xr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Ui(r,a,zd)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):F2(e)?(e.tick0=0,a=1,e.dtick=Ui(r,a,ree)):(e.tick0=0,a=n(10),e.dtick=Ui(r,a,zd));if(e.dtick===0&&(e.dtick=1),!Wt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function bM(e){var r=e.dtick;if(e._tickexponent=0,!Wt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Oa&&n<=10||r>=Oa*15)e._tickround="d";else if(r>=av&&n<=16||r>=Xi)e._tickround="M";else if(r>=Od&&n<=19||r>=av)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Wt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Wt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(tf(e.exponentformat)&&e.exponentformat!=="SI extended"&&!R2(s)||tf(e.exponentformat)&&e.exponentformat==="SI extended"&&!z2(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Oe.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Wt(r))return xr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return xr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?xM:gM,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),o,t);return Math.floor(s)+Math.log(Gn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Oe.tickFirst=function(e,r){var t=e.r2l||Number,a=xr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?y:null};if(i&&xr.isArrayOrTypedArray(e.ticktext)){var c=xr.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=lv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function aee(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=iv(Math.pow(10,l),e,n,a);else if(Wt(i)||s==="D"&&(e.minorloglabels==="complete"||xr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(xr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||tf(p)&&p!=="SI extended"&&R2(h)||tf(p)&&p==="SI extended"&&z2(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":ms)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(h>0?"+":ms)+d:(r.text=iv(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,xr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function nee(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function iee(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function lee(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=iv(r.x,e,n,a)}function oee(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=see(i);if(l[1]>=100)r.text=iv(xr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=ms+r.text)}}}else r.text=iv(r.x,e,n,a)}function see(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var wM=["f","p","n","\u03BC","m","","k","M","G","T"],uee=["q","r","y","z","a",...wM,"P","E","Z","Y","R","Q"],tf=e=>["SI","SI extended","B"].includes(e);function R2(e){return e>14||e<-15}function z2(e){return e>32||e<-30}function fee(e,r){return tf(r)?!!(r==="SI extended"&&z2(e)||r!=="SI extended"&&R2(e)):!1}function iv(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Oe.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Wt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};bM(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ms);var c=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+p+"":l==="B"&&o===9?e+="B":tf(l)&&(e+=l==="SI extended"?uee[o/3+10]:wM[o/3+5])}return n?ms+e:e}Oe.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*rf}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(c||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return xr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Oe.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Oe.drawOne(e,u,t);return u._shiftPusher&&E2(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=xr.simpleMap(u._r,u.r2l),f}}}))};Oe.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Oe.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),E2(r,p,a,!0),E2(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Tee(r,a));var m=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,_=r._mainMirrorPosition,w=r._vals=Oe.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i0?De.bottom-Ie:0,We))));var we=0,$e=0;if(r._shiftPusher&&(we=Math.max(We,De.height>0?Se==="l"?Ie-De.left:De.right-Ie:0),r.title.text!==s._dfltTitle[f]&&($e=(r._titleStandoff||0)+(r._titleScoot||0),Se==="l"&&($e+=dM(r))),r._fullDepth=Math.max(we,$e)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var hr=[0,1],Ne=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Se==="b"?He[Se]=r._depth:(He[Se]=r._depth=Math.max(De.width>0?Ie-De.top:0,We),hr.reverse()),De.width>0){var ke=De.right-(r._offset+r._length);ke>0&&(He.xr=1,He.r=ke);var qe=r._offset-De.left;qe>0&&(He.xl=0,He.l=qe)}}else if(Se==="l"?(r._depth=Math.max(De.height>0?Ie-De.left:0,We),He[Se]=r._depth-Ne):(r._depth=Math.max(De.height>0?De.right-Ie:0,We),He[Se]=r._depth+Ne,hr.reverse()),De.height>0){var Be=De.bottom-(r._offset+r._length);Be>0&&(He.yb=0,He.b=Be);var Ze=r._offset-De.top;Ze>0&&(He.yt=1,He.t=Ze)}He[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(He[Se]+=dM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Xe={x:0,y:0,r:0,l:0,t:0,b:0},Xe[Ge]=r.linewidth,r.mirror&&r.mirror!==!0&&(Xe[Ge]+=We),r.mirror===!0||r.mirror==="ticks"?Xe[c]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Xe[c]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Ee&&(ie=rv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(hM(He,r.automargin),hM(Xe,r.automargin)),ju.autoMargin(e,N2(r),He),ju.autoMargin(e,AM(r),Xe),ju.autoMargin(e,MM(r),ie)}),xr.syncOrAsync(xe)}};function hM(e,r){if(e){var t=Object.keys(lM).reduce(function(a,n){return r.indexOf(n)!==-1&&lM[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function cee(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(xr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return ef(n+e._offset+e.l2p(L2(h))+t,i+a)}:function(h){return ef(i+a,n+e._offset+e.l2p(L2(h))+t)}};function L2(e){return e.periodX!==void 0?e.periodX:e.x}function pee(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=Yd,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=d*ys,h+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,h+=Yd),s&&f==="top"&&(h-=d*(1-ys)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,s?h:0]}Oe.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Oe.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=h?e.ticklen:0;if(c?m*=-1:f&&(m=0),h&&(d+=m,t)){var y=xr.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},_,w,x,A,k=0,M=e.side,S=e._id.charAt(0),D=e.tickangle,E;if(S==="x")E=!c&&M==="bottom"||c&&M==="top",A=E?1:-1,c&&(A*=-1),_=p*A,w=r+d*A,x=E?1:-.2,Math.abs(D)===90&&(c?x+=ev:D===-90&&M==="bottom"?x=ys:D===90&&M==="top"?x=ev:x=.5,k=ev/2*(D/90)),b.xFn=function(H){return H.dx+_+k*H.fontSize},b.yFn=function(H){return H.dy+w+H.fontSize*x},b.anchorFn=function(H,I){if(f){if(o)return"end";if(s)return"start"}return!Wt(I)||I===0||I===180?"middle":I*A<0!==c?"end":"start"},b.heightFn=function(H,I,Y){return I<-60||I>60?-.5*Y:e.side==="top"!==c?-Y:0};else if(S==="y"){if(E=!c&&M==="left"||c&&M==="right",A=E?1:-1,c&&(A*=-1),_=d,w=p*A,x=0,!c&&Math.abs(D)===90&&(D===-90&&M==="left"||D===90&&M==="right"?x=ys:x=.5),c){var R=Wt(D)?+D:0;if(R!==0){var N=xr.deg2rad(R);k=Math.abs(Math.sin(N))*ys*A,x=0}}b.xFn=function(H){return H.dx+r-(_+H.fontSize*x)*A+k*H.fontSize},b.yFn=function(H){return H.dy+w+H.fontSize*ev},b.anchorFn=function(H,I){return Wt(I)&&Math.abs(I)===90?"middle":E?"end":"start"},b.heightFn=function(H,I,Y){return e.side==="right"&&(I*=-1),I<-30?-Y:I<30?-.5*Y:0}}return b};function Ud(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Oe.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Ud);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return tv.stroke(Gn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return kn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Xd(r,[pM]),i.attr("transform",t.transFn)};Oe.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&Oe.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?h:d;if(m){var y=m.selectAll("path."+a).data(p?l:i,Ud);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return tv.stroke(Gn.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return kn.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Xd(r,[C2,S2])}};Oe.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Oe.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return Uj(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(tv.stroke,r.zerolinecolor||tv.defaultLine).style("stroke-width",kn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Xd(r,[q2])};Oe.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(B){return B.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],Ud),h=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(B){var J=Gn.select(this),X=e._promises.length;J.call(ps.positionText,s.xFn(B),s.yFn(B)).call(kn.font,{family:B.font,size:B.fontSize,color:B.fontColor,weight:B.fontWeight,style:B.fontStyle,variant:B.fontVariant,textcase:B.fontTextcase,lineposition:B.fontLineposition,shadow:B.fontShadow}).text(B.text).call(ps.convertToTspans,e),e._promises[X]?h.push(e._promises.pop().then(function(){d(J,u)})):d(J,u)}),Xd(r,[iM]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(B){Gn.select(this).select("text").call(ps.positionText,s.xFn(B),s.yFn(B))});function d(B,J){B.each(function(X){var j=Gn.select(this),le=j.select(".text-math-group"),fe=s.anchorFn(X,J),ve=t.transFn.call(j.node(),X)+(Wt(J)&&+J!=0?" rotate("+J+","+s.xFn(X)+","+(s.yFn(X)-X.fontSize/2)+")":""),ee=ps.lineCount(j),Ce=nv*X.fontSize,ce=s.heightFn(X,Wt(J)?+J:0,(ee-1)*Ce);if(ce&&(ve+=ef(0,ce)),le.empty()){var be=j.select("text");be.attr({transform:ve,"text-anchor":fe}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var _e=kn.bBox(le.node()).width,ge=_e*{end:-.5,start:.5}[fe];le.attr("transform",ve+ef(ge,0))}})}r._adjustTickLabelsOverflow=function(){var B=r.ticklabeloverflow;if(!(!B||B==="allow")){var J=B.indexOf("hide")!==-1,X=r._id.charAt(0)==="x",j=0,le=X?e._fullLayout.width:e._fullLayout.height;if(B.indexOf("domain")!==-1){var fe=xr.simpleMap(r.range,r.r2l);j=r.l2p(fe[0])+r._offset,le=r.l2p(fe[1])+r._offset}var ve=Math.min(j,le),ee=Math.max(j,le),Ce=r.side,ce=1/0,be=-1/0;c.each(function(Q){var Z=Gn.select(this),oe=Z.select(".text-math-group");if(oe.empty()){var me=kn.bBox(Z.node()),xe=0;X?(me.right>ee||me.leftee||me.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+fe._id]?Z.style("display","none"):ee.K==="tick"&&!ve&&Z.node().style.display!=="none"&&Z.style("display",null)})})})})},d(c,f+1?f:u);function p(){return h.length&&Promise.all(h)}var m=null;function y(){if(d(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var B=0,J=[],X,j=1;c.each(function(He){B=Math.max(B,He.fontSize);var Xe=r.l2p(He.x),ie=D2(this),we=kn.bBox(ie.node());j=Math.max(j,ps.lineCount(ie)),J.push({top:0,bottom:10,height:10,left:Xe-we.width/2,right:Xe+we.width/2+2,width:we.width+2})});var le=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=o.length,ve=Math.abs((o[fe-1].x-o[0].x)*r._m)/(fe-1),ee=le?ve/2:ve,Ce=le?r.ticklen:B*1.25*j,ce=Math.sqrt(Math.pow(ee,2)+Math.pow(Ce,2)),be=ee/ce,_e=r.autotickangles.map(function(He){return He*Math.PI/180}),ge=_e.find(function(He){return Math.abs(Math.cos(He))<=be});ge===void 0&&(ge=_e.reduce(function(He,Xe){return Math.abs(Math.cos(He))U*Y&&(N=Y,D[S]=E[S]=H[S])}var V=Math.abs(N-R);V-A>0?(V-=A,A*=1+A/V):A=0,r._id.charAt(0)!=="y"&&(A=-A),D[M]=w.p2r(w.r2p(E[M])+k*A),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var G=xr.syncOrAsync(b);return G&&G.then&&e._promises.push(G),G};function mee(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Ud);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(tv.stroke,r.dividercolor).style("stroke-width",kn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Oe.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function dM(e){var r=e.title.font.size,t=(e.title.text.match(ps.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(ys+t*nv):t?r*(t+1)*nv:r}function yee(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(ps.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*ys:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(ev+o*nv));else{var s=lv(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Oe.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=kn.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,Nj.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}Oe.shouldShowZeroLine=function(e,r,t){var a=xr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Vd)&&(TM(r,0)||!gee(e,r,t,a)||xee(e,r))};Oe.clipEnds=function(e,r){return r.filter(function(t){return TM(e,t.x)})};function TM(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Yj:/%L/.test(r)?e>=Oj:/%[SX]/.test(r)?e>=Od:/%M/.test(r)?e>=av:/%[HI]/.test(r)?e>=Xi:/%p/.test(r)?e>=no:/%[Aadejuwx]/.test(r)?e>=Oa:/%[UVW]/.test(r)?e>=qn:/%[Bbm]/.test(r)?e>=Bd:/%[q]/.test(r)?e>=Hd:/%[Yy]/.test(r)?e>=Id:!0}});var CM=O((s2e,qM)=>{"use strict";qM.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var I2=O((u2e,SM)=>{"use strict";var Mee=CM();SM.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(Mee(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var DM=O((f2e,LM)=>{var kee={left:0,top:0};LM.exports=qee;function qee(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Cee(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Cee(e){return e===window||e===document||e===document.body?kee:e.getBoundingClientRect()}});var H2=O((c2e,EM)=>{"use strict";var See=yg();function Lee(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}EM.exports=See&&Lee()});var RM=O((v2e,PM)=>{"use strict";PM.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var FM=O((h2e,NM)=>{"use strict";var zM=ze(),Dee=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];NM.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=zM.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=zM.constrain(Math.floor(t*3),0,2),Dee[t][r]}});var HM=O((d2e,IM)=>{"use strict";var Eee=Oc(),Pee=Gh(),Ree=Pc().getGraphDiv,zee=Cc(),B2=IM.exports={};B2.wrapped=function(e,r,t){e=Ree(e),e._fullLayout&&Pee.clear(e._fullLayout._uid+zee.HOVERID),B2.raw(e,r,t)};B2.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Eee.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var wi=O((p2e,VM)=>{"use strict";var Nee=DM(),O2=xg(),Fee=H2(),Iee=ze().removeElement,Hee=aa(),gs=VM.exports={};gs.align=RM();gs.getCursor=FM();var OM=HM();gs.unhover=OM.wrapped;gs.unhoverRaw=OM.raw;gs.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,Fee?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(w,x,A){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===h?x=c:(x={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(A=>{var k=c[A];!x[A]&&typeof k!="function"&&(x[A]=k)})),r.clickFn&&r.clickFn(a,x),d||h.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function YM(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}gs.coverSlip=YM;function BM(e){return Nee(e.changedTouches?e.changedTouches[0]:e,document.body)}});var io=O((m2e,GM)=>{"use strict";GM.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var WM=O((y2e,XM)=>{"use strict";var Y2=io(),ov="data-savedcursor",UM="!!";XM.exports=function(r,t){var a=r.attr(ov);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var V2=ra(),Bee=Hn();ZM.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Bee.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:V2({editType:"legend"}),grouptitlefont:V2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:V2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var uv=O(sv=>{"use strict";sv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};sv.isVertical=function(r){return r.orientation!=="h"};sv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};sv.getId=function(r){return r._id||"legend"}});var X2=O((b2e,JM)=>{"use strict";var Wd=gr(),Cn=ze(),Oee=ot(),Yee=sn(),Vee=G2(),Gee=Eu(),U2=uv();function Uee(e,r,t,a,n){var i=r[e]||{},l=Oee.newContainer(t,e);function o(B,J){return Cn.coerce(i,l,Vee,B,J)}var s=Cn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,c=function(B,J){var X=f._input,j=f;return Cn.coerce(X,j,Yee,B,J)},h=t.font||{},d=Cn.coerceFont(o,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),p=0,m=!1,y="normal",b=(t.shapes||[]).filter(function(B){return B.showlegend});function _(B){return Wd.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}a.filter(_).forEach(function(B){B.visible&&p++;for(var J=0;JB.legend.length)for(var j=B.legend.length;j(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),!(k===!1&&!i.uirevision)&&(o("uirevision",t.uirevision),k!==!1)){o("borderwidth");var M=o("orientation"),S=o("yref"),D=o("xref"),E=M==="h",R=S==="paper",N=D==="paper",H,I,Y,U="left";E?(H=0,Wd.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(I=1.1,Y="bottom"):(I=1,Y="top"):R?(I=-.1,Y="top"):(I=0,Y="bottom")):(I=1,Y="auto",N?H=1.02:(H=1,U="right")),Cn.coerce(i,l,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:H}},"x"),Cn.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:I}},"y"),o("traceorder",y),U2.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",U),o("yanchor",Y),o("maxheight"),o("valign"),Cn.noneOrAll(i,l,["x","y"]);var V=o("title.text");if(V){o("title.side",E?"left":"top");var G=Cn.extendFlat({},s,{size:Cn.bigFont(s.size)});Cn.coerceFont(o,"title.font",G);let B=n>1;o("titleclick",B?"toggle":!1),o("titledoubleclick",B?"toggleothers":!1)}}}JM.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var lo=gr(),W2=ze(),Xee=W2.pushUnique,Wee=uv(),$M=!0;Z2.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;var o=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&$M&&t.data&&t._context.showTips&&(W2.notifier(W2._(t,"Double-click on legend to isolate one trace"),"long",t),$M=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let c=(i.shapes||[]).filter(Ee=>Ee.showlegend||Ee.legendgroup);var h=f.concat(c),d=l.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,m,y,b,_,w,x,A={},k=[],M=[],S=[];function D(Ee,Se){var Ge=k.indexOf(Ee),Ie=A.visible;return Ie||(Ie=A.visible=[]),k.indexOf(Ee)===-1&&(k.push(Ee),Ge=k.length-1),Ie[Ge]=Se,Ge}var E=(i.shapes||[]).map(function(Ee){return Ee._input}),R=!1;function N(Ee,Se){E[Ee].visible=Se,R=!0}function H(Ee,Se){if(!(l.groupTitle&&!s)){var Ge=Ee._fullInput||Ee,Ie=Ge._isShape,We=Ge.index;We===void 0&&(We=Ge._index);var De=Ge.visible===!1?!1:Se;Ie?N(We,De):D(We,De)}}var I=d.legend,Y=d._fullInput,U=Y&&Y._isShape;if(!U&&lo.traceIs(d,"pie-like")){var V=l.label,G=u.indexOf(V);if(n==="toggle")G===-1?u.push(V):u.splice(G,1);else if(n==="toggleothers"){var B=G!==-1,J=[];for(m=0;mb.showlegend||b.legendgroup),s=i.concat(o);function u(b){return(b.legend||"legend")===l}var f,c;if(a==="toggle")f=!s.some(function(_){return u(_)&&_.visible===!0}),c=!1;else{let b=s.some(function(_){return!u(_)&&_.visible===!0&&_.showlegend!==!1});f=!0,c=!b}let h={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var m=!1,y=0;y{"use strict";KM.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var ek=O((T2e,jM)=>{"use strict";var{isArrayOrTypedArray:K2}=on(),QM=gr(),Q2=uv();jM.exports=function(r,t,a){var n=t._inHover,i=Q2.isGrouped(t),l=Q2.isReversed(t),o={},s=[],u=!1,f={},c=0,h=0,d,p;function m(J,X,j){if(t.visible!==!1&&!(a&&J!==t._id))if(X===""||!Q2.isGrouped(t)){var le="~~i"+c;s.push(le),o[le]=[j],c++}else s.indexOf(X)===-1?(s.push(X),u=!0,o[X]=[j]):o[X].push(j)}for(d=0;dH&&(R=H)}D[d][0]._groupMinRank=R,D[d][0]._preGroupSort=d}var I=function(J,X){return J[0]._groupMinRank-X[0]._groupMinRank||J[0]._preGroupSort-X[0]._preGroupSort},Y=function(J,X){var j=K2(J.trace.legendrank)?J.trace.legendrank[J.i]:J.trace.legendrank,le=K2(X.trace.legendrank)?X.trace.legendrank[X.i]:X.trace.legendrank;return j-le||J._preSort-X._preSort};for(D.forEach(function(J,X){J[0]._preGroupSort=X}),D.sort(I),d=0;d{"use strict";var Zd=ze();function rk(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}xs.formatPiePercent=function(r,t){var a=rk((r*100).toPrecision(3));return Zd.numSeparate(a,t)+"%"};xs.formatPieValue=function(r,t){var a=rk(r.toPrecision(10));return Zd.numSeparate(a,t)};xs.getFirstFilled=function(r,t){if(Zd.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Zee=Yr(),Jee=br();tk.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Zee.pointStyle(r,a,n,t):Jee.fill(r,t.color)}});var af=O((k2e,lk)=>{"use strict";var nk=br(),ik=fv().castOption,$ee=ak();lk.exports=function(r,t,a,n){var i=a.marker.line,l=ik(i.color,t.pts)||nk.defaultLine,o=ik(i.width,t.pts)||0;r.call($ee,t,a,n).style("stroke-width",o).call(nk.stroke,l)}});var t3=O((q2e,vk)=>{"use strict";var Ya=kr(),j2=gr(),Ra=ze(),ok=Ra.strTranslate,Sn=Yr(),Un=br(),e3=Tn().extractOpts,Jd=Mn(),Kee=af(),Qee=fv().castOption,jee=$2(),sk=12,uk=5,bs=2,ere=10,nf=5;vk.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+jee.itemGap*2)/2,s=ok(o,0),u=function(M,S,D,E){var R;if(M+1)R=M;else if(S&&S.width>0)R=S.width;else return 0;return i?E:Math.min(R,D)};r.each(function(M){var S=Ya.select(this),D=Ra.ensureSingle(S,"g","layers");D.style("opacity",M[0].trace.opacity);var E=a.indentation,R=a.valign,N=M[0].lineHeight,H=M[0].height;if(R==="middle"&&E===0||!N||!H)D.attr("transform",null);else{var I={top:1,bottom:-1}[R],Y=I*(.5*(N-H+3))||0,U=a.indentation;D.attr("transform",ok(U,Y))}var V=D.selectAll("g.legendfill").data([M]);V.enter().append("g").classed("legendfill",!0);var G=D.selectAll("g.legendlines").data([M]);G.enter().append("g").classed("legendlines",!0);var B=D.selectAll("g.legendsymbols").data([M]);B.enter().append("g").classed("legendsymbols",!0),B.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(p).each(d).each(y).each(x).each(w).each(f).each(c).each(b).each(_);function f(M){var S=fk(M),D=S.showFill,E=S.showLine,R=S.showGradientLine,N=S.showGradientFill,H=S.anyFill,I=S.anyLine,Y=M[0],U=Y.trace,V,G,B=e3(U),J=B.colorscale,X=B.reversescale,j=function(be){if(be.size())if(D)Sn.fillGroupStyle(be,t,!0);else{var _e="legendfill-"+U.uid;Sn.gradient(be,t,_e,r3(X),J,"fill")}},le=function(be){if(be.size()){var _e="legendline-"+U.uid;Sn.lineGroupStyle(be),Sn.gradient(be,t,_e,r3(X),J,"stroke")}},fe=Jd.hasMarkers(U)||!H?"M5,0":I?"M5,-2":"M5,-3",ve=Ya.select(this),ee=ve.select(".legendfill").selectAll("path").data(D||N?[M]:[]);if(ee.enter().append("path").classed("js-fill",!0),ee.exit().remove(),ee.attr("d",fe+"h"+l+"v6h-"+l+"z").call(j),E||R){var Ce=u(void 0,U.line,ere,uk);G=Ra.minExtend(U,{line:{width:Ce}}),V=[Ra.minExtend(Y,{trace:G})]}var ce=ve.select(".legendlines").selectAll("path").data(E||R?[V]:[]);ce.enter().append("path").classed("js-line",!0),ce.exit().remove(),ce.attr("d",fe+(R?"l"+l+",0.0001":"h"+l)).call(E?Sn.lineGroupStyle:le)}function c(M){var S=fk(M),D=S.anyFill,E=S.anyLine,R=S.showLine,N=S.showMarker,H=M[0],I=H.trace,Y=!N&&!E&&!D&&Jd.hasText(I),U,V;function G(ee,Ce,ce,be){var _e=Ra.nestedProperty(I,ee).get(),ge=Ra.isArrayOrTypedArray(_e)&&Ce?Ce(_e):_e;if(i&&ge&&be!==void 0&&(ge=be),ce){if(gece[1])return ce[1]}return ge}function B(ee){return H._distinct&&H.index&&ee[H.index]?ee[H.index]:ee[0]}if(N||Y||R){var J={},X={};if(N){J.mc=G("marker.color",B),J.mx=G("marker.symbol",B),J.mo=G("marker.opacity",Ra.mean,[.2,1]),J.mlc=G("marker.line.color",B),J.mlw=G("marker.line.width",Ra.mean,[0,5],bs),J.mld=I._isShape?"solid":G("marker.line.dash",B),X.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var j=G("marker.size",Ra.mean,[2,16],sk);J.ms=j,X.marker.size=j}R&&(X.line={width:G("line.width",B,[0,10],uk)}),Y&&(J.tx="Aa",J.tp=G("textposition",B),J.ts=10,J.tc=G("textfont.color",B),J.tf=G("textfont.family",B),J.tw=G("textfont.weight",B),J.ty=G("textfont.style",B),J.tv=G("textfont.variant",B),J.tC=G("textfont.textcase",B),J.tE=G("textfont.lineposition",B),J.tS=G("textfont.shadow",B)),U=[Ra.minExtend(H,J)],V=Ra.minExtend(I,X),V.selectedpoints=null,V.texttemplate=null}var le=Ya.select(this).select("g.legendpoints"),fe=le.selectAll("path.scatterpts").data(N?U:[]);fe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),fe.exit().remove(),fe.call(Sn.pointStyle,V,t),N&&(U[0].mrc=3);var ve=le.selectAll("g.pointtext").data(Y?U:[]);ve.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ve.exit().remove(),ve.selectAll("text").call(Sn.textPointStyle,V,t)}function h(M){var S=M[0].trace,D=S.type==="waterfall";if(M[0]._distinct&&D){var E=M[0].trace[M[0].dir].marker;return M[0].mc=E.color,M[0].mlw=E.line.width,M[0].mlc=E.line.color,m(M,this,"waterfall")}var R=[];S.visible&&D&&(R=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=Ya.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(H){var I=Ya.select(this),Y=S[H[0]].marker,U=u(void 0,Y.line,nf,bs);I.attr("d",H[1]).style("stroke-width",U+"px").call(Un.fill,Y.color),U&&I.call(Un.stroke,Y.line.color)})}function d(M){m(M,this)}function p(M){m(M,this,"funnel")}function m(M,S,D){var E=M[0].trace,R=E.marker||{},N=R.line||{},H=R.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",I=D?E.visible&&E.type===D:j2.traceIs(E,"bar"),Y=Ya.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(I?[M]:[]);Y.enter().append("path").classed("legend"+D,!0).attr("d",H).attr("transform",s),Y.exit().remove(),Y.each(function(U){var V=Ya.select(this),G=U[0],B=u(G.mlw,R.line,nf,bs);V.style("stroke-width",B+"px");var J=G.mcc;if(!a._inHover&&"mc"in G){var X=e3(R),j=X.mid;j===void 0&&(j=(X.max+X.min)/2),J=Sn.tryColorscale(R,"")(j)}var le=J||G.mc||R.color,fe=R.pattern,ve=Sn.getPatternAttr,ee=fe&&(ve(fe.shape,0,"")||ve(fe.path,0,""));if(ee){var Ce=ve(fe.bgcolor,0,null),ce=ve(fe.fgcolor,0,null),be=fe.fgopacity,_e=ck(fe.size,8,10),ge=ck(fe.solidity,.5,1),W="legend-"+E.uid;V.call(Sn.pattern,"legend",t,W,ee,_e,ge,J,fe.fillmode,Ce,ce,be)}else V.call(Un.fill,le);B&&Un.stroke(V,G.mlc||N.color)})}function y(M){var S=M[0].trace,D=Ya.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&j2.traceIs(S,"box-violin")?[M]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var E=Ya.select(this);if((S.boxpoints==="all"||S.points==="all")&&Un.opacity(S.fillcolor)===0&&Un.opacity((S.line||{}).color)===0){var R=Ra.minExtend(S,{marker:{size:i?sk:Ra.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(Sn.pointStyle,R,t)}else{var N=u(void 0,S.line,nf,bs);E.style("stroke-width",N+"px").call(Un.fill,S.fillcolor),N&&Un.stroke(E,S.line.color)}})}function b(M){var S=M[0].trace,D=Ya.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[M,M]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(E,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ya.select(this),H=S[R?"increasing":"decreasing"],I=u(void 0,H.line,nf,bs);N.style("stroke-width",I+"px").call(Un.fill,H.fillcolor),I&&Un.stroke(N,H.line.color)})}function _(M){var S=M[0].trace,D=Ya.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[M,M]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(E,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ya.select(this),H=S[R?"increasing":"decreasing"],I=u(void 0,H.line,nf,bs);N.style("fill","none").call(Sn.dashLine,H.line.dash,I),I&&Un.stroke(N,H.line.color)})}function w(M){A(M,this,"pie")}function x(M){A(M,this,"funnelarea")}function A(M,S,D){var E=M[0],R=E.trace,N=D?R.visible&&R.type===D:j2.traceIs(R,D),H=Ya.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(N?[M]:[]);if(H.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),H.exit().remove(),H.size()){var I=R.marker||{},Y=u(Qee(I.line.width,E.pts),I.line,nf,bs),U="pieLike",V=Ra.minExtend(R,{marker:{line:{width:Y}}},U),G=Ra.minExtend(E,{trace:V},U);Kee(H,G,V,t)}}function k(M){var S=M[0].trace,D,E=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":E=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":E=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":E=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var R=Ya.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,H){var I=Ya.select(this),Y=e3(S),U=Y.colorscale,V=Y.reversescale,G=function(j){if(j.size()){var le="legendfill-"+S.uid;Sn.gradient(j,t,le,r3(V,D==="radial"),U,"fill")}},B;if(U){if(!D){var X=U.length;B=H===0?U[V?X-1:0][1]:H===1?U[V?0:X-1][1]:U[Math.floor((X-1)/2)][1]}}else{var J=S.vertexcolor||S.facecolor||S.color;B=Ra.isArrayOrTypedArray(J)?J[H]||J[0]:J}I.attr("d",N[0]),B?I.call(Un.fill,B):I.call(G)})}};function r3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function fk(e){var r=e[0].trace,t=r.contours,a=Jd.hasLines(r),n=Jd.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function ck(e,r,t){return e&&Ra.isArrayOrTypedArray(e)?r:e>t?t:e}});var l3=O((C2e,_k)=>{"use strict";var ja=kr(),Bt=ze(),n3=Et(),_s=gr(),Qd=Oc(),a3=wi(),Ot=Yr(),cv=br(),ws=na(),hk=J2().handleItemClick,dk=J2().handleTitleClick,Zt=$2(),i3=Ma(),xk=i3.LINE_SPACING,of=i3.FROM_TL,pk=i3.FROM_BR,mk=ek(),rre=t3(),sf=uv(),lf=1,tre=/^legend[0-9]*$/;_k.exports=function(r,t){if(t)yk(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=ja.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(tre)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),n3.autoMargin(e,n);var m=Bt.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),y=Bt.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),b=Bt.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});b.call(cv.stroke,t.bordercolor).call(cv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=Bt.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Bt.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(Ot.font,w.font).text(w.text),Kd(x,_,e,t,lf),!o&&(t.titleclick||t.titledoubleclick)&&lre(_,e,t,n)):(_.selectAll("."+n+"titletext").remove(),_.selectAll("."+n+"titletoggle").remove());var A=Bt.ensureSingle(m,"rect","scrollbar",function(S){S.attr(Zt.scrollBarEnterAttrs).call(cv.fill,Zt.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(Bt.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){let D=S[0],E=D.trace;if(D.groupTitle){let R=E.legendgroup,N=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(N).some(function(I){return I.legendgroup===R&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return _s.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){ja.select(this).call(nre,e,t)}).call(rre,e,t).each(function(S){o||S[0].groupTitle&&t.groupclick==="toggleitem"||ja.select(this).call(ire,e,n)}),Bt.syncOrAsync([n3.previousPromises,function(){return ure(e,k,M,t,_)},function(){var S=a._size,D=t.borderwidth,E=t.xref==="paper",R=t.yref==="paper";if(w.text){let oe=(a.shapes||[]).filter(function(xe){return xe.showlegend}),me=e._fullData.concat(oe).some(function(xe){let Re=xe.legend||"legend";var Ee=Array.isArray(Re)?Re.includes(n):Re===n;return Ee&&xe.visible===!0});x.style("opacity",me?1:.5)}if(!o){var N,H;E?N=S.l+S.w*t.x-of[jd(t)]*t._width:N=a.width*t.x-of[jd(t)]*t._width,R?H=S.t+S.h*(1-t.y)-of[e1(t)]*t._effHeight:H=a.height*(1-t.y)-of[e1(t)]*t._effHeight;var I=fre(e,n,N,H);if(I)return;if(a.margin.autoexpand){var Y=N,U=H;N=E?Bt.constrain(N,0,a.width-t._width):Y,H=R?Bt.constrain(H,0,a.height-t._effHeight):U,N!==Y&&Bt.log("Constrain "+n+".x to make legend fit inside graph"),H!==U&&Bt.log("Constrain "+n+".y to make legend fit inside graph")}Ot.setTranslate(m,N,H)}if(A.on(".drag",null),m.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var V=t._effHeight;o&&(V=t._height),b.attr({width:t._width-D,height:V-D,x:D/2,y:D/2}),Ot.setTranslate(_,0,0),y.select("rect").attr({width:t._width-2*D,height:V-2*D,x:D,y:D}),Ot.setClipUrl(_,i,e),Ot.setRect(A,0,0,0,0),delete t._scrollY}else{var G=Math.max(Zt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),B=t._effHeight-G-2*Zt.scrollBarMargin,J=t._height-t._effHeight,X=B/J,j=Math.min(t._scrollY||0,J);b.attr({width:t._width-2*D+Zt.scrollBarWidth+Zt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+Zt.scrollBarWidth+Zt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+j}),Ot.setClipUrl(_,i,e),_e(j,G,X),m.on("wheel",function(){j=Bt.constrain(t._scrollY+ja.event.deltaY/J*B,0,J),_e(j,G,X),j!==0&&j!==J&&ja.event.preventDefault()});var le,fe,ve,ee=function(oe,me,xe){var Re=(xe-me)/X+oe;return Bt.constrain(Re,0,J)},Ce=function(oe,me,xe){var Re=(me-xe)/X+oe;return Bt.constrain(Re,0,J)},ce=ja.behavior.drag().on("dragstart",function(){var oe=ja.event.sourceEvent;oe.type==="touchstart"?le=oe.changedTouches[0].clientY:le=oe.clientY,ve=j}).on("drag",function(){var oe=ja.event.sourceEvent;oe.buttons===2||oe.ctrlKey||(oe.type==="touchmove"?fe=oe.changedTouches[0].clientY:fe=oe.clientY,j=ee(ve,le,fe),_e(j,G,X))});A.call(ce);var be=ja.behavior.drag().on("dragstart",function(){var oe=ja.event.sourceEvent;oe.type==="touchstart"&&(le=oe.changedTouches[0].clientY,ve=j)}).on("drag",function(){var oe=ja.event.sourceEvent;oe.type==="touchmove"&&(fe=oe.changedTouches[0].clientY,j=Ce(ve,le,fe),_e(j,G,X))});_.call(be)}function _e(oe,me,xe){t._scrollY=e._fullLayout[n]._scrollY=oe,Ot.setTranslate(_,0,-oe),Ot.setRect(A,t._width,Zt.scrollBarMargin+oe*xe,Zt.scrollBarWidth,me),y.select("rect").attr("y",D+oe)}if(e._context.edits.legendPosition){var ge,W,Q,Z;m.classed("cursor-move",!0),a3.init({element:m.node(),gd:e,prepFn:function(oe){if(oe.target!==A.node()){var me=Ot.getTranslate(m);Q=me.x,Z=me.y}},moveFn:function(oe,me){if(Q!==void 0&&Z!==void 0){var xe=Q+oe,Re=Z+me;Ot.setTranslate(m,xe,Re),ge=a3.align(xe,t._width,S.l,S.l+S.w,t.xanchor),W=a3.align(Re+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(ge!==void 0&&W!==void 0){var oe={};oe[n+".x"]=ge,oe[n+".y"]=W,_s.call("_guiRelayout",e,oe)}},clickFn:function(oe,me){var xe=l.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return me.clientX>=Re.left&&me.clientX<=Re.right&&me.clientY>=Re.top&&me.clientY<=Re.bottom});xe.size()>0&&bk(e,t,xe,oe,me)}})}}],e)}}function $d(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function bk(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),_s.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=Qd.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&hk(t,e,r,o)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Qd.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&hk(t,e,r,s)}}function nre(e,r,t){var a=sf.getId(t),n=e.data()[0][0],i=n.trace,l=_s.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Bt.templateString(u,i._meta))));var c=Bt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Ot.font,f).text(o?gk(u,s):u);var h=t.indentation+t.itemwidth+Zt.itemGap*2;ws.positionText(c,h,0),o?c.call(ws.makeEditable,{gd:r,text:u}).call(Kd,e,r,t).on("edit",function(d){this.text(gk(d,s)).call(Kd,e,r,t);var p=n.trace._fullInput||{},m={};return m.name=d,p._isShape?_s.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):_s.call("_guiRestyle",r,m,i.index)}):Kd(c,e,r,t)}function gk(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function ire(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Bt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(cv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),bk(r,o,e,i,ja.event)}}))}function lre(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&_s.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Bt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(cv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:ja.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(Qd.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&dk(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Qd.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&dk(r,t,t.titledoubleclick))}))}function Kd(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),ws.convertToTspans(e,t,function(){ore(r,t,a,n)})}function ore(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=sf.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===lf?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*xk,h,d;if(o){var p=Ot.bBox(o);h=p.height,d=p.width,a===lf?Ot.setTranslate(l,u,u+h*.75):Ot.setTranslate(l,0,h*.25)}else{var m="."+s+(a===lf?"title":"")+"text",y=e.select(m),b=ws.lineCount(y),_=y.node();if(h=c*b,d=_?Ot.bBox(_).width:0,a===lf)t.title.side==="left"&&(d+=Zt.itemGap*2),ws.positionText(y,u+Zt.titlePad,u+c);else{var w=Zt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Zt.itemGap,d-=t.indentation+t.itemwidth),ws.positionText(y,w,-c*((b-1)/2-.3))}}a===lf?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=c,n.height=Math.max(h,16)+3,n.width=d)}function sre(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function ure(e,r,t,a,n){var i=e._fullLayout,l=sf.getId(a);a||(a=i[l]);var o=i._size,s=sf.isVertical(a),u=sf.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,h=2*c,d=Zt.itemGap,p=a.indentation+a.itemwidth+d*2,m=2*(c+d),y=e1(a),b=a.y<0||a.y===0&&y==="top",_=a.y>1||a.y===1&&y==="bottom",w=a.tracegroupgap,x={};let{orientation:A,yref:k}=a,{maxheight:M}=a,S=b||_||A!=="v"||k!=="paper";M||(M=S?.5:1);let D=S?i.height:o.h;a._maxHeight=Math.max(M>1?M:M*D,30);var E=0;a._width=0,a._height=0;var R=sre(a);if(s)t.each(function(oe){var me=oe[0].height;Ot.setTranslate(this,c+R[0],c+R[1]+a._height+me/2+d),a._height+=me,a._width=Math.max(a._width,oe[0].width)}),E=p+a._width,a._width+=d+p+h,a._height+=m,u&&(r.each(function(oe,me){Ot.setTranslate(this,0,me*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var N=jd(a),H=a.x<0||a.x===0&&N==="right",I=a.x>1||a.x===1&&N==="left",Y=_||b,U=i.width/2;a._maxWidth=Math.max(H?Y&&N==="left"?o.l+o.w:U:I?Y&&N==="right"?o.r+o.w:U:o.w,2*p);var V=0,G=0;t.each(function(oe){var me=$d(oe,a,p);V=Math.max(V,me),G+=me}),E=null;var B=0;if(u){var J=0,X=0,j=0;r.each(function(){var oe=0,me=0;ja.select(this).selectAll("g.traces").each(function(Re){var Ee=$d(Re,a,p),Se=Re[0].height;Ot.setTranslate(this,R[0],R[1]+c+d+Se/2+me),me+=Se,oe=Math.max(oe,Ee),x[Re[0].trace.legendgroup]=oe});var xe=oe+d;X>0&&xe+c+X>a._maxWidth?(B=Math.max(B,X),X=0,j+=J+w,J=me):J=Math.max(J,me),Ot.setTranslate(this,X,j),X+=xe}),a._width=Math.max(B,X)+c,a._height=j+J+m}else{var le=t.size(),fe=G+h+(le-1)*d=a._maxWidth&&(B=Math.max(B,ce),ee=0,Ce+=ve,a._height+=ve,ve=0),Ot.setTranslate(this,R[0]+c+ee,R[1]+c+Ce+me/2+d),ce=ee+xe+d,ee+=Re,ve=Math.max(ve,me)}),fe?(a._width=ee+h,a._height=ve+m):(a._width=Math.max(B,ce)+h,a._height+=ve+m)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(c+Zt.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(c+Zt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,_e=be.legendText||be.legendPosition;t.each(function(oe){var me=ja.select(this).select("."+l+"toggle"),xe=oe[0].height,Re=oe[0].trace.legendgroup,Ee=$d(oe,a,p);u&&Re!==""&&(Ee=x[Re]);var Se=_e?p:E||Ee;!s&&!f&&(Se+=d/2),Ot.setRect(me,0,-xe/2,Se,xe)});var ge=n.select("."+l+"titletext");ge.node()&&are(ge,a,c);var W=n.select("."+l+"titletoggle");if(W.size()&&ge.node()){var Q=ge.attr("x")||0,Z=Zt.titlePad;Ot.setRect(W,Q-Z,c,a._titleWidth+2*Z,a._titleHeight+2*Z)}}function fre(e,r,t,a){var n=e._fullLayout,i=n[r],l=jd(i),o=e1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return n3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*of[l],r:i._width*pk[l],b:i._effHeight*pk[o],t:i._effHeight*of[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function jd(e){return Bt.isRightAnchor(e)?"right":Bt.isCenterAnchor(e)?"center":"left"}function e1(e){return Bt.isBottomAnchor(e)?"bottom":Bt.isMiddleAnchor(e)?"middle":"top"}});var f3=O(u3=>{"use strict";var Ts=kr(),bl=zr(),wk=In(),Ct=ze(),cre=Ct.pushUnique,o3=Ct.strTranslate,vre=Ct.strRotate,hre=Oc(),Xn=na(),dre=WM(),Zi=Yr(),la=br(),r1=wi(),Ji=Zr(),pre=aa().zindexSeparator,ff=gr(),Ti=Yi(),As=Cc(),mre=X2(),yre=l3(),Lk=As.YANGLE,s3=Math.PI*Lk/180,gre=1/Math.sin(s3),xre=Math.cos(s3),bre=Math.sin(s3),bt=As.HOVERARROWSIZE,Or=As.HOVERTEXTPAD,Tk={box:!0,ohlc:!0,violin:!0,candlestick:!0},_re={scatter:!0,scattergl:!0,splom:!0};function Ak(e,r){return e.distance-r.distance}u3.hover=function(r,t,a,n){r=Ct.getGraphDiv(r);var i=t.target;Ct.throttle(r._fullLayout._uid+As.HOVERID,As.HOVERMINTIME,function(){wre(r,t,a,n,i)})};u3.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=zk(n),l=Nk(n),o=r.map(function(y){var b=y._x0||y.x0||y.x||0,_=y._x1||y.x1||y.x||0,w=y._y0||y.y0||y.y||0,x=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var k=Math.min(b,_),M=Math.max(b,_),S=Math.min(w,x),D=Math.max(w,x),E=y.trace;if(ff.traceIs(E,"gl3d")){var R=n._fullLayout[E.scene]._scene.container,N=R.offsetLeft,H=R.offsetTop;k+=N,M+=N,S+=H,D+=H}A.bbox={x0:k+l,x1:M+l,y0:S+i,y1:D+i},A.xPixel=(b+_)/2,A.yPixel=(w+x)/2,t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||la.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=Ek(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||la.background,container:Ts.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,h=0,d=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var _=y.y0-y.by/2;_-cM[0]._length||Z<0||Z>S[0]._length)return r1.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=Z+S[0]._offset,"xval"in r?U=Ti.flat(i,r.xval):U=Ti.p2c(M,Q),"yval"in r?V=Ti.flat(i,r.yval):V=Ti.p2c(S,Z),!bl(U[0])||!bl(V[0]))return Ct.warn("Fx.hover failed",r,e),r1.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=U,e._hoverYVals=V,e._hoverXAxes=M,e._hoverYAxes=S);var xe=1/0;function Re(vr,ct){for(B=0;Bce&&(I.splice(0,ce),xe=I[0].distance),c&&H!==0&&I.length===0){Ce.distance=H,Ce.index=!1;var nt=X._module.hoverPoints(Ce,ve,ee,"closest",{hoverLayer:o._hoverlayer});if(nt&&(nt=nt.filter(function(Ka){return Ka.spikeDistance<=H})),nt&&nt.length){var an,ui=nt.filter(function(Ka){return Ka.xa.showspikes&&Ka.xa.spikesnap!=="hovered data"});if(ui.length){var ea=ui[0];bl(ea.x0)&&bl(ea.y0)&&(an=Se(ea),(!be.vLinePoint||be.vLinePoint.spikeDistance>an.spikeDistance)&&(be.vLinePoint=an))}var mt=nt.filter(function(Ka){return Ka.ya.showspikes&&Ka.ya.spikesnap!=="hovered data"});if(mt.length){var Gt=mt[0];bl(Gt.x0)&&bl(Gt.y0)&&(an=Se(Gt),(!be.hLinePoint||be.hLinePoint.spikeDistance>an.spikeDistance)&&(be.hLinePoint=an))}}}}}Re();function Ee(vr,ct,Kr){for(var lt=null,da=1/0,pa,nt=0;ntvr.trace.index===qe.trace.index):I=[qe];var Be=I.length,Ze=Sk("x",qe,o),Ve=Sk("y",qe,o);Re(Ze,Ve);var Ue=[],ir={},ar=0,er=function(vr){var ct=Tk[vr.trace.type]?Dk(vr):vr.trace.index;if(!ir[ct])ar++,ir[ct]=ar,Ue.push(vr);else{var Kr=ir[ct]-1,lt=Ue[Kr];Kr>0&&Math.abs(vr.distance)Be-1;Fe--)er(I[Fe]);I=Ue,De()}var ne=e._hoverdata,se=[],Le=zk(e),Pe=Nk(e);for(let vr of I){var Qe=Ti.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var cr=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(cr=vr.cd[vr.index].ht),vr.hovertemplate=cr||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var sr=vr.x0+vr.xa._offset,Mr=vr.x1+vr.xa._offset,Br=vr.y0+vr.ya._offset,$r=vr.y1+vr.ya._offset,ft=Math.min(sr,Mr),kt=Math.max(sr,Mr),wt=Math.min(Br,$r),Jt=Math.max(Br,$r);Qe.bbox={x0:ft+Pe,x1:kt+Pe,y0:wt+Le,y1:Jt+Le},Qe.xPixel=(sr+Mr)/2,Qe.yPixel=(Br+$r)/2}vr.eventData=[Qe],se.push(Qe)}e._hoverdata=se;var Vt=h==="y"&&(Y.length>1||I.length>1)||h==="closest"&&_e&&I.length>1,Ja=la.combine(o.plot_bgcolor||la.background,o.paper_bgcolor),ba=Ek(I,{gd:e,hovermode:h,rotateLabels:Vt,bgColor:Ja,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),ca=ba.hoverLabels;if(Ti.isUnifiedHover(h)||(Are(ca,Vt,o,ba.commonLabelBoundingBox),Rk(ca,Vt,o._invScaleX,o._invScaleY)),n&&n.tagName){var $a=ff.getComponentMethod("annotations","hasClickToShow")(e,se);dre(Ts.select(n),$a?"pointer":"")}var va=qre(e,r,ne);if(!n||a||!va&&!o.hoveranywhere)return;ne&&va&&e.emit("plotly_unhover",{event:r,points:ne}),ha(e._hoverdata);function ha(vr){e.emit("plotly_hover",{event:r,points:vr,xaxes:M,yaxes:S,xvals:U,yvals:V})}}function Dk(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Tre=/([\s\S]*)<\/extra>/;function Ek(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||As.HOVERFONT,c=r.fontSize||As.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,m=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,_=e[0],w=_.xa,x=_.ya,A=n.charAt(0),k=A+"Label",M=_[k];if(M===void 0&&w.type==="multicategory")for(var S=0;Sa.width-se&&(Le=a.width-se),ke.attr("d","M"+(er-Le)+",0L"+(er-Le+bt)+","+ne+bt+"H"+se+"v"+ne+(Or*2+ar.height)+"H"+-se+"V"+ne+bt+"H"+(er-Le-bt)+"Z"),er=Le,B.minX=er-se,B.maxX=er+se,w.side==="top"?(B.minY=Fe-(Or*2+ar.height),B.maxY=Fe-Or):(B.minY=Fe+Or,B.maxY=Fe+(Or*2+ar.height))}else{var Pe,Qe,cr;x.side==="right"?(Pe="start",Qe=1,cr="",er=w._offset+w._length):(Pe="end",Qe=-1,cr="-",er=w._offset),Fe=x._offset+(_.y0+_.y1)/2,qe.attr("text-anchor",Pe),ke.attr("d","M0,0L"+cr+bt+","+bt+"V"+(Or+ar.height/2)+"h"+cr+(Or*2+ar.width)+"V-"+(Or+ar.height/2)+"H"+cr+bt+"V-"+bt+"Z"),B.minY=Fe-(Or+ar.height/2),B.maxY=Fe+(Or+ar.height/2),x.side==="right"?(B.minX=er+bt,B.maxX=er+bt+(Or*2+ar.width)):(B.minX=er-bt-(Or*2+ar.width),B.maxX=er-bt);var sr=ar.height/2,Mr=E-ar.top-sr,Br="clip"+a._uid+"commonlabel"+x._id,$r;if(erke.hoverinfo!=="none");if(Ne.length===0)return[];var J=a.hoverlabel,X=J.font,j=Ne[0],le=((n==="x unified"?j.xa:j.ya).unifiedhovertitle||{}).text,fe=le?Ct.hovertemplateString({data:n==="x unified"?[{xa:j.xa,x:j.xVal}]:[{ya:j.ya,y:j.yVal}],fallback:j.trace.hovertemplatefallback,locale:a._d3locale,template:le}):M,ve={showlegend:!0,legend:{title:{text:fe,font:X},font:X,bgcolor:J.bgcolor,bordercolor:J.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},ee={font:X};mre(ve,ee,t._fullData);var Ce=ee.legend;Ce.entries=[];for(var ce=0;ce=0?we=De:He+me=0?we=He:Xe+me=0?$e=Ie:We+xe=0?$e=We:ie+xe=0,(Ne.idealAlign==="top"||!wt)&&Jt?(cr-=Mr/2,Ne.anchor="end"):wt?(cr+=Mr/2,Ne.anchor="start"):Ne.anchor="middle",Ne.crossPos=cr;else{if(Ne.pos=cr,wt=Qe+sr/2+kt<=R,Jt=Qe-sr/2-kt>=0,(Ne.idealAlign==="left"||!wt)&&Jt)Qe-=sr/2,Ne.anchor="end";else if(wt)Qe+=sr/2,Ne.anchor="start";else{Ne.anchor="middle";var Vt=kt/2,Ja=Qe+Vt-R,ba=Qe-Vt;Ja>0&&(Qe-=Ja),ba<0&&(Qe+=-ba)}Ne.crossPos=Qe}Fe.attr("text-anchor",Ne.anchor),se&&ne.attr("text-anchor",Ne.anchor),ke.attr("transform",o3(Qe,cr)+(i?vre(Lk):""))}),{hoverLabels:hr,commonLabelBoundingBox:B}}function Mk(e,r,t,a,n,i){var c,h;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ct.templateString(e.name,e.trace._meta)),l=Ck(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),o=Ct.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),o=o.replace(Tre,(p,m)=>(l=Ck(m,e.nameLength),""))}return[o,l]}function Are(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,h=a.maxX,d=a.minY,p=a.maxY,m=function(U){return U*t._invScaleX},y=function(U){return U*t._invScaleY};e.each(function(U){var V=U[n],G=U[i],B=V._id.charAt(0)==="x",J=V.range;f===0&&J&&J[0]>J[1]!==B&&(o=-1);var X=0,j=B?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var le=Pk(U,r),fe=U.anchor,ve=fe==="end"?-1:1,ee,Ce;if(fe==="middle")ee=U.crossPos+(B?y(le.y-U.by/2):m(U.bx/2+U.tx2width/2)),Ce=ee+(B?y(U.by):m(U.bx));else if(B)ee=U.crossPos+y(bt+le.y)-y(U.by/2-bt),Ce=ee+y(U.by);else{var ce=m(ve*bt+le.x),be=ce+m(ve*U.bx);ee=U.crossPos+Math.min(ce,be),Ce=U.crossPos+Math.max(ce,be)}B?d!==void 0&&p!==void 0&&Math.min(Ce,p)-Math.max(ee,d)>1&&(G.side==="left"?(X=G._mainLinePosition,j=t.width):j=G._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(Ce,h)-Math.max(ee,c)>1&&(G.side==="top"?(X=G._mainLinePosition,j=t.height):j=G._mainLinePosition)}u[f++]=[{datum:U,traceIndex:U.trace.index,dp:0,pos:U.pos,posref:U.posref,size:U.by*(B?gre:1)/2,pmin:X,pmax:j}]}),u.sort(function(U,V){return U[0].posref-V[0].posref||o*(V[0].traceIndex-U[0].traceIndex)});var b,_,w,x,A,k,M;function S(U){var V=U[0],G=U[U.length-1];if(_=V.pmin-V.pos-V.dp+V.size,w=G.pos+G.dp+G.size-V.pmax,_>.01){for(A=U.length-1;A>=0;A--)U[A].dp+=_;b=!1}if(!(w<.01)){if(_<-.01){for(A=U.length-1;A>=0;A--)U[A].dp-=w;b=!1}if(b){var B=0;for(x=0;xV.pmax&&B++;for(x=U.length-1;x>=0&&!(B<=0);x--)k=U[x],k.pos>V.pmax-1&&(k.del=!0,B--);for(x=0;x=0;A--)U[A].dp-=w;for(x=U.length-1;x>=0&&!(B<=0);x--)k=U[x],k.pos+k.dp+k.size>V.pmax&&(k.del=!0,B--)}}}for(;!b&&l<=s;){for(l++,b=!0,x=0;x.01){for(A=E.length-1;A>=0;A--)E[A].dp+=_;for(D.push.apply(D,E),u.splice(x+1,1),M=0,A=D.length-1;A>=0;A--)M+=D[A].dp;for(w=M/D.length,A=D.length-1;A>=0;A--)D[A].dp-=w;b=!1}else x++}u.forEach(S)}for(x=u.length-1;x>=0;x--){var H=u[x];for(A=H.length-1;A>=0;A--){var I=H[A],Y=I.datum;Y.offset=I.dp,Y.del=I.del}}}function Pk(e,r){var t=0,a=e.offset;return r&&(a*=-bre,t=e.offset*xre),{x:t,y:a}}function Mre(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(bt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Rk(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=Ts.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=Mre(l),h=Pk(l,r),d=h.x,p=h.y,m=u==="middle",y="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,b;m?b="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":y?b="M0,0L"+n(f*bt+d)+","+i(bt+p)+"v"+i(l.by/2-bt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*bt+d)+"V"+i(p-bt)+"Z":b="M"+n(f*bt+d)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",b);var _=d+c.textShiftX,w=p+l.ty0-l.by/2+Or,x=l.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),_=m?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),_=m?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(Xn.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(Xn.positionText,n(c.text2ShiftX+c.alignShift*Or+d),i(p+l.ty0-l.by/2+Or)),o.select("rect").call(Zi.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+d),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function kre(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||bl(h)&&h===0}var o=Array.isArray(t)?function(h,d){var p=Ct.castOption(n,t,h);return l(p)?p:Ct.extractOption({},a,"",d)}:function(h,d){return Ct.extractOption(i,a,h,d)};function s(h,d,p){var m=o(d,p);l(m)&&(e[h]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ct.constrain(e.x0,0,e.xa._length),e.x1=Ct.constrain(e.x1,0,e.xa._length),e.y0=Ct.constrain(e.y0,0,e.ya._length),e.y1=Ct.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ji.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ji.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Ji.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ji.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ji.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ji.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function kk(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=la.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,p;u=h&&h.xa,f=h&&h.ya;var m=f.spikesnap;m==="cursor"?(d=l.pointerX,p=l.pointerY):(d=u._offset+h.x,p=f._offset+h.y);var y=wk.readability(h.color,c)<1.5?la.contrast(c):h.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||y,x=Ji.getPxPosition(e,f),A,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(A=x,k=d),b.indexOf("across")!==-1){var M=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),S=Math.max(S,f.position)),A=i.l+M*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:A,x2:k,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":Zi.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:k,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,E,R;u=D&&D.xa,f=D&&D.ya;var N=u.spikesnap;N==="cursor"?(E=l.pointerX,R=l.pointerY):(E=u._offset+D.x,R=f._offset+D.y);var H=wk.readability(D.color,c)<1.5?la.contrast(c):D.color,I=u.spikemode,Y=u.spikethickness,U=u.spikecolor||H,V=Ji.getPxPosition(e,u),G,B;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(G=V,B=R),I.indexOf("across")!==-1){var J=u._counterDomainMin,X=u._counterDomainMax;u.anchor==="free"&&(J=Math.min(J,u.position),X=Math.max(X,u.position)),G=i.t+(1-X)*i.h,B=i.t+(1-J)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:G,y2:B,"stroke-width":Y,stroke:U,"stroke-dasharray":Zi.dashStyle(u.spikedash,Y)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:G,y2:B,"stroke-width":Y+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:V-(u.side!=="top"?Y:-Y),r:Y,fill:U}).classed("spikeline",!0)}}}function qre(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function qk(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Ck(e,r){return Xn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Cre(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,Nk=e=>e.offsetLeft+e.clientLeft;function uf(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Ct.apply3DTransform(t._invTransform)(n,i),u=Ct.apply3DTransform(t._invTransform)(l,o),f=s[0],c=s[1],h=u[0],d=u[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var t1=O((L2e,Fk)=>{"use strict";var Sre=ze(),Lre=br(),Dre=Yi().isUnifiedHover;Fk.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&Dre(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=Lre.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Sre.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Hk=O((D2e,Ik)=>{"use strict";var Ere=ze(),Pre=t1(),Rre=ku();Ik.exports=function(r,t){function a(n,i){return Ere.coerce(r,t,Rre,n,i)}Pre(r,t,a)}});var Yk=O((E2e,Ok)=>{"use strict";var Bk=ze(),zre=Dc(),Nre=t1();Ok.exports=function(r,t,a,n){function i(o,s){return Bk.coerce(r,t,zre,o,s)}var l=Bk.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Nre(r,t,i,l)}});var c3=O((P2e,Vk)=>{"use strict";var Fre=ze(),Ire=ku();Vk.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Fre.coerce(r,t,Ire,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var Xk=O((R2e,Uk)=>{"use strict";var Gk=ze(),Hre=ku(),Bre=c3(),Ore=t1();Uk.exports=function(r,t){function a(f,c){return Gk.coerce(r,t,Hre,f,c)}var n=Bre(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),Ore(r,t,a),Gk.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var Jk=O((z2e,Zk)=>{"use strict";var v3=ze(),Wk=gr();Zk.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return v3.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var Vre=gr(),Gre=f3().hover;$k.exports=function(r,t,a){var n=Vre.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Gre(r,t,a,!0);function l(){var s,u,f,c;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals),(c=o.yvals)!=null||(o.yvals=r._hoverYVals),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Wn=O((F2e,eq)=>{"use strict";var Ure=kr(),a1=ze(),Xre=wi(),vv=Yi(),Qk=ku(),jk=f3();eq.exports={moduleType:"component",name:"fx",constants:Cc(),schema:{layout:Qk},attributes:Dc(),layoutAttributes:Qk,supplyLayoutGlobalDefaults:Hk(),supplyDefaults:Yk(),supplyLayoutDefaults:Xk(),calc:Jk(),getDistanceFunction:vv.getDistanceFunction,getClosest:vv.getClosest,inbox:vv.inbox,quadrature:vv.quadrature,appendArrayPointValue:vv.appendArrayPointValue,castHoverOption:Zre,castHoverinfo:Jre,hover:jk.hover,unhover:Xre.unhover,loneHover:jk.loneHover,loneUnhover:Wre,click:Kk()};function Wre(e){var r=a1.isD3Selection(e)?e:Ure.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Zre(e,r,t){return a1.castOption(e,r,"hoverlabel."+t)}function Jre(e,r,t){function a(n){return a1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return a1.castOption(e,t,"hoverinfo",a)}});var cf=O(_l=>{"use strict";_l.selectMode=function(e){return e==="lasso"||e==="select"};_l.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};_l.openMode=function(e){return e==="drawline"||e==="drawopenpath"};_l.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};_l.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};_l.selectingOrDrawing=function(e){return _l.freeMode(e)||_l.rectMode(e)}});var n1=O((H2e,rq)=>{"use strict";rq.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var i1=O((B2e,tq)=>{"use strict";tq.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var o1=O((O2e,aq)=>{"use strict";var l1=32;aq.exports={CIRCLE_SIDES:l1,i000:0,i090:l1/4,i180:l1/2,i270:l1/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var s1=O((Y2e,iq)=>{"use strict";var $re=ze().strTranslate;function nq(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function Kre(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function Qre(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return nq(e,t[r])}}function jre(e){return $re(e.xaxis._offset,e.yaxis._offset)}iq.exports={p2r:nq,r2p:Kre,axValue:Qre,getTransform:jre}});var oo=O(wl=>{"use strict";var ete=jg(),sq=o1(),vf=sq.CIRCLE_SIDES,h3=sq.SQRT2,uq=s1(),lq=uq.p2r,oq=uq.r2p,rte=[0,3,4,5,6,1,2],tte=[0,3,4,1,2];wl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var fq=Ut(),pq=cf(),ate=pq.drawMode,nte=pq.openMode,hf=o1(),cq=hf.i000,vq=hf.i090,hq=hf.i180,dq=hf.i270,ite=hf.cos45,lte=hf.sin45,mq=s1(),f1=mq.p2r,so=mq.r2p,ote=Ql(),ste=ote.clearOutline,c1=oo(),ute=c1.readPaths,fte=c1.writePaths,cte=c1.ellipseOver,vte=c1.fixDatesForPaths;function hte(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!ate(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var dte=cf(),pte=dte.selectMode,mte=Ql(),yte=mte.clearOutline,d3=oo(),gte=d3.readPaths,xte=d3.writePaths,bte=d3.fixDatesForPaths;xq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!pte(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";bq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var fo=O(ya=>{"use strict";var Ki=dv(),_q=ze(),uo=Zr();ya.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ya.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ya.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ya.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ya.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ki.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(Ki.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};ya.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=ya.shapePositionToRange(r);l=function(s){var u=$i(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=ya.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};ya.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=ya.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};ya.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};ya.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};ya.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};ya.getPathString=function(e,r){let t=r.type,a=uo.getRefType(r.xref),n=uo.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,c,h,d,p,m,y,b;function _(E,R,N,H){var I;if(E)if(R==="domain")H?I=function(Y){return E._offset+E._length*(1-Y)}:I=function(Y){return E._offset+E._length*Y};else{let Y=ya.shapePositionToRange(E);I=function(U){return E._offset+E.r2p(Y(U,!0))},N==="path"&&E.type==="date"&&(I=ya.decodeDate(I))}else H?I=function(Y){return i.t+i.h*(1-Y)}:I=function(Y){return i.l+i.w*Y};return I}if(a==="array"?(h=[],l=r.xref.map(function(E){return uo.getFromId(e,E)}),h=r.xref.map(function(E,R){return _(l[R],uo.getRefType(E),t,!1)})):(l=uo.getFromId(e,r.xref),h=_(l,a,t,!1)),n==="array"?(d=[],o=r.yref.map(function(E){return uo.getFromId(e,E)}),d=r.yref.map(function(E,R){return _(o[R],uo.getRefType(E),t,!0)})):(o=uo.getFromId(e,r.yref),d=_(o,n,t,!0)),t==="path")return _te(r,h,d);if(a==="array")s=$i(l[0],r.x0shift),u=$i(l[1],r.x1shift),p=h[0](r.x0)+s,m=h[1](r.x1)+u;else if(s=$i(l,r.x0shift),u=$i(l,r.x1shift),r.xsizemode==="pixel"){let E=h(r.xanchor);p=E+r.x0+s,m=E+r.x1+u}else p=h(r.x0)+s,m=h(r.x1)+u;if(n==="array")f=$i(o[0],r.y0shift),c=$i(o[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=$i(o,r.y0shift),c=$i(o,r.y1shift),r.ysizemode==="pixel"){let E=d(r.yanchor);y=E-r.y0+f,b=E-r.y1+c}else y=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+b;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+b+"H"+p+"Z";var w=(p+m)/2,x=(y+b)/2,A=Math.abs(w-p),k=Math.abs(x-y),M="A"+A+","+k,S=w+A+","+x,D=w+","+(x-k);return"M"+S+M+" 0 1,1 "+D+M+" 0 0,1 "+S+"Z"};function _te(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Ki.segmentRE,function(h){var d=0,p=h.charAt(0),m=Ki.paramIsX[p],y=Ki.paramIsY[p],b=Ki.numParams[p];let _=m.drawn!==void 0,w=y.drawn!==void 0,x=s?r[f]:r,A=u?t[c]:t;var k=h.slice(1).replace(Ki.paramRE,function(M){return m[d]?n==="pixel"?M=x(l)+Number(M):M=x(M):y[d]&&(i==="pixel"?M=A(o)-Number(M):M=A(M)),d++,d>b&&(M="X"),M});return d>b&&(k=k.replace(/[\s,]*X.*/,""),_q.log("Ignoring extra params in segment "+h)),_&&f++,w&&c++,p+k})}ya.getPixelShift=$i;function $i(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var m3=O((Z2e,Aq)=>{"use strict";var wte=ze(),Qi=Zr(),wq=na(),Tq=Yr(),Tte=oo().readPaths,Ms=fo(),Ate=Ms.getPathString,pv=zh(),Mte=Ma().FROM_TL;Aq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Qi.getFromId(r,a.xref),s=Qi.getFromId(r,a.yref);let X=Array.isArray(a.xref),j=Array.isArray(a.yref);for(var u in pv){var f=typeof pv[u]=="function",c=!X||pv.simpleXVariables.includes(u),h=!j||pv.simpleYVariables.includes(u);if(f&&c&&h){var d=pv[u](a,o,s);d!==void 0&&(l[u]=d)}}}i=wte.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),_=b.append("text").attr(y).classed("shape-label-text",!0).text(i),w,x,A,k;if(a.path){var M=Ate(r,a),S=Tte(M,r);w=1/0,A=1/0,x=-1/0,k=-1/0;for(var D=0;DMs.getDataToPixel(r,oe,Z,!1,me)(Q),W=(Q,Z,oe,me)=>Ms.getDataToPixel(r,oe,Z,!0,me)(Q);if(a.xsizemode==="pixel"){let Q=ge(a.xanchor,void 0,le,Ce),Z=Ms.getPixelShift(le,a.x0shift),oe=Ms.getPixelShift(le,a.x1shift);w=Q+a.x0+Z,x=Q+a.x1+oe}else w=ge(a.x0,a.x0shift,le,Ce),x=ge(a.x1,a.x1shift,fe,ce);if(a.ysizemode==="pixel"){let Q=W(a.yanchor,void 0,ve,be),Z=Ms.getPixelShift(ve,a.y0shift),oe=Ms.getPixelShift(ve,a.y1shift);A=Q-a.y0+Z,k=Q-a.y1+oe}else A=W(a.y0,a.y0shift,ve,be),k=W(a.y1,a.y1shift,ee,_e)}var Y=a.label.textangle;Y==="auto"&&(a.type==="line"?Y=kte(w,A,x,k):Y=0),_.call(function(X){return X.call(Tq.font,m).attr({}),wq.convertToTspans(X,r),X});var U=Tq.bBox(_.node()),V=qte(w,A,x,k,a,Y,U),G=V.textx,B=V.texty,J=V.xanchor;_.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[J],y:B,x:G,transform:"rotate("+Y+","+G+","+B+")"}).call(wq.positionText,G,B)}};function kte(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function qte(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,b,_,w;if(f==="line"){o==="start"?(y=e,b=r):o==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Cte=ze(),Ste=Cte.strTranslate,Mq=wi(),Cq=cf(),Lte=Cq.drawMode,Sq=Cq.selectMode,Lq=gr(),kq=br(),d1=o1(),Dte=d1.i000,Ete=d1.i090,Pte=d1.i180,Rte=d1.i270,zte=Ql(),Dq=zte.clearOutlineControllers,g3=oo(),h1=g3.pointsOnRectangle,y3=g3.pointsOnEllipse,Nte=g3.writePaths,Fte=v1().newShapes,Ite=v1().createShapeObj,Hte=p3(),Bte=m3();Eq.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(y3(r[0])||a.hasText)&&o({redrawing:!0})}function o(V){var G={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,G=Fte(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,G=Hte(t,a),i._fullLayout._reselect=!0),Object.keys(G).length&&Lq.call((V||{}).redrawing?"relayout":"_guiRelayout",i,G)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Lte(f),h=Sq(f);(c||h)&&(i._fullLayout._outlining=!0),Dq(i),t.attr("d",Nte(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Ote([],r);var _=u.append("g").attr("class","outline-controllers");E(_),U()}if(c&&a.hasText){var w=u.select(".label-temp"),x=Ite(t,a,a.dragmode);Bte(i,"label-temp",x,w)}function A(V){m=+V.srcElement.getAttribute("data-i"),y=+V.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(V,G){if(r.length){var B=b[m][y][1],J=b[m][y][2],X=r[m],j=X.length;if(h1(X)){var le=V,fe=G;if(a.isActiveSelection){var ve=qq(X,y);ve[1]===X[y][1]?fe=0:le=0}for(var ee=0;ee1&&!(V.length===2&&V[1][0]==="Z")&&(y===0&&(V[0][0]="M"),r[m]=V,l(),o())}}function D(V,G){if(V===2){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j");var B=r[m];!h1(B)&&!y3(B)&&S()}}function E(V){d=[];for(var G=0;G{"use strict";var Vte=kr(),Iq=gr(),b3=ze(),ks=Zr(),Gte=oo().readPaths,Ute=p1(),y1=m3(),Hq=Ql().clearOutlineControllers,x3=br(),g1=Yr(),Xte=ot().arrayEditor,Pq=wi(),Rq=Wn(),zq=io(),qs=dv(),dn=fo(),_3=dn.getPathString;Yq.exports={draw:w3,drawOne:Bq,eraseActiveShape:Kte,drawLabel:y1};function w3(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&Rq.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&Rq.click(e,l,t.id)}})}function Oq(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,l=Zte(r,a,n);b3.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),g1.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");g1.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function Zte(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(h=>ks.getFromId(e,h)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(h){return h._offset}),c=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function Jte(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",h=i.modifyItem,d,p,m,y,b,_,w,x,A,k,M,S,D,E,R,N=Vte.select(r.node().parentNode),H=ks.getFromId(e,t.xref),I=ks.getRefType(t.xref),Y=ks.getFromId(e,t.yref),U=ks.getRefType(t.yref),V=t.x0shift,G=t.x1shift,B=t.y0shift,J=t.y1shift,X=function(Ee,Se){var Ge=dn.getDataToPixel(e,H,Se,!1,I);return Ge(Ee)},j=function(Ee,Se){var Ge=dn.getDataToPixel(e,Y,Se,!0,U);return Ge(Ee)},le=dn.getPixelToData(e,H,!1,I),fe=dn.getPixelToData(e,Y,!0,U),ve=ce(),ee={element:ve.node(),gd:e,prepFn:ge,doneFn:W,clickFn:Q},Ce;Pq.init(ee),ve.node().onmousemove=_e;function ce(){return f?be():r}function be(){var Ee=10,Se=Math.max(t.line.width,Ee),Ge=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ge.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Se,"stroke-opacity":"0"});var Ie={"fill-opacity":"0"},We=Math.max(Se/2,Ee);return Ge.append("circle").attr({"data-line-point":"start-point",cx:s?X(t.xanchor)+t.x0:X(t.x0,V),cy:u?j(t.yanchor)-t.y0:j(t.y0,B),r:We}).style(Ie).classed("cursor-grab",!0),Ge.append("circle").attr({"data-line-point":"end-point",cx:s?X(t.xanchor)+t.x1:X(t.x1,G),cy:u?j(t.yanchor)-t.y1:j(t.y1,J),r:We}).style(Ie).classed("cursor-grab",!0),Ge}function _e(Ee){if(m1(e)){Ce=null;return}if(f)Ee.target.tagName==="path"?Ce="move":Ce=Ee.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Se=ee.element.getBoundingClientRect(),Ge=Se.right-Se.left,Ie=Se.bottom-Se.top,We=Ee.clientX-Se.left,De=Ee.clientY-Se.top,He=!c&&Ge>l&&Ie>o&&!Ee.shiftKey?Pq.getCursor(We/Ge,1-De/Ie):"move";zq(r,He),Ce=He.split("-")[0]}}function ge(Ee){m1(e)||(s&&(b=X(t.xanchor)),u&&(_=j(t.yanchor)),t.type==="path"?R=t.path:(d=s?t.x0:X(t.x0),p=u?t.y0:j(t.y0),m=s?t.x1:X(t.x1),y=u?t.y1:j(t.y1)),dy?(w=p,M="y0",x=y,S="y1"):(w=y,M="y1",x=p,S="y0"),_e(Ee),me(n,t),Re(r,t,e),ee.moveFn=Ce==="move"?Z:oe,ee.altKey=Ee.altKey)}function W(){m1(e)||(zq(r),xe(n),Oq(r,e,t),Iq.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){m1(e)||xe(n)}function Z(Ee,Se){if(t.type==="path"){var Ge=function(De){return De},Ie=Ge,We=Ge;s?h("xanchor",t.xanchor=le(b+Ee)):(Ie=function(He){return le(X(He)+Ee)},H&&H.type==="date"&&(Ie=dn.encodeDate(Ie))),u?h("yanchor",t.yanchor=fe(_+Se)):(We=function(He){return fe(j(He)+Se)},Y&&Y.type==="date"&&(We=dn.encodeDate(We))),h("path",t.path=Nq(R,Ie,We))}else s?h("xanchor",t.xanchor=le(b+Ee)):(h("x0",t.x0=le(d+Ee)),h("x1",t.x1=le(m+Ee))),u?h("yanchor",t.yanchor=fe(_+Se)):(h("y0",t.y0=fe(p+Se)),h("y1",t.y1=fe(y+Se)));r.attr("d",_3(e,t)),me(n,t),y1(e,a,t,N)}function oe(Ee,Se){if(c){var Ge=function(Ue){return Ue},Ie=Ge,We=Ge;s?h("xanchor",t.xanchor=le(b+Ee)):(Ie=function(ir){return le(X(ir)+Ee)},H&&H.type==="date"&&(Ie=dn.encodeDate(Ie))),u?h("yanchor",t.yanchor=fe(_+Se)):(We=function(ir){return fe(j(ir)+Se)},Y&&Y.type==="date"&&(We=dn.encodeDate(We))),h("path",t.path=Nq(R,Ie,We))}else if(f){if(Ce==="resize-over-start-point"){var De=d+Ee,He=u?p-Se:p+Se;h("x0",t.x0=s?De:le(De)),h("y0",t.y0=u?He:fe(He))}else if(Ce==="resize-over-end-point"){var Xe=m+Ee,ie=u?y-Se:y+Se;h("x1",t.x1=s?Xe:le(Xe)),h("y1",t.y1=u?ie:fe(ie))}}else{var we=function(Ue){return Ce.indexOf(Ue)!==-1},$e=we("n"),hr=we("s"),Ne=we("w"),ke=we("e"),qe=$e?w+Se:w,Be=hr?x+Se:x,Ze=Ne?A+Ee:A,Ve=ke?k+Ee:k;u&&($e&&(qe=w-Se),hr&&(Be=x-Se)),(!u&&Be-qe>o||u&&qe-Be>o)&&(h(M,t[M]=u?qe:fe(qe)),h(S,t[S]=u?Be:fe(Be))),Ve-Ze>l&&(h(D,t[D]=s?Ze:le(Ze)),h(E,t[E]=s?Ve:le(Ve)))}r.attr("d",_3(e,t)),me(n,t),y1(e,a,t,N)}function me(Ee,Se){(s||u)&&Ge();function Ge(){var Ie=Se.type!=="path",We=Ee.selectAll(".visual-cue").data([0]),De=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=X(s?Se.xanchor:b3.midRange(Ie?[Se.x0,Se.x1]:dn.extractPathCoords(Se.path,qs.paramIsX))),Xe=j(u?Se.yanchor:b3.midRange(Ie?[Se.y0,Se.y1]:dn.extractPathCoords(Se.path,qs.paramIsY)));if(He=dn.roundPositionForSharpStrokeRendering(He,De),Xe=dn.roundPositionForSharpStrokeRendering(Xe,De),s&&u){var ie="M"+(He-1-De)+","+(Xe-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",ie)}else if(s){var we="M"+(He-1-De)+","+(Xe-9-De)+"v18 h2 v-18 Z";We.attr("d",we)}else{var $e="M"+(He-9-De)+","+(Xe-1-De)+"h18 v2 h-18 Z";We.attr("d",$e)}}}function xe(Ee){Ee.selectAll(".visual-cue").remove()}function Re(Ee,Se,Ge){var Ie=Se.xref,We=Se.yref,De=ks.getFromId(Ge,Ie),He=ks.getFromId(Ge,We),Xe="";Ie!=="paper"&&!De.autorange&&(Xe+=Ie),We!=="paper"&&!He.autorange&&(Xe+=We),g1.setClipUrl(Ee,Xe?"clip"+Ge._fullLayout._uid+Xe:null,Ge)}}function Nq(e,r,t){return e.replace(qs.segmentRE,function(a){var n=0,i=a.charAt(0),l=qs.paramIsX[i],o=qs.paramIsY[i],s=qs.numParams[i],u=a.slice(1).replace(qs.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function $te(e,r){if(x1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){Fq(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=Fq,w3(e)}}}function Fq(e){if(x1(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Hq(e),delete e._fullLayout._activeShapeIndex,w3(e))}}function Kte(e){if(x1(e)){Hq(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Zn=gr(),Vq=Et(),Gq=Ut(),Gr=i1(),Qte=b1().eraseActiveShape,_1=ze(),Ir=_1._,Ur=Kq.exports={};Ur.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ir(e,"Download plot as a PNG"):Ir(e,"Download plot")},icon:Gr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};_1.notifier(Ir(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Zn.call("downloadImage",e,t).then(function(a){_1.notifier(Ir(e,"Snapshot succeeded")+" - "+a,"long",e)}).catch(function(){_1.notifier(Ir(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Ur.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.disk,click:function(e){Vq.sendDataToCloud(e)}};Ur.editInChartStudio={name:"editInChartStudio",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.pencil,click:function(e){Vq.sendDataToCloud(e)}};Ur.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ir(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Gr.zoombox,click:Va};Ur.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ir(e,"Pan")},attr:"dragmode",val:"pan",icon:Gr.pan,click:Va};Ur.select2d={name:"select2d",_cat:"select",title:function(e){return Ir(e,"Box Select")},attr:"dragmode",val:"select",icon:Gr.selectbox,click:Va};Ur.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ir(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Gr.lasso,click:Va};Ur.drawclosedpath={name:"drawclosedpath",title:function(e){return Ir(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Gr.drawclosedpath,click:Va};Ur.drawopenpath={name:"drawopenpath",title:function(e){return Ir(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Gr.drawopenpath,click:Va};Ur.drawline={name:"drawline",title:function(e){return Ir(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Gr.drawline,click:Va};Ur.drawrect={name:"drawrect",title:function(e){return Ir(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Gr.drawrect,click:Va};Ur.drawcircle={name:"drawcircle",title:function(e){return Ir(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Gr.drawcircle,click:Va};Ur.eraseshape={name:"eraseshape",title:function(e){return Ir(e,"Erase active shape")},icon:Gr.eraseshape,click:Qte};Ur.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ir(e,"Zoom in")},attr:"zoom",val:"in",icon:Gr.zoom_plus,click:Va};Ur.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ir(e,"Zoom out")},attr:"zoom",val:"out",icon:Gr.zoom_minus,click:Va};Ur.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ir(e,"Autoscale")},attr:"zoom",val:"auto",icon:Gr.autoscale,click:Va};Ur.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ir(e,"Reset axes")},attr:"zoom",val:"reset",icon:Gr.home,click:Va};Ur.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ir(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Gr.tooltip_basic,gravity:"ne",click:Va};Ur.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ir(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Gr.tooltip_compare,gravity:"ne",click:Va};function Va(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=Gq.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,m;for(f=0;f{"use strict";var Qq=M3(),rae=Object.keys(Qq),jq=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],eC=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(jq),pf=[],tae=function(e){if(eC.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();pf.indexOf(r)===-1&&pf.push(r),pf.indexOf(t)===-1&&pf.push(t)}};rae.forEach(function(e){tae(Qq[e])});pf.sort();rC.exports={DRAW_MODES:jq,backButtons:eC,foreButtons:pf}});var q3=O((e3e,tC)=>{"use strict";var j2e=k3();tC.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var nC=O((r3e,aC)=>{"use strict";var aae=ze(),mv=br(),nae=ot(),iae=q3();aC.exports=function(r,t){var a=r.modebar||{},n=nae.newContainer(t,"modebar");function i(o,s){return aae.coerce(a,n,iae,o,s)}i("orientation"),i("bgcolor",mv.addOpacity(t.paper_bgcolor,.5));var l=mv.contrast(mv.rgb(t.modebar.bgcolor));i("color",mv.addOpacity(l,.3)),i("activecolor",mv.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var sC=O((t3e,oC)=>{"use strict";var C3=kr(),lae=zr(),T1=ze(),iC=i1(),oae=mh().version,sae=new DOMParser;function lC(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ji=lC.prototype;ji.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),T1.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};ji.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};ji.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};ji.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&C3.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||iC.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};ji.createIcon=function(e){var r=lae(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=sae.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};ji.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=C3.select(a),s=function(c,h){var d=r.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:T1.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};ji.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var cae=Ut(),uC=Mn(),S3=gr(),vae=Yi().isUnifiedHover,hae=sC(),A1=M3(),dae=k3().DRAW_MODES,pae=ze().extendDeep;fC.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=_ae(i):!a.displayModeBar&&a.watermark?l=[]:l=mae(r),n?n.update(r,l):t._modeBar=hae(r,l)};function mae(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(G,B){if(typeof B=="string"){if(B.toLowerCase()===G.toLowerCase())return!0}else{var J=B.name,X=B._cat||B.name;if(J===G||X===G.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(G){for(var B=0;B1?(E=["toggleHover"],R=["resetViews"]):c?(D=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],R=["resetGeo"]):f?(E=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(D=["zoomInMapbox","zoomOutMapbox"],E=["toggleHover"],R=["resetViewMapbox"]):y?(D=["zoomInMap","zoomOutMap"],E=["toggleHover"],R=["resetViewMap"]):h?E=["hoverClosestPie"]:w?(E=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):E=["toggleHover"],u&&E.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(xae(t)||A)&&(E=[]),u&&!x&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],R[0]!=="resetViews"&&(R=["resetScale2d"])),f?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||p?N=["zoom2d","pan2d"]:m||y||c?N=["pan2d"]:b&&(N=["zoom2d"]),gae(t)&&N.push("select2d","lasso2d");var H=[],I=function(G){H.indexOf(G)===-1&&E.indexOf(G)!==-1&&H.push(G)};if(Array.isArray(o)){for(var Y=[],U=0;U{"use strict";vC.exports={moduleType:"component",name:"modebar",layoutAttributes:q3(),supplyLayoutDefaults:nC(),manage:cC()}});var D3=O((i3e,hC)=>{"use strict";var wae=Ma().FROM_BL;hC.exports=function(r,t,a){a===void 0&&(a=wae[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Ss=O(yv=>{"use strict";var Cs=ze(),E3=jc(),Ai=Ut().id2name,Tae=An(),dC=D3(),Aae=Dd(),Mae=Tt().ALMOST_EQUAL,kae=Ma().FROM_BL;yv.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,h,d,p;for(o=0;oi?t.slice(i):a.slice(n))+l}function Cae(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lMae*p&&!_)){for(i=0;iN&&JE&&(E=J);var j=(E-D)/(2*R);c/=j,D=s.l2r(D),E=s.l2r(E),s.range=s._input.range=k{"use strict";var k1=kr(),Ga=gr(),Ln=Et(),Jn=ze(),z3=na(),N3=n1(),gv=br(),mf=Yr(),gC=Kc(),TC=L3(),xv=Zr(),Tl=Ma(),AC=Ss(),Sae=AC.enforce,Lae=AC.clean,xC=jc().doAutoRange,MC="start",Dae="middle",kC="end",Eae=aa().zindexSeparator;oa.layoutStyles=function(e){return Jn.syncOrAsync([Ln.doAutoMargin,Rae],e)};function Pae(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Rae(e){var r=e._fullLayout,t=r._size,a=t.p,n=xv.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(mf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),oa.drawMainTitle(e),TC.manage(e),!r._has("cartesian"))return Ln.previousPromises(e);function c(ge,W,Q){var Z=ge._lw/2;if(ge._id.charAt(0)==="x"){if(W){if(Q==="top")return W._offset-a-Z}else return t.t+t.h*(1-(ge.position||0))+Z%1;return W._offset+W._length+a+Z}if(W){if(Q==="right")return W._offset+W._length+a+Z}else return t.l+t.w*(ge.position||0)+Z%1;return W._offset-a-Z}for(i=0;i0){Iae(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:wC(r.yanchor)}).call(z3.positionText,l,i);var f=(r.text.match(z3.BR_TAG_ALL)||[]).length;if(f){var c=Tl.LINE_SPACING*f+Tl.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var h=k1.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),p=d.y+d.height,m=p+gC.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y:m,"text-anchor":a,dy:wC(r.yanchor)}).call(z3.positionText,l,m)}}}};function zae(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Jn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Jn.isTopAnchor(r)&&t==="t"||Jn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=Nae(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function Iae(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&zae(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),Ln.allowAutoMargin(e,n),Ln.autoMargin(e,n,o)}function Hae(e,r){var t=e.title,a=e._size,n=0;switch(r===MC?n=t.pad.l:r===kC&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function Bae(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===Tl.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function wC(e){return e==="top"?Tl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Tl.MID_SHIFT+"em"}function Oae(e){var r=e.title,t=Dae;return Jn.isRightAnchor(r)?t=kC:Jn.isLeftAnchor(r)&&(t=MC),t}function Yae(e){var r=e.title,t="0em";return Jn.isTopAnchor(r)?t=Tl.CAP_SHIFT+"em":Jn.isMiddleAnchor(r)&&(t=Tl.MID_SHIFT+"em"),t}oa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Vae=oo().readPaths,Gae=p1(),qC=Ql().clearOutlineControllers,F3=br(),CC=Yr(),Uae=ot().arrayEditor,SC=fo(),Xae=SC.getPathString;DC.exports={draw:C1,drawOne:LC,activateLastSelection:Jae};function C1(e){var r=e._fullLayout;qC(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var b=l.append("path").attr(s).style("opacity",y?.1:u).call(F3.stroke,c).call(F3.fill,f).call(CC.dashLine,y?"solid":d,y?4+h:h);if(Wae(b,e,a),p){var _=Uae(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=Vae(o,e);Gae(x,b,w)}else b.style("pointer-events",y?"all":"none");m[y]=b}var A=m[0],k=m[1];k.node().addEventListener("click",function(){return Zae(e,A)})}}function Wae(e,r,t){var a=t.xref+t.yref;CC.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Zae(e,r){if(S1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){I3(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=I3,C1(e)}}}function Jae(e){if(S1(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=I3,C1(e)}}function I3(e){if(S1(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(qC(e),delete e._fullLayout._activeSelectionIndex,C1(e))}}});var PC=O((u3e,EC)=>{function $ae(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}EC.exports=$ae});var zC=O((f3e,RC)=>{function Kae(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}RC.exports=Kae});var FC=O((c3e,NC)=>{var Qae={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};NC.exports=Qae});var HC=O((v3e,IC)=>{var bv=FC();function jae(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=bv.create();function l(p,m,y,b,_,w){var x=r.pointsCompare(m,_);return x!==0?x:r.pointsSame(y,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(y,b?_:w,b?w:_)?1:-1}function o(p,m){i.insertBefore(p,function(y){var b=l(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return b<0})}function s(p,m){var y=bv.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return o(y,p.end),y}function u(p,m,y){var b=bv.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=b,o(b,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,o(p.other,p.pt)}function h(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=bv.create();function b(Y,U){var V=Y.seg.start,G=Y.seg.end,B=U.seg.start,J=U.seg.end;return r.pointsCollinear(V,B,J)?r.pointsCollinear(G,B,J)||r.pointAboveOrOnLine(G,B,J)?1:-1:r.pointAboveOrOnLine(V,B,J)?1:-1}function _(Y){return y.findTransition(function(U){var V=b(Y,U.ev);return V>0})}function w(Y,U){var V=Y.seg,G=U.seg,B=V.start,J=V.end,X=G.start,j=G.end;t&&t.checkIntersection(V,G);var le=r.linesIntersect(B,J,X,j);if(le===!1){if(!r.pointsCollinear(B,J,X)||r.pointsSame(B,j)||r.pointsSame(J,X))return!1;var fe=r.pointsSame(B,X),ve=r.pointsSame(J,j);if(fe&&ve)return U;var ee=!fe&&r.pointBetween(B,X,j),Ce=!ve&&r.pointBetween(J,X,j);if(fe)return Ce?h(U,J):h(Y,j),U;ee&&(ve||(Ce?h(U,J):h(Y,j)),h(U,B))}else le.alongA===0&&(le.alongB===-1?h(Y,X):le.alongB===0?h(Y,le.pt):le.alongB===1&&h(Y,j)),le.alongB===0&&(le.alongA===-1?h(U,B):le.alongA===0?h(U,le.pt):le.alongA===1&&h(U,J));return!1}for(var x=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let Y=function(){if(M){var U=w(A,M);if(U)return U}return S?w(A,S):!1};var I=Y;t&&t.segmentNew(A.seg,A.primary);var k=_(A),M=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,S?S.seg:!1);var D=Y();if(D){if(e){var E;A.seg.myFill.below===null?E=!0:E=A.seg.myFill.above!==A.seg.myFill.below,E&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(D.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var E;A.seg.myFill.below===null?E=!0:E=A.seg.myFill.above!==A.seg.myFill.below,S?A.seg.myFill.below=S.seg.myFill.above:A.seg.myFill.below=p,E?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var R;S?A.primary===S.primary?R=S.seg.otherFill.above:R=S.seg.myFill.above:R=A.primary?m:p,A.seg.otherFill={above:R,below:R}}t&&t.status(A.seg,M?M.seg:!1,S?S.seg:!1),A.other.status=k.insert(bv.node({ev:A}))}else{var N=A.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(N.prev)&&y.exists(N.next)&&w(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!A.primary){var H=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=H}x.push(A.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var m,y=p[p.length-1],b=0;b{function ene(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(I,Y,U){return f.index=I,f.matches_head=Y,f.matches_pt1=U,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function _v(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var rne={union:function(e,r){return _v(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return _v(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return _v(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return _v(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return _v(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};YC.exports=rne});var UC=O((p3e,GC)=>{var tne={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var ane=PC(),nne=zC(),XC=HC(),ine=OC(),wv=VC(),WC=UC(),$n=!1,Tv=nne(),pn;pn={buildLog:function(e){return e===!0?$n=ane():e===!1&&($n=!1),$n===!1?!1:$n.list},epsilon:function(e){return Tv.epsilon(e)},segments:function(e){var r=XC(!0,Tv,$n);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=XC(!1,Tv,$n);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:wv.union(e.combined,$n),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:wv.intersect(e.combined,$n),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:wv.difference(e.combined,$n),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:wv.differenceRev(e.combined,$n),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:wv.xor(e.combined,$n),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:ine(e.segments,Tv,$n),inverted:e.inverted}},polygonFromGeoJSON:function(e){return WC.toPolygon(pn,e)},polygonToGeoJSON:function(e){return WC.fromPolygon(pn,Tv,e)},union:function(e,r){return Av(e,r,pn.selectUnion)},intersect:function(e,r){return Av(e,r,pn.selectIntersect)},difference:function(e,r){return Av(e,r,pn.selectDifference)},differenceRev:function(e,r){return Av(e,r,pn.selectDifferenceRev)},xor:function(e,r){return Av(e,r,pn.selectXor)}};function Av(e,r,t){var a=pn.segments(e),n=pn.segments(r),i=pn.combine(a,n),l=t(i);return pn.polygon(l)}typeof window=="object"&&(window.PolyBool=pn);ZC.exports=pn});var KC=O((y3e,$C)=>{$C.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=p>l&&i<(d-c)*(l-h)/(p-h)+c;m&&(o=!o)}return o}});var O3=O((g3e,QC)=>{"use strict";var B3=Eh().dot,L1=Tt().BADNUM,D1=QC.exports={};D1.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||b===L1||bl||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===L1||yn||b===L1||bl)return!1;var _=t.length,w=t[0][0],x=t[0][1],A=0,k,M,S,D,E;for(k=1;k<_;k++)if(M=w,S=x,w=t[k][0],x=t[k][1],D=Math.min(M,w),!(yMath.max(M,w)||b>Math.max(S,x)))if(bo||Math.abs(B3(c,u))>n)return!0;return!1};D1.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var eS=O((x3e,jC)=>{"use strict";jC.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var wS=O((b3e,_S)=>{"use strict";var rS=JC(),lne=KC(),qv=gr(),one=Yr().dashStyle,Mv=br(),sne=Wn(),une=Yi().makeEventData,Ev=cf(),fne=Ev.freeMode,cne=Ev.rectMode,Cv=Ev.drawMode,U3=Ev.openMode,X3=Ev.selectMode,tS=fo(),aS=dv(),sS=p1(),uS=Ql().clearOutline,fS=oo(),Y3=fS.handleEllipse,vne=fS.readPaths,hne=v1().newShapes,dne=p3(),pne=H3().activateLastSelection,P1=ze(),mne=P1.sorterAsc,cS=O3(),kv=Gh(),Kn=Ut().getFromId,yne=n1(),gne=q1().redrawReglTraces,R1=eS(),el=R1.MINSELECT,xne=cS.filter,W3=cS.tester,Z3=s1(),nS=Z3.p2r,bne=Z3.axValue,_ne=Z3.getTransform;function J3(e){return e.subplot!==void 0}function wne(e,r,t,a,n){var i=!J3(a),l=fne(n),o=cne(n),s=U3(n),u=Cv(n),f=X3(n),c=n==="drawline",h=n==="drawcircle",d=c||h,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,b=m._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,x=_ne(w),A=r-_.left,k=t-_.top;m._calcInverseTransform(p);var M=P1.apply3DTransform(m._invTransform)(A,k);A=M[0],k=M[1];var S=m._invScaleX,D=m._invScaleY,E=A,R=k,N="M"+A+","+k,H=a.xaxes[0],I=a.yaxes[0],Y=H._length,U=I._length,V=e.altKey&&!(Cv(n)&&s),G,B,J,X,j,le,fe;hS(e,p,a),l&&(G=xne([[A,k]],R1.BENDPX));var ve=b.selectAll("path.select-outline-"+w.id).data([1]),ee=u?m.newshape:m.newselection;u&&(a.hasText=ee.label.text||ee.label.texttemplate);var Ce=u&&!s?ee.fillcolor:"rgba(0,0,0,0)",ce=ee.line.color||(i?Mv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ve.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?ee.opacity/2:1,"stroke-dasharray":one(ee.line.dash,ee.line.width),"stroke-width":ee.line.width+"px","shape-rendering":"crispEdges"}).call(Mv.stroke,ce).call(Mv.fill,Ce).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",N+"Z");var be=b.append("path").attr("class","zoombox-corners").style({fill:Mv.background,stroke:Mv.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var _e=b.select(".label-temp");_e.empty()&&(_e=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ge=m._uid+R1.SELECTID,W=[],Q=z1(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var oe=H._id,me=I._id;gS(p,oe,me,Q);for(var xe=(p.layout||{}).selections||[],Re=[],Ee=!1,Se=0;Se=0){p._fullLayout._deactivateShape(p);return}if(!u){var xe=m.clickmode;kv.done(ge).then(function(){if(kv.clear(ge),oe===2){for(ve.remove(),j=0;j-1&&vS(me,p,a.xaxes,a.yaxes,a.subplot,a,ve),xe==="event"&&Dv(p,void 0);sne.click(p,me,w.id)}).catch(P1.error)}},a.doneFn=function(){be.remove(),kv.done(ge).then(function(){kv.clear(ge),!y&&X&&a.selectionDefs&&(X.subtract=V,a.selectionDefs.push(X),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,J)),(y||u)&&Sv(a,y),a.doneFnCompleted&&a.doneFnCompleted(W),f&&Dv(p,fe)}).catch(P1.error)}}function vS(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],h,d,p,m,y,b,_,w,x,A;if(qne(o)){hS(e,r,i),h=z1(r,t,a,n);var k=Cne(o,h),M=k.pointNumbers.length>0;if(M?Sne(h,k):Lne(h)&&(_=lS(k))){for(l&&l.remove(),A=0;A=0}function kne(e){return e._fullLayout._activeSelectionIndex>=0}function Sv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Mne(n)&&n._fullLayout._deactivateShape(n),kne(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Cv(t),s=X3(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=hne(u,e)),f&&qv.call("_guiRelayout",n,{shapes:f});var c;s&&!J3(e)&&(c=dne(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,qv.call("_guiRelayout",n,{selections:c}).then(function(){r&&pne(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function iS(e){return e._id}function z1(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(iS),l=t.map(iS),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Sne(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Lv(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var oe=oS(e,!0);if(oe.length){var me=oe[0].xref,xe=oe[0].yref;if(me&&xe){var Re=xS(oe),Ee=bS([Kn(e,me,"x"),Kn(e,xe,"y")]);Ee(W,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Z&&Dv(e,W),h._reselect=!1}if(!l&&h._deselect){var Se=h._deselect;o=Se.xref,s=Se.yref,Pne(o,s,f)||gS(e,o,s,a),Z&&(W.points.length?Dv(e,W):Q3(e)),h._deselect=!1}return{eventData:W,selectionTesters:t}}function Ene(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";TS.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Pv=O((w3e,AS)=>{"use strict";AS.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var yf=O((A3e,qS)=>{"use strict";var MS=j3(),kS=ra(),N1=aa(),Ine=ot().templatedArray,T3e=Pv();qS.exports=Ine("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:kS({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:MS.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:MS.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",N1.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",N1.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",N1.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",N1.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:kS({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var F1=O((M3e,CS)=>{"use strict";CS.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var ex=O((k3e,SS)=>{"use strict";SS.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Mi=O((q3e,FS)=>{"use strict";var LS=bi().axisHoverFormat,{hovertemplateAttrs:Hne,texttemplateAttrs:Bne,templatefallbackAttrs:DS}=_n(),ES=Wc(),One=ra(),PS=mi().dash,Yne=mi().pattern,Vne=Yr(),Gne=F1(),Rv=yt().extendFlat,Une=ex();function RS(e){return{valType:"any",dflt:0,editType:"calc"}}function zS(e){return{valType:"any",editType:"calc"}}function NS(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}FS.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:RS("x"),yperiod:RS("y"),xperiod0:zS("x0"),yperiod0:zS("y0"),xperiodalignment:NS("x"),yperiodalignment:NS("y"),xhoverformat:LS("x"),yhoverformat:LS("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Bne(),texttemplatefallback:DS({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Hne({},{keys:Gne.eventDataKeys}),hovertemplatefallback:DS(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Rv({},PS,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Une(!0),fillgradient:Rv({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Yne,marker:Rv({symbol:{valType:"enumerated",values:Vne.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Rv({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Rv({},PS,{arrayOk:!0}),editType:"calc"},ES("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},ES("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:One({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var rx=O((S3e,BS)=>{"use strict";var IS=yf(),HS=Mi().line,Xne=mi().dash,I1=yt().extendFlat,Wne=pi().overrideAll,Zne=ot().templatedArray,C3e=Pv();BS.exports=Wne(Zne("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:I1({},IS.xref,{}),yref:I1({},IS.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:HS.color,width:I1({},HS.width,{min:1,dflt:1}),dash:I1({},Xne,{dflt:"dot"})}}),"arraydraw","from-root")});var GS=O((L3e,VS)=>{"use strict";var OS=ze(),H1=Zr(),Jne=Vn(),$ne=rx(),YS=fo();VS.exports=function(r,t){Jne(r,t,{name:"selections",handleItemDefaults:Kne});for(var a=t.selections,n=0;n{"use strict";US.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var zv=O((E3e,JS)=>{"use strict";var Qne=gr(),WS=ze(),ZS=Ut();JS.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=Qne.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var $S=H3(),Nv=wS();KS.exports={moduleType:"component",name:"selections",layoutAttributes:rx(),supplyLayoutDefaults:GS(),supplyDrawNewSelectionDefaults:XS(),includeBasePlot:zv()("selections"),draw:$S.draw,drawOne:$S.drawOne,reselect:Nv.reselect,prepSelect:Nv.prepSelect,clearOutline:Nv.clearOutline,clearSelectionsCache:Nv.clearSelectionsCache,selectOnClick:Nv.selectOnClick}});var gL=O((R3e,yL)=>{"use strict";var lx=kr(),Qn=ze(),QS=Qn.numberFormat,jne=In(),eie=H2(),B1=gr(),oL=Qn.strTranslate,rie=na(),jS=br(),vo=Yr(),tie=Wn(),eL=Zr(),aie=io(),nie=wi(),sL=cf(),O1=sL.selectingOrDrawing,iie=sL.freeMode,lie=Ma().FROM_TL,oie=n1(),sie=q1().redrawReglTraces,uie=Et(),ax=Ut().getFromId,fie=gf().prepSelect,cie=gf().clearOutline,vie=gf().selectOnClick,tx=D3(),ox=aa(),rL=ox.MINDRAG,en=ox.MINZOOM,tL=!0;function hie(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,h,d,p,m,y,b,_,w,x,A,k,M,S,D,E,R,N,H,I,Y,U,V;t+=r.yaxis._shift;function G(){if(c=r.xaxis,h=r.yaxis,w=c._length,x=h._length,b=c._offset,_=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,l&&o)for(var ke=r.overlays,qe=0;qe=0){Be._fullLayout._deactivateShape(Be);return}var Ze=Be._fullLayout.clickmode;if(ix(Be),ke===2&&!f&&Xe(),u)Ze.indexOf("select")>-1&&vie(qe,Be,m,y,r.id,X),Ze.indexOf("event")>-1&&tie.click(Be,qe,r.id);else if(ke===1&&f){var Ve=l?h:c,Ue=l==="s"||o==="w"?0:1,ir=Ve._name+".range["+Ue+"]",ar=die(Ve,Ue),er="left",Fe="middle";if(Ve.fixedrange)return;l?(Fe=l==="n"?"top":"bottom",Ve.side==="right"&&(er="right")):o==="e"&&(er="right"),Be._context.showAxisRangeEntryBoxes&&lx.select(J).call(rie.makeEditable,{gd:Be,immediate:!0,background:Be._fullLayout.paper_bgcolor,text:String(ar),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:er,verticalAlign:Fe}).on("edit",function(ne){var se=Ve.d2r(ne);se!==void 0&&B1.call("_guiRelayout",Be,ir,se)})}}nie.init(X);var fe,ve,ee,Ce,ce,be,_e,ge,W,Q;function Z(ke,qe,Be){var Ze=J.getBoundingClientRect();fe=qe-Ze.left,ve=Be-Ze.top,e._fullLayout._calcInverseTransform(e);var Ve=Qn.apply3DTransform(e._fullLayout._invTransform)(fe,ve);fe=Ve[0],ve=Ve[1],ee={l:fe,r:fe,w:0,t:ve,b:ve,h:0},Ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:jne(e._fullLayout.plot_bgcolor).getLuminance(),ce="M0,0H"+w+"V"+x+"H0V0",be=!1,_e="xy",Q=!1,ge=cL(s,Ce,b,_,ce),W=vL(s,b,_)}function oe(ke,qe){if(e._transitioningWithDuration)return!1;var Be=Math.max(0,Math.min(w,U*ke+fe)),Ze=Math.max(0,Math.min(x,V*qe+ve)),Ve=Math.abs(Be-fe),Ue=Math.abs(Ze-ve);ee.l=Math.min(fe,Be),ee.r=Math.max(fe,Be),ee.t=Math.min(ve,Ze),ee.b=Math.max(ve,Ze);function ir(){_e="",ee.r=ee.l,ee.t=ee.b,W.attr("d","M0,0Z")}if(A.isSubplotConstrained)Ve>en||Ue>en?(_e="xy",Ve/w>Ue/x?(Ue=Ve*x/w,ve>Ze?ee.t=ve-Ue:ee.b=ve+Ue):(Ve=Ue*w/x,fe>Be?ee.l=fe-Ve:ee.r=fe+Ve),W.attr("d",Y1(ee))):ir();else if(k.isSubplotConstrained)if(Ve>en||Ue>en){_e="xy";var ar=Math.min(ee.l/w,(x-ee.b)/x),er=Math.max(ee.r/w,(x-ee.t)/x);ee.l=ar*w,ee.r=er*w,ee.b=(1-ar)*x,ee.t=(1-er)*x,W.attr("d",Y1(ee))}else ir();else!S||Ue0){var ne;if(k.isSubplotConstrained||!M&&S.length===1){for(ne=0;ne1&&(ir.maxallowed!==void 0&&E===(ir.range[0]1&&(ar.maxallowed!==void 0&&R===(ar.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function mie(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function cL(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",oL(t,a)).attr("d",n+"Z")}function vL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:jS.background,stroke:jS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",oL(r,t)).attr("d","M0,0Z")}function hL(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),dL(e,r,n,i)}function dL(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function ix(e){lx.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function pL(e){tL&&e.data&&e._context.showTips&&(Qn.notifier(Qn._(e,"Double-click to zoom back out"),"long",e),tL=!1)}function yie(e,r){return"M"+(e.l-.5)+","+(r-en-.5)+"h-3v"+(2*en+1)+"h3ZM"+(e.r+.5)+","+(r-en-.5)+"h3v"+(2*en+1)+"h-3Z"}function gie(e,r){return"M"+(r-en-.5)+","+(e.t-.5)+"v-3h"+(2*en+1)+"v3ZM"+(r-en-.5)+","+(e.b+.5)+"v3h"+(2*en+1)+"v-3Z"}function Y1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,en)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function iL(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var xie=kr(),V1=Wn(),bie=wi(),_ie=io(),ki=gL().makeDragBox,sa=aa().DRAGGERSIZE;G1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){xie.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=ki(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&V1.hover(r,h,i)},V1.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,bie.unhover(r,h))},r._context.showAxisDragHandles&&(ki(r,l,o._offset-sa,s._offset-sa,sa,sa,"n","w"),ki(r,l,o._offset+o._length,s._offset-sa,sa,sa,"n","e"),ki(r,l,o._offset-sa,s._offset+s._length,sa,sa,"s","w"),ki(r,l,o._offset+o._length,s._offset+s._length,sa,sa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=sa),ki(r,l,o._offset+o._length*.1,f,o._length*.8,sa,"","ew"),ki(r,l,o._offset,f,o._length*.1,sa,"","w"),ki(r,l,o._offset+o._length*.9,f,o._length*.1,sa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=sa),ki(r,l,c,s._offset+s._length*.1,sa,s._length*.8,"ns",""),ki(r,l,c,s._offset+s._length*.9,sa,s._length*.1,"s",""),ki(r,l,c,s._offset,sa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,V1.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,V1.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},G1.updateFx(r)}};G1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";_ie(r._draggers,t)}});var _L=O((N3e,bL)=>{"use strict";var xL=gr();bL.exports=function(r){for(var t=xL.layoutArrayContainers,a=xL.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var wie=Ol(),ux=Dh(),Fv=jo(),Tie=ig().sorterAsc,fx=gr();Iv.containerArrayMatch=_L();var Aie=Iv.isAddVal=function(r){return r==="add"||wie(r)},wL=Iv.isRemoveVal=function(r){return r===null||r==="remove"};Iv.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=fx.getComponentMethod(l,"supplyLayoutDefaults"),s=fx.getComponentMethod(l,"draw"),u=fx.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===ux||s===ux,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Fv.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(wL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Fv.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(c,h),s(r),!0)}var p=Object.keys(a).map(Number).sort(Tie),m=t.get(),y=m||[],b=i(h,l).get(),_=[],w=-1,x=y.length,A,k,M,S,D,E,R,N;for(A=0;Ay.length-(R?0:1)){Fv.warn("index out of range",l,M);continue}if(E!==void 0)D.length>1&&Fv.warn("Insertion & removal are incompatible with edits to the same index.",l,M),wL(E)?_.push(M):R?(E==="add"&&(E={}),y.splice(M,0,E),b&&b.splice(M,0,{})):Fv.warn("Unrecognized full object edit value",l,M,E),w===-1&&(w=M);else for(k=0;k=0;A--)y.splice(_[A],1),b&&b.splice(_[A],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(o(c,h),u!==ux){var H;if(w===-1)H=p;else{for(x=Math.max(y.length,x),H=[],A=0;A=w));A++)H.push(M);for(A=w;A{"use strict";var qL=zr(),CL=gr(),Ua=ze(),Hv=Et(),SL=Ut(),LL=br(),Bv=SL.cleanId,Mie=SL.getFromTrace,cx=CL.traceIs,kie=["x","y","z"];jn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ua.log("Clearing previous rejected promises from queue."),e._promises=[]};jn.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Hv.subplotsRegistry.cartesian||{}).attrRegex,n=(Hv.subplotsRegistry.polar||{}).attrRegex,i=(Hv.subplotsRegistry.ternary||{}).attrRegex,l=(Hv.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),LL.clean(e),e.template&&e.template.layout&&jn.cleanLayout(e.template.layout),e};function xf(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Bv(a,n,!0))}jn.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}jn.hasParent=function(e,r){for(var t=kL(r);t;){if(t in e)return!0;t=kL(t)}return!1};jn.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Ua.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aUa.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?vx(n,i):!1))return!1}return!0}return!1};jn.collectionsAreEqual=vx});var gx=O(Vr=>{"use strict";var Z1=kr(),Sie=zr(),Lie=xg(),tr=ze(),ht=tr.nestedProperty,px=Oc(),rn=c9(),ei=gr(),rp=Vu(),_r=Et(),Xa=Zr(),Die=I2(),Eie=An(),hx=Yr(),Pie=br(),Rie=sx().initInteractions,zie=ss(),Nie=gf().clearOutline,NL=Qo().dfltConfig,X1=TL(),Yt=DL(),rt=q1(),ho=pi(),Fie=aa().AX_NAME_PATTERN,dx=0,EL=5;function Iie(e,r,t,a){var n;if(e=tr.getGraphDiv(e),px.init(e),tr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=px.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!tr.isPlotDiv(e)&&tr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Vr.addFrames(e,n)}IL(e,a),t||(t={}),Z1.select(e).classed("js-plotly-plot",!0),hx.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Yt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Yt.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(ole(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),hx.initGradients(e),hx.initPatterns(e),s&&Xa.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function HL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),$1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&$1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Vie(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[R]!="string";)R--;var N=S.parts[R],H=S.parts[R-1]+"."+N,I=S.parts.slice(0,R).join("."),Y=ht(e.layout,I).get(),U=ht(a,I).get(),V=S.get();if(D!==void 0){b[M]=D,_[M]=N==="reverse"?D:Al(V);var G=rp.getLayoutValObject(a,S.parts);if(G&&G.impliedEdits&&D!==null)for(var B in G.impliedEdits)w(tr.relativeAttr(M,B),G.impliedEdits[B]);if(["width","height"].indexOf(M)!==-1)if(D){w("autosize",null);var J=M==="height"?"width":"height";w(J,a[J])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(H.match(ZL))k(H),ht(a,I+"._inputRange").set(null);else if(H.match(JL)){k(H),ht(a,I+"._inputRange").set(null);var X=ht(a,I).get();X._inputDomain&&(X._input.domain=X._inputDomain.slice())}else H.match(Wie)&&ht(a,I+"._inputDomain").set(null);if(N==="type"){A=Y;var j=U.type==="linear"&&D==="log",le=U.type==="log"&&D==="linear";if(j||le){if(!A||!A.range)w(I+".autorange",!0);else if(U.autorange)j&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var fe=A.range[0],ve=A.range[1];j?(fe<=0&&ve<=0&&w(I+".autorange",!0),fe<=0?fe=ve/1e6:ve<=0&&(ve=fe/1e6),w(I+".range[0]",Math.log(fe)/Math.LN10),w(I+".range[1]",Math.log(ve)/Math.LN10)):(w(I+".range[0]",Math.pow(10,fe)),w(I+".range[1]",Math.pow(10,ve)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],ei.getComponentMethod("annotations","convertCoords")(e,U,D,w),ei.getComponentMethod("images","convertCoords")(e,U,D,w)}else w(I+".autorange",!0),w(I+".range",null);ht(a,I+"._inputRange").set(null)}else if(N.match(Fie)){var ee=ht(a,M).get(),Ce=(D||{}).type;(!Ce||Ce==="-")&&(Ce="linear"),ei.getComponentMethod("annotations","convertCoords")(e,ee,Ce,w),ei.getComponentMethod("images","convertCoords")(e,ee,Ce,w)}var ce=X1.containerArrayMatch(M);if(ce){f=ce.array,c=ce.index;var be=ce.property,_e=G||{editType:"calc"};c!==""&&be===""&&(X1.isAddVal(D)?_[M]=null:X1.isRemoveVal(D)?_[M]=(ht(t,f).get()||[])[c]:tr.warn("unrecognized full object value",r)),ho.update(y,_e),u[f]||(u[f]={});var ge=u[f][c];ge||(ge=u[f][c]={}),ge[be]=D,delete r[M]}else N==="reverse"?(Y.range?Y.range.reverse():(w(I+".autorange",!0),Y.range=[1,0]),U.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(D===!1&&V!==!1||D!==!1&&V===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(D==="lasso"||D==="select")&&!(V==="lasso"||V==="select")?y.plot=!0:G?ho.update(y,G):y.calc=!0,S.set(D))}}for(f in u){var W=X1.applyContainerArrayChanges(e,i(t,f),u[f],y,i);W||(y.plot=!0)}for(var Q in x){A=Xa.getFromId(e,Q);var Z=A&&A._constraintGroup;if(Z){y.calc=!0;for(var oe in Z)x[oe]||(Xa.getFromId(e,oe)._constraintShrinkable=!0)}}(KL(e)||r.height||r.width)&&(y.plot=!0);var me=a.shapes;for(c=0;c1;)if(a.pop(),t=ht(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function $ie(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Vr.newPlot(e,r,t,a).then(()=>{for(let[I,Y]of H)Y.forEach(U=>e.on(I,U));return Vr.react(e,r,t,a)})}else{e.data=r||[],Yt.cleanData(e.data),e.layout=t||{},Yt.cleanLayout(e.layout),Qie(e.data,e.layout,o,s),_r.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,p=h.transition,m=rle(e,s,h,d,p),y=m.newDataRevision,b=ele(e,o,c,d,p,y);if(KL(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var _=Object.getOwnPropertyNames(h),w=0;w<_.length;w++){var x=_[w],A=x.substring(0,5);if(A==="xaxis"||A==="yaxis"){var k=h[x]._emptyCategories;k&&k()}}}else _r.supplyDefaultsUpdateCalc(e.calcdata,c);var M=[];if(n&&(e._transitionData={},_r.createTransitionData(e),M.push(l)),h.transition&&(b.anim||m.anim))m.ticks&&M.push(rt.doTicksRelayout),_r.doCalcdata(e),rt.doAutoRangeAndConstraints(e),M.push(function(){return _r.transitionFromReact(e,b,m,s)});else if(b.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,M.push(Vr._doPlot);else{for(var S in m.arrays){var D=m.arrays[S];if(D.length){var E=ei.getComponentMethod(S,"drawOne");if(E!==tr.noop)for(var R=0;R(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function ele(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=ho.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(d){var p=rp.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(N){if(N.length!==0){for(var H=0;Ha._timeToNext&&p()};N()}var y=0;function b(N){return Array.isArray(n)?y>=n.length?N.transitionOpts=n[y]:N.transitionOpts=n[0]:N.transitionOpts=n,y++,N}var _,w,x=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&tr.isPlainObject(r);if(M)x.push({type:"object",data:b(tr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(_=0;_0&&EE)&&R.push(w);x=R}}x.length>0?h(x):(e.emit("plotly_animated"),u())})}function ale(e,r,t){if(e=tr.getGraphDiv(e),r==null)return Promise.resolve();if(!tr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(tr.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||c[h]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&dxS.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&tr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=_r.modifyFrames,s=_r.modifyFrames,u=[e,l],f=[e,i];return rn&&rn.add(e,o,u,s,f),_r.modifyFrames(e,i)}function ile(e){e=tr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),px.purge(e),r._container&&r._container.remove(),delete e._context,e}function lle(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!tr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=tr.inverseTransformMatrix(tr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function ole(e){var r=Z1.select(e),t=e._fullLayout;if(t._calcInverseTransform=lle,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Z1.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=tr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(zie.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Vr.animate=tle;Vr.addFrames=ale;Vr.deleteFrames=nle;Vr.addTraces=GL;Vr.deleteTraces=UL;Vr.extendTraces=YL;Vr.moveTraces=mx;Vr.prependTraces=VL;Vr.newPlot=Yie;Vr._doPlot=Iie;Vr.purge=ile;Vr.react=jie;Vr.redraw=Oie;Vr.relayout=Ov;Vr.restyle=K1;Vr.setPlotConfig=Hie;Vr.update=j1;Vr._guiRelayout=yx(Ov);Vr._guiRestyle=yx(K1);Vr._guiUpdate=yx(j1);Vr._storeDirectGUIEdit=Xie});var Ls=O(rl=>{"use strict";var sle=gr();rl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};rl.getRedrawFunc=function(e){return function(){sle.getComponentMethod("colorbar","draw")(e)}};rl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};rl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var QL=window.URL||window.webkitURL;rl.createObjectURL=function(e){return QL.createObjectURL(e)};rl.revokeObjectURL=function(e){return QL.revokeObjectURL(e)};rl.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=ule(window.atob(e));return new window.Blob([t],{type:"image/"+r})};rl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function ule(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var bx=kr(),O3e=ze(),fle=Yr(),cle=br(),Y3e=ss(),xx=/"/g,Vv="TOBESTRIPPED",vle=new RegExp('("'+Vv+")|("+Vv+'")',"g");function hle(e){var r=bx.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function dle(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}jL.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(fle.setRect,0,0,o,s).call(cle.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var ple=ze(),mle=Kh().EventEmitter,Gv=Ls();function yle(e){var r=e.emitter||new mle,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,b;o==="svg"||ple.isSafari()?b=Gv.encodeSVG(l):(y=Gv.createBlob(l,"svg"),b=Gv.createObjectURL(y)),s.width=h,s.height=d,m.onload=function(){var _;switch(y=null,Gv.revokeObjectURL(b),o!=="svg"&&p.drawImage(m,0,0,h,d),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},m.onerror=function(_){if(y=null,Gv.revokeObjectURL(b),n(_),!e.promise)return r.emit("error",_)},m.src=b});return e.promise?t:r}eD.exports=yle});var wx=O((U3e,aD)=>{"use strict";var rD=zr(),tD=gx(),gle=Et(),tl=ze(),Uv=Ls(),xle=ap(),ble=np(),_le=mh().version,_x={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function wle(e,r){r=r||{};var t,a,n,i;tl.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=tl.getGraphDiv(e),t=tl.extendDeep([],e.data),a=tl.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||tl.validate(r[k],_x[k])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+tl.join2(_x.format.values,", "," or ")+".");var o={};function s(k,M){return tl.coerce(r,o,_x,k,M)}var u=s("format"),f=s("width"),c=s("height"),h=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=tl.extendFlat({},a);f?y.width=f:r.width===null&&rD(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&rD(i.height)&&(y.height=i.height);var b=tl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),_=Uv.getRedrawFunc(m);function w(){return new Promise(function(k){setTimeout(k,Uv.getDelay(m._fullLayout))})}function x(){return new Promise(function(k,M){var S=xle(m,u,h),D=m._fullLayout.width,E=m._fullLayout.height;function R(){tD.purge(m),document.body.removeChild(m)}if(u==="full-json"){var N=gle.graphJson(m,!1,"keepdata","object",!0,!0);return N.version=_le,N=JSON.stringify(N),R(),k(p?N:Uv.encodeJSON(N))}if(R(),u==="svg")return k(p?S:Uv.encodeSVG(S));var H=document.createElement("canvas");H.id=tl.randstr(),ble({format:u,width:D,height:E,scale:h,canvas:H,svg:S,promise:!0}).then(k).catch(M)})}function A(k){return p?k.replace(Uv.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){tD.newPlot(m,t,y,b).then(_).then(w).then(x).then(function(S){k(A(S))}).catch(function(S){M(S)})})}aD.exports=wle});var lD=O((X3e,iD)=>{"use strict";var ri=ze(),Tle=Et(),Ale=Vu(),Mle=Qo().dfltConfig,qi=ri.isPlainObject,Es=Array.isArray,Tx=ri.isArrayOrTypedArray;iD.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Ale.get(),n=[],i={_context:ri.extendFlat({},Mle)},l,o;Es(r)?(i.data=ri.extendDeep([],r),l=r):(i.data=[],l=[],n.push(ua("array","data"))),qi(t)?(i.layout=ri.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(ua("object","layout"))),Tle.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(ua("unused",n,u.concat(c.length)));var b=c.length,_=Array.isArray(y);_&&(b=Math.min(b,y.length));var w,x,A,k,M;if(h.dimensions===2)for(x=0;xc[x].length&&a.push(ua("unused",n,u.concat(x,c[x].length)));var S=c[x].length;for(w=0;w<(_?Math.min(S,y[x].length):S);w++)A=_?y[x][w]:y,k=f[x][w],M=c[x][w],ri.validate(k,A)?M!==k&&M!==+k&&a.push(ua("dynamic",n,u.concat(x,w),k,M)):a.push(ua("value",n,u.concat(x,w),k))}else a.push(ua("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var Ele=ze(),lp=Ls();function Ple(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=lp.createBlob(e,t),u=lp.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),lp.revokeObjectURL(u),s=null,l(r);if(Ele.isSafari()){var f=t==="svg"?",":";base64,";return lp.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}oD.exports=Ple});var Ax=O((J3e,fD)=>{"use strict";var uD=ze(),Rle=wx(),zle=sD(),Z3e=Ls();function Nle(e,r){var t;return uD.isPlainObject(e)||(t=uD.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Rle(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),zle(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}fD.exports=Nle});var pD=O(Mx=>{"use strict";var mn=ze(),yn=mn.isPlainObject,cD=Vu(),vD=Et(),Fle=sn(),hD=ot(),dD=Qo().dfltConfig;Mx.makeTemplate=function(e){e=mn.isPlainObject(e)?e:mn.getGraphDiv(e),e=mn.extendDeep({_context:dD},{data:e.data,layout:e.layout}),vD.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Xv(d,p,Hle.bind(null,d));var m=mn.coerce(d,{},Fle,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),Xv(t,a.layout,Ile.bind(null,t)),delete a.layout.template;var n=t.template;if(yn(n)){var i=n.layout,l,o,s,u,f,c;yn(i)&&op(i,a.layout);var h=n.data;if(yn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lb?l.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&l.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function _(w,x){for(var A in w)if(A.charAt(0)!=="_"){var k=w[A],M=ti(w,A,x);yn(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:M,templateitemname:k.templateitemname}),_(k,M)):Array.isArray(k)&&Ble(k)&&_(k,M)}}if(_({data:s,layout:o},""),l.length)return l.map(Ole)};function Ble(e){for(var r=0;r{"use strict";var jt=gx();_t._doPlot=jt._doPlot;_t.newPlot=jt.newPlot;_t.restyle=jt.restyle;_t.relayout=jt.relayout;_t.redraw=jt.redraw;_t.update=jt.update;_t._guiRestyle=jt._guiRestyle;_t._guiRelayout=jt._guiRelayout;_t._guiUpdate=jt._guiUpdate;_t._storeDirectGUIEdit=jt._storeDirectGUIEdit;_t.react=jt.react;_t.extendTraces=jt.extendTraces;_t.prependTraces=jt.prependTraces;_t.addTraces=jt.addTraces;_t.deleteTraces=jt.deleteTraces;_t.moveTraces=jt.moveTraces;_t.purge=jt.purge;_t.addFrames=jt.addFrames;_t.deleteFrames=jt.deleteFrames;_t.animate=jt.animate;_t.setPlotConfig=jt.setPlotConfig;var Yle=Pc().getGraphDiv,Vle=b1().eraseActiveShape;_t.deleteActiveShape=function(e){return Vle(Yle(e))};_t.toImage=wx();_t.validate=lD();_t.downloadImage=Ax();var mD=pD();_t.makeTemplate=mD.makeTemplate;_t.validateTemplate=mD.validateTemplate});var Wv=O((Q3e,gD)=>{"use strict";var kx=ze(),Gle=gr();gD.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=Gle.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=kx.minRowLength(i);l?o=Math.min(u,kx.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=kx.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Ps=O((j3e,_D)=>{"use strict";var xD=ze().dateTick0,Ule=Tt(),Xle=Ule.ONEWEEK;function bD(e,r){return e%Xle===0?xD(r,1):xD(r,0)}_D.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",bD(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",bD(o,t.ycalendar)),n("yperiodalignment"))}}});var AD=O((exe,TD)=>{"use strict";var wD=["orientation","groupnorm","stackgaps"];TD.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var MD=br(),kD=Tn().hasColorscale,qD=Wu(),Wle=Mn();CD.exports=function(r,t,a,n,i,l={}){var o=Wle.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),kD(r,"marker")&&qD(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=MD.background:u=MD.defaultLine,i("marker.line.color",u),kD(r,"marker.line")&&qD(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var DD=O((txe,LD)=>{"use strict";var Zle=ze().isArrayOrTypedArray,Jle=Tn().hasColorscale,$le=Wu();LD.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),Jle(r,"line"))$le(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Zle(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var PD=O((axe,ED)=>{"use strict";ED.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var zD=O((nxe,RD)=>{"use strict";var Kle=ze();RD.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Kle.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var ID=O((ixe,FD)=>{"use strict";var up=br(),ND=ze().isArrayOrTypedArray;function Qle(e){for(var r=up.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var HD=ze(),jle=gr(),eoe=Mi(),roe=F1(),bf=Mn(),toe=Wv(),aoe=Ps(),noe=AD(),ioe=SD(),loe=DD(),BD=PD(),ooe=zD(),soe=ID(),uoe=ze().coercePattern;OD.exports=function(r,t,a,n){function i(d,p){return HD.coerce(r,t,eoe,d,p)}var l=toe(r,t,n,i);if(l||(t.visible=!1),!!t.visible){aoe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=noe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var foe=Ss().getAxisGroup;VD.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=foe(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=h.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var UD=O((sxe,GD)=>{"use strict";var coe=ze(),voe=_f(),hoe=Mi();GD.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return coe.coerce(n._input,n,hoe,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var WD=O((uxe,XD)=>{"use strict";var doe=ze(),poe=td();XD.exports=function(e,r){function t(n,i){return doe.coerce(e,r,poe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Rs=O((fxe,JD)=>{"use strict";var moe=zr(),ZD=ze(),yoe=ZD.dateTime2ms,fp=ZD.incrementMonth,goe=Tt(),xoe=goe.ONEAVGMONTH;JD.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(moe(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=yoe(h,u)||0,p=[],m=[],y=[],b=n.length,_=0;_w;)k=fp(k,-o,u);for(;k<=w;)k=fp(k,o,u);A=fp(k,-o,u)}else{for(x=Math.round((w-d)/l),k=d+x*l;k>w;)k-=l;for(;k<=w;)k+=l;A=k-l}p[_]=f?A:c?k:(A+k)/2,m[_]=A,y[_]=k}return{vals:p,starts:m,ends:y}}});var QD=O((cxe,KD)=>{"use strict";var qx=Tn().hasColorscale,Cx=Zc(),$D=Mn();KD.exports=function(r,t){$D.hasLines(t)&&qx(t,"line")&&Cx(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),$D.hasMarkers(t)&&(qx(t,"marker")&&Cx(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),qx(t,"marker.line")&&Cx(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Sx=O((vxe,jD)=>{"use strict";var St=ze();jD.exports=function(r,t){for(var a=0;a{"use strict";var eE=ze();rE.exports=function(r,t){eE.isArrayOrTypedArray(t.selectedpoints)&&eE.tagSelected(r,t)}});var Rx=O((dxe,sE)=>{"use strict";var tE=zr(),Dx=ze(),Jv=Zr(),aE=Rs(),Lx=Tt().BADNUM,Ex=Mn(),boe=QD(),_oe=Sx(),woe=Zv();function Toe(e,r){var t=e._fullLayout,a=r._xA=Jv.getFromId(e,r.xaxis||"x","x"),n=r._yA=Jv.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=aE(r,a,"x",i),s=aE(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,h=new Array(c),d=r.ids,p=Px(r,t,a,n),m=!1,y,b,_,w,x,A;lE(t,r);var k="x",M="y",S;if(p)Dx.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",S="x"):(k="s",S="y"),x=p.stackgaps==="interpolate";else{var D=iE(r,c);nE(e,r,a,n,u,f,D)}var E=!!r.xperiodalignment,R=!!r.yperiodalignment;for(b=0;bb&&h[w].gap;)w--;for(A=h[w].s,_=h.length-1;_>w;_--)h[_].s=A;for(;b{"use strict";uE.exports=cp;var Aoe=ze().distinctVals;function cp(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";cE.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Af=O((yxe,pE)=>{"use strict";var ai=zr(),{isArrayOrTypedArray:Ml}=ze(),{BADNUM:wf}=Tt(),Moe=gr(),Kv=Zr(),{getAxisGroup:koe}=Ss(),vp=fE(),{TEXTPAD:qoe}=$v(),{LINE_SPACING:Coe}=Ma(),{BR_TAG_ALL:Soe}=na();function Loe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!ai(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*Coe*t+qoe;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function Boe(e,r,t,a){for(var n=Tf(a),i=0;i{"use strict";var mE=Rx(),yE=Af().setGroupPositions;function Yoe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var Goe=Yr(),TE=Tt(),Qv=TE.BADNUM,AE=TE.LOG_CLIP,bE=AE+.5,_E=AE-.5,hp=ze(),Uoe=hp.segmentsIntersect,wE=hp.constrain,Ox=F1();ME.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",b=[],_=Ox.minTolerance,w=r.length,x=new Array(w),A=0,k,M,S,D,E,R,N,H,I,Y,U,V,G,B,J,X;function j(Fe){var ne=r[Fe];if(!ne)return!1;var se=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Le=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(se===Qv){if(l&&(se=n.c2p(ne.x,!0)),se===Qv)return!1;o&&Le===Qv&&(se*=Math.abs(n._m*u*(n._m>0?bE:_E)/(i._m*s*(i._m>0?bE:_E)))),se*=1e3}if(Le===Qv){if(o&&(Le=i.c2p(ne.y,!0)),Le===Qv)return!1;Le*=1e3}return[se,Le]}function le(Fe,ne,se,Le){var Pe=se-Fe,Qe=Le-ne,cr=.5-Fe,sr=.5-ne,Mr=Pe*Pe+Qe*Qe,Br=Pe*cr+Qe*sr;if(Br>0&&Br1||Math.abs(cr.y-se[0][1])>1)&&(cr=[cr.x,cr.y],Le&&Ce(cr,Fe)_e||Fe[1]W)return[wE(Fe[0],be,_e),wE(Fe[1],ge,W)]}function Ie(Fe,ne){if(Fe[0]===ne[0]&&(Fe[0]===be||Fe[0]===_e)||Fe[1]===ne[1]&&(Fe[1]===ge||Fe[1]===W))return!0}function We(Fe,ne){var se=[],Le=Ge(Fe),Pe=Ge(ne);return Le&&Pe&&Ie(Le,Pe)||(Le&&se.push(Le),Pe&&se.push(Pe)),se}function De(Fe,ne,se){return function(Le,Pe){var Qe=Ge(Le),cr=Ge(Pe),sr=[];if(Qe&&cr&&Ie(Qe,cr))return sr;Qe&&sr.push(Qe),cr&&sr.push(cr);var Mr=2*hp.constrain((Le[Fe]+Pe[Fe])/2,ne,se)-((Qe||Le)[Fe]+(cr||Pe)[Fe]);if(Mr){var Br;Qe&&cr?Br=Mr>0==Qe[Fe]>cr[Fe]?Qe:cr:Br=Qe||cr,Br[Fe]+=Mr}return sr}}var He;p==="linear"||p==="spline"?He=Se:p==="hv"||p==="vh"?He=We:p==="hvh"?He=De(0,be,_e):p==="vhv"&&(He=De(1,ge,W));function Xe(Fe,ne){var se=ne[0]-Fe[0],Le=(ne[1]-Fe[1])/se,Pe=(Fe[1]*ne[0]-ne[1]*Fe[0])/se;return Pe>0?[Le>0?be:_e,W]:[Le>0?_e:be,ge]}function ie(Fe){var ne=Fe[0],se=Fe[1],Le=ne===x[A-1][0],Pe=se===x[A-1][1];if(!(Le&&Pe))if(A>1){var Qe=ne===x[A-2][0],cr=se===x[A-2][1];Le&&(ne===be||ne===_e)&&Qe?cr?A--:x[A-1]=Fe:Pe&&(se===ge||se===W)&&cr?Qe?A--:x[A-1]=Fe:x[A++]=Fe}else x[A++]=Fe}function we(Fe){x[A-1][0]!==Fe[0]&&x[A-1][1]!==Fe[1]&&ie([me,xe]),ie(Fe),Re=null,me=xe=0}var $e=hp.isArrayOrTypedArray(c);function hr(Fe){if(Fe&&f&&(Fe.i=k,Fe.d=r,Fe.trace=a,Fe.marker=$e?c[Fe.i]:c,Fe.backoff=f),fe=Fe[0]/s,ve=Fe[1]/u,Z=Fe[0]_e?_e:0,oe=Fe[1]W?W:0,Z||oe){if(!A)x[A++]=[Z||Fe[0],oe||Fe[1]];else if(Re){var ne=He(Re,Fe);ne.length>1&&(we(ne[0]),x[A++]=ne[1])}else Ee=He(x[A-1],Fe)[0],x[A++]=Ee;var se=x[A-1];Z&&oe&&(se[0]!==Z||se[1]!==oe)?(Re&&(me!==Z&&xe!==oe?ie(me&&xe?Xe(Re,Fe):[me||Z,xe||oe]):me&&xe&&ie([me,xe])),ie([Z,oe])):me-Z&&xe-oe&&ie([Z||me,oe||xe]),Re=Fe,me=Z,xe=oe}else Re&&we(He(Re,Fe)[0]),x[A++]=Fe}for(k=0;kee(R,Ne))break;S=R,G=I[0]*H[0]+I[1]*H[1],G>U?(U=G,D=R,N=!1):G=r.length||!R)break;hr(R),M=R}}Re&&ie([me||Re[0],xe||Re[1]]),b.push(x.slice(0,A))}var ke=p.slice(p.length-1);if(f&&ke!=="h"&&ke!=="v"){for(var qe=!1,Be=-1,Ze=[],Ve=0;Ve{"use strict";var qE={tonextx:1,tonexty:1,tonext:1};CE.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Ci=kr(),Xoe=gr(),jv=ze(),Mf=jv.ensureSingle,DE=jv.identity,Pt=Yr(),kf=Mn(),Woe=kE(),Zoe=SE(),dp=O3().tester;EE.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=Zoe(r,t,a);if(o=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),Joe(r,o,t),f){l&&(s=l());var h=Ci.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,p){LE(r,p,t,d,c,this,i)})})}else o.each(function(d,p){LE(r,p,t,d,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function Joe(e,r,t){r.each(function(a){var n=Mf(Ci.select(this),"g","fills");Pt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,DE);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=Mf(Ci.select(this),"path","js-fill")})})}function LE(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;$oe(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,h=t.yaxis,d=a[0].trace,p=d.line,m=Ci.select(i),y=Mf(m,"g","errorbars"),b=Mf(m,"g","lines"),_=Mf(m,"g","points"),w=Mf(m,"g","text");if(Xoe.getComponentMethod("errorbars","plot")(e,y,t,l),d.visible!==!0)return;f(m).style("opacity",d.opacity);var x,A,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,S;k==="y"?(M=1,S=h.c2p(0,!0)):k==="x"&&(M=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var D="",E=[],R=d._prevtrace,N=null,H=null;R&&(D=R._prevRevpath||"",A=R._nextFill,E=R._ownPolygons,N=R._fillsegments,H=R._fillElement);var I,Y,U="",V="",G,B,J,X,j,le,fe=[];d._polygons=[];var ve=[],ee=[],Ce=jv.noop;if(x=d._ownFill,kf.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(G=Pt.steps(p.shape),B=Pt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?G=B=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?Pt.smoothclosed(De.slice(1),p.smoothing):Pt.smoothopen(De,p.smoothing)}:G=B=function(De){return"M"+De.join("L")},J=function(De){return B(De.reverse())},ee=Woe(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),ve=new Array(ee.length);var ce=0;for(s=0;s=o[0]&&m.x<=o[1]&&m.y>=s[0]&&m.y<=s[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var b=m[0].trace;kf.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";RE.exports={container:"marker",min:"cmin",max:"cmax"}});var NE=O((Txe,zE)=>{"use strict";var mp=Zr();zE.exports=function(r,t,a){var n={},i={_fullLayout:a},l=mp.getFromTrace(i,t,"x"),o=mp.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=mp.tickText(l,l.c2l(s),!0).text,n.yLabel=mp.tickText(o,o.c2l(u),!0).text,n}});var Ux=O((Axe,FE)=>{"use strict";var Yx=kr(),qf=Yr(),Koe=gr();function Qoe(e){var r=Yx.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Yx.select(this),n=t.trace||t[0].trace;Vx(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Yx.select(this),n=t.trace||t[0].trace;Gx(a,n,e)}),r.selectAll("g.trace path.js-line").call(qf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(qf.fillGroupStyle,e,!1),Koe.getComponentMethod("errorbars","style")(r)}function Vx(e,r,t){qf.pointStyle(e.selectAll("path.point"),r,t)}function Gx(e,r,t){qf.textPointStyle(e.selectAll("text"),r,t)}function joe(e,r,t){var a=r[0].trace;a.selectedpoints?(qf.selectedPointStyle(t.selectAll("path.point"),a),qf.selectedTextStyle(t.selectAll("text"),a)):(Vx(t,a,e),Gx(t,a,e))}FE.exports={style:Qoe,stylePoints:Vx,styleText:Gx,styleOnSelect:joe}});var HE=O((Mxe,IE)=>{"use strict";var Cf=br(),ese=Mn();IE.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Cf.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Cf.opacity(i)?i:l&&Cf.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?Cf.opacity(n)<.3?Cf.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Cf.opacity(a)&&ese.hasLines(r)&&r.line.width?a:r.fillcolor)}});var YE=O((kxe,OE)=>{"use strict";var yp=ze(),BE=Wn(),rse=gr(),tse=HE(),Xx=br(),ase=yp.fillText;OE.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,m=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(V){if(p){var G=o.c2p(V.xStart),B=o.c2p(V.xEnd);return u>=Math.min(G,B)&&u<=Math.max(G,B)?0:1/0}var J=Math.max(3,V.mrc||0),X=1-1/J,j=Math.abs(o.c2p(V.x)-u);return j=Math.min(G,B)&&f<=Math.max(G,B)?0:1/0}var J=Math.max(3,V.mrc||0),X=1-1/J,j=Math.abs(s.c2p(V.y)-f);return jfe!=W>=fe&&(be=Ce[ee-1][0],_e=Ce[ee][0],W-ge&&(ce=be+(_e-be)*(fe-ge)/(W-ge),J=Math.min(J,ce),X=Math.max(X,ce)));return J=Math.max(J,0),X=Math.min(X,o._length),{x0:J,x1:X,y0:fe,y1:fe}}if(h.indexOf("fills")!==-1&&l._fillElement){var I=N(l._fillElement)&&!N(l._fillExclusionElement);if(I){var Y=H(l._polygons);Y===null&&(Y={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var U=Xx.defaultLine;return Xx.opacity(l.fillcolor)?U=l.fillcolor:Xx.opacity((l.line||{}).color)&&(U=l.line.color),yp.extendFlat(r,{distance:r.maxHoverDistance,x0:Y.x0,x1:Y.x1,y0:Y.y0,y1:Y.y1,color:U,hovertemplate:!1}),delete r.index,l.text&&!yp.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var UE=O((qxe,GE)=>{"use strict";var VE=Mn();GE.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,h=!VE.hasMarkers(o)&&!VE.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";XE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var KE=O((Sxe,$E)=>{"use strict";var e0=gr().traceIs,Wx=y2();$E.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(nse(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function nse(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=ise(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!e0(i,"cartesian")||e0(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,JE(i,a)){var u=ZE(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(JE(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function ZE(e){return{v:"x",h:"y"}[e.orientation||"v"]}function JE(e,r){var t=ZE(e),a=e0(e,"box-violin"),n=e0(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var jE=O((Lxe,QE)=>{"use strict";var lse=on().isTypedArraySpec;function ose(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||lse(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=ose(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var tP=O((Dxe,rP)=>{"use strict";var eP=In().mix,sse=Hn(),use=ze();rP.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return use.coerce2(r,t,n.attributes,S,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=eP(i,n.bgColor,n.blend||sse.lightFraction).toRgbString(),c=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!h||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=eP(t.gridcolor,n.bgColor,67).toRgbString(),y=l("minor.gridcolor",m),b=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!y||!!b||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=l("zerolinelayer"),A=l("zerolinecolor",i),k=l("zerolinewidth"),M=a("zeroline",n.showGrid||!!A||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var xp=O((Exe,sP)=>{"use strict";var aP=zr(),fse=gr(),r0=ze(),cse=ot(),vse=Vn(),Zx=An(),nP=vd(),iP=hd(),hse=pd(),dse=md(),pse=jE(),mse=tP(),yse=I2(),lP=Dd(),gp=aa().WEEKDAY_PATTERN,gse=aa().HOUR_PATTERN;sP.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=fse.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=r0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),lP(t,i),yse(r,t,a,n),pse(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==Zx.color.dflt?m:o.color,b=s.label||i._dfltTitle[l];if(dse(r,t,a,c,n),!u)return t;a("title.text",b),r0.coerceFont(a,"title.font",o,{overrideDflt:{size:r0.bigFont(o.size),color:y}}),nP(r,t,a,c);var _=n.hasMinor;if(_&&(cse.newContainer(t,"minor"),nP(r,t,a,c,{isMinor:!0})),hse(r,t,a,c,n),iP(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,iP(r,t,a,n),n.isMinor=w}mse(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:Zx}),_&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(vse(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:xse}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=oP(i[o]),s){l=gp;break}}var u=a("pattern",l);if(u===gp)for(o=0;o<2;o++)s=oP(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case gp:if(!aP(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case gse:if(!aP(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var _se=zr(),bp=ze();uP.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,h,d,p,m;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(_se(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=bp.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=bp.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(o==="y"){var _=a("autoshift");_&&(d=b==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var w=!1;if(l.length&&(w=bp.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),bp.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var gP=O((Rxe,yP)=>{"use strict";var zs=ze(),fP=br(),wse=Yi().isUnifiedHover,Tse=c3(),cP=ot(),Ase=Eu(),vP=An(),Mse=KE(),hP=xp(),kse=Ss(),dP=_p(),$x=Ut(),al=$x.id2name,pP=$x.name2id,qse=aa().AX_ID_PATTERN,mP=gr(),wp=mP.traceIs,Jx=mP.getComponentMethod;function Tp(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}yP.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},h={},d={},p={},m,y;for(m=0;m{"use strict";var Cse=kr(),xP=gr(),Ap=ze(),Dn=Yr(),Mp=Zr();bP.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Mp.redrawComponents(r);return}function l(y){var b=y.xaxis,_=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Dn.setTranslate,0,0).call(Dn.setScale,1,1),y.plot.call(Dn.setTranslate,b._offset,_._offset).call(Dn.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Dn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Dn.setTextPointsScale,1,1),w.call(Dn.hideOutsideRangePoints,y)}function o(y,b){var _=y.plotinfo,w=_.xaxis,x=_.yaxis,A=w._length,k=x._length,M=!!y.xr1,S=!!y.yr1,D=[];if(M){var E=Ap.simpleMap(y.xr0,w.r2l),R=Ap.simpleMap(y.xr1,w.r2l),N=E[1]-E[0],H=R[1]-R[0];D[0]=(E[0]*(1-b)+b*R[0]-E[0])/(E[1]-E[0])*A,D[2]=A*(1-b+b*H/N),w.range[0]=w.l2r(E[0]*(1-b)+b*R[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*R[1])}else D[0]=0,D[2]=A;if(S){var I=Ap.simpleMap(y.yr0,x.r2l),Y=Ap.simpleMap(y.yr1,x.r2l),U=I[1]-I[0],V=Y[1]-Y[0];D[1]=(I[1]*(1-b)+b*Y[1]-I[1])/(I[0]-I[1])*k,D[3]=k*(1-b+b*V/U),x.range[0]=w.l2r(I[0]*(1-b)+b*Y[0]),x.range[1]=x.l2r(I[1]*(1-b)+b*Y[1])}else D[1]=0,D[3]=k;Mp.drawOne(r,w,{skipTitle:!0}),Mp.drawOne(r,x,{skipTitle:!0}),Mp.redrawComponents(r,[w._id,x._id]);var G=M?A/D[2]:1,B=S?k/D[3]:1,J=M?D[0]:0,X=S?D[1]:0,j=M?D[0]/D[2]*A:0,le=S?D[1]/D[3]*k:0,fe=w._offset-j,ve=x._offset-le;_.clipRect.call(Dn.setTranslate,J,X).call(Dn.setScale,1/G,1/B),_.plot.call(Dn.setTranslate,fe,ve).call(Dn.setScale,G,B),Dn.setPointGroupScale(_.zoomScalePts,1/G,1/B),Dn.setTextPointsScale(_.zoomScaleTxt,1/G,1/B)}var s;n&&(s=n());function u(){for(var y={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var kl=O(za=>{"use strict";var qp=kr(),wP=gr(),Ns=ze(),Sse=Et(),Lse=Yr(),TP=Cg().getModuleCalcData,po=Ut(),Si=aa(),Dse=ss(),Jr=Ns.ensureSingle;function kp(e,r,t){return Ns.ensureSingle(e,r,t,function(a){a.datum(t)})}var Fs=Si.zindexSeparator;za.name="cartesian";za.attr=["xaxis","yaxis"];za.idRoot=["x","y"];za.idRegex=Si.idRegex;za.attrRegex=Si.attrRegex;za.attributes=WE();za.layoutAttributes=An();za.supplyLayoutDefaults=gP();za.transitionAxes=_P();za.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var d=h.id;if(d.indexOf(Fs)!==-1)continue;d+=Fs+(u+1),h=Ns.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(A+=Fs+x),w.push(o+A),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Jr(a,"path","xlines-above"),r.ylines=Jr(a,"path","ylines-above"),r.xaxislayer=Jr(a,"g","xaxislayer-above"),r.yaxislayer=Jr(a,"g","yaxislayer-above");else{if(!l){var h=Jr(a,"g","layer-subplot");r.shapelayer=Jr(h,"g","shapelayer"),r.imagelayer=Jr(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Jr(a,"g","minor-gridlayer"),r.gridlayer=Jr(a,"g","gridlayer"),r.zerolinelayer=Jr(a,"g","zerolinelayer"));var d=Jr(a,"g","layer-between");r.shapelayerBetween=Jr(d,"g","shapelayer"),r.imagelayerBetween=Jr(d,"g","imagelayer"),Jr(a,"path","xlines-below"),Jr(a,"path","ylines-below"),r.overlinesBelow=Jr(a,"g","overlines-below"),Jr(a,"g","xaxislayer-below"),Jr(a,"g","yaxislayer-below"),r.overaxesBelow=Jr(a,"g","overaxes-below")}r.overplot=Jr(a,"g","overplot"),r.plot=Jr(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Jr(a,"g","zerolinelayer-above"),l||(r.xlines=Jr(a,"path","xlines-above"),r.ylines=Jr(a,"path","ylines-above"),r.overlinesAbove=Jr(a,"g","overlines-above"),Jr(a,"g","xaxislayer-above"),Jr(a,"g","yaxislayer-above"),r.overaxesAbove=Jr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Jr(c.overlinesBelow,"path",m),Jr(c.overlinesBelow,"path",y),Jr(c.overaxesBelow,"g",m),Jr(c.overaxesBelow,"g",y),r.plot=Jr(c.overplot,"g",n),Jr(c.overlinesAbove,"path",m),Jr(c.overlinesAbove,"path",y),Jr(c.overaxesAbove,"g",m),Jr(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+o).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+o).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}l||(u||(kp(r.minorGridlayer,"g",r.xaxis._id),kp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(po.idSort),kp(r.gridlayer,"g",r.xaxis._id),kp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(po.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function kP(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=qp.select(this);f.remove(),qP(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var Cp=Mn();CP.exports={hasLines:Cp.hasLines,hasMarkers:Cp.hasMarkers,hasText:Cp.hasText,isBubble:Cp.isBubble,attributes:Mi(),layoutAttributes:td(),supplyDefaults:YD(),crossTraceDefaults:UD(),supplyLayoutDefaults:WD(),calc:Rx().calc,crossTraceCalc:xE(),arraysToCalcdata:Sx(),plot:PE(),colorbar:pp(),formatLabels:NE(),style:Ux().style,styleOnSelect:Ux().styleOnSelect,hoverPoints:YE(),selectPoints:UE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:kl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var EP=O((Ixe,DP)=>{"use strict";var Pse=kr(),Rse=br(),LP=j3(),Kx=ze(),zse=Kx.strScale,Nse=Kx.strRotate,Fse=Kx.strTranslate;DP.exports=function(r,t,a){var n=r.node(),i=LP[a.arrowhead||0],l=LP[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,_=d.y-p.y;if(m=Math.atan2(_,b),y=m+Math.PI,c&&h&&c+h>Math.sqrt(b*b+_*_)){I();return}if(c){if(c*c>b*b+_*_){I();return}var w=c*Math.cos(m),x=c*Math.sin(m);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(h){if(h*h>b*b+_*_){I();return}var A=h*Math.cos(m),k=h*Math.sin(m);d.x-=A,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),S="";if(M{"use strict";var PP=kr(),Qx=gr(),Ise=Et(),yo=ze(),jx=yo.strTranslate,a0=Zr(),Is=br(),ql=Yr(),RP=Wn(),eb=na(),rb=io(),t0=wi(),Hse=ot().arrayEditor,Bse=EP();FP.exports={draw:Ose,drawOne:zP,drawRaw:NP};function Ose(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Pe="right":Pe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Pe]}for(var ge=!1,W=["x","y"],Q=0;Q1)&&(me===oe?(Ne=xe.r2fraction(r["a"+Z]),(Ne<0||Ne>1)&&(ge=!0)):ge=!0),He=xe._offset+xe.r2p(r[Z]),we=.5}else{var ke=hr==="domain";Z==="x"?(ie=r[Z],He=ke?xe._offset+xe._length*ie:He=o.l+o.w*ie):(ie=1-r[Z],He=ke?xe._offset+xe._length*ie:He=o.t+o.h*ie),we=r.showarrow?.5:ie}if(r.showarrow){De.head=He;var qe=r["a"+Z];if($e=Ee*_e(.5,r.xanchor)-Se*_e(.5,r.yanchor),me===oe){var Be=a0.getRefType(me);Be==="domain"?(Z==="y"&&(qe=1-qe),De.tail=xe._offset+xe._length*qe):Be==="paper"?Z==="y"?(qe=1-qe,De.tail=o.t+o.h*qe):De.tail=o.l+o.w*qe:De.tail=xe._offset+xe.r2p(qe),Xe=$e}else De.tail=He+qe,Xe=$e+qe;De.text=De.tail+$e;var Ze=l[Z==="x"?"width":"height"];if(oe==="paper"&&(De.head=yo.constrain(De.head,1,Ze-1)),me==="pixel"){var Ve=-Math.max(De.tail-3,De.text),Ue=Math.min(De.tail+3,De.text)-Ze;Ve>0?(De.tail+=Ve,De.text+=Ve):Ue>0&&(De.tail-=Ue,De.text-=Ue)}De.tail+=We,De.head+=We}else $e=Ge*_e(we,Ie),Xe=$e,De.text=He+$e;De.text+=We,$e+=We,Xe+=We,r["_"+Z+"padplus"]=Ge/2+Xe,r["_"+Z+"padminus"]=Ge/2-Xe,r["_"+Z+"size"]=Ge,r["_"+Z+"shift"]=$e}if(ge){M.remove();return}var ir=0,ar=0;if(r.align!=="left"&&(ir=(ee-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ar=(Ce-ve)*(r.valign==="middle"?.5:1)),j)X.select("svg").attr({x:E+ir-1,y:E+ar}).call(ql.setClipUrl,N?m:null,e);else{var er=E+ar-le.top,Fe=E+ir-le.left;U.call(eb.positionText,Fe,er).call(ql.setClipUrl,N?m:null,e)}H.select("rect").call(ql.setRect,E,E,ee,Ce),R.call(ql.setRect,S/2,S/2,ce-S,be-S),M.call(ql.setTranslate,Math.round(y.x.text-ce/2),Math.round(y.y.text-be/2)),w.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var ne=function(Le,Pe){_.selectAll(".annotation-arrow-g").remove();var Qe=y.x.head,cr=y.y.head,sr=y.x.tail+Le,Mr=y.y.tail+Pe,Br=y.x.text+Le,$r=y.y.text+Pe,ft=yo.rotationXYMatrix(b,Br,$r),kt=yo.apply2DTransform(ft),wt=yo.apply2DTransform2(ft),Jt=+R.attr("width"),Vt=+R.attr("height"),Ja=Br-.5*Jt,ba=Ja+Jt,ca=$r-.5*Vt,$a=ca+Vt,va=[[Ja,ca,Ja,$a],[Ja,$a,ba,$a],[ba,$a,ba,ca],[ba,ca,Ja,ca]].map(wt);if(!va.reduce(function(mt,Gt){return mt^!!yo.segmentsIntersect(Qe,cr,Qe+1e6,cr+1e6,Gt[0],Gt[1],Gt[2],Gt[3])},!1)){va.forEach(function(mt){var Gt=yo.segmentsIntersect(sr,Mr,Qe,cr,mt[0],mt[1],mt[2],mt[3]);Gt&&(sr=Gt.x,Mr=Gt.y)});var ha=r.arrowwidth,vr=r.arrowcolor,ct=r.arrowside,Kr=_.append("g").style({opacity:Is.opacity(vr)}).classed("annotation-arrow-g",!0),lt=Kr.append("path").attr("d","M"+sr+","+Mr+"L"+Qe+","+cr).style("stroke-width",ha+"px").call(Is.stroke,Is.rgb(vr));if(Bse(lt,ct,r),s.annotationPosition&<.node().parentNode&&!a){var da=Qe,pa=cr;if(r.standoff){var nt=Math.sqrt(Math.pow(Qe-sr,2)+Math.pow(cr-Mr,2));da+=r.standoff*(sr-Qe)/nt,pa+=r.standoff*(Mr-cr)/nt}var an=Kr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-da)+","+(Mr-pa),transform:jx(da,pa)}).style("stroke-width",ha+6+"px").call(Is.stroke,"rgba(0,0,0,0)").call(Is.fill,"rgba(0,0,0,0)"),ui,ea;t0.init({element:an.node(),gd:e,prepFn:function(){var mt=ql.getTranslate(M);ui=mt.x,ea=mt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(mt,Gt){var Ka=kt(ui,ea),Oo=Ka[0]+mt,Il=Ka[1]+Gt;M.call(ql.setTranslate,Oo,Il),d("x",mo(n,mt,"x",o,r)),d("y",mo(i,Gt,"y",o,r)),r.axref===r.xref&&d("ax",mo(n,mt,"ax",o,r)),r.ayref===r.yref&&d("ay",mo(i,Gt,"ay",o,r)),Kr.attr("transform",jx(mt,Gt)),w.attr({transform:"rotate("+b+","+Oo+","+Il+")"})},doneFn:function(){Qx.call("_guiRelayout",e,p());var mt=document.querySelector(".js-notes-box-panel");mt&&mt.redraw(mt.selectedObj)}})}}};if(r.showarrow&&ne(0,0),x){var se;t0.init({element:M.node(),gd:e,prepFn:function(){se=w.attr("transform")},moveFn:function(Le,Pe){var Qe="pointer";if(r.showarrow)r.axref===r.xref?d("ax",mo(n,Le,"ax",o,r)):d("ax",r.ax+Le),r.ayref===r.yref?d("ay",mo(i,Pe,"ay",o.w,r)):d("ay",r.ay+Pe),ne(Le,Pe);else{if(a)return;var cr,sr;if(n)cr=mo(n,Le,"x",o,r);else{var Mr=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Mr/2;cr=t0.align(Br+Le/o.w,Mr,0,1,r.xanchor)}if(i)sr=mo(i,Pe,"y",o,r);else{var $r=r._ysize/o.h,ft=r.y-(r._yshift+r.yshift)/o.h-$r/2;sr=t0.align(ft-Pe/o.h,$r,0,1,r.yanchor)}d("x",cr),d("y",sr),(!n||!i)&&(Qe=t0.getCursor(n?.5:cr,i?.5:sr,r.xanchor,r.yanchor))}w.attr({transform:jx(Le,Pe)+se}),rb(M,Qe)},clickFn:function(Le,Pe){r.captureevents&&e.emit("plotly_clickannotation",k(Pe))},doneFn:function(){rb(M),Qx.call("_guiRelayout",e,p());var Le=document.querySelector(".js-notes-box-panel");Le&&Le.redraw(Le.selectedObj)}})}}s.annotationText?U.call(eb.makeEditable,{delegate:M,gd:e}).call(V).on("edit",function(B){r.text=B,this.call(V),d("text",B),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),Qx.call("_guiRelayout",e,p())}):U.call(V)}});var VP=O((Bxe,YP)=>{"use strict";var IP=ze(),Yse=gr(),HP=ot().arrayEditor;YP.exports={hasClickToShow:Vse,onClick:Gse};function Vse(e,r){var t=OP(e,r);return t.on.length>0||t.explicitOff.length>0}function Gse(e,r){var t=OP(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var tb=ze(),Sf=br();GP.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=Sf.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),tb.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:Sf.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(Sf.opacity(i)?Sf.rgb(i):Sf.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||Sf.contrast(y)),_=tb.extendFlat({},m.font);_.color||(_.color=b),tb.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var XP=O((Yxe,UP)=>{"use strict";var nb=ze(),Hs=Zr(),Use=Vn(),Xse=ab(),Wse=yf();UP.exports=function(r,t){Use(r,t,{name:"annotations",handleItemDefaults:Zse})};function Zse(e,r,t){function a(w,x){return nb.coerce(e,r,Wse,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Xse(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],h=Hs.coerceRef(e,r,u,c,"","paper");if(h!=="paper"){var d=Hs.getFromId(u,h);d._annIndices.push(r._index)}if(Hs.coercePosition(r,u,a,h,c,.5),l){var p="a"+c,m=Hs.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==h&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Hs.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(nb.noneOrAll(e,r,["x","y"]),l&&nb.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:Hs.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:Hs.cleanPosition(_,u,r.yref)}}}});var JP=O((Vxe,ZP)=>{"use strict";var ib=ze(),Bs=Zr(),Jse=Sp().draw;ZP.exports=function(r){var t=r._fullLayout,a=ib.filterVisible(t.annotations);if(a.length&&r._fullData.length)return ib.syncOrAsync([Jse,$se],r)};function $se(e){var r=e._fullLayout;ib.filterVisible(r.annotations).forEach(function(t){var a=Bs.getFromId(e,t.xref),n=Bs.getFromId(e,t.yref),i=Bs.getRefType(t.xref),l=Bs.getRefType(t.yref);t._extremes={},i==="range"&&WP(t,a),l==="range"&&WP(t,n)})}function WP(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,b;if(o===l){var _=Bs.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),w=Bs.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});b={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else m=i?m+i:m,y=i?y-i:y,b=Bs.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var KP=O((Gxe,$P)=>{"use strict";var Kse=zr(),Qse=kh();$P.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=Qse(p,t.range):m=Math.pow(10,p),Kse(m)||(m=null),n(f+d,m)}for(var h=0;h{"use strict";var lb=Sp(),QP=VP();jP.exports={moduleType:"component",name:"annotations",layoutAttributes:yf(),supplyLayoutDefaults:XP(),includeBasePlot:zv()("annotations"),calcAutorange:JP(),draw:lb.draw,drawOne:lb.drawOne,drawRaw:lb.drawRaw,hasClickToShow:QP.hasClickToShow,onClick:QP.onClick,convertCoords:KP()}});var Lp=O((Xxe,rR)=>{"use strict";var dt=yf(),jse=pi().overrideAll,eue=ot().templatedArray;rR.exports=jse(eue("annotation",{visible:dt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:dt.xanchor,xshift:dt.xshift,yanchor:dt.yanchor,yshift:dt.yshift,text:dt.text,textangle:dt.textangle,font:dt.font,width:dt.width,height:dt.height,opacity:dt.opacity,align:dt.align,valign:dt.valign,bgcolor:dt.bgcolor,bordercolor:dt.bordercolor,borderpad:dt.borderpad,borderwidth:dt.borderwidth,showarrow:dt.showarrow,arrowcolor:dt.arrowcolor,arrowhead:dt.arrowhead,startarrowhead:dt.startarrowhead,arrowside:dt.arrowside,arrowsize:dt.arrowsize,startarrowsize:dt.startarrowsize,arrowwidth:dt.arrowwidth,standoff:dt.standoff,startstandoff:dt.startstandoff,hovertext:dt.hovertext,hoverlabel:dt.hoverlabel,captureevents:dt.captureevents}),"calc","from-root")});var aR=O((Wxe,tR)=>{"use strict";var ob=ze(),rue=Zr(),tue=Vn(),aue=ab(),nue=Lp();tR.exports=function(r,t,a){tue(r,t,{name:"annotations",handleItemDefaults:iue,fullLayout:a.fullLayout})};function iue(e,r,t,a){function n(o,s){return ob.coerce(e,r,nue,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],rue.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(aue(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),ob.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),ob.noneOrAll(e,r,["ax","ay"])))}});var oR=O((Zxe,lR)=>{"use strict";var nR=ze(),iR=Zr();lR.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function sb(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function oue(e,r){var t=sb(e.projection,sb(e.view,sb(e.model,[r[0],r[1],r[2],1])));return t}sR.exports=oue});var cR=O(($xe,fR)=>{"use strict";var sue=Sp().drawRaw,uue=uR(),fue=["x","y","z"];fR.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=uue(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),sue(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var dR=O((Kxe,hR)=>{"use strict";var cue=gr(),vR=ze();hR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Lp()}}},layoutAttributes:Lp(),handleDefaults:aR(),includeBasePlot:vue,convert:oR(),draw:cR()};function vue(e,r){var t=cue.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var Qxe=aa(),pR=ra(),mR=Mi().line,hue=mi().dash,Li=yt().extendFlat,due=ot().templatedArray,jxe=Pv(),Lf=sn(),yR=yf(),{shapeTexttemplateAttrs:pue,templatefallbackAttrs:mue}=_n(),yue=zh();gR.exports=due("shape",{visible:Li({},Lf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Li({},Lf.legend,{editType:"calc+arraydraw"}),legendgroup:Li({},Lf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Li({},Lf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:pR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Li({},Lf.legendrank,{editType:"calc+arraydraw"}),legendwidth:Li({},Lf.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Li({},yR.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Li({},yR.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Li({},mR.color,{editType:"arraydraw"}),width:Li({},mR.width,{editType:"calc+arraydraw"}),dash:Li({},hue,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:pue({},{keys:Object.keys(yue)}),texttemplatefallback:mue({editType:"arraydraw"}),font:pR({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var bR=O((rbe,xR)=>{"use strict";var Df=ze(),En=Zr(),gue=Vn(),xue=ub(),n0=fo();xR.exports=function(r,t){gue(r,t,{name:"shapes",handleItemDefaults:_ue})};function bue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function _ue(e,r,t){function a(w,x){return Df.coerce(e,r,xue,w,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),Df.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),h=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var x=w+"anchor",A=w==="x"?c:h,k={_fullLayout:t},M,S,D,E;let R=w+"ref",N=e[R];if(Array.isArray(N)&&N.length>0){let H=n0.countDefiningCoords(s,l,w);E=En.coerceRefArray(e,r,k,w,void 0,"paper",H),r["_"+w+"refArray"]=!0}else E=En.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(H){En.getRefType(H)==="range"&&(M=En.getFromId(k,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let I=E[H];En.getRefType(I)==="range"?(M=En.getFromId(k,I),S=n0.shapePositionToRange(M),D=n0.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(w+H+"shift")):S=D=Df.identity;let U=w+H,V=e[U];if(e[U]=S(e[U],!0),A==="pixel"?a(U,p[H]):En.coercePosition(r,k,a,I,U,d[H]),r[U]=D(r[U]),e[U]=V,H===0&&A==="pixel"){let G=e[x];e[x]=S(e[x],!0),En.coercePosition(r,k,a,I,x,.25),r[x]=D(r[x]),e[x]=G}});else{if(En.getRefType(E)==="range"?(M=En.getFromId(k,E),M._shapeIndices.push(r._index),D=n0.rangeToShapePosition(M),S=n0.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):S=D=Df.identity,u){let I=w+"0",Y=w+"1",U=e[I],V=e[Y];e[I]=S(e[I],!0),e[Y]=S(e[Y],!0),A==="pixel"?(a(I,p[0]),a(Y,p[1])):(En.coercePosition(r,k,a,E,I,d[0]),En.coercePosition(r,k,a,E,Y,d[1])),r[I]=D(r[I]),r[Y]=D(r[Y]),e[I]=U,e[Y]=V}if(A==="pixel"){let I=e[x];e[x]=S(e[x],!0),En.coercePosition(r,k,a,E,x,.25),r[x]=D(r[x]),e[x]=I}}}),u&&Df.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,b;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var _=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",bue(m,_)),a("label.padding"),Df.coerceFont(a,"label.font",t.font)}}});var TR=O((tbe,wR)=>{"use strict";var wue=br(),_R=ze();function Tue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}wR.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),_R.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",wue.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Tue(l,u)),a("newshape.label.padding"),_R.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var LR=O((abe,SR)=>{"use strict";var fb=ze(),ni=Zr(),nl=dv(),cb=fo();SR.exports=function(r){var t=r._fullLayout,a=fb.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=ni.getFromId(r,c),i._extremes[l._id]=ni.findExtremes(l,h,MR(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=ni.getFromId(r,i.xref),o=qR(l,i,nl.paramIsX),o&&(i._extremes[l._id]=ni.findExtremes(l,o,MR(i))));if(u==="array"){let f=AR(r,i,"y");Object.entries(f).forEach(([c,h])=>{l=ni.getFromId(r,c),i._extremes[l._id]=ni.findExtremes(l,h,kR(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=ni.getFromId(r,i.yref),o=qR(l,i,nl.paramIsY),o&&(i._extremes[l._id]=ni.findExtremes(l,o,kR(i))))}};function AR(e,r,t){let a=r[t+"ref"],n=t==="x"?nl.paramIsX:nl.paramIsY;function i(c,h){c==="paper"||ni.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(h))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(nl.segmentRE)||[];for(var o=0,s=0;sp&&(i(a[o],m[p]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in l){let h=ni.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=cb.decodeDate(f)),u[h._id]=l[c].map(f)}}return u}function MR(e){return CR(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function kR(e){return CR(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function CR(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?cb.extractPathCoords(n,i?nl.paramIsY:nl.paramIsX):[t,a],u=fb.aggNums(Math.max,null,s),f=fb.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+l:l,h=u>0?u+l:l;return{ppad:l,ppadplus:o?c:h,ppadminus:o?h:c}}else return{ppad:l}}function qR(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,h=-1/0,d=r.path.match(nl.segmentRE),p,m,y,b,_;for(e.type==="date"&&(u=cb.decodeDate(u)),p=0;ph&&(h=_)));if(h>=c)return[c,h]}}});var PR=O((nbe,ER)=>{"use strict";var DR=b1();ER.exports={moduleType:"component",name:"shapes",layoutAttributes:ub(),supplyLayoutDefaults:bR(),supplyDrawNewShapeDefaults:TR(),includeBasePlot:zv()("shapes"),calcAutorange:LR(),draw:DR.draw,drawOne:DR.drawOne}});var vb=O((lbe,zR)=>{"use strict";var RR=aa(),Aue=ot().templatedArray,ibe=Pv();zR.exports=Aue("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",RR.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",RR.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var FR=O((obe,NR)=>{"use strict";var Mue=ze(),hb=Zr(),kue=Vn(),que=vb(),Cue="images";NR.exports=function(r,t){var a={name:Cue,handleItemDefaults:Sue};kue(r,t,a)};function Sue(e,r,t){function a(h,d){return Mue.coerce(e,r,que,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=hb.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=hb.getFromId(l,f);c._imgIndices.push(r._index)}hb.coercePosition(r,l,a,f,u,0)}return r}});var OR=O((sbe,BR)=>{"use strict";var IR=kr(),Lue=Yr(),Ef=Zr(),HR=Ut(),Due=ss();BR.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var YR=zr(),Eue=kh();VR.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";UR.exports={moduleType:"component",name:"images",layoutAttributes:vb(),supplyLayoutDefaults:FR(),includeBasePlot:zv()("images"),draw:OR(),convertCoords:GR()}});var Dp=O((cbe,WR)=>{"use strict";WR.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var db=O((vbe,JR)=>{"use strict";var Pue=ra(),Rue=Hn(),zue=yt().extendFlat,Nue=pi().overrideAll,Fue=Nh(),ZR=ot().templatedArray,Iue=ZR("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});JR.exports=Nue(ZR("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Iue,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:zue(Fue({editType:"arraydraw"}),{}),font:Pue({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Rue.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var jR=O((hbe,QR)=>{"use strict";var Ep=ze(),$R=Vn(),KR=db(),Hue=Dp(),Bue=Hue.name,Oue=KR.buttons;QR.exports=function(r,t){var a={name:Bue,handleItemDefaults:Yue};$R(r,t,a)};function Yue(e,r,t){function a(l,o){return Ep.coerce(e,r,KR,l,o)}var n=$R(e,r,{name:"buttons",handleItemDefaults:Vue}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Ep.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Ep.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Vue(e,r){function t(n,i){return Ep.coerce(e,r,Oue,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var tz=O((dbe,rz)=>{"use strict";rz.exports=Mt;var Di=kr(),ez=br(),Pf=Yr(),Pp=ze();function Mt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Mt.barWidth=2;Mt.barLength=20;Mt.barRadius=2;Mt.barPad=1;Mt.barColor="#808BA4";Mt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",m=c==="up",y=s,b=f,_,w,x,A;!h&&!d&&!p&&!m&&(this.position.direction="down",h=!0);var k=h||m;k?(_=o,w=_+y,h?(x=u,A=Math.min(x+b,l),b=A-x):(A=u+b,x=Math.max(A-b,0),b=A-x)):(x=u,A=x+b,d?(w=o+y,_=Math.max(w-y,0),y=w-_):(_=o,w=Math.min(_+y,i),y=w-_)),this._box={l:_,t:x,w:y,h:b};var M=s>y,S=Mt.barLength+2*Mt.barPad,D=Mt.barWidth+2*Mt.barPad,E=o,R=u+f;R+D>l&&(R=l-D);var N=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(ez.fill,Mt.barColor),M?(this.hbar=N.attr({rx:Mt.barRadius,ry:Mt.barRadius,x:E,y:R,width:S,height:D}),this._hbarXMin=E+S/2,this._hbarTranslateMax=y-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=f>b,I=Mt.barWidth+2*Mt.barPad,Y=Mt.barLength+2*Mt.barPad,U=o+s,V=u;U+I>i&&(U=i-I);var G=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);G.exit().on(".drag",null).remove(),G.enter().append("rect").classed("scrollbar-vertical",!0).call(ez.fill,Mt.barColor),H?(this.vbar=G.attr({rx:Mt.barRadius,ry:Mt.barRadius,x:U,y:V,width:I,height:Y}),this._vbarYMin=V+Y/2,this._vbarTranslateMax=b-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var B=this.id,J=_-.5,X=H?w+I+.5:w+.5,j=x-.5,le=M?A+D+.5:A+.5,fe=n._topdefs.selectAll("#"+B).data(M||H?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",B).append("rect"),M||H?(this._clipRect=fe.select("rect").attr({x:Math.floor(J),y:Math.floor(j),width:Math.ceil(X)-Math.floor(J),height:Math.ceil(le)-Math.floor(j)}),this.container.call(Pf.setClipUrl,B,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pf.setClipUrl,null),delete this._clipRect),M||H){var ve=Di.behavior.drag().on("dragstart",function(){Di.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ve);var ee=Di.behavior.drag().on("dragstart",function(){Di.event.sourceEvent.preventDefault(),Di.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(ee),H&&this.vbar.on(".drag",null).call(ee)}this.setTranslate(t,a)};Mt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pf.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Mt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Di.event.dx),this.vbar&&(t-=Di.event.dy),this.setTranslate(r,t)};Mt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Di.event.deltaY),this.vbar&&(t+=Di.event.deltaY),this.setTranslate(r,t)};Mt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Pp.constrain(Di.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Pp.constrain(Di.event.y,s,u),c=(f-s)/(u-s),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};Mt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Pp.constrain(r||0,0,a),t=Pp.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Pf.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Pf.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Pf.setTranslate,r,t+l*this._vbarTranslateMax)}}});var vz=O((pbe,cz)=>{"use strict";var Rf=kr(),i0=Et(),l0=br(),zf=Yr(),Pn=ze(),Rp=na(),Gue=ot().arrayEditor,nz=Ma().LINE_SPACING,wr=Dp(),Uue=tz();cz.exports=function(r){var t=r._fullLayout,a=Pn.filterVisible(t[wr.name]);function n(h){i0.autoMargin(r,uz(h))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Rf.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+wr.headerGroupClassName).data(a,Xue);l.enter().append("g").classed(wr.headerGroupClassName,!0);for(var o=Pn.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var jue=Dp();hz.exports={moduleType:"component",name:jue.name,layoutAttributes:db(),supplyLayoutDefaults:jR(),draw:vz()}});var s0=O((ybe,pz)=>{"use strict";pz.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var gb=O((gbe,gz)=>{"use strict";var mz=ra(),efe=Nh(),rfe=yt().extendDeepAll,tfe=pi().overrideAll,afe=Rc(),yz=ot().templatedArray,Os=s0(),nfe=yz("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});gz.exports=tfe(yz("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:nfe,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:rfe(efe({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:afe.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:mz({})},font:mz({}),activebgcolor:{valType:"color",dflt:Os.gripBgActiveColor},bgcolor:{valType:"color",dflt:Os.railBgColor},bordercolor:{valType:"color",dflt:Os.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Os.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Os.tickLength},tickcolor:{valType:"color",dflt:Os.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Os.minorTickLength}}),"arraydraw","from-root")});var wz=O((xbe,_z)=>{"use strict";var Nf=ze(),xz=Vn(),bz=gb(),ife=s0(),lfe=ife.name,ofe=bz.steps;_z.exports=function(r,t){xz(r,t,{name:lfe,handleItemDefaults:sfe})};function sfe(e,r,t){function a(c,h){return Nf.coerce(e,r,bz,c,h)}for(var n=xz(e,r,{name:"steps",handleItemDefaults:ufe}),i=0,l=0;l{"use strict";var Ei=kr(),zp=Et(),go=br(),Pi=Yr(),Rn=ze(),ffe=Rn.strTranslate,u0=na(),cfe=ot().arrayEditor,Pr=s0(),_b=Ma(),Mz=_b.LINE_SPACING,xb=_b.FROM_TL,bb=_b.FROM_BR;Dz.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=vfe(a,r),i=a._infolayer.selectAll("g."+Pr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Pr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),zp.autoMargin(r,kz(f))}if(i.exit().each(function(){Ei.select(this).selectAll("g."+Pr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Pr.groupClassName).data(n,hfe);o.enter().append("g").classed(Pr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",ffe(l-Pr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function wb(e,r){var t=e._dims;return t.inputAreaStart+Pr.stepInset+(t.inputAreaLength-2*Pr.stepInset)*Math.min(1,Math.max(0,r))}function Az(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Pr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Pr.stepInset-2*t.inputAreaStart)))}function bfe(e,r,t){var a=t._dims,n=Rn.ensureSingle(e,"rect",Pr.railTouchRectClass,function(i){i.call(Sz,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Pr.tickOffset+t.ticklen+a.labelHeight)}).call(go.fill,t.bgcolor).attr("opacity",0),Pi.setTranslate(n,0,a.currentValueTotalHeight)}function _fe(e,r){var t=r._dims,a=t.inputAreaLength-Pr.railInset*2,n=Rn.ensureSingle(e,"rect",Pr.railRectClass);n.attr({width:a,height:Pr.railWidth,rx:Pr.railRadius,ry:Pr.railRadius,"shape-rendering":"crispEdges"}).call(go.stroke,r.bordercolor).call(go.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Pi.setTranslate(n,Pr.railInset,(t.inputAreaWidth-Pr.railWidth)*.5+t.currentValueTotalHeight)}});var Rz=O((_be,Pz)=>{"use strict";var wfe=s0();Pz.exports={moduleType:"component",name:wfe.name,layoutAttributes:gb(),supplyLayoutDefaults:wz(),draw:Ez()}});var Fp=O((wbe,Nz)=>{"use strict";var zz=Hn();Nz.exports={bgcolor:{valType:"color",dflt:zz.background,editType:"plot"},bordercolor:{valType:"color",dflt:zz.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var Tb=O((Tbe,Fz)=>{"use strict";Fz.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Ip=O((Abe,Iz)=>{"use strict";Iz.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Oz=O(Bp=>{"use strict";var Tfe=Ut(),Afe=na(),Hz=Ip(),Mfe=Ma().LINE_SPACING,Hp=Hz.name;function Bz(e){var r=e&&e[Hp];return r&&r.visible}Bp.isVisible=Bz;Bp.makeData=function(e){for(var r=Tfe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Op=ze(),Yz=ot(),Vz=Ut(),kfe=Fp(),qfe=Tb();Gz.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Op.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=Yz.newContainer(i,"rangeslider");function s(A,k){return Op.coerce(l,o,kfe,A,k)}var u,f;function c(A,k){return Op.coerce(u,f,qfe,A,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===Vz.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=Op.simpleMap(p,Vz.id2name),y=0;y{"use strict";var Cfe=Ut().list,Sfe=jc().getAutoRange,Lfe=Ip();Xz.exports=function(r){for(var t=Cfe(r,"x",!0),a=0;a{"use strict";var Yp=kr(),Dfe=gr(),Efe=Et(),Rt=ze(),Vp=Rt.strTranslate,Jz=Yr(),xo=br(),Pfe=Kc(),Rfe=kl(),Ab=Ut(),zfe=wi(),Nfe=io(),Hr=Ip();$z.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=G.max)U=R[V+1];else if(Y=G.pmax)U=R[V+1];else if(Y0?e.touches[0].clientX:0}function Ffe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Hr.slideBoxClassName).node(),i=e.select("rect."+Hr.grabAreaMinClassName).node(),l=e.select("rect."+Hr.grabAreaMaxClassName).node();function o(){var s=Yp.event,u=s.target,f=Zz(s),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=zfe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var _=Zz(b),w=+_-f,x,A,k;switch(u){case n:if(k="ew-resize",h+w>t._length||d+w<0)return;x=h+w,A=d+w;break;case i:if(k="col-resize",h+w>t._length)return;x=h+w,A=d;break;case l:if(k="col-resize",d+w<0)return;x=h,A=d+w;break;default:k="ew-resize",x=c,A=c+w;break}if(A{"use strict";var Wfe=ze(),Zfe=Fp(),Jfe=Tb(),Mb=Oz();Qz.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Wfe.extendFlat({},Zfe,{yaxis:Jfe})}}},layoutAttributes:Fp(),handleDefaults:Uz(),calcAutorange:Wz(),draw:Kz(),isVisible:Mb.isVisible,makeData:Mb.makeData,autoMarginOpts:Mb.autoMarginOpts}});var Gp=O((Lbe,rN)=>{"use strict";var $fe=ra(),eN=Hn(),Kfe=ot().templatedArray,Qfe=Kfe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});rN.exports={visible:{valType:"boolean",editType:"plot"},buttons:Qfe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:$fe({editType:"plot"}),bgcolor:{valType:"color",dflt:eN.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:eN.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var kb=O((Dbe,tN)=>{"use strict";tN.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var iN=O((Ebe,nN)=>{"use strict";var Up=ze(),jfe=br(),ece=ot(),rce=Vn(),aN=Gp(),qb=kb();nN.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=ece.newContainer(t,"rangeselector");function s(d,p){return Up.coerce(l,o,aN,d,p)}var u=rce(l,o,{name:"buttons",handleItemDefaults:tce,calendar:i}),f=s("visible",u.length>0);if(f){var c=ace(t,a,n);s("x",c[0]),s("y",c[1]),Up.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Up.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",jfe.contrast(h,qb.lightAmount,qb.darkAmount)),s("bordercolor"),s("borderwidth")}};function tce(e,r,t,a){var n=a.calendar;function i(s,u){return Up.coerce(e,r,aN.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function ace(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var nce=Ry(),ice=ze().titleCase;lN.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=lce(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function lce(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=nce["utc"+ice(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var pN=O((Rbe,dN)=>{"use strict";var Wp=kr(),oce=gr(),sce=Et(),sN=br(),hN=Yr(),Cl=ze(),uN=Cl.strTranslate,Xp=na(),uce=Ut(),Lb=Ma(),fN=Lb.LINE_SPACING,cN=Lb.FROM_TL,vN=Lb.FROM_BR,Sb=kb(),fce=oN();dN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(cce(r),vce);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Wp.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(Cl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Wp.select(this),c=fce(l,u);u._isActive=hce(l,u,c),f.call(Cb,o,u),f.call(pce,o,u,r),f.on("click",function(){r._dragged||oce.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(Cb,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(Cb,o,u)})}),yce(r,s,o,l._name,i)})};function cce(e){for(var r=uce.list(e,"x",!0),t=[],a=0;a{"use strict";mN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Gp()}}},layoutAttributes:Gp(),handleDefaults:iN(),draw:pN()}});var bo=O(Db=>{"use strict";var gN=yt().extendFlat;Db.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:gN({},t,{}),y:gN({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};Db.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var gce=ze(),xce=Cu().counter,bce=bo().attributes,xN=aa().idRegex,_ce=ot(),Eb={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[xce("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[xN.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[xN.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:bce({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Zp(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function wce(e,r){var t=e.grid||{},a=Zp(r,t,"x"),n=Zp(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=_ce.newContainer(r,"grid");function h(k,M){return gce.coerce(t,c,Eb,k,M)}var d=h("rows",u),p=h("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!l&&!o){var m=h("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=h("roworder"),b=y==="top to bottom",_=i?.2:.1,w=i?.3:.1,x,A;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,A=r._splomGridDflt.yside),c._domains={x:bN("x",h,_,x,p),y:bN("y",h,w,A,d,b)}}function bN(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),h=0;h{"use strict";AN.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var qN=O((Hbe,kN)=>{"use strict";var MN=zr(),Ace=gr(),Mce=ze(),kce=ot(),qce=Pb();kN.exports=function(e,r,t,a){var n="error_"+a.axis,i=kce.newContainer(r,n),l=e[n]||{};function o(p,m){return Mce.coerce(l,i,qce,p,m)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||MN(l.thickness)||MN(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",Ace.traceIs(r,"gl3d")?0:4))}}});var Rb=O((Bbe,SN)=>{"use strict";SN.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var l=CN(t,r.value),o=CN(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function CN(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var EN=O((Obe,DN)=>{"use strict";var zb=zr(),Cce=gr(),Nb=Zr(),Sce=ze(),Lce=Rb();DN.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var PN=kr(),_o=zr(),Dce=Yr(),Ece=Mn();RN.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var m=Ece.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=PN.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),Dce.setClipUrl(y,a.layerClipId,r),y.each(function(_){var w=PN.select(this),x=Pce(_,l,o);if(!(m&&!_.vis)){var A,k=w.select("path.yerror");if(d.visible&&_o(x.x)&&_o(x.yh)&&_o(x.ys)){var M=d.width;A="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(A+="m-"+M+",0h"+2*M),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",A)}else k.remove();var S=w.select("path.xerror");if(h.visible&&_o(x.y)&&_o(x.xh)&&_o(x.xs)){var D=(h.copy_ystyle?d:h).width;A="M"+x.xh+","+(x.y-D)+"v"+2*D+"m0,-"+D+"H"+x.xs,x.noXS||(A+="m0,-"+D+"v"+2*D),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",A)}else S.remove()}})}})};function Pce(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),_o(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),_o(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var IN=O((Vbe,FN)=>{"use strict";var Rce=kr(),NN=br();FN.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Rce.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(NN.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(NN.stroke,i.color)})}});var ON=O((Gbe,BN)=>{"use strict";var f0=ze(),HN=pi().overrideAll,c0=Pb(),Ys={error_x:f0.extendFlat({},c0),error_y:f0.extendFlat({},c0)};delete Ys.error_x.copy_zstyle;delete Ys.error_y.copy_zstyle;delete Ys.error_y.copy_ystyle;var v0={error_x:f0.extendFlat({},c0),error_y:f0.extendFlat({},c0),error_z:f0.extendFlat({},c0)};delete v0.error_x.copy_ystyle;delete v0.error_y.copy_ystyle;delete v0.error_z.copy_ystyle;delete v0.error_z.copy_zstyle;BN.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ys,bar:Ys,histogram:Ys,scatter3d:HN(v0,"calc","nested"),scattergl:HN(Ys,"calc","nested")}},supplyDefaults:qN(),calc:EN(),makeComputeError:Rb(),plot:zN(),style:IN(),hoverInfo:zce};function zce(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var VN=O((Ube,YN)=>{"use strict";YN.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var $N=O((Xbe,JN)=>{"use strict";var wo=kr(),Fb=In(),$p=Et(),GN=gr(),Sl=Zr(),Jp=wi(),ii=ze(),zi=ii.strTranslate,ZN=yt().extendFlat,Ib=io(),Ri=Yr(),Hb=br(),Nce=Kc(),Fce=na(),Ice=Tn().flipScale,Hce=xp(),Bce=_p(),Oce=An(),Bb=Ma(),UN=Bb.LINE_SPACING,XN=Bb.FROM_TL,WN=Bb.FROM_BR,At=VN().cn;function Yce(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+At.colorbar).data(Vce(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(At.colorbar,!0),t.each(function(a){var n=wo.select(this);ii.ensureSingle(n,"rect",At.cbbg),ii.ensureSingle(n,"g",At.cbfills),ii.ensureSingle(n,"g",At.cblines),ii.ensureSingle(n,"g",At.cbaxis,function(l){l.classed(At.crisp,!0)}),ii.ensureSingle(n,"g",At.cbtitleunshift,function(l){l.append("g").classed(At.cbtitle,!0)}),ii.ensureSingle(n,"rect",At.cboutline);var i=Gce(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Uce(n,a,e)}),t.exit().each(function(a){$p.autoMargin(e,a._id)}).remove(),t.order()}function Vce(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return ZN(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?Ice(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(W)/Math.LN10));_e*=Q*ii.roundUp(W/Q,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ce.tick0=0)}ce.dtick=_e}ce.domain=a?[ee+p/x.h,ee+B-p/x.h]:[ee+d/x.w,ee+B-d/x.w],ce.setScale(),e.attr("transform",zi(Math.round(x.l),Math.round(x.t)));var Z=e.select("."+At.cbtitleunshift).attr("transform",zi(-Math.round(x.l),-Math.round(x.t))),oe=ce.ticklabelposition,me=ce.title.font.size,xe=e.select("."+At.cbaxis),Re,Ee=0,Se=0;function Ge(Xe,ie){var we={propContainer:ce,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+At.cbtitle)},$e=Xe.charAt(0)==="h"?Xe.slice(1):"h"+Xe;e.selectAll("."+$e+",."+$e+"-math-group").remove(),Nce.draw(t,Xe,ZN(we,ie||{}))}function Ie(){if(a&&be||!a&&!be){var Xe,ie;S==="top"&&(Xe=d+x.l+J*m,ie=p+x.t+X*(1-ee-B)+3+me*.75),S==="bottom"&&(Xe=d+x.l+J*m,ie=p+x.t+X*(1-ee)-3-me*.25),S==="right"&&(ie=p+x.t+X*y+3+me*.75,Xe=d+x.l+J*ee),Ge(ce._id+"title",{attributes:{x:Xe,y:ie,"text-anchor":a?"start":"middle"}})}}function We(){if(a&&!be||!a&&be){var Xe=ce.position||0,ie=ce._offset+ce._length/2,we,$e;if(S==="right")$e=ie,we=x.l+J*Xe+10+me*(ce.showticklabels?1:.5);else if(we=ie,S==="bottom"&&($e=x.t+X*Xe+10+(oe.indexOf("inside")===-1?ce.tickfont.size:0)+(ce.ticks!=="inside"&&r.ticklen||0)),S==="top"){var hr=M.text.split("
").length;$e=x.t+X*Xe+10-U-UN*me*hr}Ge((a?"h":"v")+ce._id+"title",{avoid:{selection:wo.select(t).selectAll("g."+ce._id+"tick"),side:S,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:we,y:$e,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!be||a&&be){var Xe=e.select("."+At.cbtitle),ie=Xe.select("text"),we=[-s/2,s/2],$e=Xe.select(".h"+ce._id+"title-math-group").node(),hr=15.6;ie.node()&&(hr=parseInt(ie.node().style.fontSize,10)*UN);var Ne;if($e?(Ne=Ri.bBox($e),Se=Ne.width,Ee=Ne.height,Ee>hr&&(we[1]-=(Ee-hr)/2)):ie.node()&&!ie.classed(At.jsPlaceholder)&&(Ne=Ri.bBox(ie.node()),Se=Ne.width,Ee=Ne.height),a){if(Ee){if(Ee+=5,S==="top")ce.domain[1]-=Ee/x.h,we[1]*=-1;else{ce.domain[0]+=Ee/x.h;var ke=Fce.lineCount(ie);we[1]+=(1-ke)*hr}Xe.attr("transform",zi(we[0],we[1])),ce.setScale()}}else Se&&(S==="right"&&(ce.domain[0]+=(Se+me/2)/x.w),Xe.attr("transform",zi(we[0],we[1])),ce.setScale())}e.selectAll("."+At.cbfills+",."+At.cblines).attr("transform",a?zi(0,Math.round(x.h*(1-ce.domain[1]))):zi(Math.round(x.w*ce.domain[0]),0)),xe.attr("transform",a?zi(0,Math.round(-x.t)):zi(Math.round(-x.l),0));var qe=e.select("."+At.cbfills).selectAll("rect."+At.cbfill).attr("style","").data(I);qe.enter().append("rect").classed(At.cbfill,!0).attr("style",""),qe.exit().remove();var Be=D.map(ce.c2p).map(Math.round).sort(function(ar,er){return ar-er});qe.each(function(ar,er){var Fe=[er===0?D[0]:(I[er]+I[er-1])/2,er===I.length-1?D[1]:(I[er]+I[er+1])/2].map(ce.c2p).map(Math.round);a&&(Fe[1]=ii.constrain(Fe[1]+(Fe[1]>Fe[0])?1:-1,Be[0],Be[1]));var ne=wo.select(this).attr(a?"x":"y",j).attr(a?"y":"x",wo.min(Fe)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(wo.max(Fe)-wo.min(Fe),2));if(r._fillgradient)Ri.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var se=R(ar).replace("e-","");ne.attr("fill",Fb(se).toHexString())}});var Ze=e.select("."+At.cblines).selectAll("path."+At.cbline).data(k.color&&k.width?Y:[]);Ze.enter().append("path").classed(At.cbline,!0),Ze.exit().remove(),Ze.each(function(ar){var er=j,Fe=Math.round(ce.c2p(ar))+k.width/2%1;wo.select(this).attr("d","M"+(a?er+","+Fe:Fe+","+er)+(a?"h":"v")+U).call(Ri.lineGroupStyle,k.width,E(ar),k.dash)}),xe.selectAll("g."+ce._id+"tick,path").remove();var Ve=j+U+(s||0)/2-(r.ticks==="outside"?1:0),Ue=Sl.calcTicks(ce),ir=Sl.getTickSigns(ce)[2];return Sl.drawTicks(t,ce,{vals:ce.ticks==="inside"?Sl.clipEnds(ce,Ue):Ue,layer:xe,path:Sl.makeTickPath(ce,Ve,ir),transFn:Sl.makeTransTickFn(ce)}),Sl.drawLabels(t,ce,{vals:Ue,layer:xe,transFn:Sl.makeTransTickLabelFn(ce),labelFns:Sl.makeLabelFns(ce,Ve)})}function He(){var Xe,ie=U+s/2;oe.indexOf("inside")===-1&&(Xe=Ri.bBox(xe.node()),ie+=a?Xe.width:Xe.height),Re=Z.select("text");var we=0,$e=a&&S==="top",hr=!a&&S==="right",Ne=0;if(Re.node()&&!Re.classed(At.jsPlaceholder)){var ke,qe=Z.select(".h"+ce._id+"title-math-group").node();qe&&(a&&be||!a&&!be)?(Xe=Ri.bBox(qe),we=Xe.width,ke=Xe.height):(Xe=Ri.bBox(Z.node()),we=Xe.right-x.l-(a?j:Ce),ke=Xe.bottom-x.t-(a?Ce:j),!a&&S==="top"&&(ie+=Xe.height,Ne=Xe.height)),hr&&(Re.attr("transform",zi(we/2+me/2,0)),we*=2),ie=Math.max(ie,a?we:ke)}var Be=(a?d:p)*2+ie+u+s/2,Ze=0;!a&&M.text&&h==="bottom"&&y<=0&&(Ze=Be/2,Be+=Ze,Ne+=Ze),w._hColorbarMoveTitle=Ze,w._hColorbarMoveCBTitle=Ne;var Ve=u+s,Ue=(a?j:Ce)-Ve/2-(a?d:0),ir=(a?Ce:j)-(a?G:p+Ne-Ze);e.select("."+At.cbbg).attr("x",Ue).attr("y",ir).attr(a?"width":"height",Math.max(Be-Ze,2)).attr(a?"height":"width",Math.max(G+Ve,2)).call(Hb.fill,f).call(Hb.stroke,r.bordercolor).style("stroke-width",u);var ar=hr?Math.max(we-10,0):0;e.selectAll("."+At.cboutline).attr("x",(a?j:Ce+d)+ar).attr("y",(a?Ce+p-G:j)+($e?Ee:0)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(G-(a?2*p+Ee:2*d+ar),2)).call(Hb.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var er=a?le*Be:0,Fe=a?0:(1-fe)*Be-Ne;if(er=_?x.l-er:-er,Fe=b?x.t-Fe:-Fe,e.attr("transform",zi(er,Fe)),!a&&(u||Fb(f).getAlpha()&&!Fb.equals(w.paper_bgcolor,f))){var ne=xe.selectAll("text"),se=ne[0].length,Le=e.select("."+At.cbbg).node(),Pe=Ri.bBox(Le),Qe=Ri.getTranslate(e),cr=2;ne.each(function(Ja,ba){var ca=0,$a=se-1;if(ba===ca||ba===$a){var va=Ri.bBox(this),ha=Ri.getTranslate(this),vr;if(ba===$a){var ct=va.right+ha.x,Kr=Pe.right+Qe.x+Ce-u-cr+m;vr=Kr-ct,vr>0&&(vr=0)}else if(ba===ca){var lt=va.left+ha.x,da=Pe.left+Qe.x+Ce+u+cr;vr=da-lt,vr<0&&(vr=0)}vr&&(se<3?this.setAttribute("transform","translate("+vr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},Mr=XN[c],Br=WN[c],$r=XN[h],ft=WN[h],kt=Be-U;a?(i==="pixels"?(sr.y=y,sr.t=G*$r,sr.b=G*ft):(sr.t=sr.b=0,sr.yt=y+n*$r,sr.yb=y-n*ft),o==="pixels"?(sr.x=m,sr.l=Be*Mr,sr.r=Be*Br):(sr.l=kt*Mr,sr.r=kt*Br,sr.xl=m-l*Mr,sr.xr=m+l*Br)):(i==="pixels"?(sr.x=m,sr.l=G*Mr,sr.r=G*Br):(sr.l=sr.r=0,sr.xl=m+n*Mr,sr.xr=m-n*Br),o==="pixels"?(sr.y=1-y,sr.t=Be*$r,sr.b=Be*ft):(sr.t=kt*$r,sr.b=kt*ft,sr.yt=y-l*$r,sr.yb=y+l*ft));var wt=r.y<.5?"b":"t",Jt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Vt={r:w.width-Ue-er,l:Ue+sr.r,b:w.height-ir-Fe,t:ir+sr.b};_&&b?$p.autoMargin(t,r._id,sr):_?t._fullLayout._reservedMargin[r._id][wt]=Vt[wt]:b||a?t._fullLayout._reservedMargin[r._id][Jt]=Vt[Jt]:t._fullLayout._reservedMargin[r._id][wt]=Vt[wt]}return ii.syncOrAsync([$p.previousPromises,Ie,De,We,$p.previousPromises,He],t)}function Uce(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Jp.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),Ib(e)},moveFn:function(u,f){e.attr("transform",l+zi(u,f)),o=Jp.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Jp.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Jp.getCursor(o,s,r.xanchor,r.yanchor);Ib(e,c)},doneFn:function(){if(Ib(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?GN.call("_guiRestyle",t,u,r._traceIndex):GN.call("_guiRelayout",t,u)}}})}function Xce(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";KN.exports={moduleType:"component",name:"colorbar",attributes:fd(),supplyDefaults:Wg(),draw:$N().draw,hasColorbar:Bg()}});var eF=O((Zbe,jN)=>{"use strict";jN.exports={moduleType:"component",name:"legend",layoutAttributes:G2(),supplyLayoutDefaults:X2(),draw:l3(),style:t3()}});var tF=O((Jbe,rF)=>{"use strict";rF.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var nF=O(($be,aF)=>{"use strict";aF.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var Yb=O((Kbe,sF)=>{"use strict";var Zce=gr(),oF=ze(),Ob=oF.extendFlat,iF=oF.extendDeep;function lF(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Jce(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}sF.exports=function(r,t){var a,n=r.data,i=r.layout,l=iF([],n),o=iF({},i,lF(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var $ce=Kh().EventEmitter,Kce=gr(),Qce=ze(),uF=Ls(),jce=Yb(),eve=ap(),rve=np();function tve(e,r){var t=new $ce,a=jce(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=uF.getDelay(n._fullLayout);setTimeout(function(){var s=eve(n),u=document.createElement("canvas");u.id=Qce.randstr(),t=rve({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=uF.getRedrawFunc(n);return Kce.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}fF.exports=tve});var dF=O((jbe,hF)=>{"use strict";var vF=Ls(),ave={getDelay:vF.getDelay,getRedrawFunc:vF.getRedrawFunc,clone:Yb(),toSVG:ap(),svgToImg:np(),toImage:cF(),downloadImage:Ax()};hF.exports=ave});var mF=O(Ll=>{"use strict";Ll.version=mh().version;l6();J8();var nve=gr(),h0=Ll.register=nve.register,Gb=yD(),pF=Object.keys(Gb);for(Kp=0;Kp{"use strict";yF.exports=mF()});var Dl=O((t5e,TF)=>{"use strict";var Lt=Mi(),xF=bi().axisHoverFormat,{hovertemplateAttrs:ive,texttemplateAttrs:lve,templatefallbackAttrs:bF}=_n(),wF=Wc(),ove=ra(),_F=$v(),sve=mi().pattern,Vs=yt().extendFlat,Ub=ove({editType:"calc",arrayOk:!0,colorEditType:"style"}),uve=Lt.marker,fve=uve.line,cve=Vs({},fve.width,{dflt:0}),vve=Vs({width:cve,editType:"calc"},wF("marker.line")),hve=Vs({line:vve,editType:"calc"},wF("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:sve,cornerradius:{valType:"any",editType:"calc"}});TF.exports={x:Lt.x,x0:Lt.x0,dx:Lt.dx,y:Lt.y,y0:Lt.y0,dy:Lt.dy,xperiod:Lt.xperiod,yperiod:Lt.yperiod,xperiod0:Lt.xperiod0,yperiod0:Lt.yperiod0,xperiodalignment:Lt.xperiodalignment,yperiodalignment:Lt.yperiodalignment,xhoverformat:xF("x"),yhoverformat:xF("y"),text:Lt.text,texttemplate:lve({editType:"plot"},{keys:_F.eventDataKeys}),texttemplatefallback:bF({editType:"plot"}),hovertext:Lt.hovertext,hovertemplate:ive({},{keys:_F.eventDataKeys}),hovertemplatefallback:bF(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Vs({},Ub,{}),insidetextfont:Vs({},Ub,{}),outsidetextfont:Vs({},Ub,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Vs({},Lt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:hve,offsetgroup:Lt.offsetgroup,alignmentgroup:Lt.alignmentgroup,selected:{marker:{opacity:Lt.selected.marker.opacity,color:Lt.selected.marker.color,editType:"style"},textfont:Lt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Lt.unselected.marker.opacity,color:Lt.unselected.marker.color,editType:"style"},textfont:Lt.unselected.textfont,editType:"style"},zorder:Lt.zorder}});var jp=O((a5e,AF)=>{"use strict";AF.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var Xb=O((n5e,qF)=>{"use strict";var dve=br(),MF=Tn().hasColorscale,kF=Wu(),pve=ze().coercePattern;qF.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=MF(r,"marker");o&&kF(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",dve.defaultLine),MF(r,"marker.line")&&kF(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),pve(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var il=O((i5e,PF)=>{"use strict";var CF=zr(),If=ze(),SF=br(),mve=gr(),yve=Wv(),gve=Ps(),xve=Xb(),bve=_f(),LF=Dl(),em=If.coerceFont;function _ve(e,r,t,a){function n(u,f){return If.coerce(e,r,LF,u,f)}var i=yve(e,r,a,n);if(!i){r.visible=!1;return}gve(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");EF(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),xve(e,r,n,t,a);var o=(r.marker.line||{}).color,s=mve.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||SF.defaultLine,{axis:"y"}),s(e,r,o||SF.defaultLine,{axis:"x",inherit:"y"}),If.coerceSelectionMarkerOpacity(r,n)}function wve(e,r){var t,a;function n(o,s){return If.coerce(a._input,a,LF,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&CF(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function EF(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",m=d||n==="outside";if(p||m){var y=em(a,"textfont",t.font),b=If.extendFlat({},y),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,em(a,"insidetextfont",b),h){var x=If.extendFlat({},y);w&&delete x.color,em(a,"pathbar.textfont",x)}m&&em(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}PF.exports={supplyDefaults:_ve,crossTraceDefaults:wve,handleText:EF,validateCornerradius:DF}});var Wb=O((l5e,RF)=>{"use strict";var Tve=gr(),Ave=Zr(),Mve=ze(),kve=jp(),qve=il().validateCornerradius;RF.exports=function(e,r,t){function a(m,y){return Mve.coerce(e,r,kve,m,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),c.visible&&c.type==="histogram"){var d=Ave.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=qve(p)}});var rm=O((o5e,zF)=>{"use strict";var Hf=ze();zF.exports=function(r,t){for(var a=0;a{"use strict";var NF=Zr(),FF=Rs(),IF=Tn().hasColorscale,HF=Zc(),Cve=rm(),Sve=Zv();BF.exports=function(r,t){var a=NF.getFromId(r,t.xaxis||"x"),n=NF.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=FF(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=FF(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),p=0;p{"use strict";var Lve=kr(),Dve=ze();function Eve(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Lve.select(this).select("text");Dve.setTransormAndDisplay(u,s)}})}}function Pve(e,r,t){if(t.uniformtext.mode){var a=YF(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var zve=zr(),Nve=In(),GF=ze().isArrayOrTypedArray;Gs.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Gs.coerceNumber=function(e,r,t){if(zve(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Gs.coerceColor=function(e,r,t){return Nve(r).isValid()?r:t!==void 0?t:e.dflt};Gs.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Gs.getValue=function(e,r){var t;return GF(e)?r{"use strict";var d0=kr(),Fve=br(),p0=Yr(),UF=ze(),XF=gr(),WF=Ni().resizeText,Zb=Dl(),Ive=Zb.textfont,Hve=Zb.insidetextfont,Bve=Zb.outsidetextfont,Ca=tm();function Ove(e){var r=d0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");WF(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&d0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=d0.select(this),l=n[0].trace;ZF(i,l,e)}),XF.getComponentMethod("errorbars","style")(r)}function ZF(e,r,t){p0.pointStyle(e.selectAll("path"),r,t),JF(e,r,t)}function JF(e,r,t){e.selectAll("text").each(function(a){var n=d0.select(this),i=UF.ensureUniformFontSize(t,$F(n,a,r,t));p0.font(n,i)})}function Yve(e,r,t){var a=r[0].trace;a.selectedpoints?Vve(t,a,e):(ZF(t,a,e),XF.getComponentMethod("errorbars","style")(t))}function Vve(e,r,t){p0.selectedPointStyle(e.selectAll("path"),r),Gve(e.selectAll("text"),r,t)}function Gve(e,r,t){e.each(function(a){var n=d0.select(this),i;if(a.selected){i=UF.ensureUniformFontSize(t,$F(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),p0.font(n,i)}else p0.selectedTextStyle(n,r)})}function $F(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=eI(r,t);i=QF(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=jF(t,r.i,n));return i}function KF(e,r,t){return Jb(Ive,e.textfont,r,t)}function QF(e,r,t,a){var n=KF(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:Fve.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),Jb(Hve,e.insidetextfont,r,n)}function jF(e,r,t){var a=KF(e,r,t);return Jb(Bve,e.outsidetextfont,r,a)}function Jb(e,r,t,a){r=r||{};var n=Ca.getValue(r.family,t),i=Ca.getValue(r.size,t),l=Ca.getValue(r.color,t),o=Ca.getValue(r.weight,t),s=Ca.getValue(r.style,t),u=Ca.getValue(r.variant,t),f=Ca.getValue(r.textcase,t),c=Ca.getValue(r.lineposition,t),h=Ca.getValue(r.shadow,t);return{family:Ca.coerceString(e.family,n,a.family),size:Ca.coerceNumber(e.size,i,a.size),color:Ca.coerceColor(e.color,l,a.color),weight:Ca.coerceString(e.weight,o,a.weight),style:Ca.coerceString(e.style,s,a.style),variant:Ca.coerceString(e.variant,u,a.variant),textcase:Ca.coerceString(e.variant,f,a.textcase),lineposition:Ca.coerceString(e.variant,c,a.lineposition),shadow:Ca.coerceString(e.variant,h,a.shadow)}}function eI(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}rI.exports={style:Ove,styleTextPoints:JF,styleOnSelect:Yve,getInsideTextFont:QF,getOutsideTextFont:jF,getBarColor:eI,resizeText:WF}});var Of=O((v5e,uI)=>{"use strict";var am=kr(),nm=zr(),ga=ze(),Uve=na(),Xve=br(),Ao=Yr(),Wve=gr(),im=Zr().tickText,tI=Ni(),Zve=tI.recordMinTextSize,Jve=tI.clearMinTextSize,$b=To(),Bf=tm(),$ve=$v(),aI=Dl(),Kve=aI.text,Qve=aI.textposition,jve=Yi().appendArrayPointValue,Wa=$ve.TEXTPAD;function e0e(e){return e.id}function r0e(e){if(e.ids)return e0e}function Kb(e){return(e>0)-(e<0)}function ll(e,r){return e0}function a0e(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},Jve("bar",s));var f=ga.makeTraceGroups(a,t,"trace bars").each(function(c){var h=am.select(this),d=c[0].trace,p=c[0].t,m=d.type==="waterfall",y=d.type==="funnel",b=d.type==="histogram",_=d.type==="bar",w=_||y,x=0;m&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var A=d.orientation==="h",k=iI(n),M=ga.ensureSingle(h,"g","points"),S=r0e(d),D=M.selectAll("g.point").data(ga.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var H=am.select(this),I=t0e(R,l,o,A),Y=I[0][0],U=I[0][1],V=I[1][0],G=I[1][1],B=(A?U-Y:G-V)===0;B&&w&&Bf.getLineWidth(d,R)&&(B=!1),B||(B=!nm(Y)||!nm(U)||!nm(V)||!nm(G)),R.isBlank=B,B&&(A?U=Y:G=V),x&&!B&&(A?(Y-=ll(Y,U)*x,U+=ll(Y,U)*x):(V-=ll(V,G)*x,G+=ll(V,G)*x));var J,X;if(d.type==="waterfall"){if(!B){var j=d[R.dir].marker;J=j.line.width,X=j.color}}else J=Bf.getLineWidth(d,R),X=R.mc||d.marker.color;function le(ie){var we=am.round(J/2%1,2);return n.gap===0&&n.groupgap===0?am.round(Math.round(ie)-we,2):ie}function fe(ie,we,$e){return $e&&ie===we?ie:Math.abs(ie-we)>=2?le(ie):ie>we?Math.ceil(ie):Math.floor(ie)}var ve=Xve.opacity(X),ee=ve<1||J>.01?le:fe;e._context.staticPlot||(Y=ee(Y,U,A),U=ee(U,Y,A),V=ee(V,G,!A),G=ee(G,V,!A));var Ce=A?l.c2p:o.c2p,ce;R.s0>0?ce=R._sMax:R.s0<0?ce=R._sMin:ce=R.s1>0?R._sMax:R._sMin;function be(ie,we){if(!ie)return 0;var $e=Math.abs(A?G-V:U-Y),hr=Math.abs(A?U-Y:G-V),Ne=ee(Math.abs(Ce(ce,!0)-Ce(0,!0))),ke=R.hasB?Math.min($e/2,hr/2):Math.min($e/2,Ne),qe;if(we==="%"){var Be=Math.min(50,ie);qe=$e*(Be/100)}else qe=ie;return ee(Math.max(Math.min(qe,ke),0))}var _e=_||b?be(p.cornerradiusvalue,p.cornerradiusform):0,ge,W,Q="M"+Y+","+V+"V"+G+"H"+U+"V"+V+"Z",Z=0;if(_e&&R.s){var oe=Kb(R.s0)===0||Kb(R.s)===Kb(R.s0)?R.s1:R.s0;if(Z=ee(R.hasB?0:Math.abs(Ce(ce,!0)-Ce(oe,!0))),Z<_e){var me=ll(Y,U),xe=ll(V,G),Re=me===-xe?1:0;if(A)if(R.hasB)ge="M"+(Y+_e*me)+","+V+"A "+_e+","+_e+" 0 0 "+Re+" "+Y+","+(V+_e*xe)+"V"+(G-_e*xe)+"A "+_e+","+_e+" 0 0 "+Re+" "+(Y+_e*me)+","+G+"H"+(U-_e*me)+"A "+_e+","+_e+" 0 0 "+Re+" "+U+","+(G-_e*xe)+"V"+(V+_e*xe)+"A "+_e+","+_e+" 0 0 "+Re+" "+(U-_e*me)+","+V+"Z";else{W=Math.abs(U-Y)+Z;var Ee=W<_e?_e-Math.sqrt(W*(2*_e-W)):0,Se=Z>0?Math.sqrt(Z*(2*_e-Z)):0,Ge=me>0?Math.max:Math.min;ge="M"+Y+","+V+"V"+(G-Ee*xe)+"H"+Ge(U-(_e-Z)*me,Y)+"A "+_e+","+_e+" 0 0 "+Re+" "+U+","+(G-_e*xe-Se)+"V"+(V+_e*xe+Se)+"A "+_e+","+_e+" 0 0 "+Re+" "+Ge(U-(_e-Z)*me,Y)+","+(V+Ee*xe)+"Z"}else if(R.hasB)ge="M"+(Y+_e*me)+","+V+"A "+_e+","+_e+" 0 0 "+Re+" "+Y+","+(V+_e*xe)+"V"+(G-_e*xe)+"A "+_e+","+_e+" 0 0 "+Re+" "+(Y+_e*me)+","+G+"H"+(U-_e*me)+"A "+_e+","+_e+" 0 0 "+Re+" "+U+","+(G-_e*xe)+"V"+(V+_e*xe)+"A "+_e+","+_e+" 0 0 "+Re+" "+(U-_e*me)+","+V+"Z";else{W=Math.abs(G-V)+Z;var Ie=W<_e?_e-Math.sqrt(W*(2*_e-W)):0,We=Z>0?Math.sqrt(Z*(2*_e-Z)):0,De=xe>0?Math.max:Math.min;ge="M"+(Y+Ie*me)+","+V+"V"+De(G-(_e-Z)*xe,V)+"A "+_e+","+_e+" 0 0 "+Re+" "+(Y+_e*me-We)+","+G+"H"+(U-_e*me+We)+"A "+_e+","+_e+" 0 0 "+Re+" "+(U-Ie*me)+","+De(G-(_e-Z)*xe,V)+"V"+V+"Z"}}else ge=Q}else ge=Q;var He=nI(ga.ensureSingle(H,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((U-Y)*(G-V))||B&&e._context.staticPlot?"M0,0Z":ge).call(Ao.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Xe=Ao.makePointStyleFns(d);Ao.singlePointStyle(R,He,d,Xe,e)}n0e(e,r,H,c,N,Y,U,V,G,_e,Z,n,i),r.layerClipId&&Ao.hideOutsideRangePoint(R,H.select("text"),l,o,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;Ao.setClipUrl(h,E?null:r.layerClipId,e)});Wve.getComponentMethod("errorbars","plot")(e,f,r,n)}function n0e(e,r,t,a,n,i,l,o,s,u,f,c,h){var d=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function b(W,Q,Z){var oe=ga.ensureSingle(W,"text").text(Q).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(Ao.font,Z).call(Uve.convertToTspans,e);return oe}var _=a[0].trace,w=_.orientation==="h",x=o0e(m,a,n,d,p);y=s0e(_,n);var A=c.mode==="stack"||c.mode==="relative",k=a[n],M=!A||k._outmost,S=k.hasB,D=u&&u-f>Wa;if(!x||y==="none"||(k.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var E=m.font,R=$b.getBarColor(a[n],_),N=$b.getInsideTextFont(_,n,E,R),H=$b.getOutsideTextFont(_,n,E),I=_.insidetextanchor||"end",Y=t.datum();w?d.type==="log"&&Y.s0<=0&&(d.range[0]0&&le>0,ee;D?S?ee=Us(G-2*u,B,j,le,w)||Us(G,B-2*u,j,le,w):w?ee=Us(G-(u-f),B,j,le,w)||Us(G,B-2*(u-f),j,le,w):ee=Us(G,B-(u-f),j,le,w)||Us(G-2*(u-f),B,j,le,w):ee=Us(G,B,j,le,w),ve&&ee?y="inside":(y="outside",J.remove(),J=null)}else y="inside";if(!J){fe=ga.ensureUniformFontSize(e,y==="outside"?H:N),J=b(t,x,fe);var Ce=J.attr("transform");if(J.attr("transform",""),X=Ao.bBox(J.node()),j=X.width,le=X.height,J.attr("transform",Ce),j<=0||le<=0){J.remove();return}}var ce=_.textangle,be,_e;y==="outside"?(_e=_.constraintext==="both"||_.constraintext==="outside",be=l0e(i,l,o,s,X,{isHorizontal:w,constrained:_e,angle:ce})):(_e=_.constraintext==="both"||_.constraintext==="inside",be=sI(i,l,o,s,X,{isHorizontal:w,constrained:_e,angle:ce,anchor:I,hasB:S,r:u,overhead:f})),be.fontSize=fe.size,Zve(_.type==="histogram"?"bar":_.type,be,m),k.transform=be;var ge=nI(J,m,c,h);ga.setTransormAndDisplay(ge,be)}function Us(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function lI(e){return e==="auto"?0:e}function oI(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function sI(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",h=i.leftToRight||0,d=(h+1)/2,p=1-d,m=i.hasB,y=i.r,b=i.overhead,_=n.width,w=n.height,x=Math.abs(r-e),A=Math.abs(a-t),k=x>2*Wa&&A>2*Wa?Wa:0;x-=2*k,A-=2*k;var M=lI(s);s==="auto"&&!(_<=x&&w<=A)&&(_>x||w>A)&&(!(_>A||w>x)||_Wa){var R=i0e(e,r,t,a,S,y,b,l,m);D=R.scale,E=R.pad}else D=1,o&&(D=Math.min(1,x/S.x,A/S.y)),E=0;var N=n.left*p+n.right*d,H=(n.top+n.bottom)/2,I=(e+Wa)*p+(r-Wa)*d,Y=(t+a)/2,U=0,V=0;if(c||f){var G=(l?S.x:S.y)/2;y&&(f||m)&&(k+=E);var B=l?ll(e,r):ll(t,a);l?c?(I=e+B*k,U=-B*G):(I=r-B*k,U=B*G):c?(Y=t+B*k,V=-B*G):(Y=a-B*k,V=B*G)}return{textX:N,textY:H,targetX:I,targetY:Y,anchorX:U,anchorY:V,scale:D,rotate:M}}function i0e(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Wa),f=Math.max(0,Math.abs(a-t)-2*Wa),c=i-Wa,h=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,d=s?c*2:o?c-l:2*h,p=s?c*2:o?2*h:c-l,m,y,b,_,w;return n.y/n.x>=f/(u-d)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*b))/(2*m)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function l0e(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Wa?Wa:0:d=c>2*Wa?Wa:0;var p=1;o&&(p=l?Math.min(1,h/f):Math.min(1,c/u));var m=lI(s),y=oI(n,m),b=(l?y.x:y.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,A=(t+a)/2,k=0,M=0,S=l?ll(r,e):ll(t,a);return l?(x=r-S*d,k=S*b):(A=a+S*d,M=-S*b),{textX:_,textY:w,targetX:x,targetY:A,anchorX:k,anchorY:M,scale:p,rotate:m}}function o0e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=u0e(e,r,t,a,n):i.textinfo?o=f0e(r,t,a,n):o=Bf.getValue(i.text,t),Bf.coerceString(Kve,o)}function s0e(e,r){var t=Bf.getValue(e.textposition,r);return Bf.coerceEnumerated(Qve,t)}function u0e(e,r,t,a,n){var i=r[0].trace,l=ga.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,h,d,p;f?(c="y",h=n,d="x",p=a):(c="x",h=a,d="y",p=n);function m(k){return im(h,h.c2l(k),!0).text}function y(k){return im(p,p.c2l(k),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=m(b.p);var w=ga.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[d+"Label"]=y(b.s);var x={};jve(x,i,b.i),(o||x.x===void 0)&&(x.x=f?_.value:_.label),(o||x.y===void 0)&&(x.y=f?_.label:_.value),(o||x.xLabel===void 0)&&(x.xLabel=f?_.valueLabel:_.labelLabel),(o||x.yLabel===void 0)&&(x.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+b.rawS||b.s,_.deltaLabel=y(_.delta),_.final=b.v,_.finalLabel=y(_.final),_.initial=_.final-_.delta,_.initialLabel=y(_.initial)),u&&(_.value=b.s,_.valueLabel=y(_.value),_.percentInitial=b.begR,_.percentInitialLabel=ga.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=ga.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=ga.formatPercent(b.sumR));var A=ga.castOption(i,b.i,"customdata");return A&&(_.customdata=A),ga.texttemplateString({data:[x,_,i._meta],fallback:i.texttemplatefallback,labels:_,locale:e._d3locale,template:l})}function f0e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(A){var k=i?a:t;return im(k,A,!0).text}function u(A){var k=i?t:a;return im(k,+A,!0).text}var f=n.textinfo,c=e[r],h=f.split("+"),d=[],p,m=function(A){return h.indexOf(A)!==-1};if(m("label")&&d.push(s(e[r].p)),m("text")&&(p=ga.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),l){var y=+c.rawS||c.s,b=c.v,_=b-y;m("initial")&&d.push(u(_)),m("delta")&&d.push(u(y)),m("final")&&d.push(u(b))}if(o){m("value")&&d.push(u(c.s));var w=0;m("percent initial")&&w++,m("percent previous")&&w++,m("percent total")&&w++;var x=w>1;m("percent initial")&&(p=ga.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),m("percent previous")&&(p=ga.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),m("percent total")&&(p=ga.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("
")}uI.exports={plot:a0e,toMoveInsideBar:sI}});var y0=O((h5e,hI)=>{"use strict";var m0=Wn(),c0e=gr(),fI=br(),v0e=ze().fillText,h0e=tm().getLineWidth,Qb=Zr().hoverLabelText,d0e=Tt().BADNUM;function p0e(e,r,t,a,n){var i=cI(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=vI(o,s),c0e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function cI(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,m,y,b,_;l.orientation==="h"?(h=t,d=r,p="y",m="x",y=Y,b=N):(h=r,d=t,p="x",m="y",b=Y,y=N);var w=l[p+"period"],x=s||w;function A(ee){return M(ee,-1)}function k(ee){return M(ee,1)}function M(ee,Ce){var ce=ee.w;return ee[p]+Ce*ce/2}function S(ee){return ee[p+"End"]-ee[p+"Start"]}var D=s?A:w?function(ee){return ee.p-S(ee)/2}:function(ee){return Math.min(A(ee),ee.p-o.bardelta/2)},E=s?k:w?function(ee){return ee.p+S(ee)/2}:function(ee){return Math.max(k(ee),ee.p+o.bardelta/2)};function R(ee,Ce,ce){return n.finiteRange&&(ce=0),m0.inbox(ee-h,Ce-h,ce+Math.min(1,Math.abs(Ce-ee)/_)-1)}function N(ee){return R(D(ee),E(ee),f)}function H(ee){return R(A(ee),k(ee),c)}function I(ee){var Ce=ee[m];if(u){var ce=Math.abs(ee.rawS)||0;d>0?Ce+=ce:d<0&&(Ce-=ce)}return Ce}function Y(ee){var Ce=d,ce=ee.b,be=I(ee);return m0.inbox(ce-Ce,be-Ce,f+(be-Ce)/(be-ce)-1)}function U(ee){var Ce=d,ce=ee.b,be=I(ee);return m0.inbox(ce-Ce,be-Ce,c+(be-Ce)/(be-ce)-1)}var V=e[p+"a"],G=e[m+"a"];_=Math.abs(V.r2c(V.range[1])-V.r2c(V.range[0]));function B(ee){return(y(ee)+b(ee))/2}var J=m0.getDistanceFunction(a,y,b,B);if(m0.getClosest(i,J,e),e.index!==!1&&i[e.index].p!==d0e){x||(D=function(ee){return Math.min(A(ee),ee.p-o.bargroupwidth/2)},E=function(ee){return Math.max(k(ee),ee.p+o.bargroupwidth/2)});var X=e.index,j=i[X],le=l.base?j.b+j.s:j.s;e[m+"0"]=e[m+"1"]=G.c2p(j[m],!0),e[m+"LabelVal"]=le;var fe=o.extents[o.extents.round(j.p)];e[p+"0"]=V.c2p(s?D(j):fe[0],!0),e[p+"1"]=V.c2p(s?E(j):fe[1],!0);var ve=j.orig_p!==void 0;return e[p+"LabelVal"]=ve?j.orig_p:j.p,e.labelLabel=Qb(V,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=Qb(G,e[m+"LabelVal"],l[m+"hoverformat"]),e.baseLabel=Qb(G,j.b,l[m+"hoverformat"]),e.spikeDistance=(U(j)+H(j))/2,e[p+"Spike"]=V.c2p(j.p,!0),v0e(j,l,e),e.hovertemplate=l.hovertemplate,e}}function vI(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=h0e(e,r);if(fI.opacity(t))return t;if(fI.opacity(a)&&n)return a}hI.exports={hoverPoints:p0e,hoverOnBars:cI,getTraceColor:vI}});var pI=O((d5e,dI)=>{"use strict";dI.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var g0=O((p5e,mI)=>{"use strict";mI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";yI.exports={attributes:Dl(),layoutAttributes:jp(),supplyDefaults:il().supplyDefaults,crossTraceDefaults:il().crossTraceDefaults,supplyLayoutDefaults:Wb(),calc:OF(),crossTraceCalc:Af().crossTraceCalc,colorbar:pp(),arraysToCalcdata:rm(),plot:Of().plot,style:To().style,styleOnSelect:To().styleOnSelect,hoverPoints:y0().hoverPoints,eventData:pI(),selectPoints:g0(),moduleType:"trace",name:"bar",basePlotModule:kl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var bI=O((y5e,xI)=>{"use strict";xI.exports=gI()});var wI=O((g5e,_I)=>{"use strict";_I.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var AI=O((x5e,TI)=>{"use strict";TI.exports={eventDataKeys:["binNumber"]}});var r5=O((b5e,CI)=>{"use strict";var gn=Dl(),MI=bi().axisHoverFormat,{hovertemplateAttrs:y0e,texttemplateAttrs:g0e,templatefallbackAttrs:kI}=_n(),jb=ra(),qI=wI(),x0e=AI(),e5=yt().extendFlat;CI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:MI("x"),yhoverformat:MI("y"),text:e5({},gn.text,{}),hovertext:e5({},gn.hovertext,{}),orientation:gn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:qI("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:qI("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:y0e({},{keys:x0e.eventDataKeys}),hovertemplatefallback:kI(),texttemplate:g0e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:kI({editType:"plot"}),textposition:e5({},gn.textposition,{arrayOk:!1}),textfont:jb({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:jb({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:jb({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:gn.insidetextanchor,textangle:gn.textangle,cliponaxis:gn.cliponaxis,constraintext:gn.constraintext,marker:gn.marker,offsetgroup:gn.offsetgroup,alignmentgroup:gn.alignmentgroup,selected:gn.selected,unselected:gn.unselected,zorder:gn.zorder}});var EI=O((_5e,DI)=>{"use strict";var SI=gr(),x0=ze(),LI=br(),b0e=il().handleText,_0e=Xb(),w0e=r5();DI.exports=function(r,t,a,n){function i(_,w){return x0.coerce(r,t,w0e,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");b0e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=l&&o?Math.min(x0.minRowLength(l)&&x0.minRowLength(o)):x0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=SI.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[h];m&&i("histfunc"),i("histnorm"),i("autobin"+c),_0e(r,t,i,a,n),x0.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,b=SI.getComponentMethod("errorbars","supplyDefaults");b(r,t,y||LI.defaultLine,{axis:"y"}),b(r,t,y||LI.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var NI=O((w5e,zI)=>{"use strict";var b0=ze(),T0e=Ut(),lm=gr().traceIs,A0e=_f(),M0e=il().validateCornerradius,PI=b0.nestedProperty,t5=Ss().getAxisGroup,RI=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],k0e=["x","y"];zI.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,h,d;function p(Y,U){return b0.coerce(o._input,o,o._module.attributes,Y,U)}function m(Y){return Y.orientation==="v"?"x":"y"}function y(Y,U){var V=T0e.getFromTrace({_fullLayout:t},Y,U);return V.type}function b(Y,U,V){var G=Y.uid+"__"+V;U||(U=G);var B=y(Y,V),J=Y[V+"calendar"]||"",X=a[U],j=!0;X&&(B===X.axType&&J===X.calendar?(j=!1,X.traces.push(Y),X.dirs.push(V)):(U=G,B!==X.axType&&b0.warn(["Attempted to group the bins of trace",Y.index,"set on a","type:"+B,"axis","with bins on","type:"+X.axType,"axis."].join(" ")),J!==X.calendar&&b0.warn(["Attempted to group the bins of trace",Y.index,"set with a",J,"calendar","with bins",X.calendar?"on a "+X.calendar+" calendar":"w/o a set calendar"].join(" ")))),j&&(a[U]={traces:[Y],dirs:[V],axType:B,calendar:Y[V+"calendar"]||""}),Y["_"+V+"bingroup"]=U}for(c=0;c{"use strict";var Yf=zr();FI.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Yf(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Yf(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Yf(n))if(n=Number(n),Yf(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Yf(n))if(n=Number(n),Yf(t[e])){if(t[e]{"use strict";HI.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";OI.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Vf=Tt(),Xs=Vf.ONEAVGYEAR,VI=Vf.ONEAVGMONTH,sm=Vf.ONEDAY,GI=Vf.ONEHOUR,UI=Vf.ONEMIN,XI=Vf.ONESEC,WI=Zr().tickIncrement;$I.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(om(u+o,u+s,n,i),om(f+o,f+s,n,i)),h=Math.min(om(u+l,u+o,n,i),om(f+l,f+o,n,i)),d,p;if(c>h&&hsm){var m=d===Xs?1:6,y=d===Xs?"M12":"M1";return function(b,_){var w=n.c2d(b,Xs,i),x=w.indexOf("-",m);x>0&&(w=w.slice(0,x));var A=n.d2c(w,0,i);if(AXI?e>sm?e>Xs*1.1?Xs:e>VI*1.1?VI:sm:e>GI?GI:e>UI?UI:XI:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function q0e(e,r,t,a,n,i){if(a&&e>sm){var l=JI(r,n,i),o=JI(t,n,i),s=e===Xs?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function JI(e,r,t){var a=r.c2d(e,Xs,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var aH=O((q5e,tH)=>{"use strict";var a5=zr(),Za=ze(),QI=gr(),li=Zr(),{hasColorscale:jI}=Tn(),eH=Zc(),C0e=rm(),rH=II(),S0e=BI(),L0e=YI(),D0e=KI();function E0e(e,r){var t=[],a=[],n=r.orientation==="h",i=li.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=n5(e,r,i,l),h=c[0],d=c[1],p=typeof h.size=="string",m=[],y=p?m:h,b=[],_=[],w=[],x=0,A=r.histnorm,k=r.histfunc,M=A.indexOf("density")!==-1,S,D,E;u.enabled&&M&&(A=A.replace(/ ?density$/,""),M=!1);var R=k==="max"||k==="min",N=R?null:0,H=rH.count,I=S0e[A],Y=!1,U=function(W){return i.r2c(W,0,s)},V;for(Za.isArrayOrTypedArray(r[o])&&k!=="count"&&(V=r[o],Y=k==="avg",H=rH[k]),f=U(h.start),D=U(h.end)+(f-li.tickIncrement(f,h.size,!1,s))/1e6;f=0&&E=be;f--)if(a[f]){_e=f;break}for(f=be;f<=_e;f++)if(a5(t[f])&&a5(a[f])){var ge={p:t[f],s:a[f],b:0};u.enabled||(ge.pts=w[f],X?ge.ph0=ge.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,ge.ph0=ee(m[f]),ge.ph1=ee(m[f+1],!0))),ce.push(ge)}return ce.length===1&&(ce[0].width1=li.tickIncrement(ce[0].p,h.size,!1,s)-ce[0].p),jI(r,"marker")&&eH(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),jI(r,"marker.line")&&eH(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),C0e(ce,r),Za.isArrayOrTypedArray(r.selectedpoints)&&Za.tagSelected(ce,r,fe),ce}function n5(e,r,t,a,n){var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,h,d,p,m,y,b=function(ve){return t.r2c(ve,0,d)},_=function(ve){return t.c2r(ve,0,d)},w=t.type==="date"?function(ve){return ve||ve===0?Za.cleanDate(ve,null,d):null}:function(ve){return a5(ve)?Number(ve):null};function x(ve,ee,Ce){ee[ve+"Found"]?(ee[ve]=w(ee[ve]),ee[ve]===null&&(ee[ve]=Ce[ve])):(m[ve]=ee[ve]=Ce[ve],Za.nestedProperty(c[0],i+"."+ve).set(Ce[ve]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var A=[],k=!0,M=!1,S=!1;for(f=0;ft.r2l(V)&&(B=li.tickIncrement(B,s.size,!0,d)),H.start=t.l2r(B),U||Za.nestedProperty(r,i+".start").set(H.start)}var J=s.end,X=t.r2l(N.end),j=X!==void 0;if((s.endFound||j)&&X!==t.r2l(J)){var le=j?X:Za.aggNums(Math.max,null,p);H.end=t.l2r(le),j||Za.nestedProperty(r,i+".start").set(H.end)}var fe="autobin"+a;return r._input[fe]===!1&&(r._input[i]=Za.extendFlat({},r[i]||{}),delete r._input[fe],delete r[fe]),[H,p]}function P0e(e,r,t,a,n){var i=e._fullLayout,l=R0e(e,r),o=!1,s=1/0,u=[r],f,c,h;for(f=0;f=0;a--)o(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}tH.exports={calc:E0e,calcAllAutoBins:n5}});var iH=O((C5e,nH)=>{"use strict";var N0e=y0().hoverPoints,F0e=Zr().hoverLabelText;nH.exports=function(r,t,a,n,i){var l=N0e(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=F0e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var oH=O((S5e,lH)=>{"use strict";lH.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var o;if(a._indexToPoints){o=[];for(var s=0;s{"use strict";sH.exports={attributes:r5(),layoutAttributes:jp(),supplyDefaults:EI(),crossTraceDefaults:NI(),supplyLayoutDefaults:Wb(),calc:aH().calc,crossTraceCalc:Af().crossTraceCalc,plot:Of().plot,layerName:"barlayer",style:To().style,styleOnSelect:To().styleOnSelect,colorbar:pp(),hoverPoints:iH(),selectPoints:g0(),eventData:oH(),moduleType:"trace",name:"histogram",basePlotModule:kl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var cH=O((D5e,fH)=>{"use strict";fH.exports=uH()});var hH=O((E5e,vH)=>{"use strict";vH.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var l5=O((P5e,yH)=>{"use strict";var pt=Dl(),i5=Mi().line,I0e=sn(),dH=bi().axisHoverFormat,{hovertemplateAttrs:H0e,texttemplateAttrs:B0e,templatefallbackAttrs:pH}=_n(),mH=hH(),El=yt().extendFlat,O0e=br();yH.exports={x:pt.x,x0:pt.x0,dx:pt.dx,y:pt.y,y0:pt.y0,dy:pt.dy,xperiod:pt.xperiod,yperiod:pt.yperiod,xperiod0:pt.xperiod0,yperiod0:pt.yperiod0,xperiodalignment:pt.xperiodalignment,yperiodalignment:pt.yperiodalignment,xhoverformat:dH("x"),yhoverformat:dH("y"),hovertext:pt.hovertext,hovertemplate:H0e({},{keys:mH.eventDataKeys}),hovertemplatefallback:pH(),hoverinfo:El({},I0e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:B0e({editType:"plot"},{keys:mH.eventDataKeys.concat(["label","value"])}),texttemplatefallback:pH({editType:"plot"}),text:pt.text,textposition:pt.textposition,insidetextanchor:El({},pt.insidetextanchor,{dflt:"middle"}),textangle:El({},pt.textangle,{dflt:0}),textfont:pt.textfont,insidetextfont:pt.insidetextfont,outsidetextfont:pt.outsidetextfont,constraintext:pt.constraintext,cliponaxis:pt.cliponaxis,orientation:El({},pt.orientation,{}),offset:El({},pt.offset,{arrayOk:!1}),width:El({},pt.width,{arrayOk:!1}),marker:Y0e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:El({},i5.color,{dflt:O0e.defaultLine}),width:El({},i5.width,{dflt:0,editType:"plot"}),dash:i5.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:pt.offsetgroup,alignmentgroup:pt.alignmentgroup,zorder:pt.zorder};function Y0e(){var e=El({},pt.marker);return delete e.pattern,delete e.cornerradius,e}});var o5=O((R5e,gH)=>{"use strict";gH.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var u5=O((z5e,bH)=>{"use strict";var um=ze(),V0e=_f(),G0e=il().handleText,U0e=Wv(),X0e=Ps(),xH=l5(),s5=br();function W0e(e,r,t,a){function n(c,h){return um.coerce(e,r,xH,c,h)}var i=U0e(e,r,a,n);if(!i){r.visible=!1;return}X0e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");G0e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",um.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",s5.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",Z0e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function Z0e(e){var r=um.isArrayOrTypedArray(e)?"#000":e;return s5.addOpacity(r,.5*s5.opacity(r))}function J0e(e,r){var t,a;function n(l){return um.coerce(a._input,a,xH,l)}for(var i=0;i{"use strict";var $0e=ze(),K0e=o5();_H.exports=function(e,r,t){var a=!1;function n(o,s){return $0e.coerce(e,r,K0e,o,s)}for(var i=0;i{"use strict";var Gf=ze();TH.exports=function(r,t){for(var a=0;a{"use strict";var MH=Zr(),kH=Rs(),Q0e=AH(),j0e=Zv(),_0=Tt().BADNUM;qH.exports=function(r,t){var a=MH.getFromId(r,t.xaxis||"x"),n=MH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,h;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=kH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=kH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var d=Math.min(l.length,i.length),p=new Array(d);for(t._base=[],c=0;c{"use strict";var SH=Af().setGroupPositions;LH.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var fm=kr(),ko=ze(),EH=Yr(),Mo=Tt().BADNUM,ehe=Of(),rhe=Ni().clearMinTextSize;RH.exports=function(r,t,a,n){var i=r._fullLayout;rhe("funnel",i),the(r,t,a,n),ahe(r,t,a,n),ehe.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function the(e,r,t,a){var n=r.xaxis,i=r.yaxis;ko.makeTraceGroups(a,t,"trace bars").each(function(l){var o=fm.select(this),s=l[0].trace,u=ko.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(ko.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var m=PH(d,n,i,f),y=m[0],b=m[1],_="";y[0]!==Mo&&b[0]!==Mo&&y[1]!==Mo&&b[1]!==Mo&&y[2]!==Mo&&b[2]!==Mo&&y[3]!==Mo&&b[3]!==Mo&&(f?_+="M"+y[0]+","+b[1]+"L"+y[2]+","+b[2]+"H"+y[3]+"L"+y[1]+","+b[1]+"Z":_+="M"+y[1]+","+b[1]+"L"+y[2]+","+b[3]+"V"+b[2]+"L"+y[1]+","+b[0]+"Z"),_===""&&(_="M0,0Z"),ko.ensureSingle(fm.select(this),"path").attr("d",_).call(EH.setClipUrl,r.layerClipId,e)}})})}function ahe(e,r,t,a){var n=r.xaxis,i=r.yaxis;ko.makeTraceGroups(a,t,"trace bars").each(function(l){var o=fm.select(this),s=l[0].trace,u=ko.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(ko.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var m=PH(d,n,i,f),y=m[0],b=m[1],_="";y[3]!==void 0&&b[3]!==void 0&&(f?(_+="M"+y[0]+","+b[1]+"L"+y[2]+","+b[2],_+="M"+y[1]+","+b[1]+"L"+y[3]+","+b[2]):(_+="M"+y[1]+","+b[1]+"L"+y[2]+","+b[3],_+="M"+y[1]+","+b[0]+"L"+y[2]+","+b[2])),_===""&&(_="M0,0Z"),ko.ensureSingle(fm.select(this),"path").attr("d",_).call(EH.setClipUrl,r.layerClipId,e)}})})}function PH(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var IH=O((O5e,FH)=>{"use strict";var w0=kr(),NH=Yr(),c5=br(),nhe=qu().DESELECTDIM,ihe=To(),lhe=Ni().resizeText,ohe=ihe.styleTextPoints;function she(e,r,t){var a=t||w0.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");lhe(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=w0.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;w0.select(this).call(c5.fill,o.mc||s.color).call(c5.stroke,o.mlc||s.line.color).call(NH.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?nhe:1)}}),ohe(i,l,e),i.selectAll(".regions").each(function(){w0.select(this).selectAll("path").style("stroke-width",0).call(c5.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;NH.lineGroupStyle(w0.select(this).selectAll("path"),o.width,o.color,o.dash)})})}FH.exports={style:she}});var OH=O((Y5e,BH)=>{"use strict";var HH=br().opacity,uhe=y0().hoverOnBars,v5=ze().formatPercent;BH.exports=function(r,t,a,n,i){var l=uhe(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],h=u?"x":"y";l[h+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=v5(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=v5(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=v5(c.sumR,1);var d=c.hi||s.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var m=d==="all",y=d.split("+"),b=function(_){return m||y.indexOf(_)!==-1};b("percent initial")&&p.push(l.percentInitialLabel+" of initial"),b("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),b("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("
"),l.color=fhe(s,c),[l]}};function fhe(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(HH(a))return a;if(HH(n)&&i)return n}});var VH=O((V5e,YH)=>{"use strict";YH.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var UH=O((G5e,GH)=>{"use strict";GH.exports={attributes:l5(),layoutAttributes:o5(),supplyDefaults:u5().supplyDefaults,crossTraceDefaults:u5().crossTraceDefaults,supplyLayoutDefaults:wH(),calc:CH(),crossTraceCalc:DH(),plot:zH(),style:IH().style,hoverPoints:OH(),eventData:VH(),selectPoints:g0(),moduleType:"trace",name:"funnel",basePlotModule:kl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var WH=O((U5e,XH)=>{"use strict";XH.exports=UH()});var JH=O((X5e,ZH)=>{"use strict";ZH.exports={eventDataKeys:["initial","delta","final"]}});var p5=O((W5e,jH)=>{"use strict";var ut=Dl(),h5=Mi().line,che=sn(),$H=bi().axisHoverFormat,{hovertemplateAttrs:vhe,texttemplateAttrs:hhe,templatefallbackAttrs:KH}=_n(),QH=JH(),Uf=yt().extendFlat,dhe=br();function d5(e){return{marker:{color:Uf({},ut.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Uf({},ut.marker.line.color,{arrayOk:!1,editType:"style"}),width:Uf({},ut.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}jH.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:ut.x,x0:ut.x0,dx:ut.dx,y:ut.y,y0:ut.y0,dy:ut.dy,xperiod:ut.xperiod,yperiod:ut.yperiod,xperiod0:ut.xperiod0,yperiod0:ut.yperiod0,xperiodalignment:ut.xperiodalignment,yperiodalignment:ut.yperiodalignment,xhoverformat:$H("x"),yhoverformat:$H("y"),hovertext:ut.hovertext,hovertemplate:vhe({},{keys:QH.eventDataKeys}),hovertemplatefallback:KH(),hoverinfo:Uf({},che.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:hhe({editType:"plot"},{keys:QH.eventDataKeys.concat(["label"])}),texttemplatefallback:KH({editType:"plot"}),text:ut.text,textposition:ut.textposition,insidetextanchor:ut.insidetextanchor,textangle:ut.textangle,textfont:ut.textfont,insidetextfont:ut.insidetextfont,outsidetextfont:ut.outsidetextfont,constraintext:ut.constraintext,cliponaxis:ut.cliponaxis,orientation:ut.orientation,offset:ut.offset,width:ut.width,increasing:d5("increasing"),decreasing:d5("decreasing"),totals:d5("intermediate sums and total"),connector:{line:{color:Uf({},h5.color,{dflt:dhe.defaultLine}),width:Uf({},h5.width,{editType:"plot"}),dash:h5.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:ut.offsetgroup,alignmentgroup:ut.alignmentgroup,zorder:ut.zorder}});var m5=O((Z5e,eB)=>{"use strict";eB.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var Xf=O((J5e,rB)=>{"use strict";rB.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var g5=O(($5e,iB)=>{"use strict";var tB=ze(),phe=_f(),mhe=il().handleText,yhe=Wv(),ghe=Ps(),aB=p5(),xhe=br(),nB=Xf(),bhe=nB.INCREASING.COLOR,_he=nB.DECREASING.COLOR,whe="#4499FF";function y5(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",xhe.defaultLine),e(r+".marker.line.width")}function The(e,r,t,a){function n(u,f){return tB.coerce(e,r,aB,u,f)}var i=yhe(e,r,a,n);if(!i){r.visible=!1;return}ghe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");mhe(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),r.texttemplate||n("textinfo")),y5(n,"increasing",bhe),y5(n,"decreasing",_he),y5(n,"totals",whe);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function Ahe(e,r){var t,a;function n(l){return tB.coerce(a._input,a,aB,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var Mhe=ze(),khe=m5();lB.exports=function(e,r,t){var a=!1;function n(o,s){return Mhe.coerce(e,r,khe,o,s)}for(var i=0;i{"use strict";var sB=Zr(),uB=Rs(),fB=ze().mergeArray,qhe=Zv(),cB=Tt().BADNUM;function x5(e){return e==="a"||e==="absolute"}function b5(e){return e==="t"||e==="total"}vB.exports=function(r,t){var a=sB.getFromId(r,t.xaxis||"x"),n=sB.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=uB(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=uB(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),h=new Array(c),d=0,p,m=!1,y=0;y{"use strict";var dB=Af().setGroupPositions;pB.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var yB=kr(),cm=ze(),Che=Yr(),Wf=Tt().BADNUM,She=Of(),Lhe=Ni().clearMinTextSize;gB.exports=function(r,t,a,n){var i=r._fullLayout;Lhe("waterfall",i),She.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),Dhe(r,t,a,n)};function Dhe(e,r,t,a){var n=r.xaxis,i=r.yaxis;cm.makeTraceGroups(a,t,"trace bars").each(function(l){var o=yB.select(this),s=l[0].trace,u=cm.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,h=u.selectAll("g.line").data(cm.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,m){if(!(m!==d-1&&!p.cNext)){var y=Ehe(p,n,i,f),b=y[0],_=y[1],w="";b[0]!==Wf&&_[0]!==Wf&&b[1]!==Wf&&_[1]!==Wf&&(c==="spanning"&&!p.isSum&&m>0&&(f?w+="M"+b[0]+","+_[1]+"V"+_[0]:w+="M"+b[1]+","+_[0]+"H"+b[0]),c!=="between"&&(p.isSum||m{"use strict";var vm=kr(),bB=Yr(),_B=br(),Phe=qu().DESELECTDIM,Rhe=To(),zhe=Ni().resizeText,Nhe=Rhe.styleTextPoints;function Fhe(e,r,t){var a=t||vm.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");zhe(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=vm.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;vm.select(this).call(_B.fill,s.color).call(_B.stroke,s.line.color).call(bB.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?Phe:1)}}),Nhe(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;bB.lineGroupStyle(vm.select(this).selectAll("path"),o.width,o.color,o.dash)})})}wB.exports={style:Fhe}});var CB=O((t_e,qB)=>{"use strict";var Ihe=Zr().hoverLabelText,AB=br().opacity,Hhe=y0().hoverOnBars,MB=Xf(),kB={increasing:MB.INCREASING.SYMBOL,decreasing:MB.DECREASING.SYMBOL};qB.exports=function(r,t,a,n,i){var l=Hhe(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function h(k){return Ihe(c,k,s[f+"hoverformat"])}var d=l.index,p=o[d],m=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-m,l.delta=m,l.final=l.initial+l.delta;var y=h(Math.abs(l.delta));l.deltaLabel=m<0?"("+y+")":y,l.finalLabel=h(l.final),l.initialLabel=h(l.initial);var b=p.hi||s.hoverinfo,_=[];if(b&&b!=="none"&&b!=="skip"){var w=b==="all",x=b.split("+"),A=function(k){return w||x.indexOf(k)!==-1};p.isSum||(A("final")&&(u?!A("x"):!A("y"))&&_.push(l.finalLabel),A("delta")&&(m<0?_.push(l.deltaLabel+" "+kB.decreasing):_.push(l.deltaLabel+" "+kB.increasing)),A("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=Bhe(s,p),[l]};function Bhe(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(AB(a))return a;if(AB(n)&&i)return n}});var LB=O((a_e,SB)=>{"use strict";SB.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var EB=O((n_e,DB)=>{"use strict";DB.exports={attributes:p5(),layoutAttributes:m5(),supplyDefaults:g5().supplyDefaults,crossTraceDefaults:g5().crossTraceDefaults,supplyLayoutDefaults:oB(),calc:hB(),crossTraceCalc:mB(),plot:xB(),style:TB().style,hoverPoints:CB(),eventData:LB(),selectPoints:g0(),moduleType:"trace",name:"waterfall",basePlotModule:kl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var RB=O((i_e,PB)=>{"use strict";PB.exports=EB()});var pm=O((l_e,NB)=>{"use strict";var hm=sn(),Ohe=bo().attributes,Yhe=ra(),Vhe=Hn(),{hovertemplateAttrs:Ghe,texttemplateAttrs:Uhe,templatefallbackAttrs:zB}=_n(),qo=yt().extendFlat,Xhe=mi().pattern,dm=Yhe({editType:"plot",arrayOk:!0,colorEditType:"plot"});NB.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Vhe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Xhe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:qo({},hm.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Ghe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:zB(),texttemplate:Uhe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:zB({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:qo({},dm,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:qo({},dm,{}),outsidetextfont:qo({},dm,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:qo({},hm.showlegend,{arrayOk:!0}),legend:qo({},hm.legend,{arrayOk:!0}),legendrank:qo({},hm.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:qo({},dm,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Ohe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var mm=O((o_e,HB)=>{"use strict";var Whe=zr(),T0=ze(),Zhe=pm(),Jhe=bo().defaults,$he=il().handleText,Khe=ze().coercePattern;function FB(e,r){var t=T0.isArrayOrTypedArray(e),a=T0.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function IB(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");Khe(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function Qhe(e,r,t,a){function n(_,w){return T0.coerce(e,r,Zhe,_,w)}var i=n("labels"),l=n("values"),o=FB(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,IB(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",T0.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var h=n("textposition");$he(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");Jhe(r,a,n);var m=n("hole"),y=n("title.text");if(y){var b=n("title.position",m?"middle center":"top center");!m&&b==="middle center"&&(r.title.position="top center"),T0.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}HB.exports={handleLabelsAndValues:FB,handleMarkerDefaults:IB,supplyDefaults:Qhe}});var ym=O((s_e,BB)=>{"use strict";BB.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var YB=O((u_e,OB)=>{"use strict";var jhe=ze(),ede=ym();OB.exports=function(r,t){function a(n,i){return jhe.coerce(r,t,ede,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var gm=O((f_e,UB)=>{"use strict";var rde=zr(),_5=In(),tde=br(),ade={};function nde(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var x=r.type==="funnelarea"?m:r.sort;return x&&t.sort(function(A,k){return k.v-A.v}),t[0]&&(t[0].vTotal=p),t}function VB(e){return function(t,a){return!t||(t=_5(t),!t.isValid())?!1:(t=tde.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function ide(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=GB(i,ade));for(var o=0,s=0;s{"use strict";var lde=Yi().appendArrayMultiPointValues;XB.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),lde(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var A5=O((v_e,dO)=>{"use strict";var xn=kr(),ode=Et(),xm=Wn(),jB=br(),Pl=Yr(),Sa=ze(),sde=Sa.strScale,ZB=Sa.strTranslate,w5=na(),eO=Ni(),ude=eO.recordMinTextSize,fde=eO.clearMinTextSize,rO=$v().TEXTPAD,Tr=fv(),bm=WB(),JB=ze().isValidTextValue;function cde(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;fde("pie",a),nO(r,e),cO(r,n);var i=Sa.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=xn.select(this),s=l[0],u=s.trace;bde(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=xn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(x,A){if(x.hidden){xn.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,M=s.cy,S=xn.select(this),D=S.selectAll("path.surface").data([x]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(tO,e,l),u.pull){var E=+Tr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],M+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=M;function R(G,B,J,X){var j=X*(B[0]-G[0]),le=X*(B[1]-G[1]);return"a"+X*s.r+","+X*s.r+" 0 "+x.largeArc+(J?" 1 ":" 0 ")+j+","+le}var N=u.hole;if(x.v===s.vTotal){var H="M"+(k+x.px0[0])+","+(M+x.px0[1])+R(x.px0,x.pxmid,!0,1)+R(x.pxmid,x.px0,!0,1)+"Z";N?D.attr("d","M"+(k+N*x.px0[0])+","+(M+N*x.px0[1])+R(x.px0,x.pxmid,!1,N)+R(x.pxmid,x.px0,!1,N)+"Z"+H):D.attr("d",H)}else{var I=R(x.px0,x.px1,!0,1);if(N){var Y=1-N;D.attr("d","M"+(k+N*x.px1[0])+","+(M+N*x.px1[1])+R(x.px1,x.px0,!1,N)+"l"+Y*x.px0[0]+","+Y*x.px0[1]+I+"Z")}else D.attr("d","M"+k+","+M+"l"+x.px0[0]+","+x.px0[1]+I+"Z")}vO(e,x,s);var U=Tr.castOption(u.textposition,x.pts),V=S.selectAll("g.slicetext").data(x.text&&U!=="none"?[0]:[]);V.enter().append("g").classed("slicetext",!0),V.exit().remove(),V.each(function(){var G=Sa.ensureSingle(xn.select(this),"text","",function(ee){ee.attr("data-notex",1)}),B=Sa.ensureUniformFontSize(e,U==="outside"?hde(u,x,a.font):aO(u,x,a.font));G.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Pl.font,B).call(w5.convertToTspans,e);var J=Pl.bBox(G.node()),X;if(U==="outside")X=QB(J,x);else if(X=iO(J,x,s),U==="auto"&&X.scale<1){var j=Sa.ensureUniformFontSize(e,u.outsidetextfont);G.call(Pl.font,j),J=Pl.bBox(G.node()),X=QB(J,x)}var le=X.textPosAngle,fe=le===void 0?x.pxmid:_m(s.r,le);if(X.targetX=k+fe[0]*X.rCenter+(X.x||0),X.targetY=M+fe[1]*X.rCenter+(X.y||0),hO(X,J),X.outside){var ve=X.targetY;x.yLabelMin=ve-J.height/2,x.yLabelMid=ve,x.yLabelMax=ve+J.height/2,x.labelExtraX=0,x.labelExtraY=0,h=!0}X.fontSize=B.size,ude(u.type,X,a),l[A].transform=X,Sa.setTransormAndDisplay(G,X)})});var d=xn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var x=Sa.ensureSingle(xn.select(this),"text","",function(M){M.attr("data-notex",1)}),A=u.title.text;u._meta&&(A=Sa.templateString(A,u._meta)),x.text(A).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Pl.font,u.title.font).call(w5.convertToTspans,e);var k;u.title.position==="middle center"?k=mde(s):k=uO(s,n),x.attr("transform",ZB(k.x,k.y)+sde(Math.min(1,k.scale))+ZB(k.tx,k.ty))}),h&&gde(c,u),vde(f,u),h&&u.automargin){var p=Pl.bBox(o.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),b=n.h*(m.y[1]-m.y[0]),_=(.5*y-s.r)/n.w,w=(.5*b-s.r)/n.h;ode.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-_,xr:m.x[1]+_,yb:m.y[0]-w,yt:m.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=xn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function vde(e,r){e.each(function(t){var a=xn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Sa.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Sa.ensureSingle(a,"path","textline").call(jB.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function tO(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=xm.castHoverinfo({hoverinfo:[Tr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),p=i+s.pxmid[1]*(1-h),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Tr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;Sa.isValidTextValue(b)&&y.push(b)}s.value=s.v,s.valueLabel=Tr.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Tr.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var _=f.hoverlabel,w=_.font,x=[];xm.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:p,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:p-h*a.r,_y1:o?i+s.BL[1]:p+h*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Tr.castOption(_.bgcolor,s.pts)||s.color,borderColor:Tr.castOption(_.bordercolor,s.pts),fontFamily:Tr.castOption(w.family,s.pts),fontSize:Tr.castOption(w.size,s.pts),fontColor:Tr.castOption(w.color,s.pts),nameLength:Tr.castOption(_.namelength,s.pts),textAlign:Tr.castOption(_.align,s.pts),hovertemplate:Tr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[bm(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[bm(s,f)],event:xn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=xn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=xn.event,r.emit("plotly_unhover",{points:[bm(c,f)],event:xn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(xm.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[bm(s,f)],xm.click(r,xn.event))})}function hde(e,r,t){var a=Tr.castOption(e.outsidetextfont.color,r.pts)||Tr.castOption(e.textfont.color,r.pts)||t.color,n=Tr.castOption(e.outsidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.outsidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.outsidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.outsidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.outsidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.outsidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.outsidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.outsidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function aO(e,r,t){var a=Tr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Tr.castOption(e._input.textfont.color,r.pts));var n=Tr.castOption(e.insidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.insidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.insidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.insidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.insidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.insidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.insidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.insidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||jB.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function nO(e,r){for(var t,a,n=0;n=-4;_-=2)b(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)b(Math.PI*(_+1),"tan")}if(c||d){for(_=4;_>=-4;_-=2)b(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)b(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/w,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||d)&&(y=$B(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||h)&&(y=KB(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var x=0,A=0,k=0;k=1)break}return m[x]}function dde(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function mde(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function uO(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=fO(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=yde(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=T5(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function yde(e,r){return e/(r===void 0?1:r)}function T5(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function fO(e){var r=e.pull;if(!r)return 0;var t;if(Sa.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function gde(e,r){var t,a,n,i,l,o,s,u,f,c,h,d,p;function m(w,x){return w.pxmid[1]-x.pxmid[1]}function y(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var A=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,M=a?w.yLabelMax:w.yLabelMin,S=w.cyFinal+l(w.px0[1],w.px1[1]),D=A-k,E,R,N,H,I,Y;if(D*s>0&&(w.labelExtraY=D),!!Sa.isArrayOrTypedArray(r.pull))for(R=0;R=(Tr.castOption(r.pull,N.pts)||0))&&((w.pxmid[1]-N.pxmid[1])*s>0?(H=N.cyFinal+l(N.px0[1],N.px1[1]),D=H-k-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(M+w.labelExtraY-S)*s>0&&(E=3*o*Math.abs(R-c.indexOf(w)),I=N.cxFinal+i(N.px0[0],N.px1[0]),Y=I+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,Y*o>0&&(w.labelExtraX+=Y)))}for(a=0;a<2;a++)for(n=a?m:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=pde(u,r))}function _m(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function vO(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(x){return o.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),h=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var m=Tr.getFirstFilled(n.text,r.pts);JB(m)&&p.push(m)}c&&p.push(Tr.formatPieValue(r.v,d)),h&&p.push(Tr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function y(x){return{label:x.label,value:x.v,valueLabel:Tr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Tr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:Sa.castOption(n,x.i,"customdata")}}if(i){var b=Sa.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var _=y(r),w=Tr.getFirstFilled(n.text,r.pts);(JB(w)||w==="")&&(_.text=w),r.text=Sa.texttemplateString({data:[_,n._meta],fallback:n.texttemplatefallback,labels:_,locale:e._fullLayout._d3locale,template:b})}}}function hO(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}dO.exports={plot:cde,formatSliceLabel:vO,transformInsideText:iO,determineInsideTextFont:aO,positionTitleOutside:uO,prerenderTitles:nO,layoutAreas:cO,attachFxHandlers:tO,computeTransform:hO}});var yO=O((h_e,mO)=>{"use strict";var pO=kr(),_de=af(),wde=Ni().resizeText;mO.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");wde(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=pO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){pO.select(this).call(_de,o,i,r)})})}});var xO=O(Zf=>{"use strict";var gO=Et();Zf.name="pie";Zf.plot=function(e,r,t,a){gO.plotBasePlot(Zf.name,e,r,t,a)};Zf.clean=function(e,r,t,a){gO.cleanBasePlot(Zf.name,e,r,t,a)}});var _O=O((p_e,bO)=>{"use strict";bO.exports={attributes:pm(),supplyDefaults:mm().supplyDefaults,supplyLayoutDefaults:YB(),layoutAttributes:ym(),calc:gm().calc,crossTraceCalc:gm().crossTraceCalc,plot:A5().plot,style:yO(),styleOne:af(),moduleType:"trace",name:"pie",basePlotModule:xO(),categories:["pie-like","pie","showLegend"],meta:{}}});var TO=O((m_e,wO)=>{"use strict";wO.exports=_O()});var MO=O(Jf=>{"use strict";var AO=Et();Jf.name="funnelarea";Jf.plot=function(e,r,t,a){AO.plotBasePlot(Jf.name,e,r,t,a)};Jf.clean=function(e,r,t,a){AO.cleanBasePlot(Jf.name,e,r,t,a)}});var M5=O((g_e,qO)=>{"use strict";var La=pm(),Tde=sn(),Ade=bo().attributes,{hovertemplateAttrs:Mde,texttemplateAttrs:kde,templatefallbackAttrs:kO}=_n(),Ws=yt().extendFlat;qO.exports={labels:La.labels,label0:La.label0,dlabel:La.dlabel,values:La.values,marker:{colors:La.marker.colors,line:{color:Ws({},La.marker.line.color,{dflt:null}),width:Ws({},La.marker.line.width,{dflt:1}),editType:"calc"},pattern:La.marker.pattern,editType:"calc"},text:La.text,hovertext:La.hovertext,scalegroup:Ws({},La.scalegroup,{}),textinfo:Ws({},La.textinfo,{flags:["label","text","value","percent"]}),texttemplate:kde({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:kO({editType:"plot"}),hoverinfo:Ws({},Tde.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Mde({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:kO(),textposition:Ws({},La.textposition,{values:["inside","none"],dflt:"inside"}),textfont:La.textfont,insidetextfont:La.insidetextfont,title:{text:La.title.text,font:La.title.font,position:Ws({},La.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Ade({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var k5=O((x_e,CO)=>{"use strict";var qde=ym().hiddenlabels;CO.exports={hiddenlabels:qde,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var DO=O((b_e,LO)=>{"use strict";var SO=ze(),Cde=M5(),Sde=bo().defaults,Lde=il().handleText,Dde=mm().handleLabelsAndValues,Ede=mm().handleMarkerDefaults;LO.exports=function(r,t,a,n){function i(m,y){return SO.coerce(r,t,Cde,m,y)}var l=i("labels"),o=i("values"),s=Dde(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,Ede(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate");i("texttemplatefallback");var h;if(c||(h=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||h&&h!=="none"){var d=i("textposition");Lde(r,t,n,i,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&i("textposition","none");Sde(t,n,i);var p=i("title.text");p&&(i("title.position"),SO.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var PO=O((__e,EO)=>{"use strict";var Pde=ze(),Rde=k5();EO.exports=function(r,t){function a(n,i){return Pde.coerce(r,t,Rde,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var q5=O((w_e,zO)=>{"use strict";var RO=gm();function zde(e,r){return RO.calc(e,r)}function Nde(e){RO.crossTraceCalc(e,{type:"funnelarea"})}zO.exports={calc:zde,crossTraceCalc:Nde}});var BO=O((T_e,HO)=>{"use strict";var Zs=kr(),C5=Yr(),Co=ze(),Fde=Co.strScale,NO=Co.strTranslate,FO=na(),Ide=Of(),Hde=Ide.toMoveInsideBar,IO=Ni(),Bde=IO.recordMinTextSize,Ode=IO.clearMinTextSize,Yde=fv(),$f=A5(),Vde=$f.attachFxHandlers,Gde=$f.determineInsideTextFont,Ude=$f.layoutAreas,Xde=$f.prerenderTitles,Wde=$f.positionTitleOutside,Zde=$f.formatSliceLabel;HO.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;Ode("funnelarea",n),Xde(t,r),Ude(t,n._size),Co.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Zs.select(this),o=i[0],s=o.trace;$de(i),l.each(function(){var u=Zs.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,h){if(c.hidden){Zs.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var d=o.cx,p=o.cy,m=Zs.select(this),y=m.selectAll("path.surface").data([c]);y.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),m.call(Vde,r,i);var b="M"+(d+c.TR[0])+","+(p+c.TR[1])+S5(c.TR,c.BR)+S5(c.BR,c.BL)+S5(c.BL,c.TL)+"Z";y.attr("d",b),Zde(r,c,o);var _=Yde.castOption(s.textposition,c.pts),w=m.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var x=Co.ensureSingle(Zs.select(this),"text","",function(N){N.attr("data-notex",1)}),A=Co.ensureUniformFontSize(r,Gde(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(C5.font,A).call(FO.convertToTspans,r);var k=C5.bBox(x.node()),M,S,D,E=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+d,D=Math.min(c.TR[0],c.BR[0])+d,M=Hde(S,D,E,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),M.fontSize=A.size,Bde(s.type,M,n),i[h].transform=M,Co.setTransormAndDisplay(x,M)})});var f=Zs.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=Co.ensureSingle(Zs.select(this),"text","",function(p){p.attr("data-notex",1)}),h=s.title.text;s._meta&&(h=Co.templateString(h,s._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(C5.font,s.title.font).call(FO.convertToTspans,r);var d=Wde(o,n._size);c.attr("transform",NO(d.x,d.y)+Fde(Math.min(1,d.scale))+NO(d.tx,d.ty))})})})};function S5(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function Jde(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function $de(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var H=Math.sqrt(u);return{x:H,y:-H}}function c(){var H=f();return[H.x,H.y]}var h,d=[];d.push(c());var p,m;for(p=e.length-1;p>-1;p--)if(m=e[p],!m.hidden){var y=m.v/s;u+=y,d.push(c())}var b=1/0,_=-1/0;for(p=0;p-1;p--)if(m=e[p],!m.hidden){E+=1;var R=d[E][0],N=d[E][1];m.TL=[-R,N],m.TR=[R,N],m.BL=S,m.BR=D,m.pxmid=Jde(m.TR,m.BR),S=m.TL,D=m.TR}}});var VO=O((A_e,YO)=>{"use strict";var OO=kr(),Kde=af(),Qde=Ni().resizeText;YO.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");Qde(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=OO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){OO.select(this).call(Kde,o,i,r)})})}});var UO=O((M_e,GO)=>{"use strict";GO.exports={moduleType:"trace",name:"funnelarea",basePlotModule:MO(),categories:["pie-like","funnelarea","showLegend"],attributes:M5(),layoutAttributes:k5(),supplyDefaults:DO(),supplyLayoutDefaults:PO(),calc:q5().calc,crossTraceCalc:q5().crossTraceCalc,plot:BO(),style:VO(),styleOne:af(),meta:{}}});var WO=O((k_e,XO)=>{"use strict";XO.exports=UO()});var JO=O(Kf=>{"use strict";var ZO=Et();Kf.name="indicator";Kf.plot=function(e,r,t,a){ZO.plotBasePlot(Kf.name,e,r,t,a)};Kf.clean=function(e,r,t,a){ZO.cleanBasePlot(Kf.name,e,r,t,a)}});var D5=O((C_e,rY)=>{"use strict";var So=yt().extendFlat,KO=yt().extendDeep,jde=pi().overrideAll,QO=ra(),jO=Hn(),e1e=bo().attributes,Dt=An(),r1e=ot().templatedArray,wm=Xf(),$O=bi().descriptionOnlyNumbers,L5=QO({editType:"plot",colorEditType:"plot"}),A0={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:jO.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},eY={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},t1e=r1e("step",KO({},A0,{range:eY}));rY.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:e1e({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:So({},L5,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:$O("value")},font:So({},L5,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:$O("value")},increasing:{symbol:{valType:"string",dflt:wm.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:wm.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:wm.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:wm.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:So({},L5,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:KO({},A0,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:jO.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:jde({range:eY,visible:So({},Dt.visible,{dflt:!0}),tickmode:Dt.minor.tickmode,nticks:Dt.nticks,tick0:Dt.tick0,dtick:Dt.dtick,tickvals:Dt.tickvals,ticktext:Dt.ticktext,ticks:So({},Dt.ticks,{dflt:"outside"}),ticklen:Dt.ticklen,tickwidth:Dt.tickwidth,tickcolor:Dt.tickcolor,ticklabelstep:Dt.ticklabelstep,showticklabels:Dt.showticklabels,labelalias:Dt.labelalias,tickfont:QO({}),tickangle:Dt.tickangle,tickformat:Dt.tickformat,tickformatstops:Dt.tickformatstops,tickprefix:Dt.tickprefix,showtickprefix:Dt.showtickprefix,ticksuffix:Dt.ticksuffix,showticksuffix:Dt.showticksuffix,separatethousands:Dt.separatethousands,exponentformat:Dt.exponentformat,minexponent:Dt.minexponent,showexponent:Dt.showexponent,editType:"plot"},"plot"),steps:t1e,threshold:{line:{color:So({},A0.line.color,{}),width:So({},A0.line.width,{dflt:1}),editType:"plot"},thickness:So({},A0.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var E5=O((S_e,tY)=>{"use strict";tY.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var iY=O((L_e,nY)=>{"use strict";var ol=ze(),Am=D5(),a1e=bo().defaults,aY=ot(),n1e=Vn(),Tm=E5(),i1e=vd(),l1e=hd(),o1e=pd(),s1e=md();function u1e(e,r,t,a){function n(k,M){return ol.coerce(e,r,Am,k,M)}a1e(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=ol.extendFlat({},a.font);s.size=void 0,ol.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=Tm.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=ol.extendFlat({},a.font);f.size=void 0,ol.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||Tm.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=ol.extendFlat({},a.font);c.size=.25*(o||u||Tm.defaultNumberFontSize),ol.coerceFont(n,"title.font",c),n("title.text");var h,d,p,m;function y(k,M){return ol.coerce(h,d,Am.gauge,k,M)}function b(k,M){return ol.coerce(p,m,Am.gauge.axis,k,M)}if(r._hasGauge){h=e.gauge,h||(h={}),d=aY.newContainer(r,"gauge"),y("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),y("bgcolor",a.paper_bgcolor),y("borderwidth"),y("bordercolor"),y("bar.color"),y("bar.line.color"),y("bar.line.width");var x=Tm.valueThickness*(r.gauge.shape==="bullet"?.5:1);y("bar.thickness",x),n1e(h,d,{name:"steps",handleItemDefaults:f1e}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},h&&(p=h.axis||{}),m=aY.newContainer(d,"axis"),b("visible"),r._range=b("range",r._range);var A={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};i1e(p,m,b,"linear"),s1e(p,m,b,"linear",A),o1e(p,m,b,"linear",A),l1e(p,m,b,A)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function f1e(e,r){function t(a,n){return ol.coerce(e,r,Am.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}nY.exports={supplyDefaults:u1e}});var oY=O((D_e,lY)=>{"use strict";function c1e(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}lY.exports={calc:c1e}});function Rl(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function Lo(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var Mm=it(()=>{});function ul(){}function uY(){return this.rgb().formatHex()}function x1e(){return this.rgb().formatHex8()}function b1e(){return mY(this).formatHsl()}function fY(){return this.rgb().formatRgb()}function Eo(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=v1e.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?cY(r):t===3?new fa(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?km(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?km(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=h1e.exec(e))?new fa(r[1],r[2],r[3],1):(r=d1e.exec(e))?new fa(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=p1e.exec(e))?km(r[1],r[2],r[3],r[4]):(r=m1e.exec(e))?km(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=y1e.exec(e))?dY(r[1],r[2]/100,r[3]/100,1):(r=g1e.exec(e))?dY(r[1],r[2]/100,r[3]/100,r[4]):sY.hasOwnProperty(e)?cY(sY[e]):e==="transparent"?new fa(NaN,NaN,NaN,0):null}function cY(e){return new fa(e>>16&255,e>>8&255,e&255,1)}function km(e,r,t,a){return a<=0&&(e=r=t=NaN),new fa(e,r,t,a)}function k0(e){return e instanceof ul||(e=Eo(e)),e?(e=e.rgb(),new fa(e.r,e.g,e.b,e.opacity)):new fa}function jf(e,r,t,a){return arguments.length===1?k0(e):new fa(e,r,t,a==null?1:a)}function fa(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function vY(){return`#${Js(this.r)}${Js(this.g)}${Js(this.b)}`}function _1e(){return`#${Js(this.r)}${Js(this.g)}${Js(this.b)}${Js((isNaN(this.opacity)?1:this.opacity)*255)}`}function hY(){let e=Cm(this.opacity);return`${e===1?"rgb(":"rgba("}${$s(this.r)}, ${$s(this.g)}, ${$s(this.b)}${e===1?")":`, ${e})`}`}function Cm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $s(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Js(e){return e=$s(e),(e<16?"0":"")+e.toString(16)}function dY(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Fi(e,r,t,a)}function mY(e){if(e instanceof Fi)return new Fi(e.h,e.s,e.l,e.opacity);if(e instanceof ul||(e=Eo(e)),!e)return new Fi;if(e instanceof Fi)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t0&&s<1?0:l,new Fi(l,o,s,e.opacity)}function q0(e,r,t,a){return arguments.length===1?mY(e):new Fi(e,r,t,a==null?1:a)}function Fi(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function pY(e){return e=(e||0)%360,e<0?e+360:e}function qm(e){return Math.max(0,Math.min(1,e||0))}function P5(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var Do,Ks,Qf,M0,sl,v1e,h1e,d1e,p1e,m1e,y1e,g1e,sY,Sm=it(()=>{Mm();Do=.7,Ks=1/Do,Qf="\\s*([+-]?\\d+)\\s*",M0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",v1e=/^#([0-9a-f]{3,8})$/,h1e=new RegExp(`^rgb\\(${Qf},${Qf},${Qf}\\)$`),d1e=new RegExp(`^rgb\\(${sl},${sl},${sl}\\)$`),p1e=new RegExp(`^rgba\\(${Qf},${Qf},${Qf},${M0}\\)$`),m1e=new RegExp(`^rgba\\(${sl},${sl},${sl},${M0}\\)$`),y1e=new RegExp(`^hsl\\(${M0},${sl},${sl}\\)$`),g1e=new RegExp(`^hsla\\(${M0},${sl},${sl},${M0}\\)$`),sY={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Rl(ul,Eo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uY,formatHex:uY,formatHex8:x1e,formatHsl:b1e,formatRgb:fY,toString:fY});Rl(fa,jf,Lo(ul,{brighter(e){return e=e==null?Ks:Math.pow(Ks,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Do:Math.pow(Do,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fa($s(this.r),$s(this.g),$s(this.b),Cm(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vY,formatHex:vY,formatHex8:_1e,formatRgb:hY,toString:hY}));Rl(Fi,q0,Lo(ul,{brighter(e){return e=e==null?Ks:Math.pow(Ks,e),new Fi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Do:Math.pow(Do,e),new Fi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new fa(P5(e>=240?e-240:e+120,n,a),P5(e,n,a),P5(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new Fi(pY(this.h),qm(this.s),qm(this.l),Cm(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Cm(this.opacity);return`${e===1?"hsl(":"hsla("}${pY(this.h)}, ${qm(this.s)*100}%, ${qm(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var Lm,Dm,R5=it(()=>{Lm=Math.PI/180,Dm=180/Math.PI});function wY(e){if(e instanceof fl)return new fl(e.l,e.a,e.b,e.opacity);if(e instanceof zl)return TY(e);e instanceof fa||(e=k0(e));var r=I5(e.r),t=I5(e.g),a=I5(e.b),n=z5((.2225045*r+.7168786*t+.0606169*a)/gY),i,l;return r===t&&t===a?i=l=n:(i=z5((.4360747*r+.3850649*t+.1430804*a)/yY),l=z5((.0139322*r+.0971045*t+.7141733*a)/xY)),new fl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function rc(e,r,t,a){return arguments.length===1?wY(e):new fl(e,r,t,a==null?1:a)}function fl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function z5(e){return e>w1e?Math.pow(e,1/3):e/_Y+bY}function N5(e){return e>ec?e*e*e:_Y*(e-bY)}function F5(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function I5(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function T1e(e){if(e instanceof zl)return new zl(e.h,e.c,e.l,e.opacity);if(e instanceof fl||(e=wY(e)),e.a===0&&e.b===0)return new zl(NaN,0{Mm();Sm();R5();Em=18,yY=.96422,gY=1,xY=.82521,bY=4/29,ec=6/29,_Y=3*ec*ec,w1e=ec*ec*ec;Rl(fl,rc,Lo(ul,{brighter(e){return new fl(this.l+Em*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new fl(this.l-Em*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=yY*N5(r),e=gY*N5(e),t=xY*N5(t),new fa(F5(3.1338561*r-1.6168667*e-.4906146*t),F5(-.9787684*r+1.9161415*e+.033454*t),F5(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));Rl(zl,C0,Lo(ul,{brighter(e){return new zl(this.h,this.c,this.l+Em*(e==null?1:e),this.opacity)},darker(e){return new zl(this.h,this.c,this.l-Em*(e==null?1:e),this.opacity)},rgb(){return TY(this).rgb()}}))});function A1e(e){if(e instanceof Qs)return new Qs(e.h,e.s,e.l,e.opacity);e instanceof fa||(e=k0(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(qY*a+MY*r-kY*t)/(qY+MY-kY),i=a-n,l=(S0*(t-n)-B5*i)/Pm,o=Math.sqrt(l*l+i*i)/(S0*n*(1-n)),s=o?Math.atan2(l,i)*Dm-120:NaN;return new Qs(s<0?s+360:s,o,n,e.opacity)}function tc(e,r,t,a){return arguments.length===1?A1e(e):new Qs(e,r,t,a==null?1:a)}function Qs(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var CY,H5,B5,Pm,S0,MY,kY,qY,SY=it(()=>{Mm();Sm();R5();CY=-.14861,H5=1.78277,B5=-.29227,Pm=-.90649,S0=1.97294,MY=S0*Pm,kY=S0*H5,qY=H5*B5-Pm*CY;Rl(Qs,tc,Lo(ul,{brighter(e){return e=e==null?Ks:Math.pow(Ks,e),new Qs(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Do:Math.pow(Do,e),new Qs(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Lm,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new fa(255*(r+t*(CY*a+H5*n)),255*(r+t*(B5*a+Pm*n)),255*(r+t*(S0*a)),this.opacity)}}))});var js=it(()=>{Sm();AY();SY()});function O5(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function Rm(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a{});function Nm(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return O5((t-a/r)*r,n,i,l,o)}}var Y5=it(()=>{zm()});var ac,V5=it(()=>{ac=e=>()=>e});function LY(e,r){return function(t){return e+t*r}}function M1e(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function Po(e,r){var t=r-e;return t?LY(e,t>180||t<-180?t-360*Math.round(t/360):t):ac(isNaN(e)?r:e)}function DY(e){return(e=+e)==1?zt:function(r,t){return t-r?M1e(r,t,e):ac(isNaN(r)?t:r)}}function zt(e,r){var t=r-e;return t?LY(e,t):ac(isNaN(e)?r:e)}var eu=it(()=>{V5()});function EY(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l{js();zm();Y5();eu();L0=function e(r){var t=DY(r);function a(n,i){var l=t((n=jf(n)).r,(i=jf(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=zt(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a}(1);PY=EY(Rm),RY=EY(Nm)});function nc(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n{});function zY(e,r){return(Fm(r)?nc:U5)(e,r)}function U5(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l{D0();Im()});function Hm(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}var W5=it(()=>{});function bn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var E0=it(()=>{});function Bm(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=Ro(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var Z5=it(()=>{D0()});function k1e(e){return function(){return e}}function q1e(e){return function(r){return e(r)+""}}function Om(e,r){var t=$5.lastIndex=J5.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=$5.exec(e))&&(n=J5.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:bn(a,n)})),t=J5.lastIndex;return t{E0();$5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,J5=new RegExp($5.source,"g")});function Ro(e,r){var t=typeof r,a;return r==null||t==="boolean"?ac(r):(t==="number"?bn:t==="string"?(a=Eo(r))?(r=a,L0):Om:r instanceof Eo?L0:r instanceof Date?Hm:Fm(r)?nc:Array.isArray(r)?U5:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Bm:bn)(e,r)}var D0=it(()=>{js();G5();X5();W5();E0();Z5();K5();V5();Im()});function NY(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var FY=it(()=>{});function IY(e,r){var t=Po(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var HY=it(()=>{eu()});function BY(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var OY=it(()=>{});function Q5(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a{YY=180/Math.PI,Ym={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function GY(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Ym:Q5(r.a,r.b,r.c,r.d,r.e,r.f)}function UY(e){return e==null?Ym:(Vm||(Vm=document.createElementNS("http://www.w3.org/2000/svg","g")),Vm.setAttribute("transform",e),(e=Vm.transform.baseVal.consolidate())?(e=e.matrix,Q5(e.a,e.b,e.c,e.d,e.e,e.f)):Ym)}var Vm,XY=it(()=>{VY()});function WY(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,h,d,p){if(u!==c||f!==h){var m=d.push("translate(",null,r,null,t);p.push({i:m-4,x:bn(u,c)},{i:m-2,x:bn(f,h)})}else(c||h)&&d.push("translate("+c+r+h+t)}function l(u,f,c,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:c.push(n(c)+"rotate(",null,a)-2,x:bn(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,h){u!==f?h.push({i:c.push(n(c)+"skewX(",null,a)-2,x:bn(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,h,d,p){if(u!==c||f!==h){var m=d.push(n(d)+"scale(",null,",",null,")");p.push({i:m-4,x:bn(u,c)},{i:m-2,x:bn(f,h)})}else(c!==1||h!==1)&&d.push(n(d)+"scale("+c+","+h+")")}return function(u,f){var c=[],h=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,h),l(u.rotate,f.rotate,c,h),o(u.skewX,f.skewX,c,h),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,h),u=f=null,function(d){for(var p=-1,m=h.length,y;++p{E0();XY();ZY=WY(GY,"px, ","px)","deg)"),JY=WY(UY,", ",")",")")});function KY(e){return((e=Math.exp(e))+1/e)/2}function S1e(e){return((e=Math.exp(e))-1/e)/2}function L1e(e){return((e=Math.exp(2*e))-1)/(e+1)}var C1e,QY,jY=it(()=>{C1e=1e-12;QY=function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],h=l[2],d=f-o,p=c-s,m=d*d+p*p,y,b;if(m{js();eu();rV=eV(Po),tV=eV(zt)});function j5(e,r){var t=zt((e=rc(e)).l,(r=rc(r)).l),a=zt(e.a,r.a),n=zt(e.b,r.b),i=zt(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}var nV=it(()=>{js();eu()});function iV(e){return function(r,t){var a=e((r=C0(r)).h,(t=C0(t)).h),n=zt(r.c,t.c),i=zt(r.l,t.l),l=zt(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var lV,oV,sV=it(()=>{js();eu();lV=iV(Po),oV=iV(zt)});function uV(e){return function r(t){t=+t;function a(n,i){var l=e((n=tc(n)).h,(i=tc(i)).h),o=zt(n.s,i.s),s=zt(n.l,i.l),u=zt(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a}(1)}var fV,cV,vV=it(()=>{js();eu();fV=uV(Po),cV=uV(zt)});function e_(e,r){r===void 0&&(r=e,e=Ro);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{D0()});function dV(e,r){for(var t=new Array(r),a=0;a{});var r_={};xW(r_,{interpolate:()=>Ro,interpolateArray:()=>zY,interpolateBasis:()=>Rm,interpolateBasisClosed:()=>Nm,interpolateCubehelix:()=>fV,interpolateCubehelixLong:()=>cV,interpolateDate:()=>Hm,interpolateDiscrete:()=>NY,interpolateHcl:()=>lV,interpolateHclLong:()=>oV,interpolateHsl:()=>rV,interpolateHslLong:()=>tV,interpolateHue:()=>IY,interpolateLab:()=>j5,interpolateNumber:()=>bn,interpolateNumberArray:()=>nc,interpolateObject:()=>Bm,interpolateRgb:()=>L0,interpolateRgbBasis:()=>PY,interpolateRgbBasisClosed:()=>RY,interpolateRound:()=>BY,interpolateString:()=>Om,interpolateTransformCss:()=>ZY,interpolateTransformSvg:()=>JY,interpolateZoom:()=>QY,piecewise:()=>e_,quantize:()=>dV});var t_=it(()=>{D0();X5();zm();Y5();W5();FY();HY();E0();Im();Z5();OY();K5();$Y();jY();G5();aV();nV();sV();vV();hV();pV()});var _V=O((b6e,bV)=>{"use strict";var iu=kr(),D1e=(t_(),a6(r_)).interpolate,mV=(t_(),a6(r_)).interpolateNumber,zo=ze(),E1e=zo.strScale,R0=zo.strTranslate,P1e=zo.rad2deg,R1e=Ma().MID_SHIFT,nu=Yr(),ru=E5(),Um=na(),Da=Zr(),z1e=xp(),N1e=_p(),F1e=An(),ic=br(),a_={left:"start",center:"middle",right:"end"},tu={left:0,center:.5,right:1},yV=/[yzafpnµmkMGTPEZY]/;function z0(e){return e&&e.duration>0}bV.exports=function(r,t,a,n){var i=r._fullLayout,l;z0(a)&&n&&(l=n()),zo.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=iu.select(this),c=u._hasGauge,h=u._isAngular,d=u._isBullet,p=u.domain,m={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},y=m.l+m.w/2,b=m.t+m.h/2,_=Math.min(m.w/2,m.h),w=ru.innerRadius*_,x,A,k,M=u.align||"center";if(A=b,!c)x=m.l+tu[M]*m.w,k=function(V){return gV(V,m.w,m.h)};else if(h&&(x=y,A=b+_/2,k=function(V){return Y1e(V,.9*w)}),d){var S=ru.bulletPadding,D=1-ru.bulletNumberDomainSize+S;x=m.l+(D+(1-D)*tu[M])*m.w,k=function(V){return gV(V,(ru.bulletNumberDomainSize-S)*m.w,m.h)}}B1e(r,f,o,{numbersX:x,numbersY:A,numbersScaler:k,transitionOpts:a,onComplete:l});var E,R;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var N=f.selectAll("g.angular").data(h?o:[]);N.exit().remove();var H=f.selectAll("g.angularaxis").data(h?o:[]);H.exit().remove(),h&&H1e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:H,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var I=f.selectAll("g.bullet").data(d?o:[]);I.exit().remove();var Y=f.selectAll("g.bulletaxis").data(d?o:[]);Y.exit().remove(),d&&I1e(r,f,o,{gauge:I,layer:Y,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var U=f.selectAll("text.title").data(o);U.exit().remove(),U.enter().append("text").classed("title",!0),U.attr("text-anchor",function(){return d?a_.right:a_[u.title.align]}).text(u.title.text).call(nu.font,u.title.font).call(Um.convertToTspans,r),U.attr("transform",function(){var V=m.l+m.w*tu[u.title.align],G,B=ru.titlePadding,J=nu.bBox(U.node());if(c){if(h)if(u.gauge.axis.visible){var X=nu.bBox(H.node());G=X.top-B-J.bottom}else G=m.t+m.h/2-_/2-J.bottom-B;d&&(G=A-(J.top+J.bottom)/2,V=m.l-ru.bulletPadding*m.w)}else G=u._numbersTop-B-J.bottom;return R0(V,G)})})};function I1e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,h=a.onComplete,d,p,m,y,b;i.enter().append("g").classed("bullet",!0),i.attr("transform",R0(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,x=f.x[0],A=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-ru.bulletNumberDomainSize:1);d=P0(e,n.gauge.axis),d._id="xbulletaxis",d.domain=[x,A],d.setScale(),p=Da.calcTicks(d),m=Da.makeTransTickFn(d),y=Da.getTickSigns(d)[2],b=u.t+u.h,d.visible&&(Da.drawTicks(e,d,{vals:d.ticks==="inside"?Da.clipEnds(d,p):p,layer:l,path:Da.makeTickPath(d,b,y),transFn:m}),Da.drawLabels(e,d,{vals:p,layer:l,transFn:m,labelFns:Da.makeLabelFns(d,b)}));function k(H){H.attr("width",function(I){return Math.max(0,d.c2p(I.range[1])-d.c2p(I.range[0]))}).attr("x",function(I){return d.c2p(I.range[0])}).attr("y",function(I){return .5*(1-I.thickness)*_}).attr("height",function(I){return I.thickness*_})}var M=[o].concat(n.gauge.steps),S=i.selectAll("g.bg-bullet").data(M);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(k).call(au),S.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(au),z0(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var E=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(E);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",d.c2p(n.gauge.threshold.value)).attr("x2",d.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call(ic.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var N=i.selectAll("g.gauge-outline").data([s]);N.enter().append("g").classed("gauge-outline",!0).append("rect"),N.select("rect").call(k).call(au),N.exit().remove()}function H1e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,h=a.layer,d=a.transitionOpts,p=a.onComplete,m=Math.PI/2;function y(j){var le=n.gauge.axis.range[0],fe=n.gauge.axis.range[1],ve=(j-le)/(fe-le)*Math.PI-m;return ve<-m?-m:ve>m?m:ve}function b(j){return iu.svg.arc().innerRadius((o+l)/2-j/2*(l-o)).outerRadius((o+l)/2+j/2*(l-o)).startAngle(-m)}function _(j){j.attr("d",function(le){return b(le.thickness).startAngle(y(le.range[0])).endAngle(y(le.range[1]))()})}var w,x,A,k;c.enter().append("g").classed("angular",!0),c.attr("transform",R0(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),w=P0(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var M=function(j){return(w.range[0]-j.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},S={},D=Da.makeLabelFns(w,0),E=D.labelStandoff;S.xFn=function(j){var le=M(j);return Math.cos(le)*E},S.yFn=function(j){var le=M(j),fe=Math.sin(le)>0?.2:1;return-Math.sin(le)*(E+j.fontSize*fe)+Math.abs(Math.cos(le))*(j.fontSize*R1e)},S.anchorFn=function(j){var le=M(j),fe=Math.cos(le);return Math.abs(fe)<.1?"middle":fe>0?"start":"end"},S.heightFn=function(j,le,fe){var ve=M(j);return-.5*(1+Math.sin(ve))*fe};var R=function(j){return R0(f[0]+l*Math.cos(j),f[1]-l*Math.sin(j))};A=function(j){return R(M(j))};var N=function(j){var le=M(j);return R(le)+"rotate("+-P1e(le)+")"};if(x=Da.calcTicks(w),k=Da.getTickSigns(w)[2],w.visible){k=w.ticks==="inside"?-1:1;var H=(w.linewidth||1)/2;Da.drawTicks(e,w,{vals:x,layer:h,path:"M"+k*H+",0h"+k*w.ticklen,transFn:N}),Da.drawLabels(e,w,{vals:x,layer:h,transFn:A,labelFns:S})}var I=[s].concat(n.gauge.steps),Y=c.selectAll("g.bg-arc").data(I);Y.enter().append("g").classed("bg-arc",!0).append("path"),Y.select("path").call(_).call(au),Y.exit().remove();var U=b(n.gauge.bar.thickness),V=c.selectAll("g.value-arc").data([n.gauge.bar]);V.enter().append("g").classed("value-arc",!0).append("path");var G=V.select("path");z0(d)?(G.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",O1e(U,y(t[0].lastY),y(t[0].y))),n._lastValue=t[0].y):G.attr("d",typeof t[0].y=="number"?U.endAngle(y(t[0].y)):"M0,0Z"),G.call(au),V.exit().remove(),I=[];var B=n.gauge.threshold.value;(B||B===0)&&I.push({range:[B,B],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var J=c.selectAll("g.threshold-arc").data(I);J.enter().append("g").classed("threshold-arc",!0).append("path"),J.select("path").call(_).call(au),J.exit().remove();var X=c.selectAll("g.gauge-outline").data([u]);X.enter().append("g").classed("gauge-outline",!0).append("path"),X.select("path").call(_).call(au),X.exit().remove()}function B1e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=a_[o],u=a.transitionOpts,f=a.onComplete,c=zo.ensureSingle(r,"g","numbers"),h,d,p,m=[];n._hasNumber&&m.push("number"),n._hasDelta&&(m.push("delta"),n.delta.position==="left"&&m.reverse());var y=c.selectAll("text").data(m);y.enter().append("text"),y.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),y.exit().remove();function b(R,N,H,I){if(R.match("s")&&H>=0!=I>=0&&!N(H).slice(-1).match(yV)&&!N(I).slice(-1).match(yV)){var Y=R.slice().replace("s","f").replace(/\d+/,function(V){return parseInt(V)-1}),U=P0(e,{tickformat:Y});return function(V){return Math.abs(V)<1?Da.tickText(U,V).text:N(V)}}else return N}function _(){var R=P0(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(V){return Da.tickText(R,V).text},H=n.number.suffix,I=n.number.prefix,Y=c.select("text.number");function U(){var V=typeof t[0].y=="number"?I+N(t[0].y)+H:"-";Y.text(V).call(nu.font,n.number.font).call(Um.convertToTspans,e)}return z0(u)?Y.transition().duration(u.duration).ease(u.easing).each("end",function(){U(),f&&f()}).each("interrupt",function(){U(),f&&f()}).attrTween("text",function(){var V=iu.select(this),G=mV(t[0].lastY,t[0].y);n._lastValue=t[0].y;var B=b(n.number.valueformat,N,t[0].lastY,t[0].y);return function(J){V.text(I+B(G(J))+H)}}):U(),h=xV(I+N(t[0].y)+H,n.number.font,s,e),Y}function w(){var R=P0(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(J){return Da.tickText(R,J).text},H=n.delta.suffix,I=n.delta.prefix,Y=function(J){var X=n.delta.relative?J.relativeDelta:J.delta;return X},U=function(J,X){return J===0||typeof J!="number"||isNaN(J)?"-":(J>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+I+X(J)+H},V=function(J){return J.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=Y(t[0]));var G=c.select("text.delta");G.call(nu.font,n.delta.font).call(ic.fill,V({delta:n._deltaLastValue}));function B(){G.text(U(Y(t[0]),N)).call(ic.fill,V(t[0])).call(Um.convertToTspans,e)}return z0(u)?G.transition().duration(u.duration).ease(u.easing).tween("text",function(){var J=iu.select(this),X=Y(t[0]),j=n._deltaLastValue,le=b(n.delta.valueformat,N,j,X),fe=mV(j,X);return n._deltaLastValue=X,function(ve){J.text(U(fe(ve),le)),J.call(ic.fill,V({delta:fe(ve)}))}}).each("end",function(){B(),f&&f()}).each("interrupt",function(){B(),f&&f()}):B(),d=xV(U(Y(t[0]),N),n.delta.font,s,e),G}var x=n.mode+n.align,A;if(n._hasDelta&&(A=w(),x+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,x+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=d),n._hasNumber&&(_(),x+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=h),n._hasDelta&&n._hasNumber){var k=[(h.left+h.right)/2,(h.top+h.bottom)/2],M=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,D,E=.75*n.delta.font.size;n.delta.position==="left"&&(S=Gm(n,"deltaPos",0,-1*(h.width*tu[n.align]+d.width*(1-tu[n.align])+E),x,Math.min),D=k[1]-M[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="right"&&(S=Gm(n,"deltaPos",0,h.width*(1-tu[n.align])+d.width*tu[n.align]+E,x,Math.max),D=k[1]-M[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="bottom"&&(S=null,D=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),n.delta.position==="top"&&(S=null,D=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),A.attr({dx:S,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);x+=R[2];var N=Gm(n,"numbersScale",1,R[0],x,Math.min),H;n._scaleNumbers||(N=1),n._isAngular?H=l-N*p.bottom:H=l-N*(p.top+p.bottom)/2,n._numbersTop=N*p.top+H;var I=p[o];o==="center"&&(I=(p.left+p.right)/2);var Y=i-N*I;return Y=Gm(n,"numbersTranslate",0,Y,x,Math.max),R0(Y,H)+E1e(N)})}function au(e){e.each(function(r){ic.stroke(iu.select(this),r.line.color)}).each(function(r){ic.fill(iu.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function O1e(e,r,t){return function(){var a=D1e(r,t);return function(n){return e.endAngle(a(n))()}}}function P0(e,r,t){var a=e._fullLayout,n=zo.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return zo.coerce(n,i,F1e,s,u)}return z1e(n,i,o,l,a),N1e(n,i,o,l),i}function gV(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function Y1e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function xV(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=iu.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(Um.convertToTspans,a).call(nu.font,r),nu.bBox(i.node())}function Gm(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=zo.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var TV=O((_6e,wV)=>{"use strict";wV.exports={moduleType:"trace",name:"indicator",basePlotModule:JO(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:D5(),supplyDefaults:iY().supplyDefaults,calc:oY().calc,plot:_V(),meta:{}}});var MV=O((w6e,AV)=>{"use strict";AV.exports=TV()});var Wm=O((T6e,LV)=>{"use strict";var Xm=ze().extendFlat,N0=Mi(),kV=bi().axisHoverFormat,{hovertemplateAttrs:V1e,templatefallbackAttrs:G1e}=_n(),CV=mi().dash,U1e=Dc(),SV=Xf(),X1e=SV.INCREASING.COLOR,W1e=SV.DECREASING.COLOR,n_=N0.line;function qV(e){return{line:{color:Xm({},n_.color,{dflt:e}),width:n_.width,dash:CV,editType:"style"},editType:"style"}}LV.exports={xperiod:N0.xperiod,xperiod0:N0.xperiod0,xperiodalignment:N0.xperiodalignment,xhoverformat:kV("x"),yhoverformat:kV("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:Xm({},n_.width,{}),dash:Xm({},CV,{}),editType:"style"},increasing:qV(X1e),decreasing:qV(W1e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:V1e({},{keys:["open","high","low","close"]}),hovertemplatefallback:G1e(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Xm({},U1e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:N0.zorder}});var i_=O((A6e,DV)=>{"use strict";var Z1e=gr(),J1e=ze();DV.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=Z1e.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,J1e.minRowLength(i))),t._length=c,c}}});var RV=O((M6e,PV)=>{"use strict";var $1e=ze(),K1e=i_(),Q1e=Ps(),j1e=Wm();PV.exports=function(r,t,a,n){function i(o,s){return $1e.coerce(r,t,j1e,o,s)}var l=K1e(r,t,i,n);if(!l){t.visible=!1;return}Q1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),EV(r,t,i,"increasing"),EV(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function EV(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var l_=O((k6e,NV)=>{"use strict";var lc=ze(),Zm=lc._,Jm=Zr(),epe=Rs(),F0=Tt().BADNUM;function rpe(e,r){var t=Jm.getFromId(e,r.xaxis),a=Jm.getFromId(e,r.yaxis),n=ape(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=zV(e,r,l,o,a,tpe);return r._extremes[t._id]=Jm.findExtremes(t,o,{vpad:i/2}),s.length?(lc.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function tpe(e,r,t,a){return{o:e,h:r,l:t,c:a}}function zV(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=lc.isArrayOrTypedArray(r.text),c=lc.isArrayOrTypedArray(r.hovertext),h=!0,d=null,p=!!r.xperiodalignment,m=[],y=0;yd):h=A>_,d=A;var k=i(_,w,x,A);k.pos=b,k.yc=(_+A)/2,k.i=y,k.dir=h?"increasing":"decreasing",k.x=k.pos,k.y=[x,w],p&&(k.orig_p=t[y]),f&&(k.tx=r.text[y]),c&&(k.htx=r.hovertext[y]),m.push(k)}else m.push({pos:b,empty:!0})}return r._extremes[n._id]=Jm.findExtremes(n,lc.concat(s,o),{padded:!0}),m.length&&(m[0].t={labels:{open:Zm(e,"open:")+" ",high:Zm(e,"high:")+" ",low:Zm(e,"low:")+" ",close:Zm(e,"close:")+" "}}),m}function ape(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l{"use strict";var npe=kr(),FV=ze();IV.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;FV.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=npe.select(this),f=s[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){u.remove();return}var d=c.tickLen,p=u.selectAll("path").data(FV.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(m){if(m.empty)return"M0,0Z";var y=l.c2p(m.pos-d,!0),b=l.c2p(m.pos+d,!0),_=o?(y+b)/2:l.c2p(m.pos,!0),w=i.c2p(m.o,!0),x=i.c2p(m.h,!0),A=i.c2p(m.l,!0),k=i.c2p(m.c,!0);return"M"+y+","+w+"H"+_+"M"+_+","+x+"V"+A+"M"+b+","+k+"H"+_})})}});var OV=O((C6e,BV)=>{"use strict";var o_=kr(),ipe=Yr(),lpe=br();BV.exports=function(r,t,a){var n=a||o_.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;o_.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;o_.select(this).style("fill","none").call(lpe.stroke,s.color).call(ipe.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var u_=O((S6e,XV)=>{"use strict";var s_=Zr(),ope=ze(),$m=Wn(),spe=br(),upe=ze().fillText,YV=Xf(),fpe={increasing:YV.INCREASING.SYMBOL,decreasing:YV.DECREASING.SYMBOL};function cpe(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?GV(e,r,t,a):UV(e,r,t,a)}function VV(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,h,d=o.bPos||0,p=function(E){return E.pos+d-r},m=o.bdPos||o.tickLen,y=o.wHover,b=Math.min(1,m/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-b,h=e.maxSpikeDistance-b;function _(E){var R=p(E);return $m.inbox(R-y,R+y,c)}function w(E){var R=E[u],N=E[f];return R===N||$m.inbox(R-t,N-t,c)}function x(E){return(_(E)+w(E))/2}var A=$m.getDistanceFunction(a,_,w,x);if($m.getClosest(n,A,e),e.index===!1)return null;var k=n[e.index];if(k.empty)return null;var M=k.dir,S=l[M],D=S.line.color;return spe.opacity(D)&&S.line.width?e.color=D:e.color=S.fillcolor,e.x0=i.c2p(k.pos+d-m,!0),e.x1=i.c2p(k.pos+d+m,!0),e.xLabelVal=k.orig_p!==void 0?k.orig_p:k.pos,e.spikeDistance=x(k)*h/c,e.xSpike=i.c2p(k.pos,!0),e}function GV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=VV(e,r,t,a);if(!u)return[];var f=n[u.index],c=f.hi||l.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var h=["high","open","close","low"],d={},p=0;p"+o.labels[m]+s_.hoverLabelText(i,y,l.yhoverformat)):(_=ope.extendFlat({},u),_.y0=_.y1=b,_.yLabelVal=y,_.yLabel=o.labels[m]+s_.hoverLabelText(i,y,l.yhoverformat),_.name="",s.push(_),d[y]=_)}return s}function UV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=VV(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,h=f.dir;function d(x){return o.labels[x]+s_.hoverLabelText(i,l[x][c],l.yhoverformat)}var p=f.hi||l.hoverinfo||"",m=p.split("+"),y=p==="all",b=y||m.indexOf("y")!==-1,_=y||m.indexOf("text")!==-1,w=b?[d("open"),d("high"),d("low"),d("close")+" "+fpe[h]]:[];return _&&upe(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}XV.exports={hoverPoints:cpe,hoverSplit:GV,hoverOnPoints:UV}});var f_=O((L6e,WV)=>{"use strict";WV.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o{"use strict";ZV.exports={moduleType:"trace",name:"ohlc",basePlotModule:kl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Wm(),supplyDefaults:RV(),calc:l_().calc,plot:HV(),style:OV(),hoverPoints:u_().hoverPoints,selectPoints:f_()}});var KV=O((E6e,$V)=>{"use strict";$V.exports=JV()});var tG=O((P6e,rG)=>{"use strict";var vpe=ex(),oi=Mi(),QV=Dl(),hpe=Hn(),jV=bi().axisHoverFormat,{hovertemplateAttrs:dpe,templatefallbackAttrs:ppe}=_n(),Nl=yt().extendFlat,oc=oi.marker,eG=oc.line;rG.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:oi.xperiod,yperiod:oi.yperiod,xperiod0:oi.xperiod0,yperiod0:oi.yperiod0,xperiodalignment:oi.xperiodalignment,yperiodalignment:oi.yperiodalignment,xhoverformat:jV("x"),yhoverformat:jV("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Nl({},oc.symbol,{arrayOk:!1,editType:"plot"}),opacity:Nl({},oc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Nl({},oc.angle,{arrayOk:!1,editType:"calc"}),size:Nl({},oc.size,{arrayOk:!1,editType:"calc"}),color:Nl({},oc.color,{arrayOk:!1,editType:"style"}),line:{color:Nl({},eG.color,{arrayOk:!1,dflt:hpe.defaultLine,editType:"style"}),width:Nl({},eG.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:vpe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:QV.offsetgroup,alignmentgroup:QV.alignmentgroup,selected:{marker:oi.selected.marker,editType:"style"},unselected:{marker:oi.unselected.marker,editType:"style"},text:Nl({},oi.text,{}),hovertext:Nl({},oi.hovertext,{}),hovertemplate:dpe({}),hovertemplatefallback:ppe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:oi.zorder}});var v_=O((R6e,iG)=>{"use strict";var c_=ze().extendFlat,aG=bi().axisHoverFormat,tn=Wm(),sc=tG();function nG(e){return{line:{color:c_({},sc.line.color,{dflt:e}),width:sc.line.width,editType:"style"},fillcolor:sc.fillcolor,editType:"style"}}iG.exports={xperiod:tn.xperiod,xperiod0:tn.xperiod0,xperiodalignment:tn.xperiodalignment,xhoverformat:aG("x"),yhoverformat:aG("y"),x:tn.x,open:tn.open,high:tn.high,low:tn.low,close:tn.close,line:{width:c_({},sc.line.width,{}),editType:"style"},increasing:nG(tn.increasing.line.color.dflt),decreasing:nG(tn.decreasing.line.color.dflt),text:tn.text,hovertext:tn.hovertext,hovertemplate:tn.hovertemplate,hovertemplatefallback:tn.hovertemplatefallback,whiskerwidth:c_({},sc.whiskerwidth,{dflt:0}),hoverlabel:tn.hoverlabel,zorder:sc.zorder}});var h_=O((z6e,lG)=>{"use strict";lG.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var uG=O((N6e,sG)=>{"use strict";var mpe=gr(),ype=ze(),gpe=h_();function oG(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var fG=Zr(),bpe=ze(),_pe=Ss().getAxisGroup,cG=["v","h"];function wpe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(M==="positive"?(G=S*(k?1:.5),X=J,B=X=E):M==="negative"?(G=X=E,B=S*(k?1:.5),j=J):(G=B=S,X=j=J),ce){var be=x.pointpos,_e=x.jitter,ge=x.marker.size/2,W=0;be+_e>=0&&(W=J*(be+_e),W>G?(Ce=!0,ve=ge,le=W):W>X&&(ve=ge,le=G)),W<=G&&(le=G);var Q=0;be-_e<=0&&(Q=-J*(be-_e),Q>B?(Ce=!0,ee=ge,fe=Q):Q>j&&(ee=ge,fe=B)),Q<=B&&(fe=B)}else le=G,fe=B;var Z=new Array(f.length);for(u=0;u{"use strict";var Tpe=ze(),Ape=br(),Mpe=i_(),kpe=Ps(),qpe=v_();mG.exports=function(r,t,a,n){function i(o,s){return Tpe.coerce(r,t,qpe,o,s)}var l=Mpe(r,t,i,n);if(!l){t.visible=!1;return}kpe(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),pG(r,t,i,"increasing"),pG(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function pG(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",Ape.addOpacity(n,.5))}});var _G=O((H6e,bG)=>{"use strict";var gG=ze(),xG=Zr(),Cpe=Rs(),Spe=l_().calcCommon;bG.exports=function(e,r){var t=e._fullLayout,a=xG.getFromId(e,r.xaxis),n=xG.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=Cpe(r,a,"x",i).vals,o=Spe(e,r,i,l,n,Lpe);return o.length?(gG.extendFlat(o[0].t,{num:t._numBoxes,dPos:gG.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function Lpe(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var qG=O((B6e,kG)=>{"use strict";var uc=kr(),lu=ze(),Dpe=Yr(),wG=5,Epe=.01;function Ppe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;lu.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=uc.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var h,d;c.orientation==="h"?(h=l,d=i):(h=i,d=l),TG(s,{pos:h,val:d},c,f,n),AG(s,{x:i,y:l},c,f),MG(s,{pos:h,val:d},c,f)})}function TG(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,h=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,b;Array.isArray(a.bdPos)?(y=a.bdPos[0],b=a.bdPos[1]):(y=a.bdPos,b=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?lu.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return uc.select(this).attr("d","M0,0Z");var x=o.c2l(w.pos+u,!0),A=o.l2p(x-y)+c,k=o.l2p(x+b)+c,M=s?(A+k)/2:o.l2p(x)+c,S=t.whiskerwidth,D=s?A*S+(1-S)*M:o.l2p(x-f)+c,E=s?k*S+(1-S)*M:o.l2p(x+f)+c,R=o.l2p(x-y*m)+c,N=o.l2p(x+b*m)+c,H=t.sizemode==="sd",I=l.c2p(H?w.mean-w.sd:w.q1,!0),Y=H?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),U=lu.constrain(H?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(I,Y)+1,Math.max(I,Y)-1),V=w.lf===void 0||t.boxpoints===!1||H,G=l.c2p(V?w.min:w.lf,!0),B=l.c2p(V?w.max:w.uf,!0),J=l.c2p(w.ln,!0),X=l.c2p(w.un,!0);i?uc.select(this).attr("d","M"+U+","+R+"V"+N+"M"+I+","+A+"V"+k+(p?"H"+J+"L"+U+","+N+"L"+X+","+k:"")+"H"+Y+"V"+A+(p?"H"+X+"L"+U+","+R+"L"+J+","+A:"")+"Z"+(d?"M"+I+","+M+"H"+G+"M"+Y+","+M+"H"+B+(h===0?"":"M"+G+","+D+"V"+E+"M"+B+","+D+"V"+E):"")):uc.select(this).attr("d","M"+R+","+U+"H"+N+"M"+A+","+I+"H"+k+(p?"V"+J+"L"+N+","+U+"L"+k+","+X:"")+"V"+Y+"H"+A+(p?"V"+X+"L"+R+","+U+"L"+A+","+J:"")+"Z"+(d?"M"+M+","+I+"V"+G+"M"+M+","+Y+"V"+B+(h===0?"":"M"+D+","+G+"H"+E+"M"+D+","+B+"H"+E):""))})}function AG(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;lu.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=a,d.trace=t}),h},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,m=Math.max((h.max-h.min)/10,h.q3-h.q1),y=m*1e-9,b=m*Epe,_=[],w=0,x;if(t.jitter){if(m===0)for(w=1,_=new Array(p.length),d=0;dh.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(Dpe.translatePoints,n,i)}function MG(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var h=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?lu.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=i.c2l(d.pos+o,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,b=l?(m+y)/2:i.l2p(p)+s,_=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),x=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?uc.select(this).attr("d","M"+_+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+m+"L"+x+","+b+"Z":"")):uc.select(this).attr("d","M"+m+","+_+"H"+y+(u==="sd"?"m0,0L"+b+","+w+"L"+m+","+_+"L"+b+","+x+"Z":""))})}kG.exports={plot:Ppe,plotBoxAndWhiskers:TG,plotPoints:AG,plotBoxMean:MG}});var SG=O((O6e,CG)=>{"use strict";var d_=kr(),p_=br(),m_=Yr();function Rpe(e,r,t){var a=t||d_.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=d_.select(this),l=n[0].trace,o=l.line.width;function s(c,h,d,p){c.style("stroke-width",h+"px").call(p_.stroke,d).call(p_.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var h=d_.select(this),d=l[c.dir];s(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(p_.stroke,l.line.color);var f=i.selectAll("path.point");m_.pointStyle(f,l,e)}})}function zpe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?m_.selectedPointStyle(n,a):m_.pointStyle(n,a,e)}CG.exports={style:Rpe,styleOnSelect:zpe}});var DG=O((Y6e,LG)=>{"use strict";LG.exports={moduleType:"trace",name:"candlestick",basePlotModule:kl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:v_(),layoutAttributes:h_(),supplyLayoutDefaults:uG().supplyLayoutDefaults,crossTraceCalc:dG().crossTraceCalc,supplyDefaults:yG(),calc:_G(),plot:qG().plot,layerName:"boxlayer",style:SG().style,hoverPoints:u_().hoverPoints,selectPoints:f_()}});var PG=O((V6e,EG)=>{"use strict";EG.exports=DG()});var Na=O((G6e,zG)=>{"use strict";var RG=Object.getOwnPropertySymbols,Npe=Object.prototype.hasOwnProperty,Fpe=Object.prototype.propertyIsEnumerable;function Ipe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Hpe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}zG.exports=Hpe()?Object.assign:function(e,r){for(var t,a=Ipe(e),n,i=1;i{var Qm=Na();function NG(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Qm(NG.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function y_(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Km(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Qm(y_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Rr.local.differentCalendars||Rr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Km(Math.abs(this.year()),4)+"-"+Km(this.month(),2)+"-"+Km(this.day(),2)}});function g_(){this.shortYearCutoff="+10"}Qm(g_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new y_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Km(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Rr=FG.exports=new NG;Rr.cdate=y_;Rr.baseCalendar=g_;Rr.calendars.gregorian=x_});var IG=O(()=>{var b_=Na(),xa=Fa();b_(xa.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});xa.local=xa.regionalOptions[""];b_(xa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});b_(xa.baseCalendar.prototype,{UNIX_EPOCH:xa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:xa.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw xa.local.invalidFormat||xa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,A){for(var k=1;w+k1},f=function(x,A,k,M){var S=""+A;if(u(x,M))for(;S.length1},_=function(N,H){var I=b(N,H),Y=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],U=new RegExp("^-?\\d{1,"+Y+"}"),V=r.substring(S).match(U);if(!V)throw(xa.local.missingNumberAt||xa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=V[0].length,parseInt(V[0],10)},w=this,x=function(){if(typeof o=="function"){b("m");var N=o.call(w,r.substring(S));return S+=N.length,N}return _("m")},A=function(N,H,I,Y){for(var U=b(N,Y)?I:H,V=0;V-1){h=1,d=p;for(var R=this.daysInMonth(c,h);d>R;R=this.daysInMonth(c,h))h++,d-=R}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var HG=O(()=>{var No=Fa(),Bpe=Na(),__=No.instance();function jm(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}jm.prototype=new No.baseCalendar;Bpe(jm.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Ype);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Vpe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Gpe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw No.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw No.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,No.local.invalidyear),n=Io[a-Io[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=__.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Fo[e-Fo[0]],a=t>>13,n=a?12:11;if(r>n)throw No.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,No.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=Xpe(e,i,t,n);return __.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=__.fromJD(e),t=Upe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Ope),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(jm.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var Ope=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Ype=/^\d?\d[iI]?/m,Vpe=/^闰?十?[一二三四五六七八九]?月/m,Gpe=/^闰?十?[一二三四五六七八九]?/m;No.calendars.chinese=jm;var Fo=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Io=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Upe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Io[n.year-Io[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Io[i.year-Io[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,p,m=new Date(c,h-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var b=Fo[i.year-Fo[0]],_;for(_=0;_<13;_++){var w=b&1<<12-_?30:29;if(p>13;return!x||_=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var h=Fo[l.year-Fo[0]],d=h>>13,p;d&&(l.month>d||l.isIntercalary)?p=l.month:p=l.month-1;for(var m=0;m>9&4095,w=b>>5&15,x=b&31,A=new Date(_,w-1,x+c);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var BG=O(()=>{var ou=Fa(),Wpe=Na();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new ou.baseCalendar;Wpe(w_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ou.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ou.local.invalidYear||ou.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ou.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,ou.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});ou.calendars.coptic=w_});var OG=O(()=>{var Fl=Fa(),Zpe=Na();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new Fl.baseCalendar;Zpe(T_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Fl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Fl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Fl.local.invalidDate);return{century:Jpe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Fl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Jpe={20:"Fruitbat",21:"Anchovy"};Fl.calendars.discworld=T_});var YG=O(()=>{var su=Fa(),$pe=Na();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new su.baseCalendar;$pe(A_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,su.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,su.local.invalidYear||su.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,su.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,su.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});su.calendars.ethiopian=A_});var VG=O(()=>{var Ho=Fa(),Kpe=Na();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new Ho.baseCalendar;Kpe(M_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,ey(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Ho.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&ey(this.daysInYear(e),10)===5?30:r===9&&ey(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ho.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Ho.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function ey(e,r){return e-r*Math.floor(e/r)}Ho.calendars.hebrew=M_});var GG=O(()=>{var I0=Fa(),Qpe=Na();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new I0.baseCalendar;Qpe(k_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,I0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,I0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,I0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});I0.calendars.islamic=k_});var UG=O(()=>{var H0=Fa(),jpe=Na();function q_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q_.prototype=new H0.baseCalendar;jpe(q_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,H0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,H0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,H0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});H0.calendars.julian=q_});var WG=O(()=>{var si=Fa(),eme=Na();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new si.baseCalendar;eme(S_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,si.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,si.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,si.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,si.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,si.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,si.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,si.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,si.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,si.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=C_(e+8+17*20,365);return[Math.floor(r/20)+1,C_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[XG(e+20,20),XG(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,si.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function C_(e,r){return e-r*Math.floor(e/r)}function XG(e,r){return C_(e-1,r)+1}si.calendars.mayan=S_});var JG=O(()=>{var uu=Fa(),rme=Na();function L_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L_.prototype=new uu.baseCalendar;var ZG=uu.instance("gregorian");rme(L_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,uu.local.invalidYear||uu.regionalOptions[""].invalidYear);return ZG.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,uu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,uu.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});uu.calendars.nanakshahi=L_});var $G=O(()=>{var fu=Fa(),tme=Na();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new fu.baseCalendar;tme(D_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,fu.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,fu.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,fu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=fu.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=fu.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var fc=Fa(),ame=Na();function ty(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function ry(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}ty.prototype=new fc.baseCalendar;ame(ty.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,fc.local.invalidYear);return ry(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,fc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,fc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,ry(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});fc.calendars.persian=ty;fc.calendars.jalali=ty});var QG=O(()=>{var cu=Fa(),nme=Na(),ay=cu.instance();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new cu.baseCalendar;nme(E_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,cu.local.invalidYear),t=this._t2gYear(r.year());return ay.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,cu.local.invalidYear),n=this._t2gYear(a.year());return ay.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,cu.local.invalidDate),n=this._t2gYear(a.year());return ay.toJD(n,a.month(),a.day())},fromJD:function(e){var r=ay.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});cu.calendars.taiwan=E_});var jG=O(()=>{var vu=Fa(),ime=Na(),ny=vu.instance();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new vu.baseCalendar;ime(P_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,vu.local.invalidYear),t=this._t2gYear(r.year());return ny.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,vu.local.invalidYear),n=this._t2gYear(a.year());return ny.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,vu.local.invalidDate),n=this._t2gYear(a.year());return ny.toJD(n,a.month(),a.day())},fromJD:function(e){var r=ny.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});vu.calendars.thai=P_});var eU=O(()=>{var hu=Fa(),lme=Na();function R_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R_.prototype=new hu.baseCalendar;lme(R_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,hu.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,hu.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Bo[n]-Bo[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,hu.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Bo[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Bo[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=hu.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=hu.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});hu.calendars.ummalqura=R_;var Bo=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var tU=O((w7e,rU)=>{"use strict";rU.exports=Fa();IG();HG();BG();OG();YG();VG();GG();UG();WG();JG();$G();KG();QG();jG();eU()});var uU=O((T7e,sU)=>{"use strict";var nU=tU(),B0=ze(),iU=Tt(),ome=iU.EPOCHJD,sme=iU.ONEDAY,F_={valType:"enumerated",values:B0.sortObjectKeys(nU.calendars),editType:"calc",dflt:"gregorian"},lU=function(e,r,t,a){var n={};return n[t]=F_,B0.coerce(e,r,n,t,a)},ume=function(e,r,t,a){for(var n=0;n{"use strict";fU.exports=uU()});var pme=O((M7e,hU)=>{var vU=gF();vU.register([bI(),cH(),WH(),RB(),TO(),WO(),MV(),KV(),PG(),cU()]);hU.exports=vU});return pme();})(); +"use strict";var Plotly=(()=>{var pd=Object.defineProperty,mW=Object.defineProperties,yW=Object.getOwnPropertyDescriptor,gW=Object.getOwnPropertyDescriptors,xW=Object.getOwnPropertyNames,r6=Object.getOwnPropertySymbols;var a6=Object.prototype.hasOwnProperty,bW=Object.prototype.propertyIsEnumerable;var t6=(e,r,t)=>r in e?pd(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Zo=(e,r)=>{for(var t in r||(r={}))a6.call(r,t)&&t6(e,t,r[t]);if(r6)for(var t of r6(r))bW.call(r,t)&&t6(e,t,r[t]);return e},md=(e,r)=>mW(e,gW(r));var it=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var O=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},_W=(e,r)=>{for(var t in r)pd(e,t,{get:r[t],enumerable:!0})},wW=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of xW(r))!a6.call(e,n)&&n!==t&&pd(e,n,{get:()=>r[n],enumerable:!(a=yW(r,n))||a.enumerable});return e};var n6=e=>wW(pd({},"__esModule",{value:!0}),e);var Mc=O(i6=>{"use strict";i6.version="3.7.0"});var o6=O((l6,yd)=>{(function(r,t,a){t[r]=t[r]||a(),typeof yd!="undefined"&&yd.exports&&(yd.exports=t[r])})("Promise",typeof window!="undefined"?window:l6,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,x,A){return Object.defineProperty(_,w,{value:x,writable:!0,configurable:A!==!1})}}catch(b){r=function(w,x,A){return w[x]=A,w}}a=(function(){var _,w,x;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){x=new A(M,S),w?w.next=x:_=x,w=x,x=void 0},drain:function(){var M=_;for(_=w=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b0&&l(s,w))}catch(x){c.call(new h(w),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function d(b,_,w,x){for(var A=0;A<_.length;A++)(function(M){b.resolve(_[M]).then(function(D){w(M,D)},x)})(A)}function h(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,A){var k={success:typeof x=="function"?x:!0,failure:typeof A=="function"?A:!1};return k.promise=new this.constructor(function(S,D){if(typeof S!="function"||typeof D!="function")throw TypeError("Not a function");k.resolve=S,k.reject=D}),_.chain.push(k),_.state!==0&&l(s,_),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(w){c.call(_,w)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");A(_)})}),r(m,"reject",function(_){return new this(function(x,A){if(typeof x!="function"||typeof A!="function")throw TypeError("Not a function");A(_)})}),r(m,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");var M=_.length,S=Array(M),D=0;d(w,_,function(R,N){S[R]=N,++D===M&&A(S)},k)})}),r(m,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(A,k){if(typeof A!="function"||typeof k!="function")throw TypeError("Not a function");d(w,_,function(S,D){A(D)},k)})}),m})});var kr=O((qme,gd)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var T=g.length,C=new Array(T);T--;)C[T]=g[T];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,C){s.call(this,g,T,C+"")},u.setProperty=function(g,T,C){f.call(this,g,T+"",C)}}e.ascending=c;function c(v,g){return vg?1:v>=g?0:NaN}e.descending=function(v,g){return gv?1:g>=v?0:NaN},e.min=function(v,g){var T=-1,C=v.length,q,L;if(arguments.length===1){for(;++T=L){q=L;break}for(;++TL&&(q=L)}else{for(;++T=L){q=L;break}for(;++TL&&(q=L)}return q},e.max=function(v,g){var T=-1,C=v.length,q,L;if(arguments.length===1){for(;++T=L){q=L;break}for(;++Tq&&(q=L)}else{for(;++T=L){q=L;break}for(;++Tq&&(q=L)}return q},e.extent=function(v,g){var T=-1,C=v.length,q,L,z;if(arguments.length===1){for(;++T=L){q=z=L;break}for(;++TL&&(q=L),z=L){q=z=L;break}for(;++TL&&(q=L),z1)return z/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,T,C,q){for(arguments.length<3&&(C=0),arguments.length<4&&(q=g.length);C>>1;v(g[L],T)<0?C=L+1:q=L}return C},right:function(g,T,C,q){for(arguments.length<3&&(C=0),arguments.length<4&&(q=g.length);C>>1;v(g[L],T)>0?q=L:C=L+1}return C}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(v){return p(v.length===1?function(g,T){return c(v(g),T)}:v)},e.shuffle=function(v,g,T){(C=arguments.length)<3&&(T=v.length,C<2&&(g=0));for(var C=T-g,q,L;C;)L=Math.random()*C--|0,q=v[C+g],v[C+g]=v[L+g],v[L+g]=q;return v},e.permute=function(v,g){for(var T=g.length,C=new Array(T);T--;)C[T]=v[g[T]];return C},e.pairs=function(v){for(var g=0,T=v.length-1,C,q=v[0],L=new Array(T<0?0:T);g=0;)for(z=v[g],T=z.length;--T>=0;)L[--q]=z[T];return L};var b=Math.abs;e.range=function(v,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=v,v=0)),(g-v)/T===1/0)throw new Error("infinite range");var C=[],q=_(b(T)),L=-1,z;if(v*=q,g*=q,T*=q,T<0)for(;(z=v+T*++L)>g;)C.push(z/q);else for(;(z=v+T*++L)=g.length)return q?q.call(v,F):C?F.sort(C):F;for(var K=-1,re=F.length,te=g[$++],ye,Ae,ae,ue=new x,de;++K=g.length)return P;var $=[],K=T[F++];return P.forEach(function(re,te){$.push({key:re,values:z(te,F)})}),K?$.sort(function(re,te){return K(re.key,te.key)}):$}return v.map=function(P,F){return L(F,P,0)},v.entries=function(P){return z(L(e.map,P,0),0)},v.key=function(P){return g.push(P),v},v.sortKeys=function(P){return T[g.length-1]=P,v},v.sortValues=function(P){return C=P,v},v.rollup=function(P){return q=P,v},v},e.set=function(v){var g=new I;if(v)for(var T=0,C=v.length;T=0&&(C=v.slice(T+1),v=v.slice(0,T)),v)return arguments.length<2?this[v].on(C):this[v].on(C,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(C,null);return this}};function X(v){var g=[],T=new x;function C(){for(var q=g,L=-1,z=q.length,P;++L=0&&(T=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),oe.hasOwnProperty(T)?{space:oe[T],local:v}:v}},ge.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node();return v=e.ns.qualify(v),v.local?T.getAttributeNS(v.space,v.local):T.getAttribute(v)}for(g in v)this.each(me(g,v[g]));return this}return this.each(me(v,g))};function me(v,g){v=e.ns.qualify(v);function T(){this.removeAttribute(v)}function C(){this.removeAttributeNS(v.space,v.local)}function q(){this.setAttribute(v,g)}function L(){this.setAttributeNS(v.space,v.local,g)}function z(){var F=g.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function P(){var F=g.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return g==null?v.local?C:T:typeof g=="function"?v.local?P:z:v.local?L:q}function xe(v){return v.trim().replace(/\s+/g," ")}ge.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node(),C=(v=Ee(v)).length,q=-1;if(g=T.classList){for(;++q=0;)(L=T[C])&&(q&&q!==L.nextSibling&&q.parentNode.insertBefore(L,q),q=L);return this},ge.sort=function(v){v=we.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=q+1);!(F=z[g])&&++g0&&(v=v.slice(0,q));var z=Be.get(v);z&&(v=z,L=Ve);function P(){var K=this[C];K&&(this.removeEventListener(v,K,K.$),delete this[C])}function F(){var K=L(g,t(arguments));P.call(this),this.addEventListener(v,this[C]=K,K.$=T),K._=g}function $(){var K=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),re;for(var te in this)if(re=te.match(K)){var ye=this[te];this.removeEventListener(re[1],ye,ye.$),delete this[te]}}return q?g?F:P:g?B:$}var Be=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Be.forEach(function(v){"on"+v in a&&Be.remove(v)});function Ze(v,g){return function(T){var C=e.event;e.event=T,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=C}}}function Ve(v,g){var T=Ze(v,g);return function(C){var q=this,L=C.relatedTarget;(!L||L!==q&&!(L.compareDocumentPosition(q)&8))&&T.call(q,C)}}var Ge,ir=0;function ar(v){var g=".dragsuppress-"+ ++ir,T="click"+g,C=e.select(i(v)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(Ge==null&&(Ge="onselectstart"in v?!1:V(v.style,"userSelect")),Ge){var q=n(v).style,L=q[Ge];q[Ge]="none"}return function(z){if(C.on(g,null),Ge&&(q[Ge]=L),z){var P=function(){C.on(T,null)};C.on(T,function(){ee(),P()},!0),setTimeout(P,0)}}}e.mouse=function(v){return Fe(v,le())};var er=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Fe(v,g){g.changedTouches&&(g=g.changedTouches[0]);var T=v.ownerSVGElement||v;if(T.createSVGPoint){var C=T.createSVGPoint();if(er<0){var q=i(v);if(q.scrollX||q.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=T[0][0].getScreenCTM();er=!(L.f||L.e),T.remove()}}return er?(C.x=g.pageX,C.y=g.pageY):(C.x=g.clientX,C.y=g.clientY),C=C.matrixTransform(v.getScreenCTM().inverse()),[C.x,C.y]}var z=v.getBoundingClientRect();return[g.clientX-z.left-v.clientLeft,g.clientY-z.top-v.clientTop]}e.touch=function(v,g,T){if(arguments.length<3&&(T=g,g=le().changedTouches),g){for(var C=0,q=g.length,L;C0?1:v<0?-1:0}function ft(v,g,T){return(g[0]-v[0])*(T[1]-v[1])-(g[1]-v[1])*(T[0]-v[0])}function kt(v){return v>1?0:v<-1?Pe:Math.acos(v)}function wt(v){return v>1?sr:v<-1?-sr:Math.asin(v)}function $t(v){return((v=Math.exp(v))-1/v)/2}function Vt(v){return((v=Math.exp(v))+1/v)/2}function $a(v){return((v=Math.exp(2*v))-1)/(v+1)}function _a(v){return(v=Math.sin(v/2))*v}var va=Math.SQRT2,Ka=2,da=4;e.interpolateZoom=function(v,g){var T=v[0],C=v[1],q=v[2],L=g[0],z=g[1],P=g[2],F=L-T,$=z-C,K=F*F+$*$,re,te;if(K0&&(rr=rr.transition().duration(z)),rr.call(Me.event)}function hr(){ue&&ue.domain(ae.range().map(function(rr){return(rr-v.x)/v.k}).map(ae.invert)),Te&&Te.domain(de.range().map(function(rr){return(rr-v.y)/v.k}).map(de.invert))}function pr(rr){P++||rr({type:"zoomstart"})}function Lr(rr){hr(),rr({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function mr(rr){--P||(rr({type:"zoomend"}),T=null)}function Ar(){var rr=this,Dr=Ae.of(rr,arguments),Er=0,jr=e.select(i(rr)).on($,Aa).on(K,Ba),Ct=pe(e.mouse(rr)),Qt=ar(rr);cd.call(rr),pr(Dr);function Aa(){Er=1,fr(e.mouse(rr),Ct),Lr(Dr)}function Ba(){jr.on($,null).on(K,null),Qt(Er),mr(Dr)}}function Qr(){var rr=this,Dr=Ae.of(rr,arguments),Er={},jr=0,Ct,Qt=".zoom-"+e.event.changedTouches[0].identifier,Aa="touchmove"+Qt,Ba="touchend"+Qt,Qa=[],Oa=e.select(rr),nn=ar(rr);ln(),pr(Dr),Oa.on(F,null).on(te,ln);function Pa(){var vi=e.touches(rr);return Ct=v.k,vi.forEach(function(Ma){Ma.identifier in Er&&(Er[Ma.identifier]=pe(Ma))}),vi}function ln(){var vi=e.event.target;e.select(vi).on(Aa,Xo).on(Ba,pW),Qa.push(vi);for(var Ma=e.event.changedTouches,Nn=0,Hi=Ma.length;Nn1){var Wo=Fn[0],Bl=Fn[1],hd=Wo[0]-Bl[0],e6=Wo[1]-Bl[1];jr=hd*hd+e6*e6}}function Xo(){var vi=e.touches(rr),Ma,Nn,Hi,Fn;cd.call(rr);for(var Tu=0,Wo=vi.length;Tu1?1:g,T=T<0?0:T>1?1:T,q=T<=.5?T*(1+g):T+g-T*g,C=2*T-q;function L(P){return P>360?P-=360:P<0&&(P+=360),P<60?C+(q-C)*P/60:P<180?q:P<240?C+(q-C)*(240-P)/60:C}function z(P){return Math.round(L(P)*255)}return new Ha(z(v+120),z(v),z(v-120))}e.hcl=nt;function nt(v,g,T){return this instanceof nt?(this.h=+v,this.c=+g,void(this.l=+T)):arguments.length<2?v instanceof nt?new nt(v.h,v.c,v.l):v instanceof ra?U0(v.l,v.a,v.b):U0((v=or((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new nt(v,g,T)}var an=nt.prototype=new Jr;an.brighter=function(v){return new nt(this.h,this.c,Math.min(100,this.l+mt*(arguments.length?v:1)))},an.darker=function(v){return new nt(this.h,this.c,Math.max(0,this.l-mt*(arguments.length?v:1)))},an.rgb=function(){return ui(this.h,this.c,this.l).rgb()};function ui(v,g,T){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new ra(T,Math.cos(v*=Mr)*g,Math.sin(v)*g)}e.lab=ra;function ra(v,g,T){return this instanceof ra?(this.l=+v,this.a=+g,void(this.b=+T)):arguments.length<2?v instanceof ra?new ra(v.l,v.a,v.b):v instanceof nt?ui(v.h,v.c,v.l):or((v=Ha(v)).r,v.g,v.b):new ra(v,g,T)}var mt=18,Ut=.95047,Gt=1,Oo=1.08883,Il=ra.prototype=new Jr;Il.brighter=function(v){return new ra(Math.min(100,this.l+mt*(arguments.length?v:1)),this.a,this.b)},Il.darker=function(v){return new ra(Math.max(0,this.l-mt*(arguments.length?v:1)),this.a,this.b)},Il.rgb=function(){return V0(this.l,this.a,this.b)};function V0(v,g,T){var C=(v+16)/116,q=C+g/500,L=C-T/200;return q=dc(q)*Ut,C=dc(C)*Gt,L=dc(L)*Oo,new Ha(pc(3.2404542*q-1.5371385*C-.4985314*L),pc(-.969266*q+1.8760108*C+.041556*L),pc(.0556434*q-.2040259*C+1.0572252*L))}function U0(v,g,T){return v>0?new nt(Math.atan2(T,g)*Hr,Math.sqrt(g*g+T*T),v):new nt(NaN,NaN,v)}function dc(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function hc(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function pc(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Ha;function Ha(v,g,T){return this instanceof Ha?(this.r=~~v,this.g=~~g,void(this.b=~~T)):arguments.length<2?v instanceof Ha?new Ha(v.r,v.g,v.b):Xr(""+v,Ha,ma):new Ha(v,g,T)}function G0(v){return new Ha(v>>16,v>>8&255,v&255)}function pu(v){return G0(v)+""}var mu=Ha.prototype=new Jr;mu.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,T=this.g,C=this.b,q=30;return!g&&!T&&!C?new Ha(q,q,q):(g&&g>4,C=C>>4|C,q=F&240,q=q>>4|q,L=F&15,L=L<<4|L):v.length===7&&(C=(F&16711680)>>16,q=(F&65280)>>8,L=F&255)),g(C,q,L))}function et(v,g,T){var C=Math.min(v/=255,g/=255,T/=255),q=Math.max(v,g,T),L=q-C,z,P,F=(q+C)/2;return L?(P=F<.5?L/(q+C):L/(2-q-C),v==q?z=(g-T)/L+(g0&&F<1?0:z),new lt(z,P,F)}function or(v,g,T){v=wa(v),g=wa(g),T=wa(T);var C=hc((.4124564*v+.3575761*g+.1804375*T)/Ut),q=hc((.2126729*v+.7151522*g+.072175*T)/Gt),L=hc((.0193339*v+.119192*g+.9503041*T)/Oo);return ra(116*q-16,500*(C-q),200*(q-L))}function wa(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function vt(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var Ta=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Ta.forEach(function(v,g){Ta.set(v,G0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=fi(Y);function fi(v){return function(g,T,C){return arguments.length===2&&typeof T=="function"&&(C=T,T=null),Yo(g,T,v,C)}}function Yo(v,g,T,C){var q={},L=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in P)&&/^(http(s)?:)?\/\//.test(v)&&(P=new XDomainRequest),"onload"in P?P.onload=P.onerror=$:P.onreadystatechange=function(){P.readyState>3&&$()};function $(){var K=P.status,re;if(!K&&yG(P)||K>=200&&K<300||K===304){try{re=T.call(q,P)}catch(te){L.error.call(q,te);return}L.load.call(q,re)}else L.error.call(q,P)}return P.onprogress=function(K){var re=e.event;e.event=K;try{L.progress.call(q,P)}finally{e.event=re}},q.header=function(K,re){return K=(K+"").toLowerCase(),arguments.length<2?z[K]:(re==null?delete z[K]:z[K]=re+"",q)},q.mimeType=function(K){return arguments.length?(g=K==null?null:K+"",q):g},q.responseType=function(K){return arguments.length?(F=K,q):F},q.response=function(K){return T=K,q},["get","post"].forEach(function(K){q[K]=function(){return q.send.apply(q,[K].concat(t(arguments)))}}),q.send=function(K,re,te){if(arguments.length===2&&typeof re=="function"&&(te=re,re=null),P.open(K,v,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),P.setRequestHeader)for(var ye in z)P.setRequestHeader(ye,z[ye]);return g!=null&&P.overrideMimeType&&P.overrideMimeType(g),F!=null&&(P.responseType=F),te!=null&&q.on("error",te).on("load",function(Ae){te(null,Ae)}),L.beforesend.call(q,P),P.send(re==null?null:re),q},q.abort=function(){return P.abort(),q},e.rebind(q,L,"on"),C==null?q:q.get(mG(C))}function mG(v){return v.length===1?function(g,T){v(g==null?T:null)}:v}function yG(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var T=new RegExp('["'+v+` +]`),C=v.charCodeAt(0);function q($,K,re){arguments.length<3&&(re=K,K=null);var te=Yo($,g,K==null?L:z(K),re);return te.row=function(ye){return arguments.length?te.response((K=ye)==null?L:z(ye)):K},te}function L($){return q.parse($.responseText)}function z($){return function(K){return q.parse(K.responseText,$)}}q.parse=function($,K){var re;return q.parseRows($,function(te,ye){if(re)return re(te,ye-1);var Ae=function(ae){for(var ue={},de=te.length,Te=0;Te=Ae)return te;if(Te)return Te=!1,re;var Ye=ae;if($.charCodeAt(Ye)===34){for(var nr=Ye;nr++24?(isFinite(g)&&(clearTimeout(J0),J0=setTimeout(oy,g)),Z0=0):(Z0=1,B_(oy))}e.timer.flush=function(){O_(),Y_()};function O_(){for(var v=Date.now(),g=X0;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function Y_(){for(var v,g=X0,T=1/0;g;)g.c?(g.t=0;--P)ae.push(q[$[re[P]][2]]);for(P=+ye;P1&&ft(v[T[C-2]],v[T[C-1]],v[q])<=0;)--C;T[C++]=q}return T.slice(0,C)}function gG(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return j(v,K0),v};var K0=e.geom.polygon.prototype=[];K0.area=function(){for(var v=-1,g=this.length,T,C=this[g-1],q=0;++vse)P=P.L;else if(z=g-wG(P,T),z>se){if(!P.R){C=P;break}P=P.R}else{L>-se?(C=P.P,q=P):z>-se?(C=P,q=P.N):C=q=P;break}var F=W_(v);if(xu.insert(C,F),!(!C&&!q)){if(C===q){_u(C),q=W_(C.site),xu.insert(F,q),F.edge=q.edge=gc(C.site,F.site),bu(C),bu(q);return}if(!q){F.edge=gc(C.site,F.site);return}_u(C),_u(q);var $=C.site,K=$.x,re=$.y,te=v.x-K,ye=v.y-re,Ae=q.site,ae=Ae.x-K,ue=Ae.y-re,de=2*(te*ue-ye*ae),Te=te*te+ye*ye,Me=ae*ae+ue*ue,pe={x:(ue*Te-ye*Me)/de+K,y:(te*Me-ae*Te)/de+re};Q0(q.edge,$,Ae,pe),F.edge=gc($,v,null,pe),q.edge=gc(v,Ae,null,pe),bu(C),bu(q)}}function Z_(v,g){var T=v.site,C=T.x,q=T.y,L=q-g;if(!L)return C;var z=v.P;if(!z)return-1/0;T=z.site;var P=T.x,F=T.y,$=F-g;if(!$)return P;var K=P-C,re=1/L-1/$,te=K/$;return re?(-te+Math.sqrt(te*te-2*re*(K*K/(-2*$)-F+$/2+q-L/2)))/re+C:(C+P)/2}function wG(v,g){var T=v.N;if(T)return Z_(T,g);var C=v.site;return C.y===g?C.x:1/0}function J_(v){this.site=v,this.edges=[]}J_.prototype.prepare=function(){for(var v=this.edges,g=v.length,T;g--;)T=v[g].edge,(!T.b||!T.a)&&v.splice(g,1);return v.sort($_),v.length};function TG(v){for(var g=v[0][0],T=v[1][0],C=v[0][1],q=v[1][1],L,z,P,F,$=Vo,K=$.length,re,te,ye,Ae,ae,ue;K--;)if(re=$[K],!(!re||!re.prepare()))for(ye=re.edges,Ae=ye.length,te=0;tese||b(F-z)>se)&&(ye.splice(te,0,new j0(qG(re.site,ue,b(P-g)se?{x:g,y:b(L-g)se?{x:b(z-q)se?{x:T,y:b(L-T)se?{x:b(z-C)=-Le)){var te=F*F+$*$,ye=K*K+ue*ue,Ae=(ue*te-$*ye)/re,ae=(F*ye-K*te)/re,ue=ae+P,de=X_.pop()||new AG;de.arc=v,de.site=q,de.x=Ae+z,de.y=ue+Math.sqrt(Ae*Ae+ae*ae),de.cy=ue,v.circle=de;for(var Te=null,Me=yc._;Me;)if(de.y0)){if(ae/=ye,ye<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=T-P,!(!ye&&ae<0)){if(ae/=ye,ye<0){if(ae>te)return;ae>re&&(re=ae)}else if(ye>0){if(ae0)){if(ae/=Ae,Ae<0){if(ae0){if(ae>te)return;ae>re&&(re=ae)}if(ae=C-F,!(!Ae&&ae<0)){if(ae/=Ae,Ae<0){if(ae>te)return;ae>re&&(re=ae)}else if(Ae>0){if(ae0&&(q.a={x:P+re*ye,y:F+re*Ae}),te<1&&(q.b={x:P+te*ye,y:F+te*Ae}),q}}}}}}function kG(v){for(var g=gu,T=MG(v[0][0],v[0][1],v[1][0],v[1][1]),C=g.length,q;C--;)q=g[C],(!CG(q,v)||!T(q)||b(q.a.x-q.b.x)=L)return;if(K>te){if(!C)C={x:Ae,y:z};else if(C.y>=P)return;T={x:Ae,y:P}}else{if(!C)C={x:Ae,y:P};else if(C.y1)if(K>te){if(!C)C={x:(z-de)/ue,y:z};else if(C.y>=P)return;T={x:(P-de)/ue,y:P}}else{if(!C)C={x:(P-de)/ue,y:P};else if(C.y=L)return;T={x:L,y:ue*L+de}}else{if(!C)C={x:L,y:ue*L+de};else if(C.x=K&&de.x<=te&&de.y>=re&&de.y<=ye?[[K,ye],[te,ye],[te,re],[K,re]]:[];Te.point=F[ae]}),$}function P(F){return F.map(function($,K){return{x:Math.round(C($,K)/se)*se,y:Math.round(q($,K)/se)*se,i:K}})}return z.links=function(F){return dy(P(F)).edges.filter(function($){return $.l&&$.r}).map(function($){return{source:F[$.l.i],target:F[$.r.i]}})},z.triangles=function(F){var $=[];return dy(P(F)).cells.forEach(function(K,re){for(var te=K.site,ye=K.edges.sort($_),Ae=-1,ae=ye.length,ue,de,Te=ye[ae-1].edge,Me=Te.l===te?Te.r:Te.l;++AeMe&&(Me=K.x),K.y>pe&&(pe=K.y),ye.push(K.x),Ae.push(K.y);else for(ae=0;aeMe&&(Me=Ye),nr>pe&&(pe=nr),ye.push(Ye),Ae.push(nr)}var fr=Me-de,lr=pe-Te;fr>lr?pe=Te+fr:Me=de+lr;function hr(mr,Ar,Qr,Nt,tt,rr,Dr,Er){if(!(isNaN(Qr)||isNaN(Nt)))if(mr.leaf){var jr=mr.x,Ct=mr.y;if(jr!=null)if(b(jr-Qr)+b(Ct-Nt)<.01)pr(mr,Ar,Qr,Nt,tt,rr,Dr,Er);else{var Qt=mr.point;mr.x=mr.y=mr.point=null,pr(mr,Qt,jr,Ct,tt,rr,Dr,Er),pr(mr,Ar,Qr,Nt,tt,rr,Dr,Er)}else mr.x=Qr,mr.y=Nt,mr.point=Ar}else pr(mr,Ar,Qr,Nt,tt,rr,Dr,Er)}function pr(mr,Ar,Qr,Nt,tt,rr,Dr,Er){var jr=(tt+Dr)*.5,Ct=(rr+Er)*.5,Qt=Qr>=jr,Aa=Nt>=Ct,Ba=Aa<<1|Qt;mr.leaf=!1,mr=mr.nodes[Ba]||(mr.nodes[Ba]=j_()),Qt?tt=jr:Dr=jr,Aa?rr=Ct:Er=Ct,hr(mr,Ar,Qr,Nt,tt,rr,Dr,Er)}var Lr=j_();if(Lr.add=function(mr){hr(Lr,mr,+re(mr,++ae),+te(mr,ae),de,Te,Me,pe)},Lr.visit=function(mr){_c(mr,Lr,de,Te,Me,pe)},Lr.find=function(mr){return PG(Lr,mr[0],mr[1],de,Te,Me,pe)},ae=-1,g==null){for(;++aeL||te>z||ye=Ye,lr=T>=nr,hr=lr<<1|fr,pr=hr+4;hrT&&(L=g.slice(T,L),P[z]?P[z]+=L:P[++z]=L),(C=C[0])===(q=q[0])?P[z]?P[z]+=q:P[++z]=q:(P[++z]=null,F.push({i:z,x:vl(C,q)})),T=my.lastIndex;return T=0&&!(C=e.interpolators[T](v,g)););return C}e.interpolators=[function(v,g){var T=typeof g;return(T==="string"?Ta.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?hy:r4:g instanceof Jr?hy:Array.isArray(g)?td:T==="object"&&isNaN(g)?e4:vl)(v,g)}],e.interpolateArray=td;function td(v,g){var T=[],C=[],q=v.length,L=g.length,z=Math.min(v.length,g.length),P;for(P=0;P=0?v.slice(0,g):v,C=g>=0?v.slice(g+1):"in";return T=RG.get(T)||t4,C=zG.get(C)||Y,NG(C(T.apply(null,r.call(arguments,1))))};function NG(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function a4(v){return function(g){return 1-v(1-g)}}function n4(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function FG(v){return v*v}function IG(v){return v*v*v}function HG(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,T=g*v;return 4*(v<.5?T:3*(v-g)+T-.75)}function BG(v){return function(g){return Math.pow(g,v)}}function OG(v){return 1-Math.cos(v*sr)}function YG(v){return Math.pow(2,10*(v-1))}function VG(v){return 1-Math.sqrt(1-v*v)}function UG(v,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/Qe*Math.asin(1/v):(v=1,T=g/4),function(C){return 1+v*Math.pow(2,-10*C)*Math.sin((C-T)*Qe/g)}}function GG(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function XG(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=WG;function WG(v,g){v=e.hcl(v),g=e.hcl(g);var T=v.h,C=v.c,q=v.l,L=g.h-T,z=g.c-C,P=g.l-q;return isNaN(z)&&(z=0,C=isNaN(C)?g.c:C),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return ui(T+L*F,C+z*F,q+P*F)+""}}e.interpolateHsl=ZG;function ZG(v,g){v=e.hsl(v),g=e.hsl(g);var T=v.h,C=v.s,q=v.l,L=g.h-T,z=g.s-C,P=g.l-q;return isNaN(z)&&(z=0,C=isNaN(C)?g.s:C),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return ma(T+L*F,C+z*F,q+P*F)+""}}e.interpolateLab=JG;function JG(v,g){v=e.lab(v),g=e.lab(g);var T=v.l,C=v.a,q=v.b,L=g.l-T,z=g.a-C,P=g.b-q;return function(F){return V0(T+L*F,C+z*F,q+P*F)+""}}e.interpolateRound=i4;function i4(v,g){return g-=v,function(T){return Math.round(v+g*T)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var C=g.transform.baseVal.consolidate()}return new l4(C?C.matrix:KG)})(v)};function l4(v){var g=[v.a,v.b],T=[v.c,v.d],C=s4(g),q=o4(g,T),L=s4($G(T,g,-q))||0;g[0]*T[1]180?g+=360:g-v>180&&(v+=360),C.push({i:T.push(wu(T)+"rotate(",null,")")-2,x:vl(v,g)})):g&&T.push(wu(T)+"rotate("+g+")")}function eX(v,g,T,C){v!==g?C.push({i:T.push(wu(T)+"skewX(",null,")")-2,x:vl(v,g)}):g&&T.push(wu(T)+"skewX("+g+")")}function rX(v,g,T,C){if(v[0]!==g[0]||v[1]!==g[1]){var q=T.push(wu(T)+"scale(",null,",",null,")");C.push({i:q-4,x:vl(v[0],g[0])},{i:q-2,x:vl(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(wu(T)+"scale("+g+")")}function u4(v,g){var T=[],C=[];return v=e.transform(v),g=e.transform(g),QG(v.translate,g.translate,T,C),jG(v.rotate,g.rotate,T,C),eX(v.skew,g.skew,T,C),rX(v.scale,g.scale,T,C),v=g=null,function(q){for(var L=-1,z=C.length,P;++L0?L=pe:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:L=0})):pe>0&&(g.start({type:"start",alpha:L=pe}),T=$0(v.tick)),v):L},v.start=function(){var pe,Ye=ye.length,nr=Ae.length,fr=C[0],lr=C[1],hr,pr;for(pe=0;pe=0;)L.push(K=$[F]),K.parent=P,K.depth=P.depth+1;T&&(P.value=0),P.children=$}else T&&(P.value=+T.call(C,P,P.depth)||0),delete P.children;return Ii(q,function(re){var te,ye;v&&(te=re.children)&&te.sort(v),T&&(ye=re.parent)&&(ye.value+=re.value)}),z}return C.sort=function(q){return arguments.length?(v=q,C):v},C.children=function(q){return arguments.length?(g=q,C):g},C.value=function(q){return arguments.length?(T=q,C):T},C.revalue=function(q){return T&&(Tc(q,function(L){L.children&&(L.value=0)}),Ii(q,function(L){var z;L.children||(L.value=+T.call(C,L,L.depth)||0),(z=L.parent)&&(z.value+=L.value)})),q},C};function wc(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=mX,v}function Tc(v,g){for(var T=[v];(v=T.pop())!=null;)if(g(v),(q=v.children)&&(C=q.length))for(var C,q;--C>=0;)T.push(q[C])}function Ii(v,g){for(var T=[v],C=[];(v=T.pop())!=null;)if(C.push(v),(z=v.children)&&(L=z.length))for(var q=-1,L,z;++qq&&(q=P),C.push(P)}for(z=0;zC&&(T=g,C=q);return T}function TX(v){return v.reduce(AX,0)}function AX(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,T=kX,C=MX;function q(L,te){for(var P=[],F=L.map(g,this),$=T.call(this,F,te),K=C.call(this,$,F,te),re,te=-1,ye=F.length,Ae=K.length-1,ae=v?1:1/ye,ue;++te0)for(te=-1;++te=$[0]&&ue<=$[1]&&(re=P[e.bisect(K,ue,1,Ae)-1],re.y+=ae,re.push(L[te]));return P}return q.value=function(L){return arguments.length?(g=L,q):g},q.range=function(L){return arguments.length?(T=Nr(L),q):T},q.bins=function(L){return arguments.length?(C=typeof L=="number"?function(z){return d4(z,L)}:Nr(L),q):C},q.frequency=function(L){return arguments.length?(v=!!L,q):v},q};function MX(v,g){return d4(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function d4(v,g){for(var T=-1,C=+v[0],q=(v[1]-C)/g,L=[];++T<=g;)L[T]=q*T+C;return L}function kX(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(CX),g=0,T=[1,1],C;function q(L,z){var P=v.call(this,L,z),F=P[0],$=T[0],K=T[1],re=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(F.x=F.y=0,Ii(F,function(ye){ye.r=+re(ye.value)}),Ii(F,m4),g){var te=g*(C?1:Math.max(2*F.r/$,2*F.r/K))/2;Ii(F,function(ye){ye.r+=te}),Ii(F,m4),Ii(F,function(ye){ye.r-=te})}return y4(F,$/2,K/2,C?1:1/Math.max(2*F.r/$,2*F.r/K)),P}return q.size=function(L){return arguments.length?(T=L,q):T},q.radius=function(L){return arguments.length?(C=L==null||typeof L=="function"?L:+L,q):C},q.padding=function(L){return arguments.length?(g=+L,q):g},wc(q,v)};function CX(v,g){return v.value-g.value}function xy(v,g){var T=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=T,T._pack_prev=g}function h4(v,g){v._pack_next=g,g._pack_prev=v}function p4(v,g){var T=g.x-v.x,C=g.y-v.y,q=v.r+g.r;return .999*q*q>T*T+C*C}function m4(v){if(!(g=v.children)||!(te=g.length))return;var g,T=1/0,C=-1/0,q=1/0,L=-1/0,z,P,F,$,K,re,te;function ye(pe){T=Math.min(pe.x-pe.r,T),C=Math.max(pe.x+pe.r,C),q=Math.min(pe.y-pe.r,q),L=Math.max(pe.y+pe.r,L)}if(g.forEach(qX),z=g[0],z.x=-z.r,z.y=0,ye(z),te>1&&(P=g[1],P.x=P.r,P.y=0,ye(P),te>2))for(F=g[2],g4(z,P,F),ye(F),xy(z,F),z._pack_prev=F,xy(F,P),P=z._pack_next,$=3;$ue.x&&(ue=Ye),Ye.depth>de.depth&&(de=Ye)});var Te=g(ae,ue)/2-ae.x,Me=T[0]/(ue.x+g(ue,ae)/2+Te),pe=T[1]/(de.depth||1);Tc(ye,function(Ye){Ye.x=(Ye.x+Te)*Me,Ye.y=Ye.depth*pe})}return te}function L(K){for(var re={A:null,children:[K]},te=[re],ye;(ye=te.pop())!=null;)for(var Ae=ye.children,ae,ue=0,de=Ae.length;ue0&&(LX(EX(ae,K,te),K,Ye),de+=Ye,Te+=Ye),Me+=ae.m,de+=ye.m,pe+=ue.m,Te+=Ae.m;ae&&!_y(Ae)&&(Ae.t=ae,Ae.m+=Me-Te),ye&&!by(ue)&&(ue.t=ye,ue.m+=de-pe,te=K)}return te}function $(K){K.x*=T[0],K.y=K.depth*T[1]}return q.separation=function(K){return arguments.length?(g=K,q):g},q.size=function(K){return arguments.length?(C=(T=K)==null?$:null,q):C?null:T},q.nodeSize=function(K){return arguments.length?(C=(T=K)==null?null:$,q):C?T:null},wc(q,v)};function x4(v,g){return v.parent==g.parent?1:2}function by(v){var g=v.children;return g.length?g[0]:v.t}function _y(v){var g=v.children,T;return(T=g.length)?g[T-1]:v.t}function LX(v,g,T){var C=T/(g.i-v.i);g.c-=C,g.s+=T,v.c+=C,g.z+=T,g.m+=T}function DX(v){for(var g=0,T=0,C=v.children,q=C.length,L;--q>=0;)L=C[q],L.z+=g,L.m+=g,g+=L.s+(T+=L.c)}function EX(v,g,T){return v.a.parent===g.parent?v.a:T}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=x4,T=[1,1],C=!1;function q(L,z){var P=v.call(this,L,z),F=P[0],$,K=0;Ii(F,function(ae){var ue=ae.children;ue&&ue.length?(ae.x=RX(ue),ae.y=PX(ue)):(ae.x=$?K+=g(ae,$):0,ae.y=0,$=ae)});var re=b4(F),te=_4(F),ye=re.x-g(re,te)/2,Ae=te.x+g(te,re)/2;return Ii(F,C?function(ae){ae.x=(ae.x-F.x)*T[0],ae.y=(F.y-ae.y)*T[1]}:function(ae){ae.x=(ae.x-ye)/(Ae-ye)*T[0],ae.y=(1-(F.y?ae.y/F.y:1))*T[1]}),P}return q.separation=function(L){return arguments.length?(g=L,q):g},q.size=function(L){return arguments.length?(C=(T=L)==null,q):C?null:T},q.nodeSize=function(L){return arguments.length?(C=(T=L)!=null,q):C?T:null},wc(q,v)};function PX(v){return 1+e.max(v,function(g){return g.y})}function RX(v){return v.reduce(function(g,T){return g+T.x},0)/v.length}function b4(v){var g=v.children;return g&&g.length?b4(g[0]):v}function _4(v){var g=v.children,T;return g&&(T=g.length)?_4(g[T-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,T=[1,1],C=null,q=wy,L=!1,z,P="squarify",F=.5*(1+Math.sqrt(5));function $(ae,ue){for(var de=-1,Te=ae.length,Me,pe;++de0;)Te.push(pe=Me[lr-1]),Te.area+=pe.area,P!=="squarify"||(nr=te(Te,fr))<=Ye?(Me.pop(),Ye=nr):(Te.area-=Te.pop().area,ye(Te,fr,de,!1),fr=Math.min(de.dx,de.dy),Te.length=Te.area=0,Ye=1/0);Te.length&&(ye(Te,fr,de,!0),Te.length=Te.area=0),ue.forEach(K)}}function re(ae){var ue=ae.children;if(ue&&ue.length){var de=q(ae),Te=ue.slice(),Me,pe=[];for($(Te,de.dx*de.dy/ae.value),pe.area=0;Me=Te.pop();)pe.push(Me),pe.area+=Me.area,Me.z!=null&&(ye(pe,Me.z?de.dx:de.dy,de,!Te.length),pe.length=pe.area=0);ue.forEach(re)}}function te(ae,ue){for(var de=ae.area,Te,Me=0,pe=1/0,Ye=-1,nr=ae.length;++YeMe&&(Me=Te));return de*=de,ue*=ue,de?Math.max(ue*Me*F/de,de/(ue*pe*F)):1/0}function ye(ae,ue,de,Te){var Me=-1,pe=ae.length,Ye=de.x,nr=de.y,fr=ue?g(ae.area/ue):0,lr;if(ue==de.dx){for((Te||fr>de.dy)&&(fr=de.dy);++Mede.dx)&&(fr=de.dx);++Me1);return v+g*C*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,T=0;T2?FX:zX,$=C?aX:tX;return q=F(v,g,$,T),L=F(g,v,$,Uo),P}function P(F){return q(F)}return P.invert=function(F){return L(F)},P.domain=function(F){return arguments.length?(v=F.map(Number),z()):v},P.range=function(F){return arguments.length?(g=F,z()):g},P.rangeRound=function(F){return P.range(F).interpolate(i4)},P.clamp=function(F){return arguments.length?(C=F,z()):C},P.interpolate=function(F){return arguments.length?(T=F,z()):T},P.ticks=function(F){return My(v,F)},P.tickFormat=function(F,$){return d3_scale_linearTickFormat(v,F,$)},P.nice=function(F){return k4(v,F),z()},P.copy=function(){return A4(v,g,T,C)},z()}function M4(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function k4(v,g){return Ty(v,T4(Ay(v,g)[2])),Ty(v,T4(Ay(v,g)[2])),v}function Ay(v,g){g==null&&(g=10);var T=ad(v),C=T[1]-T[0],q=Math.pow(10,Math.floor(Math.log(C/g)/Math.LN10)),L=g/C*q;return L<=.15?q*=10:L<=.35?q*=5:L<=.75&&(q*=2),T[0]=Math.ceil(T[0]/q)*q,T[1]=Math.floor(T[1]/q)*q+q*.5,T[2]=q,T}function My(v,g){return e.range.apply(e,Ay(v,g))}var IX={s:1,g:1,p:1,r:1,e:1};function C4(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function Mme(v,g){var T=C4(g[2]);return v in IX?Math.abs(T-C4(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):T-(v==="%")*2}e.scale.log=function(){return q4(e.scale.linear().domain([0,1]),10,!0,[1,10])};function q4(v,g,T,C){function q(P){return(T?Math.log(P<0?0:P):-Math.log(P>0?0:-P))/Math.log(g)}function L(P){return T?Math.pow(g,P):-Math.pow(g,-P)}function z(P){return v(q(P))}return z.invert=function(P){return L(v.invert(P))},z.domain=function(P){return arguments.length?(T=P[0]>=0,v.domain((C=P.map(Number)).map(q)),z):C},z.base=function(P){return arguments.length?(g=+P,v.domain(C.map(q)),z):g},z.nice=function(){var P=Ty(C.map(q),T?Math:HX);return v.domain(P),C=P.map(L),z},z.ticks=function(){var P=ad(C),F=[],$=P[0],K=P[1],re=Math.floor(q($)),te=Math.ceil(q(K)),ye=g%1?2:g;if(isFinite(te-re)){if(T){for(;re0;Ae--)F.push(L(re)*Ae);for(re=0;F[re]<$;re++);for(te=F.length;F[te-1]>K;te--);F=F.slice(re,te)}return F},z.copy=function(){return q4(v.copy(),g,T,C)},M4(z,v)}var HX={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return S4(e.scale.linear(),1,[0,1])};function S4(v,g,T){var C=id(g),q=id(1/g);function L(z){return v(C(z))}return L.invert=function(z){return q(v.invert(z))},L.domain=function(z){return arguments.length?(v.domain((T=z.map(Number)).map(C)),L):T},L.ticks=function(z){return My(T,z)},L.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},L.nice=function(z){return L.domain(k4(T,z))},L.exponent=function(z){return arguments.length?(C=id(g=z),q=id(1/g),v.domain(T.map(C)),L):g},L.copy=function(){return S4(v.copy(),g,T)},M4(L,v)}function id(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return L4([],{t:"range",a:[[]]})};function L4(v,g){var T,C,q;function L(P){return C[((T.get(P)||(g.t==="range"?T.set(P,v.push(P)):NaN))-1)%C.length]}function z(P,F){return e.range(v.length).map(function($){return P+F*$})}return L.domain=function(P){if(!arguments.length)return v;v=[],T=new x;for(var F=-1,$=P.length,K;++F<$;)T.has(K=P[F])||T.set(K,v.push(K));return L[g.t].apply(L,g.a)},L.range=function(P){return arguments.length?(C=P,q=0,g={t:"range",a:arguments},L):C},L.rangePoints=function(P,F){arguments.length<2&&(F=0);var $=P[0],K=P[1],re=v.length<2?($=($+K)/2,0):(K-$)/(v.length-1+F);return C=z($+re*F/2,re),q=0,g={t:"rangePoints",a:arguments},L},L.rangeRoundPoints=function(P,F){arguments.length<2&&(F=0);var $=P[0],K=P[1],re=v.length<2?($=K=Math.round(($+K)/2),0):(K-$)/(v.length-1+F)|0;return C=z($+Math.round(re*F/2+(K-$-(v.length-1+F)*re)/2),re),q=0,g={t:"rangeRoundPoints",a:arguments},L},L.rangeBands=function(P,F,$){arguments.length<2&&(F=0),arguments.length<3&&($=F);var K=P[1]0?T[L-1]:v[0],Lte?0:1;if(K<$&&(ae=K,K=$,$=ae),ye>=cr)return F(K,Ae)+($?F($,1-Ae):"")+"Z";var ae,ue,de,Te,Me=0,pe=0,Ye,nr,fr,lr,hr,pr,Lr,mr,Ar=[];if((Te=(+z.apply(this,arguments)||0)/2)&&(de=C===ld?Math.sqrt($*$+K*K):+C.apply(this,arguments),Ae||(pe*=-1),K&&(pe=wt(de/K*Math.sin(Te))),$&&(Me=wt(de/$*Math.sin(Te)))),K){Ye=K*Math.cos(re+pe),nr=K*Math.sin(re+pe),fr=K*Math.cos(te-pe),lr=K*Math.sin(te-pe);var Qr=Math.abs(te-re-2*pe)<=Pe?0:1;if(pe&&od(Ye,nr,fr,lr)===Ae^Qr){var Nt=(re+te)/2;Ye=K*Math.cos(Nt),nr=K*Math.sin(Nt),fr=lr=null}}else Ye=nr=0;if($){hr=$*Math.cos(te-Me),pr=$*Math.sin(te-Me),Lr=$*Math.cos(re+Me),mr=$*Math.sin(re+Me);var tt=Math.abs(re-te+2*Me)<=Pe?0:1;if(Me&&od(hr,pr,Lr,mr)===1-Ae^tt){var rr=(re+te)/2;hr=$*Math.cos(rr),pr=$*Math.sin(rr),Lr=mr=null}}else hr=pr=0;if(ye>se&&(ae=Math.min(Math.abs(K-$)/2,+T.apply(this,arguments)))>.001){ue=$0?0:1}function sd(v,g,T,C,q){var L=v[0]-g[0],z=v[1]-g[1],P=(q?C:-C)/Math.sqrt(L*L+z*z),F=P*z,$=-P*L,K=v[0]+F,re=v[1]+$,te=g[0]+F,ye=g[1]+$,Ae=(K+te)/2,ae=(re+ye)/2,ue=te-K,de=ye-re,Te=ue*ue+de*de,Me=T-C,pe=K*ye-te*re,Ye=(de<0?-1:1)*Math.sqrt(Math.max(0,Me*Me*Te-pe*pe)),nr=(pe*de-ue*Ye)/Te,fr=(-pe*ue-de*Ye)/Te,lr=(pe*de+ue*Ye)/Te,hr=(-pe*ue+de*Ye)/Te,pr=nr-Ae,Lr=fr-ae,mr=lr-Ae,Ar=hr-ae;return pr*pr+Lr*Lr>mr*mr+Ar*Ar&&(nr=lr,fr=hr),[[nr-F,fr-$],[nr*T/Me,fr*T/Me]]}function F4(){return!0}function I4(v){var g=yu,T=mc,C=F4,q=ci,L=q.key,z=.7;function P(F){var $=[],K=[],re=-1,te=F.length,ye,Ae=Nr(g),ae=Nr(T);function ue(){$.push("M",q(v(K),z))}for(;++re1?v.join("L"):v+"Z"}function H4(v){return v.join("L")+"Z"}function ZX(v){for(var g=0,T=v.length,C=v[0],q=[C[0],",",C[1]];++g1&&q.push("H",C[0]),q.join("")}function Cy(v){for(var g=0,T=v.length,C=v[0],q=[C[0],",",C[1]];++g1){P=g[1],L=v[F],F++,C+="C"+(q[0]+z[0])+","+(q[1]+z[1])+","+(L[0]-P[0])+","+(L[1]-P[1])+","+L[0]+","+L[1];for(var $=2;$9&&(L=T*3/Math.sqrt(L),z[P]=L*C,z[P+1]=L*q));for(P=-1;++P<=F;)L=(v[Math.min(F,P+1)][0]-v[Math.max(0,P-1)][0])/(6*(1+z[P]*z[P])),g.push([L||0,z[P]*L||0]);return g}function aW(v){return v.length<3?ci(v):v[0]+ud(v,tW(v))}e.svg.line.radial=function(){var v=I4(V4);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function V4(v){for(var g,T=-1,C=v.length,q,L;++TPe)+",1 "+re}function $(K,re,te,ye){return"Q 0,0 "+ye}return L.radius=function(K){return arguments.length?(T=Nr(K),L):T},L.source=function(K){return arguments.length?(v=Nr(K),L):v},L.target=function(K){return arguments.length?(g=Nr(K),L):g},L.startAngle=function(K){return arguments.length?(C=Nr(K),L):C},L.endAngle=function(K){return arguments.length?(q=Nr(K),L):q},L};function nW(v){return v.radius}e.svg.diagonal=function(){var v=G4,g=X4,T=W4;function C(q,L){var z=v.call(this,q,L),P=g.call(this,q,L),F=(z.y+P.y)/2,$=[z,{x:z.x,y:F},{x:P.x,y:F},P];return $=$.map(T),"M"+$[0]+"C"+$[1]+" "+$[2]+" "+$[3]}return C.source=function(q){return arguments.length?(v=Nr(q),C):v},C.target=function(q){return arguments.length?(g=Nr(q),C):g},C.projection=function(q){return arguments.length?(T=q,C):T},C};function W4(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=W4,T=v.projection;return v.projection=function(C){return arguments.length?T(iW(g=C)):g},v};function iW(v){return function(){var g=v.apply(this,arguments),T=g[0],C=g[1]-sr;return[T*Math.cos(C),T*Math.sin(C)]}}e.svg.symbol=function(){var v=oW,g=lW;function T(C,q){return(J4.get(v.call(this,C,q))||Z4)(g.call(this,C,q))}return T.type=function(C){return arguments.length?(v=Nr(C),T):v},T.size=function(C){return arguments.length?(g=Nr(C),T):g},T};function lW(){return 64}function oW(){return"circle"}function Z4(v){var g=Math.sqrt(v/Pe);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var J4=e.map({circle:Z4,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*$4)),T=g*$4;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/fd),T=g*fd/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/fd),T=g*fd/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=J4.keys();var fd=Math.sqrt(3),$4=Math.tan(30*Mr);ge.transition=function(v){for(var g=Go||++Q4,T=Py(v),C=[],q,L,z=vd||{time:Date.now(),ease:HG,delay:0,duration:250},P=-1,F=this.length;++P0;)re[--Te].call(v,de);if(ue>=1)return z.event&&z.event.end.call(v,v.__data__,g),--L.count?delete L[C]:delete v[T],1}z||(P=q.time,F=$0(te,0,P),z=L[C]={tween:new x,time:P,timer:F,delay:q.delay,duration:q.duration,ease:q.ease,index:g},q=null,++L.count)}e.svg.axis=function(){var v=e.scale.linear(),g=j4,T=6,C=6,q=3,L=[10],z=null,P;function F($){$.each(function(){var K=e.select(this),re=this.__chart__||v,te=this.__chart__=v.copy(),ye=z==null?te.ticks?te.ticks.apply(te,L):te.domain():z,Ae=P==null?te.tickFormat?te.tickFormat.apply(te,L):Y:P,ae=K.selectAll(".tick").data(ye,te),ue=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",se),de=e.transition(ae.exit()).style("opacity",se).remove(),Te=e.transition(ae.order()).style("opacity",1),Me=Math.max(T,0)+q,pe,Ye=nd(te),nr=K.selectAll(".domain").data([0]),fr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));ue.append("line"),ue.append("text");var lr=ue.select("line"),hr=Te.select("line"),pr=ae.select("text").text(Ae),Lr=ue.select("text"),mr=Te.select("text"),Ar=g==="top"||g==="left"?-1:1,Qr,Nt,tt,rr;if(g==="bottom"||g==="top"?(pe=fW,Qr="x",tt="y",Nt="x2",rr="y2",pr.attr("dy",Ar<0?"0em":".71em").style("text-anchor","middle"),fr.attr("d","M"+Ye[0]+","+Ar*C+"V0H"+Ye[1]+"V"+Ar*C)):(pe=cW,Qr="y",tt="x",Nt="y2",rr="x2",pr.attr("dy",".32em").style("text-anchor",Ar<0?"end":"start"),fr.attr("d","M"+Ar*C+","+Ye[0]+"H0V"+Ye[1]+"H"+Ar*C)),lr.attr(rr,Ar*T),Lr.attr(tt,Ar*Me),hr.attr(Nt,0).attr(rr,Ar*T),mr.attr(Qr,0).attr(tt,Ar*Me),te.rangeBand){var Dr=te,Er=Dr.rangeBand()/2;re=te=function(jr){return Dr(jr)+Er}}else re.rangeBand?re=te:de.call(pe,te,re);ue.call(pe,re,te),Te.call(pe,te,te)})}return F.scale=function($){return arguments.length?(v=$,F):v},F.orient=function($){return arguments.length?(g=$ in uW?$+"":j4,F):g},F.ticks=function(){return arguments.length?(L=t(arguments),F):L},F.tickValues=function($){return arguments.length?(z=$,F):z},F.tickFormat=function($){return arguments.length?(P=$,F):P},F.tickSize=function($){var K=arguments.length;return K?(T=+$,C=+arguments[K-1],F):T},F.innerTickSize=function($){return arguments.length?(T=+$,F):T},F.outerTickSize=function($){return arguments.length?(C=+$,F):C},F.tickPadding=function($){return arguments.length?(q=+$,F):q},F.tickSubdivide=function(){return arguments.length&&F},F};var j4="bottom",uW={top:1,right:1,bottom:1,left:1};function fW(v,g,T){v.attr("transform",function(C){var q=g(C);return"translate("+(isFinite(q)?q:T(C))+",0)"})}function cW(v,g,T){v.attr("transform",function(C){var q=g(C);return"translate(0,"+(isFinite(q)?q:T(C))+")"})}e.svg.brush=function(){var v=fe(K,"brushstart","brush","brushend"),g=null,T=null,C=[0,0],q=[0,0],L,z,P=!0,F=!0,$=Ry[0];function K(ae){ae.each(function(){var ue=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ae).on("touchstart.brush",Ae),de=ue.selectAll(".background").data([0]);de.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ue.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Te=ue.selectAll(".resize").data($,Y);Te.exit().remove(),Te.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return vW[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Te.style("display",K.empty()?"none":null);var Me=e.transition(ue),pe=e.transition(de),Ye;g&&(Ye=nd(g),pe.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),te(Me)),T&&(Ye=nd(T),pe.attr("y",Ye[0]).attr("height",Ye[1]-Ye[0]),ye(Me)),re(Me)})}K.event=function(ae){ae.each(function(){var ue=v.of(this,arguments),de={x:C,y:q,i:L,j:z},Te=this.__chart__||de;this.__chart__=de,Go?e.select(this).transition().each("start.brush",function(){L=Te.i,z=Te.j,C=Te.x,q=Te.y,ue({type:"brushstart"})}).tween("brush:brush",function(){var Me=td(C,de.x),pe=td(q,de.y);return L=z=null,function(Ye){C=de.x=Me(Ye),q=de.y=pe(Ye),ue({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=de.i,z=de.j,ue({type:"brush",mode:"resize"}),ue({type:"brushend"})}):(ue({type:"brushstart"}),ue({type:"brush",mode:"resize"}),ue({type:"brushend"}))})};function re(ae){ae.selectAll(".resize").attr("transform",function(ue){return"translate("+C[+/e$/.test(ue)]+","+q[+/^s/.test(ue)]+")"})}function te(ae){ae.select(".extent").attr("x",C[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function ye(ae){ae.select(".extent").attr("y",q[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ae(){var ae=this,ue=e.select(e.event.target),de=v.of(ae,arguments),Te=e.select(ae),Me=ue.datum(),pe=!/^(n|s)$/.test(Me)&&g,Ye=!/^(e|w)$/.test(Me)&&T,nr=ue.classed("extent"),fr=ar(ae),lr,hr=e.mouse(ae),pr,Lr=e.select(i(ae)).on("keydown.brush",Qr).on("keyup.brush",Nt);if(e.event.changedTouches?Lr.on("touchmove.brush",tt).on("touchend.brush",Dr):Lr.on("mousemove.brush",tt).on("mouseup.brush",Dr),Te.interrupt().selectAll("*").interrupt(),nr)hr[0]=C[0]-hr[0],hr[1]=q[0]-hr[1];else if(Me){var mr=+/w$/.test(Me),Ar=+/^n/.test(Me);pr=[C[1-mr]-hr[0],q[1-Ar]-hr[1]],hr[0]=C[mr],hr[1]=q[Ar]}else e.event.altKey&&(lr=hr.slice());Te.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ue.style("cursor")),de({type:"brushstart"}),tt();function Qr(){e.event.keyCode==32&&(nr||(lr=null,hr[0]-=C[1],hr[1]-=q[1],nr=2),ee())}function Nt(){e.event.keyCode==32&&nr==2&&(hr[0]+=C[1],hr[1]+=q[1],nr=0,ee())}function tt(){var Er=e.mouse(ae),jr=!1;pr&&(Er[0]+=pr[0],Er[1]+=pr[1]),nr||(e.event.altKey?(lr||(lr=[(C[0]+C[1])/2,(q[0]+q[1])/2]),hr[0]=C[+(Er[0]{(function(e,r){typeof xd=="object"&&typeof s6!="undefined"?r(xd):(e=e||self,r(e.d3=e.d3||{}))})(xd,function(e){"use strict";var r=new Date,t=new Date;function a(ie,we,$e,dr){function Ne(ke){return ie(ke=arguments.length===0?new Date:new Date(+ke)),ke}return Ne.floor=function(ke){return ie(ke=new Date(+ke)),ke},Ne.ceil=function(ke){return ie(ke=new Date(ke-1)),we(ke,1),ie(ke),ke},Ne.round=function(ke){var Ce=Ne(ke),Be=Ne.ceil(ke);return ke-Ce0))return Ze;do Ze.push(Ve=new Date(+ke)),we(ke,Be),ie(ke);while(Ve=Ce)for(;ie(Ce),!ke(Ce);)Ce.setTime(Ce-1)},function(Ce,Be){if(Ce>=Ce)if(Be<0)for(;++Be<=0;)for(;we(Ce,-1),!ke(Ce););else for(;--Be>=0;)for(;we(Ce,1),!ke(Ce););})},$e&&(Ne.count=function(ke,Ce){return r.setTime(+ke),t.setTime(+Ce),ie(r),ie(t),Math.floor($e(r,t))},Ne.every=function(ke){return ke=Math.floor(ke),!isFinite(ke)||!(ke>0)?null:ke>1?Ne.filter(dr?function(Ce){return dr(Ce)%ke===0}:function(Ce){return Ne.count(0,Ce)%ke===0}):Ne}),Ne}var n=a(function(){},function(ie,we){ie.setTime(+ie+we)},function(ie,we){return we-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(we){we.setTime(Math.floor(we/ie)*ie)},function(we,$e){we.setTime(+we+$e*ie)},function(we,$e){return($e-we)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,we){ie.setTime(+ie+we*l)},function(ie,we){return(we-ie)/l},function(ie){return ie.getUTCSeconds()}),d=c.range,h=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,we){ie.setTime(+ie+we*o)},function(ie,we){return(we-ie)/o},function(ie){return ie.getMinutes()}),p=h.range,m=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,we){ie.setTime(+ie+we*s)},function(ie,we){return(we-ie)/s},function(ie){return ie.getHours()}),y=m.range,b=a(function(ie){ie.setHours(0,0,0,0)},function(ie,we){ie.setDate(ie.getDate()+we)},function(ie,we){return(we-ie-(we.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),_=b.range;function w(ie){return a(function(we){we.setDate(we.getDate()-(we.getDay()+7-ie)%7),we.setHours(0,0,0,0)},function(we,$e){we.setDate(we.getDate()+$e*7)},function(we,$e){return($e-we-($e.getTimezoneOffset()-we.getTimezoneOffset())*o)/f})}var x=w(0),A=w(1),k=w(2),M=w(3),S=w(4),D=w(5),E=w(6),R=x.range,N=A.range,H=k.range,I=M.range,Y=S.range,G=D.range,V=E.range,U=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,we){ie.setMonth(ie.getMonth()+we)},function(ie,we){return we.getMonth()-ie.getMonth()+(we.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),B=U.range,J=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,we){ie.setFullYear(ie.getFullYear()+we)},function(ie,we){return we.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});J.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(we){we.setFullYear(Math.floor(we.getFullYear()/ie)*ie),we.setMonth(0,1),we.setHours(0,0,0,0)},function(we,$e){we.setFullYear(we.getFullYear()+$e*ie)})};var X=J.range,ee=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,we){ie.setTime(+ie+we*o)},function(ie,we){return(we-ie)/o},function(ie){return ie.getUTCMinutes()}),le=ee.range,fe=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,we){ie.setTime(+ie+we*s)},function(ie,we){return(we-ie)/s},function(ie){return ie.getUTCHours()}),ce=fe.range,j=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,we){ie.setUTCDate(ie.getUTCDate()+we)},function(ie,we){return(we-ie)/u},function(ie){return ie.getUTCDate()-1}),qe=j.range;function ve(ie){return a(function(we){we.setUTCDate(we.getUTCDate()-(we.getUTCDay()+7-ie)%7),we.setUTCHours(0,0,0,0)},function(we,$e){we.setUTCDate(we.getUTCDate()+$e*7)},function(we,$e){return($e-we)/f})}var be=ve(0),_e=ve(1),ge=ve(2),W=ve(3),Q=ve(4),Z=ve(5),oe=ve(6),me=be.range,xe=_e.range,ze=ge.range,Ee=W.range,Se=Q.range,Ue=Z.range,Ie=oe.range,We=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,we){ie.setUTCMonth(ie.getUTCMonth()+we)},function(ie,we){return we.getUTCMonth()-ie.getUTCMonth()+(we.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),De=We.range,He=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,we){ie.setUTCFullYear(ie.getUTCFullYear()+we)},function(ie,we){return we.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});He.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(we){we.setUTCFullYear(Math.floor(we.getUTCFullYear()/ie)*ie),we.setUTCMonth(0,1),we.setUTCHours(0,0,0,0)},function(we,$e){we.setUTCFullYear(we.getUTCFullYear()+$e*ie)})};var Xe=He.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=G,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=N,e.timeMonth=U,e.timeMonths=B,e.timeSaturday=E,e.timeSaturdays=V,e.timeSecond=c,e.timeSeconds=d,e.timeSunday=x,e.timeSundays=R,e.timeThursday=S,e.timeThursdays=Y,e.timeTuesday=k,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=I,e.timeWeek=x,e.timeWeeks=R,e.timeYear=J,e.timeYears=X,e.utcDay=j,e.utcDays=qe,e.utcFriday=Z,e.utcFridays=Ue,e.utcHour=fe,e.utcHours=ce,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=le,e.utcMonday=_e,e.utcMondays=xe,e.utcMonth=We,e.utcMonths=De,e.utcSaturday=oe,e.utcSaturdays=Ie,e.utcSecond=c,e.utcSeconds=d,e.utcSunday=be,e.utcSundays=me,e.utcThursday=Q,e.utcThursdays=Se,e.utcTuesday=ge,e.utcTuesdays=ze,e.utcWednesday=W,e.utcWednesdays=Ee,e.utcWeek=be,e.utcWeeks=me,e.utcYear=He,e.utcYears=Xe,Object.defineProperty(e,"__esModule",{value:!0})})});var Au=O((bd,u6)=>{(function(e,r){typeof bd=="object"&&typeof u6!="undefined"?r(bd,zy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(bd,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var se=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return se.setFullYear(ne.y),se}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var se=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return se.setUTCFullYear(ne.y),se}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,se,Le){return{y:ne,m:se,d:Le,H:0,M:0,S:0,L:0}}function i(ne){var se=ne.dateTime,Le=ne.date,Pe=ne.time,Qe=ne.periods,cr=ne.days,sr=ne.shortDays,Mr=ne.months,Hr=ne.shortMonths,Kr=d(Qe),ft=h(Qe),kt=d(cr),wt=h(cr),$t=d(sr),Vt=h(sr),$a=d(Mr),_a=h(Mr),va=d(Hr),Ka=h(Hr),da={a:Gt,A:Oo,b:Il,B:V0,c:null,d:U,e:U,f:le,H:B,I:J,j:X,L:ee,m:fe,M:ce,p:U0,q:dc,Q:Ce,s:Be,S:j,u:qe,U:ve,V:be,w:_e,W:ge,x:null,X:null,y:W,Y:Q,Z,"%":ke},ha={a:hc,A:pc,b:Ha,B:G0,c:null,d:oe,e:oe,f:Se,H:me,I:xe,j:ze,L:Ee,m:Ue,M:Ie,p:pu,q:mu,Q:Ce,s:Be,S:We,u:De,U:He,V:Xe,w:ie,W:we,x:null,X:null,y:$e,Y:dr,Z:Ne,"%":ke},vr={a:ma,A:nt,b:an,B:ui,c:ra,d:S,e:S,f:I,H:E,I:E,j:D,L:H,m:M,M:R,p:pa,q:k,Q:G,s:V,S:N,u:m,U:y,V:b,w:p,W:_,x:mt,X:Ut,y:x,Y:w,Z:A,"%":Y};da.x=ct(Le,da),da.X=ct(Pe,da),da.c=ct(se,da),ha.x=ct(Le,ha),ha.X=ct(Pe,ha),ha.c=ct(se,ha);function ct(yr,Xr){return function(et){var or=[],wa=-1,vt=0,Ta=yr.length,Nr,fi,Yo;for(et instanceof Date||(et=new Date(+et));++wa53)return null;"w"in or||(or.w=1),"Z"in or?(vt=a(n(or.y,0,1)),Ta=vt.getUTCDay(),vt=Ta>4||Ta===0?r.utcMonday.ceil(vt):r.utcMonday(vt),vt=r.utcDay.offset(vt,(or.V-1)*7),or.y=vt.getUTCFullYear(),or.m=vt.getUTCMonth(),or.d=vt.getUTCDate()+(or.w+6)%7):(vt=t(n(or.y,0,1)),Ta=vt.getDay(),vt=Ta>4||Ta===0?r.timeMonday.ceil(vt):r.timeMonday(vt),vt=r.timeDay.offset(vt,(or.V-1)*7),or.y=vt.getFullYear(),or.m=vt.getMonth(),or.d=vt.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),Ta="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(Ta+5)%7:or.w+or.U*7-(Ta+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function lt(yr,Xr,et,or){for(var wa=0,vt=Xr.length,Ta=et.length,Nr,fi;wa=Ta)return-1;if(Nr=Xr.charCodeAt(wa++),Nr===37){if(Nr=Xr.charAt(wa++),fi=vr[Nr in l?Xr.charAt(wa++):Nr],!fi||(or=fi(yr,et,or))<0)return-1}else if(Nr!=et.charCodeAt(or++))return-1}return or}function pa(yr,Xr,et){var or=Kr.exec(Xr.slice(et));return or?(yr.p=ft[or[0].toLowerCase()],et+or[0].length):-1}function ma(yr,Xr,et){var or=$t.exec(Xr.slice(et));return or?(yr.w=Vt[or[0].toLowerCase()],et+or[0].length):-1}function nt(yr,Xr,et){var or=kt.exec(Xr.slice(et));return or?(yr.w=wt[or[0].toLowerCase()],et+or[0].length):-1}function an(yr,Xr,et){var or=va.exec(Xr.slice(et));return or?(yr.m=Ka[or[0].toLowerCase()],et+or[0].length):-1}function ui(yr,Xr,et){var or=$a.exec(Xr.slice(et));return or?(yr.m=_a[or[0].toLowerCase()],et+or[0].length):-1}function ra(yr,Xr,et){return lt(yr,se,Xr,et)}function mt(yr,Xr,et){return lt(yr,Le,Xr,et)}function Ut(yr,Xr,et){return lt(yr,Pe,Xr,et)}function Gt(yr){return sr[yr.getDay()]}function Oo(yr){return cr[yr.getDay()]}function Il(yr){return Hr[yr.getMonth()]}function V0(yr){return Mr[yr.getMonth()]}function U0(yr){return Qe[+(yr.getHours()>=12)]}function dc(yr){return 1+~~(yr.getMonth()/3)}function hc(yr){return sr[yr.getUTCDay()]}function pc(yr){return cr[yr.getUTCDay()]}function Ha(yr){return Hr[yr.getUTCMonth()]}function G0(yr){return Mr[yr.getUTCMonth()]}function pu(yr){return Qe[+(yr.getUTCHours()>=12)]}function mu(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var Xr=ct(yr+="",da);return Xr.toString=function(){return yr},Xr},parse:function(yr){var Xr=Jr(yr+="",!1);return Xr.toString=function(){return yr},Xr},utcFormat:function(yr){var Xr=ct(yr+="",ha);return Xr.toString=function(){return yr},Xr},utcParse:function(yr){var Xr=Jr(yr+="",!0);return Xr.toString=function(){return yr},Xr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,se,Le){var Pe=ne<0?"-":"",Qe=(Pe?-ne:ne)+"",cr=Qe.length;return Pe+(cr68?1900:2e3),Le+Pe[0].length):-1}function A(ne,se,Le){var Pe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(se.slice(Le,Le+6));return Pe?(ne.Z=Pe[1]?0:-(Pe[2]+(Pe[3]||"00")),Le+Pe[0].length):-1}function k(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+1));return Pe?(ne.q=Pe[0]*3-3,Le+Pe[0].length):-1}function M(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.m=Pe[0]-1,Le+Pe[0].length):-1}function S(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.d=+Pe[0],Le+Pe[0].length):-1}function D(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+3));return Pe?(ne.m=0,ne.d=+Pe[0],Le+Pe[0].length):-1}function E(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.H=+Pe[0],Le+Pe[0].length):-1}function R(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.M=+Pe[0],Le+Pe[0].length):-1}function N(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+2));return Pe?(ne.S=+Pe[0],Le+Pe[0].length):-1}function H(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+3));return Pe?(ne.L=+Pe[0],Le+Pe[0].length):-1}function I(ne,se,Le){var Pe=o.exec(se.slice(Le,Le+6));return Pe?(ne.L=Math.floor(Pe[0]/1e3),Le+Pe[0].length):-1}function Y(ne,se,Le){var Pe=s.exec(se.slice(Le,Le+1));return Pe?Le+Pe[0].length:-1}function G(ne,se,Le){var Pe=o.exec(se.slice(Le));return Pe?(ne.Q=+Pe[0],Le+Pe[0].length):-1}function V(ne,se,Le){var Pe=o.exec(se.slice(Le));return Pe?(ne.s=+Pe[0],Le+Pe[0].length):-1}function U(ne,se){return f(ne.getDate(),se,2)}function B(ne,se){return f(ne.getHours(),se,2)}function J(ne,se){return f(ne.getHours()%12||12,se,2)}function X(ne,se){return f(1+r.timeDay.count(r.timeYear(ne),ne),se,3)}function ee(ne,se){return f(ne.getMilliseconds(),se,3)}function le(ne,se){return ee(ne,se)+"000"}function fe(ne,se){return f(ne.getMonth()+1,se,2)}function ce(ne,se){return f(ne.getMinutes(),se,2)}function j(ne,se){return f(ne.getSeconds(),se,2)}function qe(ne){var se=ne.getDay();return se===0?7:se}function ve(ne,se){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),se,2)}function be(ne,se){var Le=ne.getDay();return ne=Le>=4||Le===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),se,2)}function _e(ne){return ne.getDay()}function ge(ne,se){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),se,2)}function W(ne,se){return f(ne.getFullYear()%100,se,2)}function Q(ne,se){return f(ne.getFullYear()%1e4,se,4)}function Z(ne){var se=ne.getTimezoneOffset();return(se>0?"-":(se*=-1,"+"))+f(se/60|0,"0",2)+f(se%60,"0",2)}function oe(ne,se){return f(ne.getUTCDate(),se,2)}function me(ne,se){return f(ne.getUTCHours(),se,2)}function xe(ne,se){return f(ne.getUTCHours()%12||12,se,2)}function ze(ne,se){return f(1+r.utcDay.count(r.utcYear(ne),ne),se,3)}function Ee(ne,se){return f(ne.getUTCMilliseconds(),se,3)}function Se(ne,se){return Ee(ne,se)+"000"}function Ue(ne,se){return f(ne.getUTCMonth()+1,se,2)}function Ie(ne,se){return f(ne.getUTCMinutes(),se,2)}function We(ne,se){return f(ne.getUTCSeconds(),se,2)}function De(ne){var se=ne.getUTCDay();return se===0?7:se}function He(ne,se){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),se,2)}function Xe(ne,se){var Le=ne.getUTCDay();return ne=Le>=4||Le===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),se,2)}function ie(ne){return ne.getUTCDay()}function we(ne,se){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),se,2)}function $e(ne,se){return f(ne.getUTCFullYear()%100,se,2)}function dr(ne,se){return f(ne.getUTCFullYear()%1e4,se,4)}function Ne(){return"+0000"}function ke(){return"%"}function Ce(ne){return+ne}function Be(ne){return Math.floor(+ne/1e3)}var Ze;Ve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ve(ne){return Ze=i(ne),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var Ge="%Y-%m-%dT%H:%M:%S.%LZ";function ir(ne){return ne.toISOString()}var ar=Date.prototype.toISOString?ir:e.utcFormat(Ge);function er(ne){var se=new Date(ne);return isNaN(se)?null:se}var Fe=+new Date("2000-01-01T00:00:00.000Z")?er:e.utcParse(Ge);e.isoFormat=ar,e.isoParse=Fe,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ny=O((_d,f6)=>{(function(e,r){typeof _d=="object"&&typeof f6!="undefined"?r(_d):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(_d,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,S){if((D=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var D,E=M.slice(0,D);return[E.length>1?E[0]+E.slice(2):E,+M.slice(D+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,S){return function(D,E){for(var R=D.length,N=[],H=0,I=M[0],Y=0;R>0&&I>0&&(Y+I+1>E&&(I=Math.max(1,E-Y)),N.push(D.substring(R-=I,R+I)),!((Y+=I+1)>E));)I=M[H=(H+1)%M.length];return N.reverse().join(S)}}function i(M){return function(S){return S.replace(/[0-9]/g,function(D){return M[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(M){if(!(S=l.exec(M)))throw new Error("invalid format: "+M);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}o.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var S=M.length,D=1,E=-1,R;D0&&(E=0);break}return E>0?M.slice(0,E)+M.slice(R+1):M}var f;function c(M,S){var D=t(M,S);if(!D)return M+"";var E=D[0],R=D[1],N=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,H=E.length;return N===H?E:N>H?E+new Array(N-H+1).join("0"):N>0?E.slice(0,N)+"."+E.slice(N):"0."+new Array(1-N).join("0")+t(M,Math.max(0,S+N-1))[0]}function d(M,S){var D=t(M,S);if(!D)return M+"";var E=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+E:E.length>R+1?E.slice(0,R+1)+"."+E.slice(R+1):E+new Array(R-E.length+2).join("0")}var h={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return d(M*100,S)},r:d,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var S=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),D=M.currency===void 0?"":M.currency[0]+"",E=M.currency===void 0?"":M.currency[1]+"",R=M.decimal===void 0?".":M.decimal+"",N=M.numerals===void 0?p:i(m.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",I=M.minus===void 0?"-":M.minus+"",Y=M.nan===void 0?"NaN":M.nan+"";function G(U){U=o(U);var B=U.fill,J=U.align,X=U.sign,ee=U.symbol,le=U.zero,fe=U.width,ce=U.comma,j=U.precision,qe=U.trim,ve=U.type;ve==="n"?(ce=!0,ve="g"):h[ve]||(j===void 0&&(j=12),qe=!0,ve="g"),(le||B==="0"&&J==="=")&&(le=!0,B="0",J="=");var be=ee==="$"?D:ee==="#"&&/[boxX]/.test(ve)?"0"+ve.toLowerCase():"",_e=ee==="$"?E:/[%p]/.test(ve)?H:"",ge=h[ve],W=/[defgprs%]/.test(ve);j=j===void 0?6:/[gprs]/.test(ve)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function Q(Z){var oe=be,me=_e,xe,ze,Ee;if(ve==="c")me=ge(Z)+me,Z="";else{Z=+Z;var Se=Z<0||1/Z<0;if(Z=isNaN(Z)?Y:ge(Math.abs(Z),j),qe&&(Z=u(Z)),Se&&+Z==0&&X!=="+"&&(Se=!1),oe=(Se?X==="("?X:I:X==="-"||X==="("?"":X)+oe,me=(ve==="s"?y[8+f/3]:"")+me+(Se&&X==="("?")":""),W){for(xe=-1,ze=Z.length;++xeEe||Ee>57){me=(Ee===46?R+Z.slice(xe+1):Z.slice(xe))+me,Z=Z.slice(0,xe);break}}}ce&&!le&&(Z=S(Z,1/0));var Ue=oe.length+Z.length+me.length,Ie=Ue>1)+oe+Z+me+Ie.slice(Ue);break;default:Z=Ie+oe+Z+me;break}return N(Z)}return Q.toString=function(){return U+""},Q}function V(U,B){var J=G((U=o(U),U.type="f",U)),X=Math.max(-8,Math.min(8,Math.floor(a(B)/3)))*3,ee=Math.pow(10,-X),le=y[8+X/3];return function(fe){return J(ee*fe)+le}}return{format:G,formatPrefix:V}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(M){return _=b(M),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(M){return Math.max(0,-a(Math.abs(M)))}function A(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(M)))}function k(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,a(S)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=o,e.precisionFixed=x,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var v6=O((Sme,c6)=>{"use strict";c6.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var zr=O((Lme,d6)=>{"use strict";var TW=v6();d6.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&TW(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Tt=O((Dme,h6)=>{"use strict";h6.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Fy=O((wd,p6)=>{(function(e,r){typeof wd=="object"&&typeof p6!="undefined"?r(wd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(wd,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,d,h,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var m=new ArrayBuffer(o),y=new Uint8Array(m);for(u=0;u>4,y[f++]=(d&15)<<4|h>>2,y[f++]=(h&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Ol=O((Eme,m6)=>{"use strict";m6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var on=O(di=>{"use strict";var AW=Fy().decode,MW=Ol(),Iy=Array.isArray,kW=ArrayBuffer,CW=DataView;function y6(e){return kW.isView(e)&&!(e instanceof CW)}di.isTypedArray=y6;function Td(e){return Iy(e)||y6(e)}di.isArrayOrTypedArray=Td;function qW(e){return!Td(e[0])}di.isArray1D=qW;di.ensureArray=function(e,r){return Iy(e)||(e=[]),e.length=r,e};var ya={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ya.uint8c=ya.u1c;ya.uint8=ya.u1;ya.int8=ya.i1;ya.uint16=ya.u2;ya.int16=ya.i2;ya.uint32=ya.u4;ya.int32=ya.i4;ya.float32=ya.f4;ya.float64=ya.f8;function Hy(e){return e.constructor===ArrayBuffer}di.isArrayBuffer=Hy;di.decodeTypedArraySpec=function(e){var r=[],t=SW(e),a=t.dtype,n=ya[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Hy(l)||(l=AW(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],d=i*c,h=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var x6=zr(),Oy=on().isArrayOrTypedArray;T6.exports=function(r,t){if(x6(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var Mu=Ad(),RW=/^\w*$/,zW=0,A6=1,Md=2,M6=3,Jo=4;k6.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=Mu(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[h]=s[h]|Md,c.set(d,null);if(f){for(i=h;i{"use strict";var NW=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,FW=/^[^\.\[\]]+$/;q6.exports=function(e,r){for(;r;){var t=e.match(NW);if(t)e=t[1];else if(e.match(FW))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var kd=O((Fme,L6)=>{"use strict";var IW=zr();L6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return IW(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var P6=O((Ime,E6)=>{"use strict";var D6=on().isArrayOrTypedArray,kc=Ol();E6.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(D6(n)&&D6(i)&&kc(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function HW(e,r){var t=e%r;return t<0?t+r:t}function BW(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}R6.exports={mod:HW,modHalf:BW}});var In=O((Bme,Cd)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(W,Q){if(W=W||"",Q=Q||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,Q);var Z=u(W);this._originalInput=W,this._r=Z.r,this._g=Z.g,this._b=Z.b,this._a=Z.a,this._roundA=n(100*this._a)/100,this._format=Q.format||Z.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=Z.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),Q,Z,oe,me,xe,ze;return Q=W.r/255,Z=W.g/255,oe=W.b/255,Q<=.03928?me=Q/12.92:me=e.pow((Q+.055)/1.055,2.4),Z<=.03928?xe=Z/12.92:xe=e.pow((Z+.055)/1.055,2.4),oe<=.03928?ze=oe/12.92:ze=e.pow((oe+.055)/1.055,2.4),.2126*me+.7152*xe+.0722*ze},setAlpha:function(W){return this._a=U(W),this._roundA=n(100*this._a)/100,this},toHsv:function(){var W=h(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=h(this._r,this._g,this._b),Q=n(W.h*360),Z=n(W.s*100),oe=n(W.v*100);return this._a==1?"hsv("+Q+", "+Z+"%, "+oe+"%)":"hsva("+Q+", "+Z+"%, "+oe+"%, "+this._roundA+")"},toHsl:function(){var W=c(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=c(this._r,this._g,this._b),Q=n(W.h*360),Z=n(W.s*100),oe=n(W.l*100);return this._a==1?"hsl("+Q+", "+Z+"%, "+oe+"%)":"hsla("+Q+", "+Z+"%, "+oe+"%, "+this._roundA+")"},toHex:function(W){return m(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return y(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(B(this._r,255)*100)+"%",g:n(B(this._g,255)*100)+"%",b:n(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(B(this._r,255)*100)+"%, "+n(B(this._g,255)*100)+"%, "+n(B(this._b,255)*100)+"%)":"rgba("+n(B(this._r,255)*100)+"%, "+n(B(this._g,255)*100)+"%, "+n(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var Q="#"+b(this._r,this._g,this._b,this._a),Z=Q,oe=this._gradientType?"GradientType = 1, ":"";if(W){var me=s(W);Z="#"+b(me._r,me._g,me._b,me._a)}return"progid:DXImageTransform.Microsoft.gradient("+oe+"startColorstr="+Q+",endColorstr="+Z+")"},toString:function(W){var Q=!!W;W=W||this._format;var Z=!1,oe=this._a<1&&this._a>=0,me=!Q&&oe&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return me?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(Z=this.toRgbString()),W==="prgb"&&(Z=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(Z=this.toHexString()),W==="hex3"&&(Z=this.toHexString(!0)),W==="hex4"&&(Z=this.toHex8String(!0)),W==="hex8"&&(Z=this.toHex8String()),W==="name"&&(Z=this.toName()),W==="hsl"&&(Z=this.toHslString()),W==="hsv"&&(Z=this.toHsvString()),Z||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(W,Q){var Z=W.apply(null,[this].concat([].slice.call(Q)));return this._r=Z._r,this._g=Z._g,this._b=Z._b,this.setAlpha(Z._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(W,Q){return W.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},s.fromRatio=function(W,Q){if(typeof W=="object"){var Z={};for(var oe in W)W.hasOwnProperty(oe)&&(oe==="a"?Z[oe]=W[oe]:Z[oe]=ce(W[oe]));W=Z}return s(W,Q)};function u(W){var Q={r:0,g:0,b:0},Z=1,oe=null,me=null,xe=null,ze=!1,Ee=!1;return typeof W=="string"&&(W=_e(W)),typeof W=="object"&&(be(W.r)&&be(W.g)&&be(W.b)?(Q=f(W.r,W.g,W.b),ze=!0,Ee=String(W.r).substr(-1)==="%"?"prgb":"rgb"):be(W.h)&&be(W.s)&&be(W.v)?(oe=ce(W.s),me=ce(W.v),Q=p(W.h,oe,me),ze=!0,Ee="hsv"):be(W.h)&&be(W.s)&&be(W.l)&&(oe=ce(W.s),xe=ce(W.l),Q=d(W.h,oe,xe),ze=!0,Ee="hsl"),W.hasOwnProperty("a")&&(Z=W.a)),Z=U(Z),{ok:ze,format:W.format||Ee,r:i(255,l(Q.r,0)),g:i(255,l(Q.g,0)),b:i(255,l(Q.b,0)),a:Z}}function f(W,Q,Z){return{r:B(W,255)*255,g:B(Q,255)*255,b:B(Z,255)*255}}function c(W,Q,Z){W=B(W,255),Q=B(Q,255),Z=B(Z,255);var oe=l(W,Q,Z),me=i(W,Q,Z),xe,ze,Ee=(oe+me)/2;if(oe==me)xe=ze=0;else{var Se=oe-me;switch(ze=Ee>.5?Se/(2-oe-me):Se/(oe+me),oe){case W:xe=(Q-Z)/Se+(Q1&&(We-=1),We<1/6?Ue+(Ie-Ue)*6*We:We<1/2?Ie:We<2/3?Ue+(Ie-Ue)*(2/3-We)*6:Ue}if(Q===0)oe=me=xe=Z;else{var Ee=Z<.5?Z*(1+Q):Z+Q-Z*Q,Se=2*Z-Ee;oe=ze(Se,Ee,W+1/3),me=ze(Se,Ee,W),xe=ze(Se,Ee,W-1/3)}return{r:oe*255,g:me*255,b:xe*255}}function h(W,Q,Z){W=B(W,255),Q=B(Q,255),Z=B(Z,255);var oe=l(W,Q,Z),me=i(W,Q,Z),xe,ze,Ee=oe,Se=oe-me;if(ze=oe===0?0:Se/oe,oe==me)xe=0;else{switch(oe){case W:xe=(Q-Z)/Se+(Q>1)+720)%360;--Q;)oe.h=(oe.h+me)%360,xe.push(s(oe));return xe}function I(W,Q){Q=Q||6;for(var Z=s(W).toHsv(),oe=Z.h,me=Z.s,xe=Z.v,ze=[],Ee=1/Q;Q--;)ze.push(s({h:oe,s:me,v:xe})),xe=(xe+Ee)%1;return ze}s.mix=function(W,Q,Z){Z=Z===0?0:Z||50;var oe=s(W).toRgb(),me=s(Q).toRgb(),xe=Z/100,ze={r:(me.r-oe.r)*xe+oe.r,g:(me.g-oe.g)*xe+oe.g,b:(me.b-oe.b)*xe+oe.b,a:(me.a-oe.a)*xe+oe.a};return s(ze)},s.readability=function(W,Q){var Z=s(W),oe=s(Q);return(e.max(Z.getLuminance(),oe.getLuminance())+.05)/(e.min(Z.getLuminance(),oe.getLuminance())+.05)},s.isReadable=function(W,Q,Z){var oe=s.readability(W,Q),me,xe;switch(xe=!1,me=ge(Z),me.level+me.size){case"AAsmall":case"AAAlarge":xe=oe>=4.5;break;case"AAlarge":xe=oe>=3;break;case"AAAsmall":xe=oe>=7;break}return xe},s.mostReadable=function(W,Q,Z){var oe=null,me=0,xe,ze,Ee,Se;Z=Z||{},ze=Z.includeFallbackColors,Ee=Z.level,Se=Z.size;for(var Ue=0;Ueme&&(me=xe,oe=s(Q[Ue]));return s.isReadable(W,oe,{level:Ee,size:Se})||!ze?oe:(Z.includeFallbackColors=!1,s.mostReadable(W,["#fff","#000"],Z))};var Y=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=s.hexNames=V(Y);function V(W){var Q={};for(var Z in W)W.hasOwnProperty(Z)&&(Q[W[Z]]=Z);return Q}function U(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function B(W,Q){ee(W)&&(W="100%");var Z=le(W);return W=i(Q,l(0,parseFloat(W))),Z&&(W=parseInt(W*Q,10)/100),e.abs(W-Q)<1e-6?1:W%Q/parseFloat(Q)}function J(W){return i(1,l(0,W))}function X(W){return parseInt(W,16)}function ee(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function le(W){return typeof W=="string"&&W.indexOf("%")!=-1}function fe(W){return W.length==1?"0"+W:""+W}function ce(W){return W<=1&&(W=W*100+"%"),W}function j(W){return e.round(parseFloat(W)*255).toString(16)}function qe(W){return X(W)/255}var ve=(function(){var W="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",Z="(?:"+Q+")|(?:"+W+")",oe="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",me="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?";return{CSS_UNIT:new RegExp(Z),rgb:new RegExp("rgb"+oe),rgba:new RegExp("rgba"+me),hsl:new RegExp("hsl"+oe),hsla:new RegExp("hsla"+me),hsv:new RegExp("hsv"+oe),hsva:new RegExp("hsva"+me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function be(W){return!!ve.CSS_UNIT.exec(W)}function _e(W){W=W.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(Y[W])W=Y[W],Q=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Z;return(Z=ve.rgb.exec(W))?{r:Z[1],g:Z[2],b:Z[3]}:(Z=ve.rgba.exec(W))?{r:Z[1],g:Z[2],b:Z[3],a:Z[4]}:(Z=ve.hsl.exec(W))?{h:Z[1],s:Z[2],l:Z[3]}:(Z=ve.hsla.exec(W))?{h:Z[1],s:Z[2],l:Z[3],a:Z[4]}:(Z=ve.hsv.exec(W))?{h:Z[1],s:Z[2],v:Z[3]}:(Z=ve.hsva.exec(W))?{h:Z[1],s:Z[2],v:Z[3],a:Z[4]}:(Z=ve.hex8.exec(W))?{r:X(Z[1]),g:X(Z[2]),b:X(Z[3]),a:qe(Z[4]),format:Q?"name":"hex8"}:(Z=ve.hex6.exec(W))?{r:X(Z[1]),g:X(Z[2]),b:X(Z[3]),format:Q?"name":"hex"}:(Z=ve.hex4.exec(W))?{r:X(Z[1]+""+Z[1]),g:X(Z[2]+""+Z[2]),b:X(Z[3]+""+Z[3]),a:qe(Z[4]+""+Z[4]),format:Q?"name":"hex8"}:(Z=ve.hex3.exec(W))?{r:X(Z[1]+""+Z[1]),g:X(Z[2]+""+Z[2]),b:X(Z[3]+""+Z[3]),format:Q?"name":"hex"}:!1}function ge(W){var Q,Z;return W=W||{level:"AA",size:"small"},Q=(W.level||"AA").toUpperCase(),Z=(W.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),Z!=="small"&&Z!=="large"&&(Z="small"),{level:Q,size:Z}}typeof Cd!="undefined"&&Cd.exports?Cd.exports=s:window.tinycolor=s})(Math)});var yt=O(Sc=>{"use strict";var z6=Ol(),Cc=Array.isArray;function OW(e,r){var t,a;for(t=0;t{"use strict";N6.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Lc=O((Vme,F6)=>{"use strict";F6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Cu=O((Ume,B6)=>{"use strict";var I6=Lc(),H6=ta(),Yy=H6({editType:"none"});Yy.family.dflt=I6.HOVERFONT;Yy.size.dflt=I6.HOVERFONTSIZE;B6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Yy,grouptitlefont:H6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Pc=O((Gme,O6)=>{"use strict";var YW=ta(),Dc=Cu().hoverlabel,Ec=yt().extendFlat;O6.exports={hoverlabel:{bgcolor:Ec({},Dc.bgcolor,{arrayOk:!0}),bordercolor:Ec({},Dc.bordercolor,{arrayOk:!0}),font:YW({arrayOk:!0,editType:"none"}),align:Ec({},Dc.align,{arrayOk:!0}),namelength:Ec({},Dc.namelength,{arrayOk:!0}),showarrow:Ec({},Dc.showarrow),editType:"none"}}});var sn=O((Xme,Y6)=>{"use strict";var VW=ta(),UW=Pc();Y6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:VW({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:UW.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var $o=O((Wme,G6)=>{"use strict";var GW=In(),qd={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},V6=qd.RdBu;function XW(e,r){if(r||(r=V6),!e)return r;function t(){try{e=qd[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),U6(e)?e:r}function U6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Ko.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ko.defaultLine="#444";Ko.lightLine="#eee";Ko.background="#fff";Ko.borderLine="#BEC8D9";Ko.lightFraction=1e3/11});var br=O((Jme,X6)=>{"use strict";var un=In(),ZW=zr(),JW=on().isTypedArray,aa=X6.exports={},Sd=Hn();aa.defaults=Sd.defaults;var $W=aa.defaultLine=Sd.defaultLine;aa.lightLine=Sd.lightLine;var Uy=aa.background=Sd.background;aa.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};aa.rgb=function(e){return aa.tinyRGB(un(e))};aa.opacity=function(e){return e?un(e).getAlpha():0};aa.addOpacity=function(e,r){var t=un(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};aa.combine=function(e,r){var t=un(e).toRgb();if(t.a===1)return un(e).toRgbString();var a=un(r||Uy).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return un(i).toRgbString()};aa.interpolate=function(e,r,t){var a=un(e).toRgb(),n=un(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return un(i).toRgbString()};aa.contrast=function(e,r,t){var a=un(e);a.getAlpha()!==1&&(a=un(aa.combine(e,Uy)));var n=a.isDark()?r?a.lighten(r):Uy:t?a.darken(t):$W;return n.toString()};aa.stroke=function(e,r){var t=un(r);e.style({stroke:aa.tinyRGB(t),"stroke-opacity":t.getAlpha()})};aa.fill=function(e,r){var t=un(r);e.style({fill:aa.tinyRGB(t),"fill-opacity":t.getAlpha()})};aa.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var qu=O(($me,W6)=>{"use strict";W6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Su=O(Z6=>{"use strict";Z6.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var Q6=O(fn=>{"use strict";var Gy=zr(),J6=In(),$6=yt().extendFlat,KW=sn(),QW=$o(),jW=br(),eZ=qu().DESELECTDIM,Lu=Ad(),K6=Su().counter,rZ=ku().modHalf,hi=on().isArrayOrTypedArray,Yl=on().isTypedArraySpec,Vl=on().decodeTypedArraySpec;fn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(hi(e)?e:Yl(e)?Vl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){Yl(e)&&(e=Vl(e)),!Gy(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Yl(e)&&(e=Vl(e)),e%1||!Gy(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Yl(e)&&(e=Vl(e)),J6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return J6(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(QW.get(e,t))}},angle:{coerceFunction:function(e,r,t){Yl(e)&&(e=Vl(e)),e==="auto"?r.set("auto"):Gy(e)?r.set(rZ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||K6(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&hi(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!K6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var j6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},e7={};function r7(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),r7(a,r[t]))}}r7(j6,e7);t7.exports={configAttributes:j6,dfltConfig:e7}});var Wy=O((eye,a7)=>{"use strict";var Xy=kr(),tZ=zr(),Rc=[];a7.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||Rc.indexOf(e)!==-1)return;Rc.push(e);var a=1e3;tZ(r)?a=r:r==="long"&&(a=3e3);var n=Xy.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(Rc);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=Rc.indexOf(u);f!==-1&&Rc.splice(f,1),Xy.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=Xy.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),c=s.split(//g),d=0;d{"use strict";var Du=Qo().dfltConfig,Zy=Wy(),Jy=n7.exports={};Jy.log=function(){var e;if(Du.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Jy.warn=function(){var e;if(Du.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Jy.error=function(){var e;if(Du.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Dd=O((tye,i7)=>{"use strict";i7.exports=function(){}});var $y=O((aye,l7)=>{"use strict";l7.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{o7.exports=aZ;function aZ(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var f7=O((iye,u7)=>{u7.exports=nZ;function nZ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var v7=O((lye,c7)=>{c7.exports=iZ;function iZ(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Ky=O((oye,d7)=>{d7.exports=lZ;function lZ(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var p7=O((sye,h7)=>{h7.exports=oZ;function oZ(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var y7=O((uye,m7)=>{m7.exports=sZ;function sZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],d=r[10],h=r[11],p=r[12],m=r[13],y=r[14],b=r[15],_=t*o-a*l,w=t*s-n*l,x=t*u-i*l,A=a*s-n*o,k=a*u-i*o,M=n*u-i*s,S=f*m-c*p,D=f*y-d*p,E=f*b-h*p,R=c*y-d*m,N=c*b-h*m,H=d*b-h*y,I=_*H-w*N+x*R+A*E-k*D+M*S;return I?(I=1/I,e[0]=(o*H-s*N+u*R)*I,e[1]=(n*N-a*H-i*R)*I,e[2]=(m*M-y*k+b*A)*I,e[3]=(d*k-c*M-h*A)*I,e[4]=(s*E-l*H-u*D)*I,e[5]=(t*H-n*E+i*D)*I,e[6]=(y*x-p*M-b*w)*I,e[7]=(f*M-d*x+h*w)*I,e[8]=(l*N-o*E+u*S)*I,e[9]=(a*E-t*N-i*S)*I,e[10]=(p*k-m*x+b*_)*I,e[11]=(c*x-f*k-h*_)*I,e[12]=(o*D-l*R-s*S)*I,e[13]=(t*R-a*D+n*S)*I,e[14]=(m*w-p*A-y*_)*I,e[15]=(f*A-c*w+d*_)*I,e):null}});var x7=O((fye,g7)=>{g7.exports=uZ;function uZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],d=r[10],h=r[11],p=r[12],m=r[13],y=r[14],b=r[15];return e[0]=o*(d*b-h*y)-c*(s*b-u*y)+m*(s*h-u*d),e[1]=-(a*(d*b-h*y)-c*(n*b-i*y)+m*(n*h-i*d)),e[2]=a*(s*b-u*y)-o*(n*b-i*y)+m*(n*u-i*s),e[3]=-(a*(s*h-u*d)-o*(n*h-i*d)+c*(n*u-i*s)),e[4]=-(l*(d*b-h*y)-f*(s*b-u*y)+p*(s*h-u*d)),e[5]=t*(d*b-h*y)-f*(n*b-i*y)+p*(n*h-i*d),e[6]=-(t*(s*b-u*y)-l*(n*b-i*y)+p*(n*u-i*s)),e[7]=t*(s*h-u*d)-l*(n*h-i*d)+f*(n*u-i*s),e[8]=l*(c*b-h*m)-f*(o*b-u*m)+p*(o*h-u*c),e[9]=-(t*(c*b-h*m)-f*(a*b-i*m)+p*(a*h-i*c)),e[10]=t*(o*b-u*m)-l*(a*b-i*m)+p*(a*u-i*o),e[11]=-(t*(o*h-u*c)-l*(a*h-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*y-d*m)-f*(o*y-s*m)+p*(o*d-s*c)),e[13]=t*(c*y-d*m)-f*(a*y-n*m)+p*(a*d-n*c),e[14]=-(t*(o*y-s*m)-l*(a*y-n*m)+p*(a*s-n*o)),e[15]=t*(o*d-s*c)-l*(a*d-n*c)+f*(a*s-n*o),e}});var _7=O((cye,b7)=>{b7.exports=fZ;function fZ(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],d=e[11],h=e[12],p=e[13],m=e[14],y=e[15],b=r*l-t*i,_=r*o-a*i,w=r*s-n*i,x=t*o-a*l,A=t*s-n*l,k=a*s-n*o,M=u*p-f*h,S=u*m-c*h,D=u*y-d*h,E=f*m-c*p,R=f*y-d*p,N=c*y-d*m;return b*N-_*R+w*E+x*D-A*S+k*M}});var T7=O((vye,w7)=>{w7.exports=cZ;function cZ(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],d=r[9],h=r[10],p=r[11],m=r[12],y=r[13],b=r[14],_=r[15],w=t[0],x=t[1],A=t[2],k=t[3];return e[0]=w*a+x*o+A*c+k*m,e[1]=w*n+x*s+A*d+k*y,e[2]=w*i+x*u+A*h+k*b,e[3]=w*l+x*f+A*p+k*_,w=t[4],x=t[5],A=t[6],k=t[7],e[4]=w*a+x*o+A*c+k*m,e[5]=w*n+x*s+A*d+k*y,e[6]=w*i+x*u+A*h+k*b,e[7]=w*l+x*f+A*p+k*_,w=t[8],x=t[9],A=t[10],k=t[11],e[8]=w*a+x*o+A*c+k*m,e[9]=w*n+x*s+A*d+k*y,e[10]=w*i+x*u+A*h+k*b,e[11]=w*l+x*f+A*p+k*_,w=t[12],x=t[13],A=t[14],k=t[15],e[12]=w*a+x*o+A*c+k*m,e[13]=w*n+x*s+A*d+k*y,e[14]=w*i+x*u+A*h+k*b,e[15]=w*l+x*f+A*p+k*_,e}});var M7=O((dye,A7)=>{A7.exports=vZ;function vZ(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,d,h,p,m,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],d=r[6],h=r[7],p=r[8],m=r[9],y=r[10],b=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=d,e[7]=h,e[8]=p,e[9]=m,e[10]=y,e[11]=b,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+m*i+r[13],e[14]=s*a+d*n+y*i+r[14],e[15]=u*a+h*n+b*i+r[15]),e}});var C7=O((hye,k7)=>{k7.exports=dZ;function dZ(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var S7=O((pye,q7)=>{q7.exports=hZ;function hZ(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,d,h,p,m,y,b,_,w,x,A,k,M,S,D,E,R,N,H,I,Y;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],d=r[1],h=r[2],p=r[3],m=r[4],y=r[5],b=r[6],_=r[7],w=r[8],x=r[9],A=r[10],k=r[11],M=n*n*f+u,S=i*n*f+l*s,D=l*n*f-i*s,E=n*i*f-l*s,R=i*i*f+u,N=l*i*f+n*s,H=n*l*f+i*s,I=i*l*f-n*s,Y=l*l*f+u,e[0]=c*M+m*S+w*D,e[1]=d*M+y*S+x*D,e[2]=h*M+b*S+A*D,e[3]=p*M+_*S+k*D,e[4]=c*E+m*R+w*N,e[5]=d*E+y*R+x*N,e[6]=h*E+b*R+A*N,e[7]=p*E+_*R+k*N,e[8]=c*H+m*I+w*Y,e[9]=d*H+y*I+x*Y,e[10]=h*H+b*I+A*Y,e[11]=p*H+_*I+k*Y,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var D7=O((mye,L7)=>{L7.exports=pZ;function pZ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],d=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+d*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=d*n-s*a,e}});var P7=O((yye,E7)=>{E7.exports=mZ;function mZ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],d=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-d*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+d*n,e}});var z7=O((gye,R7)=>{R7.exports=yZ;function yZ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],d=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+d*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=d*n-s*a,e}});var F7=O((xye,N7)=>{N7.exports=gZ;function gZ(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var H7=O((bye,I7)=>{I7.exports=xZ;function xZ(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,d=a*u,h=n*s,p=n*u,m=i*u,y=l*o,b=l*s,_=l*u;return e[0]=1-(h+m),e[1]=c+_,e[2]=d-b,e[3]=0,e[4]=c-_,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=d+b,e[9]=p-y,e[10]=1-(f+h),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var O7=O((_ye,B7)=>{B7.exports=bZ;function bZ(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var V7=O((wye,Y7)=>{Y7.exports=_Z;function _Z(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var G7=O((Tye,U7)=>{U7.exports=wZ;function wZ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var W7=O((Aye,X7)=>{X7.exports=TZ;function TZ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var J7=O((Mye,Z7)=>{Z7.exports=AZ;function AZ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var K7=O((kye,$7)=>{$7.exports=MZ;function MZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,d=n*l,h=n*o,p=n*s,m=i*l,y=i*o,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=d-y,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=h+m,e[7]=0,e[8]=d+y,e[9]=h-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var j7=O((Cye,Q7)=>{Q7.exports=kZ;function kZ(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var rw=O((qye,ew)=>{ew.exports=CZ;function CZ(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var aw=O((Sye,tw)=>{tw.exports=qZ;function qZ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var iw=O((Lye,nw)=>{nw.exports=SZ;function SZ(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var ow=O((Dye,lw)=>{var LZ=Ky();lw.exports=DZ;function DZ(e,r,t,a){var n,i,l,o,s,u,f,c,d,h,p=r[0],m=r[1],y=r[2],b=a[0],_=a[1],w=a[2],x=t[0],A=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(m-A)<1e-6&&Math.abs(y-k)<1e-6?LZ(e):(f=p-x,c=m-A,d=y-k,h=1/Math.sqrt(f*f+c*c+d*d),f*=h,c*=h,d*=h,n=_*d-w*c,i=w*f-b*d,l=b*c-_*f,h=Math.sqrt(n*n+i*i+l*l),h?(h=1/h,n*=h,i*=h,l*=h):(n=0,i=0,l=0),o=c*l-d*i,s=d*n-f*l,u=f*i-c*n,h=Math.sqrt(o*o+s*s+u*u),h?(h=1/h,o*=h,s*=h,u*=h):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=d,e[11]=0,e[12]=-(n*p+i*m+l*y),e[13]=-(o*p+s*m+u*y),e[14]=-(f*p+c*m+d*y),e[15]=1,e)}});var uw=O((Eye,sw)=>{sw.exports=EZ;function EZ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Qy=O((Pye,fw)=>{fw.exports={create:s7(),clone:f7(),copy:v7(),identity:Ky(),transpose:p7(),invert:y7(),adjoint:x7(),determinant:_7(),multiply:T7(),translate:M7(),scale:C7(),rotate:S7(),rotateX:D7(),rotateY:P7(),rotateZ:z7(),fromRotation:F7(),fromRotationTranslation:H7(),fromScaling:O7(),fromTranslation:V7(),fromXRotation:G7(),fromYRotation:W7(),fromZRotation:J7(),fromQuat:K7(),frustum:j7(),perspective:rw(),perspectiveFromFieldOfView:aw(),ortho:iw(),lookAt:ow(),str:uw()}});var Ed=O(Ft=>{"use strict";var PZ=Qy();Ft.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var RZ=kr(),cw=jo(),zZ=Ed(),NZ=Qy();function FZ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function IZ(e){var r=RZ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function vw(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function HZ(e,r){dw("global",e,r)}function dw(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):cw.warn("addStyleRule failed"):cw.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function BZ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&vw(t)}function OZ(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function YZ(e){var r=pw(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=hw(a);if(n){var i=zZ.convertCssMatrix(n);t=NZ.multiply(t,t,i)}}),t}function hw(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function pw(e){for(var r=[];VZ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function VZ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function UZ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}mw.exports={getGraphDiv:FZ,isPlotDiv:IZ,removeElement:vw,addStyleRule:HZ,addRelatedStyleRule:dw,deleteRelatedStyleRule:BZ,setStyleOnHover:OZ,getFullTransformMatrix:YZ,getElementTransformMatrix:hw,getElementAndAncestors:pw,equalDomRects:UZ}});var Nc=O((Nye,yw)=>{"use strict";yw.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var pi=O((Fye,Aw)=>{"use strict";var xw=yt().extendFlat,GZ=Ol(),bw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},_w={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},XZ=bw.flags.slice().concat(["fullReplot"]),WZ=_w.flags.slice().concat("layoutReplot");Aw.exports={traces:bw,layout:_w,traceFlags:function(){return gw(XZ)},layoutFlags:function(){return gw(WZ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";jy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};jy.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var eg=O((Hye,Mw)=>{"use strict";Mw.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var _n=O(Eu=>{"use strict";var{DATE_FORMAT_LINK:ZZ,FORMAT_LINK:JZ}=eg(),$Z=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function KZ({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,JZ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,ZZ,"for details on the date formatting syntax.",$Z].join(" ")}Eu.templateFormatStringDescription=KZ;Eu.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Zo({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Eu.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Zo({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Eu.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Eu.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var zd=O((Yye,Dw)=>{"use strict";function Ul(e,r){return r?r.d2l(e):e}function kw(e,r){return r?r.l2d(e):e}function QZ(e){return e.x0}function jZ(e){return e.x1}function eJ(e){return e.y0}function rJ(e){return e.y1}function Cw(e){return e.x0shift||0}function qw(e){return e.x1shift||0}function Sw(e){return e.y0shift||0}function Lw(e){return e.y1shift||0}function Pd(e,r){return Ul(e.x1,r)+qw(e)-Ul(e.x0,r)-Cw(e)}function Rd(e,r,t){return Ul(e.y1,t)+Lw(e)-Ul(e.y0,t)-Sw(e)}function tJ(e,r){return Math.abs(Pd(e,r))}function aJ(e,r,t){return Math.abs(Rd(e,r,t))}function nJ(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Pd(e,r),2)+Math.pow(Rd(e,r,t),2))}function iJ(e,r){return kw((Ul(e.x1,r)+qw(e)+Ul(e.x0,r)+Cw(e))/2,r)}function lJ(e,r,t){return kw((Ul(e.y1,t)+Lw(e)+Ul(e.y0,t)+Sw(e))/2,t)}function oJ(e,r,t){return e.type!=="line"?void 0:Rd(e,r,t)/Pd(e,r)}var sJ=["x0","x1","y0","y1","dy","height","ycenter"],uJ=["x0","x1","y0","y1","dx","width","xcenter"];Dw.exports={x0:QZ,x1:jZ,y0:eJ,y1:rJ,slope:oJ,dx:Pd,dy:Rd,width:tJ,height:aJ,length:nJ,xcenter:iJ,ycenter:lJ,simpleXVariables:sJ,simpleYVariables:uJ}});var Rw=O((Vye,Pw)=>{"use strict";var fJ=pi().overrideAll,es=sn(),Ew=ta(),cJ=mi().dash,Gl=yt().extendFlat,{shapeTexttemplateAttrs:vJ,templatefallbackAttrs:dJ}=_n(),hJ=zd();Pw.exports=fJ({newshape:{visible:Gl({},es.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Gl({},es.legend,{}),legendgroup:Gl({},es.legendgroup,{}),legendgrouptitle:{text:Gl({},es.legendgrouptitle.text,{}),font:Ew({})},legendrank:Gl({},es.legendrank,{}),legendwidth:Gl({},es.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Gl({},cJ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Gl({},es.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:vJ({newshape:!0},{keys:Object.keys(hJ)}),texttemplatefallback:dJ({editType:"arraydraw"}),font:Ew({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Nw=O((Uye,zw)=>{"use strict";var pJ=mi().dash,mJ=yt().extendFlat;zw.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:mJ({},pJ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Nd=O((Gye,Fw)=>{"use strict";Fw.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Pu=O((Xye,Ow)=>{"use strict";var rg=ta(),yJ=Nc(),Fd=Hn(),Iw=Rw(),Hw=Nw(),gJ=Nd(),Bw=yt().extendFlat,Id=rg({editType:"calc"});Id.family.dflt='"Open Sans", verdana, arial, sans-serif';Id.size.dflt=12;Id.color.dflt=Fd.defaultLine;Ow.exports={font:Id,title:{text:{valType:"string",editType:"layoutstyle"},font:rg({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:rg({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Bw(gJ({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Fd.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Fd.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Fd.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Iw.newshape,activeshape:Iw.activeshape,newselection:Hw.newselection,activeselection:Hw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Bw({},yJ.transition,{editType:"none"})}});var Yw=O(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var gr=O(Fr=>{"use strict";var Ru=jo(),Vw=Dd(),Uw=$y(),xJ=Ol(),bJ=zc().addStyleRule,Gw=yt(),_J=sn(),wJ=Pu(),TJ=Gw.extendFlat,tg=Gw.extendDeepAll;Fr.modules={};Fr.allCategories={};Fr.allTypes=[];Fr.subplotsRegistry={};Fr.componentsRegistry={};Fr.layoutArrayContainers=[];Fr.layoutArrayRegexes=[];Fr.traceLayoutAttributes={};Fr.localeRegistry={};Fr.apiMethodRegistry={};Fr.collectableSubplotTypes=null;Fr.register=function(r){if(Fr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var SJ=Au().timeFormat,t8=zr(),ag=jo(),Wl=ku().mod,Fu=Tt(),Bn=Fu.BADNUM,cn=Fu.ONEDAY,Fc=Fu.ONEHOUR,Xl=Fu.ONEMIN,Nu=Fu.ONESEC,Ic=Fu.EPOCHJD,dl=gr(),$w=Au().utcFormat,LJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,DJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Kw=new Date().getFullYear()-70;function hl(e){return e&&dl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}It.dateTick0=function(e,r){var t=EJ(e,!!r);if(r<2)return t;var a=It.dateTime2ms(t,e);return a+=cn*(r-1),It.ms2DateTime(a,0,e)};function EJ(e,r){return hl(e)?r?dl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:dl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}It.dfltRange=function(e){return hl(e)?dl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};It.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Bd,Od;It.dateTime2ms=function(e,r){if(It.isJSDate(e)){var t=e.getTimezoneOffset()*Xl,a=(e.getUTCMinutes()-e.getMinutes())*Xl+(e.getUTCSeconds()-e.getSeconds())*Nu+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Xl;t=t-n/2+Wl(a-t+n/2,n)}return e=Number(e)-t,e>=Bd&&e<=Od?e:Bn}if(typeof e!="string"&&typeof e!="number")return Bn;e=String(e);var i=hl(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?DJ:LJ);if(!s)return Bn;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),d=Number(s[7]||0),h=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Bn;u=Number(u);var m;try{var y=dl.getComponentMethod("calendars","getCal")(r);if(o){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,b),c)}else m=y.newDate(u,Number(f),c)}catch(w){return Bn}return m?(m.toJD()-Ic)*cn+d*Fc+h*Xl+p*Nu:Bn}u.length===2?u=(Number(u)+2e3-Kw)%100+Kw:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,d,h));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Bn:_.getTime()+p*Nu};Bd=It.MIN_MS=It.dateTime2ms("-9999");Od=It.MAX_MS=It.dateTime2ms("9999-12-31 23:59:59.9999");It.isDateTime=function(e,r){return It.dateTime2ms(e,r)!==Bn};function zu(e,r){return String(e+Math.pow(10,r)).slice(1)}var Hd=90*cn,Qw=3*Fc,jw=5*Xl;It.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Bd&&e<=Od))return Bn;r||(r=0);var a=Math.floor(Wl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(hl(t)){var c=Math.floor(n/cn)+Ic,d=Math.floor(Wl(e,cn));try{i=dl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=$w("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=Bd+cn&&e<=Od-cn))return Bn;var r=Math.floor(Wl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=SJ("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return a8(a,n,i,l,o)};function a8(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+zu(r,2)+":"+zu(t,2),(a||n)&&(e+=":"+zu(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+zu(n,i)}return e}It.cleanDate=function(e,r,t){if(e===Bn)return r;if(It.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(hl(t))return ag.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=It.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!It.isDateTime(e,t))return ag.error("unrecognized date",e),r;return e};var PJ=/%\d?f/g,RJ=/%h/g,zJ={1:"1",2:"1",3:"2",4:"2"};function e8(e,r,t,a){e=e.replace(PJ,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(RJ,function(){return zJ[t("%q")(n)]}),hl(a))try{e=dl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var NJ=[59,59.9,59.99,59.999,59.9999];function FJ(e,r){var t=Wl(e+.05,cn),a=zu(Math.floor(t/Fc),2)+":"+zu(Wl(Math.floor(t/Xl),60),2);if(r!=="M"){t8(r)||(r=0);var n=Math.min(Wl(e/Nu,60),NJ[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}It.formatDate=function(e,r,t,a,n,i){if(n=hl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return FJ(e,t)+` +`+e8(i.dayMonthYear,e,a,n);return e8(r,e,a,n)};var r8=3*cn;It.incrementMonth=function(e,r,t){t=hl(t)&&t;var a=Wl(e,cn);if(e=Math.round(e-a),t)try{var n=Math.round(e/cn)+Ic,i=dl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Ic)*cn+a}catch(s){ag.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+r8);return o.setUTCMonth(o.getUTCMonth()+r)+a-r8};It.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=hl(r)&&dl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";i8.exports=function(r){return r}});var lg=O(pl=>{"use strict";var IJ=zr(),HJ=jo(),BJ=ng(),OJ=Tt().BADNUM,ig=1e-9;pl.findBin=function(e,r,t){if(IJ(r.start))return t?Math.ceil((e-r.start)/r.size-ig)-1:Math.floor((e-r.start)/r.size+ig);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?YJ:VJ:s=t?GJ:UJ,e+=l*ig*(t?-1:1)*(l>=0?1:-1);a90&&HJ.log("Long binary search..."),a-1};function YJ(e,r){return er}function GJ(e,r){return e>=r}pl.sorterAsc=function(e,r){return e-r};pl.sorterDes=function(e,r){return r-e};pl.distinctVals=function(e){var r=e.slice();r.sort(pl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===OJ;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};pl.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};pl.findIndexOfMin=function(e,r){r=r||BJ;for(var t=1/0,a,n=0;n{"use strict";l8.exports=function(r){return Object.keys(r).sort()}});var o8=O(Ht=>{"use strict";var Hc=zr(),XJ=on().isArrayOrTypedArray;Ht.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Hc(r)||(r=!1),XJ(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var v8=O((rge,c8)=>{"use strict";var s8=ku(),sg=s8.mod,WJ=s8.modHalf,Bc=Math.PI,Zl=2*Bc;function ZJ(e){return e/180*Bc}function JJ(e){return e/Bc*180}function ug(e){return Math.abs(e[1]-e[0])>Zl-1e-14}function u8(e,r){return WJ(r-e,Zl)}function $J(e,r){return Math.abs(u8(e,r))}function f8(e,r){if(ug(r))return!0;var t,a;r[0]a&&(a+=Zl);var n=sg(e,Zl),i=n+Zl;return n>=t&&n<=a||i>=t&&i<=a}function KJ(e,r,t,a){if(!f8(r,a))return!1;var n,i;return t[0]=n&&e<=i}function fg(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=ug([t,a]),s,u,f,c,d;o?(s=0,u=Bc,f=Zl):t{"use strict";rs.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};rs.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};rs.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};rs.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};rs.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};rs.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var m8=O(ts=>{"use strict";var cg=ku().mod;ts.segmentsIntersect=p8;function p8(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,d=i-r,h=o-i,p=s*h-f*c;if(p===0)return null;var m=(u*h-f*d)/p,y=(u*c-s*d)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}ts.segmentDistance=function(r,t,a,n,i,l,o,s){if(p8(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,d=s-l,h=u*u+f*f,p=c*c+d*d,m=Math.min(Yd(u,f,h,i-r,l-t),Yd(u,f,h,o-r,s-t),Yd(c,d,p,r-i,t-l),Yd(c,d,p,a-i,n-l));return Math.sqrt(m)};function Yd(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Vd,vg,h8;ts.getTextLocation=function(r,t,a,n){if((r!==vg||n!==h8)&&(Vd={},vg=r,h8=n),Vd[a])return Vd[a];var i=r.getPointAtLength(cg(a-n/2,t)),l=r.getPointAtLength(cg(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(cg(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return Vd[a]=c,c};ts.clearLocationCache=function(){vg=null};ts.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,d;function h(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(d=y);var b=y.xi?y.x-i:0,_=y.yo?y.y-o:0;return Math.sqrt(b*b+_*_)}for(var p=h(s);p;){if(s+=p+a,s>f)return;p=h(s)}for(p=h(f);p;){if(f-=p+a,s>f)return;p=h(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-d.x)<.1&&Math.abs(c.y-d.y)<.1}};ts.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,d,h,p;u0?c=d:f=d,u++}return h}});var Ud=O(Oc=>{"use strict";var ml={};Oc.throttle=function(r,t,a){var n=ml[r],i=Date.now();if(!n){for(var l in ml)ml[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Oc.done=function(e){var r=ml[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Oc.clear=function(e){if(e)y8(ml[e]),delete ml[e];else for(var r in ml)Oc.clear(r)};function y8(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var x8=O((ige,g8)=>{"use strict";g8.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var b8=O((lge,Gd)=>{"use strict";Gd.exports=dg;Gd.exports.isMobile=dg;Gd.exports.default=dg;var r$=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t$=/CrOS/,a$=/android|ipad|playbook|silk/i;function dg(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=r$.test(r)&&!t$.test(r)||!!e.tablet&&a$.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var w8=O((oge,_8)=>{"use strict";var n$=zr(),i$=b8();_8.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=l$(),typeof t!="string")return!0;var a=i$({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(n$(u)&&(u=+u),u>=13)return!0}}}return a};function l$(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var A8=O((sge,T8)=>{"use strict";var o$=kr();T8.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=o$.select(this)}),n}});var k8=O((uge,M8)=>{"use strict";var s$=gr();M8.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=s$.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var q8=O((fge,C8)=>{"use strict";C8.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";S8.exports=function(r){for(var t=c$(r)?f$:u$,a=[],n=0;n{"use strict";D8.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var R8=O((dge,P8)=>{"use strict";var v$=zr(),d$=Tt().BADNUM,h$=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;P8.exports=function(r){return typeof r=="string"&&(r=r.replace(h$,"")),v$(r)?Number(r):d$}});var Re=O((hge,W8)=>{"use strict";var Yc=kr(),p$=Au().utcFormat,m$=Ny().format,B8=zr(),O8=Tt(),Y8=O8.FP_SAFE,y$=-Y8,z8=O8.BADNUM,he=W8.exports={};he.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var N8={};he.warnBadFormat=function(e){var r=String(e);N8[r]||(N8[r]=1,he.warn('encountered bad format: "'+r+'"'))};he.noFormat=function(e){return String(e)};he.numberFormat=function(e){var r;try{r=m$(he.adjustFormat(e))}catch(t){return he.warnBadFormat(e),he.noFormat}return r};he.nestedProperty=Ad();he.keyedContainer=C6();he.relativeAttr=S6();he.isPlainObject=Ol();he.toLogRange=kd();he.relinkPrivateKeys=P6();var Jl=on();he.isArrayBuffer=Jl.isArrayBuffer;he.isTypedArray=Jl.isTypedArray;he.isArrayOrTypedArray=Jl.isArrayOrTypedArray;he.isArray1D=Jl.isArray1D;he.ensureArray=Jl.ensureArray;he.concat=Jl.concat;he.maxRowLength=Jl.maxRowLength;he.minRowLength=Jl.minRowLength;var V8=ku();he.mod=V8.mod;he.modHalf=V8.modHalf;var $l=Q6();he.valObjectMeta=$l.valObjectMeta;he.coerce=$l.coerce;he.coerce2=$l.coerce2;he.coerceFont=$l.coerceFont;he.coercePattern=$l.coercePattern;he.coerceHoverinfo=$l.coerceHoverinfo;he.coerceSelectionMarkerOpacity=$l.coerceSelectionMarkerOpacity;he.validate=$l.validate;var wn=n8();he.dateTime2ms=wn.dateTime2ms;he.isDateTime=wn.isDateTime;he.ms2DateTime=wn.ms2DateTime;he.ms2DateTimeLocal=wn.ms2DateTimeLocal;he.cleanDate=wn.cleanDate;he.isJSDate=wn.isJSDate;he.formatDate=wn.formatDate;he.incrementMonth=wn.incrementMonth;he.dateTick0=wn.dateTick0;he.dfltRange=wn.dfltRange;he.findExactDates=wn.findExactDates;he.MIN_MS=wn.MIN_MS;he.MAX_MS=wn.MAX_MS;var as=lg();he.findBin=as.findBin;he.sorterAsc=as.sorterAsc;he.sorterDes=as.sorterDes;he.distinctVals=as.distinctVals;he.roundUp=as.roundUp;he.sort=as.sort;he.findIndexOfMin=as.findIndexOfMin;he.sortObjectKeys=og();var yl=o8();he.aggNums=yl.aggNums;he.len=yl.len;he.mean=yl.mean;he.geometricMean=yl.geometricMean;he.median=yl.median;he.midRange=yl.midRange;he.variance=yl.variance;he.stdev=yl.stdev;he.interp=yl.interp;var yi=Ed();he.init2dArray=yi.init2dArray;he.transposeRagged=yi.transposeRagged;he.dot=yi.dot;he.translationMatrix=yi.translationMatrix;he.rotationMatrix=yi.rotationMatrix;he.rotationXYMatrix=yi.rotationXYMatrix;he.apply3DTransform=yi.apply3DTransform;he.apply2DTransform=yi.apply2DTransform;he.apply2DTransform2=yi.apply2DTransform2;he.convertCssMatrix=yi.convertCssMatrix;he.inverseTransformMatrix=yi.inverseTransformMatrix;var Bi=v8();he.deg2rad=Bi.deg2rad;he.rad2deg=Bi.rad2deg;he.angleDelta=Bi.angleDelta;he.angleDist=Bi.angleDist;he.isFullCircle=Bi.isFullCircle;he.isAngleInsideSector=Bi.isAngleInsideSector;he.isPtInsideSector=Bi.isPtInsideSector;he.pathArc=Bi.pathArc;he.pathSector=Bi.pathSector;he.pathAnnulus=Bi.pathAnnulus;var Hu=d8();he.isLeftAnchor=Hu.isLeftAnchor;he.isCenterAnchor=Hu.isCenterAnchor;he.isRightAnchor=Hu.isRightAnchor;he.isTopAnchor=Hu.isTopAnchor;he.isMiddleAnchor=Hu.isMiddleAnchor;he.isBottomAnchor=Hu.isBottomAnchor;var Bu=m8();he.segmentsIntersect=Bu.segmentsIntersect;he.segmentDistance=Bu.segmentDistance;he.getTextLocation=Bu.getTextLocation;he.clearLocationCache=Bu.clearLocationCache;he.getVisibleSegment=Bu.getVisibleSegment;he.findPointOnPath=Bu.findPointOnPath;var Zd=yt();he.extendFlat=Zd.extendFlat;he.extendDeep=Zd.extendDeep;he.extendDeepAll=Zd.extendDeepAll;he.extendDeepNoArrays=Zd.extendDeepNoArrays;var hg=jo();he.log=hg.log;he.warn=hg.warn;he.error=hg.error;var g$=Su();he.counterRegex=g$.counter;var pg=Ud();he.throttle=pg.throttle;he.throttleDone=pg.done;he.clearThrottle=pg.clear;var gi=zc();he.getGraphDiv=gi.getGraphDiv;he.isPlotDiv=gi.isPlotDiv;he.removeElement=gi.removeElement;he.addStyleRule=gi.addStyleRule;he.addRelatedStyleRule=gi.addRelatedStyleRule;he.deleteRelatedStyleRule=gi.deleteRelatedStyleRule;he.setStyleOnHover=gi.setStyleOnHover;he.getFullTransformMatrix=gi.getFullTransformMatrix;he.getElementTransformMatrix=gi.getElementTransformMatrix;he.getElementAndAncestors=gi.getElementAndAncestors;he.equalDomRects=gi.equalDomRects;he.clearResponsive=x8();he.preserveDrawingBuffer=w8();he.makeTraceGroups=A8();he._=k8();he.notifier=Wy();he.filterUnique=q8();he.filterVisible=L8();he.pushUnique=$y();he.increment=E8();he.cleanNumber=R8();he.ensureNumber=function(r){return B8(r)?(r=Number(r),r>Y8||r=r?!1:B8(e)&&e>=0&&e%1===0};he.noop=Dd();he.identity=ng();he.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};he.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};he.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(he.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};he.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};he.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};he.syncOrAsync=function(e,r,t){var a,n;function i(){return he.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};he.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};he.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};he.fillArray=function(e,r,t,a){if(a=a||he.identity,he.isArrayOrTypedArray(e))for(var n=0;n_$.test(window.navigator.userAgent);var w$=/Firefox\/(\d+)\.\d+/;he.getFirefoxVersion=function(){var e=w$.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};he.isD3Selection=function(e){return e instanceof Yc.selection};he.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};he.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};he.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};he.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var X8=/^\w*$/;he.templateString=function(e,r){var t={};return e.replace(he.TEMPLATE_STRING_REGEX,function(a,n){var i;return X8.test(n)?i=r[n]:(t[n]=t[n]||he.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var M$={max:10,count:0,name:"hovertemplate"};he.hovertemplateString=e=>mg(md(Zo({},e),{opts:M$}));var k$={max:10,count:0,name:"texttemplate"};he.texttemplateString=e=>mg(md(Zo({},e),{opts:k$}));var C$=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function q$(e){var r=e.match(C$);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var S$={max:10,count:0,name:"texttemplate",parseMultDiv:!0};he.texttemplateStringForShapes=e=>mg(md(Zo({},e),{opts:S$}));var F8=/^[:|\|]/;function mg({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(he.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),c=["_xother_","_yother_"].includes(o),d=["xother_","yother_"].includes(o),h=u||f||d||c;(f||c)&&(o=o.substring(1)),(d||c)&&(o=o.substring(0,o.length-1));let p=null,m=null;if(n.parseMultDiv){var y=q$(o);o=y.key,p=y.op,m=y.number}let b;if(h){if(a[o]===void 0)return"";b=a[o]}else for(let A of e)if(A){if(A.hasOwnProperty(o)){b=A[o];break}if(X8.test(o)||(b=he.nestedProperty(A,o).get(!0)),b!==void 0)break}if(b===void 0){let{count:A,max:k,name:M}=n,S=t===!1?l:t;return A=Wd&&l<=I8,u=o>=Wd&&o<=I8;if(s&&(a=10*a+l-Wd),u&&(n=10*n+o-Wd),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Iu=2e9;he.seedPseudoRandom=function(){Iu=2e9};he.pseudoRandom=function(){var e=Iu;return Iu=(69069*Iu+1)%4294967296,Math.abs(Iu-e)<429496729?he.pseudoRandom():Iu/4294967296};he.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=he.extractOption(e,r,"htx","hovertext");if(he.isValidTextValue(n))return a(n);var i=he.extractOption(e,r,"tx","text");if(he.isValidTextValue(i))return a(i)};he.isValidTextValue=function(e){return e||e===0};he.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,he.strTranslate(n-u*(t+l),i-u*(a+o))+he.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};he.setTransormAndDisplay=function(e,r){e.attr("transform",he.getTextTransform(r)),e.style("display",r.scale?null:"none")};he.ensureUniformFontSize=function(e,r){var t=he.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};he.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};he.bigFont=function(e){return Math.round(1.2*e)};var H8=he.getFirefoxVersion(),L$=H8!==null&&H8<86;he.getPositionFromD3Event=function(){return L$?[Yc.event.layerX,Yc.event.layerY]:[Yc.event.offsetX,Yc.event.offsetY]}});var $8=O(()=>{"use strict";var D$=Re(),Z8={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#fff;border-color:#e0e2e5;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#f3f3f3;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(yg in Z8)J8=yg.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),D$.addStyleRule(J8,Z8[yg]);var J8,yg});var gg=O((gge,K8)=>{K8.exports=!0});var bg=O((xge,Q8)=>{"use strict";var E$=gg(),xg;typeof window.matchMedia=="function"?xg=!window.matchMedia("(hover: none)").matches:xg=E$;Q8.exports=xg});var Kd=O((bge,_g)=>{"use strict";var Ou=typeof Reflect=="object"?Reflect:null,j8=Ou&&typeof Ou.apply=="function"?Ou.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Jd;Ou&&typeof Ou.ownKeys=="function"?Jd=Ou.ownKeys:Object.getOwnPropertySymbols?Jd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Jd=function(r){return Object.getOwnPropertyNames(r)};function P$(e){console&&console.warn&&console.warn(e)}var r9=Number.isNaN||function(r){return r!==r};function gt(){gt.init.call(this)}_g.exports=gt;_g.exports.once=F$;gt.EventEmitter=gt;gt.prototype._events=void 0;gt.prototype._eventsCount=0;gt.prototype._maxListeners=void 0;var e9=10;function $d(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(gt,"defaultMaxListeners",{enumerable:!0,get:function(){return e9},set:function(e){if(typeof e!="number"||e<0||r9(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");e9=e}});gt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};gt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||r9(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function t9(e){return e._maxListeners===void 0?gt.defaultMaxListeners:e._maxListeners}gt.prototype.getMaxListeners=function(){return t9(this)};gt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")j8(s,this,t);else for(var u=s.length,f=o9(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,P$(o)}return e}gt.prototype.addListener=function(r,t){return a9(this,r,t,!1)};gt.prototype.on=gt.prototype.addListener;gt.prototype.prependListener=function(r,t){return a9(this,r,t,!0)};function R$(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function n9(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=R$.bind(a);return n.listener=t,a.wrapFn=n,n}gt.prototype.once=function(r,t){return $d(t),this.on(r,n9(this,r,t)),this};gt.prototype.prependOnceListener=function(r,t){return $d(t),this.prependListener(r,n9(this,r,t)),this};gt.prototype.removeListener=function(r,t){var a,n,i,l,o;if($d(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():z$(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};gt.prototype.off=gt.prototype.removeListener;gt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function i9(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?N$(n):o9(n,n.length)}gt.prototype.listeners=function(r){return i9(this,r,!0)};gt.prototype.rawListeners=function(r){return i9(this,r,!1)};gt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):l9.call(e,r)};gt.prototype.listenerCount=l9;function l9(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}gt.prototype.eventNames=function(){return this._eventsCount>0?Jd(this._events):[]};function o9(e,r){for(var t=new Array(r),a=0;a{"use strict";var wg=Kd().EventEmitter,H$={init:function(e){if(e._ev instanceof wg)return e;var r=new wg,t=new wg;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var f9=Re(),B$=Qo().dfltConfig;function O$(e,r){for(var t=[],a,n=0;nB$.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};gl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};gl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};gl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";d9.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Uu=O(jt=>{"use strict";var On=gr(),Uc=Re(),jd=sn(),Ag=Pu(),Y$=Tg(),V$=Nc(),U$=Qo().configAttributes,h9=pi(),xi=Uc.extendDeepAll,Yu=Uc.isPlainObject,G$=Uc.isArrayOrTypedArray,eh=Uc.nestedProperty,X$=Uc.valObjectMeta,Mg="_isSubplotObj",rh="_isLinkedToArray",W$="_arrayAttrRegexps",m9="_deprecated",kg=[Mg,rh,W$,m9];jt.IS_SUBPLOT_OBJ=Mg;jt.IS_LINKED_TO_ARRAY=rh;jt.DEPRECATED=m9;jt.UNDERSCORE_ATTRS=kg;jt.get=function(){var e={};return On.allTypes.forEach(function(r){e[r]=J$(r)}),{defs:{valObjects:X$,metaKeys:kg.concat(["description","role","editType","impliedEdits"]),editType:{traces:h9.traces,layout:h9.layout},impliedEdits:{}},traces:e,layout:$$(),frames:K$(),animation:Vu(V$),config:Vu(U$)}};jt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(kg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!jt.isValObject(l)&&Yu(l)&&i!=="impliedEdits"&&jt.crawl(l,r,n+1,o)}})};jt.isValObject=function(e){return e&&e.valType!==void 0};jt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var d=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));d&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],d=f+t[u];if(u===t.length-1)G$(c)&&r.push(i+d);else if(a[u]){if(Array.isArray(c))for(var h=0;h=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Qd(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Qd(e){return e===Math.round(e)&&e>=0}function J$(e){var r,t;r=On.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=xi({},jd),i=xi({},r.attributes);jt.crawl(i,function(s,u,f,c,d){eh(n,d).set(void 0),s===void 0&&eh(i,d).set(void 0)}),xi(a,n),On.traceIs(e,"noOpacity")&&delete a.opacity,On.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),On.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,xi(a,i),t.attributes&&xi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Vu(a)};if(r.layoutAttributes){var o={};xi(o,r.layoutAttributes),l.layoutAttributes=Vu(o)}return r.animatable||jt.crawl(l,function(s){jt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function $$(){var e={},r,t;xi(e,Ag);for(r in On.subplotsRegistry)if(t=On.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Gu=Re(),tK=sn(),Kl="templateitemname",Cg={name:{valType:"string",editType:"none"}};Cg[Kl]={valType:"string",editType:"calc"};ns.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Cg.name,r[Kl]=Cg[Kl],r};ns.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Gu.coerce(i,{},tK,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};ns.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Gu.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};ns.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[x9(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[Kl]=u[Kl];if(!g9(c))return f._template=n,f;for(var d=0;d=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Kl]=i)}s();function u(h,p){o[h]=p}function f(h,p){i?Gu.nestedProperty(o[l],h).set(p):o[l+"."+h]=p}function c(){var h=o;return s(),h}function d(h,p){h&&f(h,p);var m=c();for(var y in m)Gu.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:d}}});var na=O((kge,b9)=>{"use strict";var Gc=Su().counter;b9.exports={idRegex:{x:Gc("x","( domain)?"),y:Gc("y","( domain)?")},attrRegex:Gc("[xy]axis"),xAxisMatch:Gc("xaxis"),yAxisMatch:Gc("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Xt=O(vn=>{"use strict";var aK=gr(),qg=na();vn.id2name=function(r){if(!(typeof r!="string"||!r.match(qg.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};vn.name2id=function(r){if(r.match(qg.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};vn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(qg.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};vn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=vn.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};vn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function _9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function nK(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function iK(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}w9.exports={clearOutlineControllers:nK,clearOutline:iK}});var th=O((Sge,T9)=>{"use strict";T9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Sg=O(nh=>{"use strict";var ah=gr(),Lge=na().SUBPLOT_PATTERN;nh.getSubplotCalcData=function(e,r,t){var a=ah.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var lK=gr(),Xu=Re();is.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=is.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){A9(e,l,n.cache),n.check=function(){if(i){var f=A9(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Xu.isPlainObject(i)?Lg(i,r,l,a+1):r(l,n,i)}})}});var Et=O((Pge,B9)=>{"use strict";var sK=kr(),uK=Au().timeFormatLocale,fK=Ny().formatLocale,Xc=zr(),cK=Fy(),vK=Mc().version,Wr=gr(),R9=Uu(),dK=ot(),ur=Re(),z9=br(),q9=Tt().BADNUM,dn=Xt(),hK=Ql().clearOutline,pK=th(),Dg=Nc(),mK=Tg(),yK=Sg().getModuleCalcData,S9=ur.relinkPrivateKeys,ls=ur._,Ke=B9.exports={};ur.extendFlat(Ke,Wr);Ke.attributes=sn();Ke.attributes.type.values=Ke.allTypes;Ke.fontAttrs=ta();Ke.layoutAttributes=Pu();var lh=C9();Ke.executeAPICommand=lh.executeAPICommand;Ke.computeAPICommandBindings=lh.computeAPICommandBindings;Ke.manageCommandObserver=lh.manageCommandObserver;Ke.hasSimpleAPICommandBindings=lh.hasSimpleAPICommandBindings;Ke.redrawText=function(e){return e=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Wr.getComponentMethod("annotations","draw")(e),Wr.getComponentMethod("legend","draw")(e),Wr.getComponentMethod("colorbar","draw")(e),r(Ke.previousPromises(e)))},300)})};Ke.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Wr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Ke.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Ke.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:z9.defaultLine,"pointer-events":"all"}).each(function(){var u=sK.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&gK(e,i),l.text(i.text()&&o.text()?" - ":"")}};function gK(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Ke.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Ke.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Ke.graphJson(e,!1,"keepdata","object");a.version=vK;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var l=function(o){o.origin===t&&o.data&&o.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var xK=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],bK=["year","month","dayMonth","dayMonthYear"];Ke.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Ke.createTransitionData(e),n._dfltTitle={plot:ls(e,"Click to enter Plot title"),subtitle:ls(e,"Click to enter Plot subtitle"),x:ls(e,"Click to enter X axis title"),y:ls(e,"Click to enter Y axis title"),colorbar:ls(e,"Click to enter Colorscale title"),annotation:ls(e,"new text")},n._traceWord=ls(e,"trace");var d=L9(e,xK);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var h=a.width,p=a.height;Ke.supplyLayoutGlobalDefaults(i,n,d),i.width||(n.width=h),i.height||(n.height=p),Ke.sanitizeMargins(n)}else{Ke.supplyLayoutGlobalDefaults(i,n,d);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,_=m&&(y||b);_?Ke.plotAutoSize(e,i,n):m&&Ke.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=TK(d,n.separators),n._extraFormat=L9(e,bK),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=wK(),x=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=_K(l,s),Ke.supplyDataDefaults(s,o,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(Wr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Ke.linkSubplots(o,n,l,a),Ke.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),I=N,Y=H;I&&!Y?a._bgLayer.remove():Y&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&hK({_fullLayout:a}),AK(o,n),S9(n,a),Wr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var G=n._tracePreGUI,V={},U;for(U in G)V[U]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=Ke.layoutAttributes.width.min,d=Ke.layoutAttributes.height.min;l1,p=!t.height&&Math.abs(a.height-o)>1;(p||h)&&(h&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Ke.sanitizeMargins(a)};Ke.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Wr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Wr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Wr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=y,t.r/=y)}if(d){var b=(t.t+t.b)/d;b>1&&(t.t/=b,t.b/=b)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:_,size:t.l+m},r:{val:w,size:t.r+m},b:{val:A,size:t.b+m},t:{val:x,size:t.t+m}},p[r]=1}if(!a._replotting)return Ke.doAutoMargin(e)}};function kK(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=dn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Ke.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),N9(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,d=r._pushmargin,h=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in d)h[y]||delete d[y];var b=e._fullLayout._reservedMargin;for(var _ in b)for(var w in b[_]){var x=b[_][w];l[w]=Math.max(l[w],x)}d.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var A in l){var k=0;for(var M in d)M!=="base"&&Xc(d[M][A].size)&&(k=d[M][A].size>k?d[M][A].size:k);var S=Math.max(0,i[A]-k);l[A]=Math.max(0,l[A]-S)}for(var D in d){var E=d[D].l||{},R=d[D].b||{},N=E.val,H=E.size,I=R.val,Y=R.size,G=t-l.r-l.l,V=a-l.t-l.b;for(var U in d){if(Xc(H)&&d[U].r){var B=d[U].r.val,J=d[U].r.size;if(B>N){var X=(H*B+(J-G)*N)/(B-N),ee=(J*(1-N)+(H-G)*(1-B))/(B-N);X+ee>s+u&&(s=X,u=ee)}}if(Xc(Y)&&d[U].t){var le=d[U].t.val,fe=d[U].t.size;if(le>I){var ce=(Y*le+(fe-V)*I)/(le-I),j=(fe*(1-I)+(Y-V)*(1-le))/(le-I);ce+j>c+f&&(c=ce,f=j)}}}}}var qe=ur.constrain(t-i.l-i.r,F9,p),ve=ur.constrain(a-i.t-i.b,I9,m),be=Math.max(0,t-qe),_e=Math.max(0,a-ve);if(be){var ge=(s+u)/be;ge>1&&(s/=ge,u/=ge)}if(_e){var W=(c+f)/_e;W>1&&(c/=W,f/=W)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Ke.didMarginChange(o,n)||kK(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Ke.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Ke.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(d,h){if(typeof d=="function")return h?"_function_":null;if(ur.isPlainObject(d)){var p={},m;return Object.keys(d).sort().forEach(function(w){if(["_","["].indexOf(w.charAt(0))===-1){if(typeof d[w]=="function"){h&&(p[w]="_function");return}if(t==="keepdata"){if(w.slice(-3)==="src")return}else if(t==="keepstream"){if(m=d[w+"src"],typeof m=="string"&&m.indexOf(":")>0&&!ur.isPlainObject(d.stream))return}else if(t!=="keepall"&&(m=d[w+"src"],typeof m=="string"&&m.indexOf(":")>0))return;p[w]=u(d[w],h)}}),p}var y=Array.isArray(d),b=ur.isTypedArray(d);if((y||b)&&d.dtype&&d.shape){var _=d.bdata;return u({dtype:d.dtype,shape:d.shape,bdata:ur.isArrayBuffer(_)?cK.encode(_):_},h)}return y?d.map(function(w){return u(w,h)}):b?ur.simpleMap(d,ur.identity):ur.isJSDate(d)?ur.ms2DateTimeLocal(+d):d}var f={data:(l||[]).map(function(d){var h=u(d);return r&&delete h.fit,h})};if(!r&&(f.layout=u(o),n)){var c=o._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Ke.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Wr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var d=0,h=0;function p(){return d++,function(){h++,!a&&h===d&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Wr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Ke.previousPromises,s,t.prepareFn,Ke.rehover,Ke.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Ke.doCalcdata=function(e,r){var t=dn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}l&&l.calc&&(x=l.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:q9,y:q9}]),x[0].t||(x[0].t={}),x[0].trace=i,u[_]=x}}for(E9(t,a,n),o=0;o{"use strict";os.xmlns="http://www.w3.org/2000/xmlns/";os.svg="http://www.w3.org/2000/svg";os.xlink="http://www.w3.org/1999/xlink";os.svgAttrs={xmlns:os.svg,"xmlns:xlink":os.xlink}});var ka=O((zge,O9)=>{"use strict";O9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ia=O(Yn=>{"use strict";var Wt=kr(),xl=Re(),LK=xl.strTranslate,Eg=ss(),DK=ka().LINE_SPACING,EK=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(EK),i=Wt.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=GK(e.node(),a);s&&e.style("pointer-events","all"),Yn.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};NK(n[2],f,function(c,d,h){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){o(),s();return}var m=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(p.node()),d&&d.node()&&p.node().insertBefore(d.node().cloneNode(!0),p.node().firstChild);var y=h.width,b=h.height;p.attr({class:l,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var _=e.node().style.fill||"black",w=p.select("g");w.attr({fill:_,stroke:_});var x=w.node().getBoundingClientRect(),A=x.width,k=x.height;(A>y||k>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),A=x.width,k=x.height);var M=+e.attr("x"),S=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,E=-D/4;if(l[0]==="y")m.attr({transform:"rotate("+[-90,M,S]+")"+LK(-A/2,E-k/2)});else if(l[0]==="l")S=E-k/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)M=0,S=E;else{var R=e.attr("text-anchor");M=M-A*(R==="middle"?.5:R==="end"?1:0),S=S+E-k/2}p.attr({x:M,y:S}),t&&t.call(e,m),s(m)})})):o(),e};var PK=/(<|<|<)/g,RK=/(>|>|>)/g;function zK(e){return e.replace(PK,"\\lt ").replace(RK,"\\gt ")}var Y9=[["$","$"],["\\(","\\)"]];function NK(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){xl.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=xl.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Y9},displayAlign:"left"})},u=function(){i=xl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Y9},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},d=function(){var _="math-output-"+xl.randstr({},64);o=Wt.select("body").append("div").attr({id:_}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(zK(e));var w=o.node();return a===2?MathJax.Hub.Typeset(w):MathJax.typeset([w])},h=function(){var _=o.select(a===2?".MathJax_SVG":".MathJax"),w=!_.empty()&&o.select("svg").node();if(!w)xl.log("There was an error in the tex syntax.",e),t();else{var x=w.getBoundingClientRect(),A;a===2?A=Wt.select("body").select("#MathJax_SVG_glyphs"):A=_.select("defs"),t(_,A,x)}o.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},m=function(){n!=="svg"&&(MathJax.config.startup.output=n)},y=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,d,h,p,y):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){d(),h(),m(),b()}))}var X9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},FK={sub:"0.3em",sup:"-0.6em"},IK={sub:"-0.21em",sup:"0.42em"},V9="\u200B",U9=["http:","https:","mailto:","",void 0,":"],W9=Yn.NEWLINES=/(\r\n?|\n)/g,Rg=/(<[^<>]*>)/,zg=/<(\/?)([^ >]*)(\s+(.*))?>/i,HK=//i;Yn.BR_TAG_ALL=//gi;var Z9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,J9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,$9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,BK=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function us(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&oh(a)}var OK=/(^|;)\s*color:/;Yn.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Rg),o=[],s="",u=0,f=0;fi?o.push(c.slice(0,Math.max(0,m-i))+n):o.push(c.slice(0,m));break}s=""}}return o.join("")};var YK={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},VK=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function oh(e){return e.replace(VK,function(r,t){var a;return t.charAt(0)==="#"?a=UK(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=YK[t],a||r})}Yn.convertEntities=oh;function UK(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function GK(e,r){r=r.replace(W9," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(Eg.svg,"tspan");Wt.select(k).attr({class:"line",dy:i*DK+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var S=1;S.",r);return}var M=a.pop();k!==M.type&&xl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=HK.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(Rg),d=0;d{"use strict";var XK=kr(),uh=In(),Zc=zr(),sh=Re(),Q9=br(),WK=$o().isValid;function ZK(e,r,t){var a=r?sh.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(sh.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function nT(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var lT=eg(),$K=lT.FORMAT_LINK,KK=lT.DATE_FORMAT_LINK;function QK(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Ng:oT)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Ng(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+$K+"."].join(" ")}function oT(e,r){return Ng(e,r)+[" And for dates see: "+KK+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}sT.exports={axisHoverFormat:QK,descriptionOnlyNumbers:Ng,descriptionWithDates:oT}});var An=O((Bge,MT)=>{"use strict";var uT=ta(),Wu=Hn(),AT=mi().dash,Ig=yt().extendFlat,fT=ot().templatedArray,Hge=_n().templateFormatStringDescription,cT=bi().descriptionWithDates,jK=Tt().ONEDAY,Oi=na(),eQ=Oi.HOUR_PATTERN,rQ=Oi.WEEKDAY_PATTERN,Fg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},tQ=Ig({},Fg,{values:Fg.values.slice().concat(["sync"])});function vT(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var dT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},hT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},pT={valType:"data_array",editType:"ticks"},mT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function yT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function gT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var xT={valType:"color",dflt:Wu.defaultLine,editType:"ticks"},bT={valType:"color",dflt:Wu.lightLine,editType:"ticks"};function _T(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var wT=Ig({},AT,{editType:"ticks"}),TT={valType:"boolean",editType:"ticks"};MT.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Wu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:uT({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Oi.idRegex.x.toString(),Oi.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Oi.idRegex.x.toString(),Oi.idRegex.y.toString()],editType:"calc"},rangebreaks:fT("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[rQ,eQ,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:jK},editType:"calc"}),tickmode:tQ,nticks:vT(),tick0:dT,dtick:hT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:pT,ticktext:{valType:"data_array",editType:"ticks"},ticks:mT,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:yT(),tickwidth:gT(),tickcolor:xT,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Ig({},AT,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:uT({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:cT("tick label")},tickformatstops:fT("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:cT("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Wu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:TT,gridcolor:bT,gridwidth:_T(),griddash:wT,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Wu.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Wu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Oi.idRegex.x.toString(),Oi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Oi.idRegex.x.toString(),Oi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Fg,nticks:vT("minor"),tick0:dT,dtick:hT,tickvals:pT,ticks:mT,ticklen:yT("minor"),tickwidth:gT("minor"),tickcolor:xT,gridcolor:bT,gridwidth:_T("minor"),griddash:wT,showgrid:TT,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var fh=O((Oge,qT)=>{"use strict";var xt=An(),kT=ta(),CT=yt().extendFlat,aQ=pi().overrideAll;qT.exports=aQ({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:xt.linecolor,outlinewidth:xt.linewidth,bordercolor:xt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:xt.minor.tickmode,nticks:xt.nticks,tick0:xt.tick0,dtick:xt.dtick,tickvals:xt.tickvals,ticktext:xt.ticktext,ticks:CT({},xt.ticks,{dflt:""}),ticklabeloverflow:CT({},xt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:xt.ticklen,tickwidth:xt.tickwidth,tickcolor:xt.tickcolor,ticklabelstep:xt.ticklabelstep,showticklabels:xt.showticklabels,labelalias:xt.labelalias,tickfont:kT({}),tickangle:xt.tickangle,tickformat:xt.tickformat,tickformatstops:xt.tickformatstops,tickprefix:xt.tickprefix,showtickprefix:xt.showtickprefix,ticksuffix:xt.ticksuffix,showticksuffix:xt.showticksuffix,separatethousands:xt.separatethousands,exponentformat:xt.exponentformat,minexponent:xt.minexponent,showexponent:xt.showexponent,title:{text:{valType:"string"},font:kT({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Jc=O((Vge,LT)=>{"use strict";var nQ=fh(),iQ=Su().counter,lQ=og(),ST=$o().scales,Yge=lQ(ST);function ch(e){return"`"+e+"`"}LT.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?ST[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+ch(u+f));var d=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",p=a+"min",m=a+"max",y=a+"mid",b=ch(u+h),_=ch(u+p),w=ch(u+m),x=_+" and "+w,A={};A[p]=A[m]=void 0;var k={};k[h]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:l,editType:"calc"},M.colorbar=nQ),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:iQ("coloraxis"),dflt:null,editType:"calc"}),M}});var Bg=O((Uge,DT)=>{"use strict";var oQ=yt().extendFlat,sQ=Jc(),Hg=$o().scales;DT.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Hg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Hg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Hg.RdBu,editType:"calc"}},coloraxis:oQ({_isSubplotObj:!0,editType:"calc"},sQ("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Og=O((Gge,ET)=>{"use strict";var uQ=Re();ET.exports=function(r){return uQ.isPlainObject(r.colorbar)}});var Ug=O(Vg=>{"use strict";var Yg=zr(),PT=Re(),RT=Tt(),fQ=RT.ONEDAY,cQ=RT.ONEWEEK;Vg.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?fQ:1;if(!e)return i;if(Yg(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=Yg(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};Vg.tick0=function(e,r,t,a){if(r==="date")return PT.cleanDate(e,PT.dateTick0(t,a%cQ===0?1:0));if(!(a==="D1"||a==="D2"))return Yg(e)?Number(e):0}});var vh=O((Wge,NT)=>{"use strict";var zT=Ug(),vQ=Re().isArrayOrTypedArray,dQ=on().isTypedArraySpec,hQ=on().decodeTypedArraySpec;NT.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(_){var w=o[_];return dQ(w)&&(w=hQ(w)),w!==void 0?w:(s._template||{})[_]}var c=f("tick0"),d=f("dtick"),h=f("tickvals"),p=vQ(h)?"array":d?"linear":"auto",m=a(u+"tickmode",p);if(m==="auto"||m==="sync")a(u+"nticks");else if(m==="linear"){var y=s.dtick=zT.dtick(d,n);s.tick0=zT.tick0(c,n,t.calendar,y)}else if(n!=="multicategory"){var b=a(u+"tickvals");b===void 0?s.tickmode="auto":l||a("ticktext")}}});var dh=O((Zge,IT)=>{"use strict";var Gg=Re(),FT=An();IT.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?FT.minor:FT,u=i?"minor.":"",f=Gg.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Gg.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),d=Gg.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||d?"outside":"");h||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var Xg=O((Jge,HT)=>{"use strict";HT.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Vn=O(($ge,BT)=>{"use strict";var hh=Re(),pQ=ot();BT.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=hh.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=pQ.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Wg=Re(),mQ=br().contrast,OT=An(),yQ=Xg(),gQ=Vn();YT.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Wg.isPlainObject(l)||delete t.labelalias;var o=yQ(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",d=c.indexOf("inside")!==-1?mQ(i.bgColor):f&&f!==OT.color.dflt?f:u.color;if(Wg.coerceFont(a,"tickfont",u,{overrideDflt:{color:d}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var h=a("tickangle");!i.noAutotickangles&&h==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");gQ(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:xQ}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function xQ(e,r){function t(n,i){return Wg.coerce(e,r,OT.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var mh=O((Qge,VT)=>{"use strict";var bQ=Xg();VT.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=bQ(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Zg=O((jge,UT)=>{"use strict";var jl=Re(),_Q=ot(),wQ=vh(),TQ=dh(),AQ=ph(),MQ=mh(),kQ=fh();UT.exports=function(r,t,a){var n=_Q.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return jl.coerce(i,n,kQ,R,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",d=l("thicknessmode");l("thickness",d==="fraction"?30/(c?s:u):30);var h=l("lenmode");l("len",h==="fraction"?1:c?u:s);var p=l("yref"),m=l("xref"),y=p==="paper",b=m==="paper",_,w,x,A="left";c?(x="middle",A=b?"left":"right",_=b?1.02:1,w=.5):(x=y?"bottom":"top",A="center",_=.5,w=y?1.02:1),jl.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),jl.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:w}},"y"),l("xanchor",A),l("xpad"),l("yanchor",x),l("ypad"),jl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=jl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),wQ(i,n,l,"linear");var M=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(S.bgColor="black"),MQ(i,n,l,"linear",S),AQ(i,n,l,"linear",S),TQ(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:M,E=jl.extendFlat({},M,{family:D.family,size:jl.bigFont(D.size)});jl.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Zu=O((e2e,WT)=>{"use strict";var GT=zr(),$g=Re(),CQ=Og(),qQ=Zg(),XT=$o().isValid,SQ=gr().traceIs;function Jg(e,r){var t=r.slice(0,r.length-1);return r?$g.nestedProperty(e,t).get()||{}:e}WT.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Jg(r,l),f=Jg(t,l),c=Jg(t._template||{},l)||{},d=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},p=n(l+"coloraxis");if(p){var m=SQ(t,"contour")&&$g.nestedProperty(t,"contours.coloring").get()||"heatmap",y=h[p];y?(y[2].push(d),y[0]!==m&&(y[0]=!1,$g.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[p]=[m,t,[d]];return}}var b=u[o+"min"],_=u[o+"max"],w=GT(b)&>(_)&&b<_,x=n(l+o+"auto",!w);x?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var A=u.colorscale,k=c.colorscale,M;if(A!==void 0&&(M=!XT(A)),k!==void 0&&(M=!XT(k)),n(l+"autocolorscale",M),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=CQ(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),qQ(u,f,a))}}});var KT=O((r2e,$T)=>{"use strict";var ZT=Re(),LQ=ot(),JT=Bg(),DQ=Zu();$T.exports=function(r,t){function a(c,d){return ZT.coerce(r,t,JT,c,d)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,d){return ZT.coerce(i,l,JT.coloraxis,c,d)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=LQ.newContainer(t,s,"coloraxis"),l._name=s,DQ(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var EQ=Re(),PQ=Tn().hasColorscale,RQ=Tn().extractOpts;QT.exports=function(r,t){function a(f,c){var d=f["_"+c];d!==void 0&&(f[c]=d)}function n(f,c){var d=c.container?EQ.nestedProperty(f,c.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var h=RQ(d),p=h.auto;(p||h.min===void 0)&&a(d,c.min),(p||h.max===void 0)&&a(d,c.max),h.autocolorscale&&a(d,"colorscale")}}for(var i=0;i{"use strict";var eA=zr(),Kg=Re(),zQ=Tn().extractOpts;rA.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?Kg.nestedProperty(t,l).get():t,s=zQ(o),u=s.auto!==!1,f=s.min,c=s.max,d=s.mid,h=function(){return Kg.aggNums(Math.min,null,i)},p=function(){return Kg.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(o._colorAx&&eA(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(o._colorAx&&eA(c)?c=Math.max(c,p()):c=p()),u&&d!==void 0&&(c-d>d-f?f=d-(c-d):c-d=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var Qg=O((n2e,tA)=>{"use strict";var yh=$o(),Ju=Tn();tA.exports={moduleType:"component",name:"colorscale",attributes:Jc(),layoutAttributes:Bg(),supplyLayoutDefaults:KT(),handleDefaults:Zu(),crossTraceDefaults:jT(),calc:$c(),scales:yh.scales,defaultScale:yh.defaultScale,getScale:yh.get,isValidScale:yh.isValid,hasColorscale:Ju.hasColorscale,extractOpts:Ju.extractOpts,extractScale:Ju.extractScale,flipScale:Ju.flipScale,makeColorScaleFunc:Ju.makeColorScaleFunc,makeColorScaleFuncFromTrace:Ju.makeColorScaleFuncFromTrace}});var Mn=O((i2e,nA)=>{"use strict";var aA=Re(),NQ=on().isTypedArraySpec;nA.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return aA.isPlainObject(r)&&(aA.isArrayOrTypedArray(r.size)||NQ(r.size))}}});var lA=O((l2e,iA)=>{"use strict";var FQ=zr();iA.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return FQ(s)&&s>0?Math.max(s,i):0}}});var Yi=O(Ra=>{"use strict";var gh=Re();Ra.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ra.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{uA.exports=YQ;var jg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},OQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function YQ(e){var r=[];return e.replace(OQ,function(t,a,n){var i=a.toLowerCase();for(n=UQ(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==jg[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var GQ=e2(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Cr="M0,0Z",fA=Math.sqrt(2),eo=Math.sqrt(3),r2=Math.PI,t2=Math.cos,a2=Math.sin;pA.exports={circle:{n:0,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.4,2),n=Je(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.8/fA,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Sr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*2/eo,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*2/eo,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*2/eo,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*2/eo,2),n=Je(e/2,2),i=Je(e,2);return Sr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Sr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),l=Je(e*-.309,2),o=Je(e*.809,2);return Sr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*eo/2,2);return Sr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*eo/2,2);return Sr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.924,2),n=Je(e*.383,2);return Sr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(qr(r))return Cr;var a=e*1.4,n=Je(a*.225,2),i=Je(a*.951,2),l=Je(a*.363,2),o=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),c=Je(a*.809,2),d=Je(a*.382,2);return Sr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+d+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Sr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*eo*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*eo*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),l=Je(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*.7,2),n=Je(e*1.4,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.4,2),n=Je(e*.7,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2),n=Je(e/fA,2);return Sr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.3,2),n=Je(e*.65,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.2,2),n=Je(e*.85,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e/2,2),n=Je(e,2);return Sr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Sr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.4,2);return Sr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2);return Sr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e,2),n=Je(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(qr(r))return Cr;var a=Je(e*2,2),n=Je(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(qr(r))return Cr;var a=r2/2.5,n=2*e*t2(a),i=2*e*a2(a);return Sr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(qr(r))return Cr;var a=r2/4,n=2*e*t2(a),i=2*e*a2(a);return Sr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function qr(e){return e===null}var cA,vA,dA,hA;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(dA===e&&hA===r&&cA===t)return vA;dA=e,hA=r,cA=t;function a(y,b){var _=t2(y),w=a2(y),x=b[0],A=b[1]+(r||0);return[x*_-A*w,x*w+A*_]}for(var n=e/180*r2,i=0,l=0,o=GQ(t),s="",u=0;u{"use strict";var la=kr(),at=Re(),XQ=at.numberFormat,ds=zr(),u2=In(),bh=gr(),Ca=br(),WQ=Qg(),Qc=at.strTranslate,_h=ia(),ZQ=ss(),JQ=ka(),$Q=JQ.LINE_SPACING,kA=qu().DESELECTDIM,KQ=Mn(),QQ=lA(),jQ=Yi().appendArrayPointValue,je=NA.exports={};je.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(Ca.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",n2(rj(f))),s&&e.style("text-shadow",s==="auto"?_h.makeTextShadow(Ca.contrast(i)):n2(s)),u&&e.style("text-decoration-line",n2(tj(u)))};function n2(e){return e==="none"?void 0:e}var ej={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function rj(e){return ej[e]}function tj(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}je.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};je.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};je.setRect=function(e,r,t,a,n){e.call(je.setPosition,r,t).call(je.setSize,a,n)};je.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(ds(n)&&ds(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Qc(n,i));else return!1;return!0};je.translatePoints=function(e,r,t){e.each(function(a){var n=la.select(this);je.translatePoint(a,n,r,t)})};je.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};je.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=bh.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){je.hideOutsideRangePoint(u,la.select(this),t,a,l,o)})})}};je.crispRound=function(e,r,t){return!r||!ds(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};je.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";Ca.stroke(r,a||i.color),je.dashLine(r,o,l)};je.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";la.select(this).call(Ca.stroke,t||i.color).call(je.dashLine,o,l)})};je.dashLine=function(e,r,t){t=+t||0,r=je.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};je.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function CA(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=je.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),d=l(n.solidity,0,.3),h=r.uid;je.pattern(e,"point",t,h,o,c,d,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;p==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(LA,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(je.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ca.fill,r.fillcolor)}je.singleFillStyle=function(e,r){var t=la.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};CA(e,n,r,!1)};je.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=la.select(this);a[0].trace&&CA(n,a[0].trace,r,t)})};var yA=mA();je.symbolNames=[];je.symbolFuncs=[];je.symbolBackOffs=[];je.symbolNeedLines={};je.symbolNoDot={};je.symbolNoFill={};je.symbolList=[];Object.keys(yA).forEach(function(e){var r=yA[e],t=r.n;je.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),je.symbolNames[t]=e,je.symbolFuncs[t]=r.f,je.symbolBackOffs[t]=r.backoff||0,r.needLine&&(je.symbolNeedLines[t]=!0),r.noDot?je.symbolNoDot[t]=!0:je.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(je.symbolNoFill[t]=!0)});var aj=je.symbolNames.length,nj="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";je.symbolNumber=function(e){if(ds(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=je.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=aj||e>=400?0:Math.floor(Math.max(e,0))};function qA(e,r,t,a){var n=e%100;return je.symbolFuncs[n](r,t,a)+(e>=200?nj:"")}var gA=XQ("~f"),SA={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};je.gradient=function(e,r,t,a,n,i){var l=SA[a];return LA(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function LA(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var d=new Array(f),h=0;h=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=je.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=v2(e,t),c=c2(e,t);r.attr("d",qA(u,s,f,c))}var d=!1,h,p,m;if(e.so)m=o.outlierwidth,p=o.outliercolor,h=l.outliercolor;else{var y=(o||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):at.isArrayOrTypedArray(o.color)?p=Ca.defaultLine:p=o.color,at.isArrayOrTypedArray(l.color)&&(h=Ca.defaultLine,d=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let b=e.mld||(o||{}).dash;if(b&&je.dashLine(r,b,m),e.om)r.call(Ca.stroke,h).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var _=l.gradient,w=e.mgt;w?d=!0:w=_&&_.type,at.isArrayOrTypedArray(w)&&(w=w[0],SA[w]||(w=0));var x=l.pattern,A=je.getPatternAttr,k=x&&(A(x.shape,e.i,"")||A(x.path,e.i,""));if(w&&w!=="none"){var M=e.mgc;M?d=!0:M=_.color;var S=t.uid;d&&(S+="-"+e.i),je.gradient(r,n,S,w,[[0,M],[1,h]],"fill")}else if(k){var D=!1,E=x.fgcolor;!E&&i&&i.color&&(E=i.color,D=!0);var R=A(E,e.i,i&&i.color||null),N=A(x.bgcolor,e.i,null),H=x.fgopacity,I=A(x.size,e.i,8),Y=A(x.solidity,e.i,.3);D=D||e.mcc||at.isArrayOrTypedArray(x.shape)||at.isArrayOrTypedArray(x.path)||at.isArrayOrTypedArray(x.bgcolor)||at.isArrayOrTypedArray(x.fgcolor)||at.isArrayOrTypedArray(x.size)||at.isArrayOrTypedArray(x.solidity);var G=t.uid;D&&(G+="-"+e.i),je.pattern(r,"point",n,G,k,I,Y,e.mcc,x.fillmode,N,R,H)}else at.isArrayOrTypedArray(h)?Ca.fill(r,h[e.i]):Ca.fill(r,h);m&&Ca.stroke(r,p)}};je.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=je.tryColorscale(t,""),r.lineScale=je.tryColorscale(t,"line"),bh.traceIs(e,"symbols")&&(r.ms2mrc=KQ.isBubble(e)?QQ(e):function(){return(t.size||6)/2}),e.selectedpoints&&at.extendFlat(r,je.makeSelectedPointStyleFns(e)),r};je.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(at.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(x){var A=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:A:c?u:kA*A});var d=n.color,h=i.color,p=l.color;(h||p)&&(r.selectedColorFn=function(x){var A=x.mcc||d;return x.selected?h||A:p||A});var m=n.size,y=i.size,b=l.size,_=y!==void 0,w=b!==void 0;return bh.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(x){var A=x.mrc||m/2;return x.selected?_?y/2:A:w?b/2:A}),r};je.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:Ca.addOpacity(c,kA))},r};je.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){Ca.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",qA(je.symbolNumber(o),s,v2(l,r),c2(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=la.select(this),o=0;o0?t:0}je.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=je.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=la.select(this),u=i?at.extractOption(o,r,"txt","texttemplate"):at.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},d={};jQ(d,r,o.i),u=at.texttemplateString({data:[d,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var h=o.tp||r.textposition,p=EA(o,r),m=a?a(o):o.tc||r.textfont.color;s.call(je.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:p,color:m}).text(u).call(_h.convertToTspans,t).call(DA,h,p,o.mrc)})}};je.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=je.makeSelectedTextStyleFns(r);e.each(function(a){var n=la.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=EA(a,r);Ca.fill(n,i);var s=bh.traceIs(r,"bar-like");DA(n,l,o,a.mrc2||a.mrc,s)})}};var xA=.5;je.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(A<=c&&A>=u||A>=c&&A<=u)&&(e=[x,A])}return e}je.applyBackoff=zA;je.makeTester=function(){var e=at.ensureSingleById(la.select("body"),"svg","js-plotly-tester",function(t){t.attr(ZQ.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=at.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});je.tester=e,je.testref=r};je.savedBBoxes={};var l2=0,oj=1e4;je.bBox=function(e,r,t){t||(t=bA(e));var a;if(t){if(a=je.savedBBoxes[t],a)return at.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=bA(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=je.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=je.savedBBoxes[t],a)return at.extendFlat({},a)}}var u,f;r?u=e:(f=je.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),la.select(u).attr("transform",null).call(_h.positionText,0,0);var c=u.getBoundingClientRect(),d=je.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:c.height,width:c.width,left:c.left-d.left,top:c.top-d.top,right:c.right-d.left,bottom:c.bottom-d.top};return l2>=oj&&(je.savedBBoxes={},l2=0),t&&(je.savedBBoxes[t]=h),l2++,at.extendFlat({},h)};function bA(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}je.setClipUrl=function(e,r,t){e.attr("clip-path",f2(r,t))};function f2(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}je.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};je.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=Qc(r,t),l=l.trim(),e[i]("transform",l),l};je.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};je.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var sj=/\s*sc.*/;je.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(sj,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var uj=/translate\([^)]*\)\s*$/;je.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=la.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(uj);r===1&&t===1?a=[]:a=[Qc(l,o),"scale("+r+","+t+")",Qc(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function c2(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}je.getMarkerStandoff=c2;var Kc=Math.atan2,fs=Math.cos,Ku=Math.sin;function _A(e,r){var t=r[0],a=r[1];return[t*fs(e)-a*Ku(e),t*Ku(e)+a*fs(e)]}var wA,TA,AA,MA,o2,s2;function v2(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||at.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),d=r._geo.project([u+1e-5,f]),h=Kc(d[1]-n,d[0]-a),p=Kc(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,_=wA/180*Math.PI,w=TA/180*Math.PI,x=_-y,A=fs(w)*Ku(x),k=Ku(w)*fs(b)-fs(w)*Ku(b)*fs(x);m=-Kc(A,k)-Math.PI,wA=u,TA=f}var M=_A(h,[fs(m),0]),S=_A(p,[Ku(m),0]);t=Kc(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(s2===r.uid&&e.i===o2+1)&&(t=null)}if(i==="previous"&&!r._geo)if(s2===r.uid&&e.i===o2+1&&ds(a)&&ds(n)){var D=a-AA,E=n-MA,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=Kc(E,D)/Math.PI*180+90}else t=null}return AA=a,MA=n,o2=e.i,s2=r.uid,t}je.getMarkerAngle=v2});var jc=O((c2e,BA)=>{"use strict";var Qu=kr(),fj=zr(),cj=Et(),d2=gr(),hs=Re(),FA=hs.strTranslate,wh=Yr(),Th=br(),ju=ia(),IA=qu(),vj=ka().OPPOSITE_SIDE,HA=/ [XY][0-9]* /,h2=1.6,p2=1.6;function dj(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,d=1,h=n.title,p=(h&&h.text?h.text:"").trim(),m=!1,y=h&&h.font?h.font:{},b=y.family,_=y.size,w=y.color,x=y.weight,A=y.style,k=y.variant,M=y.textcase,S=y.lineposition,D=y.shadow,E=t.subtitlePropName,R=!!E,N=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},I=(H.text||"").trim(),Y=!1,G=1,V=H.font,U=V.family,B=V.size,J=V.color,X=V.weight,ee=V.style,le=V.variant,fe=V.textcase,ce=V.lineposition,j=V.shadow,qe;i==="title.text"?qe="titleText":i.indexOf("axis")!==-1?qe="axisTitleText":i.indexOf("colorbar")!==-1&&(qe="colorbarTitleText");var ve=e._context.edits[qe];function be(Ie,We){return Ie===void 0||We===void 0?!1:Ie.replace(HA," % ")===We.replace(HA," % ")}p===""?d=0:be(p,l)&&(ve||(p=""),d=.2,m=!0),R&&(I===""?G=0:be(I,N)&&(ve||(I=""),G=.2,Y=!0)),t._meta?p=hs.templateString(p,t._meta):a._meta&&(p=hs.templateString(p,a._meta));var _e=p||I||ve,ge;c||(c=hs.ensureSingle(a._infolayer,"g","g-"+r),ge=a._hColorbarMoveTitle);var W=c.selectAll("text."+r).data(_e?[0]:[]);W.enter().append("text"),W.text(p).attr("class",r),W.exit().remove();var Q=null,Z=r+"-subtitle",oe=I||ve;if(R&&(Q=c.selectAll("text."+Z).data(oe?[0]:[]),Q.enter().append("text"),Q.text(I).attr("class",Z),Q.exit().remove()),!_e)return c;function me(Ie,We){hs.syncOrAsync([xe,ze],{title:Ie,subtitle:We})}function xe(Ie){var We=Ie.title,De=Ie.subtitle,He;!f&&ge&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ge)&&(He+=FA(0,(f.offset||0)-(ge||0)))):He=null,We.attr("transform",He);function Xe(ke){if(ke){var Ce=Qu.select(ke.node().parentNode).select("."+Z);if(!Ce.empty()){var Be=ke.node().getBBox();if(Be.height){var Ze=Be.y+Be.height+h2*B;Ce.attr("y",Ze)}}}}if(We.style("opacity",d*Th.opacity(w)).call(wh.font,{color:Th.rgb(w),size:Qu.round(_,2),family:b,weight:x,style:A,variant:k,textcase:M,shadow:D,lineposition:S}).attr(u).call(ju.convertToTspans,e,Xe),De&&!De.empty()){var ie=c.select("."+r+"-math-group"),we=We.node().getBBox(),$e=ie.node()?ie.node().getBBox():void 0,dr=$e?$e.y+$e.height+h2*B:we.y+we.height+p2*B,Ne=hs.extendFlat({},u,{y:dr});De.attr("transform",He),De.style("opacity",G*Th.opacity(J)).call(wh.font,{color:Th.rgb(J),size:Qu.round(B,2),family:U,weight:X,style:ee,variant:le,textcase:fe,shadow:j,lineposition:ce}).attr(Ne).call(ju.convertToTspans,e)}return cj.previousPromises(e)}function ze(Ie){var We=Ie.title,De=Qu.select(We.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var He=vj[s.side],Xe=s.side==="left"||s.side==="top"?-1:1,ie=fj(s.pad)?s.pad:2,we=wh.bBox(De.node()),$e={t:0,b:0,l:0,r:0},dr=e._fullLayout._reservedMargin;for(var Ne in dr)for(var ke in dr[Ne]){var Ce=dr[Ne][ke];$e[ke]=Math.max($e[ke],Ce)}var Be={left:$e.l,top:$e.t,right:a.width-$e.r,bottom:a.height-$e.b},Ze=s.maxShift||Xe*(Be[s.side]-we[s.side]),Ve=0;if(Ze<0)Ve=Ze;else{var Ge=s.offsetLeft||0,ir=s.offsetTop||0;we.left-=Ge,we.right-=Ge,we.top-=ir,we.bottom-=ir,s.selection.each(function(){var er=wh.bBox(this);hs.bBoxIntersect(we,er,ie)&&(Ve=Math.max(Ve,Xe*(er[s.side]-we[He])+ie))}),Ve=Math.min(Ze,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Ze<0){var ar={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];De.attr("transform",FA(ar[0],ar[1]))}}}W.call(me,Q);function Ee(Ie,We){Ie.text(We).on("mouseover.opacity",function(){Qu.select(this).transition().duration(IA.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Qu.select(this).transition().duration(IA.HIDE_PLACEHOLDER).style("opacity",0)})}if(ve&&(p?W.on(".opacity",null):(Ee(W,l),m=!0),W.call(ju.makeEditable,{gd:e}).on("edit",function(Ie){o!==void 0?d2.call("_guiRestyle",e,i,Ie,o):d2.call("_guiRelayout",e,i,Ie)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(Ie){this.text(Ie||" ").call(ju.positionText,u.x,u.y)}),R)){if(R&&!p){var Se=W.node().getBBox(),Ue=Se.y+Se.height+p2*B;Q.attr("y",Ue)}I?Q.on(".opacity",null):(Ee(Q,N),Y=!0),Q.call(ju.makeEditable,{gd:e}).on("edit",function(Ie){d2.call("_guiRelayout",e,"title.subtitle.text",Ie)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(Ie){this.text(Ie||" ").call(ju.positionText,Q.attr("x"),Q.attr("y"))})}return W.classed("js-placeholder",m),Q&&!Q.empty()&&Q.classed("js-placeholder",Y),c}BA.exports={draw:dj,SUBTITLE_PADDING_EM:p2,SUBTITLE_PADDING_MATHJAX_EM:h2}});var Dh=O((v2e,GA)=>{"use strict";var hj=kr(),pj=Au().utcFormat,st=Re(),mj=st.numberFormat,Vi=zr(),ro=st.cleanNumber,yj=st.ms2DateTime,OA=st.dateTime2ms,Ui=st.ensureNumber,YA=st.isArrayOrTypedArray,to=Tt(),Ah=to.FP_SAFE,_i=to.BADNUM,gj=to.LOG_CLIP,xj=to.ONEWEEK,Mh=to.ONEDAY,kh=to.ONEHOUR,VA=to.ONEMIN,UA=to.ONESEC,Ch=Xt(),Lh=na(),qh=Lh.HOUR_PATTERN,Sh=Lh.WEEKDAY_PATTERN;function ev(e){return Math.pow(10,e)}function m2(e){return e!=null}GA.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,A){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&A&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*gj*Math.abs(k-M))}else return _i}function l(x,A,k,M){if((M||{}).msUTC&&Vi(x))return+x;var S=OA(x,k||r.calendar);if(S===_i)if(Vi(x)){x=+x;var D=Math.floor(st.mod(x+.05,1)*10),E=Math.round(x-D/10);S=OA(new Date(E))+D/10}else return _i;return S}function o(x,A,k){return yj(x,A,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(m2(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var A=r._categories.length-1;return r._categoriesMap[x]=A,A}return _i}function f(x,A){for(var k=new Array(A),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,S=M*x,D=0,E=0;EN)D=E+1;else{D=S<(R+N)/2?E:E+1;break}}var H=r._B[D]||0;return isFinite(H)?p(x,r._m2,H):0},b=function(x){var A=r._rangebreaks.length;if(!A)return m(x,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return m(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Ui,r.l2c=r.type==="log"?ev:Ui,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(x,A){return y(i(x,A))}:y,r.p2c=r.type==="log"?function(x){return ev(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=ro,r.c2d=r.c2r=r.l2d=r.l2r=Ui,r.d2p=r.r2p=function(x){return r.l2p(ro(x))},r.p2d=r.p2r=b,r.cleanPos=Ui):r.type==="log"?(r.d2r=r.d2l=function(x,A){return i(ro(x),A)},r.r2d=r.r2c=function(x){return ev(ro(x))},r.d2c=r.r2l=ro,r.c2d=r.l2r=Ui,r.c2r=i,r.l2d=ev,r.d2p=function(x,A){return r.l2p(r.d2r(x,A))},r.p2d=function(x){return ev(b(x))},r.r2p=function(x){return r.l2p(ro(x))},r.p2r=b,r.cleanPos=Ui):r.type==="date"?(r.d2r=r.r2d=st.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(x,A,k){return r.l2p(l(x,0,k))},r.p2d=r.p2r=function(x,A,k){return o(b(x),A,k)},r.cleanPos=function(x){return st.cleanDate(x,_i,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(x){var A=h(x);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=Ui,r.r2l=h,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Ui(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(x){var A=d(x);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ui,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Ui(x)},r.setupMultiCategory=function(x){var A=r._traceIndices,k,M,S=r._matchGroup;if(S&&r._categories.length===0){for(var D in S)if(D!==a){var E=t[Ch.id2name(D)];A=A.concat(E._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(k=0;kE[1]&&(M[D?0:1]=k,S[1]=E[1]),S[0]>=S[1])if(A!==void 0){var R=E[0]+1;k!==void 0&&(R=Math.min(R,E[1])),M[D?0:1]=r.l2r(R)}else k!==void 0&&(M[D?1:0]=r.l2r(E[1]-1))}},r.cleanRange=function(x,A){r._cleanRange(x,A),r.limitRange(x)},r._cleanRange=function(x,A){A||(A={}),x||(x="range");var k=st.nestedProperty(r,x).get(),M,S;if(r.type==="date"?S=st.dfltRange(r.calendar):n==="y"?S=Lh.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=A.dfltRange||Lh.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){st.nestedProperty(r,x).set(S);return}var D=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=st.cleanDate(k[0],_i,r.calendar),k[1]=st.cleanDate(k[1],_i,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!st.isDateTime(k[M],r.calendar)){r[x]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=st.constrain(r.r2l(k[0]),st.MIN_MS+1e3,st.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!Vi(k[M]))if(!(D||E)&&Vi(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=S;break}if(k[M]<-Ah?k[M]=-Ah:k[M]>Ah&&(k[M]=Ah),k[0]===k[1]){var N=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=N,k[1]+=N}}},r.setScale=function(x){var A=t._size;if(r.overlaying){var k=Ch.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=x&&r._r?"_r":"range",S=r.calendar;r.cleanRange(M);var D=r.r2l(r[M][0],S),E=r.r2l(r[M][1],S),R=n==="y";if(R?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,H;if(r._rangebreaks=r.locateBreaks(Math.min(D,E),Math.max(D,E)),r._rangebreaks.length){for(N=0;NE&&(I=!I),I&&r._rangebreaks.reverse();var Y=I?-1:1;for(r._m2=Y*r._length/(Math.abs(E-D)-r._lBreaks),r._B.push(-r._m2*(R?E:D)),N=0;NS&&(S+=7,DS&&(S+=24,D=M&&D=M&&x=j.min&&(eej.max&&(j.max=le),fe=!1)}fe&&E.push({min:ee,max:le})}};for(k=0;k{"use strict";var XA=zr(),y2=Re(),bj=Tt().BADNUM,Eh=y2.isArrayOrTypedArray,_j=y2.isDateTime,wj=y2.cleanNumber,WA=Math.round;JA.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(Eh(n)&&!n.length)return"-";if(!i&&Cj(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function ZA(e){return Math.max(1,(e-1)/1e3)}function kj(e,r){for(var t=e.length,a=ZA(t),n=0,i=0,l={},o=0;on*2}function Cj(e){return Eh(e[0])&&Eh(e[1])}});var rv=O((h2e,aM)=>{"use strict";var qj=kr(),jA=zr(),ao=Re(),Ph=Tt().FP_SAFE,Sj=gr(),Lj=Yr(),eM=Xt(),Dj=eM.getFromId,Ej=eM.isLinked;aM.exports={applyAutorangeOptions:tM,getAutoRange:x2,makePadFn:b2,doAutoRange:Rj,findExtremes:zj,concatExtremes:T2};function x2(e,r){var t,a,n=[],i=e._fullLayout,l=b2(i,r,0),o=b2(i,r,1),s=T2(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return ao.simpleMap(r.range,r.r2l);var c=u[0].val,d=f[0].val;for(t=1;t0&&(E=w-l(k)-o(M),E>x?R/E>A&&(S=k,D=M,A=R/E):R/w>A&&(S={val:k.val,nopad:1},D={val:M.val,nopad:1},A=R/w));function N(V,U){return Math.max(V,o(U))}if(c===d){var H=c-1,I=c+1;if(b)if(c===0)n=[0,1];else{var Y=(c>0?f:u).reduce(N,0),G=c/(1-Math.min(.5,Y/w));n=c>0?[0,G]:[G,0]}else _?n=[Math.max(0,H),Math.max(1,I)]:n=[H,I]}else b?(S.val>=0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(S.val-A*l(S)<0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),A=(D.val-S.val-$A(r,k.val,M.val))/(w-l(S)-o(D)),n=[S.val-A*l(S),D.val+A*o(D)];return n=tM(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),ao.simpleMap(n,r.l2r||Number)}function $A(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),S=x(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c0&&(_=d),d>w&&d-Ph&&(_=d),d>w&&d=R;c--)E(c);return{min:a,max:n,opts:t}}function _2(e,r,t,a){rM(e,r,t,a,Nj)}function w2(e,r,t,a){rM(e,r,t,a,Fj)}function rM(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function QA(e){return jA(e)&&Math.abs(e)=r}function Ij(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Rh(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Rh(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Hj(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Rh(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Rh(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Rh(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=Ij(t,r),a=Hj(a,r),[t,a]}});var Zr=O((m2e,kM)=>{"use strict";var Un=kr(),Zt=zr(),ef=Et(),av=gr(),xr=Re(),rf=xr.strTranslate,ps=ia(),Bj=jc(),nv=br(),kn=Yr(),Oj=An(),nM=Ug(),p2e=na(),qa=Tt(),Yj=qa.ONEMAXYEAR,Fh=qa.ONEAVGYEAR,Ih=qa.ONEMINYEAR,Vj=qa.ONEMAXQUARTER,C2=qa.ONEAVGQUARTER,Hh=qa.ONEMINQUARTER,Uj=qa.ONEMAXMONTH,tf=qa.ONEAVGMONTH,Bh=qa.ONEMINMONTH,Cn=qa.ONEWEEK,Ya=qa.ONEDAY,no=Ya/2,Xi=qa.ONEHOUR,iv=qa.ONEMIN,Oh=qa.ONESEC,Gj=qa.ONEMILLI,Xj=qa.ONEMICROSEC,ms=qa.MINUS_SIGN,Vh=qa.BADNUM,q2={K:"zeroline"},S2={K:"gridline",L:"path"},L2={K:"minor-gridline",L:"path"},pM={K:"tick",L:"path"},iM={K:"tick",L:"text"},lM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Uh=ka(),tv=Uh.MID_SHIFT,ys=Uh.CAP_SHIFT,lv=Uh.LINE_SPACING,Wj=Uh.OPPOSITE_SIDE,Yh=3,Oe=kM.exports={};Oe.setConvert=Dh();var Zj=g2(),Wi=Xt(),Jj=Wi.idSort,$j=Wi.isLinked;Oe.id2name=Wi.id2name;Oe.name2id=Wi.name2id;Oe.cleanId=Wi.cleanId;Oe.list=Wi.list;Oe.listIds=Wi.listIds;Oe.getFromId=Wi.getFromId;Oe.getFromTrace=Wi.getFromTrace;var mM=rv();Oe.getAutoRange=mM.getAutoRange;Oe.findExtremes=mM.findExtremes;var Kj=1e-4;function R2(e){var r=(e[1]-e[0])*Kj;return[e[0]-r,e[1]+r]}Oe.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},xr.coerce(e,r,u,s)};Oe.coerceRefArray=function(e,r,t,a,n,i,l){let o=a.charAt(a.length-1);var s=t._fullLayout._subplots[o+"axis"];let u=a+"ref";var f=e[u];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(d=>d+" domain")),s=s.concat(i||[]),f.length>l?(xr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Oe.saveRangeInitial=function(e,r){for(var t=Oe.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var d=t.dtick/2;e+=e+dl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Oe.tickIncrement(e,"M6","reverse")+Ya*1.5:i.exactMonths>l?e=Oe.tickIncrement(e,"M1","reverse")+Ya*15.5:e-=no;var s=Oe.tickIncrement(e,t);if(s<=a)return s}return e}Oe.prepMinorTicks=function(e,r,t){var c,d;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&Zt(r._tmin),n;if(a){var i=Oe.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=xr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=xr.simpleMap(n,r.l2r),e._isMinor=!0,Oe.prepTicks(e,t),a){var o=Zt(r.dtick),s=Zt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?A2(u,f)?u===2*Cn&&f===2*Ya&&(e.dtick=Cn):u===2*Cn&&f===3*Ya?e.dtick=Cn:u===Cn&&!(r._input.minor||{}).nticks?e.dtick=Ya:uM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":A2(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?A2(u,f)||(e.dtick=uM(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((d=r.minor)==null?void 0:d._tick0Init)===void 0&&(e.tick0=r.tick0)};function A2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function uM(e,r){return Math.abs(e/r-1)<.001}Oe.prepTicks=function(e,r){var t=xr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?xr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=xr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Oe.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,c=0;f>=Ih?u>=Ih&&u<=Yj?c=u:c=Fh:t===C2&&f>=Hh?u>=Hh&&u<=Vj?c=u:c=C2:f>=Bh?u>=Bh&&u<=Uj?c=u:c=tf:t===Cn&&f>=Cn?c=Cn:f>=Ya?c=Ya:t===no&&f>=no?c=no:t===Xi&&f>=Xi&&(c=Xi);var d;c>=u&&(c=u,d=!0);var h=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;yCn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Oe.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||xr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=xr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);A--){var k=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=A?r:xr.extendFlat({},r,x?r.minor:{minor:{}});if(k?Oe.prepMinorTicks(M,r,t):Oe.prepTicks(M,t),M.tickmode==="array"){A?(y=[],p=fM(r,!k)):(b=[],m=fM(r,!k));continue}if(M.tickmode==="sync"){y=[],p=aee(r);continue}var S=R2(u),D=S[0],E=S[1],R=Zt(M.dtick),N=a==="log"&&!(R||M.dtick.charAt(0)==="L"),H=Oe.tickFirst(M,t);if(A){if(r._tmin=H,H=E:Y<=E;Y=Oe.tickIncrement(Y,U,f,n)){if(A&&G++,M.rangebreaks&&!f){if(Y=d)break}if(y.length>h||Y===I)break;I=Y;var B={value:Y};A?(N&&Y!==(Y|0)&&(B.simpleLabel=!0),i>1&&G%i&&(B.skipLabel=!0),y.push(B)):(B.minor=!0,b.push(B))}}if(!b||b.length<3)s=!1;else{var J=(b[2].value-b[1].value)*(o?-1:1);qee(J,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)_=y;else{var X=y.concat(b);l&&y.length&&(X=X.slice(1)),X=X.sort(function(Ie,We){return Ie.value-We.value}).filter(function(Ie,We,De){return We===0||Ie.value!==De[We-1].value});var ee=X.map(function(Ie,We){return Ie.minor===void 0&&!Ie.skipLabel?We:null}).filter(function(Ie){return Ie!==null});ee.forEach(function(Ie){s.map(function(We){var De=Ie+We;De>=0&&De-1;ge--){if(y[ge].drop){y.splice(ge,1);continue}y[ge].value=k2(y[ge].value,r);var oe=r.c2p(y[ge].value);(W?Z>oe-Q:Zd||Hed&&(De.periodX=d),Hen&&dFh)r/=Fh,a=n(10),e.dtick="M"+12*Gi(r,a,zh);else if(i>tf)r/=tf,e.dtick="M"+Gi(r,1,cM);else if(i>Ya){if(e.dtick=Gi(r,Ya,e._hasDayOfWeekBreaks?[1,2,7,14]:nee),!t){var l=Oe.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=xr.dateTick0(e.calendar,2):e.tick0=xr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Xi?e.dtick=Gi(r,Xi,cM):i>iv?e.dtick=Gi(r,iv,vM):i>Oh?e.dtick=Gi(r,Oh,vM):(a=n(10),e.dtick=Gi(r,a,zh))}else if(e.type==="log"){e.tick0=0;var s=xr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Gi(r,a,zh)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):I2(e)?(e.tick0=0,a=1,e.dtick=Gi(r,a,iee)):(e.tick0=0,a=n(10),e.dtick=Gi(r,a,zh));if(e.dtick===0&&(e.dtick=1),!Zt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function bM(e){var r=e.dtick;if(e._tickexponent=0,!Zt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Ya&&n<=10||r>=Ya*15)e._tickround="d";else if(r>=iv&&n<=16||r>=Xi)e._tickround="M";else if(r>=Oh&&n<=19||r>=iv)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Zt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Zt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(af(e.exponentformat)&&e.exponentformat!=="SI extended"&&!z2(s)||af(e.exponentformat)&&e.exponentformat==="SI extended"&&!N2(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Oe.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Zt(r))return xr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return xr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?xM:gM,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),o,t);return Math.floor(s)+Math.log(Un.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Oe.tickFirst=function(e,r){var t=e.r2l||Number,a=xr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?y:null};if(i&&xr.isArrayOrTypedArray(e.ticktext)){var c=xr.simpleMap(e.range,e.r2l),d=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=sv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function oee(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=ov(Math.pow(10,l),e,n,a);else if(Zt(i)||s==="D"&&(e.minorloglabels==="complete"||xr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(xr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),d=+c[1],h=Math.abs(d),p=e.exponentformat;p==="power"||af(p)&&p!=="SI extended"&&z2(d)||af(p)&&p==="SI extended"&&N2(d)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),d!==0&&d!==1&&(r.text+=""+(d>0?"":ms)+h+""),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(d>0?"+":ms)+h:(r.text=ov(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,xr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function see(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function uee(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function fee(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=ov(r.x,e,n,a)}function cee(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=vee(i);if(l[1]>=100)r.text=ov(xr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=ms+r.text)}}}else r.text=ov(r.x,e,n,a)}function vee(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var wM=["f","p","n","\u03BC","m","","k","M","G","T"],dee=["q","r","y","z","a",...wM,"P","E","Z","Y","R","Q"],af=e=>["SI","SI extended","B"].includes(e);function z2(e){return e>14||e<-15}function N2(e){return e>32||e<-30}function hee(e,r){return af(r)?!!(r==="SI extended"&&N2(e)||r!=="SI extended"&&z2(e)):!1}function ov(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Oe.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Zt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};bM(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ms);var c=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+p+"":l==="B"&&o===9?e+="B":af(l)&&(e+=l==="SI extended"?dee[o/3+10]:wM[o/3+5])}return n?ms+e:e}Oe.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*tf}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),d=f.indexOf(u.charAt(0));return c===d?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-d}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},d=u[0],h=u[1];return(!d&&typeof d!="number"||c(d)<=c(s))&&(!h&&typeof h!="number"||c(h)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,d=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||d)&&(c||h)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return xr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Oe.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Oe.drawOne(e,u,t);return u._shiftPusher&&P2(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=xr.simpleMap(u._r,u.r2l),f}}}))};Oe.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Oe.counterLetter(u),d=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!d)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),P2(r,p,a,!0),P2(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Cee(r,a));var m=d[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,_=r._mainMirrorPosition,w=r._vals=Oe.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i0?De.bottom-Ie:0,We))));var we=0,$e=0;if(r._shiftPusher&&(we=Math.max(We,De.height>0?Se==="l"?Ie-De.left:De.right-Ie:0),r.title.text!==s._dfltTitle[f]&&($e=(r._titleStandoff||0)+(r._titleScoot||0),Se==="l"&&($e+=hM(r))),r._fullDepth=Math.max(we,$e)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var dr=[0,1],Ne=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Se==="b"?He[Se]=r._depth:(He[Se]=r._depth=Math.max(De.width>0?Ie-De.top:0,We),dr.reverse()),De.width>0){var ke=De.right-(r._offset+r._length);ke>0&&(He.xr=1,He.r=ke);var Ce=r._offset-De.left;Ce>0&&(He.xl=0,He.l=Ce)}}else if(Se==="l"?(r._depth=Math.max(De.height>0?Ie-De.left:0,We),He[Se]=r._depth-Ne):(r._depth=Math.max(De.height>0?De.right-Ie:0,We),He[Se]=r._depth+Ne,dr.reverse()),De.height>0){var Be=De.bottom-(r._offset+r._length);Be>0&&(He.yb=0,He.b=Be);var Ze=r._offset-De.top;Ze>0&&(He.yt=1,He.t=Ze)}He[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[dr[0]],r.title.text!==s._dfltTitle[f]&&(He[Se]+=hM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Xe={x:0,y:0,r:0,l:0,t:0,b:0},Xe[Ue]=r.linewidth,r.mirror&&r.mirror!==!0&&(Xe[Ue]+=We),r.mirror===!0||r.mirror==="ticks"?Xe[c]=r._anchorAxis.domain[dr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Xe[c]=[r._counterDomainMin,r._counterDomainMax][dr[1]]))}Ee&&(ie=av.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(dM(He,r.automargin),dM(Xe,r.automargin)),ef.autoMargin(e,F2(r),He),ef.autoMargin(e,AM(r),Xe),ef.autoMargin(e,MM(r),ie)}),xr.syncOrAsync(xe)}};function dM(e,r){if(e){var t=Object.keys(lM).reduce(function(a,n){return r.indexOf(n)!==-1&&lM[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function pee(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(xr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(d){return rf(n+e._offset+e.l2p(D2(d))+t,i+a)}:function(d){return rf(i+a,n+e._offset+e.l2p(D2(d))+t)}};function D2(e){return e.periodX!==void 0?e.periodX:e.x}function xee(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,d=Yh,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=h*ys,d+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,d+=Yh),s&&f==="top"&&(d-=h*(1-ys)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(d=-d),[u?c:0,s?d:0]}Oe.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Oe.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),d=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,p=0,m=d?e.ticklen:0;if(c?m*=-1:f&&(m=0),d&&(h+=m,t)){var y=xr.deg2rad(t);h=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(d||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:h,labelShift:p},_,w,x,A,k=0,M=e.side,S=e._id.charAt(0),D=e.tickangle,E;if(S==="x")E=!c&&M==="bottom"||c&&M==="top",A=E?1:-1,c&&(A*=-1),_=p*A,w=r+h*A,x=E?1:-.2,Math.abs(D)===90&&(c?x+=tv:D===-90&&M==="bottom"?x=ys:D===90&&M==="top"?x=tv:x=.5,k=tv/2*(D/90)),b.xFn=function(H){return H.dx+_+k*H.fontSize},b.yFn=function(H){return H.dy+w+H.fontSize*x},b.anchorFn=function(H,I){if(f){if(o)return"end";if(s)return"start"}return!Zt(I)||I===0||I===180?"middle":I*A<0!==c?"end":"start"},b.heightFn=function(H,I,Y){return I<-60||I>60?-.5*Y:e.side==="top"!==c?-Y:0};else if(S==="y"){if(E=!c&&M==="left"||c&&M==="right",A=E?1:-1,c&&(A*=-1),_=h,w=p*A,x=0,!c&&Math.abs(D)===90&&(D===-90&&M==="left"||D===90&&M==="right"?x=ys:x=.5),c){var R=Zt(D)?+D:0;if(R!==0){var N=xr.deg2rad(R);k=Math.abs(Math.sin(N))*ys*A,x=0}}b.xFn=function(H){return H.dx+r-(_+H.fontSize*x)*A+k*H.fontSize},b.yFn=function(H){return H.dy+w+H.fontSize*tv},b.anchorFn=function(H,I){return Zt(I)&&Math.abs(I)===90?"middle":E?"end":"start"},b.heightFn=function(H,I,Y){return e.side==="right"&&(I*=-1),I<-30?-Y:I<30?-.5*Y:0}}return b};function Gh(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Oe.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Gh);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return nv.stroke(Un.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return kn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Xh(r,[pM]),i.attr("transform",t.transFn)};Oe.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&Oe.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?d:h;if(m){var y=m.selectAll("path."+a).data(p?l:i,Gh);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return nv.stroke(Un.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return kn.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Xh(r,[S2,L2])}};Oe.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Oe.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return Jj(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(nv.stroke,r.zerolinecolor||nv.defaultLine).style("stroke-width",kn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Xh(r,[q2])};Oe.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(B){return B.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],Gh),d=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(B){var J=Un.select(this),X=e._promises.length;J.call(ps.positionText,s.xFn(B),s.yFn(B)).call(kn.font,{family:B.font,size:B.fontSize,color:B.fontColor,weight:B.fontWeight,style:B.fontStyle,variant:B.fontVariant,textcase:B.fontTextcase,lineposition:B.fontLineposition,shadow:B.fontShadow}).text(B.text).call(ps.convertToTspans,e),e._promises[X]?d.push(e._promises.pop().then(function(){h(J,u)})):h(J,u)}),Xh(r,[iM]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(B){Un.select(this).select("text").call(ps.positionText,s.xFn(B),s.yFn(B))});function h(B,J){B.each(function(X){var ee=Un.select(this),le=ee.select(".text-math-group"),fe=s.anchorFn(X,J),ce=t.transFn.call(ee.node(),X)+(Zt(J)&&+J!=0?" rotate("+J+","+s.xFn(X)+","+(s.yFn(X)-X.fontSize/2)+")":""),j=ps.lineCount(ee),qe=lv*X.fontSize,ve=s.heightFn(X,Zt(J)?+J:0,(j-1)*qe);if(ve&&(ce+=rf(0,ve)),le.empty()){var be=ee.select("text");be.attr({transform:ce,"text-anchor":fe}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var _e=kn.bBox(le.node()).width,ge=_e*{end:-.5,start:.5}[fe];le.attr("transform",ce+rf(ge,0))}})}r._adjustTickLabelsOverflow=function(){var B=r.ticklabeloverflow;if(!(!B||B==="allow")){var J=B.indexOf("hide")!==-1,X=r._id.charAt(0)==="x",ee=0,le=X?e._fullLayout.width:e._fullLayout.height;if(B.indexOf("domain")!==-1){var fe=xr.simpleMap(r.range,r.r2l);ee=r.l2p(fe[0])+r._offset,le=r.l2p(fe[1])+r._offset}var ce=Math.min(ee,le),j=Math.max(ee,le),qe=r.side,ve=1/0,be=-1/0;c.each(function(Q){var Z=Un.select(this),oe=Z.select(".text-math-group");if(oe.empty()){var me=kn.bBox(Z.node()),xe=0;X?(me.right>j||me.leftj||me.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+fe._id]?Z.style("display","none"):j.K==="tick"&&!ce&&Z.node().style.display!=="none"&&Z.style("display",null)})})})})},h(c,f+1?f:u);function p(){return d.length&&Promise.all(d)}var m=null;function y(){if(h(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var B=0,J=[],X,ee=1;c.each(function(He){B=Math.max(B,He.fontSize);var Xe=r.l2p(He.x),ie=E2(this),we=kn.bBox(ie.node());ee=Math.max(ee,ps.lineCount(ie)),J.push({top:0,bottom:10,height:10,left:Xe-we.width/2,right:Xe+we.width/2+2,width:we.width+2})});var le=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=o.length,ce=Math.abs((o[fe-1].x-o[0].x)*r._m)/(fe-1),j=le?ce/2:ce,qe=le?r.ticklen:B*1.25*ee,ve=Math.sqrt(Math.pow(j,2)+Math.pow(qe,2)),be=j/ve,_e=r.autotickangles.map(function(He){return He*Math.PI/180}),ge=_e.find(function(He){return Math.abs(Math.cos(He))<=be});ge===void 0&&(ge=_e.reduce(function(He,Xe){return Math.abs(Math.cos(He))G*Y&&(N=Y,D[S]=E[S]=H[S])}var V=Math.abs(N-R);V-A>0?(V-=A,A*=1+A/V):A=0,r._id.charAt(0)!=="y"&&(A=-A),D[M]=w.p2r(w.r2p(E[M])+k*A),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var U=xr.syncOrAsync(b);return U&&U.then&&e._promises.push(U),U};function bee(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Gh);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(nv.stroke,r.dividercolor).style("stroke-width",kn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Oe.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function hM(e){var r=e.title.font.size,t=(e.title.text.match(ps.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(ys+t*lv):t?r*(t+1)*lv:r}function _ee(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(ps.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*ys:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(tv+o*lv));else{var s=sv(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Oe.getPxPosition(e,r),c,d,h;n==="x"?(d=r._offset+r._length/2,h=r.side==="top"?f-l:f+l):(h=r._offset+r._length/2,d=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=kn.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,Bj.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:d,y:h,"text-anchor":"middle"}})}Oe.shouldShowZeroLine=function(e,r,t){var a=xr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Vh)&&(TM(r,0)||!wee(e,r,t,a)||Tee(e,r))};Oe.clipEnds=function(e,r){return r.filter(function(t){return TM(e,t.x)})};function TM(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Xj:/%L/.test(r)?e>=Gj:/%[SX]/.test(r)?e>=Oh:/%M/.test(r)?e>=iv:/%[HI]/.test(r)?e>=Xi:/%p/.test(r)?e>=no:/%[Aadejuwx]/.test(r)?e>=Ya:/%[UVW]/.test(r)?e>=Cn:/%[Bbm]/.test(r)?e>=Bh:/%[q]/.test(r)?e>=Hh:/%[Yy]/.test(r)?e>=Ih:!0}});var qM=O((y2e,CM)=>{"use strict";CM.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var H2=O((g2e,SM)=>{"use strict";var See=qM();SM.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(See(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var DM=O((x2e,LM)=>{var Lee={left:0,top:0};LM.exports=Dee;function Dee(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Eee(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Eee(e){return e===window||e===document||e===document.body?Lee:e.getBoundingClientRect()}});var B2=O((b2e,EM)=>{"use strict";var Pee=gg();function Ree(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}EM.exports=Pee&&Ree()});var RM=O((_2e,PM)=>{"use strict";PM.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var FM=O((w2e,NM)=>{"use strict";var zM=Re(),zee=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];NM.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=zM.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=zM.constrain(Math.floor(t*3),0,2),zee[t][r]}});var HM=O((T2e,IM)=>{"use strict";var Nee=Vc(),Fee=Ud(),Iee=zc().getGraphDiv,Hee=Lc(),O2=IM.exports={};O2.wrapped=function(e,r,t){e=Iee(e),e._fullLayout&&Fee.clear(e._fullLayout._uid+Hee.HOVERID),O2.raw(e,r,t)};O2.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Nee.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var wi=O((A2e,VM)=>{"use strict";var Bee=DM(),Y2=bg(),Oee=B2(),Yee=Re().removeElement,Vee=na(),gs=VM.exports={};gs.align=RM();gs.getCursor=FM();var OM=HM();gs.unhover=OM.wrapped;gs.unhoverRaw=OM.raw;gs.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,d,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,Oee?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(w,x,A){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===d?x=c:(x={target:d,srcElement:d,toElement:d},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(A=>{var k=c[A];!x[A]&&typeof k!="function"&&(x[A]=k)})),r.clickFn&&r.clickFn(a,x),h||d.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function YM(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}gs.coverSlip=YM;function BM(e){return Bee(e.changedTouches?e.changedTouches[0]:e,document.body)}});var io=O((M2e,UM)=>{"use strict";UM.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var WM=O((k2e,XM)=>{"use strict";var V2=io(),uv="data-savedcursor",GM="!!";XM.exports=function(r,t){var a=r.attr(uv);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var U2=ta(),Uee=Hn();ZM.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Uee.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:U2({editType:"legend"}),grouptitlefont:U2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:U2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var cv=O(fv=>{"use strict";fv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};fv.isVertical=function(r){return r.orientation!=="h"};fv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};fv.getId=function(r){return r._id||"legend"}});var W2=O((S2e,JM)=>{"use strict";var Wh=gr(),qn=Re(),Gee=ot(),Xee=sn(),Wee=G2(),Zee=Pu(),X2=cv();function Jee(e,r,t,a,n){var i=r[e]||{},l=Gee.newContainer(t,e);function o(B,J){return qn.coerce(i,l,Wee,B,J)}var s=qn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,c=function(B,J){var X=f._input,ee=f;return qn.coerce(X,ee,Xee,B,J)},d=t.font||{},h=qn.coerceFont(o,"grouptitlefont",d,{overrideDflt:{size:Math.round(d.size*1.1)}}),p=0,m=!1,y="normal",b=(t.shapes||[]).filter(function(B){return B.showlegend});function _(B){return Wh.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}a.filter(_).forEach(function(B){B.visible&&p++;for(var J=0;JB.legend.length)for(var ee=B.legend.length;ee(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),!(k===!1&&!i.uirevision)&&(o("uirevision",t.uirevision),k!==!1)){o("borderwidth");var M=o("orientation"),S=o("yref"),D=o("xref"),E=M==="h",R=S==="paper",N=D==="paper",H,I,Y,G="left";E?(H=0,Wh.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(I=1.1,Y="bottom"):(I=1,Y="top"):R?(I=-.1,Y="top"):(I=0,Y="bottom")):(I=1,Y="auto",N?H=1.02:(H=1,G="right")),qn.coerce(i,l,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:H}},"x"),qn.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:I}},"y"),o("traceorder",y),X2.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",G),o("yanchor",Y),o("maxheight"),o("valign"),qn.noneOrAll(i,l,["x","y"]);var V=o("title.text");if(V){o("title.side",E?"left":"top");var U=qn.extendFlat({},s,{size:qn.bigFont(s.size)});qn.coerceFont(o,"title.font",U);let B=n>1;o("titleclick",B?"toggle":!1),o("titledoubleclick",B?"toggleothers":!1)}}}JM.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var lo=gr(),Z2=Re(),$ee=Z2.pushUnique,Kee=cv(),$M=!0;J2.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;var o=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&$M&&t.data&&t._context.showTips&&(Z2.notifier(Z2._(t,"Double-click on legend to isolate one trace"),"long",t),$M=!1);var s=o==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let c=(i.shapes||[]).filter(Ee=>Ee.showlegend||Ee.legendgroup);var d=f.concat(c),h=l.trace;h._isShape&&(h=h._fullInput);var p=h.legendgroup,m,y,b,_,w,x,A={},k=[],M=[],S=[];function D(Ee,Se){var Ue=k.indexOf(Ee),Ie=A.visible;return Ie||(Ie=A.visible=[]),k.indexOf(Ee)===-1&&(k.push(Ee),Ue=k.length-1),Ie[Ue]=Se,Ue}var E=(i.shapes||[]).map(function(Ee){return Ee._input}),R=!1;function N(Ee,Se){E[Ee].visible=Se,R=!0}function H(Ee,Se){if(!(l.groupTitle&&!s)){var Ue=Ee._fullInput||Ee,Ie=Ue._isShape,We=Ue.index;We===void 0&&(We=Ue._index);var De=Ue.visible===!1?!1:Se;Ie?N(We,De):D(We,De)}}var I=h.legend,Y=h._fullInput,G=Y&&Y._isShape;if(!G&&lo.traceIs(h,"pie-like")){var V=l.label,U=u.indexOf(V);if(n==="toggle")U===-1?u.push(V):u.splice(U,1);else if(n==="toggleothers"){var B=U!==-1,J=[];for(m=0;mb.showlegend||b.legendgroup),s=i.concat(o);function u(b){return(b.legend||"legend")===l}var f,c;if(a==="toggle")f=!s.some(function(_){return u(_)&&_.visible===!0}),c=!1;else{let b=s.some(function(_){return!u(_)&&_.visible===!0&&_.showlegend!==!1});f=!0,c=!b}let d={visible:[]},h=[],p=(n.shapes||[]).map(function(b){return b._input});for(var m=!1,y=0;y{"use strict";KM.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var ek=O((E2e,jM)=>{"use strict";var{isArrayOrTypedArray:Q2}=on(),QM=gr(),j2=cv();jM.exports=function(r,t,a){var n=t._inHover,i=j2.isGrouped(t),l=j2.isReversed(t),o={},s=[],u=!1,f={},c=0,d=0,h,p;function m(J,X,ee){if(t.visible!==!1&&!(a&&J!==t._id))if(X===""||!j2.isGrouped(t)){var le="~~i"+c;s.push(le),o[le]=[ee],c++}else s.indexOf(X)===-1?(s.push(X),u=!0,o[X]=[ee]):o[X].push(ee)}for(h=0;hH&&(R=H)}D[h][0]._groupMinRank=R,D[h][0]._preGroupSort=h}var I=function(J,X){return J[0]._groupMinRank-X[0]._groupMinRank||J[0]._preGroupSort-X[0]._preGroupSort},Y=function(J,X){var ee=Q2(J.trace.legendrank)?J.trace.legendrank[J.i]:J.trace.legendrank,le=Q2(X.trace.legendrank)?X.trace.legendrank[X.i]:X.trace.legendrank;return ee-le||J._preSort-X._preSort};for(D.forEach(function(J,X){J[0]._preGroupSort=X}),D.sort(I),h=0;h{"use strict";var Zh=Re();function rk(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}xs.formatPiePercent=function(r,t){var a=rk((r*100).toPrecision(3));return Zh.numSeparate(a,t)+"%"};xs.formatPieValue=function(r,t){var a=rk(r.toPrecision(10));return Zh.numSeparate(a,t)};xs.getFirstFilled=function(r,t){if(Zh.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Qee=Yr(),jee=br();tk.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Qee.pointStyle(r,a,n,t):jee.fill(r,t.color)}});var nf=O((z2e,lk)=>{"use strict";var nk=br(),ik=vv().castOption,ere=ak();lk.exports=function(r,t,a,n){var i=a.marker.line,l=ik(i.color,t.pts)||nk.defaultLine,o=ik(i.width,t.pts)||0;r.call(ere,t,a,n).style("stroke-width",o).call(nk.stroke,l)}});var a3=O((N2e,vk)=>{"use strict";var Va=kr(),e3=gr(),za=Re(),ok=za.strTranslate,Sn=Yr(),Gn=br(),r3=Tn().extractOpts,Jh=Mn(),rre=nf(),tre=vv().castOption,are=K2(),sk=12,uk=5,bs=2,nre=10,lf=5;vk.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+are.itemGap*2)/2,s=ok(o,0),u=function(M,S,D,E){var R;if(M+1)R=M;else if(S&&S.width>0)R=S.width;else return 0;return i?E:Math.min(R,D)};r.each(function(M){var S=Va.select(this),D=za.ensureSingle(S,"g","layers");D.style("opacity",M[0].trace.opacity);var E=a.indentation,R=a.valign,N=M[0].lineHeight,H=M[0].height;if(R==="middle"&&E===0||!N||!H)D.attr("transform",null);else{var I={top:1,bottom:-1}[R],Y=I*(.5*(N-H+3))||0,G=a.indentation;D.attr("transform",ok(G,Y))}var V=D.selectAll("g.legendfill").data([M]);V.enter().append("g").classed("legendfill",!0);var U=D.selectAll("g.legendlines").data([M]);U.enter().append("g").classed("legendlines",!0);var B=D.selectAll("g.legendsymbols").data([M]);B.enter().append("g").classed("legendsymbols",!0),B.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(d).each(p).each(h).each(y).each(x).each(w).each(f).each(c).each(b).each(_);function f(M){var S=fk(M),D=S.showFill,E=S.showLine,R=S.showGradientLine,N=S.showGradientFill,H=S.anyFill,I=S.anyLine,Y=M[0],G=Y.trace,V,U,B=r3(G),J=B.colorscale,X=B.reversescale,ee=function(be){if(be.size())if(D)Sn.fillGroupStyle(be,t,!0);else{var _e="legendfill-"+G.uid;Sn.gradient(be,t,_e,t3(X),J,"fill")}},le=function(be){if(be.size()){var _e="legendline-"+G.uid;Sn.lineGroupStyle(be),Sn.gradient(be,t,_e,t3(X),J,"stroke")}},fe=Jh.hasMarkers(G)||!H?"M5,0":I?"M5,-2":"M5,-3",ce=Va.select(this),j=ce.select(".legendfill").selectAll("path").data(D||N?[M]:[]);if(j.enter().append("path").classed("js-fill",!0),j.exit().remove(),j.attr("d",fe+"h"+l+"v6h-"+l+"z").call(ee),E||R){var qe=u(void 0,G.line,nre,uk);U=za.minExtend(G,{line:{width:qe}}),V=[za.minExtend(Y,{trace:U})]}var ve=ce.select(".legendlines").selectAll("path").data(E||R?[V]:[]);ve.enter().append("path").classed("js-line",!0),ve.exit().remove(),ve.attr("d",fe+(R?"l"+l+",0.0001":"h"+l)).call(E?Sn.lineGroupStyle:le)}function c(M){var S=fk(M),D=S.anyFill,E=S.anyLine,R=S.showLine,N=S.showMarker,H=M[0],I=H.trace,Y=!N&&!E&&!D&&Jh.hasText(I),G,V;function U(j,qe,ve,be){var _e=za.nestedProperty(I,j).get(),ge=za.isArrayOrTypedArray(_e)&&qe?qe(_e):_e;if(i&&ge&&be!==void 0&&(ge=be),ve){if(geve[1])return ve[1]}return ge}function B(j){return H._distinct&&H.index&&j[H.index]?j[H.index]:j[0]}if(N||Y||R){var J={},X={};if(N){J.mc=U("marker.color",B),J.mx=U("marker.symbol",B),J.mo=U("marker.opacity",za.mean,[.2,1]),J.mlc=U("marker.line.color",B),J.mlw=U("marker.line.width",za.mean,[0,5],bs),J.mld=I._isShape?"solid":U("marker.line.dash",B),X.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ee=U("marker.size",za.mean,[2,16],sk);J.ms=ee,X.marker.size=ee}R&&(X.line={width:U("line.width",B,[0,10],uk)}),Y&&(J.tx="Aa",J.tp=U("textposition",B),J.ts=10,J.tc=U("textfont.color",B),J.tf=U("textfont.family",B),J.tw=U("textfont.weight",B),J.ty=U("textfont.style",B),J.tv=U("textfont.variant",B),J.tC=U("textfont.textcase",B),J.tE=U("textfont.lineposition",B),J.tS=U("textfont.shadow",B)),G=[za.minExtend(H,J)],V=za.minExtend(I,X),V.selectedpoints=null,V.texttemplate=null}var le=Va.select(this).select("g.legendpoints"),fe=le.selectAll("path.scatterpts").data(N?G:[]);fe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),fe.exit().remove(),fe.call(Sn.pointStyle,V,t),N&&(G[0].mrc=3);var ce=le.selectAll("g.pointtext").data(Y?G:[]);ce.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ce.exit().remove(),ce.selectAll("text").call(Sn.textPointStyle,V,t)}function d(M){var S=M[0].trace,D=S.type==="waterfall";if(M[0]._distinct&&D){var E=M[0].trace[M[0].dir].marker;return M[0].mc=E.color,M[0].mlw=E.line.width,M[0].mlc=E.line.color,m(M,this,"waterfall")}var R=[];S.visible&&D&&(R=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=Va.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(H){var I=Va.select(this),Y=S[H[0]].marker,G=u(void 0,Y.line,lf,bs);I.attr("d",H[1]).style("stroke-width",G+"px").call(Gn.fill,Y.color),G&&I.call(Gn.stroke,Y.line.color)})}function h(M){m(M,this)}function p(M){m(M,this,"funnel")}function m(M,S,D){var E=M[0].trace,R=E.marker||{},N=R.line||{},H=R.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",I=D?E.visible&&E.type===D:e3.traceIs(E,"bar"),Y=Va.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(I?[M]:[]);Y.enter().append("path").classed("legend"+D,!0).attr("d",H).attr("transform",s),Y.exit().remove(),Y.each(function(G){var V=Va.select(this),U=G[0],B=u(U.mlw,R.line,lf,bs);V.style("stroke-width",B+"px");var J=U.mcc;if(!a._inHover&&"mc"in U){var X=r3(R),ee=X.mid;ee===void 0&&(ee=(X.max+X.min)/2),J=Sn.tryColorscale(R,"")(ee)}var le=J||U.mc||R.color,fe=R.pattern,ce=Sn.getPatternAttr,j=fe&&(ce(fe.shape,0,"")||ce(fe.path,0,""));if(j){var qe=ce(fe.bgcolor,0,null),ve=ce(fe.fgcolor,0,null),be=fe.fgopacity,_e=ck(fe.size,8,10),ge=ck(fe.solidity,.5,1),W="legend-"+E.uid;V.call(Sn.pattern,"legend",t,W,j,_e,ge,J,fe.fillmode,qe,ve,be)}else V.call(Gn.fill,le);B&&Gn.stroke(V,U.mlc||N.color)})}function y(M){var S=M[0].trace,D=Va.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&e3.traceIs(S,"box-violin")?[M]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var E=Va.select(this);if((S.boxpoints==="all"||S.points==="all")&&Gn.opacity(S.fillcolor)===0&&Gn.opacity((S.line||{}).color)===0){var R=za.minExtend(S,{marker:{size:i?sk:za.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(Sn.pointStyle,R,t)}else{var N=u(void 0,S.line,lf,bs);E.style("stroke-width",N+"px").call(Gn.fill,S.fillcolor),N&&Gn.stroke(E,S.line.color)}})}function b(M){var S=M[0].trace,D=Va.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[M,M]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(E,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Va.select(this),H=S[R?"increasing":"decreasing"],I=u(void 0,H.line,lf,bs);N.style("stroke-width",I+"px").call(Gn.fill,H.fillcolor),I&&Gn.stroke(N,H.line.color)})}function _(M){var S=M[0].trace,D=Va.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[M,M]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(E,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Va.select(this),H=S[R?"increasing":"decreasing"],I=u(void 0,H.line,lf,bs);N.style("fill","none").call(Sn.dashLine,H.line.dash,I),I&&Gn.stroke(N,H.line.color)})}function w(M){A(M,this,"pie")}function x(M){A(M,this,"funnelarea")}function A(M,S,D){var E=M[0],R=E.trace,N=D?R.visible&&R.type===D:e3.traceIs(R,D),H=Va.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(N?[M]:[]);if(H.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),H.exit().remove(),H.size()){var I=R.marker||{},Y=u(tre(I.line.width,E.pts),I.line,lf,bs),G="pieLike",V=za.minExtend(R,{marker:{line:{width:Y}}},G),U=za.minExtend(E,{trace:V},G);rre(H,U,V,t)}}function k(M){var S=M[0].trace,D,E=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":E=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":E=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":E=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var R=Va.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,H){var I=Va.select(this),Y=r3(S),G=Y.colorscale,V=Y.reversescale,U=function(ee){if(ee.size()){var le="legendfill-"+S.uid;Sn.gradient(ee,t,le,t3(V,D==="radial"),G,"fill")}},B;if(G){if(!D){var X=G.length;B=H===0?G[V?X-1:0][1]:H===1?G[V?0:X-1][1]:G[Math.floor((X-1)/2)][1]}}else{var J=S.vertexcolor||S.facecolor||S.color;B=za.isArrayOrTypedArray(J)?J[H]||J[0]:J}I.attr("d",N[0]),B?I.call(Gn.fill,B):I.call(U)})}};function t3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function fk(e){var r=e[0].trace,t=r.contours,a=Jh.hasLines(r),n=Jh.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function ck(e,r,t){return e&&za.isArrayOrTypedArray(e)?r:e>t?t:e}});var o3=O((F2e,_k)=>{"use strict";var ja=kr(),Bt=Re(),i3=Et(),_s=gr(),Qh=Vc(),n3=wi(),Ot=Yr(),dv=br(),ws=ia(),dk=$2().handleItemClick,hk=$2().handleTitleClick,Jt=K2(),l3=ka(),xk=l3.LINE_SPACING,sf=l3.FROM_TL,pk=l3.FROM_BR,mk=ek(),ire=a3(),uf=cv(),of=1,lre=/^legend[0-9]*$/;_k.exports=function(r,t){if(t)yk(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=ja.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(lre)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),i3.autoMargin(e,n);var m=Bt.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),y=Bt.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),b=Bt.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});b.call(dv.stroke,t.bordercolor).call(dv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=Bt.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Bt.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(Ot.font,w.font).text(w.text),Kh(x,_,e,t,of),!o&&(t.titleclick||t.titledoubleclick)&&fre(_,e,t,n)):(_.selectAll("."+n+"titletext").remove(),_.selectAll("."+n+"titletoggle").remove());var A=Bt.ensureSingle(m,"rect","scrollbar",function(S){S.attr(Jt.scrollBarEnterAttrs).call(dv.fill,Jt.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(Bt.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){let D=S[0],E=D.trace;if(D.groupTitle){let R=E.legendgroup,N=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(N).some(function(I){return I.legendgroup===R&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return _s.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){ja.select(this).call(sre,e,t)}).call(ire,e,t).each(function(S){o||S[0].groupTitle&&t.groupclick==="toggleitem"||ja.select(this).call(ure,e,n)}),Bt.syncOrAsync([i3.previousPromises,function(){return dre(e,k,M,t,_)},function(){var S=a._size,D=t.borderwidth,E=t.xref==="paper",R=t.yref==="paper";if(w.text){let oe=(a.shapes||[]).filter(function(xe){return xe.showlegend}),me=e._fullData.concat(oe).some(function(xe){let ze=xe.legend||"legend";var Ee=Array.isArray(ze)?ze.includes(n):ze===n;return Ee&&xe.visible===!0});x.style("opacity",me?1:.5)}if(!o){var N,H;E?N=S.l+S.w*t.x-sf[jh(t)]*t._width:N=a.width*t.x-sf[jh(t)]*t._width,R?H=S.t+S.h*(1-t.y)-sf[e1(t)]*t._effHeight:H=a.height*(1-t.y)-sf[e1(t)]*t._effHeight;var I=hre(e,n,N,H);if(I)return;if(a.margin.autoexpand){var Y=N,G=H;N=E?Bt.constrain(N,0,a.width-t._width):Y,H=R?Bt.constrain(H,0,a.height-t._effHeight):G,N!==Y&&Bt.log("Constrain "+n+".x to make legend fit inside graph"),H!==G&&Bt.log("Constrain "+n+".y to make legend fit inside graph")}Ot.setTranslate(m,N,H)}if(A.on(".drag",null),m.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var V=t._effHeight;o&&(V=t._height),b.attr({width:t._width-D,height:V-D,x:D/2,y:D/2}),Ot.setTranslate(_,0,0),y.select("rect").attr({width:t._width-2*D,height:V-2*D,x:D,y:D}),Ot.setClipUrl(_,i,e),Ot.setRect(A,0,0,0,0),delete t._scrollY}else{var U=Math.max(Jt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),B=t._effHeight-U-2*Jt.scrollBarMargin,J=t._height-t._effHeight,X=B/J,ee=Math.min(t._scrollY||0,J);b.attr({width:t._width-2*D+Jt.scrollBarWidth+Jt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+Jt.scrollBarWidth+Jt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ee}),Ot.setClipUrl(_,i,e),_e(ee,U,X),m.on("wheel",function(){ee=Bt.constrain(t._scrollY+ja.event.deltaY/J*B,0,J),_e(ee,U,X),ee!==0&&ee!==J&&ja.event.preventDefault()});var le,fe,ce,j=function(oe,me,xe){var ze=(xe-me)/X+oe;return Bt.constrain(ze,0,J)},qe=function(oe,me,xe){var ze=(me-xe)/X+oe;return Bt.constrain(ze,0,J)},ve=ja.behavior.drag().on("dragstart",function(){var oe=ja.event.sourceEvent;oe.type==="touchstart"?le=oe.changedTouches[0].clientY:le=oe.clientY,ce=ee}).on("drag",function(){var oe=ja.event.sourceEvent;oe.buttons===2||oe.ctrlKey||(oe.type==="touchmove"?fe=oe.changedTouches[0].clientY:fe=oe.clientY,ee=j(ce,le,fe),_e(ee,U,X))});A.call(ve);var be=ja.behavior.drag().on("dragstart",function(){var oe=ja.event.sourceEvent;oe.type==="touchstart"&&(le=oe.changedTouches[0].clientY,ce=ee)}).on("drag",function(){var oe=ja.event.sourceEvent;oe.type==="touchmove"&&(fe=oe.changedTouches[0].clientY,ee=qe(ce,le,fe),_e(ee,U,X))});_.call(be)}function _e(oe,me,xe){t._scrollY=e._fullLayout[n]._scrollY=oe,Ot.setTranslate(_,0,-oe),Ot.setRect(A,t._width,Jt.scrollBarMargin+oe*xe,Jt.scrollBarWidth,me),y.select("rect").attr("y",D+oe)}if(e._context.edits.legendPosition){var ge,W,Q,Z;m.classed("cursor-move",!0),n3.init({element:m.node(),gd:e,prepFn:function(oe){if(oe.target!==A.node()){var me=Ot.getTranslate(m);Q=me.x,Z=me.y}},moveFn:function(oe,me){if(Q!==void 0&&Z!==void 0){var xe=Q+oe,ze=Z+me;Ot.setTranslate(m,xe,ze),ge=n3.align(xe,t._width,S.l,S.l+S.w,t.xanchor),W=n3.align(ze+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(ge!==void 0&&W!==void 0){var oe={};oe[n+".x"]=ge,oe[n+".y"]=W,_s.call("_guiRelayout",e,oe)}},clickFn:function(oe,me){var xe=l.selectAll("g.traces").filter(function(){var ze=this.getBoundingClientRect();return me.clientX>=ze.left&&me.clientX<=ze.right&&me.clientY>=ze.top&&me.clientY<=ze.bottom});xe.size()>0&&bk(e,t,xe,oe,me)}})}}],e)}}function $h(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function bk(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),_s.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=Qh.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&dk(t,e,r,o)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Qh.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&dk(t,e,r,s)}}function sre(e,r,t){var a=uf.getId(t),n=e.data()[0][0],i=n.trace,l=_s.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Bt.templateString(u,i._meta))));var c=Bt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Ot.font,f).text(o?gk(u,s):u);var d=t.indentation+t.itemwidth+Jt.itemGap*2;ws.positionText(c,d,0),o?c.call(ws.makeEditable,{gd:r,text:u}).call(Kh,e,r,t).on("edit",function(h){this.text(gk(h,s)).call(Kh,e,r,t);var p=n.trace._fullInput||{},m={};return m.name=h,p._isShape?_s.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):_s.call("_guiRestyle",r,m,i.index)}):Kh(c,e,r,t)}function gk(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function ure(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Bt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(dv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),bk(r,o,e,i,ja.event)}}))}function fre(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&_s.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Bt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(dv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:ja.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(Qh.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&hk(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Qh.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&hk(r,t,t.titledoubleclick))}))}function Kh(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),ws.convertToTspans(e,t,function(){cre(r,t,a,n)})}function cre(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=uf.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===of?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*xk,d,h;if(o){var p=Ot.bBox(o);d=p.height,h=p.width,a===of?Ot.setTranslate(l,u,u+d*.75):Ot.setTranslate(l,0,d*.25)}else{var m="."+s+(a===of?"title":"")+"text",y=e.select(m),b=ws.lineCount(y),_=y.node();if(d=c*b,h=_?Ot.bBox(_).width:0,a===of)t.title.side==="left"&&(h+=Jt.itemGap*2),ws.positionText(y,u+Jt.titlePad,u+c);else{var w=Jt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Jt.itemGap,h-=t.indentation+t.itemwidth),ws.positionText(y,w,-c*((b-1)/2-.3))}}a===of?(t._titleWidth=h,t._titleHeight=d):(n.lineHeight=c,n.height=Math.max(d,16)+3,n.width=h)}function vre(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function dre(e,r,t,a,n){var i=e._fullLayout,l=uf.getId(a);a||(a=i[l]);var o=i._size,s=uf.isVertical(a),u=uf.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,d=2*c,h=Jt.itemGap,p=a.indentation+a.itemwidth+h*2,m=2*(c+h),y=e1(a),b=a.y<0||a.y===0&&y==="top",_=a.y>1||a.y===1&&y==="bottom",w=a.tracegroupgap,x={};let{orientation:A,yref:k}=a,{maxheight:M}=a,S=b||_||A!=="v"||k!=="paper";M||(M=S?.5:1);let D=S?i.height:o.h;a._maxHeight=Math.max(M>1?M:M*D,30);var E=0;a._width=0,a._height=0;var R=vre(a);if(s)t.each(function(oe){var me=oe[0].height;Ot.setTranslate(this,c+R[0],c+R[1]+a._height+me/2+h),a._height+=me,a._width=Math.max(a._width,oe[0].width)}),E=p+a._width,a._width+=h+p+d,a._height+=m,u&&(r.each(function(oe,me){Ot.setTranslate(this,0,me*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var N=jh(a),H=a.x<0||a.x===0&&N==="right",I=a.x>1||a.x===1&&N==="left",Y=_||b,G=i.width/2;a._maxWidth=Math.max(H?Y&&N==="left"?o.l+o.w:G:I?Y&&N==="right"?o.r+o.w:G:o.w,2*p);var V=0,U=0;t.each(function(oe){var me=$h(oe,a,p);V=Math.max(V,me),U+=me}),E=null;var B=0;if(u){var J=0,X=0,ee=0;r.each(function(){var oe=0,me=0;ja.select(this).selectAll("g.traces").each(function(ze){var Ee=$h(ze,a,p),Se=ze[0].height;Ot.setTranslate(this,R[0],R[1]+c+h+Se/2+me),me+=Se,oe=Math.max(oe,Ee),x[ze[0].trace.legendgroup]=oe});var xe=oe+h;X>0&&xe+c+X>a._maxWidth?(B=Math.max(B,X),X=0,ee+=J+w,J=me):J=Math.max(J,me),Ot.setTranslate(this,X,ee),X+=xe}),a._width=Math.max(B,X)+c,a._height=ee+J+m}else{var le=t.size(),fe=U+d+(le-1)*h=a._maxWidth&&(B=Math.max(B,ve),j=0,qe+=ce,a._height+=ce,ce=0),Ot.setTranslate(this,R[0]+c+j,R[1]+c+qe+me/2+h),ve=j+xe+h,j+=ze,ce=Math.max(ce,me)}),fe?(a._width=j+d,a._height=ce+m):(a._width=Math.max(B,ve)+d,a._height+=ce+m)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(c+Jt.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(c+Jt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var be=e._context.edits,_e=be.legendText||be.legendPosition;t.each(function(oe){var me=ja.select(this).select("."+l+"toggle"),xe=oe[0].height,ze=oe[0].trace.legendgroup,Ee=$h(oe,a,p);u&&ze!==""&&(Ee=x[ze]);var Se=_e?p:E||Ee;!s&&!f&&(Se+=h/2),Ot.setRect(me,0,-xe/2,Se,xe)});var ge=n.select("."+l+"titletext");ge.node()&&ore(ge,a,c);var W=n.select("."+l+"titletoggle");if(W.size()&&ge.node()){var Q=ge.attr("x")||0,Z=Jt.titlePad;Ot.setRect(W,Q-Z,c,a._titleWidth+2*Z,a._titleHeight+2*Z)}}function hre(e,r,t,a){var n=e._fullLayout,i=n[r],l=jh(i),o=e1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",d={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return i3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*sf[l],r:i._width*pk[l],b:i._effHeight*pk[o],t:i._effHeight*sf[o]});s?e._fullLayout._reservedMargin[r][f]=d[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=d[c]:e._fullLayout._reservedMargin[r][f]=d[f]}function jh(e){return Bt.isRightAnchor(e)?"right":Bt.isCenterAnchor(e)?"center":"left"}function e1(e){return Bt.isBottomAnchor(e)?"bottom":Bt.isMiddleAnchor(e)?"middle":"top"}});var c3=O(f3=>{"use strict";var Ts=kr(),bl=zr(),wk=In(),qt=Re(),pre=qt.pushUnique,s3=qt.strTranslate,mre=qt.strRotate,yre=Vc(),Xn=ia(),gre=WM(),Zi=Yr(),oa=br(),r1=wi(),Ji=Zr(),xre=na().zindexSeparator,cf=gr(),Ti=Yi(),As=Lc(),bre=W2(),_re=o3(),Lk=As.YANGLE,u3=Math.PI*Lk/180,wre=1/Math.sin(u3),Tre=Math.cos(u3),Are=Math.sin(u3),bt=As.HOVERARROWSIZE,Br=As.HOVERTEXTPAD,Tk={box:!0,ohlc:!0,violin:!0,candlestick:!0},Mre={scatter:!0,scattergl:!0,splom:!0};function Ak(e,r){return e.distance-r.distance}f3.hover=function(r,t,a,n){r=qt.getGraphDiv(r);var i=t.target;qt.throttle(r._fullLayout._uid+As.HOVERID,As.HOVERMINTIME,function(){kre(r,t,a,n,i)})};f3.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=zk(n),l=Nk(n),o=r.map(function(y){var b=y._x0||y.x0||y.x||0,_=y._x1||y.x1||y.x||0,w=y._y0||y.y0||y.y||0,x=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var k=Math.min(b,_),M=Math.max(b,_),S=Math.min(w,x),D=Math.max(w,x),E=y.trace;if(cf.traceIs(E,"gl3d")){var R=n._fullLayout[E.scene]._scene.container,N=R.offsetLeft,H=R.offsetTop;k+=N,M+=N,S+=H,D+=H}A.bbox={x0:k+l,x1:M+l,y0:S+i,y1:D+i},A.xPixel=(b+_)/2,A.yPixel=(w+x)/2,t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||oa.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=Ek(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||oa.background,container:Ts.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,d=0,h=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var _=y.y0-y.by/2;_-cM[0]._length||Z<0||Z>S[0]._length)return r1.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=Z+S[0]._offset,"xval"in r?G=Ti.flat(i,r.xval):G=Ti.p2c(M,Q),"yval"in r?V=Ti.flat(i,r.yval):V=Ti.p2c(S,Z),!bl(G[0])||!bl(V[0]))return qt.warn("Fx.hover failed",r,e),r1.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=G,e._hoverYVals=V,e._hoverXAxes=M,e._hoverYAxes=S);var xe=1/0;function ze(vr,ct){for(B=0;Bve&&(I.splice(0,ve),xe=I[0].distance),c&&H!==0&&I.length===0){qe.distance=H,qe.index=!1;var nt=X._module.hoverPoints(qe,ce,j,"closest",{hoverLayer:o._hoverlayer});if(nt&&(nt=nt.filter(function(Gt){return Gt.spikeDistance<=H})),nt&&nt.length){var an,ui=nt.filter(function(Gt){return Gt.xa.showspikes&&Gt.xa.spikesnap!=="hovered data"});if(ui.length){var ra=ui[0];bl(ra.x0)&&bl(ra.y0)&&(an=Se(ra),(!be.vLinePoint||be.vLinePoint.spikeDistance>an.spikeDistance)&&(be.vLinePoint=an))}var mt=nt.filter(function(Gt){return Gt.ya.showspikes&&Gt.ya.spikesnap!=="hovered data"});if(mt.length){var Ut=mt[0];bl(Ut.x0)&&bl(Ut.y0)&&(an=Se(Ut),(!be.hLinePoint||be.hLinePoint.spikeDistance>an.spikeDistance)&&(be.hLinePoint=an))}}}}}ze();function Ee(vr,ct,Jr){for(var lt=null,pa=1/0,ma,nt=0;ntvr.trace.index===Ce.trace.index):I=[Ce];var Be=I.length,Ze=Sk("x",Ce,o),Ve=Sk("y",Ce,o);ze(Ze,Ve);var Ge=[],ir={},ar=0,er=function(vr){var ct=Tk[vr.trace.type]?Dk(vr):vr.trace.index;if(!ir[ct])ar++,ir[ct]=ar,Ge.push(vr);else{var Jr=ir[ct]-1,lt=Ge[Jr];Jr>0&&Math.abs(vr.distance)Be-1;Fe--)er(I[Fe]);I=Ge,De()}var ne=e._hoverdata,se=[],Le=zk(e),Pe=Nk(e);for(let vr of I){var Qe=Ti.makeEventData(vr,vr.trace,vr.cd);if(vr.hovertemplate!==!1){var cr=!1;vr.cd[vr.index]&&vr.cd[vr.index].ht&&(cr=vr.cd[vr.index].ht),vr.hovertemplate=cr||vr.trace.hovertemplate||!1}if(vr.xa&&vr.ya){var sr=vr.x0+vr.xa._offset,Mr=vr.x1+vr.xa._offset,Hr=vr.y0+vr.ya._offset,Kr=vr.y1+vr.ya._offset,ft=Math.min(sr,Mr),kt=Math.max(sr,Mr),wt=Math.min(Hr,Kr),$t=Math.max(Hr,Kr);Qe.bbox={x0:ft+Pe,x1:kt+Pe,y0:wt+Le,y1:$t+Le},Qe.xPixel=(sr+Mr)/2,Qe.yPixel=(Hr+Kr)/2}vr.eventData=[Qe],se.push(Qe)}e._hoverdata=se;var Vt=d==="y"&&(Y.length>1||I.length>1)||d==="closest"&&_e&&I.length>1,$a=oa.combine(o.plot_bgcolor||oa.background,o.paper_bgcolor),_a=Ek(I,{gd:e,hovermode:d,rotateLabels:Vt,bgColor:$a,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),va=_a.hoverLabels;if(Ti.isUnifiedHover(d)||(qre(va,Vt,o,_a.commonLabelBoundingBox),Rk(va,Vt,o._invScaleX,o._invScaleY)),n&&n.tagName){var Ka=cf.getComponentMethod("annotations","hasClickToShow")(e,se);gre(Ts.select(n),Ka?"pointer":"")}var da=Dre(e,r,ne);if(!n||a||!da&&!o.hoveranywhere)return;ne&&da&&e.emit("plotly_unhover",{event:r,points:ne}),ha(e._hoverdata);function ha(vr){e.emit("plotly_hover",{event:r,points:vr,xaxes:M,yaxes:S,xvals:G,yvals:V})}}function Dk(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Cre=/([\s\S]*)<\/extra>/;function Ek(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||As.HOVERFONT,c=r.fontSize||As.HOVERFONTSIZE,d=r.fontWeight||a.font.weight,h=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,m=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,_=e[0],w=_.xa,x=_.ya,A=n.charAt(0),k=A+"Label",M=_[k];if(M===void 0&&w.type==="multicategory")for(var S=0;Sa.width-se&&(Le=a.width-se),ke.attr("d","M"+(er-Le)+",0L"+(er-Le+bt)+","+ne+bt+"H"+se+"v"+ne+(Br*2+ar.height)+"H"+-se+"V"+ne+bt+"H"+(er-Le-bt)+"Z"),er=Le,B.minX=er-se,B.maxX=er+se,w.side==="top"?(B.minY=Fe-(Br*2+ar.height),B.maxY=Fe-Br):(B.minY=Fe+Br,B.maxY=Fe+(Br*2+ar.height))}else{var Pe,Qe,cr;x.side==="right"?(Pe="start",Qe=1,cr="",er=w._offset+w._length):(Pe="end",Qe=-1,cr="-",er=w._offset),Fe=x._offset+(_.y0+_.y1)/2,Ce.attr("text-anchor",Pe),ke.attr("d","M0,0L"+cr+bt+","+bt+"V"+(Br+ar.height/2)+"h"+cr+(Br*2+ar.width)+"V-"+(Br+ar.height/2)+"H"+cr+bt+"V-"+bt+"Z"),B.minY=Fe-(Br+ar.height/2),B.maxY=Fe+(Br+ar.height/2),x.side==="right"?(B.minX=er+bt,B.maxX=er+bt+(Br*2+ar.width)):(B.minX=er-bt-(Br*2+ar.width),B.maxX=er-bt);var sr=ar.height/2,Mr=E-ar.top-sr,Hr="clip"+a._uid+"commonlabel"+x._id,Kr;if(erke.hoverinfo!=="none");if(Ne.length===0)return[];var J=a.hoverlabel,X=J.font,ee=Ne[0],le=((n==="x unified"?ee.xa:ee.ya).unifiedhovertitle||{}).text,fe=le?qt.hovertemplateString({data:n==="x unified"?[{xa:ee.xa,x:ee.xVal}]:[{ya:ee.ya,y:ee.yVal}],fallback:ee.trace.hovertemplatefallback,locale:a._d3locale,template:le}):M,ce={showlegend:!0,legend:{title:{text:fe,font:X},font:X,bgcolor:J.bgcolor,bordercolor:J.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},j={font:X};bre(ce,j,t._fullData);var qe=j.legend;qe.entries=[];for(var ve=0;ve=0?we=De:He+me=0?we=He:Xe+me=0?$e=Ie:We+xe=0?$e=We:ie+xe=0,(Ne.idealAlign==="top"||!wt)&&$t?(cr-=Mr/2,Ne.anchor="end"):wt?(cr+=Mr/2,Ne.anchor="start"):Ne.anchor="middle",Ne.crossPos=cr;else{if(Ne.pos=cr,wt=Qe+sr/2+kt<=R,$t=Qe-sr/2-kt>=0,(Ne.idealAlign==="left"||!wt)&&$t)Qe-=sr/2,Ne.anchor="end";else if(wt)Qe+=sr/2,Ne.anchor="start";else{Ne.anchor="middle";var Vt=kt/2,$a=Qe+Vt-R,_a=Qe-Vt;$a>0&&(Qe-=$a),_a<0&&(Qe+=-_a)}Ne.crossPos=Qe}Fe.attr("text-anchor",Ne.anchor),se&&ne.attr("text-anchor",Ne.anchor),ke.attr("transform",s3(Qe,cr)+(i?mre(Lk):""))}),{hoverLabels:dr,commonLabelBoundingBox:B}}function Mk(e,r,t,a,n,i){var c,d;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=qt.templateString(e.name,e.trace._meta)),l=qk(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(d=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&d.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let h=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(h[s+"other"]=h[s+"Val"],h[s+"otherLabel"]=h[s+"Label"]),o=qt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),o=o.replace(Cre,(p,m)=>(l=qk(m,e.nameLength),""))}return[o,l]}function qre(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,d=a.maxX,h=a.minY,p=a.maxY,m=function(G){return G*t._invScaleX},y=function(G){return G*t._invScaleY};e.each(function(G){var V=G[n],U=G[i],B=V._id.charAt(0)==="x",J=V.range;f===0&&J&&J[0]>J[1]!==B&&(o=-1);var X=0,ee=B?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var le=Pk(G,r),fe=G.anchor,ce=fe==="end"?-1:1,j,qe;if(fe==="middle")j=G.crossPos+(B?y(le.y-G.by/2):m(G.bx/2+G.tx2width/2)),qe=j+(B?y(G.by):m(G.bx));else if(B)j=G.crossPos+y(bt+le.y)-y(G.by/2-bt),qe=j+y(G.by);else{var ve=m(ce*bt+le.x),be=ve+m(ce*G.bx);j=G.crossPos+Math.min(ve,be),qe=G.crossPos+Math.max(ve,be)}B?h!==void 0&&p!==void 0&&Math.min(qe,p)-Math.max(j,h)>1&&(U.side==="left"?(X=U._mainLinePosition,ee=t.width):ee=U._mainLinePosition):c!==void 0&&d!==void 0&&Math.min(qe,d)-Math.max(j,c)>1&&(U.side==="top"?(X=U._mainLinePosition,ee=t.height):ee=U._mainLinePosition)}u[f++]=[{datum:G,traceIndex:G.trace.index,dp:0,pos:G.pos,posref:G.posref,size:G.by*(B?wre:1)/2,pmin:X,pmax:ee}]}),u.sort(function(G,V){return G[0].posref-V[0].posref||o*(V[0].traceIndex-G[0].traceIndex)});var b,_,w,x,A,k,M;function S(G){var V=G[0],U=G[G.length-1];if(_=V.pmin-V.pos-V.dp+V.size,w=U.pos+U.dp+U.size-V.pmax,_>.01){for(A=G.length-1;A>=0;A--)G[A].dp+=_;b=!1}if(!(w<.01)){if(_<-.01){for(A=G.length-1;A>=0;A--)G[A].dp-=w;b=!1}if(b){var B=0;for(x=0;xV.pmax&&B++;for(x=G.length-1;x>=0&&!(B<=0);x--)k=G[x],k.pos>V.pmax-1&&(k.del=!0,B--);for(x=0;x=0;A--)G[A].dp-=w;for(x=G.length-1;x>=0&&!(B<=0);x--)k=G[x],k.pos+k.dp+k.size>V.pmax&&(k.del=!0,B--)}}}for(;!b&&l<=s;){for(l++,b=!0,x=0;x.01){for(A=E.length-1;A>=0;A--)E[A].dp+=_;for(D.push.apply(D,E),u.splice(x+1,1),M=0,A=D.length-1;A>=0;A--)M+=D[A].dp;for(w=M/D.length,A=D.length-1;A>=0;A--)D[A].dp-=w;b=!1}else x++}u.forEach(S)}for(x=u.length-1;x>=0;x--){var H=u[x];for(A=H.length-1;A>=0;A--){var I=H[A],Y=I.datum;Y.offset=I.dp,Y.del=I.del}}}function Pk(e,r){var t=0,a=e.offset;return r&&(a*=-Are,t=e.offset*Tre),{x:t,y:a}}function Sre(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(bt+Br),a=t+r*(e.txwidth+Br),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Br),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Rk(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=Ts.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=Sre(l),d=Pk(l,r),h=d.x,p=d.y,m=u==="middle",y="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,b;m?b="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":y?b="M0,0L"+n(f*bt+h)+","+i(bt+p)+"v"+i(l.by/2-bt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*bt+h)+"V"+i(p-bt)+"Z":b="M"+n(f*bt+h)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",b);var _=h+c.textShiftX,w=p+l.ty0-l.by/2+Br,x=l.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),_=m?-l.bx/2-l.tx2width/2+Br:-l.bx-Br):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),_=m?l.bx/2-l.tx2width/2-Br:l.bx+Br)),s.call(Xn.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(Xn.positionText,n(c.text2ShiftX+c.alignShift*Br+h),i(p+l.ty0-l.by/2+Br)),o.select("rect").call(Zi.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+h),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function Lre(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(d){return d||bl(d)&&d===0}var o=Array.isArray(t)?function(d,h){var p=qt.castOption(n,t,d);return l(p)?p:qt.extractOption({},a,"",h)}:function(d,h){return qt.extractOption(i,a,d,h)};function s(d,h,p){var m=o(h,p);l(m)&&(e[d]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=qt.constrain(e.x0,0,e.xa._length),e.x1=qt.constrain(e.x1,0,e.xa._length),e.y0=qt.constrain(e.y0,0,e.ya._length),e.y1=qt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ji.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ji.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Ji.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ji.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ji.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ji.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function kk(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=oa.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var d=r.hLinePoint,h,p;u=d&&d.xa,f=d&&d.ya;var m=f.spikesnap;m==="cursor"?(h=l.pointerX,p=l.pointerY):(h=u._offset+d.x,p=f._offset+d.y);var y=wk.readability(d.color,c)<1.5?oa.contrast(c):d.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||y,x=Ji.getPxPosition(e,f),A,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(A=x,k=h),b.indexOf("across")!==-1){var M=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),S=Math.max(S,f.position)),A=i.l+M*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:A,x2:k,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":Zi.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:k,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,E,R;u=D&&D.xa,f=D&&D.ya;var N=u.spikesnap;N==="cursor"?(E=l.pointerX,R=l.pointerY):(E=u._offset+D.x,R=f._offset+D.y);var H=wk.readability(D.color,c)<1.5?oa.contrast(c):D.color,I=u.spikemode,Y=u.spikethickness,G=u.spikecolor||H,V=Ji.getPxPosition(e,u),U,B;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(U=V,B=R),I.indexOf("across")!==-1){var J=u._counterDomainMin,X=u._counterDomainMax;u.anchor==="free"&&(J=Math.min(J,u.position),X=Math.max(X,u.position)),U=i.t+(1-X)*i.h,B=i.t+(1-J)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:U,y2:B,"stroke-width":Y,stroke:G,"stroke-dasharray":Zi.dashStyle(u.spikedash,Y)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:U,y2:B,"stroke-width":Y+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:V-(u.side!=="top"?Y:-Y),r:Y,fill:G}).classed("spikeline",!0)}}}function Dre(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function Ck(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function qk(e,r){return Xn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Ere(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,Nk=e=>e.offsetLeft+e.clientLeft;function ff(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=qt.apply3DTransform(t._invTransform)(n,i),u=qt.apply3DTransform(t._invTransform)(l,o),f=s[0],c=s[1],d=u[0],h=u[1];return{x:f,y:c,width:d-f,height:h-c,top:Math.min(c,h),left:Math.min(f,d),right:Math.max(f,d),bottom:Math.max(c,h)}}});var t1=O((H2e,Fk)=>{"use strict";var Pre=Re(),Rre=br(),zre=Yi().isUnifiedHover;Fk.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&zre(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=Rre.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Pre.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Hk=O((B2e,Ik)=>{"use strict";var Nre=Re(),Fre=t1(),Ire=Cu();Ik.exports=function(r,t){function a(n,i){return Nre.coerce(r,t,Ire,n,i)}Fre(r,t,a)}});var Yk=O((O2e,Ok)=>{"use strict";var Bk=Re(),Hre=Pc(),Bre=t1();Ok.exports=function(r,t,a,n){function i(o,s){return Bk.coerce(r,t,Hre,o,s)}var l=Bk.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Bre(r,t,i,l)}});var v3=O((Y2e,Vk)=>{"use strict";var Ore=Re(),Yre=Cu();Vk.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Ore.coerce(r,t,Yre,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var Xk=O((V2e,Gk)=>{"use strict";var Uk=Re(),Vre=Cu(),Ure=v3(),Gre=t1();Gk.exports=function(r,t){function a(f,c){return Uk.coerce(r,t,Vre,f,c)}var n=Ure(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),Gre(r,t,a),Uk.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var Jk=O((U2e,Zk)=>{"use strict";var d3=Re(),Wk=gr();Zk.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return d3.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var Wre=gr(),Zre=c3().hover;$k.exports=function(r,t,a){var n=Wre.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Zre(r,t,a,!0);function l(){var s,u,f,c;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals),(c=o.yvals)!=null||(o.yvals=r._hoverYVals),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Wn=O((X2e,eC)=>{"use strict";var Jre=kr(),a1=Re(),$re=wi(),hv=Yi(),Qk=Cu(),jk=c3();eC.exports={moduleType:"component",name:"fx",constants:Lc(),schema:{layout:Qk},attributes:Pc(),layoutAttributes:Qk,supplyLayoutGlobalDefaults:Hk(),supplyDefaults:Yk(),supplyLayoutDefaults:Xk(),calc:Jk(),getDistanceFunction:hv.getDistanceFunction,getClosest:hv.getClosest,inbox:hv.inbox,quadrature:hv.quadrature,appendArrayPointValue:hv.appendArrayPointValue,castHoverOption:Qre,castHoverinfo:jre,hover:jk.hover,unhover:$re.unhover,loneHover:jk.loneHover,loneUnhover:Kre,click:Kk()};function Kre(e){var r=a1.isD3Selection(e)?e:Jre.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Qre(e,r,t){return a1.castOption(e,r,"hoverlabel."+t)}function jre(e,r,t){function a(n){return a1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return a1.castOption(e,t,"hoverinfo",a)}});var vf=O(_l=>{"use strict";_l.selectMode=function(e){return e==="lasso"||e==="select"};_l.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};_l.openMode=function(e){return e==="drawline"||e==="drawopenpath"};_l.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};_l.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};_l.selectingOrDrawing=function(e){return _l.freeMode(e)||_l.rectMode(e)}});var n1=O((Z2e,rC)=>{"use strict";rC.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var i1=O((J2e,tC)=>{"use strict";tC.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var o1=O(($2e,aC)=>{"use strict";var l1=32;aC.exports={CIRCLE_SIDES:l1,i000:0,i090:l1/4,i180:l1/2,i270:l1/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var s1=O((K2e,iC)=>{"use strict";var ete=Re().strTranslate;function nC(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function rte(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function tte(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return nC(e,t[r])}}function ate(e){return ete(e.xaxis._offset,e.yaxis._offset)}iC.exports={p2r:nC,r2p:rte,axValue:tte,getTransform:ate}});var oo=O(wl=>{"use strict";var nte=e2(),sC=o1(),df=sC.CIRCLE_SIDES,h3=sC.SQRT2,uC=s1(),lC=uC.p2r,oC=uC.r2p,ite=[0,3,4,5,6,1,2],lte=[0,3,4,1,2];wl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var fC=Xt(),pC=vf(),ote=pC.drawMode,ste=pC.openMode,hf=o1(),cC=hf.i000,vC=hf.i090,dC=hf.i180,hC=hf.i270,ute=hf.cos45,fte=hf.sin45,mC=s1(),f1=mC.p2r,so=mC.r2p,cte=Ql(),vte=cte.clearOutline,c1=oo(),dte=c1.readPaths,hte=c1.writePaths,pte=c1.ellipseOver,mte=c1.fixDatesForPaths;function yte(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!ote(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var gte=vf(),xte=gte.selectMode,bte=Ql(),_te=bte.clearOutline,p3=oo(),wte=p3.readPaths,Tte=p3.writePaths,Ate=p3.fixDatesForPaths;xC.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,d=(i.layout||{}).selections||[];if(!xte(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(h{"use strict";bC.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var fo=O(ga=>{"use strict";var Ki=mv(),_C=Re(),uo=Zr();ga.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ga.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ga.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ga.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ga.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ki.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(Ki.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};ga.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=ga.shapePositionToRange(r);l=function(s){var u=$i(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=ga.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};ga.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=ga.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};ga.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};ga.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};ga.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};ga.getPathString=function(e,r){let t=r.type,a=uo.getRefType(r.xref),n=uo.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,c,d,h,p,m,y,b;function _(E,R,N,H){var I;if(E)if(R==="domain")H?I=function(Y){return E._offset+E._length*(1-Y)}:I=function(Y){return E._offset+E._length*Y};else{let Y=ga.shapePositionToRange(E);I=function(G){return E._offset+E.r2p(Y(G,!0))},N==="path"&&E.type==="date"&&(I=ga.decodeDate(I))}else H?I=function(Y){return i.t+i.h*(1-Y)}:I=function(Y){return i.l+i.w*Y};return I}if(a==="array"?(d=[],l=r.xref.map(function(E){return uo.getFromId(e,E)}),d=r.xref.map(function(E,R){return _(l[R],uo.getRefType(E),t,!1)})):(l=uo.getFromId(e,r.xref),d=_(l,a,t,!1)),n==="array"?(h=[],o=r.yref.map(function(E){return uo.getFromId(e,E)}),h=r.yref.map(function(E,R){return _(o[R],uo.getRefType(E),t,!0)})):(o=uo.getFromId(e,r.yref),h=_(o,n,t,!0)),t==="path")return Mte(r,d,h);if(a==="array")s=$i(l[0],r.x0shift),u=$i(l[1],r.x1shift),p=d[0](r.x0)+s,m=d[1](r.x1)+u;else if(s=$i(l,r.x0shift),u=$i(l,r.x1shift),r.xsizemode==="pixel"){let E=d(r.xanchor);p=E+r.x0+s,m=E+r.x1+u}else p=d(r.x0)+s,m=d(r.x1)+u;if(n==="array")f=$i(o[0],r.y0shift),c=$i(o[1],r.y1shift),y=h[0](r.y0)+f,b=h[1](r.y1)+c;else if(f=$i(o,r.y0shift),c=$i(o,r.y1shift),r.ysizemode==="pixel"){let E=h(r.yanchor);y=E-r.y0+f,b=E-r.y1+c}else y=h(r.y0)+f,b=h(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+b;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+b+"H"+p+"Z";var w=(p+m)/2,x=(y+b)/2,A=Math.abs(w-p),k=Math.abs(x-y),M="A"+A+","+k,S=w+A+","+x,D=w+","+(x-k);return"M"+S+M+" 0 1,1 "+D+M+" 0 0,1 "+S+"Z"};function Mte(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Ki.segmentRE,function(d){var h=0,p=d.charAt(0),m=Ki.paramIsX[p],y=Ki.paramIsY[p],b=Ki.numParams[p];let _=m.drawn!==void 0,w=y.drawn!==void 0,x=s?r[f]:r,A=u?t[c]:t;var k=d.slice(1).replace(Ki.paramRE,function(M){return m[h]?n==="pixel"?M=x(l)+Number(M):M=x(M):y[h]&&(i==="pixel"?M=A(o)-Number(M):M=A(M)),h++,h>b&&(M="X"),M});return h>b&&(k=k.replace(/[\s,]*X.*/,""),_C.log("Ignoring extra params in segment "+d)),_&&f++,w&&c++,p+k})}ga.getPixelShift=$i;function $i(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var y3=O((a3e,AC)=>{"use strict";var kte=Re(),Qi=Zr(),wC=ia(),TC=Yr(),Cte=oo().readPaths,Ms=fo(),qte=Ms.getPathString,yv=zd(),Ste=ka().FROM_TL;AC.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Qi.getFromId(r,a.xref),s=Qi.getFromId(r,a.yref);let X=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in yv){var f=typeof yv[u]=="function",c=!X||yv.simpleXVariables.includes(u),d=!ee||yv.simpleYVariables.includes(u);if(f&&c&&d){var h=yv[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=kte.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),_=b.append("text").attr(y).classed("shape-label-text",!0).text(i),w,x,A,k;if(a.path){var M=qte(r,a),S=Cte(M,r);w=1/0,A=1/0,x=-1/0,k=-1/0;for(var D=0;DMs.getDataToPixel(r,oe,Z,!1,me)(Q),W=(Q,Z,oe,me)=>Ms.getDataToPixel(r,oe,Z,!0,me)(Q);if(a.xsizemode==="pixel"){let Q=ge(a.xanchor,void 0,le,qe),Z=Ms.getPixelShift(le,a.x0shift),oe=Ms.getPixelShift(le,a.x1shift);w=Q+a.x0+Z,x=Q+a.x1+oe}else w=ge(a.x0,a.x0shift,le,qe),x=ge(a.x1,a.x1shift,fe,ve);if(a.ysizemode==="pixel"){let Q=W(a.yanchor,void 0,ce,be),Z=Ms.getPixelShift(ce,a.y0shift),oe=Ms.getPixelShift(ce,a.y1shift);A=Q-a.y0+Z,k=Q-a.y1+oe}else A=W(a.y0,a.y0shift,ce,be),k=W(a.y1,a.y1shift,j,_e)}var Y=a.label.textangle;Y==="auto"&&(a.type==="line"?Y=Lte(w,A,x,k):Y=0),_.call(function(X){return X.call(TC.font,m).attr({}),wC.convertToTspans(X,r),X});var G=TC.bBox(_.node()),V=Dte(w,A,x,k,a,Y,G),U=V.textx,B=V.texty,J=V.xanchor;_.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[J],y:B,x:U,transform:"rotate("+Y+","+U+","+B+")"}).call(wC.positionText,U,B)}};function Lte(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Dte(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,d=Math.sin(c),h=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,b,_,w;if(f==="line"){o==="start"?(y=e,b=r):o==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Ete=Re(),Pte=Ete.strTranslate,MC=wi(),qC=vf(),Rte=qC.drawMode,SC=qC.selectMode,LC=gr(),kC=br(),h1=o1(),zte=h1.i000,Nte=h1.i090,Fte=h1.i180,Ite=h1.i270,Hte=Ql(),DC=Hte.clearOutlineControllers,x3=oo(),d1=x3.pointsOnRectangle,g3=x3.pointsOnEllipse,Bte=x3.writePaths,Ote=v1().newShapes,Yte=v1().createShapeObj,Vte=m3(),Ute=y3();EC.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(g3(r[0])||a.hasText)&&o({redrawing:!0})}function o(V){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=Ote(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=Vte(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&LC.call((V||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Rte(f),d=SC(f);(c||d)&&(i._fullLayout._outlining=!0),DC(i),t.attr("d",Bte(r));var h,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Gte([],r);var _=u.append("g").attr("class","outline-controllers");E(_),G()}if(c&&a.hasText){var w=u.select(".label-temp"),x=Yte(t,a,a.dragmode);Ute(i,"label-temp",x,w)}function A(V){m=+V.srcElement.getAttribute("data-i"),y=+V.srcElement.getAttribute("data-j"),h[m][y].moveFn=k}function k(V,U){if(r.length){var B=b[m][y][1],J=b[m][y][2],X=r[m],ee=X.length;if(d1(X)){var le=V,fe=U;if(a.isActiveSelection){var ce=CC(X,y);ce[1]===X[y][1]?fe=0:le=0}for(var j=0;j1&&!(V.length===2&&V[1][0]==="Z")&&(y===0&&(V[0][0]="M"),r[m]=V,l(),o())}}function D(V,U){if(V===2){m=+U.srcElement.getAttribute("data-i"),y=+U.srcElement.getAttribute("data-j");var B=r[m];!d1(B)&&!g3(B)&&S()}}function E(V){h=[];for(var U=0;U{"use strict";var Wte=kr(),IC=gr(),_3=Re(),ks=Zr(),Zte=oo().readPaths,Jte=p1(),y1=y3(),HC=Ql().clearOutlineControllers,b3=br(),g1=Yr(),$te=ot().arrayEditor,PC=wi(),RC=Wn(),zC=io(),Cs=mv(),hn=fo(),w3=hn.getPathString;YC.exports={draw:T3,drawOne:BC,eraseActiveShape:rae,drawLabel:y1};function T3(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&RC.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&RC.click(e,l,t.id)}})}function OC(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,l=Qte(r,a,n);_3.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),g1.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");g1.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function Qte(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(d=>ks.getFromId(e,d)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(d){return d._offset}),c=u.map(function(d){return d._offset+d._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function jte(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",d=i.modifyItem,h,p,m,y,b,_,w,x,A,k,M,S,D,E,R,N=Wte.select(r.node().parentNode),H=ks.getFromId(e,t.xref),I=ks.getRefType(t.xref),Y=ks.getFromId(e,t.yref),G=ks.getRefType(t.yref),V=t.x0shift,U=t.x1shift,B=t.y0shift,J=t.y1shift,X=function(Ee,Se){var Ue=hn.getDataToPixel(e,H,Se,!1,I);return Ue(Ee)},ee=function(Ee,Se){var Ue=hn.getDataToPixel(e,Y,Se,!0,G);return Ue(Ee)},le=hn.getPixelToData(e,H,!1,I),fe=hn.getPixelToData(e,Y,!0,G),ce=ve(),j={element:ce.node(),gd:e,prepFn:ge,doneFn:W,clickFn:Q},qe;PC.init(j),ce.node().onmousemove=_e;function ve(){return f?be():r}function be(){var Ee=10,Se=Math.max(t.line.width,Ee),Ue=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ue.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Se,"stroke-opacity":"0"});var Ie={"fill-opacity":"0"},We=Math.max(Se/2,Ee);return Ue.append("circle").attr({"data-line-point":"start-point",cx:s?X(t.xanchor)+t.x0:X(t.x0,V),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,B),r:We}).style(Ie).classed("cursor-grab",!0),Ue.append("circle").attr({"data-line-point":"end-point",cx:s?X(t.xanchor)+t.x1:X(t.x1,U),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,J),r:We}).style(Ie).classed("cursor-grab",!0),Ue}function _e(Ee){if(m1(e)){qe=null;return}if(f)Ee.target.tagName==="path"?qe="move":qe=Ee.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Se=j.element.getBoundingClientRect(),Ue=Se.right-Se.left,Ie=Se.bottom-Se.top,We=Ee.clientX-Se.left,De=Ee.clientY-Se.top,He=!c&&Ue>l&&Ie>o&&!Ee.shiftKey?PC.getCursor(We/Ue,1-De/Ie):"move";zC(r,He),qe=He.split("-")[0]}}function ge(Ee){m1(e)||(s&&(b=X(t.xanchor)),u&&(_=ee(t.yanchor)),t.type==="path"?R=t.path:(h=s?t.x0:X(t.x0),p=u?t.y0:ee(t.y0),m=s?t.x1:X(t.x1),y=u?t.y1:ee(t.y1)),hy?(w=p,M="y0",x=y,S="y1"):(w=y,M="y1",x=p,S="y0"),_e(Ee),me(n,t),ze(r,t,e),j.moveFn=qe==="move"?Z:oe,j.altKey=Ee.altKey)}function W(){m1(e)||(zC(r),xe(n),OC(r,e,t),IC.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){m1(e)||xe(n)}function Z(Ee,Se){if(t.type==="path"){var Ue=function(De){return De},Ie=Ue,We=Ue;s?d("xanchor",t.xanchor=le(b+Ee)):(Ie=function(He){return le(X(He)+Ee)},H&&H.type==="date"&&(Ie=hn.encodeDate(Ie))),u?d("yanchor",t.yanchor=fe(_+Se)):(We=function(He){return fe(ee(He)+Se)},Y&&Y.type==="date"&&(We=hn.encodeDate(We))),d("path",t.path=NC(R,Ie,We))}else s?d("xanchor",t.xanchor=le(b+Ee)):(d("x0",t.x0=le(h+Ee)),d("x1",t.x1=le(m+Ee))),u?d("yanchor",t.yanchor=fe(_+Se)):(d("y0",t.y0=fe(p+Se)),d("y1",t.y1=fe(y+Se)));r.attr("d",w3(e,t)),me(n,t),y1(e,a,t,N)}function oe(Ee,Se){if(c){var Ue=function(Ge){return Ge},Ie=Ue,We=Ue;s?d("xanchor",t.xanchor=le(b+Ee)):(Ie=function(ir){return le(X(ir)+Ee)},H&&H.type==="date"&&(Ie=hn.encodeDate(Ie))),u?d("yanchor",t.yanchor=fe(_+Se)):(We=function(ir){return fe(ee(ir)+Se)},Y&&Y.type==="date"&&(We=hn.encodeDate(We))),d("path",t.path=NC(R,Ie,We))}else if(f){if(qe==="resize-over-start-point"){var De=h+Ee,He=u?p-Se:p+Se;d("x0",t.x0=s?De:le(De)),d("y0",t.y0=u?He:fe(He))}else if(qe==="resize-over-end-point"){var Xe=m+Ee,ie=u?y-Se:y+Se;d("x1",t.x1=s?Xe:le(Xe)),d("y1",t.y1=u?ie:fe(ie))}}else{var we=function(Ge){return qe.indexOf(Ge)!==-1},$e=we("n"),dr=we("s"),Ne=we("w"),ke=we("e"),Ce=$e?w+Se:w,Be=dr?x+Se:x,Ze=Ne?A+Ee:A,Ve=ke?k+Ee:k;u&&($e&&(Ce=w-Se),dr&&(Be=x-Se)),(!u&&Be-Ce>o||u&&Ce-Be>o)&&(d(M,t[M]=u?Ce:fe(Ce)),d(S,t[S]=u?Be:fe(Be))),Ve-Ze>l&&(d(D,t[D]=s?Ze:le(Ze)),d(E,t[E]=s?Ve:le(Ve)))}r.attr("d",w3(e,t)),me(n,t),y1(e,a,t,N)}function me(Ee,Se){(s||u)&&Ue();function Ue(){var Ie=Se.type!=="path",We=Ee.selectAll(".visual-cue").data([0]),De=1;We.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=X(s?Se.xanchor:_3.midRange(Ie?[Se.x0,Se.x1]:hn.extractPathCoords(Se.path,Cs.paramIsX))),Xe=ee(u?Se.yanchor:_3.midRange(Ie?[Se.y0,Se.y1]:hn.extractPathCoords(Se.path,Cs.paramIsY)));if(He=hn.roundPositionForSharpStrokeRendering(He,De),Xe=hn.roundPositionForSharpStrokeRendering(Xe,De),s&&u){var ie="M"+(He-1-De)+","+(Xe-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";We.attr("d",ie)}else if(s){var we="M"+(He-1-De)+","+(Xe-9-De)+"v18 h2 v-18 Z";We.attr("d",we)}else{var $e="M"+(He-9-De)+","+(Xe-1-De)+"h18 v2 h-18 Z";We.attr("d",$e)}}}function xe(Ee){Ee.selectAll(".visual-cue").remove()}function ze(Ee,Se,Ue){var Ie=Se.xref,We=Se.yref,De=ks.getFromId(Ue,Ie),He=ks.getFromId(Ue,We),Xe="";Ie!=="paper"&&!De.autorange&&(Xe+=Ie),We!=="paper"&&!He.autorange&&(Xe+=We),g1.setClipUrl(Ee,Xe?"clip"+Ue._fullLayout._uid+Xe:null,Ue)}}function NC(e,r,t){return e.replace(Cs.segmentRE,function(a){var n=0,i=a.charAt(0),l=Cs.paramIsX[i],o=Cs.paramIsY[i],s=Cs.numParams[i],u=a.slice(1).replace(Cs.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function eae(e,r){if(x1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){FC(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=FC,T3(e)}}}function FC(e){if(x1(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(HC(e),delete e._fullLayout._activeShapeIndex,T3(e))}}function rae(e){if(x1(e)){HC(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var VC=kr(),_1=Re()._;UC.exports=function(r,t,a){var n=VC.select(r._fullLayout._paperdiv.node());n.selectAll(".plotly-cloud-dialog").remove();var i=n.append("div").classed("plotly-cloud-dialog",!0),l=i.append("div").classed("plotly-cloud-dialog-box",!0);l.append("div").classed("plotly-cloud-dialog-title",!0).text(_1(r,"Share with Plotly Cloud")),l.append("div").classed("plotly-cloud-dialog-message",!0).text(_1(r,"This chart and its data will be sent to")+" "+t+".");var o=l.append("div").classed("plotly-cloud-dialog-buttons",!0);function s(){i.remove(),document.removeEventListener("keydown",u)}function u(f){(f.key==="Escape"||f.keyCode===27)&&s()}document.addEventListener("keydown",u),i.on("click",function(){VC.event.target===i.node()&&s()}),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(_1(r,"Cancel")).on("click",s),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(_1(r,"Share")).on("click",function(){s(),a()})}});var k3=O((o3e,jC)=>{"use strict";var Zn=gr(),tae=Et(),XC=Xt(),Gr=i1(),aae=b1().eraseActiveShape,nae=GC(),w1=Re(),Or=w1._,Vr=jC.exports={};Vr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Or(e,"Download plot as a PNG"):Or(e,"Download plot")},icon:Gr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};w1.notifier(Or(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Zn.call("downloadImage",e,t).then(function(a){w1.notifier(Or(e,"Snapshot succeeded")+" - "+a,"long",e)}).catch(function(){w1.notifier(Or(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Vr.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Or(e,"Share with Plotly Cloud")},icon:Gr.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is not set)");return}try{new URL(r)}catch(t){console.error("Invalid plotlyServerURL: "+r);return}nae(e,r,function(){tae.sendDataToCloud(e,r)})}};Vr.sendDataToCloud=Vr.sendChartToCloud;Vr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Or(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Gr.zoombox,click:Ua};Vr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Or(e,"Pan")},attr:"dragmode",val:"pan",icon:Gr.pan,click:Ua};Vr.select2d={name:"select2d",_cat:"select",title:function(e){return Or(e,"Box Select")},attr:"dragmode",val:"select",icon:Gr.selectbox,click:Ua};Vr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Or(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Gr.lasso,click:Ua};Vr.drawclosedpath={name:"drawclosedpath",title:function(e){return Or(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Gr.drawclosedpath,click:Ua};Vr.drawopenpath={name:"drawopenpath",title:function(e){return Or(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Gr.drawopenpath,click:Ua};Vr.drawline={name:"drawline",title:function(e){return Or(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Gr.drawline,click:Ua};Vr.drawrect={name:"drawrect",title:function(e){return Or(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Gr.drawrect,click:Ua};Vr.drawcircle={name:"drawcircle",title:function(e){return Or(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Gr.drawcircle,click:Ua};Vr.eraseshape={name:"eraseshape",title:function(e){return Or(e,"Erase active shape")},icon:Gr.eraseshape,click:aae};Vr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Or(e,"Zoom in")},attr:"zoom",val:"in",icon:Gr.zoom_plus,click:Ua};Vr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Or(e,"Zoom out")},attr:"zoom",val:"out",icon:Gr.zoom_minus,click:Ua};Vr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Or(e,"Autoscale")},attr:"zoom",val:"auto",icon:Gr.autoscale,click:Ua};Vr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Or(e,"Reset axes")},attr:"zoom",val:"reset",icon:Gr.home,click:Ua};Vr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Or(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Gr.tooltip_basic,gravity:"ne",click:Ua};Vr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Or(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Gr.tooltip_compare,gravity:"ne",click:Ua};function Ua(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=XC.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,d=(1+c)/2,h=(1-c)/2,p,m;for(f=0;f{"use strict";var eq=k3(),oae=Object.keys(eq),rq=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],tq=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(rq),mf=[],sae=function(e){if(tq.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();mf.indexOf(r)===-1&&mf.push(r),mf.indexOf(t)===-1&&mf.push(t)}};oae.forEach(function(e){sae(eq[e])});mf.sort();aq.exports={DRAW_MODES:rq,backButtons:tq,foreButtons:mf}});var q3=O((f3e,nq)=>{"use strict";var u3e=C3();nq.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var lq=O((c3e,iq)=>{"use strict";var uae=Re(),gv=br(),fae=ot(),cae=q3();iq.exports=function(r,t){var a=r.modebar||{},n=fae.newContainer(t,"modebar");function i(o,s){return uae.coerce(a,n,cae,o,s)}i("orientation"),i("bgcolor",gv.addOpacity(t.paper_bgcolor,.5));var l=gv.contrast(gv.rgb(t.modebar.bgcolor));i("color",gv.addOpacity(l,.3)),i("activecolor",gv.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var fq=O((v3e,uq)=>{"use strict";var S3=kr(),vae=zr(),A1=Re(),oq=i1(),dae=Mc().version,hae=new DOMParser;function sq(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ji=sq.prototype;ji.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),A1.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};ji.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};ji.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};ji.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&S3.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||oq.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};ji.createIcon=function(e){var r=vae(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=hae.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};ji.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=S3.select(a),s=function(c,d){var h=r.modebar,p=c.querySelector(".icon path");p&&(d||c.matches(":hover")?p.style.fill=h.activecolor:p.style.fill=h.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:A1.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};ji.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var yae=Xt(),cq=Mn(),L3=gr(),gae=Yi().isUnifiedHover,xae=fq(),M1=k3(),bae=C3().DRAW_MODES,_ae=Re().extendDeep;vq.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Cae(i):!a.displayModeBar&&a.watermark?l=[]:l=wae(r),n?n.update(r,l):t._modeBar=xae(r,l)};function wae(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,B){if(typeof B=="string"){if(B.toLowerCase()===U.toLowerCase())return!0}else{var J=B.name,X=B._cat||B.name;if(J===U||X===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var B=0;B1?(E=["toggleHover"],R=["resetViews"]):c?(D=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],R=["resetGeo"]):f?(E=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(D=["zoomInMapbox","zoomOutMapbox"],E=["toggleHover"],R=["resetViewMapbox"]):y?(D=["zoomInMap","zoomOutMap"],E=["toggleHover"],R=["resetViewMap"]):d?E=["hoverClosestPie"]:w?(E=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):E=["toggleHover"],u&&E.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Mae(t)||A)&&(E=[]),u&&!x&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],R[0]!=="resetViews"&&(R=["resetScale2d"])),f?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||p?N=["zoom2d","pan2d"]:m||y||c?N=["pan2d"]:b&&(N=["zoom2d"]),Aae(t)&&N.push("select2d","lasso2d");var H=[],I=function(U){H.indexOf(U)===-1&&E.indexOf(U)!==-1&&H.push(U)};if(Array.isArray(o)){for(var Y=[],G=0;G{"use strict";hq.exports={moduleType:"component",name:"modebar",layoutAttributes:q3(),supplyLayoutDefaults:lq(),manage:dq()}});var E3=O((p3e,pq)=>{"use strict";var qae=ka().FROM_BL;pq.exports=function(r,t,a){a===void 0&&(a=qae[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Ss=O(xv=>{"use strict";var qs=Re(),P3=rv(),Ai=Xt().id2name,Sae=An(),mq=E3(),Lae=Dh(),Dae=Tt().ALMOST_EQUAL,Eae=ka().FROM_BL;xv.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,d,h,p;for(o=0;oi?t.slice(i):a.slice(n))+l}function Rae(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lDae*p&&!_)){for(i=0;iN&&JE&&(E=J);var ee=(E-D)/(2*R);c/=ee,D=s.l2r(D),E=s.l2r(E),s.range=s._input.range=k{"use strict";var C1=kr(),Ga=gr(),Ln=Et(),Jn=Re(),N3=ia(),F3=n1(),bv=br(),yf=Yr(),bq=jc(),Mq=D3(),_v=Zr(),Tl=ka(),kq=Ss(),zae=kq.enforce,Nae=kq.clean,_q=rv().doAutoRange,Cq="start",Fae="middle",qq="end",Iae=na().zindexSeparator;sa.layoutStyles=function(e){return Jn.syncOrAsync([Ln.doAutoMargin,Bae],e)};function Hae(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Bae(e){var r=e._fullLayout,t=r._size,a=t.p,n=_v.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(yf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),sa.drawMainTitle(e),Mq.manage(e),!r._has("cartesian"))return Ln.previousPromises(e);function c(ge,W,Q){var Z=ge._lw/2;if(ge._id.charAt(0)==="x"){if(W){if(Q==="top")return W._offset-a-Z}else return t.t+t.h*(1-(ge.position||0))+Z%1;return W._offset+W._length+a+Z}if(W){if(Q==="right")return W._offset+W._length+a+Z}else return t.l+t.w*(ge.position||0)+Z%1;return W._offset-a-Z}for(i=0;i0){Uae(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:Aq(r.yanchor)}).call(N3.positionText,l,i);var f=(r.text.match(N3.BR_TAG_ALL)||[]).length;if(f){var c=Tl.LINE_SPACING*f+Tl.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var d=C1.select(e).selectAll(".gtitle-subtitle");if(d.node()){var h=o.node().getBBox(),p=h.y+h.height,m=p+bq.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:l,y:m,"text-anchor":a,dy:Aq(r.yanchor)}).call(N3.positionText,l,m)}}}};function Oae(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Jn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Jn.isTopAnchor(r)&&t==="t"||Jn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=Yae(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function Uae(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Oae(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),Ln.allowAutoMargin(e,n),Ln.autoMargin(e,n,o)}function Gae(e,r){var t=e.title,a=e._size,n=0;return r===Cq?n=t.pad.l:r===qq&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function Xae(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Tl.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function Aq(e){return e==="top"?Tl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Tl.MID_SHIFT+"em"}function Wae(e){var r=e.title,t=Fae;return Jn.isRightAnchor(r)?t=qq:Jn.isLeftAnchor(r)&&(t=Cq),t}function Zae(e){var r=e.title,t="0em";return Jn.isTopAnchor(r)?t=Tl.CAP_SHIFT+"em":Jn.isMiddleAnchor(r)&&(t=Tl.MID_SHIFT+"em"),t}sa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Jae=oo().readPaths,$ae=p1(),Sq=Ql().clearOutlineControllers,I3=br(),Lq=Yr(),Kae=ot().arrayEditor,Dq=fo(),Qae=Dq.getPathString;Pq.exports={draw:S1,drawOne:Eq,activateLastSelection:rne};function S1(e){var r=e._fullLayout;Sq(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var b=l.append("path").attr(s).style("opacity",y?.1:u).call(I3.stroke,c).call(I3.fill,f).call(Lq.dashLine,y?"solid":h,y?4+d:d);if(jae(b,e,a),p){var _=Kae(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=Jae(o,e);$ae(x,b,w)}else b.style("pointer-events",y?"all":"none");m[y]=b}var A=m[0],k=m[1];k.node().addEventListener("click",function(){return ene(e,A)})}}function jae(e,r,t){var a=t.xref+t.yref;Lq.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function ene(e,r){if(L1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){H3(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=H3,S1(e)}}}function rne(e){if(L1(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=H3,S1(e)}}function H3(e){if(L1(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(Sq(e),delete e._fullLayout._activeSelectionIndex,S1(e))}}});var zq=O((x3e,Rq)=>{function tne(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}Rq.exports=tne});var Fq=O((b3e,Nq)=>{function ane(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}Nq.exports=ane});var Hq=O((_3e,Iq)=>{var nne={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Iq.exports=nne});var Oq=O((w3e,Bq)=>{var wv=Hq();function ine(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=wv.create();function l(p,m,y,b,_,w){var x=r.pointsCompare(m,_);return x!==0?x:r.pointsSame(y,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(y,b?_:w,b?w:_)?1:-1}function o(p,m){i.insertBefore(p,function(y){var b=l(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return b<0})}function s(p,m){var y=wv.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return o(y,p.end),y}function u(p,m,y){var b=wv.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=b,o(b,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,o(p.other,p.pt)}function d(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function h(p,m){var y=wv.create();function b(Y,G){var V=Y.seg.start,U=Y.seg.end,B=G.seg.start,J=G.seg.end;return r.pointsCollinear(V,B,J)?r.pointsCollinear(U,B,J)||r.pointAboveOrOnLine(U,B,J)?1:-1:r.pointAboveOrOnLine(V,B,J)?1:-1}function _(Y){return y.findTransition(function(G){var V=b(Y,G.ev);return V>0})}function w(Y,G){var V=Y.seg,U=G.seg,B=V.start,J=V.end,X=U.start,ee=U.end;t&&t.checkIntersection(V,U);var le=r.linesIntersect(B,J,X,ee);if(le===!1){if(!r.pointsCollinear(B,J,X)||r.pointsSame(B,ee)||r.pointsSame(J,X))return!1;var fe=r.pointsSame(B,X),ce=r.pointsSame(J,ee);if(fe&&ce)return G;var j=!fe&&r.pointBetween(B,X,ee),qe=!ce&&r.pointBetween(J,X,ee);if(fe)return qe?d(G,J):d(Y,ee),G;j&&(ce||(qe?d(G,J):d(Y,ee)),d(G,B))}else le.alongA===0&&(le.alongB===-1?d(Y,X):le.alongB===0?d(Y,le.pt):le.alongB===1&&d(Y,ee)),le.alongB===0&&(le.alongA===-1?d(G,B):le.alongA===0?d(G,le.pt):le.alongA===1&&d(G,J));return!1}for(var x=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let Y=function(){if(M){var G=w(A,M);if(G)return G}return S?w(A,S):!1};var I=Y;t&&t.segmentNew(A.seg,A.primary);var k=_(A),M=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,S?S.seg:!1);var D=Y();if(D){if(e){var E;A.seg.myFill.below===null?E=!0:E=A.seg.myFill.above!==A.seg.myFill.below,E&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(D.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var E;A.seg.myFill.below===null?E=!0:E=A.seg.myFill.above!==A.seg.myFill.below,S?A.seg.myFill.below=S.seg.myFill.above:A.seg.myFill.below=p,E?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var R;S?A.primary===S.primary?R=S.seg.otherFill.above:R=S.seg.myFill.above:R=A.primary?m:p,A.seg.otherFill={above:R,below:R}}t&&t.status(A.seg,M?M.seg:!1,S?S.seg:!1),A.other.status=k.insert(wv.node({ev:A}))}else{var N=A.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(N.prev)&&y.exists(N.next)&&w(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!A.primary){var H=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=H}x.push(A.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var m,y=p[p.length-1],b=0;b{function lne(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(I,Y,G){return f.index=I,f.matches_head=Y,f.matches_pt1=G,f===s?(f=u,!1):(f=null,!0)}for(var d=0;d{function Tv(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var one={union:function(e,r){return Tv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Tv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Tv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Tv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Tv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};Uq.exports=one});var Wq=O((M3e,Xq)=>{var sne={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var une=zq(),fne=Fq(),Zq=Oq(),cne=Vq(),Av=Gq(),Jq=Wq(),$n=!1,Mv=fne(),pn;pn={buildLog:function(e){return e===!0?$n=une():e===!1&&($n=!1),$n===!1?!1:$n.list},epsilon:function(e){return Mv.epsilon(e)},segments:function(e){var r=Zq(!0,Mv,$n);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=Zq(!1,Mv,$n);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Av.union(e.combined,$n),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Av.intersect(e.combined,$n),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Av.difference(e.combined,$n),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Av.differenceRev(e.combined,$n),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Av.xor(e.combined,$n),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:cne(e.segments,Mv,$n),inverted:e.inverted}},polygonFromGeoJSON:function(e){return Jq.toPolygon(pn,e)},polygonToGeoJSON:function(e){return Jq.fromPolygon(pn,Mv,e)},union:function(e,r){return kv(e,r,pn.selectUnion)},intersect:function(e,r){return kv(e,r,pn.selectIntersect)},difference:function(e,r){return kv(e,r,pn.selectDifference)},differenceRev:function(e,r){return kv(e,r,pn.selectDifferenceRev)},xor:function(e,r){return kv(e,r,pn.selectXor)}};function kv(e,r,t){var a=pn.segments(e),n=pn.segments(r),i=pn.combine(a,n),l=t(i);return pn.polygon(l)}typeof window=="object"&&(window.PolyBool=pn);$q.exports=pn});var jq=O((C3e,Qq)=>{Qq.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=p>l&&i<(h-c)*(l-d)/(p-d)+c;m&&(o=!o)}return o}});var Y3=O((q3e,eS)=>{"use strict";var O3=Ed().dot,D1=Tt().BADNUM,E1=eS.exports={};E1.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||b===D1||bl||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===D1||yn||b===D1||bl)return!1;var _=t.length,w=t[0][0],x=t[0][1],A=0,k,M,S,D,E;for(k=1;k<_;k++)if(M=w,S=x,w=t[k][0],x=t[k][1],D=Math.min(M,w),!(yMath.max(M,w)||b>Math.max(S,x)))if(bo||Math.abs(O3(c,u))>n)return!0;return!1};E1.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var tS=O((S3e,rS)=>{"use strict";rS.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var AS=O((L3e,TS)=>{"use strict";var aS=Kq(),vne=jq(),Sv=gr(),dne=Yr().dashStyle,Cv=br(),hne=Wn(),pne=Yi().makeEventData,Rv=vf(),mne=Rv.freeMode,yne=Rv.rectMode,Lv=Rv.drawMode,X3=Rv.openMode,W3=Rv.selectMode,nS=fo(),iS=mv(),fS=p1(),cS=Ql().clearOutline,vS=oo(),V3=vS.handleEllipse,gne=vS.readPaths,xne=v1().newShapes,bne=m3(),_ne=B3().activateLastSelection,R1=Re(),wne=R1.sorterAsc,dS=Y3(),qv=Ud(),Kn=Xt().getFromId,Tne=n1(),Ane=q1().redrawReglTraces,z1=tS(),el=z1.MINSELECT,Mne=dS.filter,Z3=dS.tester,J3=s1(),lS=J3.p2r,kne=J3.axValue,Cne=J3.getTransform;function $3(e){return e.subplot!==void 0}function qne(e,r,t,a,n){var i=!$3(a),l=mne(n),o=yne(n),s=X3(n),u=Lv(n),f=W3(n),c=n==="drawline",d=n==="drawcircle",h=c||d,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,b=m._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,x=Cne(w),A=r-_.left,k=t-_.top;m._calcInverseTransform(p);var M=R1.apply3DTransform(m._invTransform)(A,k);A=M[0],k=M[1];var S=m._invScaleX,D=m._invScaleY,E=A,R=k,N="M"+A+","+k,H=a.xaxes[0],I=a.yaxes[0],Y=H._length,G=I._length,V=e.altKey&&!(Lv(n)&&s),U,B,J,X,ee,le,fe;pS(e,p,a),l&&(U=Mne([[A,k]],z1.BENDPX));var ce=b.selectAll("path.select-outline-"+w.id).data([1]),j=u?m.newshape:m.newselection;u&&(a.hasText=j.label.text||j.label.texttemplate);var qe=u&&!s?j.fillcolor:"rgba(0,0,0,0)",ve=j.line.color||(i?Cv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ce.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?j.opacity/2:1,"stroke-dasharray":dne(j.line.dash,j.line.width),"stroke-width":j.line.width+"px","shape-rendering":"crispEdges"}).call(Cv.stroke,ve).call(Cv.fill,qe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",N+"Z");var be=b.append("path").attr("class","zoombox-corners").style({fill:Cv.background,stroke:Cv.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var _e=b.select(".label-temp");_e.empty()&&(_e=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ge=m._uid+z1.SELECTID,W=[],Q=N1(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var oe=H._id,me=I._id;bS(p,oe,me,Q);for(var xe=(p.layout||{}).selections||[],ze=[],Ee=!1,Se=0;Se=0){p._fullLayout._deactivateShape(p);return}if(!u){var xe=m.clickmode;qv.done(ge).then(function(){if(qv.clear(ge),oe===2){for(ce.remove(),ee=0;ee-1&&hS(me,p,a.xaxes,a.yaxes,a.subplot,a,ce),xe==="event"&&Pv(p,void 0);hne.click(p,me,w.id)}).catch(R1.error)}},a.doneFn=function(){be.remove(),qv.done(ge).then(function(){qv.clear(ge),!y&&X&&a.selectionDefs&&(X.subtract=V,a.selectionDefs.push(X),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,J)),(y||u)&&Dv(a,y),a.doneFnCompleted&&a.doneFnCompleted(W),f&&Pv(p,fe)}).catch(R1.error)}}function hS(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],d,h,p,m,y,b,_,w,x,A;if(Pne(o)){pS(e,r,i),d=N1(r,t,a,n);var k=Rne(o,d),M=k.pointNumbers.length>0;if(M?zne(d,k):Nne(d)&&(_=sS(k))){for(l&&l.remove(),A=0;A=0}function Ene(e){return e._fullLayout._activeSelectionIndex>=0}function Dv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Dne(n)&&n._fullLayout._deactivateShape(n),Ene(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Lv(t),s=W3(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=xne(u,e)),f&&Sv.call("_guiRelayout",n,{shapes:f});var c;s&&!$3(e)&&(c=bne(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Sv.call("_guiRelayout",n,{selections:c}).then(function(){r&&_ne(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function oS(e){return e._id}function N1(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(oS),l=t.map(oS),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function zne(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Ev(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var oe=uS(e,!0);if(oe.length){var me=oe[0].xref,xe=oe[0].yref;if(me&&xe){var ze=_S(oe),Ee=wS([Kn(e,me,"x"),Kn(e,xe,"y")]);Ee(W,ze)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:Z&&Pv(e,W),d._reselect=!1}if(!l&&d._deselect){var Se=d._deselect;o=Se.xref,s=Se.yref,Hne(o,s,f)||bS(e,o,s,a),Z&&(W.points.length?Pv(e,W):j3(e)),d._deselect=!1}return{eventData:W,selectionTesters:t}}function Ine(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";MS.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var zv=O((E3e,kS)=>{"use strict";kS.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var gf=O((R3e,SS)=>{"use strict";var CS=ex(),qS=ta(),F1=na(),Une=ot().templatedArray,P3e=zv();SS.exports=Une("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:qS({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:CS.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:CS.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",F1.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",F1.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",F1.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",F1.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:qS({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var I1=O((z3e,LS)=>{"use strict";LS.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var rx=O((N3e,DS)=>{"use strict";DS.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Mi=O((F3e,HS)=>{"use strict";var ES=bi().axisHoverFormat,{hovertemplateAttrs:Gne,texttemplateAttrs:Xne,templatefallbackAttrs:PS}=_n(),RS=Jc(),Wne=ta(),zS=mi().dash,Zne=mi().pattern,Jne=Yr(),$ne=I1(),Nv=yt().extendFlat,Kne=rx();function NS(e){return{valType:"any",dflt:0,editType:"calc"}}function FS(e){return{valType:"any",editType:"calc"}}function IS(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}HS.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:NS("x"),yperiod:NS("y"),xperiod0:FS("x0"),yperiod0:FS("y0"),xperiodalignment:IS("x"),yperiodalignment:IS("y"),xhoverformat:ES("x"),yhoverformat:ES("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Xne(),texttemplatefallback:PS({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Gne({},{keys:$ne.eventDataKeys}),hovertemplatefallback:PS(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Nv({},zS,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Kne(!0),fillgradient:Nv({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Zne,marker:Nv({symbol:{valType:"enumerated",values:Jne.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Nv({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Nv({},zS,{arrayOk:!0}),editType:"calc"},RS("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},RS("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Wne({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var tx=O((H3e,YS)=>{"use strict";var BS=gf(),OS=Mi().line,Qne=mi().dash,H1=yt().extendFlat,jne=pi().overrideAll,eie=ot().templatedArray,I3e=zv();YS.exports=jne(eie("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:H1({},BS.xref,{}),yref:H1({},BS.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:OS.color,width:H1({},OS.width,{min:1,dflt:1}),dash:H1({},Qne,{dflt:"dot"})}}),"arraydraw","from-root")});var XS=O((B3e,GS)=>{"use strict";var VS=Re(),B1=Zr(),rie=Vn(),tie=tx(),US=fo();GS.exports=function(r,t){rie(r,t,{name:"selections",handleItemDefaults:aie});for(var a=t.selections,n=0;n{"use strict";WS.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Fv=O((Y3e,KS)=>{"use strict";var nie=gr(),JS=Re(),$S=Xt();KS.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=nie.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,d=n._has("cartesian"),h=0;h{"use strict";var QS=B3(),Iv=AS();jS.exports={moduleType:"component",name:"selections",layoutAttributes:tx(),supplyLayoutDefaults:XS(),supplyDrawNewSelectionDefaults:ZS(),includeBasePlot:Fv()("selections"),draw:QS.draw,drawOne:QS.drawOne,reselect:Iv.reselect,prepSelect:Iv.prepSelect,clearOutline:Iv.clearOutline,clearSelectionsCache:Iv.clearSelectionsCache,selectOnClick:Iv.selectOnClick}});var bL=O((U3e,xL)=>{"use strict";var ox=kr(),Qn=Re(),eL=Qn.numberFormat,iie=In(),lie=B2(),O1=gr(),uL=Qn.strTranslate,oie=ia(),rL=br(),vo=Yr(),sie=Wn(),tL=Zr(),uie=io(),fie=wi(),fL=vf(),Y1=fL.selectingOrDrawing,cie=fL.freeMode,vie=ka().FROM_TL,die=n1(),hie=q1().redrawReglTraces,pie=Et(),nx=Xt().getFromId,mie=xf().prepSelect,yie=xf().clearOutline,gie=xf().selectOnClick,ax=E3(),sx=na(),aL=sx.MINDRAG,en=sx.MINZOOM,nL=!0;function xie(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,d,h,p,m,y,b,_,w,x,A,k,M,S,D,E,R,N,H,I,Y,G,V;t+=r.yaxis._shift;function U(){if(c=r.xaxis,d=r.yaxis,w=c._length,x=d._length,b=c._offset,_=d._offset,h={},h[c._id]=c,p={},p[d._id]=d,l&&o)for(var ke=r.overlays,Ce=0;Ce=0){Be._fullLayout._deactivateShape(Be);return}var Ze=Be._fullLayout.clickmode;if(lx(Be),ke===2&&!f&&Xe(),u)Ze.indexOf("select")>-1&&gie(Ce,Be,m,y,r.id,X),Ze.indexOf("event")>-1&&sie.click(Be,Ce,r.id);else if(ke===1&&f){var Ve=l?d:c,Ge=l==="s"||o==="w"?0:1,ir=Ve._name+".range["+Ge+"]",ar=bie(Ve,Ge),er="left",Fe="middle";if(Ve.fixedrange)return;l?(Fe=l==="n"?"top":"bottom",Ve.side==="right"&&(er="right")):o==="e"&&(er="right"),Be._context.showAxisRangeEntryBoxes&&ox.select(J).call(oie.makeEditable,{gd:Be,immediate:!0,background:Be._fullLayout.paper_bgcolor,text:String(ar),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:er,verticalAlign:Fe}).on("edit",function(ne){var se=Ve.d2r(ne);se!==void 0&&O1.call("_guiRelayout",Be,ir,se)})}}fie.init(X);var fe,ce,j,qe,ve,be,_e,ge,W,Q;function Z(ke,Ce,Be){var Ze=J.getBoundingClientRect();fe=Ce-Ze.left,ce=Be-Ze.top,e._fullLayout._calcInverseTransform(e);var Ve=Qn.apply3DTransform(e._fullLayout._invTransform)(fe,ce);fe=Ve[0],ce=Ve[1],j={l:fe,r:fe,w:0,t:ce,b:ce,h:0},qe=e._hmpixcount?e._hmlumcount/e._hmpixcount:iie(e._fullLayout.plot_bgcolor).getLuminance(),ve="M0,0H"+w+"V"+x+"H0V0",be=!1,_e="xy",Q=!1,ge=dL(s,qe,b,_,ve),W=hL(s,b,_)}function oe(ke,Ce){if(e._transitioningWithDuration)return!1;var Be=Math.max(0,Math.min(w,G*ke+fe)),Ze=Math.max(0,Math.min(x,V*Ce+ce)),Ve=Math.abs(Be-fe),Ge=Math.abs(Ze-ce);j.l=Math.min(fe,Be),j.r=Math.max(fe,Be),j.t=Math.min(ce,Ze),j.b=Math.max(ce,Ze);function ir(){_e="",j.r=j.l,j.t=j.b,W.attr("d","M0,0Z")}if(A.isSubplotConstrained)Ve>en||Ge>en?(_e="xy",Ve/w>Ge/x?(Ge=Ve*x/w,ce>Ze?j.t=ce-Ge:j.b=ce+Ge):(Ve=Ge*w/x,fe>Be?j.l=fe-Ve:j.r=fe+Ve),W.attr("d",V1(j))):ir();else if(k.isSubplotConstrained)if(Ve>en||Ge>en){_e="xy";var ar=Math.min(j.l/w,(x-j.b)/x),er=Math.max(j.r/w,(x-j.t)/x);j.l=ar*w,j.r=er*w,j.b=(1-ar)*x,j.t=(1-er)*x,W.attr("d",V1(j))}else ir();else!S||Ge0){var ne;if(k.isSubplotConstrained||!M&&S.length===1){for(ne=0;ne1&&(ir.maxallowed!==void 0&&E===(ir.range[0]1&&(ar.maxallowed!==void 0&&R===(ar.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function wie(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function dL(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",uL(t,a)).attr("d",n+"Z")}function hL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:rL.background,stroke:rL.defaultLine,"stroke-width":1,opacity:0}).attr("transform",uL(r,t)).attr("d","M0,0Z")}function pL(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),mL(e,r,n,i)}function mL(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function lx(e){ox.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function yL(e){nL&&e.data&&e._context.showTips&&(Qn.notifier(Qn._(e,"Double-click to zoom back out"),"long",e),nL=!1)}function Tie(e,r){return"M"+(e.l-.5)+","+(r-en-.5)+"h-3v"+(2*en+1)+"h3ZM"+(e.r+.5)+","+(r-en-.5)+"h3v"+(2*en+1)+"h-3Z"}function Aie(e,r){return"M"+(r-en-.5)+","+(e.t-.5)+"v-3h"+(2*en+1)+"v3ZM"+(r-en-.5)+","+(e.b+.5)+"v3h"+(2*en+1)+"v-3Z"}function V1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,en)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function oL(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,d=(n||{}).xaHash,h=(n||{}).yaHash,p=0;p{"use strict";var Mie=kr(),U1=Wn(),kie=wi(),Cie=io(),ki=bL().makeDragBox,ua=na().DRAGGERSIZE;G1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Mie.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=ki(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(d){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&U1.hover(r,d,i)},U1.hover(r,d,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(d){r._dragging||(r._fullLayout._hoversubplot=null,kie.unhover(r,d))},r._context.showAxisDragHandles&&(ki(r,l,o._offset-ua,s._offset-ua,ua,ua,"n","w"),ki(r,l,o._offset+o._length,s._offset-ua,ua,ua,"n","e"),ki(r,l,o._offset-ua,s._offset+s._length,ua,ua,"s","w"),ki(r,l,o._offset+o._length,s._offset+s._length,ua,ua,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=ua),ki(r,l,o._offset+o._length*.1,f,o._length*.8,ua,"","ew"),ki(r,l,o._offset,f,o._length*.1,ua,"","w"),ki(r,l,o._offset+o._length*.9,f,o._length*.1,ua,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=ua),ki(r,l,c,s._offset+s._length*.1,ua,s._length*.8,"ns",""),ki(r,l,c,s._offset+s._length*.9,ua,s._length*.1,"s",""),ki(r,l,c,s._offset,ua,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,U1.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,U1.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},G1.updateFx(r)}};G1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Cie(r._draggers,t)}});var TL=O((X3e,wL)=>{"use strict";var _L=gr();wL.exports=function(r){for(var t=_L.layoutArrayContainers,a=_L.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var qie=Ol(),fx=Dd(),Hv=jo(),Sie=lg().sorterAsc,cx=gr();Bv.containerArrayMatch=TL();var Lie=Bv.isAddVal=function(r){return r==="add"||qie(r)},AL=Bv.isRemoveVal=function(r){return r===null||r==="remove"};Bv.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=cx.getComponentMethod(l,"supplyLayoutDefaults"),s=cx.getComponentMethod(l,"draw"),u=cx.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===fx||s===fx,c=r.layout,d=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Hv.warn("Full array edits are incompatible with other edits",l);var h=a[""][""];if(AL(h))t.set(null);else if(Array.isArray(h))t.set(h);else return Hv.warn("Unrecognized full array edit value",l,h),!0;return f?!1:(o(c,d),s(r),!0)}var p=Object.keys(a).map(Number).sort(Sie),m=t.get(),y=m||[],b=i(d,l).get(),_=[],w=-1,x=y.length,A,k,M,S,D,E,R,N;for(A=0;Ay.length-(R?0:1)){Hv.warn("index out of range",l,M);continue}if(E!==void 0)D.length>1&&Hv.warn("Insertion & removal are incompatible with edits to the same index.",l,M),AL(E)?_.push(M):R?(E==="add"&&(E={}),y.splice(M,0,E),b&&b.splice(M,0,{})):Hv.warn("Unrecognized full object edit value",l,M,E),w===-1&&(w=M);else for(k=0;k=0;A--)y.splice(_[A],1),b&&b.splice(_[A],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(o(c,d),u!==fx){var H;if(w===-1)H=p;else{for(x=Math.max(y.length,x),H=[],A=0;A=w));A++)H.push(M);for(A=w;A{"use strict";var SL=zr(),LL=gr(),Xa=Re(),Ov=Et(),DL=Xt(),EL=br(),Yv=DL.cleanId,Die=DL.getFromTrace,vx=LL.traceIs,Eie=["x","y","z"];jn.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Xa.log("Clearing previous rejected promises from queue."),e._promises=[]};jn.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Ov.subplotsRegistry.cartesian||{}).attrRegex,n=(Ov.subplotsRegistry.polar||{}).attrRegex,i=(Ov.subplotsRegistry.ternary||{}).attrRegex,l=(Ov.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),EL.clean(e),e.template&&e.template.layout&&jn.cleanLayout(e.template.layout),e};function bf(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Yv(a,n,!0))}jn.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}jn.hasParent=function(e,r){for(var t=qL(r);t;){if(t in e)return!0;t=qL(t)}return!1};jn.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Xa.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aXa.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?dx(n,i):!1))return!1}return!0}return!1};jn.collectionsAreEqual=dx});var xx=O(Ur=>{"use strict";var J1=kr(),zie=zr(),Nie=bg(),tr=Re(),dt=tr.nestedProperty,mx=Vc(),rn=v9(),ei=gr(),tp=Uu(),_r=Et(),Wa=Zr(),Fie=H2(),Iie=An(),hx=Yr(),Hie=br(),Bie=ux().initInteractions,Oie=ss(),Yie=xf().clearOutline,IL=Qo().dfltConfig,W1=ML(),Yt=PL(),rt=q1(),ho=pi(),Vie=na().AX_NAME_PATTERN,px=0,RL=5;function Uie(e,r,t,a){var n;if(e=tr.getGraphDiv(e),mx.init(e),tr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=mx.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!tr.isPlotDiv(e)&&tr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Ur.addFrames(e,n)}BL(e,a),t||(t={}),J1.select(e).classed("js-plotly-plot",!0),hx.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Yt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Yt.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(dle(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),hx.initGradients(e),hx.initPatterns(e),s&&Wa.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var d=0;d=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function OL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),K1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&K1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Jie(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[R]!="string";)R--;var N=S.parts[R],H=S.parts[R-1]+"."+N,I=S.parts.slice(0,R).join("."),Y=dt(e.layout,I).get(),G=dt(a,I).get(),V=S.get();if(D!==void 0){b[M]=D,_[M]=N==="reverse"?D:Al(V);var U=tp.getLayoutValObject(a,S.parts);if(U&&U.impliedEdits&&D!==null)for(var B in U.impliedEdits)w(tr.relativeAttr(M,B),U.impliedEdits[B]);if(["width","height"].indexOf(M)!==-1)if(D){w("autosize",null);var J=M==="height"?"width":"height";w(J,a[J])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(H.match($L))k(H),dt(a,I+"._inputRange").set(null);else if(H.match(KL)){k(H),dt(a,I+"._inputRange").set(null);var X=dt(a,I).get();X._inputDomain&&(X._input.domain=X._inputDomain.slice())}else H.match(jie)&&dt(a,I+"._inputDomain").set(null);if(N==="type"){A=Y;var ee=G.type==="linear"&&D==="log",le=G.type==="log"&&D==="linear";if(ee||le){if(!A||!A.range)w(I+".autorange",!0);else if(G.autorange)ee&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var fe=A.range[0],ce=A.range[1];ee?(fe<=0&&ce<=0&&w(I+".autorange",!0),fe<=0?fe=ce/1e6:ce<=0&&(ce=fe/1e6),w(I+".range[0]",Math.log(fe)/Math.LN10),w(I+".range[1]",Math.log(ce)/Math.LN10)):(w(I+".range[0]",Math.pow(10,fe)),w(I+".range[1]",Math.pow(10,ce)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],ei.getComponentMethod("annotations","convertCoords")(e,G,D,w),ei.getComponentMethod("images","convertCoords")(e,G,D,w)}else w(I+".autorange",!0),w(I+".range",null);dt(a,I+"._inputRange").set(null)}else if(N.match(Vie)){var j=dt(a,M).get(),qe=(D||{}).type;(!qe||qe==="-")&&(qe="linear"),ei.getComponentMethod("annotations","convertCoords")(e,j,qe,w),ei.getComponentMethod("images","convertCoords")(e,j,qe,w)}var ve=W1.containerArrayMatch(M);if(ve){f=ve.array,c=ve.index;var be=ve.property,_e=U||{editType:"calc"};c!==""&&be===""&&(W1.isAddVal(D)?_[M]=null:W1.isRemoveVal(D)?_[M]=(dt(t,f).get()||[])[c]:tr.warn("unrecognized full object value",r)),ho.update(y,_e),u[f]||(u[f]={});var ge=u[f][c];ge||(ge=u[f][c]={}),ge[be]=D,delete r[M]}else N==="reverse"?(Y.range?Y.range.reverse():(w(I+".autorange",!0),Y.range=[1,0]),G.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(D===!1&&V!==!1||D!==!1&&V===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(D==="lasso"||D==="select")&&!(V==="lasso"||V==="select")?y.plot=!0:U?ho.update(y,U):y.calc=!0,S.set(D))}}for(f in u){var W=W1.applyContainerArrayChanges(e,i(t,f),u[f],y,i);W||(y.plot=!0)}for(var Q in x){A=Wa.getFromId(e,Q);var Z=A&&A._constraintGroup;if(Z){y.calc=!0;for(var oe in Z)x[oe]||(Wa.getFromId(e,oe)._constraintShrinkable=!0)}}(jL(e)||r.height||r.width)&&(y.plot=!0);var me=a.shapes;for(c=0;c1;)if(a.pop(),t=dt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function tle(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Ur.newPlot(e,r,t,a).then(()=>{for(let[I,Y]of H)Y.forEach(G=>e.on(I,G));return Ur.react(e,r,t,a)})}else{e.data=r||[],Yt.cleanData(e.data),e.layout=t||{},Yt.cleanLayout(e.layout),nle(e.data,e.layout,o,s),_r.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,d=e._fullLayout,h=d.datarevision===void 0,p=d.transition,m=ole(e,s,d,h,p),y=m.newDataRevision,b=lle(e,o,c,h,p,y);if(jL(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var _=Object.getOwnPropertyNames(d),w=0;w<_.length;w++){var x=_[w],A=x.substring(0,5);if(A==="xaxis"||A==="yaxis"){var k=d[x]._emptyCategories;k&&k()}}}else _r.supplyDefaultsUpdateCalc(e.calcdata,c);var M=[];if(n&&(e._transitionData={},_r.createTransitionData(e),M.push(l)),d.transition&&(b.anim||m.anim))m.ticks&&M.push(rt.doTicksRelayout),_r.doCalcdata(e),rt.doAutoRangeAndConstraints(e),M.push(function(){return _r.transitionFromReact(e,b,m,s)});else if(b.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,M.push(Ur._doPlot);else{for(var S in m.arrays){var D=m.arrays[S];if(D.length){var E=ei.getComponentMethod(S,"drawOne");if(E!==tr.noop)for(var R=0;R(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function lle(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=ho.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(h){var p=tp.getTraceValObject(u,h);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},d={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function d(N){if(N.length!==0){for(var H=0;Ha._timeToNext&&p()};N()}var y=0;function b(N){return Array.isArray(n)?y>=n.length?N.transitionOpts=n[y]:N.transitionOpts=n[0]:N.transitionOpts=n,y++,N}var _,w,x=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&tr.isPlainObject(r);if(M)x.push({type:"object",data:b(tr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(_=0;_0&&EE)&&R.push(w);x=R}}x.length>0?d(x):(e.emit("plotly_animated"),u())})}function ule(e,r,t){if(e=tr.getGraphDiv(e),r==null)return Promise.resolve();if(!tr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(tr.isPlainObject(r[a])){var d=r[a].name,h=(s[d]||c[d]||{}).name,p=r[a].name,m=s[h]||c[h];h&&p&&typeof p=="number"&&m&&pxS.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&tr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=_r.modifyFrames,s=_r.modifyFrames,u=[e,l],f=[e,i];return rn&&rn.add(e,o,u,s,f),_r.modifyFrames(e,i)}function cle(e){e=tr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),mx.purge(e),r._container&&r._container.remove(),delete e._context,e}function vle(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!tr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=tr.inverseTransformMatrix(tr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function dle(e){var r=J1.select(e),t=e._fullLayout;if(t._calcInverseTransform=vle,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};J1.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=tr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Oie.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ur.animate=sle;Ur.addFrames=ule;Ur.deleteFrames=fle;Ur.addTraces=XL;Ur.deleteTraces=WL;Ur.extendTraces=UL;Ur.moveTraces=yx;Ur.prependTraces=GL;Ur.newPlot=Zie;Ur._doPlot=Uie;Ur.purge=cle;Ur.react=ile;Ur.redraw=Wie;Ur.relayout=Vv;Ur.restyle=Q1;Ur.setPlotConfig=Gie;Ur.update=ep;Ur._guiRelayout=gx(Vv);Ur._guiRestyle=gx(Q1);Ur._guiUpdate=gx(ep);Ur._storeDirectGUIEdit=Qie});var Ls=O(rl=>{"use strict";var hle=gr();rl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};rl.getRedrawFunc=function(e){return function(){hle.getComponentMethod("colorbar","draw")(e)}};rl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};rl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var eD=window.URL||window.webkitURL;rl.createObjectURL=function(e){return eD.createObjectURL(e)};rl.revokeObjectURL=function(e){return eD.revokeObjectURL(e)};rl.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=ple(window.atob(e));return new window.Blob([t],{type:"image/"+r})};rl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function ple(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var _x=kr(),K3e=Re(),mle=Yr(),yle=br(),Q3e=ss(),bx=/"/g,Ds="TOBESTRIPPED",gle=new RegExp(`("${Ds})|(${Ds}")|("${Ds})|(${Ds}")`,"g"),xle=["&","&","&",""",""",""","'","'","'"],ble=["<","<","<"],_le=[">",">",">"];function wle(e){let r=_x.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return xle.includes(n)?a:ble.includes(n)?"<":_le.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function Tle(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}rD.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(mle.setRect,0,0,o,s).call(yle.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Ale=Re(),Mle=Kd().EventEmitter,Gv=Ls();function kle(e){var r=e.emitter||new Mle,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,d=u*f,h=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,b;o==="svg"||Ale.isSafari()?b=Gv.encodeSVG(l):(y=Gv.createBlob(l,"svg"),b=Gv.createObjectURL(y)),s.width=d,s.height=h,m.onload=function(){var _;switch(y=null,Gv.revokeObjectURL(b),o!=="svg"&&p.drawImage(m,0,0,d,h),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},m.onerror=function(_){if(y=null,Gv.revokeObjectURL(b),n(_),!e.promise)return r.emit("error",_)},m.src=b});return e.promise?t:r}tD.exports=kle});var Tx=O((rxe,iD)=>{"use strict";var aD=zr(),nD=xx(),Cle=Et(),tl=Re(),Xv=Ls(),qle=np(),Sle=ip(),Lle=Mc().version,wx={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Dle(e,r){r=r||{};var t,a,n,i;tl.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=tl.getGraphDiv(e),t=tl.extendDeep([],e.data),a=tl.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||tl.validate(r[k],wx[k])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+tl.join2(wx.format.values,", "," or ")+".");var o={};function s(k,M){return tl.coerce(r,o,wx,k,M)}var u=s("format"),f=s("width"),c=s("height"),d=s("scale"),h=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=tl.extendFlat({},a);f?y.width=f:r.width===null&&aD(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&aD(i.height)&&(y.height=i.height);var b=tl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),_=Xv.getRedrawFunc(m);function w(){return new Promise(function(k){setTimeout(k,Xv.getDelay(m._fullLayout))})}function x(){return new Promise(function(k,M){var S=qle(m,u,d),D=m._fullLayout.width,E=m._fullLayout.height;function R(){nD.purge(m),document.body.removeChild(m)}if(u==="full-json"){var N=Cle.graphJson(m,!1,"keepdata","object",!0,!0);return N.version=Lle,N=JSON.stringify(N),R(),k(p?N:Xv.encodeJSON(N))}if(R(),u==="svg")return k(p?S:Xv.encodeSVG(S));var H=document.createElement("canvas");H.id=tl.randstr(),Sle({format:u,width:D,height:E,scale:d,canvas:H,svg:S,promise:!0}).then(k).catch(M)})}function A(k){return p?k.replace(Xv.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){nD.newPlot(m,t,y,b).then(_).then(w).then(x).then(function(S){k(A(S))}).catch(function(S){M(S)})})}iD.exports=Dle});var sD=O((txe,oD)=>{"use strict";var ri=Re(),Ele=Et(),Ple=Uu(),Rle=Qo().dfltConfig,Ci=ri.isPlainObject,Ps=Array.isArray,Ax=ri.isArrayOrTypedArray;oD.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Ple.get(),n=[],i={_context:ri.extendFlat({},Rle)},l,o;Ps(r)?(i.data=ri.extendDeep([],r),l=r):(i.data=[],l=[],n.push(fa("array","data"))),Ci(t)?(i.layout=ri.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(fa("object","layout"))),Ele.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(fa("unused",n,u.concat(c.length)));var b=c.length,_=Array.isArray(y);_&&(b=Math.min(b,y.length));var w,x,A,k,M;if(d.dimensions===2)for(x=0;xc[x].length&&a.push(fa("unused",n,u.concat(x,c[x].length)));var S=c[x].length;for(w=0;w<(_?Math.min(S,y[x].length):S);w++)A=_?y[x][w]:y,k=f[x][w],M=c[x][w],ri.validate(k,A)?M!==k&&M!==+k&&a.push(fa("dynamic",n,u.concat(x,w),k,M)):a.push(fa("value",n,u.concat(x,w),k))}else a.push(fa("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var Ole=Re(),op=Ls();function Yle(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=op.createBlob(e,t),u=op.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),op.revokeObjectURL(u),s=null,l(r);if(Ole.isSafari()){var f=t==="svg"?",":";base64,";return op.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}uD.exports=Yle});var Mx=O((ixe,vD)=>{"use strict";var cD=Re(),Vle=Tx(),Ule=fD(),nxe=Ls();function Gle(e,r){var t;return cD.isPlainObject(e)||(t=cD.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Vle(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),Ule(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}vD.exports=Gle});var yD=O(kx=>{"use strict";var mn=Re(),yn=mn.isPlainObject,dD=Uu(),hD=Et(),Xle=sn(),pD=ot(),mD=Qo().dfltConfig;kx.makeTemplate=function(e){e=mn.isPlainObject(e)?e:mn.getGraphDiv(e),e=mn.extendDeep({_context:mD},{data:e.data,layout:e.layout}),hD.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(h){var p={};Wv(h,p,Zle.bind(null,h));var m=mn.coerce(h,{},Xle,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),Wv(t,a.layout,Wle.bind(null,t)),delete a.layout.template;var n=t.template;if(yn(n)){var i=n.layout,l,o,s,u,f,c;yn(i)&&sp(i,a.layout);var d=n.data;if(yn(d)){for(o in a.data)if(s=d[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lb?l.push({code:"unused",traceType:h,templateCount:y,dataCount:b}):b>y&&l.push({code:"reused",traceType:h,templateCount:y,dataCount:b})}}function _(w,x){for(var A in w)if(A.charAt(0)!=="_"){var k=w[A],M=ti(w,A,x);yn(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:M,templateitemname:k.templateitemname}),_(k,M)):Array.isArray(k)&&Jle(k)&&_(k,M)}}if(_({data:s,layout:o},""),l.length)return l.map($le)};function Jle(e){for(var r=0;r{"use strict";var ea=xx();_t._doPlot=ea._doPlot;_t.newPlot=ea.newPlot;_t.restyle=ea.restyle;_t.relayout=ea.relayout;_t.redraw=ea.redraw;_t.update=ea.update;_t._guiRestyle=ea._guiRestyle;_t._guiRelayout=ea._guiRelayout;_t._guiUpdate=ea._guiUpdate;_t._storeDirectGUIEdit=ea._storeDirectGUIEdit;_t.react=ea.react;_t.extendTraces=ea.extendTraces;_t.prependTraces=ea.prependTraces;_t.addTraces=ea.addTraces;_t.deleteTraces=ea.deleteTraces;_t.moveTraces=ea.moveTraces;_t.purge=ea.purge;_t.addFrames=ea.addFrames;_t.deleteFrames=ea.deleteFrames;_t.animate=ea.animate;_t.setPlotConfig=ea.setPlotConfig;var Kle=zc().getGraphDiv,Qle=b1().eraseActiveShape;_t.deleteActiveShape=function(e){return Qle(Kle(e))};_t.toImage=Tx();_t.validate=sD();_t.downloadImage=Mx();var gD=yD();_t.makeTemplate=gD.makeTemplate;_t.validateTemplate=gD.validateTemplate});var Zv=O((sxe,bD)=>{"use strict";var Cx=Re(),jle=gr();bD.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=jle.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Cx.minRowLength(i);l?o=Math.min(u,Cx.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Cx.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Rs=O((uxe,TD)=>{"use strict";var _D=Re().dateTick0,eoe=Tt(),roe=eoe.ONEWEEK;function wD(e,r){return e%roe===0?_D(r,1):_D(r,0)}TD.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",wD(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",wD(o,t.ycalendar)),n("yperiodalignment"))}}});var kD=O((fxe,MD)=>{"use strict";var AD=["orientation","groupnorm","stackgaps"];MD.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},d=0;d{"use strict";var CD=br(),qD=Tn().hasColorscale,SD=Zu(),toe=Mn();LD.exports=function(r,t,a,n,i,l={}){var o=toe.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),qD(r,"marker")&&SD(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=CD.background:u=CD.defaultLine,i("marker.line.color",u),qD(r,"marker.line")&&SD(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var PD=O((vxe,ED)=>{"use strict";var aoe=Re().isArrayOrTypedArray,noe=Tn().hasColorscale,ioe=Zu();ED.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),noe(r,"line"))ioe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(aoe(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var zD=O((dxe,RD)=>{"use strict";RD.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var FD=O((hxe,ND)=>{"use strict";var loe=Re();ND.exports=function(e,r,t,a,n){n=n||{},a("textposition"),loe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var BD=O((pxe,HD)=>{"use strict";var fp=br(),ID=Re().isArrayOrTypedArray;function ooe(e){for(var r=fp.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var OD=Re(),soe=gr(),uoe=Mi(),foe=I1(),_f=Mn(),coe=Zv(),voe=Rs(),doe=kD(),hoe=DD(),poe=PD(),YD=zD(),moe=FD(),yoe=BD(),goe=Re().coercePattern;VD.exports=function(r,t,a,n){function i(h,p){return OD.coerce(r,t,uoe,h,p)}var l=coe(r,t,n,i);if(l||(t.visible=!1),!!t.visible){voe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=doe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var xoe=Ss().getAxisGroup;GD.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=xoe(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var d=c[f];d?d.traces.push(t):d=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var h=n("offsetgroup")||"",p=d.offsetGroups,m=p[h];t._offsetIndex=0,(i!=="group"||h)&&(m||(m=p[h]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var WD=O((gxe,XD)=>{"use strict";var boe=Re(),_oe=wf(),woe=Mi();XD.exports=function(r,t){var a,n,i,l=t.scattermode;function o(d){return boe.coerce(n._input,n,woe,d)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var JD=O((xxe,ZD)=>{"use strict";var Toe=Re(),Aoe=th();ZD.exports=function(e,r){function t(n,i){return Toe.coerce(e,r,Aoe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var zs=O((bxe,KD)=>{"use strict";var Moe=zr(),$D=Re(),koe=$D.dateTime2ms,cp=$D.incrementMonth,Coe=Tt(),qoe=Coe.ONEAVGMONTH;KD.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(Moe(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",d=r[a+"period0"],h=koe(d,u)||0,p=[],m=[],y=[],b=n.length,_=0;_w;)k=cp(k,-o,u);for(;k<=w;)k=cp(k,o,u);A=cp(k,-o,u)}else{for(x=Math.round((w-h)/l),k=h+x*l;k>w;)k-=l;for(;k<=w;)k+=l;A=k-l}p[_]=f?A:c?k:(A+k)/2,m[_]=A,y[_]=k}return{vals:p,starts:m,ends:y}}});var eE=O((_xe,jD)=>{"use strict";var qx=Tn().hasColorscale,Sx=$c(),QD=Mn();jD.exports=function(r,t){QD.hasLines(t)&&qx(t,"line")&&Sx(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),QD.hasMarkers(t)&&(qx(t,"marker")&&Sx(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),qx(t,"marker.line")&&Sx(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Lx=O((wxe,rE)=>{"use strict";var St=Re();rE.exports=function(r,t){for(var a=0;a{"use strict";var tE=Re();aE.exports=function(r,t){tE.isArrayOrTypedArray(t.selectedpoints)&&tE.tagSelected(r,t)}});var zx=O((Axe,fE)=>{"use strict";var nE=zr(),Ex=Re(),$v=Zr(),iE=zs(),Dx=Tt().BADNUM,Px=Mn(),Soe=eE(),Loe=Lx(),Doe=Jv();function Eoe(e,r){var t=e._fullLayout,a=r._xA=$v.getFromId(e,r.xaxis||"x","x"),n=r._yA=$v.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=iE(r,a,"x",i),s=iE(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,d=new Array(c),h=r.ids,p=Rx(r,t,a,n),m=!1,y,b,_,w,x,A;sE(t,r);var k="x",M="y",S;if(p)Ex.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",S="x"):(k="s",S="y"),x=p.stackgaps==="interpolate";else{var D=oE(r,c);lE(e,r,a,n,u,f,D)}var E=!!r.xperiodalignment,R=!!r.yperiodalignment;for(b=0;bb&&d[w].gap;)w--;for(A=d[w].s,_=d.length-1;_>w;_--)d[_].s=A;for(;b{"use strict";cE.exports=vp;var Poe=Re().distinctVals;function vp(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";dE.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Mf=O((Cxe,yE)=>{"use strict";var ai=zr(),{isArrayOrTypedArray:Ml}=Re(),{BADNUM:Tf}=Tt(),Roe=gr(),Qv=Zr(),{getAxisGroup:zoe}=Ss(),dp=vE(),{TEXTPAD:Noe}=Kv(),{LINE_SPACING:Foe}=ka(),{BR_TAG_ALL:Ioe}=ia();function Hoe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!ai(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*Foe*t+Noe;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function Joe(e,r,t,a){for(var n=Af(a),i=0;i{"use strict";var gE=zx(),xE=Mf().setGroupPositions;function Koe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var joe=Yr(),ME=Tt(),jv=ME.BADNUM,kE=ME.LOG_CLIP,wE=kE+.5,TE=kE-.5,hp=Re(),ese=hp.segmentsIntersect,AE=hp.constrain,Yx=I1();CE.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,d=t.connectGaps,h=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",b=[],_=Yx.minTolerance,w=r.length,x=new Array(w),A=0,k,M,S,D,E,R,N,H,I,Y,G,V,U,B,J,X;function ee(Fe){var ne=r[Fe];if(!ne)return!1;var se=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Le=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(se===jv){if(l&&(se=n.c2p(ne.x,!0)),se===jv)return!1;o&&Le===jv&&(se*=Math.abs(n._m*u*(n._m>0?wE:TE)/(i._m*s*(i._m>0?wE:TE)))),se*=1e3}if(Le===jv){if(o&&(Le=i.c2p(ne.y,!0)),Le===jv)return!1;Le*=1e3}return[se,Le]}function le(Fe,ne,se,Le){var Pe=se-Fe,Qe=Le-ne,cr=.5-Fe,sr=.5-ne,Mr=Pe*Pe+Qe*Qe,Hr=Pe*cr+Qe*sr;if(Hr>0&&Hr1||Math.abs(cr.y-se[0][1])>1)&&(cr=[cr.x,cr.y],Le&&qe(cr,Fe)_e||Fe[1]W)return[AE(Fe[0],be,_e),AE(Fe[1],ge,W)]}function Ie(Fe,ne){if(Fe[0]===ne[0]&&(Fe[0]===be||Fe[0]===_e)||Fe[1]===ne[1]&&(Fe[1]===ge||Fe[1]===W))return!0}function We(Fe,ne){var se=[],Le=Ue(Fe),Pe=Ue(ne);return Le&&Pe&&Ie(Le,Pe)||(Le&&se.push(Le),Pe&&se.push(Pe)),se}function De(Fe,ne,se){return function(Le,Pe){var Qe=Ue(Le),cr=Ue(Pe),sr=[];if(Qe&&cr&&Ie(Qe,cr))return sr;Qe&&sr.push(Qe),cr&&sr.push(cr);var Mr=2*hp.constrain((Le[Fe]+Pe[Fe])/2,ne,se)-((Qe||Le)[Fe]+(cr||Pe)[Fe]);if(Mr){var Hr;Qe&&cr?Hr=Mr>0==Qe[Fe]>cr[Fe]?Qe:cr:Hr=Qe||cr,Hr[Fe]+=Mr}return sr}}var He;p==="linear"||p==="spline"?He=Se:p==="hv"||p==="vh"?He=We:p==="hvh"?He=De(0,be,_e):p==="vhv"&&(He=De(1,ge,W));function Xe(Fe,ne){var se=ne[0]-Fe[0],Le=(ne[1]-Fe[1])/se,Pe=(Fe[1]*ne[0]-ne[1]*Fe[0])/se;return Pe>0?[Le>0?be:_e,W]:[Le>0?_e:be,ge]}function ie(Fe){var ne=Fe[0],se=Fe[1],Le=ne===x[A-1][0],Pe=se===x[A-1][1];if(!(Le&&Pe))if(A>1){var Qe=ne===x[A-2][0],cr=se===x[A-2][1];Le&&(ne===be||ne===_e)&&Qe?cr?A--:x[A-1]=Fe:Pe&&(se===ge||se===W)&&cr?Qe?A--:x[A-1]=Fe:x[A++]=Fe}else x[A++]=Fe}function we(Fe){x[A-1][0]!==Fe[0]&&x[A-1][1]!==Fe[1]&&ie([me,xe]),ie(Fe),ze=null,me=xe=0}var $e=hp.isArrayOrTypedArray(c);function dr(Fe){if(Fe&&f&&(Fe.i=k,Fe.d=r,Fe.trace=a,Fe.marker=$e?c[Fe.i]:c,Fe.backoff=f),fe=Fe[0]/s,ce=Fe[1]/u,Z=Fe[0]_e?_e:0,oe=Fe[1]W?W:0,Z||oe){if(!A)x[A++]=[Z||Fe[0],oe||Fe[1]];else if(ze){var ne=He(ze,Fe);ne.length>1&&(we(ne[0]),x[A++]=ne[1])}else Ee=He(x[A-1],Fe)[0],x[A++]=Ee;var se=x[A-1];Z&&oe&&(se[0]!==Z||se[1]!==oe)?(ze&&(me!==Z&&xe!==oe?ie(me&&xe?Xe(ze,Fe):[me||Z,xe||oe]):me&&xe&&ie([me,xe])),ie([Z,oe])):me-Z&&xe-oe&&ie([Z||me,oe||xe]),ze=Fe,me=Z,xe=oe}else ze&&we(He(ze,Fe)[0]),x[A++]=Fe}for(k=0;kj(R,Ne))break;S=R,U=I[0]*H[0]+I[1]*H[1],U>G?(G=U,D=R,N=!1):U=r.length||!R)break;dr(R),M=R}}ze&&ie([me||ze[0],xe||ze[1]]),b.push(x.slice(0,A))}var ke=p.slice(p.length-1);if(f&&ke!=="h"&&ke!=="v"){for(var Ce=!1,Be=-1,Ze=[],Ve=0;Ve{"use strict";var SE={tonextx:1,tonexty:1,tonext:1};LE.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,d=0,h=-1;for(i=0;i=0?s=h:(s=h=d,d++),s{"use strict";var qi=kr(),rse=gr(),e0=Re(),kf=e0.ensureSingle,PE=e0.identity,Pt=Yr(),Cf=Mn(),tse=qE(),ase=DE(),pp=Y3().tester;RE.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=ase(r,t,a);if(o=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),o.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),o.order(),nse(r,o,t),f){l&&(s=l());var d=qi.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});d.each(function(){n.selectAll("g.trace").each(function(h,p){EE(r,p,t,h,c,this,i)})})}else o.each(function(h,p){EE(r,p,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function nse(e,r,t){r.each(function(a){var n=kf(qi.select(this),"g","fills");Pt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,PE);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=kf(qi.select(this),"path","js-fill")})})}function EE(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;ise(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,d=t.yaxis,h=a[0].trace,p=h.line,m=qi.select(i),y=kf(m,"g","errorbars"),b=kf(m,"g","lines"),_=kf(m,"g","points"),w=kf(m,"g","text");if(rse.getComponentMethod("errorbars","plot")(e,y,t,l),h.visible!==!0)return;f(m).style("opacity",h.opacity);var x,A,k=h.fill.charAt(h.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,S;k==="y"?(M=1,S=d.c2p(0,!0)):k==="x"&&(M=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var D="",E=[],R=h._prevtrace,N=null,H=null;R&&(D=R._prevRevpath||"",A=R._nextFill,E=R._ownPolygons,N=R._fillsegments,H=R._fillElement);var I,Y,G="",V="",U,B,J,X,ee,le,fe=[];h._polygons=[];var ce=[],j=[],qe=e0.noop;if(x=h._ownFill,Cf.hasLines(h)||h.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(U=Pt.steps(p.shape),B=Pt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?U=B=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?Pt.smoothclosed(De.slice(1),p.smoothing):Pt.smoothopen(De,p.smoothing)}:U=B=function(De){return"M"+De.join("L")},J=function(De){return B(De.reverse())},j=tse(a,{xaxis:c,yaxis:d,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:h.fill}),ce=new Array(j.length);var ve=0;for(s=0;s=o[0]&&m.x<=o[1]&&m.y>=s[0]&&m.y<=s[1]}),d=Math.ceil(c.length/f),h=0;n.forEach(function(m,y){var b=m[0].trace;Cf.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";NE.exports={container:"marker",min:"cmin",max:"cmax"}});var IE=O((Pxe,FE)=>{"use strict";var yp=Zr();FE.exports=function(r,t,a){var n={},i={_fullLayout:a},l=yp.getFromTrace(i,t,"x"),o=yp.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=yp.tickText(l,l.c2l(s),!0).text,n.yLabel=yp.tickText(o,o.c2l(u),!0).text,n}});var Xx=O((Rxe,HE)=>{"use strict";var Vx=kr(),qf=Yr(),lse=gr();function ose(e){var r=Vx.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Vx.select(this),n=t.trace||t[0].trace;Ux(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Vx.select(this),n=t.trace||t[0].trace;Gx(a,n,e)}),r.selectAll("g.trace path.js-line").call(qf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(qf.fillGroupStyle,e,!1),lse.getComponentMethod("errorbars","style")(r)}function Ux(e,r,t){qf.pointStyle(e.selectAll("path.point"),r,t)}function Gx(e,r,t){qf.textPointStyle(e.selectAll("text"),r,t)}function sse(e,r,t){var a=r[0].trace;a.selectedpoints?(qf.selectedPointStyle(t.selectAll("path.point"),a),qf.selectedTextStyle(t.selectAll("text"),a)):(Ux(t,a,e),Gx(t,a,e))}HE.exports={style:ose,stylePoints:Ux,styleText:Gx,styleOnSelect:sse}});var OE=O((zxe,BE)=>{"use strict";var Sf=br(),use=Mn();BE.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Sf.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Sf.opacity(i)?i:l&&Sf.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?Sf.opacity(n)<.3?Sf.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Sf.opacity(a)&&use.hasLines(r)&&r.line.width?a:r.fillcolor)}});var UE=O((Nxe,VE)=>{"use strict";var gp=Re(),YE=Wn(),fse=gr(),cse=OE(),Wx=br(),vse=gp.fillText;VE.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],d=l.hoveron||"",h=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,m=!!l.yperiodalignment;if(d.indexOf("points")!==-1){var y=function(V){if(p){var U=o.c2p(V.xStart),B=o.c2p(V.xEnd);return u>=Math.min(U,B)&&u<=Math.max(U,B)?0:1/0}var J=Math.max(3,V.mrc||0),X=1-1/J,ee=Math.abs(o.c2p(V.x)-u);return ee=Math.min(U,B)&&f<=Math.max(U,B)?0:1/0}var J=Math.max(3,V.mrc||0),X=1-1/J,ee=Math.abs(s.c2p(V.y)-f);return eefe!=W>=fe&&(be=qe[j-1][0],_e=qe[j][0],W-ge&&(ve=be+(_e-be)*(fe-ge)/(W-ge),J=Math.min(J,ve),X=Math.max(X,ve)));return J=Math.max(J,0),X=Math.min(X,o._length),{x0:J,x1:X,y0:fe,y1:fe}}if(d.indexOf("fills")!==-1&&l._fillElement){var I=N(l._fillElement)&&!N(l._fillExclusionElement);if(I){var Y=H(l._polygons);Y===null&&(Y={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var G=Wx.defaultLine;return Wx.opacity(l.fillcolor)?G=l.fillcolor:Wx.opacity((l.line||{}).color)&&(G=l.line.color),gp.extendFlat(r,{distance:r.maxHoverDistance,x0:Y.x0,x1:Y.x1,y0:Y.y0,y1:Y.y1,color:G,hovertemplate:!1}),delete r.index,l.text&&!gp.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var WE=O((Fxe,XE)=>{"use strict";var GE=Mn();XE.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,d=!GE.hasMarkers(o)&&!GE.hasText(o);if(d)return[];if(t===!1)for(s=0;s{"use strict";ZE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var jE=O((Hxe,QE)=>{"use strict";var r0=gr().traceIs,Zx=g2();QE.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(dse(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function dse(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=hse(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!r0(i,"cartesian")||r0(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,KE(i,a)){var u=$E(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(KE(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function $E(e){return{v:"x",h:"y"}[e.orientation||"v"]}function KE(e,r){var t=$E(e),a=r0(e,"box-violin"),n=r0(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var rP=O((Bxe,eP)=>{"use strict";var pse=on().isTypedArraySpec;function mse(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||pse(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=mse(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var nP=O((Oxe,aP)=>{"use strict";var tP=In().mix,yse=Hn(),gse=Re();aP.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return gse.coerce2(r,t,n.attributes,S,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=tP(i,n.bgColor,n.blend||yse.lightFraction).toRgbString(),c=l("gridcolor",f),d=l("gridwidth"),h=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!d||!!h);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=tP(t.gridcolor,n.bgColor,67).toRgbString(),y=l("minor.gridcolor",m),b=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!y||!!b||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=l("zerolinelayer"),A=l("zerolinecolor",i),k=l("zerolinewidth"),M=a("zeroline",n.showGrid||!!A||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var bp=O((Yxe,fP)=>{"use strict";var iP=zr(),xse=gr(),t0=Re(),bse=ot(),_se=Vn(),Jx=An(),lP=vh(),oP=dh(),wse=ph(),Tse=mh(),Ase=rP(),Mse=nP(),kse=H2(),sP=Dh(),xp=na().WEEKDAY_PATTERN,Cse=na().HOUR_PATTERN;fP.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",d;if(c==="date"){var h=xse.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(d=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=t0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),sP(t,i),kse(r,t,a,n),Ase(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==Jx.color.dflt?m:o.color,b=s.label||i._dfltTitle[l];if(Tse(r,t,a,c,n),!u)return t;a("title.text",b),t0.coerceFont(a,"title.font",o,{overrideDflt:{size:t0.bigFont(o.size),color:y}}),lP(r,t,a,c);var _=n.hasMinor;if(_&&(bse.newContainer(t,"minor"),lP(r,t,a,c,{isMinor:!0})),wse(r,t,a,c,n),oP(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,oP(r,t,a,n),n.isMinor=w}Mse(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:Jx}),_&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(_se(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:qse}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=uP(i[o]),s){l=xp;break}}var u=a("pattern",l);if(u===xp)for(o=0;o<2;o++)s=uP(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case xp:if(!iP(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case Cse:if(!iP(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Lse=zr(),_p=Re();cP.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,d,h,p,m;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(d=s[o+"side"].split(" ")[0],h=s.domain[o][d==="right"||d==="top"?1:0])),c=c||[0,1],f=f||(Lse(r.position)?"free":i[0]||"free"),d=d||(o==="x"?"bottom":"left"),h=h||0,p=0,m=!1;var y=_p.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=_p.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:d}},"side");if(y==="free"){if(o==="y"){var _=a("autoshift");_&&(h=b==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",h)}a("automargin",m);var w=!1;if(l.length&&(w=_p.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),_p.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var bP=O((Uxe,xP)=>{"use strict";var Ns=Re(),vP=br(),Dse=Yi().isUnifiedHover,Ese=v3(),dP=ot(),Pse=Pu(),hP=An(),Rse=jE(),pP=bp(),zse=Ss(),mP=wp(),Kx=Xt(),al=Kx.id2name,yP=Kx.name2id,Nse=na().AX_ID_PATTERN,gP=gr(),Tp=gP.traceIs,$x=gP.getComponentMethod;function Ap(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}xP.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},d={},h={},p={},m,y;for(m=0;m{"use strict";var Fse=kr(),_P=gr(),Mp=Re(),Dn=Yr(),kp=Zr();wP.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){kp.redrawComponents(r);return}function l(y){var b=y.xaxis,_=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Dn.setTranslate,0,0).call(Dn.setScale,1,1),y.plot.call(Dn.setTranslate,b._offset,_._offset).call(Dn.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Dn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Dn.setTextPointsScale,1,1),w.call(Dn.hideOutsideRangePoints,y)}function o(y,b){var _=y.plotinfo,w=_.xaxis,x=_.yaxis,A=w._length,k=x._length,M=!!y.xr1,S=!!y.yr1,D=[];if(M){var E=Mp.simpleMap(y.xr0,w.r2l),R=Mp.simpleMap(y.xr1,w.r2l),N=E[1]-E[0],H=R[1]-R[0];D[0]=(E[0]*(1-b)+b*R[0]-E[0])/(E[1]-E[0])*A,D[2]=A*(1-b+b*H/N),w.range[0]=w.l2r(E[0]*(1-b)+b*R[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*R[1])}else D[0]=0,D[2]=A;if(S){var I=Mp.simpleMap(y.yr0,x.r2l),Y=Mp.simpleMap(y.yr1,x.r2l),G=I[1]-I[0],V=Y[1]-Y[0];D[1]=(I[1]*(1-b)+b*Y[1]-I[1])/(I[0]-I[1])*k,D[3]=k*(1-b+b*V/G),x.range[0]=w.l2r(I[0]*(1-b)+b*Y[0]),x.range[1]=x.l2r(I[1]*(1-b)+b*Y[1])}else D[1]=0,D[3]=k;kp.drawOne(r,w,{skipTitle:!0}),kp.drawOne(r,x,{skipTitle:!0}),kp.redrawComponents(r,[w._id,x._id]);var U=M?A/D[2]:1,B=S?k/D[3]:1,J=M?D[0]:0,X=S?D[1]:0,ee=M?D[0]/D[2]*A:0,le=S?D[1]/D[3]*k:0,fe=w._offset-ee,ce=x._offset-le;_.clipRect.call(Dn.setTranslate,J,X).call(Dn.setScale,1/U,1/B),_.plot.call(Dn.setTranslate,fe,ce).call(Dn.setScale,U,B),Dn.setPointGroupScale(_.zoomScalePts,1/U,1/B),Dn.setTextPointsScale(_.zoomScaleTxt,1/U,1/B)}var s;n&&(s=n());function u(){for(var y={},b=0;ba.duration?(u(),h=window.cancelAnimationFrame(m)):h=window.requestAnimationFrame(m)}return c=Date.now(),h=window.requestAnimationFrame(m),Promise.resolve()}});var kl=O(Na=>{"use strict";var qp=kr(),AP=gr(),Fs=Re(),Ise=Et(),Hse=Yr(),MP=Sg().getModuleCalcData,po=Xt(),Si=na(),Bse=ss(),$r=Fs.ensureSingle;function Cp(e,r,t){return Fs.ensureSingle(e,r,t,function(a){a.datum(t)})}var Is=Si.zindexSeparator;Na.name="cartesian";Na.attr=["xaxis","yaxis"];Na.idRoot=["x","y"];Na.idRegex=Si.idRegex;Na.attrRegex=Si.attrRegex;Na.attributes=JE();Na.layoutAttributes=An();Na.supplyLayoutDefaults=bP();Na.transitionAxes=TP();Na.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var h=d.id;if(h.indexOf(Is)!==-1)continue;h+=Is+(u+1),d=Fs.extendFlat({},d,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var p=[],m,y=0;y1&&(A+=Is+x),w.push(o+A),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.xaxislayer=$r(a,"g","xaxislayer-above"),r.yaxislayer=$r(a,"g","yaxislayer-above");else{if(!l){var d=$r(a,"g","layer-subplot");r.shapelayer=$r(d,"g","shapelayer"),r.imagelayer=$r(d,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=$r(a,"g","minor-gridlayer"),r.gridlayer=$r(a,"g","gridlayer"),r.zerolinelayer=$r(a,"g","zerolinelayer"));var h=$r(a,"g","layer-between");r.shapelayerBetween=$r(h,"g","shapelayer"),r.imagelayerBetween=$r(h,"g","imagelayer"),$r(a,"path","xlines-below"),$r(a,"path","ylines-below"),r.overlinesBelow=$r(a,"g","overlines-below"),$r(a,"g","xaxislayer-below"),$r(a,"g","yaxislayer-below"),r.overaxesBelow=$r(a,"g","overaxes-below")}r.overplot=$r(a,"g","overplot"),r.plot=$r(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=$r(a,"g","zerolinelayer-above"),l||(r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.overlinesAbove=$r(a,"g","overlines-above"),$r(a,"g","xaxislayer-above"),$r(a,"g","yaxislayer-above"),r.overaxesAbove=$r(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,$r(c.overlinesBelow,"path",m),$r(c.overlinesBelow,"path",y),$r(c.overaxesBelow,"g",m),$r(c.overaxesBelow,"g",y),r.plot=$r(c.overplot,"g",n),$r(c.overlinesAbove,"path",m),$r(c.overlinesAbove,"path",y),$r(c.overaxesAbove,"g",m),$r(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+o).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+o).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}l||(u||(Cp(r.minorGridlayer,"g",r.xaxis._id),Cp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(po.idSort),Cp(r.gridlayer,"g",r.xaxis._id),Cp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(po.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function qP(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=qp.select(this);f.remove(),SP(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var Sp=Mn();LP.exports={hasLines:Sp.hasLines,hasMarkers:Sp.hasMarkers,hasText:Sp.hasText,isBubble:Sp.isBubble,attributes:Mi(),layoutAttributes:th(),supplyDefaults:UD(),crossTraceDefaults:WD(),supplyLayoutDefaults:JD(),calc:zx().calc,crossTraceCalc:_E(),arraysToCalcdata:Lx(),plot:zE(),colorbar:mp(),formatLabels:IE(),style:Xx().style,styleOnSelect:Xx().styleOnSelect,hoverPoints:UE(),selectPoints:WE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:kl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var RP=O((Zxe,PP)=>{"use strict";var Yse=kr(),Vse=br(),EP=ex(),Qx=Re(),Use=Qx.strScale,Gse=Qx.strRotate,Xse=Qx.strTranslate;PP.exports=function(r,t,a){var n=r.node(),i=EP[a.arrowhead||0],l=EP[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,d=l.backoff*s+a.startstandoff,h,p,m,y;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=h.x-p.x,_=h.y-p.y;if(m=Math.atan2(_,b),y=m+Math.PI,c&&d&&c+d>Math.sqrt(b*b+_*_)){I();return}if(c){if(c*c>b*b+_*_){I();return}var w=c*Math.cos(m),x=c*Math.sin(m);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(d){if(d*d>b*b+_*_){I();return}var A=d*Math.cos(m),k=d*Math.sin(m);h.x-=A,h.y-=k,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),S="";if(M{"use strict";var zP=kr(),jx=gr(),Wse=Et(),yo=Re(),eb=yo.strTranslate,n0=Zr(),Hs=br(),Cl=Yr(),NP=Wn(),rb=ia(),tb=io(),a0=wi(),Zse=ot().arrayEditor,Jse=RP();HP.exports={draw:$se,drawOne:FP,drawRaw:IP};function $se(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Pe="right":Pe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Pe]}for(var ge=!1,W=["x","y"],Q=0;Q1)&&(me===oe?(Ne=xe.r2fraction(r["a"+Z]),(Ne<0||Ne>1)&&(ge=!0)):ge=!0),He=xe._offset+xe.r2p(r[Z]),we=.5}else{var ke=dr==="domain";Z==="x"?(ie=r[Z],He=ke?xe._offset+xe._length*ie:He=o.l+o.w*ie):(ie=1-r[Z],He=ke?xe._offset+xe._length*ie:He=o.t+o.h*ie),we=r.showarrow?.5:ie}if(r.showarrow){De.head=He;var Ce=r["a"+Z];if($e=Ee*_e(.5,r.xanchor)-Se*_e(.5,r.yanchor),me===oe){var Be=n0.getRefType(me);Be==="domain"?(Z==="y"&&(Ce=1-Ce),De.tail=xe._offset+xe._length*Ce):Be==="paper"?Z==="y"?(Ce=1-Ce,De.tail=o.t+o.h*Ce):De.tail=o.l+o.w*Ce:De.tail=xe._offset+xe.r2p(Ce),Xe=$e}else De.tail=He+Ce,Xe=$e+Ce;De.text=De.tail+$e;var Ze=l[Z==="x"?"width":"height"];if(oe==="paper"&&(De.head=yo.constrain(De.head,1,Ze-1)),me==="pixel"){var Ve=-Math.max(De.tail-3,De.text),Ge=Math.min(De.tail+3,De.text)-Ze;Ve>0?(De.tail+=Ve,De.text+=Ve):Ge>0&&(De.tail-=Ge,De.text-=Ge)}De.tail+=We,De.head+=We}else $e=Ue*_e(we,Ie),Xe=$e,De.text=He+$e;De.text+=We,$e+=We,Xe+=We,r["_"+Z+"padplus"]=Ue/2+Xe,r["_"+Z+"padminus"]=Ue/2-Xe,r["_"+Z+"size"]=Ue,r["_"+Z+"shift"]=$e}if(ge){M.remove();return}var ir=0,ar=0;if(r.align!=="left"&&(ir=(j-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ar=(qe-ce)*(r.valign==="middle"?.5:1)),ee)X.select("svg").attr({x:E+ir-1,y:E+ar}).call(Cl.setClipUrl,N?m:null,e);else{var er=E+ar-le.top,Fe=E+ir-le.left;G.call(rb.positionText,Fe,er).call(Cl.setClipUrl,N?m:null,e)}H.select("rect").call(Cl.setRect,E,E,j,qe),R.call(Cl.setRect,S/2,S/2,ve-S,be-S),M.call(Cl.setTranslate,Math.round(y.x.text-ve/2),Math.round(y.y.text-be/2)),w.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var ne=function(Le,Pe){_.selectAll(".annotation-arrow-g").remove();var Qe=y.x.head,cr=y.y.head,sr=y.x.tail+Le,Mr=y.y.tail+Pe,Hr=y.x.text+Le,Kr=y.y.text+Pe,ft=yo.rotationXYMatrix(b,Hr,Kr),kt=yo.apply2DTransform(ft),wt=yo.apply2DTransform2(ft),$t=+R.attr("width"),Vt=+R.attr("height"),$a=Hr-.5*$t,_a=$a+$t,va=Kr-.5*Vt,Ka=va+Vt,da=[[$a,va,$a,Ka],[$a,Ka,_a,Ka],[_a,Ka,_a,va],[_a,va,$a,va]].map(wt);if(!da.reduce(function(mt,Ut){return mt^!!yo.segmentsIntersect(Qe,cr,Qe+1e6,cr+1e6,Ut[0],Ut[1],Ut[2],Ut[3])},!1)){da.forEach(function(mt){var Ut=yo.segmentsIntersect(sr,Mr,Qe,cr,mt[0],mt[1],mt[2],mt[3]);Ut&&(sr=Ut.x,Mr=Ut.y)});var ha=r.arrowwidth,vr=r.arrowcolor,ct=r.arrowside,Jr=_.append("g").style({opacity:Hs.opacity(vr)}).classed("annotation-arrow-g",!0),lt=Jr.append("path").attr("d","M"+sr+","+Mr+"L"+Qe+","+cr).style("stroke-width",ha+"px").call(Hs.stroke,Hs.rgb(vr));if(Jse(lt,ct,r),s.annotationPosition&<.node().parentNode&&!a){var pa=Qe,ma=cr;if(r.standoff){var nt=Math.sqrt(Math.pow(Qe-sr,2)+Math.pow(cr-Mr,2));pa+=r.standoff*(sr-Qe)/nt,ma+=r.standoff*(Mr-cr)/nt}var an=Jr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(sr-pa)+","+(Mr-ma),transform:eb(pa,ma)}).style("stroke-width",ha+6+"px").call(Hs.stroke,"rgba(0,0,0,0)").call(Hs.fill,"rgba(0,0,0,0)"),ui,ra;a0.init({element:an.node(),gd:e,prepFn:function(){var mt=Cl.getTranslate(M);ui=mt.x,ra=mt.y,n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0)},moveFn:function(mt,Ut){var Gt=kt(ui,ra),Oo=Gt[0]+mt,Il=Gt[1]+Ut;M.call(Cl.setTranslate,Oo,Il),h("x",mo(n,mt,"x",o,r)),h("y",mo(i,Ut,"y",o,r)),r.axref===r.xref&&h("ax",mo(n,mt,"ax",o,r)),r.ayref===r.yref&&h("ay",mo(i,Ut,"ay",o,r)),Jr.attr("transform",eb(mt,Ut)),w.attr({transform:"rotate("+b+","+Oo+","+Il+")"})},doneFn:function(){jx.call("_guiRelayout",e,p());var mt=document.querySelector(".js-notes-box-panel");mt&&mt.redraw(mt.selectedObj)}})}}};if(r.showarrow&&ne(0,0),x){var se;a0.init({element:M.node(),gd:e,prepFn:function(){se=w.attr("transform")},moveFn:function(Le,Pe){var Qe="pointer";if(r.showarrow)r.axref===r.xref?h("ax",mo(n,Le,"ax",o,r)):h("ax",r.ax+Le),r.ayref===r.yref?h("ay",mo(i,Pe,"ay",o.w,r)):h("ay",r.ay+Pe),ne(Le,Pe);else{if(a)return;var cr,sr;if(n)cr=mo(n,Le,"x",o,r);else{var Mr=r._xsize/o.w,Hr=r.x+(r._xshift-r.xshift)/o.w-Mr/2;cr=a0.align(Hr+Le/o.w,Mr,0,1,r.xanchor)}if(i)sr=mo(i,Pe,"y",o,r);else{var Kr=r._ysize/o.h,ft=r.y-(r._yshift+r.yshift)/o.h-Kr/2;sr=a0.align(ft-Pe/o.h,Kr,0,1,r.yanchor)}h("x",cr),h("y",sr),(!n||!i)&&(Qe=a0.getCursor(n?.5:cr,i?.5:sr,r.xanchor,r.yanchor))}w.attr({transform:eb(Le,Pe)+se}),tb(M,Qe)},clickFn:function(Le,Pe){r.captureevents&&e.emit("plotly_clickannotation",k(Pe))},doneFn:function(){tb(M),jx.call("_guiRelayout",e,p());var Le=document.querySelector(".js-notes-box-panel");Le&&Le.redraw(Le.selectedObj)}})}}s.annotationText?G.call(rb.makeEditable,{delegate:M,gd:e}).call(V).on("edit",function(B){r.text=B,this.call(V),h("text",B),n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0),jx.call("_guiRelayout",e,p())}):G.call(V)}});var GP=O(($xe,UP)=>{"use strict";var BP=Re(),Kse=gr(),OP=ot().arrayEditor;UP.exports={hasClickToShow:Qse,onClick:jse};function Qse(e,r){var t=VP(e,r);return t.on.length>0||t.explicitOff.length>0}function jse(e,r){var t=VP(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var ab=Re(),Lf=br();XP.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=Lf.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),ab.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),d,h;c.indexOf("end")!==-1&&(d=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",d),n("startarrowsize",h)),n("arrowcolor",o?t.bordercolor:Lf.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(Lf.opacity(i)?Lf.rgb(i):Lf.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||Lf.contrast(y)),_=ab.extendFlat({},m.font);_.color||(_.color=b),ab.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var ZP=O((Qxe,WP)=>{"use strict";var ib=Re(),Bs=Zr(),eue=Vn(),rue=nb(),tue=gf();WP.exports=function(r,t){eue(r,t,{name:"annotations",handleItemDefaults:aue})};function aue(e,r,t){function a(w,x){return ib.coerce(e,r,tue,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){rue(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],d=Bs.coerceRef(e,r,u,c,"","paper");if(d!=="paper"){var h=Bs.getFromId(u,d);h._annIndices.push(r._index)}if(Bs.coercePosition(r,u,a,d,c,.5),l){var p="a"+c,m=Bs.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==d&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Bs.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(ib.noneOrAll(e,r,["x","y"]),l&&ib.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:Bs.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:Bs.cleanPosition(_,u,r.yref)}}}});var KP=O((jxe,$P)=>{"use strict";var lb=Re(),Os=Zr(),nue=Lp().draw;$P.exports=function(r){var t=r._fullLayout,a=lb.filterVisible(t.annotations);if(a.length&&r._fullData.length)return lb.syncOrAsync([nue,iue],r)};function iue(e){var r=e._fullLayout;lb.filterVisible(r.annotations).forEach(function(t){var a=Os.getFromId(e,t.xref),n=Os.getFromId(e,t.yref),i=Os.getRefType(t.xref),l=Os.getRefType(t.yref);t._extremes={},i==="range"&&JP(t,a),l==="range"&&JP(t,n)})}function JP(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,d=c+f,h=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,b;if(o===l){var _=Os.findExtremes(r,[r.r2c(n)],{ppadplus:d,ppadminus:h}),w=Os.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});b={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else m=i?m+i:m,y=i?y-i:y,b=Os.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,d,m),ppadminus:Math.max(u,h,y)});e._extremes[t]=b}});var jP=O((ebe,QP)=>{"use strict";var lue=zr(),oue=kd();QP.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(h){var p=u[h],m=null;i?m=oue(p,t.range):m=Math.pow(10,p),lue(m)||(m=null),n(f+h,m)}for(var d=0;d{"use strict";var ob=Lp(),eR=GP();rR.exports={moduleType:"component",name:"annotations",layoutAttributes:gf(),supplyLayoutDefaults:ZP(),includeBasePlot:Fv()("annotations"),calcAutorange:KP(),draw:ob.draw,drawOne:ob.drawOne,drawRaw:ob.drawRaw,hasClickToShow:eR.hasClickToShow,onClick:eR.onClick,convertCoords:jP()}});var Dp=O((tbe,aR)=>{"use strict";var ht=gf(),sue=pi().overrideAll,uue=ot().templatedArray;aR.exports=sue(uue("annotation",{visible:ht.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ht.xanchor,xshift:ht.xshift,yanchor:ht.yanchor,yshift:ht.yshift,text:ht.text,textangle:ht.textangle,font:ht.font,width:ht.width,height:ht.height,opacity:ht.opacity,align:ht.align,valign:ht.valign,bgcolor:ht.bgcolor,bordercolor:ht.bordercolor,borderpad:ht.borderpad,borderwidth:ht.borderwidth,showarrow:ht.showarrow,arrowcolor:ht.arrowcolor,arrowhead:ht.arrowhead,startarrowhead:ht.startarrowhead,arrowside:ht.arrowside,arrowsize:ht.arrowsize,startarrowsize:ht.startarrowsize,arrowwidth:ht.arrowwidth,standoff:ht.standoff,startstandoff:ht.startstandoff,hovertext:ht.hovertext,hoverlabel:ht.hoverlabel,captureevents:ht.captureevents}),"calc","from-root")});var iR=O((abe,nR)=>{"use strict";var sb=Re(),fue=Zr(),cue=Vn(),vue=nb(),due=Dp();nR.exports=function(r,t,a){cue(r,t,{name:"annotations",handleItemDefaults:hue,fullLayout:a.fullLayout})};function hue(e,r,t,a){function n(o,s){return sb.coerce(e,r,due,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],fue.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(vue(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),sb.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),sb.noneOrAll(e,r,["ax","ay"])))}});var uR=O((nbe,sR)=>{"use strict";var lR=Re(),oR=Zr();sR.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function ub(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function mue(e,r){var t=ub(e.projection,ub(e.view,ub(e.model,[r[0],r[1],r[2],1])));return t}fR.exports=mue});var dR=O((lbe,vR)=>{"use strict";var yue=Lp().drawRaw,gue=cR(),xue=["x","y","z"];vR.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=gue(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),yue(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var mR=O((obe,pR)=>{"use strict";var bue=gr(),hR=Re();pR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Dp()}}},layoutAttributes:Dp(),handleDefaults:iR(),includeBasePlot:_ue,convert:uR(),draw:dR()};function _ue(e,r){var t=bue.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var sbe=na(),yR=ta(),gR=Mi().line,wue=mi().dash,Li=yt().extendFlat,Tue=ot().templatedArray,ube=zv(),Df=sn(),xR=gf(),{shapeTexttemplateAttrs:Aue,templatefallbackAttrs:Mue}=_n(),kue=zd();bR.exports=Tue("shape",{visible:Li({},Df.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Li({},Df.legend,{editType:"calc+arraydraw"}),legendgroup:Li({},Df.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Li({},Df.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:yR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Li({},Df.legendrank,{editType:"calc+arraydraw"}),legendwidth:Li({},Df.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Li({},xR.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Li({},xR.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Li({},gR.color,{editType:"arraydraw"}),width:Li({},gR.width,{editType:"calc+arraydraw"}),dash:Li({},wue,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Aue({},{keys:Object.keys(kue)}),texttemplatefallback:Mue({editType:"arraydraw"}),font:yR({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var wR=O((cbe,_R)=>{"use strict";var Ef=Re(),En=Zr(),Cue=Vn(),que=fb(),i0=fo();_R.exports=function(r,t){Cue(r,t,{name:"shapes",handleItemDefaults:Lue})};function Sue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Lue(e,r,t){function a(w,x){return Ef.coerce(e,r,que,w,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),Ef.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),d=a("ysizemode");let h=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var x=w+"anchor",A=w==="x"?c:d,k={_fullLayout:t},M,S,D,E;let R=w+"ref",N=e[R];if(Array.isArray(N)&&N.length>0){let H=i0.countDefiningCoords(s,l,w);E=En.coerceRefArray(e,r,k,w,void 0,"paper",H),r["_"+w+"refArray"]=!0}else E=En.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(H){En.getRefType(H)==="range"&&(M=En.getFromId(k,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let I=E[H];En.getRefType(I)==="range"?(M=En.getFromId(k,I),S=i0.shapePositionToRange(M),D=i0.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(w+H+"shift")):S=D=Ef.identity;let G=w+H,V=e[G];if(e[G]=S(e[G],!0),A==="pixel"?a(G,p[H]):En.coercePosition(r,k,a,I,G,h[H]),r[G]=D(r[G]),e[G]=V,H===0&&A==="pixel"){let U=e[x];e[x]=S(e[x],!0),En.coercePosition(r,k,a,I,x,.25),r[x]=D(r[x]),e[x]=U}});else{if(En.getRefType(E)==="range"?(M=En.getFromId(k,E),M._shapeIndices.push(r._index),D=i0.rangeToShapePosition(M),S=i0.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):S=D=Ef.identity,u){let I=w+"0",Y=w+"1",G=e[I],V=e[Y];e[I]=S(e[I],!0),e[Y]=S(e[Y],!0),A==="pixel"?(a(I,p[0]),a(Y,p[1])):(En.coercePosition(r,k,a,E,I,h[0]),En.coercePosition(r,k,a,E,Y,h[1])),r[I]=D(r[I]),r[Y]=D(r[Y]),e[I]=G,e[Y]=V}if(A==="pixel"){let I=e[x];e[x]=S(e[x],!0),En.coercePosition(r,k,a,E,x,.25),r[x]=D(r[x]),e[x]=I}}}),u&&Ef.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,b;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var _=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Sue(m,_)),a("label.padding"),Ef.coerceFont(a,"label.font",t.font)}}});var MR=O((vbe,AR)=>{"use strict";var Due=br(),TR=Re();function Eue(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}AR.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),TR.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Due.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Eue(l,u)),a("newshape.label.padding"),TR.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var ER=O((dbe,DR)=>{"use strict";var cb=Re(),ni=Zr(),nl=mv(),vb=fo();DR.exports=function(r){var t=r._fullLayout,a=cb.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=ni.getFromId(r,c),i._extremes[l._id]=ni.findExtremes(l,d,CR(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=ni.getFromId(r,i.xref),o=SR(l,i,nl.paramIsX),o&&(i._extremes[l._id]=ni.findExtremes(l,o,CR(i))));if(u==="array"){let f=kR(r,i,"y");Object.entries(f).forEach(([c,d])=>{l=ni.getFromId(r,c),i._extremes[l._id]=ni.findExtremes(l,d,qR(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=ni.getFromId(r,i.yref),o=SR(l,i,nl.paramIsY),o&&(i._extremes[l._id]=ni.findExtremes(l,o,qR(i))))}};function kR(e,r,t){let a=r[t+"ref"],n=t==="x"?nl.paramIsX:nl.paramIsY;function i(c,d){c==="paper"||ni.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(d))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(nl.segmentRE)||[];for(var o=0,s=0;sp&&(i(a[o],m[p]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in l){let d=ni.getFromId(e,c);if(d){var f=d.type==="category"||d.type==="multicategory"?d.r2c:d.d2c;d.type==="date"&&(f=vb.decodeDate(f)),u[d._id]=l[c].map(f)}}return u}function CR(e){return LR(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function qR(e){return LR(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function LR(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?vb.extractPathCoords(n,i?nl.paramIsY:nl.paramIsX):[t,a],u=cb.aggNums(Math.max,null,s),f=cb.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+l:l,d=u>0?u+l:l;return{ppad:l,ppadplus:o?c:d,ppadminus:o?d:c}}else return{ppad:l}}function SR(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,d=-1/0,h=r.path.match(nl.segmentRE),p,m,y,b,_;for(e.type==="date"&&(u=vb.decodeDate(u)),p=0;pd&&(d=_)));if(d>=c)return[c,d]}}});var zR=O((hbe,RR)=>{"use strict";var PR=b1();RR.exports={moduleType:"component",name:"shapes",layoutAttributes:fb(),supplyLayoutDefaults:wR(),supplyDrawNewShapeDefaults:MR(),includeBasePlot:Fv()("shapes"),calcAutorange:ER(),draw:PR.draw,drawOne:PR.drawOne}});var db=O((mbe,FR)=>{"use strict";var NR=na(),Pue=ot().templatedArray,pbe=zv();FR.exports=Pue("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",NR.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",NR.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var HR=O((ybe,IR)=>{"use strict";var Rue=Re(),hb=Zr(),zue=Vn(),Nue=db(),Fue="images";IR.exports=function(r,t){var a={name:Fue,handleItemDefaults:Iue};zue(r,t,a)};function Iue(e,r,t){function a(d,h){return Rue.coerce(e,r,Nue,d,h)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=hb.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=hb.getFromId(l,f);c._imgIndices.push(r._index)}hb.coercePosition(r,l,a,f,u,0)}return r}});var VR=O((gbe,YR)=>{"use strict";var BR=kr(),Hue=Yr(),Pf=Zr(),OR=Xt(),Bue=ss();YR.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var UR=zr(),Oue=kd();GR.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";WR.exports={moduleType:"component",name:"images",layoutAttributes:db(),supplyLayoutDefaults:HR(),includeBasePlot:Fv()("images"),draw:VR(),convertCoords:XR()}});var Ep=O((_be,JR)=>{"use strict";JR.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var pb=O((wbe,KR)=>{"use strict";var Yue=ta(),Vue=Hn(),Uue=yt().extendFlat,Gue=pi().overrideAll,Xue=Nd(),$R=ot().templatedArray,Wue=$R("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});KR.exports=Gue($R("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Wue,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Uue(Xue({editType:"arraydraw"}),{}),font:Yue({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Vue.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var rz=O((Tbe,ez)=>{"use strict";var Pp=Re(),QR=Vn(),jR=pb(),Zue=Ep(),Jue=Zue.name,$ue=jR.buttons;ez.exports=function(r,t){var a={name:Jue,handleItemDefaults:Kue};QR(r,t,a)};function Kue(e,r,t){function a(l,o){return Pp.coerce(e,r,jR,l,o)}var n=QR(e,r,{name:"buttons",handleItemDefaults:Que}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Pp.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Pp.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Que(e,r){function t(n,i){return Pp.coerce(e,r,$ue,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var nz=O((Abe,az)=>{"use strict";az.exports=Mt;var Di=kr(),tz=br(),Rf=Yr(),Rp=Re();function Mt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Mt.barWidth=2;Mt.barLength=20;Mt.barRadius=2;Mt.barPad=1;Mt.barColor="#808BA4";Mt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,d=c==="down",h=c==="left",p=c==="right",m=c==="up",y=s,b=f,_,w,x,A;!d&&!h&&!p&&!m&&(this.position.direction="down",d=!0);var k=d||m;k?(_=o,w=_+y,d?(x=u,A=Math.min(x+b,l),b=A-x):(A=u+b,x=Math.max(A-b,0),b=A-x)):(x=u,A=x+b,h?(w=o+y,_=Math.max(w-y,0),y=w-_):(_=o,w=Math.min(_+y,i),y=w-_)),this._box={l:_,t:x,w:y,h:b};var M=s>y,S=Mt.barLength+2*Mt.barPad,D=Mt.barWidth+2*Mt.barPad,E=o,R=u+f;R+D>l&&(R=l-D);var N=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(tz.fill,Mt.barColor),M?(this.hbar=N.attr({rx:Mt.barRadius,ry:Mt.barRadius,x:E,y:R,width:S,height:D}),this._hbarXMin=E+S/2,this._hbarTranslateMax=y-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=f>b,I=Mt.barWidth+2*Mt.barPad,Y=Mt.barLength+2*Mt.barPad,G=o+s,V=u;G+I>i&&(G=i-I);var U=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(tz.fill,Mt.barColor),H?(this.vbar=U.attr({rx:Mt.barRadius,ry:Mt.barRadius,x:G,y:V,width:I,height:Y}),this._vbarYMin=V+Y/2,this._vbarTranslateMax=b-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var B=this.id,J=_-.5,X=H?w+I+.5:w+.5,ee=x-.5,le=M?A+D+.5:A+.5,fe=n._topdefs.selectAll("#"+B).data(M||H?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",B).append("rect"),M||H?(this._clipRect=fe.select("rect").attr({x:Math.floor(J),y:Math.floor(ee),width:Math.ceil(X)-Math.floor(J),height:Math.ceil(le)-Math.floor(ee)}),this.container.call(Rf.setClipUrl,B,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Rf.setClipUrl,null),delete this._clipRect),M||H){var ce=Di.behavior.drag().on("dragstart",function(){Di.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ce);var j=Di.behavior.drag().on("dragstart",function(){Di.event.sourceEvent.preventDefault(),Di.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(j),H&&this.vbar.on(".drag",null).call(j)}this.setTranslate(t,a)};Mt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Rf.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Mt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Di.event.dx),this.vbar&&(t-=Di.event.dy),this.setTranslate(r,t)};Mt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Di.event.deltaY),this.vbar&&(t+=Di.event.deltaY),this.setTranslate(r,t)};Mt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Rp.constrain(Di.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Rp.constrain(Di.event.y,s,u),c=(f-s)/(u-s),d=this.position.h-this._box.h;t=c*d}this.setTranslate(r,t)};Mt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Rp.constrain(r||0,0,a),t=Rp.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Rf.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Rf.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Rf.setTranslate,r,t+l*this._vbarTranslateMax)}}});var hz=O((Mbe,dz)=>{"use strict";var zf=kr(),l0=Et(),o0=br(),Nf=Yr(),Pn=Re(),zp=ia(),jue=ot().arrayEditor,lz=ka().LINE_SPACING,wr=Ep(),efe=nz();dz.exports=function(r){var t=r._fullLayout,a=Pn.filterVisible(t[wr.name]);function n(d){l0.autoMargin(r,cz(d))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){zf.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+wr.headerGroupClassName).data(a,rfe);l.enter().append("g").classed(wr.headerGroupClassName,!0);for(var o=Pn.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(d){d.style("pointer-events","all")}),s=0;s{"use strict";var sfe=Ep();pz.exports={moduleType:"component",name:sfe.name,layoutAttributes:pb(),supplyLayoutDefaults:rz(),draw:hz()}});var u0=O((Cbe,yz)=>{"use strict";yz.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var xb=O((qbe,bz)=>{"use strict";var gz=ta(),ufe=Nd(),ffe=yt().extendDeepAll,cfe=pi().overrideAll,vfe=Nc(),xz=ot().templatedArray,Ys=u0(),dfe=xz("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});bz.exports=cfe(xz("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:dfe,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:ffe(ufe({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:vfe.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:gz({})},font:gz({}),activebgcolor:{valType:"color",dflt:Ys.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ys.railBgColor},bordercolor:{valType:"color",dflt:Ys.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ys.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ys.tickLength},tickcolor:{valType:"color",dflt:Ys.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ys.minorTickLength}}),"arraydraw","from-root")});var Az=O((Sbe,Tz)=>{"use strict";var Ff=Re(),_z=Vn(),wz=xb(),hfe=u0(),pfe=hfe.name,mfe=wz.steps;Tz.exports=function(r,t){_z(r,t,{name:pfe,handleItemDefaults:yfe})};function yfe(e,r,t){function a(c,d){return Ff.coerce(e,r,wz,c,d)}for(var n=_z(e,r,{name:"steps",handleItemDefaults:gfe}),i=0,l=0;l{"use strict";var Ei=kr(),Np=Et(),go=br(),Pi=Yr(),Rn=Re(),xfe=Rn.strTranslate,f0=ia(),bfe=ot().arrayEditor,Pr=u0(),wb=ka(),Cz=wb.LINE_SPACING,bb=wb.FROM_TL,_b=wb.FROM_BR;Pz.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=_fe(a,r),i=a._infolayer.selectAll("g."+Pr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Pr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Np.autoMargin(r,qz(f))}if(i.exit().each(function(){Ei.select(this).selectAll("g."+Pr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Pr.groupClassName).data(n,wfe);o.enter().append("g").classed(Pr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",xfe(l-Pr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function Tb(e,r){var t=e._dims;return t.inputAreaStart+Pr.stepInset+(t.inputAreaLength-2*Pr.stepInset)*Math.min(1,Math.max(0,r))}function kz(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Pr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Pr.stepInset-2*t.inputAreaStart)))}function Sfe(e,r,t){var a=t._dims,n=Rn.ensureSingle(e,"rect",Pr.railTouchRectClass,function(i){i.call(Dz,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Pr.tickOffset+t.ticklen+a.labelHeight)}).call(go.fill,t.bgcolor).attr("opacity",0),Pi.setTranslate(n,0,a.currentValueTotalHeight)}function Lfe(e,r){var t=r._dims,a=t.inputAreaLength-Pr.railInset*2,n=Rn.ensureSingle(e,"rect",Pr.railRectClass);n.attr({width:a,height:Pr.railWidth,rx:Pr.railRadius,ry:Pr.railRadius,"shape-rendering":"crispEdges"}).call(go.stroke,r.bordercolor).call(go.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Pi.setTranslate(n,Pr.railInset,(t.inputAreaWidth-Pr.railWidth)*.5+t.currentValueTotalHeight)}});var Nz=O((Dbe,zz)=>{"use strict";var Dfe=u0();zz.exports={moduleType:"component",name:Dfe.name,layoutAttributes:xb(),supplyLayoutDefaults:Az(),draw:Rz()}});var Ip=O((Ebe,Iz)=>{"use strict";var Fz=Hn();Iz.exports={bgcolor:{valType:"color",dflt:Fz.background,editType:"plot"},bordercolor:{valType:"color",dflt:Fz.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var Ab=O((Pbe,Hz)=>{"use strict";Hz.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Hp=O((Rbe,Bz)=>{"use strict";Bz.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Vz=O(Op=>{"use strict";var Efe=Xt(),Pfe=ia(),Oz=Hp(),Rfe=ka().LINE_SPACING,Bp=Oz.name;function Yz(e){var r=e&&e[Bp];return r&&r.visible}Op.isVisible=Yz;Op.makeData=function(e){for(var r=Efe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Yp=Re(),Uz=ot(),Gz=Xt(),zfe=Ip(),Nfe=Ab();Xz.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Yp.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=Uz.newContainer(i,"rangeslider");function s(A,k){return Yp.coerce(l,o,zfe,A,k)}var u,f;function c(A,k){return Yp.coerce(u,f,Nfe,A,k)}var d=s("visible");if(d){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var h=t._subplots;if(h)for(var p=h.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===Gz.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=Yp.simpleMap(p,Gz.id2name),y=0;y{"use strict";var Ffe=Xt().list,Ife=rv().getAutoRange,Hfe=Hp();Zz.exports=function(r){for(var t=Ffe(r,"x",!0),a=0;a{"use strict";var Vp=kr(),Bfe=gr(),Ofe=Et(),Rt=Re(),Up=Rt.strTranslate,Kz=Yr(),xo=br(),Yfe=jc(),Vfe=kl(),Mb=Xt(),Ufe=wi(),Gfe=io(),Ir=Hp();Qz.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=U.max)G=R[V+1];else if(Y=U.pmax)G=R[V+1];else if(Y0?e.touches[0].clientX:0}function Xfe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Ir.slideBoxClassName).node(),i=e.select("rect."+Ir.grabAreaMinClassName).node(),l=e.select("rect."+Ir.grabAreaMaxClassName).node();function o(){var s=Vp.event,u=s.target,f=$z(s),c=f-e.node().getBoundingClientRect().left,d=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=Ufe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var _=$z(b),w=+_-f,x,A,k;switch(u){case n:if(k="ew-resize",d+w>t._length||h+w<0)return;x=d+w,A=h+w;break;case i:if(k="col-resize",d+w>t._length)return;x=d+w,A=h;break;case l:if(k="col-resize",h+w<0)return;x=d,A=h+w;break;default:k="ew-resize",x=c,A=c+w;break}if(A{"use strict";var tce=Re(),ace=Ip(),nce=Ab(),kb=Vz();eN.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:tce.extendFlat({},ace,{yaxis:nce})}}},layoutAttributes:Ip(),handleDefaults:Wz(),calcAutorange:Jz(),draw:jz(),isVisible:kb.isVisible,makeData:kb.makeData,autoMarginOpts:kb.autoMarginOpts}});var Gp=O((Bbe,aN)=>{"use strict";var ice=ta(),tN=Hn(),lce=ot().templatedArray,oce=lce("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});aN.exports={visible:{valType:"boolean",editType:"plot"},buttons:oce,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:ice({editType:"plot"}),bgcolor:{valType:"color",dflt:tN.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:tN.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Cb=O((Obe,nN)=>{"use strict";nN.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var oN=O((Ybe,lN)=>{"use strict";var Xp=Re(),sce=br(),uce=ot(),fce=Vn(),iN=Gp(),qb=Cb();lN.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=uce.newContainer(t,"rangeselector");function s(h,p){return Xp.coerce(l,o,iN,h,p)}var u=fce(l,o,{name:"buttons",handleItemDefaults:cce,calendar:i}),f=s("visible",u.length>0);if(f){var c=vce(t,a,n);s("x",c[0]),s("y",c[1]),Xp.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Xp.coerceFont(s,"font",a.font);var d=s("bgcolor");s("activecolor",sce.contrast(d,qb.lightAmount,qb.darkAmount)),s("bordercolor"),s("borderwidth")}};function cce(e,r,t,a){var n=a.calendar;function i(s,u){return Xp.coerce(e,r,iN.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function vce(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var dce=zy(),hce=Re().titleCase;sN.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=pce(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function pce(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=dce["utc"+hce(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var yN=O((Ube,mN)=>{"use strict";var Zp=kr(),mce=gr(),yce=Et(),fN=br(),pN=Yr(),ql=Re(),cN=ql.strTranslate,Wp=ia(),gce=Xt(),Db=ka(),vN=Db.LINE_SPACING,dN=Db.FROM_TL,hN=Db.FROM_BR,Lb=Cb(),xce=uN();mN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(bce(r),_ce);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Zp.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(ql.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Zp.select(this),c=xce(l,u);u._isActive=wce(l,u,c),f.call(Sb,o,u),f.call(Ace,o,u,r),f.on("click",function(){r._dragged||mce.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(Sb,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(Sb,o,u)})}),kce(r,s,o,l._name,i)})};function bce(e){for(var r=gce.list(e,"x",!0),t=[],a=0;a{"use strict";gN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Gp()}}},layoutAttributes:Gp(),handleDefaults:oN(),draw:yN()}});var bo=O(Eb=>{"use strict";var bN=yt().extendFlat;Eb.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:bN({},t,{}),y:bN({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};Eb.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Cce=Re(),qce=Su().counter,Sce=bo().attributes,_N=na().idRegex,Lce=ot(),Pb={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[qce("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[_N.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[_N.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Sce({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Jp(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Dce(e,r){var t=e.grid||{},a=Jp(r,t,"x"),n=Jp(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=Lce.newContainer(r,"grid");function d(k,M){return Cce.coerce(t,c,Pb,k,M)}var h=d("rows",u),p=d("columns",f);if(!(h*p>1)){delete r.grid;return}if(!i&&!l&&!o){var m=d("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=d("roworder"),b=y==="top to bottom",_=i?.2:.1,w=i?.3:.1,x,A;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,A=r._splomGridDflt.yside),c._domains={x:wN("x",d,_,x,p),y:wN("y",d,w,A,h,b)}}function wN(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),d=0;d{"use strict";kN.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var SN=O((Jbe,qN)=>{"use strict";var CN=zr(),Pce=gr(),Rce=Re(),zce=ot(),Nce=Rb();qN.exports=function(e,r,t,a){var n="error_"+a.axis,i=zce.newContainer(r,n),l=e[n]||{};function o(p,m){return Rce.coerce(l,i,Nce,p,m)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var d="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&o(d,!(l.color||CN(l.thickness)||CN(l.width)))}(!a.inherit||!i[d])&&(o("color",t),o("thickness"),o("width",Pce.traceIs(r,"gl3d")?0:4))}}});var zb=O(($be,DN)=>{"use strict";DN.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],d=+i[f];return!isNaN(c)||!isNaN(d)?[d||0,c||0]:[NaN,NaN]}}else{var l=LN(t,r.value),o=LN(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function LN(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var RN=O((Kbe,PN)=>{"use strict";var Nb=zr(),Fce=gr(),Fb=Zr(),Ice=Re(),Hce=zb();PN.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var zN=kr(),_o=zr(),Bce=Yr(),Oce=Mn();NN.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,d=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var m=Oce.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(f=[]);var y=zN.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){d.visible||y.selectAll("path.xerror").remove(),h.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),Bce.setClipUrl(y,a.layerClipId,r),y.each(function(_){var w=zN.select(this),x=Yce(_,l,o);if(!(m&&!_.vis)){var A,k=w.select("path.yerror");if(h.visible&&_o(x.x)&&_o(x.yh)&&_o(x.ys)){var M=h.width;A="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(A+="m-"+M+",0h"+2*M),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",A)}else k.remove();var S=w.select("path.xerror");if(d.visible&&_o(x.y)&&_o(x.xh)&&_o(x.xs)){var D=(d.copy_ystyle?h:d).width;A="M"+x.xh+","+(x.y-D)+"v"+2*D+"m0,-"+D+"H"+x.xs,x.noXS||(A+="m0,-"+D+"v"+2*D),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",A)}else S.remove()}})}})};function Yce(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),_o(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),_o(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var BN=O((jbe,HN)=>{"use strict";var Vce=kr(),IN=br();HN.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Vce.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(IN.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(IN.stroke,i.color)})}});var VN=O((e5e,YN)=>{"use strict";var c0=Re(),ON=pi().overrideAll,v0=Rb(),Vs={error_x:c0.extendFlat({},v0),error_y:c0.extendFlat({},v0)};delete Vs.error_x.copy_zstyle;delete Vs.error_y.copy_zstyle;delete Vs.error_y.copy_ystyle;var d0={error_x:c0.extendFlat({},v0),error_y:c0.extendFlat({},v0),error_z:c0.extendFlat({},v0)};delete d0.error_x.copy_ystyle;delete d0.error_y.copy_ystyle;delete d0.error_z.copy_ystyle;delete d0.error_z.copy_zstyle;YN.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Vs,bar:Vs,histogram:Vs,scatter3d:ON(d0,"calc","nested"),scattergl:ON(Vs,"calc","nested")}},supplyDefaults:SN(),calc:RN(),makeComputeError:zb(),plot:FN(),style:BN(),hoverInfo:Uce};function Uce(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var GN=O((r5e,UN)=>{"use strict";UN.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var QN=O((t5e,KN)=>{"use strict";var wo=kr(),Ib=In(),Kp=Et(),XN=gr(),Sl=Zr(),$p=wi(),ii=Re(),zi=ii.strTranslate,$N=yt().extendFlat,Hb=io(),Ri=Yr(),Bb=br(),Gce=jc(),Xce=ia(),Wce=Tn().flipScale,Zce=bp(),Jce=wp(),$ce=An(),Ob=ka(),WN=Ob.LINE_SPACING,ZN=Ob.FROM_TL,JN=Ob.FROM_BR,At=GN().cn;function Kce(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+At.colorbar).data(Qce(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(At.colorbar,!0),t.each(function(a){var n=wo.select(this);ii.ensureSingle(n,"rect",At.cbbg),ii.ensureSingle(n,"g",At.cbfills),ii.ensureSingle(n,"g",At.cblines),ii.ensureSingle(n,"g",At.cbaxis,function(l){l.classed(At.crisp,!0)}),ii.ensureSingle(n,"g",At.cbtitleunshift,function(l){l.append("g").classed(At.cbtitle,!0)}),ii.ensureSingle(n,"rect",At.cboutline);var i=jce(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&eve(n,a,e)}),t.exit().each(function(a){Kp.autoMargin(e,a._id)}).remove(),t.order()}function Qce(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return $N(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?Wce(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(W)/Math.LN10));_e*=Q*ii.roundUp(W/Q,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ve.tick0=0)}ve.dtick=_e}ve.domain=a?[j+p/x.h,j+B-p/x.h]:[j+h/x.w,j+B-h/x.w],ve.setScale(),e.attr("transform",zi(Math.round(x.l),Math.round(x.t)));var Z=e.select("."+At.cbtitleunshift).attr("transform",zi(-Math.round(x.l),-Math.round(x.t))),oe=ve.ticklabelposition,me=ve.title.font.size,xe=e.select("."+At.cbaxis),ze,Ee=0,Se=0;function Ue(Xe,ie){var we={propContainer:ve,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+At.cbtitle)},$e=Xe.charAt(0)==="h"?Xe.slice(1):"h"+Xe;e.selectAll("."+$e+",."+$e+"-math-group").remove(),Gce.draw(t,Xe,$N(we,ie||{}))}function Ie(){if(a&&be||!a&&!be){var Xe,ie;S==="top"&&(Xe=h+x.l+J*m,ie=p+x.t+X*(1-j-B)+3+me*.75),S==="bottom"&&(Xe=h+x.l+J*m,ie=p+x.t+X*(1-j)-3-me*.25),S==="right"&&(ie=p+x.t+X*y+3+me*.75,Xe=h+x.l+J*j),Ue(ve._id+"title",{attributes:{x:Xe,y:ie,"text-anchor":a?"start":"middle"}})}}function We(){if(a&&!be||!a&&be){var Xe=ve.position||0,ie=ve._offset+ve._length/2,we,$e;if(S==="right")$e=ie,we=x.l+J*Xe+10+me*(ve.showticklabels?1:.5);else if(we=ie,S==="bottom"&&($e=x.t+X*Xe+10+(oe.indexOf("inside")===-1?ve.tickfont.size:0)+(ve.ticks!=="inside"&&r.ticklen||0)),S==="top"){var dr=M.text.split("
").length;$e=x.t+X*Xe+10-G-WN*me*dr}Ue((a?"h":"v")+ve._id+"title",{avoid:{selection:wo.select(t).selectAll("g."+ve._id+"tick"),side:S,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:we,y:$e,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!be||a&&be){var Xe=e.select("."+At.cbtitle),ie=Xe.select("text"),we=[-s/2,s/2],$e=Xe.select(".h"+ve._id+"title-math-group").node(),dr=15.6;ie.node()&&(dr=parseInt(ie.node().style.fontSize,10)*WN);var Ne;if($e?(Ne=Ri.bBox($e),Se=Ne.width,Ee=Ne.height,Ee>dr&&(we[1]-=(Ee-dr)/2)):ie.node()&&!ie.classed(At.jsPlaceholder)&&(Ne=Ri.bBox(ie.node()),Se=Ne.width,Ee=Ne.height),a){if(Ee){if(Ee+=5,S==="top")ve.domain[1]-=Ee/x.h,we[1]*=-1;else{ve.domain[0]+=Ee/x.h;var ke=Xce.lineCount(ie);we[1]+=(1-ke)*dr}Xe.attr("transform",zi(we[0],we[1])),ve.setScale()}}else Se&&(S==="right"&&(ve.domain[0]+=(Se+me/2)/x.w),Xe.attr("transform",zi(we[0],we[1])),ve.setScale())}e.selectAll("."+At.cbfills+",."+At.cblines).attr("transform",a?zi(0,Math.round(x.h*(1-ve.domain[1]))):zi(Math.round(x.w*ve.domain[0]),0)),xe.attr("transform",a?zi(0,Math.round(-x.t)):zi(Math.round(-x.l),0));var Ce=e.select("."+At.cbfills).selectAll("rect."+At.cbfill).attr("style","").data(I);Ce.enter().append("rect").classed(At.cbfill,!0).attr("style",""),Ce.exit().remove();var Be=D.map(ve.c2p).map(Math.round).sort(function(ar,er){return ar-er});Ce.each(function(ar,er){var Fe=[er===0?D[0]:(I[er]+I[er-1])/2,er===I.length-1?D[1]:(I[er]+I[er+1])/2].map(ve.c2p).map(Math.round);a&&(Fe[1]=ii.constrain(Fe[1]+(Fe[1]>Fe[0])?1:-1,Be[0],Be[1]));var ne=wo.select(this).attr(a?"x":"y",ee).attr(a?"y":"x",wo.min(Fe)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(wo.max(Fe)-wo.min(Fe),2));if(r._fillgradient)Ri.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var se=R(ar).replace("e-","");ne.attr("fill",Ib(se).toHexString())}});var Ze=e.select("."+At.cblines).selectAll("path."+At.cbline).data(k.color&&k.width?Y:[]);Ze.enter().append("path").classed(At.cbline,!0),Ze.exit().remove(),Ze.each(function(ar){var er=ee,Fe=Math.round(ve.c2p(ar))+k.width/2%1;wo.select(this).attr("d","M"+(a?er+","+Fe:Fe+","+er)+(a?"h":"v")+G).call(Ri.lineGroupStyle,k.width,E(ar),k.dash)}),xe.selectAll("g."+ve._id+"tick,path").remove();var Ve=ee+G+(s||0)/2-(r.ticks==="outside"?1:0),Ge=Sl.calcTicks(ve),ir=Sl.getTickSigns(ve)[2];return Sl.drawTicks(t,ve,{vals:ve.ticks==="inside"?Sl.clipEnds(ve,Ge):Ge,layer:xe,path:Sl.makeTickPath(ve,Ve,ir),transFn:Sl.makeTransTickFn(ve)}),Sl.drawLabels(t,ve,{vals:Ge,layer:xe,transFn:Sl.makeTransTickLabelFn(ve),labelFns:Sl.makeLabelFns(ve,Ve)})}function He(){var Xe,ie=G+s/2;oe.indexOf("inside")===-1&&(Xe=Ri.bBox(xe.node()),ie+=a?Xe.width:Xe.height),ze=Z.select("text");var we=0,$e=a&&S==="top",dr=!a&&S==="right",Ne=0;if(ze.node()&&!ze.classed(At.jsPlaceholder)){var ke,Ce=Z.select(".h"+ve._id+"title-math-group").node();Ce&&(a&&be||!a&&!be)?(Xe=Ri.bBox(Ce),we=Xe.width,ke=Xe.height):(Xe=Ri.bBox(Z.node()),we=Xe.right-x.l-(a?ee:qe),ke=Xe.bottom-x.t-(a?qe:ee),!a&&S==="top"&&(ie+=Xe.height,Ne=Xe.height)),dr&&(ze.attr("transform",zi(we/2+me/2,0)),we*=2),ie=Math.max(ie,a?we:ke)}var Be=(a?h:p)*2+ie+u+s/2,Ze=0;!a&&M.text&&d==="bottom"&&y<=0&&(Ze=Be/2,Be+=Ze,Ne+=Ze),w._hColorbarMoveTitle=Ze,w._hColorbarMoveCBTitle=Ne;var Ve=u+s,Ge=(a?ee:qe)-Ve/2-(a?h:0),ir=(a?qe:ee)-(a?U:p+Ne-Ze);e.select("."+At.cbbg).attr("x",Ge).attr("y",ir).attr(a?"width":"height",Math.max(Be-Ze,2)).attr(a?"height":"width",Math.max(U+Ve,2)).call(Bb.fill,f).call(Bb.stroke,r.bordercolor).style("stroke-width",u);var ar=dr?Math.max(we-10,0):0;e.selectAll("."+At.cboutline).attr("x",(a?ee:qe+h)+ar).attr("y",(a?qe+p-U:ee)+($e?Ee:0)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(U-(a?2*p+Ee:2*h+ar),2)).call(Bb.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var er=a?le*Be:0,Fe=a?0:(1-fe)*Be-Ne;if(er=_?x.l-er:-er,Fe=b?x.t-Fe:-Fe,e.attr("transform",zi(er,Fe)),!a&&(u||Ib(f).getAlpha()&&!Ib.equals(w.paper_bgcolor,f))){var ne=xe.selectAll("text"),se=ne[0].length,Le=e.select("."+At.cbbg).node(),Pe=Ri.bBox(Le),Qe=Ri.getTranslate(e),cr=2;ne.each(function($a,_a){var va=0,Ka=se-1;if(_a===va||_a===Ka){var da=Ri.bBox(this),ha=Ri.getTranslate(this),vr;if(_a===Ka){var ct=da.right+ha.x,Jr=Pe.right+Qe.x+qe-u-cr+m;vr=Jr-ct,vr>0&&(vr=0)}else if(_a===va){var lt=da.left+ha.x,pa=Pe.left+Qe.x+qe+u+cr;vr=pa-lt,vr<0&&(vr=0)}vr&&(se<3?this.setAttribute("transform","translate("+vr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var sr={},Mr=ZN[c],Hr=JN[c],Kr=ZN[d],ft=JN[d],kt=Be-G;a?(i==="pixels"?(sr.y=y,sr.t=U*Kr,sr.b=U*ft):(sr.t=sr.b=0,sr.yt=y+n*Kr,sr.yb=y-n*ft),o==="pixels"?(sr.x=m,sr.l=Be*Mr,sr.r=Be*Hr):(sr.l=kt*Mr,sr.r=kt*Hr,sr.xl=m-l*Mr,sr.xr=m+l*Hr)):(i==="pixels"?(sr.x=m,sr.l=U*Mr,sr.r=U*Hr):(sr.l=sr.r=0,sr.xl=m+n*Mr,sr.xr=m-n*Hr),o==="pixels"?(sr.y=1-y,sr.t=Be*Kr,sr.b=Be*ft):(sr.t=kt*Kr,sr.b=kt*ft,sr.yt=y-l*Kr,sr.yb=y+l*ft));var wt=r.y<.5?"b":"t",$t=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Vt={r:w.width-Ge-er,l:Ge+sr.r,b:w.height-ir-Fe,t:ir+sr.b};_&&b?Kp.autoMargin(t,r._id,sr):_?t._fullLayout._reservedMargin[r._id][wt]=Vt[wt]:b||a?t._fullLayout._reservedMargin[r._id][$t]=Vt[$t]:t._fullLayout._reservedMargin[r._id][wt]=Vt[wt]}return ii.syncOrAsync([Kp.previousPromises,Ie,De,We,Kp.previousPromises,He],t)}function eve(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;$p.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),Hb(e)},moveFn:function(u,f){e.attr("transform",l+zi(u,f)),o=$p.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=$p.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=$p.getCursor(o,s,r.xanchor,r.yanchor);Hb(e,c)},doneFn:function(){if(Hb(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?XN.call("_guiRestyle",t,u,r._traceIndex):XN.call("_guiRelayout",t,u)}}})}function rve(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";jN.exports={moduleType:"component",name:"colorbar",attributes:fh(),supplyDefaults:Zg(),draw:QN().draw,hasColorbar:Og()}});var tF=O((n5e,rF)=>{"use strict";rF.exports={moduleType:"component",name:"legend",layoutAttributes:G2(),supplyLayoutDefaults:W2(),draw:o3(),style:a3()}});var nF=O((i5e,aF)=>{"use strict";aF.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var lF=O((l5e,iF)=>{"use strict";iF.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var Vb=O((o5e,fF)=>{"use strict";var ave=gr(),uF=Re(),Yb=uF.extendFlat,oF=uF.extendDeep;function sF(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function nve(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}fF.exports=function(r,t){var a,n=r.data,i=r.layout,l=oF([],n),o=oF({},i,sF(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var ive=Kd().EventEmitter,lve=gr(),ove=Re(),cF=Ls(),sve=Vb(),uve=np(),fve=ip();function cve(e,r){var t=new ive,a=sve(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=cF.getDelay(n._fullLayout);setTimeout(function(){var s=uve(n),u=document.createElement("canvas");u.id=ove.randstr(),t=fve({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=cF.getRedrawFunc(n);return lve.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}vF.exports=cve});var mF=O((u5e,pF)=>{"use strict";var hF=Ls(),vve={getDelay:hF.getDelay,getRedrawFunc:hF.getRedrawFunc,clone:Vb(),toSVG:np(),svgToImg:ip(),toImage:dF(),downloadImage:Mx()};pF.exports=vve});var gF=O(Ll=>{"use strict";Ll.version=Mc().version;o6();$8();var dve=gr(),h0=Ll.register=dve.register,Gb=xD(),yF=Object.keys(Gb);for(Qp=0;Qp{"use strict";xF.exports=gF()});var Dl=O((v5e,MF)=>{"use strict";var Lt=Mi(),_F=bi().axisHoverFormat,{hovertemplateAttrs:hve,texttemplateAttrs:pve,templatefallbackAttrs:wF}=_n(),AF=Jc(),mve=ta(),TF=Kv(),yve=mi().pattern,Us=yt().extendFlat,Xb=mve({editType:"calc",arrayOk:!0,colorEditType:"style"}),gve=Lt.marker,xve=gve.line,bve=Us({},xve.width,{dflt:0}),_ve=Us({width:bve,editType:"calc"},AF("marker.line")),wve=Us({line:_ve,editType:"calc"},AF("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:yve,cornerradius:{valType:"any",editType:"calc"}});MF.exports={x:Lt.x,x0:Lt.x0,dx:Lt.dx,y:Lt.y,y0:Lt.y0,dy:Lt.dy,xperiod:Lt.xperiod,yperiod:Lt.yperiod,xperiod0:Lt.xperiod0,yperiod0:Lt.yperiod0,xperiodalignment:Lt.xperiodalignment,yperiodalignment:Lt.yperiodalignment,xhoverformat:_F("x"),yhoverformat:_F("y"),text:Lt.text,texttemplate:pve({editType:"plot"},{keys:TF.eventDataKeys}),texttemplatefallback:wF({editType:"plot"}),hovertext:Lt.hovertext,hovertemplate:hve({},{keys:TF.eventDataKeys}),hovertemplatefallback:wF(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Us({},Xb,{}),insidetextfont:Us({},Xb,{}),outsidetextfont:Us({},Xb,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Us({},Lt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:wve,offsetgroup:Lt.offsetgroup,alignmentgroup:Lt.alignmentgroup,selected:{marker:{opacity:Lt.selected.marker.opacity,color:Lt.selected.marker.color,editType:"style"},textfont:Lt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Lt.unselected.marker.opacity,color:Lt.unselected.marker.color,editType:"style"},textfont:Lt.unselected.textfont,editType:"style"},zorder:Lt.zorder}});var em=O((d5e,kF)=>{"use strict";kF.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var Wb=O((h5e,SF)=>{"use strict";var Tve=br(),CF=Tn().hasColorscale,qF=Zu(),Ave=Re().coercePattern;SF.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=CF(r,"marker");o&&qF(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Tve.defaultLine),CF(r,"marker.line")&&qF(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Ave(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var il=O((p5e,zF)=>{"use strict";var LF=zr(),Hf=Re(),DF=br(),Mve=gr(),kve=Zv(),Cve=Rs(),qve=Wb(),Sve=wf(),EF=Dl(),rm=Hf.coerceFont;function Lve(e,r,t,a){function n(u,f){return Hf.coerce(e,r,EF,u,f)}var i=kve(e,r,a,n);if(!i){r.visible=!1;return}Cve(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");RF(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),qve(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Mve.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||DF.defaultLine,{axis:"y"}),s(e,r,o||DF.defaultLine,{axis:"x",inherit:"y"}),Hf.coerceSelectionMarkerOpacity(r,n)}function Dve(e,r){var t,a;function n(o,s){return Hf.coerce(a._input,a,EF,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&LF(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function RF(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,d=!!i.hasPathbar,h=Array.isArray(n)||n==="auto",p=h||n==="inside",m=h||n==="outside";if(p||m){var y=rm(a,"textfont",t.font),b=Hf.extendFlat({},y),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,rm(a,"insidetextfont",b),d){var x=Hf.extendFlat({},y);w&&delete x.color,rm(a,"pathbar.textfont",x)}m&&rm(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}zF.exports={supplyDefaults:Lve,crossTraceDefaults:Dve,handleText:RF,validateCornerradius:PF}});var Zb=O((m5e,NF)=>{"use strict";var Eve=gr(),Pve=Zr(),Rve=Re(),zve=em(),Nve=il().validateCornerradius;NF.exports=function(e,r,t){function a(m,y){return Rve.coerce(e,r,zve,m,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[d]&&(l=!0),o[d]=!0),c.visible&&c.type==="histogram"){var h=Pve.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);h.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=Nve(p)}});var tm=O((y5e,FF)=>{"use strict";var Bf=Re();FF.exports=function(r,t){for(var a=0;a{"use strict";var IF=Zr(),HF=zs(),BF=Tn().hasColorscale,OF=$c(),Fve=tm(),Ive=Jv();YF.exports=function(r,t){var a=IF.getFromId(r,t.xaxis||"x"),n=IF.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=HF(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=HF(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var d=Math.min(l.length,i.length),h=new Array(d),p=0;p{"use strict";var Hve=kr(),Bve=Re();function Ove(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Hve.select(this).select("text");Bve.setTransormAndDisplay(u,s)}})}}function Yve(e,r,t){if(t.uniformtext.mode){var a=UF(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Uve=zr(),Gve=In(),XF=Re().isArrayOrTypedArray;Gs.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Gs.coerceNumber=function(e,r,t){if(Uve(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Gs.coerceColor=function(e,r,t){return Gve(r).isValid()?r:t!==void 0?t:e.dflt};Gs.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Gs.getValue=function(e,r){var t;return XF(e)?r{"use strict";var p0=kr(),Xve=br(),m0=Yr(),WF=Re(),ZF=gr(),JF=Ni().resizeText,Jb=Dl(),Wve=Jb.textfont,Zve=Jb.insidetextfont,Jve=Jb.outsidetextfont,Sa=am();function $ve(e){var r=p0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");JF(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&p0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=p0.select(this),l=n[0].trace;$F(i,l,e)}),ZF.getComponentMethod("errorbars","style")(r)}function $F(e,r,t){m0.pointStyle(e.selectAll("path"),r,t),KF(e,r,t)}function KF(e,r,t){e.selectAll("text").each(function(a){var n=p0.select(this),i=WF.ensureUniformFontSize(t,QF(n,a,r,t));m0.font(n,i)})}function Kve(e,r,t){var a=r[0].trace;a.selectedpoints?Qve(t,a,e):($F(t,a,e),ZF.getComponentMethod("errorbars","style")(t))}function Qve(e,r,t){m0.selectedPointStyle(e.selectAll("path"),r),jve(e.selectAll("text"),r,t)}function jve(e,r,t){e.each(function(a){var n=p0.select(this),i;if(a.selected){i=WF.ensureUniformFontSize(t,QF(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),m0.font(n,i)}else m0.selectedTextStyle(n,r)})}function QF(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=tI(r,t);i=eI(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=rI(t,r.i,n));return i}function jF(e,r,t){return $b(Wve,e.textfont,r,t)}function eI(e,r,t,a){var n=jF(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:Xve.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),$b(Zve,e.insidetextfont,r,n)}function rI(e,r,t){var a=jF(e,r,t);return $b(Jve,e.outsidetextfont,r,a)}function $b(e,r,t,a){r=r||{};var n=Sa.getValue(r.family,t),i=Sa.getValue(r.size,t),l=Sa.getValue(r.color,t),o=Sa.getValue(r.weight,t),s=Sa.getValue(r.style,t),u=Sa.getValue(r.variant,t),f=Sa.getValue(r.textcase,t),c=Sa.getValue(r.lineposition,t),d=Sa.getValue(r.shadow,t);return{family:Sa.coerceString(e.family,n,a.family),size:Sa.coerceNumber(e.size,i,a.size),color:Sa.coerceColor(e.color,l,a.color),weight:Sa.coerceString(e.weight,o,a.weight),style:Sa.coerceString(e.style,s,a.style),variant:Sa.coerceString(e.variant,u,a.variant),textcase:Sa.coerceString(e.variant,f,a.textcase),lineposition:Sa.coerceString(e.variant,c,a.lineposition),shadow:Sa.coerceString(e.variant,d,a.shadow)}}function tI(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}aI.exports={style:$ve,styleTextPoints:KF,styleOnSelect:Kve,getInsideTextFont:eI,getOutsideTextFont:rI,getBarColor:tI,resizeText:JF}});var Yf=O((w5e,cI)=>{"use strict";var nm=kr(),im=zr(),xa=Re(),e0e=ia(),r0e=br(),Ao=Yr(),t0e=gr(),lm=Zr().tickText,nI=Ni(),a0e=nI.recordMinTextSize,n0e=nI.clearMinTextSize,Kb=To(),Of=am(),i0e=Kv(),iI=Dl(),l0e=iI.text,o0e=iI.textposition,s0e=Yi().appendArrayPointValue,Za=i0e.TEXTPAD;function u0e(e){return e.id}function f0e(e){if(e.ids)return u0e}function Qb(e){return(e>0)-(e<0)}function ll(e,r){return e0}function v0e(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},n0e("bar",s));var f=xa.makeTraceGroups(a,t,"trace bars").each(function(c){var d=nm.select(this),h=c[0].trace,p=c[0].t,m=h.type==="waterfall",y=h.type==="funnel",b=h.type==="histogram",_=h.type==="bar",w=_||y,x=0;m&&h.connector.visible&&h.connector.mode==="between"&&(x=h.connector.line.width/2);var A=h.orientation==="h",k=oI(n),M=xa.ensureSingle(d,"g","points"),S=f0e(h),D=M.selectAll("g.point").data(xa.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var H=nm.select(this),I=c0e(R,l,o,A),Y=I[0][0],G=I[0][1],V=I[1][0],U=I[1][1],B=(A?G-Y:U-V)===0;B&&w&&Of.getLineWidth(h,R)&&(B=!1),B||(B=!im(Y)||!im(G)||!im(V)||!im(U)),R.isBlank=B,B&&(A?G=Y:U=V),x&&!B&&(A?(Y-=ll(Y,G)*x,G+=ll(Y,G)*x):(V-=ll(V,U)*x,U+=ll(V,U)*x));var J,X;if(h.type==="waterfall"){if(!B){var ee=h[R.dir].marker;J=ee.line.width,X=ee.color}}else J=Of.getLineWidth(h,R),X=R.mc||h.marker.color;function le(ie){var we=nm.round(J/2%1,2);return n.gap===0&&n.groupgap===0?nm.round(Math.round(ie)-we,2):ie}function fe(ie,we,$e){return $e&&ie===we?ie:Math.abs(ie-we)>=2?le(ie):ie>we?Math.ceil(ie):Math.floor(ie)}var ce=r0e.opacity(X),j=ce<1||J>.01?le:fe;e._context.staticPlot||(Y=j(Y,G,A),G=j(G,Y,A),V=j(V,U,!A),U=j(U,V,!A));var qe=A?l.c2p:o.c2p,ve;R.s0>0?ve=R._sMax:R.s0<0?ve=R._sMin:ve=R.s1>0?R._sMax:R._sMin;function be(ie,we){if(!ie)return 0;var $e=Math.abs(A?U-V:G-Y),dr=Math.abs(A?G-Y:U-V),Ne=j(Math.abs(qe(ve,!0)-qe(0,!0))),ke=R.hasB?Math.min($e/2,dr/2):Math.min($e/2,Ne),Ce;if(we==="%"){var Be=Math.min(50,ie);Ce=$e*(Be/100)}else Ce=ie;return j(Math.max(Math.min(Ce,ke),0))}var _e=_||b?be(p.cornerradiusvalue,p.cornerradiusform):0,ge,W,Q="M"+Y+","+V+"V"+U+"H"+G+"V"+V+"Z",Z=0;if(_e&&R.s){var oe=Qb(R.s0)===0||Qb(R.s)===Qb(R.s0)?R.s1:R.s0;if(Z=j(R.hasB?0:Math.abs(qe(ve,!0)-qe(oe,!0))),Z<_e){var me=ll(Y,G),xe=ll(V,U),ze=me===-xe?1:0;if(A)if(R.hasB)ge="M"+(Y+_e*me)+","+V+"A "+_e+","+_e+" 0 0 "+ze+" "+Y+","+(V+_e*xe)+"V"+(U-_e*xe)+"A "+_e+","+_e+" 0 0 "+ze+" "+(Y+_e*me)+","+U+"H"+(G-_e*me)+"A "+_e+","+_e+" 0 0 "+ze+" "+G+","+(U-_e*xe)+"V"+(V+_e*xe)+"A "+_e+","+_e+" 0 0 "+ze+" "+(G-_e*me)+","+V+"Z";else{W=Math.abs(G-Y)+Z;var Ee=W<_e?_e-Math.sqrt(W*(2*_e-W)):0,Se=Z>0?Math.sqrt(Z*(2*_e-Z)):0,Ue=me>0?Math.max:Math.min;ge="M"+Y+","+V+"V"+(U-Ee*xe)+"H"+Ue(G-(_e-Z)*me,Y)+"A "+_e+","+_e+" 0 0 "+ze+" "+G+","+(U-_e*xe-Se)+"V"+(V+_e*xe+Se)+"A "+_e+","+_e+" 0 0 "+ze+" "+Ue(G-(_e-Z)*me,Y)+","+(V+Ee*xe)+"Z"}else if(R.hasB)ge="M"+(Y+_e*me)+","+V+"A "+_e+","+_e+" 0 0 "+ze+" "+Y+","+(V+_e*xe)+"V"+(U-_e*xe)+"A "+_e+","+_e+" 0 0 "+ze+" "+(Y+_e*me)+","+U+"H"+(G-_e*me)+"A "+_e+","+_e+" 0 0 "+ze+" "+G+","+(U-_e*xe)+"V"+(V+_e*xe)+"A "+_e+","+_e+" 0 0 "+ze+" "+(G-_e*me)+","+V+"Z";else{W=Math.abs(U-V)+Z;var Ie=W<_e?_e-Math.sqrt(W*(2*_e-W)):0,We=Z>0?Math.sqrt(Z*(2*_e-Z)):0,De=xe>0?Math.max:Math.min;ge="M"+(Y+Ie*me)+","+V+"V"+De(U-(_e-Z)*xe,V)+"A "+_e+","+_e+" 0 0 "+ze+" "+(Y+_e*me-We)+","+U+"H"+(G-_e*me+We)+"A "+_e+","+_e+" 0 0 "+ze+" "+(G-Ie*me)+","+De(U-(_e-Z)*xe,V)+"V"+V+"Z"}}else ge=Q}else ge=Q;var He=lI(xa.ensureSingle(H,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((G-Y)*(U-V))||B&&e._context.staticPlot?"M0,0Z":ge).call(Ao.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Xe=Ao.makePointStyleFns(h);Ao.singlePointStyle(R,He,h,Xe,e)}d0e(e,r,H,c,N,Y,G,V,U,_e,Z,n,i),r.layerClipId&&Ao.hideOutsideRangePoint(R,H.select("text"),l,o,h.xcalendar,h.ycalendar)});var E=h.cliponaxis===!1;Ao.setClipUrl(d,E?null:r.layerClipId,e)});t0e.getComponentMethod("errorbars","plot")(e,f,r,n)}function d0e(e,r,t,a,n,i,l,o,s,u,f,c,d){var h=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function b(W,Q,Z){var oe=xa.ensureSingle(W,"text").text(Q).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(Ao.font,Z).call(e0e.convertToTspans,e);return oe}var _=a[0].trace,w=_.orientation==="h",x=m0e(m,a,n,h,p);y=y0e(_,n);var A=c.mode==="stack"||c.mode==="relative",k=a[n],M=!A||k._outmost,S=k.hasB,D=u&&u-f>Za;if(!x||y==="none"||(k.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var E=m.font,R=Kb.getBarColor(a[n],_),N=Kb.getInsideTextFont(_,n,E,R),H=Kb.getOutsideTextFont(_,n,E),I=_.insidetextanchor||"end",Y=t.datum();w?h.type==="log"&&Y.s0<=0&&(h.range[0]0&&le>0,j;D?S?j=Xs(U-2*u,B,ee,le,w)||Xs(U,B-2*u,ee,le,w):w?j=Xs(U-(u-f),B,ee,le,w)||Xs(U,B-2*(u-f),ee,le,w):j=Xs(U,B-(u-f),ee,le,w)||Xs(U-2*(u-f),B,ee,le,w):j=Xs(U,B,ee,le,w),ce&&j?y="inside":(y="outside",J.remove(),J=null)}else y="inside";if(!J){fe=xa.ensureUniformFontSize(e,y==="outside"?H:N),J=b(t,x,fe);var qe=J.attr("transform");if(J.attr("transform",""),X=Ao.bBox(J.node()),ee=X.width,le=X.height,J.attr("transform",qe),ee<=0||le<=0){J.remove();return}}var ve=_.textangle,be,_e;y==="outside"?(_e=_.constraintext==="both"||_.constraintext==="outside",be=p0e(i,l,o,s,X,{isHorizontal:w,constrained:_e,angle:ve})):(_e=_.constraintext==="both"||_.constraintext==="inside",be=fI(i,l,o,s,X,{isHorizontal:w,constrained:_e,angle:ve,anchor:I,hasB:S,r:u,overhead:f})),be.fontSize=fe.size,a0e(_.type==="histogram"?"bar":_.type,be,m),k.transform=be;var ge=lI(J,m,c,d);xa.setTransormAndDisplay(ge,be)}function Xs(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function sI(e){return e==="auto"?0:e}function uI(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function fI(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",d=i.leftToRight||0,h=(d+1)/2,p=1-h,m=i.hasB,y=i.r,b=i.overhead,_=n.width,w=n.height,x=Math.abs(r-e),A=Math.abs(a-t),k=x>2*Za&&A>2*Za?Za:0;x-=2*k,A-=2*k;var M=sI(s);s==="auto"&&!(_<=x&&w<=A)&&(_>x||w>A)&&(!(_>A||w>x)||_Za){var R=h0e(e,r,t,a,S,y,b,l,m);D=R.scale,E=R.pad}else D=1,o&&(D=Math.min(1,x/S.x,A/S.y)),E=0;var N=n.left*p+n.right*h,H=(n.top+n.bottom)/2,I=(e+Za)*p+(r-Za)*h,Y=(t+a)/2,G=0,V=0;if(c||f){var U=(l?S.x:S.y)/2;y&&(f||m)&&(k+=E);var B=l?ll(e,r):ll(t,a);l?c?(I=e+B*k,G=-B*U):(I=r-B*k,G=B*U):c?(Y=t+B*k,V=-B*U):(Y=a-B*k,V=B*U)}return{textX:N,textY:H,targetX:I,targetY:Y,anchorX:G,anchorY:V,scale:D,rotate:M}}function h0e(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Za),f=Math.max(0,Math.abs(a-t)-2*Za),c=i-Za,d=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,h=s?c*2:o?c-l:2*d,p=s?c*2:o?2*d:c-l,m,y,b,_,w;return n.y/n.x>=f/(u-h)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*b))/(2*m)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function p0e(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),d=Math.abs(a-t),h;l?h=d>2*Za?Za:0:h=c>2*Za?Za:0;var p=1;o&&(p=l?Math.min(1,d/f):Math.min(1,c/u));var m=sI(s),y=uI(n,m),b=(l?y.x:y.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,A=(t+a)/2,k=0,M=0,S=l?ll(r,e):ll(t,a);return l?(x=r-S*h,k=S*b):(A=a+S*h,M=-S*b),{textX:_,textY:w,targetX:x,targetY:A,anchorX:k,anchorY:M,scale:p,rotate:m}}function m0e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=g0e(e,r,t,a,n):i.textinfo?o=x0e(r,t,a,n):o=Of.getValue(i.text,t),Of.coerceString(l0e,o)}function y0e(e,r){var t=Of.getValue(e.textposition,r);return Of.coerceEnumerated(o0e,t)}function g0e(e,r,t,a,n){var i=r[0].trace,l=xa.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,d,h,p;f?(c="y",d=n,h="x",p=a):(c="x",d=a,h="y",p=n);function m(k){return lm(d,d.c2l(k),!0).text}function y(k){return lm(p,p.c2l(k),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=m(b.p);var w=xa.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[h+"Label"]=y(b.s);var x={};s0e(x,i,b.i),(o||x.x===void 0)&&(x.x=f?_.value:_.label),(o||x.y===void 0)&&(x.y=f?_.label:_.value),(o||x.xLabel===void 0)&&(x.xLabel=f?_.valueLabel:_.labelLabel),(o||x.yLabel===void 0)&&(x.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+b.rawS||b.s,_.deltaLabel=y(_.delta),_.final=b.v,_.finalLabel=y(_.final),_.initial=_.final-_.delta,_.initialLabel=y(_.initial)),u&&(_.value=b.s,_.valueLabel=y(_.value),_.percentInitial=b.begR,_.percentInitialLabel=xa.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=xa.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=xa.formatPercent(b.sumR));var A=xa.castOption(i,b.i,"customdata");return A&&(_.customdata=A),xa.texttemplateString({data:[x,_,i._meta],fallback:i.texttemplatefallback,labels:_,locale:e._d3locale,template:l})}function x0e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(A){var k=i?a:t;return lm(k,A,!0).text}function u(A){var k=i?t:a;return lm(k,+A,!0).text}var f=n.textinfo,c=e[r],d=f.split("+"),h=[],p,m=function(A){return d.indexOf(A)!==-1};if(m("label")&&h.push(s(e[r].p)),m("text")&&(p=xa.castOption(n,c.i,"text"),(p===0||p)&&h.push(p)),l){var y=+c.rawS||c.s,b=c.v,_=b-y;m("initial")&&h.push(u(_)),m("delta")&&h.push(u(y)),m("final")&&h.push(u(b))}if(o){m("value")&&h.push(u(c.s));var w=0;m("percent initial")&&w++,m("percent previous")&&w++,m("percent total")&&w++;var x=w>1;m("percent initial")&&(p=xa.formatPercent(c.begR),x&&(p+=" of initial"),h.push(p)),m("percent previous")&&(p=xa.formatPercent(c.difR),x&&(p+=" of previous"),h.push(p)),m("percent total")&&(p=xa.formatPercent(c.sumR),x&&(p+=" of total"),h.push(p))}return h.join("
")}cI.exports={plot:v0e,toMoveInsideBar:fI}});var g0=O((T5e,pI)=>{"use strict";var y0=Wn(),b0e=gr(),vI=br(),_0e=Re().fillText,w0e=am().getLineWidth,jb=Zr().hoverLabelText,T0e=Tt().BADNUM;function A0e(e,r,t,a,n){var i=dI(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=hI(o,s),b0e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function dI(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,d,h,p,m,y,b,_;l.orientation==="h"?(d=t,h=r,p="y",m="x",y=Y,b=N):(d=r,h=t,p="x",m="y",b=Y,y=N);var w=l[p+"period"],x=s||w;function A(j){return M(j,-1)}function k(j){return M(j,1)}function M(j,qe){var ve=j.w;return j[p]+qe*ve/2}function S(j){return j[p+"End"]-j[p+"Start"]}var D=s?A:w?function(j){return j.p-S(j)/2}:function(j){return Math.min(A(j),j.p-o.bardelta/2)},E=s?k:w?function(j){return j.p+S(j)/2}:function(j){return Math.max(k(j),j.p+o.bardelta/2)};function R(j,qe,ve){return n.finiteRange&&(ve=0),y0.inbox(j-d,qe-d,ve+Math.min(1,Math.abs(qe-j)/_)-1)}function N(j){return R(D(j),E(j),f)}function H(j){return R(A(j),k(j),c)}function I(j){var qe=j[m];if(u){var ve=Math.abs(j.rawS)||0;h>0?qe+=ve:h<0&&(qe-=ve)}return qe}function Y(j){var qe=h,ve=j.b,be=I(j);return y0.inbox(ve-qe,be-qe,f+(be-qe)/(be-ve)-1)}function G(j){var qe=h,ve=j.b,be=I(j);return y0.inbox(ve-qe,be-qe,c+(be-qe)/(be-ve)-1)}var V=e[p+"a"],U=e[m+"a"];_=Math.abs(V.r2c(V.range[1])-V.r2c(V.range[0]));function B(j){return(y(j)+b(j))/2}var J=y0.getDistanceFunction(a,y,b,B);if(y0.getClosest(i,J,e),e.index!==!1&&i[e.index].p!==T0e){x||(D=function(j){return Math.min(A(j),j.p-o.bargroupwidth/2)},E=function(j){return Math.max(k(j),j.p+o.bargroupwidth/2)});var X=e.index,ee=i[X],le=l.base?ee.b+ee.s:ee.s;e[m+"0"]=e[m+"1"]=U.c2p(ee[m],!0),e[m+"LabelVal"]=le;var fe=o.extents[o.extents.round(ee.p)];e[p+"0"]=V.c2p(s?D(ee):fe[0],!0),e[p+"1"]=V.c2p(s?E(ee):fe[1],!0);var ce=ee.orig_p!==void 0;return e[p+"LabelVal"]=ce?ee.orig_p:ee.p,e.labelLabel=jb(V,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=jb(U,e[m+"LabelVal"],l[m+"hoverformat"]),e.baseLabel=jb(U,ee.b,l[m+"hoverformat"]),e.spikeDistance=(G(ee)+H(ee))/2,e[p+"Spike"]=V.c2p(ee.p,!0),_0e(ee,l,e),e.hovertemplate=l.hovertemplate,e}}function hI(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=w0e(e,r);if(vI.opacity(t))return t;if(vI.opacity(a)&&n)return a}pI.exports={hoverPoints:A0e,hoverOnBars:dI,getTraceColor:hI}});var yI=O((A5e,mI)=>{"use strict";mI.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var x0=O((M5e,gI)=>{"use strict";gI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";xI.exports={attributes:Dl(),layoutAttributes:em(),supplyDefaults:il().supplyDefaults,crossTraceDefaults:il().crossTraceDefaults,supplyLayoutDefaults:Zb(),calc:VF(),crossTraceCalc:Mf().crossTraceCalc,colorbar:mp(),arraysToCalcdata:tm(),plot:Yf().plot,style:To().style,styleOnSelect:To().styleOnSelect,hoverPoints:g0().hoverPoints,eventData:yI(),selectPoints:x0(),moduleType:"trace",name:"bar",basePlotModule:kl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var wI=O((C5e,_I)=>{"use strict";_I.exports=bI()});var AI=O((q5e,TI)=>{"use strict";TI.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var kI=O((S5e,MI)=>{"use strict";MI.exports={eventDataKeys:["binNumber"]}});var t5=O((L5e,LI)=>{"use strict";var gn=Dl(),CI=bi().axisHoverFormat,{hovertemplateAttrs:k0e,texttemplateAttrs:C0e,templatefallbackAttrs:qI}=_n(),e5=ta(),SI=AI(),q0e=kI(),r5=yt().extendFlat;LI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:CI("x"),yhoverformat:CI("y"),text:r5({},gn.text,{}),hovertext:r5({},gn.hovertext,{}),orientation:gn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:SI("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:SI("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:k0e({},{keys:q0e.eventDataKeys}),hovertemplatefallback:qI(),texttemplate:C0e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:qI({editType:"plot"}),textposition:r5({},gn.textposition,{arrayOk:!1}),textfont:e5({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:e5({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:e5({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:gn.insidetextanchor,textangle:gn.textangle,cliponaxis:gn.cliponaxis,constraintext:gn.constraintext,marker:gn.marker,offsetgroup:gn.offsetgroup,alignmentgroup:gn.alignmentgroup,selected:gn.selected,unselected:gn.unselected,zorder:gn.zorder}});var RI=O((D5e,PI)=>{"use strict";var DI=gr(),b0=Re(),EI=br(),S0e=il().handleText,L0e=Wb(),D0e=t5();PI.exports=function(r,t,a,n){function i(_,w){return b0.coerce(r,t,D0e,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");S0e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",d=f==="v"?"y":"x",h=l&&o?Math.min(b0.minRowLength(l)&&b0.minRowLength(o)):b0.minRowLength(t[c]||[]);if(!h){t.visible=!1;return}t._length=h;var p=DI.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[d];m&&i("histfunc"),i("histnorm"),i("autobin"+c),L0e(r,t,i,a,n),b0.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,b=DI.getComponentMethod("errorbars","supplyDefaults");b(r,t,y||EI.defaultLine,{axis:"y"}),b(r,t,y||EI.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var II=O((E5e,FI)=>{"use strict";var _0=Re(),E0e=Xt(),om=gr().traceIs,P0e=wf(),R0e=il().validateCornerradius,zI=_0.nestedProperty,a5=Ss().getAxisGroup,NI=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],z0e=["x","y"];FI.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,d,h;function p(Y,G){return _0.coerce(o._input,o,o._module.attributes,Y,G)}function m(Y){return Y.orientation==="v"?"x":"y"}function y(Y,G){var V=E0e.getFromTrace({_fullLayout:t},Y,G);return V.type}function b(Y,G,V){var U=Y.uid+"__"+V;G||(G=U);var B=y(Y,V),J=Y[V+"calendar"]||"",X=a[G],ee=!0;X&&(B===X.axType&&J===X.calendar?(ee=!1,X.traces.push(Y),X.dirs.push(V)):(G=U,B!==X.axType&&_0.warn(["Attempted to group the bins of trace",Y.index,"set on a","type:"+B,"axis","with bins on","type:"+X.axType,"axis."].join(" ")),J!==X.calendar&&_0.warn(["Attempted to group the bins of trace",Y.index,"set with a",J,"calendar","with bins",X.calendar?"on a "+X.calendar+" calendar":"w/o a set calendar"].join(" ")))),ee&&(a[G]={traces:[Y],dirs:[V],axType:B,calendar:Y[V+"calendar"]||""}),Y["_"+V+"bingroup"]=G}for(c=0;c{"use strict";var Vf=zr();HI.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Vf(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Vf(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Vf(n))if(n=Number(n),Vf(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Vf(n))if(n=Number(n),Vf(t[e])){if(t[e]{"use strict";OI.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";VI.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Uf=Tt(),Ws=Uf.ONEAVGYEAR,GI=Uf.ONEAVGMONTH,um=Uf.ONEDAY,XI=Uf.ONEHOUR,WI=Uf.ONEMIN,ZI=Uf.ONESEC,JI=Zr().tickIncrement;QI.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(sm(u+o,u+s,n,i),sm(f+o,f+s,n,i)),d=Math.min(sm(u+l,u+o,n,i),sm(f+l,f+o,n,i)),h,p;if(c>d&&dum){var m=h===Ws?1:6,y=h===Ws?"M12":"M1";return function(b,_){var w=n.c2d(b,Ws,i),x=w.indexOf("-",m);x>0&&(w=w.slice(0,x));var A=n.d2c(w,0,i);if(AZI?e>um?e>Ws*1.1?Ws:e>GI*1.1?GI:um:e>XI?XI:e>WI?WI:ZI:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function N0e(e,r,t,a,n,i){if(a&&e>um){var l=KI(r,n,i),o=KI(t,n,i),s=e===Ws?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function KI(e,r,t){var a=r.c2d(e,Ws,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var iH=O((F5e,nH)=>{"use strict";var n5=zr(),Ja=Re(),eH=gr(),li=Zr(),{hasColorscale:rH}=Tn(),tH=$c(),F0e=tm(),aH=BI(),I0e=YI(),H0e=UI(),B0e=jI();function O0e(e,r){var t=[],a=[],n=r.orientation==="h",i=li.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=i5(e,r,i,l),d=c[0],h=c[1],p=typeof d.size=="string",m=[],y=p?m:d,b=[],_=[],w=[],x=0,A=r.histnorm,k=r.histfunc,M=A.indexOf("density")!==-1,S,D,E;u.enabled&&M&&(A=A.replace(/ ?density$/,""),M=!1);var R=k==="max"||k==="min",N=R?null:0,H=aH.count,I=I0e[A],Y=!1,G=function(W){return i.r2c(W,0,s)},V;for(Ja.isArrayOrTypedArray(r[o])&&k!=="count"&&(V=r[o],Y=k==="avg",H=aH[k]),f=G(d.start),D=G(d.end)+(f-li.tickIncrement(f,d.size,!1,s))/1e6;f=0&&E=be;f--)if(a[f]){_e=f;break}for(f=be;f<=_e;f++)if(n5(t[f])&&n5(a[f])){var ge={p:t[f],s:a[f],b:0};u.enabled||(ge.pts=w[f],X?ge.ph0=ge.ph1=w[f].length?h[w[f][0]]:t[f]:(r._computePh=!0,ge.ph0=j(m[f]),ge.ph1=j(m[f+1],!0))),ve.push(ge)}return ve.length===1&&(ve[0].width1=li.tickIncrement(ve[0].p,d.size,!1,s)-ve[0].p),rH(r,"marker")&&tH(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),rH(r,"marker.line")&&tH(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),F0e(ve,r),Ja.isArrayOrTypedArray(r.selectedpoints)&&Ja.tagSelected(ve,r,fe),ve}function i5(e,r,t,a,n){var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,d,h,p,m,y,b=function(ce){return t.r2c(ce,0,h)},_=function(ce){return t.c2r(ce,0,h)},w=t.type==="date"?function(ce){return ce||ce===0?Ja.cleanDate(ce,null,h):null}:function(ce){return n5(ce)?Number(ce):null};function x(ce,j,qe){j[ce+"Found"]?(j[ce]=w(j[ce]),j[ce]===null&&(j[ce]=qe[ce])):(m[ce]=j[ce]=qe[ce],Ja.nestedProperty(c[0],i+"."+ce).set(qe[ce]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var A=[],k=!0,M=!1,S=!1;for(f=0;ft.r2l(V)&&(B=li.tickIncrement(B,s.size,!0,h)),H.start=t.l2r(B),G||Ja.nestedProperty(r,i+".start").set(H.start)}var J=s.end,X=t.r2l(N.end),ee=X!==void 0;if((s.endFound||ee)&&X!==t.r2l(J)){var le=ee?X:Ja.aggNums(Math.max,null,p);H.end=t.l2r(le),ee||Ja.nestedProperty(r,i+".start").set(H.end)}var fe="autobin"+a;return r._input[fe]===!1&&(r._input[i]=Ja.extendFlat({},r[i]||{}),delete r._input[fe],delete r[fe]),[H,p]}function Y0e(e,r,t,a,n){var i=e._fullLayout,l=V0e(e,r),o=!1,s=1/0,u=[r],f,c,d;for(f=0;f=0;a--)o(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}nH.exports={calc:O0e,calcAllAutoBins:i5}});var oH=O((I5e,lH)=>{"use strict";var G0e=g0().hoverPoints,X0e=Zr().hoverLabelText;lH.exports=function(r,t,a,n,i){var l=G0e(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=X0e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var uH=O((H5e,sH)=>{"use strict";sH.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var o;if(a._indexToPoints){o=[];for(var s=0;s{"use strict";fH.exports={attributes:t5(),layoutAttributes:em(),supplyDefaults:RI(),crossTraceDefaults:II(),supplyLayoutDefaults:Zb(),calc:iH().calc,crossTraceCalc:Mf().crossTraceCalc,plot:Yf().plot,layerName:"barlayer",style:To().style,styleOnSelect:To().styleOnSelect,colorbar:mp(),hoverPoints:oH(),selectPoints:x0(),eventData:uH(),moduleType:"trace",name:"histogram",basePlotModule:kl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var dH=O((O5e,vH)=>{"use strict";vH.exports=cH()});var pH=O((Y5e,hH)=>{"use strict";hH.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var o5=O((V5e,xH)=>{"use strict";var pt=Dl(),l5=Mi().line,W0e=sn(),mH=bi().axisHoverFormat,{hovertemplateAttrs:Z0e,texttemplateAttrs:J0e,templatefallbackAttrs:yH}=_n(),gH=pH(),El=yt().extendFlat,$0e=br();xH.exports={x:pt.x,x0:pt.x0,dx:pt.dx,y:pt.y,y0:pt.y0,dy:pt.dy,xperiod:pt.xperiod,yperiod:pt.yperiod,xperiod0:pt.xperiod0,yperiod0:pt.yperiod0,xperiodalignment:pt.xperiodalignment,yperiodalignment:pt.yperiodalignment,xhoverformat:mH("x"),yhoverformat:mH("y"),hovertext:pt.hovertext,hovertemplate:Z0e({},{keys:gH.eventDataKeys}),hovertemplatefallback:yH(),hoverinfo:El({},W0e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:J0e({editType:"plot"},{keys:gH.eventDataKeys.concat(["label","value"])}),texttemplatefallback:yH({editType:"plot"}),text:pt.text,textposition:pt.textposition,insidetextanchor:El({},pt.insidetextanchor,{dflt:"middle"}),textangle:El({},pt.textangle,{dflt:0}),textfont:pt.textfont,insidetextfont:pt.insidetextfont,outsidetextfont:pt.outsidetextfont,constraintext:pt.constraintext,cliponaxis:pt.cliponaxis,orientation:El({},pt.orientation,{}),offset:El({},pt.offset,{arrayOk:!1}),width:El({},pt.width,{arrayOk:!1}),marker:K0e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:El({},l5.color,{dflt:$0e.defaultLine}),width:El({},l5.width,{dflt:0,editType:"plot"}),dash:l5.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:pt.offsetgroup,alignmentgroup:pt.alignmentgroup,zorder:pt.zorder};function K0e(){var e=El({},pt.marker);return delete e.pattern,delete e.cornerradius,e}});var s5=O((U5e,bH)=>{"use strict";bH.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var f5=O((G5e,wH)=>{"use strict";var fm=Re(),Q0e=wf(),j0e=il().handleText,ede=Zv(),rde=Rs(),_H=o5(),u5=br();function tde(e,r,t,a){function n(c,d){return fm.coerce(e,r,_H,c,d)}var i=ede(e,r,a,n);if(!i){r.visible=!1;return}rde(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");j0e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",fm.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",u5.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",ade(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function ade(e){var r=fm.isArrayOrTypedArray(e)?"#000":e;return u5.addOpacity(r,.5*u5.opacity(r))}function nde(e,r){var t,a;function n(l){return fm.coerce(a._input,a,_H,l)}for(var i=0;i{"use strict";var ide=Re(),lde=s5();TH.exports=function(e,r,t){var a=!1;function n(o,s){return ide.coerce(e,r,lde,o,s)}for(var i=0;i{"use strict";var Gf=Re();MH.exports=function(r,t){for(var a=0;a{"use strict";var CH=Zr(),qH=zs(),ode=kH(),sde=Jv(),w0=Tt().BADNUM;SH.exports=function(r,t){var a=CH.getFromId(r,t.xaxis||"x"),n=CH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,d;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=qH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=qH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var h=Math.min(l.length,i.length),p=new Array(h);for(t._base=[],c=0;c{"use strict";var DH=Mf().setGroupPositions;EH.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,d;for(d=0;d{"use strict";var cm=kr(),ko=Re(),RH=Yr(),Mo=Tt().BADNUM,ude=Yf(),fde=Ni().clearMinTextSize;NH.exports=function(r,t,a,n){var i=r._fullLayout;fde("funnel",i),cde(r,t,a,n),vde(r,t,a,n),ude.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function cde(e,r,t,a){var n=r.xaxis,i=r.yaxis;ko.makeTraceGroups(a,t,"trace bars").each(function(l){var o=cm.select(this),s=l[0].trace,u=ko.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(ko.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var d=c.size();c.each(function(h,p){if(!(p!==d-1&&!h.cNext)){var m=zH(h,n,i,f),y=m[0],b=m[1],_="";y[0]!==Mo&&b[0]!==Mo&&y[1]!==Mo&&b[1]!==Mo&&y[2]!==Mo&&b[2]!==Mo&&y[3]!==Mo&&b[3]!==Mo&&(f?_+="M"+y[0]+","+b[1]+"L"+y[2]+","+b[2]+"H"+y[3]+"L"+y[1]+","+b[1]+"Z":_+="M"+y[1]+","+b[1]+"L"+y[2]+","+b[3]+"V"+b[2]+"L"+y[1]+","+b[0]+"Z"),_===""&&(_="M0,0Z"),ko.ensureSingle(cm.select(this),"path").attr("d",_).call(RH.setClipUrl,r.layerClipId,e)}})})}function vde(e,r,t,a){var n=r.xaxis,i=r.yaxis;ko.makeTraceGroups(a,t,"trace bars").each(function(l){var o=cm.select(this),s=l[0].trace,u=ko.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(ko.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var d=c.size();c.each(function(h,p){if(!(p!==d-1&&!h.cNext)){var m=zH(h,n,i,f),y=m[0],b=m[1],_="";y[3]!==void 0&&b[3]!==void 0&&(f?(_+="M"+y[0]+","+b[1]+"L"+y[2]+","+b[2],_+="M"+y[1]+","+b[1]+"L"+y[3]+","+b[2]):(_+="M"+y[1]+","+b[1]+"L"+y[2]+","+b[3],_+="M"+y[1]+","+b[0]+"L"+y[2]+","+b[2])),_===""&&(_="M0,0Z"),ko.ensureSingle(cm.select(this),"path").attr("d",_).call(RH.setClipUrl,r.layerClipId,e)}})})}function zH(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var BH=O((K5e,HH)=>{"use strict";var T0=kr(),IH=Yr(),v5=br(),dde=qu().DESELECTDIM,hde=To(),pde=Ni().resizeText,mde=hde.styleTextPoints;function yde(e,r,t){var a=t||T0.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");pde(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=T0.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;T0.select(this).call(v5.fill,o.mc||s.color).call(v5.stroke,o.mlc||s.line.color).call(IH.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?dde:1)}}),mde(i,l,e),i.selectAll(".regions").each(function(){T0.select(this).selectAll("path").style("stroke-width",0).call(v5.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;IH.lineGroupStyle(T0.select(this).selectAll("path"),o.width,o.color,o.dash)})})}HH.exports={style:yde}});var VH=O((Q5e,YH)=>{"use strict";var OH=br().opacity,gde=g0().hoverOnBars,d5=Re().formatPercent;YH.exports=function(r,t,a,n,i){var l=gde(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],d=u?"x":"y";l[d+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=d5(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=d5(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=d5(c.sumR,1);var h=c.hi||s.hoverinfo,p=[];if(h&&h!=="none"&&h!=="skip"){var m=h==="all",y=h.split("+"),b=function(_){return m||y.indexOf(_)!==-1};b("percent initial")&&p.push(l.percentInitialLabel+" of initial"),b("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),b("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("
"),l.color=xde(s,c),[l]}};function xde(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(OH(a))return a;if(OH(n)&&i)return n}});var GH=O((j5e,UH)=>{"use strict";UH.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var WH=O((e_e,XH)=>{"use strict";XH.exports={attributes:o5(),layoutAttributes:s5(),supplyDefaults:f5().supplyDefaults,crossTraceDefaults:f5().crossTraceDefaults,supplyLayoutDefaults:AH(),calc:LH(),crossTraceCalc:PH(),plot:FH(),style:BH().style,hoverPoints:VH(),eventData:GH(),selectPoints:x0(),moduleType:"trace",name:"funnel",basePlotModule:kl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var JH=O((r_e,ZH)=>{"use strict";ZH.exports=WH()});var KH=O((t_e,$H)=>{"use strict";$H.exports={eventDataKeys:["initial","delta","final"]}});var m5=O((a_e,rB)=>{"use strict";var ut=Dl(),h5=Mi().line,bde=sn(),QH=bi().axisHoverFormat,{hovertemplateAttrs:_de,texttemplateAttrs:wde,templatefallbackAttrs:jH}=_n(),eB=KH(),Xf=yt().extendFlat,Tde=br();function p5(e){return{marker:{color:Xf({},ut.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Xf({},ut.marker.line.color,{arrayOk:!1,editType:"style"}),width:Xf({},ut.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}rB.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:ut.x,x0:ut.x0,dx:ut.dx,y:ut.y,y0:ut.y0,dy:ut.dy,xperiod:ut.xperiod,yperiod:ut.yperiod,xperiod0:ut.xperiod0,yperiod0:ut.yperiod0,xperiodalignment:ut.xperiodalignment,yperiodalignment:ut.yperiodalignment,xhoverformat:QH("x"),yhoverformat:QH("y"),hovertext:ut.hovertext,hovertemplate:_de({},{keys:eB.eventDataKeys}),hovertemplatefallback:jH(),hoverinfo:Xf({},bde.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:wde({editType:"plot"},{keys:eB.eventDataKeys.concat(["label"])}),texttemplatefallback:jH({editType:"plot"}),text:ut.text,textposition:ut.textposition,insidetextanchor:ut.insidetextanchor,textangle:ut.textangle,textfont:ut.textfont,insidetextfont:ut.insidetextfont,outsidetextfont:ut.outsidetextfont,constraintext:ut.constraintext,cliponaxis:ut.cliponaxis,orientation:ut.orientation,offset:ut.offset,width:ut.width,increasing:p5("increasing"),decreasing:p5("decreasing"),totals:p5("intermediate sums and total"),connector:{line:{color:Xf({},h5.color,{dflt:Tde.defaultLine}),width:Xf({},h5.width,{editType:"plot"}),dash:h5.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:ut.offsetgroup,alignmentgroup:ut.alignmentgroup,zorder:ut.zorder}});var y5=O((n_e,tB)=>{"use strict";tB.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var Wf=O((i_e,aB)=>{"use strict";aB.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var x5=O((l_e,oB)=>{"use strict";var nB=Re(),Ade=wf(),Mde=il().handleText,kde=Zv(),Cde=Rs(),iB=m5(),qde=br(),lB=Wf(),Sde=lB.INCREASING.COLOR,Lde=lB.DECREASING.COLOR,Dde="#4499FF";function g5(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",qde.defaultLine),e(r+".marker.line.width")}function Ede(e,r,t,a){function n(u,f){return nB.coerce(e,r,iB,u,f)}var i=kde(e,r,a,n);if(!i){r.visible=!1;return}Cde(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");Mde(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),r.texttemplate||n("textinfo")),g5(n,"increasing",Sde),g5(n,"decreasing",Lde),g5(n,"totals",Dde);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function Pde(e,r){var t,a;function n(l){return nB.coerce(a._input,a,iB,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var Rde=Re(),zde=y5();sB.exports=function(e,r,t){var a=!1;function n(o,s){return Rde.coerce(e,r,zde,o,s)}for(var i=0;i{"use strict";var fB=Zr(),cB=zs(),vB=Re().mergeArray,Nde=Jv(),dB=Tt().BADNUM;function b5(e){return e==="a"||e==="absolute"}function _5(e){return e==="t"||e==="total"}hB.exports=function(r,t){var a=fB.getFromId(r,t.xaxis||"x"),n=fB.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=cB(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=cB(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),d=new Array(c),h=0,p,m=!1,y=0;y{"use strict";var mB=Mf().setGroupPositions;yB.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,d;for(d=0;d{"use strict";var xB=kr(),vm=Re(),Fde=Yr(),Zf=Tt().BADNUM,Ide=Yf(),Hde=Ni().clearMinTextSize;bB.exports=function(r,t,a,n){var i=r._fullLayout;Hde("waterfall",i),Ide.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),Bde(r,t,a,n)};function Bde(e,r,t,a){var n=r.xaxis,i=r.yaxis;vm.makeTraceGroups(a,t,"trace bars").each(function(l){var o=xB.select(this),s=l[0].trace,u=vm.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,d=u.selectAll("g.line").data(vm.identity);d.enter().append("g").classed("line",!0),d.exit().remove();var h=d.size();d.each(function(p,m){if(!(m!==h-1&&!p.cNext)){var y=Ode(p,n,i,f),b=y[0],_=y[1],w="";b[0]!==Zf&&_[0]!==Zf&&b[1]!==Zf&&_[1]!==Zf&&(c==="spanning"&&!p.isSum&&m>0&&(f?w+="M"+b[0]+","+_[1]+"V"+_[0]:w+="M"+b[1]+","+_[0]+"H"+b[0]),c!=="between"&&(p.isSum||m{"use strict";var dm=kr(),wB=Yr(),TB=br(),Yde=qu().DESELECTDIM,Vde=To(),Ude=Ni().resizeText,Gde=Vde.styleTextPoints;function Xde(e,r,t){var a=t||dm.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");Ude(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=dm.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;dm.select(this).call(TB.fill,s.color).call(TB.stroke,s.line.color).call(wB.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?Yde:1)}}),Gde(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;wB.lineGroupStyle(dm.select(this).selectAll("path"),o.width,o.color,o.dash)})})}AB.exports={style:Xde}});var LB=O((v_e,SB)=>{"use strict";var Wde=Zr().hoverLabelText,kB=br().opacity,Zde=g0().hoverOnBars,CB=Wf(),qB={increasing:CB.INCREASING.SYMBOL,decreasing:CB.DECREASING.SYMBOL};SB.exports=function(r,t,a,n,i){var l=Zde(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function d(k){return Wde(c,k,s[f+"hoverformat"])}var h=l.index,p=o[h],m=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-m,l.delta=m,l.final=l.initial+l.delta;var y=d(Math.abs(l.delta));l.deltaLabel=m<0?"("+y+")":y,l.finalLabel=d(l.final),l.initialLabel=d(l.initial);var b=p.hi||s.hoverinfo,_=[];if(b&&b!=="none"&&b!=="skip"){var w=b==="all",x=b.split("+"),A=function(k){return w||x.indexOf(k)!==-1};p.isSum||(A("final")&&(u?!A("x"):!A("y"))&&_.push(l.finalLabel),A("delta")&&(m<0?_.push(l.deltaLabel+" "+qB.decreasing):_.push(l.deltaLabel+" "+qB.increasing)),A("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=Jde(s,p),[l]};function Jde(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(kB(a))return a;if(kB(n)&&i)return n}});var EB=O((d_e,DB)=>{"use strict";DB.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var RB=O((h_e,PB)=>{"use strict";PB.exports={attributes:m5(),layoutAttributes:y5(),supplyDefaults:x5().supplyDefaults,crossTraceDefaults:x5().crossTraceDefaults,supplyLayoutDefaults:uB(),calc:pB(),crossTraceCalc:gB(),plot:_B(),style:MB().style,hoverPoints:LB(),eventData:EB(),selectPoints:x0(),moduleType:"trace",name:"waterfall",basePlotModule:kl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var NB=O((p_e,zB)=>{"use strict";zB.exports=RB()});var mm=O((m_e,IB)=>{"use strict";var hm=sn(),$de=bo().attributes,Kde=ta(),Qde=Hn(),{hovertemplateAttrs:jde,texttemplateAttrs:ehe,templatefallbackAttrs:FB}=_n(),Co=yt().extendFlat,rhe=mi().pattern,pm=Kde({editType:"plot",arrayOk:!0,colorEditType:"plot"});IB.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Qde.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:rhe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Co({},hm.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:jde({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:FB(),texttemplate:ehe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:FB({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Co({},pm,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Co({},pm,{}),outsidetextfont:Co({},pm,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Co({},hm.showlegend,{arrayOk:!0}),legend:Co({},hm.legend,{arrayOk:!0}),legendrank:Co({},hm.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Co({},pm,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:$de({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var ym=O((y_e,OB)=>{"use strict";var the=zr(),A0=Re(),ahe=mm(),nhe=bo().defaults,ihe=il().handleText,lhe=Re().coercePattern;function HB(e,r){var t=A0.isArrayOrTypedArray(e),a=A0.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function BB(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");lhe(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function ohe(e,r,t,a){function n(_,w){return A0.coerce(e,r,ahe,_,w)}var i=n("labels"),l=n("values"),o=HB(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,BB(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",A0.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var d=n("textposition");ihe(e,r,a,n,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var h=Array.isArray(d)||d==="auto",p=h||d==="outside";p&&n("automargin"),(d==="inside"||d==="auto"||Array.isArray(d))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");nhe(r,a,n);var m=n("hole"),y=n("title.text");if(y){var b=n("title.position",m?"middle center":"top center");!m&&b==="middle center"&&(r.title.position="top center"),A0.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}OB.exports={handleLabelsAndValues:HB,handleMarkerDefaults:BB,supplyDefaults:ohe}});var gm=O((g_e,YB)=>{"use strict";YB.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var UB=O((x_e,VB)=>{"use strict";var she=Re(),uhe=gm();VB.exports=function(r,t){function a(n,i){return she.coerce(r,t,uhe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var xm=O((b_e,WB)=>{"use strict";var fhe=zr(),w5=In(),che=br(),vhe={};function dhe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var x=r.type==="funnelarea"?m:r.sort;return x&&t.sort(function(A,k){return k.v-A.v}),t[0]&&(t[0].vTotal=p),t}function GB(e){return function(t,a){return!t||(t=w5(t),!t.isValid())?!1:(t=che.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function hhe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=XB(i,vhe));for(var o=0,s=0;s{"use strict";var phe=Yi().appendArrayMultiPointValues;ZB.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),phe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var M5=O((w_e,mO)=>{"use strict";var xn=kr(),mhe=Et(),bm=Wn(),rO=br(),Pl=Yr(),La=Re(),yhe=La.strScale,$B=La.strTranslate,T5=ia(),tO=Ni(),ghe=tO.recordMinTextSize,xhe=tO.clearMinTextSize,aO=Kv().TEXTPAD,Tr=vv(),_m=JB(),KB=Re().isValidTextValue;function bhe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;xhe("pie",a),lO(r,e),dO(r,n);var i=La.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=xn.select(this),s=l[0],u=s.trace;She(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=xn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],d=!1;f.each(function(x,A){if(x.hidden){xn.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,M=s.cy,S=xn.select(this),D=S.selectAll("path.surface").data([x]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(nO,e,l),u.pull){var E=+Tr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],M+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=M;function R(U,B,J,X){var ee=X*(B[0]-U[0]),le=X*(B[1]-U[1]);return"a"+X*s.r+","+X*s.r+" 0 "+x.largeArc+(J?" 1 ":" 0 ")+ee+","+le}var N=u.hole;if(x.v===s.vTotal){var H="M"+(k+x.px0[0])+","+(M+x.px0[1])+R(x.px0,x.pxmid,!0,1)+R(x.pxmid,x.px0,!0,1)+"Z";N?D.attr("d","M"+(k+N*x.px0[0])+","+(M+N*x.px0[1])+R(x.px0,x.pxmid,!1,N)+R(x.pxmid,x.px0,!1,N)+"Z"+H):D.attr("d",H)}else{var I=R(x.px0,x.px1,!0,1);if(N){var Y=1-N;D.attr("d","M"+(k+N*x.px1[0])+","+(M+N*x.px1[1])+R(x.px1,x.px0,!1,N)+"l"+Y*x.px0[0]+","+Y*x.px0[1]+I+"Z")}else D.attr("d","M"+k+","+M+"l"+x.px0[0]+","+x.px0[1]+I+"Z")}hO(e,x,s);var G=Tr.castOption(u.textposition,x.pts),V=S.selectAll("g.slicetext").data(x.text&&G!=="none"?[0]:[]);V.enter().append("g").classed("slicetext",!0),V.exit().remove(),V.each(function(){var U=La.ensureSingle(xn.select(this),"text","",function(j){j.attr("data-notex",1)}),B=La.ensureUniformFontSize(e,G==="outside"?whe(u,x,a.font):iO(u,x,a.font));U.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Pl.font,B).call(T5.convertToTspans,e);var J=Pl.bBox(U.node()),X;if(G==="outside")X=eO(J,x);else if(X=oO(J,x,s),G==="auto"&&X.scale<1){var ee=La.ensureUniformFontSize(e,u.outsidetextfont);U.call(Pl.font,ee),J=Pl.bBox(U.node()),X=eO(J,x)}var le=X.textPosAngle,fe=le===void 0?x.pxmid:wm(s.r,le);if(X.targetX=k+fe[0]*X.rCenter+(X.x||0),X.targetY=M+fe[1]*X.rCenter+(X.y||0),pO(X,J),X.outside){var ce=X.targetY;x.yLabelMin=ce-J.height/2,x.yLabelMid=ce,x.yLabelMax=ce+J.height/2,x.labelExtraX=0,x.labelExtraY=0,d=!0}X.fontSize=B.size,ghe(u.type,X,a),l[A].transform=X,La.setTransormAndDisplay(U,X)})});var h=xn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(h.enter().append("g").classed("titletext",!0),h.exit().remove(),h.each(function(){var x=La.ensureSingle(xn.select(this),"text","",function(M){M.attr("data-notex",1)}),A=u.title.text;u._meta&&(A=La.templateString(A,u._meta)),x.text(A).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Pl.font,u.title.font).call(T5.convertToTspans,e);var k;u.title.position==="middle center"?k=Mhe(s):k=cO(s,n),x.attr("transform",$B(k.x,k.y)+yhe(Math.min(1,k.scale))+$B(k.tx,k.ty))}),d&&Che(c,u),_he(f,u),d&&u.automargin){var p=Pl.bBox(o.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),b=n.h*(m.y[1]-m.y[0]),_=(.5*y-s.r)/n.w,w=(.5*b-s.r)/n.h;mhe.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-_,xr:m.x[1]+_,yb:m.y[0]-w,yt:m.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=xn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function _he(e,r){e.each(function(t){var a=xn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,La.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;La.ensureSingle(a,"path","textline").call(rO.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function nO(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=bm.castHoverinfo({hoverinfo:[Tr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var d=s.rInscribed||0,h=n+s.pxmid[0]*(1-d),p=i+s.pxmid[1]*(1-d),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Tr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;La.isValidTextValue(b)&&y.push(b)}s.value=s.v,s.valueLabel=Tr.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Tr.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var _=f.hoverlabel,w=_.font,x=[];bm.loneHover({trace:l,x0:h-d*a.r,x1:h+d*a.r,y:p,_x0:o?n+s.TL[0]:h-d*a.r,_x1:o?n+s.TR[0]:h+d*a.r,_y0:o?i+s.TL[1]:p-d*a.r,_y1:o?i+s.BL[1]:p+d*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Tr.castOption(_.bgcolor,s.pts)||s.color,borderColor:Tr.castOption(_.bordercolor,s.pts),fontFamily:Tr.castOption(w.family,s.pts),fontSize:Tr.castOption(w.size,s.pts),fontColor:Tr.castOption(w.color,s.pts),nameLength:Tr.castOption(_.namelength,s.pts),textAlign:Tr.castOption(_.align,s.pts),hovertemplate:Tr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[_m(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[_m(s,f)],event:xn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=xn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=xn.event,r.emit("plotly_unhover",{points:[_m(c,f)],event:xn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(bm.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[_m(s,f)],bm.click(r,xn.event))})}function whe(e,r,t){var a=Tr.castOption(e.outsidetextfont.color,r.pts)||Tr.castOption(e.textfont.color,r.pts)||t.color,n=Tr.castOption(e.outsidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.outsidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.outsidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.outsidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.outsidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.outsidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.outsidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.outsidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function iO(e,r,t){var a=Tr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Tr.castOption(e._input.textfont.color,r.pts));var n=Tr.castOption(e.insidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.insidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.insidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.insidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.insidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.insidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.insidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.insidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||rO.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function lO(e,r){for(var t,a,n=0;n=-4;_-=2)b(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)b(Math.PI*(_+1),"tan")}if(c||h){for(_=4;_>=-4;_-=2)b(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)b(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/w,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||h)&&(y=QB(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||d)&&(y=jB(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var x=0,A=0,k=0;k=1)break}return m[x]}function The(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Mhe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function cO(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=vO(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=khe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=A5(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function khe(e,r){return e/(r===void 0?1:r)}function A5(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function vO(e){var r=e.pull;if(!r)return 0;var t;if(La.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function Che(e,r){var t,a,n,i,l,o,s,u,f,c,d,h,p;function m(w,x){return w.pxmid[1]-x.pxmid[1]}function y(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var A=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,M=a?w.yLabelMax:w.yLabelMin,S=w.cyFinal+l(w.px0[1],w.px1[1]),D=A-k,E,R,N,H,I,Y;if(D*s>0&&(w.labelExtraY=D),!!La.isArrayOrTypedArray(r.pull))for(R=0;R=(Tr.castOption(r.pull,N.pts)||0))&&((w.pxmid[1]-N.pxmid[1])*s>0?(H=N.cyFinal+l(N.px0[1],N.px1[1]),D=H-k-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(M+w.labelExtraY-S)*s>0&&(E=3*o*Math.abs(R-c.indexOf(w)),I=N.cxFinal+i(N.px0[0],N.px1[0]),Y=I+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,Y*o>0&&(w.labelExtraX+=Y)))}for(a=0;a<2;a++)for(n=a?m:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),h=[],d=0;d1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Ahe(u,r))}function wm(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function hO(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(x){return o.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),d=s("percent"),h=a.separators,p;if(p=u?[r.label]:[],f){var m=Tr.getFirstFilled(n.text,r.pts);KB(m)&&p.push(m)}c&&p.push(Tr.formatPieValue(r.v,h)),d&&p.push(Tr.formatPiePercent(r.v/t.vTotal,h)),r.text=p.join("
")}function y(x){return{label:x.label,value:x.v,valueLabel:Tr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Tr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:La.castOption(n,x.i,"customdata")}}if(i){var b=La.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var _=y(r),w=Tr.getFirstFilled(n.text,r.pts);(KB(w)||w==="")&&(_.text=w),r.text=La.texttemplateString({data:[_,n._meta],fallback:n.texttemplatefallback,labels:_,locale:e._fullLayout._d3locale,template:b})}}}function pO(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}mO.exports={plot:bhe,formatSliceLabel:hO,transformInsideText:oO,determineInsideTextFont:iO,positionTitleOutside:cO,prerenderTitles:lO,layoutAreas:dO,attachFxHandlers:nO,computeTransform:pO}});var xO=O((T_e,gO)=>{"use strict";var yO=kr(),Lhe=nf(),Dhe=Ni().resizeText;gO.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Dhe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=yO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){yO.select(this).call(Lhe,o,i,r)})})}});var _O=O(Jf=>{"use strict";var bO=Et();Jf.name="pie";Jf.plot=function(e,r,t,a){bO.plotBasePlot(Jf.name,e,r,t,a)};Jf.clean=function(e,r,t,a){bO.cleanBasePlot(Jf.name,e,r,t,a)}});var TO=O((M_e,wO)=>{"use strict";wO.exports={attributes:mm(),supplyDefaults:ym().supplyDefaults,supplyLayoutDefaults:UB(),layoutAttributes:gm(),calc:xm().calc,crossTraceCalc:xm().crossTraceCalc,plot:M5().plot,style:xO(),styleOne:nf(),moduleType:"trace",name:"pie",basePlotModule:_O(),categories:["pie-like","pie","showLegend"],meta:{}}});var MO=O((k_e,AO)=>{"use strict";AO.exports=TO()});var CO=O($f=>{"use strict";var kO=Et();$f.name="funnelarea";$f.plot=function(e,r,t,a){kO.plotBasePlot($f.name,e,r,t,a)};$f.clean=function(e,r,t,a){kO.cleanBasePlot($f.name,e,r,t,a)}});var k5=O((q_e,SO)=>{"use strict";var Da=mm(),Ehe=sn(),Phe=bo().attributes,{hovertemplateAttrs:Rhe,texttemplateAttrs:zhe,templatefallbackAttrs:qO}=_n(),Zs=yt().extendFlat;SO.exports={labels:Da.labels,label0:Da.label0,dlabel:Da.dlabel,values:Da.values,marker:{colors:Da.marker.colors,line:{color:Zs({},Da.marker.line.color,{dflt:null}),width:Zs({},Da.marker.line.width,{dflt:1}),editType:"calc"},pattern:Da.marker.pattern,editType:"calc"},text:Da.text,hovertext:Da.hovertext,scalegroup:Zs({},Da.scalegroup,{}),textinfo:Zs({},Da.textinfo,{flags:["label","text","value","percent"]}),texttemplate:zhe({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:qO({editType:"plot"}),hoverinfo:Zs({},Ehe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Rhe({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:qO(),textposition:Zs({},Da.textposition,{values:["inside","none"],dflt:"inside"}),textfont:Da.textfont,insidetextfont:Da.insidetextfont,title:{text:Da.title.text,font:Da.title.font,position:Zs({},Da.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Phe({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var C5=O((S_e,LO)=>{"use strict";var Nhe=gm().hiddenlabels;LO.exports={hiddenlabels:Nhe,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var PO=O((L_e,EO)=>{"use strict";var DO=Re(),Fhe=k5(),Ihe=bo().defaults,Hhe=il().handleText,Bhe=ym().handleLabelsAndValues,Ohe=ym().handleMarkerDefaults;EO.exports=function(r,t,a,n){function i(m,y){return DO.coerce(r,t,Fhe,m,y)}var l=i("labels"),o=i("values"),s=Bhe(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,Ohe(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate");i("texttemplatefallback");var d;if(c||(d=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||d&&d!=="none"){var h=i("textposition");Hhe(r,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else d==="none"&&i("textposition","none");Ihe(t,n,i);var p=i("title.text");p&&(i("title.position"),DO.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var zO=O((D_e,RO)=>{"use strict";var Yhe=Re(),Vhe=C5();RO.exports=function(r,t){function a(n,i){return Yhe.coerce(r,t,Vhe,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var q5=O((E_e,FO)=>{"use strict";var NO=xm();function Uhe(e,r){return NO.calc(e,r)}function Ghe(e){NO.crossTraceCalc(e,{type:"funnelarea"})}FO.exports={calc:Uhe,crossTraceCalc:Ghe}});var YO=O((P_e,OO)=>{"use strict";var Js=kr(),S5=Yr(),qo=Re(),Xhe=qo.strScale,IO=qo.strTranslate,HO=ia(),Whe=Yf(),Zhe=Whe.toMoveInsideBar,BO=Ni(),Jhe=BO.recordMinTextSize,$he=BO.clearMinTextSize,Khe=vv(),Kf=M5(),Qhe=Kf.attachFxHandlers,jhe=Kf.determineInsideTextFont,e1e=Kf.layoutAreas,r1e=Kf.prerenderTitles,t1e=Kf.positionTitleOutside,a1e=Kf.formatSliceLabel;OO.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;$he("funnelarea",n),r1e(t,r),e1e(t,n._size),qo.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Js.select(this),o=i[0],s=o.trace;i1e(i),l.each(function(){var u=Js.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,d){if(c.hidden){Js.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var h=o.cx,p=o.cy,m=Js.select(this),y=m.selectAll("path.surface").data([c]);y.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),m.call(Qhe,r,i);var b="M"+(h+c.TR[0])+","+(p+c.TR[1])+L5(c.TR,c.BR)+L5(c.BR,c.BL)+L5(c.BL,c.TL)+"Z";y.attr("d",b),a1e(r,c,o);var _=Khe.castOption(s.textposition,c.pts),w=m.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var x=qo.ensureSingle(Js.select(this),"text","",function(N){N.attr("data-notex",1)}),A=qo.ensureUniformFontSize(r,jhe(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(S5.font,A).call(HO.convertToTspans,r);var k=S5.bBox(x.node()),M,S,D,E=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+h,D=Math.min(c.TR[0],c.BR[0])+h,M=Zhe(S,D,E,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),M.fontSize=A.size,Jhe(s.type,M,n),i[d].transform=M,qo.setTransormAndDisplay(x,M)})});var f=Js.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=qo.ensureSingle(Js.select(this),"text","",function(p){p.attr("data-notex",1)}),d=s.title.text;s._meta&&(d=qo.templateString(d,s._meta)),c.text(d).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(S5.font,s.title.font).call(HO.convertToTspans,r);var h=t1e(o,n._size);c.attr("transform",IO(h.x,h.y)+Xhe(Math.min(1,h.scale))+IO(h.tx,h.ty))})})})};function L5(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function n1e(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function i1e(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var H=Math.sqrt(u);return{x:H,y:-H}}function c(){var H=f();return[H.x,H.y]}var d,h=[];h.push(c());var p,m;for(p=e.length-1;p>-1;p--)if(m=e[p],!m.hidden){var y=m.v/s;u+=y,h.push(c())}var b=1/0,_=-1/0;for(p=0;p-1;p--)if(m=e[p],!m.hidden){E+=1;var R=h[E][0],N=h[E][1];m.TL=[-R,N],m.TR=[R,N],m.BL=S,m.BR=D,m.pxmid=n1e(m.TR,m.BR),S=m.TL,D=m.TR}}});var GO=O((R_e,UO)=>{"use strict";var VO=kr(),l1e=nf(),o1e=Ni().resizeText;UO.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");o1e(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=VO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){VO.select(this).call(l1e,o,i,r)})})}});var WO=O((z_e,XO)=>{"use strict";XO.exports={moduleType:"trace",name:"funnelarea",basePlotModule:CO(),categories:["pie-like","funnelarea","showLegend"],attributes:k5(),layoutAttributes:C5(),supplyDefaults:PO(),supplyLayoutDefaults:zO(),calc:q5().calc,crossTraceCalc:q5().crossTraceCalc,plot:YO(),style:GO(),styleOne:nf(),meta:{}}});var JO=O((N_e,ZO)=>{"use strict";ZO.exports=WO()});var KO=O(Qf=>{"use strict";var $O=Et();Qf.name="indicator";Qf.plot=function(e,r,t,a){$O.plotBasePlot(Qf.name,e,r,t,a)};Qf.clean=function(e,r,t,a){$O.cleanBasePlot(Qf.name,e,r,t,a)}});var E5=O((I_e,aY)=>{"use strict";var So=yt().extendFlat,jO=yt().extendDeep,s1e=pi().overrideAll,eY=ta(),rY=Hn(),u1e=bo().attributes,Dt=An(),f1e=ot().templatedArray,Tm=Wf(),QO=bi().descriptionOnlyNumbers,D5=eY({editType:"plot",colorEditType:"plot"}),M0={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:rY.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},tY={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},c1e=f1e("step",jO({},M0,{range:tY}));aY.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:u1e({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:So({},D5,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:QO("value")},font:So({},D5,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:QO("value")},increasing:{symbol:{valType:"string",dflt:Tm.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:Tm.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:Tm.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:Tm.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:So({},D5,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:jO({},M0,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:rY.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:s1e({range:tY,visible:So({},Dt.visible,{dflt:!0}),tickmode:Dt.minor.tickmode,nticks:Dt.nticks,tick0:Dt.tick0,dtick:Dt.dtick,tickvals:Dt.tickvals,ticktext:Dt.ticktext,ticks:So({},Dt.ticks,{dflt:"outside"}),ticklen:Dt.ticklen,tickwidth:Dt.tickwidth,tickcolor:Dt.tickcolor,ticklabelstep:Dt.ticklabelstep,showticklabels:Dt.showticklabels,labelalias:Dt.labelalias,tickfont:eY({}),tickangle:Dt.tickangle,tickformat:Dt.tickformat,tickformatstops:Dt.tickformatstops,tickprefix:Dt.tickprefix,showtickprefix:Dt.showtickprefix,ticksuffix:Dt.ticksuffix,showticksuffix:Dt.showticksuffix,separatethousands:Dt.separatethousands,exponentformat:Dt.exponentformat,minexponent:Dt.minexponent,showexponent:Dt.showexponent,editType:"plot"},"plot"),steps:c1e,threshold:{line:{color:So({},M0.line.color,{}),width:So({},M0.line.width,{dflt:1}),editType:"plot"},thickness:So({},M0.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var P5=O((H_e,nY)=>{"use strict";nY.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var oY=O((B_e,lY)=>{"use strict";var ol=Re(),Mm=E5(),v1e=bo().defaults,iY=ot(),d1e=Vn(),Am=P5(),h1e=vh(),p1e=dh(),m1e=ph(),y1e=mh();function g1e(e,r,t,a){function n(k,M){return ol.coerce(e,r,Mm,k,M)}v1e(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=ol.extendFlat({},a.font);s.size=void 0,ol.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=Am.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=ol.extendFlat({},a.font);f.size=void 0,ol.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||Am.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=ol.extendFlat({},a.font);c.size=.25*(o||u||Am.defaultNumberFontSize),ol.coerceFont(n,"title.font",c),n("title.text");var d,h,p,m;function y(k,M){return ol.coerce(d,h,Mm.gauge,k,M)}function b(k,M){return ol.coerce(p,m,Mm.gauge.axis,k,M)}if(r._hasGauge){d=e.gauge,d||(d={}),h=iY.newContainer(r,"gauge"),y("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),y("bgcolor",a.paper_bgcolor),y("borderwidth"),y("bordercolor"),y("bar.color"),y("bar.line.color"),y("bar.line.width");var x=Am.valueThickness*(r.gauge.shape==="bullet"?.5:1);y("bar.thickness",x),d1e(d,h,{name:"steps",handleItemDefaults:x1e}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},d&&(p=d.axis||{}),m=iY.newContainer(h,"axis"),b("visible"),r._range=b("range",r._range);var A={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};h1e(p,m,b,"linear"),y1e(p,m,b,"linear",A),m1e(p,m,b,"linear",A),p1e(p,m,b,A)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function x1e(e,r){function t(a,n){return ol.coerce(e,r,Mm.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}lY.exports={supplyDefaults:g1e}});var uY=O((O_e,sY)=>{"use strict";function b1e(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}sY.exports={calc:b1e}});function Rl(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function Lo(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var km=it(()=>{});function ul(){}function cY(){return this.rgb().formatHex()}function q1e(){return this.rgb().formatHex8()}function S1e(){return gY(this).formatHsl()}function vY(){return this.rgb().formatRgb()}function Eo(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=_1e.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?dY(r):t===3?new ca(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?Cm(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?Cm(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=w1e.exec(e))?new ca(r[1],r[2],r[3],1):(r=T1e.exec(e))?new ca(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=A1e.exec(e))?Cm(r[1],r[2],r[3],r[4]):(r=M1e.exec(e))?Cm(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=k1e.exec(e))?mY(r[1],r[2]/100,r[3]/100,1):(r=C1e.exec(e))?mY(r[1],r[2]/100,r[3]/100,r[4]):fY.hasOwnProperty(e)?dY(fY[e]):e==="transparent"?new ca(NaN,NaN,NaN,0):null}function dY(e){return new ca(e>>16&255,e>>8&255,e&255,1)}function Cm(e,r,t,a){return a<=0&&(e=r=t=NaN),new ca(e,r,t,a)}function C0(e){return e instanceof ul||(e=Eo(e)),e?(e=e.rgb(),new ca(e.r,e.g,e.b,e.opacity)):new ca}function ec(e,r,t,a){return arguments.length===1?C0(e):new ca(e,r,t,a==null?1:a)}function ca(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function hY(){return`#${$s(this.r)}${$s(this.g)}${$s(this.b)}`}function L1e(){return`#${$s(this.r)}${$s(this.g)}${$s(this.b)}${$s((isNaN(this.opacity)?1:this.opacity)*255)}`}function pY(){let e=Sm(this.opacity);return`${e===1?"rgb(":"rgba("}${Ks(this.r)}, ${Ks(this.g)}, ${Ks(this.b)}${e===1?")":`, ${e})`}`}function Sm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ks(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $s(e){return e=Ks(e),(e<16?"0":"")+e.toString(16)}function mY(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Fi(e,r,t,a)}function gY(e){if(e instanceof Fi)return new Fi(e.h,e.s,e.l,e.opacity);if(e instanceof ul||(e=Eo(e)),!e)return new Fi;if(e instanceof Fi)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t0&&s<1?0:l,new Fi(l,o,s,e.opacity)}function q0(e,r,t,a){return arguments.length===1?gY(e):new Fi(e,r,t,a==null?1:a)}function Fi(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function yY(e){return e=(e||0)%360,e<0?e+360:e}function qm(e){return Math.max(0,Math.min(1,e||0))}function R5(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var Do,Qs,jf,k0,sl,_1e,w1e,T1e,A1e,M1e,k1e,C1e,fY,Lm=it(()=>{km();Do=.7,Qs=1/Do,jf="\\s*([+-]?\\d+)\\s*",k0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_1e=/^#([0-9a-f]{3,8})$/,w1e=new RegExp(`^rgb\\(${jf},${jf},${jf}\\)$`),T1e=new RegExp(`^rgb\\(${sl},${sl},${sl}\\)$`),A1e=new RegExp(`^rgba\\(${jf},${jf},${jf},${k0}\\)$`),M1e=new RegExp(`^rgba\\(${sl},${sl},${sl},${k0}\\)$`),k1e=new RegExp(`^hsl\\(${k0},${sl},${sl}\\)$`),C1e=new RegExp(`^hsla\\(${k0},${sl},${sl},${k0}\\)$`),fY={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Rl(ul,Eo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:cY,formatHex:cY,formatHex8:q1e,formatHsl:S1e,formatRgb:vY,toString:vY});Rl(ca,ec,Lo(ul,{brighter(e){return e=e==null?Qs:Math.pow(Qs,e),new ca(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Do:Math.pow(Do,e),new ca(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ca(Ks(this.r),Ks(this.g),Ks(this.b),Sm(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hY,formatHex:hY,formatHex8:L1e,formatRgb:pY,toString:pY}));Rl(Fi,q0,Lo(ul,{brighter(e){return e=e==null?Qs:Math.pow(Qs,e),new Fi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Do:Math.pow(Do,e),new Fi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new ca(R5(e>=240?e-240:e+120,n,a),R5(e,n,a),R5(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new Fi(yY(this.h),qm(this.s),qm(this.l),Sm(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Sm(this.opacity);return`${e===1?"hsl(":"hsla("}${yY(this.h)}, ${qm(this.s)*100}%, ${qm(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var Dm,Em,z5=it(()=>{Dm=Math.PI/180,Em=180/Math.PI});function AY(e){if(e instanceof fl)return new fl(e.l,e.a,e.b,e.opacity);if(e instanceof zl)return MY(e);e instanceof ca||(e=C0(e));var r=H5(e.r),t=H5(e.g),a=H5(e.b),n=N5((.2225045*r+.7168786*t+.0606169*a)/bY),i,l;return r===t&&t===a?i=l=n:(i=N5((.4360747*r+.3850649*t+.1430804*a)/xY),l=N5((.0139322*r+.0971045*t+.7141733*a)/_Y)),new fl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function tc(e,r,t,a){return arguments.length===1?AY(e):new fl(e,r,t,a==null?1:a)}function fl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function N5(e){return e>D1e?Math.pow(e,1/3):e/TY+wY}function F5(e){return e>rc?e*e*e:TY*(e-wY)}function I5(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function H5(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function E1e(e){if(e instanceof zl)return new zl(e.h,e.c,e.l,e.opacity);if(e instanceof fl||(e=AY(e)),e.a===0&&e.b===0)return new zl(NaN,0{km();Lm();z5();Pm=18,xY=.96422,bY=1,_Y=.82521,wY=4/29,rc=6/29,TY=3*rc*rc,D1e=rc*rc*rc;Rl(fl,tc,Lo(ul,{brighter(e){return new fl(this.l+Pm*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new fl(this.l-Pm*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=xY*F5(r),e=bY*F5(e),t=_Y*F5(t),new ca(I5(3.1338561*r-1.6168667*e-.4906146*t),I5(-.9787684*r+1.9161415*e+.033454*t),I5(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));Rl(zl,S0,Lo(ul,{brighter(e){return new zl(this.h,this.c,this.l+Pm*(e==null?1:e),this.opacity)},darker(e){return new zl(this.h,this.c,this.l-Pm*(e==null?1:e),this.opacity)},rgb(){return MY(this).rgb()}}))});function P1e(e){if(e instanceof js)return new js(e.h,e.s,e.l,e.opacity);e instanceof ca||(e=C0(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(SY*a+CY*r-qY*t)/(SY+CY-qY),i=a-n,l=(L0*(t-n)-O5*i)/Rm,o=Math.sqrt(l*l+i*i)/(L0*n*(1-n)),s=o?Math.atan2(l,i)*Em-120:NaN;return new js(s<0?s+360:s,o,n,e.opacity)}function ac(e,r,t,a){return arguments.length===1?P1e(e):new js(e,r,t,a==null?1:a)}function js(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var LY,B5,O5,Rm,L0,CY,qY,SY,DY=it(()=>{km();Lm();z5();LY=-.14861,B5=1.78277,O5=-.29227,Rm=-.90649,L0=1.97294,CY=L0*Rm,qY=L0*B5,SY=B5*O5-Rm*LY;Rl(js,ac,Lo(ul,{brighter(e){return e=e==null?Qs:Math.pow(Qs,e),new js(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Do:Math.pow(Do,e),new js(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Dm,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new ca(255*(r+t*(LY*a+B5*n)),255*(r+t*(O5*a+Rm*n)),255*(r+t*(L0*a)),this.opacity)}}))});var eu=it(()=>{Lm();kY();DY()});function Y5(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function zm(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a{});function Fm(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return Y5((t-a/r)*r,n,i,l,o)}}var V5=it(()=>{Nm()});var nc,U5=it(()=>{nc=e=>()=>e});function EY(e,r){return function(t){return e+t*r}}function R1e(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function Po(e,r){var t=r-e;return t?EY(e,t>180||t<-180?t-360*Math.round(t/360):t):nc(isNaN(e)?r:e)}function PY(e){return(e=+e)==1?zt:function(r,t){return t-r?R1e(r,t,e):nc(isNaN(r)?t:r)}}function zt(e,r){var t=r-e;return t?EY(e,t):nc(isNaN(e)?r:e)}var ru=it(()=>{U5()});function RY(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l{eu();Nm();V5();ru();D0=(function e(r){var t=PY(r);function a(n,i){var l=t((n=ec(n)).r,(i=ec(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=zt(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a})(1);zY=RY(zm),NY=RY(Fm)});function ic(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n{});function FY(e,r){return(Im(r)?ic:X5)(e,r)}function X5(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l{E0();Hm()});function Bm(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}var Z5=it(()=>{});function bn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var P0=it(()=>{});function Om(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=Ro(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var J5=it(()=>{E0()});function z1e(e){return function(){return e}}function N1e(e){return function(r){return e(r)+""}}function Ym(e,r){var t=K5.lastIndex=$5.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=K5.exec(e))&&(n=$5.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:bn(a,n)})),t=$5.lastIndex;return t{P0();K5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$5=new RegExp(K5.source,"g")});function Ro(e,r){var t=typeof r,a;return r==null||t==="boolean"?nc(r):(t==="number"?bn:t==="string"?(a=Eo(r))?(r=a,D0):Ym:r instanceof Eo?D0:r instanceof Date?Bm:Im(r)?ic:Array.isArray(r)?X5:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Om:bn)(e,r)}var E0=it(()=>{eu();G5();W5();Z5();P0();J5();Q5();U5();Hm()});function IY(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var HY=it(()=>{});function BY(e,r){var t=Po(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var OY=it(()=>{ru()});function YY(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var VY=it(()=>{});function j5(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a{UY=180/Math.PI,Vm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function XY(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Vm:j5(r.a,r.b,r.c,r.d,r.e,r.f)}function WY(e){return e==null?Vm:(Um||(Um=document.createElementNS("http://www.w3.org/2000/svg","g")),Um.setAttribute("transform",e),(e=Um.transform.baseVal.consolidate())?(e=e.matrix,j5(e.a,e.b,e.c,e.d,e.e,e.f)):Vm)}var Um,ZY=it(()=>{GY()});function JY(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,d,h,p){if(u!==c||f!==d){var m=h.push("translate(",null,r,null,t);p.push({i:m-4,x:bn(u,c)},{i:m-2,x:bn(f,d)})}else(c||d)&&h.push("translate("+c+r+d+t)}function l(u,f,c,d){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),d.push({i:c.push(n(c)+"rotate(",null,a)-2,x:bn(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,d){u!==f?d.push({i:c.push(n(c)+"skewX(",null,a)-2,x:bn(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,d,h,p){if(u!==c||f!==d){var m=h.push(n(h)+"scale(",null,",",null,")");p.push({i:m-4,x:bn(u,c)},{i:m-2,x:bn(f,d)})}else(c!==1||d!==1)&&h.push(n(h)+"scale("+c+","+d+")")}return function(u,f){var c=[],d=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,d),l(u.rotate,f.rotate,c,d),o(u.skewX,f.skewX,c,d),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,d),u=f=null,function(h){for(var p=-1,m=d.length,y;++p{P0();ZY();$Y=JY(XY,"px, ","px)","deg)"),KY=JY(WY,", ",")",")")});function jY(e){return((e=Math.exp(e))+1/e)/2}function I1e(e){return((e=Math.exp(e))-1/e)/2}function H1e(e){return((e=Math.exp(2*e))-1)/(e+1)}var F1e,eV,rV=it(()=>{F1e=1e-12;eV=(function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],d=l[2],h=f-o,p=c-s,m=h*h+p*p,y,b;if(m{eu();ru();aV=tV(Po),nV=tV(zt)});function e_(e,r){var t=zt((e=tc(e)).l,(r=tc(r)).l),a=zt(e.a,r.a),n=zt(e.b,r.b),i=zt(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}var lV=it(()=>{eu();ru()});function oV(e){return function(r,t){var a=e((r=S0(r)).h,(t=S0(t)).h),n=zt(r.c,t.c),i=zt(r.l,t.l),l=zt(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var sV,uV,fV=it(()=>{eu();ru();sV=oV(Po),uV=oV(zt)});function cV(e){return(function r(t){t=+t;function a(n,i){var l=e((n=ac(n)).h,(i=ac(i)).h),o=zt(n.s,i.s),s=zt(n.l,i.l),u=zt(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a})(1)}var vV,dV,hV=it(()=>{eu();ru();vV=cV(Po),dV=cV(zt)});function r_(e,r){r===void 0&&(r=e,e=Ro);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{E0()});function mV(e,r){for(var t=new Array(r),a=0;a{});var t_={};_W(t_,{interpolate:()=>Ro,interpolateArray:()=>FY,interpolateBasis:()=>zm,interpolateBasisClosed:()=>Fm,interpolateCubehelix:()=>vV,interpolateCubehelixLong:()=>dV,interpolateDate:()=>Bm,interpolateDiscrete:()=>IY,interpolateHcl:()=>sV,interpolateHclLong:()=>uV,interpolateHsl:()=>aV,interpolateHslLong:()=>nV,interpolateHue:()=>BY,interpolateLab:()=>e_,interpolateNumber:()=>bn,interpolateNumberArray:()=>ic,interpolateObject:()=>Om,interpolateRgb:()=>D0,interpolateRgbBasis:()=>zY,interpolateRgbBasisClosed:()=>NY,interpolateRound:()=>YY,interpolateString:()=>Ym,interpolateTransformCss:()=>$Y,interpolateTransformSvg:()=>KY,interpolateZoom:()=>eV,piecewise:()=>r_,quantize:()=>mV});var a_=it(()=>{E0();W5();Nm();V5();Z5();HY();OY();P0();Hm();J5();VY();Q5();QY();rV();G5();iV();lV();fV();hV();pV();yV()});var TV=O((L6e,wV)=>{"use strict";var lu=kr(),B1e=(a_(),n6(t_)).interpolate,gV=(a_(),n6(t_)).interpolateNumber,zo=Re(),O1e=zo.strScale,z0=zo.strTranslate,Y1e=zo.rad2deg,V1e=ka().MID_SHIFT,iu=Yr(),tu=P5(),Xm=ia(),Ea=Zr(),U1e=bp(),G1e=wp(),X1e=An(),lc=br(),n_={left:"start",center:"middle",right:"end"},au={left:0,center:.5,right:1},xV=/[yzafpnµmkMGTPEZY]/;function N0(e){return e&&e.duration>0}wV.exports=function(r,t,a,n){var i=r._fullLayout,l;N0(a)&&n&&(l=n()),zo.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=lu.select(this),c=u._hasGauge,d=u._isAngular,h=u._isBullet,p=u.domain,m={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},y=m.l+m.w/2,b=m.t+m.h/2,_=Math.min(m.w/2,m.h),w=tu.innerRadius*_,x,A,k,M=u.align||"center";if(A=b,!c)x=m.l+au[M]*m.w,k=function(V){return bV(V,m.w,m.h)};else if(d&&(x=y,A=b+_/2,k=function(V){return K1e(V,.9*w)}),h){var S=tu.bulletPadding,D=1-tu.bulletNumberDomainSize+S;x=m.l+(D+(1-D)*au[M])*m.w,k=function(V){return bV(V,(tu.bulletNumberDomainSize-S)*m.w,m.h)}}J1e(r,f,o,{numbersX:x,numbersY:A,numbersScaler:k,transitionOpts:a,onComplete:l});var E,R;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var N=f.selectAll("g.angular").data(d?o:[]);N.exit().remove();var H=f.selectAll("g.angularaxis").data(d?o:[]);H.exit().remove(),d&&Z1e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:H,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var I=f.selectAll("g.bullet").data(h?o:[]);I.exit().remove();var Y=f.selectAll("g.bulletaxis").data(h?o:[]);Y.exit().remove(),h&&W1e(r,f,o,{gauge:I,layer:Y,size:m,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var G=f.selectAll("text.title").data(o);G.exit().remove(),G.enter().append("text").classed("title",!0),G.attr("text-anchor",function(){return h?n_.right:n_[u.title.align]}).text(u.title.text).call(iu.font,u.title.font).call(Xm.convertToTspans,r),G.attr("transform",function(){var V=m.l+m.w*au[u.title.align],U,B=tu.titlePadding,J=iu.bBox(G.node());if(c){if(d)if(u.gauge.axis.visible){var X=iu.bBox(H.node());U=X.top-B-J.bottom}else U=m.t+m.h/2-_/2-J.bottom-B;h&&(U=A-(J.top+J.bottom)/2,V=m.l-tu.bulletPadding*m.w)}else U=u._numbersTop-B-J.bottom;return z0(V,U)})})};function W1e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,d=a.onComplete,h,p,m,y,b;i.enter().append("g").classed("bullet",!0),i.attr("transform",z0(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,x=f.x[0],A=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-tu.bulletNumberDomainSize:1);h=R0(e,n.gauge.axis),h._id="xbulletaxis",h.domain=[x,A],h.setScale(),p=Ea.calcTicks(h),m=Ea.makeTransTickFn(h),y=Ea.getTickSigns(h)[2],b=u.t+u.h,h.visible&&(Ea.drawTicks(e,h,{vals:h.ticks==="inside"?Ea.clipEnds(h,p):p,layer:l,path:Ea.makeTickPath(h,b,y),transFn:m}),Ea.drawLabels(e,h,{vals:p,layer:l,transFn:m,labelFns:Ea.makeLabelFns(h,b)}));function k(H){H.attr("width",function(I){return Math.max(0,h.c2p(I.range[1])-h.c2p(I.range[0]))}).attr("x",function(I){return h.c2p(I.range[0])}).attr("y",function(I){return .5*(1-I.thickness)*_}).attr("height",function(I){return I.thickness*_})}var M=[o].concat(n.gauge.steps),S=i.selectAll("g.bg-bullet").data(M);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(k).call(nu),S.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(nu),N0(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){d&&d()}).each("interrupt",function(){d&&d()}).attr("width",Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var E=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(E);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",h.c2p(n.gauge.threshold.value)).attr("x2",h.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call(lc.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var N=i.selectAll("g.gauge-outline").data([s]);N.enter().append("g").classed("gauge-outline",!0).append("rect"),N.select("rect").call(k).call(nu),N.exit().remove()}function Z1e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,d=a.layer,h=a.transitionOpts,p=a.onComplete,m=Math.PI/2;function y(ee){var le=n.gauge.axis.range[0],fe=n.gauge.axis.range[1],ce=(ee-le)/(fe-le)*Math.PI-m;return ce<-m?-m:ce>m?m:ce}function b(ee){return lu.svg.arc().innerRadius((o+l)/2-ee/2*(l-o)).outerRadius((o+l)/2+ee/2*(l-o)).startAngle(-m)}function _(ee){ee.attr("d",function(le){return b(le.thickness).startAngle(y(le.range[0])).endAngle(y(le.range[1]))()})}var w,x,A,k;c.enter().append("g").classed("angular",!0),c.attr("transform",z0(f[0],f[1])),d.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),d.selectAll("g.xangularaxistick,path,text").remove(),w=R0(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var M=function(ee){return(w.range[0]-ee.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},S={},D=Ea.makeLabelFns(w,0),E=D.labelStandoff;S.xFn=function(ee){var le=M(ee);return Math.cos(le)*E},S.yFn=function(ee){var le=M(ee),fe=Math.sin(le)>0?.2:1;return-Math.sin(le)*(E+ee.fontSize*fe)+Math.abs(Math.cos(le))*(ee.fontSize*V1e)},S.anchorFn=function(ee){var le=M(ee),fe=Math.cos(le);return Math.abs(fe)<.1?"middle":fe>0?"start":"end"},S.heightFn=function(ee,le,fe){var ce=M(ee);return-.5*(1+Math.sin(ce))*fe};var R=function(ee){return z0(f[0]+l*Math.cos(ee),f[1]-l*Math.sin(ee))};A=function(ee){return R(M(ee))};var N=function(ee){var le=M(ee);return R(le)+"rotate("+-Y1e(le)+")"};if(x=Ea.calcTicks(w),k=Ea.getTickSigns(w)[2],w.visible){k=w.ticks==="inside"?-1:1;var H=(w.linewidth||1)/2;Ea.drawTicks(e,w,{vals:x,layer:d,path:"M"+k*H+",0h"+k*w.ticklen,transFn:N}),Ea.drawLabels(e,w,{vals:x,layer:d,transFn:A,labelFns:S})}var I=[s].concat(n.gauge.steps),Y=c.selectAll("g.bg-arc").data(I);Y.enter().append("g").classed("bg-arc",!0).append("path"),Y.select("path").call(_).call(nu),Y.exit().remove();var G=b(n.gauge.bar.thickness),V=c.selectAll("g.value-arc").data([n.gauge.bar]);V.enter().append("g").classed("value-arc",!0).append("path");var U=V.select("path");N0(h)?(U.transition().duration(h.duration).ease(h.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",$1e(G,y(t[0].lastY),y(t[0].y))),n._lastValue=t[0].y):U.attr("d",typeof t[0].y=="number"?G.endAngle(y(t[0].y)):"M0,0Z"),U.call(nu),V.exit().remove(),I=[];var B=n.gauge.threshold.value;(B||B===0)&&I.push({range:[B,B],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var J=c.selectAll("g.threshold-arc").data(I);J.enter().append("g").classed("threshold-arc",!0).append("path"),J.select("path").call(_).call(nu),J.exit().remove();var X=c.selectAll("g.gauge-outline").data([u]);X.enter().append("g").classed("gauge-outline",!0).append("path"),X.select("path").call(_).call(nu),X.exit().remove()}function J1e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=n_[o],u=a.transitionOpts,f=a.onComplete,c=zo.ensureSingle(r,"g","numbers"),d,h,p,m=[];n._hasNumber&&m.push("number"),n._hasDelta&&(m.push("delta"),n.delta.position==="left"&&m.reverse());var y=c.selectAll("text").data(m);y.enter().append("text"),y.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),y.exit().remove();function b(R,N,H,I){if(R.match("s")&&H>=0!=I>=0&&!N(H).slice(-1).match(xV)&&!N(I).slice(-1).match(xV)){var Y=R.slice().replace("s","f").replace(/\d+/,function(V){return parseInt(V)-1}),G=R0(e,{tickformat:Y});return function(V){return Math.abs(V)<1?Ea.tickText(G,V).text:N(V)}}else return N}function _(){var R=R0(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Ea.prepTicks(R);var N=function(V){return Ea.tickText(R,V).text},H=n.number.suffix,I=n.number.prefix,Y=c.select("text.number");function G(){var V=typeof t[0].y=="number"?I+N(t[0].y)+H:"-";Y.text(V).call(iu.font,n.number.font).call(Xm.convertToTspans,e)}return N0(u)?Y.transition().duration(u.duration).ease(u.easing).each("end",function(){G(),f&&f()}).each("interrupt",function(){G(),f&&f()}).attrTween("text",function(){var V=lu.select(this),U=gV(t[0].lastY,t[0].y);n._lastValue=t[0].y;var B=b(n.number.valueformat,N,t[0].lastY,t[0].y);return function(J){V.text(I+B(U(J))+H)}}):G(),d=_V(I+N(t[0].y)+H,n.number.font,s,e),Y}function w(){var R=R0(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),Ea.prepTicks(R);var N=function(J){return Ea.tickText(R,J).text},H=n.delta.suffix,I=n.delta.prefix,Y=function(J){var X=n.delta.relative?J.relativeDelta:J.delta;return X},G=function(J,X){return J===0||typeof J!="number"||isNaN(J)?"-":(J>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+I+X(J)+H},V=function(J){return J.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=Y(t[0]));var U=c.select("text.delta");U.call(iu.font,n.delta.font).call(lc.fill,V({delta:n._deltaLastValue}));function B(){U.text(G(Y(t[0]),N)).call(lc.fill,V(t[0])).call(Xm.convertToTspans,e)}return N0(u)?U.transition().duration(u.duration).ease(u.easing).tween("text",function(){var J=lu.select(this),X=Y(t[0]),ee=n._deltaLastValue,le=b(n.delta.valueformat,N,ee,X),fe=gV(ee,X);return n._deltaLastValue=X,function(ce){J.text(G(fe(ce),le)),J.call(lc.fill,V({delta:fe(ce)}))}}).each("end",function(){B(),f&&f()}).each("interrupt",function(){B(),f&&f()}):B(),h=_V(G(Y(t[0]),N),n.delta.font,s,e),U}var x=n.mode+n.align,A;if(n._hasDelta&&(A=w(),x+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,x+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=h),n._hasNumber&&(_(),x+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=d),n._hasDelta&&n._hasNumber){var k=[(d.left+d.right)/2,(d.top+d.bottom)/2],M=[(h.left+h.right)/2,(h.top+h.bottom)/2],S,D,E=.75*n.delta.font.size;n.delta.position==="left"&&(S=Gm(n,"deltaPos",0,-1*(d.width*au[n.align]+h.width*(1-au[n.align])+E),x,Math.min),D=k[1]-M[1],p={width:d.width+h.width+E,height:Math.max(d.height,h.height),left:h.left+S,right:d.right,top:Math.min(d.top,h.top+D),bottom:Math.max(d.bottom,h.bottom+D)}),n.delta.position==="right"&&(S=Gm(n,"deltaPos",0,d.width*(1-au[n.align])+h.width*au[n.align]+E,x,Math.max),D=k[1]-M[1],p={width:d.width+h.width+E,height:Math.max(d.height,h.height),left:d.left,right:h.right+S,top:Math.min(d.top,h.top+D),bottom:Math.max(d.bottom,h.bottom+D)}),n.delta.position==="bottom"&&(S=null,D=h.height,p={width:Math.max(d.width,h.width),height:d.height+h.height,left:Math.min(d.left,h.left),right:Math.max(d.right,h.right),top:d.bottom-d.height,bottom:d.bottom+h.height}),n.delta.position==="top"&&(S=null,D=d.top,p={width:Math.max(d.width,h.width),height:d.height+h.height,left:Math.min(d.left,h.left),right:Math.max(d.right,h.right),top:d.bottom-d.height-h.height,bottom:d.bottom}),A.attr({dx:S,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);x+=R[2];var N=Gm(n,"numbersScale",1,R[0],x,Math.min),H;n._scaleNumbers||(N=1),n._isAngular?H=l-N*p.bottom:H=l-N*(p.top+p.bottom)/2,n._numbersTop=N*p.top+H;var I=p[o];o==="center"&&(I=(p.left+p.right)/2);var Y=i-N*I;return Y=Gm(n,"numbersTranslate",0,Y,x,Math.max),z0(Y,H)+O1e(N)})}function nu(e){e.each(function(r){lc.stroke(lu.select(this),r.line.color)}).each(function(r){lc.fill(lu.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function $1e(e,r,t){return function(){var a=B1e(r,t);return function(n){return e.endAngle(a(n))()}}}function R0(e,r,t){var a=e._fullLayout,n=zo.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return zo.coerce(n,i,X1e,s,u)}return U1e(n,i,o,l,a),G1e(n,i,o,l),i}function bV(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function K1e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function _V(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=lu.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(Xm.convertToTspans,a).call(iu.font,r),iu.bBox(i.node())}function Gm(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=zo.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var MV=O((D6e,AV)=>{"use strict";AV.exports={moduleType:"trace",name:"indicator",basePlotModule:KO(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:E5(),supplyDefaults:oY().supplyDefaults,calc:uY().calc,plot:TV(),meta:{}}});var CV=O((E6e,kV)=>{"use strict";kV.exports=MV()});var Zm=O((P6e,EV)=>{"use strict";var Wm=Re().extendFlat,F0=Mi(),qV=bi().axisHoverFormat,{hovertemplateAttrs:Q1e,templatefallbackAttrs:j1e}=_n(),LV=mi().dash,epe=Pc(),DV=Wf(),rpe=DV.INCREASING.COLOR,tpe=DV.DECREASING.COLOR,i_=F0.line;function SV(e){return{line:{color:Wm({},i_.color,{dflt:e}),width:i_.width,dash:LV,editType:"style"},editType:"style"}}EV.exports={xperiod:F0.xperiod,xperiod0:F0.xperiod0,xperiodalignment:F0.xperiodalignment,xhoverformat:qV("x"),yhoverformat:qV("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:Wm({},i_.width,{}),dash:Wm({},LV,{}),editType:"style"},increasing:SV(rpe),decreasing:SV(tpe),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:Q1e({},{keys:["open","high","low","close"]}),hovertemplatefallback:j1e(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Wm({},epe.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:F0.zorder}});var l_=O((R6e,PV)=>{"use strict";var ape=gr(),npe=Re();PV.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=ape.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,npe.minRowLength(i))),t._length=c,c}}});var NV=O((z6e,zV)=>{"use strict";var ipe=Re(),lpe=l_(),ope=Rs(),spe=Zm();zV.exports=function(r,t,a,n){function i(o,s){return ipe.coerce(r,t,spe,o,s)}var l=lpe(r,t,i,n);if(!l){t.visible=!1;return}ope(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),RV(r,t,i,"increasing"),RV(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function RV(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var o_=O((N6e,IV)=>{"use strict";var oc=Re(),Jm=oc._,$m=Zr(),upe=zs(),I0=Tt().BADNUM;function fpe(e,r){var t=$m.getFromId(e,r.xaxis),a=$m.getFromId(e,r.yaxis),n=vpe(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=FV(e,r,l,o,a,cpe);return r._extremes[t._id]=$m.findExtremes(t,o,{vpad:i/2}),s.length?(oc.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function cpe(e,r,t,a){return{o:e,h:r,l:t,c:a}}function FV(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=oc.isArrayOrTypedArray(r.text),c=oc.isArrayOrTypedArray(r.hovertext),d=!0,h=null,p=!!r.xperiodalignment,m=[],y=0;yh):d=A>_,h=A;var k=i(_,w,x,A);k.pos=b,k.yc=(_+A)/2,k.i=y,k.dir=d?"increasing":"decreasing",k.x=k.pos,k.y=[x,w],p&&(k.orig_p=t[y]),f&&(k.tx=r.text[y]),c&&(k.htx=r.hovertext[y]),m.push(k)}else m.push({pos:b,empty:!0})}return r._extremes[n._id]=$m.findExtremes(n,oc.concat(s,o),{padded:!0}),m.length&&(m[0].t={labels:{open:Jm(e,"open:")+" ",high:Jm(e,"high:")+" ",low:Jm(e,"low:")+" ",close:Jm(e,"close:")+" "}}),m}function vpe(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l{"use strict";var dpe=kr(),HV=Re();BV.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;HV.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=dpe.select(this),f=s[0],c=f.t,d=f.trace;if(d.visible!==!0||c.empty){u.remove();return}var h=c.tickLen,p=u.selectAll("path").data(HV.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(m){if(m.empty)return"M0,0Z";var y=l.c2p(m.pos-h,!0),b=l.c2p(m.pos+h,!0),_=o?(y+b)/2:l.c2p(m.pos,!0),w=i.c2p(m.o,!0),x=i.c2p(m.h,!0),A=i.c2p(m.l,!0),k=i.c2p(m.c,!0);return"M"+y+","+w+"H"+_+"M"+_+","+x+"V"+A+"M"+b+","+k+"H"+_})})}});var VV=O((I6e,YV)=>{"use strict";var s_=kr(),hpe=Yr(),ppe=br();YV.exports=function(r,t,a){var n=a||s_.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;s_.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;s_.select(this).style("fill","none").call(ppe.stroke,s.color).call(hpe.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var f_=O((H6e,ZV)=>{"use strict";var u_=Zr(),mpe=Re(),Km=Wn(),ype=br(),gpe=Re().fillText,UV=Wf(),xpe={increasing:UV.INCREASING.SYMBOL,decreasing:UV.DECREASING.SYMBOL};function bpe(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?XV(e,r,t,a):WV(e,r,t,a)}function GV(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,d,h=o.bPos||0,p=function(E){return E.pos+h-r},m=o.bdPos||o.tickLen,y=o.wHover,b=Math.min(1,m/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-b,d=e.maxSpikeDistance-b;function _(E){var R=p(E);return Km.inbox(R-y,R+y,c)}function w(E){var R=E[u],N=E[f];return R===N||Km.inbox(R-t,N-t,c)}function x(E){return(_(E)+w(E))/2}var A=Km.getDistanceFunction(a,_,w,x);if(Km.getClosest(n,A,e),e.index===!1)return null;var k=n[e.index];if(k.empty)return null;var M=k.dir,S=l[M],D=S.line.color;return ype.opacity(D)&&S.line.width?e.color=D:e.color=S.fillcolor,e.x0=i.c2p(k.pos+h-m,!0),e.x1=i.c2p(k.pos+h+m,!0),e.xLabelVal=k.orig_p!==void 0?k.orig_p:k.pos,e.spikeDistance=x(k)*d/c,e.xSpike=i.c2p(k.pos,!0),e}function XV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=GV(e,r,t,a);if(!u)return[];var f=n[u.index],c=f.hi||l.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var d=["high","open","close","low"],h={},p=0;p"+o.labels[m]+u_.hoverLabelText(i,y,l.yhoverformat)):(_=mpe.extendFlat({},u),_.y0=_.y1=b,_.yLabelVal=y,_.yLabel=o.labels[m]+u_.hoverLabelText(i,y,l.yhoverformat),_.name="",s.push(_),h[y]=_)}return s}function WV(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=GV(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,d=f.dir;function h(x){return o.labels[x]+u_.hoverLabelText(i,l[x][c],l.yhoverformat)}var p=f.hi||l.hoverinfo||"",m=p.split("+"),y=p==="all",b=y||m.indexOf("y")!==-1,_=y||m.indexOf("text")!==-1,w=b?[h("open"),h("high"),h("low"),h("close")+" "+xpe[d]]:[];return _&&gpe(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}ZV.exports={hoverPoints:bpe,hoverSplit:XV,hoverOnPoints:WV}});var c_=O((B6e,JV)=>{"use strict";JV.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o{"use strict";$V.exports={moduleType:"trace",name:"ohlc",basePlotModule:kl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Zm(),supplyDefaults:NV(),calc:o_().calc,plot:OV(),style:VV(),hoverPoints:f_().hoverPoints,selectPoints:c_()}});var jV=O((Y6e,QV)=>{"use strict";QV.exports=KV()});var nU=O((V6e,aU)=>{"use strict";var _pe=rx(),oi=Mi(),eU=Dl(),wpe=Hn(),rU=bi().axisHoverFormat,{hovertemplateAttrs:Tpe,templatefallbackAttrs:Ape}=_n(),Nl=yt().extendFlat,sc=oi.marker,tU=sc.line;aU.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:oi.xperiod,yperiod:oi.yperiod,xperiod0:oi.xperiod0,yperiod0:oi.yperiod0,xperiodalignment:oi.xperiodalignment,yperiodalignment:oi.yperiodalignment,xhoverformat:rU("x"),yhoverformat:rU("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Nl({},sc.symbol,{arrayOk:!1,editType:"plot"}),opacity:Nl({},sc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Nl({},sc.angle,{arrayOk:!1,editType:"calc"}),size:Nl({},sc.size,{arrayOk:!1,editType:"calc"}),color:Nl({},sc.color,{arrayOk:!1,editType:"style"}),line:{color:Nl({},tU.color,{arrayOk:!1,dflt:wpe.defaultLine,editType:"style"}),width:Nl({},tU.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:_pe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:eU.offsetgroup,alignmentgroup:eU.alignmentgroup,selected:{marker:oi.selected.marker,editType:"style"},unselected:{marker:oi.unselected.marker,editType:"style"},text:Nl({},oi.text,{}),hovertext:Nl({},oi.hovertext,{}),hovertemplate:Tpe({}),hovertemplatefallback:Ape(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:oi.zorder}});var d_=O((U6e,oU)=>{"use strict";var v_=Re().extendFlat,iU=bi().axisHoverFormat,tn=Zm(),uc=nU();function lU(e){return{line:{color:v_({},uc.line.color,{dflt:e}),width:uc.line.width,editType:"style"},fillcolor:uc.fillcolor,editType:"style"}}oU.exports={xperiod:tn.xperiod,xperiod0:tn.xperiod0,xperiodalignment:tn.xperiodalignment,xhoverformat:iU("x"),yhoverformat:iU("y"),x:tn.x,open:tn.open,high:tn.high,low:tn.low,close:tn.close,line:{width:v_({},uc.line.width,{}),editType:"style"},increasing:lU(tn.increasing.line.color.dflt),decreasing:lU(tn.decreasing.line.color.dflt),text:tn.text,hovertext:tn.hovertext,hovertemplate:tn.hovertemplate,hovertemplatefallback:tn.hovertemplatefallback,whiskerwidth:v_({},uc.whiskerwidth,{dflt:0}),hoverlabel:tn.hoverlabel,zorder:uc.zorder}});var h_=O((G6e,sU)=>{"use strict";sU.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var cU=O((X6e,fU)=>{"use strict";var Mpe=gr(),kpe=Re(),Cpe=h_();function uU(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var vU=Zr(),Spe=Re(),Lpe=Ss().getAxisGroup,dU=["v","h"];function Dpe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(M==="positive"?(U=S*(k?1:.5),X=J,B=X=E):M==="negative"?(U=X=E,B=S*(k?1:.5),ee=J):(U=B=S,X=ee=J),ve){var be=x.pointpos,_e=x.jitter,ge=x.marker.size/2,W=0;be+_e>=0&&(W=J*(be+_e),W>U?(qe=!0,ce=ge,le=W):W>X&&(ce=ge,le=U)),W<=U&&(le=U);var Q=0;be-_e<=0&&(Q=-J*(be-_e),Q>B?(qe=!0,j=ge,fe=Q):Q>ee&&(j=ge,fe=B)),Q<=B&&(fe=B)}else le=U,fe=B;var Z=new Array(f.length);for(u=0;u{"use strict";var Epe=Re(),Ppe=br(),Rpe=l_(),zpe=Rs(),Npe=d_();gU.exports=function(r,t,a,n){function i(o,s){return Epe.coerce(r,t,Npe,o,s)}var l=Rpe(r,t,i,n);if(!l){t.visible=!1;return}zpe(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),yU(r,t,i,"increasing"),yU(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function yU(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",Ppe.addOpacity(n,.5))}});var TU=O((J6e,wU)=>{"use strict";var bU=Re(),_U=Zr(),Fpe=zs(),Ipe=o_().calcCommon;wU.exports=function(e,r){var t=e._fullLayout,a=_U.getFromId(e,r.xaxis),n=_U.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=Fpe(r,a,"x",i).vals,o=Ipe(e,r,i,l,n,Hpe);return o.length?(bU.extendFlat(o[0].t,{num:t._numBoxes,dPos:bU.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function Hpe(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var SU=O(($6e,qU)=>{"use strict";var fc=kr(),ou=Re(),Bpe=Yr(),AU=5,Ope=.01;function Ype(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;ou.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=fc.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var d,h;c.orientation==="h"?(d=l,h=i):(d=i,h=l),MU(s,{pos:d,val:h},c,f,n),kU(s,{x:i,y:l},c,f),CU(s,{pos:d,val:h},c,f)})}function MU(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,d=t.whiskerwidth||0,h=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,b;Array.isArray(a.bdPos)?(y=a.bdPos[0],b=a.bdPos[1]):(y=a.bdPos,b=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?ou.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return fc.select(this).attr("d","M0,0Z");var x=o.c2l(w.pos+u,!0),A=o.l2p(x-y)+c,k=o.l2p(x+b)+c,M=s?(A+k)/2:o.l2p(x)+c,S=t.whiskerwidth,D=s?A*S+(1-S)*M:o.l2p(x-f)+c,E=s?k*S+(1-S)*M:o.l2p(x+f)+c,R=o.l2p(x-y*m)+c,N=o.l2p(x+b*m)+c,H=t.sizemode==="sd",I=l.c2p(H?w.mean-w.sd:w.q1,!0),Y=H?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),G=ou.constrain(H?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(I,Y)+1,Math.max(I,Y)-1),V=w.lf===void 0||t.boxpoints===!1||H,U=l.c2p(V?w.min:w.lf,!0),B=l.c2p(V?w.max:w.uf,!0),J=l.c2p(w.ln,!0),X=l.c2p(w.un,!0);i?fc.select(this).attr("d","M"+G+","+R+"V"+N+"M"+I+","+A+"V"+k+(p?"H"+J+"L"+G+","+N+"L"+X+","+k:"")+"H"+Y+"V"+A+(p?"H"+X+"L"+G+","+R+"L"+J+","+A:"")+"Z"+(h?"M"+I+","+M+"H"+U+"M"+Y+","+M+"H"+B+(d===0?"":"M"+U+","+D+"V"+E+"M"+B+","+D+"V"+E):"")):fc.select(this).attr("d","M"+R+","+G+"H"+N+"M"+A+","+I+"H"+k+(p?"V"+J+"L"+N+","+G+"L"+k+","+X:"")+"V"+Y+"H"+A+(p?"V"+X+"L"+R+","+G+"L"+A+","+J:"")+"Z"+(h?"M"+M+","+I+"V"+U+"M"+M+","+Y+"V"+B+(d===0?"":"M"+D+","+U+"H"+E+"M"+D+","+B+"H"+E):""))})}function kU(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;ou.seedPseudoRandom();var u=function(d){return d.forEach(function(h){h.t=a,h.trace=t}),d},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(d){var h,p=d.pts2,m=Math.max((d.max-d.min)/10,d.q3-d.q1),y=m*1e-9,b=m*Ope,_=[],w=0,x;if(t.jitter){if(m===0)for(w=1,_=new Array(p.length),h=0;hd.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(Bpe.translatePoints,n,i)}function CU(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var d=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?ou.identity:[]);d.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),d.exit().remove(),d.each(function(h){var p=i.c2l(h.pos+o,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,b=l?(m+y)/2:i.l2p(p)+s,_=n.c2p(h.mean,!0),w=n.c2p(h.mean-h.sd,!0),x=n.c2p(h.mean+h.sd,!0);t.orientation==="h"?fc.select(this).attr("d","M"+_+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+m+"L"+x+","+b+"Z":"")):fc.select(this).attr("d","M"+m+","+_+"H"+y+(u==="sd"?"m0,0L"+b+","+w+"L"+m+","+_+"L"+b+","+x+"Z":""))})}qU.exports={plot:Ype,plotBoxAndWhiskers:MU,plotPoints:kU,plotBoxMean:CU}});var DU=O((K6e,LU)=>{"use strict";var p_=kr(),m_=br(),y_=Yr();function Vpe(e,r,t){var a=t||p_.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=p_.select(this),l=n[0].trace,o=l.line.width;function s(c,d,h,p){c.style("stroke-width",d+"px").call(m_.stroke,h).call(m_.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var d=p_.select(this),h=l[c.dir];s(d,h.line.width,h.line.color,h.fillcolor),d.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(m_.stroke,l.line.color);var f=i.selectAll("path.point");y_.pointStyle(f,l,e)}})}function Upe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?y_.selectedPointStyle(n,a):y_.pointStyle(n,a,e)}LU.exports={style:Vpe,styleOnSelect:Upe}});var PU=O((Q6e,EU)=>{"use strict";EU.exports={moduleType:"trace",name:"candlestick",basePlotModule:kl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:d_(),layoutAttributes:h_(),supplyLayoutDefaults:cU().supplyLayoutDefaults,crossTraceCalc:mU().crossTraceCalc,supplyDefaults:xU(),calc:TU(),plot:SU().plot,layerName:"boxlayer",style:DU().style,hoverPoints:f_().hoverPoints,selectPoints:c_()}});var zU=O((j6e,RU)=>{"use strict";RU.exports=PU()});var Fa=O((e7e,FU)=>{"use strict";var NU=Object.getOwnPropertySymbols,Gpe=Object.prototype.hasOwnProperty,Xpe=Object.prototype.propertyIsEnumerable;function Wpe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Zpe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}FU.exports=Zpe()?Object.assign:function(e,r){for(var t,a=Wpe(e),n,i=1;i{var jm=Fa();function IU(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}jm(IU.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function g_(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Qm(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}jm(g_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Rr.local.differentCalendars||Rr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Qm(Math.abs(this.year()),4)+"-"+Qm(this.month(),2)+"-"+Qm(this.day(),2)}});function x_(){this.shortYearCutoff="+10"}jm(x_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new g_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Qm(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Rr=HU.exports=new IU;Rr.cdate=g_;Rr.baseCalendar=x_;Rr.calendars.gregorian=b_});var BU=O(()=>{var __=Fa(),ba=Ia();__(ba.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});ba.local=ba.regionalOptions[""];__(ba.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});__(ba.baseCalendar.prototype,{UNIX_EPOCH:ba.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:ba.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw ba.local.invalidFormat||ba.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,A){for(var k=1;w+k1},f=function(x,A,k,M){var S=""+A;if(u(x,M))for(;S.length1},_=function(N,H){var I=b(N,H),Y=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],G=new RegExp("^-?\\d{1,"+Y+"}"),V=r.substring(S).match(G);if(!V)throw(ba.local.missingNumberAt||ba.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=V[0].length,parseInt(V[0],10)},w=this,x=function(){if(typeof o=="function"){b("m");var N=o.call(w,r.substring(S));return S+=N.length,N}return _("m")},A=function(N,H,I,Y){for(var G=b(N,Y)?I:H,V=0;V-1){d=1,h=p;for(var R=this.daysInMonth(c,d);h>R;R=this.daysInMonth(c,d))d++,h-=R}return f>-1?this.fromJD(f):this.newDate(c,d,h)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var OU=O(()=>{var No=Ia(),Jpe=Fa(),w_=No.instance();function ey(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ey.prototype=new No.baseCalendar;Jpe(ey.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Kpe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Qpe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(jpe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw No.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw No.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,No.local.invalidyear),n=Io[a-Io[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=w_.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Fo[e-Fo[0]],a=t>>13,n=a?12:11;if(r>n)throw No.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,No.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=rme(e,i,t,n);return w_.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=w_.fromJD(e),t=eme(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match($pe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(ey.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var $pe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Kpe=/^\d?\d[iI]?/m,Qpe=/^闰?十?[一二三四五六七八九]?月/m,jpe=/^闰?十?[一二三四五六七八九]?/m;No.calendars.chinese=ey;var Fo=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Io=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function eme(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Io[n.year-Io[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Io[i.year-Io[0]];var c=u>>9&4095,d=u>>5&15,h=u&31,p,m=new Date(c,d-1,h),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var b=Fo[i.year-Fo[0]],_;for(_=0;_<13;_++){var w=b&1<<12-_?30:29;if(p>13;return!x||_=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var d=Fo[l.year-Fo[0]],h=d>>13,p;h&&(l.month>h||l.isIntercalary)?p=l.month:p=l.month-1;for(var m=0;m>9&4095,w=b>>5&15,x=b&31,A=new Date(_,w-1,x+c);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var YU=O(()=>{var su=Ia(),tme=Fa();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new su.baseCalendar;tme(T_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,su.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,su.local.invalidYear||su.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,su.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,su.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});su.calendars.coptic=T_});var VU=O(()=>{var Fl=Ia(),ame=Fa();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new Fl.baseCalendar;ame(A_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Fl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Fl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Fl.local.invalidDate);return{century:nme[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Fl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var nme={20:"Fruitbat",21:"Anchovy"};Fl.calendars.discworld=A_});var UU=O(()=>{var uu=Ia(),ime=Fa();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new uu.baseCalendar;ime(M_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,uu.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,uu.local.invalidYear||uu.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,uu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,uu.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});uu.calendars.ethiopian=M_});var GU=O(()=>{var Ho=Ia(),lme=Fa();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new Ho.baseCalendar;lme(k_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,ry(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Ho.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&ry(this.daysInYear(e),10)===5?30:r===9&&ry(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ho.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Ho.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function ry(e,r){return e-r*Math.floor(e/r)}Ho.calendars.hebrew=k_});var XU=O(()=>{var H0=Ia(),ome=Fa();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new H0.baseCalendar;ome(C_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,H0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,H0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,H0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});H0.calendars.islamic=C_});var WU=O(()=>{var B0=Ia(),sme=Fa();function q_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q_.prototype=new B0.baseCalendar;sme(q_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,B0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,B0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,B0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});B0.calendars.julian=q_});var JU=O(()=>{var si=Ia(),ume=Fa();function L_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L_.prototype=new si.baseCalendar;ume(L_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,si.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,si.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,si.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,si.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,si.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,si.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,si.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,si.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,si.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=S_(e+8+340,365);return[Math.floor(r/20)+1,S_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[ZU(e+20,20),ZU(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,si.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function S_(e,r){return e-r*Math.floor(e/r)}function ZU(e,r){return S_(e-1,r)+1}si.calendars.mayan=L_});var KU=O(()=>{var fu=Ia(),fme=Fa();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new fu.baseCalendar;var $U=fu.instance("gregorian");fme(D_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,fu.local.invalidYear||fu.regionalOptions[""].invalidYear);return $U.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,fu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,fu.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});fu.calendars.nanakshahi=D_});var QU=O(()=>{var cu=Ia(),cme=Fa();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new cu.baseCalendar;cme(E_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,cu.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,cu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=cu.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=cu.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var cc=Ia(),vme=Fa();function ay(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function ty(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}ay.prototype=new cc.baseCalendar;vme(ay.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cc.local.invalidYear);return ty(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,cc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,ty(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});cc.calendars.persian=ay;cc.calendars.jalali=ay});var eG=O(()=>{var vu=Ia(),dme=Fa(),ny=vu.instance();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new vu.baseCalendar;dme(P_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,vu.local.invalidYear),t=this._t2gYear(r.year());return ny.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,vu.local.invalidYear),n=this._t2gYear(a.year());return ny.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,vu.local.invalidDate),n=this._t2gYear(a.year());return ny.toJD(n,a.month(),a.day())},fromJD:function(e){var r=ny.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});vu.calendars.taiwan=P_});var rG=O(()=>{var du=Ia(),hme=Fa(),iy=du.instance();function R_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R_.prototype=new du.baseCalendar;hme(R_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,du.local.invalidYear),t=this._t2gYear(r.year());return iy.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,du.local.invalidYear),n=this._t2gYear(a.year());return iy.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,du.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,du.local.invalidDate),n=this._t2gYear(a.year());return iy.toJD(n,a.month(),a.day())},fromJD:function(e){var r=iy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});du.calendars.thai=R_});var tG=O(()=>{var hu=Ia(),pme=Fa();function z_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z_.prototype=new hu.baseCalendar;pme(z_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,hu.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,hu.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Bo[n]-Bo[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,hu.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Bo[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Bo[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=hu.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=hu.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});hu.calendars.ummalqura=z_;var Bo=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var nG=O((E7e,aG)=>{"use strict";aG.exports=Ia();BU();OU();YU();VU();UU();GU();XU();WU();JU();KU();QU();jU();eG();rG();tG()});var cG=O((P7e,fG)=>{"use strict";var lG=nG(),O0=Re(),oG=Tt(),mme=oG.EPOCHJD,yme=oG.ONEDAY,I_={valType:"enumerated",values:O0.sortObjectKeys(lG.calendars),editType:"calc",dflt:"gregorian"},sG=function(e,r,t,a){var n={};return n[t]=I_,O0.coerce(e,r,n,t,a)},gme=function(e,r,t,a){for(var n=0;n{"use strict";vG.exports=cG()});var Ame=O((z7e,pG)=>{var hG=bF();hG.register([wI(),dH(),JH(),NB(),MO(),JO(),CV(),jV(),zU(),dG()]);pG.exports=hG});return Ame();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-geo-assets.js b/dist/plotly-geo-assets.js index 31034b1f27e..198c05dd293 100644 --- a/dist/plotly-geo-assets.js +++ b/dist/plotly-geo-assets.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.6.0 +* plotly.js v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -16,7 +16,11 @@ var Plotly = (() => { var __getOwnPropNames = Object.getOwnPropertyNames; var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; // dist/topojson/africa_110m.json @@ -149,7 +153,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); diff --git a/dist/plotly-geo.js b/dist/plotly-geo.js index 9f4f92dbf80..438da9ad24e 100644 --- a/dist/plotly-geo.js +++ b/dist/plotly-geo.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo) v3.6.0 +* plotly.js (geo) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -35,14 +35,18 @@ var Plotly = (() => { }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; // src/version.js var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -78,7 +82,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -105,7 +109,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8131,7 +8135,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8371,7 +8375,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8488,7 +8492,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8533,7 +8537,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9936,7 +9940,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9955,7 +9959,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color) { return !!matchers.CSS_UNIT.exec(color); } @@ -13778,9 +13782,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -16033,6 +16037,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -17745,6 +17760,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -17873,24 +17889,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -32790,7 +32813,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -34592,6 +34625,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -36807,6 +36846,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -36816,6 +36889,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -36846,26 +36920,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.disk, - click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.pencil, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -38004,8 +38082,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -46033,6 +46117,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -47044,19 +47129,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); @@ -62203,34 +62287,35 @@ var Plotly = (() => { } return false; } + var ANTIMERIDIAN_LON_SHIFT = 360; + function doesCrossAntiMeridian(pts) { + for (let l = 0; l < pts.length - 1; l++) { + if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; + } + return null; + } function feature2polygons(feature) { var geometry = feature.geometry; var coords = geometry.coordinates; var loc = feature.id; var polygons = []; var appendPolygon, j, k, m; - function doesCrossAntiMerdian(pts) { - for (var l = 0; l < pts.length - 1; l++) { - if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; - } - return null; - } if (loc === "RUS" || loc === "FJI") { appendPolygon = function(_pts) { var pts; - if (doesCrossAntiMerdian(_pts) === null) { + if (doesCrossAntiMeridian(_pts) === null) { pts = _pts; } else { pts = new Array(_pts.length); for (m = 0; m < _pts.length; m++) { - pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + 360 : _pts[m][0], _pts[m][1]]; + pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + ANTIMERIDIAN_LON_SHIFT : _pts[m][0], _pts[m][1]]; } } polygons.push(polygon.tester(pts)); }; } else if (loc === "ATA") { appendPolygon = function(pts) { - var crossAntiMeridianIndex = doesCrossAntiMerdian(pts); + var crossAntiMeridianIndex = doesCrossAntiMeridian(pts); if (crossAntiMeridianIndex === null) { return polygons.push(polygon.tester(pts)); } @@ -62238,7 +62323,7 @@ var Plotly = (() => { var si = 0; for (m = 0; m < pts.length; m++) { if (m > crossAntiMeridianIndex) { - stitch[si++] = [pts[m][0] + 360, pts[m][1]]; + stitch[si++] = [pts[m][0] + ANTIMERIDIAN_LON_SHIFT, pts[m][1]]; } else if (m === crossAntiMeridianIndex) { stitch[si++] = pts[m]; stitch[si++] = [pts[m][0], -90]; @@ -62428,13 +62513,39 @@ var Plotly = (() => { function computeBbox(d) { return turfBbox(d); } + function getFitboundsLonRange(lons) { + const sorted = lons.filter(isFinite).sort((a, b) => a - b); + if (sorted.length < 2) return null; + const n = sorted.length; + const naiveSpan = sorted[n - 1] - sorted[0]; + if (naiveSpan >= 360) return null; + let maxGap = -Infinity; + let gapStart = -1; + for (let i = 0; i < n - 1; i++) { + const gap = sorted[i + 1] - sorted[i]; + if (gap > maxGap) { + maxGap = gap; + gapStart = i; + } + } + const antimeridianGap = 360 - naiveSpan; + if (maxGap <= antimeridianGap) return null; + return [sorted[gapStart + 1], sorted[gapStart] + ANTIMERIDIAN_LON_SHIFT]; + } + function unwrapLonRange([lon0, lon1]) { + return [lon0, lon0 > 0 && lon1 < 0 ? lon1 + ANTIMERIDIAN_LON_SHIFT : lon1]; + } module.exports = { locationToFeature, feature2polygons, getTraceGeojson, extractTraceFeature, fetchTraceGeoData, - computeBbox + computeBbox, + doesCrossAntiMeridian, + getFitboundsLonRange, + unwrapLonRange, + ANTIMERIDIAN_LON_SHIFT }; } }); @@ -62702,7 +62813,7 @@ var Plotly = (() => { "node_modules/d3-array/dist/d3-array.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : factory(global2.d3 = global2.d3 || {}); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function ascending(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; @@ -63113,7 +63224,7 @@ var Plotly = (() => { exports2.variance = variance; exports2.zip = zip; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -63122,7 +63233,7 @@ var Plotly = (() => { "node_modules/d3-geo/dist/d3-geo.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array()) : typeof define === "function" && false ? define(["exports", "d3-array"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}, global2.d3)); - })(exports, function(exports2, d3Array) { + })(exports, (function(exports2, d3Array) { "use strict"; function adder() { return new Adder(); @@ -65431,7 +65542,7 @@ var Plotly = (() => { exports2.geoTransverseMercator = transverseMercator; exports2.geoTransverseMercatorRaw = transverseMercatorRaw; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -65440,7 +65551,7 @@ var Plotly = (() => { "node_modules/d3-geo-projection/dist/d3-geo-projection.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_geo(), require_d3_array()) : typeof define === "function" && false ? define(["exports", "d3-geo", "d3-array"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3); - })(exports, function(exports2, d3Geo, d3Array) { + })(exports, (function(exports2, d3Geo, d3Array) { "use strict"; var abs = Math.abs; var atan = Math.atan; @@ -68817,7 +68928,7 @@ var Plotly = (() => { exports2.geoWinkel3 = winkel3; exports2.geoWinkel3Raw = winkel3Raw; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -69200,6 +69311,7 @@ var Plotly = (() => { var createGeoZoom = require_zoom(); var constants = require_constants15(); var geoUtils = require_geo_location_utils(); + var { getFitboundsLonRange, unwrapLonRange } = geoUtils; var topojsonUtils = require_topojson_utils(); var topojsonFeature = require_topojson_client().feature; function Geo(opts) { @@ -69337,6 +69449,7 @@ var Plotly = (() => { this._render(); }; proto.updateProjection = function(geoCalcData, fullLayout) { + var _a; var gd = this.graphDiv; var geoLayout = fullLayout[this.id]; var gs = fullLayout._size; @@ -69363,6 +69476,31 @@ var Plotly = (() => { axLat._length = extent[1][1] - extent[0][1]; axLon.range = getAutoRange(gd, axLon); axLat.range = getAutoRange(gd, axLat); + if (!this.hasChoropleth && geoLayout.fitbounds === "locations") { + var lons = []; + var hasLocationData = false; + for (var i = 0; i < geoCalcData.length; i++) { + var calcTrace = geoCalcData[i]; + var fitTrace = calcTrace[0].trace; + if (fitTrace.visible !== true) continue; + if ((_a = fitTrace.locations) == null ? void 0 : _a.length) { + hasLocationData = true; + break; + } + for (var j = 0; j < calcTrace.length; j++) { + var lonlat = calcTrace[j].lonlat; + if (lonlat) lons.push(lonlat[0]); + } + } + if (!hasLocationData) { + var fitLonRange = getFitboundsLonRange(lons); + if (fitLonRange) { + var lonDataSpan = Lib.aggNums(Math.max, null, lons) - Lib.aggNums(Math.min, null, lons); + var lonPad = lonDataSpan > 0 ? (axLon.range[1] - axLon.range[0] - lonDataSpan) / 2 * (fitLonRange[1] - fitLonRange[0]) / lonDataSpan : 0; + axLon.range = [fitLonRange[0] - lonPad, fitLonRange[1] + lonPad]; + } + } + } var midLon = (axLon.range[0] + axLon.range[1]) / 2; var midLat = (axLat.range[0] + axLat.range[1]) / 2; if (geoLayout._isScoped) { @@ -69772,11 +69910,9 @@ var Plotly = (() => { } function makeRangeBox(lon, lat) { var clipPad = constants.clipPad; - var lon0 = lon[0] + clipPad; - var lon1 = lon[1] - clipPad; + const [lon0, lon1] = unwrapLonRange([lon[0] + clipPad, lon[1] - clipPad]); var lat0 = lat[0] + clipPad; var lat1 = lat[1] - clipPad; - if (lon0 > 0 && lon1 < 0) lon1 += 360; var dlon4 = (lon1 - lon0) / 4; return { type: "Polygon", @@ -70048,6 +70184,7 @@ var Plotly = (() => { var Lib = require_lib(); var handleSubplotDefaults = require_subplot_defaults(); var getSubplotData = require_get_data().getSubplotData; + var { unwrapLonRange } = require_geo_location_utils(); var constants = require_constants15(); var layoutAttributes = require_layout_attributes6(); var axesNames = constants.axesNames; @@ -70130,9 +70267,7 @@ var Plotly = (() => { } var lonRange = geoLayoutOut.lonaxis.range; var latRange = geoLayoutOut.lataxis.range; - var lon0 = lonRange[0]; - var lon1 = lonRange[1]; - if (lon0 > 0 && lon1 < 0) lon1 += 360; + const [lon0, lon1] = unwrapLonRange(lonRange); var centerLon = (lon0 + lon1) / 2; var projLon; if (!isAlbersUsa) { @@ -70609,13 +70744,14 @@ var Plotly = (() => { var Axes = require_axes(); var attributes = require_attributes24(); var fillText = require_lib().fillText; + var { ANTIMERIDIAN_LON_SHIFT } = require_geo_location_utils(); module.exports = function hoverPoints(pointData, xval, yval) { var cd = pointData.cd; var trace = cd[0].trace; var geo = pointData.subplot; var pt, i, j, isInside; var xy = [xval, yval]; - var altXy = [xval + 360, yval]; + const altXy = [xval + ANTIMERIDIAN_LON_SHIFT, yval]; for (i = 0; i < cd.length; i++) { pt = cd[i]; isInside = false; diff --git a/dist/plotly-geo.min.js b/dist/plotly-geo.min.js index 7b7c84a4e52..f55d46c25a1 100644 --- a/dist/plotly-geo.min.js +++ b/dist/plotly-geo.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo - minified) v3.6.0 +* plotly.js (geo - minified) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,13 +12,13 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var nH=Object.defineProperty,aH=Object.defineProperties;var iH=Object.getOwnPropertyDescriptors;var $_=Object.getOwnPropertySymbols;var oH=Object.prototype.hasOwnProperty,lH=Object.prototype.propertyIsEnumerable;var K_=(e,r,t)=>r in e?nH(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,tc=(e,r)=>{for(var t in r||(r={}))oH.call(r,t)&&K_(e,t,r[t]);if($_)for(var t of $_(r))lH.call(r,t)&&K_(e,t,r[t]);return e},cd=(e,r)=>aH(e,iH(r));var te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var vd=te(Q_=>{"use strict";Q_.version="3.6.0"});var r6=te((e6,hd)=>{(function(r,t,n){t[r]=t[r]||n(),typeof hd!="undefined"&&hd.exports&&(hd.exports=t[r])})("Promise",typeof window!="undefined"?window:e6,function(){"use strict";var r,t,n,a=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,b,A){return Object.defineProperty(C,x,{value:b,writable:!0,configurable:A!==!1})}}catch(_){r=function(x,b,A){return x[b]=A,x}}n=function(){var C,x,b;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,D){b=new A(M,D),x?x.next=b:C=b,x=b,b=void 0},drain:function(){var M=C;for(C=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(_,C){n.add(_,C),t||(t=i(n.drain))}function l(_){var C,x=typeof _;return _!=null&&(x=="object"||x=="function")&&(C=_.then),typeof C=="function"?C:!1}function s(){for(var _=0;_0&&o(s,x))}catch(b){v.call(new d(x),b)}}}function v(_){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=_,C.state=2,C.chain.length>0&&o(s,C))}function h(_,C,x,b){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},n=self.document;function a(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(c){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=v;function v(c,g){return cg?1:c>=g?0:NaN}e.descending=function(c,g){return gc?1:g>=c?0:NaN},e.min=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wE&&(q=E)}else{for(;++w=E){q=E;break}for(;++wE&&(q=E)}return q},e.max=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wq&&(q=E)}else{for(;++w=E){q=E;break}for(;++wq&&(q=E)}return q},e.extent=function(c,g){var w=-1,S=c.length,q,E,V;if(arguments.length===1){for(;++w=E){q=V=E;break}for(;++wE&&(q=E),V=E){q=V=E;break}for(;++wE&&(q=E),V1)return V/(j-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)<0?S=E+1:q=E}return S},right:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)>0?q=E:S=E+1}return S}}}var p=m(v);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(c){return m(c.length===1?function(g,w){return v(c(g),w)}:c)},e.shuffle=function(c,g,w){(S=arguments.length)<3&&(w=c.length,S<2&&(g=0));for(var S=w-g,q,E;S;)E=Math.random()*S--|0,q=c[S+g],c[S+g]=c[E+g],c[E+g]=q;return c},e.permute=function(c,g){for(var w=g.length,S=new Array(w);w--;)S[w]=c[g[w]];return S},e.pairs=function(c){for(var g=0,w=c.length-1,S,q=c[0],E=new Array(w<0?0:w);g=0;)for(V=c[g],w=V.length;--w>=0;)E[--q]=V[w];return E};var _=Math.abs;e.range=function(c,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=c,c=0)),(g-c)/w===1/0)throw new Error("infinite range");var S=[],q=C(_(w)),E=-1,V;if(c*=q,g*=q,w*=q,w<0)for(;(V=c+w*++E)>g;)S.push(V/q);else for(;(V=c+w*++E)=g.length)return q?q.call(c,j):S?j.sort(S):j;for(var ae=-1,me=j.length,ye=g[ne++],ze,Ve,_e,Se=new b,De;++ae=g.length)return F;var ne=[],ae=w[j++];return F.forEach(function(me,ye){ne.push({key:me,values:V(ye,j)})}),ae?ne.sort(function(me,ye){return ae(me.key,ye.key)}):ne}return c.map=function(F,j){return E(j,F,0)},c.entries=function(F){return V(E(e.map,F,0),0)},c.key=function(F){return g.push(F),c},c.sortKeys=function(F){return w[g.length-1]=F,c},c.sortValues=function(F){return S=F,c},c.rollup=function(F){return q=F,c},c},e.set=function(c){var g=new Z;if(c)for(var w=0,S=c.length;w=0&&(S=c.slice(w+1),c=c.slice(0,w)),c)return arguments.length<2?this[c].on(S):this[c].on(S,g);if(arguments.length===2){if(g==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(S,null);return this}};function le(c){var g=[],w=new b;function S(){for(var q=g,E=-1,V=q.length,F;++E=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),be.hasOwnProperty(w)?{space:be[w],local:c}:c}},de.attr=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node();return c=e.ns.qualify(c),c.local?w.getAttributeNS(c.space,c.local):w.getAttribute(c)}for(g in c)this.each(qe(g,c[g]));return this}return this.each(qe(c,g))};function qe(c,g){c=e.ns.qualify(c);function w(){this.removeAttribute(c)}function S(){this.removeAttributeNS(c.space,c.local)}function q(){this.setAttribute(c,g)}function E(){this.setAttributeNS(c.space,c.local,g)}function V(){var j=g.apply(this,arguments);j==null?this.removeAttribute(c):this.setAttribute(c,j)}function F(){var j=g.apply(this,arguments);j==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,j)}return g==null?c.local?S:w:typeof g=="function"?c.local?F:V:c.local?E:q}function Ie(c){return c.trim().replace(/\s+/g," ")}de.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),S=(c=Qe(c)).length,q=-1;if(g=w.classList){for(;++q=0;)(E=w[S])&&(q&&q!==E.nextSibling&&q.parentNode.insertBefore(E,q),q=E);return this},de.sort=function(c){c=Ue.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=q+1);!(j=V[g])&&++g0&&(c=c.slice(0,q));var V=dr.get(c);V&&(c=V,E=mr);function F(){var ae=this[S];ae&&(this.removeEventListener(c,ae,ae.$),delete this[S])}function j(){var ae=E(g,t(arguments));F.call(this),this.addEventListener(c,this[S]=ae,ae.$=w),ae._=g}function ne(){var ae=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),me;for(var ye in this)if(me=ye.match(ae)){var ze=this[ye];this.removeEventListener(me[1],ze,ze.$),delete this[ye]}}return q?g?j:F:g?K:ne}var dr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&dr.forEach(function(c){"on"+c in n&&dr.remove(c)});function Ar(c,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{c.apply(this,g)}finally{e.event=S}}}function mr(c,g){var w=Ar(c,g);return function(S){var q=this,E=S.relatedTarget;(!E||E!==q&&!(E.compareDocumentPosition(q)&8))&&w.call(q,S)}}var br,Ir=0;function Cr(c){var g=".dragsuppress-"+ ++Ir,w="click"+g,S=e.select(i(c)).on("touchmove"+g,ke).on("dragstart"+g,ke).on("selectstart"+g,ke);if(br==null&&(br="onselectstart"in c?!1:ie(c.style,"userSelect")),br){var q=a(c).style,E=q[br];q[br]="none"}return function(V){if(S.on(g,null),br&&(q[br]=E),V){var F=function(){S.on(w,null)};S.on(w,function(){ke(),F()},!0),setTimeout(F,0)}}}e.mouse=function(c){return lr(c,Ne())};var Er=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function lr(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var S=w.createSVGPoint();if(Er<0){var q=i(c);if(q.scrollX||q.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var E=w[0][0].getScreenCTM();Er=!(E.f||E.e),w.remove()}}return Er?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(c.getScreenCTM().inverse()),[S.x,S.y]}var V=c.getBoundingClientRect();return[g.clientX-V.left-c.clientLeft,g.clientY-V.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=Ne().changedTouches),g){for(var S=0,q=g.length,E;S0?1:c<0?-1:0}function $t(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function vn(c){return c>1?0:c<-1?nr:Math.acos(c)}function hn(c){return c>1?zr:c<-1?-zr:Math.asin(c)}function Ln(c){return((c=Math.exp(c))-1/c)/2}function Ut(c){return((c=Math.exp(c))+1/c)/2}function en(c){return((c=Math.exp(2*c))-1)/(c+1)}function Kt(c){return(c=Math.sin(c/2))*c}var rn=Math.SQRT2,la=2,xn=4;e.interpolateZoom=function(c,g){var w=c[0],S=c[1],q=c[2],E=g[0],V=g[1],F=g[2],j=E-w,ne=V-S,ae=j*j+ne*ne,me,ye;if(ae0&&(Nr=Nr.transition().duration(V)),Nr.call(We.event)}function $r(){Se&&Se.domain(_e.range().map(function(Nr){return(Nr-c.x)/c.k}).map(_e.invert)),Ge&&Ge.domain(De.range().map(function(Nr){return(Nr-c.y)/c.k}).map(De.invert))}function Kr(Nr){F++||Nr({type:"zoomstart"})}function _t(Nr){$r(),Nr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function et(Nr){--F||(Nr({type:"zoomend"}),w=null)}function ht(){var Nr=this,xt=Ve.of(Nr,arguments),wt=0,Jt=e.select(i(Nr)).on(ne,Ra).on(ae,$a),In=Re(e.mouse(Nr)),ua=Cr(Nr);vt.call(Nr),Kr(xt);function Ra(){wt=1,Xr(e.mouse(Nr),In),_t(xt)}function $a(){Jt.on(ne,null).on(ae,null),ua(wt),et(xt)}}function jt(){var Nr=this,xt=Ve.of(Nr,arguments),wt={},Jt=0,In,ua=".zoom-"+e.event.changedTouches[0].identifier,Ra="touchmove"+ua,$a="touchend"+ua,hi=[],Ka=e.select(Nr),Ci=Cr(Nr);Li(),Kr(xt),Ka.on(j,null).on(ye,Li);function Ba(){var vl=e.touches(Nr);return In=c.k,vl.forEach(function(za){za.identifier in wt&&(wt[za.identifier]=Re(za))}),vl}function Li(){var vl=e.event.target;e.select(vl).on(Ra,ec).on($a,tH),hi.push(vl);for(var za=e.event.changedTouches,yo=0,Ql=za.length;yo1){var rc=bo[0],Fu=bo[1],fd=rc[0]-Fu[0],J_=rc[1]-Fu[1];Jt=fd*fd+J_*J_}}function ec(){var vl=e.touches(Nr),za,yo,Ql,bo;vt.call(Nr);for(var C0=0,rc=vl.length;C01?1:g,w=w<0?0:w>1?1:w,q=w<=.5?w*(1+g):w+g-w*g,S=2*w-q;function E(F){return F>360?F-=360:F<0&&(F+=360),F<60?S+(q-S)*F/60:F<180?q:F<240?S+(q-S)*(240-F)/60:S}function V(F){return Math.round(E(F)*255)}return new Un(V(c+120),V(c),V(c-120))}e.hcl=Yt;function Yt(c,g,w){return this instanceof Yt?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof Yt?new Yt(c.h,c.c,c.l):c instanceof wn?Nl(c.l,c.a,c.b):Nl((c=Br((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new Yt(c,g,w)}var ga=Yt.prototype=new Pt;ga.brighter=function(c){return new Yt(this.h,this.c,Math.min(100,this.l+Qt*(arguments.length?c:1)))},ga.darker=function(c){return new Yt(this.h,this.c,Math.max(0,this.l-Qt*(arguments.length?c:1)))},ga.rgb=function(){return ma(this.h,this.c,this.l).rgb()};function ma(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new wn(w,Math.cos(c*=st)*g,Math.sin(c)*g)}e.lab=wn;function wn(c,g,w){return this instanceof wn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof wn?new wn(c.l,c.a,c.b):c instanceof Yt?ma(c.h,c.c,c.l):Br((c=Un(c)).r,c.g,c.b):new wn(c,g,w)}var Qt=18,An=.95047,ta=1,oo=1.08883,yi=wn.prototype=new Pt;yi.brighter=function(c){return new wn(Math.min(100,this.l+Qt*(arguments.length?c:1)),this.a,this.b)},yi.darker=function(c){return new wn(Math.max(0,this.l-Qt*(arguments.length?c:1)),this.a,this.b)},yi.rgb=function(){return As(this.l,this.a,this.b)};function As(c,g,w){var S=(c+16)/116,q=S+g/500,E=S-w/200;return q=Yo(q)*An,S=Yo(S)*ta,E=Yo(E)*oo,new Un(Go(3.2404542*q-1.5371385*S-.4985314*E),Go(-.969266*q+1.8760108*S+.041556*E),Go(.0556434*q-.2040259*S+1.0572252*E))}function Nl(c,g,w){return c>0?new Yt(Math.atan2(w,g)*bt,Math.sqrt(g*g+w*w),c):new Yt(NaN,NaN,c)}function Yo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function Ts(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Go(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Un;function Un(c,g,w){return this instanceof Un?(this.r=~~c,this.g=~~g,void(this.b=~~w)):arguments.length<2?c instanceof Un?new Un(c.r,c.g,c.b):Ct(""+c,Un,Wn):new Un(c,g,w)}function bi(c){return new Un(c>>16,c>>8&255,c&255)}function Vo(c){return bi(c)+""}var _i=Un.prototype=new Pt;_i.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var g=this.r,w=this.g,S=this.b,q=30;return!g&&!w&&!S?new Un(q,q,q):(g&&g>4,S=S>>4|S,q=j&240,q=q>>4|q,E=j&15,E=E<<4|E):c.length===7&&(S=(j&16711680)>>16,q=(j&65280)>>8,E=j&255)),g(S,q,E))}function It(c,g,w){var S=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),E=q-S,V,F,j=(q+S)/2;return E?(F=j<.5?E/(q+S):E/(2-q-S),c==q?V=(g-w)/E+(g0&&j<1?0:V),new tn(V,F,j)}function Br(c,g,w){c=Zn(c),g=Zn(g),w=Zn(w);var S=Ts((.4124564*c+.3575761*g+.1804375*w)/An),q=Ts((.2126729*c+.7151522*g+.072175*w)/ta),E=Ts((.0193339*c+.119192*g+.9503041*w)/oo);return wn(116*q-16,500*(S-q),200*(q-E))}function Zn(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function ln(c){var g=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(g*2.55):g}var En=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});En.forEach(function(c,g){En.set(c,bi(g))});function At(c){return typeof c=="function"?c:function(){return c}}e.functor=At,e.xhr=Xa(H);function Xa(c){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Wo(g,w,c,S)}}function Wo(c,g,w,S){var q={},E=e.dispatch("beforesend","progress","load","error"),V={},F=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(c)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=ne:F.onreadystatechange=function(){F.readyState>3&&ne()};function ne(){var ae=F.status,me;if(!ae&&yu(F)||ae>=200&&ae<300||ae===304){try{me=w.call(q,F)}catch(ye){E.error.call(q,ye);return}E.load.call(q,me)}else E.error.call(q,F)}return F.onprogress=function(ae){var me=e.event;e.event=ae;try{E.progress.call(q,F)}finally{e.event=me}},q.header=function(ae,me){return ae=(ae+"").toLowerCase(),arguments.length<2?V[ae]:(me==null?delete V[ae]:V[ae]=me+"",q)},q.mimeType=function(ae){return arguments.length?(g=ae==null?null:ae+"",q):g},q.responseType=function(ae){return arguments.length?(j=ae,q):j},q.response=function(ae){return w=ae,q},["get","post"].forEach(function(ae){q[ae]=function(){return q.send.apply(q,[ae].concat(t(arguments)))}}),q.send=function(ae,me,ye){if(arguments.length===2&&typeof me=="function"&&(ye=me,me=null),F.open(ae,c,!0),g!=null&&!("accept"in V)&&(V.accept=g+",*/*"),F.setRequestHeader)for(var ze in V)F.setRequestHeader(ze,V[ze]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),j!=null&&(F.responseType=j),ye!=null&&q.on("error",ye).on("load",function(Ve){ye(null,Ve)}),E.beforesend.call(q,F),F.send(me==null?null:me),q},q.abort=function(){return F.abort(),q},e.rebind(q,E,"on"),S==null?q:q.get(Lf(S))}function Lf(c){return c.length===1?function(g,w){c(g==null?w:null)}:c}function yu(c){var g=c.responseType;return g&&g!=="text"?c.response:c.responseText}e.dsv=function(c,g){var w=new RegExp('["'+c+` -]`),S=c.charCodeAt(0);function q(ne,ae,me){arguments.length<3&&(me=ae,ae=null);var ye=Wo(ne,g,ae==null?E:V(ae),me);return ye.row=function(ze){return arguments.length?ye.response((ae=ze)==null?E:V(ze)):ae},ye}function E(ne){return q.parse(ne.responseText)}function V(ne){return function(ae){return q.parse(ae.responseText,ne)}}q.parse=function(ne,ae){var me;return q.parseRows(ne,function(ye,ze){if(me)return me(ye,ze-1);var Ve=function(_e){for(var Se={},De=ye.length,Ge=0;Ge=Ve)return ye;if(Ge)return Ge=!1,me;var wr=_e;if(ne.charCodeAt(wr)===34){for(var Or=wr;Or++24?(isFinite(g)&&(clearTimeout(bu),bu=setTimeout(xi,g)),Xo=0):(Xo=1,Fl(xi))}e.timer.flush=function(){so(),jo()};function so(){for(var c=Date.now(),g=lo;g;)c>=g.t&&g.c(c-g.t)&&(g.c=null),g=g.n;return c}function jo(){for(var c,g=lo,w=1/0;g;)g.c?(g.t=0;--F)_e.push(q[ne[me[F]][2]]);for(F=+ze;F1&&$t(c[w[S-2]],c[w[S-1]],c[q])<=0;)--S;w[S++]=q}return w.slice(0,S)}function i0(c,g){return c[0]-g[0]||c[1]-g[1]}e.geom.polygon=function(c){return Ce(c,Ss),c};var Ss=e.geom.polygon.prototype=[];Ss.area=function(){for(var c=-1,g=this.length,w,S=this[g-1],q=0;++cAe)F=F.L;else if(V=g-Vv(F,w),V>Ae){if(!F.R){S=F;break}F=F.R}else{E>-Ae?(S=F.P,q=F):V>-Ae?(S=F,q=F.N):S=q=F;break}var j=qs(c);if(Oi.insert(S,j),!(!S&&!q)){if(S===q){vo(S),q=qs(S.site),Oi.insert(j,q),j.edge=q.edge=Ul(S.site,j.site),co(S),co(q);return}if(!q){j.edge=Ul(S.site,j.site);return}vo(S),vo(q);var ne=S.site,ae=ne.x,me=ne.y,ye=c.x-ae,ze=c.y-me,Ve=q.site,_e=Ve.x-ae,Se=Ve.y-me,De=2*(ye*Se-ze*_e),Ge=ye*ye+ze*ze,We=_e*_e+Se*Se,Re={x:(Se*Ge-ze*We)/De+ae,y:(ye*We-_e*Ge)/De+me};Gi(q.edge,ne,Ve,Re),j.edge=Ul(ne,c,null,Re),q.edge=Ul(c,Ve,null,Re),co(S),co(q)}}function Es(c,g){var w=c.site,S=w.x,q=w.y,E=q-g;if(!E)return S;var V=c.P;if(!V)return-1/0;w=V.site;var F=w.x,j=w.y,ne=j-g;if(!ne)return F;var ae=F-S,me=1/E-1/ne,ye=ae/ne;return me?(-ye+Math.sqrt(ye*ye-2*me*(ae*ae/(-2*ne)-j+ne/2+q-E/2)))/me+S:(S+F)/2}function Vv(c,g){var w=c.N;if(w)return Es(w,g);var S=c.site;return S.y===g?S.x:1/0}function $o(c){this.site=c,this.edges=[]}$o.prototype.prepare=function(){for(var c=this.edges,g=c.length,w;g--;)w=c[g].edge,(!w.b||!w.a)&&c.splice(g,1);return c.sort(Ol),c.length};function Pf(c){for(var g=c[0][0],w=c[1][0],S=c[0][1],q=c[1][1],E,V,F,j,ne=fo,ae=ne.length,me,ye,ze,Ve,_e,Se;ae--;)if(me=ne[ae],!(!me||!me.prepare()))for(ze=me.edges,Ve=ze.length,ye=0;yeAe||_(j-V)>Ae)&&(ze.splice(ye,0,new Ko(Zv(me.site,Se,_(F-g)Ae?{x:g,y:_(E-g)Ae?{x:_(V-q)Ae?{x:w,y:_(E-w)Ae?{x:_(V-S)=-Ke)){var ye=j*j+ne*ne,ze=ae*ae+Se*Se,Ve=(Se*ye-ne*ze)/me,_e=(j*ze-ae*ye)/me,Se=_e+F,De=Ef.pop()||new s0;De.arc=c,De.site=q,De.x=Ve+V,De.y=Se+Math.sqrt(Ve*Ve+_e*_e),De.cy=Se,c.circle=De;for(var Ge=null,We=Bl._;We;)if(De.y0)){if(_e/=ze,ze<0){if(_e0){if(_e>ye)return;_e>me&&(me=_e)}if(_e=w-F,!(!ze&&_e<0)){if(_e/=ze,ze<0){if(_e>ye)return;_e>me&&(me=_e)}else if(ze>0){if(_e0)){if(_e/=Ve,Ve<0){if(_e0){if(_e>ye)return;_e>me&&(me=_e)}if(_e=S-j,!(!Ve&&_e<0)){if(_e/=Ve,Ve<0){if(_e>ye)return;_e>me&&(me=_e)}else if(Ve>0){if(_e0&&(q.a={x:F+me*ze,y:j+me*Ve}),ye<1&&(q.b={x:F+ye*ze,y:j+ye*Ve}),q}}}}}}function wi(c){for(var g=uo,w=Rf(c[0][0],c[0][1],c[1][0],c[1][1]),S=g.length,q;S--;)q=g[S],(!Wv(q,c)||!w(q)||_(q.a.x-q.b.x)=E)return;if(ae>ye){if(!S)S={x:Ve,y:V};else if(S.y>=F)return;w={x:Ve,y:F}}else{if(!S)S={x:Ve,y:F};else if(S.y1)if(ae>ye){if(!S)S={x:(V-De)/Se,y:V};else if(S.y>=F)return;w={x:(F-De)/Se,y:F}}else{if(!S)S={x:(F-De)/Se,y:F};else if(S.y=E)return;w={x:E,y:Se*E+De}}else{if(!S)S={x:E,y:Se*E+De};else if(S.x=ae&&De.x<=ye&&De.y>=me&&De.y<=ze?[[ae,ze],[ye,ze],[ye,me],[ae,me]]:[];Ge.point=j[_e]}),ne}function F(j){return j.map(function(ne,ae){return{x:Math.round(S(ne,ae)/Ae)*Ae,y:Math.round(q(ne,ae)/Ae)*Ae,i:ae}})}return V.links=function(j){return Rs(F(j)).edges.filter(function(ne){return ne.l&&ne.r}).map(function(ne){return{source:j[ne.l.i],target:j[ne.r.i]}})},V.triangles=function(j){var ne=[];return Rs(F(j)).cells.forEach(function(ae,me){for(var ye=ae.site,ze=ae.edges.sort(Ol),Ve=-1,_e=ze.length,Se,De,Ge=ze[_e-1].edge,We=Ge.l===ye?Ge.r:Ge.l;++Ve<_e;)Se=Ge,De=We,Ge=ze[Ve].edge,We=Ge.l===ye?Ge.r:Ge.l,meWe&&(We=ae.x),ae.y>Re&&(Re=ae.y),ze.push(ae.x),Ve.push(ae.y);else for(_e=0;_eWe&&(We=wr),Or>Re&&(Re=Or),ze.push(wr),Ve.push(Or)}var Xr=We-De,Wr=Re-Ge;Xr>Wr?Re=Ge+Xr:We=De+Wr;function $r(et,ht,jt,jn,un,Nr,xt,wt){if(!(isNaN(jt)||isNaN(jn)))if(et.leaf){var Jt=et.x,In=et.y;if(Jt!=null)if(_(Jt-jt)+_(In-jn)<.01)Kr(et,ht,jt,jn,un,Nr,xt,wt);else{var ua=et.point;et.x=et.y=et.point=null,Kr(et,ua,Jt,In,un,Nr,xt,wt),Kr(et,ht,jt,jn,un,Nr,xt,wt)}else et.x=jt,et.y=jn,et.point=ht}else Kr(et,ht,jt,jn,un,Nr,xt,wt)}function Kr(et,ht,jt,jn,un,Nr,xt,wt){var Jt=(un+xt)*.5,In=(Nr+wt)*.5,ua=jt>=Jt,Ra=jn>=In,$a=Ra<<1|ua;et.leaf=!1,et=et.nodes[$a]||(et.nodes[$a]=Mu()),ua?un=Jt:xt=Jt,Ra?Nr=In:wt=In,$r(et,ht,jt,jn,un,Nr,xt,wt)}var _t=Mu();if(_t.add=function(et){$r(_t,et,+me(et,++_e),+ye(et,_e),De,Ge,We,Re)},_t.visit=function(et){ui(et,_t,De,Ge,We,Re)},_t.find=function(et){return Au(_t,et[0],et[1],De,Ge,We,Re)},_e=-1,g==null){for(;++_eE||ye>V||ze=wr,Wr=w>=Or,$r=Wr<<1|Xr,Kr=$r+4;$rw&&(E=g.slice(w,E),F[V]?F[V]+=E:F[++V]=E),(S=S[0])===(q=q[0])?F[V]?F[V]+=q:F[++V]=q:(F[++V]=null,j.push({i:V,x:na(S,q)})),w=Ns.lastIndex;return w=0&&!(S=e.interpolators[w](c,g)););return S}e.interpolators=[function(c,g){var w=typeof g;return(w==="string"?En.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Tu:Sa:g instanceof Pt?Tu:Array.isArray(g)?Vl:w==="object"&&isNaN(g)?Ia:na)(c,g)}],e.interpolateArray=Vl;function Vl(c,g){var w=[],S=[],q=c.length,E=g.length,V=Math.min(c.length,g.length),F;for(F=0;F=0?c.slice(0,g):c,S=g>=0?c.slice(g+1):"in";return w=u0.get(w)||zf,S=Xv.get(S)||H,jv(S(w.apply(null,r.call(arguments,1))))};function jv(c){return function(g){return g<=0?0:g>=1?1:c(g)}}function Nf(c){return function(g){return 1-c(1-g)}}function Ff(c){return function(g){return .5*(g<.5?c(2*g):2-c(2-2*g))}}function If(c){return c*c}function Hf(c){return c*c*c}function f0(c){if(c<=0)return 0;if(c>=1)return 1;var g=c*c,w=g*c;return 4*(c<.5?w:3*(c-g)+w-.75)}function c0(c){return function(g){return Math.pow(g,c)}}function Fs(c){return 1-Math.cos(c*zr)}function Is(c){return Math.pow(2,10*(c-1))}function Mi(c){return 1-Math.sqrt(1-c*c)}function ku(c,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/Sr*Math.asin(1/c):(c=1,w=g/4),function(S){return 1+c*Math.pow(2,-10*S)*Math.sin((S-w)*Sr/g)}}function Hs(c){return c||(c=1.70158),function(g){return g*g*((c+1)*g-c)}}function Su(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=v0;function v0(c,g){c=e.hcl(c),g=e.hcl(g);var w=c.h,S=c.c,q=c.l,E=g.h-w,V=g.c-S,F=g.l-q;return isNaN(V)&&(V=0,S=isNaN(S)?g.c:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return ma(w+E*j,S+V*j,q+F*j)+""}}e.interpolateHsl=Bf;function Bf(c,g){c=e.hsl(c),g=e.hsl(g);var w=c.h,S=c.s,q=c.l,E=g.h-w,V=g.s-S,F=g.l-q;return isNaN(V)&&(V=0,S=isNaN(S)?g.s:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return Wn(w+E*j,S+V*j,q+F*j)+""}}e.interpolateLab=Jv;function Jv(c,g){c=e.lab(c),g=e.lab(g);var w=c.l,S=c.a,q=c.b,E=g.l-w,V=g.a-S,F=g.b-q;return function(j){return As(w+E*j,S+V*j,q+F*j)+""}}e.interpolateRound=po;function po(c,g){return g-=c,function(w){return Math.round(c+g*w)}}e.transform=function(c){var g=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new Cu(S?S.matrix:Of)})(c)};function Cu(c){var g=[c.a,c.b],w=[c.c,c.d],S=Bs(g),q=Wl(g,w),E=Bs(Os(w,g,-q))||0;g[0]*w[1]180?g+=360:g-c>180&&(c+=360),S.push({i:w.push(go(w)+"rotate(",null,")")-2,x:na(c,g)})):g&&w.push(go(w)+"rotate("+g+")")}function d0(c,g,w,S){c!==g?S.push({i:w.push(go(w)+"skewX(",null,")")-2,x:na(c,g)}):g&&w.push(go(w)+"skewX("+g+")")}function Yf(c,g,w,S){if(c[0]!==g[0]||c[1]!==g[1]){var q=w.push(go(w)+"scale(",null,",",null,")");S.push({i:q-4,x:na(c[0],g[0])},{i:q-2,x:na(c[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(go(w)+"scale("+g+")")}function Lu(c,g){var w=[],S=[];return c=e.transform(c),g=e.transform(g),h0(c.translate,g.translate,w,S),Uf(c.rotate,g.rotate,w,S),d0(c.skew,g.skew,w,S),Yf(c.scale,g.scale,w,S),c=g=null,function(q){for(var E=-1,V=S.length,F;++E0?E=Re:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:E=0})):Re>0&&(g.start({type:"start",alpha:E=Re}),w=Il(c.tick)),c):E},c.start=function(){var Re,wr=ze.length,Or=Ve.length,Xr=S[0],Wr=S[1],$r,Kr;for(Re=0;Re=0;)E.push(ae=ne[j]),ae.parent=F,ae.depth=F.depth+1;w&&(F.value=0),F.children=ne}else w&&(F.value=+w.call(S,F,F.depth)||0),delete F.children;return Ha(q,function(me){var ye,ze;c&&(ye=me.children)&&ye.sort(c),w&&(ze=me.parent)&&(ze.value+=me.value)}),V}return S.sort=function(q){return arguments.length?(c=q,S):c},S.children=function(q){return arguments.length?(g=q,S):g},S.value=function(q){return arguments.length?(w=q,S):w},S.revalue=function(q){return w&&(Ti(q,function(E){E.children&&(E.value=0)}),Ha(q,function(E){var V;E.children||(E.value=+w.call(S,E,E.depth)||0),(V=E.parent)&&(V.value+=E.value)})),q},S};function Wi(c,g){return e.rebind(c,g,"sort","children","value"),c.nodes=c,c.links=ja,c}function Ti(c,g){for(var w=[c];(c=w.pop())!=null;)if(g(c),(q=c.children)&&(S=q.length))for(var S,q;--S>=0;)w.push(q[S])}function Ha(c,g){for(var w=[c],S=[];(c=w.pop())!=null;)if(S.push(c),(V=c.children)&&(E=V.length))for(var q=-1,E,V;++qq&&(q=F),S.push(F)}for(V=0;VS&&(w=g,S=q);return w}function Vs(c){return c.reduce(al,0)}function al(c,g){return c+g[1]}e.layout.histogram=function(){var c=!0,g=Number,w=jl,S=Ws;function q(E,ye){for(var F=[],j=E.map(g,this),ne=w.call(this,j,ye),ae=S.call(this,ne,j,ye),me,ye=-1,ze=j.length,Ve=ae.length-1,_e=c?1:1/ze,Se;++ye0)for(ye=-1;++ye=ne[0]&&Se<=ne[1]&&(me=F[e.bisect(ae,Se,1,Ve)-1],me.y+=_e,me.push(E[ye]));return F}return q.value=function(E){return arguments.length?(g=E,q):g},q.range=function(E){return arguments.length?(w=At(E),q):w},q.bins=function(E){return arguments.length?(S=typeof E=="number"?function(V){return il(V,E)}:At(E),q):S},q.frequency=function(E){return arguments.length?(c=!!E,q):c},q};function Ws(c,g){return il(c,Math.ceil(Math.log(g.length)/Math.LN2+1))}function il(c,g){for(var w=-1,S=+c[0],q=(c[1]-S)/g,E=[];++w<=g;)E[w]=q*w+S;return E}function jl(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(Eu),g=0,w=[1,1],S;function q(E,V){var F=c.call(this,E,V),j=F[0],ne=w[0],ae=w[1],me=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(j.x=j.y=0,Ha(j,function(ze){ze.r=+me(ze.value)}),Ha(j,w0),g){var ye=g*(S?1:Math.max(2*j.r/ne,2*j.r/ae))/2;Ha(j,function(ze){ze.r+=ye}),Ha(j,w0),Ha(j,function(ze){ze.r-=ye})}return Ru(j,ne/2,ae/2,S?1:1/Math.max(2*j.r/ne,2*j.r/ae)),F}return q.size=function(E){return arguments.length?(w=E,q):w},q.radius=function(E){return arguments.length?(S=E==null||typeof E=="function"?E:+E,q):S},q.padding=function(E){return arguments.length?(g=+E,q):g},Wi(q,c)};function Eu(c,g){return c.value-g.value}function Zs(c,g){var w=c._pack_next;c._pack_next=g,g._pack_prev=c,g._pack_next=w,w._pack_prev=g}function x0(c,g){c._pack_next=g,g._pack_prev=c}function Pu(c,g){var w=g.x-c.x,S=g.y-c.y,q=c.r+g.r;return .999*q*q>w*w+S*S}function w0(c){if(!(g=c.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,q=1/0,E=-1/0,V,F,j,ne,ae,me,ye;function ze(Re){w=Math.min(Re.x-Re.r,w),S=Math.max(Re.x+Re.r,S),q=Math.min(Re.y-Re.r,q),E=Math.max(Re.y+Re.r,E)}if(g.forEach(M0),V=g[0],V.x=-V.r,V.y=0,ze(V),ye>1&&(F=g[1],F.x=F.r,F.y=0,ze(F),ye>2))for(j=g[2],Xn(V,F,j),ze(j),Zs(V,j),V._pack_prev=j,Zs(j,F),F=V._pack_next,ne=3;neSe.x&&(Se=wr),wr.depth>De.depth&&(De=wr)});var Ge=g(_e,Se)/2-_e.x,We=w[0]/(Se.x+g(Se,_e)/2+Ge),Re=w[1]/(De.depth||1);Ti(ze,function(wr){wr.x=(wr.x+Ge)*We,wr.y=wr.depth*Re})}return ye}function E(ae){for(var me={A:null,children:[ae]},ye=[me],ze;(ze=ye.pop())!=null;)for(var Ve=ze.children,_e,Se=0,De=Ve.length;Se0&&(Xs(B(_e,ae,ye),ae,wr),De+=wr,Ge+=wr),We+=_e.m,De+=ze.m,Re+=Se.m,Ge+=Ve.m;_e&&!zu(Ve)&&(Ve.t=_e,Ve.m+=We-Ge),ze&&!Jl(Se)&&(Se.t=ze,Se.m+=De-Re,ye=ae)}return ye}function ne(ae){ae.x*=w[0],ae.y=ae.depth*w[1]}return q.separation=function(ae){return arguments.length?(g=ae,q):g},q.size=function(ae){return arguments.length?(S=(w=ae)==null?ne:null,q):S?null:w},q.nodeSize=function(ae){return arguments.length?(S=(w=ae)==null?null:ne,q):S?w:null},Wi(q,c)};function fi(c,g){return c.parent==g.parent?1:2}function Jl(c){var g=c.children;return g.length?g[0]:c.t}function zu(c){var g=c.children,w;return(w=g.length)?g[w-1]:c.t}function Xs(c,g,w){var S=w/(g.i-c.i);g.c-=S,g.s+=w,c.c+=S,g.z+=w,g.m+=w}function Jf(c){for(var g=0,w=0,S=c.children,q=S.length,E;--q>=0;)E=S[q],E.z+=g,E.m+=g,g+=E.s+(w+=E.c)}function B(c,g,w){return c.a.parent===g.parent?c.a:w}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),g=fi,w=[1,1],S=!1;function q(E,V){var F=c.call(this,E,V),j=F[0],ne,ae=0;Ha(j,function(_e){var Se=_e.children;Se&&Se.length?(_e.x=ve(Se),_e.y=J(Se)):(_e.x=ne?ae+=g(_e,ne):0,_e.y=0,ne=_e)});var me=oe(j),ye=Me(j),ze=me.x-g(me,ye)/2,Ve=ye.x+g(ye,me)/2;return Ha(j,S?function(_e){_e.x=(_e.x-j.x)*w[0],_e.y=(j.y-_e.y)*w[1]}:function(_e){_e.x=(_e.x-ze)/(Ve-ze)*w[0],_e.y=(1-(j.y?_e.y/j.y:1))*w[1]}),F}return q.separation=function(E){return arguments.length?(g=E,q):g},q.size=function(E){return arguments.length?(S=(w=E)==null,q):S?null:w},q.nodeSize=function(E){return arguments.length?(S=(w=E)!=null,q):S?w:null},Wi(q,c)};function J(c){return 1+e.max(c,function(g){return g.y})}function ve(c){return c.reduce(function(g,w){return g+w.x},0)/c.length}function oe(c){var g=c.children;return g&&g.length?oe(g[0]):c}function Me(c){var g=c.children,w;return g&&(w=g.length)?Me(g[w-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,q=Oe,E=!1,V,F="squarify",j=.5*(1+Math.sqrt(5));function ne(_e,Se){for(var De=-1,Ge=_e.length,We,Re;++De0;)Ge.push(Re=We[Wr-1]),Ge.area+=Re.area,F!=="squarify"||(Or=ye(Ge,Xr))<=wr?(We.pop(),wr=Or):(Ge.area-=Ge.pop().area,ze(Ge,Xr,De,!1),Xr=Math.min(De.dx,De.dy),Ge.length=Ge.area=0,wr=1/0);Ge.length&&(ze(Ge,Xr,De,!0),Ge.length=Ge.area=0),Se.forEach(ae)}}function me(_e){var Se=_e.children;if(Se&&Se.length){var De=q(_e),Ge=Se.slice(),We,Re=[];for(ne(Ge,De.dx*De.dy/_e.value),Re.area=0;We=Ge.pop();)Re.push(We),Re.area+=We.area,We.z!=null&&(ze(Re,We.z?De.dx:De.dy,De,!Ge.length),Re.length=Re.area=0);Se.forEach(me)}}function ye(_e,Se){for(var De=_e.area,Ge,We=0,Re=1/0,wr=-1,Or=_e.length;++wrWe&&(We=Ge));return De*=De,Se*=Se,De?Math.max(Se*We*j/De,De/(Se*Re*j)):1/0}function ze(_e,Se,De,Ge){var We=-1,Re=_e.length,wr=De.x,Or=De.y,Xr=Se?g(_e.area/Se):0,Wr;if(Se==De.dx){for((Ge||Xr>De.dy)&&(Xr=De.dy);++WeDe.dx)&&(Xr=De.dx);++We1);return c+g*S*Math.sqrt(-2*Math.log(E)/E)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var g=e.random.irwinHall(c);return function(){return g()/c}},irwinHall:function(c){return function(){for(var g=0,w=0;w2?Mr:_r,ne=S?Vf:Gf;return q=j(c,g,ne,w),E=j(g,c,ne,tl),F}function F(j){return q(j)}return F.invert=function(j){return E(j)},F.domain=function(j){return arguments.length?(c=j.map(Number),V()):c},F.range=function(j){return arguments.length?(g=j,V()):g},F.rangeRound=function(j){return F.range(j).interpolate(po)},F.clamp=function(j){return arguments.length?(S=j,V()):S},F.interpolate=function(j){return arguments.length?(w=j,V()):w},F.ticks=function(j){return nt(c,j)},F.tickFormat=function(j,ne){return d3_scale_linearTickFormat(c,j,ne)},F.nice=function(j){return Jr(c,j),V()},F.copy=function(){return qr(c,g,w,S)},V()}function rt(c,g){return e.rebind(c,g,"range","rangeRound","interpolate","clamp")}function Jr(c,g){return $e(c,vr(tt(c,g)[2])),$e(c,vr(tt(c,g)[2])),c}function tt(c,g){g==null&&(g=10);var w=ir(c),S=w[1]-w[0],q=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),E=g/S*q;return E<=.15?q*=10:E<=.35?q*=5:E<=.75&&(q*=2),w[0]=Math.ceil(w[0]/q)*q,w[1]=Math.floor(w[1]/q)*q+q*.5,w[2]=q,w}function nt(c,g){return e.range.apply(e,tt(c,g))}var Dr={s:1,g:1,p:1,r:1,e:1};function Hr(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function it(c,g){var w=Hr(g[2]);return c in Dr?Math.abs(w-Hr(Math.max(_(g[0]),_(g[1]))))+ +(c!=="e"):w-(c==="%")*2}e.scale.log=function(){return pt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function pt(c,g,w,S){function q(F){return(w?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function E(F){return w?Math.pow(g,F):-Math.pow(g,-F)}function V(F){return c(q(F))}return V.invert=function(F){return E(c.invert(F))},V.domain=function(F){return arguments.length?(w=F[0]>=0,c.domain((S=F.map(Number)).map(q)),V):S},V.base=function(F){return arguments.length?(g=+F,c.domain(S.map(q)),V):g},V.nice=function(){var F=$e(S.map(q),w?Math:Gt);return c.domain(F),S=F.map(E),V},V.ticks=function(){var F=ir(S),j=[],ne=F[0],ae=F[1],me=Math.floor(q(ne)),ye=Math.ceil(q(ae)),ze=g%1?2:g;if(isFinite(ye-me)){if(w){for(;me0;Ve--)j.push(E(me)*Ve);for(me=0;j[me]ae;ye--);j=j.slice(me,ye)}return j},V.copy=function(){return pt(c.copy(),g,w,S)},rt(V,c)}var Gt={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return nn(e.scale.linear(),1,[0,1])};function nn(c,g,w){var S=Wt(g),q=Wt(1/g);function E(V){return c(S(V))}return E.invert=function(V){return q(c.invert(V))},E.domain=function(V){return arguments.length?(c.domain((w=V.map(Number)).map(S)),E):w},E.ticks=function(V){return nt(w,V)},E.tickFormat=function(V,F){return d3_scale_linearTickFormat(w,V,F)},E.nice=function(V){return E.domain(Jr(w,V))},E.exponent=function(V){return arguments.length?(S=Wt(g=V),q=Wt(1/g),c.domain(w.map(S)),E):g},E.copy=function(){return nn(c.copy(),g,w)},rt(E,c)}function Wt(c){return function(g){return g<0?-Math.pow(-g,c):Math.pow(g,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return pn([],{t:"range",a:[[]]})};function pn(c,g){var w,S,q;function E(F){return S[((w.get(F)||(g.t==="range"?w.set(F,c.push(F)):NaN))-1)%S.length]}function V(F,j){return e.range(c.length).map(function(ne){return F+j*ne})}return E.domain=function(F){if(!arguments.length)return c;c=[],w=new b;for(var j=-1,ne=F.length,ae;++j0?w[E-1]:c[0],Eye?0:1;if(ae=Yr)return j(ae,Ve)+(ne?j(ne,1-Ve):"")+"Z";var _e,Se,De,Ge,We=0,Re=0,wr,Or,Xr,Wr,$r,Kr,_t,et,ht=[];if((Ge=(+V.apply(this,arguments)||0)/2)&&(De=S===Zi?Math.sqrt(ne*ne+ae*ae):+S.apply(this,arguments),Ve||(Re*=-1),ae&&(Re=hn(De/ae*Math.sin(Ge))),ne&&(We=hn(De/ne*Math.sin(Ge)))),ae){wr=ae*Math.cos(me+Re),Or=ae*Math.sin(me+Re),Xr=ae*Math.cos(ye-Re),Wr=ae*Math.sin(ye-Re);var jt=Math.abs(ye-me-2*Re)<=nr?0:1;if(Re&&Nu(wr,Or,Xr,Wr)===Ve^jt){var jn=(me+ye)/2;wr=ae*Math.cos(jn),Or=ae*Math.sin(jn),Xr=Wr=null}}else wr=Or=0;if(ne){$r=ne*Math.cos(ye-We),Kr=ne*Math.sin(ye-We),_t=ne*Math.cos(me+We),et=ne*Math.sin(me+We);var un=Math.abs(me-ye+2*We)<=nr?0:1;if(We&&Nu($r,Kr,_t,et)===1-Ve^un){var Nr=(me+ye)/2;$r=ne*Math.cos(Nr),Kr=ne*Math.sin(Nr),_t=et=null}}else $r=Kr=0;if(ze>Ae&&(_e=Math.min(Math.abs(ae-ne)/2,+w.apply(this,arguments)))>.001){Se=ne0?0:1}function A0(c,g,w,S,q){var E=c[0]-g[0],V=c[1]-g[1],F=(q?S:-S)/Math.sqrt(E*E+V*V),j=F*V,ne=-F*E,ae=c[0]+j,me=c[1]+ne,ye=g[0]+j,ze=g[1]+ne,Ve=(ae+ye)/2,_e=(me+ze)/2,Se=ye-ae,De=ze-me,Ge=Se*Se+De*De,We=w-S,Re=ae*ze-ye*me,wr=(De<0?-1:1)*Math.sqrt(Math.max(0,We*We*Ge-Re*Re)),Or=(Re*De-Se*wr)/Ge,Xr=(-Re*Se-De*wr)/Ge,Wr=(Re*De+Se*wr)/Ge,$r=(-Re*Se+De*wr)/Ge,Kr=Or-Ve,_t=Xr-_e,et=Wr-Ve,ht=$r-_e;return Kr*Kr+_t*_t>et*et+ht*ht&&(Or=Wr,Xr=$r),[[Or-j,Xr-ne],[Or*w/We,Xr*w/We]]}function T0(){return!0}function nd(c){var g=Hl,w=ks,S=T0,q=Xi,E=q.key,V=.7;function F(j){var ne=[],ae=[],me=-1,ye=j.length,ze,Ve=At(g),_e=At(w);function Se(){ne.push("M",q(c(ae),V))}for(;++me1?c.join("L"):c+"Z"}function ad(c){return c.join("L")+"Z"}function id(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1&&q.push("H",S[0]),q.join("")}function k0(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1){F=g[1],E=c[j],j++,S+="C"+(q[0]+V[0])+","+(q[1]+V[1])+","+(E[0]-F[0])+","+(E[1]-F[1])+","+E[0]+","+E[1];for(var ne=2;ne9&&(E=w*3/Math.sqrt(E),V[F]=E*S,V[F+1]=E*q));for(F=-1;++F<=j;)E=(c[Math.min(j,F+1)][0]-c[Math.max(0,F-1)][0])/(6*(1+V[F]*V[F])),g.push([E||0,V[F]*E||0]);return g}function ue(c){return c.length<3?Xi(c):c[0]+S0(c,X(c))}e.svg.line.radial=function(){var c=nd(he);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function he(c){for(var g,w=-1,S=c.length,q,E;++wnr)+",1 "+me}function ne(ae,me,ye,ze){return"Q 0,0 "+ze}return E.radius=function(ae){return arguments.length?(w=At(ae),E):w},E.source=function(ae){return arguments.length?(c=At(ae),E):c},E.target=function(ae){return arguments.length?(g=At(ae),E):g},E.startAngle=function(ae){return arguments.length?(S=At(ae),E):S},E.endAngle=function(ae){return arguments.length?(q=At(ae),E):q},E};function Le(c){return c.radius}e.svg.diagonal=function(){var c=pe,g=we,w=Fe;function S(q,E){var V=c.call(this,q,E),F=g.call(this,q,E),j=(V.y+F.y)/2,ne=[V,{x:V.x,y:j},{x:F.x,y:j},F];return ne=ne.map(w),"M"+ne[0]+"C"+ne[1]+" "+ne[2]+" "+ne[3]}return S.source=function(q){return arguments.length?(c=At(q),S):c},S.target=function(q){return arguments.length?(g=At(q),S):g},S.projection=function(q){return arguments.length?(w=q,S):w},S};function Fe(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),g=Fe,w=c.projection;return c.projection=function(S){return arguments.length?w(rr(g=S)):g},c};function rr(c){return function(){var g=c.apply(this,arguments),w=g[0],S=g[1]-zr;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var c=Tr,g=fr;function w(S,q){return(at.get(c.call(this,S,q))||jr)(g.call(this,S,q))}return w.type=function(S){return arguments.length?(c=At(S),w):c},w.size=function(S){return arguments.length?(g=At(S),w):g},w};function fr(){return 64}function Tr(){return"circle"}function jr(c){var g=Math.sqrt(c/nr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var at=e.map({circle:jr,cross:function(c){var g=Math.sqrt(c/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(c){var g=Math.sqrt(c/(2*ut)),w=g*ut;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(c){var g=Math.sqrt(c)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=at.keys();var ot=Math.sqrt(3),ut=Math.tan(30*st);de.transition=function(c){for(var g=ba||++Fn,w=Ea(c),S=[],q,E,V=vi||{time:Date.now(),ease:f0,delay:0,duration:250},F=-1,j=this.length;++F0;)me[--Ge].call(c,De);if(Se>=1)return V.event&&V.event.end.call(c,c.__data__,g),--E.count?delete E[S]:delete c[w],1}V||(F=q.time,j=Il(ye,0,F),V=E[S]={tween:new b,time:F,timer:j,delay:q.delay,duration:q.duration,ease:q.ease,index:g},q=null,++E.count)}e.svg.axis=function(){var c=e.scale.linear(),g=ji,w=6,S=6,q=3,E=[10],V=null,F;function j(ne){ne.each(function(){var ae=e.select(this),me=this.__chart__||c,ye=this.__chart__=c.copy(),ze=V==null?ye.ticks?ye.ticks.apply(ye,E):ye.domain():V,Ve=F==null?ye.tickFormat?ye.tickFormat.apply(ye,E):H:F,_e=ae.selectAll(".tick").data(ze,ye),Se=_e.enter().insert("g",".domain").attr("class","tick").style("opacity",Ae),De=e.transition(_e.exit()).style("opacity",Ae).remove(),Ge=e.transition(_e.order()).style("opacity",1),We=Math.max(w,0)+q,Re,wr=sr(ye),Or=ae.selectAll(".domain").data([0]),Xr=(Or.enter().append("path").attr("class","domain"),e.transition(Or));Se.append("line"),Se.append("text");var Wr=Se.select("line"),$r=Ge.select("line"),Kr=_e.select("text").text(Ve),_t=Se.select("text"),et=Ge.select("text"),ht=g==="top"||g==="left"?-1:1,jt,jn,un,Nr;if(g==="bottom"||g==="top"?(Re=fl,jt="x",un="y",jn="x2",Nr="y2",Kr.attr("dy",ht<0?"0em":".71em").style("text-anchor","middle"),Xr.attr("d","M"+wr[0]+","+ht*S+"V0H"+wr[1]+"V"+ht*S)):(Re=cl,jt="y",un="x",jn="y2",Nr="x2",Kr.attr("dy",".32em").style("text-anchor",ht<0?"end":"start"),Xr.attr("d","M"+ht*S+","+wr[0]+"H0V"+wr[1]+"H"+ht*S)),Wr.attr(Nr,ht*w),_t.attr(un,ht*We),$r.attr(jn,0).attr(Nr,ht*w),et.attr(jt,0).attr(un,ht*We),ye.rangeBand){var xt=ye,wt=xt.rangeBand()/2;me=ye=function(Jt){return xt(Jt)+wt}}else me.rangeBand?me=ye:De.call(Re,ye,me);Se.call(Re,me,ye),Ge.call(Re,ye,ye)})}return j.scale=function(ne){return arguments.length?(c=ne,j):c},j.orient=function(ne){return arguments.length?(g=ne in ul?ne+"":ji,j):g},j.ticks=function(){return arguments.length?(E=t(arguments),j):E},j.tickValues=function(ne){return arguments.length?(V=ne,j):V},j.tickFormat=function(ne){return arguments.length?(F=ne,j):F},j.tickSize=function(ne){var ae=arguments.length;return ae?(w=+ne,S=+arguments[ae-1],j):w},j.innerTickSize=function(ne){return arguments.length?(w=+ne,j):w},j.outerTickSize=function(ne){return arguments.length?(S=+ne,j):S},j.tickPadding=function(ne){return arguments.length?(q=+ne,j):q},j.tickSubdivide=function(){return arguments.length&&j},j};var ji="bottom",ul={top:1,right:1,bottom:1,left:1};function fl(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate("+(isFinite(q)?q:w(S))+",0)"})}function cl(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate(0,"+(isFinite(q)?q:w(S))+")"})}e.svg.brush=function(){var c=He(ae,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],q=[0,0],E,V,F=!0,j=!0,ne=mo[0];function ae(_e){_e.each(function(){var Se=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ve).on("touchstart.brush",Ve),De=Se.selectAll(".background").data([0]);De.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Se.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Se.selectAll(".resize").data(ne,H);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Or){return"resize "+Or}).style("cursor",function(Or){return Kl[Or]}).append("rect").attr("x",function(Or){return/[ew]$/.test(Or)?-3:null}).attr("y",function(Or){return/^[ns]/.test(Or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ae.empty()?"none":null);var We=e.transition(Se),Re=e.transition(De),wr;g&&(wr=sr(g),Re.attr("x",wr[0]).attr("width",wr[1]-wr[0]),ye(We)),w&&(wr=sr(w),Re.attr("y",wr[0]).attr("height",wr[1]-wr[0]),ze(We)),me(We)})}ae.event=function(_e){_e.each(function(){var Se=c.of(this,arguments),De={x:S,y:q,i:E,j:V},Ge=this.__chart__||De;this.__chart__=De,ba?e.select(this).transition().each("start.brush",function(){E=Ge.i,V=Ge.j,S=Ge.x,q=Ge.y,Se({type:"brushstart"})}).tween("brush:brush",function(){var We=Vl(S,De.x),Re=Vl(q,De.y);return E=V=null,function(wr){S=De.x=We(wr),q=De.y=Re(wr),Se({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=De.i,V=De.j,Se({type:"brush",mode:"resize"}),Se({type:"brushend"})}):(Se({type:"brushstart"}),Se({type:"brush",mode:"resize"}),Se({type:"brushend"}))})};function me(_e){_e.selectAll(".resize").attr("transform",function(Se){return"translate("+S[+/e$/.test(Se)]+","+q[+/^s/.test(Se)]+")"})}function ye(_e){_e.select(".extent").attr("x",S[0]),_e.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function ze(_e){_e.select(".extent").attr("y",q[0]),_e.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ve(){var _e=this,Se=e.select(e.event.target),De=c.of(_e,arguments),Ge=e.select(_e),We=Se.datum(),Re=!/^(n|s)$/.test(We)&&g,wr=!/^(e|w)$/.test(We)&&w,Or=Se.classed("extent"),Xr=Cr(_e),Wr,$r=e.mouse(_e),Kr,_t=e.select(i(_e)).on("keydown.brush",jt).on("keyup.brush",jn);if(e.event.changedTouches?_t.on("touchmove.brush",un).on("touchend.brush",xt):_t.on("mousemove.brush",un).on("mouseup.brush",xt),Ge.interrupt().selectAll("*").interrupt(),Or)$r[0]=S[0]-$r[0],$r[1]=q[0]-$r[1];else if(We){var et=+/w$/.test(We),ht=+/^n/.test(We);Kr=[S[1-et]-$r[0],q[1-ht]-$r[1]],$r[0]=S[et],$r[1]=q[ht]}else e.event.altKey&&(Wr=$r.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Se.style("cursor")),De({type:"brushstart"}),un();function jt(){e.event.keyCode==32&&(Or||(Wr=null,$r[0]-=S[1],$r[1]-=q[1],Or=2),ke())}function jn(){e.event.keyCode==32&&Or==2&&($r[0]+=S[1],$r[1]+=q[1],Or=0,ke())}function un(){var wt=e.mouse(_e),Jt=!1;Kr&&(wt[0]+=Kr[0],wt[1]+=Kr[1]),Or||(e.event.altKey?(Wr||(Wr=[(S[0]+S[1])/2,(q[0]+q[1])/2]),$r[0]=S[+(wt[0]{(function(e,r){typeof pd=="object"&&typeof t6!="undefined"?r(pd):(e=e||self,r(e.d3=e.d3||{}))})(pd,function(e){"use strict";var r=new Date,t=new Date;function n(Te,Ue,kr,Ur){function tr(Ye){return Te(Ye=arguments.length===0?new Date:new Date(+Ye)),Ye}return tr.floor=function(Ye){return Te(Ye=new Date(+Ye)),Ye},tr.ceil=function(Ye){return Te(Ye=new Date(Ye-1)),Ue(Ye,1),Te(Ye),Ye},tr.round=function(Ye){var Ze=tr(Ye),dr=tr.ceil(Ye);return Ye-Ze0))return Ar;do Ar.push(mr=new Date(+Ye)),Ue(Ye,dr),Te(Ye);while(mr=Ze)for(;Te(Ze),!Ye(Ze);)Ze.setTime(Ze-1)},function(Ze,dr){if(Ze>=Ze)if(dr<0)for(;++dr<=0;)for(;Ue(Ze,-1),!Ye(Ze););else for(;--dr>=0;)for(;Ue(Ze,1),!Ye(Ze););})},kr&&(tr.count=function(Ye,Ze){return r.setTime(+Ye),t.setTime(+Ze),Te(r),Te(t),Math.floor(kr(r,t))},tr.every=function(Ye){return Ye=Math.floor(Ye),!isFinite(Ye)||!(Ye>0)?null:Ye>1?tr.filter(Ur?function(Ze){return Ur(Ze)%Ye===0}:function(Ze){return tr.count(0,Ze)%Ye===0}):tr}),tr}var a=n(function(){},function(Te,Ue){Te.setTime(+Te+Ue)},function(Te,Ue){return Ue-Te});a.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?n(function(Ue){Ue.setTime(Math.floor(Ue/Te)*Te)},function(Ue,kr){Ue.setTime(+Ue+kr*Te)},function(Ue,kr){return(kr-Ue)/Te}):a};var i=a.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,v=n(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Ue){Te.setTime(+Te+Ue*o)},function(Te,Ue){return(Ue-Te)/o},function(Te){return Te.getUTCSeconds()}),h=v.range,d=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Ue){Te.setTime(+Te+Ue*l)},function(Te,Ue){return(Ue-Te)/l},function(Te){return Te.getMinutes()}),m=d.range,p=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Ue){Te.setTime(+Te+Ue*s)},function(Te,Ue){return(Ue-Te)/s},function(Te){return Te.getHours()}),y=p.range,_=n(function(Te){Te.setHours(0,0,0,0)},function(Te,Ue){Te.setDate(Te.getDate()+Ue)},function(Te,Ue){return(Ue-Te-(Ue.getTimezoneOffset()-Te.getTimezoneOffset())*l)/u},function(Te){return Te.getDate()-1}),C=_.range;function x(Te){return n(function(Ue){Ue.setDate(Ue.getDate()-(Ue.getDay()+7-Te)%7),Ue.setHours(0,0,0,0)},function(Ue,kr){Ue.setDate(Ue.getDate()+kr*7)},function(Ue,kr){return(kr-Ue-(kr.getTimezoneOffset()-Ue.getTimezoneOffset())*l)/f})}var b=x(0),A=x(1),k=x(2),M=x(3),D=x(4),R=x(5),N=x(6),I=b.range,W=A.range,O=k.range,Z=M.range,H=D.range,ee=R.range,ie=N.range,re=n(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Ue){Te.setMonth(Te.getMonth()+Ue)},function(Te,Ue){return Ue.getMonth()-Te.getMonth()+(Ue.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),K=re.range,fe=n(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Ue){Te.setFullYear(Te.getFullYear()+Ue)},function(Te,Ue){return Ue.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});fe.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ue){Ue.setFullYear(Math.floor(Ue.getFullYear()/Te)*Te),Ue.setMonth(0,1),Ue.setHours(0,0,0,0)},function(Ue,kr){Ue.setFullYear(Ue.getFullYear()+kr*Te)})};var le=fe.range,ke=n(function(Te){Te.setUTCSeconds(0,0)},function(Te,Ue){Te.setTime(+Te+Ue*l)},function(Te,Ue){return(Ue-Te)/l},function(Te){return Te.getUTCMinutes()}),Ne=ke.range,He=n(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Ue){Te.setTime(+Te+Ue*s)},function(Te,Ue){return(Ue-Te)/s},function(Te){return Te.getUTCHours()}),Xe=He.range,Ce=n(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCDate(Te.getUTCDate()+Ue)},function(Te,Ue){return(Ue-Te)/u},function(Te){return Te.getUTCDate()-1}),er=Ce.range;function ce(Te){return n(function(Ue){Ue.setUTCDate(Ue.getUTCDate()-(Ue.getUTCDay()+7-Te)%7),Ue.setUTCHours(0,0,0,0)},function(Ue,kr){Ue.setUTCDate(Ue.getUTCDate()+kr*7)},function(Ue,kr){return(kr-Ue)/f})}var ge=ce(0),Pe=ce(1),de=ce(2),G=ce(3),Q=ce(4),$=ce(5),be=ce(6),qe=ge.range,Ie=Pe.range,ar=de.range,Qe=G.range,Be=Q.range,cr=$.range,or=be.range,hr=n(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCMonth(Te.getUTCMonth()+Ue)},function(Te,Ue){return Ue.getUTCMonth()-Te.getUTCMonth()+(Ue.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Je=hr.range,pr=n(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCFullYear(Te.getUTCFullYear()+Ue)},function(Te,Ue){return Ue.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});pr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ue){Ue.setUTCFullYear(Math.floor(Ue.getUTCFullYear()/Te)*Te),Ue.setUTCMonth(0,1),Ue.setUTCHours(0,0,0,0)},function(Ue,kr){Ue.setUTCFullYear(Ue.getUTCFullYear()+kr*Te)})};var yr=pr.range;e.timeDay=_,e.timeDays=C,e.timeFriday=R,e.timeFridays=ee,e.timeHour=p,e.timeHours=y,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=W,e.timeMonth=re,e.timeMonths=K,e.timeSaturday=N,e.timeSaturdays=ie,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=I,e.timeThursday=D,e.timeThursdays=H,e.timeTuesday=k,e.timeTuesdays=O,e.timeWednesday=M,e.timeWednesdays=Z,e.timeWeek=b,e.timeWeeks=I,e.timeYear=fe,e.timeYears=le,e.utcDay=Ce,e.utcDays=er,e.utcFriday=$,e.utcFridays=cr,e.utcHour=He,e.utcHours=Xe,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=ke,e.utcMinutes=Ne,e.utcMonday=Pe,e.utcMondays=Ie,e.utcMonth=hr,e.utcMonths=Je,e.utcSaturday=be,e.utcSaturdays=or,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=ge,e.utcSundays=qe,e.utcThursday=Q,e.utcThursdays=Be,e.utcTuesday=de,e.utcTuesdays=ar,e.utcWednesday=G,e.utcWednesdays=Qe,e.utcWeek=ge,e.utcWeeks=qe,e.utcYear=pr,e.utcYears=yr,Object.defineProperty(e,"__esModule",{value:!0})})});var L0=te((gd,n6)=>{(function(e,r){typeof gd=="object"&&typeof n6!="undefined"?r(gd,Dy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(gd,function(e,r){"use strict";function t(xe){if(0<=xe.y&&xe.y<100){var Ae=new Date(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L);return Ae.setFullYear(xe.y),Ae}return new Date(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L)}function n(xe){if(0<=xe.y&&xe.y<100){var Ae=new Date(Date.UTC(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L));return Ae.setUTCFullYear(xe.y),Ae}return new Date(Date.UTC(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L))}function a(xe,Ae,Ke){return{y:xe,m:Ae,d:Ke,H:0,M:0,S:0,L:0}}function i(xe){var Ae=xe.dateTime,Ke=xe.date,nr=xe.time,Sr=xe.periods,Yr=xe.days,zr=xe.shortDays,st=xe.months,bt=xe.shortMonths,St=h(Sr),$t=d(Sr),vn=h(Yr),hn=d(Yr),Ln=h(zr),Ut=d(zr),en=h(st),Kt=d(st),rn=h(bt),la=d(bt),xn={a:ta,A:oo,b:yi,B:As,c:null,d:re,e:re,f:Ne,H:K,I:fe,j:le,L:ke,m:He,M:Xe,p:Nl,q:Yo,Q:Ze,s:dr,S:Ce,u:er,U:ce,V:ge,w:Pe,W:de,x:null,X:null,y:G,Y:Q,Z:$,"%":Ye},On={a:Ts,A:Go,b:Un,B:bi,c:null,d:be,e:be,f:Be,H:qe,I:Ie,j:ar,L:Qe,m:cr,M:or,p:Vo,q:_i,Q:Ze,s:dr,S:hr,u:Je,U:pr,V:yr,w:Te,W:Ue,x:null,X:null,y:kr,Y:Ur,Z:tr,"%":Ye},Gr={a:Wn,A:Yt,b:ga,B:ma,c:wn,d:D,e:D,f:Z,H:N,I:N,j:R,L:O,m:M,M:I,p:zn,q:k,Q:ee,s:ie,S:W,u:p,U:y,V:_,w:m,W:C,x:Qt,X:An,y:b,Y:x,Z:A,"%":H};xn.x=on(Ke,xn),xn.X=on(nr,xn),xn.c=on(Ae,xn),On.x=on(Ke,On),On.X=on(nr,On),On.c=on(Ae,On);function on(Qr,Ct){return function(It){var Br=[],Zn=-1,ln=0,En=Qr.length,At,Xa,Wo;for(It instanceof Date||(It=new Date(+It));++Zn53)return null;"w"in Br||(Br.w=1),"Z"in Br?(ln=n(a(Br.y,0,1)),En=ln.getUTCDay(),ln=En>4||En===0?r.utcMonday.ceil(ln):r.utcMonday(ln),ln=r.utcDay.offset(ln,(Br.V-1)*7),Br.y=ln.getUTCFullYear(),Br.m=ln.getUTCMonth(),Br.d=ln.getUTCDate()+(Br.w+6)%7):(ln=t(a(Br.y,0,1)),En=ln.getDay(),ln=En>4||En===0?r.timeMonday.ceil(ln):r.timeMonday(ln),ln=r.timeDay.offset(ln,(Br.V-1)*7),Br.y=ln.getFullYear(),Br.m=ln.getMonth(),Br.d=ln.getDate()+(Br.w+6)%7)}else("W"in Br||"U"in Br)&&("w"in Br||(Br.w="u"in Br?Br.u%7:"W"in Br?1:0),En="Z"in Br?n(a(Br.y,0,1)).getUTCDay():t(a(Br.y,0,1)).getDay(),Br.m=0,Br.d="W"in Br?(Br.w+6)%7+Br.W*7-(En+5)%7:Br.w+Br.U*7-(En+6)%7);return"Z"in Br?(Br.H+=Br.Z/100|0,Br.M+=Br.Z%100,n(Br)):t(Br)}}function tn(Qr,Ct,It,Br){for(var Zn=0,ln=Ct.length,En=It.length,At,Xa;Zn=En)return-1;if(At=Ct.charCodeAt(Zn++),At===37){if(At=Ct.charAt(Zn++),Xa=Gr[At in o?Ct.charAt(Zn++):At],!Xa||(Br=Xa(Qr,It,Br))<0)return-1}else if(At!=It.charCodeAt(Br++))return-1}return Br}function zn(Qr,Ct,It){var Br=St.exec(Ct.slice(It));return Br?(Qr.p=$t[Br[0].toLowerCase()],It+Br[0].length):-1}function Wn(Qr,Ct,It){var Br=Ln.exec(Ct.slice(It));return Br?(Qr.w=Ut[Br[0].toLowerCase()],It+Br[0].length):-1}function Yt(Qr,Ct,It){var Br=vn.exec(Ct.slice(It));return Br?(Qr.w=hn[Br[0].toLowerCase()],It+Br[0].length):-1}function ga(Qr,Ct,It){var Br=rn.exec(Ct.slice(It));return Br?(Qr.m=la[Br[0].toLowerCase()],It+Br[0].length):-1}function ma(Qr,Ct,It){var Br=en.exec(Ct.slice(It));return Br?(Qr.m=Kt[Br[0].toLowerCase()],It+Br[0].length):-1}function wn(Qr,Ct,It){return tn(Qr,Ae,Ct,It)}function Qt(Qr,Ct,It){return tn(Qr,Ke,Ct,It)}function An(Qr,Ct,It){return tn(Qr,nr,Ct,It)}function ta(Qr){return zr[Qr.getDay()]}function oo(Qr){return Yr[Qr.getDay()]}function yi(Qr){return bt[Qr.getMonth()]}function As(Qr){return st[Qr.getMonth()]}function Nl(Qr){return Sr[+(Qr.getHours()>=12)]}function Yo(Qr){return 1+~~(Qr.getMonth()/3)}function Ts(Qr){return zr[Qr.getUTCDay()]}function Go(Qr){return Yr[Qr.getUTCDay()]}function Un(Qr){return bt[Qr.getUTCMonth()]}function bi(Qr){return st[Qr.getUTCMonth()]}function Vo(Qr){return Sr[+(Qr.getUTCHours()>=12)]}function _i(Qr){return 1+~~(Qr.getUTCMonth()/3)}return{format:function(Qr){var Ct=on(Qr+="",xn);return Ct.toString=function(){return Qr},Ct},parse:function(Qr){var Ct=Pt(Qr+="",!1);return Ct.toString=function(){return Qr},Ct},utcFormat:function(Qr){var Ct=on(Qr+="",On);return Ct.toString=function(){return Qr},Ct},utcParse:function(Qr){var Ct=Pt(Qr+="",!0);return Ct.toString=function(){return Qr},Ct}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(xe,Ae,Ke){var nr=xe<0?"-":"",Sr=(nr?-xe:xe)+"",Yr=Sr.length;return nr+(Yr68?1900:2e3),Ke+nr[0].length):-1}function A(xe,Ae,Ke){var nr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ae.slice(Ke,Ke+6));return nr?(xe.Z=nr[1]?0:-(nr[2]+(nr[3]||"00")),Ke+nr[0].length):-1}function k(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+1));return nr?(xe.q=nr[0]*3-3,Ke+nr[0].length):-1}function M(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.m=nr[0]-1,Ke+nr[0].length):-1}function D(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.d=+nr[0],Ke+nr[0].length):-1}function R(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+3));return nr?(xe.m=0,xe.d=+nr[0],Ke+nr[0].length):-1}function N(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.H=+nr[0],Ke+nr[0].length):-1}function I(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.M=+nr[0],Ke+nr[0].length):-1}function W(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.S=+nr[0],Ke+nr[0].length):-1}function O(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+3));return nr?(xe.L=+nr[0],Ke+nr[0].length):-1}function Z(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+6));return nr?(xe.L=Math.floor(nr[0]/1e3),Ke+nr[0].length):-1}function H(xe,Ae,Ke){var nr=s.exec(Ae.slice(Ke,Ke+1));return nr?Ke+nr[0].length:-1}function ee(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke));return nr?(xe.Q=+nr[0],Ke+nr[0].length):-1}function ie(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke));return nr?(xe.s=+nr[0],Ke+nr[0].length):-1}function re(xe,Ae){return f(xe.getDate(),Ae,2)}function K(xe,Ae){return f(xe.getHours(),Ae,2)}function fe(xe,Ae){return f(xe.getHours()%12||12,Ae,2)}function le(xe,Ae){return f(1+r.timeDay.count(r.timeYear(xe),xe),Ae,3)}function ke(xe,Ae){return f(xe.getMilliseconds(),Ae,3)}function Ne(xe,Ae){return ke(xe,Ae)+"000"}function He(xe,Ae){return f(xe.getMonth()+1,Ae,2)}function Xe(xe,Ae){return f(xe.getMinutes(),Ae,2)}function Ce(xe,Ae){return f(xe.getSeconds(),Ae,2)}function er(xe){var Ae=xe.getDay();return Ae===0?7:Ae}function ce(xe,Ae){return f(r.timeSunday.count(r.timeYear(xe)-1,xe),Ae,2)}function ge(xe,Ae){var Ke=xe.getDay();return xe=Ke>=4||Ke===0?r.timeThursday(xe):r.timeThursday.ceil(xe),f(r.timeThursday.count(r.timeYear(xe),xe)+(r.timeYear(xe).getDay()===4),Ae,2)}function Pe(xe){return xe.getDay()}function de(xe,Ae){return f(r.timeMonday.count(r.timeYear(xe)-1,xe),Ae,2)}function G(xe,Ae){return f(xe.getFullYear()%100,Ae,2)}function Q(xe,Ae){return f(xe.getFullYear()%1e4,Ae,4)}function $(xe){var Ae=xe.getTimezoneOffset();return(Ae>0?"-":(Ae*=-1,"+"))+f(Ae/60|0,"0",2)+f(Ae%60,"0",2)}function be(xe,Ae){return f(xe.getUTCDate(),Ae,2)}function qe(xe,Ae){return f(xe.getUTCHours(),Ae,2)}function Ie(xe,Ae){return f(xe.getUTCHours()%12||12,Ae,2)}function ar(xe,Ae){return f(1+r.utcDay.count(r.utcYear(xe),xe),Ae,3)}function Qe(xe,Ae){return f(xe.getUTCMilliseconds(),Ae,3)}function Be(xe,Ae){return Qe(xe,Ae)+"000"}function cr(xe,Ae){return f(xe.getUTCMonth()+1,Ae,2)}function or(xe,Ae){return f(xe.getUTCMinutes(),Ae,2)}function hr(xe,Ae){return f(xe.getUTCSeconds(),Ae,2)}function Je(xe){var Ae=xe.getUTCDay();return Ae===0?7:Ae}function pr(xe,Ae){return f(r.utcSunday.count(r.utcYear(xe)-1,xe),Ae,2)}function yr(xe,Ae){var Ke=xe.getUTCDay();return xe=Ke>=4||Ke===0?r.utcThursday(xe):r.utcThursday.ceil(xe),f(r.utcThursday.count(r.utcYear(xe),xe)+(r.utcYear(xe).getUTCDay()===4),Ae,2)}function Te(xe){return xe.getUTCDay()}function Ue(xe,Ae){return f(r.utcMonday.count(r.utcYear(xe)-1,xe),Ae,2)}function kr(xe,Ae){return f(xe.getUTCFullYear()%100,Ae,2)}function Ur(xe,Ae){return f(xe.getUTCFullYear()%1e4,Ae,4)}function tr(){return"+0000"}function Ye(){return"%"}function Ze(xe){return+xe}function dr(xe){return Math.floor(+xe/1e3)}var Ar;mr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function mr(xe){return Ar=i(xe),e.timeFormat=Ar.format,e.timeParse=Ar.parse,e.utcFormat=Ar.utcFormat,e.utcParse=Ar.utcParse,Ar}var br="%Y-%m-%dT%H:%M:%S.%LZ";function Ir(xe){return xe.toISOString()}var Cr=Date.prototype.toISOString?Ir:e.utcFormat(br);function Er(xe){var Ae=new Date(xe);return isNaN(Ae)?null:Ae}var lr=+new Date("2000-01-01T00:00:00.000Z")?Er:e.utcParse(br);e.isoFormat=Cr,e.isoParse=lr,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ey=te((md,a6)=>{(function(e,r){typeof md=="object"&&typeof a6!="undefined"?r(md):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(md,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,D){if((R=(M=D?M.toExponential(D-1):M.toExponential()).indexOf("e"))<0)return null;var R,N=M.slice(0,R);return[N.length>1?N[0]+N.slice(2):N,+M.slice(R+1)]}function n(M){return M=t(Math.abs(M)),M?M[1]:NaN}function a(M,D){return function(R,N){for(var I=R.length,W=[],O=0,Z=M[0],H=0;I>0&&Z>0&&(H+Z+1>N&&(Z=Math.max(1,N-H)),W.push(R.substring(I-=Z,I+Z)),!((H+=Z+1)>N));)Z=M[O=(O+1)%M.length];return W.reverse().join(D)}}function i(M){return function(D){return D.replace(/[0-9]/g,function(R){return M[+R]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(D=o.exec(M)))throw new Error("invalid format: "+M);var D;return new s({fill:D[1],align:D[2],sign:D[3],symbol:D[4],zero:D[5],width:D[6],comma:D[7],precision:D[8]&&D[8].slice(1),trim:D[9],type:D[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var D=M.length,R=1,N=-1,I;R0&&(N=0);break}return N>0?M.slice(0,N)+M.slice(I+1):M}var f;function v(M,D){var R=t(M,D);if(!R)return M+"";var N=R[0],I=R[1],W=I-(f=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,O=N.length;return W===O?N:W>O?N+new Array(W-O+1).join("0"):W>0?N.slice(0,W)+"."+N.slice(W):"0."+new Array(1-W).join("0")+t(M,Math.max(0,D+W-1))[0]}function h(M,D){var R=t(M,D);if(!R)return M+"";var N=R[0],I=R[1];return I<0?"0."+new Array(-I).join("0")+N:N.length>I+1?N.slice(0,I+1)+"."+N.slice(I+1):N+new Array(I-N.length+2).join("0")}var d={"%":function(M,D){return(M*100).toFixed(D)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,D){return M.toExponential(D)},f:function(M,D){return M.toFixed(D)},g:function(M,D){return M.toPrecision(D)},o:function(M){return Math.round(M).toString(8)},p:function(M,D){return h(M*100,D)},r:h,s:v,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function m(M){return M}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(M){var D=M.grouping===void 0||M.thousands===void 0?m:a(p.call(M.grouping,Number),M.thousands+""),R=M.currency===void 0?"":M.currency[0]+"",N=M.currency===void 0?"":M.currency[1]+"",I=M.decimal===void 0?".":M.decimal+"",W=M.numerals===void 0?m:i(p.call(M.numerals,String)),O=M.percent===void 0?"%":M.percent+"",Z=M.minus===void 0?"-":M.minus+"",H=M.nan===void 0?"NaN":M.nan+"";function ee(re){re=l(re);var K=re.fill,fe=re.align,le=re.sign,ke=re.symbol,Ne=re.zero,He=re.width,Xe=re.comma,Ce=re.precision,er=re.trim,ce=re.type;ce==="n"?(Xe=!0,ce="g"):d[ce]||(Ce===void 0&&(Ce=12),er=!0,ce="g"),(Ne||K==="0"&&fe==="=")&&(Ne=!0,K="0",fe="=");var ge=ke==="$"?R:ke==="#"&&/[boxX]/.test(ce)?"0"+ce.toLowerCase():"",Pe=ke==="$"?N:/[%p]/.test(ce)?O:"",de=d[ce],G=/[defgprs%]/.test(ce);Ce=Ce===void 0?6:/[gprs]/.test(ce)?Math.max(1,Math.min(21,Ce)):Math.max(0,Math.min(20,Ce));function Q($){var be=ge,qe=Pe,Ie,ar,Qe;if(ce==="c")qe=de($)+qe,$="";else{$=+$;var Be=$<0||1/$<0;if($=isNaN($)?H:de(Math.abs($),Ce),er&&($=u($)),Be&&+$==0&&le!=="+"&&(Be=!1),be=(Be?le==="("?le:Z:le==="-"||le==="("?"":le)+be,qe=(ce==="s"?y[8+f/3]:"")+qe+(Be&&le==="("?")":""),G){for(Ie=-1,ar=$.length;++IeQe||Qe>57){qe=(Qe===46?I+$.slice(Ie+1):$.slice(Ie))+qe,$=$.slice(0,Ie);break}}}Xe&&!Ne&&($=D($,1/0));var cr=be.length+$.length+qe.length,or=cr>1)+be+$+qe+or.slice(cr);break;default:$=or+be+$+qe;break}return W($)}return Q.toString=function(){return re+""},Q}function ie(re,K){var fe=ee((re=l(re),re.type="f",re)),le=Math.max(-8,Math.min(8,Math.floor(n(K)/3)))*3,ke=Math.pow(10,-le),Ne=y[8+le/3];return function(He){return fe(ke*He)+Ne}}return{format:ee,formatPrefix:ie}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return C=_(M),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function b(M){return Math.max(0,-n(Math.abs(M)))}function A(M,D){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(D)/3)))*3-n(Math.abs(M)))}function k(M,D){return M=Math.abs(M),D=Math.abs(D)-M,Math.max(0,n(D)-n(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=_,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var o6=te((Tle,i6)=>{"use strict";i6.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Ht=te((kle,l6)=>{"use strict";var sH=o6();l6.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&sH(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Pn=te((Sle,s6)=>{"use strict";s6.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Py=te((yd,u6)=>{(function(e,r){typeof yd=="object"&&typeof u6!="undefined"?r(yd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(yd,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,v,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var $s=te((Cle,f6)=>{"use strict";f6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var qi=te(hl=>{"use strict";var uH=Py().decode,fH=$s(),Ry=Array.isArray,cH=ArrayBuffer,vH=DataView;function c6(e){return cH.isView(e)&&!(e instanceof vH)}hl.isTypedArray=c6;function bd(e){return Ry(e)||c6(e)}hl.isArrayOrTypedArray=bd;function hH(e){return!bd(e[0])}hl.isArray1D=hH;hl.ensureArray=function(e,r){return Ry(e)||(e=[]),e.length=r,e};var Ca={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ca.uint8c=Ca.u1c;Ca.uint8=Ca.u1;Ca.int8=Ca.i1;Ca.uint16=Ca.u2;Ca.int16=Ca.i2;Ca.uint32=Ca.u4;Ca.int32=Ca.i4;Ca.float32=Ca.f4;Ca.float64=Ca.f8;function zy(e){return e.constructor===ArrayBuffer}hl.isArrayBuffer=zy;hl.decodeTypedArraySpec=function(e){var r=[],t=dH(e),n=t.dtype,a=Ca[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=t.bdata;zy(o)||(o=uH(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,v=+l[0],h=i*v,d=0;if(s===1)r=new a(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var h6=Ht(),Fy=qi().isArrayOrTypedArray;m6.exports=function(r,t){if(h6(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var n=t.split("."),a,i,o,l;for(l=0;l{"use strict";var q0=i1(),bH=/^\w*$/,_H=0,y6=1,_d=2,b6=3,nc=4;_6.exports=function(r,t,n,a){n=n||"name",a=a||"value";var i,o,l,s={};t&&t.length?(l=q0(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|_d,v.set(h,null);if(f){for(i=d;i{"use strict";var xH=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,wH=/^[^\.\[\]]+$/;w6.exports=function(e,r){for(;r;){var t=e.match(xH);if(t)e=t[1];else if(e.match(wH))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var xd=te((Ple,A6)=>{"use strict";var MH=Ht();A6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return MH(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var S6=te((Rle,k6)=>{"use strict";var T6=qi().isArrayOrTypedArray,o1=$s();k6.exports=function e(r,t){for(var n in t){var a=t[n],i=r[n];if(i!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(T6(a)&&T6(i)&&o1(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;l{"use strict";function AH(e,r){var t=e%r;return t<0?t+r:t}function TH(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}C6.exports={mod:AH,modHalf:TH}});var es=te((Nle,wd)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,i=e.min,o=e.max,l=e.random;function s(G,Q){if(G=G||"",Q=Q||{},G instanceof s)return G;if(!(this instanceof s))return new s(G,Q);var $=u(G);this._originalInput=G,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=a(100*this._a)/100,this._format=Q.format||$.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=$.ok,this._tc_id=n++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var G=this.toRgb();return(G.r*299+G.g*587+G.b*114)/1e3},getLuminance:function(){var G=this.toRgb(),Q,$,be,qe,Ie,ar;return Q=G.r/255,$=G.g/255,be=G.b/255,Q<=.03928?qe=Q/12.92:qe=e.pow((Q+.055)/1.055,2.4),$<=.03928?Ie=$/12.92:Ie=e.pow(($+.055)/1.055,2.4),be<=.03928?ar=be/12.92:ar=e.pow((be+.055)/1.055,2.4),.2126*qe+.7152*Ie+.0722*ar},setAlpha:function(G){return this._a=re(G),this._roundA=a(100*this._a)/100,this},toHsv:function(){var G=d(this._r,this._g,this._b);return{h:G.h*360,s:G.s,v:G.v,a:this._a}},toHsvString:function(){var G=d(this._r,this._g,this._b),Q=a(G.h*360),$=a(G.s*100),be=a(G.v*100);return this._a==1?"hsv("+Q+", "+$+"%, "+be+"%)":"hsva("+Q+", "+$+"%, "+be+"%, "+this._roundA+")"},toHsl:function(){var G=v(this._r,this._g,this._b);return{h:G.h*360,s:G.s,l:G.l,a:this._a}},toHslString:function(){var G=v(this._r,this._g,this._b),Q=a(G.h*360),$=a(G.s*100),be=a(G.l*100);return this._a==1?"hsl("+Q+", "+$+"%, "+be+"%)":"hsla("+Q+", "+$+"%, "+be+"%, "+this._roundA+")"},toHex:function(G){return p(this._r,this._g,this._b,G)},toHexString:function(G){return"#"+this.toHex(G)},toHex8:function(G){return y(this._r,this._g,this._b,this._a,G)},toHex8String:function(G){return"#"+this.toHex8(G)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(K(this._r,255)*100)+"%",g:a(K(this._g,255)*100)+"%",b:a(K(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(K(this._r,255)*100)+"%, "+a(K(this._g,255)*100)+"%, "+a(K(this._b,255)*100)+"%)":"rgba("+a(K(this._r,255)*100)+"%, "+a(K(this._g,255)*100)+"%, "+a(K(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ee[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(G){var Q="#"+_(this._r,this._g,this._b,this._a),$=Q,be=this._gradientType?"GradientType = 1, ":"";if(G){var qe=s(G);$="#"+_(qe._r,qe._g,qe._b,qe._a)}return"progid:DXImageTransform.Microsoft.gradient("+be+"startColorstr="+Q+",endColorstr="+$+")"},toString:function(G){var Q=!!G;G=G||this._format;var $=!1,be=this._a<1&&this._a>=0,qe=!Q&&be&&(G==="hex"||G==="hex6"||G==="hex3"||G==="hex4"||G==="hex8"||G==="name");return qe?G==="name"&&this._a===0?this.toName():this.toRgbString():(G==="rgb"&&($=this.toRgbString()),G==="prgb"&&($=this.toPercentageRgbString()),(G==="hex"||G==="hex6")&&($=this.toHexString()),G==="hex3"&&($=this.toHexString(!0)),G==="hex4"&&($=this.toHex8String(!0)),G==="hex8"&&($=this.toHex8String()),G==="name"&&($=this.toName()),G==="hsl"&&($=this.toHslString()),G==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(G,Q){var $=G.apply(null,[this].concat([].slice.call(Q)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(G,Q){return G.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(Z,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},s.fromRatio=function(G,Q){if(typeof G=="object"){var $={};for(var be in G)G.hasOwnProperty(be)&&(be==="a"?$[be]=G[be]:$[be]=Xe(G[be]));G=$}return s(G,Q)};function u(G){var Q={r:0,g:0,b:0},$=1,be=null,qe=null,Ie=null,ar=!1,Qe=!1;return typeof G=="string"&&(G=Pe(G)),typeof G=="object"&&(ge(G.r)&&ge(G.g)&&ge(G.b)?(Q=f(G.r,G.g,G.b),ar=!0,Qe=String(G.r).substr(-1)==="%"?"prgb":"rgb"):ge(G.h)&&ge(G.s)&&ge(G.v)?(be=Xe(G.s),qe=Xe(G.v),Q=m(G.h,be,qe),ar=!0,Qe="hsv"):ge(G.h)&&ge(G.s)&&ge(G.l)&&(be=Xe(G.s),Ie=Xe(G.l),Q=h(G.h,be,Ie),ar=!0,Qe="hsl"),G.hasOwnProperty("a")&&($=G.a)),$=re($),{ok:ar,format:G.format||Qe,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:$}}function f(G,Q,$){return{r:K(G,255)*255,g:K(Q,255)*255,b:K($,255)*255}}function v(G,Q,$){G=K(G,255),Q=K(Q,255),$=K($,255);var be=o(G,Q,$),qe=i(G,Q,$),Ie,ar,Qe=(be+qe)/2;if(be==qe)Ie=ar=0;else{var Be=be-qe;switch(ar=Qe>.5?Be/(2-be-qe):Be/(be+qe),be){case G:Ie=(Q-$)/Be+(Q<$?6:0);break;case Q:Ie=($-G)/Be+2;break;case $:Ie=(G-Q)/Be+4;break}Ie/=6}return{h:Ie,s:ar,l:Qe}}function h(G,Q,$){var be,qe,Ie;G=K(G,360),Q=K(Q,100),$=K($,100);function ar(cr,or,hr){return hr<0&&(hr+=1),hr>1&&(hr-=1),hr<1/6?cr+(or-cr)*6*hr:hr<1/2?or:hr<2/3?cr+(or-cr)*(2/3-hr)*6:cr}if(Q===0)be=qe=Ie=$;else{var Qe=$<.5?$*(1+Q):$+Q-$*Q,Be=2*$-Qe;be=ar(Be,Qe,G+1/3),qe=ar(Be,Qe,G),Ie=ar(Be,Qe,G-1/3)}return{r:be*255,g:qe*255,b:Ie*255}}function d(G,Q,$){G=K(G,255),Q=K(Q,255),$=K($,255);var be=o(G,Q,$),qe=i(G,Q,$),Ie,ar,Qe=be,Be=be-qe;if(ar=be===0?0:Be/be,be==qe)Ie=0;else{switch(be){case G:Ie=(Q-$)/Be+(Q<$?6:0);break;case Q:Ie=($-G)/Be+2;break;case $:Ie=(G-Q)/Be+4;break}Ie/=6}return{h:Ie,s:ar,v:Qe}}function m(G,Q,$){G=K(G,360)*6,Q=K(Q,100),$=K($,100);var be=e.floor(G),qe=G-be,Ie=$*(1-Q),ar=$*(1-qe*Q),Qe=$*(1-(1-qe)*Q),Be=be%6,cr=[$,ar,Ie,Ie,Qe,$][Be],or=[Qe,$,$,ar,Ie,Ie][Be],hr=[Ie,Ie,Qe,$,$,ar][Be];return{r:cr*255,g:or*255,b:hr*255}}function p(G,Q,$,be){var qe=[He(a(G).toString(16)),He(a(Q).toString(16)),He(a($).toString(16))];return be&&qe[0].charAt(0)==qe[0].charAt(1)&&qe[1].charAt(0)==qe[1].charAt(1)&&qe[2].charAt(0)==qe[2].charAt(1)?qe[0].charAt(0)+qe[1].charAt(0)+qe[2].charAt(0):qe.join("")}function y(G,Q,$,be,qe){var Ie=[He(a(G).toString(16)),He(a(Q).toString(16)),He(a($).toString(16)),He(Ce(be))];return qe&&Ie[0].charAt(0)==Ie[0].charAt(1)&&Ie[1].charAt(0)==Ie[1].charAt(1)&&Ie[2].charAt(0)==Ie[2].charAt(1)&&Ie[3].charAt(0)==Ie[3].charAt(1)?Ie[0].charAt(0)+Ie[1].charAt(0)+Ie[2].charAt(0)+Ie[3].charAt(0):Ie.join("")}function _(G,Q,$,be){var qe=[He(Ce(be)),He(a(G).toString(16)),He(a(Q).toString(16)),He(a($).toString(16))];return qe.join("")}s.equals=function(G,Q){return!G||!Q?!1:s(G).toRgbString()==s(Q).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function C(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.s-=Q/100,$.s=fe($.s),s($)}function x(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.s+=Q/100,$.s=fe($.s),s($)}function b(G){return s(G).desaturate(100)}function A(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.l+=Q/100,$.l=fe($.l),s($)}function k(G,Q){Q=Q===0?0:Q||10;var $=s(G).toRgb();return $.r=o(0,i(255,$.r-a(255*-(Q/100)))),$.g=o(0,i(255,$.g-a(255*-(Q/100)))),$.b=o(0,i(255,$.b-a(255*-(Q/100)))),s($)}function M(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.l-=Q/100,$.l=fe($.l),s($)}function D(G,Q){var $=s(G).toHsl(),be=($.h+Q)%360;return $.h=be<0?360+be:be,s($)}function R(G){var Q=s(G).toHsl();return Q.h=(Q.h+180)%360,s(Q)}function N(G){var Q=s(G).toHsl(),$=Q.h;return[s(G),s({h:($+120)%360,s:Q.s,l:Q.l}),s({h:($+240)%360,s:Q.s,l:Q.l})]}function I(G){var Q=s(G).toHsl(),$=Q.h;return[s(G),s({h:($+90)%360,s:Q.s,l:Q.l}),s({h:($+180)%360,s:Q.s,l:Q.l}),s({h:($+270)%360,s:Q.s,l:Q.l})]}function W(G){var Q=s(G).toHsl(),$=Q.h;return[s(G),s({h:($+72)%360,s:Q.s,l:Q.l}),s({h:($+216)%360,s:Q.s,l:Q.l})]}function O(G,Q,$){Q=Q||6,$=$||30;var be=s(G).toHsl(),qe=360/$,Ie=[s(G)];for(be.h=(be.h-(qe*Q>>1)+720)%360;--Q;)be.h=(be.h+qe)%360,Ie.push(s(be));return Ie}function Z(G,Q){Q=Q||6;for(var $=s(G).toHsv(),be=$.h,qe=$.s,Ie=$.v,ar=[],Qe=1/Q;Q--;)ar.push(s({h:be,s:qe,v:Ie})),Ie=(Ie+Qe)%1;return ar}s.mix=function(G,Q,$){$=$===0?0:$||50;var be=s(G).toRgb(),qe=s(Q).toRgb(),Ie=$/100,ar={r:(qe.r-be.r)*Ie+be.r,g:(qe.g-be.g)*Ie+be.g,b:(qe.b-be.b)*Ie+be.b,a:(qe.a-be.a)*Ie+be.a};return s(ar)},s.readability=function(G,Q){var $=s(G),be=s(Q);return(e.max($.getLuminance(),be.getLuminance())+.05)/(e.min($.getLuminance(),be.getLuminance())+.05)},s.isReadable=function(G,Q,$){var be=s.readability(G,Q),qe,Ie;switch(Ie=!1,qe=de($),qe.level+qe.size){case"AAsmall":case"AAAlarge":Ie=be>=4.5;break;case"AAlarge":Ie=be>=3;break;case"AAAsmall":Ie=be>=7;break}return Ie},s.mostReadable=function(G,Q,$){var be=null,qe=0,Ie,ar,Qe,Be;$=$||{},ar=$.includeFallbackColors,Qe=$.level,Be=$.size;for(var cr=0;crqe&&(qe=Ie,be=s(Q[cr]));return s.isReadable(G,be,{level:Qe,size:Be})||!ar?be:($.includeFallbackColors=!1,s.mostReadable(G,["#fff","#000"],$))};var H=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ee=s.hexNames=ie(H);function ie(G){var Q={};for(var $ in G)G.hasOwnProperty($)&&(Q[G[$]]=$);return Q}function re(G){return G=parseFloat(G),(isNaN(G)||G<0||G>1)&&(G=1),G}function K(G,Q){ke(G)&&(G="100%");var $=Ne(G);return G=i(Q,o(0,parseFloat(G))),$&&(G=parseInt(G*Q,10)/100),e.abs(G-Q)<1e-6?1:G%Q/parseFloat(Q)}function fe(G){return i(1,o(0,G))}function le(G){return parseInt(G,16)}function ke(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1}function Ne(G){return typeof G=="string"&&G.indexOf("%")!=-1}function He(G){return G.length==1?"0"+G:""+G}function Xe(G){return G<=1&&(G=G*100+"%"),G}function Ce(G){return e.round(parseFloat(G)*255).toString(16)}function er(G){return le(G)/255}var ce=function(){var G="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",$="(?:"+Q+")|(?:"+G+")",be="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",qe="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+be),rgba:new RegExp("rgba"+qe),hsl:new RegExp("hsl"+be),hsla:new RegExp("hsla"+qe),hsv:new RegExp("hsv"+be),hsva:new RegExp("hsva"+qe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ge(G){return!!ce.CSS_UNIT.exec(G)}function Pe(G){G=G.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(H[G])G=H[G],Q=!0;else if(G=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=ce.rgb.exec(G))?{r:$[1],g:$[2],b:$[3]}:($=ce.rgba.exec(G))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=ce.hsl.exec(G))?{h:$[1],s:$[2],l:$[3]}:($=ce.hsla.exec(G))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=ce.hsv.exec(G))?{h:$[1],s:$[2],v:$[3]}:($=ce.hsva.exec(G))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=ce.hex8.exec(G))?{r:le($[1]),g:le($[2]),b:le($[3]),a:er($[4]),format:Q?"name":"hex8"}:($=ce.hex6.exec(G))?{r:le($[1]),g:le($[2]),b:le($[3]),format:Q?"name":"hex"}:($=ce.hex4.exec(G))?{r:le($[1]+""+$[1]),g:le($[2]+""+$[2]),b:le($[3]+""+$[3]),a:er($[4]+""+$[4]),format:Q?"name":"hex8"}:($=ce.hex3.exec(G))?{r:le($[1]+""+$[1]),g:le($[2]+""+$[2]),b:le($[3]+""+$[3]),format:Q?"name":"hex"}:!1}function de(G){var Q,$;return G=G||{level:"AA",size:"small"},Q=(G.level||"AA").toUpperCase(),$=(G.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),$!=="small"&&$!=="large"&&($="small"),{level:Q,size:$}}typeof wd!="undefined"&&wd.exports?wd.exports=s:window.tinycolor=s})(Math)});var fa=te(u1=>{"use strict";var L6=$s(),l1=Array.isArray;function kH(e,r){var t,n;for(t=0;t{"use strict";q6.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var f1=te((Hle,D6)=>{"use strict";D6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var E0=te((Ble,R6)=>{"use strict";var E6=f1(),P6=Qa(),Iy=P6({editType:"none"});Iy.family.dflt=E6.HOVERFONT;Iy.size.dflt=E6.HOVERFONTSIZE;R6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Iy,grouptitlefont:P6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Md=te((Ole,z6)=>{"use strict";var SH=Qa(),c1=E0().hoverlabel,v1=fa().extendFlat;z6.exports={hoverlabel:{bgcolor:v1({},c1.bgcolor,{arrayOk:!0}),bordercolor:v1({},c1.bordercolor,{arrayOk:!0}),font:SH({arrayOk:!0,editType:"none"}),align:v1({},c1.align,{arrayOk:!0}),namelength:v1({},c1.namelength,{arrayOk:!0}),showarrow:v1({},c1.showarrow),editType:"none"}}});var _o=te((Ule,N6)=>{"use strict";var CH=Qa(),LH=Md();N6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:CH({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:LH.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ac=te((Yle,H6)=>{"use strict";var qH=es(),Ad={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},F6=Ad.RdBu;function DH(e,r){if(r||(r=F6),!e)return r;function t(){try{e=Ad[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),I6(e)?e:r}function I6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";ic.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];ic.defaultLine="#444";ic.lightLine="#eee";ic.background="#fff";ic.borderLine="#BEC8D9";ic.lightFraction=100*10/11});var Rt=te((Vle,B6)=>{"use strict";var Di=es(),PH=Ht(),RH=qi().isTypedArray,_a=B6.exports={},Td=dl();_a.defaults=Td.defaults;var zH=_a.defaultLine=Td.defaultLine;_a.lightLine=Td.lightLine;var By=_a.background=Td.background;_a.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};_a.rgb=function(e){return _a.tinyRGB(Di(e))};_a.opacity=function(e){return e?Di(e).getAlpha():0};_a.addOpacity=function(e,r){var t=Di(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};_a.combine=function(e,r){var t=Di(e).toRgb();if(t.a===1)return Di(e).toRgbString();var n=Di(r||By).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},i={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return Di(i).toRgbString()};_a.interpolate=function(e,r,t){var n=Di(e).toRgb(),a=Di(r).toRgb(),i={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return Di(i).toRgbString()};_a.contrast=function(e,r,t){var n=Di(e);n.getAlpha()!==1&&(n=Di(_a.combine(e,By)));var a=n.isDark()?r?n.lighten(r):By:t?n.darken(t):zH;return a.toString()};_a.stroke=function(e,r){var t=Di(r);e.style({stroke:_a.tinyRGB(t),"stroke-opacity":t.getAlpha()})};_a.fill=function(e,r){var t=Di(r);e.style({fill:_a.tinyRGB(t),"fill-opacity":t.getAlpha()})};_a.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,i;for(t=0;t=0)))return e;if(i===3)n[i]>1&&(n[i]=1);else if(n[i]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var kd=te((Wle,O6)=>{"use strict";O6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var P0=te(U6=>{"use strict";U6.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),i=n===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}});var W6=te(Ei=>{"use strict";var Oy=Ht(),Y6=es(),G6=fa().extendFlat,NH=_o(),FH=ac(),IH=Rt(),HH=kd().DESELECTDIM,R0=i1(),V6=P0().counter,BH=D0().modHalf,pl=qi().isArrayOrTypedArray,Iu=qi().isTypedArraySpec,Hu=qi().decodeTypedArraySpec;Ei.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(pl(e)?e:Iu(e)?Hu(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;ni===!0||i===!1;a(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,n){Iu(e)&&(e=Hu(e)),!Oy(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Iu(e)&&(e=Hu(e)),e%1||!Oy(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Iu(e)&&(e=Hu(e)),Y6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return Y6(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(FH.get(e,t))}},angle:{coerceFunction:function(e,r,t){Iu(e)&&(e=Hu(e)),e==="auto"?r.set("auto"):Oy(e)?r.set(BH(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||V6(t);let i=o=>typeof o=="string"&&a.test(o);i(e)||n.arrayOk&&pl(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!V6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),i=0;i{"use strict";var Z6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},X6={};function j6(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),j6(n,r[t]))}}j6(Z6,X6);J6.exports={configAttributes:Z6,dfltConfig:X6}});var Yy=te((Jle,$6)=>{"use strict";var Uy=kt(),OH=Ht(),h1=[];$6.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||h1.indexOf(e)!==-1)return;h1.push(e);var n=1e3;OH(r)?n=r:r==="long"&&(n=3e3);var a=Uy.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var i=a.selectAll(".notifier-note").data(h1);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=h1.indexOf(u);f!==-1&&h1.splice(f,1),Uy.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=Uy.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),v=s.split(//g),h=0;h{"use strict";var z0=oc().dfltConfig,Gy=Yy(),Vy=K6.exports={};Vy.log=function(){var e;if(z0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Vy.warn=function(){var e;if(z0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Vy.error=function(){var e;if(z0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Cd=te((Kle,Q6)=>{"use strict";Q6.exports=function(){}});var Wy=te((Qle,ex)=>{"use strict";ex.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{rx.exports=UH;function UH(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ax=te((rse,nx)=>{nx.exports=YH;function YH(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var ox=te((tse,ix)=>{ix.exports=GH;function GH(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Zy=te((nse,lx)=>{lx.exports=VH;function VH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ux=te((ase,sx)=>{sx.exports=WH;function WH(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=i,e[11]=r[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var cx=te((ise,fx)=>{fx.exports=ZH;function ZH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],_=r[15],C=t*l-n*o,x=t*s-a*o,b=t*u-i*o,A=n*s-a*l,k=n*u-i*l,M=a*u-i*s,D=f*p-v*m,R=f*y-h*m,N=f*_-d*m,I=v*y-h*p,W=v*_-d*p,O=h*_-d*y,Z=C*O-x*W+b*I+A*N-k*R+M*D;return Z?(Z=1/Z,e[0]=(l*O-s*W+u*I)*Z,e[1]=(a*W-n*O-i*I)*Z,e[2]=(p*M-y*k+_*A)*Z,e[3]=(h*k-v*M-d*A)*Z,e[4]=(s*N-o*O-u*R)*Z,e[5]=(t*O-a*N+i*R)*Z,e[6]=(y*b-m*M-_*x)*Z,e[7]=(f*M-h*b+d*x)*Z,e[8]=(o*W-l*N+u*D)*Z,e[9]=(n*N-t*W-i*D)*Z,e[10]=(m*k-p*b+_*C)*Z,e[11]=(v*b-f*k-d*C)*Z,e[12]=(l*R-o*I-s*D)*Z,e[13]=(t*I-n*R+a*D)*Z,e[14]=(p*x-m*A-y*C)*Z,e[15]=(f*A-v*x+h*C)*Z,e):null}});var hx=te((ose,vx)=>{vx.exports=XH;function XH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],_=r[15];return e[0]=l*(h*_-d*y)-v*(s*_-u*y)+p*(s*d-u*h),e[1]=-(n*(h*_-d*y)-v*(a*_-i*y)+p*(a*d-i*h)),e[2]=n*(s*_-u*y)-l*(a*_-i*y)+p*(a*u-i*s),e[3]=-(n*(s*d-u*h)-l*(a*d-i*h)+v*(a*u-i*s)),e[4]=-(o*(h*_-d*y)-f*(s*_-u*y)+m*(s*d-u*h)),e[5]=t*(h*_-d*y)-f*(a*_-i*y)+m*(a*d-i*h),e[6]=-(t*(s*_-u*y)-o*(a*_-i*y)+m*(a*u-i*s)),e[7]=t*(s*d-u*h)-o*(a*d-i*h)+f*(a*u-i*s),e[8]=o*(v*_-d*p)-f*(l*_-u*p)+m*(l*d-u*v),e[9]=-(t*(v*_-d*p)-f*(n*_-i*p)+m*(n*d-i*v)),e[10]=t*(l*_-u*p)-o*(n*_-i*p)+m*(n*u-i*l),e[11]=-(t*(l*d-u*v)-o*(n*d-i*v)+f*(n*u-i*l)),e[12]=-(o*(v*y-h*p)-f*(l*y-s*p)+m*(l*h-s*v)),e[13]=t*(v*y-h*p)-f*(n*y-a*p)+m*(n*h-a*v),e[14]=-(t*(l*y-s*p)-o*(n*y-a*p)+m*(n*s-a*l)),e[15]=t*(l*h-s*v)-o*(n*h-a*v)+f*(n*s-a*l),e}});var px=te((lse,dx)=>{dx.exports=jH;function jH(e){var r=e[0],t=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],_=r*o-t*i,C=r*l-n*i,x=r*s-a*i,b=t*l-n*o,A=t*s-a*o,k=n*s-a*l,M=u*m-f*d,D=u*p-v*d,R=u*y-h*d,N=f*p-v*m,I=f*y-h*m,W=v*y-h*p;return _*W-C*I+x*N+b*R-A*D+k*M}});var mx=te((sse,gx)=>{gx.exports=JH;function JH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],_=r[14],C=r[15],x=t[0],b=t[1],A=t[2],k=t[3];return e[0]=x*n+b*l+A*v+k*p,e[1]=x*a+b*s+A*h+k*y,e[2]=x*i+b*u+A*d+k*_,e[3]=x*o+b*f+A*m+k*C,x=t[4],b=t[5],A=t[6],k=t[7],e[4]=x*n+b*l+A*v+k*p,e[5]=x*a+b*s+A*h+k*y,e[6]=x*i+b*u+A*d+k*_,e[7]=x*o+b*f+A*m+k*C,x=t[8],b=t[9],A=t[10],k=t[11],e[8]=x*n+b*l+A*v+k*p,e[9]=x*a+b*s+A*h+k*y,e[10]=x*i+b*u+A*d+k*_,e[11]=x*o+b*f+A*m+k*C,x=t[12],b=t[13],A=t[14],k=t[15],e[12]=x*n+b*l+A*v+k*p,e[13]=x*a+b*s+A*h+k*y,e[14]=x*i+b*u+A*d+k*_,e[15]=x*o+b*f+A*m+k*C,e}});var bx=te((use,yx)=>{yx.exports=$H;function $H(e,r,t){var n=t[0],a=t[1],i=t[2],o,l,s,u,f,v,h,d,m,p,y,_;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*i+r[12],e[13]=r[1]*n+r[5]*a+r[9]*i+r[13],e[14]=r[2]*n+r[6]*a+r[10]*i+r[14],e[15]=r[3]*n+r[7]*a+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],_=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=_,e[12]=o*n+f*a+m*i+r[12],e[13]=l*n+v*a+p*i+r[13],e[14]=s*n+h*a+y*i+r[14],e[15]=u*n+d*a+_*i+r[15]),e}});var xx=te((fse,_x)=>{_x.exports=KH;function KH(e,r,t){var n=t[0],a=t[1],i=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Mx=te((cse,wx)=>{wx.exports=QH;function QH(e,r,t,n){var a=n[0],i=n[1],o=n[2],l=Math.sqrt(a*a+i*i+o*o),s,u,f,v,h,d,m,p,y,_,C,x,b,A,k,M,D,R,N,I,W,O,Z,H;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],_=r[6],C=r[7],x=r[8],b=r[9],A=r[10],k=r[11],M=a*a*f+u,D=i*a*f+o*s,R=o*a*f-i*s,N=a*i*f-o*s,I=i*i*f+u,W=o*i*f+a*s,O=a*o*f+i*s,Z=i*o*f-a*s,H=o*o*f+u,e[0]=v*M+p*D+x*R,e[1]=h*M+y*D+b*R,e[2]=d*M+_*D+A*R,e[3]=m*M+C*D+k*R,e[4]=v*N+p*I+x*W,e[5]=h*N+y*I+b*W,e[6]=d*N+_*I+A*W,e[7]=m*N+C*I+k*W,e[8]=v*O+p*Z+x*H,e[9]=h*O+y*Z+b*H,e[10]=d*O+_*Z+A*H,e[11]=m*O+C*Z+k*H,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Tx=te((vse,Ax)=>{Ax.exports=eB;function eB(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*a+u*n,e[5]=o*a+f*n,e[6]=l*a+v*n,e[7]=s*a+h*n,e[8]=u*a-i*n,e[9]=f*a-o*n,e[10]=v*a-l*n,e[11]=h*a-s*n,e}});var Sx=te((hse,kx)=>{kx.exports=rB;function rB(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a-u*n,e[1]=o*a-f*n,e[2]=l*a-v*n,e[3]=s*a-h*n,e[8]=i*n+u*a,e[9]=o*n+f*a,e[10]=l*n+v*a,e[11]=s*n+h*a,e}});var Lx=te((dse,Cx)=>{Cx.exports=tB;function tB(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a+u*n,e[1]=o*a+f*n,e[2]=l*a+v*n,e[3]=s*a+h*n,e[4]=u*a-i*n,e[5]=f*a-o*n,e[6]=v*a-l*n,e[7]=h*a-s*n,e}});var Dx=te((pse,qx)=>{qx.exports=nB;function nB(e,r,t){var n,a,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,n=Math.sin(r),a=Math.cos(r),i=1-a,e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Px=te((gse,Ex)=>{Ex.exports=aB;function aB(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=n+n,s=a+a,u=i+i,f=n*l,v=n*s,h=n*u,d=a*s,m=a*u,p=i*u,y=o*l,_=o*s,C=o*u;return e[0]=1-(d+p),e[1]=v+C,e[2]=h-_,e[3]=0,e[4]=v-C,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+_,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var zx=te((mse,Rx)=>{Rx.exports=iB;function iB(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Fx=te((yse,Nx)=>{Nx.exports=oB;function oB(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Hx=te((bse,Ix)=>{Ix.exports=lB;function lB(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ox=te((_se,Bx)=>{Bx.exports=sB;function sB(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Yx=te((xse,Ux)=>{Ux.exports=uB;function uB(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Vx=te((wse,Gx)=>{Gx.exports=fB;function fB(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=t+t,l=n+n,s=a+a,u=t*o,f=n*o,v=n*l,h=a*o,d=a*l,m=a*s,p=i*o,y=i*l,_=i*s;return e[0]=1-v-m,e[1]=f+_,e[2]=h-y,e[3]=0,e[4]=f-_,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Zx=te((Mse,Wx)=>{Wx.exports=cB;function cB(e,r,t,n,a,i,o){var l=1/(t-r),s=1/(a-n),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var jx=te((Ase,Xx)=>{Xx.exports=vB;function vB(e,r,t,n,a){var i=1/Math.tan(r/2),o=1/(n-a);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}});var $x=te((Tse,Jx)=>{Jx.exports=hB;function hB(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(a-i)*u*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var Qx=te((kse,Kx)=>{Kx.exports=dB;function dB(e,r,t,n,a,i,o){var l=1/(r-t),s=1/(n-a),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*s,e[14]=(o+i)*u,e[15]=1,e}});var r7=te((Sse,e7)=>{var pB=Zy();e7.exports=gB;function gB(e,r,t,n){var a,i,o,l,s,u,f,v,h,d,m=r[0],p=r[1],y=r[2],_=n[0],C=n[1],x=n[2],b=t[0],A=t[1],k=t[2];return Math.abs(m-b)<1e-6&&Math.abs(p-A)<1e-6&&Math.abs(y-k)<1e-6?pB(e):(f=m-b,v=p-A,h=y-k,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,a=C*h-x*v,i=x*f-_*h,o=_*v-C*f,d=Math.sqrt(a*a+i*i+o*o),d?(d=1/d,a*=d,i*=d,o*=d):(a=0,i=0,o=0),l=v*o-h*i,s=h*a-f*o,u=f*i-v*a,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(a*m+i*p+o*y),e[13]=-(l*m+s*p+u*y),e[14]=-(f*m+v*p+h*y),e[15]=1,e)}});var n7=te((Cse,t7)=>{t7.exports=mB;function mB(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Xy=te((Lse,a7)=>{a7.exports={create:tx(),clone:ax(),copy:ox(),identity:Zy(),transpose:ux(),invert:cx(),adjoint:hx(),determinant:px(),multiply:mx(),translate:bx(),scale:xx(),rotate:Mx(),rotateX:Tx(),rotateY:Sx(),rotateZ:Lx(),fromRotation:Dx(),fromRotationTranslation:Px(),fromScaling:zx(),fromTranslation:Fx(),fromXRotation:Hx(),fromYRotation:Ox(),fromZRotation:Yx(),fromQuat:Vx(),frustum:Zx(),perspective:jx(),perspectiveFromFieldOfView:$x(),ortho:Qx(),lookAt:r7(),str:n7()}});var Ld=te(Jn=>{"use strict";var yB=Xy();Jn.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var bB=kt(),i7=Bu(),_B=Ld(),xB=Xy();function wB(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function MB(e){var r=bB.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function o7(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function AB(e,r){l7("global",e,r)}function l7(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var i=a.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):i7.warn("addStyleRule failed"):i7.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function TB(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&o7(t)}function kB(e,r,t,n,a,i){var o=n.split(":"),l=a.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function SB(e){var r=u7(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=s7(n);if(a){var i=_B.convertCssMatrix(a);t=xB.multiply(t,t,i)}}),t}function s7(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function u7(e){for(var r=[];CB(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function CB(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function LB(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}f7.exports={getGraphDiv:wB,isPlotDiv:MB,removeElement:o7,addStyleRule:AB,addRelatedStyleRule:l7,deleteRelatedStyleRule:TB,setStyleOnHover:kB,getFullTransformMatrix:SB,getElementTransformMatrix:s7,getElementAndAncestors:u7,equalDomRects:LB}});var p1=te((Ese,c7)=>{"use strict";c7.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var xo=te((Pse,y7)=>{"use strict";var h7=fa().extendFlat,qB=$s(),d7={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},p7={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},DB=d7.flags.slice().concat(["fullReplot"]),EB=p7.flags.slice().concat("layoutReplot");y7.exports={traces:d7,layout:p7,traceFlags:function(){return v7(DB)},layoutFlags:function(){return v7(EB)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";jy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};jy.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Jy=te((zse,b7)=>{"use strict";b7.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var lc=te(N0=>{"use strict";var{DATE_FORMAT_LINK:PB,FORMAT_LINK:RB}=Jy(),zB=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function NB({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,RB,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,PB,"for details on the date formatting syntax.",zB].join(" ")}N0.templateFormatStringDescription=NB;N0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>tc({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});N0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>tc({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});N0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});N0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Ed=te((Ise,T7)=>{"use strict";function Ou(e,r){return r?r.d2l(e):e}function _7(e,r){return r?r.l2d(e):e}function FB(e){return e.x0}function IB(e){return e.x1}function HB(e){return e.y0}function BB(e){return e.y1}function x7(e){return e.x0shift||0}function w7(e){return e.x1shift||0}function M7(e){return e.y0shift||0}function A7(e){return e.y1shift||0}function qd(e,r){return Ou(e.x1,r)+w7(e)-Ou(e.x0,r)-x7(e)}function Dd(e,r,t){return Ou(e.y1,t)+A7(e)-Ou(e.y0,t)-M7(e)}function OB(e,r){return Math.abs(qd(e,r))}function UB(e,r,t){return Math.abs(Dd(e,r,t))}function YB(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(qd(e,r),2)+Math.pow(Dd(e,r,t),2))}function GB(e,r){return _7((Ou(e.x1,r)+w7(e)+Ou(e.x0,r)+x7(e))/2,r)}function VB(e,r,t){return _7((Ou(e.y1,t)+A7(e)+Ou(e.y0,t)+M7(e))/2,t)}function WB(e,r,t){return e.type!=="line"?void 0:Dd(e,r,t)/qd(e,r)}var ZB=["x0","x1","y0","y1","dy","height","ycenter"],XB=["x0","x1","y0","y1","dx","width","xcenter"];T7.exports={x0:FB,x1:IB,y0:HB,y1:BB,slope:WB,dx:qd,dy:Dd,width:OB,height:UB,length:YB,xcenter:GB,ycenter:VB,simpleXVariables:ZB,simpleYVariables:XB}});var C7=te((Hse,S7)=>{"use strict";var jB=xo().overrideAll,sc=_o(),k7=Qa(),JB=rs().dash,Uu=fa().extendFlat,{shapeTexttemplateAttrs:$B,templatefallbackAttrs:KB}=lc(),QB=Ed();S7.exports=jB({newshape:{visible:Uu({},sc.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Uu({},sc.legend,{}),legendgroup:Uu({},sc.legendgroup,{}),legendgrouptitle:{text:Uu({},sc.legendgrouptitle.text,{}),font:k7({})},legendrank:Uu({},sc.legendrank,{}),legendwidth:Uu({},sc.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Uu({},JB,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Uu({},sc.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:$B({newshape:!0},{keys:Object.keys(QB)}),texttemplatefallback:KB({editType:"arraydraw"}),font:k7({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var q7=te((Bse,L7)=>{"use strict";var eO=rs().dash,rO=fa().extendFlat;L7.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:rO({},eO,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Pd=te((Ose,D7)=>{"use strict";D7.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var F0=te((Use,z7)=>{"use strict";var $y=Qa(),tO=p1(),Rd=dl(),E7=C7(),P7=q7(),nO=Pd(),R7=fa().extendFlat,zd=$y({editType:"calc"});zd.family.dflt='"Open Sans", verdana, arial, sans-serif';zd.size.dflt=12;zd.color.dflt=Rd.defaultLine;z7.exports={font:zd,title:{text:{valType:"string",editType:"layoutstyle"},font:$y({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:$y({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:R7(nO({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Rd.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Rd.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Rd.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:E7.newshape,activeshape:E7.activeshape,newselection:P7.newselection,activeselection:P7.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:R7({},tO.transition,{editType:"none"})}});var N7=te(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var dt=te(qt=>{"use strict";var I0=Bu(),F7=Cd(),I7=Wy(),aO=$s(),iO=d1().addStyleRule,H7=fa(),oO=_o(),lO=F0(),sO=H7.extendFlat,Ky=H7.extendDeepAll;qt.modules={};qt.allCategories={};qt.allTypes=[];qt.subplotsRegistry={};qt.componentsRegistry={};qt.layoutArrayContainers=[];qt.layoutArrayRegexes=[];qt.traceLayoutAttributes={};qt.localeRegistry={};qt.apiMethodRegistry={};qt.collectableSubplotTypes=null;qt.register=function(r){if(qt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var dO=L0().timeFormat,J7=Ht(),Qy=Bu(),Gu=D0().mod,O0=Pn(),wo=O0.BADNUM,Pi=O0.ONEDAY,g1=O0.ONEHOUR,Yu=O0.ONEMIN,B0=O0.ONESEC,m1=O0.EPOCHJD,Ks=dt(),G7=L0().utcFormat,pO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,gO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,V7=new Date().getFullYear()-70;function Qs(e){return e&&Ks.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}$n.dateTick0=function(e,r){var t=mO(e,!!r);if(r<2)return t;var n=$n.dateTime2ms(t,e);return n+=Pi*(r-1),$n.ms2DateTime(n,0,e)};function mO(e,r){return Qs(e)?r?Ks.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ks.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}$n.dfltRange=function(e){return Qs(e)?Ks.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};$n.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Fd,Id;$n.dateTime2ms=function(e,r){if($n.isJSDate(e)){var t=e.getTimezoneOffset()*Yu,n=(e.getUTCMinutes()-e.getMinutes())*Yu+(e.getUTCSeconds()-e.getSeconds())*B0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Yu;t=t-a/2+Gu(n-t+a/2,a)}return e=Number(e)-t,e>=Fd&&e<=Id?e:wo}if(typeof e!="string"&&typeof e!="number")return wo;e=String(e);var i=Qs(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?gO:pO);if(!s)return wo;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return wo;u=Number(u);var p;try{var y=Ks.getComponentMethod("calendars","getCal")(r);if(l){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(u,y.toMonthIndex(u,f,_),v)}else p=y.newDate(u,Number(f),v)}catch(x){return wo}return p?(p.toJD()-m1)*Pi+h*g1+d*Yu+m*B0:wo}u.length===2?u=(Number(u)+2e3-V7)%100+V7:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,v,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==v?wo:C.getTime()+m*B0};Fd=$n.MIN_MS=$n.dateTime2ms("-9999");Id=$n.MAX_MS=$n.dateTime2ms("9999-12-31 23:59:59.9999");$n.isDateTime=function(e,r){return $n.dateTime2ms(e,r)!==wo};function H0(e,r){return String(e+Math.pow(10,r)).slice(1)}var Nd=90*Pi,W7=3*g1,Z7=5*Yu;$n.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Fd&&e<=Id))return wo;r||(r=0);var n=Math.floor(Gu(e+.05,1)*10),a=Math.round(e-n/10),i,o,l,s,u,f;if(Qs(t)){var v=Math.floor(a/Pi)+m1,h=Math.floor(Gu(e,Pi));try{i=Ks.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=G7("G%Y-%m-%d")(new Date(a))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r=Fd+Pi&&e<=Id-Pi))return wo;var r=Math.floor(Gu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=dO("%Y-%m-%d")(t),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return $7(n,a,i,o,l)};function $7(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+H0(r,2)+":"+H0(t,2),(n||a)&&(e+=":"+H0(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+H0(a,i)}return e}$n.cleanDate=function(e,r,t){if(e===wo)return r;if($n.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Qs(t))return Qy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=$n.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!$n.isDateTime(e,t))return Qy.error("unrecognized date",e),r;return e};var yO=/%\d?f/g,bO=/%h/g,_O={1:"1",2:"1",3:"2",4:"2"};function X7(e,r,t,n){e=e.replace(yO,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(bO,function(){return _O[t("%q")(a)]}),Qs(n))try{e=Ks.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(i){return"Invalid"}return t(e)(a)}var xO=[59,59.9,59.99,59.999,59.9999];function wO(e,r){var t=Gu(e+.05,Pi),n=H0(Math.floor(t/g1),2)+":"+H0(Gu(Math.floor(t/Yu),60),2);if(r!=="M"){J7(r)||(r=0);var a=Math.min(Gu(e/B0,60),xO[r]),i=(100+a).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}$n.formatDate=function(e,r,t,n,a,i){if(a=Qs(a)&&a,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return wO(e,t)+` -`+X7(i.dayMonthYear,e,n,a);return X7(r,e,n,a)};var j7=3*Pi;$n.incrementMonth=function(e,r,t){t=Qs(t)&&t;var n=Gu(e,Pi);if(e=Math.round(e-n),t)try{var a=Math.round(e/Pi)+m1,i=Ks.getComponentMethod("calendars","getCal")(t),o=i.fromJD(a);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-m1)*Pi+n}catch(s){Qy.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+j7);return l.setUTCMonth(l.getUTCMonth()+r)+n-j7};$n.findExactDates=function(e,r){for(var t=0,n=0,a=0,i=0,o,l,s=Qs(r)&&Ks.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Q7.exports=function(r){return r}});var r2=te(eu=>{"use strict";var MO=Ht(),AO=Bu(),TO=Hd(),kO=Pn().BADNUM,e2=1e-9;eu.findBin=function(e,r,t){if(MO(r.start))return t?Math.ceil((e-r.start)/r.size-e2)-1:Math.floor((e-r.start)/r.size+e2);var n=0,a=r.length,i=0,o=a>1?(r[a-1]-r[0])/(a-1):1,l,s;for(o>=0?s=t?SO:CO:s=t?qO:LO,e+=o*e2*(t?-1:1)*(o>=0?1:-1);n90&&AO.log("Long binary search..."),n-1};function SO(e,r){return er}function qO(e,r){return e>=r}eu.sorterAsc=function(e,r){return e-r};eu.sorterDes=function(e,r){return r-e};eu.distinctVals=function(e){var r=e.slice();r.sort(eu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===kO;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>a&&(n=Math.min(n,u),i.push(s),o=s)}return{vals:i,minDiff:n}};eu.roundUp=function(e,r,t){for(var n=0,a=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};eu.findIndexOfMin=function(e,r){r=r||TO;for(var t=1/0,n,a=0;a{"use strict";ew.exports=function(r){return Object.keys(r).sort()}});var rw=te(Kn=>{"use strict";var y1=Ht(),DO=qi().isArrayOrTypedArray;Kn.aggNums=function(e,r,t,n){var a,i;if((!n||n>t.length)&&(n=t.length),y1(r)||(r=!1),DO(t[0])){for(i=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var ow=te(($se,iw)=>{"use strict";var tw=D0(),t2=tw.mod,EO=tw.modHalf,b1=Math.PI,Vu=2*b1;function PO(e){return e/180*b1}function RO(e){return e/b1*180}function n2(e){return Math.abs(e[1]-e[0])>Vu-1e-14}function nw(e,r){return EO(r-e,Vu)}function zO(e,r){return Math.abs(nw(e,r))}function aw(e,r){if(n2(r))return!0;var t,n;r[0]n&&(n+=Vu);var a=t2(e,Vu),i=a+Vu;return a>=t&&a<=n||i>=t&&i<=n}function NO(e,r,t,n){if(!aw(r,n))return!1;var a,i;return t[0]=a&&e<=i}function a2(e,r,t,n,a,i,o){a=a||0,i=i||0;var l=n2([t,n]),s,u,f,v,h;l?(s=0,u=b1,f=Vu):t{"use strict";uc.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};uc.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};uc.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};uc.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};uc.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};uc.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var fw=te(fc=>{"use strict";var i2=D0().mod;fc.segmentsIntersect=uw;function uw(e,r,t,n,a,i,o,l){var s=t-e,u=a-e,f=o-a,v=n-r,h=i-r,d=l-i,m=s*d-f*v;if(m===0)return null;var p=(u*d-f*h)/m,y=(u*v-s*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+s*p,y:r+v*p}}fc.segmentDistance=function(r,t,n,a,i,o,l,s){if(uw(r,t,n,a,i,o,l,s))return 0;var u=n-r,f=a-t,v=l-i,h=s-o,d=u*u+f*f,m=v*v+h*h,p=Math.min(Od(u,f,d,i-r,o-t),Od(u,f,d,l-r,s-t),Od(v,h,m,r-i,t-o),Od(v,h,m,n-i,a-o));return Math.sqrt(p)};function Od(e,r,t,n,a){var i=n*e+a*r;if(i<0)return n*n+a*a;if(i>t){var o=n-e,l=a-r;return o*o+l*l}else{var s=n*r-a*e;return s*s/t}}var Ud,o2,sw;fc.getTextLocation=function(r,t,n,a){if((r!==o2||a!==sw)&&(Ud={},o2=r,sw=a),Ud[n])return Ud[n];var i=r.getPointAtLength(i2(n-a/2,t)),o=r.getPointAtLength(i2(n+a/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(i2(n,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,v={x:u,y:f,theta:l};return Ud[n]=v,v};fc.clearLocationCache=function(){o2=null};fc.getVisibleSegment=function(r,t,n){var a=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(p){var y=r.getPointAtLength(p);p===0?v=y:p===u&&(h=y);var _=y.xi?y.x-i:0,C=y.yl?y.y-l:0;return Math.sqrt(_*_+C*C)}for(var m=d(s);m;){if(s+=m+n,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+n,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};fc.findPointOnPath=function(r,t,n,a){a=a||{};for(var i=a.pathLength||r.getTotalLength(),o=a.tolerance||.001,l=a.iterationLimit||30,s=r.getPointAtLength(0)[n]>r.getPointAtLength(i)[n]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var Yd=te(_1=>{"use strict";var ru={};_1.throttle=function(r,t,n){var a=ru[r],i=Date.now();if(!a){for(var o in ru)ru[o].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};_1.done=function(e){var r=ru[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};_1.clear=function(e){if(e)cw(ru[e]),delete ru[e];else for(var r in ru)_1.clear(r)};function cw(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var hw=te((rue,vw)=>{"use strict";vw.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var dw=te((tue,Gd)=>{"use strict";Gd.exports=l2;Gd.exports.isMobile=l2;Gd.exports.default=l2;var BO=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,OO=/CrOS/,UO=/android|ipad|playbook|silk/i;function l2(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=BO.test(r)&&!OO.test(r)||!!e.tablet&&UO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var gw=te((nue,pw)=>{"use strict";var YO=Ht(),GO=dw();pw.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=VO(),typeof t!="string")return!0;var n=GO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),i=1;i-1;l--){var s=a[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(YO(u)&&(u=+u),u>=13)return!0}}}return n};function VO(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var yw=te((aue,mw)=>{"use strict";var WO=kt();mw.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(o){o[0][i]=WO.select(this)}),a}});var _w=te((iue,bw)=>{"use strict";var ZO=dt();bw.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=ZO.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}});var ww=te((oue,xw)=>{"use strict";xw.exports=function(r){for(var t={},n=[],a=0,i=0;i{"use strict";Mw.exports=function(r){for(var t=JO(r)?jO:XO,n=[],a=0;a{"use strict";Tw.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,i=String(a).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(a).toPrecision(12);s.indexOf("e+")===-1&&(a=+s)}}return a}});var Cw=te((uue,Sw)=>{"use strict";var $O=Ht(),KO=Pn().BADNUM,QO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Sw.exports=function(r){return typeof r=="string"&&(r=r.replace(QO,"")),$O(r)?Number(r):KO}});var gr=te((fue,Ow)=>{"use strict";var x1=kt(),eU=L0().utcFormat,rU=Ey().format,Rw=Ht(),zw=Pn(),Nw=zw.FP_SAFE,tU=-Nw,Lw=zw.BADNUM,Ee=Ow.exports={};Ee.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var qw={};Ee.warnBadFormat=function(e){var r=String(e);qw[r]||(qw[r]=1,Ee.warn('encountered bad format: "'+r+'"'))};Ee.noFormat=function(e){return String(e)};Ee.numberFormat=function(e){var r;try{r=rU(Ee.adjustFormat(e))}catch(t){return Ee.warnBadFormat(e),Ee.noFormat}return r};Ee.nestedProperty=i1();Ee.keyedContainer=x6();Ee.relativeAttr=M6();Ee.isPlainObject=$s();Ee.toLogRange=xd();Ee.relinkPrivateKeys=S6();var Wu=qi();Ee.isArrayBuffer=Wu.isArrayBuffer;Ee.isTypedArray=Wu.isTypedArray;Ee.isArrayOrTypedArray=Wu.isArrayOrTypedArray;Ee.isArray1D=Wu.isArray1D;Ee.ensureArray=Wu.ensureArray;Ee.concat=Wu.concat;Ee.maxRowLength=Wu.maxRowLength;Ee.minRowLength=Wu.minRowLength;var Fw=D0();Ee.mod=Fw.mod;Ee.modHalf=Fw.modHalf;var Zu=W6();Ee.valObjectMeta=Zu.valObjectMeta;Ee.coerce=Zu.coerce;Ee.coerce2=Zu.coerce2;Ee.coerceFont=Zu.coerceFont;Ee.coercePattern=Zu.coercePattern;Ee.coerceHoverinfo=Zu.coerceHoverinfo;Ee.coerceSelectionMarkerOpacity=Zu.coerceSelectionMarkerOpacity;Ee.validate=Zu.validate;var Ji=K7();Ee.dateTime2ms=Ji.dateTime2ms;Ee.isDateTime=Ji.isDateTime;Ee.ms2DateTime=Ji.ms2DateTime;Ee.ms2DateTimeLocal=Ji.ms2DateTimeLocal;Ee.cleanDate=Ji.cleanDate;Ee.isJSDate=Ji.isJSDate;Ee.formatDate=Ji.formatDate;Ee.incrementMonth=Ji.incrementMonth;Ee.dateTick0=Ji.dateTick0;Ee.dfltRange=Ji.dfltRange;Ee.findExactDates=Ji.findExactDates;Ee.MIN_MS=Ji.MIN_MS;Ee.MAX_MS=Ji.MAX_MS;var cc=r2();Ee.findBin=cc.findBin;Ee.sorterAsc=cc.sorterAsc;Ee.sorterDes=cc.sorterDes;Ee.distinctVals=cc.distinctVals;Ee.roundUp=cc.roundUp;Ee.sort=cc.sort;Ee.findIndexOfMin=cc.findIndexOfMin;Ee.sortObjectKeys=Bd();var tu=rw();Ee.aggNums=tu.aggNums;Ee.len=tu.len;Ee.mean=tu.mean;Ee.geometricMean=tu.geometricMean;Ee.median=tu.median;Ee.midRange=tu.midRange;Ee.variance=tu.variance;Ee.stdev=tu.stdev;Ee.interp=tu.interp;var gl=Ld();Ee.init2dArray=gl.init2dArray;Ee.transposeRagged=gl.transposeRagged;Ee.dot=gl.dot;Ee.translationMatrix=gl.translationMatrix;Ee.rotationMatrix=gl.rotationMatrix;Ee.rotationXYMatrix=gl.rotationXYMatrix;Ee.apply3DTransform=gl.apply3DTransform;Ee.apply2DTransform=gl.apply2DTransform;Ee.apply2DTransform2=gl.apply2DTransform2;Ee.convertCssMatrix=gl.convertCssMatrix;Ee.inverseTransformMatrix=gl.inverseTransformMatrix;var ts=ow();Ee.deg2rad=ts.deg2rad;Ee.rad2deg=ts.rad2deg;Ee.angleDelta=ts.angleDelta;Ee.angleDist=ts.angleDist;Ee.isFullCircle=ts.isFullCircle;Ee.isAngleInsideSector=ts.isAngleInsideSector;Ee.isPtInsideSector=ts.isPtInsideSector;Ee.pathArc=ts.pathArc;Ee.pathSector=ts.pathSector;Ee.pathAnnulus=ts.pathAnnulus;var Y0=lw();Ee.isLeftAnchor=Y0.isLeftAnchor;Ee.isCenterAnchor=Y0.isCenterAnchor;Ee.isRightAnchor=Y0.isRightAnchor;Ee.isTopAnchor=Y0.isTopAnchor;Ee.isMiddleAnchor=Y0.isMiddleAnchor;Ee.isBottomAnchor=Y0.isBottomAnchor;var G0=fw();Ee.segmentsIntersect=G0.segmentsIntersect;Ee.segmentDistance=G0.segmentDistance;Ee.getTextLocation=G0.getTextLocation;Ee.clearLocationCache=G0.clearLocationCache;Ee.getVisibleSegment=G0.getVisibleSegment;Ee.findPointOnPath=G0.findPointOnPath;var Zd=fa();Ee.extendFlat=Zd.extendFlat;Ee.extendDeep=Zd.extendDeep;Ee.extendDeepAll=Zd.extendDeepAll;Ee.extendDeepNoArrays=Zd.extendDeepNoArrays;var s2=Bu();Ee.log=s2.log;Ee.warn=s2.warn;Ee.error=s2.error;var nU=P0();Ee.counterRegex=nU.counter;var u2=Yd();Ee.throttle=u2.throttle;Ee.throttleDone=u2.done;Ee.clearThrottle=u2.clear;var ml=d1();Ee.getGraphDiv=ml.getGraphDiv;Ee.isPlotDiv=ml.isPlotDiv;Ee.removeElement=ml.removeElement;Ee.addStyleRule=ml.addStyleRule;Ee.addRelatedStyleRule=ml.addRelatedStyleRule;Ee.deleteRelatedStyleRule=ml.deleteRelatedStyleRule;Ee.setStyleOnHover=ml.setStyleOnHover;Ee.getFullTransformMatrix=ml.getFullTransformMatrix;Ee.getElementTransformMatrix=ml.getElementTransformMatrix;Ee.getElementAndAncestors=ml.getElementAndAncestors;Ee.equalDomRects=ml.equalDomRects;Ee.clearResponsive=hw();Ee.preserveDrawingBuffer=gw();Ee.makeTraceGroups=yw();Ee._=_w();Ee.notifier=Yy();Ee.filterUnique=ww();Ee.filterVisible=Aw();Ee.pushUnique=Wy();Ee.increment=kw();Ee.cleanNumber=Cw();Ee.ensureNumber=function(r){return Rw(r)?(r=Number(r),r>Nw||r=r?!1:Rw(e)&&e>=0&&e%1===0};Ee.noop=Cd();Ee.identity=Hd();Ee.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ee.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Ee.simpleMap=function(e,r,t,n,a){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?a>10?(Ee.warn("randstr failed uniqueness"),o):e(r,t,n,(a||0)+1):o};Ee.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Ee.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,i=new Array(a),o=new Array(t),l,s,u,f;for(l=0;l=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=t&&(u=n-1-u),f+=e[u]*i[s];o[l]=f}return o};Ee.syncOrAsync=function(e,r,t){var n,a;function i(){return Ee.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(i);return t&&t(r)};Ee.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ee.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,i,o;for(i=0;i0?a:0})};Ee.fillArray=function(e,r,t,n){if(n=n||Ee.identity,Ee.isArrayOrTypedArray(e))for(var a=0;aoU.test(window.navigator.userAgent);var lU=/Firefox\/(\d+)\.\d+/;Ee.getFirefoxVersion=function(){var e=lU.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ee.isD3Selection=function(e){return e instanceof x1.selection};Ee.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var i=e.append(r);return t&&i.classed(t,!0),n&&i.call(n),i};Ee.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var i=e.append(r).attr("id",t);return n&&i.call(n),i};Ee.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},i=0;i1?a+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s};Ee.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Bw=/^\w*$/;Ee.templateString=function(e,r){var t={};return e.replace(Ee.TEMPLATE_STRING_REGEX,function(n,a){var i;return Bw.test(a)?i=r[a]:(t[a]=t[a]||Ee.nestedProperty(r,a).get,i=t[a](!0)),i!==void 0?i:""})};var fU={max:10,count:0,name:"hovertemplate"};Ee.hovertemplateString=e=>f2(cd(tc({},e),{opts:fU}));var cU={max:10,count:0,name:"texttemplate"};Ee.texttemplateString=e=>f2(cd(tc({},e),{opts:cU}));var vU=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function hU(e){var r=e.match(vU);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var dU={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ee.texttemplateStringForShapes=e=>f2(cd(tc({},e),{opts:dU}));var Dw=/^[:|\|]/;function f2({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:i}){return i.replace(Ee.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),v=["_xother_","_yother_"].includes(l),h=["xother_","yother_"].includes(l),d=u||f||h||v;(f||v)&&(l=l.substring(1)),(h||v)&&(l=l.substring(0,l.length-1));let m=null,p=null;if(a.parseMultDiv){var y=hU(l);l=y.key,m=y.op,p=y.number}let _;if(d){if(n[l]===void 0)return"";_=n[l]}else for(let A of e)if(A){if(A.hasOwnProperty(l)){_=A[l];break}if(Bw.test(l)||(_=Ee.nestedProperty(A,l).get(!0)),_!==void 0)break}if(_===void 0){let{count:A,max:k,name:M}=a,D=t===!1?o:t;return A=Wd&&o<=Ew,u=l>=Wd&&l<=Ew;if(s&&(n=10*n+o-Wd),u&&(a=10*a+l-Wd),!s||!u){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var U0=2e9;Ee.seedPseudoRandom=function(){U0=2e9};Ee.pseudoRandom=function(){var e=U0;return U0=(69069*U0+1)%4294967296,Math.abs(U0-e)<429496729?Ee.pseudoRandom():U0/4294967296};Ee.fillText=function(e,r,t){var n=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},a=Ee.extractOption(e,r,"htx","hovertext");if(Ee.isValidTextValue(a))return n(a);var i=Ee.extractOption(e,r,"tx","text");if(Ee.isValidTextValue(i))return n(i)};Ee.isValidTextValue=function(e){return e||e===0};Ee.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(u=1):u=0,Ee.strTranslate(a-u*(t+o),i-u*(n+l))+Ee.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+n)+")":"")};Ee.setTransormAndDisplay=function(e,r){e.attr("transform",Ee.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ee.ensureUniformFontSize=function(e,r){var t=Ee.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ee.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Ee.bigFont=function(e){return Math.round(1.2*e)};var Pw=Ee.getFirefoxVersion(),pU=Pw!==null&&Pw<86;Ee.getPositionFromD3Event=function(){return pU?[x1.event.layerX,x1.event.layerY]:[x1.event.offsetX,x1.event.offsetY]}});var Gw=te(()=>{"use strict";var gU=gr(),Uw={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(c2 in Uw)Yw=c2.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),gU.addStyleRule(Yw,Uw[c2]);var Yw,c2});var v2=te((due,Vw)=>{Vw.exports=!0});var d2=te((pue,Ww)=>{"use strict";var mU=v2(),h2;typeof window.matchMedia=="function"?h2=!window.matchMedia("(hover: none)").matches:h2=mU;Ww.exports=h2});var Jd=te((gue,p2)=>{"use strict";var V0=typeof Reflect=="object"?Reflect:null,Zw=V0&&typeof V0.apply=="function"?V0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Xd;V0&&typeof V0.ownKeys=="function"?Xd=V0.ownKeys:Object.getOwnPropertySymbols?Xd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Xd=function(r){return Object.getOwnPropertyNames(r)};function yU(e){console&&console.warn&&console.warn(e)}var jw=Number.isNaN||function(r){return r!==r};function Tn(){Tn.init.call(this)}p2.exports=Tn;p2.exports.once=wU;Tn.EventEmitter=Tn;Tn.prototype._events=void 0;Tn.prototype._eventsCount=0;Tn.prototype._maxListeners=void 0;var Xw=10;function jd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tn,"defaultMaxListeners",{enumerable:!0,get:function(){return Xw},set:function(e){if(typeof e!="number"||e<0||jw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Xw=e}});Tn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Tn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||jw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Jw(e){return e._maxListeners===void 0?Tn.defaultMaxListeners:e._maxListeners}Tn.prototype.getMaxListeners=function(){return Jw(this)};Tn.prototype.emit=function(r){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")Zw(s,this,t);else for(var u=s.length,f=r9(s,u),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,yU(l)}return e}Tn.prototype.addListener=function(r,t){return $w(this,r,t,!1)};Tn.prototype.on=Tn.prototype.addListener;Tn.prototype.prependListener=function(r,t){return $w(this,r,t,!0)};function bU(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Kw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=bU.bind(n);return a.listener=t,n.wrapFn=a,a}Tn.prototype.once=function(r,t){return jd(t),this.on(r,Kw(this,r,t)),this};Tn.prototype.prependOnceListener=function(r,t){return jd(t),this.prependListener(r,Kw(this,r,t)),this};Tn.prototype.removeListener=function(r,t){var n,a,i,o,l;if(jd(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){l=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():_U(n,i),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Tn.prototype.off=Tn.prototype.removeListener;Tn.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var i=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function Qw(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?xU(a):r9(a,a.length)}Tn.prototype.listeners=function(r){return Qw(this,r,!0)};Tn.prototype.rawListeners=function(r){return Qw(this,r,!1)};Tn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):e9.call(e,r)};Tn.prototype.listenerCount=e9;function e9(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Tn.prototype.eventNames=function(){return this._eventsCount>0?Xd(this._events):[]};function r9(e,r){for(var t=new Array(r),n=0;n{"use strict";var g2=Jd().EventEmitter,AU={init:function(e){if(e._ev instanceof g2)return e;var r=new g2,t=new g2;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var i=a._events[r];if(!i)return;function o(s){if(s.listener){if(a.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(a,[t])}else return s.apply(a,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var a9=gr(),TU=oc().dfltConfig;function kU(e,r){for(var t=[],n,a=0;aTU.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};nu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};nu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};nu.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";l9.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var X0=te(ca=>{"use strict";var Mo=dt(),M1=gr(),Kd=_o(),y2=F0(),SU=m2(),CU=p1(),LU=oc().configAttributes,s9=xo(),yl=M1.extendDeepAll,W0=M1.isPlainObject,qU=M1.isArrayOrTypedArray,Qd=M1.nestedProperty,DU=M1.valObjectMeta,b2="_isSubplotObj",ep="_isLinkedToArray",EU="_arrayAttrRegexps",f9="_deprecated",_2=[b2,ep,EU,f9];ca.IS_SUBPLOT_OBJ=b2;ca.IS_LINKED_TO_ARRAY=ep;ca.DEPRECATED=f9;ca.UNDERSCORE_ATTRS=_2;ca.get=function(){var e={};return Mo.allTypes.forEach(function(r){e[r]=RU(r)}),{defs:{valObjects:DU,metaKeys:_2.concat(["description","role","editType","impliedEdits"]),editType:{traces:s9.traces,layout:s9.layout},impliedEdits:{}},traces:e,layout:zU(),frames:NU(),animation:Z0(CU),config:Z0(LU)}};ca.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(i){var o=e[i];if(_2.indexOf(i)===-1){var l=(n?n+".":"")+i;r(o,i,e,a,l),!ca.isValObject(o)&&W0(o)&&i!=="impliedEdits"&&ca.crawl(o,r,a+1,l)}})};ca.isValObject=function(e){return e&&e.valType!==void 0};ca.findArrayAttributes=function(e){var r=[],t=[],n=[],a,i;function o(s,u,f,v){t=t.slice(0,v).concat([u]),n=n.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&l(a,0,"")}function l(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)qU(v)&&r.push(i+h);else if(n[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!$d(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function $d(e){return e===Math.round(e)&&e>=0}function RU(e){var r,t;r=Mo.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=yl({},Kd),i=yl({},r.attributes);ca.crawl(i,function(s,u,f,v,h){Qd(a,h).set(void 0),s===void 0&&Qd(i,h).set(void 0)}),yl(n,a),Mo.traceIs(e,"noOpacity")&&delete n.opacity,Mo.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Mo.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,yl(n,i),t.attributes&&yl(n,t.attributes),n.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Z0(n)};if(r.layoutAttributes){var l={};yl(l,r.layoutAttributes),o.layoutAttributes=Z0(l)}return r.animatable||ca.crawl(o,function(s){ca.isValObject(s)&&"anim"in s&&delete s.anim}),o}function zU(){var e={},r,t;yl(e,y2);for(r in Mo.subplotsRegistry)if(t=Mo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var j0=gr(),OU=_o(),Xu="templateitemname",x2={name:{valType:"string",editType:"none"}};x2[Xu]={valType:"string",editType:"calc"};vc.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=x2.name,r[Xu]=x2[Xu],r};vc.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(i){t=j0.coerce(i,{},OU,"type");var o={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,o._template=n[l]}return o}return{newTrace:a}};vc.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);j0.isPlainObject(a)||(a=null);var i=e[r]={_template:a};return i};vc.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[h9(r)],i=n&&n[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},v=f[Xu]=u[Xu];if(!v9(v))return f._template=a,f;for(var h=0;h=n&&(t._input||{})._templateitemname;i&&(a=n);var o=r+"["+a+"]",l;function s(){l={},i&&(l[o]={},l[o][Xu]=i)}s();function u(d,m){l[d]=m}function f(d,m){i?j0.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function v(){var d=l;return s(),d}function h(d,m){d&&f(d,m);var p=v();for(var y in p)j0.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var xa=te((wue,d9)=>{"use strict";var A1=P0().counter;d9.exports={idRegex:{x:A1("x","( domain)?"),y:A1("y","( domain)?")},attrRegex:A1("[xy]axis"),xAxisMatch:A1("xaxis"),yAxisMatch:A1("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var va=te(Ri=>{"use strict";var UU=dt(),w2=xa();Ri.id2name=function(r){if(!(typeof r!="string"||!r.match(w2.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ri.name2id=function(r){if(r.match(w2.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ri.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(w2.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(a&&n?" domain":"")}};Ri.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Ri.listIds(e,r),i=new Array(a.length),o;for(o=0;on?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Ri.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function p9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function YU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function GU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}g9.exports={clearOutlineControllers:YU,clearOutline:GU}});var rp=te((Tue,m9)=>{"use strict";m9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var T1=te(np=>{"use strict";var tp=dt(),kue=xa().SUBPLOT_PATTERN;np.getSubplotCalcData=function(e,r,t){var n=tp.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,i=[],o=0;o{"use strict";var VU=dt(),J0=gr();hc.manageCommandObserver=function(e,r,t,n){var a={},i=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var o=hc.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(o)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(o){y9(e,o,a.cache),a.check=function(){if(i){var f=y9(e,o,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+a;J0.isPlainObject(i)?M2(i,r,o,n+1):r(o,a,i)}})}});var ha=te((Lue,z9)=>{"use strict";var C9=kt(),ZU=L0().timeFormatLocale,XU=Ey().formatLocale,k1=Ht(),jU=Py(),Zt=dt(),L9=X0(),JU=yn(),Zr=gr(),q9=Rt(),w9=Pn().BADNUM,zi=va(),$U=ju().clearOutline,KU=rp(),A2=p1(),QU=m2(),eY=T1().getModuleCalcData,M9=Zr.relinkPrivateKeys,dc=Zr._,Pr=z9.exports={};Zr.extendFlat(Pr,Zt);Pr.attributes=_o();Pr.attributes.type.values=Pr.allTypes;Pr.fontAttrs=Qa();Pr.layoutAttributes=F0();var ip=x9();Pr.executeAPICommand=ip.executeAPICommand;Pr.computeAPICommandBindings=ip.computeAPICommandBindings;Pr.manageCommandObserver=ip.manageCommandObserver;Pr.hasSimpleAPICommandBindings=ip.hasSimpleAPICommandBindings;Pr.redrawText=function(e){return e=Zr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zt.getComponentMethod("annotations","draw")(e),Zt.getComponentMethod("legend","draw")(e),Zt.getComponentMethod("colorbar","draw")(e),r(Pr.previousPromises(e)))},300)})};Pr.resize=function(e){e=Zr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||Zr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Zr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};Pr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Pr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Zr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:q9.defaultLine,"pointer-events":"all"}).each(function(){var u=C9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&rY(e,i),o.text(i.text()&&l.text()?" - ":"")}};function rY(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Pr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}Pr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=C9.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=Pr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var tY=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],nY=["year","month","dayMonth","dayMonthYear"];Pr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||Pr.createTransitionData(e),a._dfltTitle={plot:dc(e,"Click to enter Plot title"),subtitle:dc(e,"Click to enter Plot subtitle"),x:dc(e,"Click to enter X axis title"),y:dc(e,"Click to enter Y axis title"),colorbar:dc(e,"Click to enter Colorscale title"),annotation:dc(e,"new text")},a._traceWord=dc(e,"trace");var h=A9(e,tY);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,m=n.height;Pr.supplyLayoutGlobalDefaults(i,a,h),i.width||(a.width=d),i.height||(a.height=m),Pr.sanitizeMargins(a)}else{Pr.supplyLayoutGlobalDefaults(i,a,h);var p=!i.width||!i.height,y=a.autosize,_=f.autosizable,C=p&&(y||_);C?Pr.plotAutoSize(e,i,a):p&&Pr.sanitizeMargins(a),!y&&p&&(i.width=a.width,i.height=a.height)}a._d3locale=oY(h,a.separators),a._extraFormat=A9(e,nY),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var x=a._subplots=iY(),b=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=aY(o,s),Pr.supplyDataDefaults(s,l,i,a);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.length>1){for(Zt.getComponentMethod("grid","sizeDefaults")(i,a),v=0;v15&&M.length>15&&a.shapes.length===0&&a.images.length===0,Pr.linkSubplots(l,a,o,n),Pr.cleanPlot(l,a,o,n);var W=!!(n._has&&n._has("cartesian")),O=!!(a._has&&a._has("cartesian")),Z=W,H=O;Z&&!H?n._bgLayer.remove():H&&!Z&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&$U({_fullLayout:n}),lY(l,a),M9(a,n),Zt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var ee=a._tracePreGUI,ie={},re;for(re in ee)ie[re]="old";for(v=0;v0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var v=Pr.layoutAttributes.width.min,h=Pr.layoutAttributes.height.min;o1,m=!t.height&&Math.abs(n.height-l)>1;(m||d)&&(d&&(n.width=o),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Pr.sanitizeMargins(n)};Pr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=Zt.componentsRegistry,i=r._basePlotModules,o,l,s,u=Zt.subplotsRegistry.cartesian;for(o in a)s=a[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zt.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Zr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(h){var _=(t.t+t.b)/h;_>1&&(t.t/=_,t.b/=_)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:A,size:t.b+p},t:{val:b,size:t.t+p}},m[r]=1}if(!n._replotting)return Pr.doAutoMargin(e)}};function uY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=zi.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Pr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),D9(r);var a=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Zr.extendFlat({},a),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var _=e._fullLayout._reservedMargin;for(var C in _)for(var x in _[C]){var b=_[C][x];o[x]=Math.max(o[x],b)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var A in o){var k=0;for(var M in h)M!=="base"&&k1(h[M][A].size)&&(k=h[M][A].size>k?h[M][A].size:k);var D=Math.max(0,i[A]-k);o[A]=Math.max(0,o[A]-D)}for(var R in h){var N=h[R].l||{},I=h[R].b||{},W=N.val,O=N.size,Z=I.val,H=I.size,ee=t-o.r-o.l,ie=n-o.t-o.b;for(var re in h){if(k1(O)&&h[re].r){var K=h[re].r.val,fe=h[re].r.size;if(K>W){var le=(O*K+(fe-ee)*W)/(K-W),ke=(fe*(1-W)+(O-ee)*(1-K))/(K-W);le+ke>s+u&&(s=le,u=ke)}}if(k1(H)&&h[re].t){var Ne=h[re].t.val,He=h[re].t.size;if(Ne>Z){var Xe=(H*Ne+(He-ie)*Z)/(Ne-Z),Ce=(He*(1-Z)+(H-ie)*(1-Ne))/(Ne-Z);Xe+Ce>v+f&&(v=Xe,f=Ce)}}}}}var er=Zr.constrain(t-i.l-i.r,E9,m),ce=Zr.constrain(n-i.t-i.b,P9,p),ge=Math.max(0,t-er),Pe=Math.max(0,n-ce);if(ge){var de=(s+u)/ge;de>1&&(s/=de,u/=de)}if(Pe){var G=(v+f)/Pe;G>1&&(v/=G,f/=G)}if(a.l=Math.round(s)+o.l,a.r=Math.round(u)+o.r,a.t=Math.round(f)+o.t,a.b=Math.round(v)+o.b,a.p=Math.round(i.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(Pr.didMarginChange(l,a)||uY(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Pr.graphJson=function(e,r,t,n,a,i){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Pr.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Zr.isPlainObject(h)){var m={},p;return Object.keys(h).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof h[x]=="function"){d&&(m[x]="_function");return}if(t==="keepdata"){if(x.slice(-3)==="src")return}else if(t==="keepstream"){if(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0&&!Zr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0))return;m[x]=u(h[x],d)}}),m}var y=Array.isArray(h),_=Zr.isTypedArray(h);if((y||_)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Zr.isArrayBuffer(C)?jU.encode(C):C},d)}return y?h.map(function(x){return u(x,d)}):_?Zr.simpleMap(h,Zr.identity):Zr.isJSDate(h)?Zr.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),n==="object"?f:JSON.stringify(f)};Pr.modifyFrames=function(e,r){var t,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!n&&d===h&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var u=[Pr.previousPromises,s,t.prepareFn,Pr.rehover,Pr.reselect,o],f=Zr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Pr.doCalcdata=function(e,r){var t=zi.list(e),n=e._fullData,a=e._fullLayout,i,o,l,s,u=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}o&&o.calc&&(b=o.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:w9,y:w9}]),b[0].t||(b[0].t={}),b[0].trace=i,u[C]=b}}for(k9(t,n,a),l=0;l{"use strict";pc.xmlns="http://www.w3.org/2000/xmlns/";pc.svg="http://www.w3.org/2000/svg";pc.xlink="http://www.w3.org/1999/xlink";pc.svgAttrs={xmlns:pc.svg,"xmlns:xlink":pc.xlink}});var Oa=te((Due,N9)=>{"use strict";N9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ei=te(Ao=>{"use strict";var aa=kt(),au=gr(),hY=au.strTranslate,T2=gc(),dY=Oa().LINE_SPACING,pY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Ao.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(pY),i=aa.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=CY(e.node(),n);s&&e.style("pointer-events","all"),Ao.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};bY(a[2],f,function(v,h,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}var p=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});p.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var y=d.width,_=d.height;m.attr({class:o,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",x=m.select("g");x.attr({fill:C,stroke:C});var b=x.node().getBoundingClientRect(),A=b.width,k=b.height;(A>y||k>_)&&(m.style("overflow","hidden"),b=m.node().getBoundingClientRect(),A=b.width,k=b.height);var M=+e.attr("x"),D=+e.attr("y"),R=u||e.node().getBoundingClientRect().height,N=-R/4;if(o[0]==="y")p.attr({transform:"rotate("+[-90,M,D]+")"+hY(-A/2,N-k/2)});else if(o[0]==="l")D=N-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,D=N;else{var I=e.attr("text-anchor");M=M-A*(I==="middle"?.5:I==="end"?1:0),D=D+N-k/2}m.attr({x:M,y:D}),t&&t.call(e,p),s(p)})})):l(),e};var gY=/(<|<|<)/g,mY=/(>|>|>)/g;function yY(e){return e.replace(gY,"\\lt ").replace(mY,"\\gt ")}var F9=[["$","$"],["\\(","\\)"]];function bY(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){au.warn("No MathJax version:",MathJax.version);return}var a,i,o,l,s=function(){return i=au.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:F9},displayAlign:"left"})},u=function(){i=au.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=F9},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+au.randstr({},64);l=aa.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(yY(e));var x=l.node();return n===2?MathJax.Hub.Typeset(x):MathJax.typeset([x])},d=function(){var C=l.select(n===2?".MathJax_SVG":".MathJax"),x=!C.empty()&&l.select("svg").node();if(!x)au.log("There was an error in the tex syntax.",e),t();else{var b=x.getBoundingClientRect(),A;n===2?A=aa.select("body").select("#MathJax_SVG_glyphs"):A=C.select("defs"),t(C,A,b)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},p=function(){a!=="svg"&&(MathJax.config.startup.output=a)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},_=function(){MathJax.config=i};n===2?MathJax.Hub.Queue(s,f,h,d,m,y):n===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),p(),_()}))}var O9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},_Y={sub:"0.3em",sup:"-0.6em"},xY={sub:"-0.21em",sup:"0.42em"},I9="\u200B",H9=["http:","https:","mailto:","",void 0,":"],U9=Ao.NEWLINES=/(\r\n?|\n)/g,S2=/(<[^<>]*>)/,C2=/<(\/?)([^ >]*)(\s+(.*))?>/i,wY=//i;Ao.BR_TAG_ALL=//gi;var Y9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,G9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,V9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,MY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function mc(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&op(n)}var AY=/(^|;)\s*color:/;Ao.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",i=a.length,o=e.split(S2),l=[],s="",u=0,f=0;fi?l.push(v.slice(0,Math.max(0,p-i))+a):l.push(v.slice(0,p));break}s=""}}return l.join("")};var TY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},kY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function op(e){return e.replace(kY,function(r,t){var n;return t.charAt(0)==="#"?n=SY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=TY[t],n||r})}Ao.convertEntities=op;function SY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function CY(e,r){r=r.replace(U9," ");var t=!1,n=[],a,i=-1;function o(){i++;var k=document.createElementNS(T2.svg,"tspan");aa.select(k).attr({class:"line",dy:i*dY+"em"}),e.appendChild(k),a=k;var M=n;if(n=[{node:k}],M.length>1)for(var D=1;D.",r);return}var M=n.pop();k!==M.type&&au.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),a=n[n.length-1].node}var f=wY.test(r);f?o():(a=e,n=[{node:e}]);for(var v=r.split(S2),h=0;h{"use strict";var LY=kt(),sp=es(),C1=Ht(),lp=gr(),Z9=Rt(),qY=ac().isValid;function DY(e,r,t){var n=r?lp.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var i=!1;if(lp.isArrayOrTypedArray(a)){for(var o=0;o=0;n--,a++){var i=e[n];t[a]=[1-i[0],i[1]]}return t}function Q9(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,i=new Array(a),o=0;o{"use strict";var r8=Jy(),PY=r8.FORMAT_LINK,RY=r8.DATE_FORMAT_LINK;function zY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?L2:t8)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function L2(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+PY+"."].join(" ")}function t8(e,r){return L2(e,r)+[" And for dates see: "+RY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}n8.exports={axisHoverFormat:zY,descriptionOnlyNumbers:L2,descriptionWithDates:t8}});var bl=te((Nue,_8)=>{"use strict";var a8=Qa(),$0=dl(),b8=rs().dash,E2=fa().extendFlat,i8=yn().templatedArray,zue=lc().templateFormatStringDescription,o8=q2().descriptionWithDates,NY=Pn().ONEDAY,as=xa(),FY=as.HOUR_PATTERN,IY=as.WEEKDAY_PATTERN,D2={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},HY=E2({},D2,{values:D2.values.slice().concat(["sync"])});function l8(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var s8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},u8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},f8={valType:"data_array",editType:"ticks"},c8={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function v8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function h8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var d8={valType:"color",dflt:$0.defaultLine,editType:"ticks"},p8={valType:"color",dflt:$0.lightLine,editType:"ticks"};function g8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var m8=E2({},b8,{editType:"ticks"}),y8={valType:"boolean",editType:"ticks"};_8.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:$0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:a8({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[as.idRegex.x.toString(),as.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[as.idRegex.x.toString(),as.idRegex.y.toString()],editType:"calc"},rangebreaks:i8("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[IY,FY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:NY},editType:"calc"}),tickmode:HY,nticks:l8(),tick0:s8,dtick:u8,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:f8,ticktext:{valType:"data_array",editType:"ticks"},ticks:c8,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:v8(),tickwidth:h8(),tickcolor:d8,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:E2({},b8,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:a8({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:o8("tick label")},tickformatstops:i8("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:o8("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:$0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:y8,gridcolor:p8,gridwidth:g8(),griddash:m8,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:$0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:$0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",as.idRegex.x.toString(),as.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",as.idRegex.x.toString(),as.idRegex.y.toString()],editType:"plot"},minor:{tickmode:D2,nticks:l8("minor"),tick0:s8,dtick:u8,tickvals:f8,ticks:c8,ticklen:v8("minor"),tickwidth:h8("minor"),tickcolor:d8,gridcolor:p8,gridwidth:g8("minor"),griddash:m8,showgrid:y8,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var up=te((Fue,M8)=>{"use strict";var kn=bl(),x8=Qa(),w8=fa().extendFlat,BY=xo().overrideAll;M8.exports=BY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:kn.linecolor,outlinewidth:kn.linewidth,bordercolor:kn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:kn.minor.tickmode,nticks:kn.nticks,tick0:kn.tick0,dtick:kn.dtick,tickvals:kn.tickvals,ticktext:kn.ticktext,ticks:w8({},kn.ticks,{dflt:""}),ticklabeloverflow:w8({},kn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:kn.ticklen,tickwidth:kn.tickwidth,tickcolor:kn.tickcolor,ticklabelstep:kn.ticklabelstep,showticklabels:kn.showticklabels,labelalias:kn.labelalias,tickfont:x8({}),tickangle:kn.tickangle,tickformat:kn.tickformat,tickformatstops:kn.tickformatstops,tickprefix:kn.tickprefix,showtickprefix:kn.showtickprefix,ticksuffix:kn.ticksuffix,showticksuffix:kn.showticksuffix,separatethousands:kn.separatethousands,exponentformat:kn.exponentformat,minexponent:kn.minexponent,showexponent:kn.showexponent,title:{text:{valType:"string"},font:x8({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var K0=te((Hue,T8)=>{"use strict";var OY=up(),UY=P0().counter,YY=Bd(),A8=ac().scales,Iue=YY(A8);function fp(e){return"`"+e+"`"}T8.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?A8[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+fp(u+f));var h=a?" Has an effect only if "+v+" is set to a numerical array.":"",d=n+"auto",m=n+"min",p=n+"max",y=n+"mid",_=fp(u+d),C=fp(u+m),x=fp(u+p),b=C+" and "+x,A={};A[m]=A[p]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=OY),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:UY("coloraxis"),dflt:null,editType:"calc"}),M}});var R2=te((Bue,k8)=>{"use strict";var GY=fa().extendFlat,VY=K0(),P2=ac().scales;k8.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:P2.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:P2.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:P2.RdBu,editType:"calc"}},coloraxis:GY({_isSubplotObj:!0,editType:"calc"},VY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var z2=te((Oue,S8)=>{"use strict";var WY=gr();S8.exports=function(r){return WY.isPlainObject(r.colorbar)}});var I2=te(F2=>{"use strict";var N2=Ht(),C8=gr(),L8=Pn(),ZY=L8.ONEDAY,XY=L8.ONEWEEK;F2.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",i=n?ZY:1;if(!e)return i;if(N2(e))return e=Number(e),e<=0?i:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return i;var o=e.charAt(0),l=e.slice(1);return l=N2(l)?Number(l):0,l<=0||!(n&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};F2.tick0=function(e,r,t,n){if(r==="date")return C8.cleanDate(e,C8.dateTick0(t,n%XY===0?1:0));if(!(n==="D1"||n==="D2"))return N2(e)?Number(e):0}});var H2=te((Yue,D8)=>{"use strict";var q8=I2(),jY=gr().isArrayOrTypedArray,JY=qi().isTypedArraySpec,$Y=qi().decodeTypedArraySpec;D8.exports=function(r,t,n,a,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(C){var x=l[C];return JY(x)&&(x=$Y(x)),x!==void 0?x:(s._template||{})[C]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=jY(d)?"array":h?"linear":"auto",p=n(u+"tickmode",m);if(p==="auto"||p==="sync")n(u+"nticks");else if(p==="linear"){var y=s.dtick=q8.dtick(h,a);s.tick0=q8.tick0(v,a,t.calendar,y)}else if(a!=="multicategory"){var _=n(u+"tickvals");_===void 0?s.tickmode="auto":o||n("ticktext")}}});var O2=te((Gue,P8)=>{"use strict";var B2=gr(),E8=bl();P8.exports=function(r,t,n,a){var i=a.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?E8.minor:E8,u=i?"minor.":"",f=B2.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=B2.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=B2.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=n(u+"ticks",!i&&a.outerTicks||f||v||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var U2=te((Vue,R8)=>{"use strict";R8.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(i){return r[i]!==void 0}),a=function(i){return r[i]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var _l=te((Wue,z8)=>{"use strict";var cp=gr(),KY=yn();z8.exports=function(r,t,n){var a=n.name,i=n.inclusionAttr||"visible",o=t[a],l=cp.isArrayOrTypedArray(r[a])?r[a]:[],s=t[a]=[],u=KY.arrayTemplater(t,a,i),f,v;for(f=0;f{"use strict";var Y2=gr(),QY=Rt().contrast,N8=bl(),eG=U2(),rG=_l();F8.exports=function(r,t,n,a,i){i||(i={});var o=n("labelalias");Y2.isPlainObject(o)||delete t.labelalias;var l=eG(r),s=n("showticklabels");if(s){i.noTicklabelshift||n("ticklabelshift"),i.noTicklabelstandoff||n("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?QY(i.bgColor):f&&f!==N8.color.dflt?f:u.color;if(Y2.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!i.noAng){var d=n("tickangle");!i.noAutotickangles&&d==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");rG(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:tG}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!i.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function tG(e,r){function t(a,i){return Y2.coerce(e,r,N8.tickformatstops,a,i)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var V2=te((Xue,I8)=>{"use strict";var nG=U2();I8.exports=function(r,t,n,a,i){i||(i={});var o=i.tickSuffixDflt,l=nG(r),s=n("tickprefix");s&&n("showtickprefix",l);var u=n("ticksuffix",o);u&&n("showticksuffix",l)}});var W2=te((jue,H8)=>{"use strict";var Ju=gr(),aG=yn(),iG=H2(),oG=O2(),lG=G2(),sG=V2(),uG=up();H8.exports=function(r,t,n){var a=aG.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,W){return Ju.coerce(i,a,uG,I,W)}var l=n.margin||{t:0,b:0,l:0,r:0},s=n.width-l.l-l.r,u=n.height-l.t-l.b,f=o("orientation"),v=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(v?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:v?u:s);var m=o("yref"),p=o("xref"),y=m==="paper",_=p==="paper",C,x,b,A="left";v?(b="middle",A=_?"left":"right",C=_?1.02:1,x=.5):(b=y?"bottom":"top",A="center",C=.5,x=y?1.02:1),Ju.coerce(i,a,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:C}},"x"),Ju.coerce(i,a,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",A),o("xpad"),o("yanchor",b),o("ypad"),Ju.noneOrAll(i,a,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Ju.coerce(i,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),iG(i,a,o,"linear");var M=n.font,D={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(D.bgColor="black"),sG(i,a,o,"linear",D),lG(i,a,o,"linear",D),oG(i,a,o,"linear",D),o("title.text",n._dfltTitle.colorbar);var R=a.showticklabels?a.tickfont:M,N=Ju.extendFlat({},M,{family:R.family,size:Ju.bigFont(R.size)});Ju.coerceFont(o,"title.font",N),o("title.side",v?"top":"right")}});var Q0=te((Jue,U8)=>{"use strict";var B8=Ht(),X2=gr(),fG=z2(),cG=W2(),O8=ac().isValid,vG=dt().traceIs;function Z2(e,r){var t=r.slice(0,r.length-1);return r?X2.nestedProperty(e,t).get()||{}:e}U8.exports=function e(r,t,n,a,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=Z2(r,o),f=Z2(t,o),v=Z2(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,i)};if(s){var d=n._colorAxes||{},m=a(o+"coloraxis");if(m){var p=vG(t,"contour")&&X2.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,X2.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var _=u[l+"min"],C=u[l+"max"],x=B8(_)&&B8(C)&&_{"use strict";var Y8=gr(),hG=yn(),G8=R2(),dG=Q0();V8.exports=function(r,t){function n(v,h){return Y8.coerce(r,t,G8,v,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,i,o;function l(v,h){return Y8.coerce(i,o,G8.coloraxis,v,h)}for(var s in a){var u=a[s];if(u[0])i=r[s]||{},o=hG.newContainer(t,s,"coloraxis"),o._name=s,dG(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var pG=gr(),gG=ns().hasColorscale,mG=ns().extractOpts;Z8.exports=function(r,t){function n(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function a(f,v){var h=v.container?pG.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=mG(h),m=d.auto;(m||d.min===void 0)&&n(h,v.min),(m||d.max===void 0)&&n(h,v.max),d.autocolorscale&&n(h,"colorscale")}}for(var i=0;i{"use strict";var j8=Ht(),j2=gr(),yG=ns().extractOpts;J8.exports=function(r,t,n){var a=r._fullLayout,i=n.vals,o=n.containerStr,l=o?j2.nestedProperty(t,o).get():t,s=yG(l),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return j2.aggNums(Math.min,null,i)},m=function(){return j2.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&j8(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(l._colorAx&&j8(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?p=a.colorscale.sequential:p=a.colorscale.sequentialminus,s._sync("colorscale",p)}}});var dp=te((efe,$8)=>{"use strict";var hp=ac(),ev=ns();$8.exports={moduleType:"component",name:"colorscale",attributes:K0(),layoutAttributes:R2(),supplyLayoutDefaults:W8(),handleDefaults:Q0(),crossTraceDefaults:X8(),calc:vp(),scales:hp.scales,defaultScale:hp.defaultScale,getScale:hp.get,isValidScale:hp.isValid,hasColorscale:ev.hasColorscale,extractOpts:ev.extractOpts,extractScale:ev.extractScale,flipScale:ev.flipScale,makeColorScaleFunc:ev.makeColorScaleFunc,makeColorScaleFuncFromTrace:ev.makeColorScaleFuncFromTrace}});var ri=te((rfe,Q8)=>{"use strict";var K8=gr(),bG=qi().isTypedArraySpec;Q8.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return K8.isPlainObject(r)&&(K8.isArrayOrTypedArray(r.size)||bG(r.size))}}});var rM=te((tfe,eM)=>{"use strict";var _G=Ht();eM.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,i=n.sizemin||0,o=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var s=o(l/t);return _G(s)&&s>0?Math.max(s,i):0}}});var $u=te(Ua=>{"use strict";var pp=gr();Ua.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ua.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{aM.exports=TG;var J2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},AG=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function TG(e){var r=[];return e.replace(AG,function(t,n,a){var i=n.toLowerCase();for(a=SG(a),i=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),i="l",n=n=="m"?"l":"L");;){if(a.length==J2[i])return a.unshift(n),r.push(a);if(a.length{"use strict";var CG=$2(),Lr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},gt="M0,0Z",iM=Math.sqrt(2),Ku=Math.sqrt(3),K2=Math.PI,Q2=Math.cos,e3=Math.sin;fM.exports={circle:{n:0,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?yt(r,t,a):a}},square:{n:1,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.4,2),a=Lr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.8/iM,2),a="l"+n+","+n,i="l"+n+",-"+n,o="l-"+n+",-"+n,l="l-"+n+","+n;return yt(r,t,"M0,"+n+a+i+o+i+o+l+o+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2/Ku,2),a=Lr(e/2,2),i=Lr(e,2);return yt(r,t,"M-"+n+","+a+"H"+n+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2/Ku,2),a=Lr(e/2,2),i=Lr(e,2);return yt(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2/Ku,2),a=Lr(e/2,2),i=Lr(e,2);return yt(r,t,"M"+a+",-"+n+"V"+n+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2/Ku,2),a=Lr(e/2,2),i=Lr(e,2);return yt(r,t,"M-"+a+",-"+n+"V"+n+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.6,2),a=Lr(e*1.2,2);return yt(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.6,2),a=Lr(e*1.2,2);return yt(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.6,2),a=Lr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.6,2),a=Lr(e*1.2,2);return yt(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.951,2),a=Lr(e*.588,2),i=Lr(-e,2),o=Lr(e*-.309,2),l=Lr(e*.809,2);return yt(r,t,"M"+n+","+o+"L"+a+","+l+"H-"+a+"L-"+n+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e/2,2),i=Lr(e*Ku/2,2);return yt(r,t,"M"+i+",-"+a+"V"+a+"L0,"+n+"L-"+i+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e/2,2),i=Lr(e*Ku/2,2);return yt(r,t,"M-"+a+","+i+"H"+a+"L"+n+",0L"+a+",-"+i+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.924,2),a=Lr(e*.383,2);return yt(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(mt(r))return gt;var n=e*1.4,a=Lr(n*.225,2),i=Lr(n*.951,2),o=Lr(n*.363,2),l=Lr(n*.588,2),s=Lr(-n,2),u=Lr(n*-.309,2),f=Lr(n*.118,2),v=Lr(n*.809,2),h=Lr(n*.382,2);return yt(r,t,"M"+a+","+u+"H"+i+"L"+o+","+f+"L"+l+","+v+"L0,"+h+"L-"+l+","+v+"L-"+o+","+f+"L-"+i+","+u+"H-"+a+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.66,2),a=Lr(e*.38,2),i=Lr(e*.76,2);return yt(r,t,"M-"+i+",0l-"+a+",-"+n+"h"+i+"l"+a+",-"+n+"l"+a+","+n+"h"+i+"l-"+a+","+n+"l"+a+","+n+"h-"+i+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*Ku*.8,2),a=Lr(e*.8,2),i=Lr(e*1.6,2),o=Lr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+i+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*Ku*.8,2),a=Lr(e*.8,2),i=Lr(e*1.6,2),o=Lr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+i+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.1,2),a=Lr(e*2,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",-"+n+i+"-"+n+","+n+i+n+","+n+i+n+",-"+n+i+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2),a=Lr(e*1.9,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",0"+i+"0,"+n+i+n+",0"+i+"0,-"+n+i+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.7,2),a=Lr(e*1.4,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2),a=Lr(e*.7,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e/iM,2);return yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.3,2),a=Lr(e*.65,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*.85,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e/2,2),a=Lr(e,2);return yt(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*1.6,2),i=Lr(e*.8,2);return yt(r,t,"M-"+n+","+i+"L0,0M"+n+","+i+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*1.6,2),i=Lr(e*.8,2);return yt(r,t,"M-"+n+",-"+i+"L0,0M"+n+",-"+i+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*1.6,2),i=Lr(e*.8,2);return yt(r,t,"M"+i+","+n+"L0,0M"+i+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*1.6,2),i=Lr(e*.8,2);return yt(r,t,"M-"+i+","+n+"L0,0M-"+i+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2);return yt(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e*2,2);return yt(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e*2,2);return yt(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2,2),a=Lr(e,2);return yt(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2,2),a=Lr(e,2);return yt(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2,2),a=Lr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2,2),a=Lr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(mt(r))return gt;var n=K2/2.5,a=2*e*Q2(n),i=2*e*e3(n);return yt(r,t,"M0,0L"+-a+","+i+"L"+a+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(mt(r))return gt;var n=K2/4,a=2*e*Q2(n),i=2*e*e3(n);return yt(r,t,"M0,0L"+-a+","+i+"A "+2*e+","+2*e+" 0 0 1 "+a+","+i+"Z")},backoff:.4,noDot:!0}};function mt(e){return e===null}var oM,lM,sM,uM;function yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(sM===e&&uM===r&&oM===t)return lM;sM=e,uM=r,oM=t;function n(y,_){var C=Q2(y),x=e3(y),b=_[0],A=_[1]+(r||0);return[b*C-A*x,b*x+A*C]}for(var a=e/180*K2,i=0,o=0,l=CG(t),s="",u=0;u{"use strict";var wa=kt(),fn=gr(),LG=fn.numberFormat,xc=Ht(),o3=es(),mp=dt(),Na=Rt(),qG=dp(),q1=fn.strTranslate,yp=ei(),DG=gc(),EG=Oa(),PG=EG.LINE_SPACING,xM=kd().DESELECTDIM,RG=ri(),zG=rM(),NG=$u().appendArrayPointValue,Rr=DM.exports={};Rr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Na.fill,i),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",r3(IG(f))),s&&e.style("text-shadow",s==="auto"?yp.makeTextShadow(Na.contrast(i)):r3(s)),u&&e.style("text-decoration-line",r3(HG(u)))};function r3(e){return e==="none"?void 0:e}var FG={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function IG(e){return FG[e]}function HG(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Rr.setRect=function(e,r,t,n,a){e.call(Rr.setPosition,r,t).call(Rr.setSize,n,a)};Rr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),i=n.c2p(e.y);if(xc(a)&&xc(i)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",i):r.attr("transform",q1(a,i));else return!1;return!0};Rr.translatePoints=function(e,r,t){e.each(function(n){var a=wa.select(this);Rr.translatePoint(n,a,r,t)})};Rr.hideOutsideRangePoint=function(e,r,t,n,a,i){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")};Rr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var i=a[0].trace,o=i.xcalendar,l=i.ycalendar,s=mp.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Rr.hideOutsideRangePoint(u,wa.select(this),t,n,o,l)})})}};Rr.crispRound=function(e,r,t){return!r||!xc(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Rr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";Na.stroke(r,n||i.color),Rr.dashLine(r,l,o)};Rr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var i=(((a||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=n||i.dash||"";wa.select(this).call(Na.stroke,t||i.color).call(Rr.dashLine,l,o)})};Rr.dashLine=function(e,r,t){t=+t||0,r=Rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Rr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function wM(e,r,t,n){var a=r.fillpattern,i=r.fillgradient,o=Rr.getPatternAttr,l=a&&(o(a.shape,0,"")||o(a.path,0,""));if(l){var s=o(a.bgcolor,0,null),u=o(a.fgcolor,0,null),f=a.fgopacity,v=o(a.size,0,8),h=o(a.solidity,0,.3),d=r.uid;Rr.pattern(e,"point",t,d,l,v,h,void 0,a.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(n&&(p="legendfill-"+r.uid),!n&&(i.start!==void 0||i.stop!==void 0)){var y,_;m==="horizontal"?(y={x:i.start,y:0},_={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},_={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),_.x=r._xA.c2p(_.x===void 0?r._extremes.x.max[0].val:_.x,!0),_.y=r._yA.c2p(_.y===void 0?r._extremes.y.max[0].val:_.y,!0),e.call(TM,t,p,"linear",i.colorscale,"fill",y,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(Rr.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Na.fill,r.fillcolor)}Rr.singleFillStyle=function(e,r){var t=wa.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};wM(e,a,r,!1)};Rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=wa.select(this);n[0].trace&&wM(a,n[0].trace,r,t)})};var vM=cM();Rr.symbolNames=[];Rr.symbolFuncs=[];Rr.symbolBackOffs=[];Rr.symbolNeedLines={};Rr.symbolNoDot={};Rr.symbolNoFill={};Rr.symbolList=[];Object.keys(vM).forEach(function(e){var r=vM[e],t=r.n;Rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Rr.symbolNames[t]=e,Rr.symbolFuncs[t]=r.f,Rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Rr.symbolNeedLines[t]=!0),r.noDot?Rr.symbolNoDot[t]=!0:Rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Rr.symbolNoFill[t]=!0)});var BG=Rr.symbolNames.length,OG="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Rr.symbolNumber=function(e){if(xc(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=Rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=BG||e>=400?0:Math.floor(Math.max(e,0))};function MM(e,r,t,n){var a=e%100;return Rr.symbolFuncs[a](r,t,n)+(e>=200?OG:"")}var hM=LG("~f"),AM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Rr.gradient=function(e,r,t,n,a,i){var o=AM[n];return TM(e,r,t,o.type,a,i,o.start,o.stop,!1,o.reversed)};function TM(e,r,t,n,a,i,o,l,s,u){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=n.ms2mrc(e.ms),e.mrc=s,n.selectedSizeFn&&(s=e.mrc=n.selectedSizeFn(e));var u=Rr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=u3(e,t),v=s3(e,t);r.attr("d",MM(u,s,f,v))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):fn.isArrayOrTypedArray(l.color)?m=Na.defaultLine:m=l.color,fn.isArrayOrTypedArray(o.color)&&(d=Na.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}let _=e.mld||(l||{}).dash;if(_&&Rr.dashLine(r,_,p),e.om)r.call(Na.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var C=o.gradient,x=e.mgt;x?h=!0:x=C&&C.type,fn.isArrayOrTypedArray(x)&&(x=x[0],AM[x]||(x=0));var b=o.pattern,A=Rr.getPatternAttr,k=b&&(A(b.shape,e.i,"")||A(b.path,e.i,""));if(x&&x!=="none"){var M=e.mgc;M?h=!0:M=C.color;var D=t.uid;h&&(D+="-"+e.i),Rr.gradient(r,a,D,x,[[0,M],[1,d]],"fill")}else if(k){var R=!1,N=b.fgcolor;!N&&i&&i.color&&(N=i.color,R=!0);var I=A(N,e.i,i&&i.color||null),W=A(b.bgcolor,e.i,null),O=b.fgopacity,Z=A(b.size,e.i,8),H=A(b.solidity,e.i,.3);R=R||e.mcc||fn.isArrayOrTypedArray(b.shape)||fn.isArrayOrTypedArray(b.path)||fn.isArrayOrTypedArray(b.bgcolor)||fn.isArrayOrTypedArray(b.fgcolor)||fn.isArrayOrTypedArray(b.size)||fn.isArrayOrTypedArray(b.solidity);var ee=t.uid;R&&(ee+="-"+e.i),Rr.pattern(r,"point",a,ee,k,Z,H,e.mcc,b.fillmode,W,I,O)}else fn.isArrayOrTypedArray(d)?Na.fill(r,d[e.i]):Na.fill(r,d);p&&Na.stroke(r,m)}};Rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Rr.tryColorscale(t,""),r.lineScale=Rr.tryColorscale(t,"line"),mp.traceIs(e,"symbols")&&(r.ms2mrc=RG.isBubble(e)?zG(e):function(){return(t.size||6)/2}),e.selectedpoints&&fn.extendFlat(r,Rr.makeSelectedPointStyleFns(e)),r};Rr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},i=t.marker||{},o=n.marker||{},l=a.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,v=u!==void 0;(fn.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(b){var A=b.mo===void 0?a.opacity:b.mo;return b.selected?f?s:A:v?u:xM*A});var h=a.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(b){var A=b.mcc||h;return b.selected?d||A:m||A});var p=a.size,y=i.size,_=o.size,C=y!==void 0,x=_!==void 0;return mp.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(b){var A=b.mrc||p/2;return b.selected?C?y/2:A:x?_/2:A}),r};Rr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=t.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?s||v:u||(s?v:Na.addOpacity(v,xM))},r};Rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Rr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&a.push(function(i,o){Na.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&a.push(function(i,o){var l=o.mx||n.symbol||0,s=t.selectedSizeFn(o);i.attr("d",MM(Rr.symbolNumber(l),s,u3(o,r),s3(o,r))),o.mrc2=s}),a.length&&e.each(function(i){for(var o=wa.select(this),l=0;l0?t:0}Rr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=Rr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=wa.select(this),u=i?fn.extractOption(l,r,"txt","texttemplate"):fn.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(l,r,o):{},h={};NG(h,r,l.i),u=fn.texttemplateString({data:[h,l,r._meta],fallback:r.texttemplatefallback,labels:v,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,m=SM(l,r),p=n?n(l):l.tc||r.textfont.color;s.call(Rr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:m,color:p}).text(u).call(yp.convertToTspans,t).call(kM,d,m,l.mrc)})}};Rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Rr.makeSelectedTextStyleFns(r);e.each(function(n){var a=wa.select(this),i=t.selectedTextColorFn(n),o=n.tp||r.textposition,l=SM(n,r);Na.fill(a,i);var s=mp.traceIs(r,"bar-like");kM(a,o,l,n.mrc2||n.mrc,s)})}};var dM=.5;Rr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=s||b>=f&&b<=s)&&(A<=v&&A>=u||A>=v&&A<=u)&&(e=[b,A])}return e}Rr.applyBackoff=qM;Rr.makeTester=function(){var e=fn.ensureSingleById(wa.select("body"),"svg","js-plotly-tester",function(t){t.attr(DG.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=fn.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Rr.tester=e,Rr.testref=r};Rr.savedBBoxes={};var n3=0,GG=1e4;Rr.bBox=function(e,r,t){t||(t=pM(e));var n;if(t){if(n=Rr.savedBBoxes[t],n)return fn.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=pM(a),t){var i=+a.getAttribute("x")||0,o=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var s=Rr.bBox(a,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,n=Rr.savedBBoxes[t],n)return fn.extendFlat({},n)}}var u,f;r?u=e:(f=Rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),wa.select(u).attr("transform",null).call(yp.positionText,0,0);var v=u.getBoundingClientRect(),h=Rr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return n3>=GG&&(Rr.savedBBoxes={},n3=0),t&&(Rr.savedBBoxes[t]=d),n3++,fn.extendFlat({},d)};function pM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Rr.setClipUrl=function(e,r,t){e.attr("clip-path",l3(r,t))};function l3(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Rr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};Rr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||0,t=t||0,o=o.replace(n,"").trim(),o+=q1(r,t),o=o.trim(),e[i]("transform",o),o};Rr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};Rr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||1,t=t||1,o=o.replace(n,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var VG=/\s*sc.*/;Rr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(VG,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var WG=/translate\([^)]*\)\s*$/;Rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=wa.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(WG);r===1&&t===1?n=[]:n=[q1(o,l),"scale("+r+","+t+")",q1(-o,-l)],s&&n.push(s),a.attr("transform",n.join(""))}})};function s3(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}Rr.getMarkerStandoff=s3;var L1=Math.atan2,yc=Math.cos,tv=Math.sin;function gM(e,r){var t=r[0],n=r[1];return[t*yc(e)-n*tv(e),t*tv(e)+n*yc(e)]}var mM,yM,bM,_M,a3,i3;function u3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||fn.isArrayOrTypedArray(t))&&(t=0));var n,a,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);n=o[0],a=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)n=l.c2p(e.x),a=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=L1(h[1]-a,h[0]-n),m=L1(v[1]-a,v[0]-n),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,_=f/180*Math.PI,C=mM/180*Math.PI,x=yM/180*Math.PI,b=C-y,A=yc(x)*tv(b),k=tv(x)*yc(_)-yc(x)*tv(_)*yc(b);p=-L1(A,k)-Math.PI,mM=u,yM=f}var M=gM(d,[yc(p),0]),D=gM(m,[tv(p),0]);t=L1(M[1]+D[1],M[0]+D[0])/Math.PI*180,i==="previous"&&!(i3===r.uid&&e.i===a3+1)&&(t=null)}if(i==="previous"&&!r._geo)if(i3===r.uid&&e.i===a3+1&&xc(n)&&xc(a)){var R=n-bM,N=a-_M,I=r.line&&r.line.shape||"",W=I.slice(I.length-1);W==="h"&&(N=0),W==="v"&&(R=0),t+=L1(N,R)/Math.PI*180+90}else t=null}return bM=n,_M=a,a3=e.i,i3=r.uid,t}Rr.getMarkerAngle=u3});var D1=te((lfe,zM)=>{"use strict";var nv=kt(),ZG=Ht(),XG=ha(),f3=dt(),wc=gr(),EM=wc.strTranslate,bp=cn(),_p=Rt(),av=ei(),PM=kd(),jG=Oa().OPPOSITE_SIDE,RM=/ [XY][0-9]* /,c3=1.6,v3=1.6;function JG(e,r,t){var n=e._fullLayout,a=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=a.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},_=y.family,C=y.size,x=y.color,b=y.weight,A=y.style,k=y.variant,M=y.textcase,D=y.lineposition,R=y.shadow,N=t.subtitlePropName,I=!!N,W=t.subtitlePlaceholder,O=(a.title||{}).subtitle||{text:"",font:{}},Z=(O.text||"").trim(),H=!1,ee=1,ie=O.font,re=ie.family,K=ie.size,fe=ie.color,le=ie.weight,ke=ie.style,Ne=ie.variant,He=ie.textcase,Xe=ie.lineposition,Ce=ie.shadow,er;i==="title.text"?er="titleText":i.indexOf("axis")!==-1?er="axisTitleText":i.indexOf("colorbar")!==-1&&(er="colorbarTitleText");var ce=e._context.edits[er];function ge(or,hr){return or===void 0||hr===void 0?!1:or.replace(RM," % ")===hr.replace(RM," % ")}m===""?h=0:ge(m,o)&&(ce||(m=""),h=.2,p=!0),I&&(Z===""?ee=0:ge(Z,W)&&(ce||(Z=""),ee=.2,H=!0)),t._meta?m=wc.templateString(m,t._meta):n._meta&&(m=wc.templateString(m,n._meta));var Pe=m||Z||ce,de;v||(v=wc.ensureSingle(n._infolayer,"g","g-"+r),de=n._hColorbarMoveTitle);var G=v.selectAll("text."+r).data(Pe?[0]:[]);G.enter().append("text"),G.text(m).attr("class",r),G.exit().remove();var Q=null,$=r+"-subtitle",be=Z||ce;if(I&&(Q=v.selectAll("text."+$).data(be?[0]:[]),Q.enter().append("text"),Q.text(Z).attr("class",$),Q.exit().remove()),!Pe)return v;function qe(or,hr){wc.syncOrAsync([Ie,ar],{title:or,subtitle:hr})}function Ie(or){var hr=or.title,Je=or.subtitle,pr;!f&&de&&(f={}),f?(pr="",f.rotate&&(pr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||de)&&(pr+=EM(0,(f.offset||0)-(de||0)))):pr=null,hr.attr("transform",pr);function yr(Ye){if(Ye){var Ze=nv.select(Ye.node().parentNode).select("."+$);if(!Ze.empty()){var dr=Ye.node().getBBox();if(dr.height){var Ar=dr.y+dr.height+c3*K;Ze.attr("y",Ar)}}}}if(hr.style("opacity",h*_p.opacity(x)).call(bp.font,{color:_p.rgb(x),size:nv.round(C,2),family:_,weight:b,style:A,variant:k,textcase:M,shadow:R,lineposition:D}).attr(u).call(av.convertToTspans,e,yr),Je&&!Je.empty()){var Te=v.select("."+r+"-math-group"),Ue=hr.node().getBBox(),kr=Te.node()?Te.node().getBBox():void 0,Ur=kr?kr.y+kr.height+c3*K:Ue.y+Ue.height+v3*K,tr=wc.extendFlat({},u,{y:Ur});Je.attr("transform",pr),Je.style("opacity",ee*_p.opacity(fe)).call(bp.font,{color:_p.rgb(fe),size:nv.round(K,2),family:re,weight:le,style:ke,variant:Ne,textcase:He,shadow:Ce,lineposition:Xe}).attr(tr).call(av.convertToTspans,e)}return XG.previousPromises(e)}function ar(or){var hr=or.title,Je=nv.select(hr.node().parentNode);if(s&&s.selection&&s.side&&m){Je.attr("transform",null);var pr=jG[s.side],yr=s.side==="left"||s.side==="top"?-1:1,Te=ZG(s.pad)?s.pad:2,Ue=bp.bBox(Je.node()),kr={t:0,b:0,l:0,r:0},Ur=e._fullLayout._reservedMargin;for(var tr in Ur)for(var Ye in Ur[tr]){var Ze=Ur[tr][Ye];kr[Ye]=Math.max(kr[Ye],Ze)}var dr={left:kr.l,top:kr.t,right:n.width-kr.r,bottom:n.height-kr.b},Ar=s.maxShift||yr*(dr[s.side]-Ue[s.side]),mr=0;if(Ar<0)mr=Ar;else{var br=s.offsetLeft||0,Ir=s.offsetTop||0;Ue.left-=br,Ue.right-=br,Ue.top-=Ir,Ue.bottom-=Ir,s.selection.each(function(){var Er=bp.bBox(this);wc.bBoxIntersect(Ue,Er,Te)&&(mr=Math.max(mr,yr*(Er[s.side]-Ue[pr])+Te))}),mr=Math.min(Ar,mr),a._titleScoot=Math.abs(mr)}if(mr>0||Ar<0){var Cr={left:[-mr,0],right:[mr,0],top:[0,-mr],bottom:[0,mr]}[s.side];Je.attr("transform",EM(Cr[0],Cr[1]))}}}G.call(qe,Q);function Qe(or,hr){or.text(hr).on("mouseover.opacity",function(){nv.select(this).transition().duration(PM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){nv.select(this).transition().duration(PM.HIDE_PLACEHOLDER).style("opacity",0)})}if(ce&&(m?G.on(".opacity",null):(Qe(G,o),p=!0),G.call(av.makeEditable,{gd:e}).on("edit",function(or){l!==void 0?f3.call("_guiRestyle",e,i,or,l):f3.call("_guiRelayout",e,i,or)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(qe)}).on("input",function(or){this.text(or||" ").call(av.positionText,u.x,u.y)}),I)){if(I&&!m){var Be=G.node().getBBox(),cr=Be.y+Be.height+v3*K;Q.attr("y",cr)}Z?Q.on(".opacity",null):(Qe(Q,W),H=!0),Q.call(av.makeEditable,{gd:e}).on("edit",function(or){f3.call("_guiRelayout",e,"title.subtitle.text",or)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(qe)}).on("input",function(or){this.text(or||" ").call(av.positionText,Q.attr("x"),Q.attr("y"))})}return G.classed("js-placeholder",p),Q&&!Q.empty()&&Q.classed("js-placeholder",H),v}zM.exports={draw:JG,SUBTITLE_PADDING_EM:v3,SUBTITLE_PADDING_MATHJAX_EM:c3}});var Cp=te((sfe,BM)=>{"use strict";var $G=kt(),KG=L0().utcFormat,mn=gr(),QG=mn.numberFormat,is=Ht(),Qu=mn.cleanNumber,eV=mn.ms2DateTime,NM=mn.dateTime2ms,os=mn.ensureNumber,FM=mn.isArrayOrTypedArray,ef=Pn(),xp=ef.FP_SAFE,xl=ef.BADNUM,rV=ef.LOG_CLIP,tV=ef.ONEWEEK,wp=ef.ONEDAY,Mp=ef.ONEHOUR,IM=ef.ONEMIN,HM=ef.ONESEC,Ap=va(),Sp=xa(),Tp=Sp.HOUR_PATTERN,kp=Sp.WEEKDAY_PATTERN;function E1(e){return Math.pow(10,e)}function h3(e){return e!=null}BM.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function i(b,A){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&A&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*rV*Math.abs(k-M))}else return xl}function o(b,A,k,M){if((M||{}).msUTC&&is(b))return+b;var D=NM(b,k||r.calendar);if(D===xl)if(is(b)){b=+b;var R=Math.floor(mn.mod(b+.05,1)*10),N=Math.round(b-R/10);D=NM(new Date(N))+R/10}else return xl;return D}function l(b,A,k){return eV(b,A,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(h3(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var A=r._categories.length-1;return r._categoriesMap[b]=A,A}return xl}function f(b,A){for(var k=new Array(A),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,D=M*b,R=0,N=0;NW)R=N+1;else{R=D<(I+W)/2?N:N+1;break}}var O=r._B[R]||0;return isFinite(O)?m(b,r._m2,O):0},_=function(b){var A=r._rangebreaks.length;if(!A)return p(b,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return p(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:os,r.l2c=r.type==="log"?E1:os,r.l2p=y,r.p2l=_,r.c2p=r.type==="log"?function(b,A){return y(i(b,A))}:y,r.p2c=r.type==="log"?function(b){return E1(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Qu,r.c2d=r.c2r=r.l2d=r.l2r=os,r.d2p=r.r2p=function(b){return r.l2p(Qu(b))},r.p2d=r.p2r=_,r.cleanPos=os):r.type==="log"?(r.d2r=r.d2l=function(b,A){return i(Qu(b),A)},r.r2d=r.r2c=function(b){return E1(Qu(b))},r.d2c=r.r2l=Qu,r.c2d=r.l2r=os,r.c2r=i,r.l2d=E1,r.d2p=function(b,A){return r.l2p(r.d2r(b,A))},r.p2d=function(b){return E1(_(b))},r.r2p=function(b){return r.l2p(Qu(b))},r.p2r=_,r.cleanPos=os):r.type==="date"?(r.d2r=r.r2d=mn.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,A,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,A,k){return l(_(b),A,k)},r.cleanPos=function(b){return mn.cleanDate(b,xl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=d(b);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=os,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:os(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=h(b);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=os,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:os(b)},r.setupMultiCategory=function(b){var A=r._traceIndices,k,M,D=r._matchGroup;if(D&&r._categories.length===0){for(var R in D)if(R!==n){var N=t[Ap.id2name(R)];A=A.concat(N._traceIndices)}}var I=[[0,{}],[0,{}]],W=[];for(k=0;kN[1]&&(M[R?0:1]=k,D[1]=N[1]),D[0]>=D[1])if(A!==void 0){var I=N[0]+1;k!==void 0&&(I=Math.min(I,N[1])),M[R?0:1]=r.l2r(I)}else k!==void 0&&(M[R?1:0]=r.l2r(N[1]-1))}},r.cleanRange=function(b,A){r._cleanRange(b,A),r.limitRange(b)},r._cleanRange=function(b,A){A||(A={}),b||(b="range");var k=mn.nestedProperty(r,b).get(),M,D;if(r.type==="date"?D=mn.dfltRange(r.calendar):a==="y"?D=Sp.DFLTRANGEY:r._name==="realaxis"?D=[0,1]:D=A.dfltRange||Sp.DFLTRANGEX,D=D.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(D[0]=0),!k||k.length!==2){mn.nestedProperty(r,b).set(D);return}var R=k[0]===null,N=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=mn.cleanDate(k[0],xl,r.calendar),k[1]=mn.cleanDate(k[1],xl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!mn.isDateTime(k[M],r.calendar)){r[b]=D;break}if(r.r2l(k[0])===r.r2l(k[1])){var I=mn.constrain(r.r2l(k[0]),mn.MIN_MS+1e3,mn.MAX_MS-1e3);k[0]=r.l2r(I-1e3),k[1]=r.l2r(I+1e3);break}}else{if(!is(k[M]))if(!(R||N)&&is(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=D;break}if(k[M]<-xp?k[M]=-xp:k[M]>xp&&(k[M]=xp),k[0]===k[1]){var W=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=W,k[1]+=W}}},r.setScale=function(b){var A=t._size;if(r.overlaying){var k=Ap.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",D=r.calendar;r.cleanRange(M);var R=r.r2l(r[M][0],D),N=r.r2l(r[M][1],D),I=a==="y";if(I?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(R-N),r._b=-r._m*N):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(N-R),r._b=-r._m*R),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var W,O;if(r._rangebreaks=r.locateBreaks(Math.min(R,N),Math.max(R,N)),r._rangebreaks.length){for(W=0;WN&&(Z=!Z),Z&&r._rangebreaks.reverse();var H=Z?-1:1;for(r._m2=H*r._length/(Math.abs(N-R)-r._lBreaks),r._B.push(-r._m2*(I?N:R)),W=0;WD&&(D+=7,RD&&(D+=24,R=M&&R=M&&b=Ce.min&&(keCe.max&&(Ce.max=Ne),He=!1)}He&&N.push({min:ke,max:Ne})}};for(k=0;k{"use strict";var OM=Ht(),d3=gr(),nV=Pn().BADNUM,Lp=d3.isArrayOrTypedArray,aV=d3.isDateTime,iV=d3.cleanNumber,UM=Math.round;GM.exports=function(r,t,n){var a=r,i=n.noMultiCategory;if(Lp(a)&&!a.length)return"-";if(!i&&fV(a))return"multicategory";if(i&&Array.isArray(a[0])){for(var o=[],l=0;li*2}function YM(e){return Math.max(1,(e-1)/1e3)}function uV(e,r){for(var t=e.length,n=YM(t),a=0,i=0,o={},l=0;la*2}function fV(e){return Lp(e[0])&&Lp(e[1])}});var tf=te((ffe,KM)=>{"use strict";var cV=kt(),XM=Ht(),rf=gr(),qp=Pn().FP_SAFE,vV=dt(),hV=cn(),jM=va(),dV=jM.getFromId,pV=jM.isLinked;KM.exports={applyAutorangeOptions:$M,getAutoRange:g3,makePadFn:m3,doAutoRange:mV,findExtremes:yV,concatExtremes:_3};function g3(e,r){var t,n,a=[],i=e._fullLayout,o=m3(i,r,0),l=m3(i,r,1),s=_3(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return rf.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(N=x-o(k)-l(M),N>b?I/N>A&&(D=k,R=M,A=I/N):I/x>A&&(D={val:k.val,nopad:1},R={val:M.val,nopad:1},A=I/x));function W(ie,re){return Math.max(ie,l(re))}if(v===h){var O=v-1,Z=v+1;if(_)if(v===0)a=[0,1];else{var H=(v>0?f:u).reduce(W,0),ee=v/(1-Math.min(.5,H/x));a=v>0?[0,ee]:[ee,0]}else C?a=[Math.max(0,O),Math.max(1,Z)]:a=[O,Z]}else _?(D.val>=0&&(D={val:0,nopad:1}),R.val<=0&&(R={val:0,nopad:1})):C&&(D.val-A*o(D)<0&&(D={val:0,nopad:1}),R.val<=0&&(R={val:1,nopad:1})),A=(R.val-D.val-VM(r,k.val,M.val))/(x-o(D)-l(R)),a=[D.val-A*o(D),R.val+A*l(R)];return a=$M(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),rf.simpleMap(a,r.l2r||Number)}function VM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),D=b(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(v=0;v0&&(C=h),h>x&&h-qp&&(C=h),h>x&&h=I;v--)N(v);return{min:n,max:a,opts:t}}function y3(e,r,t,n){JM(e,r,t,n,bV)}function b3(e,r,t,n){JM(e,r,t,n,_V)}function JM(e,r,t,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else a(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function ZM(e){return XM(e)&&Math.abs(e)=r}function xV(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Dp(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Dp(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function wV(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Dp(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Dp(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Dp(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,n=s)}}return t=xV(t,r),n=wV(n,r),[t,n]}});var qn=te((vfe,xA)=>{"use strict";var To=kt(),ia=Ht(),iv=ha(),R1=dt(),lt=gr(),ov=lt.strTranslate,Mc=ei(),MV=D1(),z1=Rt(),$i=cn(),AV=bl(),QM=I2(),cfe=xa(),Fa=Pn(),TV=Fa.ONEMAXYEAR,Rp=Fa.ONEAVGYEAR,zp=Fa.ONEMINYEAR,kV=Fa.ONEMAXQUARTER,A3=Fa.ONEAVGQUARTER,Np=Fa.ONEMINQUARTER,SV=Fa.ONEMAXMONTH,lv=Fa.ONEAVGMONTH,Fp=Fa.ONEMINMONTH,Ki=Fa.ONEWEEK,ti=Fa.ONEDAY,nf=ti/2,ss=Fa.ONEHOUR,N1=Fa.ONEMIN,Ip=Fa.ONESEC,CV=Fa.ONEMILLI,LV=Fa.ONEMICROSEC,Ac=Fa.MINUS_SIGN,Bp=Fa.BADNUM,T3={K:"zeroline"},k3={K:"gridline",L:"path"},S3={K:"minor-gridline",L:"path"},fA={K:"tick",L:"path"},eA={K:"tick",L:"text"},rA={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Op=Oa(),P1=Op.MID_SHIFT,Tc=Op.CAP_SHIFT,F1=Op.LINE_SPACING,qV=Op.OPPOSITE_SIDE,Hp=3,xr=xA.exports={};xr.setConvert=Cp();var DV=p3(),us=va(),EV=us.idSort,PV=us.isLinked;xr.id2name=us.id2name;xr.name2id=us.name2id;xr.cleanId=us.cleanId;xr.list=us.list;xr.listIds=us.listIds;xr.getFromId=us.getFromId;xr.getFromTrace=us.getFromTrace;var cA=tf();xr.getAutoRange=cA.getAutoRange;xr.findExtremes=cA.findExtremes;var RV=1e-4;function D3(e){var r=(e[1]-e[0])*RV;return[e[0]-r,e[1]+r]}xr.coerceRef=function(e,r,t,n,a,i){var o=n.charAt(n.length-1),l=t._fullLayout._subplots[o+"axis"],s=n+"ref",u={};return a||(a=l[0]||(typeof i=="string"?i:i[0])),i||(i=a),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:a},lt.coerce(e,r,u,s)};xr.coerceRefArray=function(e,r,t,n,a,i,o){let l=n.charAt(n.length-1);var s=t._fullLayout._subplots[l+"axis"];let u=n+"ref";var f=e[u];a||(a=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(h=>h+" domain")),s=s.concat(i||[]),f.length>o?(lt.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};xr.saveRangeInitial=function(e,r){for(var t=xr.list(e,"",!0),n=!1,a=0;av*.3||u(n)||u(a))){var h=t.dtick/2;e+=e+ho){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=xr.tickIncrement(e,"M6","reverse")+ti*1.5:i.exactMonths>o?e=xr.tickIncrement(e,"M1","reverse")+ti*15.5:e-=nf;var s=xr.tickIncrement(e,t);if(s<=n)return s}return e}xr.prepMinorTicks=function(e,r,t){var v,h;if(!((v=r.minor)!=null&&v.dtick)){delete e.dtick;var n=r.dtick&&ia(r._tmin),a;if(n){var i=xr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,i*.99+r._tmin*.01]}else{var o=lt.simpleMap(r.range,r.r2l);a=[o[0],.8*o[0]+.2*o[1]]}if(e.range=lt.simpleMap(a,r.l2r),e._isMinor=!0,xr.prepTicks(e,t),n){var l=ia(r.dtick),s=ia(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?x3(u,f)?u===2*Ki&&f===2*ti&&(e.dtick=Ki):u===2*Ki&&f===3*ti?e.dtick=Ki:u===Ki&&!(r._input.minor||{}).nticks?e.dtick=ti:aA(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":x3(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?x3(u,f)||(e.dtick=aA(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0)};function x3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function aA(e,r){return Math.abs(e/r-1)<.001}xr.prepTicks=function(e,r){var t=lt.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?lt.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=lt.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,xr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=n-1,o=n):(i=n,o=n);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,v=0;f>=zp?u>=zp&&u<=TV?v=u:v=Rp:t===A3&&f>=Np?u>=Np&&u<=kV?v=u:v=A3:f>=Fp?u>=Fp&&u<=SV?v=u:v=lv:t===Ki&&f>=Ki?v=Ki:f>=ti?v=ti:t===nf&&f>=nf?v=nf:t===ss&&f>=ss&&(v=ss);var h;v>=u&&(v=u,h=!0);var d=a+v;if(r.rangebreaks&&v>0){for(var m=84,p=0,y=0;yKi&&(v=u)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}xr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||lt.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=lt.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);A--){var k=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=A?r:lt.extendFlat({},r,b?r.minor:{minor:{}});if(k?xr.prepMinorTicks(M,r,t):xr.prepTicks(M,t),M.tickmode==="array"){A?(y=[],m=iA(r,!k)):(_=[],p=iA(r,!k));continue}if(M.tickmode==="sync"){y=[],m=BV(r);continue}var D=D3(u),R=D[0],N=D[1],I=ia(M.dtick),W=n==="log"&&!(I||M.dtick.charAt(0)==="L"),O=xr.tickFirst(M,t);if(A){if(r._tmin=O,O=N:H<=N;H=xr.tickIncrement(H,re,f,a)){if(A&&ee++,M.rangebreaks&&!f){if(H=h)break}if(y.length>d||H===Z)break;Z=H;var K={value:H};A?(W&&H!==(H|0)&&(K.simpleLabel=!0),i>1&&ee%i&&(K.skipLabel=!0),y.push(K)):(K.minor=!0,_.push(K))}}if(!_||_.length<3)s=!1;else{var fe=(_[2].value-_[1].value)*(l?-1:1);cW(fe,r.tickformat)||(s=!1,_=_.slice(1))}if(!s)C=y;else{var le=y.concat(_);o&&y.length&&(le=le.slice(1)),le=le.sort(function(or,hr){return or.value-hr.value}).filter(function(or,hr,Je){return hr===0||or.value!==Je[hr-1].value});var ke=le.map(function(or,hr){return or.minor===void 0&&!or.skipLabel?hr:null}).filter(function(or){return or!==null});ke.forEach(function(or){s.map(function(hr){var Je=or+hr;Je>=0&&Je-1;de--){if(y[de].drop){y.splice(de,1);continue}y[de].value=M3(y[de].value,r);var be=r.c2p(y[de].value);(G?$>be-Q:$h||prh&&(Je.periodX=h),pra&&hRp)r/=Rp,n=a(10),e.dtick="M"+12*ls(r,n,Ep);else if(i>lv)r/=lv,e.dtick="M"+ls(r,1,oA);else if(i>ti){if(e.dtick=ls(r,ti,e._hasDayOfWeekBreaks?[1,2,7,14]:OV),!t){var o=xr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=lt.dateTick0(e.calendar,2):e.tick0=lt.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>ss?e.dtick=ls(r,ss,oA):i>N1?e.dtick=ls(r,N1,lA):i>Ip?e.dtick=ls(r,Ip,lA):(n=a(10),e.dtick=ls(r,n,Ep))}else if(e.type==="log"){e.tick0=0;var s=lt.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,n=a(10),e.dtick="L"+ls(r,n,Ep)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):z3(e)?(e.tick0=0,n=1,e.dtick=ls(r,n,UV)):(e.tick0=0,n=a(10),e.dtick=ls(r,n,Ep));if(e.dtick===0&&(e.dtick=1),!ia(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function pA(e){var r=e.dtick;if(e._tickexponent=0,!ia(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ti&&a<=10||r>=ti*15)e._tickround="d";else if(r>=N1&&a<=16||r>=ss)e._tickround="M";else if(r>=Ip&&a<=19||r>=N1)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ia(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ia(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(sv(e.exponentformat)&&e.exponentformat!=="SI extended"&&!E3(s)||sv(e.exponentformat)&&e.exponentformat==="SI extended"&&!P3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}xr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(ia(r))return lt.increment(e,a*r);var i=r.charAt(0),o=a*Number(r.slice(1));if(i==="M")return lt.incrementMonth(e,o,n);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?dA:hA,s=e+a*.01,u=lt.roundUp(lt.mod(s,1),l,t);return Math.floor(s)+Math.log(To.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};xr.tickFirst=function(e,r){var t=e.r2l||Number,n=lt.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&_<=e._length?y:null};if(i&<.isArrayOrTypedArray(e.ticktext)){var v=lt.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=H1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function GV(e,r,t,n,a){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(a==="never"&&(a=""),n&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=I1(Math.pow(10,o),e,a,n);else if(ia(i)||s==="D"&&(e.minorloglabels==="complete"||lt.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(lt.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||sv(m)&&m!=="SI extended"&&E3(h)||sv(m)&&m==="SI extended"&&P3(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":Ac)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":Ac)+d:(r.text=I1(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,lt.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function VV(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function WV(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],i=a[1]===void 0?"":String(a[1]),o=a[0]===void 0?"":String(a[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function ZV(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=I1(r.x,e,a,n)}function XV(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=jV(i);if(o[1]>=100)r.text=I1(lt.deg2rad(r.x),e,a,n);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=Ac+r.text)}}}else r.text=I1(r.x,e,a,n)}function jV(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function n(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var a=n(e),i=e*a,o=Math.abs(t(i,a));return[Math.round(i/o),Math.round(a/o)]}var mA=["f","p","n","\u03BC","m","","k","M","G","T"],JV=["q","r","y","z","a",...mA,"P","E","Z","Y","R","Q"],sv=e=>["SI","SI extended","B"].includes(e);function E3(e){return e>14||e<-15}function P3(e){return e>32||e<-30}function $V(e,r){return sv(r)?!!(r==="SI extended"&&P3(e)||r!=="SI extended"&&E3(e)):!1}function I1(e,r,t,n){var a=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=xr.getTickFormat(r),u=r.separatethousands;if(n){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ia(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};pA(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Ac);var v=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+m+"":o==="B"&&l===9?e+="B":sv(o)&&(e+=o==="SI extended"?JV[l/3+10]:mA[l/3+5])}return a?Ac+e:e}xr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*lv}function n(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function a(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=n(s,u[0])>=0,d=n(s,u[1])<=0;return(f||h)&&(v||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return lt.syncOrAsync(a.map(function(s){return function(){if(s){var u=xr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=xr.drawOne(e,u,t);return u._shiftPusher&&q3(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=lt.simpleMap(u._r,u.r2l),f}}}))};xr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=xr.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),q3(r,m,n,!0),q3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=fW(r,n));var p=h[f+"axislayer"],y=r._mainLinePosition,_=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=xr.calcTicks(r),b=[r.mirror,_,C].join("_");for(i=0;i0?Je.bottom-or:0,hr))));var Ue=0,kr=0;if(r._shiftPusher&&(Ue=Math.max(hr,Je.height>0?Be==="l"?or-Je.left:Je.right-or:0),r.title.text!==s._dfltTitle[f]&&(kr=(r._titleStandoff||0)+(r._titleScoot||0),Be==="l"&&(kr+=uA(r))),r._fullDepth=Math.max(Ue,kr)),r.automargin){pr={x:0,y:0,r:0,l:0,t:0,b:0};var Ur=[0,1],tr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Be==="b"?pr[Be]=r._depth:(pr[Be]=r._depth=Math.max(Je.width>0?or-Je.top:0,hr),Ur.reverse()),Je.width>0){var Ye=Je.right-(r._offset+r._length);Ye>0&&(pr.xr=1,pr.r=Ye);var Ze=r._offset-Je.left;Ze>0&&(pr.xl=0,pr.l=Ze)}}else if(Be==="l"?(r._depth=Math.max(Je.height>0?or-Je.left:0,hr),pr[Be]=r._depth-tr):(r._depth=Math.max(Je.height>0?Je.right-or:0,hr),pr[Be]=r._depth+tr,Ur.reverse()),Je.height>0){var dr=Je.bottom-(r._offset+r._length);dr>0&&(pr.yb=0,pr.b=dr);var Ar=r._offset-Je.top;Ar>0&&(pr.yt=1,pr.t=Ar)}pr[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[Ur[0]],r.title.text!==s._dfltTitle[f]&&(pr[Be]+=uA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(yr={x:0,y:0,r:0,l:0,t:0,b:0},yr[cr]=r.linewidth,r.mirror&&r.mirror!==!0&&(yr[cr]+=hr),r.mirror===!0||r.mirror==="ticks"?yr[v]=r._anchorAxis.domain[Ur[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(yr[v]=[r._counterDomainMin,r._counterDomainMax][Ur[1]]))}Qe&&(Te=R1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(sA(pr,r.automargin),sA(yr,r.automargin)),iv.autoMargin(e,R3(r),pr),iv.autoMargin(e,bA(r),yr),iv.autoMargin(e,_A(r),Te)}),lt.syncOrAsync(Ie)}};function sA(e,r){if(e){var t=Object.keys(rA).reduce(function(n,a){return r.indexOf(a)!==-1&&rA[a].forEach(function(i){n[i]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function KV(e,r){var t=[],n,a=function(i,o){var l=i.xbnd[o];l!==null&&t.push(lt.extendFlat({},i,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(h){return ov(a+e._offset+e.l2p(C3(h))+t,i+n)}:function(h){return ov(i+n,a+e._offset+e.l2p(C3(h))+t)}};function C3(e){return e.periodX!==void 0?e.periodX:e.x}function tW(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),i=n("left"),o=n("right"),l=n("bottom"),s=n("inside"),u=t!=="boundaries"&&(l||i||a||o);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=Hp,d=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=d*Tc,h+=(e.linewidth||0)/2),(i||o)&&(v+=(e.linewidth||0)/2,h+=Hp),s&&f==="top"&&(h-=d*(1-Tc)),(i||a)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}xr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var i=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};xr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",i=function(O){return n.indexOf(O)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=a!=="boundaries"&&(u||l||o||s),v=i("inside"),h=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(v?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=lt.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},C,x,b,A,k=0,M=e.side,D=e._id.charAt(0),R=e.tickangle,N;if(D==="x")N=!v&&M==="bottom"||v&&M==="top",A=N?1:-1,v&&(A*=-1),C=m*A,x=r+d*A,b=N?1:-.2,Math.abs(R)===90&&(v?b+=P1:R===-90&&M==="bottom"?b=Tc:R===90&&M==="top"?b=P1:b=.5,k=P1/2*(R/90)),_.xFn=function(O){return O.dx+C+k*O.fontSize},_.yFn=function(O){return O.dy+x+O.fontSize*b},_.anchorFn=function(O,Z){if(f){if(l)return"end";if(s)return"start"}return!ia(Z)||Z===0||Z===180?"middle":Z*A<0!==v?"end":"start"},_.heightFn=function(O,Z,H){return Z<-60||Z>60?-.5*H:e.side==="top"!==v?-H:0};else if(D==="y"){if(N=!v&&M==="left"||v&&M==="right",A=N?1:-1,v&&(A*=-1),C=d,x=m*A,b=0,!v&&Math.abs(R)===90&&(R===-90&&M==="left"||R===90&&M==="right"?b=Tc:b=.5),v){var I=ia(R)?+R:0;if(I!==0){var W=lt.deg2rad(I);k=Math.abs(Math.sin(W))*Tc*A,b=0}}_.xFn=function(O){return O.dx+r-(C+O.fontSize*b)*A+k*O.fontSize},_.yFn=function(O){return O.dy+x+O.fontSize*P1},_.anchorFn=function(O,Z){return ia(Z)&&Math.abs(Z)===90?"middle":N?"end":"start"},_.heightFn=function(O,Z,H){return e.side==="right"&&(Z*=-1),Z<-30?-H:Z<30?-.5*H:0}}return _};function Up(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}xr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+n).data(a,Up);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return z1.stroke(To.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return $i.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Yp(r,[fA]),i.attr("transform",t.transFn)};xr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,i=a?t.vals.filter(function(_){return _.minor}):[],o=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],l=t.counterAxis;if(l&&xr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+n).data(m?o:i,Up);y.exit().remove(),y.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(_){return z1.stroke(To.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return $i.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Yp(r,[k3,S3])}};xr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=xr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return EV(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(z1.stroke,r.zerolinecolor||z1.defaultLine).style("stroke-width",$i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Yp(r,[T3])};xr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,i=r.zerolinelayer==="above traces",o=t.cls||a+"tick",l=t.vals.filter(function(K){return K.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],v=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Up),h=[];v.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(K){var fe=To.select(this),le=e._promises.length;fe.call(Mc.positionText,s.xFn(K),s.yFn(K)).call($i.font,{family:K.font,size:K.fontSize,color:K.fontColor,weight:K.fontWeight,style:K.fontStyle,variant:K.fontVariant,textcase:K.fontTextcase,lineposition:K.fontLineposition,shadow:K.fontShadow}).text(K.text).call(Mc.convertToTspans,e),e._promises[le]?h.push(e._promises.pop().then(function(){d(fe,u)})):d(fe,u)}),Yp(r,[eA]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(K){To.select(this).select("text").call(Mc.positionText,s.xFn(K),s.yFn(K))});function d(K,fe){K.each(function(le){var ke=To.select(this),Ne=ke.select(".text-math-group"),He=s.anchorFn(le,fe),Xe=t.transFn.call(ke.node(),le)+(ia(fe)&&+fe!=0?" rotate("+fe+","+s.xFn(le)+","+(s.yFn(le)-le.fontSize/2)+")":""),Ce=Mc.lineCount(ke),er=F1*le.fontSize,ce=s.heightFn(le,ia(fe)?+fe:0,(Ce-1)*er);if(ce&&(Xe+=ov(0,ce)),Ne.empty()){var ge=ke.select("text");ge.attr({transform:Xe,"text-anchor":He}),ge.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Pe=$i.bBox(Ne.node()).width,de=Pe*{end:-.5,start:.5}[He];Ne.attr("transform",Xe+ov(de,0))}})}r._adjustTickLabelsOverflow=function(){var K=r.ticklabeloverflow;if(!(!K||K==="allow")){var fe=K.indexOf("hide")!==-1,le=r._id.charAt(0)==="x",ke=0,Ne=le?e._fullLayout.width:e._fullLayout.height;if(K.indexOf("domain")!==-1){var He=lt.simpleMap(r.range,r.r2l);ke=r.l2p(He[0])+r._offset,Ne=r.l2p(He[1])+r._offset}var Xe=Math.min(ke,Ne),Ce=Math.max(ke,Ne),er=r.side,ce=1/0,ge=-1/0;v.each(function(Q){var $=To.select(this),be=$.select(".text-math-group");if(be.empty()){var qe=$i.bBox($.node()),Ie=0;le?(qe.right>Ce||qe.leftCe||qe.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+He._id]?$.style("display","none"):Ce.K==="tick"&&!Xe&&$.node().style.display!=="none"&&$.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(v,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var K=0,fe=[],le,ke=1;v.each(function(pr){K=Math.max(K,pr.fontSize);var yr=r.l2p(pr.x),Te=L3(this),Ue=$i.bBox(Te.node());ke=Math.max(ke,Mc.lineCount(Te)),fe.push({top:0,bottom:10,height:10,left:yr-Ue.width/2,right:yr+Ue.width/2+2,width:Ue.width+2})});var Ne=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,He=l.length,Xe=Math.abs((l[He-1].x-l[0].x)*r._m)/(He-1),Ce=Ne?Xe/2:Xe,er=Ne?r.ticklen:K*1.25*ke,ce=Math.sqrt(Math.pow(Ce,2)+Math.pow(er,2)),ge=Ce/ce,Pe=r.autotickangles.map(function(pr){return pr*Math.PI/180}),de=Pe.find(function(pr){return Math.abs(Math.cos(pr))<=ge});de===void 0&&(de=Pe.reduce(function(pr,yr){return Math.abs(Math.cos(pr))ee*H&&(W=H,R[D]=N[D]=O[D])}var ie=Math.abs(W-I);ie-A>0?(ie-=A,A*=1+A/ie):A=0,r._id.charAt(0)!=="y"&&(A=-A),R[M]=x.p2r(x.r2p(N[M])+k*A),x.autorange==="min"||x.autorange==="max reversed"?(R[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(R[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[x._name+".range"]=R}var re=lt.syncOrAsync(_);return re&&re.then&&e._promises.push(re),re};function nW(e,r,t){var n=r._id+"divider",a=t.vals,i=t.layer.selectAll("path."+n).data(a,Up);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(z1.stroke,r.dividercolor).style("stroke-width",$i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}xr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:n==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return i._offset;if(a==="bottom"||a==="right")return i._offset+i._length};function uA(e){var r=e.title.font.size,t=(e.title.text.match(Mc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Tc+t*F1):t?r*(t+1)*F1:r}function aW(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(Mc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*Tc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(P1+l*F1));else{var s=H1(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(a==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=xr.getPxPosition(e,r),v,h,d;a==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=$i.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,MV.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}xr.shouldShowZeroLine=function(e,r,t){var n=lt.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Bp)&&(yA(r,0)||!iW(e,r,t,n)||oW(e,r))};xr.clipEnds=function(e,r){return r.filter(function(t){return yA(e,t.x)})};function yA(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=LV:/%L/.test(r)?e>=CV:/%[SX]/.test(r)?e>=Ip:/%M/.test(r)?e>=N1:/%[HI]/.test(r)?e>=ss:/%p/.test(r)?e>=nf:/%[Aadejuwx]/.test(r)?e>=ti:/%[UVW]/.test(r)?e>=Ki:/%[Bbm]/.test(r)?e>=Fp:/%[q]/.test(r)?e>=Np:/%[Yy]/.test(r)?e>=zp:!0}});var MA=te((hfe,wA)=>{"use strict";wA.exports=function(r,t,n){var a,i;if(n){var o=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[o?1:0],i=n[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?a:void 0),s=r("autorangeoptions.maxallowed",a===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var N3=te((dfe,AA)=>{"use strict";var vW=MA();AA.exports=function(r,t,n,a){var i=t._template||{},o=t.type||i.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var s;!a.noInsiderange&&o!=="log"&&(s=n("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=n("range",s)))}var u=t.getAutorangeDflt(l,a),f=n("autorange",u),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(l,a),f=n("autorange",u)),f&&(vW(n,f,l),(o==="linear"||o==="-")&&n("rangemode")),t.cleanRange()}});var kA=te((pfe,TA)=>{var hW={left:0,top:0};TA.exports=dW;function dW(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,i=pW(r);return t[0]=n-i.left,t[1]=a-i.top,t}function pW(e){return e===window||e===document||e===document.body?hW:e.getBoundingClientRect()}});var F3=te((gfe,SA)=>{"use strict";var gW=v2();function mW(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}SA.exports=gW&&mW()});var LA=te((mfe,CA)=>{"use strict";CA.exports=function(r,t,n,a,i){var o=(r-n)/(a-n),l=o+t/(a-n),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var EA=te((yfe,DA)=>{"use strict";var qA=gr(),yW=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];DA.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=qA.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=qA.constrain(Math.floor(t*3),0,2),yW[t][r]}});var RA=te((bfe,PA)=>{"use strict";var bW=w1(),_W=Yd(),xW=d1().getGraphDiv,wW=f1(),I3=PA.exports={};I3.wrapped=function(e,r,t){e=xW(e),e._fullLayout&&_W.clear(e._fullLayout._uid+wW.HOVERID),I3.raw(e,r,t)};I3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&bW.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var ko=te((_fe,IA)=>{"use strict";var MW=kA(),H3=d2(),AW=F3(),TW=gr().removeElement,kW=xa(),kc=IA.exports={};kc.align=LA();kc.getCursor=EA();var NA=RA();kc.unhover=NA.wrapped;kc.unhoverRaw=NA.raw;kc.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,AW?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,b,A){return Math.abs(x)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var k=v[A];!b[A]&&typeof k!="function"&&(b[A]=k)})),r.clickFn&&r.clickFn(n,b),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function FA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}kc.coverSlip=FA;function zA(e){return MW(e.changedTouches?e.changedTouches[0]:e,document.body)}});var af=te((xfe,HA)=>{"use strict";HA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var UA=te((wfe,OA)=>{"use strict";var B3=af(),B1="data-savedcursor",BA="!!";OA.exports=function(r,t){var n=r.attr(B1);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),i=0;i{"use strict";var O3=Qa(),SW=dl();YA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:SW.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:O3({editType:"legend"}),grouptitlefont:O3({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:O3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var U1=te(O1=>{"use strict";O1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};O1.isVertical=function(r){return r.orientation!=="h"};O1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};O1.getId=function(r){return r._id||"legend"}});var G3=te((Tfe,GA)=>{"use strict";var Gp=dt(),Qi=gr(),CW=yn(),LW=_o(),qW=U3(),DW=F0(),Y3=U1();function EW(e,r,t,n,a){var i=r[e]||{},o=CW.newContainer(t,e);function l(K,fe){return Qi.coerce(i,o,qW,K,fe)}var s=Qi.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,v=function(K,fe){var le=f._input,ke=f;return Qi.coerce(le,ke,LW,K,fe)},h=t.font||{},d=Qi.coerceFont(l,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),m=0,p=!1,y="normal",_=(t.shapes||[]).filter(function(K){return K.showlegend});function C(K){return Gp.traceIs(K,"pie-like")&&K._length!=null&&(Array.isArray(K.legend)||Array.isArray(K.showlegend))}n.filter(C).forEach(function(K){K.visible&&m++;for(var fe=0;feK.legend.length)for(var ke=K.legend.length;ke(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),!(k===!1&&!i.uirevision)&&(l("uirevision",t.uirevision),k!==!1)){l("borderwidth");var M=l("orientation"),D=l("yref"),R=l("xref"),N=M==="h",I=D==="paper",W=R==="paper",O,Z,H,ee="left";N?(O=0,Gp.getComponentMethod("rangeslider","isVisible")(r.xaxis)?I?(Z=1.1,H="bottom"):(Z=1,H="top"):I?(Z=-.1,H="top"):(Z=0,H="bottom")):(Z=1,H="auto",W?O=1.02:(O=1,ee="right")),Qi.coerce(i,o,{x:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:O}},"x"),Qi.coerce(i,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:Z}},"y"),l("traceorder",y),Y3.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",ee),l("yanchor",H),l("maxheight"),l("valign"),Qi.noneOrAll(i,o,["x","y"]);var ie=l("title.text");if(ie){l("title.side",N?"left":"top");var re=Qi.extendFlat({},s,{size:Qi.bigFont(s.size)});Qi.coerceFont(l,"title.font",re);let K=a>1;l("titleclick",K?"toggle":!1),l("titledoubleclick",K?"toggleothers":!1)}}}GA.exports=function(r,t,n){var a,i=n.slice(),o=t.shapes;if(o)for(a=0;a{"use strict";var of=dt(),V3=gr(),PW=V3.pushUnique,RW=U1(),VA=!0;W3.handleItemClick=function(r,t,n,a){var i=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;var l=n.groupclick;a==="toggle"&&n.itemdoubleclick==="toggleothers"&&VA&&t.data&&t._context.showTips&&(V3.notifier(V3._(t,"Double-click on legend to isolate one trace"),"long",t),VA=!1);var s=l==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let v=(i.shapes||[]).filter(Qe=>Qe.showlegend||Qe.legendgroup);var h=f.concat(v),d=o.trace;d._isShape&&(d=d._fullInput);var m=d.legendgroup,p,y,_,C,x,b,A={},k=[],M=[],D=[];function R(Qe,Be){var cr=k.indexOf(Qe),or=A.visible;return or||(or=A.visible=[]),k.indexOf(Qe)===-1&&(k.push(Qe),cr=k.length-1),or[cr]=Be,cr}var N=(i.shapes||[]).map(function(Qe){return Qe._input}),I=!1;function W(Qe,Be){N[Qe].visible=Be,I=!0}function O(Qe,Be){if(!(o.groupTitle&&!s)){var cr=Qe._fullInput||Qe,or=cr._isShape,hr=cr.index;hr===void 0&&(hr=cr._index);var Je=cr.visible===!1?!1:Be;or?W(hr,Je):R(hr,Je)}}var Z=d.legend,H=d._fullInput,ee=H&&H._isShape;if(!ee&&of.traceIs(d,"pie-like")){var ie=o.label,re=u.indexOf(ie);if(a==="toggle")re===-1?u.push(ie):u.splice(re,1);else if(a==="toggleothers"){var K=re!==-1,fe=[];for(p=0;p_.showlegend||_.legendgroup),s=i.concat(l);function u(_){return(_.legend||"legend")===o}var f,v;if(n==="toggle")f=!s.some(function(C){return u(C)&&C.visible===!0}),v=!1;else{let _=s.some(function(C){return!u(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,v=!_}let h={visible:[]},d=[],m=(a.shapes||[]).map(function(_){return _._input});for(var p=!1,y=0;y{"use strict";WA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var jA=te((Cfe,XA)=>{"use strict";var{isArrayOrTypedArray:j3}=qi(),ZA=dt(),J3=U1();XA.exports=function(r,t,n){var a=t._inHover,i=J3.isGrouped(t),o=J3.isReversed(t),l={},s=[],u=!1,f={},v=0,h=0,d,m;function p(fe,le,ke){if(t.visible!==!1&&!(n&&fe!==t._id))if(le===""||!J3.isGrouped(t)){var Ne="~~i"+v;s.push(Ne),l[Ne]=[ke],v++}else s.indexOf(le)===-1?(s.push(le),u=!0,l[le]=[ke]):l[le].push(ke)}for(d=0;dO&&(I=O)}R[d][0]._groupMinRank=I,R[d][0]._preGroupSort=d}var Z=function(fe,le){return fe[0]._groupMinRank-le[0]._groupMinRank||fe[0]._preGroupSort-le[0]._preGroupSort},H=function(fe,le){var ke=j3(fe.trace.legendrank)?fe.trace.legendrank[fe.i]:fe.trace.legendrank,Ne=j3(le.trace.legendrank)?le.trace.legendrank[le.i]:le.trace.legendrank;return ke-Ne||fe._preSort-le._preSort};for(R.forEach(function(fe,le){fe[0]._preGroupSort=le}),R.sort(Z),d=0;d{"use strict";var Vp=gr();function JA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Sc.formatPiePercent=function(r,t){var n=JA((r*100).toPrecision(3));return Vp.numSeparate(n,t)+"%"};Sc.formatPieValue=function(r,t){var n=JA(r.toPrecision(10));return Vp.numSeparate(n,t)};Sc.getFirstFilled=function(r,t){if(Vp.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var zW=cn(),NW=Rt();$A.exports=function(r,t,n,a){var i=n.marker.pattern;i&&i.shape?zW.pointStyle(r,n,a,t):NW.fill(r,t.color)}});var tT=te((Dfe,rT)=>{"use strict";var QA=Rt(),eT=$3().castOption,FW=KA();rT.exports=function(r,t,n,a){var i=n.marker.line,o=eT(i.color,t.pts)||QA.defaultLine,l=eT(i.width,t.pts)||0;r.call(FW,t,n,a).style("stroke-width",l).call(QA.stroke,o)}});var r5=te((Efe,sT)=>{"use strict";var ni=kt(),K3=dt(),Ya=gr(),nT=Ya.strTranslate,eo=cn(),So=Rt(),Q3=ns().extractOpts,Wp=ri(),IW=tT(),HW=$3().castOption,BW=X3(),aT=12,iT=5,Cc=2,OW=10,uv=5;sT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var i=n.itemsizing==="constant",o=n.itemwidth,l=(o+BW.itemGap*2)/2,s=nT(l,0),u=function(M,D,R,N){var I;if(M+1)I=M;else if(D&&D.width>0)I=D.width;else return 0;return i?N:Math.min(I,R)};r.each(function(M){var D=ni.select(this),R=Ya.ensureSingle(D,"g","layers");R.style("opacity",M[0].trace.opacity);var N=n.indentation,I=n.valign,W=M[0].lineHeight,O=M[0].height;if(I==="middle"&&N===0||!W||!O)R.attr("transform",null);else{var Z={top:1,bottom:-1}[I],H=Z*(.5*(W-O+3))||0,ee=n.indentation;R.attr("transform",nT(ee,H))}var ie=R.selectAll("g.legendfill").data([M]);ie.enter().append("g").classed("legendfill",!0);var re=R.selectAll("g.legendlines").data([M]);re.enter().append("g").classed("legendlines",!0);var K=R.selectAll("g.legendsymbols").data([M]);K.enter().append("g").classed("legendsymbols",!0),K.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(m).each(d).each(y).each(b).each(x).each(f).each(v).each(_).each(C);function f(M){var D=oT(M),R=D.showFill,N=D.showLine,I=D.showGradientLine,W=D.showGradientFill,O=D.anyFill,Z=D.anyLine,H=M[0],ee=H.trace,ie,re,K=Q3(ee),fe=K.colorscale,le=K.reversescale,ke=function(ge){if(ge.size())if(R)eo.fillGroupStyle(ge,t,!0);else{var Pe="legendfill-"+ee.uid;eo.gradient(ge,t,Pe,e5(le),fe,"fill")}},Ne=function(ge){if(ge.size()){var Pe="legendline-"+ee.uid;eo.lineGroupStyle(ge),eo.gradient(ge,t,Pe,e5(le),fe,"stroke")}},He=Wp.hasMarkers(ee)||!O?"M5,0":Z?"M5,-2":"M5,-3",Xe=ni.select(this),Ce=Xe.select(".legendfill").selectAll("path").data(R||W?[M]:[]);if(Ce.enter().append("path").classed("js-fill",!0),Ce.exit().remove(),Ce.attr("d",He+"h"+o+"v6h-"+o+"z").call(ke),N||I){var er=u(void 0,ee.line,OW,iT);re=Ya.minExtend(ee,{line:{width:er}}),ie=[Ya.minExtend(H,{trace:re})]}var ce=Xe.select(".legendlines").selectAll("path").data(N||I?[ie]:[]);ce.enter().append("path").classed("js-line",!0),ce.exit().remove(),ce.attr("d",He+(I?"l"+o+",0.0001":"h"+o)).call(N?eo.lineGroupStyle:Ne)}function v(M){var D=oT(M),R=D.anyFill,N=D.anyLine,I=D.showLine,W=D.showMarker,O=M[0],Z=O.trace,H=!W&&!N&&!R&&Wp.hasText(Z),ee,ie;function re(Ce,er,ce,ge){var Pe=Ya.nestedProperty(Z,Ce).get(),de=Ya.isArrayOrTypedArray(Pe)&&er?er(Pe):Pe;if(i&&de&&ge!==void 0&&(de=ge),ce){if(dece[1])return ce[1]}return de}function K(Ce){return O._distinct&&O.index&&Ce[O.index]?Ce[O.index]:Ce[0]}if(W||H||I){var fe={},le={};if(W){fe.mc=re("marker.color",K),fe.mx=re("marker.symbol",K),fe.mo=re("marker.opacity",Ya.mean,[.2,1]),fe.mlc=re("marker.line.color",K),fe.mlw=re("marker.line.width",Ya.mean,[0,5],Cc),fe.mld=Z._isShape?"solid":re("marker.line.dash",K),le.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ke=re("marker.size",Ya.mean,[2,16],aT);fe.ms=ke,le.marker.size=ke}I&&(le.line={width:re("line.width",K,[0,10],iT)}),H&&(fe.tx="Aa",fe.tp=re("textposition",K),fe.ts=10,fe.tc=re("textfont.color",K),fe.tf=re("textfont.family",K),fe.tw=re("textfont.weight",K),fe.ty=re("textfont.style",K),fe.tv=re("textfont.variant",K),fe.tC=re("textfont.textcase",K),fe.tE=re("textfont.lineposition",K),fe.tS=re("textfont.shadow",K)),ee=[Ya.minExtend(O,fe)],ie=Ya.minExtend(Z,le),ie.selectedpoints=null,ie.texttemplate=null}var Ne=ni.select(this).select("g.legendpoints"),He=Ne.selectAll("path.scatterpts").data(W?ee:[]);He.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),He.exit().remove(),He.call(eo.pointStyle,ie,t),W&&(ee[0].mrc=3);var Xe=Ne.selectAll("g.pointtext").data(H?ee:[]);Xe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Xe.exit().remove(),Xe.selectAll("text").call(eo.textPointStyle,ie,t)}function h(M){var D=M[0].trace,R=D.type==="waterfall";if(M[0]._distinct&&R){var N=M[0].trace[M[0].dir].marker;return M[0].mc=N.color,M[0].mlw=N.line.width,M[0].mlc=N.line.color,p(M,this,"waterfall")}var I=[];D.visible&&R&&(I=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var W=ni.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);W.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),W.exit().remove(),W.each(function(O){var Z=ni.select(this),H=D[O[0]].marker,ee=u(void 0,H.line,uv,Cc);Z.attr("d",O[1]).style("stroke-width",ee+"px").call(So.fill,H.color),ee&&Z.call(So.stroke,H.line.color)})}function d(M){p(M,this)}function m(M){p(M,this,"funnel")}function p(M,D,R){var N=M[0].trace,I=N.marker||{},W=I.line||{},O=I.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Z=R?N.visible&&N.type===R:K3.traceIs(N,"bar"),H=ni.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(Z?[M]:[]);H.enter().append("path").classed("legend"+R,!0).attr("d",O).attr("transform",s),H.exit().remove(),H.each(function(ee){var ie=ni.select(this),re=ee[0],K=u(re.mlw,I.line,uv,Cc);ie.style("stroke-width",K+"px");var fe=re.mcc;if(!n._inHover&&"mc"in re){var le=Q3(I),ke=le.mid;ke===void 0&&(ke=(le.max+le.min)/2),fe=eo.tryColorscale(I,"")(ke)}var Ne=fe||re.mc||I.color,He=I.pattern,Xe=eo.getPatternAttr,Ce=He&&(Xe(He.shape,0,"")||Xe(He.path,0,""));if(Ce){var er=Xe(He.bgcolor,0,null),ce=Xe(He.fgcolor,0,null),ge=He.fgopacity,Pe=lT(He.size,8,10),de=lT(He.solidity,.5,1),G="legend-"+N.uid;ie.call(eo.pattern,"legend",t,G,Ce,Pe,de,fe,He.fillmode,er,ce,ge)}else ie.call(So.fill,Ne);K&&So.stroke(ie,re.mlc||W.color)})}function y(M){var D=M[0].trace,R=ni.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&K3.traceIs(D,"box-violin")?[M]:[]);R.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),R.exit().remove(),R.each(function(){var N=ni.select(this);if((D.boxpoints==="all"||D.points==="all")&&So.opacity(D.fillcolor)===0&&So.opacity((D.line||{}).color)===0){var I=Ya.minExtend(D,{marker:{size:i?aT:Ya.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(eo.pointStyle,I,t)}else{var W=u(void 0,D.line,uv,Cc);N.style("stroke-width",W+"px").call(So.fill,D.fillcolor),W&&So.stroke(N,D.line.color)}})}function _(M){var D=M[0].trace,R=ni.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(D.visible&&D.type==="candlestick"?[M,M]:[]);R.enter().append("path").classed("legendcandle",!0).attr("d",function(N,I){return I?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,I){var W=ni.select(this),O=D[I?"increasing":"decreasing"],Z=u(void 0,O.line,uv,Cc);W.style("stroke-width",Z+"px").call(So.fill,O.fillcolor),Z&&So.stroke(W,O.line.color)})}function C(M){var D=M[0].trace,R=ni.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(D.visible&&D.type==="ohlc"?[M,M]:[]);R.enter().append("path").classed("legendohlc",!0).attr("d",function(N,I){return I?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,I){var W=ni.select(this),O=D[I?"increasing":"decreasing"],Z=u(void 0,O.line,uv,Cc);W.style("fill","none").call(eo.dashLine,O.line.dash,Z),Z&&So.stroke(W,O.line.color)})}function x(M){A(M,this,"pie")}function b(M){A(M,this,"funnelarea")}function A(M,D,R){var N=M[0],I=N.trace,W=R?I.visible&&I.type===R:K3.traceIs(I,R),O=ni.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(W?[M]:[]);if(O.enter().append("path").classed("legend"+R,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),O.exit().remove(),O.size()){var Z=I.marker||{},H=u(HW(Z.line.width,N.pts),Z.line,uv,Cc),ee="pieLike",ie=Ya.minExtend(I,{marker:{line:{width:H}}},ee),re=Ya.minExtend(N,{trace:ie},ee);IW(O,re,ie,t)}}function k(M){var D=M[0].trace,R,N=[];if(D.visible)switch(D.type){case"histogram2d":case"heatmap":N=[["M-15,-2V4H15V-2Z"]],R=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":N=[["M-6,-6V6H6V-6Z"]],R=!0;break;case"densitymapbox":case"densitymap":N=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],R="radial";break;case"cone":N=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],R=!1;break;case"streamtube":N=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],R=!1;break;case"surface":N=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],R=!0;break;case"mesh3d":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],R=!1;break;case"volume":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],R=!0;break;case"isosurface":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],R=!1;break}var I=ni.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(N);I.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),I.exit().remove(),I.each(function(W,O){var Z=ni.select(this),H=Q3(D),ee=H.colorscale,ie=H.reversescale,re=function(ke){if(ke.size()){var Ne="legendfill-"+D.uid;eo.gradient(ke,t,Ne,e5(ie,R==="radial"),ee,"fill")}},K;if(ee){if(!R){var le=ee.length;K=O===0?ee[ie?le-1:0][1]:O===1?ee[ie?0:le-1][1]:ee[Math.floor((le-1)/2)][1]}}else{var fe=D.vertexcolor||D.facecolor||D.color;K=Ya.isArrayOrTypedArray(fe)?fe[O]||fe[0]:fe}Z.attr("d",W[0]),K?Z.call(So.fill,K):Z.call(re)})}};function e5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function oT(e){var r=e[0].trace,t=r.contours,n=Wp.hasLines(r),a=Wp.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:n=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function lT(e,r,t){return e&&Ya.isArrayOrTypedArray(e)?r:e>t?t:e}});var i5=te((Pfe,mT)=>{"use strict";var di=kt(),Qn=gr(),n5=ha(),Lc=dt(),jp=w1(),t5=ko(),ea=cn(),Y1=Rt(),qc=ei(),uT=Z3().handleItemClick,fT=Z3().handleTitleClick,oa=X3(),a5=Oa(),pT=a5.LINE_SPACING,cv=a5.FROM_TL,cT=a5.FROM_BR,vT=jA(),UW=r5(),vv=U1(),fv=1,YW=/^legend[0-9]*$/;mT.exports=function(r,t){if(t)hT(r,t);else{var n=r._fullLayout,a=n._legends,i=n._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=di.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(YW)&&a.indexOf(v)===-1&&u.remove()});for(var o=0;o1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!s.length))return o.selectAll("."+a).remove(),n._topdefs.select("#"+i).remove(),n5.autoMargin(e,a);var p=Qn.ensureSingle(o,"g",a,function(D){l||D.attr("pointer-events","all")}),y=Qn.ensureSingleById(n._topdefs,"clipPath",i,function(D){D.append("rect")}),_=Qn.ensureSingle(p,"rect","bg",function(D){D.attr("shape-rendering","crispEdges")});_.call(Y1.stroke,t.bordercolor).call(Y1.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=Qn.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var b;x.text?(b=Qn.ensureSingle(C,"text",a+"titletext"),b.attr("text-anchor","start").call(ea.font,x.font).text(x.text),Xp(b,C,e,t,fv),!l&&(t.titleclick||t.titledoubleclick)&&ZW(C,e,t,a)):(C.selectAll("."+a+"titletext").remove(),C.selectAll("."+a+"titletoggle").remove());var A=Qn.ensureSingle(p,"rect","scrollbar",function(D){D.attr(oa.scrollBarEnterAttrs).call(Y1.fill,oa.scrollBarColor)}),k=C.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(Qn.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(D){let R=D[0],N=R.trace;if(R.groupTitle){let I=N.legendgroup,W=(n.shapes||[]).filter(function(Z){return Z.showlegend});return e._fullData.concat(W).some(function(Z){return Z.legendgroup===I&&(Z.legend||"legend")===a&&Z.visible===!0})?1:.5}return Lc.traceIs(N,"pie-like")?m.indexOf(D[0].label)!==-1?.5:1:N.visible==="legendonly"?.5:1}).each(function(){di.select(this).call(VW,e,t)}).call(UW,e,t).each(function(D){l||D[0].groupTitle&&t.groupclick==="toggleitem"||di.select(this).call(WW,e,a)}),Qn.syncOrAsync([n5.previousPromises,function(){return JW(e,k,M,t,C)},function(){var D=n._size,R=t.borderwidth,N=t.xref==="paper",I=t.yref==="paper";if(x.text){let be=(n.shapes||[]).filter(function(Ie){return Ie.showlegend}),qe=e._fullData.concat(be).some(function(Ie){let ar=Ie.legend||"legend";var Qe=Array.isArray(ar)?ar.includes(a):ar===a;return Qe&&Ie.visible===!0});b.style("opacity",qe?1:.5)}if(!l){var W,O;N?W=D.l+D.w*t.x-cv[Jp(t)]*t._width:W=n.width*t.x-cv[Jp(t)]*t._width,I?O=D.t+D.h*(1-t.y)-cv[$p(t)]*t._effHeight:O=n.height*(1-t.y)-cv[$p(t)]*t._effHeight;var Z=$W(e,a,W,O);if(Z)return;if(n.margin.autoexpand){var H=W,ee=O;W=N?Qn.constrain(W,0,n.width-t._width):H,O=I?Qn.constrain(O,0,n.height-t._effHeight):ee,W!==H&&Qn.log("Constrain "+a+".x to make legend fit inside graph"),O!==ee&&Qn.log("Constrain "+a+".y to make legend fit inside graph")}ea.setTranslate(p,W,O)}if(A.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var ie=t._effHeight;l&&(ie=t._height),_.attr({width:t._width-R,height:ie-R,x:R/2,y:R/2}),ea.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*R,height:ie-2*R,x:R,y:R}),ea.setClipUrl(C,i,e),ea.setRect(A,0,0,0,0),delete t._scrollY}else{var re=Math.max(oa.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),K=t._effHeight-re-2*oa.scrollBarMargin,fe=t._height-t._effHeight,le=K/fe,ke=Math.min(t._scrollY||0,fe);_.attr({width:t._width-2*R+oa.scrollBarWidth+oa.scrollBarMargin,height:t._effHeight-R,x:R/2,y:R/2}),y.select("rect").attr({width:t._width-2*R+oa.scrollBarWidth+oa.scrollBarMargin,height:t._effHeight-2*R,x:R,y:R+ke}),ea.setClipUrl(C,i,e),Pe(ke,re,le),p.on("wheel",function(){ke=Qn.constrain(t._scrollY+di.event.deltaY/fe*K,0,fe),Pe(ke,re,le),ke!==0&&ke!==fe&&di.event.preventDefault()});var Ne,He,Xe,Ce=function(be,qe,Ie){var ar=(Ie-qe)/le+be;return Qn.constrain(ar,0,fe)},er=function(be,qe,Ie){var ar=(qe-Ie)/le+be;return Qn.constrain(ar,0,fe)},ce=di.behavior.drag().on("dragstart",function(){var be=di.event.sourceEvent;be.type==="touchstart"?Ne=be.changedTouches[0].clientY:Ne=be.clientY,Xe=ke}).on("drag",function(){var be=di.event.sourceEvent;be.buttons===2||be.ctrlKey||(be.type==="touchmove"?He=be.changedTouches[0].clientY:He=be.clientY,ke=Ce(Xe,Ne,He),Pe(ke,re,le))});A.call(ce);var ge=di.behavior.drag().on("dragstart",function(){var be=di.event.sourceEvent;be.type==="touchstart"&&(Ne=be.changedTouches[0].clientY,Xe=ke)}).on("drag",function(){var be=di.event.sourceEvent;be.type==="touchmove"&&(He=be.changedTouches[0].clientY,ke=er(Xe,Ne,He),Pe(ke,re,le))});C.call(ge)}function Pe(be,qe,Ie){t._scrollY=e._fullLayout[a]._scrollY=be,ea.setTranslate(C,0,-be),ea.setRect(A,t._width,oa.scrollBarMargin+be*Ie,oa.scrollBarWidth,qe),y.select("rect").attr("y",R+be)}if(e._context.edits.legendPosition){var de,G,Q,$;p.classed("cursor-move",!0),t5.init({element:p.node(),gd:e,prepFn:function(be){if(be.target!==A.node()){var qe=ea.getTranslate(p);Q=qe.x,$=qe.y}},moveFn:function(be,qe){if(Q!==void 0&&$!==void 0){var Ie=Q+be,ar=$+qe;ea.setTranslate(p,Ie,ar),de=t5.align(Ie,t._width,D.l,D.l+D.w,t.xanchor),G=t5.align(ar+t._height,-t._height,D.t+D.h,D.t,t.yanchor)}},doneFn:function(){if(de!==void 0&&G!==void 0){var be={};be[a+".x"]=de,be[a+".y"]=G,Lc.call("_guiRelayout",e,be)}},clickFn:function(be,qe){var Ie=o.selectAll("g.traces").filter(function(){var ar=this.getBoundingClientRect();return qe.clientX>=ar.left&&qe.clientX<=ar.right&&qe.clientY>=ar.top&&qe.clientY<=ar.bottom});Ie.size()>0&&gT(e,t,Ie,be,qe)}})}}],e)}}function Zp(e,r,t){var n=e[0],a=n.width,i=r.entrywidthmode,o=n.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||a)}function gT(e,r,t,n,a){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:a,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),Lc.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=jp.triggerHandler(e,"plotly_legendclick",u);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&uT(t,e,r,l)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var v=jp.triggerHandler(e,"plotly_legenddoubleclick",u);v!==!1&&f!==!1&&s&&uT(t,e,r,s)}}function VW(e,r,t){var n=vv.getId(t),a=e.data()[0][0],i=a.trace,o=Lc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;a.groupTitle?(u=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?u=a.text:(u=o?a.label:i.name,i._meta&&(u=Qn.templateString(u,i._meta))));var v=Qn.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(ea.font,f).text(l?dT(u,s):u);var h=t.indentation+t.itemwidth+oa.itemGap*2;qc.positionText(v,h,0),l?v.call(qc.makeEditable,{gd:r,text:u}).call(Xp,e,r,t).on("edit",function(d){this.text(dT(d,s)).call(Xp,e,r,t);var m=a.trace._fullInput||{},p={};return p.name=d,m._isShape?Lc.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):Lc.call("_guiRestyle",r,p,i.index)}):Xp(v,e,r,t)}function dT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function WW(e,r,t){var n=r._context.doubleClickDelay,a,i=1,o=Qn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Y1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(i=Math.max(i-1,1)),gT(r,l,e,i,di.event)}}))}function ZW(e,r,t,n){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Lc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=Qn.ensureSingle(e,"rect",n+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Y1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:di.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(jp.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&fT(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,jp.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&fT(r,t,t.titledoubleclick))}))}function Xp(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),qc.convertToTspans(e,t,function(){XW(r,t,n,a)})}function XW(e,r,t,n){var a=e.data()[0][0],i=a&&a.trace.showlegend;if(Array.isArray(i)&&(i=i[a.i]!==!1),!t._inHover&&a&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=vv.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;n===fv?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var v=f.size*pT,h,d;if(l){var m=ea.bBox(l);h=m.height,d=m.width,n===fv?ea.setTranslate(o,u,u+h*.75):ea.setTranslate(o,0,h*.25)}else{var p="."+s+(n===fv?"title":"")+"text",y=e.select(p),_=qc.lineCount(y),C=y.node();if(h=v*_,d=C?ea.bBox(C).width:0,n===fv)t.title.side==="left"&&(d+=oa.itemGap*2),qc.positionText(y,u+oa.titlePad,u+v);else{var x=oa.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(x=oa.itemGap,d-=t.indentation+t.itemwidth),qc.positionText(y,x,-v*((_-1)/2-.3))}}n===fv?(t._titleWidth=d,t._titleHeight=h):(a.lineHeight=v,a.height=Math.max(h,16)+3,a.width=d)}function jW(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function JW(e,r,t,n,a){var i=e._fullLayout,o=vv.getId(n);n||(n=i[o]);var l=i._size,s=vv.isVertical(n),u=vv.isGrouped(n),f=n.entrywidthmode==="fraction",v=n.borderwidth,h=2*v,d=oa.itemGap,m=n.indentation+n.itemwidth+d*2,p=2*(v+d),y=$p(n),_=n.y<0||n.y===0&&y==="top",C=n.y>1||n.y===1&&y==="bottom",x=n.tracegroupgap,b={};let{orientation:A,yref:k}=n,{maxheight:M}=n,D=_||C||A!=="v"||k!=="paper";M||(M=D?.5:1);let R=D?i.height:l.h;n._maxHeight=Math.max(M>1?M:M*R,30);var N=0;n._width=0,n._height=0;var I=jW(n);if(s)t.each(function(be){var qe=be[0].height;ea.setTranslate(this,v+I[0],v+I[1]+n._height+qe/2+d),n._height+=qe,n._width=Math.max(n._width,be[0].width)}),N=m+n._width,n._width+=d+m+h,n._height+=p,u&&(r.each(function(be,qe){ea.setTranslate(this,0,qe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var W=Jp(n),O=n.x<0||n.x===0&&W==="right",Z=n.x>1||n.x===1&&W==="left",H=C||_,ee=i.width/2;n._maxWidth=Math.max(O?H&&W==="left"?l.l+l.w:ee:Z?H&&W==="right"?l.r+l.w:ee:l.w,2*m);var ie=0,re=0;t.each(function(be){var qe=Zp(be,n,m);ie=Math.max(ie,qe),re+=qe}),N=null;var K=0;if(u){var fe=0,le=0,ke=0;r.each(function(){var be=0,qe=0;di.select(this).selectAll("g.traces").each(function(ar){var Qe=Zp(ar,n,m),Be=ar[0].height;ea.setTranslate(this,I[0],I[1]+v+d+Be/2+qe),qe+=Be,be=Math.max(be,Qe),b[ar[0].trace.legendgroup]=be});var Ie=be+d;le>0&&Ie+v+le>n._maxWidth?(K=Math.max(K,le),le=0,ke+=fe+x,fe=qe):fe=Math.max(fe,qe),ea.setTranslate(this,le,ke),le+=Ie}),n._width=Math.max(K,le)+v,n._height=ke+fe+p}else{var Ne=t.size(),He=re+h+(Ne-1)*d=n._maxWidth&&(K=Math.max(K,ce),Ce=0,er+=Xe,n._height+=Xe,Xe=0),ea.setTranslate(this,I[0]+v+Ce,I[1]+v+er+qe/2+d),ce=Ce+Ie+d,Ce+=ar,Xe=Math.max(Xe,qe)}),He?(n._width=Ce+h,n._height=Xe+p):(n._width=Math.max(K,ce)+h,n._height+=Xe+p)}}n._width=Math.ceil(Math.max(n._width+I[0],n._titleWidth+2*(v+oa.titlePad))),n._height=Math.ceil(Math.max(n._height+I[1],n._titleHeight+2*(v+oa.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var ge=e._context.edits,Pe=ge.legendText||ge.legendPosition;t.each(function(be){var qe=di.select(this).select("."+o+"toggle"),Ie=be[0].height,ar=be[0].trace.legendgroup,Qe=Zp(be,n,m);u&&ar!==""&&(Qe=b[ar]);var Be=Pe?m:N||Qe;!s&&!f&&(Be+=d/2),ea.setRect(qe,0,-Ie/2,Be,Ie)});var de=a.select("."+o+"titletext");de.node()&&GW(de,n,v);var G=a.select("."+o+"titletoggle");if(G.size()&&de.node()){var Q=de.attr("x")||0,$=oa.titlePad;ea.setRect(G,Q-$,v,n._titleWidth+2*$,n._titleHeight+2*$)}}function $W(e,r,t,n){var a=e._fullLayout,i=a[r],o=Jp(i),l=$p(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:a.width-t,l:t+i._width,b:a.height-n,t:n+i._effHeight};if(s&&u)return n5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*cv[o],r:i._width*cT[o],b:i._effHeight*cT[l],t:i._effHeight*cv[l]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function Jp(e){return Qn.isRightAnchor(e)?"right":Qn.isCenterAnchor(e)?"center":"left"}function $p(e){return Qn.isBottomAnchor(e)?"bottom":Qn.isMiddleAnchor(e)?"middle":"top"}});var u5=te(s5=>{"use strict";var Dc=kt(),iu=Ht(),yT=es(),Hn=gr(),KW=Hn.pushUnique,o5=Hn.strTranslate,QW=Hn.strRotate,eZ=w1(),Co=ei(),rZ=UA(),fs=cn(),Ma=Rt(),Kp=ko(),cs=qn(),tZ=xa().zindexSeparator,dv=dt(),wl=$u(),Ec=f1(),nZ=G3(),aZ=i5(),kT=Ec.YANGLE,l5=Math.PI*kT/180,iZ=1/Math.sin(l5),oZ=Math.cos(l5),lZ=Math.sin(l5),Sn=Ec.HOVERARROWSIZE,zt=Ec.HOVERTEXTPAD,bT={box:!0,ohlc:!0,violin:!0,candlestick:!0},sZ={scatter:!0,scattergl:!0,splom:!0};function _T(e,r){return e.distance-r.distance}s5.hover=function(r,t,n,a){r=Hn.getGraphDiv(r);var i=t.target;Hn.throttle(r._fullLayout._uid+Ec.HOVERID,Ec.HOVERMINTIME,function(){uZ(r,t,n,a,i)})};s5.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,i=DT(a),o=ET(a),l=r.map(function(y){var _=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var k=Math.min(_,C),M=Math.max(_,C),D=Math.min(x,b),R=Math.max(x,b),N=y.trace;if(dv.traceIs(N,"gl3d")){var I=a._fullLayout[N.scene]._scene.container,W=I.offsetLeft,O=I.offsetTop;k+=W,M+=W,D+=O,R+=O}A.bbox={x0:k+o,x1:M+o,y0:D+i,y1:R+i},A.xPixel=(_+C)/2,A.yPixel=(x+b)/2,t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||Ma.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=CT(l,{gd:a,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ma.background,container:Dc.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(y,_){return y.y0-_.y0}).each(function(y,_){var C=y.y0-y.by/2;C-vM[0]._length||$<0||$>D[0]._length)return Kp.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=$+D[0]._offset,"xval"in r?ee=wl.flat(i,r.xval):ee=wl.p2c(M,Q),"yval"in r?ie=wl.flat(i,r.yval):ie=wl.p2c(D,$),!iu(ee[0])||!iu(ie[0]))return Hn.warn("Fx.hover failed",r,e),Kp.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=ee,e._hoverYVals=ie,e._hoverXAxes=M,e._hoverYAxes=D);var Ie=1/0;function ar(Gr,on){for(K=0;Kce&&(Z.splice(0,ce),Ie=Z[0].distance),v&&O!==0&&Z.length===0){er.distance=O,er.index=!1;var Yt=le._module.hoverPoints(er,Xe,Ce,"closest",{hoverLayer:l._hoverlayer});if(Yt&&(Yt=Yt.filter(function(ta){return ta.spikeDistance<=O})),Yt&&Yt.length){var ga,ma=Yt.filter(function(ta){return ta.xa.showspikes&&ta.xa.spikesnap!=="hovered data"});if(ma.length){var wn=ma[0];iu(wn.x0)&&iu(wn.y0)&&(ga=Be(wn),(!ge.vLinePoint||ge.vLinePoint.spikeDistance>ga.spikeDistance)&&(ge.vLinePoint=ga))}var Qt=Yt.filter(function(ta){return ta.ya.showspikes&&ta.ya.spikesnap!=="hovered data"});if(Qt.length){var An=Qt[0];iu(An.x0)&&iu(An.y0)&&(ga=Be(An),(!ge.hLinePoint||ge.hLinePoint.spikeDistance>ga.spikeDistance)&&(ge.hLinePoint=ga))}}}}}ar();function Qe(Gr,on,Pt){for(var tn=null,zn=1/0,Wn,Yt=0;YtGr.trace.index===Ze.trace.index):Z=[Ze];var dr=Z.length,Ar=TT("x",Ze,l),mr=TT("y",Ze,l);ar(Ar,mr);var br=[],Ir={},Cr=0,Er=function(Gr){var on=bT[Gr.trace.type]?ST(Gr):Gr.trace.index;if(!Ir[on])Cr++,Ir[on]=Cr,br.push(Gr);else{var Pt=Ir[on]-1,tn=br[Pt];Pt>0&&Math.abs(Gr.distance)dr-1;lr--)Er(Z[lr]);Z=br,Je()}var xe=e._hoverdata,Ae=[],Ke=DT(e),nr=ET(e);for(let Gr of Z){var Sr=wl.makeEventData(Gr,Gr.trace,Gr.cd);if(Gr.hovertemplate!==!1){var Yr=!1;Gr.cd[Gr.index]&&Gr.cd[Gr.index].ht&&(Yr=Gr.cd[Gr.index].ht),Gr.hovertemplate=Yr||Gr.trace.hovertemplate||!1}if(Gr.xa&&Gr.ya){var zr=Gr.x0+Gr.xa._offset,st=Gr.x1+Gr.xa._offset,bt=Gr.y0+Gr.ya._offset,St=Gr.y1+Gr.ya._offset,$t=Math.min(zr,st),vn=Math.max(zr,st),hn=Math.min(bt,St),Ln=Math.max(bt,St);Sr.bbox={x0:$t+nr,x1:vn+nr,y0:hn+Ke,y1:Ln+Ke},Sr.xPixel=(zr+st)/2,Sr.yPixel=(bt+St)/2}Gr.eventData=[Sr],Ae.push(Sr)}e._hoverdata=Ae;var Ut=h==="y"&&(H.length>1||Z.length>1)||h==="closest"&&Pe&&Z.length>1,en=Ma.combine(l.plot_bgcolor||Ma.background,l.paper_bgcolor),Kt=CT(Z,{gd:e,hovermode:h,rotateLabels:Ut,bgColor:en,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),rn=Kt.hoverLabels;if(wl.isUnifiedHover(h)||(cZ(rn,Ut,l,Kt.commonLabelBoundingBox),qT(rn,Ut,l._invScaleX,l._invScaleY)),a&&a.tagName){var la=dv.getComponentMethod("annotations","hasClickToShow")(e,Ae);rZ(Dc.select(a),la?"pointer":"")}var xn=dZ(e,r,xe);if(!a||n||!xn&&!l.hoveranywhere)return;xe&&xn&&e.emit("plotly_unhover",{event:r,points:xe}),On(e._hoverdata);function On(Gr){e.emit("plotly_hover",{event:r,points:Gr,xaxes:M,yaxes:D,xvals:ee,yvals:ie})}}function ST(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var fZ=/([\s\S]*)<\/extra>/;function CT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Ec.HOVERFONT,v=r.fontSize||Ec.HOVERFONTSIZE,h=r.fontWeight||n.font.weight,d=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,p=r.fontTextcase||n.font.textcase,y=r.fontLineposition||n.font.lineposition,_=r.fontShadow||n.font.shadow,C=e[0],x=C.xa,b=C.ya,A=a.charAt(0),k=A+"Label",M=C[k];if(M===void 0&&x.type==="multicategory")for(var D=0;Dn.width-Ae&&(Ke=n.width-Ae),Ye.attr("d","M"+(Er-Ke)+",0L"+(Er-Ke+Sn)+","+xe+Sn+"H"+Ae+"v"+xe+(zt*2+Cr.height)+"H"+-Ae+"V"+xe+Sn+"H"+(Er-Ke-Sn)+"Z"),Er=Ke,K.minX=Er-Ae,K.maxX=Er+Ae,x.side==="top"?(K.minY=lr-(zt*2+Cr.height),K.maxY=lr-zt):(K.minY=lr+zt,K.maxY=lr+(zt*2+Cr.height))}else{var nr,Sr,Yr;b.side==="right"?(nr="start",Sr=1,Yr="",Er=x._offset+x._length):(nr="end",Sr=-1,Yr="-",Er=x._offset),lr=b._offset+(C.y0+C.y1)/2,Ze.attr("text-anchor",nr),Ye.attr("d","M0,0L"+Yr+Sn+","+Sn+"V"+(zt+Cr.height/2)+"h"+Yr+(zt*2+Cr.width)+"V-"+(zt+Cr.height/2)+"H"+Yr+Sn+"V-"+Sn+"Z"),K.minY=lr-(zt+Cr.height/2),K.maxY=lr+(zt+Cr.height/2),b.side==="right"?(K.minX=Er+Sn,K.maxX=Er+Sn+(zt*2+Cr.width)):(K.minX=Er-Sn-(zt*2+Cr.width),K.maxX=Er-Sn);var zr=Cr.height/2,st=N-Cr.top-zr,bt="clip"+n._uid+"commonlabel"+b._id,St;if(ErYe.hoverinfo!=="none");if(tr.length===0)return[];var fe=n.hoverlabel,le=fe.font,ke=tr[0],Ne=((a==="x unified"?ke.xa:ke.ya).unifiedhovertitle||{}).text,He=Ne?Hn.hovertemplateString({data:a==="x unified"?[{xa:ke.xa,x:ke.xVal}]:[{ya:ke.ya,y:ke.yVal}],fallback:ke.trace.hovertemplatefallback,locale:n._d3locale,template:Ne}):M,Xe={showlegend:!0,legend:{title:{text:He,font:le},font:le,bgcolor:fe.bgcolor,bordercolor:fe.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},Ce={font:le};nZ(Xe,Ce,t._fullData);var er=Ce.legend;er.entries=[];for(var ce=0;ce=0?Ue=Je:pr+qe=0?Ue=pr:yr+qe=0?kr=or:hr+Ie=0?kr=hr:Te+Ie=0,(tr.idealAlign==="top"||!hn)&&Ln?(Yr-=st/2,tr.anchor="end"):hn?(Yr+=st/2,tr.anchor="start"):tr.anchor="middle",tr.crossPos=Yr;else{if(tr.pos=Yr,hn=Sr+zr/2+vn<=I,Ln=Sr-zr/2-vn>=0,(tr.idealAlign==="left"||!hn)&&Ln)Sr-=zr/2,tr.anchor="end";else if(hn)Sr+=zr/2,tr.anchor="start";else{tr.anchor="middle";var Ut=vn/2,en=Sr+Ut-I,Kt=Sr-Ut;en>0&&(Sr-=en),Kt<0&&(Sr+=-Kt)}tr.crossPos=Sr}lr.attr("text-anchor",tr.anchor),Ae&&xe.attr("text-anchor",tr.anchor),Ye.attr("transform",o5(Sr,Yr)+(i?QW(kT):""))}),{hoverLabels:Ur,commonLabelBoundingBox:K}}function xT(e,r,t,n,a,i){var v,h;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Hn.templateString(e.name,e.trace._meta)),o=AT(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===a?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(h=(v=e.trace)==null?void 0:v.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==a&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=Hn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:n._d3locale,template:f}),l=l.replace(fZ,(m,p)=>(o=AT(p,e.nameLength),""))}return[l,o]}function cZ(e,r,t,n){var a=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,v=n.minX,h=n.maxX,d=n.minY,m=n.maxY,p=function(ee){return ee*t._invScaleX},y=function(ee){return ee*t._invScaleY};e.each(function(ee){var ie=ee[a],re=ee[i],K=ie._id.charAt(0)==="x",fe=ie.range;f===0&&fe&&fe[0]>fe[1]!==K&&(l=-1);var le=0,ke=K?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ne=LT(ee,r),He=ee.anchor,Xe=He==="end"?-1:1,Ce,er;if(He==="middle")Ce=ee.crossPos+(K?y(Ne.y-ee.by/2):p(ee.bx/2+ee.tx2width/2)),er=Ce+(K?y(ee.by):p(ee.bx));else if(K)Ce=ee.crossPos+y(Sn+Ne.y)-y(ee.by/2-Sn),er=Ce+y(ee.by);else{var ce=p(Xe*Sn+Ne.x),ge=ce+p(Xe*ee.bx);Ce=ee.crossPos+Math.min(ce,ge),er=ee.crossPos+Math.max(ce,ge)}K?d!==void 0&&m!==void 0&&Math.min(er,m)-Math.max(Ce,d)>1&&(re.side==="left"?(le=re._mainLinePosition,ke=t.width):ke=re._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(er,h)-Math.max(Ce,v)>1&&(re.side==="top"?(le=re._mainLinePosition,ke=t.height):ke=re._mainLinePosition)}u[f++]=[{datum:ee,traceIndex:ee.trace.index,dp:0,pos:ee.pos,posref:ee.posref,size:ee.by*(K?iZ:1)/2,pmin:le,pmax:ke}]}),u.sort(function(ee,ie){return ee[0].posref-ie[0].posref||l*(ie[0].traceIndex-ee[0].traceIndex)});var _,C,x,b,A,k,M;function D(ee){var ie=ee[0],re=ee[ee.length-1];if(C=ie.pmin-ie.pos-ie.dp+ie.size,x=re.pos+re.dp+re.size-ie.pmax,C>.01){for(A=ee.length-1;A>=0;A--)ee[A].dp+=C;_=!1}if(!(x<.01)){if(C<-.01){for(A=ee.length-1;A>=0;A--)ee[A].dp-=x;_=!1}if(_){var K=0;for(b=0;bie.pmax&&K++;for(b=ee.length-1;b>=0&&!(K<=0);b--)k=ee[b],k.pos>ie.pmax-1&&(k.del=!0,K--);for(b=0;b=0;A--)ee[A].dp-=x;for(b=ee.length-1;b>=0&&!(K<=0);b--)k=ee[b],k.pos+k.dp+k.size>ie.pmax&&(k.del=!0,K--)}}}for(;!_&&o<=s;){for(o++,_=!0,b=0;b.01){for(A=N.length-1;A>=0;A--)N[A].dp+=C;for(R.push.apply(R,N),u.splice(b+1,1),M=0,A=R.length-1;A>=0;A--)M+=R[A].dp;for(x=M/R.length,A=R.length-1;A>=0;A--)R[A].dp-=x;_=!1}else b++}u.forEach(D)}for(b=u.length-1;b>=0;b--){var O=u[b];for(A=O.length-1;A>=0;A--){var Z=O[A],H=Z.datum;H.offset=Z.dp,H.del=Z.del}}}function LT(e,r){var t=0,n=e.offset;return r&&(n*=-lZ,t=e.offset*oZ),{x:t,y:n}}function vZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Sn+zt),n=t+r*(e.txwidth+zt),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+zt),{alignShift:r,textShiftX:t,text2ShiftX:n}}function qT(e,r,t,n){var a=function(o){return o*t},i=function(o){return o*n};e.each(function(o){var l=Dc.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,v=vZ(o),h=LT(o,r),d=h.x,m=h.y,p=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,_;p?_="M-"+a(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+a(o.bx)+"v"+i(o.by)+"h-"+a(o.bx)+"Z":y?_="M0,0L"+a(f*Sn+d)+","+i(Sn+m)+"v"+i(o.by/2-Sn)+"h"+a(f*o.bx)+"v-"+i(o.by)+"H"+a(f*Sn+d)+"V"+i(m-Sn)+"Z":_="M"+a(f*Sn+d)+","+i(m-o.by/2)+"h"+a(f*o.bx)+"v"+i(o.by)+"h"+a(-f*o.bx)+"Z",l.select("path").attr("d",_);var C=d+v.textShiftX,x=m+o.ty0-o.by/2+zt,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+zt:-o.bx-zt):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-zt:o.bx+zt)),s.call(Co.positionText,a(C),i(x)),o.tx2width&&(l.select("text.name").call(Co.positionText,a(v.text2ShiftX+v.alignShift*zt+d),i(m+o.ty0-o.by/2+zt)),l.select("rect").call(fs.setRect,a(v.text2ShiftX+(v.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),a(o.tx2width),i(o.by+2)))})}function hZ(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],i=e.cd[t]||{};function o(h){return h||iu(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=Hn.castOption(a,t,h);return o(m)?m:Hn.extractOption({},n,"",d)}:function(h,d){return Hn.extractOption(i,n,h,d)};function s(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Hn.constrain(e.x0,0,e.xa._length),e.x1=Hn.constrain(e.x1,0,e.xa._length),e.y0=Hn.constrain(e.y0,0,e.ya._length),e.y1=Hn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:cs.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:cs.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=cs.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+cs.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=cs.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+cs.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function wT(e,r,t){var n=t.container,a=t.fullLayout,i=a._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(n.selectAll(".spikeline").remove(),!!(s||l)){var v=Ma.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=yT.readability(h.color,v)<1.5?Ma.contrast(v):h.color,_=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,b=cs.getPxPosition(e,f),A,k;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(A=b,k=d),_.indexOf("across")!==-1){var M=f._counterDomainMin,D=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),D=Math.max(D,f.position)),A=i.l+M*i.w,k=i.l+D*i.w}n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":fs.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(s){var R=r.vLinePoint,N,I;u=R&&R.xa,f=R&&R.ya;var W=u.spikesnap;W==="cursor"?(N=o.pointerX,I=o.pointerY):(N=u._offset+R.x,I=f._offset+R.y);var O=yT.readability(R.color,v)<1.5?Ma.contrast(v):R.color,Z=u.spikemode,H=u.spikethickness,ee=u.spikecolor||O,ie=cs.getPxPosition(e,u),re,K;if(Z.indexOf("toaxis")!==-1||Z.indexOf("across")!==-1){if(Z.indexOf("toaxis")!==-1&&(re=ie,K=I),Z.indexOf("across")!==-1){var fe=u._counterDomainMin,le=u._counterDomainMax;u.anchor==="free"&&(fe=Math.min(fe,u.position),le=Math.max(le,u.position)),re=i.t+(1-le)*i.h,K=i.t+(1-fe)*i.h}n.insert("line",":first-child").attr({x1:N,x2:N,y1:re,y2:K,"stroke-width":H,stroke:ee,"stroke-dasharray":fs.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:N,x2:N,y1:re,y2:K,"stroke-width":H+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}Z.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:N,cy:ie-(u.side!=="top"?H:-H),r:H,fill:ee}).classed("spikeline",!0)}}}function dZ(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers)||a.binNumber!==i.binNumber)return!0}return!1}function MT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function AT(e,r){return Co.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function pZ(e,r){for(var t=r.charAt(0),n=[],a=[],i=[],o=0;oe.offsetTop+e.clientTop,ET=e=>e.offsetLeft+e.clientLeft;function hv(e,r){var t=e._fullLayout,n=r.getBoundingClientRect(),a=n.left,i=n.top,o=a+n.width,l=i+n.height,s=Hn.apply3DTransform(t._invTransform)(a,i),u=Hn.apply3DTransform(t._invTransform)(o,l),f=s[0],v=s[1],h=u[0],d=u[1];return{x:f,y:v,width:h-f,height:d-v,top:Math.min(v,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(v,d)}}});var Qp=te((zfe,PT)=>{"use strict";var gZ=gr(),mZ=Rt(),yZ=$u().isUnifiedHover;PT.exports=function(r,t,n,a){a=a||{};var i=t.legend;function o(l){a.font[l]||(a.font[l]=i?t.legend.font[l]:t.font[l])}t&&yZ(t.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(a.bgcolor||(a.bgcolor=mZ.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),gZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var zT=te((Nfe,RT)=>{"use strict";var bZ=gr(),_Z=Qp(),xZ=E0();RT.exports=function(r,t){function n(a,i){return bZ.coerce(r,t,xZ,a,i)}_Z(r,t,n)}});var IT=te((Ffe,FT)=>{"use strict";var NT=gr(),wZ=Md(),MZ=Qp();FT.exports=function(r,t,n,a){function i(l,s){return NT.coerce(r,t,wZ,l,s)}var o=NT.extendFlat({},a.hoverlabel);t.hovertemplate&&(o.namelength=-1),MZ(r,t,i,o)}});var f5=te((Ife,HT)=>{"use strict";var AZ=gr(),TZ=E0();HT.exports=function(r,t){function n(a,i){return t[a]!==void 0?t[a]:AZ.coerce(r,t,TZ,a,i)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var UT=te((Hfe,OT)=>{"use strict";var BT=gr(),kZ=E0(),SZ=f5(),CZ=Qp();OT.exports=function(r,t){function n(f,v){return BT.coerce(r,t,kZ,f,v)}var a=SZ(r,t);a&&(n("hoverdistance"),n("spikedistance"),a.indexOf("unified")!==-1&&n("hoversort"));var i=n("dragmode");i==="select"&&n("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),CZ(r,t,n),BT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var VT=te((Bfe,GT)=>{"use strict";var c5=gr(),YT=dt();GT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(u){return function(f){return c5.coerceHoverinfo({hoverinfo:f},{_module:u._module},n)}}for(var i=0;i{"use strict";var qZ=dt(),DZ=u5().hover;WT.exports=function(r,t,n){var a=qZ.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;n!==void 0&&DZ(r,t,n,!0);function o(){var s,u,f,v;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals),(v=l.yvals)!=null||(l.yvals=r._hoverYVals),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),a&&a.then?a.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Ml=te((Ufe,JT)=>{"use strict";var EZ=kt(),eg=gr(),PZ=ko(),G1=$u(),XT=E0(),jT=u5();JT.exports={moduleType:"component",name:"fx",constants:f1(),schema:{layout:XT},attributes:Md(),layoutAttributes:XT,supplyLayoutGlobalDefaults:zT(),supplyDefaults:IT(),supplyLayoutDefaults:UT(),calc:VT(),getDistanceFunction:G1.getDistanceFunction,getClosest:G1.getClosest,inbox:G1.inbox,quadrature:G1.quadrature,appendArrayPointValue:G1.appendArrayPointValue,castHoverOption:zZ,castHoverinfo:NZ,hover:jT.hover,unhover:PZ.unhover,loneHover:jT.loneHover,loneUnhover:RZ,click:ZT()};function RZ(e){var r=eg.isD3Selection(e)?e:EZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function zZ(e,r,t){return eg.castOption(e,r,"hoverlabel."+t)}function NZ(e,r,t){function n(a){return eg.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return eg.castOption(e,t,"hoverinfo",n)}});var pv=te(ou=>{"use strict";ou.selectMode=function(e){return e==="lasso"||e==="select"};ou.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ou.openMode=function(e){return e==="drawline"||e==="drawopenpath"};ou.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ou.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};ou.selectingOrDrawing=function(e){return ou.freeMode(e)||ou.rectMode(e)}});var rg=te((Gfe,$T)=>{"use strict";$T.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var tg=te((Vfe,KT)=>{"use strict";KT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ag=te((Wfe,QT)=>{"use strict";var ng=32;QT.exports={CIRCLE_SIDES:ng,i000:0,i090:ng/4,i180:ng/2,i270:ng/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var ig=te((Zfe,rk)=>{"use strict";var FZ=gr().strTranslate;function ek(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function IZ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function HZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return ek(e,t[r])}}function BZ(e){return FZ(e.xaxis._offset,e.yaxis._offset)}rk.exports={p2r:ek,r2p:IZ,axValue:HZ,getTransform:BZ}});var lf=te(lu=>{"use strict";var OZ=$2(),ak=ag(),gv=ak.CIRCLE_SIDES,v5=ak.SQRT2,ik=ig(),tk=ik.p2r,nk=ik.r2p,UZ=[0,3,4,5,6,1,2],YZ=[0,3,4,1,2];lu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&s{"use strict";var ok=va(),ck=pv(),GZ=ck.drawMode,VZ=ck.openMode,mv=ag(),lk=mv.i000,sk=mv.i090,uk=mv.i180,fk=mv.i270,WZ=mv.cos45,ZZ=mv.sin45,vk=ig(),lg=vk.p2r,sf=vk.r2p,XZ=ju(),jZ=XZ.clearOutline,sg=lf(),JZ=sg.readPaths,$Z=sg.writePaths,KZ=sg.ellipseOver,QZ=sg.fixDatesForPaths;function eX(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,i=r.dragmode,o=(n.layout||{}).shapes||[];if(!GZ(i)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var rX=pv(),tX=rX.selectMode,nX=ju(),aX=nX.clearOutline,h5=lf(),iX=h5.readPaths,oX=h5.writePaths,lX=h5.fixDatesForPaths;pk.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!tX(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";gk.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var ff=te(La=>{"use strict";var hs=W1(),mk=gr(),uf=qn();La.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};La.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};La.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};La.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};La.extractPathCoords=function(e,r,t){var n=[],a=e.match(hs.segmentRE);return a.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(hs.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=a[l].drawn!==void 0;return i+(s?1:0)},0)};La.getDataToPixel=function(e,r,t,n,a){var i=e._fullLayout._size,o;if(r)if(a==="domain")o=function(s){return r._length*(n?1-s:s)+r._offset};else{var l=La.shapePositionToRange(r);o=function(s){var u=vs(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=La.decodeDate(o))}else n?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};La.getPixelToData=function(e,r,t,n){var a=e._fullLayout._size,i;if(r)if(n==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=La.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-a.t)/a.h}:i=function(l){return(l-a.l)/a.w};return i};La.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};La.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&t.xref!=="paper"&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(n.yaxis=e._fullLayout[t.yref+"axis"])),n.xsizemode=t.xsizemode,n.ysizemode=t.ysizemode,n.xanchor=t.xanchor,n.yanchor=t.yanchor,{options:t,plotinfo:n}};La.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(n.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:n}};La.getPathString=function(e,r){let t=r.type,n=uf.getRefType(r.xref),a=uf.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,v,h,d,m,p,y,_;function C(N,I,W,O){var Z;if(N)if(I==="domain")O?Z=function(H){return N._offset+N._length*(1-H)}:Z=function(H){return N._offset+N._length*H};else{let H=La.shapePositionToRange(N);Z=function(ee){return N._offset+N.r2p(H(ee,!0))},W==="path"&&N.type==="date"&&(Z=La.decodeDate(Z))}else O?Z=function(H){return i.t+i.h*(1-H)}:Z=function(H){return i.l+i.w*H};return Z}if(n==="array"?(h=[],o=r.xref.map(function(N){return uf.getFromId(e,N)}),h=r.xref.map(function(N,I){return C(o[I],uf.getRefType(N),t,!1)})):(o=uf.getFromId(e,r.xref),h=C(o,n,t,!1)),a==="array"?(d=[],l=r.yref.map(function(N){return uf.getFromId(e,N)}),d=r.yref.map(function(N,I){return C(l[I],uf.getRefType(N),t,!0)})):(l=uf.getFromId(e,r.yref),d=C(l,a,t,!0)),t==="path")return sX(r,h,d);if(n==="array")s=vs(o[0],r.x0shift),u=vs(o[1],r.x1shift),m=h[0](r.x0)+s,p=h[1](r.x1)+u;else if(s=vs(o,r.x0shift),u=vs(o,r.x1shift),r.xsizemode==="pixel"){let N=h(r.xanchor);m=N+r.x0+s,p=N+r.x1+u}else m=h(r.x0)+s,p=h(r.x1)+u;if(a==="array")f=vs(l[0],r.y0shift),v=vs(l[1],r.y1shift),y=d[0](r.y0)+f,_=d[1](r.y1)+v;else if(f=vs(l,r.y0shift),v=vs(l,r.y1shift),r.ysizemode==="pixel"){let N=d(r.yanchor);y=N-r.y0+f,_=N-r.y1+v}else y=d(r.y0)+f,_=d(r.y1)+v;if(t==="line")return"M"+m+","+y+"L"+p+","+_;if(t==="rect")return"M"+m+","+y+"H"+p+"V"+_+"H"+m+"Z";var x=(m+p)/2,b=(y+_)/2,A=Math.abs(x-m),k=Math.abs(b-y),M="A"+A+","+k,D=x+A+","+b,R=x+","+(b-k);return"M"+D+M+" 0 1,1 "+R+M+" 0 0,1 "+D+"Z"};function sX(e,r,t){let n=e.path,a=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,v=0;return n.replace(hs.segmentRE,function(h){var d=0,m=h.charAt(0),p=hs.paramIsX[m],y=hs.paramIsY[m],_=hs.numParams[m];let C=p.drawn!==void 0,x=y.drawn!==void 0,b=s?r[f]:r,A=u?t[v]:t;var k=h.slice(1).replace(hs.paramRE,function(M){return p[d]?a==="pixel"?M=b(o)+Number(M):M=b(M):y[d]&&(i==="pixel"?M=A(l)-Number(M):M=A(M)),d++,d>_&&(M="X"),M});return d>_&&(k=k.replace(/[\s,]*X.*/,""),mk.log("Ignoring extra params in segment "+h)),C&&f++,x&&v++,m+k})}La.getPixelShift=vs;function vs(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var p5=te((Qfe,_k)=>{"use strict";var uX=gr(),ds=qn(),yk=ei(),bk=cn(),fX=lf().readPaths,Pc=ff(),cX=Pc.getPathString,Z1=Ed(),vX=Oa().FROM_TL;_k.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var i;if(n.label.texttemplate){var o={};if(n.type!=="path"){var l=ds.getFromId(r,n.xref),s=ds.getFromId(r,n.yref);let le=Array.isArray(n.xref),ke=Array.isArray(n.yref);for(var u in Z1){var f=typeof Z1[u]=="function",v=!le||Z1.simpleXVariables.includes(u),h=!ke||Z1.simpleYVariables.includes(u);if(f&&v&&h){var d=Z1[u](n,l,s);d!==void 0&&(o[u]=d)}}}i=uX.texttemplateStringForShapes({data:[o],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else i=n.label.text;var m={"data-index":t},p=n.label.font,y={"data-notex":1},_=a.append("g").attr(m).classed("shape-label",!0),C=_.append("text").attr(y).classed("shape-label-text",!0).text(i),x,b,A,k;if(n.path){var M=cX(r,n),D=fX(M,r);x=1/0,A=1/0,b=-1/0,k=-1/0;for(var R=0;RPc.getDataToPixel(r,be,$,!1,qe)(Q),G=(Q,$,be,qe)=>Pc.getDataToPixel(r,be,$,!0,qe)(Q);if(n.xsizemode==="pixel"){let Q=de(n.xanchor,void 0,Ne,er),$=Pc.getPixelShift(Ne,n.x0shift),be=Pc.getPixelShift(Ne,n.x1shift);x=Q+n.x0+$,b=Q+n.x1+be}else x=de(n.x0,n.x0shift,Ne,er),b=de(n.x1,n.x1shift,He,ce);if(n.ysizemode==="pixel"){let Q=G(n.yanchor,void 0,Xe,ge),$=Pc.getPixelShift(Xe,n.y0shift),be=Pc.getPixelShift(Xe,n.y1shift);A=Q-n.y0+$,k=Q-n.y1+be}else A=G(n.y0,n.y0shift,Xe,ge),k=G(n.y1,n.y1shift,Ce,Pe)}var H=n.label.textangle;H==="auto"&&(n.type==="line"?H=hX(x,A,b,k):H=0),C.call(function(le){return le.call(bk.font,p).attr({}),yk.convertToTspans(le,r),le});var ee=bk.bBox(C.node()),ie=dX(x,A,b,k,n,H,ee),re=ie.textx,K=ie.texty,fe=ie.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[fe],y:K,x:re,transform:"rotate("+H+","+re+","+K+")"}).call(yk.positionText,re,K)}};function hX(e,r,t,n){var a,i;return i=Math.abs(t-e),t>=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,i)}function dX(e,r,t,n,a,i,o){var l=a.label.textposition,s=a.label.textangle,u=a.label.padding,f=a.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=a.label.xanchor,p=a.label.yanchor,y,_,C,x;if(f==="line"){l==="start"?(y=e,_=r):l==="end"?(y=t,_=n):(y=(e+t)/2,_=(r+n)/2),m==="auto"&&(l==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var pX=gr(),gX=pX.strTranslate,xk=ko(),Ak=pv(),mX=Ak.drawMode,Tk=Ak.selectMode,kk=dt(),wk=Rt(),cg=ag(),yX=cg.i000,bX=cg.i090,_X=cg.i180,xX=cg.i270,wX=ju(),Sk=wX.clearOutlineControllers,m5=lf(),fg=m5.pointsOnRectangle,g5=m5.pointsOnEllipse,MX=m5.writePaths,AX=ug().newShapes,TX=ug().createShapeObj,kX=d5(),SX=p5();Ck.exports=function e(r,t,n,a){a||(a=0);var i=n.gd;function o(){e(r,t,n,a++),(g5(r[0])||n.hasText)&&l({redrawing:!0})}function l(ie){var re={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,re=AX(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,re=kX(t,n),i._fullLayout._reselect=!0),Object.keys(re).length&&kk.call((ie||{}).redrawing?"relayout":"_guiRelayout",i,re)}var s=i._fullLayout,u=s._zoomlayer,f=n.dragmode,v=mX(f),h=Tk(f);(v||h)&&(i._fullLayout._outlining=!0),Sk(i),t.attr("d",MX(r));var d,m,p,y,_;if(!a&&(n.isActiveShape||n.isActiveSelection)){_=CX([],r);var C=u.append("g").attr("class","outline-controllers");N(C),ee()}if(v&&n.hasText){var x=u.select(".label-temp"),b=TX(t,n,n.dragmode);SX(i,"label-temp",b,x)}function A(ie){p=+ie.srcElement.getAttribute("data-i"),y=+ie.srcElement.getAttribute("data-j"),d[p][y].moveFn=k}function k(ie,re){if(r.length){var K=_[p][y][1],fe=_[p][y][2],le=r[p],ke=le.length;if(fg(le)){var Ne=ie,He=re;if(n.isActiveSelection){var Xe=Mk(le,y);Xe[1]===le[y][1]?He=0:Ne=0}for(var Ce=0;Ce1&&!(ie.length===2&&ie[1][0]==="Z")&&(y===0&&(ie[0][0]="M"),r[p]=ie,o(),l())}}function R(ie,re){if(ie===2){p=+re.srcElement.getAttribute("data-i"),y=+re.srcElement.getAttribute("data-j");var K=r[p];!fg(K)&&!g5(K)&&D()}}function N(ie){d=[];for(var re=0;re{"use strict";var qX=kt(),Rk=dt(),b5=gr(),Rc=qn(),DX=lf().readPaths,EX=vg(),dg=p5(),zk=ju().clearOutlineControllers,y5=Rt(),pg=cn(),PX=yn().arrayEditor,Lk=ko(),qk=Ml(),Dk=af(),zc=W1(),Ni=ff(),_5=Ni.getPathString;Ik.exports={draw:x5,drawOne:Nk,eraseActiveShape:IX,drawLabel:dg};function x5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=a(i);o&&qk.hover(e,o,t.id)}}),n.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=a(i);o&&qk.click(e,o,t.id)}})}function Fk(e,r,t){let n=t.xref,a=t.yref;if(Array.isArray(n)||Array.isArray(a)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=zX(r,n,a);b5.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),pg.setClipUrl(e,i,r)}else{let i=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");pg.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function zX(e,r,t){let n=e._fullLayout._size;function a(l,s){let u=(Array.isArray(l)?l:[l]).map(h=>Rc.getFromId(e,h)).filter(Boolean);if(!u.length)return s?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=u.map(function(h){return h._offset}),v=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...v)]}let i=a(r,!1),o=a(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function NX(e,r,t,n,a,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",v=t.type==="path",h=i.modifyItem,d,m,p,y,_,C,x,b,A,k,M,D,R,N,I,W=qX.select(r.node().parentNode),O=Rc.getFromId(e,t.xref),Z=Rc.getRefType(t.xref),H=Rc.getFromId(e,t.yref),ee=Rc.getRefType(t.yref),ie=t.x0shift,re=t.x1shift,K=t.y0shift,fe=t.y1shift,le=function(Qe,Be){var cr=Ni.getDataToPixel(e,O,Be,!1,Z);return cr(Qe)},ke=function(Qe,Be){var cr=Ni.getDataToPixel(e,H,Be,!0,ee);return cr(Qe)},Ne=Ni.getPixelToData(e,O,!1,Z),He=Ni.getPixelToData(e,H,!0,ee),Xe=ce(),Ce={element:Xe.node(),gd:e,prepFn:de,doneFn:G,clickFn:Q},er;Lk.init(Ce),Xe.node().onmousemove=Pe;function ce(){return f?ge():r}function ge(){var Qe=10,Be=Math.max(t.line.width,Qe),cr=a.append("g").attr("data-index",n).attr("drag-helper",!0);cr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Be,"stroke-opacity":"0"});var or={"fill-opacity":"0"},hr=Math.max(Be/2,Qe);return cr.append("circle").attr({"data-line-point":"start-point",cx:s?le(t.xanchor)+t.x0:le(t.x0,ie),cy:u?ke(t.yanchor)-t.y0:ke(t.y0,K),r:hr}).style(or).classed("cursor-grab",!0),cr.append("circle").attr({"data-line-point":"end-point",cx:s?le(t.xanchor)+t.x1:le(t.x1,re),cy:u?ke(t.yanchor)-t.y1:ke(t.y1,fe),r:hr}).style(or).classed("cursor-grab",!0),cr}function Pe(Qe){if(hg(e)){er=null;return}if(f)Qe.target.tagName==="path"?er="move":er=Qe.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Be=Ce.element.getBoundingClientRect(),cr=Be.right-Be.left,or=Be.bottom-Be.top,hr=Qe.clientX-Be.left,Je=Qe.clientY-Be.top,pr=!v&&cr>o&&or>l&&!Qe.shiftKey?Lk.getCursor(hr/cr,1-Je/or):"move";Dk(r,pr),er=pr.split("-")[0]}}function de(Qe){hg(e)||(s&&(_=le(t.xanchor)),u&&(C=ke(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:le(t.x0),m=u?t.y0:ke(t.y0),p=s?t.x1:le(t.x1),y=u?t.y1:ke(t.y1)),dy?(x=m,M="y0",b=y,D="y1"):(x=y,M="y1",b=m,D="y0"),Pe(Qe),qe(a,t),ar(r,t,e),Ce.moveFn=er==="move"?$:be,Ce.altKey=Qe.altKey)}function G(){hg(e)||(Dk(r),Ie(a),Fk(r,e,t),Rk.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){hg(e)||Ie(a)}function $(Qe,Be){if(t.type==="path"){var cr=function(Je){return Je},or=cr,hr=cr;s?h("xanchor",t.xanchor=Ne(_+Qe)):(or=function(pr){return Ne(le(pr)+Qe)},O&&O.type==="date"&&(or=Ni.encodeDate(or))),u?h("yanchor",t.yanchor=He(C+Be)):(hr=function(pr){return He(ke(pr)+Be)},H&&H.type==="date"&&(hr=Ni.encodeDate(hr))),h("path",t.path=Ek(I,or,hr))}else s?h("xanchor",t.xanchor=Ne(_+Qe)):(h("x0",t.x0=Ne(d+Qe)),h("x1",t.x1=Ne(p+Qe))),u?h("yanchor",t.yanchor=He(C+Be)):(h("y0",t.y0=He(m+Be)),h("y1",t.y1=He(y+Be)));r.attr("d",_5(e,t)),qe(a,t),dg(e,n,t,W)}function be(Qe,Be){if(v){var cr=function(br){return br},or=cr,hr=cr;s?h("xanchor",t.xanchor=Ne(_+Qe)):(or=function(Ir){return Ne(le(Ir)+Qe)},O&&O.type==="date"&&(or=Ni.encodeDate(or))),u?h("yanchor",t.yanchor=He(C+Be)):(hr=function(Ir){return He(ke(Ir)+Be)},H&&H.type==="date"&&(hr=Ni.encodeDate(hr))),h("path",t.path=Ek(I,or,hr))}else if(f){if(er==="resize-over-start-point"){var Je=d+Qe,pr=u?m-Be:m+Be;h("x0",t.x0=s?Je:Ne(Je)),h("y0",t.y0=u?pr:He(pr))}else if(er==="resize-over-end-point"){var yr=p+Qe,Te=u?y-Be:y+Be;h("x1",t.x1=s?yr:Ne(yr)),h("y1",t.y1=u?Te:He(Te))}}else{var Ue=function(br){return er.indexOf(br)!==-1},kr=Ue("n"),Ur=Ue("s"),tr=Ue("w"),Ye=Ue("e"),Ze=kr?x+Be:x,dr=Ur?b+Be:b,Ar=tr?A+Qe:A,mr=Ye?k+Qe:k;u&&(kr&&(Ze=x-Be),Ur&&(dr=b-Be)),(!u&&dr-Ze>l||u&&Ze-dr>l)&&(h(M,t[M]=u?Ze:He(Ze)),h(D,t[D]=u?dr:He(dr))),mr-Ar>o&&(h(R,t[R]=s?Ar:Ne(Ar)),h(N,t[N]=s?mr:Ne(mr)))}r.attr("d",_5(e,t)),qe(a,t),dg(e,n,t,W)}function qe(Qe,Be){(s||u)&&cr();function cr(){var or=Be.type!=="path",hr=Qe.selectAll(".visual-cue").data([0]),Je=1;hr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Je}).classed("visual-cue",!0);var pr=le(s?Be.xanchor:b5.midRange(or?[Be.x0,Be.x1]:Ni.extractPathCoords(Be.path,zc.paramIsX))),yr=ke(u?Be.yanchor:b5.midRange(or?[Be.y0,Be.y1]:Ni.extractPathCoords(Be.path,zc.paramIsY)));if(pr=Ni.roundPositionForSharpStrokeRendering(pr,Je),yr=Ni.roundPositionForSharpStrokeRendering(yr,Je),s&&u){var Te="M"+(pr-1-Je)+","+(yr-1-Je)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";hr.attr("d",Te)}else if(s){var Ue="M"+(pr-1-Je)+","+(yr-9-Je)+"v18 h2 v-18 Z";hr.attr("d",Ue)}else{var kr="M"+(pr-9-Je)+","+(yr-1-Je)+"h18 v2 h-18 Z";hr.attr("d",kr)}}}function Ie(Qe){Qe.selectAll(".visual-cue").remove()}function ar(Qe,Be,cr){var or=Be.xref,hr=Be.yref,Je=Rc.getFromId(cr,or),pr=Rc.getFromId(cr,hr),yr="";or!=="paper"&&!Je.autorange&&(yr+=or),hr!=="paper"&&!pr.autorange&&(yr+=hr),pg.setClipUrl(Qe,yr?"clip"+cr._fullLayout._uid+yr:null,cr)}}function Ek(e,r,t){return e.replace(zc.segmentRE,function(n){var a=0,i=n.charAt(0),o=zc.paramIsX[i],l=zc.paramIsY[i],s=zc.numParams[i],u=n.slice(1).replace(zc.paramRE,function(f){return a>=s||(o[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return i+u})}function FX(e,r){if(gg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Pk(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Pk,x5(e)}}}function Pk(e){if(gg(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(zk(e),delete e._fullLayout._activeShapeIndex,x5(e))}}function IX(e){if(gg(e)){zk(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Lo=dt(),Hk=ha(),Bk=va(),Bt=tg(),HX=mg().eraseActiveShape,yg=gr(),Dt=yg._,Ot=Zk.exports={};Ot.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Dt(e,"Download plot as a PNG"):Dt(e,"Download plot")},icon:Bt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};yg.notifier(Dt(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Lo.call("downloadImage",e,t).then(function(n){yg.notifier(Dt(e,"Snapshot succeeded")+" - "+n,"long",e)}).catch(function(){yg.notifier(Dt(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Ot.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Dt(e,"Edit in Chart Studio")},icon:Bt.disk,click:function(e){Hk.sendDataToCloud(e)}};Ot.editInChartStudio={name:"editInChartStudio",title:function(e){return Dt(e,"Edit in Chart Studio")},icon:Bt.pencil,click:function(e){Hk.sendDataToCloud(e)}};Ot.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Dt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Bt.zoombox,click:ai};Ot.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Dt(e,"Pan")},attr:"dragmode",val:"pan",icon:Bt.pan,click:ai};Ot.select2d={name:"select2d",_cat:"select",title:function(e){return Dt(e,"Box Select")},attr:"dragmode",val:"select",icon:Bt.selectbox,click:ai};Ot.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Dt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Bt.lasso,click:ai};Ot.drawclosedpath={name:"drawclosedpath",title:function(e){return Dt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Bt.drawclosedpath,click:ai};Ot.drawopenpath={name:"drawopenpath",title:function(e){return Dt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Bt.drawopenpath,click:ai};Ot.drawline={name:"drawline",title:function(e){return Dt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Bt.drawline,click:ai};Ot.drawrect={name:"drawrect",title:function(e){return Dt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Bt.drawrect,click:ai};Ot.drawcircle={name:"drawcircle",title:function(e){return Dt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Bt.drawcircle,click:ai};Ot.eraseshape={name:"eraseshape",title:function(e){return Dt(e,"Erase active shape")},icon:Bt.eraseshape,click:HX};Ot.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Dt(e,"Zoom in")},attr:"zoom",val:"in",icon:Bt.zoom_plus,click:ai};Ot.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Dt(e,"Zoom out")},attr:"zoom",val:"out",icon:Bt.zoom_minus,click:ai};Ot.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Dt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Bt.autoscale,click:ai};Ot.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Dt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Bt.home,click:ai};Ot.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Dt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Bt.tooltip_basic,gravity:"ne",click:ai};Ot.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Dt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Bt.tooltip_compare,gravity:"ne",click:ai};function ai(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Bk.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(n==="zoom"){var v=a==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,p;for(f=0;f{"use strict";var Xk=A5(),UX=Object.keys(Xk),jk=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Jk=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(jk),bv=[],YX=function(e){if(Jk.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();bv.indexOf(r)===-1&&bv.push(r),bv.indexOf(t)===-1&&bv.push(t)}};UX.forEach(function(e){YX(Xk[e])});bv.sort();$k.exports={DRAW_MODES:jk,backButtons:Jk,foreButtons:bv}});var k5=te((ice,Kk)=>{"use strict";var ace=T5();Kk.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var eS=te((oce,Qk)=>{"use strict";var GX=gr(),X1=Rt(),VX=yn(),WX=k5();Qk.exports=function(r,t){var n=r.modebar||{},a=VX.newContainer(t,"modebar");function i(l,s){return GX.coerce(n,a,WX,l,s)}i("orientation"),i("bgcolor",X1.addOpacity(t.paper_bgcolor,.5));var o=X1.contrast(X1.rgb(t.modebar.bgcolor));i("color",X1.addOpacity(o,.3)),i("activecolor",X1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var aS=te((lce,nS)=>{"use strict";var S5=kt(),ZX=Ht(),_g=gr(),rS=tg(),XX=vd().version,jX=new DOMParser;function tS(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ps=tS.prototype;ps.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=n.modebar,o="#"+a+" .modebar-group";document.querySelectorAll(o).forEach(function(v){v.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),_g.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};ps.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var i=a.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(a);r.buttonElements.push(o),n.appendChild(o)}),r.element.appendChild(n)})};ps.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};ps.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&S5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||rS.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};ps.createIcon=function(e){var r=ZX(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var i=jX.parseFromString(e.svg,"application/xml");n=i.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};ps.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,i=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",l=S5.select(n),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(n,u)}}else{var f=i===null?i:_g.nestedProperty(r,i).get();l.classed("active",f===a),s(n,f===a)}})};ps.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var KX=va(),iS=ri(),C5=dt(),QX=$u().isUnifiedHover,ej=aS(),xg=A5(),rj=T5().DRAW_MODES,tj=gr().extendDeep;oS.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=n.modeBarButtons,o;Array.isArray(i)&&i.length?o=sj(i):!n.displayModeBar&&n.watermark?o=[]:o=nj(r),a?a.update(r,o):t._modeBar=ej(r,o)};function nj(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(re,K){if(typeof K=="string"){if(K.toLowerCase()===re.toLowerCase())return!0}else{var fe=K.name,le=K._cat||K.name;if(fe===re||le===re.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=n.modeBarButtonsToAdd.concat(i.filter(function(re){for(var K=0;K1?(N=["toggleHover"],I=["resetViews"]):v?(R=["zoomInGeo","zoomOutGeo"],N=["hoverClosestGeo"],I=["resetGeo"]):f?(N=["hoverClosest3d"],I=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(R=["zoomInMapbox","zoomOutMapbox"],N=["toggleHover"],I=["resetViewMapbox"]):y?(R=["zoomInMap","zoomOutMap"],N=["toggleHover"],I=["resetViewMap"]):h?N=["hoverClosestPie"]:x?(N=["hoverClosestCartesian","hoverCompareCartesian"],I=["resetViewSankey"]):N=["toggleHover"],u&&N.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(oj(t)||A)&&(N=[]),u&&!b&&(R=["zoomIn2d","zoomOut2d","autoScale2d"],I[0]!=="resetViews"&&(I=["resetScale2d"])),f?W=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?W=["zoom2d","pan2d"]:p||y||v?W=["pan2d"]:_&&(W=["zoom2d"]),ij(t)&&W.push("select2d","lasso2d");var O=[],Z=function(re){O.indexOf(re)===-1&&N.indexOf(re)!==-1&&O.push(re)};if(Array.isArray(l)){for(var H=[],ee=0;ee{"use strict";sS.exports={moduleType:"component",name:"modebar",layoutAttributes:k5(),supplyLayoutDefaults:eS(),manage:lS()}});var q5=te((fce,uS)=>{"use strict";var uj=Oa().FROM_BL;uS.exports=function(r,t,n){n===void 0&&(n=uj[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(i+(a[0]-i)*t),r.l2r(i+(a[1]-i)*t)],r.setScale()}});var J1=te(j1=>{"use strict";var Nc=gr(),D5=tf(),Al=va().id2name,fj=bl(),fS=q5(),cj=Cp(),vj=Pn().ALMOST_EQUAL,hj=Oa().FROM_BL;j1.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,v,h,d,m;for(l=0;li?t.slice(i):n.slice(a))+o}function pj(e,r){for(var t=r._size,n=t.h/t.w,a={},i=Object.keys(e),o=0;ovj*m&&!C)){for(i=0;iW&&feN&&(N=fe);var ke=(N-R)/(2*I);v/=ke,R=s.l2r(R),N=s.l2r(N),s.range=s._input.range=k{"use strict";var Mg=kt(),ii=dt(),ro=ha(),qo=gr(),R5=ei(),z5=rg(),$1=Rt(),_v=cn(),dS=D1(),bS=L5(),K1=qn(),su=Oa(),_S=J1(),gj=_S.enforce,mj=_S.clean,pS=tf().doAutoRange,xS="start",yj="middle",wS="end",bj=xa().zindexSeparator;Aa.layoutStyles=function(e){return qo.syncOrAsync([ro.doAutoMargin,xj],e)};function _j(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]r[0])return!0}return!1}function xj(e){var r=e._fullLayout,t=r._size,n=t.p,a=K1.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(_v.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Aa.drawMainTitle(e),bS.manage(e),!r._has("cartesian"))return ro.previousPromises(e);function v(de,G,Q){var $=de._lw/2;if(de._id.charAt(0)==="x"){if(G){if(Q==="top")return G._offset-n-$}else return t.t+t.h*(1-(de.position||0))+$%1;return G._offset+G._length+n+$}if(G){if(Q==="right")return G._offset+G._length+n+$}else return t.l+t.w*(de.position||0)+$%1;return G._offset-n-$}for(i=0;i0){Tj(e,i,u,s),l.attr({x:o,y:i,"text-anchor":n,dy:yS(r.yanchor)}).call(R5.positionText,o,i);var f=(r.text.match(R5.BR_TAG_ALL)||[]).length;if(f){var v=su.LINE_SPACING*f+su.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",y)})}var h=Mg.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+dS.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":n,dy:yS(r.yanchor)}).call(R5.positionText,o,p)}}}};function wj(e,r,t,n,a){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=qo.isTopAnchor(r)?n:n-a,l=t==="b"?i-o:o;return qo.isTopAnchor(r)&&t==="t"||qo.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Mj(i,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Tj(e,r,t,n){var a="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&wj(e,i,o,r,n)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[a]=s),ro.allowAutoMargin(e,a),ro.autoMargin(e,a,l)}function kj(e,r){var t=e.title,n=e._size,a=0;switch(r===xS?a=t.pad.l:r===wS&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function Sj(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===su.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function yS(e){return e==="top"?su.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":su.MID_SHIFT+"em"}function Cj(e){var r=e.title,t=yj;return qo.isRightAnchor(r)?t=wS:qo.isLeftAnchor(r)&&(t=xS),t}function Lj(e){var r=e.title,t="0em";return qo.isTopAnchor(r)?t=su.CAP_SHIFT+"em":qo.isMiddleAnchor(r)&&(t=su.MID_SHIFT+"em"),t}Aa.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var qj=lf().readPaths,Dj=vg(),MS=ju().clearOutlineControllers,N5=Rt(),AS=cn(),Ej=yn().arrayEditor,TS=ff(),Pj=TS.getPathString;SS.exports={draw:Tg,drawOne:kS,activateLastSelection:Nj};function Tg(e){var r=e._fullLayout;MS(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;y--){var _=o.append("path").attr(s).style("opacity",y?.1:u).call(N5.stroke,v).call(N5.fill,f).call(AS.dashLine,y?"solid":d,y?4+h:h);if(Rj(_,e,n),m){var C=Ej(e.layout,"selections",n);_.style({cursor:"move"});var x={element:_.node(),plotinfo:a,gd:e,editHelpers:C,isActiveSelection:!0},b=qj(l,e);Dj(b,_,x)}else _.style("pointer-events",y?"all":"none");p[y]=_}var A=p[0],k=p[1];k.node().addEventListener("click",function(){return zj(e,A)})}}function Rj(e,r,t){var n=t.xref+t.yref;AS.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function zj(e,r){if(kg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){F5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=F5,Tg(e)}}}function Nj(e){if(kg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=F5,Tg(e)}}function F5(e){if(kg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(MS(e),delete e._fullLayout._activeSelectionIndex,Tg(e))}}});var LS=te((dce,CS)=>{function Fj(){var e,r=0,t=!1;function n(a,i){return e.list.push({type:a,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,i){return n("check",{seg1:a,seg2:i})},segmentChop:function(a,i){return n("div_seg",{seg:a,pt:i}),n("chop",{seg:a,pt:i})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,i){return n("new_seg",{seg:a,primary:i})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,i,o){return n("temp_status",{seg:a,above:i,below:o})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,i,o){return n("status",{seg:a,above:i,below:o})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,i){return n("chain_rem_head",{index:a,pt:i})},chainRemoveTail:function(a,i){return n("chain_rem_tail",{index:a,pt:i})},chainNew:function(a,i){return n("chain_new",{pt1:a,pt2:i})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,i){return n("chain_add_head",{index:a,pt:i})},chainAddTail:function(a,i){return n("chain_add_tail",{index:a,pt:i})},chainConnect:function(a,i){return n("chain_con",{index1:a,index2:i})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,i){return n("chain_join",{index1:a,index2:i})},done:function(){return n("done")}},e}CS.exports=Fj});var DS=te((pce,qS)=>{function Ij(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var i=n[0],o=n[1],l=a[0],s=a[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,n,a){var i=t[1]-n[1],o=a[0]-n[0],l=t[0]-n[0],s=a[1]-n[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-i>e&&(o-f)*(i-v)/(l-v)+f-a>e&&(s=!s),o=f,l=v}return s}};return r}qS.exports=Ij});var PS=te((gce,ES)=>{var Hj={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};ES.exports=Hj});var zS=te((mce,RS)=>{var Q1=PS();function Bj(e,r,t){function n(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function a(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Q1.create();function o(m,p,y,_,C,x){var b=r.pointsCompare(p,C);return b!==0?b:r.pointsSame(y,x)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(y,_?C:x,_?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var _=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return _<0})}function s(m,p){var y=Q1.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function u(m,p,y){var _=Q1.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=_,l(_,m.pt)}function f(m,p){var y=s(m,p);return u(y,m,p),y}function v(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=a(p,m.seg.end,m.seg);return v(m,p),f(y,m.primary)}function d(m,p){var y=Q1.create();function _(H,ee){var ie=H.seg.start,re=H.seg.end,K=ee.seg.start,fe=ee.seg.end;return r.pointsCollinear(ie,K,fe)?r.pointsCollinear(re,K,fe)||r.pointAboveOrOnLine(re,K,fe)?1:-1:r.pointAboveOrOnLine(ie,K,fe)?1:-1}function C(H){return y.findTransition(function(ee){var ie=_(H,ee.ev);return ie>0})}function x(H,ee){var ie=H.seg,re=ee.seg,K=ie.start,fe=ie.end,le=re.start,ke=re.end;t&&t.checkIntersection(ie,re);var Ne=r.linesIntersect(K,fe,le,ke);if(Ne===!1){if(!r.pointsCollinear(K,fe,le)||r.pointsSame(K,ke)||r.pointsSame(fe,le))return!1;var He=r.pointsSame(K,le),Xe=r.pointsSame(fe,ke);if(He&&Xe)return ee;var Ce=!He&&r.pointBetween(K,le,ke),er=!Xe&&r.pointBetween(fe,le,ke);if(He)return er?h(ee,fe):h(H,ke),ee;Ce&&(Xe||(er?h(ee,fe):h(H,ke)),h(ee,K))}else Ne.alongA===0&&(Ne.alongB===-1?h(H,le):Ne.alongB===0?h(H,Ne.pt):Ne.alongB===1&&h(H,ke)),Ne.alongB===0&&(Ne.alongA===-1?h(ee,K):Ne.alongA===0?h(ee,Ne.pt):Ne.alongA===1&&h(ee,fe));return!1}for(var b=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let H=function(){if(M){var ee=x(A,M);if(ee)return ee}return D?x(A,D):!1};var Z=H;t&&t.segmentNew(A.seg,A.primary);var k=C(A),M=k.before?k.before.ev:null,D=k.after?k.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,D?D.seg:!1);var R=H();if(R){if(e){var N;A.seg.myFill.below===null?N=!0:N=A.seg.myFill.above!==A.seg.myFill.below,N&&(R.seg.myFill.above=!R.seg.myFill.above)}else R.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(R.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var N;A.seg.myFill.below===null?N=!0:N=A.seg.myFill.above!==A.seg.myFill.below,D?A.seg.myFill.below=D.seg.myFill.above:A.seg.myFill.below=m,N?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var I;D?A.primary===D.primary?I=D.seg.otherFill.above:I=D.seg.myFill.above:I=A.primary?p:m,A.seg.otherFill={above:I,below:I}}t&&t.status(A.seg,M?M.seg:!1,D?D.seg:!1),A.other.status=k.insert(Q1.node({ev:A}))}else{var W=A.status;if(W===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(W.prev)&&y.exists(W.next)&&x(W.prev.ev,W.next.ev),t&&t.statusRemove(W.ev.seg),W.remove(),!A.primary){var O=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=O}b.push(A.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var p,y=m[m.length-1],_=0;_{function Oj(e,r,t){var n=[],a=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(Z,H,ee){return f.index=Z,f.matches_head=H,f.matches_pt1=ee,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function eh(e,r,t){var n=[];return e.forEach(function(a){var i=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[i]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(n),n}var Uj={union:function(e,r){return eh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return eh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return eh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return eh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return eh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};IS.exports=Uj});var OS=te((_ce,BS)=>{var Yj={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var Gj=LS(),Vj=DS(),US=zS(),Wj=FS(),rh=HS(),YS=OS(),Do=!1,th=Vj(),Fi;Fi={buildLog:function(e){return e===!0?Do=Gj():e===!1&&(Do=!1),Do===!1?!1:Do.list},epsilon:function(e){return th.epsilon(e)},segments:function(e){var r=US(!0,th,Do);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=US(!1,th,Do);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:rh.union(e.combined,Do),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:rh.intersect(e.combined,Do),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:rh.difference(e.combined,Do),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:rh.differenceRev(e.combined,Do),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:rh.xor(e.combined,Do),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Wj(e.segments,th,Do),inverted:e.inverted}},polygonFromGeoJSON:function(e){return YS.toPolygon(Fi,e)},polygonToGeoJSON:function(e){return YS.fromPolygon(Fi,th,e)},union:function(e,r){return nh(e,r,Fi.selectUnion)},intersect:function(e,r){return nh(e,r,Fi.selectIntersect)},difference:function(e,r){return nh(e,r,Fi.selectDifference)},differenceRev:function(e,r){return nh(e,r,Fi.selectDifferenceRev)},xor:function(e,r){return nh(e,r,Fi.selectXor)}};function nh(e,r,t){var n=Fi.segments(e),a=Fi.segments(r),i=Fi.combine(n,a),o=t(i);return Fi.polygon(o)}typeof window=="object"&&(window.PolyBool=Fi);GS.exports=Fi});var ZS=te((wce,WS)=>{WS.exports=function(r,t,n,a){var i=r[0],o=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var s=a-n,u=0,f=s-1;uo!=m>o&&i<(d-v)*(o-h)/(m-h)+v;p&&(l=!l)}return l}});var Lg=te((Mce,XS)=>{"use strict";var H5=Ld().dot,Sg=Pn().BADNUM,Cg=XS.exports={};Cg.tester=function(r){var t=r.slice(),n=t[0][0],a=n,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||_===Sg||_o||p&&u(m))}function v(m,p){var y=m[0],_=m[1];if(y===Sg||ya||_===Sg||_o)return!1;var C=t.length,x=t[0][0],b=t[0][1],A=0,k,M,D,R,N;for(k=1;kMath.max(M,x)||_>Math.max(D,b)))if(_l||Math.abs(H5(v,u))>a)return!0;return!1};Cg.filter=function(r,t){var n=[r[0]],a=0,i=0;function o(s){r.push(s);var u=n.length,f=a;n.splice(i+1);for(var v=f+1;v1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:n}}});var JS=te((Ace,jS)=>{"use strict";jS.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var yC=te((Tce,mC)=>{"use strict";var $S=VS(),Zj=ZS(),oh=dt(),Xj=cn().dashStyle,ah=Rt(),jj=Ml(),Jj=$u().makeEventData,ch=pv(),$j=ch.freeMode,Kj=ch.rectMode,lh=ch.drawMode,Y5=ch.openMode,G5=ch.selectMode,KS=ff(),QS=W1(),aC=vg(),iC=ju().clearOutline,oC=lf(),B5=oC.handleEllipse,Qj=oC.readPaths,eJ=ug().newShapes,rJ=d5(),tJ=I5().activateLastSelection,Dg=gr(),nJ=Dg.sorterAsc,lC=Lg(),ih=Yd(),Eo=va().getFromId,aJ=rg(),iJ=Ag().redrawReglTraces,Eg=JS(),gs=Eg.MINSELECT,oJ=lC.filter,V5=lC.tester,W5=ig(),eC=W5.p2r,lJ=W5.axValue,sJ=W5.getTransform;function Z5(e){return e.subplot!==void 0}function uJ(e,r,t,n,a){var i=!Z5(n),o=$j(a),l=Kj(a),s=Y5(a),u=lh(a),f=G5(a),v=a==="drawline",h=a==="drawcircle",d=v||h,m=n.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,_=p._zoomlayer,C=n.element.getBoundingClientRect(),x=n.plotinfo,b=sJ(x),A=r-C.left,k=t-C.top;p._calcInverseTransform(m);var M=Dg.apply3DTransform(p._invTransform)(A,k);A=M[0],k=M[1];var D=p._invScaleX,R=p._invScaleY,N=A,I=k,W="M"+A+","+k,O=n.xaxes[0],Z=n.yaxes[0],H=O._length,ee=Z._length,ie=e.altKey&&!(lh(a)&&s),re,K,fe,le,ke,Ne,He;uC(e,m,n),o&&(re=oJ([[A,k]],Eg.BENDPX));var Xe=_.selectAll("path.select-outline-"+x.id).data([1]),Ce=u?p.newshape:p.newselection;u&&(n.hasText=Ce.label.text||Ce.label.texttemplate);var er=u&&!s?Ce.fillcolor:"rgba(0,0,0,0)",ce=Ce.line.color||(i?ah.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Xe.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?Ce.opacity/2:1,"stroke-dasharray":Xj(Ce.line.dash,Ce.line.width),"stroke-width":Ce.line.width+"px","shape-rendering":"crispEdges"}).call(ah.stroke,ce).call(ah.fill,er).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",W+"Z");var ge=_.append("path").attr("class","zoombox-corners").style({fill:ah.background,stroke:ah.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&n.hasText){var Pe=_.select(".label-temp");Pe.empty()&&(Pe=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var de=p._uid+Eg.SELECTID,G=[],Q=Pg(m,n.xaxes,n.yaxes,n.subplot);y&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(i){var be=O._id,qe=Z._id;dC(m,be,qe,Q);for(var Ie=(m.layout||{}).selections||[],ar=[],Qe=!1,Be=0;Be=0){m._fullLayout._deactivateShape(m);return}if(!u){var Ie=p.clickmode;ih.done(de).then(function(){if(ih.clear(de),be===2){for(Xe.remove(),ke=0;ke-1&&sC(qe,m,n.xaxes,n.yaxes,n.subplot,n,Xe),Ie==="event"&&fh(m,void 0);jj.click(m,qe,x.id)}).catch(Dg.error)}},n.doneFn=function(){ge.remove(),ih.done(de).then(function(){ih.clear(de),!y&&le&&n.selectionDefs&&(le.subtract=ie,n.selectionDefs.push(le),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,fe)),(y||u)&&sh(n,y),n.doneFnCompleted&&n.doneFnCompleted(G),f&&fh(m,He)}).catch(Dg.error)}}function sC(e,r,t,n,a,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,p,y,_,C,x,b,A;if(dJ(l)){uC(e,r,i),h=Pg(r,t,n,a);var k=pJ(l,h),M=k.pointNumbers.length>0;if(M?gJ(h,k):mJ(h)&&(C=tC(k))){for(o&&o.remove(),A=0;A=0}function hJ(e){return e._fullLayout._activeSelectionIndex>=0}function sh(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;vJ(a)&&a._fullLayout._deactivateShape(a),hJ(a)&&a._fullLayout._deactivateSelection(a);var i=a._fullLayout,o=i._zoomlayer,l=lh(t),s=G5(t);if(l||s){var u=o.selectAll(".select-outline-"+n.id);if(u&&a._fullLayout._outlining){var f;l&&(f=eJ(u,e)),f&&oh.call("_guiRelayout",a,{shapes:f});var v;s&&!Z5(e)&&(v=rJ(u,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,oh.call("_guiRelayout",a,{selections:v}).then(function(){r&&tJ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function rC(e){return e._id}function Pg(e,r,t,n){if(!e.calcdata)return[];var a=[],i=r.map(rC),o=t.map(rC),l,s,u;for(u=0;u0,i=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function gJ(e,r){var t=[],n,a,i,o;for(o=0;o0&&t.push(n);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function uh(e,r,t){var n;for(n=0;n-1&&r;if(!o&&r){var be=nC(e,!0);if(be.length){var qe=be[0].xref,Ie=be[0].yref;if(qe&&Ie){var ar=pC(be),Qe=gC([Eo(e,qe,"x"),Eo(e,Ie,"y")]);Qe(G,ar)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:$&&fh(e,G),h._reselect=!1}if(!o&&h._deselect){var Be=h._deselect;l=Be.xref,s=Be.yref,_J(l,s,f)||dC(e,l,s,n),$&&(G.points.length?fh(e,G):J5(e)),h._deselect=!1}return{eventData:G,selectionTesters:t}}function bJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";bC.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var vh=te((Sce,_C)=>{"use strict";_C.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var xv=te((Lce,MC)=>{"use strict";var xC=$5(),wC=Qa(),Rg=xa(),TJ=yn().templatedArray,Cce=vh();MC.exports=TJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:wC({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:xC.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:xC.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Rg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Rg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Rg.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Rg.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:wC({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var zg=te((qce,AC)=>{"use strict";AC.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var K5=te((Dce,TC)=>{"use strict";TC.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Fc=te((Ece,PC)=>{"use strict";var kC=q2().axisHoverFormat,{hovertemplateAttrs:kJ,texttemplateAttrs:SJ,templatefallbackAttrs:SC}=lc(),CC=K0(),CJ=Qa(),LC=rs().dash,LJ=rs().pattern,qJ=cn(),DJ=zg(),hh=fa().extendFlat,EJ=K5();function qC(e){return{valType:"any",dflt:0,editType:"calc"}}function DC(e){return{valType:"any",editType:"calc"}}function EC(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}PC.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:qC("x"),yperiod:qC("y"),xperiod0:DC("x0"),yperiod0:DC("y0"),xperiodalignment:EC("x"),yperiodalignment:EC("y"),xhoverformat:kC("x"),yhoverformat:kC("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:SJ(),texttemplatefallback:SC({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:kJ({},{keys:DJ.eventDataKeys}),hovertemplatefallback:SC(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:hh({},LC,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:EJ(!0),fillgradient:hh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:LJ,marker:hh({symbol:{valType:"enumerated",values:qJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:hh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:hh({},LC,{arrayOk:!0}),editType:"calc"},CC("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},CC("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:CJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Q5=te((Rce,NC)=>{"use strict";var RC=xv(),zC=Fc().line,PJ=rs().dash,Ng=fa().extendFlat,RJ=xo().overrideAll,zJ=yn().templatedArray,Pce=vh();NC.exports=RJ(zJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Ng({},RC.xref,{}),yref:Ng({},RC.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:zC.color,width:Ng({},zC.width,{min:1,dflt:1}),dash:Ng({},PJ,{dflt:"dot"})}}),"arraydraw","from-root")});var BC=te((zce,HC)=>{"use strict";var FC=gr(),Fg=qn(),NJ=_l(),FJ=Q5(),IC=ff();HC.exports=function(r,t){NJ(r,t,{name:"selections",handleItemDefaults:IJ});for(var n=t.selections,a=0;a{"use strict";OC.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var dh=te((Fce,VC)=>{"use strict";var HJ=dt(),YC=gr(),GC=va();VC.exports=function(r){return function(n,a){var i=n[r];if(Array.isArray(i))for(var o=HJ.subplotsRegistry.cartesian,l=o.idRegex,s=a._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=a._has("cartesian"),d=0;d{"use strict";var WC=I5(),ph=yC();ZC.exports={moduleType:"component",name:"selections",layoutAttributes:Q5(),supplyLayoutDefaults:BC(),supplyDrawNewSelectionDefaults:UC(),includeBasePlot:dh()("selections"),draw:WC.draw,drawOne:WC.drawOne,reselect:ph.reselect,prepSelect:ph.prepSelect,clearOutline:ph.clearOutline,clearSelectionsCache:ph.clearSelectionsCache,selectOnClick:ph.selectOnClick}});var dL=te((Hce,hL)=>{"use strict";var ab=kt(),Po=gr(),XC=Po.numberFormat,BJ=es(),OJ=F3(),Ig=dt(),nL=Po.strTranslate,UJ=ei(),jC=Rt(),vf=cn(),YJ=Ml(),JC=qn(),GJ=af(),VJ=ko(),aL=pv(),Hg=aL.selectingOrDrawing,WJ=aL.freeMode,ZJ=Oa().FROM_TL,XJ=rg(),jJ=Ag().redrawReglTraces,JJ=ha(),rb=va().getFromId,$J=uu().prepSelect,KJ=uu().clearOutline,QJ=uu().selectOnClick,eb=q5(),ib=xa(),$C=ib.MINDRAG,pi=ib.MINZOOM,KC=!0;function e$(e,r,t,n,a,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,v,h,d,m,p,y,_,C,x,b,A,k,M,D,R,N,I,W,O,Z,H,ee,ie;t+=r.yaxis._shift;function re(){if(v=r.xaxis,h=r.yaxis,x=v._length,b=h._length,_=v._offset,C=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,o&&l)for(var Ye=r.overlays,Ze=0;Ze=0){dr._fullLayout._deactivateShape(dr);return}var Ar=dr._fullLayout.clickmode;if(nb(dr),Ye===2&&!f&&yr(),u)Ar.indexOf("select")>-1&&QJ(Ze,dr,p,y,r.id,le),Ar.indexOf("event")>-1&&YJ.click(dr,Ze,r.id);else if(Ye===1&&f){var mr=o?h:v,br=o==="s"||l==="w"?0:1,Ir=mr._name+".range["+br+"]",Cr=r$(mr,br),Er="left",lr="middle";if(mr.fixedrange)return;o?(lr=o==="n"?"top":"bottom",mr.side==="right"&&(Er="right")):l==="e"&&(Er="right"),dr._context.showAxisRangeEntryBoxes&&ab.select(fe).call(UJ.makeEditable,{gd:dr,immediate:!0,background:dr._fullLayout.paper_bgcolor,text:String(Cr),fill:mr.tickfont?mr.tickfont.color:"#444",horizontalAlign:Er,verticalAlign:lr}).on("edit",function(xe){var Ae=mr.d2r(xe);Ae!==void 0&&Ig.call("_guiRelayout",dr,Ir,Ae)})}}VJ.init(le);var He,Xe,Ce,er,ce,ge,Pe,de,G,Q;function $(Ye,Ze,dr){var Ar=fe.getBoundingClientRect();He=Ze-Ar.left,Xe=dr-Ar.top,e._fullLayout._calcInverseTransform(e);var mr=Po.apply3DTransform(e._fullLayout._invTransform)(He,Xe);He=mr[0],Xe=mr[1],Ce={l:He,r:He,w:0,t:Xe,b:Xe,h:0},er=e._hmpixcount?e._hmlumcount/e._hmpixcount:BJ(e._fullLayout.plot_bgcolor).getLuminance(),ce="M0,0H"+x+"V"+b+"H0V0",ge=!1,Pe="xy",Q=!1,de=lL(s,er,_,C,ce),G=sL(s,_,C)}function be(Ye,Ze){if(e._transitioningWithDuration)return!1;var dr=Math.max(0,Math.min(x,ee*Ye+He)),Ar=Math.max(0,Math.min(b,ie*Ze+Xe)),mr=Math.abs(dr-He),br=Math.abs(Ar-Xe);Ce.l=Math.min(He,dr),Ce.r=Math.max(He,dr),Ce.t=Math.min(Xe,Ar),Ce.b=Math.max(Xe,Ar);function Ir(){Pe="",Ce.r=Ce.l,Ce.t=Ce.b,G.attr("d","M0,0Z")}if(A.isSubplotConstrained)mr>pi||br>pi?(Pe="xy",mr/x>br/b?(br=mr*b/x,Xe>Ar?Ce.t=Xe-br:Ce.b=Xe+br):(mr=br*x/b,He>dr?Ce.l=He-mr:Ce.r=He+mr),G.attr("d",Bg(Ce))):Ir();else if(k.isSubplotConstrained)if(mr>pi||br>pi){Pe="xy";var Cr=Math.min(Ce.l/x,(b-Ce.b)/b),Er=Math.max(Ce.r/x,(b-Ce.t)/b);Ce.l=Cr*x,Ce.r=Er*x,Ce.b=(1-Cr)*b,Ce.t=(1-Er)*b,G.attr("d",Bg(Ce))}else Ir();else!D||br0){var xe;if(k.isSubplotConstrained||!M&&D.length===1){for(xe=0;xe1&&(Ir.maxallowed!==void 0&&N===(Ir.range[0]1&&(Cr.maxallowed!==void 0&&I===(Cr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function n$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function lL(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",nL(t,n)).attr("d",a+"Z")}function sL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:jC.background,stroke:jC.defaultLine,"stroke-width":1,opacity:0}).attr("transform",nL(r,t)).attr("d","M0,0Z")}function uL(e,r,t,n,a,i){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),fL(e,r,a,i)}function fL(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function nb(e){ab.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function cL(e){KC&&e.data&&e._context.showTips&&(Po.notifier(Po._(e,"Double-click to zoom back out"),"long",e),KC=!1)}function a$(e,r){return"M"+(e.l-.5)+","+(r-pi-.5)+"h-3v"+(2*pi+1)+"h3ZM"+(e.r+.5)+","+(r-pi-.5)+"h3v"+(2*pi+1)+"h-3Z"}function i$(e,r){return"M"+(r-pi-.5)+","+(e.t-.5)+"v-3h"+(2*pi+1)+"v3ZM"+(r-pi-.5)+","+(e.b+.5)+"v3h"+(2*pi+1)+"v-3Z"}function Bg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,pi)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function rL(e,r,t,n,a){for(var i=!1,o={},l={},s,u,f,v,h=(a||{}).xaHash,d=(a||{}).yaHash,m=0;m{"use strict";var o$=kt(),Og=Ml(),l$=ko(),s$=af(),Tl=dL().makeDragBox,Ta=xa().DRAGGERSIZE;Ug.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){o$.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});n.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Tl(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Og.hover(r,h,i)},Og.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,l$.unhover(r,h))},r._context.showAxisDragHandles&&(Tl(r,o,l._offset-Ta,s._offset-Ta,Ta,Ta,"n","w"),Tl(r,o,l._offset+l._length,s._offset-Ta,Ta,Ta,"n","e"),Tl(r,o,l._offset-Ta,s._offset+s._length,Ta,Ta,"s","w"),Tl(r,o,l._offset+l._length,s._offset+s._length,Ta,Ta,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Ta),Tl(r,o,l._offset+l._length*.1,f,l._length*.8,Ta,"","ew"),Tl(r,o,l._offset,f,l._length*.1,Ta,"","w"),Tl(r,o,l._offset+l._length*.9,f,l._length*.1,Ta,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=Ta),Tl(r,o,v,s._offset+s._length*.1,Ta,s._length*.8,"ns",""),Tl(r,o,v,s._offset+s._length*.9,Ta,s._length*.1,"s",""),Tl(r,o,v,s._offset,Ta,s._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(i){i.target=r._fullLayout._lasthover,Og.hover(r,i,t._hoversubplot)},a.onclick=function(i){i.target=r._fullLayout._lasthover,Og.click(r,i)},a.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Ug.updateFx(r)}};Ug.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";s$(r._draggers,t)}});var mL=te((Oce,gL)=>{"use strict";var pL=dt();gL.exports=function(r){for(var t=pL.layoutArrayContainers,n=pL.layoutArrayRegexes,a=r.split("[")[0],i,o,l=0;l{"use strict";var u$=$s(),lb=Cd(),gh=Bu(),f$=r2().sorterAsc,sb=dt();mh.containerArrayMatch=mL();var c$=mh.isAddVal=function(r){return r==="add"||u$(r)},yL=mh.isRemoveVal=function(r){return r===null||r==="remove"};mh.applyContainerArrayChanges=function(r,t,n,a,i){var o=t.astr,l=sb.getComponentMethod(o,"supplyLayoutDefaults"),s=sb.getComponentMethod(o,"draw"),u=sb.getComponentMethod(o,"drawOne"),f=a.replot||a.recalc||l===lb||s===lb,v=r.layout,h=r._fullLayout;if(n[""]){Object.keys(n).length>1&&gh.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(yL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return gh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(v,h),s(r),!0)}var m=Object.keys(n).map(Number).sort(f$),p=t.get(),y=p||[],_=i(h,o).get(),C=[],x=-1,b=y.length,A,k,M,D,R,N,I,W;for(A=0;Ay.length-(I?0:1)){gh.warn("index out of range",o,M);continue}if(N!==void 0)R.length>1&&gh.warn("Insertion & removal are incompatible with edits to the same index.",o,M),yL(N)?C.push(M):I?(N==="add"&&(N={}),y.splice(M,0,N),_&&_.splice(M,0,{})):gh.warn("Unrecognized full object edit value",o,M,N),x===-1&&(x=M);else for(k=0;k=0;A--)y.splice(C[A],1),_&&_.splice(C[A],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(v,h),u!==lb){var O;if(x===-1)O=m;else{for(b=Math.max(y.length,b),O=[],A=0;A=x));A++)O.push(M);for(A=x;A{"use strict";var ML=Ht(),AL=dt(),oi=gr(),yh=ha(),TL=va(),kL=Rt(),bh=TL.cleanId,v$=TL.getFromTrace,ub=AL.traceIs,h$=["x","y","z"];Ro.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&oi.log("Clearing previous rejected promises from queue."),e._promises=[]};Ro.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(yh.subplotsRegistry.cartesian||{}).attrRegex,a=(yh.subplotsRegistry.polar||{}).attrRegex,i=(yh.subplotsRegistry.ternary||{}).attrRegex,o=(yh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),kL.clean(e),e.template&&e.template.layout&&Ro.cleanLayout(e.template.layout),e};function wv(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=bh(n,a,!0))}Ro.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Ro.hasParent=function(e,r){for(var t=wL(r);t;){if(t in e)return!0;t=wL(t)}return!1};Ro.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>oi.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;noi.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],i=r[n];if(a!==i&&!(t(a,i)?fb(a,i):!1))return!1}return!0}return!1};Ro.collectionsAreEqual=fb});var gb=te(Ft=>{"use strict";var Wg=kt(),g$=Ht(),m$=d2(),Fr=gr(),bn=Fr.nestedProperty,hb=w1(),gi=o9(),zo=dt(),Qg=X0(),ft=ha(),li=qn(),y$=N3(),b$=bl(),cb=cn(),_$=Rt(),x$=ob().initInteractions,w$=gc(),M$=uu().clearOutline,EL=oc().dfltConfig,Gg=bL(),ra=SL(),an=Ag(),hf=xo(),A$=xa().AX_NAME_PATTERN,vb=0,CL=5;function T$(e,r,t,n){var a;if(e=Fr.getGraphDiv(e),hb.init(e),Fr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,n=i.config,a=i.frames}var o=hb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(o===!1)return Promise.reject();!r&&!t&&!Fr.isPlotDiv(e)&&Fr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return Ft.addFrames(e,a)}RL(e,n),t||(t={}),Wg.select(e).classed("js-plotly-plot",!0),cb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ra.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ra.cleanLayout(t)),ft.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(X$(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),cb.initGradients(e),cb.initPatterns(e),s&&li.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&ft.doCalcdata(e);for(var h=0;h=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function zL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Xg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Xg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function q$(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof D.parts[I]!="string";)I--;var W=D.parts[I],O=D.parts[I-1]+"."+W,Z=D.parts.slice(0,I).join("."),H=bn(e.layout,Z).get(),ee=bn(n,Z).get(),ie=D.get();if(R!==void 0){_[M]=R,C[M]=W==="reverse"?R:fu(ie);var re=Qg.getLayoutValObject(n,D.parts);if(re&&re.impliedEdits&&R!==null)for(var K in re.impliedEdits)x(Fr.relativeAttr(M,K),re.impliedEdits[K]);if(["width","height"].indexOf(M)!==-1)if(R){x("autosize",null);var fe=M==="height"?"width":"height";x(fe,n[fe])}else n[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",R?null:n.width),x("height",R?null:n.height);else if(O.match(GL))k(O),bn(n,Z+"._inputRange").set(null);else if(O.match(VL)){k(O),bn(n,Z+"._inputRange").set(null);var le=bn(n,Z).get();le._inputDomain&&(le._input.domain=le._inputDomain.slice())}else O.match(R$)&&bn(n,Z+"._inputDomain").set(null);if(W==="type"){A=H;var ke=ee.type==="linear"&&R==="log",Ne=ee.type==="log"&&R==="linear";if(ke||Ne){if(!A||!A.range)x(Z+".autorange",!0);else if(ee.autorange)ke&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var He=A.range[0],Xe=A.range[1];ke?(He<=0&&Xe<=0&&x(Z+".autorange",!0),He<=0?He=Xe/1e6:Xe<=0&&(Xe=He/1e6),x(Z+".range[0]",Math.log(He)/Math.LN10),x(Z+".range[1]",Math.log(Xe)/Math.LN10)):(x(Z+".range[0]",Math.pow(10,He)),x(Z+".range[1]",Math.pow(10,Xe)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[D.parts[0]]&&D.parts[1]==="radialaxis"&&delete n[D.parts[0]]._subplot.viewInitial["radialaxis.range"],zo.getComponentMethod("annotations","convertCoords")(e,ee,R,x),zo.getComponentMethod("images","convertCoords")(e,ee,R,x)}else x(Z+".autorange",!0),x(Z+".range",null);bn(n,Z+"._inputRange").set(null)}else if(W.match(A$)){var Ce=bn(n,M).get(),er=(R||{}).type;(!er||er==="-")&&(er="linear"),zo.getComponentMethod("annotations","convertCoords")(e,Ce,er,x),zo.getComponentMethod("images","convertCoords")(e,Ce,er,x)}var ce=Gg.containerArrayMatch(M);if(ce){f=ce.array,v=ce.index;var ge=ce.property,Pe=re||{editType:"calc"};v!==""&&ge===""&&(Gg.isAddVal(R)?C[M]=null:Gg.isRemoveVal(R)?C[M]=(bn(t,f).get()||[])[v]:Fr.warn("unrecognized full object value",r)),hf.update(y,Pe),u[f]||(u[f]={});var de=u[f][v];de||(de=u[f][v]={}),de[ge]=R,delete r[M]}else W==="reverse"?(H.range?H.range.reverse():(x(Z+".autorange",!0),H.range=[1,0]),ee.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(R===!1&&ie!==!1||R!==!1&&ie===!1)||n._has("scatter-like")&&n._has("regl")&&M==="dragmode"&&(R==="lasso"||R==="select")&&!(ie==="lasso"||ie==="select")?y.plot=!0:re?hf.update(y,re):y.calc=!0,D.set(R))}}for(f in u){var G=Gg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);G||(y.plot=!0)}for(var Q in b){A=li.getFromId(e,Q);var $=A&&A._constraintGroup;if($){y.calc=!0;for(var be in $)b[be]||(li.getFromId(e,be)._constraintShrinkable=!0)}}(ZL(e)||r.height||r.width)&&(y.plot=!0);var qe=n.shapes;for(v=0;v1;)if(n.pop(),t=bn(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function F$(e,r){for(var t=0;t[Z,e._ev.listeners(Z)]);i=Ft.newPlot(e,r,t,n).then(()=>{for(let[Z,H]of O)H.forEach(ee=>e.on(Z,ee));return Ft.react(e,r,t,n)})}else{e.data=r||[],ra.cleanData(e.data),e.layout=t||{},ra.cleanLayout(e.layout),H$(e.data,e.layout,l,s),ft.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,p=U$(e,s,h,d,m),y=p.newDataRevision,_=O$(e,l,v,d,m,y);if(ZL(e)&&(p.layoutReplot=!0),_.calc||p.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),x=0;x(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function O$(e,r,t,n,a,i){var o=r.length===t.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var l=hf.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var m=Qg.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:i,gd:e},h={};for(s=0;s=a.length?a[0]:a[u]:a}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var W=n._frameQueue.pop();W.onInterrupt&&W.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(W){if(W.length!==0){for(var O=0;On._timeToNext&&m()};W()}var y=0;function _(W){return Array.isArray(a)?y>=a.length?W.transitionOpts=a[y]:W.transitionOpts=a[0]:W.transitionOpts=a,y++,W}var C,x,b=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&Fr.isPlainObject(r);if(M)b.push({type:"object",data:_(Fr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(C=0;C0&&NN)&&I.push(x);b=I}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function G$(e,r,t){if(e=Fr.getGraphDiv(e),r==null)return Promise.resolve();if(!Fr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(Fr.isPlainObject(r[n])){var h=r[n].name,d=(s[h]||v[h]||{}).name,m=r[n].name,p=s[d]||v[d];d&&m&&typeof m=="number"&&p&&vbD.index?-1:M.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&Fr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;s[a.name="frame "+e._transitionData._counter++];);if(s[a.name]){for(i=0;i=0;t--)n=r[t],i.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:a[n]});var l=ft.modifyFrames,s=ft.modifyFrames,u=[e,o],f=[e,i];return gi&&gi.add(e,l,u,s,f),ft.modifyFrames(e,i)}function W$(e){e=Fr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return ft.cleanPlot([],{},t,r),ft.purge(e),hb.purge(e),r._container&&r._container.remove(),delete e._context,e}function Z$(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Fr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=Fr.inverseTransformMatrix(Fr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function X$(e){var r=Wg.select(e),t=e._fullLayout;if(t._calcInverseTransform=Z$,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};Wg.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=Fr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(w$.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ft.animate=Y$;Ft.addFrames=G$;Ft.deleteFrames=V$;Ft.addTraces=BL;Ft.deleteTraces=OL;Ft.extendTraces=IL;Ft.moveTraces=db;Ft.prependTraces=HL;Ft.newPlot=L$;Ft._doPlot=T$;Ft.purge=W$;Ft.react=B$;Ft.redraw=C$;Ft.relayout=_h;Ft.restyle=jg;Ft.setPlotConfig=k$;Ft.update=$g;Ft._guiRelayout=pb(_h);Ft._guiRestyle=pb(jg);Ft._guiUpdate=pb($g);Ft._storeDirectGUIEdit=P$});var Ic=te(ms=>{"use strict";var j$=dt();ms.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};ms.getRedrawFunc=function(e){return function(){j$.getComponentMethod("colorbar","draw")(e)}};ms.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ms.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var XL=window.URL||window.webkitURL;ms.createObjectURL=function(e){return XL.createObjectURL(e)};ms.revokeObjectURL=function(e){return XL.revokeObjectURL(e)};ms.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=J$(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ms.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function J$(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var yb=kt(),Wce=gr(),$$=cn(),K$=Rt(),Zce=gc(),mb=/"/g,wh="TOBESTRIPPED",Q$=new RegExp('("'+wh+")|("+wh+'")',"g");function eK(e){var r=yb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function rK(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}jL.exports=function(r,t,n){var a=r._fullLayout,i=a._paper,o=a._toppaper,l=a.width,s=a.height,u;i.insert("rect",":first-child").call($$.setRect,0,0,l,s).call(K$.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(u=0;u{"use strict";var tK=gr(),nK=Jd().EventEmitter,Mh=Ic();function aK(e){var r=e.emitter||new nK,t=new Promise(function(n,a){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),p=new i,y,_;l==="svg"||tK.isSafari()?_=Mh.encodeSVG(o):(y=Mh.createBlob(o,"svg"),_=Mh.createObjectURL(y)),s.width=h,s.height=d,p.onload=function(){var C;switch(y=null,Mh.revokeObjectURL(_),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=_;break;default:var x="Image format is not jpeg, png, svg or webp.";if(a(new Error(x)),!e.promise)return r.emit("error",x)}n(C),e.promise||r.emit("success",C)},p.onerror=function(C){if(y=null,Mh.revokeObjectURL(_),a(C),!e.promise)return r.emit("error",C)},p.src=_});return e.promise?t:r}JL.exports=aK});var _b=te((Jce,QL)=>{"use strict";var $L=Ht(),KL=gb(),iK=ha(),ys=gr(),Ah=Ic(),oK=rm(),lK=tm(),sK=vd().version,bb={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function uK(e,r){r=r||{};var t,n,a,i;ys.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},i={}):(e=ys.getGraphDiv(e),t=ys.extendDeep([],e.data),n=ys.extendDeep({},e.layout),a=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||ys.validate(r[k],bb[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+ys.join2(bb.format.values,", "," or ")+".");var l={};function s(k,M){return ys.coerce(r,l,bb,k,M)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=ys.extendFlat({},n);f?y.width=f:r.width===null&&$L(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&$L(i.height)&&(y.height=i.height);var _=ys.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=Ah.getRedrawFunc(p);function x(){return new Promise(function(k){setTimeout(k,Ah.getDelay(p._fullLayout))})}function b(){return new Promise(function(k,M){var D=oK(p,u,h),R=p._fullLayout.width,N=p._fullLayout.height;function I(){KL.purge(p),document.body.removeChild(p)}if(u==="full-json"){var W=iK.graphJson(p,!1,"keepdata","object",!0,!0);return W.version=sK,W=JSON.stringify(W),I(),k(m?W:Ah.encodeJSON(W))}if(I(),u==="svg")return k(m?D:Ah.encodeSVG(D));var O=document.createElement("canvas");O.id=ys.randstr(),lK({format:u,width:R,height:N,scale:h,canvas:O,svg:D,promise:!0}).then(k).catch(M)})}function A(k){return m?k.replace(Ah.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){KL.newPlot(p,t,y,_).then(C).then(x).then(b).then(function(D){k(A(D))}).catch(function(D){M(D)})})}QL.exports=uK});var tq=te(($ce,rq)=>{"use strict";var No=gr(),fK=ha(),cK=X0(),vK=oc().dfltConfig,kl=No.isPlainObject,Bc=Array.isArray,xb=No.isArrayOrTypedArray;rq.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=cK.get(),a=[],i={_context:No.extendFlat({},vK)},o,l;Bc(r)?(i.data=No.extendDeep([],r),o=r):(i.data=[],o=[],a.push(ka("array","data"))),kl(t)?(i.layout=No.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&a.push(ka("object","layout"))),fK.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fv.length&&n.push(ka("unused",a,u.concat(v.length)));var _=v.length,C=Array.isArray(y);C&&(_=Math.min(_,y.length));var x,b,A,k,M;if(h.dimensions===2)for(b=0;b<_;b++)if(Bc(f[b])){f[b].length>v[b].length&&n.push(ka("unused",a,u.concat(b,v[b].length)));var D=v[b].length;for(x=0;x<(C?Math.min(D,y[b].length):D);x++)A=C?y[b][x]:y,k=f[b][x],M=v[b][x],No.validate(k,A)?M!==k&&M!==+k&&n.push(ka("dynamic",a,u.concat(b,x),k,M)):n.push(ka("value",a,u.concat(b,x),k))}else n.push(ka("array",a,u.concat(b),f[b]));else for(b=0;b<_;b++)A=C?y[b]:y,k=f[b],M=v[b],No.validate(k,A)?M!==k&&M!==+k&&n.push(ka("dynamic",a,u.concat(b),k,M)):n.push(ka("value",a,u.concat(b),k))}else if(h.items&&!m&&Bc(f)){var R=y[Object.keys(y)[0]],N=[],I,W;for(I=0;I{"use strict";var bK=gr(),am=Ic();function _K(e,r,t){var n=document.createElement("a"),a="download"in n,i=new Promise(function(o,l){var s,u;if(a)return s=am.createBlob(e,t),u=am.createObjectURL(s),n.href=u,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),am.revokeObjectURL(u),s=null,o(r);if(bK.isSafari()){var f=t==="svg"?",":";base64,";return am.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}nq.exports=_K});var wb=te((e0e,oq)=>{"use strict";var iq=gr(),xK=_b(),wK=aq(),Qce=Ic();function MK(e,r){var t;return iq.isPlainObject(e)||(t=iq.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=xK(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),wK(l,o,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}oq.exports=MK});var cq=te(Mb=>{"use strict";var Ii=gr(),Hi=Ii.isPlainObject,lq=X0(),sq=ha(),AK=_o(),uq=yn(),fq=oc().dfltConfig;Mb.makeTemplate=function(e){e=Ii.isPlainObject(e)?e:Ii.getGraphDiv(e),e=Ii.extendDeep({_context:fq},{data:e.data,layout:e.layout}),sq.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(d){var m={};Th(d,m,kK.bind(null,d));var p=Ii.coerce(d,{},AK,"type"),y=n.data[p];y||(y=n.data[p]=[]),y.push(m)}),Th(t,n.layout,TK.bind(null,t)),delete n.layout.template;var a=t.template;if(Hi(a)){var i=a.layout,o,l,s,u,f,v;Hi(i)&&im(i,n.layout);var h=a.data;if(Hi(h)){for(l in n.data)if(s=h[l],Array.isArray(s)){for(f=n.data[l],v=f.length,u=s.length,o=0;o_?o.push({code:"unused",traceType:d,templateCount:y,dataCount:_}):_>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:_})}}function C(x,b){for(var A in x)if(A.charAt(0)!=="_"){var k=x[A],M=Fo(x,A,b);Hi(k)?(Array.isArray(x)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),C(k,M)):Array.isArray(k)&&SK(k)&&C(k,M)}}if(C({data:s,layout:l},""),o.length)return o.map(CK)};function SK(e){for(var r=0;r{"use strict";var da=gb();Cn._doPlot=da._doPlot;Cn.newPlot=da.newPlot;Cn.restyle=da.restyle;Cn.relayout=da.relayout;Cn.redraw=da.redraw;Cn.update=da.update;Cn._guiRestyle=da._guiRestyle;Cn._guiRelayout=da._guiRelayout;Cn._guiUpdate=da._guiUpdate;Cn._storeDirectGUIEdit=da._storeDirectGUIEdit;Cn.react=da.react;Cn.extendTraces=da.extendTraces;Cn.prependTraces=da.prependTraces;Cn.addTraces=da.addTraces;Cn.deleteTraces=da.deleteTraces;Cn.moveTraces=da.moveTraces;Cn.purge=da.purge;Cn.addFrames=da.addFrames;Cn.deleteFrames=da.deleteFrames;Cn.animate=da.animate;Cn.setPlotConfig=da.setPlotConfig;var LK=d1().getGraphDiv,qK=mg().eraseActiveShape;Cn.deleteActiveShape=function(e){return qK(LK(e))};Cn.toImage=_b();Cn.validate=tq();Cn.downloadImage=wb();var vq=cq();Cn.makeTemplate=vq.makeTemplate;Cn.validateTemplate=vq.validateTemplate});var pq=te((n0e,dq)=>{"use strict";var Ab=gr(),DK=dt();dq.exports=function(r,t,n,a){var i=a("x"),o=a("y"),l,s=DK.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],n),i){var u=Ab.minRowLength(i);o?l=Math.min(u,Ab.minRowLength(o)):(l=u,a("y0"),a("dy"))}else{if(!o)return 0;l=Ab.minRowLength(o),a("x0"),a("dx")}return t._length=l,l}});var bq=te((a0e,yq)=>{"use strict";var gq=gr().dateTick0,EK=Pn(),PK=EK.ONEWEEK;function mq(e,r){return e%PK===0?gq(r,1):gq(r,0)}yq.exports=function(r,t,n,a,i){if(i||(i={x:!0,y:!0}),i.x){var o=a("xperiod");o&&(a("xperiod0",mq(o,t.xcalendar)),a("xperiodalignment"))}if(i.y){var l=a("yperiod");l&&(a("yperiod0",mq(l,t.ycalendar)),a("yperiodalignment"))}}});var wq=te((i0e,xq)=>{"use strict";var _q=["orientation","groupnorm","stackgaps"];xq.exports=function(r,t,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h<_q.length;h++){var d=_q[h],m=d+"Found";if(!u[m]){var p=r[d]!==void 0,y=d==="orientation";if((p||f)&&(u[d]=a(d,v[d]),y&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),p&&(u[m]=!0,!f&&(delete u.traces[0][d],y))))for(var _=0;_{"use strict";var Mq=Rt(),Aq=ns().hasColorscale,Tq=Q0(),RK=ri();kq.exports=function(r,t,n,a,i,o={}){var l=RK.isBubble(r),s=(r.line||{}).color,u;if(s&&(n=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",n),Aq(r,"marker")&&Tq(r,t,a,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=Mq.background:u=Mq.defaultLine,i("marker.line.color",u),Aq(r,"marker.line")&&Tq(r,t,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var kb=te((l0e,Sq)=>{"use strict";var zK=gr().isArrayOrTypedArray,NK=ns().hasColorscale,FK=Q0();Sq.exports=function(r,t,n,a,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",n),NK(r,"line"))FK(r,t,a,i,{prefix:"line.",cLetter:"c"});else{var s=(zK(l)?!1:l)||n;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var Lq=te((s0e,Cq)=>{"use strict";Cq.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var Sb=te((u0e,qq)=>{"use strict";var IK=gr();qq.exports=function(e,r,t,n,a){a=a||{},n("textposition"),IK.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Cb=te((f0e,Eq)=>{"use strict";var lm=Rt(),Dq=gr().isArrayOrTypedArray;function HK(e){for(var r=lm.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var Pq=gr(),BK=dt(),OK=Fc(),UK=zg(),Mv=ri(),YK=pq(),GK=bq(),VK=wq(),WK=Tb(),ZK=kb(),Rq=Lq(),XK=Sb(),jK=Cb(),JK=gr().coercePattern;zq.exports=function(r,t,n,a){function i(d,m){return Pq.coerce(r,t,OK,d,m)}var o=YK(r,t,a,i);if(o||(t.visible=!1),!!t.visible){GK(r,t,a,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=VK(r,t,a,i);a.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var $K=J1().getAxisGroup;Fq.exports=function(r,t,n,a,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=$K(n,l)+o,u=n._alignmentOpts||{},f=a("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=a("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var Bq=te((h0e,Hq)=>{"use strict";var KK=gr(),QK=Iq(),eQ=Fc();Hq.exports=function(r,t){var n,a,i,o=t.scattermode;function l(h){return KK.coerce(a._input,a,eQ,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var Uq=te((d0e,Oq)=>{"use strict";var rQ=gr(),tQ=rp();Oq.exports=function(e,r){function t(a,i){return rQ.coerce(e,r,tQ,a,i)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var Vq=te((p0e,Gq)=>{"use strict";var nQ=Ht(),Yq=gr(),aQ=Yq.dateTime2ms,sm=Yq.incrementMonth,iQ=Pn(),oQ=iQ.ONEAVGMONTH;Gq.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var i=r[n+"periodalignment"];if(!i)return{vals:a};var o=r[n+"period"],l;if(nQ(o)){if(o=+o,o<=0)return{vals:a}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:a}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[n+"period0"],d=aQ(h,u)||0,m=[],p=[],y=[],_=a.length,C=0;C<_;C++){var x=a[C],b,A,k;if(l){for(b=Math.round((x-d)/(l*oQ)),k=sm(d,l*b,u);k>x;)k=sm(k,-l,u);for(;k<=x;)k=sm(k,l,u);A=sm(k,-l,u)}else{for(b=Math.round((x-d)/o),k=d+b*o;k>x;)k-=o;for(;k<=x;)k+=o;A=k-o}m[C]=f?A:v?k:(A+k)/2,p[C]=A,y[C]=k}return{vals:m,starts:p,ends:y}}});var Db=te((g0e,Zq)=>{"use strict";var Lb=ns().hasColorscale,qb=vp(),Wq=ri();Zq.exports=function(r,t){Wq.hasLines(t)&&Lb(t,"line")&&qb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Wq.hasMarkers(t)&&(Lb(t,"marker")&&qb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Lb(t,"marker.line")&&qb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var kh=te((m0e,Xq)=>{"use strict";var Bn=gr();Xq.exports=function(r,t){for(var n=0;n{"use strict";var jq=gr();Jq.exports=function(r,t){jq.isArrayOrTypedArray(t.selectedpoints)&&jq.tagSelected(r,t)}});var fm=te((b0e,nD)=>{"use strict";var $q=Ht(),Pb=gr(),Sh=qn(),Kq=Vq(),Eb=Pn().BADNUM,Rb=ri(),lQ=Db(),sQ=kh(),uQ=um();function fQ(e,r){var t=e._fullLayout,n=r._xA=Sh.getFromId(e,r.xaxis||"x","x"),a=r._yA=Sh.getFromId(e,r.yaxis||"y","y"),i=n.makeCalcdata(r,"x"),o=a.makeCalcdata(r,"y"),l=Kq(r,n,"x",i),s=Kq(r,a,"y",o),u=l.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=zb(r,t,n,a),p=!1,y,_,C,x,b,A;rD(t,r);var k="x",M="y",D;if(m)Pb.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(M="s",D="x"):(k="s",D="y"),b=m.stackgaps==="interpolate";else{var R=eD(r,v);Qq(e,r,n,a,u,f,R)}var N=!!r.xperiodalignment,I=!!r.yperiodalignment;for(_=0;__&&h[x].gap;)x--;for(A=h[x].s,C=h.length-1;C>x;C--)h[C].s=A;for(;_{"use strict";aD.exports=cm;var cQ=gr().distinctVals;function cm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],i=0;i{"use strict";oD.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var vD=te((w0e,cD)=>{"use strict";var Io=Ht(),{isArrayOrTypedArray:cu}=gr(),{BADNUM:Av}=Pn(),vQ=dt(),Ch=qn(),{getAxisGroup:hQ}=J1(),vm=iD(),{TEXTPAD:dQ}=lD(),{LINE_SPACING:pQ}=Oa(),{BR_TAG_ALL:gQ}=ei();function mQ(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!Io(l))}for(var f=0;fn(i))):n(e.text);let a=e.outsidetextfont.size*pQ*t+dQ;return{ppadplus:r.some(i=>i.s<0)?a:0,ppadminus:r.some(i=>i.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function SQ(e,r,t,n){for(var a=Tv(n),i=0;i{"use strict";var hD=fm(),dD=vD().setGroupPositions;function LQ(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uR[f]&&f{"use strict";var DQ=cn(),_D=Pn(),Lh=_D.BADNUM,xD=_D.LOG_CLIP,mD=xD+.5,yD=xD-.5,hm=gr(),EQ=hm.segmentsIntersect,bD=hm.constrain,Ub=zg();wD.exports=function(r,t){var n=t.trace||{},a=t.xaxis,i=t.yaxis,o=a.type==="log",l=i.type==="log",s=a._length,u=i._length,f=t.backoff,v=n.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=n.fill&&n.fill!=="none",_=[],C=Ub.minTolerance,x=r.length,b=new Array(x),A=0,k,M,D,R,N,I,W,O,Z,H,ee,ie,re,K,fe,le;function ke(lr){var xe=r[lr];if(!xe)return!1;var Ae=t.linearized?a.l2p(xe.x):a.c2p(xe.x),Ke=t.linearized?i.l2p(xe.y):i.c2p(xe.y);if(Ae===Lh){if(o&&(Ae=a.c2p(xe.x,!0)),Ae===Lh)return!1;l&&Ke===Lh&&(Ae*=Math.abs(a._m*u*(a._m>0?mD:yD)/(i._m*s*(i._m>0?mD:yD)))),Ae*=1e3}if(Ke===Lh){if(l&&(Ke=i.c2p(xe.y,!0)),Ke===Lh)return!1;Ke*=1e3}return[Ae,Ke]}function Ne(lr,xe,Ae,Ke){var nr=Ae-lr,Sr=Ke-xe,Yr=.5-lr,zr=.5-xe,st=nr*nr+Sr*Sr,bt=nr*Yr+Sr*zr;if(bt>0&&bt1||Math.abs(Yr.y-Ae[0][1])>1)&&(Yr=[Yr.x,Yr.y],Ke&&er(Yr,lr)Pe||lr[1]G)return[bD(lr[0],ge,Pe),bD(lr[1],de,G)]}function or(lr,xe){if(lr[0]===xe[0]&&(lr[0]===ge||lr[0]===Pe)||lr[1]===xe[1]&&(lr[1]===de||lr[1]===G))return!0}function hr(lr,xe){var Ae=[],Ke=cr(lr),nr=cr(xe);return Ke&&nr&&or(Ke,nr)||(Ke&&Ae.push(Ke),nr&&Ae.push(nr)),Ae}function Je(lr,xe,Ae){return function(Ke,nr){var Sr=cr(Ke),Yr=cr(nr),zr=[];if(Sr&&Yr&&or(Sr,Yr))return zr;Sr&&zr.push(Sr),Yr&&zr.push(Yr);var st=2*hm.constrain((Ke[lr]+nr[lr])/2,xe,Ae)-((Sr||Ke)[lr]+(Yr||nr)[lr]);if(st){var bt;Sr&&Yr?bt=st>0==Sr[lr]>Yr[lr]?Sr:Yr:bt=Sr||Yr,bt[lr]+=st}return zr}}var pr;m==="linear"||m==="spline"?pr=Be:m==="hv"||m==="vh"?pr=hr:m==="hvh"?pr=Je(0,ge,Pe):m==="vhv"&&(pr=Je(1,de,G));function yr(lr,xe){var Ae=xe[0]-lr[0],Ke=(xe[1]-lr[1])/Ae,nr=(lr[1]*xe[0]-xe[1]*lr[0])/Ae;return nr>0?[Ke>0?ge:Pe,G]:[Ke>0?Pe:ge,de]}function Te(lr){var xe=lr[0],Ae=lr[1],Ke=xe===b[A-1][0],nr=Ae===b[A-1][1];if(!(Ke&&nr))if(A>1){var Sr=xe===b[A-2][0],Yr=Ae===b[A-2][1];Ke&&(xe===ge||xe===Pe)&&Sr?Yr?A--:b[A-1]=lr:nr&&(Ae===de||Ae===G)&&Yr?Sr?A--:b[A-1]=lr:b[A++]=lr}else b[A++]=lr}function Ue(lr){b[A-1][0]!==lr[0]&&b[A-1][1]!==lr[1]&&Te([qe,Ie]),Te(lr),ar=null,qe=Ie=0}var kr=hm.isArrayOrTypedArray(v);function Ur(lr){if(lr&&f&&(lr.i=k,lr.d=r,lr.trace=n,lr.marker=kr?v[lr.i]:v,lr.backoff=f),He=lr[0]/s,Xe=lr[1]/u,$=lr[0]Pe?Pe:0,be=lr[1]G?G:0,$||be){if(!A)b[A++]=[$||lr[0],be||lr[1]];else if(ar){var xe=pr(ar,lr);xe.length>1&&(Ue(xe[0]),b[A++]=xe[1])}else Qe=pr(b[A-1],lr)[0],b[A++]=Qe;var Ae=b[A-1];$&&be&&(Ae[0]!==$||Ae[1]!==be)?(ar&&(qe!==$&&Ie!==be?Te(qe&&Ie?yr(ar,lr):[qe||$,Ie||be]):qe&&Ie&&Te([qe,Ie])),Te([$,be])):qe-$&&Ie-be&&Te([$||qe,be||Ie]),ar=lr,qe=$,Ie=be}else ar&&Ue(pr(ar,lr)[0]),b[A++]=lr}for(k=0;kCe(I,tr))break;D=I,re=Z[0]*O[0]+Z[1]*O[1],re>ee?(ee=re,R=I,W=!1):re=r.length||!I)break;Ur(I),M=I}}ar&&Te([qe||ar[0],Ie||ar[1]]),_.push(b.slice(0,A))}var Ye=m.slice(m.length-1);if(f&&Ye!=="h"&&Ye!=="v"){for(var Ze=!1,dr=-1,Ar=[],mr=0;mr<_.length;mr++)for(var br=0;br<_[mr].length-1;br++){var Ir=_[mr][br],Cr=_[mr][br+1],Er=DQ.applyBackoff(Cr,Ir);(Er[0]!==Cr[0]||Er[1]!==Cr[1])&&(Ze=!0),Ar[dr+1]||(dr++,Ar[dr]=[Ir,[Er[0],Er[1]]])}return Ze?Ar:_}return _}});var kD=te((T0e,TD)=>{"use strict";var AD={tonextx:1,tonexty:1,tonext:1};TD.exports=function(r,t,n){var a,i,o,l,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Sl=kt(),PQ=dt(),qh=gr(),kv=qh.ensureSingle,CD=qh.identity,Gn=cn(),Sv=ri(),RQ=MD(),zQ=kD(),dm=Lg().tester;LD.exports=function(r,t,n,a,i,o){var l,s,u=!i,f=!!i&&i.duration>0,v=zQ(r,t,n);if(l=a.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),NQ(r,l,t),f){o&&(s=o());var h=Sl.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){a.selectAll("g.trace").each(function(d,m){SD(r,m,t,d,v,this,i)})})}else l.each(function(d,m){SD(r,m,t,d,v,this,i)});u&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function NQ(e,r,t){r.each(function(n){var a=kv(Sl.select(this),"g","fills");Gn.setClipUrl(a,t.layerClipId,e);var i=n[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=a.selectAll("g").data(o,CD);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=kv(Sl.select(this),"path","js-fill")})})}function SD(e,r,t,n,a,i,o){var l=e._context.staticPlot,s;FQ(e,r,t,n,a);var u=!!o&&o.duration>0;function f(Je){return u?Je.transition():Je}var v=t.xaxis,h=t.yaxis,d=n[0].trace,m=d.line,p=Sl.select(i),y=kv(p,"g","errorbars"),_=kv(p,"g","lines"),C=kv(p,"g","points"),x=kv(p,"g","text");if(PQ.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var b,A,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,D;k==="y"?(M=1,D=h.c2p(0,!0)):k==="x"&&(M=0,D=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var R="",N=[],I=d._prevtrace,W=null,O=null;I&&(R=I._prevRevpath||"",A=I._nextFill,N=I._ownPolygons,W=I._fillsegments,O=I._fillElement);var Z,H,ee="",ie="",re,K,fe,le,ke,Ne,He=[];d._polygons=[];var Xe=[],Ce=[],er=qh.noop;if(b=d._ownFill,Sv.hasLines(d)||d.fill!=="none"){A&&A.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(re=Gn.steps(m.shape),K=Gn.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?re=K=function(Je){var pr=Je[Je.length-1];return Je.length>1&&Je[0][0]===pr[0]&&Je[0][1]===pr[1]?Gn.smoothclosed(Je.slice(1),m.smoothing):Gn.smoothopen(Je,m.smoothing)}:re=K=function(Je){return"M"+Je.join("L")},fe=function(Je){return K(Je.reverse())},Ce=RQ(n,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Xe=new Array(Ce.length);var ce=0;for(s=0;s=l[0]&&p.x<=l[1]&&p.y>=s[0]&&p.y<=s[1]}),h=Math.ceil(v.length/f),d=0;a.forEach(function(p,y){var _=p[0].trace;Sv.hasMarkers(_)&&_.marker.maxdisplayed>0&&y{"use strict";DD.exports={container:"marker",min:"cmin",max:"cmax"}});var PD=te((C0e,ED)=>{"use strict";var pm=qn();ED.exports=function(r,t,n){var a={},i={_fullLayout:n},o=pm.getFromTrace(i,t,"x"),l=pm.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),a.xLabel=pm.tickText(o,o.c2l(s),!0).text,a.yLabel=pm.tickText(l,l.c2l(u),!0).text,a}});var Dh=te((L0e,RD)=>{"use strict";var Gb=kt(),Cv=cn(),IQ=dt();function HQ(e){var r=Gb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=Gb.select(this),a=t.trace||t[0].trace;Vb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Gb.select(this),a=t.trace||t[0].trace;Wb(n,a,e)}),r.selectAll("g.trace path.js-line").call(Cv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Cv.fillGroupStyle,e,!1),IQ.getComponentMethod("errorbars","style")(r)}function Vb(e,r,t){Cv.pointStyle(e.selectAll("path.point"),r,t)}function Wb(e,r,t){Cv.textPointStyle(e.selectAll("text"),r,t)}function BQ(e,r,t){var n=r[0].trace;n.selectedpoints?(Cv.selectedPointStyle(t.selectAll("path.point"),n),Cv.selectedTextStyle(t.selectAll("text"),n)):(Vb(t,n,e),Wb(t,n,e))}RD.exports={style:HQ,stylePoints:Vb,styleText:Wb,styleOnSelect:BQ}});var Zb=te((q0e,zD)=>{"use strict";var Lv=Rt(),OQ=ri();zD.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Lv.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return a=i&&Lv.opacity(i)?i:o&&Lv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",a?Lv.opacity(a)<.3?Lv.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Lv.opacity(n)&&OQ.hasLines(r)&&r.line.width?n:r.fillcolor)}});var ID=te((D0e,FD)=>{"use strict";var gm=gr(),ND=Ml(),UQ=dt(),YQ=Zb(),Xb=Rt(),GQ=gm.fillText;FD.exports=function(r,t,n,a){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(n),v=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(ie){if(m){var re=l.c2p(ie.xStart),K=l.c2p(ie.xEnd);return u>=Math.min(re,K)&&u<=Math.max(re,K)?0:1/0}var fe=Math.max(3,ie.mrc||0),le=1-1/fe,ke=Math.abs(l.c2p(ie.x)-u);return ke=Math.min(re,K)&&f<=Math.max(re,K)?0:1/0}var fe=Math.max(3,ie.mrc||0),le=1-1/fe,ke=Math.abs(s.c2p(ie.y)-f);return keHe!=G>=He&&(ge=er[Ce-1][0],Pe=er[Ce][0],G-de&&(ce=ge+(Pe-ge)*(He-de)/(G-de),fe=Math.min(fe,ce),le=Math.max(le,ce)));return fe=Math.max(fe,0),le=Math.min(le,l._length),{x0:fe,x1:le,y0:He,y1:He}}if(h.indexOf("fills")!==-1&&o._fillElement){var Z=W(o._fillElement)&&!W(o._fillExclusionElement);if(Z){var H=O(o._polygons);H===null&&(H={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var ee=Xb.defaultLine;return Xb.opacity(o.fillcolor)?ee=o.fillcolor:Xb.opacity((o.line||{}).color)&&(ee=o.line.color),gm.extendFlat(r,{distance:r.maxHoverDistance,x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1,color:ee,hovertemplate:!1}),delete r.index,o.text&&!gm.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var OD=te((E0e,BD)=>{"use strict";var HD=ri();BD.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h=!HD.hasMarkers(l)&&!HD.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";UD.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var ZD=te((R0e,WD)=>{"use strict";var Eh=dt().traceIs,jb=p3();WD.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var i=n("type",(a.splomStash||{}).type);i==="-"&&(VQ(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function VQ(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var i=WQ(r,t,n);if(i){if(i.type==="histogram"&&n==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=n+"calendar",l=i[o],s={noMultiCategory:!Eh(i,"cartesian")||Eh(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&n==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,VD(i,n)){var u=GD(i),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(VD(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function GD(e){return{v:"x",h:"y"}[e.orientation||"v"]}function VD(e,r){var t=GD(e),n=Eh(e,"box-violin"),a=Eh(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var jD=te((z0e,XD)=>{"use strict";var ZQ=qi().isTypedArraySpec;function XQ(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,i,o;if(r.axData)a=r.axData;else for(a=[],i=0;i0||ZQ(i),l;o&&(l="array");var s=n("categoryorder",l),u;s==="array"&&(u=n("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=XQ(t,a).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var KD=te((N0e,$D)=>{"use strict";var JD=es().mix,jQ=dl(),JQ=gr();$D.exports=function(r,t,n,a){a=a||{};var i=a.dfltColor;function o(D,R){return JQ.coerce2(r,t,a.attributes,D,R)}var l=o("linecolor",i),s=o("linewidth"),u=n("showline",a.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=JD(i,a.bgColor,a.blend||jQ.lightFraction).toRgbString(),v=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=n("showgrid",a.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var p=JD(t.gridcolor,a.bgColor,67).toRgbString(),y=o("minor.gridcolor",p),_=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=n("minor.showgrid",!!y||!!_||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var b=o("zerolinelayer"),A=o("zerolinecolor",i),k=o("zerolinewidth"),M=n("zeroline",a.showGrid||!!A||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var $b=te((F0e,aE)=>{"use strict";var QD=Ht(),$Q=dt(),Ph=gr(),KQ=yn(),QQ=_l(),Jb=bl(),eE=H2(),rE=O2(),eee=G2(),ree=V2(),tee=jD(),nee=KD(),aee=N3(),tE=Cp(),mm=xa().WEEKDAY_PATTERN,iee=xa().HOUR_PATTERN;aE.exports=function(r,t,n,a,i){var o=a.letter,l=a.font||{},s=a.splomStash||{},u=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=$Q.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",a.calendar),a.noTicklabelmode||(h=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=Ph.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),tE(t,i),aee(r,t,n,a),tee(r,t,n,a),a.noHover||(v!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var p=n("color"),y=p!==Jb.color.dflt?p:l.color,_=s.label||i._dfltTitle[o];if(ree(r,t,n,v,a),!u)return t;n("title.text",_),Ph.coerceFont(n,"title.font",l,{overrideDflt:{size:Ph.bigFont(l.size),color:y}}),eE(r,t,n,v);var C=a.hasMinor;if(C&&(KQ.newContainer(t,"minor"),eE(r,t,n,v,{isMinor:!0})),eee(r,t,n,v,a),rE(r,t,n,a),C){var x=a.isMinor;a.isMinor=!0,rE(r,t,n,a),a.isMinor=x}nee(r,t,n,{dfltColor:p,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:C,attributes:Jb}),C&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var b=v==="multicategory";if(!a.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),b){var A=n("showdividers");A&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(QQ(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:oee}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=nE(i[l]),s){o=mm;break}}var u=n("pattern",o);if(u===mm)for(l=0;l<2;l++)s=nE(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case mm:if(!QD(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case iee:if(!QD(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var see=Ht(),ym=gr();iE.exports=function(r,t,n,a){var i=a.counterAxes||[],o=a.overlayableAxes||[],l=a.letter,s=a.grid,u=a.overlayingDomain,f,v,h,d,m,p;s&&(v=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[l+"side"].split(" ")[0],d=s.domain[l][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(see(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=ym.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=ym.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=n("autoshift");C&&(d=_==="left"?u[0]:u[1],p=t.automargin?t.automargin:!0,m=_==="left"?-3:3),n("shift",m)}n("position",d)}n("automargin",p);var x=!1;if(o.length&&(x=ym.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var b=n("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),ym.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var dE=te((H0e,hE)=>{"use strict";var Oc=gr(),oE=Rt(),uee=$u().isUnifiedHover,fee=f5(),lE=yn(),cee=F0(),sE=bl(),vee=ZD(),uE=$b(),hee=J1(),fE=Kb(),e4=va(),bs=e4.id2name,cE=e4.name2id,dee=xa().AX_ID_PATTERN,vE=dt(),bm=vE.traceIs,Qb=vE.getComponentMethod;function _m(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}hE.exports=function(r,t,n){var a=t.autotypenumbers,i={},o={},l={},s={},u={},f={},v={},h={},d={},m={},p,y;for(p=0;p{"use strict";var pee=kt(),pE=dt(),xm=gr(),to=cn(),wm=qn();gE.exports=function(r,t,n,a){var i=r._fullLayout;if(t.length===0){wm.redrawComponents(r);return}function o(y){var _=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(to.setTranslate,0,0).call(to.setScale,1,1),y.plot.call(to.setTranslate,_._offset,C._offset).call(to.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(to.setPointGroupScale,1,1),x.selectAll(".textpoint").call(to.setTextPointsScale,1,1),x.call(to.hideOutsideRangePoints,y)}function l(y,_){var C=y.plotinfo,x=C.xaxis,b=C.yaxis,A=x._length,k=b._length,M=!!y.xr1,D=!!y.yr1,R=[];if(M){var N=xm.simpleMap(y.xr0,x.r2l),I=xm.simpleMap(y.xr1,x.r2l),W=N[1]-N[0],O=I[1]-I[0];R[0]=(N[0]*(1-_)+_*I[0]-N[0])/(N[1]-N[0])*A,R[2]=A*(1-_+_*O/W),x.range[0]=x.l2r(N[0]*(1-_)+_*I[0]),x.range[1]=x.l2r(N[1]*(1-_)+_*I[1])}else R[0]=0,R[2]=A;if(D){var Z=xm.simpleMap(y.yr0,b.r2l),H=xm.simpleMap(y.yr1,b.r2l),ee=Z[1]-Z[0],ie=H[1]-H[0];R[1]=(Z[1]*(1-_)+_*H[1]-Z[1])/(Z[0]-Z[1])*k,R[3]=k*(1-_+_*ie/ee),b.range[0]=x.l2r(Z[0]*(1-_)+_*H[0]),b.range[1]=b.l2r(Z[1]*(1-_)+_*H[1])}else R[1]=0,R[3]=k;wm.drawOne(r,x,{skipTitle:!0}),wm.drawOne(r,b,{skipTitle:!0}),wm.redrawComponents(r,[x._id,b._id]);var re=M?A/R[2]:1,K=D?k/R[3]:1,fe=M?R[0]:0,le=D?R[1]:0,ke=M?R[0]/R[2]*A:0,Ne=D?R[1]/R[3]*k:0,He=x._offset-ke,Xe=b._offset-Ne;C.clipRect.call(to.setTranslate,fe,le).call(to.setScale,1/re,1/K),C.plot.call(to.setTranslate,He,Xe).call(to.setScale,re,K),to.setPointGroupScale(C.zoomScalePts,1/re,1/K),to.setTextPointsScale(C.zoomScaleTxt,1/re,1/K)}var s;a&&(s=a());function u(){for(var y={},_=0;_n.duration?(u(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return v=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var r4=te(Ga=>{"use strict";var Am=kt(),yE=dt(),Uc=gr(),gee=ha(),mee=cn(),bE=T1().getModuleCalcData,df=va(),Cl=xa(),yee=gc(),Xt=Uc.ensureSingle;function Mm(e,r,t){return Uc.ensureSingle(e,r,t,function(n){n.datum(t)})}var Yc=Cl.zindexSeparator;Ga.name="cartesian";Ga.attr=["xaxis","yaxis"];Ga.idRoot=["x","y"];Ga.idRegex=Cl.idRegex;Ga.attrRegex=Cl.attrRegex;Ga.attributes=YD();Ga.layoutAttributes=bl();Ga.supplyLayoutDefaults=dE();Ga.transitionAxes=mE();Ga.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(Yc)!==-1)continue;d+=Yc+(u+1),h=Uc.extendFlat({},h,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y1&&(A+=Yc+b),x.push(l+A),o=0;o1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Xt(n,"path","xlines-above"),r.ylines=Xt(n,"path","ylines-above"),r.xaxislayer=Xt(n,"g","xaxislayer-above"),r.yaxislayer=Xt(n,"g","yaxislayer-above");else{if(!o){var h=Xt(n,"g","layer-subplot");r.shapelayer=Xt(h,"g","shapelayer"),r.imagelayer=Xt(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Xt(n,"g","minor-gridlayer"),r.gridlayer=Xt(n,"g","gridlayer"),r.zerolinelayer=Xt(n,"g","zerolinelayer"));var d=Xt(n,"g","layer-between");r.shapelayerBetween=Xt(d,"g","shapelayer"),r.imagelayerBetween=Xt(d,"g","imagelayer"),Xt(n,"path","xlines-below"),Xt(n,"path","ylines-below"),r.overlinesBelow=Xt(n,"g","overlines-below"),Xt(n,"g","xaxislayer-below"),Xt(n,"g","yaxislayer-below"),r.overaxesBelow=Xt(n,"g","overaxes-below")}r.overplot=Xt(n,"g","overplot"),r.plot=Xt(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Xt(n,"g","zerolinelayer-above"),o||(r.xlines=Xt(n,"path","xlines-above"),r.ylines=Xt(n,"path","ylines-above"),r.overlinesAbove=Xt(n,"g","overlines-above"),Xt(n,"g","xaxislayer-above"),Xt(n,"g","yaxislayer-above"),r.overaxesAbove=Xt(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+s),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+s))}else{var m=v.plotgroup,p=a+"-x",y=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Xt(v.overlinesBelow,"path",p),Xt(v.overlinesBelow,"path",y),Xt(v.overaxesBelow,"g",p),Xt(v.overaxesBelow,"g",y),r.plot=Xt(v.overplot,"g",a),Xt(v.overlinesAbove,"path",p),Xt(v.overlinesAbove,"path",y),Xt(v.overaxesAbove,"g",p),Xt(v.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}o||(u||(Mm(r.minorGridlayer,"g",r.xaxis._id),Mm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(df.idSort),Mm(r.gridlayer,"g",r.xaxis._id),Mm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(df.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function wE(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Am.select(this);f.remove(),ME(u,r),t[u]=!0});for(var n in r._plots)for(var a=r._plots[n],i=a.overlays||[],o=0;o{"use strict";var Tm=ri();AE.exports={hasLines:Tm.hasLines,hasMarkers:Tm.hasMarkers,hasText:Tm.hasText,isBubble:Tm.isBubble,attributes:Fc(),layoutAttributes:rp(),supplyDefaults:Nq(),crossTraceDefaults:Bq(),supplyLayoutDefaults:Uq(),calc:fm().calc,crossTraceCalc:gD(),arraysToCalcdata:kh(),plot:qD(),colorbar:Yb(),formatLabels:PD(),style:Dh().style,styleOnSelect:Dh().styleOnSelect,hoverPoints:ID(),selectPoints:OD(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:r4(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var CE=te((Y0e,SE)=>{"use strict";var _ee=kt(),xee=Rt(),kE=$5(),t4=gr(),wee=t4.strScale,Mee=t4.strRotate,Aee=t4.strTranslate;SE.exports=function(r,t,n){var a=r.node(),i=kE[n.arrowhead||0],o=kE[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),s=(n.arrowwidth||1)*(n.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*l+n.standoff,h=o.backoff*s+n.startstandoff,d,m,p,y;if(a.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,_),y=p+Math.PI,v&&h&&v+h>Math.sqrt(_*_+C*C)){Z();return}if(v){if(v*v>_*_+C*C){Z();return}var x=v*Math.cos(p),b=v*Math.sin(p);m.x+=x,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+C*C){Z();return}var A=h*Math.cos(p),k=h*Math.sin(p);d.x-=A,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(a.nodeName==="path"){var M=a.getTotalLength(),D="";if(M{"use strict";var LE=kt(),n4=dt(),Tee=ha(),gf=gr(),a4=gf.strTranslate,zh=qn(),Gc=Rt(),vu=cn(),qE=Ml(),i4=ei(),o4=af(),Rh=ko(),kee=yn().arrayEditor,See=CE();PE.exports={draw:Cee,drawOne:DE,drawRaw:EE};function Cee(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?nr="right":nr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nr]}for(var de=!1,G=["x","y"],Q=0;Q1)&&(qe===be?(tr=Ie.r2fraction(r["a"+$]),(tr<0||tr>1)&&(de=!0)):de=!0),pr=Ie._offset+Ie.r2p(r[$]),Ue=.5}else{var Ye=Ur==="domain";$==="x"?(Te=r[$],pr=Ye?Ie._offset+Ie._length*Te:pr=l.l+l.w*Te):(Te=1-r[$],pr=Ye?Ie._offset+Ie._length*Te:pr=l.t+l.h*Te),Ue=r.showarrow?.5:Te}if(r.showarrow){Je.head=pr;var Ze=r["a"+$];if(kr=Qe*Pe(.5,r.xanchor)-Be*Pe(.5,r.yanchor),qe===be){var dr=zh.getRefType(qe);dr==="domain"?($==="y"&&(Ze=1-Ze),Je.tail=Ie._offset+Ie._length*Ze):dr==="paper"?$==="y"?(Ze=1-Ze,Je.tail=l.t+l.h*Ze):Je.tail=l.l+l.w*Ze:Je.tail=Ie._offset+Ie.r2p(Ze),yr=kr}else Je.tail=pr+Ze,yr=kr+Ze;Je.text=Je.tail+kr;var Ar=o[$==="x"?"width":"height"];if(be==="paper"&&(Je.head=gf.constrain(Je.head,1,Ar-1)),qe==="pixel"){var mr=-Math.max(Je.tail-3,Je.text),br=Math.min(Je.tail+3,Je.text)-Ar;mr>0?(Je.tail+=mr,Je.text+=mr):br>0&&(Je.tail-=br,Je.text-=br)}Je.tail+=hr,Je.head+=hr}else kr=cr*Pe(Ue,or),yr=kr,Je.text=pr+kr;Je.text+=hr,kr+=hr,yr+=hr,r["_"+$+"padplus"]=cr/2+yr,r["_"+$+"padminus"]=cr/2-yr,r["_"+$+"size"]=cr,r["_"+$+"shift"]=kr}if(de){M.remove();return}var Ir=0,Cr=0;if(r.align!=="left"&&(Ir=(Ce-He)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Cr=(er-Xe)*(r.valign==="middle"?.5:1)),ke)le.select("svg").attr({x:N+Ir-1,y:N+Cr}).call(vu.setClipUrl,W?p:null,e);else{var Er=N+Cr-Ne.top,lr=N+Ir-Ne.left;ee.call(i4.positionText,lr,Er).call(vu.setClipUrl,W?p:null,e)}O.select("rect").call(vu.setRect,N,N,Ce,er),I.call(vu.setRect,D/2,D/2,ce-D,ge-D),M.call(vu.setTranslate,Math.round(y.x.text-ce/2),Math.round(y.y.text-ge/2)),x.attr({transform:"rotate("+_+","+y.x.text+","+y.y.text+")"});var xe=function(Ke,nr){C.selectAll(".annotation-arrow-g").remove();var Sr=y.x.head,Yr=y.y.head,zr=y.x.tail+Ke,st=y.y.tail+nr,bt=y.x.text+Ke,St=y.y.text+nr,$t=gf.rotationXYMatrix(_,bt,St),vn=gf.apply2DTransform($t),hn=gf.apply2DTransform2($t),Ln=+I.attr("width"),Ut=+I.attr("height"),en=bt-.5*Ln,Kt=en+Ln,rn=St-.5*Ut,la=rn+Ut,xn=[[en,rn,en,la],[en,la,Kt,la],[Kt,la,Kt,rn],[Kt,rn,en,rn]].map(hn);if(!xn.reduce(function(Qt,An){return Qt^!!gf.segmentsIntersect(Sr,Yr,Sr+1e6,Yr+1e6,An[0],An[1],An[2],An[3])},!1)){xn.forEach(function(Qt){var An=gf.segmentsIntersect(zr,st,Sr,Yr,Qt[0],Qt[1],Qt[2],Qt[3]);An&&(zr=An.x,st=An.y)});var On=r.arrowwidth,Gr=r.arrowcolor,on=r.arrowside,Pt=C.append("g").style({opacity:Gc.opacity(Gr)}).classed("annotation-arrow-g",!0),tn=Pt.append("path").attr("d","M"+zr+","+st+"L"+Sr+","+Yr).style("stroke-width",On+"px").call(Gc.stroke,Gc.rgb(Gr));if(See(tn,on,r),s.annotationPosition&&tn.node().parentNode&&!n){var zn=Sr,Wn=Yr;if(r.standoff){var Yt=Math.sqrt(Math.pow(Sr-zr,2)+Math.pow(Yr-st,2));zn+=r.standoff*(zr-Sr)/Yt,Wn+=r.standoff*(st-Yr)/Yt}var ga=Pt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(zr-zn)+","+(st-Wn),transform:a4(zn,Wn)}).style("stroke-width",On+6+"px").call(Gc.stroke,"rgba(0,0,0,0)").call(Gc.fill,"rgba(0,0,0,0)"),ma,wn;Rh.init({element:ga.node(),gd:e,prepFn:function(){var Qt=vu.getTranslate(M);ma=Qt.x,wn=Qt.y,a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(Qt,An){var ta=vn(ma,wn),oo=ta[0]+Qt,yi=ta[1]+An;M.call(vu.setTranslate,oo,yi),d("x",pf(a,Qt,"x",l,r)),d("y",pf(i,An,"y",l,r)),r.axref===r.xref&&d("ax",pf(a,Qt,"ax",l,r)),r.ayref===r.yref&&d("ay",pf(i,An,"ay",l,r)),Pt.attr("transform",a4(Qt,An)),x.attr({transform:"rotate("+_+","+oo+","+yi+")"})},doneFn:function(){n4.call("_guiRelayout",e,m());var Qt=document.querySelector(".js-notes-box-panel");Qt&&Qt.redraw(Qt.selectedObj)}})}}};if(r.showarrow&&xe(0,0),b){var Ae;Rh.init({element:M.node(),gd:e,prepFn:function(){Ae=x.attr("transform")},moveFn:function(Ke,nr){var Sr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",pf(a,Ke,"ax",l,r)):d("ax",r.ax+Ke),r.ayref===r.yref?d("ay",pf(i,nr,"ay",l.w,r)):d("ay",r.ay+nr),xe(Ke,nr);else{if(n)return;var Yr,zr;if(a)Yr=pf(a,Ke,"x",l,r);else{var st=r._xsize/l.w,bt=r.x+(r._xshift-r.xshift)/l.w-st/2;Yr=Rh.align(bt+Ke/l.w,st,0,1,r.xanchor)}if(i)zr=pf(i,nr,"y",l,r);else{var St=r._ysize/l.h,$t=r.y-(r._yshift+r.yshift)/l.h-St/2;zr=Rh.align($t-nr/l.h,St,0,1,r.yanchor)}d("x",Yr),d("y",zr),(!a||!i)&&(Sr=Rh.getCursor(a?.5:Yr,i?.5:zr,r.xanchor,r.yanchor))}x.attr({transform:a4(Ke,nr)+Ae}),o4(M,Sr)},clickFn:function(Ke,nr){r.captureevents&&e.emit("plotly_clickannotation",k(nr))},doneFn:function(){o4(M),n4.call("_guiRelayout",e,m());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}s.annotationText?ee.call(i4.makeEditable,{delegate:M,gd:e}).call(ie).on("edit",function(K){r.text=K,this.call(ie),d("text",K),a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),n4.call("_guiRelayout",e,m())}):ee.call(ie)}});var HE=te((V0e,IE)=>{"use strict";var RE=gr(),Lee=dt(),zE=yn().arrayEditor;IE.exports={hasClickToShow:qee,onClick:Dee};function qee(e,r){var t=FE(e,r);return t.on.length>0||t.explicitOff.length>0}function Dee(e,r){var t=FE(e,r),n=t.on,a=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(n.length||a.length){for(l=0;l{"use strict";var l4=gr(),qv=Rt();BE.exports=function(r,t,n,a){a("opacity");var i=a("bgcolor"),o=a("bordercolor"),l=qv.opacity(o);a("borderpad");var s=a("borderwidth"),u=a("showarrow");a("text",u?" ":n._dfltTitle.annotation),a("textangle"),l4.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),u){var v=a("arrowside"),h,d;v.indexOf("end")!==-1&&(h=a("arrowhead"),d=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",h),a("startarrowsize",d)),a("arrowcolor",l?t.bordercolor:qv.defaultLine),a("arrowwidth",(l&&s||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),p=n.hoverlabel||{};if(m){var y=a("hoverlabel.bgcolor",p.bgcolor||(qv.opacity(i)?qv.rgb(i):qv.defaultLine)),_=a("hoverlabel.bordercolor",p.bordercolor||qv.contrast(y)),C=l4.extendFlat({},p.font);C.color||(C.color=_),l4.coerceFont(a,"hoverlabel.font",C)}a("captureevents",!!m)}});var UE=te((Z0e,OE)=>{"use strict";var u4=gr(),Vc=qn(),Eee=_l(),Pee=s4(),Ree=xv();OE.exports=function(r,t){Eee(r,t,{name:"annotations",handleItemDefaults:zee})};function zee(e,r,t){function n(x,b){return u4.coerce(e,r,Ree,x,b)}var a=n("visible"),i=n("clicktoshow");if(a||i){Pee(e,r,t,n);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=l[f],h=Vc.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Vc.getFromId(u,h);d._annIndices.push(r._index)}if(Vc.coercePosition(r,u,n,h,v,.5),o){var m="a"+v,p=Vc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Vc.coercePosition(r,u,n,p,m,y)}n(v+"anchor"),n(v+"shift")}if(u4.noneOrAll(e,r,["x","y"]),o&&u4.noneOrAll(e,r,["ax","ay"]),i){var _=n("xclick"),C=n("yclick");r._xclick=_===void 0?r.x:Vc.cleanPosition(_,u,r.xref),r._yclick=C===void 0?r.y:Vc.cleanPosition(C,u,r.yref)}}}});var VE=te((X0e,GE)=>{"use strict";var f4=gr(),Wc=qn(),Nee=km().draw;GE.exports=function(r){var t=r._fullLayout,n=f4.filterVisible(t.annotations);if(n.length&&r._fullData.length)return f4.syncOrAsync([Nee,Fee],r)};function Fee(e){var r=e._fullLayout;f4.filterVisible(r.annotations).forEach(function(t){var n=Wc.getFromId(e,t.xref),a=Wc.getFromId(e,t.yref),i=Wc.getRefType(t.xref),o=Wc.getRefType(t.yref);t._extremes={},i==="range"&&YE(t,n),o==="range"&&YE(t,a)})}function YE(e,r){var t=r._id,n=t.charAt(0),a=e[n],i=e["a"+n],o=e[n+"ref"],l=e["a"+n+"ref"],s=e["_"+n+"padplus"],u=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,_;if(l===o){var C=Wc.findExtremes(r,[r.r2c(a)],{ppadplus:h,ppadminus:d}),x=Wc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,p),ppadminus:Math.max(u,y)});_={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,_=Wc.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=_}});var ZE=te((j0e,WE)=>{"use strict";var Iee=Ht(),Hee=xd();WE.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],p=null;i?p=Hee(m,t.range):p=Math.pow(10,m),Iee(p)||(p=null),a(f+d,p)}for(var h=0;h{"use strict";var c4=km(),XE=HE();jE.exports={moduleType:"component",name:"annotations",layoutAttributes:xv(),supplyLayoutDefaults:UE(),includeBasePlot:dh()("annotations"),calcAutorange:VE(),draw:c4.draw,drawOne:c4.drawOne,drawRaw:c4.drawRaw,hasClickToShow:XE.hasClickToShow,onClick:XE.onClick,convertCoords:ZE()}});var Sm=te(($0e,$E)=>{"use strict";var _n=xv(),Bee=xo().overrideAll,Oee=yn().templatedArray;$E.exports=Bee(Oee("annotation",{visible:_n.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:_n.xanchor,xshift:_n.xshift,yanchor:_n.yanchor,yshift:_n.yshift,text:_n.text,textangle:_n.textangle,font:_n.font,width:_n.width,height:_n.height,opacity:_n.opacity,align:_n.align,valign:_n.valign,bgcolor:_n.bgcolor,bordercolor:_n.bordercolor,borderpad:_n.borderpad,borderwidth:_n.borderwidth,showarrow:_n.showarrow,arrowcolor:_n.arrowcolor,arrowhead:_n.arrowhead,startarrowhead:_n.startarrowhead,arrowside:_n.arrowside,arrowsize:_n.arrowsize,startarrowsize:_n.startarrowsize,arrowwidth:_n.arrowwidth,standoff:_n.standoff,startstandoff:_n.startstandoff,hovertext:_n.hovertext,hoverlabel:_n.hoverlabel,captureevents:_n.captureevents}),"calc","from-root")});var QE=te((K0e,KE)=>{"use strict";var v4=gr(),Uee=qn(),Yee=_l(),Gee=s4(),Vee=Sm();KE.exports=function(r,t,n){Yee(r,t,{name:"annotations",handleItemDefaults:Wee,fullLayout:n.fullLayout})};function Wee(e,r,t,n){function a(l,s){return v4.coerce(e,r,Vee,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Uee.coercePosition(r,u,a,l,l,.5)}var o=a("visible");o&&(Gee(e,r,n.fullLayout,a),i("x"),i("y"),i("z"),v4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),v4.noneOrAll(e,r,["ax","ay"])))}});var nP=te((Q0e,tP)=>{"use strict";var eP=gr(),rP=qn();tP.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function h4(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function Xee(e,r){var t=h4(e.projection,h4(e.view,h4(e.model,[r[0],r[1],r[2],1])));return t}aP.exports=Xee});var lP=te((rve,oP)=>{"use strict";var jee=km().drawRaw,Jee=iP(),$ee=["x","y","z"];oP.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=Jee(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*n[0],t.yaxis.r2l(o.y)*n[1],t.zaxis.r2l(o.z)*n[2]]),jee(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var fP=te((tve,uP)=>{"use strict";var Kee=dt(),sP=gr();uP.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Sm()}}},layoutAttributes:Sm(),handleDefaults:QE(),includeBasePlot:Qee,convert:nP(),draw:lP()};function Qee(e,r){var t=Kee.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),i=0;i{"use strict";var nve=xa(),cP=Qa(),vP=Fc().line,ere=rs().dash,Ll=fa().extendFlat,rre=yn().templatedArray,ave=vh(),Dv=_o(),hP=xv(),{shapeTexttemplateAttrs:tre,templatefallbackAttrs:nre}=lc(),are=Ed();dP.exports=rre("shape",{visible:Ll({},Dv.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ll({},Dv.legend,{editType:"calc+arraydraw"}),legendgroup:Ll({},Dv.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ll({},Dv.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:cP({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ll({},Dv.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ll({},Dv.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Ll({},hP.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Ll({},hP.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Ll({},vP.color,{editType:"arraydraw"}),width:Ll({},vP.width,{editType:"calc+arraydraw"}),dash:Ll({},ere,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:tre({},{keys:Object.keys(are)}),texttemplatefallback:nre({editType:"arraydraw"}),font:cP({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var gP=te((ove,pP)=>{"use strict";var Ev=gr(),no=qn(),ire=_l(),ore=d4(),Nh=ff();pP.exports=function(r,t){ire(r,t,{name:"shapes",handleItemDefaults:sre})};function lre(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function sre(e,r,t){function n(x,b){return Ev.coerce(e,r,ore,x,b)}r._isShape=!0;var a=n("visible");if(!a)return;var i=n("showlegend");n("legend"),n("legendgroup"),i&&(n("legendwidth"),n("legendgrouptitle.text"),Ev.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),l=o?"path":"rect",s=n("type",l),u=s!=="path";u&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var v=n("xsizemode"),h=n("ysizemode");let d=[.25,.75],m=[0,10];["x","y"].forEach(x=>{var b=x+"anchor",A=x==="x"?v:h,k={_fullLayout:t},M,D,R,N;let I=x+"ref",W=e[I];if(Array.isArray(W)&&W.length>0){let O=Nh.countDefiningCoords(s,o,x);N=no.coerceRefArray(e,r,k,x,void 0,"paper",O),r["_"+x+"refArray"]=!0}else N=no.coerceRef(e,r,k,x,void 0,"paper");if(Array.isArray(N))N.forEach(function(O){no.getRefType(O)==="range"&&(M=no.getFromId(k,O),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(O){let Z=N[O];no.getRefType(Z)==="range"?(M=no.getFromId(k,Z),D=Nh.shapePositionToRange(M),R=Nh.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&n(x+O+"shift")):D=R=Ev.identity;let ee=x+O,ie=e[ee];if(e[ee]=D(e[ee],!0),A==="pixel"?n(ee,m[O]):no.coercePosition(r,k,n,Z,ee,d[O]),r[ee]=R(r[ee]),e[ee]=ie,O===0&&A==="pixel"){let re=e[b];e[b]=D(e[b],!0),no.coercePosition(r,k,n,Z,b,.25),r[b]=R(r[b]),e[b]=re}});else{if(no.getRefType(N)==="range"?(M=no.getFromId(k,N),M._shapeIndices.push(r._index),R=Nh.rangeToShapePosition(M),D=Nh.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):D=R=Ev.identity,u){let Z=x+"0",H=x+"1",ee=e[Z],ie=e[H];e[Z]=D(e[Z],!0),e[H]=D(e[H],!0),A==="pixel"?(n(Z,m[0]),n(H,m[1])):(no.coercePosition(r,k,n,N,Z,d[0]),no.coercePosition(r,k,n,N,H,d[1])),r[Z]=R(r[Z]),r[H]=R(r[H]),e[Z]=ee,e[H]=ie}if(A==="pixel"){let Z=e[b];e[b]=D(e[b],!0),no.coercePosition(r,k,n,N,b,.25),r[b]=R(r[b]),e[b]=Z}}}),u&&Ev.noneOrAll(e,r,["x0","x1","y0","y1"]);var p=s==="line",y,_;if(u&&(y=n("label.texttemplate"),n("label.texttemplatefallback")),y||(_=n("label.text")),_||y){n("label.textangle");var C=n("label.textposition",p?"middle":"middle center");n("label.xanchor"),n("label.yanchor",lre(p,C)),n("label.padding"),Ev.coerceFont(n,"label.font",t.font)}}});var bP=te((lve,yP)=>{"use strict";var ure=Rt(),mP=gr();function fre(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}yP.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),mP.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var i=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",ure.contrast(i)),n("newshape.line.dash")}var o=r.dragmode==="drawline",l=n("newshape.label.text"),s=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),l||s){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",fre(o,u)),n("newshape.label.padding"),mP.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var kP=te((sve,TP)=>{"use strict";var p4=gr(),Ho=qn(),_s=W1(),g4=ff();TP.exports=function(r){var t=r._fullLayout,n=p4.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a{o=Ho.getFromId(r,v),i._extremes[o._id]=Ho.findExtremes(o,h,xP(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=Ho.getFromId(r,i.xref),l=MP(o,i,_s.paramIsX),l&&(i._extremes[o._id]=Ho.findExtremes(o,l,xP(i))));if(u==="array"){let f=_P(r,i,"y");Object.entries(f).forEach(([v,h])=>{o=Ho.getFromId(r,v),i._extremes[o._id]=Ho.findExtremes(o,h,wP(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=Ho.getFromId(r,i.yref),l=MP(o,i,_s.paramIsY),l&&(i._extremes[o._id]=Ho.findExtremes(o,l,wP(i))))}};function _P(e,r,t){let n=r[t+"ref"],a=t==="x"?_s.paramIsX:_s.paramIsY;function i(v,h){v==="paper"||Ho.getRefType(v)==="domain"||(o[v]||(o[v]=[]),o[v].push(h))}let o={};if(r.type==="path"&&r.path){let v=r.path.match(_s.segmentRE)||[];for(var l=0,s=0;sm&&(i(n[l],p[m]),l++)}}else i(n[0],r[t+"0"]),i(n[1],r[t+"1"]);let u={};for(let v in o){let h=Ho.getFromId(e,v);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=g4.decodeDate(f)),u[h._id]=o[v].map(f)}}return u}function xP(e){return AP(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function wP(e){return AP(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function AP(e,r,t,n,a,i){var o=e/2,l=i;if(r==="pixel"){var s=a?g4.extractPathCoords(a,i?_s.paramIsY:_s.paramIsX):[t,n],u=p4.aggNums(Math.max,null,s),f=p4.aggNums(Math.min,null,s),v=f<0?Math.abs(f)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:l?v:h,ppadminus:l?h:v}}else return{ppad:o}}function MP(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(i=r[n+"0"],o=r[n+"1"],a&&(l=r[n+"0shift"],s=r[n+"1shift"])):(i=r[n+"anchor"],o=r[n+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(_s.segmentRE),m,p,y,_,C;for(e.type==="date"&&(u=g4.decodeDate(u)),m=0;mh&&(h=C)));if(h>=v)return[v,h]}}});var LP=te((uve,CP)=>{"use strict";var SP=mg();CP.exports={moduleType:"component",name:"shapes",layoutAttributes:d4(),supplyLayoutDefaults:gP(),supplyDrawNewShapeDefaults:bP(),includeBasePlot:dh()("shapes"),calcAutorange:kP(),draw:SP.draw,drawOne:SP.drawOne}});var m4=te((cve,DP)=>{"use strict";var qP=xa(),cre=yn().templatedArray,fve=vh();DP.exports=cre("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",qP.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",qP.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var PP=te((vve,EP)=>{"use strict";var vre=gr(),y4=qn(),hre=_l(),dre=m4(),pre="images";EP.exports=function(r,t){var n={name:pre,handleItemDefaults:gre};hre(r,t,n)};function gre(e,r,t){function n(h,d){return vre.coerce(e,r,dre,h,d)}var a=n("source"),i=n("visible",!!a);if(!i)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=y4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var v=y4.getFromId(o,f);v._imgIndices.push(r._index)}y4.coercePosition(r,o,n,f,u,0)}return r}});var FP=te((hve,NP)=>{"use strict";var RP=kt(),mre=cn(),Pv=qn(),zP=va(),yre=gc();NP.exports=function(r){var t=r._fullLayout,n=[],a={},i=[],o,l;for(l=0;l{"use strict";var IP=Ht(),bre=xd();HP.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";OP.exports={moduleType:"component",name:"images",layoutAttributes:m4(),supplyLayoutDefaults:PP(),includeBasePlot:dh()("images"),draw:FP(),convertCoords:BP()}});var Cm=te((gve,YP)=>{"use strict";YP.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var b4=te((mve,VP)=>{"use strict";var _re=Qa(),xre=dl(),wre=fa().extendFlat,Mre=xo().overrideAll,Are=Pd(),GP=yn().templatedArray,Tre=GP("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});VP.exports=Mre(GP("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Tre,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:wre(Are({editType:"arraydraw"}),{}),font:_re({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:xre.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var jP=te((yve,XP)=>{"use strict";var Lm=gr(),WP=_l(),ZP=b4(),kre=Cm(),Sre=kre.name,Cre=ZP.buttons;XP.exports=function(r,t){var n={name:Sre,handleItemDefaults:Lre};WP(r,t,n)};function Lre(e,r,t){function n(o,l){return Lm.coerce(e,r,ZP,o,l)}var a=WP(e,r,{name:"buttons",handleItemDefaults:qre}),i=n("visible",a.length>0);i&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Lm.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Lm.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function qre(e,r){function t(a,i){return Lm.coerce(e,r,Cre,a,i)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var KP=te((bve,$P)=>{"use strict";$P.exports=Rn;var ql=kt(),JP=Rt(),Rv=cn(),qm=gr();function Rn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Rn.barWidth=2;Rn.barLength=20;Rn.barRadius=2;Rn.barPad=1;Rn.barColor="#808BA4";Rn.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,i=a.width,o=a.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",p=v==="up",y=s,_=f,C,x,b,A;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var k=h||p;k?(C=l,x=C+y,h?(b=u,A=Math.min(b+_,o),_=A-b):(A=u+_,b=Math.max(A-_,0),_=A-b)):(b=u,A=b+_,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:b,w:y,h:_};var M=s>y,D=Rn.barLength+2*Rn.barPad,R=Rn.barWidth+2*Rn.barPad,N=l,I=u+f;I+R>o&&(I=o-R);var W=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);W.exit().on(".drag",null).remove(),W.enter().append("rect").classed("scrollbar-horizontal",!0).call(JP.fill,Rn.barColor),M?(this.hbar=W.attr({rx:Rn.barRadius,ry:Rn.barRadius,x:N,y:I,width:D,height:R}),this._hbarXMin=N+D/2,this._hbarTranslateMax=y-D):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=f>_,Z=Rn.barWidth+2*Rn.barPad,H=Rn.barLength+2*Rn.barPad,ee=l+s,ie=u;ee+Z>i&&(ee=i-Z);var re=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(JP.fill,Rn.barColor),O?(this.vbar=re.attr({rx:Rn.barRadius,ry:Rn.barRadius,x:ee,y:ie,width:Z,height:H}),this._vbarYMin=ie+H/2,this._vbarTranslateMax=_-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var K=this.id,fe=C-.5,le=O?x+Z+.5:x+.5,ke=b-.5,Ne=M?A+R+.5:A+.5,He=a._topdefs.selectAll("#"+K).data(M||O?[0]:[]);if(He.exit().remove(),He.enter().append("clipPath").attr("id",K).append("rect"),M||O?(this._clipRect=He.select("rect").attr({x:Math.floor(fe),y:Math.floor(ke),width:Math.ceil(le)-Math.floor(fe),height:Math.ceil(Ne)-Math.floor(ke)}),this.container.call(Rv.setClipUrl,K,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Rv.setClipUrl,null),delete this._clipRect),M||O){var Xe=ql.behavior.drag().on("dragstart",function(){ql.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Xe);var Ce=ql.behavior.drag().on("dragstart",function(){ql.event.sourceEvent.preventDefault(),ql.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Ce),O&&this.vbar.on(".drag",null).call(Ce)}this.setTranslate(t,n)};Rn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Rv.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Rn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ql.event.dx),this.vbar&&(t-=ql.event.dy),this.setTranslate(r,t)};Rn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ql.event.deltaY),this.vbar&&(t+=ql.event.deltaY),this.setTranslate(r,t)};Rn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,i=qm.constrain(ql.event.x,n,a),o=(i-n)/(a-n),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=qm.constrain(ql.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};Rn.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=qm.constrain(r||0,0,n),t=qm.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Rv.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/n;this.hbar.call(Rv.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/a;this.vbar.call(Rv.setTranslate,r,t+o*this._vbarTranslateMax)}}});var sR=te((_ve,lR)=>{"use strict";var zv=kt(),Fh=ha(),Ih=Rt(),Nv=cn(),ao=gr(),Dm=ei(),Dre=yn().arrayEditor,eR=Oa().LINE_SPACING,ct=Cm(),Ere=KP();lR.exports=function(r){var t=r._fullLayout,n=ao.filterVisible(t[ct.name]);function a(h){Fh.autoMargin(r,iR(h))}var i=t._menulayer.selectAll("g."+ct.containerClassName).data(n.length>0?[0]:[]);if(i.enter().append("g").classed(ct.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){zv.select(this).selectAll("g."+ct.headerGroupClassName).each(a)}).remove(),n.length!==0){var o=i.selectAll("g."+ct.headerGroupClassName).data(n,Pre);o.enter().append("g").classed(ct.headerGroupClassName,!0);for(var l=ao.ensureSingle(i,"g",ct.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var Bre=Cm();uR.exports={moduleType:"component",name:Bre.name,layoutAttributes:b4(),supplyLayoutDefaults:jP(),draw:sR()}});var Bh=te((wve,cR)=>{"use strict";cR.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var M4=te((Mve,dR)=>{"use strict";var vR=Qa(),Ore=Pd(),Ure=fa().extendDeepAll,Yre=xo().overrideAll,Gre=p1(),hR=yn().templatedArray,Zc=Bh(),Vre=hR("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});dR.exports=Yre(hR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Vre,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Ure(Ore({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Gre.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:vR({})},font:vR({}),activebgcolor:{valType:"color",dflt:Zc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Zc.railBgColor},bordercolor:{valType:"color",dflt:Zc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Zc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Zc.tickLength},tickcolor:{valType:"color",dflt:Zc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Zc.minorTickLength}}),"arraydraw","from-root")});var yR=te((Ave,mR)=>{"use strict";var Fv=gr(),pR=_l(),gR=M4(),Wre=Bh(),Zre=Wre.name,Xre=gR.steps;mR.exports=function(r,t){pR(r,t,{name:Zre,handleItemDefaults:jre})};function jre(e,r,t){function n(v,h){return Fv.coerce(e,r,gR,v,h)}for(var a=pR(e,r,{name:"steps",handleItemDefaults:Jre}),i=0,o=0;o{"use strict";var Dl=kt(),Em=ha(),mf=Rt(),El=cn(),io=gr(),$re=io.strTranslate,Oh=ei(),Kre=yn().arrayEditor,Mt=Bh(),k4=Oa(),xR=k4.LINE_SPACING,A4=k4.FROM_TL,T4=k4.FROM_BR;SR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Qre(n,r),i=n._infolayer.selectAll("g."+Mt.containerClassName).data(a.length>0?[0]:[]);i.enter().append("g").classed(Mt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Em.autoMargin(r,wR(f))}if(i.exit().each(function(){Dl.select(this).selectAll("g."+Mt.groupClassName).each(o)}).remove(),a.length!==0){var l=i.selectAll("g."+Mt.groupClassName).data(a,ete);l.enter().append("g").classed(Mt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",$re(o-Mt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function S4(e,r){var t=e._dims;return t.inputAreaStart+Mt.stepInset+(t.inputAreaLength-2*Mt.stepInset)*Math.min(1,Math.max(0,r))}function _R(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Mt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Mt.stepInset-2*t.inputAreaStart)))}function lte(e,r,t){var n=t._dims,a=io.ensureSingle(e,"rect",Mt.railTouchRectClass,function(i){i.call(TR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Mt.tickOffset+t.ticklen+n.labelHeight)}).call(mf.fill,t.bgcolor).attr("opacity",0),El.setTranslate(a,0,n.currentValueTotalHeight)}function ste(e,r){var t=r._dims,n=t.inputAreaLength-Mt.railInset*2,a=io.ensureSingle(e,"rect",Mt.railRectClass);a.attr({width:n,height:Mt.railWidth,rx:Mt.railRadius,ry:Mt.railRadius,"shape-rendering":"crispEdges"}).call(mf.stroke,r.bordercolor).call(mf.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),El.setTranslate(a,Mt.railInset,(t.inputAreaWidth-Mt.railWidth)*.5+t.currentValueTotalHeight)}});var qR=te((kve,LR)=>{"use strict";var ute=Bh();LR.exports={moduleType:"component",name:ute.name,layoutAttributes:M4(),supplyLayoutDefaults:yR(),draw:CR()}});var Rm=te((Sve,ER)=>{"use strict";var DR=dl();ER.exports={bgcolor:{valType:"color",dflt:DR.background,editType:"plot"},bordercolor:{valType:"color",dflt:DR.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var C4=te((Cve,PR)=>{"use strict";PR.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var zm=te((Lve,RR)=>{"use strict";RR.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var FR=te(Fm=>{"use strict";var fte=va(),cte=ei(),zR=zm(),vte=Oa().LINE_SPACING,Nm=zR.name;function NR(e){var r=e&&e[Nm];return r&&r.visible}Fm.isVisible=NR;Fm.makeData=function(e){for(var r=fte.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Im=gr(),IR=yn(),HR=va(),hte=Rm(),dte=C4();BR.exports=function(r,t,n){var a=r[n],i=t[n];if(!(a.rangeslider||t._requestRangeslider[i._id]))return;Im.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,l=IR.newContainer(i,"rangeslider");function s(A,k){return Im.coerce(o,l,hte,A,k)}var u,f;function v(A,k){return Im.coerce(u,f,dte,A,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===HR.name2id(n)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),p=Im.simpleMap(m,HR.id2name),y=0;y{"use strict";var pte=va().list,gte=tf().getAutoRange,mte=zm();UR.exports=function(r){for(var t=pte(r,"x",!0),n=0;n{"use strict";var Hm=kt(),yte=dt(),bte=ha(),Vn=gr(),Bm=Vn.strTranslate,VR=cn(),yf=Rt(),_te=D1(),xte=r4(),L4=va(),wte=ko(),Mte=af(),Et=zm();WR.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=re.max)ee=I[ie+1];else if(H=re.pmax)ee=I[ie+1];else if(H0?e.touches[0].clientX:0}function Ate(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Et.slideBoxClassName).node(),i=e.select("rect."+Et.grabAreaMinClassName).node(),o=e.select("rect."+Et.grabAreaMaxClassName).node();function l(){var s=Hm.event,u=s.target,f=GR(s),v=f-e.node().getBoundingClientRect().left,h=n.d2p(t._rl[0]),d=n.d2p(t._rl[1]),m=wte.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(_){var C=GR(_),x=+C-f,b,A,k;switch(u){case a:if(k="ew-resize",h+x>t._length||d+x<0)return;b=h+x,A=d+x;break;case i:if(k="col-resize",h+x>t._length)return;b=h+x,A=d;break;case o:if(k="col-resize",d+x<0)return;b=h,A=d+x;break;default:k="ew-resize",b=v,A=v+x;break}if(A{"use strict";var Rte=gr(),zte=Rm(),Nte=C4(),q4=FR();XR.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Rte.extendFlat({},zte,{yaxis:Nte})}}},layoutAttributes:Rm(),handleDefaults:OR(),calcAutorange:YR(),draw:ZR(),isVisible:q4.isVisible,makeData:q4.makeData,autoMarginOpts:q4.autoMarginOpts}});var Om=te((zve,$R)=>{"use strict";var Fte=Qa(),JR=dl(),Ite=yn().templatedArray,Hte=Ite("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});$R.exports={visible:{valType:"boolean",editType:"plot"},buttons:Hte,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Fte({editType:"plot"}),bgcolor:{valType:"color",dflt:JR.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:JR.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var D4=te((Nve,KR)=>{"use strict";KR.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var rz=te((Fve,ez)=>{"use strict";var Um=gr(),Bte=Rt(),Ote=yn(),Ute=_l(),QR=Om(),E4=D4();ez.exports=function(r,t,n,a,i){var o=r.rangeselector||{},l=Ote.newContainer(t,"rangeselector");function s(d,m){return Um.coerce(o,l,QR,d,m)}var u=Ute(o,l,{name:"buttons",handleItemDefaults:Yte,calendar:i}),f=s("visible",u.length>0);if(f){var v=Gte(t,n,a);s("x",v[0]),s("y",v[1]),Um.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Um.coerceFont(s,"font",n.font);var h=s("bgcolor");s("activecolor",Bte.contrast(h,E4.lightAmount,E4.darkAmount)),s("bordercolor"),s("borderwidth")}};function Yte(e,r,t,n){var a=n.calendar;function i(s,u){return Um.coerce(e,r,QR.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Gte(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,i=0;i{"use strict";var Vte=Dy(),Wte=gr().titleCase;tz.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var i=Zte(r,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a};function Zte(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,i=Vte["utc"+Wte(a)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(n,-o));break;case"todate":var s=i.offset(n,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var cz=te((Hve,fz)=>{"use strict";var Gm=kt(),Xte=dt(),jte=ha(),az=Rt(),uz=cn(),hu=gr(),iz=hu.strTranslate,Ym=ei(),Jte=va(),z4=Oa(),oz=z4.LINE_SPACING,lz=z4.FROM_TL,sz=z4.FROM_BR,R4=D4(),$te=nz();fz.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Kte(r),Qte);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var i=Gm.select(this),o=a,l=o.rangeselector,s=i.selectAll("g.button").data(hu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Gm.select(this),v=$te(o,u);u._isActive=ene(o,u,v),f.call(P4,l,u),f.call(tne,l,u,r),f.on("click",function(){r._dragged||Xte.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(P4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(P4,l,u)})}),ane(r,s,l,o._name,i)})};function Kte(e){for(var r=Jte.list(e,"x",!0),t=[],n=0;n{"use strict";vz.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Om()}}},layoutAttributes:Om(),handleDefaults:rz(),draw:cz()}});var Vm=te(N4=>{"use strict";var dz=fa().extendFlat;N4.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:dz({},t,{}),y:dz({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};N4.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],i=n&&n.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var ine=gr(),one=P0().counter,lne=Vm().attributes,pz=xa().idRegex,sne=yn(),F4={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[one("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[pz.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[pz.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:lne({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Wm(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function une(e,r){var t=e.grid||{},n=Wm(r,t,"x"),a=Wm(r,t,"y");if(!e.grid&&!n&&!a)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(n),l=Array.isArray(a),s=o&&n!==t.xaxes&&l&&a!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=a.length),o&&(f=n.length));var v=sne.newContainer(r,"grid");function h(k,M){return ine.coerce(t,v,F4,k,M)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}v._hasSubplotGrid=i;var y=h("roworder"),_=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,b,A;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:gz("x",h,C,b,m),y:gz("y",h,x,A,d,_)}}function gz(e,r,t,n,a,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var s=new Array(a),u=l[0],f=(l[1]-u)/(a-o),v=f*(1-o),h=0;h{"use strict";_z.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var Mz=te((Gve,wz)=>{"use strict";var xz=Ht(),cne=dt(),vne=gr(),hne=yn(),dne=I4();wz.exports=function(e,r,t,n){var a="error_"+n.axis,i=hne.newContainer(r,a),o=e[a]||{};function l(m,p){return vne.coerce(o,i,dne,m,p)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=r["error_"+n.inherit];(d||{}).visible&&l(h,!(o.color||xz(o.thickness)||xz(o.width)))}(!n.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",cne.traceIs(r,"gl3d")?0:4))}}});var H4=te((Vve,Tz)=>{"use strict";Tz.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(u,f){var v=+a[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+a[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var o=Az(t,r.value),l=Az(t,r.valueminus);return n||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function Az(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var Cz=te((Wve,Sz)=>{"use strict";var B4=Ht(),pne=dt(),O4=qn(),gne=gr(),mne=H4();Sz.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var Lz=kt(),bf=Ht(),yne=cn(),bne=ri();qz.exports=function(r,t,n,a){var i,o=n.xaxis,l=n.yaxis,s=a&&a.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(C){return C.id});var p=bne.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=Lz.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var _=y.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(a.duration).style("opacity",1),yne.setClipUrl(y,n.layerClipId,r),y.each(function(C){var x=Lz.select(this),b=_ne(C,o,l);if(!(p&&!C.vis)){var A,k=x.select("path.yerror");if(d.visible&&bf(b.x)&&bf(b.yh)&&bf(b.ys)){var M=d.width;A="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(A+="m-"+M+",0h"+2*M),i=!k.size(),i?k=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(a.duration).ease(a.easing)),k.attr("d",A)}else k.remove();var D=x.select("path.xerror");if(h.visible&&bf(b.y)&&bf(b.xh)&&bf(b.xs)){var R=(h.copy_ystyle?d:h).width;A="M"+b.xh+","+(b.y-R)+"v"+2*R+"m0,-"+R+"H"+b.xs,b.noXS||(A+="m0,-"+R+"v"+2*R),i=!D.size(),i?D=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(D=D.transition().duration(a.duration).ease(a.easing)),D.attr("d",A)}else D.remove()}})}})};function _ne(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),bf(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),bf(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var Rz=te((Xve,Pz)=>{"use strict";var xne=kt(),Ez=Rt();Pz.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},i=n.error_x||{},o=xne.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(Ez.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(Ez.stroke,i.color)})}});var Fz=te((jve,Nz)=>{"use strict";var Uh=gr(),zz=xo().overrideAll,Yh=I4(),Xc={error_x:Uh.extendFlat({},Yh),error_y:Uh.extendFlat({},Yh)};delete Xc.error_x.copy_zstyle;delete Xc.error_y.copy_zstyle;delete Xc.error_y.copy_ystyle;var Gh={error_x:Uh.extendFlat({},Yh),error_y:Uh.extendFlat({},Yh),error_z:Uh.extendFlat({},Yh)};delete Gh.error_x.copy_ystyle;delete Gh.error_y.copy_ystyle;delete Gh.error_z.copy_ystyle;delete Gh.error_z.copy_zstyle;Nz.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Xc,bar:Xc,histogram:Xc,scatter3d:zz(Gh,"calc","nested"),scattergl:zz(Xc,"calc","nested")}},supplyDefaults:Mz(),calc:Cz(),makeComputeError:H4(),plot:Dz(),style:Rz(),hoverInfo:wne};function wne(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var Hz=te((Jve,Iz)=>{"use strict";Iz.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Wz=te(($ve,Vz)=>{"use strict";var _f=kt(),U4=es(),Xm=ha(),Bz=dt(),du=qn(),Zm=ko(),Bo=gr(),Rl=Bo.strTranslate,Gz=fa().extendFlat,Y4=af(),Pl=cn(),G4=Rt(),Mne=D1(),Ane=ei(),Tne=ns().flipScale,kne=$b(),Sne=Kb(),Cne=bl(),V4=Oa(),Oz=V4.LINE_SPACING,Uz=V4.FROM_TL,Yz=V4.FROM_BR,Dn=Hz().cn;function Lne(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Dn.colorbar).data(qne(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Dn.colorbar,!0),t.each(function(n){var a=_f.select(this);Bo.ensureSingle(a,"rect",Dn.cbbg),Bo.ensureSingle(a,"g",Dn.cbfills),Bo.ensureSingle(a,"g",Dn.cblines),Bo.ensureSingle(a,"g",Dn.cbaxis,function(o){o.classed(Dn.crisp,!0)}),Bo.ensureSingle(a,"g",Dn.cbtitleunshift,function(o){o.append("g").classed(Dn.cbtitle,!0)}),Bo.ensureSingle(a,"rect",Dn.cboutline);var i=Dne(a,n,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Ene(a,n,e)}),t.exit().each(function(n){Xm.autoMargin(e,n._id)}).remove(),t.order()}function qne(e){var r=e._fullLayout,t=e.calcdata,n=[],a,i,o,l;function s(x){return Gz(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,a):(a._fillgradient=i.reversescale?Tne(i.colorscale):i.colorscale,a._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(G)/Math.LN10));Pe*=Q*Bo.roundUp(G/Q,[2,5,10]),(Math.abs(W.start)/W.size+1e-6)%1<2e-6&&(ce.tick0=0)}ce.dtick=Pe}ce.domain=n?[Ce+m/b.h,Ce+K-m/b.h]:[Ce+d/b.w,Ce+K-d/b.w],ce.setScale(),e.attr("transform",Rl(Math.round(b.l),Math.round(b.t)));var $=e.select("."+Dn.cbtitleunshift).attr("transform",Rl(-Math.round(b.l),-Math.round(b.t))),be=ce.ticklabelposition,qe=ce.title.font.size,Ie=e.select("."+Dn.cbaxis),ar,Qe=0,Be=0;function cr(yr,Te){var Ue={propContainer:ce,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+Dn.cbtitle)},kr=yr.charAt(0)==="h"?yr.slice(1):"h"+yr;e.selectAll("."+kr+",."+kr+"-math-group").remove(),Mne.draw(t,yr,Gz(Ue,Te||{}))}function or(){if(n&&ge||!n&&!ge){var yr,Te;D==="top"&&(yr=d+b.l+fe*p,Te=m+b.t+le*(1-Ce-K)+3+qe*.75),D==="bottom"&&(yr=d+b.l+fe*p,Te=m+b.t+le*(1-Ce)-3-qe*.25),D==="right"&&(Te=m+b.t+le*y+3+qe*.75,yr=d+b.l+fe*Ce),cr(ce._id+"title",{attributes:{x:yr,y:Te,"text-anchor":n?"start":"middle"}})}}function hr(){if(n&&!ge||!n&&ge){var yr=ce.position||0,Te=ce._offset+ce._length/2,Ue,kr;if(D==="right")kr=Te,Ue=b.l+fe*yr+10+qe*(ce.showticklabels?1:.5);else if(Ue=Te,D==="bottom"&&(kr=b.t+le*yr+10+(be.indexOf("inside")===-1?ce.tickfont.size:0)+(ce.ticks!=="inside"&&r.ticklen||0)),D==="top"){var Ur=M.text.split("
").length;kr=b.t+le*yr+10-ee-Oz*qe*Ur}cr((n?"h":"v")+ce._id+"title",{avoid:{selection:_f.select(t).selectAll("g."+ce._id+"tick"),side:D,offsetTop:n?0:b.t,offsetLeft:n?b.l:0,maxShift:n?x.width:x.height},attributes:{x:Ue,y:kr,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Je(){if(!n&&!ge||n&&ge){var yr=e.select("."+Dn.cbtitle),Te=yr.select("text"),Ue=[-s/2,s/2],kr=yr.select(".h"+ce._id+"title-math-group").node(),Ur=15.6;Te.node()&&(Ur=parseInt(Te.node().style.fontSize,10)*Oz);var tr;if(kr?(tr=Pl.bBox(kr),Be=tr.width,Qe=tr.height,Qe>Ur&&(Ue[1]-=(Qe-Ur)/2)):Te.node()&&!Te.classed(Dn.jsPlaceholder)&&(tr=Pl.bBox(Te.node()),Be=tr.width,Qe=tr.height),n){if(Qe){if(Qe+=5,D==="top")ce.domain[1]-=Qe/b.h,Ue[1]*=-1;else{ce.domain[0]+=Qe/b.h;var Ye=Ane.lineCount(Te);Ue[1]+=(1-Ye)*Ur}yr.attr("transform",Rl(Ue[0],Ue[1])),ce.setScale()}}else Be&&(D==="right"&&(ce.domain[0]+=(Be+qe/2)/b.w),yr.attr("transform",Rl(Ue[0],Ue[1])),ce.setScale())}e.selectAll("."+Dn.cbfills+",."+Dn.cblines).attr("transform",n?Rl(0,Math.round(b.h*(1-ce.domain[1]))):Rl(Math.round(b.w*ce.domain[0]),0)),Ie.attr("transform",n?Rl(0,Math.round(-b.t)):Rl(Math.round(-b.l),0));var Ze=e.select("."+Dn.cbfills).selectAll("rect."+Dn.cbfill).attr("style","").data(Z);Ze.enter().append("rect").classed(Dn.cbfill,!0).attr("style",""),Ze.exit().remove();var dr=R.map(ce.c2p).map(Math.round).sort(function(Cr,Er){return Cr-Er});Ze.each(function(Cr,Er){var lr=[Er===0?R[0]:(Z[Er]+Z[Er-1])/2,Er===Z.length-1?R[1]:(Z[Er]+Z[Er+1])/2].map(ce.c2p).map(Math.round);n&&(lr[1]=Bo.constrain(lr[1]+(lr[1]>lr[0])?1:-1,dr[0],dr[1]));var xe=_f.select(this).attr(n?"x":"y",ke).attr(n?"y":"x",_f.min(lr)).attr(n?"width":"height",Math.max(ee,2)).attr(n?"height":"width",Math.max(_f.max(lr)-_f.min(lr),2));if(r._fillgradient)Pl.gradient(xe,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Ae=I(Cr).replace("e-","");xe.attr("fill",U4(Ae).toHexString())}});var Ar=e.select("."+Dn.cblines).selectAll("path."+Dn.cbline).data(k.color&&k.width?H:[]);Ar.enter().append("path").classed(Dn.cbline,!0),Ar.exit().remove(),Ar.each(function(Cr){var Er=ke,lr=Math.round(ce.c2p(Cr))+k.width/2%1;_f.select(this).attr("d","M"+(n?Er+","+lr:lr+","+Er)+(n?"h":"v")+ee).call(Pl.lineGroupStyle,k.width,N(Cr),k.dash)}),Ie.selectAll("g."+ce._id+"tick,path").remove();var mr=ke+ee+(s||0)/2-(r.ticks==="outside"?1:0),br=du.calcTicks(ce),Ir=du.getTickSigns(ce)[2];return du.drawTicks(t,ce,{vals:ce.ticks==="inside"?du.clipEnds(ce,br):br,layer:Ie,path:du.makeTickPath(ce,mr,Ir),transFn:du.makeTransTickFn(ce)}),du.drawLabels(t,ce,{vals:br,layer:Ie,transFn:du.makeTransTickLabelFn(ce),labelFns:du.makeLabelFns(ce,mr)})}function pr(){var yr,Te=ee+s/2;be.indexOf("inside")===-1&&(yr=Pl.bBox(Ie.node()),Te+=n?yr.width:yr.height),ar=$.select("text");var Ue=0,kr=n&&D==="top",Ur=!n&&D==="right",tr=0;if(ar.node()&&!ar.classed(Dn.jsPlaceholder)){var Ye,Ze=$.select(".h"+ce._id+"title-math-group").node();Ze&&(n&&ge||!n&&!ge)?(yr=Pl.bBox(Ze),Ue=yr.width,Ye=yr.height):(yr=Pl.bBox($.node()),Ue=yr.right-b.l-(n?ke:er),Ye=yr.bottom-b.t-(n?er:ke),!n&&D==="top"&&(Te+=yr.height,tr=yr.height)),Ur&&(ar.attr("transform",Rl(Ue/2+qe/2,0)),Ue*=2),Te=Math.max(Te,n?Ue:Ye)}var dr=(n?d:m)*2+Te+u+s/2,Ar=0;!n&&M.text&&h==="bottom"&&y<=0&&(Ar=dr/2,dr+=Ar,tr+=Ar),x._hColorbarMoveTitle=Ar,x._hColorbarMoveCBTitle=tr;var mr=u+s,br=(n?ke:er)-mr/2-(n?d:0),Ir=(n?er:ke)-(n?re:m+tr-Ar);e.select("."+Dn.cbbg).attr("x",br).attr("y",Ir).attr(n?"width":"height",Math.max(dr-Ar,2)).attr(n?"height":"width",Math.max(re+mr,2)).call(G4.fill,f).call(G4.stroke,r.bordercolor).style("stroke-width",u);var Cr=Ur?Math.max(Ue-10,0):0;e.selectAll("."+Dn.cboutline).attr("x",(n?ke:er+d)+Cr).attr("y",(n?er+m-re:ke)+(kr?Qe:0)).attr(n?"width":"height",Math.max(ee,2)).attr(n?"height":"width",Math.max(re-(n?2*m+Qe:2*d+Cr),2)).call(G4.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Er=n?Ne*dr:0,lr=n?0:(1-He)*dr-tr;if(Er=C?b.l-Er:-Er,lr=_?b.t-lr:-lr,e.attr("transform",Rl(Er,lr)),!n&&(u||U4(f).getAlpha()&&!U4.equals(x.paper_bgcolor,f))){var xe=Ie.selectAll("text"),Ae=xe[0].length,Ke=e.select("."+Dn.cbbg).node(),nr=Pl.bBox(Ke),Sr=Pl.getTranslate(e),Yr=2;xe.each(function(en,Kt){var rn=0,la=Ae-1;if(Kt===rn||Kt===la){var xn=Pl.bBox(this),On=Pl.getTranslate(this),Gr;if(Kt===la){var on=xn.right+On.x,Pt=nr.right+Sr.x+er-u-Yr+p;Gr=Pt-on,Gr>0&&(Gr=0)}else if(Kt===rn){var tn=xn.left+On.x,zn=nr.left+Sr.x+er+u+Yr;Gr=zn-tn,Gr<0&&(Gr=0)}Gr&&(Ae<3?this.setAttribute("transform","translate("+Gr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var zr={},st=Uz[v],bt=Yz[v],St=Uz[h],$t=Yz[h],vn=dr-ee;n?(i==="pixels"?(zr.y=y,zr.t=re*St,zr.b=re*$t):(zr.t=zr.b=0,zr.yt=y+a*St,zr.yb=y-a*$t),l==="pixels"?(zr.x=p,zr.l=dr*st,zr.r=dr*bt):(zr.l=vn*st,zr.r=vn*bt,zr.xl=p-o*st,zr.xr=p+o*bt)):(i==="pixels"?(zr.x=p,zr.l=re*st,zr.r=re*bt):(zr.l=zr.r=0,zr.xl=p+a*st,zr.xr=p-a*bt),l==="pixels"?(zr.y=1-y,zr.t=dr*St,zr.b=dr*$t):(zr.t=vn*St,zr.b=vn*$t,zr.yt=y-o*St,zr.yb=y+o*$t));var hn=r.y<.5?"b":"t",Ln=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ut={r:x.width-br-Er,l:br+zr.r,b:x.height-Ir-lr,t:Ir+zr.b};C&&_?Xm.autoMargin(t,r._id,zr):C?t._fullLayout._reservedMargin[r._id][hn]=Ut[hn]:_||n?t._fullLayout._reservedMargin[r._id][Ln]=Ut[Ln]:t._fullLayout._reservedMargin[r._id][hn]=Ut[hn]}return Bo.syncOrAsync([Xm.previousPromises,or,Je,hr,Xm.previousPromises,pr],t)}function Ene(e,r,t){var n=r.orientation==="v",a=t._fullLayout,i=a._size,o,l,s;Zm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),Y4(e)},moveFn:function(u,f){e.attr("transform",o+Rl(u,f)),l=Zm.align((n?r._uFrac:r._vFrac)+u/i.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Zm.align((n?r._vFrac:1-r._uFrac)-f/i.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Zm.getCursor(l,s,r.xanchor,r.yanchor);Y4(e,v)},doneFn:function(){if(Y4(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?Bz.call("_guiRestyle",t,u,r._traceIndex):Bz.call("_guiRelayout",t,u)}}})}function Pne(e,r,t){var n=r._levels,a=[],i=[],o,l,s=n.end+n.size/100,u=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=n.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";Zz.exports={moduleType:"component",name:"colorbar",attributes:up(),supplyDefaults:W2(),draw:Wz().draw,hasColorbar:z2()}});var Jz=te((Qve,jz)=>{"use strict";jz.exports={moduleType:"component",name:"legend",layoutAttributes:U3(),supplyLayoutDefaults:G3(),draw:i5(),style:r5()}});var Kz=te((e1e,$z)=>{"use strict";$z.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var eN=te((r1e,Qz)=>{"use strict";Qz.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var Z4=te((t1e,aN)=>{"use strict";var zne=dt(),nN=gr(),W4=nN.extendFlat,rN=nN.extendDeep;function tN(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Nne(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}aN.exports=function(r,t){var n,a=r.data,i=r.layout,o=rN([],a),l=rN({},i,tN(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(n=0;n{"use strict";var Fne=Jd().EventEmitter,Ine=dt(),Hne=gr(),iN=Ic(),Bne=Z4(),One=rm(),Une=tm();function Yne(e,r){var t=new Fne,n=Bne(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function i(){var l=iN.getDelay(a._fullLayout);setTimeout(function(){var s=One(a),u=document.createElement("canvas");u.id=Hne.randstr(),t=Une({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var o=iN.getRedrawFunc(a);return Ine.call("_doPlot",a,n.data,n.layout,n.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}oN.exports=Yne});var fN=te((a1e,uN)=>{"use strict";var sN=Ic(),Gne={getDelay:sN.getDelay,getRedrawFunc:sN.getRedrawFunc,clone:Z4(),toSVG:rm(),svgToImg:tm(),toImage:lN(),downloadImage:wb()};uN.exports=Gne});var vN=te(pu=>{"use strict";pu.version=vd().version;r6();Gw();var Vne=dt(),Vh=pu.register=Vne.register,j4=hq(),cN=Object.keys(j4);for(jm=0;jm{"use strict";hN.exports=vN()});var Wh=te((s1e,bN)=>{"use strict";var{hovertemplateAttrs:Wne,texttemplateAttrs:Zne,templatefallbackAttrs:pN}=lc(),Xne=K5(),xs=Fc(),jne=_o(),gN=K0(),Jne=rs().dash,jc=fa().extendFlat,$ne=xo().overrideAll,Oo=xs.marker,mN=xs.line,yN=Oo.line,l1e=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");bN.exports=$ne({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:jc({},xs.mode,{dflt:"markers"}),text:jc({},xs.text,{}),texttemplate:Zne({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:pN({editType:"plot"}),hovertext:jc({},xs.hovertext,{}),textfont:xs.textfont,textposition:xs.textposition,line:{color:mN.color,width:mN.width,dash:Jne},connectgaps:xs.connectgaps,marker:jc({symbol:Oo.symbol,opacity:Oo.opacity,angle:Oo.angle,angleref:jc({},Oo.angleref,{values:["previous","up","north"]}),standoff:Oo.standoff,size:Oo.size,sizeref:Oo.sizeref,sizemin:Oo.sizemin,sizemode:Oo.sizemode,colorbar:Oo.colorbar,line:jc({width:yN.width,dash:yN.dash},gN("marker.line")),gradient:Oo.gradient},gN("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Xne(),selected:xs.selected,unselected:xs.unselected,hoverinfo:jc({},jne.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Wne(),hovertemplatefallback:pN()},"calc","nested")});var xN=te((u1e,_N)=>{"use strict";var $m=gr(),J4=ri(),Kne=Tb(),Qne=kb(),eae=Sb(),rae=Cb(),tae=Wh(),nae=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");_N.exports=function(r,t,n,a){function i(d,m){return $m.coerce(r,t,tae,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||$m.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&$m.warn(nae),f==="geojson-id"&&i("featureidkey"),l=o.length}else{var v=i("lon")||[],h=i("lat")||[];l=Math.min(v.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),J4.hasMarkers(t)&&Kne(r,t,n,a,i,{gradient:!0}),J4.hasLines(t)&&(Qne(r,t,n,a,i),i("connectgaps")),J4.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),eae(r,t,a,i)),i("fill"),t.fill!=="none"&&rae(r,t,n,i),$m.coerceSelectionMarkerOpacity(t,i)}});var AN=te((f1e,MN)=>{"use strict";var wN=qn();MN.exports=function(r,t,n){var a={},i=n[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return a.lonLabel=wN.tickText(o,o.c2l(l[0]),!0).text,a.latLabel=wN.tickText(o,o.c2l(l[1]),!0).text,a}});var LN=te((c1e,CN)=>{"use strict";var $4=Ht(),TN=Pn().BADNUM,aae=Db(),iae=kh(),oae=um(),lae=gr().isArrayOrTypedArray,kN=gr()._;function SN(e){return e&&typeof e=="string"}CN.exports=function(r,t){var n=lae(t.locations),a=n?t.locations.length:t._length,i=new Array(a),o;t.geojson?o=function(h){return SN(h)||$4(h)}:o=SN;for(var l=0;l{"use strict";Va.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Va.axesNames=["lonaxis","lataxis"];Va.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Va.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Va.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Va.clipPad=.001;Va.precision=.1;Va.landColor="#F0DC82";Va.waterColor="#3399FF";Va.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Va.sphereSVG={type:"Sphere"};Va.fillLayers={ocean:1,land:1,lakes:1};Va.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Va.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Va.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Va.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var K4=te((Km,qN)=>{(function(e,r){typeof Km=="object"&&typeof qN!="undefined"?r(Km):(e=e||self,r(e.topojson=e.topojson||{}))})(Km,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var b,A,k=x.scale[0],M=x.scale[1],D=x.translate[0],R=x.translate[1];return function(N,I){I||(b=A=0);var W=2,O=N.length,Z=new Array(O);for(Z[0]=(b+=N[0])*k+D,Z[1]=(A+=N[1])*M+R;WD&&(D=W[0]),W[1]R&&(R=W[1])}function I(W){switch(W.type){case"GeometryCollection":W.geometries.forEach(I);break;case"Point":N(W.coordinates);break;case"MultiPoint":W.coordinates.forEach(N);break}}x.arcs.forEach(function(W){for(var O=-1,Z=W.length,H;++OD&&(D=H[0]),H[1]R&&(R=H[1])});for(A in x.objects)I(x.objects[A]);return[k,M,D,R]}function a(x,b){for(var A,k=x.length,M=k-b;M<--k;)A=x[M],x[M++]=x[k],x[k]=A}function i(x,b){return typeof b=="string"&&(b=x.objects[b]),b.type==="GeometryCollection"?{type:"FeatureCollection",features:b.geometries.map(function(A){return o(x,A)})}:o(x,b)}function o(x,b){var A=b.id,k=b.bbox,M=b.properties==null?{}:b.properties,D=l(x,b);return A==null&&k==null?{type:"Feature",properties:M,geometry:D}:k==null?{type:"Feature",id:A,properties:M,geometry:D}:{type:"Feature",id:A,bbox:k,properties:M,geometry:D}}function l(x,b){var A=t(x.transform),k=x.arcs;function M(O,Z){Z.length&&Z.pop();for(var H=k[O<0?~O:O],ee=0,ie=H.length;ee1)k=v(x,b,A);else for(M=0,k=new Array(D=x.arcs.length);M1)for(var Z=1,H=N(W[0]),ee,ie;ZH&&(ie=W[0],W[0]=W[Z],W[Z]=ie,H=ee);return W}).filter(function(I){return I.length>0})}}function p(x,b){for(var A=0,k=x.length;A>>1;x[M]=2))throw new Error("n must be \u22652");I=x.bbox||n(x);var A=I[0],k=I[1],M=I[2],D=I[3],R;b={scale:[M-A?(M-A)/(R-1):1,D-k?(D-k)/(R-1):1],translate:[A,k]}}else I=x.bbox;var N=_(b),I,W,O=x.objects,Z={};function H(re){return N(re)}function ee(re){var K;switch(re.type){case"GeometryCollection":K={type:"GeometryCollection",geometries:re.geometries.map(ee)};break;case"Point":K={type:"Point",coordinates:H(re.coordinates)};break;case"MultiPoint":K={type:"MultiPoint",coordinates:re.coordinates.map(H)};break;default:return re}return re.id!=null&&(K.id=re.id),re.bbox!=null&&(K.bbox=re.bbox),re.properties!=null&&(K.properties=re.properties),K}function ie(re){var K=0,fe=1,le=re.length,ke,Ne=new Array(le);for(Ne[0]=N(re[0],0);++K{"use strict";var Q4=DN.exports={},sae=Zh().locationmodeToLayer,uae=K4().feature;Q4.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};Q4.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};Q4.getTopojsonFeatures=function(e,r){var t=sae[e.locationmode],n=r.objects[t];return uae(r,n).features}});var EN=te(Xh=>{"use strict";var fae=Pn().BADNUM;Xh.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,n=[],a=[],i=0;i0&&(n.push(a),a=[])}return a.length>0&&n.push(a),n};Xh.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};Xh.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t{PN.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var ty=te(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});var Bi=63710088e-1,r_={centimeters:Bi*100,centimetres:Bi*100,degrees:360/(2*Math.PI),feet:Bi*3.28084,inches:Bi*39.37,kilometers:Bi/1e3,kilometres:Bi/1e3,meters:Bi,metres:Bi,miles:Bi/1609.344,millimeters:Bi*1e3,millimetres:Bi*1e3,nauticalmiles:Bi/1852,radians:1,yards:Bi*1.0936},e_={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function xf(e,r,t={}){let n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=r||{},n.geometry=e,n}function cae(e,r,t={}){switch(e){case"Point":return t_(r).geometry;case"LineString":return a_(r).geometry;case"Polygon":return n_(r).geometry;case"MultiPoint":return NN(r).geometry;case"MultiLineString":return zN(r).geometry;case"MultiPolygon":return FN(r).geometry;default:throw new Error(e+" is invalid")}}function t_(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!ey(e[0])||!ey(e[1]))throw new Error("coordinates must contain numbers");return xf({type:"Point",coordinates:e},r,t)}function vae(e,r,t={}){return ry(e.map(n=>t_(n,r)),t)}function n_(e,r,t={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;in_(n,r)),t)}function a_(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return xf({type:"LineString",coordinates:e},r,t)}function dae(e,r,t={}){return ry(e.map(n=>a_(n,r)),t)}function ry(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function zN(e,r,t={}){return xf({type:"MultiLineString",coordinates:e},r,t)}function NN(e,r,t={}){return xf({type:"MultiPoint",coordinates:e},r,t)}function FN(e,r,t={}){return xf({type:"MultiPolygon",coordinates:e},r,t)}function pae(e,r,t={}){return xf({type:"GeometryCollection",geometries:e},r,t)}function gae(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function IN(e,r="kilometers"){let t=r_[r];if(!t)throw new Error(r+" units is invalid");return e*t}function i_(e,r="kilometers"){let t=r_[r];if(!t)throw new Error(r+" units is invalid");return e/t}function mae(e,r){return HN(i_(e,r))}function yae(e){let r=e%360;return r<0&&(r+=360),r}function bae(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function HN(e){return e%(2*Math.PI)*180/Math.PI}function _ae(e){return e%360*Math.PI/180}function xae(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return IN(i_(e,r),t)}function wae(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=e_[r];if(!n)throw new Error("invalid original units");let a=e_[t];if(!a)throw new Error("invalid final units");return e/n*a}function ey(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Mae(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Aae(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!ey(r))throw new Error("bbox must only contain numbers")})}function Tae(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}dn.areaFactors=e_;dn.azimuthToBearing=bae;dn.bearingToAzimuth=yae;dn.convertArea=wae;dn.convertLength=xae;dn.degreesToRadians=_ae;dn.earthRadius=Bi;dn.factors=r_;dn.feature=xf;dn.featureCollection=ry;dn.geometry=cae;dn.geometryCollection=pae;dn.isNumber=ey;dn.isObject=Mae;dn.lengthToDegrees=mae;dn.lengthToRadians=i_;dn.lineString=a_;dn.lineStrings=dae;dn.multiLineString=zN;dn.multiPoint=NN;dn.multiPolygon=FN;dn.point=t_;dn.points=vae;dn.polygon=n_;dn.polygons=hae;dn.radiansToDegrees=HN;dn.radiansToLength=IN;dn.round=gae;dn.validateBBox=Aae;dn.validateId=Tae});var ay=te(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var si=ty();function jh(e,r,t){if(e!==null)for(var n,a,i,o,l,s,u,f=0,v=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,_=0;_s||m>u||p>f){l=v,s=n,u=m,f=p,i=0;return}var y=si.lineString.call(void 0,[l,v],t.properties);if(r(y,n,a,p,i)===!1)return!1;i++,l=v})===!1)return!1}}})}function Eae(e,r,t){var n=t,a=!1;return UN(e,function(i,o,l,s,u){a===!1&&t===void 0?n=i:n=r(n,i,o,l,s,u),a=!0}),n}function YN(e,r){if(!e)throw new Error("geojson is required");ny(e,function(t,n,a){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,n,a,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var GN=ty(),Nae=ay();function ZN(e){return Nae.geomReduce.call(void 0,e,(r,t)=>r+Fae(t),0)}function Fae(e){let r=0,t;switch(e.type){case"Polygon":return VN(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(WN(e[0]));for(let t=1;t=r?(n+2)%r:n+2],l=a[0]*l_,s=i[1]*l_,u=o[0]*l_;t+=(u-l)*Math.sin(s),n++}return t*Iae}var Hae=ZN;iy.area=ZN;iy.default=Hae});var JN=te(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var Bae=ty(),Oae=ay();function jN(e,r={}){let t=0,n=0,a=0;return Oae.coordEach.call(void 0,e,function(i){t+=i[0],n+=i[1],a++},!0),Bae.point.call(void 0,[t/a,n/a],r.properties)}var Uae=jN;oy.centroid=jN;oy.default=Uae});var KN=te(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var Yae=ay();function $N(e,r={}){if(e.bbox!=null&&r.recompute!==!0)return e.bbox;let t=[1/0,1/0,-1/0,-1/0];return Yae.coordEach.call(void 0,e,n=>{t[0]>n[0]&&(t[0]=n[0]),t[1]>n[1]&&(t[1]=n[1]),t[2]{"use strict";var QN={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},Vae=new Set(Object.values(QN));eF.exports={usaLocationAbbreviations:Vae,usaLocationList:QN}});var uy=te((w1e,iF)=>{"use strict";var Wae=kt(),nF=RN(),{area:Zae}=XN(),{centroid:Xae}=JN(),{bbox:jae}=KN(),Jae=Hd(),Jc=Bu(),$ae=$s(),Kae=i1(),sy=Lg(),{usaLocationAbbreviations:Qae,usaLocationList:eie}=rF(),tF=Object.keys(nF),rie={"ISO-3":Jae,"USA-states":nie,"country names":tie};function tie(e){for(var r=0;r0&&f[v+1][0]<0)return v;return null}switch(n==="RUS"||n==="FJI"?i=function(f){var v;if(u(f)===null)v=f;else for(v=new Array(f.length),s=0;sv?h[d++]=[f[s][0]+360,f[s][1]]:s===v?(h[d++]=f[s],h[d++]=[f[s][0],-90]):h[d++]=f[s];var m=sy.tester(h);m.pts.pop(),a.push(m)}:i=function(f){a.push(sy.tester(f))},r.type){case"MultiPolygon":for(o=0;o0?m.properties.ct=lie(m):m.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=m,a.push(m)}else Jc.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[v]}switch(t.type){case"FeatureCollection":var s=t.features;for(i=0;ia&&(a=l,t=o)}else t=r;return Xae(t).geometry.coordinates}function sie(e){var r=window.PlotlyGeoAssets||{},t=[];function n(s){return new Promise(function(u,f){Wae.json(s,function(v,h){if(v){delete r[s];var d=v.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(d))}return r[s]=h,u(h)})})}function a(s){return new Promise(function(u,f){var v=0,h=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(h),u(r[s]);if(v>100)return clearInterval(h),f("Unexpected error while fetching from "+s);v++},50)})}for(var i=0;i{"use strict";var fie=kt(),cie=cn(),oF=Rt(),lF=Dh(),vie=lF.stylePoints,hie=lF.styleText;sF.exports=function(r,t){t&&die(r,t)};function die(e,r){var t=r[0].trace,n=r[0].node3;n.style("opacity",r[0].trace.opacity),vie(n,t,e),hie(n,t,e),n.selectAll("path.js-line").style("fill","none").each(function(a){var i=fie.select(this),o=a.trace,l=o.line||{};i.call(oF.stroke,l.color).call(cie.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(oF.fill,o.fillcolor)})}});var v_=te((A1e,cF)=>{"use strict";var uF=kt(),cy=gr(),pie=Qm().getTopojsonFeatures,u_=EN(),fy=uy(),fF=tf().findExtremes,c_=Pn().BADNUM,gie=fm().calcMarkerSize,f_=ri(),mie=s_();function yie(e,r,t){var n=r.layers.frontplot.select(".scatterlayer"),a=cy.makeTraceGroups(n,t,"trace scattergeo");function i(o,l){o.lonlat[0]===c_&&uF.select(l).remove()}a.selectAll("*").remove(),a.each(function(o){var l=uF.select(this),s=o[0].trace;if(f_.hasLines(s)||s.fill!=="none"){var u=u_.calcTraceToLineCoords(o),f=s.fill!=="none"?u_.makePolygon(u):u_.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}f_.hasMarkers(s)&&l.selectAll("path.point").data(cy.identity).enter().append("path").classed("point",!0).each(function(v){i(v,this)}),f_.hasText(s)&&l.selectAll("g").data(cy.identity).enter().append("g").append("text").each(function(v){i(v,this)}),mie(e,o)})}function bie(e,r){var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t._length,o,l;if(cy.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?fy.extractTraceFeature(e):pie(t,a.topojson);for(o=0;o{"use strict";var _ie=Ml(),xie=Pn().BADNUM,wie=Zb(),Mie=gr().fillText,Aie=Wh();vF.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function v(C){var x=C.lonlat;if(x[0]===xie||u(x))return 1/0;var b=f(x),A=f([t,n]),k=Math.abs(b[0]-A[0]),M=Math.abs(b[1]-A[1]),D=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(k*k+M*M)-D,1-3/D)}if(_ie.getClosest(a,v,r),r.index!==!1){var h=a[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:s};var _=i._module.formatLabels(h,i,y);return r.lonLabel=_.lonLabel,r.latLabel=_.latLabel,r.color=wie(i,h),r.extraText=Tie(i,h,r,a[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function Tie(e,r,t,n){if(e.hovertemplate)return;var a=r.hi||e.hoverinfo,i=a==="all"?Aie.hoverinfo.flags:a.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function v(h){return h+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+v(t.latLabel)+", "+v(t.lonLabel)+")"):l?f.push(n.lon+v(t.lonLabel)):s&&f.push(n.lat+v(t.latLabel)),u&&Mie(r,e,f),f.join("
")}});var pF=te((k1e,dF)=>{"use strict";dF.exports=function(r,t,n,a,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var yF=te((S1e,mF)=>{"use strict";var gF=ri(),kie=Pn().BADNUM;mF.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h,d=!gF.hasMarkers(l)&&!gF.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof vy=="object"&&typeof bF!="undefined"?vy:e.d3=e.d3||{})})(vy,function(e){"use strict";function r(ce,ge){return cege?1:ce>=ge?0:NaN}function t(ce){return ce.length===1&&(ce=n(ce)),{left:function(ge,Pe,de,G){for(de==null&&(de=0),G==null&&(G=ge.length);de>>1;ce(ge[Q],Pe)<0?de=Q+1:G=Q}return de},right:function(ge,Pe,de,G){for(de==null&&(de=0),G==null&&(G=ge.length);de>>1;ce(ge[Q],Pe)>0?G=Q:de=Q+1}return de}}}function n(ce){return function(ge,Pe){return r(ce(ge),Pe)}}var a=t(r),i=a.right,o=a.left;function l(ce,ge){ge==null&&(ge=s);for(var Pe=0,de=ce.length-1,G=ce[0],Q=new Array(de<0?0:de);Pece?1:ge>=ce?0:NaN}function v(ce){return ce===null?NaN:+ce}function h(ce,ge){var Pe=ce.length,de=0,G=-1,Q=0,$,be,qe=0;if(ge==null)for(;++G1)return qe/(de-1)}function d(ce,ge){var Pe=h(ce,ge);return Pe&&Math.sqrt(Pe)}function m(ce,ge){var Pe=ce.length,de=-1,G,Q,$;if(ge==null){for(;++de=G)for(Q=$=G;++deG&&(Q=G),$=G)for(Q=$=G;++deG&&(Q=G),$0)return[ce];if((de=ge0)for(ce=Math.ceil(ce/be),ge=Math.floor(ge/be),$=new Array(Q=Math.ceil(ge-ce+1));++G=0?(Q>=A?10:Q>=k?5:Q>=M?2:1)*Math.pow(10,G):-Math.pow(10,-G)/(Q>=A?10:Q>=k?5:Q>=M?2:1)}function N(ce,ge,Pe){var de=Math.abs(ge-ce)/Math.max(0,Pe),G=Math.pow(10,Math.floor(Math.log(de)/Math.LN10)),Q=de/G;return Q>=A?G*=10:Q>=k?G*=5:Q>=M&&(G*=2),geQe;)Be.pop(),--cr;var or=new Array(cr+1),hr;for(Q=0;Q<=cr;++Q)hr=or[Q]=[],hr.x0=Q>0?Be[Q-1]:ar,hr.x1=Q=1)return+Pe(ce[de-1],de-1,ce);var de,G=(de-1)*ge,Q=Math.floor(G),$=+Pe(ce[Q],Q,ce),be=+Pe(ce[Q+1],Q+1,ce);return $+(be-$)*(G-Q)}}function Z(ce,ge,Pe){return ce=_.call(ce,v).sort(r),Math.ceil((Pe-ge)/(2*(O(ce,.75)-O(ce,.25))*Math.pow(ce.length,-1/3)))}function H(ce,ge,Pe){return Math.ceil((Pe-ge)/(3.5*d(ce)*Math.pow(ce.length,-1/3)))}function ee(ce,ge){var Pe=ce.length,de=-1,G,Q;if(ge==null){for(;++de=G)for(Q=G;++deQ&&(Q=G)}else for(;++de=G)for(Q=G;++deQ&&(Q=G);return Q}function ie(ce,ge){var Pe=ce.length,de=Pe,G=-1,Q,$=0;if(ge==null)for(;++G=0;)for($=ce[ge],Pe=$.length;--Pe>=0;)Q[--G]=$[Pe];return Q}function fe(ce,ge){var Pe=ce.length,de=-1,G,Q;if(ge==null){for(;++de=G)for(Q=G;++deG&&(Q=G)}else for(;++de=G)for(Q=G;++deG&&(Q=G);return Q}function le(ce,ge){for(var Pe=ge.length,de=new Array(Pe);Pe--;)de[Pe]=ce[ge[Pe]];return de}function ke(ce,ge){if(Pe=ce.length){var Pe,de=0,G=0,Q,$=ce[G];for(ge==null&&(ge=r);++de{(function(e,r){typeof hy=="object"&&typeof _F!="undefined"?r(hy,h_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(hy,function(e,r){"use strict";function t(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(B){i(a,B,this.t),i(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new n;function i(B,J,ve){var oe=B.s=J+ve,Me=oe-J,Oe=oe-Me;B.t=J-Oe+(ve-Me)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,v=s*2,h=180/s,d=s/180,m=Math.abs,p=Math.atan,y=Math.atan2,_=Math.cos,C=Math.ceil,x=Math.exp,b=Math.log,A=Math.pow,k=Math.sin,M=Math.sign||function(B){return B>0?1:B<0?-1:0},D=Math.sqrt,R=Math.tan;function N(B){return B>1?0:B<-1?s:Math.acos(B)}function I(B){return B>1?u:B<-1?-u:Math.asin(B)}function W(B){return(B=k(B/2))*B}function O(){}function Z(B,J){B&&ee.hasOwnProperty(B.type)&&ee[B.type](B,J)}var H={Feature:function(B,J){Z(B.geometry,J)},FeatureCollection:function(B,J){for(var ve=B.features,oe=-1,Me=ve.length;++oe=0?1:-1,Me=oe*ve,Oe=_(J),je=k(J),ir=Ce*je,sr=Xe*Oe+ir*_(Me),_r=ir*oe*k(Me);fe.add(y(_r,sr)),He=B,Xe=Oe,Ce=je}function G(B){return le.reset(),K(B,er),le*2}function Q(B){return[y(B[1],B[0]),I(B[2])]}function $(B){var J=B[0],ve=B[1],oe=_(ve);return[oe*_(J),oe*k(J),k(ve)]}function be(B,J){return B[0]*J[0]+B[1]*J[1]+B[2]*J[2]}function qe(B,J){return[B[1]*J[2]-B[2]*J[1],B[2]*J[0]-B[0]*J[2],B[0]*J[1]-B[1]*J[0]]}function Ie(B,J){B[0]+=J[0],B[1]+=J[1],B[2]+=J[2]}function ar(B,J){return[B[0]*J,B[1]*J,B[2]*J]}function Qe(B){var J=D(B[0]*B[0]+B[1]*B[1]+B[2]*B[2]);B[0]/=J,B[1]/=J,B[2]/=J}var Be,cr,or,hr,Je,pr,yr,Te,Ue=t(),kr,Ur,tr={point:Ye,lineStart:dr,lineEnd:Ar,polygonStart:function(){tr.point=mr,tr.lineStart=br,tr.lineEnd=Ir,Ue.reset(),er.polygonStart()},polygonEnd:function(){er.polygonEnd(),tr.point=Ye,tr.lineStart=dr,tr.lineEnd=Ar,fe<0?(Be=-(or=180),cr=-(hr=90)):Ue>o?hr=90:Ue<-o&&(cr=-90),Ur[0]=Be,Ur[1]=or},sphere:function(){Be=-(or=180),cr=-(hr=90)}};function Ye(B,J){kr.push(Ur=[Be=B,or=B]),Jhr&&(hr=J)}function Ze(B,J){var ve=$([B*d,J*d]);if(Te){var oe=qe(Te,ve),Me=[oe[1],-oe[0],0],Oe=qe(Me,oe);Qe(Oe),Oe=Q(Oe);var je=B-Je,ir=je>0?1:-1,sr=Oe[0]*h*ir,_r,$e=m(je)>180;$e^(ir*Jehr&&(hr=_r)):(sr=(sr+360)%360-180,$e^(ir*Jehr&&(hr=J))),$e?BCr(Be,or)&&(or=B):Cr(B,or)>Cr(Be,or)&&(Be=B):or>=Be?(Bor&&(or=B)):B>Je?Cr(Be,B)>Cr(Be,or)&&(or=B):Cr(B,or)>Cr(Be,or)&&(Be=B)}else kr.push(Ur=[Be=B,or=B]);Jhr&&(hr=J),Te=ve,Je=B}function dr(){tr.point=Ze}function Ar(){Ur[0]=Be,Ur[1]=or,tr.point=Ye,Te=null}function mr(B,J){if(Te){var ve=B-Je;Ue.add(m(ve)>180?ve+(ve>0?360:-360):ve)}else pr=B,yr=J;er.point(B,J),Ze(B,J)}function br(){er.lineStart()}function Ir(){mr(pr,yr),er.lineEnd(),m(Ue)>o&&(Be=-(or=180)),Ur[0]=Be,Ur[1]=or,Te=null}function Cr(B,J){return(J-=B)<0?J+360:J}function Er(B,J){return B[0]-J[0]}function lr(B,J){return B[0]<=B[1]?B[0]<=J&&J<=B[1]:JCr(oe[0],oe[1])&&(oe[1]=Me[1]),Cr(Me[0],oe[1])>Cr(oe[0],oe[1])&&(oe[0]=Me[0])):Oe.push(oe=Me);for(je=-1/0,ve=Oe.length-1,J=0,oe=Oe[ve];J<=ve;oe=Me,++J)Me=Oe[J],(ir=Cr(oe[1],Me[0]))>je&&(je=ir,Be=Me[0],or=oe[1])}return kr=Ur=null,Be===1/0||cr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Be,cr],[or,hr]]}var Ae,Ke,nr,Sr,Yr,zr,st,bt,St,$t,vn,hn,Ln,Ut,en,Kt,rn={sphere:O,point:la,lineStart:On,lineEnd:Pt,polygonStart:function(){rn.lineStart=tn,rn.lineEnd=zn},polygonEnd:function(){rn.lineStart=On,rn.lineEnd=Pt}};function la(B,J){B*=d,J*=d;var ve=_(J);xn(ve*_(B),ve*k(B),k(J))}function xn(B,J,ve){++Ae,nr+=(B-nr)/Ae,Sr+=(J-Sr)/Ae,Yr+=(ve-Yr)/Ae}function On(){rn.point=Gr}function Gr(B,J){B*=d,J*=d;var ve=_(J);Ut=ve*_(B),en=ve*k(B),Kt=k(J),rn.point=on,xn(Ut,en,Kt)}function on(B,J){B*=d,J*=d;var ve=_(J),oe=ve*_(B),Me=ve*k(B),Oe=k(J),je=y(D((je=en*Oe-Kt*Me)*je+(je=Kt*oe-Ut*Oe)*je+(je=Ut*Me-en*oe)*je),Ut*oe+en*Me+Kt*Oe);Ke+=je,zr+=je*(Ut+(Ut=oe)),st+=je*(en+(en=Me)),bt+=je*(Kt+(Kt=Oe)),xn(Ut,en,Kt)}function Pt(){rn.point=la}function tn(){rn.point=Wn}function zn(){Yt(hn,Ln),rn.point=la}function Wn(B,J){hn=B,Ln=J,B*=d,J*=d,rn.point=Yt;var ve=_(J);Ut=ve*_(B),en=ve*k(B),Kt=k(J),xn(Ut,en,Kt)}function Yt(B,J){B*=d,J*=d;var ve=_(J),oe=ve*_(B),Me=ve*k(B),Oe=k(J),je=en*Oe-Kt*Me,ir=Kt*oe-Ut*Oe,sr=Ut*Me-en*oe,_r=D(je*je+ir*ir+sr*sr),$e=I(_r),vr=_r&&-$e/_r;St+=vr*je,$t+=vr*ir,vn+=vr*sr,Ke+=$e,zr+=$e*(Ut+(Ut=oe)),st+=$e*(en+(en=Me)),bt+=$e*(Kt+(Kt=Oe)),xn(Ut,en,Kt)}function ga(B){Ae=Ke=nr=Sr=Yr=zr=st=bt=St=$t=vn=0,K(B,rn);var J=St,ve=$t,oe=vn,Me=J*J+ve*ve+oe*oe;return Mes?B+Math.round(-B/v)*v:B,J]}Qt.invert=Qt;function An(B,J,ve){return(B%=v)?J||ve?wn(oo(B),yi(J,ve)):oo(B):J||ve?yi(J,ve):Qt}function ta(B){return function(J,ve){return J+=B,[J>s?J-v:J<-s?J+v:J,ve]}}function oo(B){var J=ta(B);return J.invert=ta(-B),J}function yi(B,J){var ve=_(B),oe=k(B),Me=_(J),Oe=k(J);function je(ir,sr){var _r=_(sr),$e=_(ir)*_r,vr=k(ir)*_r,ur=k(sr),Mr=ur*ve+$e*oe;return[y(vr*Me-Mr*Oe,$e*ve-ur*oe),I(Mr*Me+vr*Oe)]}return je.invert=function(ir,sr){var _r=_(sr),$e=_(ir)*_r,vr=k(ir)*_r,ur=k(sr),Mr=ur*Me-vr*Oe;return[y(vr*Me+ur*Oe,$e*ve+Mr*oe),I(Mr*ve-$e*oe)]},je}function As(B){B=An(B[0]*d,B[1]*d,B.length>2?B[2]*d:0);function J(ve){return ve=B(ve[0]*d,ve[1]*d),ve[0]*=h,ve[1]*=h,ve}return J.invert=function(ve){return ve=B.invert(ve[0]*d,ve[1]*d),ve[0]*=h,ve[1]*=h,ve},J}function Nl(B,J,ve,oe,Me,Oe){if(ve){var je=_(J),ir=k(J),sr=oe*ve;Me==null?(Me=J+oe*v,Oe=J-sr/2):(Me=Yo(je,Me),Oe=Yo(je,Oe),(oe>0?MeOe)&&(Me+=oe*v));for(var _r,$e=Me;oe>0?$e>Oe:$e1&&B.push(B.pop().concat(B.shift()))},result:function(){var ve=B;return B=[],J=null,ve}}}function Un(B,J){return m(B[0]-J[0])=0;--ir)Me.point((vr=$e[ir])[0],vr[1]);else oe(ur.x,ur.p.x,-1,Me);ur=ur.p}ur=ur.o,$e=ur.z,Mr=!Mr}while(!ur.v);Me.lineEnd()}}}function _i(B){if(J=B.length){for(var J,ve=0,oe=B[0],Me;++ve=0?1:-1,Wt=nn*Gt,pn=Wt>s,Lt=rt*it;if(Qr.add(y(Lt*nn*k(Wt),Jr*pt+Lt*_(Wt))),je+=pn?Gt+nn*v:Gt,pn^Mr>=ve^Dr>=ve){var sa=qe($(ur),$(nt));Qe(sa);var Nn=qe(Oe,sa);Qe(Nn);var gn=(pn^Gt>=0?-1:1)*I(Nn[2]);(oe>gn||oe===gn&&(sa[0]||sa[1]))&&(ir+=pn^Gt>=0?1:-1)}}return(je<-o||je0){for(sr||(Me.polygonStart(),sr=!0),Me.lineStart(),pt=0;pt1&&Hr&2&&it.push(it.pop().concat(it.shift())),$e.push(it.filter(Zn))}}return ur}}function Zn(B){return B.length>1}function ln(B,J){return((B=B.x)[0]<0?B[1]-u-o:u-B[1])-((J=J.x)[0]<0?J[1]-u-o:u-J[1])}var En=Br(function(){return!0},At,Wo,[-s,-u]);function At(B){var J=NaN,ve=NaN,oe=NaN,Me;return{lineStart:function(){B.lineStart(),Me=1},point:function(Oe,je){var ir=Oe>0?s:-s,sr=m(Oe-J);m(sr-s)0?u:-u),B.point(oe,ve),B.lineEnd(),B.lineStart(),B.point(ir,ve),B.point(Oe,ve),Me=0):oe!==ir&&sr>=s&&(m(J-oe)o?p((k(J)*(Oe=_(oe))*k(ve)-k(oe)*(Me=_(J))*k(B))/(Me*Oe*je)):(J+oe)/2}function Wo(B,J,ve,oe){var Me;if(B==null)Me=ve*u,oe.point(-s,Me),oe.point(0,Me),oe.point(s,Me),oe.point(s,0),oe.point(s,-Me),oe.point(0,-Me),oe.point(-s,-Me),oe.point(-s,0),oe.point(-s,Me);else if(m(B[0]-J[0])>o){var Oe=B[0]0,Me=m(J)>o;function Oe($e,vr,ur,Mr){Nl(Mr,B,ve,ur,$e,vr)}function je($e,vr){return _($e)*_(vr)>J}function ir($e){var vr,ur,Mr,qr,rt;return{lineStart:function(){qr=Mr=!1,rt=1},point:function(Jr,tt){var nt=[Jr,tt],Dr,Hr=je(Jr,tt),it=oe?Hr?0:_r(Jr,tt):Hr?_r(Jr+(Jr<0?s:-s),tt):0;if(!vr&&(qr=Mr=Hr)&&$e.lineStart(),Hr!==Mr&&(Dr=sr(vr,nt),(!Dr||Un(vr,Dr)||Un(nt,Dr))&&(nt[2]=1)),Hr!==Mr)rt=0,Hr?($e.lineStart(),Dr=sr(nt,vr),$e.point(Dr[0],Dr[1])):(Dr=sr(vr,nt),$e.point(Dr[0],Dr[1],2),$e.lineEnd()),vr=Dr;else if(Me&&vr&&oe^Hr){var pt;!(it&ur)&&(pt=sr(nt,vr,!0))&&(rt=0,oe?($e.lineStart(),$e.point(pt[0][0],pt[0][1]),$e.point(pt[1][0],pt[1][1]),$e.lineEnd()):($e.point(pt[1][0],pt[1][1]),$e.lineEnd(),$e.lineStart(),$e.point(pt[0][0],pt[0][1],3)))}Hr&&(!vr||!Un(vr,nt))&&$e.point(nt[0],nt[1]),vr=nt,Mr=Hr,ur=it},lineEnd:function(){Mr&&$e.lineEnd(),vr=null},clean:function(){return rt|(qr&&Mr)<<1}}}function sr($e,vr,ur){var Mr=$($e),qr=$(vr),rt=[1,0,0],Jr=qe(Mr,qr),tt=be(Jr,Jr),nt=Jr[0],Dr=tt-nt*nt;if(!Dr)return!ur&&$e;var Hr=J*tt/Dr,it=-J*nt/Dr,pt=qe(rt,Jr),Gt=ar(rt,Hr),nn=ar(Jr,it);Ie(Gt,nn);var Wt=pt,pn=be(Gt,Wt),Lt=be(Wt,Wt),sa=pn*pn-Lt*(be(Gt,Gt)-1);if(!(sa<0)){var Nn=D(sa),gn=ar(Wt,(-pn-Nn)/Lt);if(Ie(gn,Gt),gn=Q(gn),!ur)return gn;var Vr=$e[0],Vt=vr[0],Yn=$e[1],ya=vr[1],Ja;Vt0^gn[1]<(m(gn[0]-Vr)s^(Vr<=gn[0]&&gn[0]<=Vt)){var ci=ar(Wt,(-pn+Nn)/Lt);return Ie(ci,Gt),[gn,Q(ci)]}}}function _r($e,vr){var ur=oe?B:s-B,Mr=0;return $e<-ur?Mr|=1:$e>ur&&(Mr|=2),vr<-ur?Mr|=4:vr>ur&&(Mr|=8),Mr}return Br(je,ir,Oe,oe?[0,-B]:[-s,B-s])}function yu(B,J,ve,oe,Me,Oe){var je=B[0],ir=B[1],sr=J[0],_r=J[1],$e=0,vr=1,ur=sr-je,Mr=_r-ir,qr;if(qr=ve-je,!(!ur&&qr>0)){if(qr/=ur,ur<0){if(qr<$e)return;qr0){if(qr>vr)return;qr>$e&&($e=qr)}if(qr=Me-je,!(!ur&&qr<0)){if(qr/=ur,ur<0){if(qr>vr)return;qr>$e&&($e=qr)}else if(ur>0){if(qr<$e)return;qr0)){if(qr/=Mr,Mr<0){if(qr<$e)return;qr0){if(qr>vr)return;qr>$e&&($e=qr)}if(qr=Oe-ir,!(!Mr&&qr<0)){if(qr/=Mr,Mr<0){if(qr>vr)return;qr>$e&&($e=qr)}else if(Mr>0){if(qr<$e)return;qr0&&(B[0]=je+$e*ur,B[1]=ir+$e*Mr),vr<1&&(J[0]=je+vr*ur,J[1]=ir+vr*Mr),!0}}}}}var lo=1e9,Zo=-lo;function Xo(B,J,ve,oe){function Me(_r,$e){return B<=_r&&_r<=ve&&J<=$e&&$e<=oe}function Oe(_r,$e,vr,ur){var Mr=0,qr=0;if(_r==null||(Mr=je(_r,vr))!==(qr=je($e,vr))||sr(_r,$e)<0^vr>0)do ur.point(Mr===0||Mr===3?B:ve,Mr>1?oe:J);while((Mr=(Mr+vr+4)%4)!==qr);else ur.point($e[0],$e[1])}function je(_r,$e){return m(_r[0]-B)0?0:3:m(_r[0]-ve)0?2:1:m(_r[1]-J)0?1:0:$e>0?3:2}function ir(_r,$e){return sr(_r.x,$e.x)}function sr(_r,$e){var vr=je(_r,1),ur=je($e,1);return vr!==ur?vr-ur:vr===0?$e[1]-_r[1]:vr===1?_r[0]-$e[0]:vr===2?_r[1]-$e[1]:$e[0]-_r[0]}return function(_r){var $e=_r,vr=Go(),ur,Mr,qr,rt,Jr,tt,nt,Dr,Hr,it,pt,Gt={point:nn,lineStart:sa,lineEnd:Nn,polygonStart:pn,polygonEnd:Lt};function nn(Vr,Vt){Me(Vr,Vt)&&$e.point(Vr,Vt)}function Wt(){for(var Vr=0,Vt=0,Yn=Mr.length;Vtoe&&(ll-ol)*(oe-ci)>($l-ci)*(B-ol)&&++Vr:$l<=oe&&(ll-ol)*(oe-ci)<($l-ci)*(B-ol)&&--Vr;return Vr}function pn(){$e=vr,ur=[],Mr=[],pt=!0}function Lt(){var Vr=Wt(),Vt=pt&&Vr,Yn=(ur=r.merge(ur)).length;(Vt||Yn)&&(_r.polygonStart(),Vt&&(_r.lineStart(),Oe(null,null,1,_r),_r.lineEnd()),Yn&&Vo(ur,ir,Vr,Oe,_r),_r.polygonEnd()),$e=_r,ur=Mr=qr=null}function sa(){Gt.point=gn,Mr&&Mr.push(qr=[]),it=!0,Hr=!1,nt=Dr=NaN}function Nn(){ur&&(gn(rt,Jr),tt&&Hr&&vr.rejoin(),ur.push(vr.result())),Gt.point=nn,Hr&&$e.lineEnd()}function gn(Vr,Vt){var Yn=Me(Vr,Vt);if(Mr&&qr.push([Vr,Vt]),it)rt=Vr,Jr=Vt,tt=Yn,it=!1,Yn&&($e.lineStart(),$e.point(Vr,Vt));else if(Yn&&Hr)$e.point(Vr,Vt);else{var ya=[nt=Math.max(Zo,Math.min(lo,nt)),Dr=Math.max(Zo,Math.min(lo,Dr))],Ja=[Vr=Math.max(Zo,Math.min(lo,Vr)),Vt=Math.max(Zo,Math.min(lo,Vt))];yu(ya,Ja,B,J,ve,oe)?(Hr||($e.lineStart(),$e.point(ya[0],ya[1])),$e.point(Ja[0],Ja[1]),Yn||$e.lineEnd(),pt=!1):Yn&&($e.lineStart(),$e.point(Vr,Vt),pt=!1)}nt=Vr,Dr=Vt,Hr=Yn}return Gt}}function bu(){var B=0,J=0,ve=960,oe=500,Me,Oe,je;return je={stream:function(ir){return Me&&Oe===ir?Me:Me=Xo(B,J,ve,oe)(Oe=ir)},extent:function(ir){return arguments.length?(B=+ir[0][0],J=+ir[0][1],ve=+ir[1][0],oe=+ir[1][1],Me=Oe=null,je):[[B,J],[ve,oe]]}}}var Fl=t(),Il,xi,so,jo={sphere:O,point:O,lineStart:Hl,lineEnd:O,polygonStart:O,polygonEnd:O};function Hl(){jo.point=qf,jo.lineEnd=ks}function ks(){jo.point=jo.lineEnd=O}function qf(B,J){B*=d,J*=d,Il=B,xi=k(J),so=_(J),jo.point=i0}function i0(B,J){B*=d,J*=d;var ve=k(J),oe=_(J),Me=m(B-Il),Oe=_(Me),je=k(Me),ir=oe*je,sr=so*ve-xi*oe*Oe,_r=xi*ve+so*oe*Oe;Fl.add(y(D(ir*ir+sr*sr),_r)),Il=B,xi=ve,so=oe}function Ss(B){return Fl.reset(),K(B,jo),+Fl}var Cs=[null,null],Ls={type:"LineString",coordinates:Cs};function Jo(B,J){return Cs[0]=B,Cs[1]=J,Ss(Ls)}var uo={Feature:function(B,J){return Oi(B.geometry,J)},FeatureCollection:function(B,J){for(var ve=B.features,oe=-1,Me=ve.length;++oe0&&(Me=Jo(B[Oe],B[Oe-1]),Me>0&&ve<=Me&&oe<=Me&&(ve+oe-Me)*(1-Math.pow((ve-oe)/Me,2))o}).map(ur)).concat(r.range(C(Oe/_r)*_r,Me,_r).filter(function(Dr){return m(Dr%vr)>o}).map(Mr))}return tt.lines=function(){return nt().map(function(Dr){return{type:"LineString",coordinates:Dr}})},tt.outline=function(){return{type:"Polygon",coordinates:[qr(oe).concat(rt(je).slice(1),qr(ve).reverse().slice(1),rt(ir).reverse().slice(1))]}},tt.extent=function(Dr){return arguments.length?tt.extentMajor(Dr).extentMinor(Dr):tt.extentMinor()},tt.extentMajor=function(Dr){return arguments.length?(oe=+Dr[0][0],ve=+Dr[1][0],ir=+Dr[0][1],je=+Dr[1][1],oe>ve&&(Dr=oe,oe=ve,ve=Dr),ir>je&&(Dr=ir,ir=je,je=Dr),tt.precision(Jr)):[[oe,ir],[ve,je]]},tt.extentMinor=function(Dr){return arguments.length?(J=+Dr[0][0],B=+Dr[1][0],Oe=+Dr[0][1],Me=+Dr[1][1],J>B&&(Dr=J,J=B,B=Dr),Oe>Me&&(Dr=Oe,Oe=Me,Me=Dr),tt.precision(Jr)):[[J,Oe],[B,Me]]},tt.step=function(Dr){return arguments.length?tt.stepMajor(Dr).stepMinor(Dr):tt.stepMinor()},tt.stepMajor=function(Dr){return arguments.length?($e=+Dr[0],vr=+Dr[1],tt):[$e,vr]},tt.stepMinor=function(Dr){return arguments.length?(sr=+Dr[0],_r=+Dr[1],tt):[sr,_r]},tt.precision=function(Dr){return arguments.length?(Jr=+Dr,ur=Ui(Oe,Me,90),Mr=Ds(J,B,Jr),qr=Ui(ir,je,90),rt=Ds(oe,ve,Jr),tt):Jr},tt.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Es(){return l0()()}function Vv(B,J){var ve=B[0]*d,oe=B[1]*d,Me=J[0]*d,Oe=J[1]*d,je=_(oe),ir=k(oe),sr=_(Oe),_r=k(Oe),$e=je*_(ve),vr=je*k(ve),ur=sr*_(Me),Mr=sr*k(Me),qr=2*I(D(W(Oe-oe)+je*sr*W(Me-ve))),rt=k(qr),Jr=qr?function(tt){var nt=k(tt*=qr)/rt,Dr=k(qr-tt)/rt,Hr=Dr*$e+nt*ur,it=Dr*vr+nt*Mr,pt=Dr*ir+nt*_r;return[y(it,Hr)*h,y(pt,D(Hr*Hr+it*it))*h]}:function(){return[ve*h,oe*h]};return Jr.distance=qr,Jr}function $o(B){return B}var Pf=t(),Ol=t(),s0,co,vo,Rf,wi={point:O,lineStart:O,lineEnd:O,polygonStart:function(){wi.lineStart=Wv,wi.lineEnd=Zv},polygonEnd:function(){wi.lineStart=wi.lineEnd=wi.point=O,Pf.add(m(Ol)),Ol.reset()},result:function(){var B=Pf/2;return Pf.reset(),B}};function Wv(){wi.point=Yi}function Yi(B,J){wi.point=Ul,s0=vo=B,co=Rf=J}function Ul(B,J){Ol.add(Rf*B-vo*J),vo=B,Rf=J}function Zv(){Ul(s0,co)}var Gi=1/0,Ko=Gi,Qo=-Gi,el=Qo,ho={point:Ps,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var B=[[Gi,Ko],[Qo,el]];return Qo=el=-(Ko=Gi=1/0),B}};function Ps(B,J){BQo&&(Qo=B),Jel&&(el=J)}var xu=0,Rs=0,zs=0,rl=0,Yl=0,Gl=0,wu=0,Mu=0,ui=0,Au,Tu,Ia,na,Sa={point:Vi,lineStart:Ns,lineEnd:zf,polygonStart:function(){Sa.lineStart=u0,Sa.lineEnd=Xv},polygonEnd:function(){Sa.point=Vi,Sa.lineStart=Ns,Sa.lineEnd=zf},result:function(){var B=ui?[wu/ui,Mu/ui]:Gl?[rl/Gl,Yl/Gl]:zs?[xu/zs,Rs/zs]:[NaN,NaN];return xu=Rs=zs=rl=Yl=Gl=wu=Mu=ui=0,B}};function Vi(B,J){xu+=B,Rs+=J,++zs}function Ns(){Sa.point=tl}function tl(B,J){Sa.point=Vl,Vi(Ia=B,na=J)}function Vl(B,J){var ve=B-Ia,oe=J-na,Me=D(ve*ve+oe*oe);rl+=Me*(Ia+B)/2,Yl+=Me*(na+J)/2,Gl+=Me,Vi(Ia=B,na=J)}function zf(){Sa.point=Vi}function u0(){Sa.point=jv}function Xv(){Nf(Au,Tu)}function jv(B,J){Sa.point=Nf,Vi(Au=Ia=B,Tu=na=J)}function Nf(B,J){var ve=B-Ia,oe=J-na,Me=D(ve*ve+oe*oe);rl+=Me*(Ia+B)/2,Yl+=Me*(na+J)/2,Gl+=Me,Me=na*B-Ia*J,wu+=Me*(Ia+B),Mu+=Me*(na+J),ui+=Me*3,Vi(Ia=B,na=J)}function Ff(B){this._context=B}Ff.prototype={_radius:4.5,pointRadius:function(B){return this._radius=B,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(B,J){switch(this._point){case 0:{this._context.moveTo(B,J),this._point=1;break}case 1:{this._context.lineTo(B,J);break}default:{this._context.moveTo(B+this._radius,J),this._context.arc(B,J,this._radius,0,v);break}}},result:O};var If=t(),Hf,f0,c0,Fs,Is,Mi={point:O,lineStart:function(){Mi.point=ku},lineEnd:function(){Hf&&Hs(f0,c0),Mi.point=O},polygonStart:function(){Hf=!0},polygonEnd:function(){Hf=null},result:function(){var B=+If;return If.reset(),B}};function ku(B,J){Mi.point=Hs,f0=Fs=B,c0=Is=J}function Hs(B,J){Fs-=B,Is-=J,If.add(D(Fs*Fs+Is*Is)),Fs=B,Is=J}function Su(){this._string=[]}Su.prototype={_radius:4.5,_circle:v0(4.5),pointRadius:function(B){return(B=+B)!==this._radius&&(this._radius=B,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(B,J){switch(this._point){case 0:{this._string.push("M",B,",",J),this._point=1;break}case 1:{this._string.push("L",B,",",J);break}default:{this._circle==null&&(this._circle=v0(this._radius)),this._string.push("M",B,",",J,this._circle);break}}},result:function(){if(this._string.length){var B=this._string.join("");return this._string=[],B}else return null}};function v0(B){return"m0,"+B+"a"+B+","+B+" 0 1,1 0,"+-2*B+"a"+B+","+B+" 0 1,1 0,"+2*B+"z"}function Bf(B,J){var ve=4.5,oe,Me;function Oe(je){return je&&(typeof ve=="function"&&Me.pointRadius(+ve.apply(this,arguments)),K(je,oe(Me))),Me.result()}return Oe.area=function(je){return K(je,oe(wi)),wi.result()},Oe.measure=function(je){return K(je,oe(Mi)),Mi.result()},Oe.bounds=function(je){return K(je,oe(ho)),ho.result()},Oe.centroid=function(je){return K(je,oe(Sa)),Sa.result()},Oe.projection=function(je){return arguments.length?(oe=je==null?(B=null,$o):(B=je).stream,Oe):B},Oe.context=function(je){return arguments.length?(Me=je==null?(J=null,new Su):new Ff(J=je),typeof ve!="function"&&Me.pointRadius(ve),Oe):J},Oe.pointRadius=function(je){return arguments.length?(ve=typeof je=="function"?je:(Me.pointRadius(+je),+je),Oe):ve},Oe.projection(B).context(J)}function Jv(B){return{stream:po(B)}}function po(B){return function(J){var ve=new Cu;for(var oe in B)ve[oe]=B[oe];return ve.stream=J,ve}}function Cu(){}Cu.prototype={constructor:Cu,point:function(B,J){this.stream.point(B,J)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wl(B,J,ve){var oe=B.clipExtent&&B.clipExtent();return B.scale(150).translate([0,0]),oe!=null&&B.clipExtent(null),K(ve,B.stream(ho)),J(ho.result()),oe!=null&&B.clipExtent(oe),B}function Bs(B,J,ve){return Wl(B,function(oe){var Me=J[1][0]-J[0][0],Oe=J[1][1]-J[0][1],je=Math.min(Me/(oe[1][0]-oe[0][0]),Oe/(oe[1][1]-oe[0][1])),ir=+J[0][0]+(Me-je*(oe[1][0]+oe[0][0]))/2,sr=+J[0][1]+(Oe-je*(oe[1][1]+oe[0][1]))/2;B.scale(150*je).translate([ir,sr])},ve)}function Os(B,J,ve){return Bs(B,[[0,0],J],ve)}function Of(B,J,ve){return Wl(B,function(oe){var Me=+J,Oe=Me/(oe[1][0]-oe[0][0]),je=(Me-Oe*(oe[1][0]+oe[0][0]))/2,ir=-Oe*oe[0][1];B.scale(150*Oe).translate([je,ir])},ve)}function go(B,J,ve){return Wl(B,function(oe){var Me=+J,Oe=Me/(oe[1][1]-oe[0][1]),je=-Oe*oe[0][0],ir=(Me-Oe*(oe[1][1]+oe[0][1]))/2;B.scale(150*Oe).translate([je,ir])},ve)}var h0=16,Uf=_(30*d);function d0(B,J){return+J?Lu(B,J):Yf(B)}function Yf(B){return po({point:function(J,ve){J=B(J,ve),this.stream.point(J[0],J[1])}})}function Lu(B,J){function ve(oe,Me,Oe,je,ir,sr,_r,$e,vr,ur,Mr,qr,rt,Jr){var tt=_r-oe,nt=$e-Me,Dr=tt*tt+nt*nt;if(Dr>4*J&&rt--){var Hr=je+ur,it=ir+Mr,pt=sr+qr,Gt=D(Hr*Hr+it*it+pt*pt),nn=I(pt/=Gt),Wt=m(m(pt)-1)J||m((tt*Nn+nt*gn)/Dr-.5)>.3||je*ur+ir*Mr+sr*qr2?Vr[2]%360*d:0,Nn()):[ir*h,sr*h,_r*h]},Lt.angle=function(Vr){return arguments.length?(vr=Vr%360*d,Nn()):vr*h},Lt.reflectX=function(Vr){return arguments.length?(ur=Vr?-1:1,Nn()):ur<0},Lt.reflectY=function(Vr){return arguments.length?(Mr=Vr?-1:1,Nn()):Mr<0},Lt.precision=function(Vr){return arguments.length?(pt=d0(Gt,it=Vr*Vr),gn()):D(it)},Lt.fitExtent=function(Vr,Vt){return Bs(Lt,Vr,Vt)},Lt.fitSize=function(Vr,Vt){return Os(Lt,Vr,Vt)},Lt.fitWidth=function(Vr,Vt){return Of(Lt,Vr,Vt)},Lt.fitHeight=function(Vr,Vt){return go(Lt,Vr,Vt)};function Nn(){var Vr=Wf(ve,0,0,ur,Mr,vr).apply(null,J(Oe,je)),Vt=(vr?Wf:$v)(ve,oe-Vr[0],Me-Vr[1],ur,Mr,vr);return $e=An(ir,sr,_r),Gt=wn(J,Vt),nn=wn($e,Gt),pt=d0(Gt,it),gn()}function gn(){return Wt=pn=null,Lt}return function(){return J=B.apply(this,arguments),Lt.invert=J.invert&&sa,Nn()}}function Zl(B){var J=0,ve=s/3,oe=Zf(B),Me=oe(J,ve);return Me.parallels=function(Oe){return arguments.length?oe(J=Oe[0]*d,ve=Oe[1]*d):[J*h,ve*h]},Me}function Xf(B){var J=_(B);function ve(oe,Me){return[oe*J,k(Me)/J]}return ve.invert=function(oe,Me){return[oe/J,I(Me*J)]},ve}function p0(B,J){var ve=k(B),oe=(ve+k(J))/2;if(m(oe)=.12&&Jr<.234&&rt>=-.425&&rt<-.214?Me:Jr>=.166&&Jr<.234&&rt>=-.214&&rt<-.115?je:ve).invert(ur)},$e.stream=function(ur){return B&&J===ur?B:B=Kv([ve.stream(J=ur),Me.stream(ur),je.stream(ur)])},$e.precision=function(ur){return arguments.length?(ve.precision(ur),Me.precision(ur),je.precision(ur),vr()):ve.precision()},$e.scale=function(ur){return arguments.length?(ve.scale(ur),Me.scale(ur*.35),je.scale(ur),$e.translate(ve.translate())):ve.scale()},$e.translate=function(ur){if(!arguments.length)return ve.translate();var Mr=ve.scale(),qr=+ur[0],rt=+ur[1];return oe=ve.translate(ur).clipExtent([[qr-.455*Mr,rt-.238*Mr],[qr+.455*Mr,rt+.238*Mr]]).stream(_r),Oe=Me.translate([qr-.307*Mr,rt+.201*Mr]).clipExtent([[qr-.425*Mr+o,rt+.12*Mr+o],[qr-.214*Mr-o,rt+.234*Mr-o]]).stream(_r),ir=je.translate([qr-.205*Mr,rt+.212*Mr]).clipExtent([[qr-.214*Mr+o,rt+.166*Mr+o],[qr-.115*Mr-o,rt+.234*Mr-o]]).stream(_r),vr()},$e.fitExtent=function(ur,Mr){return Bs($e,ur,Mr)},$e.fitSize=function(ur,Mr){return Os($e,ur,Mr)},$e.fitWidth=function(ur,Mr){return Of($e,ur,Mr)},$e.fitHeight=function(ur,Mr){return go($e,ur,Mr)};function vr(){return B=J=null,$e}return $e.scale(1070)}function Wi(B){return function(J,ve){var oe=_(J),Me=_(ve),Oe=B(oe*Me);return[Oe*Me*k(J),Oe*k(ve)]}}function Ti(B){return function(J,ve){var oe=D(J*J+ve*ve),Me=B(oe),Oe=k(Me),je=_(Me);return[y(J*Oe,oe*je),I(oe&&ve*Oe/oe)]}}var Ha=Wi(function(B){return D(2/(1+B))});Ha.invert=Ti(function(B){return 2*I(B/2)});function e1(){return Ai(Ha).scale(124.75).clipAngle(180-.001)}var Xl=Wi(function(B){return(B=N(B))&&B/k(B)});Xl.invert=Ti(function(B){return B});function m0(){return Ai(Xl).scale(79.4188).clipAngle(180-.001)}function ja(B,J){return[B,b(R((u+J)/2))]}ja.invert=function(B,J){return[B,2*p(x(J))-u]};function y0(){return b0(ja).scale(961/v)}function b0(B){var J=Ai(B),ve=J.center,oe=J.scale,Me=J.translate,Oe=J.clipExtent,je=null,ir,sr,_r;J.scale=function(vr){return arguments.length?(oe(vr),$e()):oe()},J.translate=function(vr){return arguments.length?(Me(vr),$e()):Me()},J.center=function(vr){return arguments.length?(ve(vr),$e()):ve()},J.clipExtent=function(vr){return arguments.length?(vr==null?je=ir=sr=_r=null:(je=+vr[0][0],ir=+vr[0][1],sr=+vr[1][0],_r=+vr[1][1]),$e()):je==null?null:[[je,ir],[sr,_r]]};function $e(){var vr=s*oe(),ur=J(As(J.rotate()).invert([0,0]));return Oe(je==null?[[ur[0]-vr,ur[1]-vr],[ur[0]+vr,ur[1]+vr]]:B===ja?[[Math.max(ur[0]-vr,je),ir],[Math.min(ur[0]+vr,sr),_r]]:[[je,Math.max(ur[1]-vr,ir)],[sr,Math.min(ur[1]+vr,_r)]])}return $e()}function Us(B){return R((u+B)/2)}function _0(B,J){var ve=_(B),oe=B===J?k(B):b(ve/_(J))/b(Us(J)/Us(B)),Me=ve*A(Us(B),oe)/oe;if(!oe)return ja;function Oe(je,ir){Me>0?ir<-u+o&&(ir=-u+o):ir>u-o&&(ir=u-o);var sr=Me/A(Us(ir),oe);return[sr*k(oe*je),Me-sr*_(oe*je)]}return Oe.invert=function(je,ir){var sr=Me-ir,_r=M(oe)*D(je*je+sr*sr),$e=y(je,m(sr))*M(sr);return sr*oe<0&&($e-=s*M(je)*M(sr)),[$e/oe,2*p(A(Me/_r,1/oe))-u]},Oe}function qu(){return Zl(_0).scale(109.5).parallels([30,30])}function Ys(B,J){return[B,J]}Ys.invert=Ys;function Du(){return Ai(Ys).scale(152.63)}function Gs(B,J){var ve=_(B),oe=B===J?k(B):(ve-_(J))/(J-B),Me=ve/oe+B;if(m(oe)o&&--oe>0);return[B/(.8707+(Oe=ve*ve)*(-.131979+Oe*(-.013791+Oe*Oe*Oe*(.003971-.001529*Oe)))),ve]};function Ru(){return Ai(jf).scale(175.295)}function Xn(B,J){return[_(J)*k(B),k(J)]}Xn.invert=Ti(I);function fi(){return Ai(Xn).scale(249.5).clipAngle(90+o)}function Jl(B,J){var ve=_(J),oe=1+_(B)*ve;return[ve*k(B)/oe,k(J)/oe]}Jl.invert=Ti(function(B){return 2*p(B)});function zu(){return Ai(Jl).scale(250).clipAngle(142)}function Xs(B,J){return[b(R((u+J)/2)),-B]}Xs.invert=function(B,J){return[-J,2*p(x(B))-u]};function Jf(){var B=b0(Xs),J=B.center,ve=B.rotate;return B.center=function(oe){return arguments.length?J([-oe[1],oe[0]]):(oe=J(),[oe[1],-oe[0]])},B.rotate=function(oe){return arguments.length?ve([oe[0],oe[1],oe.length>2?oe[2]+90:90]):(oe=ve(),[oe[0],oe[1],oe[2]-90])},ve([0,0,90]).scale(159.155)}e.geoAlbers=g0,e.geoAlbersUsa=Qv,e.geoArea=G,e.geoAzimuthalEqualArea=e1,e.geoAzimuthalEqualAreaRaw=Ha,e.geoAzimuthalEquidistant=m0,e.geoAzimuthalEquidistantRaw=Xl,e.geoBounds=xe,e.geoCentroid=ga,e.geoCircle=Ts,e.geoClipAntimeridian=En,e.geoClipCircle=Lf,e.geoClipExtent=bu,e.geoClipRectangle=Xo,e.geoConicConformal=qu,e.geoConicConformalRaw=_0,e.geoConicEqualArea=nl,e.geoConicEqualAreaRaw=p0,e.geoConicEquidistant=r1,e.geoConicEquidistantRaw=Gs,e.geoContains=qs,e.geoDistance=Jo,e.geoEqualEarth=x0,e.geoEqualEarthRaw=Zs,e.geoEquirectangular=Du,e.geoEquirectangularRaw=Ys,e.geoGnomonic=w0,e.geoGnomonicRaw=Pu,e.geoGraticule=l0,e.geoGraticule10=Es,e.geoIdentity=M0,e.geoInterpolate=Vv,e.geoLength=Ss,e.geoMercator=y0,e.geoMercatorRaw=ja,e.geoNaturalEarth1=Ru,e.geoNaturalEarth1Raw=jf,e.geoOrthographic=fi,e.geoOrthographicRaw=Xn,e.geoPath=Bf,e.geoProjection=Ai,e.geoProjectionMutator=Zf,e.geoRotation=As,e.geoStereographic=zu,e.geoStereographicRaw=Jl,e.geoStream=K,e.geoTransform=Jv,e.geoTransverseMercator=Jf,e.geoTransverseMercatorRaw=Xs,Object.defineProperty(e,"__esModule",{value:!0})})});var wF=te((dy,xF)=>{(function(e,r){typeof dy=="object"&&typeof xF!="undefined"?r(dy,d_(),h_()):r(e.d3=e.d3||{},e.d3,e.d3)})(dy,function(e,r,t){"use strict";var n=Math.abs,a=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,v=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(T){return T>0?1:T<0?-1:0},p=Math.sin,y=Math.tan,_=1e-6,C=1e-12,x=Math.PI,b=x/2,A=x/4,k=Math.SQRT1_2,M=H(2),D=H(x),R=x*2,N=180/x,I=x/180;function W(T){return T?T/Math.sin(T):1}function O(T){return T>1?b:T<-1?-b:Math.asin(T)}function Z(T){return T>1?0:T<-1?x:Math.acos(T)}function H(T){return T>0?Math.sqrt(T):0}function ee(T){return T=l(2*T),(T-1)/(T+1)}function ie(T){return(l(T)-l(-T))/2}function re(T){return(l(T)+l(-T))/2}function K(T){return u(T+H(T*T+1))}function fe(T){return u(T+H(T*T-1))}function le(T){var L=y(T/2),P=2*u(o(T/2))/(L*L);function z(Y,U){var X=o(Y),ue=o(U),he=p(U),se=ue*X,pe=-((1-se?u((1+se)/2)/(1-se):-.5)+P/(1+se));return[pe*ue*p(Y),pe*he]}return z.invert=function(Y,U){var X=H(Y*Y+U*U),ue=-T/2,he=50,se;if(!X)return[0,0];do{var pe=ue/2,we=o(pe),Le=p(pe),Fe=Le/we,rr=-u(n(we));ue-=se=(2/Fe*rr-P*Fe-X)/(-rr/(Le*Le)+1-P/(2*we*we))*(we<0?.7:1)}while(n(se)>_&&--he>0);var fr=p(ue);return[i(Y*fr,X*o(ue)),O(U*fr/X)]},z}function ke(){var T=b,L=r.geoProjectionMutator(le),P=L(T);return P.radius=function(z){return arguments.length?L(T=z*I):T*N},P.scale(179.976).clipAngle(147)}function Ne(T,L){var P=o(L),z=W(Z(P*o(T/=2)));return[2*P*p(T)*z,p(L)*z]}Ne.invert=function(T,L){if(!(T*T+4*L*L>x*x+_)){var P=T,z=L,Y=25;do{var U=p(P),X=p(P/2),ue=o(P/2),he=p(z),se=o(z),pe=p(2*z),we=he*he,Le=se*se,Fe=X*X,rr=1-Le*ue*ue,fr=rr?Z(se*ue)*H(Tr=1/rr):Tr=0,Tr,jr=2*fr*se*X-T,at=fr*he-L,ot=Tr*(Le*Fe+fr*se*ue*we),ut=Tr*(.5*U*pe-fr*2*he*X),vt=Tr*.25*(pe*X-fr*he*Le*U),sn=Tr*(we*ue+fr*Fe*se),Mn=ut*vt-sn*ot;if(!Mn)break;var Nt=(at*ut-jr*sn)/Mn,Fn=(jr*vt-at*ot)/Mn;P-=Nt,z-=Fn}while((n(Nt)>_||n(Fn)>_)&&--Y>0);return[P,z]}};function He(){return r.geoProjection(Ne).scale(152.63)}function Xe(T){var L=p(T),P=o(T),z=T>=0?1:-1,Y=y(z*T),U=(1+L-P)/2;function X(ue,he){var se=o(he),pe=o(ue/=2);return[(1+se)*p(ue),(z*he>-i(pe,Y)-.001?0:-z*10)+U+p(he)*P-(1+se)*L*pe]}return X.invert=function(ue,he){var se=0,pe=0,we=50;do{var Le=o(se),Fe=p(se),rr=o(pe),fr=p(pe),Tr=1+rr,jr=Tr*Fe-ue,at=U+fr*P-Tr*L*Le-he,ot=Tr*Le/2,ut=-Fe*fr,vt=L*Tr*Fe/2,sn=P*rr+L*Le*fr,Mn=ut*vt-sn*ot,Nt=(at*ut-jr*sn)/Mn/2,Fn=(jr*vt-at*ot)/Mn;n(Fn)>2&&(Fn/=2),se-=Nt,pe-=Fn}while((n(Nt)>_||n(Fn)>_)&&--we>0);return z*pe>-i(o(se),Y)-.001?[se*2,pe]:null},X}function Ce(){var T=20*I,L=T>=0?1:-1,P=y(L*T),z=r.geoProjectionMutator(Xe),Y=z(T),U=Y.stream;return Y.parallel=function(X){return arguments.length?(P=y((L=(T=X*I)>=0?1:-1)*T),z(T)):T*N},Y.stream=function(X){var ue=Y.rotate(),he=U(X),se=(Y.rotate([0,0]),U(X)),pe=Y.precision();return Y.rotate(ue),he.sphere=function(){se.polygonStart(),se.lineStart();for(var we=L*-180;L*we<180;we+=L*90)se.point(we,L*90);if(T)for(;L*(we-=3*L*pe)>=-180;)se.point(we,L*-i(o(we*I/2),P)*N);se.lineEnd(),se.polygonEnd()},he},Y.scale(218.695).center([0,28.0974])}function er(T,L){var P=y(L/2),z=H(1-P*P),Y=1+z*o(T/=2),U=p(T)*z/Y,X=P/Y,ue=U*U,he=X*X;return[4/3*U*(3+ue-3*he),4/3*X*(3+3*ue-he)]}er.invert=function(T,L){if(T*=3/8,L*=3/8,!T&&n(L)>1)return null;var P=T*T,z=L*L,Y=1+P+z,U=H((Y-H(Y*Y-4*L*L))/2),X=O(U)/3,ue=U?fe(n(L/U))/3:K(n(T))/3,he=o(X),se=re(ue),pe=se*se-he*he;return[m(T)*2*i(ie(ue)*he,.25-pe),m(L)*2*i(se*p(X),.25+pe)]};function ce(){return r.geoProjection(er).scale(66.1603)}var ge=H(8),Pe=u(1+M);function de(T,L){var P=n(L);return PC&&--z>0);return[T/(o(P)*(ge-1/p(P))),m(L)*P]};function G(){return r.geoProjection(de).scale(112.314)}function Q(T){var L=2*x/T;function P(z,Y){var U=r.geoAzimuthalEquidistantRaw(z,Y);if(n(z)>b){var X=i(U[1],U[0]),ue=H(U[0]*U[0]+U[1]*U[1]),he=L*d((X-b)/L)+b,se=i(p(X-=he),2-o(X));X=he+O(x/ue*p(se))-se,U[0]=ue*o(X),U[1]=ue*p(X)}return U}return P.invert=function(z,Y){var U=H(z*z+Y*Y);if(U>b){var X=i(Y,z),ue=L*d((X-b)/L)+b,he=X>ue?-1:1,se=U*o(ue-X),pe=1/y(he*Z((se-x)/H(x*(x-2*se)+U*U)));X=ue+2*a((pe+he*H(pe*pe-3))/3),z=U*o(X),Y=U*p(X)}return r.geoAzimuthalEquidistantRaw.invert(z,Y)},P}function $(){var T=5,L=r.geoProjectionMutator(Q),P=L(T),z=P.stream,Y=.01,U=-o(Y*I),X=p(Y*I);return P.lobes=function(ue){return arguments.length?L(T=+ue):T},P.stream=function(ue){var he=P.rotate(),se=z(ue),pe=(P.rotate([0,0]),z(ue));return P.rotate(he),se.sphere=function(){pe.polygonStart(),pe.lineStart();for(var we=0,Le=360/T,Fe=2*x/T,rr=90-180/T,fr=b;we0&&n(Y)>_);return z<0?NaN:P}function Qe(T,L,P){return L===void 0&&(L=40),P===void 0&&(P=C),function(z,Y,U,X){var ue,he,se;U=U===void 0?0:+U,X=X===void 0?0:+X;for(var pe=0;peue){U-=he/=2,X-=se/=2;continue}ue=rr;var fr=(U>0?-1:1)*P,Tr=(X>0?-1:1)*P,jr=T(U+fr,X),at=T(U,X+Tr),ot=(jr[0]-we[0])/fr,ut=(jr[1]-we[1])/fr,vt=(at[0]-we[0])/Tr,sn=(at[1]-we[1])/Tr,Mn=sn*ot-ut*vt,Nt=(n(Mn)<.5?.5:1)/Mn;if(he=(Fe*vt-Le*sn)*Nt,se=(Le*ut-Fe*ot)*Nt,U+=he,X+=se,n(he)0&&(ue[1]*=1+he/1.5*ue[0]*ue[0]),ue}return z.invert=Qe(z),z}function cr(){return r.geoProjection(Be()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function or(T,L){var P=T*p(L),z=30,Y;do L-=Y=(L+p(L)-P)/(1+o(L));while(n(Y)>_&&--z>0);return L/2}function hr(T,L,P){function z(Y,U){return[T*Y*o(U=or(P,U)),L*p(U)]}return z.invert=function(Y,U){return U=O(U/L),[Y/(T*o(U)),O((2*U+p(2*U))/P)]},z}var Je=hr(M/b,M,x);function pr(){return r.geoProjection(Je).scale(169.529)}var yr=2.00276,Te=1.11072;function Ue(T,L){var P=or(x,L);return[yr*T/(1/o(L)+Te/o(P)),(L+M*p(P))/yr]}Ue.invert=function(T,L){var P=yr*L,z=L<0?-A:A,Y=25,U,X;do X=P-M*p(z),z-=U=(p(2*z)+2*z-x*p(X))/(2*o(2*z)+2+x*o(X)*M*o(z));while(n(U)>_&&--Y>0);return X=P-M*p(z),[T*(1/o(X)+Te/o(z))/yr,X]};function kr(){return r.geoProjection(Ue).scale(160.857)}function Ur(T){var L=0,P=r.geoProjectionMutator(T),z=P(L);return z.parallel=function(Y){return arguments.length?P(L=Y*I):L*N},z}function tr(T,L){return[T*o(L),L]}tr.invert=function(T,L){return[T/o(L),L]};function Ye(){return r.geoProjection(tr).scale(152.63)}function Ze(T){if(!T)return tr;var L=1/y(T);function P(z,Y){var U=L+T-Y,X=U&&z*o(Y)/U;return[U*p(X),L-U*o(X)]}return P.invert=function(z,Y){var U=H(z*z+(Y=L-Y)*Y),X=L+T-U;return[U/o(X)*i(z,Y),X]},P}function dr(){return Ur(Ze).scale(123.082).center([0,26.1441]).parallel(45)}function Ar(T){function L(P,z){var Y=b-z,U=Y&&P*T*p(Y)/Y;return[Y*p(U)/T,b-Y*o(U)]}return L.invert=function(P,z){var Y=P*T,U=b-z,X=H(Y*Y+U*U),ue=i(Y,U);return[(X?X/p(X):1)*ue/T,b-X]},L}function mr(){var T=.5,L=r.geoProjectionMutator(Ar),P=L(T);return P.fraction=function(z){return arguments.length?L(T=+z):T},P.scale(158.837)}var br=hr(1,4/x,x);function Ir(){return r.geoProjection(br).scale(152.63)}function Cr(T,L,P,z,Y,U){var X=o(U),ue;if(n(T)>1||n(U)>1)ue=Z(P*Y+L*z*X);else{var he=p(T/2),se=p(U/2);ue=2*O(H(he*he+L*z*se*se))}return n(ue)>_?[ue,i(z*p(U),L*Y-P*z*X)]:[0,0]}function Er(T,L,P){return Z((T*T+L*L-P*P)/(2*T*L))}function lr(T){return T-2*x*s((T+x)/(2*x))}function xe(T,L,P){for(var z=[[T[0],T[1],p(T[1]),o(T[1])],[L[0],L[1],p(L[1]),o(L[1])],[P[0],P[1],p(P[1]),o(P[1])]],Y=z[2],U,X=0;X<3;++X,Y=U)U=z[X],Y.v=Cr(U[1]-Y[1],Y[3],Y[2],U[3],U[2],U[0]-Y[0]),Y.point=[0,0];var ue=Er(z[0].v[0],z[2].v[0],z[1].v[0]),he=Er(z[0].v[0],z[1].v[0],z[2].v[0]),se=x-ue;z[2].point[1]=0,z[0].point[0]=-(z[1].point[0]=z[0].v[0]/2);var pe=[z[2].point[0]=z[0].point[0]+z[2].v[0]*o(ue),2*(z[0].point[1]=z[1].point[1]=z[2].v[0]*p(ue))];function we(Le,Fe){var rr=p(Fe),fr=o(Fe),Tr=new Array(3),jr;for(jr=0;jr<3;++jr){var at=z[jr];if(Tr[jr]=Cr(Fe-at[1],at[3],at[2],fr,rr,Le-at[0]),!Tr[jr][0])return at.point;Tr[jr][1]=lr(Tr[jr][1]-at.v[1])}var ot=pe.slice();for(jr=0;jr<3;++jr){var ut=jr==2?0:jr+1,vt=Er(z[jr].v[0],Tr[jr][0],Tr[ut][0]);Tr[jr][1]<0&&(vt=-vt),jr?jr==1?(vt=he-vt,ot[0]-=Tr[jr][0]*o(vt),ot[1]-=Tr[jr][0]*p(vt)):(vt=se-vt,ot[0]+=Tr[jr][0]*o(vt),ot[1]+=Tr[jr][0]*p(vt)):(ot[0]+=Tr[jr][0]*o(vt),ot[1]-=Tr[jr][0]*p(vt))}return ot[0]/=3,ot[1]/=3,ot}return we}function Ae(T){return T[0]*=I,T[1]*=I,T}function Ke(){return nr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function nr(T,L,P){var z=r.geoCentroid({type:"MultiPoint",coordinates:[T,L,P]}),Y=[-z[0],-z[1]],U=r.geoRotation(Y),X=xe(Ae(U(T)),Ae(U(L)),Ae(U(P)));X.invert=Qe(X);var ue=r.geoProjection(X).rotate(Y),he=ue.center;return delete ue.rotate,ue.center=function(se){return arguments.length?he(U(se)):U.invert(he())},ue.clipAngle(90)}function Sr(T,L){var P=H(1-p(L));return[2/D*T*P,D*(1-P)]}Sr.invert=function(T,L){var P=(P=L/D-1)*P;return[P>0?T*H(x/P)/2:0,O(1-P)]};function Yr(){return r.geoProjection(Sr).scale(95.6464).center([0,30])}function zr(T){var L=y(T);function P(z,Y){return[z,(z?z/p(z):1)*(p(Y)*o(z)-L*o(Y))]}return P.invert=L?function(z,Y){z&&(Y*=p(z)/z);var U=o(z);return[z,2*i(H(U*U+L*L-Y*Y)-U,L-Y)]}:function(z,Y){return[z,O(z?Y*y(z)/z:Y)]},P}function st(){return Ur(zr).scale(249.828).clipAngle(90)}var bt=H(3);function St(T,L){return[bt*T*(2*o(2*L/3)-1)/D,bt*D*p(L/3)]}St.invert=function(T,L){var P=3*O(L/(bt*D));return[D*T/(bt*(2*o(2*P/3)-1)),P]};function $t(){return r.geoProjection(St).scale(156.19)}function vn(T){var L=o(T);function P(z,Y){return[z*L,p(Y)/L]}return P.invert=function(z,Y){return[z/L,O(Y*L)]},P}function hn(){return Ur(vn).parallel(38.58).scale(195.044)}function Ln(T){var L=o(T);function P(z,Y){return[z*L,(1+L)*y(Y/2)]}return P.invert=function(z,Y){return[z/L,a(Y/(1+L))*2]},P}function Ut(){return Ur(Ln).scale(124.75)}function en(T,L){var P=H(8/(3*x));return[P*T*(1-n(L)/x),P*L]}en.invert=function(T,L){var P=H(8/(3*x)),z=L/P;return[T/(P*(1-n(z)/x)),z]};function Kt(){return r.geoProjection(en).scale(165.664)}function rn(T,L){var P=H(4-3*p(n(L)));return[2/H(6*x)*T*P,m(L)*H(2*x/3)*(2-P)]}rn.invert=function(T,L){var P=2-n(L)/H(2*x/3);return[T*H(6*x)/(2*P),m(L)*O((4-P*P)/3)]};function la(){return r.geoProjection(rn).scale(165.664)}function xn(T,L){var P=H(x*(4+x));return[2/P*T*(1+H(1-4*L*L/(x*x))),4/P*L]}xn.invert=function(T,L){var P=H(x*(4+x))/2;return[T*P/(1+H(1-L*L*(4+x)/(4*x))),L*P/2]};function On(){return r.geoProjection(xn).scale(180.739)}function Gr(T,L){var P=(2+b)*p(L);L/=2;for(var z=0,Y=1/0;z<10&&n(Y)>_;z++){var U=o(L);L-=Y=(L+p(L)*(U+2)-P)/(2*U*(1+U))}return[2/H(x*(4+x))*T*(1+o(L)),2*H(x/(4+x))*p(L)]}Gr.invert=function(T,L){var P=L*H((4+x)/x)/2,z=O(P),Y=o(z);return[T/(2/H(x*(4+x))*(1+Y)),O((z+P*(Y+2))/(2+b))]};function on(){return r.geoProjection(Gr).scale(180.739)}function Pt(T,L){return[T*(1+o(L))/H(2+x),2*L/H(2+x)]}Pt.invert=function(T,L){var P=H(2+x),z=L*P/2;return[P*T/(1+o(z)),z]};function tn(){return r.geoProjection(Pt).scale(173.044)}function zn(T,L){for(var P=(1+b)*p(L),z=0,Y=1/0;z<10&&n(Y)>_;z++)L-=Y=(L+p(L)-P)/(1+o(L));return P=H(2+x),[T*(1+o(L))/P,2*L/P]}zn.invert=function(T,L){var P=1+b,z=H(P/2);return[T*2*z/(1+o(L*=z)),O((L+p(L))/P)]};function Wn(){return r.geoProjection(zn).scale(173.044)}var Yt=3+2*M;function ga(T,L){var P=p(T/=2),z=o(T),Y=H(o(L)),U=o(L/=2),X=p(L)/(U+M*z*Y),ue=H(2/(1+X*X)),he=H((M*U+(z+P)*Y)/(M*U+(z-P)*Y));return[Yt*(ue*(he-1/he)-2*u(he)),Yt*(ue*X*(he+1/he)-2*a(X))]}ga.invert=function(T,L){if(!(U=er.invert(T/1.2,L*1.065)))return null;var P=U[0],z=U[1],Y=20,U;T/=Yt,L/=Yt;do{var X=P/2,ue=z/2,he=p(X),se=o(X),pe=p(ue),we=o(ue),Le=o(z),Fe=H(Le),rr=pe/(we+M*se*Fe),fr=rr*rr,Tr=H(2/(1+fr)),jr=M*we+(se+he)*Fe,at=M*we+(se-he)*Fe,ot=jr/at,ut=H(ot),vt=ut-1/ut,sn=ut+1/ut,Mn=Tr*vt-2*u(ut)-T,Nt=Tr*rr*sn-2*a(rr)-L,Fn=pe&&k*Fe*he*fr/pe,ba=(M*se*we+Fe)/(2*(we+M*se*Fe)*(we+M*se*Fe)*Fe),vi=-.5*rr*Tr*Tr*Tr,sl=vi*Fn,js=vi*ba,Ea=(Ea=2*we+M*Fe*(se-he))*Ea*ut,Pa=(M*se*we*Fe+Le)/Ea,ji=-(M*he*pe)/(Fe*Ea),ul=vt*sl-2*Pa/ut+Tr*(Pa+Pa/ot),fl=vt*js-2*ji/ut+Tr*(ji+ji/ot),cl=rr*sn*sl-2*Fn/(1+fr)+Tr*sn*Fn+Tr*rr*(Pa-Pa/ot),Kl=rr*sn*js-2*ba/(1+fr)+Tr*sn*ba+Tr*rr*(ji-ji/ot),mo=fl*cl-Kl*ul;if(!mo)break;var Js=(Nt*fl-Mn*Kl)/mo,Qf=(Mn*cl-Nt*ul)/mo;P-=Js,z=f(-b,v(b,z-Qf))}while((n(Js)>_||n(Qf)>_)&&--Y>0);return n(n(z)-b)<_?[0,z]:Y&&[P,z]};function ma(){return r.geoProjection(ga).scale(62.5271)}var wn=o(35*I);function Qt(T,L){var P=y(L/2);return[T*wn*H(1-P*P),(1+wn)*P]}Qt.invert=function(T,L){var P=L/(1+wn);return[T&&T/(wn*H(1-P*P)),2*a(P)]};function An(){return r.geoProjection(Qt).scale(137.152)}function ta(T,L){var P=L/2,z=o(P);return[2*T/D*o(L)*z*z,D*y(P)]}ta.invert=function(T,L){var P=a(L/D),z=o(P),Y=2*P;return[T*D/2/(o(Y)*z*z),Y]};function oo(){return r.geoProjection(ta).scale(135.264)}function yi(T){var L=1-T,P=U(x,0)[0]-U(-x,0)[0],z=U(0,b)[1]-U(0,-b)[1],Y=H(2*z/P);function U(he,se){var pe=o(se),we=p(se);return[pe/(L+T*pe)*he,L*se+T*we]}function X(he,se){var pe=U(he,se);return[pe[0]*Y,pe[1]/Y]}function ue(he){return X(0,he)[1]}return X.invert=function(he,se){var pe=ar(ue,se),we=he/Y*(T+L/o(pe));return[we,pe]},X}function As(){var T=.5,L=r.geoProjectionMutator(yi),P=L(T);return P.alpha=function(z){return arguments.length?L(T=+z):T},P.scale(168.725)}function Nl(T){return[T[0]/2,O(y(T[1]/2*I))*N]}function Yo(T){return[T[0]*2,2*a(p(T[1]*I))*N]}function Ts(T){T==null&&(T=r.geoOrthographic);var L=T(),P=r.geoEquirectangular().scale(N).precision(0).clipAngle(null).translate([0,0]);function z(U){return L(Nl(U))}L.invert&&(z.invert=function(U){return Yo(L.invert(U))}),z.stream=function(U){var X=L.stream(U),ue=P.stream({point:function(he,se){X.point(he/2,O(y(-se/2*I))*N)},lineStart:function(){X.lineStart()},lineEnd:function(){X.lineEnd()},polygonStart:function(){X.polygonStart()},polygonEnd:function(){X.polygonEnd()}});return ue.sphere=X.sphere,ue};function Y(U){z[U]=function(){return arguments.length?(L[U].apply(L,arguments),z):L[U]()}}return z.rotate=function(U){return arguments.length?(P.rotate(U),z):P.rotate()},z.center=function(U){return arguments.length?(L.center(Nl(U)),z):Yo(L.center())},Y("angle"),Y("clipAngle"),Y("clipExtent"),Y("fitExtent"),Y("fitHeight"),Y("fitSize"),Y("fitWidth"),Y("scale"),Y("translate"),Y("precision"),z.scale(249.5)}function Go(T,L){var P=2*x/L,z=T*T;function Y(U,X){var ue=r.geoAzimuthalEquidistantRaw(U,X),he=ue[0],se=ue[1],pe=he*he+se*se;if(pe>z){var we=H(pe),Le=i(se,he),Fe=P*d(Le/P),rr=Le-Fe,fr=T*o(rr),Tr=(T*p(rr)-rr*p(fr))/(b-fr),jr=Un(rr,Tr),at=(x-T)/bi(jr,fr,x);he=we;var ot=50,ut;do he-=ut=(T+bi(jr,fr,he)*at-we)/(jr(he)*at);while(n(ut)>_&&--ot>0);se=rr*p(he),hez){var he=H(ue),se=i(X,U),pe=P*d(se/P),we=se-pe;U=he*o(we),X=he*p(we);for(var Le=U-b,Fe=p(U),rr=X/Fe,fr=U_||n(rr)>_)&&--fr>0);return[we,Le]},he}var Qr=_i(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ct(){return r.geoProjection(Qr).scale(149.995)}var It=_i(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Br(){return r.geoProjection(It).scale(153.93)}var Zn=_i(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function ln(){return r.geoProjection(Zn).scale(130.945)}function En(T,L){var P=T*T,z=L*L;return[T*(1-.162388*z)*(.87-952426e-9*P*P),L*(1+z/12)]}En.invert=function(T,L){var P=T,z=L,Y=50,U;do{var X=z*z;z-=U=(z*(1+X/12)-L)/(1+X/4)}while(n(U)>_&&--Y>0);Y=50,T/=1-.162388*X;do{var ue=(ue=P*P)*ue;P-=U=(P*(.87-952426e-9*ue)-T)/(.87-.00476213*ue)}while(n(U)>_&&--Y>0);return[P,z]};function At(){return r.geoProjection(En).scale(131.747)}var Xa=_i(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Wo(){return r.geoProjection(Xa).scale(131.087)}function Lf(T){var L=T(b,0)[0]-T(-b,0)[0];function P(z,Y){var U=z>0?-.5:.5,X=T(z+U*x,Y);return X[0]-=U*L,X}return T.invert&&(P.invert=function(z,Y){var U=z>0?-.5:.5,X=T.invert(z+U*L,Y),ue=X[0]-U*x;return ue<-x?ue+=2*x:ue>x&&(ue-=2*x),X[0]=ue,X}),P}function yu(T,L){var P=m(T),z=m(L),Y=o(L),U=o(T)*Y,X=p(T)*Y,ue=p(z*L);T=n(i(X,ue)),L=O(U),n(T-b)>_&&(T%=b);var he=lo(T>x/4?b-T:T,L);return T>x/4&&(ue=he[0],he[0]=-he[1],he[1]=-ue),he[0]*=P,he[1]*=-z,he}yu.invert=function(T,L){n(T)>1&&(T=m(T)*2-T),n(L)>1&&(L=m(L)*2-L);var P=m(T),z=m(L),Y=-P*T,U=-z*L,X=U/Y<1,ue=Zo(X?U:Y,X?Y:U),he=ue[0],se=ue[1],pe=o(se);return X&&(he=-b-he),[P*(i(p(he)*pe,-p(se))+x),z*O(o(he)*pe)]};function lo(T,L){if(L===b)return[0,0];var P=p(L),z=P*P,Y=z*z,U=1+Y,X=1+3*Y,ue=1-Y,he=O(1/H(U)),se=ue+z*U*he,pe=(1-P)/se,we=H(pe),Le=pe*U,Fe=H(Le),rr=we*ue,fr,Tr;if(T===0)return[0,-(rr+z*Fe)];var jr=o(L),at=1/jr,ot=2*P*jr,ut=(-3*z+he*X)*ot,vt=(-se*jr-(1-P)*ut)/(se*se),sn=.5*vt/we,Mn=ue*sn-2*z*we*ot,Nt=z*U*vt+pe*X*ot,Fn=-at*ot,ba=-at*Nt,vi=-2*at*Mn,sl=4*T/x,js;if(T>.222*x||L.175*x){if(fr=(rr+z*H(Le*(1+Y)-rr*rr))/(1+Y),T>x/4)return[fr,fr];var Ea=fr,Pa=.5*fr;fr=.5*(Pa+Ea),Tr=50;do{var ji=H(Le-fr*fr),ul=fr*(vi+Fn*ji)+ba*O(fr/Fe)-sl;if(!ul)break;ul<0?Pa=fr:Ea=fr,fr=.5*(Pa+Ea)}while(n(Ea-Pa)>_&&--Tr>0)}else{fr=_,Tr=25;do{var fl=fr*fr,cl=H(Le-fl),Kl=vi+Fn*cl,mo=fr*Kl+ba*O(fr/Fe)-sl,Js=Kl+(ba-Fn*fl)/cl;fr-=js=cl?mo/Js:0}while(n(js)>_&&--Tr>0)}return[fr,-rr-z*H(Le-fr*fr)]}function Zo(T,L){for(var P=0,z=1,Y=.5,U=50;;){var X=Y*Y,ue=H(Y),he=O(1/H(1+X)),se=1-X+Y*(1+X)*he,pe=(1-ue)/se,we=H(pe),Le=pe*(1+X),Fe=we*(1-X),rr=Le-T*T,fr=H(rr),Tr=L+Fe+Y*fr;if(n(z-P)0?P=Y:z=Y,Y=.5*(P+z)}if(!U)return null;var jr=O(ue),at=o(jr),ot=1/at,ut=2*ue*at,vt=(-3*Y+he*(1+3*X))*ut,sn=(-se*at-(1-ue)*vt)/(se*se),Mn=.5*sn/we,Nt=(1-X)*Mn-2*Y*we*ut,Fn=-2*ot*Nt,ba=-ot*ut,vi=-ot*(Y*(1+X)*sn+pe*(1+3*X)*ut);return[x/4*(T*(Fn+ba*fr)+vi*O(T/H(Le))),jr]}function Xo(){return r.geoProjection(Lf(yu)).scale(239.75)}function bu(T,L,P){var z,Y,U;return T?(z=Fl(T,P),L?(Y=Fl(L,1-P),U=Y[1]*Y[1]+P*z[0]*z[0]*Y[0]*Y[0],[[z[0]*Y[2]/U,z[1]*z[2]*Y[0]*Y[1]/U],[z[1]*Y[1]/U,-z[0]*z[2]*Y[0]*Y[2]/U],[z[2]*Y[1]*Y[2]/U,-P*z[0]*z[1]*Y[0]/U]]):[[z[0],0],[z[1],0],[z[2],0]]):(Y=Fl(L,1-P),[[0,Y[0]/Y[1]],[1/Y[1],0],[Y[2]/Y[1],0]])}function Fl(T,L){var P,z,Y,U,X;if(L<_)return U=p(T),z=o(T),P=L*(T-U*z)/4,[U-P*z,z+P*U,1-L*U*U/2,T-P];if(L>=1-_)return P=(1-L)/4,z=re(T),U=ee(T),Y=1/z,X=z*ie(T),[U+P*(X-T)/(z*z),Y-P*U*Y*(X-T),Y+P*U*Y*(X+T),2*a(l(T))-b+P*(X-T)/z];var ue=[1,0,0,0,0,0,0,0,0],he=[H(L),0,0,0,0,0,0,0,0],se=0;for(z=H(1-L),X=1;n(he[se]/ue[se])>_&&se<8;)P=ue[se++],he[se]=(P-z)/2,ue[se]=(P+z)/2,z=H(P*z),X*=2;Y=X*ue[se]*T;do U=he[se]*p(z=Y)/ue[se],Y=(O(U)+Y)/2;while(--se);return[p(Y),U=o(Y),U/o(Y-z),Y]}function Il(T,L,P){var z=n(T),Y=n(L),U=ie(Y);if(z){var X=1/p(z),ue=1/(y(z)*y(z)),he=-(ue+P*(U*U*X*X)-1+P),se=(P-1)*ue,pe=(-he+H(he*he-4*se))/2;return[xi(a(1/H(pe)),P)*m(T),xi(a(H((pe/ue-1)/P)),1-P)*m(L)]}return[0,xi(a(U),1-P)*m(L)]}function xi(T,L){if(!L)return T;if(L===1)return u(y(T/2+A));for(var P=1,z=H(1-L),Y=H(L),U=0;n(Y)>_;U++){if(T%x){var X=a(z*y(T)/P);X<0&&(X+=x),T+=X+~~(T/x)*x}else T+=T;Y=(P+z)/2,z=H(P*z),Y=((P=Y)-z)/2}return T/(h(2,U)*P)}function so(T,L){var P=(M-1)/(M+1),z=H(1-P*P),Y=xi(b,z*z),U=-1,X=u(y(x/4+n(L)/2)),ue=l(U*X)/H(P),he=jo(ue*o(U*T),ue*p(U*T)),se=Il(he[0],he[1],z*z);return[-se[1],(L>=0?1:-1)*(.5*Y-se[0])]}function jo(T,L){var P=T*T,z=L+1,Y=1-P-L*L;return[.5*((T>=0?b:-b)-i(Y,2*T)),-.25*u(Y*Y+4*P)+.5*u(z*z+P)]}function Hl(T,L){var P=L[0]*L[0]+L[1]*L[1];return[(T[0]*L[0]+T[1]*L[1])/P,(T[1]*L[0]-T[0]*L[1])/P]}so.invert=function(T,L){var P=(M-1)/(M+1),z=H(1-P*P),Y=xi(b,z*z),U=-1,X=bu(.5*Y-L,-T,z*z),ue=Hl(X[0],X[1]),he=i(ue[1],ue[0])/U;return[he,2*a(l(.5/U*u(P*ue[0]*ue[0]+P*ue[1]*ue[1])))-b]};function ks(){return r.geoProjection(Lf(so)).scale(151.496)}function qf(T){var L=p(T),P=o(T),z=i0(T);z.invert=i0(-T);function Y(U,X){var ue=z(U,X);U=ue[0],X=ue[1];var he=p(X),se=o(X),pe=o(U),we=Z(L*he+P*se*pe),Le=p(we),Fe=n(Le)>_?we/Le:1;return[Fe*P*p(U),(n(U)>b?Fe:-Fe)*(L*se-P*he*pe)]}return Y.invert=function(U,X){var ue=H(U*U+X*X),he=-p(ue),se=o(ue),pe=ue*se,we=-X*he,Le=ue*L,Fe=H(pe*pe+we*we-Le*Le),rr=i(pe*Le+we*Fe,we*Le-pe*Fe),fr=(ue>b?-1:1)*i(U*he,ue*o(rr)*se+X*p(rr)*he);return z.invert(fr,rr)},Y}function i0(T){var L=p(T),P=o(T);return function(z,Y){var U=o(Y),X=o(z)*U,ue=p(z)*U,he=p(Y);return[i(ue,X*P-he*L),O(he*P+X*L)]}}function Ss(){var T=0,L=r.geoProjectionMutator(qf),P=L(T),z=P.rotate,Y=P.stream,U=r.geoCircle();return P.parallel=function(X){if(!arguments.length)return T*N;var ue=P.rotate();return L(T=X*I).rotate(ue)},P.rotate=function(X){return arguments.length?(z.call(P,[X[0],X[1]-T*N]),U.center([-X[0],-X[1]]),P):(X=z.call(P),X[1]+=T*N,X)},P.stream=function(X){return X=Y(X),X.sphere=function(){X.polygonStart();var ue=.01,he=U.radius(90-ue)().coordinates[0],se=he.length-1,pe=-1,we;for(X.lineStart();++pe=0;)X.point((we=he[pe])[0],we[1]);X.lineEnd(),X.polygonEnd()},X},P.scale(79.4187).parallel(45).clipAngle(180-.001)}var Cs=3,Ls=O(1-1/Cs)*N,Jo=vn(0);function uo(T){var L=Ls*I,P=Sr(x,L)[0]-Sr(-x,L)[0],z=Jo(0,L)[1],Y=Sr(0,L)[1],U=D-Y,X=R/T,ue=4/R,he=z+U*U*4/R;function se(pe,we){var Le,Fe=n(we);if(Fe>L){var rr=v(T-1,f(0,s((pe+x)/X)));pe+=x*(T-1)/T-rr*X,Le=Sr(pe,Fe),Le[0]=Le[0]*R/P-R*(T-1)/(2*T)+rr*R/T,Le[1]=z+(Le[1]-Y)*4*U/R,we<0&&(Le[1]=-Le[1])}else Le=Jo(pe,we);return Le[0]*=ue,Le[1]/=he,Le}return se.invert=function(pe,we){pe/=ue,we*=he;var Le=n(we);if(Le>z){var Fe=v(T-1,f(0,s((pe+x)/X)));pe=(pe+x*(T-1)/T-Fe*X)*P/R;var rr=Sr.invert(pe,.25*(Le-z)*R/U+Y);return rr[0]-=x*(T-1)/T-Fe*X,we<0&&(rr[1]=-rr[1]),rr}return Jo.invert(pe,we)},se}function fo(T,L){return[T,L&1?90-_:Ls]}function Oi(T,L){return[T,L&1?-90+_:-Ls]}function Df(T){return[T[0]*(1-_),T[1]]}function _u(T){var L=[].concat(t.range(-180,180+T/2,T).map(fo),t.range(180,-180-T/2,-T).map(Oi));return{type:"Polygon",coordinates:[T===180?L.map(Df):L]}}function Bl(){var T=4,L=r.geoProjectionMutator(uo),P=L(T),z=P.stream;return P.lobes=function(Y){return arguments.length?L(T=+Y):T},P.stream=function(Y){var U=P.rotate(),X=z(Y),ue=(P.rotate([0,0]),z(Y));return P.rotate(U),X.sphere=function(){r.geoStream(_u(180/T),ue)},X},P.scale(239.75)}function Ef(T){var L=1+T,P=p(1/L),z=O(P),Y=2*H(x/(U=x+4*z*L)),U,X=.5*Y*(L+H(T*(2+T))),ue=T*T,he=L*L;function se(pe,we){var Le=1-p(we),Fe,rr;if(Le&&Le<2){var fr=b-we,Tr=25,jr;do{var at=p(fr),ot=o(fr),ut=z+i(at,L-ot),vt=1+he-2*L*ot;fr-=jr=(fr-ue*z-L*at+vt*ut-.5*Le*U)/(2*L*at*ut)}while(n(jr)>C&&--Tr>0);Fe=Y*H(vt),rr=pe*ut/x}else Fe=Y*(T+Le),rr=pe*z/x;return[Fe*p(rr),X-Fe*o(rr)]}return se.invert=function(pe,we){var Le=pe*pe+(we-=X)*we,Fe=(1+he-Le/(Y*Y))/(2*L),rr=Z(Fe),fr=p(rr),Tr=z+i(fr,L-Fe);return[O(pe/H(Le))*x/Tr,O(1-2*(rr-ue*z-L*fr+(1+he-2*L*Fe)*Tr)/U)]},se}function o0(){var T=1,L=r.geoProjectionMutator(Ef),P=L(T);return P.ratio=function(z){return arguments.length?L(T=+z):T},P.scale(167.774).center([0,18.67])}var qs=.7109889596207567,Ui=.0528035274542;function Ds(T,L){return L>-qs?(T=Je(T,L),T[1]+=Ui,T):tr(T,L)}Ds.invert=function(T,L){return L>-qs?Je.invert(T,L-Ui):tr.invert(T,L)};function l0(){return r.geoProjection(Ds).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Es(T,L){return n(L)>qs?(T=Je(T,L),T[1]-=L>0?Ui:-Ui,T):tr(T,L)}Es.invert=function(T,L){return n(L)>qs?Je.invert(T,L+(L>0?Ui:-Ui)):tr.invert(T,L)};function Vv(){return r.geoProjection(Es).scale(152.63)}function $o(T,L,P,z){var Y=H(4*x/(2*P+(1+T-L/2)*p(2*P)+(T+L)/2*p(4*P)+L/2*p(6*P))),U=H(z*p(P)*H((1+T*o(2*P)+L*o(4*P))/(1+T+L))),X=P*he(1);function ue(we){return H(1+T*o(2*we)+L*o(4*we))}function he(we){var Le=we*P;return(2*Le+(1+T-L/2)*p(2*Le)+(T+L)/2*p(4*Le)+L/2*p(6*Le))/P}function se(we){return ue(we)*p(we)}var pe=function(we,Le){var Fe=P*ar(he,X*p(Le)/P,Le/x);isNaN(Fe)&&(Fe=P*m(Le));var rr=Y*ue(Fe);return[rr*U*we/x*o(Fe),rr/U*p(Fe)]};return pe.invert=function(we,Le){var Fe=ar(se,Le*U/Y);return[we*x/(o(Fe)*Y*U*ue(Fe)),O(P*he(Fe/P)/X)]},P===0&&(Y=H(z/x),pe=function(we,Le){return[we*Y,p(Le)/Y]},pe.invert=function(we,Le){return[we/Y,O(Le*Y)]}),pe}function Pf(){var T=1,L=0,P=45*I,z=2,Y=r.geoProjectionMutator($o),U=Y(T,L,P,z);return U.a=function(X){return arguments.length?Y(T=+X,L,P,z):T},U.b=function(X){return arguments.length?Y(T,L=+X,P,z):L},U.psiMax=function(X){return arguments.length?Y(T,L,P=+X*I,z):P*N},U.ratio=function(X){return arguments.length?Y(T,L,P,z=+X):z},U.scale(180.739)}function Ol(T,L,P,z,Y,U,X,ue,he,se,pe){if(pe.nanEncountered)return NaN;var we,Le,Fe,rr,fr,Tr,jr,at,ot,ut;if(we=P-L,Le=T(L+we*.25),Fe=T(P-we*.25),isNaN(Le)){pe.nanEncountered=!0;return}if(isNaN(Fe)){pe.nanEncountered=!0;return}return rr=we*(z+4*Le+Y)/12,fr=we*(Y+4*Fe+U)/12,Tr=rr+fr,ut=(Tr-X)/15,se>he?(pe.maxDepthCount++,Tr+ut):Math.abs(ut)>1;do he[Tr]>Fe?fr=Tr:rr=Tr,Tr=rr+fr>>1;while(Tr>rr);var jr=he[Tr+1]-he[Tr];return jr&&(jr=(Fe-he[Tr+1])/jr),(Tr+1+jr)/X}var we=2*pe(1)/x*U/P,Le=function(Fe,rr){var fr=pe(n(p(rr))),Tr=z(fr)*Fe;return fr/=we,[Tr,rr>=0?fr:-fr]};return Le.invert=function(Fe,rr){var fr;return rr*=we,n(rr)<1&&(fr=m(rr)*O(Y(n(rr))*U)),[Fe/z(n(rr)),fr]},Le}function vo(){var T=0,L=2.5,P=1.183136,z=r.geoProjectionMutator(co),Y=z(T,L,P);return Y.alpha=function(U){return arguments.length?z(T=+U,L,P):T},Y.k=function(U){return arguments.length?z(T,L=+U,P):L},Y.gamma=function(U){return arguments.length?z(T,L,P=+U):P},Y.scale(152.63)}function Rf(T,L){return n(T[0]-L[0])<_&&n(T[1]-L[1])<_}function wi(T,L){for(var P=-1,z=T.length,Y=T[0],U,X,ue,he=[];++P=0;--he)P=T[1][he],z=P[0][0],Y=P[0][1],U=P[1][1],X=P[2][0],ue=P[2][1],L.push(wi([[X-_,ue-_],[X-_,U+_],[z+_,U+_],[z+_,Y-_]],30));return{type:"Polygon",coordinates:[t.merge(L)]}}function Yi(T,L,P){var z,Y;function U(he,se){for(var pe=se<0?-1:1,we=L[+(se<0)],Le=0,Fe=we.length-1;Lewe[Le][2][0];++Le);var rr=T(he-we[Le][1][0],se);return rr[0]+=T(we[Le][1][0],pe*se>pe*we[Le][0][1]?we[Le][0][1]:se)[0],rr}P?U.invert=P(U):T.invert&&(U.invert=function(he,se){for(var pe=Y[+(se<0)],we=L[+(se<0)],Le=0,Fe=pe.length;Lerr&&(fr=Fe,Fe=rr,rr=fr),[[we,Fe],[Le,rr]]})}),X):L.map(function(se){return se.map(function(pe){return[[pe[0][0]*N,pe[0][1]*N],[pe[1][0]*N,pe[1][1]*N],[pe[2][0]*N,pe[2][1]*N]]})})},L!=null&&X.lobes(L),X}var Ul=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Zv(){return Yi(Ue,Ul).scale(160.857)}var Gi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ko(){return Yi(Es,Gi).scale(152.63)}var Qo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function el(){return Yi(Je,Qo).scale(169.529)}var ho=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Ps(){return Yi(Je,ho).scale(169.529).rotate([20,0])}var xu=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Rs(){return Yi(Ds,xu,Qe).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var zs=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function rl(){return Yi(tr,zs).scale(152.63).rotate([-20,0])}function Yl(T,L){return[3/R*T*H(x*x/3-L*L),L]}Yl.invert=function(T,L){return[R/3*T/H(x*x/3-L*L),L]};function Gl(){return r.geoProjection(Yl).scale(158.837)}function wu(T){function L(P,z){if(n(n(z)-b)<_)return[0,z<0?-2:2];var Y=p(z),U=h((1+Y)/(1-Y),T/2),X=.5*(U+1/U)+o(P*=T);return[2*p(P)/X,(U-1/U)/X]}return L.invert=function(P,z){var Y=n(z);if(n(Y-2)<_)return P?null:[0,m(z)*b];if(Y>2)return null;P/=2,z/=2;var U=P*P,X=z*z,ue=2*z/(1+U+X);return ue=h((1+ue)/(1-ue),1/T),[i(2*P,1-U-X)/T,O((ue-1)/(ue+1))]},L}function Mu(){var T=.5,L=r.geoProjectionMutator(wu),P=L(T);return P.spacing=function(z){return arguments.length?L(T=+z):T},P.scale(124.75)}var ui=x/M;function Au(T,L){return[T*(1+H(o(L)))/2,L/(o(L/2)*o(T/6))]}Au.invert=function(T,L){var P=n(T),z=n(L),Y=_,U=b;z_||n(Tr)>_)&&--Y>0);return Y&&[P,z]};function na(){return r.geoProjection(Ia).scale(139.98)}function Sa(T,L){return[p(T)/o(L),y(L)*o(T)]}Sa.invert=function(T,L){var P=T*T,z=L*L,Y=z+1,U=P+Y,X=T?k*H((U-H(U*U-4*P))/P):1/H(Y);return[O(T*X),m(L)*Z(X)]};function Vi(){return r.geoProjection(Sa).scale(144.049).clipAngle(90-.001)}function Ns(T){var L=o(T),P=y(A+T/2);function z(Y,U){var X=U-T,ue=n(X)<_?Y*L:n(ue=A+U/2)<_||n(n(ue)-b)<_?0:Y*X/u(y(ue)/P);return[ue,X]}return z.invert=function(Y,U){var X,ue=U+T;return[n(U)<_?Y/L:n(X=A+ue/2)<_||n(n(X)-b)<_?0:Y*u(y(X)/P)/U,ue]},z}function tl(){return Ur(Ns).parallel(40).scale(158.837)}function Vl(T,L){return[T,1.25*u(y(A+.4*L))]}Vl.invert=function(T,L){return[T,2.5*a(l(.8*L))-.625*x]};function zf(){return r.geoProjection(Vl).scale(108.318)}function u0(T){var L=T.length-1;function P(z,Y){for(var U=o(Y),X=2/(1+U*o(z)),ue=X*U*p(z),he=X*p(Y),se=L,pe=T[se],we=pe[0],Le=pe[1],Fe;--se>=0;)pe=T[se],we=pe[0]+ue*(Fe=we)-he*Le,Le=pe[1]+ue*Le+he*Fe;return we=ue*(Fe=we)-he*Le,Le=ue*Le+he*Fe,[we,Le]}return P.invert=function(z,Y){var U=20,X=z,ue=Y;do{for(var he=L,se=T[he],pe=se[0],we=se[1],Le=0,Fe=0,rr;--he>=0;)se=T[he],Le=pe+X*(rr=Le)-ue*Fe,Fe=we+X*Fe+ue*rr,pe=se[0]+X*(rr=pe)-ue*we,we=se[1]+X*we+ue*rr;Le=pe+X*(rr=Le)-ue*Fe,Fe=we+X*Fe+ue*rr,pe=X*(rr=pe)-ue*we-z,we=X*we+ue*rr-Y;var fr=Le*Le+Fe*Fe,Tr,jr;X-=Tr=(pe*Le+we*Fe)/fr,ue-=jr=(we*Le-pe*Fe)/fr}while(n(Tr)+n(jr)>_*_&&--U>0);if(U){var at=H(X*X+ue*ue),ot=2*a(at*.5),ut=p(ot);return[i(X*ut,at*o(ot)),at?O(ue*ut/at):0]}},P}var Xv=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],jv=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Nf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Ff=[[.9245,0],[0,0],[.01943,0]],If=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hf(){return Mi(Xv,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function f0(){return Mi(jv,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function c0(){return Mi(Nf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Fs(){return Mi(Ff,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Is(){return Mi(If,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Mi(T,L){var P=r.geoProjection(u0(T)).rotate(L).clipAngle(90),z=r.geoRotation(L),Y=P.center;return delete P.rotate,P.center=function(U){return arguments.length?Y(z(U)):z.invert(Y())},P}var ku=H(6),Hs=H(7);function Su(T,L){var P=O(7*p(L)/(3*ku));return[ku*T*(2*o(2*P/3)-1)/Hs,9*p(P/3)/Hs]}Su.invert=function(T,L){var P=3*O(L*Hs/9);return[T*Hs/(ku*(2*o(2*P/3)-1)),O(p(P)*3*ku/7)]};function v0(){return r.geoProjection(Su).scale(164.859)}function Bf(T,L){for(var P=(1+k)*p(L),z=L,Y=0,U;Y<25&&(z-=U=(p(z/2)+p(z)-P)/(.5*o(z/2)+o(z)),!(n(U)<_));Y++);return[T*(1+2*o(z)/o(z/2))/(3*M),2*H(3)*p(z/2)/H(2+M)]}Bf.invert=function(T,L){var P=L*H(2+M)/(2*H(3)),z=2*O(P);return[3*M*T/(1+2*o(z)/o(z/2)),O((P+p(z))/(1+k))]};function Jv(){return r.geoProjection(Bf).scale(188.209)}function po(T,L){for(var P=H(6/(4+x)),z=(1+x/4)*p(L),Y=L/2,U=0,X;U<25&&(Y-=X=(Y/2+p(Y)-z)/(.5+o(Y)),!(n(X)<_));U++);return[P*(.5+o(Y))*T/1.5,P*Y]}po.invert=function(T,L){var P=H(6/(4+x)),z=L/P;return n(n(z)-b)<_&&(z=z<0?-b:b),[1.5*T/(P*(.5+o(z))),O((z/2+p(z))/(1+x/4))]};function Cu(){return r.geoProjection(po).scale(166.518)}function Wl(T,L){var P=L*L,z=P*P,Y=P*z;return[T*(.84719-.13063*P+Y*Y*(-.04515+.05494*P-.02326*z+.00331*Y)),L*(1.01183+z*z*(-.02625+.01926*P-.00396*z))]}Wl.invert=function(T,L){var P=L,z=25,Y,U,X,ue;do U=P*P,X=U*U,P-=Y=(P*(1.01183+X*X*(-.02625+.01926*U-.00396*X))-L)/(1.01183+X*X*(9*-.02625+11*.01926*U+13*-.00396*X));while(n(Y)>C&&--z>0);return U=P*P,X=U*U,ue=U*X,[T/(.84719-.13063*U+ue*ue*(-.04515+.05494*U-.02326*X+.00331*ue)),P]};function Bs(){return r.geoProjection(Wl).scale(175.295)}function Os(T,L){return[T*(1+o(L))/2,2*(L-y(L/2))]}Os.invert=function(T,L){for(var P=L/2,z=0,Y=1/0;z<10&&n(Y)>_;++z){var U=o(L/2);L-=Y=(L-y(L/2)-P)/(1-.5/(U*U))}return[2*T/(1+o(L)),L]};function Of(){return r.geoProjection(Os).scale(152.63)}var go=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function h0(){return Yi(be(1/0),go).rotate([20,0]).scale(152.63)}function Uf(T,L){var P=p(L),z=o(L),Y=m(T);if(T===0||n(L)===b)return[0,L];if(L===0)return[T,0];if(n(T)===b)return[T*z,b*P];var U=x/(2*T)-2*T/x,X=2*L/x,ue=(1-X*X)/(P-X),he=U*U,se=ue*ue,pe=1+he/se,we=1+se/he,Le=(U*P/ue-U/2)/pe,Fe=(se*P/he+ue/2)/we,rr=Le*Le+z*z/pe,fr=Fe*Fe-(se*P*P/he+ue*P-1)/we;return[b*(Le+H(rr)*Y),b*(Fe+H(fr<0?0:fr)*m(-L*U)*Y)]}Uf.invert=function(T,L){T/=b,L/=b;var P=T*T,z=L*L,Y=P+z,U=x*x;return[T?(Y-1+H((1-Y)*(1-Y)+4*P))/(2*T)*b:0,ar(function(X){return Y*(x*p(X)-2*X)*x+4*X*X*(L-p(X))+2*x*X-U*L},0)]};function d0(){return r.geoProjection(Uf).scale(127.267)}var Yf=1.0148,Lu=.23185,Gf=-.14499,Vf=.02406,$v=Yf,Wf=5*Lu,Ai=7*Gf,Zf=9*Vf,Zl=1.790857183;function Xf(T,L){var P=L*L;return[T,L*(Yf+P*P*(Lu+P*(Gf+Vf*P)))]}Xf.invert=function(T,L){L>Zl?L=Zl:L<-Zl&&(L=-Zl);var P=L,z;do{var Y=P*P;P-=z=(P*(Yf+Y*Y*(Lu+Y*(Gf+Vf*Y)))-L)/($v+Y*Y*(Wf+Y*(Ai+Zf*Y)))}while(n(z)>_);return[T,P]};function p0(){return r.geoProjection(Xf).scale(139.319)}function nl(T,L){if(n(L)<_)return[T,0];var P=y(L),z=T*p(L);return[p(z)/P,L+(1-o(z))/P]}nl.invert=function(T,L){if(n(L)<_)return[T,0];var P=T*T+L*L,z=L*.5,Y=10,U;do{var X=y(z),ue=1/o(z),he=P-2*L*z+z*z;z-=U=(X*he+2*(z-L))/(2+he*ue*ue+2*(z-L)*X)}while(n(U)>_&&--Y>0);return X=y(z),[(n(L)=0;)if(z=L[ue],P[0]===z[0]&&P[1]===z[1]){if(U)return[U,P];U=P}}}function b0(T){for(var L=T.length,P=[],z=T[L-1],Y=0;Y0?[-z[0],0]:[180-z[0],180])};var L=qu.map(function(P){return{face:P,project:T(P)}});return[-1,0,0,1,0,1,4,5].forEach(function(P,z){var Y=L[P];Y&&(Y.children||(Y.children=[])).push(L[z])}),Xl(L[0],function(P,z){return L[P<-x/2?z<0?6:4:P<0?z<0?2:0:Pz^Fe>z&&P<(Le-se)*(z-pe)/(Fe-pe)+se&&(Y=!Y)}return Y}function Pu(T,L){var P=L.stream,z;if(!P)throw new Error("invalid projection");switch(T&&T.type){case"Feature":z=M0;break;case"FeatureCollection":z=w0;break;default:z=Ru;break}return z(T,P)}function w0(T,L){return{type:"FeatureCollection",features:T.features.map(function(P){return M0(P,L)})}}function M0(T,L){return{type:"Feature",id:T.id,properties:T.properties,geometry:Ru(T.geometry,L)}}function jf(T,L){return{type:"GeometryCollection",geometries:T.geometries.map(function(P){return Ru(P,L)})}}function Ru(T,L){if(!T)return null;if(T.type==="GeometryCollection")return jf(T,L);var P;switch(T.type){case"Point":P=Jl;break;case"MultiPoint":P=Jl;break;case"LineString":P=zu;break;case"MultiLineString":P=zu;break;case"Polygon":P=Xs;break;case"MultiPolygon":P=Xs;break;case"Sphere":P=Xs;break;default:return null}return r.geoStream(T,L(P)),P.result()}var Xn=[],fi=[],Jl={point:function(T,L){Xn.push([T,L])},result:function(){var T=Xn.length?Xn.length<2?{type:"Point",coordinates:Xn[0]}:{type:"MultiPoint",coordinates:Xn}:null;return Xn=[],T}},zu={lineStart:Eu,point:function(T,L){Xn.push([T,L])},lineEnd:function(){Xn.length&&(fi.push(Xn),Xn=[])},result:function(){var T=fi.length?fi.length<2?{type:"LineString",coordinates:fi[0]}:{type:"MultiLineString",coordinates:fi}:null;return fi=[],T}},Xs={polygonStart:Eu,lineStart:Eu,point:function(T,L){Xn.push([T,L])},lineEnd:function(){var T=Xn.length;if(T){do Xn.push(Xn[0].slice());while(++T<4);fi.push(Xn),Xn=[]}},polygonEnd:Eu,result:function(){if(!fi.length)return null;var T=[],L=[];return fi.forEach(function(P){Zs(P)?T.push([P]):L.push(P)}),L.forEach(function(P){var z=P[0];T.some(function(Y){if(x0(Y[0],z))return Y.push(P),!0})||T.push([P])}),fi=[],T.length?T.length>1?{type:"MultiPolygon",coordinates:T}:{type:"Polygon",coordinates:T[0]}:null}};function Jf(T){var L=T(b,0)[0]-T(-b,0)[0];function P(z,Y){var U=n(z)0?z-x:z+x,Y),ue=(X[0]-X[1])*k,he=(X[0]+X[1])*k;if(U)return[ue,he];var se=L*k,pe=ue>0^he>0?-1:1;return[pe*ue-m(he)*se,pe*he-m(ue)*se]}return T.invert&&(P.invert=function(z,Y){var U=(z+Y)*k,X=(Y-z)*k,ue=n(U)<.5*L&&n(X)<.5*L;if(!ue){var he=L*k,se=U>0^X>0?-1:1,pe=-se*z+(X>0?1:-1)*he,we=-se*Y+(U>0?1:-1)*he;U=(-pe-we)*k,X=(pe-we)*k}var Le=T.invert(U,X);return ue||(Le[0]+=U>0?x:-x),Le}),r.geoProjection(P).rotate([-90,-90,45]).clipAngle(180-.001)}function B(){return Jf(yu).scale(176.423)}function J(){return Jf(so).scale(111.48)}function ve(T,L){if(!(0<=(L=+L)&&L<=20))throw new Error("invalid digits");function P(se){var pe=se.length,we=2,Le=new Array(pe);for(Le[0]=+se[0].toFixed(L),Le[1]=+se[1].toFixed(L);we2||Fe[0]!=pe[0]||Fe[1]!=pe[1])&&(we.push(Fe),pe=Fe)}return we.length===1&&se.length>1&&we.push(P(se[se.length-1])),we}function U(se){return se.map(Y)}function X(se){if(se==null)return se;var pe;switch(se.type){case"GeometryCollection":pe={type:"GeometryCollection",geometries:se.geometries.map(X)};break;case"Point":pe={type:"Point",coordinates:P(se.coordinates)};break;case"MultiPoint":pe={type:se.type,coordinates:z(se.coordinates)};break;case"LineString":pe={type:se.type,coordinates:Y(se.coordinates)};break;case"MultiLineString":case"Polygon":pe={type:se.type,coordinates:U(se.coordinates)};break;case"MultiPolygon":pe={type:"MultiPolygon",coordinates:se.coordinates.map(U)};break;default:return se}return se.bbox!=null&&(pe.bbox=se.bbox),pe}function ue(se){var pe={type:"Feature",properties:se.properties,geometry:X(se.geometry)};return se.id!=null&&(pe.id=se.id),se.bbox!=null&&(pe.bbox=se.bbox),pe}if(T!=null)switch(T.type){case"Feature":return ue(T);case"FeatureCollection":{var he={type:"FeatureCollection",features:T.features.map(ue)};return T.bbox!=null&&(he.bbox=T.bbox),he}default:return X(T)}return T}function oe(T){var L=p(T);function P(z,Y){var U=L?y(z*L/2)/L:z/2;if(!Y)return[2*U,-T];var X=2*a(U*p(Y)),ue=1/y(Y);return[p(X)*ue,Y+(1-o(X))*ue-T]}return P.invert=function(z,Y){if(n(Y+=T)<_)return[L?2*a(L*z/2)/L:z,0];var U=z*z+Y*Y,X=0,ue=10,he;do{var se=y(X),pe=1/o(X),we=U-2*Y*X+X*X;X-=he=(se*we+2*(X-Y))/(2+we*pe*pe+2*(X-Y)*se)}while(n(he)>_&&--ue>0);var Le=z*(se=y(X)),Fe=y(n(Y)0?b:-b)*(he+Y*(pe-X)/2+Y*Y*(pe-2*he+X)/2)]}je.invert=function(T,L){var P=L/b,z=P*90,Y=v(18,n(z/5)),U=f(0,s(Y));do{var X=Oe[U][1],ue=Oe[U+1][1],he=Oe[v(19,U+2)][1],se=he-X,pe=he-2*ue+X,we=2*(n(P)-ue)/se,Le=pe/se,Fe=we*(1-Le*we*(1-2*Le*we));if(Fe>=0||U===1){z=(L>=0?5:-5)*(Fe+Y);var rr=50,fr;do Y=v(18,n(z)/5),U=s(Y),Fe=Y-U,X=Oe[U][1],ue=Oe[U+1][1],he=Oe[v(19,U+2)][1],z-=(fr=(L>=0?b:-b)*(ue+Fe*(he-X)/2+Fe*Fe*(he-2*ue+X)/2)-L)*N;while(n(fr)>C&&--rr>0);break}}while(--U>=0);var Tr=Oe[U][0],jr=Oe[U+1][0],at=Oe[v(19,U+2)][0];return[T/(jr+Fe*(at-Tr)/2+Fe*Fe*(at-2*jr+Tr)/2),z*I]};function ir(){return r.geoProjection(je).scale(152.63)}function sr(T){function L(P,z){var Y=o(z),U=(T-1)/(T-Y*o(P));return[U*Y*p(P),U*p(z)]}return L.invert=function(P,z){var Y=P*P+z*z,U=H(Y),X=(T-H(1-Y*(T+1)/(T-1)))/((T-1)/U+U/(T-1));return[i(P*X,U*H(1-X*X)),U?O(z*X/U):0]},L}function _r(T,L){var P=sr(T);if(!L)return P;var z=o(L),Y=p(L);function U(X,ue){var he=P(X,ue),se=he[1],pe=se*Y/(T-1)+z;return[he[0]*z/pe,se/pe]}return U.invert=function(X,ue){var he=(T-1)/(T-1-ue*Y);return P.invert(he*X,he*ue*z)},U}function $e(){var T=2,L=0,P=r.geoProjectionMutator(_r),z=P(T,L);return z.distance=function(Y){return arguments.length?P(T=+Y,L):T},z.tilt=function(Y){return arguments.length?P(T,L=Y*I):L*N},z.scale(432.147).clipAngle(Z(1/T)*N-1e-6)}var vr=1e-4,ur=1e4,Mr=-180,qr=Mr+vr,rt=180,Jr=rt-vr,tt=-90,nt=tt+vr,Dr=90,Hr=Dr-vr;function it(T){return T.length>0}function pt(T){return Math.floor(T*ur)/ur}function Gt(T){return T===tt||T===Dr?[0,T]:[Mr,pt(T)]}function nn(T){var L=T[0],P=T[1],z=!1;return L<=qr?(L=Mr,z=!0):L>=Jr&&(L=rt,z=!0),P<=nt?(P=tt,z=!0):P>=Hr&&(P=Dr,z=!0),z?[L,P]:T}function Wt(T){return T.map(nn)}function pn(T,L,P){for(var z=0,Y=T.length;z=Jr||pe<=nt||pe>=Hr){U[X]=nn(he);for(var we=X+1;weqr&&Fent&&rr=ue)break;P.push({index:-1,polygon:L,ring:U=U.slice(we-1)}),U[0]=Gt(U[0][1]),X=-1,ue=U.length}}}}function Lt(T){var L,P=T.length,z={},Y={},U,X,ue,he,se;for(L=0;L0?x-ue:ue)*N],se=r.geoProjection(T(X)).rotate(he),pe=r.geoRotation(he),we=se.center;return delete se.rotate,se.center=function(Le){return arguments.length?we(pe(Le)):pe.invert(we())},se.clipAngle(90)}function ya(T){var L=o(T);function P(z,Y){var U=r.geoGnomonicRaw(z,Y);return U[0]*=L,U}return P.invert=function(z,Y){return r.geoGnomonicRaw.invert(z/L,Y)},P}function Ja(){return Zi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Zi(T,L){return Yn(ya,T,L)}function ki(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var L=-T/2,P=-L,z=T*T,Y=y(P),U=.5/p(P);function X(ue,he){var se=Z(o(he)*o(ue-L)),pe=Z(o(he)*o(ue-P)),we=he<0?-1:1;return se*=se,pe*=pe,[(se-pe)/(2*T),we*H(4*z*pe-(z-se+pe)*(z-se+pe))/(2*T)]}return X.invert=function(ue,he){var se=he*he,pe=o(H(se+(Le=ue+L)*Le)),we=o(H(se+(Le=ue+P)*Le)),Le,Fe;return[i(Fe=pe-we,Le=(pe+we)*Y),(he<0?-1:1)*Z(H(Le*Le+Fe*Fe)*U)]},X}function ol(){return ci([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ci(T,L){return Yn(ki,T,L)}function ll(T,L){if(n(L)<_)return[T,0];var P=n(L/b),z=O(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(z/2)];var Y=o(z),U=n(x/T-T/x)/2,X=U*U,ue=Y/(P+Y-1),he=ue*(2/P-1),se=he*he,pe=se+X,we=ue-se,Le=X+ue;return[m(T)*x*(U*we+H(X*we*we-pe*(ue*ue-se)))/pe,m(L)*x*(he*Le-U*H((X+1)*pe-Le*Le))/pe]}ll.invert=function(T,L){if(n(L)<_)return[T,0];if(n(T)<_)return[0,b*p(2*a(L/x))];var P=(T/=x)*T,z=(L/=x)*L,Y=P+z,U=Y*Y,X=-n(L)*(1+Y),ue=X-2*z+P,he=-2*X+1+2*z+U,se=z/he+(2*ue*ue*ue/(he*he*he)-9*X*ue/(he*he))/27,pe=(X-ue*ue/(3*he))/he,we=2*H(-pe/3),Le=Z(3*se/(pe*we))/3;return[x*(Y-1+H(1+2*(P-z)+U))/(2*T),m(L)*x*(-we*o(Le+x/3)-ue/(3*he))]};function $l(){return r.geoProjection(ll).scale(79.4183)}function Nu(T,L){if(n(L)<_)return[T,0];var P=n(L/b),z=O(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(z/2)];var Y=o(z),U=n(x/T-T/x)/2,X=U*U,ue=Y*(H(1+X)-U*Y)/(1+X*P*P);return[m(T)*x*ue,m(L)*x*H(1-ue*(2*U+ue))]}Nu.invert=function(T,L){if(!T)return[0,b*p(2*a(L/x))];var P=n(T/x),z=(1-P*P-(L/=x)*L)/(2*P),Y=z*z,U=H(Y+1);return[m(T)*x*(U-z),m(L)*b*p(2*i(H((1-2*z*P)*(z+U)-P),H(U+z+P)))]};function A0(){return r.geoProjection(Nu).scale(79.4183)}function T0(T,L){if(n(L)<_)return[T,0];var P=L/b,z=O(P);if(n(T)<_||n(n(L)-b)<_)return[0,x*y(z/2)];var Y=(x/T-T/x)/2,U=P/(1+o(z));return[x*(m(T)*H(Y*Y+1-U*U)-Y),x*U]}T0.invert=function(T,L){if(!L)return[T,0];var P=L/x,z=(x*x*(1-P*P)-T*T)/(2*x*T);return[T?x*(m(T)*H(z*z+1)-z):0,b*p(2*a(P))]};function nd(){return r.geoProjection(T0).scale(79.4183)}function $f(T,L){if(!L)return[T,0];var P=n(L);if(!T||P===b)return[0,L];var z=P/b,Y=z*z,U=(8*z-Y*(Y+2)-5)/(2*Y*(z-1)),X=U*U,ue=z*U,he=Y+X+2*ue,se=z+3*U,pe=T/b,we=pe+1/pe,Le=m(n(T)-b)*H(we*we-4),Fe=Le*Le,rr=he*(Y+X*Fe-1)+(1-Y)*(Y*(se*se+4*X)+12*ue*X+4*X*X),fr=(Le*(he+X-1)+2*H(rr))/(4*he+Fe);return[m(T)*b*fr,m(L)*b*H(1+Le*n(fr)-fr*fr)]}$f.invert=function(T,L){var P;if(!T||!L)return[T,L];L/=x;var z=m(T)*T/b,Y=(z*z-1+4*L*L)/n(z),U=Y*Y,X=2*L,ue=50;do{var he=X*X,se=(8*X-he*(he+2)-5)/(2*he*(X-1)),pe=(3*X-he*X-10)/(2*he*X),we=se*se,Le=X*se,Fe=X+se,rr=Fe*Fe,fr=X+3*se,Tr=rr*(he+we*U-1)+(1-he)*(he*(fr*fr+4*we)+we*(12*Le+4*we)),jr=-2*Fe*(4*Le*we+(1-4*he+3*he*he)*(1+pe)+we*(-6+14*he-U+(-8+8*he-2*U)*pe)+Le*(-8+12*he+(-10+10*he-U)*pe)),at=H(Tr),ot=Y*(rr+we-1)+2*at-z*(4*rr+U),ut=Y*(2*se*pe+2*Fe*(1+pe))+jr/at-8*Fe*(Y*(-1+we+rr)+2*at)*(1+pe)/(U+4*rr);X-=P=ot/ut}while(P>_&&--ue>0);return[m(T)*(H(Y*Y+4)+Y)*x/4,b*X]};function Xi(){return r.geoProjection($f).scale(127.16)}function ad(T,L,P,z,Y){function U(X,ue){var he=P*p(z*ue),se=H(1-he*he),pe=H(2/(1+se*o(X*=Y)));return[T*se*pe*p(X),L*he*pe]}return U.invert=function(X,ue){var he=X/T,se=ue/L,pe=H(he*he+se*se),we=2*O(pe/2);return[i(X*y(we),T*pe)/Y,pe&&O(ue*p(we)/(L*P*pe))/z]},U}function id(T,L,P,z){var Y=x/3;T=f(T,_),L=f(L,_),T=v(T,b),L=v(L,x-_),P=f(P,0),P=v(P,100-_),z=f(z,_);var U=P/100+1,X=z/100,ue=Z(U*o(Y))/Y,he=p(T)/p(ue*b),se=L/x,pe=H(X*p(T/2)/p(L/2)),we=pe/H(se*he*ue),Le=1/(pe*H(se*he*ue));return ad(we,Le,he,ue,se)}function k0(){var T=65*I,L=60*I,P=20,z=200,Y=r.geoProjectionMutator(id),U=Y(T,L,P,z);return U.poleline=function(X){return arguments.length?Y(T=+X*I,L,P,z):T*N},U.parallels=function(X){return arguments.length?Y(T,L=+X*I,P,z):L*N},U.inflation=function(X){return arguments.length?Y(T,L,P=+X,z):P},U.ratio=function(X){return arguments.length?Y(T,L,P,z=+X):z},U.scale(163.775)}function t1(){return k0().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var od=4*x+3*H(3),ld=2*H(2*x*H(3)/od),sd=hr(ld*H(3)/x,ld,od/6);function S0(){return r.geoProjection(sd).scale(176.84)}function Kf(T,L){return[T*H(1-3*L*L/(x*x)),L]}Kf.invert=function(T,L){return[T/H(1-3*L*L/(x*x)),L]};function ud(){return r.geoProjection(Kf).scale(152.63)}function n1(T,L){var P=o(L),z=o(T)*P,Y=1-z,U=o(T=i(p(T)*P,-p(L))),X=p(T);return P=H(1-z*z),[X*P-U*Y,-U*P-X*Y]}n1.invert=function(T,L){var P=(T*T+L*L)/-2,z=H(-P*(2+P)),Y=L*P+T*z,U=T*P-L*z,X=H(U*U+Y*Y);return[i(z*Y,X*(1+P)),X?-O(z*U/X):0]};function qy(){return r.geoProjection(n1).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function a1(T,L){var P=Ne(T,L);return[(P[0]+T/b)/2,(P[1]+L)/2]}a1.invert=function(T,L){var P=T,z=L,Y=25;do{var U=o(z),X=p(z),ue=p(2*z),he=X*X,se=U*U,pe=p(P),we=o(P/2),Le=p(P/2),Fe=Le*Le,rr=1-se*we*we,fr=rr?Z(U*we)*H(Tr=1/rr):Tr=0,Tr,jr=.5*(2*fr*U*Le+P/b)-T,at=.5*(fr*X+z)-L,ot=.5*Tr*(se*Fe+fr*U*we*he)+.5/b,ut=Tr*(pe*ue/4-fr*X*Le),vt=.125*Tr*(ue*Le-fr*X*se*pe),sn=.5*Tr*(he*we+fr*Fe*U)+.5,Mn=ut*vt-sn*ot,Nt=(at*ut-jr*sn)/Mn,Fn=(jr*vt-at*ot)/Mn;P-=Nt,z-=Fn}while((n(Nt)>_||n(Fn)>_)&&--Y>0);return[P,z]};function Si(){return r.geoProjection(a1).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=ke,e.geoAiryRaw=le,e.geoAitoff=He,e.geoAitoffRaw=Ne,e.geoArmadillo=Ce,e.geoArmadilloRaw=Xe,e.geoAugust=ce,e.geoAugustRaw=er,e.geoBaker=G,e.geoBakerRaw=de,e.geoBerghaus=$,e.geoBerghausRaw=Q,e.geoBertin1953=cr,e.geoBertin1953Raw=Be,e.geoBoggs=kr,e.geoBoggsRaw=Ue,e.geoBonne=dr,e.geoBonneRaw=Ze,e.geoBottomley=mr,e.geoBottomleyRaw=Ar,e.geoBromley=Ir,e.geoBromleyRaw=br,e.geoChamberlin=nr,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=Ke,e.geoCollignon=Yr,e.geoCollignonRaw=Sr,e.geoCraig=st,e.geoCraigRaw=zr,e.geoCraster=$t,e.geoCrasterRaw=St,e.geoCylindricalEqualArea=hn,e.geoCylindricalEqualAreaRaw=vn,e.geoCylindricalStereographic=Ut,e.geoCylindricalStereographicRaw=Ln,e.geoEckert1=Kt,e.geoEckert1Raw=en,e.geoEckert2=la,e.geoEckert2Raw=rn,e.geoEckert3=On,e.geoEckert3Raw=xn,e.geoEckert4=on,e.geoEckert4Raw=Gr,e.geoEckert5=tn,e.geoEckert5Raw=Pt,e.geoEckert6=Wn,e.geoEckert6Raw=zn,e.geoEisenlohr=ma,e.geoEisenlohrRaw=ga,e.geoFahey=An,e.geoFaheyRaw=Qt,e.geoFoucaut=oo,e.geoFoucautRaw=ta,e.geoFoucautSinusoidal=As,e.geoFoucautSinusoidalRaw=yi,e.geoGilbert=Ts,e.geoGingery=Vo,e.geoGingeryRaw=Go,e.geoGinzburg4=Ct,e.geoGinzburg4Raw=Qr,e.geoGinzburg5=Br,e.geoGinzburg5Raw=It,e.geoGinzburg6=ln,e.geoGinzburg6Raw=Zn,e.geoGinzburg8=At,e.geoGinzburg8Raw=En,e.geoGinzburg9=Wo,e.geoGinzburg9Raw=Xa,e.geoGringorten=Xo,e.geoGringortenRaw=yu,e.geoGuyou=ks,e.geoGuyouRaw=so,e.geoHammer=Ie,e.geoHammerRaw=be,e.geoHammerRetroazimuthal=Ss,e.geoHammerRetroazimuthalRaw=qf,e.geoHealpix=Bl,e.geoHealpixRaw=uo,e.geoHill=o0,e.geoHillRaw=Ef,e.geoHomolosine=Vv,e.geoHomolosineRaw=Es,e.geoHufnagel=Pf,e.geoHufnagelRaw=$o,e.geoHyperelliptical=vo,e.geoHyperellipticalRaw=co,e.geoInterrupt=Yi,e.geoInterruptedBoggs=Zv,e.geoInterruptedHomolosine=Ko,e.geoInterruptedMollweide=el,e.geoInterruptedMollweideHemispheres=Ps,e.geoInterruptedSinuMollweide=Rs,e.geoInterruptedSinusoidal=rl,e.geoKavrayskiy7=Gl,e.geoKavrayskiy7Raw=Yl,e.geoLagrange=Mu,e.geoLagrangeRaw=wu,e.geoLarrivee=Tu,e.geoLarriveeRaw=Au,e.geoLaskowski=na,e.geoLaskowskiRaw=Ia,e.geoLittrow=Vi,e.geoLittrowRaw=Sa,e.geoLoximuthal=tl,e.geoLoximuthalRaw=Ns,e.geoMiller=zf,e.geoMillerRaw=Vl,e.geoModifiedStereographic=Mi,e.geoModifiedStereographicRaw=u0,e.geoModifiedStereographicAlaska=Hf,e.geoModifiedStereographicGs48=f0,e.geoModifiedStereographicGs50=c0,e.geoModifiedStereographicMiller=Fs,e.geoModifiedStereographicLee=Is,e.geoMollweide=pr,e.geoMollweideRaw=Je,e.geoMtFlatPolarParabolic=v0,e.geoMtFlatPolarParabolicRaw=Su,e.geoMtFlatPolarQuartic=Jv,e.geoMtFlatPolarQuarticRaw=Bf,e.geoMtFlatPolarSinusoidal=Cu,e.geoMtFlatPolarSinusoidalRaw=po,e.geoNaturalEarth2=Bs,e.geoNaturalEarth2Raw=Wl,e.geoNellHammer=Of,e.geoNellHammerRaw=Os,e.geoInterruptedQuarticAuthalic=h0,e.geoNicolosi=d0,e.geoNicolosiRaw=Uf,e.geoPatterson=p0,e.geoPattersonRaw=Xf,e.geoPolyconic=g0,e.geoPolyconicRaw=nl,e.geoPolyhedral=Xl,e.geoPolyhedralButterfly=Ys,e.geoPolyhedralCollignon=r1,e.geoPolyhedralWaterman=Vs,e.geoProject=Pu,e.geoGringortenQuincuncial=B,e.geoPeirceQuincuncial=J,e.geoPierceQuincuncial=J,e.geoQuantize=ve,e.geoQuincuncial=Jf,e.geoRectangularPolyconic=Me,e.geoRectangularPolyconicRaw=oe,e.geoRobinson=ir,e.geoRobinsonRaw=je,e.geoSatellite=$e,e.geoSatelliteRaw=_r,e.geoSinuMollweide=l0,e.geoSinuMollweideRaw=Ds,e.geoSinusoidal=Ye,e.geoSinusoidalRaw=tr,e.geoStitch=gn,e.geoTimes=Vt,e.geoTimesRaw=Vr,e.geoTwoPointAzimuthal=Zi,e.geoTwoPointAzimuthalRaw=ya,e.geoTwoPointAzimuthalUsa=Ja,e.geoTwoPointEquidistant=ci,e.geoTwoPointEquidistantRaw=ki,e.geoTwoPointEquidistantUsa=ol,e.geoVanDerGrinten=$l,e.geoVanDerGrintenRaw=ll,e.geoVanDerGrinten2=A0,e.geoVanDerGrinten2Raw=Nu,e.geoVanDerGrinten3=nd,e.geoVanDerGrinten3Raw=T0,e.geoVanDerGrinten4=Xi,e.geoVanDerGrinten4Raw=$f,e.geoWagner=k0,e.geoWagner7=t1,e.geoWagnerRaw=id,e.geoWagner4=S0,e.geoWagner4Raw=sd,e.geoWagner6=ud,e.geoWagner6Raw=Kf,e.geoWiechel=qy,e.geoWiechelRaw=n1,e.geoWinkel3=Si,e.geoWinkel3Raw=a1,Object.defineProperty(e,"__esModule",{value:!0})})});var SF=te((C1e,kF)=>{"use strict";var pa=kt(),p_=gr(),Sie=dt(),Hv=Math.PI/180,$c=180/Math.PI,m_={cursor:"pointer"},y_={cursor:"auto"};function Cie(e,r){var t=e.projection,n;return r._isScoped?n=Lie:r._isClipped?n=Die:n=qie,n(e,t)}kF.exports=Cie;function b_(e,r){return pa.behavior.zoom().translate(r.translate()).scale(r.scale())}function __(e,r,t){var n=e.id,a=e.graphDiv,i=a.layout,o=i[n],l=a._fullLayout,s=l[n],u={},f={};function v(h,d){u[n+"."+h]=p_.nestedProperty(o,h).get(),Sie.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=p_.nestedProperty(s,h);m.get()!==d&&(m.set(d),p_.nestedProperty(o,h).set(d),f[n+"."+h]=d)}t(v),v("projection.scale",r.scale()/e.fitScale),v("fitbounds",!1),a.emit("plotly_relayout",f)}function Lie(e,r){var t=b_(e,r);function n(){pa.select(this).style(m_)}function a(){r.scale(pa.event.scale).translate(pa.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){pa.select(this).style(y_),__(e,r,i)}return t.on("zoomstart",n).on("zoom",a).on("zoomend",o),t}function qie(e,r){var t=b_(e,r),n=2,a,i,o,l,s,u,f,v,h;function d(x){return r.invert(x)}function m(x){var b=d(x);if(!b)return!0;var A=r(b);return Math.abs(A[0]-x[0])>n||Math.abs(A[1]-x[1])>n}function p(){pa.select(this).style(m_),a=pa.mouse(this),i=r.rotate(),o=r.translate(),l=i,s=d(a)}function y(){if(u=pa.mouse(this),m(a)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(pa.event.scale),r.translate([o[0],pa.event.translate[1]]),s?d(u)&&(v=d(u),f=[l[0]+(v[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(a=u,s=d(a)),h=!0,e.render(!0);var x=r.rotate(),b=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":b[0],"geo.center.lat":b[1],"geo.projection.rotation.lon":-x[0]})}function _(){pa.select(this).style(y_),h&&__(e,r,C)}function C(x){var b=r.rotate(),A=r.invert(e.midPt);x("projection.rotation.lon",-b[0]),x("center.lon",A[0]),x("center.lat",A[1])}return t.on("zoomstart",p).on("zoom",y).on("zoomend",_),t}function Die(e,r){var t={r:r.rotate(),k:r.scale()},n=b_(e,r),a=Hie(n,"zoomstart","zoom","zoomend"),i=0,o=n.on,l;n.on("zoomstart",function(){pa.select(this).style(m_);var h=pa.mouse(this),d=r.rotate(),m=d,p=r.translate(),y=Eie(d);l=py(r,h),o.call(n,"zoom",function(){var _=pa.mouse(this);if(r.scale(t.k=pa.event.scale),!l)h=_,l=py(r,h);else if(py(r,_)){r.rotate(d).translate(p);var C=py(r,_),x=Rie(l,C),b=Nie(Pie(y,x)),A=t.r=zie(b,l,m);(!isFinite(A[0])||!isFinite(A[1])||!isFinite(A[2]))&&(A=m),r.rotate(A),m=A}u(a.of(this,arguments))}),s(a.of(this,arguments))}).on("zoomend",function(){pa.select(this).style(y_),o.call(n,"zoom",null),f(a.of(this,arguments)),__(e,r,v)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function s(h){i++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function v(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return pa.rebind(n,a,"on")}function py(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&Fie(t)}function Eie(e){var r=.5*e[0]*Hv,t=.5*e[1]*Hv,n=.5*e[2]*Hv,a=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(n),u=Math.cos(n);return[i*l*u+a*o*s,a*l*u-i*o*s,i*o*u+a*l*s,i*l*s-a*o*u]}function Pie(e,r){var t=e[0],n=e[1],a=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-n*l-a*s-i*u,t*l+n*o+a*u-i*s,t*s-n*u+a*o+i*l,t*u+n*s-a*l+i*o]}function Rie(e,r){if(!(!e||!r)){var t=Iie(e,r),n=Math.sqrt(TF(t,t)),a=.5*Math.acos(Math.max(-1,Math.min(1,TF(e,r)))),i=Math.sin(a)/n;return n&&[Math.cos(a),t[2]*i,-t[1]*i,t[0]*i]}}function zie(e,r,t){var n=g_(r,2,e[0]);n=g_(n,1,e[1]),n=g_(n,0,e[2]-t[2]);var a=r[0],i=r[1],o=r[2],l=n[0],s=n[1],u=n[2],f=Math.atan2(i,a)*$c,v=Math.sqrt(a*a+i*i),h,d;Math.abs(s)>v?(d=(s>0?90:-90)-f,h=0):(d=Math.asin(s/v)*$c-f,h=Math.sqrt(v*v-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*$c,y=(Math.atan2(u,l)-Math.atan2(o,-h))*$c,_=MF(t[0],t[1],d,p),C=MF(t[0],t[1],m,y);return _<=C?[d,p,t[2]]:[m,y,t[2]]}function MF(e,r,t,n){var a=AF(t-e),i=AF(n-r);return Math.sqrt(a*a+i*i)}function AF(e){return(e%360+540)%360-180}function g_(e,r,t){var n=t*Hv,a=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(n),s=Math.sin(n);return a[i]=e[i]*l-e[o]*s,a[o]=e[o]*l+e[i]*s,a}function Nie(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*$c,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*$c,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*$c]}function Fie(e){var r=e[0]*Hv,t=e[1]*Hv,n=Math.cos(t);return[n*Math.cos(r),n*Math.sin(r),Math.sin(t)]}function TF(e,r){for(var t=0,n=0,a=e.length;n{"use strict";var gu=kt(),M_=d_(),Bie=M_.geoPath,Oie=M_.geoDistance,Uie=wF(),Yie=dt(),$h=gr(),Gie=$h.strTranslate,gy=Rt(),Jh=cn(),CF=Ml(),Vie=ha(),w_=qn(),LF=tf().getAutoRange,x_=ko(),Wie=uu().prepSelect,Zie=uu().clearOutline,Xie=uu().selectOnClick,jie=SF(),mi=Zh(),Jie=uy(),DF=Qm(),$ie=K4().feature;function EF(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var zl=EF.prototype;PF.exports=function(r){return new EF(r)};zl.plot=function(e,r,t,n){var a=this;if(n)return a.update(e,r,!0);a._geoCalcData=e,a._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in mi.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(r,n),this.updateDims(r,n),this.updateFx(r,n),Vie.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};zl.updateProjection=function(e,r){var t=this.graphDiv,n=r[this.id],a=r._size,i=n.domain,o=n.projection,l=n.lonaxis,s=n.lataxis,u=l._ax,f=s._ax,v=this.projection=Kie(n),h=[[a.l+a.w*i.x[0],a.t+a.h*(1-i.y[1])],[a.l+a.w*i.x[1],a.t+a.h*(1-i.y[0])]],d=n.center||{},m=o.rotation||{},p=l.range||[],y=s.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=LF(t,u),f.range=LF(t,f);var _=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:_,lat:C};else if(n._isClipped){d={lon:_,lat:C},m={lon:_,lat:C,roll:m.roll};var x=o.type,b=mi.lonaxisSpan[x]/2||180,A=mi.lataxisSpan[x]/2||90;p=[_-b,_+b],y=[C-A,C+A]}else d={lon:_,lat:C},m={lon:_,lat:m.lat,roll:m.roll}}v.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var k=qF(p,y);v.fitExtent(h,k);var M=this.bounds=v.getBounds(k),D=this.fitScale=v.scale(),R=v.translate();if(n.fitbounds){var N=v.getBounds(qF(u.range,f.range)),I=Math.min((M[1][0]-M[0][0])/(N[1][0]-N[0][0]),(M[1][1]-M[0][1])/(N[1][1]-N[0][1]));isFinite(I)?v.scale(I*D):$h.warn("Something went wrong during"+this.id+"fitbounds computations.")}else v.scale(o.scale*D);var W=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(v.translate([R[0]+(W[0]-R[0]),R[1]+(W[1]-R[1])]).clipExtent(M),n._isAlbersUsa){var O=v([d.lon,d.lat]),Z=v.translate();v.translate([Z[0]-(O[0]-Z[0]),Z[1]-(O[1]-Z[1])])}};zl.updateBaseLayers=function(e,r){var t=this,n=t.topojson,a=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!mi.lineLayers[h]}function s(h){return!!mi.fillLayers[h]}var u=this.hasChoropleth?mi.layersForChoropleth:mi.layers,f=u.filter(function(h){return l(h)||s(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),v=t.framework.selectAll(".layer").data(f,String);v.exit().each(function(h){delete a[h],delete i[h],gu.select(this).remove()}),v.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=a[h]=gu.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):s(h)&&(i[h]=d.append("path").style("stroke","none"))}),v.order(),v.each(function(h){var d=i[h],m=mi.layerNameToAdjective[h];h==="frame"?d.datum(mi.sphereSVG):l(h)||s(h)?d.datum($ie(n,n.objects[h])):o(h)&&d.datum(Qie(h,r,e)).call(gy.stroke,r[h].gridcolor).call(Jh.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(gy.stroke,r[m+"color"]).call(Jh.dashLine,"",r[m+"width"]):s(h)&&d.call(gy.fill,r[m+"color"])})};zl.updateDims=function(e,r){var t=this.bounds,n=(r.framewidth||0)/2,a=t[0][0]-n,i=t[0][1]-n,o=t[1][0]-a+n,l=t[1][1]-i+n;Jh.setRect(this.clipRect,a,i,o,l),this.bgRect.call(Jh.setRect,a,i,o,l).call(gy.fill,r.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};zl.updateFx=function(e,r){var t=this,n=t.graphDiv,a=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var v=t.viewInitial,h={};for(var d in v)h[t.id+"."+d]=v[d];Yie.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function s(v){return t.projection.invert([v[0]+t.xaxis._offset,v[1]+t.yaxis._offset])}var u=function(v,h){if(h.isRect){var d=v.range={};d[t.id]=[s([h.xmin,h.ymin]),s([h.xmax,h.ymax])]}else{var m=v.lassoPoints={};m[t.id]=h.map(s)}},f={element:t.bgRect.node(),gd:n,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(v){v===2&&Zie(n)}};i==="pan"?(a.node().onmousedown=null,a.call(jie(t,r)),a.on("dblclick.zoom",l),n._context._scrollZoom.geo||a.on("wheel.zoom",null)):(i==="select"||i==="lasso")&&(a.on(".zoom",null),f.prepFn=function(v,h,d){Wie(v,h,d,f,i)},x_.init(f)),a.on("mousemove",function(){var v=t.projection.invert($h.getPositionFromD3Event());if(!v)return x_.unhover(n,gu.event);t.xaxis.p2c=function(){return v[0]},t.yaxis.p2c=function(){return v[1]},CF.hover(n,gu.event,t.id)}),a.on("mouseout",function(){n._dragging||x_.unhover(n,gu.event)}),a.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&Xie(gu.event,n,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&CF.click(n,gu.event))})};zl.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,n="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=gu.select(e.container).append("g").attr("class","geo "+e.id).call(Jh.setClipUrl,n,r),e.project=function(a){var i=e.projection(a);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(a){return e.project(a)[0]}},e.yaxis={_id:"y",c2p:function(a){return e.project(a)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},w_.setConvert(e.mockAxis,t)};zl.saveViewInitial=function(e){var r=e.center||{},t=e.projection,n=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var a;e._isScoped?a={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?a={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:a={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":n.lon},$h.extendFlat(this.viewInitial,a)};zl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};zl._render=function(){var e=this.projection,r=e.getPath(),t;function n(i){var o=e(i.lonlat);return o?Gie(o[0],o[1]):null}function a(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",a).attr("transform",n)};function Kie(e){var r=e.projection,t=r.type,n=mi.projNames[t];n="geo"+$h.titleCase(n);for(var a=M_[n]||Uie[n],i=a(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?mi.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(v){return v?i:[]},u=0;um}else return!1},i.getPath=function(){return Bie().projection(i)},i.getBounds=function(v){return i.getPath().bounds(v)},i.precision(mi.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-mi.clipPad),i}function Qie(e,r,t){var n=1e-6,a=2.5,i=r[e],o=mi.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-n],tick0:i.tick0,dtick:i.dtick};w_.setConvert(f,t);var v=w_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&v.pop();for(var h=v.length,d=new Array(h),m=0;m0&&a<0&&(a+=360);var l=(a-n)/4;return{type:"Polygon",coordinates:[[[n,i],[n,o],[n+l,o],[n+2*l,o],[n+3*l,o],[a,o],[a,i],[a-l,i],[a-2*l,i],[a-3*l,i],[n,i]]]}}});var A_=te((q1e,FF)=>{"use strict";var Ov=dl(),eoe=Vm().attributes,roe=rs().dash,Bv=Zh(),toe=xo().overrideAll,zF=Bd(),NF={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:Ov.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:roe},noe=FF.exports=toe({domain:eoe({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:zF(Bv.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:zF(Bv.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:Ov.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Bv.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Bv.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Bv.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Bv.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Ov.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Ov.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Ov.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Ov.background},lonaxis:NF,lataxis:NF},"plot","from-root");noe.uirevision={valType:"any",editType:"none"}});var HF=te((D1e,IF)=>{"use strict";var aoe=gr(),ioe=yn(),ooe=Vm().defaults;IF.exports=function(r,t,n,a){var i=a.type,o=a.attributes,l=a.handleDefaults,s=a.partition||"x",u=t._subplots[i],f=u.length,v=f&&u[0].replace(/\d+$/,""),h,d;function m(C,x){return aoe.coerce(h,d,o,C,x)}for(var p=0;p{"use strict";var my=gr(),loe=HF(),soe=T1().getSubplotData,yy=Zh(),uoe=A_(),BF=yy.axesNames;OF.exports=function(r,t,n){loe(r,t,n,{type:"geo",attributes:uoe,handleDefaults:foe,fullData:n,partition:"y"})};function foe(e,r,t,n){var a=soe(n.fullData,"geo",n.id),i=a.map(function(le){return le.index}),o=t("resolution"),l=t("scope"),s=yy.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var v=r._isScoped=l!=="world",h=r._isSatellite=u==="satellite",d=r._isConic=u.indexOf("conic")!==-1||u==="albers",m=r._isClipped=!!yy.lonaxisSpan[u];if(e.visible===!1){var p=my.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),_,C=0;C0&&O<0&&(O+=360);var Z=(W+O)/2,H;if(!f){var ee=v?s.projRotate:[Z,0,0];H=t("projection.rotation.lon",ee[0]),t("projection.rotation.lat",ee[1]),t("projection.rotation.roll",ee[2]),_=t("showcoastlines",!v&&y),_&&(t("coastlinecolor"),t("coastlinewidth")),_=t("showocean",y?void 0:!1),_&&t("oceancolor")}var ie,re;if(f?(ie=-96.6,re=38.7):(ie=v?Z:H,re=(I[0]+I[1])/2),t("center.lon",ie),t("center.lat",re),h&&(t("projection.tilt"),t("projection.distance")),d){var K=s.projParallels||[0,60];t("projection.parallels",K)}t("projection.scale"),_=t("showland",y?void 0:!1),_&&t("landcolor"),_=t("showlakes",y?void 0:!1),_&&t("lakecolor"),_=t("showrivers",y?void 0:!1),_&&(t("rivercolor"),t("riverwidth")),_=t("showcountries",v&&l!=="usa"&&y),_&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",y),t("subunitcolor"),t("subunitwidth")),v||(_=t("showframe",y),_&&(t("framecolor"),t("framewidth"))),t("bgcolor");var fe=t("fitbounds");fe&&(delete r.projection.scale,v?(delete r.center.lon,delete r.center.lat):m?(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon,delete r.projection.rotation.lat,delete r.lonaxis.range,delete r.lataxis.range):(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon))}});var T_=te((P1e,VF)=>{"use strict";var coe=T1().getSubplotCalcData,voe=gr().counterRegex,hoe=RF(),ws="geo",YF=voe(ws),GF={};GF[ws]={valType:"subplotid",dflt:ws,editType:"calc"};function doe(e){for(var r=e._fullLayout,t=e.calcdata,n=r._subplots[ws],a=0;a{"use strict";WF.exports={attributes:Wh(),supplyDefaults:xN(),colorbar:Yb(),formatLabels:AN(),calc:LN(),calcGeoJSON:v_().calcGeoJSON,plot:v_().plot,style:s_(),styleOnSelect:Dh().styleOnSelect,hoverPoints:hF(),eventData:pF(),selectPoints:yF(),moduleType:"trace",name:"scattergeo",basePlotModule:T_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var jF=te((z1e,XF)=>{"use strict";XF.exports=ZF()});var by=te((N1e,KF)=>{"use strict";var{hovertemplateAttrs:moe,templatefallbackAttrs:yoe}=lc(),Mf=Wh(),boe=K0(),JF=_o(),_oe=dl().defaultLine,wf=fa().extendFlat,$F=Mf.marker.line;KF.exports=wf({locations:{valType:"data_array",editType:"calc"},locationmode:Mf.locationmode,z:{valType:"data_array",editType:"calc"},geojson:wf({},Mf.geojson,{}),featureidkey:Mf.featureidkey,text:wf({},Mf.text,{}),hovertext:wf({},Mf.hovertext,{}),marker:{line:{color:wf({},$F.color,{dflt:_oe}),width:wf({},$F.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:Mf.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Mf.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:wf({},JF.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:moe(),hovertemplatefallback:yoe(),showlegend:wf({},JF.showlegend,{dflt:!1})},boe("",{cLetter:"z",editTypeOverride:"calc"}))});var eI=te((F1e,QF)=>{"use strict";var Kh=gr(),xoe=Q0(),woe=by(),Moe=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");QF.exports=function(r,t,n,a){function i(h,d){return Kh.coerce(r,t,woe,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&Kh.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||Kh.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&Kh.warn(Moe),f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var v=i("marker.line.width");v&&i("marker.line.color"),i("marker.opacity"),xoe(r,t,a,i,{prefix:"",cLetter:"z"}),Kh.coerceSelectionMarkerOpacity(t,i)}});var tI=te((I1e,rI)=>{"use strict";rI.exports={min:"zmin",max:"zmax"}});var oI=te((H1e,iI)=>{"use strict";var nI=Ht(),Aoe=Pn().BADNUM,Toe=vp(),koe=kh(),Soe=um();function aI(e){return e&&typeof e=="string"}iI.exports=function(r,t){var n=t._length,a=new Array(n),i;t.geojson?i=function(f){return aI(f)||nI(f)}:i=aI;for(var o=0;o{"use strict";var Coe=kt(),Loe=Rt(),k_=cn(),qoe=dp();function Doe(e,r){r&&lI(e,r)}function lI(e,r){var t=r[0].trace,n=r[0].node3,a=n.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=qoe.makeColorScaleFuncFromTrace(t);a.each(function(s){Coe.select(this).attr("fill",l(s.z)).call(Loe.stroke,s.mlc||o.color).call(k_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),k_.selectedPointStyle(a,t)}function Eoe(e,r){var t=r[0].node3,n=r[0].trace;n.selectedpoints?k_.selectedPointStyle(t.selectAll(".choroplethlocation"),n):lI(e,r)}sI.exports={style:Doe,styleOnSelect:Eoe}});var S_=te((O1e,cI)=>{"use strict";var Poe=kt(),uI=gr(),Uv=uy(),Roe=Qm().getTopojsonFeatures,fI=tf().findExtremes,zoe=_y().style;function Noe(e,r,t){var n=r.layers.backplot.select(".choroplethlayer");uI.makeTraceGroups(n,t,"trace choropleth").each(function(a){var i=Poe.select(this),o=i.selectAll("path.choroplethlocation").data(uI.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),zoe(e,a)})}function Foe(e,r){for(var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Uv.extractTraceFeature(e):Roe(t,a.topojson),s=[],u=[],f=0;f{"use strict";var Ioe=qn(),Hoe=by(),Boe=gr().fillText;vI.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.subplot,l,s,u,f,v=[t,n],h=[t+360,n];for(s=0;s")}}});var pI=te((Y1e,dI)=>{"use strict";dI.exports=function(r,t,n,a,i){r.location=t.location,r.z=t.z;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var mI=te((G1e,gI)=>{"use strict";gI.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l,s,u,f,v;if(t===!1)for(l=0;l{"use strict";yI.exports={attributes:by(),supplyDefaults:eI(),colorbar:tI(),calc:oI(),calcGeoJSON:S_().calcGeoJSON,plot:S_().plot,style:_y().style,styleOnSelect:_y().styleOnSelect,hoverPoints:hI(),eventData:pI(),selectPoints:mI(),moduleType:"trace",name:"choropleth",basePlotModule:T_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var xI=te((W1e,_I)=>{"use strict";_I.exports=bI()});var Wa=te((Z1e,MI)=>{"use strict";var wI=Object.getOwnPropertySymbols,Uoe=Object.prototype.hasOwnProperty,Yoe=Object.prototype.propertyIsEnumerable;function Goe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Voe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}MI.exports=Voe()?Object.assign:function(e,r){for(var t,n=Goe(e),a,i=1;i{var wy=Wa();function AI(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}wy(AI.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var i=t%10;n=(i===0?"":e[i]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function C_(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function xy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}wy(C_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Tt.local.differentCalendars||Tt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+xy(Math.abs(this.year()),4)+"-"+xy(this.month(),2)+"-"+xy(this.day(),2)}});function L_(){this.shortYearCutoff="+10"}wy(L_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new C_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+xy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ov-1+f.minMonth;)i++,o-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=t<0?-1:1;r=this._add(e,t*a[0]+i*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=a-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Tt=TI.exports=new AI;Tt.cdate=C_;Tt.baseCalendar=L_;Tt.calendars.gregorian=q_});var kI=te(()=>{var D_=Wa(),Da=Za();D_(Da.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Da.local=Da.regionalOptions[""];D_(Da.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});D_(Da.baseCalendar.prototype,{UNIX_EPOCH:Da.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Da.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Da.local.invalidFormat||Da.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,A){for(var k=1;x+k1},f=function(b,A,k,M){var D=""+A;if(u(b,M))for(;D.length1},C=function(W,O){var Z=_(W,O),H=[2,3,Z?4:2,Z?4:2,10,11,20]["oyYJ@!".indexOf(W)+1],ee=new RegExp("^-?\\d{1,"+H+"}"),ie=r.substring(D).match(ee);if(!ie)throw(Da.local.missingNumberAt||Da.regionalOptions[""].missingNumberAt).replace(/\{0\}/,D);return D+=ie[0].length,parseInt(ie[0],10)},x=this,b=function(){if(typeof l=="function"){_("m");var W=l.call(x,r.substring(D));return D+=W.length,W}return C("m")},A=function(W,O,Z,H){for(var ee=_(W,H)?Z:O,ie=0;ie-1){h=1,d=m;for(var I=this.daysInMonth(v,h);d>I;I=this.daysInMonth(v,h))h++,d-=I}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var i=this,o=function(l){try{return i.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var SI=te(()=>{var Af=Za(),Woe=Wa(),E_=Af.instance();function My(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}My.prototype=new Af.baseCalendar;Woe(My.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Xoe);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(joe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Joe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var i=this.toMonthIndex(e,t,n);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw Af.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return n?!t&&r<=n?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw Af.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,Af.local.invalidyear),a=kf[n-kf[0]],i=a>>9&4095,o=a>>5&15,l=a&31,s;s=E_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Tf[e-Tf[0]],n=t>>13,a=n?12:11;if(r>a)throw Af.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,i,t,Af.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=Koe(e,i,t,a);return E_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=E_.fromJD(e),t=$oe(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(Zoe),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],i=this.toMonthIndex(t,n,a),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var n=e.year(),a=e.month(),i=this.isIntercalaryMonth(n,a),o=this.toChineseMonth(n,a),l=Object.getPrototypeOf(My.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),v=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);v!==u&&l.month(v)}return l}});var Zoe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Xoe=/^\d?\d[iI]?/m,joe=/^闰?十?[一二三四五六七八九]?月/m,Joe=/^闰?十?[一二三四五六七八九]?/m;Af.calendars.chinese=My;var Tf=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],kf=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function $oe(e,r,t,n){var a,i;if(typeof e=="object")a=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},i=n||{}}var u=kf[a.year-kf[0]],f=a.year<<9|a.month<<5|a.day;i.year=f>=u?a.year:a.year-1,u=kf[i.year-kf[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,p=new Date(v,h-1,d),y=new Date(a.year,a.month-1,a.day);m=Math.round((y-p)/(24*3600*1e3));var _=Tf[i.year-Tf[0]],C;for(C=0;C<13;C++){var x=_&1<<12-C?30:29;if(m>13;return!b||C=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,i=n):(f=!!n,i=a||{}),o={year:e,month:r,day:t,isIntercalary:f}}var v;v=o.day-1;var h=Tf[o.year-Tf[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p>9&4095,x=_>>5&15,b=_&31,A=new Date(C,x-1,b+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var CI=te(()=>{var Kc=Za(),Qoe=Wa();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new Kc.baseCalendar;Qoe(P_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Kc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Kc.local.invalidYear||Kc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Kc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Kc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Kc.calendars.coptic=P_});var LI=te(()=>{var mu=Za(),ele=Wa();function R_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R_.prototype=new mu.baseCalendar;ele(R_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,mu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mu.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,mu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,mu.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,mu.local.invalidDate);return{century:rle[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,mu.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var rle={20:"Fruitbat",21:"Anchovy"};mu.calendars.discworld=R_});var qI=te(()=>{var Qc=Za(),tle=Wa();function z_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z_.prototype=new Qc.baseCalendar;tle(z_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Qc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Qc.local.invalidYear||Qc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Qc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Qc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Qc.calendars.ethiopian=z_});var DI=te(()=>{var Sf=Za(),nle=Wa();function N_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N_.prototype=new Sf.baseCalendar;nle(N_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Sf.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Ay(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sf.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Sf.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Sf.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Ay(this.daysInYear(e),10)===5?30:r===9&&Ay(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Sf.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,Sf.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,i=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function Ay(e,r){return e-r*Math.floor(e/r)}Sf.calendars.hebrew=N_});var EI=te(()=>{var Qh=Za(),ale=Wa();function F_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F_.prototype=new Qh.baseCalendar;ale(F_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qh.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Qh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Qh.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});Qh.calendars.islamic=F_});var PI=te(()=>{var ed=Za(),ile=Wa();function I_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I_.prototype=new ed.baseCalendar;ile(I_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ed.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ed.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,ed.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),i=Math.floor((t-a)/30.6001),o=i-Math.floor(i<14?1:13),l=n-Math.floor(o>2?4716:4715),s=t-a-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});ed.calendars.julian=I_});var zI=te(()=>{var Uo=Za(),ole=Wa();function B_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B_.prototype=new Uo.baseCalendar;ole(B_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Uo.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Uo.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Uo.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Uo.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Uo.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Uo.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Uo.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Uo.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Uo.local.invalidDate),a=n.toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=H_(e+8+17*20,365);return[Math.floor(r/20)+1,H_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[RI(e+20,20),RI(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Uo.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function H_(e,r){return e-r*Math.floor(e/r)}function RI(e,r){return H_(e-1,r)+1}Uo.calendars.mayan=B_});var FI=te(()=>{var e0=Za(),lle=Wa();function O_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O_.prototype=new e0.baseCalendar;var NI=e0.instance("gregorian");lle(O_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,e0.local.invalidYear||e0.regionalOptions[""].invalidYear);return NI.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,e0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,e0.local.invalidMonth),a=n.year();a<0&&a++;for(var i=n.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});e0.calendars.nanakshahi=O_});var II=te(()=>{var r0=Za(),sle=Wa();function U_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U_.prototype=new r0.baseCalendar;sle(U_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,r0.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,r0.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,r0.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=r0.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=a.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=r0.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),i=n+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Yv=Za(),ule=Wa();function ky(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Ty(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),i=n-Math.floor(n),o=a-Math.floor(a);return i>o}ky.prototype=new Yv.baseCalendar;ule(ky.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yv.local.invalidYear);return Ty(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Yv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Yv.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var i=1;i0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Ty(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),i=e-this.toJD(t,a,1)+1;return this.newDate(t,a,i)}});Yv.calendars.persian=ky;Yv.calendars.jalali=ky});var BI=te(()=>{var t0=Za(),fle=Wa(),Sy=t0.instance();function Y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y_.prototype=new t0.baseCalendar;fle(Y_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,t0.local.invalidYear),t=this._t2gYear(r.year());return Sy.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,t0.local.invalidYear),a=this._t2gYear(n.year());return Sy.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,t0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,t0.local.invalidDate),a=this._t2gYear(n.year());return Sy.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Sy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});t0.calendars.taiwan=Y_});var OI=te(()=>{var n0=Za(),cle=Wa(),Cy=n0.instance();function G_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G_.prototype=new n0.baseCalendar;cle(G_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,n0.local.invalidYear),t=this._t2gYear(r.year());return Cy.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,n0.local.invalidYear),a=this._t2gYear(n.year());return Cy.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,n0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,n0.local.invalidDate),a=this._t2gYear(n.year());return Cy.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Cy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});n0.calendars.thai=G_});var UI=te(()=>{var a0=Za(),vle=Wa();function V_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V_.prototype=new a0.baseCalendar;vle(V_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,a0.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,a0.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,i=0;in)return Cf[a]-Cf[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,a0.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,i=n.day()+Cf[a-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,i=Math.floor((a-1)/12),o=i+1,l=a-12*i,s=r-Cf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var n=a0.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=a0.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});a0.calendars.ummalqura=V_;var Cf=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var GI=te((The,YI)=>{"use strict";YI.exports=Za();kI();SI();CI();LI();qI();DI();EI();PI();zI();FI();II();HI();BI();OI();UI()});var $I=te((khe,JI)=>{"use strict";var WI=GI(),rd=gr(),ZI=Pn(),hle=ZI.EPOCHJD,dle=ZI.ONEDAY,X_={valType:"enumerated",values:rd.sortObjectKeys(WI.calendars),editType:"calc",dflt:"gregorian"},XI=function(e,r,t,n){var a={};return a[t]=X_,rd.coerce(e,r,a,t,n)},ple=function(e,r,t,n){for(var a=0;a{"use strict";KI.exports=$I()});var xle=te((Che,rH)=>{var eH=dN();eH.register([jF(),xI(),QI()]);rH.exports=eH});return xle();})(); +"use strict";var Plotly=(()=>{var sH=Object.defineProperty,uH=Object.defineProperties;var fH=Object.getOwnPropertyDescriptors;var e6=Object.getOwnPropertySymbols;var cH=Object.prototype.hasOwnProperty,vH=Object.prototype.propertyIsEnumerable;var r6=(e,r,t)=>r in e?sH(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,tc=(e,r)=>{for(var t in r||(r={}))cH.call(r,t)&&r6(e,t,r[t]);if(e6)for(var t of e6(r))vH.call(r,t)&&r6(e,t,r[t]);return e},dd=(e,r)=>uH(e,fH(r));var te=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var s1=te(t6=>{"use strict";t6.version="3.7.0"});var a6=te((n6,pd)=>{(function(r,t,n){t[r]=t[r]||n(),typeof pd!="undefined"&&pd.exports&&(pd.exports=t[r])})("Promise",typeof window!="undefined"?window:n6,function(){"use strict";var r,t,n,a=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,b,A){return Object.defineProperty(C,x,{value:b,writable:!0,configurable:A!==!1})}}catch(_){r=function(x,b,A){return x[b]=A,x}}n=(function(){var C,x,b;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,D){b=new A(M,D),x?x.next=b:C=b,x=b,b=void 0},drain:function(){var M=C;for(C=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(_,C){n.add(_,C),t||(t=i(n.drain))}function l(_){var C,x=typeof _;return _!=null&&(x=="object"||x=="function")&&(C=_.then),typeof C=="function"?C:!1}function s(){for(var _=0;_0&&o(s,x))}catch(b){v.call(new d(x),b)}}}function v(_){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=_,C.state=2,C.chain.length>0&&o(s,C))}function h(_,C,x,b){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},n=self.document;function a(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(c){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=v;function v(c,g){return cg?1:c>=g?0:NaN}e.descending=function(c,g){return gc?1:g>=c?0:NaN},e.min=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wE&&(q=E)}else{for(;++w=E){q=E;break}for(;++wE&&(q=E)}return q},e.max=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wq&&(q=E)}else{for(;++w=E){q=E;break}for(;++wq&&(q=E)}return q},e.extent=function(c,g){var w=-1,S=c.length,q,E,V;if(arguments.length===1){for(;++w=E){q=V=E;break}for(;++wE&&(q=E),V=E){q=V=E;break}for(;++wE&&(q=E),V1)return V/(j-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)<0?S=E+1:q=E}return S},right:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)>0?q=E:S=E+1}return S}}}var p=m(v);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(c){return m(c.length===1?function(g,w){return v(c(g),w)}:c)},e.shuffle=function(c,g,w){(S=arguments.length)<3&&(w=c.length,S<2&&(g=0));for(var S=w-g,q,E;S;)E=Math.random()*S--|0,q=c[S+g],c[S+g]=c[E+g],c[E+g]=q;return c},e.permute=function(c,g){for(var w=g.length,S=new Array(w);w--;)S[w]=c[g[w]];return S},e.pairs=function(c){for(var g=0,w=c.length-1,S,q=c[0],E=new Array(w<0?0:w);g=0;)for(V=c[g],w=V.length;--w>=0;)E[--q]=V[w];return E};var _=Math.abs;e.range=function(c,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=c,c=0)),(g-c)/w===1/0)throw new Error("infinite range");var S=[],q=C(_(w)),E=-1,V;if(c*=q,g*=q,w*=q,w<0)for(;(V=c+w*++E)>g;)S.push(V/q);else for(;(V=c+w*++E)=g.length)return q?q.call(c,j):S?j.sort(S):j;for(var ie=-1,me=j.length,ye=g[ae++],Ne,Ve,_e,Se=new b,De;++ie=g.length)return F;var ae=[],ie=w[j++];return F.forEach(function(me,ye){ae.push({key:me,values:V(ye,j)})}),ie?ae.sort(function(me,ye){return ie(me.key,ye.key)}):ae}return c.map=function(F,j){return E(j,F,0)},c.entries=function(F){return V(E(e.map,F,0),0)},c.key=function(F){return g.push(F),c},c.sortKeys=function(F){return w[g.length-1]=F,c},c.sortValues=function(F){return S=F,c},c.rollup=function(F){return q=F,c},c},e.set=function(c){var g=new Z;if(c)for(var w=0,S=c.length;w=0&&(S=c.slice(w+1),c=c.slice(0,w)),c)return arguments.length<2?this[c].on(S):this[c].on(S,g);if(arguments.length===2){if(g==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(S,null);return this}};function le(c){var g=[],w=new b;function S(){for(var q=g,E=-1,V=q.length,F;++E=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),be.hasOwnProperty(w)?{space:be[w],local:c}:c}},de.attr=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node();return c=e.ns.qualify(c),c.local?w.getAttributeNS(c.space,c.local):w.getAttribute(c)}for(g in c)this.each(qe(g,c[g]));return this}return this.each(qe(c,g))};function qe(c,g){c=e.ns.qualify(c);function w(){this.removeAttribute(c)}function S(){this.removeAttributeNS(c.space,c.local)}function q(){this.setAttribute(c,g)}function E(){this.setAttributeNS(c.space,c.local,g)}function V(){var j=g.apply(this,arguments);j==null?this.removeAttribute(c):this.setAttribute(c,j)}function F(){var j=g.apply(this,arguments);j==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,j)}return g==null?c.local?S:w:typeof g=="function"?c.local?F:V:c.local?E:q}function He(c){return c.trim().replace(/\s+/g," ")}de.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),S=(c=Qe(c)).length,q=-1;if(g=w.classList){for(;++q=0;)(E=w[S])&&(q&&q!==E.nextSibling&&q.parentNode.insertBefore(E,q),q=E);return this},de.sort=function(c){c=Ue.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=q+1);!(j=V[g])&&++g0&&(c=c.slice(0,q));var V=dr.get(c);V&&(c=V,E=mr);function F(){var ie=this[S];ie&&(this.removeEventListener(c,ie,ie.$),delete this[S])}function j(){var ie=E(g,t(arguments));F.call(this),this.addEventListener(c,this[S]=ie,ie.$=w),ie._=g}function ae(){var ie=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),me;for(var ye in this)if(me=ye.match(ie)){var Ne=this[ye];this.removeEventListener(me[1],Ne,Ne.$),delete this[ye]}}return q?g?j:F:g?K:ae}var dr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&dr.forEach(function(c){"on"+c in n&&dr.remove(c)});function Ar(c,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{c.apply(this,g)}finally{e.event=S}}}function mr(c,g){var w=Ar(c,g);return function(S){var q=this,E=S.relatedTarget;(!E||E!==q&&!(E.compareDocumentPosition(q)&8))&&w.call(q,S)}}var br,Ir=0;function Cr(c){var g=".dragsuppress-"+ ++Ir,w="click"+g,S=e.select(i(c)).on("touchmove"+g,ke).on("dragstart"+g,ke).on("selectstart"+g,ke);if(br==null&&(br="onselectstart"in c?!1:ne(c.style,"userSelect")),br){var q=a(c).style,E=q[br];q[br]="none"}return function(V){if(S.on(g,null),br&&(q[br]=E),V){var F=function(){S.on(w,null)};S.on(w,function(){ke(),F()},!0),setTimeout(F,0)}}}e.mouse=function(c){return lr(c,ze())};var Er=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function lr(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var S=w.createSVGPoint();if(Er<0){var q=i(c);if(q.scrollX||q.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var E=w[0][0].getScreenCTM();Er=!(E.f||E.e),w.remove()}}return Er?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(c.getScreenCTM().inverse()),[S.x,S.y]}var V=c.getBoundingClientRect();return[g.clientX-V.left-c.clientLeft,g.clientY-V.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=ze().changedTouches),g){for(var S=0,q=g.length,E;S0?1:c<0?-1:0}function $t(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function vn(c){return c>1?0:c<-1?nr:Math.acos(c)}function hn(c){return c>1?zr:c<-1?-zr:Math.asin(c)}function qn(c){return((c=Math.exp(c))-1/c)/2}function Ot(c){return((c=Math.exp(c))+1/c)/2}function en(c){return((c=Math.exp(2*c))-1)/(c+1)}function Kt(c){return(c=Math.sin(c/2))*c}var rn=Math.SQRT2,la=2,xn=4;e.interpolateZoom=function(c,g){var w=c[0],S=c[1],q=c[2],E=g[0],V=g[1],F=g[2],j=E-w,ae=V-S,ie=j*j+ae*ae,me,ye;if(ie0&&(Nr=Nr.transition().duration(V)),Nr.call(We.event)}function $r(){Se&&Se.domain(_e.range().map(function(Nr){return(Nr-c.x)/c.k}).map(_e.invert)),Ge&&Ge.domain(De.range().map(function(Nr){return(Nr-c.y)/c.k}).map(De.invert))}function Kr(Nr){F++||Nr({type:"zoomstart"})}function _t(Nr){$r(),Nr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function et(Nr){--F||(Nr({type:"zoomend"}),w=null)}function ht(){var Nr=this,xt=Ve.of(Nr,arguments),wt=0,Jt=e.select(i(Nr)).on(ae,Ra).on(ie,$a),Hn=Re(e.mouse(Nr)),ua=Cr(Nr);vt.call(Nr),Kr(xt);function Ra(){wt=1,Xr(e.mouse(Nr),Hn),_t(xt)}function $a(){Jt.on(ae,null).on(ie,null),ua(wt),et(xt)}}function jt(){var Nr=this,xt=Ve.of(Nr,arguments),wt={},Jt=0,Hn,ua=".zoom-"+e.event.changedTouches[0].identifier,Ra="touchmove"+ua,$a="touchend"+ua,hi=[],Ka=e.select(Nr),Ci=Cr(Nr);Li(),Kr(xt),Ka.on(j,null).on(ye,Li);function Ba(){var vl=e.touches(Nr);return Hn=c.k,vl.forEach(function(za){za.identifier in wt&&(wt[za.identifier]=Re(za))}),vl}function Li(){var vl=e.event.target;e.select(vl).on(Ra,ec).on($a,lH),hi.push(vl);for(var za=e.event.changedTouches,yo=0,Ql=za.length;yo1){var rc=bo[0],Fu=bo[1],hd=rc[0]-Fu[0],Q_=rc[1]-Fu[1];Jt=hd*hd+Q_*Q_}}function ec(){var vl=e.touches(Nr),za,yo,Ql,bo;vt.call(Nr);for(var q0=0,rc=vl.length;q01?1:g,w=w<0?0:w>1?1:w,q=w<=.5?w*(1+g):w+g-w*g,S=2*w-q;function E(F){return F>360?F-=360:F<0&&(F+=360),F<60?S+(q-S)*F/60:F<180?q:F<240?S+(q-S)*(240-F)/60:S}function V(F){return Math.round(E(F)*255)}return new Yn(V(c+120),V(c),V(c-120))}e.hcl=Ut;function Ut(c,g,w){return this instanceof Ut?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof Ut?new Ut(c.h,c.c,c.l):c instanceof wn?Nl(c.l,c.a,c.b):Nl((c=Br((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new Ut(c,g,w)}var ga=Ut.prototype=new Ct;ga.brighter=function(c){return new Ut(this.h,this.c,Math.min(100,this.l+Qt*(arguments.length?c:1)))},ga.darker=function(c){return new Ut(this.h,this.c,Math.max(0,this.l-Qt*(arguments.length?c:1)))},ga.rgb=function(){return ma(this.h,this.c,this.l).rgb()};function ma(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new wn(w,Math.cos(c*=st)*g,Math.sin(c)*g)}e.lab=wn;function wn(c,g,w){return this instanceof wn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof wn?new wn(c.l,c.a,c.b):c instanceof Ut?ma(c.h,c.c,c.l):Br((c=Yn(c)).r,c.g,c.b):new wn(c,g,w)}var Qt=18,Tn=.95047,Mn=1,oo=1.08883,yi=wn.prototype=new Ct;yi.brighter=function(c){return new wn(Math.min(100,this.l+Qt*(arguments.length?c:1)),this.a,this.b)},yi.darker=function(c){return new wn(Math.max(0,this.l-Qt*(arguments.length?c:1)),this.a,this.b)},yi.rgb=function(){return As(this.l,this.a,this.b)};function As(c,g,w){var S=(c+16)/116,q=S+g/500,E=S-w/200;return q=Yo(q)*Tn,S=Yo(S)*Mn,E=Yo(E)*oo,new Yn(Go(3.2404542*q-1.5371385*S-.4985314*E),Go(-.969266*q+1.8760108*S+.041556*E),Go(.0556434*q-.2040259*S+1.0572252*E))}function Nl(c,g,w){return c>0?new Ut(Math.atan2(w,g)*bt,Math.sqrt(g*g+w*w),c):new Ut(NaN,NaN,c)}function Yo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function Ts(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Go(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Yn;function Yn(c,g,w){return this instanceof Yn?(this.r=~~c,this.g=~~g,void(this.b=~~w)):arguments.length<2?c instanceof Yn?new Yn(c.r,c.g,c.b):Lt(""+c,Yn,Zn):new Yn(c,g,w)}function bi(c){return new Yn(c>>16,c>>8&255,c&255)}function Vo(c){return bi(c)+""}var _i=Yn.prototype=new Ct;_i.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var g=this.r,w=this.g,S=this.b,q=30;return!g&&!w&&!S?new Yn(q,q,q):(g&&g>4,S=S>>4|S,q=j&240,q=q>>4|q,E=j&15,E=E<<4|E):c.length===7&&(S=(j&16711680)>>16,q=(j&65280)>>8,E=j&255)),g(S,q,E))}function Ht(c,g,w){var S=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),E=q-S,V,F,j=(q+S)/2;return E?(F=j<.5?E/(q+S):E/(2-q-S),c==q?V=(g-w)/E+(g0&&j<1?0:V),new tn(V,F,j)}function Br(c,g,w){c=Xn(c),g=Xn(g),w=Xn(w);var S=Ts((.4124564*c+.3575761*g+.1804375*w)/Tn),q=Ts((.2126729*c+.7151522*g+.072175*w)/Mn),E=Ts((.0193339*c+.119192*g+.9503041*w)/oo);return wn(116*q-16,500*(S-q),200*(q-E))}function Xn(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function ln(c){var g=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(g*2.55):g}var Pn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Pn.forEach(function(c,g){Pn.set(c,bi(g))});function At(c){return typeof c=="function"?c:function(){return c}}e.functor=At,e.xhr=Xa(H);function Xa(c){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Wo(g,w,c,S)}}function Wo(c,g,w,S){var q={},E=e.dispatch("beforesend","progress","load","error"),V={},F=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(c)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=ae:F.onreadystatechange=function(){F.readyState>3&&ae()};function ae(){var ie=F.status,me;if(!ie&&yu(F)||ie>=200&&ie<300||ie===304){try{me=w.call(q,F)}catch(ye){E.error.call(q,ye);return}E.load.call(q,me)}else E.error.call(q,F)}return F.onprogress=function(ie){var me=e.event;e.event=ie;try{E.progress.call(q,F)}finally{e.event=me}},q.header=function(ie,me){return ie=(ie+"").toLowerCase(),arguments.length<2?V[ie]:(me==null?delete V[ie]:V[ie]=me+"",q)},q.mimeType=function(ie){return arguments.length?(g=ie==null?null:ie+"",q):g},q.responseType=function(ie){return arguments.length?(j=ie,q):j},q.response=function(ie){return w=ie,q},["get","post"].forEach(function(ie){q[ie]=function(){return q.send.apply(q,[ie].concat(t(arguments)))}}),q.send=function(ie,me,ye){if(arguments.length===2&&typeof me=="function"&&(ye=me,me=null),F.open(ie,c,!0),g!=null&&!("accept"in V)&&(V.accept=g+",*/*"),F.setRequestHeader)for(var Ne in V)F.setRequestHeader(Ne,V[Ne]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),j!=null&&(F.responseType=j),ye!=null&&q.on("error",ye).on("load",function(Ve){ye(null,Ve)}),E.beforesend.call(q,F),F.send(me==null?null:me),q},q.abort=function(){return F.abort(),q},e.rebind(q,E,"on"),S==null?q:q.get(Lf(S))}function Lf(c){return c.length===1?function(g,w){c(g==null?w:null)}:c}function yu(c){var g=c.responseType;return g&&g!=="text"?c.response:c.responseText}e.dsv=function(c,g){var w=new RegExp('["'+c+` +]`),S=c.charCodeAt(0);function q(ae,ie,me){arguments.length<3&&(me=ie,ie=null);var ye=Wo(ae,g,ie==null?E:V(ie),me);return ye.row=function(Ne){return arguments.length?ye.response((ie=Ne)==null?E:V(Ne)):ie},ye}function E(ae){return q.parse(ae.responseText)}function V(ae){return function(ie){return q.parse(ie.responseText,ae)}}q.parse=function(ae,ie){var me;return q.parseRows(ae,function(ye,Ne){if(me)return me(ye,Ne-1);var Ve=function(_e){for(var Se={},De=ye.length,Ge=0;Ge=Ve)return ye;if(Ge)return Ge=!1,me;var wr=_e;if(ae.charCodeAt(wr)===34){for(var Or=wr;Or++24?(isFinite(g)&&(clearTimeout(bu),bu=setTimeout(xi,g)),Xo=0):(Xo=1,Fl(xi))}e.timer.flush=function(){so(),jo()};function so(){for(var c=Date.now(),g=lo;g;)c>=g.t&&g.c(c-g.t)&&(g.c=null),g=g.n;return c}function jo(){for(var c,g=lo,w=1/0;g;)g.c?(g.t=0;--F)_e.push(q[ae[me[F]][2]]);for(F=+Ne;F1&&$t(c[w[S-2]],c[w[S-1]],c[q])<=0;)--S;w[S++]=q}return w.slice(0,S)}function l0(c,g){return c[0]-g[0]||c[1]-g[1]}e.geom.polygon=function(c){return Ce(c,Ss),c};var Ss=e.geom.polygon.prototype=[];Ss.area=function(){for(var c=-1,g=this.length,w,S=this[g-1],q=0;++cAe)F=F.L;else if(V=g-Xv(F,w),V>Ae){if(!F.R){S=F;break}F=F.R}else{E>-Ae?(S=F.P,q=F):V>-Ae?(S=F,q=F.N):S=q=F;break}var j=qs(c);if(Oi.insert(S,j),!(!S&&!q)){if(S===q){vo(S),q=qs(S.site),Oi.insert(j,q),j.edge=q.edge=Ul(S.site,j.site),co(S),co(q);return}if(!q){j.edge=Ul(S.site,j.site);return}vo(S),vo(q);var ae=S.site,ie=ae.x,me=ae.y,ye=c.x-ie,Ne=c.y-me,Ve=q.site,_e=Ve.x-ie,Se=Ve.y-me,De=2*(ye*Se-Ne*_e),Ge=ye*ye+Ne*Ne,We=_e*_e+Se*Se,Re={x:(Se*Ge-Ne*We)/De+ie,y:(ye*We-_e*Ge)/De+me};Gi(q.edge,ae,Ve,Re),j.edge=Ul(ae,c,null,Re),q.edge=Ul(c,Ve,null,Re),co(S),co(q)}}function Es(c,g){var w=c.site,S=w.x,q=w.y,E=q-g;if(!E)return S;var V=c.P;if(!V)return-1/0;w=V.site;var F=w.x,j=w.y,ae=j-g;if(!ae)return F;var ie=F-S,me=1/E-1/ae,ye=ie/ae;return me?(-ye+Math.sqrt(ye*ye-2*me*(ie*ie/(-2*ae)-j+ae/2+q-E/2)))/me+S:(S+F)/2}function Xv(c,g){var w=c.N;if(w)return Es(w,g);var S=c.site;return S.y===g?S.x:1/0}function $o(c){this.site=c,this.edges=[]}$o.prototype.prepare=function(){for(var c=this.edges,g=c.length,w;g--;)w=c[g].edge,(!w.b||!w.a)&&c.splice(g,1);return c.sort(Ol),c.length};function Pf(c){for(var g=c[0][0],w=c[1][0],S=c[0][1],q=c[1][1],E,V,F,j,ae=fo,ie=ae.length,me,ye,Ne,Ve,_e,Se;ie--;)if(me=ae[ie],!(!me||!me.prepare()))for(Ne=me.edges,Ve=Ne.length,ye=0;yeAe||_(j-V)>Ae)&&(Ne.splice(ye,0,new Ko(Jv(me.site,Se,_(F-g)Ae?{x:g,y:_(E-g)Ae?{x:_(V-q)Ae?{x:w,y:_(E-w)Ae?{x:_(V-S)=-Ke)){var ye=j*j+ae*ae,Ne=ie*ie+Se*Se,Ve=(Se*ye-ae*Ne)/me,_e=(j*Ne-ie*ye)/me,Se=_e+F,De=Ef.pop()||new f0;De.arc=c,De.site=q,De.x=Ve+V,De.y=Se+Math.sqrt(Ve*Ve+_e*_e),De.cy=Se,c.circle=De;for(var Ge=null,We=Bl._;We;)if(De.y0)){if(_e/=Ne,Ne<0){if(_e0){if(_e>ye)return;_e>me&&(me=_e)}if(_e=w-F,!(!Ne&&_e<0)){if(_e/=Ne,Ne<0){if(_e>ye)return;_e>me&&(me=_e)}else if(Ne>0){if(_e0)){if(_e/=Ve,Ve<0){if(_e0){if(_e>ye)return;_e>me&&(me=_e)}if(_e=S-j,!(!Ve&&_e<0)){if(_e/=Ve,Ve<0){if(_e>ye)return;_e>me&&(me=_e)}else if(Ve>0){if(_e0&&(q.a={x:F+me*Ne,y:j+me*Ve}),ye<1&&(q.b={x:F+ye*Ne,y:j+ye*Ve}),q}}}}}}function wi(c){for(var g=uo,w=Rf(c[0][0],c[0][1],c[1][0],c[1][1]),S=g.length,q;S--;)q=g[S],(!jv(q,c)||!w(q)||_(q.a.x-q.b.x)=E)return;if(ie>ye){if(!S)S={x:Ve,y:V};else if(S.y>=F)return;w={x:Ve,y:F}}else{if(!S)S={x:Ve,y:F};else if(S.y1)if(ie>ye){if(!S)S={x:(V-De)/Se,y:V};else if(S.y>=F)return;w={x:(F-De)/Se,y:F}}else{if(!S)S={x:(F-De)/Se,y:F};else if(S.y=E)return;w={x:E,y:Se*E+De}}else{if(!S)S={x:E,y:Se*E+De};else if(S.x=ie&&De.x<=ye&&De.y>=me&&De.y<=Ne?[[ie,Ne],[ye,Ne],[ye,me],[ie,me]]:[];Ge.point=j[_e]}),ae}function F(j){return j.map(function(ae,ie){return{x:Math.round(S(ae,ie)/Ae)*Ae,y:Math.round(q(ae,ie)/Ae)*Ae,i:ie}})}return V.links=function(j){return Rs(F(j)).edges.filter(function(ae){return ae.l&&ae.r}).map(function(ae){return{source:j[ae.l.i],target:j[ae.r.i]}})},V.triangles=function(j){var ae=[];return Rs(F(j)).cells.forEach(function(ie,me){for(var ye=ie.site,Ne=ie.edges.sort(Ol),Ve=-1,_e=Ne.length,Se,De,Ge=Ne[_e-1].edge,We=Ge.l===ye?Ge.r:Ge.l;++Ve<_e;)Se=Ge,De=We,Ge=Ne[Ve].edge,We=Ge.l===ye?Ge.r:Ge.l,meWe&&(We=ie.x),ie.y>Re&&(Re=ie.y),Ne.push(ie.x),Ve.push(ie.y);else for(_e=0;_eWe&&(We=wr),Or>Re&&(Re=Or),Ne.push(wr),Ve.push(Or)}var Xr=We-De,Wr=Re-Ge;Xr>Wr?Re=Ge+Xr:We=De+Wr;function $r(et,ht,jt,Jn,un,Nr,xt,wt){if(!(isNaN(jt)||isNaN(Jn)))if(et.leaf){var Jt=et.x,Hn=et.y;if(Jt!=null)if(_(Jt-jt)+_(Hn-Jn)<.01)Kr(et,ht,jt,Jn,un,Nr,xt,wt);else{var ua=et.point;et.x=et.y=et.point=null,Kr(et,ua,Jt,Hn,un,Nr,xt,wt),Kr(et,ht,jt,Jn,un,Nr,xt,wt)}else et.x=jt,et.y=Jn,et.point=ht}else Kr(et,ht,jt,Jn,un,Nr,xt,wt)}function Kr(et,ht,jt,Jn,un,Nr,xt,wt){var Jt=(un+xt)*.5,Hn=(Nr+wt)*.5,ua=jt>=Jt,Ra=Jn>=Hn,$a=Ra<<1|ua;et.leaf=!1,et=et.nodes[$a]||(et.nodes[$a]=Mu()),ua?un=Jt:xt=Jt,Ra?Nr=Hn:wt=Hn,$r(et,ht,jt,Jn,un,Nr,xt,wt)}var _t=Mu();if(_t.add=function(et){$r(_t,et,+me(et,++_e),+ye(et,_e),De,Ge,We,Re)},_t.visit=function(et){ui(et,_t,De,Ge,We,Re)},_t.find=function(et){return Au(_t,et[0],et[1],De,Ge,We,Re)},_e=-1,g==null){for(;++_eE||ye>V||Ne=wr,Wr=w>=Or,$r=Wr<<1|Xr,Kr=$r+4;$rw&&(E=g.slice(w,E),F[V]?F[V]+=E:F[++V]=E),(S=S[0])===(q=q[0])?F[V]?F[V]+=q:F[++V]=q:(F[++V]=null,j.push({i:V,x:na(S,q)})),w=Ns.lastIndex;return w=0&&!(S=e.interpolators[w](c,g)););return S}e.interpolators=[function(c,g){var w=typeof g;return(w==="string"?Pn.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Tu:Sa:g instanceof Ct?Tu:Array.isArray(g)?Vl:w==="object"&&isNaN(g)?Ia:na)(c,g)}],e.interpolateArray=Vl;function Vl(c,g){var w=[],S=[],q=c.length,E=g.length,V=Math.min(c.length,g.length),F;for(F=0;F=0?c.slice(0,g):c,S=g>=0?c.slice(g+1):"in";return w=c0.get(w)||zf,S=$v.get(S)||H,Kv(S(w.apply(null,r.call(arguments,1))))};function Kv(c){return function(g){return g<=0?0:g>=1?1:c(g)}}function Nf(c){return function(g){return 1-c(1-g)}}function Ff(c){return function(g){return .5*(g<.5?c(2*g):2-c(2-2*g))}}function If(c){return c*c}function Hf(c){return c*c*c}function v0(c){if(c<=0)return 0;if(c>=1)return 1;var g=c*c,w=g*c;return 4*(c<.5?w:3*(c-g)+w-.75)}function h0(c){return function(g){return Math.pow(g,c)}}function Fs(c){return 1-Math.cos(c*zr)}function Is(c){return Math.pow(2,10*(c-1))}function Mi(c){return 1-Math.sqrt(1-c*c)}function ku(c,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/Sr*Math.asin(1/c):(c=1,w=g/4),function(S){return 1+c*Math.pow(2,-10*S)*Math.sin((S-w)*Sr/g)}}function Hs(c){return c||(c=1.70158),function(g){return g*g*((c+1)*g-c)}}function Su(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=d0;function d0(c,g){c=e.hcl(c),g=e.hcl(g);var w=c.h,S=c.c,q=c.l,E=g.h-w,V=g.c-S,F=g.l-q;return isNaN(V)&&(V=0,S=isNaN(S)?g.c:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return ma(w+E*j,S+V*j,q+F*j)+""}}e.interpolateHsl=Bf;function Bf(c,g){c=e.hsl(c),g=e.hsl(g);var w=c.h,S=c.s,q=c.l,E=g.h-w,V=g.s-S,F=g.l-q;return isNaN(V)&&(V=0,S=isNaN(S)?g.s:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return Zn(w+E*j,S+V*j,q+F*j)+""}}e.interpolateLab=Qv;function Qv(c,g){c=e.lab(c),g=e.lab(g);var w=c.l,S=c.a,q=c.b,E=g.l-w,V=g.a-S,F=g.b-q;return function(j){return As(w+E*j,S+V*j,q+F*j)+""}}e.interpolateRound=po;function po(c,g){return g-=c,function(w){return Math.round(c+g*w)}}e.transform=function(c){var g=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new Cu(S?S.matrix:Of)})(c)};function Cu(c){var g=[c.a,c.b],w=[c.c,c.d],S=Bs(g),q=Wl(g,w),E=Bs(Os(w,g,-q))||0;g[0]*w[1]180?g+=360:g-c>180&&(c+=360),S.push({i:w.push(go(w)+"rotate(",null,")")-2,x:na(c,g)})):g&&w.push(go(w)+"rotate("+g+")")}function g0(c,g,w,S){c!==g?S.push({i:w.push(go(w)+"skewX(",null,")")-2,x:na(c,g)}):g&&w.push(go(w)+"skewX("+g+")")}function Yf(c,g,w,S){if(c[0]!==g[0]||c[1]!==g[1]){var q=w.push(go(w)+"scale(",null,",",null,")");S.push({i:q-4,x:na(c[0],g[0])},{i:q-2,x:na(c[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(go(w)+"scale("+g+")")}function Lu(c,g){var w=[],S=[];return c=e.transform(c),g=e.transform(g),p0(c.translate,g.translate,w,S),Uf(c.rotate,g.rotate,w,S),g0(c.skew,g.skew,w,S),Yf(c.scale,g.scale,w,S),c=g=null,function(q){for(var E=-1,V=S.length,F;++E0?E=Re:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:E=0})):Re>0&&(g.start({type:"start",alpha:E=Re}),w=Il(c.tick)),c):E},c.start=function(){var Re,wr=Ne.length,Or=Ve.length,Xr=S[0],Wr=S[1],$r,Kr;for(Re=0;Re=0;)E.push(ie=ae[j]),ie.parent=F,ie.depth=F.depth+1;w&&(F.value=0),F.children=ae}else w&&(F.value=+w.call(S,F,F.depth)||0),delete F.children;return Ha(q,function(me){var ye,Ne;c&&(ye=me.children)&&ye.sort(c),w&&(Ne=me.parent)&&(Ne.value+=me.value)}),V}return S.sort=function(q){return arguments.length?(c=q,S):c},S.children=function(q){return arguments.length?(g=q,S):g},S.value=function(q){return arguments.length?(w=q,S):w},S.revalue=function(q){return w&&(Ti(q,function(E){E.children&&(E.value=0)}),Ha(q,function(E){var V;E.children||(E.value=+w.call(S,E,E.depth)||0),(V=E.parent)&&(V.value+=E.value)})),q},S};function Wi(c,g){return e.rebind(c,g,"sort","children","value"),c.nodes=c,c.links=ja,c}function Ti(c,g){for(var w=[c];(c=w.pop())!=null;)if(g(c),(q=c.children)&&(S=q.length))for(var S,q;--S>=0;)w.push(q[S])}function Ha(c,g){for(var w=[c],S=[];(c=w.pop())!=null;)if(S.push(c),(V=c.children)&&(E=V.length))for(var q=-1,E,V;++qq&&(q=F),S.push(F)}for(V=0;VS&&(w=g,S=q);return w}function Vs(c){return c.reduce(al,0)}function al(c,g){return c+g[1]}e.layout.histogram=function(){var c=!0,g=Number,w=jl,S=Ws;function q(E,ye){for(var F=[],j=E.map(g,this),ae=w.call(this,j,ye),ie=S.call(this,ae,j,ye),me,ye=-1,Ne=j.length,Ve=ie.length-1,_e=c?1:1/Ne,Se;++ye0)for(ye=-1;++ye=ae[0]&&Se<=ae[1]&&(me=F[e.bisect(ie,Se,1,Ve)-1],me.y+=_e,me.push(E[ye]));return F}return q.value=function(E){return arguments.length?(g=E,q):g},q.range=function(E){return arguments.length?(w=At(E),q):w},q.bins=function(E){return arguments.length?(S=typeof E=="number"?function(V){return il(V,E)}:At(E),q):S},q.frequency=function(E){return arguments.length?(c=!!E,q):c},q};function Ws(c,g){return il(c,Math.ceil(Math.log(g.length)/Math.LN2+1))}function il(c,g){for(var w=-1,S=+c[0],q=(c[1]-S)/g,E=[];++w<=g;)E[w]=q*w+S;return E}function jl(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(Eu),g=0,w=[1,1],S;function q(E,V){var F=c.call(this,E,V),j=F[0],ae=w[0],ie=w[1],me=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(j.x=j.y=0,Ha(j,function(Ne){Ne.r=+me(Ne.value)}),Ha(j,A0),g){var ye=g*(S?1:Math.max(2*j.r/ae,2*j.r/ie))/2;Ha(j,function(Ne){Ne.r+=ye}),Ha(j,A0),Ha(j,function(Ne){Ne.r-=ye})}return Ru(j,ae/2,ie/2,S?1:1/Math.max(2*j.r/ae,2*j.r/ie)),F}return q.size=function(E){return arguments.length?(w=E,q):w},q.radius=function(E){return arguments.length?(S=E==null||typeof E=="function"?E:+E,q):S},q.padding=function(E){return arguments.length?(g=+E,q):g},Wi(q,c)};function Eu(c,g){return c.value-g.value}function Zs(c,g){var w=c._pack_next;c._pack_next=g,g._pack_prev=c,g._pack_next=w,w._pack_prev=g}function M0(c,g){c._pack_next=g,g._pack_prev=c}function Pu(c,g){var w=g.x-c.x,S=g.y-c.y,q=c.r+g.r;return .999*q*q>w*w+S*S}function A0(c){if(!(g=c.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,q=1/0,E=-1/0,V,F,j,ae,ie,me,ye;function Ne(Re){w=Math.min(Re.x-Re.r,w),S=Math.max(Re.x+Re.r,S),q=Math.min(Re.y-Re.r,q),E=Math.max(Re.y+Re.r,E)}if(g.forEach(T0),V=g[0],V.x=-V.r,V.y=0,Ne(V),ye>1&&(F=g[1],F.x=F.r,F.y=0,Ne(F),ye>2))for(j=g[2],jn(V,F,j),Ne(j),Zs(V,j),V._pack_prev=j,Zs(j,F),F=V._pack_next,ae=3;aeSe.x&&(Se=wr),wr.depth>De.depth&&(De=wr)});var Ge=g(_e,Se)/2-_e.x,We=w[0]/(Se.x+g(Se,_e)/2+Ge),Re=w[1]/(De.depth||1);Ti(Ne,function(wr){wr.x=(wr.x+Ge)*We,wr.y=wr.depth*Re})}return ye}function E(ie){for(var me={A:null,children:[ie]},ye=[me],Ne;(Ne=ye.pop())!=null;)for(var Ve=Ne.children,_e,Se=0,De=Ve.length;Se0&&(Xs(B(_e,ie,ye),ie,wr),De+=wr,Ge+=wr),We+=_e.m,De+=Ne.m,Re+=Se.m,Ge+=Ve.m;_e&&!zu(Ve)&&(Ve.t=_e,Ve.m+=We-Ge),Ne&&!Jl(Se)&&(Se.t=Ne,Se.m+=De-Re,ye=ie)}return ye}function ae(ie){ie.x*=w[0],ie.y=ie.depth*w[1]}return q.separation=function(ie){return arguments.length?(g=ie,q):g},q.size=function(ie){return arguments.length?(S=(w=ie)==null?ae:null,q):S?null:w},q.nodeSize=function(ie){return arguments.length?(S=(w=ie)==null?null:ae,q):S?w:null},Wi(q,c)};function fi(c,g){return c.parent==g.parent?1:2}function Jl(c){var g=c.children;return g.length?g[0]:c.t}function zu(c){var g=c.children,w;return(w=g.length)?g[w-1]:c.t}function Xs(c,g,w){var S=w/(g.i-c.i);g.c-=S,g.s+=w,c.c+=S,g.z+=w,g.m+=w}function Jf(c){for(var g=0,w=0,S=c.children,q=S.length,E;--q>=0;)E=S[q],E.z+=g,E.m+=g,g+=E.s+(w+=E.c)}function B(c,g,w){return c.a.parent===g.parent?c.a:w}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),g=fi,w=[1,1],S=!1;function q(E,V){var F=c.call(this,E,V),j=F[0],ae,ie=0;Ha(j,function(_e){var Se=_e.children;Se&&Se.length?(_e.x=ve(Se),_e.y=J(Se)):(_e.x=ae?ie+=g(_e,ae):0,_e.y=0,ae=_e)});var me=oe(j),ye=Me(j),Ne=me.x-g(me,ye)/2,Ve=ye.x+g(ye,me)/2;return Ha(j,S?function(_e){_e.x=(_e.x-j.x)*w[0],_e.y=(j.y-_e.y)*w[1]}:function(_e){_e.x=(_e.x-Ne)/(Ve-Ne)*w[0],_e.y=(1-(j.y?_e.y/j.y:1))*w[1]}),F}return q.separation=function(E){return arguments.length?(g=E,q):g},q.size=function(E){return arguments.length?(S=(w=E)==null,q):S?null:w},q.nodeSize=function(E){return arguments.length?(S=(w=E)!=null,q):S?w:null},Wi(q,c)};function J(c){return 1+e.max(c,function(g){return g.y})}function ve(c){return c.reduce(function(g,w){return g+w.x},0)/c.length}function oe(c){var g=c.children;return g&&g.length?oe(g[0]):c}function Me(c){var g=c.children,w;return g&&(w=g.length)?Me(g[w-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,q=Oe,E=!1,V,F="squarify",j=.5*(1+Math.sqrt(5));function ae(_e,Se){for(var De=-1,Ge=_e.length,We,Re;++De0;)Ge.push(Re=We[Wr-1]),Ge.area+=Re.area,F!=="squarify"||(Or=ye(Ge,Xr))<=wr?(We.pop(),wr=Or):(Ge.area-=Ge.pop().area,Ne(Ge,Xr,De,!1),Xr=Math.min(De.dx,De.dy),Ge.length=Ge.area=0,wr=1/0);Ge.length&&(Ne(Ge,Xr,De,!0),Ge.length=Ge.area=0),Se.forEach(ie)}}function me(_e){var Se=_e.children;if(Se&&Se.length){var De=q(_e),Ge=Se.slice(),We,Re=[];for(ae(Ge,De.dx*De.dy/_e.value),Re.area=0;We=Ge.pop();)Re.push(We),Re.area+=We.area,We.z!=null&&(Ne(Re,We.z?De.dx:De.dy,De,!Ge.length),Re.length=Re.area=0);Se.forEach(me)}}function ye(_e,Se){for(var De=_e.area,Ge,We=0,Re=1/0,wr=-1,Or=_e.length;++wrWe&&(We=Ge));return De*=De,Se*=Se,De?Math.max(Se*We*j/De,De/(Se*Re*j)):1/0}function Ne(_e,Se,De,Ge){var We=-1,Re=_e.length,wr=De.x,Or=De.y,Xr=Se?g(_e.area/Se):0,Wr;if(Se==De.dx){for((Ge||Xr>De.dy)&&(Xr=De.dy);++WeDe.dx)&&(Xr=De.dx);++We1);return c+g*S*Math.sqrt(-2*Math.log(E)/E)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var g=e.random.irwinHall(c);return function(){return g()/c}},irwinHall:function(c){return function(){for(var g=0,w=0;w2?Mr:_r,ae=S?Vf:Gf;return q=j(c,g,ae,w),E=j(g,c,ae,tl),F}function F(j){return q(j)}return F.invert=function(j){return E(j)},F.domain=function(j){return arguments.length?(c=j.map(Number),V()):c},F.range=function(j){return arguments.length?(g=j,V()):g},F.rangeRound=function(j){return F.range(j).interpolate(po)},F.clamp=function(j){return arguments.length?(S=j,V()):S},F.interpolate=function(j){return arguments.length?(w=j,V()):w},F.ticks=function(j){return nt(c,j)},F.tickFormat=function(j,ae){return d3_scale_linearTickFormat(c,j,ae)},F.nice=function(j){return Jr(c,j),V()},F.copy=function(){return qr(c,g,w,S)},V()}function rt(c,g){return e.rebind(c,g,"range","rangeRound","interpolate","clamp")}function Jr(c,g){return $e(c,vr(tt(c,g)[2])),$e(c,vr(tt(c,g)[2])),c}function tt(c,g){g==null&&(g=10);var w=ir(c),S=w[1]-w[0],q=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),E=g/S*q;return E<=.15?q*=10:E<=.35?q*=5:E<=.75&&(q*=2),w[0]=Math.ceil(w[0]/q)*q,w[1]=Math.floor(w[1]/q)*q+q*.5,w[2]=q,w}function nt(c,g){return e.range.apply(e,tt(c,g))}var Dr={s:1,g:1,p:1,r:1,e:1};function Hr(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function it(c,g){var w=Hr(g[2]);return c in Dr?Math.abs(w-Hr(Math.max(_(g[0]),_(g[1]))))+ +(c!=="e"):w-(c==="%")*2}e.scale.log=function(){return pt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function pt(c,g,w,S){function q(F){return(w?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function E(F){return w?Math.pow(g,F):-Math.pow(g,-F)}function V(F){return c(q(F))}return V.invert=function(F){return E(c.invert(F))},V.domain=function(F){return arguments.length?(w=F[0]>=0,c.domain((S=F.map(Number)).map(q)),V):S},V.base=function(F){return arguments.length?(g=+F,c.domain(S.map(q)),V):g},V.nice=function(){var F=$e(S.map(q),w?Math:Yt);return c.domain(F),S=F.map(E),V},V.ticks=function(){var F=ir(S),j=[],ae=F[0],ie=F[1],me=Math.floor(q(ae)),ye=Math.ceil(q(ie)),Ne=g%1?2:g;if(isFinite(ye-me)){if(w){for(;me0;Ve--)j.push(E(me)*Ve);for(me=0;j[me]ie;ye--);j=j.slice(me,ye)}return j},V.copy=function(){return pt(c.copy(),g,w,S)},rt(V,c)}var Yt={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return nn(e.scale.linear(),1,[0,1])};function nn(c,g,w){var S=Wt(g),q=Wt(1/g);function E(V){return c(S(V))}return E.invert=function(V){return q(c.invert(V))},E.domain=function(V){return arguments.length?(c.domain((w=V.map(Number)).map(S)),E):w},E.ticks=function(V){return nt(w,V)},E.tickFormat=function(V,F){return d3_scale_linearTickFormat(w,V,F)},E.nice=function(V){return E.domain(Jr(w,V))},E.exponent=function(V){return arguments.length?(S=Wt(g=V),q=Wt(1/g),c.domain(w.map(S)),E):g},E.copy=function(){return nn(c.copy(),g,w)},rt(E,c)}function Wt(c){return function(g){return g<0?-Math.pow(-g,c):Math.pow(g,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return pn([],{t:"range",a:[[]]})};function pn(c,g){var w,S,q;function E(F){return S[((w.get(F)||(g.t==="range"?w.set(F,c.push(F)):NaN))-1)%S.length]}function V(F,j){return e.range(c.length).map(function(ae){return F+j*ae})}return E.domain=function(F){if(!arguments.length)return c;c=[],w=new b;for(var j=-1,ae=F.length,ie;++j0?w[E-1]:c[0],Eye?0:1;if(ie=Yr)return j(ie,Ve)+(ae?j(ae,1-Ve):"")+"Z";var _e,Se,De,Ge,We=0,Re=0,wr,Or,Xr,Wr,$r,Kr,_t,et,ht=[];if((Ge=(+V.apply(this,arguments)||0)/2)&&(De=S===Zi?Math.sqrt(ae*ae+ie*ie):+S.apply(this,arguments),Ve||(Re*=-1),ie&&(Re=hn(De/ie*Math.sin(Ge))),ae&&(We=hn(De/ae*Math.sin(Ge)))),ie){wr=ie*Math.cos(me+Re),Or=ie*Math.sin(me+Re),Xr=ie*Math.cos(ye-Re),Wr=ie*Math.sin(ye-Re);var jt=Math.abs(ye-me-2*Re)<=nr?0:1;if(Re&&Nu(wr,Or,Xr,Wr)===Ve^jt){var Jn=(me+ye)/2;wr=ie*Math.cos(Jn),Or=ie*Math.sin(Jn),Xr=Wr=null}}else wr=Or=0;if(ae){$r=ae*Math.cos(ye-We),Kr=ae*Math.sin(ye-We),_t=ae*Math.cos(me+We),et=ae*Math.sin(me+We);var un=Math.abs(me-ye+2*We)<=nr?0:1;if(We&&Nu($r,Kr,_t,et)===1-Ve^un){var Nr=(me+ye)/2;$r=ae*Math.cos(Nr),Kr=ae*Math.sin(Nr),_t=et=null}}else $r=Kr=0;if(Ne>Ae&&(_e=Math.min(Math.abs(ie-ae)/2,+w.apply(this,arguments)))>.001){Se=ae0?0:1}function k0(c,g,w,S,q){var E=c[0]-g[0],V=c[1]-g[1],F=(q?S:-S)/Math.sqrt(E*E+V*V),j=F*V,ae=-F*E,ie=c[0]+j,me=c[1]+ae,ye=g[0]+j,Ne=g[1]+ae,Ve=(ie+ye)/2,_e=(me+Ne)/2,Se=ye-ie,De=Ne-me,Ge=Se*Se+De*De,We=w-S,Re=ie*Ne-ye*me,wr=(De<0?-1:1)*Math.sqrt(Math.max(0,We*We*Ge-Re*Re)),Or=(Re*De-Se*wr)/Ge,Xr=(-Re*Se-De*wr)/Ge,Wr=(Re*De+Se*wr)/Ge,$r=(-Re*Se+De*wr)/Ge,Kr=Or-Ve,_t=Xr-_e,et=Wr-Ve,ht=$r-_e;return Kr*Kr+_t*_t>et*et+ht*ht&&(Or=Wr,Xr=$r),[[Or-j,Xr-ae],[Or*w/We,Xr*w/We]]}function S0(){return!0}function od(c){var g=Hl,w=ks,S=S0,q=Xi,E=q.key,V=.7;function F(j){var ae=[],ie=[],me=-1,ye=j.length,Ne,Ve=At(g),_e=At(w);function Se(){ae.push("M",q(c(ie),V))}for(;++me1?c.join("L"):c+"Z"}function ld(c){return c.join("L")+"Z"}function sd(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1&&q.push("H",S[0]),q.join("")}function C0(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1){F=g[1],E=c[j],j++,S+="C"+(q[0]+V[0])+","+(q[1]+V[1])+","+(E[0]-F[0])+","+(E[1]-F[1])+","+E[0]+","+E[1];for(var ae=2;ae9&&(E=w*3/Math.sqrt(E),V[F]=E*S,V[F+1]=E*q));for(F=-1;++F<=j;)E=(c[Math.min(j,F+1)][0]-c[Math.max(0,F-1)][0])/(6*(1+V[F]*V[F])),g.push([E||0,V[F]*E||0]);return g}function fe(c){return c.length<3?Xi(c):c[0]+L0(c,X(c))}e.svg.line.radial=function(){var c=od(he);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function he(c){for(var g,w=-1,S=c.length,q,E;++wnr)+",1 "+me}function ae(ie,me,ye,Ne){return"Q 0,0 "+Ne}return E.radius=function(ie){return arguments.length?(w=At(ie),E):w},E.source=function(ie){return arguments.length?(c=At(ie),E):c},E.target=function(ie){return arguments.length?(g=At(ie),E):g},E.startAngle=function(ie){return arguments.length?(S=At(ie),E):S},E.endAngle=function(ie){return arguments.length?(q=At(ie),E):q},E};function Le(c){return c.radius}e.svg.diagonal=function(){var c=pe,g=we,w=Ie;function S(q,E){var V=c.call(this,q,E),F=g.call(this,q,E),j=(V.y+F.y)/2,ae=[V,{x:V.x,y:j},{x:F.x,y:j},F];return ae=ae.map(w),"M"+ae[0]+"C"+ae[1]+" "+ae[2]+" "+ae[3]}return S.source=function(q){return arguments.length?(c=At(q),S):c},S.target=function(q){return arguments.length?(g=At(q),S):g},S.projection=function(q){return arguments.length?(w=q,S):w},S};function Ie(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),g=Ie,w=c.projection;return c.projection=function(S){return arguments.length?w(rr(g=S)):g},c};function rr(c){return function(){var g=c.apply(this,arguments),w=g[0],S=g[1]-zr;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var c=Tr,g=fr;function w(S,q){return(at.get(c.call(this,S,q))||jr)(g.call(this,S,q))}return w.type=function(S){return arguments.length?(c=At(S),w):c},w.size=function(S){return arguments.length?(g=At(S),w):g},w};function fr(){return 64}function Tr(){return"circle"}function jr(c){var g=Math.sqrt(c/nr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var at=e.map({circle:jr,cross:function(c){var g=Math.sqrt(c/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(c){var g=Math.sqrt(c/(2*ut)),w=g*ut;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(c){var g=Math.sqrt(c)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=at.keys();var ot=Math.sqrt(3),ut=Math.tan(30*st);de.transition=function(c){for(var g=ba||++In,w=Ea(c),S=[],q,E,V=vi||{time:Date.now(),ease:v0,delay:0,duration:250},F=-1,j=this.length;++F0;)me[--Ge].call(c,De);if(Se>=1)return V.event&&V.event.end.call(c,c.__data__,g),--E.count?delete E[S]:delete c[w],1}V||(F=q.time,j=Il(ye,0,F),V=E[S]={tween:new b,time:F,timer:j,delay:q.delay,duration:q.duration,ease:q.ease,index:g},q=null,++E.count)}e.svg.axis=function(){var c=e.scale.linear(),g=ji,w=6,S=6,q=3,E=[10],V=null,F;function j(ae){ae.each(function(){var ie=e.select(this),me=this.__chart__||c,ye=this.__chart__=c.copy(),Ne=V==null?ye.ticks?ye.ticks.apply(ye,E):ye.domain():V,Ve=F==null?ye.tickFormat?ye.tickFormat.apply(ye,E):H:F,_e=ie.selectAll(".tick").data(Ne,ye),Se=_e.enter().insert("g",".domain").attr("class","tick").style("opacity",Ae),De=e.transition(_e.exit()).style("opacity",Ae).remove(),Ge=e.transition(_e.order()).style("opacity",1),We=Math.max(w,0)+q,Re,wr=sr(ye),Or=ie.selectAll(".domain").data([0]),Xr=(Or.enter().append("path").attr("class","domain"),e.transition(Or));Se.append("line"),Se.append("text");var Wr=Se.select("line"),$r=Ge.select("line"),Kr=_e.select("text").text(Ve),_t=Se.select("text"),et=Ge.select("text"),ht=g==="top"||g==="left"?-1:1,jt,Jn,un,Nr;if(g==="bottom"||g==="top"?(Re=fl,jt="x",un="y",Jn="x2",Nr="y2",Kr.attr("dy",ht<0?"0em":".71em").style("text-anchor","middle"),Xr.attr("d","M"+wr[0]+","+ht*S+"V0H"+wr[1]+"V"+ht*S)):(Re=cl,jt="y",un="x",Jn="y2",Nr="x2",Kr.attr("dy",".32em").style("text-anchor",ht<0?"end":"start"),Xr.attr("d","M"+ht*S+","+wr[0]+"H0V"+wr[1]+"H"+ht*S)),Wr.attr(Nr,ht*w),_t.attr(un,ht*We),$r.attr(Jn,0).attr(Nr,ht*w),et.attr(jt,0).attr(un,ht*We),ye.rangeBand){var xt=ye,wt=xt.rangeBand()/2;me=ye=function(Jt){return xt(Jt)+wt}}else me.rangeBand?me=ye:De.call(Re,ye,me);Se.call(Re,me,ye),Ge.call(Re,ye,ye)})}return j.scale=function(ae){return arguments.length?(c=ae,j):c},j.orient=function(ae){return arguments.length?(g=ae in ul?ae+"":ji,j):g},j.ticks=function(){return arguments.length?(E=t(arguments),j):E},j.tickValues=function(ae){return arguments.length?(V=ae,j):V},j.tickFormat=function(ae){return arguments.length?(F=ae,j):F},j.tickSize=function(ae){var ie=arguments.length;return ie?(w=+ae,S=+arguments[ie-1],j):w},j.innerTickSize=function(ae){return arguments.length?(w=+ae,j):w},j.outerTickSize=function(ae){return arguments.length?(S=+ae,j):S},j.tickPadding=function(ae){return arguments.length?(q=+ae,j):q},j.tickSubdivide=function(){return arguments.length&&j},j};var ji="bottom",ul={top:1,right:1,bottom:1,left:1};function fl(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate("+(isFinite(q)?q:w(S))+",0)"})}function cl(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate(0,"+(isFinite(q)?q:w(S))+")"})}e.svg.brush=function(){var c=Fe(ie,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],q=[0,0],E,V,F=!0,j=!0,ae=mo[0];function ie(_e){_e.each(function(){var Se=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ve).on("touchstart.brush",Ve),De=Se.selectAll(".background").data([0]);De.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Se.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Se.selectAll(".resize").data(ae,H);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Or){return"resize "+Or}).style("cursor",function(Or){return Kl[Or]}).append("rect").attr("x",function(Or){return/[ew]$/.test(Or)?-3:null}).attr("y",function(Or){return/^[ns]/.test(Or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ie.empty()?"none":null);var We=e.transition(Se),Re=e.transition(De),wr;g&&(wr=sr(g),Re.attr("x",wr[0]).attr("width",wr[1]-wr[0]),ye(We)),w&&(wr=sr(w),Re.attr("y",wr[0]).attr("height",wr[1]-wr[0]),Ne(We)),me(We)})}ie.event=function(_e){_e.each(function(){var Se=c.of(this,arguments),De={x:S,y:q,i:E,j:V},Ge=this.__chart__||De;this.__chart__=De,ba?e.select(this).transition().each("start.brush",function(){E=Ge.i,V=Ge.j,S=Ge.x,q=Ge.y,Se({type:"brushstart"})}).tween("brush:brush",function(){var We=Vl(S,De.x),Re=Vl(q,De.y);return E=V=null,function(wr){S=De.x=We(wr),q=De.y=Re(wr),Se({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=De.i,V=De.j,Se({type:"brush",mode:"resize"}),Se({type:"brushend"})}):(Se({type:"brushstart"}),Se({type:"brush",mode:"resize"}),Se({type:"brushend"}))})};function me(_e){_e.selectAll(".resize").attr("transform",function(Se){return"translate("+S[+/e$/.test(Se)]+","+q[+/^s/.test(Se)]+")"})}function ye(_e){_e.select(".extent").attr("x",S[0]),_e.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function Ne(_e){_e.select(".extent").attr("y",q[0]),_e.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ve(){var _e=this,Se=e.select(e.event.target),De=c.of(_e,arguments),Ge=e.select(_e),We=Se.datum(),Re=!/^(n|s)$/.test(We)&&g,wr=!/^(e|w)$/.test(We)&&w,Or=Se.classed("extent"),Xr=Cr(_e),Wr,$r=e.mouse(_e),Kr,_t=e.select(i(_e)).on("keydown.brush",jt).on("keyup.brush",Jn);if(e.event.changedTouches?_t.on("touchmove.brush",un).on("touchend.brush",xt):_t.on("mousemove.brush",un).on("mouseup.brush",xt),Ge.interrupt().selectAll("*").interrupt(),Or)$r[0]=S[0]-$r[0],$r[1]=q[0]-$r[1];else if(We){var et=+/w$/.test(We),ht=+/^n/.test(We);Kr=[S[1-et]-$r[0],q[1-ht]-$r[1]],$r[0]=S[et],$r[1]=q[ht]}else e.event.altKey&&(Wr=$r.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Se.style("cursor")),De({type:"brushstart"}),un();function jt(){e.event.keyCode==32&&(Or||(Wr=null,$r[0]-=S[1],$r[1]-=q[1],Or=2),ke())}function Jn(){e.event.keyCode==32&&Or==2&&($r[0]+=S[1],$r[1]+=q[1],Or=0,ke())}function un(){var wt=e.mouse(_e),Jt=!1;Kr&&(wt[0]+=Kr[0],wt[1]+=Kr[1]),Or||(e.event.altKey?(Wr||(Wr=[(S[0]+S[1])/2,(q[0]+q[1])/2]),$r[0]=S[+(wt[0]{(function(e,r){typeof md=="object"&&typeof i6!="undefined"?r(md):(e=e||self,r(e.d3=e.d3||{}))})(md,function(e){"use strict";var r=new Date,t=new Date;function n(Te,Ue,kr,Ur){function tr(Ye){return Te(Ye=arguments.length===0?new Date:new Date(+Ye)),Ye}return tr.floor=function(Ye){return Te(Ye=new Date(+Ye)),Ye},tr.ceil=function(Ye){return Te(Ye=new Date(Ye-1)),Ue(Ye,1),Te(Ye),Ye},tr.round=function(Ye){var Ze=tr(Ye),dr=tr.ceil(Ye);return Ye-Ze0))return Ar;do Ar.push(mr=new Date(+Ye)),Ue(Ye,dr),Te(Ye);while(mr=Ze)for(;Te(Ze),!Ye(Ze);)Ze.setTime(Ze-1)},function(Ze,dr){if(Ze>=Ze)if(dr<0)for(;++dr<=0;)for(;Ue(Ze,-1),!Ye(Ze););else for(;--dr>=0;)for(;Ue(Ze,1),!Ye(Ze););})},kr&&(tr.count=function(Ye,Ze){return r.setTime(+Ye),t.setTime(+Ze),Te(r),Te(t),Math.floor(kr(r,t))},tr.every=function(Ye){return Ye=Math.floor(Ye),!isFinite(Ye)||!(Ye>0)?null:Ye>1?tr.filter(Ur?function(Ze){return Ur(Ze)%Ye===0}:function(Ze){return tr.count(0,Ze)%Ye===0}):tr}),tr}var a=n(function(){},function(Te,Ue){Te.setTime(+Te+Ue)},function(Te,Ue){return Ue-Te});a.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?n(function(Ue){Ue.setTime(Math.floor(Ue/Te)*Te)},function(Ue,kr){Ue.setTime(+Ue+kr*Te)},function(Ue,kr){return(kr-Ue)/Te}):a};var i=a.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,v=n(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Ue){Te.setTime(+Te+Ue*o)},function(Te,Ue){return(Ue-Te)/o},function(Te){return Te.getUTCSeconds()}),h=v.range,d=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Ue){Te.setTime(+Te+Ue*l)},function(Te,Ue){return(Ue-Te)/l},function(Te){return Te.getMinutes()}),m=d.range,p=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Ue){Te.setTime(+Te+Ue*s)},function(Te,Ue){return(Ue-Te)/s},function(Te){return Te.getHours()}),y=p.range,_=n(function(Te){Te.setHours(0,0,0,0)},function(Te,Ue){Te.setDate(Te.getDate()+Ue)},function(Te,Ue){return(Ue-Te-(Ue.getTimezoneOffset()-Te.getTimezoneOffset())*l)/u},function(Te){return Te.getDate()-1}),C=_.range;function x(Te){return n(function(Ue){Ue.setDate(Ue.getDate()-(Ue.getDay()+7-Te)%7),Ue.setHours(0,0,0,0)},function(Ue,kr){Ue.setDate(Ue.getDate()+kr*7)},function(Ue,kr){return(kr-Ue-(kr.getTimezoneOffset()-Ue.getTimezoneOffset())*l)/f})}var b=x(0),A=x(1),k=x(2),M=x(3),D=x(4),R=x(5),N=x(6),I=b.range,W=A.range,O=k.range,Z=M.range,H=D.range,ee=R.range,ne=N.range,re=n(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Ue){Te.setMonth(Te.getMonth()+Ue)},function(Te,Ue){return Ue.getMonth()-Te.getMonth()+(Ue.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),K=re.range,ue=n(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Ue){Te.setFullYear(Te.getFullYear()+Ue)},function(Te,Ue){return Ue.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});ue.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ue){Ue.setFullYear(Math.floor(Ue.getFullYear()/Te)*Te),Ue.setMonth(0,1),Ue.setHours(0,0,0,0)},function(Ue,kr){Ue.setFullYear(Ue.getFullYear()+kr*Te)})};var le=ue.range,ke=n(function(Te){Te.setUTCSeconds(0,0)},function(Te,Ue){Te.setTime(+Te+Ue*l)},function(Te,Ue){return(Ue-Te)/l},function(Te){return Te.getUTCMinutes()}),ze=ke.range,Fe=n(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Ue){Te.setTime(+Te+Ue*s)},function(Te,Ue){return(Ue-Te)/s},function(Te){return Te.getUTCHours()}),Xe=Fe.range,Ce=n(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCDate(Te.getUTCDate()+Ue)},function(Te,Ue){return(Ue-Te)/u},function(Te){return Te.getUTCDate()-1}),er=Ce.range;function ce(Te){return n(function(Ue){Ue.setUTCDate(Ue.getUTCDate()-(Ue.getUTCDay()+7-Te)%7),Ue.setUTCHours(0,0,0,0)},function(Ue,kr){Ue.setUTCDate(Ue.getUTCDate()+kr*7)},function(Ue,kr){return(kr-Ue)/f})}var ge=ce(0),Pe=ce(1),de=ce(2),G=ce(3),Q=ce(4),$=ce(5),be=ce(6),qe=ge.range,He=Pe.range,ar=de.range,Qe=G.range,Be=Q.range,cr=$.range,or=be.range,hr=n(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCMonth(Te.getUTCMonth()+Ue)},function(Te,Ue){return Ue.getUTCMonth()-Te.getUTCMonth()+(Ue.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Je=hr.range,pr=n(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCFullYear(Te.getUTCFullYear()+Ue)},function(Te,Ue){return Ue.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});pr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ue){Ue.setUTCFullYear(Math.floor(Ue.getUTCFullYear()/Te)*Te),Ue.setUTCMonth(0,1),Ue.setUTCHours(0,0,0,0)},function(Ue,kr){Ue.setUTCFullYear(Ue.getUTCFullYear()+kr*Te)})};var yr=pr.range;e.timeDay=_,e.timeDays=C,e.timeFriday=R,e.timeFridays=ee,e.timeHour=p,e.timeHours=y,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=W,e.timeMonth=re,e.timeMonths=K,e.timeSaturday=N,e.timeSaturdays=ne,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=I,e.timeThursday=D,e.timeThursdays=H,e.timeTuesday=k,e.timeTuesdays=O,e.timeWednesday=M,e.timeWednesdays=Z,e.timeWeek=b,e.timeWeeks=I,e.timeYear=ue,e.timeYears=le,e.utcDay=Ce,e.utcDays=er,e.utcFriday=$,e.utcFridays=cr,e.utcHour=Fe,e.utcHours=Xe,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=ke,e.utcMinutes=ze,e.utcMonday=Pe,e.utcMondays=He,e.utcMonth=hr,e.utcMonths=Je,e.utcSaturday=be,e.utcSaturdays=or,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=ge,e.utcSundays=qe,e.utcThursday=Q,e.utcThursdays=Be,e.utcTuesday=de,e.utcTuesdays=ar,e.utcWednesday=G,e.utcWednesdays=Qe,e.utcWeek=ge,e.utcWeeks=qe,e.utcYear=pr,e.utcYears=yr,Object.defineProperty(e,"__esModule",{value:!0})})});var D0=te((yd,o6)=>{(function(e,r){typeof yd=="object"&&typeof o6!="undefined"?r(yd,Py()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(yd,function(e,r){"use strict";function t(xe){if(0<=xe.y&&xe.y<100){var Ae=new Date(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L);return Ae.setFullYear(xe.y),Ae}return new Date(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L)}function n(xe){if(0<=xe.y&&xe.y<100){var Ae=new Date(Date.UTC(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L));return Ae.setUTCFullYear(xe.y),Ae}return new Date(Date.UTC(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L))}function a(xe,Ae,Ke){return{y:xe,m:Ae,d:Ke,H:0,M:0,S:0,L:0}}function i(xe){var Ae=xe.dateTime,Ke=xe.date,nr=xe.time,Sr=xe.periods,Yr=xe.days,zr=xe.shortDays,st=xe.months,bt=xe.shortMonths,St=h(Sr),$t=d(Sr),vn=h(Yr),hn=d(Yr),qn=h(zr),Ot=d(zr),en=h(st),Kt=d(st),rn=h(bt),la=d(bt),xn={a:Mn,A:oo,b:yi,B:As,c:null,d:re,e:re,f:ze,H:K,I:ue,j:le,L:ke,m:Fe,M:Xe,p:Nl,q:Yo,Q:Ze,s:dr,S:Ce,u:er,U:ce,V:ge,w:Pe,W:de,x:null,X:null,y:G,Y:Q,Z:$,"%":Ye},Un={a:Ts,A:Go,b:Yn,B:bi,c:null,d:be,e:be,f:Be,H:qe,I:He,j:ar,L:Qe,m:cr,M:or,p:Vo,q:_i,Q:Ze,s:dr,S:hr,u:Je,U:pr,V:yr,w:Te,W:Ue,x:null,X:null,y:kr,Y:Ur,Z:tr,"%":Ye},Gr={a:Zn,A:Ut,b:ga,B:ma,c:wn,d:D,e:D,f:Z,H:N,I:N,j:R,L:O,m:M,M:I,p:Nn,q:k,Q:ee,s:ne,S:W,u:p,U:y,V:_,w:m,W:C,x:Qt,X:Tn,y:b,Y:x,Z:A,"%":H};xn.x=on(Ke,xn),xn.X=on(nr,xn),xn.c=on(Ae,xn),Un.x=on(Ke,Un),Un.X=on(nr,Un),Un.c=on(Ae,Un);function on(Qr,Lt){return function(Ht){var Br=[],Xn=-1,ln=0,Pn=Qr.length,At,Xa,Wo;for(Ht instanceof Date||(Ht=new Date(+Ht));++Xn53)return null;"w"in Br||(Br.w=1),"Z"in Br?(ln=n(a(Br.y,0,1)),Pn=ln.getUTCDay(),ln=Pn>4||Pn===0?r.utcMonday.ceil(ln):r.utcMonday(ln),ln=r.utcDay.offset(ln,(Br.V-1)*7),Br.y=ln.getUTCFullYear(),Br.m=ln.getUTCMonth(),Br.d=ln.getUTCDate()+(Br.w+6)%7):(ln=t(a(Br.y,0,1)),Pn=ln.getDay(),ln=Pn>4||Pn===0?r.timeMonday.ceil(ln):r.timeMonday(ln),ln=r.timeDay.offset(ln,(Br.V-1)*7),Br.y=ln.getFullYear(),Br.m=ln.getMonth(),Br.d=ln.getDate()+(Br.w+6)%7)}else("W"in Br||"U"in Br)&&("w"in Br||(Br.w="u"in Br?Br.u%7:"W"in Br?1:0),Pn="Z"in Br?n(a(Br.y,0,1)).getUTCDay():t(a(Br.y,0,1)).getDay(),Br.m=0,Br.d="W"in Br?(Br.w+6)%7+Br.W*7-(Pn+5)%7:Br.w+Br.U*7-(Pn+6)%7);return"Z"in Br?(Br.H+=Br.Z/100|0,Br.M+=Br.Z%100,n(Br)):t(Br)}}function tn(Qr,Lt,Ht,Br){for(var Xn=0,ln=Lt.length,Pn=Ht.length,At,Xa;Xn=Pn)return-1;if(At=Lt.charCodeAt(Xn++),At===37){if(At=Lt.charAt(Xn++),Xa=Gr[At in o?Lt.charAt(Xn++):At],!Xa||(Br=Xa(Qr,Ht,Br))<0)return-1}else if(At!=Ht.charCodeAt(Br++))return-1}return Br}function Nn(Qr,Lt,Ht){var Br=St.exec(Lt.slice(Ht));return Br?(Qr.p=$t[Br[0].toLowerCase()],Ht+Br[0].length):-1}function Zn(Qr,Lt,Ht){var Br=qn.exec(Lt.slice(Ht));return Br?(Qr.w=Ot[Br[0].toLowerCase()],Ht+Br[0].length):-1}function Ut(Qr,Lt,Ht){var Br=vn.exec(Lt.slice(Ht));return Br?(Qr.w=hn[Br[0].toLowerCase()],Ht+Br[0].length):-1}function ga(Qr,Lt,Ht){var Br=rn.exec(Lt.slice(Ht));return Br?(Qr.m=la[Br[0].toLowerCase()],Ht+Br[0].length):-1}function ma(Qr,Lt,Ht){var Br=en.exec(Lt.slice(Ht));return Br?(Qr.m=Kt[Br[0].toLowerCase()],Ht+Br[0].length):-1}function wn(Qr,Lt,Ht){return tn(Qr,Ae,Lt,Ht)}function Qt(Qr,Lt,Ht){return tn(Qr,Ke,Lt,Ht)}function Tn(Qr,Lt,Ht){return tn(Qr,nr,Lt,Ht)}function Mn(Qr){return zr[Qr.getDay()]}function oo(Qr){return Yr[Qr.getDay()]}function yi(Qr){return bt[Qr.getMonth()]}function As(Qr){return st[Qr.getMonth()]}function Nl(Qr){return Sr[+(Qr.getHours()>=12)]}function Yo(Qr){return 1+~~(Qr.getMonth()/3)}function Ts(Qr){return zr[Qr.getUTCDay()]}function Go(Qr){return Yr[Qr.getUTCDay()]}function Yn(Qr){return bt[Qr.getUTCMonth()]}function bi(Qr){return st[Qr.getUTCMonth()]}function Vo(Qr){return Sr[+(Qr.getUTCHours()>=12)]}function _i(Qr){return 1+~~(Qr.getUTCMonth()/3)}return{format:function(Qr){var Lt=on(Qr+="",xn);return Lt.toString=function(){return Qr},Lt},parse:function(Qr){var Lt=Ct(Qr+="",!1);return Lt.toString=function(){return Qr},Lt},utcFormat:function(Qr){var Lt=on(Qr+="",Un);return Lt.toString=function(){return Qr},Lt},utcParse:function(Qr){var Lt=Ct(Qr+="",!0);return Lt.toString=function(){return Qr},Lt}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(xe,Ae,Ke){var nr=xe<0?"-":"",Sr=(nr?-xe:xe)+"",Yr=Sr.length;return nr+(Yr68?1900:2e3),Ke+nr[0].length):-1}function A(xe,Ae,Ke){var nr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ae.slice(Ke,Ke+6));return nr?(xe.Z=nr[1]?0:-(nr[2]+(nr[3]||"00")),Ke+nr[0].length):-1}function k(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+1));return nr?(xe.q=nr[0]*3-3,Ke+nr[0].length):-1}function M(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.m=nr[0]-1,Ke+nr[0].length):-1}function D(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.d=+nr[0],Ke+nr[0].length):-1}function R(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+3));return nr?(xe.m=0,xe.d=+nr[0],Ke+nr[0].length):-1}function N(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.H=+nr[0],Ke+nr[0].length):-1}function I(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.M=+nr[0],Ke+nr[0].length):-1}function W(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+2));return nr?(xe.S=+nr[0],Ke+nr[0].length):-1}function O(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+3));return nr?(xe.L=+nr[0],Ke+nr[0].length):-1}function Z(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke,Ke+6));return nr?(xe.L=Math.floor(nr[0]/1e3),Ke+nr[0].length):-1}function H(xe,Ae,Ke){var nr=s.exec(Ae.slice(Ke,Ke+1));return nr?Ke+nr[0].length:-1}function ee(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke));return nr?(xe.Q=+nr[0],Ke+nr[0].length):-1}function ne(xe,Ae,Ke){var nr=l.exec(Ae.slice(Ke));return nr?(xe.s=+nr[0],Ke+nr[0].length):-1}function re(xe,Ae){return f(xe.getDate(),Ae,2)}function K(xe,Ae){return f(xe.getHours(),Ae,2)}function ue(xe,Ae){return f(xe.getHours()%12||12,Ae,2)}function le(xe,Ae){return f(1+r.timeDay.count(r.timeYear(xe),xe),Ae,3)}function ke(xe,Ae){return f(xe.getMilliseconds(),Ae,3)}function ze(xe,Ae){return ke(xe,Ae)+"000"}function Fe(xe,Ae){return f(xe.getMonth()+1,Ae,2)}function Xe(xe,Ae){return f(xe.getMinutes(),Ae,2)}function Ce(xe,Ae){return f(xe.getSeconds(),Ae,2)}function er(xe){var Ae=xe.getDay();return Ae===0?7:Ae}function ce(xe,Ae){return f(r.timeSunday.count(r.timeYear(xe)-1,xe),Ae,2)}function ge(xe,Ae){var Ke=xe.getDay();return xe=Ke>=4||Ke===0?r.timeThursday(xe):r.timeThursday.ceil(xe),f(r.timeThursday.count(r.timeYear(xe),xe)+(r.timeYear(xe).getDay()===4),Ae,2)}function Pe(xe){return xe.getDay()}function de(xe,Ae){return f(r.timeMonday.count(r.timeYear(xe)-1,xe),Ae,2)}function G(xe,Ae){return f(xe.getFullYear()%100,Ae,2)}function Q(xe,Ae){return f(xe.getFullYear()%1e4,Ae,4)}function $(xe){var Ae=xe.getTimezoneOffset();return(Ae>0?"-":(Ae*=-1,"+"))+f(Ae/60|0,"0",2)+f(Ae%60,"0",2)}function be(xe,Ae){return f(xe.getUTCDate(),Ae,2)}function qe(xe,Ae){return f(xe.getUTCHours(),Ae,2)}function He(xe,Ae){return f(xe.getUTCHours()%12||12,Ae,2)}function ar(xe,Ae){return f(1+r.utcDay.count(r.utcYear(xe),xe),Ae,3)}function Qe(xe,Ae){return f(xe.getUTCMilliseconds(),Ae,3)}function Be(xe,Ae){return Qe(xe,Ae)+"000"}function cr(xe,Ae){return f(xe.getUTCMonth()+1,Ae,2)}function or(xe,Ae){return f(xe.getUTCMinutes(),Ae,2)}function hr(xe,Ae){return f(xe.getUTCSeconds(),Ae,2)}function Je(xe){var Ae=xe.getUTCDay();return Ae===0?7:Ae}function pr(xe,Ae){return f(r.utcSunday.count(r.utcYear(xe)-1,xe),Ae,2)}function yr(xe,Ae){var Ke=xe.getUTCDay();return xe=Ke>=4||Ke===0?r.utcThursday(xe):r.utcThursday.ceil(xe),f(r.utcThursday.count(r.utcYear(xe),xe)+(r.utcYear(xe).getUTCDay()===4),Ae,2)}function Te(xe){return xe.getUTCDay()}function Ue(xe,Ae){return f(r.utcMonday.count(r.utcYear(xe)-1,xe),Ae,2)}function kr(xe,Ae){return f(xe.getUTCFullYear()%100,Ae,2)}function Ur(xe,Ae){return f(xe.getUTCFullYear()%1e4,Ae,4)}function tr(){return"+0000"}function Ye(){return"%"}function Ze(xe){return+xe}function dr(xe){return Math.floor(+xe/1e3)}var Ar;mr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function mr(xe){return Ar=i(xe),e.timeFormat=Ar.format,e.timeParse=Ar.parse,e.utcFormat=Ar.utcFormat,e.utcParse=Ar.utcParse,Ar}var br="%Y-%m-%dT%H:%M:%S.%LZ";function Ir(xe){return xe.toISOString()}var Cr=Date.prototype.toISOString?Ir:e.utcFormat(br);function Er(xe){var Ae=new Date(xe);return isNaN(Ae)?null:Ae}var lr=+new Date("2000-01-01T00:00:00.000Z")?Er:e.utcParse(br);e.isoFormat=Cr,e.isoParse=lr,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ry=te((bd,l6)=>{(function(e,r){typeof bd=="object"&&typeof l6!="undefined"?r(bd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(bd,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,D){if((R=(M=D?M.toExponential(D-1):M.toExponential()).indexOf("e"))<0)return null;var R,N=M.slice(0,R);return[N.length>1?N[0]+N.slice(2):N,+M.slice(R+1)]}function n(M){return M=t(Math.abs(M)),M?M[1]:NaN}function a(M,D){return function(R,N){for(var I=R.length,W=[],O=0,Z=M[0],H=0;I>0&&Z>0&&(H+Z+1>N&&(Z=Math.max(1,N-H)),W.push(R.substring(I-=Z,I+Z)),!((H+=Z+1)>N));)Z=M[O=(O+1)%M.length];return W.reverse().join(D)}}function i(M){return function(D){return D.replace(/[0-9]/g,function(R){return M[+R]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(D=o.exec(M)))throw new Error("invalid format: "+M);var D;return new s({fill:D[1],align:D[2],sign:D[3],symbol:D[4],zero:D[5],width:D[6],comma:D[7],precision:D[8]&&D[8].slice(1),trim:D[9],type:D[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var D=M.length,R=1,N=-1,I;R0&&(N=0);break}return N>0?M.slice(0,N)+M.slice(I+1):M}var f;function v(M,D){var R=t(M,D);if(!R)return M+"";var N=R[0],I=R[1],W=I-(f=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,O=N.length;return W===O?N:W>O?N+new Array(W-O+1).join("0"):W>0?N.slice(0,W)+"."+N.slice(W):"0."+new Array(1-W).join("0")+t(M,Math.max(0,D+W-1))[0]}function h(M,D){var R=t(M,D);if(!R)return M+"";var N=R[0],I=R[1];return I<0?"0."+new Array(-I).join("0")+N:N.length>I+1?N.slice(0,I+1)+"."+N.slice(I+1):N+new Array(I-N.length+2).join("0")}var d={"%":function(M,D){return(M*100).toFixed(D)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,D){return M.toExponential(D)},f:function(M,D){return M.toFixed(D)},g:function(M,D){return M.toPrecision(D)},o:function(M){return Math.round(M).toString(8)},p:function(M,D){return h(M*100,D)},r:h,s:v,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function m(M){return M}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(M){var D=M.grouping===void 0||M.thousands===void 0?m:a(p.call(M.grouping,Number),M.thousands+""),R=M.currency===void 0?"":M.currency[0]+"",N=M.currency===void 0?"":M.currency[1]+"",I=M.decimal===void 0?".":M.decimal+"",W=M.numerals===void 0?m:i(p.call(M.numerals,String)),O=M.percent===void 0?"%":M.percent+"",Z=M.minus===void 0?"-":M.minus+"",H=M.nan===void 0?"NaN":M.nan+"";function ee(re){re=l(re);var K=re.fill,ue=re.align,le=re.sign,ke=re.symbol,ze=re.zero,Fe=re.width,Xe=re.comma,Ce=re.precision,er=re.trim,ce=re.type;ce==="n"?(Xe=!0,ce="g"):d[ce]||(Ce===void 0&&(Ce=12),er=!0,ce="g"),(ze||K==="0"&&ue==="=")&&(ze=!0,K="0",ue="=");var ge=ke==="$"?R:ke==="#"&&/[boxX]/.test(ce)?"0"+ce.toLowerCase():"",Pe=ke==="$"?N:/[%p]/.test(ce)?O:"",de=d[ce],G=/[defgprs%]/.test(ce);Ce=Ce===void 0?6:/[gprs]/.test(ce)?Math.max(1,Math.min(21,Ce)):Math.max(0,Math.min(20,Ce));function Q($){var be=ge,qe=Pe,He,ar,Qe;if(ce==="c")qe=de($)+qe,$="";else{$=+$;var Be=$<0||1/$<0;if($=isNaN($)?H:de(Math.abs($),Ce),er&&($=u($)),Be&&+$==0&&le!=="+"&&(Be=!1),be=(Be?le==="("?le:Z:le==="-"||le==="("?"":le)+be,qe=(ce==="s"?y[8+f/3]:"")+qe+(Be&&le==="("?")":""),G){for(He=-1,ar=$.length;++HeQe||Qe>57){qe=(Qe===46?I+$.slice(He+1):$.slice(He))+qe,$=$.slice(0,He);break}}}Xe&&!ze&&($=D($,1/0));var cr=be.length+$.length+qe.length,or=cr>1)+be+$+qe+or.slice(cr);break;default:$=or+be+$+qe;break}return W($)}return Q.toString=function(){return re+""},Q}function ne(re,K){var ue=ee((re=l(re),re.type="f",re)),le=Math.max(-8,Math.min(8,Math.floor(n(K)/3)))*3,ke=Math.pow(10,-le),ze=y[8+le/3];return function(Fe){return ue(ke*Fe)+ze}}return{format:ee,formatPrefix:ne}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return C=_(M),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function b(M){return Math.max(0,-n(Math.abs(M)))}function A(M,D){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(D)/3)))*3-n(Math.abs(M)))}function k(M,D){return M=Math.abs(M),D=Math.abs(D)-M,Math.max(0,n(D)-n(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=_,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var u6=te((Ule,s6)=>{"use strict";s6.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Bt=te((Yle,f6)=>{"use strict";var hH=u6();f6.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&hH(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Rn=te((Gle,c6)=>{"use strict";c6.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var zy=te((_d,v6)=>{(function(e,r){typeof _d=="object"&&typeof v6!="undefined"?r(_d):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(_d,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,v,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var $s=te((Vle,h6)=>{"use strict";h6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var qi=te(hl=>{"use strict";var dH=zy().decode,pH=$s(),Ny=Array.isArray,gH=ArrayBuffer,mH=DataView;function d6(e){return gH.isView(e)&&!(e instanceof mH)}hl.isTypedArray=d6;function xd(e){return Ny(e)||d6(e)}hl.isArrayOrTypedArray=xd;function yH(e){return!xd(e[0])}hl.isArray1D=yH;hl.ensureArray=function(e,r){return Ny(e)||(e=[]),e.length=r,e};var Ca={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ca.uint8c=Ca.u1c;Ca.uint8=Ca.u1;Ca.int8=Ca.i1;Ca.uint16=Ca.u2;Ca.int16=Ca.i2;Ca.uint32=Ca.u4;Ca.int32=Ca.i4;Ca.float32=Ca.f4;Ca.float64=Ca.f8;function Fy(e){return e.constructor===ArrayBuffer}hl.isArrayBuffer=Fy;hl.decodeTypedArraySpec=function(e){var r=[],t=bH(e),n=t.dtype,a=Ca[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=t.bdata;Fy(o)||(o=dH(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,v=+l[0],h=i*v,d=0;if(s===1)r=new a(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var g6=Bt(),Hy=qi().isArrayOrTypedArray;_6.exports=function(r,t){if(g6(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var n=t.split("."),a,i,o,l;for(l=0;l{"use strict";var E0=u1(),AH=/^\w*$/,TH=0,x6=1,wd=2,w6=3,nc=4;M6.exports=function(r,t,n,a){n=n||"name",a=a||"value";var i,o,l,s={};t&&t.length?(l=E0(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|wd,v.set(h,null);if(f){for(i=d;i{"use strict";var kH=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,SH=/^[^\.\[\]]+$/;T6.exports=function(e,r){for(;r;){var t=e.match(kH);if(t)e=t[1];else if(e.match(SH))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Md=te((Jle,S6)=>{"use strict";var CH=Bt();S6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return CH(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var q6=te(($le,L6)=>{"use strict";var C6=qi().isArrayOrTypedArray,f1=$s();L6.exports=function e(r,t){for(var n in t){var a=t[n],i=r[n];if(i!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(C6(a)&&C6(i)&&f1(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;l{"use strict";function LH(e,r){var t=e%r;return t<0?t+r:t}function qH(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}D6.exports={mod:LH,modHalf:qH}});var es=te((Qle,Ad)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,i=e.min,o=e.max,l=e.random;function s(G,Q){if(G=G||"",Q=Q||{},G instanceof s)return G;if(!(this instanceof s))return new s(G,Q);var $=u(G);this._originalInput=G,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=a(100*this._a)/100,this._format=Q.format||$.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=$.ok,this._tc_id=n++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var G=this.toRgb();return(G.r*299+G.g*587+G.b*114)/1e3},getLuminance:function(){var G=this.toRgb(),Q,$,be,qe,He,ar;return Q=G.r/255,$=G.g/255,be=G.b/255,Q<=.03928?qe=Q/12.92:qe=e.pow((Q+.055)/1.055,2.4),$<=.03928?He=$/12.92:He=e.pow(($+.055)/1.055,2.4),be<=.03928?ar=be/12.92:ar=e.pow((be+.055)/1.055,2.4),.2126*qe+.7152*He+.0722*ar},setAlpha:function(G){return this._a=re(G),this._roundA=a(100*this._a)/100,this},toHsv:function(){var G=d(this._r,this._g,this._b);return{h:G.h*360,s:G.s,v:G.v,a:this._a}},toHsvString:function(){var G=d(this._r,this._g,this._b),Q=a(G.h*360),$=a(G.s*100),be=a(G.v*100);return this._a==1?"hsv("+Q+", "+$+"%, "+be+"%)":"hsva("+Q+", "+$+"%, "+be+"%, "+this._roundA+")"},toHsl:function(){var G=v(this._r,this._g,this._b);return{h:G.h*360,s:G.s,l:G.l,a:this._a}},toHslString:function(){var G=v(this._r,this._g,this._b),Q=a(G.h*360),$=a(G.s*100),be=a(G.l*100);return this._a==1?"hsl("+Q+", "+$+"%, "+be+"%)":"hsla("+Q+", "+$+"%, "+be+"%, "+this._roundA+")"},toHex:function(G){return p(this._r,this._g,this._b,G)},toHexString:function(G){return"#"+this.toHex(G)},toHex8:function(G){return y(this._r,this._g,this._b,this._a,G)},toHex8String:function(G){return"#"+this.toHex8(G)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(K(this._r,255)*100)+"%",g:a(K(this._g,255)*100)+"%",b:a(K(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(K(this._r,255)*100)+"%, "+a(K(this._g,255)*100)+"%, "+a(K(this._b,255)*100)+"%)":"rgba("+a(K(this._r,255)*100)+"%, "+a(K(this._g,255)*100)+"%, "+a(K(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ee[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(G){var Q="#"+_(this._r,this._g,this._b,this._a),$=Q,be=this._gradientType?"GradientType = 1, ":"";if(G){var qe=s(G);$="#"+_(qe._r,qe._g,qe._b,qe._a)}return"progid:DXImageTransform.Microsoft.gradient("+be+"startColorstr="+Q+",endColorstr="+$+")"},toString:function(G){var Q=!!G;G=G||this._format;var $=!1,be=this._a<1&&this._a>=0,qe=!Q&&be&&(G==="hex"||G==="hex6"||G==="hex3"||G==="hex4"||G==="hex8"||G==="name");return qe?G==="name"&&this._a===0?this.toName():this.toRgbString():(G==="rgb"&&($=this.toRgbString()),G==="prgb"&&($=this.toPercentageRgbString()),(G==="hex"||G==="hex6")&&($=this.toHexString()),G==="hex3"&&($=this.toHexString(!0)),G==="hex4"&&($=this.toHex8String(!0)),G==="hex8"&&($=this.toHex8String()),G==="name"&&($=this.toName()),G==="hsl"&&($=this.toHslString()),G==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(G,Q){var $=G.apply(null,[this].concat([].slice.call(Q)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(G,Q){return G.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(Z,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(N,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},s.fromRatio=function(G,Q){if(typeof G=="object"){var $={};for(var be in G)G.hasOwnProperty(be)&&(be==="a"?$[be]=G[be]:$[be]=Xe(G[be]));G=$}return s(G,Q)};function u(G){var Q={r:0,g:0,b:0},$=1,be=null,qe=null,He=null,ar=!1,Qe=!1;return typeof G=="string"&&(G=Pe(G)),typeof G=="object"&&(ge(G.r)&&ge(G.g)&&ge(G.b)?(Q=f(G.r,G.g,G.b),ar=!0,Qe=String(G.r).substr(-1)==="%"?"prgb":"rgb"):ge(G.h)&&ge(G.s)&&ge(G.v)?(be=Xe(G.s),qe=Xe(G.v),Q=m(G.h,be,qe),ar=!0,Qe="hsv"):ge(G.h)&&ge(G.s)&&ge(G.l)&&(be=Xe(G.s),He=Xe(G.l),Q=h(G.h,be,He),ar=!0,Qe="hsl"),G.hasOwnProperty("a")&&($=G.a)),$=re($),{ok:ar,format:G.format||Qe,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:$}}function f(G,Q,$){return{r:K(G,255)*255,g:K(Q,255)*255,b:K($,255)*255}}function v(G,Q,$){G=K(G,255),Q=K(Q,255),$=K($,255);var be=o(G,Q,$),qe=i(G,Q,$),He,ar,Qe=(be+qe)/2;if(be==qe)He=ar=0;else{var Be=be-qe;switch(ar=Qe>.5?Be/(2-be-qe):Be/(be+qe),be){case G:He=(Q-$)/Be+(Q<$?6:0);break;case Q:He=($-G)/Be+2;break;case $:He=(G-Q)/Be+4;break}He/=6}return{h:He,s:ar,l:Qe}}function h(G,Q,$){var be,qe,He;G=K(G,360),Q=K(Q,100),$=K($,100);function ar(cr,or,hr){return hr<0&&(hr+=1),hr>1&&(hr-=1),hr<1/6?cr+(or-cr)*6*hr:hr<1/2?or:hr<2/3?cr+(or-cr)*(2/3-hr)*6:cr}if(Q===0)be=qe=He=$;else{var Qe=$<.5?$*(1+Q):$+Q-$*Q,Be=2*$-Qe;be=ar(Be,Qe,G+1/3),qe=ar(Be,Qe,G),He=ar(Be,Qe,G-1/3)}return{r:be*255,g:qe*255,b:He*255}}function d(G,Q,$){G=K(G,255),Q=K(Q,255),$=K($,255);var be=o(G,Q,$),qe=i(G,Q,$),He,ar,Qe=be,Be=be-qe;if(ar=be===0?0:Be/be,be==qe)He=0;else{switch(be){case G:He=(Q-$)/Be+(Q<$?6:0);break;case Q:He=($-G)/Be+2;break;case $:He=(G-Q)/Be+4;break}He/=6}return{h:He,s:ar,v:Qe}}function m(G,Q,$){G=K(G,360)*6,Q=K(Q,100),$=K($,100);var be=e.floor(G),qe=G-be,He=$*(1-Q),ar=$*(1-qe*Q),Qe=$*(1-(1-qe)*Q),Be=be%6,cr=[$,ar,He,He,Qe,$][Be],or=[Qe,$,$,ar,He,He][Be],hr=[He,He,Qe,$,$,ar][Be];return{r:cr*255,g:or*255,b:hr*255}}function p(G,Q,$,be){var qe=[Fe(a(G).toString(16)),Fe(a(Q).toString(16)),Fe(a($).toString(16))];return be&&qe[0].charAt(0)==qe[0].charAt(1)&&qe[1].charAt(0)==qe[1].charAt(1)&&qe[2].charAt(0)==qe[2].charAt(1)?qe[0].charAt(0)+qe[1].charAt(0)+qe[2].charAt(0):qe.join("")}function y(G,Q,$,be,qe){var He=[Fe(a(G).toString(16)),Fe(a(Q).toString(16)),Fe(a($).toString(16)),Fe(Ce(be))];return qe&&He[0].charAt(0)==He[0].charAt(1)&&He[1].charAt(0)==He[1].charAt(1)&&He[2].charAt(0)==He[2].charAt(1)&&He[3].charAt(0)==He[3].charAt(1)?He[0].charAt(0)+He[1].charAt(0)+He[2].charAt(0)+He[3].charAt(0):He.join("")}function _(G,Q,$,be){var qe=[Fe(Ce(be)),Fe(a(G).toString(16)),Fe(a(Q).toString(16)),Fe(a($).toString(16))];return qe.join("")}s.equals=function(G,Q){return!G||!Q?!1:s(G).toRgbString()==s(Q).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function C(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.s-=Q/100,$.s=ue($.s),s($)}function x(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.s+=Q/100,$.s=ue($.s),s($)}function b(G){return s(G).desaturate(100)}function A(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.l+=Q/100,$.l=ue($.l),s($)}function k(G,Q){Q=Q===0?0:Q||10;var $=s(G).toRgb();return $.r=o(0,i(255,$.r-a(255*-(Q/100)))),$.g=o(0,i(255,$.g-a(255*-(Q/100)))),$.b=o(0,i(255,$.b-a(255*-(Q/100)))),s($)}function M(G,Q){Q=Q===0?0:Q||10;var $=s(G).toHsl();return $.l-=Q/100,$.l=ue($.l),s($)}function D(G,Q){var $=s(G).toHsl(),be=($.h+Q)%360;return $.h=be<0?360+be:be,s($)}function R(G){var Q=s(G).toHsl();return Q.h=(Q.h+180)%360,s(Q)}function N(G){var Q=s(G).toHsl(),$=Q.h;return[s(G),s({h:($+120)%360,s:Q.s,l:Q.l}),s({h:($+240)%360,s:Q.s,l:Q.l})]}function I(G){var Q=s(G).toHsl(),$=Q.h;return[s(G),s({h:($+90)%360,s:Q.s,l:Q.l}),s({h:($+180)%360,s:Q.s,l:Q.l}),s({h:($+270)%360,s:Q.s,l:Q.l})]}function W(G){var Q=s(G).toHsl(),$=Q.h;return[s(G),s({h:($+72)%360,s:Q.s,l:Q.l}),s({h:($+216)%360,s:Q.s,l:Q.l})]}function O(G,Q,$){Q=Q||6,$=$||30;var be=s(G).toHsl(),qe=360/$,He=[s(G)];for(be.h=(be.h-(qe*Q>>1)+720)%360;--Q;)be.h=(be.h+qe)%360,He.push(s(be));return He}function Z(G,Q){Q=Q||6;for(var $=s(G).toHsv(),be=$.h,qe=$.s,He=$.v,ar=[],Qe=1/Q;Q--;)ar.push(s({h:be,s:qe,v:He})),He=(He+Qe)%1;return ar}s.mix=function(G,Q,$){$=$===0?0:$||50;var be=s(G).toRgb(),qe=s(Q).toRgb(),He=$/100,ar={r:(qe.r-be.r)*He+be.r,g:(qe.g-be.g)*He+be.g,b:(qe.b-be.b)*He+be.b,a:(qe.a-be.a)*He+be.a};return s(ar)},s.readability=function(G,Q){var $=s(G),be=s(Q);return(e.max($.getLuminance(),be.getLuminance())+.05)/(e.min($.getLuminance(),be.getLuminance())+.05)},s.isReadable=function(G,Q,$){var be=s.readability(G,Q),qe,He;switch(He=!1,qe=de($),qe.level+qe.size){case"AAsmall":case"AAAlarge":He=be>=4.5;break;case"AAlarge":He=be>=3;break;case"AAAsmall":He=be>=7;break}return He},s.mostReadable=function(G,Q,$){var be=null,qe=0,He,ar,Qe,Be;$=$||{},ar=$.includeFallbackColors,Qe=$.level,Be=$.size;for(var cr=0;crqe&&(qe=He,be=s(Q[cr]));return s.isReadable(G,be,{level:Qe,size:Be})||!ar?be:($.includeFallbackColors=!1,s.mostReadable(G,["#fff","#000"],$))};var H=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ee=s.hexNames=ne(H);function ne(G){var Q={};for(var $ in G)G.hasOwnProperty($)&&(Q[G[$]]=$);return Q}function re(G){return G=parseFloat(G),(isNaN(G)||G<0||G>1)&&(G=1),G}function K(G,Q){ke(G)&&(G="100%");var $=ze(G);return G=i(Q,o(0,parseFloat(G))),$&&(G=parseInt(G*Q,10)/100),e.abs(G-Q)<1e-6?1:G%Q/parseFloat(Q)}function ue(G){return i(1,o(0,G))}function le(G){return parseInt(G,16)}function ke(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1}function ze(G){return typeof G=="string"&&G.indexOf("%")!=-1}function Fe(G){return G.length==1?"0"+G:""+G}function Xe(G){return G<=1&&(G=G*100+"%"),G}function Ce(G){return e.round(parseFloat(G)*255).toString(16)}function er(G){return le(G)/255}var ce=(function(){var G="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",$="(?:"+Q+")|(?:"+G+")",be="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",qe="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+be),rgba:new RegExp("rgba"+qe),hsl:new RegExp("hsl"+be),hsla:new RegExp("hsla"+qe),hsv:new RegExp("hsv"+be),hsva:new RegExp("hsva"+qe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function ge(G){return!!ce.CSS_UNIT.exec(G)}function Pe(G){G=G.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(H[G])G=H[G],Q=!0;else if(G=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=ce.rgb.exec(G))?{r:$[1],g:$[2],b:$[3]}:($=ce.rgba.exec(G))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=ce.hsl.exec(G))?{h:$[1],s:$[2],l:$[3]}:($=ce.hsla.exec(G))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=ce.hsv.exec(G))?{h:$[1],s:$[2],v:$[3]}:($=ce.hsva.exec(G))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=ce.hex8.exec(G))?{r:le($[1]),g:le($[2]),b:le($[3]),a:er($[4]),format:Q?"name":"hex8"}:($=ce.hex6.exec(G))?{r:le($[1]),g:le($[2]),b:le($[3]),format:Q?"name":"hex"}:($=ce.hex4.exec(G))?{r:le($[1]+""+$[1]),g:le($[2]+""+$[2]),b:le($[3]+""+$[3]),a:er($[4]+""+$[4]),format:Q?"name":"hex8"}:($=ce.hex3.exec(G))?{r:le($[1]+""+$[1]),g:le($[2]+""+$[2]),b:le($[3]+""+$[3]),format:Q?"name":"hex"}:!1}function de(G){var Q,$;return G=G||{level:"AA",size:"small"},Q=(G.level||"AA").toUpperCase(),$=(G.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),$!=="small"&&$!=="large"&&($="small"),{level:Q,size:$}}typeof Ad!="undefined"&&Ad.exports?Ad.exports=s:window.tinycolor=s})(Math)});var fa=te(h1=>{"use strict";var E6=$s(),c1=Array.isArray;function DH(e,r){var t,n;for(t=0;t{"use strict";P6.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var d1=te((tse,R6)=>{"use strict";R6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var R0=te((nse,F6)=>{"use strict";var z6=d1(),N6=Qa(),By=N6({editType:"none"});By.family.dflt=z6.HOVERFONT;By.size.dflt=z6.HOVERFONTSIZE;F6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:By,grouptitlefont:N6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Td=te((ase,I6)=>{"use strict";var EH=Qa(),p1=R0().hoverlabel,g1=fa().extendFlat;I6.exports={hoverlabel:{bgcolor:g1({},p1.bgcolor,{arrayOk:!0}),bordercolor:g1({},p1.bordercolor,{arrayOk:!0}),font:EH({arrayOk:!0,editType:"none"}),align:g1({},p1.align,{arrayOk:!0}),namelength:g1({},p1.namelength,{arrayOk:!0}),showarrow:g1({},p1.showarrow),editType:"none"}}});var _o=te((ise,H6)=>{"use strict";var PH=Qa(),RH=Td();H6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:PH({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:RH.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ac=te((ose,U6)=>{"use strict";var zH=es(),kd={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},B6=kd.RdBu;function NH(e,r){if(r||(r=B6),!e)return r;function t(){try{e=kd[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),O6(e)?e:r}function O6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";ic.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];ic.defaultLine="#444";ic.lightLine="#eee";ic.background="#fff";ic.borderLine="#BEC8D9";ic.lightFraction=1e3/11});var Pt=te((sse,Y6)=>{"use strict";var Di=es(),IH=Bt(),HH=qi().isTypedArray,_a=Y6.exports={},Sd=dl();_a.defaults=Sd.defaults;var BH=_a.defaultLine=Sd.defaultLine;_a.lightLine=Sd.lightLine;var Uy=_a.background=Sd.background;_a.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};_a.rgb=function(e){return _a.tinyRGB(Di(e))};_a.opacity=function(e){return e?Di(e).getAlpha():0};_a.addOpacity=function(e,r){var t=Di(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};_a.combine=function(e,r){var t=Di(e).toRgb();if(t.a===1)return Di(e).toRgbString();var n=Di(r||Uy).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},i={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return Di(i).toRgbString()};_a.interpolate=function(e,r,t){var n=Di(e).toRgb(),a=Di(r).toRgb(),i={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return Di(i).toRgbString()};_a.contrast=function(e,r,t){var n=Di(e);n.getAlpha()!==1&&(n=Di(_a.combine(e,Uy)));var a=n.isDark()?r?n.lighten(r):Uy:t?n.darken(t):BH;return a.toString()};_a.stroke=function(e,r){var t=Di(r);e.style({stroke:_a.tinyRGB(t),"stroke-opacity":t.getAlpha()})};_a.fill=function(e,r){var t=Di(r);e.style({fill:_a.tinyRGB(t),"fill-opacity":t.getAlpha()})};_a.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,i;for(t=0;t=0)))return e;if(i===3)n[i]>1&&(n[i]=1);else if(n[i]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var Cd=te((use,G6)=>{"use strict";G6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var z0=te(V6=>{"use strict";V6.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),i=n===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}});var j6=te(Ei=>{"use strict";var Yy=Bt(),W6=es(),Z6=fa().extendFlat,OH=_o(),UH=ac(),YH=Pt(),GH=Cd().DESELECTDIM,N0=u1(),X6=z0().counter,VH=P0().modHalf,pl=qi().isArrayOrTypedArray,Iu=qi().isTypedArraySpec,Hu=qi().decodeTypedArraySpec;Ei.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(pl(e)?e:Iu(e)?Hu(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;ni===!0||i===!1;a(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,n){Iu(e)&&(e=Hu(e)),!Yy(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Iu(e)&&(e=Hu(e)),e%1||!Yy(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Iu(e)&&(e=Hu(e)),W6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return W6(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(UH.get(e,t))}},angle:{coerceFunction:function(e,r,t){Iu(e)&&(e=Hu(e)),e==="auto"?r.set("auto"):Yy(e)?r.set(VH(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||X6(t);let i=o=>typeof o=="string"&&a.test(o);i(e)||n.arrayOk&&pl(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!X6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),i=0;i{"use strict";var J6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},$6={};function K6(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),K6(n,r[t]))}}K6(J6,$6);Q6.exports={configAttributes:J6,dfltConfig:$6}});var Vy=te((hse,ex)=>{"use strict";var Gy=Tt(),WH=Bt(),m1=[];ex.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||m1.indexOf(e)!==-1)return;m1.push(e);var n=1e3;WH(r)?n=r:r==="long"&&(n=3e3);var a=Gy.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var i=a.selectAll(".notifier-note").data(m1);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=m1.indexOf(u);f!==-1&&m1.splice(f,1),Gy.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=Gy.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),v=s.split(//g),h=0;h{"use strict";var F0=oc().dfltConfig,Wy=Vy(),Zy=rx.exports={};Zy.log=function(){var e;if(F0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Zy.warn=function(){var e;if(F0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Zy.error=function(){var e;if(F0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var qd=te((pse,tx)=>{"use strict";tx.exports=function(){}});var Xy=te((gse,nx)=>{"use strict";nx.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{ax.exports=ZH;function ZH(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var lx=te((yse,ox)=>{ox.exports=XH;function XH(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var ux=te((bse,sx)=>{sx.exports=jH;function jH(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var jy=te((_se,fx)=>{fx.exports=JH;function JH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var vx=te((xse,cx)=>{cx.exports=$H;function $H(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=i,e[11]=r[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var dx=te((wse,hx)=>{hx.exports=KH;function KH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],_=r[15],C=t*l-n*o,x=t*s-a*o,b=t*u-i*o,A=n*s-a*l,k=n*u-i*l,M=a*u-i*s,D=f*p-v*m,R=f*y-h*m,N=f*_-d*m,I=v*y-h*p,W=v*_-d*p,O=h*_-d*y,Z=C*O-x*W+b*I+A*N-k*R+M*D;return Z?(Z=1/Z,e[0]=(l*O-s*W+u*I)*Z,e[1]=(a*W-n*O-i*I)*Z,e[2]=(p*M-y*k+_*A)*Z,e[3]=(h*k-v*M-d*A)*Z,e[4]=(s*N-o*O-u*R)*Z,e[5]=(t*O-a*N+i*R)*Z,e[6]=(y*b-m*M-_*x)*Z,e[7]=(f*M-h*b+d*x)*Z,e[8]=(o*W-l*N+u*D)*Z,e[9]=(n*N-t*W-i*D)*Z,e[10]=(m*k-p*b+_*C)*Z,e[11]=(v*b-f*k-d*C)*Z,e[12]=(l*R-o*I-s*D)*Z,e[13]=(t*I-n*R+a*D)*Z,e[14]=(p*x-m*A-y*C)*Z,e[15]=(f*A-v*x+h*C)*Z,e):null}});var gx=te((Mse,px)=>{px.exports=QH;function QH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],_=r[15];return e[0]=l*(h*_-d*y)-v*(s*_-u*y)+p*(s*d-u*h),e[1]=-(n*(h*_-d*y)-v*(a*_-i*y)+p*(a*d-i*h)),e[2]=n*(s*_-u*y)-l*(a*_-i*y)+p*(a*u-i*s),e[3]=-(n*(s*d-u*h)-l*(a*d-i*h)+v*(a*u-i*s)),e[4]=-(o*(h*_-d*y)-f*(s*_-u*y)+m*(s*d-u*h)),e[5]=t*(h*_-d*y)-f*(a*_-i*y)+m*(a*d-i*h),e[6]=-(t*(s*_-u*y)-o*(a*_-i*y)+m*(a*u-i*s)),e[7]=t*(s*d-u*h)-o*(a*d-i*h)+f*(a*u-i*s),e[8]=o*(v*_-d*p)-f*(l*_-u*p)+m*(l*d-u*v),e[9]=-(t*(v*_-d*p)-f*(n*_-i*p)+m*(n*d-i*v)),e[10]=t*(l*_-u*p)-o*(n*_-i*p)+m*(n*u-i*l),e[11]=-(t*(l*d-u*v)-o*(n*d-i*v)+f*(n*u-i*l)),e[12]=-(o*(v*y-h*p)-f*(l*y-s*p)+m*(l*h-s*v)),e[13]=t*(v*y-h*p)-f*(n*y-a*p)+m*(n*h-a*v),e[14]=-(t*(l*y-s*p)-o*(n*y-a*p)+m*(n*s-a*l)),e[15]=t*(l*h-s*v)-o*(n*h-a*v)+f*(n*s-a*l),e}});var yx=te((Ase,mx)=>{mx.exports=eB;function eB(e){var r=e[0],t=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],_=r*o-t*i,C=r*l-n*i,x=r*s-a*i,b=t*l-n*o,A=t*s-a*o,k=n*s-a*l,M=u*m-f*d,D=u*p-v*d,R=u*y-h*d,N=f*p-v*m,I=f*y-h*m,W=v*y-h*p;return _*W-C*I+x*N+b*R-A*D+k*M}});var _x=te((Tse,bx)=>{bx.exports=rB;function rB(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],_=r[14],C=r[15],x=t[0],b=t[1],A=t[2],k=t[3];return e[0]=x*n+b*l+A*v+k*p,e[1]=x*a+b*s+A*h+k*y,e[2]=x*i+b*u+A*d+k*_,e[3]=x*o+b*f+A*m+k*C,x=t[4],b=t[5],A=t[6],k=t[7],e[4]=x*n+b*l+A*v+k*p,e[5]=x*a+b*s+A*h+k*y,e[6]=x*i+b*u+A*d+k*_,e[7]=x*o+b*f+A*m+k*C,x=t[8],b=t[9],A=t[10],k=t[11],e[8]=x*n+b*l+A*v+k*p,e[9]=x*a+b*s+A*h+k*y,e[10]=x*i+b*u+A*d+k*_,e[11]=x*o+b*f+A*m+k*C,x=t[12],b=t[13],A=t[14],k=t[15],e[12]=x*n+b*l+A*v+k*p,e[13]=x*a+b*s+A*h+k*y,e[14]=x*i+b*u+A*d+k*_,e[15]=x*o+b*f+A*m+k*C,e}});var wx=te((kse,xx)=>{xx.exports=tB;function tB(e,r,t){var n=t[0],a=t[1],i=t[2],o,l,s,u,f,v,h,d,m,p,y,_;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*i+r[12],e[13]=r[1]*n+r[5]*a+r[9]*i+r[13],e[14]=r[2]*n+r[6]*a+r[10]*i+r[14],e[15]=r[3]*n+r[7]*a+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],_=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=_,e[12]=o*n+f*a+m*i+r[12],e[13]=l*n+v*a+p*i+r[13],e[14]=s*n+h*a+y*i+r[14],e[15]=u*n+d*a+_*i+r[15]),e}});var Ax=te((Sse,Mx)=>{Mx.exports=nB;function nB(e,r,t){var n=t[0],a=t[1],i=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var kx=te((Cse,Tx)=>{Tx.exports=aB;function aB(e,r,t,n){var a=n[0],i=n[1],o=n[2],l=Math.sqrt(a*a+i*i+o*o),s,u,f,v,h,d,m,p,y,_,C,x,b,A,k,M,D,R,N,I,W,O,Z,H;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],_=r[6],C=r[7],x=r[8],b=r[9],A=r[10],k=r[11],M=a*a*f+u,D=i*a*f+o*s,R=o*a*f-i*s,N=a*i*f-o*s,I=i*i*f+u,W=o*i*f+a*s,O=a*o*f+i*s,Z=i*o*f-a*s,H=o*o*f+u,e[0]=v*M+p*D+x*R,e[1]=h*M+y*D+b*R,e[2]=d*M+_*D+A*R,e[3]=m*M+C*D+k*R,e[4]=v*N+p*I+x*W,e[5]=h*N+y*I+b*W,e[6]=d*N+_*I+A*W,e[7]=m*N+C*I+k*W,e[8]=v*O+p*Z+x*H,e[9]=h*O+y*Z+b*H,e[10]=d*O+_*Z+A*H,e[11]=m*O+C*Z+k*H,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var Cx=te((Lse,Sx)=>{Sx.exports=iB;function iB(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*a+u*n,e[5]=o*a+f*n,e[6]=l*a+v*n,e[7]=s*a+h*n,e[8]=u*a-i*n,e[9]=f*a-o*n,e[10]=v*a-l*n,e[11]=h*a-s*n,e}});var qx=te((qse,Lx)=>{Lx.exports=oB;function oB(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a-u*n,e[1]=o*a-f*n,e[2]=l*a-v*n,e[3]=s*a-h*n,e[8]=i*n+u*a,e[9]=o*n+f*a,e[10]=l*n+v*a,e[11]=s*n+h*a,e}});var Ex=te((Dse,Dx)=>{Dx.exports=lB;function lB(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a+u*n,e[1]=o*a+f*n,e[2]=l*a+v*n,e[3]=s*a+h*n,e[4]=u*a-i*n,e[5]=f*a-o*n,e[6]=v*a-l*n,e[7]=h*a-s*n,e}});var Rx=te((Ese,Px)=>{Px.exports=sB;function sB(e,r,t){var n,a,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,n=Math.sin(r),a=Math.cos(r),i=1-a,e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Nx=te((Pse,zx)=>{zx.exports=uB;function uB(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=n+n,s=a+a,u=i+i,f=n*l,v=n*s,h=n*u,d=a*s,m=a*u,p=i*u,y=o*l,_=o*s,C=o*u;return e[0]=1-(d+p),e[1]=v+C,e[2]=h-_,e[3]=0,e[4]=v-C,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+_,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Ix=te((Rse,Fx)=>{Fx.exports=fB;function fB(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Bx=te((zse,Hx)=>{Hx.exports=cB;function cB(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Ux=te((Nse,Ox)=>{Ox.exports=vB;function vB(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Gx=te((Fse,Yx)=>{Yx.exports=hB;function hB(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Wx=te((Ise,Vx)=>{Vx.exports=dB;function dB(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Xx=te((Hse,Zx)=>{Zx.exports=pB;function pB(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=t+t,l=n+n,s=a+a,u=t*o,f=n*o,v=n*l,h=a*o,d=a*l,m=a*s,p=i*o,y=i*l,_=i*s;return e[0]=1-v-m,e[1]=f+_,e[2]=h-y,e[3]=0,e[4]=f-_,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Jx=te((Bse,jx)=>{jx.exports=gB;function gB(e,r,t,n,a,i,o){var l=1/(t-r),s=1/(a-n),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var Kx=te((Ose,$x)=>{$x.exports=mB;function mB(e,r,t,n,a){var i=1/Math.tan(r/2),o=1/(n-a);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}});var e7=te((Use,Qx)=>{Qx.exports=yB;function yB(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(a-i)*u*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var t7=te((Yse,r7)=>{r7.exports=bB;function bB(e,r,t,n,a,i,o){var l=1/(r-t),s=1/(n-a),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*s,e[14]=(o+i)*u,e[15]=1,e}});var a7=te((Gse,n7)=>{var _B=jy();n7.exports=xB;function xB(e,r,t,n){var a,i,o,l,s,u,f,v,h,d,m=r[0],p=r[1],y=r[2],_=n[0],C=n[1],x=n[2],b=t[0],A=t[1],k=t[2];return Math.abs(m-b)<1e-6&&Math.abs(p-A)<1e-6&&Math.abs(y-k)<1e-6?_B(e):(f=m-b,v=p-A,h=y-k,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,a=C*h-x*v,i=x*f-_*h,o=_*v-C*f,d=Math.sqrt(a*a+i*i+o*o),d?(d=1/d,a*=d,i*=d,o*=d):(a=0,i=0,o=0),l=v*o-h*i,s=h*a-f*o,u=f*i-v*a,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(a*m+i*p+o*y),e[13]=-(l*m+s*p+u*y),e[14]=-(f*m+v*p+h*y),e[15]=1,e)}});var o7=te((Vse,i7)=>{i7.exports=wB;function wB(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Jy=te((Wse,l7)=>{l7.exports={create:ix(),clone:lx(),copy:ux(),identity:jy(),transpose:vx(),invert:dx(),adjoint:gx(),determinant:yx(),multiply:_x(),translate:wx(),scale:Ax(),rotate:kx(),rotateX:Cx(),rotateY:qx(),rotateZ:Ex(),fromRotation:Rx(),fromRotationTranslation:Nx(),fromScaling:Ix(),fromTranslation:Bx(),fromXRotation:Ux(),fromYRotation:Gx(),fromZRotation:Wx(),fromQuat:Xx(),frustum:Jx(),perspective:Kx(),perspectiveFromFieldOfView:e7(),ortho:t7(),lookAt:a7(),str:o7()}});var Dd=te($n=>{"use strict";var MB=Jy();$n.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var AB=Tt(),s7=Bu(),TB=Dd(),kB=Jy();function SB(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function CB(e){var r=AB.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function u7(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function LB(e,r){f7("global",e,r)}function f7(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var i=a.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):s7.warn("addStyleRule failed"):s7.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function qB(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&u7(t)}function DB(e,r,t,n,a,i){var o=n.split(":"),l=a.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function EB(e){var r=v7(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=c7(n);if(a){var i=TB.convertCssMatrix(a);t=kB.multiply(t,t,i)}}),t}function c7(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function v7(e){for(var r=[];PB(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function PB(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function RB(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}h7.exports={getGraphDiv:SB,isPlotDiv:CB,removeElement:u7,addStyleRule:LB,addRelatedStyleRule:f7,deleteRelatedStyleRule:qB,setStyleOnHover:DB,getFullTransformMatrix:EB,getElementTransformMatrix:c7,getElementAndAncestors:v7,equalDomRects:RB}});var b1=te((jse,d7)=>{"use strict";d7.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var xo=te((Jse,x7)=>{"use strict";var g7=fa().extendFlat,zB=$s(),m7={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},y7={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},NB=m7.flags.slice().concat(["fullReplot"]),FB=y7.flags.slice().concat("layoutReplot");x7.exports={traces:m7,layout:y7,traceFlags:function(){return p7(NB)},layoutFlags:function(){return p7(FB)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";$y.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};$y.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Ky=te((Kse,w7)=>{"use strict";w7.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var lc=te(I0=>{"use strict";var{DATE_FORMAT_LINK:IB,FORMAT_LINK:HB}=Ky(),BB=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function OB({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,HB,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,IB,"for details on the date formatting syntax.",BB].join(" ")}I0.templateFormatStringDescription=OB;I0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>tc({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});I0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>tc({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});I0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});I0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Rd=te((rue,C7)=>{"use strict";function Ou(e,r){return r?r.d2l(e):e}function M7(e,r){return r?r.l2d(e):e}function UB(e){return e.x0}function YB(e){return e.x1}function GB(e){return e.y0}function VB(e){return e.y1}function A7(e){return e.x0shift||0}function T7(e){return e.x1shift||0}function k7(e){return e.y0shift||0}function S7(e){return e.y1shift||0}function Ed(e,r){return Ou(e.x1,r)+T7(e)-Ou(e.x0,r)-A7(e)}function Pd(e,r,t){return Ou(e.y1,t)+S7(e)-Ou(e.y0,t)-k7(e)}function WB(e,r){return Math.abs(Ed(e,r))}function ZB(e,r,t){return Math.abs(Pd(e,r,t))}function XB(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ed(e,r),2)+Math.pow(Pd(e,r,t),2))}function jB(e,r){return M7((Ou(e.x1,r)+T7(e)+Ou(e.x0,r)+A7(e))/2,r)}function JB(e,r,t){return M7((Ou(e.y1,t)+S7(e)+Ou(e.y0,t)+k7(e))/2,t)}function $B(e,r,t){return e.type!=="line"?void 0:Pd(e,r,t)/Ed(e,r)}var KB=["x0","x1","y0","y1","dy","height","ycenter"],QB=["x0","x1","y0","y1","dx","width","xcenter"];C7.exports={x0:UB,x1:YB,y0:GB,y1:VB,slope:$B,dx:Ed,dy:Pd,width:WB,height:ZB,length:XB,xcenter:jB,ycenter:JB,simpleXVariables:KB,simpleYVariables:QB}});var D7=te((tue,q7)=>{"use strict";var eO=xo().overrideAll,sc=_o(),L7=Qa(),rO=rs().dash,Uu=fa().extendFlat,{shapeTexttemplateAttrs:tO,templatefallbackAttrs:nO}=lc(),aO=Rd();q7.exports=eO({newshape:{visible:Uu({},sc.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Uu({},sc.legend,{}),legendgroup:Uu({},sc.legendgroup,{}),legendgrouptitle:{text:Uu({},sc.legendgrouptitle.text,{}),font:L7({})},legendrank:Uu({},sc.legendrank,{}),legendwidth:Uu({},sc.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Uu({},rO,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Uu({},sc.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:tO({newshape:!0},{keys:Object.keys(aO)}),texttemplatefallback:nO({editType:"arraydraw"}),font:L7({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var P7=te((nue,E7)=>{"use strict";var iO=rs().dash,oO=fa().extendFlat;E7.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:oO({},iO,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var zd=te((aue,R7)=>{"use strict";R7.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var H0=te((iue,I7)=>{"use strict";var Qy=Qa(),lO=b1(),Nd=dl(),z7=D7(),N7=P7(),sO=zd(),F7=fa().extendFlat,Fd=Qy({editType:"calc"});Fd.family.dflt='"Open Sans", verdana, arial, sans-serif';Fd.size.dflt=12;Fd.color.dflt=Nd.defaultLine;I7.exports={font:Fd,title:{text:{valType:"string",editType:"layoutstyle"},font:Qy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Qy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:F7(sO({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Nd.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Nd.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Nd.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:z7.newshape,activeshape:z7.activeshape,newselection:N7.newselection,activeselection:N7.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:F7({},lO.transition,{editType:"none"})}});var H7=te(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var dt=te(Dt=>{"use strict";var B0=Bu(),B7=qd(),O7=Xy(),uO=$s(),fO=y1().addStyleRule,U7=fa(),cO=_o(),vO=H0(),hO=U7.extendFlat,e2=U7.extendDeepAll;Dt.modules={};Dt.allCategories={};Dt.allTypes=[];Dt.subplotsRegistry={};Dt.componentsRegistry={};Dt.layoutArrayContainers=[];Dt.layoutArrayRegexes=[];Dt.traceLayoutAttributes={};Dt.localeRegistry={};Dt.apiMethodRegistry={};Dt.collectableSubplotTypes=null;Dt.register=function(r){if(Dt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var bO=D0().timeFormat,Q7=Bt(),r2=Bu(),Gu=P0().mod,Y0=Rn(),wo=Y0.BADNUM,Pi=Y0.ONEDAY,_1=Y0.ONEHOUR,Yu=Y0.ONEMIN,U0=Y0.ONESEC,x1=Y0.EPOCHJD,Ks=dt(),Z7=D0().utcFormat,_O=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,xO=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,X7=new Date().getFullYear()-70;function Qs(e){return e&&Ks.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Kn.dateTick0=function(e,r){var t=wO(e,!!r);if(r<2)return t;var n=Kn.dateTime2ms(t,e);return n+=Pi*(r-1),Kn.ms2DateTime(n,0,e)};function wO(e,r){return Qs(e)?r?Ks.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ks.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Kn.dfltRange=function(e){return Qs(e)?Ks.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Kn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Hd,Bd;Kn.dateTime2ms=function(e,r){if(Kn.isJSDate(e)){var t=e.getTimezoneOffset()*Yu,n=(e.getUTCMinutes()-e.getMinutes())*Yu+(e.getUTCSeconds()-e.getSeconds())*U0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Yu;t=t-a/2+Gu(n-t+a/2,a)}return e=Number(e)-t,e>=Hd&&e<=Bd?e:wo}if(typeof e!="string"&&typeof e!="number")return wo;e=String(e);var i=Qs(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?xO:_O);if(!s)return wo;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return wo;u=Number(u);var p;try{var y=Ks.getComponentMethod("calendars","getCal")(r);if(l){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(u,y.toMonthIndex(u,f,_),v)}else p=y.newDate(u,Number(f),v)}catch(x){return wo}return p?(p.toJD()-x1)*Pi+h*_1+d*Yu+m*U0:wo}u.length===2?u=(Number(u)+2e3-X7)%100+X7:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,v,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==v?wo:C.getTime()+m*U0};Hd=Kn.MIN_MS=Kn.dateTime2ms("-9999");Bd=Kn.MAX_MS=Kn.dateTime2ms("9999-12-31 23:59:59.9999");Kn.isDateTime=function(e,r){return Kn.dateTime2ms(e,r)!==wo};function O0(e,r){return String(e+Math.pow(10,r)).slice(1)}var Id=90*Pi,j7=3*_1,J7=5*Yu;Kn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Hd&&e<=Bd))return wo;r||(r=0);var n=Math.floor(Gu(e+.05,1)*10),a=Math.round(e-n/10),i,o,l,s,u,f;if(Qs(t)){var v=Math.floor(a/Pi)+x1,h=Math.floor(Gu(e,Pi));try{i=Ks.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=Z7("G%Y-%m-%d")(new Date(a))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r=Hd+Pi&&e<=Bd-Pi))return wo;var r=Math.floor(Gu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=bO("%Y-%m-%d")(t),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return ew(n,a,i,o,l)};function ew(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+O0(r,2)+":"+O0(t,2),(n||a)&&(e+=":"+O0(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+O0(a,i)}return e}Kn.cleanDate=function(e,r,t){if(e===wo)return r;if(Kn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Qs(t))return r2.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Kn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Kn.isDateTime(e,t))return r2.error("unrecognized date",e),r;return e};var MO=/%\d?f/g,AO=/%h/g,TO={1:"1",2:"1",3:"2",4:"2"};function $7(e,r,t,n){e=e.replace(MO,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(AO,function(){return TO[t("%q")(a)]}),Qs(n))try{e=Ks.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(i){return"Invalid"}return t(e)(a)}var kO=[59,59.9,59.99,59.999,59.9999];function SO(e,r){var t=Gu(e+.05,Pi),n=O0(Math.floor(t/_1),2)+":"+O0(Gu(Math.floor(t/Yu),60),2);if(r!=="M"){Q7(r)||(r=0);var a=Math.min(Gu(e/U0,60),kO[r]),i=(100+a).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}Kn.formatDate=function(e,r,t,n,a,i){if(a=Qs(a)&&a,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return SO(e,t)+` +`+$7(i.dayMonthYear,e,n,a);return $7(r,e,n,a)};var K7=3*Pi;Kn.incrementMonth=function(e,r,t){t=Qs(t)&&t;var n=Gu(e,Pi);if(e=Math.round(e-n),t)try{var a=Math.round(e/Pi)+x1,i=Ks.getComponentMethod("calendars","getCal")(t),o=i.fromJD(a);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-x1)*Pi+n}catch(s){r2.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+K7);return l.setUTCMonth(l.getUTCMonth()+r)+n-K7};Kn.findExactDates=function(e,r){for(var t=0,n=0,a=0,i=0,o,l,s=Qs(r)&&Ks.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";tw.exports=function(r){return r}});var n2=te(eu=>{"use strict";var CO=Bt(),LO=Bu(),qO=Od(),DO=Rn().BADNUM,t2=1e-9;eu.findBin=function(e,r,t){if(CO(r.start))return t?Math.ceil((e-r.start)/r.size-t2)-1:Math.floor((e-r.start)/r.size+t2);var n=0,a=r.length,i=0,o=a>1?(r[a-1]-r[0])/(a-1):1,l,s;for(o>=0?s=t?EO:PO:s=t?zO:RO,e+=o*t2*(t?-1:1)*(o>=0?1:-1);n90&&LO.log("Long binary search..."),n-1};function EO(e,r){return er}function zO(e,r){return e>=r}eu.sorterAsc=function(e,r){return e-r};eu.sorterDes=function(e,r){return r-e};eu.distinctVals=function(e){var r=e.slice();r.sort(eu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===DO;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>a&&(n=Math.min(n,u),i.push(s),o=s)}return{vals:i,minDiff:n}};eu.roundUp=function(e,r,t){for(var n=0,a=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};eu.findIndexOfMin=function(e,r){r=r||qO;for(var t=1/0,n,a=0;a{"use strict";nw.exports=function(r){return Object.keys(r).sort()}});var aw=te(Qn=>{"use strict";var w1=Bt(),NO=qi().isArrayOrTypedArray;Qn.aggNums=function(e,r,t,n){var a,i;if((!n||n>t.length)&&(n=t.length),w1(r)||(r=!1),NO(t[0])){for(i=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var uw=te((due,sw)=>{"use strict";var iw=P0(),a2=iw.mod,FO=iw.modHalf,M1=Math.PI,Vu=2*M1;function IO(e){return e/180*M1}function HO(e){return e/M1*180}function i2(e){return Math.abs(e[1]-e[0])>Vu-1e-14}function ow(e,r){return FO(r-e,Vu)}function BO(e,r){return Math.abs(ow(e,r))}function lw(e,r){if(i2(r))return!0;var t,n;r[0]n&&(n+=Vu);var a=a2(e,Vu),i=a+Vu;return a>=t&&a<=n||i>=t&&i<=n}function OO(e,r,t,n){if(!lw(r,n))return!1;var a,i;return t[0]=a&&e<=i}function o2(e,r,t,n,a,i,o){a=a||0,i=i||0;var l=i2([t,n]),s,u,f,v,h;l?(s=0,u=M1,f=Vu):t{"use strict";uc.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};uc.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};uc.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};uc.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};uc.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};uc.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var hw=te(fc=>{"use strict";var l2=P0().mod;fc.segmentsIntersect=vw;function vw(e,r,t,n,a,i,o,l){var s=t-e,u=a-e,f=o-a,v=n-r,h=i-r,d=l-i,m=s*d-f*v;if(m===0)return null;var p=(u*d-f*h)/m,y=(u*v-s*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+s*p,y:r+v*p}}fc.segmentDistance=function(r,t,n,a,i,o,l,s){if(vw(r,t,n,a,i,o,l,s))return 0;var u=n-r,f=a-t,v=l-i,h=s-o,d=u*u+f*f,m=v*v+h*h,p=Math.min(Yd(u,f,d,i-r,o-t),Yd(u,f,d,l-r,s-t),Yd(v,h,m,r-i,t-o),Yd(v,h,m,n-i,a-o));return Math.sqrt(p)};function Yd(e,r,t,n,a){var i=n*e+a*r;if(i<0)return n*n+a*a;if(i>t){var o=n-e,l=a-r;return o*o+l*l}else{var s=n*r-a*e;return s*s/t}}var Gd,s2,cw;fc.getTextLocation=function(r,t,n,a){if((r!==s2||a!==cw)&&(Gd={},s2=r,cw=a),Gd[n])return Gd[n];var i=r.getPointAtLength(l2(n-a/2,t)),o=r.getPointAtLength(l2(n+a/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(l2(n,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,v={x:u,y:f,theta:l};return Gd[n]=v,v};fc.clearLocationCache=function(){s2=null};fc.getVisibleSegment=function(r,t,n){var a=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(p){var y=r.getPointAtLength(p);p===0?v=y:p===u&&(h=y);var _=y.xi?y.x-i:0,C=y.yl?y.y-l:0;return Math.sqrt(_*_+C*C)}for(var m=d(s);m;){if(s+=m+n,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+n,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};fc.findPointOnPath=function(r,t,n,a){a=a||{};for(var i=a.pathLength||r.getTotalLength(),o=a.tolerance||.001,l=a.iterationLimit||30,s=r.getPointAtLength(0)[n]>r.getPointAtLength(i)[n]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var Vd=te(A1=>{"use strict";var ru={};A1.throttle=function(r,t,n){var a=ru[r],i=Date.now();if(!a){for(var o in ru)ru[o].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};A1.done=function(e){var r=ru[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};A1.clear=function(e){if(e)dw(ru[e]),delete ru[e];else for(var r in ru)A1.clear(r)};function dw(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var gw=te((yue,pw)=>{"use strict";pw.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var mw=te((bue,Wd)=>{"use strict";Wd.exports=u2;Wd.exports.isMobile=u2;Wd.exports.default=u2;var VO=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,WO=/CrOS/,ZO=/android|ipad|playbook|silk/i;function u2(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=VO.test(r)&&!WO.test(r)||!!e.tablet&&ZO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var bw=te((_ue,yw)=>{"use strict";var XO=Bt(),jO=mw();yw.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=JO(),typeof t!="string")return!0;var n=jO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),i=1;i-1;l--){var s=a[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(XO(u)&&(u=+u),u>=13)return!0}}}return n};function JO(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var xw=te((xue,_w)=>{"use strict";var $O=Tt();_w.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(o){o[0][i]=$O.select(this)}),a}});var Mw=te((wue,ww)=>{"use strict";var KO=dt();ww.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=KO.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}});var Tw=te((Mue,Aw)=>{"use strict";Aw.exports=function(r){for(var t={},n=[],a=0,i=0;i{"use strict";kw.exports=function(r){for(var t=rU(r)?eU:QO,n=[],a=0;a{"use strict";Cw.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,i=String(a).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(a).toPrecision(12);s.indexOf("e+")===-1&&(a=+s)}}return a}});var Dw=te((kue,qw)=>{"use strict";var tU=Bt(),nU=Rn().BADNUM,aU=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;qw.exports=function(r){return typeof r=="string"&&(r=r.replace(aU,"")),tU(r)?Number(r):nU}});var gr=te((Sue,Gw)=>{"use strict";var T1=Tt(),iU=D0().utcFormat,oU=Ry().format,Fw=Bt(),Iw=Rn(),Hw=Iw.FP_SAFE,lU=-Hw,Ew=Iw.BADNUM,Ee=Gw.exports={};Ee.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var Pw={};Ee.warnBadFormat=function(e){var r=String(e);Pw[r]||(Pw[r]=1,Ee.warn('encountered bad format: "'+r+'"'))};Ee.noFormat=function(e){return String(e)};Ee.numberFormat=function(e){var r;try{r=oU(Ee.adjustFormat(e))}catch(t){return Ee.warnBadFormat(e),Ee.noFormat}return r};Ee.nestedProperty=u1();Ee.keyedContainer=A6();Ee.relativeAttr=k6();Ee.isPlainObject=$s();Ee.toLogRange=Md();Ee.relinkPrivateKeys=q6();var Wu=qi();Ee.isArrayBuffer=Wu.isArrayBuffer;Ee.isTypedArray=Wu.isTypedArray;Ee.isArrayOrTypedArray=Wu.isArrayOrTypedArray;Ee.isArray1D=Wu.isArray1D;Ee.ensureArray=Wu.ensureArray;Ee.concat=Wu.concat;Ee.maxRowLength=Wu.maxRowLength;Ee.minRowLength=Wu.minRowLength;var Bw=P0();Ee.mod=Bw.mod;Ee.modHalf=Bw.modHalf;var Zu=j6();Ee.valObjectMeta=Zu.valObjectMeta;Ee.coerce=Zu.coerce;Ee.coerce2=Zu.coerce2;Ee.coerceFont=Zu.coerceFont;Ee.coercePattern=Zu.coercePattern;Ee.coerceHoverinfo=Zu.coerceHoverinfo;Ee.coerceSelectionMarkerOpacity=Zu.coerceSelectionMarkerOpacity;Ee.validate=Zu.validate;var Ji=rw();Ee.dateTime2ms=Ji.dateTime2ms;Ee.isDateTime=Ji.isDateTime;Ee.ms2DateTime=Ji.ms2DateTime;Ee.ms2DateTimeLocal=Ji.ms2DateTimeLocal;Ee.cleanDate=Ji.cleanDate;Ee.isJSDate=Ji.isJSDate;Ee.formatDate=Ji.formatDate;Ee.incrementMonth=Ji.incrementMonth;Ee.dateTick0=Ji.dateTick0;Ee.dfltRange=Ji.dfltRange;Ee.findExactDates=Ji.findExactDates;Ee.MIN_MS=Ji.MIN_MS;Ee.MAX_MS=Ji.MAX_MS;var cc=n2();Ee.findBin=cc.findBin;Ee.sorterAsc=cc.sorterAsc;Ee.sorterDes=cc.sorterDes;Ee.distinctVals=cc.distinctVals;Ee.roundUp=cc.roundUp;Ee.sort=cc.sort;Ee.findIndexOfMin=cc.findIndexOfMin;Ee.sortObjectKeys=Ud();var tu=aw();Ee.aggNums=tu.aggNums;Ee.len=tu.len;Ee.mean=tu.mean;Ee.geometricMean=tu.geometricMean;Ee.median=tu.median;Ee.midRange=tu.midRange;Ee.variance=tu.variance;Ee.stdev=tu.stdev;Ee.interp=tu.interp;var gl=Dd();Ee.init2dArray=gl.init2dArray;Ee.transposeRagged=gl.transposeRagged;Ee.dot=gl.dot;Ee.translationMatrix=gl.translationMatrix;Ee.rotationMatrix=gl.rotationMatrix;Ee.rotationXYMatrix=gl.rotationXYMatrix;Ee.apply3DTransform=gl.apply3DTransform;Ee.apply2DTransform=gl.apply2DTransform;Ee.apply2DTransform2=gl.apply2DTransform2;Ee.convertCssMatrix=gl.convertCssMatrix;Ee.inverseTransformMatrix=gl.inverseTransformMatrix;var ts=uw();Ee.deg2rad=ts.deg2rad;Ee.rad2deg=ts.rad2deg;Ee.angleDelta=ts.angleDelta;Ee.angleDist=ts.angleDist;Ee.isFullCircle=ts.isFullCircle;Ee.isAngleInsideSector=ts.isAngleInsideSector;Ee.isPtInsideSector=ts.isPtInsideSector;Ee.pathArc=ts.pathArc;Ee.pathSector=ts.pathSector;Ee.pathAnnulus=ts.pathAnnulus;var V0=fw();Ee.isLeftAnchor=V0.isLeftAnchor;Ee.isCenterAnchor=V0.isCenterAnchor;Ee.isRightAnchor=V0.isRightAnchor;Ee.isTopAnchor=V0.isTopAnchor;Ee.isMiddleAnchor=V0.isMiddleAnchor;Ee.isBottomAnchor=V0.isBottomAnchor;var W0=hw();Ee.segmentsIntersect=W0.segmentsIntersect;Ee.segmentDistance=W0.segmentDistance;Ee.getTextLocation=W0.getTextLocation;Ee.clearLocationCache=W0.clearLocationCache;Ee.getVisibleSegment=W0.getVisibleSegment;Ee.findPointOnPath=W0.findPointOnPath;var jd=fa();Ee.extendFlat=jd.extendFlat;Ee.extendDeep=jd.extendDeep;Ee.extendDeepAll=jd.extendDeepAll;Ee.extendDeepNoArrays=jd.extendDeepNoArrays;var f2=Bu();Ee.log=f2.log;Ee.warn=f2.warn;Ee.error=f2.error;var sU=z0();Ee.counterRegex=sU.counter;var c2=Vd();Ee.throttle=c2.throttle;Ee.throttleDone=c2.done;Ee.clearThrottle=c2.clear;var ml=y1();Ee.getGraphDiv=ml.getGraphDiv;Ee.isPlotDiv=ml.isPlotDiv;Ee.removeElement=ml.removeElement;Ee.addStyleRule=ml.addStyleRule;Ee.addRelatedStyleRule=ml.addRelatedStyleRule;Ee.deleteRelatedStyleRule=ml.deleteRelatedStyleRule;Ee.setStyleOnHover=ml.setStyleOnHover;Ee.getFullTransformMatrix=ml.getFullTransformMatrix;Ee.getElementTransformMatrix=ml.getElementTransformMatrix;Ee.getElementAndAncestors=ml.getElementAndAncestors;Ee.equalDomRects=ml.equalDomRects;Ee.clearResponsive=gw();Ee.preserveDrawingBuffer=bw();Ee.makeTraceGroups=xw();Ee._=Mw();Ee.notifier=Vy();Ee.filterUnique=Tw();Ee.filterVisible=Sw();Ee.pushUnique=Xy();Ee.increment=Lw();Ee.cleanNumber=Dw();Ee.ensureNumber=function(r){return Fw(r)?(r=Number(r),r>Hw||r=r?!1:Fw(e)&&e>=0&&e%1===0};Ee.noop=qd();Ee.identity=Od();Ee.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ee.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Ee.simpleMap=function(e,r,t,n,a){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?a>10?(Ee.warn("randstr failed uniqueness"),o):e(r,t,n,(a||0)+1):o};Ee.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Ee.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,i=new Array(a),o=new Array(t),l,s,u,f;for(l=0;l=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=t&&(u=n-1-u),f+=e[u]*i[s];o[l]=f}return o};Ee.syncOrAsync=function(e,r,t){var n,a;function i(){return Ee.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(i);return t&&t(r)};Ee.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ee.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,i,o;for(i=0;i0?a:0})};Ee.fillArray=function(e,r,t,n){if(n=n||Ee.identity,Ee.isArrayOrTypedArray(e))for(var a=0;acU.test(window.navigator.userAgent);var vU=/Firefox\/(\d+)\.\d+/;Ee.getFirefoxVersion=function(){var e=vU.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ee.isD3Selection=function(e){return e instanceof T1.selection};Ee.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var i=e.append(r);return t&&i.classed(t,!0),n&&i.call(n),i};Ee.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var i=e.append(r).attr("id",t);return n&&i.call(n),i};Ee.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},i=0;i1?a+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s};Ee.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Yw=/^\w*$/;Ee.templateString=function(e,r){var t={};return e.replace(Ee.TEMPLATE_STRING_REGEX,function(n,a){var i;return Yw.test(a)?i=r[a]:(t[a]=t[a]||Ee.nestedProperty(r,a).get,i=t[a](!0)),i!==void 0?i:""})};var pU={max:10,count:0,name:"hovertemplate"};Ee.hovertemplateString=e=>v2(dd(tc({},e),{opts:pU}));var gU={max:10,count:0,name:"texttemplate"};Ee.texttemplateString=e=>v2(dd(tc({},e),{opts:gU}));var mU=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function yU(e){var r=e.match(mU);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var bU={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ee.texttemplateStringForShapes=e=>v2(dd(tc({},e),{opts:bU}));var Rw=/^[:|\|]/;function v2({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:i}){return i.replace(Ee.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),v=["_xother_","_yother_"].includes(l),h=["xother_","yother_"].includes(l),d=u||f||h||v;(f||v)&&(l=l.substring(1)),(h||v)&&(l=l.substring(0,l.length-1));let m=null,p=null;if(a.parseMultDiv){var y=yU(l);l=y.key,m=y.op,p=y.number}let _;if(d){if(n[l]===void 0)return"";_=n[l]}else for(let A of e)if(A){if(A.hasOwnProperty(l)){_=A[l];break}if(Yw.test(l)||(_=Ee.nestedProperty(A,l).get(!0)),_!==void 0)break}if(_===void 0){let{count:A,max:k,name:M}=a,D=t===!1?o:t;return A=Xd&&o<=zw,u=l>=Xd&&l<=zw;if(s&&(n=10*n+o-Xd),u&&(a=10*a+l-Xd),!s||!u){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var G0=2e9;Ee.seedPseudoRandom=function(){G0=2e9};Ee.pseudoRandom=function(){var e=G0;return G0=(69069*G0+1)%4294967296,Math.abs(G0-e)<429496729?Ee.pseudoRandom():G0/4294967296};Ee.fillText=function(e,r,t){var n=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},a=Ee.extractOption(e,r,"htx","hovertext");if(Ee.isValidTextValue(a))return n(a);var i=Ee.extractOption(e,r,"tx","text");if(Ee.isValidTextValue(i))return n(i)};Ee.isValidTextValue=function(e){return e||e===0};Ee.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(u=1):u=0,Ee.strTranslate(a-u*(t+o),i-u*(n+l))+Ee.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+n)+")":"")};Ee.setTransormAndDisplay=function(e,r){e.attr("transform",Ee.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ee.ensureUniformFontSize=function(e,r){var t=Ee.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ee.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Ee.bigFont=function(e){return Math.round(1.2*e)};var Nw=Ee.getFirefoxVersion(),_U=Nw!==null&&Nw<86;Ee.getPositionFromD3Event=function(){return _U?[T1.event.layerX,T1.event.layerY]:[T1.event.offsetX,T1.event.offsetY]}});var Zw=te(()=>{"use strict";var xU=gr(),Vw={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#fff;border-color:#e0e2e5;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#f3f3f3;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(h2 in Vw)Ww=h2.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),xU.addStyleRule(Ww,Vw[h2]);var Ww,h2});var d2=te((Due,Xw)=>{Xw.exports=!0});var g2=te((Eue,jw)=>{"use strict";var wU=d2(),p2;typeof window.matchMedia=="function"?p2=!window.matchMedia("(hover: none)").matches:p2=wU;jw.exports=p2});var Kd=te((Pue,m2)=>{"use strict";var Z0=typeof Reflect=="object"?Reflect:null,Jw=Z0&&typeof Z0.apply=="function"?Z0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Jd;Z0&&typeof Z0.ownKeys=="function"?Jd=Z0.ownKeys:Object.getOwnPropertySymbols?Jd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Jd=function(r){return Object.getOwnPropertyNames(r)};function MU(e){console&&console.warn&&console.warn(e)}var Kw=Number.isNaN||function(r){return r!==r};function kn(){kn.init.call(this)}m2.exports=kn;m2.exports.once=SU;kn.EventEmitter=kn;kn.prototype._events=void 0;kn.prototype._eventsCount=0;kn.prototype._maxListeners=void 0;var $w=10;function $d(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(kn,"defaultMaxListeners",{enumerable:!0,get:function(){return $w},set:function(e){if(typeof e!="number"||e<0||Kw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");$w=e}});kn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};kn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Kw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Qw(e){return e._maxListeners===void 0?kn.defaultMaxListeners:e._maxListeners}kn.prototype.getMaxListeners=function(){return Qw(this)};kn.prototype.emit=function(r){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")Jw(s,this,t);else for(var u=s.length,f=a9(s,u),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,MU(l)}return e}kn.prototype.addListener=function(r,t){return e9(this,r,t,!1)};kn.prototype.on=kn.prototype.addListener;kn.prototype.prependListener=function(r,t){return e9(this,r,t,!0)};function AU(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function r9(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=AU.bind(n);return a.listener=t,n.wrapFn=a,a}kn.prototype.once=function(r,t){return $d(t),this.on(r,r9(this,r,t)),this};kn.prototype.prependOnceListener=function(r,t){return $d(t),this.prependListener(r,r9(this,r,t)),this};kn.prototype.removeListener=function(r,t){var n,a,i,o,l;if($d(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){l=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():TU(n,i),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};kn.prototype.off=kn.prototype.removeListener;kn.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var i=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function t9(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?kU(a):a9(a,a.length)}kn.prototype.listeners=function(r){return t9(this,r,!0)};kn.prototype.rawListeners=function(r){return t9(this,r,!1)};kn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):n9.call(e,r)};kn.prototype.listenerCount=n9;function n9(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}kn.prototype.eventNames=function(){return this._eventsCount>0?Jd(this._events):[]};function a9(e,r){for(var t=new Array(r),n=0;n{"use strict";var y2=Kd().EventEmitter,LU={init:function(e){if(e._ev instanceof y2)return e;var r=new y2,t=new y2;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var i=a._events[r];if(!i)return;function o(s){if(s.listener){if(a.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(a,[t])}else return s.apply(a,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var l9=gr(),qU=oc().dfltConfig;function DU(e,r){for(var t=[],n,a=0;aqU.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};nu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};nu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};nu.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";f9.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var J0=te(ca=>{"use strict";var Mo=dt(),S1=gr(),ep=_o(),_2=H0(),EU=b2(),PU=b1(),RU=oc().configAttributes,c9=xo(),yl=S1.extendDeepAll,X0=S1.isPlainObject,zU=S1.isArrayOrTypedArray,rp=S1.nestedProperty,NU=S1.valObjectMeta,x2="_isSubplotObj",tp="_isLinkedToArray",FU="_arrayAttrRegexps",h9="_deprecated",w2=[x2,tp,FU,h9];ca.IS_SUBPLOT_OBJ=x2;ca.IS_LINKED_TO_ARRAY=tp;ca.DEPRECATED=h9;ca.UNDERSCORE_ATTRS=w2;ca.get=function(){var e={};return Mo.allTypes.forEach(function(r){e[r]=HU(r)}),{defs:{valObjects:NU,metaKeys:w2.concat(["description","role","editType","impliedEdits"]),editType:{traces:c9.traces,layout:c9.layout},impliedEdits:{}},traces:e,layout:BU(),frames:OU(),animation:j0(PU),config:j0(RU)}};ca.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(i){var o=e[i];if(w2.indexOf(i)===-1){var l=(n?n+".":"")+i;r(o,i,e,a,l),!ca.isValObject(o)&&X0(o)&&i!=="impliedEdits"&&ca.crawl(o,r,a+1,l)}})};ca.isValObject=function(e){return e&&e.valType!==void 0};ca.findArrayAttributes=function(e){var r=[],t=[],n=[],a,i;function o(s,u,f,v){t=t.slice(0,v).concat([u]),n=n.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&l(a,0,"")}function l(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)zU(v)&&r.push(i+h);else if(n[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Qd(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function Qd(e){return e===Math.round(e)&&e>=0}function HU(e){var r,t;r=Mo.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=yl({},ep),i=yl({},r.attributes);ca.crawl(i,function(s,u,f,v,h){rp(a,h).set(void 0),s===void 0&&rp(i,h).set(void 0)}),yl(n,a),Mo.traceIs(e,"noOpacity")&&delete n.opacity,Mo.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Mo.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,yl(n,i),t.attributes&&yl(n,t.attributes),n.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:j0(n)};if(r.layoutAttributes){var l={};yl(l,r.layoutAttributes),o.layoutAttributes=j0(l)}return r.animatable||ca.crawl(o,function(s){ca.isValObject(s)&&"anim"in s&&delete s.anim}),o}function BU(){var e={},r,t;yl(e,_2);for(r in Mo.subplotsRegistry)if(t=Mo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var $0=gr(),WU=_o(),Xu="templateitemname",M2={name:{valType:"string",editType:"none"}};M2[Xu]={valType:"string",editType:"calc"};vc.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=M2.name,r[Xu]=M2[Xu],r};vc.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(i){t=$0.coerce(i,{},WU,"type");var o={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,o._template=n[l]}return o}return{newTrace:a}};vc.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);$0.isPlainObject(a)||(a=null);var i=e[r]={_template:a};return i};vc.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[g9(r)],i=n&&n[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},v=f[Xu]=u[Xu];if(!p9(v))return f._template=a,f;for(var h=0;h=n&&(t._input||{})._templateitemname;i&&(a=n);var o=r+"["+a+"]",l;function s(){l={},i&&(l[o]={},l[o][Xu]=i)}s();function u(d,m){l[d]=m}function f(d,m){i?$0.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function v(){var d=l;return s(),d}function h(d,m){d&&f(d,m);var p=v();for(var y in p)$0.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var xa=te((Hue,m9)=>{"use strict";var C1=z0().counter;m9.exports={idRegex:{x:C1("x","( domain)?"),y:C1("y","( domain)?")},attrRegex:C1("[xy]axis"),xAxisMatch:C1("xaxis"),yAxisMatch:C1("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var va=te(Ri=>{"use strict";var ZU=dt(),A2=xa();Ri.id2name=function(r){if(!(typeof r!="string"||!r.match(A2.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ri.name2id=function(r){if(r.match(A2.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ri.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(A2.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(a&&n?" domain":"")}};Ri.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Ri.listIds(e,r),i=new Array(a.length),o;for(o=0;on?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Ri.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function y9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function XU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function jU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}b9.exports={clearOutlineControllers:XU,clearOutline:jU}});var np=te((Uue,_9)=>{"use strict";_9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var L1=te(ip=>{"use strict";var ap=dt(),Yue=xa().SUBPLOT_PATTERN;ip.getSubplotCalcData=function(e,r,t){var n=ap.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,i=[],o=0;o{"use strict";var JU=dt(),K0=gr();hc.manageCommandObserver=function(e,r,t,n){var a={},i=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var o=hc.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(o)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(o){x9(e,o,a.cache),a.check=function(){if(i){var f=x9(e,o,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+a;K0.isPlainObject(i)?T2(i,r,o,n+1):r(o,a,i)}})}});var ha=te((Wue,F9)=>{"use strict";var KU=Tt(),QU=D0().timeFormatLocale,eY=Ry().formatLocale,q1=Bt(),rY=zy(),tY=s1().version,Zt=dt(),D9=J0(),nY=yn(),Zr=gr(),E9=Pt(),T9=Rn().BADNUM,zi=va(),aY=ju().clearOutline,iY=np(),k2=b1(),oY=b2(),lY=L1().getModuleCalcData,k9=Zr.relinkPrivateKeys,dc=Zr._,Pr=F9.exports={};Zr.extendFlat(Pr,Zt);Pr.attributes=_o();Pr.attributes.type.values=Pr.allTypes;Pr.fontAttrs=Qa();Pr.layoutAttributes=H0();var lp=A9();Pr.executeAPICommand=lp.executeAPICommand;Pr.computeAPICommandBindings=lp.computeAPICommandBindings;Pr.manageCommandObserver=lp.manageCommandObserver;Pr.hasSimpleAPICommandBindings=lp.hasSimpleAPICommandBindings;Pr.redrawText=function(e){return e=Zr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zt.getComponentMethod("annotations","draw")(e),Zt.getComponentMethod("legend","draw")(e),Zt.getComponentMethod("colorbar","draw")(e),r(Pr.previousPromises(e)))},300)})};Pr.resize=function(e){e=Zr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||Zr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Zr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};Pr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Pr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Zr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:E9.defaultLine,"pointer-events":"all"}).each(function(){var u=KU.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&sY(e,i),o.text(i.text()&&l.text()?" - ":"")}};function sY(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Pr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}Pr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var n=Pr.graphJson(e,!1,"keepdata","object");n.version=tY;var a=new URL(r);a.searchParams.set("origin",window.location.origin);var i=window.open(a.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:n},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var uY=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],fY=["year","month","dayMonth","dayMonthYear"];Pr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||Pr.createTransitionData(e),a._dfltTitle={plot:dc(e,"Click to enter Plot title"),subtitle:dc(e,"Click to enter Plot subtitle"),x:dc(e,"Click to enter X axis title"),y:dc(e,"Click to enter Y axis title"),colorbar:dc(e,"Click to enter Colorscale title"),annotation:dc(e,"new text")},a._traceWord=dc(e,"trace");var h=S9(e,uY);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,m=n.height;Pr.supplyLayoutGlobalDefaults(i,a,h),i.width||(a.width=d),i.height||(a.height=m),Pr.sanitizeMargins(a)}else{Pr.supplyLayoutGlobalDefaults(i,a,h);var p=!i.width||!i.height,y=a.autosize,_=f.autosizable,C=p&&(y||_);C?Pr.plotAutoSize(e,i,a):p&&Pr.sanitizeMargins(a),!y&&p&&(i.width=a.width,i.height=a.height)}a._d3locale=hY(h,a.separators),a._extraFormat=S9(e,fY),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var x=a._subplots=vY(),b=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=cY(o,s),Pr.supplyDataDefaults(s,l,i,a);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.length>1){for(Zt.getComponentMethod("grid","sizeDefaults")(i,a),v=0;v15&&M.length>15&&a.shapes.length===0&&a.images.length===0,Pr.linkSubplots(l,a,o,n),Pr.cleanPlot(l,a,o,n);var W=!!(n._has&&n._has("cartesian")),O=!!(a._has&&a._has("cartesian")),Z=W,H=O;Z&&!H?n._bgLayer.remove():H&&!Z&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&aY({_fullLayout:n}),dY(l,a),k9(a,n),Zt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var ee=a._tracePreGUI,ne={},re;for(re in ee)ne[re]="old";for(v=0;v0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var v=Pr.layoutAttributes.width.min,h=Pr.layoutAttributes.height.min;o1,m=!t.height&&Math.abs(n.height-l)>1;(m||d)&&(d&&(n.width=o),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Pr.sanitizeMargins(n)};Pr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=Zt.componentsRegistry,i=r._basePlotModules,o,l,s,u=Zt.subplotsRegistry.cartesian;for(o in a)s=a[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zt.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Zr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(h){var _=(t.t+t.b)/h;_>1&&(t.t/=_,t.b/=_)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:A,size:t.b+p},t:{val:b,size:t.t+p}},m[r]=1}if(!n._replotting)return Pr.doAutoMargin(e)}};function gY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=zi.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Pr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),P9(r);var a=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Zr.extendFlat({},a),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var _=e._fullLayout._reservedMargin;for(var C in _)for(var x in _[C]){var b=_[C][x];o[x]=Math.max(o[x],b)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var A in o){var k=0;for(var M in h)M!=="base"&&q1(h[M][A].size)&&(k=h[M][A].size>k?h[M][A].size:k);var D=Math.max(0,i[A]-k);o[A]=Math.max(0,o[A]-D)}for(var R in h){var N=h[R].l||{},I=h[R].b||{},W=N.val,O=N.size,Z=I.val,H=I.size,ee=t-o.r-o.l,ne=n-o.t-o.b;for(var re in h){if(q1(O)&&h[re].r){var K=h[re].r.val,ue=h[re].r.size;if(K>W){var le=(O*K+(ue-ee)*W)/(K-W),ke=(ue*(1-W)+(O-ee)*(1-K))/(K-W);le+ke>s+u&&(s=le,u=ke)}}if(q1(H)&&h[re].t){var ze=h[re].t.val,Fe=h[re].t.size;if(ze>Z){var Xe=(H*ze+(Fe-ne)*Z)/(ze-Z),Ce=(Fe*(1-Z)+(H-ne)*(1-ze))/(ze-Z);Xe+Ce>v+f&&(v=Xe,f=Ce)}}}}}var er=Zr.constrain(t-i.l-i.r,R9,m),ce=Zr.constrain(n-i.t-i.b,z9,p),ge=Math.max(0,t-er),Pe=Math.max(0,n-ce);if(ge){var de=(s+u)/ge;de>1&&(s/=de,u/=de)}if(Pe){var G=(v+f)/Pe;G>1&&(v/=G,f/=G)}if(a.l=Math.round(s)+o.l,a.r=Math.round(u)+o.r,a.t=Math.round(f)+o.t,a.b=Math.round(v)+o.b,a.p=Math.round(i.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(Pr.didMarginChange(l,a)||gY(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Pr.graphJson=function(e,r,t,n,a,i){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Pr.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Zr.isPlainObject(h)){var m={},p;return Object.keys(h).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof h[x]=="function"){d&&(m[x]="_function");return}if(t==="keepdata"){if(x.slice(-3)==="src")return}else if(t==="keepstream"){if(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0&&!Zr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0))return;m[x]=u(h[x],d)}}),m}var y=Array.isArray(h),_=Zr.isTypedArray(h);if((y||_)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Zr.isArrayBuffer(C)?rY.encode(C):C},d)}return y?h.map(function(x){return u(x,d)}):_?Zr.simpleMap(h,Zr.identity):Zr.isJSDate(h)?Zr.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),n==="object"?f:JSON.stringify(f)};Pr.modifyFrames=function(e,r){var t,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!n&&d===h&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var u=[Pr.previousPromises,s,t.prepareFn,Pr.rehover,Pr.reselect,o],f=Zr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Pr.doCalcdata=function(e,r){var t=zi.list(e),n=e._fullData,a=e._fullLayout,i,o,l,s,u=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}o&&o.calc&&(b=o.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:T9,y:T9}]),b[0].t||(b[0].t={}),b[0].trace=i,u[C]=b}}for(L9(t,n,a),l=0;l{"use strict";pc.xmlns="http://www.w3.org/2000/xmlns/";pc.svg="http://www.w3.org/2000/svg";pc.xlink="http://www.w3.org/1999/xlink";pc.svgAttrs={xmlns:pc.svg,"xmlns:xlink":pc.xlink}});var Oa=te((Xue,I9)=>{"use strict";I9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ei=te(Ao=>{"use strict";var aa=Tt(),au=gr(),_Y=au.strTranslate,S2=gc(),xY=Oa().LINE_SPACING,wY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Ao.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(wY),i=aa.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=zY(e.node(),n);s&&e.style("pointer-events","all"),Ao.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};kY(a[2],f,function(v,h,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}var p=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});p.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var y=d.width,_=d.height;m.attr({class:o,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",x=m.select("g");x.attr({fill:C,stroke:C});var b=x.node().getBoundingClientRect(),A=b.width,k=b.height;(A>y||k>_)&&(m.style("overflow","hidden"),b=m.node().getBoundingClientRect(),A=b.width,k=b.height);var M=+e.attr("x"),D=+e.attr("y"),R=u||e.node().getBoundingClientRect().height,N=-R/4;if(o[0]==="y")p.attr({transform:"rotate("+[-90,M,D]+")"+_Y(-A/2,N-k/2)});else if(o[0]==="l")D=N-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,D=N;else{var I=e.attr("text-anchor");M=M-A*(I==="middle"?.5:I==="end"?1:0),D=D+N-k/2}m.attr({x:M,y:D}),t&&t.call(e,p),s(p)})})):l(),e};var MY=/(<|<|<)/g,AY=/(>|>|>)/g;function TY(e){return e.replace(MY,"\\lt ").replace(AY,"\\gt ")}var H9=[["$","$"],["\\(","\\)"]];function kY(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){au.warn("No MathJax version:",MathJax.version);return}var a,i,o,l,s=function(){return i=au.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:H9},displayAlign:"left"})},u=function(){i=au.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=H9},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+au.randstr({},64);l=aa.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(TY(e));var x=l.node();return n===2?MathJax.Hub.Typeset(x):MathJax.typeset([x])},d=function(){var C=l.select(n===2?".MathJax_SVG":".MathJax"),x=!C.empty()&&l.select("svg").node();if(!x)au.log("There was an error in the tex syntax.",e),t();else{var b=x.getBoundingClientRect(),A;n===2?A=aa.select("body").select("#MathJax_SVG_glyphs"):A=C.select("defs"),t(C,A,b)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},p=function(){a!=="svg"&&(MathJax.config.startup.output=a)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},_=function(){MathJax.config=i};n===2?MathJax.Hub.Queue(s,f,h,d,m,y):n===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),p(),_()}))}var Y9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},SY={sub:"0.3em",sup:"-0.6em"},CY={sub:"-0.21em",sup:"0.42em"},B9="\u200B",O9=["http:","https:","mailto:","",void 0,":"],G9=Ao.NEWLINES=/(\r\n?|\n)/g,L2=/(<[^<>]*>)/,q2=/<(\/?)([^ >]*)(\s+(.*))?>/i,LY=//i;Ao.BR_TAG_ALL=//gi;var V9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,W9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Z9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,qY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function mc(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&sp(n)}var DY=/(^|;)\s*color:/;Ao.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",i=a.length,o=e.split(L2),l=[],s="",u=0,f=0;fi?l.push(v.slice(0,Math.max(0,p-i))+a):l.push(v.slice(0,p));break}s=""}}return l.join("")};var EY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},PY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function sp(e){return e.replace(PY,function(r,t){var n;return t.charAt(0)==="#"?n=RY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=EY[t],n||r})}Ao.convertEntities=sp;function RY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function zY(e,r){r=r.replace(G9," ");var t=!1,n=[],a,i=-1;function o(){i++;var k=document.createElementNS(S2.svg,"tspan");aa.select(k).attr({class:"line",dy:i*xY+"em"}),e.appendChild(k),a=k;var M=n;if(n=[{node:k}],M.length>1)for(var D=1;D.",r);return}var M=n.pop();k!==M.type&&au.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),a=n[n.length-1].node}var f=LY.test(r);f?o():(a=e,n=[{node:e}]);for(var v=r.split(L2),h=0;h{"use strict";var NY=Tt(),fp=es(),E1=Bt(),up=gr(),j9=Pt(),FY=ac().isValid;function IY(e,r,t){var n=r?up.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var i=!1;if(up.isArrayOrTypedArray(a)){for(var o=0;o=0;n--,a++){var i=e[n];t[a]=[1-i[0],i[1]]}return t}function r8(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,i=new Array(a),o=0;o{"use strict";var n8=Ky(),BY=n8.FORMAT_LINK,OY=n8.DATE_FORMAT_LINK;function UY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?D2:a8)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function D2(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+BY+"."].join(" ")}function a8(e,r){return D2(e,r)+[" And for dates see: "+OY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}i8.exports={axisHoverFormat:UY,descriptionOnlyNumbers:D2,descriptionWithDates:a8}});var bl=te((Que,w8)=>{"use strict";var o8=Qa(),Q0=dl(),x8=rs().dash,R2=fa().extendFlat,l8=yn().templatedArray,Kue=lc().templateFormatStringDescription,s8=E2().descriptionWithDates,YY=Rn().ONEDAY,as=xa(),GY=as.HOUR_PATTERN,VY=as.WEEKDAY_PATTERN,P2={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},WY=R2({},P2,{values:P2.values.slice().concat(["sync"])});function u8(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var f8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},c8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},v8={valType:"data_array",editType:"ticks"},h8={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function d8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function p8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var g8={valType:"color",dflt:Q0.defaultLine,editType:"ticks"},m8={valType:"color",dflt:Q0.lightLine,editType:"ticks"};function y8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var b8=R2({},x8,{editType:"ticks"}),_8={valType:"boolean",editType:"ticks"};w8.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Q0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:o8({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[as.idRegex.x.toString(),as.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[as.idRegex.x.toString(),as.idRegex.y.toString()],editType:"calc"},rangebreaks:l8("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[VY,GY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:YY},editType:"calc"}),tickmode:WY,nticks:u8(),tick0:f8,dtick:c8,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:v8,ticktext:{valType:"data_array",editType:"ticks"},ticks:h8,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:d8(),tickwidth:p8(),tickcolor:g8,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:R2({},x8,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:o8({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:s8("tick label")},tickformatstops:l8("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:s8("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Q0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:_8,gridcolor:m8,gridwidth:y8(),griddash:b8,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Q0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Q0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",as.idRegex.x.toString(),as.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",as.idRegex.x.toString(),as.idRegex.y.toString()],editType:"plot"},minor:{tickmode:P2,nticks:u8("minor"),tick0:f8,dtick:c8,tickvals:v8,ticks:h8,ticklen:d8("minor"),tickwidth:p8("minor"),tickcolor:g8,gridcolor:m8,gridwidth:y8("minor"),griddash:b8,showgrid:_8,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var cp=te((efe,T8)=>{"use strict";var Sn=bl(),M8=Qa(),A8=fa().extendFlat,ZY=xo().overrideAll;T8.exports=ZY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Sn.linecolor,outlinewidth:Sn.linewidth,bordercolor:Sn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Sn.minor.tickmode,nticks:Sn.nticks,tick0:Sn.tick0,dtick:Sn.dtick,tickvals:Sn.tickvals,ticktext:Sn.ticktext,ticks:A8({},Sn.ticks,{dflt:""}),ticklabeloverflow:A8({},Sn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Sn.ticklen,tickwidth:Sn.tickwidth,tickcolor:Sn.tickcolor,ticklabelstep:Sn.ticklabelstep,showticklabels:Sn.showticklabels,labelalias:Sn.labelalias,tickfont:M8({}),tickangle:Sn.tickangle,tickformat:Sn.tickformat,tickformatstops:Sn.tickformatstops,tickprefix:Sn.tickprefix,showtickprefix:Sn.showtickprefix,ticksuffix:Sn.ticksuffix,showticksuffix:Sn.showticksuffix,separatethousands:Sn.separatethousands,exponentformat:Sn.exponentformat,minexponent:Sn.minexponent,showexponent:Sn.showexponent,title:{text:{valType:"string"},font:M8({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ev=te((tfe,S8)=>{"use strict";var XY=cp(),jY=z0().counter,JY=Ud(),k8=ac().scales,rfe=JY(k8);function vp(e){return"`"+e+"`"}S8.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?k8[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+vp(u+f));var h=a?" Has an effect only if "+v+" is set to a numerical array.":"",d=n+"auto",m=n+"min",p=n+"max",y=n+"mid",_=vp(u+d),C=vp(u+m),x=vp(u+p),b=C+" and "+x,A={};A[m]=A[p]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=XY),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:jY("coloraxis"),dflt:null,editType:"calc"}),M}});var N2=te((nfe,C8)=>{"use strict";var $Y=fa().extendFlat,KY=ev(),z2=ac().scales;C8.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:z2.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:z2.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:z2.RdBu,editType:"calc"}},coloraxis:$Y({_isSubplotObj:!0,editType:"calc"},KY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var F2=te((afe,L8)=>{"use strict";var QY=gr();L8.exports=function(r){return QY.isPlainObject(r.colorbar)}});var B2=te(H2=>{"use strict";var I2=Bt(),q8=gr(),D8=Rn(),eG=D8.ONEDAY,rG=D8.ONEWEEK;H2.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",i=n?eG:1;if(!e)return i;if(I2(e))return e=Number(e),e<=0?i:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return i;var o=e.charAt(0),l=e.slice(1);return l=I2(l)?Number(l):0,l<=0||!(n&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};H2.tick0=function(e,r,t,n){if(r==="date")return q8.cleanDate(e,q8.dateTick0(t,n%rG===0?1:0));if(!(n==="D1"||n==="D2"))return I2(e)?Number(e):0}});var O2=te((ofe,P8)=>{"use strict";var E8=B2(),tG=gr().isArrayOrTypedArray,nG=qi().isTypedArraySpec,aG=qi().decodeTypedArraySpec;P8.exports=function(r,t,n,a,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(C){var x=l[C];return nG(x)&&(x=aG(x)),x!==void 0?x:(s._template||{})[C]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=tG(d)?"array":h?"linear":"auto",p=n(u+"tickmode",m);if(p==="auto"||p==="sync")n(u+"nticks");else if(p==="linear"){var y=s.dtick=E8.dtick(h,a);s.tick0=E8.tick0(v,a,t.calendar,y)}else if(a!=="multicategory"){var _=n(u+"tickvals");_===void 0?s.tickmode="auto":o||n("ticktext")}}});var Y2=te((lfe,z8)=>{"use strict";var U2=gr(),R8=bl();z8.exports=function(r,t,n,a){var i=a.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?R8.minor:R8,u=i?"minor.":"",f=U2.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=U2.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=U2.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=n(u+"ticks",!i&&a.outerTicks||f||v||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var G2=te((sfe,N8)=>{"use strict";N8.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(i){return r[i]!==void 0}),a=function(i){return r[i]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var _l=te((ufe,F8)=>{"use strict";var hp=gr(),iG=yn();F8.exports=function(r,t,n){var a=n.name,i=n.inclusionAttr||"visible",o=t[a],l=hp.isArrayOrTypedArray(r[a])?r[a]:[],s=t[a]=[],u=iG.arrayTemplater(t,a,i),f,v;for(f=0;f{"use strict";var V2=gr(),oG=Pt().contrast,I8=bl(),lG=G2(),sG=_l();H8.exports=function(r,t,n,a,i){i||(i={});var o=n("labelalias");V2.isPlainObject(o)||delete t.labelalias;var l=lG(r),s=n("showticklabels");if(s){i.noTicklabelshift||n("ticklabelshift"),i.noTicklabelstandoff||n("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?oG(i.bgColor):f&&f!==I8.color.dflt?f:u.color;if(V2.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!i.noAng){var d=n("tickangle");!i.noAutotickangles&&d==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");sG(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:uG}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!i.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function uG(e,r){function t(a,i){return V2.coerce(e,r,I8.tickformatstops,a,i)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var Z2=te((cfe,B8)=>{"use strict";var fG=G2();B8.exports=function(r,t,n,a,i){i||(i={});var o=i.tickSuffixDflt,l=fG(r),s=n("tickprefix");s&&n("showtickprefix",l);var u=n("ticksuffix",o);u&&n("showticksuffix",l)}});var X2=te((vfe,O8)=>{"use strict";var Ju=gr(),cG=yn(),vG=O2(),hG=Y2(),dG=W2(),pG=Z2(),gG=cp();O8.exports=function(r,t,n){var a=cG.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,W){return Ju.coerce(i,a,gG,I,W)}var l=n.margin||{t:0,b:0,l:0,r:0},s=n.width-l.l-l.r,u=n.height-l.t-l.b,f=o("orientation"),v=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(v?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:v?u:s);var m=o("yref"),p=o("xref"),y=m==="paper",_=p==="paper",C,x,b,A="left";v?(b="middle",A=_?"left":"right",C=_?1.02:1,x=.5):(b=y?"bottom":"top",A="center",C=.5,x=y?1.02:1),Ju.coerce(i,a,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:C}},"x"),Ju.coerce(i,a,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",A),o("xpad"),o("yanchor",b),o("ypad"),Ju.noneOrAll(i,a,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Ju.coerce(i,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),vG(i,a,o,"linear");var M=n.font,D={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(D.bgColor="black"),pG(i,a,o,"linear",D),dG(i,a,o,"linear",D),hG(i,a,o,"linear",D),o("title.text",n._dfltTitle.colorbar);var R=a.showticklabels?a.tickfont:M,N=Ju.extendFlat({},M,{family:R.family,size:Ju.bigFont(R.size)});Ju.coerceFont(o,"title.font",N),o("title.side",v?"top":"right")}});var rv=te((hfe,G8)=>{"use strict";var U8=Bt(),J2=gr(),mG=F2(),yG=X2(),Y8=ac().isValid,bG=dt().traceIs;function j2(e,r){var t=r.slice(0,r.length-1);return r?J2.nestedProperty(e,t).get()||{}:e}G8.exports=function e(r,t,n,a,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=j2(r,o),f=j2(t,o),v=j2(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,i)};if(s){var d=n._colorAxes||{},m=a(o+"coloraxis");if(m){var p=bG(t,"contour")&&J2.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,J2.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var _=u[l+"min"],C=u[l+"max"],x=U8(_)&&U8(C)&&_{"use strict";var V8=gr(),_G=yn(),W8=N2(),xG=rv();Z8.exports=function(r,t){function n(v,h){return V8.coerce(r,t,W8,v,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,i,o;function l(v,h){return V8.coerce(i,o,W8.coloraxis,v,h)}for(var s in a){var u=a[s];if(u[0])i=r[s]||{},o=_G.newContainer(t,s,"coloraxis"),o._name=s,xG(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var wG=gr(),MG=ns().hasColorscale,AG=ns().extractOpts;j8.exports=function(r,t){function n(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function a(f,v){var h=v.container?wG.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=AG(h),m=d.auto;(m||d.min===void 0)&&n(h,v.min),(m||d.max===void 0)&&n(h,v.max),d.autocolorscale&&n(h,"colorscale")}}for(var i=0;i{"use strict";var $8=Bt(),$2=gr(),TG=ns().extractOpts;K8.exports=function(r,t,n){var a=r._fullLayout,i=n.vals,o=n.containerStr,l=o?$2.nestedProperty(t,o).get():t,s=TG(l),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return $2.aggNums(Math.min,null,i)},m=function(){return $2.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&$8(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(l._colorAx&&$8(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?p=a.colorscale.sequential:p=a.colorscale.sequentialminus,s._sync("colorscale",p)}}});var gp=te((mfe,Q8)=>{"use strict";var pp=ac(),tv=ns();Q8.exports={moduleType:"component",name:"colorscale",attributes:ev(),layoutAttributes:N2(),supplyLayoutDefaults:X8(),handleDefaults:rv(),crossTraceDefaults:J8(),calc:dp(),scales:pp.scales,defaultScale:pp.defaultScale,getScale:pp.get,isValidScale:pp.isValid,hasColorscale:tv.hasColorscale,extractOpts:tv.extractOpts,extractScale:tv.extractScale,flipScale:tv.flipScale,makeColorScaleFunc:tv.makeColorScaleFunc,makeColorScaleFuncFromTrace:tv.makeColorScaleFuncFromTrace}});var ri=te((yfe,rM)=>{"use strict";var eM=gr(),kG=qi().isTypedArraySpec;rM.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return eM.isPlainObject(r)&&(eM.isArrayOrTypedArray(r.size)||kG(r.size))}}});var nM=te((bfe,tM)=>{"use strict";var SG=Bt();tM.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,i=n.sizemin||0,o=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var s=o(l/t);return SG(s)&&s>0?Math.max(s,i):0}}});var $u=te(Ua=>{"use strict";var mp=gr();Ua.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ua.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{oM.exports=EG;var K2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},DG=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function EG(e){var r=[];return e.replace(DG,function(t,n,a){var i=n.toLowerCase();for(a=RG(a),i=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),i="l",n=n=="m"?"l":"L");;){if(a.length==K2[i])return a.unshift(n),r.push(a);if(a.length{"use strict";var zG=Q2(),Lr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},gt="M0,0Z",lM=Math.sqrt(2),Ku=Math.sqrt(3),e3=Math.PI,r3=Math.cos,t3=Math.sin;vM.exports={circle:{n:0,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?yt(r,t,a):a}},square:{n:1,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.4,2),a=Lr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.8/lM,2),a="l"+n+","+n,i="l"+n+",-"+n,o="l-"+n+",-"+n,l="l-"+n+","+n;return yt(r,t,"M0,"+n+a+i+o+i+o+l+o+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2/Ku,2),a=Lr(e/2,2),i=Lr(e,2);return yt(r,t,"M-"+n+","+a+"H"+n+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2/Ku,2),a=Lr(e/2,2),i=Lr(e,2);return yt(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2/Ku,2),a=Lr(e/2,2),i=Lr(e,2);return yt(r,t,"M"+a+",-"+n+"V"+n+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2/Ku,2),a=Lr(e/2,2),i=Lr(e,2);return yt(r,t,"M-"+a+",-"+n+"V"+n+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.6,2),a=Lr(e*1.2,2);return yt(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.6,2),a=Lr(e*1.2,2);return yt(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.6,2),a=Lr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.6,2),a=Lr(e*1.2,2);return yt(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.951,2),a=Lr(e*.588,2),i=Lr(-e,2),o=Lr(e*-.309,2),l=Lr(e*.809,2);return yt(r,t,"M"+n+","+o+"L"+a+","+l+"H-"+a+"L-"+n+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e/2,2),i=Lr(e*Ku/2,2);return yt(r,t,"M"+i+",-"+a+"V"+a+"L0,"+n+"L-"+i+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e/2,2),i=Lr(e*Ku/2,2);return yt(r,t,"M-"+a+","+i+"H"+a+"L"+n+",0L"+a+",-"+i+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.924,2),a=Lr(e*.383,2);return yt(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(mt(r))return gt;var n=e*1.4,a=Lr(n*.225,2),i=Lr(n*.951,2),o=Lr(n*.363,2),l=Lr(n*.588,2),s=Lr(-n,2),u=Lr(n*-.309,2),f=Lr(n*.118,2),v=Lr(n*.809,2),h=Lr(n*.382,2);return yt(r,t,"M"+a+","+u+"H"+i+"L"+o+","+f+"L"+l+","+v+"L0,"+h+"L-"+l+","+v+"L-"+o+","+f+"L-"+i+","+u+"H-"+a+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.66,2),a=Lr(e*.38,2),i=Lr(e*.76,2);return yt(r,t,"M-"+i+",0l-"+a+",-"+n+"h"+i+"l"+a+",-"+n+"l"+a+","+n+"h"+i+"l-"+a+","+n+"l"+a+","+n+"h-"+i+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*Ku*.8,2),a=Lr(e*.8,2),i=Lr(e*1.6,2),o=Lr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+i+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*Ku*.8,2),a=Lr(e*.8,2),i=Lr(e*1.6,2),o=Lr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+i+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.1,2),a=Lr(e*2,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",-"+n+i+"-"+n+","+n+i+n+","+n+i+n+",-"+n+i+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2),a=Lr(e*1.9,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",0"+i+"0,"+n+i+n+",0"+i+"0,-"+n+i+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*.7,2),a=Lr(e*1.4,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2),a=Lr(e*.7,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e/lM,2);return yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.3,2),a=Lr(e*.65,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*.85,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e/2,2),a=Lr(e,2);return yt(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*1.6,2),i=Lr(e*.8,2);return yt(r,t,"M-"+n+","+i+"L0,0M"+n+","+i+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*1.6,2),i=Lr(e*.8,2);return yt(r,t,"M-"+n+",-"+i+"L0,0M"+n+",-"+i+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*1.6,2),i=Lr(e*.8,2);return yt(r,t,"M"+i+","+n+"L0,0M"+i+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.2,2),a=Lr(e*1.6,2),i=Lr(e*.8,2);return yt(r,t,"M-"+i+","+n+"L0,0M-"+i+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2);return yt(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e*2,2);return yt(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e*2,2);return yt(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2,2),a=Lr(e,2);return yt(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2,2),a=Lr(e,2);return yt(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e,2),a=Lr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2,2),a=Lr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(mt(r))return gt;var n=Lr(e*2,2),a=Lr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(mt(r))return gt;var n=e3/2.5,a=2*e*r3(n),i=2*e*t3(n);return yt(r,t,"M0,0L"+-a+","+i+"L"+a+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(mt(r))return gt;var n=e3/4,a=2*e*r3(n),i=2*e*t3(n);return yt(r,t,"M0,0L"+-a+","+i+"A "+2*e+","+2*e+" 0 0 1 "+a+","+i+"Z")},backoff:.4,noDot:!0}};function mt(e){return e===null}var sM,uM,fM,cM;function yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(fM===e&&cM===r&&sM===t)return uM;fM=e,cM=r,sM=t;function n(y,_){var C=r3(y),x=t3(y),b=_[0],A=_[1]+(r||0);return[b*C-A*x,b*x+A*C]}for(var a=e/180*e3,i=0,o=0,l=zG(t),s="",u=0;u{"use strict";var wa=Tt(),fn=gr(),NG=fn.numberFormat,xc=Bt(),s3=es(),bp=dt(),Na=Pt(),FG=gp(),R1=fn.strTranslate,_p=ei(),IG=gc(),HG=Oa(),BG=HG.LINE_SPACING,MM=Cd().DESELECTDIM,OG=ri(),UG=nM(),YG=$u().appendArrayPointValue,Rr=PM.exports={};Rr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Na.fill,i),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",n3(VG(f))),s&&e.style("text-shadow",s==="auto"?_p.makeTextShadow(Na.contrast(i)):n3(s)),u&&e.style("text-decoration-line",n3(WG(u)))};function n3(e){return e==="none"?void 0:e}var GG={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function VG(e){return GG[e]}function WG(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Rr.setRect=function(e,r,t,n,a){e.call(Rr.setPosition,r,t).call(Rr.setSize,n,a)};Rr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),i=n.c2p(e.y);if(xc(a)&&xc(i)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",i):r.attr("transform",R1(a,i));else return!1;return!0};Rr.translatePoints=function(e,r,t){e.each(function(n){var a=wa.select(this);Rr.translatePoint(n,a,r,t)})};Rr.hideOutsideRangePoint=function(e,r,t,n,a,i){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")};Rr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var i=a[0].trace,o=i.xcalendar,l=i.ycalendar,s=bp.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Rr.hideOutsideRangePoint(u,wa.select(this),t,n,o,l)})})}};Rr.crispRound=function(e,r,t){return!r||!xc(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Rr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";Na.stroke(r,n||i.color),Rr.dashLine(r,l,o)};Rr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var i=(((a||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=n||i.dash||"";wa.select(this).call(Na.stroke,t||i.color).call(Rr.dashLine,l,o)})};Rr.dashLine=function(e,r,t){t=+t||0,r=Rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Rr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function AM(e,r,t,n){var a=r.fillpattern,i=r.fillgradient,o=Rr.getPatternAttr,l=a&&(o(a.shape,0,"")||o(a.path,0,""));if(l){var s=o(a.bgcolor,0,null),u=o(a.fgcolor,0,null),f=a.fgopacity,v=o(a.size,0,8),h=o(a.solidity,0,.3),d=r.uid;Rr.pattern(e,"point",t,d,l,v,h,void 0,a.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(n&&(p="legendfill-"+r.uid),!n&&(i.start!==void 0||i.stop!==void 0)){var y,_;m==="horizontal"?(y={x:i.start,y:0},_={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},_={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),_.x=r._xA.c2p(_.x===void 0?r._extremes.x.max[0].val:_.x,!0),_.y=r._yA.c2p(_.y===void 0?r._extremes.y.max[0].val:_.y,!0),e.call(SM,t,p,"linear",i.colorscale,"fill",y,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(Rr.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Na.fill,r.fillcolor)}Rr.singleFillStyle=function(e,r){var t=wa.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};AM(e,a,r,!1)};Rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=wa.select(this);n[0].trace&&AM(a,n[0].trace,r,t)})};var dM=hM();Rr.symbolNames=[];Rr.symbolFuncs=[];Rr.symbolBackOffs=[];Rr.symbolNeedLines={};Rr.symbolNoDot={};Rr.symbolNoFill={};Rr.symbolList=[];Object.keys(dM).forEach(function(e){var r=dM[e],t=r.n;Rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Rr.symbolNames[t]=e,Rr.symbolFuncs[t]=r.f,Rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Rr.symbolNeedLines[t]=!0),r.noDot?Rr.symbolNoDot[t]=!0:Rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Rr.symbolNoFill[t]=!0)});var ZG=Rr.symbolNames.length,XG="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Rr.symbolNumber=function(e){if(xc(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=Rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=ZG||e>=400?0:Math.floor(Math.max(e,0))};function TM(e,r,t,n){var a=e%100;return Rr.symbolFuncs[a](r,t,n)+(e>=200?XG:"")}var pM=NG("~f"),kM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Rr.gradient=function(e,r,t,n,a,i){var o=kM[n];return SM(e,r,t,o.type,a,i,o.start,o.stop,!1,o.reversed)};function SM(e,r,t,n,a,i,o,l,s,u){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=n.ms2mrc(e.ms),e.mrc=s,n.selectedSizeFn&&(s=e.mrc=n.selectedSizeFn(e));var u=Rr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=c3(e,t),v=f3(e,t);r.attr("d",TM(u,s,f,v))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):fn.isArrayOrTypedArray(l.color)?m=Na.defaultLine:m=l.color,fn.isArrayOrTypedArray(o.color)&&(d=Na.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}let _=e.mld||(l||{}).dash;if(_&&Rr.dashLine(r,_,p),e.om)r.call(Na.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var C=o.gradient,x=e.mgt;x?h=!0:x=C&&C.type,fn.isArrayOrTypedArray(x)&&(x=x[0],kM[x]||(x=0));var b=o.pattern,A=Rr.getPatternAttr,k=b&&(A(b.shape,e.i,"")||A(b.path,e.i,""));if(x&&x!=="none"){var M=e.mgc;M?h=!0:M=C.color;var D=t.uid;h&&(D+="-"+e.i),Rr.gradient(r,a,D,x,[[0,M],[1,d]],"fill")}else if(k){var R=!1,N=b.fgcolor;!N&&i&&i.color&&(N=i.color,R=!0);var I=A(N,e.i,i&&i.color||null),W=A(b.bgcolor,e.i,null),O=b.fgopacity,Z=A(b.size,e.i,8),H=A(b.solidity,e.i,.3);R=R||e.mcc||fn.isArrayOrTypedArray(b.shape)||fn.isArrayOrTypedArray(b.path)||fn.isArrayOrTypedArray(b.bgcolor)||fn.isArrayOrTypedArray(b.fgcolor)||fn.isArrayOrTypedArray(b.size)||fn.isArrayOrTypedArray(b.solidity);var ee=t.uid;R&&(ee+="-"+e.i),Rr.pattern(r,"point",a,ee,k,Z,H,e.mcc,b.fillmode,W,I,O)}else fn.isArrayOrTypedArray(d)?Na.fill(r,d[e.i]):Na.fill(r,d);p&&Na.stroke(r,m)}};Rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Rr.tryColorscale(t,""),r.lineScale=Rr.tryColorscale(t,"line"),bp.traceIs(e,"symbols")&&(r.ms2mrc=OG.isBubble(e)?UG(e):function(){return(t.size||6)/2}),e.selectedpoints&&fn.extendFlat(r,Rr.makeSelectedPointStyleFns(e)),r};Rr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},i=t.marker||{},o=n.marker||{},l=a.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,v=u!==void 0;(fn.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(b){var A=b.mo===void 0?a.opacity:b.mo;return b.selected?f?s:A:v?u:MM*A});var h=a.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(b){var A=b.mcc||h;return b.selected?d||A:m||A});var p=a.size,y=i.size,_=o.size,C=y!==void 0,x=_!==void 0;return bp.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(b){var A=b.mrc||p/2;return b.selected?C?y/2:A:x?_/2:A}),r};Rr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=t.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?s||v:u||(s?v:Na.addOpacity(v,MM))},r};Rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Rr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&a.push(function(i,o){Na.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&a.push(function(i,o){var l=o.mx||n.symbol||0,s=t.selectedSizeFn(o);i.attr("d",TM(Rr.symbolNumber(l),s,c3(o,r),f3(o,r))),o.mrc2=s}),a.length&&e.each(function(i){for(var o=wa.select(this),l=0;l0?t:0}Rr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=Rr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=wa.select(this),u=i?fn.extractOption(l,r,"txt","texttemplate"):fn.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(l,r,o):{},h={};YG(h,r,l.i),u=fn.texttemplateString({data:[h,l,r._meta],fallback:r.texttemplatefallback,labels:v,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,m=LM(l,r),p=n?n(l):l.tc||r.textfont.color;s.call(Rr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:m,color:p}).text(u).call(_p.convertToTspans,t).call(CM,d,m,l.mrc)})}};Rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Rr.makeSelectedTextStyleFns(r);e.each(function(n){var a=wa.select(this),i=t.selectedTextColorFn(n),o=n.tp||r.textposition,l=LM(n,r);Na.fill(a,i);var s=bp.traceIs(r,"bar-like");CM(a,o,l,n.mrc2||n.mrc,s)})}};var gM=.5;Rr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=s||b>=f&&b<=s)&&(A<=v&&A>=u||A>=v&&A<=u)&&(e=[b,A])}return e}Rr.applyBackoff=EM;Rr.makeTester=function(){var e=fn.ensureSingleById(wa.select("body"),"svg","js-plotly-tester",function(t){t.attr(IG.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=fn.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Rr.tester=e,Rr.testref=r};Rr.savedBBoxes={};var i3=0,$G=1e4;Rr.bBox=function(e,r,t){t||(t=mM(e));var n;if(t){if(n=Rr.savedBBoxes[t],n)return fn.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=mM(a),t){var i=+a.getAttribute("x")||0,o=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var s=Rr.bBox(a,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,n=Rr.savedBBoxes[t],n)return fn.extendFlat({},n)}}var u,f;r?u=e:(f=Rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),wa.select(u).attr("transform",null).call(_p.positionText,0,0);var v=u.getBoundingClientRect(),h=Rr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return i3>=$G&&(Rr.savedBBoxes={},i3=0),t&&(Rr.savedBBoxes[t]=d),i3++,fn.extendFlat({},d)};function mM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Rr.setClipUrl=function(e,r,t){e.attr("clip-path",u3(r,t))};function u3(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Rr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};Rr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||0,t=t||0,o=o.replace(n,"").trim(),o+=R1(r,t),o=o.trim(),e[i]("transform",o),o};Rr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};Rr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||1,t=t||1,o=o.replace(n,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var KG=/\s*sc.*/;Rr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(KG,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var QG=/translate\([^)]*\)\s*$/;Rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=wa.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(QG);r===1&&t===1?n=[]:n=[R1(o,l),"scale("+r+","+t+")",R1(-o,-l)],s&&n.push(s),a.attr("transform",n.join(""))}})};function f3(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}Rr.getMarkerStandoff=f3;var P1=Math.atan2,yc=Math.cos,av=Math.sin;function yM(e,r){var t=r[0],n=r[1];return[t*yc(e)-n*av(e),t*av(e)+n*yc(e)]}var bM,_M,xM,wM,o3,l3;function c3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||fn.isArrayOrTypedArray(t))&&(t=0));var n,a,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);n=o[0],a=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)n=l.c2p(e.x),a=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=P1(h[1]-a,h[0]-n),m=P1(v[1]-a,v[0]-n),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,_=f/180*Math.PI,C=bM/180*Math.PI,x=_M/180*Math.PI,b=C-y,A=yc(x)*av(b),k=av(x)*yc(_)-yc(x)*av(_)*yc(b);p=-P1(A,k)-Math.PI,bM=u,_M=f}var M=yM(d,[yc(p),0]),D=yM(m,[av(p),0]);t=P1(M[1]+D[1],M[0]+D[0])/Math.PI*180,i==="previous"&&!(l3===r.uid&&e.i===o3+1)&&(t=null)}if(i==="previous"&&!r._geo)if(l3===r.uid&&e.i===o3+1&&xc(n)&&xc(a)){var R=n-xM,N=a-wM,I=r.line&&r.line.shape||"",W=I.slice(I.length-1);W==="h"&&(N=0),W==="v"&&(R=0),t+=P1(N,R)/Math.PI*180+90}else t=null}return xM=n,wM=a,o3=e.i,l3=r.uid,t}Rr.getMarkerAngle=c3});var z1=te((Afe,FM)=>{"use strict";var iv=Tt(),eV=Bt(),rV=ha(),v3=dt(),wc=gr(),RM=wc.strTranslate,xp=cn(),wp=Pt(),ov=ei(),zM=Cd(),tV=Oa().OPPOSITE_SIDE,NM=/ [XY][0-9]* /,h3=1.6,d3=1.6;function nV(e,r,t){var n=e._fullLayout,a=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=a.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},_=y.family,C=y.size,x=y.color,b=y.weight,A=y.style,k=y.variant,M=y.textcase,D=y.lineposition,R=y.shadow,N=t.subtitlePropName,I=!!N,W=t.subtitlePlaceholder,O=(a.title||{}).subtitle||{text:"",font:{}},Z=(O.text||"").trim(),H=!1,ee=1,ne=O.font,re=ne.family,K=ne.size,ue=ne.color,le=ne.weight,ke=ne.style,ze=ne.variant,Fe=ne.textcase,Xe=ne.lineposition,Ce=ne.shadow,er;i==="title.text"?er="titleText":i.indexOf("axis")!==-1?er="axisTitleText":i.indexOf("colorbar")!==-1&&(er="colorbarTitleText");var ce=e._context.edits[er];function ge(or,hr){return or===void 0||hr===void 0?!1:or.replace(NM," % ")===hr.replace(NM," % ")}m===""?h=0:ge(m,o)&&(ce||(m=""),h=.2,p=!0),I&&(Z===""?ee=0:ge(Z,W)&&(ce||(Z=""),ee=.2,H=!0)),t._meta?m=wc.templateString(m,t._meta):n._meta&&(m=wc.templateString(m,n._meta));var Pe=m||Z||ce,de;v||(v=wc.ensureSingle(n._infolayer,"g","g-"+r),de=n._hColorbarMoveTitle);var G=v.selectAll("text."+r).data(Pe?[0]:[]);G.enter().append("text"),G.text(m).attr("class",r),G.exit().remove();var Q=null,$=r+"-subtitle",be=Z||ce;if(I&&(Q=v.selectAll("text."+$).data(be?[0]:[]),Q.enter().append("text"),Q.text(Z).attr("class",$),Q.exit().remove()),!Pe)return v;function qe(or,hr){wc.syncOrAsync([He,ar],{title:or,subtitle:hr})}function He(or){var hr=or.title,Je=or.subtitle,pr;!f&&de&&(f={}),f?(pr="",f.rotate&&(pr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||de)&&(pr+=RM(0,(f.offset||0)-(de||0)))):pr=null,hr.attr("transform",pr);function yr(Ye){if(Ye){var Ze=iv.select(Ye.node().parentNode).select("."+$);if(!Ze.empty()){var dr=Ye.node().getBBox();if(dr.height){var Ar=dr.y+dr.height+h3*K;Ze.attr("y",Ar)}}}}if(hr.style("opacity",h*wp.opacity(x)).call(xp.font,{color:wp.rgb(x),size:iv.round(C,2),family:_,weight:b,style:A,variant:k,textcase:M,shadow:R,lineposition:D}).attr(u).call(ov.convertToTspans,e,yr),Je&&!Je.empty()){var Te=v.select("."+r+"-math-group"),Ue=hr.node().getBBox(),kr=Te.node()?Te.node().getBBox():void 0,Ur=kr?kr.y+kr.height+h3*K:Ue.y+Ue.height+d3*K,tr=wc.extendFlat({},u,{y:Ur});Je.attr("transform",pr),Je.style("opacity",ee*wp.opacity(ue)).call(xp.font,{color:wp.rgb(ue),size:iv.round(K,2),family:re,weight:le,style:ke,variant:ze,textcase:Fe,shadow:Ce,lineposition:Xe}).attr(tr).call(ov.convertToTspans,e)}return rV.previousPromises(e)}function ar(or){var hr=or.title,Je=iv.select(hr.node().parentNode);if(s&&s.selection&&s.side&&m){Je.attr("transform",null);var pr=tV[s.side],yr=s.side==="left"||s.side==="top"?-1:1,Te=eV(s.pad)?s.pad:2,Ue=xp.bBox(Je.node()),kr={t:0,b:0,l:0,r:0},Ur=e._fullLayout._reservedMargin;for(var tr in Ur)for(var Ye in Ur[tr]){var Ze=Ur[tr][Ye];kr[Ye]=Math.max(kr[Ye],Ze)}var dr={left:kr.l,top:kr.t,right:n.width-kr.r,bottom:n.height-kr.b},Ar=s.maxShift||yr*(dr[s.side]-Ue[s.side]),mr=0;if(Ar<0)mr=Ar;else{var br=s.offsetLeft||0,Ir=s.offsetTop||0;Ue.left-=br,Ue.right-=br,Ue.top-=Ir,Ue.bottom-=Ir,s.selection.each(function(){var Er=xp.bBox(this);wc.bBoxIntersect(Ue,Er,Te)&&(mr=Math.max(mr,yr*(Er[s.side]-Ue[pr])+Te))}),mr=Math.min(Ar,mr),a._titleScoot=Math.abs(mr)}if(mr>0||Ar<0){var Cr={left:[-mr,0],right:[mr,0],top:[0,-mr],bottom:[0,mr]}[s.side];Je.attr("transform",RM(Cr[0],Cr[1]))}}}G.call(qe,Q);function Qe(or,hr){or.text(hr).on("mouseover.opacity",function(){iv.select(this).transition().duration(zM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){iv.select(this).transition().duration(zM.HIDE_PLACEHOLDER).style("opacity",0)})}if(ce&&(m?G.on(".opacity",null):(Qe(G,o),p=!0),G.call(ov.makeEditable,{gd:e}).on("edit",function(or){l!==void 0?v3.call("_guiRestyle",e,i,or,l):v3.call("_guiRelayout",e,i,or)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(qe)}).on("input",function(or){this.text(or||" ").call(ov.positionText,u.x,u.y)}),I)){if(I&&!m){var Be=G.node().getBBox(),cr=Be.y+Be.height+d3*K;Q.attr("y",cr)}Z?Q.on(".opacity",null):(Qe(Q,W),H=!0),Q.call(ov.makeEditable,{gd:e}).on("edit",function(or){v3.call("_guiRelayout",e,"title.subtitle.text",or)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(qe)}).on("input",function(or){this.text(or||" ").call(ov.positionText,Q.attr("x"),Q.attr("y"))})}return G.classed("js-placeholder",p),Q&&!Q.empty()&&Q.classed("js-placeholder",H),v}FM.exports={draw:nV,SUBTITLE_PADDING_EM:d3,SUBTITLE_PADDING_MATHJAX_EM:h3}});var qp=te((Tfe,UM)=>{"use strict";var aV=Tt(),iV=D0().utcFormat,mn=gr(),oV=mn.numberFormat,is=Bt(),Qu=mn.cleanNumber,lV=mn.ms2DateTime,IM=mn.dateTime2ms,os=mn.ensureNumber,HM=mn.isArrayOrTypedArray,ef=Rn(),Mp=ef.FP_SAFE,xl=ef.BADNUM,sV=ef.LOG_CLIP,uV=ef.ONEWEEK,Ap=ef.ONEDAY,Tp=ef.ONEHOUR,BM=ef.ONEMIN,OM=ef.ONESEC,kp=va(),Lp=xa(),Sp=Lp.HOUR_PATTERN,Cp=Lp.WEEKDAY_PATTERN;function N1(e){return Math.pow(10,e)}function p3(e){return e!=null}UM.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function i(b,A){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&A&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*sV*Math.abs(k-M))}else return xl}function o(b,A,k,M){if((M||{}).msUTC&&is(b))return+b;var D=IM(b,k||r.calendar);if(D===xl)if(is(b)){b=+b;var R=Math.floor(mn.mod(b+.05,1)*10),N=Math.round(b-R/10);D=IM(new Date(N))+R/10}else return xl;return D}function l(b,A,k){return lV(b,A,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(p3(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var A=r._categories.length-1;return r._categoriesMap[b]=A,A}return xl}function f(b,A){for(var k=new Array(A),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,D=M*b,R=0,N=0;NW)R=N+1;else{R=D<(I+W)/2?N:N+1;break}}var O=r._B[R]||0;return isFinite(O)?m(b,r._m2,O):0},_=function(b){var A=r._rangebreaks.length;if(!A)return p(b,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return p(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:os,r.l2c=r.type==="log"?N1:os,r.l2p=y,r.p2l=_,r.c2p=r.type==="log"?function(b,A){return y(i(b,A))}:y,r.p2c=r.type==="log"?function(b){return N1(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Qu,r.c2d=r.c2r=r.l2d=r.l2r=os,r.d2p=r.r2p=function(b){return r.l2p(Qu(b))},r.p2d=r.p2r=_,r.cleanPos=os):r.type==="log"?(r.d2r=r.d2l=function(b,A){return i(Qu(b),A)},r.r2d=r.r2c=function(b){return N1(Qu(b))},r.d2c=r.r2l=Qu,r.c2d=r.l2r=os,r.c2r=i,r.l2d=N1,r.d2p=function(b,A){return r.l2p(r.d2r(b,A))},r.p2d=function(b){return N1(_(b))},r.r2p=function(b){return r.l2p(Qu(b))},r.p2r=_,r.cleanPos=os):r.type==="date"?(r.d2r=r.r2d=mn.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,A,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,A,k){return l(_(b),A,k)},r.cleanPos=function(b){return mn.cleanDate(b,xl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=d(b);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=os,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:os(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=h(b);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=os,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:os(b)},r.setupMultiCategory=function(b){var A=r._traceIndices,k,M,D=r._matchGroup;if(D&&r._categories.length===0){for(var R in D)if(R!==n){var N=t[kp.id2name(R)];A=A.concat(N._traceIndices)}}var I=[[0,{}],[0,{}]],W=[];for(k=0;kN[1]&&(M[R?0:1]=k,D[1]=N[1]),D[0]>=D[1])if(A!==void 0){var I=N[0]+1;k!==void 0&&(I=Math.min(I,N[1])),M[R?0:1]=r.l2r(I)}else k!==void 0&&(M[R?1:0]=r.l2r(N[1]-1))}},r.cleanRange=function(b,A){r._cleanRange(b,A),r.limitRange(b)},r._cleanRange=function(b,A){A||(A={}),b||(b="range");var k=mn.nestedProperty(r,b).get(),M,D;if(r.type==="date"?D=mn.dfltRange(r.calendar):a==="y"?D=Lp.DFLTRANGEY:r._name==="realaxis"?D=[0,1]:D=A.dfltRange||Lp.DFLTRANGEX,D=D.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(D[0]=0),!k||k.length!==2){mn.nestedProperty(r,b).set(D);return}var R=k[0]===null,N=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=mn.cleanDate(k[0],xl,r.calendar),k[1]=mn.cleanDate(k[1],xl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!mn.isDateTime(k[M],r.calendar)){r[b]=D;break}if(r.r2l(k[0])===r.r2l(k[1])){var I=mn.constrain(r.r2l(k[0]),mn.MIN_MS+1e3,mn.MAX_MS-1e3);k[0]=r.l2r(I-1e3),k[1]=r.l2r(I+1e3);break}}else{if(!is(k[M]))if(!(R||N)&&is(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=D;break}if(k[M]<-Mp?k[M]=-Mp:k[M]>Mp&&(k[M]=Mp),k[0]===k[1]){var W=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=W,k[1]+=W}}},r.setScale=function(b){var A=t._size;if(r.overlaying){var k=kp.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",D=r.calendar;r.cleanRange(M);var R=r.r2l(r[M][0],D),N=r.r2l(r[M][1],D),I=a==="y";if(I?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(R-N),r._b=-r._m*N):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(N-R),r._b=-r._m*R),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var W,O;if(r._rangebreaks=r.locateBreaks(Math.min(R,N),Math.max(R,N)),r._rangebreaks.length){for(W=0;WN&&(Z=!Z),Z&&r._rangebreaks.reverse();var H=Z?-1:1;for(r._m2=H*r._length/(Math.abs(N-R)-r._lBreaks),r._B.push(-r._m2*(I?N:R)),W=0;WD&&(D+=7,RD&&(D+=24,R=M&&R=M&&b=Ce.min&&(keCe.max&&(Ce.max=ze),Fe=!1)}Fe&&N.push({min:ke,max:ze})}};for(k=0;k{"use strict";var YM=Bt(),g3=gr(),fV=Rn().BADNUM,Dp=g3.isArrayOrTypedArray,cV=g3.isDateTime,vV=g3.cleanNumber,GM=Math.round;WM.exports=function(r,t,n){var a=r,i=n.noMultiCategory;if(Dp(a)&&!a.length)return"-";if(!i&&mV(a))return"multicategory";if(i&&Array.isArray(a[0])){for(var o=[],l=0;li*2}function VM(e){return Math.max(1,(e-1)/1e3)}function gV(e,r){for(var t=e.length,n=VM(t),a=0,i=0,o={},l=0;la*2}function mV(e){return Dp(e[0])&&Dp(e[1])}});var tf=te((Sfe,eA)=>{"use strict";var yV=Tt(),JM=Bt(),rf=gr(),Ep=Rn().FP_SAFE,bV=dt(),_V=cn(),$M=va(),xV=$M.getFromId,wV=$M.isLinked;eA.exports={applyAutorangeOptions:QM,getAutoRange:y3,makePadFn:b3,doAutoRange:AV,findExtremes:TV,concatExtremes:w3};function y3(e,r){var t,n,a=[],i=e._fullLayout,o=b3(i,r,0),l=b3(i,r,1),s=w3(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return rf.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(N=x-o(k)-l(M),N>b?I/N>A&&(D=k,R=M,A=I/N):I/x>A&&(D={val:k.val,nopad:1},R={val:M.val,nopad:1},A=I/x));function W(ne,re){return Math.max(ne,l(re))}if(v===h){var O=v-1,Z=v+1;if(_)if(v===0)a=[0,1];else{var H=(v>0?f:u).reduce(W,0),ee=v/(1-Math.min(.5,H/x));a=v>0?[0,ee]:[ee,0]}else C?a=[Math.max(0,O),Math.max(1,Z)]:a=[O,Z]}else _?(D.val>=0&&(D={val:0,nopad:1}),R.val<=0&&(R={val:0,nopad:1})):C&&(D.val-A*o(D)<0&&(D={val:0,nopad:1}),R.val<=0&&(R={val:1,nopad:1})),A=(R.val-D.val-ZM(r,k.val,M.val))/(x-o(D)-l(R)),a=[D.val-A*o(D),R.val+A*l(R)];return a=QM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),rf.simpleMap(a,r.l2r||Number)}function ZM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),D=b(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(v=0;v0&&(C=h),h>x&&h-Ep&&(C=h),h>x&&h=I;v--)N(v);return{min:n,max:a,opts:t}}function _3(e,r,t,n){KM(e,r,t,n,kV)}function x3(e,r,t,n){KM(e,r,t,n,SV)}function KM(e,r,t,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else a(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function jM(e){return JM(e)&&Math.abs(e)=r}function CV(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Pp(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Pp(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function LV(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Pp(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Pp(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Pp(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,n=s)}}return t=CV(t,r),n=LV(n,r),[t,n]}});var Dn=te((Lfe,MA)=>{"use strict";var To=Tt(),ia=Bt(),lv=ha(),I1=dt(),lt=gr(),sv=lt.strTranslate,Mc=ei(),qV=z1(),H1=Pt(),$i=cn(),DV=bl(),rA=B2(),Cfe=xa(),Fa=Rn(),EV=Fa.ONEMAXYEAR,Np=Fa.ONEAVGYEAR,Fp=Fa.ONEMINYEAR,PV=Fa.ONEMAXQUARTER,k3=Fa.ONEAVGQUARTER,Ip=Fa.ONEMINQUARTER,RV=Fa.ONEMAXMONTH,uv=Fa.ONEAVGMONTH,Hp=Fa.ONEMINMONTH,Ki=Fa.ONEWEEK,ti=Fa.ONEDAY,nf=ti/2,ss=Fa.ONEHOUR,B1=Fa.ONEMIN,Bp=Fa.ONESEC,zV=Fa.ONEMILLI,NV=Fa.ONEMICROSEC,Ac=Fa.MINUS_SIGN,Up=Fa.BADNUM,S3={K:"zeroline"},C3={K:"gridline",L:"path"},L3={K:"minor-gridline",L:"path"},vA={K:"tick",L:"path"},tA={K:"tick",L:"text"},nA={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Yp=Oa(),F1=Yp.MID_SHIFT,Tc=Yp.CAP_SHIFT,O1=Yp.LINE_SPACING,FV=Yp.OPPOSITE_SIDE,Op=3,xr=MA.exports={};xr.setConvert=qp();var IV=m3(),us=va(),HV=us.idSort,BV=us.isLinked;xr.id2name=us.id2name;xr.name2id=us.name2id;xr.cleanId=us.cleanId;xr.list=us.list;xr.listIds=us.listIds;xr.getFromId=us.getFromId;xr.getFromTrace=us.getFromTrace;var hA=tf();xr.getAutoRange=hA.getAutoRange;xr.findExtremes=hA.findExtremes;var OV=1e-4;function P3(e){var r=(e[1]-e[0])*OV;return[e[0]-r,e[1]+r]}xr.coerceRef=function(e,r,t,n,a,i){var o=n.charAt(n.length-1),l=t._fullLayout._subplots[o+"axis"],s=n+"ref",u={};return a||(a=l[0]||(typeof i=="string"?i:i[0])),i||(i=a),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:a},lt.coerce(e,r,u,s)};xr.coerceRefArray=function(e,r,t,n,a,i,o){let l=n.charAt(n.length-1);var s=t._fullLayout._subplots[l+"axis"];let u=n+"ref";var f=e[u];a||(a=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(h=>h+" domain")),s=s.concat(i||[]),f.length>o?(lt.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};xr.saveRangeInitial=function(e,r){for(var t=xr.list(e,"",!0),n=!1,a=0;av*.3||u(n)||u(a))){var h=t.dtick/2;e+=e+ho){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=xr.tickIncrement(e,"M6","reverse")+ti*1.5:i.exactMonths>o?e=xr.tickIncrement(e,"M1","reverse")+ti*15.5:e-=nf;var s=xr.tickIncrement(e,t);if(s<=n)return s}return e}xr.prepMinorTicks=function(e,r,t){var v,h;if(!((v=r.minor)!=null&&v.dtick)){delete e.dtick;var n=r.dtick&&ia(r._tmin),a;if(n){var i=xr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,i*.99+r._tmin*.01]}else{var o=lt.simpleMap(r.range,r.r2l);a=[o[0],.8*o[0]+.2*o[1]]}if(e.range=lt.simpleMap(a,r.l2r),e._isMinor=!0,xr.prepTicks(e,t),n){var l=ia(r.dtick),s=ia(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?M3(u,f)?u===2*Ki&&f===2*ti&&(e.dtick=Ki):u===2*Ki&&f===3*ti?e.dtick=Ki:u===Ki&&!(r._input.minor||{}).nticks?e.dtick=ti:oA(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":M3(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?M3(u,f)||(e.dtick=oA(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0)};function M3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function oA(e,r){return Math.abs(e/r-1)<.001}xr.prepTicks=function(e,r){var t=lt.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?lt.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=lt.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,xr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=n-1,o=n):(i=n,o=n);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,v=0;f>=Fp?u>=Fp&&u<=EV?v=u:v=Np:t===k3&&f>=Ip?u>=Ip&&u<=PV?v=u:v=k3:f>=Hp?u>=Hp&&u<=RV?v=u:v=uv:t===Ki&&f>=Ki?v=Ki:f>=ti?v=ti:t===nf&&f>=nf?v=nf:t===ss&&f>=ss&&(v=ss);var h;v>=u&&(v=u,h=!0);var d=a+v;if(r.rangebreaks&&v>0){for(var m=84,p=0,y=0;yKi&&(v=u)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}xr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||lt.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=lt.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);A--){var k=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=A?r:lt.extendFlat({},r,b?r.minor:{minor:{}});if(k?xr.prepMinorTicks(M,r,t):xr.prepTicks(M,t),M.tickmode==="array"){A?(y=[],m=lA(r,!k)):(_=[],p=lA(r,!k));continue}if(M.tickmode==="sync"){y=[],m=ZV(r);continue}var D=P3(u),R=D[0],N=D[1],I=ia(M.dtick),W=n==="log"&&!(I||M.dtick.charAt(0)==="L"),O=xr.tickFirst(M,t);if(A){if(r._tmin=O,O=N:H<=N;H=xr.tickIncrement(H,re,f,a)){if(A&&ee++,M.rangebreaks&&!f){if(H=h)break}if(y.length>d||H===Z)break;Z=H;var K={value:H};A?(W&&H!==(H|0)&&(K.simpleLabel=!0),i>1&&ee%i&&(K.skipLabel=!0),y.push(K)):(K.minor=!0,_.push(K))}}if(!_||_.length<3)s=!1;else{var ue=(_[2].value-_[1].value)*(l?-1:1);yW(ue,r.tickformat)||(s=!1,_=_.slice(1))}if(!s)C=y;else{var le=y.concat(_);o&&y.length&&(le=le.slice(1)),le=le.sort(function(or,hr){return or.value-hr.value}).filter(function(or,hr,Je){return hr===0||or.value!==Je[hr-1].value});var ke=le.map(function(or,hr){return or.minor===void 0&&!or.skipLabel?hr:null}).filter(function(or){return or!==null});ke.forEach(function(or){s.map(function(hr){var Je=or+hr;Je>=0&&Je-1;de--){if(y[de].drop){y.splice(de,1);continue}y[de].value=T3(y[de].value,r);var be=r.c2p(y[de].value);(G?$>be-Q:$h||prh&&(Je.periodX=h),pra&&hNp)r/=Np,n=a(10),e.dtick="M"+12*ls(r,n,Rp);else if(i>uv)r/=uv,e.dtick="M"+ls(r,1,sA);else if(i>ti){if(e.dtick=ls(r,ti,e._hasDayOfWeekBreaks?[1,2,7,14]:XV),!t){var o=xr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=lt.dateTick0(e.calendar,2):e.tick0=lt.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>ss?e.dtick=ls(r,ss,sA):i>B1?e.dtick=ls(r,B1,uA):i>Bp?e.dtick=ls(r,Bp,uA):(n=a(10),e.dtick=ls(r,n,Rp))}else if(e.type==="log"){e.tick0=0;var s=lt.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,n=a(10),e.dtick="L"+ls(r,n,Rp)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):F3(e)?(e.tick0=0,n=1,e.dtick=ls(r,n,jV)):(e.tick0=0,n=a(10),e.dtick=ls(r,n,Rp));if(e.dtick===0&&(e.dtick=1),!ia(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function mA(e){var r=e.dtick;if(e._tickexponent=0,!ia(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ti&&a<=10||r>=ti*15)e._tickround="d";else if(r>=B1&&a<=16||r>=ss)e._tickround="M";else if(r>=Bp&&a<=19||r>=B1)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ia(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ia(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(fv(e.exponentformat)&&e.exponentformat!=="SI extended"&&!R3(s)||fv(e.exponentformat)&&e.exponentformat==="SI extended"&&!z3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}xr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(ia(r))return lt.increment(e,a*r);var i=r.charAt(0),o=a*Number(r.slice(1));if(i==="M")return lt.incrementMonth(e,o,n);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?gA:pA,s=e+a*.01,u=lt.roundUp(lt.mod(s,1),l,t);return Math.floor(s)+Math.log(To.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};xr.tickFirst=function(e,r){var t=e.r2l||Number,n=lt.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&_<=e._length?y:null};if(i&<.isArrayOrTypedArray(e.ticktext)){var v=lt.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=Y1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function $V(e,r,t,n,a){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(a==="never"&&(a=""),n&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=U1(Math.pow(10,o),e,a,n);else if(ia(i)||s==="D"&&(e.minorloglabels==="complete"||lt.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(lt.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||fv(m)&&m!=="SI extended"&&R3(h)||fv(m)&&m==="SI extended"&&z3(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":Ac)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":Ac)+d:(r.text=U1(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,lt.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function KV(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function QV(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],i=a[1]===void 0?"":String(a[1]),o=a[0]===void 0?"":String(a[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function eW(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=U1(r.x,e,a,n)}function rW(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=tW(i);if(o[1]>=100)r.text=U1(lt.deg2rad(r.x),e,a,n);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=Ac+r.text)}}}else r.text=U1(r.x,e,a,n)}function tW(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function n(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var a=n(e),i=e*a,o=Math.abs(t(i,a));return[Math.round(i/o),Math.round(a/o)]}var bA=["f","p","n","\u03BC","m","","k","M","G","T"],nW=["q","r","y","z","a",...bA,"P","E","Z","Y","R","Q"],fv=e=>["SI","SI extended","B"].includes(e);function R3(e){return e>14||e<-15}function z3(e){return e>32||e<-30}function aW(e,r){return fv(r)?!!(r==="SI extended"&&z3(e)||r!=="SI extended"&&R3(e)):!1}function U1(e,r,t,n){var a=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=xr.getTickFormat(r),u=r.separatethousands;if(n){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ia(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};mA(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Ac);var v=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+m+"":o==="B"&&l===9?e+="B":fv(o)&&(e+=o==="SI extended"?nW[l/3+10]:bA[l/3+5])}return a?Ac+e:e}xr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*uv}function n(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function a(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=n(s,u[0])>=0,d=n(s,u[1])<=0;return(f||h)&&(v||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return lt.syncOrAsync(a.map(function(s){return function(){if(s){var u=xr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=xr.drawOne(e,u,t);return u._shiftPusher&&E3(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=lt.simpleMap(u._r,u.r2l),f}}}))};xr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=xr.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),E3(r,m,n,!0),E3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=mW(r,n));var p=h[f+"axislayer"],y=r._mainLinePosition,_=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=xr.calcTicks(r),b=[r.mirror,_,C].join("_");for(i=0;i0?Je.bottom-or:0,hr))));var Ue=0,kr=0;if(r._shiftPusher&&(Ue=Math.max(hr,Je.height>0?Be==="l"?or-Je.left:Je.right-or:0),r.title.text!==s._dfltTitle[f]&&(kr=(r._titleStandoff||0)+(r._titleScoot||0),Be==="l"&&(kr+=cA(r))),r._fullDepth=Math.max(Ue,kr)),r.automargin){pr={x:0,y:0,r:0,l:0,t:0,b:0};var Ur=[0,1],tr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Be==="b"?pr[Be]=r._depth:(pr[Be]=r._depth=Math.max(Je.width>0?or-Je.top:0,hr),Ur.reverse()),Je.width>0){var Ye=Je.right-(r._offset+r._length);Ye>0&&(pr.xr=1,pr.r=Ye);var Ze=r._offset-Je.left;Ze>0&&(pr.xl=0,pr.l=Ze)}}else if(Be==="l"?(r._depth=Math.max(Je.height>0?or-Je.left:0,hr),pr[Be]=r._depth-tr):(r._depth=Math.max(Je.height>0?Je.right-or:0,hr),pr[Be]=r._depth+tr,Ur.reverse()),Je.height>0){var dr=Je.bottom-(r._offset+r._length);dr>0&&(pr.yb=0,pr.b=dr);var Ar=r._offset-Je.top;Ar>0&&(pr.yt=1,pr.t=Ar)}pr[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[Ur[0]],r.title.text!==s._dfltTitle[f]&&(pr[Be]+=cA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(yr={x:0,y:0,r:0,l:0,t:0,b:0},yr[cr]=r.linewidth,r.mirror&&r.mirror!==!0&&(yr[cr]+=hr),r.mirror===!0||r.mirror==="ticks"?yr[v]=r._anchorAxis.domain[Ur[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(yr[v]=[r._counterDomainMin,r._counterDomainMax][Ur[1]]))}Qe&&(Te=I1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(fA(pr,r.automargin),fA(yr,r.automargin)),lv.autoMargin(e,N3(r),pr),lv.autoMargin(e,xA(r),yr),lv.autoMargin(e,wA(r),Te)}),lt.syncOrAsync(He)}};function fA(e,r){if(e){var t=Object.keys(nA).reduce(function(n,a){return r.indexOf(a)!==-1&&nA[a].forEach(function(i){n[i]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function iW(e,r){var t=[],n,a=function(i,o){var l=i.xbnd[o];l!==null&&t.push(lt.extendFlat({},i,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(h){return sv(a+e._offset+e.l2p(q3(h))+t,i+n)}:function(h){return sv(i+n,a+e._offset+e.l2p(q3(h))+t)}};function q3(e){return e.periodX!==void 0?e.periodX:e.x}function uW(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),i=n("left"),o=n("right"),l=n("bottom"),s=n("inside"),u=t!=="boundaries"&&(l||i||a||o);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=Op,d=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=d*Tc,h+=(e.linewidth||0)/2),(i||o)&&(v+=(e.linewidth||0)/2,h+=Op),s&&f==="top"&&(h-=d*(1-Tc)),(i||a)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}xr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var i=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};xr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",i=function(O){return n.indexOf(O)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=a!=="boundaries"&&(u||l||o||s),v=i("inside"),h=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(v?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=lt.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},C,x,b,A,k=0,M=e.side,D=e._id.charAt(0),R=e.tickangle,N;if(D==="x")N=!v&&M==="bottom"||v&&M==="top",A=N?1:-1,v&&(A*=-1),C=m*A,x=r+d*A,b=N?1:-.2,Math.abs(R)===90&&(v?b+=F1:R===-90&&M==="bottom"?b=Tc:R===90&&M==="top"?b=F1:b=.5,k=F1/2*(R/90)),_.xFn=function(O){return O.dx+C+k*O.fontSize},_.yFn=function(O){return O.dy+x+O.fontSize*b},_.anchorFn=function(O,Z){if(f){if(l)return"end";if(s)return"start"}return!ia(Z)||Z===0||Z===180?"middle":Z*A<0!==v?"end":"start"},_.heightFn=function(O,Z,H){return Z<-60||Z>60?-.5*H:e.side==="top"!==v?-H:0};else if(D==="y"){if(N=!v&&M==="left"||v&&M==="right",A=N?1:-1,v&&(A*=-1),C=d,x=m*A,b=0,!v&&Math.abs(R)===90&&(R===-90&&M==="left"||R===90&&M==="right"?b=Tc:b=.5),v){var I=ia(R)?+R:0;if(I!==0){var W=lt.deg2rad(I);k=Math.abs(Math.sin(W))*Tc*A,b=0}}_.xFn=function(O){return O.dx+r-(C+O.fontSize*b)*A+k*O.fontSize},_.yFn=function(O){return O.dy+x+O.fontSize*F1},_.anchorFn=function(O,Z){return ia(Z)&&Math.abs(Z)===90?"middle":N?"end":"start"},_.heightFn=function(O,Z,H){return e.side==="right"&&(Z*=-1),Z<-30?-H:Z<30?-.5*H:0}}return _};function Gp(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}xr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+n).data(a,Gp);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return H1.stroke(To.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return $i.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Vp(r,[vA]),i.attr("transform",t.transFn)};xr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,i=a?t.vals.filter(function(_){return _.minor}):[],o=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],l=t.counterAxis;if(l&&xr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+n).data(m?o:i,Gp);y.exit().remove(),y.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(_){return H1.stroke(To.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return $i.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Vp(r,[C3,L3])}};xr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=xr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return HV(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(H1.stroke,r.zerolinecolor||H1.defaultLine).style("stroke-width",$i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Vp(r,[S3])};xr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,i=r.zerolinelayer==="above traces",o=t.cls||a+"tick",l=t.vals.filter(function(K){return K.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],v=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Gp),h=[];v.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(K){var ue=To.select(this),le=e._promises.length;ue.call(Mc.positionText,s.xFn(K),s.yFn(K)).call($i.font,{family:K.font,size:K.fontSize,color:K.fontColor,weight:K.fontWeight,style:K.fontStyle,variant:K.fontVariant,textcase:K.fontTextcase,lineposition:K.fontLineposition,shadow:K.fontShadow}).text(K.text).call(Mc.convertToTspans,e),e._promises[le]?h.push(e._promises.pop().then(function(){d(ue,u)})):d(ue,u)}),Vp(r,[tA]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(K){To.select(this).select("text").call(Mc.positionText,s.xFn(K),s.yFn(K))});function d(K,ue){K.each(function(le){var ke=To.select(this),ze=ke.select(".text-math-group"),Fe=s.anchorFn(le,ue),Xe=t.transFn.call(ke.node(),le)+(ia(ue)&&+ue!=0?" rotate("+ue+","+s.xFn(le)+","+(s.yFn(le)-le.fontSize/2)+")":""),Ce=Mc.lineCount(ke),er=O1*le.fontSize,ce=s.heightFn(le,ia(ue)?+ue:0,(Ce-1)*er);if(ce&&(Xe+=sv(0,ce)),ze.empty()){var ge=ke.select("text");ge.attr({transform:Xe,"text-anchor":Fe}),ge.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Pe=$i.bBox(ze.node()).width,de=Pe*{end:-.5,start:.5}[Fe];ze.attr("transform",Xe+sv(de,0))}})}r._adjustTickLabelsOverflow=function(){var K=r.ticklabeloverflow;if(!(!K||K==="allow")){var ue=K.indexOf("hide")!==-1,le=r._id.charAt(0)==="x",ke=0,ze=le?e._fullLayout.width:e._fullLayout.height;if(K.indexOf("domain")!==-1){var Fe=lt.simpleMap(r.range,r.r2l);ke=r.l2p(Fe[0])+r._offset,ze=r.l2p(Fe[1])+r._offset}var Xe=Math.min(ke,ze),Ce=Math.max(ke,ze),er=r.side,ce=1/0,ge=-1/0;v.each(function(Q){var $=To.select(this),be=$.select(".text-math-group");if(be.empty()){var qe=$i.bBox($.node()),He=0;le?(qe.right>Ce||qe.leftCe||qe.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+Fe._id]?$.style("display","none"):Ce.K==="tick"&&!Xe&&$.node().style.display!=="none"&&$.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(v,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var K=0,ue=[],le,ke=1;v.each(function(pr){K=Math.max(K,pr.fontSize);var yr=r.l2p(pr.x),Te=D3(this),Ue=$i.bBox(Te.node());ke=Math.max(ke,Mc.lineCount(Te)),ue.push({top:0,bottom:10,height:10,left:yr-Ue.width/2,right:yr+Ue.width/2+2,width:Ue.width+2})});var ze=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Fe=l.length,Xe=Math.abs((l[Fe-1].x-l[0].x)*r._m)/(Fe-1),Ce=ze?Xe/2:Xe,er=ze?r.ticklen:K*1.25*ke,ce=Math.sqrt(Math.pow(Ce,2)+Math.pow(er,2)),ge=Ce/ce,Pe=r.autotickangles.map(function(pr){return pr*Math.PI/180}),de=Pe.find(function(pr){return Math.abs(Math.cos(pr))<=ge});de===void 0&&(de=Pe.reduce(function(pr,yr){return Math.abs(Math.cos(pr))ee*H&&(W=H,R[D]=N[D]=O[D])}var ne=Math.abs(W-I);ne-A>0?(ne-=A,A*=1+A/ne):A=0,r._id.charAt(0)!=="y"&&(A=-A),R[M]=x.p2r(x.r2p(N[M])+k*A),x.autorange==="min"||x.autorange==="max reversed"?(R[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(R[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[x._name+".range"]=R}var re=lt.syncOrAsync(_);return re&&re.then&&e._promises.push(re),re};function fW(e,r,t){var n=r._id+"divider",a=t.vals,i=t.layer.selectAll("path."+n).data(a,Gp);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(H1.stroke,r.dividercolor).style("stroke-width",$i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}xr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:n==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return i._offset;if(a==="bottom"||a==="right")return i._offset+i._length};function cA(e){var r=e.title.font.size,t=(e.title.text.match(Mc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Tc+t*O1):t?r*(t+1)*O1:r}function cW(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(Mc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*Tc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(F1+l*O1));else{var s=Y1(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(a==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=xr.getPxPosition(e,r),v,h,d;a==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=$i.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,qV.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}xr.shouldShowZeroLine=function(e,r,t){var n=lt.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Up)&&(_A(r,0)||!vW(e,r,t,n)||hW(e,r))};xr.clipEnds=function(e,r){return r.filter(function(t){return _A(e,t.x)})};function _A(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=NV:/%L/.test(r)?e>=zV:/%[SX]/.test(r)?e>=Bp:/%M/.test(r)?e>=B1:/%[HI]/.test(r)?e>=ss:/%p/.test(r)?e>=nf:/%[Aadejuwx]/.test(r)?e>=ti:/%[UVW]/.test(r)?e>=Ki:/%[Bbm]/.test(r)?e>=Hp:/%[q]/.test(r)?e>=Ip:/%[Yy]/.test(r)?e>=Fp:!0}});var TA=te((qfe,AA)=>{"use strict";AA.exports=function(r,t,n){var a,i;if(n){var o=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[o?1:0],i=n[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?a:void 0),s=r("autorangeoptions.maxallowed",a===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var I3=te((Dfe,kA)=>{"use strict";var bW=TA();kA.exports=function(r,t,n,a){var i=t._template||{},o=t.type||i.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var s;!a.noInsiderange&&o!=="log"&&(s=n("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=n("range",s)))}var u=t.getAutorangeDflt(l,a),f=n("autorange",u),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(l,a),f=n("autorange",u)),f&&(bW(n,f,l),(o==="linear"||o==="-")&&n("rangemode")),t.cleanRange()}});var CA=te((Efe,SA)=>{var _W={left:0,top:0};SA.exports=xW;function xW(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,i=wW(r);return t[0]=n-i.left,t[1]=a-i.top,t}function wW(e){return e===window||e===document||e===document.body?_W:e.getBoundingClientRect()}});var H3=te((Pfe,LA)=>{"use strict";var MW=d2();function AW(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}LA.exports=MW&&AW()});var DA=te((Rfe,qA)=>{"use strict";qA.exports=function(r,t,n,a,i){var o=(r-n)/(a-n),l=o+t/(a-n),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var RA=te((zfe,PA)=>{"use strict";var EA=gr(),TW=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];PA.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=EA.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=EA.constrain(Math.floor(t*3),0,2),TW[t][r]}});var NA=te((Nfe,zA)=>{"use strict";var kW=k1(),SW=Vd(),CW=y1().getGraphDiv,LW=d1(),B3=zA.exports={};B3.wrapped=function(e,r,t){e=CW(e),e._fullLayout&&SW.clear(e._fullLayout._uid+LW.HOVERID),B3.raw(e,r,t)};B3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&kW.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var ko=te((Ffe,BA)=>{"use strict";var qW=CA(),O3=g2(),DW=H3(),EW=gr().removeElement,PW=xa(),kc=BA.exports={};kc.align=DA();kc.getCursor=RA();var IA=NA();kc.unhover=IA.wrapped;kc.unhoverRaw=IA.raw;kc.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,DW?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,b,A){return Math.abs(x)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var k=v[A];!b[A]&&typeof k!="function"&&(b[A]=k)})),r.clickFn&&r.clickFn(n,b),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function HA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}kc.coverSlip=HA;function FA(e){return qW(e.changedTouches?e.changedTouches[0]:e,document.body)}});var af=te((Ife,OA)=>{"use strict";OA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var GA=te((Hfe,YA)=>{"use strict";var U3=af(),G1="data-savedcursor",UA="!!";YA.exports=function(r,t){var n=r.attr(G1);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),i=0;i{"use strict";var Y3=Qa(),RW=dl();VA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:RW.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Y3({editType:"legend"}),grouptitlefont:Y3({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:Y3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var W1=te(V1=>{"use strict";V1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};V1.isVertical=function(r){return r.orientation!=="h"};V1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};V1.getId=function(r){return r._id||"legend"}});var W3=te((Ufe,WA)=>{"use strict";var Wp=dt(),Qi=gr(),zW=yn(),NW=_o(),FW=G3(),IW=H0(),V3=W1();function HW(e,r,t,n,a){var i=r[e]||{},o=zW.newContainer(t,e);function l(K,ue){return Qi.coerce(i,o,FW,K,ue)}var s=Qi.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,v=function(K,ue){var le=f._input,ke=f;return Qi.coerce(le,ke,NW,K,ue)},h=t.font||{},d=Qi.coerceFont(l,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),m=0,p=!1,y="normal",_=(t.shapes||[]).filter(function(K){return K.showlegend});function C(K){return Wp.traceIs(K,"pie-like")&&K._length!=null&&(Array.isArray(K.legend)||Array.isArray(K.showlegend))}n.filter(C).forEach(function(K){K.visible&&m++;for(var ue=0;ueK.legend.length)for(var ke=K.legend.length;ke(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),!(k===!1&&!i.uirevision)&&(l("uirevision",t.uirevision),k!==!1)){l("borderwidth");var M=l("orientation"),D=l("yref"),R=l("xref"),N=M==="h",I=D==="paper",W=R==="paper",O,Z,H,ee="left";N?(O=0,Wp.getComponentMethod("rangeslider","isVisible")(r.xaxis)?I?(Z=1.1,H="bottom"):(Z=1,H="top"):I?(Z=-.1,H="top"):(Z=0,H="bottom")):(Z=1,H="auto",W?O=1.02:(O=1,ee="right")),Qi.coerce(i,o,{x:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:O}},"x"),Qi.coerce(i,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:Z}},"y"),l("traceorder",y),V3.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",ee),l("yanchor",H),l("maxheight"),l("valign"),Qi.noneOrAll(i,o,["x","y"]);var ne=l("title.text");if(ne){l("title.side",N?"left":"top");var re=Qi.extendFlat({},s,{size:Qi.bigFont(s.size)});Qi.coerceFont(l,"title.font",re);let K=a>1;l("titleclick",K?"toggle":!1),l("titledoubleclick",K?"toggleothers":!1)}}}WA.exports=function(r,t,n){var a,i=n.slice(),o=t.shapes;if(o)for(a=0;a{"use strict";var of=dt(),Z3=gr(),BW=Z3.pushUnique,OW=W1(),ZA=!0;X3.handleItemClick=function(r,t,n,a){var i=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;var l=n.groupclick;a==="toggle"&&n.itemdoubleclick==="toggleothers"&&ZA&&t.data&&t._context.showTips&&(Z3.notifier(Z3._(t,"Double-click on legend to isolate one trace"),"long",t),ZA=!1);var s=l==="togglegroup",u=i.hiddenlabels?i.hiddenlabels.slice():[],f=t._fullData;let v=(i.shapes||[]).filter(Qe=>Qe.showlegend||Qe.legendgroup);var h=f.concat(v),d=o.trace;d._isShape&&(d=d._fullInput);var m=d.legendgroup,p,y,_,C,x,b,A={},k=[],M=[],D=[];function R(Qe,Be){var cr=k.indexOf(Qe),or=A.visible;return or||(or=A.visible=[]),k.indexOf(Qe)===-1&&(k.push(Qe),cr=k.length-1),or[cr]=Be,cr}var N=(i.shapes||[]).map(function(Qe){return Qe._input}),I=!1;function W(Qe,Be){N[Qe].visible=Be,I=!0}function O(Qe,Be){if(!(o.groupTitle&&!s)){var cr=Qe._fullInput||Qe,or=cr._isShape,hr=cr.index;hr===void 0&&(hr=cr._index);var Je=cr.visible===!1?!1:Be;or?W(hr,Je):R(hr,Je)}}var Z=d.legend,H=d._fullInput,ee=H&&H._isShape;if(!ee&&of.traceIs(d,"pie-like")){var ne=o.label,re=u.indexOf(ne);if(a==="toggle")re===-1?u.push(ne):u.splice(re,1);else if(a==="toggleothers"){var K=re!==-1,ue=[];for(p=0;p_.showlegend||_.legendgroup),s=i.concat(l);function u(_){return(_.legend||"legend")===o}var f,v;if(n==="toggle")f=!s.some(function(C){return u(C)&&C.visible===!0}),v=!1;else{let _=s.some(function(C){return!u(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,v=!_}let h={visible:[]},d=[],m=(a.shapes||[]).map(function(_){return _._input});for(var p=!1,y=0;y{"use strict";XA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var $A=te((Vfe,JA)=>{"use strict";var{isArrayOrTypedArray:$3}=qi(),jA=dt(),K3=W1();JA.exports=function(r,t,n){var a=t._inHover,i=K3.isGrouped(t),o=K3.isReversed(t),l={},s=[],u=!1,f={},v=0,h=0,d,m;function p(ue,le,ke){if(t.visible!==!1&&!(n&&ue!==t._id))if(le===""||!K3.isGrouped(t)){var ze="~~i"+v;s.push(ze),l[ze]=[ke],v++}else s.indexOf(le)===-1?(s.push(le),u=!0,l[le]=[ke]):l[le].push(ke)}for(d=0;dO&&(I=O)}R[d][0]._groupMinRank=I,R[d][0]._preGroupSort=d}var Z=function(ue,le){return ue[0]._groupMinRank-le[0]._groupMinRank||ue[0]._preGroupSort-le[0]._preGroupSort},H=function(ue,le){var ke=$3(ue.trace.legendrank)?ue.trace.legendrank[ue.i]:ue.trace.legendrank,ze=$3(le.trace.legendrank)?le.trace.legendrank[le.i]:le.trace.legendrank;return ke-ze||ue._preSort-le._preSort};for(R.forEach(function(ue,le){ue[0]._preGroupSort=le}),R.sort(Z),d=0;d{"use strict";var Zp=gr();function KA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Sc.formatPiePercent=function(r,t){var n=KA((r*100).toPrecision(3));return Zp.numSeparate(n,t)+"%"};Sc.formatPieValue=function(r,t){var n=KA(r.toPrecision(10));return Zp.numSeparate(n,t)};Sc.getFirstFilled=function(r,t){if(Zp.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var UW=cn(),YW=Pt();QA.exports=function(r,t,n,a){var i=n.marker.pattern;i&&i.shape?UW.pointStyle(r,n,a,t):YW.fill(r,t.color)}});var aT=te((Xfe,nT)=>{"use strict";var rT=Pt(),tT=Q3().castOption,GW=eT();nT.exports=function(r,t,n,a){var i=n.marker.line,o=tT(i.color,t.pts)||rT.defaultLine,l=tT(i.width,t.pts)||0;r.call(GW,t,n,a).style("stroke-width",l).call(rT.stroke,o)}});var n5=te((jfe,fT)=>{"use strict";var ni=Tt(),e5=dt(),Ya=gr(),iT=Ya.strTranslate,eo=cn(),So=Pt(),r5=ns().extractOpts,Xp=ri(),VW=aT(),WW=Q3().castOption,ZW=J3(),oT=12,lT=5,Cc=2,XW=10,cv=5;fT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var i=n.itemsizing==="constant",o=n.itemwidth,l=(o+ZW.itemGap*2)/2,s=iT(l,0),u=function(M,D,R,N){var I;if(M+1)I=M;else if(D&&D.width>0)I=D.width;else return 0;return i?N:Math.min(I,R)};r.each(function(M){var D=ni.select(this),R=Ya.ensureSingle(D,"g","layers");R.style("opacity",M[0].trace.opacity);var N=n.indentation,I=n.valign,W=M[0].lineHeight,O=M[0].height;if(I==="middle"&&N===0||!W||!O)R.attr("transform",null);else{var Z={top:1,bottom:-1}[I],H=Z*(.5*(W-O+3))||0,ee=n.indentation;R.attr("transform",iT(ee,H))}var ne=R.selectAll("g.legendfill").data([M]);ne.enter().append("g").classed("legendfill",!0);var re=R.selectAll("g.legendlines").data([M]);re.enter().append("g").classed("legendlines",!0);var K=R.selectAll("g.legendsymbols").data([M]);K.enter().append("g").classed("legendsymbols",!0),K.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(m).each(d).each(y).each(b).each(x).each(f).each(v).each(_).each(C);function f(M){var D=sT(M),R=D.showFill,N=D.showLine,I=D.showGradientLine,W=D.showGradientFill,O=D.anyFill,Z=D.anyLine,H=M[0],ee=H.trace,ne,re,K=r5(ee),ue=K.colorscale,le=K.reversescale,ke=function(ge){if(ge.size())if(R)eo.fillGroupStyle(ge,t,!0);else{var Pe="legendfill-"+ee.uid;eo.gradient(ge,t,Pe,t5(le),ue,"fill")}},ze=function(ge){if(ge.size()){var Pe="legendline-"+ee.uid;eo.lineGroupStyle(ge),eo.gradient(ge,t,Pe,t5(le),ue,"stroke")}},Fe=Xp.hasMarkers(ee)||!O?"M5,0":Z?"M5,-2":"M5,-3",Xe=ni.select(this),Ce=Xe.select(".legendfill").selectAll("path").data(R||W?[M]:[]);if(Ce.enter().append("path").classed("js-fill",!0),Ce.exit().remove(),Ce.attr("d",Fe+"h"+o+"v6h-"+o+"z").call(ke),N||I){var er=u(void 0,ee.line,XW,lT);re=Ya.minExtend(ee,{line:{width:er}}),ne=[Ya.minExtend(H,{trace:re})]}var ce=Xe.select(".legendlines").selectAll("path").data(N||I?[ne]:[]);ce.enter().append("path").classed("js-line",!0),ce.exit().remove(),ce.attr("d",Fe+(I?"l"+o+",0.0001":"h"+o)).call(N?eo.lineGroupStyle:ze)}function v(M){var D=sT(M),R=D.anyFill,N=D.anyLine,I=D.showLine,W=D.showMarker,O=M[0],Z=O.trace,H=!W&&!N&&!R&&Xp.hasText(Z),ee,ne;function re(Ce,er,ce,ge){var Pe=Ya.nestedProperty(Z,Ce).get(),de=Ya.isArrayOrTypedArray(Pe)&&er?er(Pe):Pe;if(i&&de&&ge!==void 0&&(de=ge),ce){if(dece[1])return ce[1]}return de}function K(Ce){return O._distinct&&O.index&&Ce[O.index]?Ce[O.index]:Ce[0]}if(W||H||I){var ue={},le={};if(W){ue.mc=re("marker.color",K),ue.mx=re("marker.symbol",K),ue.mo=re("marker.opacity",Ya.mean,[.2,1]),ue.mlc=re("marker.line.color",K),ue.mlw=re("marker.line.width",Ya.mean,[0,5],Cc),ue.mld=Z._isShape?"solid":re("marker.line.dash",K),le.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ke=re("marker.size",Ya.mean,[2,16],oT);ue.ms=ke,le.marker.size=ke}I&&(le.line={width:re("line.width",K,[0,10],lT)}),H&&(ue.tx="Aa",ue.tp=re("textposition",K),ue.ts=10,ue.tc=re("textfont.color",K),ue.tf=re("textfont.family",K),ue.tw=re("textfont.weight",K),ue.ty=re("textfont.style",K),ue.tv=re("textfont.variant",K),ue.tC=re("textfont.textcase",K),ue.tE=re("textfont.lineposition",K),ue.tS=re("textfont.shadow",K)),ee=[Ya.minExtend(O,ue)],ne=Ya.minExtend(Z,le),ne.selectedpoints=null,ne.texttemplate=null}var ze=ni.select(this).select("g.legendpoints"),Fe=ze.selectAll("path.scatterpts").data(W?ee:[]);Fe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Fe.exit().remove(),Fe.call(eo.pointStyle,ne,t),W&&(ee[0].mrc=3);var Xe=ze.selectAll("g.pointtext").data(H?ee:[]);Xe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Xe.exit().remove(),Xe.selectAll("text").call(eo.textPointStyle,ne,t)}function h(M){var D=M[0].trace,R=D.type==="waterfall";if(M[0]._distinct&&R){var N=M[0].trace[M[0].dir].marker;return M[0].mc=N.color,M[0].mlw=N.line.width,M[0].mlc=N.line.color,p(M,this,"waterfall")}var I=[];D.visible&&R&&(I=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var W=ni.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);W.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),W.exit().remove(),W.each(function(O){var Z=ni.select(this),H=D[O[0]].marker,ee=u(void 0,H.line,cv,Cc);Z.attr("d",O[1]).style("stroke-width",ee+"px").call(So.fill,H.color),ee&&Z.call(So.stroke,H.line.color)})}function d(M){p(M,this)}function m(M){p(M,this,"funnel")}function p(M,D,R){var N=M[0].trace,I=N.marker||{},W=I.line||{},O=I.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Z=R?N.visible&&N.type===R:e5.traceIs(N,"bar"),H=ni.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(Z?[M]:[]);H.enter().append("path").classed("legend"+R,!0).attr("d",O).attr("transform",s),H.exit().remove(),H.each(function(ee){var ne=ni.select(this),re=ee[0],K=u(re.mlw,I.line,cv,Cc);ne.style("stroke-width",K+"px");var ue=re.mcc;if(!n._inHover&&"mc"in re){var le=r5(I),ke=le.mid;ke===void 0&&(ke=(le.max+le.min)/2),ue=eo.tryColorscale(I,"")(ke)}var ze=ue||re.mc||I.color,Fe=I.pattern,Xe=eo.getPatternAttr,Ce=Fe&&(Xe(Fe.shape,0,"")||Xe(Fe.path,0,""));if(Ce){var er=Xe(Fe.bgcolor,0,null),ce=Xe(Fe.fgcolor,0,null),ge=Fe.fgopacity,Pe=uT(Fe.size,8,10),de=uT(Fe.solidity,.5,1),G="legend-"+N.uid;ne.call(eo.pattern,"legend",t,G,Ce,Pe,de,ue,Fe.fillmode,er,ce,ge)}else ne.call(So.fill,ze);K&&So.stroke(ne,re.mlc||W.color)})}function y(M){var D=M[0].trace,R=ni.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&e5.traceIs(D,"box-violin")?[M]:[]);R.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),R.exit().remove(),R.each(function(){var N=ni.select(this);if((D.boxpoints==="all"||D.points==="all")&&So.opacity(D.fillcolor)===0&&So.opacity((D.line||{}).color)===0){var I=Ya.minExtend(D,{marker:{size:i?oT:Ya.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(eo.pointStyle,I,t)}else{var W=u(void 0,D.line,cv,Cc);N.style("stroke-width",W+"px").call(So.fill,D.fillcolor),W&&So.stroke(N,D.line.color)}})}function _(M){var D=M[0].trace,R=ni.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(D.visible&&D.type==="candlestick"?[M,M]:[]);R.enter().append("path").classed("legendcandle",!0).attr("d",function(N,I){return I?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,I){var W=ni.select(this),O=D[I?"increasing":"decreasing"],Z=u(void 0,O.line,cv,Cc);W.style("stroke-width",Z+"px").call(So.fill,O.fillcolor),Z&&So.stroke(W,O.line.color)})}function C(M){var D=M[0].trace,R=ni.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(D.visible&&D.type==="ohlc"?[M,M]:[]);R.enter().append("path").classed("legendohlc",!0).attr("d",function(N,I){return I?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,I){var W=ni.select(this),O=D[I?"increasing":"decreasing"],Z=u(void 0,O.line,cv,Cc);W.style("fill","none").call(eo.dashLine,O.line.dash,Z),Z&&So.stroke(W,O.line.color)})}function x(M){A(M,this,"pie")}function b(M){A(M,this,"funnelarea")}function A(M,D,R){var N=M[0],I=N.trace,W=R?I.visible&&I.type===R:e5.traceIs(I,R),O=ni.select(D).select("g.legendpoints").selectAll("path.legend"+R).data(W?[M]:[]);if(O.enter().append("path").classed("legend"+R,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),O.exit().remove(),O.size()){var Z=I.marker||{},H=u(WW(Z.line.width,N.pts),Z.line,cv,Cc),ee="pieLike",ne=Ya.minExtend(I,{marker:{line:{width:H}}},ee),re=Ya.minExtend(N,{trace:ne},ee);VW(O,re,ne,t)}}function k(M){var D=M[0].trace,R,N=[];if(D.visible)switch(D.type){case"histogram2d":case"heatmap":N=[["M-15,-2V4H15V-2Z"]],R=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":N=[["M-6,-6V6H6V-6Z"]],R=!0;break;case"densitymapbox":case"densitymap":N=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],R="radial";break;case"cone":N=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],R=!1;break;case"streamtube":N=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],R=!1;break;case"surface":N=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],R=!0;break;case"mesh3d":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],R=!1;break;case"volume":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],R=!0;break;case"isosurface":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],R=!1;break}var I=ni.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(N);I.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),I.exit().remove(),I.each(function(W,O){var Z=ni.select(this),H=r5(D),ee=H.colorscale,ne=H.reversescale,re=function(ke){if(ke.size()){var ze="legendfill-"+D.uid;eo.gradient(ke,t,ze,t5(ne,R==="radial"),ee,"fill")}},K;if(ee){if(!R){var le=ee.length;K=O===0?ee[ne?le-1:0][1]:O===1?ee[ne?0:le-1][1]:ee[Math.floor((le-1)/2)][1]}}else{var ue=D.vertexcolor||D.facecolor||D.color;K=Ya.isArrayOrTypedArray(ue)?ue[O]||ue[0]:ue}Z.attr("d",W[0]),K?Z.call(So.fill,K):Z.call(re)})}};function t5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function sT(e){var r=e[0].trace,t=r.contours,n=Xp.hasLines(r),a=Xp.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:n=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function uT(e,r,t){return e&&Ya.isArrayOrTypedArray(e)?r:e>t?t:e}});var l5=te((Jfe,bT)=>{"use strict";var di=Tt(),ea=gr(),i5=ha(),Lc=dt(),$p=k1(),a5=ko(),ra=cn(),Z1=Pt(),qc=ei(),cT=j3().handleItemClick,vT=j3().handleTitleClick,oa=J3(),o5=Oa(),mT=o5.LINE_SPACING,hv=o5.FROM_TL,hT=o5.FROM_BR,dT=$A(),jW=n5(),dv=W1(),vv=1,JW=/^legend[0-9]*$/;bT.exports=function(r,t){if(t)pT(r,t);else{var n=r._fullLayout,a=n._legends,i=n._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=di.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(JW)&&a.indexOf(v)===-1&&u.remove()});for(var o=0;o1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!s.length))return o.selectAll("."+a).remove(),n._topdefs.select("#"+i).remove(),i5.autoMargin(e,a);var p=ea.ensureSingle(o,"g",a,function(D){l||D.attr("pointer-events","all")}),y=ea.ensureSingleById(n._topdefs,"clipPath",i,function(D){D.append("rect")}),_=ea.ensureSingle(p,"rect","bg",function(D){D.attr("shape-rendering","crispEdges")});_.call(Z1.stroke,t.bordercolor).call(Z1.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=ea.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var b;x.text?(b=ea.ensureSingle(C,"text",a+"titletext"),b.attr("text-anchor","start").call(ra.font,x.font).text(x.text),Jp(b,C,e,t,vv),!l&&(t.titleclick||t.titledoubleclick)&&eZ(C,e,t,a)):(C.selectAll("."+a+"titletext").remove(),C.selectAll("."+a+"titletoggle").remove());var A=ea.ensureSingle(p,"rect","scrollbar",function(D){D.attr(oa.scrollBarEnterAttrs).call(Z1.fill,oa.scrollBarColor)}),k=C.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(ea.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(D){let R=D[0],N=R.trace;if(R.groupTitle){let I=N.legendgroup,W=(n.shapes||[]).filter(function(Z){return Z.showlegend});return e._fullData.concat(W).some(function(Z){return Z.legendgroup===I&&(Z.legend||"legend")===a&&Z.visible===!0})?1:.5}return Lc.traceIs(N,"pie-like")?m.indexOf(D[0].label)!==-1?.5:1:N.visible==="legendonly"?.5:1}).each(function(){di.select(this).call(KW,e,t)}).call(jW,e,t).each(function(D){l||D[0].groupTitle&&t.groupclick==="toggleitem"||di.select(this).call(QW,e,a)}),ea.syncOrAsync([i5.previousPromises,function(){return nZ(e,k,M,t,C)},function(){var D=n._size,R=t.borderwidth,N=t.xref==="paper",I=t.yref==="paper";if(x.text){let be=(n.shapes||[]).filter(function(He){return He.showlegend}),qe=e._fullData.concat(be).some(function(He){let ar=He.legend||"legend";var Qe=Array.isArray(ar)?ar.includes(a):ar===a;return Qe&&He.visible===!0});b.style("opacity",qe?1:.5)}if(!l){var W,O;N?W=D.l+D.w*t.x-hv[Kp(t)]*t._width:W=n.width*t.x-hv[Kp(t)]*t._width,I?O=D.t+D.h*(1-t.y)-hv[Qp(t)]*t._effHeight:O=n.height*(1-t.y)-hv[Qp(t)]*t._effHeight;var Z=aZ(e,a,W,O);if(Z)return;if(n.margin.autoexpand){var H=W,ee=O;W=N?ea.constrain(W,0,n.width-t._width):H,O=I?ea.constrain(O,0,n.height-t._effHeight):ee,W!==H&&ea.log("Constrain "+a+".x to make legend fit inside graph"),O!==ee&&ea.log("Constrain "+a+".y to make legend fit inside graph")}ra.setTranslate(p,W,O)}if(A.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var ne=t._effHeight;l&&(ne=t._height),_.attr({width:t._width-R,height:ne-R,x:R/2,y:R/2}),ra.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*R,height:ne-2*R,x:R,y:R}),ra.setClipUrl(C,i,e),ra.setRect(A,0,0,0,0),delete t._scrollY}else{var re=Math.max(oa.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),K=t._effHeight-re-2*oa.scrollBarMargin,ue=t._height-t._effHeight,le=K/ue,ke=Math.min(t._scrollY||0,ue);_.attr({width:t._width-2*R+oa.scrollBarWidth+oa.scrollBarMargin,height:t._effHeight-R,x:R/2,y:R/2}),y.select("rect").attr({width:t._width-2*R+oa.scrollBarWidth+oa.scrollBarMargin,height:t._effHeight-2*R,x:R,y:R+ke}),ra.setClipUrl(C,i,e),Pe(ke,re,le),p.on("wheel",function(){ke=ea.constrain(t._scrollY+di.event.deltaY/ue*K,0,ue),Pe(ke,re,le),ke!==0&&ke!==ue&&di.event.preventDefault()});var ze,Fe,Xe,Ce=function(be,qe,He){var ar=(He-qe)/le+be;return ea.constrain(ar,0,ue)},er=function(be,qe,He){var ar=(qe-He)/le+be;return ea.constrain(ar,0,ue)},ce=di.behavior.drag().on("dragstart",function(){var be=di.event.sourceEvent;be.type==="touchstart"?ze=be.changedTouches[0].clientY:ze=be.clientY,Xe=ke}).on("drag",function(){var be=di.event.sourceEvent;be.buttons===2||be.ctrlKey||(be.type==="touchmove"?Fe=be.changedTouches[0].clientY:Fe=be.clientY,ke=Ce(Xe,ze,Fe),Pe(ke,re,le))});A.call(ce);var ge=di.behavior.drag().on("dragstart",function(){var be=di.event.sourceEvent;be.type==="touchstart"&&(ze=be.changedTouches[0].clientY,Xe=ke)}).on("drag",function(){var be=di.event.sourceEvent;be.type==="touchmove"&&(Fe=be.changedTouches[0].clientY,ke=er(Xe,ze,Fe),Pe(ke,re,le))});C.call(ge)}function Pe(be,qe,He){t._scrollY=e._fullLayout[a]._scrollY=be,ra.setTranslate(C,0,-be),ra.setRect(A,t._width,oa.scrollBarMargin+be*He,oa.scrollBarWidth,qe),y.select("rect").attr("y",R+be)}if(e._context.edits.legendPosition){var de,G,Q,$;p.classed("cursor-move",!0),a5.init({element:p.node(),gd:e,prepFn:function(be){if(be.target!==A.node()){var qe=ra.getTranslate(p);Q=qe.x,$=qe.y}},moveFn:function(be,qe){if(Q!==void 0&&$!==void 0){var He=Q+be,ar=$+qe;ra.setTranslate(p,He,ar),de=a5.align(He,t._width,D.l,D.l+D.w,t.xanchor),G=a5.align(ar+t._height,-t._height,D.t+D.h,D.t,t.yanchor)}},doneFn:function(){if(de!==void 0&&G!==void 0){var be={};be[a+".x"]=de,be[a+".y"]=G,Lc.call("_guiRelayout",e,be)}},clickFn:function(be,qe){var He=o.selectAll("g.traces").filter(function(){var ar=this.getBoundingClientRect();return qe.clientX>=ar.left&&qe.clientX<=ar.right&&qe.clientY>=ar.top&&qe.clientY<=ar.bottom});He.size()>0&&yT(e,t,He,be,qe)}})}}],e)}}function jp(e,r,t){var n=e[0],a=n.width,i=r.entrywidthmode,o=n.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||a)}function yT(e,r,t,n,a){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:a,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),Lc.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=$p.triggerHandler(e,"plotly_legendclick",u);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&cT(t,e,r,l)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var v=$p.triggerHandler(e,"plotly_legenddoubleclick",u);v!==!1&&f!==!1&&s&&cT(t,e,r,s)}}function KW(e,r,t){var n=dv.getId(t),a=e.data()[0][0],i=a.trace,o=Lc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;a.groupTitle?(u=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?u=a.text:(u=o?a.label:i.name,i._meta&&(u=ea.templateString(u,i._meta))));var v=ea.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(ra.font,f).text(l?gT(u,s):u);var h=t.indentation+t.itemwidth+oa.itemGap*2;qc.positionText(v,h,0),l?v.call(qc.makeEditable,{gd:r,text:u}).call(Jp,e,r,t).on("edit",function(d){this.text(gT(d,s)).call(Jp,e,r,t);var m=a.trace._fullInput||{},p={};return p.name=d,m._isShape?Lc.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):Lc.call("_guiRestyle",r,p,i.index)}):Jp(v,e,r,t)}function gT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function QW(e,r,t){var n=r._context.doubleClickDelay,a,i=1,o=ea.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Z1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(i=Math.max(i-1,1)),yT(r,l,e,i,di.event)}}))}function eZ(e,r,t,n){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Lc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=ea.ensureSingle(e,"rect",n+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Z1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:di.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if($p.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&vT(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,$p.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&vT(r,t,t.titledoubleclick))}))}function Jp(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),qc.convertToTspans(e,t,function(){rZ(r,t,n,a)})}function rZ(e,r,t,n){var a=e.data()[0][0],i=a&&a.trace.showlegend;if(Array.isArray(i)&&(i=i[a.i]!==!1),!t._inHover&&a&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=dv.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;n===vv?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var v=f.size*mT,h,d;if(l){var m=ra.bBox(l);h=m.height,d=m.width,n===vv?ra.setTranslate(o,u,u+h*.75):ra.setTranslate(o,0,h*.25)}else{var p="."+s+(n===vv?"title":"")+"text",y=e.select(p),_=qc.lineCount(y),C=y.node();if(h=v*_,d=C?ra.bBox(C).width:0,n===vv)t.title.side==="left"&&(d+=oa.itemGap*2),qc.positionText(y,u+oa.titlePad,u+v);else{var x=oa.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(x=oa.itemGap,d-=t.indentation+t.itemwidth),qc.positionText(y,x,-v*((_-1)/2-.3))}}n===vv?(t._titleWidth=d,t._titleHeight=h):(a.lineHeight=v,a.height=Math.max(h,16)+3,a.width=d)}function tZ(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function nZ(e,r,t,n,a){var i=e._fullLayout,o=dv.getId(n);n||(n=i[o]);var l=i._size,s=dv.isVertical(n),u=dv.isGrouped(n),f=n.entrywidthmode==="fraction",v=n.borderwidth,h=2*v,d=oa.itemGap,m=n.indentation+n.itemwidth+d*2,p=2*(v+d),y=Qp(n),_=n.y<0||n.y===0&&y==="top",C=n.y>1||n.y===1&&y==="bottom",x=n.tracegroupgap,b={};let{orientation:A,yref:k}=n,{maxheight:M}=n,D=_||C||A!=="v"||k!=="paper";M||(M=D?.5:1);let R=D?i.height:l.h;n._maxHeight=Math.max(M>1?M:M*R,30);var N=0;n._width=0,n._height=0;var I=tZ(n);if(s)t.each(function(be){var qe=be[0].height;ra.setTranslate(this,v+I[0],v+I[1]+n._height+qe/2+d),n._height+=qe,n._width=Math.max(n._width,be[0].width)}),N=m+n._width,n._width+=d+m+h,n._height+=p,u&&(r.each(function(be,qe){ra.setTranslate(this,0,qe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var W=Kp(n),O=n.x<0||n.x===0&&W==="right",Z=n.x>1||n.x===1&&W==="left",H=C||_,ee=i.width/2;n._maxWidth=Math.max(O?H&&W==="left"?l.l+l.w:ee:Z?H&&W==="right"?l.r+l.w:ee:l.w,2*m);var ne=0,re=0;t.each(function(be){var qe=jp(be,n,m);ne=Math.max(ne,qe),re+=qe}),N=null;var K=0;if(u){var ue=0,le=0,ke=0;r.each(function(){var be=0,qe=0;di.select(this).selectAll("g.traces").each(function(ar){var Qe=jp(ar,n,m),Be=ar[0].height;ra.setTranslate(this,I[0],I[1]+v+d+Be/2+qe),qe+=Be,be=Math.max(be,Qe),b[ar[0].trace.legendgroup]=be});var He=be+d;le>0&&He+v+le>n._maxWidth?(K=Math.max(K,le),le=0,ke+=ue+x,ue=qe):ue=Math.max(ue,qe),ra.setTranslate(this,le,ke),le+=He}),n._width=Math.max(K,le)+v,n._height=ke+ue+p}else{var ze=t.size(),Fe=re+h+(ze-1)*d=n._maxWidth&&(K=Math.max(K,ce),Ce=0,er+=Xe,n._height+=Xe,Xe=0),ra.setTranslate(this,I[0]+v+Ce,I[1]+v+er+qe/2+d),ce=Ce+He+d,Ce+=ar,Xe=Math.max(Xe,qe)}),Fe?(n._width=Ce+h,n._height=Xe+p):(n._width=Math.max(K,ce)+h,n._height+=Xe+p)}}n._width=Math.ceil(Math.max(n._width+I[0],n._titleWidth+2*(v+oa.titlePad))),n._height=Math.ceil(Math.max(n._height+I[1],n._titleHeight+2*(v+oa.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var ge=e._context.edits,Pe=ge.legendText||ge.legendPosition;t.each(function(be){var qe=di.select(this).select("."+o+"toggle"),He=be[0].height,ar=be[0].trace.legendgroup,Qe=jp(be,n,m);u&&ar!==""&&(Qe=b[ar]);var Be=Pe?m:N||Qe;!s&&!f&&(Be+=d/2),ra.setRect(qe,0,-He/2,Be,He)});var de=a.select("."+o+"titletext");de.node()&&$W(de,n,v);var G=a.select("."+o+"titletoggle");if(G.size()&&de.node()){var Q=de.attr("x")||0,$=oa.titlePad;ra.setRect(G,Q-$,v,n._titleWidth+2*$,n._titleHeight+2*$)}}function aZ(e,r,t,n){var a=e._fullLayout,i=a[r],o=Kp(i),l=Qp(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:a.width-t,l:t+i._width,b:a.height-n,t:n+i._effHeight};if(s&&u)return i5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*hv[o],r:i._width*hT[o],b:i._effHeight*hT[l],t:i._effHeight*hv[l]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function Kp(e){return ea.isRightAnchor(e)?"right":ea.isCenterAnchor(e)?"center":"left"}function Qp(e){return ea.isBottomAnchor(e)?"bottom":ea.isMiddleAnchor(e)?"middle":"top"}});var c5=te(f5=>{"use strict";var Dc=Tt(),iu=Bt(),_T=es(),Bn=gr(),iZ=Bn.pushUnique,s5=Bn.strTranslate,oZ=Bn.strRotate,lZ=k1(),Co=ei(),sZ=GA(),fs=cn(),Ma=Pt(),eg=ko(),cs=Dn(),uZ=xa().zindexSeparator,gv=dt(),wl=$u(),Ec=d1(),fZ=W3(),cZ=l5(),CT=Ec.YANGLE,u5=Math.PI*CT/180,vZ=1/Math.sin(u5),hZ=Math.cos(u5),dZ=Math.sin(u5),Cn=Ec.HOVERARROWSIZE,Rt=Ec.HOVERTEXTPAD,xT={box:!0,ohlc:!0,violin:!0,candlestick:!0},pZ={scatter:!0,scattergl:!0,splom:!0};function wT(e,r){return e.distance-r.distance}f5.hover=function(r,t,n,a){r=Bn.getGraphDiv(r);var i=t.target;Bn.throttle(r._fullLayout._uid+Ec.HOVERID,Ec.HOVERMINTIME,function(){gZ(r,t,n,a,i)})};f5.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,i=PT(a),o=RT(a),l=r.map(function(y){var _=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var k=Math.min(_,C),M=Math.max(_,C),D=Math.min(x,b),R=Math.max(x,b),N=y.trace;if(gv.traceIs(N,"gl3d")){var I=a._fullLayout[N.scene]._scene.container,W=I.offsetLeft,O=I.offsetTop;k+=W,M+=W,D+=O,R+=O}A.bbox={x0:k+o,x1:M+o,y0:D+i,y1:R+i},A.xPixel=(_+C)/2,A.yPixel=(x+b)/2,t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||Ma.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=qT(l,{gd:a,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ma.background,container:Dc.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(y,_){return y.y0-_.y0}).each(function(y,_){var C=y.y0-y.by/2;C-vM[0]._length||$<0||$>D[0]._length)return eg.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=$+D[0]._offset,"xval"in r?ee=wl.flat(i,r.xval):ee=wl.p2c(M,Q),"yval"in r?ne=wl.flat(i,r.yval):ne=wl.p2c(D,$),!iu(ee[0])||!iu(ne[0]))return Bn.warn("Fx.hover failed",r,e),eg.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=ee,e._hoverYVals=ne,e._hoverXAxes=M,e._hoverYAxes=D);var He=1/0;function ar(Gr,on){for(K=0;Kce&&(Z.splice(0,ce),He=Z[0].distance),v&&O!==0&&Z.length===0){er.distance=O,er.index=!1;var Ut=le._module.hoverPoints(er,Xe,Ce,"closest",{hoverLayer:l._hoverlayer});if(Ut&&(Ut=Ut.filter(function(Mn){return Mn.spikeDistance<=O})),Ut&&Ut.length){var ga,ma=Ut.filter(function(Mn){return Mn.xa.showspikes&&Mn.xa.spikesnap!=="hovered data"});if(ma.length){var wn=ma[0];iu(wn.x0)&&iu(wn.y0)&&(ga=Be(wn),(!ge.vLinePoint||ge.vLinePoint.spikeDistance>ga.spikeDistance)&&(ge.vLinePoint=ga))}var Qt=Ut.filter(function(Mn){return Mn.ya.showspikes&&Mn.ya.spikesnap!=="hovered data"});if(Qt.length){var Tn=Qt[0];iu(Tn.x0)&&iu(Tn.y0)&&(ga=Be(Tn),(!ge.hLinePoint||ge.hLinePoint.spikeDistance>ga.spikeDistance)&&(ge.hLinePoint=ga))}}}}}ar();function Qe(Gr,on,Ct){for(var tn=null,Nn=1/0,Zn,Ut=0;UtGr.trace.index===Ze.trace.index):Z=[Ze];var dr=Z.length,Ar=ST("x",Ze,l),mr=ST("y",Ze,l);ar(Ar,mr);var br=[],Ir={},Cr=0,Er=function(Gr){var on=xT[Gr.trace.type]?LT(Gr):Gr.trace.index;if(!Ir[on])Cr++,Ir[on]=Cr,br.push(Gr);else{var Ct=Ir[on]-1,tn=br[Ct];Ct>0&&Math.abs(Gr.distance)dr-1;lr--)Er(Z[lr]);Z=br,Je()}var xe=e._hoverdata,Ae=[],Ke=PT(e),nr=RT(e);for(let Gr of Z){var Sr=wl.makeEventData(Gr,Gr.trace,Gr.cd);if(Gr.hovertemplate!==!1){var Yr=!1;Gr.cd[Gr.index]&&Gr.cd[Gr.index].ht&&(Yr=Gr.cd[Gr.index].ht),Gr.hovertemplate=Yr||Gr.trace.hovertemplate||!1}if(Gr.xa&&Gr.ya){var zr=Gr.x0+Gr.xa._offset,st=Gr.x1+Gr.xa._offset,bt=Gr.y0+Gr.ya._offset,St=Gr.y1+Gr.ya._offset,$t=Math.min(zr,st),vn=Math.max(zr,st),hn=Math.min(bt,St),qn=Math.max(bt,St);Sr.bbox={x0:$t+nr,x1:vn+nr,y0:hn+Ke,y1:qn+Ke},Sr.xPixel=(zr+st)/2,Sr.yPixel=(bt+St)/2}Gr.eventData=[Sr],Ae.push(Sr)}e._hoverdata=Ae;var Ot=h==="y"&&(H.length>1||Z.length>1)||h==="closest"&&Pe&&Z.length>1,en=Ma.combine(l.plot_bgcolor||Ma.background,l.paper_bgcolor),Kt=qT(Z,{gd:e,hovermode:h,rotateLabels:Ot,bgColor:en,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),rn=Kt.hoverLabels;if(wl.isUnifiedHover(h)||(yZ(rn,Ot,l,Kt.commonLabelBoundingBox),ET(rn,Ot,l._invScaleX,l._invScaleY)),a&&a.tagName){var la=gv.getComponentMethod("annotations","hasClickToShow")(e,Ae);sZ(Dc.select(a),la?"pointer":"")}var xn=xZ(e,r,xe);if(!a||n||!xn&&!l.hoveranywhere)return;xe&&xn&&e.emit("plotly_unhover",{event:r,points:xe}),Un(e._hoverdata);function Un(Gr){e.emit("plotly_hover",{event:r,points:Gr,xaxes:M,yaxes:D,xvals:ee,yvals:ne})}}function LT(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var mZ=/([\s\S]*)<\/extra>/;function qT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Ec.HOVERFONT,v=r.fontSize||Ec.HOVERFONTSIZE,h=r.fontWeight||n.font.weight,d=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,p=r.fontTextcase||n.font.textcase,y=r.fontLineposition||n.font.lineposition,_=r.fontShadow||n.font.shadow,C=e[0],x=C.xa,b=C.ya,A=a.charAt(0),k=A+"Label",M=C[k];if(M===void 0&&x.type==="multicategory")for(var D=0;Dn.width-Ae&&(Ke=n.width-Ae),Ye.attr("d","M"+(Er-Ke)+",0L"+(Er-Ke+Cn)+","+xe+Cn+"H"+Ae+"v"+xe+(Rt*2+Cr.height)+"H"+-Ae+"V"+xe+Cn+"H"+(Er-Ke-Cn)+"Z"),Er=Ke,K.minX=Er-Ae,K.maxX=Er+Ae,x.side==="top"?(K.minY=lr-(Rt*2+Cr.height),K.maxY=lr-Rt):(K.minY=lr+Rt,K.maxY=lr+(Rt*2+Cr.height))}else{var nr,Sr,Yr;b.side==="right"?(nr="start",Sr=1,Yr="",Er=x._offset+x._length):(nr="end",Sr=-1,Yr="-",Er=x._offset),lr=b._offset+(C.y0+C.y1)/2,Ze.attr("text-anchor",nr),Ye.attr("d","M0,0L"+Yr+Cn+","+Cn+"V"+(Rt+Cr.height/2)+"h"+Yr+(Rt*2+Cr.width)+"V-"+(Rt+Cr.height/2)+"H"+Yr+Cn+"V-"+Cn+"Z"),K.minY=lr-(Rt+Cr.height/2),K.maxY=lr+(Rt+Cr.height/2),b.side==="right"?(K.minX=Er+Cn,K.maxX=Er+Cn+(Rt*2+Cr.width)):(K.minX=Er-Cn-(Rt*2+Cr.width),K.maxX=Er-Cn);var zr=Cr.height/2,st=N-Cr.top-zr,bt="clip"+n._uid+"commonlabel"+b._id,St;if(ErYe.hoverinfo!=="none");if(tr.length===0)return[];var ue=n.hoverlabel,le=ue.font,ke=tr[0],ze=((a==="x unified"?ke.xa:ke.ya).unifiedhovertitle||{}).text,Fe=ze?Bn.hovertemplateString({data:a==="x unified"?[{xa:ke.xa,x:ke.xVal}]:[{ya:ke.ya,y:ke.yVal}],fallback:ke.trace.hovertemplatefallback,locale:n._d3locale,template:ze}):M,Xe={showlegend:!0,legend:{title:{text:Fe,font:le},font:le,bgcolor:ue.bgcolor,bordercolor:ue.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},Ce={font:le};fZ(Xe,Ce,t._fullData);var er=Ce.legend;er.entries=[];for(var ce=0;ce=0?Ue=Je:pr+qe=0?Ue=pr:yr+qe=0?kr=or:hr+He=0?kr=hr:Te+He=0,(tr.idealAlign==="top"||!hn)&&qn?(Yr-=st/2,tr.anchor="end"):hn?(Yr+=st/2,tr.anchor="start"):tr.anchor="middle",tr.crossPos=Yr;else{if(tr.pos=Yr,hn=Sr+zr/2+vn<=I,qn=Sr-zr/2-vn>=0,(tr.idealAlign==="left"||!hn)&&qn)Sr-=zr/2,tr.anchor="end";else if(hn)Sr+=zr/2,tr.anchor="start";else{tr.anchor="middle";var Ot=vn/2,en=Sr+Ot-I,Kt=Sr-Ot;en>0&&(Sr-=en),Kt<0&&(Sr+=-Kt)}tr.crossPos=Sr}lr.attr("text-anchor",tr.anchor),Ae&&xe.attr("text-anchor",tr.anchor),Ye.attr("transform",s5(Sr,Yr)+(i?oZ(CT):""))}),{hoverLabels:Ur,commonLabelBoundingBox:K}}function MT(e,r,t,n,a,i){var v,h;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Bn.templateString(e.name,e.trace._meta)),o=kT(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===a?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(h=(v=e.trace)==null?void 0:v.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==a&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=Bn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:n._d3locale,template:f}),l=l.replace(mZ,(m,p)=>(o=kT(p,e.nameLength),""))}return[l,o]}function yZ(e,r,t,n){var a=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,v=n.minX,h=n.maxX,d=n.minY,m=n.maxY,p=function(ee){return ee*t._invScaleX},y=function(ee){return ee*t._invScaleY};e.each(function(ee){var ne=ee[a],re=ee[i],K=ne._id.charAt(0)==="x",ue=ne.range;f===0&&ue&&ue[0]>ue[1]!==K&&(l=-1);var le=0,ke=K?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ze=DT(ee,r),Fe=ee.anchor,Xe=Fe==="end"?-1:1,Ce,er;if(Fe==="middle")Ce=ee.crossPos+(K?y(ze.y-ee.by/2):p(ee.bx/2+ee.tx2width/2)),er=Ce+(K?y(ee.by):p(ee.bx));else if(K)Ce=ee.crossPos+y(Cn+ze.y)-y(ee.by/2-Cn),er=Ce+y(ee.by);else{var ce=p(Xe*Cn+ze.x),ge=ce+p(Xe*ee.bx);Ce=ee.crossPos+Math.min(ce,ge),er=ee.crossPos+Math.max(ce,ge)}K?d!==void 0&&m!==void 0&&Math.min(er,m)-Math.max(Ce,d)>1&&(re.side==="left"?(le=re._mainLinePosition,ke=t.width):ke=re._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(er,h)-Math.max(Ce,v)>1&&(re.side==="top"?(le=re._mainLinePosition,ke=t.height):ke=re._mainLinePosition)}u[f++]=[{datum:ee,traceIndex:ee.trace.index,dp:0,pos:ee.pos,posref:ee.posref,size:ee.by*(K?vZ:1)/2,pmin:le,pmax:ke}]}),u.sort(function(ee,ne){return ee[0].posref-ne[0].posref||l*(ne[0].traceIndex-ee[0].traceIndex)});var _,C,x,b,A,k,M;function D(ee){var ne=ee[0],re=ee[ee.length-1];if(C=ne.pmin-ne.pos-ne.dp+ne.size,x=re.pos+re.dp+re.size-ne.pmax,C>.01){for(A=ee.length-1;A>=0;A--)ee[A].dp+=C;_=!1}if(!(x<.01)){if(C<-.01){for(A=ee.length-1;A>=0;A--)ee[A].dp-=x;_=!1}if(_){var K=0;for(b=0;bne.pmax&&K++;for(b=ee.length-1;b>=0&&!(K<=0);b--)k=ee[b],k.pos>ne.pmax-1&&(k.del=!0,K--);for(b=0;b=0;A--)ee[A].dp-=x;for(b=ee.length-1;b>=0&&!(K<=0);b--)k=ee[b],k.pos+k.dp+k.size>ne.pmax&&(k.del=!0,K--)}}}for(;!_&&o<=s;){for(o++,_=!0,b=0;b.01){for(A=N.length-1;A>=0;A--)N[A].dp+=C;for(R.push.apply(R,N),u.splice(b+1,1),M=0,A=R.length-1;A>=0;A--)M+=R[A].dp;for(x=M/R.length,A=R.length-1;A>=0;A--)R[A].dp-=x;_=!1}else b++}u.forEach(D)}for(b=u.length-1;b>=0;b--){var O=u[b];for(A=O.length-1;A>=0;A--){var Z=O[A],H=Z.datum;H.offset=Z.dp,H.del=Z.del}}}function DT(e,r){var t=0,n=e.offset;return r&&(n*=-dZ,t=e.offset*hZ),{x:t,y:n}}function bZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Cn+Rt),n=t+r*(e.txwidth+Rt),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Rt),{alignShift:r,textShiftX:t,text2ShiftX:n}}function ET(e,r,t,n){var a=function(o){return o*t},i=function(o){return o*n};e.each(function(o){var l=Dc.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,v=bZ(o),h=DT(o,r),d=h.x,m=h.y,p=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,_;p?_="M-"+a(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+a(o.bx)+"v"+i(o.by)+"h-"+a(o.bx)+"Z":y?_="M0,0L"+a(f*Cn+d)+","+i(Cn+m)+"v"+i(o.by/2-Cn)+"h"+a(f*o.bx)+"v-"+i(o.by)+"H"+a(f*Cn+d)+"V"+i(m-Cn)+"Z":_="M"+a(f*Cn+d)+","+i(m-o.by/2)+"h"+a(f*o.bx)+"v"+i(o.by)+"h"+a(-f*o.bx)+"Z",l.select("path").attr("d",_);var C=d+v.textShiftX,x=m+o.ty0-o.by/2+Rt,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+Rt:-o.bx-Rt):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-Rt:o.bx+Rt)),s.call(Co.positionText,a(C),i(x)),o.tx2width&&(l.select("text.name").call(Co.positionText,a(v.text2ShiftX+v.alignShift*Rt+d),i(m+o.ty0-o.by/2+Rt)),l.select("rect").call(fs.setRect,a(v.text2ShiftX+(v.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),a(o.tx2width),i(o.by+2)))})}function _Z(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],i=e.cd[t]||{};function o(h){return h||iu(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=Bn.castOption(a,t,h);return o(m)?m:Bn.extractOption({},n,"",d)}:function(h,d){return Bn.extractOption(i,n,h,d)};function s(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Bn.constrain(e.x0,0,e.xa._length),e.x1=Bn.constrain(e.x1,0,e.xa._length),e.y0=Bn.constrain(e.y0,0,e.ya._length),e.y1=Bn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:cs.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:cs.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=cs.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+cs.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=cs.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+cs.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function AT(e,r,t){var n=t.container,a=t.fullLayout,i=a._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(n.selectAll(".spikeline").remove(),!!(s||l)){var v=Ma.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=_T.readability(h.color,v)<1.5?Ma.contrast(v):h.color,_=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,b=cs.getPxPosition(e,f),A,k;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(A=b,k=d),_.indexOf("across")!==-1){var M=f._counterDomainMin,D=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),D=Math.max(D,f.position)),A=i.l+M*i.w,k=i.l+D*i.w}n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":fs.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(s){var R=r.vLinePoint,N,I;u=R&&R.xa,f=R&&R.ya;var W=u.spikesnap;W==="cursor"?(N=o.pointerX,I=o.pointerY):(N=u._offset+R.x,I=f._offset+R.y);var O=_T.readability(R.color,v)<1.5?Ma.contrast(v):R.color,Z=u.spikemode,H=u.spikethickness,ee=u.spikecolor||O,ne=cs.getPxPosition(e,u),re,K;if(Z.indexOf("toaxis")!==-1||Z.indexOf("across")!==-1){if(Z.indexOf("toaxis")!==-1&&(re=ne,K=I),Z.indexOf("across")!==-1){var ue=u._counterDomainMin,le=u._counterDomainMax;u.anchor==="free"&&(ue=Math.min(ue,u.position),le=Math.max(le,u.position)),re=i.t+(1-le)*i.h,K=i.t+(1-ue)*i.h}n.insert("line",":first-child").attr({x1:N,x2:N,y1:re,y2:K,"stroke-width":H,stroke:ee,"stroke-dasharray":fs.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:N,x2:N,y1:re,y2:K,"stroke-width":H+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}Z.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:N,cy:ne-(u.side!=="top"?H:-H),r:H,fill:ee}).classed("spikeline",!0)}}}function xZ(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers)||a.binNumber!==i.binNumber)return!0}return!1}function TT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function kT(e,r){return Co.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function wZ(e,r){for(var t=r.charAt(0),n=[],a=[],i=[],o=0;oe.offsetTop+e.clientTop,RT=e=>e.offsetLeft+e.clientLeft;function pv(e,r){var t=e._fullLayout,n=r.getBoundingClientRect(),a=n.left,i=n.top,o=a+n.width,l=i+n.height,s=Bn.apply3DTransform(t._invTransform)(a,i),u=Bn.apply3DTransform(t._invTransform)(o,l),f=s[0],v=s[1],h=u[0],d=u[1];return{x:f,y:v,width:h-f,height:d-v,top:Math.min(v,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(v,d)}}});var rg=te((Kfe,zT)=>{"use strict";var MZ=gr(),AZ=Pt(),TZ=$u().isUnifiedHover;zT.exports=function(r,t,n,a){a=a||{};var i=t.legend;function o(l){a.font[l]||(a.font[l]=i?t.legend.font[l]:t.font[l])}t&&TZ(t.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(a.bgcolor||(a.bgcolor=AZ.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),MZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var FT=te((Qfe,NT)=>{"use strict";var kZ=gr(),SZ=rg(),CZ=R0();NT.exports=function(r,t){function n(a,i){return kZ.coerce(r,t,CZ,a,i)}SZ(r,t,n)}});var BT=te((ece,HT)=>{"use strict";var IT=gr(),LZ=Td(),qZ=rg();HT.exports=function(r,t,n,a){function i(l,s){return IT.coerce(r,t,LZ,l,s)}var o=IT.extendFlat({},a.hoverlabel);t.hovertemplate&&(o.namelength=-1),qZ(r,t,i,o)}});var v5=te((rce,OT)=>{"use strict";var DZ=gr(),EZ=R0();OT.exports=function(r,t){function n(a,i){return t[a]!==void 0?t[a]:DZ.coerce(r,t,EZ,a,i)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var GT=te((tce,YT)=>{"use strict";var UT=gr(),PZ=R0(),RZ=v5(),zZ=rg();YT.exports=function(r,t){function n(f,v){return UT.coerce(r,t,PZ,f,v)}var a=RZ(r,t);a&&(n("hoverdistance"),n("spikedistance"),a.indexOf("unified")!==-1&&n("hoversort"));var i=n("dragmode");i==="select"&&n("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),zZ(r,t,n),UT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var ZT=te((nce,WT)=>{"use strict";var h5=gr(),VT=dt();WT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(u){return function(f){return h5.coerceHoverinfo({hoverinfo:f},{_module:u._module},n)}}for(var i=0;i{"use strict";var FZ=dt(),IZ=c5().hover;XT.exports=function(r,t,n){var a=FZ.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;n!==void 0&&IZ(r,t,n,!0);function o(){var s,u,f,v;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals),(v=l.yvals)!=null||(l.yvals=r._hoverYVals),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),a&&a.then?a.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Ml=te((ice,KT)=>{"use strict";var HZ=Tt(),tg=gr(),BZ=ko(),X1=$u(),JT=R0(),$T=c5();KT.exports={moduleType:"component",name:"fx",constants:d1(),schema:{layout:JT},attributes:Td(),layoutAttributes:JT,supplyLayoutGlobalDefaults:FT(),supplyDefaults:BT(),supplyLayoutDefaults:GT(),calc:ZT(),getDistanceFunction:X1.getDistanceFunction,getClosest:X1.getClosest,inbox:X1.inbox,quadrature:X1.quadrature,appendArrayPointValue:X1.appendArrayPointValue,castHoverOption:UZ,castHoverinfo:YZ,hover:$T.hover,unhover:BZ.unhover,loneHover:$T.loneHover,loneUnhover:OZ,click:jT()};function OZ(e){var r=tg.isD3Selection(e)?e:HZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function UZ(e,r,t){return tg.castOption(e,r,"hoverlabel."+t)}function YZ(e,r,t){function n(a){return tg.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return tg.castOption(e,t,"hoverinfo",n)}});var mv=te(ou=>{"use strict";ou.selectMode=function(e){return e==="lasso"||e==="select"};ou.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ou.openMode=function(e){return e==="drawline"||e==="drawopenpath"};ou.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ou.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};ou.selectingOrDrawing=function(e){return ou.freeMode(e)||ou.rectMode(e)}});var ng=te((lce,QT)=>{"use strict";QT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var ag=te((sce,ek)=>{"use strict";ek.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var og=te((uce,rk)=>{"use strict";var ig=32;rk.exports={CIRCLE_SIDES:ig,i000:0,i090:ig/4,i180:ig/2,i270:ig/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var lg=te((fce,nk)=>{"use strict";var GZ=gr().strTranslate;function tk(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function VZ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function WZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return tk(e,t[r])}}function ZZ(e){return GZ(e.xaxis._offset,e.yaxis._offset)}nk.exports={p2r:tk,r2p:VZ,axValue:WZ,getTransform:ZZ}});var lf=te(lu=>{"use strict";var XZ=Q2(),ok=og(),yv=ok.CIRCLE_SIDES,d5=ok.SQRT2,lk=lg(),ak=lk.p2r,ik=lk.r2p,jZ=[0,3,4,5,6,1,2],JZ=[0,3,4,1,2];lu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&s{"use strict";var sk=va(),hk=mv(),$Z=hk.drawMode,KZ=hk.openMode,bv=og(),uk=bv.i000,fk=bv.i090,ck=bv.i180,vk=bv.i270,QZ=bv.cos45,eX=bv.sin45,dk=lg(),ug=dk.p2r,sf=dk.r2p,rX=ju(),tX=rX.clearOutline,fg=lf(),nX=fg.readPaths,aX=fg.writePaths,iX=fg.ellipseOver,oX=fg.fixDatesForPaths;function lX(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,i=r.dragmode,o=(n.layout||{}).shapes||[];if(!$Z(i)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var sX=mv(),uX=sX.selectMode,fX=ju(),cX=fX.clearOutline,p5=lf(),vX=p5.readPaths,hX=p5.writePaths,dX=p5.fixDatesForPaths;mk.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!uX(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";yk.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var ff=te(La=>{"use strict";var hs=J1(),bk=gr(),uf=Dn();La.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};La.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};La.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};La.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};La.extractPathCoords=function(e,r,t){var n=[],a=e.match(hs.segmentRE);return a.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(hs.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=a[l].drawn!==void 0;return i+(s?1:0)},0)};La.getDataToPixel=function(e,r,t,n,a){var i=e._fullLayout._size,o;if(r)if(a==="domain")o=function(s){return r._length*(n?1-s:s)+r._offset};else{var l=La.shapePositionToRange(r);o=function(s){var u=vs(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=La.decodeDate(o))}else n?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};La.getPixelToData=function(e,r,t,n){var a=e._fullLayout._size,i;if(r)if(n==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=La.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-a.t)/a.h}:i=function(l){return(l-a.l)/a.w};return i};La.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};La.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&t.xref!=="paper"&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(n.yaxis=e._fullLayout[t.yref+"axis"])),n.xsizemode=t.xsizemode,n.ysizemode=t.ysizemode,n.xanchor=t.xanchor,n.yanchor=t.yanchor,{options:t,plotinfo:n}};La.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(n.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:n}};La.getPathString=function(e,r){let t=r.type,n=uf.getRefType(r.xref),a=uf.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,v,h,d,m,p,y,_;function C(N,I,W,O){var Z;if(N)if(I==="domain")O?Z=function(H){return N._offset+N._length*(1-H)}:Z=function(H){return N._offset+N._length*H};else{let H=La.shapePositionToRange(N);Z=function(ee){return N._offset+N.r2p(H(ee,!0))},W==="path"&&N.type==="date"&&(Z=La.decodeDate(Z))}else O?Z=function(H){return i.t+i.h*(1-H)}:Z=function(H){return i.l+i.w*H};return Z}if(n==="array"?(h=[],o=r.xref.map(function(N){return uf.getFromId(e,N)}),h=r.xref.map(function(N,I){return C(o[I],uf.getRefType(N),t,!1)})):(o=uf.getFromId(e,r.xref),h=C(o,n,t,!1)),a==="array"?(d=[],l=r.yref.map(function(N){return uf.getFromId(e,N)}),d=r.yref.map(function(N,I){return C(l[I],uf.getRefType(N),t,!0)})):(l=uf.getFromId(e,r.yref),d=C(l,a,t,!0)),t==="path")return pX(r,h,d);if(n==="array")s=vs(o[0],r.x0shift),u=vs(o[1],r.x1shift),m=h[0](r.x0)+s,p=h[1](r.x1)+u;else if(s=vs(o,r.x0shift),u=vs(o,r.x1shift),r.xsizemode==="pixel"){let N=h(r.xanchor);m=N+r.x0+s,p=N+r.x1+u}else m=h(r.x0)+s,p=h(r.x1)+u;if(a==="array")f=vs(l[0],r.y0shift),v=vs(l[1],r.y1shift),y=d[0](r.y0)+f,_=d[1](r.y1)+v;else if(f=vs(l,r.y0shift),v=vs(l,r.y1shift),r.ysizemode==="pixel"){let N=d(r.yanchor);y=N-r.y0+f,_=N-r.y1+v}else y=d(r.y0)+f,_=d(r.y1)+v;if(t==="line")return"M"+m+","+y+"L"+p+","+_;if(t==="rect")return"M"+m+","+y+"H"+p+"V"+_+"H"+m+"Z";var x=(m+p)/2,b=(y+_)/2,A=Math.abs(x-m),k=Math.abs(b-y),M="A"+A+","+k,D=x+A+","+b,R=x+","+(b-k);return"M"+D+M+" 0 1,1 "+R+M+" 0 0,1 "+D+"Z"};function pX(e,r,t){let n=e.path,a=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,v=0;return n.replace(hs.segmentRE,function(h){var d=0,m=h.charAt(0),p=hs.paramIsX[m],y=hs.paramIsY[m],_=hs.numParams[m];let C=p.drawn!==void 0,x=y.drawn!==void 0,b=s?r[f]:r,A=u?t[v]:t;var k=h.slice(1).replace(hs.paramRE,function(M){return p[d]?a==="pixel"?M=b(o)+Number(M):M=b(M):y[d]&&(i==="pixel"?M=A(l)-Number(M):M=A(M)),d++,d>_&&(M="X"),M});return d>_&&(k=k.replace(/[\s,]*X.*/,""),bk.log("Ignoring extra params in segment "+h)),C&&f++,x&&v++,m+k})}La.getPixelShift=vs;function vs(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var m5=te((gce,wk)=>{"use strict";var gX=gr(),ds=Dn(),_k=ei(),xk=cn(),mX=lf().readPaths,Pc=ff(),yX=Pc.getPathString,$1=Rd(),bX=Oa().FROM_TL;wk.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var i;if(n.label.texttemplate){var o={};if(n.type!=="path"){var l=ds.getFromId(r,n.xref),s=ds.getFromId(r,n.yref);let le=Array.isArray(n.xref),ke=Array.isArray(n.yref);for(var u in $1){var f=typeof $1[u]=="function",v=!le||$1.simpleXVariables.includes(u),h=!ke||$1.simpleYVariables.includes(u);if(f&&v&&h){var d=$1[u](n,l,s);d!==void 0&&(o[u]=d)}}}i=gX.texttemplateStringForShapes({data:[o],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else i=n.label.text;var m={"data-index":t},p=n.label.font,y={"data-notex":1},_=a.append("g").attr(m).classed("shape-label",!0),C=_.append("text").attr(y).classed("shape-label-text",!0).text(i),x,b,A,k;if(n.path){var M=yX(r,n),D=mX(M,r);x=1/0,A=1/0,b=-1/0,k=-1/0;for(var R=0;RPc.getDataToPixel(r,be,$,!1,qe)(Q),G=(Q,$,be,qe)=>Pc.getDataToPixel(r,be,$,!0,qe)(Q);if(n.xsizemode==="pixel"){let Q=de(n.xanchor,void 0,ze,er),$=Pc.getPixelShift(ze,n.x0shift),be=Pc.getPixelShift(ze,n.x1shift);x=Q+n.x0+$,b=Q+n.x1+be}else x=de(n.x0,n.x0shift,ze,er),b=de(n.x1,n.x1shift,Fe,ce);if(n.ysizemode==="pixel"){let Q=G(n.yanchor,void 0,Xe,ge),$=Pc.getPixelShift(Xe,n.y0shift),be=Pc.getPixelShift(Xe,n.y1shift);A=Q-n.y0+$,k=Q-n.y1+be}else A=G(n.y0,n.y0shift,Xe,ge),k=G(n.y1,n.y1shift,Ce,Pe)}var H=n.label.textangle;H==="auto"&&(n.type==="line"?H=_X(x,A,b,k):H=0),C.call(function(le){return le.call(xk.font,p).attr({}),_k.convertToTspans(le,r),le});var ee=xk.bBox(C.node()),ne=xX(x,A,b,k,n,H,ee),re=ne.textx,K=ne.texty,ue=ne.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ue],y:K,x:re,transform:"rotate("+H+","+re+","+K+")"}).call(_k.positionText,re,K)}};function _X(e,r,t,n){var a,i;return i=Math.abs(t-e),t>=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,i)}function xX(e,r,t,n,a,i,o){var l=a.label.textposition,s=a.label.textangle,u=a.label.padding,f=a.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=a.label.xanchor,p=a.label.yanchor,y,_,C,x;if(f==="line"){l==="start"?(y=e,_=r):l==="end"?(y=t,_=n):(y=(e+t)/2,_=(r+n)/2),m==="auto"&&(l==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var wX=gr(),MX=wX.strTranslate,Mk=ko(),kk=mv(),AX=kk.drawMode,Sk=kk.selectMode,Ck=dt(),Ak=Pt(),hg=og(),TX=hg.i000,kX=hg.i090,SX=hg.i180,CX=hg.i270,LX=ju(),Lk=LX.clearOutlineControllers,b5=lf(),vg=b5.pointsOnRectangle,y5=b5.pointsOnEllipse,qX=b5.writePaths,DX=cg().newShapes,EX=cg().createShapeObj,PX=g5(),RX=m5();qk.exports=function e(r,t,n,a){a||(a=0);var i=n.gd;function o(){e(r,t,n,a++),(y5(r[0])||n.hasText)&&l({redrawing:!0})}function l(ne){var re={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,re=DX(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,re=PX(t,n),i._fullLayout._reselect=!0),Object.keys(re).length&&Ck.call((ne||{}).redrawing?"relayout":"_guiRelayout",i,re)}var s=i._fullLayout,u=s._zoomlayer,f=n.dragmode,v=AX(f),h=Sk(f);(v||h)&&(i._fullLayout._outlining=!0),Lk(i),t.attr("d",qX(r));var d,m,p,y,_;if(!a&&(n.isActiveShape||n.isActiveSelection)){_=zX([],r);var C=u.append("g").attr("class","outline-controllers");N(C),ee()}if(v&&n.hasText){var x=u.select(".label-temp"),b=EX(t,n,n.dragmode);RX(i,"label-temp",b,x)}function A(ne){p=+ne.srcElement.getAttribute("data-i"),y=+ne.srcElement.getAttribute("data-j"),d[p][y].moveFn=k}function k(ne,re){if(r.length){var K=_[p][y][1],ue=_[p][y][2],le=r[p],ke=le.length;if(vg(le)){var ze=ne,Fe=re;if(n.isActiveSelection){var Xe=Tk(le,y);Xe[1]===le[y][1]?Fe=0:ze=0}for(var Ce=0;Ce1&&!(ne.length===2&&ne[1][0]==="Z")&&(y===0&&(ne[0][0]="M"),r[p]=ne,o(),l())}}function R(ne,re){if(ne===2){p=+re.srcElement.getAttribute("data-i"),y=+re.srcElement.getAttribute("data-j");var K=r[p];!vg(K)&&!y5(K)&&D()}}function N(ne){d=[];for(var re=0;re{"use strict";var FX=Tt(),Nk=dt(),x5=gr(),Rc=Dn(),IX=lf().readPaths,HX=dg(),gg=m5(),Fk=ju().clearOutlineControllers,_5=Pt(),mg=cn(),BX=yn().arrayEditor,Dk=ko(),Ek=Ml(),Pk=af(),zc=J1(),Ni=ff(),w5=Ni.getPathString;Bk.exports={draw:M5,drawOne:Ik,eraseActiveShape:VX,drawLabel:gg};function M5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=a(i);o&&Ek.hover(e,o,t.id)}}),n.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=a(i);o&&Ek.click(e,o,t.id)}})}function Hk(e,r,t){let n=t.xref,a=t.yref;if(Array.isArray(n)||Array.isArray(a)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=UX(r,n,a);x5.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),mg.setClipUrl(e,i,r)}else{let i=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");mg.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function UX(e,r,t){let n=e._fullLayout._size;function a(l,s){let u=(Array.isArray(l)?l:[l]).map(h=>Rc.getFromId(e,h)).filter(Boolean);if(!u.length)return s?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=u.map(function(h){return h._offset}),v=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...v)]}let i=a(r,!1),o=a(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function YX(e,r,t,n,a,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",v=t.type==="path",h=i.modifyItem,d,m,p,y,_,C,x,b,A,k,M,D,R,N,I,W=FX.select(r.node().parentNode),O=Rc.getFromId(e,t.xref),Z=Rc.getRefType(t.xref),H=Rc.getFromId(e,t.yref),ee=Rc.getRefType(t.yref),ne=t.x0shift,re=t.x1shift,K=t.y0shift,ue=t.y1shift,le=function(Qe,Be){var cr=Ni.getDataToPixel(e,O,Be,!1,Z);return cr(Qe)},ke=function(Qe,Be){var cr=Ni.getDataToPixel(e,H,Be,!0,ee);return cr(Qe)},ze=Ni.getPixelToData(e,O,!1,Z),Fe=Ni.getPixelToData(e,H,!0,ee),Xe=ce(),Ce={element:Xe.node(),gd:e,prepFn:de,doneFn:G,clickFn:Q},er;Dk.init(Ce),Xe.node().onmousemove=Pe;function ce(){return f?ge():r}function ge(){var Qe=10,Be=Math.max(t.line.width,Qe),cr=a.append("g").attr("data-index",n).attr("drag-helper",!0);cr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Be,"stroke-opacity":"0"});var or={"fill-opacity":"0"},hr=Math.max(Be/2,Qe);return cr.append("circle").attr({"data-line-point":"start-point",cx:s?le(t.xanchor)+t.x0:le(t.x0,ne),cy:u?ke(t.yanchor)-t.y0:ke(t.y0,K),r:hr}).style(or).classed("cursor-grab",!0),cr.append("circle").attr({"data-line-point":"end-point",cx:s?le(t.xanchor)+t.x1:le(t.x1,re),cy:u?ke(t.yanchor)-t.y1:ke(t.y1,ue),r:hr}).style(or).classed("cursor-grab",!0),cr}function Pe(Qe){if(pg(e)){er=null;return}if(f)Qe.target.tagName==="path"?er="move":er=Qe.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Be=Ce.element.getBoundingClientRect(),cr=Be.right-Be.left,or=Be.bottom-Be.top,hr=Qe.clientX-Be.left,Je=Qe.clientY-Be.top,pr=!v&&cr>o&&or>l&&!Qe.shiftKey?Dk.getCursor(hr/cr,1-Je/or):"move";Pk(r,pr),er=pr.split("-")[0]}}function de(Qe){pg(e)||(s&&(_=le(t.xanchor)),u&&(C=ke(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:le(t.x0),m=u?t.y0:ke(t.y0),p=s?t.x1:le(t.x1),y=u?t.y1:ke(t.y1)),dy?(x=m,M="y0",b=y,D="y1"):(x=y,M="y1",b=m,D="y0"),Pe(Qe),qe(a,t),ar(r,t,e),Ce.moveFn=er==="move"?$:be,Ce.altKey=Qe.altKey)}function G(){pg(e)||(Pk(r),He(a),Hk(r,e,t),Nk.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){pg(e)||He(a)}function $(Qe,Be){if(t.type==="path"){var cr=function(Je){return Je},or=cr,hr=cr;s?h("xanchor",t.xanchor=ze(_+Qe)):(or=function(pr){return ze(le(pr)+Qe)},O&&O.type==="date"&&(or=Ni.encodeDate(or))),u?h("yanchor",t.yanchor=Fe(C+Be)):(hr=function(pr){return Fe(ke(pr)+Be)},H&&H.type==="date"&&(hr=Ni.encodeDate(hr))),h("path",t.path=Rk(I,or,hr))}else s?h("xanchor",t.xanchor=ze(_+Qe)):(h("x0",t.x0=ze(d+Qe)),h("x1",t.x1=ze(p+Qe))),u?h("yanchor",t.yanchor=Fe(C+Be)):(h("y0",t.y0=Fe(m+Be)),h("y1",t.y1=Fe(y+Be)));r.attr("d",w5(e,t)),qe(a,t),gg(e,n,t,W)}function be(Qe,Be){if(v){var cr=function(br){return br},or=cr,hr=cr;s?h("xanchor",t.xanchor=ze(_+Qe)):(or=function(Ir){return ze(le(Ir)+Qe)},O&&O.type==="date"&&(or=Ni.encodeDate(or))),u?h("yanchor",t.yanchor=Fe(C+Be)):(hr=function(Ir){return Fe(ke(Ir)+Be)},H&&H.type==="date"&&(hr=Ni.encodeDate(hr))),h("path",t.path=Rk(I,or,hr))}else if(f){if(er==="resize-over-start-point"){var Je=d+Qe,pr=u?m-Be:m+Be;h("x0",t.x0=s?Je:ze(Je)),h("y0",t.y0=u?pr:Fe(pr))}else if(er==="resize-over-end-point"){var yr=p+Qe,Te=u?y-Be:y+Be;h("x1",t.x1=s?yr:ze(yr)),h("y1",t.y1=u?Te:Fe(Te))}}else{var Ue=function(br){return er.indexOf(br)!==-1},kr=Ue("n"),Ur=Ue("s"),tr=Ue("w"),Ye=Ue("e"),Ze=kr?x+Be:x,dr=Ur?b+Be:b,Ar=tr?A+Qe:A,mr=Ye?k+Qe:k;u&&(kr&&(Ze=x-Be),Ur&&(dr=b-Be)),(!u&&dr-Ze>l||u&&Ze-dr>l)&&(h(M,t[M]=u?Ze:Fe(Ze)),h(D,t[D]=u?dr:Fe(dr))),mr-Ar>o&&(h(R,t[R]=s?Ar:ze(Ar)),h(N,t[N]=s?mr:ze(mr)))}r.attr("d",w5(e,t)),qe(a,t),gg(e,n,t,W)}function qe(Qe,Be){(s||u)&&cr();function cr(){var or=Be.type!=="path",hr=Qe.selectAll(".visual-cue").data([0]),Je=1;hr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Je}).classed("visual-cue",!0);var pr=le(s?Be.xanchor:x5.midRange(or?[Be.x0,Be.x1]:Ni.extractPathCoords(Be.path,zc.paramIsX))),yr=ke(u?Be.yanchor:x5.midRange(or?[Be.y0,Be.y1]:Ni.extractPathCoords(Be.path,zc.paramIsY)));if(pr=Ni.roundPositionForSharpStrokeRendering(pr,Je),yr=Ni.roundPositionForSharpStrokeRendering(yr,Je),s&&u){var Te="M"+(pr-1-Je)+","+(yr-1-Je)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";hr.attr("d",Te)}else if(s){var Ue="M"+(pr-1-Je)+","+(yr-9-Je)+"v18 h2 v-18 Z";hr.attr("d",Ue)}else{var kr="M"+(pr-9-Je)+","+(yr-1-Je)+"h18 v2 h-18 Z";hr.attr("d",kr)}}}function He(Qe){Qe.selectAll(".visual-cue").remove()}function ar(Qe,Be,cr){var or=Be.xref,hr=Be.yref,Je=Rc.getFromId(cr,or),pr=Rc.getFromId(cr,hr),yr="";or!=="paper"&&!Je.autorange&&(yr+=or),hr!=="paper"&&!pr.autorange&&(yr+=hr),mg.setClipUrl(Qe,yr?"clip"+cr._fullLayout._uid+yr:null,cr)}}function Rk(e,r,t){return e.replace(zc.segmentRE,function(n){var a=0,i=n.charAt(0),o=zc.paramIsX[i],l=zc.paramIsY[i],s=zc.numParams[i],u=n.slice(1).replace(zc.paramRE,function(f){return a>=s||(o[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return i+u})}function GX(e,r){if(yg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){zk(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=zk,M5(e)}}}function zk(e){if(yg(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Fk(e),delete e._fullLayout._activeShapeIndex,M5(e))}}function VX(e){if(yg(e)){Fk(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Ok=Tt(),_g=gr()._;Uk.exports=function(r,t,n){var a=Ok.select(r._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();var i=a.append("div").classed("plotly-cloud-dialog",!0),o=i.append("div").classed("plotly-cloud-dialog-box",!0);o.append("div").classed("plotly-cloud-dialog-title",!0).text(_g(r,"Share with Plotly Cloud")),o.append("div").classed("plotly-cloud-dialog-message",!0).text(_g(r,"This chart and its data will be sent to")+" "+t+".");var l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);function s(){i.remove(),document.removeEventListener("keydown",u)}function u(f){(f.key==="Escape"||f.keyCode===27)&&s()}document.addEventListener("keydown",u),i.on("click",function(){Ok.event.target===i.node()&&s()}),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(_g(r,"Cancel")).on("click",s),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(_g(r,"Share")).on("click",function(){s(),n()})}});var k5=te((_ce,$k)=>{"use strict";var Lo=dt(),WX=ha(),Gk=va(),Vt=ag(),ZX=bg().eraseActiveShape,XX=Yk(),xg=gr(),zt=xg._,Ft=$k.exports={};Ft.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?zt(e,"Download plot as a PNG"):zt(e,"Download plot")},icon:Vt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};xg.notifier(zt(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Lo.call("downloadImage",e,t).then(function(n){xg.notifier(zt(e,"Snapshot succeeded")+" - "+n,"long",e)}).catch(function(){xg.notifier(zt(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Ft.sendChartToCloud={name:"sendChartToCloud",title:function(e){return zt(e,"Share with Plotly Cloud")},icon:Vt.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is not set)");return}try{new URL(r)}catch(t){console.error("Invalid plotlyServerURL: "+r);return}XX(e,r,function(){WX.sendDataToCloud(e,r)})}};Ft.sendDataToCloud=Ft.sendChartToCloud;Ft.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return zt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Vt.zoombox,click:ai};Ft.pan2d={name:"pan2d",_cat:"pan",title:function(e){return zt(e,"Pan")},attr:"dragmode",val:"pan",icon:Vt.pan,click:ai};Ft.select2d={name:"select2d",_cat:"select",title:function(e){return zt(e,"Box Select")},attr:"dragmode",val:"select",icon:Vt.selectbox,click:ai};Ft.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return zt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Vt.lasso,click:ai};Ft.drawclosedpath={name:"drawclosedpath",title:function(e){return zt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Vt.drawclosedpath,click:ai};Ft.drawopenpath={name:"drawopenpath",title:function(e){return zt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Vt.drawopenpath,click:ai};Ft.drawline={name:"drawline",title:function(e){return zt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Vt.drawline,click:ai};Ft.drawrect={name:"drawrect",title:function(e){return zt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Vt.drawrect,click:ai};Ft.drawcircle={name:"drawcircle",title:function(e){return zt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Vt.drawcircle,click:ai};Ft.eraseshape={name:"eraseshape",title:function(e){return zt(e,"Erase active shape")},icon:Vt.eraseshape,click:ZX};Ft.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return zt(e,"Zoom in")},attr:"zoom",val:"in",icon:Vt.zoom_plus,click:ai};Ft.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return zt(e,"Zoom out")},attr:"zoom",val:"out",icon:Vt.zoom_minus,click:ai};Ft.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return zt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Vt.autoscale,click:ai};Ft.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return zt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Vt.home,click:ai};Ft.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return zt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Vt.tooltip_basic,gravity:"ne",click:ai};Ft.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return zt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Vt.tooltip_compare,gravity:"ne",click:ai};function ai(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Gk.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(n==="zoom"){var v=a==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,p;for(f=0;f{"use strict";var Kk=k5(),$X=Object.keys(Kk),Qk=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],eS=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Qk),xv=[],KX=function(e){if(eS.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();xv.indexOf(r)===-1&&xv.push(r),xv.indexOf(t)===-1&&xv.push(t)}};$X.forEach(function(e){KX(Kk[e])});xv.sort();rS.exports={DRAW_MODES:Qk,backButtons:eS,foreButtons:xv}});var C5=te((Mce,tS)=>{"use strict";var wce=S5();tS.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var aS=te((Ace,nS)=>{"use strict";var QX=gr(),K1=Pt(),ej=yn(),rj=C5();nS.exports=function(r,t){var n=r.modebar||{},a=ej.newContainer(t,"modebar");function i(l,s){return QX.coerce(n,a,rj,l,s)}i("orientation"),i("bgcolor",K1.addOpacity(t.paper_bgcolor,.5));var o=K1.contrast(K1.rgb(t.modebar.bgcolor));i("color",K1.addOpacity(o,.3)),i("activecolor",K1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var sS=te((Tce,lS)=>{"use strict";var L5=Tt(),tj=Bt(),Mg=gr(),iS=ag(),nj=s1().version,aj=new DOMParser;function oS(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ps=oS.prototype;ps.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=n.modebar,o="#"+a+" .modebar-group";document.querySelectorAll(o).forEach(function(v){v.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Mg.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};ps.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var i=a.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(a);r.buttonElements.push(o),n.appendChild(o)}),r.element.appendChild(n)})};ps.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};ps.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&L5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||iS.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};ps.createIcon=function(e){var r=tj(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var i=aj.parseFromString(e.svg,"application/xml");n=i.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};ps.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,i=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",l=L5.select(n),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(n,u)}}else{var f=i===null?i:Mg.nestedProperty(r,i).get();l.classed("active",f===a),s(n,f===a)}})};ps.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var lj=va(),uS=ri(),q5=dt(),sj=$u().isUnifiedHover,uj=sS(),Ag=k5(),fj=S5().DRAW_MODES,cj=gr().extendDeep;fS.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=n.modeBarButtons,o;Array.isArray(i)&&i.length?o=mj(i):!n.displayModeBar&&n.watermark?o=[]:o=vj(r),a?a.update(r,o):t._modeBar=uj(r,o)};function vj(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(re,K){if(typeof K=="string"){if(K.toLowerCase()===re.toLowerCase())return!0}else{var ue=K.name,le=K._cat||K.name;if(ue===re||le===re.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=n.modeBarButtonsToAdd.concat(i.filter(function(re){for(var K=0;K1?(N=["toggleHover"],I=["resetViews"]):v?(R=["zoomInGeo","zoomOutGeo"],N=["hoverClosestGeo"],I=["resetGeo"]):f?(N=["hoverClosest3d"],I=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(R=["zoomInMapbox","zoomOutMapbox"],N=["toggleHover"],I=["resetViewMapbox"]):y?(R=["zoomInMap","zoomOutMap"],N=["toggleHover"],I=["resetViewMap"]):h?N=["hoverClosestPie"]:x?(N=["hoverClosestCartesian","hoverCompareCartesian"],I=["resetViewSankey"]):N=["toggleHover"],u&&N.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(pj(t)||A)&&(N=[]),u&&!b&&(R=["zoomIn2d","zoomOut2d","autoScale2d"],I[0]!=="resetViews"&&(I=["resetScale2d"])),f?W=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?W=["zoom2d","pan2d"]:p||y||v?W=["pan2d"]:_&&(W=["zoom2d"]),dj(t)&&W.push("select2d","lasso2d");var O=[],Z=function(re){O.indexOf(re)===-1&&N.indexOf(re)!==-1&&O.push(re)};if(Array.isArray(l)){for(var H=[],ee=0;ee{"use strict";vS.exports={moduleType:"component",name:"modebar",layoutAttributes:C5(),supplyLayoutDefaults:aS(),manage:cS()}});var E5=te((Cce,hS)=>{"use strict";var yj=Oa().FROM_BL;hS.exports=function(r,t,n){n===void 0&&(n=yj[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(i+(a[0]-i)*t),r.l2r(i+(a[1]-i)*t)],r.setScale()}});var eh=te(Q1=>{"use strict";var Nc=gr(),P5=tf(),Al=va().id2name,bj=bl(),dS=E5(),_j=qp(),xj=Rn().ALMOST_EQUAL,wj=Oa().FROM_BL;Q1.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,v,h,d,m;for(l=0;li?t.slice(i):n.slice(a))+o}function Aj(e,r){for(var t=r._size,n=t.h/t.w,a={},i=Object.keys(e),o=0;oxj*m&&!C)){for(i=0;iW&&ueN&&(N=ue);var ke=(N-R)/(2*I);v/=ke,R=s.l2r(R),N=s.l2r(N),s.range=s._input.range=k{"use strict";var kg=Tt(),ii=dt(),ro=ha(),qo=gr(),N5=ei(),F5=ng(),rh=Pt(),wv=cn(),yS=z1(),MS=D5(),th=Dn(),su=Oa(),AS=eh(),Tj=AS.enforce,kj=AS.clean,bS=tf().doAutoRange,TS="start",Sj="middle",kS="end",Cj=xa().zindexSeparator;Aa.layoutStyles=function(e){return qo.syncOrAsync([ro.doAutoMargin,qj],e)};function Lj(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]r[0])return!0}return!1}function qj(e){var r=e._fullLayout,t=r._size,n=t.p,a=th.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(wv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Aa.drawMainTitle(e),MS.manage(e),!r._has("cartesian"))return ro.previousPromises(e);function v(de,G,Q){var $=de._lw/2;if(de._id.charAt(0)==="x"){if(G){if(Q==="top")return G._offset-n-$}else return t.t+t.h*(1-(de.position||0))+$%1;return G._offset+G._length+n+$}if(G){if(Q==="right")return G._offset+G._length+n+$}else return t.l+t.w*(de.position||0)+$%1;return G._offset-n-$}for(i=0;i0){Rj(e,i,u,s),l.attr({x:o,y:i,"text-anchor":n,dy:wS(r.yanchor)}).call(N5.positionText,o,i);var f=(r.text.match(N5.BR_TAG_ALL)||[]).length;if(f){var v=su.LINE_SPACING*f+su.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",y)})}var h=kg.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+yS.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":n,dy:wS(r.yanchor)}).call(N5.positionText,o,p)}}}};function Dj(e,r,t,n,a){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=qo.isTopAnchor(r)?n:n-a,l=t==="b"?i-o:o;return qo.isTopAnchor(r)&&t==="t"||qo.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Ej(i,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Rj(e,r,t,n){var a="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Dj(e,i,o,r,n)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[a]=s),ro.allowAutoMargin(e,a),ro.autoMargin(e,a,l)}function zj(e,r){var t=e.title,n=e._size,a=0;return r===TS?a=t.pad.l:r===kS&&(a=-t.pad.r),t.xref==="paper"?n.l+n.w*t.x+a:e.width*t.x+a}function Nj(e,r){var t=e.title,n=e._size,a=0;return r==="0em"||!r?a=-t.pad.b:r===su.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto"?n.t/2:t.yref==="paper"?n.t+n.h-n.h*t.y+a:e.height-e.height*t.y+a}function wS(e){return e==="top"?su.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":su.MID_SHIFT+"em"}function Fj(e){var r=e.title,t=Sj;return qo.isRightAnchor(r)?t=kS:qo.isLeftAnchor(r)&&(t=TS),t}function Ij(e){var r=e.title,t="0em";return qo.isTopAnchor(r)?t=su.CAP_SHIFT+"em":qo.isMiddleAnchor(r)&&(t=su.MID_SHIFT+"em"),t}Aa.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var Hj=lf().readPaths,Bj=dg(),SS=ju().clearOutlineControllers,I5=Pt(),CS=cn(),Oj=yn().arrayEditor,LS=ff(),Uj=LS.getPathString;DS.exports={draw:Cg,drawOne:qS,activateLastSelection:Vj};function Cg(e){var r=e._fullLayout;SS(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;y--){var _=o.append("path").attr(s).style("opacity",y?.1:u).call(I5.stroke,v).call(I5.fill,f).call(CS.dashLine,y?"solid":d,y?4+h:h);if(Yj(_,e,n),m){var C=Oj(e.layout,"selections",n);_.style({cursor:"move"});var x={element:_.node(),plotinfo:a,gd:e,editHelpers:C,isActiveSelection:!0},b=Hj(l,e);Bj(b,_,x)}else _.style("pointer-events",y?"all":"none");p[y]=_}var A=p[0],k=p[1];k.node().addEventListener("click",function(){return Gj(e,A)})}}function Yj(e,r,t){var n=t.xref+t.yref;CS.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function Gj(e,r){if(Lg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){H5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=H5,Cg(e)}}}function Vj(e){if(Lg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=H5,Cg(e)}}function H5(e){if(Lg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(SS(e),delete e._fullLayout._activeSelectionIndex,Cg(e))}}});var PS=te((Ece,ES)=>{function Wj(){var e,r=0,t=!1;function n(a,i){return e.list.push({type:a,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,i){return n("check",{seg1:a,seg2:i})},segmentChop:function(a,i){return n("div_seg",{seg:a,pt:i}),n("chop",{seg:a,pt:i})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,i){return n("new_seg",{seg:a,primary:i})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,i,o){return n("temp_status",{seg:a,above:i,below:o})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,i,o){return n("status",{seg:a,above:i,below:o})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,i){return n("chain_rem_head",{index:a,pt:i})},chainRemoveTail:function(a,i){return n("chain_rem_tail",{index:a,pt:i})},chainNew:function(a,i){return n("chain_new",{pt1:a,pt2:i})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,i){return n("chain_add_head",{index:a,pt:i})},chainAddTail:function(a,i){return n("chain_add_tail",{index:a,pt:i})},chainConnect:function(a,i){return n("chain_con",{index1:a,index2:i})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,i){return n("chain_join",{index1:a,index2:i})},done:function(){return n("done")}},e}ES.exports=Wj});var zS=te((Pce,RS)=>{function Zj(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var i=n[0],o=n[1],l=a[0],s=a[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,n,a){var i=t[1]-n[1],o=a[0]-n[0],l=t[0]-n[0],s=a[1]-n[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-i>e&&(o-f)*(i-v)/(l-v)+f-a>e&&(s=!s),o=f,l=v}return s}};return r}RS.exports=Zj});var FS=te((Rce,NS)=>{var Xj={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};NS.exports=Xj});var HS=te((zce,IS)=>{var nh=FS();function jj(e,r,t){function n(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function a(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=nh.create();function o(m,p,y,_,C,x){var b=r.pointsCompare(p,C);return b!==0?b:r.pointsSame(y,x)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(y,_?C:x,_?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var _=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return _<0})}function s(m,p){var y=nh.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function u(m,p,y){var _=nh.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=_,l(_,m.pt)}function f(m,p){var y=s(m,p);return u(y,m,p),y}function v(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=a(p,m.seg.end,m.seg);return v(m,p),f(y,m.primary)}function d(m,p){var y=nh.create();function _(H,ee){var ne=H.seg.start,re=H.seg.end,K=ee.seg.start,ue=ee.seg.end;return r.pointsCollinear(ne,K,ue)?r.pointsCollinear(re,K,ue)||r.pointAboveOrOnLine(re,K,ue)?1:-1:r.pointAboveOrOnLine(ne,K,ue)?1:-1}function C(H){return y.findTransition(function(ee){var ne=_(H,ee.ev);return ne>0})}function x(H,ee){var ne=H.seg,re=ee.seg,K=ne.start,ue=ne.end,le=re.start,ke=re.end;t&&t.checkIntersection(ne,re);var ze=r.linesIntersect(K,ue,le,ke);if(ze===!1){if(!r.pointsCollinear(K,ue,le)||r.pointsSame(K,ke)||r.pointsSame(ue,le))return!1;var Fe=r.pointsSame(K,le),Xe=r.pointsSame(ue,ke);if(Fe&&Xe)return ee;var Ce=!Fe&&r.pointBetween(K,le,ke),er=!Xe&&r.pointBetween(ue,le,ke);if(Fe)return er?h(ee,ue):h(H,ke),ee;Ce&&(Xe||(er?h(ee,ue):h(H,ke)),h(ee,K))}else ze.alongA===0&&(ze.alongB===-1?h(H,le):ze.alongB===0?h(H,ze.pt):ze.alongB===1&&h(H,ke)),ze.alongB===0&&(ze.alongA===-1?h(ee,K):ze.alongA===0?h(ee,ze.pt):ze.alongA===1&&h(ee,ue));return!1}for(var b=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let H=function(){if(M){var ee=x(A,M);if(ee)return ee}return D?x(A,D):!1};var Z=H;t&&t.segmentNew(A.seg,A.primary);var k=C(A),M=k.before?k.before.ev:null,D=k.after?k.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,D?D.seg:!1);var R=H();if(R){if(e){var N;A.seg.myFill.below===null?N=!0:N=A.seg.myFill.above!==A.seg.myFill.below,N&&(R.seg.myFill.above=!R.seg.myFill.above)}else R.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(R.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var N;A.seg.myFill.below===null?N=!0:N=A.seg.myFill.above!==A.seg.myFill.below,D?A.seg.myFill.below=D.seg.myFill.above:A.seg.myFill.below=m,N?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var I;D?A.primary===D.primary?I=D.seg.otherFill.above:I=D.seg.myFill.above:I=A.primary?p:m,A.seg.otherFill={above:I,below:I}}t&&t.status(A.seg,M?M.seg:!1,D?D.seg:!1),A.other.status=k.insert(nh.node({ev:A}))}else{var W=A.status;if(W===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(W.prev)&&y.exists(W.next)&&x(W.prev.ev,W.next.ev),t&&t.statusRemove(W.ev.seg),W.remove(),!A.primary){var O=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=O}b.push(A.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var p,y=m[m.length-1],_=0;_{function Jj(e,r,t){var n=[],a=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(Z,H,ee){return f.index=Z,f.matches_head=H,f.matches_pt1=ee,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function ah(e,r,t){var n=[];return e.forEach(function(a){var i=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[i]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(n),n}var $j={union:function(e,r){return ah(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ah(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ah(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ah(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ah(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};US.exports=$j});var VS=te((Ice,GS)=>{var Kj={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var Qj=PS(),eJ=zS(),WS=HS(),rJ=OS(),ih=YS(),ZS=VS(),Do=!1,oh=eJ(),Fi;Fi={buildLog:function(e){return e===!0?Do=Qj():e===!1&&(Do=!1),Do===!1?!1:Do.list},epsilon:function(e){return oh.epsilon(e)},segments:function(e){var r=WS(!0,oh,Do);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=WS(!1,oh,Do);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:ih.union(e.combined,Do),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:ih.intersect(e.combined,Do),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:ih.difference(e.combined,Do),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:ih.differenceRev(e.combined,Do),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:ih.xor(e.combined,Do),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:rJ(e.segments,oh,Do),inverted:e.inverted}},polygonFromGeoJSON:function(e){return ZS.toPolygon(Fi,e)},polygonToGeoJSON:function(e){return ZS.fromPolygon(Fi,oh,e)},union:function(e,r){return lh(e,r,Fi.selectUnion)},intersect:function(e,r){return lh(e,r,Fi.selectIntersect)},difference:function(e,r){return lh(e,r,Fi.selectDifference)},differenceRev:function(e,r){return lh(e,r,Fi.selectDifferenceRev)},xor:function(e,r){return lh(e,r,Fi.selectXor)}};function lh(e,r,t){var n=Fi.segments(e),a=Fi.segments(r),i=Fi.combine(n,a),o=t(i);return Fi.polygon(o)}typeof window=="object"&&(window.PolyBool=Fi);XS.exports=Fi});var $S=te((Bce,JS)=>{JS.exports=function(r,t,n,a){var i=r[0],o=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var s=a-n,u=0,f=s-1;uo!=m>o&&i<(d-v)*(o-h)/(m-h)+v;p&&(l=!l)}return l}});var Eg=te((Oce,KS)=>{"use strict";var O5=Dd().dot,qg=Rn().BADNUM,Dg=KS.exports={};Dg.tester=function(r){var t=r.slice(),n=t[0][0],a=n,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||_===qg||_o||p&&u(m))}function v(m,p){var y=m[0],_=m[1];if(y===qg||ya||_===qg||_o)return!1;var C=t.length,x=t[0][0],b=t[0][1],A=0,k,M,D,R,N;for(k=1;kMath.max(M,x)||_>Math.max(D,b)))if(_l||Math.abs(O5(v,u))>a)return!0;return!1};Dg.filter=function(r,t){var n=[r[0]],a=0,i=0;function o(s){r.push(s);var u=n.length,f=a;n.splice(i+1);for(var v=f+1;v1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:n}}});var eC=te((Uce,QS)=>{"use strict";QS.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var wC=te((Yce,xC)=>{"use strict";var rC=jS(),tJ=$S(),fh=dt(),nJ=cn().dashStyle,sh=Pt(),aJ=Ml(),iJ=$u().makeEventData,ph=mv(),oJ=ph.freeMode,lJ=ph.rectMode,ch=ph.drawMode,V5=ph.openMode,W5=ph.selectMode,tC=ff(),nC=J1(),sC=dg(),uC=ju().clearOutline,fC=lf(),U5=fC.handleEllipse,sJ=fC.readPaths,uJ=cg().newShapes,fJ=g5(),cJ=B5().activateLastSelection,Rg=gr(),vJ=Rg.sorterAsc,cC=Eg(),uh=Vd(),Eo=va().getFromId,hJ=ng(),dJ=Sg().redrawReglTraces,zg=eC(),gs=zg.MINSELECT,pJ=cC.filter,Z5=cC.tester,X5=lg(),aC=X5.p2r,gJ=X5.axValue,mJ=X5.getTransform;function j5(e){return e.subplot!==void 0}function yJ(e,r,t,n,a){var i=!j5(n),o=oJ(a),l=lJ(a),s=V5(a),u=ch(a),f=W5(a),v=a==="drawline",h=a==="drawcircle",d=v||h,m=n.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,_=p._zoomlayer,C=n.element.getBoundingClientRect(),x=n.plotinfo,b=mJ(x),A=r-C.left,k=t-C.top;p._calcInverseTransform(m);var M=Rg.apply3DTransform(p._invTransform)(A,k);A=M[0],k=M[1];var D=p._invScaleX,R=p._invScaleY,N=A,I=k,W="M"+A+","+k,O=n.xaxes[0],Z=n.yaxes[0],H=O._length,ee=Z._length,ne=e.altKey&&!(ch(a)&&s),re,K,ue,le,ke,ze,Fe;hC(e,m,n),o&&(re=pJ([[A,k]],zg.BENDPX));var Xe=_.selectAll("path.select-outline-"+x.id).data([1]),Ce=u?p.newshape:p.newselection;u&&(n.hasText=Ce.label.text||Ce.label.texttemplate);var er=u&&!s?Ce.fillcolor:"rgba(0,0,0,0)",ce=Ce.line.color||(i?sh.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Xe.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?Ce.opacity/2:1,"stroke-dasharray":nJ(Ce.line.dash,Ce.line.width),"stroke-width":Ce.line.width+"px","shape-rendering":"crispEdges"}).call(sh.stroke,ce).call(sh.fill,er).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",W+"Z");var ge=_.append("path").attr("class","zoombox-corners").style({fill:sh.background,stroke:sh.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&n.hasText){var Pe=_.select(".label-temp");Pe.empty()&&(Pe=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var de=p._uid+zg.SELECTID,G=[],Q=Ng(m,n.xaxes,n.yaxes,n.subplot);y&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(i){var be=O._id,qe=Z._id;yC(m,be,qe,Q);for(var He=(m.layout||{}).selections||[],ar=[],Qe=!1,Be=0;Be=0){m._fullLayout._deactivateShape(m);return}if(!u){var He=p.clickmode;uh.done(de).then(function(){if(uh.clear(de),be===2){for(Xe.remove(),ke=0;ke-1&&vC(qe,m,n.xaxes,n.yaxes,n.subplot,n,Xe),He==="event"&&dh(m,void 0);aJ.click(m,qe,x.id)}).catch(Rg.error)}},n.doneFn=function(){ge.remove(),uh.done(de).then(function(){uh.clear(de),!y&&le&&n.selectionDefs&&(le.subtract=ne,n.selectionDefs.push(le),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,ue)),(y||u)&&vh(n,y),n.doneFnCompleted&&n.doneFnCompleted(G),f&&dh(m,Fe)}).catch(Rg.error)}}function vC(e,r,t,n,a,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,p,y,_,C,x,b,A;if(MJ(l)){hC(e,r,i),h=Ng(r,t,n,a);var k=AJ(l,h),M=k.pointNumbers.length>0;if(M?TJ(h,k):kJ(h)&&(C=oC(k))){for(o&&o.remove(),A=0;A=0}function wJ(e){return e._fullLayout._activeSelectionIndex>=0}function vh(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;xJ(a)&&a._fullLayout._deactivateShape(a),wJ(a)&&a._fullLayout._deactivateSelection(a);var i=a._fullLayout,o=i._zoomlayer,l=ch(t),s=W5(t);if(l||s){var u=o.selectAll(".select-outline-"+n.id);if(u&&a._fullLayout._outlining){var f;l&&(f=uJ(u,e)),f&&fh.call("_guiRelayout",a,{shapes:f});var v;s&&!j5(e)&&(v=fJ(u,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,fh.call("_guiRelayout",a,{selections:v}).then(function(){r&&cJ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function iC(e){return e._id}function Ng(e,r,t,n){if(!e.calcdata)return[];var a=[],i=r.map(iC),o=t.map(iC),l,s,u;for(u=0;u0,i=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function TJ(e,r){var t=[],n,a,i,o;for(o=0;o0&&t.push(n);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function hh(e,r,t){var n;for(n=0;n-1&&r;if(!o&&r){var be=lC(e,!0);if(be.length){var qe=be[0].xref,He=be[0].yref;if(qe&&He){var ar=bC(be),Qe=_C([Eo(e,qe,"x"),Eo(e,He,"y")]);Qe(G,ar)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:$&&dh(e,G),h._reselect=!1}if(!o&&h._deselect){var Be=h._deselect;l=Be.xref,s=Be.yref,LJ(l,s,f)||yC(e,l,s,n),$&&(G.points.length?dh(e,G):K5(e)),h._deselect=!1}return{eventData:G,selectionTesters:t}}function CJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";MC.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var gh=te((Vce,AC)=>{"use strict";AC.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var Mv=te((Zce,SC)=>{"use strict";var TC=Q5(),kC=Qa(),Fg=xa(),RJ=yn().templatedArray,Wce=gh();SC.exports=RJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:kC({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:TC.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:TC.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Fg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Fg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Fg.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Fg.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:kC({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ig=te((Xce,CC)=>{"use strict";CC.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var eb=te((jce,LC)=>{"use strict";LC.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Fc=te((Jce,FC)=>{"use strict";var qC=E2().axisHoverFormat,{hovertemplateAttrs:zJ,texttemplateAttrs:NJ,templatefallbackAttrs:DC}=lc(),EC=ev(),FJ=Qa(),PC=rs().dash,IJ=rs().pattern,HJ=cn(),BJ=Ig(),mh=fa().extendFlat,OJ=eb();function RC(e){return{valType:"any",dflt:0,editType:"calc"}}function zC(e){return{valType:"any",editType:"calc"}}function NC(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}FC.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:RC("x"),yperiod:RC("y"),xperiod0:zC("x0"),yperiod0:zC("y0"),xperiodalignment:NC("x"),yperiodalignment:NC("y"),xhoverformat:qC("x"),yhoverformat:qC("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:NJ(),texttemplatefallback:DC({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:zJ({},{keys:BJ.eventDataKeys}),hovertemplatefallback:DC(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:mh({},PC,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:OJ(!0),fillgradient:mh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:IJ,marker:mh({symbol:{valType:"enumerated",values:HJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:mh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:mh({},PC,{arrayOk:!0}),editType:"calc"},EC("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},EC("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:FJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var rb=te((Kce,BC)=>{"use strict";var IC=Mv(),HC=Fc().line,UJ=rs().dash,Hg=fa().extendFlat,YJ=xo().overrideAll,GJ=yn().templatedArray,$ce=gh();BC.exports=YJ(GJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Hg({},IC.xref,{}),yref:Hg({},IC.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:HC.color,width:Hg({},HC.width,{min:1,dflt:1}),dash:Hg({},UJ,{dflt:"dot"})}}),"arraydraw","from-root")});var GC=te((Qce,YC)=>{"use strict";var OC=gr(),Bg=Dn(),VJ=_l(),WJ=rb(),UC=ff();YC.exports=function(r,t){VJ(r,t,{name:"selections",handleItemDefaults:ZJ});for(var n=t.selections,a=0;a{"use strict";VC.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var yh=te((r0e,jC)=>{"use strict";var XJ=dt(),ZC=gr(),XC=va();jC.exports=function(r){return function(n,a){var i=n[r];if(Array.isArray(i))for(var o=XJ.subplotsRegistry.cartesian,l=o.idRegex,s=a._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=a._has("cartesian"),d=0;d{"use strict";var JC=B5(),bh=wC();$C.exports={moduleType:"component",name:"selections",layoutAttributes:rb(),supplyLayoutDefaults:GC(),supplyDrawNewSelectionDefaults:WC(),includeBasePlot:yh()("selections"),draw:JC.draw,drawOne:JC.drawOne,reselect:bh.reselect,prepSelect:bh.prepSelect,clearOutline:bh.clearOutline,clearSelectionsCache:bh.clearSelectionsCache,selectOnClick:bh.selectOnClick}});var yL=te((n0e,mL)=>{"use strict";var ob=Tt(),Po=gr(),KC=Po.numberFormat,jJ=es(),JJ=H3(),Og=dt(),lL=Po.strTranslate,$J=ei(),QC=Pt(),vf=cn(),KJ=Ml(),eL=Dn(),QJ=af(),e$=ko(),sL=mv(),Ug=sL.selectingOrDrawing,r$=sL.freeMode,t$=Oa().FROM_TL,n$=ng(),a$=Sg().redrawReglTraces,i$=ha(),nb=va().getFromId,o$=uu().prepSelect,l$=uu().clearOutline,s$=uu().selectOnClick,tb=E5(),lb=xa(),rL=lb.MINDRAG,pi=lb.MINZOOM,tL=!0;function u$(e,r,t,n,a,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,v,h,d,m,p,y,_,C,x,b,A,k,M,D,R,N,I,W,O,Z,H,ee,ne;t+=r.yaxis._shift;function re(){if(v=r.xaxis,h=r.yaxis,x=v._length,b=h._length,_=v._offset,C=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,o&&l)for(var Ye=r.overlays,Ze=0;Ze=0){dr._fullLayout._deactivateShape(dr);return}var Ar=dr._fullLayout.clickmode;if(ib(dr),Ye===2&&!f&&yr(),u)Ar.indexOf("select")>-1&&s$(Ze,dr,p,y,r.id,le),Ar.indexOf("event")>-1&&KJ.click(dr,Ze,r.id);else if(Ye===1&&f){var mr=o?h:v,br=o==="s"||l==="w"?0:1,Ir=mr._name+".range["+br+"]",Cr=f$(mr,br),Er="left",lr="middle";if(mr.fixedrange)return;o?(lr=o==="n"?"top":"bottom",mr.side==="right"&&(Er="right")):l==="e"&&(Er="right"),dr._context.showAxisRangeEntryBoxes&&ob.select(ue).call($J.makeEditable,{gd:dr,immediate:!0,background:dr._fullLayout.paper_bgcolor,text:String(Cr),fill:mr.tickfont?mr.tickfont.color:"#444",horizontalAlign:Er,verticalAlign:lr}).on("edit",function(xe){var Ae=mr.d2r(xe);Ae!==void 0&&Og.call("_guiRelayout",dr,Ir,Ae)})}}e$.init(le);var Fe,Xe,Ce,er,ce,ge,Pe,de,G,Q;function $(Ye,Ze,dr){var Ar=ue.getBoundingClientRect();Fe=Ze-Ar.left,Xe=dr-Ar.top,e._fullLayout._calcInverseTransform(e);var mr=Po.apply3DTransform(e._fullLayout._invTransform)(Fe,Xe);Fe=mr[0],Xe=mr[1],Ce={l:Fe,r:Fe,w:0,t:Xe,b:Xe,h:0},er=e._hmpixcount?e._hmlumcount/e._hmpixcount:jJ(e._fullLayout.plot_bgcolor).getLuminance(),ce="M0,0H"+x+"V"+b+"H0V0",ge=!1,Pe="xy",Q=!1,de=cL(s,er,_,C,ce),G=vL(s,_,C)}function be(Ye,Ze){if(e._transitioningWithDuration)return!1;var dr=Math.max(0,Math.min(x,ee*Ye+Fe)),Ar=Math.max(0,Math.min(b,ne*Ze+Xe)),mr=Math.abs(dr-Fe),br=Math.abs(Ar-Xe);Ce.l=Math.min(Fe,dr),Ce.r=Math.max(Fe,dr),Ce.t=Math.min(Xe,Ar),Ce.b=Math.max(Xe,Ar);function Ir(){Pe="",Ce.r=Ce.l,Ce.t=Ce.b,G.attr("d","M0,0Z")}if(A.isSubplotConstrained)mr>pi||br>pi?(Pe="xy",mr/x>br/b?(br=mr*b/x,Xe>Ar?Ce.t=Xe-br:Ce.b=Xe+br):(mr=br*x/b,Fe>dr?Ce.l=Fe-mr:Ce.r=Fe+mr),G.attr("d",Yg(Ce))):Ir();else if(k.isSubplotConstrained)if(mr>pi||br>pi){Pe="xy";var Cr=Math.min(Ce.l/x,(b-Ce.b)/b),Er=Math.max(Ce.r/x,(b-Ce.t)/b);Ce.l=Cr*x,Ce.r=Er*x,Ce.b=(1-Cr)*b,Ce.t=(1-Er)*b,G.attr("d",Yg(Ce))}else Ir();else!D||br0){var xe;if(k.isSubplotConstrained||!M&&D.length===1){for(xe=0;xe1&&(Ir.maxallowed!==void 0&&N===(Ir.range[0]1&&(Cr.maxallowed!==void 0&&I===(Cr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function v$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function cL(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",lL(t,n)).attr("d",a+"Z")}function vL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:QC.background,stroke:QC.defaultLine,"stroke-width":1,opacity:0}).attr("transform",lL(r,t)).attr("d","M0,0Z")}function hL(e,r,t,n,a,i){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),dL(e,r,a,i)}function dL(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function ib(e){ob.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function pL(e){tL&&e.data&&e._context.showTips&&(Po.notifier(Po._(e,"Double-click to zoom back out"),"long",e),tL=!1)}function h$(e,r){return"M"+(e.l-.5)+","+(r-pi-.5)+"h-3v"+(2*pi+1)+"h3ZM"+(e.r+.5)+","+(r-pi-.5)+"h3v"+(2*pi+1)+"h-3Z"}function d$(e,r){return"M"+(r-pi-.5)+","+(e.t-.5)+"v-3h"+(2*pi+1)+"v3ZM"+(r-pi-.5)+","+(e.b+.5)+"v3h"+(2*pi+1)+"v-3Z"}function Yg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,pi)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function iL(e,r,t,n,a){for(var i=!1,o={},l={},s,u,f,v,h=(a||{}).xaHash,d=(a||{}).yaHash,m=0;m{"use strict";var p$=Tt(),Gg=Ml(),g$=ko(),m$=af(),Tl=yL().makeDragBox,Ta=xa().DRAGGERSIZE;Vg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){p$.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});n.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Tl(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Gg.hover(r,h,i)},Gg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,g$.unhover(r,h))},r._context.showAxisDragHandles&&(Tl(r,o,l._offset-Ta,s._offset-Ta,Ta,Ta,"n","w"),Tl(r,o,l._offset+l._length,s._offset-Ta,Ta,Ta,"n","e"),Tl(r,o,l._offset-Ta,s._offset+s._length,Ta,Ta,"s","w"),Tl(r,o,l._offset+l._length,s._offset+s._length,Ta,Ta,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Ta),Tl(r,o,l._offset+l._length*.1,f,l._length*.8,Ta,"","ew"),Tl(r,o,l._offset,f,l._length*.1,Ta,"","w"),Tl(r,o,l._offset+l._length*.9,f,l._length*.1,Ta,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=Ta),Tl(r,o,v,s._offset+s._length*.1,Ta,s._length*.8,"ns",""),Tl(r,o,v,s._offset+s._length*.9,Ta,s._length*.1,"s",""),Tl(r,o,v,s._offset,Ta,s._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(i){i.target=r._fullLayout._lasthover,Gg.hover(r,i,t._hoversubplot)},a.onclick=function(i){i.target=r._fullLayout._lasthover,Gg.click(r,i)},a.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Vg.updateFx(r)}};Vg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";m$(r._draggers,t)}});var xL=te((i0e,_L)=>{"use strict";var bL=dt();_L.exports=function(r){for(var t=bL.layoutArrayContainers,n=bL.layoutArrayRegexes,a=r.split("[")[0],i,o,l=0;l{"use strict";var y$=$s(),ub=qd(),_h=Bu(),b$=n2().sorterAsc,fb=dt();xh.containerArrayMatch=xL();var _$=xh.isAddVal=function(r){return r==="add"||y$(r)},wL=xh.isRemoveVal=function(r){return r===null||r==="remove"};xh.applyContainerArrayChanges=function(r,t,n,a,i){var o=t.astr,l=fb.getComponentMethod(o,"supplyLayoutDefaults"),s=fb.getComponentMethod(o,"draw"),u=fb.getComponentMethod(o,"drawOne"),f=a.replot||a.recalc||l===ub||s===ub,v=r.layout,h=r._fullLayout;if(n[""]){Object.keys(n).length>1&&_h.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(wL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return _h.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(v,h),s(r),!0)}var m=Object.keys(n).map(Number).sort(b$),p=t.get(),y=p||[],_=i(h,o).get(),C=[],x=-1,b=y.length,A,k,M,D,R,N,I,W;for(A=0;Ay.length-(I?0:1)){_h.warn("index out of range",o,M);continue}if(N!==void 0)R.length>1&&_h.warn("Insertion & removal are incompatible with edits to the same index.",o,M),wL(N)?C.push(M):I?(N==="add"&&(N={}),y.splice(M,0,N),_&&_.splice(M,0,{})):_h.warn("Unrecognized full object edit value",o,M,N),x===-1&&(x=M);else for(k=0;k=0;A--)y.splice(C[A],1),_&&_.splice(C[A],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(v,h),u!==ub){var O;if(x===-1)O=m;else{for(b=Math.max(y.length,b),O=[],A=0;A=x));A++)O.push(M);for(A=x;A{"use strict";var SL=Bt(),CL=dt(),oi=gr(),wh=ha(),LL=va(),qL=Pt(),Mh=LL.cleanId,x$=LL.getFromTrace,cb=CL.traceIs,w$=["x","y","z"];Ro.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&oi.log("Clearing previous rejected promises from queue."),e._promises=[]};Ro.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(wh.subplotsRegistry.cartesian||{}).attrRegex,a=(wh.subplotsRegistry.polar||{}).attrRegex,i=(wh.subplotsRegistry.ternary||{}).attrRegex,o=(wh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),qL.clean(e),e.template&&e.template.layout&&Ro.cleanLayout(e.template.layout),e};function Av(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=Mh(n,a,!0))}Ro.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Ro.hasParent=function(e,r){for(var t=kL(r);t;){if(t in e)return!0;t=kL(t)}return!1};Ro.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>oi.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;noi.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],i=r[n];if(a!==i&&!(t(a,i)?vb(a,i):!1))return!1}return!0}return!1};Ro.collectionsAreEqual=vb});var yb=te(It=>{"use strict";var jg=Tt(),T$=Bt(),k$=g2(),Fr=gr(),bn=Fr.nestedProperty,pb=k1(),gi=u9(),zo=dt(),tm=J0(),ft=ha(),li=Dn(),S$=I3(),C$=bl(),hb=cn(),L$=Pt(),q$=sb().initInteractions,D$=gc(),E$=uu().clearOutline,NL=oc().dfltConfig,Zg=ML(),ta=DL(),an=Sg(),hf=xo(),P$=xa().AX_NAME_PATTERN,db=0,EL=5;function R$(e,r,t,n){var a;if(e=Fr.getGraphDiv(e),pb.init(e),Fr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,n=i.config,a=i.frames}var o=pb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(o===!1)return Promise.reject();!r&&!t&&!Fr.isPlotDiv(e)&&Fr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return It.addFrames(e,a)}IL(e,n),t||(t={}),jg.select(e).classed("js-plotly-plot",!0),hb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ta.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ta.cleanLayout(t)),ft.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(nK(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),hb.initGradients(e),hb.initPatterns(e),s&&li.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&ft.doCalcdata(e);for(var h=0;h=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function HL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),$g(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&$g(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function H$(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof D.parts[I]!="string";)I--;var W=D.parts[I],O=D.parts[I-1]+"."+W,Z=D.parts.slice(0,I).join("."),H=bn(e.layout,Z).get(),ee=bn(n,Z).get(),ne=D.get();if(R!==void 0){_[M]=R,C[M]=W==="reverse"?R:fu(ne);var re=tm.getLayoutValObject(n,D.parts);if(re&&re.impliedEdits&&R!==null)for(var K in re.impliedEdits)x(Fr.relativeAttr(M,K),re.impliedEdits[K]);if(["width","height"].indexOf(M)!==-1)if(R){x("autosize",null);var ue=M==="height"?"width":"height";x(ue,n[ue])}else n[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",R?null:n.width),x("height",R?null:n.height);else if(O.match(XL))k(O),bn(n,Z+"._inputRange").set(null);else if(O.match(jL)){k(O),bn(n,Z+"._inputRange").set(null);var le=bn(n,Z).get();le._inputDomain&&(le._input.domain=le._inputDomain.slice())}else O.match(Y$)&&bn(n,Z+"._inputDomain").set(null);if(W==="type"){A=H;var ke=ee.type==="linear"&&R==="log",ze=ee.type==="log"&&R==="linear";if(ke||ze){if(!A||!A.range)x(Z+".autorange",!0);else if(ee.autorange)ke&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Fe=A.range[0],Xe=A.range[1];ke?(Fe<=0&&Xe<=0&&x(Z+".autorange",!0),Fe<=0?Fe=Xe/1e6:Xe<=0&&(Xe=Fe/1e6),x(Z+".range[0]",Math.log(Fe)/Math.LN10),x(Z+".range[1]",Math.log(Xe)/Math.LN10)):(x(Z+".range[0]",Math.pow(10,Fe)),x(Z+".range[1]",Math.pow(10,Xe)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[D.parts[0]]&&D.parts[1]==="radialaxis"&&delete n[D.parts[0]]._subplot.viewInitial["radialaxis.range"],zo.getComponentMethod("annotations","convertCoords")(e,ee,R,x),zo.getComponentMethod("images","convertCoords")(e,ee,R,x)}else x(Z+".autorange",!0),x(Z+".range",null);bn(n,Z+"._inputRange").set(null)}else if(W.match(P$)){var Ce=bn(n,M).get(),er=(R||{}).type;(!er||er==="-")&&(er="linear"),zo.getComponentMethod("annotations","convertCoords")(e,Ce,er,x),zo.getComponentMethod("images","convertCoords")(e,Ce,er,x)}var ce=Zg.containerArrayMatch(M);if(ce){f=ce.array,v=ce.index;var ge=ce.property,Pe=re||{editType:"calc"};v!==""&&ge===""&&(Zg.isAddVal(R)?C[M]=null:Zg.isRemoveVal(R)?C[M]=(bn(t,f).get()||[])[v]:Fr.warn("unrecognized full object value",r)),hf.update(y,Pe),u[f]||(u[f]={});var de=u[f][v];de||(de=u[f][v]={}),de[ge]=R,delete r[M]}else W==="reverse"?(H.range?H.range.reverse():(x(Z+".autorange",!0),H.range=[1,0]),ee.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(R===!1&&ne!==!1||R!==!1&&ne===!1)||n._has("scatter-like")&&n._has("regl")&&M==="dragmode"&&(R==="lasso"||R==="select")&&!(ne==="lasso"||ne==="select")?y.plot=!0:re?hf.update(y,re):y.calc=!0,D.set(R))}}for(f in u){var G=Zg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);G||(y.plot=!0)}for(var Q in b){A=li.getFromId(e,Q);var $=A&&A._constraintGroup;if($){y.calc=!0;for(var be in $)b[be]||(li.getFromId(e,be)._constraintShrinkable=!0)}}($L(e)||r.height||r.width)&&(y.plot=!0);var qe=n.shapes;for(v=0;v1;)if(n.pop(),t=bn(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function W$(e,r){for(var t=0;t[Z,e._ev.listeners(Z)]);i=It.newPlot(e,r,t,n).then(()=>{for(let[Z,H]of O)H.forEach(ee=>e.on(Z,ee));return It.react(e,r,t,n)})}else{e.data=r||[],ta.cleanData(e.data),e.layout=t||{},ta.cleanLayout(e.layout),X$(e.data,e.layout,l,s),ft.supplyDefaults(e,{skipUpdateCalc:!0});var v=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,p=$$(e,s,h,d,m),y=p.newDataRevision,_=J$(e,l,v,d,m,y);if($L(e)&&(p.layoutReplot=!0),_.calc||p.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),x=0;x(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function J$(e,r,t,n,a,i){var o=r.length===t.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var l=hf.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var m=tm.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var v={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:i,gd:e},h={};for(s=0;s=a.length?a[0]:a[u]:a}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var W=n._frameQueue.pop();W.onInterrupt&&W.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(W){if(W.length!==0){for(var O=0;On._timeToNext&&m()};W()}var y=0;function _(W){return Array.isArray(a)?y>=a.length?W.transitionOpts=a[y]:W.transitionOpts=a[0]:W.transitionOpts=a,y++,W}var C,x,b=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&Fr.isPlainObject(r);if(M)b.push({type:"object",data:_(Fr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(C=0;C0&&NN)&&I.push(x);b=I}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function Q$(e,r,t){if(e=Fr.getGraphDiv(e),r==null)return Promise.resolve();if(!Fr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(Fr.isPlainObject(r[n])){var h=r[n].name,d=(s[h]||v[h]||{}).name,m=r[n].name,p=s[d]||v[d];d&&m&&typeof m=="number"&&p&&dbD.index?-1:M.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&Fr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;s[a.name="frame "+e._transitionData._counter++];);if(s[a.name]){for(i=0;i=0;t--)n=r[t],i.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:a[n]});var l=ft.modifyFrames,s=ft.modifyFrames,u=[e,o],f=[e,i];return gi&&gi.add(e,l,u,s,f),ft.modifyFrames(e,i)}function rK(e){e=Fr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return ft.cleanPlot([],{},t,r),ft.purge(e),pb.purge(e),r._container&&r._container.remove(),delete e._context,e}function tK(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Fr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=Fr.inverseTransformMatrix(Fr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function nK(e){var r=jg.select(e),t=e._fullLayout;if(t._calcInverseTransform=tK,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};jg.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=Fr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(D$.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}It.animate=K$;It.addFrames=Q$;It.deleteFrames=eK;It.addTraces=GL;It.deleteTraces=VL;It.extendTraces=UL;It.moveTraces=gb;It.prependTraces=YL;It.newPlot=I$;It._doPlot=R$;It.purge=rK;It.react=j$;It.redraw=F$;It.relayout=Ah;It.restyle=Kg;It.setPlotConfig=z$;It.update=em;It._guiRelayout=mb(Ah);It._guiRestyle=mb(Kg);It._guiUpdate=mb(em);It._storeDirectGUIEdit=U$});var Ic=te(ms=>{"use strict";var aK=dt();ms.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};ms.getRedrawFunc=function(e){return function(){aK.getComponentMethod("colorbar","draw")(e)}};ms.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ms.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var KL=window.URL||window.webkitURL;ms.createObjectURL=function(e){return KL.createObjectURL(e)};ms.revokeObjectURL=function(e){return KL.revokeObjectURL(e)};ms.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=iK(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ms.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function iK(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var _b=Tt(),f0e=gr(),oK=cn(),lK=Pt(),c0e=gc(),bb=/"/g,Hc="TOBESTRIPPED",sK=new RegExp(`("${Hc})|(${Hc}")|("${Hc})|(${Hc}")`,"g"),uK=["&","&","&",""",""",""","'","'","'"],fK=["<","<","<"],cK=[">",">",">"];function vK(e){let r=_b.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,n=>{let a=n.toLowerCase();return uK.includes(a)?n:fK.includes(a)?"<":cK.includes(a)?">":n.includes("<")||n.includes(">")?"":r.html(n).text()});return r.remove(),t}function hK(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}QL.exports=function(r,t,n){var a=r._fullLayout,i=a._paper,o=a._toppaper,l=a.width,s=a.height,u;i.insert("rect",":first-child").call(oK.setRect,0,0,l,s).call(lK.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(u=0;u{"use strict";var dK=gr(),pK=Kd().EventEmitter,kh=Ic();function gK(e){var r=e.emitter||new pK,t=new Promise(function(n,a){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),p=new i,y,_;l==="svg"||dK.isSafari()?_=kh.encodeSVG(o):(y=kh.createBlob(o,"svg"),_=kh.createObjectURL(y)),s.width=h,s.height=d,p.onload=function(){var C;switch(y=null,kh.revokeObjectURL(_),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=_;break;default:var x="Image format is not jpeg, png, svg or webp.";if(a(new Error(x)),!e.promise)return r.emit("error",x)}n(C),e.promise||r.emit("success",C)},p.onerror=function(C){if(y=null,kh.revokeObjectURL(_),a(C),!e.promise)return r.emit("error",C)},p.src=_});return e.promise?t:r}eq.exports=gK});var wb=te((d0e,nq)=>{"use strict";var rq=Bt(),tq=yb(),mK=ha(),ys=gr(),Sh=Ic(),yK=am(),bK=im(),_K=s1().version,xb={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function xK(e,r){r=r||{};var t,n,a,i;ys.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},i={}):(e=ys.getGraphDiv(e),t=ys.extendDeep([],e.data),n=ys.extendDeep({},e.layout),a=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||ys.validate(r[k],xb[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+ys.join2(xb.format.values,", "," or ")+".");var l={};function s(k,M){return ys.coerce(r,l,xb,k,M)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=ys.extendFlat({},n);f?y.width=f:r.width===null&&rq(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&rq(i.height)&&(y.height=i.height);var _=ys.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=Sh.getRedrawFunc(p);function x(){return new Promise(function(k){setTimeout(k,Sh.getDelay(p._fullLayout))})}function b(){return new Promise(function(k,M){var D=yK(p,u,h),R=p._fullLayout.width,N=p._fullLayout.height;function I(){tq.purge(p),document.body.removeChild(p)}if(u==="full-json"){var W=mK.graphJson(p,!1,"keepdata","object",!0,!0);return W.version=_K,W=JSON.stringify(W),I(),k(m?W:Sh.encodeJSON(W))}if(I(),u==="svg")return k(m?D:Sh.encodeSVG(D));var O=document.createElement("canvas");O.id=ys.randstr(),bK({format:u,width:R,height:N,scale:h,canvas:O,svg:D,promise:!0}).then(k).catch(M)})}function A(k){return m?k.replace(Sh.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){tq.newPlot(p,t,y,_).then(C).then(x).then(b).then(function(D){k(A(D))}).catch(function(D){M(D)})})}nq.exports=xK});var oq=te((p0e,iq)=>{"use strict";var No=gr(),wK=ha(),MK=J0(),AK=oc().dfltConfig,kl=No.isPlainObject,Oc=Array.isArray,Mb=No.isArrayOrTypedArray;iq.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=MK.get(),a=[],i={_context:No.extendFlat({},AK)},o,l;Oc(r)?(i.data=No.extendDeep([],r),o=r):(i.data=[],o=[],a.push(ka("array","data"))),kl(t)?(i.layout=No.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&a.push(ka("object","layout"))),wK.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fv.length&&n.push(ka("unused",a,u.concat(v.length)));var _=v.length,C=Array.isArray(y);C&&(_=Math.min(_,y.length));var x,b,A,k,M;if(h.dimensions===2)for(b=0;b<_;b++)if(Oc(f[b])){f[b].length>v[b].length&&n.push(ka("unused",a,u.concat(b,v[b].length)));var D=v[b].length;for(x=0;x<(C?Math.min(D,y[b].length):D);x++)A=C?y[b][x]:y,k=f[b][x],M=v[b][x],No.validate(k,A)?M!==k&&M!==+k&&n.push(ka("dynamic",a,u.concat(b,x),k,M)):n.push(ka("value",a,u.concat(b,x),k))}else n.push(ka("array",a,u.concat(b),f[b]));else for(b=0;b<_;b++)A=C?y[b]:y,k=f[b],M=v[b],No.validate(k,A)?M!==k&&M!==+k&&n.push(ka("dynamic",a,u.concat(b),k,M)):n.push(ka("value",a,u.concat(b),k))}else if(h.items&&!m&&Oc(f)){var R=y[Object.keys(y)[0]],N=[],I,W;for(I=0;I{"use strict";var DK=gr(),lm=Ic();function EK(e,r,t){var n=document.createElement("a"),a="download"in n,i=new Promise(function(o,l){var s,u;if(a)return s=lm.createBlob(e,t),u=lm.createObjectURL(s),n.href=u,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),lm.revokeObjectURL(u),s=null,o(r);if(DK.isSafari()){var f=t==="svg"?",":";base64,";return lm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}lq.exports=EK});var Ab=te((y0e,fq)=>{"use strict";var uq=gr(),PK=wb(),RK=sq(),m0e=Ic();function zK(e,r){var t;return uq.isPlainObject(e)||(t=uq.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=PK(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),RK(l,o,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}fq.exports=zK});var pq=te(Tb=>{"use strict";var Ii=gr(),Hi=Ii.isPlainObject,cq=J0(),vq=ha(),NK=_o(),hq=yn(),dq=oc().dfltConfig;Tb.makeTemplate=function(e){e=Ii.isPlainObject(e)?e:Ii.getGraphDiv(e),e=Ii.extendDeep({_context:dq},{data:e.data,layout:e.layout}),vq.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(d){var m={};Ch(d,m,IK.bind(null,d));var p=Ii.coerce(d,{},NK,"type"),y=n.data[p];y||(y=n.data[p]=[]),y.push(m)}),Ch(t,n.layout,FK.bind(null,t)),delete n.layout.template;var a=t.template;if(Hi(a)){var i=a.layout,o,l,s,u,f,v;Hi(i)&&sm(i,n.layout);var h=a.data;if(Hi(h)){for(l in n.data)if(s=h[l],Array.isArray(s)){for(f=n.data[l],v=f.length,u=s.length,o=0;o_?o.push({code:"unused",traceType:d,templateCount:y,dataCount:_}):_>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:_})}}function C(x,b){for(var A in x)if(A.charAt(0)!=="_"){var k=x[A],M=Fo(x,A,b);Hi(k)?(Array.isArray(x)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),C(k,M)):Array.isArray(k)&&HK(k)&&C(k,M)}}if(C({data:s,layout:l},""),o.length)return o.map(BK)};function HK(e){for(var r=0;r{"use strict";var da=yb();Ln._doPlot=da._doPlot;Ln.newPlot=da.newPlot;Ln.restyle=da.restyle;Ln.relayout=da.relayout;Ln.redraw=da.redraw;Ln.update=da.update;Ln._guiRestyle=da._guiRestyle;Ln._guiRelayout=da._guiRelayout;Ln._guiUpdate=da._guiUpdate;Ln._storeDirectGUIEdit=da._storeDirectGUIEdit;Ln.react=da.react;Ln.extendTraces=da.extendTraces;Ln.prependTraces=da.prependTraces;Ln.addTraces=da.addTraces;Ln.deleteTraces=da.deleteTraces;Ln.moveTraces=da.moveTraces;Ln.purge=da.purge;Ln.addFrames=da.addFrames;Ln.deleteFrames=da.deleteFrames;Ln.animate=da.animate;Ln.setPlotConfig=da.setPlotConfig;var OK=y1().getGraphDiv,UK=bg().eraseActiveShape;Ln.deleteActiveShape=function(e){return UK(OK(e))};Ln.toImage=wb();Ln.validate=oq();Ln.downloadImage=Ab();var gq=pq();Ln.makeTemplate=gq.makeTemplate;Ln.validateTemplate=gq.validateTemplate});var bq=te((x0e,yq)=>{"use strict";var kb=gr(),YK=dt();yq.exports=function(r,t,n,a){var i=a("x"),o=a("y"),l,s=YK.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],n),i){var u=kb.minRowLength(i);o?l=Math.min(u,kb.minRowLength(o)):(l=u,a("y0"),a("dy"))}else{if(!o)return 0;l=kb.minRowLength(o),a("x0"),a("dx")}return t._length=l,l}});var Mq=te((w0e,wq)=>{"use strict";var _q=gr().dateTick0,GK=Rn(),VK=GK.ONEWEEK;function xq(e,r){return e%VK===0?_q(r,1):_q(r,0)}wq.exports=function(r,t,n,a,i){if(i||(i={x:!0,y:!0}),i.x){var o=a("xperiod");o&&(a("xperiod0",xq(o,t.xcalendar)),a("xperiodalignment"))}if(i.y){var l=a("yperiod");l&&(a("yperiod0",xq(l,t.ycalendar)),a("yperiodalignment"))}}});var kq=te((M0e,Tq)=>{"use strict";var Aq=["orientation","groupnorm","stackgaps"];Tq.exports=function(r,t,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var Sq=Pt(),Cq=ns().hasColorscale,Lq=rv(),WK=ri();qq.exports=function(r,t,n,a,i,o={}){var l=WK.isBubble(r),s=(r.line||{}).color,u;if(s&&(n=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",n),Cq(r,"marker")&&Lq(r,t,a,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=Sq.background:u=Sq.defaultLine,i("marker.line.color",u),Cq(r,"marker.line")&&Lq(r,t,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Cb=te((T0e,Dq)=>{"use strict";var ZK=gr().isArrayOrTypedArray,XK=ns().hasColorscale,jK=rv();Dq.exports=function(r,t,n,a,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",n),XK(r,"line"))jK(r,t,a,i,{prefix:"line.",cLetter:"c"});else{var s=(ZK(l)?!1:l)||n;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var Pq=te((k0e,Eq)=>{"use strict";Eq.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var Lb=te((S0e,Rq)=>{"use strict";var JK=gr();Rq.exports=function(e,r,t,n,a){a=a||{},n("textposition"),JK.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var qb=te((C0e,Nq)=>{"use strict";var fm=Pt(),zq=gr().isArrayOrTypedArray;function $K(e){for(var r=fm.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var Fq=gr(),KK=dt(),QK=Fc(),eQ=Ig(),Tv=ri(),rQ=bq(),tQ=Mq(),nQ=kq(),aQ=Sb(),iQ=Cb(),Iq=Pq(),oQ=Lb(),lQ=qb(),sQ=gr().coercePattern;Hq.exports=function(r,t,n,a){function i(d,m){return Fq.coerce(r,t,QK,d,m)}var o=rQ(r,t,a,i);if(o||(t.visible=!1),!!t.visible){tQ(r,t,a,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=nQ(r,t,a,i);a.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var uQ=eh().getAxisGroup;Oq.exports=function(r,t,n,a,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=uQ(n,l)+o,u=n._alignmentOpts||{},f=a("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=a("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var Gq=te((D0e,Yq)=>{"use strict";var fQ=gr(),cQ=Uq(),vQ=Fc();Yq.exports=function(r,t){var n,a,i,o=t.scattermode;function l(h){return fQ.coerce(a._input,a,vQ,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var Wq=te((E0e,Vq)=>{"use strict";var hQ=gr(),dQ=np();Vq.exports=function(e,r){function t(a,i){return hQ.coerce(e,r,dQ,a,i)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var jq=te((P0e,Xq)=>{"use strict";var pQ=Bt(),Zq=gr(),gQ=Zq.dateTime2ms,cm=Zq.incrementMonth,mQ=Rn(),yQ=mQ.ONEAVGMONTH;Xq.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var i=r[n+"periodalignment"];if(!i)return{vals:a};var o=r[n+"period"],l;if(pQ(o)){if(o=+o,o<=0)return{vals:a}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:a}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[n+"period0"],d=gQ(h,u)||0,m=[],p=[],y=[],_=a.length,C=0;C<_;C++){var x=a[C],b,A,k;if(l){for(b=Math.round((x-d)/(l*yQ)),k=cm(d,l*b,u);k>x;)k=cm(k,-l,u);for(;k<=x;)k=cm(k,l,u);A=cm(k,-l,u)}else{for(b=Math.round((x-d)/o),k=d+b*o;k>x;)k-=o;for(;k<=x;)k+=o;A=k-o}m[C]=f?A:v?k:(A+k)/2,p[C]=A,y[C]=k}return{vals:m,starts:p,ends:y}}});var Pb=te((R0e,$q)=>{"use strict";var Db=ns().hasColorscale,Eb=dp(),Jq=ri();$q.exports=function(r,t){Jq.hasLines(t)&&Db(t,"line")&&Eb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Jq.hasMarkers(t)&&(Db(t,"marker")&&Eb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Db(t,"marker.line")&&Eb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Lh=te((z0e,Kq)=>{"use strict";var On=gr();Kq.exports=function(r,t){for(var n=0;n{"use strict";var Qq=gr();eD.exports=function(r,t){Qq.isArrayOrTypedArray(t.selectedpoints)&&Qq.tagSelected(r,t)}});var hm=te((F0e,lD)=>{"use strict";var rD=Bt(),zb=gr(),qh=Dn(),tD=jq(),Rb=Rn().BADNUM,Nb=ri(),bQ=Pb(),_Q=Lh(),xQ=vm();function wQ(e,r){var t=e._fullLayout,n=r._xA=qh.getFromId(e,r.xaxis||"x","x"),a=r._yA=qh.getFromId(e,r.yaxis||"y","y"),i=n.makeCalcdata(r,"x"),o=a.makeCalcdata(r,"y"),l=tD(r,n,"x",i),s=tD(r,a,"y",o),u=l.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=Fb(r,t,n,a),p=!1,y,_,C,x,b,A;iD(t,r);var k="x",M="y",D;if(m)zb.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(M="s",D="x"):(k="s",D="y"),b=m.stackgaps==="interpolate";else{var R=aD(r,v);nD(e,r,n,a,u,f,R)}var N=!!r.xperiodalignment,I=!!r.yperiodalignment;for(_=0;__&&h[x].gap;)x--;for(A=h[x].s,C=h.length-1;C>x;C--)h[C].s=A;for(;_{"use strict";sD.exports=dm;var MQ=gr().distinctVals;function dm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],i=0;i{"use strict";fD.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var gD=te((B0e,pD)=>{"use strict";var Io=Bt(),{isArrayOrTypedArray:cu}=gr(),{BADNUM:kv}=Rn(),AQ=dt(),Dh=Dn(),{getAxisGroup:TQ}=eh(),pm=uD(),{TEXTPAD:kQ}=cD(),{LINE_SPACING:SQ}=Oa(),{BR_TAG_ALL:CQ}=ei();function LQ(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!Io(l))}for(var f=0;fn(i))):n(e.text);let a=e.outsidetextfont.size*SQ*t+kQ;return{ppadplus:r.some(i=>i.s<0)?a:0,ppadminus:r.some(i=>i.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function HQ(e,r,t,n){for(var a=Sv(n),i=0;i{"use strict";var mD=hm(),yD=gD().setGroupPositions;function OQ(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uR[f]&&f{"use strict";var YQ=cn(),AD=Rn(),Eh=AD.BADNUM,TD=AD.LOG_CLIP,xD=TD+.5,wD=TD-.5,gm=gr(),GQ=gm.segmentsIntersect,MD=gm.constrain,Gb=Ig();kD.exports=function(r,t){var n=t.trace||{},a=t.xaxis,i=t.yaxis,o=a.type==="log",l=i.type==="log",s=a._length,u=i._length,f=t.backoff,v=n.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=n.fill&&n.fill!=="none",_=[],C=Gb.minTolerance,x=r.length,b=new Array(x),A=0,k,M,D,R,N,I,W,O,Z,H,ee,ne,re,K,ue,le;function ke(lr){var xe=r[lr];if(!xe)return!1;var Ae=t.linearized?a.l2p(xe.x):a.c2p(xe.x),Ke=t.linearized?i.l2p(xe.y):i.c2p(xe.y);if(Ae===Eh){if(o&&(Ae=a.c2p(xe.x,!0)),Ae===Eh)return!1;l&&Ke===Eh&&(Ae*=Math.abs(a._m*u*(a._m>0?xD:wD)/(i._m*s*(i._m>0?xD:wD)))),Ae*=1e3}if(Ke===Eh){if(l&&(Ke=i.c2p(xe.y,!0)),Ke===Eh)return!1;Ke*=1e3}return[Ae,Ke]}function ze(lr,xe,Ae,Ke){var nr=Ae-lr,Sr=Ke-xe,Yr=.5-lr,zr=.5-xe,st=nr*nr+Sr*Sr,bt=nr*Yr+Sr*zr;if(bt>0&&bt1||Math.abs(Yr.y-Ae[0][1])>1)&&(Yr=[Yr.x,Yr.y],Ke&&er(Yr,lr)Pe||lr[1]G)return[MD(lr[0],ge,Pe),MD(lr[1],de,G)]}function or(lr,xe){if(lr[0]===xe[0]&&(lr[0]===ge||lr[0]===Pe)||lr[1]===xe[1]&&(lr[1]===de||lr[1]===G))return!0}function hr(lr,xe){var Ae=[],Ke=cr(lr),nr=cr(xe);return Ke&&nr&&or(Ke,nr)||(Ke&&Ae.push(Ke),nr&&Ae.push(nr)),Ae}function Je(lr,xe,Ae){return function(Ke,nr){var Sr=cr(Ke),Yr=cr(nr),zr=[];if(Sr&&Yr&&or(Sr,Yr))return zr;Sr&&zr.push(Sr),Yr&&zr.push(Yr);var st=2*gm.constrain((Ke[lr]+nr[lr])/2,xe,Ae)-((Sr||Ke)[lr]+(Yr||nr)[lr]);if(st){var bt;Sr&&Yr?bt=st>0==Sr[lr]>Yr[lr]?Sr:Yr:bt=Sr||Yr,bt[lr]+=st}return zr}}var pr;m==="linear"||m==="spline"?pr=Be:m==="hv"||m==="vh"?pr=hr:m==="hvh"?pr=Je(0,ge,Pe):m==="vhv"&&(pr=Je(1,de,G));function yr(lr,xe){var Ae=xe[0]-lr[0],Ke=(xe[1]-lr[1])/Ae,nr=(lr[1]*xe[0]-xe[1]*lr[0])/Ae;return nr>0?[Ke>0?ge:Pe,G]:[Ke>0?Pe:ge,de]}function Te(lr){var xe=lr[0],Ae=lr[1],Ke=xe===b[A-1][0],nr=Ae===b[A-1][1];if(!(Ke&&nr))if(A>1){var Sr=xe===b[A-2][0],Yr=Ae===b[A-2][1];Ke&&(xe===ge||xe===Pe)&&Sr?Yr?A--:b[A-1]=lr:nr&&(Ae===de||Ae===G)&&Yr?Sr?A--:b[A-1]=lr:b[A++]=lr}else b[A++]=lr}function Ue(lr){b[A-1][0]!==lr[0]&&b[A-1][1]!==lr[1]&&Te([qe,He]),Te(lr),ar=null,qe=He=0}var kr=gm.isArrayOrTypedArray(v);function Ur(lr){if(lr&&f&&(lr.i=k,lr.d=r,lr.trace=n,lr.marker=kr?v[lr.i]:v,lr.backoff=f),Fe=lr[0]/s,Xe=lr[1]/u,$=lr[0]Pe?Pe:0,be=lr[1]G?G:0,$||be){if(!A)b[A++]=[$||lr[0],be||lr[1]];else if(ar){var xe=pr(ar,lr);xe.length>1&&(Ue(xe[0]),b[A++]=xe[1])}else Qe=pr(b[A-1],lr)[0],b[A++]=Qe;var Ae=b[A-1];$&&be&&(Ae[0]!==$||Ae[1]!==be)?(ar&&(qe!==$&&He!==be?Te(qe&&He?yr(ar,lr):[qe||$,He||be]):qe&&He&&Te([qe,He])),Te([$,be])):qe-$&&He-be&&Te([$||qe,be||He]),ar=lr,qe=$,He=be}else ar&&Ue(pr(ar,lr)[0]),b[A++]=lr}for(k=0;kCe(I,tr))break;D=I,re=Z[0]*O[0]+Z[1]*O[1],re>ee?(ee=re,R=I,W=!1):re=r.length||!I)break;Ur(I),M=I}}ar&&Te([qe||ar[0],He||ar[1]]),_.push(b.slice(0,A))}var Ye=m.slice(m.length-1);if(f&&Ye!=="h"&&Ye!=="v"){for(var Ze=!1,dr=-1,Ar=[],mr=0;mr<_.length;mr++)for(var br=0;br<_[mr].length-1;br++){var Ir=_[mr][br],Cr=_[mr][br+1],Er=YQ.applyBackoff(Cr,Ir);(Er[0]!==Cr[0]||Er[1]!==Cr[1])&&(Ze=!0),Ar[dr+1]||(dr++,Ar[dr]=[Ir,[Er[0],Er[1]]])}return Ze?Ar:_}return _}});var qD=te((Y0e,LD)=>{"use strict";var CD={tonextx:1,tonexty:1,tonext:1};LD.exports=function(r,t,n){var a,i,o,l,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Sl=Tt(),VQ=dt(),Ph=gr(),Cv=Ph.ensureSingle,ED=Ph.identity,Vn=cn(),Lv=ri(),WQ=SD(),ZQ=qD(),mm=Eg().tester;PD.exports=function(r,t,n,a,i,o){var l,s,u=!i,f=!!i&&i.duration>0,v=ZQ(r,t,n);if(l=a.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),XQ(r,l,t),f){o&&(s=o());var h=Sl.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){a.selectAll("g.trace").each(function(d,m){DD(r,m,t,d,v,this,i)})})}else l.each(function(d,m){DD(r,m,t,d,v,this,i)});u&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function XQ(e,r,t){r.each(function(n){var a=Cv(Sl.select(this),"g","fills");Vn.setClipUrl(a,t.layerClipId,e);var i=n[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=a.selectAll("g").data(o,ED);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Cv(Sl.select(this),"path","js-fill")})})}function DD(e,r,t,n,a,i,o){var l=e._context.staticPlot,s;jQ(e,r,t,n,a);var u=!!o&&o.duration>0;function f(Je){return u?Je.transition():Je}var v=t.xaxis,h=t.yaxis,d=n[0].trace,m=d.line,p=Sl.select(i),y=Cv(p,"g","errorbars"),_=Cv(p,"g","lines"),C=Cv(p,"g","points"),x=Cv(p,"g","text");if(VQ.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var b,A,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,D;k==="y"?(M=1,D=h.c2p(0,!0)):k==="x"&&(M=0,D=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var R="",N=[],I=d._prevtrace,W=null,O=null;I&&(R=I._prevRevpath||"",A=I._nextFill,N=I._ownPolygons,W=I._fillsegments,O=I._fillElement);var Z,H,ee="",ne="",re,K,ue,le,ke,ze,Fe=[];d._polygons=[];var Xe=[],Ce=[],er=Ph.noop;if(b=d._ownFill,Lv.hasLines(d)||d.fill!=="none"){A&&A.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(re=Vn.steps(m.shape),K=Vn.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?re=K=function(Je){var pr=Je[Je.length-1];return Je.length>1&&Je[0][0]===pr[0]&&Je[0][1]===pr[1]?Vn.smoothclosed(Je.slice(1),m.smoothing):Vn.smoothopen(Je,m.smoothing)}:re=K=function(Je){return"M"+Je.join("L")},ue=function(Je){return K(Je.reverse())},Ce=WQ(n,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Xe=new Array(Ce.length);var ce=0;for(s=0;s=l[0]&&p.x<=l[1]&&p.y>=s[0]&&p.y<=s[1]}),h=Math.ceil(v.length/f),d=0;a.forEach(function(p,y){var _=p[0].trace;Lv.hasMarkers(_)&&_.marker.maxdisplayed>0&&y{"use strict";zD.exports={container:"marker",min:"cmin",max:"cmax"}});var FD=te((W0e,ND)=>{"use strict";var ym=Dn();ND.exports=function(r,t,n){var a={},i={_fullLayout:n},o=ym.getFromTrace(i,t,"x"),l=ym.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),a.xLabel=ym.tickText(o,o.c2l(s),!0).text,a.yLabel=ym.tickText(l,l.c2l(u),!0).text,a}});var Rh=te((Z0e,ID)=>{"use strict";var Wb=Tt(),qv=cn(),JQ=dt();function $Q(e){var r=Wb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=Wb.select(this),a=t.trace||t[0].trace;Zb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Wb.select(this),a=t.trace||t[0].trace;Xb(n,a,e)}),r.selectAll("g.trace path.js-line").call(qv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(qv.fillGroupStyle,e,!1),JQ.getComponentMethod("errorbars","style")(r)}function Zb(e,r,t){qv.pointStyle(e.selectAll("path.point"),r,t)}function Xb(e,r,t){qv.textPointStyle(e.selectAll("text"),r,t)}function KQ(e,r,t){var n=r[0].trace;n.selectedpoints?(qv.selectedPointStyle(t.selectAll("path.point"),n),qv.selectedTextStyle(t.selectAll("text"),n)):(Zb(t,n,e),Xb(t,n,e))}ID.exports={style:$Q,stylePoints:Zb,styleText:Xb,styleOnSelect:KQ}});var jb=te((X0e,HD)=>{"use strict";var Dv=Pt(),QQ=ri();HD.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Dv.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return a=i&&Dv.opacity(i)?i:o&&Dv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",a?Dv.opacity(a)<.3?Dv.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Dv.opacity(n)&&QQ.hasLines(r)&&r.line.width?n:r.fillcolor)}});var UD=te((j0e,OD)=>{"use strict";var bm=gr(),BD=Ml(),eee=dt(),ree=jb(),Jb=Pt(),tee=bm.fillText;OD.exports=function(r,t,n,a){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(n),v=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(ne){if(m){var re=l.c2p(ne.xStart),K=l.c2p(ne.xEnd);return u>=Math.min(re,K)&&u<=Math.max(re,K)?0:1/0}var ue=Math.max(3,ne.mrc||0),le=1-1/ue,ke=Math.abs(l.c2p(ne.x)-u);return ke=Math.min(re,K)&&f<=Math.max(re,K)?0:1/0}var ue=Math.max(3,ne.mrc||0),le=1-1/ue,ke=Math.abs(s.c2p(ne.y)-f);return keFe!=G>=Fe&&(ge=er[Ce-1][0],Pe=er[Ce][0],G-de&&(ce=ge+(Pe-ge)*(Fe-de)/(G-de),ue=Math.min(ue,ce),le=Math.max(le,ce)));return ue=Math.max(ue,0),le=Math.min(le,l._length),{x0:ue,x1:le,y0:Fe,y1:Fe}}if(h.indexOf("fills")!==-1&&o._fillElement){var Z=W(o._fillElement)&&!W(o._fillExclusionElement);if(Z){var H=O(o._polygons);H===null&&(H={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var ee=Jb.defaultLine;return Jb.opacity(o.fillcolor)?ee=o.fillcolor:Jb.opacity((o.line||{}).color)&&(ee=o.line.color),bm.extendFlat(r,{distance:r.maxHoverDistance,x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1,color:ee,hovertemplate:!1}),delete r.index,o.text&&!bm.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var VD=te((J0e,GD)=>{"use strict";var YD=ri();GD.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h=!YD.hasMarkers(l)&&!YD.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";WD.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var $D=te((K0e,JD)=>{"use strict";var zh=dt().traceIs,$b=m3();JD.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var i=n("type",(a.splomStash||{}).type);i==="-"&&(nee(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function nee(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var i=aee(r,t,n);if(i){if(i.type==="histogram"&&n==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=n+"calendar",l=i[o],s={noMultiCategory:!zh(i,"cartesian")||zh(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&n==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,jD(i,n)){var u=XD(i),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(jD(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function XD(e){return{v:"x",h:"y"}[e.orientation||"v"]}function jD(e,r){var t=XD(e),n=zh(e,"box-violin"),a=zh(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var QD=te((Q0e,KD)=>{"use strict";var iee=qi().isTypedArraySpec;function oee(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,i,o;if(r.axData)a=r.axData;else for(a=[],i=0;i0||iee(i),l;o&&(l="array");var s=n("categoryorder",l),u;s==="array"&&(u=n("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=oee(t,a).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var tE=te((eve,rE)=>{"use strict";var eE=es().mix,lee=dl(),see=gr();rE.exports=function(r,t,n,a){a=a||{};var i=a.dfltColor;function o(D,R){return see.coerce2(r,t,a.attributes,D,R)}var l=o("linecolor",i),s=o("linewidth"),u=n("showline",a.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=eE(i,a.bgColor,a.blend||lee.lightFraction).toRgbString(),v=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=n("showgrid",a.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var p=eE(t.gridcolor,a.bgColor,67).toRgbString(),y=o("minor.gridcolor",p),_=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=n("minor.showgrid",!!y||!!_||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var b=o("zerolinelayer"),A=o("zerolinecolor",i),k=o("zerolinewidth"),M=n("zeroline",a.showGrid||!!A||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Qb=te((rve,sE)=>{"use strict";var nE=Bt(),uee=dt(),Nh=gr(),fee=yn(),cee=_l(),Kb=bl(),aE=O2(),iE=Y2(),vee=W2(),hee=Z2(),dee=QD(),pee=tE(),gee=I3(),oE=qp(),_m=xa().WEEKDAY_PATTERN,mee=xa().HOUR_PATTERN;sE.exports=function(r,t,n,a,i){var o=a.letter,l=a.font||{},s=a.splomStash||{},u=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=uee.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",a.calendar),a.noTicklabelmode||(h=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=Nh.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),oE(t,i),gee(r,t,n,a),dee(r,t,n,a),a.noHover||(v!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var p=n("color"),y=p!==Kb.color.dflt?p:l.color,_=s.label||i._dfltTitle[o];if(hee(r,t,n,v,a),!u)return t;n("title.text",_),Nh.coerceFont(n,"title.font",l,{overrideDflt:{size:Nh.bigFont(l.size),color:y}}),aE(r,t,n,v);var C=a.hasMinor;if(C&&(fee.newContainer(t,"minor"),aE(r,t,n,v,{isMinor:!0})),vee(r,t,n,v,a),iE(r,t,n,a),C){var x=a.isMinor;a.isMinor=!0,iE(r,t,n,a),a.isMinor=x}pee(r,t,n,{dfltColor:p,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:C,attributes:Kb}),C&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var b=v==="multicategory";if(!a.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),b){var A=n("showdividers");A&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(cee(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:yee}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=lE(i[l]),s){o=_m;break}}var u=n("pattern",o);if(u===_m)for(l=0;l<2;l++)s=lE(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case _m:if(!nE(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case mee:if(!nE(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var _ee=Bt(),xm=gr();uE.exports=function(r,t,n,a){var i=a.counterAxes||[],o=a.overlayableAxes||[],l=a.letter,s=a.grid,u=a.overlayingDomain,f,v,h,d,m,p;s&&(v=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[l+"side"].split(" ")[0],d=s.domain[l][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(_ee(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=xm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=xm.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=n("autoshift");C&&(d=_==="left"?u[0]:u[1],p=t.automargin?t.automargin:!0,m=_==="left"?-3:3),n("shift",m)}n("position",d)}n("automargin",p);var x=!1;if(o.length&&(x=xm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var b=n("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),xm.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var yE=te((nve,mE)=>{"use strict";var Uc=gr(),fE=Pt(),xee=$u().isUnifiedHover,wee=v5(),cE=yn(),Mee=H0(),vE=bl(),Aee=$D(),hE=Qb(),Tee=eh(),dE=e4(),t4=va(),bs=t4.id2name,pE=t4.name2id,kee=xa().AX_ID_PATTERN,gE=dt(),wm=gE.traceIs,r4=gE.getComponentMethod;function Mm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}mE.exports=function(r,t,n){var a=t.autotypenumbers,i={},o={},l={},s={},u={},f={},v={},h={},d={},m={},p,y;for(p=0;p{"use strict";var See=Tt(),bE=dt(),Am=gr(),to=cn(),Tm=Dn();_E.exports=function(r,t,n,a){var i=r._fullLayout;if(t.length===0){Tm.redrawComponents(r);return}function o(y){var _=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(to.setTranslate,0,0).call(to.setScale,1,1),y.plot.call(to.setTranslate,_._offset,C._offset).call(to.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(to.setPointGroupScale,1,1),x.selectAll(".textpoint").call(to.setTextPointsScale,1,1),x.call(to.hideOutsideRangePoints,y)}function l(y,_){var C=y.plotinfo,x=C.xaxis,b=C.yaxis,A=x._length,k=b._length,M=!!y.xr1,D=!!y.yr1,R=[];if(M){var N=Am.simpleMap(y.xr0,x.r2l),I=Am.simpleMap(y.xr1,x.r2l),W=N[1]-N[0],O=I[1]-I[0];R[0]=(N[0]*(1-_)+_*I[0]-N[0])/(N[1]-N[0])*A,R[2]=A*(1-_+_*O/W),x.range[0]=x.l2r(N[0]*(1-_)+_*I[0]),x.range[1]=x.l2r(N[1]*(1-_)+_*I[1])}else R[0]=0,R[2]=A;if(D){var Z=Am.simpleMap(y.yr0,b.r2l),H=Am.simpleMap(y.yr1,b.r2l),ee=Z[1]-Z[0],ne=H[1]-H[0];R[1]=(Z[1]*(1-_)+_*H[1]-Z[1])/(Z[0]-Z[1])*k,R[3]=k*(1-_+_*ne/ee),b.range[0]=x.l2r(Z[0]*(1-_)+_*H[0]),b.range[1]=b.l2r(Z[1]*(1-_)+_*H[1])}else R[1]=0,R[3]=k;Tm.drawOne(r,x,{skipTitle:!0}),Tm.drawOne(r,b,{skipTitle:!0}),Tm.redrawComponents(r,[x._id,b._id]);var re=M?A/R[2]:1,K=D?k/R[3]:1,ue=M?R[0]:0,le=D?R[1]:0,ke=M?R[0]/R[2]*A:0,ze=D?R[1]/R[3]*k:0,Fe=x._offset-ke,Xe=b._offset-ze;C.clipRect.call(to.setTranslate,ue,le).call(to.setScale,1/re,1/K),C.plot.call(to.setTranslate,Fe,Xe).call(to.setScale,re,K),to.setPointGroupScale(C.zoomScalePts,1/re,1/K),to.setTextPointsScale(C.zoomScaleTxt,1/re,1/K)}var s;a&&(s=a());function u(){for(var y={},_=0;_n.duration?(u(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return v=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var n4=te(Ga=>{"use strict";var Sm=Tt(),wE=dt(),Yc=gr(),Cee=ha(),Lee=cn(),ME=L1().getModuleCalcData,df=va(),Cl=xa(),qee=gc(),Xt=Yc.ensureSingle;function km(e,r,t){return Yc.ensureSingle(e,r,t,function(n){n.datum(t)})}var Gc=Cl.zindexSeparator;Ga.name="cartesian";Ga.attr=["xaxis","yaxis"];Ga.idRoot=["x","y"];Ga.idRegex=Cl.idRegex;Ga.attrRegex=Cl.attrRegex;Ga.attributes=ZD();Ga.layoutAttributes=bl();Ga.supplyLayoutDefaults=yE();Ga.transitionAxes=xE();Ga.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(Gc)!==-1)continue;d+=Gc+(u+1),h=Yc.extendFlat({},h,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y1&&(A+=Gc+b),x.push(l+A),o=0;o1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Xt(n,"path","xlines-above"),r.ylines=Xt(n,"path","ylines-above"),r.xaxislayer=Xt(n,"g","xaxislayer-above"),r.yaxislayer=Xt(n,"g","yaxislayer-above");else{if(!o){var h=Xt(n,"g","layer-subplot");r.shapelayer=Xt(h,"g","shapelayer"),r.imagelayer=Xt(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Xt(n,"g","minor-gridlayer"),r.gridlayer=Xt(n,"g","gridlayer"),r.zerolinelayer=Xt(n,"g","zerolinelayer"));var d=Xt(n,"g","layer-between");r.shapelayerBetween=Xt(d,"g","shapelayer"),r.imagelayerBetween=Xt(d,"g","imagelayer"),Xt(n,"path","xlines-below"),Xt(n,"path","ylines-below"),r.overlinesBelow=Xt(n,"g","overlines-below"),Xt(n,"g","xaxislayer-below"),Xt(n,"g","yaxislayer-below"),r.overaxesBelow=Xt(n,"g","overaxes-below")}r.overplot=Xt(n,"g","overplot"),r.plot=Xt(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Xt(n,"g","zerolinelayer-above"),o||(r.xlines=Xt(n,"path","xlines-above"),r.ylines=Xt(n,"path","ylines-above"),r.overlinesAbove=Xt(n,"g","overlines-above"),Xt(n,"g","xaxislayer-above"),Xt(n,"g","yaxislayer-above"),r.overaxesAbove=Xt(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+s),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+s))}else{var m=v.plotgroup,p=a+"-x",y=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Xt(v.overlinesBelow,"path",p),Xt(v.overlinesBelow,"path",y),Xt(v.overaxesBelow,"g",p),Xt(v.overaxesBelow,"g",y),r.plot=Xt(v.overplot,"g",a),Xt(v.overlinesAbove,"path",p),Xt(v.overlinesAbove,"path",y),Xt(v.overaxesAbove,"g",p),Xt(v.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}o||(u||(km(r.minorGridlayer,"g",r.xaxis._id),km(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(df.idSort),km(r.gridlayer,"g",r.xaxis._id),km(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(df.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function kE(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Sm.select(this);f.remove(),SE(u,r),t[u]=!0});for(var n in r._plots)for(var a=r._plots[n],i=a.overlays||[],o=0;o{"use strict";var Cm=ri();CE.exports={hasLines:Cm.hasLines,hasMarkers:Cm.hasMarkers,hasText:Cm.hasText,isBubble:Cm.isBubble,attributes:Fc(),layoutAttributes:np(),supplyDefaults:Bq(),crossTraceDefaults:Gq(),supplyLayoutDefaults:Wq(),calc:hm().calc,crossTraceCalc:_D(),arraysToCalcdata:Lh(),plot:RD(),colorbar:Vb(),formatLabels:FD(),style:Rh().style,styleOnSelect:Rh().styleOnSelect,hoverPoints:UD(),selectPoints:VD(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n4(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var EE=te((lve,DE)=>{"use strict";var Eee=Tt(),Pee=Pt(),qE=Q5(),a4=gr(),Ree=a4.strScale,zee=a4.strRotate,Nee=a4.strTranslate;DE.exports=function(r,t,n){var a=r.node(),i=qE[n.arrowhead||0],o=qE[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),s=(n.arrowwidth||1)*(n.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*l+n.standoff,h=o.backoff*s+n.startstandoff,d,m,p,y;if(a.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,_),y=p+Math.PI,v&&h&&v+h>Math.sqrt(_*_+C*C)){Z();return}if(v){if(v*v>_*_+C*C){Z();return}var x=v*Math.cos(p),b=v*Math.sin(p);m.x+=x,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+C*C){Z();return}var A=h*Math.cos(p),k=h*Math.sin(p);d.x-=A,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(a.nodeName==="path"){var M=a.getTotalLength(),D="";if(M{"use strict";var PE=Tt(),i4=dt(),Fee=ha(),gf=gr(),o4=gf.strTranslate,Ih=Dn(),Vc=Pt(),vu=cn(),RE=Ml(),l4=ei(),s4=af(),Fh=ko(),Iee=yn().arrayEditor,Hee=EE();FE.exports={draw:Bee,drawOne:zE,drawRaw:NE};function Bee(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?nr="right":nr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nr]}for(var de=!1,G=["x","y"],Q=0;Q1)&&(qe===be?(tr=He.r2fraction(r["a"+$]),(tr<0||tr>1)&&(de=!0)):de=!0),pr=He._offset+He.r2p(r[$]),Ue=.5}else{var Ye=Ur==="domain";$==="x"?(Te=r[$],pr=Ye?He._offset+He._length*Te:pr=l.l+l.w*Te):(Te=1-r[$],pr=Ye?He._offset+He._length*Te:pr=l.t+l.h*Te),Ue=r.showarrow?.5:Te}if(r.showarrow){Je.head=pr;var Ze=r["a"+$];if(kr=Qe*Pe(.5,r.xanchor)-Be*Pe(.5,r.yanchor),qe===be){var dr=Ih.getRefType(qe);dr==="domain"?($==="y"&&(Ze=1-Ze),Je.tail=He._offset+He._length*Ze):dr==="paper"?$==="y"?(Ze=1-Ze,Je.tail=l.t+l.h*Ze):Je.tail=l.l+l.w*Ze:Je.tail=He._offset+He.r2p(Ze),yr=kr}else Je.tail=pr+Ze,yr=kr+Ze;Je.text=Je.tail+kr;var Ar=o[$==="x"?"width":"height"];if(be==="paper"&&(Je.head=gf.constrain(Je.head,1,Ar-1)),qe==="pixel"){var mr=-Math.max(Je.tail-3,Je.text),br=Math.min(Je.tail+3,Je.text)-Ar;mr>0?(Je.tail+=mr,Je.text+=mr):br>0&&(Je.tail-=br,Je.text-=br)}Je.tail+=hr,Je.head+=hr}else kr=cr*Pe(Ue,or),yr=kr,Je.text=pr+kr;Je.text+=hr,kr+=hr,yr+=hr,r["_"+$+"padplus"]=cr/2+yr,r["_"+$+"padminus"]=cr/2-yr,r["_"+$+"size"]=cr,r["_"+$+"shift"]=kr}if(de){M.remove();return}var Ir=0,Cr=0;if(r.align!=="left"&&(Ir=(Ce-Fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Cr=(er-Xe)*(r.valign==="middle"?.5:1)),ke)le.select("svg").attr({x:N+Ir-1,y:N+Cr}).call(vu.setClipUrl,W?p:null,e);else{var Er=N+Cr-ze.top,lr=N+Ir-ze.left;ee.call(l4.positionText,lr,Er).call(vu.setClipUrl,W?p:null,e)}O.select("rect").call(vu.setRect,N,N,Ce,er),I.call(vu.setRect,D/2,D/2,ce-D,ge-D),M.call(vu.setTranslate,Math.round(y.x.text-ce/2),Math.round(y.y.text-ge/2)),x.attr({transform:"rotate("+_+","+y.x.text+","+y.y.text+")"});var xe=function(Ke,nr){C.selectAll(".annotation-arrow-g").remove();var Sr=y.x.head,Yr=y.y.head,zr=y.x.tail+Ke,st=y.y.tail+nr,bt=y.x.text+Ke,St=y.y.text+nr,$t=gf.rotationXYMatrix(_,bt,St),vn=gf.apply2DTransform($t),hn=gf.apply2DTransform2($t),qn=+I.attr("width"),Ot=+I.attr("height"),en=bt-.5*qn,Kt=en+qn,rn=St-.5*Ot,la=rn+Ot,xn=[[en,rn,en,la],[en,la,Kt,la],[Kt,la,Kt,rn],[Kt,rn,en,rn]].map(hn);if(!xn.reduce(function(Qt,Tn){return Qt^!!gf.segmentsIntersect(Sr,Yr,Sr+1e6,Yr+1e6,Tn[0],Tn[1],Tn[2],Tn[3])},!1)){xn.forEach(function(Qt){var Tn=gf.segmentsIntersect(zr,st,Sr,Yr,Qt[0],Qt[1],Qt[2],Qt[3]);Tn&&(zr=Tn.x,st=Tn.y)});var Un=r.arrowwidth,Gr=r.arrowcolor,on=r.arrowside,Ct=C.append("g").style({opacity:Vc.opacity(Gr)}).classed("annotation-arrow-g",!0),tn=Ct.append("path").attr("d","M"+zr+","+st+"L"+Sr+","+Yr).style("stroke-width",Un+"px").call(Vc.stroke,Vc.rgb(Gr));if(Hee(tn,on,r),s.annotationPosition&&tn.node().parentNode&&!n){var Nn=Sr,Zn=Yr;if(r.standoff){var Ut=Math.sqrt(Math.pow(Sr-zr,2)+Math.pow(Yr-st,2));Nn+=r.standoff*(zr-Sr)/Ut,Zn+=r.standoff*(st-Yr)/Ut}var ga=Ct.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(zr-Nn)+","+(st-Zn),transform:o4(Nn,Zn)}).style("stroke-width",Un+6+"px").call(Vc.stroke,"rgba(0,0,0,0)").call(Vc.fill,"rgba(0,0,0,0)"),ma,wn;Fh.init({element:ga.node(),gd:e,prepFn:function(){var Qt=vu.getTranslate(M);ma=Qt.x,wn=Qt.y,a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(Qt,Tn){var Mn=vn(ma,wn),oo=Mn[0]+Qt,yi=Mn[1]+Tn;M.call(vu.setTranslate,oo,yi),d("x",pf(a,Qt,"x",l,r)),d("y",pf(i,Tn,"y",l,r)),r.axref===r.xref&&d("ax",pf(a,Qt,"ax",l,r)),r.ayref===r.yref&&d("ay",pf(i,Tn,"ay",l,r)),Ct.attr("transform",o4(Qt,Tn)),x.attr({transform:"rotate("+_+","+oo+","+yi+")"})},doneFn:function(){i4.call("_guiRelayout",e,m());var Qt=document.querySelector(".js-notes-box-panel");Qt&&Qt.redraw(Qt.selectedObj)}})}}};if(r.showarrow&&xe(0,0),b){var Ae;Fh.init({element:M.node(),gd:e,prepFn:function(){Ae=x.attr("transform")},moveFn:function(Ke,nr){var Sr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",pf(a,Ke,"ax",l,r)):d("ax",r.ax+Ke),r.ayref===r.yref?d("ay",pf(i,nr,"ay",l.w,r)):d("ay",r.ay+nr),xe(Ke,nr);else{if(n)return;var Yr,zr;if(a)Yr=pf(a,Ke,"x",l,r);else{var st=r._xsize/l.w,bt=r.x+(r._xshift-r.xshift)/l.w-st/2;Yr=Fh.align(bt+Ke/l.w,st,0,1,r.xanchor)}if(i)zr=pf(i,nr,"y",l,r);else{var St=r._ysize/l.h,$t=r.y-(r._yshift+r.yshift)/l.h-St/2;zr=Fh.align($t-nr/l.h,St,0,1,r.yanchor)}d("x",Yr),d("y",zr),(!a||!i)&&(Sr=Fh.getCursor(a?.5:Yr,i?.5:zr,r.xanchor,r.yanchor))}x.attr({transform:o4(Ke,nr)+Ae}),s4(M,Sr)},clickFn:function(Ke,nr){r.captureevents&&e.emit("plotly_clickannotation",k(nr))},doneFn:function(){s4(M),i4.call("_guiRelayout",e,m());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}s.annotationText?ee.call(l4.makeEditable,{delegate:M,gd:e}).call(ne).on("edit",function(K){r.text=K,this.call(ne),d("text",K),a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),i4.call("_guiRelayout",e,m())}):ee.call(ne)}});var YE=te((uve,UE)=>{"use strict";var IE=gr(),Oee=dt(),HE=yn().arrayEditor;UE.exports={hasClickToShow:Uee,onClick:Yee};function Uee(e,r){var t=OE(e,r);return t.on.length>0||t.explicitOff.length>0}function Yee(e,r){var t=OE(e,r),n=t.on,a=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(n.length||a.length){for(l=0;l{"use strict";var u4=gr(),Ev=Pt();GE.exports=function(r,t,n,a){a("opacity");var i=a("bgcolor"),o=a("bordercolor"),l=Ev.opacity(o);a("borderpad");var s=a("borderwidth"),u=a("showarrow");a("text",u?" ":n._dfltTitle.annotation),a("textangle"),u4.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),u){var v=a("arrowside"),h,d;v.indexOf("end")!==-1&&(h=a("arrowhead"),d=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",h),a("startarrowsize",d)),a("arrowcolor",l?t.bordercolor:Ev.defaultLine),a("arrowwidth",(l&&s||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),p=n.hoverlabel||{};if(m){var y=a("hoverlabel.bgcolor",p.bgcolor||(Ev.opacity(i)?Ev.rgb(i):Ev.defaultLine)),_=a("hoverlabel.bordercolor",p.bordercolor||Ev.contrast(y)),C=u4.extendFlat({},p.font);C.color||(C.color=_),u4.coerceFont(a,"hoverlabel.font",C)}a("captureevents",!!m)}});var WE=te((cve,VE)=>{"use strict";var c4=gr(),Wc=Dn(),Gee=_l(),Vee=f4(),Wee=Mv();VE.exports=function(r,t){Gee(r,t,{name:"annotations",handleItemDefaults:Zee})};function Zee(e,r,t){function n(x,b){return c4.coerce(e,r,Wee,x,b)}var a=n("visible"),i=n("clicktoshow");if(a||i){Vee(e,r,t,n);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=l[f],h=Wc.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Wc.getFromId(u,h);d._annIndices.push(r._index)}if(Wc.coercePosition(r,u,n,h,v,.5),o){var m="a"+v,p=Wc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Wc.coercePosition(r,u,n,p,m,y)}n(v+"anchor"),n(v+"shift")}if(c4.noneOrAll(e,r,["x","y"]),o&&c4.noneOrAll(e,r,["ax","ay"]),i){var _=n("xclick"),C=n("yclick");r._xclick=_===void 0?r.x:Wc.cleanPosition(_,u,r.xref),r._yclick=C===void 0?r.y:Wc.cleanPosition(C,u,r.yref)}}}});var jE=te((vve,XE)=>{"use strict";var v4=gr(),Zc=Dn(),Xee=Lm().draw;XE.exports=function(r){var t=r._fullLayout,n=v4.filterVisible(t.annotations);if(n.length&&r._fullData.length)return v4.syncOrAsync([Xee,jee],r)};function jee(e){var r=e._fullLayout;v4.filterVisible(r.annotations).forEach(function(t){var n=Zc.getFromId(e,t.xref),a=Zc.getFromId(e,t.yref),i=Zc.getRefType(t.xref),o=Zc.getRefType(t.yref);t._extremes={},i==="range"&&ZE(t,n),o==="range"&&ZE(t,a)})}function ZE(e,r){var t=r._id,n=t.charAt(0),a=e[n],i=e["a"+n],o=e[n+"ref"],l=e["a"+n+"ref"],s=e["_"+n+"padplus"],u=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,_;if(l===o){var C=Zc.findExtremes(r,[r.r2c(a)],{ppadplus:h,ppadminus:d}),x=Zc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,p),ppadminus:Math.max(u,y)});_={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,_=Zc.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=_}});var $E=te((hve,JE)=>{"use strict";var Jee=Bt(),$ee=Md();JE.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],p=null;i?p=$ee(m,t.range):p=Math.pow(10,m),Jee(p)||(p=null),a(f+d,p)}for(var h=0;h{"use strict";var h4=Lm(),KE=YE();QE.exports={moduleType:"component",name:"annotations",layoutAttributes:Mv(),supplyLayoutDefaults:WE(),includeBasePlot:yh()("annotations"),calcAutorange:jE(),draw:h4.draw,drawOne:h4.drawOne,drawRaw:h4.drawRaw,hasClickToShow:KE.hasClickToShow,onClick:KE.onClick,convertCoords:$E()}});var qm=te((pve,rP)=>{"use strict";var _n=Mv(),Kee=xo().overrideAll,Qee=yn().templatedArray;rP.exports=Kee(Qee("annotation",{visible:_n.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:_n.xanchor,xshift:_n.xshift,yanchor:_n.yanchor,yshift:_n.yshift,text:_n.text,textangle:_n.textangle,font:_n.font,width:_n.width,height:_n.height,opacity:_n.opacity,align:_n.align,valign:_n.valign,bgcolor:_n.bgcolor,bordercolor:_n.bordercolor,borderpad:_n.borderpad,borderwidth:_n.borderwidth,showarrow:_n.showarrow,arrowcolor:_n.arrowcolor,arrowhead:_n.arrowhead,startarrowhead:_n.startarrowhead,arrowside:_n.arrowside,arrowsize:_n.arrowsize,startarrowsize:_n.startarrowsize,arrowwidth:_n.arrowwidth,standoff:_n.standoff,startstandoff:_n.startstandoff,hovertext:_n.hovertext,hoverlabel:_n.hoverlabel,captureevents:_n.captureevents}),"calc","from-root")});var nP=te((gve,tP)=>{"use strict";var d4=gr(),ere=Dn(),rre=_l(),tre=f4(),nre=qm();tP.exports=function(r,t,n){rre(r,t,{name:"annotations",handleItemDefaults:are,fullLayout:n.fullLayout})};function are(e,r,t,n){function a(l,s){return d4.coerce(e,r,nre,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],ere.coercePosition(r,u,a,l,l,.5)}var o=a("visible");o&&(tre(e,r,n.fullLayout,a),i("x"),i("y"),i("z"),d4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),d4.noneOrAll(e,r,["ax","ay"])))}});var lP=te((mve,oP)=>{"use strict";var aP=gr(),iP=Dn();oP.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function p4(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function ore(e,r){var t=p4(e.projection,p4(e.view,p4(e.model,[r[0],r[1],r[2],1])));return t}sP.exports=ore});var cP=te((bve,fP)=>{"use strict";var lre=Lm().drawRaw,sre=uP(),ure=["x","y","z"];fP.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=sre(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*n[0],t.yaxis.r2l(o.y)*n[1],t.zaxis.r2l(o.z)*n[2]]),lre(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var dP=te((_ve,hP)=>{"use strict";var fre=dt(),vP=gr();hP.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:qm()}}},layoutAttributes:qm(),handleDefaults:nP(),includeBasePlot:cre,convert:lP(),draw:cP()};function cre(e,r){var t=fre.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),i=0;i{"use strict";var xve=xa(),pP=Qa(),gP=Fc().line,vre=rs().dash,Ll=fa().extendFlat,hre=yn().templatedArray,wve=gh(),Pv=_o(),mP=Mv(),{shapeTexttemplateAttrs:dre,templatefallbackAttrs:pre}=lc(),gre=Rd();yP.exports=hre("shape",{visible:Ll({},Pv.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ll({},Pv.legend,{editType:"calc+arraydraw"}),legendgroup:Ll({},Pv.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ll({},Pv.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:pP({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ll({},Pv.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ll({},Pv.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Ll({},mP.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Ll({},mP.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Ll({},gP.color,{editType:"arraydraw"}),width:Ll({},gP.width,{editType:"calc+arraydraw"}),dash:Ll({},vre,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:dre({},{keys:Object.keys(gre)}),texttemplatefallback:pre({editType:"arraydraw"}),font:pP({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var _P=te((Ave,bP)=>{"use strict";var Rv=gr(),no=Dn(),mre=_l(),yre=g4(),Hh=ff();bP.exports=function(r,t){mre(r,t,{name:"shapes",handleItemDefaults:_re})};function bre(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function _re(e,r,t){function n(x,b){return Rv.coerce(e,r,yre,x,b)}r._isShape=!0;var a=n("visible");if(!a)return;var i=n("showlegend");n("legend"),n("legendgroup"),i&&(n("legendwidth"),n("legendgrouptitle.text"),Rv.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),l=o?"path":"rect",s=n("type",l),u=s!=="path";u&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var v=n("xsizemode"),h=n("ysizemode");let d=[.25,.75],m=[0,10];["x","y"].forEach(x=>{var b=x+"anchor",A=x==="x"?v:h,k={_fullLayout:t},M,D,R,N;let I=x+"ref",W=e[I];if(Array.isArray(W)&&W.length>0){let O=Hh.countDefiningCoords(s,o,x);N=no.coerceRefArray(e,r,k,x,void 0,"paper",O),r["_"+x+"refArray"]=!0}else N=no.coerceRef(e,r,k,x,void 0,"paper");if(Array.isArray(N))N.forEach(function(O){no.getRefType(O)==="range"&&(M=no.getFromId(k,O),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(O){let Z=N[O];no.getRefType(Z)==="range"?(M=no.getFromId(k,Z),D=Hh.shapePositionToRange(M),R=Hh.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&n(x+O+"shift")):D=R=Rv.identity;let ee=x+O,ne=e[ee];if(e[ee]=D(e[ee],!0),A==="pixel"?n(ee,m[O]):no.coercePosition(r,k,n,Z,ee,d[O]),r[ee]=R(r[ee]),e[ee]=ne,O===0&&A==="pixel"){let re=e[b];e[b]=D(e[b],!0),no.coercePosition(r,k,n,Z,b,.25),r[b]=R(r[b]),e[b]=re}});else{if(no.getRefType(N)==="range"?(M=no.getFromId(k,N),M._shapeIndices.push(r._index),R=Hh.rangeToShapePosition(M),D=Hh.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):D=R=Rv.identity,u){let Z=x+"0",H=x+"1",ee=e[Z],ne=e[H];e[Z]=D(e[Z],!0),e[H]=D(e[H],!0),A==="pixel"?(n(Z,m[0]),n(H,m[1])):(no.coercePosition(r,k,n,N,Z,d[0]),no.coercePosition(r,k,n,N,H,d[1])),r[Z]=R(r[Z]),r[H]=R(r[H]),e[Z]=ee,e[H]=ne}if(A==="pixel"){let Z=e[b];e[b]=D(e[b],!0),no.coercePosition(r,k,n,N,b,.25),r[b]=R(r[b]),e[b]=Z}}}),u&&Rv.noneOrAll(e,r,["x0","x1","y0","y1"]);var p=s==="line",y,_;if(u&&(y=n("label.texttemplate"),n("label.texttemplatefallback")),y||(_=n("label.text")),_||y){n("label.textangle");var C=n("label.textposition",p?"middle":"middle center");n("label.xanchor"),n("label.yanchor",bre(p,C)),n("label.padding"),Rv.coerceFont(n,"label.font",t.font)}}});var MP=te((Tve,wP)=>{"use strict";var xre=Pt(),xP=gr();function wre(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}wP.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),xP.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var i=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",xre.contrast(i)),n("newshape.line.dash")}var o=r.dragmode==="drawline",l=n("newshape.label.text"),s=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),l||s){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",wre(o,u)),n("newshape.label.padding"),xP.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var qP=te((kve,LP)=>{"use strict";var m4=gr(),Ho=Dn(),_s=J1(),y4=ff();LP.exports=function(r){var t=r._fullLayout,n=m4.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a{o=Ho.getFromId(r,v),i._extremes[o._id]=Ho.findExtremes(o,h,TP(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=Ho.getFromId(r,i.xref),l=SP(o,i,_s.paramIsX),l&&(i._extremes[o._id]=Ho.findExtremes(o,l,TP(i))));if(u==="array"){let f=AP(r,i,"y");Object.entries(f).forEach(([v,h])=>{o=Ho.getFromId(r,v),i._extremes[o._id]=Ho.findExtremes(o,h,kP(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=Ho.getFromId(r,i.yref),l=SP(o,i,_s.paramIsY),l&&(i._extremes[o._id]=Ho.findExtremes(o,l,kP(i))))}};function AP(e,r,t){let n=r[t+"ref"],a=t==="x"?_s.paramIsX:_s.paramIsY;function i(v,h){v==="paper"||Ho.getRefType(v)==="domain"||(o[v]||(o[v]=[]),o[v].push(h))}let o={};if(r.type==="path"&&r.path){let v=r.path.match(_s.segmentRE)||[];for(var l=0,s=0;sm&&(i(n[l],p[m]),l++)}}else i(n[0],r[t+"0"]),i(n[1],r[t+"1"]);let u={};for(let v in o){let h=Ho.getFromId(e,v);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=y4.decodeDate(f)),u[h._id]=o[v].map(f)}}return u}function TP(e){return CP(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function kP(e){return CP(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function CP(e,r,t,n,a,i){var o=e/2,l=i;if(r==="pixel"){var s=a?y4.extractPathCoords(a,i?_s.paramIsY:_s.paramIsX):[t,n],u=m4.aggNums(Math.max,null,s),f=m4.aggNums(Math.min,null,s),v=f<0?Math.abs(f)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:l?v:h,ppadminus:l?h:v}}else return{ppad:o}}function SP(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(i=r[n+"0"],o=r[n+"1"],a&&(l=r[n+"0shift"],s=r[n+"1shift"])):(i=r[n+"anchor"],o=r[n+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(_s.segmentRE),m,p,y,_,C;for(e.type==="date"&&(u=y4.decodeDate(u)),m=0;mh&&(h=C)));if(h>=v)return[v,h]}}});var PP=te((Sve,EP)=>{"use strict";var DP=bg();EP.exports={moduleType:"component",name:"shapes",layoutAttributes:g4(),supplyLayoutDefaults:_P(),supplyDrawNewShapeDefaults:MP(),includeBasePlot:yh()("shapes"),calcAutorange:qP(),draw:DP.draw,drawOne:DP.drawOne}});var b4=te((Lve,zP)=>{"use strict";var RP=xa(),Mre=yn().templatedArray,Cve=gh();zP.exports=Mre("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",RP.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",RP.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var FP=te((qve,NP)=>{"use strict";var Are=gr(),_4=Dn(),Tre=_l(),kre=b4(),Sre="images";NP.exports=function(r,t){var n={name:Sre,handleItemDefaults:Cre};Tre(r,t,n)};function Cre(e,r,t){function n(h,d){return Are.coerce(e,r,kre,h,d)}var a=n("source"),i=n("visible",!!a);if(!i)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=_4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var v=_4.getFromId(o,f);v._imgIndices.push(r._index)}_4.coercePosition(r,o,n,f,u,0)}return r}});var OP=te((Dve,BP)=>{"use strict";var IP=Tt(),Lre=cn(),zv=Dn(),HP=va(),qre=gc();BP.exports=function(r){var t=r._fullLayout,n=[],a={},i=[],o,l;for(l=0;l{"use strict";var UP=Bt(),Dre=Md();YP.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";VP.exports={moduleType:"component",name:"images",layoutAttributes:b4(),supplyLayoutDefaults:FP(),includeBasePlot:yh()("images"),draw:OP(),convertCoords:GP()}});var Dm=te((Rve,ZP)=>{"use strict";ZP.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var x4=te((zve,jP)=>{"use strict";var Ere=Qa(),Pre=dl(),Rre=fa().extendFlat,zre=xo().overrideAll,Nre=zd(),XP=yn().templatedArray,Fre=XP("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});jP.exports=zre(XP("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Fre,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Rre(Nre({editType:"arraydraw"}),{}),font:Ere({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Pre.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var QP=te((Nve,KP)=>{"use strict";var Em=gr(),JP=_l(),$P=x4(),Ire=Dm(),Hre=Ire.name,Bre=$P.buttons;KP.exports=function(r,t){var n={name:Hre,handleItemDefaults:Ore};JP(r,t,n)};function Ore(e,r,t){function n(o,l){return Em.coerce(e,r,$P,o,l)}var a=JP(e,r,{name:"buttons",handleItemDefaults:Ure}),i=n("visible",a.length>0);i&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Em.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Em.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Ure(e,r){function t(a,i){return Em.coerce(e,r,Bre,a,i)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var tR=te((Fve,rR)=>{"use strict";rR.exports=zn;var ql=Tt(),eR=Pt(),Nv=cn(),Pm=gr();function zn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}zn.barWidth=2;zn.barLength=20;zn.barRadius=2;zn.barPad=1;zn.barColor="#808BA4";zn.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,i=a.width,o=a.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",p=v==="up",y=s,_=f,C,x,b,A;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var k=h||p;k?(C=l,x=C+y,h?(b=u,A=Math.min(b+_,o),_=A-b):(A=u+_,b=Math.max(A-_,0),_=A-b)):(b=u,A=b+_,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:b,w:y,h:_};var M=s>y,D=zn.barLength+2*zn.barPad,R=zn.barWidth+2*zn.barPad,N=l,I=u+f;I+R>o&&(I=o-R);var W=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);W.exit().on(".drag",null).remove(),W.enter().append("rect").classed("scrollbar-horizontal",!0).call(eR.fill,zn.barColor),M?(this.hbar=W.attr({rx:zn.barRadius,ry:zn.barRadius,x:N,y:I,width:D,height:R}),this._hbarXMin=N+D/2,this._hbarTranslateMax=y-D):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=f>_,Z=zn.barWidth+2*zn.barPad,H=zn.barLength+2*zn.barPad,ee=l+s,ne=u;ee+Z>i&&(ee=i-Z);var re=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(eR.fill,zn.barColor),O?(this.vbar=re.attr({rx:zn.barRadius,ry:zn.barRadius,x:ee,y:ne,width:Z,height:H}),this._vbarYMin=ne+H/2,this._vbarTranslateMax=_-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var K=this.id,ue=C-.5,le=O?x+Z+.5:x+.5,ke=b-.5,ze=M?A+R+.5:A+.5,Fe=a._topdefs.selectAll("#"+K).data(M||O?[0]:[]);if(Fe.exit().remove(),Fe.enter().append("clipPath").attr("id",K).append("rect"),M||O?(this._clipRect=Fe.select("rect").attr({x:Math.floor(ue),y:Math.floor(ke),width:Math.ceil(le)-Math.floor(ue),height:Math.ceil(ze)-Math.floor(ke)}),this.container.call(Nv.setClipUrl,K,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Nv.setClipUrl,null),delete this._clipRect),M||O){var Xe=ql.behavior.drag().on("dragstart",function(){ql.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Xe);var Ce=ql.behavior.drag().on("dragstart",function(){ql.event.sourceEvent.preventDefault(),ql.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Ce),O&&this.vbar.on(".drag",null).call(Ce)}this.setTranslate(t,n)};zn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Nv.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};zn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ql.event.dx),this.vbar&&(t-=ql.event.dy),this.setTranslate(r,t)};zn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ql.event.deltaY),this.vbar&&(t+=ql.event.deltaY),this.setTranslate(r,t)};zn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,i=Pm.constrain(ql.event.x,n,a),o=(i-n)/(a-n),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Pm.constrain(ql.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};zn.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=Pm.constrain(r||0,0,n),t=Pm.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Nv.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/n;this.hbar.call(Nv.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/a;this.vbar.call(Nv.setTranslate,r,t+o*this._vbarTranslateMax)}}});var vR=te((Ive,cR)=>{"use strict";var Fv=Tt(),Bh=ha(),Oh=Pt(),Iv=cn(),ao=gr(),Rm=ei(),Yre=yn().arrayEditor,aR=Oa().LINE_SPACING,ct=Dm(),Gre=tR();cR.exports=function(r){var t=r._fullLayout,n=ao.filterVisible(t[ct.name]);function a(h){Bh.autoMargin(r,uR(h))}var i=t._menulayer.selectAll("g."+ct.containerClassName).data(n.length>0?[0]:[]);if(i.enter().append("g").classed(ct.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Fv.select(this).selectAll("g."+ct.headerGroupClassName).each(a)}).remove(),n.length!==0){var o=i.selectAll("g."+ct.headerGroupClassName).data(n,Vre);o.enter().append("g").classed(ct.headerGroupClassName,!0);for(var l=ao.ensureSingle(i,"g",ct.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var Kre=Dm();hR.exports={moduleType:"component",name:Kre.name,layoutAttributes:x4(),supplyLayoutDefaults:QP(),draw:vR()}});var Yh=te((Bve,pR)=>{"use strict";pR.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var T4=te((Ove,yR)=>{"use strict";var gR=Qa(),Qre=zd(),ete=fa().extendDeepAll,rte=xo().overrideAll,tte=b1(),mR=yn().templatedArray,Xc=Yh(),nte=mR("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});yR.exports=rte(mR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:nte,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:ete(Qre({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:tte.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:gR({})},font:gR({}),activebgcolor:{valType:"color",dflt:Xc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Xc.railBgColor},bordercolor:{valType:"color",dflt:Xc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Xc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Xc.tickLength},tickcolor:{valType:"color",dflt:Xc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Xc.minorTickLength}}),"arraydraw","from-root")});var wR=te((Uve,xR)=>{"use strict";var Hv=gr(),bR=_l(),_R=T4(),ate=Yh(),ite=ate.name,ote=_R.steps;xR.exports=function(r,t){bR(r,t,{name:ite,handleItemDefaults:lte})};function lte(e,r,t){function n(v,h){return Hv.coerce(e,r,_R,v,h)}for(var a=bR(e,r,{name:"steps",handleItemDefaults:ste}),i=0,o=0;o{"use strict";var Dl=Tt(),zm=ha(),mf=Pt(),El=cn(),io=gr(),ute=io.strTranslate,Gh=ei(),fte=yn().arrayEditor,Mt=Yh(),C4=Oa(),TR=C4.LINE_SPACING,k4=C4.FROM_TL,S4=C4.FROM_BR;DR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=cte(n,r),i=n._infolayer.selectAll("g."+Mt.containerClassName).data(a.length>0?[0]:[]);i.enter().append("g").classed(Mt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),zm.autoMargin(r,kR(f))}if(i.exit().each(function(){Dl.select(this).selectAll("g."+Mt.groupClassName).each(o)}).remove(),a.length!==0){var l=i.selectAll("g."+Mt.groupClassName).data(a,vte);l.enter().append("g").classed(Mt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",ute(o-Mt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function L4(e,r){var t=e._dims;return t.inputAreaStart+Mt.stepInset+(t.inputAreaLength-2*Mt.stepInset)*Math.min(1,Math.max(0,r))}function AR(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Mt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Mt.stepInset-2*t.inputAreaStart)))}function bte(e,r,t){var n=t._dims,a=io.ensureSingle(e,"rect",Mt.railTouchRectClass,function(i){i.call(LR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Mt.tickOffset+t.ticklen+n.labelHeight)}).call(mf.fill,t.bgcolor).attr("opacity",0),El.setTranslate(a,0,n.currentValueTotalHeight)}function _te(e,r){var t=r._dims,n=t.inputAreaLength-Mt.railInset*2,a=io.ensureSingle(e,"rect",Mt.railRectClass);a.attr({width:n,height:Mt.railWidth,rx:Mt.railRadius,ry:Mt.railRadius,"shape-rendering":"crispEdges"}).call(mf.stroke,r.bordercolor).call(mf.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),El.setTranslate(a,Mt.railInset,(t.inputAreaWidth-Mt.railWidth)*.5+t.currentValueTotalHeight)}});var RR=te((Gve,PR)=>{"use strict";var xte=Yh();PR.exports={moduleType:"component",name:xte.name,layoutAttributes:T4(),supplyLayoutDefaults:wR(),draw:ER()}});var Fm=te((Vve,NR)=>{"use strict";var zR=dl();NR.exports={bgcolor:{valType:"color",dflt:zR.background,editType:"plot"},bordercolor:{valType:"color",dflt:zR.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var q4=te((Wve,FR)=>{"use strict";FR.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Im=te((Zve,IR)=>{"use strict";IR.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var OR=te(Bm=>{"use strict";var wte=va(),Mte=ei(),HR=Im(),Ate=Oa().LINE_SPACING,Hm=HR.name;function BR(e){var r=e&&e[Hm];return r&&r.visible}Bm.isVisible=BR;Bm.makeData=function(e){for(var r=wte.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Om=gr(),UR=yn(),YR=va(),Tte=Fm(),kte=q4();GR.exports=function(r,t,n){var a=r[n],i=t[n];if(!(a.rangeslider||t._requestRangeslider[i._id]))return;Om.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,l=UR.newContainer(i,"rangeslider");function s(A,k){return Om.coerce(o,l,Tte,A,k)}var u,f;function v(A,k){return Om.coerce(u,f,kte,A,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===YR.name2id(n)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),p=Om.simpleMap(m,YR.id2name),y=0;y{"use strict";var Ste=va().list,Cte=tf().getAutoRange,Lte=Im();WR.exports=function(r){for(var t=Ste(r,"x",!0),n=0;n{"use strict";var Um=Tt(),qte=dt(),Dte=ha(),Wn=gr(),Ym=Wn.strTranslate,jR=cn(),yf=Pt(),Ete=z1(),Pte=n4(),D4=va(),Rte=ko(),zte=af(),Et=Im();JR.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=re.max)ee=I[ne+1];else if(H=re.pmax)ee=I[ne+1];else if(H0?e.touches[0].clientX:0}function Nte(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Et.slideBoxClassName).node(),i=e.select("rect."+Et.grabAreaMinClassName).node(),o=e.select("rect."+Et.grabAreaMaxClassName).node();function l(){var s=Um.event,u=s.target,f=XR(s),v=f-e.node().getBoundingClientRect().left,h=n.d2p(t._rl[0]),d=n.d2p(t._rl[1]),m=Rte.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(_){var C=XR(_),x=+C-f,b,A,k;switch(u){case a:if(k="ew-resize",h+x>t._length||d+x<0)return;b=h+x,A=d+x;break;case i:if(k="col-resize",h+x>t._length)return;b=h+x,A=d;break;case o:if(k="col-resize",d+x<0)return;b=h,A=d+x;break;default:k="ew-resize",b=v,A=v+x;break}if(A{"use strict";var Wte=gr(),Zte=Fm(),Xte=q4(),E4=OR();KR.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Wte.extendFlat({},Zte,{yaxis:Xte})}}},layoutAttributes:Fm(),handleDefaults:VR(),calcAutorange:ZR(),draw:$R(),isVisible:E4.isVisible,makeData:E4.makeData,autoMarginOpts:E4.autoMarginOpts}});var Gm=te((Qve,rz)=>{"use strict";var jte=Qa(),ez=dl(),Jte=yn().templatedArray,$te=Jte("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});rz.exports={visible:{valType:"boolean",editType:"plot"},buttons:$te,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:jte({editType:"plot"}),bgcolor:{valType:"color",dflt:ez.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:ez.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var P4=te((e1e,tz)=>{"use strict";tz.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var iz=te((r1e,az)=>{"use strict";var Vm=gr(),Kte=Pt(),Qte=yn(),ene=_l(),nz=Gm(),R4=P4();az.exports=function(r,t,n,a,i){var o=r.rangeselector||{},l=Qte.newContainer(t,"rangeselector");function s(d,m){return Vm.coerce(o,l,nz,d,m)}var u=ene(o,l,{name:"buttons",handleItemDefaults:rne,calendar:i}),f=s("visible",u.length>0);if(f){var v=tne(t,n,a);s("x",v[0]),s("y",v[1]),Vm.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Vm.coerceFont(s,"font",n.font);var h=s("bgcolor");s("activecolor",Kte.contrast(h,R4.lightAmount,R4.darkAmount)),s("bordercolor"),s("borderwidth")}};function rne(e,r,t,n){var a=n.calendar;function i(s,u){return Vm.coerce(e,r,nz.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function tne(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,i=0;i{"use strict";var nne=Py(),ane=gr().titleCase;oz.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var i=ine(r,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a};function ine(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,i=nne["utc"+ane(a)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(n,-o));break;case"todate":var s=i.offset(n,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var pz=te((n1e,dz)=>{"use strict";var Zm=Tt(),one=dt(),lne=ha(),sz=Pt(),hz=cn(),hu=gr(),uz=hu.strTranslate,Wm=ei(),sne=va(),F4=Oa(),fz=F4.LINE_SPACING,cz=F4.FROM_TL,vz=F4.FROM_BR,N4=P4(),une=lz();dz.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(fne(r),cne);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var i=Zm.select(this),o=a,l=o.rangeselector,s=i.selectAll("g.button").data(hu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Zm.select(this),v=une(o,u);u._isActive=vne(o,u,v),f.call(z4,l,u),f.call(dne,l,u,r),f.on("click",function(){r._dragged||one.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(z4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(z4,l,u)})}),gne(r,s,l,o._name,i)})};function fne(e){for(var r=sne.list(e,"x",!0),t=[],n=0;n{"use strict";gz.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Gm()}}},layoutAttributes:Gm(),handleDefaults:iz(),draw:pz()}});var Xm=te(I4=>{"use strict";var yz=fa().extendFlat;I4.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:yz({},t,{}),y:yz({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};I4.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],i=n&&n.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var mne=gr(),yne=z0().counter,bne=Xm().attributes,bz=xa().idRegex,_ne=yn(),H4={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[yne("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[bz.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[bz.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:bne({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function jm(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function xne(e,r){var t=e.grid||{},n=jm(r,t,"x"),a=jm(r,t,"y");if(!e.grid&&!n&&!a)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(n),l=Array.isArray(a),s=o&&n!==t.xaxes&&l&&a!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=a.length),o&&(f=n.length));var v=_ne.newContainer(r,"grid");function h(k,M){return mne.coerce(t,v,H4,k,M)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}v._hasSubplotGrid=i;var y=h("roworder"),_=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,b,A;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:_z("x",h,C,b,m),y:_z("y",h,x,A,d,_)}}function _z(e,r,t,n,a,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var s=new Array(a),u=l[0],f=(l[1]-u)/(a-o),v=f*(1-o),h=0;h{"use strict";Az.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var Sz=te((s1e,kz)=>{"use strict";var Tz=Bt(),Mne=dt(),Ane=gr(),Tne=yn(),kne=B4();kz.exports=function(e,r,t,n){var a="error_"+n.axis,i=Tne.newContainer(r,a),o=e[a]||{};function l(m,p){return Ane.coerce(o,i,kne,m,p)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=r["error_"+n.inherit];(d||{}).visible&&l(h,!(o.color||Tz(o.thickness)||Tz(o.width)))}(!n.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",Mne.traceIs(r,"gl3d")?0:4))}}});var O4=te((u1e,Lz)=>{"use strict";Lz.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(u,f){var v=+a[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+a[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var o=Cz(t,r.value),l=Cz(t,r.valueminus);return n||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function Cz(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var Ez=te((f1e,Dz)=>{"use strict";var U4=Bt(),Sne=dt(),Y4=Dn(),Cne=gr(),Lne=O4();Dz.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var Pz=Tt(),bf=Bt(),qne=cn(),Dne=ri();Rz.exports=function(r,t,n,a){var i,o=n.xaxis,l=n.yaxis,s=a&&a.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(C){return C.id});var p=Dne.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=Pz.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var _=y.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(a.duration).style("opacity",1),qne.setClipUrl(y,n.layerClipId,r),y.each(function(C){var x=Pz.select(this),b=Ene(C,o,l);if(!(p&&!C.vis)){var A,k=x.select("path.yerror");if(d.visible&&bf(b.x)&&bf(b.yh)&&bf(b.ys)){var M=d.width;A="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(A+="m-"+M+",0h"+2*M),i=!k.size(),i?k=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(a.duration).ease(a.easing)),k.attr("d",A)}else k.remove();var D=x.select("path.xerror");if(h.visible&&bf(b.y)&&bf(b.xh)&&bf(b.xs)){var R=(h.copy_ystyle?d:h).width;A="M"+b.xh+","+(b.y-R)+"v"+2*R+"m0,-"+R+"H"+b.xs,b.noXS||(A+="m0,-"+R+"v"+2*R),i=!D.size(),i?D=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(D=D.transition().duration(a.duration).ease(a.easing)),D.attr("d",A)}else D.remove()}})}})};function Ene(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),bf(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),bf(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var Iz=te((v1e,Fz)=>{"use strict";var Pne=Tt(),Nz=Pt();Fz.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},i=n.error_x||{},o=Pne.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(Nz.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(Nz.stroke,i.color)})}});var Oz=te((h1e,Bz)=>{"use strict";var Vh=gr(),Hz=xo().overrideAll,Wh=B4(),jc={error_x:Vh.extendFlat({},Wh),error_y:Vh.extendFlat({},Wh)};delete jc.error_x.copy_zstyle;delete jc.error_y.copy_zstyle;delete jc.error_y.copy_ystyle;var Zh={error_x:Vh.extendFlat({},Wh),error_y:Vh.extendFlat({},Wh),error_z:Vh.extendFlat({},Wh)};delete Zh.error_x.copy_ystyle;delete Zh.error_y.copy_ystyle;delete Zh.error_z.copy_ystyle;delete Zh.error_z.copy_zstyle;Bz.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:jc,bar:jc,histogram:jc,scatter3d:Hz(Zh,"calc","nested"),scattergl:Hz(jc,"calc","nested")}},supplyDefaults:Sz(),calc:Ez(),makeComputeError:O4(),plot:zz(),style:Iz(),hoverInfo:Rne};function Rne(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var Yz=te((d1e,Uz)=>{"use strict";Uz.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Jz=te((p1e,jz)=>{"use strict";var _f=Tt(),G4=es(),$m=ha(),Gz=dt(),du=Dn(),Jm=ko(),Bo=gr(),Rl=Bo.strTranslate,Xz=fa().extendFlat,V4=af(),Pl=cn(),W4=Pt(),zne=z1(),Nne=ei(),Fne=ns().flipScale,Ine=Qb(),Hne=e4(),Bne=bl(),Z4=Oa(),Vz=Z4.LINE_SPACING,Wz=Z4.FROM_TL,Zz=Z4.FROM_BR,En=Yz().cn;function One(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+En.colorbar).data(Une(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(En.colorbar,!0),t.each(function(n){var a=_f.select(this);Bo.ensureSingle(a,"rect",En.cbbg),Bo.ensureSingle(a,"g",En.cbfills),Bo.ensureSingle(a,"g",En.cblines),Bo.ensureSingle(a,"g",En.cbaxis,function(o){o.classed(En.crisp,!0)}),Bo.ensureSingle(a,"g",En.cbtitleunshift,function(o){o.append("g").classed(En.cbtitle,!0)}),Bo.ensureSingle(a,"rect",En.cboutline);var i=Yne(a,n,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Gne(a,n,e)}),t.exit().each(function(n){$m.autoMargin(e,n._id)}).remove(),t.order()}function Une(e){var r=e._fullLayout,t=e.calcdata,n=[],a,i,o,l;function s(x){return Xz(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,a):(a._fillgradient=i.reversescale?Fne(i.colorscale):i.colorscale,a._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(G)/Math.LN10));Pe*=Q*Bo.roundUp(G/Q,[2,5,10]),(Math.abs(W.start)/W.size+1e-6)%1<2e-6&&(ce.tick0=0)}ce.dtick=Pe}ce.domain=n?[Ce+m/b.h,Ce+K-m/b.h]:[Ce+d/b.w,Ce+K-d/b.w],ce.setScale(),e.attr("transform",Rl(Math.round(b.l),Math.round(b.t)));var $=e.select("."+En.cbtitleunshift).attr("transform",Rl(-Math.round(b.l),-Math.round(b.t))),be=ce.ticklabelposition,qe=ce.title.font.size,He=e.select("."+En.cbaxis),ar,Qe=0,Be=0;function cr(yr,Te){var Ue={propContainer:ce,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+En.cbtitle)},kr=yr.charAt(0)==="h"?yr.slice(1):"h"+yr;e.selectAll("."+kr+",."+kr+"-math-group").remove(),zne.draw(t,yr,Xz(Ue,Te||{}))}function or(){if(n&&ge||!n&&!ge){var yr,Te;D==="top"&&(yr=d+b.l+ue*p,Te=m+b.t+le*(1-Ce-K)+3+qe*.75),D==="bottom"&&(yr=d+b.l+ue*p,Te=m+b.t+le*(1-Ce)-3-qe*.25),D==="right"&&(Te=m+b.t+le*y+3+qe*.75,yr=d+b.l+ue*Ce),cr(ce._id+"title",{attributes:{x:yr,y:Te,"text-anchor":n?"start":"middle"}})}}function hr(){if(n&&!ge||!n&&ge){var yr=ce.position||0,Te=ce._offset+ce._length/2,Ue,kr;if(D==="right")kr=Te,Ue=b.l+ue*yr+10+qe*(ce.showticklabels?1:.5);else if(Ue=Te,D==="bottom"&&(kr=b.t+le*yr+10+(be.indexOf("inside")===-1?ce.tickfont.size:0)+(ce.ticks!=="inside"&&r.ticklen||0)),D==="top"){var Ur=M.text.split("
").length;kr=b.t+le*yr+10-ee-Vz*qe*Ur}cr((n?"h":"v")+ce._id+"title",{avoid:{selection:_f.select(t).selectAll("g."+ce._id+"tick"),side:D,offsetTop:n?0:b.t,offsetLeft:n?b.l:0,maxShift:n?x.width:x.height},attributes:{x:Ue,y:kr,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Je(){if(!n&&!ge||n&&ge){var yr=e.select("."+En.cbtitle),Te=yr.select("text"),Ue=[-s/2,s/2],kr=yr.select(".h"+ce._id+"title-math-group").node(),Ur=15.6;Te.node()&&(Ur=parseInt(Te.node().style.fontSize,10)*Vz);var tr;if(kr?(tr=Pl.bBox(kr),Be=tr.width,Qe=tr.height,Qe>Ur&&(Ue[1]-=(Qe-Ur)/2)):Te.node()&&!Te.classed(En.jsPlaceholder)&&(tr=Pl.bBox(Te.node()),Be=tr.width,Qe=tr.height),n){if(Qe){if(Qe+=5,D==="top")ce.domain[1]-=Qe/b.h,Ue[1]*=-1;else{ce.domain[0]+=Qe/b.h;var Ye=Nne.lineCount(Te);Ue[1]+=(1-Ye)*Ur}yr.attr("transform",Rl(Ue[0],Ue[1])),ce.setScale()}}else Be&&(D==="right"&&(ce.domain[0]+=(Be+qe/2)/b.w),yr.attr("transform",Rl(Ue[0],Ue[1])),ce.setScale())}e.selectAll("."+En.cbfills+",."+En.cblines).attr("transform",n?Rl(0,Math.round(b.h*(1-ce.domain[1]))):Rl(Math.round(b.w*ce.domain[0]),0)),He.attr("transform",n?Rl(0,Math.round(-b.t)):Rl(Math.round(-b.l),0));var Ze=e.select("."+En.cbfills).selectAll("rect."+En.cbfill).attr("style","").data(Z);Ze.enter().append("rect").classed(En.cbfill,!0).attr("style",""),Ze.exit().remove();var dr=R.map(ce.c2p).map(Math.round).sort(function(Cr,Er){return Cr-Er});Ze.each(function(Cr,Er){var lr=[Er===0?R[0]:(Z[Er]+Z[Er-1])/2,Er===Z.length-1?R[1]:(Z[Er]+Z[Er+1])/2].map(ce.c2p).map(Math.round);n&&(lr[1]=Bo.constrain(lr[1]+(lr[1]>lr[0])?1:-1,dr[0],dr[1]));var xe=_f.select(this).attr(n?"x":"y",ke).attr(n?"y":"x",_f.min(lr)).attr(n?"width":"height",Math.max(ee,2)).attr(n?"height":"width",Math.max(_f.max(lr)-_f.min(lr),2));if(r._fillgradient)Pl.gradient(xe,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Ae=I(Cr).replace("e-","");xe.attr("fill",G4(Ae).toHexString())}});var Ar=e.select("."+En.cblines).selectAll("path."+En.cbline).data(k.color&&k.width?H:[]);Ar.enter().append("path").classed(En.cbline,!0),Ar.exit().remove(),Ar.each(function(Cr){var Er=ke,lr=Math.round(ce.c2p(Cr))+k.width/2%1;_f.select(this).attr("d","M"+(n?Er+","+lr:lr+","+Er)+(n?"h":"v")+ee).call(Pl.lineGroupStyle,k.width,N(Cr),k.dash)}),He.selectAll("g."+ce._id+"tick,path").remove();var mr=ke+ee+(s||0)/2-(r.ticks==="outside"?1:0),br=du.calcTicks(ce),Ir=du.getTickSigns(ce)[2];return du.drawTicks(t,ce,{vals:ce.ticks==="inside"?du.clipEnds(ce,br):br,layer:He,path:du.makeTickPath(ce,mr,Ir),transFn:du.makeTransTickFn(ce)}),du.drawLabels(t,ce,{vals:br,layer:He,transFn:du.makeTransTickLabelFn(ce),labelFns:du.makeLabelFns(ce,mr)})}function pr(){var yr,Te=ee+s/2;be.indexOf("inside")===-1&&(yr=Pl.bBox(He.node()),Te+=n?yr.width:yr.height),ar=$.select("text");var Ue=0,kr=n&&D==="top",Ur=!n&&D==="right",tr=0;if(ar.node()&&!ar.classed(En.jsPlaceholder)){var Ye,Ze=$.select(".h"+ce._id+"title-math-group").node();Ze&&(n&&ge||!n&&!ge)?(yr=Pl.bBox(Ze),Ue=yr.width,Ye=yr.height):(yr=Pl.bBox($.node()),Ue=yr.right-b.l-(n?ke:er),Ye=yr.bottom-b.t-(n?er:ke),!n&&D==="top"&&(Te+=yr.height,tr=yr.height)),Ur&&(ar.attr("transform",Rl(Ue/2+qe/2,0)),Ue*=2),Te=Math.max(Te,n?Ue:Ye)}var dr=(n?d:m)*2+Te+u+s/2,Ar=0;!n&&M.text&&h==="bottom"&&y<=0&&(Ar=dr/2,dr+=Ar,tr+=Ar),x._hColorbarMoveTitle=Ar,x._hColorbarMoveCBTitle=tr;var mr=u+s,br=(n?ke:er)-mr/2-(n?d:0),Ir=(n?er:ke)-(n?re:m+tr-Ar);e.select("."+En.cbbg).attr("x",br).attr("y",Ir).attr(n?"width":"height",Math.max(dr-Ar,2)).attr(n?"height":"width",Math.max(re+mr,2)).call(W4.fill,f).call(W4.stroke,r.bordercolor).style("stroke-width",u);var Cr=Ur?Math.max(Ue-10,0):0;e.selectAll("."+En.cboutline).attr("x",(n?ke:er+d)+Cr).attr("y",(n?er+m-re:ke)+(kr?Qe:0)).attr(n?"width":"height",Math.max(ee,2)).attr(n?"height":"width",Math.max(re-(n?2*m+Qe:2*d+Cr),2)).call(W4.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Er=n?ze*dr:0,lr=n?0:(1-Fe)*dr-tr;if(Er=C?b.l-Er:-Er,lr=_?b.t-lr:-lr,e.attr("transform",Rl(Er,lr)),!n&&(u||G4(f).getAlpha()&&!G4.equals(x.paper_bgcolor,f))){var xe=He.selectAll("text"),Ae=xe[0].length,Ke=e.select("."+En.cbbg).node(),nr=Pl.bBox(Ke),Sr=Pl.getTranslate(e),Yr=2;xe.each(function(en,Kt){var rn=0,la=Ae-1;if(Kt===rn||Kt===la){var xn=Pl.bBox(this),Un=Pl.getTranslate(this),Gr;if(Kt===la){var on=xn.right+Un.x,Ct=nr.right+Sr.x+er-u-Yr+p;Gr=Ct-on,Gr>0&&(Gr=0)}else if(Kt===rn){var tn=xn.left+Un.x,Nn=nr.left+Sr.x+er+u+Yr;Gr=Nn-tn,Gr<0&&(Gr=0)}Gr&&(Ae<3?this.setAttribute("transform","translate("+Gr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var zr={},st=Wz[v],bt=Zz[v],St=Wz[h],$t=Zz[h],vn=dr-ee;n?(i==="pixels"?(zr.y=y,zr.t=re*St,zr.b=re*$t):(zr.t=zr.b=0,zr.yt=y+a*St,zr.yb=y-a*$t),l==="pixels"?(zr.x=p,zr.l=dr*st,zr.r=dr*bt):(zr.l=vn*st,zr.r=vn*bt,zr.xl=p-o*st,zr.xr=p+o*bt)):(i==="pixels"?(zr.x=p,zr.l=re*st,zr.r=re*bt):(zr.l=zr.r=0,zr.xl=p+a*st,zr.xr=p-a*bt),l==="pixels"?(zr.y=1-y,zr.t=dr*St,zr.b=dr*$t):(zr.t=vn*St,zr.b=vn*$t,zr.yt=y-o*St,zr.yb=y+o*$t));var hn=r.y<.5?"b":"t",qn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ot={r:x.width-br-Er,l:br+zr.r,b:x.height-Ir-lr,t:Ir+zr.b};C&&_?$m.autoMargin(t,r._id,zr):C?t._fullLayout._reservedMargin[r._id][hn]=Ot[hn]:_||n?t._fullLayout._reservedMargin[r._id][qn]=Ot[qn]:t._fullLayout._reservedMargin[r._id][hn]=Ot[hn]}return Bo.syncOrAsync([$m.previousPromises,or,Je,hr,$m.previousPromises,pr],t)}function Gne(e,r,t){var n=r.orientation==="v",a=t._fullLayout,i=a._size,o,l,s;Jm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),V4(e)},moveFn:function(u,f){e.attr("transform",o+Rl(u,f)),l=Jm.align((n?r._uFrac:r._vFrac)+u/i.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Jm.align((n?r._vFrac:1-r._uFrac)-f/i.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Jm.getCursor(l,s,r.xanchor,r.yanchor);V4(e,v)},doneFn:function(){if(V4(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?Gz.call("_guiRestyle",t,u,r._traceIndex):Gz.call("_guiRelayout",t,u)}}})}function Vne(e,r,t){var n=r._levels,a=[],i=[],o,l,s=n.end+n.size/100,u=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=n.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";$z.exports={moduleType:"component",name:"colorbar",attributes:cp(),supplyDefaults:X2(),draw:Jz().draw,hasColorbar:F2()}});var eN=te((m1e,Qz)=>{"use strict";Qz.exports={moduleType:"component",name:"legend",layoutAttributes:G3(),supplyLayoutDefaults:W3(),draw:l5(),style:n5()}});var tN=te((y1e,rN)=>{"use strict";rN.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var aN=te((b1e,nN)=>{"use strict";nN.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var j4=te((_1e,sN)=>{"use strict";var Zne=dt(),lN=gr(),X4=lN.extendFlat,iN=lN.extendDeep;function oN(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Xne(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}sN.exports=function(r,t){var n,a=r.data,i=r.layout,o=iN([],a),l=iN({},i,oN(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(n=0;n{"use strict";var jne=Kd().EventEmitter,Jne=dt(),$ne=gr(),uN=Ic(),Kne=j4(),Qne=am(),eae=im();function rae(e,r){var t=new jne,n=Kne(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function i(){var l=uN.getDelay(a._fullLayout);setTimeout(function(){var s=Qne(a),u=document.createElement("canvas");u.id=$ne.randstr(),t=eae({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var o=uN.getRedrawFunc(a);return Jne.call("_doPlot",a,n.data,n.layout,n.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}fN.exports=rae});var dN=te((w1e,hN)=>{"use strict";var vN=Ic(),tae={getDelay:vN.getDelay,getRedrawFunc:vN.getRedrawFunc,clone:j4(),toSVG:am(),svgToImg:im(),toImage:cN(),downloadImage:Ab()};hN.exports=tae});var gN=te(pu=>{"use strict";pu.version=s1().version;a6();Zw();var nae=dt(),Xh=pu.register=nae.register,$4=mq(),pN=Object.keys($4);for(Km=0;Km{"use strict";mN.exports=gN()});var jh=te((k1e,MN)=>{"use strict";var{hovertemplateAttrs:aae,texttemplateAttrs:iae,templatefallbackAttrs:bN}=lc(),oae=eb(),xs=Fc(),lae=_o(),_N=ev(),sae=rs().dash,Jc=fa().extendFlat,uae=xo().overrideAll,Oo=xs.marker,xN=xs.line,wN=Oo.line,T1e=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");MN.exports=uae({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Jc({},xs.mode,{dflt:"markers"}),text:Jc({},xs.text,{}),texttemplate:iae({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:bN({editType:"plot"}),hovertext:Jc({},xs.hovertext,{}),textfont:xs.textfont,textposition:xs.textposition,line:{color:xN.color,width:xN.width,dash:sae},connectgaps:xs.connectgaps,marker:Jc({symbol:Oo.symbol,opacity:Oo.opacity,angle:Oo.angle,angleref:Jc({},Oo.angleref,{values:["previous","up","north"]}),standoff:Oo.standoff,size:Oo.size,sizeref:Oo.sizeref,sizemin:Oo.sizemin,sizemode:Oo.sizemode,colorbar:Oo.colorbar,line:Jc({width:wN.width,dash:wN.dash},_N("marker.line")),gradient:Oo.gradient},_N("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:oae(),selected:xs.selected,unselected:xs.unselected,hoverinfo:Jc({},lae.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:aae(),hovertemplatefallback:bN()},"calc","nested")});var TN=te((S1e,AN)=>{"use strict";var ey=gr(),K4=ri(),fae=Sb(),cae=Cb(),vae=Lb(),hae=qb(),dae=jh(),pae=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");AN.exports=function(r,t,n,a){function i(d,m){return ey.coerce(r,t,dae,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||ey.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&ey.warn(pae),f==="geojson-id"&&i("featureidkey"),l=o.length}else{var v=i("lon")||[],h=i("lat")||[];l=Math.min(v.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),K4.hasMarkers(t)&&fae(r,t,n,a,i,{gradient:!0}),K4.hasLines(t)&&(cae(r,t,n,a,i),i("connectgaps")),K4.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),vae(r,t,a,i)),i("fill"),t.fill!=="none"&&hae(r,t,n,i),ey.coerceSelectionMarkerOpacity(t,i)}});var CN=te((C1e,SN)=>{"use strict";var kN=Dn();SN.exports=function(r,t,n){var a={},i=n[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return a.lonLabel=kN.tickText(o,o.c2l(l[0]),!0).text,a.latLabel=kN.tickText(o,o.c2l(l[1]),!0).text,a}});var PN=te((L1e,EN)=>{"use strict";var Q4=Bt(),LN=Rn().BADNUM,gae=Pb(),mae=Lh(),yae=vm(),bae=gr().isArrayOrTypedArray,qN=gr()._;function DN(e){return e&&typeof e=="string"}EN.exports=function(r,t){var n=bae(t.locations),a=n?t.locations.length:t._length,i=new Array(a),o;t.geojson?o=function(h){return DN(h)||Q4(h)}:o=DN;for(var l=0;l{"use strict";Va.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Va.axesNames=["lonaxis","lataxis"];Va.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Va.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Va.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Va.clipPad=.001;Va.precision=.1;Va.landColor="#F0DC82";Va.waterColor="#3399FF";Va.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Va.sphereSVG={type:"Sphere"};Va.fillLayers={ocean:1,land:1,lakes:1};Va.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Va.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Va.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Va.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var e_=te((ry,RN)=>{(function(e,r){typeof ry=="object"&&typeof RN!="undefined"?r(ry):(e=e||self,r(e.topojson=e.topojson||{}))})(ry,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var b,A,k=x.scale[0],M=x.scale[1],D=x.translate[0],R=x.translate[1];return function(N,I){I||(b=A=0);var W=2,O=N.length,Z=new Array(O);for(Z[0]=(b+=N[0])*k+D,Z[1]=(A+=N[1])*M+R;WD&&(D=W[0]),W[1]R&&(R=W[1])}function I(W){switch(W.type){case"GeometryCollection":W.geometries.forEach(I);break;case"Point":N(W.coordinates);break;case"MultiPoint":W.coordinates.forEach(N);break}}x.arcs.forEach(function(W){for(var O=-1,Z=W.length,H;++OD&&(D=H[0]),H[1]R&&(R=H[1])});for(A in x.objects)I(x.objects[A]);return[k,M,D,R]}function a(x,b){for(var A,k=x.length,M=k-b;M<--k;)A=x[M],x[M++]=x[k],x[k]=A}function i(x,b){return typeof b=="string"&&(b=x.objects[b]),b.type==="GeometryCollection"?{type:"FeatureCollection",features:b.geometries.map(function(A){return o(x,A)})}:o(x,b)}function o(x,b){var A=b.id,k=b.bbox,M=b.properties==null?{}:b.properties,D=l(x,b);return A==null&&k==null?{type:"Feature",properties:M,geometry:D}:k==null?{type:"Feature",id:A,properties:M,geometry:D}:{type:"Feature",id:A,bbox:k,properties:M,geometry:D}}function l(x,b){var A=t(x.transform),k=x.arcs;function M(O,Z){Z.length&&Z.pop();for(var H=k[O<0?~O:O],ee=0,ne=H.length;ee1)k=v(x,b,A);else for(M=0,k=new Array(D=x.arcs.length);M1)for(var Z=1,H=N(W[0]),ee,ne;ZH&&(ne=W[0],W[0]=W[Z],W[Z]=ne,H=ee);return W}).filter(function(I){return I.length>0})}}function p(x,b){for(var A=0,k=x.length;A>>1;x[M]=2))throw new Error("n must be \u22652");I=x.bbox||n(x);var A=I[0],k=I[1],M=I[2],D=I[3],R;b={scale:[M-A?(M-A)/(R-1):1,D-k?(D-k)/(R-1):1],translate:[A,k]}}else I=x.bbox;var N=_(b),I,W,O=x.objects,Z={};function H(re){return N(re)}function ee(re){var K;switch(re.type){case"GeometryCollection":K={type:"GeometryCollection",geometries:re.geometries.map(ee)};break;case"Point":K={type:"Point",coordinates:H(re.coordinates)};break;case"MultiPoint":K={type:"MultiPoint",coordinates:re.coordinates.map(H)};break;default:return re}return re.id!=null&&(K.id=re.id),re.bbox!=null&&(K.bbox=re.bbox),re.properties!=null&&(K.properties=re.properties),K}function ne(re){var K=0,ue=1,le=re.length,ke,ze=new Array(le);for(ze[0]=N(re[0],0);++K{"use strict";var r_=zN.exports={},_ae=Jh().locationmodeToLayer,xae=e_().feature;r_.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};r_.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};r_.getTopojsonFeatures=function(e,r){var t=_ae[e.locationmode],n=r.objects[t];return xae(r,n).features}});var NN=te($h=>{"use strict";var wae=Rn().BADNUM;$h.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,n=[],a=[],i=0;i0&&(n.push(a),a=[])}return a.length>0&&n.push(a),n};$h.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};$h.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t{FN.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var iy=te(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});var Bi=63710088e-1,n_={centimeters:Bi*100,centimetres:Bi*100,degrees:360/(2*Math.PI),feet:Bi*3.28084,inches:Bi*39.37,kilometers:Bi/1e3,kilometres:Bi/1e3,meters:Bi,metres:Bi,miles:Bi/1609.344,millimeters:Bi*1e3,millimetres:Bi*1e3,nauticalmiles:Bi/1852,radians:1,yards:Bi*1.0936},t_={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function xf(e,r,t={}){let n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=r||{},n.geometry=e,n}function Mae(e,r,t={}){switch(e){case"Point":return a_(r).geometry;case"LineString":return o_(r).geometry;case"Polygon":return i_(r).geometry;case"MultiPoint":return BN(r).geometry;case"MultiLineString":return HN(r).geometry;case"MultiPolygon":return ON(r).geometry;default:throw new Error(e+" is invalid")}}function a_(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!ny(e[0])||!ny(e[1]))throw new Error("coordinates must contain numbers");return xf({type:"Point",coordinates:e},r,t)}function Aae(e,r,t={}){return ay(e.map(n=>a_(n,r)),t)}function i_(e,r,t={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;ii_(n,r)),t)}function o_(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return xf({type:"LineString",coordinates:e},r,t)}function kae(e,r,t={}){return ay(e.map(n=>o_(n,r)),t)}function ay(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function HN(e,r,t={}){return xf({type:"MultiLineString",coordinates:e},r,t)}function BN(e,r,t={}){return xf({type:"MultiPoint",coordinates:e},r,t)}function ON(e,r,t={}){return xf({type:"MultiPolygon",coordinates:e},r,t)}function Sae(e,r,t={}){return xf({type:"GeometryCollection",geometries:e},r,t)}function Cae(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function UN(e,r="kilometers"){let t=n_[r];if(!t)throw new Error(r+" units is invalid");return e*t}function l_(e,r="kilometers"){let t=n_[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Lae(e,r){return YN(l_(e,r))}function qae(e){let r=e%360;return r<0&&(r+=360),r}function Dae(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function YN(e){return e%(2*Math.PI)*180/Math.PI}function Eae(e){return e%360*Math.PI/180}function Pae(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return UN(l_(e,r),t)}function Rae(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=t_[r];if(!n)throw new Error("invalid original units");let a=t_[t];if(!a)throw new Error("invalid final units");return e/n*a}function ny(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function zae(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Nae(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!ny(r))throw new Error("bbox must only contain numbers")})}function Fae(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}dn.areaFactors=t_;dn.azimuthToBearing=Dae;dn.bearingToAzimuth=qae;dn.convertArea=Rae;dn.convertLength=Pae;dn.degreesToRadians=Eae;dn.earthRadius=Bi;dn.factors=n_;dn.feature=xf;dn.featureCollection=ay;dn.geometry=Mae;dn.geometryCollection=Sae;dn.isNumber=ny;dn.isObject=zae;dn.lengthToDegrees=Lae;dn.lengthToRadians=l_;dn.lineString=o_;dn.lineStrings=kae;dn.multiLineString=HN;dn.multiPoint=BN;dn.multiPolygon=ON;dn.point=a_;dn.points=Aae;dn.polygon=i_;dn.polygons=Tae;dn.radiansToDegrees=YN;dn.radiansToLength=UN;dn.round=Cae;dn.validateBBox=Nae;dn.validateId=Fae});var ly=te(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var si=iy();function Kh(e,r,t){if(e!==null)for(var n,a,i,o,l,s,u,f=0,v=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,_=0;_s||m>u||p>f){l=v,s=n,u=m,f=p,i=0;return}var y=si.lineString.call(void 0,[l,v],t.properties);if(r(y,n,a,p,i)===!1)return!1;i++,l=v})===!1)return!1}}})}function Gae(e,r,t){var n=t,a=!1;return WN(e,function(i,o,l,s,u){a===!1&&t===void 0?n=i:n=r(n,i,o,l,s,u),a=!0}),n}function ZN(e,r){if(!e)throw new Error("geojson is required");oy(e,function(t,n,a){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,n,a,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var XN=iy(),Xae=ly();function $N(e){return Xae.geomReduce.call(void 0,e,(r,t)=>r+jae(t),0)}function jae(e){let r=0,t;switch(e.type){case"Polygon":return jN(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(JN(e[0]));for(let t=1;t=r?(n+2)%r:n+2],l=a[0]*u_,s=i[1]*u_,u=o[0]*u_;t+=(u-l)*Math.sin(s),n++}return t*Jae}var $ae=$N;sy.area=$N;sy.default=$ae});var eF=te(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var Kae=iy(),Qae=ly();function QN(e,r={}){let t=0,n=0,a=0;return Qae.coordEach.call(void 0,e,function(i){t+=i[0],n+=i[1],a++},!0),Kae.point.call(void 0,[t/a,n/a],r.properties)}var eie=QN;uy.centroid=QN;uy.default=eie});var tF=te(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var rie=ly();function rF(e,r={}){if(e.bbox!=null&&r.recompute!==!0)return e.bbox;let t=[1/0,1/0,-1/0,-1/0];return rie.coordEach.call(void 0,e,n=>{t[0]>n[0]&&(t[0]=n[0]),t[1]>n[1]&&(t[1]=n[1]),t[2]{"use strict";var nF={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},nie=new Set(Object.values(nF));aF.exports={usaLocationAbbreviations:nie,usaLocationList:nF}});var Ov=te((B1e,uF)=>{"use strict";var aie=Tt(),lF=IN(),{area:iie}=KN(),{centroid:oie}=eF(),{bbox:lie}=tF(),sie=Od(),$c=Bu(),uie=$s(),fie=u1(),cy=Eg(),{usaLocationAbbreviations:cie,usaLocationList:vie}=iF(),oF=Object.keys(lF),hie={"ISO-3":sie,"USA-states":pie,"country names":die};function die(e){for(var r=0;r0&&e[r+1][0]<0)return r;return null}function mie(e){var r=e.geometry,t=r.coordinates,n=e.id,a=[],i,o,l,s;switch(n==="RUS"||n==="FJI"?i=function(u){var f;if(f_(u)===null)f=u;else for(f=new Array(u.length),s=0;sf?v[h++]=[u[s][0]+Qh,u[s][1]]:s===f?(v[h++]=u[s],v[h++]=[u[s][0],-90]):v[h++]=u[s];var d=cy.tester(v);d.pts.pop(),a.push(d)}:i=function(u){a.push(cy.tester(u))},r.type){case"MultiPolygon":for(o=0;o0?m.properties.ct=bie(m):m.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=m,a.push(m)}else $c.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[v]}switch(t.type){case"FeatureCollection":var s=t.features;for(i=0;ia&&(a=l,t=o)}else t=r;return oie(t).geometry.coordinates}function _ie(e){var r=window.PlotlyGeoAssets||{},t=[];function n(s){return new Promise(function(u,f){aie.json(s,function(v,h){if(v){delete r[s];var d=v.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(d))}return r[s]=h,u(h)})})}function a(s){return new Promise(function(u,f){var v=0,h=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(h),u(r[s]);if(v>100)return clearInterval(h),f("Unexpected error while fetching from "+s);v++},50)})}for(var i=0;il-s);if(r.length<2)return null;let t=r.length,n=r[t-1]-r[0];if(n>=360)return null;let a=-1/0,i=-1;for(let l=0;la&&(a=s,i=l)}let o=360-n;return a<=o?null:[r[i+1],r[i]+Qh]}function Mie([e,r]){return[e,e>0&&r<0?r+Qh:r]}uF.exports={locationToFeature:gie,feature2polygons:mie,getTraceGeojson:sF,extractTraceFeature:yie,fetchTraceGeoData:_ie,computeBbox:xie,doesCrossAntiMeridian:f_,getFitboundsLonRange:wie,unwrapLonRange:Mie,ANTIMERIDIAN_LON_SHIFT:Qh}});var c_=te((O1e,vF)=>{"use strict";var Aie=Tt(),Tie=cn(),fF=Pt(),cF=Rh(),kie=cF.stylePoints,Sie=cF.styleText;vF.exports=function(r,t){t&&Cie(r,t)};function Cie(e,r){var t=r[0].trace,n=r[0].node3;n.style("opacity",r[0].trace.opacity),kie(n,t,e),Sie(n,t,e),n.selectAll("path.js-line").style("fill","none").each(function(a){var i=Aie.select(this),o=a.trace,l=o.line||{};i.call(fF.stroke,l.color).call(Tie.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(fF.fill,o.fillcolor)})}});var p_=te((U1e,pF)=>{"use strict";var hF=Tt(),hy=gr(),Lie=ty().getTopojsonFeatures,v_=NN(),vy=Ov(),dF=tf().findExtremes,d_=Rn().BADNUM,qie=hm().calcMarkerSize,h_=ri(),Die=c_();function Eie(e,r,t){var n=r.layers.frontplot.select(".scatterlayer"),a=hy.makeTraceGroups(n,t,"trace scattergeo");function i(o,l){o.lonlat[0]===d_&&hF.select(l).remove()}a.selectAll("*").remove(),a.each(function(o){var l=hF.select(this),s=o[0].trace;if(h_.hasLines(s)||s.fill!=="none"){var u=v_.calcTraceToLineCoords(o),f=s.fill!=="none"?v_.makePolygon(u):v_.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}h_.hasMarkers(s)&&l.selectAll("path.point").data(hy.identity).enter().append("path").classed("point",!0).each(function(v){i(v,this)}),h_.hasText(s)&&l.selectAll("g").data(hy.identity).enter().append("g").append("text").each(function(v){i(v,this)}),Die(e,o)})}function Pie(e,r){var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t._length,o,l;if(hy.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?vy.extractTraceFeature(e):Lie(t,a.topojson);for(o=0;o{"use strict";var Rie=Ml(),zie=Rn().BADNUM,Nie=jb(),Fie=gr().fillText,Iie=jh();gF.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function v(C){var x=C.lonlat;if(x[0]===zie||u(x))return 1/0;var b=f(x),A=f([t,n]),k=Math.abs(b[0]-A[0]),M=Math.abs(b[1]-A[1]),D=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(k*k+M*M)-D,1-3/D)}if(Rie.getClosest(a,v,r),r.index!==!1){var h=a[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:s};var _=i._module.formatLabels(h,i,y);return r.lonLabel=_.lonLabel,r.latLabel=_.latLabel,r.color=Nie(i,h),r.extraText=Hie(i,h,r,a[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function Hie(e,r,t,n){if(e.hovertemplate)return;var a=r.hi||e.hoverinfo,i=a==="all"?Iie.hoverinfo.flags:a.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function v(h){return h+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+v(t.latLabel)+", "+v(t.lonLabel)+")"):l?f.push(n.lon+v(t.lonLabel)):s&&f.push(n.lat+v(t.latLabel)),u&&Fie(r,e,f),f.join("
")}});var bF=te((G1e,yF)=>{"use strict";yF.exports=function(r,t,n,a,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var wF=te((V1e,xF)=>{"use strict";var _F=ri(),Bie=Rn().BADNUM;xF.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h,d=!_F.hasMarkers(l)&&!_F.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof dy=="object"&&typeof MF!="undefined"?dy:e.d3=e.d3||{})})(dy,(function(e){"use strict";function r(ce,ge){return cege?1:ce>=ge?0:NaN}function t(ce){return ce.length===1&&(ce=n(ce)),{left:function(ge,Pe,de,G){for(de==null&&(de=0),G==null&&(G=ge.length);de>>1;ce(ge[Q],Pe)<0?de=Q+1:G=Q}return de},right:function(ge,Pe,de,G){for(de==null&&(de=0),G==null&&(G=ge.length);de>>1;ce(ge[Q],Pe)>0?G=Q:de=Q+1}return de}}}function n(ce){return function(ge,Pe){return r(ce(ge),Pe)}}var a=t(r),i=a.right,o=a.left;function l(ce,ge){ge==null&&(ge=s);for(var Pe=0,de=ce.length-1,G=ce[0],Q=new Array(de<0?0:de);Pece?1:ge>=ce?0:NaN}function v(ce){return ce===null?NaN:+ce}function h(ce,ge){var Pe=ce.length,de=0,G=-1,Q=0,$,be,qe=0;if(ge==null)for(;++G1)return qe/(de-1)}function d(ce,ge){var Pe=h(ce,ge);return Pe&&Math.sqrt(Pe)}function m(ce,ge){var Pe=ce.length,de=-1,G,Q,$;if(ge==null){for(;++de=G)for(Q=$=G;++deG&&(Q=G),$=G)for(Q=$=G;++deG&&(Q=G),$0)return[ce];if((de=ge0)for(ce=Math.ceil(ce/be),ge=Math.floor(ge/be),$=new Array(Q=Math.ceil(ge-ce+1));++G=0?(Q>=A?10:Q>=k?5:Q>=M?2:1)*Math.pow(10,G):-Math.pow(10,-G)/(Q>=A?10:Q>=k?5:Q>=M?2:1)}function N(ce,ge,Pe){var de=Math.abs(ge-ce)/Math.max(0,Pe),G=Math.pow(10,Math.floor(Math.log(de)/Math.LN10)),Q=de/G;return Q>=A?G*=10:Q>=k?G*=5:Q>=M&&(G*=2),geQe;)Be.pop(),--cr;var or=new Array(cr+1),hr;for(Q=0;Q<=cr;++Q)hr=or[Q]=[],hr.x0=Q>0?Be[Q-1]:ar,hr.x1=Q=1)return+Pe(ce[de-1],de-1,ce);var de,G=(de-1)*ge,Q=Math.floor(G),$=+Pe(ce[Q],Q,ce),be=+Pe(ce[Q+1],Q+1,ce);return $+(be-$)*(G-Q)}}function Z(ce,ge,Pe){return ce=_.call(ce,v).sort(r),Math.ceil((Pe-ge)/(2*(O(ce,.75)-O(ce,.25))*Math.pow(ce.length,-1/3)))}function H(ce,ge,Pe){return Math.ceil((Pe-ge)/(3.5*d(ce)*Math.pow(ce.length,-1/3)))}function ee(ce,ge){var Pe=ce.length,de=-1,G,Q;if(ge==null){for(;++de=G)for(Q=G;++deQ&&(Q=G)}else for(;++de=G)for(Q=G;++deQ&&(Q=G);return Q}function ne(ce,ge){var Pe=ce.length,de=Pe,G=-1,Q,$=0;if(ge==null)for(;++G=0;)for($=ce[ge],Pe=$.length;--Pe>=0;)Q[--G]=$[Pe];return Q}function ue(ce,ge){var Pe=ce.length,de=-1,G,Q;if(ge==null){for(;++de=G)for(Q=G;++deG&&(Q=G)}else for(;++de=G)for(Q=G;++deG&&(Q=G);return Q}function le(ce,ge){for(var Pe=ge.length,de=new Array(Pe);Pe--;)de[Pe]=ce[ge[Pe]];return de}function ke(ce,ge){if(Pe=ce.length){var Pe,de=0,G=0,Q,$=ce[G];for(ge==null&&(ge=r);++de{(function(e,r){typeof py=="object"&&typeof AF!="undefined"?r(py,g_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(py,(function(e,r){"use strict";function t(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(B){i(a,B,this.t),i(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new n;function i(B,J,ve){var oe=B.s=J+ve,Me=oe-J,Oe=oe-Me;B.t=J-Oe+(ve-Me)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,v=s*2,h=180/s,d=s/180,m=Math.abs,p=Math.atan,y=Math.atan2,_=Math.cos,C=Math.ceil,x=Math.exp,b=Math.log,A=Math.pow,k=Math.sin,M=Math.sign||function(B){return B>0?1:B<0?-1:0},D=Math.sqrt,R=Math.tan;function N(B){return B>1?0:B<-1?s:Math.acos(B)}function I(B){return B>1?u:B<-1?-u:Math.asin(B)}function W(B){return(B=k(B/2))*B}function O(){}function Z(B,J){B&&ee.hasOwnProperty(B.type)&&ee[B.type](B,J)}var H={Feature:function(B,J){Z(B.geometry,J)},FeatureCollection:function(B,J){for(var ve=B.features,oe=-1,Me=ve.length;++oe=0?1:-1,Me=oe*ve,Oe=_(J),je=k(J),ir=Ce*je,sr=Xe*Oe+ir*_(Me),_r=ir*oe*k(Me);ue.add(y(_r,sr)),Fe=B,Xe=Oe,Ce=je}function G(B){return le.reset(),K(B,er),le*2}function Q(B){return[y(B[1],B[0]),I(B[2])]}function $(B){var J=B[0],ve=B[1],oe=_(ve);return[oe*_(J),oe*k(J),k(ve)]}function be(B,J){return B[0]*J[0]+B[1]*J[1]+B[2]*J[2]}function qe(B,J){return[B[1]*J[2]-B[2]*J[1],B[2]*J[0]-B[0]*J[2],B[0]*J[1]-B[1]*J[0]]}function He(B,J){B[0]+=J[0],B[1]+=J[1],B[2]+=J[2]}function ar(B,J){return[B[0]*J,B[1]*J,B[2]*J]}function Qe(B){var J=D(B[0]*B[0]+B[1]*B[1]+B[2]*B[2]);B[0]/=J,B[1]/=J,B[2]/=J}var Be,cr,or,hr,Je,pr,yr,Te,Ue=t(),kr,Ur,tr={point:Ye,lineStart:dr,lineEnd:Ar,polygonStart:function(){tr.point=mr,tr.lineStart=br,tr.lineEnd=Ir,Ue.reset(),er.polygonStart()},polygonEnd:function(){er.polygonEnd(),tr.point=Ye,tr.lineStart=dr,tr.lineEnd=Ar,ue<0?(Be=-(or=180),cr=-(hr=90)):Ue>o?hr=90:Ue<-o&&(cr=-90),Ur[0]=Be,Ur[1]=or},sphere:function(){Be=-(or=180),cr=-(hr=90)}};function Ye(B,J){kr.push(Ur=[Be=B,or=B]),Jhr&&(hr=J)}function Ze(B,J){var ve=$([B*d,J*d]);if(Te){var oe=qe(Te,ve),Me=[oe[1],-oe[0],0],Oe=qe(Me,oe);Qe(Oe),Oe=Q(Oe);var je=B-Je,ir=je>0?1:-1,sr=Oe[0]*h*ir,_r,$e=m(je)>180;$e^(ir*Jehr&&(hr=_r)):(sr=(sr+360)%360-180,$e^(ir*Jehr&&(hr=J))),$e?BCr(Be,or)&&(or=B):Cr(B,or)>Cr(Be,or)&&(Be=B):or>=Be?(Bor&&(or=B)):B>Je?Cr(Be,B)>Cr(Be,or)&&(or=B):Cr(B,or)>Cr(Be,or)&&(Be=B)}else kr.push(Ur=[Be=B,or=B]);Jhr&&(hr=J),Te=ve,Je=B}function dr(){tr.point=Ze}function Ar(){Ur[0]=Be,Ur[1]=or,tr.point=Ye,Te=null}function mr(B,J){if(Te){var ve=B-Je;Ue.add(m(ve)>180?ve+(ve>0?360:-360):ve)}else pr=B,yr=J;er.point(B,J),Ze(B,J)}function br(){er.lineStart()}function Ir(){mr(pr,yr),er.lineEnd(),m(Ue)>o&&(Be=-(or=180)),Ur[0]=Be,Ur[1]=or,Te=null}function Cr(B,J){return(J-=B)<0?J+360:J}function Er(B,J){return B[0]-J[0]}function lr(B,J){return B[0]<=B[1]?B[0]<=J&&J<=B[1]:JCr(oe[0],oe[1])&&(oe[1]=Me[1]),Cr(Me[0],oe[1])>Cr(oe[0],oe[1])&&(oe[0]=Me[0])):Oe.push(oe=Me);for(je=-1/0,ve=Oe.length-1,J=0,oe=Oe[ve];J<=ve;oe=Me,++J)Me=Oe[J],(ir=Cr(oe[1],Me[0]))>je&&(je=ir,Be=Me[0],or=oe[1])}return kr=Ur=null,Be===1/0||cr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Be,cr],[or,hr]]}var Ae,Ke,nr,Sr,Yr,zr,st,bt,St,$t,vn,hn,qn,Ot,en,Kt,rn={sphere:O,point:la,lineStart:Un,lineEnd:Ct,polygonStart:function(){rn.lineStart=tn,rn.lineEnd=Nn},polygonEnd:function(){rn.lineStart=Un,rn.lineEnd=Ct}};function la(B,J){B*=d,J*=d;var ve=_(J);xn(ve*_(B),ve*k(B),k(J))}function xn(B,J,ve){++Ae,nr+=(B-nr)/Ae,Sr+=(J-Sr)/Ae,Yr+=(ve-Yr)/Ae}function Un(){rn.point=Gr}function Gr(B,J){B*=d,J*=d;var ve=_(J);Ot=ve*_(B),en=ve*k(B),Kt=k(J),rn.point=on,xn(Ot,en,Kt)}function on(B,J){B*=d,J*=d;var ve=_(J),oe=ve*_(B),Me=ve*k(B),Oe=k(J),je=y(D((je=en*Oe-Kt*Me)*je+(je=Kt*oe-Ot*Oe)*je+(je=Ot*Me-en*oe)*je),Ot*oe+en*Me+Kt*Oe);Ke+=je,zr+=je*(Ot+(Ot=oe)),st+=je*(en+(en=Me)),bt+=je*(Kt+(Kt=Oe)),xn(Ot,en,Kt)}function Ct(){rn.point=la}function tn(){rn.point=Zn}function Nn(){Ut(hn,qn),rn.point=la}function Zn(B,J){hn=B,qn=J,B*=d,J*=d,rn.point=Ut;var ve=_(J);Ot=ve*_(B),en=ve*k(B),Kt=k(J),xn(Ot,en,Kt)}function Ut(B,J){B*=d,J*=d;var ve=_(J),oe=ve*_(B),Me=ve*k(B),Oe=k(J),je=en*Oe-Kt*Me,ir=Kt*oe-Ot*Oe,sr=Ot*Me-en*oe,_r=D(je*je+ir*ir+sr*sr),$e=I(_r),vr=_r&&-$e/_r;St+=vr*je,$t+=vr*ir,vn+=vr*sr,Ke+=$e,zr+=$e*(Ot+(Ot=oe)),st+=$e*(en+(en=Me)),bt+=$e*(Kt+(Kt=Oe)),xn(Ot,en,Kt)}function ga(B){Ae=Ke=nr=Sr=Yr=zr=st=bt=St=$t=vn=0,K(B,rn);var J=St,ve=$t,oe=vn,Me=J*J+ve*ve+oe*oe;return Mes?B+Math.round(-B/v)*v:B,J]}Qt.invert=Qt;function Tn(B,J,ve){return(B%=v)?J||ve?wn(oo(B),yi(J,ve)):oo(B):J||ve?yi(J,ve):Qt}function Mn(B){return function(J,ve){return J+=B,[J>s?J-v:J<-s?J+v:J,ve]}}function oo(B){var J=Mn(B);return J.invert=Mn(-B),J}function yi(B,J){var ve=_(B),oe=k(B),Me=_(J),Oe=k(J);function je(ir,sr){var _r=_(sr),$e=_(ir)*_r,vr=k(ir)*_r,ur=k(sr),Mr=ur*ve+$e*oe;return[y(vr*Me-Mr*Oe,$e*ve-ur*oe),I(Mr*Me+vr*Oe)]}return je.invert=function(ir,sr){var _r=_(sr),$e=_(ir)*_r,vr=k(ir)*_r,ur=k(sr),Mr=ur*Me-vr*Oe;return[y(vr*Me+ur*Oe,$e*ve+Mr*oe),I(Mr*ve-$e*oe)]},je}function As(B){B=Tn(B[0]*d,B[1]*d,B.length>2?B[2]*d:0);function J(ve){return ve=B(ve[0]*d,ve[1]*d),ve[0]*=h,ve[1]*=h,ve}return J.invert=function(ve){return ve=B.invert(ve[0]*d,ve[1]*d),ve[0]*=h,ve[1]*=h,ve},J}function Nl(B,J,ve,oe,Me,Oe){if(ve){var je=_(J),ir=k(J),sr=oe*ve;Me==null?(Me=J+oe*v,Oe=J-sr/2):(Me=Yo(je,Me),Oe=Yo(je,Oe),(oe>0?MeOe)&&(Me+=oe*v));for(var _r,$e=Me;oe>0?$e>Oe:$e1&&B.push(B.pop().concat(B.shift()))},result:function(){var ve=B;return B=[],J=null,ve}}}function Yn(B,J){return m(B[0]-J[0])=0;--ir)Me.point((vr=$e[ir])[0],vr[1]);else oe(ur.x,ur.p.x,-1,Me);ur=ur.p}ur=ur.o,$e=ur.z,Mr=!Mr}while(!ur.v);Me.lineEnd()}}}function _i(B){if(J=B.length){for(var J,ve=0,oe=B[0],Me;++ve=0?1:-1,Wt=nn*Yt,pn=Wt>s,qt=rt*it;if(Qr.add(y(qt*nn*k(Wt),Jr*pt+qt*_(Wt))),je+=pn?Yt+nn*v:Yt,pn^Mr>=ve^Dr>=ve){var sa=qe($(ur),$(nt));Qe(sa);var Fn=qe(Oe,sa);Qe(Fn);var gn=(pn^Yt>=0?-1:1)*I(Fn[2]);(oe>gn||oe===gn&&(sa[0]||sa[1]))&&(ir+=pn^Yt>=0?1:-1)}}return(je<-o||je0){for(sr||(Me.polygonStart(),sr=!0),Me.lineStart(),pt=0;pt1&&Hr&2&&it.push(it.pop().concat(it.shift())),$e.push(it.filter(Xn))}}return ur}}function Xn(B){return B.length>1}function ln(B,J){return((B=B.x)[0]<0?B[1]-u-o:u-B[1])-((J=J.x)[0]<0?J[1]-u-o:u-J[1])}var Pn=Br(function(){return!0},At,Wo,[-s,-u]);function At(B){var J=NaN,ve=NaN,oe=NaN,Me;return{lineStart:function(){B.lineStart(),Me=1},point:function(Oe,je){var ir=Oe>0?s:-s,sr=m(Oe-J);m(sr-s)0?u:-u),B.point(oe,ve),B.lineEnd(),B.lineStart(),B.point(ir,ve),B.point(Oe,ve),Me=0):oe!==ir&&sr>=s&&(m(J-oe)o?p((k(J)*(Oe=_(oe))*k(ve)-k(oe)*(Me=_(J))*k(B))/(Me*Oe*je)):(J+oe)/2}function Wo(B,J,ve,oe){var Me;if(B==null)Me=ve*u,oe.point(-s,Me),oe.point(0,Me),oe.point(s,Me),oe.point(s,0),oe.point(s,-Me),oe.point(0,-Me),oe.point(-s,-Me),oe.point(-s,0),oe.point(-s,Me);else if(m(B[0]-J[0])>o){var Oe=B[0]0,Me=m(J)>o;function Oe($e,vr,ur,Mr){Nl(Mr,B,ve,ur,$e,vr)}function je($e,vr){return _($e)*_(vr)>J}function ir($e){var vr,ur,Mr,qr,rt;return{lineStart:function(){qr=Mr=!1,rt=1},point:function(Jr,tt){var nt=[Jr,tt],Dr,Hr=je(Jr,tt),it=oe?Hr?0:_r(Jr,tt):Hr?_r(Jr+(Jr<0?s:-s),tt):0;if(!vr&&(qr=Mr=Hr)&&$e.lineStart(),Hr!==Mr&&(Dr=sr(vr,nt),(!Dr||Yn(vr,Dr)||Yn(nt,Dr))&&(nt[2]=1)),Hr!==Mr)rt=0,Hr?($e.lineStart(),Dr=sr(nt,vr),$e.point(Dr[0],Dr[1])):(Dr=sr(vr,nt),$e.point(Dr[0],Dr[1],2),$e.lineEnd()),vr=Dr;else if(Me&&vr&&oe^Hr){var pt;!(it&ur)&&(pt=sr(nt,vr,!0))&&(rt=0,oe?($e.lineStart(),$e.point(pt[0][0],pt[0][1]),$e.point(pt[1][0],pt[1][1]),$e.lineEnd()):($e.point(pt[1][0],pt[1][1]),$e.lineEnd(),$e.lineStart(),$e.point(pt[0][0],pt[0][1],3)))}Hr&&(!vr||!Yn(vr,nt))&&$e.point(nt[0],nt[1]),vr=nt,Mr=Hr,ur=it},lineEnd:function(){Mr&&$e.lineEnd(),vr=null},clean:function(){return rt|(qr&&Mr)<<1}}}function sr($e,vr,ur){var Mr=$($e),qr=$(vr),rt=[1,0,0],Jr=qe(Mr,qr),tt=be(Jr,Jr),nt=Jr[0],Dr=tt-nt*nt;if(!Dr)return!ur&&$e;var Hr=J*tt/Dr,it=-J*nt/Dr,pt=qe(rt,Jr),Yt=ar(rt,Hr),nn=ar(Jr,it);He(Yt,nn);var Wt=pt,pn=be(Yt,Wt),qt=be(Wt,Wt),sa=pn*pn-qt*(be(Yt,Yt)-1);if(!(sa<0)){var Fn=D(sa),gn=ar(Wt,(-pn-Fn)/qt);if(He(gn,Yt),gn=Q(gn),!ur)return gn;var Vr=$e[0],Gt=vr[0],Gn=$e[1],ya=vr[1],Ja;Gt0^gn[1]<(m(gn[0]-Vr)s^(Vr<=gn[0]&&gn[0]<=Gt)){var ci=ar(Wt,(-pn+Fn)/qt);return He(ci,Yt),[gn,Q(ci)]}}}function _r($e,vr){var ur=oe?B:s-B,Mr=0;return $e<-ur?Mr|=1:$e>ur&&(Mr|=2),vr<-ur?Mr|=4:vr>ur&&(Mr|=8),Mr}return Br(je,ir,Oe,oe?[0,-B]:[-s,B-s])}function yu(B,J,ve,oe,Me,Oe){var je=B[0],ir=B[1],sr=J[0],_r=J[1],$e=0,vr=1,ur=sr-je,Mr=_r-ir,qr;if(qr=ve-je,!(!ur&&qr>0)){if(qr/=ur,ur<0){if(qr<$e)return;qr0){if(qr>vr)return;qr>$e&&($e=qr)}if(qr=Me-je,!(!ur&&qr<0)){if(qr/=ur,ur<0){if(qr>vr)return;qr>$e&&($e=qr)}else if(ur>0){if(qr<$e)return;qr0)){if(qr/=Mr,Mr<0){if(qr<$e)return;qr0){if(qr>vr)return;qr>$e&&($e=qr)}if(qr=Oe-ir,!(!Mr&&qr<0)){if(qr/=Mr,Mr<0){if(qr>vr)return;qr>$e&&($e=qr)}else if(Mr>0){if(qr<$e)return;qr0&&(B[0]=je+$e*ur,B[1]=ir+$e*Mr),vr<1&&(J[0]=je+vr*ur,J[1]=ir+vr*Mr),!0}}}}}var lo=1e9,Zo=-lo;function Xo(B,J,ve,oe){function Me(_r,$e){return B<=_r&&_r<=ve&&J<=$e&&$e<=oe}function Oe(_r,$e,vr,ur){var Mr=0,qr=0;if(_r==null||(Mr=je(_r,vr))!==(qr=je($e,vr))||sr(_r,$e)<0^vr>0)do ur.point(Mr===0||Mr===3?B:ve,Mr>1?oe:J);while((Mr=(Mr+vr+4)%4)!==qr);else ur.point($e[0],$e[1])}function je(_r,$e){return m(_r[0]-B)0?0:3:m(_r[0]-ve)0?2:1:m(_r[1]-J)0?1:0:$e>0?3:2}function ir(_r,$e){return sr(_r.x,$e.x)}function sr(_r,$e){var vr=je(_r,1),ur=je($e,1);return vr!==ur?vr-ur:vr===0?$e[1]-_r[1]:vr===1?_r[0]-$e[0]:vr===2?_r[1]-$e[1]:$e[0]-_r[0]}return function(_r){var $e=_r,vr=Go(),ur,Mr,qr,rt,Jr,tt,nt,Dr,Hr,it,pt,Yt={point:nn,lineStart:sa,lineEnd:Fn,polygonStart:pn,polygonEnd:qt};function nn(Vr,Gt){Me(Vr,Gt)&&$e.point(Vr,Gt)}function Wt(){for(var Vr=0,Gt=0,Gn=Mr.length;Gtoe&&(ll-ol)*(oe-ci)>($l-ci)*(B-ol)&&++Vr:$l<=oe&&(ll-ol)*(oe-ci)<($l-ci)*(B-ol)&&--Vr;return Vr}function pn(){$e=vr,ur=[],Mr=[],pt=!0}function qt(){var Vr=Wt(),Gt=pt&&Vr,Gn=(ur=r.merge(ur)).length;(Gt||Gn)&&(_r.polygonStart(),Gt&&(_r.lineStart(),Oe(null,null,1,_r),_r.lineEnd()),Gn&&Vo(ur,ir,Vr,Oe,_r),_r.polygonEnd()),$e=_r,ur=Mr=qr=null}function sa(){Yt.point=gn,Mr&&Mr.push(qr=[]),it=!0,Hr=!1,nt=Dr=NaN}function Fn(){ur&&(gn(rt,Jr),tt&&Hr&&vr.rejoin(),ur.push(vr.result())),Yt.point=nn,Hr&&$e.lineEnd()}function gn(Vr,Gt){var Gn=Me(Vr,Gt);if(Mr&&qr.push([Vr,Gt]),it)rt=Vr,Jr=Gt,tt=Gn,it=!1,Gn&&($e.lineStart(),$e.point(Vr,Gt));else if(Gn&&Hr)$e.point(Vr,Gt);else{var ya=[nt=Math.max(Zo,Math.min(lo,nt)),Dr=Math.max(Zo,Math.min(lo,Dr))],Ja=[Vr=Math.max(Zo,Math.min(lo,Vr)),Gt=Math.max(Zo,Math.min(lo,Gt))];yu(ya,Ja,B,J,ve,oe)?(Hr||($e.lineStart(),$e.point(ya[0],ya[1])),$e.point(Ja[0],Ja[1]),Gn||$e.lineEnd(),pt=!1):Gn&&($e.lineStart(),$e.point(Vr,Gt),pt=!1)}nt=Vr,Dr=Gt,Hr=Gn}return Yt}}function bu(){var B=0,J=0,ve=960,oe=500,Me,Oe,je;return je={stream:function(ir){return Me&&Oe===ir?Me:Me=Xo(B,J,ve,oe)(Oe=ir)},extent:function(ir){return arguments.length?(B=+ir[0][0],J=+ir[0][1],ve=+ir[1][0],oe=+ir[1][1],Me=Oe=null,je):[[B,J],[ve,oe]]}}}var Fl=t(),Il,xi,so,jo={sphere:O,point:O,lineStart:Hl,lineEnd:O,polygonStart:O,polygonEnd:O};function Hl(){jo.point=qf,jo.lineEnd=ks}function ks(){jo.point=jo.lineEnd=O}function qf(B,J){B*=d,J*=d,Il=B,xi=k(J),so=_(J),jo.point=l0}function l0(B,J){B*=d,J*=d;var ve=k(J),oe=_(J),Me=m(B-Il),Oe=_(Me),je=k(Me),ir=oe*je,sr=so*ve-xi*oe*Oe,_r=xi*ve+so*oe*Oe;Fl.add(y(D(ir*ir+sr*sr),_r)),Il=B,xi=ve,so=oe}function Ss(B){return Fl.reset(),K(B,jo),+Fl}var Cs=[null,null],Ls={type:"LineString",coordinates:Cs};function Jo(B,J){return Cs[0]=B,Cs[1]=J,Ss(Ls)}var uo={Feature:function(B,J){return Oi(B.geometry,J)},FeatureCollection:function(B,J){for(var ve=B.features,oe=-1,Me=ve.length;++oe0&&(Me=Jo(B[Oe],B[Oe-1]),Me>0&&ve<=Me&&oe<=Me&&(ve+oe-Me)*(1-Math.pow((ve-oe)/Me,2))o}).map(ur)).concat(r.range(C(Oe/_r)*_r,Me,_r).filter(function(Dr){return m(Dr%vr)>o}).map(Mr))}return tt.lines=function(){return nt().map(function(Dr){return{type:"LineString",coordinates:Dr}})},tt.outline=function(){return{type:"Polygon",coordinates:[qr(oe).concat(rt(je).slice(1),qr(ve).reverse().slice(1),rt(ir).reverse().slice(1))]}},tt.extent=function(Dr){return arguments.length?tt.extentMajor(Dr).extentMinor(Dr):tt.extentMinor()},tt.extentMajor=function(Dr){return arguments.length?(oe=+Dr[0][0],ve=+Dr[1][0],ir=+Dr[0][1],je=+Dr[1][1],oe>ve&&(Dr=oe,oe=ve,ve=Dr),ir>je&&(Dr=ir,ir=je,je=Dr),tt.precision(Jr)):[[oe,ir],[ve,je]]},tt.extentMinor=function(Dr){return arguments.length?(J=+Dr[0][0],B=+Dr[1][0],Oe=+Dr[0][1],Me=+Dr[1][1],J>B&&(Dr=J,J=B,B=Dr),Oe>Me&&(Dr=Oe,Oe=Me,Me=Dr),tt.precision(Jr)):[[J,Oe],[B,Me]]},tt.step=function(Dr){return arguments.length?tt.stepMajor(Dr).stepMinor(Dr):tt.stepMinor()},tt.stepMajor=function(Dr){return arguments.length?($e=+Dr[0],vr=+Dr[1],tt):[$e,vr]},tt.stepMinor=function(Dr){return arguments.length?(sr=+Dr[0],_r=+Dr[1],tt):[sr,_r]},tt.precision=function(Dr){return arguments.length?(Jr=+Dr,ur=Ui(Oe,Me,90),Mr=Ds(J,B,Jr),qr=Ui(ir,je,90),rt=Ds(oe,ve,Jr),tt):Jr},tt.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Es(){return u0()()}function Xv(B,J){var ve=B[0]*d,oe=B[1]*d,Me=J[0]*d,Oe=J[1]*d,je=_(oe),ir=k(oe),sr=_(Oe),_r=k(Oe),$e=je*_(ve),vr=je*k(ve),ur=sr*_(Me),Mr=sr*k(Me),qr=2*I(D(W(Oe-oe)+je*sr*W(Me-ve))),rt=k(qr),Jr=qr?function(tt){var nt=k(tt*=qr)/rt,Dr=k(qr-tt)/rt,Hr=Dr*$e+nt*ur,it=Dr*vr+nt*Mr,pt=Dr*ir+nt*_r;return[y(it,Hr)*h,y(pt,D(Hr*Hr+it*it))*h]}:function(){return[ve*h,oe*h]};return Jr.distance=qr,Jr}function $o(B){return B}var Pf=t(),Ol=t(),f0,co,vo,Rf,wi={point:O,lineStart:O,lineEnd:O,polygonStart:function(){wi.lineStart=jv,wi.lineEnd=Jv},polygonEnd:function(){wi.lineStart=wi.lineEnd=wi.point=O,Pf.add(m(Ol)),Ol.reset()},result:function(){var B=Pf/2;return Pf.reset(),B}};function jv(){wi.point=Yi}function Yi(B,J){wi.point=Ul,f0=vo=B,co=Rf=J}function Ul(B,J){Ol.add(Rf*B-vo*J),vo=B,Rf=J}function Jv(){Ul(f0,co)}var Gi=1/0,Ko=Gi,Qo=-Gi,el=Qo,ho={point:Ps,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var B=[[Gi,Ko],[Qo,el]];return Qo=el=-(Ko=Gi=1/0),B}};function Ps(B,J){BQo&&(Qo=B),Jel&&(el=J)}var xu=0,Rs=0,zs=0,rl=0,Yl=0,Gl=0,wu=0,Mu=0,ui=0,Au,Tu,Ia,na,Sa={point:Vi,lineStart:Ns,lineEnd:zf,polygonStart:function(){Sa.lineStart=c0,Sa.lineEnd=$v},polygonEnd:function(){Sa.point=Vi,Sa.lineStart=Ns,Sa.lineEnd=zf},result:function(){var B=ui?[wu/ui,Mu/ui]:Gl?[rl/Gl,Yl/Gl]:zs?[xu/zs,Rs/zs]:[NaN,NaN];return xu=Rs=zs=rl=Yl=Gl=wu=Mu=ui=0,B}};function Vi(B,J){xu+=B,Rs+=J,++zs}function Ns(){Sa.point=tl}function tl(B,J){Sa.point=Vl,Vi(Ia=B,na=J)}function Vl(B,J){var ve=B-Ia,oe=J-na,Me=D(ve*ve+oe*oe);rl+=Me*(Ia+B)/2,Yl+=Me*(na+J)/2,Gl+=Me,Vi(Ia=B,na=J)}function zf(){Sa.point=Vi}function c0(){Sa.point=Kv}function $v(){Nf(Au,Tu)}function Kv(B,J){Sa.point=Nf,Vi(Au=Ia=B,Tu=na=J)}function Nf(B,J){var ve=B-Ia,oe=J-na,Me=D(ve*ve+oe*oe);rl+=Me*(Ia+B)/2,Yl+=Me*(na+J)/2,Gl+=Me,Me=na*B-Ia*J,wu+=Me*(Ia+B),Mu+=Me*(na+J),ui+=Me*3,Vi(Ia=B,na=J)}function Ff(B){this._context=B}Ff.prototype={_radius:4.5,pointRadius:function(B){return this._radius=B,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(B,J){switch(this._point){case 0:{this._context.moveTo(B,J),this._point=1;break}case 1:{this._context.lineTo(B,J);break}default:{this._context.moveTo(B+this._radius,J),this._context.arc(B,J,this._radius,0,v);break}}},result:O};var If=t(),Hf,v0,h0,Fs,Is,Mi={point:O,lineStart:function(){Mi.point=ku},lineEnd:function(){Hf&&Hs(v0,h0),Mi.point=O},polygonStart:function(){Hf=!0},polygonEnd:function(){Hf=null},result:function(){var B=+If;return If.reset(),B}};function ku(B,J){Mi.point=Hs,v0=Fs=B,h0=Is=J}function Hs(B,J){Fs-=B,Is-=J,If.add(D(Fs*Fs+Is*Is)),Fs=B,Is=J}function Su(){this._string=[]}Su.prototype={_radius:4.5,_circle:d0(4.5),pointRadius:function(B){return(B=+B)!==this._radius&&(this._radius=B,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(B,J){switch(this._point){case 0:{this._string.push("M",B,",",J),this._point=1;break}case 1:{this._string.push("L",B,",",J);break}default:{this._circle==null&&(this._circle=d0(this._radius)),this._string.push("M",B,",",J,this._circle);break}}},result:function(){if(this._string.length){var B=this._string.join("");return this._string=[],B}else return null}};function d0(B){return"m0,"+B+"a"+B+","+B+" 0 1,1 0,"+-2*B+"a"+B+","+B+" 0 1,1 0,"+2*B+"z"}function Bf(B,J){var ve=4.5,oe,Me;function Oe(je){return je&&(typeof ve=="function"&&Me.pointRadius(+ve.apply(this,arguments)),K(je,oe(Me))),Me.result()}return Oe.area=function(je){return K(je,oe(wi)),wi.result()},Oe.measure=function(je){return K(je,oe(Mi)),Mi.result()},Oe.bounds=function(je){return K(je,oe(ho)),ho.result()},Oe.centroid=function(je){return K(je,oe(Sa)),Sa.result()},Oe.projection=function(je){return arguments.length?(oe=je==null?(B=null,$o):(B=je).stream,Oe):B},Oe.context=function(je){return arguments.length?(Me=je==null?(J=null,new Su):new Ff(J=je),typeof ve!="function"&&Me.pointRadius(ve),Oe):J},Oe.pointRadius=function(je){return arguments.length?(ve=typeof je=="function"?je:(Me.pointRadius(+je),+je),Oe):ve},Oe.projection(B).context(J)}function Qv(B){return{stream:po(B)}}function po(B){return function(J){var ve=new Cu;for(var oe in B)ve[oe]=B[oe];return ve.stream=J,ve}}function Cu(){}Cu.prototype={constructor:Cu,point:function(B,J){this.stream.point(B,J)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wl(B,J,ve){var oe=B.clipExtent&&B.clipExtent();return B.scale(150).translate([0,0]),oe!=null&&B.clipExtent(null),K(ve,B.stream(ho)),J(ho.result()),oe!=null&&B.clipExtent(oe),B}function Bs(B,J,ve){return Wl(B,function(oe){var Me=J[1][0]-J[0][0],Oe=J[1][1]-J[0][1],je=Math.min(Me/(oe[1][0]-oe[0][0]),Oe/(oe[1][1]-oe[0][1])),ir=+J[0][0]+(Me-je*(oe[1][0]+oe[0][0]))/2,sr=+J[0][1]+(Oe-je*(oe[1][1]+oe[0][1]))/2;B.scale(150*je).translate([ir,sr])},ve)}function Os(B,J,ve){return Bs(B,[[0,0],J],ve)}function Of(B,J,ve){return Wl(B,function(oe){var Me=+J,Oe=Me/(oe[1][0]-oe[0][0]),je=(Me-Oe*(oe[1][0]+oe[0][0]))/2,ir=-Oe*oe[0][1];B.scale(150*Oe).translate([je,ir])},ve)}function go(B,J,ve){return Wl(B,function(oe){var Me=+J,Oe=Me/(oe[1][1]-oe[0][1]),je=-Oe*oe[0][0],ir=(Me-Oe*(oe[1][1]+oe[0][1]))/2;B.scale(150*Oe).translate([je,ir])},ve)}var p0=16,Uf=_(30*d);function g0(B,J){return+J?Lu(B,J):Yf(B)}function Yf(B){return po({point:function(J,ve){J=B(J,ve),this.stream.point(J[0],J[1])}})}function Lu(B,J){function ve(oe,Me,Oe,je,ir,sr,_r,$e,vr,ur,Mr,qr,rt,Jr){var tt=_r-oe,nt=$e-Me,Dr=tt*tt+nt*nt;if(Dr>4*J&&rt--){var Hr=je+ur,it=ir+Mr,pt=sr+qr,Yt=D(Hr*Hr+it*it+pt*pt),nn=I(pt/=Yt),Wt=m(m(pt)-1)J||m((tt*Fn+nt*gn)/Dr-.5)>.3||je*ur+ir*Mr+sr*qr2?Vr[2]%360*d:0,Fn()):[ir*h,sr*h,_r*h]},qt.angle=function(Vr){return arguments.length?(vr=Vr%360*d,Fn()):vr*h},qt.reflectX=function(Vr){return arguments.length?(ur=Vr?-1:1,Fn()):ur<0},qt.reflectY=function(Vr){return arguments.length?(Mr=Vr?-1:1,Fn()):Mr<0},qt.precision=function(Vr){return arguments.length?(pt=g0(Yt,it=Vr*Vr),gn()):D(it)},qt.fitExtent=function(Vr,Gt){return Bs(qt,Vr,Gt)},qt.fitSize=function(Vr,Gt){return Os(qt,Vr,Gt)},qt.fitWidth=function(Vr,Gt){return Of(qt,Vr,Gt)},qt.fitHeight=function(Vr,Gt){return go(qt,Vr,Gt)};function Fn(){var Vr=Wf(ve,0,0,ur,Mr,vr).apply(null,J(Oe,je)),Gt=(vr?Wf:e1)(ve,oe-Vr[0],Me-Vr[1],ur,Mr,vr);return $e=Tn(ir,sr,_r),Yt=wn(J,Gt),nn=wn($e,Yt),pt=g0(Yt,it),gn()}function gn(){return Wt=pn=null,qt}return function(){return J=B.apply(this,arguments),qt.invert=J.invert&&sa,Fn()}}function Zl(B){var J=0,ve=s/3,oe=Zf(B),Me=oe(J,ve);return Me.parallels=function(Oe){return arguments.length?oe(J=Oe[0]*d,ve=Oe[1]*d):[J*h,ve*h]},Me}function Xf(B){var J=_(B);function ve(oe,Me){return[oe*J,k(Me)/J]}return ve.invert=function(oe,Me){return[oe/J,I(Me*J)]},ve}function m0(B,J){var ve=k(B),oe=(ve+k(J))/2;if(m(oe)=.12&&Jr<.234&&rt>=-.425&&rt<-.214?Me:Jr>=.166&&Jr<.234&&rt>=-.214&&rt<-.115?je:ve).invert(ur)},$e.stream=function(ur){return B&&J===ur?B:B=r1([ve.stream(J=ur),Me.stream(ur),je.stream(ur)])},$e.precision=function(ur){return arguments.length?(ve.precision(ur),Me.precision(ur),je.precision(ur),vr()):ve.precision()},$e.scale=function(ur){return arguments.length?(ve.scale(ur),Me.scale(ur*.35),je.scale(ur),$e.translate(ve.translate())):ve.scale()},$e.translate=function(ur){if(!arguments.length)return ve.translate();var Mr=ve.scale(),qr=+ur[0],rt=+ur[1];return oe=ve.translate(ur).clipExtent([[qr-.455*Mr,rt-.238*Mr],[qr+.455*Mr,rt+.238*Mr]]).stream(_r),Oe=Me.translate([qr-.307*Mr,rt+.201*Mr]).clipExtent([[qr-.425*Mr+o,rt+.12*Mr+o],[qr-.214*Mr-o,rt+.234*Mr-o]]).stream(_r),ir=je.translate([qr-.205*Mr,rt+.212*Mr]).clipExtent([[qr-.214*Mr+o,rt+.166*Mr+o],[qr-.115*Mr-o,rt+.234*Mr-o]]).stream(_r),vr()},$e.fitExtent=function(ur,Mr){return Bs($e,ur,Mr)},$e.fitSize=function(ur,Mr){return Os($e,ur,Mr)},$e.fitWidth=function(ur,Mr){return Of($e,ur,Mr)},$e.fitHeight=function(ur,Mr){return go($e,ur,Mr)};function vr(){return B=J=null,$e}return $e.scale(1070)}function Wi(B){return function(J,ve){var oe=_(J),Me=_(ve),Oe=B(oe*Me);return[Oe*Me*k(J),Oe*k(ve)]}}function Ti(B){return function(J,ve){var oe=D(J*J+ve*ve),Me=B(oe),Oe=k(Me),je=_(Me);return[y(J*Oe,oe*je),I(oe&&ve*Oe/oe)]}}var Ha=Wi(function(B){return D(2/(1+B))});Ha.invert=Ti(function(B){return 2*I(B/2)});function n1(){return Ai(Ha).scale(124.75).clipAngle(180-.001)}var Xl=Wi(function(B){return(B=N(B))&&B/k(B)});Xl.invert=Ti(function(B){return B});function b0(){return Ai(Xl).scale(79.4188).clipAngle(180-.001)}function ja(B,J){return[B,b(R((u+J)/2))]}ja.invert=function(B,J){return[B,2*p(x(J))-u]};function _0(){return x0(ja).scale(961/v)}function x0(B){var J=Ai(B),ve=J.center,oe=J.scale,Me=J.translate,Oe=J.clipExtent,je=null,ir,sr,_r;J.scale=function(vr){return arguments.length?(oe(vr),$e()):oe()},J.translate=function(vr){return arguments.length?(Me(vr),$e()):Me()},J.center=function(vr){return arguments.length?(ve(vr),$e()):ve()},J.clipExtent=function(vr){return arguments.length?(vr==null?je=ir=sr=_r=null:(je=+vr[0][0],ir=+vr[0][1],sr=+vr[1][0],_r=+vr[1][1]),$e()):je==null?null:[[je,ir],[sr,_r]]};function $e(){var vr=s*oe(),ur=J(As(J.rotate()).invert([0,0]));return Oe(je==null?[[ur[0]-vr,ur[1]-vr],[ur[0]+vr,ur[1]+vr]]:B===ja?[[Math.max(ur[0]-vr,je),ir],[Math.min(ur[0]+vr,sr),_r]]:[[je,Math.max(ur[1]-vr,ir)],[sr,Math.min(ur[1]+vr,_r)]])}return $e()}function Us(B){return R((u+B)/2)}function w0(B,J){var ve=_(B),oe=B===J?k(B):b(ve/_(J))/b(Us(J)/Us(B)),Me=ve*A(Us(B),oe)/oe;if(!oe)return ja;function Oe(je,ir){Me>0?ir<-u+o&&(ir=-u+o):ir>u-o&&(ir=u-o);var sr=Me/A(Us(ir),oe);return[sr*k(oe*je),Me-sr*_(oe*je)]}return Oe.invert=function(je,ir){var sr=Me-ir,_r=M(oe)*D(je*je+sr*sr),$e=y(je,m(sr))*M(sr);return sr*oe<0&&($e-=s*M(je)*M(sr)),[$e/oe,2*p(A(Me/_r,1/oe))-u]},Oe}function qu(){return Zl(w0).scale(109.5).parallels([30,30])}function Ys(B,J){return[B,J]}Ys.invert=Ys;function Du(){return Ai(Ys).scale(152.63)}function Gs(B,J){var ve=_(B),oe=B===J?k(B):(ve-_(J))/(J-B),Me=ve/oe+B;if(m(oe)o&&--oe>0);return[B/(.8707+(Oe=ve*ve)*(-.131979+Oe*(-.013791+Oe*Oe*Oe*(.003971-.001529*Oe)))),ve]};function Ru(){return Ai(jf).scale(175.295)}function jn(B,J){return[_(J)*k(B),k(J)]}jn.invert=Ti(I);function fi(){return Ai(jn).scale(249.5).clipAngle(90+o)}function Jl(B,J){var ve=_(J),oe=1+_(B)*ve;return[ve*k(B)/oe,k(J)/oe]}Jl.invert=Ti(function(B){return 2*p(B)});function zu(){return Ai(Jl).scale(250).clipAngle(142)}function Xs(B,J){return[b(R((u+J)/2)),-B]}Xs.invert=function(B,J){return[-J,2*p(x(B))-u]};function Jf(){var B=x0(Xs),J=B.center,ve=B.rotate;return B.center=function(oe){return arguments.length?J([-oe[1],oe[0]]):(oe=J(),[oe[1],-oe[0]])},B.rotate=function(oe){return arguments.length?ve([oe[0],oe[1],oe.length>2?oe[2]+90:90]):(oe=ve(),[oe[0],oe[1],oe[2]-90])},ve([0,0,90]).scale(159.155)}e.geoAlbers=y0,e.geoAlbersUsa=t1,e.geoArea=G,e.geoAzimuthalEqualArea=n1,e.geoAzimuthalEqualAreaRaw=Ha,e.geoAzimuthalEquidistant=b0,e.geoAzimuthalEquidistantRaw=Xl,e.geoBounds=xe,e.geoCentroid=ga,e.geoCircle=Ts,e.geoClipAntimeridian=Pn,e.geoClipCircle=Lf,e.geoClipExtent=bu,e.geoClipRectangle=Xo,e.geoConicConformal=qu,e.geoConicConformalRaw=w0,e.geoConicEqualArea=nl,e.geoConicEqualAreaRaw=m0,e.geoConicEquidistant=a1,e.geoConicEquidistantRaw=Gs,e.geoContains=qs,e.geoDistance=Jo,e.geoEqualEarth=M0,e.geoEqualEarthRaw=Zs,e.geoEquirectangular=Du,e.geoEquirectangularRaw=Ys,e.geoGnomonic=A0,e.geoGnomonicRaw=Pu,e.geoGraticule=u0,e.geoGraticule10=Es,e.geoIdentity=T0,e.geoInterpolate=Xv,e.geoLength=Ss,e.geoMercator=_0,e.geoMercatorRaw=ja,e.geoNaturalEarth1=Ru,e.geoNaturalEarth1Raw=jf,e.geoOrthographic=fi,e.geoOrthographicRaw=jn,e.geoPath=Bf,e.geoProjection=Ai,e.geoProjectionMutator=Zf,e.geoRotation=As,e.geoStereographic=zu,e.geoStereographicRaw=Jl,e.geoStream=K,e.geoTransform=Qv,e.geoTransverseMercator=Jf,e.geoTransverseMercatorRaw=Xs,Object.defineProperty(e,"__esModule",{value:!0})}))});var kF=te((gy,TF)=>{(function(e,r){typeof gy=="object"&&typeof TF!="undefined"?r(gy,m_(),g_()):r(e.d3=e.d3||{},e.d3,e.d3)})(gy,(function(e,r,t){"use strict";var n=Math.abs,a=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,v=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(T){return T>0?1:T<0?-1:0},p=Math.sin,y=Math.tan,_=1e-6,C=1e-12,x=Math.PI,b=x/2,A=x/4,k=Math.SQRT1_2,M=H(2),D=H(x),R=x*2,N=180/x,I=x/180;function W(T){return T?T/Math.sin(T):1}function O(T){return T>1?b:T<-1?-b:Math.asin(T)}function Z(T){return T>1?0:T<-1?x:Math.acos(T)}function H(T){return T>0?Math.sqrt(T):0}function ee(T){return T=l(2*T),(T-1)/(T+1)}function ne(T){return(l(T)-l(-T))/2}function re(T){return(l(T)+l(-T))/2}function K(T){return u(T+H(T*T+1))}function ue(T){return u(T+H(T*T-1))}function le(T){var L=y(T/2),P=2*u(o(T/2))/(L*L);function z(Y,U){var X=o(Y),fe=o(U),he=p(U),se=fe*X,pe=-((1-se?u((1+se)/2)/(1-se):-.5)+P/(1+se));return[pe*fe*p(Y),pe*he]}return z.invert=function(Y,U){var X=H(Y*Y+U*U),fe=-T/2,he=50,se;if(!X)return[0,0];do{var pe=fe/2,we=o(pe),Le=p(pe),Ie=Le/we,rr=-u(n(we));fe-=se=(2/Ie*rr-P*Ie-X)/(-rr/(Le*Le)+1-P/(2*we*we))*(we<0?.7:1)}while(n(se)>_&&--he>0);var fr=p(fe);return[i(Y*fr,X*o(fe)),O(U*fr/X)]},z}function ke(){var T=b,L=r.geoProjectionMutator(le),P=L(T);return P.radius=function(z){return arguments.length?L(T=z*I):T*N},P.scale(179.976).clipAngle(147)}function ze(T,L){var P=o(L),z=W(Z(P*o(T/=2)));return[2*P*p(T)*z,p(L)*z]}ze.invert=function(T,L){if(!(T*T+4*L*L>x*x+_)){var P=T,z=L,Y=25;do{var U=p(P),X=p(P/2),fe=o(P/2),he=p(z),se=o(z),pe=p(2*z),we=he*he,Le=se*se,Ie=X*X,rr=1-Le*fe*fe,fr=rr?Z(se*fe)*H(Tr=1/rr):Tr=0,Tr,jr=2*fr*se*X-T,at=fr*he-L,ot=Tr*(Le*Ie+fr*se*fe*we),ut=Tr*(.5*U*pe-fr*2*he*X),vt=Tr*.25*(pe*X-fr*he*Le*U),sn=Tr*(we*fe+fr*Ie*se),An=ut*vt-sn*ot;if(!An)break;var Nt=(at*ut-jr*sn)/An,In=(jr*vt-at*ot)/An;P-=Nt,z-=In}while((n(Nt)>_||n(In)>_)&&--Y>0);return[P,z]}};function Fe(){return r.geoProjection(ze).scale(152.63)}function Xe(T){var L=p(T),P=o(T),z=T>=0?1:-1,Y=y(z*T),U=(1+L-P)/2;function X(fe,he){var se=o(he),pe=o(fe/=2);return[(1+se)*p(fe),(z*he>-i(pe,Y)-.001?0:-z*10)+U+p(he)*P-(1+se)*L*pe]}return X.invert=function(fe,he){var se=0,pe=0,we=50;do{var Le=o(se),Ie=p(se),rr=o(pe),fr=p(pe),Tr=1+rr,jr=Tr*Ie-fe,at=U+fr*P-Tr*L*Le-he,ot=Tr*Le/2,ut=-Ie*fr,vt=L*Tr*Ie/2,sn=P*rr+L*Le*fr,An=ut*vt-sn*ot,Nt=(at*ut-jr*sn)/An/2,In=(jr*vt-at*ot)/An;n(In)>2&&(In/=2),se-=Nt,pe-=In}while((n(Nt)>_||n(In)>_)&&--we>0);return z*pe>-i(o(se),Y)-.001?[se*2,pe]:null},X}function Ce(){var T=20*I,L=T>=0?1:-1,P=y(L*T),z=r.geoProjectionMutator(Xe),Y=z(T),U=Y.stream;return Y.parallel=function(X){return arguments.length?(P=y((L=(T=X*I)>=0?1:-1)*T),z(T)):T*N},Y.stream=function(X){var fe=Y.rotate(),he=U(X),se=(Y.rotate([0,0]),U(X)),pe=Y.precision();return Y.rotate(fe),he.sphere=function(){se.polygonStart(),se.lineStart();for(var we=L*-180;L*we<180;we+=L*90)se.point(we,L*90);if(T)for(;L*(we-=3*L*pe)>=-180;)se.point(we,L*-i(o(we*I/2),P)*N);se.lineEnd(),se.polygonEnd()},he},Y.scale(218.695).center([0,28.0974])}function er(T,L){var P=y(L/2),z=H(1-P*P),Y=1+z*o(T/=2),U=p(T)*z/Y,X=P/Y,fe=U*U,he=X*X;return[4/3*U*(3+fe-3*he),4/3*X*(3+3*fe-he)]}er.invert=function(T,L){if(T*=3/8,L*=3/8,!T&&n(L)>1)return null;var P=T*T,z=L*L,Y=1+P+z,U=H((Y-H(Y*Y-4*L*L))/2),X=O(U)/3,fe=U?ue(n(L/U))/3:K(n(T))/3,he=o(X),se=re(fe),pe=se*se-he*he;return[m(T)*2*i(ne(fe)*he,.25-pe),m(L)*2*i(se*p(X),.25+pe)]};function ce(){return r.geoProjection(er).scale(66.1603)}var ge=H(8),Pe=u(1+M);function de(T,L){var P=n(L);return PC&&--z>0);return[T/(o(P)*(ge-1/p(P))),m(L)*P]};function G(){return r.geoProjection(de).scale(112.314)}function Q(T){var L=2*x/T;function P(z,Y){var U=r.geoAzimuthalEquidistantRaw(z,Y);if(n(z)>b){var X=i(U[1],U[0]),fe=H(U[0]*U[0]+U[1]*U[1]),he=L*d((X-b)/L)+b,se=i(p(X-=he),2-o(X));X=he+O(x/fe*p(se))-se,U[0]=fe*o(X),U[1]=fe*p(X)}return U}return P.invert=function(z,Y){var U=H(z*z+Y*Y);if(U>b){var X=i(Y,z),fe=L*d((X-b)/L)+b,he=X>fe?-1:1,se=U*o(fe-X),pe=1/y(he*Z((se-x)/H(x*(x-2*se)+U*U)));X=fe+2*a((pe+he*H(pe*pe-3))/3),z=U*o(X),Y=U*p(X)}return r.geoAzimuthalEquidistantRaw.invert(z,Y)},P}function $(){var T=5,L=r.geoProjectionMutator(Q),P=L(T),z=P.stream,Y=.01,U=-o(Y*I),X=p(Y*I);return P.lobes=function(fe){return arguments.length?L(T=+fe):T},P.stream=function(fe){var he=P.rotate(),se=z(fe),pe=(P.rotate([0,0]),z(fe));return P.rotate(he),se.sphere=function(){pe.polygonStart(),pe.lineStart();for(var we=0,Le=360/T,Ie=2*x/T,rr=90-180/T,fr=b;we0&&n(Y)>_);return z<0?NaN:P}function Qe(T,L,P){return L===void 0&&(L=40),P===void 0&&(P=C),function(z,Y,U,X){var fe,he,se;U=U===void 0?0:+U,X=X===void 0?0:+X;for(var pe=0;pefe){U-=he/=2,X-=se/=2;continue}fe=rr;var fr=(U>0?-1:1)*P,Tr=(X>0?-1:1)*P,jr=T(U+fr,X),at=T(U,X+Tr),ot=(jr[0]-we[0])/fr,ut=(jr[1]-we[1])/fr,vt=(at[0]-we[0])/Tr,sn=(at[1]-we[1])/Tr,An=sn*ot-ut*vt,Nt=(n(An)<.5?.5:1)/An;if(he=(Ie*vt-Le*sn)*Nt,se=(Le*ut-Ie*ot)*Nt,U+=he,X+=se,n(he)0&&(fe[1]*=1+he/1.5*fe[0]*fe[0]),fe}return z.invert=Qe(z),z}function cr(){return r.geoProjection(Be()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function or(T,L){var P=T*p(L),z=30,Y;do L-=Y=(L+p(L)-P)/(1+o(L));while(n(Y)>_&&--z>0);return L/2}function hr(T,L,P){function z(Y,U){return[T*Y*o(U=or(P,U)),L*p(U)]}return z.invert=function(Y,U){return U=O(U/L),[Y/(T*o(U)),O((2*U+p(2*U))/P)]},z}var Je=hr(M/b,M,x);function pr(){return r.geoProjection(Je).scale(169.529)}var yr=2.00276,Te=1.11072;function Ue(T,L){var P=or(x,L);return[yr*T/(1/o(L)+Te/o(P)),(L+M*p(P))/yr]}Ue.invert=function(T,L){var P=yr*L,z=L<0?-A:A,Y=25,U,X;do X=P-M*p(z),z-=U=(p(2*z)+2*z-x*p(X))/(2*o(2*z)+2+x*o(X)*M*o(z));while(n(U)>_&&--Y>0);return X=P-M*p(z),[T*(1/o(X)+Te/o(z))/yr,X]};function kr(){return r.geoProjection(Ue).scale(160.857)}function Ur(T){var L=0,P=r.geoProjectionMutator(T),z=P(L);return z.parallel=function(Y){return arguments.length?P(L=Y*I):L*N},z}function tr(T,L){return[T*o(L),L]}tr.invert=function(T,L){return[T/o(L),L]};function Ye(){return r.geoProjection(tr).scale(152.63)}function Ze(T){if(!T)return tr;var L=1/y(T);function P(z,Y){var U=L+T-Y,X=U&&z*o(Y)/U;return[U*p(X),L-U*o(X)]}return P.invert=function(z,Y){var U=H(z*z+(Y=L-Y)*Y),X=L+T-U;return[U/o(X)*i(z,Y),X]},P}function dr(){return Ur(Ze).scale(123.082).center([0,26.1441]).parallel(45)}function Ar(T){function L(P,z){var Y=b-z,U=Y&&P*T*p(Y)/Y;return[Y*p(U)/T,b-Y*o(U)]}return L.invert=function(P,z){var Y=P*T,U=b-z,X=H(Y*Y+U*U),fe=i(Y,U);return[(X?X/p(X):1)*fe/T,b-X]},L}function mr(){var T=.5,L=r.geoProjectionMutator(Ar),P=L(T);return P.fraction=function(z){return arguments.length?L(T=+z):T},P.scale(158.837)}var br=hr(1,4/x,x);function Ir(){return r.geoProjection(br).scale(152.63)}function Cr(T,L,P,z,Y,U){var X=o(U),fe;if(n(T)>1||n(U)>1)fe=Z(P*Y+L*z*X);else{var he=p(T/2),se=p(U/2);fe=2*O(H(he*he+L*z*se*se))}return n(fe)>_?[fe,i(z*p(U),L*Y-P*z*X)]:[0,0]}function Er(T,L,P){return Z((T*T+L*L-P*P)/(2*T*L))}function lr(T){return T-2*x*s((T+x)/(2*x))}function xe(T,L,P){for(var z=[[T[0],T[1],p(T[1]),o(T[1])],[L[0],L[1],p(L[1]),o(L[1])],[P[0],P[1],p(P[1]),o(P[1])]],Y=z[2],U,X=0;X<3;++X,Y=U)U=z[X],Y.v=Cr(U[1]-Y[1],Y[3],Y[2],U[3],U[2],U[0]-Y[0]),Y.point=[0,0];var fe=Er(z[0].v[0],z[2].v[0],z[1].v[0]),he=Er(z[0].v[0],z[1].v[0],z[2].v[0]),se=x-fe;z[2].point[1]=0,z[0].point[0]=-(z[1].point[0]=z[0].v[0]/2);var pe=[z[2].point[0]=z[0].point[0]+z[2].v[0]*o(fe),2*(z[0].point[1]=z[1].point[1]=z[2].v[0]*p(fe))];function we(Le,Ie){var rr=p(Ie),fr=o(Ie),Tr=new Array(3),jr;for(jr=0;jr<3;++jr){var at=z[jr];if(Tr[jr]=Cr(Ie-at[1],at[3],at[2],fr,rr,Le-at[0]),!Tr[jr][0])return at.point;Tr[jr][1]=lr(Tr[jr][1]-at.v[1])}var ot=pe.slice();for(jr=0;jr<3;++jr){var ut=jr==2?0:jr+1,vt=Er(z[jr].v[0],Tr[jr][0],Tr[ut][0]);Tr[jr][1]<0&&(vt=-vt),jr?jr==1?(vt=he-vt,ot[0]-=Tr[jr][0]*o(vt),ot[1]-=Tr[jr][0]*p(vt)):(vt=se-vt,ot[0]+=Tr[jr][0]*o(vt),ot[1]+=Tr[jr][0]*p(vt)):(ot[0]+=Tr[jr][0]*o(vt),ot[1]-=Tr[jr][0]*p(vt))}return ot[0]/=3,ot[1]/=3,ot}return we}function Ae(T){return T[0]*=I,T[1]*=I,T}function Ke(){return nr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function nr(T,L,P){var z=r.geoCentroid({type:"MultiPoint",coordinates:[T,L,P]}),Y=[-z[0],-z[1]],U=r.geoRotation(Y),X=xe(Ae(U(T)),Ae(U(L)),Ae(U(P)));X.invert=Qe(X);var fe=r.geoProjection(X).rotate(Y),he=fe.center;return delete fe.rotate,fe.center=function(se){return arguments.length?he(U(se)):U.invert(he())},fe.clipAngle(90)}function Sr(T,L){var P=H(1-p(L));return[2/D*T*P,D*(1-P)]}Sr.invert=function(T,L){var P=(P=L/D-1)*P;return[P>0?T*H(x/P)/2:0,O(1-P)]};function Yr(){return r.geoProjection(Sr).scale(95.6464).center([0,30])}function zr(T){var L=y(T);function P(z,Y){return[z,(z?z/p(z):1)*(p(Y)*o(z)-L*o(Y))]}return P.invert=L?function(z,Y){z&&(Y*=p(z)/z);var U=o(z);return[z,2*i(H(U*U+L*L-Y*Y)-U,L-Y)]}:function(z,Y){return[z,O(z?Y*y(z)/z:Y)]},P}function st(){return Ur(zr).scale(249.828).clipAngle(90)}var bt=H(3);function St(T,L){return[bt*T*(2*o(2*L/3)-1)/D,bt*D*p(L/3)]}St.invert=function(T,L){var P=3*O(L/(bt*D));return[D*T/(bt*(2*o(2*P/3)-1)),P]};function $t(){return r.geoProjection(St).scale(156.19)}function vn(T){var L=o(T);function P(z,Y){return[z*L,p(Y)/L]}return P.invert=function(z,Y){return[z/L,O(Y*L)]},P}function hn(){return Ur(vn).parallel(38.58).scale(195.044)}function qn(T){var L=o(T);function P(z,Y){return[z*L,(1+L)*y(Y/2)]}return P.invert=function(z,Y){return[z/L,a(Y/(1+L))*2]},P}function Ot(){return Ur(qn).scale(124.75)}function en(T,L){var P=H(8/(3*x));return[P*T*(1-n(L)/x),P*L]}en.invert=function(T,L){var P=H(8/(3*x)),z=L/P;return[T/(P*(1-n(z)/x)),z]};function Kt(){return r.geoProjection(en).scale(165.664)}function rn(T,L){var P=H(4-3*p(n(L)));return[2/H(6*x)*T*P,m(L)*H(2*x/3)*(2-P)]}rn.invert=function(T,L){var P=2-n(L)/H(2*x/3);return[T*H(6*x)/(2*P),m(L)*O((4-P*P)/3)]};function la(){return r.geoProjection(rn).scale(165.664)}function xn(T,L){var P=H(x*(4+x));return[2/P*T*(1+H(1-4*L*L/(x*x))),4/P*L]}xn.invert=function(T,L){var P=H(x*(4+x))/2;return[T*P/(1+H(1-L*L*(4+x)/(4*x))),L*P/2]};function Un(){return r.geoProjection(xn).scale(180.739)}function Gr(T,L){var P=(2+b)*p(L);L/=2;for(var z=0,Y=1/0;z<10&&n(Y)>_;z++){var U=o(L);L-=Y=(L+p(L)*(U+2)-P)/(2*U*(1+U))}return[2/H(x*(4+x))*T*(1+o(L)),2*H(x/(4+x))*p(L)]}Gr.invert=function(T,L){var P=L*H((4+x)/x)/2,z=O(P),Y=o(z);return[T/(2/H(x*(4+x))*(1+Y)),O((z+P*(Y+2))/(2+b))]};function on(){return r.geoProjection(Gr).scale(180.739)}function Ct(T,L){return[T*(1+o(L))/H(2+x),2*L/H(2+x)]}Ct.invert=function(T,L){var P=H(2+x),z=L*P/2;return[P*T/(1+o(z)),z]};function tn(){return r.geoProjection(Ct).scale(173.044)}function Nn(T,L){for(var P=(1+b)*p(L),z=0,Y=1/0;z<10&&n(Y)>_;z++)L-=Y=(L+p(L)-P)/(1+o(L));return P=H(2+x),[T*(1+o(L))/P,2*L/P]}Nn.invert=function(T,L){var P=1+b,z=H(P/2);return[T*2*z/(1+o(L*=z)),O((L+p(L))/P)]};function Zn(){return r.geoProjection(Nn).scale(173.044)}var Ut=3+2*M;function ga(T,L){var P=p(T/=2),z=o(T),Y=H(o(L)),U=o(L/=2),X=p(L)/(U+M*z*Y),fe=H(2/(1+X*X)),he=H((M*U+(z+P)*Y)/(M*U+(z-P)*Y));return[Ut*(fe*(he-1/he)-2*u(he)),Ut*(fe*X*(he+1/he)-2*a(X))]}ga.invert=function(T,L){if(!(U=er.invert(T/1.2,L*1.065)))return null;var P=U[0],z=U[1],Y=20,U;T/=Ut,L/=Ut;do{var X=P/2,fe=z/2,he=p(X),se=o(X),pe=p(fe),we=o(fe),Le=o(z),Ie=H(Le),rr=pe/(we+M*se*Ie),fr=rr*rr,Tr=H(2/(1+fr)),jr=M*we+(se+he)*Ie,at=M*we+(se-he)*Ie,ot=jr/at,ut=H(ot),vt=ut-1/ut,sn=ut+1/ut,An=Tr*vt-2*u(ut)-T,Nt=Tr*rr*sn-2*a(rr)-L,In=pe&&k*Ie*he*fr/pe,ba=(M*se*we+Ie)/(2*(we+M*se*Ie)*(we+M*se*Ie)*Ie),vi=-.5*rr*Tr*Tr*Tr,sl=vi*In,js=vi*ba,Ea=(Ea=2*we+M*Ie*(se-he))*Ea*ut,Pa=(M*se*we*Ie+Le)/Ea,ji=-(M*he*pe)/(Ie*Ea),ul=vt*sl-2*Pa/ut+Tr*(Pa+Pa/ot),fl=vt*js-2*ji/ut+Tr*(ji+ji/ot),cl=rr*sn*sl-2*In/(1+fr)+Tr*sn*In+Tr*rr*(Pa-Pa/ot),Kl=rr*sn*js-2*ba/(1+fr)+Tr*sn*ba+Tr*rr*(ji-ji/ot),mo=fl*cl-Kl*ul;if(!mo)break;var Js=(Nt*fl-An*Kl)/mo,Qf=(An*cl-Nt*ul)/mo;P-=Js,z=f(-b,v(b,z-Qf))}while((n(Js)>_||n(Qf)>_)&&--Y>0);return n(n(z)-b)<_?[0,z]:Y&&[P,z]};function ma(){return r.geoProjection(ga).scale(62.5271)}var wn=o(35*I);function Qt(T,L){var P=y(L/2);return[T*wn*H(1-P*P),(1+wn)*P]}Qt.invert=function(T,L){var P=L/(1+wn);return[T&&T/(wn*H(1-P*P)),2*a(P)]};function Tn(){return r.geoProjection(Qt).scale(137.152)}function Mn(T,L){var P=L/2,z=o(P);return[2*T/D*o(L)*z*z,D*y(P)]}Mn.invert=function(T,L){var P=a(L/D),z=o(P),Y=2*P;return[T*D/2/(o(Y)*z*z),Y]};function oo(){return r.geoProjection(Mn).scale(135.264)}function yi(T){var L=1-T,P=U(x,0)[0]-U(-x,0)[0],z=U(0,b)[1]-U(0,-b)[1],Y=H(2*z/P);function U(he,se){var pe=o(se),we=p(se);return[pe/(L+T*pe)*he,L*se+T*we]}function X(he,se){var pe=U(he,se);return[pe[0]*Y,pe[1]/Y]}function fe(he){return X(0,he)[1]}return X.invert=function(he,se){var pe=ar(fe,se),we=he/Y*(T+L/o(pe));return[we,pe]},X}function As(){var T=.5,L=r.geoProjectionMutator(yi),P=L(T);return P.alpha=function(z){return arguments.length?L(T=+z):T},P.scale(168.725)}function Nl(T){return[T[0]/2,O(y(T[1]/2*I))*N]}function Yo(T){return[T[0]*2,2*a(p(T[1]*I))*N]}function Ts(T){T==null&&(T=r.geoOrthographic);var L=T(),P=r.geoEquirectangular().scale(N).precision(0).clipAngle(null).translate([0,0]);function z(U){return L(Nl(U))}L.invert&&(z.invert=function(U){return Yo(L.invert(U))}),z.stream=function(U){var X=L.stream(U),fe=P.stream({point:function(he,se){X.point(he/2,O(y(-se/2*I))*N)},lineStart:function(){X.lineStart()},lineEnd:function(){X.lineEnd()},polygonStart:function(){X.polygonStart()},polygonEnd:function(){X.polygonEnd()}});return fe.sphere=X.sphere,fe};function Y(U){z[U]=function(){return arguments.length?(L[U].apply(L,arguments),z):L[U]()}}return z.rotate=function(U){return arguments.length?(P.rotate(U),z):P.rotate()},z.center=function(U){return arguments.length?(L.center(Nl(U)),z):Yo(L.center())},Y("angle"),Y("clipAngle"),Y("clipExtent"),Y("fitExtent"),Y("fitHeight"),Y("fitSize"),Y("fitWidth"),Y("scale"),Y("translate"),Y("precision"),z.scale(249.5)}function Go(T,L){var P=2*x/L,z=T*T;function Y(U,X){var fe=r.geoAzimuthalEquidistantRaw(U,X),he=fe[0],se=fe[1],pe=he*he+se*se;if(pe>z){var we=H(pe),Le=i(se,he),Ie=P*d(Le/P),rr=Le-Ie,fr=T*o(rr),Tr=(T*p(rr)-rr*p(fr))/(b-fr),jr=Yn(rr,Tr),at=(x-T)/bi(jr,fr,x);he=we;var ot=50,ut;do he-=ut=(T+bi(jr,fr,he)*at-we)/(jr(he)*at);while(n(ut)>_&&--ot>0);se=rr*p(he),hez){var he=H(fe),se=i(X,U),pe=P*d(se/P),we=se-pe;U=he*o(we),X=he*p(we);for(var Le=U-b,Ie=p(U),rr=X/Ie,fr=U_||n(rr)>_)&&--fr>0);return[we,Le]},he}var Qr=_i(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Lt(){return r.geoProjection(Qr).scale(149.995)}var Ht=_i(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Br(){return r.geoProjection(Ht).scale(153.93)}var Xn=_i(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function ln(){return r.geoProjection(Xn).scale(130.945)}function Pn(T,L){var P=T*T,z=L*L;return[T*(1-.162388*z)*(.87-952426e-9*P*P),L*(1+z/12)]}Pn.invert=function(T,L){var P=T,z=L,Y=50,U;do{var X=z*z;z-=U=(z*(1+X/12)-L)/(1+X/4)}while(n(U)>_&&--Y>0);Y=50,T/=1-.162388*X;do{var fe=(fe=P*P)*fe;P-=U=(P*(.87-952426e-9*fe)-T)/(.87-.00476213*fe)}while(n(U)>_&&--Y>0);return[P,z]};function At(){return r.geoProjection(Pn).scale(131.747)}var Xa=_i(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Wo(){return r.geoProjection(Xa).scale(131.087)}function Lf(T){var L=T(b,0)[0]-T(-b,0)[0];function P(z,Y){var U=z>0?-.5:.5,X=T(z+U*x,Y);return X[0]-=U*L,X}return T.invert&&(P.invert=function(z,Y){var U=z>0?-.5:.5,X=T.invert(z+U*L,Y),fe=X[0]-U*x;return fe<-x?fe+=2*x:fe>x&&(fe-=2*x),X[0]=fe,X}),P}function yu(T,L){var P=m(T),z=m(L),Y=o(L),U=o(T)*Y,X=p(T)*Y,fe=p(z*L);T=n(i(X,fe)),L=O(U),n(T-b)>_&&(T%=b);var he=lo(T>x/4?b-T:T,L);return T>x/4&&(fe=he[0],he[0]=-he[1],he[1]=-fe),he[0]*=P,he[1]*=-z,he}yu.invert=function(T,L){n(T)>1&&(T=m(T)*2-T),n(L)>1&&(L=m(L)*2-L);var P=m(T),z=m(L),Y=-P*T,U=-z*L,X=U/Y<1,fe=Zo(X?U:Y,X?Y:U),he=fe[0],se=fe[1],pe=o(se);return X&&(he=-b-he),[P*(i(p(he)*pe,-p(se))+x),z*O(o(he)*pe)]};function lo(T,L){if(L===b)return[0,0];var P=p(L),z=P*P,Y=z*z,U=1+Y,X=1+3*Y,fe=1-Y,he=O(1/H(U)),se=fe+z*U*he,pe=(1-P)/se,we=H(pe),Le=pe*U,Ie=H(Le),rr=we*fe,fr,Tr;if(T===0)return[0,-(rr+z*Ie)];var jr=o(L),at=1/jr,ot=2*P*jr,ut=(-3*z+he*X)*ot,vt=(-se*jr-(1-P)*ut)/(se*se),sn=.5*vt/we,An=fe*sn-2*z*we*ot,Nt=z*U*vt+pe*X*ot,In=-at*ot,ba=-at*Nt,vi=-2*at*An,sl=4*T/x,js;if(T>.222*x||L.175*x){if(fr=(rr+z*H(Le*(1+Y)-rr*rr))/(1+Y),T>x/4)return[fr,fr];var Ea=fr,Pa=.5*fr;fr=.5*(Pa+Ea),Tr=50;do{var ji=H(Le-fr*fr),ul=fr*(vi+In*ji)+ba*O(fr/Ie)-sl;if(!ul)break;ul<0?Pa=fr:Ea=fr,fr=.5*(Pa+Ea)}while(n(Ea-Pa)>_&&--Tr>0)}else{fr=_,Tr=25;do{var fl=fr*fr,cl=H(Le-fl),Kl=vi+In*cl,mo=fr*Kl+ba*O(fr/Ie)-sl,Js=Kl+(ba-In*fl)/cl;fr-=js=cl?mo/Js:0}while(n(js)>_&&--Tr>0)}return[fr,-rr-z*H(Le-fr*fr)]}function Zo(T,L){for(var P=0,z=1,Y=.5,U=50;;){var X=Y*Y,fe=H(Y),he=O(1/H(1+X)),se=1-X+Y*(1+X)*he,pe=(1-fe)/se,we=H(pe),Le=pe*(1+X),Ie=we*(1-X),rr=Le-T*T,fr=H(rr),Tr=L+Ie+Y*fr;if(n(z-P)0?P=Y:z=Y,Y=.5*(P+z)}if(!U)return null;var jr=O(fe),at=o(jr),ot=1/at,ut=2*fe*at,vt=(-3*Y+he*(1+3*X))*ut,sn=(-se*at-(1-fe)*vt)/(se*se),An=.5*sn/we,Nt=(1-X)*An-2*Y*we*ut,In=-2*ot*Nt,ba=-ot*ut,vi=-ot*(Y*(1+X)*sn+pe*(1+3*X)*ut);return[x/4*(T*(In+ba*fr)+vi*O(T/H(Le))),jr]}function Xo(){return r.geoProjection(Lf(yu)).scale(239.75)}function bu(T,L,P){var z,Y,U;return T?(z=Fl(T,P),L?(Y=Fl(L,1-P),U=Y[1]*Y[1]+P*z[0]*z[0]*Y[0]*Y[0],[[z[0]*Y[2]/U,z[1]*z[2]*Y[0]*Y[1]/U],[z[1]*Y[1]/U,-z[0]*z[2]*Y[0]*Y[2]/U],[z[2]*Y[1]*Y[2]/U,-P*z[0]*z[1]*Y[0]/U]]):[[z[0],0],[z[1],0],[z[2],0]]):(Y=Fl(L,1-P),[[0,Y[0]/Y[1]],[1/Y[1],0],[Y[2]/Y[1],0]])}function Fl(T,L){var P,z,Y,U,X;if(L<_)return U=p(T),z=o(T),P=L*(T-U*z)/4,[U-P*z,z+P*U,1-L*U*U/2,T-P];if(L>=1-_)return P=(1-L)/4,z=re(T),U=ee(T),Y=1/z,X=z*ne(T),[U+P*(X-T)/(z*z),Y-P*U*Y*(X-T),Y+P*U*Y*(X+T),2*a(l(T))-b+P*(X-T)/z];var fe=[1,0,0,0,0,0,0,0,0],he=[H(L),0,0,0,0,0,0,0,0],se=0;for(z=H(1-L),X=1;n(he[se]/fe[se])>_&&se<8;)P=fe[se++],he[se]=(P-z)/2,fe[se]=(P+z)/2,z=H(P*z),X*=2;Y=X*fe[se]*T;do U=he[se]*p(z=Y)/fe[se],Y=(O(U)+Y)/2;while(--se);return[p(Y),U=o(Y),U/o(Y-z),Y]}function Il(T,L,P){var z=n(T),Y=n(L),U=ne(Y);if(z){var X=1/p(z),fe=1/(y(z)*y(z)),he=-(fe+P*(U*U*X*X)-1+P),se=(P-1)*fe,pe=(-he+H(he*he-4*se))/2;return[xi(a(1/H(pe)),P)*m(T),xi(a(H((pe/fe-1)/P)),1-P)*m(L)]}return[0,xi(a(U),1-P)*m(L)]}function xi(T,L){if(!L)return T;if(L===1)return u(y(T/2+A));for(var P=1,z=H(1-L),Y=H(L),U=0;n(Y)>_;U++){if(T%x){var X=a(z*y(T)/P);X<0&&(X+=x),T+=X+~~(T/x)*x}else T+=T;Y=(P+z)/2,z=H(P*z),Y=((P=Y)-z)/2}return T/(h(2,U)*P)}function so(T,L){var P=(M-1)/(M+1),z=H(1-P*P),Y=xi(b,z*z),U=-1,X=u(y(x/4+n(L)/2)),fe=l(U*X)/H(P),he=jo(fe*o(U*T),fe*p(U*T)),se=Il(he[0],he[1],z*z);return[-se[1],(L>=0?1:-1)*(.5*Y-se[0])]}function jo(T,L){var P=T*T,z=L+1,Y=1-P-L*L;return[.5*((T>=0?b:-b)-i(Y,2*T)),-.25*u(Y*Y+4*P)+.5*u(z*z+P)]}function Hl(T,L){var P=L[0]*L[0]+L[1]*L[1];return[(T[0]*L[0]+T[1]*L[1])/P,(T[1]*L[0]-T[0]*L[1])/P]}so.invert=function(T,L){var P=(M-1)/(M+1),z=H(1-P*P),Y=xi(b,z*z),U=-1,X=bu(.5*Y-L,-T,z*z),fe=Hl(X[0],X[1]),he=i(fe[1],fe[0])/U;return[he,2*a(l(.5/U*u(P*fe[0]*fe[0]+P*fe[1]*fe[1])))-b]};function ks(){return r.geoProjection(Lf(so)).scale(151.496)}function qf(T){var L=p(T),P=o(T),z=l0(T);z.invert=l0(-T);function Y(U,X){var fe=z(U,X);U=fe[0],X=fe[1];var he=p(X),se=o(X),pe=o(U),we=Z(L*he+P*se*pe),Le=p(we),Ie=n(Le)>_?we/Le:1;return[Ie*P*p(U),(n(U)>b?Ie:-Ie)*(L*se-P*he*pe)]}return Y.invert=function(U,X){var fe=H(U*U+X*X),he=-p(fe),se=o(fe),pe=fe*se,we=-X*he,Le=fe*L,Ie=H(pe*pe+we*we-Le*Le),rr=i(pe*Le+we*Ie,we*Le-pe*Ie),fr=(fe>b?-1:1)*i(U*he,fe*o(rr)*se+X*p(rr)*he);return z.invert(fr,rr)},Y}function l0(T){var L=p(T),P=o(T);return function(z,Y){var U=o(Y),X=o(z)*U,fe=p(z)*U,he=p(Y);return[i(fe,X*P-he*L),O(he*P+X*L)]}}function Ss(){var T=0,L=r.geoProjectionMutator(qf),P=L(T),z=P.rotate,Y=P.stream,U=r.geoCircle();return P.parallel=function(X){if(!arguments.length)return T*N;var fe=P.rotate();return L(T=X*I).rotate(fe)},P.rotate=function(X){return arguments.length?(z.call(P,[X[0],X[1]-T*N]),U.center([-X[0],-X[1]]),P):(X=z.call(P),X[1]+=T*N,X)},P.stream=function(X){return X=Y(X),X.sphere=function(){X.polygonStart();var fe=.01,he=U.radius(90-fe)().coordinates[0],se=he.length-1,pe=-1,we;for(X.lineStart();++pe=0;)X.point((we=he[pe])[0],we[1]);X.lineEnd(),X.polygonEnd()},X},P.scale(79.4187).parallel(45).clipAngle(180-.001)}var Cs=3,Ls=O(1-1/Cs)*N,Jo=vn(0);function uo(T){var L=Ls*I,P=Sr(x,L)[0]-Sr(-x,L)[0],z=Jo(0,L)[1],Y=Sr(0,L)[1],U=D-Y,X=R/T,fe=4/R,he=z+U*U*4/R;function se(pe,we){var Le,Ie=n(we);if(Ie>L){var rr=v(T-1,f(0,s((pe+x)/X)));pe+=x*(T-1)/T-rr*X,Le=Sr(pe,Ie),Le[0]=Le[0]*R/P-R*(T-1)/(2*T)+rr*R/T,Le[1]=z+(Le[1]-Y)*4*U/R,we<0&&(Le[1]=-Le[1])}else Le=Jo(pe,we);return Le[0]*=fe,Le[1]/=he,Le}return se.invert=function(pe,we){pe/=fe,we*=he;var Le=n(we);if(Le>z){var Ie=v(T-1,f(0,s((pe+x)/X)));pe=(pe+x*(T-1)/T-Ie*X)*P/R;var rr=Sr.invert(pe,.25*(Le-z)*R/U+Y);return rr[0]-=x*(T-1)/T-Ie*X,we<0&&(rr[1]=-rr[1]),rr}return Jo.invert(pe,we)},se}function fo(T,L){return[T,L&1?90-_:Ls]}function Oi(T,L){return[T,L&1?-90+_:-Ls]}function Df(T){return[T[0]*(1-_),T[1]]}function _u(T){var L=[].concat(t.range(-180,180+T/2,T).map(fo),t.range(180,-180-T/2,-T).map(Oi));return{type:"Polygon",coordinates:[T===180?L.map(Df):L]}}function Bl(){var T=4,L=r.geoProjectionMutator(uo),P=L(T),z=P.stream;return P.lobes=function(Y){return arguments.length?L(T=+Y):T},P.stream=function(Y){var U=P.rotate(),X=z(Y),fe=(P.rotate([0,0]),z(Y));return P.rotate(U),X.sphere=function(){r.geoStream(_u(180/T),fe)},X},P.scale(239.75)}function Ef(T){var L=1+T,P=p(1/L),z=O(P),Y=2*H(x/(U=x+4*z*L)),U,X=.5*Y*(L+H(T*(2+T))),fe=T*T,he=L*L;function se(pe,we){var Le=1-p(we),Ie,rr;if(Le&&Le<2){var fr=b-we,Tr=25,jr;do{var at=p(fr),ot=o(fr),ut=z+i(at,L-ot),vt=1+he-2*L*ot;fr-=jr=(fr-fe*z-L*at+vt*ut-.5*Le*U)/(2*L*at*ut)}while(n(jr)>C&&--Tr>0);Ie=Y*H(vt),rr=pe*ut/x}else Ie=Y*(T+Le),rr=pe*z/x;return[Ie*p(rr),X-Ie*o(rr)]}return se.invert=function(pe,we){var Le=pe*pe+(we-=X)*we,Ie=(1+he-Le/(Y*Y))/(2*L),rr=Z(Ie),fr=p(rr),Tr=z+i(fr,L-Ie);return[O(pe/H(Le))*x/Tr,O(1-2*(rr-fe*z-L*fr+(1+he-2*L*Ie)*Tr)/U)]},se}function s0(){var T=1,L=r.geoProjectionMutator(Ef),P=L(T);return P.ratio=function(z){return arguments.length?L(T=+z):T},P.scale(167.774).center([0,18.67])}var qs=.7109889596207567,Ui=.0528035274542;function Ds(T,L){return L>-qs?(T=Je(T,L),T[1]+=Ui,T):tr(T,L)}Ds.invert=function(T,L){return L>-qs?Je.invert(T,L-Ui):tr.invert(T,L)};function u0(){return r.geoProjection(Ds).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Es(T,L){return n(L)>qs?(T=Je(T,L),T[1]-=L>0?Ui:-Ui,T):tr(T,L)}Es.invert=function(T,L){return n(L)>qs?Je.invert(T,L+(L>0?Ui:-Ui)):tr.invert(T,L)};function Xv(){return r.geoProjection(Es).scale(152.63)}function $o(T,L,P,z){var Y=H(4*x/(2*P+(1+T-L/2)*p(2*P)+(T+L)/2*p(4*P)+L/2*p(6*P))),U=H(z*p(P)*H((1+T*o(2*P)+L*o(4*P))/(1+T+L))),X=P*he(1);function fe(we){return H(1+T*o(2*we)+L*o(4*we))}function he(we){var Le=we*P;return(2*Le+(1+T-L/2)*p(2*Le)+(T+L)/2*p(4*Le)+L/2*p(6*Le))/P}function se(we){return fe(we)*p(we)}var pe=function(we,Le){var Ie=P*ar(he,X*p(Le)/P,Le/x);isNaN(Ie)&&(Ie=P*m(Le));var rr=Y*fe(Ie);return[rr*U*we/x*o(Ie),rr/U*p(Ie)]};return pe.invert=function(we,Le){var Ie=ar(se,Le*U/Y);return[we*x/(o(Ie)*Y*U*fe(Ie)),O(P*he(Ie/P)/X)]},P===0&&(Y=H(z/x),pe=function(we,Le){return[we*Y,p(Le)/Y]},pe.invert=function(we,Le){return[we/Y,O(Le*Y)]}),pe}function Pf(){var T=1,L=0,P=45*I,z=2,Y=r.geoProjectionMutator($o),U=Y(T,L,P,z);return U.a=function(X){return arguments.length?Y(T=+X,L,P,z):T},U.b=function(X){return arguments.length?Y(T,L=+X,P,z):L},U.psiMax=function(X){return arguments.length?Y(T,L,P=+X*I,z):P*N},U.ratio=function(X){return arguments.length?Y(T,L,P,z=+X):z},U.scale(180.739)}function Ol(T,L,P,z,Y,U,X,fe,he,se,pe){if(pe.nanEncountered)return NaN;var we,Le,Ie,rr,fr,Tr,jr,at,ot,ut;if(we=P-L,Le=T(L+we*.25),Ie=T(P-we*.25),isNaN(Le)){pe.nanEncountered=!0;return}if(isNaN(Ie)){pe.nanEncountered=!0;return}return rr=we*(z+4*Le+Y)/12,fr=we*(Y+4*Ie+U)/12,Tr=rr+fr,ut=(Tr-X)/15,se>he?(pe.maxDepthCount++,Tr+ut):Math.abs(ut)>1;do he[Tr]>Ie?fr=Tr:rr=Tr,Tr=rr+fr>>1;while(Tr>rr);var jr=he[Tr+1]-he[Tr];return jr&&(jr=(Ie-he[Tr+1])/jr),(Tr+1+jr)/X}var we=2*pe(1)/x*U/P,Le=function(Ie,rr){var fr=pe(n(p(rr))),Tr=z(fr)*Ie;return fr/=we,[Tr,rr>=0?fr:-fr]};return Le.invert=function(Ie,rr){var fr;return rr*=we,n(rr)<1&&(fr=m(rr)*O(Y(n(rr))*U)),[Ie/z(n(rr)),fr]},Le}function vo(){var T=0,L=2.5,P=1.183136,z=r.geoProjectionMutator(co),Y=z(T,L,P);return Y.alpha=function(U){return arguments.length?z(T=+U,L,P):T},Y.k=function(U){return arguments.length?z(T,L=+U,P):L},Y.gamma=function(U){return arguments.length?z(T,L,P=+U):P},Y.scale(152.63)}function Rf(T,L){return n(T[0]-L[0])<_&&n(T[1]-L[1])<_}function wi(T,L){for(var P=-1,z=T.length,Y=T[0],U,X,fe,he=[];++P=0;--he)P=T[1][he],z=P[0][0],Y=P[0][1],U=P[1][1],X=P[2][0],fe=P[2][1],L.push(wi([[X-_,fe-_],[X-_,U+_],[z+_,U+_],[z+_,Y-_]],30));return{type:"Polygon",coordinates:[t.merge(L)]}}function Yi(T,L,P){var z,Y;function U(he,se){for(var pe=se<0?-1:1,we=L[+(se<0)],Le=0,Ie=we.length-1;Lewe[Le][2][0];++Le);var rr=T(he-we[Le][1][0],se);return rr[0]+=T(we[Le][1][0],pe*se>pe*we[Le][0][1]?we[Le][0][1]:se)[0],rr}P?U.invert=P(U):T.invert&&(U.invert=function(he,se){for(var pe=Y[+(se<0)],we=L[+(se<0)],Le=0,Ie=pe.length;Lerr&&(fr=Ie,Ie=rr,rr=fr),[[we,Ie],[Le,rr]]})}),X):L.map(function(se){return se.map(function(pe){return[[pe[0][0]*N,pe[0][1]*N],[pe[1][0]*N,pe[1][1]*N],[pe[2][0]*N,pe[2][1]*N]]})})},L!=null&&X.lobes(L),X}var Ul=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Jv(){return Yi(Ue,Ul).scale(160.857)}var Gi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Ko(){return Yi(Es,Gi).scale(152.63)}var Qo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function el(){return Yi(Je,Qo).scale(169.529)}var ho=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Ps(){return Yi(Je,ho).scale(169.529).rotate([20,0])}var xu=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Rs(){return Yi(Ds,xu,Qe).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var zs=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function rl(){return Yi(tr,zs).scale(152.63).rotate([-20,0])}function Yl(T,L){return[3/R*T*H(x*x/3-L*L),L]}Yl.invert=function(T,L){return[R/3*T/H(x*x/3-L*L),L]};function Gl(){return r.geoProjection(Yl).scale(158.837)}function wu(T){function L(P,z){if(n(n(z)-b)<_)return[0,z<0?-2:2];var Y=p(z),U=h((1+Y)/(1-Y),T/2),X=.5*(U+1/U)+o(P*=T);return[2*p(P)/X,(U-1/U)/X]}return L.invert=function(P,z){var Y=n(z);if(n(Y-2)<_)return P?null:[0,m(z)*b];if(Y>2)return null;P/=2,z/=2;var U=P*P,X=z*z,fe=2*z/(1+U+X);return fe=h((1+fe)/(1-fe),1/T),[i(2*P,1-U-X)/T,O((fe-1)/(fe+1))]},L}function Mu(){var T=.5,L=r.geoProjectionMutator(wu),P=L(T);return P.spacing=function(z){return arguments.length?L(T=+z):T},P.scale(124.75)}var ui=x/M;function Au(T,L){return[T*(1+H(o(L)))/2,L/(o(L/2)*o(T/6))]}Au.invert=function(T,L){var P=n(T),z=n(L),Y=_,U=b;z_||n(Tr)>_)&&--Y>0);return Y&&[P,z]};function na(){return r.geoProjection(Ia).scale(139.98)}function Sa(T,L){return[p(T)/o(L),y(L)*o(T)]}Sa.invert=function(T,L){var P=T*T,z=L*L,Y=z+1,U=P+Y,X=T?k*H((U-H(U*U-4*P))/P):1/H(Y);return[O(T*X),m(L)*Z(X)]};function Vi(){return r.geoProjection(Sa).scale(144.049).clipAngle(90-.001)}function Ns(T){var L=o(T),P=y(A+T/2);function z(Y,U){var X=U-T,fe=n(X)<_?Y*L:n(fe=A+U/2)<_||n(n(fe)-b)<_?0:Y*X/u(y(fe)/P);return[fe,X]}return z.invert=function(Y,U){var X,fe=U+T;return[n(U)<_?Y/L:n(X=A+fe/2)<_||n(n(X)-b)<_?0:Y*u(y(X)/P)/U,fe]},z}function tl(){return Ur(Ns).parallel(40).scale(158.837)}function Vl(T,L){return[T,1.25*u(y(A+.4*L))]}Vl.invert=function(T,L){return[T,2.5*a(l(.8*L))-.625*x]};function zf(){return r.geoProjection(Vl).scale(108.318)}function c0(T){var L=T.length-1;function P(z,Y){for(var U=o(Y),X=2/(1+U*o(z)),fe=X*U*p(z),he=X*p(Y),se=L,pe=T[se],we=pe[0],Le=pe[1],Ie;--se>=0;)pe=T[se],we=pe[0]+fe*(Ie=we)-he*Le,Le=pe[1]+fe*Le+he*Ie;return we=fe*(Ie=we)-he*Le,Le=fe*Le+he*Ie,[we,Le]}return P.invert=function(z,Y){var U=20,X=z,fe=Y;do{for(var he=L,se=T[he],pe=se[0],we=se[1],Le=0,Ie=0,rr;--he>=0;)se=T[he],Le=pe+X*(rr=Le)-fe*Ie,Ie=we+X*Ie+fe*rr,pe=se[0]+X*(rr=pe)-fe*we,we=se[1]+X*we+fe*rr;Le=pe+X*(rr=Le)-fe*Ie,Ie=we+X*Ie+fe*rr,pe=X*(rr=pe)-fe*we-z,we=X*we+fe*rr-Y;var fr=Le*Le+Ie*Ie,Tr,jr;X-=Tr=(pe*Le+we*Ie)/fr,fe-=jr=(we*Le-pe*Ie)/fr}while(n(Tr)+n(jr)>_*_&&--U>0);if(U){var at=H(X*X+fe*fe),ot=2*a(at*.5),ut=p(ot);return[i(X*ut,at*o(ot)),at?O(fe*ut/at):0]}},P}var $v=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Kv=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Nf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Ff=[[.9245,0],[0,0],[.01943,0]],If=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hf(){return Mi($v,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function v0(){return Mi(Kv,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function h0(){return Mi(Nf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Fs(){return Mi(Ff,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Is(){return Mi(If,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Mi(T,L){var P=r.geoProjection(c0(T)).rotate(L).clipAngle(90),z=r.geoRotation(L),Y=P.center;return delete P.rotate,P.center=function(U){return arguments.length?Y(z(U)):z.invert(Y())},P}var ku=H(6),Hs=H(7);function Su(T,L){var P=O(7*p(L)/(3*ku));return[ku*T*(2*o(2*P/3)-1)/Hs,9*p(P/3)/Hs]}Su.invert=function(T,L){var P=3*O(L*Hs/9);return[T*Hs/(ku*(2*o(2*P/3)-1)),O(p(P)*3*ku/7)]};function d0(){return r.geoProjection(Su).scale(164.859)}function Bf(T,L){for(var P=(1+k)*p(L),z=L,Y=0,U;Y<25&&(z-=U=(p(z/2)+p(z)-P)/(.5*o(z/2)+o(z)),!(n(U)<_));Y++);return[T*(1+2*o(z)/o(z/2))/(3*M),2*H(3)*p(z/2)/H(2+M)]}Bf.invert=function(T,L){var P=L*H(2+M)/(2*H(3)),z=2*O(P);return[3*M*T/(1+2*o(z)/o(z/2)),O((P+p(z))/(1+k))]};function Qv(){return r.geoProjection(Bf).scale(188.209)}function po(T,L){for(var P=H(6/(4+x)),z=(1+x/4)*p(L),Y=L/2,U=0,X;U<25&&(Y-=X=(Y/2+p(Y)-z)/(.5+o(Y)),!(n(X)<_));U++);return[P*(.5+o(Y))*T/1.5,P*Y]}po.invert=function(T,L){var P=H(6/(4+x)),z=L/P;return n(n(z)-b)<_&&(z=z<0?-b:b),[1.5*T/(P*(.5+o(z))),O((z/2+p(z))/(1+x/4))]};function Cu(){return r.geoProjection(po).scale(166.518)}function Wl(T,L){var P=L*L,z=P*P,Y=P*z;return[T*(.84719-.13063*P+Y*Y*(-.04515+.05494*P-.02326*z+.00331*Y)),L*(1.01183+z*z*(-.02625+.01926*P-.00396*z))]}Wl.invert=function(T,L){var P=L,z=25,Y,U,X,fe;do U=P*P,X=U*U,P-=Y=(P*(1.01183+X*X*(-.02625+.01926*U-.00396*X))-L)/(1.01183+X*X*(9*-.02625+11*.01926*U+13*-.00396*X));while(n(Y)>C&&--z>0);return U=P*P,X=U*U,fe=U*X,[T/(.84719-.13063*U+fe*fe*(-.04515+.05494*U-.02326*X+.00331*fe)),P]};function Bs(){return r.geoProjection(Wl).scale(175.295)}function Os(T,L){return[T*(1+o(L))/2,2*(L-y(L/2))]}Os.invert=function(T,L){for(var P=L/2,z=0,Y=1/0;z<10&&n(Y)>_;++z){var U=o(L/2);L-=Y=(L-y(L/2)-P)/(1-.5/(U*U))}return[2*T/(1+o(L)),L]};function Of(){return r.geoProjection(Os).scale(152.63)}var go=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function p0(){return Yi(be(1/0),go).rotate([20,0]).scale(152.63)}function Uf(T,L){var P=p(L),z=o(L),Y=m(T);if(T===0||n(L)===b)return[0,L];if(L===0)return[T,0];if(n(T)===b)return[T*z,b*P];var U=x/(2*T)-2*T/x,X=2*L/x,fe=(1-X*X)/(P-X),he=U*U,se=fe*fe,pe=1+he/se,we=1+se/he,Le=(U*P/fe-U/2)/pe,Ie=(se*P/he+fe/2)/we,rr=Le*Le+z*z/pe,fr=Ie*Ie-(se*P*P/he+fe*P-1)/we;return[b*(Le+H(rr)*Y),b*(Ie+H(fr<0?0:fr)*m(-L*U)*Y)]}Uf.invert=function(T,L){T/=b,L/=b;var P=T*T,z=L*L,Y=P+z,U=x*x;return[T?(Y-1+H((1-Y)*(1-Y)+4*P))/(2*T)*b:0,ar(function(X){return Y*(x*p(X)-2*X)*x+4*X*X*(L-p(X))+2*x*X-U*L},0)]};function g0(){return r.geoProjection(Uf).scale(127.267)}var Yf=1.0148,Lu=.23185,Gf=-.14499,Vf=.02406,e1=Yf,Wf=5*Lu,Ai=7*Gf,Zf=9*Vf,Zl=1.790857183;function Xf(T,L){var P=L*L;return[T,L*(Yf+P*P*(Lu+P*(Gf+Vf*P)))]}Xf.invert=function(T,L){L>Zl?L=Zl:L<-Zl&&(L=-Zl);var P=L,z;do{var Y=P*P;P-=z=(P*(Yf+Y*Y*(Lu+Y*(Gf+Vf*Y)))-L)/(e1+Y*Y*(Wf+Y*(Ai+Zf*Y)))}while(n(z)>_);return[T,P]};function m0(){return r.geoProjection(Xf).scale(139.319)}function nl(T,L){if(n(L)<_)return[T,0];var P=y(L),z=T*p(L);return[p(z)/P,L+(1-o(z))/P]}nl.invert=function(T,L){if(n(L)<_)return[T,0];var P=T*T+L*L,z=L*.5,Y=10,U;do{var X=y(z),fe=1/o(z),he=P-2*L*z+z*z;z-=U=(X*he+2*(z-L))/(2+he*fe*fe+2*(z-L)*X)}while(n(U)>_&&--Y>0);return X=y(z),[(n(L)=0;)if(z=L[fe],P[0]===z[0]&&P[1]===z[1]){if(U)return[U,P];U=P}}}function x0(T){for(var L=T.length,P=[],z=T[L-1],Y=0;Y0?[-z[0],0]:[180-z[0],180])};var L=qu.map(function(P){return{face:P,project:T(P)}});return[-1,0,0,1,0,1,4,5].forEach(function(P,z){var Y=L[P];Y&&(Y.children||(Y.children=[])).push(L[z])}),Xl(L[0],function(P,z){return L[P<-x/2?z<0?6:4:P<0?z<0?2:0:Pz^Ie>z&&P<(Le-se)*(z-pe)/(Ie-pe)+se&&(Y=!Y)}return Y}function Pu(T,L){var P=L.stream,z;if(!P)throw new Error("invalid projection");switch(T&&T.type){case"Feature":z=T0;break;case"FeatureCollection":z=A0;break;default:z=Ru;break}return z(T,P)}function A0(T,L){return{type:"FeatureCollection",features:T.features.map(function(P){return T0(P,L)})}}function T0(T,L){return{type:"Feature",id:T.id,properties:T.properties,geometry:Ru(T.geometry,L)}}function jf(T,L){return{type:"GeometryCollection",geometries:T.geometries.map(function(P){return Ru(P,L)})}}function Ru(T,L){if(!T)return null;if(T.type==="GeometryCollection")return jf(T,L);var P;switch(T.type){case"Point":P=Jl;break;case"MultiPoint":P=Jl;break;case"LineString":P=zu;break;case"MultiLineString":P=zu;break;case"Polygon":P=Xs;break;case"MultiPolygon":P=Xs;break;case"Sphere":P=Xs;break;default:return null}return r.geoStream(T,L(P)),P.result()}var jn=[],fi=[],Jl={point:function(T,L){jn.push([T,L])},result:function(){var T=jn.length?jn.length<2?{type:"Point",coordinates:jn[0]}:{type:"MultiPoint",coordinates:jn}:null;return jn=[],T}},zu={lineStart:Eu,point:function(T,L){jn.push([T,L])},lineEnd:function(){jn.length&&(fi.push(jn),jn=[])},result:function(){var T=fi.length?fi.length<2?{type:"LineString",coordinates:fi[0]}:{type:"MultiLineString",coordinates:fi}:null;return fi=[],T}},Xs={polygonStart:Eu,lineStart:Eu,point:function(T,L){jn.push([T,L])},lineEnd:function(){var T=jn.length;if(T){do jn.push(jn[0].slice());while(++T<4);fi.push(jn),jn=[]}},polygonEnd:Eu,result:function(){if(!fi.length)return null;var T=[],L=[];return fi.forEach(function(P){Zs(P)?T.push([P]):L.push(P)}),L.forEach(function(P){var z=P[0];T.some(function(Y){if(M0(Y[0],z))return Y.push(P),!0})||T.push([P])}),fi=[],T.length?T.length>1?{type:"MultiPolygon",coordinates:T}:{type:"Polygon",coordinates:T[0]}:null}};function Jf(T){var L=T(b,0)[0]-T(-b,0)[0];function P(z,Y){var U=n(z)0?z-x:z+x,Y),fe=(X[0]-X[1])*k,he=(X[0]+X[1])*k;if(U)return[fe,he];var se=L*k,pe=fe>0^he>0?-1:1;return[pe*fe-m(he)*se,pe*he-m(fe)*se]}return T.invert&&(P.invert=function(z,Y){var U=(z+Y)*k,X=(Y-z)*k,fe=n(U)<.5*L&&n(X)<.5*L;if(!fe){var he=L*k,se=U>0^X>0?-1:1,pe=-se*z+(X>0?1:-1)*he,we=-se*Y+(U>0?1:-1)*he;U=(-pe-we)*k,X=(pe-we)*k}var Le=T.invert(U,X);return fe||(Le[0]+=U>0?x:-x),Le}),r.geoProjection(P).rotate([-90,-90,45]).clipAngle(180-.001)}function B(){return Jf(yu).scale(176.423)}function J(){return Jf(so).scale(111.48)}function ve(T,L){if(!(0<=(L=+L)&&L<=20))throw new Error("invalid digits");function P(se){var pe=se.length,we=2,Le=new Array(pe);for(Le[0]=+se[0].toFixed(L),Le[1]=+se[1].toFixed(L);we2||Ie[0]!=pe[0]||Ie[1]!=pe[1])&&(we.push(Ie),pe=Ie)}return we.length===1&&se.length>1&&we.push(P(se[se.length-1])),we}function U(se){return se.map(Y)}function X(se){if(se==null)return se;var pe;switch(se.type){case"GeometryCollection":pe={type:"GeometryCollection",geometries:se.geometries.map(X)};break;case"Point":pe={type:"Point",coordinates:P(se.coordinates)};break;case"MultiPoint":pe={type:se.type,coordinates:z(se.coordinates)};break;case"LineString":pe={type:se.type,coordinates:Y(se.coordinates)};break;case"MultiLineString":case"Polygon":pe={type:se.type,coordinates:U(se.coordinates)};break;case"MultiPolygon":pe={type:"MultiPolygon",coordinates:se.coordinates.map(U)};break;default:return se}return se.bbox!=null&&(pe.bbox=se.bbox),pe}function fe(se){var pe={type:"Feature",properties:se.properties,geometry:X(se.geometry)};return se.id!=null&&(pe.id=se.id),se.bbox!=null&&(pe.bbox=se.bbox),pe}if(T!=null)switch(T.type){case"Feature":return fe(T);case"FeatureCollection":{var he={type:"FeatureCollection",features:T.features.map(fe)};return T.bbox!=null&&(he.bbox=T.bbox),he}default:return X(T)}return T}function oe(T){var L=p(T);function P(z,Y){var U=L?y(z*L/2)/L:z/2;if(!Y)return[2*U,-T];var X=2*a(U*p(Y)),fe=1/y(Y);return[p(X)*fe,Y+(1-o(X))*fe-T]}return P.invert=function(z,Y){if(n(Y+=T)<_)return[L?2*a(L*z/2)/L:z,0];var U=z*z+Y*Y,X=0,fe=10,he;do{var se=y(X),pe=1/o(X),we=U-2*Y*X+X*X;X-=he=(se*we+2*(X-Y))/(2+we*pe*pe+2*(X-Y)*se)}while(n(he)>_&&--fe>0);var Le=z*(se=y(X)),Ie=y(n(Y)0?b:-b)*(he+Y*(pe-X)/2+Y*Y*(pe-2*he+X)/2)]}je.invert=function(T,L){var P=L/b,z=P*90,Y=v(18,n(z/5)),U=f(0,s(Y));do{var X=Oe[U][1],fe=Oe[U+1][1],he=Oe[v(19,U+2)][1],se=he-X,pe=he-2*fe+X,we=2*(n(P)-fe)/se,Le=pe/se,Ie=we*(1-Le*we*(1-2*Le*we));if(Ie>=0||U===1){z=(L>=0?5:-5)*(Ie+Y);var rr=50,fr;do Y=v(18,n(z)/5),U=s(Y),Ie=Y-U,X=Oe[U][1],fe=Oe[U+1][1],he=Oe[v(19,U+2)][1],z-=(fr=(L>=0?b:-b)*(fe+Ie*(he-X)/2+Ie*Ie*(he-2*fe+X)/2)-L)*N;while(n(fr)>C&&--rr>0);break}}while(--U>=0);var Tr=Oe[U][0],jr=Oe[U+1][0],at=Oe[v(19,U+2)][0];return[T/(jr+Ie*(at-Tr)/2+Ie*Ie*(at-2*jr+Tr)/2),z*I]};function ir(){return r.geoProjection(je).scale(152.63)}function sr(T){function L(P,z){var Y=o(z),U=(T-1)/(T-Y*o(P));return[U*Y*p(P),U*p(z)]}return L.invert=function(P,z){var Y=P*P+z*z,U=H(Y),X=(T-H(1-Y*(T+1)/(T-1)))/((T-1)/U+U/(T-1));return[i(P*X,U*H(1-X*X)),U?O(z*X/U):0]},L}function _r(T,L){var P=sr(T);if(!L)return P;var z=o(L),Y=p(L);function U(X,fe){var he=P(X,fe),se=he[1],pe=se*Y/(T-1)+z;return[he[0]*z/pe,se/pe]}return U.invert=function(X,fe){var he=(T-1)/(T-1-fe*Y);return P.invert(he*X,he*fe*z)},U}function $e(){var T=2,L=0,P=r.geoProjectionMutator(_r),z=P(T,L);return z.distance=function(Y){return arguments.length?P(T=+Y,L):T},z.tilt=function(Y){return arguments.length?P(T,L=Y*I):L*N},z.scale(432.147).clipAngle(Z(1/T)*N-1e-6)}var vr=1e-4,ur=1e4,Mr=-180,qr=Mr+vr,rt=180,Jr=rt-vr,tt=-90,nt=tt+vr,Dr=90,Hr=Dr-vr;function it(T){return T.length>0}function pt(T){return Math.floor(T*ur)/ur}function Yt(T){return T===tt||T===Dr?[0,T]:[Mr,pt(T)]}function nn(T){var L=T[0],P=T[1],z=!1;return L<=qr?(L=Mr,z=!0):L>=Jr&&(L=rt,z=!0),P<=nt?(P=tt,z=!0):P>=Hr&&(P=Dr,z=!0),z?[L,P]:T}function Wt(T){return T.map(nn)}function pn(T,L,P){for(var z=0,Y=T.length;z=Jr||pe<=nt||pe>=Hr){U[X]=nn(he);for(var we=X+1;weqr&&Ient&&rr=fe)break;P.push({index:-1,polygon:L,ring:U=U.slice(we-1)}),U[0]=Yt(U[0][1]),X=-1,fe=U.length}}}}function qt(T){var L,P=T.length,z={},Y={},U,X,fe,he,se;for(L=0;L0?x-fe:fe)*N],se=r.geoProjection(T(X)).rotate(he),pe=r.geoRotation(he),we=se.center;return delete se.rotate,se.center=function(Le){return arguments.length?we(pe(Le)):pe.invert(we())},se.clipAngle(90)}function ya(T){var L=o(T);function P(z,Y){var U=r.geoGnomonicRaw(z,Y);return U[0]*=L,U}return P.invert=function(z,Y){return r.geoGnomonicRaw.invert(z/L,Y)},P}function Ja(){return Zi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Zi(T,L){return Gn(ya,T,L)}function ki(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var L=-T/2,P=-L,z=T*T,Y=y(P),U=.5/p(P);function X(fe,he){var se=Z(o(he)*o(fe-L)),pe=Z(o(he)*o(fe-P)),we=he<0?-1:1;return se*=se,pe*=pe,[(se-pe)/(2*T),we*H(4*z*pe-(z-se+pe)*(z-se+pe))/(2*T)]}return X.invert=function(fe,he){var se=he*he,pe=o(H(se+(Le=fe+L)*Le)),we=o(H(se+(Le=fe+P)*Le)),Le,Ie;return[i(Ie=pe-we,Le=(pe+we)*Y),(he<0?-1:1)*Z(H(Le*Le+Ie*Ie)*U)]},X}function ol(){return ci([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function ci(T,L){return Gn(ki,T,L)}function ll(T,L){if(n(L)<_)return[T,0];var P=n(L/b),z=O(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(z/2)];var Y=o(z),U=n(x/T-T/x)/2,X=U*U,fe=Y/(P+Y-1),he=fe*(2/P-1),se=he*he,pe=se+X,we=fe-se,Le=X+fe;return[m(T)*x*(U*we+H(X*we*we-pe*(fe*fe-se)))/pe,m(L)*x*(he*Le-U*H((X+1)*pe-Le*Le))/pe]}ll.invert=function(T,L){if(n(L)<_)return[T,0];if(n(T)<_)return[0,b*p(2*a(L/x))];var P=(T/=x)*T,z=(L/=x)*L,Y=P+z,U=Y*Y,X=-n(L)*(1+Y),fe=X-2*z+P,he=-2*X+1+2*z+U,se=z/he+(2*fe*fe*fe/(he*he*he)-9*X*fe/(he*he))/27,pe=(X-fe*fe/(3*he))/he,we=2*H(-pe/3),Le=Z(3*se/(pe*we))/3;return[x*(Y-1+H(1+2*(P-z)+U))/(2*T),m(L)*x*(-we*o(Le+x/3)-fe/(3*he))]};function $l(){return r.geoProjection(ll).scale(79.4183)}function Nu(T,L){if(n(L)<_)return[T,0];var P=n(L/b),z=O(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(z/2)];var Y=o(z),U=n(x/T-T/x)/2,X=U*U,fe=Y*(H(1+X)-U*Y)/(1+X*P*P);return[m(T)*x*fe,m(L)*x*H(1-fe*(2*U+fe))]}Nu.invert=function(T,L){if(!T)return[0,b*p(2*a(L/x))];var P=n(T/x),z=(1-P*P-(L/=x)*L)/(2*P),Y=z*z,U=H(Y+1);return[m(T)*x*(U-z),m(L)*b*p(2*i(H((1-2*z*P)*(z+U)-P),H(U+z+P)))]};function k0(){return r.geoProjection(Nu).scale(79.4183)}function S0(T,L){if(n(L)<_)return[T,0];var P=L/b,z=O(P);if(n(T)<_||n(n(L)-b)<_)return[0,x*y(z/2)];var Y=(x/T-T/x)/2,U=P/(1+o(z));return[x*(m(T)*H(Y*Y+1-U*U)-Y),x*U]}S0.invert=function(T,L){if(!L)return[T,0];var P=L/x,z=(x*x*(1-P*P)-T*T)/(2*x*T);return[T?x*(m(T)*H(z*z+1)-z):0,b*p(2*a(P))]};function od(){return r.geoProjection(S0).scale(79.4183)}function $f(T,L){if(!L)return[T,0];var P=n(L);if(!T||P===b)return[0,L];var z=P/b,Y=z*z,U=(8*z-Y*(Y+2)-5)/(2*Y*(z-1)),X=U*U,fe=z*U,he=Y+X+2*fe,se=z+3*U,pe=T/b,we=pe+1/pe,Le=m(n(T)-b)*H(we*we-4),Ie=Le*Le,rr=he*(Y+X*Ie-1)+(1-Y)*(Y*(se*se+4*X)+12*fe*X+4*X*X),fr=(Le*(he+X-1)+2*H(rr))/(4*he+Ie);return[m(T)*b*fr,m(L)*b*H(1+Le*n(fr)-fr*fr)]}$f.invert=function(T,L){var P;if(!T||!L)return[T,L];L/=x;var z=m(T)*T/b,Y=(z*z-1+4*L*L)/n(z),U=Y*Y,X=2*L,fe=50;do{var he=X*X,se=(8*X-he*(he+2)-5)/(2*he*(X-1)),pe=(3*X-he*X-10)/(2*he*X),we=se*se,Le=X*se,Ie=X+se,rr=Ie*Ie,fr=X+3*se,Tr=rr*(he+we*U-1)+(1-he)*(he*(fr*fr+4*we)+we*(12*Le+4*we)),jr=-2*Ie*(4*Le*we+(1-4*he+3*he*he)*(1+pe)+we*(-6+14*he-U+(-8+8*he-2*U)*pe)+Le*(-8+12*he+(-10+10*he-U)*pe)),at=H(Tr),ot=Y*(rr+we-1)+2*at-z*(4*rr+U),ut=Y*(2*se*pe+2*Ie*(1+pe))+jr/at-8*Ie*(Y*(-1+we+rr)+2*at)*(1+pe)/(U+4*rr);X-=P=ot/ut}while(P>_&&--fe>0);return[m(T)*(H(Y*Y+4)+Y)*x/4,b*X]};function Xi(){return r.geoProjection($f).scale(127.16)}function ld(T,L,P,z,Y){function U(X,fe){var he=P*p(z*fe),se=H(1-he*he),pe=H(2/(1+se*o(X*=Y)));return[T*se*pe*p(X),L*he*pe]}return U.invert=function(X,fe){var he=X/T,se=fe/L,pe=H(he*he+se*se),we=2*O(pe/2);return[i(X*y(we),T*pe)/Y,pe&&O(fe*p(we)/(L*P*pe))/z]},U}function sd(T,L,P,z){var Y=x/3;T=f(T,_),L=f(L,_),T=v(T,b),L=v(L,x-_),P=f(P,0),P=v(P,100-_),z=f(z,_);var U=P/100+1,X=z/100,fe=Z(U*o(Y))/Y,he=p(T)/p(fe*b),se=L/x,pe=H(X*p(T/2)/p(L/2)),we=pe/H(se*he*fe),Le=1/(pe*H(se*he*fe));return ld(we,Le,he,fe,se)}function C0(){var T=65*I,L=60*I,P=20,z=200,Y=r.geoProjectionMutator(sd),U=Y(T,L,P,z);return U.poleline=function(X){return arguments.length?Y(T=+X*I,L,P,z):T*N},U.parallels=function(X){return arguments.length?Y(T,L=+X*I,P,z):L*N},U.inflation=function(X){return arguments.length?Y(T,L,P=+X,z):P},U.ratio=function(X){return arguments.length?Y(T,L,P,z=+X):z},U.scale(163.775)}function i1(){return C0().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ud=4*x+3*H(3),fd=2*H(2*x*H(3)/ud),cd=hr(fd*H(3)/x,fd,ud/6);function L0(){return r.geoProjection(cd).scale(176.84)}function Kf(T,L){return[T*H(1-3*L*L/(x*x)),L]}Kf.invert=function(T,L){return[T/H(1-3*L*L/(x*x)),L]};function vd(){return r.geoProjection(Kf).scale(152.63)}function o1(T,L){var P=o(L),z=o(T)*P,Y=1-z,U=o(T=i(p(T)*P,-p(L))),X=p(T);return P=H(1-z*z),[X*P-U*Y,-U*P-X*Y]}o1.invert=function(T,L){var P=(T*T+L*L)/-2,z=H(-P*(2+P)),Y=L*P+T*z,U=T*P-L*z,X=H(U*U+Y*Y);return[i(z*Y,X*(1+P)),X?-O(z*U/X):0]};function Ey(){return r.geoProjection(o1).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function l1(T,L){var P=ze(T,L);return[(P[0]+T/b)/2,(P[1]+L)/2]}l1.invert=function(T,L){var P=T,z=L,Y=25;do{var U=o(z),X=p(z),fe=p(2*z),he=X*X,se=U*U,pe=p(P),we=o(P/2),Le=p(P/2),Ie=Le*Le,rr=1-se*we*we,fr=rr?Z(U*we)*H(Tr=1/rr):Tr=0,Tr,jr=.5*(2*fr*U*Le+P/b)-T,at=.5*(fr*X+z)-L,ot=.5*Tr*(se*Ie+fr*U*we*he)+.5/b,ut=Tr*(pe*fe/4-fr*X*Le),vt=.125*Tr*(fe*Le-fr*X*se*pe),sn=.5*Tr*(he*we+fr*Ie*U)+.5,An=ut*vt-sn*ot,Nt=(at*ut-jr*sn)/An,In=(jr*vt-at*ot)/An;P-=Nt,z-=In}while((n(Nt)>_||n(In)>_)&&--Y>0);return[P,z]};function Si(){return r.geoProjection(l1).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=ke,e.geoAiryRaw=le,e.geoAitoff=Fe,e.geoAitoffRaw=ze,e.geoArmadillo=Ce,e.geoArmadilloRaw=Xe,e.geoAugust=ce,e.geoAugustRaw=er,e.geoBaker=G,e.geoBakerRaw=de,e.geoBerghaus=$,e.geoBerghausRaw=Q,e.geoBertin1953=cr,e.geoBertin1953Raw=Be,e.geoBoggs=kr,e.geoBoggsRaw=Ue,e.geoBonne=dr,e.geoBonneRaw=Ze,e.geoBottomley=mr,e.geoBottomleyRaw=Ar,e.geoBromley=Ir,e.geoBromleyRaw=br,e.geoChamberlin=nr,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=Ke,e.geoCollignon=Yr,e.geoCollignonRaw=Sr,e.geoCraig=st,e.geoCraigRaw=zr,e.geoCraster=$t,e.geoCrasterRaw=St,e.geoCylindricalEqualArea=hn,e.geoCylindricalEqualAreaRaw=vn,e.geoCylindricalStereographic=Ot,e.geoCylindricalStereographicRaw=qn,e.geoEckert1=Kt,e.geoEckert1Raw=en,e.geoEckert2=la,e.geoEckert2Raw=rn,e.geoEckert3=Un,e.geoEckert3Raw=xn,e.geoEckert4=on,e.geoEckert4Raw=Gr,e.geoEckert5=tn,e.geoEckert5Raw=Ct,e.geoEckert6=Zn,e.geoEckert6Raw=Nn,e.geoEisenlohr=ma,e.geoEisenlohrRaw=ga,e.geoFahey=Tn,e.geoFaheyRaw=Qt,e.geoFoucaut=oo,e.geoFoucautRaw=Mn,e.geoFoucautSinusoidal=As,e.geoFoucautSinusoidalRaw=yi,e.geoGilbert=Ts,e.geoGingery=Vo,e.geoGingeryRaw=Go,e.geoGinzburg4=Lt,e.geoGinzburg4Raw=Qr,e.geoGinzburg5=Br,e.geoGinzburg5Raw=Ht,e.geoGinzburg6=ln,e.geoGinzburg6Raw=Xn,e.geoGinzburg8=At,e.geoGinzburg8Raw=Pn,e.geoGinzburg9=Wo,e.geoGinzburg9Raw=Xa,e.geoGringorten=Xo,e.geoGringortenRaw=yu,e.geoGuyou=ks,e.geoGuyouRaw=so,e.geoHammer=He,e.geoHammerRaw=be,e.geoHammerRetroazimuthal=Ss,e.geoHammerRetroazimuthalRaw=qf,e.geoHealpix=Bl,e.geoHealpixRaw=uo,e.geoHill=s0,e.geoHillRaw=Ef,e.geoHomolosine=Xv,e.geoHomolosineRaw=Es,e.geoHufnagel=Pf,e.geoHufnagelRaw=$o,e.geoHyperelliptical=vo,e.geoHyperellipticalRaw=co,e.geoInterrupt=Yi,e.geoInterruptedBoggs=Jv,e.geoInterruptedHomolosine=Ko,e.geoInterruptedMollweide=el,e.geoInterruptedMollweideHemispheres=Ps,e.geoInterruptedSinuMollweide=Rs,e.geoInterruptedSinusoidal=rl,e.geoKavrayskiy7=Gl,e.geoKavrayskiy7Raw=Yl,e.geoLagrange=Mu,e.geoLagrangeRaw=wu,e.geoLarrivee=Tu,e.geoLarriveeRaw=Au,e.geoLaskowski=na,e.geoLaskowskiRaw=Ia,e.geoLittrow=Vi,e.geoLittrowRaw=Sa,e.geoLoximuthal=tl,e.geoLoximuthalRaw=Ns,e.geoMiller=zf,e.geoMillerRaw=Vl,e.geoModifiedStereographic=Mi,e.geoModifiedStereographicRaw=c0,e.geoModifiedStereographicAlaska=Hf,e.geoModifiedStereographicGs48=v0,e.geoModifiedStereographicGs50=h0,e.geoModifiedStereographicMiller=Fs,e.geoModifiedStereographicLee=Is,e.geoMollweide=pr,e.geoMollweideRaw=Je,e.geoMtFlatPolarParabolic=d0,e.geoMtFlatPolarParabolicRaw=Su,e.geoMtFlatPolarQuartic=Qv,e.geoMtFlatPolarQuarticRaw=Bf,e.geoMtFlatPolarSinusoidal=Cu,e.geoMtFlatPolarSinusoidalRaw=po,e.geoNaturalEarth2=Bs,e.geoNaturalEarth2Raw=Wl,e.geoNellHammer=Of,e.geoNellHammerRaw=Os,e.geoInterruptedQuarticAuthalic=p0,e.geoNicolosi=g0,e.geoNicolosiRaw=Uf,e.geoPatterson=m0,e.geoPattersonRaw=Xf,e.geoPolyconic=y0,e.geoPolyconicRaw=nl,e.geoPolyhedral=Xl,e.geoPolyhedralButterfly=Ys,e.geoPolyhedralCollignon=a1,e.geoPolyhedralWaterman=Vs,e.geoProject=Pu,e.geoGringortenQuincuncial=B,e.geoPeirceQuincuncial=J,e.geoPierceQuincuncial=J,e.geoQuantize=ve,e.geoQuincuncial=Jf,e.geoRectangularPolyconic=Me,e.geoRectangularPolyconicRaw=oe,e.geoRobinson=ir,e.geoRobinsonRaw=je,e.geoSatellite=$e,e.geoSatelliteRaw=_r,e.geoSinuMollweide=u0,e.geoSinuMollweideRaw=Ds,e.geoSinusoidal=Ye,e.geoSinusoidalRaw=tr,e.geoStitch=gn,e.geoTimes=Gt,e.geoTimesRaw=Vr,e.geoTwoPointAzimuthal=Zi,e.geoTwoPointAzimuthalRaw=ya,e.geoTwoPointAzimuthalUsa=Ja,e.geoTwoPointEquidistant=ci,e.geoTwoPointEquidistantRaw=ki,e.geoTwoPointEquidistantUsa=ol,e.geoVanDerGrinten=$l,e.geoVanDerGrintenRaw=ll,e.geoVanDerGrinten2=k0,e.geoVanDerGrinten2Raw=Nu,e.geoVanDerGrinten3=od,e.geoVanDerGrinten3Raw=S0,e.geoVanDerGrinten4=Xi,e.geoVanDerGrinten4Raw=$f,e.geoWagner=C0,e.geoWagner7=i1,e.geoWagnerRaw=sd,e.geoWagner4=L0,e.geoWagner4Raw=cd,e.geoWagner6=vd,e.geoWagner6Raw=Kf,e.geoWiechel=Ey,e.geoWiechelRaw=o1,e.geoWinkel3=Si,e.geoWinkel3Raw=l1,Object.defineProperty(e,"__esModule",{value:!0})}))});var DF=te((W1e,qF)=>{"use strict";var pa=Tt(),y_=gr(),Oie=dt(),Uv=Math.PI/180,Kc=180/Math.PI,__={cursor:"pointer"},x_={cursor:"auto"};function Uie(e,r){var t=e.projection,n;return r._isScoped?n=Yie:r._isClipped?n=Vie:n=Gie,n(e,t)}qF.exports=Uie;function w_(e,r){return pa.behavior.zoom().translate(r.translate()).scale(r.scale())}function M_(e,r,t){var n=e.id,a=e.graphDiv,i=a.layout,o=i[n],l=a._fullLayout,s=l[n],u={},f={};function v(h,d){u[n+"."+h]=y_.nestedProperty(o,h).get(),Oie.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=y_.nestedProperty(s,h);m.get()!==d&&(m.set(d),y_.nestedProperty(o,h).set(d),f[n+"."+h]=d)}t(v),v("projection.scale",r.scale()/e.fitScale),v("fitbounds",!1),a.emit("plotly_relayout",f)}function Yie(e,r){var t=w_(e,r);function n(){pa.select(this).style(__)}function a(){r.scale(pa.event.scale).translate(pa.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){pa.select(this).style(x_),M_(e,r,i)}return t.on("zoomstart",n).on("zoom",a).on("zoomend",o),t}function Gie(e,r){var t=w_(e,r),n=2,a,i,o,l,s,u,f,v,h;function d(x){return r.invert(x)}function m(x){var b=d(x);if(!b)return!0;var A=r(b);return Math.abs(A[0]-x[0])>n||Math.abs(A[1]-x[1])>n}function p(){pa.select(this).style(__),a=pa.mouse(this),i=r.rotate(),o=r.translate(),l=i,s=d(a)}function y(){if(u=pa.mouse(this),m(a)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(pa.event.scale),r.translate([o[0],pa.event.translate[1]]),s?d(u)&&(v=d(u),f=[l[0]+(v[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(a=u,s=d(a)),h=!0,e.render(!0);var x=r.rotate(),b=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":b[0],"geo.center.lat":b[1],"geo.projection.rotation.lon":-x[0]})}function _(){pa.select(this).style(x_),h&&M_(e,r,C)}function C(x){var b=r.rotate(),A=r.invert(e.midPt);x("projection.rotation.lon",-b[0]),x("center.lon",A[0]),x("center.lat",A[1])}return t.on("zoomstart",p).on("zoom",y).on("zoomend",_),t}function Vie(e,r){var t={r:r.rotate(),k:r.scale()},n=w_(e,r),a=Qie(n,"zoomstart","zoom","zoomend"),i=0,o=n.on,l;n.on("zoomstart",function(){pa.select(this).style(__);var h=pa.mouse(this),d=r.rotate(),m=d,p=r.translate(),y=Wie(d);l=my(r,h),o.call(n,"zoom",function(){var _=pa.mouse(this);if(r.scale(t.k=pa.event.scale),!l)h=_,l=my(r,h);else if(my(r,_)){r.rotate(d).translate(p);var C=my(r,_),x=Xie(l,C),b=Jie(Zie(y,x)),A=t.r=jie(b,l,m);(!isFinite(A[0])||!isFinite(A[1])||!isFinite(A[2]))&&(A=m),r.rotate(A),m=A}u(a.of(this,arguments))}),s(a.of(this,arguments))}).on("zoomend",function(){pa.select(this).style(x_),o.call(n,"zoom",null),f(a.of(this,arguments)),M_(e,r,v)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function s(h){i++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function v(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return pa.rebind(n,a,"on")}function my(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&$ie(t)}function Wie(e){var r=.5*e[0]*Uv,t=.5*e[1]*Uv,n=.5*e[2]*Uv,a=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(n),u=Math.cos(n);return[i*l*u+a*o*s,a*l*u-i*o*s,i*o*u+a*l*s,i*l*s-a*o*u]}function Zie(e,r){var t=e[0],n=e[1],a=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-n*l-a*s-i*u,t*l+n*o+a*u-i*s,t*s-n*u+a*o+i*l,t*u+n*s-a*l+i*o]}function Xie(e,r){if(!(!e||!r)){var t=Kie(e,r),n=Math.sqrt(LF(t,t)),a=.5*Math.acos(Math.max(-1,Math.min(1,LF(e,r)))),i=Math.sin(a)/n;return n&&[Math.cos(a),t[2]*i,-t[1]*i,t[0]*i]}}function jie(e,r,t){var n=b_(r,2,e[0]);n=b_(n,1,e[1]),n=b_(n,0,e[2]-t[2]);var a=r[0],i=r[1],o=r[2],l=n[0],s=n[1],u=n[2],f=Math.atan2(i,a)*Kc,v=Math.sqrt(a*a+i*i),h,d;Math.abs(s)>v?(d=(s>0?90:-90)-f,h=0):(d=Math.asin(s/v)*Kc-f,h=Math.sqrt(v*v-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*Kc,y=(Math.atan2(u,l)-Math.atan2(o,-h))*Kc,_=SF(t[0],t[1],d,p),C=SF(t[0],t[1],m,y);return _<=C?[d,p,t[2]]:[m,y,t[2]]}function SF(e,r,t,n){var a=CF(t-e),i=CF(n-r);return Math.sqrt(a*a+i*i)}function CF(e){return(e%360+540)%360-180}function b_(e,r,t){var n=t*Uv,a=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(n),s=Math.sin(n);return a[i]=e[i]*l-e[o]*s,a[o]=e[o]*l+e[i]*s,a}function Jie(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Kc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Kc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Kc]}function $ie(e){var r=e[0]*Uv,t=e[1]*Uv,n=Math.cos(t);return[n*Math.cos(r),n*Math.sin(r),Math.sin(t)]}function LF(e,r){for(var t=0,n=0,a=e.length;n{"use strict";var gu=Tt(),k_=m_(),eoe=k_.geoPath,roe=k_.geoDistance,toe=kF(),noe=dt(),Qc=gr(),aoe=Qc.strTranslate,yy=Pt(),ed=cn(),EF=Ml(),ioe=ha(),T_=Dn(),PF=tf().getAutoRange,A_=ko(),ooe=uu().prepSelect,loe=uu().clearOutline,soe=uu().selectOnClick,uoe=DF(),mi=Jh(),zF=Ov(),{getFitboundsLonRange:foe,unwrapLonRange:coe}=zF,NF=ty(),voe=e_().feature;function FF(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var zl=FF.prototype;IF.exports=function(r){return new FF(r)};zl.plot=function(e,r,t,n){var a=this;if(n)return a.update(e,r,!0);a._geoCalcData=e,a._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in mi.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(r,n),this.updateDims(r,n),this.updateFx(r,n),ioe.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};zl.updateProjection=function(e,r){var Xe;var t=this.graphDiv,n=r[this.id],a=r._size,i=n.domain,o=n.projection,l=n.lonaxis,s=n.lataxis,u=l._ax,f=s._ax,v=this.projection=hoe(n),h=[[a.l+a.w*i.x[0],a.t+a.h*(1-i.y[1])],[a.l+a.w*i.x[1],a.t+a.h*(1-i.y[0])]],d=n.center||{},m=o.rotation||{},p=l.range||[],y=s.range||[];if(n.fitbounds){if(u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=PF(t,u),f.range=PF(t,f),!this.hasChoropleth&&n.fitbounds==="locations"){for(var _=[],C=!1,x=0;x0?(u.range[1]-u.range[0]-R)/2*(D[1]-D[0])/R:0;u.range=[D[0]-N,D[1]+N]}}}var I=(u.range[0]+u.range[1])/2,W=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:I,lat:W};else if(n._isClipped){d={lon:I,lat:W},m={lon:I,lat:W,roll:m.roll};var O=o.type,Z=mi.lonaxisSpan[O]/2||180,H=mi.lataxisSpan[O]/2||90;p=[I-Z,I+Z],y=[W-H,W+H]}else d={lon:I,lat:W},m={lon:I,lat:m.lat,roll:m.roll}}v.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var ee=RF(p,y);v.fitExtent(h,ee);var ne=this.bounds=v.getBounds(ee),re=this.fitScale=v.scale(),K=v.translate();if(n.fitbounds){var ue=v.getBounds(RF(u.range,f.range)),le=Math.min((ne[1][0]-ne[0][0])/(ue[1][0]-ue[0][0]),(ne[1][1]-ne[0][1])/(ue[1][1]-ue[0][1]));isFinite(le)?v.scale(le*re):Qc.warn("Something went wrong during"+this.id+"fitbounds computations.")}else v.scale(o.scale*re);var ke=this.midPt=[(ne[0][0]+ne[1][0])/2,(ne[0][1]+ne[1][1])/2];if(v.translate([K[0]+(ke[0]-K[0]),K[1]+(ke[1]-K[1])]).clipExtent(ne),n._isAlbersUsa){var ze=v([d.lon,d.lat]),Fe=v.translate();v.translate([Fe[0]-(ze[0]-Fe[0]),Fe[1]-(ze[1]-Fe[1])])}};zl.updateBaseLayers=function(e,r){var t=this,n=t.topojson,a=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!mi.lineLayers[h]}function s(h){return!!mi.fillLayers[h]}var u=this.hasChoropleth?mi.layersForChoropleth:mi.layers,f=u.filter(function(h){return l(h)||s(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),v=t.framework.selectAll(".layer").data(f,String);v.exit().each(function(h){delete a[h],delete i[h],gu.select(this).remove()}),v.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=a[h]=gu.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):s(h)&&(i[h]=d.append("path").style("stroke","none"))}),v.order(),v.each(function(h){var d=i[h],m=mi.layerNameToAdjective[h];h==="frame"?d.datum(mi.sphereSVG):l(h)||s(h)?d.datum(voe(n,n.objects[h])):o(h)&&d.datum(doe(h,r,e)).call(yy.stroke,r[h].gridcolor).call(ed.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(yy.stroke,r[m+"color"]).call(ed.dashLine,"",r[m+"width"]):s(h)&&d.call(yy.fill,r[m+"color"])})};zl.updateDims=function(e,r){var t=this.bounds,n=(r.framewidth||0)/2,a=t[0][0]-n,i=t[0][1]-n,o=t[1][0]-a+n,l=t[1][1]-i+n;ed.setRect(this.clipRect,a,i,o,l),this.bgRect.call(ed.setRect,a,i,o,l).call(yy.fill,r.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};zl.updateFx=function(e,r){var t=this,n=t.graphDiv,a=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var v=t.viewInitial,h={};for(var d in v)h[t.id+"."+d]=v[d];noe.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function s(v){return t.projection.invert([v[0]+t.xaxis._offset,v[1]+t.yaxis._offset])}var u=function(v,h){if(h.isRect){var d=v.range={};d[t.id]=[s([h.xmin,h.ymin]),s([h.xmax,h.ymax])]}else{var m=v.lassoPoints={};m[t.id]=h.map(s)}},f={element:t.bgRect.node(),gd:n,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(v){v===2&&loe(n)}};i==="pan"?(a.node().onmousedown=null,a.call(uoe(t,r)),a.on("dblclick.zoom",l),n._context._scrollZoom.geo||a.on("wheel.zoom",null)):(i==="select"||i==="lasso")&&(a.on(".zoom",null),f.prepFn=function(v,h,d){ooe(v,h,d,f,i)},A_.init(f)),a.on("mousemove",function(){var v=t.projection.invert(Qc.getPositionFromD3Event());if(!v)return A_.unhover(n,gu.event);t.xaxis.p2c=function(){return v[0]},t.yaxis.p2c=function(){return v[1]},EF.hover(n,gu.event,t.id)}),a.on("mouseout",function(){n._dragging||A_.unhover(n,gu.event)}),a.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&soe(gu.event,n,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&EF.click(n,gu.event))})};zl.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,n="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=gu.select(e.container).append("g").attr("class","geo "+e.id).call(ed.setClipUrl,n,r),e.project=function(a){var i=e.projection(a);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(a){return e.project(a)[0]}},e.yaxis={_id:"y",c2p:function(a){return e.project(a)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},T_.setConvert(e.mockAxis,t)};zl.saveViewInitial=function(e){var r=e.center||{},t=e.projection,n=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var a;e._isScoped?a={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?a={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:a={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":n.lon},Qc.extendFlat(this.viewInitial,a)};zl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};zl._render=function(){var e=this.projection,r=e.getPath(),t;function n(i){var o=e(i.lonlat);return o?aoe(o[0],o[1]):null}function a(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",a).attr("transform",n)};function hoe(e){var r=e.projection,t=r.type,n=mi.projNames[t];n="geo"+Qc.titleCase(n);for(var a=k_[n]||toe[n],i=a(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?mi.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(v){return v?i:[]},u=0;um}else return!1},i.getPath=function(){return eoe().projection(i)},i.getBounds=function(v){return i.getPath().bounds(v)},i.precision(mi.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-mi.clipPad),i}function doe(e,r,t){var n=1e-6,a=2.5,i=r[e],o=mi.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-n],tick0:i.tick0,dtick:i.dtick};T_.setConvert(f,t);var v=T_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&v.pop();for(var h=v.length,d=new Array(h),m=0;m{"use strict";var Gv=dl(),poe=Xm().attributes,goe=rs().dash,Yv=Jh(),moe=xo().overrideAll,BF=Ud(),OF={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:Gv.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:goe},yoe=UF.exports=moe({domain:poe({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:BF(Yv.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:BF(Yv.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:Gv.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Yv.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Yv.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Yv.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Yv.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Gv.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Gv.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Gv.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Gv.background},lonaxis:OF,lataxis:OF},"plot","from-root");yoe.uirevision={valType:"any",editType:"none"}});var GF=te((j1e,YF)=>{"use strict";var boe=gr(),_oe=yn(),xoe=Xm().defaults;YF.exports=function(r,t,n,a){var i=a.type,o=a.attributes,l=a.handleDefaults,s=a.partition||"x",u=t._subplots[i],f=u.length,v=f&&u[0].replace(/\d+$/,""),h,d;function m(C,x){return boe.coerce(h,d,o,C,x)}for(var p=0;p{"use strict";var by=gr(),woe=GF(),Moe=L1().getSubplotData,{unwrapLonRange:Aoe}=Ov(),_y=Jh(),Toe=S_(),VF=_y.axesNames;WF.exports=function(r,t,n){woe(r,t,n,{type:"geo",attributes:Toe,handleDefaults:koe,fullData:n,partition:"y"})};function koe(e,r,t,n){var a=Moe(n.fullData,"geo",n.id),i=a.map(function(le){return le.index}),o=t("resolution"),l=t("scope"),s=_y.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var v=r._isScoped=l!=="world",h=r._isSatellite=u==="satellite",d=r._isConic=u.indexOf("conic")!==-1||u==="albers",m=r._isClipped=!!_y.lonaxisSpan[u];if(e.visible===!1){var p=by.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),_,C=0;C{"use strict";var Soe=L1().getSubplotCalcData,Coe=gr().counterRegex,Loe=HF(),ws="geo",XF=Coe(ws),jF={};jF[ws]={valType:"subplotid",dflt:ws,editType:"calc"};function qoe(e){for(var r=e._fullLayout,t=e.calcdata,n=r._subplots[ws],a=0;a{"use strict";$F.exports={attributes:jh(),supplyDefaults:TN(),colorbar:Vb(),formatLabels:CN(),calc:PN(),calcGeoJSON:p_().calcGeoJSON,plot:p_().plot,style:c_(),styleOnSelect:Rh().styleOnSelect,hoverPoints:mF(),eventData:bF(),selectPoints:wF(),moduleType:"trace",name:"scattergeo",basePlotModule:C_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var eI=te((Q1e,QF)=>{"use strict";QF.exports=KF()});var xy=te((ehe,nI)=>{"use strict";var{hovertemplateAttrs:Poe,templatefallbackAttrs:Roe}=lc(),Mf=jh(),zoe=ev(),rI=_o(),Noe=dl().defaultLine,wf=fa().extendFlat,tI=Mf.marker.line;nI.exports=wf({locations:{valType:"data_array",editType:"calc"},locationmode:Mf.locationmode,z:{valType:"data_array",editType:"calc"},geojson:wf({},Mf.geojson,{}),featureidkey:Mf.featureidkey,text:wf({},Mf.text,{}),hovertext:wf({},Mf.hovertext,{}),marker:{line:{color:wf({},tI.color,{dflt:Noe}),width:wf({},tI.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:Mf.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Mf.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:wf({},rI.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Poe(),hovertemplatefallback:Roe(),showlegend:wf({},rI.showlegend,{dflt:!1})},zoe("",{cLetter:"z",editTypeOverride:"calc"}))});var iI=te((rhe,aI)=>{"use strict";var rd=gr(),Foe=rv(),Ioe=xy(),Hoe=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");aI.exports=function(r,t,n,a){function i(h,d){return rd.coerce(r,t,Ioe,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&rd.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||rd.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="country names"&&rd.warn(Hoe),f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var v=i("marker.line.width");v&&i("marker.line.color"),i("marker.opacity"),Foe(r,t,a,i,{prefix:"",cLetter:"z"}),rd.coerceSelectionMarkerOpacity(t,i)}});var lI=te((the,oI)=>{"use strict";oI.exports={min:"zmin",max:"zmax"}});var cI=te((nhe,fI)=>{"use strict";var sI=Bt(),Boe=Rn().BADNUM,Ooe=dp(),Uoe=Lh(),Yoe=vm();function uI(e){return e&&typeof e=="string"}fI.exports=function(r,t){var n=t._length,a=new Array(n),i;t.geojson?i=function(f){return uI(f)||sI(f)}:i=uI;for(var o=0;o{"use strict";var Goe=Tt(),Voe=Pt(),L_=cn(),Woe=gp();function Zoe(e,r){r&&vI(e,r)}function vI(e,r){var t=r[0].trace,n=r[0].node3,a=n.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=Woe.makeColorScaleFuncFromTrace(t);a.each(function(s){Goe.select(this).attr("fill",l(s.z)).call(Voe.stroke,s.mlc||o.color).call(L_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),L_.selectedPointStyle(a,t)}function Xoe(e,r){var t=r[0].node3,n=r[0].trace;n.selectedpoints?L_.selectedPointStyle(t.selectAll(".choroplethlocation"),n):vI(e,r)}hI.exports={style:Zoe,styleOnSelect:Xoe}});var q_=te((ihe,gI)=>{"use strict";var joe=Tt(),dI=gr(),Vv=Ov(),Joe=ty().getTopojsonFeatures,pI=tf().findExtremes,$oe=wy().style;function Koe(e,r,t){var n=r.layers.backplot.select(".choroplethlayer");dI.makeTraceGroups(n,t,"trace choropleth").each(function(a){var i=joe.select(this),o=i.selectAll("path.choroplethlocation").data(dI.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),$oe(e,a)})}function Qoe(e,r){for(var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Vv.extractTraceFeature(e):Joe(t,a.topojson),s=[],u=[],f=0;f{"use strict";var ele=Dn(),rle=xy(),tle=gr().fillText,{ANTIMERIDIAN_LON_SHIFT:nle}=Ov();mI.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.subplot,l,s,u,f,v=[t,n];let h=[t+nle,n];for(s=0;s")}}});var _I=te((lhe,bI)=>{"use strict";bI.exports=function(r,t,n,a,i){r.location=t.location,r.z=t.z;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var wI=te((she,xI)=>{"use strict";xI.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l,s,u,f,v;if(t===!1)for(l=0;l{"use strict";MI.exports={attributes:xy(),supplyDefaults:iI(),colorbar:lI(),calc:cI(),calcGeoJSON:q_().calcGeoJSON,plot:q_().plot,style:wy().style,styleOnSelect:wy().styleOnSelect,hoverPoints:yI(),eventData:_I(),selectPoints:wI(),moduleType:"trace",name:"choropleth",basePlotModule:C_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var kI=te((fhe,TI)=>{"use strict";TI.exports=AI()});var Wa=te((che,CI)=>{"use strict";var SI=Object.getOwnPropertySymbols,ile=Object.prototype.hasOwnProperty,ole=Object.prototype.propertyIsEnumerable;function lle(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function sle(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}CI.exports=sle()?Object.assign:function(e,r){for(var t,n=lle(e),a,i=1;i{var Ay=Wa();function LI(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Ay(LI.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var i=t%10;n=(i===0?"":e[i]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function D_(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(kt.local.invalidDate||kt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function My(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Ay(D_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(kt.local.invalidDate||kt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(kt.local.differentCalendars||kt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+My(Math.abs(this.year()),4)+"-"+My(this.month(),2)+"-"+My(this.day(),2)}});function E_(){this.shortYearCutoff="+10"}Ay(E_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,kt.local.invalidDate||kt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new D_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,kt.local.invalidYear||kt.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kt.local.invalidYear||kt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+My(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,kt.local.invalidYear||kt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,kt.local.invalidMonth||kt.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,kt.local.invalidMonth||kt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kt.local.invalidYear||kt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,kt.local.invalidDate||kt.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,kt.local.invalidDate||kt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,kt.local.invalidDate||kt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,kt.local.invalidDate||kt.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ov-1+f.minMonth;)i++,o-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=t<0?-1:1;r=this._add(e,t*a[0]+i*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,kt.local.invalidDate||kt.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=a-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,kt.local.invalidDate||kt.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var kt=qI.exports=new LI;kt.cdate=D_;kt.baseCalendar=E_;kt.calendars.gregorian=P_});var DI=te(()=>{var R_=Wa(),Da=Za();R_(Da.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Da.local=Da.regionalOptions[""];R_(Da.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});R_(Da.baseCalendar.prototype,{UNIX_EPOCH:Da.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Da.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Da.local.invalidFormat||Da.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,A){for(var k=1;x+k1},f=function(b,A,k,M){var D=""+A;if(u(b,M))for(;D.length1},C=function(W,O){var Z=_(W,O),H=[2,3,Z?4:2,Z?4:2,10,11,20]["oyYJ@!".indexOf(W)+1],ee=new RegExp("^-?\\d{1,"+H+"}"),ne=r.substring(D).match(ee);if(!ne)throw(Da.local.missingNumberAt||Da.regionalOptions[""].missingNumberAt).replace(/\{0\}/,D);return D+=ne[0].length,parseInt(ne[0],10)},x=this,b=function(){if(typeof l=="function"){_("m");var W=l.call(x,r.substring(D));return D+=W.length,W}return C("m")},A=function(W,O,Z,H){for(var ee=_(W,H)?Z:O,ne=0;ne-1){h=1,d=m;for(var I=this.daysInMonth(v,h);d>I;I=this.daysInMonth(v,h))h++,d-=I}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var i=this,o=function(l){try{return i.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var EI=te(()=>{var Af=Za(),ule=Wa(),z_=Af.instance();function Ty(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ty.prototype=new Af.baseCalendar;ule(Ty.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(cle);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(vle);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(hle);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var i=this.toMonthIndex(e,t,n);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw Af.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return n?!t&&r<=n?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw Af.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,Af.local.invalidyear),a=kf[n-kf[0]],i=a>>9&4095,o=a>>5&15,l=a&31,s;s=z_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Tf[e-Tf[0]],n=t>>13,a=n?12:11;if(r>a)throw Af.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,i,t,Af.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=ple(e,i,t,a);return z_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=z_.fromJD(e),t=dle(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(fle),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],i=this.toMonthIndex(t,n,a),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var n=e.year(),a=e.month(),i=this.isIntercalaryMonth(n,a),o=this.toChineseMonth(n,a),l=Object.getPrototypeOf(Ty.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),v=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);v!==u&&l.month(v)}return l}});var fle=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,cle=/^\d?\d[iI]?/m,vle=/^闰?十?[一二三四五六七八九]?月/m,hle=/^闰?十?[一二三四五六七八九]?/m;Af.calendars.chinese=Ty;var Tf=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],kf=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function dle(e,r,t,n){var a,i;if(typeof e=="object")a=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},i=n||{}}var u=kf[a.year-kf[0]],f=a.year<<9|a.month<<5|a.day;i.year=f>=u?a.year:a.year-1,u=kf[i.year-kf[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,p=new Date(v,h-1,d),y=new Date(a.year,a.month-1,a.day);m=Math.round((y-p)/(24*3600*1e3));var _=Tf[i.year-Tf[0]],C;for(C=0;C<13;C++){var x=_&1<<12-C?30:29;if(m>13;return!b||C=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,i=n):(f=!!n,i=a||{}),o={year:e,month:r,day:t,isIntercalary:f}}var v;v=o.day-1;var h=Tf[o.year-Tf[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p>9&4095,x=_>>5&15,b=_&31,A=new Date(C,x-1,b+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var PI=te(()=>{var e0=Za(),gle=Wa();function N_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N_.prototype=new e0.baseCalendar;gle(N_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,e0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,e0.local.invalidYear||e0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,e0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,e0.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});e0.calendars.coptic=N_});var RI=te(()=>{var mu=Za(),mle=Wa();function F_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F_.prototype=new mu.baseCalendar;mle(F_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,mu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mu.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,mu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,mu.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,mu.local.invalidDate);return{century:yle[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,mu.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var yle={20:"Fruitbat",21:"Anchovy"};mu.calendars.discworld=F_});var zI=te(()=>{var r0=Za(),ble=Wa();function I_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I_.prototype=new r0.baseCalendar;ble(I_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,r0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,r0.local.invalidYear||r0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,r0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,r0.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});r0.calendars.ethiopian=I_});var NI=te(()=>{var Sf=Za(),_le=Wa();function H_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H_.prototype=new Sf.baseCalendar;_le(H_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Sf.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,ky(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sf.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Sf.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Sf.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&ky(this.daysInYear(e),10)===5?30:r===9&&ky(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Sf.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,Sf.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,i=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function ky(e,r){return e-r*Math.floor(e/r)}Sf.calendars.hebrew=H_});var FI=te(()=>{var td=Za(),xle=Wa();function B_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B_.prototype=new td.baseCalendar;xle(B_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,td.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,td.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,td.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});td.calendars.islamic=B_});var II=te(()=>{var nd=Za(),wle=Wa();function O_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O_.prototype=new nd.baseCalendar;wle(O_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,nd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,nd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,nd.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),i=Math.floor((t-a)/30.6001),o=i-Math.floor(i<14?1:13),l=n-Math.floor(o>2?4716:4715),s=t-a-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});nd.calendars.julian=O_});var BI=te(()=>{var Uo=Za(),Mle=Wa();function Y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y_.prototype=new Uo.baseCalendar;Mle(Y_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Uo.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Uo.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Uo.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Uo.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Uo.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Uo.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Uo.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Uo.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Uo.local.invalidDate),a=n.toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=U_(e+8+340,365);return[Math.floor(r/20)+1,U_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[HI(e+20,20),HI(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Uo.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function U_(e,r){return e-r*Math.floor(e/r)}function HI(e,r){return U_(e-1,r)+1}Uo.calendars.mayan=Y_});var UI=te(()=>{var t0=Za(),Ale=Wa();function G_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G_.prototype=new t0.baseCalendar;var OI=t0.instance("gregorian");Ale(G_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t0.local.invalidYear||t0.regionalOptions[""].invalidYear);return OI.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,t0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,t0.local.invalidMonth),a=n.year();a<0&&a++;for(var i=n.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});t0.calendars.nanakshahi=G_});var YI=te(()=>{var n0=Za(),Tle=Wa();function V_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V_.prototype=new n0.baseCalendar;Tle(V_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,n0.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,n0.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,n0.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=n0.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=a.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=n0.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),i=n+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Wv=Za(),kle=Wa();function Cy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Sy(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),i=n-Math.floor(n),o=a-Math.floor(a);return i>o}Cy.prototype=new Wv.baseCalendar;kle(Cy.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wv.local.invalidYear);return Sy(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Wv.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var i=1;i0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Sy(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),i=e-this.toJD(t,a,1)+1;return this.newDate(t,a,i)}});Wv.calendars.persian=Cy;Wv.calendars.jalali=Cy});var VI=te(()=>{var a0=Za(),Sle=Wa(),Ly=a0.instance();function W_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W_.prototype=new a0.baseCalendar;Sle(W_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,a0.local.invalidYear),t=this._t2gYear(r.year());return Ly.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,a0.local.invalidYear),a=this._t2gYear(n.year());return Ly.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,a0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,a0.local.invalidDate),a=this._t2gYear(n.year());return Ly.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Ly.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});a0.calendars.taiwan=W_});var WI=te(()=>{var i0=Za(),Cle=Wa(),qy=i0.instance();function Z_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z_.prototype=new i0.baseCalendar;Cle(Z_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,i0.local.invalidYear),t=this._t2gYear(r.year());return qy.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,i0.local.invalidYear),a=this._t2gYear(n.year());return qy.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,i0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,i0.local.invalidDate),a=this._t2gYear(n.year());return qy.toJD(a,n.month(),n.day())},fromJD:function(e){var r=qy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});i0.calendars.thai=Z_});var ZI=te(()=>{var o0=Za(),Lle=Wa();function X_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X_.prototype=new o0.baseCalendar;Lle(X_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,o0.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,o0.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,i=0;in)return Cf[a]-Cf[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,o0.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,i=n.day()+Cf[a-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,i=Math.floor((a-1)/12),o=i+1,l=a-12*i,s=r-Cf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var n=o0.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=o0.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});o0.calendars.ummalqura=X_;var Cf=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var jI=te((Yhe,XI)=>{"use strict";XI.exports=Za();DI();EI();PI();RI();zI();NI();FI();II();BI();UI();YI();GI();VI();WI();ZI()});var tH=te((Ghe,rH)=>{"use strict";var $I=jI(),ad=gr(),KI=Rn(),qle=KI.EPOCHJD,Dle=KI.ONEDAY,$_={valType:"enumerated",values:ad.sortObjectKeys($I.calendars),editType:"calc",dflt:"gregorian"},QI=function(e,r,t,n){var a={};return a[t]=$_,ad.coerce(e,r,a,t,n)},Ele=function(e,r,t,n){for(var a=0;a{"use strict";nH.exports=tH()});var Ile=te((Whe,oH)=>{var iH=yN();iH.register([eI(),kI(),aH()]);oH.exports=iH});return Ile();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl2d.js b/dist/plotly-gl2d.js index 9b70c814876..7c3945c714e 100644 --- a/dist/plotly-gl2d.js +++ b/dist/plotly-gl2d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d) v3.6.0 +* plotly.js (gl2d) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -37,11 +37,20 @@ var Plotly = (() => { return a; }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); - var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + var __esm = (fn, res, err) => function __init() { + if (err) throw err[0]; + try { + return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + } catch (e) { + throw err = [e], e; + } }; var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; var __export = (target, all) => { for (var name in all) @@ -69,7 +78,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -105,7 +114,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -132,7 +141,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8158,7 +8167,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8398,7 +8407,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8515,7 +8524,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8560,7 +8569,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9963,7 +9972,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9982,7 +9991,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color) { return !!matchers.CSS_UNIT.exec(color); } @@ -13805,9 +13814,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -16060,6 +16069,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -17772,6 +17792,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -17900,24 +17921,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -32817,7 +32845,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -34619,6 +34657,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -36834,6 +36878,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -36843,6 +36921,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -36873,26 +36952,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.disk, - click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.pencil, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -38031,8 +38114,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -46060,6 +46149,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -47071,19 +47161,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); @@ -60831,7 +60920,7 @@ var Plotly = (() => { Object.defineProperty(exports, "__esModule", { value: true }); - var _slicedToArray = /* @__PURE__ */ function() { + var _slicedToArray = /* @__PURE__ */ (function() { function sliceIterator(arr, i) { var _arr = []; var _n = true; @@ -60863,7 +60952,7 @@ var Plotly = (() => { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; - }(); + })(); var TAU = Math.PI * 2; var mapToEllipse = function mapToEllipse2(_ref, rx, ry, cosphi, sinphi, centerx, centery) { var x = _ref.x, y = _ref.y; @@ -61113,7 +61202,7 @@ var Plotly = (() => { return true; } var obj = {}; - var sym = Symbol("test"); + var sym = /* @__PURE__ */ Symbol("test"); var symObj = Object(sym); if (typeof sym === "string") { return false; @@ -61359,7 +61448,7 @@ var Plotly = (() => { if (typeof origSymbol("foo") !== "symbol") { return false; } - if (typeof Symbol("bar") !== "symbol") { + if (typeof /* @__PURE__ */ Symbol("bar") !== "symbol") { return false; } return hasSymbolSham(); @@ -61616,7 +61705,7 @@ var Plotly = (() => { var throwTypeError = function() { throw new $TypeError(); }; - var ThrowTypeError = $gOPD ? function() { + var ThrowTypeError = $gOPD ? (function() { try { arguments.callee; return throwTypeError; @@ -61627,7 +61716,7 @@ var Plotly = (() => { return throwTypeError; } } - }() : throwTypeError; + })() : throwTypeError; var hasSymbols = require_has_symbols()(); var getProto = require_get_proto(); var $ObjectGPO = require_Object_getPrototypeOf(); @@ -62109,9 +62198,9 @@ var Plotly = (() => { } return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]"; }; - var supportsStandardArguments = function() { + var supportsStandardArguments = (function() { return isStandardArguments(arguments); - }(); + })(); isStandardArguments.isLegacyArguments = isLegacyArguments; module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments; } @@ -63270,7 +63359,7 @@ var Plotly = (() => { function hasOwnProperty2(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } - var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0; + var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0; exports.promisify = function promisify(original) { if (typeof original !== "function") throw new TypeError('The "original" argument must be of type Function'); @@ -63489,7 +63578,7 @@ var Plotly = (() => { return message(arg1, arg2, arg3); } } - var NodeError = /* @__PURE__ */ function(_Base) { + var NodeError = /* @__PURE__ */ (function(_Base) { _inherits(NodeError2, _Base); var _super = _createSuper(NodeError2); function NodeError2(arg1, arg2, arg3) { @@ -63500,7 +63589,7 @@ var Plotly = (() => { return _this; } return _createClass(NodeError2); - }(Base); + })(Base); codes[code] = NodeError; } function oneOf(expected, thing) { @@ -63992,7 +64081,7 @@ var Plotly = (() => { } return "".concat(msg).concat(skipped ? skippedMsg : "", "\n").concat(res).concat(other).concat(end).concat(indicator); } - var AssertionError = /* @__PURE__ */ function(_Error, _inspect$custom) { + var AssertionError = /* @__PURE__ */ (function(_Error, _inspect$custom) { _inherits(AssertionError2, _Error); var _super = _createSuper(AssertionError2); function AssertionError2(options) { @@ -64104,7 +64193,7 @@ var Plotly = (() => { } }]); return AssertionError2; - }(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); + })(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); module.exports = AssertionError; } }); @@ -64176,7 +64265,7 @@ var Plotly = (() => { $webkitStorageInfo: true, $window: true }; - hasAutomationEqualityBug = function() { + hasAutomationEqualityBug = (function() { if (typeof window === "undefined") { return false; } @@ -64194,7 +64283,7 @@ var Plotly = (() => { } } return false; - }(); + })(); equalsConstructorPrototypeIfNotBuggy = function(o) { if (typeof window === "undefined" || !hasAutomationEqualityBug) { return equalsConstructorPrototype(o); @@ -64270,10 +64359,10 @@ var Plotly = (() => { var originalKeys = Object.keys; keysShim.shim = function shimObjectKeys() { if (Object.keys) { - var keysWorksWithArguments = function() { + var keysWorksWithArguments = (function() { var args = Object.keys(arguments); return args && args.length === arguments.length; - }(1, 2); + })(1, 2); if (!keysWorksWithArguments) { Object.keys = function keys(object) { if (isArgs(object)) { @@ -64423,7 +64512,7 @@ var Plotly = (() => { "node_modules/define-properties/index.js"(exports, module) { "use strict"; var keys = require_object_keys(); - var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol"; + var hasSymbols = typeof Symbol === "function" && typeof /* @__PURE__ */ Symbol("foo") === "symbol"; var toStr = Object.prototype.toString; var concat = Array.prototype.concat; var origDefineProperty = Object.defineProperty; @@ -69019,7 +69108,7 @@ var Plotly = (() => { if (!require_is_implemented2()()) { shim = require_shim3(); } - module.exports = function() { + module.exports = (function() { var nullObject, polyProps, desc; if (!shim) return create; if (shim.level !== 1) return create; @@ -69048,7 +69137,7 @@ var Plotly = (() => { return function(prototype, props) { return create(prototype === null ? nullObject : prototype, props); }; - }(); + })(); } }); @@ -69067,7 +69156,7 @@ var Plotly = (() => { if (prototype === null || isObject(prototype)) return obj; throw new TypeError("Prototype must be null or an object"); }; - module.exports = function(status) { + module.exports = (function(status) { var fn, set; if (!status) return null; if (status.level === 2) { @@ -69101,8 +69190,8 @@ var Plotly = (() => { writable: false, value: status.level }); - }( - function() { + })( + (function() { var tmpObj1 = /* @__PURE__ */ Object.create(null), tmpObj2 = {}, set, desc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__"); if (desc) { try { @@ -69118,7 +69207,7 @@ var Plotly = (() => { tmpObj1.__proto__ = tmpObj2; if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 1 }; return false; - }() + })() ); require_create2(); } @@ -69446,9 +69535,9 @@ var Plotly = (() => { "node_modules/es5-ext/function/is-arguments.js"(exports, module) { "use strict"; var objToString = Object.prototype.toString; - var id = objToString.call(/* @__PURE__ */ function() { + var id = objToString.call(/* @__PURE__ */ (function() { return arguments; - }()); + })()); module.exports = function(value) { return objToString.call(value) === id; }; @@ -69487,7 +69576,7 @@ var Plotly = (() => { if (typeof window === "object" && window) return window; throw new Error("Unable to resolve global `this`"); }; - module.exports = function() { + module.exports = (function() { if (this) return this; try { Object.defineProperty(Object.prototype, "__global__", { @@ -69505,7 +69594,7 @@ var Plotly = (() => { } finally { delete Object.prototype.__global__; } - }(); + })(); } }); @@ -70485,10 +70574,10 @@ var Plotly = (() => { var require_is_native_implemented = __commonJS({ "node_modules/es6-weak-map/is-native-implemented.js"(exports, module) { "use strict"; - module.exports = function() { + module.exports = (function() { if (typeof WeakMap !== "function") return false; return Object.prototype.toString.call(/* @__PURE__ */ new WeakMap()) === "[object WeakMap]"; - }(); + })(); } }); @@ -72437,7 +72526,7 @@ void main() { "node_modules/regl/dist/regl.unchecked.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : global2.createREGL = factory(); - })(exports, function() { + })(exports, (function() { "use strict"; var extend = function(base, opts) { var keys = Object.keys(opts); @@ -79990,7 +80079,7 @@ void main() { return { next: nextState, current: currentState, - procs: function() { + procs: (function() { var env = createREGLEnvironment(); var poll = env.proc("poll"); var refresh = env.proc("refresh"); @@ -80173,7 +80262,7 @@ void main() { refresh(block); }); return env.compile(); - }(), + })(), compile: compileCommand }; } @@ -80805,7 +80894,7 @@ void main() { return regl; } return wrapREGL; - }); + })); } }); @@ -82917,7 +83006,7 @@ void main() { function numberIsNaN(obj) { return obj !== obj; } - var hexSliceLookupTable = function() { + var hexSliceLookupTable = (function() { const alphabet = "0123456789abcdef"; const table = new Array(256); for (let i = 0; i < 16; ++i) { @@ -82927,7 +83016,7 @@ void main() { } } return table; - }(); + })(); function defineBigIntMethod(fn) { return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn; } @@ -84087,7 +84176,7 @@ void main() { "node_modules/@plotly/regl/dist/regl.unchecked.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : global2.createREGL = factory(); - })(exports, function() { + })(exports, (function() { "use strict"; var extend = function(base, opts) { var keys = Object.keys(opts); @@ -91640,7 +91729,7 @@ void main() { return { next: nextState, current: currentState, - procs: function() { + procs: (function() { var env = createREGLEnvironment(); var poll = env.proc("poll"); var refresh = env.proc("refresh"); @@ -91823,7 +91912,7 @@ void main() { refresh(block); }); return env.compile(); - }(), + })(), compile: compileCommand }; } @@ -92455,7 +92544,7 @@ void main() { return regl; } return wrapREGL; - }); + })); } }); @@ -92615,7 +92704,9 @@ void main() { scene.line2d.update(scene.lineOptions); } if (scene.error2d) { - var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []); + var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []).map(function(errorOptions) { + return errorOptions || { positions: [], errors: [] }; + }); scene.error2d.update(errorBatch); } if (scene.scatter2d) { diff --git a/dist/plotly-gl2d.min.js b/dist/plotly-gl2d.min.js index f050d1d411e..e481b1a04a5 100644 --- a/dist/plotly-gl2d.min.js +++ b/dist/plotly-gl2d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d - minified) v3.6.0 +* plotly.js (gl2d - minified) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,80 +12,80 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var Zne=Object.create;var z1=Object.defineProperty,Jne=Object.defineProperties,$ne=Object.getOwnPropertyDescriptor,Qne=Object.getOwnPropertyDescriptors,Kne=Object.getOwnPropertyNames,MM=Object.getOwnPropertySymbols,eie=Object.getPrototypeOf,EM=Object.prototype.hasOwnProperty,rie=Object.prototype.propertyIsEnumerable;var SM=(e,r,t)=>r in e?z1(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,_h=(e,r)=>{for(var t in r||(r={}))EM.call(r,t)&&SM(e,t,r[t]);if(MM)for(var t of MM(r))rie.call(r,t)&&SM(e,t,r[t]);return e},qg=(e,r)=>Jne(e,Qne(r));var Pg=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),tie=(e,r)=>{for(var t in r)z1(e,t,{get:r[t],enumerable:!0})},kM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Kne(r))!EM.call(e,n)&&n!==t&&z1(e,n,{get:()=>r[n],enumerable:!(a=$ne(r,n))||a.enumerable});return e};var aie=(e,r,t)=>(t=e!=null?Zne(eie(e)):{},kM(r||!e||!e.__esModule?z1(t,"default",{value:e,enumerable:!0}):t,e)),nie=e=>kM(z1({},"__esModule",{value:!0}),e);var Ng=N(CM=>{"use strict";CM.version="3.6.0"});var DM=N((LM,Ig)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Ig!="undefined"&&Ig.exports&&(Ig.exports=t[r])})("Promise",typeof window!="undefined"?window:LM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,_,x,A){return Object.defineProperty(T,_,{value:x,writable:!0,configurable:A!==!1})}}catch(b){r=function(_,x,A){return _[x]=A,_}}a=function(){var T,_,x;function A(E,M){this.fn=E,this.self=M,this.next=void 0}return{add:function(M,k){x=new A(M,k),_?_.next=x:T=x,_=x,x=void 0},drain:function(){var M=T;for(T=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(b,T){a.add(b,T),t||(t=i(a.drain))}function l(b){var T,_=typeof b;return b!=null&&(_=="object"||_=="function")&&(T=b.then),typeof T=="function"?T:!1}function s(){for(var b=0;b0&&o(s,_))}catch(x){c.call(new d(_),x)}}}function c(b){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=b,T.state=2,T.chain.length>0&&o(s,T))}function v(b,T,_,x){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var w=g.length,C=new Array(w);w--;)C[w]=g[w];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,f=this.CSSStyleDeclaration.prototype,u=f.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,C){s.call(this,g,w,C+"")},f.setProperty=function(g,w,C){u.call(this,g,w+"",C)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wD&&(L=D)}else{for(;++w=D){L=D;break}for(;++wD&&(L=D)}return L},e.max=function(h,g){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wL&&(L=D)}else{for(;++w=D){L=D;break}for(;++wL&&(L=D)}return L},e.extent=function(h,g){var w=-1,C=h.length,L,D,G;if(arguments.length===1){for(;++w=D){L=G=D;break}for(;++wD&&(L=D),G=D){L=G=D;break}for(;++wD&&(L=D),G1)return G/(Z-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C>>1;h(g[D],w)<0?C=D+1:L=D}return C},right:function(g,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C>>1;h(g[D],w)>0?L=D:C=D+1}return C}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(h){return p(h.length===1?function(g,w){return c(h(g),w)}:h)},e.shuffle=function(h,g,w){(C=arguments.length)<3&&(w=h.length,C<2&&(g=0));for(var C=w-g,L,D;C;)D=Math.random()*C--|0,L=h[C+g],h[C+g]=h[D+g],h[D+g]=L;return h},e.permute=function(h,g){for(var w=g.length,C=new Array(w);w--;)C[w]=h[g[w]];return C},e.pairs=function(h){for(var g=0,w=h.length-1,C,L=h[0],D=new Array(w<0?0:w);g=0;)for(G=h[g],w=G.length;--w>=0;)D[--L]=G[w];return D};var b=Math.abs;e.range=function(h,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=h,h=0)),(g-h)/w===1/0)throw new Error("infinite range");var C=[],L=T(b(w)),D=-1,G;if(h*=L,g*=L,w*=L,w<0)for(;(G=h+w*++D)>g;)C.push(G/L);else for(;(G=h+w*++D)=g.length)return L?L.call(h,Z):C?Z.sort(C):Z;for(var oe=-1,ye=Z.length,ge=g[ie++],Xe,Qe,Me,Re=new x,He;++oe=g.length)return q;var ie=[],oe=w[Z++];return q.forEach(function(ye,ge){ie.push({key:ye,values:G(ge,Z)})}),oe?ie.sort(function(ye,ge){return oe(ye.key,ge.key)}):ie}return h.map=function(q,Z){return D(Z,q,0)},h.entries=function(q){return G(D(e.map,q,0),0)},h.key=function(q){return g.push(q),h},h.sortKeys=function(q){return w[g.length-1]=q,h},h.sortValues=function(q){return C=q,h},h.rollup=function(q){return L=q,h},h},e.set=function(h){var g=new W;if(h)for(var w=0,C=h.length;w=0&&(C=h.slice(w+1),h=h.slice(0,w)),h)return arguments.length<2?this[h].on(C):this[h].on(C,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(C,null);return this}};function le(h){var g=[],w=new x;function C(){for(var L=g,D=-1,G=L.length,q;++D=0&&(w=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Fe.hasOwnProperty(w)?{space:Fe[w],local:h}:h}},Ye.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var w=this.node();return h=e.ns.qualify(h),h.local?w.getAttributeNS(h.space,h.local):w.getAttribute(h)}for(g in h)this.each($e(g,h[g]));return this}return this.each($e(h,g))};function $e(h,g){h=e.ns.qualify(h);function w(){this.removeAttribute(h)}function C(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function D(){this.setAttributeNS(h.space,h.local,g)}function G(){var Z=g.apply(this,arguments);Z==null?this.removeAttribute(h):this.setAttribute(h,Z)}function q(){var Z=g.apply(this,arguments);Z==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,Z)}return g==null?h.local?C:w:typeof g=="function"?h.local?q:G:h.local?D:L}function Ke(h){return h.trim().replace(/\s+/g," ")}Ye.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),C=(h=Ar(h)).length,L=-1;if(g=w.classList){for(;++L=0;)(D=w[C])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},Ye.sort=function(h){h=or.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=L+1);!(Z=G[g])&&++g0&&(h=h.slice(0,L));var G=zr.get(h);G&&(h=G,D=Yr);function q(){var oe=this[C];oe&&(this.removeEventListener(h,oe,oe.$),delete this[C])}function Z(){var oe=D(g,t(arguments));q.call(this),this.addEventListener(h,this[C]=oe,oe.$=w),oe._=g}function ie(){var oe=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ye;for(var ge in this)if(ye=ge.match(oe)){var Xe=this[ge];this.removeEventListener(ye[1],Xe,Xe.$),delete this[ge]}}return L?g?Z:q:g?j:ie}var zr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&zr.forEach(function(h){"on"+h in a&&zr.remove(h)});function nt(h,g){return function(w){var C=e.event;e.event=w,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=C}}}function Yr(h,g){var w=nt(h,g);return function(C){var L=this,D=C.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&w.call(L,C)}}var Wr,xt=0;function jr(h){var g=".dragsuppress-"+ ++xt,w="click"+g,C=e.select(i(h)).on("touchmove"+g,Ee).on("dragstart"+g,Ee).on("selectstart"+g,Ee);if(Wr==null&&(Wr="onselectstart"in h?!1:Q(h.style,"userSelect")),Wr){var L=n(h).style,D=L[Wr];L[Wr]="none"}return function(G){if(C.on(g,null),Wr&&(L[Wr]=D),G){var q=function(){C.on(w,null)};C.on(w,function(){Ee(),q()},!0),setTimeout(q,0)}}}e.mouse=function(h){return dr(h,Ge())};var ot=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function dr(h,g){g.changedTouches&&(g=g.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var C=w.createSVGPoint();if(ot<0){var L=i(h);if(L.scrollX||L.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=w[0][0].getScreenCTM();ot=!(D.f||D.e),w.remove()}}return ot?(C.x=g.pageX,C.y=g.pageY):(C.x=g.clientX,C.y=g.clientY),C=C.matrixTransform(h.getScreenCTM().inverse()),[C.x,C.y]}var G=h.getBoundingClientRect();return[g.clientX-G.left-h.clientLeft,g.clientY-G.top-h.clientTop]}e.touch=function(h,g,w){if(arguments.length<3&&(w=g,g=Ge().changedTouches),g){for(var C=0,L=g.length,D;C0?1:h<0?-1:0}function za(h,g,w){return(g[0]-h[0])*(w[1]-h[1])-(g[1]-h[1])*(w[0]-h[0])}function rn(h){return h>1?0:h<-1?_r:Math.acos(h)}function Wa(h){return h>1?wt:h<-1?-wt:Math.asin(h)}function Cn(h){return((h=Math.exp(h))-1/h)/2}function _n(h){return((h=Math.exp(h))+1/h)/2}function Si(h){return((h=Math.exp(2*h))-1)/(h+1)}function un(h){return(h=Math.sin(h/2))*h}var Bn=Math.SQRT2,Ei=2,Ln=4;e.interpolateZoom=function(h,g){var w=h[0],C=h[1],L=h[2],D=g[0],G=g[1],q=g[2],Z=D-w,ie=G-C,oe=Z*Z+ie*ie,ye,ge;if(oe0&&(dt=dt.transition().duration(G)),dt.call(rr.event)}function Ct(){Re&&Re.domain(Me.range().map(function(dt){return(dt-h.x)/h.k}).map(Me.invert)),er&&er.domain(He.range().map(function(dt){return(dt-h.y)/h.k}).map(He.invert))}function Lt(dt){q++||dt({type:"zoomstart"})}function Vt(dt){Ct(),dt({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Rt(dt){--q||(dt({type:"zoomend"}),w=null)}function It(){var dt=this,Yt=Qe.of(dt,arguments),jt=0,ua=e.select(i(dt)).on(ie,Qn).on(oe,Kn),ja=De(e.mouse(dt)),Dn=jr(dt);Dc.call(dt),Lt(Yt);function Qn(){jt=1,it(e.mouse(dt),ja),Vt(Yt)}function Kn(){ua.on(ie,null).on(oe,null),Dn(jt),Rt(Yt)}}function ya(){var dt=this,Yt=Qe.of(dt,arguments),jt={},ua=0,ja,Dn=".zoom-"+e.event.changedTouches[0].identifier,Qn="touchmove"+Dn,Kn="touchend"+Dn,Ri=[],S=e.select(dt),B=jr(dt);he(),Lt(Yt),S.on(Z,null).on(ge,he);function V(){var _e=e.touches(dt);return ja=h.k,_e.forEach(function(We){We.identifier in jt&&(jt[We.identifier]=De(We))}),_e}function he(){var _e=e.event.target;e.select(_e).on(Qn,xe).on(Kn,Ae),Ri.push(_e);for(var We=e.event.changedTouches,ir=0,nr=We.length;ir1){var Rr=lr[0],yr=lr[1],Ne=Rr[0]-yr[0],ue=Rr[1]-yr[1];ua=Ne*Ne+ue*ue}}function xe(){var _e=e.touches(dt),We,ir,nr,lr;Dc.call(dt);for(var $r=0,Rr=_e.length;$r1?1:g,w=w<0?0:w>1?1:w,L=w<=.5?w*(1+g):w+g-w*g,C=2*w-L;function D(q){return q>360?q-=360:q<0&&(q+=360),q<60?C+(L-C)*q/60:q<180?L:q<240?C+(L-C)*(240-q)/60:C}function G(q){return Math.round(D(q)*255)}return new di(G(h+120),G(h),G(h-120))}e.hcl=va;function va(h,g,w){return this instanceof va?(this.h=+h,this.c=+g,void(this.l=+w)):arguments.length<2?h instanceof va?new va(h.h,h.c,h.l):h instanceof Pn?Go(h.l,h.a,h.b):Go((h=_t((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new va(h,g,w)}var hi=va.prototype=new ma;hi.brighter=function(h){return new va(this.h,this.c,Math.min(100,this.l+Ya*(arguments.length?h:1)))},hi.darker=function(h){return new va(this.h,this.c,Math.max(0,this.l-Ya*(arguments.length?h:1)))},hi.rgb=function(){return Xi(this.h,this.c,this.l).rgb()};function Xi(h,g,w){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Pn(w,Math.cos(h*=Nt)*g,Math.sin(h)*g)}e.lab=Pn;function Pn(h,g,w){return this instanceof Pn?(this.l=+h,this.a=+g,void(this.b=+w)):arguments.length<2?h instanceof Pn?new Pn(h.l,h.a,h.b):h instanceof va?Xi(h.h,h.c,h.l):_t((h=di(h)).r,h.g,h.b):new Pn(h,g,w)}var Ya=18,wn=.95047,ki=1,vs=1.08883,Ll=Pn.prototype=new ma;Ll.brighter=function(h){return new Pn(Math.min(100,this.l+Ya*(arguments.length?h:1)),this.a,this.b)},Ll.darker=function(h){return new Pn(Math.max(0,this.l-Ya*(arguments.length?h:1)),this.a,this.b)},Ll.rgb=function(){return ac(this.l,this.a,this.b)};function ac(h,g,w){var C=(h+16)/116,L=C+g/500,D=C-w/200;return L=Qf(L)*wn,C=Qf(C)*ki,D=Qf(D)*vs,new di(Zi(3.2404542*L-1.5371385*C-.4985314*D),Zi(-.969266*L+1.8760108*C+.041556*D),Zi(.0556434*L-.2040259*C+1.0572252*D))}function Go(h,g,w){return h>0?new va(Math.atan2(w,g)*ta,Math.sqrt(g*g+w*w),h):new va(NaN,NaN,h)}function Qf(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Kf(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Zi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=di;function di(h,g,w){return this instanceof di?(this.r=~~h,this.g=~~g,void(this.b=~~w)):arguments.length<2?h instanceof di?new di(h.r,h.g,h.b):$t(""+h,di,Fa):new di(h,g,w)}function zi(h){return new di(h>>16,h>>8&255,h&255)}function Dl(h){return zi(h)+""}var pi=di.prototype=new ma;pi.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,w=this.g,C=this.b,L=30;return!g&&!w&&!C?new di(L,L,L):(g&&g>4,C=C>>4|C,L=Z&240,L=L>>4|L,D=Z&15,D=D<<4|D):h.length===7&&(C=(Z&16711680)>>16,L=(Z&65280)>>8,D=Z&255)),g(C,L,D))}function fa(h,g,w){var C=Math.min(h/=255,g/=255,w/=255),L=Math.max(h,g,w),D=L-C,G,q,Z=(L+C)/2;return D?(q=Z<.5?D/(L+C):D/(2-L-C),h==L?G=(g-w)/D+(g0&&Z<1?0:G),new Sa(G,q,Z)}function _t(h,g,w){h=$n(h),g=$n(g),w=$n(w);var C=Kf((.4124564*h+.3575761*g+.1804375*w)/wn),L=Kf((.2126729*h+.7151522*g+.072175*w)/ki),D=Kf((.0193339*h+.119192*g+.9503041*w)/vs);return Pn(116*L-16,500*(C-L),200*(L-D))}function $n(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ga(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Nn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Nn.forEach(function(h,g){Nn.set(h,zi(g))});function ra(h){return typeof h=="function"?h:function(){return h}}e.functor=ra,e.xhr=To(ee);function To(h){return function(g,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),ll(g,w,h,C)}}function ll(h,g,w,C){var L={},D=e.dispatch("beforesend","progress","load","error"),G={},q=new XMLHttpRequest,Z=null;self.XDomainRequest&&!("withCredentials"in q)&&/^(http(s)?:)?\/\//.test(h)&&(q=new XDomainRequest),"onload"in q?q.onload=q.onerror=ie:q.onreadystatechange=function(){q.readyState>3&&ie()};function ie(){var oe=q.status,ye;if(!oe&&a1(q)||oe>=200&&oe<300||oe===304){try{ye=w.call(L,q)}catch(ge){D.error.call(L,ge);return}D.load.call(L,ye)}else D.error.call(L,q)}return q.onprogress=function(oe){var ye=e.event;e.event=oe;try{D.progress.call(L,q)}finally{e.event=ye}},L.header=function(oe,ye){return oe=(oe+"").toLowerCase(),arguments.length<2?G[oe]:(ye==null?delete G[oe]:G[oe]=ye+"",L)},L.mimeType=function(oe){return arguments.length?(g=oe==null?null:oe+"",L):g},L.responseType=function(oe){return arguments.length?(Z=oe,L):Z},L.response=function(oe){return w=oe,L},["get","post"].forEach(function(oe){L[oe]=function(){return L.send.apply(L,[oe].concat(t(arguments)))}}),L.send=function(oe,ye,ge){if(arguments.length===2&&typeof ye=="function"&&(ge=ye,ye=null),q.open(oe,h,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),q.setRequestHeader)for(var Xe in G)q.setRequestHeader(Xe,G[Xe]);return g!=null&&q.overrideMimeType&&q.overrideMimeType(g),Z!=null&&(q.responseType=Z),ge!=null&&L.on("error",ge).on("load",function(Qe){ge(null,Qe)}),D.beforesend.call(L,q),q.send(ye==null?null:ye),L},L.abort=function(){return q.abort(),L},e.rebind(L,D,"on"),C==null?L:L.get(Ci(C))}function Ci(h){return h.length===1?function(g,w){h(g==null?w:null)}:h}function a1(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var w=new RegExp('["'+h+` -]`),C=h.charCodeAt(0);function L(ie,oe,ye){arguments.length<3&&(ye=oe,oe=null);var ge=ll(ie,g,oe==null?D:G(oe),ye);return ge.row=function(Xe){return arguments.length?ge.response((oe=Xe)==null?D:G(Xe)):oe},ge}function D(ie){return L.parse(ie.responseText)}function G(ie){return function(oe){return L.parse(oe.responseText,ie)}}L.parse=function(ie,oe){var ye;return L.parseRows(ie,function(ge,Xe){if(ye)return ye(ge,Xe-1);var Qe=function(Me){for(var Re={},He=ge.length,er=0;er=Qe)return ge;if(er)return er=!1,ye;var Fr=Me;if(ie.charCodeAt(Fr)===34){for(var Br=Fr;Br++{var Jne=Object.create;var G1=Object.defineProperty,Qne=Object.defineProperties,Kne=Object.getOwnPropertyDescriptor,eie=Object.getOwnPropertyDescriptors,rie=Object.getOwnPropertyNames,SM=Object.getOwnPropertySymbols,tie=Object.getPrototypeOf,kM=Object.prototype.hasOwnProperty,aie=Object.prototype.propertyIsEnumerable;var EM=(e,r,t)=>r in e?G1(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,_h=(e,r)=>{for(var t in r||(r={}))kM.call(r,t)&&EM(e,t,r[t]);if(SM)for(var t of SM(r))aie.call(r,t)&&EM(e,t,r[t]);return e},Pg=(e,r)=>Qne(e,eie(r));var Ng=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var N=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},nie=(e,r)=>{for(var t in r)G1(e,t,{get:r[t],enumerable:!0})},CM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of rie(r))!kM.call(e,n)&&n!==t&&G1(e,n,{get:()=>r[n],enumerable:!(a=Kne(r,n))||a.enumerable});return e};var iie=(e,r,t)=>(t=e!=null?Jne(tie(e)):{},CM(r||!e||!e.__esModule?G1(t,"default",{value:e,enumerable:!0}):t,e)),oie=e=>CM(G1({},"__esModule",{value:!0}),e);var U1=N(LM=>{"use strict";LM.version="3.7.0"});var RM=N((DM,Ig)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Ig!="undefined"&&Ig.exports&&(Ig.exports=t[r])})("Promise",typeof window!="undefined"?window:DM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,_,x,A){return Object.defineProperty(T,_,{value:x,writable:!0,configurable:A!==!1})}}catch(b){r=function(_,x,A){return _[x]=A,_}}a=(function(){var T,_,x;function A(E,M){this.fn=E,this.self=M,this.next=void 0}return{add:function(M,k){x=new A(M,k),_?_.next=x:T=x,_=x,x=void 0},drain:function(){var M=T;for(T=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(b,T){a.add(b,T),t||(t=i(a.drain))}function l(b){var T,_=typeof b;return b!=null&&(_=="object"||_=="function")&&(T=b.then),typeof T=="function"?T:!1}function s(){for(var b=0;b0&&o(s,_))}catch(x){c.call(new d(_),x)}}}function c(b){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=b,T.state=2,T.chain.length>0&&o(s,T))}function v(b,T,_,x){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var w=g.length,C=new Array(w);w--;)C[w]=g[w];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,f=this.CSSStyleDeclaration.prototype,u=f.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,C){s.call(this,g,w,C+"")},f.setProperty=function(g,w,C){u.call(this,g,w+"",C)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wD&&(L=D)}else{for(;++w=D){L=D;break}for(;++wD&&(L=D)}return L},e.max=function(h,g){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wL&&(L=D)}else{for(;++w=D){L=D;break}for(;++wL&&(L=D)}return L},e.extent=function(h,g){var w=-1,C=h.length,L,D,G;if(arguments.length===1){for(;++w=D){L=G=D;break}for(;++wD&&(L=D),G=D){L=G=D;break}for(;++wD&&(L=D),G1)return G/(Z-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C>>1;h(g[D],w)<0?C=D+1:L=D}return C},right:function(g,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C>>1;h(g[D],w)>0?L=D:C=D+1}return C}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,w){return c(h(g),w)}:h)},e.shuffle=function(h,g,w){(C=arguments.length)<3&&(w=h.length,C<2&&(g=0));for(var C=w-g,L,D;C;)D=Math.random()*C--|0,L=h[C+g],h[C+g]=h[D+g],h[D+g]=L;return h},e.permute=function(h,g){for(var w=g.length,C=new Array(w);w--;)C[w]=h[g[w]];return C},e.pairs=function(h){for(var g=0,w=h.length-1,C,L=h[0],D=new Array(w<0?0:w);g=0;)for(G=h[g],w=G.length;--w>=0;)D[--L]=G[w];return D};var b=Math.abs;e.range=function(h,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=h,h=0)),(g-h)/w===1/0)throw new Error("infinite range");var C=[],L=T(b(w)),D=-1,G;if(h*=L,g*=L,w*=L,w<0)for(;(G=h+w*++D)>g;)C.push(G/L);else for(;(G=h+w*++D)=g.length)return L?L.call(h,Z):C?Z.sort(C):Z;for(var oe=-1,me=Z.length,ge=g[ie++],Xe,Qe,Me,Fe=new x,Ve;++oe=g.length)return q;var ie=[],oe=w[Z++];return q.forEach(function(me,ge){ie.push({key:me,values:G(ge,Z)})}),oe?ie.sort(function(me,ge){return oe(me.key,ge.key)}):ie}return h.map=function(q,Z){return D(Z,q,0)},h.entries=function(q){return G(D(e.map,q,0),0)},h.key=function(q){return g.push(q),h},h.sortKeys=function(q){return w[g.length-1]=q,h},h.sortValues=function(q){return C=q,h},h.rollup=function(q){return L=q,h},h},e.set=function(h){var g=new W;if(h)for(var w=0,C=h.length;w=0&&(C=h.slice(w+1),h=h.slice(0,w)),h)return arguments.length<2?this[h].on(C):this[h].on(C,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(C,null);return this}};function le(h){var g=[],w=new x;function C(){for(var L=g,D=-1,G=L.length,q;++D=0&&(w=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Re.hasOwnProperty(w)?{space:Re[w],local:h}:h}},Ye.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var w=this.node();return h=e.ns.qualify(h),h.local?w.getAttributeNS(h.space,h.local):w.getAttribute(h)}for(g in h)this.each(Je(g,h[g]));return this}return this.each(Je(h,g))};function Je(h,g){h=e.ns.qualify(h);function w(){this.removeAttribute(h)}function C(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function D(){this.setAttributeNS(h.space,h.local,g)}function G(){var Z=g.apply(this,arguments);Z==null?this.removeAttribute(h):this.setAttribute(h,Z)}function q(){var Z=g.apply(this,arguments);Z==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,Z)}return g==null?h.local?C:w:typeof g=="function"?h.local?q:G:h.local?D:L}function Ke(h){return h.trim().replace(/\s+/g," ")}Ye.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),C=(h=Ar(h)).length,L=-1;if(g=w.classList){for(;++L=0;)(D=w[C])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},Ye.sort=function(h){h=or.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=L+1);!(Z=G[g])&&++g0&&(h=h.slice(0,L));var G=Gr.get(h);G&&(h=G,D=Yr);function q(){var oe=this[C];oe&&(this.removeEventListener(h,oe,oe.$),delete this[C])}function Z(){var oe=D(g,t(arguments));q.call(this),this.addEventListener(h,this[C]=oe,oe.$=w),oe._=g}function ie(){var oe=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),me;for(var ge in this)if(me=ge.match(oe)){var Xe=this[ge];this.removeEventListener(me[1],Xe,Xe.$),delete this[ge]}}return L?g?Z:q:g?j:ie}var Gr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Gr.forEach(function(h){"on"+h in a&&Gr.remove(h)});function nt(h,g){return function(w){var C=e.event;e.event=w,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=C}}}function Yr(h,g){var w=nt(h,g);return function(C){var L=this,D=C.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&w.call(L,C)}}var Wr,xt=0;function jr(h){var g=".dragsuppress-"+ ++xt,w="click"+g,C=e.select(i(h)).on("touchmove"+g,Ee).on("dragstart"+g,Ee).on("selectstart"+g,Ee);if(Wr==null&&(Wr="onselectstart"in h?!1:Q(h.style,"userSelect")),Wr){var L=n(h).style,D=L[Wr];L[Wr]="none"}return function(G){if(C.on(g,null),Wr&&(L[Wr]=D),G){var q=function(){C.on(w,null)};C.on(w,function(){Ee(),q()},!0),setTimeout(q,0)}}}e.mouse=function(h){return dr(h,Ge())};var ot=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function dr(h,g){g.changedTouches&&(g=g.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var C=w.createSVGPoint();if(ot<0){var L=i(h);if(L.scrollX||L.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=w[0][0].getScreenCTM();ot=!(D.f||D.e),w.remove()}}return ot?(C.x=g.pageX,C.y=g.pageY):(C.x=g.clientX,C.y=g.clientY),C=C.matrixTransform(h.getScreenCTM().inverse()),[C.x,C.y]}var G=h.getBoundingClientRect();return[g.clientX-G.left-h.clientLeft,g.clientY-G.top-h.clientTop]}e.touch=function(h,g,w){if(arguments.length<3&&(w=g,g=Ge().changedTouches),g){for(var C=0,L=g.length,D;C0?1:h<0?-1:0}function za(h,g,w){return(g[0]-h[0])*(w[1]-h[1])-(g[1]-h[1])*(w[0]-h[0])}function rn(h){return h>1?0:h<-1?_r:Math.acos(h)}function Wa(h){return h>1?wt:h<-1?-wt:Math.asin(h)}function Ln(h){return((h=Math.exp(h))-1/h)/2}function _n(h){return((h=Math.exp(h))+1/h)/2}function Ei(h){return((h=Math.exp(2*h))-1)/(h+1)}function un(h){return(h=Math.sin(h/2))*h}var zn=Math.SQRT2,ki=2,Dn=4;e.interpolateZoom=function(h,g){var w=h[0],C=h[1],L=h[2],D=g[0],G=g[1],q=g[2],Z=D-w,ie=G-C,oe=Z*Z+ie*ie,me,ge;if(oe0&&(dt=dt.transition().duration(G)),dt.call(rr.event)}function Ct(){Fe&&Fe.domain(Me.range().map(function(dt){return(dt-h.x)/h.k}).map(Me.invert)),er&&er.domain(Ve.range().map(function(dt){return(dt-h.y)/h.k}).map(Ve.invert))}function Lt(dt){q++||dt({type:"zoomstart"})}function Vt(dt){Ct(),dt({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Ft(dt){--q||(dt({type:"zoomend"}),w=null)}function It(){var dt=this,Yt=Qe.of(dt,arguments),jt=0,ua=e.select(i(dt)).on(ie,Kn).on(oe,ei),ja=De(e.mouse(dt)),Rn=jr(dt);Dc.call(dt),Lt(Yt);function Kn(){jt=1,it(e.mouse(dt),ja),Vt(Yt)}function ei(){ua.on(ie,null).on(oe,null),Rn(jt),Ft(Yt)}}function ga(){var dt=this,Yt=Qe.of(dt,arguments),jt={},ua=0,ja,Rn=".zoom-"+e.event.changedTouches[0].identifier,Kn="touchmove"+Rn,ei="touchend"+Rn,Fi=[],S=e.select(dt),B=jr(dt);he(),Lt(Yt),S.on(Z,null).on(ge,he);function V(){var we=e.touches(dt);return ja=h.k,we.forEach(function(We){We.identifier in jt&&(jt[We.identifier]=De(We))}),we}function he(){var we=e.event.target;e.select(we).on(Kn,_e).on(ei,Ae),Fi.push(we);for(var We=e.event.changedTouches,ir=0,nr=We.length;ir1){var Fr=lr[0],mr=lr[1],Ne=Fr[0]-mr[0],ue=Fr[1]-mr[1];ua=Ne*Ne+ue*ue}}function _e(){var we=e.touches(dt),We,ir,nr,lr;Dc.call(dt);for(var Jr=0,Fr=we.length;Jr1?1:g,w=w<0?0:w>1?1:w,L=w<=.5?w*(1+g):w+g-w*g,C=2*w-L;function D(q){return q>360?q-=360:q<0&&(q+=360),q<60?C+(L-C)*q/60:q<180?L:q<240?C+(L-C)*(240-q)/60:C}function G(q){return Math.round(D(q)*255)}return new pi(G(h+120),G(h),G(h-120))}e.hcl=da;function da(h,g,w){return this instanceof da?(this.h=+h,this.c=+g,void(this.l=+w)):arguments.length<2?h instanceof da?new da(h.h,h.c,h.l):h instanceof Nn?Go(h.l,h.a,h.b):Go((h=_t((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new da(h,g,w)}var di=da.prototype=new ha;di.brighter=function(h){return new da(this.h,this.c,Math.min(100,this.l+Ya*(arguments.length?h:1)))},di.darker=function(h){return new da(this.h,this.c,Math.max(0,this.l-Ya*(arguments.length?h:1)))},di.rgb=function(){return Xi(this.h,this.c,this.l).rgb()};function Xi(h,g,w){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Nn(w,Math.cos(h*=Nt)*g,Math.sin(h)*g)}e.lab=Nn;function Nn(h,g,w){return this instanceof Nn?(this.l=+h,this.a=+g,void(this.b=+w)):arguments.length<2?h instanceof Nn?new Nn(h.l,h.a,h.b):h instanceof da?Xi(h.h,h.c,h.l):_t((h=pi(h)).r,h.g,h.b):new Nn(h,g,w)}var Ya=18,wn=.95047,An=1,vs=1.08883,Ll=Nn.prototype=new ha;Ll.brighter=function(h){return new Nn(Math.min(100,this.l+Ya*(arguments.length?h:1)),this.a,this.b)},Ll.darker=function(h){return new Nn(Math.max(0,this.l-Ya*(arguments.length?h:1)),this.a,this.b)},Ll.rgb=function(){return ac(this.l,this.a,this.b)};function ac(h,g,w){var C=(h+16)/116,L=C+g/500,D=C-w/200;return L=Qf(L)*wn,C=Qf(C)*An,D=Qf(D)*vs,new pi(Zi(3.2404542*L-1.5371385*C-.4985314*D),Zi(-.969266*L+1.8760108*C+.041556*D),Zi(.0556434*L-.2040259*C+1.0572252*D))}function Go(h,g,w){return h>0?new da(Math.atan2(w,g)*ta,Math.sqrt(g*g+w*w),h):new da(NaN,NaN,h)}function Qf(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Kf(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Zi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=pi;function pi(h,g,w){return this instanceof pi?(this.r=~~h,this.g=~~g,void(this.b=~~w)):arguments.length<2?h instanceof pi?new pi(h.r,h.g,h.b):Jt(""+h,pi,Ra):new pi(h,g,w)}function zi(h){return new pi(h>>16,h>>8&255,h&255)}function Dl(h){return zi(h)+""}var yi=pi.prototype=new ha;yi.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,w=this.g,C=this.b,L=30;return!g&&!w&&!C?new pi(L,L,L):(g&&g>4,C=C>>4|C,L=Z&240,L=L>>4|L,D=Z&15,D=D<<4|D):h.length===7&&(C=(Z&16711680)>>16,L=(Z&65280)>>8,D=Z&255)),g(C,L,D))}function fa(h,g,w){var C=Math.min(h/=255,g/=255,w/=255),L=Math.max(h,g,w),D=L-C,G,q,Z=(L+C)/2;return D?(q=Z<.5?D/(L+C):D/(2-L-C),h==L?G=(g-w)/D+(g0&&Z<1?0:G),new Sa(G,q,Z)}function _t(h,g,w){h=Qn(h),g=Qn(g),w=Qn(w);var C=Kf((.4124564*h+.3575761*g+.1804375*w)/wn),L=Kf((.2126729*h+.7151522*g+.072175*w)/An),D=Kf((.0193339*h+.119192*g+.9503041*w)/vs);return Nn(116*L-16,500*(C-L),200*(L-D))}function Qn(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ga(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var In=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});In.forEach(function(h,g){In.set(h,zi(g))});function ra(h){return typeof h=="function"?h:function(){return h}}e.functor=ra,e.xhr=To(ee);function To(h){return function(g,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),ll(g,w,h,C)}}function ll(h,g,w,C){var L={},D=e.dispatch("beforesend","progress","load","error"),G={},q=new XMLHttpRequest,Z=null;self.XDomainRequest&&!("withCredentials"in q)&&/^(http(s)?:)?\/\//.test(h)&&(q=new XDomainRequest),"onload"in q?q.onload=q.onerror=ie:q.onreadystatechange=function(){q.readyState>3&&ie()};function ie(){var oe=q.status,me;if(!oe&&n1(q)||oe>=200&&oe<300||oe===304){try{me=w.call(L,q)}catch(ge){D.error.call(L,ge);return}D.load.call(L,me)}else D.error.call(L,q)}return q.onprogress=function(oe){var me=e.event;e.event=oe;try{D.progress.call(L,q)}finally{e.event=me}},L.header=function(oe,me){return oe=(oe+"").toLowerCase(),arguments.length<2?G[oe]:(me==null?delete G[oe]:G[oe]=me+"",L)},L.mimeType=function(oe){return arguments.length?(g=oe==null?null:oe+"",L):g},L.responseType=function(oe){return arguments.length?(Z=oe,L):Z},L.response=function(oe){return w=oe,L},["get","post"].forEach(function(oe){L[oe]=function(){return L.send.apply(L,[oe].concat(t(arguments)))}}),L.send=function(oe,me,ge){if(arguments.length===2&&typeof me=="function"&&(ge=me,me=null),q.open(oe,h,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),q.setRequestHeader)for(var Xe in G)q.setRequestHeader(Xe,G[Xe]);return g!=null&&q.overrideMimeType&&q.overrideMimeType(g),Z!=null&&(q.responseType=Z),ge!=null&&L.on("error",ge).on("load",function(Qe){ge(null,Qe)}),D.beforesend.call(L,q),q.send(me==null?null:me),L},L.abort=function(){return q.abort(),L},e.rebind(L,D,"on"),C==null?L:L.get(Ci(C))}function Ci(h){return h.length===1?function(g,w){h(g==null?w:null)}:h}function n1(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var w=new RegExp('["'+h+` +]`),C=h.charCodeAt(0);function L(ie,oe,me){arguments.length<3&&(me=oe,oe=null);var ge=ll(ie,g,oe==null?D:G(oe),me);return ge.row=function(Xe){return arguments.length?ge.response((oe=Xe)==null?D:G(Xe)):oe},ge}function D(ie){return L.parse(ie.responseText)}function G(ie){return function(oe){return L.parse(oe.responseText,ie)}}L.parse=function(ie,oe){var me;return L.parseRows(ie,function(ge,Xe){if(me)return me(ge,Xe-1);var Qe=function(Me){for(var Fe={},Ve=ge.length,er=0;er=Qe)return ge;if(er)return er=!1,me;var Rr=Me;if(ie.charCodeAt(Rr)===34){for(var Br=Rr;Br++24?(isFinite(g)&&(clearTimeout(mi),mi=setTimeout(Mo,g)),Uo=0):(Uo=1,nf(Mo))}e.timer.flush=function(){Rl(),nc()};function Rl(){for(var h=Date.now(),g=An;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function nc(){for(var h,g=An,w=1/0;g;)g.c?(g.t=0;--q)Me.push(L[ie[ye[q]][2]]);for(q=+Xe;q1&&za(h[w[C-2]],h[w[C-1]],h[L])<=0;)--C;w[C++]=L}return w.slice(0,C)}function n1(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return we(h,ic),h};var ic=e.geom.polygon.prototype=[];ic.area=function(){for(var h=-1,g=this.length,w,C=this[g-1],L=0;++hIe)q=q.L;else if(G=g-Hv(q,w),G>Ie){if(!q.R){C=q;break}q=q.R}else{D>-Ie?(C=q.P,L=q):G>-Ie?(C=q,L=q.N):C=L=q;break}var Z=oc(h);if(yi.insert(C,Z),!(!C&&!L)){if(C===L){ff(C),L=oc(C.site),yi.insert(Z,L),Z.edge=L.edge=au(C.site,Z.site),Gi(C),Gi(L);return}if(!L){Z.edge=au(C.site,Z.site);return}ff(C),ff(L);var ie=C.site,oe=ie.x,ye=ie.y,ge=h.x-oe,Xe=h.y-ye,Qe=L.site,Me=Qe.x-oe,Re=Qe.y-ye,He=2*(ge*Re-Xe*Me),er=ge*ge+Xe*Xe,rr=Me*Me+Re*Re,De={x:(Re*er-Xe*rr)/He+oe,y:(ge*rr-Me*er)/He+ye};Pl(L.edge,ie,Qe,De),Z.edge=au(ie,h,null,De),L.edge=au(h,Qe,null,De),Gi(C),Gi(L)}}function lc(h,g){var w=h.site,C=w.x,L=w.y,D=L-g;if(!D)return C;var G=h.P;if(!G)return-1/0;w=G.site;var q=w.x,Z=w.y,ie=Z-g;if(!ie)return q;var oe=q-C,ye=1/D-1/ie,ge=oe/ie;return ye?(-ge+Math.sqrt(ge*ge-2*ye*(oe*oe/(-2*ie)-Z+ie/2+L-D/2)))/ye+C:(C+q)/2}function Hv(h,g){var w=h.N;if(w)return lc(w,g);var C=h.site;return C.y===g?C.x:1/0}function sc(h){this.site=h,this.edges=[]}sc.prototype.prepare=function(){for(var h=this.edges,g=h.length,w;g--;)w=h[g].edge,(!w.b||!w.a)&&h.splice(g,1);return h.sort(sf),h.length};function Eo(h){for(var g=h[0][0],w=h[1][0],C=h[0][1],L=h[1][1],D,G,q,Z,ie=So,oe=ie.length,ye,ge,Xe,Qe,Me,Re;oe--;)if(ye=ie[oe],!(!ye||!ye.prepare()))for(Xe=ye.edges,Qe=Xe.length,ge=0;geIe||b(Z-G)>Ie)&&(Xe.splice(ge,0,new fc(l1(ye.site,Re,b(q-g)Ie?{x:g,y:b(D-g)Ie?{x:b(G-L)Ie?{x:w,y:b(D-w)Ie?{x:b(G-C)=-pr)){var ge=Z*Z+ie*ie,Xe=oe*oe+Re*Re,Qe=(Re*ge-ie*Xe)/ye,Me=(Z*Xe-oe*ge)/ye,Re=Me+q,He=lf.pop()||new ru;He.arc=h,He.site=L,He.x=Qe+G,He.y=Re+Math.sqrt(Qe*Qe+Me*Me),He.cy=Re,h.circle=He;for(var er=null,rr=sl._;rr;)if(He.y0)){if(Me/=Xe,Xe<0){if(Me0){if(Me>ge)return;Me>ye&&(ye=Me)}if(Me=w-q,!(!Xe&&Me<0)){if(Me/=Xe,Xe<0){if(Me>ge)return;Me>ye&&(ye=Me)}else if(Xe>0){if(Me0)){if(Me/=Qe,Qe<0){if(Me0){if(Me>ge)return;Me>ye&&(ye=Me)}if(Me=C-Z,!(!Qe&&Me<0)){if(Me/=Qe,Qe<0){if(Me>ge)return;Me>ye&&(ye=Me)}else if(Qe>0){if(Me0&&(L.a={x:q+ye*Xe,y:Z+ye*Qe}),ge<1&&(L.b={x:q+ge*Xe,y:Z+ge*Qe}),L}}}}}}function o1(h){for(var g=Yo,w=i1(h[0][0],h[0][1],h[1][0],h[1][1]),C=g.length,L;C--;)L=g[C],(!tu(L,h)||!w(L)||b(L.a.x-L.b.x)=D)return;if(oe>ge){if(!C)C={x:Qe,y:G};else if(C.y>=q)return;w={x:Qe,y:q}}else{if(!C)C={x:Qe,y:q};else if(C.y1)if(oe>ge){if(!C)C={x:(G-He)/Re,y:G};else if(C.y>=q)return;w={x:(q-He)/Re,y:q}}else{if(!C)C={x:(q-He)/Re,y:q};else if(C.y=D)return;w={x:D,y:Re*D+He}}else{if(!C)C={x:D,y:Re*D+He};else if(C.x=oe&&He.x<=ge&&He.y>=ye&&He.y<=Xe?[[oe,Xe],[ge,Xe],[ge,ye],[oe,ye]]:[];er.point=Z[Me]}),ie}function q(Z){return Z.map(function(ie,oe){return{x:Math.round(C(ie,oe)/Ie)*Ie,y:Math.round(L(ie,oe)/Ie)*Ie,i:oe}})}return G.links=function(Z){return ul(q(Z)).edges.filter(function(ie){return ie.l&&ie.r}).map(function(ie){return{source:Z[ie.l.i],target:Z[ie.r.i]}})},G.triangles=function(Z){var ie=[];return ul(q(Z)).cells.forEach(function(oe,ye){for(var ge=oe.site,Xe=oe.edges.sort(sf),Qe=-1,Me=Xe.length,Re,He,er=Xe[Me-1].edge,rr=er.l===ge?er.r:er.l;++Qerr&&(rr=oe.x),oe.y>De&&(De=oe.y),Xe.push(oe.x),Qe.push(oe.y);else for(Me=0;Merr&&(rr=Fr),Br>De&&(De=Br),Xe.push(Fr),Qe.push(Br)}var it=rr-He,yt=De-er;it>yt?De=er+it:rr=He+yt;function Ct(Rt,It,ya,gn,La,dt,Yt,jt){if(!(isNaN(ya)||isNaN(gn)))if(Rt.leaf){var ua=Rt.x,ja=Rt.y;if(ua!=null)if(b(ua-ya)+b(ja-gn)<.01)Lt(Rt,It,ya,gn,La,dt,Yt,jt);else{var Dn=Rt.point;Rt.x=Rt.y=Rt.point=null,Lt(Rt,Dn,ua,ja,La,dt,Yt,jt),Lt(Rt,It,ya,gn,La,dt,Yt,jt)}else Rt.x=ya,Rt.y=gn,Rt.point=It}else Lt(Rt,It,ya,gn,La,dt,Yt,jt)}function Lt(Rt,It,ya,gn,La,dt,Yt,jt){var ua=(La+Yt)*.5,ja=(dt+jt)*.5,Dn=ya>=ua,Qn=gn>=ja,Kn=Qn<<1|Dn;Rt.leaf=!1,Rt=Rt.nodes[Kn]||(Rt.nodes[Kn]=B0()),Dn?La=ua:Yt=ua,Qn?dt=ja:jt=ja,Ct(Rt,It,ya,gn,La,dt,Yt,jt)}var Vt=B0();if(Vt.add=function(Rt){Ct(Vt,Rt,+ye(Rt,++Me),+ge(Rt,Me),He,er,rr,De)},Vt.visit=function(Rt){nu(Rt,Vt,He,er,rr,De)},Vt.find=function(Rt){return Vv(Vt,Rt[0],Rt[1],He,er,rr,De)},Me=-1,g==null){for(;++MeD||ge>G||Xe=Fr,yt=w>=Br,Ct=yt<<1|it,Lt=Ct+4;Ctw&&(D=g.slice(w,D),q[G]?q[G]+=D:q[++G]=D),(C=C[0])===(L=L[0])?q[G]?q[G]+=L:q[++G]=L:(q[++G]=null,Z.push({i:G,x:Li(C,L)})),w=iu.lastIndex;return w=0&&!(C=e.interpolators[w](h,g)););return C}e.interpolators=[function(h,g){var w=typeof g;return(w==="string"?Nn.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?ko:Tn:g instanceof ma?ko:Array.isArray(g)?cf:w==="object"&&isNaN(g)?z0:Li)(h,g)}],e.interpolateArray=cf;function cf(h,g){var w=[],C=[],L=h.length,D=g.length,G=Math.min(h.length,g.length),q;for(q=0;q=0?h.slice(0,g):h,C=g>=0?h.slice(g+1):"in";return w=Yv.get(w)||cc,C=Wv.get(C)||ee,v1(C(w.apply(null,r.call(arguments,1))))};function v1(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function co(h){return function(g){return 1-h(1-g)}}function Ta(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function jv(h){return h*h}function Xv(h){return h*h*h}function $i(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,w=g*h;return 4*(h<.5?w:3*(h-g)+w-.75)}function Zv(h){return function(g){return Math.pow(g,h)}}function Jv(h){return 1-Math.cos(h*wt)}function h1(h){return Math.pow(2,10*(h-1))}function d1(h){return 1-Math.sqrt(1-h*h)}function p1(h,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/ht*Math.asin(1/h):(h=1,w=g/4),function(C){return 1+h*Math.pow(2,-10*C)*Math.sin((C-w)*ht/g)}}function m1(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function ou(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=$v;function $v(h,g){h=e.hcl(h),g=e.hcl(g);var w=h.h,C=h.c,L=h.l,D=g.h-w,G=g.c-C,q=g.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?g.c:C),isNaN(D)?(D=0,w=isNaN(w)?g.h:w):D>180?D-=360:D<-180&&(D+=360),function(Z){return Xi(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateHsl=y1;function y1(h,g){h=e.hsl(h),g=e.hsl(g);var w=h.h,C=h.s,L=h.l,D=g.h-w,G=g.s-C,q=g.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?g.s:C),isNaN(D)?(D=0,w=isNaN(w)?g.h:w):D>180?D-=360:D<-180&&(D+=360),function(Z){return Fa(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateLab=Qv;function Qv(h,g){h=e.lab(h),g=e.lab(g);var w=h.l,C=h.a,L=h.b,D=g.l-w,G=g.a-C,q=g.b-L;return function(Z){return ac(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateRound=vc;function vc(h,g){return g-=h,function(w){return Math.round(h+g*w)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var C=g.transform.baseVal.consolidate()}return new G0(C?C.matrix:gs)})(h)};function G0(h){var g=[h.a,h.b],w=[h.c,h.d],C=U0(g),L=Nl(g,w),D=U0(Di(w,g,-L))||0;g[0]*w[1]180?g+=360:g-h>180&&(h+=360),C.push({i:w.push(Il(w)+"rotate(",null,")")-2,x:Li(h,g)})):g&&w.push(Il(w)+"rotate("+g+")")}function rh(h,g,w,C){h!==g?C.push({i:w.push(Il(w)+"skewX(",null,")")-2,x:Li(h,g)}):g&&w.push(Il(w)+"skewX("+g+")")}function th(h,g,w,C){if(h[0]!==g[0]||h[1]!==g[1]){var L=w.push(Il(w)+"scale(",null,",",null,")");C.push({i:L-4,x:Li(h[0],g[0])},{i:L-2,x:Li(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Il(w)+"scale("+g+")")}function hc(h,g){var w=[],C=[];return h=e.transform(h),g=e.transform(g),Kv(h.translate,g.translate,w,C),eh(h.rotate,g.rotate,w,C),rh(h.skew,g.skew,w,C),th(h.scale,g.scale,w,C),h=g=null,function(L){for(var D=-1,G=C.length,q;++D0?D=De:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:D=0})):De>0&&(g.start({type:"start",alpha:D=De}),w=Ho(h.tick)),h):D},h.start=function(){var De,Fr=Xe.length,Br=Qe.length,it=C[0],yt=C[1],Ct,Lt;for(De=0;De=0;)D.push(oe=ie[Z]),oe.parent=q,oe.depth=q.depth+1;w&&(q.value=0),q.children=ie}else w&&(q.value=+w.call(C,q,q.depth)||0),delete q.children;return Wo(L,function(ye){var ge,Xe;h&&(ge=ye.children)&&ge.sort(h),w&&(Xe=ye.parent)&&(Xe.value+=ye.value)}),G}return C.sort=function(L){return arguments.length?(h=L,C):h},C.children=function(L){return arguments.length?(g=L,C):g},C.value=function(L){return arguments.length?(w=L,C):w},C.revalue=function(L){return w&&(su(L,function(D){D.children&&(D.value=0)}),Wo(L,function(D){var G;D.children||(D.value=+w.call(C,D,D.depth)||0),(G=D.parent)&&(G.value+=D.value)})),L},C};function bs(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=w1,h}function su(h,g){for(var w=[h];(h=w.pop())!=null;)if(g(h),(L=h.children)&&(C=L.length))for(var C,L;--C>=0;)w.push(L[C])}function Wo(h,g){for(var w=[h],C=[];(h=w.pop())!=null;)if(C.push(h),(G=h.children)&&(D=G.length))for(var L=-1,D,G;++LL&&(L=q),C.push(q)}for(G=0;GC&&(w=g,C=L);return w}function M1(h){return h.reduce(S1,0)}function S1(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,w=k1,C=E1;function L(D,ge){for(var q=[],Z=D.map(g,this),ie=w.call(this,Z,ge),oe=C.call(this,ie,Z,ge),ye,ge=-1,Xe=Z.length,Qe=oe.length-1,Me=h?1:1/Xe,Re;++ge0)for(ge=-1;++ge=ie[0]&&Re<=ie[1]&&(ye=q[e.bisect(oe,Re,1,Qe)-1],ye.y+=Me,ye.push(D[ge]));return q}return L.value=function(D){return arguments.length?(g=D,L):g},L.range=function(D){return arguments.length?(w=ra(D),L):w},L.bins=function(D){return arguments.length?(C=typeof D=="number"?function(G){return H0(G,D)}:ra(D),L):C},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function E1(h,g){return H0(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function H0(h,g){for(var w=-1,C=+h[0],L=(h[1]-C)/g,D=[];++w<=g;)D[w]=L*w+C;return D}function k1(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(fu),g=0,w=[1,1],C;function L(D,G){var q=h.call(this,D,G),Z=q[0],ie=w[0],oe=w[1],ye=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(Z.x=Z.y=0,Wo(Z,function(Xe){Xe.r=+ye(Xe.value)}),Wo(Z,Y0),g){var ge=g*(C?1:Math.max(2*Z.r/ie,2*Z.r/oe))/2;Wo(Z,function(Xe){Xe.r+=ge}),Wo(Z,Y0),Wo(Z,function(Xe){Xe.r-=ge})}return W0(Z,ie/2,oe/2,C?1:1/Math.max(2*Z.r/ie,2*Z.r/oe)),q}return L.size=function(D){return arguments.length?(w=D,L):w},L.radius=function(D){return arguments.length?(C=D==null||typeof D=="function"?D:+D,L):C},L.padding=function(D){return arguments.length?(g=+D,L):g},bs(L,h)};function fu(h,g){return h.value-g.value}function hh(h,g){var w=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=w,w._pack_prev=g}function pc(h,g){h._pack_next=g,g._pack_prev=h}function V0(h,g){var w=g.x-h.x,C=g.y-h.y,L=h.r+g.r;return .999*L*L>w*w+C*C}function Y0(h){if(!(g=h.children)||!(ge=g.length))return;var g,w=1/0,C=-1/0,L=1/0,D=-1/0,G,q,Z,ie,oe,ye,ge;function Xe(De){w=Math.min(De.x-De.r,w),C=Math.max(De.x+De.r,C),L=Math.min(De.y-De.r,L),D=Math.max(De.y+De.r,D)}if(g.forEach(C1),G=g[0],G.x=-G.r,G.y=0,Xe(G),ge>1&&(q=g[1],q.x=q.r,q.y=0,Xe(q),ge>2))for(Z=g[2],Rg(G,q,Z),Xe(Z),hh(G,Z),G._pack_prev=Z,hh(Z,q),q=G._pack_next,ie=3;ieRe.x&&(Re=Fr),Fr.depth>He.depth&&(He=Fr)});var er=g(Me,Re)/2-Me.x,rr=w[0]/(Re.x+g(Re,Me)/2+er),De=w[1]/(He.depth||1);su(Xe,function(Fr){Fr.x=(Fr.x+er)*rr,Fr.y=Fr.depth*De})}return ge}function D(oe){for(var ye={A:null,children:[oe]},ge=[ye],Xe;(Xe=ge.pop())!=null;)for(var Qe=Xe.children,Me,Re=0,He=Qe.length;Re0&&(R1(dh(Me,oe,ge),oe,Fr),He+=Fr,er+=Fr),rr+=Me.m,He+=Xe.m,De+=Re.m,er+=Qe.m;Me&&!F1(Qe)&&(Qe.t=Me,Qe.m+=rr-er),Xe&&!D1(Re)&&(Re.t=Xe,Re.m+=He-De,ge=oe)}return ge}function ie(oe){oe.x*=w[0],oe.y=oe.depth*w[1]}return L.separation=function(oe){return arguments.length?(g=oe,L):g},L.size=function(oe){return arguments.length?(C=(w=oe)==null?ie:null,L):C?null:w},L.nodeSize=function(oe){return arguments.length?(C=(w=oe)==null?null:ie,L):C?w:null},bs(L,h)};function j0(h,g){return h.parent==g.parent?1:2}function D1(h){var g=h.children;return g.length?g[0]:h.t}function F1(h){var g=h.children,w;return(w=g.length)?g[w-1]:h.t}function R1(h,g,w){var C=w/(g.i-h.i);g.c-=C,g.s+=w,h.c+=C,g.z+=w,g.m+=w}function uu(h){for(var g=0,w=0,C=h.children,L=C.length,D;--L>=0;)D=C[L],D.z+=g,D.m+=g,g+=D.s+(w+=D.c)}function dh(h,g,w){return h.a.parent===g.parent?h.a:w}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=j0,w=[1,1],C=!1;function L(D,G){var q=h.call(this,D,G),Z=q[0],ie,oe=0;Wo(Z,function(Me){var Re=Me.children;Re&&Re.length?(Me.x=ph(Re),Me.y=zn(Re)):(Me.x=ie?oe+=g(Me,ie):0,Me.y=0,ie=Me)});var ye=X0(Z),ge=Z0(Z),Xe=ye.x-g(ye,ge)/2,Qe=ge.x+g(ge,ye)/2;return Wo(Z,C?function(Me){Me.x=(Me.x-Z.x)*w[0],Me.y=(Z.y-Me.y)*w[1]}:function(Me){Me.x=(Me.x-Xe)/(Qe-Xe)*w[0],Me.y=(1-(Z.y?Me.y/Z.y:1))*w[1]}),q}return L.separation=function(D){return arguments.length?(g=D,L):g},L.size=function(D){return arguments.length?(C=(w=D)==null,L):C?null:w},L.nodeSize=function(D){return arguments.length?(C=(w=D)!=null,L):C?w:null},bs(L,h)};function zn(h){return 1+e.max(h,function(g){return g.y})}function ph(h){return h.reduce(function(g,w){return g+w.x},0)/h.length}function X0(h){var g=h.children;return g&&g.length?X0(g[0]):h}function Z0(h){var g=h.children,w;return g&&(w=g.length)?Z0(g[w-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,w=[1,1],C=null,L=mh,D=!1,G,q="squarify",Z=.5*(1+Math.sqrt(5));function ie(Me,Re){for(var He=-1,er=Me.length,rr,De;++He0;)er.push(De=rr[yt-1]),er.area+=De.area,q!=="squarify"||(Br=ge(er,it))<=Fr?(rr.pop(),Fr=Br):(er.area-=er.pop().area,Xe(er,it,He,!1),it=Math.min(He.dx,He.dy),er.length=er.area=0,Fr=1/0);er.length&&(Xe(er,it,He,!0),er.length=er.area=0),Re.forEach(oe)}}function ye(Me){var Re=Me.children;if(Re&&Re.length){var He=L(Me),er=Re.slice(),rr,De=[];for(ie(er,He.dx*He.dy/Me.value),De.area=0;rr=er.pop();)De.push(rr),De.area+=rr.area,rr.z!=null&&(Xe(De,rr.z?He.dx:He.dy,He,!er.length),De.length=De.area=0);Re.forEach(ye)}}function ge(Me,Re){for(var He=Me.area,er,rr=0,De=1/0,Fr=-1,Br=Me.length;++Frrr&&(rr=er));return He*=He,Re*=Re,He?Math.max(Re*rr*Z/He,He/(Re*De*Z)):1/0}function Xe(Me,Re,He,er){var rr=-1,De=Me.length,Fr=He.x,Br=He.y,it=Re?g(Me.area/Re):0,yt;if(Re==He.dx){for((er||it>He.dy)&&(it=He.dy);++rrHe.dx)&&(it=He.dx);++rr1);return h+g*C*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,w=0;w2?Do:q1,ie=C?nh:ah;return L=Z(h,g,ie,w),D=Z(g,h,ie,cl),q}function q(Z){return L(Z)}return q.invert=function(Z){return D(Z)},q.domain=function(Z){return arguments.length?(h=Z.map(Number),G()):h},q.range=function(Z){return arguments.length?(g=Z,G()):g},q.rangeRound=function(Z){return q.range(Z).interpolate(vc)},q.clamp=function(Z){return arguments.length?(C=Z,G()):C},q.interpolate=function(Z){return arguments.length?(w=Z,G()):w},q.ticks=function(Z){return As(h,Z)},q.tickFormat=function(Z,ie){return d3_scale_linearTickFormat(h,Z,ie)},q.nice=function(Z){return gc(h,Z),G()},q.copy=function(){return $0(h,g,w,C)},G()}function vo(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function gc(h,g){return vl(h,Ma(Qi(h,g)[2])),vl(h,Ma(Qi(h,g)[2])),h}function Qi(h,g){g==null&&(g=10);var w=mc(h),C=w[1]-w[0],L=Math.pow(10,Math.floor(Math.log(C/g)/Math.LN10)),D=g/C*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),w[0]=Math.ceil(w[0]/L)*L,w[1]=Math.floor(w[1]/L)*L+L*.5,w[2]=L,w}function As(h,g){return e.range.apply(e,Qi(h,g))}var cu={s:1,g:1,p:1,r:1,e:1};function hf(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function bc(h,g){var w=hf(g[2]);return h in cu?Math.abs(w-hf(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):w-(h==="%")*2}e.scale.log=function(){return df(e.scale.linear().domain([0,1]),10,!0,[1,10])};function df(h,g,w,C){function L(q){return(w?Math.log(q<0?0:q):-Math.log(q>0?0:-q))/Math.log(g)}function D(q){return w?Math.pow(g,q):-Math.pow(g,-q)}function G(q){return h(L(q))}return G.invert=function(q){return D(h.invert(q))},G.domain=function(q){return arguments.length?(w=q[0]>=0,h.domain((C=q.map(Number)).map(L)),G):C},G.base=function(q){return arguments.length?(g=+q,h.domain(C.map(L)),G):g},G.nice=function(){var q=vl(C.map(L),w?Math:Ts);return h.domain(q),C=q.map(D),G},G.ticks=function(){var q=mc(C),Z=[],ie=q[0],oe=q[1],ye=Math.floor(L(ie)),ge=Math.ceil(L(oe)),Xe=g%1?2:g;if(isFinite(ge-ye)){if(w){for(;ye0;Qe--)Z.push(D(ye)*Qe);for(ye=0;Z[ye]oe;ge--);Z=Z.slice(ye,ge)}return Z},G.copy=function(){return df(h.copy(),g,w,C)},vo(G,h)}var Ts={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return xc(e.scale.linear(),1,[0,1])};function xc(h,g,w){var C=pf(g),L=pf(1/g);function D(G){return h(C(G))}return D.invert=function(G){return L(h.invert(G))},D.domain=function(G){return arguments.length?(h.domain((w=G.map(Number)).map(C)),D):w},D.ticks=function(G){return As(w,G)},D.tickFormat=function(G,q){return d3_scale_linearTickFormat(w,G,q)},D.nice=function(G){return D.domain(gc(w,G))},D.exponent=function(G){return arguments.length?(C=pf(g=G),L=pf(1/g),h.domain(w.map(C)),D):g},D.copy=function(){return xc(h.copy(),g,w)},vo(D,h)}function pf(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return _c([],{t:"range",a:[[]]})};function _c(h,g){var w,C,L;function D(q){return C[((w.get(q)||(g.t==="range"?w.set(q,h.push(q)):NaN))-1)%C.length]}function G(q,Z){return e.range(h.length).map(function(ie){return q+Z*ie})}return D.domain=function(q){if(!arguments.length)return h;h=[],w=new x;for(var Z=-1,ie=q.length,oe;++Z0?w[D-1]:h[0],Dge?0:1;if(oe=Mt)return Z(oe,Qe)+(ie?Z(ie,1-Qe):"")+"Z";var Me,Re,He,er,rr=0,De=0,Fr,Br,it,yt,Ct,Lt,Vt,Rt,It=[];if((er=(+G.apply(this,arguments)||0)/2)&&(He=C===mf?Math.sqrt(ie*ie+oe*oe):+C.apply(this,arguments),Qe||(De*=-1),oe&&(De=Wa(He/oe*Math.sin(er))),ie&&(rr=Wa(He/ie*Math.sin(er)))),oe){Fr=oe*Math.cos(ye+De),Br=oe*Math.sin(ye+De),it=oe*Math.cos(ge-De),yt=oe*Math.sin(ge-De);var ya=Math.abs(ge-ye-2*De)<=_r?0:1;if(De&&gf(Fr,Br,it,yt)===Qe^ya){var gn=(ye+ge)/2;Fr=oe*Math.cos(gn),Br=oe*Math.sin(gn),it=yt=null}}else Fr=Br=0;if(ie){Ct=ie*Math.cos(ge-rr),Lt=ie*Math.sin(ge-rr),Vt=ie*Math.cos(ye+rr),Rt=ie*Math.sin(ye+rr);var La=Math.abs(ye-ge+2*rr)<=_r?0:1;if(rr&&gf(Ct,Lt,Vt,Rt)===1-Qe^La){var dt=(ye+ge)/2;Ct=ie*Math.cos(dt),Lt=ie*Math.sin(dt),Vt=Rt=null}}else Ct=Lt=0;if(Xe>Ie&&(Me=Math.min(Math.abs(oe-ie)/2,+w.apply(this,arguments)))>.001){Re=ie0?0:1}function bf(h,g,w,C,L){var D=h[0]-g[0],G=h[1]-g[1],q=(L?C:-C)/Math.sqrt(D*D+G*G),Z=q*G,ie=-q*D,oe=h[0]+Z,ye=h[1]+ie,ge=g[0]+Z,Xe=g[1]+ie,Qe=(oe+ge)/2,Me=(ye+Xe)/2,Re=ge-oe,He=Xe-ye,er=Re*Re+He*He,rr=w-C,De=oe*Xe-ge*ye,Fr=(He<0?-1:1)*Math.sqrt(Math.max(0,rr*rr*er-De*De)),Br=(De*He-Re*Fr)/er,it=(-De*Re-He*Fr)/er,yt=(De*He+Re*Fr)/er,Ct=(-De*Re+He*Fr)/er,Lt=Br-Qe,Vt=it-Me,Rt=yt-Qe,It=Ct-Me;return Lt*Lt+Vt*Vt>Rt*Rt+It*It&&(Br=yt,it=Ct),[[Br-Z,it-ie],[Br*w/rr,it*w/rr]]}function xf(){return!0}function Ec(h){var g=Vo,w=hs,C=xf,L=Fi,D=L.key,G=.7;function q(Z){var ie=[],oe=[],ye=-1,ge=Z.length,Xe,Qe=ra(g),Me=ra(w);function Re(){ie.push("M",L(h(oe),G))}for(;++ye1?h.join("L"):h+"Z"}function _f(h){return h.join("L")+"Z"}function hl(h){for(var g=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++g1&&L.push("H",C[0]),L.join("")}function gu(h){for(var g=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++g1){q=g[1],D=h[Z],Z++,C+="C"+(L[0]+G[0])+","+(L[1]+G[1])+","+(D[0]-q[0])+","+(D[1]-q[1])+","+D[0]+","+D[1];for(var ie=2;ie9&&(D=w*3/Math.sqrt(D),G[q]=D*C,G[q+1]=D*L));for(q=-1;++q<=Z;)D=(h[Math.min(Z,q+1)][0]-h[Math.max(0,q-1)][0])/(6*(1+G[q]*G[q])),g.push([D||0,G[q]*D||0]);return g}function xh(h){return h.length<3?Fi(h):h[0]+jo(h,N1(h))}e.svg.line.radial=function(){var h=Ec(kc);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function kc(h){for(var g,w=-1,C=h.length,L,D;++w_r)+",1 "+ye}function ie(oe,ye,ge,Xe){return"Q 0,0 "+Xe}return D.radius=function(oe){return arguments.length?(w=ra(oe),D):w},D.source=function(oe){return arguments.length?(h=ra(oe),D):h},D.target=function(oe){return arguments.length?(g=ra(oe),D):g},D.startAngle=function(oe){return arguments.length?(C=ra(oe),D):C},D.endAngle=function(oe){return arguments.length?(L=ra(oe),D):L},D};function xu(h){return h.radius}e.svg.diagonal=function(){var h=Q0,g=mo,w=K0;function C(L,D){var G=h.call(this,L,D),q=g.call(this,L,D),Z=(G.y+q.y)/2,ie=[G,{x:G.x,y:Z},{x:q.x,y:Z},q];return ie=ie.map(w),"M"+ie[0]+"C"+ie[1]+" "+ie[2]+" "+ie[3]}return C.source=function(L){return arguments.length?(h=ra(L),C):h},C.target=function(L){return arguments.length?(g=ra(L),C):g},C.projection=function(L){return arguments.length?(w=L,C):w},C};function K0(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=K0,w=h.projection;return h.projection=function(C){return arguments.length?w(I1(g=C)):g},h};function I1(h){return function(){var g=h.apply(this,arguments),w=g[0],C=g[1]-wt;return[w*Math.cos(C),w*Math.sin(C)]}}e.svg.symbol=function(){var h=B1,g=O1;function w(C,L){return(rd.get(h.call(this,C,L))||ed)(g.call(this,C,L))}return w.type=function(C){return arguments.length?(h=ra(C),w):h},w.size=function(C){return arguments.length?(g=ra(C),w):g},w};function O1(){return 64}function B1(){return"circle"}function ed(h){var g=Math.sqrt(h/_r);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var rd=e.map({circle:ed,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*td)),w=g*td;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/Lc),w=g*Lc/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/Lc),w=g*Lc/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=rd.keys();var Lc=Math.sqrt(3),td=Math.tan(30*Nt);Ye.transition=function(h){for(var g=yl||++Af,w=wu(h),C=[],L,D,G=Bl||{time:Date.now(),ease:$i,delay:0,duration:250},q=-1,Z=this.length;++q0;)ye[--er].call(h,He);if(Re>=1)return G.event&&G.event.end.call(h,h.__data__,g),--D.count?delete D[C]:delete h[w],1}G||(q=L.time,Z=Ho(ge,0,q),G=D[C]={tween:new x,time:q,timer:Z,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),g=Tf,w=6,C=6,L=3,D=[10],G=null,q;function Z(ie){ie.each(function(){var oe=e.select(this),ye=this.__chart__||h,ge=this.__chart__=h.copy(),Xe=G==null?ge.ticks?ge.ticks.apply(ge,D):ge.domain():G,Qe=q==null?ge.tickFormat?ge.tickFormat.apply(ge,D):ee:q,Me=oe.selectAll(".tick").data(Xe,ge),Re=Me.enter().insert("g",".domain").attr("class","tick").style("opacity",Ie),He=e.transition(Me.exit()).style("opacity",Ie).remove(),er=e.transition(Me.order()).style("opacity",1),rr=Math.max(w,0)+L,De,Fr=yc(ge),Br=oe.selectAll(".domain").data([0]),it=(Br.enter().append("path").attr("class","domain"),e.transition(Br));Re.append("line"),Re.append("text");var yt=Re.select("line"),Ct=er.select("line"),Lt=Me.select("text").text(Qe),Vt=Re.select("text"),Rt=er.select("text"),It=g==="top"||g==="left"?-1:1,ya,gn,La,dt;if(g==="bottom"||g==="top"?(De=Tu,ya="x",La="y",gn="x2",dt="y2",Lt.attr("dy",It<0?"0em":".71em").style("text-anchor","middle"),it.attr("d","M"+Fr[0]+","+It*C+"V0H"+Fr[1]+"V"+It*C)):(De=Mu,ya="y",La="x",gn="y2",dt="x2",Lt.attr("dy",".32em").style("text-anchor",It<0?"end":"start"),it.attr("d","M"+It*C+","+Fr[0]+"H0V"+Fr[1]+"H"+It*C)),yt.attr(dt,It*w),Vt.attr(La,It*rr),Ct.attr(gn,0).attr(dt,It*w),Rt.attr(ya,0).attr(La,It*rr),ge.rangeBand){var Yt=ge,jt=Yt.rangeBand()/2;ye=ge=function(ua){return Yt(ua)+jt}}else ye.rangeBand?ye=ge:He.call(De,ge,ye);Re.call(De,ye,ge),er.call(De,ge,ge)})}return Z.scale=function(ie){return arguments.length?(h=ie,Z):h},Z.orient=function(ie){return arguments.length?(g=ie in Au?ie+"":Tf,Z):g},Z.ticks=function(){return arguments.length?(D=t(arguments),Z):D},Z.tickValues=function(ie){return arguments.length?(G=ie,Z):G},Z.tickFormat=function(ie){return arguments.length?(q=ie,Z):q},Z.tickSize=function(ie){var oe=arguments.length;return oe?(w=+ie,C=+arguments[oe-1],Z):w},Z.innerTickSize=function(ie){return arguments.length?(w=+ie,Z):w},Z.outerTickSize=function(ie){return arguments.length?(C=+ie,Z):C},Z.tickPadding=function(ie){return arguments.length?(L=+ie,Z):L},Z.tickSubdivide=function(){return arguments.length&&Z},Z};var Tf="bottom",Au={top:1,right:1,bottom:1,left:1};function Tu(h,g,w){h.attr("transform",function(C){var L=g(C);return"translate("+(isFinite(L)?L:w(C))+",0)"})}function Mu(h,g,w){h.attr("transform",function(C){var L=g(C);return"translate(0,"+(isFinite(L)?L:w(C))+")"})}e.svg.brush=function(){var h=Le(oe,"brushstart","brush","brushend"),g=null,w=null,C=[0,0],L=[0,0],D,G,q=!0,Z=!0,ie=Es[0];function oe(Me){Me.each(function(){var Re=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Qe).on("touchstart.brush",Qe),He=Re.selectAll(".background").data([0]);He.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Re.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=Re.selectAll(".resize").data(ie,ee);er.exit().remove(),er.enter().append("g").attr("class",function(Br){return"resize "+Br}).style("cursor",function(Br){return Su[Br]}).append("rect").attr("x",function(Br){return/[ew]$/.test(Br)?-3:null}).attr("y",function(Br){return/^[ns]/.test(Br)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",oe.empty()?"none":null);var rr=e.transition(Re),De=e.transition(He),Fr;g&&(Fr=yc(g),De.attr("x",Fr[0]).attr("width",Fr[1]-Fr[0]),ge(rr)),w&&(Fr=yc(w),De.attr("y",Fr[0]).attr("height",Fr[1]-Fr[0]),Xe(rr)),ye(rr)})}oe.event=function(Me){Me.each(function(){var Re=h.of(this,arguments),He={x:C,y:L,i:D,j:G},er=this.__chart__||He;this.__chart__=He,yl?e.select(this).transition().each("start.brush",function(){D=er.i,G=er.j,C=er.x,L=er.y,Re({type:"brushstart"})}).tween("brush:brush",function(){var rr=cf(C,He.x),De=cf(L,He.y);return D=G=null,function(Fr){C=He.x=rr(Fr),L=He.y=De(Fr),Re({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=He.i,G=He.j,Re({type:"brush",mode:"resize"}),Re({type:"brushend"})}):(Re({type:"brushstart"}),Re({type:"brush",mode:"resize"}),Re({type:"brushend"}))})};function ye(Me){Me.selectAll(".resize").attr("transform",function(Re){return"translate("+C[+/e$/.test(Re)]+","+L[+/^s/.test(Re)]+")"})}function ge(Me){Me.select(".extent").attr("x",C[0]),Me.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function Xe(Me){Me.select(".extent").attr("y",L[0]),Me.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Qe(){var Me=this,Re=e.select(e.event.target),He=h.of(Me,arguments),er=e.select(Me),rr=Re.datum(),De=!/^(n|s)$/.test(rr)&&g,Fr=!/^(e|w)$/.test(rr)&&w,Br=Re.classed("extent"),it=jr(Me),yt,Ct=e.mouse(Me),Lt,Vt=e.select(i(Me)).on("keydown.brush",ya).on("keyup.brush",gn);if(e.event.changedTouches?Vt.on("touchmove.brush",La).on("touchend.brush",Yt):Vt.on("mousemove.brush",La).on("mouseup.brush",Yt),er.interrupt().selectAll("*").interrupt(),Br)Ct[0]=C[0]-Ct[0],Ct[1]=L[0]-Ct[1];else if(rr){var Rt=+/w$/.test(rr),It=+/^n/.test(rr);Lt=[C[1-Rt]-Ct[0],L[1-It]-Ct[1]],Ct[0]=C[Rt],Ct[1]=L[It]}else e.event.altKey&&(yt=Ct.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Re.style("cursor")),He({type:"brushstart"}),La();function ya(){e.event.keyCode==32&&(Br||(yt=null,Ct[0]-=C[1],Ct[1]-=L[1],Br=2),Ee())}function gn(){e.event.keyCode==32&&Br==2&&(Ct[0]+=C[1],Ct[1]+=L[1],Br=0,Ee())}function La(){var jt=e.mouse(Me),ua=!1;Lt&&(jt[0]+=Lt[0],jt[1]+=Lt[1]),Br||(e.event.altKey?(yt||(yt=[(C[0]+C[1])/2,(L[0]+L[1])/2]),Ct[0]=C[+(jt[0]{(function(e,r){typeof Bg=="object"&&typeof FM!="undefined"?r(Bg):(e=e||self,r(e.d3=e.d3||{}))})(Bg,function(e){"use strict";var r=new Date,t=new Date;function a(Pe,or,st,kt){function Tr(tr){return Pe(tr=arguments.length===0?new Date:new Date(+tr)),tr}return Tr.floor=function(tr){return Pe(tr=new Date(+tr)),tr},Tr.ceil=function(tr){return Pe(tr=new Date(tr-1)),or(tr,1),Pe(tr),tr},Tr.round=function(tr){var sr=Tr(tr),zr=Tr.ceil(tr);return tr-sr0))return nt;do nt.push(Yr=new Date(+tr)),or(tr,zr),Pe(tr);while(Yr=sr)for(;Pe(sr),!tr(sr);)sr.setTime(sr-1)},function(sr,zr){if(sr>=sr)if(zr<0)for(;++zr<=0;)for(;or(sr,-1),!tr(sr););else for(;--zr>=0;)for(;or(sr,1),!tr(sr););})},st&&(Tr.count=function(tr,sr){return r.setTime(+tr),t.setTime(+sr),Pe(r),Pe(t),Math.floor(st(r,t))},Tr.every=function(tr){return tr=Math.floor(tr),!isFinite(tr)||!(tr>0)?null:tr>1?Tr.filter(kt?function(sr){return kt(sr)%tr===0}:function(sr){return Tr.count(0,sr)%tr===0}):Tr}),Tr}var n=a(function(){},function(Pe,or){Pe.setTime(+Pe+or)},function(Pe,or){return or-Pe});n.every=function(Pe){return Pe=Math.floor(Pe),!isFinite(Pe)||!(Pe>0)?null:Pe>1?a(function(or){or.setTime(Math.floor(or/Pe)*Pe)},function(or,st){or.setTime(+or+st*Pe)},function(or,st){return(st-or)/Pe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,f=864e5,u=6048e5,c=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds())},function(Pe,or){Pe.setTime(+Pe+or*o)},function(Pe,or){return(or-Pe)/o},function(Pe){return Pe.getUTCSeconds()}),v=c.range,d=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o)},function(Pe,or){Pe.setTime(+Pe+or*l)},function(Pe,or){return(or-Pe)/l},function(Pe){return Pe.getMinutes()}),p=d.range,y=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o-Pe.getMinutes()*l)},function(Pe,or){Pe.setTime(+Pe+or*s)},function(Pe,or){return(or-Pe)/s},function(Pe){return Pe.getHours()}),m=y.range,b=a(function(Pe){Pe.setHours(0,0,0,0)},function(Pe,or){Pe.setDate(Pe.getDate()+or)},function(Pe,or){return(or-Pe-(or.getTimezoneOffset()-Pe.getTimezoneOffset())*l)/f},function(Pe){return Pe.getDate()-1}),T=b.range;function _(Pe){return a(function(or){or.setDate(or.getDate()-(or.getDay()+7-Pe)%7),or.setHours(0,0,0,0)},function(or,st){or.setDate(or.getDate()+st*7)},function(or,st){return(st-or-(st.getTimezoneOffset()-or.getTimezoneOffset())*l)/u})}var x=_(0),A=_(1),E=_(2),M=_(3),k=_(4),F=_(5),P=_(6),O=x.range,R=A.range,H=E.range,W=M.range,ee=k.range,te=F.range,Q=P.range,J=a(function(Pe){Pe.setDate(1),Pe.setHours(0,0,0,0)},function(Pe,or){Pe.setMonth(Pe.getMonth()+or)},function(Pe,or){return or.getMonth()-Pe.getMonth()+(or.getFullYear()-Pe.getFullYear())*12},function(Pe){return Pe.getMonth()}),j=J.range,se=a(function(Pe){Pe.setMonth(0,1),Pe.setHours(0,0,0,0)},function(Pe,or){Pe.setFullYear(Pe.getFullYear()+or)},function(Pe,or){return or.getFullYear()-Pe.getFullYear()},function(Pe){return Pe.getFullYear()});se.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(or){or.setFullYear(Math.floor(or.getFullYear()/Pe)*Pe),or.setMonth(0,1),or.setHours(0,0,0,0)},function(or,st){or.setFullYear(or.getFullYear()+st*Pe)})};var le=se.range,Ee=a(function(Pe){Pe.setUTCSeconds(0,0)},function(Pe,or){Pe.setTime(+Pe+or*l)},function(Pe,or){return(or-Pe)/l},function(Pe){return Pe.getUTCMinutes()}),Ge=Ee.range,Le=a(function(Pe){Pe.setUTCMinutes(0,0,0)},function(Pe,or){Pe.setTime(+Pe+or*s)},function(Pe,or){return(or-Pe)/s},function(Pe){return Pe.getUTCHours()}),Ve=Le.range,we=a(function(Pe){Pe.setUTCHours(0,0,0,0)},function(Pe,or){Pe.setUTCDate(Pe.getUTCDate()+or)},function(Pe,or){return(or-Pe)/f},function(Pe){return Pe.getUTCDate()-1}),ur=we.range;function Oe(Pe){return a(function(or){or.setUTCDate(or.getUTCDate()-(or.getUTCDay()+7-Pe)%7),or.setUTCHours(0,0,0,0)},function(or,st){or.setUTCDate(or.getUTCDate()+st*7)},function(or,st){return(st-or)/u})}var Ue=Oe(0),xr=Oe(1),Ye=Oe(2),re=Oe(3),de=Oe(4),ne=Oe(5),Fe=Oe(6),$e=Ue.range,Ke=xr.range,Cr=Ye.range,Ar=re.range,gr=de.range,et=ne.range,Hr=Fe.range,at=a(function(Pe){Pe.setUTCDate(1),Pe.setUTCHours(0,0,0,0)},function(Pe,or){Pe.setUTCMonth(Pe.getUTCMonth()+or)},function(Pe,or){return or.getUTCMonth()-Pe.getUTCMonth()+(or.getUTCFullYear()-Pe.getUTCFullYear())*12},function(Pe){return Pe.getUTCMonth()}),wr=at.range,Vr=a(function(Pe){Pe.setUTCMonth(0,1),Pe.setUTCHours(0,0,0,0)},function(Pe,or){Pe.setUTCFullYear(Pe.getUTCFullYear()+or)},function(Pe,or){return or.getUTCFullYear()-Pe.getUTCFullYear()},function(Pe){return Pe.getUTCFullYear()});Vr.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(or){or.setUTCFullYear(Math.floor(or.getUTCFullYear()/Pe)*Pe),or.setUTCMonth(0,1),or.setUTCHours(0,0,0,0)},function(or,st){or.setUTCFullYear(or.getUTCFullYear()+st*Pe)})};var rt=Vr.range;e.timeDay=b,e.timeDays=T,e.timeFriday=F,e.timeFridays=te,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=R,e.timeMonth=J,e.timeMonths=j,e.timeSaturday=P,e.timeSaturdays=Q,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=O,e.timeThursday=k,e.timeThursdays=ee,e.timeTuesday=E,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=W,e.timeWeek=x,e.timeWeeks=O,e.timeYear=se,e.timeYears=le,e.utcDay=we,e.utcDays=ur,e.utcFriday=ne,e.utcFridays=et,e.utcHour=Le,e.utcHours=Ve,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=Ee,e.utcMinutes=Ge,e.utcMonday=xr,e.utcMondays=Ke,e.utcMonth=at,e.utcMonths=wr,e.utcSaturday=Fe,e.utcSaturdays=Hr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Ue,e.utcSundays=$e,e.utcThursday=de,e.utcThursdays=gr,e.utcTuesday=Ye,e.utcTuesdays=Cr,e.utcWednesday=re,e.utcWednesdays=Ar,e.utcWeek=Ue,e.utcWeeks=$e,e.utcYear=Vr,e.utcYears=rt,Object.defineProperty(e,"__esModule",{value:!0})})});var ad=N((zg,RM)=>{(function(e,r){typeof zg=="object"&&typeof RM!="undefined"?r(zg,S5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(zg,function(e,r){"use strict";function t(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Ie.setFullYear(Se.y),Ie}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function a(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Ie.setUTCFullYear(Se.y),Ie}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,Ie,pr){return{y:Se,m:Ie,d:pr,H:0,M:0,S:0,L:0}}function i(Se){var Ie=Se.dateTime,pr=Se.date,_r=Se.time,ht=Se.periods,Mt=Se.days,wt=Se.shortDays,Nt=Se.months,ta=Se.shortMonths,pa=v(ht),za=d(ht),rn=v(Mt),Wa=d(Mt),Cn=v(wt),_n=d(wt),Si=v(Nt),un=d(Nt),Bn=v(ta),Ei=d(ta),Ln={a:ki,A:vs,b:Ll,B:ac,c:null,d:J,e:J,f:Ge,H:j,I:se,j:le,L:Ee,m:Le,M:Ve,p:Go,q:Qf,Q:sr,s:zr,S:we,u:ur,U:Oe,V:Ue,w:xr,W:Ye,x:null,X:null,y:re,Y:de,Z:ne,"%":tr},mn={a:Kf,A:Zi,b:di,B:zi,c:null,d:Fe,e:Fe,f:gr,H:$e,I:Ke,j:Cr,L:Ar,m:et,M:Hr,p:Dl,q:pi,Q:sr,s:zr,S:at,u:wr,U:Vr,V:rt,w:Pe,W:or,x:null,X:null,y:st,Y:kt,Z:Tr,"%":tr},At={a:Fa,A:va,b:hi,B:Xi,c:Pn,d:k,e:k,f:W,H:P,I:P,j:F,L:H,m:M,M:O,p:yn,q:E,Q:te,s:Q,S:R,u:y,U:m,V:b,w:p,W:T,x:Ya,X:wn,y:x,Y:_,Z:A,"%":ee};Ln.x=Ia(pr,Ln),Ln.X=Ia(_r,Ln),Ln.c=Ia(Ie,Ln),mn.x=Ia(pr,mn),mn.X=Ia(_r,mn),mn.c=Ia(Ie,mn);function Ia(Pt,$t){return function(fa){var _t=[],$n=-1,Ga=0,Nn=Pt.length,ra,To,ll;for(fa instanceof Date||(fa=new Date(+fa));++$n53)return null;"w"in _t||(_t.w=1),"Z"in _t?(Ga=a(n(_t.y,0,1)),Nn=Ga.getUTCDay(),Ga=Nn>4||Nn===0?r.utcMonday.ceil(Ga):r.utcMonday(Ga),Ga=r.utcDay.offset(Ga,(_t.V-1)*7),_t.y=Ga.getUTCFullYear(),_t.m=Ga.getUTCMonth(),_t.d=Ga.getUTCDate()+(_t.w+6)%7):(Ga=t(n(_t.y,0,1)),Nn=Ga.getDay(),Ga=Nn>4||Nn===0?r.timeMonday.ceil(Ga):r.timeMonday(Ga),Ga=r.timeDay.offset(Ga,(_t.V-1)*7),_t.y=Ga.getFullYear(),_t.m=Ga.getMonth(),_t.d=Ga.getDate()+(_t.w+6)%7)}else("W"in _t||"U"in _t)&&("w"in _t||(_t.w="u"in _t?_t.u%7:"W"in _t?1:0),Nn="Z"in _t?a(n(_t.y,0,1)).getUTCDay():t(n(_t.y,0,1)).getDay(),_t.m=0,_t.d="W"in _t?(_t.w+6)%7+_t.W*7-(Nn+5)%7:_t.w+_t.U*7-(Nn+6)%7);return"Z"in _t?(_t.H+=_t.Z/100|0,_t.M+=_t.Z%100,a(_t)):t(_t)}}function Sa(Pt,$t,fa,_t){for(var $n=0,Ga=$t.length,Nn=fa.length,ra,To;$n=Nn)return-1;if(ra=$t.charCodeAt($n++),ra===37){if(ra=$t.charAt($n++),To=At[ra in o?$t.charAt($n++):ra],!To||(_t=To(Pt,fa,_t))<0)return-1}else if(ra!=fa.charCodeAt(_t++))return-1}return _t}function yn(Pt,$t,fa){var _t=pa.exec($t.slice(fa));return _t?(Pt.p=za[_t[0].toLowerCase()],fa+_t[0].length):-1}function Fa(Pt,$t,fa){var _t=Cn.exec($t.slice(fa));return _t?(Pt.w=_n[_t[0].toLowerCase()],fa+_t[0].length):-1}function va(Pt,$t,fa){var _t=rn.exec($t.slice(fa));return _t?(Pt.w=Wa[_t[0].toLowerCase()],fa+_t[0].length):-1}function hi(Pt,$t,fa){var _t=Bn.exec($t.slice(fa));return _t?(Pt.m=Ei[_t[0].toLowerCase()],fa+_t[0].length):-1}function Xi(Pt,$t,fa){var _t=Si.exec($t.slice(fa));return _t?(Pt.m=un[_t[0].toLowerCase()],fa+_t[0].length):-1}function Pn(Pt,$t,fa){return Sa(Pt,Ie,$t,fa)}function Ya(Pt,$t,fa){return Sa(Pt,pr,$t,fa)}function wn(Pt,$t,fa){return Sa(Pt,_r,$t,fa)}function ki(Pt){return wt[Pt.getDay()]}function vs(Pt){return Mt[Pt.getDay()]}function Ll(Pt){return ta[Pt.getMonth()]}function ac(Pt){return Nt[Pt.getMonth()]}function Go(Pt){return ht[+(Pt.getHours()>=12)]}function Qf(Pt){return 1+~~(Pt.getMonth()/3)}function Kf(Pt){return wt[Pt.getUTCDay()]}function Zi(Pt){return Mt[Pt.getUTCDay()]}function di(Pt){return ta[Pt.getUTCMonth()]}function zi(Pt){return Nt[Pt.getUTCMonth()]}function Dl(Pt){return ht[+(Pt.getUTCHours()>=12)]}function pi(Pt){return 1+~~(Pt.getUTCMonth()/3)}return{format:function(Pt){var $t=Ia(Pt+="",Ln);return $t.toString=function(){return Pt},$t},parse:function(Pt){var $t=ma(Pt+="",!1);return $t.toString=function(){return Pt},$t},utcFormat:function(Pt){var $t=Ia(Pt+="",mn);return $t.toString=function(){return Pt},$t},utcParse:function(Pt){var $t=ma(Pt+="",!0);return $t.toString=function(){return Pt},$t}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,f=/[\\^$*+?|[\]().{}]/g;function u(Se,Ie,pr){var _r=Se<0?"-":"",ht=(_r?-Se:Se)+"",Mt=ht.length;return _r+(Mt68?1900:2e3),pr+_r[0].length):-1}function A(Se,Ie,pr){var _r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ie.slice(pr,pr+6));return _r?(Se.Z=_r[1]?0:-(_r[2]+(_r[3]||"00")),pr+_r[0].length):-1}function E(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+1));return _r?(Se.q=_r[0]*3-3,pr+_r[0].length):-1}function M(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.m=_r[0]-1,pr+_r[0].length):-1}function k(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.d=+_r[0],pr+_r[0].length):-1}function F(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+3));return _r?(Se.m=0,Se.d=+_r[0],pr+_r[0].length):-1}function P(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.H=+_r[0],pr+_r[0].length):-1}function O(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.M=+_r[0],pr+_r[0].length):-1}function R(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.S=+_r[0],pr+_r[0].length):-1}function H(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+3));return _r?(Se.L=+_r[0],pr+_r[0].length):-1}function W(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+6));return _r?(Se.L=Math.floor(_r[0]/1e3),pr+_r[0].length):-1}function ee(Se,Ie,pr){var _r=s.exec(Ie.slice(pr,pr+1));return _r?pr+_r[0].length:-1}function te(Se,Ie,pr){var _r=l.exec(Ie.slice(pr));return _r?(Se.Q=+_r[0],pr+_r[0].length):-1}function Q(Se,Ie,pr){var _r=l.exec(Ie.slice(pr));return _r?(Se.s=+_r[0],pr+_r[0].length):-1}function J(Se,Ie){return u(Se.getDate(),Ie,2)}function j(Se,Ie){return u(Se.getHours(),Ie,2)}function se(Se,Ie){return u(Se.getHours()%12||12,Ie,2)}function le(Se,Ie){return u(1+r.timeDay.count(r.timeYear(Se),Se),Ie,3)}function Ee(Se,Ie){return u(Se.getMilliseconds(),Ie,3)}function Ge(Se,Ie){return Ee(Se,Ie)+"000"}function Le(Se,Ie){return u(Se.getMonth()+1,Ie,2)}function Ve(Se,Ie){return u(Se.getMinutes(),Ie,2)}function we(Se,Ie){return u(Se.getSeconds(),Ie,2)}function ur(Se){var Ie=Se.getDay();return Ie===0?7:Ie}function Oe(Se,Ie){return u(r.timeSunday.count(r.timeYear(Se)-1,Se),Ie,2)}function Ue(Se,Ie){var pr=Se.getDay();return Se=pr>=4||pr===0?r.timeThursday(Se):r.timeThursday.ceil(Se),u(r.timeThursday.count(r.timeYear(Se),Se)+(r.timeYear(Se).getDay()===4),Ie,2)}function xr(Se){return Se.getDay()}function Ye(Se,Ie){return u(r.timeMonday.count(r.timeYear(Se)-1,Se),Ie,2)}function re(Se,Ie){return u(Se.getFullYear()%100,Ie,2)}function de(Se,Ie){return u(Se.getFullYear()%1e4,Ie,4)}function ne(Se){var Ie=Se.getTimezoneOffset();return(Ie>0?"-":(Ie*=-1,"+"))+u(Ie/60|0,"0",2)+u(Ie%60,"0",2)}function Fe(Se,Ie){return u(Se.getUTCDate(),Ie,2)}function $e(Se,Ie){return u(Se.getUTCHours(),Ie,2)}function Ke(Se,Ie){return u(Se.getUTCHours()%12||12,Ie,2)}function Cr(Se,Ie){return u(1+r.utcDay.count(r.utcYear(Se),Se),Ie,3)}function Ar(Se,Ie){return u(Se.getUTCMilliseconds(),Ie,3)}function gr(Se,Ie){return Ar(Se,Ie)+"000"}function et(Se,Ie){return u(Se.getUTCMonth()+1,Ie,2)}function Hr(Se,Ie){return u(Se.getUTCMinutes(),Ie,2)}function at(Se,Ie){return u(Se.getUTCSeconds(),Ie,2)}function wr(Se){var Ie=Se.getUTCDay();return Ie===0?7:Ie}function Vr(Se,Ie){return u(r.utcSunday.count(r.utcYear(Se)-1,Se),Ie,2)}function rt(Se,Ie){var pr=Se.getUTCDay();return Se=pr>=4||pr===0?r.utcThursday(Se):r.utcThursday.ceil(Se),u(r.utcThursday.count(r.utcYear(Se),Se)+(r.utcYear(Se).getUTCDay()===4),Ie,2)}function Pe(Se){return Se.getUTCDay()}function or(Se,Ie){return u(r.utcMonday.count(r.utcYear(Se)-1,Se),Ie,2)}function st(Se,Ie){return u(Se.getUTCFullYear()%100,Ie,2)}function kt(Se,Ie){return u(Se.getUTCFullYear()%1e4,Ie,4)}function Tr(){return"+0000"}function tr(){return"%"}function sr(Se){return+Se}function zr(Se){return Math.floor(+Se/1e3)}var nt;Yr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Yr(Se){return nt=i(Se),e.timeFormat=nt.format,e.timeParse=nt.parse,e.utcFormat=nt.utcFormat,e.utcParse=nt.utcParse,nt}var Wr="%Y-%m-%dT%H:%M:%S.%LZ";function xt(Se){return Se.toISOString()}var jr=Date.prototype.toISOString?xt:e.utcFormat(Wr);function ot(Se){var Ie=new Date(Se);return isNaN(Ie)?null:Ie}var dr=+new Date("2000-01-01T00:00:00.000Z")?ot:e.utcParse(Wr);e.isoFormat=jr,e.isoParse=dr,e.timeFormatDefaultLocale=Yr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var E5=N((Gg,qM)=>{(function(e,r){typeof Gg=="object"&&typeof qM!="undefined"?r(Gg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Gg,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,k){if((F=(M=k?M.toExponential(k-1):M.toExponential()).indexOf("e"))<0)return null;var F,P=M.slice(0,F);return[P.length>1?P[0]+P.slice(2):P,+M.slice(F+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,k){return function(F,P){for(var O=F.length,R=[],H=0,W=M[0],ee=0;O>0&&W>0&&(ee+W+1>P&&(W=Math.max(1,P-ee)),R.push(F.substring(O-=W,O+W)),!((ee+=W+1)>P));)W=M[H=(H+1)%M.length];return R.reverse().join(k)}}function i(M){return function(k){return k.replace(/[0-9]/g,function(F){return M[+F]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(k=o.exec(M)))throw new Error("invalid format: "+M);var k;return new s({fill:k[1],align:k[2],sign:k[3],symbol:k[4],zero:k[5],width:k[6],comma:k[7],precision:k[8]&&k[8].slice(1),trim:k[9],type:k[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function f(M){e:for(var k=M.length,F=1,P=-1,O;F0&&(P=0);break}return P>0?M.slice(0,P)+M.slice(O+1):M}var u;function c(M,k){var F=t(M,k);if(!F)return M+"";var P=F[0],O=F[1],R=O-(u=Math.max(-8,Math.min(8,Math.floor(O/3)))*3)+1,H=P.length;return R===H?P:R>H?P+new Array(R-H+1).join("0"):R>0?P.slice(0,R)+"."+P.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,k+R-1))[0]}function v(M,k){var F=t(M,k);if(!F)return M+"";var P=F[0],O=F[1];return O<0?"0."+new Array(-O).join("0")+P:P.length>O+1?P.slice(0,O+1)+"."+P.slice(O+1):P+new Array(O-P.length+2).join("0")}var d={"%":function(M,k){return(M*100).toFixed(k)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,k){return M.toExponential(k)},f:function(M,k){return M.toFixed(k)},g:function(M,k){return M.toPrecision(k)},o:function(M){return Math.round(M).toString(8)},p:function(M,k){return v(M*100,k)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var k=M.grouping===void 0||M.thousands===void 0?p:n(y.call(M.grouping,Number),M.thousands+""),F=M.currency===void 0?"":M.currency[0]+"",P=M.currency===void 0?"":M.currency[1]+"",O=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(y.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",W=M.minus===void 0?"-":M.minus+"",ee=M.nan===void 0?"NaN":M.nan+"";function te(J){J=l(J);var j=J.fill,se=J.align,le=J.sign,Ee=J.symbol,Ge=J.zero,Le=J.width,Ve=J.comma,we=J.precision,ur=J.trim,Oe=J.type;Oe==="n"?(Ve=!0,Oe="g"):d[Oe]||(we===void 0&&(we=12),ur=!0,Oe="g"),(Ge||j==="0"&&se==="=")&&(Ge=!0,j="0",se="=");var Ue=Ee==="$"?F:Ee==="#"&&/[boxX]/.test(Oe)?"0"+Oe.toLowerCase():"",xr=Ee==="$"?P:/[%p]/.test(Oe)?H:"",Ye=d[Oe],re=/[defgprs%]/.test(Oe);we=we===void 0?6:/[gprs]/.test(Oe)?Math.max(1,Math.min(21,we)):Math.max(0,Math.min(20,we));function de(ne){var Fe=Ue,$e=xr,Ke,Cr,Ar;if(Oe==="c")$e=Ye(ne)+$e,ne="";else{ne=+ne;var gr=ne<0||1/ne<0;if(ne=isNaN(ne)?ee:Ye(Math.abs(ne),we),ur&&(ne=f(ne)),gr&&+ne==0&&le!=="+"&&(gr=!1),Fe=(gr?le==="("?le:W:le==="-"||le==="("?"":le)+Fe,$e=(Oe==="s"?m[8+u/3]:"")+$e+(gr&&le==="("?")":""),re){for(Ke=-1,Cr=ne.length;++KeAr||Ar>57){$e=(Ar===46?O+ne.slice(Ke+1):ne.slice(Ke))+$e,ne=ne.slice(0,Ke);break}}}Ve&&!Ge&&(ne=k(ne,1/0));var et=Fe.length+ne.length+$e.length,Hr=et>1)+Fe+ne+$e+Hr.slice(et);break;default:ne=Hr+Fe+ne+$e;break}return R(ne)}return de.toString=function(){return J+""},de}function Q(J,j){var se=te((J=l(J),J.type="f",J)),le=Math.max(-8,Math.min(8,Math.floor(a(j)/3)))*3,Ee=Math.pow(10,-le),Ge=m[8+le/3];return function(Le){return se(Ee*Le)+Ge}}return{format:te,formatPrefix:Q}}var T;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return T=b(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function x(M){return Math.max(0,-a(Math.abs(M)))}function A(M,k){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(k)/3)))*3-a(Math.abs(M)))}function E(M,k){return M=Math.abs(M),k=Math.abs(k)-M,Math.max(0,a(k)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=A,e.precisionRound=E,Object.defineProperty(e,"__esModule",{value:!0})})});var NM=N((qEe,PM)=>{"use strict";PM.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var xa=N((PEe,IM)=>{"use strict";var iie=NM();IM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&iie(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ei=N((NEe,OM)=>{"use strict";OM.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var k5=N((Ug,BM)=>{(function(e,r){typeof Ug=="object"&&typeof BM!="undefined"?r(Ug):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ug,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],u+=r[(l[s]&3)<<4|l[s+1]>>4],u+=r[(l[s+1]&15)<<2|l[s+2]>>6],u+=r[l[s+2]&63];return f%3===2?u=u.substring(0,u.length-1)+"=":f%3===1&&(u=u.substring(0,u.length-2)+"=="),u},i=function(o){var l=o.length*.75,s=o.length,f,u=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var y=new ArrayBuffer(l),m=new Uint8Array(y);for(f=0;f>4,m[u++]=(v&15)<<4|d>>2,m[u++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Rc=N((IEe,zM)=>{"use strict";zM.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Po=N(Cs=>{"use strict";var oie=k5().decode,lie=Rc(),C5=Array.isArray,sie=ArrayBuffer,fie=DataView;function GM(e){return sie.isView(e)&&!(e instanceof fie)}Cs.isTypedArray=GM;function Hg(e){return C5(e)||GM(e)}Cs.isArrayOrTypedArray=Hg;function uie(e){return!Hg(e[0])}Cs.isArray1D=uie;Cs.ensureArray=function(e,r){return C5(e)||(e=[]),e.length=r,e};var Pi={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Pi.uint8c=Pi.u1c;Pi.uint8=Pi.u1;Pi.int8=Pi.i1;Pi.uint16=Pi.u2;Pi.int16=Pi.i2;Pi.uint32=Pi.u4;Pi.int32=Pi.i4;Pi.float32=Pi.f4;Pi.float64=Pi.f8;function L5(e){return e.constructor===ArrayBuffer}Cs.isArrayBuffer=L5;Cs.decodeTypedArraySpec=function(e){var r=[],t=cie(e),a=t.dtype,n=Pi[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;L5(o)||(o=oie(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,f,u,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(f=+l[1],u=0;u{"use strict";var HM=xa(),F5=Po().isArrayOrTypedArray;jM.exports=function(r,t){if(HM(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var nd=Vg(),mie=/^\w*$/,yie=0,XM=1,Yg=2,ZM=3,wh=4;JM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=nd(r,t),o=l.get()):o=r,t=t||"";var f={};if(o)for(i=0;i2)return s[d]=s[d]|Yg,c.set(v,null);if(u){for(i=d;i{"use strict";var gie=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,bie=/^[^\.\[\]]+$/;QM.exports=function(e,r){for(;r;){var t=e.match(gie);if(t)e=t[1];else if(e.match(bie))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Wg=N((UEe,eS)=>{"use strict";var xie=xa();eS.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return xie(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var aS=N((HEe,tS)=>{"use strict";var rS=Po().isArrayOrTypedArray,G1=Rc();tS.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(rS(n)&&rS(i)&&G1(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function _ie(e,r){var t=e%r;return t<0?t+r:t}function wie(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}nS.exports={mod:_ie,modHalf:wie}});var Ls=N((YEe,jg)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(re,de){if(re=re||"",de=de||{},re instanceof s)return re;if(!(this instanceof s))return new s(re,de);var ne=f(re);this._originalInput=re,this._r=ne.r,this._g=ne.g,this._b=ne.b,this._a=ne.a,this._roundA=n(100*this._a)/100,this._format=de.format||ne.format,this._gradientType=de.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=ne.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var re=this.toRgb();return(re.r*299+re.g*587+re.b*114)/1e3},getLuminance:function(){var re=this.toRgb(),de,ne,Fe,$e,Ke,Cr;return de=re.r/255,ne=re.g/255,Fe=re.b/255,de<=.03928?$e=de/12.92:$e=e.pow((de+.055)/1.055,2.4),ne<=.03928?Ke=ne/12.92:Ke=e.pow((ne+.055)/1.055,2.4),Fe<=.03928?Cr=Fe/12.92:Cr=e.pow((Fe+.055)/1.055,2.4),.2126*$e+.7152*Ke+.0722*Cr},setAlpha:function(re){return this._a=J(re),this._roundA=n(100*this._a)/100,this},toHsv:function(){var re=d(this._r,this._g,this._b);return{h:re.h*360,s:re.s,v:re.v,a:this._a}},toHsvString:function(){var re=d(this._r,this._g,this._b),de=n(re.h*360),ne=n(re.s*100),Fe=n(re.v*100);return this._a==1?"hsv("+de+", "+ne+"%, "+Fe+"%)":"hsva("+de+", "+ne+"%, "+Fe+"%, "+this._roundA+")"},toHsl:function(){var re=c(this._r,this._g,this._b);return{h:re.h*360,s:re.s,l:re.l,a:this._a}},toHslString:function(){var re=c(this._r,this._g,this._b),de=n(re.h*360),ne=n(re.s*100),Fe=n(re.l*100);return this._a==1?"hsl("+de+", "+ne+"%, "+Fe+"%)":"hsla("+de+", "+ne+"%, "+Fe+"%, "+this._roundA+")"},toHex:function(re){return y(this._r,this._g,this._b,re)},toHexString:function(re){return"#"+this.toHex(re)},toHex8:function(re){return m(this._r,this._g,this._b,this._a,re)},toHex8String:function(re){return"#"+this.toHex8(re)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(j(this._r,255)*100)+"%",g:n(j(this._g,255)*100)+"%",b:n(j(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(j(this._r,255)*100)+"%, "+n(j(this._g,255)*100)+"%, "+n(j(this._b,255)*100)+"%)":"rgba("+n(j(this._r,255)*100)+"%, "+n(j(this._g,255)*100)+"%, "+n(j(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:te[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(re){var de="#"+b(this._r,this._g,this._b,this._a),ne=de,Fe=this._gradientType?"GradientType = 1, ":"";if(re){var $e=s(re);ne="#"+b($e._r,$e._g,$e._b,$e._a)}return"progid:DXImageTransform.Microsoft.gradient("+Fe+"startColorstr="+de+",endColorstr="+ne+")"},toString:function(re){var de=!!re;re=re||this._format;var ne=!1,Fe=this._a<1&&this._a>=0,$e=!de&&Fe&&(re==="hex"||re==="hex6"||re==="hex3"||re==="hex4"||re==="hex8"||re==="name");return $e?re==="name"&&this._a===0?this.toName():this.toRgbString():(re==="rgb"&&(ne=this.toRgbString()),re==="prgb"&&(ne=this.toPercentageRgbString()),(re==="hex"||re==="hex6")&&(ne=this.toHexString()),re==="hex3"&&(ne=this.toHexString(!0)),re==="hex4"&&(ne=this.toHex8String(!0)),re==="hex8"&&(ne=this.toHex8String()),re==="name"&&(ne=this.toName()),re==="hsl"&&(ne=this.toHslString()),re==="hsv"&&(ne=this.toHsvString()),ne||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(re,de){var ne=re.apply(null,[this].concat([].slice.call(de)));return this._r=ne._r,this._g=ne._g,this._b=ne._b,this.setAlpha(ne._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(re,de){return re.apply(null,[this].concat([].slice.call(de)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(W,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},s.fromRatio=function(re,de){if(typeof re=="object"){var ne={};for(var Fe in re)re.hasOwnProperty(Fe)&&(Fe==="a"?ne[Fe]=re[Fe]:ne[Fe]=Ve(re[Fe]));re=ne}return s(re,de)};function f(re){var de={r:0,g:0,b:0},ne=1,Fe=null,$e=null,Ke=null,Cr=!1,Ar=!1;return typeof re=="string"&&(re=xr(re)),typeof re=="object"&&(Ue(re.r)&&Ue(re.g)&&Ue(re.b)?(de=u(re.r,re.g,re.b),Cr=!0,Ar=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Ue(re.h)&&Ue(re.s)&&Ue(re.v)?(Fe=Ve(re.s),$e=Ve(re.v),de=p(re.h,Fe,$e),Cr=!0,Ar="hsv"):Ue(re.h)&&Ue(re.s)&&Ue(re.l)&&(Fe=Ve(re.s),Ke=Ve(re.l),de=v(re.h,Fe,Ke),Cr=!0,Ar="hsl"),re.hasOwnProperty("a")&&(ne=re.a)),ne=J(ne),{ok:Cr,format:re.format||Ar,r:i(255,o(de.r,0)),g:i(255,o(de.g,0)),b:i(255,o(de.b,0)),a:ne}}function u(re,de,ne){return{r:j(re,255)*255,g:j(de,255)*255,b:j(ne,255)*255}}function c(re,de,ne){re=j(re,255),de=j(de,255),ne=j(ne,255);var Fe=o(re,de,ne),$e=i(re,de,ne),Ke,Cr,Ar=(Fe+$e)/2;if(Fe==$e)Ke=Cr=0;else{var gr=Fe-$e;switch(Cr=Ar>.5?gr/(2-Fe-$e):gr/(Fe+$e),Fe){case re:Ke=(de-ne)/gr+(de1&&(at-=1),at<1/6?et+(Hr-et)*6*at:at<1/2?Hr:at<2/3?et+(Hr-et)*(2/3-at)*6:et}if(de===0)Fe=$e=Ke=ne;else{var Ar=ne<.5?ne*(1+de):ne+de-ne*de,gr=2*ne-Ar;Fe=Cr(gr,Ar,re+1/3),$e=Cr(gr,Ar,re),Ke=Cr(gr,Ar,re-1/3)}return{r:Fe*255,g:$e*255,b:Ke*255}}function d(re,de,ne){re=j(re,255),de=j(de,255),ne=j(ne,255);var Fe=o(re,de,ne),$e=i(re,de,ne),Ke,Cr,Ar=Fe,gr=Fe-$e;if(Cr=Fe===0?0:gr/Fe,Fe==$e)Ke=0;else{switch(Fe){case re:Ke=(de-ne)/gr+(de>1)+720)%360;--de;)Fe.h=(Fe.h+$e)%360,Ke.push(s(Fe));return Ke}function W(re,de){de=de||6;for(var ne=s(re).toHsv(),Fe=ne.h,$e=ne.s,Ke=ne.v,Cr=[],Ar=1/de;de--;)Cr.push(s({h:Fe,s:$e,v:Ke})),Ke=(Ke+Ar)%1;return Cr}s.mix=function(re,de,ne){ne=ne===0?0:ne||50;var Fe=s(re).toRgb(),$e=s(de).toRgb(),Ke=ne/100,Cr={r:($e.r-Fe.r)*Ke+Fe.r,g:($e.g-Fe.g)*Ke+Fe.g,b:($e.b-Fe.b)*Ke+Fe.b,a:($e.a-Fe.a)*Ke+Fe.a};return s(Cr)},s.readability=function(re,de){var ne=s(re),Fe=s(de);return(e.max(ne.getLuminance(),Fe.getLuminance())+.05)/(e.min(ne.getLuminance(),Fe.getLuminance())+.05)},s.isReadable=function(re,de,ne){var Fe=s.readability(re,de),$e,Ke;switch(Ke=!1,$e=Ye(ne),$e.level+$e.size){case"AAsmall":case"AAAlarge":Ke=Fe>=4.5;break;case"AAlarge":Ke=Fe>=3;break;case"AAAsmall":Ke=Fe>=7;break}return Ke},s.mostReadable=function(re,de,ne){var Fe=null,$e=0,Ke,Cr,Ar,gr;ne=ne||{},Cr=ne.includeFallbackColors,Ar=ne.level,gr=ne.size;for(var et=0;et$e&&($e=Ke,Fe=s(de[et]));return s.isReadable(re,Fe,{level:Ar,size:gr})||!Cr?Fe:(ne.includeFallbackColors=!1,s.mostReadable(re,["#fff","#000"],ne))};var ee=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},te=s.hexNames=Q(ee);function Q(re){var de={};for(var ne in re)re.hasOwnProperty(ne)&&(de[re[ne]]=ne);return de}function J(re){return re=parseFloat(re),(isNaN(re)||re<0||re>1)&&(re=1),re}function j(re,de){Ee(re)&&(re="100%");var ne=Ge(re);return re=i(de,o(0,parseFloat(re))),ne&&(re=parseInt(re*de,10)/100),e.abs(re-de)<1e-6?1:re%de/parseFloat(de)}function se(re){return i(1,o(0,re))}function le(re){return parseInt(re,16)}function Ee(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1}function Ge(re){return typeof re=="string"&&re.indexOf("%")!=-1}function Le(re){return re.length==1?"0"+re:""+re}function Ve(re){return re<=1&&(re=re*100+"%"),re}function we(re){return e.round(parseFloat(re)*255).toString(16)}function ur(re){return le(re)/255}var Oe=function(){var re="[-\\+]?\\d+%?",de="[-\\+]?\\d*\\.\\d+%?",ne="(?:"+de+")|(?:"+re+")",Fe="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?",$e="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?";return{CSS_UNIT:new RegExp(ne),rgb:new RegExp("rgb"+Fe),rgba:new RegExp("rgba"+$e),hsl:new RegExp("hsl"+Fe),hsla:new RegExp("hsla"+$e),hsv:new RegExp("hsv"+Fe),hsva:new RegExp("hsva"+$e),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ue(re){return!!Oe.CSS_UNIT.exec(re)}function xr(re){re=re.replace(r,"").replace(t,"").toLowerCase();var de=!1;if(ee[re])re=ee[re],de=!0;else if(re=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ne;return(ne=Oe.rgb.exec(re))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=Oe.rgba.exec(re))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=Oe.hsl.exec(re))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=Oe.hsla.exec(re))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=Oe.hsv.exec(re))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=Oe.hsva.exec(re))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=Oe.hex8.exec(re))?{r:le(ne[1]),g:le(ne[2]),b:le(ne[3]),a:ur(ne[4]),format:de?"name":"hex8"}:(ne=Oe.hex6.exec(re))?{r:le(ne[1]),g:le(ne[2]),b:le(ne[3]),format:de?"name":"hex"}:(ne=Oe.hex4.exec(re))?{r:le(ne[1]+""+ne[1]),g:le(ne[2]+""+ne[2]),b:le(ne[3]+""+ne[3]),a:ur(ne[4]+""+ne[4]),format:de?"name":"hex8"}:(ne=Oe.hex3.exec(re))?{r:le(ne[1]+""+ne[1]),g:le(ne[2]+""+ne[2]),b:le(ne[3]+""+ne[3]),format:de?"name":"hex"}:!1}function Ye(re){var de,ne;return re=re||{level:"AA",size:"small"},de=(re.level||"AA").toUpperCase(),ne=(re.size||"small").toLowerCase(),de!=="AA"&&de!=="AAA"&&(de="AA"),ne!=="small"&&ne!=="large"&&(ne="small"),{level:de,size:ne}}typeof jg!="undefined"&&jg.exports?jg.exports=s:window.tinycolor=s})(Math)});var Gn=N(V1=>{"use strict";var iS=Rc(),U1=Array.isArray;function Aie(e,r){var t,a;for(t=0;t{"use strict";oS.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Y1=N((XEe,lS)=>{"use strict";lS.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var od=N((ZEe,uS)=>{"use strict";var sS=Y1(),fS=Ui(),R5=fS({editType:"none"});R5.family.dflt=sS.HOVERFONT;R5.size.dflt=sS.HOVERFONTSIZE;uS.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:R5,grouptitlefont:fS({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Xg=N((JEe,cS)=>{"use strict";var Tie=Ui(),W1=od().hoverlabel,j1=Gn().extendFlat;cS.exports={hoverlabel:{bgcolor:j1({},W1.bgcolor,{arrayOk:!0}),bordercolor:j1({},W1.bordercolor,{arrayOk:!0}),font:Tie({arrayOk:!0,editType:"none"}),align:j1({},W1.align,{arrayOk:!0}),namelength:j1({},W1.namelength,{arrayOk:!0}),showarrow:j1({},W1.showarrow),editType:"none"}}});var Ds=N(($Ee,vS)=>{"use strict";var Mie=Ui(),Sie=Xg();vS.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Mie({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Sie.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Ah=N((QEe,pS)=>{"use strict";var Eie=Ls(),Zg={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},hS=Zg.RdBu;function kie(e,r){if(r||(r=hS),!e)return r;function t(){try{e=Zg[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),dS(e)?e:r}function dS(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Th.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Th.defaultLine="#444";Th.lightLine="#eee";Th.background="#fff";Th.borderLine="#BEC8D9";Th.lightFraction=100*10/11});var ca=N((eke,mS)=>{"use strict";var Xo=Ls(),Lie=xa(),Die=Po().isTypedArray,bi=mS.exports={},Jg=Mf();bi.defaults=Jg.defaults;var Fie=bi.defaultLine=Jg.defaultLine;bi.lightLine=Jg.lightLine;var P5=bi.background=Jg.background;bi.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};bi.rgb=function(e){return bi.tinyRGB(Xo(e))};bi.opacity=function(e){return e?Xo(e).getAlpha():0};bi.addOpacity=function(e,r){var t=Xo(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};bi.combine=function(e,r){var t=Xo(e).toRgb();if(t.a===1)return Xo(e).toRgbString();var a=Xo(r||P5).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Xo(i).toRgbString()};bi.interpolate=function(e,r,t){var a=Xo(e).toRgb(),n=Xo(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Xo(i).toRgbString()};bi.contrast=function(e,r,t){var a=Xo(e);a.getAlpha()!==1&&(a=Xo(bi.combine(e,P5)));var n=a.isDark()?r?a.lighten(r):P5:t?a.darken(t):Fie;return n.toString()};bi.stroke=function(e,r){var t=Xo(r);e.style({stroke:bi.tinyRGB(t),"stroke-opacity":t.getAlpha()})};bi.fill=function(e,r){var t=Xo(r);e.style({fill:bi.tinyRGB(t),"fill-opacity":t.getAlpha()})};bi.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var ld=N((rke,yS)=>{"use strict";yS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var sd=N(gS=>{"use strict";gS.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var wS=N(Zo=>{"use strict";var N5=xa(),bS=Ls(),xS=Gn().extendFlat,Rie=Ds(),qie=Ah(),Pie=ca(),Nie=ld().DESELECTDIM,fd=Vg(),_S=sd().counter,Iie=id().modHalf,Fs=Po().isArrayOrTypedArray,qc=Po().isTypedArraySpec,Pc=Po().decodeTypedArraySpec;Zo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Fs(e)?e:qc(e)?Pc(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){qc(e)&&(e=Pc(e)),!N5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}qc(e)&&(e=Pc(e)),e%1||!N5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){qc(e)&&(e=Pc(e)),bS(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return bS(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(qie.get(e,t))}},angle:{coerceFunction:function(e,r,t){qc(e)&&(e=Pc(e)),e==="auto"?r.set("auto"):N5(e)?r.set(Iie(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||_S(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Fs(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!_S(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var AS={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},TS={};function MS(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),MS(a,r[t]))}}MS(AS,TS);SS.exports={configAttributes:AS,dfltConfig:TS}});var O5=N((ike,ES)=>{"use strict";var I5=ha(),Oie=xa(),X1=[];ES.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||X1.indexOf(e)!==-1)return;X1.push(e);var a=1e3;Oie(r)?a=r:r==="long"&&(a=3e3);var n=I5.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(X1);function o(s){s.duration(700).style("opacity",0).each("end",function(f){var u=X1.indexOf(f);u!==-1&&X1.splice(u,1),I5.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var f=I5.select(this);f.append("button").classed("notifier-close",!0).html("×").on("click",function(){f.transition().call(o)});for(var u=f.append("p"),c=s.split(//g),v=0;v{"use strict";var ud=Mh().dfltConfig,B5=O5(),z5=kS.exports={};z5.log=function(){var e;if(ud.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};z5.warn=function(){var e;if(ud.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};z5.error=function(){var e;if(ud.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Qg=N((lke,CS)=>{"use strict";CS.exports=function(){}});var G5=N((ske,LS)=>{"use strict";LS.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{DS.exports=Bie;function Bie(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var qS=N((uke,RS)=>{RS.exports=zie;function zie(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var NS=N((cke,PS)=>{PS.exports=Gie;function Gie(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var U5=N((vke,IS)=>{IS.exports=Uie;function Uie(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var BS=N((hke,OS)=>{OS.exports=Hie;function Hie(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var GS=N((dke,zS)=>{zS.exports=Vie;function Vie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15],T=t*l-a*o,_=t*s-n*o,x=t*f-i*o,A=a*s-n*l,E=a*f-i*l,M=n*f-i*s,k=u*y-c*p,F=u*m-v*p,P=u*b-d*p,O=c*m-v*y,R=c*b-d*y,H=v*b-d*m,W=T*H-_*R+x*O+A*P-E*F+M*k;return W?(W=1/W,e[0]=(l*H-s*R+f*O)*W,e[1]=(n*R-a*H-i*O)*W,e[2]=(y*M-m*E+b*A)*W,e[3]=(v*E-c*M-d*A)*W,e[4]=(s*P-o*H-f*F)*W,e[5]=(t*H-n*P+i*F)*W,e[6]=(m*x-p*M-b*_)*W,e[7]=(u*M-v*x+d*_)*W,e[8]=(o*R-l*P+f*k)*W,e[9]=(a*P-t*R-i*k)*W,e[10]=(p*E-y*x+b*T)*W,e[11]=(c*x-u*E-d*T)*W,e[12]=(l*F-o*O-s*k)*W,e[13]=(t*O-a*F+n*k)*W,e[14]=(y*_-p*A-m*T)*W,e[15]=(u*A-c*_+v*T)*W,e):null}});var HS=N((pke,US)=>{US.exports=Yie;function Yie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-f*m)+y*(s*d-f*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+y*(n*d-i*v)),e[2]=a*(s*b-f*m)-l*(n*b-i*m)+y*(n*f-i*s),e[3]=-(a*(s*d-f*v)-l*(n*d-i*v)+c*(n*f-i*s)),e[4]=-(o*(v*b-d*m)-u*(s*b-f*m)+p*(s*d-f*v)),e[5]=t*(v*b-d*m)-u*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-f*m)-o*(n*b-i*m)+p*(n*f-i*s)),e[7]=t*(s*d-f*v)-o*(n*d-i*v)+u*(n*f-i*s),e[8]=o*(c*b-d*y)-u*(l*b-f*y)+p*(l*d-f*c),e[9]=-(t*(c*b-d*y)-u*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(l*b-f*y)-o*(a*b-i*y)+p*(a*f-i*l),e[11]=-(t*(l*d-f*c)-o*(a*d-i*c)+u*(a*f-i*l)),e[12]=-(o*(c*m-v*y)-u*(l*m-s*y)+p*(l*v-s*c)),e[13]=t*(c*m-v*y)-u*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(l*m-s*y)-o*(a*m-n*y)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+u*(a*s-n*l),e}});var YS=N((mke,VS)=>{VS.exports=Wie;function Wie(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],f=e[8],u=e[9],c=e[10],v=e[11],d=e[12],p=e[13],y=e[14],m=e[15],b=r*o-t*i,T=r*l-a*i,_=r*s-n*i,x=t*l-a*o,A=t*s-n*o,E=a*s-n*l,M=f*p-u*d,k=f*y-c*d,F=f*m-v*d,P=u*y-c*p,O=u*m-v*p,R=c*m-v*y;return b*R-T*O+_*P+x*F-A*k+E*M}});var jS=N((yke,WS)=>{WS.exports=jie;function jie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],f=r[6],u=r[7],c=r[8],v=r[9],d=r[10],p=r[11],y=r[12],m=r[13],b=r[14],T=r[15],_=t[0],x=t[1],A=t[2],E=t[3];return e[0]=_*a+x*l+A*c+E*y,e[1]=_*n+x*s+A*v+E*m,e[2]=_*i+x*f+A*d+E*b,e[3]=_*o+x*u+A*p+E*T,_=t[4],x=t[5],A=t[6],E=t[7],e[4]=_*a+x*l+A*c+E*y,e[5]=_*n+x*s+A*v+E*m,e[6]=_*i+x*f+A*d+E*b,e[7]=_*o+x*u+A*p+E*T,_=t[8],x=t[9],A=t[10],E=t[11],e[8]=_*a+x*l+A*c+E*y,e[9]=_*n+x*s+A*v+E*m,e[10]=_*i+x*f+A*d+E*b,e[11]=_*o+x*u+A*p+E*T,_=t[12],x=t[13],A=t[14],E=t[15],e[12]=_*a+x*l+A*c+E*y,e[13]=_*n+x*s+A*v+E*m,e[14]=_*i+x*f+A*d+E*b,e[15]=_*o+x*u+A*p+E*T,e}});var ZS=N((gke,XS)=>{XS.exports=Xie;function Xie(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,f,u,c,v,d,p,y,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],f=r[3],u=r[4],c=r[5],v=r[6],d=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=f,e[4]=u,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=o*a+u*n+p*i+r[12],e[13]=l*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=f*a+d*n+b*i+r[15]),e}});var $S=N((bke,JS)=>{JS.exports=Zie;function Zie(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var KS=N((xke,QS)=>{QS.exports=Jie;function Jie(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,f,u,c,v,d,p,y,m,b,T,_,x,A,E,M,k,F,P,O,R,H,W,ee;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),f=Math.cos(t),u=1-f,c=r[0],v=r[1],d=r[2],p=r[3],y=r[4],m=r[5],b=r[6],T=r[7],_=r[8],x=r[9],A=r[10],E=r[11],M=n*n*u+f,k=i*n*u+o*s,F=o*n*u-i*s,P=n*i*u-o*s,O=i*i*u+f,R=o*i*u+n*s,H=n*o*u+i*s,W=i*o*u-n*s,ee=o*o*u+f,e[0]=c*M+y*k+_*F,e[1]=v*M+m*k+x*F,e[2]=d*M+b*k+A*F,e[3]=p*M+T*k+E*F,e[4]=c*P+y*O+_*R,e[5]=v*P+m*O+x*R,e[6]=d*P+b*O+A*R,e[7]=p*P+T*O+E*R,e[8]=c*H+y*W+_*ee,e[9]=v*H+m*W+x*ee,e[10]=d*H+b*W+A*ee,e[11]=p*H+T*W+E*ee,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var rE=N((_ke,eE)=>{eE.exports=$ie;function $ie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+f*a,e[5]=o*n+u*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=f*n-i*a,e[9]=u*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var aE=N((wke,tE)=>{tE.exports=Qie;function Qie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-f*a,e[1]=o*n-u*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+f*n,e[9]=o*a+u*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var iE=N((Ake,nE)=>{nE.exports=Kie;function Kie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[4],u=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+f*a,e[1]=o*n+u*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=f*n-i*a,e[5]=u*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var lE=N((Tke,oE)=>{oE.exports=eoe;function eoe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],f=Math.sqrt(o*o+l*l+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,l*=f,s*=f,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var fE=N((Mke,sE)=>{sE.exports=roe;function roe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,f=i+i,u=a*l,c=a*s,v=a*f,d=n*s,p=n*f,y=i*f,m=o*l,b=o*s,T=o*f;return e[0]=1-(d+y),e[1]=c+T,e[2]=v-b,e[3]=0,e[4]=c-T,e[5]=1-(u+y),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,e[10]=1-(u+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var cE=N((Ske,uE)=>{uE.exports=toe;function toe(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var hE=N((Eke,vE)=>{vE.exports=aoe;function aoe(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var pE=N((kke,dE)=>{dE.exports=noe;function noe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var yE=N((Cke,mE)=>{mE.exports=ioe;function ioe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var bE=N((Lke,gE)=>{gE.exports=ooe;function ooe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var _E=N((Dke,xE)=>{xE.exports=loe;function loe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,f=t*o,u=a*o,c=a*l,v=n*o,d=n*l,p=n*s,y=i*o,m=i*l,b=i*s;return e[0]=1-c-p,e[1]=u+b,e[2]=v-m,e[3]=0,e[4]=u-b,e[5]=1-f-p,e[6]=d+y,e[7]=0,e[8]=v+m,e[9]=d-y,e[10]=1-f-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var AE=N((Fke,wE)=>{wE.exports=soe;function soe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),f=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*f,e[15]=0,e}});var ME=N((Rke,TE)=>{TE.exports=foe;function foe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var EE=N((qke,SE)=>{SE.exports=uoe;function uoe(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),f=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*f*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var CE=N((Pke,kE)=>{kE.exports=coe;function coe(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),f=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*f,e[15]=1,e}});var DE=N((Nke,LE)=>{var voe=U5();LE.exports=hoe;function hoe(e,r,t,a){var n,i,o,l,s,f,u,c,v,d,p=r[0],y=r[1],m=r[2],b=a[0],T=a[1],_=a[2],x=t[0],A=t[1],E=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-A)<1e-6&&Math.abs(m-E)<1e-6?voe(e):(u=p-x,c=y-A,v=m-E,d=1/Math.sqrt(u*u+c*c+v*v),u*=d,c*=d,v*=d,n=T*v-_*c,i=_*u-b*v,o=b*c-T*u,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-u*o,f=u*i-c*n,d=Math.sqrt(l*l+s*s+f*f),d?(d=1/d,l*=d,s*=d,f*=d):(l=0,s=0,f=0),e[0]=n,e[1]=l,e[2]=u,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=f,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+o*m),e[13]=-(l*p+s*y+f*m),e[14]=-(u*p+c*y+v*m),e[15]=1,e)}});var RE=N((Ike,FE)=>{FE.exports=doe;function doe(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var H5=N((Oke,qE)=>{qE.exports={create:FS(),clone:qS(),copy:NS(),identity:U5(),transpose:BS(),invert:GS(),adjoint:HS(),determinant:YS(),multiply:jS(),translate:ZS(),scale:$S(),rotate:KS(),rotateX:rE(),rotateY:aE(),rotateZ:iE(),fromRotation:lE(),fromRotationTranslation:fE(),fromScaling:cE(),fromTranslation:hE(),fromXRotation:pE(),fromYRotation:yE(),fromZRotation:bE(),fromQuat:_E(),frustum:AE(),perspective:ME(),perspectiveFromFieldOfView:EE(),ortho:CE(),lookAt:DE(),str:RE()}});var Kg=N(Un=>{"use strict";var poe=H5();Un.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var moe=ha(),PE=Sh(),yoe=Kg(),goe=H5();function boe(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function xoe(e){var r=moe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function NE(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function _oe(e,r){IE("global",e,r)}function IE(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):PE.warn("addStyleRule failed"):PE.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function woe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&NE(t)}function Aoe(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(f){f.getAttribute(s)||(f.addEventListener("mouseenter",function(){var u=this.querySelector(t);u&&(u.style[o[0]]=o[1])}),f.addEventListener("mouseleave",function(){var u=this.querySelector(t);u&&(r&&this.matches(r)?u.style[o[0]]=o[1]:u.style[l[0]]=l[1])}),f.setAttribute(s,!0))})}function Toe(e){var r=BE(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=OE(a);if(n){var i=yoe.convertCssMatrix(n);t=goe.multiply(t,t,i)}}),t}function OE(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function BE(e){for(var r=[];Moe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Moe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Soe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}zE.exports={getGraphDiv:boe,isPlotDiv:xoe,removeElement:NE,addStyleRule:_oe,addRelatedStyleRule:IE,deleteRelatedStyleRule:woe,setStyleOnHover:Aoe,getFullTransformMatrix:Toe,getElementTransformMatrix:OE,getElementAndAncestors:BE,equalDomRects:Soe}});var J1=N((Gke,GE)=>{"use strict";GE.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Rs=N((Uke,XE)=>{"use strict";var HE=Gn().extendFlat,Eoe=Rc(),VE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},YE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},koe=VE.flags.slice().concat(["fullReplot"]),Coe=YE.flags.slice().concat("layoutReplot");XE.exports={traces:VE,layout:YE,traceFlags:function(){return UE(koe)},layoutFlags:function(){return UE(Coe)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";V5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};V5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Y5=N((Vke,ZE)=>{"use strict";ZE.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var vd=N(cd=>{"use strict";var{DATE_FORMAT_LINK:Loe,FORMAT_LINK:Doe}=Y5(),Foe=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Roe({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Doe,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Loe,"for details on the date formatting syntax.",Foe].join(" ")}cd.templateFormatStringDescription=Roe;cd.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>_h({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});cd.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>_h({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});cd.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});cd.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var t2=N((jke,rk)=>{"use strict";function Ic(e,r){return r?r.d2l(e):e}function JE(e,r){return r?r.l2d(e):e}function qoe(e){return e.x0}function Poe(e){return e.x1}function Noe(e){return e.y0}function Ioe(e){return e.y1}function $E(e){return e.x0shift||0}function QE(e){return e.x1shift||0}function KE(e){return e.y0shift||0}function ek(e){return e.y1shift||0}function e2(e,r){return Ic(e.x1,r)+QE(e)-Ic(e.x0,r)-$E(e)}function r2(e,r,t){return Ic(e.y1,t)+ek(e)-Ic(e.y0,t)-KE(e)}function Ooe(e,r){return Math.abs(e2(e,r))}function Boe(e,r,t){return Math.abs(r2(e,r,t))}function zoe(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(e2(e,r),2)+Math.pow(r2(e,r,t),2))}function Goe(e,r){return JE((Ic(e.x1,r)+QE(e)+Ic(e.x0,r)+$E(e))/2,r)}function Uoe(e,r,t){return JE((Ic(e.y1,t)+ek(e)+Ic(e.y0,t)+KE(e))/2,t)}function Hoe(e,r,t){return e.type!=="line"?void 0:r2(e,r,t)/e2(e,r)}var Voe=["x0","x1","y0","y1","dy","height","ycenter"],Yoe=["x0","x1","y0","y1","dx","width","xcenter"];rk.exports={x0:qoe,x1:Poe,y0:Noe,y1:Ioe,slope:Hoe,dx:e2,dy:r2,width:Ooe,height:Boe,length:zoe,xcenter:Goe,ycenter:Uoe,simpleXVariables:Voe,simpleYVariables:Yoe}});var nk=N((Xke,ak)=>{"use strict";var Woe=Rs().overrideAll,Eh=Ds(),tk=Ui(),joe=Nc().dash,Oc=Gn().extendFlat,{shapeTexttemplateAttrs:Xoe,templatefallbackAttrs:Zoe}=vd(),Joe=t2();ak.exports=Woe({newshape:{visible:Oc({},Eh.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Oc({},Eh.legend,{}),legendgroup:Oc({},Eh.legendgroup,{}),legendgrouptitle:{text:Oc({},Eh.legendgrouptitle.text,{}),font:tk({})},legendrank:Oc({},Eh.legendrank,{}),legendwidth:Oc({},Eh.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Oc({},joe,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Oc({},Eh.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Xoe({newshape:!0},{keys:Object.keys(Joe)}),texttemplatefallback:Zoe({editType:"arraydraw"}),font:tk({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var ok=N((Zke,ik)=>{"use strict";var $oe=Nc().dash,Qoe=Gn().extendFlat;ik.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Qoe({},$oe,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var a2=N((Jke,lk)=>{"use strict";lk.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var hd=N(($ke,ck)=>{"use strict";var W5=Ui(),Koe=J1(),n2=Mf(),sk=nk(),fk=ok(),ele=a2(),uk=Gn().extendFlat,i2=W5({editType:"calc"});i2.family.dflt='"Open Sans", verdana, arial, sans-serif';i2.size.dflt=12;i2.color.dflt=n2.defaultLine;ck.exports={font:i2,title:{text:{valType:"string",editType:"layoutstyle"},font:W5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:W5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:uk(ele({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:n2.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:n2.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:n2.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:sk.newshape,activeshape:sk.activeshape,newselection:fk.newselection,activeselection:fk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:uk({},Koe.transition,{editType:"none"})}});var vk=N(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Bt=N(ia=>{"use strict";var dd=Sh(),hk=Qg(),dk=G5(),rle=Rc(),tle=Z1().addStyleRule,pk=Gn(),ale=Ds(),nle=hd(),ile=pk.extendFlat,j5=pk.extendDeepAll;ia.modules={};ia.allCategories={};ia.allTypes=[];ia.subplotsRegistry={};ia.componentsRegistry={};ia.layoutArrayContainers=[];ia.layoutArrayRegexes=[];ia.traceLayoutAttributes={};ia.localeRegistry={};ia.apiMethodRegistry={};ia.collectableSubplotTypes=null;ia.register=function(r){if(ia.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var cle=ad().timeFormat,Sk=xa(),X5=Sh(),zc=id().mod,yd=ei(),Gl=yd.BADNUM,Jo=yd.ONEDAY,$1=yd.ONEHOUR,Bc=yd.ONEMIN,md=yd.ONESEC,Q1=yd.EPOCHJD,Cu=Bt(),xk=ad().utcFormat,vle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,hle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,_k=new Date().getFullYear()-70;function Lu(e){return e&&Cu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Hn.dateTick0=function(e,r){var t=dle(e,!!r);if(r<2)return t;var a=Hn.dateTime2ms(t,e);return a+=Jo*(r-1),Hn.ms2DateTime(a,0,e)};function dle(e,r){return Lu(e)?r?Cu.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Cu.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Hn.dfltRange=function(e){return Lu(e)?Cu.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Hn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var l2,s2;Hn.dateTime2ms=function(e,r){if(Hn.isJSDate(e)){var t=e.getTimezoneOffset()*Bc,a=(e.getUTCMinutes()-e.getMinutes())*Bc+(e.getUTCSeconds()-e.getSeconds())*md+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Bc;t=t-n/2+zc(a-t+n/2,n)}return e=Number(e)-t,e>=l2&&e<=s2?e:Gl}if(typeof e!="string"&&typeof e!="number")return Gl;e=String(e);var i=Lu(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?hle:vle);if(!s)return Gl;var f=s[1],u=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(f.length===2)return Gl;f=Number(f);var y;try{var m=Cu.getComponentMethod("calendars","getCal")(r);if(l){var b=u.charAt(u.length-1)==="i";u=parseInt(u,10),y=m.newDate(f,m.toMonthIndex(f,u,b),c)}else y=m.newDate(f,Number(u),c)}catch(_){return Gl}return y?(y.toJD()-Q1)*Jo+v*$1+d*Bc+p*md:Gl}f.length===2?f=(Number(f)+2e3-_k)%100+_k:f=Number(f),u-=1;var T=new Date(Date.UTC(2e3,u,c,v,d));return T.setUTCFullYear(f),T.getUTCMonth()!==u||T.getUTCDate()!==c?Gl:T.getTime()+p*md};l2=Hn.MIN_MS=Hn.dateTime2ms("-9999");s2=Hn.MAX_MS=Hn.dateTime2ms("9999-12-31 23:59:59.9999");Hn.isDateTime=function(e,r){return Hn.dateTime2ms(e,r)!==Gl};function pd(e,r){return String(e+Math.pow(10,r)).slice(1)}var o2=90*Jo,wk=3*$1,Ak=5*Bc;Hn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=l2&&e<=s2))return Gl;r||(r=0);var a=Math.floor(zc(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,f,u;if(Lu(t)){var c=Math.floor(n/Jo)+Q1,v=Math.floor(zc(e,Jo));try{i=Cu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=xk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r=l2+Jo&&e<=s2-Jo))return Gl;var r=Math.floor(zc(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=cle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Ek(a,n,i,o,l)};function Ek(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+pd(r,2)+":"+pd(t,2),(a||n)&&(e+=":"+pd(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+pd(n,i)}return e}Hn.cleanDate=function(e,r,t){if(e===Gl)return r;if(Hn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Lu(t))return X5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Hn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Hn.isDateTime(e,t))return X5.error("unrecognized date",e),r;return e};var ple=/%\d?f/g,mle=/%h/g,yle={1:"1",2:"1",3:"2",4:"2"};function Tk(e,r,t,a){e=e.replace(ple,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(mle,function(){return yle[t("%q")(n)]}),Lu(a))try{e=Cu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var gle=[59,59.9,59.99,59.999,59.9999];function ble(e,r){var t=zc(e+.05,Jo),a=pd(Math.floor(t/$1),2)+":"+pd(zc(Math.floor(t/Bc),60),2);if(r!=="M"){Sk(r)||(r=0);var n=Math.min(zc(e/md,60),gle[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Hn.formatDate=function(e,r,t,a,n,i){if(n=Lu(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return ble(e,t)+` -`+Tk(i.dayMonthYear,e,a,n);return Tk(r,e,a,n)};var Mk=3*Jo;Hn.incrementMonth=function(e,r,t){t=Lu(t)&&t;var a=zc(e,Jo);if(e=Math.round(e-a),t)try{var n=Math.round(e/Jo)+Q1,i=Cu.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Q1)*Jo+a}catch(s){X5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+Mk);return l.setUTCMonth(l.getUTCMonth()+r)+a-Mk};Hn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Lu(r)&&Cu.getComponentMethod("calendars","getCal")(r),f=0;f{"use strict";Ck.exports=function(r){return r}});var J5=N(Du=>{"use strict";var xle=xa(),_le=Sh(),wle=f2(),Ale=ei().BADNUM,Z5=1e-9;Du.findBin=function(e,r,t){if(xle(r.start))return t?Math.ceil((e-r.start)/r.size-Z5)-1:Math.floor((e-r.start)/r.size+Z5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?Tle:Mle:s=t?Ele:Sle,e+=o*Z5*(t?-1:1)*(o>=0?1:-1);a90&&_le.log("Long binary search..."),a-1};function Tle(e,r){return er}function Ele(e,r){return e>=r}Du.sorterAsc=function(e,r){return e-r};Du.sorterDes=function(e,r){return r-e};Du.distinctVals=function(e){var r=e.slice();r.sort(Du.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Ale;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],f=s-o;o===void 0?(i.push(s),o=s):f>n&&(a=Math.min(a,f),i.push(s),o=s)}return{vals:i,minDiff:a}};Du.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,f=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Du.findIndexOfMin=function(e,r){r=r||wle;for(var t=1/0,a,n=0;n{"use strict";Lk.exports=function(r){return Object.keys(r).sort()}});var Dk=N(Vn=>{"use strict";var K1=xa(),kle=Po().isArrayOrTypedArray;Vn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),K1(r)||(r=!1),kle(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Nk=N((oCe,Pk)=>{"use strict";var Fk=id(),$5=Fk.mod,Cle=Fk.modHalf,em=Math.PI,Gc=2*em;function Lle(e){return e/180*em}function Dle(e){return e/em*180}function Q5(e){return Math.abs(e[1]-e[0])>Gc-1e-14}function Rk(e,r){return Cle(r-e,Gc)}function Fle(e,r){return Math.abs(Rk(e,r))}function qk(e,r){if(Q5(r))return!0;var t,a;r[0]a&&(a+=Gc);var n=$5(e,Gc),i=n+Gc;return n>=t&&n<=a||i>=t&&i<=a}function Rle(e,r,t,a){if(!qk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function K5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Q5([t,a]),s,f,u,c,v;l?(s=0,f=em,u=Gc):t{"use strict";kh.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};kh.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};kh.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};kh.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};kh.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};kh.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var zk=N(Ch=>{"use strict";var e4=id().mod;Ch.segmentsIntersect=Bk;function Bk(e,r,t,a,n,i,o,l){var s=t-e,f=n-e,u=o-n,c=a-r,v=i-r,d=l-i,p=s*d-u*c;if(p===0)return null;var y=(f*d-u*v)/p,m=(f*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}Ch.segmentDistance=function(r,t,a,n,i,o,l,s){if(Bk(r,t,a,n,i,o,l,s))return 0;var f=a-r,u=n-t,c=l-i,v=s-o,d=f*f+u*u,p=c*c+v*v,y=Math.min(c2(f,u,d,i-r,o-t),c2(f,u,d,l-r,s-t),c2(c,v,p,r-i,t-o),c2(c,v,p,a-i,n-o));return Math.sqrt(y)};function c2(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var v2,r4,Ok;Ch.getTextLocation=function(r,t,a,n){if((r!==r4||n!==Ok)&&(v2={},r4=r,Ok=n),v2[a])return v2[a];var i=r.getPointAtLength(e4(a-n/2,t)),o=r.getPointAtLength(e4(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(e4(a,t)),f=(s.x*4+i.x+o.x)/6,u=(s.y*4+i.y+o.y)/6,c={x:f,y:u,theta:l};return v2[a]=c,c};Ch.clearLocationCache=function(){r4=null};Ch.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,f=r.getTotalLength(),u=f,c,v;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===f&&(v=m);var b=m.xi?m.x-i:0,T=m.yl?m.y-l:0;return Math.sqrt(b*b+T*T)}for(var p=d(s);p;){if(s+=p+a,s>u)return;p=d(s)}for(p=d(u);p;){if(u-=p+a,s>u)return;p=d(u)}return{min:s,max:u,len:u-s,total:f,isClosed:s===0&&u===f&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};Ch.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,f=0,u=0,c=i,v,d,p;f0?c=v:u=v,f++}return d}});var h2=N(rm=>{"use strict";var Fu={};rm.throttle=function(r,t,a){var n=Fu[r],i=Date.now();if(!n){for(var o in Fu)Fu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};rm.done=function(e){var r=Fu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};rm.clear=function(e){if(e)Gk(Fu[e]),delete Fu[e];else for(var r in Fu)rm.clear(r)};function Gk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Hk=N((uCe,Uk)=>{"use strict";Uk.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var Vk=N((cCe,d2)=>{"use strict";d2.exports=t4;d2.exports.isMobile=t4;d2.exports.default=t4;var Ile=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Ole=/CrOS/,Ble=/android|ipad|playbook|silk/i;function t4(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=Ile.test(r)&&!Ole.test(r)||!!e.tablet&&Ble.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Wk=N((vCe,Yk)=>{"use strict";var zle=xa(),Gle=Vk();Yk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Ule(),typeof t!="string")return!0;var a=Gle({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var f=s.slice(8).split(".")[0];if(zle(f)&&(f=+f),f>=13)return!0}}}return a};function Ule(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Xk=N((hCe,jk)=>{"use strict";var Hle=ha();jk.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Hle.select(this)}),n}});var Jk=N((dCe,Zk)=>{"use strict";var Vle=Bt();Zk.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Vle.localeRegistry}var f=a.split("-")[0];if(f===a)break;a=f}return t}});var Qk=N((pCe,$k)=>{"use strict";$k.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";Kk.exports=function(r){for(var t=jle(r)?Wle:Yle,a=[],n=0;n{"use strict";rC.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var nC=N((gCe,aC)=>{"use strict";var Xle=xa(),Zle=ei().BADNUM,Jle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;aC.exports=function(r){return typeof r=="string"&&(r=r.replace(Jle,"")),Xle(r)?Number(r):Zle}});var Ur=N((bCe,yC)=>{"use strict";var tm=ha(),$le=ad().utcFormat,Qle=E5().format,uC=xa(),cC=ei(),vC=cC.FP_SAFE,Kle=-vC,iC=cC.BADNUM,je=yC.exports={};je.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var oC={};je.warnBadFormat=function(e){var r=String(e);oC[r]||(oC[r]=1,je.warn('encountered bad format: "'+r+'"'))};je.noFormat=function(e){return String(e)};je.numberFormat=function(e){var r;try{r=Qle(je.adjustFormat(e))}catch(t){return je.warnBadFormat(e),je.noFormat}return r};je.nestedProperty=Vg();je.keyedContainer=$M();je.relativeAttr=KM();je.isPlainObject=Rc();je.toLogRange=Wg();je.relinkPrivateKeys=aS();var Uc=Po();je.isArrayBuffer=Uc.isArrayBuffer;je.isTypedArray=Uc.isTypedArray;je.isArrayOrTypedArray=Uc.isArrayOrTypedArray;je.isArray1D=Uc.isArray1D;je.ensureArray=Uc.ensureArray;je.concat=Uc.concat;je.maxRowLength=Uc.maxRowLength;je.minRowLength=Uc.minRowLength;var hC=id();je.mod=hC.mod;je.modHalf=hC.modHalf;var Hc=wS();je.valObjectMeta=Hc.valObjectMeta;je.coerce=Hc.coerce;je.coerce2=Hc.coerce2;je.coerceFont=Hc.coerceFont;je.coercePattern=Hc.coercePattern;je.coerceHoverinfo=Hc.coerceHoverinfo;je.coerceSelectionMarkerOpacity=Hc.coerceSelectionMarkerOpacity;je.validate=Hc.validate;var gl=kk();je.dateTime2ms=gl.dateTime2ms;je.isDateTime=gl.isDateTime;je.ms2DateTime=gl.ms2DateTime;je.ms2DateTimeLocal=gl.ms2DateTimeLocal;je.cleanDate=gl.cleanDate;je.isJSDate=gl.isJSDate;je.formatDate=gl.formatDate;je.incrementMonth=gl.incrementMonth;je.dateTick0=gl.dateTick0;je.dfltRange=gl.dfltRange;je.findExactDates=gl.findExactDates;je.MIN_MS=gl.MIN_MS;je.MAX_MS=gl.MAX_MS;var Lh=J5();je.findBin=Lh.findBin;je.sorterAsc=Lh.sorterAsc;je.sorterDes=Lh.sorterDes;je.distinctVals=Lh.distinctVals;je.roundUp=Lh.roundUp;je.sort=Lh.sort;je.findIndexOfMin=Lh.findIndexOfMin;je.sortObjectKeys=u2();var Ru=Dk();je.aggNums=Ru.aggNums;je.len=Ru.len;je.mean=Ru.mean;je.geometricMean=Ru.geometricMean;je.median=Ru.median;je.midRange=Ru.midRange;je.variance=Ru.variance;je.stdev=Ru.stdev;je.interp=Ru.interp;var qs=Kg();je.init2dArray=qs.init2dArray;je.transposeRagged=qs.transposeRagged;je.dot=qs.dot;je.translationMatrix=qs.translationMatrix;je.rotationMatrix=qs.rotationMatrix;je.rotationXYMatrix=qs.rotationXYMatrix;je.apply3DTransform=qs.apply3DTransform;je.apply2DTransform=qs.apply2DTransform;je.apply2DTransform2=qs.apply2DTransform2;je.convertCssMatrix=qs.convertCssMatrix;je.inverseTransformMatrix=qs.inverseTransformMatrix;var Sf=Nk();je.deg2rad=Sf.deg2rad;je.rad2deg=Sf.rad2deg;je.angleDelta=Sf.angleDelta;je.angleDist=Sf.angleDist;je.isFullCircle=Sf.isFullCircle;je.isAngleInsideSector=Sf.isAngleInsideSector;je.isPtInsideSector=Sf.isPtInsideSector;je.pathArc=Sf.pathArc;je.pathSector=Sf.pathSector;je.pathAnnulus=Sf.pathAnnulus;var bd=Ik();je.isLeftAnchor=bd.isLeftAnchor;je.isCenterAnchor=bd.isCenterAnchor;je.isRightAnchor=bd.isRightAnchor;je.isTopAnchor=bd.isTopAnchor;je.isMiddleAnchor=bd.isMiddleAnchor;je.isBottomAnchor=bd.isBottomAnchor;var xd=zk();je.segmentsIntersect=xd.segmentsIntersect;je.segmentDistance=xd.segmentDistance;je.getTextLocation=xd.getTextLocation;je.clearLocationCache=xd.clearLocationCache;je.getVisibleSegment=xd.getVisibleSegment;je.findPointOnPath=xd.findPointOnPath;var y2=Gn();je.extendFlat=y2.extendFlat;je.extendDeep=y2.extendDeep;je.extendDeepAll=y2.extendDeepAll;je.extendDeepNoArrays=y2.extendDeepNoArrays;var a4=Sh();je.log=a4.log;je.warn=a4.warn;je.error=a4.error;var ese=sd();je.counterRegex=ese.counter;var n4=h2();je.throttle=n4.throttle;je.throttleDone=n4.done;je.clearThrottle=n4.clear;var Ps=Z1();je.getGraphDiv=Ps.getGraphDiv;je.isPlotDiv=Ps.isPlotDiv;je.removeElement=Ps.removeElement;je.addStyleRule=Ps.addStyleRule;je.addRelatedStyleRule=Ps.addRelatedStyleRule;je.deleteRelatedStyleRule=Ps.deleteRelatedStyleRule;je.setStyleOnHover=Ps.setStyleOnHover;je.getFullTransformMatrix=Ps.getFullTransformMatrix;je.getElementTransformMatrix=Ps.getElementTransformMatrix;je.getElementAndAncestors=Ps.getElementAndAncestors;je.equalDomRects=Ps.equalDomRects;je.clearResponsive=Hk();je.preserveDrawingBuffer=Wk();je.makeTraceGroups=Xk();je._=Jk();je.notifier=O5();je.filterUnique=Qk();je.filterVisible=eC();je.pushUnique=G5();je.increment=tC();je.cleanNumber=nC();je.ensureNumber=function(r){return uC(r)?(r=Number(r),r>vC||r=r?!1:uC(e)&&e>=0&&e%1===0};je.noop=Qg();je.identity=f2();je.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};je.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};je.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(je.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};je.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};je.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,f,u;for(l=0;l=a&&(f-=a*Math.floor(f/a)),f<0?f=-1-f:f>=t&&(f=a-1-f),u+=e[f]*i[s];o[l]=u}return o};je.syncOrAsync=function(e,r,t){var a,n;function i(){return je.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};je.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};je.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};je.fillArray=function(e,r,t,a){if(a=a||je.identity,je.isArrayOrTypedArray(e))for(var n=0;nase.test(window.navigator.userAgent);var nse=/Firefox\/(\d+)\.\d+/;je.getFirefoxVersion=function(){var e=nse.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};je.isD3Selection=function(e){return e instanceof tm.selection};je.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};je.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};je.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};je.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var mC=/^\w*$/;je.templateString=function(e,r){var t={};return e.replace(je.TEMPLATE_STRING_REGEX,function(a,n){var i;return mC.test(n)?i=r[n]:(t[n]=t[n]||je.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var lse={max:10,count:0,name:"hovertemplate"};je.hovertemplateString=e=>i4(qg(_h({},e),{opts:lse}));var sse={max:10,count:0,name:"texttemplate"};je.texttemplateString=e=>i4(qg(_h({},e),{opts:sse}));var fse=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function use(e){var r=e.match(fse);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var cse={max:10,count:0,name:"texttemplate",parseMultDiv:!0};je.texttemplateStringForShapes=e=>i4(qg(_h({},e),{opts:cse}));var lC=/^[:|\|]/;function i4({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(je.TEMPLATE_STRING_REGEX,(o,l,s)=>{let f=["xother","yother"].includes(l),u=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=f||u||v||c;(u||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,y=null;if(n.parseMultDiv){var m=use(l);l=m.key,p=m.op,y=m.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let A of e)if(A){if(A.hasOwnProperty(l)){b=A[l];break}if(mC.test(l)||(b=je.nestedProperty(A,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:A,max:E,name:M}=n,k=t===!1?o:t;return A=m2&&o<=sC,f=l>=m2&&l<=sC;if(s&&(a=10*a+o-m2),f&&(n=10*n+l-m2),!s||!f){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var gd=2e9;je.seedPseudoRandom=function(){gd=2e9};je.pseudoRandom=function(){var e=gd;return gd=(69069*gd+1)%4294967296,Math.abs(gd-e)<429496729?je.pseudoRandom():gd/4294967296};je.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=je.extractOption(e,r,"htx","hovertext");if(je.isValidTextValue(n))return a(n);var i=je.extractOption(e,r,"tx","text");if(je.isValidTextValue(i))return a(i)};je.isValidTextValue=function(e){return e||e===0};je.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(f=1):f=0,je.strTranslate(n-f*(t+o),i-f*(a+l))+je.strScale(f)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};je.setTransormAndDisplay=function(e,r){e.attr("transform",je.getTextTransform(r)),e.style("display",r.scale?null:"none")};je.ensureUniformFontSize=function(e,r){var t=je.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};je.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};je.bigFont=function(e){return Math.round(1.2*e)};var fC=je.getFirefoxVersion(),vse=fC!==null&&fC<86;je.getPositionFromD3Event=function(){return vse?[tm.event.layerX,tm.event.layerY]:[tm.event.offsetX,tm.event.offsetY]}});var xC=N(()=>{"use strict";var hse=Ur(),gC={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(o4 in gC)bC=o4.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),hse.addStyleRule(bC,gC[o4]);var bC,o4});var l4=N((ACe,_C)=>{_C.exports=!0});var f4=N((TCe,wC)=>{"use strict";var dse=l4(),s4;typeof window.matchMedia=="function"?s4=!window.matchMedia("(hover: none)").matches:s4=dse;wC.exports=s4});var x2=N((MCe,u4)=>{"use strict";var _d=typeof Reflect=="object"?Reflect:null,AC=_d&&typeof _d.apply=="function"?_d.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},g2;_d&&typeof _d.ownKeys=="function"?g2=_d.ownKeys:Object.getOwnPropertySymbols?g2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:g2=function(r){return Object.getOwnPropertyNames(r)};function pse(e){console&&console.warn&&console.warn(e)}var MC=Number.isNaN||function(r){return r!==r};function cn(){cn.init.call(this)}u4.exports=cn;u4.exports.once=bse;cn.EventEmitter=cn;cn.prototype._events=void 0;cn.prototype._eventsCount=0;cn.prototype._maxListeners=void 0;var TC=10;function b2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(cn,"defaultMaxListeners",{enumerable:!0,get:function(){return TC},set:function(e){if(typeof e!="number"||e<0||MC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");TC=e}});cn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};cn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||MC(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function SC(e){return e._maxListeners===void 0?cn.defaultMaxListeners:e._maxListeners}cn.prototype.getMaxListeners=function(){return SC(this)};cn.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")AC(s,this,t);else for(var f=s.length,u=DC(s,f),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,pse(l)}return e}cn.prototype.addListener=function(r,t){return EC(this,r,t,!1)};cn.prototype.on=cn.prototype.addListener;cn.prototype.prependListener=function(r,t){return EC(this,r,t,!0)};function mse(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function kC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=mse.bind(a);return n.listener=t,a.wrapFn=n,n}cn.prototype.once=function(r,t){return b2(t),this.on(r,kC(this,r,t)),this};cn.prototype.prependOnceListener=function(r,t){return b2(t),this.prependListener(r,kC(this,r,t)),this};cn.prototype.removeListener=function(r,t){var a,n,i,o,l;if(b2(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():yse(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};cn.prototype.off=cn.prototype.removeListener;cn.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function CC(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?gse(n):DC(n,n.length)}cn.prototype.listeners=function(r){return CC(this,r,!0)};cn.prototype.rawListeners=function(r){return CC(this,r,!1)};cn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):LC.call(e,r)};cn.prototype.listenerCount=LC;function LC(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}cn.prototype.eventNames=function(){return this._eventsCount>0?g2(this._events):[]};function DC(e,r){for(var t=new Array(r),a=0;a{"use strict";var c4=x2().EventEmitter,_se={init:function(e){if(e._ev instanceof c4)return e;var r=new c4,t=new c4;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var qC=Ur(),wse=Mh().dfltConfig;function Ase(e,r){for(var t=[],a,n=0;nwse.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};qu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};qu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};qu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";IC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Td=N(fi=>{"use strict";var Ul=Bt(),nm=Ur(),w2=Ds(),h4=hd(),Tse=v4(),Mse=J1(),Sse=Mh().configAttributes,OC=Rs(),Ns=nm.extendDeepAll,wd=nm.isPlainObject,Ese=nm.isArrayOrTypedArray,A2=nm.nestedProperty,kse=nm.valObjectMeta,d4="_isSubplotObj",T2="_isLinkedToArray",Cse="_arrayAttrRegexps",zC="_deprecated",p4=[d4,T2,Cse,zC];fi.IS_SUBPLOT_OBJ=d4;fi.IS_LINKED_TO_ARRAY=T2;fi.DEPRECATED=zC;fi.UNDERSCORE_ATTRS=p4;fi.get=function(){var e={};return Ul.allTypes.forEach(function(r){e[r]=Dse(r)}),{defs:{valObjects:kse,metaKeys:p4.concat(["description","role","editType","impliedEdits"]),editType:{traces:OC.traces,layout:OC.layout},impliedEdits:{}},traces:e,layout:Fse(),frames:Rse(),animation:Ad(Mse),config:Ad(Sse)}};fi.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(p4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!fi.isValObject(o)&&wd(o)&&i!=="impliedEdits"&&fi.crawl(o,r,n+1,l)}})};fi.isValObject=function(e){return e&&e.valType!==void 0};fi.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,f,u,c){t=t.slice(0,c).concat([f]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(f==="ticktext"||f==="tickvals"));v&&l(n,0,"")}function l(s,f,u){var c=s[t[f]],v=u+t[f];if(f===t.length-1)Ese(c)&&r.push(i+v);else if(a[f]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!_2(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function _2(e){return e===Math.round(e)&&e>=0}function Dse(e){var r,t;r=Ul.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ns({},w2),i=Ns({},r.attributes);fi.crawl(i,function(s,f,u,c,v){A2(n,v).set(void 0),s===void 0&&A2(i,v).set(void 0)}),Ns(a,n),Ul.traceIs(e,"noOpacity")&&delete a.opacity,Ul.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Ul.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ns(a,i),t.attributes&&Ns(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ad(a)};if(r.layoutAttributes){var l={};Ns(l,r.layoutAttributes),o.layoutAttributes=Ad(l)}return r.animatable||fi.crawl(o,function(s){fi.isValObject(s)&&"anim"in s&&delete s.anim}),o}function Fse(){var e={},r,t;Ns(e,h4);for(r in Ul.subplotsRegistry)if(t=Ul.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Md=Ur(),Ose=Ds(),Vc="templateitemname",m4={name:{valType:"string",editType:"none"}};m4[Vc]={valType:"string",editType:"calc"};Dh.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=m4.name,r[Vc]=m4[Vc],r};Dh.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Md.coerce(i,{},Ose,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};Dh.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Md.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Dh.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[HC(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(f){var u={name:f.name,_input:f},c=u[Vc]=f[Vc];if(!UC(c))return u._template=n,u;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Vc]=i)}s();function f(d,p){l[d]=p}function u(d,p){i?Md.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&u(d,p);var y=c();for(var m in y)Md.nestedProperty(e,m).set(y[m])}return{modifyBase:f,modifyItem:u,getUpdateObj:c,applyUpdate:v}}});var ui=N((DCe,VC)=>{"use strict";var im=sd().counter;VC.exports={idRegex:{x:im("x","( domain)?"),y:im("y","( domain)?")},attrRegex:im("[xy]axis"),xAxisMatch:im("xaxis"),yAxisMatch:im("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Sn=N($o=>{"use strict";var Bse=Bt(),y4=ui();$o.id2name=function(r){if(!(typeof r!="string"||!r.match(y4.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};$o.name2id=function(r){if(r.match(y4.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};$o.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(y4.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};$o.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=$o.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};$o.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function YC(e,r){if(r&&r.length){for(var t=0;t{"use strict";function zse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Gse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}WC.exports={clearOutlineControllers:zse,clearOutline:Gse}});var M2=N((qCe,jC)=>{"use strict";jC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var om=N(E2=>{"use strict";var S2=Bt(),PCe=ui().SUBPLOT_PATTERN;E2.getSubplotCalcData=function(e,r,t){var a=S2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Use=Bt(),Sd=Ur();Fh.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Fh.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){XC(e,o,n.cache),n.check=function(){if(i){var u=XC(e,o,n.cache);return u.changed&&a&&n.lookupTable[u.value]!==void 0&&(n.disable(),Promise.resolve(a({value:u.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[u.value]})).then(n.enable,n.enable)),u.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Sd.isPlainObject(i)?g4(i,r,o,a+1):r(o,n,i)}})}});var xi=N((OCe,cL)=>{"use strict";var nL=ha(),Vse=ad().timeFormatLocale,Yse=E5().formatLocale,lm=xa(),Wse=k5(),Ca=Bt(),iL=Td(),jse=Ja(),St=Ur(),oL=ca(),QC=ei().BADNUM,Qo=Sn(),Xse=Yc().clearOutline,Zse=M2(),b4=J1(),Jse=v4(),$se=om().getModuleCalcData,KC=St.relinkPrivateKeys,Rh=St._,pt=cL.exports={};St.extendFlat(pt,Ca);pt.attributes=Ds();pt.attributes.type.values=pt.allTypes;pt.fontAttrs=Ui();pt.layoutAttributes=hd();var C2=$C();pt.executeAPICommand=C2.executeAPICommand;pt.computeAPICommandBindings=C2.computeAPICommandBindings;pt.manageCommandObserver=C2.manageCommandObserver;pt.hasSimpleAPICommandBindings=C2.hasSimpleAPICommandBindings;pt.redrawText=function(e){return e=St.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Ca.getComponentMethod("annotations","draw")(e),Ca.getComponentMethod("legend","draw")(e),Ca.getComponentMethod("colorbar","draw")(e),r(pt.previousPromises(e)))},300)})};pt.resize=function(e){e=St.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||St.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||St.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Ca.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};pt.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};pt.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=St.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:oL.defaultLine,"pointer-events":"all"}).each(function(){var f=nL.select(this);f.append("tspan").classed("js-link-to-tool",!0),f.append("tspan").classed("js-link-spacer",!0),f.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Qse(e,i),o.text(i.text()&&l.text()?" - ":"")}};function Qse(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){pt.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}pt.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=nL.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=pt.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var Kse=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],efe=["year","month","dayMonth","dayMonthYear"];pt.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],f=e.calcdata||[],u=e._context||{},c;e._transitionData||pt.createTransitionData(e),n._dfltTitle={plot:Rh(e,"Click to enter Plot title"),subtitle:Rh(e,"Click to enter Plot subtitle"),x:Rh(e,"Click to enter X axis title"),y:Rh(e,"Click to enter Y axis title"),colorbar:Rh(e,"Click to enter Colorscale title"),annotation:Rh(e,"new text")},n._traceWord=Rh(e,"trace");var v=eL(e,Kse);if(n._mapboxAccessToken=u.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;pt.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),pt.sanitizeMargins(n)}else{pt.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=u.autosizable,T=y&&(m||b);T?pt.plotAutoSize(e,i,n):y&&pt.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=afe(v,n.separators),n._extraFormat=eL(e,efe),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=tfe(),x=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=rfe(o,s),pt.supplyDataDefaults(s,l,i,n);var E=Object.keys(x.x),M=Object.keys(x.y);if(E.length>1&&M.length>1){for(Ca.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,pt.linkSubplots(l,n,o,a),pt.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),W=R,ee=H;W&&!ee?a._bgLayer.remove():ee&&!W&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Xse({_fullLayout:a}),nfe(l,n),KC(n,a),Ca.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var te=n._tracePreGUI,Q={},J;for(J in te)Q[J]="old";for(c=0;c0){var u=1-2*i;o=Math.round(u*o),l=Math.round(u*l)}}var c=pt.layoutAttributes.width.min,v=pt.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),pt.sanitizeMargins(a)};pt.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Ca.componentsRegistry,i=r._basePlotModules,o,l,s,f=Ca.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(f),r._has("cartesian")&&(Ca.getComponentMethod("grid","contentDefaults")(e,r),f.finalizeSubplots(e,r));for(var u in r._subplots)r._subplots[u].sort(St.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var T=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+y},r:{val:_,size:t.r+y},b:{val:A,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return pt.doAutoMargin(e)}};function ofe(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Qo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}pt.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),lL(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=St.extendFlat({},n),s=i.l,f=i.r,u=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var T in b)for(var _ in b[T]){var x=b[T][_];o[_]=Math.max(o[_],x)}v.base={l:{val:0,size:s},r:{val:1,size:f},t:{val:1,size:u},b:{val:0,size:c}};for(var A in o){var E=0;for(var M in v)M!=="base"&&lm(v[M][A].size)&&(E=v[M][A].size>E?v[M][A].size:E);var k=Math.max(0,i[A]-E);o[A]=Math.max(0,o[A]-k)}for(var F in v){var P=v[F].l||{},O=v[F].b||{},R=P.val,H=P.size,W=O.val,ee=O.size,te=t-o.r-o.l,Q=a-o.t-o.b;for(var J in v){if(lm(H)&&v[J].r){var j=v[J].r.val,se=v[J].r.size;if(j>R){var le=(H*j+(se-te)*R)/(j-R),Ee=(se*(1-R)+(H-te)*(1-j))/(j-R);le+Ee>s+f&&(s=le,f=Ee)}}if(lm(ee)&&v[J].t){var Ge=v[J].t.val,Le=v[J].t.size;if(Ge>W){var Ve=(ee*Ge+(Le-Q)*W)/(Ge-W),we=(Le*(1-W)+(ee-Q)*(1-Ge))/(Ge-W);Ve+we>c+u&&(c=Ve,u=we)}}}}}var ur=St.constrain(t-i.l-i.r,sL,p),Oe=St.constrain(a-i.t-i.b,fL,y),Ue=Math.max(0,t-ur),xr=Math.max(0,a-Oe);if(Ue){var Ye=(s+f)/Ue;Ye>1&&(s/=Ye,f/=Ye)}if(xr){var re=(c+u)/xr;re>1&&(c/=re,u/=re)}if(n.l=Math.round(s)+o.l,n.r=Math.round(f)+o.r,n.t=Math.round(u)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(pt.didMarginChange(l,n)||ofe(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var de=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};pt.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&pt.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function f(v,d){if(typeof v=="function")return d?"_function_":null;if(St.isPlainObject(v)){var p={},y;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.slice(-3)==="src")return}else if(t==="keepstream"){if(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0&&!St.isPlainObject(v.stream))return}else if(t!=="keepall"&&(y=v[_+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[_]=f(v[_],d)}}),p}var m=Array.isArray(v),b=St.isTypedArray(v);if((m||b)&&v.dtype&&v.shape){var T=v.bdata;return f({dtype:v.dtype,shape:v.shape,bdata:St.isArrayBuffer(T)?Wse.encode(T):T},d)}return m?v.map(function(_){return f(_,d)}):b?St.simpleMap(v,St.identity):St.isJSDate(v)?St.ms2DateTimeLocal(+v):v}var u={data:(o||[]).map(function(v){var d=f(v);return r&&delete d.fit,d})};if(!r&&(u.layout=f(l),n)){var c=l._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=f(s)),i&&(u.config=f(e._context,!0)),a==="object"?u:JSON.stringify(u)};pt.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Ca.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Ca.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var f=[pt.previousPromises,s,t.prepareFn,pt.rehover,pt.reselect,o],u=St.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e})}pt.doCalcdata=function(e,r){var t=Qo.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,f=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=f,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}o&&o.calc&&(x=o.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:QC,y:QC}]),x[0].t||(x[0].t={}),x[0].trace=i,f[T]=x}}for(tL(t,a,n),l=0;l{"use strict";qh.xmlns="http://www.w3.org/2000/xmlns/";qh.svg="http://www.w3.org/2000/svg";qh.xlink="http://www.w3.org/1999/xlink";qh.svgAttrs={xmlns:qh.svg,"xmlns:xlink":qh.xlink}});var ao=N((zCe,vL)=>{"use strict";vL.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var no=N(Hl=>{"use strict";var ri=ha(),Pu=Ur(),ufe=Pu.strTranslate,x4=Wc(),cfe=ao().LINE_SPACING,vfe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Hl.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(vfe),i=ri.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=Mfe(e.node(),a);s&&e.style("pointer-events","all"),Hl.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var f=parseInt(e.node().style.fontSize,10),u={fontSize:f};mfe(n[2],u,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var m=d.width,b=d.height;p.attr({class:o,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var T=e.node().style.fill||"black",_=p.select("g");_.attr({fill:T,stroke:T});var x=_.node().getBoundingClientRect(),A=x.width,E=x.height;(A>m||E>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),A=x.width,E=x.height);var M=+e.attr("x"),k=+e.attr("y"),F=f||e.node().getBoundingClientRect().height,P=-F/4;if(o[0]==="y")y.attr({transform:"rotate("+[-90,M,k]+")"+ufe(-A/2,P-E/2)});else if(o[0]==="l")k=P-E/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,k=P;else{var O=e.attr("text-anchor");M=M-A*(O==="middle"?.5:O==="end"?1:0),k=k+P-E/2}p.attr({x:M,y:k}),t&&t.call(e,y),s(y)})})):l(),e};var hfe=/(<|<|<)/g,dfe=/(>|>|>)/g;function pfe(e){return e.replace(hfe,"\\lt ").replace(dfe,"\\gt ")}var hL=[["$","$"],["\\(","\\)"]];function mfe(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){Pu.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=Pu.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:hL},displayAlign:"left"})},f=function(){i=Pu.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=hL},u=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var T="math-output-"+Pu.randstr({},64);l=ri.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(pfe(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var T=l.select(a===2?".MathJax_SVG":".MathJax"),_=!T.empty()&&l.select("svg").node();if(!_)Pu.log("There was an error in the tex syntax.",e),t();else{var x=_.getBoundingClientRect(),A;a===2?A=ri.select("body").select("#MathJax_SVG_glyphs"):A=T.select("defs"),t(T,A,x)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,u,v,d,p,m):a===3&&(f(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),y(),b()}))}var yL={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},yfe={sub:"0.3em",sup:"-0.6em"},gfe={sub:"-0.21em",sup:"0.42em"},dL="\u200B",pL=["http:","https:","mailto:","",void 0,":"],gL=Hl.NEWLINES=/(\r\n?|\n)/g,w4=/(<[^<>]*>)/,A4=/<(\/?)([^ >]*)(\s+(.*))?>/i,bfe=//i;Hl.BR_TAG_ALL=//gi;var bL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,xL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,_L=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,xfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Ph(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&L2(a)}var _fe=/(^|;)\s*color:/;Hl.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(w4),l=[],s="",f=0,u=0;ui?l.push(c.slice(0,Math.max(0,y-i))+n):l.push(c.slice(0,y));break}s=""}}return l.join("")};var wfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Afe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function L2(e){return e.replace(Afe,function(r,t){var a;return t.charAt(0)==="#"?a=Tfe(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=wfe[t],a||r})}Hl.convertEntities=L2;function Tfe(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Mfe(e,r){r=r.replace(gL," ");var t=!1,a=[],n,i=-1;function o(){i++;var E=document.createElementNS(x4.svg,"tspan");ri.select(E).attr({class:"line",dy:i*cfe+"em"}),e.appendChild(E),n=E;var M=a;if(a=[{node:E}],M.length>1)for(var k=1;k.",r);return}var M=a.pop();E!==M.type&&Pu.log("Start tag <"+M.type+"> doesnt match end tag <"+E+">. Pretending it did match.",r),n=a[a.length-1].node}var u=bfe.test(r);u?o():(n=e,a=[{node:e}]);for(var c=r.split(w4),v=0;v{"use strict";var Sfe=ha(),F2=Ls(),fm=xa(),D2=Ur(),AL=ca(),Efe=Ah().isValid;function kfe(e,r,t){var a=r?D2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(D2.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function CL(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var DL=Y5(),Lfe=DL.FORMAT_LINK,Dfe=DL.DATE_FORMAT_LINK;function Ffe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?T4:FL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function T4(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Lfe+"."].join(" ")}function FL(e,r){return T4(e,r)+[" And for dates see: "+Dfe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}RL.exports={axisHoverFormat:Ffe,descriptionOnlyNumbers:T4,descriptionWithDates:FL}});var Vl=N((YCe,JL)=>{"use strict";var qL=Ui(),Ed=Mf(),ZL=Nc().dash,S4=Gn().extendFlat,PL=Ja().templatedArray,VCe=vd().templateFormatStringDescription,NL=um().descriptionWithDates,Rfe=ei().ONEDAY,Ef=ui(),qfe=Ef.HOUR_PATTERN,Pfe=Ef.WEEKDAY_PATTERN,M4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Nfe=S4({},M4,{values:M4.values.slice().concat(["sync"])});function IL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var OL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},BL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},zL={valType:"data_array",editType:"ticks"},GL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function UL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function HL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var VL={valType:"color",dflt:Ed.defaultLine,editType:"ticks"},YL={valType:"color",dflt:Ed.lightLine,editType:"ticks"};function WL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var jL=S4({},ZL,{editType:"ticks"}),XL={valType:"boolean",editType:"ticks"};JL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Ed.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:qL({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ef.idRegex.x.toString(),Ef.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ef.idRegex.x.toString(),Ef.idRegex.y.toString()],editType:"calc"},rangebreaks:PL("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Pfe,qfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Rfe},editType:"calc"}),tickmode:Nfe,nticks:IL(),tick0:OL,dtick:BL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:zL,ticktext:{valType:"data_array",editType:"ticks"},ticks:GL,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:UL(),tickwidth:HL(),tickcolor:VL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:S4({},ZL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:qL({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:NL("tick label")},tickformatstops:PL("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:NL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Ed.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:XL,gridcolor:YL,gridwidth:WL(),griddash:jL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Ed.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Ed.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ef.idRegex.x.toString(),Ef.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ef.idRegex.x.toString(),Ef.idRegex.y.toString()],editType:"plot"},minor:{tickmode:M4,nticks:IL("minor"),tick0:OL,dtick:BL,tickvals:zL,ticks:GL,ticklen:UL("minor"),tickwidth:HL("minor"),tickcolor:VL,gridcolor:YL,gridwidth:WL("minor"),griddash:jL,showgrid:XL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var R2=N((WCe,KL)=>{"use strict";var vn=Vl(),$L=Ui(),QL=Gn().extendFlat,Ife=Rs().overrideAll;KL.exports=Ife({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:vn.linecolor,outlinewidth:vn.linewidth,bordercolor:vn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:vn.minor.tickmode,nticks:vn.nticks,tick0:vn.tick0,dtick:vn.dtick,tickvals:vn.tickvals,ticktext:vn.ticktext,ticks:QL({},vn.ticks,{dflt:""}),ticklabeloverflow:QL({},vn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:vn.ticklen,tickwidth:vn.tickwidth,tickcolor:vn.tickcolor,ticklabelstep:vn.ticklabelstep,showticklabels:vn.showticklabels,labelalias:vn.labelalias,tickfont:$L({}),tickangle:vn.tickangle,tickformat:vn.tickformat,tickformatstops:vn.tickformatstops,tickprefix:vn.tickprefix,showtickprefix:vn.showtickprefix,ticksuffix:vn.ticksuffix,showticksuffix:vn.showticksuffix,separatethousands:vn.separatethousands,exponentformat:vn.exponentformat,minexponent:vn.minexponent,showexponent:vn.showexponent,title:{text:{valType:"string"},font:$L({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Nh=N((XCe,rD)=>{"use strict";var Ofe=R2(),Bfe=sd().counter,zfe=u2(),eD=Ah().scales,jCe=zfe(eD);function q2(e){return"`"+e+"`"}rD.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?eD[t.colorscaleDflt]:null,s=t.editTypeOverride||"",f=r?r+".":"",u,c;"colorAttr"in t?(u=t.colorAttr,c=t.colorAttr):(u={z:"z",c:"color"}[a],c="in "+q2(f+u));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=q2(f+d),T=q2(f+p),_=q2(f+y),x=T+" and "+_,A={};A[p]=A[y]=void 0;var E={};E[d]=!1;var M={};return u==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},M[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},M[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Ofe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Bfe("coloraxis"),dflt:null,editType:"calc"}),M}});var k4=N((ZCe,tD)=>{"use strict";var Gfe=Gn().extendFlat,Ufe=Nh(),E4=Ah().scales;tD.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:E4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:E4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:E4.RdBu,editType:"calc"}},coloraxis:Gfe({_isSubplotObj:!0,editType:"calc"},Ufe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var C4=N((JCe,aD)=>{"use strict";var Hfe=Ur();aD.exports=function(r){return Hfe.isPlainObject(r.colorbar)}});var F4=N(D4=>{"use strict";var L4=xa(),nD=Ur(),iD=ei(),Vfe=iD.ONEDAY,Yfe=iD.ONEWEEK;D4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Vfe:1;if(!e)return i;if(L4(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=L4(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};D4.tick0=function(e,r,t,a){if(r==="date")return nD.cleanDate(e,nD.dateTick0(t,a%Yfe===0?1:0));if(!(a==="D1"||a==="D2"))return L4(e)?Number(e):0}});var R4=N((QCe,lD)=>{"use strict";var oD=F4(),Wfe=Ur().isArrayOrTypedArray,jfe=Po().isTypedArraySpec,Xfe=Po().decodeTypedArraySpec;lD.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,f=o?"minor.":"";function u(T){var _=l[T];return jfe(_)&&(_=Xfe(_)),_!==void 0?_:(s._template||{})[T]}var c=u("tick0"),v=u("dtick"),d=u("tickvals"),p=Wfe(d)?"array":v?"linear":"auto",y=a(f+"tickmode",p);if(y==="auto"||y==="sync")a(f+"nticks");else if(y==="linear"){var m=s.dtick=oD.dtick(v,n);s.tick0=oD.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var b=a(f+"tickvals");b===void 0?s.tickmode="auto":o||a("ticktext")}}});var P4=N((KCe,fD)=>{"use strict";var q4=Ur(),sD=Vl();fD.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?sD.minor:sD,f=i?"minor.":"",u=q4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=q4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=q4.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(f+"ticks",!i&&n.outerTicks||u||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var N4=N((eLe,uD)=>{"use strict";uD.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var bl=N((rLe,cD)=>{"use strict";var P2=Ur(),Zfe=Ja();cD.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=P2.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],f=Zfe.arrayTemplater(t,n,i),u,c;for(u=0;u{"use strict";var I4=Ur(),Jfe=ca().contrast,vD=Vl(),$fe=N4(),Qfe=bl();hD.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");I4.isPlainObject(o)||delete t.labelalias;var l=$fe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var f=i.font||{},u=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Jfe(i.bgColor):u&&u!==vD.color.dflt?u:f.color;if(I4.coerceFont(a,"tickfont",f,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Qfe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Kfe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Kfe(e,r){function t(n,i){return I4.coerce(e,r,vD.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var B4=N((aLe,dD)=>{"use strict";var eue=N4();dD.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=eue(r),s=a("tickprefix");s&&a("showtickprefix",l);var f=a("ticksuffix",o);f&&a("showticksuffix",l)}});var z4=N((nLe,pD)=>{"use strict";var jc=Ur(),rue=Ja(),tue=R4(),aue=P4(),nue=O4(),iue=B4(),oue=R2();pD.exports=function(r,t,a){var n=rue.newContainer(t,"colorbar"),i=r.colorbar||{};function o(O,R){return jc.coerce(i,n,oue,O,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,f=a.height-l.t-l.b,u=o("orientation"),c=u==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:f):30);var d=o("lenmode");o("len",d==="fraction"?1:c?f:s);var p=o("yref"),y=o("xref"),m=p==="paper",b=y==="paper",T,_,x,A="left";c?(x="middle",A=b?"left":"right",T=b?1.02:1,_=.5):(x=m?"bottom":"top",A="center",T=.5,_=m?1.02:1),jc.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),jc.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",A),o("xpad"),o("yanchor",x),o("ypad"),jc.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var E=jc.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":"hide past div"),tue(i,n,o,"linear");var M=a.font,k={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};E.indexOf("inside")!==-1&&(k.bgColor="black"),iue(i,n,o,"linear",k),nue(i,n,o,"linear",k),aue(i,n,o,"linear",k),o("title.text",a._dfltTitle.colorbar);var F=n.showticklabels?n.tickfont:M,P=jc.extendFlat({},M,{family:F.family,size:jc.bigFont(F.size)});jc.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var kd=N((iLe,gD)=>{"use strict";var mD=xa(),U4=Ur(),lue=C4(),sue=z4(),yD=Ah().isValid,fue=Bt().traceIs;function G4(e,r){var t=r.slice(0,r.length-1);return r?U4.nestedProperty(e,t).get()||{}:e}gD.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,f=G4(r,o),u=G4(t,o),c=G4(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var y=fue(t,"contour")&&U4.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,U4.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[v]];return}}var b=f[l+"min"],T=f[l+"max"],_=mD(b)&&mD(T)&&b{"use strict";var bD=Ur(),uue=Ja(),xD=k4(),cue=kd();_D.exports=function(r,t){function a(c,v){return bD.coerce(r,t,xD,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return bD.coerce(i,o,xD.coloraxis,c,v)}for(var s in n){var f=n[s];if(f[0])i=r[s]||{},o=uue.newContainer(t,s,"coloraxis"),o._name=s,cue(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var u=0;u{"use strict";var vue=Ur(),hue=Is().hasColorscale,due=Is().extractOpts;AD.exports=function(r,t){function a(u,c){var v=u["_"+c];v!==void 0&&(u[c]=v)}function n(u,c){var v=c.container?vue.nestedProperty(u,c.container).get():u;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=due(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var MD=xa(),H4=Ur(),pue=Is().extractOpts;SD.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?H4.nestedProperty(t,o).get():t,s=pue(l),f=s.auto!==!1,u=s.min,c=s.max,v=s.mid,d=function(){return H4.aggNums(Math.min,null,i)},p=function(){return H4.aggNums(Math.max,null,i)};if(u===void 0?u=d():f&&(l._colorAx&&MD(u)?u=Math.min(u,d()):u=d()),c===void 0?c=p():f&&(l._colorAx&&MD(c)?c=Math.max(c,p()):c=p()),f&&v!==void 0&&(c-v>v-u?u=v-(c-v):c-v=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var Ld=N((fLe,ED)=>{"use strict";var N2=Ah(),Cd=Is();ED.exports={moduleType:"component",name:"colorscale",attributes:Nh(),layoutAttributes:k4(),supplyLayoutDefaults:wD(),handleDefaults:kd(),crossTraceDefaults:TD(),calc:V4(),scales:N2.scales,defaultScale:N2.defaultScale,getScale:N2.get,isValidScale:N2.isValid,hasColorscale:Cd.hasColorscale,extractOpts:Cd.extractOpts,extractScale:Cd.extractScale,flipScale:Cd.flipScale,makeColorScaleFunc:Cd.makeColorScaleFunc,makeColorScaleFuncFromTrace:Cd.makeColorScaleFuncFromTrace}});var Ni=N((uLe,CD)=>{"use strict";var kD=Ur(),mue=Po().isTypedArraySpec;CD.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return kD.isPlainObject(r)&&(kD.isArrayOrTypedArray(r.size)||mue(r.size))}}});var Y4=N((cLe,LD)=>{"use strict";var yue=xa();LD.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return yue(s)&&s>0?Math.max(s,i):0}}});var Nu=N(io=>{"use strict";var I2=Ur();io.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};io.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{RD.exports=wue;var W4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},_ue=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function wue(e){var r=[];return e.replace(_ue,function(t,a,n){var i=a.toLowerCase();for(n=Tue(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==W4[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var Mue=cm(),lt=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Xt="M0,0Z",qD=Math.sqrt(2),Xc=Math.sqrt(3),j4=Math.PI,X4=Math.cos,Z4=Math.sin;BD.exports={circle:{n:0,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Jt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.4,2),n=lt(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.8/qD,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Jt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/Xc,2),n=lt(e/2,2),i=lt(e,2);return Jt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/Xc,2),n=lt(e/2,2),i=lt(e,2);return Jt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/Xc,2),n=lt(e/2,2),i=lt(e,2);return Jt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/Xc,2),n=lt(e/2,2),i=lt(e,2);return Jt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return Jt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return Jt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return Jt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.951,2),n=lt(e*.588,2),i=lt(-e,2),o=lt(e*-.309,2),l=lt(e*.809,2);return Jt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e/2,2),i=lt(e*Xc/2,2);return Jt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e/2,2),i=lt(e*Xc/2,2);return Jt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.924,2),n=lt(e*.383,2);return Jt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Zt(r))return Xt;var a=e*1.4,n=lt(a*.225,2),i=lt(a*.951,2),o=lt(a*.363,2),l=lt(a*.588,2),s=lt(-a,2),f=lt(a*-.309,2),u=lt(a*.118,2),c=lt(a*.809,2),v=lt(a*.382,2);return Jt(r,t,"M"+n+","+f+"H"+i+"L"+o+","+u+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+u+"L-"+i+","+f+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.66,2),n=lt(e*.38,2),i=lt(e*.76,2);return Jt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*Xc*.8,2),n=lt(e*.8,2),i=lt(e*1.6,2),o=lt(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*Xc*.8,2),n=lt(e*.8,2),i=lt(e*1.6,2),o=lt(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.1,2),n=lt(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2),n=lt(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.7,2),n=lt(e*1.4,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2),n=lt(e*.7,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e/qD,2);return Jt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.3,2),n=lt(e*.65,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*.85,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e/2,2),n=lt(e,2);return Jt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return Jt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return Jt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return Jt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return Jt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2);return Jt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return Jt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return Jt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Zt(r))return Xt;var a=j4/2.5,n=2*e*X4(a),i=2*e*Z4(a);return Jt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Zt(r))return Xt;var a=j4/4,n=2*e*X4(a),i=2*e*Z4(a);return Jt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Zt(e){return e===null}var PD,ND,ID,OD;function Jt(e,r,t){if((!e||e%360===0)&&!r)return t;if(ID===e&&OD===r&&PD===t)return ND;ID=e,OD=r,PD=t;function a(m,b){var T=X4(m),_=Z4(m),x=b[0],A=b[1]+(r||0);return[x*T-A*_,x*_+A*T]}for(var n=e/180*j4,i=0,o=0,l=Mue(t),s="",f=0;f{"use strict";var _i=ha(),Ua=Ur(),Sue=Ua.numberFormat,zh=xa(),rw=Ls(),B2=Bt(),Hi=ca(),Eue=Ld(),hm=Ua.strTranslate,z2=no(),kue=Wc(),Cue=ao(),Lue=Cue.LINE_SPACING,JD=ld().DESELECTDIM,Due=Ni(),Fue=Y4(),Rue=Nu().appendArrayPointValue,gt=oF.exports={};gt.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,f=r.lineposition,u=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Hi.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),u&&e.style("text-transform",J4(Pue(u))),s&&e.style("text-shadow",s==="auto"?z2.makeTextShadow(Hi.contrast(i)):J4(s)),f&&e.style("text-decoration-line",J4(Nue(f)))};function J4(e){return e==="none"?void 0:e}var que={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Pue(e){return que[e]}function Nue(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}gt.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};gt.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};gt.setRect=function(e,r,t,a,n){e.call(gt.setPosition,r,t).call(gt.setSize,a,n)};gt.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(zh(n)&&zh(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",hm(n,i));else return!1;return!0};gt.translatePoints=function(e,r,t){e.each(function(a){var n=_i.select(this);gt.translatePoint(a,n,r,t)})};gt.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};gt.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=B2.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(f){gt.hideOutsideRangePoint(f,_i.select(this),t,a,o,l)})})}};gt.crispRound=function(e,r,t){return!r||!zh(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};gt.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Hi.stroke(r,a||i.color),gt.dashLine(r,l,o)};gt.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";_i.select(this).call(Hi.stroke,t||i.color).call(gt.dashLine,l,o)})};gt.dashLine=function(e,r,t){t=+t||0,r=gt.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};gt.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function $D(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=gt.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),f=o(n.fgcolor,0,null),u=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;gt.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,f,u)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(eF,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(gt.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Hi.fill,r.fillcolor)}gt.singleFillStyle=function(e,r){var t=_i.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};$D(e,n,r,!1)};gt.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=_i.select(this);a[0].trace&&$D(n,a[0].trace,r,t)})};var GD=zD();gt.symbolNames=[];gt.symbolFuncs=[];gt.symbolBackOffs=[];gt.symbolNeedLines={};gt.symbolNoDot={};gt.symbolNoFill={};gt.symbolList=[];Object.keys(GD).forEach(function(e){var r=GD[e],t=r.n;gt.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),gt.symbolNames[t]=e,gt.symbolFuncs[t]=r.f,gt.symbolBackOffs[t]=r.backoff||0,r.needLine&&(gt.symbolNeedLines[t]=!0),r.noDot?gt.symbolNoDot[t]=!0:gt.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(gt.symbolNoFill[t]=!0)});var Iue=gt.symbolNames.length,Oue="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";gt.symbolNumber=function(e){if(zh(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=gt.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Iue||e>=400?0:Math.floor(Math.max(e,0))};function QD(e,r,t,a){var n=e%100;return gt.symbolFuncs[n](r,t,a)+(e>=200?Oue:"")}var UD=Sue("~f"),KD={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};gt.gradient=function(e,r,t,a,n,i){var o=KD[a];return eF(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function eF(e,r,t,a,n,i,o,l,s,f){var u=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:f}:a==="radial"&&(c={node:"radialGradient",reversed:f});for(var v=new Array(u),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var f=gt.symbolNumber(e.mx||o.symbol)||0;e.om=f%200>=100;var u=nw(e,t),c=aw(e,t);r.attr("d",QD(f,s,u,c))}var v=!1,d,p,y;if(e.so)y=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):Ua.isArrayOrTypedArray(l.color)?p=Hi.defaultLine:p=l.color,Ua.isArrayOrTypedArray(o.color)&&(d=Hi.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&>.dashLine(r,b,y),e.om)r.call(Hi.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var T=o.gradient,_=e.mgt;_?v=!0:_=T&&T.type,Ua.isArrayOrTypedArray(_)&&(_=_[0],KD[_]||(_=0));var x=o.pattern,A=gt.getPatternAttr,E=x&&(A(x.shape,e.i,"")||A(x.path,e.i,""));if(_&&_!=="none"){var M=e.mgc;M?v=!0:M=T.color;var k=t.uid;v&&(k+="-"+e.i),gt.gradient(r,n,k,_,[[0,M],[1,d]],"fill")}else if(E){var F=!1,P=x.fgcolor;!P&&i&&i.color&&(P=i.color,F=!0);var O=A(P,e.i,i&&i.color||null),R=A(x.bgcolor,e.i,null),H=x.fgopacity,W=A(x.size,e.i,8),ee=A(x.solidity,e.i,.3);F=F||e.mcc||Ua.isArrayOrTypedArray(x.shape)||Ua.isArrayOrTypedArray(x.path)||Ua.isArrayOrTypedArray(x.bgcolor)||Ua.isArrayOrTypedArray(x.fgcolor)||Ua.isArrayOrTypedArray(x.size)||Ua.isArrayOrTypedArray(x.solidity);var te=t.uid;F&&(te+="-"+e.i),gt.pattern(r,"point",n,te,E,W,ee,e.mcc,x.fillmode,R,O,H)}else Ua.isArrayOrTypedArray(d)?Hi.fill(r,d[e.i]):Hi.fill(r,d);y&&Hi.stroke(r,p)}};gt.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=gt.tryColorscale(t,""),r.lineScale=gt.tryColorscale(t,"line"),B2.traceIs(e,"symbols")&&(r.ms2mrc=Due.isBubble(e)?Fue(e):function(){return(t.size||6)/2}),e.selectedpoints&&Ua.extendFlat(r,gt.makeSelectedPointStyleFns(e)),r};gt.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,f=o.opacity,u=s!==void 0,c=f!==void 0;(Ua.isArrayOrTypedArray(l)||u||c)&&(r.selectedOpacityFn=function(x){var A=x.mo===void 0?n.opacity:x.mo;return x.selected?u?s:A:c?f:JD*A});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var A=x.mcc||v;return x.selected?d||A:p||A});var y=n.size,m=i.size,b=o.size,T=m!==void 0,_=b!==void 0;return B2.traceIs(e,"symbols")&&(T||_)&&(r.selectedSizeFn=function(x){var A=x.mrc||y/2;return x.selected?T?m/2:A:_?b/2:A}),r};gt.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,f=o.color;return r.selectedTextColorFn=function(u){var c=u.tc||l;return u.selected?s||c:f||(s?c:Hi.addOpacity(c,JD))},r};gt.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=gt.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Hi.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",QD(gt.symbolNumber(l),s,nw(o,r),aw(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=_i.select(this),l=0;l0?t:0}gt.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=gt.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=_i.select(this),f=i?Ua.extractOption(l,r,"txt","texttemplate"):Ua.extractOption(l,r,"tx","text");if(!f&&f!==0){s.remove();return}if(i){var u=r._module.formatLabels,c=u?u(l,r,o):{},v={};Rue(v,r,l.i),f=Ua.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:f})}var d=l.tp||r.textposition,p=tF(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(gt.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(f).call(z2.convertToTspans,t).call(rF,d,p,l.mrc)})}};gt.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=gt.makeSelectedTextStyleFns(r);e.each(function(a){var n=_i.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=tF(a,r);Hi.fill(n,i);var s=B2.traceIs(r,"bar-like");rF(n,o,l,a.mrc2||a.mrc,s)})}};var HD=.5;gt.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=u&&x<=s)&&(A<=c&&A>=f||A>=c&&A<=f)&&(e=[x,A])}return e}gt.applyBackoff=iF;gt.makeTester=function(){var e=Ua.ensureSingleById(_i.select("body"),"svg","js-plotly-tester",function(t){t.attr(kue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Ua.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});gt.tester=e,gt.testref=r};gt.savedBBoxes={};var Q4=0,Gue=1e4;gt.bBox=function(e,r,t){t||(t=VD(e));var a;if(t){if(a=gt.savedBBoxes[t],a)return Ua.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=VD(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=gt.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=gt.savedBBoxes[t],a)return Ua.extendFlat({},a)}}var f,u;r?f=e:(u=gt.tester.node(),f=e.cloneNode(!0),u.appendChild(f)),_i.select(f).attr("transform",null).call(z2.positionText,0,0);var c=f.getBoundingClientRect(),v=gt.testref.node().getBoundingClientRect();r||u.removeChild(f);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Q4>=Gue&&(gt.savedBBoxes={},Q4=0),t&&(gt.savedBBoxes[t]=d),Q4++,Ua.extendFlat({},d)};function VD(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}gt.setClipUrl=function(e,r,t){e.attr("clip-path",tw(r,t))};function tw(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}gt.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};gt.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=hm(r,t),o=o.trim(),e[i]("transform",o),o};gt.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};gt.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Uue=/\s*sc.*/;gt.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Uue,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Hue=/translate\([^)]*\)\s*$/;gt.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=_i.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Hue);r===1&&t===1?a=[]:a=[hm(o,l),"scale("+r+","+t+")",hm(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function aw(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}gt.getMarkerStandoff=aw;var vm=Math.atan2,Ih=Math.cos,Fd=Math.sin;function YD(e,r){var t=r[0],a=r[1];return[t*Ih(e)-a*Fd(e),t*Fd(e)+a*Ih(e)]}var WD,jD,XD,ZD,K4,ew;function nw(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||Ua.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var f=e.lonlat[0],u=e.lonlat[1],c=r._geo.project([f,u+1e-5]),v=r._geo.project([f+1e-5,u]),d=vm(v[1]-n,v[0]-a),p=vm(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=f/180*Math.PI,b=u/180*Math.PI,T=WD/180*Math.PI,_=jD/180*Math.PI,x=T-m,A=Ih(_)*Fd(x),E=Fd(_)*Ih(b)-Ih(_)*Fd(b)*Ih(x);y=-vm(A,E)-Math.PI,WD=f,jD=u}var M=YD(d,[Ih(y),0]),k=YD(p,[Fd(y),0]);t=vm(M[1]+k[1],M[0]+k[0])/Math.PI*180,i==="previous"&&!(ew===r.uid&&e.i===K4+1)&&(t=null)}if(i==="previous"&&!r._geo)if(ew===r.uid&&e.i===K4+1&&zh(a)&&zh(n)){var F=a-XD,P=n-ZD,O=r.line&&r.line.shape||"",R=O.slice(O.length-1);R==="h"&&(P=0),R==="v"&&(F=0),t+=vm(P,F)/Math.PI*180+90}else t=null}return XD=a,ZD=n,K4=e.i,ew=r.uid,t}gt.getMarkerAngle=nw});var dm=N((mLe,uF)=>{"use strict";var Rd=ha(),Vue=xa(),Yue=xi(),iw=Bt(),Gh=Ur(),lF=Gh.strTranslate,G2=Va(),U2=ca(),qd=no(),sF=ld(),Wue=ao().OPPOSITE_SIDE,fF=/ [XY][0-9]* /,ow=1.6,lw=1.6;function jue(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},f=t.attributes,u=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},b=m.family,T=m.size,_=m.color,x=m.weight,A=m.style,E=m.variant,M=m.textcase,k=m.lineposition,F=m.shadow,P=t.subtitlePropName,O=!!P,R=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},W=(H.text||"").trim(),ee=!1,te=1,Q=H.font,J=Q.family,j=Q.size,se=Q.color,le=Q.weight,Ee=Q.style,Ge=Q.variant,Le=Q.textcase,Ve=Q.lineposition,we=Q.shadow,ur;i==="title.text"?ur="titleText":i.indexOf("axis")!==-1?ur="axisTitleText":i.indexOf("colorbar")!==-1&&(ur="colorbarTitleText");var Oe=e._context.edits[ur];function Ue(Hr,at){return Hr===void 0||at===void 0?!1:Hr.replace(fF," % ")===at.replace(fF," % ")}p===""?v=0:Ue(p,o)&&(Oe||(p=""),v=.2,y=!0),O&&(W===""?te=0:Ue(W,R)&&(Oe||(W=""),te=.2,ee=!0)),t._meta?p=Gh.templateString(p,t._meta):a._meta&&(p=Gh.templateString(p,a._meta));var xr=p||W||Oe,Ye;c||(c=Gh.ensureSingle(a._infolayer,"g","g-"+r),Ye=a._hColorbarMoveTitle);var re=c.selectAll("text."+r).data(xr?[0]:[]);re.enter().append("text"),re.text(p).attr("class",r),re.exit().remove();var de=null,ne=r+"-subtitle",Fe=W||Oe;if(O&&(de=c.selectAll("text."+ne).data(Fe?[0]:[]),de.enter().append("text"),de.text(W).attr("class",ne),de.exit().remove()),!xr)return c;function $e(Hr,at){Gh.syncOrAsync([Ke,Cr],{title:Hr,subtitle:at})}function Ke(Hr){var at=Hr.title,wr=Hr.subtitle,Vr;!u&&Ye&&(u={}),u?(Vr="",u.rotate&&(Vr+="rotate("+[u.rotate,f.x,f.y]+")"),(u.offset||Ye)&&(Vr+=lF(0,(u.offset||0)-(Ye||0)))):Vr=null,at.attr("transform",Vr);function rt(tr){if(tr){var sr=Rd.select(tr.node().parentNode).select("."+ne);if(!sr.empty()){var zr=tr.node().getBBox();if(zr.height){var nt=zr.y+zr.height+ow*j;sr.attr("y",nt)}}}}if(at.style("opacity",v*U2.opacity(_)).call(G2.font,{color:U2.rgb(_),size:Rd.round(T,2),family:b,weight:x,style:A,variant:E,textcase:M,shadow:F,lineposition:k}).attr(f).call(qd.convertToTspans,e,rt),wr&&!wr.empty()){var Pe=c.select("."+r+"-math-group"),or=at.node().getBBox(),st=Pe.node()?Pe.node().getBBox():void 0,kt=st?st.y+st.height+ow*j:or.y+or.height+lw*j,Tr=Gh.extendFlat({},f,{y:kt});wr.attr("transform",Vr),wr.style("opacity",te*U2.opacity(se)).call(G2.font,{color:U2.rgb(se),size:Rd.round(j,2),family:J,weight:le,style:Ee,variant:Ge,textcase:Le,shadow:we,lineposition:Ve}).attr(Tr).call(qd.convertToTspans,e)}return Yue.previousPromises(e)}function Cr(Hr){var at=Hr.title,wr=Rd.select(at.node().parentNode);if(s&&s.selection&&s.side&&p){wr.attr("transform",null);var Vr=Wue[s.side],rt=s.side==="left"||s.side==="top"?-1:1,Pe=Vue(s.pad)?s.pad:2,or=G2.bBox(wr.node()),st={t:0,b:0,l:0,r:0},kt=e._fullLayout._reservedMargin;for(var Tr in kt)for(var tr in kt[Tr]){var sr=kt[Tr][tr];st[tr]=Math.max(st[tr],sr)}var zr={left:st.l,top:st.t,right:a.width-st.r,bottom:a.height-st.b},nt=s.maxShift||rt*(zr[s.side]-or[s.side]),Yr=0;if(nt<0)Yr=nt;else{var Wr=s.offsetLeft||0,xt=s.offsetTop||0;or.left-=Wr,or.right-=Wr,or.top-=xt,or.bottom-=xt,s.selection.each(function(){var ot=G2.bBox(this);Gh.bBoxIntersect(or,ot,Pe)&&(Yr=Math.max(Yr,rt*(ot[s.side]-or[Vr])+Pe))}),Yr=Math.min(nt,Yr),n._titleScoot=Math.abs(Yr)}if(Yr>0||nt<0){var jr={left:[-Yr,0],right:[Yr,0],top:[0,-Yr],bottom:[0,Yr]}[s.side];wr.attr("transform",lF(jr[0],jr[1]))}}}re.call($e,de);function Ar(Hr,at){Hr.text(at).on("mouseover.opacity",function(){Rd.select(this).transition().duration(sF.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Rd.select(this).transition().duration(sF.HIDE_PLACEHOLDER).style("opacity",0)})}if(Oe&&(p?re.on(".opacity",null):(Ar(re,o),y=!0),re.call(qd.makeEditable,{gd:e}).on("edit",function(Hr){l!==void 0?iw.call("_guiRestyle",e,i,Hr,l):iw.call("_guiRelayout",e,i,Hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(Hr){this.text(Hr||" ").call(qd.positionText,f.x,f.y)}),O)){if(O&&!p){var gr=re.node().getBBox(),et=gr.y+gr.height+lw*j;de.attr("y",et)}W?de.on(".opacity",null):(Ar(de,R),ee=!0),de.call(qd.makeEditable,{gd:e}).on("edit",function(Hr){iw.call("_guiRelayout",e,"title.subtitle.text",Hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(Hr){this.text(Hr||" ").call(qd.positionText,de.attr("x"),de.attr("y"))})}return re.classed("js-placeholder",y),de&&!de.empty()&&de.classed("js-placeholder",ee),c}uF.exports={draw:jue,SUBTITLE_PADDING_EM:lw,SUBTITLE_PADDING_MATHJAX_EM:ow}});var J2=N((yLe,pF)=>{"use strict";var Xue=ha(),Zue=ad().utcFormat,$a=Ur(),Jue=$a.numberFormat,kf=xa(),Zc=$a.cleanNumber,$ue=$a.ms2DateTime,cF=$a.dateTime2ms,Cf=$a.ensureNumber,vF=$a.isArrayOrTypedArray,Jc=ei(),H2=Jc.FP_SAFE,Os=Jc.BADNUM,Que=Jc.LOG_CLIP,Kue=Jc.ONEWEEK,V2=Jc.ONEDAY,Y2=Jc.ONEHOUR,hF=Jc.ONEMIN,dF=Jc.ONESEC,W2=Sn(),Z2=ui(),j2=Z2.HOUR_PATTERN,X2=Z2.WEEKDAY_PATTERN;function pm(e){return Math.pow(10,e)}function sw(e){return e!=null}pF.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,A){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&A&&r.range&&r.range.length===2){var E=r.range[0],M=r.range[1];return .5*(E+M-2*Que*Math.abs(E-M))}else return Os}function o(x,A,E,M){if((M||{}).msUTC&&kf(x))return+x;var k=cF(x,E||r.calendar);if(k===Os)if(kf(x)){x=+x;var F=Math.floor($a.mod(x+.05,1)*10),P=Math.round(x-F/10);k=cF(new Date(P))+F/10}else return Os;return k}function l(x,A,E){return $ue(x,A,E||r.calendar)}function s(x){return r._categories[Math.round(x)]}function f(x){if(sw(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var A=r._categories.length-1;return r._categoriesMap[x]=A,A}return Os}function u(x,A){for(var E=new Array(A),M=0;Mr.range[1]&&(E=!E);for(var M=E?-1:1,k=M*x,F=0,P=0;PR)F=P+1;else{F=k<(O+R)/2?P:P+1;break}}var H=r._B[F]||0;return isFinite(H)?p(x,r._m2,H):0},b=function(x){var A=r._rangebreaks.length;if(!A)return y(x,r._m,r._b);for(var E=0,M=0;Mr._rangebreaks[M].pmax&&(E=M+1);return y(x,r._m2,r._B[E])}}r.c2l=r.type==="log"?i:Cf,r.l2c=r.type==="log"?pm:Cf,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,A){return m(i(x,A))}:m,r.p2c=r.type==="log"?function(x){return pm(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Zc,r.c2d=r.c2r=r.l2d=r.l2r=Cf,r.d2p=r.r2p=function(x){return r.l2p(Zc(x))},r.p2d=r.p2r=b,r.cleanPos=Cf):r.type==="log"?(r.d2r=r.d2l=function(x,A){return i(Zc(x),A)},r.r2d=r.r2c=function(x){return pm(Zc(x))},r.d2c=r.r2l=Zc,r.c2d=r.l2r=Cf,r.c2r=i,r.l2d=pm,r.d2p=function(x,A){return r.l2p(r.d2r(x,A))},r.p2d=function(x){return pm(b(x))},r.r2p=function(x){return r.l2p(Zc(x))},r.p2r=b,r.cleanPos=Cf):r.type==="date"?(r.d2r=r.r2d=$a.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,A,E){return r.l2p(o(x,0,E))},r.p2d=r.p2r=function(x,A,E){return l(b(x),A,E)},r.cleanPos=function(x){return $a.cleanDate(x,Os,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=f,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var A=d(x);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=Cf,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Cf(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var A=v(x);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Cf,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Cf(x)},r.setupMultiCategory=function(x){var A=r._traceIndices,E,M,k=r._matchGroup;if(k&&r._categories.length===0){for(var F in k)if(F!==a){var P=t[W2.id2name(F)];A=A.concat(P._traceIndices)}}var O=[[0,{}],[0,{}]],R=[];for(E=0;EP[1]&&(M[F?0:1]=E,k[1]=P[1]),k[0]>=k[1])if(A!==void 0){var O=P[0]+1;E!==void 0&&(O=Math.min(O,P[1])),M[F?0:1]=r.l2r(O)}else E!==void 0&&(M[F?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(x,A){r._cleanRange(x,A),r.limitRange(x)},r._cleanRange=function(x,A){A||(A={}),x||(x="range");var E=$a.nestedProperty(r,x).get(),M,k;if(r.type==="date"?k=$a.dfltRange(r.calendar):n==="y"?k=Z2.DFLTRANGEY:r._name==="realaxis"?k=[0,1]:k=A.dfltRange||Z2.DFLTRANGEX,k=k.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(k[0]=0),!E||E.length!==2){$a.nestedProperty(r,x).set(k);return}var F=E[0]===null,P=E[1]===null;for(r.type==="date"&&!r.autorange&&(E[0]=$a.cleanDate(E[0],Os,r.calendar),E[1]=$a.cleanDate(E[1],Os,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!$a.isDateTime(E[M],r.calendar)){r[x]=k;break}if(r.r2l(E[0])===r.r2l(E[1])){var O=$a.constrain(r.r2l(E[0]),$a.MIN_MS+1e3,$a.MAX_MS-1e3);E[0]=r.l2r(O-1e3),E[1]=r.l2r(O+1e3);break}}else{if(!kf(E[M]))if(!(F||P)&&kf(E[1-M]))E[M]=E[1-M]*(M?10:.1);else{r[x]=k;break}if(E[M]<-H2?E[M]=-H2:E[M]>H2&&(E[M]=H2),E[0]===E[1]){var R=Math.max(1,Math.abs(E[0]*1e-6));E[0]-=R,E[1]+=R}}},r.setScale=function(x){var A=t._size;if(r.overlaying){var E=W2.getFromId({_fullLayout:t},r.overlaying);r.domain=E.domain}var M=x&&r._r?"_r":"range",k=r.calendar;r.cleanRange(M);var F=r.r2l(r[M][0],k),P=r.r2l(r[M][1],k),O=n==="y";if(O?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(F-P),r._b=-r._m*P):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-F),r._b=-r._m*F),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,H;if(r._rangebreaks=r.locateBreaks(Math.min(F,P),Math.max(F,P)),r._rangebreaks.length){for(R=0;RP&&(W=!W),W&&r._rangebreaks.reverse();var ee=W?-1:1;for(r._m2=ee*r._length/(Math.abs(P-F)-r._lBreaks),r._B.push(-r._m2*(O?P:F)),R=0;Rk&&(k+=7,Fk&&(k+=24,F=M&&F=M&&x=we.min&&(Eewe.max&&(we.max=Ge),Le=!1)}Le&&P.push({min:Ee,max:Ge})}};for(E=0;E{"use strict";var mF=xa(),fw=Ur(),ece=ei().BADNUM,$2=fw.isArrayOrTypedArray,rce=fw.isDateTime,tce=fw.cleanNumber,yF=Math.round;bF.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if($2(n)&&!n.length)return"-";if(!i&&lce(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function gF(e){return Math.max(1,(e-1)/1e3)}function oce(e,r){for(var t=e.length,a=gF(t),n=0,i=0,o={},l=0;ln*2}function lce(e){return $2(e[0])&&$2(e[1])}});var Pd=N((bLe,EF)=>{"use strict";var sce=ha(),AF=xa(),$c=Ur(),Q2=ei().FP_SAFE,fce=Bt(),uce=Va(),TF=Sn(),cce=TF.getFromId,vce=TF.isLinked;EF.exports={applyAutorangeOptions:SF,getAutoRange:cw,makePadFn:vw,doAutoRange:dce,findExtremes:pce,concatExtremes:pw};function cw(e,r){var t,a,n=[],i=e._fullLayout,o=vw(i,r,0),l=vw(i,r,1),s=pw(e,r),f=s.min,u=s.max;if(f.length===0||u.length===0)return $c.simpleMap(r.range,r.r2l);var c=f[0].val,v=u[0].val;for(t=1;t0&&(P=_-o(E)-l(M),P>x?O/P>A&&(k=E,F=M,A=O/P):O/_>A&&(k={val:E.val,nopad:1},F={val:M.val,nopad:1},A=O/_));function R(Q,J){return Math.max(Q,l(J))}if(c===v){var H=c-1,W=c+1;if(b)if(c===0)n=[0,1];else{var ee=(c>0?u:f).reduce(R,0),te=c/(1-Math.min(.5,ee/_));n=c>0?[0,te]:[te,0]}else T?n=[Math.max(0,H),Math.max(1,W)]:n=[H,W]}else b?(k.val>=0&&(k={val:0,nopad:1}),F.val<=0&&(F={val:0,nopad:1})):T&&(k.val-A*o(k)<0&&(k={val:0,nopad:1}),F.val<=0&&(F={val:1,nopad:1})),A=(F.val-k.val-xF(r,E.val,M.val))/(_-o(k)-l(F)),n=[k.val-A*o(k),F.val+A*l(F)];return n=SF(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),$c.simpleMap(n,r.l2r||Number)}function xF(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),E=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),k=x(t.vpadminus||t.vpad);if(!f){if(T=1/0,_=-1/0,s)for(c=0;c0&&(T=v),v>_&&v-Q2&&(T=v),v>_&&v=O;c--)P(c);return{min:a,max:n,opts:t}}function hw(e,r,t,a){MF(e,r,t,a,mce)}function dw(e,r,t,a){MF(e,r,t,a,yce)}function MF(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(f.extrapad||!o)){l=!1;break}else n(r,f.val)&&f.pad<=t&&(o||!f.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&r===0;e.push({val:r,pad:u?0:t,extrapad:u?!1:o})}}function wF(e){return AF(e)&&Math.abs(e)=r}function gce(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&K2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&K2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function bce(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&K2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&K2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function K2(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=gce(t,r),a=bce(a,r),[t,a]}});var hn=N((_Le,JF)=>{"use strict";var Yl=ha(),ti=xa(),Nd=xi(),ym=Bt(),Ot=Ur(),Id=Ot.strTranslate,Uh=no(),xce=dm(),gm=ca(),xl=Va(),_ce=Vl(),kF=F4(),xLe=ui(),Vi=ei(),wce=Vi.ONEMAXYEAR,t3=Vi.ONEAVGYEAR,a3=Vi.ONEMINYEAR,Ace=Vi.ONEMAXQUARTER,bw=Vi.ONEAVGQUARTER,n3=Vi.ONEMINQUARTER,Tce=Vi.ONEMAXMONTH,Od=Vi.ONEAVGMONTH,i3=Vi.ONEMINMONTH,_l=Vi.ONEWEEK,yo=Vi.ONEDAY,Qc=yo/2,Df=Vi.ONEHOUR,bm=Vi.ONEMIN,o3=Vi.ONESEC,Mce=Vi.ONEMILLI,Sce=Vi.ONEMICROSEC,Hh=Vi.MINUS_SIGN,s3=Vi.BADNUM,xw={K:"zeroline"},_w={K:"gridline",L:"path"},ww={K:"minor-gridline",L:"path"},BF={K:"tick",L:"path"},CF={K:"tick",L:"text"},LF={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},f3=ao(),mm=f3.MID_SHIFT,Vh=f3.CAP_SHIFT,xm=f3.LINE_SPACING,Ece=f3.OPPOSITE_SIDE,l3=3,Qr=JF.exports={};Qr.setConvert=J2();var kce=uw(),Ff=Sn(),Cce=Ff.idSort,Lce=Ff.isLinked;Qr.id2name=Ff.id2name;Qr.name2id=Ff.name2id;Qr.cleanId=Ff.cleanId;Qr.list=Ff.list;Qr.listIds=Ff.listIds;Qr.getFromId=Ff.getFromId;Qr.getFromTrace=Ff.getFromTrace;var zF=Pd();Qr.getAutoRange=zF.getAutoRange;Qr.findExtremes=zF.findExtremes;var Dce=1e-4;function Sw(e){var r=(e[1]-e[0])*Dce;return[e[0]-r,e[1]+r]}Qr.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",f={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(u){return u+" domain"})),f[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},Ot.coerce(e,r,f,s)};Qr.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var s=t._fullLayout._subplots[l+"axis"];let f=a+"ref";var u=e[f];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(v=>v+" domain")),s=s.concat(i||[]),u.length>o?(Ot.warn("Array attribute "+f+" has more entries than expected, truncating to "+o),u=u.slice(0,o)):u.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qr.saveRangeInitial=function(e,r){for(var t=Qr.list(e,"",!0),a=!1,n=0;nc*.3||f(a)||f(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=Qr.tickIncrement(e,"M6","reverse")+yo*1.5:i.exactMonths>o?e=Qr.tickIncrement(e,"M1","reverse")+yo*15.5:e-=Qc;var s=Qr.tickIncrement(e,t);if(s<=a)return s}return e}Qr.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&ti(r._tmin),n;if(a){var i=Qr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Ot.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ot.simpleMap(n,r.l2r),e._isMinor=!0,Qr.prepTicks(e,t),a){var l=ti(r.dtick),s=ti(e.dtick),f=l?r.dtick:+r.dtick.substring(1),u=s?e.dtick:+e.dtick.substring(1);l&&s?mw(f,u)?f===2*_l&&u===2*yo&&(e.dtick=_l):f===2*_l&&u===3*yo?e.dtick=_l:f===_l&&!(r._input.minor||{}).nticks?e.dtick=yo:RF(f/u,2.5)?e.dtick=f/2:e.dtick=f:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":mw(f,u)?f>=12&&u===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?mw(f,u)||(e.dtick=RF(f/u,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0)};function mw(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function RF(e,r){return Math.abs(e/r-1)<.001}Qr.prepTicks=function(e,r){var t=Ot.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Ot.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Ot.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Qr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,f=Math.abs(s-l),u=t||f,c=0;u>=a3?f>=a3&&f<=wce?c=f:c=t3:t===bw&&u>=n3?f>=n3&&f<=Ace?c=f:c=bw:u>=i3?f>=i3&&f<=Tce?c=f:c=Od:t===_l&&u>=_l?c=_l:u>=yo?c=yo:t===Qc&&u>=Qc?c=Qc:t===Df&&u>=Df&&(c=Df);var v;c>=f&&(c=f,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;m_l&&(c=f)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Qr.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Ot.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],f=Ot.simpleMap(r.range,r.r2l,void 0,void 0,t),u=f[1]=(x?0:1);A--){var E=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=A?r:Ot.extendFlat({},r,x?r.minor:{minor:{}});if(E?Qr.prepMinorTicks(M,r,t):Qr.prepTicks(M,t),M.tickmode==="array"){A?(m=[],p=qF(r,!E)):(b=[],y=qF(r,!E));continue}if(M.tickmode==="sync"){m=[],p=Ice(r);continue}var k=Sw(f),F=k[0],P=k[1],O=ti(M.dtick),R=a==="log"&&!(O||M.dtick.charAt(0)==="L"),H=Qr.tickFirst(M,t);if(A){if(r._tmin=H,H=P:ee<=P;ee=Qr.tickIncrement(ee,J,u,n)){if(A&&te++,M.rangebreaks&&!u){if(ee=v)break}if(m.length>d||ee===W)break;W=ee;var j={value:ee};A?(R&&ee!==(ee|0)&&(j.simpleLabel=!0),i>1&&te%i&&(j.skipLabel=!0),m.push(j)):(j.minor=!0,b.push(j))}}if(!b||b.length<3)s=!1;else{var se=(b[2].value-b[1].value)*(l?-1:1);sve(se,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)T=m;else{var le=m.concat(b);o&&m.length&&(le=le.slice(1)),le=le.sort(function(Hr,at){return Hr.value-at.value}).filter(function(Hr,at,wr){return at===0||Hr.value!==wr[at-1].value});var Ee=le.map(function(Hr,at){return Hr.minor===void 0&&!Hr.skipLabel?at:null}).filter(function(Hr){return Hr!==null});Ee.forEach(function(Hr){s.map(function(at){var wr=Hr+at;wr>=0&&wr-1;Ye--){if(m[Ye].drop){m.splice(Ye,1);continue}m[Ye].value=gw(m[Ye].value,r);var Fe=r.c2p(m[Ye].value);(re?ne>Fe-de:nev||Vrv&&(wr.periodX=v),Vrn&&vt3)r/=t3,a=n(10),e.dtick="M"+12*Lf(r,a,e3);else if(i>Od)r/=Od,e.dtick="M"+Lf(r,1,PF);else if(i>yo){if(e.dtick=Lf(r,yo,e._hasDayOfWeekBreaks?[1,2,7,14]:Oce),!t){var o=Qr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ot.dateTick0(e.calendar,2):e.tick0=Ot.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Df?e.dtick=Lf(r,Df,PF):i>bm?e.dtick=Lf(r,bm,NF):i>o3?e.dtick=Lf(r,o3,NF):(a=n(10),e.dtick=Lf(r,a,e3))}else if(e.type==="log"){e.tick0=0;var s=Ot.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var f=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/f,a=n(10),e.dtick="L"+Lf(r,a,e3)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Lw(e)?(e.tick0=0,a=1,e.dtick=Lf(r,a,Bce)):(e.tick0=0,a=n(10),e.dtick=Lf(r,a,e3));if(e.dtick===0&&(e.dtick=1),!ti(e.dtick)&&typeof e.dtick!="string"){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}};function VF(e){var r=e.dtick;if(e._tickexponent=0,!ti(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=yo&&n<=10||r>=yo*15)e._tickround="d";else if(r>=bm&&n<=16||r>=Df)e._tickround="M";else if(r>=o3&&n<=19||r>=bm)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ti(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ti(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),f=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>f&&(Bd(e.exponentformat)&&e.exponentformat!=="SI extended"&&!Ew(s)||Bd(e.exponentformat)&&e.exponentformat==="SI extended"&&!kw(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Qr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ti(r))return Ot.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Ot.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?HF:UF,s=e+n*.01,f=Ot.roundUp(Ot.mod(s,1),l,t);return Math.floor(s)+Math.log(Yl.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Qr.tickFirst=function(e,r){var t=e.r2l||Number,a=Ot.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?m:null};if(i&&Ot.isArrayOrTypedArray(e.ticktext)){var c=Ot.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(f=0;f"+l;else{var f=wm(e),u=e._trueSide||e.side;(!f&&u==="top"||f&&u==="bottom")&&(o+="
")}r.text=o}function Gce(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=_m(Math.pow(10,o),e,n,a);else if(ti(i)||s==="D"&&(e.minorloglabels==="complete"||Ot.mod(o+.01,1)<.1)){var f;e.minorloglabels==="complete"&&!(Ot.mod(o+.01,1)<.1)&&(f=!0,r.fontSize*=.75);var u=Math.pow(10,o).toExponential(0),c=u.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||Bd(p)&&p!=="SI extended"&&Ew(v)||Bd(p)&&p==="SI extended"&&kw(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":Hh)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":Hh)+d:(r.text=_m(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ot.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Uce(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Hce(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Vce(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=_m(r.x,e,n,a)}function Yce(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Wce(i);if(o[1]>=100)r.text=_m(Ot.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=Hh+r.text)}}}else r.text=_m(r.x,e,n,a)}function Wce(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var WF=["f","p","n","\u03BC","m","","k","M","G","T"],jce=["q","r","y","z","a",...WF,"P","E","Z","Y","R","Q"],Bd=e=>["SI","SI extended","B"].includes(e);function Ew(e){return e>14||e<-15}function kw(e){return e>32||e<-30}function Xce(e,r){return Bd(r)?!!(r==="SI extended"&&kw(e)||r!=="SI extended"&&Ew(e)):!1}function _m(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Qr.getTickFormat(r),f=r.separatethousands;if(a){var u={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ti(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};VF(u),i=(Number(u._tickround)||0)+4,l=u._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Hh);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":Bd(o)&&(e+=o==="SI extended"?jce[l/3+10]:WF[l/3+5])}return n?Hh+e:e}Qr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Od}function a(s,f){var u=["L","D"];if(typeof s==typeof f){if(typeof s=="number")return s-f;var c=u.indexOf(s.charAt(0)),v=u.indexOf(f.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(f.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,f,u){var c=u||function(p){return p},v=f[0],d=f[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,f){var u=f[0]===null,c=f[1]===null,v=a(s,f[0])>=0,d=a(s,f[1])<=0;return(u||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(u,1).shift())}});var l={false:{left:0,right:0}};return Ot.syncOrAsync(n.map(function(s){return function(){if(s){var f=Qr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var u=Qr.drawOne(e,f,t);return f._shiftPusher&&Mw(f,f._fullDepth||0,l,!0),f._r=f.range.slice(),f._rl=Ot.simpleMap(f._r,f.r2l),u}}}))};Qr.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,f=r._id,u=f.charAt(0),c=Qr.counterLetter(f),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),Mw(r,p,a,!0),Mw(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=lve(r,a));var y=v[u+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,T=r._mainMirrorPosition,_=r._vals=Qr.calcTicks(r),x=[r.mirror,b,T].join("_");for(i=0;i<_.length;i++)_[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var A={};function E(gr){var et=f+(gr||"tick");return A[et]||(A[et]=Qce(r,et,b)),A[et]}if(r.visible){var M=Qr.makeTransTickFn(r),k=Qr.makeTransTickLabelFn(r),F,P,O=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var H=Zce(r,_);P=Qr.clipEnds(r,H),F=O?P:H}else P=Qr.clipEnds(r,_),F=O&&r.ticklabelmode!=="period"?P:_;var W=r._gridVals=P,ee=$ce(r,_);if(!s._hasOnlyLargeSploms){var te=r._subplotsWith,Q={};for(i=0;i0?wr.bottom-Hr:0,at))));var or=0,st=0;if(r._shiftPusher&&(or=Math.max(at,wr.height>0?gr==="l"?Hr-wr.left:wr.right-Hr:0),r.title.text!==s._dfltTitle[u]&&(st=(r._titleStandoff||0)+(r._titleScoot||0),gr==="l"&&(st+=OF(r))),r._fullDepth=Math.max(or,st)),r.automargin){Vr={x:0,y:0,r:0,l:0,t:0,b:0};var kt=[0,1],Tr=typeof r._shift=="number"?r._shift:0;if(u==="x"){if(gr==="b"?Vr[gr]=r._depth:(Vr[gr]=r._depth=Math.max(wr.width>0?Hr-wr.top:0,at),kt.reverse()),wr.width>0){var tr=wr.right-(r._offset+r._length);tr>0&&(Vr.xr=1,Vr.r=tr);var sr=r._offset-wr.left;sr>0&&(Vr.xl=0,Vr.l=sr)}}else if(gr==="l"?(r._depth=Math.max(wr.height>0?Hr-wr.left:0,at),Vr[gr]=r._depth-Tr):(r._depth=Math.max(wr.height>0?wr.right-Hr:0,at),Vr[gr]=r._depth+Tr,kt.reverse()),wr.height>0){var zr=wr.bottom-(r._offset+r._length);zr>0&&(Vr.yb=0,Vr.b=zr);var nt=r._offset-wr.top;nt>0&&(Vr.yt=1,Vr.t=nt)}Vr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[kt[0]],r.title.text!==s._dfltTitle[u]&&(Vr[gr]+=OF(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(rt={x:0,y:0,r:0,l:0,t:0,b:0},rt[et]=r.linewidth,r.mirror&&r.mirror!==!0&&(rt[et]+=at),r.mirror===!0||r.mirror==="ticks"?rt[c]=r._anchorAxis.domain[kt[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(rt[c]=[r._counterDomainMin,r._counterDomainMax][kt[1]]))}Ar&&(Pe=ym.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(IF(Vr,r.automargin),IF(rt,r.automargin)),Nd.autoMargin(e,Cw(r),Vr),Nd.autoMargin(e,XF(r),rt),Nd.autoMargin(e,ZF(r),Pe)}),Ot.syncOrAsync(Ke)}};function IF(e,r){if(e){var t=Object.keys(LF).reduce(function(a,n){return r.indexOf(n)!==-1&&LF[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Zce(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Ot.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var f=o?-1:1;t=t*f}if(a){var u=e.side,c=l&&(u==="top"||u==="left")||s&&(u==="bottom"||u==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Id(n+e._offset+e.l2p(Aw(v))+t,i+a)}:function(v){return Id(i+a,n+e._offset+e.l2p(Aw(v))+t)}};function Aw(e){return e.periodX!==void 0?e.periodX:e.x}function Kce(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),f=t!=="boundaries"&&(l||i||n||o);if(!f&&!s)return[0,0];var u=e.side,c=f?(e.tickwidth||0)/2:0,v=l3,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*Vh,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=l3),s&&u==="top"&&(v-=d*(1-Vh)),(i||n)&&(c=-c),(u==="bottom"||u==="right")&&(v=-v),[f?c:0,s?v:0]}Qr.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Qr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},o=i("top"),l=i("left"),s=i("right"),f=i("bottom"),u=n!=="boundaries"&&(f||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:u&&(y=0),v&&(d+=y,t)){var m=Ot.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},T,_,x,A,E=0,M=e.side,k=e._id.charAt(0),F=e.tickangle,P;if(k==="x")P=!c&&M==="bottom"||c&&M==="top",A=P?1:-1,c&&(A*=-1),T=p*A,_=r+d*A,x=P?1:-.2,Math.abs(F)===90&&(c?x+=mm:F===-90&&M==="bottom"?x=Vh:F===90&&M==="top"?x=mm:x=.5,E=mm/2*(F/90)),b.xFn=function(H){return H.dx+T+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*x},b.anchorFn=function(H,W){if(u){if(l)return"end";if(s)return"start"}return!ti(W)||W===0||W===180?"middle":W*A<0!==c?"end":"start"},b.heightFn=function(H,W,ee){return W<-60||W>60?-.5*ee:e.side==="top"!==c?-ee:0};else if(k==="y"){if(P=!c&&M==="left"||c&&M==="right",A=P?1:-1,c&&(A*=-1),T=d,_=p*A,x=0,!c&&Math.abs(F)===90&&(F===-90&&M==="left"||F===90&&M==="right"?x=Vh:x=.5),c){var O=ti(F)?+F:0;if(O!==0){var R=Ot.deg2rad(O);E=Math.abs(Math.sin(R))*Vh*A,x=0}}b.xFn=function(H){return H.dx+r-(T+H.fontSize*x)*A+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*mm},b.anchorFn=function(H,W){return ti(W)&&Math.abs(W)===90?"middle":P?"end":"start"},b.heightFn=function(H,W,ee){return e.side==="right"&&(W*=-1),W<-30?-ee:W<30?-.5*ee:0}}return b};function u3(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qr.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,u3);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return gm.stroke(Yl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return xl.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),c3(r,[BF]),i.attr("transform",t.transFn)};Qr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&Qr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",f=0;f=0;p--){var y=p?v:d;if(y){var m=y.selectAll("path."+a).data(p?o:i,u3);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return gm.stroke(Yl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return xl.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}c3(r,[_w,ww])}};Qr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Qr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Cce(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(gm.stroke,r.zerolinecolor||gm.defaultLine).style("stroke-width",xl.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),c3(r,[xw])};Qr.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(j){return j.text}),s=t.labelFns,f=t.secondary?0:r.tickangle,u=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],u3),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var se=Yl.select(this),le=e._promises.length;se.call(Uh.positionText,s.xFn(j),s.yFn(j)).call(xl.font,{family:j.font,size:j.fontSize,color:j.fontColor,weight:j.fontWeight,style:j.fontStyle,variant:j.fontVariant,textcase:j.fontTextcase,lineposition:j.fontLineposition,shadow:j.fontShadow}).text(j.text).call(Uh.convertToTspans,e),e._promises[le]?v.push(e._promises.pop().then(function(){d(se,f)})):d(se,f)}),c3(r,[CF]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(j){Yl.select(this).select("text").call(Uh.positionText,s.xFn(j),s.yFn(j))});function d(j,se){j.each(function(le){var Ee=Yl.select(this),Ge=Ee.select(".text-math-group"),Le=s.anchorFn(le,se),Ve=t.transFn.call(Ee.node(),le)+(ti(se)&&+se!=0?" rotate("+se+","+s.xFn(le)+","+(s.yFn(le)-le.fontSize/2)+")":""),we=Uh.lineCount(Ee),ur=xm*le.fontSize,Oe=s.heightFn(le,ti(se)?+se:0,(we-1)*ur);if(Oe&&(Ve+=Id(0,Oe)),Ge.empty()){var Ue=Ee.select("text");Ue.attr({transform:Ve,"text-anchor":Le}),Ue.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var xr=xl.bBox(Ge.node()).width,Ye=xr*{end:-.5,start:.5}[Le];Ge.attr("transform",Ve+Id(Ye,0))}})}r._adjustTickLabelsOverflow=function(){var j=r.ticklabeloverflow;if(!(!j||j==="allow")){var se=j.indexOf("hide")!==-1,le=r._id.charAt(0)==="x",Ee=0,Ge=le?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var Le=Ot.simpleMap(r.range,r.r2l);Ee=r.l2p(Le[0])+r._offset,Ge=r.l2p(Le[1])+r._offset}var Ve=Math.min(Ee,Ge),we=Math.max(Ee,Ge),ur=r.side,Oe=1/0,Ue=-1/0;c.each(function(de){var ne=Yl.select(this),Fe=ne.select(".text-math-group");if(Fe.empty()){var $e=xl.bBox(ne.node()),Ke=0;le?($e.right>we||$e.leftwe||$e.top+(r.tickangle?0:de.fontSize/4)r["_visibleLabelMin_"+Le._id]?ne.style("display","none"):we.K==="tick"&&!Ve&&ne.node().style.display!=="none"&&ne.style("display",null)})})})})},d(c,u+1?u:f);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(d(c,f),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var j=0,se=[],le,Ee=1;c.each(function(Vr){j=Math.max(j,Vr.fontSize);var rt=r.l2p(Vr.x),Pe=Tw(this),or=xl.bBox(Pe.node());Ee=Math.max(Ee,Uh.lineCount(Pe)),se.push({top:0,bottom:10,height:10,left:rt-or.width/2,right:rt+or.width/2+2,width:or.width+2})});var Ge=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Le=l.length,Ve=Math.abs((l[Le-1].x-l[0].x)*r._m)/(Le-1),we=Ge?Ve/2:Ve,ur=Ge?r.ticklen:j*1.25*Ee,Oe=Math.sqrt(Math.pow(we,2)+Math.pow(ur,2)),Ue=we/Oe,xr=r.autotickangles.map(function(Vr){return Vr*Math.PI/180}),Ye=xr.find(function(Vr){return Math.abs(Math.cos(Vr))<=Ue});Ye===void 0&&(Ye=xr.reduce(function(Vr,rt){return Math.abs(Math.cos(Vr))te*ee&&(R=ee,F[k]=P[k]=H[k])}var Q=Math.abs(R-O);Q-A>0?(Q-=A,A*=1+A/Q):A=0,r._id.charAt(0)!=="y"&&(A=-A),F[M]=_.p2r(_.r2p(P[M])+E*A),_.autorange==="min"||_.autorange==="max reversed"?(F[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(F[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=F}var J=Ot.syncOrAsync(b);return J&&J.then&&e._promises.push(J),J};function eve(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,u3);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(gm.stroke,r.dividercolor).style("stroke-width",xl.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Qr.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function OF(e){var r=e.title.font.size,t=(e.title.text.match(Uh.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Vh+t*xm):t?r*(t+1)*xm:r}function rve(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(Uh.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*Vh:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(mm+l*xm));else{var s=wm(r);if(r.type==="multicategory")o=r._depth;else{var f=1.5*i;s&&(f=.5*i,r.ticks==="outside"&&(f+=r.ticklen)),o=10+f+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var u=Qr.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?u-o:u+o):(d=r._offset+r._length/2,v=r.side==="right"?u+o:u-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=xl.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,xce.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Qr.shouldShowZeroLine=function(e,r,t){var a=Ot.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===s3)&&(jF(r,0)||!tve(e,r,t,a)||ave(e,r))};Qr.clipEnds=function(e,r){return r.filter(function(t){return jF(e,t.x)})};function jF(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Sce:/%L/.test(r)?e>=Mce:/%[SX]/.test(r)?e>=o3:/%M/.test(r)?e>=bm:/%[HI]/.test(r)?e>=Df:/%p/.test(r)?e>=Qc:/%[Aadejuwx]/.test(r)?e>=yo:/%[UVW]/.test(r)?e>=_l:/%[Bbm]/.test(r)?e>=i3:/%[q]/.test(r)?e>=n3:/%[Yy]/.test(r)?e>=a3:!0}});var QF=N((wLe,$F)=>{"use strict";$F.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Dw=N((ALe,KF)=>{"use strict";var fve=QF();KF.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var f=t.getAutorangeDflt(l,n),u=a("autorange",f),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(u==="reversed"||u===!0)||l[0]!==null&&(u==="min"||u==="max reversed")||l[1]!==null&&(u==="max"||u==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(f=t.getAutorangeDflt(l,n),u=a("autorange",f)),u&&(fve(a,u,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var rR=N((TLe,eR)=>{var uve={left:0,top:0};eR.exports=cve;function cve(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=vve(r);return t[0]=a-i.left,t[1]=n-i.top,t}function vve(e){return e===window||e===document||e===document.body?uve:e.getBoundingClientRect()}});var Fw=N((MLe,tR)=>{"use strict";var hve=l4();function dve(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}tR.exports=hve&&dve()});var nR=N((SLe,aR)=>{"use strict";aR.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var lR=N((ELe,oR)=>{"use strict";var iR=Ur(),pve=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];oR.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=iR.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=iR.constrain(Math.floor(t*3),0,2),pve[t][r]}});var fR=N((kLe,sR)=>{"use strict";var mve=am(),yve=h2(),gve=Z1().getGraphDiv,bve=Y1(),Rw=sR.exports={};Rw.wrapped=function(e,r,t){e=gve(e),e._fullLayout&&yve.clear(e._fullLayout._uid+bve.HOVERID),Rw.raw(e,r,t)};Rw.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&mve.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var Bs=N((CLe,hR)=>{"use strict";var xve=rR(),qw=f4(),_ve=Fw(),wve=Ur().removeElement,Ave=ui(),Yh=hR.exports={};Yh.align=nR();Yh.getCursor=lR();var cR=fR();Yh.unhover=cR.wrapped;Yh.unhoverRaw=cR.raw;Yh.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,f,u,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,_ve?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(_,x,A){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(A=>{var E=c[A];!x[A]&&typeof E!="function"&&(x[A]=E)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function vR(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Yh.coverSlip=vR;function uR(e){return xve(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Kc=N((LLe,dR)=>{"use strict";dR.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var yR=N((DLe,mR)=>{"use strict";var Pw=Kc(),Am="data-savedcursor",pR="!!";mR.exports=function(r,t){var a=r.attr(Am);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var Nw=Ui(),Tve=Mf();gR.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Tve.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Nw({editType:"legend"}),grouptitlefont:Nw({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:Nw({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Mm=N(Tm=>{"use strict";Tm.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Tm.isVertical=function(r){return r.orientation!=="h"};Tm.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Tm.getId=function(r){return r._id||"legend"}});var Bw=N((qLe,bR)=>{"use strict";var v3=Bt(),wl=Ur(),Mve=Ja(),Sve=Ds(),Eve=Iw(),kve=hd(),Ow=Mm();function Cve(e,r,t,a,n){var i=r[e]||{},o=Mve.newContainer(t,e);function l(j,se){return wl.coerce(i,o,Eve,j,se)}var s=wl.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var f=l("visible");if(!f)return;var u,c=function(j,se){var le=u._input,Ee=u;return wl.coerce(le,Ee,Sve,j,se)},v=t.font||{},d=wl.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,y=!1,m="normal",b=(t.shapes||[]).filter(function(j){return j.showlegend});function T(j){return v3.traceIs(j,"pie-like")&&j._length!=null&&(Array.isArray(j.legend)||Array.isArray(j.showlegend))}a.filter(T).forEach(function(j){j.visible&&p++;for(var se=0;sej.legend.length)for(var Ee=j.legend.length;Ee(e==="legend"?1:0));if(E===!1&&(t[e]=void 0),!(E===!1&&!i.uirevision)&&(l("uirevision",t.uirevision),E!==!1)){l("borderwidth");var M=l("orientation"),k=l("yref"),F=l("xref"),P=M==="h",O=k==="paper",R=F==="paper",H,W,ee,te="left";P?(H=0,v3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?O?(W=1.1,ee="bottom"):(W=1,ee="top"):O?(W=-.1,ee="top"):(W=0,ee="bottom")):(W=1,ee="auto",R?H=1.02:(H=1,te="right")),wl.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:H}},"x"),wl.coerce(i,o,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:W}},"y"),l("traceorder",m),Ow.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",te),l("yanchor",ee),l("maxheight"),l("valign"),wl.noneOrAll(i,o,["x","y"]);var Q=l("title.text");if(Q){l("title.side",P?"left":"top");var J=wl.extendFlat({},s,{size:wl.bigFont(s.size)});wl.coerceFont(l,"title.font",J);let j=n>1;l("titleclick",j?"toggle":!1),l("titledoubleclick",j?"toggleothers":!1)}}}bR.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var ev=Bt(),zw=Ur(),Lve=zw.pushUnique,Dve=Mm(),xR=!0;Gw.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;var l=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&xR&&t.data&&t._context.showTips&&(zw.notifier(zw._(t,"Double-click on legend to isolate one trace"),"long",t),xR=!1);var s=l==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],u=t._fullData;let c=(i.shapes||[]).filter(Ar=>Ar.showlegend||Ar.legendgroup);var v=u.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,y,m,b,T,_,x,A={},E=[],M=[],k=[];function F(Ar,gr){var et=E.indexOf(Ar),Hr=A.visible;return Hr||(Hr=A.visible=[]),E.indexOf(Ar)===-1&&(E.push(Ar),et=E.length-1),Hr[et]=gr,et}var P=(i.shapes||[]).map(function(Ar){return Ar._input}),O=!1;function R(Ar,gr){P[Ar].visible=gr,O=!0}function H(Ar,gr){if(!(o.groupTitle&&!s)){var et=Ar._fullInput||Ar,Hr=et._isShape,at=et.index;at===void 0&&(at=et._index);var wr=et.visible===!1?!1:gr;Hr?R(at,wr):F(at,wr)}}var W=d.legend,ee=d._fullInput,te=ee&&ee._isShape;if(!te&&ev.traceIs(d,"pie-like")){var Q=o.label,J=f.indexOf(Q);if(n==="toggle")J===-1?f.push(Q):f.splice(J,1);else if(n==="toggleothers"){var j=J!==-1,se=[];for(y=0;yb.showlegend||b.legendgroup),s=i.concat(l);function f(b){return(b.legend||"legend")===o}var u,c;if(a==="toggle")u=!s.some(function(T){return f(T)&&T.visible===!0}),c=!1;else{let b=s.some(function(T){return!f(T)&&T.visible===!0&&T.showlegend!==!1});u=!0,c=!b}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var y=!1,m=0;m{"use strict";_R.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var TR=N((ILe,AR)=>{"use strict";var{isArrayOrTypedArray:Vw}=Po(),wR=Bt(),Yw=Mm();AR.exports=function(r,t,a){var n=t._inHover,i=Yw.isGrouped(t),o=Yw.isReversed(t),l={},s=[],f=!1,u={},c=0,v=0,d,p;function y(se,le,Ee){if(t.visible!==!1&&!(a&&se!==t._id))if(le===""||!Yw.isGrouped(t)){var Ge="~~i"+c;s.push(Ge),l[Ge]=[Ee],c++}else s.indexOf(le)===-1?(s.push(le),f=!0,l[le]=[Ee]):l[le].push(Ee)}for(d=0;dH&&(O=H)}F[d][0]._groupMinRank=O,F[d][0]._preGroupSort=d}var W=function(se,le){return se[0]._groupMinRank-le[0]._groupMinRank||se[0]._preGroupSort-le[0]._preGroupSort},ee=function(se,le){var Ee=Vw(se.trace.legendrank)?se.trace.legendrank[se.i]:se.trace.legendrank,Ge=Vw(le.trace.legendrank)?le.trace.legendrank[le.i]:le.trace.legendrank;return Ee-Ge||se._preSort-le._preSort};for(F.forEach(function(se,le){se[0]._preGroupSort=le}),F.sort(W),d=0;d{"use strict";var h3=Ur();function MR(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Wh.formatPiePercent=function(r,t){var a=MR((r*100).toPrecision(3));return h3.numSeparate(a,t)+"%"};Wh.formatPieValue=function(r,t){var a=MR(r.toPrecision(10));return h3.numSeparate(a,t)};Wh.getFirstFilled=function(r,t){if(h3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Fve=Va(),Rve=ca();SR.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Fve.pointStyle(r,a,n,t):Rve.fill(r,t.color)}});var DR=N((zLe,LR)=>{"use strict";var kR=ca(),CR=Ww().castOption,qve=ER();LR.exports=function(r,t,a,n){var i=a.marker.line,o=CR(i.color,t.pts)||kR.defaultLine,l=CR(i.width,t.pts)||0;r.call(qve,t,a,n).style("stroke-width",l).call(kR.stroke,o)}});var Jw=N((GLe,IR)=>{"use strict";var go=ha(),jw=Bt(),oo=Ur(),FR=oo.strTranslate,Al=Va(),Wl=ca(),Xw=Is().extractOpts,d3=Ni(),Pve=DR(),Nve=Ww().castOption,Ive=Hw(),RR=12,qR=5,jh=2,Ove=10,zd=5;IR.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Ive.itemGap*2)/2,s=FR(l,0),f=function(M,k,F,P){var O;if(M+1)O=M;else if(k&&k.width>0)O=k.width;else return 0;return i?P:Math.min(O,F)};r.each(function(M){var k=go.select(this),F=oo.ensureSingle(k,"g","layers");F.style("opacity",M[0].trace.opacity);var P=a.indentation,O=a.valign,R=M[0].lineHeight,H=M[0].height;if(O==="middle"&&P===0||!R||!H)F.attr("transform",null);else{var W={top:1,bottom:-1}[O],ee=W*(.5*(R-H+3))||0,te=a.indentation;F.attr("transform",FR(te,ee))}var Q=F.selectAll("g.legendfill").data([M]);Q.enter().append("g").classed("legendfill",!0);var J=F.selectAll("g.legendlines").data([M]);J.enter().append("g").classed("legendlines",!0);var j=F.selectAll("g.legendsymbols").data([M]);j.enter().append("g").classed("legendsymbols",!0),j.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(E).each(v).each(p).each(d).each(m).each(x).each(_).each(u).each(c).each(b).each(T);function u(M){var k=PR(M),F=k.showFill,P=k.showLine,O=k.showGradientLine,R=k.showGradientFill,H=k.anyFill,W=k.anyLine,ee=M[0],te=ee.trace,Q,J,j=Xw(te),se=j.colorscale,le=j.reversescale,Ee=function(Ue){if(Ue.size())if(F)Al.fillGroupStyle(Ue,t,!0);else{var xr="legendfill-"+te.uid;Al.gradient(Ue,t,xr,Zw(le),se,"fill")}},Ge=function(Ue){if(Ue.size()){var xr="legendline-"+te.uid;Al.lineGroupStyle(Ue),Al.gradient(Ue,t,xr,Zw(le),se,"stroke")}},Le=d3.hasMarkers(te)||!H?"M5,0":W?"M5,-2":"M5,-3",Ve=go.select(this),we=Ve.select(".legendfill").selectAll("path").data(F||R?[M]:[]);if(we.enter().append("path").classed("js-fill",!0),we.exit().remove(),we.attr("d",Le+"h"+o+"v6h-"+o+"z").call(Ee),P||O){var ur=f(void 0,te.line,Ove,qR);J=oo.minExtend(te,{line:{width:ur}}),Q=[oo.minExtend(ee,{trace:J})]}var Oe=Ve.select(".legendlines").selectAll("path").data(P||O?[Q]:[]);Oe.enter().append("path").classed("js-line",!0),Oe.exit().remove(),Oe.attr("d",Le+(O?"l"+o+",0.0001":"h"+o)).call(P?Al.lineGroupStyle:Ge)}function c(M){var k=PR(M),F=k.anyFill,P=k.anyLine,O=k.showLine,R=k.showMarker,H=M[0],W=H.trace,ee=!R&&!P&&!F&&d3.hasText(W),te,Q;function J(we,ur,Oe,Ue){var xr=oo.nestedProperty(W,we).get(),Ye=oo.isArrayOrTypedArray(xr)&&ur?ur(xr):xr;if(i&&Ye&&Ue!==void 0&&(Ye=Ue),Oe){if(YeOe[1])return Oe[1]}return Ye}function j(we){return H._distinct&&H.index&&we[H.index]?we[H.index]:we[0]}if(R||ee||O){var se={},le={};if(R){se.mc=J("marker.color",j),se.mx=J("marker.symbol",j),se.mo=J("marker.opacity",oo.mean,[.2,1]),se.mlc=J("marker.line.color",j),se.mlw=J("marker.line.width",oo.mean,[0,5],jh),se.mld=W._isShape?"solid":J("marker.line.dash",j),le.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Ee=J("marker.size",oo.mean,[2,16],RR);se.ms=Ee,le.marker.size=Ee}O&&(le.line={width:J("line.width",j,[0,10],qR)}),ee&&(se.tx="Aa",se.tp=J("textposition",j),se.ts=10,se.tc=J("textfont.color",j),se.tf=J("textfont.family",j),se.tw=J("textfont.weight",j),se.ty=J("textfont.style",j),se.tv=J("textfont.variant",j),se.tC=J("textfont.textcase",j),se.tE=J("textfont.lineposition",j),se.tS=J("textfont.shadow",j)),te=[oo.minExtend(H,se)],Q=oo.minExtend(W,le),Q.selectedpoints=null,Q.texttemplate=null}var Ge=go.select(this).select("g.legendpoints"),Le=Ge.selectAll("path.scatterpts").data(R?te:[]);Le.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Le.exit().remove(),Le.call(Al.pointStyle,Q,t),R&&(te[0].mrc=3);var Ve=Ge.selectAll("g.pointtext").data(ee?te:[]);Ve.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ve.exit().remove(),Ve.selectAll("text").call(Al.textPointStyle,Q,t)}function v(M){var k=M[0].trace,F=k.type==="waterfall";if(M[0]._distinct&&F){var P=M[0].trace[M[0].dir].marker;return M[0].mc=P.color,M[0].mlw=P.line.width,M[0].mlc=P.line.color,y(M,this,"waterfall")}var O=[];k.visible&&F&&(O=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=go.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(O);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(H){var W=go.select(this),ee=k[H[0]].marker,te=f(void 0,ee.line,zd,jh);W.attr("d",H[1]).style("stroke-width",te+"px").call(Wl.fill,ee.color),te&&W.call(Wl.stroke,ee.line.color)})}function d(M){y(M,this)}function p(M){y(M,this,"funnel")}function y(M,k,F){var P=M[0].trace,O=P.marker||{},R=O.line||{},H=O.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",W=F?P.visible&&P.type===F:jw.traceIs(P,"bar"),ee=go.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(W?[M]:[]);ee.enter().append("path").classed("legend"+F,!0).attr("d",H).attr("transform",s),ee.exit().remove(),ee.each(function(te){var Q=go.select(this),J=te[0],j=f(J.mlw,O.line,zd,jh);Q.style("stroke-width",j+"px");var se=J.mcc;if(!a._inHover&&"mc"in J){var le=Xw(O),Ee=le.mid;Ee===void 0&&(Ee=(le.max+le.min)/2),se=Al.tryColorscale(O,"")(Ee)}var Ge=se||J.mc||O.color,Le=O.pattern,Ve=Al.getPatternAttr,we=Le&&(Ve(Le.shape,0,"")||Ve(Le.path,0,""));if(we){var ur=Ve(Le.bgcolor,0,null),Oe=Ve(Le.fgcolor,0,null),Ue=Le.fgopacity,xr=NR(Le.size,8,10),Ye=NR(Le.solidity,.5,1),re="legend-"+P.uid;Q.call(Al.pattern,"legend",t,re,we,xr,Ye,se,Le.fillmode,ur,Oe,Ue)}else Q.call(Wl.fill,Ge);j&&Wl.stroke(Q,J.mlc||R.color)})}function m(M){var k=M[0].trace,F=go.select(this).select("g.legendpoints").selectAll("path.legendbox").data(k.visible&&jw.traceIs(k,"box-violin")?[M]:[]);F.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),F.exit().remove(),F.each(function(){var P=go.select(this);if((k.boxpoints==="all"||k.points==="all")&&Wl.opacity(k.fillcolor)===0&&Wl.opacity((k.line||{}).color)===0){var O=oo.minExtend(k,{marker:{size:i?RR:oo.constrain(k.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});F.call(Al.pointStyle,O,t)}else{var R=f(void 0,k.line,zd,jh);P.style("stroke-width",R+"px").call(Wl.fill,k.fillcolor),R&&Wl.stroke(P,k.line.color)}})}function b(M){var k=M[0].trace,F=go.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(k.visible&&k.type==="candlestick"?[M,M]:[]);F.enter().append("path").classed("legendcandle",!0).attr("d",function(P,O){return O?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(P,O){var R=go.select(this),H=k[O?"increasing":"decreasing"],W=f(void 0,H.line,zd,jh);R.style("stroke-width",W+"px").call(Wl.fill,H.fillcolor),W&&Wl.stroke(R,H.line.color)})}function T(M){var k=M[0].trace,F=go.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(k.visible&&k.type==="ohlc"?[M,M]:[]);F.enter().append("path").classed("legendohlc",!0).attr("d",function(P,O){return O?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(P,O){var R=go.select(this),H=k[O?"increasing":"decreasing"],W=f(void 0,H.line,zd,jh);R.style("fill","none").call(Al.dashLine,H.line.dash,W),W&&Wl.stroke(R,H.line.color)})}function _(M){A(M,this,"pie")}function x(M){A(M,this,"funnelarea")}function A(M,k,F){var P=M[0],O=P.trace,R=F?O.visible&&O.type===F:jw.traceIs(O,F),H=go.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(R?[M]:[]);if(H.enter().append("path").classed("legend"+F,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),H.exit().remove(),H.size()){var W=O.marker||{},ee=f(Nve(W.line.width,P.pts),W.line,zd,jh),te="pieLike",Q=oo.minExtend(O,{marker:{line:{width:ee}}},te),J=oo.minExtend(P,{trace:Q},te);Pve(H,J,Q,t)}}function E(M){var k=M[0].trace,F,P=[];if(k.visible)switch(k.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1;break}var O=go.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);O.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),O.exit().remove(),O.each(function(R,H){var W=go.select(this),ee=Xw(k),te=ee.colorscale,Q=ee.reversescale,J=function(Ee){if(Ee.size()){var Ge="legendfill-"+k.uid;Al.gradient(Ee,t,Ge,Zw(Q,F==="radial"),te,"fill")}},j;if(te){if(!F){var le=te.length;j=H===0?te[Q?le-1:0][1]:H===1?te[Q?0:le-1][1]:te[Math.floor((le-1)/2)][1]}}else{var se=k.vertexcolor||k.facecolor||k.color;j=oo.isArrayOrTypedArray(se)?se[H]||se[0]:se}W.attr("d",R[0]),j?W.call(Wl.fill,j):W.call(J)})}};function Zw(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function PR(e){var r=e[0].trace,t=r.contours,a=d3.hasLines(r),n=d3.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function NR(e,r,t){return e&&oo.isArrayOrTypedArray(e)?r:e>t?t:e}});var eA=N((ULe,WR)=>{"use strict";var No=ha(),Yn=Ur(),Qw=xi(),Xh=Bt(),y3=am(),$w=Bs(),Wn=Va(),Sm=ca(),Zh=no(),OR=Uw().handleItemClick,BR=Uw().handleTitleClick,ai=Hw(),Kw=ao(),VR=Kw.LINE_SPACING,Ud=Kw.FROM_TL,zR=Kw.FROM_BR,GR=TR(),Bve=Jw(),Hd=Mm(),Gd=1,zve=/^legend[0-9]*$/;WR.exports=function(r,t){if(t)UR(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var f=No.select(this),u=f.attr("class"),c=u.split(" ")[0];c.match(zve)&&n.indexOf(c)===-1&&f.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Qw.autoMargin(e,n);var y=Yn.ensureSingle(o,"g",n,function(k){l||k.attr("pointer-events","all")}),m=Yn.ensureSingleById(a._topdefs,"clipPath",i,function(k){k.append("rect")}),b=Yn.ensureSingle(y,"rect","bg",function(k){k.attr("shape-rendering","crispEdges")});b.call(Sm.stroke,t.bordercolor).call(Sm.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Yn.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=Yn.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(Wn.font,_.font).text(_.text),m3(x,T,e,t,Gd),!l&&(t.titleclick||t.titledoubleclick)&&Vve(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var A=Yn.ensureSingle(y,"rect","scrollbar",function(k){k.attr(ai.scrollBarEnterAttrs).call(Sm.fill,ai.scrollBarColor)}),E=T.selectAll("g.groups").data(s);E.enter().append("g").attr("class","groups"),E.exit().remove();var M=E.selectAll("g.traces").data(Yn.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(k){let F=k[0],P=F.trace;if(F.groupTitle){let O=P.legendgroup,R=(a.shapes||[]).filter(function(W){return W.showlegend});return e._fullData.concat(R).some(function(W){return W.legendgroup===O&&(W.legend||"legend")===n&&W.visible===!0})?1:.5}return Xh.traceIs(P,"pie-like")?p.indexOf(k[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){No.select(this).call(Uve,e,t)}).call(Bve,e,t).each(function(k){l||k[0].groupTitle&&t.groupclick==="toggleitem"||No.select(this).call(Hve,e,n)}),Yn.syncOrAsync([Qw.previousPromises,function(){return jve(e,E,M,t,T)},function(){var k=a._size,F=t.borderwidth,P=t.xref==="paper",O=t.yref==="paper";if(_.text){let Fe=(a.shapes||[]).filter(function(Ke){return Ke.showlegend}),$e=e._fullData.concat(Fe).some(function(Ke){let Cr=Ke.legend||"legend";var Ar=Array.isArray(Cr)?Cr.includes(n):Cr===n;return Ar&&Ke.visible===!0});x.style("opacity",$e?1:.5)}if(!l){var R,H;P?R=k.l+k.w*t.x-Ud[g3(t)]*t._width:R=a.width*t.x-Ud[g3(t)]*t._width,O?H=k.t+k.h*(1-t.y)-Ud[b3(t)]*t._effHeight:H=a.height*(1-t.y)-Ud[b3(t)]*t._effHeight;var W=Xve(e,n,R,H);if(W)return;if(a.margin.autoexpand){var ee=R,te=H;R=P?Yn.constrain(R,0,a.width-t._width):ee,H=O?Yn.constrain(H,0,a.height-t._effHeight):te,R!==ee&&Yn.log("Constrain "+n+".x to make legend fit inside graph"),H!==te&&Yn.log("Constrain "+n+".y to make legend fit inside graph")}Wn.setTranslate(y,R,H)}if(A.on(".drag",null),y.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var Q=t._effHeight;l&&(Q=t._height),b.attr({width:t._width-F,height:Q-F,x:F/2,y:F/2}),Wn.setTranslate(T,0,0),m.select("rect").attr({width:t._width-2*F,height:Q-2*F,x:F,y:F}),Wn.setClipUrl(T,i,e),Wn.setRect(A,0,0,0,0),delete t._scrollY}else{var J=Math.max(ai.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-J-2*ai.scrollBarMargin,se=t._height-t._effHeight,le=j/se,Ee=Math.min(t._scrollY||0,se);b.attr({width:t._width-2*F+ai.scrollBarWidth+ai.scrollBarMargin,height:t._effHeight-F,x:F/2,y:F/2}),m.select("rect").attr({width:t._width-2*F+ai.scrollBarWidth+ai.scrollBarMargin,height:t._effHeight-2*F,x:F,y:F+Ee}),Wn.setClipUrl(T,i,e),xr(Ee,J,le),y.on("wheel",function(){Ee=Yn.constrain(t._scrollY+No.event.deltaY/se*j,0,se),xr(Ee,J,le),Ee!==0&&Ee!==se&&No.event.preventDefault()});var Ge,Le,Ve,we=function(Fe,$e,Ke){var Cr=(Ke-$e)/le+Fe;return Yn.constrain(Cr,0,se)},ur=function(Fe,$e,Ke){var Cr=($e-Ke)/le+Fe;return Yn.constrain(Cr,0,se)},Oe=No.behavior.drag().on("dragstart",function(){var Fe=No.event.sourceEvent;Fe.type==="touchstart"?Ge=Fe.changedTouches[0].clientY:Ge=Fe.clientY,Ve=Ee}).on("drag",function(){var Fe=No.event.sourceEvent;Fe.buttons===2||Fe.ctrlKey||(Fe.type==="touchmove"?Le=Fe.changedTouches[0].clientY:Le=Fe.clientY,Ee=we(Ve,Ge,Le),xr(Ee,J,le))});A.call(Oe);var Ue=No.behavior.drag().on("dragstart",function(){var Fe=No.event.sourceEvent;Fe.type==="touchstart"&&(Ge=Fe.changedTouches[0].clientY,Ve=Ee)}).on("drag",function(){var Fe=No.event.sourceEvent;Fe.type==="touchmove"&&(Le=Fe.changedTouches[0].clientY,Ee=ur(Ve,Ge,Le),xr(Ee,J,le))});T.call(Ue)}function xr(Fe,$e,Ke){t._scrollY=e._fullLayout[n]._scrollY=Fe,Wn.setTranslate(T,0,-Fe),Wn.setRect(A,t._width,ai.scrollBarMargin+Fe*Ke,ai.scrollBarWidth,$e),m.select("rect").attr("y",F+Fe)}if(e._context.edits.legendPosition){var Ye,re,de,ne;y.classed("cursor-move",!0),$w.init({element:y.node(),gd:e,prepFn:function(Fe){if(Fe.target!==A.node()){var $e=Wn.getTranslate(y);de=$e.x,ne=$e.y}},moveFn:function(Fe,$e){if(de!==void 0&&ne!==void 0){var Ke=de+Fe,Cr=ne+$e;Wn.setTranslate(y,Ke,Cr),Ye=$w.align(Ke,t._width,k.l,k.l+k.w,t.xanchor),re=$w.align(Cr+t._height,-t._height,k.t+k.h,k.t,t.yanchor)}},doneFn:function(){if(Ye!==void 0&&re!==void 0){var Fe={};Fe[n+".x"]=Ye,Fe[n+".y"]=re,Xh.call("_guiRelayout",e,Fe)}},clickFn:function(Fe,$e){var Ke=o.selectAll("g.traces").filter(function(){var Cr=this.getBoundingClientRect();return $e.clientX>=Cr.left&&$e.clientX<=Cr.right&&$e.clientY>=Cr.top&&$e.clientY<=Cr.bottom});Ke.size()>0&&YR(e,t,Ke,Fe,$e)}})}}],e)}}function p3(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function YR(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,f={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(f.group=o._group),Xh.traceIs(o,"pie-like")&&(f.label=t.datum()[0].label);var u=y3.triggerHandler(e,"plotly_legendclick",f);if(a===1){if(u===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&OR(t,e,r,l)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=y3.triggerHandler(e,"plotly_legenddoubleclick",f);c!==!1&&u!==!1&&s&&OR(t,e,r,s)}}function Uve(e,r,t){var a=Hd.getId(t),n=e.data()[0][0],i=n.trace,o=Xh.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,f,u;n.groupTitle?(f=n.groupTitle.text,u=n.groupTitle.font):(u=t.font,t.entries?f=n.text:(f=o?n.label:i.name,i._meta&&(f=Yn.templateString(f,i._meta))));var c=Yn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Wn.font,u).text(l?HR(f,s):f);var v=t.indentation+t.itemwidth+ai.itemGap*2;Zh.positionText(c,v,0),l?c.call(Zh.makeEditable,{gd:r,text:f}).call(m3,e,r,t).on("edit",function(d){this.text(HR(d,s)).call(m3,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?Xh.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Xh.call("_guiRestyle",r,y,i.index)}):m3(c,e,r,t)}function HR(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function Hve(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=Yn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Sm.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),YR(r,l,e,i,No.event)}}))}function Vve(e,r,t,a){if(r._fullData.some(function(f){let u=f.legend||"legend";return(Array.isArray(u)?u.includes(a):u===a)&&Xh.traceIs(f,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=Yn.ensureSingle(e,"rect",a+"titletoggle",function(f){r._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(Sm.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let f={event:No.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(y3.triggerHandler(r,"plotly_legendtitleclick",f)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&BR(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,y3.triggerHandler(r,"plotly_legendtitledoubleclick",f)!==!1&&t.titledoubleclick&&BR(r,t,t.titledoubleclick))}))}function m3(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Zh.convertToTspans(e,t,function(){Yve(r,t,a,n)})}function Yve(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=Hd.getId(t);t||(t=r._fullLayout[s]);var f=t.borderwidth,u;a===Gd?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var c=u.size*VR,v,d;if(l){var p=Wn.bBox(l);v=p.height,d=p.width,a===Gd?Wn.setTranslate(o,f,f+v*.75):Wn.setTranslate(o,0,v*.25)}else{var y="."+s+(a===Gd?"title":"")+"text",m=e.select(y),b=Zh.lineCount(m),T=m.node();if(v=c*b,d=T?Wn.bBox(T).width:0,a===Gd)t.title.side==="left"&&(d+=ai.itemGap*2),Zh.positionText(m,f+ai.titlePad,f+c);else{var _=ai.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=ai.itemGap,d-=t.indentation+t.itemwidth),Zh.positionText(m,_,-c*((b-1)/2-.3))}}a===Gd?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function Wve(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function jve(e,r,t,a,n){var i=e._fullLayout,o=Hd.getId(a);a||(a=i[o]);var l=i._size,s=Hd.isVertical(a),f=Hd.isGrouped(a),u=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=ai.itemGap,p=a.indentation+a.itemwidth+d*2,y=2*(c+d),m=b3(a),b=a.y<0||a.y===0&&m==="top",T=a.y>1||a.y===1&&m==="bottom",_=a.tracegroupgap,x={};let{orientation:A,yref:E}=a,{maxheight:M}=a,k=b||T||A!=="v"||E!=="paper";M||(M=k?.5:1);let F=k?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*F,30);var P=0;a._width=0,a._height=0;var O=Wve(a);if(s)t.each(function(Fe){var $e=Fe[0].height;Wn.setTranslate(this,c+O[0],c+O[1]+a._height+$e/2+d),a._height+=$e,a._width=Math.max(a._width,Fe[0].width)}),P=p+a._width,a._width+=d+p+v,a._height+=y,f&&(r.each(function(Fe,$e){Wn.setTranslate(this,0,$e*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=g3(a),H=a.x<0||a.x===0&&R==="right",W=a.x>1||a.x===1&&R==="left",ee=T||b,te=i.width/2;a._maxWidth=Math.max(H?ee&&R==="left"?l.l+l.w:te:W?ee&&R==="right"?l.r+l.w:te:l.w,2*p);var Q=0,J=0;t.each(function(Fe){var $e=p3(Fe,a,p);Q=Math.max(Q,$e),J+=$e}),P=null;var j=0;if(f){var se=0,le=0,Ee=0;r.each(function(){var Fe=0,$e=0;No.select(this).selectAll("g.traces").each(function(Cr){var Ar=p3(Cr,a,p),gr=Cr[0].height;Wn.setTranslate(this,O[0],O[1]+c+d+gr/2+$e),$e+=gr,Fe=Math.max(Fe,Ar),x[Cr[0].trace.legendgroup]=Fe});var Ke=Fe+d;le>0&&Ke+c+le>a._maxWidth?(j=Math.max(j,le),le=0,Ee+=se+_,se=$e):se=Math.max(se,$e),Wn.setTranslate(this,le,Ee),le+=Ke}),a._width=Math.max(j,le)+c,a._height=Ee+se+y}else{var Ge=t.size(),Le=J+v+(Ge-1)*d=a._maxWidth&&(j=Math.max(j,Oe),we=0,ur+=Ve,a._height+=Ve,Ve=0),Wn.setTranslate(this,O[0]+c+we,O[1]+c+ur+$e/2+d),Oe=we+Ke+d,we+=Cr,Ve=Math.max(Ve,$e)}),Le?(a._width=we+v,a._height=Ve+y):(a._width=Math.max(j,Oe)+v,a._height+=Ve+y)}}a._width=Math.ceil(Math.max(a._width+O[0],a._titleWidth+2*(c+ai.titlePad))),a._height=Math.ceil(Math.max(a._height+O[1],a._titleHeight+2*(c+ai.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Ue=e._context.edits,xr=Ue.legendText||Ue.legendPosition;t.each(function(Fe){var $e=No.select(this).select("."+o+"toggle"),Ke=Fe[0].height,Cr=Fe[0].trace.legendgroup,Ar=p3(Fe,a,p);f&&Cr!==""&&(Ar=x[Cr]);var gr=xr?p:P||Ar;!s&&!u&&(gr+=d/2),Wn.setRect($e,0,-Ke/2,gr,Ke)});var Ye=n.select("."+o+"titletext");Ye.node()&&Gve(Ye,a,c);var re=n.select("."+o+"titletoggle");if(re.size()&&Ye.node()){var de=Ye.attr("x")||0,ne=ai.titlePad;Wn.setRect(re,de-ne,c,a._titleWidth+2*ne,a._titleHeight+2*ne)}}function Xve(e,r,t,a){var n=e._fullLayout,i=n[r],o=g3(i),l=b3(i),s=i.xref==="paper",f=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var u=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&f)return Qw.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Ud[o],r:i._width*zR[o],b:i._effHeight*zR[l],t:i._effHeight*Ud[l]});s?e._fullLayout._reservedMargin[r][u]=v[u]:f||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][u]=v[u]}function g3(e){return Yn.isRightAnchor(e)?"right":Yn.isCenterAnchor(e)?"center":"left"}function b3(e){return Yn.isBottomAnchor(e)?"bottom":Yn.isMiddleAnchor(e)?"middle":"top"}});var nA=N(aA=>{"use strict";var Jh=ha(),Iu=xa(),jR=Ls(),Rn=Ur(),Zve=Rn.pushUnique,rA=Rn.strTranslate,Jve=Rn.strRotate,$ve=am(),jl=no(),Qve=yR(),Rf=Va(),wi=ca(),x3=Bs(),qf=hn(),Kve=ui().zindexSeparator,Yd=Bt(),zs=Nu(),$h=Y1(),ehe=Bw(),rhe=eA(),rq=$h.YANGLE,tA=Math.PI*rq/180,the=1/Math.sin(tA),ahe=Math.cos(tA),nhe=Math.sin(tA),dn=$h.HOVERARROWSIZE,sa=$h.HOVERTEXTPAD,XR={box:!0,ohlc:!0,violin:!0,candlestick:!0},ihe={scatter:!0,scattergl:!0,splom:!0};function ZR(e,r){return e.distance-r.distance}aA.hover=function(r,t,a,n){r=Rn.getGraphDiv(r);var i=t.target;Rn.throttle(r._fullLayout._uid+$h.HOVERID,$h.HOVERMINTIME,function(){ohe(r,t,a,n,i)})};aA.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=oq(n),o=lq(n),l=r.map(function(m){var b=m._x0||m.x0||m.x||0,T=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,A=m.eventData;if(A){var E=Math.min(b,T),M=Math.max(b,T),k=Math.min(_,x),F=Math.max(_,x),P=m.trace;if(Yd.traceIs(P,"gl3d")){var O=n._fullLayout[P.scene]._scene.container,R=O.offsetLeft,H=O.offsetTop;E+=R,M+=R,k+=H,F+=H}A.bbox={x0:E+o,x1:M+o,y0:k+i,y1:F+i},A.xPixel=(b+T)/2,A.yPixel=(_+x)/2,t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:m.color||wi.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:A}}),s=!1,f=aq(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||wi.background,container:Jh.select(t.container),outerContainer:t.outerContainer||t.container}),u=f.hoverLabels,c=5,v=0,d=0;u.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var T=m.y0-m.by/2;T-cM[0]._length||ne<0||ne>k[0]._length)return x3.unhoverRaw(e,r)}if(r.pointerX=de+M[0]._offset,r.pointerY=ne+k[0]._offset,"xval"in r?te=zs.flat(i,r.xval):te=zs.p2c(M,de),"yval"in r?Q=zs.flat(i,r.yval):Q=zs.p2c(k,ne),!Iu(te[0])||!Iu(Q[0]))return Rn.warn("Fx.hover failed",r,e),x3.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=te,e._hoverYVals=Q,e._hoverXAxes=M,e._hoverYAxes=k);var Ke=1/0;function Cr(At,Ia){for(j=0;jOe&&(W.splice(0,Oe),Ke=W[0].distance),c&&H!==0&&W.length===0){ur.distance=H,ur.index=!1;var va=le._module.hoverPoints(ur,Ve,we,"closest",{hoverLayer:l._hoverlayer});if(va&&(va=va.filter(function(ki){return ki.spikeDistance<=H})),va&&va.length){var hi,Xi=va.filter(function(ki){return ki.xa.showspikes&&ki.xa.spikesnap!=="hovered data"});if(Xi.length){var Pn=Xi[0];Iu(Pn.x0)&&Iu(Pn.y0)&&(hi=gr(Pn),(!Ue.vLinePoint||Ue.vLinePoint.spikeDistance>hi.spikeDistance)&&(Ue.vLinePoint=hi))}var Ya=va.filter(function(ki){return ki.ya.showspikes&&ki.ya.spikesnap!=="hovered data"});if(Ya.length){var wn=Ya[0];Iu(wn.x0)&&Iu(wn.y0)&&(hi=gr(wn),(!Ue.hLinePoint||Ue.hLinePoint.spikeDistance>hi.spikeDistance)&&(Ue.hLinePoint=hi))}}}}}Cr();function Ar(At,Ia,ma){for(var Sa=null,yn=1/0,Fa,va=0;vaAt.trace.index===sr.trace.index):W=[sr];var zr=W.length,nt=eq("x",sr,l),Yr=eq("y",sr,l);Cr(nt,Yr);var Wr=[],xt={},jr=0,ot=function(At){var Ia=XR[At.trace.type]?tq(At):At.trace.index;if(!xt[Ia])jr++,xt[Ia]=jr,Wr.push(At);else{var ma=xt[Ia]-1,Sa=Wr[ma];ma>0&&Math.abs(At.distance)zr-1;dr--)ot(W[dr]);W=Wr,wr()}var Se=e._hoverdata,Ie=[],pr=oq(e),_r=lq(e);for(let At of W){var ht=zs.makeEventData(At,At.trace,At.cd);if(At.hovertemplate!==!1){var Mt=!1;At.cd[At.index]&&At.cd[At.index].ht&&(Mt=At.cd[At.index].ht),At.hovertemplate=Mt||At.trace.hovertemplate||!1}if(At.xa&&At.ya){var wt=At.x0+At.xa._offset,Nt=At.x1+At.xa._offset,ta=At.y0+At.ya._offset,pa=At.y1+At.ya._offset,za=Math.min(wt,Nt),rn=Math.max(wt,Nt),Wa=Math.min(ta,pa),Cn=Math.max(ta,pa);ht.bbox={x0:za+_r,x1:rn+_r,y0:Wa+pr,y1:Cn+pr},ht.xPixel=(wt+Nt)/2,ht.yPixel=(ta+pa)/2}At.eventData=[ht],Ie.push(ht)}e._hoverdata=Ie;var _n=v==="y"&&(ee.length>1||W.length>1)||v==="closest"&&xr&&W.length>1,Si=wi.combine(l.plot_bgcolor||wi.background,l.paper_bgcolor),un=aq(W,{gd:e,hovermode:v,rotateLabels:_n,bgColor:Si,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Bn=un.hoverLabels;if(zs.isUnifiedHover(v)||(she(Bn,_n,l,un.commonLabelBoundingBox),iq(Bn,_n,l._invScaleX,l._invScaleY)),n&&n.tagName){var Ei=Yd.getComponentMethod("annotations","hasClickToShow")(e,Ie);Qve(Jh.select(n),Ei?"pointer":"")}var Ln=che(e,r,Se);if(!n||a||!Ln&&!l.hoveranywhere)return;Se&&Ln&&e.emit("plotly_unhover",{event:r,points:Se}),mn(e._hoverdata);function mn(At){e.emit("plotly_hover",{event:r,points:At,xaxes:M,yaxes:k,xvals:te,yvals:Q})}}function tq(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var lhe=/([\s\S]*)<\/extra>/;function aq(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,f=r.commonLabelOpts||{};if(e.length===0)return[[]];var u=r.fontFamily||$h.HOVERFONT,c=r.fontSize||$h.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,T=e[0],_=T.xa,x=T.ya,A=n.charAt(0),E=A+"Label",M=T[E];if(M===void 0&&_.type==="multicategory")for(var k=0;ka.width-Ie&&(pr=a.width-Ie),tr.attr("d","M"+(ot-pr)+",0L"+(ot-pr+dn)+","+Se+dn+"H"+Ie+"v"+Se+(sa*2+jr.height)+"H"+-Ie+"V"+Se+dn+"H"+(ot-pr-dn)+"Z"),ot=pr,j.minX=ot-Ie,j.maxX=ot+Ie,_.side==="top"?(j.minY=dr-(sa*2+jr.height),j.maxY=dr-sa):(j.minY=dr+sa,j.maxY=dr+(sa*2+jr.height))}else{var _r,ht,Mt;x.side==="right"?(_r="start",ht=1,Mt="",ot=_._offset+_._length):(_r="end",ht=-1,Mt="-",ot=_._offset),dr=x._offset+(T.y0+T.y1)/2,sr.attr("text-anchor",_r),tr.attr("d","M0,0L"+Mt+dn+","+dn+"V"+(sa+jr.height/2)+"h"+Mt+(sa*2+jr.width)+"V-"+(sa+jr.height/2)+"H"+Mt+dn+"V-"+dn+"Z"),j.minY=dr-(sa+jr.height/2),j.maxY=dr+(sa+jr.height/2),x.side==="right"?(j.minX=ot+dn,j.maxX=ot+dn+(sa*2+jr.width)):(j.minX=ot-dn-(sa*2+jr.width),j.maxX=ot-dn);var wt=jr.height/2,Nt=P-jr.top-wt,ta="clip"+a._uid+"commonlabel"+x._id,pa;if(ottr.hoverinfo!=="none");if(Tr.length===0)return[];var se=a.hoverlabel,le=se.font,Ee=Tr[0],Ge=((n==="x unified"?Ee.xa:Ee.ya).unifiedhovertitle||{}).text,Le=Ge?Rn.hovertemplateString({data:n==="x unified"?[{xa:Ee.xa,x:Ee.xVal}]:[{ya:Ee.ya,y:Ee.yVal}],fallback:Ee.trace.hovertemplatefallback,locale:a._d3locale,template:Ge}):M,Ve={showlegend:!0,legend:{title:{text:Le,font:le},font:le,bgcolor:se.bgcolor,bordercolor:se.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},we={font:le};ehe(Ve,we,t._fullData);var ur=we.legend;ur.entries=[];for(var Oe=0;Oe=0?or=wr:Vr+$e=0?or=Vr:rt+$e=0?st=Hr:at+Ke=0?st=at:Pe+Ke=0,(Tr.idealAlign==="top"||!Wa)&&Cn?(Mt-=Nt/2,Tr.anchor="end"):Wa?(Mt+=Nt/2,Tr.anchor="start"):Tr.anchor="middle",Tr.crossPos=Mt;else{if(Tr.pos=Mt,Wa=ht+wt/2+rn<=O,Cn=ht-wt/2-rn>=0,(Tr.idealAlign==="left"||!Wa)&&Cn)ht-=wt/2,Tr.anchor="end";else if(Wa)ht+=wt/2,Tr.anchor="start";else{Tr.anchor="middle";var _n=rn/2,Si=ht+_n-O,un=ht-_n;Si>0&&(ht-=Si),un<0&&(ht+=-un)}Tr.crossPos=ht}dr.attr("text-anchor",Tr.anchor),Ie&&Se.attr("text-anchor",Tr.anchor),tr.attr("transform",rA(ht,Mt)+(i?Jve(rq):""))}),{hoverLabels:kt,commonLabelBoundingBox:j}}function JR(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Rn.templateString(e.name,e.trace._meta)),o=KR(e.name,e.nameLength));var s=t.charAt(0),f=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[f+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:u=!1}=e;if(u){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=Rn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:u}),l=l.replace(lhe,(p,y)=>(o=KR(y,e.nameLength),""))}return[l,o]}function she(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),f=new Array(s),u=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,y=function(te){return te*t._invScaleX},m=function(te){return te*t._invScaleY};e.each(function(te){var Q=te[n],J=te[i],j=Q._id.charAt(0)==="x",se=Q.range;u===0&&se&&se[0]>se[1]!==j&&(l=-1);var le=0,Ee=j?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ge=nq(te,r),Le=te.anchor,Ve=Le==="end"?-1:1,we,ur;if(Le==="middle")we=te.crossPos+(j?m(Ge.y-te.by/2):y(te.bx/2+te.tx2width/2)),ur=we+(j?m(te.by):y(te.bx));else if(j)we=te.crossPos+m(dn+Ge.y)-m(te.by/2-dn),ur=we+m(te.by);else{var Oe=y(Ve*dn+Ge.x),Ue=Oe+y(Ve*te.bx);we=te.crossPos+Math.min(Oe,Ue),ur=te.crossPos+Math.max(Oe,Ue)}j?d!==void 0&&p!==void 0&&Math.min(ur,p)-Math.max(we,d)>1&&(J.side==="left"?(le=J._mainLinePosition,Ee=t.width):Ee=J._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(ur,v)-Math.max(we,c)>1&&(J.side==="top"?(le=J._mainLinePosition,Ee=t.height):Ee=J._mainLinePosition)}f[u++]=[{datum:te,traceIndex:te.trace.index,dp:0,pos:te.pos,posref:te.posref,size:te.by*(j?the:1)/2,pmin:le,pmax:Ee}]}),f.sort(function(te,Q){return te[0].posref-Q[0].posref||l*(Q[0].traceIndex-te[0].traceIndex)});var b,T,_,x,A,E,M;function k(te){var Q=te[0],J=te[te.length-1];if(T=Q.pmin-Q.pos-Q.dp+Q.size,_=J.pos+J.dp+J.size-Q.pmax,T>.01){for(A=te.length-1;A>=0;A--)te[A].dp+=T;b=!1}if(!(_<.01)){if(T<-.01){for(A=te.length-1;A>=0;A--)te[A].dp-=_;b=!1}if(b){var j=0;for(x=0;xQ.pmax&&j++;for(x=te.length-1;x>=0&&!(j<=0);x--)E=te[x],E.pos>Q.pmax-1&&(E.del=!0,j--);for(x=0;x=0;A--)te[A].dp-=_;for(x=te.length-1;x>=0&&!(j<=0);x--)E=te[x],E.pos+E.dp+E.size>Q.pmax&&(E.del=!0,j--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(A=P.length-1;A>=0;A--)P[A].dp+=T;for(F.push.apply(F,P),f.splice(x+1,1),M=0,A=F.length-1;A>=0;A--)M+=F[A].dp;for(_=M/F.length,A=F.length-1;A>=0;A--)F[A].dp-=_;b=!1}else x++}f.forEach(k)}for(x=f.length-1;x>=0;x--){var H=f[x];for(A=H.length-1;A>=0;A--){var W=H[A],ee=W.datum;ee.offset=W.dp,ee.del=W.del}}}function nq(e,r){var t=0,a=e.offset;return r&&(a*=-nhe,t=e.offset*ahe),{x:t,y:a}}function fhe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(dn+sa),a=t+r*(e.txwidth+sa),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+sa),{alignShift:r,textShiftX:t,text2ShiftX:a}}function iq(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=Jh.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),f=o.anchor,u=f==="end"?-1:1,c=fhe(o),v=nq(o,r),d=v.x,p=v.y,y=f==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;y?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?b="M0,0L"+n(u*dn+d)+","+i(dn+p)+"v"+i(o.by/2-dn)+"h"+n(u*o.bx)+"v-"+i(o.by)+"H"+n(u*dn+d)+"V"+i(p-dn)+"Z":b="M"+n(u*dn+d)+","+i(p-o.by/2)+"h"+n(u*o.bx)+"v"+i(o.by)+"h"+n(-u*o.bx)+"Z",l.select("path").attr("d",b);var T=d+c.textShiftX,_=p+o.ty0-o.by/2+sa,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&f!=="start"?(s.attr("text-anchor","start"),T=y?-o.bx/2-o.tx2width/2+sa:-o.bx-sa):x==="right"&&f!=="end"&&(s.attr("text-anchor","end"),T=y?o.bx/2-o.tx2width/2-sa:o.bx+sa)),s.call(jl.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(jl.positionText,n(c.text2ShiftX+c.alignShift*sa+d),i(p+o.ty0-o.by/2+sa)),l.select("rect").call(Rf.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function uhe(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Iu(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Rn.castOption(n,t,v);return o(p)?p:Rn.extractOption({},a,"",d)}:function(v,d){return Rn.extractOption(i,a,v,d)};function s(v,d,p){var y=l(d,p);o(y)&&(e[v]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Rn.constrain(e.x0,0,e.xa._length),e.x1=Rn.constrain(e.x1,0,e.xa._length),e.y0=Rn.constrain(e.y0,0,e.ya._length),e.y1=Rn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:qf.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:qf.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var f=qf.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+f+" / -"+qf.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+f,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var u=qf.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+u+" / -"+qf.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+u,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function $R(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,f,u;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=wi.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;f=v&&v.xa,u=v&&v.ya;var y=u.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=f._offset+v.x,p=u._offset+v.y);var m=jR.readability(v.color,c)<1.5?wi.contrast(c):v.color,b=u.spikemode,T=u.spikethickness,_=u.spikecolor||m,x=qf.getPxPosition(e,u),A,E;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(A=x,E=d),b.indexOf("across")!==-1){var M=u._counterDomainMin,k=u._counterDomainMax;u.anchor==="free"&&(M=Math.min(M,u.position),k=Math.max(k,u.position)),A=i.l+M*i.w,E=i.l+k*i.w}a.insert("line",":first-child").attr({x1:A,x2:E,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":Rf.dashStyle(u.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:E,y1:p,y2:p,"stroke-width":T+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(u.side!=="right"?T:-T),cy:p,r:T,fill:_}).classed("spikeline",!0)}if(s){var F=r.vLinePoint,P,O;f=F&&F.xa,u=F&&F.ya;var R=f.spikesnap;R==="cursor"?(P=o.pointerX,O=o.pointerY):(P=f._offset+F.x,O=u._offset+F.y);var H=jR.readability(F.color,c)<1.5?wi.contrast(c):F.color,W=f.spikemode,ee=f.spikethickness,te=f.spikecolor||H,Q=qf.getPxPosition(e,f),J,j;if(W.indexOf("toaxis")!==-1||W.indexOf("across")!==-1){if(W.indexOf("toaxis")!==-1&&(J=Q,j=O),W.indexOf("across")!==-1){var se=f._counterDomainMin,le=f._counterDomainMax;f.anchor==="free"&&(se=Math.min(se,f.position),le=Math.max(le,f.position)),J=i.t+(1-le)*i.h,j=i.t+(1-se)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:J,y2:j,"stroke-width":ee,stroke:te,"stroke-dasharray":Rf.dashStyle(f.spikedash,ee)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:J,y2:j,"stroke-width":ee+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}W.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:Q-(f.side!=="top"?ee:-ee),r:ee,fill:te}).classed("spikeline",!0)}}}function che(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function QR(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function KR(e,r){return jl.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function vhe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,lq=e=>e.offsetLeft+e.clientLeft;function Vd(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Rn.apply3DTransform(t._invTransform)(n,i),f=Rn.apply3DTransform(t._invTransform)(o,l),u=s[0],c=s[1],v=f[0],d=f[1];return{x:u,y:c,width:v-u,height:d-c,top:Math.min(c,d),left:Math.min(u,v),right:Math.max(u,v),bottom:Math.max(c,d)}}});var _3=N((VLe,sq)=>{"use strict";var hhe=Ur(),dhe=ca(),phe=Nu().isUnifiedHover;sq.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&phe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=dhe.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),hhe.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var uq=N((YLe,fq)=>{"use strict";var mhe=Ur(),yhe=_3(),ghe=od();fq.exports=function(r,t){function a(n,i){return mhe.coerce(r,t,ghe,n,i)}yhe(r,t,a)}});var hq=N((WLe,vq)=>{"use strict";var cq=Ur(),bhe=Xg(),xhe=_3();vq.exports=function(r,t,a,n){function i(l,s){return cq.coerce(r,t,bhe,l,s)}var o=cq.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),xhe(r,t,i,o)}});var iA=N((jLe,dq)=>{"use strict";var _he=Ur(),whe=od();dq.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:_he.coerce(r,t,whe,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var yq=N((XLe,mq)=>{"use strict";var pq=Ur(),Ahe=od(),The=iA(),Mhe=_3();mq.exports=function(r,t){function a(u,c){return pq.coerce(r,t,Ahe,u,c)}var n=The(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),f=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&f===1||(o||l)&&s&&f===2)&&(t.dragmode="pan"),Mhe(r,t,a),pq.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var xq=N((ZLe,bq)=>{"use strict";var oA=Ur(),gq=Bt();bq.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(f){return function(u){return oA.coerceHoverinfo({hoverinfo:u},{_module:f._module},a)}}for(var i=0;i{"use strict";var Ehe=Bt(),khe=nA().hover;_q.exports=function(r,t,a){var n=Ehe.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&khe(r,t,a,!0);function o(){var s,f,u,c;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(f=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(u=l.xvals)!=null||(l.xvals=r._hoverXVals),(c=l.yvals)!=null||(l.yvals=r._hoverYVals),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Ou=N(($Le,Mq)=>{"use strict";var Che=ha(),w3=Ur(),Lhe=Bs(),Em=Nu(),Aq=od(),Tq=nA();Mq.exports={moduleType:"component",name:"fx",constants:Y1(),schema:{layout:Aq},attributes:Xg(),layoutAttributes:Aq,supplyLayoutGlobalDefaults:uq(),supplyDefaults:hq(),supplyLayoutDefaults:yq(),calc:xq(),getDistanceFunction:Em.getDistanceFunction,getClosest:Em.getClosest,inbox:Em.inbox,quadrature:Em.quadrature,appendArrayPointValue:Em.appendArrayPointValue,castHoverOption:Fhe,castHoverinfo:Rhe,hover:Tq.hover,unhover:Lhe.unhover,loneHover:Tq.loneHover,loneUnhover:Dhe,click:wq()};function Dhe(e){var r=w3.isD3Selection(e)?e:Che.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Fhe(e,r,t){return w3.castOption(e,r,"hoverlabel."+t)}function Rhe(e,r,t){function a(n){return w3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return w3.castOption(e,t,"hoverinfo",a)}});var rv=N(Bu=>{"use strict";Bu.selectMode=function(e){return e==="lasso"||e==="select"};Bu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Bu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Bu.selectingOrDrawing=function(e){return Bu.freeMode(e)||Bu.rectMode(e)}});var A3=N((KLe,Sq)=>{"use strict";Sq.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var T3=N((eDe,Eq)=>{"use strict";Eq.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var S3=N((rDe,kq)=>{"use strict";var M3=32;kq.exports={CIRCLE_SIDES:M3,i000:0,i090:M3/4,i180:M3/2,i270:M3/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var E3=N((tDe,Lq)=>{"use strict";var qhe=Ur().strTranslate;function Cq(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function Phe(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function Nhe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return Cq(e,t[r])}}function Ihe(e){return qhe(e.xaxis._offset,e.yaxis._offset)}Lq.exports={p2r:Cq,r2p:Phe,axValue:Nhe,getTransform:Ihe}});var tv=N(zu=>{"use strict";var Ohe=cm(),Rq=S3(),Wd=Rq.CIRCLE_SIDES,lA=Rq.SQRT2,qq=E3(),Dq=qq.p2r,Fq=qq.r2p,Bhe=[0,3,4,5,6,1,2],zhe=[0,3,4,1,2];zu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var Pq=Sn(),zq=rv(),Ghe=zq.drawMode,Uhe=zq.openMode,jd=S3(),Nq=jd.i000,Iq=jd.i090,Oq=jd.i180,Bq=jd.i270,Hhe=jd.cos45,Vhe=jd.sin45,Gq=E3(),C3=Gq.p2r,av=Gq.r2p,Yhe=Yc(),Whe=Yhe.clearOutline,L3=tv(),jhe=L3.readPaths,Xhe=L3.writePaths,Zhe=L3.ellipseOver,Jhe=L3.fixDatesForPaths;function $he(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!Ghe(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var Qhe=rv(),Khe=Qhe.selectMode,e0e=Yc(),r0e=e0e.clearOutline,sA=tv(),t0e=sA.readPaths,a0e=sA.writePaths,n0e=sA.fixDatesForPaths;Vq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,f=l.yaxis,u=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!Khe(c)&&u!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";Yq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var iv=N(Ii=>{"use strict";var Nf=Cm(),Wq=Ur(),nv=hn();Ii.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ii.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ii.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ii.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ii.extractPathCoords=function(e,r,t){var a=[],n=e.match(Nf.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Nf.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Ii.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Ii.shapePositionToRange(r);o=function(s){var f=Pf(r,t);return r._offset+r.r2p(l(s,!0))+f},r.type==="date"&&(o=Ii.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Ii.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Ii.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Ii.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Ii.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Ii.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Ii.getPathString=function(e,r){let t=r.type,a=nv.getRefType(r.xref),n=nv.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,f,u,c,v,d,p,y,m,b;function T(P,O,R,H){var W;if(P)if(O==="domain")H?W=function(ee){return P._offset+P._length*(1-ee)}:W=function(ee){return P._offset+P._length*ee};else{let ee=Ii.shapePositionToRange(P);W=function(te){return P._offset+P.r2p(ee(te,!0))},R==="path"&&P.type==="date"&&(W=Ii.decodeDate(W))}else H?W=function(ee){return i.t+i.h*(1-ee)}:W=function(ee){return i.l+i.w*ee};return W}if(a==="array"?(v=[],o=r.xref.map(function(P){return nv.getFromId(e,P)}),v=r.xref.map(function(P,O){return T(o[O],nv.getRefType(P),t,!1)})):(o=nv.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(P){return nv.getFromId(e,P)}),d=r.yref.map(function(P,O){return T(l[O],nv.getRefType(P),t,!0)})):(l=nv.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return i0e(r,v,d);if(a==="array")s=Pf(o[0],r.x0shift),f=Pf(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+f;else if(s=Pf(o,r.x0shift),f=Pf(o,r.x1shift),r.xsizemode==="pixel"){let P=v(r.xanchor);p=P+r.x0+s,y=P+r.x1+f}else p=v(r.x0)+s,y=v(r.x1)+f;if(n==="array")u=Pf(l[0],r.y0shift),c=Pf(l[1],r.y1shift),m=d[0](r.y0)+u,b=d[1](r.y1)+c;else if(u=Pf(l,r.y0shift),c=Pf(l,r.y1shift),r.ysizemode==="pixel"){let P=d(r.yanchor);m=P-r.y0+u,b=P-r.y1+c}else m=d(r.y0)+u,b=d(r.y1)+c;if(t==="line")return"M"+p+","+m+"L"+y+","+b;if(t==="rect")return"M"+p+","+m+"H"+y+"V"+b+"H"+p+"Z";var _=(p+y)/2,x=(m+b)/2,A=Math.abs(_-p),E=Math.abs(x-m),M="A"+A+","+E,k=_+A+","+x,F=_+","+(x-E);return"M"+k+M+" 0 1,1 "+F+M+" 0 0,1 "+k+"Z"};function i0e(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),f=Array.isArray(e.yref);var u=0,c=0;return a.replace(Nf.segmentRE,function(v){var d=0,p=v.charAt(0),y=Nf.paramIsX[p],m=Nf.paramIsY[p],b=Nf.numParams[p];let T=y.drawn!==void 0,_=m.drawn!==void 0,x=s?r[u]:r,A=f?t[c]:t;var E=v.slice(1).replace(Nf.paramRE,function(M){return y[d]?n==="pixel"?M=x(o)+Number(M):M=x(M):m[d]&&(i==="pixel"?M=A(l)-Number(M):M=A(M)),d++,d>b&&(M="X"),M});return d>b&&(E=E.replace(/[\s,]*X.*/,""),Wq.log("Ignoring extra params in segment "+v)),T&&u++,_&&c++,p+E})}Ii.getPixelShift=Pf;function Pf(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var uA=N((sDe,Zq)=>{"use strict";var o0e=Ur(),If=hn(),jq=no(),Xq=Va(),l0e=tv().readPaths,Qh=iv(),s0e=Qh.getPathString,Lm=t2(),f0e=ao().FROM_TL;Zq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=If.getFromId(r,a.xref),s=If.getFromId(r,a.yref);let le=Array.isArray(a.xref),Ee=Array.isArray(a.yref);for(var f in Lm){var u=typeof Lm[f]=="function",c=!le||Lm.simpleXVariables.includes(f),v=!Ee||Lm.simpleYVariables.includes(f);if(u&&c&&v){var d=Lm[f](a,l,s);d!==void 0&&(o[f]=d)}}}i=o0e.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},y=a.label.font,m={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),T=b.append("text").attr(m).classed("shape-label-text",!0).text(i),_,x,A,E;if(a.path){var M=s0e(r,a),k=l0e(M,r);_=1/0,A=1/0,x=-1/0,E=-1/0;for(var F=0;FQh.getDataToPixel(r,Fe,ne,!1,$e)(de),re=(de,ne,Fe,$e)=>Qh.getDataToPixel(r,Fe,ne,!0,$e)(de);if(a.xsizemode==="pixel"){let de=Ye(a.xanchor,void 0,Ge,ur),ne=Qh.getPixelShift(Ge,a.x0shift),Fe=Qh.getPixelShift(Ge,a.x1shift);_=de+a.x0+ne,x=de+a.x1+Fe}else _=Ye(a.x0,a.x0shift,Ge,ur),x=Ye(a.x1,a.x1shift,Le,Oe);if(a.ysizemode==="pixel"){let de=re(a.yanchor,void 0,Ve,Ue),ne=Qh.getPixelShift(Ve,a.y0shift),Fe=Qh.getPixelShift(Ve,a.y1shift);A=de-a.y0+ne,E=de-a.y1+Fe}else A=re(a.y0,a.y0shift,Ve,Ue),E=re(a.y1,a.y1shift,we,xr)}var ee=a.label.textangle;ee==="auto"&&(a.type==="line"?ee=u0e(_,A,x,E):ee=0),T.call(function(le){return le.call(Xq.font,y).attr({}),jq.convertToTspans(le,r),le});var te=Xq.bBox(T.node()),Q=c0e(_,A,x,E,a,ee,te),J=Q.textx,j=Q.texty,se=Q.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[se],y:j,x:J,transform:"rotate("+ee+","+J+","+j+")"}).call(jq.positionText,J,j)}};function u0e(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function c0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,f=n.label.padding,u=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,T,_;if(u==="line"){l==="start"?(m=e,b=r):l==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var v0e=Ur(),h0e=v0e.strTranslate,Jq=Bs(),Kq=rv(),d0e=Kq.drawMode,eP=Kq.selectMode,rP=Bt(),$q=ca(),R3=S3(),p0e=R3.i000,m0e=R3.i090,y0e=R3.i180,g0e=R3.i270,b0e=Yc(),tP=b0e.clearOutlineControllers,vA=tv(),F3=vA.pointsOnRectangle,cA=vA.pointsOnEllipse,x0e=vA.writePaths,_0e=D3().newShapes,w0e=D3().createShapeObj,A0e=fA(),T0e=uA();aP.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(cA(r[0])||a.hasText)&&l({redrawing:!0})}function l(Q){var J={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,J=_0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,J=A0e(t,a),i._fullLayout._reselect=!0),Object.keys(J).length&&rP.call((Q||{}).redrawing?"relayout":"_guiRelayout",i,J)}var s=i._fullLayout,f=s._zoomlayer,u=a.dragmode,c=d0e(u),v=eP(u);(c||v)&&(i._fullLayout._outlining=!0),tP(i),t.attr("d",x0e(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=M0e([],r);var T=f.append("g").attr("class","outline-controllers");P(T),te()}if(c&&a.hasText){var _=f.select(".label-temp"),x=w0e(t,a,a.dragmode);T0e(i,"label-temp",x,_)}function A(Q){y=+Q.srcElement.getAttribute("data-i"),m=+Q.srcElement.getAttribute("data-j"),d[y][m].moveFn=E}function E(Q,J){if(r.length){var j=b[y][m][1],se=b[y][m][2],le=r[y],Ee=le.length;if(F3(le)){var Ge=Q,Le=J;if(a.isActiveSelection){var Ve=Qq(le,m);Ve[1]===le[m][1]?Le=0:Ge=0}for(var we=0;we1&&!(Q.length===2&&Q[1][0]==="Z")&&(m===0&&(Q[0][0]="M"),r[y]=Q,o(),l())}}function F(Q,J){if(Q===2){y=+J.srcElement.getAttribute("data-i"),m=+J.srcElement.getAttribute("data-j");var j=r[y];!F3(j)&&!cA(j)&&k()}}function P(Q){d=[];for(var J=0;J{"use strict";var E0e=ha(),fP=Bt(),dA=Ur(),Kh=hn(),k0e=tv().readPaths,C0e=q3(),N3=uA(),uP=Yc().clearOutlineControllers,hA=ca(),I3=Va(),L0e=Ja().arrayEditor,nP=Bs(),iP=Ou(),oP=Kc(),e0=Cm(),Ko=iv(),pA=Ko.getPathString;hP.exports={draw:mA,drawOne:cP,eraseActiveShape:P0e,drawLabel:N3};function mA(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&iP.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&iP.click(e,o,t.id)}})}function vP(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=F0e(r,a,n);dA.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),I3.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");I3.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function F0e(e,r,t){let a=e._fullLayout._size;function n(l,s){let f=(Array.isArray(l)?l:[l]).map(v=>Kh.getFromId(e,v)).filter(Boolean);if(!f.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let u=f.map(function(v){return v._offset}),c=f.map(function(v){return v._offset+v._length});return[Math.min(...u),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function R0e(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",f=t.ysizemode==="pixel",u=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,y,m,b,T,_,x,A,E,M,k,F,P,O,R=E0e.select(r.node().parentNode),H=Kh.getFromId(e,t.xref),W=Kh.getRefType(t.xref),ee=Kh.getFromId(e,t.yref),te=Kh.getRefType(t.yref),Q=t.x0shift,J=t.x1shift,j=t.y0shift,se=t.y1shift,le=function(Ar,gr){var et=Ko.getDataToPixel(e,H,gr,!1,W);return et(Ar)},Ee=function(Ar,gr){var et=Ko.getDataToPixel(e,ee,gr,!0,te);return et(Ar)},Ge=Ko.getPixelToData(e,H,!1,W),Le=Ko.getPixelToData(e,ee,!0,te),Ve=Oe(),we={element:Ve.node(),gd:e,prepFn:Ye,doneFn:re,clickFn:de},ur;nP.init(we),Ve.node().onmousemove=xr;function Oe(){return u?Ue():r}function Ue(){var Ar=10,gr=Math.max(t.line.width,Ar),et=n.append("g").attr("data-index",a).attr("drag-helper",!0);et.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":gr,"stroke-opacity":"0"});var Hr={"fill-opacity":"0"},at=Math.max(gr/2,Ar);return et.append("circle").attr({"data-line-point":"start-point",cx:s?le(t.xanchor)+t.x0:le(t.x0,Q),cy:f?Ee(t.yanchor)-t.y0:Ee(t.y0,j),r:at}).style(Hr).classed("cursor-grab",!0),et.append("circle").attr({"data-line-point":"end-point",cx:s?le(t.xanchor)+t.x1:le(t.x1,J),cy:f?Ee(t.yanchor)-t.y1:Ee(t.y1,se),r:at}).style(Hr).classed("cursor-grab",!0),et}function xr(Ar){if(P3(e)){ur=null;return}if(u)Ar.target.tagName==="path"?ur="move":ur=Ar.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var gr=we.element.getBoundingClientRect(),et=gr.right-gr.left,Hr=gr.bottom-gr.top,at=Ar.clientX-gr.left,wr=Ar.clientY-gr.top,Vr=!c&&et>o&&Hr>l&&!Ar.shiftKey?nP.getCursor(at/et,1-wr/Hr):"move";oP(r,Vr),ur=Vr.split("-")[0]}}function Ye(Ar){P3(e)||(s&&(b=le(t.xanchor)),f&&(T=Ee(t.yanchor)),t.type==="path"?O=t.path:(d=s?t.x0:le(t.x0),p=f?t.y0:Ee(t.y0),y=s?t.x1:le(t.x1),m=f?t.y1:Ee(t.y1)),dm?(_=p,M="y0",x=m,k="y1"):(_=m,M="y1",x=p,k="y0"),xr(Ar),$e(n,t),Cr(r,t,e),we.moveFn=ur==="move"?ne:Fe,we.altKey=Ar.altKey)}function re(){P3(e)||(oP(r),Ke(n),vP(r,e,t),fP.call("_guiRelayout",e,i.getUpdateObj()))}function de(){P3(e)||Ke(n)}function ne(Ar,gr){if(t.type==="path"){var et=function(wr){return wr},Hr=et,at=et;s?v("xanchor",t.xanchor=Ge(b+Ar)):(Hr=function(Vr){return Ge(le(Vr)+Ar)},H&&H.type==="date"&&(Hr=Ko.encodeDate(Hr))),f?v("yanchor",t.yanchor=Le(T+gr)):(at=function(Vr){return Le(Ee(Vr)+gr)},ee&&ee.type==="date"&&(at=Ko.encodeDate(at))),v("path",t.path=lP(O,Hr,at))}else s?v("xanchor",t.xanchor=Ge(b+Ar)):(v("x0",t.x0=Ge(d+Ar)),v("x1",t.x1=Ge(y+Ar))),f?v("yanchor",t.yanchor=Le(T+gr)):(v("y0",t.y0=Le(p+gr)),v("y1",t.y1=Le(m+gr)));r.attr("d",pA(e,t)),$e(n,t),N3(e,a,t,R)}function Fe(Ar,gr){if(c){var et=function(Wr){return Wr},Hr=et,at=et;s?v("xanchor",t.xanchor=Ge(b+Ar)):(Hr=function(xt){return Ge(le(xt)+Ar)},H&&H.type==="date"&&(Hr=Ko.encodeDate(Hr))),f?v("yanchor",t.yanchor=Le(T+gr)):(at=function(xt){return Le(Ee(xt)+gr)},ee&&ee.type==="date"&&(at=Ko.encodeDate(at))),v("path",t.path=lP(O,Hr,at))}else if(u){if(ur==="resize-over-start-point"){var wr=d+Ar,Vr=f?p-gr:p+gr;v("x0",t.x0=s?wr:Ge(wr)),v("y0",t.y0=f?Vr:Le(Vr))}else if(ur==="resize-over-end-point"){var rt=y+Ar,Pe=f?m-gr:m+gr;v("x1",t.x1=s?rt:Ge(rt)),v("y1",t.y1=f?Pe:Le(Pe))}}else{var or=function(Wr){return ur.indexOf(Wr)!==-1},st=or("n"),kt=or("s"),Tr=or("w"),tr=or("e"),sr=st?_+gr:_,zr=kt?x+gr:x,nt=Tr?A+Ar:A,Yr=tr?E+Ar:E;f&&(st&&(sr=_-gr),kt&&(zr=x-gr)),(!f&&zr-sr>l||f&&sr-zr>l)&&(v(M,t[M]=f?sr:Le(sr)),v(k,t[k]=f?zr:Le(zr))),Yr-nt>o&&(v(F,t[F]=s?nt:Ge(nt)),v(P,t[P]=s?Yr:Ge(Yr)))}r.attr("d",pA(e,t)),$e(n,t),N3(e,a,t,R)}function $e(Ar,gr){(s||f)&&et();function et(){var Hr=gr.type!=="path",at=Ar.selectAll(".visual-cue").data([0]),wr=1;at.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":wr}).classed("visual-cue",!0);var Vr=le(s?gr.xanchor:dA.midRange(Hr?[gr.x0,gr.x1]:Ko.extractPathCoords(gr.path,e0.paramIsX))),rt=Ee(f?gr.yanchor:dA.midRange(Hr?[gr.y0,gr.y1]:Ko.extractPathCoords(gr.path,e0.paramIsY)));if(Vr=Ko.roundPositionForSharpStrokeRendering(Vr,wr),rt=Ko.roundPositionForSharpStrokeRendering(rt,wr),s&&f){var Pe="M"+(Vr-1-wr)+","+(rt-1-wr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";at.attr("d",Pe)}else if(s){var or="M"+(Vr-1-wr)+","+(rt-9-wr)+"v18 h2 v-18 Z";at.attr("d",or)}else{var st="M"+(Vr-9-wr)+","+(rt-1-wr)+"h18 v2 h-18 Z";at.attr("d",st)}}}function Ke(Ar){Ar.selectAll(".visual-cue").remove()}function Cr(Ar,gr,et){var Hr=gr.xref,at=gr.yref,wr=Kh.getFromId(et,Hr),Vr=Kh.getFromId(et,at),rt="";Hr!=="paper"&&!wr.autorange&&(rt+=Hr),at!=="paper"&&!Vr.autorange&&(rt+=at),I3.setClipUrl(Ar,rt?"clip"+et._fullLayout._uid+rt:null,et)}}function lP(e,r,t){return e.replace(e0.segmentRE,function(a){var n=0,i=a.charAt(0),o=e0.paramIsX[i],l=e0.paramIsY[i],s=e0.numParams[i],f=a.slice(1).replace(e0.paramRE,function(u){return n>=s||(o[n]?u=r(u):l[n]&&(u=t(u)),n++),u});return i+f})}function q0e(e,r){if(O3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){sP(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=sP,mA(e)}}}function sP(e){if(O3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(uP(e),delete e._fullLayout._activeShapeIndex,mA(e))}}function P0e(e){if(O3(e)){uP(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Xl=Bt(),dP=xi(),pP=Sn(),_a=T3(),N0e=B3().eraseActiveShape,z3=Ur(),oa=z3._,wa=wP.exports={};wa.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?oa(e,"Download plot as a PNG"):oa(e,"Download plot")},icon:_a.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};z3.notifier(oa(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Xl.call("downloadImage",e,t).then(function(a){z3.notifier(oa(e,"Snapshot succeeded")+" - "+a,"long",e)}).catch(function(){z3.notifier(oa(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};wa.sendDataToCloud={name:"sendDataToCloud",title:function(e){return oa(e,"Edit in Chart Studio")},icon:_a.disk,click:function(e){dP.sendDataToCloud(e)}};wa.editInChartStudio={name:"editInChartStudio",title:function(e){return oa(e,"Edit in Chart Studio")},icon:_a.pencil,click:function(e){dP.sendDataToCloud(e)}};wa.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return oa(e,"Zoom")},attr:"dragmode",val:"zoom",icon:_a.zoombox,click:bo};wa.pan2d={name:"pan2d",_cat:"pan",title:function(e){return oa(e,"Pan")},attr:"dragmode",val:"pan",icon:_a.pan,click:bo};wa.select2d={name:"select2d",_cat:"select",title:function(e){return oa(e,"Box Select")},attr:"dragmode",val:"select",icon:_a.selectbox,click:bo};wa.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return oa(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:_a.lasso,click:bo};wa.drawclosedpath={name:"drawclosedpath",title:function(e){return oa(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:_a.drawclosedpath,click:bo};wa.drawopenpath={name:"drawopenpath",title:function(e){return oa(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:_a.drawopenpath,click:bo};wa.drawline={name:"drawline",title:function(e){return oa(e,"Draw line")},attr:"dragmode",val:"drawline",icon:_a.drawline,click:bo};wa.drawrect={name:"drawrect",title:function(e){return oa(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:_a.drawrect,click:bo};wa.drawcircle={name:"drawcircle",title:function(e){return oa(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:_a.drawcircle,click:bo};wa.eraseshape={name:"eraseshape",title:function(e){return oa(e,"Erase active shape")},icon:_a.eraseshape,click:N0e};wa.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return oa(e,"Zoom in")},attr:"zoom",val:"in",icon:_a.zoom_plus,click:bo};wa.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return oa(e,"Zoom out")},attr:"zoom",val:"out",icon:_a.zoom_minus,click:bo};wa.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return oa(e,"Autoscale")},attr:"zoom",val:"auto",icon:_a.autoscale,click:bo};wa.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return oa(e,"Reset axes")},attr:"zoom",val:"reset",icon:_a.home,click:bo};wa.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return oa(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:_a.tooltip_basic,gravity:"ne",click:bo};wa.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return oa(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:_a.tooltip_compare,gravity:"ne",click:bo};function bo(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=pP.list(e,null,!0),s=i._cartesianSpikesEnabled,f,u;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,y;for(u=0;u{"use strict";var AP=bA(),B0e=Object.keys(AP),TP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],MP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(TP),Zd=[],z0e=function(e){if(MP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Zd.indexOf(r)===-1&&Zd.push(r),Zd.indexOf(t)===-1&&Zd.push(t)}};B0e.forEach(function(e){z0e(AP[e])});Zd.sort();SP.exports={DRAW_MODES:TP,backButtons:MP,foreButtons:Zd}});var _A=N((dDe,EP)=>{"use strict";var hDe=xA();EP.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var CP=N((pDe,kP)=>{"use strict";var G0e=Ur(),Dm=ca(),U0e=Ja(),H0e=_A();kP.exports=function(r,t){var a=r.modebar||{},n=U0e.newContainer(t,"modebar");function i(l,s){return G0e.coerce(a,n,H0e,l,s)}i("orientation"),i("bgcolor",Dm.addOpacity(t.paper_bgcolor,.5));var o=Dm.contrast(Dm.rgb(t.modebar.bgcolor));i("color",Dm.addOpacity(o,.3)),i("activecolor",Dm.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var RP=N((mDe,FP)=>{"use strict";var wA=ha(),V0e=xa(),U3=Ur(),LP=T3(),Y0e=Ng().version,W0e=new DOMParser;function DP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Of=DP.prototype;Of.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,f=this.locale!==t.locale;if(this.locale=t.locale,(l||s||f)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var u=this.getLogo();t.watermark&&(u.className=u.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(u,this.element.childNodes[0]):this.element.appendChild(u),this.hasLogo=!0}this.updateActiveButton(),U3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Of.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Of.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Of.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&wA.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||LP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Of.createIcon=function(e){var r=V0e(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=W0e.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Of.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=wA.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var f=!l.classed("active");l.classed("active",f),s(a,f)}}else{var u=i===null?i:U3.nestedProperty(r,i).get();l.classed("active",u===n),s(a,u===n)}})};Of.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Z0e=Sn(),qP=Ni(),AA=Bt(),J0e=Nu().isUnifiedHover,$0e=RP(),H3=bA(),Q0e=xA().DRAW_MODES,K0e=Ur().extendDeep;PP.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=ide(i):!a.displayModeBar&&a.watermark?o=[]:o=ede(r),n?n.update(r,o):t._modeBar=$0e(r,o)};function ede(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(J,j){if(typeof j=="string"){if(j.toLowerCase()===J.toLowerCase())return!0}else{var se=j.name,le=j._cat||j.name;if(se===J||le===J.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(J){for(var j=0;j1?(P=["toggleHover"],O=["resetViews"]):c?(F=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],O=["resetGeo"]):u?(P=["hoverClosest3d"],O=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(F=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],O=["resetViewMapbox"]):m?(F=["zoomInMap","zoomOutMap"],P=["toggleHover"],O=["resetViewMap"]):v?P=["hoverClosestPie"]:_?(P=["hoverClosestCartesian","hoverCompareCartesian"],O=["resetViewSankey"]):P=["toggleHover"],f&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(ade(t)||A)&&(P=[]),f&&!x&&(F=["zoomIn2d","zoomOut2d","autoScale2d"],O[0]!=="resetViews"&&(O=["resetScale2d"])),u?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:f&&!x||p?R=["zoom2d","pan2d"]:y||m||c?R=["pan2d"]:b&&(R=["zoom2d"]),tde(t)&&R.push("select2d","lasso2d");var H=[],W=function(J){H.indexOf(J)===-1&&P.indexOf(J)!==-1&&H.push(J)};if(Array.isArray(l)){for(var ee=[],te=0;te{"use strict";IP.exports={moduleType:"component",name:"modebar",layoutAttributes:_A(),supplyLayoutDefaults:CP(),manage:NP()}});var MA=N((bDe,OP)=>{"use strict";var ode=ao().FROM_BL;OP.exports=function(r,t,a){a===void 0&&(a=ode[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Rm=N(Fm=>{"use strict";var r0=Ur(),SA=Pd(),Gs=Sn().id2name,lde=Vl(),BP=MA(),sde=J2(),fde=ei().ALMOST_EQUAL,ude=ao().FROM_BL;Fm.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,f,u,c,v,d,p;for(l=0;li?t.slice(i):a.slice(n))+o}function vde(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;ofde*p&&!T)){for(i=0;iR&&seP&&(P=se);var Ee=(P-F)/(2*O);c/=Ee,F=s.l2r(F),P=s.l2r(P),s.range=s._input.range=E{"use strict";var Y3=ha(),xo=Bt(),Tl=xi(),Zl=Ur(),CA=no(),LA=A3(),qm=ca(),Jd=Va(),HP=dm(),XP=TA(),Pm=hn(),Gu=ao(),ZP=Rm(),hde=ZP.enforce,dde=ZP.clean,VP=Pd().doAutoRange,JP="start",pde="middle",$P="end",mde=ui().zindexSeparator;Ai.layoutStyles=function(e){return Zl.syncOrAsync([Tl.doAutoMargin,gde],e)};function yde(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function gde(e){var r=e._fullLayout,t=r._size,a=t.p,n=Pm.list(e,"",!0),i,o,l,s,f,u;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(Jd.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Ai.drawMainTitle(e),XP.manage(e),!r._has("cartesian"))return Tl.previousPromises(e);function c(Ye,re,de){var ne=Ye._lw/2;if(Ye._id.charAt(0)==="x"){if(re){if(de==="top")return re._offset-a-ne}else return t.t+t.h*(1-(Ye.position||0))+ne%1;return re._offset+re._length+a+ne}if(re){if(de==="right")return re._offset+re._length+a+ne}else return t.l+t.w*(Ye.position||0)+ne%1;return re._offset-a-ne}for(i=0;i0){wde(e,i,f,s),l.attr({x:o,y:i,"text-anchor":a,dy:jP(r.yanchor)}).call(CA.positionText,o,i);var u=(r.text.match(CA.BR_TAG_ALL)||[]).length;if(u){var c=Gu.LINE_SPACING*u+Gu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=Y3.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+HP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:jP(r.yanchor)}).call(CA.positionText,o,y)}}}};function bde(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Zl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return Zl.isTopAnchor(r)&&t==="t"||Zl.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=xde(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function wde(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&bde(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Tl.allowAutoMargin(e,n),Tl.autoMargin(e,n,l)}function Ade(e,r){var t=e.title,a=e._size,n=0;switch(r===JP?n=t.pad.l:r===$P&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function Tde(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===Gu.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function jP(e){return e==="top"?Gu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Gu.MID_SHIFT+"em"}function Mde(e){var r=e.title,t=pde;return Zl.isRightAnchor(r)?t=$P:Zl.isLeftAnchor(r)&&(t=JP),t}function Sde(e){var r=e.title,t="0em";return Zl.isTopAnchor(r)?t=Gu.CAP_SHIFT+"em":Zl.isMiddleAnchor(r)&&(t=Gu.MID_SHIFT+"em"),t}Ai.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Ede=tv().readPaths,kde=q3(),QP=Yc().clearOutlineControllers,DA=ca(),KP=Va(),Cde=Ja().arrayEditor,eN=iv(),Lde=eN.getPathString;tN.exports={draw:j3,drawOne:rN,activateLastSelection:Rde};function j3(e){var r=e._fullLayout;QP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=o.append("path").attr(s).style("opacity",m?.1:f).call(DA.stroke,c).call(DA.fill,u).call(KP.dashLine,m?"solid":d,m?4+v:v);if(Dde(b,e,a),p){var T=Cde(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=Ede(l,e);kde(x,b,_)}else b.style("pointer-events",m?"all":"none");y[m]=b}var A=y[0],E=y[1];E.node().addEventListener("click",function(){return Fde(e,A)})}}function Dde(e,r,t){var a=t.xref+t.yref;KP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Fde(e,r){if(X3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){FA(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=FA,j3(e)}}}function Rde(e){if(X3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=FA,j3(e)}}function FA(e){if(X3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(QP(e),delete e._fullLayout._activeSelectionIndex,j3(e))}}});var nN=N((ADe,aN)=>{function qde(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}aN.exports=qde});var oN=N((TDe,iN)=>{function Pde(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],f=t[0],u=t[1];return(l-i)*(u-o)-(s-o)*(f-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],f=l*o+i*s;if(f-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-u)*(i-c)/(l-c)+u-n>e&&(s=!s),o=u,l=c}return s}};return r}iN.exports=Pde});var sN=N((MDe,lN)=>{var Nde={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};lN.exports=Nde});var uN=N((SDe,fN)=>{var Nm=sN();function Ide(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Nm.create();function o(p,y,m,b,T,_){var x=r.pointsCompare(y,T);return x!==0?x:r.pointsSame(m,_)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?T:_,b?_:T)?1:-1}function l(p,y){i.insertBefore(p,function(m){var b=o(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=Nm.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return l(m,p.end),m}function f(p,y,m){var b=Nm.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,l(b,p.pt)}function u(p,y){var m=s(p,y);return f(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,l(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),u(m,p.primary)}function d(p,y){var m=Nm.create();function b(ee,te){var Q=ee.seg.start,J=ee.seg.end,j=te.seg.start,se=te.seg.end;return r.pointsCollinear(Q,j,se)?r.pointsCollinear(J,j,se)||r.pointAboveOrOnLine(J,j,se)?1:-1:r.pointAboveOrOnLine(Q,j,se)?1:-1}function T(ee){return m.findTransition(function(te){var Q=b(ee,te.ev);return Q>0})}function _(ee,te){var Q=ee.seg,J=te.seg,j=Q.start,se=Q.end,le=J.start,Ee=J.end;t&&t.checkIntersection(Q,J);var Ge=r.linesIntersect(j,se,le,Ee);if(Ge===!1){if(!r.pointsCollinear(j,se,le)||r.pointsSame(j,Ee)||r.pointsSame(se,le))return!1;var Le=r.pointsSame(j,le),Ve=r.pointsSame(se,Ee);if(Le&&Ve)return te;var we=!Le&&r.pointBetween(j,le,Ee),ur=!Ve&&r.pointBetween(se,le,Ee);if(Le)return ur?v(te,se):v(ee,Ee),te;we&&(Ve||(ur?v(te,se):v(ee,Ee)),v(te,j))}else Ge.alongA===0&&(Ge.alongB===-1?v(ee,le):Ge.alongB===0?v(ee,Ge.pt):Ge.alongB===1&&v(ee,Ee)),Ge.alongB===0&&(Ge.alongA===-1?v(te,j):Ge.alongA===0?v(te,Ge.pt):Ge.alongA===1&&v(te,se));return!1}for(var x=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let ee=function(){if(M){var te=_(A,M);if(te)return te}return k?_(A,k):!1};var W=ee;t&&t.segmentNew(A.seg,A.primary);var E=T(A),M=E.before?E.before.ev:null,k=E.after?E.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,k?k.seg:!1);var F=ee();if(F){if(e){var P;A.seg.myFill.below===null?P=!0:P=A.seg.myFill.above!==A.seg.myFill.below,P&&(F.seg.myFill.above=!F.seg.myFill.above)}else F.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(F.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var P;A.seg.myFill.below===null?P=!0:P=A.seg.myFill.above!==A.seg.myFill.below,k?A.seg.myFill.below=k.seg.myFill.above:A.seg.myFill.below=p,P?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var O;k?A.primary===k.primary?O=k.seg.otherFill.above:O=k.seg.myFill.above:O=A.primary?y:p,A.seg.otherFill={above:O,below:O}}t&&t.status(A.seg,M?M.seg:!1,k?k.seg:!1),A.other.status=E.insert(Nm.node({ev:A}))}else{var R=A.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(R.prev)&&m.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!A.primary){var H=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=H}x.push(A.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b{function Ode(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},u=s;function c(W,ee,te){return u.index=W,u.matches_head=ee,u.matches_pt1=te,u===s?(u=f,!1):(u=null,!0)}for(var v=0;v{function Im(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var Bde={union:function(e,r){return Im(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Im(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Im(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Im(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Im(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};hN.exports=Bde});var mN=N((CDe,pN)=>{var zde={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var u=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[u]})}for(var l=o(i[0]),s=1;s{var Gde=nN(),Ude=oN(),yN=uN(),Hde=vN(),Om=dN(),gN=mN(),Jl=!1,Bm=Ude(),el;el={buildLog:function(e){return e===!0?Jl=Gde():e===!1&&(Jl=!1),Jl===!1?!1:Jl.list},epsilon:function(e){return Bm.epsilon(e)},segments:function(e){var r=yN(!0,Bm,Jl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=yN(!1,Bm,Jl);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Om.union(e.combined,Jl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Om.intersect(e.combined,Jl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Om.difference(e.combined,Jl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Om.differenceRev(e.combined,Jl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Om.xor(e.combined,Jl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Hde(e.segments,Bm,Jl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return gN.toPolygon(el,e)},polygonToGeoJSON:function(e){return gN.fromPolygon(el,Bm,e)},union:function(e,r){return zm(e,r,el.selectUnion)},intersect:function(e,r){return zm(e,r,el.selectIntersect)},difference:function(e,r){return zm(e,r,el.selectDifference)},differenceRev:function(e,r){return zm(e,r,el.selectDifferenceRev)},xor:function(e,r){return zm(e,r,el.selectXor)}};function zm(e,r,t){var a=el.segments(e),n=el.segments(r),i=el.combine(a,n),o=t(i);return el.polygon(o)}typeof window=="object"&&(window.PolyBool=el);bN.exports=el});var wN=N((DDe,_N)=>{_N.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,f=0,u=s-1;fo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;y&&(l=!l)}return l}});var PA=N((FDe,AN)=>{"use strict";var qA=Kg().dot,Z3=ei().BADNUM,J3=AN.exports={};J3.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===Z3||bo||y&&f(p))}function c(p,y){var m=p[0],b=p[1];if(m===Z3||mn||b===Z3||bo)return!1;var T=t.length,_=t[0][0],x=t[0][1],A=0,E,M,k,F,P;for(E=1;EMath.max(M,_)||b>Math.max(k,x)))if(bl||Math.abs(qA(c,f))>n)return!0;return!1};J3.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var f=a.length,u=n;a.splice(i+1);for(var c=u+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var MN=N((RDe,TN)=>{"use strict";TN.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var jN=N((qDe,WN)=>{"use strict";var SN=xN(),Vde=wN(),Hm=Bt(),Yde=Va().dashStyle,Gm=ca(),Wde=Ou(),jde=Nu().makeEventData,Xm=rv(),Xde=Xm.freeMode,Zde=Xm.rectMode,Vm=Xm.drawMode,BA=Xm.openMode,zA=Xm.selectMode,EN=iv(),kN=Cm(),RN=q3(),qN=Yc().clearOutline,PN=tv(),NA=PN.handleEllipse,Jde=PN.readPaths,$de=D3().newShapes,Qde=fA(),Kde=RA().activateLastSelection,Q3=Ur(),epe=Q3.sorterAsc,NN=PA(),Um=h2(),$l=Sn().getFromId,rpe=A3(),tpe=W3().redrawReglTraces,K3=MN(),Bf=K3.MINSELECT,ape=NN.filter,GA=NN.tester,UA=E3(),CN=UA.p2r,npe=UA.axValue,ipe=UA.getTransform;function HA(e){return e.subplot!==void 0}function ope(e,r,t,a,n){var i=!HA(a),o=Xde(n),l=Zde(n),s=BA(n),f=Vm(n),u=zA(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,y=p._fullLayout,m=u&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,T=a.element.getBoundingClientRect(),_=a.plotinfo,x=ipe(_),A=r-T.left,E=t-T.top;y._calcInverseTransform(p);var M=Q3.apply3DTransform(y._invTransform)(A,E);A=M[0],E=M[1];var k=y._invScaleX,F=y._invScaleY,P=A,O=E,R="M"+A+","+E,H=a.xaxes[0],W=a.yaxes[0],ee=H._length,te=W._length,Q=e.altKey&&!(Vm(n)&&s),J,j,se,le,Ee,Ge,Le;ON(e,p,a),o&&(J=ape([[A,E]],K3.BENDPX));var Ve=b.selectAll("path.select-outline-"+_.id).data([1]),we=f?y.newshape:y.newselection;f&&(a.hasText=we.label.text||we.label.texttemplate);var ur=f&&!s?we.fillcolor:"rgba(0,0,0,0)",Oe=we.line.color||(i?Gm.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");Ve.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:f?we.opacity/2:1,"stroke-dasharray":Yde(we.line.dash,we.line.width),"stroke-width":we.line.width+"px","shape-rendering":"crispEdges"}).call(Gm.stroke,Oe).call(Gm.fill,ur).attr("fill-rule","evenodd").classed("cursor-move",!!f).attr("transform",x).attr("d",R+"Z");var Ue=b.append("path").attr("class","zoombox-corners").style({fill:Gm.background,stroke:Gm.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(f&&a.hasText){var xr=b.select(".label-temp");xr.empty()&&(xr=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ye=y._uid+K3.SELECTID,re=[],de=eb(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Fe=H._id,$e=W._id;HN(p,Fe,$e,de);for(var Ke=(p.layout||{}).selections||[],Cr=[],Ar=!1,gr=0;gr=0){p._fullLayout._deactivateShape(p);return}if(!f){var Ke=y.clickmode;Um.done(Ye).then(function(){if(Um.clear(Ye),Fe===2){for(Ve.remove(),Ee=0;Ee-1&&IN($e,p,a.xaxes,a.yaxes,a.subplot,a,Ve),Ke==="event"&&jm(p,void 0);Wde.click(p,$e,_.id)}).catch(Q3.error)}},a.doneFn=function(){Ue.remove(),Um.done(Ye).then(function(){Um.clear(Ye),!m&&le&&a.selectionDefs&&(le.subtract=Q,a.selectionDefs.push(le),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,se)),(m||f)&&Ym(a,m),a.doneFnCompleted&&a.doneFnCompleted(re),u&&jm(p,Le)}).catch(Q3.error)}}function IN(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,f=s.clickmode,u=f.indexOf("event")>-1,c=[],v,d,p,y,m,b,T,_,x,A;if(cpe(l)){ON(e,r,i),v=eb(r,t,a,n);var E=vpe(l,v),M=E.pointNumbers.length>0;if(M?hpe(v,E):dpe(v)&&(T=DN(E))){for(o&&o.remove(),A=0;A=0}function upe(e){return e._fullLayout._activeSelectionIndex>=0}function Ym(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;fpe(n)&&n._fullLayout._deactivateShape(n),upe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Vm(t),s=zA(t);if(l||s){var f=o.selectAll(".select-outline-"+a.id);if(f&&n._fullLayout._outlining){var u;l&&(u=$de(f,e)),u&&Hm.call("_guiRelayout",n,{shapes:u});var c;s&&!HA(e)&&(c=Qde(f,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Hm.call("_guiRelayout",n,{selections:c}).then(function(){r&&Kde(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function LN(e){return e._id}function eb(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(LN),o=t.map(LN),l,s,f;for(f=0;f0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function hpe(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Wm(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var Fe=FN(e,!0);if(Fe.length){var $e=Fe[0].xref,Ke=Fe[0].yref;if($e&&Ke){var Cr=VN(Fe),Ar=YN([$l(e,$e,"x"),$l(e,Ke,"y")]);Ar(re,Cr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ne&&jm(e,re),v._reselect=!1}if(!o&&v._deselect){var gr=v._deselect;l=gr.xref,s=gr.yref,ype(l,s,u)||HN(e,l,s,a),ne&&(re.points.length?jm(e,re):WA(e)),v._deselect=!1}return{eventData:re,selectionTesters:t}}function mpe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";XN.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Zm=N((NDe,ZN)=>{"use strict";ZN.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var $d=N((ODe,QN)=>{"use strict";var JN=jA(),$N=Ui(),rb=ui(),wpe=Ja().templatedArray,IDe=Zm();QN.exports=wpe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:$N({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:JN.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:JN.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",rb.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",rb.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",rb.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",rb.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:$N({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Jm=N((BDe,KN)=>{"use strict";KN.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var XA=N((zDe,eI)=>{"use strict";eI.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var lv=N((GDe,sI)=>{"use strict";var rI=um().axisHoverFormat,{hovertemplateAttrs:Ape,texttemplateAttrs:Tpe,templatefallbackAttrs:tI}=vd(),aI=Nh(),Mpe=Ui(),nI=Nc().dash,Spe=Nc().pattern,Epe=Va(),kpe=Jm(),$m=Gn().extendFlat,Cpe=XA();function iI(e){return{valType:"any",dflt:0,editType:"calc"}}function oI(e){return{valType:"any",editType:"calc"}}function lI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}sI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:iI("x"),yperiod:iI("y"),xperiod0:oI("x0"),yperiod0:oI("y0"),xperiodalignment:lI("x"),yperiodalignment:lI("y"),xhoverformat:rI("x"),yhoverformat:rI("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Tpe(),texttemplatefallback:tI({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Ape({},{keys:kpe.eventDataKeys}),hovertemplatefallback:tI(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:$m({},nI,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Cpe(!0),fillgradient:$m({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Spe,marker:$m({symbol:{valType:"enumerated",values:Epe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:$m({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:$m({},nI,{arrayOk:!0}),editType:"calc"},aI("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},aI("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Mpe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var ZA=N((HDe,cI)=>{"use strict";var fI=$d(),uI=lv().line,Lpe=Nc().dash,tb=Gn().extendFlat,Dpe=Rs().overrideAll,Fpe=Ja().templatedArray,UDe=Zm();cI.exports=Dpe(Fpe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:tb({},fI.xref,{}),yref:tb({},fI.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:uI.color,width:tb({},uI.width,{min:1,dflt:1}),dash:tb({},Lpe,{dflt:"dot"})}}),"arraydraw","from-root")});var pI=N((VDe,dI)=>{"use strict";var vI=Ur(),ab=hn(),Rpe=bl(),qpe=ZA(),hI=iv();dI.exports=function(r,t){Rpe(r,t,{name:"selections",handleItemDefaults:Ppe});for(var a=t.selections,n=0;n{"use strict";mI.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Qm=N((WDe,xI)=>{"use strict";var Npe=Bt(),gI=Ur(),bI=Sn();xI.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Npe.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,f=s.xaxis,u=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var _I=RA(),Km=jN();wI.exports={moduleType:"component",name:"selections",layoutAttributes:ZA(),supplyLayoutDefaults:pI(),supplyDrawNewSelectionDefaults:yI(),includeBasePlot:Qm()("selections"),draw:_I.draw,drawOne:_I.drawOne,reselect:Km.reselect,prepSelect:Km.prepSelect,clearOutline:Km.clearOutline,clearSelectionsCache:Km.clearSelectionsCache,selectOnClick:Km.selectOnClick}});var HI=N((XDe,UI)=>{"use strict";var e6=ha(),Ql=Ur(),AI=Ql.numberFormat,Ipe=Ls(),Ope=Fw(),nb=Bt(),FI=Ql.strTranslate,Bpe=no(),TI=ca(),sv=Va(),zpe=Ou(),MI=hn(),Gpe=Kc(),Upe=Bs(),RI=rv(),ib=RI.selectingOrDrawing,Hpe=RI.freeMode,Vpe=ao().FROM_TL,Ype=A3(),Wpe=W3().redrawReglTraces,jpe=xi(),$A=Sn().getFromId,Xpe=Qd().prepSelect,Zpe=Qd().clearOutline,Jpe=Qd().selectOnClick,JA=MA(),r6=ui(),SI=r6.MINDRAG,Io=r6.MINZOOM,EI=!0;function $pe(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,f=o+l==="nsew",u=(o+l).length===1,c,v,d,p,y,m,b,T,_,x,A,E,M,k,F,P,O,R,H,W,ee,te,Q;t+=r.yaxis._shift;function J(){if(c=r.xaxis,v=r.yaxis,_=c._length,x=v._length,b=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var tr=r.overlays,sr=0;sr=0){zr._fullLayout._deactivateShape(zr);return}var nt=zr._fullLayout.clickmode;if(KA(zr),tr===2&&!u&&rt(),f)nt.indexOf("select")>-1&&Jpe(sr,zr,y,m,r.id,le),nt.indexOf("event")>-1&&zpe.click(zr,sr,r.id);else if(tr===1&&u){var Yr=o?v:c,Wr=o==="s"||l==="w"?0:1,xt=Yr._name+".range["+Wr+"]",jr=Qpe(Yr,Wr),ot="left",dr="middle";if(Yr.fixedrange)return;o?(dr=o==="n"?"top":"bottom",Yr.side==="right"&&(ot="right")):l==="e"&&(ot="right"),zr._context.showAxisRangeEntryBoxes&&e6.select(se).call(Bpe.makeEditable,{gd:zr,immediate:!0,background:zr._fullLayout.paper_bgcolor,text:String(jr),fill:Yr.tickfont?Yr.tickfont.color:"#444",horizontalAlign:ot,verticalAlign:dr}).on("edit",function(Se){var Ie=Yr.d2r(Se);Ie!==void 0&&nb.call("_guiRelayout",zr,xt,Ie)})}}Upe.init(le);var Le,Ve,we,ur,Oe,Ue,xr,Ye,re,de;function ne(tr,sr,zr){var nt=se.getBoundingClientRect();Le=sr-nt.left,Ve=zr-nt.top,e._fullLayout._calcInverseTransform(e);var Yr=Ql.apply3DTransform(e._fullLayout._invTransform)(Le,Ve);Le=Yr[0],Ve=Yr[1],we={l:Le,r:Le,w:0,t:Ve,b:Ve,h:0},ur=e._hmpixcount?e._hmlumcount/e._hmpixcount:Ipe(e._fullLayout.plot_bgcolor).getLuminance(),Oe="M0,0H"+_+"V"+x+"H0V0",Ue=!1,xr="xy",de=!1,Ye=NI(s,ur,b,T,Oe),re=II(s,b,T)}function Fe(tr,sr){if(e._transitioningWithDuration)return!1;var zr=Math.max(0,Math.min(_,te*tr+Le)),nt=Math.max(0,Math.min(x,Q*sr+Ve)),Yr=Math.abs(zr-Le),Wr=Math.abs(nt-Ve);we.l=Math.min(Le,zr),we.r=Math.max(Le,zr),we.t=Math.min(Ve,nt),we.b=Math.max(Ve,nt);function xt(){xr="",we.r=we.l,we.t=we.b,re.attr("d","M0,0Z")}if(A.isSubplotConstrained)Yr>Io||Wr>Io?(xr="xy",Yr/_>Wr/x?(Wr=Yr*x/_,Ve>nt?we.t=Ve-Wr:we.b=Ve+Wr):(Yr=Wr*_/x,Le>zr?we.l=Le-Yr:we.r=Le+Yr),re.attr("d",ob(we))):xt();else if(E.isSubplotConstrained)if(Yr>Io||Wr>Io){xr="xy";var jr=Math.min(we.l/_,(x-we.b)/x),ot=Math.max(we.r/_,(x-we.t)/x);we.l=jr*_,we.r=ot*_,we.b=(1-jr)*x,we.t=(1-ot)*x,re.attr("d",ob(we))}else xt();else!k||Wr0){var Se;if(E.isSubplotConstrained||!M&&k.length===1){for(Se=0;Se1&&(xt.maxallowed!==void 0&&P===(xt.range[0]1&&(jr.maxallowed!==void 0&&O===(jr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function e1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function NI(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",FI(t,a)).attr("d",n+"Z")}function II(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:TI.background,stroke:TI.defaultLine,"stroke-width":1,opacity:0}).attr("transform",FI(r,t)).attr("d","M0,0Z")}function OI(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),BI(e,r,n,i)}function BI(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function KA(e){e6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function zI(e){EI&&e.data&&e._context.showTips&&(Ql.notifier(Ql._(e,"Double-click to zoom back out"),"long",e),EI=!1)}function r1e(e,r){return"M"+(e.l-.5)+","+(r-Io-.5)+"h-3v"+(2*Io+1)+"h3ZM"+(e.r+.5)+","+(r-Io-.5)+"h3v"+(2*Io+1)+"h-3Z"}function t1e(e,r){return"M"+(r-Io-.5)+","+(e.t-.5)+"v-3h"+(2*Io+1)+"v3ZM"+(r-Io-.5)+","+(e.b+.5)+"v3h"+(2*Io+1)+"v-3Z"}function ob(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Io)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function LI(e,r,t,a,n){for(var i=!1,o={},l={},s,f,u,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var a1e=ha(),lb=Ou(),n1e=Bs(),i1e=Kc(),Us=HI().makeDragBox,Ti=ui().DRAGGERSIZE;sb.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){a1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var f=Us(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");f.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&lb.hover(r,v,i)},lb.hover(r,v,i),r._fullLayout._lasthover=f,r._fullLayout._hoversubplot=i},f.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,n1e.unhover(r,v))},r._context.showAxisDragHandles&&(Us(r,o,l._offset-Ti,s._offset-Ti,Ti,Ti,"n","w"),Us(r,o,l._offset+l._length,s._offset-Ti,Ti,Ti,"n","e"),Us(r,o,l._offset-Ti,s._offset+s._length,Ti,Ti,"s","w"),Us(r,o,l._offset+l._length,s._offset+s._length,Ti,Ti,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var u=l._mainLinePosition;l.side==="top"&&(u-=Ti),Us(r,o,l._offset+l._length*.1,u,l._length*.8,Ti,"","ew"),Us(r,o,l._offset,u,l._length*.1,Ti,"","w"),Us(r,o,l._offset+l._length*.9,u,l._length*.1,Ti,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ti),Us(r,o,c,s._offset+s._length*.1,Ti,s._length*.8,"ns",""),Us(r,o,c,s._offset+s._length*.9,Ti,s._length*.1,"s",""),Us(r,o,c,s._offset,Ti,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,lb.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,lb.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},sb.updateFx(r)}};sb.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";i1e(r._draggers,t)}});var WI=N((JDe,YI)=>{"use strict";var VI=Bt();YI.exports=function(r){for(var t=VI.layoutArrayContainers,a=VI.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var o1e=Rc(),a6=Qg(),ey=Sh(),l1e=J5().sorterAsc,n6=Bt();ry.containerArrayMatch=WI();var s1e=ry.isAddVal=function(r){return r==="add"||o1e(r)},jI=ry.isRemoveVal=function(r){return r===null||r==="remove"};ry.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=n6.getComponentMethod(o,"supplyLayoutDefaults"),s=n6.getComponentMethod(o,"draw"),f=n6.getComponentMethod(o,"drawOne"),u=n.replot||n.recalc||l===a6||s===a6,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&ey.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(jI(d))t.set(null);else if(Array.isArray(d))t.set(d);else return ey.warn("Unrecognized full array edit value",o,d),!0;return u?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(l1e),y=t.get(),m=y||[],b=i(v,o).get(),T=[],_=-1,x=m.length,A,E,M,k,F,P,O,R;for(A=0;Am.length-(O?0:1)){ey.warn("index out of range",o,M);continue}if(P!==void 0)F.length>1&&ey.warn("Insertion & removal are incompatible with edits to the same index.",o,M),jI(P)?T.push(M):O?(P==="add"&&(P={}),m.splice(M,0,P),b&&b.splice(M,0,{})):ey.warn("Unrecognized full object edit value",o,M,P),_===-1&&(_=M);else for(E=0;E=0;A--)m.splice(T[A],1),b&&b.splice(T[A],1);if(m.length?y||t.set(m):t.set(null),u)return!1;if(l(c,v),f!==a6){var H;if(_===-1)H=p;else{for(x=Math.max(m.length,x),H=[],A=0;A=_));A++)H.push(M);for(A=_;A{"use strict";var QI=xa(),KI=Bt(),_o=Ur(),ty=xi(),eO=Sn(),rO=ca(),ay=eO.cleanId,f1e=eO.getFromTrace,i6=KI.traceIs,u1e=["x","y","z"];Kl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&_o.log("Clearing previous rejected promises from queue."),e._promises=[]};Kl.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(ty.subplotsRegistry.cartesian||{}).attrRegex,n=(ty.subplotsRegistry.polar||{}).attrRegex,i=(ty.subplotsRegistry.ternary||{}).attrRegex,o=(ty.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),rO.clean(e),e.template&&e.template.layout&&Kl.cleanLayout(e.template.layout),e};function Kd(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=ay(a,n,!0))}Kl.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Kl.hasParent=function(e,r){for(var t=$I(r);t;){if(t in e)return!0;t=$I(t)}return!1};Kl.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>_o.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;a_o.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?o6(n,i):!1))return!1}return!0}return!1};Kl.collectionsAreEqual=o6});var v6=N(da=>{"use strict";var vb=ha(),h1e=xa(),d1e=f4(),bt=Ur(),Ka=bt.nestedProperty,f6=am(),Oo=NC(),es=Bt(),bb=Td(),zt=xi(),wo=hn(),p1e=Dw(),m1e=Vl(),l6=Va(),y1e=ca(),g1e=t6().initInteractions,b1e=Wc(),x1e=Qd().clearOutline,lO=Mh().dfltConfig,ub=XI(),jn=tO(),Ba=W3(),fv=Rs(),_1e=ui().AX_NAME_PATTERN,s6=0,aO=5;function w1e(e,r,t,a){var n;if(e=bt.getGraphDiv(e),f6.init(e),bt.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=f6.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!bt.isPlotDiv(e)&&bt.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return da.addFrames(e,n)}fO(e,a),t||(t={}),vb.select(e).classed("js-plotly-plot",!0),l6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(jn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=jn.cleanLayout(t)),zt.supplyDefaults(e);var f=e._fullLayout,u=f._has("cartesian");f._replotting=!0,(s||f._shouldCreateBgLayer)&&(Y1e(e),f._shouldCreateBgLayer&&delete f._shouldCreateBgLayer),l6.initGradients(e),l6.initPatterns(e),s&&wo.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function uO(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),db(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&db(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function E1e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&u=0&&u0&&typeof k.parts[O]!="string";)O--;var R=k.parts[O],H=k.parts[O-1]+"."+R,W=k.parts.slice(0,O).join("."),ee=Ka(e.layout,W).get(),te=Ka(a,W).get(),Q=k.get();if(F!==void 0){b[M]=F,T[M]=R==="reverse"?F:Uu(Q);var J=bb.getLayoutValObject(a,k.parts);if(J&&J.impliedEdits&&F!==null)for(var j in J.impliedEdits)_(bt.relativeAttr(M,j),J.impliedEdits[j]);if(["width","height"].indexOf(M)!==-1)if(F){_("autosize",null);var se=M==="height"?"width":"height";_(se,a[se])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",F?null:a.width),_("height",F?null:a.height);else if(H.match(bO))E(H),Ka(a,W+"._inputRange").set(null);else if(H.match(xO)){E(H),Ka(a,W+"._inputRange").set(null);var le=Ka(a,W).get();le._inputDomain&&(le._input.domain=le._inputDomain.slice())}else H.match(D1e)&&Ka(a,W+"._inputDomain").set(null);if(R==="type"){A=ee;var Ee=te.type==="linear"&&F==="log",Ge=te.type==="log"&&F==="linear";if(Ee||Ge){if(!A||!A.range)_(W+".autorange",!0);else if(te.autorange)Ee&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Le=A.range[0],Ve=A.range[1];Ee?(Le<=0&&Ve<=0&&_(W+".autorange",!0),Le<=0?Le=Ve/1e6:Ve<=0&&(Ve=Le/1e6),_(W+".range[0]",Math.log(Le)/Math.LN10),_(W+".range[1]",Math.log(Ve)/Math.LN10)):(_(W+".range[0]",Math.pow(10,Le)),_(W+".range[1]",Math.pow(10,Ve)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[k.parts[0]]&&k.parts[1]==="radialaxis"&&delete a[k.parts[0]]._subplot.viewInitial["radialaxis.range"],es.getComponentMethod("annotations","convertCoords")(e,te,F,_),es.getComponentMethod("images","convertCoords")(e,te,F,_)}else _(W+".autorange",!0),_(W+".range",null);Ka(a,W+"._inputRange").set(null)}else if(R.match(_1e)){var we=Ka(a,M).get(),ur=(F||{}).type;(!ur||ur==="-")&&(ur="linear"),es.getComponentMethod("annotations","convertCoords")(e,we,ur,_),es.getComponentMethod("images","convertCoords")(e,we,ur,_)}var Oe=ub.containerArrayMatch(M);if(Oe){u=Oe.array,c=Oe.index;var Ue=Oe.property,xr=J||{editType:"calc"};c!==""&&Ue===""&&(ub.isAddVal(F)?T[M]=null:ub.isRemoveVal(F)?T[M]=(Ka(t,u).get()||[])[c]:bt.warn("unrecognized full object value",r)),fv.update(m,xr),f[u]||(f[u]={});var Ye=f[u][c];Ye||(Ye=f[u][c]={}),Ye[Ue]=F,delete r[M]}else R==="reverse"?(ee.range?ee.range.reverse():(_(W+".autorange",!0),ee.range=[1,0]),te.autorange?m.calc=!0:m.plot=!0):(M==="dragmode"&&(F===!1&&Q!==!1||F!==!1&&Q===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(F==="lasso"||F==="select")&&!(Q==="lasso"||Q==="select")?m.plot=!0:J?fv.update(m,J):m.calc=!0,k.set(F))}}for(u in f){var re=ub.applyContainerArrayChanges(e,i(t,u),f[u],m,i);re||(m.plot=!0)}for(var de in x){A=wo.getFromId(e,de);var ne=A&&A._constraintGroup;if(ne){m.calc=!0;for(var Fe in ne)x[Fe]||(wo.getFromId(e,Fe)._constraintShrinkable=!0)}}(wO(e)||r.height||r.width)&&(m.plot=!0);var $e=a.shapes;for(c=0;c<$e.length;c++)if($e[c].showlegend){m.calc=!0;break}return(m.plot||m.calc)&&(m.layoutReplot=!0),{flags:m,rangesAltered:x,undoit:T,redoit:b,eventData:s}}function wO(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&zt.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function yb(e,r,t,a){e=bt.getGraphDiv(e),jn.clearPromiseQueue(e),bt.isPlainObject(r)||(r={}),bt.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=jn.coerceTraceIndices(e,a),i=yO(e,bt.extendFlat({},r),n),o=i.flags,l=_O(e,bt.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&jn.clearAxisTypes(e,n,t);var f=[];s.layoutReplot?f.push(Ba.layoutReplot):o.fullReplot?f.push(da._doPlot):(f.push(zt.previousPromises),gO(e,s,l)||zt.supplyDefaults(e),o.style&&f.push(Ba.doTraceStyle),(o.colorbars||s.colorbars)&&f.push(Ba.doColorBars),s.legend&&f.push(Ba.doLegend),s.layoutstyle&&f.push(Ba.layoutStyles),s.axrange&&xb(f,l.rangesAltered),s.ticks&&f.push(Ba.doTicksRelayout),s.modebar&&f.push(Ba.doModeBar),s.camera&&f.push(Ba.doCamera),f.push(iy)),f.push(zt.rehover,zt.redrag,zt.reselect),Oo.add(e,yb,[e,i.undoit,l.undoit,i.traces],yb,[e,i.redoit,l.redoit,i.traces]);var u=bt.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve(e)),u.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:l.eventData}),e})}function c6(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var F1e=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],R1e=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function nO(e,r){for(var t=0;t1;)if(a.pop(),t=Ka(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function q1e(e,r){for(var t=0;t[W,e._ev.listeners(W)]);i=da.newPlot(e,r,t,a).then(()=>{for(let[W,ee]of H)ee.forEach(te=>e.on(W,te));return da.react(e,r,t,a)})}else{e.data=r||[],jn.cleanData(e.data),e.layout=t||{},jn.cleanLayout(e.layout),N1e(e.data,e.layout,l,s),zt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,y=B1e(e,s,v,d,p),m=y.newDataRevision,b=O1e(e,l,c,d,p,m);if(wO(e)&&(y.layoutReplot=!0),b.calc||y.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),_=0;_(u||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function O1e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=fv.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,f;function u(d){var p=bb.getTraceValObject(f,d);return!f._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:u,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[f]:n}function l(f){return Array.isArray(i)?f>=i.length?i[0]:i[f]:i}function s(f,u){var c=0;return function(){if(f&&++c===u)return f()}}return new Promise(function(f,u){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var H=0;Ha._timeToNext&&p()};R()}var m=0;function b(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var T,_,x=[],A=r==null,E=Array.isArray(r),M=!A&&!E&&bt.isPlainObject(r);if(M)x.push({type:"object",data:b(bt.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&PP)&&O.push(_);x=O}}x.length>0?v(x):(e.emit("plotly_animated"),f())})}function G1e(e,r,t){if(e=bt.getGraphDiv(e),r==null)return Promise.resolve();if(!bt.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var f=l.length+r.length*2,u=[],c={};for(a=r.length-1;a>=0;a--)if(bt.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&s6k.index?-1:M.index=0;a--){if(n=u[a].frame,typeof n.name=="number"&&bt.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=zt.modifyFrames,s=zt.modifyFrames,f=[e,o],u=[e,i];return Oo&&Oo.add(e,l,f,s,u),zt.modifyFrames(e,i)}function H1e(e){e=bt.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return zt.cleanPlot([],{},t,r),zt.purge(e),f6.purge(e),r._container&&r._container.remove(),delete e._context,e}function V1e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!bt.equalDomRects(t,r._lastBBox)){var a=r._invTransform=bt.inverseTransformMatrix(bt.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Y1e(e){var r=vb.select(e),t=e._fullLayout;if(t._calcInverseTransform=V1e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};vb.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=bt.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(b1e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}da.animate=z1e;da.addFrames=G1e;da.deleteFrames=U1e;da.addTraces=pO;da.deleteTraces=mO;da.extendTraces=hO;da.moveTraces=u6;da.prependTraces=dO;da.newPlot=S1e;da._doPlot=w1e;da.purge=H1e;da.react=I1e;da.redraw=M1e;da.relayout=ny;da.restyle=pb;da.setPlotConfig=A1e;da.update=yb;da._guiRelayout=c6(ny);da._guiRestyle=c6(pb);da._guiUpdate=c6(yb);da._storeDirectGUIEdit=L1e});var t0=N(zf=>{"use strict";var W1e=Bt();zf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};zf.getRedrawFunc=function(e){return function(){W1e.getComponentMethod("colorbar","draw")(e)}};zf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};zf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var AO=window.URL||window.webkitURL;zf.createObjectURL=function(e){return AO.createObjectURL(e)};zf.revokeObjectURL=function(e){return AO.revokeObjectURL(e)};zf.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=j1e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};zf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function j1e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var d6=ha(),rFe=Ur(),X1e=Va(),Z1e=ca(),tFe=Wc(),h6=/"/g,oy="TOBESTRIPPED",J1e=new RegExp('("'+oy+")|("+oy+'")',"g");function $1e(e){var r=d6.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Q1e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}TO.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,f;i.insert("rect",":first-child").call(X1e.setRect,0,0,l,s).call(Z1e.fill,n.paper_bgcolor);var u=n._basePlotModules||[];for(f=0;f{"use strict";var K1e=Ur(),eme=x2().EventEmitter,ly=t0();function rme(e){var r=e.emitter||new eme,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,f=e.scale||1,u=e.width||300,c=e.height||150,v=f*u,d=f*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;l==="svg"||K1e.isSafari()?b=ly.encodeSVG(o):(m=ly.createBlob(o,"svg"),b=ly.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var T;switch(m=null,ly.revokeObjectURL(b),l!=="svg"&&p.drawImage(y,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=b;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(T),e.promise||r.emit("success",T)},y.onerror=function(T){if(m=null,ly.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},y.src=b});return e.promise?t:r}MO.exports=rme});var m6=N((iFe,kO)=>{"use strict";var SO=xa(),EO=v6(),tme=xi(),Gf=Ur(),sy=t0(),ame=_b(),nme=wb(),ime=Ng().version,p6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function ome(e,r){r=r||{};var t,a,n,i;Gf.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Gf.getGraphDiv(e),t=Gf.extendDeep([],e.data),a=Gf.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(E){return!(E in r)||Gf.validate(r[E],p6[E])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Gf.join2(p6.format.values,", "," or ")+".");var l={};function s(E,M){return Gf.coerce(r,l,p6,E,M)}var f=s("format"),u=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Gf.extendFlat({},a);u?m.width=u:r.width===null&&SO(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&SO(i.height)&&(m.height=i.height);var b=Gf.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=sy.getRedrawFunc(y);function _(){return new Promise(function(E){setTimeout(E,sy.getDelay(y._fullLayout))})}function x(){return new Promise(function(E,M){var k=ame(y,f,v),F=y._fullLayout.width,P=y._fullLayout.height;function O(){EO.purge(y),document.body.removeChild(y)}if(f==="full-json"){var R=tme.graphJson(y,!1,"keepdata","object",!0,!0);return R.version=ime,R=JSON.stringify(R),O(),E(p?R:sy.encodeJSON(R))}if(O(),f==="svg")return E(p?k:sy.encodeSVG(k));var H=document.createElement("canvas");H.id=Gf.randstr(),nme({format:f,width:F,height:P,scale:v,canvas:H,svg:k,promise:!0}).then(E).catch(M)})}function A(E){return p?E.replace(sy.IMAGE_URL_PREFIX,""):E}return new Promise(function(E,M){EO.newPlot(y,t,m,b).then(T).then(_).then(x).then(function(k){E(A(k))}).catch(function(k){M(k)})})}kO.exports=ome});var DO=N((oFe,LO)=>{"use strict";var rs=Ur(),lme=xi(),sme=Td(),fme=Mh().dfltConfig,Hs=rs.isPlainObject,n0=Array.isArray,y6=rs.isArrayOrTypedArray;LO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=sme.get(),n=[],i={_context:rs.extendFlat({},fme)},o,l;n0(r)?(i.data=rs.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Mi("array","data"))),Hs(t)?(i.layout=rs.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Mi("object","layout"))),lme.supplyDefaults(i);for(var s=i._fullData,f=o.length,u=0;uc.length&&a.push(Mi("unused",n,f.concat(c.length)));var b=c.length,T=Array.isArray(m);T&&(b=Math.min(b,m.length));var _,x,A,E,M;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(Mi("unused",n,f.concat(x,c[x].length)));var k=c[x].length;for(_=0;_<(T?Math.min(k,m[x].length):k);_++)A=T?m[x][_]:m,E=u[x][_],M=c[x][_],rs.validate(E,A)?M!==E&&M!==+E&&a.push(Mi("dynamic",n,f.concat(x,_),E,M)):a.push(Mi("value",n,f.concat(x,_),E))}else a.push(Mi("array",n,f.concat(x),u[x]));else for(x=0;x{"use strict";var mme=Ur(),Tb=t0();function yme(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,f;if(n)return s=Tb.createBlob(e,t),f=Tb.createObjectURL(s),a.href=f,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Tb.revokeObjectURL(f),s=null,o(r);if(mme.isSafari()){var u=t==="svg"?",":";base64,";return Tb.octetStream(u+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}FO.exports=yme});var g6=N((fFe,PO)=>{"use strict";var qO=Ur(),gme=m6(),bme=RO(),sFe=t0();function xme(e,r){var t;return qO.isPlainObject(e)||(t=qO.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=gme(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),bme(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}PO.exports=xme});var zO=N(b6=>{"use strict";var rl=Ur(),tl=rl.isPlainObject,NO=Td(),IO=xi(),_me=Ds(),OO=Ja(),BO=Mh().dfltConfig;b6.makeTemplate=function(e){e=rl.isPlainObject(e)?e:rl.getGraphDiv(e),e=rl.extendDeep({_context:BO},{data:e.data,layout:e.layout}),IO.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};fy(d,p,Ame.bind(null,d));var y=rl.coerce(d,{},_me,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),fy(t,a.layout,wme.bind(null,t)),delete a.layout.template;var n=t.template;if(tl(n)){var i=n.layout,o,l,s,f,u,c;tl(i)&&Mb(i,a.layout);var v=n.data;if(tl(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(u=a.data[l],c=u.length,f=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function T(_,x){for(var A in _)if(A.charAt(0)!=="_"){var E=_[A],M=ts(_,A,x);tl(E)?(Array.isArray(_)&&E._template===!1&&E.templateitemname&&o.push({code:"missing",path:M,templateitemname:E.templateitemname}),T(E,M)):Array.isArray(E)&&Tme(E)&&T(E,M)}}if(T({data:s,layout:l},""),o.length)return o.map(Mme)};function Tme(e){for(var r=0;r{"use strict";var ci=v6();pn._doPlot=ci._doPlot;pn.newPlot=ci.newPlot;pn.restyle=ci.restyle;pn.relayout=ci.relayout;pn.redraw=ci.redraw;pn.update=ci.update;pn._guiRestyle=ci._guiRestyle;pn._guiRelayout=ci._guiRelayout;pn._guiUpdate=ci._guiUpdate;pn._storeDirectGUIEdit=ci._storeDirectGUIEdit;pn.react=ci.react;pn.extendTraces=ci.extendTraces;pn.prependTraces=ci.prependTraces;pn.addTraces=ci.addTraces;pn.deleteTraces=ci.deleteTraces;pn.moveTraces=ci.moveTraces;pn.purge=ci.purge;pn.addFrames=ci.addFrames;pn.deleteFrames=ci.deleteFrames;pn.animate=ci.animate;pn.setPlotConfig=ci.setPlotConfig;var Sme=Z1().getGraphDiv,Eme=B3().eraseActiveShape;pn.deleteActiveShape=function(e){return Eme(Sme(e))};pn.toImage=m6();pn.validate=DO();pn.downloadImage=g6();var GO=zO();pn.makeTemplate=GO.makeTemplate;pn.validateTemplate=GO.validateTemplate});var _6=N((vFe,HO)=>{"use strict";var x6=Ur(),kme=Bt();HO.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=kme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var f=x6.minRowLength(i);o?l=Math.min(f,x6.minRowLength(o)):(l=f,n("y0"),n("dy"))}else{if(!o)return 0;l=x6.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var w6=N((hFe,WO)=>{"use strict";var VO=Ur().dateTick0,Cme=ei(),Lme=Cme.ONEWEEK;function YO(e,r){return e%Lme===0?VO(r,1):VO(r,0)}WO.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",YO(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",YO(l,t.ycalendar)),n("yperiodalignment"))}}});var ZO=N((dFe,XO)=>{"use strict";var jO=["orientation","groupnorm","stackgaps"];XO.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var f=s[o],u=!1;f?f.traces.push(t):(f=s[o]={traceIndices:[],traces:[t]},u=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var JO=ca(),$O=Is().hasColorscale,QO=kd(),Dme=Ni();KO.exports=function(r,t,a,n,i,o={}){var l=Dme.isBubble(r),s=(r.line||{}).color,f;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),$O(r,"marker")&&QO(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?f=s:l?f=JO.background:f=JO.defaultLine,i("marker.line.color",f),$O(r,"marker.line")&&QO(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var u=i("marker.gradient.type");u!=="none"&&i("marker.gradient.color")}}});var A6=N((mFe,eB)=>{"use strict";var Fme=Ur().isArrayOrTypedArray,Rme=Is().hasColorscale,qme=kd();eB.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),Rme(r,"line"))qme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Fme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var tB=N((yFe,rB)=>{"use strict";rB.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var T6=N((gFe,aB)=>{"use strict";var Pme=Ur();aB.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Pme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var M6=N((bFe,iB)=>{"use strict";var kb=ca(),nB=Ur().isArrayOrTypedArray;function Nme(e){for(var r=kb.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var oB=Ur(),Ime=Bt(),Ome=lv(),Bme=Jm(),ep=Ni(),zme=_6(),Gme=w6(),Ume=ZO(),Hme=Eb(),Vme=A6(),lB=tB(),Yme=T6(),Wme=M6(),jme=Ur().coercePattern;sB.exports=function(r,t,a,n){function i(d,p){return oB.coerce(r,t,Ome,d,p)}var o=zme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Gme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Ume(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var Xme=Rm().getAxisGroup;uB.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Xme(a,l)+o,f=a._alignmentOpts||{},u=n("alignmentgroup"),c=f[s];c||(c=f[s]={});var v=c[u];v?v.traces.push(t):v=c[u]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var S6=N((wFe,vB)=>{"use strict";var Zme=Ur(),Jme=cB(),$me=lv();vB.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Zme.coerce(n._input,n,$me,v)}if(t.scattermode==="group")for(i=0;i=0;u--){var c=r[u];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var dB=N((AFe,hB)=>{"use strict";var Qme=Ur(),Kme=M2();hB.exports=function(e,r){function t(n,i){return Qme.coerce(e,r,Kme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var E6=N((TFe,mB)=>{"use strict";var eye=xa(),pB=Ur(),rye=pB.dateTime2ms,Cb=pB.incrementMonth,tye=ei(),aye=tye.ONEAVGMONTH;mB.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(eye(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var f=t.calendar,u=i==="start",c=i==="end",v=r[a+"period0"],d=rye(v,f)||0,p=[],y=[],m=[],b=n.length,T=0;T_;)E=Cb(E,-l,f);for(;E<=_;)E=Cb(E,l,f);A=Cb(E,-l,f)}else{for(x=Math.round((_-d)/o),E=d+x*o;E>_;)E-=o;for(;E<=_;)E+=o;A=E-o}p[T]=u?A:c?E:(A+E)/2,y[T]=A,m[T]=E}return{vals:p,starts:y,ends:m}}});var uy=N((MFe,gB)=>{"use strict";var k6=Is().hasColorscale,C6=V4(),yB=Ni();gB.exports=function(r,t){yB.hasLines(t)&&k6(t,"line")&&C6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),yB.hasMarkers(t)&&(k6(t,"marker")&&C6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),k6(t,"marker.line")&&C6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var L6=N((SFe,bB)=>{"use strict";var qn=Ur();bB.exports=function(r,t){for(var a=0;a{"use strict";var xB=Ur();_B.exports=function(r,t){xB.isArrayOrTypedArray(t.selectedpoints)&&xB.tagSelected(r,t)}});var rp=N((kFe,CB)=>{"use strict";var AB=xa(),F6=Ur(),cy=hn(),TB=E6(),D6=ei().BADNUM,R6=Ni(),nye=uy(),iye=L6(),oye=wB();function lye(e,r){var t=e._fullLayout,a=r._xA=cy.getFromId(e,r.xaxis||"x","x"),n=r._yA=cy.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=TB(r,a,"x",i),s=TB(r,n,"y",o),f=l.vals,u=s.vals,c=r._length,v=new Array(c),d=r.ids,p=q6(r,t,a,n),y=!1,m,b,T,_,x,A;EB(t,r);var E="x",M="y",k;if(p)F6.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(M="s",k="x"):(E="s",k="y"),x=p.stackgaps==="interpolate";else{var F=SB(r,c);MB(e,r,a,n,f,u,F)}var P=!!r.xperiodalignment,O=!!r.yperiodalignment;for(b=0;bb&&v[_].gap;)_--;for(A=v[_].s,T=v.length-1;T>_;T--)v[T].s=A;for(;b<_;)if(b++,v[b].gap){for(T=b+1;v[T].gap;)T++;for(var ee=v[b-1][k],te=v[b-1].s,Q=(v[T].s-te)/(v[T][k]-ee);b{"use strict";LB.exports=Lb;var sye=Ur().distinctVals;function Lb(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";FB.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var OB=N((DFe,IB)=>{"use strict";var as=xa(),{isArrayOrTypedArray:Hu}=Ur(),{BADNUM:tp}=ei(),fye=Bt(),vy=hn(),{getAxisGroup:uye}=Rm(),Db=DB(),{TEXTPAD:cye}=RB(),{LINE_SPACING:vye}=ao(),{BR_TAG_ALL:hye}=no();function dye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fs+o||!as(l))}for(var u=0;ua(i))):a(e.text);let n=e.outsidetextfont.size*vye*t+cye;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function Tye(e,r,t,a){for(var n=ap(a),i=0;i{"use strict";var BB=rp(),zB=OB().setGroupPositions;function Sye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fF[u]&&u{"use strict";var kye=Va(),WB=ei(),hy=WB.BADNUM,jB=WB.LOG_CLIP,HB=jB+.5,VB=jB-.5,Fb=Ur(),Cye=Fb.segmentsIntersect,YB=Fb.constrain,G6=Jm();XB.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,f=i._length,u=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],T=G6.minTolerance,_=r.length,x=new Array(_),A=0,E,M,k,F,P,O,R,H,W,ee,te,Q,J,j,se,le;function Ee(dr){var Se=r[dr];if(!Se)return!1;var Ie=t.linearized?n.l2p(Se.x):n.c2p(Se.x),pr=t.linearized?i.l2p(Se.y):i.c2p(Se.y);if(Ie===hy){if(o&&(Ie=n.c2p(Se.x,!0)),Ie===hy)return!1;l&&pr===hy&&(Ie*=Math.abs(n._m*f*(n._m>0?HB:VB)/(i._m*s*(i._m>0?HB:VB)))),Ie*=1e3}if(pr===hy){if(l&&(pr=i.c2p(Se.y,!0)),pr===hy)return!1;pr*=1e3}return[Ie,pr]}function Ge(dr,Se,Ie,pr){var _r=Ie-dr,ht=pr-Se,Mt=.5-dr,wt=.5-Se,Nt=_r*_r+ht*ht,ta=_r*Mt+ht*wt;if(ta>0&&ta1||Math.abs(Mt.y-Ie[0][1])>1)&&(Mt=[Mt.x,Mt.y],pr&&ur(Mt,dr)xr||dr[1]re)return[YB(dr[0],Ue,xr),YB(dr[1],Ye,re)]}function Hr(dr,Se){if(dr[0]===Se[0]&&(dr[0]===Ue||dr[0]===xr)||dr[1]===Se[1]&&(dr[1]===Ye||dr[1]===re))return!0}function at(dr,Se){var Ie=[],pr=et(dr),_r=et(Se);return pr&&_r&&Hr(pr,_r)||(pr&&Ie.push(pr),_r&&Ie.push(_r)),Ie}function wr(dr,Se,Ie){return function(pr,_r){var ht=et(pr),Mt=et(_r),wt=[];if(ht&&Mt&&Hr(ht,Mt))return wt;ht&&wt.push(ht),Mt&&wt.push(Mt);var Nt=2*Fb.constrain((pr[dr]+_r[dr])/2,Se,Ie)-((ht||pr)[dr]+(Mt||_r)[dr]);if(Nt){var ta;ht&&Mt?ta=Nt>0==ht[dr]>Mt[dr]?ht:Mt:ta=ht||Mt,ta[dr]+=Nt}return wt}}var Vr;p==="linear"||p==="spline"?Vr=gr:p==="hv"||p==="vh"?Vr=at:p==="hvh"?Vr=wr(0,Ue,xr):p==="vhv"&&(Vr=wr(1,Ye,re));function rt(dr,Se){var Ie=Se[0]-dr[0],pr=(Se[1]-dr[1])/Ie,_r=(dr[1]*Se[0]-Se[1]*dr[0])/Ie;return _r>0?[pr>0?Ue:xr,re]:[pr>0?xr:Ue,Ye]}function Pe(dr){var Se=dr[0],Ie=dr[1],pr=Se===x[A-1][0],_r=Ie===x[A-1][1];if(!(pr&&_r))if(A>1){var ht=Se===x[A-2][0],Mt=Ie===x[A-2][1];pr&&(Se===Ue||Se===xr)&&ht?Mt?A--:x[A-1]=dr:_r&&(Ie===Ye||Ie===re)&&Mt?ht?A--:x[A-1]=dr:x[A++]=dr}else x[A++]=dr}function or(dr){x[A-1][0]!==dr[0]&&x[A-1][1]!==dr[1]&&Pe([$e,Ke]),Pe(dr),Cr=null,$e=Ke=0}var st=Fb.isArrayOrTypedArray(c);function kt(dr){if(dr&&u&&(dr.i=E,dr.d=r,dr.trace=a,dr.marker=st?c[dr.i]:c,dr.backoff=u),Le=dr[0]/s,Ve=dr[1]/f,ne=dr[0]xr?xr:0,Fe=dr[1]re?re:0,ne||Fe){if(!A)x[A++]=[ne||dr[0],Fe||dr[1]];else if(Cr){var Se=Vr(Cr,dr);Se.length>1&&(or(Se[0]),x[A++]=Se[1])}else Ar=Vr(x[A-1],dr)[0],x[A++]=Ar;var Ie=x[A-1];ne&&Fe&&(Ie[0]!==ne||Ie[1]!==Fe)?(Cr&&($e!==ne&&Ke!==Fe?Pe($e&&Ke?rt(Cr,dr):[$e||ne,Ke||Fe]):$e&&Ke&&Pe([$e,Ke])),Pe([ne,Fe])):$e-ne&&Ke-Fe&&Pe([ne||$e,Fe||Ke]),Cr=dr,$e=ne,Ke=Fe}else Cr&&or(Vr(Cr,dr)[0]),x[A++]=dr}for(E=0;E<_;E++)if(M=Ee(E),!!M){for(A=0,Cr=null,kt(M),E++;E<_;E++){if(F=Ee(E),!F){if(v)continue;break}if(!y||!t.simplify){kt(F);continue}var Tr=Ee(E+1);if(ee=ur(F,M),!(!(m&&(A===0||A===_-1))&&eewe(O,Tr))break;k=O,J=W[0]*H[0]+W[1]*H[1],J>te?(te=J,F=O,R=!1):J=r.length||!O)break;kt(O),M=O}}Cr&&Pe([$e||Cr[0],Ke||Cr[1]]),b.push(x.slice(0,A))}var tr=p.slice(p.length-1);if(u&&tr!=="h"&&tr!=="v"){for(var sr=!1,zr=-1,nt=[],Yr=0;Yr{"use strict";var JB={tonextx:1,tonexty:1,tonext:1};$B.exports=function(r,t,a){var n,i,o,l,s,f={},u=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Vs=ha(),Lye=Bt(),dy=Ur(),np=dy.ensureSingle,KB=dy.identity,In=Va(),ip=Ni(),Dye=ZB(),Fye=U6(),Rb=PA().tester;ez.exports=function(r,t,a,n,i,o){var l,s,f=!i,u=!!i&&i.duration>0,c=Fye(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Rye(r,l,t),u){o&&(s=o());var v=Vs.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){QB(r,p,t,d,c,this,i)})})}else l.each(function(d,p){QB(r,p,t,d,c,this,i)});f&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Rye(e,r,t){r.each(function(a){var n=np(Vs.select(this),"g","fills");In.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,KB);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=np(Vs.select(this),"path","js-fill")})})}function QB(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;qye(e,r,t,a,n);var f=!!o&&o.duration>0;function u(wr){return f?wr.transition():wr}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=Vs.select(i),m=np(y,"g","errorbars"),b=np(y,"g","lines"),T=np(y,"g","points"),_=np(y,"g","text");if(Lye.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;u(y).style("opacity",d.opacity);var x,A,E=d.fill.charAt(d.fill.length-1);E!=="x"&&E!=="y"&&(E="");var M,k;E==="y"?(M=1,k=v.c2p(0,!0)):E==="x"&&(M=0,k=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var F="",P=[],O=d._prevtrace,R=null,H=null;O&&(F=O._prevRevpath||"",A=O._nextFill,P=O._ownPolygons,R=O._fillsegments,H=O._fillElement);var W,ee,te="",Q="",J,j,se,le,Ee,Ge,Le=[];d._polygons=[];var Ve=[],we=[],ur=dy.noop;if(x=d._ownFill,ip.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(J=In.steps(p.shape),j=In.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?J=j=function(wr){var Vr=wr[wr.length-1];return wr.length>1&&wr[0][0]===Vr[0]&&wr[0][1]===Vr[1]?In.smoothclosed(wr.slice(1),p.smoothing):In.smoothopen(wr,p.smoothing)}:J=j=function(wr){return"M"+wr.join("L")},se=function(wr){return j(wr.reverse())},we=Dye(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),Ve=new Array(we.length);var Oe=0;for(s=0;s=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/u),d=0;n.forEach(function(y,m){var b=y[0].trace;ip.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";tz.exports={container:"marker",min:"cmin",max:"cmax"}});var H6=N((IFe,az)=>{"use strict";var Pb=hn();az.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Pb.getFromTrace(i,t,"x"),l=Pb.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var f=r.orig_y;return f===void 0&&(f=r.y),n.xLabel=Pb.tickText(o,o.c2l(s),!0).text,n.yLabel=Pb.tickText(l,l.c2l(f),!0).text,n}});var j6=N((OFe,nz)=>{"use strict";var V6=ha(),op=Va(),Pye=Bt();function Nye(e){var r=V6.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=V6.select(this),n=t.trace||t[0].trace;Y6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=V6.select(this),n=t.trace||t[0].trace;W6(a,n,e)}),r.selectAll("g.trace path.js-line").call(op.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(op.fillGroupStyle,e,!1),Pye.getComponentMethod("errorbars","style")(r)}function Y6(e,r,t){op.pointStyle(e.selectAll("path.point"),r,t)}function W6(e,r,t){op.textPointStyle(e.selectAll("text"),r,t)}function Iye(e,r,t){var a=r[0].trace;a.selectedpoints?(op.selectedPointStyle(t.selectAll("path.point"),a),op.selectedTextStyle(t.selectAll("text"),a)):(Y6(t,a,e),W6(t,a,e))}nz.exports={style:Nye,stylePoints:Y6,styleText:W6,styleOnSelect:Iye}});var X6=N((BFe,iz)=>{"use strict";var lp=ca(),Oye=Ni();iz.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&lp.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&lp.opacity(i)?i:o&&lp.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?lp.opacity(n)<.3?lp.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&lp.opacity(a)&&Oye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var sz=N((zFe,lz)=>{"use strict";var Nb=Ur(),oz=Ou(),Bye=Bt(),zye=X6(),Z6=ca(),Gye=Nb.fillText;lz.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,f=l.c2p(t),u=s.c2p(a),c=[f,u],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(Q){if(p){var J=l.c2p(Q.xStart),j=l.c2p(Q.xEnd);return f>=Math.min(J,j)&&f<=Math.max(J,j)?0:1/0}var se=Math.max(3,Q.mrc||0),le=1-1/se,Ee=Math.abs(l.c2p(Q.x)-f);return Ee=Math.min(J,j)&&u<=Math.max(J,j)?0:1/0}var se=Math.max(3,Q.mrc||0),le=1-1/se,Ee=Math.abs(s.c2p(Q.y)-u);return EeLe!=re>=Le&&(Ue=ur[we-1][0],xr=ur[we][0],re-Ye&&(Oe=Ue+(xr-Ue)*(Le-Ye)/(re-Ye),se=Math.min(se,Oe),le=Math.max(le,Oe)));return se=Math.max(se,0),le=Math.min(le,l._length),{x0:se,x1:le,y0:Le,y1:Le}}if(v.indexOf("fills")!==-1&&o._fillElement){var W=R(o._fillElement)&&!R(o._fillExclusionElement);if(W){var ee=H(o._polygons);ee===null&&(ee={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var te=Z6.defaultLine;return Z6.opacity(o.fillcolor)?te=o.fillcolor:Z6.opacity((o.line||{}).color)&&(te=o.line.color),Nb.extendFlat(r,{distance:r.maxHoverDistance,x0:ee.x0,x1:ee.x1,y0:ee.y0,y1:ee.y1,color:te,hovertemplate:!1}),delete r.index,o.text&&!Nb.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var cz=N((GFe,uz)=>{"use strict";var fz=Ni();uz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,f,u,c,v=!fz.hasMarkers(l)&&!fz.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";vz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var yz=N((HFe,mz)=>{"use strict";var py=Bt().traceIs,J6=uw();mz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Uye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Uye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Hye(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!py(i,"cartesian")||py(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,pz(i,a)){var f=dz(i),u=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(pz(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function dz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function pz(e,r){var t=dz(e),a=py(e,"box-violin"),n=py(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var bz=N((VFe,gz)=>{"use strict";var Vye=Po().isTypedArraySpec;function Yye(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Vye(i),l;o&&(l="array");var s=a("categoryorder",l),f;s==="array"&&(f=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=f.slice():(f=Yye(t,n).sort(),s==="category ascending"?t._initialCategories=f:s==="category descending"&&(t._initialCategories=f.reverse()))}}});var wz=N((YFe,_z)=>{"use strict";var xz=Ls().mix,Wye=Mf(),jye=Ur();_z.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(k,F){return jye.coerce2(r,t,n.attributes,k,F)}var l=o("linecolor",i),s=o("linewidth"),f=a("showline",n.showLine||!!l||!!s);f||(delete t.linecolor,delete t.linewidth);var u=xz(i,n.bgColor,n.blend||Wye.lightFraction).toRgbString(),c=o("gridcolor",u),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=xz(t.gridcolor,n.bgColor,67).toRgbString(),m=o("minor.gridcolor",y),b=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!m||!!b||!!T);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),A=o("zerolinecolor",i),E=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!A||!!E);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Q6=N((WFe,kz)=>{"use strict";var Az=xa(),Xye=Bt(),my=Ur(),Zye=Ja(),Jye=bl(),$6=Vl(),Tz=R4(),Mz=P4(),$ye=O4(),Qye=B4(),Kye=bz(),ege=wz(),rge=Dw(),Sz=J2(),Ib=ui().WEEKDAY_PATTERN,tge=ui().HOUR_PATTERN;kz.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},f=a("visible",!n.visibleDflt),u=t._template||{},c=t.type||u.type||"-",v;if(c==="date"){var d=Xye.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=my.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),Sz(t,i),rge(r,t,a,n),Kye(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==$6.color.dflt?y:l.color,b=s.label||i._dfltTitle[o];if(Qye(r,t,a,c,n),!f)return t;a("title.text",b),my.coerceFont(a,"title.font",l,{overrideDflt:{size:my.bigFont(l.size),color:m}}),Tz(r,t,a,c);var T=n.hasMinor;if(T&&(Zye.newContainer(t,"minor"),Tz(r,t,a,c,{isMinor:!0})),$ye(r,t,a,c,n),Mz(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,Mz(r,t,a,n),n.isMinor=_}ege(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:$6}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Jye(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:age}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var E=0;E=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=Ez(i[l]),s){o=Ib;break}}var f=a("pattern",o);if(f===Ib)for(l=0;l<2;l++)s=Ez(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(f)for(l=0;l<2;l++)switch(s=i[l],f){case Ib:if(!Az(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case tge:if(!Az(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var u=t.range;if(u[0]u[1]){r.enabled=!1;return}}else if(i[0]>u[0]&&i[1]{"use strict";var ige=xa(),Ob=Ur();Cz.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,f=n.overlayingDomain,u,c,v,d,p,y;s&&(c=s._domains[l][s._axisMap[t._id]],u=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],u=u||(ige(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=Ob.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor"),b=Ob.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var T=a("autoshift");T&&(d=b==="left"?f[0]:f[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var _=!1;if(o.length&&(_=Ob.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Ob.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Oz=N((XFe,Iz)=>{"use strict";var i0=Ur(),Lz=ca(),oge=Nu().isUnifiedHover,lge=iA(),Dz=Ja(),sge=hd(),Fz=Vl(),fge=yz(),Rz=Q6(),uge=Rm(),qz=K6(),rT=Sn(),Uf=rT.id2name,Pz=rT.name2id,cge=ui().AX_ID_PATTERN,Nz=Bt(),Bb=Nz.traceIs,eT=Nz.getComponentMethod;function zb(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Iz.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},f={},u={},c={},v={},d={},p={},y,m;for(y=0;y{"use strict";var vge=ha(),Bz=Bt(),Gb=Ur(),Ml=Va(),Ub=hn();zz.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Ub.redrawComponents(r);return}function o(m){var b=m.xaxis,T=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Ml.setTranslate,0,0).call(Ml.setScale,1,1),m.plot.call(Ml.setTranslate,b._offset,T._offset).call(Ml.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Ml.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Ml.setTextPointsScale,1,1),_.call(Ml.hideOutsideRangePoints,m)}function l(m,b){var T=m.plotinfo,_=T.xaxis,x=T.yaxis,A=_._length,E=x._length,M=!!m.xr1,k=!!m.yr1,F=[];if(M){var P=Gb.simpleMap(m.xr0,_.r2l),O=Gb.simpleMap(m.xr1,_.r2l),R=P[1]-P[0],H=O[1]-O[0];F[0]=(P[0]*(1-b)+b*O[0]-P[0])/(P[1]-P[0])*A,F[2]=A*(1-b+b*H/R),_.range[0]=_.l2r(P[0]*(1-b)+b*O[0]),_.range[1]=_.l2r(P[1]*(1-b)+b*O[1])}else F[0]=0,F[2]=A;if(k){var W=Gb.simpleMap(m.yr0,x.r2l),ee=Gb.simpleMap(m.yr1,x.r2l),te=W[1]-W[0],Q=ee[1]-ee[0];F[1]=(W[1]*(1-b)+b*ee[1]-W[1])/(W[0]-W[1])*E,F[3]=E*(1-b+b*Q/te),x.range[0]=_.l2r(W[0]*(1-b)+b*ee[0]),x.range[1]=x.l2r(W[1]*(1-b)+b*ee[1])}else F[1]=0,F[3]=E;Ub.drawOne(r,_,{skipTitle:!0}),Ub.drawOne(r,x,{skipTitle:!0}),Ub.redrawComponents(r,[_._id,x._id]);var J=M?A/F[2]:1,j=k?E/F[3]:1,se=M?F[0]:0,le=k?F[1]:0,Ee=M?F[0]/F[2]*A:0,Ge=k?F[1]/F[3]*E:0,Le=_._offset-Ee,Ve=x._offset-Ge;T.clipRect.call(Ml.setTranslate,se,le).call(Ml.setScale,1/J,1/j),T.plot.call(Ml.setTranslate,Le,Ve).call(Ml.setScale,J,j),Ml.setPointGroupScale(T.zoomScalePts,1/J,1/j),Ml.setTextPointsScale(T.zoomScaleTxt,1/J,1/j)}var s;n&&(s=n());function f(){for(var m={},b=0;ba.duration?(f(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var yy=N(lo=>{"use strict";var Vb=ha(),Uz=Bt(),o0=Ur(),hge=xi(),dge=Va(),Hz=om().getModuleCalcData,uv=Sn(),Ys=ui(),pge=Wc(),Da=o0.ensureSingle;function Hb(e,r,t){return o0.ensureSingle(e,r,t,function(a){a.datum(t)})}var l0=Ys.zindexSeparator;lo.name="cartesian";lo.attr=["xaxis","yaxis"];lo.idRoot=["x","y"];lo.idRegex=Ys.idRegex;lo.attrRegex=Ys.attrRegex;lo.attributes=hz();lo.layoutAttributes=Vl();lo.supplyLayoutDefaults=Oz();lo.transitionAxes=Gz();lo.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},f,u,c;for(f=0;f0){var d=v.id;if(d.indexOf(l0)!==-1)continue;d+=l0+(f+1),v=o0.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(A+=l0+x),_.push(l+A),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||u)if(f)r.xlines=Da(a,"path","xlines-above"),r.ylines=Da(a,"path","ylines-above"),r.xaxislayer=Da(a,"g","xaxislayer-above"),r.yaxislayer=Da(a,"g","yaxislayer-above");else{if(!o){var v=Da(a,"g","layer-subplot");r.shapelayer=Da(v,"g","shapelayer"),r.imagelayer=Da(v,"g","imagelayer"),c&&u?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Da(a,"g","minor-gridlayer"),r.gridlayer=Da(a,"g","gridlayer"),r.zerolinelayer=Da(a,"g","zerolinelayer"));var d=Da(a,"g","layer-between");r.shapelayerBetween=Da(d,"g","shapelayer"),r.imagelayerBetween=Da(d,"g","imagelayer"),Da(a,"path","xlines-below"),Da(a,"path","ylines-below"),r.overlinesBelow=Da(a,"g","overlines-below"),Da(a,"g","xaxislayer-below"),Da(a,"g","yaxislayer-below"),r.overaxesBelow=Da(a,"g","overaxes-below")}r.overplot=Da(a,"g","overplot"),r.plot=Da(r.overplot,"g",n),c&&u?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Da(a,"g","zerolinelayer-above"),o||(r.xlines=Da(a,"path","xlines-above"),r.ylines=Da(a,"path","ylines-above"),r.overlinesAbove=Da(a,"g","overlines-above"),Da(a,"g","xaxislayer-above"),Da(a,"g","yaxislayer-above"),r.overaxesAbove=Da(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Da(c.overlinesBelow,"path",y),Da(c.overlinesBelow,"path",m),Da(c.overaxesBelow,"g",y),Da(c.overaxesBelow,"g",m),r.plot=Da(c.overplot,"g",n),Da(c.overlinesAbove,"path",y),Da(c.overlinesAbove,"path",m),Da(c.overaxesAbove,"g",y),Da(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(f||(Hb(r.minorGridlayer,"g",r.xaxis._id),Hb(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(uv.idSort),Hb(r.gridlayer,"g",r.xaxis._id),Hb(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(uv.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function Wz(e,r){if(e){var t={};e.each(function(s){var f=s[0],u=Vb.select(this);u.remove(),jz(f,r),t[f]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Yb=Ni();Xz.exports={hasLines:Yb.hasLines,hasMarkers:Yb.hasMarkers,hasText:Yb.hasText,isBubble:Yb.isBubble,attributes:lv(),layoutAttributes:M2(),supplyDefaults:fB(),crossTraceDefaults:S6(),supplyLayoutDefaults:dB(),calc:rp().calc,crossTraceCalc:UB(),arraysToCalcdata:L6(),plot:rz(),colorbar:qb(),formatLabels:H6(),style:j6().style,styleOnSelect:j6().styleOnSelect,hoverPoints:sz(),selectPoints:cz(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:yy(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Qz=N((QFe,$z)=>{"use strict";var yge=ha(),gge=ca(),Jz=jA(),tT=Ur(),bge=tT.strScale,xge=tT.strRotate,_ge=tT.strTranslate;$z.exports=function(r,t,a){var n=r.node(),i=Jz[a.arrowhead||0],o=Jz[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),f=t.indexOf("start")>=0,u=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,T=d.y-p.y;if(y=Math.atan2(T,b),m=y+Math.PI,c&&v&&c+v>Math.sqrt(b*b+T*T)){W();return}if(c){if(c*c>b*b+T*T){W();return}var _=c*Math.cos(y),x=c*Math.sin(y);p.x+=_,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+T*T){W();return}var A=v*Math.cos(y),E=v*Math.sin(y);d.x-=A,d.y-=E,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),k="";if(M{"use strict";var Kz=ha(),aT=Bt(),wge=xi(),vv=Ur(),nT=vv.strTranslate,by=hn(),s0=ca(),Vu=Va(),eG=Ou(),iT=no(),oT=Kc(),gy=Bs(),Age=Ja().arrayEditor,Tge=Qz();aG.exports={draw:Mge,drawOne:rG,drawRaw:tG};function Mge(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?_r="right":_r="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[_r]}for(var Ye=!1,re=["x","y"],de=0;de1)&&($e===Fe?(Tr=Ke.r2fraction(r["a"+ne]),(Tr<0||Tr>1)&&(Ye=!0)):Ye=!0),Vr=Ke._offset+Ke.r2p(r[ne]),or=.5}else{var tr=kt==="domain";ne==="x"?(Pe=r[ne],Vr=tr?Ke._offset+Ke._length*Pe:Vr=l.l+l.w*Pe):(Pe=1-r[ne],Vr=tr?Ke._offset+Ke._length*Pe:Vr=l.t+l.h*Pe),or=r.showarrow?.5:Pe}if(r.showarrow){wr.head=Vr;var sr=r["a"+ne];if(st=Ar*xr(.5,r.xanchor)-gr*xr(.5,r.yanchor),$e===Fe){var zr=by.getRefType($e);zr==="domain"?(ne==="y"&&(sr=1-sr),wr.tail=Ke._offset+Ke._length*sr):zr==="paper"?ne==="y"?(sr=1-sr,wr.tail=l.t+l.h*sr):wr.tail=l.l+l.w*sr:wr.tail=Ke._offset+Ke.r2p(sr),rt=st}else wr.tail=Vr+sr,rt=st+sr;wr.text=wr.tail+st;var nt=o[ne==="x"?"width":"height"];if(Fe==="paper"&&(wr.head=vv.constrain(wr.head,1,nt-1)),$e==="pixel"){var Yr=-Math.max(wr.tail-3,wr.text),Wr=Math.min(wr.tail+3,wr.text)-nt;Yr>0?(wr.tail+=Yr,wr.text+=Yr):Wr>0&&(wr.tail-=Wr,wr.text-=Wr)}wr.tail+=at,wr.head+=at}else st=et*xr(or,Hr),rt=st,wr.text=Vr+st;wr.text+=at,st+=at,rt+=at,r["_"+ne+"padplus"]=et/2+rt,r["_"+ne+"padminus"]=et/2-rt,r["_"+ne+"size"]=et,r["_"+ne+"shift"]=st}if(Ye){M.remove();return}var xt=0,jr=0;if(r.align!=="left"&&(xt=(we-Le)*(r.align==="center"?.5:1)),r.valign!=="top"&&(jr=(ur-Ve)*(r.valign==="middle"?.5:1)),Ee)le.select("svg").attr({x:P+xt-1,y:P+jr}).call(Vu.setClipUrl,R?y:null,e);else{var ot=P+jr-Ge.top,dr=P+xt-Ge.left;te.call(iT.positionText,dr,ot).call(Vu.setClipUrl,R?y:null,e)}H.select("rect").call(Vu.setRect,P,P,we,ur),O.call(Vu.setRect,k/2,k/2,Oe-k,Ue-k),M.call(Vu.setTranslate,Math.round(m.x.text-Oe/2),Math.round(m.y.text-Ue/2)),_.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Se=function(pr,_r){T.selectAll(".annotation-arrow-g").remove();var ht=m.x.head,Mt=m.y.head,wt=m.x.tail+pr,Nt=m.y.tail+_r,ta=m.x.text+pr,pa=m.y.text+_r,za=vv.rotationXYMatrix(b,ta,pa),rn=vv.apply2DTransform(za),Wa=vv.apply2DTransform2(za),Cn=+O.attr("width"),_n=+O.attr("height"),Si=ta-.5*Cn,un=Si+Cn,Bn=pa-.5*_n,Ei=Bn+_n,Ln=[[Si,Bn,Si,Ei],[Si,Ei,un,Ei],[un,Ei,un,Bn],[un,Bn,Si,Bn]].map(Wa);if(!Ln.reduce(function(Ya,wn){return Ya^!!vv.segmentsIntersect(ht,Mt,ht+1e6,Mt+1e6,wn[0],wn[1],wn[2],wn[3])},!1)){Ln.forEach(function(Ya){var wn=vv.segmentsIntersect(wt,Nt,ht,Mt,Ya[0],Ya[1],Ya[2],Ya[3]);wn&&(wt=wn.x,Nt=wn.y)});var mn=r.arrowwidth,At=r.arrowcolor,Ia=r.arrowside,ma=T.append("g").style({opacity:s0.opacity(At)}).classed("annotation-arrow-g",!0),Sa=ma.append("path").attr("d","M"+wt+","+Nt+"L"+ht+","+Mt).style("stroke-width",mn+"px").call(s0.stroke,s0.rgb(At));if(Tge(Sa,Ia,r),s.annotationPosition&&Sa.node().parentNode&&!a){var yn=ht,Fa=Mt;if(r.standoff){var va=Math.sqrt(Math.pow(ht-wt,2)+Math.pow(Mt-Nt,2));yn+=r.standoff*(wt-ht)/va,Fa+=r.standoff*(Nt-Mt)/va}var hi=ma.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(wt-yn)+","+(Nt-Fa),transform:nT(yn,Fa)}).style("stroke-width",mn+6+"px").call(s0.stroke,"rgba(0,0,0,0)").call(s0.fill,"rgba(0,0,0,0)"),Xi,Pn;gy.init({element:hi.node(),gd:e,prepFn:function(){var Ya=Vu.getTranslate(M);Xi=Ya.x,Pn=Ya.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Ya,wn){var ki=rn(Xi,Pn),vs=ki[0]+Ya,Ll=ki[1]+wn;M.call(Vu.setTranslate,vs,Ll),d("x",cv(n,Ya,"x",l,r)),d("y",cv(i,wn,"y",l,r)),r.axref===r.xref&&d("ax",cv(n,Ya,"ax",l,r)),r.ayref===r.yref&&d("ay",cv(i,wn,"ay",l,r)),ma.attr("transform",nT(Ya,wn)),_.attr({transform:"rotate("+b+","+vs+","+Ll+")"})},doneFn:function(){aT.call("_guiRelayout",e,p());var Ya=document.querySelector(".js-notes-box-panel");Ya&&Ya.redraw(Ya.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Ie;gy.init({element:M.node(),gd:e,prepFn:function(){Ie=_.attr("transform")},moveFn:function(pr,_r){var ht="pointer";if(r.showarrow)r.axref===r.xref?d("ax",cv(n,pr,"ax",l,r)):d("ax",r.ax+pr),r.ayref===r.yref?d("ay",cv(i,_r,"ay",l.w,r)):d("ay",r.ay+_r),Se(pr,_r);else{if(a)return;var Mt,wt;if(n)Mt=cv(n,pr,"x",l,r);else{var Nt=r._xsize/l.w,ta=r.x+(r._xshift-r.xshift)/l.w-Nt/2;Mt=gy.align(ta+pr/l.w,Nt,0,1,r.xanchor)}if(i)wt=cv(i,_r,"y",l,r);else{var pa=r._ysize/l.h,za=r.y-(r._yshift+r.yshift)/l.h-pa/2;wt=gy.align(za-_r/l.h,pa,0,1,r.yanchor)}d("x",Mt),d("y",wt),(!n||!i)&&(ht=gy.getCursor(n?.5:Mt,i?.5:wt,r.xanchor,r.yanchor))}_.attr({transform:nT(pr,_r)+Ie}),oT(M,ht)},clickFn:function(pr,_r){r.captureevents&&e.emit("plotly_clickannotation",E(_r))},doneFn:function(){oT(M),aT.call("_guiRelayout",e,p());var pr=document.querySelector(".js-notes-box-panel");pr&&pr.redraw(pr.selectedObj)}})}}s.annotationText?te.call(iT.makeEditable,{delegate:M,gd:e}).call(Q).on("edit",function(j){r.text=j,this.call(Q),d("text",j),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),aT.call("_guiRelayout",e,p())}):te.call(Q)}});var fG=N((eRe,sG)=>{"use strict";var nG=Ur(),Sge=Bt(),iG=Ja().arrayEditor;sG.exports={hasClickToShow:Ege,onClick:kge};function Ege(e,r){var t=lG(e,r);return t.on.length>0||t.explicitOff.length>0}function kge(e,r){var t=lG(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var lT=Ur(),sp=ca();uG.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=sp.opacity(o);n("borderpad");var s=n("borderwidth"),f=n("showarrow");n("text",f?" ":a._dfltTitle.annotation),n("textangle"),lT.coerceFont(n,"font",a.font),n("width"),n("align");var u=n("height");if(u&&n("valign"),f){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:sp.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(sp.opacity(i)?sp.rgb(i):sp.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||sp.contrast(m)),T=lT.extendFlat({},y.font);T.color||(T.color=b),lT.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var vG=N((tRe,cG)=>{"use strict";var fT=Ur(),f0=hn(),Cge=bl(),Lge=sT(),Dge=$d();cG.exports=function(r,t){Cge(r,t,{name:"annotations",handleItemDefaults:Fge})};function Fge(e,r,t){function a(_,x){return fT.coerce(e,r,Dge,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Lge(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],f={_fullLayout:t},u=0;u<2;u++){var c=l[u],v=f0.coerceRef(e,r,f,c,"","paper");if(v!=="paper"){var d=f0.getFromId(f,v);d._annIndices.push(r._index)}if(f0.coercePosition(r,f,a,v,c,.5),o){var p="a"+c,y=f0.coerceRef(e,r,f,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[u]:.4;f0.coercePosition(r,f,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(fT.noneOrAll(e,r,["x","y"]),o&&fT.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:f0.cleanPosition(b,f,r.xref),r._yclick=T===void 0?r.y:f0.cleanPosition(T,f,r.yref)}}}});var pG=N((aRe,dG)=>{"use strict";var uT=Ur(),u0=hn(),Rge=Wb().draw;dG.exports=function(r){var t=r._fullLayout,a=uT.filterVisible(t.annotations);if(a.length&&r._fullData.length)return uT.syncOrAsync([Rge,qge],r)};function qge(e){var r=e._fullLayout;uT.filterVisible(r.annotations).forEach(function(t){var a=u0.getFromId(e,t.xref),n=u0.getFromId(e,t.yref),i=u0.getRefType(t.xref),o=u0.getRefType(t.yref);t._extremes={},i==="range"&&hG(t,a),o==="range"&&hG(t,n)})}function hG(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],f=e["_"+a+"padminus"],u={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+u,d=c-u,p=3*e.startarrowsize*e.arrowwidth||0,y=p+u,m=p-u,b;if(l===o){var T=u0.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=u0.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(f,m)});b={min:[T.min[0],_.min[0]],max:[T.max[0],_.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=u0.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(f,d,m)});e._extremes[t]=b}});var yG=N((nRe,mG)=>{"use strict";var Pge=xa(),Nge=Wg();mG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),f,u;function c(d){var p=f[d],y=null;i?y=Nge(p,t.range):y=Math.pow(10,p),Pge(y)||(y=null),n(u+d,y)}for(var v=0;v{"use strict";var cT=Wb(),gG=fG();bG.exports={moduleType:"component",name:"annotations",layoutAttributes:$d(),supplyLayoutDefaults:vG(),includeBasePlot:Qm()("annotations"),calcAutorange:pG(),draw:cT.draw,drawOne:cT.drawOne,drawRaw:cT.drawRaw,hasClickToShow:gG.hasClickToShow,onClick:gG.onClick,convertCoords:yG()}});var jb=N((oRe,_G)=>{"use strict";var en=$d(),Ige=Rs().overrideAll,Oge=Ja().templatedArray;_G.exports=Ige(Oge("annotation",{visible:en.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:en.xanchor,xshift:en.xshift,yanchor:en.yanchor,yshift:en.yshift,text:en.text,textangle:en.textangle,font:en.font,width:en.width,height:en.height,opacity:en.opacity,align:en.align,valign:en.valign,bgcolor:en.bgcolor,bordercolor:en.bordercolor,borderpad:en.borderpad,borderwidth:en.borderwidth,showarrow:en.showarrow,arrowcolor:en.arrowcolor,arrowhead:en.arrowhead,startarrowhead:en.startarrowhead,arrowside:en.arrowside,arrowsize:en.arrowsize,startarrowsize:en.startarrowsize,arrowwidth:en.arrowwidth,standoff:en.standoff,startstandoff:en.startstandoff,hovertext:en.hovertext,hoverlabel:en.hoverlabel,captureevents:en.captureevents}),"calc","from-root")});var AG=N((lRe,wG)=>{"use strict";var vT=Ur(),Bge=hn(),zge=bl(),Gge=sT(),Uge=jb();wG.exports=function(r,t,a){zge(r,t,{name:"annotations",handleItemDefaults:Hge,fullLayout:a.fullLayout})};function Hge(e,r,t,a){function n(l,s){return vT.coerce(e,r,Uge,l,s)}function i(l){var s=l+"axis",f={_fullLayout:{}};return f._fullLayout[s]=t[s],Bge.coercePosition(r,f,n,l,l,.5)}var o=n("visible");o&&(Gge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),vT.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),vT.noneOrAll(e,r,["ax","ay"])))}});var EG=N((sRe,SG)=>{"use strict";var TG=Ur(),MG=hn();SG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function hT(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Yge(e,r){var t=hT(e.projection,hT(e.view,hT(e.model,[r[0],r[1],r[2],1])));return t}kG.exports=Yge});var DG=N((uRe,LG)=>{"use strict";var Wge=Wb().drawRaw,jge=CG(),Xge=["x","y","z"];LG.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=jge(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Wge(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var qG=N((cRe,RG)=>{"use strict";var Zge=Bt(),FG=Ur();RG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:jb()}}},layoutAttributes:jb(),handleDefaults:AG(),includeBasePlot:Jge,convert:EG(),draw:DG()};function Jge(e,r){var t=Zge.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var vRe=ui(),PG=Ui(),NG=lv().line,$ge=Nc().dash,Ws=Gn().extendFlat,Qge=Ja().templatedArray,hRe=Zm(),fp=Ds(),IG=$d(),{shapeTexttemplateAttrs:Kge,templatefallbackAttrs:e2e}=vd(),r2e=t2();OG.exports=Qge("shape",{visible:Ws({},fp.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ws({},fp.legend,{editType:"calc+arraydraw"}),legendgroup:Ws({},fp.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ws({},fp.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:PG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ws({},fp.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ws({},fp.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Ws({},IG.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Ws({},IG.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Ws({},NG.color,{editType:"arraydraw"}),width:Ws({},NG.width,{editType:"calc+arraydraw"}),dash:Ws({},$ge,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Kge({},{keys:Object.keys(r2e)}),texttemplatefallback:e2e({editType:"arraydraw"}),font:PG({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var zG=N((pRe,BG)=>{"use strict";var up=Ur(),Sl=hn(),t2e=bl(),a2e=dT(),xy=iv();BG.exports=function(r,t){t2e(r,t,{name:"shapes",handleItemDefaults:i2e})};function n2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function i2e(e,r,t){function a(_,x){return up.coerce(e,r,a2e,_,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),up.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),f=s!=="path";f&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var u=a("line.width");u&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(_=>{var x=_+"anchor",A=_==="x"?c:v,E={_fullLayout:t},M,k,F,P;let O=_+"ref",R=e[O];if(Array.isArray(R)&&R.length>0){let H=xy.countDefiningCoords(s,o,_);P=Sl.coerceRefArray(e,r,E,_,void 0,"paper",H),r["_"+_+"refArray"]=!0}else P=Sl.coerceRef(e,r,E,_,void 0,"paper");if(Array.isArray(P))P.forEach(function(H){Sl.getRefType(H)==="range"&&(M=Sl.getFromId(E,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),f&&[0,1].forEach(function(H){let W=P[H];Sl.getRefType(W)==="range"?(M=Sl.getFromId(E,W),k=xy.shapePositionToRange(M),F=xy.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+H+"shift")):k=F=up.identity;let te=_+H,Q=e[te];if(e[te]=k(e[te],!0),A==="pixel"?a(te,p[H]):Sl.coercePosition(r,E,a,W,te,d[H]),r[te]=F(r[te]),e[te]=Q,H===0&&A==="pixel"){let J=e[x];e[x]=k(e[x],!0),Sl.coercePosition(r,E,a,W,x,.25),r[x]=F(r[x]),e[x]=J}});else{if(Sl.getRefType(P)==="range"?(M=Sl.getFromId(E,P),M._shapeIndices.push(r._index),F=xy.rangeToShapePosition(M),k=xy.shapePositionToRange(M),f&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):k=F=up.identity,f){let W=_+"0",ee=_+"1",te=e[W],Q=e[ee];e[W]=k(e[W],!0),e[ee]=k(e[ee],!0),A==="pixel"?(a(W,p[0]),a(ee,p[1])):(Sl.coercePosition(r,E,a,P,W,d[0]),Sl.coercePosition(r,E,a,P,ee,d[1])),r[W]=F(r[W]),r[ee]=F(r[ee]),e[W]=te,e[ee]=Q}if(A==="pixel"){let W=e[x];e[x]=k(e[x],!0),Sl.coercePosition(r,E,a,P,x,.25),r[x]=F(r[x]),e[x]=W}}}),f&&up.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",m,b;if(f&&(m=a("label.texttemplate"),a("label.texttemplatefallback")),m||(b=a("label.text")),b||m){a("label.textangle");var T=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",n2e(y,T)),a("label.padding"),up.coerceFont(a,"label.font",t.font)}}});var HG=N((mRe,UG)=>{"use strict";var o2e=ca(),GG=Ur();function l2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}UG.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),GG.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",o2e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var f=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",l2e(o,f)),a("newshape.label.padding"),GG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var JG=N((yRe,ZG)=>{"use strict";var pT=Ur(),ns=hn(),Hf=Cm(),mT=iv();ZG.exports=function(r){var t=r._fullLayout,a=pT.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=ns.getFromId(r,c),i._extremes[o._id]=ns.findExtremes(o,v,YG(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=ns.getFromId(r,i.xref),l=jG(o,i,Hf.paramIsX),l&&(i._extremes[o._id]=ns.findExtremes(o,l,YG(i))));if(f==="array"){let u=VG(r,i,"y");Object.entries(u).forEach(([c,v])=>{o=ns.getFromId(r,c),i._extremes[o._id]=ns.findExtremes(o,v,WG(i))})}else i.yref!=="paper"&&f!=="domain"&&(o=ns.getFromId(r,i.yref),l=jG(o,i,Hf.paramIsY),l&&(i._extremes[o._id]=ns.findExtremes(o,l,WG(i))))}};function VG(e,r,t){let a=r[t+"ref"],n=t==="x"?Hf.paramIsX:Hf.paramIsY;function i(c,v){c==="paper"||ns.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Hf.segmentRE)||[];for(var l=0,s=0;sp&&(i(a[l],y[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let f={};for(let c in o){let v=ns.getFromId(e,c);if(v){var u=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(u=mT.decodeDate(u)),f[v._id]=o[c].map(u)}}return f}function YG(e){return XG(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function WG(e){return XG(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function XG(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?mT.extractPathCoords(n,i?Hf.paramIsY:Hf.paramIsX):[t,a],f=pT.aggNums(Math.max,null,s),u=pT.aggNums(Math.min,null,s),c=u<0?Math.abs(u)+o:o,v=f>0?f+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function jG(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,f=n?e.r2c:e.d2c,u=r[a+"sizemode"]==="scaled";if(u?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[f(i)+l,f(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Hf.segmentRE),p,y,m,b,T;for(e.type==="date"&&(f=mT.decodeDate(f)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var KG=N((gRe,QG)=>{"use strict";var $G=B3();QG.exports={moduleType:"component",name:"shapes",layoutAttributes:dT(),supplyLayoutDefaults:zG(),supplyDrawNewShapeDefaults:HG(),includeBasePlot:Qm()("shapes"),calcAutorange:JG(),draw:$G.draw,drawOne:$G.drawOne}});var yT=N((xRe,rU)=>{"use strict";var eU=ui(),s2e=Ja().templatedArray,bRe=Zm();rU.exports=s2e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",eU.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",eU.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var aU=N((_Re,tU)=>{"use strict";var f2e=Ur(),gT=hn(),u2e=bl(),c2e=yT(),v2e="images";tU.exports=function(r,t){var a={name:v2e,handleItemDefaults:h2e};u2e(r,t,a)};function h2e(e,r,t){function a(v,d){return f2e.coerce(e,r,c2e,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var f=l[s],u=gT.coerceRef(e,r,o,f,"paper",void 0);if(u!=="paper"){var c=gT.getFromId(o,u);c._imgIndices.push(r._index)}gT.coercePosition(r,o,a,u,f,0)}return r}});var lU=N((wRe,oU)=>{"use strict";var nU=ha(),d2e=Va(),cp=hn(),iU=Sn(),p2e=Wc();oU.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var sU=xa(),m2e=Wg();fU.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),f,u,c=0;c{"use strict";cU.exports={moduleType:"component",name:"images",layoutAttributes:yT(),supplyLayoutDefaults:aU(),includeBasePlot:Qm()("images"),draw:lU(),convertCoords:uU()}});var Xb=N((MRe,hU)=>{"use strict";hU.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var bT=N((SRe,pU)=>{"use strict";var y2e=Ui(),g2e=Mf(),b2e=Gn().extendFlat,x2e=Rs().overrideAll,_2e=a2(),dU=Ja().templatedArray,w2e=dU("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});pU.exports=x2e(dU("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:w2e,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:b2e(_2e({editType:"arraydraw"}),{}),font:y2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:g2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var bU=N((ERe,gU)=>{"use strict";var Zb=Ur(),mU=bl(),yU=bT(),A2e=Xb(),T2e=A2e.name,M2e=yU.buttons;gU.exports=function(r,t){var a={name:T2e,handleItemDefaults:S2e};mU(r,t,a)};function S2e(e,r,t){function a(o,l){return Zb.coerce(e,r,yU,o,l)}var n=mU(e,r,{name:"buttons",handleItemDefaults:E2e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Zb.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Zb.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function E2e(e,r){function t(n,i){return Zb.coerce(e,r,M2e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var wU=N((kRe,_U)=>{"use strict";_U.exports=En;var js=ha(),xU=ca(),vp=Va(),Jb=Ur();function En(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}En.barWidth=2;En.barLength=20;En.barRadius=2;En.barPad=1;En.barColor="#808BA4";En.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,f=this.position.t,u=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,b=u,T,_,x,A;!v&&!d&&!p&&!y&&(this.position.direction="down",v=!0);var E=v||y;E?(T=l,_=T+m,v?(x=f,A=Math.min(x+b,o),b=A-x):(A=f+b,x=Math.max(A-b,0),b=A-x)):(x=f,A=x+b,d?(_=l+m,T=Math.max(_-m,0),m=_-T):(T=l,_=Math.min(T+m,i),m=_-T)),this._box={l:T,t:x,w:m,h:b};var M=s>m,k=En.barLength+2*En.barPad,F=En.barWidth+2*En.barPad,P=l,O=f+u;O+F>o&&(O=o-F);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(xU.fill,En.barColor),M?(this.hbar=R.attr({rx:En.barRadius,ry:En.barRadius,x:P,y:O,width:k,height:F}),this._hbarXMin=P+k/2,this._hbarTranslateMax=m-k):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=u>b,W=En.barWidth+2*En.barPad,ee=En.barLength+2*En.barPad,te=l+s,Q=f;te+W>i&&(te=i-W);var J=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);J.exit().on(".drag",null).remove(),J.enter().append("rect").classed("scrollbar-vertical",!0).call(xU.fill,En.barColor),H?(this.vbar=J.attr({rx:En.barRadius,ry:En.barRadius,x:te,y:Q,width:W,height:ee}),this._vbarYMin=Q+ee/2,this._vbarTranslateMax=b-ee):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,se=T-.5,le=H?_+W+.5:_+.5,Ee=x-.5,Ge=M?A+F+.5:A+.5,Le=n._topdefs.selectAll("#"+j).data(M||H?[0]:[]);if(Le.exit().remove(),Le.enter().append("clipPath").attr("id",j).append("rect"),M||H?(this._clipRect=Le.select("rect").attr({x:Math.floor(se),y:Math.floor(Ee),width:Math.ceil(le)-Math.floor(se),height:Math.ceil(Ge)-Math.floor(Ee)}),this.container.call(vp.setClipUrl,j,this.gd),this.bg.attr({x:l,y:f,width:s,height:u})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vp.setClipUrl,null),delete this._clipRect),M||H){var Ve=js.behavior.drag().on("dragstart",function(){js.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ve);var we=js.behavior.drag().on("dragstart",function(){js.event.sourceEvent.preventDefault(),js.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(we),H&&this.vbar.on(".drag",null).call(we)}this.setTranslate(t,a)};En.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vp.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};En.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=js.event.dx),this.vbar&&(t-=js.event.dy),this.setTranslate(r,t)};En.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=js.event.deltaY),this.vbar&&(t+=js.event.deltaY),this.setTranslate(r,t)};En.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Jb.constrain(js.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,f=s+this._vbarTranslateMax,u=Jb.constrain(js.event.y,s,f),c=(u-s)/(f-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};En.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Jb.constrain(r||0,0,a),t=Jb.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(vp.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(vp.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(vp.setTranslate,r,t+o*this._vbarTranslateMax)}}});var FU=N((CRe,DU)=>{"use strict";var hp=ha(),_y=xi(),wy=ca(),dp=Va(),El=Ur(),$b=no(),k2e=Ja().arrayEditor,TU=ao().LINE_SPACING,Gt=Xb(),C2e=wU();DU.exports=function(r){var t=r._fullLayout,a=El.filterVisible(t[Gt.name]);function n(v){_y.autoMargin(r,CU(v))}var i=t._menulayer.selectAll("g."+Gt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Gt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){hp.select(this).selectAll("g."+Gt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Gt.headerGroupClassName).data(a,L2e);o.enter().append("g").classed(Gt.headerGroupClassName,!0);for(var l=El.ensureSingle(i,"g",Gt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var I2e=Xb();RU.exports={moduleType:"component",name:I2e.name,layoutAttributes:bT(),supplyLayoutDefaults:bU(),draw:FU()}});var Ty=N((DRe,PU)=>{"use strict";PU.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var AT=N((FRe,OU)=>{"use strict";var NU=Ui(),O2e=a2(),B2e=Gn().extendDeepAll,z2e=Rs().overrideAll,G2e=J1(),IU=Ja().templatedArray,c0=Ty(),U2e=IU("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});OU.exports=z2e(IU("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:U2e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:B2e(O2e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:G2e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:NU({})},font:NU({}),activebgcolor:{valType:"color",dflt:c0.gripBgActiveColor},bgcolor:{valType:"color",dflt:c0.railBgColor},bordercolor:{valType:"color",dflt:c0.railBorderColor},borderwidth:{valType:"number",min:0,dflt:c0.railBorderWidth},ticklen:{valType:"number",min:0,dflt:c0.tickLength},tickcolor:{valType:"color",dflt:c0.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:c0.minorTickLength}}),"arraydraw","from-root")});var UU=N((RRe,GU)=>{"use strict";var pp=Ur(),BU=bl(),zU=AT(),H2e=Ty(),V2e=H2e.name,Y2e=zU.steps;GU.exports=function(r,t){BU(r,t,{name:V2e,handleItemDefaults:W2e})};function W2e(e,r,t){function a(c,v){return pp.coerce(e,r,zU,c,v)}for(var n=BU(e,r,{name:"steps",handleItemDefaults:j2e}),i=0,o=0;o{"use strict";var Xs=ha(),Qb=xi(),hv=ca(),Zs=Va(),kl=Ur(),X2e=kl.strTranslate,My=no(),Z2e=Ja().arrayEditor,ea=Ty(),ST=ao(),YU=ST.LINE_SPACING,TT=ST.FROM_TL,MT=ST.FROM_BR;$U.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=J2e(a,r),i=a._infolayer.selectAll("g."+ea.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(ea.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),Qb.autoMargin(r,WU(u))}if(i.exit().each(function(){Xs.select(this).selectAll("g."+ea.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+ea.groupClassName).data(n,$2e);l.enter().append("g").classed(ea.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",X2e(o-ea.gripWidth*.5,r._dims.currentValueTotalHeight))}}function ET(e,r){var t=e._dims;return t.inputAreaStart+ea.stepInset+(t.inputAreaLength-2*ea.stepInset)*Math.min(1,Math.max(0,r))}function VU(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-ea.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*ea.stepInset-2*t.inputAreaStart)))}function n3e(e,r,t){var a=t._dims,n=kl.ensureSingle(e,"rect",ea.railTouchRectClass,function(i){i.call(ZU,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,ea.tickOffset+t.ticklen+a.labelHeight)}).call(hv.fill,t.bgcolor).attr("opacity",0),Zs.setTranslate(n,0,a.currentValueTotalHeight)}function i3e(e,r){var t=r._dims,a=t.inputAreaLength-ea.railInset*2,n=kl.ensureSingle(e,"rect",ea.railRectClass);n.attr({width:a,height:ea.railWidth,rx:ea.railRadius,ry:ea.railRadius,"shape-rendering":"crispEdges"}).call(hv.stroke,r.bordercolor).call(hv.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Zs.setTranslate(n,ea.railInset,(t.inputAreaWidth-ea.railWidth)*.5+t.currentValueTotalHeight)}});var eH=N((PRe,KU)=>{"use strict";var o3e=Ty();KU.exports={moduleType:"component",name:o3e.name,layoutAttributes:AT(),supplyLayoutDefaults:UU(),draw:QU()}});var ex=N((NRe,tH)=>{"use strict";var rH=Mf();tH.exports={bgcolor:{valType:"color",dflt:rH.background,editType:"plot"},bordercolor:{valType:"color",dflt:rH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var kT=N((IRe,aH)=>{"use strict";aH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var rx=N((ORe,nH)=>{"use strict";nH.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var lH=N(ax=>{"use strict";var l3e=Sn(),s3e=no(),iH=rx(),f3e=ao().LINE_SPACING,tx=iH.name;function oH(e){var r=e&&e[tx];return r&&r.visible}ax.isVisible=oH;ax.makeData=function(e){for(var r=l3e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var nx=Ur(),sH=Ja(),fH=Sn(),u3e=ex(),c3e=kT();uH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;nx.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=sH.newContainer(i,"rangeslider");function s(A,E){return nx.coerce(o,l,u3e,A,E)}var f,u;function c(A,E){return nx.coerce(f,u,c3e,A,E)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===fH.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),y=nx.simpleMap(p,fH.id2name),m=0;m{"use strict";var v3e=Sn().list,h3e=Pd().getAutoRange,d3e=rx();vH.exports=function(r){for(var t=v3e(r,"x",!0),a=0;a{"use strict";var ix=ha(),p3e=Bt(),m3e=xi(),On=Ur(),ox=On.strTranslate,pH=Va(),dv=ca(),y3e=dm(),g3e=yy(),CT=Sn(),b3e=Bs(),x3e=Kc(),la=rx();mH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=J.max)te=O[Q+1];else if(ee=J.pmax)te=O[Q+1];else if(ee0?e.touches[0].clientX:0}function _3e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+la.slideBoxClassName).node(),i=e.select("rect."+la.grabAreaMinClassName).node(),o=e.select("rect."+la.grabAreaMaxClassName).node();function l(){var s=ix.event,f=s.target,u=dH(s),c=u-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=b3e.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var T=dH(b),_=+T-u,x,A,E;switch(f){case n:if(E="ew-resize",v+_>t._length||d+_<0)return;x=v+_,A=d+_;break;case i:if(E="col-resize",v+_>t._length)return;x=v+_,A=d;break;case o:if(E="col-resize",d+_<0)return;x=v,A=d+_;break;default:E="ew-resize",x=c,A=c+_;break}if(A{"use strict";var D3e=Ur(),F3e=ex(),R3e=kT(),LT=lH();gH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:D3e.extendFlat({},F3e,{yaxis:R3e})}}},layoutAttributes:ex(),handleDefaults:cH(),calcAutorange:hH(),draw:yH(),isVisible:LT.isVisible,makeData:LT.makeData,autoMarginOpts:LT.autoMarginOpts}});var lx=N((VRe,_H)=>{"use strict";var q3e=Ui(),xH=Mf(),P3e=Ja().templatedArray,N3e=P3e("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});_H.exports={visible:{valType:"boolean",editType:"plot"},buttons:N3e,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:q3e({editType:"plot"}),bgcolor:{valType:"color",dflt:xH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:xH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var DT=N((YRe,wH)=>{"use strict";wH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var MH=N((WRe,TH)=>{"use strict";var sx=Ur(),I3e=ca(),O3e=Ja(),B3e=bl(),AH=lx(),FT=DT();TH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=O3e.newContainer(t,"rangeselector");function s(d,p){return sx.coerce(o,l,AH,d,p)}var f=B3e(o,l,{name:"buttons",handleItemDefaults:z3e,calendar:i}),u=s("visible",f.length>0);if(u){var c=G3e(t,a,n);s("x",c[0]),s("y",c[1]),sx.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),sx.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",I3e.contrast(v,FT.lightAmount,FT.darkAmount)),s("bordercolor"),s("borderwidth")}};function z3e(e,r,t,a){var n=a.calendar;function i(s,f){return sx.coerce(e,r,AH.buttons,s,f)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function G3e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var U3e=S5(),H3e=Ur().titleCase;SH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=V3e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function V3e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=U3e["utc"+H3e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var f=t[1];return[l,f]}});var PH=N((XRe,qH)=>{"use strict";var ux=ha(),Y3e=Bt(),W3e=xi(),kH=ca(),RH=Va(),Yu=Ur(),CH=Yu.strTranslate,fx=no(),j3e=Sn(),PT=ao(),LH=PT.LINE_SPACING,DH=PT.FROM_TL,FH=PT.FROM_BR,qT=DT(),X3e=EH();qH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Z3e(r),J3e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=ux.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Yu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(f){var u=ux.select(this),c=X3e(o,f);f._isActive=$3e(o,f,c),u.call(RT,l,f),u.call(K3e,l,f,r),u.on("click",function(){r._dragged||Y3e.call("_guiRelayout",r,c)}),u.on("mouseover",function(){f._isHovered=!0,u.call(RT,l,f)}),u.on("mouseout",function(){f._isHovered=!1,u.call(RT,l,f)})}),rbe(r,s,l,o._name,i)})};function Z3e(e){for(var r=j3e.list(e,"x",!0),t=[],a=0;a{"use strict";NH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:lx()}}},layoutAttributes:lx(),handleDefaults:MH(),draw:PH()}});var cx=N(NT=>{"use strict";var OH=Gn().extendFlat;NT.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:OH({},t,{}),y:OH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};NT.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var tbe=Ur(),abe=sd().counter,nbe=cx().attributes,BH=ui().idRegex,ibe=Ja(),IT={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[abe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[BH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[BH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:nbe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function vx(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function obe(e,r){var t=e.grid||{},a=vx(r,t,"x"),n=vx(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,f,u;i?(f=t.subplots.length,u=t.subplots[0].length):(l&&(f=n.length),o&&(u=a.length));var c=ibe.newContainer(r,"grid");function v(E,M){return tbe.coerce(t,c,IT,E,M)}var d=v("rows",f),p=v("columns",u);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",T=i?.2:.1,_=i?.3:.1,x,A;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,A=r._splomGridDflt.yside),c._domains={x:zH("x",v,T,x,p),y:zH("y",v,_,A,d,b)}}function zH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),f=l[0],u=(l[1]-f)/(n-o),c=u*(1-o),v=0;v{"use strict";HH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var WH=N((KRe,YH)=>{"use strict";var VH=xa(),sbe=Bt(),fbe=Ur(),ube=Ja(),cbe=BT();YH.exports=function(e,r,t,a){var n="error_"+a.axis,i=ube.newContainer(r,n),o=e[n]||{};function l(p,y){return fbe.coerce(o,i,cbe,p,y)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",f=l("visible",s);if(f!==!1){var u=l("type","array"in o?"data":"percent"),c=!0;u!=="sqrt"&&(c=l("symmetric",!((u==="data"?"arrayminus":"valueminus")in o))),u==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(u==="percent"||u==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||VH(o.thickness)||VH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",sbe.traceIs(r,"gl3d")?0:4))}}});var zT=N((eqe,XH)=>{"use strict";XH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(f,u){var c=+n[u];return[c,c]};var i=r.arrayminus||[];return function(f,u){var c=+n[u],v=+i[u];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=jH(t,r.value),l=jH(t,r.valueminus);return a||r.valueminus===void 0?function(f){var u=o(f);return[u,u]}:function(f){return[l(f),o(f)]}}};function jH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var $H=N((rqe,JH)=>{"use strict";var GT=xa(),vbe=Bt(),UT=hn(),hbe=Ur(),dbe=zT();JH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var QH=ha(),pv=xa(),pbe=Va(),mbe=Ni();KH.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,f=r._context.staticPlot;t.each(function(u){var c=u[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(T){return T.id});var y=mbe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(u=[]);var m=QH.select(this).selectAll("g.errorbar").data(u,p);if(m.exit().remove(),!!u.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),pbe.setClipUrl(m,a.layerClipId,r),m.each(function(T){var _=QH.select(this),x=ybe(T,o,l);if(!(y&&!T.vis)){var A,E=_.select("path.yerror");if(d.visible&&pv(x.x)&&pv(x.yh)&&pv(x.ys)){var M=d.width;A="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(A+="m-"+M+",0h"+2*M),i=!E.size(),i?E=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("yerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",A)}else E.remove();var k=_.select("path.xerror");if(v.visible&&pv(x.y)&&pv(x.xh)&&pv(x.xs)){var F=(v.copy_ystyle?d:v).width;A="M"+x.xh+","+(x.y-F)+"v"+2*F+"m0,-"+F+"H"+x.xs,x.noXS||(A+="m0,-"+F+"v"+2*F),i=!k.size(),i?k=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("xerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",A)}else k.remove()}})}})};function ybe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),pv(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),pv(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var aV=N((aqe,tV)=>{"use strict";var gbe=ha(),rV=ca();tV.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=gbe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(rV.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(rV.stroke,i.color)})}});var oV=N((nqe,iV)=>{"use strict";var Sy=Ur(),nV=Rs().overrideAll,Ey=BT(),v0={error_x:Sy.extendFlat({},Ey),error_y:Sy.extendFlat({},Ey)};delete v0.error_x.copy_zstyle;delete v0.error_y.copy_zstyle;delete v0.error_y.copy_ystyle;var ky={error_x:Sy.extendFlat({},Ey),error_y:Sy.extendFlat({},Ey),error_z:Sy.extendFlat({},Ey)};delete ky.error_x.copy_ystyle;delete ky.error_y.copy_ystyle;delete ky.error_z.copy_ystyle;delete ky.error_z.copy_zstyle;iV.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:v0,bar:v0,histogram:v0,scatter3d:nV(ky,"calc","nested"),scattergl:nV(v0,"calc","nested")}},supplyDefaults:WH(),calc:$H(),makeComputeError:zT(),plot:eV(),style:aV(),hoverInfo:bbe};function bbe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var sV=N((iqe,lV)=>{"use strict";lV.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var pV=N((oqe,dV)=>{"use strict";var mv=ha(),HT=Ls(),dx=xi(),fV=Bt(),Wu=hn(),hx=Bs(),is=Ur(),$s=is.strTranslate,hV=Gn().extendFlat,VT=Kc(),Js=Va(),YT=ca(),xbe=dm(),_be=no(),wbe=Is().flipScale,Abe=Q6(),Tbe=K6(),Mbe=Vl(),WT=ao(),uV=WT.LINE_SPACING,cV=WT.FROM_TL,vV=WT.FROM_BR,bn=sV().cn;function Sbe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+bn.colorbar).data(Ebe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(bn.colorbar,!0),t.each(function(a){var n=mv.select(this);is.ensureSingle(n,"rect",bn.cbbg),is.ensureSingle(n,"g",bn.cbfills),is.ensureSingle(n,"g",bn.cblines),is.ensureSingle(n,"g",bn.cbaxis,function(o){o.classed(bn.crisp,!0)}),is.ensureSingle(n,"g",bn.cbtitleunshift,function(o){o.append("g").classed(bn.cbtitle,!0)}),is.ensureSingle(n,"rect",bn.cboutline);var i=kbe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Cbe(n,a,e)}),t.exit().each(function(a){dx.autoMargin(e,a._id)}).remove(),t.order()}function Ebe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return hV(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function f(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?wbe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var u=0;u1){var de=Math.pow(10,Math.floor(Math.log(re)/Math.LN10));xr*=de*is.roundUp(re/de,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(Oe.tick0=0)}Oe.dtick=xr}Oe.domain=a?[we+p/x.h,we+j-p/x.h]:[we+d/x.w,we+j-d/x.w],Oe.setScale(),e.attr("transform",$s(Math.round(x.l),Math.round(x.t)));var ne=e.select("."+bn.cbtitleunshift).attr("transform",$s(-Math.round(x.l),-Math.round(x.t))),Fe=Oe.ticklabelposition,$e=Oe.title.font.size,Ke=e.select("."+bn.cbaxis),Cr,Ar=0,gr=0;function et(rt,Pe){var or={propContainer:Oe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+bn.cbtitle)},st=rt.charAt(0)==="h"?rt.slice(1):"h"+rt;e.selectAll("."+st+",."+st+"-math-group").remove(),xbe.draw(t,rt,hV(or,Pe||{}))}function Hr(){if(a&&Ue||!a&&!Ue){var rt,Pe;k==="top"&&(rt=d+x.l+se*y,Pe=p+x.t+le*(1-we-j)+3+$e*.75),k==="bottom"&&(rt=d+x.l+se*y,Pe=p+x.t+le*(1-we)-3-$e*.25),k==="right"&&(Pe=p+x.t+le*m+3+$e*.75,rt=d+x.l+se*we),et(Oe._id+"title",{attributes:{x:rt,y:Pe,"text-anchor":a?"start":"middle"}})}}function at(){if(a&&!Ue||!a&&Ue){var rt=Oe.position||0,Pe=Oe._offset+Oe._length/2,or,st;if(k==="right")st=Pe,or=x.l+se*rt+10+$e*(Oe.showticklabels?1:.5);else if(or=Pe,k==="bottom"&&(st=x.t+le*rt+10+(Fe.indexOf("inside")===-1?Oe.tickfont.size:0)+(Oe.ticks!=="inside"&&r.ticklen||0)),k==="top"){var kt=M.text.split("
").length;st=x.t+le*rt+10-te-uV*$e*kt}et((a?"h":"v")+Oe._id+"title",{avoid:{selection:mv.select(t).selectAll("g."+Oe._id+"tick"),side:k,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?_.width:_.height},attributes:{x:or,y:st,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function wr(){if(!a&&!Ue||a&&Ue){var rt=e.select("."+bn.cbtitle),Pe=rt.select("text"),or=[-s/2,s/2],st=rt.select(".h"+Oe._id+"title-math-group").node(),kt=15.6;Pe.node()&&(kt=parseInt(Pe.node().style.fontSize,10)*uV);var Tr;if(st?(Tr=Js.bBox(st),gr=Tr.width,Ar=Tr.height,Ar>kt&&(or[1]-=(Ar-kt)/2)):Pe.node()&&!Pe.classed(bn.jsPlaceholder)&&(Tr=Js.bBox(Pe.node()),gr=Tr.width,Ar=Tr.height),a){if(Ar){if(Ar+=5,k==="top")Oe.domain[1]-=Ar/x.h,or[1]*=-1;else{Oe.domain[0]+=Ar/x.h;var tr=_be.lineCount(Pe);or[1]+=(1-tr)*kt}rt.attr("transform",$s(or[0],or[1])),Oe.setScale()}}else gr&&(k==="right"&&(Oe.domain[0]+=(gr+$e/2)/x.w),rt.attr("transform",$s(or[0],or[1])),Oe.setScale())}e.selectAll("."+bn.cbfills+",."+bn.cblines).attr("transform",a?$s(0,Math.round(x.h*(1-Oe.domain[1]))):$s(Math.round(x.w*Oe.domain[0]),0)),Ke.attr("transform",a?$s(0,Math.round(-x.t)):$s(Math.round(-x.l),0));var sr=e.select("."+bn.cbfills).selectAll("rect."+bn.cbfill).attr("style","").data(W);sr.enter().append("rect").classed(bn.cbfill,!0).attr("style",""),sr.exit().remove();var zr=F.map(Oe.c2p).map(Math.round).sort(function(jr,ot){return jr-ot});sr.each(function(jr,ot){var dr=[ot===0?F[0]:(W[ot]+W[ot-1])/2,ot===W.length-1?F[1]:(W[ot]+W[ot+1])/2].map(Oe.c2p).map(Math.round);a&&(dr[1]=is.constrain(dr[1]+(dr[1]>dr[0])?1:-1,zr[0],zr[1]));var Se=mv.select(this).attr(a?"x":"y",Ee).attr(a?"y":"x",mv.min(dr)).attr(a?"width":"height",Math.max(te,2)).attr(a?"height":"width",Math.max(mv.max(dr)-mv.min(dr),2));if(r._fillgradient)Js.gradient(Se,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Ie=O(jr).replace("e-","");Se.attr("fill",HT(Ie).toHexString())}});var nt=e.select("."+bn.cblines).selectAll("path."+bn.cbline).data(E.color&&E.width?ee:[]);nt.enter().append("path").classed(bn.cbline,!0),nt.exit().remove(),nt.each(function(jr){var ot=Ee,dr=Math.round(Oe.c2p(jr))+E.width/2%1;mv.select(this).attr("d","M"+(a?ot+","+dr:dr+","+ot)+(a?"h":"v")+te).call(Js.lineGroupStyle,E.width,P(jr),E.dash)}),Ke.selectAll("g."+Oe._id+"tick,path").remove();var Yr=Ee+te+(s||0)/2-(r.ticks==="outside"?1:0),Wr=Wu.calcTicks(Oe),xt=Wu.getTickSigns(Oe)[2];return Wu.drawTicks(t,Oe,{vals:Oe.ticks==="inside"?Wu.clipEnds(Oe,Wr):Wr,layer:Ke,path:Wu.makeTickPath(Oe,Yr,xt),transFn:Wu.makeTransTickFn(Oe)}),Wu.drawLabels(t,Oe,{vals:Wr,layer:Ke,transFn:Wu.makeTransTickLabelFn(Oe),labelFns:Wu.makeLabelFns(Oe,Yr)})}function Vr(){var rt,Pe=te+s/2;Fe.indexOf("inside")===-1&&(rt=Js.bBox(Ke.node()),Pe+=a?rt.width:rt.height),Cr=ne.select("text");var or=0,st=a&&k==="top",kt=!a&&k==="right",Tr=0;if(Cr.node()&&!Cr.classed(bn.jsPlaceholder)){var tr,sr=ne.select(".h"+Oe._id+"title-math-group").node();sr&&(a&&Ue||!a&&!Ue)?(rt=Js.bBox(sr),or=rt.width,tr=rt.height):(rt=Js.bBox(ne.node()),or=rt.right-x.l-(a?Ee:ur),tr=rt.bottom-x.t-(a?ur:Ee),!a&&k==="top"&&(Pe+=rt.height,Tr=rt.height)),kt&&(Cr.attr("transform",$s(or/2+$e/2,0)),or*=2),Pe=Math.max(Pe,a?or:tr)}var zr=(a?d:p)*2+Pe+f+s/2,nt=0;!a&&M.text&&v==="bottom"&&m<=0&&(nt=zr/2,zr+=nt,Tr+=nt),_._hColorbarMoveTitle=nt,_._hColorbarMoveCBTitle=Tr;var Yr=f+s,Wr=(a?Ee:ur)-Yr/2-(a?d:0),xt=(a?ur:Ee)-(a?J:p+Tr-nt);e.select("."+bn.cbbg).attr("x",Wr).attr("y",xt).attr(a?"width":"height",Math.max(zr-nt,2)).attr(a?"height":"width",Math.max(J+Yr,2)).call(YT.fill,u).call(YT.stroke,r.bordercolor).style("stroke-width",f);var jr=kt?Math.max(or-10,0):0;e.selectAll("."+bn.cboutline).attr("x",(a?Ee:ur+d)+jr).attr("y",(a?ur+p-J:Ee)+(st?Ar:0)).attr(a?"width":"height",Math.max(te,2)).attr(a?"height":"width",Math.max(J-(a?2*p+Ar:2*d+jr),2)).call(YT.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var ot=a?Ge*zr:0,dr=a?0:(1-Le)*zr-Tr;if(ot=T?x.l-ot:-ot,dr=b?x.t-dr:-dr,e.attr("transform",$s(ot,dr)),!a&&(f||HT(u).getAlpha()&&!HT.equals(_.paper_bgcolor,u))){var Se=Ke.selectAll("text"),Ie=Se[0].length,pr=e.select("."+bn.cbbg).node(),_r=Js.bBox(pr),ht=Js.getTranslate(e),Mt=2;Se.each(function(Si,un){var Bn=0,Ei=Ie-1;if(un===Bn||un===Ei){var Ln=Js.bBox(this),mn=Js.getTranslate(this),At;if(un===Ei){var Ia=Ln.right+mn.x,ma=_r.right+ht.x+ur-f-Mt+y;At=ma-Ia,At>0&&(At=0)}else if(un===Bn){var Sa=Ln.left+mn.x,yn=_r.left+ht.x+ur+f+Mt;At=yn-Sa,At<0&&(At=0)}At&&(Ie<3?this.setAttribute("transform","translate("+At+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var wt={},Nt=cV[c],ta=vV[c],pa=cV[v],za=vV[v],rn=zr-te;a?(i==="pixels"?(wt.y=m,wt.t=J*pa,wt.b=J*za):(wt.t=wt.b=0,wt.yt=m+n*pa,wt.yb=m-n*za),l==="pixels"?(wt.x=y,wt.l=zr*Nt,wt.r=zr*ta):(wt.l=rn*Nt,wt.r=rn*ta,wt.xl=y-o*Nt,wt.xr=y+o*ta)):(i==="pixels"?(wt.x=y,wt.l=J*Nt,wt.r=J*ta):(wt.l=wt.r=0,wt.xl=y+n*Nt,wt.xr=y-n*ta),l==="pixels"?(wt.y=1-m,wt.t=zr*pa,wt.b=zr*za):(wt.t=rn*pa,wt.b=rn*za,wt.yt=m-o*pa,wt.yb=m+o*za));var Wa=r.y<.5?"b":"t",Cn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var _n={r:_.width-Wr-ot,l:Wr+wt.r,b:_.height-xt-dr,t:xt+wt.b};T&&b?dx.autoMargin(t,r._id,wt):T?t._fullLayout._reservedMargin[r._id][Wa]=_n[Wa]:b||a?t._fullLayout._reservedMargin[r._id][Cn]=_n[Cn]:t._fullLayout._reservedMargin[r._id][Wa]=_n[Wa]}return is.syncOrAsync([dx.previousPromises,Hr,wr,at,dx.previousPromises,Vr],t)}function Cbe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;hx.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),VT(e)},moveFn:function(f,u){e.attr("transform",o+$s(f,u)),l=hx.align((a?r._uFrac:r._vFrac)+f/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=hx.align((a?r._vFrac:1-r._uFrac)-u/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=hx.getCursor(l,s,r.xanchor,r.yanchor);VT(e,c)},doneFn:function(){if(VT(e),l!==void 0&&s!==void 0){var f={};f[r._propPrefix+"x"]=l,f[r._propPrefix+"y"]=s,r._traceIndex!==void 0?fV.call("_guiRestyle",t,f,r._traceIndex):fV.call("_guiRelayout",t,f)}}})}function Lbe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,f=a.size,u=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*f,!(f>0?o>=s:o<=s));l++)o>u&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";mV.exports={moduleType:"component",name:"colorbar",attributes:R2(),supplyDefaults:z4(),draw:pV().draw,hasColorbar:C4()}});var bV=N((sqe,gV)=>{"use strict";gV.exports={moduleType:"component",name:"legend",layoutAttributes:Iw(),supplyLayoutDefaults:Bw(),draw:eA(),style:Jw()}});var _V=N((fqe,xV)=>{"use strict";xV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var AV=N((uqe,wV)=>{"use strict";wV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var XT=N((cqe,EV)=>{"use strict";var Fbe=Bt(),SV=Ur(),jT=SV.extendFlat,TV=SV.extendDeep;function MV(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Rbe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}EV.exports=function(r,t){var a,n=r.data,i=r.layout,o=TV([],n),l=TV({},i,MV(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var f=Object.keys(l);for(a=0;a{"use strict";var qbe=x2().EventEmitter,Pbe=Bt(),Nbe=Ur(),kV=t0(),Ibe=XT(),Obe=_b(),Bbe=wb();function zbe(e,r){var t=new qbe,a=Ibe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=kV.getDelay(n._fullLayout);setTimeout(function(){var s=Obe(n),f=document.createElement("canvas");f.id=Nbe.randstr(),t=Bbe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:f,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=kV.getRedrawFunc(n);return Pbe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}CV.exports=zbe});var RV=N((hqe,FV)=>{"use strict";var DV=t0(),Gbe={getDelay:DV.getDelay,getRedrawFunc:DV.getRedrawFunc,clone:XT(),toSVG:_b(),svgToImg:wb(),toImage:LV(),downloadImage:g6()};FV.exports=Gbe});var PV=N(ju=>{"use strict";ju.version=Ng().version;DM();xC();var Ube=Bt(),Cy=ju.register=Ube.register,JT=UO(),qV=Object.keys(JT);for(px=0;px{"use strict";NV.exports=PV()});var $T=N((mqe,BV)=>{"use strict";var Hbe=Bt(),Cl=Ur(),Vbe=X6();function Ybe(e,r,t,a){var n=e.cd,i=n[0].t,o=n[0].trace,l=e.xa,s=e.ya,f=i.x,u=i.y,c=l.c2p(r),v=s.c2p(t),d=e.distance,p;if(i.tree){var y=l.p2c(c-d),m=l.p2c(c+d),b=s.p2c(v-d),T=s.p2c(v+d);a==="x"?p=i.tree.range(Math.min(y,m),Math.min(s._rl[0],s._rl[1]),Math.max(y,m),Math.max(s._rl[0],s._rl[1])):p=i.tree.range(Math.min(y,m),Math.min(b,T),Math.max(y,m),Math.max(b,T))}else p=i.ids;var _,x,A,E,M,k,F,P,O,R=d;if(a==="x"){var H=!!o.xperiodalignment,W=!!o.yperiodalignment;for(M=0;M=Math.min(ee,te)&&c<=Math.max(ee,te)?0:1/0}if(k=Math.min(Q,J)&&v<=Math.max(Q,J)?0:1/0}O=Math.sqrt(k*k+F*F),x=p[M]}}}else for(M=p.length-1;M>-1;M--)_=p[M],A=f[_],E=u[_],k=l.c2p(A)-c,F=s.c2p(E)-v,P=Math.sqrt(k*k+F*F),P{"use strict";var zV=20;GV.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:zV,SYMBOL_STROKE:zV/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var yx=N((gqe,YV)=>{"use strict";var Wbe=Ds(),jbe=Ui(),Xbe=XA(),xn=lv(),UV=um().axisHoverFormat,HV=Nh(),Zbe=u2(),QT=Gn().extendFlat,Jbe=Rs().overrideAll,$be=yp().DASHES,VV=xn.line,Xu=xn.marker,Qbe=Xu.line,yv=YV.exports=Jbe({x:xn.x,x0:xn.x0,dx:xn.dx,y:xn.y,y0:xn.y0,dy:xn.dy,xperiod:xn.xperiod,yperiod:xn.yperiod,xperiod0:xn.xperiod0,yperiod0:xn.yperiod0,xperiodalignment:xn.xperiodalignment,yperiodalignment:xn.yperiodalignment,xhoverformat:UV("x"),yhoverformat:UV("y"),text:xn.text,hovertext:xn.hovertext,textposition:xn.textposition,textfont:jbe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:VV.color,width:VV.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:Zbe($be),dflt:"solid"}},marker:QT({},HV("marker"),{symbol:Xu.symbol,angle:Xu.angle,size:Xu.size,sizeref:Xu.sizeref,sizemin:Xu.sizemin,sizemode:Xu.sizemode,opacity:Xu.opacity,colorbar:Xu.colorbar,line:QT({},HV("marker.line"),{width:Qbe.width})}),connectgaps:xn.connectgaps,fill:QT({},xn.fill,{dflt:"none"}),fillcolor:Xbe(),selected:{marker:xn.selected.marker,textfont:xn.selected.textfont},unselected:{marker:xn.unselected.marker,textfont:xn.unselected.textfont},opacity:Wbe.opacity},"calc","nested");yv.x.editType=yv.y.editType=yv.x0.editType=yv.y0.editType="calc+clearAxisTypes";yv.hovertemplate=xn.hovertemplate;yv.hovertemplatefallback=xn.hovertemplatefallback;yv.texttemplate=xn.texttemplate;yv.texttemplatefallback=xn.texttemplatefallback});var gx=N(KT=>{"use strict";var WV=yp();KT.isOpenSymbol=function(e){return typeof e=="string"?WV.OPEN_RE.test(e):e%200>100};KT.isDotSymbol=function(e){return typeof e=="string"?WV.DOT_RE.test(e):e>200}});var ZV=N((xqe,XV)=>{"use strict";var jV=Ur(),Kbe=Bt(),exe=gx(),rxe=yx(),txe=Jm(),bx=Ni(),axe=_6(),nxe=w6(),ixe=Eb(),oxe=A6(),lxe=M6(),sxe=T6();XV.exports=function(r,t,a,n){function i(d,p){return jV.coerce(r,t,rxe,d,p)}var o=r.marker?exe.isOpenSymbol(r.marker.symbol):!1,l=bx.isBubble(r),s=axe(r,t,n,i);if(!s){t.visible=!1;return}nxe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var f=s{"use strict";var fxe=H6();JV.exports=function(r,t,a){var n=r.i;return"x"in r||(r.x=t._x[n]),"y"in r||(r.y=t._y[n]),fxe(r,t,a)}});var KV=N((wqe,QV)=>{"use strict";function uxe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>=0?(i=o,n=o-1):a=o+1}return i}function cxe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>0?(i=o,n=o-1):a=o+1}return i}function vxe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<0?(i=o,a=o+1):n=o-1}return i}function hxe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<=0?(i=o,a=o+1):n=o-1}return i}function dxe(e,r,t,a,n){for(;a<=n;){var i=a+n>>>1,o=e[i],l=t!==void 0?t(o,r):o-r;if(l===0)return i;l<=0?a=i+1:n=i-1}return-1}function Ly(e,r,t,a,n,i){return typeof t=="function"?i(e,r,t,a===void 0?0:a|0,n===void 0?e.length-1:n|0):i(e,r,void 0,t===void 0?0:t|0,a===void 0?e.length-1:a|0)}QV.exports={ge:function(e,r,t,a,n){return Ly(e,r,t,a,n,uxe)},gt:function(e,r,t,a,n){return Ly(e,r,t,a,n,cxe)},lt:function(e,r,t,a,n){return Ly(e,r,t,a,n,vxe)},le:function(e,r,t,a,n){return Ly(e,r,t,a,n,hxe)},eq:function(e,r,t,a,n){return Ly(e,r,t,a,n,dxe)}}});var Dy=N((Aqe,eY)=>{eY.exports=pxe;function pxe(e,r,t){return rt?t:e:er?r:e}});var Vf=N((Tqe,tY)=>{"use strict";tY.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=rY(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var mxe=Vf();aY.exports=yxe;function yxe(e){var r;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?r={width:e[0],height:e[0],x:0,y:0}:e.length===2?r={width:e[0],height:e[1],x:0,y:0}:r={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=mxe(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),r={x:e.left||0,y:e.top||0},e.width==null?e.right?r.width=e.right-r.x:r.width=0:r.width=e.width,e.height==null?e.bottom?r.height=e.bottom-r.y:r.height=0:r.height=e.height),r}});var h0=N((Sqe,nY)=>{"use strict";nY.exports=gxe;function gxe(e,r){if(!e||e.length==null)throw Error("Argument should be an array");r==null?r=1:r=Math.floor(r);for(var t=Array(r*2),a=0;an&&(n=e[o]),e[o]{iY.exports=function(){for(var e=0;e{lY.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var d0=N((Cqe,fY)=>{var sY=xx();fY.exports=bxe;function bxe(e,r,t){if(!e)throw new TypeError("must specify data as first parameter");if(t=+(t||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var a=e[0].length,n=e.length*a,i,o,l,s;(!r||typeof r=="string")&&(r=new(sY(r||"float32"))(n+t));var f=r.length-t;if(n!==f)throw new Error("source length "+n+" ("+a+"x"+e.length+") does not match destination length "+f);for(i=0,l=t;i{"use strict";uY.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var hY=N((Dqe,vY)=>{"use strict";vY.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var xY=N((Fqe,bY)=>{"use strict";var dY=KV(),pY=Dy(),xxe=gp(),_xe=h0(),mY=Vf(),r8=oY(),wxe=d0(),Axe=cY(),Txe=xx(),yY=hY(),Mxe=1073741824;bY.exports=function(r,t){t||(t={}),r=wxe(r,"float64"),t=mY(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=r8(t.maxDepth,255),n=r8(t.bounds,_xe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=gY(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(Txe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||E>Mxe){for(let J=0;JEe||F>Ge||P=R||se===le)return;let Le=s[j];le===void 0&&(le=Le.length);for(let de=se;de=x&&Fe<=E&&$e>=A&&$e<=M&&H.push(ne)}let Ve=f[j],we=Ve[se*4+0],ur=Ve[se*4+1],Oe=Ve[se*4+2],Ue=Ve[se*4+3],xr=ee(Ve,se+1),Ye=J*.5,re=j+1;W(te,Q,Ye,re,we,ur||Oe||Ue||xr),W(te,Q+Ye,Ye,re,ur,Oe||Ue||xr),W(te+Ye,Q,Ye,re,Oe,Ue||xr),W(te+Ye,Q+Ye,Ye,re,Ue,xr)}function ee(te,Q){let J=null,j=0;for(;J===null;)if(J=te[Q*4+j],j++,j>te.length)return null;return J}return H}function y(b,T,_,x,A){let E=[];for(let M=0;M{"use strict";_Y.exports=xY()});var a8=N((qqe,wY)=>{wY.exports=Sxe;function Sxe(e){var r=0,t=0,a=0,n=0;return e.map(function(i){i=i.slice();var o=i[0],l=o.toUpperCase();if(o!=l)switch(i[0]=l,o){case"a":i[6]+=a,i[7]+=n;break;case"v":i[1]+=n;break;case"h":i[1]+=a;break;default:for(var s=1;s{"use strict";Object.defineProperty(_x,"__esModule",{value:!0});var Exe=function(){function e(r,t){var a=[],n=!0,i=!1,o=void 0;try{for(var l=r[Symbol.iterator](),s;!(n=(s=l.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(f){i=!0,o=f}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}return a}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Fy=Math.PI*2,n8=function(r,t,a,n,i,o,l){var s=r.x,f=r.y;s*=t,f*=a;var u=n*s-i*f,c=i*s+n*f;return{x:u+o,y:c+l}},kxe=function(r,t){var a=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(r),i=Math.sin(r),o=Math.cos(r+t),l=Math.sin(r+t);return[{x:n-i*a,y:i+n*a},{x:o+l*a,y:l-o*a},{x:o,y:l}]},AY=function(r,t,a,n){var i=r*n-t*a<0?-1:1,o=r*a+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},Cxe=function(r,t,a,n,i,o,l,s,f,u,c,v){var d=Math.pow(i,2),p=Math.pow(o,2),y=Math.pow(c,2),m=Math.pow(v,2),b=d*p-d*m-p*y;b<0&&(b=0),b/=d*m+p*y,b=Math.sqrt(b)*(l===s?-1:1);var T=b*i/o*v,_=b*-o/i*c,x=u*T-f*_+(r+a)/2,A=f*T+u*_+(t+n)/2,E=(c-T)/i,M=(v-_)/o,k=(-c-T)/i,F=(-v-_)/o,P=AY(1,0,E,M),O=AY(E,M,k,F);return s===0&&O>0&&(O-=Fy),s===1&&O<0&&(O+=Fy),[x,A,P,O]},Lxe=function(r){var t=r.px,a=r.py,n=r.cx,i=r.cy,o=r.rx,l=r.ry,s=r.xAxisRotation,f=s===void 0?0:s,u=r.largeArcFlag,c=u===void 0?0:u,v=r.sweepFlag,d=v===void 0?0:v,p=[];if(o===0||l===0)return[];var y=Math.sin(f*Fy/360),m=Math.cos(f*Fy/360),b=m*(t-n)/2+y*(a-i)/2,T=-y*(t-n)/2+m*(a-i)/2;if(b===0&&T===0)return[];o=Math.abs(o),l=Math.abs(l);var _=Math.pow(b,2)/Math.pow(o,2)+Math.pow(T,2)/Math.pow(l,2);_>1&&(o*=Math.sqrt(_),l*=Math.sqrt(_));var x=Cxe(t,a,n,i,o,l,c,d,y,m,b,T),A=Exe(x,4),E=A[0],M=A[1],k=A[2],F=A[3],P=Math.abs(F)/(Fy/4);Math.abs(1-P)<1e-7&&(P=1);var O=Math.max(Math.ceil(P),1);F/=O;for(var R=0;R{"use strict";EY.exports=Fxe;var Dxe=MY();function Fxe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function wx(e,r,t,a){return["C",e,r,t,a,t,a]}function SY(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}});var i8=N((Nqe,CY)=>{"use strict";CY.exports=function(r){return typeof r!="string"?!1:(r=r.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4))}});var Ax=N((Iqe,LY)=>{"use strict";LY.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var Ry=N((Oqe,DY)=>{"use strict";var Rxe=Ax();DY.exports=function(){return Rxe()&&!!Symbol.toStringTag}});var o8=N((Bqe,FY)=>{"use strict";FY.exports=Object});var qY=N((zqe,RY)=>{"use strict";RY.exports=Error});var NY=N((Gqe,PY)=>{"use strict";PY.exports=EvalError});var OY=N((Uqe,IY)=>{"use strict";IY.exports=RangeError});var zY=N((Hqe,BY)=>{"use strict";BY.exports=ReferenceError});var l8=N((Vqe,GY)=>{"use strict";GY.exports=SyntaxError});var bp=N((Yqe,UY)=>{"use strict";UY.exports=TypeError});var VY=N((Wqe,HY)=>{"use strict";HY.exports=URIError});var WY=N((jqe,YY)=>{"use strict";YY.exports=Math.abs});var XY=N((Xqe,jY)=>{"use strict";jY.exports=Math.floor});var JY=N((Zqe,ZY)=>{"use strict";ZY.exports=Math.max});var QY=N((Jqe,$Y)=>{"use strict";$Y.exports=Math.min});var eW=N(($qe,KY)=>{"use strict";KY.exports=Math.pow});var tW=N((Qqe,rW)=>{"use strict";rW.exports=Math.round});var nW=N((Kqe,aW)=>{"use strict";aW.exports=Number.isNaN||function(r){return r!==r}});var oW=N((ePe,iW)=>{"use strict";var qxe=nW();iW.exports=function(r){return qxe(r)||r===0?r:r<0?-1:1}});var sW=N((rPe,lW)=>{"use strict";lW.exports=Object.getOwnPropertyDescriptor});var p0=N((tPe,fW)=>{"use strict";var Tx=sW();if(Tx)try{Tx([],"length")}catch(e){Tx=null}fW.exports=Tx});var qy=N((aPe,uW)=>{"use strict";var Mx=Object.defineProperty||!1;if(Mx)try{Mx({},"a",{value:1})}catch(e){Mx=!1}uW.exports=Mx});var hW=N((nPe,vW)=>{"use strict";var cW=typeof Symbol!="undefined"&&Symbol,Pxe=Ax();vW.exports=function(){return typeof cW!="function"||typeof Symbol!="function"||typeof cW("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Pxe()}});var s8=N((iPe,dW)=>{"use strict";dW.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var f8=N((oPe,pW)=>{"use strict";var Nxe=o8();pW.exports=Nxe.getPrototypeOf||null});var gW=N((lPe,yW)=>{"use strict";var Ixe="Function.prototype.bind called on incompatible ",Oxe=Object.prototype.toString,Bxe=Math.max,zxe="[object Function]",mW=function(r,t){for(var a=[],n=0;n{"use strict";var Hxe=gW();bW.exports=Function.prototype.bind||Hxe});var Sx=N((fPe,xW)=>{"use strict";xW.exports=Function.prototype.call});var u8=N((uPe,_W)=>{"use strict";_W.exports=Function.prototype.apply});var AW=N((cPe,wW)=>{"use strict";wW.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var MW=N((vPe,TW)=>{"use strict";var Vxe=xp(),Yxe=u8(),Wxe=Sx(),jxe=AW();TW.exports=jxe||Vxe.call(Wxe,Yxe)});var EW=N((hPe,SW)=>{"use strict";var Xxe=xp(),Zxe=bp(),Jxe=Sx(),$xe=MW();SW.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new Zxe("a function is required");return $xe(Xxe,Jxe,r)}});var RW=N((dPe,FW)=>{"use strict";var Qxe=EW(),kW=p0(),LW;try{LW=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var c8=!!LW&&kW&&kW(Object.prototype,"__proto__"),DW=Object,CW=DW.getPrototypeOf;FW.exports=c8&&typeof c8.get=="function"?Qxe([c8.get]):typeof CW=="function"?function(r){return CW(r==null?r:DW(r))}:!1});var OW=N((pPe,IW)=>{"use strict";var qW=s8(),PW=f8(),NW=RW();IW.exports=qW?function(r){return qW(r)}:PW?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return PW(r)}:NW?function(r){return NW(r)}:null});var zW=N((mPe,BW)=>{"use strict";var Kxe=Function.prototype.call,e_e=Object.prototype.hasOwnProperty,r_e=xp();BW.exports=r_e.call(Kxe,e_e)});var Cx=N((yPe,WW)=>{"use strict";var qa,t_e=o8(),a_e=qY(),n_e=NY(),i_e=OY(),o_e=zY(),Tp=l8(),Ap=bp(),l_e=VY(),s_e=WY(),f_e=XY(),u_e=JY(),c_e=QY(),v_e=eW(),h_e=tW(),d_e=oW(),VW=Function,v8=function(e){try{return VW('"use strict"; return ('+e+").constructor;")()}catch(r){}},Py=p0(),p_e=qy(),h8=function(){throw new Ap},m_e=Py?function(){try{return arguments.callee,h8}catch(e){try{return Py(arguments,"callee").get}catch(r){return h8}}}():h8,_p=hW()(),Yi=OW(),y_e=f8(),g_e=s8(),YW=u8(),Ny=Sx(),wp={},b_e=typeof Uint8Array=="undefined"||!Yi?qa:Yi(Uint8Array),m0={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?qa:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?qa:ArrayBuffer,"%ArrayIteratorPrototype%":_p&&Yi?Yi([][Symbol.iterator]()):qa,"%AsyncFromSyncIteratorPrototype%":qa,"%AsyncFunction%":wp,"%AsyncGenerator%":wp,"%AsyncGeneratorFunction%":wp,"%AsyncIteratorPrototype%":wp,"%Atomics%":typeof Atomics=="undefined"?qa:Atomics,"%BigInt%":typeof BigInt=="undefined"?qa:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?qa:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?qa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?qa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a_e,"%eval%":eval,"%EvalError%":n_e,"%Float16Array%":typeof Float16Array=="undefined"?qa:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?qa:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?qa:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?qa:FinalizationRegistry,"%Function%":VW,"%GeneratorFunction%":wp,"%Int8Array%":typeof Int8Array=="undefined"?qa:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?qa:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?qa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_p&&Yi?Yi(Yi([][Symbol.iterator]())):qa,"%JSON%":typeof JSON=="object"?JSON:qa,"%Map%":typeof Map=="undefined"?qa:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!_p||!Yi?qa:Yi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t_e,"%Object.getOwnPropertyDescriptor%":Py,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?qa:Promise,"%Proxy%":typeof Proxy=="undefined"?qa:Proxy,"%RangeError%":i_e,"%ReferenceError%":o_e,"%Reflect%":typeof Reflect=="undefined"?qa:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?qa:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!_p||!Yi?qa:Yi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?qa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_p&&Yi?Yi(""[Symbol.iterator]()):qa,"%Symbol%":_p?Symbol:qa,"%SyntaxError%":Tp,"%ThrowTypeError%":m_e,"%TypedArray%":b_e,"%TypeError%":Ap,"%Uint8Array%":typeof Uint8Array=="undefined"?qa:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?qa:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?qa:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?qa:Uint32Array,"%URIError%":l_e,"%WeakMap%":typeof WeakMap=="undefined"?qa:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?qa:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?qa:WeakSet,"%Function.prototype.call%":Ny,"%Function.prototype.apply%":YW,"%Object.defineProperty%":p_e,"%Object.getPrototypeOf%":y_e,"%Math.abs%":s_e,"%Math.floor%":f_e,"%Math.max%":u_e,"%Math.min%":c_e,"%Math.pow%":v_e,"%Math.round%":h_e,"%Math.sign%":d_e,"%Reflect.getPrototypeOf%":g_e};if(Yi)try{null.error}catch(e){GW=Yi(Yi(e)),m0["%Error.prototype%"]=GW}var GW,x_e=function e(r){var t;if(r==="%AsyncFunction%")t=v8("async function () {}");else if(r==="%GeneratorFunction%")t=v8("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=v8("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Yi&&(t=Yi(n.prototype))}return m0[r]=t,t},UW={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Iy=xp(),Ex=zW(),__e=Iy.call(Ny,Array.prototype.concat),w_e=Iy.call(YW,Array.prototype.splice),HW=Iy.call(Ny,String.prototype.replace),kx=Iy.call(Ny,String.prototype.slice),A_e=Iy.call(Ny,RegExp.prototype.exec),T_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M_e=/\\(\\)?/g,S_e=function(r){var t=kx(r,0,1),a=kx(r,-1);if(t==="%"&&a!=="%")throw new Tp("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new Tp("invalid intrinsic syntax, expected opening `%`");var n=[];return HW(r,T_e,function(i,o,l,s){n[n.length]=l?HW(s,M_e,"$1"):o||i}),n},E_e=function(r,t){var a=r,n;if(Ex(UW,a)&&(n=UW[a],a="%"+n[0]+"%"),Ex(m0,a)){var i=m0[a];if(i===wp&&(i=x_e(a)),typeof i=="undefined"&&!t)throw new Ap("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new Tp("intrinsic "+r+" does not exist!")};WW.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new Ap("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Ap('"allowMissing" argument must be a boolean');if(A_e(/^%?[^%]*%?$/,r)===null)throw new Tp("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=S_e(r),n=a.length>0?a[0]:"",i=E_e("%"+n+"%",t),o=i.name,l=i.value,s=!1,f=i.alias;f&&(n=f[0],w_e(a,__e([0,1],f)));for(var u=1,c=!0;u=a.length){var y=Py(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=Ex(l,v),l=l[v];c&&!s&&(m0[o]=l)}}return l}});var JW=N((gPe,ZW)=>{"use strict";var jW=qy(),k_e=l8(),Mp=bp(),XW=p0();ZW.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new Mp("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Mp("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Mp("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Mp("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Mp("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Mp("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!XW&&XW(r,t);if(jW)jW(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new k_e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var p8=N((bPe,QW)=>{"use strict";var d8=qy(),$W=function(){return!!d8};$W.hasArrayLengthDefineBug=function(){if(!d8)return null;try{return d8([],"length",{value:1}).length!==1}catch(r){return!0}};QW.exports=$W});var aj=N((xPe,tj)=>{"use strict";var C_e=Cx(),KW=JW(),L_e=p8()(),ej=p0(),rj=bp(),D_e=C_e("%Math.floor%");tj.exports=function(r,t){if(typeof r!="function")throw new rj("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||D_e(t)!==t)throw new rj("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&ej){var o=ej(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(L_e?KW(r,"length",t,!0,!0):KW(r,"length",t)),r}});var Oy=N((_Pe,Lx)=>{"use strict";var m8=xp(),Dx=Cx(),F_e=aj(),R_e=bp(),oj=Dx("%Function.prototype.apply%"),lj=Dx("%Function.prototype.call%"),sj=Dx("%Reflect.apply%",!0)||m8.call(lj,oj),nj=qy(),q_e=Dx("%Math.max%");Lx.exports=function(r){if(typeof r!="function")throw new R_e("a function is required");var t=sj(m8,lj,arguments);return F_e(t,1+q_e(0,r.length-(arguments.length-1)),!0)};var ij=function(){return sj(m8,oj,arguments)};nj?nj(Lx.exports,"apply",{value:ij}):Lx.exports.apply=ij});var Sp=N((wPe,cj)=>{"use strict";var fj=Cx(),uj=Oy(),P_e=uj(fj("String.prototype.indexOf"));cj.exports=function(r,t){var a=fj(r,!!t);return typeof a=="function"&&P_e(r,".prototype.")>-1?uj(a):a}});var dj=N((APe,hj)=>{"use strict";var N_e=Ry()(),I_e=Sp(),y8=I_e("Object.prototype.toString"),Fx=function(r){return N_e&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:y8(r)==="[object Arguments]"},vj=function(r){return Fx(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&y8(r)!=="[object Array]"&&y8(r.callee)==="[object Function]"},O_e=function(){return Fx(arguments)}();Fx.isLegacyArguments=vj;hj.exports=O_e?Fx:vj});var yj=N((TPe,mj)=>{"use strict";var B_e=Object.prototype.toString,z_e=Function.prototype.toString,G_e=/^\s*(?:function)?\*/,pj=Ry()(),g8=Object.getPrototypeOf,U_e=function(){if(!pj)return!1;try{return Function("return function*() {}")()}catch(e){}},b8;mj.exports=function(r){if(typeof r!="function")return!1;if(G_e.test(z_e.call(r)))return!0;if(!pj){var t=B_e.call(r);return t==="[object GeneratorFunction]"}if(!g8)return!1;if(typeof b8=="undefined"){var a=U_e();b8=a?g8(a):!1}return g8(r)===b8}});var _j=N((MPe,xj)=>{"use strict";var bj=Function.prototype.toString,Ep=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,_8,Rx;if(typeof Ep=="function"&&typeof Object.defineProperty=="function")try{_8=Object.defineProperty({},"length",{get:function(){throw Rx}}),Rx={},Ep(function(){throw 42},null,_8)}catch(e){e!==Rx&&(Ep=null)}else Ep=null;var H_e=/^\s*class\b/,w8=function(r){try{var t=bj.call(r);return H_e.test(t)}catch(a){return!1}},x8=function(r){try{return w8(r)?!1:(bj.call(r),!0)}catch(t){return!1}},qx=Object.prototype.toString,V_e="[object Object]",Y_e="[object Function]",W_e="[object GeneratorFunction]",j_e="[object HTMLAllCollection]",X_e="[object HTML document.all class]",Z_e="[object HTMLCollection]",J_e=typeof Symbol=="function"&&!!Symbol.toStringTag,$_e=!(0 in[,]),A8=function(){return!1};typeof document=="object"&&(gj=document.all,qx.call(gj)===qx.call(document.all)&&(A8=function(r){if(($_e||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=qx.call(r);return(t===j_e||t===X_e||t===Z_e||t===V_e)&&r("")==null}catch(a){}return!1}));var gj;xj.exports=Ep?function(r){if(A8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{Ep(r,null,_8)}catch(t){if(t!==Rx)return!1}return!w8(r)&&x8(r)}:function(r){if(A8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(J_e)return x8(r);if(w8(r))return!1;var t=qx.call(r);return t!==Y_e&&t!==W_e&&!/^\[object HTML/.test(t)?!1:x8(r)}});var T8=N((SPe,Aj)=>{"use strict";var Q_e=_j(),K_e=Object.prototype.toString,wj=Object.prototype.hasOwnProperty,e5e=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),K_e.call(r)==="[object Array]"?e5e(r,t,n):typeof r=="string"?r5e(r,t,n):t5e(r,t,n)};Aj.exports=a5e});var S8=N((EPe,Tj)=>{"use strict";var M8=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],n5e=typeof globalThis=="undefined"?window:globalThis;Tj.exports=function(){for(var r=[],t=0;t{"use strict";var Nx=T8(),i5e=S8(),Mj=Oy(),C8=Sp(),Px=p0(),o5e=C8("Object.prototype.toString"),Ej=Ry()(),Sj=typeof globalThis=="undefined"?window:globalThis,k8=i5e(),L8=C8("String.prototype.slice"),E8=Object.getPrototypeOf,l5e=C8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:f5e(r)}return Px?s5e(r):null}});var Pj=N((CPe,qj)=>{"use strict";var Lj=T8(),u5e=S8(),F8=Sp(),c5e=F8("Object.prototype.toString"),Dj=Ry()(),Ox=p0(),v5e=typeof globalThis=="undefined"?window:globalThis,Fj=u5e(),h5e=F8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return Ox?p5e(r):!1}});var Zj=N(Pa=>{"use strict";var m5e=dj(),y5e=yj(),Qs=Cj(),Nj=Pj();function kp(e){return e.call.bind(e)}var Ij=typeof BigInt!="undefined",Oj=typeof Symbol!="undefined",os=kp(Object.prototype.toString),g5e=kp(Number.prototype.valueOf),b5e=kp(String.prototype.valueOf),x5e=kp(Boolean.prototype.valueOf);Ij&&(Bj=kp(BigInt.prototype.valueOf));var Bj;Oj&&(zj=kp(Symbol.prototype.valueOf));var zj;function zy(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}Pa.isArgumentsObject=m5e;Pa.isGeneratorFunction=y5e;Pa.isTypedArray=Nj;function _5e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Pa.isPromise=_5e;function w5e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Nj(e)||Uj(e)}Pa.isArrayBufferView=w5e;function A5e(e){return Qs(e)==="Uint8Array"}Pa.isUint8Array=A5e;function T5e(e){return Qs(e)==="Uint8ClampedArray"}Pa.isUint8ClampedArray=T5e;function M5e(e){return Qs(e)==="Uint16Array"}Pa.isUint16Array=M5e;function S5e(e){return Qs(e)==="Uint32Array"}Pa.isUint32Array=S5e;function E5e(e){return Qs(e)==="Int8Array"}Pa.isInt8Array=E5e;function k5e(e){return Qs(e)==="Int16Array"}Pa.isInt16Array=k5e;function C5e(e){return Qs(e)==="Int32Array"}Pa.isInt32Array=C5e;function L5e(e){return Qs(e)==="Float32Array"}Pa.isFloat32Array=L5e;function D5e(e){return Qs(e)==="Float64Array"}Pa.isFloat64Array=D5e;function F5e(e){return Qs(e)==="BigInt64Array"}Pa.isBigInt64Array=F5e;function R5e(e){return Qs(e)==="BigUint64Array"}Pa.isBigUint64Array=R5e;function Bx(e){return os(e)==="[object Map]"}Bx.working=typeof Map!="undefined"&&Bx(new Map);function q5e(e){return typeof Map=="undefined"?!1:Bx.working?Bx(e):e instanceof Map}Pa.isMap=q5e;function zx(e){return os(e)==="[object Set]"}zx.working=typeof Set!="undefined"&&zx(new Set);function P5e(e){return typeof Set=="undefined"?!1:zx.working?zx(e):e instanceof Set}Pa.isSet=P5e;function Gx(e){return os(e)==="[object WeakMap]"}Gx.working=typeof WeakMap!="undefined"&&Gx(new WeakMap);function N5e(e){return typeof WeakMap=="undefined"?!1:Gx.working?Gx(e):e instanceof WeakMap}Pa.isWeakMap=N5e;function q8(e){return os(e)==="[object WeakSet]"}q8.working=typeof WeakSet!="undefined"&&q8(new WeakSet);function I5e(e){return q8(e)}Pa.isWeakSet=I5e;function Ux(e){return os(e)==="[object ArrayBuffer]"}Ux.working=typeof ArrayBuffer!="undefined"&&Ux(new ArrayBuffer);function Gj(e){return typeof ArrayBuffer=="undefined"?!1:Ux.working?Ux(e):e instanceof ArrayBuffer}Pa.isArrayBuffer=Gj;function Hx(e){return os(e)==="[object DataView]"}Hx.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Hx(new DataView(new ArrayBuffer(1),0,1));function Uj(e){return typeof DataView=="undefined"?!1:Hx.working?Hx(e):e instanceof DataView}Pa.isDataView=Uj;var R8=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function By(e){return os(e)==="[object SharedArrayBuffer]"}function Hj(e){return typeof R8=="undefined"?!1:(typeof By.working=="undefined"&&(By.working=By(new R8)),By.working?By(e):e instanceof R8)}Pa.isSharedArrayBuffer=Hj;function O5e(e){return os(e)==="[object AsyncFunction]"}Pa.isAsyncFunction=O5e;function B5e(e){return os(e)==="[object Map Iterator]"}Pa.isMapIterator=B5e;function z5e(e){return os(e)==="[object Set Iterator]"}Pa.isSetIterator=z5e;function G5e(e){return os(e)==="[object Generator]"}Pa.isGeneratorObject=G5e;function U5e(e){return os(e)==="[object WebAssembly.Module]"}Pa.isWebAssemblyCompiledModule=U5e;function Vj(e){return zy(e,g5e)}Pa.isNumberObject=Vj;function Yj(e){return zy(e,b5e)}Pa.isStringObject=Yj;function Wj(e){return zy(e,x5e)}Pa.isBooleanObject=Wj;function jj(e){return Ij&&zy(e,Bj)}Pa.isBigIntObject=jj;function Xj(e){return Oj&&zy(e,zj)}Pa.isSymbolObject=Xj;function H5e(e){return Vj(e)||Yj(e)||Wj(e)||jj(e)||Xj(e)}Pa.isBoxedPrimitive=H5e;function V5e(e){return typeof Uint8Array!="undefined"&&(Gj(e)||Hj(e))}Pa.isAnyArrayBuffer=V5e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Pa,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var $j=N((DPe,Jj)=>{Jj.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var Qj=N((FPe,P8)=>{typeof Object.create=="function"?P8.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:P8.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var Lp=N(Na=>{var Kj=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),B8(r)?t.showHidden=r:r&&Na._extend(t,r),g0(t.showHidden)&&(t.showHidden=!1),g0(t.depth)&&(t.depth=2),g0(t.colors)&&(t.colors=!1),g0(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=W5e),jx(t,e,t.depth)}Na.inspect=gv;gv.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};gv.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function W5e(e,r){var t=gv.styles[r];return t?"\x1B["+gv.colors[t][0]+"m"+e+"\x1B["+gv.colors[t][1]+"m":e}function j5e(e,r){return e}function X5e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function jx(e,r,t){if(e.customInspect&&r&&Wx(r.inspect)&&r.inspect!==Na.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Jx(a)||(a=jx(e,a,t)),a}var n=Z5e(e,r);if(n)return n;var i=Object.keys(r),o=X5e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),Uy(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return N8(r);if(i.length===0){if(Wx(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(Gy(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Xx(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Uy(r))return N8(r)}var s="",f=!1,u=["{","}"];if(rX(r)&&(f=!0,u=["[","]"]),Wx(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(Gy(r)&&(s=" "+RegExp.prototype.toString.call(r)),Xx(r)&&(s=" "+Date.prototype.toUTCString.call(r)),Uy(r)&&(s=" "+N8(r)),i.length===0&&(!f||r.length==0))return u[0]+s+u[1];if(t<0)return Gy(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return f?v=J5e(e,r,t,o,i):v=i.map(function(d){return O8(e,r,t,o,d,f)}),e.seen.pop(),$5e(v,s,u)}function Z5e(e,r){if(g0(r))return e.stylize("undefined","undefined");if(Jx(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(tX(r))return e.stylize(""+r,"number");if(B8(r))return e.stylize(""+r,"boolean");if(Zx(r))return e.stylize("null","null")}function N8(e){return"["+Error.prototype.toString.call(e)+"]"}function J5e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o24?(isFinite(g)&&(clearTimeout(mi),mi=setTimeout(Mo,g)),Uo=0):(Uo=1,nf(Mo))}e.timer.flush=function(){Fl(),nc()};function Fl(){for(var h=Date.now(),g=Tn;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function nc(){for(var h,g=Tn,w=1/0;g;)g.c?(g.t=0;--q)Me.push(L[ie[me[q]][2]]);for(q=+Xe;q1&&za(h[w[C-2]],h[w[C-1]],h[L])<=0;)--C;w[C++]=L}return w.slice(0,C)}function i1(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return xe(h,ic),h};var ic=e.geom.polygon.prototype=[];ic.area=function(){for(var h=-1,g=this.length,w,C=this[g-1],L=0;++hIe)q=q.L;else if(G=g-Hv(q,w),G>Ie){if(!q.R){C=q;break}q=q.R}else{D>-Ie?(C=q.P,L=q):G>-Ie?(C=q,L=q.N):C=L=q;break}var Z=oc(h);if(gi.insert(C,Z),!(!C&&!L)){if(C===L){ff(C),L=oc(C.site),gi.insert(Z,L),Z.edge=L.edge=au(C.site,Z.site),Gi(C),Gi(L);return}if(!L){Z.edge=au(C.site,Z.site);return}ff(C),ff(L);var ie=C.site,oe=ie.x,me=ie.y,ge=h.x-oe,Xe=h.y-me,Qe=L.site,Me=Qe.x-oe,Fe=Qe.y-me,Ve=2*(ge*Fe-Xe*Me),er=ge*ge+Xe*Xe,rr=Me*Me+Fe*Fe,De={x:(Fe*er-Xe*rr)/Ve+oe,y:(ge*rr-Me*er)/Ve+me};Pl(L.edge,ie,Qe,De),Z.edge=au(ie,h,null,De),L.edge=au(h,Qe,null,De),Gi(C),Gi(L)}}function lc(h,g){var w=h.site,C=w.x,L=w.y,D=L-g;if(!D)return C;var G=h.P;if(!G)return-1/0;w=G.site;var q=w.x,Z=w.y,ie=Z-g;if(!ie)return q;var oe=q-C,me=1/D-1/ie,ge=oe/ie;return me?(-ge+Math.sqrt(ge*ge-2*me*(oe*oe/(-2*ie)-Z+ie/2+L-D/2)))/me+C:(C+q)/2}function Hv(h,g){var w=h.N;if(w)return lc(w,g);var C=h.site;return C.y===g?C.x:1/0}function sc(h){this.site=h,this.edges=[]}sc.prototype.prepare=function(){for(var h=this.edges,g=h.length,w;g--;)w=h[g].edge,(!w.b||!w.a)&&h.splice(g,1);return h.sort(sf),h.length};function Eo(h){for(var g=h[0][0],w=h[1][0],C=h[0][1],L=h[1][1],D,G,q,Z,ie=So,oe=ie.length,me,ge,Xe,Qe,Me,Fe;oe--;)if(me=ie[oe],!(!me||!me.prepare()))for(Xe=me.edges,Qe=Xe.length,ge=0;geIe||b(Z-G)>Ie)&&(Xe.splice(ge,0,new fc(s1(me.site,Fe,b(q-g)Ie?{x:g,y:b(D-g)Ie?{x:b(G-L)Ie?{x:w,y:b(D-w)Ie?{x:b(G-C)=-pr)){var ge=Z*Z+ie*ie,Xe=oe*oe+Fe*Fe,Qe=(Fe*ge-ie*Xe)/me,Me=(Z*Xe-oe*ge)/me,Fe=Me+q,Ve=lf.pop()||new ru;Ve.arc=h,Ve.site=L,Ve.x=Qe+G,Ve.y=Fe+Math.sqrt(Qe*Qe+Me*Me),Ve.cy=Fe,h.circle=Ve;for(var er=null,rr=sl._;rr;)if(Ve.y0)){if(Me/=Xe,Xe<0){if(Me0){if(Me>ge)return;Me>me&&(me=Me)}if(Me=w-q,!(!Xe&&Me<0)){if(Me/=Xe,Xe<0){if(Me>ge)return;Me>me&&(me=Me)}else if(Xe>0){if(Me0)){if(Me/=Qe,Qe<0){if(Me0){if(Me>ge)return;Me>me&&(me=Me)}if(Me=C-Z,!(!Qe&&Me<0)){if(Me/=Qe,Qe<0){if(Me>ge)return;Me>me&&(me=Me)}else if(Qe>0){if(Me0&&(L.a={x:q+me*Xe,y:Z+me*Qe}),ge<1&&(L.b={x:q+ge*Xe,y:Z+ge*Qe}),L}}}}}}function l1(h){for(var g=Yo,w=o1(h[0][0],h[0][1],h[1][0],h[1][1]),C=g.length,L;C--;)L=g[C],(!tu(L,h)||!w(L)||b(L.a.x-L.b.x)=D)return;if(oe>ge){if(!C)C={x:Qe,y:G};else if(C.y>=q)return;w={x:Qe,y:q}}else{if(!C)C={x:Qe,y:q};else if(C.y1)if(oe>ge){if(!C)C={x:(G-Ve)/Fe,y:G};else if(C.y>=q)return;w={x:(q-Ve)/Fe,y:q}}else{if(!C)C={x:(q-Ve)/Fe,y:q};else if(C.y=D)return;w={x:D,y:Fe*D+Ve}}else{if(!C)C={x:D,y:Fe*D+Ve};else if(C.x=oe&&Ve.x<=ge&&Ve.y>=me&&Ve.y<=Xe?[[oe,Xe],[ge,Xe],[ge,me],[oe,me]]:[];er.point=Z[Me]}),ie}function q(Z){return Z.map(function(ie,oe){return{x:Math.round(C(ie,oe)/Ie)*Ie,y:Math.round(L(ie,oe)/Ie)*Ie,i:oe}})}return G.links=function(Z){return ul(q(Z)).edges.filter(function(ie){return ie.l&&ie.r}).map(function(ie){return{source:Z[ie.l.i],target:Z[ie.r.i]}})},G.triangles=function(Z){var ie=[];return ul(q(Z)).cells.forEach(function(oe,me){for(var ge=oe.site,Xe=oe.edges.sort(sf),Qe=-1,Me=Xe.length,Fe,Ve,er=Xe[Me-1].edge,rr=er.l===ge?er.r:er.l;++Qerr&&(rr=oe.x),oe.y>De&&(De=oe.y),Xe.push(oe.x),Qe.push(oe.y);else for(Me=0;Merr&&(rr=Rr),Br>De&&(De=Br),Xe.push(Rr),Qe.push(Br)}var it=rr-Ve,mt=De-er;it>mt?De=er+it:rr=Ve+mt;function Ct(Ft,It,ga,gn,La,dt,Yt,jt){if(!(isNaN(ga)||isNaN(gn)))if(Ft.leaf){var ua=Ft.x,ja=Ft.y;if(ua!=null)if(b(ua-ga)+b(ja-gn)<.01)Lt(Ft,It,ga,gn,La,dt,Yt,jt);else{var Rn=Ft.point;Ft.x=Ft.y=Ft.point=null,Lt(Ft,Rn,ua,ja,La,dt,Yt,jt),Lt(Ft,It,ga,gn,La,dt,Yt,jt)}else Ft.x=ga,Ft.y=gn,Ft.point=It}else Lt(Ft,It,ga,gn,La,dt,Yt,jt)}function Lt(Ft,It,ga,gn,La,dt,Yt,jt){var ua=(La+Yt)*.5,ja=(dt+jt)*.5,Rn=ga>=ua,Kn=gn>=ja,ei=Kn<<1|Rn;Ft.leaf=!1,Ft=Ft.nodes[ei]||(Ft.nodes[ei]=z0()),Rn?La=ua:Yt=ua,Kn?dt=ja:jt=ja,Ct(Ft,It,ga,gn,La,dt,Yt,jt)}var Vt=z0();if(Vt.add=function(Ft){Ct(Vt,Ft,+me(Ft,++Me),+ge(Ft,Me),Ve,er,rr,De)},Vt.visit=function(Ft){nu(Ft,Vt,Ve,er,rr,De)},Vt.find=function(Ft){return Vv(Vt,Ft[0],Ft[1],Ve,er,rr,De)},Me=-1,g==null){for(;++MeD||ge>G||Xe=Rr,mt=w>=Br,Ct=mt<<1|it,Lt=Ct+4;Ctw&&(D=g.slice(w,D),q[G]?q[G]+=D:q[++G]=D),(C=C[0])===(L=L[0])?q[G]?q[G]+=L:q[++G]=L:(q[++G]=null,Z.push({i:G,x:Li(C,L)})),w=iu.lastIndex;return w=0&&!(C=e.interpolators[w](h,g)););return C}e.interpolators=[function(h,g){var w=typeof g;return(w==="string"?In.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?ko:Mn:g instanceof ha?ko:Array.isArray(g)?cf:w==="object"&&isNaN(g)?G0:Li)(h,g)}],e.interpolateArray=cf;function cf(h,g){var w=[],C=[],L=h.length,D=g.length,G=Math.min(h.length,g.length),q;for(q=0;q=0?h.slice(0,g):h,C=g>=0?h.slice(g+1):"in";return w=Yv.get(w)||cc,C=Wv.get(C)||ee,h1(C(w.apply(null,r.call(arguments,1))))};function h1(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function co(h){return function(g){return 1-h(1-g)}}function Aa(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function jv(h){return h*h}function Xv(h){return h*h*h}function Ji(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,w=g*h;return 4*(h<.5?w:3*(h-g)+w-.75)}function Zv(h){return function(g){return Math.pow(g,h)}}function $v(h){return 1-Math.cos(h*wt)}function d1(h){return Math.pow(2,10*(h-1))}function p1(h){return 1-Math.sqrt(1-h*h)}function y1(h,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/ht*Math.asin(1/h):(h=1,w=g/4),function(C){return 1+h*Math.pow(2,-10*C)*Math.sin((C-w)*ht/g)}}function m1(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function ou(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Jv;function Jv(h,g){h=e.hcl(h),g=e.hcl(g);var w=h.h,C=h.c,L=h.l,D=g.h-w,G=g.c-C,q=g.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?g.c:C),isNaN(D)?(D=0,w=isNaN(w)?g.h:w):D>180?D-=360:D<-180&&(D+=360),function(Z){return Xi(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateHsl=g1;function g1(h,g){h=e.hsl(h),g=e.hsl(g);var w=h.h,C=h.s,L=h.l,D=g.h-w,G=g.s-C,q=g.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?g.s:C),isNaN(D)?(D=0,w=isNaN(w)?g.h:w):D>180?D-=360:D<-180&&(D+=360),function(Z){return Ra(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateLab=Qv;function Qv(h,g){h=e.lab(h),g=e.lab(g);var w=h.l,C=h.a,L=h.b,D=g.l-w,G=g.a-C,q=g.b-L;return function(Z){return ac(w+D*Z,C+G*Z,L+q*Z)+""}}e.interpolateRound=vc;function vc(h,g){return g-=h,function(w){return Math.round(h+g*w)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var C=g.transform.baseVal.consolidate()}return new U0(C?C.matrix:gs)})(h)};function U0(h){var g=[h.a,h.b],w=[h.c,h.d],C=H0(g),L=Nl(g,w),D=H0(Di(w,g,-L))||0;g[0]*w[1]180?g+=360:g-h>180&&(h+=360),C.push({i:w.push(Il(w)+"rotate(",null,")")-2,x:Li(h,g)})):g&&w.push(Il(w)+"rotate("+g+")")}function rh(h,g,w,C){h!==g?C.push({i:w.push(Il(w)+"skewX(",null,")")-2,x:Li(h,g)}):g&&w.push(Il(w)+"skewX("+g+")")}function th(h,g,w,C){if(h[0]!==g[0]||h[1]!==g[1]){var L=w.push(Il(w)+"scale(",null,",",null,")");C.push({i:L-4,x:Li(h[0],g[0])},{i:L-2,x:Li(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Il(w)+"scale("+g+")")}function hc(h,g){var w=[],C=[];return h=e.transform(h),g=e.transform(g),Kv(h.translate,g.translate,w,C),eh(h.rotate,g.rotate,w,C),rh(h.skew,g.skew,w,C),th(h.scale,g.scale,w,C),h=g=null,function(L){for(var D=-1,G=C.length,q;++D0?D=De:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:D=0})):De>0&&(g.start({type:"start",alpha:D=De}),w=Ho(h.tick)),h):D},h.start=function(){var De,Rr=Xe.length,Br=Qe.length,it=C[0],mt=C[1],Ct,Lt;for(De=0;De=0;)D.push(oe=ie[Z]),oe.parent=q,oe.depth=q.depth+1;w&&(q.value=0),q.children=ie}else w&&(q.value=+w.call(C,q,q.depth)||0),delete q.children;return Wo(L,function(me){var ge,Xe;h&&(ge=me.children)&&ge.sort(h),w&&(Xe=me.parent)&&(Xe.value+=me.value)}),G}return C.sort=function(L){return arguments.length?(h=L,C):h},C.children=function(L){return arguments.length?(g=L,C):g},C.value=function(L){return arguments.length?(w=L,C):w},C.revalue=function(L){return w&&(su(L,function(D){D.children&&(D.value=0)}),Wo(L,function(D){var G;D.children||(D.value=+w.call(C,D,D.depth)||0),(G=D.parent)&&(G.value+=D.value)})),L},C};function bs(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=A1,h}function su(h,g){for(var w=[h];(h=w.pop())!=null;)if(g(h),(L=h.children)&&(C=L.length))for(var C,L;--C>=0;)w.push(L[C])}function Wo(h,g){for(var w=[h],C=[];(h=w.pop())!=null;)if(C.push(h),(G=h.children)&&(D=G.length))for(var L=-1,D,G;++LL&&(L=q),C.push(q)}for(G=0;GC&&(w=g,C=L);return w}function S1(h){return h.reduce(E1,0)}function E1(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,w=C1,C=k1;function L(D,ge){for(var q=[],Z=D.map(g,this),ie=w.call(this,Z,ge),oe=C.call(this,ie,Z,ge),me,ge=-1,Xe=Z.length,Qe=oe.length-1,Me=h?1:1/Xe,Fe;++ge0)for(ge=-1;++ge=ie[0]&&Fe<=ie[1]&&(me=q[e.bisect(oe,Fe,1,Qe)-1],me.y+=Me,me.push(D[ge]));return q}return L.value=function(D){return arguments.length?(g=D,L):g},L.range=function(D){return arguments.length?(w=ra(D),L):w},L.bins=function(D){return arguments.length?(C=typeof D=="number"?function(G){return V0(G,D)}:ra(D),L):C},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function k1(h,g){return V0(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function V0(h,g){for(var w=-1,C=+h[0],L=(h[1]-C)/g,D=[];++w<=g;)D[w]=L*w+C;return D}function C1(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(fu),g=0,w=[1,1],C;function L(D,G){var q=h.call(this,D,G),Z=q[0],ie=w[0],oe=w[1],me=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(Z.x=Z.y=0,Wo(Z,function(Xe){Xe.r=+me(Xe.value)}),Wo(Z,W0),g){var ge=g*(C?1:Math.max(2*Z.r/ie,2*Z.r/oe))/2;Wo(Z,function(Xe){Xe.r+=ge}),Wo(Z,W0),Wo(Z,function(Xe){Xe.r-=ge})}return j0(Z,ie/2,oe/2,C?1:1/Math.max(2*Z.r/ie,2*Z.r/oe)),q}return L.size=function(D){return arguments.length?(w=D,L):w},L.radius=function(D){return arguments.length?(C=D==null||typeof D=="function"?D:+D,L):C},L.padding=function(D){return arguments.length?(g=+D,L):g},bs(L,h)};function fu(h,g){return h.value-g.value}function hh(h,g){var w=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=w,w._pack_prev=g}function pc(h,g){h._pack_next=g,g._pack_prev=h}function Y0(h,g){var w=g.x-h.x,C=g.y-h.y,L=h.r+g.r;return .999*L*L>w*w+C*C}function W0(h){if(!(g=h.children)||!(ge=g.length))return;var g,w=1/0,C=-1/0,L=1/0,D=-1/0,G,q,Z,ie,oe,me,ge;function Xe(De){w=Math.min(De.x-De.r,w),C=Math.max(De.x+De.r,C),L=Math.min(De.y-De.r,L),D=Math.max(De.y+De.r,D)}if(g.forEach(L1),G=g[0],G.x=-G.r,G.y=0,Xe(G),ge>1&&(q=g[1],q.x=q.r,q.y=0,Xe(q),ge>2))for(Z=g[2],qg(G,q,Z),Xe(Z),hh(G,Z),G._pack_prev=Z,hh(Z,q),q=G._pack_next,ie=3;ieFe.x&&(Fe=Rr),Rr.depth>Ve.depth&&(Ve=Rr)});var er=g(Me,Fe)/2-Me.x,rr=w[0]/(Fe.x+g(Fe,Me)/2+er),De=w[1]/(Ve.depth||1);su(Xe,function(Rr){Rr.x=(Rr.x+er)*rr,Rr.y=Rr.depth*De})}return ge}function D(oe){for(var me={A:null,children:[oe]},ge=[me],Xe;(Xe=ge.pop())!=null;)for(var Qe=Xe.children,Me,Fe=0,Ve=Qe.length;Fe0&&(q1(dh(Me,oe,ge),oe,Rr),Ve+=Rr,er+=Rr),rr+=Me.m,Ve+=Xe.m,De+=Fe.m,er+=Qe.m;Me&&!F1(Qe)&&(Qe.t=Me,Qe.m+=rr-er),Xe&&!R1(Fe)&&(Fe.t=Xe,Fe.m+=Ve-De,ge=oe)}return ge}function ie(oe){oe.x*=w[0],oe.y=oe.depth*w[1]}return L.separation=function(oe){return arguments.length?(g=oe,L):g},L.size=function(oe){return arguments.length?(C=(w=oe)==null?ie:null,L):C?null:w},L.nodeSize=function(oe){return arguments.length?(C=(w=oe)==null?null:ie,L):C?w:null},bs(L,h)};function X0(h,g){return h.parent==g.parent?1:2}function R1(h){var g=h.children;return g.length?g[0]:h.t}function F1(h){var g=h.children,w;return(w=g.length)?g[w-1]:h.t}function q1(h,g,w){var C=w/(g.i-h.i);g.c-=C,g.s+=w,h.c+=C,g.z+=w,g.m+=w}function uu(h){for(var g=0,w=0,C=h.children,L=C.length,D;--L>=0;)D=C[L],D.z+=g,D.m+=g,g+=D.s+(w+=D.c)}function dh(h,g,w){return h.a.parent===g.parent?h.a:w}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=X0,w=[1,1],C=!1;function L(D,G){var q=h.call(this,D,G),Z=q[0],ie,oe=0;Wo(Z,function(Me){var Fe=Me.children;Fe&&Fe.length?(Me.x=ph(Fe),Me.y=Gn(Fe)):(Me.x=ie?oe+=g(Me,ie):0,Me.y=0,ie=Me)});var me=Z0(Z),ge=$0(Z),Xe=me.x-g(me,ge)/2,Qe=ge.x+g(ge,me)/2;return Wo(Z,C?function(Me){Me.x=(Me.x-Z.x)*w[0],Me.y=(Z.y-Me.y)*w[1]}:function(Me){Me.x=(Me.x-Xe)/(Qe-Xe)*w[0],Me.y=(1-(Z.y?Me.y/Z.y:1))*w[1]}),q}return L.separation=function(D){return arguments.length?(g=D,L):g},L.size=function(D){return arguments.length?(C=(w=D)==null,L):C?null:w},L.nodeSize=function(D){return arguments.length?(C=(w=D)!=null,L):C?w:null},bs(L,h)};function Gn(h){return 1+e.max(h,function(g){return g.y})}function ph(h){return h.reduce(function(g,w){return g+w.x},0)/h.length}function Z0(h){var g=h.children;return g&&g.length?Z0(g[0]):h}function $0(h){var g=h.children,w;return g&&(w=g.length)?$0(g[w-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,w=[1,1],C=null,L=yh,D=!1,G,q="squarify",Z=.5*(1+Math.sqrt(5));function ie(Me,Fe){for(var Ve=-1,er=Me.length,rr,De;++Ve0;)er.push(De=rr[mt-1]),er.area+=De.area,q!=="squarify"||(Br=ge(er,it))<=Rr?(rr.pop(),Rr=Br):(er.area-=er.pop().area,Xe(er,it,Ve,!1),it=Math.min(Ve.dx,Ve.dy),er.length=er.area=0,Rr=1/0);er.length&&(Xe(er,it,Ve,!0),er.length=er.area=0),Fe.forEach(oe)}}function me(Me){var Fe=Me.children;if(Fe&&Fe.length){var Ve=L(Me),er=Fe.slice(),rr,De=[];for(ie(er,Ve.dx*Ve.dy/Me.value),De.area=0;rr=er.pop();)De.push(rr),De.area+=rr.area,rr.z!=null&&(Xe(De,rr.z?Ve.dx:Ve.dy,Ve,!er.length),De.length=De.area=0);Fe.forEach(me)}}function ge(Me,Fe){for(var Ve=Me.area,er,rr=0,De=1/0,Rr=-1,Br=Me.length;++Rrrr&&(rr=er));return Ve*=Ve,Fe*=Fe,Ve?Math.max(Fe*rr*Z/Ve,Ve/(Fe*De*Z)):1/0}function Xe(Me,Fe,Ve,er){var rr=-1,De=Me.length,Rr=Ve.x,Br=Ve.y,it=Fe?g(Me.area/Fe):0,mt;if(Fe==Ve.dx){for((er||it>Ve.dy)&&(it=Ve.dy);++rrVe.dx)&&(it=Ve.dx);++rr1);return h+g*C*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,w=0;w2?Do:P1,ie=C?nh:ah;return L=Z(h,g,ie,w),D=Z(g,h,ie,cl),q}function q(Z){return L(Z)}return q.invert=function(Z){return D(Z)},q.domain=function(Z){return arguments.length?(h=Z.map(Number),G()):h},q.range=function(Z){return arguments.length?(g=Z,G()):g},q.rangeRound=function(Z){return q.range(Z).interpolate(vc)},q.clamp=function(Z){return arguments.length?(C=Z,G()):C},q.interpolate=function(Z){return arguments.length?(w=Z,G()):w},q.ticks=function(Z){return As(h,Z)},q.tickFormat=function(Z,ie){return d3_scale_linearTickFormat(h,Z,ie)},q.nice=function(Z){return gc(h,Z),G()},q.copy=function(){return Q0(h,g,w,C)},G()}function vo(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function gc(h,g){return vl(h,Ta(Qi(h,g)[2])),vl(h,Ta(Qi(h,g)[2])),h}function Qi(h,g){g==null&&(g=10);var w=yc(h),C=w[1]-w[0],L=Math.pow(10,Math.floor(Math.log(C/g)/Math.LN10)),D=g/C*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),w[0]=Math.ceil(w[0]/L)*L,w[1]=Math.floor(w[1]/L)*L+L*.5,w[2]=L,w}function As(h,g){return e.range.apply(e,Qi(h,g))}var cu={s:1,g:1,p:1,r:1,e:1};function hf(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function bc(h,g){var w=hf(g[2]);return h in cu?Math.abs(w-hf(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):w-(h==="%")*2}e.scale.log=function(){return df(e.scale.linear().domain([0,1]),10,!0,[1,10])};function df(h,g,w,C){function L(q){return(w?Math.log(q<0?0:q):-Math.log(q>0?0:-q))/Math.log(g)}function D(q){return w?Math.pow(g,q):-Math.pow(g,-q)}function G(q){return h(L(q))}return G.invert=function(q){return D(h.invert(q))},G.domain=function(q){return arguments.length?(w=q[0]>=0,h.domain((C=q.map(Number)).map(L)),G):C},G.base=function(q){return arguments.length?(g=+q,h.domain(C.map(L)),G):g},G.nice=function(){var q=vl(C.map(L),w?Math:Ts);return h.domain(q),C=q.map(D),G},G.ticks=function(){var q=yc(C),Z=[],ie=q[0],oe=q[1],me=Math.floor(L(ie)),ge=Math.ceil(L(oe)),Xe=g%1?2:g;if(isFinite(ge-me)){if(w){for(;me0;Qe--)Z.push(D(me)*Qe);for(me=0;Z[me]oe;ge--);Z=Z.slice(me,ge)}return Z},G.copy=function(){return df(h.copy(),g,w,C)},vo(G,h)}var Ts={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return xc(e.scale.linear(),1,[0,1])};function xc(h,g,w){var C=pf(g),L=pf(1/g);function D(G){return h(C(G))}return D.invert=function(G){return L(h.invert(G))},D.domain=function(G){return arguments.length?(h.domain((w=G.map(Number)).map(C)),D):w},D.ticks=function(G){return As(w,G)},D.tickFormat=function(G,q){return d3_scale_linearTickFormat(w,G,q)},D.nice=function(G){return D.domain(gc(w,G))},D.exponent=function(G){return arguments.length?(C=pf(g=G),L=pf(1/g),h.domain(w.map(C)),D):g},D.copy=function(){return xc(h.copy(),g,w)},vo(D,h)}function pf(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return _c([],{t:"range",a:[[]]})};function _c(h,g){var w,C,L;function D(q){return C[((w.get(q)||(g.t==="range"?w.set(q,h.push(q)):NaN))-1)%C.length]}function G(q,Z){return e.range(h.length).map(function(ie){return q+Z*ie})}return D.domain=function(q){if(!arguments.length)return h;h=[],w=new x;for(var Z=-1,ie=q.length,oe;++Z0?w[D-1]:h[0],Dge?0:1;if(oe=Mt)return Z(oe,Qe)+(ie?Z(ie,1-Qe):"")+"Z";var Me,Fe,Ve,er,rr=0,De=0,Rr,Br,it,mt,Ct,Lt,Vt,Ft,It=[];if((er=(+G.apply(this,arguments)||0)/2)&&(Ve=C===yf?Math.sqrt(ie*ie+oe*oe):+C.apply(this,arguments),Qe||(De*=-1),oe&&(De=Wa(Ve/oe*Math.sin(er))),ie&&(rr=Wa(Ve/ie*Math.sin(er)))),oe){Rr=oe*Math.cos(me+De),Br=oe*Math.sin(me+De),it=oe*Math.cos(ge-De),mt=oe*Math.sin(ge-De);var ga=Math.abs(ge-me-2*De)<=_r?0:1;if(De&&gf(Rr,Br,it,mt)===Qe^ga){var gn=(me+ge)/2;Rr=oe*Math.cos(gn),Br=oe*Math.sin(gn),it=mt=null}}else Rr=Br=0;if(ie){Ct=ie*Math.cos(ge-rr),Lt=ie*Math.sin(ge-rr),Vt=ie*Math.cos(me+rr),Ft=ie*Math.sin(me+rr);var La=Math.abs(me-ge+2*rr)<=_r?0:1;if(rr&&gf(Ct,Lt,Vt,Ft)===1-Qe^La){var dt=(me+ge)/2;Ct=ie*Math.cos(dt),Lt=ie*Math.sin(dt),Vt=Ft=null}}else Ct=Lt=0;if(Xe>Ie&&(Me=Math.min(Math.abs(oe-ie)/2,+w.apply(this,arguments)))>.001){Fe=ie0?0:1}function bf(h,g,w,C,L){var D=h[0]-g[0],G=h[1]-g[1],q=(L?C:-C)/Math.sqrt(D*D+G*G),Z=q*G,ie=-q*D,oe=h[0]+Z,me=h[1]+ie,ge=g[0]+Z,Xe=g[1]+ie,Qe=(oe+ge)/2,Me=(me+Xe)/2,Fe=ge-oe,Ve=Xe-me,er=Fe*Fe+Ve*Ve,rr=w-C,De=oe*Xe-ge*me,Rr=(Ve<0?-1:1)*Math.sqrt(Math.max(0,rr*rr*er-De*De)),Br=(De*Ve-Fe*Rr)/er,it=(-De*Fe-Ve*Rr)/er,mt=(De*Ve+Fe*Rr)/er,Ct=(-De*Fe+Ve*Rr)/er,Lt=Br-Qe,Vt=it-Me,Ft=mt-Qe,It=Ct-Me;return Lt*Lt+Vt*Vt>Ft*Ft+It*It&&(Br=mt,it=Ct),[[Br-Z,it-ie],[Br*w/rr,it*w/rr]]}function xf(){return!0}function Ec(h){var g=Vo,w=hs,C=xf,L=Ri,D=L.key,G=.7;function q(Z){var ie=[],oe=[],me=-1,ge=Z.length,Xe,Qe=ra(g),Me=ra(w);function Fe(){ie.push("M",L(h(oe),G))}for(;++me1?h.join("L"):h+"Z"}function _f(h){return h.join("L")+"Z"}function hl(h){for(var g=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++g1&&L.push("H",C[0]),L.join("")}function gu(h){for(var g=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++g1){q=g[1],D=h[Z],Z++,C+="C"+(L[0]+G[0])+","+(L[1]+G[1])+","+(D[0]-q[0])+","+(D[1]-q[1])+","+D[0]+","+D[1];for(var ie=2;ie9&&(D=w*3/Math.sqrt(D),G[q]=D*C,G[q+1]=D*L));for(q=-1;++q<=Z;)D=(h[Math.min(Z,q+1)][0]-h[Math.max(0,q-1)][0])/(6*(1+G[q]*G[q])),g.push([D||0,G[q]*D||0]);return g}function xh(h){return h.length<3?Ri(h):h[0]+jo(h,I1(h))}e.svg.line.radial=function(){var h=Ec(kc);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function kc(h){for(var g,w=-1,C=h.length,L,D;++w_r)+",1 "+me}function ie(oe,me,ge,Xe){return"Q 0,0 "+Xe}return D.radius=function(oe){return arguments.length?(w=ra(oe),D):w},D.source=function(oe){return arguments.length?(h=ra(oe),D):h},D.target=function(oe){return arguments.length?(g=ra(oe),D):g},D.startAngle=function(oe){return arguments.length?(C=ra(oe),D):C},D.endAngle=function(oe){return arguments.length?(L=ra(oe),D):L},D};function xu(h){return h.radius}e.svg.diagonal=function(){var h=K0,g=yo,w=ed;function C(L,D){var G=h.call(this,L,D),q=g.call(this,L,D),Z=(G.y+q.y)/2,ie=[G,{x:G.x,y:Z},{x:q.x,y:Z},q];return ie=ie.map(w),"M"+ie[0]+"C"+ie[1]+" "+ie[2]+" "+ie[3]}return C.source=function(L){return arguments.length?(h=ra(L),C):h},C.target=function(L){return arguments.length?(g=ra(L),C):g},C.projection=function(L){return arguments.length?(w=L,C):w},C};function ed(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=ed,w=h.projection;return h.projection=function(C){return arguments.length?w(O1(g=C)):g},h};function O1(h){return function(){var g=h.apply(this,arguments),w=g[0],C=g[1]-wt;return[w*Math.cos(C),w*Math.sin(C)]}}e.svg.symbol=function(){var h=z1,g=B1;function w(C,L){return(td.get(h.call(this,C,L))||rd)(g.call(this,C,L))}return w.type=function(C){return arguments.length?(h=ra(C),w):h},w.size=function(C){return arguments.length?(g=ra(C),w):g},w};function B1(){return 64}function z1(){return"circle"}function rd(h){var g=Math.sqrt(h/_r);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var td=e.map({circle:rd,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*ad)),w=g*ad;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/Lc),w=g*Lc/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/Lc),w=g*Lc/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=td.keys();var Lc=Math.sqrt(3),ad=Math.tan(30*Nt);Ye.transition=function(h){for(var g=ml||++Af,w=wu(h),C=[],L,D,G=Bl||{time:Date.now(),ease:Ji,delay:0,duration:250},q=-1,Z=this.length;++q0;)me[--er].call(h,Ve);if(Fe>=1)return G.event&&G.event.end.call(h,h.__data__,g),--D.count?delete D[C]:delete h[w],1}G||(q=L.time,Z=Ho(ge,0,q),G=D[C]={tween:new x,time:q,timer:Z,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),g=Tf,w=6,C=6,L=3,D=[10],G=null,q;function Z(ie){ie.each(function(){var oe=e.select(this),me=this.__chart__||h,ge=this.__chart__=h.copy(),Xe=G==null?ge.ticks?ge.ticks.apply(ge,D):ge.domain():G,Qe=q==null?ge.tickFormat?ge.tickFormat.apply(ge,D):ee:q,Me=oe.selectAll(".tick").data(Xe,ge),Fe=Me.enter().insert("g",".domain").attr("class","tick").style("opacity",Ie),Ve=e.transition(Me.exit()).style("opacity",Ie).remove(),er=e.transition(Me.order()).style("opacity",1),rr=Math.max(w,0)+L,De,Rr=mc(ge),Br=oe.selectAll(".domain").data([0]),it=(Br.enter().append("path").attr("class","domain"),e.transition(Br));Fe.append("line"),Fe.append("text");var mt=Fe.select("line"),Ct=er.select("line"),Lt=Me.select("text").text(Qe),Vt=Fe.select("text"),Ft=er.select("text"),It=g==="top"||g==="left"?-1:1,ga,gn,La,dt;if(g==="bottom"||g==="top"?(De=Tu,ga="x",La="y",gn="x2",dt="y2",Lt.attr("dy",It<0?"0em":".71em").style("text-anchor","middle"),it.attr("d","M"+Rr[0]+","+It*C+"V0H"+Rr[1]+"V"+It*C)):(De=Mu,ga="y",La="x",gn="y2",dt="x2",Lt.attr("dy",".32em").style("text-anchor",It<0?"end":"start"),it.attr("d","M"+It*C+","+Rr[0]+"H0V"+Rr[1]+"H"+It*C)),mt.attr(dt,It*w),Vt.attr(La,It*rr),Ct.attr(gn,0).attr(dt,It*w),Ft.attr(ga,0).attr(La,It*rr),ge.rangeBand){var Yt=ge,jt=Yt.rangeBand()/2;me=ge=function(ua){return Yt(ua)+jt}}else me.rangeBand?me=ge:Ve.call(De,ge,me);Fe.call(De,me,ge),er.call(De,ge,ge)})}return Z.scale=function(ie){return arguments.length?(h=ie,Z):h},Z.orient=function(ie){return arguments.length?(g=ie in Au?ie+"":Tf,Z):g},Z.ticks=function(){return arguments.length?(D=t(arguments),Z):D},Z.tickValues=function(ie){return arguments.length?(G=ie,Z):G},Z.tickFormat=function(ie){return arguments.length?(q=ie,Z):q},Z.tickSize=function(ie){var oe=arguments.length;return oe?(w=+ie,C=+arguments[oe-1],Z):w},Z.innerTickSize=function(ie){return arguments.length?(w=+ie,Z):w},Z.outerTickSize=function(ie){return arguments.length?(C=+ie,Z):C},Z.tickPadding=function(ie){return arguments.length?(L=+ie,Z):L},Z.tickSubdivide=function(){return arguments.length&&Z},Z};var Tf="bottom",Au={top:1,right:1,bottom:1,left:1};function Tu(h,g,w){h.attr("transform",function(C){var L=g(C);return"translate("+(isFinite(L)?L:w(C))+",0)"})}function Mu(h,g,w){h.attr("transform",function(C){var L=g(C);return"translate(0,"+(isFinite(L)?L:w(C))+")"})}e.svg.brush=function(){var h=Le(oe,"brushstart","brush","brushend"),g=null,w=null,C=[0,0],L=[0,0],D,G,q=!0,Z=!0,ie=Es[0];function oe(Me){Me.each(function(){var Fe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Qe).on("touchstart.brush",Qe),Ve=Fe.selectAll(".background").data([0]);Ve.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Fe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=Fe.selectAll(".resize").data(ie,ee);er.exit().remove(),er.enter().append("g").attr("class",function(Br){return"resize "+Br}).style("cursor",function(Br){return Su[Br]}).append("rect").attr("x",function(Br){return/[ew]$/.test(Br)?-3:null}).attr("y",function(Br){return/^[ns]/.test(Br)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",oe.empty()?"none":null);var rr=e.transition(Fe),De=e.transition(Ve),Rr;g&&(Rr=mc(g),De.attr("x",Rr[0]).attr("width",Rr[1]-Rr[0]),ge(rr)),w&&(Rr=mc(w),De.attr("y",Rr[0]).attr("height",Rr[1]-Rr[0]),Xe(rr)),me(rr)})}oe.event=function(Me){Me.each(function(){var Fe=h.of(this,arguments),Ve={x:C,y:L,i:D,j:G},er=this.__chart__||Ve;this.__chart__=Ve,ml?e.select(this).transition().each("start.brush",function(){D=er.i,G=er.j,C=er.x,L=er.y,Fe({type:"brushstart"})}).tween("brush:brush",function(){var rr=cf(C,Ve.x),De=cf(L,Ve.y);return D=G=null,function(Rr){C=Ve.x=rr(Rr),L=Ve.y=De(Rr),Fe({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=Ve.i,G=Ve.j,Fe({type:"brush",mode:"resize"}),Fe({type:"brushend"})}):(Fe({type:"brushstart"}),Fe({type:"brush",mode:"resize"}),Fe({type:"brushend"}))})};function me(Me){Me.selectAll(".resize").attr("transform",function(Fe){return"translate("+C[+/e$/.test(Fe)]+","+L[+/^s/.test(Fe)]+")"})}function ge(Me){Me.select(".extent").attr("x",C[0]),Me.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function Xe(Me){Me.select(".extent").attr("y",L[0]),Me.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Qe(){var Me=this,Fe=e.select(e.event.target),Ve=h.of(Me,arguments),er=e.select(Me),rr=Fe.datum(),De=!/^(n|s)$/.test(rr)&&g,Rr=!/^(e|w)$/.test(rr)&&w,Br=Fe.classed("extent"),it=jr(Me),mt,Ct=e.mouse(Me),Lt,Vt=e.select(i(Me)).on("keydown.brush",ga).on("keyup.brush",gn);if(e.event.changedTouches?Vt.on("touchmove.brush",La).on("touchend.brush",Yt):Vt.on("mousemove.brush",La).on("mouseup.brush",Yt),er.interrupt().selectAll("*").interrupt(),Br)Ct[0]=C[0]-Ct[0],Ct[1]=L[0]-Ct[1];else if(rr){var Ft=+/w$/.test(rr),It=+/^n/.test(rr);Lt=[C[1-Ft]-Ct[0],L[1-It]-Ct[1]],Ct[0]=C[Ft],Ct[1]=L[It]}else e.event.altKey&&(mt=Ct.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Fe.style("cursor")),Ve({type:"brushstart"}),La();function ga(){e.event.keyCode==32&&(Br||(mt=null,Ct[0]-=C[1],Ct[1]-=L[1],Br=2),Ee())}function gn(){e.event.keyCode==32&&Br==2&&(Ct[0]+=C[1],Ct[1]+=L[1],Br=0,Ee())}function La(){var jt=e.mouse(Me),ua=!1;Lt&&(jt[0]+=Lt[0],jt[1]+=Lt[1]),Br||(e.event.altKey?(mt||(mt=[(C[0]+C[1])/2,(L[0]+L[1])/2]),Ct[0]=C[+(jt[0]{(function(e,r){typeof Bg=="object"&&typeof FM!="undefined"?r(Bg):(e=e||self,r(e.d3=e.d3||{}))})(Bg,function(e){"use strict";var r=new Date,t=new Date;function a(Pe,or,st,kt){function Tr(tr){return Pe(tr=arguments.length===0?new Date:new Date(+tr)),tr}return Tr.floor=function(tr){return Pe(tr=new Date(+tr)),tr},Tr.ceil=function(tr){return Pe(tr=new Date(tr-1)),or(tr,1),Pe(tr),tr},Tr.round=function(tr){var sr=Tr(tr),Gr=Tr.ceil(tr);return tr-sr0))return nt;do nt.push(Yr=new Date(+tr)),or(tr,Gr),Pe(tr);while(Yr=sr)for(;Pe(sr),!tr(sr);)sr.setTime(sr-1)},function(sr,Gr){if(sr>=sr)if(Gr<0)for(;++Gr<=0;)for(;or(sr,-1),!tr(sr););else for(;--Gr>=0;)for(;or(sr,1),!tr(sr););})},st&&(Tr.count=function(tr,sr){return r.setTime(+tr),t.setTime(+sr),Pe(r),Pe(t),Math.floor(st(r,t))},Tr.every=function(tr){return tr=Math.floor(tr),!isFinite(tr)||!(tr>0)?null:tr>1?Tr.filter(kt?function(sr){return kt(sr)%tr===0}:function(sr){return Tr.count(0,sr)%tr===0}):Tr}),Tr}var n=a(function(){},function(Pe,or){Pe.setTime(+Pe+or)},function(Pe,or){return or-Pe});n.every=function(Pe){return Pe=Math.floor(Pe),!isFinite(Pe)||!(Pe>0)?null:Pe>1?a(function(or){or.setTime(Math.floor(or/Pe)*Pe)},function(or,st){or.setTime(+or+st*Pe)},function(or,st){return(st-or)/Pe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,f=864e5,u=6048e5,c=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds())},function(Pe,or){Pe.setTime(+Pe+or*o)},function(Pe,or){return(or-Pe)/o},function(Pe){return Pe.getUTCSeconds()}),v=c.range,d=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o)},function(Pe,or){Pe.setTime(+Pe+or*l)},function(Pe,or){return(or-Pe)/l},function(Pe){return Pe.getMinutes()}),p=d.range,m=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o-Pe.getMinutes()*l)},function(Pe,or){Pe.setTime(+Pe+or*s)},function(Pe,or){return(or-Pe)/s},function(Pe){return Pe.getHours()}),y=m.range,b=a(function(Pe){Pe.setHours(0,0,0,0)},function(Pe,or){Pe.setDate(Pe.getDate()+or)},function(Pe,or){return(or-Pe-(or.getTimezoneOffset()-Pe.getTimezoneOffset())*l)/f},function(Pe){return Pe.getDate()-1}),T=b.range;function _(Pe){return a(function(or){or.setDate(or.getDate()-(or.getDay()+7-Pe)%7),or.setHours(0,0,0,0)},function(or,st){or.setDate(or.getDate()+st*7)},function(or,st){return(st-or-(st.getTimezoneOffset()-or.getTimezoneOffset())*l)/u})}var x=_(0),A=_(1),E=_(2),M=_(3),k=_(4),R=_(5),P=_(6),O=x.range,F=A.range,H=E.range,W=M.range,ee=k.range,te=R.range,Q=P.range,$=a(function(Pe){Pe.setDate(1),Pe.setHours(0,0,0,0)},function(Pe,or){Pe.setMonth(Pe.getMonth()+or)},function(Pe,or){return or.getMonth()-Pe.getMonth()+(or.getFullYear()-Pe.getFullYear())*12},function(Pe){return Pe.getMonth()}),j=$.range,se=a(function(Pe){Pe.setMonth(0,1),Pe.setHours(0,0,0,0)},function(Pe,or){Pe.setFullYear(Pe.getFullYear()+or)},function(Pe,or){return or.getFullYear()-Pe.getFullYear()},function(Pe){return Pe.getFullYear()});se.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(or){or.setFullYear(Math.floor(or.getFullYear()/Pe)*Pe),or.setMonth(0,1),or.setHours(0,0,0,0)},function(or,st){or.setFullYear(or.getFullYear()+st*Pe)})};var le=se.range,Ee=a(function(Pe){Pe.setUTCSeconds(0,0)},function(Pe,or){Pe.setTime(+Pe+or*l)},function(Pe,or){return(or-Pe)/l},function(Pe){return Pe.getUTCMinutes()}),Ge=Ee.range,Le=a(function(Pe){Pe.setUTCMinutes(0,0,0)},function(Pe,or){Pe.setTime(+Pe+or*s)},function(Pe,or){return(or-Pe)/s},function(Pe){return Pe.getUTCHours()}),Ue=Le.range,xe=a(function(Pe){Pe.setUTCHours(0,0,0,0)},function(Pe,or){Pe.setUTCDate(Pe.getUTCDate()+or)},function(Pe,or){return(or-Pe)/f},function(Pe){return Pe.getUTCDate()-1}),ur=xe.range;function Oe(Pe){return a(function(or){or.setUTCDate(or.getUTCDate()-(or.getUTCDay()+7-Pe)%7),or.setUTCHours(0,0,0,0)},function(or,st){or.setUTCDate(or.getUTCDate()+st*7)},function(or,st){return(st-or)/u})}var He=Oe(0),xr=Oe(1),Ye=Oe(2),re=Oe(3),de=Oe(4),ne=Oe(5),Re=Oe(6),Je=He.range,Ke=xr.range,Cr=Ye.range,Ar=re.range,gr=de.range,et=ne.range,Hr=Re.range,at=a(function(Pe){Pe.setUTCDate(1),Pe.setUTCHours(0,0,0,0)},function(Pe,or){Pe.setUTCMonth(Pe.getUTCMonth()+or)},function(Pe,or){return or.getUTCMonth()-Pe.getUTCMonth()+(or.getUTCFullYear()-Pe.getUTCFullYear())*12},function(Pe){return Pe.getUTCMonth()}),wr=at.range,Vr=a(function(Pe){Pe.setUTCMonth(0,1),Pe.setUTCHours(0,0,0,0)},function(Pe,or){Pe.setUTCFullYear(Pe.getUTCFullYear()+or)},function(Pe,or){return or.getUTCFullYear()-Pe.getUTCFullYear()},function(Pe){return Pe.getUTCFullYear()});Vr.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(or){or.setUTCFullYear(Math.floor(or.getUTCFullYear()/Pe)*Pe),or.setUTCMonth(0,1),or.setUTCHours(0,0,0,0)},function(or,st){or.setUTCFullYear(or.getUTCFullYear()+st*Pe)})};var rt=Vr.range;e.timeDay=b,e.timeDays=T,e.timeFriday=R,e.timeFridays=te,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=F,e.timeMonth=$,e.timeMonths=j,e.timeSaturday=P,e.timeSaturdays=Q,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=O,e.timeThursday=k,e.timeThursdays=ee,e.timeTuesday=E,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=W,e.timeWeek=x,e.timeWeeks=O,e.timeYear=se,e.timeYears=le,e.utcDay=xe,e.utcDays=ur,e.utcFriday=ne,e.utcFridays=et,e.utcHour=Le,e.utcHours=Ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=Ee,e.utcMinutes=Ge,e.utcMonday=xr,e.utcMondays=Ke,e.utcMonth=at,e.utcMonths=wr,e.utcSaturday=Re,e.utcSaturdays=Hr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=He,e.utcSundays=Je,e.utcThursday=de,e.utcThursdays=gr,e.utcTuesday=Ye,e.utcTuesdays=Cr,e.utcWednesday=re,e.utcWednesdays=Ar,e.utcWeek=He,e.utcWeeks=Je,e.utcYear=Vr,e.utcYears=rt,Object.defineProperty(e,"__esModule",{value:!0})})});var nd=N((zg,qM)=>{(function(e,r){typeof zg=="object"&&typeof qM!="undefined"?r(zg,E5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(zg,function(e,r){"use strict";function t(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Ie.setFullYear(Se.y),Ie}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function a(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Ie.setUTCFullYear(Se.y),Ie}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,Ie,pr){return{y:Se,m:Ie,d:pr,H:0,M:0,S:0,L:0}}function i(Se){var Ie=Se.dateTime,pr=Se.date,_r=Se.time,ht=Se.periods,Mt=Se.days,wt=Se.shortDays,Nt=Se.months,ta=Se.shortMonths,ma=v(ht),za=d(ht),rn=v(Mt),Wa=d(Mt),Ln=v(wt),_n=d(wt),Ei=v(Nt),un=d(Nt),zn=v(ta),ki=d(ta),Dn={a:An,A:vs,b:Ll,B:ac,c:null,d:$,e:$,f:Ge,H:j,I:se,j:le,L:Ee,m:Le,M:Ue,p:Go,q:Qf,Q:sr,s:Gr,S:xe,u:ur,U:Oe,V:He,w:xr,W:Ye,x:null,X:null,y:re,Y:de,Z:ne,"%":tr},yn={a:Kf,A:Zi,b:pi,B:zi,c:null,d:Re,e:Re,f:gr,H:Je,I:Ke,j:Cr,L:Ar,m:et,M:Hr,p:Dl,q:yi,Q:sr,s:Gr,S:at,u:wr,U:Vr,V:rt,w:Pe,W:or,x:null,X:null,y:st,Y:kt,Z:Tr,"%":tr},At={a:Ra,A:da,b:di,B:Xi,c:Nn,d:k,e:k,f:W,H:P,I:P,j:R,L:H,m:M,M:O,p:mn,q:E,Q:te,s:Q,S:F,u:m,U:y,V:b,w:p,W:T,x:Ya,X:wn,y:x,Y:_,Z:A,"%":ee};Dn.x=Ia(pr,Dn),Dn.X=Ia(_r,Dn),Dn.c=Ia(Ie,Dn),yn.x=Ia(pr,yn),yn.X=Ia(_r,yn),yn.c=Ia(Ie,yn);function Ia(Pt,Jt){return function(fa){var _t=[],Qn=-1,Ga=0,In=Pt.length,ra,To,ll;for(fa instanceof Date||(fa=new Date(+fa));++Qn53)return null;"w"in _t||(_t.w=1),"Z"in _t?(Ga=a(n(_t.y,0,1)),In=Ga.getUTCDay(),Ga=In>4||In===0?r.utcMonday.ceil(Ga):r.utcMonday(Ga),Ga=r.utcDay.offset(Ga,(_t.V-1)*7),_t.y=Ga.getUTCFullYear(),_t.m=Ga.getUTCMonth(),_t.d=Ga.getUTCDate()+(_t.w+6)%7):(Ga=t(n(_t.y,0,1)),In=Ga.getDay(),Ga=In>4||In===0?r.timeMonday.ceil(Ga):r.timeMonday(Ga),Ga=r.timeDay.offset(Ga,(_t.V-1)*7),_t.y=Ga.getFullYear(),_t.m=Ga.getMonth(),_t.d=Ga.getDate()+(_t.w+6)%7)}else("W"in _t||"U"in _t)&&("w"in _t||(_t.w="u"in _t?_t.u%7:"W"in _t?1:0),In="Z"in _t?a(n(_t.y,0,1)).getUTCDay():t(n(_t.y,0,1)).getDay(),_t.m=0,_t.d="W"in _t?(_t.w+6)%7+_t.W*7-(In+5)%7:_t.w+_t.U*7-(In+6)%7);return"Z"in _t?(_t.H+=_t.Z/100|0,_t.M+=_t.Z%100,a(_t)):t(_t)}}function Sa(Pt,Jt,fa,_t){for(var Qn=0,Ga=Jt.length,In=fa.length,ra,To;Qn=In)return-1;if(ra=Jt.charCodeAt(Qn++),ra===37){if(ra=Jt.charAt(Qn++),To=At[ra in o?Jt.charAt(Qn++):ra],!To||(_t=To(Pt,fa,_t))<0)return-1}else if(ra!=fa.charCodeAt(_t++))return-1}return _t}function mn(Pt,Jt,fa){var _t=ma.exec(Jt.slice(fa));return _t?(Pt.p=za[_t[0].toLowerCase()],fa+_t[0].length):-1}function Ra(Pt,Jt,fa){var _t=Ln.exec(Jt.slice(fa));return _t?(Pt.w=_n[_t[0].toLowerCase()],fa+_t[0].length):-1}function da(Pt,Jt,fa){var _t=rn.exec(Jt.slice(fa));return _t?(Pt.w=Wa[_t[0].toLowerCase()],fa+_t[0].length):-1}function di(Pt,Jt,fa){var _t=zn.exec(Jt.slice(fa));return _t?(Pt.m=ki[_t[0].toLowerCase()],fa+_t[0].length):-1}function Xi(Pt,Jt,fa){var _t=Ei.exec(Jt.slice(fa));return _t?(Pt.m=un[_t[0].toLowerCase()],fa+_t[0].length):-1}function Nn(Pt,Jt,fa){return Sa(Pt,Ie,Jt,fa)}function Ya(Pt,Jt,fa){return Sa(Pt,pr,Jt,fa)}function wn(Pt,Jt,fa){return Sa(Pt,_r,Jt,fa)}function An(Pt){return wt[Pt.getDay()]}function vs(Pt){return Mt[Pt.getDay()]}function Ll(Pt){return ta[Pt.getMonth()]}function ac(Pt){return Nt[Pt.getMonth()]}function Go(Pt){return ht[+(Pt.getHours()>=12)]}function Qf(Pt){return 1+~~(Pt.getMonth()/3)}function Kf(Pt){return wt[Pt.getUTCDay()]}function Zi(Pt){return Mt[Pt.getUTCDay()]}function pi(Pt){return ta[Pt.getUTCMonth()]}function zi(Pt){return Nt[Pt.getUTCMonth()]}function Dl(Pt){return ht[+(Pt.getUTCHours()>=12)]}function yi(Pt){return 1+~~(Pt.getUTCMonth()/3)}return{format:function(Pt){var Jt=Ia(Pt+="",Dn);return Jt.toString=function(){return Pt},Jt},parse:function(Pt){var Jt=ha(Pt+="",!1);return Jt.toString=function(){return Pt},Jt},utcFormat:function(Pt){var Jt=Ia(Pt+="",yn);return Jt.toString=function(){return Pt},Jt},utcParse:function(Pt){var Jt=ha(Pt+="",!0);return Jt.toString=function(){return Pt},Jt}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,f=/[\\^$*+?|[\]().{}]/g;function u(Se,Ie,pr){var _r=Se<0?"-":"",ht=(_r?-Se:Se)+"",Mt=ht.length;return _r+(Mt68?1900:2e3),pr+_r[0].length):-1}function A(Se,Ie,pr){var _r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ie.slice(pr,pr+6));return _r?(Se.Z=_r[1]?0:-(_r[2]+(_r[3]||"00")),pr+_r[0].length):-1}function E(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+1));return _r?(Se.q=_r[0]*3-3,pr+_r[0].length):-1}function M(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.m=_r[0]-1,pr+_r[0].length):-1}function k(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.d=+_r[0],pr+_r[0].length):-1}function R(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+3));return _r?(Se.m=0,Se.d=+_r[0],pr+_r[0].length):-1}function P(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.H=+_r[0],pr+_r[0].length):-1}function O(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.M=+_r[0],pr+_r[0].length):-1}function F(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+2));return _r?(Se.S=+_r[0],pr+_r[0].length):-1}function H(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+3));return _r?(Se.L=+_r[0],pr+_r[0].length):-1}function W(Se,Ie,pr){var _r=l.exec(Ie.slice(pr,pr+6));return _r?(Se.L=Math.floor(_r[0]/1e3),pr+_r[0].length):-1}function ee(Se,Ie,pr){var _r=s.exec(Ie.slice(pr,pr+1));return _r?pr+_r[0].length:-1}function te(Se,Ie,pr){var _r=l.exec(Ie.slice(pr));return _r?(Se.Q=+_r[0],pr+_r[0].length):-1}function Q(Se,Ie,pr){var _r=l.exec(Ie.slice(pr));return _r?(Se.s=+_r[0],pr+_r[0].length):-1}function $(Se,Ie){return u(Se.getDate(),Ie,2)}function j(Se,Ie){return u(Se.getHours(),Ie,2)}function se(Se,Ie){return u(Se.getHours()%12||12,Ie,2)}function le(Se,Ie){return u(1+r.timeDay.count(r.timeYear(Se),Se),Ie,3)}function Ee(Se,Ie){return u(Se.getMilliseconds(),Ie,3)}function Ge(Se,Ie){return Ee(Se,Ie)+"000"}function Le(Se,Ie){return u(Se.getMonth()+1,Ie,2)}function Ue(Se,Ie){return u(Se.getMinutes(),Ie,2)}function xe(Se,Ie){return u(Se.getSeconds(),Ie,2)}function ur(Se){var Ie=Se.getDay();return Ie===0?7:Ie}function Oe(Se,Ie){return u(r.timeSunday.count(r.timeYear(Se)-1,Se),Ie,2)}function He(Se,Ie){var pr=Se.getDay();return Se=pr>=4||pr===0?r.timeThursday(Se):r.timeThursday.ceil(Se),u(r.timeThursday.count(r.timeYear(Se),Se)+(r.timeYear(Se).getDay()===4),Ie,2)}function xr(Se){return Se.getDay()}function Ye(Se,Ie){return u(r.timeMonday.count(r.timeYear(Se)-1,Se),Ie,2)}function re(Se,Ie){return u(Se.getFullYear()%100,Ie,2)}function de(Se,Ie){return u(Se.getFullYear()%1e4,Ie,4)}function ne(Se){var Ie=Se.getTimezoneOffset();return(Ie>0?"-":(Ie*=-1,"+"))+u(Ie/60|0,"0",2)+u(Ie%60,"0",2)}function Re(Se,Ie){return u(Se.getUTCDate(),Ie,2)}function Je(Se,Ie){return u(Se.getUTCHours(),Ie,2)}function Ke(Se,Ie){return u(Se.getUTCHours()%12||12,Ie,2)}function Cr(Se,Ie){return u(1+r.utcDay.count(r.utcYear(Se),Se),Ie,3)}function Ar(Se,Ie){return u(Se.getUTCMilliseconds(),Ie,3)}function gr(Se,Ie){return Ar(Se,Ie)+"000"}function et(Se,Ie){return u(Se.getUTCMonth()+1,Ie,2)}function Hr(Se,Ie){return u(Se.getUTCMinutes(),Ie,2)}function at(Se,Ie){return u(Se.getUTCSeconds(),Ie,2)}function wr(Se){var Ie=Se.getUTCDay();return Ie===0?7:Ie}function Vr(Se,Ie){return u(r.utcSunday.count(r.utcYear(Se)-1,Se),Ie,2)}function rt(Se,Ie){var pr=Se.getUTCDay();return Se=pr>=4||pr===0?r.utcThursday(Se):r.utcThursday.ceil(Se),u(r.utcThursday.count(r.utcYear(Se),Se)+(r.utcYear(Se).getUTCDay()===4),Ie,2)}function Pe(Se){return Se.getUTCDay()}function or(Se,Ie){return u(r.utcMonday.count(r.utcYear(Se)-1,Se),Ie,2)}function st(Se,Ie){return u(Se.getUTCFullYear()%100,Ie,2)}function kt(Se,Ie){return u(Se.getUTCFullYear()%1e4,Ie,4)}function Tr(){return"+0000"}function tr(){return"%"}function sr(Se){return+Se}function Gr(Se){return Math.floor(+Se/1e3)}var nt;Yr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Yr(Se){return nt=i(Se),e.timeFormat=nt.format,e.timeParse=nt.parse,e.utcFormat=nt.utcFormat,e.utcParse=nt.utcParse,nt}var Wr="%Y-%m-%dT%H:%M:%S.%LZ";function xt(Se){return Se.toISOString()}var jr=Date.prototype.toISOString?xt:e.utcFormat(Wr);function ot(Se){var Ie=new Date(Se);return isNaN(Ie)?null:Ie}var dr=+new Date("2000-01-01T00:00:00.000Z")?ot:e.utcParse(Wr);e.isoFormat=jr,e.isoParse=dr,e.timeFormatDefaultLocale=Yr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var k5=N((Gg,PM)=>{(function(e,r){typeof Gg=="object"&&typeof PM!="undefined"?r(Gg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Gg,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,k){if((R=(M=k?M.toExponential(k-1):M.toExponential()).indexOf("e"))<0)return null;var R,P=M.slice(0,R);return[P.length>1?P[0]+P.slice(2):P,+M.slice(R+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,k){return function(R,P){for(var O=R.length,F=[],H=0,W=M[0],ee=0;O>0&&W>0&&(ee+W+1>P&&(W=Math.max(1,P-ee)),F.push(R.substring(O-=W,O+W)),!((ee+=W+1)>P));)W=M[H=(H+1)%M.length];return F.reverse().join(k)}}function i(M){return function(k){return k.replace(/[0-9]/g,function(R){return M[+R]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(k=o.exec(M)))throw new Error("invalid format: "+M);var k;return new s({fill:k[1],align:k[2],sign:k[3],symbol:k[4],zero:k[5],width:k[6],comma:k[7],precision:k[8]&&k[8].slice(1),trim:k[9],type:k[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function f(M){e:for(var k=M.length,R=1,P=-1,O;R0&&(P=0);break}return P>0?M.slice(0,P)+M.slice(O+1):M}var u;function c(M,k){var R=t(M,k);if(!R)return M+"";var P=R[0],O=R[1],F=O-(u=Math.max(-8,Math.min(8,Math.floor(O/3)))*3)+1,H=P.length;return F===H?P:F>H?P+new Array(F-H+1).join("0"):F>0?P.slice(0,F)+"."+P.slice(F):"0."+new Array(1-F).join("0")+t(M,Math.max(0,k+F-1))[0]}function v(M,k){var R=t(M,k);if(!R)return M+"";var P=R[0],O=R[1];return O<0?"0."+new Array(-O).join("0")+P:P.length>O+1?P.slice(0,O+1)+"."+P.slice(O+1):P+new Array(O-P.length+2).join("0")}var d={"%":function(M,k){return(M*100).toFixed(k)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,k){return M.toExponential(k)},f:function(M,k){return M.toFixed(k)},g:function(M,k){return M.toPrecision(k)},o:function(M){return Math.round(M).toString(8)},p:function(M,k){return v(M*100,k)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var k=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),R=M.currency===void 0?"":M.currency[0]+"",P=M.currency===void 0?"":M.currency[1]+"",O=M.decimal===void 0?".":M.decimal+"",F=M.numerals===void 0?p:i(m.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",W=M.minus===void 0?"-":M.minus+"",ee=M.nan===void 0?"NaN":M.nan+"";function te($){$=l($);var j=$.fill,se=$.align,le=$.sign,Ee=$.symbol,Ge=$.zero,Le=$.width,Ue=$.comma,xe=$.precision,ur=$.trim,Oe=$.type;Oe==="n"?(Ue=!0,Oe="g"):d[Oe]||(xe===void 0&&(xe=12),ur=!0,Oe="g"),(Ge||j==="0"&&se==="=")&&(Ge=!0,j="0",se="=");var He=Ee==="$"?R:Ee==="#"&&/[boxX]/.test(Oe)?"0"+Oe.toLowerCase():"",xr=Ee==="$"?P:/[%p]/.test(Oe)?H:"",Ye=d[Oe],re=/[defgprs%]/.test(Oe);xe=xe===void 0?6:/[gprs]/.test(Oe)?Math.max(1,Math.min(21,xe)):Math.max(0,Math.min(20,xe));function de(ne){var Re=He,Je=xr,Ke,Cr,Ar;if(Oe==="c")Je=Ye(ne)+Je,ne="";else{ne=+ne;var gr=ne<0||1/ne<0;if(ne=isNaN(ne)?ee:Ye(Math.abs(ne),xe),ur&&(ne=f(ne)),gr&&+ne==0&&le!=="+"&&(gr=!1),Re=(gr?le==="("?le:W:le==="-"||le==="("?"":le)+Re,Je=(Oe==="s"?y[8+u/3]:"")+Je+(gr&&le==="("?")":""),re){for(Ke=-1,Cr=ne.length;++KeAr||Ar>57){Je=(Ar===46?O+ne.slice(Ke+1):ne.slice(Ke))+Je,ne=ne.slice(0,Ke);break}}}Ue&&!Ge&&(ne=k(ne,1/0));var et=Re.length+ne.length+Je.length,Hr=et>1)+Re+ne+Je+Hr.slice(et);break;default:ne=Hr+Re+ne+Je;break}return F(ne)}return de.toString=function(){return $+""},de}function Q($,j){var se=te(($=l($),$.type="f",$)),le=Math.max(-8,Math.min(8,Math.floor(a(j)/3)))*3,Ee=Math.pow(10,-le),Ge=y[8+le/3];return function(Le){return se(Ee*Le)+Ge}}return{format:te,formatPrefix:Q}}var T;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return T=b(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function x(M){return Math.max(0,-a(Math.abs(M)))}function A(M,k){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(k)/3)))*3-a(Math.abs(M)))}function E(M,k){return M=Math.abs(M),k=Math.abs(k)-M,Math.max(0,a(k)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=A,e.precisionRound=E,Object.defineProperty(e,"__esModule",{value:!0})}))});var IM=N((HEe,NM)=>{"use strict";NM.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var _a=N((VEe,OM)=>{"use strict";var lie=IM();OM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&lie(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ri=N((YEe,BM)=>{"use strict";BM.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var C5=N((Ug,zM)=>{(function(e,r){typeof Ug=="object"&&typeof zM!="undefined"?r(Ug):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ug,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],u+=r[(l[s]&3)<<4|l[s+1]>>4],u+=r[(l[s+1]&15)<<2|l[s+2]>>6],u+=r[l[s+2]&63];return f%3===2?u=u.substring(0,u.length-1)+"=":f%3===1&&(u=u.substring(0,u.length-2)+"=="),u},i=function(o){var l=o.length*.75,s=o.length,f,u=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(f=0;f>4,y[u++]=(v&15)<<4|d>>2,y[u++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Fc=N((WEe,GM)=>{"use strict";GM.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Po=N(Cs=>{"use strict";var sie=C5().decode,fie=Fc(),L5=Array.isArray,uie=ArrayBuffer,cie=DataView;function UM(e){return uie.isView(e)&&!(e instanceof cie)}Cs.isTypedArray=UM;function Hg(e){return L5(e)||UM(e)}Cs.isArrayOrTypedArray=Hg;function vie(e){return!Hg(e[0])}Cs.isArray1D=vie;Cs.ensureArray=function(e,r){return L5(e)||(e=[]),e.length=r,e};var Pi={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Pi.uint8c=Pi.u1c;Pi.uint8=Pi.u1;Pi.int8=Pi.i1;Pi.uint16=Pi.u2;Pi.int16=Pi.i2;Pi.uint32=Pi.u4;Pi.int32=Pi.i4;Pi.float32=Pi.f4;Pi.float64=Pi.f8;function D5(e){return e.constructor===ArrayBuffer}Cs.isArrayBuffer=D5;Cs.decodeTypedArraySpec=function(e){var r=[],t=hie(e),a=t.dtype,n=Pi[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;D5(o)||(o=sie(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,f,u,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(f=+l[1],u=0;u{"use strict";var VM=_a(),F5=Po().isArrayOrTypedArray;XM.exports=function(r,t){if(VM(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var id=Vg(),gie=/^\w*$/,bie=0,ZM=1,Yg=2,$M=3,wh=4;JM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=id(r,t),o=l.get()):o=r,t=t||"";var f={};if(o)for(i=0;i2)return s[d]=s[d]|Yg,c.set(v,null);if(u){for(i=d;i{"use strict";var xie=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,_ie=/^[^\.\[\]]+$/;KM.exports=function(e,r){for(;r;){var t=e.match(xie);if(t)e=t[1];else if(e.match(_ie))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Wg=N((JEe,rS)=>{"use strict";var wie=_a();rS.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return wie(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var nS=N((QEe,aS)=>{"use strict";var tS=Po().isArrayOrTypedArray,H1=Fc();aS.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(tS(n)&&tS(i)&&H1(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function Aie(e,r){var t=e%r;return t<0?t+r:t}function Tie(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}iS.exports={mod:Aie,modHalf:Tie}});var Ls=N((eke,jg)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(re,de){if(re=re||"",de=de||{},re instanceof s)return re;if(!(this instanceof s))return new s(re,de);var ne=f(re);this._originalInput=re,this._r=ne.r,this._g=ne.g,this._b=ne.b,this._a=ne.a,this._roundA=n(100*this._a)/100,this._format=de.format||ne.format,this._gradientType=de.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=ne.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var re=this.toRgb();return(re.r*299+re.g*587+re.b*114)/1e3},getLuminance:function(){var re=this.toRgb(),de,ne,Re,Je,Ke,Cr;return de=re.r/255,ne=re.g/255,Re=re.b/255,de<=.03928?Je=de/12.92:Je=e.pow((de+.055)/1.055,2.4),ne<=.03928?Ke=ne/12.92:Ke=e.pow((ne+.055)/1.055,2.4),Re<=.03928?Cr=Re/12.92:Cr=e.pow((Re+.055)/1.055,2.4),.2126*Je+.7152*Ke+.0722*Cr},setAlpha:function(re){return this._a=$(re),this._roundA=n(100*this._a)/100,this},toHsv:function(){var re=d(this._r,this._g,this._b);return{h:re.h*360,s:re.s,v:re.v,a:this._a}},toHsvString:function(){var re=d(this._r,this._g,this._b),de=n(re.h*360),ne=n(re.s*100),Re=n(re.v*100);return this._a==1?"hsv("+de+", "+ne+"%, "+Re+"%)":"hsva("+de+", "+ne+"%, "+Re+"%, "+this._roundA+")"},toHsl:function(){var re=c(this._r,this._g,this._b);return{h:re.h*360,s:re.s,l:re.l,a:this._a}},toHslString:function(){var re=c(this._r,this._g,this._b),de=n(re.h*360),ne=n(re.s*100),Re=n(re.l*100);return this._a==1?"hsl("+de+", "+ne+"%, "+Re+"%)":"hsla("+de+", "+ne+"%, "+Re+"%, "+this._roundA+")"},toHex:function(re){return m(this._r,this._g,this._b,re)},toHexString:function(re){return"#"+this.toHex(re)},toHex8:function(re){return y(this._r,this._g,this._b,this._a,re)},toHex8String:function(re){return"#"+this.toHex8(re)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(j(this._r,255)*100)+"%",g:n(j(this._g,255)*100)+"%",b:n(j(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(j(this._r,255)*100)+"%, "+n(j(this._g,255)*100)+"%, "+n(j(this._b,255)*100)+"%)":"rgba("+n(j(this._r,255)*100)+"%, "+n(j(this._g,255)*100)+"%, "+n(j(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:te[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(re){var de="#"+b(this._r,this._g,this._b,this._a),ne=de,Re=this._gradientType?"GradientType = 1, ":"";if(re){var Je=s(re);ne="#"+b(Je._r,Je._g,Je._b,Je._a)}return"progid:DXImageTransform.Microsoft.gradient("+Re+"startColorstr="+de+",endColorstr="+ne+")"},toString:function(re){var de=!!re;re=re||this._format;var ne=!1,Re=this._a<1&&this._a>=0,Je=!de&&Re&&(re==="hex"||re==="hex6"||re==="hex3"||re==="hex4"||re==="hex8"||re==="name");return Je?re==="name"&&this._a===0?this.toName():this.toRgbString():(re==="rgb"&&(ne=this.toRgbString()),re==="prgb"&&(ne=this.toPercentageRgbString()),(re==="hex"||re==="hex6")&&(ne=this.toHexString()),re==="hex3"&&(ne=this.toHexString(!0)),re==="hex4"&&(ne=this.toHex8String(!0)),re==="hex8"&&(ne=this.toHex8String()),re==="name"&&(ne=this.toName()),re==="hsl"&&(ne=this.toHslString()),re==="hsv"&&(ne=this.toHsvString()),ne||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(re,de){var ne=re.apply(null,[this].concat([].slice.call(de)));return this._r=ne._r,this._g=ne._g,this._b=ne._b,this.setAlpha(ne._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(re,de){return re.apply(null,[this].concat([].slice.call(de)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(W,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},s.fromRatio=function(re,de){if(typeof re=="object"){var ne={};for(var Re in re)re.hasOwnProperty(Re)&&(Re==="a"?ne[Re]=re[Re]:ne[Re]=Ue(re[Re]));re=ne}return s(re,de)};function f(re){var de={r:0,g:0,b:0},ne=1,Re=null,Je=null,Ke=null,Cr=!1,Ar=!1;return typeof re=="string"&&(re=xr(re)),typeof re=="object"&&(He(re.r)&&He(re.g)&&He(re.b)?(de=u(re.r,re.g,re.b),Cr=!0,Ar=String(re.r).substr(-1)==="%"?"prgb":"rgb"):He(re.h)&&He(re.s)&&He(re.v)?(Re=Ue(re.s),Je=Ue(re.v),de=p(re.h,Re,Je),Cr=!0,Ar="hsv"):He(re.h)&&He(re.s)&&He(re.l)&&(Re=Ue(re.s),Ke=Ue(re.l),de=v(re.h,Re,Ke),Cr=!0,Ar="hsl"),re.hasOwnProperty("a")&&(ne=re.a)),ne=$(ne),{ok:Cr,format:re.format||Ar,r:i(255,o(de.r,0)),g:i(255,o(de.g,0)),b:i(255,o(de.b,0)),a:ne}}function u(re,de,ne){return{r:j(re,255)*255,g:j(de,255)*255,b:j(ne,255)*255}}function c(re,de,ne){re=j(re,255),de=j(de,255),ne=j(ne,255);var Re=o(re,de,ne),Je=i(re,de,ne),Ke,Cr,Ar=(Re+Je)/2;if(Re==Je)Ke=Cr=0;else{var gr=Re-Je;switch(Cr=Ar>.5?gr/(2-Re-Je):gr/(Re+Je),Re){case re:Ke=(de-ne)/gr+(de1&&(at-=1),at<1/6?et+(Hr-et)*6*at:at<1/2?Hr:at<2/3?et+(Hr-et)*(2/3-at)*6:et}if(de===0)Re=Je=Ke=ne;else{var Ar=ne<.5?ne*(1+de):ne+de-ne*de,gr=2*ne-Ar;Re=Cr(gr,Ar,re+1/3),Je=Cr(gr,Ar,re),Ke=Cr(gr,Ar,re-1/3)}return{r:Re*255,g:Je*255,b:Ke*255}}function d(re,de,ne){re=j(re,255),de=j(de,255),ne=j(ne,255);var Re=o(re,de,ne),Je=i(re,de,ne),Ke,Cr,Ar=Re,gr=Re-Je;if(Cr=Re===0?0:gr/Re,Re==Je)Ke=0;else{switch(Re){case re:Ke=(de-ne)/gr+(de>1)+720)%360;--de;)Re.h=(Re.h+Je)%360,Ke.push(s(Re));return Ke}function W(re,de){de=de||6;for(var ne=s(re).toHsv(),Re=ne.h,Je=ne.s,Ke=ne.v,Cr=[],Ar=1/de;de--;)Cr.push(s({h:Re,s:Je,v:Ke})),Ke=(Ke+Ar)%1;return Cr}s.mix=function(re,de,ne){ne=ne===0?0:ne||50;var Re=s(re).toRgb(),Je=s(de).toRgb(),Ke=ne/100,Cr={r:(Je.r-Re.r)*Ke+Re.r,g:(Je.g-Re.g)*Ke+Re.g,b:(Je.b-Re.b)*Ke+Re.b,a:(Je.a-Re.a)*Ke+Re.a};return s(Cr)},s.readability=function(re,de){var ne=s(re),Re=s(de);return(e.max(ne.getLuminance(),Re.getLuminance())+.05)/(e.min(ne.getLuminance(),Re.getLuminance())+.05)},s.isReadable=function(re,de,ne){var Re=s.readability(re,de),Je,Ke;switch(Ke=!1,Je=Ye(ne),Je.level+Je.size){case"AAsmall":case"AAAlarge":Ke=Re>=4.5;break;case"AAlarge":Ke=Re>=3;break;case"AAAsmall":Ke=Re>=7;break}return Ke},s.mostReadable=function(re,de,ne){var Re=null,Je=0,Ke,Cr,Ar,gr;ne=ne||{},Cr=ne.includeFallbackColors,Ar=ne.level,gr=ne.size;for(var et=0;etJe&&(Je=Ke,Re=s(de[et]));return s.isReadable(re,Re,{level:Ar,size:gr})||!Cr?Re:(ne.includeFallbackColors=!1,s.mostReadable(re,["#fff","#000"],ne))};var ee=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},te=s.hexNames=Q(ee);function Q(re){var de={};for(var ne in re)re.hasOwnProperty(ne)&&(de[re[ne]]=ne);return de}function $(re){return re=parseFloat(re),(isNaN(re)||re<0||re>1)&&(re=1),re}function j(re,de){Ee(re)&&(re="100%");var ne=Ge(re);return re=i(de,o(0,parseFloat(re))),ne&&(re=parseInt(re*de,10)/100),e.abs(re-de)<1e-6?1:re%de/parseFloat(de)}function se(re){return i(1,o(0,re))}function le(re){return parseInt(re,16)}function Ee(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1}function Ge(re){return typeof re=="string"&&re.indexOf("%")!=-1}function Le(re){return re.length==1?"0"+re:""+re}function Ue(re){return re<=1&&(re=re*100+"%"),re}function xe(re){return e.round(parseFloat(re)*255).toString(16)}function ur(re){return le(re)/255}var Oe=(function(){var re="[-\\+]?\\d+%?",de="[-\\+]?\\d*\\.\\d+%?",ne="(?:"+de+")|(?:"+re+")",Re="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?",Je="[\\s|\\(]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")[,|\\s]+("+ne+")\\s*\\)?";return{CSS_UNIT:new RegExp(ne),rgb:new RegExp("rgb"+Re),rgba:new RegExp("rgba"+Je),hsl:new RegExp("hsl"+Re),hsla:new RegExp("hsla"+Je),hsv:new RegExp("hsv"+Re),hsva:new RegExp("hsva"+Je),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function He(re){return!!Oe.CSS_UNIT.exec(re)}function xr(re){re=re.replace(r,"").replace(t,"").toLowerCase();var de=!1;if(ee[re])re=ee[re],de=!0;else if(re=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ne;return(ne=Oe.rgb.exec(re))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=Oe.rgba.exec(re))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=Oe.hsl.exec(re))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=Oe.hsla.exec(re))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=Oe.hsv.exec(re))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=Oe.hsva.exec(re))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=Oe.hex8.exec(re))?{r:le(ne[1]),g:le(ne[2]),b:le(ne[3]),a:ur(ne[4]),format:de?"name":"hex8"}:(ne=Oe.hex6.exec(re))?{r:le(ne[1]),g:le(ne[2]),b:le(ne[3]),format:de?"name":"hex"}:(ne=Oe.hex4.exec(re))?{r:le(ne[1]+""+ne[1]),g:le(ne[2]+""+ne[2]),b:le(ne[3]+""+ne[3]),a:ur(ne[4]+""+ne[4]),format:de?"name":"hex8"}:(ne=Oe.hex3.exec(re))?{r:le(ne[1]+""+ne[1]),g:le(ne[2]+""+ne[2]),b:le(ne[3]+""+ne[3]),format:de?"name":"hex"}:!1}function Ye(re){var de,ne;return re=re||{level:"AA",size:"small"},de=(re.level||"AA").toUpperCase(),ne=(re.size||"small").toLowerCase(),de!=="AA"&&de!=="AAA"&&(de="AA"),ne!=="small"&&ne!=="large"&&(ne="small"),{level:de,size:ne}}typeof jg!="undefined"&&jg.exports?jg.exports=s:window.tinycolor=s})(Math)});var Un=N(W1=>{"use strict";var oS=Fc(),V1=Array.isArray;function Mie(e,r){var t,a;for(t=0;t{"use strict";lS.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var j1=N((ake,sS)=>{"use strict";sS.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var ld=N((nke,cS)=>{"use strict";var fS=j1(),uS=Ui(),q5=uS({editType:"none"});q5.family.dflt=fS.HOVERFONT;q5.size.dflt=fS.HOVERFONTSIZE;cS.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:q5,grouptitlefont:uS({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Xg=N((ike,vS)=>{"use strict";var Sie=Ui(),X1=ld().hoverlabel,Z1=Un().extendFlat;vS.exports={hoverlabel:{bgcolor:Z1({},X1.bgcolor,{arrayOk:!0}),bordercolor:Z1({},X1.bordercolor,{arrayOk:!0}),font:Sie({arrayOk:!0,editType:"none"}),align:Z1({},X1.align,{arrayOk:!0}),namelength:Z1({},X1.namelength,{arrayOk:!0}),showarrow:Z1({},X1.showarrow),editType:"none"}}});var Ds=N((oke,hS)=>{"use strict";var Eie=Ui(),kie=Xg();hS.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Eie({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:kie.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Ah=N((lke,yS)=>{"use strict";var Cie=Ls(),Zg={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},dS=Zg.RdBu;function Lie(e,r){if(r||(r=dS),!e)return r;function t(){try{e=Zg[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),pS(e)?e:r}function pS(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Th.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Th.defaultLine="#444";Th.lightLine="#eee";Th.background="#fff";Th.borderLine="#BEC8D9";Th.lightFraction=1e3/11});var va=N((fke,mS)=>{"use strict";var Xo=Ls(),Rie=_a(),Fie=Po().isTypedArray,xi=mS.exports={},$g=Mf();xi.defaults=$g.defaults;var qie=xi.defaultLine=$g.defaultLine;xi.lightLine=$g.lightLine;var N5=xi.background=$g.background;xi.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};xi.rgb=function(e){return xi.tinyRGB(Xo(e))};xi.opacity=function(e){return e?Xo(e).getAlpha():0};xi.addOpacity=function(e,r){var t=Xo(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};xi.combine=function(e,r){var t=Xo(e).toRgb();if(t.a===1)return Xo(e).toRgbString();var a=Xo(r||N5).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Xo(i).toRgbString()};xi.interpolate=function(e,r,t){var a=Xo(e).toRgb(),n=Xo(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Xo(i).toRgbString()};xi.contrast=function(e,r,t){var a=Xo(e);a.getAlpha()!==1&&(a=Xo(xi.combine(e,N5)));var n=a.isDark()?r?a.lighten(r):N5:t?a.darken(t):qie;return n.toString()};xi.stroke=function(e,r){var t=Xo(r);e.style({stroke:xi.tinyRGB(t),"stroke-opacity":t.getAlpha()})};xi.fill=function(e,r){var t=Xo(r);e.style({fill:xi.tinyRGB(t),"fill-opacity":t.getAlpha()})};xi.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var sd=N((uke,gS)=>{"use strict";gS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var fd=N(bS=>{"use strict";bS.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var AS=N(Zo=>{"use strict";var I5=_a(),xS=Ls(),_S=Un().extendFlat,Pie=Ds(),Nie=Ah(),Iie=va(),Oie=sd().DESELECTDIM,ud=Vg(),wS=fd().counter,Bie=od().modHalf,Rs=Po().isArrayOrTypedArray,qc=Po().isTypedArraySpec,Pc=Po().decodeTypedArraySpec;Zo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Rs(e)?e:qc(e)?Pc(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){qc(e)&&(e=Pc(e)),!I5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}qc(e)&&(e=Pc(e)),e%1||!I5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){qc(e)&&(e=Pc(e)),xS(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return xS(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(Nie.get(e,t))}},angle:{coerceFunction:function(e,r,t){qc(e)&&(e=Pc(e)),e==="auto"?r.set("auto"):I5(e)?r.set(Bie(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||wS(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Rs(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!wS(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var TS={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},MS={};function SS(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),SS(a,r[t]))}}SS(TS,MS);ES.exports={configAttributes:TS,dfltConfig:MS}});var B5=N((dke,kS)=>{"use strict";var O5=ca(),zie=_a(),$1=[];kS.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||$1.indexOf(e)!==-1)return;$1.push(e);var a=1e3;zie(r)?a=r:r==="long"&&(a=3e3);var n=O5.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data($1);function o(s){s.duration(700).style("opacity",0).each("end",function(f){var u=$1.indexOf(f);u!==-1&&$1.splice(u,1),O5.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var f=O5.select(this);f.append("button").classed("notifier-close",!0).html("×").on("click",function(){f.transition().call(o)});for(var u=f.append("p"),c=s.split(//g),v=0;v{"use strict";var cd=Mh().dfltConfig,z5=B5(),G5=CS.exports={};G5.log=function(){var e;if(cd.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};G5.warn=function(){var e;if(cd.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};G5.error=function(){var e;if(cd.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Qg=N((yke,LS)=>{"use strict";LS.exports=function(){}});var U5=N((mke,DS)=>{"use strict";DS.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{RS.exports=Gie;function Gie(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var PS=N((bke,qS)=>{qS.exports=Uie;function Uie(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var IS=N((xke,NS)=>{NS.exports=Hie;function Hie(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var H5=N((_ke,OS)=>{OS.exports=Vie;function Vie(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var zS=N((wke,BS)=>{BS.exports=Yie;function Yie(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var US=N((Ake,GS)=>{GS.exports=Wie;function Wie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15],T=t*l-a*o,_=t*s-n*o,x=t*f-i*o,A=a*s-n*l,E=a*f-i*l,M=n*f-i*s,k=u*m-c*p,R=u*y-v*p,P=u*b-d*p,O=c*y-v*m,F=c*b-d*m,H=v*b-d*y,W=T*H-_*F+x*O+A*P-E*R+M*k;return W?(W=1/W,e[0]=(l*H-s*F+f*O)*W,e[1]=(n*F-a*H-i*O)*W,e[2]=(m*M-y*E+b*A)*W,e[3]=(v*E-c*M-d*A)*W,e[4]=(s*P-o*H-f*R)*W,e[5]=(t*H-n*P+i*R)*W,e[6]=(y*x-p*M-b*_)*W,e[7]=(u*M-v*x+d*_)*W,e[8]=(o*F-l*P+f*k)*W,e[9]=(a*P-t*F-i*k)*W,e[10]=(p*E-m*x+b*T)*W,e[11]=(c*x-u*E-d*T)*W,e[12]=(l*R-o*O-s*k)*W,e[13]=(t*O-a*R+n*k)*W,e[14]=(m*_-p*A-y*T)*W,e[15]=(u*A-c*_+v*T)*W,e):null}});var VS=N((Tke,HS)=>{HS.exports=jie;function jie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15];return e[0]=l*(v*b-d*y)-c*(s*b-f*y)+m*(s*d-f*v),e[1]=-(a*(v*b-d*y)-c*(n*b-i*y)+m*(n*d-i*v)),e[2]=a*(s*b-f*y)-l*(n*b-i*y)+m*(n*f-i*s),e[3]=-(a*(s*d-f*v)-l*(n*d-i*v)+c*(n*f-i*s)),e[4]=-(o*(v*b-d*y)-u*(s*b-f*y)+p*(s*d-f*v)),e[5]=t*(v*b-d*y)-u*(n*b-i*y)+p*(n*d-i*v),e[6]=-(t*(s*b-f*y)-o*(n*b-i*y)+p*(n*f-i*s)),e[7]=t*(s*d-f*v)-o*(n*d-i*v)+u*(n*f-i*s),e[8]=o*(c*b-d*m)-u*(l*b-f*m)+p*(l*d-f*c),e[9]=-(t*(c*b-d*m)-u*(a*b-i*m)+p*(a*d-i*c)),e[10]=t*(l*b-f*m)-o*(a*b-i*m)+p*(a*f-i*l),e[11]=-(t*(l*d-f*c)-o*(a*d-i*c)+u*(a*f-i*l)),e[12]=-(o*(c*y-v*m)-u*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-u*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+u*(a*s-n*l),e}});var WS=N((Mke,YS)=>{YS.exports=Xie;function Xie(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],f=e[8],u=e[9],c=e[10],v=e[11],d=e[12],p=e[13],m=e[14],y=e[15],b=r*o-t*i,T=r*l-a*i,_=r*s-n*i,x=t*l-a*o,A=t*s-n*o,E=a*s-n*l,M=f*p-u*d,k=f*m-c*d,R=f*y-v*d,P=u*m-c*p,O=u*y-v*p,F=c*y-v*m;return b*F-T*O+_*P+x*R-A*k+E*M}});var XS=N((Ske,jS)=>{jS.exports=Zie;function Zie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],f=r[6],u=r[7],c=r[8],v=r[9],d=r[10],p=r[11],m=r[12],y=r[13],b=r[14],T=r[15],_=t[0],x=t[1],A=t[2],E=t[3];return e[0]=_*a+x*l+A*c+E*m,e[1]=_*n+x*s+A*v+E*y,e[2]=_*i+x*f+A*d+E*b,e[3]=_*o+x*u+A*p+E*T,_=t[4],x=t[5],A=t[6],E=t[7],e[4]=_*a+x*l+A*c+E*m,e[5]=_*n+x*s+A*v+E*y,e[6]=_*i+x*f+A*d+E*b,e[7]=_*o+x*u+A*p+E*T,_=t[8],x=t[9],A=t[10],E=t[11],e[8]=_*a+x*l+A*c+E*m,e[9]=_*n+x*s+A*v+E*y,e[10]=_*i+x*f+A*d+E*b,e[11]=_*o+x*u+A*p+E*T,_=t[12],x=t[13],A=t[14],E=t[15],e[12]=_*a+x*l+A*c+E*m,e[13]=_*n+x*s+A*v+E*y,e[14]=_*i+x*f+A*d+E*b,e[15]=_*o+x*u+A*p+E*T,e}});var $S=N((Eke,ZS)=>{ZS.exports=$ie;function $ie(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,f,u,c,v,d,p,m,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],f=r[3],u=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=f,e[4]=u,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=b,e[12]=o*a+u*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=f*a+d*n+b*i+r[15]),e}});var QS=N((kke,JS)=>{JS.exports=Jie;function Jie(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var eE=N((Cke,KS)=>{KS.exports=Qie;function Qie(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,f,u,c,v,d,p,m,y,b,T,_,x,A,E,M,k,R,P,O,F,H,W,ee;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),f=Math.cos(t),u=1-f,c=r[0],v=r[1],d=r[2],p=r[3],m=r[4],y=r[5],b=r[6],T=r[7],_=r[8],x=r[9],A=r[10],E=r[11],M=n*n*u+f,k=i*n*u+o*s,R=o*n*u-i*s,P=n*i*u-o*s,O=i*i*u+f,F=o*i*u+n*s,H=n*o*u+i*s,W=i*o*u-n*s,ee=o*o*u+f,e[0]=c*M+m*k+_*R,e[1]=v*M+y*k+x*R,e[2]=d*M+b*k+A*R,e[3]=p*M+T*k+E*R,e[4]=c*P+m*O+_*F,e[5]=v*P+y*O+x*F,e[6]=d*P+b*O+A*F,e[7]=p*P+T*O+E*F,e[8]=c*H+m*W+_*ee,e[9]=v*H+y*W+x*ee,e[10]=d*H+b*W+A*ee,e[11]=p*H+T*W+E*ee,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var tE=N((Lke,rE)=>{rE.exports=Kie;function Kie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+f*a,e[5]=o*n+u*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=f*n-i*a,e[9]=u*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var nE=N((Dke,aE)=>{aE.exports=eoe;function eoe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-f*a,e[1]=o*n-u*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+f*n,e[9]=o*a+u*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var oE=N((Rke,iE)=>{iE.exports=roe;function roe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[4],u=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+f*a,e[1]=o*n+u*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=f*n-i*a,e[5]=u*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var sE=N((Fke,lE)=>{lE.exports=toe;function toe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],f=Math.sqrt(o*o+l*l+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,l*=f,s*=f,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var uE=N((qke,fE)=>{fE.exports=aoe;function aoe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,f=i+i,u=a*l,c=a*s,v=a*f,d=n*s,p=n*f,m=i*f,y=o*l,b=o*s,T=o*f;return e[0]=1-(d+m),e[1]=c+T,e[2]=v-b,e[3]=0,e[4]=c-T,e[5]=1-(u+m),e[6]=p+y,e[7]=0,e[8]=v+b,e[9]=p-y,e[10]=1-(u+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var vE=N((Pke,cE)=>{cE.exports=noe;function noe(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dE=N((Nke,hE)=>{hE.exports=ioe;function ioe(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var yE=N((Ike,pE)=>{pE.exports=ooe;function ooe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var gE=N((Oke,mE)=>{mE.exports=loe;function loe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var xE=N((Bke,bE)=>{bE.exports=soe;function soe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wE=N((zke,_E)=>{_E.exports=foe;function foe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,f=t*o,u=a*o,c=a*l,v=n*o,d=n*l,p=n*s,m=i*o,y=i*l,b=i*s;return e[0]=1-c-p,e[1]=u+b,e[2]=v-y,e[3]=0,e[4]=u-b,e[5]=1-f-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-f-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var TE=N((Gke,AE)=>{AE.exports=uoe;function uoe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),f=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*f,e[15]=0,e}});var SE=N((Uke,ME)=>{ME.exports=coe;function coe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var kE=N((Hke,EE)=>{EE.exports=voe;function voe(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),f=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*f*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var LE=N((Vke,CE)=>{CE.exports=hoe;function hoe(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),f=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*f,e[15]=1,e}});var RE=N((Yke,DE)=>{var doe=H5();DE.exports=poe;function poe(e,r,t,a){var n,i,o,l,s,f,u,c,v,d,p=r[0],m=r[1],y=r[2],b=a[0],T=a[1],_=a[2],x=t[0],A=t[1],E=t[2];return Math.abs(p-x)<1e-6&&Math.abs(m-A)<1e-6&&Math.abs(y-E)<1e-6?doe(e):(u=p-x,c=m-A,v=y-E,d=1/Math.sqrt(u*u+c*c+v*v),u*=d,c*=d,v*=d,n=T*v-_*c,i=_*u-b*v,o=b*c-T*u,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-u*o,f=u*i-c*n,d=Math.sqrt(l*l+s*s+f*f),d?(d=1/d,l*=d,s*=d,f*=d):(l=0,s=0,f=0),e[0]=n,e[1]=l,e[2]=u,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=f,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+f*y),e[14]=-(u*p+c*m+v*y),e[15]=1,e)}});var qE=N((Wke,FE)=>{FE.exports=yoe;function yoe(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var V5=N((jke,PE)=>{PE.exports={create:FS(),clone:PS(),copy:IS(),identity:H5(),transpose:zS(),invert:US(),adjoint:VS(),determinant:WS(),multiply:XS(),translate:$S(),scale:QS(),rotate:eE(),rotateX:tE(),rotateY:nE(),rotateZ:oE(),fromRotation:sE(),fromRotationTranslation:uE(),fromScaling:vE(),fromTranslation:dE(),fromXRotation:yE(),fromYRotation:gE(),fromZRotation:xE(),fromQuat:wE(),frustum:TE(),perspective:SE(),perspectiveFromFieldOfView:kE(),ortho:LE(),lookAt:RE(),str:qE()}});var Kg=N(Hn=>{"use strict";var moe=V5();Hn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var goe=ca(),NE=Sh(),boe=Kg(),xoe=V5();function _oe(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function woe(e){var r=goe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function IE(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Aoe(e,r){OE("global",e,r)}function OE(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):NE.warn("addStyleRule failed"):NE.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Toe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&IE(t)}function Moe(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(f){f.getAttribute(s)||(f.addEventListener("mouseenter",function(){var u=this.querySelector(t);u&&(u.style[o[0]]=o[1])}),f.addEventListener("mouseleave",function(){var u=this.querySelector(t);u&&(r&&this.matches(r)?u.style[o[0]]=o[1]:u.style[l[0]]=l[1])}),f.setAttribute(s,!0))})}function Soe(e){var r=zE(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=BE(a);if(n){var i=boe.convertCssMatrix(n);t=xoe.multiply(t,t,i)}}),t}function BE(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function zE(e){for(var r=[];Eoe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Eoe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function koe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}GE.exports={getGraphDiv:_oe,isPlotDiv:woe,removeElement:IE,addStyleRule:Aoe,addRelatedStyleRule:OE,deleteRelatedStyleRule:Toe,setStyleOnHover:Moe,getFullTransformMatrix:Soe,getElementTransformMatrix:BE,getElementAndAncestors:zE,equalDomRects:koe}});var Q1=N(($ke,UE)=>{"use strict";UE.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Fs=N((Jke,ZE)=>{"use strict";var VE=Un().extendFlat,Coe=Fc(),YE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},WE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Loe=YE.flags.slice().concat(["fullReplot"]),Doe=WE.flags.slice().concat("layoutReplot");ZE.exports={traces:YE,layout:WE,traceFlags:function(){return HE(Loe)},layoutFlags:function(){return HE(Doe)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Y5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Y5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var W5=N((Kke,$E)=>{"use strict";$E.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var hd=N(vd=>{"use strict";var{DATE_FORMAT_LINK:Roe,FORMAT_LINK:Foe}=W5(),qoe=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Poe({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Foe,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Roe,"for details on the date formatting syntax.",qoe].join(" ")}vd.templateFormatStringDescription=Poe;vd.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>_h({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});vd.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>_h({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});vd.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});vd.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var t2=N((tCe,tk)=>{"use strict";function Ic(e,r){return r?r.d2l(e):e}function JE(e,r){return r?r.l2d(e):e}function Noe(e){return e.x0}function Ioe(e){return e.x1}function Ooe(e){return e.y0}function Boe(e){return e.y1}function QE(e){return e.x0shift||0}function KE(e){return e.x1shift||0}function ek(e){return e.y0shift||0}function rk(e){return e.y1shift||0}function e2(e,r){return Ic(e.x1,r)+KE(e)-Ic(e.x0,r)-QE(e)}function r2(e,r,t){return Ic(e.y1,t)+rk(e)-Ic(e.y0,t)-ek(e)}function zoe(e,r){return Math.abs(e2(e,r))}function Goe(e,r,t){return Math.abs(r2(e,r,t))}function Uoe(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(e2(e,r),2)+Math.pow(r2(e,r,t),2))}function Hoe(e,r){return JE((Ic(e.x1,r)+KE(e)+Ic(e.x0,r)+QE(e))/2,r)}function Voe(e,r,t){return JE((Ic(e.y1,t)+rk(e)+Ic(e.y0,t)+ek(e))/2,t)}function Yoe(e,r,t){return e.type!=="line"?void 0:r2(e,r,t)/e2(e,r)}var Woe=["x0","x1","y0","y1","dy","height","ycenter"],joe=["x0","x1","y0","y1","dx","width","xcenter"];tk.exports={x0:Noe,x1:Ioe,y0:Ooe,y1:Boe,slope:Yoe,dx:e2,dy:r2,width:zoe,height:Goe,length:Uoe,xcenter:Hoe,ycenter:Voe,simpleXVariables:Woe,simpleYVariables:joe}});var ik=N((aCe,nk)=>{"use strict";var Xoe=Fs().overrideAll,Eh=Ds(),ak=Ui(),Zoe=Nc().dash,Oc=Un().extendFlat,{shapeTexttemplateAttrs:$oe,templatefallbackAttrs:Joe}=hd(),Qoe=t2();nk.exports=Xoe({newshape:{visible:Oc({},Eh.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Oc({},Eh.legend,{}),legendgroup:Oc({},Eh.legendgroup,{}),legendgrouptitle:{text:Oc({},Eh.legendgrouptitle.text,{}),font:ak({})},legendrank:Oc({},Eh.legendrank,{}),legendwidth:Oc({},Eh.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Oc({},Zoe,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Oc({},Eh.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:$oe({newshape:!0},{keys:Object.keys(Qoe)}),texttemplatefallback:Joe({editType:"arraydraw"}),font:ak({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var lk=N((nCe,ok)=>{"use strict";var Koe=Nc().dash,ele=Un().extendFlat;ok.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:ele({},Koe,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var a2=N((iCe,sk)=>{"use strict";sk.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var dd=N((oCe,vk)=>{"use strict";var j5=Ui(),rle=Q1(),n2=Mf(),fk=ik(),uk=lk(),tle=a2(),ck=Un().extendFlat,i2=j5({editType:"calc"});i2.family.dflt='"Open Sans", verdana, arial, sans-serif';i2.size.dflt=12;i2.color.dflt=n2.defaultLine;vk.exports={font:i2,title:{text:{valType:"string",editType:"layoutstyle"},font:j5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:j5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:ck(tle({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:n2.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:n2.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:n2.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:fk.newshape,activeshape:fk.activeshape,newselection:uk.newselection,activeselection:uk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:ck({},rle.transition,{editType:"none"})}});var hk=N(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Bt=N(ia=>{"use strict";var pd=Sh(),dk=Qg(),pk=U5(),ale=Fc(),nle=J1().addStyleRule,yk=Un(),ile=Ds(),ole=dd(),lle=yk.extendFlat,X5=yk.extendDeepAll;ia.modules={};ia.allCategories={};ia.allTypes=[];ia.subplotsRegistry={};ia.componentsRegistry={};ia.layoutArrayContainers=[];ia.layoutArrayRegexes=[];ia.traceLayoutAttributes={};ia.localeRegistry={};ia.apiMethodRegistry={};ia.collectableSubplotTypes=null;ia.register=function(r){if(ia.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var hle=nd().timeFormat,Ek=_a(),Z5=Sh(),zc=od().mod,gd=ri(),Gl=gd.BADNUM,$o=gd.ONEDAY,K1=gd.ONEHOUR,Bc=gd.ONEMIN,md=gd.ONESEC,ey=gd.EPOCHJD,Cu=Bt(),_k=nd().utcFormat,dle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,ple=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,wk=new Date().getFullYear()-70;function Lu(e){return e&&Cu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Vn.dateTick0=function(e,r){var t=yle(e,!!r);if(r<2)return t;var a=Vn.dateTime2ms(t,e);return a+=$o*(r-1),Vn.ms2DateTime(a,0,e)};function yle(e,r){return Lu(e)?r?Cu.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Cu.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Vn.dfltRange=function(e){return Lu(e)?Cu.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Vn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var l2,s2;Vn.dateTime2ms=function(e,r){if(Vn.isJSDate(e)){var t=e.getTimezoneOffset()*Bc,a=(e.getUTCMinutes()-e.getMinutes())*Bc+(e.getUTCSeconds()-e.getSeconds())*md+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Bc;t=t-n/2+zc(a-t+n/2,n)}return e=Number(e)-t,e>=l2&&e<=s2?e:Gl}if(typeof e!="string"&&typeof e!="number")return Gl;e=String(e);var i=Lu(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?ple:dle);if(!s)return Gl;var f=s[1],u=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(f.length===2)return Gl;f=Number(f);var m;try{var y=Cu.getComponentMethod("calendars","getCal")(r);if(l){var b=u.charAt(u.length-1)==="i";u=parseInt(u,10),m=y.newDate(f,y.toMonthIndex(f,u,b),c)}else m=y.newDate(f,Number(u),c)}catch(_){return Gl}return m?(m.toJD()-ey)*$o+v*K1+d*Bc+p*md:Gl}f.length===2?f=(Number(f)+2e3-wk)%100+wk:f=Number(f),u-=1;var T=new Date(Date.UTC(2e3,u,c,v,d));return T.setUTCFullYear(f),T.getUTCMonth()!==u||T.getUTCDate()!==c?Gl:T.getTime()+p*md};l2=Vn.MIN_MS=Vn.dateTime2ms("-9999");s2=Vn.MAX_MS=Vn.dateTime2ms("9999-12-31 23:59:59.9999");Vn.isDateTime=function(e,r){return Vn.dateTime2ms(e,r)!==Gl};function yd(e,r){return String(e+Math.pow(10,r)).slice(1)}var o2=90*$o,Ak=3*K1,Tk=5*Bc;Vn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=l2&&e<=s2))return Gl;r||(r=0);var a=Math.floor(zc(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,f,u;if(Lu(t)){var c=Math.floor(n/$o)+ey,v=Math.floor(zc(e,$o));try{i=Cu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=_k("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r=l2+$o&&e<=s2-$o))return Gl;var r=Math.floor(zc(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=hle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return kk(a,n,i,o,l)};function kk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+yd(r,2)+":"+yd(t,2),(a||n)&&(e+=":"+yd(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+yd(n,i)}return e}Vn.cleanDate=function(e,r,t){if(e===Gl)return r;if(Vn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Lu(t))return Z5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Vn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Vn.isDateTime(e,t))return Z5.error("unrecognized date",e),r;return e};var mle=/%\d?f/g,gle=/%h/g,ble={1:"1",2:"1",3:"2",4:"2"};function Mk(e,r,t,a){e=e.replace(mle,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(gle,function(){return ble[t("%q")(n)]}),Lu(a))try{e=Cu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var xle=[59,59.9,59.99,59.999,59.9999];function _le(e,r){var t=zc(e+.05,$o),a=yd(Math.floor(t/K1),2)+":"+yd(zc(Math.floor(t/Bc),60),2);if(r!=="M"){Ek(r)||(r=0);var n=Math.min(zc(e/md,60),xle[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Vn.formatDate=function(e,r,t,a,n,i){if(n=Lu(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return _le(e,t)+` +`+Mk(i.dayMonthYear,e,a,n);return Mk(r,e,a,n)};var Sk=3*$o;Vn.incrementMonth=function(e,r,t){t=Lu(t)&&t;var a=zc(e,$o);if(e=Math.round(e-a),t)try{var n=Math.round(e/$o)+ey,i=Cu.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-ey)*$o+a}catch(s){Z5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+Sk);return l.setUTCMonth(l.getUTCMonth()+r)+a-Sk};Vn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Lu(r)&&Cu.getComponentMethod("calendars","getCal")(r),f=0;f{"use strict";Lk.exports=function(r){return r}});var J5=N(Du=>{"use strict";var wle=_a(),Ale=Sh(),Tle=f2(),Mle=ri().BADNUM,$5=1e-9;Du.findBin=function(e,r,t){if(wle(r.start))return t?Math.ceil((e-r.start)/r.size-$5)-1:Math.floor((e-r.start)/r.size+$5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?Sle:Ele:s=t?Cle:kle,e+=o*$5*(t?-1:1)*(o>=0?1:-1);a90&&Ale.log("Long binary search..."),a-1};function Sle(e,r){return er}function Cle(e,r){return e>=r}Du.sorterAsc=function(e,r){return e-r};Du.sorterDes=function(e,r){return r-e};Du.distinctVals=function(e){var r=e.slice();r.sort(Du.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Mle;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],f=s-o;o===void 0?(i.push(s),o=s):f>n&&(a=Math.min(a,f),i.push(s),o=s)}return{vals:i,minDiff:a}};Du.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,f=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Du.findIndexOfMin=function(e,r){r=r||Tle;for(var t=1/0,a,n=0;n{"use strict";Dk.exports=function(r){return Object.keys(r).sort()}});var Rk=N(Yn=>{"use strict";var ry=_a(),Lle=Po().isArrayOrTypedArray;Yn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),ry(r)||(r=!1),Lle(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Ik=N((pCe,Nk)=>{"use strict";var Fk=od(),Q5=Fk.mod,Dle=Fk.modHalf,ty=Math.PI,Gc=2*ty;function Rle(e){return e/180*ty}function Fle(e){return e/ty*180}function K5(e){return Math.abs(e[1]-e[0])>Gc-1e-14}function qk(e,r){return Dle(r-e,Gc)}function qle(e,r){return Math.abs(qk(e,r))}function Pk(e,r){if(K5(r))return!0;var t,a;r[0]a&&(a+=Gc);var n=Q5(e,Gc),i=n+Gc;return n>=t&&n<=a||i>=t&&i<=a}function Ple(e,r,t,a){if(!Pk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function e4(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=K5([t,a]),s,f,u,c,v;l?(s=0,f=ty,u=Gc):t{"use strict";kh.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};kh.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};kh.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};kh.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};kh.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};kh.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Gk=N(Ch=>{"use strict";var r4=od().mod;Ch.segmentsIntersect=zk;function zk(e,r,t,a,n,i,o,l){var s=t-e,f=n-e,u=o-n,c=a-r,v=i-r,d=l-i,p=s*d-u*c;if(p===0)return null;var m=(f*d-u*v)/p,y=(f*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Ch.segmentDistance=function(r,t,a,n,i,o,l,s){if(zk(r,t,a,n,i,o,l,s))return 0;var f=a-r,u=n-t,c=l-i,v=s-o,d=f*f+u*u,p=c*c+v*v,m=Math.min(c2(f,u,d,i-r,o-t),c2(f,u,d,l-r,s-t),c2(c,v,p,r-i,t-o),c2(c,v,p,a-i,n-o));return Math.sqrt(m)};function c2(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var v2,t4,Bk;Ch.getTextLocation=function(r,t,a,n){if((r!==t4||n!==Bk)&&(v2={},t4=r,Bk=n),v2[a])return v2[a];var i=r.getPointAtLength(r4(a-n/2,t)),o=r.getPointAtLength(r4(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(r4(a,t)),f=(s.x*4+i.x+o.x)/6,u=(s.y*4+i.y+o.y)/6,c={x:f,y:u,theta:l};return v2[a]=c,c};Ch.clearLocationCache=function(){t4=null};Ch.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,f=r.getTotalLength(),u=f,c,v;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===f&&(v=y);var b=y.xi?y.x-i:0,T=y.yl?y.y-l:0;return Math.sqrt(b*b+T*T)}for(var p=d(s);p;){if(s+=p+a,s>u)return;p=d(s)}for(p=d(u);p;){if(u-=p+a,s>u)return;p=d(u)}return{min:s,max:u,len:u-s,total:f,isClosed:s===0&&u===f&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};Ch.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,f=0,u=0,c=i,v,d,p;f0?c=v:u=v,f++}return d}});var h2=N(ay=>{"use strict";var Ru={};ay.throttle=function(r,t,a){var n=Ru[r],i=Date.now();if(!n){for(var o in Ru)Ru[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};ay.done=function(e){var r=Ru[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};ay.clear=function(e){if(e)Uk(Ru[e]),delete Ru[e];else for(var r in Ru)ay.clear(r)};function Uk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Vk=N((bCe,Hk)=>{"use strict";Hk.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var Yk=N((xCe,d2)=>{"use strict";d2.exports=a4;d2.exports.isMobile=a4;d2.exports.default=a4;var Ble=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,zle=/CrOS/,Gle=/android|ipad|playbook|silk/i;function a4(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=Ble.test(r)&&!zle.test(r)||!!e.tablet&&Gle.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var jk=N((_Ce,Wk)=>{"use strict";var Ule=_a(),Hle=Yk();Wk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Vle(),typeof t!="string")return!0;var a=Hle({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var f=s.slice(8).split(".")[0];if(Ule(f)&&(f=+f),f>=13)return!0}}}return a};function Vle(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Zk=N((wCe,Xk)=>{"use strict";var Yle=ca();Xk.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Yle.select(this)}),n}});var Jk=N((ACe,$k)=>{"use strict";var Wle=Bt();$k.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Wle.localeRegistry}var f=a.split("-")[0];if(f===a)break;a=f}return t}});var Kk=N((TCe,Qk)=>{"use strict";Qk.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";eC.exports=function(r){for(var t=Zle(r)?Xle:jle,a=[],n=0;n{"use strict";tC.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var iC=N((ECe,nC)=>{"use strict";var $le=_a(),Jle=ri().BADNUM,Qle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;nC.exports=function(r){return typeof r=="string"&&(r=r.replace(Qle,"")),$le(r)?Number(r):Jle}});var zr=N((kCe,gC)=>{"use strict";var ny=ca(),Kle=nd().utcFormat,ese=k5().format,cC=_a(),vC=ri(),hC=vC.FP_SAFE,rse=-hC,oC=vC.BADNUM,je=gC.exports={};je.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var lC={};je.warnBadFormat=function(e){var r=String(e);lC[r]||(lC[r]=1,je.warn('encountered bad format: "'+r+'"'))};je.noFormat=function(e){return String(e)};je.numberFormat=function(e){var r;try{r=ese(je.adjustFormat(e))}catch(t){return je.warnBadFormat(e),je.noFormat}return r};je.nestedProperty=Vg();je.keyedContainer=QM();je.relativeAttr=eS();je.isPlainObject=Fc();je.toLogRange=Wg();je.relinkPrivateKeys=nS();var Uc=Po();je.isArrayBuffer=Uc.isArrayBuffer;je.isTypedArray=Uc.isTypedArray;je.isArrayOrTypedArray=Uc.isArrayOrTypedArray;je.isArray1D=Uc.isArray1D;je.ensureArray=Uc.ensureArray;je.concat=Uc.concat;je.maxRowLength=Uc.maxRowLength;je.minRowLength=Uc.minRowLength;var dC=od();je.mod=dC.mod;je.modHalf=dC.modHalf;var Hc=AS();je.valObjectMeta=Hc.valObjectMeta;je.coerce=Hc.coerce;je.coerce2=Hc.coerce2;je.coerceFont=Hc.coerceFont;je.coercePattern=Hc.coercePattern;je.coerceHoverinfo=Hc.coerceHoverinfo;je.coerceSelectionMarkerOpacity=Hc.coerceSelectionMarkerOpacity;je.validate=Hc.validate;var gl=Ck();je.dateTime2ms=gl.dateTime2ms;je.isDateTime=gl.isDateTime;je.ms2DateTime=gl.ms2DateTime;je.ms2DateTimeLocal=gl.ms2DateTimeLocal;je.cleanDate=gl.cleanDate;je.isJSDate=gl.isJSDate;je.formatDate=gl.formatDate;je.incrementMonth=gl.incrementMonth;je.dateTick0=gl.dateTick0;je.dfltRange=gl.dfltRange;je.findExactDates=gl.findExactDates;je.MIN_MS=gl.MIN_MS;je.MAX_MS=gl.MAX_MS;var Lh=J5();je.findBin=Lh.findBin;je.sorterAsc=Lh.sorterAsc;je.sorterDes=Lh.sorterDes;je.distinctVals=Lh.distinctVals;je.roundUp=Lh.roundUp;je.sort=Lh.sort;je.findIndexOfMin=Lh.findIndexOfMin;je.sortObjectKeys=u2();var Fu=Rk();je.aggNums=Fu.aggNums;je.len=Fu.len;je.mean=Fu.mean;je.geometricMean=Fu.geometricMean;je.median=Fu.median;je.midRange=Fu.midRange;je.variance=Fu.variance;je.stdev=Fu.stdev;je.interp=Fu.interp;var qs=Kg();je.init2dArray=qs.init2dArray;je.transposeRagged=qs.transposeRagged;je.dot=qs.dot;je.translationMatrix=qs.translationMatrix;je.rotationMatrix=qs.rotationMatrix;je.rotationXYMatrix=qs.rotationXYMatrix;je.apply3DTransform=qs.apply3DTransform;je.apply2DTransform=qs.apply2DTransform;je.apply2DTransform2=qs.apply2DTransform2;je.convertCssMatrix=qs.convertCssMatrix;je.inverseTransformMatrix=qs.inverseTransformMatrix;var Sf=Ik();je.deg2rad=Sf.deg2rad;je.rad2deg=Sf.rad2deg;je.angleDelta=Sf.angleDelta;je.angleDist=Sf.angleDist;je.isFullCircle=Sf.isFullCircle;je.isAngleInsideSector=Sf.isAngleInsideSector;je.isPtInsideSector=Sf.isPtInsideSector;je.pathArc=Sf.pathArc;je.pathSector=Sf.pathSector;je.pathAnnulus=Sf.pathAnnulus;var xd=Ok();je.isLeftAnchor=xd.isLeftAnchor;je.isCenterAnchor=xd.isCenterAnchor;je.isRightAnchor=xd.isRightAnchor;je.isTopAnchor=xd.isTopAnchor;je.isMiddleAnchor=xd.isMiddleAnchor;je.isBottomAnchor=xd.isBottomAnchor;var _d=Gk();je.segmentsIntersect=_d.segmentsIntersect;je.segmentDistance=_d.segmentDistance;je.getTextLocation=_d.getTextLocation;je.clearLocationCache=_d.clearLocationCache;je.getVisibleSegment=_d.getVisibleSegment;je.findPointOnPath=_d.findPointOnPath;var m2=Un();je.extendFlat=m2.extendFlat;je.extendDeep=m2.extendDeep;je.extendDeepAll=m2.extendDeepAll;je.extendDeepNoArrays=m2.extendDeepNoArrays;var n4=Sh();je.log=n4.log;je.warn=n4.warn;je.error=n4.error;var tse=fd();je.counterRegex=tse.counter;var i4=h2();je.throttle=i4.throttle;je.throttleDone=i4.done;je.clearThrottle=i4.clear;var Ps=J1();je.getGraphDiv=Ps.getGraphDiv;je.isPlotDiv=Ps.isPlotDiv;je.removeElement=Ps.removeElement;je.addStyleRule=Ps.addStyleRule;je.addRelatedStyleRule=Ps.addRelatedStyleRule;je.deleteRelatedStyleRule=Ps.deleteRelatedStyleRule;je.setStyleOnHover=Ps.setStyleOnHover;je.getFullTransformMatrix=Ps.getFullTransformMatrix;je.getElementTransformMatrix=Ps.getElementTransformMatrix;je.getElementAndAncestors=Ps.getElementAndAncestors;je.equalDomRects=Ps.equalDomRects;je.clearResponsive=Vk();je.preserveDrawingBuffer=jk();je.makeTraceGroups=Zk();je._=Jk();je.notifier=B5();je.filterUnique=Kk();je.filterVisible=rC();je.pushUnique=U5();je.increment=aC();je.cleanNumber=iC();je.ensureNumber=function(r){return cC(r)?(r=Number(r),r>hC||r=r?!1:cC(e)&&e>=0&&e%1===0};je.noop=Qg();je.identity=f2();je.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};je.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};je.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(je.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};je.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};je.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,f,u;for(l=0;l=a&&(f-=a*Math.floor(f/a)),f<0?f=-1-f:f>=t&&(f=a-1-f),u+=e[f]*i[s];o[l]=u}return o};je.syncOrAsync=function(e,r,t){var a,n;function i(){return je.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};je.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};je.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};je.fillArray=function(e,r,t,a){if(a=a||je.identity,je.isArrayOrTypedArray(e))for(var n=0;nise.test(window.navigator.userAgent);var ose=/Firefox\/(\d+)\.\d+/;je.getFirefoxVersion=function(){var e=ose.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};je.isD3Selection=function(e){return e instanceof ny.selection};je.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};je.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};je.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};je.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var mC=/^\w*$/;je.templateString=function(e,r){var t={};return e.replace(je.TEMPLATE_STRING_REGEX,function(a,n){var i;return mC.test(n)?i=r[n]:(t[n]=t[n]||je.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var fse={max:10,count:0,name:"hovertemplate"};je.hovertemplateString=e=>o4(Pg(_h({},e),{opts:fse}));var use={max:10,count:0,name:"texttemplate"};je.texttemplateString=e=>o4(Pg(_h({},e),{opts:use}));var cse=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function vse(e){var r=e.match(cse);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var hse={max:10,count:0,name:"texttemplate",parseMultDiv:!0};je.texttemplateStringForShapes=e=>o4(Pg(_h({},e),{opts:hse}));var sC=/^[:|\|]/;function o4({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(je.TEMPLATE_STRING_REGEX,(o,l,s)=>{let f=["xother","yother"].includes(l),u=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=f||u||v||c;(u||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,m=null;if(n.parseMultDiv){var y=vse(l);l=y.key,p=y.op,m=y.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let A of e)if(A){if(A.hasOwnProperty(l)){b=A[l];break}if(mC.test(l)||(b=je.nestedProperty(A,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:A,max:E,name:M}=n,k=t===!1?o:t;return A=y2&&o<=fC,f=l>=y2&&l<=fC;if(s&&(a=10*a+o-y2),f&&(n=10*n+l-y2),!s||!f){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var bd=2e9;je.seedPseudoRandom=function(){bd=2e9};je.pseudoRandom=function(){var e=bd;return bd=(69069*bd+1)%4294967296,Math.abs(bd-e)<429496729?je.pseudoRandom():bd/4294967296};je.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=je.extractOption(e,r,"htx","hovertext");if(je.isValidTextValue(n))return a(n);var i=je.extractOption(e,r,"tx","text");if(je.isValidTextValue(i))return a(i)};je.isValidTextValue=function(e){return e||e===0};je.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(f=1):f=0,je.strTranslate(n-f*(t+o),i-f*(a+l))+je.strScale(f)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};je.setTransormAndDisplay=function(e,r){e.attr("transform",je.getTextTransform(r)),e.style("display",r.scale?null:"none")};je.ensureUniformFontSize=function(e,r){var t=je.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};je.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};je.bigFont=function(e){return Math.round(1.2*e)};var uC=je.getFirefoxVersion(),dse=uC!==null&&uC<86;je.getPositionFromD3Event=function(){return dse?[ny.event.layerX,ny.event.layerY]:[ny.event.offsetX,ny.event.offsetY]}});var _C=N(()=>{"use strict";var pse=zr(),bC={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#fff;border-color:#e0e2e5;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#f3f3f3;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(l4 in bC)xC=l4.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),pse.addStyleRule(xC,bC[l4]);var xC,l4});var s4=N((RCe,wC)=>{wC.exports=!0});var u4=N((FCe,AC)=>{"use strict";var yse=s4(),f4;typeof window.matchMedia=="function"?f4=!window.matchMedia("(hover: none)").matches:f4=yse;AC.exports=f4});var x2=N((qCe,c4)=>{"use strict";var wd=typeof Reflect=="object"?Reflect:null,TC=wd&&typeof wd.apply=="function"?wd.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},g2;wd&&typeof wd.ownKeys=="function"?g2=wd.ownKeys:Object.getOwnPropertySymbols?g2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:g2=function(r){return Object.getOwnPropertyNames(r)};function mse(e){console&&console.warn&&console.warn(e)}var SC=Number.isNaN||function(r){return r!==r};function cn(){cn.init.call(this)}c4.exports=cn;c4.exports.once=_se;cn.EventEmitter=cn;cn.prototype._events=void 0;cn.prototype._eventsCount=0;cn.prototype._maxListeners=void 0;var MC=10;function b2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(cn,"defaultMaxListeners",{enumerable:!0,get:function(){return MC},set:function(e){if(typeof e!="number"||e<0||SC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");MC=e}});cn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};cn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||SC(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function EC(e){return e._maxListeners===void 0?cn.defaultMaxListeners:e._maxListeners}cn.prototype.getMaxListeners=function(){return EC(this)};cn.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")TC(s,this,t);else for(var f=s.length,u=RC(s,f),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,mse(l)}return e}cn.prototype.addListener=function(r,t){return kC(this,r,t,!1)};cn.prototype.on=cn.prototype.addListener;cn.prototype.prependListener=function(r,t){return kC(this,r,t,!0)};function gse(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function CC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=gse.bind(a);return n.listener=t,a.wrapFn=n,n}cn.prototype.once=function(r,t){return b2(t),this.on(r,CC(this,r,t)),this};cn.prototype.prependOnceListener=function(r,t){return b2(t),this.prependListener(r,CC(this,r,t)),this};cn.prototype.removeListener=function(r,t){var a,n,i,o,l;if(b2(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():bse(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};cn.prototype.off=cn.prototype.removeListener;cn.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function LC(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?xse(n):RC(n,n.length)}cn.prototype.listeners=function(r){return LC(this,r,!0)};cn.prototype.rawListeners=function(r){return LC(this,r,!1)};cn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):DC.call(e,r)};cn.prototype.listenerCount=DC;function DC(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}cn.prototype.eventNames=function(){return this._eventsCount>0?g2(this._events):[]};function RC(e,r){for(var t=new Array(r),a=0;a{"use strict";var v4=x2().EventEmitter,Ase={init:function(e){if(e._ev instanceof v4)return e;var r=new v4,t=new v4;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var PC=zr(),Tse=Mh().dfltConfig;function Mse(e,r){for(var t=[],a,n=0;nTse.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};qu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};qu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};qu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";OC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Md=N(ui=>{"use strict";var Ul=Bt(),oy=zr(),w2=Ds(),d4=dd(),Sse=h4(),Ese=Q1(),kse=Mh().configAttributes,BC=Fs(),Ns=oy.extendDeepAll,Ad=oy.isPlainObject,Cse=oy.isArrayOrTypedArray,A2=oy.nestedProperty,Lse=oy.valObjectMeta,p4="_isSubplotObj",T2="_isLinkedToArray",Dse="_arrayAttrRegexps",GC="_deprecated",y4=[p4,T2,Dse,GC];ui.IS_SUBPLOT_OBJ=p4;ui.IS_LINKED_TO_ARRAY=T2;ui.DEPRECATED=GC;ui.UNDERSCORE_ATTRS=y4;ui.get=function(){var e={};return Ul.allTypes.forEach(function(r){e[r]=Fse(r)}),{defs:{valObjects:Lse,metaKeys:y4.concat(["description","role","editType","impliedEdits"]),editType:{traces:BC.traces,layout:BC.layout},impliedEdits:{}},traces:e,layout:qse(),frames:Pse(),animation:Td(Ese),config:Td(kse)}};ui.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(y4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!ui.isValObject(o)&&Ad(o)&&i!=="impliedEdits"&&ui.crawl(o,r,n+1,l)}})};ui.isValObject=function(e){return e&&e.valType!==void 0};ui.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,f,u,c){t=t.slice(0,c).concat([f]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(f==="ticktext"||f==="tickvals"));v&&l(n,0,"")}function l(s,f,u){var c=s[t[f]],v=u+t[f];if(f===t.length-1)Cse(c)&&r.push(i+v);else if(a[f]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!_2(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function _2(e){return e===Math.round(e)&&e>=0}function Fse(e){var r,t;r=Ul.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ns({},w2),i=Ns({},r.attributes);ui.crawl(i,function(s,f,u,c,v){A2(n,v).set(void 0),s===void 0&&A2(i,v).set(void 0)}),Ns(a,n),Ul.traceIs(e,"noOpacity")&&delete a.opacity,Ul.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Ul.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ns(a,i),t.attributes&&Ns(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Td(a)};if(r.layoutAttributes){var l={};Ns(l,r.layoutAttributes),o.layoutAttributes=Td(l)}return r.animatable||ui.crawl(o,function(s){ui.isValObject(s)&&"anim"in s&&delete s.anim}),o}function qse(){var e={},r,t;Ns(e,d4);for(r in Ul.subplotsRegistry)if(t=Ul.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Sd=zr(),zse=Ds(),Vc="templateitemname",m4={name:{valType:"string",editType:"none"}};m4[Vc]={valType:"string",editType:"calc"};Dh.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=m4.name,r[Vc]=m4[Vc],r};Dh.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Sd.coerce(i,{},zse,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};Dh.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Sd.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Dh.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[VC(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(f){var u={name:f.name,_input:f},c=u[Vc]=f[Vc];if(!HC(c))return u._template=n,u;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Vc]=i)}s();function f(d,p){l[d]=p}function u(d,p){i?Sd.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&u(d,p);var m=c();for(var y in m)Sd.nestedProperty(e,y).set(m[y])}return{modifyBase:f,modifyItem:u,getUpdateObj:c,applyUpdate:v}}});var ci=N((zCe,YC)=>{"use strict";var ly=fd().counter;YC.exports={idRegex:{x:ly("x","( domain)?"),y:ly("y","( domain)?")},attrRegex:ly("[xy]axis"),xAxisMatch:ly("xaxis"),yAxisMatch:ly("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var En=N(Jo=>{"use strict";var Gse=Bt(),g4=ci();Jo.id2name=function(r){if(!(typeof r!="string"||!r.match(g4.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Jo.name2id=function(r){if(r.match(g4.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Jo.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(g4.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Jo.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Jo.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Jo.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function WC(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Use(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Hse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}jC.exports={clearOutlineControllers:Use,clearOutline:Hse}});var M2=N((HCe,XC)=>{"use strict";XC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var sy=N(E2=>{"use strict";var S2=Bt(),VCe=ci().SUBPLOT_PATTERN;E2.getSubplotCalcData=function(e,r,t){var a=S2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Vse=Bt(),Ed=zr();Rh.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Rh.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){ZC(e,o,n.cache),n.check=function(){if(i){var u=ZC(e,o,n.cache);return u.changed&&a&&n.lookupTable[u.value]!==void 0&&(n.disable(),Promise.resolve(a({value:u.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[u.value]})).then(n.enable,n.enable)),u.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Ed.isPlainObject(i)?b4(i,r,o,a+1):r(o,n,i)}})}});var _i=N((jCe,cL)=>{"use strict";var Wse=ca(),jse=nd().timeFormatLocale,Xse=k5().formatLocale,fy=_a(),Zse=C5(),$se=U1().version,Ca=Bt(),iL=Md(),Jse=$a(),St=zr(),oL=va(),KC=ri().BADNUM,Qo=En(),Qse=Yc().clearOutline,Kse=M2(),x4=Q1(),efe=h4(),rfe=sy().getModuleCalcData,eL=St.relinkPrivateKeys,Fh=St._,pt=cL.exports={};St.extendFlat(pt,Ca);pt.attributes=Ds();pt.attributes.type.values=pt.allTypes;pt.fontAttrs=Ui();pt.layoutAttributes=dd();var C2=QC();pt.executeAPICommand=C2.executeAPICommand;pt.computeAPICommandBindings=C2.computeAPICommandBindings;pt.manageCommandObserver=C2.manageCommandObserver;pt.hasSimpleAPICommandBindings=C2.hasSimpleAPICommandBindings;pt.redrawText=function(e){return e=St.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Ca.getComponentMethod("annotations","draw")(e),Ca.getComponentMethod("legend","draw")(e),Ca.getComponentMethod("colorbar","draw")(e),r(pt.previousPromises(e)))},300)})};pt.resize=function(e){e=St.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||St.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||St.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Ca.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};pt.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};pt.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=St.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:oL.defaultLine,"pointer-events":"all"}).each(function(){var f=Wse.select(this);f.append("tspan").classed("js-link-to-tool",!0),f.append("tspan").classed("js-link-spacer",!0),f.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&tfe(e,i),o.text(i.text()&&l.text()?" - ":"")}};function tfe(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){pt.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}pt.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=pt.graphJson(e,!1,"keepdata","object");a.version=$se;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var afe=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],nfe=["year","month","dayMonth","dayMonthYear"];pt.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],f=e.calcdata||[],u=e._context||{},c;e._transitionData||pt.createTransitionData(e),n._dfltTitle={plot:Fh(e,"Click to enter Plot title"),subtitle:Fh(e,"Click to enter Plot subtitle"),x:Fh(e,"Click to enter X axis title"),y:Fh(e,"Click to enter Y axis title"),colorbar:Fh(e,"Click to enter Colorscale title"),annotation:Fh(e,"new text")},n._traceWord=Fh(e,"trace");var v=rL(e,afe);if(n._mapboxAccessToken=u.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;pt.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),pt.sanitizeMargins(n)}else{pt.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,b=u.autosizable,T=m&&(y||b);T?pt.plotAutoSize(e,i,n):m&&pt.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=lfe(v,n.separators),n._extraFormat=rL(e,nfe),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=ofe(),x=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=ife(o,s),pt.supplyDataDefaults(s,l,i,n);var E=Object.keys(x.x),M=Object.keys(x.y);if(E.length>1&&M.length>1){for(Ca.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,pt.linkSubplots(l,n,o,a),pt.cleanPlot(l,n,o,a);var F=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),W=F,ee=H;W&&!ee?a._bgLayer.remove():ee&&!W&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Qse({_fullLayout:a}),sfe(l,n),eL(n,a),Ca.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var te=n._tracePreGUI,Q={},$;for($ in te)Q[$]="old";for(c=0;c0){var u=1-2*i;o=Math.round(u*o),l=Math.round(u*l)}}var c=pt.layoutAttributes.width.min,v=pt.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),pt.sanitizeMargins(a)};pt.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Ca.componentsRegistry,i=r._basePlotModules,o,l,s,f=Ca.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(f),r._has("cartesian")&&(Ca.getComponentMethod("grid","contentDefaults")(e,r),f.finalizeSubplots(e,r));for(var u in r._subplots)r._subplots[u].sort(St.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var T=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+m},r:{val:_,size:t.r+m},b:{val:A,size:t.b+m},t:{val:x,size:t.t+m}},p[r]=1}if(!a._replotting)return pt.doAutoMargin(e)}};function ufe(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Qo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}pt.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),lL(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=St.extendFlat({},n),s=i.l,f=i.r,u=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)d[y]||delete v[y];var b=e._fullLayout._reservedMargin;for(var T in b)for(var _ in b[T]){var x=b[T][_];o[_]=Math.max(o[_],x)}v.base={l:{val:0,size:s},r:{val:1,size:f},t:{val:1,size:u},b:{val:0,size:c}};for(var A in o){var E=0;for(var M in v)M!=="base"&&fy(v[M][A].size)&&(E=v[M][A].size>E?v[M][A].size:E);var k=Math.max(0,i[A]-E);o[A]=Math.max(0,o[A]-k)}for(var R in v){var P=v[R].l||{},O=v[R].b||{},F=P.val,H=P.size,W=O.val,ee=O.size,te=t-o.r-o.l,Q=a-o.t-o.b;for(var $ in v){if(fy(H)&&v[$].r){var j=v[$].r.val,se=v[$].r.size;if(j>F){var le=(H*j+(se-te)*F)/(j-F),Ee=(se*(1-F)+(H-te)*(1-j))/(j-F);le+Ee>s+f&&(s=le,f=Ee)}}if(fy(ee)&&v[$].t){var Ge=v[$].t.val,Le=v[$].t.size;if(Ge>W){var Ue=(ee*Ge+(Le-Q)*W)/(Ge-W),xe=(Le*(1-W)+(ee-Q)*(1-Ge))/(Ge-W);Ue+xe>c+u&&(c=Ue,u=xe)}}}}}var ur=St.constrain(t-i.l-i.r,sL,p),Oe=St.constrain(a-i.t-i.b,fL,m),He=Math.max(0,t-ur),xr=Math.max(0,a-Oe);if(He){var Ye=(s+f)/He;Ye>1&&(s/=Ye,f/=Ye)}if(xr){var re=(c+u)/xr;re>1&&(c/=re,u/=re)}if(n.l=Math.round(s)+o.l,n.r=Math.round(f)+o.r,n.t=Math.round(u)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(pt.didMarginChange(l,n)||ufe(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var de=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};pt.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&pt.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function f(v,d){if(typeof v=="function")return d?"_function_":null;if(St.isPlainObject(v)){var p={},m;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.slice(-3)==="src")return}else if(t==="keepstream"){if(m=v[_+"src"],typeof m=="string"&&m.indexOf(":")>0&&!St.isPlainObject(v.stream))return}else if(t!=="keepall"&&(m=v[_+"src"],typeof m=="string"&&m.indexOf(":")>0))return;p[_]=f(v[_],d)}}),p}var y=Array.isArray(v),b=St.isTypedArray(v);if((y||b)&&v.dtype&&v.shape){var T=v.bdata;return f({dtype:v.dtype,shape:v.shape,bdata:St.isArrayBuffer(T)?Zse.encode(T):T},d)}return y?v.map(function(_){return f(_,d)}):b?St.simpleMap(v,St.identity):St.isJSDate(v)?St.ms2DateTimeLocal(+v):v}var u={data:(o||[]).map(function(v){var d=f(v);return r&&delete d.fit,d})};if(!r&&(u.layout=f(l),n)){var c=l._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=f(s)),i&&(u.config=f(e._context,!0)),a==="object"?u:JSON.stringify(u)};pt.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Ca.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Ca.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var f=[pt.previousPromises,s,t.prepareFn,pt.rehover,pt.reselect,o],u=St.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e})}pt.doCalcdata=function(e,r){var t=Qo.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,f=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=f,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}o&&o.calc&&(x=o.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:KC,y:KC}]),x[0].t||(x[0].t={}),x[0].trace=i,f[T]=x}}for(aL(t,a,n),l=0;l{"use strict";qh.xmlns="http://www.w3.org/2000/xmlns/";qh.svg="http://www.w3.org/2000/svg";qh.xlink="http://www.w3.org/1999/xlink";qh.svgAttrs={xmlns:qh.svg,"xmlns:xlink":qh.xlink}});var ao=N((ZCe,vL)=>{"use strict";vL.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var no=N(Hl=>{"use strict";var ti=ca(),Pu=zr(),dfe=Pu.strTranslate,_4=Wc(),pfe=ao().LINE_SPACING,yfe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Hl.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(yfe),i=ti.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=Cfe(e.node(),a);s&&e.style("pointer-events","all"),Hl.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var f=parseInt(e.node().style.fontSize,10),u={fontSize:f};xfe(n[2],u,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var m=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var y=d.width,b=d.height;p.attr({class:o,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var T=e.node().style.fill||"black",_=p.select("g");_.attr({fill:T,stroke:T});var x=_.node().getBoundingClientRect(),A=x.width,E=x.height;(A>y||E>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),A=x.width,E=x.height);var M=+e.attr("x"),k=+e.attr("y"),R=f||e.node().getBoundingClientRect().height,P=-R/4;if(o[0]==="y")m.attr({transform:"rotate("+[-90,M,k]+")"+dfe(-A/2,P-E/2)});else if(o[0]==="l")k=P-E/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,k=P;else{var O=e.attr("text-anchor");M=M-A*(O==="middle"?.5:O==="end"?1:0),k=k+P-E/2}p.attr({x:M,y:k}),t&&t.call(e,m),s(m)})})):l(),e};var mfe=/(<|<|<)/g,gfe=/(>|>|>)/g;function bfe(e){return e.replace(mfe,"\\lt ").replace(gfe,"\\gt ")}var hL=[["$","$"],["\\(","\\)"]];function xfe(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){Pu.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=Pu.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:hL},displayAlign:"left"})},f=function(){i=Pu.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=hL},u=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var T="math-output-"+Pu.randstr({},64);l=ti.select("body").append("div").attr({id:T}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(bfe(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var T=l.select(a===2?".MathJax_SVG":".MathJax"),_=!T.empty()&&l.select("svg").node();if(!_)Pu.log("There was an error in the tex syntax.",e),t();else{var x=_.getBoundingClientRect(),A;a===2?A=ti.select("body").select("#MathJax_SVG_glyphs"):A=T.select("defs"),t(T,A,x)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},m=function(){n!=="svg"&&(MathJax.config.startup.output=n)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,u,v,d,p,y):a===3&&(f(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),m(),b()}))}var mL={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},_fe={sub:"0.3em",sup:"-0.6em"},wfe={sub:"-0.21em",sup:"0.42em"},dL="\u200B",pL=["http:","https:","mailto:","",void 0,":"],gL=Hl.NEWLINES=/(\r\n?|\n)/g,A4=/(<[^<>]*>)/,T4=/<(\/?)([^ >]*)(\s+(.*))?>/i,Afe=//i;Hl.BR_TAG_ALL=//gi;var bL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,xL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,_L=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Tfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Ph(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&L2(a)}var Mfe=/(^|;)\s*color:/;Hl.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(A4),l=[],s="",f=0,u=0;ui?l.push(c.slice(0,Math.max(0,m-i))+n):l.push(c.slice(0,m));break}s=""}}return l.join("")};var Sfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Efe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function L2(e){return e.replace(Efe,function(r,t){var a;return t.charAt(0)==="#"?a=kfe(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Sfe[t],a||r})}Hl.convertEntities=L2;function kfe(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Cfe(e,r){r=r.replace(gL," ");var t=!1,a=[],n,i=-1;function o(){i++;var E=document.createElementNS(_4.svg,"tspan");ti.select(E).attr({class:"line",dy:i*pfe+"em"}),e.appendChild(E),n=E;var M=a;if(a=[{node:E}],M.length>1)for(var k=1;k.",r);return}var M=a.pop();E!==M.type&&Pu.log("Start tag <"+M.type+"> doesnt match end tag <"+E+">. Pretending it did match.",r),n=a[a.length-1].node}var u=Afe.test(r);u?o():(n=e,a=[{node:e}]);for(var c=r.split(A4),v=0;v{"use strict";var Lfe=ca(),R2=Ls(),cy=_a(),D2=zr(),AL=va(),Dfe=Ah().isValid;function Rfe(e,r,t){var a=r?D2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(D2.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function CL(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var DL=W5(),qfe=DL.FORMAT_LINK,Pfe=DL.DATE_FORMAT_LINK;function Nfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?M4:RL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function M4(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+qfe+"."].join(" ")}function RL(e,r){return M4(e,r)+[" And for dates see: "+Pfe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}FL.exports={axisHoverFormat:Nfe,descriptionOnlyNumbers:M4,descriptionWithDates:RL}});var Vl=N((eLe,$L)=>{"use strict";var qL=Ui(),kd=Mf(),ZL=Nc().dash,E4=Un().extendFlat,PL=$a().templatedArray,KCe=hd().templateFormatStringDescription,NL=vy().descriptionWithDates,Ife=ri().ONEDAY,Ef=ci(),Ofe=Ef.HOUR_PATTERN,Bfe=Ef.WEEKDAY_PATTERN,S4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},zfe=E4({},S4,{values:S4.values.slice().concat(["sync"])});function IL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var OL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},BL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},zL={valType:"data_array",editType:"ticks"},GL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function UL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function HL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var VL={valType:"color",dflt:kd.defaultLine,editType:"ticks"},YL={valType:"color",dflt:kd.lightLine,editType:"ticks"};function WL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var jL=E4({},ZL,{editType:"ticks"}),XL={valType:"boolean",editType:"ticks"};$L.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:kd.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:qL({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ef.idRegex.x.toString(),Ef.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ef.idRegex.x.toString(),Ef.idRegex.y.toString()],editType:"calc"},rangebreaks:PL("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Bfe,Ofe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Ife},editType:"calc"}),tickmode:zfe,nticks:IL(),tick0:OL,dtick:BL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:zL,ticktext:{valType:"data_array",editType:"ticks"},ticks:GL,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:UL(),tickwidth:HL(),tickcolor:VL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:E4({},ZL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:qL({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:NL("tick label")},tickformatstops:PL("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:NL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:kd.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:XL,gridcolor:YL,gridwidth:WL(),griddash:jL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:kd.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:kd.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ef.idRegex.x.toString(),Ef.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ef.idRegex.x.toString(),Ef.idRegex.y.toString()],editType:"plot"},minor:{tickmode:S4,nticks:IL("minor"),tick0:OL,dtick:BL,tickvals:zL,ticks:GL,ticklen:UL("minor"),tickwidth:HL("minor"),tickcolor:VL,gridcolor:YL,gridwidth:WL("minor"),griddash:jL,showgrid:XL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var F2=N((rLe,KL)=>{"use strict";var vn=Vl(),JL=Ui(),QL=Un().extendFlat,Gfe=Fs().overrideAll;KL.exports=Gfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:vn.linecolor,outlinewidth:vn.linewidth,bordercolor:vn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:vn.minor.tickmode,nticks:vn.nticks,tick0:vn.tick0,dtick:vn.dtick,tickvals:vn.tickvals,ticktext:vn.ticktext,ticks:QL({},vn.ticks,{dflt:""}),ticklabeloverflow:QL({},vn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:vn.ticklen,tickwidth:vn.tickwidth,tickcolor:vn.tickcolor,ticklabelstep:vn.ticklabelstep,showticklabels:vn.showticklabels,labelalias:vn.labelalias,tickfont:JL({}),tickangle:vn.tickangle,tickformat:vn.tickformat,tickformatstops:vn.tickformatstops,tickprefix:vn.tickprefix,showtickprefix:vn.showtickprefix,ticksuffix:vn.ticksuffix,showticksuffix:vn.showticksuffix,separatethousands:vn.separatethousands,exponentformat:vn.exponentformat,minexponent:vn.minexponent,showexponent:vn.showexponent,title:{text:{valType:"string"},font:JL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Nh=N((aLe,rD)=>{"use strict";var Ufe=F2(),Hfe=fd().counter,Vfe=u2(),eD=Ah().scales,tLe=Vfe(eD);function q2(e){return"`"+e+"`"}rD.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?eD[t.colorscaleDflt]:null,s=t.editTypeOverride||"",f=r?r+".":"",u,c;"colorAttr"in t?(u=t.colorAttr,c=t.colorAttr):(u={z:"z",c:"color"}[a],c="in "+q2(f+u));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",b=q2(f+d),T=q2(f+p),_=q2(f+m),x=T+" and "+_,A={};A[p]=A[m]=void 0;var E={};E[d]=!1;var M={};return u==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Ufe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Hfe("coloraxis"),dflt:null,editType:"calc"}),M}});var C4=N((nLe,tD)=>{"use strict";var Yfe=Un().extendFlat,Wfe=Nh(),k4=Ah().scales;tD.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:k4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:k4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:k4.RdBu,editType:"calc"}},coloraxis:Yfe({_isSubplotObj:!0,editType:"calc"},Wfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var L4=N((iLe,aD)=>{"use strict";var jfe=zr();aD.exports=function(r){return jfe.isPlainObject(r.colorbar)}});var F4=N(R4=>{"use strict";var D4=_a(),nD=zr(),iD=ri(),Xfe=iD.ONEDAY,Zfe=iD.ONEWEEK;R4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Xfe:1;if(!e)return i;if(D4(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=D4(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};R4.tick0=function(e,r,t,a){if(r==="date")return nD.cleanDate(e,nD.dateTick0(t,a%Zfe===0?1:0));if(!(a==="D1"||a==="D2"))return D4(e)?Number(e):0}});var q4=N((lLe,lD)=>{"use strict";var oD=F4(),$fe=zr().isArrayOrTypedArray,Jfe=Po().isTypedArraySpec,Qfe=Po().decodeTypedArraySpec;lD.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,f=o?"minor.":"";function u(T){var _=l[T];return Jfe(_)&&(_=Qfe(_)),_!==void 0?_:(s._template||{})[T]}var c=u("tick0"),v=u("dtick"),d=u("tickvals"),p=$fe(d)?"array":v?"linear":"auto",m=a(f+"tickmode",p);if(m==="auto"||m==="sync")a(f+"nticks");else if(m==="linear"){var y=s.dtick=oD.dtick(v,n);s.tick0=oD.tick0(c,n,t.calendar,y)}else if(n!=="multicategory"){var b=a(f+"tickvals");b===void 0?s.tickmode="auto":o||a("ticktext")}}});var N4=N((sLe,fD)=>{"use strict";var P4=zr(),sD=Vl();fD.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?sD.minor:sD,f=i?"minor.":"",u=P4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=P4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=P4.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(f+"ticks",!i&&n.outerTicks||u||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var I4=N((fLe,uD)=>{"use strict";uD.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var bl=N((uLe,cD)=>{"use strict";var P2=zr(),Kfe=$a();cD.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=P2.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],f=Kfe.arrayTemplater(t,n,i),u,c;for(u=0;u{"use strict";var O4=zr(),eue=va().contrast,vD=Vl(),rue=I4(),tue=bl();hD.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");O4.isPlainObject(o)||delete t.labelalias;var l=rue(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var f=i.font||{},u=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?eue(i.bgColor):u&&u!==vD.color.dflt?u:f.color;if(O4.coerceFont(a,"tickfont",f,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");tue(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:aue}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function aue(e,r){function t(n,i){return O4.coerce(e,r,vD.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var z4=N((vLe,dD)=>{"use strict";var nue=I4();dD.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=nue(r),s=a("tickprefix");s&&a("showtickprefix",l);var f=a("ticksuffix",o);f&&a("showticksuffix",l)}});var G4=N((hLe,pD)=>{"use strict";var jc=zr(),iue=$a(),oue=q4(),lue=N4(),sue=B4(),fue=z4(),uue=F2();pD.exports=function(r,t,a){var n=iue.newContainer(t,"colorbar"),i=r.colorbar||{};function o(O,F){return jc.coerce(i,n,uue,O,F)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,f=a.height-l.t-l.b,u=o("orientation"),c=u==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:f):30);var d=o("lenmode");o("len",d==="fraction"?1:c?f:s);var p=o("yref"),m=o("xref"),y=p==="paper",b=m==="paper",T,_,x,A="left";c?(x="middle",A=b?"left":"right",T=b?1.02:1,_=.5):(x=y?"bottom":"top",A="center",T=.5,_=y?1.02:1),jc.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),jc.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:_}},"y"),o("xanchor",A),o("xpad"),o("yanchor",x),o("ypad"),jc.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var E=jc.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":"hide past div"),oue(i,n,o,"linear");var M=a.font,k={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};E.indexOf("inside")!==-1&&(k.bgColor="black"),fue(i,n,o,"linear",k),sue(i,n,o,"linear",k),lue(i,n,o,"linear",k),o("title.text",a._dfltTitle.colorbar);var R=n.showticklabels?n.tickfont:M,P=jc.extendFlat({},M,{family:R.family,size:jc.bigFont(R.size)});jc.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var Cd=N((dLe,gD)=>{"use strict";var yD=_a(),H4=zr(),cue=L4(),vue=G4(),mD=Ah().isValid,hue=Bt().traceIs;function U4(e,r){var t=r.slice(0,r.length-1);return r?H4.nestedProperty(e,t).get()||{}:e}gD.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,f=U4(r,o),u=U4(t,o),c=U4(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=hue(t,"contour")&&H4.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,H4.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[v]];return}}var b=f[l+"min"],T=f[l+"max"],_=yD(b)&&yD(T)&&b{"use strict";var bD=zr(),due=$a(),xD=C4(),pue=Cd();_D.exports=function(r,t){function a(c,v){return bD.coerce(r,t,xD,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return bD.coerce(i,o,xD.coloraxis,c,v)}for(var s in n){var f=n[s];if(f[0])i=r[s]||{},o=due.newContainer(t,s,"coloraxis"),o._name=s,pue(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var u=0;u{"use strict";var yue=zr(),mue=Is().hasColorscale,gue=Is().extractOpts;AD.exports=function(r,t){function a(u,c){var v=u["_"+c];v!==void 0&&(u[c]=v)}function n(u,c){var v=c.container?yue.nestedProperty(u,c.container).get():u;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=gue(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var MD=_a(),V4=zr(),bue=Is().extractOpts;SD.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?V4.nestedProperty(t,o).get():t,s=bue(l),f=s.auto!==!1,u=s.min,c=s.max,v=s.mid,d=function(){return V4.aggNums(Math.min,null,i)},p=function(){return V4.aggNums(Math.max,null,i)};if(u===void 0?u=d():f&&(l._colorAx&&MD(u)?u=Math.min(u,d()):u=d()),c===void 0?c=p():f&&(l._colorAx&&MD(c)?c=Math.max(c,p()):c=p()),f&&v!==void 0&&(c-v>v-u?u=v-(c-v):c-v=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var Dd=N((gLe,ED)=>{"use strict";var N2=Ah(),Ld=Is();ED.exports={moduleType:"component",name:"colorscale",attributes:Nh(),layoutAttributes:C4(),supplyLayoutDefaults:wD(),handleDefaults:Cd(),crossTraceDefaults:TD(),calc:Y4(),scales:N2.scales,defaultScale:N2.defaultScale,getScale:N2.get,isValidScale:N2.isValid,hasColorscale:Ld.hasColorscale,extractOpts:Ld.extractOpts,extractScale:Ld.extractScale,flipScale:Ld.flipScale,makeColorScaleFunc:Ld.makeColorScaleFunc,makeColorScaleFuncFromTrace:Ld.makeColorScaleFuncFromTrace}});var Ni=N((bLe,CD)=>{"use strict";var kD=zr(),xue=Po().isTypedArraySpec;CD.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return kD.isPlainObject(r)&&(kD.isArrayOrTypedArray(r.size)||xue(r.size))}}});var W4=N((xLe,LD)=>{"use strict";var _ue=_a();LD.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return _ue(s)&&s>0?Math.max(s,i):0}}});var Nu=N(io=>{"use strict";var I2=zr();io.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};io.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{FD.exports=Sue;var j4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Mue=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Sue(e){var r=[];return e.replace(Mue,function(t,a,n){var i=a.toLowerCase();for(n=kue(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==j4[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var Cue=hy(),lt=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Xt="M0,0Z",qD=Math.sqrt(2),Xc=Math.sqrt(3),X4=Math.PI,Z4=Math.cos,$4=Math.sin;BD.exports={circle:{n:0,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?$t(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return $t(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.3,2);return $t(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.4,2),n=lt(e*1.2,2);return $t(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.8/qD,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return $t(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/Xc,2),n=lt(e/2,2),i=lt(e,2);return $t(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/Xc,2),n=lt(e/2,2),i=lt(e,2);return $t(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/Xc,2),n=lt(e/2,2),i=lt(e,2);return $t(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/Xc,2),n=lt(e/2,2),i=lt(e,2);return $t(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return $t(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return $t(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return $t(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return $t(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.951,2),n=lt(e*.588,2),i=lt(-e,2),o=lt(e*-.309,2),l=lt(e*.809,2);return $t(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e/2,2),i=lt(e*Xc/2,2);return $t(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e/2,2),i=lt(e*Xc/2,2);return $t(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.924,2),n=lt(e*.383,2);return $t(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Zt(r))return Xt;var a=e*1.4,n=lt(a*.225,2),i=lt(a*.951,2),o=lt(a*.363,2),l=lt(a*.588,2),s=lt(-a,2),f=lt(a*-.309,2),u=lt(a*.118,2),c=lt(a*.809,2),v=lt(a*.382,2);return $t(r,t,"M"+n+","+f+"H"+i+"L"+o+","+u+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+u+"L-"+i+","+f+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.66,2),n=lt(e*.38,2),i=lt(e*.76,2);return $t(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*Xc*.8,2),n=lt(e*.8,2),i=lt(e*1.6,2),o=lt(e*4,2),l="A "+o+","+o+" 0 0 1 ";return $t(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*Xc*.8,2),n=lt(e*.8,2),i=lt(e*1.6,2),o=lt(e*4,2),l="A "+o+","+o+" 0 0 1 ";return $t(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.1,2),n=lt(e*2,2),i="A "+n+","+n+" 0 0 1 ";return $t(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2),n=lt(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return $t(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.7,2),n=lt(e*1.4,2);return $t(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2),n=lt(e*.7,2);return $t(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return $t(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return $t(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return $t(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e/qD,2);return $t(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return $t(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return $t(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.3,2);return $t(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.3,2),n=lt(e*.65,2);return $t(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2);return $t(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return $t(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*.85,2);return $t(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e/2,2),n=lt(e,2);return $t(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return $t(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return $t(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return $t(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return $t(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2);return $t(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2);return $t(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return $t(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return $t(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return $t(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return $t(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return $t(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return $t(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return $t(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return $t(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return $t(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return $t(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Zt(r))return Xt;var a=X4/2.5,n=2*e*Z4(a),i=2*e*$4(a);return $t(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Zt(r))return Xt;var a=X4/4,n=2*e*Z4(a),i=2*e*$4(a);return $t(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Zt(e){return e===null}var PD,ND,ID,OD;function $t(e,r,t){if((!e||e%360===0)&&!r)return t;if(ID===e&&OD===r&&PD===t)return ND;ID=e,OD=r,PD=t;function a(y,b){var T=Z4(y),_=$4(y),x=b[0],A=b[1]+(r||0);return[x*T-A*_,x*_+A*T]}for(var n=e/180*X4,i=0,o=0,l=Cue(t),s="",f=0;f{"use strict";var wi=ca(),Ua=zr(),Lue=Ua.numberFormat,zh=_a(),tw=Ls(),B2=Bt(),Hi=va(),Due=Dd(),py=Ua.strTranslate,z2=no(),Rue=Wc(),Fue=ao(),que=Fue.LINE_SPACING,$D=sd().DESELECTDIM,Pue=Ni(),Nue=W4(),Iue=Nu().appendArrayPointValue,gt=oR.exports={};gt.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,f=r.lineposition,u=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Hi.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),u&&e.style("text-transform",J4(Bue(u))),s&&e.style("text-shadow",s==="auto"?z2.makeTextShadow(Hi.contrast(i)):J4(s)),f&&e.style("text-decoration-line",J4(zue(f)))};function J4(e){return e==="none"?void 0:e}var Oue={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Bue(e){return Oue[e]}function zue(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}gt.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};gt.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};gt.setRect=function(e,r,t,a,n){e.call(gt.setPosition,r,t).call(gt.setSize,a,n)};gt.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(zh(n)&&zh(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",py(n,i));else return!1;return!0};gt.translatePoints=function(e,r,t){e.each(function(a){var n=wi.select(this);gt.translatePoint(a,n,r,t)})};gt.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};gt.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=B2.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(f){gt.hideOutsideRangePoint(f,wi.select(this),t,a,o,l)})})}};gt.crispRound=function(e,r,t){return!r||!zh(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};gt.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Hi.stroke(r,a||i.color),gt.dashLine(r,l,o)};gt.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";wi.select(this).call(Hi.stroke,t||i.color).call(gt.dashLine,l,o)})};gt.dashLine=function(e,r,t){t=+t||0,r=gt.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};gt.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function JD(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=gt.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),f=o(n.fgcolor,0,null),u=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;gt.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,f,u)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;p==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(eR,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(gt.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Hi.fill,r.fillcolor)}gt.singleFillStyle=function(e,r){var t=wi.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};JD(e,n,r,!1)};gt.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=wi.select(this);a[0].trace&&JD(n,a[0].trace,r,t)})};var GD=zD();gt.symbolNames=[];gt.symbolFuncs=[];gt.symbolBackOffs=[];gt.symbolNeedLines={};gt.symbolNoDot={};gt.symbolNoFill={};gt.symbolList=[];Object.keys(GD).forEach(function(e){var r=GD[e],t=r.n;gt.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),gt.symbolNames[t]=e,gt.symbolFuncs[t]=r.f,gt.symbolBackOffs[t]=r.backoff||0,r.needLine&&(gt.symbolNeedLines[t]=!0),r.noDot?gt.symbolNoDot[t]=!0:gt.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(gt.symbolNoFill[t]=!0)});var Gue=gt.symbolNames.length,Uue="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";gt.symbolNumber=function(e){if(zh(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=gt.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Gue||e>=400?0:Math.floor(Math.max(e,0))};function QD(e,r,t,a){var n=e%100;return gt.symbolFuncs[n](r,t,a)+(e>=200?Uue:"")}var UD=Lue("~f"),KD={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};gt.gradient=function(e,r,t,a,n,i){var o=KD[a];return eR(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function eR(e,r,t,a,n,i,o,l,s,f){var u=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:f}:a==="radial"&&(c={node:"radialGradient",reversed:f});for(var v=new Array(u),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var f=gt.symbolNumber(e.mx||o.symbol)||0;e.om=f%200>=100;var u=iw(e,t),c=nw(e,t);r.attr("d",QD(f,s,u,c))}var v=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):Ua.isArrayOrTypedArray(l.color)?p=Hi.defaultLine:p=l.color,Ua.isArrayOrTypedArray(o.color)&&(d=Hi.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&>.dashLine(r,b,m),e.om)r.call(Hi.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var T=o.gradient,_=e.mgt;_?v=!0:_=T&&T.type,Ua.isArrayOrTypedArray(_)&&(_=_[0],KD[_]||(_=0));var x=o.pattern,A=gt.getPatternAttr,E=x&&(A(x.shape,e.i,"")||A(x.path,e.i,""));if(_&&_!=="none"){var M=e.mgc;M?v=!0:M=T.color;var k=t.uid;v&&(k+="-"+e.i),gt.gradient(r,n,k,_,[[0,M],[1,d]],"fill")}else if(E){var R=!1,P=x.fgcolor;!P&&i&&i.color&&(P=i.color,R=!0);var O=A(P,e.i,i&&i.color||null),F=A(x.bgcolor,e.i,null),H=x.fgopacity,W=A(x.size,e.i,8),ee=A(x.solidity,e.i,.3);R=R||e.mcc||Ua.isArrayOrTypedArray(x.shape)||Ua.isArrayOrTypedArray(x.path)||Ua.isArrayOrTypedArray(x.bgcolor)||Ua.isArrayOrTypedArray(x.fgcolor)||Ua.isArrayOrTypedArray(x.size)||Ua.isArrayOrTypedArray(x.solidity);var te=t.uid;R&&(te+="-"+e.i),gt.pattern(r,"point",n,te,E,W,ee,e.mcc,x.fillmode,F,O,H)}else Ua.isArrayOrTypedArray(d)?Hi.fill(r,d[e.i]):Hi.fill(r,d);m&&Hi.stroke(r,p)}};gt.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=gt.tryColorscale(t,""),r.lineScale=gt.tryColorscale(t,"line"),B2.traceIs(e,"symbols")&&(r.ms2mrc=Pue.isBubble(e)?Nue(e):function(){return(t.size||6)/2}),e.selectedpoints&&Ua.extendFlat(r,gt.makeSelectedPointStyleFns(e)),r};gt.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,f=o.opacity,u=s!==void 0,c=f!==void 0;(Ua.isArrayOrTypedArray(l)||u||c)&&(r.selectedOpacityFn=function(x){var A=x.mo===void 0?n.opacity:x.mo;return x.selected?u?s:A:c?f:$D*A});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var A=x.mcc||v;return x.selected?d||A:p||A});var m=n.size,y=i.size,b=o.size,T=y!==void 0,_=b!==void 0;return B2.traceIs(e,"symbols")&&(T||_)&&(r.selectedSizeFn=function(x){var A=x.mrc||m/2;return x.selected?T?y/2:A:_?b/2:A}),r};gt.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,f=o.color;return r.selectedTextColorFn=function(u){var c=u.tc||l;return u.selected?s||c:f||(s?c:Hi.addOpacity(c,$D))},r};gt.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=gt.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Hi.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",QD(gt.symbolNumber(l),s,iw(o,r),nw(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=wi.select(this),l=0;l0?t:0}gt.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=gt.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=wi.select(this),f=i?Ua.extractOption(l,r,"txt","texttemplate"):Ua.extractOption(l,r,"tx","text");if(!f&&f!==0){s.remove();return}if(i){var u=r._module.formatLabels,c=u?u(l,r,o):{},v={};Iue(v,r,l.i),f=Ua.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:f})}var d=l.tp||r.textposition,p=tR(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(gt.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:m}).text(f).call(z2.convertToTspans,t).call(rR,d,p,l.mrc)})}};gt.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=gt.makeSelectedTextStyleFns(r);e.each(function(a){var n=wi.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=tR(a,r);Hi.fill(n,i);var s=B2.traceIs(r,"bar-like");rR(n,o,l,a.mrc2||a.mrc,s)})}};var HD=.5;gt.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=u&&x<=s)&&(A<=c&&A>=f||A>=c&&A<=f)&&(e=[x,A])}return e}gt.applyBackoff=iR;gt.makeTester=function(){var e=Ua.ensureSingleById(wi.select("body"),"svg","js-plotly-tester",function(t){t.attr(Rue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Ua.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});gt.tester=e,gt.testref=r};gt.savedBBoxes={};var K4=0,Yue=1e4;gt.bBox=function(e,r,t){t||(t=VD(e));var a;if(t){if(a=gt.savedBBoxes[t],a)return Ua.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=VD(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=gt.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=gt.savedBBoxes[t],a)return Ua.extendFlat({},a)}}var f,u;r?f=e:(u=gt.tester.node(),f=e.cloneNode(!0),u.appendChild(f)),wi.select(f).attr("transform",null).call(z2.positionText,0,0);var c=f.getBoundingClientRect(),v=gt.testref.node().getBoundingClientRect();r||u.removeChild(f);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return K4>=Yue&&(gt.savedBBoxes={},K4=0),t&&(gt.savedBBoxes[t]=d),K4++,Ua.extendFlat({},d)};function VD(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}gt.setClipUrl=function(e,r,t){e.attr("clip-path",aw(r,t))};function aw(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}gt.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};gt.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=py(r,t),o=o.trim(),e[i]("transform",o),o};gt.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};gt.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Wue=/\s*sc.*/;gt.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Wue,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var jue=/translate\([^)]*\)\s*$/;gt.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=wi.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(jue);r===1&&t===1?a=[]:a=[py(o,l),"scale("+r+","+t+")",py(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function nw(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}gt.getMarkerStandoff=nw;var dy=Math.atan2,Ih=Math.cos,Fd=Math.sin;function YD(e,r){var t=r[0],a=r[1];return[t*Ih(e)-a*Fd(e),t*Fd(e)+a*Ih(e)]}var WD,jD,XD,ZD,ew,rw;function iw(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||Ua.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var f=e.lonlat[0],u=e.lonlat[1],c=r._geo.project([f,u+1e-5]),v=r._geo.project([f+1e-5,u]),d=dy(v[1]-n,v[0]-a),p=dy(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=f/180*Math.PI,b=u/180*Math.PI,T=WD/180*Math.PI,_=jD/180*Math.PI,x=T-y,A=Ih(_)*Fd(x),E=Fd(_)*Ih(b)-Ih(_)*Fd(b)*Ih(x);m=-dy(A,E)-Math.PI,WD=f,jD=u}var M=YD(d,[Ih(m),0]),k=YD(p,[Fd(m),0]);t=dy(M[1]+k[1],M[0]+k[0])/Math.PI*180,i==="previous"&&!(rw===r.uid&&e.i===ew+1)&&(t=null)}if(i==="previous"&&!r._geo)if(rw===r.uid&&e.i===ew+1&&zh(a)&&zh(n)){var R=a-XD,P=n-ZD,O=r.line&&r.line.shape||"",F=O.slice(O.length-1);F==="h"&&(P=0),F==="v"&&(R=0),t+=dy(P,R)/Math.PI*180+90}else t=null}return XD=a,ZD=n,ew=e.i,rw=r.uid,t}gt.getMarkerAngle=iw});var yy=N((MLe,uR)=>{"use strict";var qd=ca(),Xue=_a(),Zue=_i(),ow=Bt(),Gh=zr(),lR=Gh.strTranslate,G2=Va(),U2=va(),Pd=no(),sR=sd(),$ue=ao().OPPOSITE_SIDE,fR=/ [XY][0-9]* /,lw=1.6,sw=1.6;function Jue(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},f=t.attributes,u=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,y=d&&d.font?d.font:{},b=y.family,T=y.size,_=y.color,x=y.weight,A=y.style,E=y.variant,M=y.textcase,k=y.lineposition,R=y.shadow,P=t.subtitlePropName,O=!!P,F=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},W=(H.text||"").trim(),ee=!1,te=1,Q=H.font,$=Q.family,j=Q.size,se=Q.color,le=Q.weight,Ee=Q.style,Ge=Q.variant,Le=Q.textcase,Ue=Q.lineposition,xe=Q.shadow,ur;i==="title.text"?ur="titleText":i.indexOf("axis")!==-1?ur="axisTitleText":i.indexOf("colorbar")!==-1&&(ur="colorbarTitleText");var Oe=e._context.edits[ur];function He(Hr,at){return Hr===void 0||at===void 0?!1:Hr.replace(fR," % ")===at.replace(fR," % ")}p===""?v=0:He(p,o)&&(Oe||(p=""),v=.2,m=!0),O&&(W===""?te=0:He(W,F)&&(Oe||(W=""),te=.2,ee=!0)),t._meta?p=Gh.templateString(p,t._meta):a._meta&&(p=Gh.templateString(p,a._meta));var xr=p||W||Oe,Ye;c||(c=Gh.ensureSingle(a._infolayer,"g","g-"+r),Ye=a._hColorbarMoveTitle);var re=c.selectAll("text."+r).data(xr?[0]:[]);re.enter().append("text"),re.text(p).attr("class",r),re.exit().remove();var de=null,ne=r+"-subtitle",Re=W||Oe;if(O&&(de=c.selectAll("text."+ne).data(Re?[0]:[]),de.enter().append("text"),de.text(W).attr("class",ne),de.exit().remove()),!xr)return c;function Je(Hr,at){Gh.syncOrAsync([Ke,Cr],{title:Hr,subtitle:at})}function Ke(Hr){var at=Hr.title,wr=Hr.subtitle,Vr;!u&&Ye&&(u={}),u?(Vr="",u.rotate&&(Vr+="rotate("+[u.rotate,f.x,f.y]+")"),(u.offset||Ye)&&(Vr+=lR(0,(u.offset||0)-(Ye||0)))):Vr=null,at.attr("transform",Vr);function rt(tr){if(tr){var sr=qd.select(tr.node().parentNode).select("."+ne);if(!sr.empty()){var Gr=tr.node().getBBox();if(Gr.height){var nt=Gr.y+Gr.height+lw*j;sr.attr("y",nt)}}}}if(at.style("opacity",v*U2.opacity(_)).call(G2.font,{color:U2.rgb(_),size:qd.round(T,2),family:b,weight:x,style:A,variant:E,textcase:M,shadow:R,lineposition:k}).attr(f).call(Pd.convertToTspans,e,rt),wr&&!wr.empty()){var Pe=c.select("."+r+"-math-group"),or=at.node().getBBox(),st=Pe.node()?Pe.node().getBBox():void 0,kt=st?st.y+st.height+lw*j:or.y+or.height+sw*j,Tr=Gh.extendFlat({},f,{y:kt});wr.attr("transform",Vr),wr.style("opacity",te*U2.opacity(se)).call(G2.font,{color:U2.rgb(se),size:qd.round(j,2),family:$,weight:le,style:Ee,variant:Ge,textcase:Le,shadow:xe,lineposition:Ue}).attr(Tr).call(Pd.convertToTspans,e)}return Zue.previousPromises(e)}function Cr(Hr){var at=Hr.title,wr=qd.select(at.node().parentNode);if(s&&s.selection&&s.side&&p){wr.attr("transform",null);var Vr=$ue[s.side],rt=s.side==="left"||s.side==="top"?-1:1,Pe=Xue(s.pad)?s.pad:2,or=G2.bBox(wr.node()),st={t:0,b:0,l:0,r:0},kt=e._fullLayout._reservedMargin;for(var Tr in kt)for(var tr in kt[Tr]){var sr=kt[Tr][tr];st[tr]=Math.max(st[tr],sr)}var Gr={left:st.l,top:st.t,right:a.width-st.r,bottom:a.height-st.b},nt=s.maxShift||rt*(Gr[s.side]-or[s.side]),Yr=0;if(nt<0)Yr=nt;else{var Wr=s.offsetLeft||0,xt=s.offsetTop||0;or.left-=Wr,or.right-=Wr,or.top-=xt,or.bottom-=xt,s.selection.each(function(){var ot=G2.bBox(this);Gh.bBoxIntersect(or,ot,Pe)&&(Yr=Math.max(Yr,rt*(ot[s.side]-or[Vr])+Pe))}),Yr=Math.min(nt,Yr),n._titleScoot=Math.abs(Yr)}if(Yr>0||nt<0){var jr={left:[-Yr,0],right:[Yr,0],top:[0,-Yr],bottom:[0,Yr]}[s.side];wr.attr("transform",lR(jr[0],jr[1]))}}}re.call(Je,de);function Ar(Hr,at){Hr.text(at).on("mouseover.opacity",function(){qd.select(this).transition().duration(sR.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){qd.select(this).transition().duration(sR.HIDE_PLACEHOLDER).style("opacity",0)})}if(Oe&&(p?re.on(".opacity",null):(Ar(re,o),m=!0),re.call(Pd.makeEditable,{gd:e}).on("edit",function(Hr){l!==void 0?ow.call("_guiRestyle",e,i,Hr,l):ow.call("_guiRelayout",e,i,Hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(Hr){this.text(Hr||" ").call(Pd.positionText,f.x,f.y)}),O)){if(O&&!p){var gr=re.node().getBBox(),et=gr.y+gr.height+sw*j;de.attr("y",et)}W?de.on(".opacity",null):(Ar(de,F),ee=!0),de.call(Pd.makeEditable,{gd:e}).on("edit",function(Hr){ow.call("_guiRelayout",e,"title.subtitle.text",Hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(Hr){this.text(Hr||" ").call(Pd.positionText,de.attr("x"),de.attr("y"))})}return re.classed("js-placeholder",m),de&&!de.empty()&&de.classed("js-placeholder",ee),c}uR.exports={draw:Jue,SUBTITLE_PADDING_EM:sw,SUBTITLE_PADDING_MATHJAX_EM:lw}});var $2=N((SLe,pR)=>{"use strict";var Que=ca(),Kue=nd().utcFormat,Ja=zr(),ece=Ja.numberFormat,kf=_a(),Zc=Ja.cleanNumber,rce=Ja.ms2DateTime,cR=Ja.dateTime2ms,Cf=Ja.ensureNumber,vR=Ja.isArrayOrTypedArray,$c=ri(),H2=$c.FP_SAFE,Os=$c.BADNUM,tce=$c.LOG_CLIP,ace=$c.ONEWEEK,V2=$c.ONEDAY,Y2=$c.ONEHOUR,hR=$c.ONEMIN,dR=$c.ONESEC,W2=En(),Z2=ci(),j2=Z2.HOUR_PATTERN,X2=Z2.WEEKDAY_PATTERN;function my(e){return Math.pow(10,e)}function fw(e){return e!=null}pR.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,A){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&A&&r.range&&r.range.length===2){var E=r.range[0],M=r.range[1];return .5*(E+M-2*tce*Math.abs(E-M))}else return Os}function o(x,A,E,M){if((M||{}).msUTC&&kf(x))return+x;var k=cR(x,E||r.calendar);if(k===Os)if(kf(x)){x=+x;var R=Math.floor(Ja.mod(x+.05,1)*10),P=Math.round(x-R/10);k=cR(new Date(P))+R/10}else return Os;return k}function l(x,A,E){return rce(x,A,E||r.calendar)}function s(x){return r._categories[Math.round(x)]}function f(x){if(fw(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var A=r._categories.length-1;return r._categoriesMap[x]=A,A}return Os}function u(x,A){for(var E=new Array(A),M=0;Mr.range[1]&&(E=!E);for(var M=E?-1:1,k=M*x,R=0,P=0;PF)R=P+1;else{R=k<(O+F)/2?P:P+1;break}}var H=r._B[R]||0;return isFinite(H)?p(x,r._m2,H):0},b=function(x){var A=r._rangebreaks.length;if(!A)return m(x,r._m,r._b);for(var E=0,M=0;Mr._rangebreaks[M].pmax&&(E=M+1);return m(x,r._m2,r._B[E])}}r.c2l=r.type==="log"?i:Cf,r.l2c=r.type==="log"?my:Cf,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(x,A){return y(i(x,A))}:y,r.p2c=r.type==="log"?function(x){return my(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Zc,r.c2d=r.c2r=r.l2d=r.l2r=Cf,r.d2p=r.r2p=function(x){return r.l2p(Zc(x))},r.p2d=r.p2r=b,r.cleanPos=Cf):r.type==="log"?(r.d2r=r.d2l=function(x,A){return i(Zc(x),A)},r.r2d=r.r2c=function(x){return my(Zc(x))},r.d2c=r.r2l=Zc,r.c2d=r.l2r=Cf,r.c2r=i,r.l2d=my,r.d2p=function(x,A){return r.l2p(r.d2r(x,A))},r.p2d=function(x){return my(b(x))},r.r2p=function(x){return r.l2p(Zc(x))},r.p2r=b,r.cleanPos=Cf):r.type==="date"?(r.d2r=r.r2d=Ja.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,A,E){return r.l2p(o(x,0,E))},r.p2d=r.p2r=function(x,A,E){return l(b(x),A,E)},r.cleanPos=function(x){return Ja.cleanDate(x,Os,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=f,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var A=d(x);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=Cf,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Cf(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var A=v(x);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Cf,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Cf(x)},r.setupMultiCategory=function(x){var A=r._traceIndices,E,M,k=r._matchGroup;if(k&&r._categories.length===0){for(var R in k)if(R!==a){var P=t[W2.id2name(R)];A=A.concat(P._traceIndices)}}var O=[[0,{}],[0,{}]],F=[];for(E=0;EP[1]&&(M[R?0:1]=E,k[1]=P[1]),k[0]>=k[1])if(A!==void 0){var O=P[0]+1;E!==void 0&&(O=Math.min(O,P[1])),M[R?0:1]=r.l2r(O)}else E!==void 0&&(M[R?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(x,A){r._cleanRange(x,A),r.limitRange(x)},r._cleanRange=function(x,A){A||(A={}),x||(x="range");var E=Ja.nestedProperty(r,x).get(),M,k;if(r.type==="date"?k=Ja.dfltRange(r.calendar):n==="y"?k=Z2.DFLTRANGEY:r._name==="realaxis"?k=[0,1]:k=A.dfltRange||Z2.DFLTRANGEX,k=k.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(k[0]=0),!E||E.length!==2){Ja.nestedProperty(r,x).set(k);return}var R=E[0]===null,P=E[1]===null;for(r.type==="date"&&!r.autorange&&(E[0]=Ja.cleanDate(E[0],Os,r.calendar),E[1]=Ja.cleanDate(E[1],Os,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Ja.isDateTime(E[M],r.calendar)){r[x]=k;break}if(r.r2l(E[0])===r.r2l(E[1])){var O=Ja.constrain(r.r2l(E[0]),Ja.MIN_MS+1e3,Ja.MAX_MS-1e3);E[0]=r.l2r(O-1e3),E[1]=r.l2r(O+1e3);break}}else{if(!kf(E[M]))if(!(R||P)&&kf(E[1-M]))E[M]=E[1-M]*(M?10:.1);else{r[x]=k;break}if(E[M]<-H2?E[M]=-H2:E[M]>H2&&(E[M]=H2),E[0]===E[1]){var F=Math.max(1,Math.abs(E[0]*1e-6));E[0]-=F,E[1]+=F}}},r.setScale=function(x){var A=t._size;if(r.overlaying){var E=W2.getFromId({_fullLayout:t},r.overlaying);r.domain=E.domain}var M=x&&r._r?"_r":"range",k=r.calendar;r.cleanRange(M);var R=r.r2l(r[M][0],k),P=r.r2l(r[M][1],k),O=n==="y";if(O?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(R-P),r._b=-r._m*P):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-R),r._b=-r._m*R),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,H;if(r._rangebreaks=r.locateBreaks(Math.min(R,P),Math.max(R,P)),r._rangebreaks.length){for(F=0;FP&&(W=!W),W&&r._rangebreaks.reverse();var ee=W?-1:1;for(r._m2=ee*r._length/(Math.abs(P-R)-r._lBreaks),r._B.push(-r._m2*(O?P:R)),F=0;Fk&&(k+=7,Rk&&(k+=24,R=M&&R=M&&x=xe.min&&(Eexe.max&&(xe.max=Ge),Le=!1)}Le&&P.push({min:Ee,max:Ge})}};for(E=0;E{"use strict";var yR=_a(),uw=zr(),nce=ri().BADNUM,J2=uw.isArrayOrTypedArray,ice=uw.isDateTime,oce=uw.cleanNumber,mR=Math.round;bR.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(J2(n)&&!n.length)return"-";if(!i&&cce(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function gR(e){return Math.max(1,(e-1)/1e3)}function uce(e,r){for(var t=e.length,a=gR(t),n=0,i=0,o={},l=0;ln*2}function cce(e){return J2(e[0])&&J2(e[1])}});var Nd=N((kLe,ER)=>{"use strict";var vce=ca(),AR=_a(),Jc=zr(),Q2=ri().FP_SAFE,hce=Bt(),dce=Va(),TR=En(),pce=TR.getFromId,yce=TR.isLinked;ER.exports={applyAutorangeOptions:SR,getAutoRange:vw,makePadFn:hw,doAutoRange:gce,findExtremes:bce,concatExtremes:yw};function vw(e,r){var t,a,n=[],i=e._fullLayout,o=hw(i,r,0),l=hw(i,r,1),s=yw(e,r),f=s.min,u=s.max;if(f.length===0||u.length===0)return Jc.simpleMap(r.range,r.r2l);var c=f[0].val,v=u[0].val;for(t=1;t0&&(P=_-o(E)-l(M),P>x?O/P>A&&(k=E,R=M,A=O/P):O/_>A&&(k={val:E.val,nopad:1},R={val:M.val,nopad:1},A=O/_));function F(Q,$){return Math.max(Q,l($))}if(c===v){var H=c-1,W=c+1;if(b)if(c===0)n=[0,1];else{var ee=(c>0?u:f).reduce(F,0),te=c/(1-Math.min(.5,ee/_));n=c>0?[0,te]:[te,0]}else T?n=[Math.max(0,H),Math.max(1,W)]:n=[H,W]}else b?(k.val>=0&&(k={val:0,nopad:1}),R.val<=0&&(R={val:0,nopad:1})):T&&(k.val-A*o(k)<0&&(k={val:0,nopad:1}),R.val<=0&&(R={val:1,nopad:1})),A=(R.val-k.val-xR(r,E.val,M.val))/(_-o(k)-l(R)),n=[k.val-A*o(k),R.val+A*l(R)];return n=SR(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Jc.simpleMap(n,r.l2r||Number)}function xR(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),E=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),k=x(t.vpadminus||t.vpad);if(!f){if(T=1/0,_=-1/0,s)for(c=0;c0&&(T=v),v>_&&v-Q2&&(T=v),v>_&&v=O;c--)P(c);return{min:a,max:n,opts:t}}function dw(e,r,t,a){MR(e,r,t,a,xce)}function pw(e,r,t,a){MR(e,r,t,a,_ce)}function MR(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(f.extrapad||!o)){l=!1;break}else n(r,f.val)&&f.pad<=t&&(o||!f.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&r===0;e.push({val:r,pad:u?0:t,extrapad:u?!1:o})}}function wR(e){return AR(e)&&Math.abs(e)=r}function wce(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&K2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&K2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Ace(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&K2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&K2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function K2(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=wce(t,r),a=Ace(a,r),[t,a]}});var hn=N((LLe,$R)=>{"use strict";var Yl=ca(),ai=_a(),Id=_i(),by=Bt(),Ot=zr(),Od=Ot.strTranslate,Uh=no(),Tce=yy(),xy=va(),xl=Va(),Mce=Vl(),kR=F4(),CLe=ci(),Vi=ri(),Sce=Vi.ONEMAXYEAR,t3=Vi.ONEAVGYEAR,a3=Vi.ONEMINYEAR,Ece=Vi.ONEMAXQUARTER,xw=Vi.ONEAVGQUARTER,n3=Vi.ONEMINQUARTER,kce=Vi.ONEMAXMONTH,Bd=Vi.ONEAVGMONTH,i3=Vi.ONEMINMONTH,_l=Vi.ONEWEEK,mo=Vi.ONEDAY,Qc=mo/2,Df=Vi.ONEHOUR,_y=Vi.ONEMIN,o3=Vi.ONESEC,Cce=Vi.ONEMILLI,Lce=Vi.ONEMICROSEC,Hh=Vi.MINUS_SIGN,s3=Vi.BADNUM,_w={K:"zeroline"},ww={K:"gridline",L:"path"},Aw={K:"minor-gridline",L:"path"},BR={K:"tick",L:"path"},CR={K:"tick",L:"text"},LR={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},f3=ao(),gy=f3.MID_SHIFT,Vh=f3.CAP_SHIFT,wy=f3.LINE_SPACING,Dce=f3.OPPOSITE_SIDE,l3=3,Qr=$R.exports={};Qr.setConvert=$2();var Rce=cw(),Rf=En(),Fce=Rf.idSort,qce=Rf.isLinked;Qr.id2name=Rf.id2name;Qr.name2id=Rf.name2id;Qr.cleanId=Rf.cleanId;Qr.list=Rf.list;Qr.listIds=Rf.listIds;Qr.getFromId=Rf.getFromId;Qr.getFromTrace=Rf.getFromTrace;var zR=Nd();Qr.getAutoRange=zR.getAutoRange;Qr.findExtremes=zR.findExtremes;var Pce=1e-4;function Ew(e){var r=(e[1]-e[0])*Pce;return[e[0]-r,e[1]+r]}Qr.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",f={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(u){return u+" domain"})),f[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},Ot.coerce(e,r,f,s)};Qr.coerceRefArray=function(e,r,t,a,n,i,o){let l=a.charAt(a.length-1);var s=t._fullLayout._subplots[l+"axis"];let f=a+"ref";var u=e[f];n||(n=s[0]||(typeof i=="string"?i:i[0])),s=s.concat(s.map(v=>v+" domain")),s=s.concat(i||[]),u.length>o?(Ot.warn("Array attribute "+f+" has more entries than expected, truncating to "+o),u=u.slice(0,o)):u.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qr.saveRangeInitial=function(e,r){for(var t=Qr.list(e,"",!0),a=!1,n=0;nc*.3||f(a)||f(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=Qr.tickIncrement(e,"M6","reverse")+mo*1.5:i.exactMonths>o?e=Qr.tickIncrement(e,"M1","reverse")+mo*15.5:e-=Qc;var s=Qr.tickIncrement(e,t);if(s<=a)return s}return e}Qr.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&ai(r._tmin),n;if(a){var i=Qr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Ot.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ot.simpleMap(n,r.l2r),e._isMinor=!0,Qr.prepTicks(e,t),a){var l=ai(r.dtick),s=ai(e.dtick),f=l?r.dtick:+r.dtick.substring(1),u=s?e.dtick:+e.dtick.substring(1);l&&s?mw(f,u)?f===2*_l&&u===2*mo&&(e.dtick=_l):f===2*_l&&u===3*mo?e.dtick=_l:f===_l&&!(r._input.minor||{}).nticks?e.dtick=mo:FR(f/u,2.5)?e.dtick=f/2:e.dtick=f:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":mw(f,u)?f>=12&&u===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?mw(f,u)||(e.dtick=FR(f/u,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0)};function mw(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function FR(e,r){return Math.abs(e/r-1)<.001}Qr.prepTicks=function(e,r){var t=Ot.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Ot.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Ot.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Qr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,f=Math.abs(s-l),u=t||f,c=0;u>=a3?f>=a3&&f<=Sce?c=f:c=t3:t===xw&&u>=n3?f>=n3&&f<=Ece?c=f:c=xw:u>=i3?f>=i3&&f<=kce?c=f:c=Bd:t===_l&&u>=_l?c=_l:u>=mo?c=mo:t===Qc&&u>=Qc?c=Qc:t===Df&&u>=Df&&(c=Df);var v;c>=f&&(c=f,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;y_l&&(c=f)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Qr.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Ot.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],f=Ot.simpleMap(r.range,r.r2l,void 0,void 0,t),u=f[1]=(x?0:1);A--){var E=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=A?r:Ot.extendFlat({},r,x?r.minor:{minor:{}});if(E?Qr.prepMinorTicks(M,r,t):Qr.prepTicks(M,t),M.tickmode==="array"){A?(y=[],p=qR(r,!E)):(b=[],m=qR(r,!E));continue}if(M.tickmode==="sync"){y=[],p=Gce(r);continue}var k=Ew(f),R=k[0],P=k[1],O=ai(M.dtick),F=a==="log"&&!(O||M.dtick.charAt(0)==="L"),H=Qr.tickFirst(M,t);if(A){if(r._tmin=H,H=P:ee<=P;ee=Qr.tickIncrement(ee,$,u,n)){if(A&&te++,M.rangebreaks&&!u){if(ee=v)break}if(y.length>d||ee===W)break;W=ee;var j={value:ee};A?(F&&ee!==(ee|0)&&(j.simpleLabel=!0),i>1&&te%i&&(j.skipLabel=!0),y.push(j)):(j.minor=!0,b.push(j))}}if(!b||b.length<3)s=!1;else{var se=(b[2].value-b[1].value)*(l?-1:1);vve(se,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)T=y;else{var le=y.concat(b);o&&y.length&&(le=le.slice(1)),le=le.sort(function(Hr,at){return Hr.value-at.value}).filter(function(Hr,at,wr){return at===0||Hr.value!==wr[at-1].value});var Ee=le.map(function(Hr,at){return Hr.minor===void 0&&!Hr.skipLabel?at:null}).filter(function(Hr){return Hr!==null});Ee.forEach(function(Hr){s.map(function(at){var wr=Hr+at;wr>=0&&wr-1;Ye--){if(y[Ye].drop){y.splice(Ye,1);continue}y[Ye].value=bw(y[Ye].value,r);var Re=r.c2p(y[Ye].value);(re?ne>Re-de:nev||Vrv&&(wr.periodX=v),Vrn&&vt3)r/=t3,a=n(10),e.dtick="M"+12*Lf(r,a,e3);else if(i>Bd)r/=Bd,e.dtick="M"+Lf(r,1,PR);else if(i>mo){if(e.dtick=Lf(r,mo,e._hasDayOfWeekBreaks?[1,2,7,14]:Uce),!t){var o=Qr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ot.dateTick0(e.calendar,2):e.tick0=Ot.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Df?e.dtick=Lf(r,Df,PR):i>_y?e.dtick=Lf(r,_y,NR):i>o3?e.dtick=Lf(r,o3,NR):(a=n(10),e.dtick=Lf(r,a,e3))}else if(e.type==="log"){e.tick0=0;var s=Ot.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var f=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/f,a=n(10),e.dtick="L"+Lf(r,a,e3)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Dw(e)?(e.tick0=0,a=1,e.dtick=Lf(r,a,Hce)):(e.tick0=0,a=n(10),e.dtick=Lf(r,a,e3));if(e.dtick===0&&(e.dtick=1),!ai(e.dtick)&&typeof e.dtick!="string"){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}};function VR(e){var r=e.dtick;if(e._tickexponent=0,!ai(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=mo&&n<=10||r>=mo*15)e._tickround="d";else if(r>=_y&&n<=16||r>=Df)e._tickround="M";else if(r>=o3&&n<=19||r>=_y)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ai(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ai(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),f=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>f&&(zd(e.exponentformat)&&e.exponentformat!=="SI extended"&&!kw(s)||zd(e.exponentformat)&&e.exponentformat==="SI extended"&&!Cw(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Qr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ai(r))return Ot.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Ot.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?HR:UR,s=e+n*.01,f=Ot.roundUp(Ot.mod(s,1),l,t);return Math.floor(s)+Math.log(Yl.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Qr.tickFirst=function(e,r){var t=e.r2l||Number,a=Ot.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?y:null};if(i&&Ot.isArrayOrTypedArray(e.ticktext)){var c=Ot.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(f=0;f"+l;else{var f=Ty(e),u=e._trueSide||e.side;(!f&&u==="top"||f&&u==="bottom")&&(o+="
")}r.text=o}function Yce(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Ay(Math.pow(10,o),e,n,a);else if(ai(i)||s==="D"&&(e.minorloglabels==="complete"||Ot.mod(o+.01,1)<.1)){var f;e.minorloglabels==="complete"&&!(Ot.mod(o+.01,1)<.1)&&(f=!0,r.fontSize*=.75);var u=Math.pow(10,o).toExponential(0),c=u.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||zd(p)&&p!=="SI extended"&&kw(v)||zd(p)&&p==="SI extended"&&Cw(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":Hh)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":Hh)+d:(r.text=Ay(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ot.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Wce(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function jce(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Xce(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Ay(r.x,e,n,a)}function Zce(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=$ce(i);if(o[1]>=100)r.text=Ay(Ot.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=Hh+r.text)}}}else r.text=Ay(r.x,e,n,a)}function $ce(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var WR=["f","p","n","\u03BC","m","","k","M","G","T"],Jce=["q","r","y","z","a",...WR,"P","E","Z","Y","R","Q"],zd=e=>["SI","SI extended","B"].includes(e);function kw(e){return e>14||e<-15}function Cw(e){return e>32||e<-30}function Qce(e,r){return zd(r)?!!(r==="SI extended"&&Cw(e)||r!=="SI extended"&&kw(e)):!1}function Ay(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Qr.getTickFormat(r),f=r.separatethousands;if(a){var u={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ai(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};VR(u),i=(Number(u._tickround)||0)+4,l=u._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,Hh);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":zd(o)&&(e+=o==="SI extended"?Jce[l/3+10]:WR[l/3+5])}return n?Hh+e:e}Qr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Bd}function a(s,f){var u=["L","D"];if(typeof s==typeof f){if(typeof s=="number")return s-f;var c=u.indexOf(s.charAt(0)),v=u.indexOf(f.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(f.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,f,u){var c=u||function(p){return p},v=f[0],d=f[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,f){var u=f[0]===null,c=f[1]===null,v=a(s,f[0])>=0,d=a(s,f[1])<=0;return(u||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(u,1).shift())}});var l={false:{left:0,right:0}};return Ot.syncOrAsync(n.map(function(s){return function(){if(s){var f=Qr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var u=Qr.drawOne(e,f,t);return f._shiftPusher&&Sw(f,f._fullDepth||0,l,!0),f._r=f.range.slice(),f._rl=Ot.simpleMap(f._r,f.r2l),u}}}))};Qr.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,f=r._id,u=f.charAt(0),c=Qr.counterLetter(f),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),Sw(r,p,a,!0),Sw(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=cve(r,a));var m=v[u+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,T=r._mainMirrorPosition,_=r._vals=Qr.calcTicks(r),x=[r.mirror,b,T].join("_");for(i=0;i<_.length;i++)_[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var A={};function E(gr){var et=f+(gr||"tick");return A[et]||(A[et]=tve(r,et,b)),A[et]}if(r.visible){var M=Qr.makeTransTickFn(r),k=Qr.makeTransTickLabelFn(r),R,P,O=r.ticks==="inside",F=r.ticks==="outside";if(r.tickson==="boundaries"){var H=Kce(r,_);P=Qr.clipEnds(r,H),R=O?P:H}else P=Qr.clipEnds(r,_),R=O&&r.ticklabelmode!=="period"?P:_;var W=r._gridVals=P,ee=rve(r,_);if(!s._hasOnlyLargeSploms){var te=r._subplotsWith,Q={};for(i=0;i0?wr.bottom-Hr:0,at))));var or=0,st=0;if(r._shiftPusher&&(or=Math.max(at,wr.height>0?gr==="l"?Hr-wr.left:wr.right-Hr:0),r.title.text!==s._dfltTitle[u]&&(st=(r._titleStandoff||0)+(r._titleScoot||0),gr==="l"&&(st+=OR(r))),r._fullDepth=Math.max(or,st)),r.automargin){Vr={x:0,y:0,r:0,l:0,t:0,b:0};var kt=[0,1],Tr=typeof r._shift=="number"?r._shift:0;if(u==="x"){if(gr==="b"?Vr[gr]=r._depth:(Vr[gr]=r._depth=Math.max(wr.width>0?Hr-wr.top:0,at),kt.reverse()),wr.width>0){var tr=wr.right-(r._offset+r._length);tr>0&&(Vr.xr=1,Vr.r=tr);var sr=r._offset-wr.left;sr>0&&(Vr.xl=0,Vr.l=sr)}}else if(gr==="l"?(r._depth=Math.max(wr.height>0?Hr-wr.left:0,at),Vr[gr]=r._depth-Tr):(r._depth=Math.max(wr.height>0?wr.right-Hr:0,at),Vr[gr]=r._depth+Tr,kt.reverse()),wr.height>0){var Gr=wr.bottom-(r._offset+r._length);Gr>0&&(Vr.yb=0,Vr.b=Gr);var nt=r._offset-wr.top;nt>0&&(Vr.yt=1,Vr.t=nt)}Vr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[kt[0]],r.title.text!==s._dfltTitle[u]&&(Vr[gr]+=OR(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(rt={x:0,y:0,r:0,l:0,t:0,b:0},rt[et]=r.linewidth,r.mirror&&r.mirror!==!0&&(rt[et]+=at),r.mirror===!0||r.mirror==="ticks"?rt[c]=r._anchorAxis.domain[kt[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(rt[c]=[r._counterDomainMin,r._counterDomainMax][kt[1]]))}Ar&&(Pe=by.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(IR(Vr,r.automargin),IR(rt,r.automargin)),Id.autoMargin(e,Lw(r),Vr),Id.autoMargin(e,XR(r),rt),Id.autoMargin(e,ZR(r),Pe)}),Ot.syncOrAsync(Ke)}};function IR(e,r){if(e){var t=Object.keys(LR).reduce(function(a,n){return r.indexOf(n)!==-1&&LR[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Kce(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Ot.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var f=o?-1:1;t=t*f}if(a){var u=e.side,c=l&&(u==="top"||u==="left")||s&&(u==="bottom"||u==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Od(n+e._offset+e.l2p(Tw(v))+t,i+a)}:function(v){return Od(i+a,n+e._offset+e.l2p(Tw(v))+t)}};function Tw(e){return e.periodX!==void 0?e.periodX:e.x}function ave(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),f=t!=="boundaries"&&(l||i||n||o);if(!f&&!s)return[0,0];var u=e.side,c=f?(e.tickwidth||0)/2:0,v=l3,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*Vh,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=l3),s&&u==="top"&&(v-=d*(1-Vh)),(i||n)&&(c=-c),(u==="bottom"||u==="right")&&(v=-v),[f?c:0,s?v:0]}Qr.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Qr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},o=i("top"),l=i("left"),s=i("right"),f=i("bottom"),u=n!=="boundaries"&&(f||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:u&&(m=0),v&&(d+=m,t)){var y=Ot.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},T,_,x,A,E=0,M=e.side,k=e._id.charAt(0),R=e.tickangle,P;if(k==="x")P=!c&&M==="bottom"||c&&M==="top",A=P?1:-1,c&&(A*=-1),T=p*A,_=r+d*A,x=P?1:-.2,Math.abs(R)===90&&(c?x+=gy:R===-90&&M==="bottom"?x=Vh:R===90&&M==="top"?x=gy:x=.5,E=gy/2*(R/90)),b.xFn=function(H){return H.dx+T+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*x},b.anchorFn=function(H,W){if(u){if(l)return"end";if(s)return"start"}return!ai(W)||W===0||W===180?"middle":W*A<0!==c?"end":"start"},b.heightFn=function(H,W,ee){return W<-60||W>60?-.5*ee:e.side==="top"!==c?-ee:0};else if(k==="y"){if(P=!c&&M==="left"||c&&M==="right",A=P?1:-1,c&&(A*=-1),T=d,_=p*A,x=0,!c&&Math.abs(R)===90&&(R===-90&&M==="left"||R===90&&M==="right"?x=Vh:x=.5),c){var O=ai(R)?+R:0;if(O!==0){var F=Ot.deg2rad(O);E=Math.abs(Math.sin(F))*Vh*A,x=0}}b.xFn=function(H){return H.dx+r-(T+H.fontSize*x)*A+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*gy},b.anchorFn=function(H,W){return ai(W)&&Math.abs(W)===90?"middle":P?"end":"start"},b.heightFn=function(H,W,ee){return e.side==="right"&&(W*=-1),W<-30?-ee:W<30?-.5*ee:0}}return b};function u3(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qr.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,u3);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return xy.stroke(Yl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return xl.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),c3(r,[BR]),i.attr("transform",t.transFn)};Qr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&Qr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",f=0;f=0;p--){var m=p?v:d;if(m){var y=m.selectAll("path."+a).data(p?o:i,u3);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return xy.stroke(Yl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return xl.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}c3(r,[ww,Aw])}};Qr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Qr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Fce(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(xy.stroke,r.zerolinecolor||xy.defaultLine).style("stroke-width",xl.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),c3(r,[_w])};Qr.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(j){return j.text}),s=t.labelFns,f=t.secondary?0:r.tickangle,u=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],u3),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var se=Yl.select(this),le=e._promises.length;se.call(Uh.positionText,s.xFn(j),s.yFn(j)).call(xl.font,{family:j.font,size:j.fontSize,color:j.fontColor,weight:j.fontWeight,style:j.fontStyle,variant:j.fontVariant,textcase:j.fontTextcase,lineposition:j.fontLineposition,shadow:j.fontShadow}).text(j.text).call(Uh.convertToTspans,e),e._promises[le]?v.push(e._promises.pop().then(function(){d(se,f)})):d(se,f)}),c3(r,[CR]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(j){Yl.select(this).select("text").call(Uh.positionText,s.xFn(j),s.yFn(j))});function d(j,se){j.each(function(le){var Ee=Yl.select(this),Ge=Ee.select(".text-math-group"),Le=s.anchorFn(le,se),Ue=t.transFn.call(Ee.node(),le)+(ai(se)&&+se!=0?" rotate("+se+","+s.xFn(le)+","+(s.yFn(le)-le.fontSize/2)+")":""),xe=Uh.lineCount(Ee),ur=wy*le.fontSize,Oe=s.heightFn(le,ai(se)?+se:0,(xe-1)*ur);if(Oe&&(Ue+=Od(0,Oe)),Ge.empty()){var He=Ee.select("text");He.attr({transform:Ue,"text-anchor":Le}),He.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var xr=xl.bBox(Ge.node()).width,Ye=xr*{end:-.5,start:.5}[Le];Ge.attr("transform",Ue+Od(Ye,0))}})}r._adjustTickLabelsOverflow=function(){var j=r.ticklabeloverflow;if(!(!j||j==="allow")){var se=j.indexOf("hide")!==-1,le=r._id.charAt(0)==="x",Ee=0,Ge=le?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var Le=Ot.simpleMap(r.range,r.r2l);Ee=r.l2p(Le[0])+r._offset,Ge=r.l2p(Le[1])+r._offset}var Ue=Math.min(Ee,Ge),xe=Math.max(Ee,Ge),ur=r.side,Oe=1/0,He=-1/0;c.each(function(de){var ne=Yl.select(this),Re=ne.select(".text-math-group");if(Re.empty()){var Je=xl.bBox(ne.node()),Ke=0;le?(Je.right>xe||Je.leftxe||Je.top+(r.tickangle?0:de.fontSize/4)r["_visibleLabelMin_"+Le._id]?ne.style("display","none"):xe.K==="tick"&&!Ue&&ne.node().style.display!=="none"&&ne.style("display",null)})})})})},d(c,u+1?u:f);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(d(c,f),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var j=0,se=[],le,Ee=1;c.each(function(Vr){j=Math.max(j,Vr.fontSize);var rt=r.l2p(Vr.x),Pe=Mw(this),or=xl.bBox(Pe.node());Ee=Math.max(Ee,Uh.lineCount(Pe)),se.push({top:0,bottom:10,height:10,left:rt-or.width/2,right:rt+or.width/2+2,width:or.width+2})});var Ge=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Le=l.length,Ue=Math.abs((l[Le-1].x-l[0].x)*r._m)/(Le-1),xe=Ge?Ue/2:Ue,ur=Ge?r.ticklen:j*1.25*Ee,Oe=Math.sqrt(Math.pow(xe,2)+Math.pow(ur,2)),He=xe/Oe,xr=r.autotickangles.map(function(Vr){return Vr*Math.PI/180}),Ye=xr.find(function(Vr){return Math.abs(Math.cos(Vr))<=He});Ye===void 0&&(Ye=xr.reduce(function(Vr,rt){return Math.abs(Math.cos(Vr))te*ee&&(F=ee,R[k]=P[k]=H[k])}var Q=Math.abs(F-O);Q-A>0?(Q-=A,A*=1+A/Q):A=0,r._id.charAt(0)!=="y"&&(A=-A),R[M]=_.p2r(_.r2p(P[M])+E*A),_.autorange==="min"||_.autorange==="max reversed"?(R[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(R[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=R}var $=Ot.syncOrAsync(b);return $&&$.then&&e._promises.push($),$};function nve(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,u3);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(xy.stroke,r.dividercolor).style("stroke-width",xl.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Qr.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function OR(e){var r=e.title.font.size,t=(e.title.text.match(Uh.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Vh+t*wy):t?r*(t+1)*wy:r}function ive(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(Uh.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*Vh:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(gy+l*wy));else{var s=Ty(r);if(r.type==="multicategory")o=r._depth;else{var f=1.5*i;s&&(f=.5*i,r.ticks==="outside"&&(f+=r.ticklen)),o=10+f+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var u=Qr.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?u-o:u+o):(d=r._offset+r._length/2,v=r.side==="right"?u+o:u-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=xl.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Tce.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Qr.shouldShowZeroLine=function(e,r,t){var a=Ot.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===s3)&&(jR(r,0)||!ove(e,r,t,a)||lve(e,r))};Qr.clipEnds=function(e,r){return r.filter(function(t){return jR(e,t.x)})};function jR(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Lce:/%L/.test(r)?e>=Cce:/%[SX]/.test(r)?e>=o3:/%M/.test(r)?e>=_y:/%[HI]/.test(r)?e>=Df:/%p/.test(r)?e>=Qc:/%[Aadejuwx]/.test(r)?e>=mo:/%[UVW]/.test(r)?e>=_l:/%[Bbm]/.test(r)?e>=i3:/%[q]/.test(r)?e>=n3:/%[Yy]/.test(r)?e>=a3:!0}});var QR=N((DLe,JR)=>{"use strict";JR.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Rw=N((RLe,KR)=>{"use strict";var hve=QR();KR.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var f=t.getAutorangeDflt(l,n),u=a("autorange",f),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(u==="reversed"||u===!0)||l[0]!==null&&(u==="min"||u==="max reversed")||l[1]!==null&&(u==="max"||u==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(f=t.getAutorangeDflt(l,n),u=a("autorange",f)),u&&(hve(a,u,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var rF=N((FLe,eF)=>{var dve={left:0,top:0};eF.exports=pve;function pve(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=yve(r);return t[0]=a-i.left,t[1]=n-i.top,t}function yve(e){return e===window||e===document||e===document.body?dve:e.getBoundingClientRect()}});var Fw=N((qLe,tF)=>{"use strict";var mve=s4();function gve(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}tF.exports=mve&&gve()});var nF=N((PLe,aF)=>{"use strict";aF.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var lF=N((NLe,oF)=>{"use strict";var iF=zr(),bve=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];oF.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=iF.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=iF.constrain(Math.floor(t*3),0,2),bve[t][r]}});var fF=N((ILe,sF)=>{"use strict";var xve=iy(),_ve=h2(),wve=J1().getGraphDiv,Ave=j1(),qw=sF.exports={};qw.wrapped=function(e,r,t){e=wve(e),e._fullLayout&&_ve.clear(e._fullLayout._uid+Ave.HOVERID),qw.raw(e,r,t)};qw.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&xve.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var Bs=N((OLe,hF)=>{"use strict";var Tve=rF(),Pw=u4(),Mve=Fw(),Sve=zr().removeElement,Eve=ci(),Yh=hF.exports={};Yh.align=nF();Yh.getCursor=lF();var cF=fF();Yh.unhover=cF.wrapped;Yh.unhoverRaw=cF.raw;Yh.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,f,u,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,Mve?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(_,x,A){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(A=>{var E=c[A];!x[A]&&typeof E!="function"&&(x[A]=E)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function vF(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Yh.coverSlip=vF;function uF(e){return Tve(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Kc=N((BLe,dF)=>{"use strict";dF.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var mF=N((zLe,yF)=>{"use strict";var Nw=Kc(),My="data-savedcursor",pF="!!";yF.exports=function(r,t){var a=r.attr(My);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var Iw=Ui(),kve=Mf();gF.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:kve.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Iw({editType:"legend"}),grouptitlefont:Iw({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:Iw({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Ey=N(Sy=>{"use strict";Sy.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Sy.isVertical=function(r){return r.orientation!=="h"};Sy.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Sy.getId=function(r){return r._id||"legend"}});var zw=N((HLe,bF)=>{"use strict";var v3=Bt(),wl=zr(),Cve=$a(),Lve=Ds(),Dve=Ow(),Rve=dd(),Bw=Ey();function Fve(e,r,t,a,n){var i=r[e]||{},o=Cve.newContainer(t,e);function l(j,se){return wl.coerce(i,o,Dve,j,se)}var s=wl.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var f=l("visible");if(!f)return;var u,c=function(j,se){var le=u._input,Ee=u;return wl.coerce(le,Ee,Lve,j,se)},v=t.font||{},d=wl.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,m=!1,y="normal",b=(t.shapes||[]).filter(function(j){return j.showlegend});function T(j){return v3.traceIs(j,"pie-like")&&j._length!=null&&(Array.isArray(j.legend)||Array.isArray(j.showlegend))}a.filter(T).forEach(function(j){j.visible&&p++;for(var se=0;sej.legend.length)for(var Ee=j.legend.length;Ee(e==="legend"?1:0));if(E===!1&&(t[e]=void 0),!(E===!1&&!i.uirevision)&&(l("uirevision",t.uirevision),E!==!1)){l("borderwidth");var M=l("orientation"),k=l("yref"),R=l("xref"),P=M==="h",O=k==="paper",F=R==="paper",H,W,ee,te="left";P?(H=0,v3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?O?(W=1.1,ee="bottom"):(W=1,ee="top"):O?(W=-.1,ee="top"):(W=0,ee="bottom")):(W=1,ee="auto",F?H=1.02:(H=1,te="right")),wl.coerce(i,o,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:H}},"x"),wl.coerce(i,o,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:W}},"y"),l("traceorder",y),Bw.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",te),l("yanchor",ee),l("maxheight"),l("valign"),wl.noneOrAll(i,o,["x","y"]);var Q=l("title.text");if(Q){l("title.side",P?"left":"top");var $=wl.extendFlat({},s,{size:wl.bigFont(s.size)});wl.coerceFont(l,"title.font",$);let j=n>1;l("titleclick",j?"toggle":!1),l("titledoubleclick",j?"toggleothers":!1)}}}bF.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var ev=Bt(),Gw=zr(),qve=Gw.pushUnique,Pve=Ey(),xF=!0;Uw.handleItemClick=function(r,t,a,n){var i=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;var l=a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&xF&&t.data&&t._context.showTips&&(Gw.notifier(Gw._(t,"Double-click on legend to isolate one trace"),"long",t),xF=!1);var s=l==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],u=t._fullData;let c=(i.shapes||[]).filter(Ar=>Ar.showlegend||Ar.legendgroup);var v=u.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,m,y,b,T,_,x,A={},E=[],M=[],k=[];function R(Ar,gr){var et=E.indexOf(Ar),Hr=A.visible;return Hr||(Hr=A.visible=[]),E.indexOf(Ar)===-1&&(E.push(Ar),et=E.length-1),Hr[et]=gr,et}var P=(i.shapes||[]).map(function(Ar){return Ar._input}),O=!1;function F(Ar,gr){P[Ar].visible=gr,O=!0}function H(Ar,gr){if(!(o.groupTitle&&!s)){var et=Ar._fullInput||Ar,Hr=et._isShape,at=et.index;at===void 0&&(at=et._index);var wr=et.visible===!1?!1:gr;Hr?F(at,wr):R(at,wr)}}var W=d.legend,ee=d._fullInput,te=ee&&ee._isShape;if(!te&&ev.traceIs(d,"pie-like")){var Q=o.label,$=f.indexOf(Q);if(n==="toggle")$===-1?f.push(Q):f.splice($,1);else if(n==="toggleothers"){var j=$!==-1,se=[];for(m=0;mb.showlegend||b.legendgroup),s=i.concat(l);function f(b){return(b.legend||"legend")===o}var u,c;if(a==="toggle")u=!s.some(function(T){return f(T)&&T.visible===!0}),c=!1;else{let b=s.some(function(T){return!f(T)&&T.visible===!0&&T.showlegend!==!1});u=!0,c=!b}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var m=!1,y=0;y{"use strict";_F.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var TF=N((WLe,AF)=>{"use strict";var{isArrayOrTypedArray:Yw}=Po(),wF=Bt(),Ww=Ey();AF.exports=function(r,t,a){var n=t._inHover,i=Ww.isGrouped(t),o=Ww.isReversed(t),l={},s=[],f=!1,u={},c=0,v=0,d,p;function m(se,le,Ee){if(t.visible!==!1&&!(a&&se!==t._id))if(le===""||!Ww.isGrouped(t)){var Ge="~~i"+c;s.push(Ge),l[Ge]=[Ee],c++}else s.indexOf(le)===-1?(s.push(le),f=!0,l[le]=[Ee]):l[le].push(Ee)}for(d=0;dH&&(O=H)}R[d][0]._groupMinRank=O,R[d][0]._preGroupSort=d}var W=function(se,le){return se[0]._groupMinRank-le[0]._groupMinRank||se[0]._preGroupSort-le[0]._preGroupSort},ee=function(se,le){var Ee=Yw(se.trace.legendrank)?se.trace.legendrank[se.i]:se.trace.legendrank,Ge=Yw(le.trace.legendrank)?le.trace.legendrank[le.i]:le.trace.legendrank;return Ee-Ge||se._preSort-le._preSort};for(R.forEach(function(se,le){se[0]._preGroupSort=le}),R.sort(W),d=0;d{"use strict";var h3=zr();function MF(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Wh.formatPiePercent=function(r,t){var a=MF((r*100).toPrecision(3));return h3.numSeparate(a,t)+"%"};Wh.formatPieValue=function(r,t){var a=MF(r.toPrecision(10));return h3.numSeparate(a,t)};Wh.getFirstFilled=function(r,t){if(h3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Nve=Va(),Ive=va();SF.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Nve.pointStyle(r,a,n,t):Ive.fill(r,t.color)}});var DF=N((ZLe,LF)=>{"use strict";var kF=va(),CF=jw().castOption,Ove=EF();LF.exports=function(r,t,a,n){var i=a.marker.line,o=CF(i.color,t.pts)||kF.defaultLine,l=CF(i.width,t.pts)||0;r.call(Ove,t,a,n).style("stroke-width",l).call(kF.stroke,o)}});var Jw=N(($Le,IF)=>{"use strict";var go=ca(),Xw=Bt(),oo=zr(),RF=oo.strTranslate,Al=Va(),Wl=va(),Zw=Is().extractOpts,d3=Ni(),Bve=DF(),zve=jw().castOption,Gve=Vw(),FF=12,qF=5,jh=2,Uve=10,Gd=5;IF.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Gve.itemGap*2)/2,s=RF(l,0),f=function(M,k,R,P){var O;if(M+1)O=M;else if(k&&k.width>0)O=k.width;else return 0;return i?P:Math.min(O,R)};r.each(function(M){var k=go.select(this),R=oo.ensureSingle(k,"g","layers");R.style("opacity",M[0].trace.opacity);var P=a.indentation,O=a.valign,F=M[0].lineHeight,H=M[0].height;if(O==="middle"&&P===0||!F||!H)R.attr("transform",null);else{var W={top:1,bottom:-1}[O],ee=W*(.5*(F-H+3))||0,te=a.indentation;R.attr("transform",RF(te,ee))}var Q=R.selectAll("g.legendfill").data([M]);Q.enter().append("g").classed("legendfill",!0);var $=R.selectAll("g.legendlines").data([M]);$.enter().append("g").classed("legendlines",!0);var j=R.selectAll("g.legendsymbols").data([M]);j.enter().append("g").classed("legendsymbols",!0),j.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(E).each(v).each(p).each(d).each(y).each(x).each(_).each(u).each(c).each(b).each(T);function u(M){var k=PF(M),R=k.showFill,P=k.showLine,O=k.showGradientLine,F=k.showGradientFill,H=k.anyFill,W=k.anyLine,ee=M[0],te=ee.trace,Q,$,j=Zw(te),se=j.colorscale,le=j.reversescale,Ee=function(He){if(He.size())if(R)Al.fillGroupStyle(He,t,!0);else{var xr="legendfill-"+te.uid;Al.gradient(He,t,xr,$w(le),se,"fill")}},Ge=function(He){if(He.size()){var xr="legendline-"+te.uid;Al.lineGroupStyle(He),Al.gradient(He,t,xr,$w(le),se,"stroke")}},Le=d3.hasMarkers(te)||!H?"M5,0":W?"M5,-2":"M5,-3",Ue=go.select(this),xe=Ue.select(".legendfill").selectAll("path").data(R||F?[M]:[]);if(xe.enter().append("path").classed("js-fill",!0),xe.exit().remove(),xe.attr("d",Le+"h"+o+"v6h-"+o+"z").call(Ee),P||O){var ur=f(void 0,te.line,Uve,qF);$=oo.minExtend(te,{line:{width:ur}}),Q=[oo.minExtend(ee,{trace:$})]}var Oe=Ue.select(".legendlines").selectAll("path").data(P||O?[Q]:[]);Oe.enter().append("path").classed("js-line",!0),Oe.exit().remove(),Oe.attr("d",Le+(O?"l"+o+",0.0001":"h"+o)).call(P?Al.lineGroupStyle:Ge)}function c(M){var k=PF(M),R=k.anyFill,P=k.anyLine,O=k.showLine,F=k.showMarker,H=M[0],W=H.trace,ee=!F&&!P&&!R&&d3.hasText(W),te,Q;function $(xe,ur,Oe,He){var xr=oo.nestedProperty(W,xe).get(),Ye=oo.isArrayOrTypedArray(xr)&&ur?ur(xr):xr;if(i&&Ye&&He!==void 0&&(Ye=He),Oe){if(YeOe[1])return Oe[1]}return Ye}function j(xe){return H._distinct&&H.index&&xe[H.index]?xe[H.index]:xe[0]}if(F||ee||O){var se={},le={};if(F){se.mc=$("marker.color",j),se.mx=$("marker.symbol",j),se.mo=$("marker.opacity",oo.mean,[.2,1]),se.mlc=$("marker.line.color",j),se.mlw=$("marker.line.width",oo.mean,[0,5],jh),se.mld=W._isShape?"solid":$("marker.line.dash",j),le.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Ee=$("marker.size",oo.mean,[2,16],FF);se.ms=Ee,le.marker.size=Ee}O&&(le.line={width:$("line.width",j,[0,10],qF)}),ee&&(se.tx="Aa",se.tp=$("textposition",j),se.ts=10,se.tc=$("textfont.color",j),se.tf=$("textfont.family",j),se.tw=$("textfont.weight",j),se.ty=$("textfont.style",j),se.tv=$("textfont.variant",j),se.tC=$("textfont.textcase",j),se.tE=$("textfont.lineposition",j),se.tS=$("textfont.shadow",j)),te=[oo.minExtend(H,se)],Q=oo.minExtend(W,le),Q.selectedpoints=null,Q.texttemplate=null}var Ge=go.select(this).select("g.legendpoints"),Le=Ge.selectAll("path.scatterpts").data(F?te:[]);Le.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Le.exit().remove(),Le.call(Al.pointStyle,Q,t),F&&(te[0].mrc=3);var Ue=Ge.selectAll("g.pointtext").data(ee?te:[]);Ue.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ue.exit().remove(),Ue.selectAll("text").call(Al.textPointStyle,Q,t)}function v(M){var k=M[0].trace,R=k.type==="waterfall";if(M[0]._distinct&&R){var P=M[0].trace[M[0].dir].marker;return M[0].mc=P.color,M[0].mlw=P.line.width,M[0].mlc=P.line.color,m(M,this,"waterfall")}var O=[];k.visible&&R&&(O=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=go.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(O);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(H){var W=go.select(this),ee=k[H[0]].marker,te=f(void 0,ee.line,Gd,jh);W.attr("d",H[1]).style("stroke-width",te+"px").call(Wl.fill,ee.color),te&&W.call(Wl.stroke,ee.line.color)})}function d(M){m(M,this)}function p(M){m(M,this,"funnel")}function m(M,k,R){var P=M[0].trace,O=P.marker||{},F=O.line||{},H=O.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",W=R?P.visible&&P.type===R:Xw.traceIs(P,"bar"),ee=go.select(k).select("g.legendpoints").selectAll("path.legend"+R).data(W?[M]:[]);ee.enter().append("path").classed("legend"+R,!0).attr("d",H).attr("transform",s),ee.exit().remove(),ee.each(function(te){var Q=go.select(this),$=te[0],j=f($.mlw,O.line,Gd,jh);Q.style("stroke-width",j+"px");var se=$.mcc;if(!a._inHover&&"mc"in $){var le=Zw(O),Ee=le.mid;Ee===void 0&&(Ee=(le.max+le.min)/2),se=Al.tryColorscale(O,"")(Ee)}var Ge=se||$.mc||O.color,Le=O.pattern,Ue=Al.getPatternAttr,xe=Le&&(Ue(Le.shape,0,"")||Ue(Le.path,0,""));if(xe){var ur=Ue(Le.bgcolor,0,null),Oe=Ue(Le.fgcolor,0,null),He=Le.fgopacity,xr=NF(Le.size,8,10),Ye=NF(Le.solidity,.5,1),re="legend-"+P.uid;Q.call(Al.pattern,"legend",t,re,xe,xr,Ye,se,Le.fillmode,ur,Oe,He)}else Q.call(Wl.fill,Ge);j&&Wl.stroke(Q,$.mlc||F.color)})}function y(M){var k=M[0].trace,R=go.select(this).select("g.legendpoints").selectAll("path.legendbox").data(k.visible&&Xw.traceIs(k,"box-violin")?[M]:[]);R.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),R.exit().remove(),R.each(function(){var P=go.select(this);if((k.boxpoints==="all"||k.points==="all")&&Wl.opacity(k.fillcolor)===0&&Wl.opacity((k.line||{}).color)===0){var O=oo.minExtend(k,{marker:{size:i?FF:oo.constrain(k.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(Al.pointStyle,O,t)}else{var F=f(void 0,k.line,Gd,jh);P.style("stroke-width",F+"px").call(Wl.fill,k.fillcolor),F&&Wl.stroke(P,k.line.color)}})}function b(M){var k=M[0].trace,R=go.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(k.visible&&k.type==="candlestick"?[M,M]:[]);R.enter().append("path").classed("legendcandle",!0).attr("d",function(P,O){return O?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(P,O){var F=go.select(this),H=k[O?"increasing":"decreasing"],W=f(void 0,H.line,Gd,jh);F.style("stroke-width",W+"px").call(Wl.fill,H.fillcolor),W&&Wl.stroke(F,H.line.color)})}function T(M){var k=M[0].trace,R=go.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(k.visible&&k.type==="ohlc"?[M,M]:[]);R.enter().append("path").classed("legendohlc",!0).attr("d",function(P,O){return O?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(P,O){var F=go.select(this),H=k[O?"increasing":"decreasing"],W=f(void 0,H.line,Gd,jh);F.style("fill","none").call(Al.dashLine,H.line.dash,W),W&&Wl.stroke(F,H.line.color)})}function _(M){A(M,this,"pie")}function x(M){A(M,this,"funnelarea")}function A(M,k,R){var P=M[0],O=P.trace,F=R?O.visible&&O.type===R:Xw.traceIs(O,R),H=go.select(k).select("g.legendpoints").selectAll("path.legend"+R).data(F?[M]:[]);if(H.enter().append("path").classed("legend"+R,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),H.exit().remove(),H.size()){var W=O.marker||{},ee=f(zve(W.line.width,P.pts),W.line,Gd,jh),te="pieLike",Q=oo.minExtend(O,{marker:{line:{width:ee}}},te),$=oo.minExtend(P,{trace:Q},te);Bve(H,$,Q,t)}}function E(M){var k=M[0].trace,R,P=[];if(k.visible)switch(k.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],R=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],R=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],R="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],R=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],R=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],R=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],R=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],R=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],R=!1;break}var O=go.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);O.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),O.exit().remove(),O.each(function(F,H){var W=go.select(this),ee=Zw(k),te=ee.colorscale,Q=ee.reversescale,$=function(Ee){if(Ee.size()){var Ge="legendfill-"+k.uid;Al.gradient(Ee,t,Ge,$w(Q,R==="radial"),te,"fill")}},j;if(te){if(!R){var le=te.length;j=H===0?te[Q?le-1:0][1]:H===1?te[Q?0:le-1][1]:te[Math.floor((le-1)/2)][1]}}else{var se=k.vertexcolor||k.facecolor||k.color;j=oo.isArrayOrTypedArray(se)?se[H]||se[0]:se}W.attr("d",F[0]),j?W.call(Wl.fill,j):W.call($)})}};function $w(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function PF(e){var r=e[0].trace,t=r.contours,a=d3.hasLines(r),n=d3.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function NF(e,r,t){return e&&oo.isArrayOrTypedArray(e)?r:e>t?t:e}});var rA=N((JLe,WF)=>{"use strict";var No=ca(),Wn=zr(),Kw=_i(),Xh=Bt(),m3=iy(),Qw=Bs(),jn=Va(),ky=va(),Zh=no(),OF=Hw().handleItemClick,BF=Hw().handleTitleClick,ni=Vw(),eA=ao(),VF=eA.LINE_SPACING,Hd=eA.FROM_TL,zF=eA.FROM_BR,GF=TF(),Hve=Jw(),Vd=Ey(),Ud=1,Vve=/^legend[0-9]*$/;WF.exports=function(r,t){if(t)UF(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var f=No.select(this),u=f.attr("class"),c=u.split(" ")[0];c.match(Vve)&&n.indexOf(c)===-1&&f.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Kw.autoMargin(e,n);var m=Wn.ensureSingle(o,"g",n,function(k){l||k.attr("pointer-events","all")}),y=Wn.ensureSingleById(a._topdefs,"clipPath",i,function(k){k.append("rect")}),b=Wn.ensureSingle(m,"rect","bg",function(k){k.attr("shape-rendering","crispEdges")});b.call(ky.stroke,t.bordercolor).call(ky.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Wn.ensureSingle(m,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=Wn.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(jn.font,_.font).text(_.text),y3(x,T,e,t,Ud),!l&&(t.titleclick||t.titledoubleclick)&&Xve(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var A=Wn.ensureSingle(m,"rect","scrollbar",function(k){k.attr(ni.scrollBarEnterAttrs).call(ky.fill,ni.scrollBarColor)}),E=T.selectAll("g.groups").data(s);E.enter().append("g").attr("class","groups"),E.exit().remove();var M=E.selectAll("g.traces").data(Wn.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(k){let R=k[0],P=R.trace;if(R.groupTitle){let O=P.legendgroup,F=(a.shapes||[]).filter(function(W){return W.showlegend});return e._fullData.concat(F).some(function(W){return W.legendgroup===O&&(W.legend||"legend")===n&&W.visible===!0})?1:.5}return Xh.traceIs(P,"pie-like")?p.indexOf(k[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){No.select(this).call(Wve,e,t)}).call(Hve,e,t).each(function(k){l||k[0].groupTitle&&t.groupclick==="toggleitem"||No.select(this).call(jve,e,n)}),Wn.syncOrAsync([Kw.previousPromises,function(){return Jve(e,E,M,t,T)},function(){var k=a._size,R=t.borderwidth,P=t.xref==="paper",O=t.yref==="paper";if(_.text){let Re=(a.shapes||[]).filter(function(Ke){return Ke.showlegend}),Je=e._fullData.concat(Re).some(function(Ke){let Cr=Ke.legend||"legend";var Ar=Array.isArray(Cr)?Cr.includes(n):Cr===n;return Ar&&Ke.visible===!0});x.style("opacity",Je?1:.5)}if(!l){var F,H;P?F=k.l+k.w*t.x-Hd[g3(t)]*t._width:F=a.width*t.x-Hd[g3(t)]*t._width,O?H=k.t+k.h*(1-t.y)-Hd[b3(t)]*t._effHeight:H=a.height*(1-t.y)-Hd[b3(t)]*t._effHeight;var W=Qve(e,n,F,H);if(W)return;if(a.margin.autoexpand){var ee=F,te=H;F=P?Wn.constrain(F,0,a.width-t._width):ee,H=O?Wn.constrain(H,0,a.height-t._effHeight):te,F!==ee&&Wn.log("Constrain "+n+".x to make legend fit inside graph"),H!==te&&Wn.log("Constrain "+n+".y to make legend fit inside graph")}jn.setTranslate(m,F,H)}if(A.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var Q=t._effHeight;l&&(Q=t._height),b.attr({width:t._width-R,height:Q-R,x:R/2,y:R/2}),jn.setTranslate(T,0,0),y.select("rect").attr({width:t._width-2*R,height:Q-2*R,x:R,y:R}),jn.setClipUrl(T,i,e),jn.setRect(A,0,0,0,0),delete t._scrollY}else{var $=Math.max(ni.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-$-2*ni.scrollBarMargin,se=t._height-t._effHeight,le=j/se,Ee=Math.min(t._scrollY||0,se);b.attr({width:t._width-2*R+ni.scrollBarWidth+ni.scrollBarMargin,height:t._effHeight-R,x:R/2,y:R/2}),y.select("rect").attr({width:t._width-2*R+ni.scrollBarWidth+ni.scrollBarMargin,height:t._effHeight-2*R,x:R,y:R+Ee}),jn.setClipUrl(T,i,e),xr(Ee,$,le),m.on("wheel",function(){Ee=Wn.constrain(t._scrollY+No.event.deltaY/se*j,0,se),xr(Ee,$,le),Ee!==0&&Ee!==se&&No.event.preventDefault()});var Ge,Le,Ue,xe=function(Re,Je,Ke){var Cr=(Ke-Je)/le+Re;return Wn.constrain(Cr,0,se)},ur=function(Re,Je,Ke){var Cr=(Je-Ke)/le+Re;return Wn.constrain(Cr,0,se)},Oe=No.behavior.drag().on("dragstart",function(){var Re=No.event.sourceEvent;Re.type==="touchstart"?Ge=Re.changedTouches[0].clientY:Ge=Re.clientY,Ue=Ee}).on("drag",function(){var Re=No.event.sourceEvent;Re.buttons===2||Re.ctrlKey||(Re.type==="touchmove"?Le=Re.changedTouches[0].clientY:Le=Re.clientY,Ee=xe(Ue,Ge,Le),xr(Ee,$,le))});A.call(Oe);var He=No.behavior.drag().on("dragstart",function(){var Re=No.event.sourceEvent;Re.type==="touchstart"&&(Ge=Re.changedTouches[0].clientY,Ue=Ee)}).on("drag",function(){var Re=No.event.sourceEvent;Re.type==="touchmove"&&(Le=Re.changedTouches[0].clientY,Ee=ur(Ue,Ge,Le),xr(Ee,$,le))});T.call(He)}function xr(Re,Je,Ke){t._scrollY=e._fullLayout[n]._scrollY=Re,jn.setTranslate(T,0,-Re),jn.setRect(A,t._width,ni.scrollBarMargin+Re*Ke,ni.scrollBarWidth,Je),y.select("rect").attr("y",R+Re)}if(e._context.edits.legendPosition){var Ye,re,de,ne;m.classed("cursor-move",!0),Qw.init({element:m.node(),gd:e,prepFn:function(Re){if(Re.target!==A.node()){var Je=jn.getTranslate(m);de=Je.x,ne=Je.y}},moveFn:function(Re,Je){if(de!==void 0&&ne!==void 0){var Ke=de+Re,Cr=ne+Je;jn.setTranslate(m,Ke,Cr),Ye=Qw.align(Ke,t._width,k.l,k.l+k.w,t.xanchor),re=Qw.align(Cr+t._height,-t._height,k.t+k.h,k.t,t.yanchor)}},doneFn:function(){if(Ye!==void 0&&re!==void 0){var Re={};Re[n+".x"]=Ye,Re[n+".y"]=re,Xh.call("_guiRelayout",e,Re)}},clickFn:function(Re,Je){var Ke=o.selectAll("g.traces").filter(function(){var Cr=this.getBoundingClientRect();return Je.clientX>=Cr.left&&Je.clientX<=Cr.right&&Je.clientY>=Cr.top&&Je.clientY<=Cr.bottom});Ke.size()>0&&YF(e,t,Ke,Re,Je)}})}}],e)}}function p3(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function YF(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,f={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(f.group=o._group),Xh.traceIs(o,"pie-like")&&(f.label=t.datum()[0].label);var u=m3.triggerHandler(e,"plotly_legendclick",f);if(a===1){if(u===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&OF(t,e,r,l)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=m3.triggerHandler(e,"plotly_legenddoubleclick",f);c!==!1&&u!==!1&&s&&OF(t,e,r,s)}}function Wve(e,r,t){var a=Vd.getId(t),n=e.data()[0][0],i=n.trace,o=Xh.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,f,u;n.groupTitle?(f=n.groupTitle.text,u=n.groupTitle.font):(u=t.font,t.entries?f=n.text:(f=o?n.label:i.name,i._meta&&(f=Wn.templateString(f,i._meta))));var c=Wn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(jn.font,u).text(l?HF(f,s):f);var v=t.indentation+t.itemwidth+ni.itemGap*2;Zh.positionText(c,v,0),l?c.call(Zh.makeEditable,{gd:r,text:f}).call(y3,e,r,t).on("edit",function(d){this.text(HF(d,s)).call(y3,e,r,t);var p=n.trace._fullInput||{},m={};return m.name=d,p._isShape?Xh.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):Xh.call("_guiRestyle",r,m,i.index)}):y3(c,e,r,t)}function HF(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function jve(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=Wn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(ky.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),YF(r,l,e,i,No.event)}}))}function Xve(e,r,t,a){if(r._fullData.some(function(f){let u=f.legend||"legend";return(Array.isArray(u)?u.includes(a):u===a)&&Xh.traceIs(f,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=Wn.ensureSingle(e,"rect",a+"titletoggle",function(f){r._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(ky.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let f={event:No.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(m3.triggerHandler(r,"plotly_legendtitleclick",f)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&BF(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,m3.triggerHandler(r,"plotly_legendtitledoubleclick",f)!==!1&&t.titledoubleclick&&BF(r,t,t.titledoubleclick))}))}function y3(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Zh.convertToTspans(e,t,function(){Zve(r,t,a,n)})}function Zve(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=Vd.getId(t);t||(t=r._fullLayout[s]);var f=t.borderwidth,u;a===Ud?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var c=u.size*VF,v,d;if(l){var p=jn.bBox(l);v=p.height,d=p.width,a===Ud?jn.setTranslate(o,f,f+v*.75):jn.setTranslate(o,0,v*.25)}else{var m="."+s+(a===Ud?"title":"")+"text",y=e.select(m),b=Zh.lineCount(y),T=y.node();if(v=c*b,d=T?jn.bBox(T).width:0,a===Ud)t.title.side==="left"&&(d+=ni.itemGap*2),Zh.positionText(y,f+ni.titlePad,f+c);else{var _=ni.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=ni.itemGap,d-=t.indentation+t.itemwidth),Zh.positionText(y,_,-c*((b-1)/2-.3))}}a===Ud?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function $ve(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Jve(e,r,t,a,n){var i=e._fullLayout,o=Vd.getId(a);a||(a=i[o]);var l=i._size,s=Vd.isVertical(a),f=Vd.isGrouped(a),u=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=ni.itemGap,p=a.indentation+a.itemwidth+d*2,m=2*(c+d),y=b3(a),b=a.y<0||a.y===0&&y==="top",T=a.y>1||a.y===1&&y==="bottom",_=a.tracegroupgap,x={};let{orientation:A,yref:E}=a,{maxheight:M}=a,k=b||T||A!=="v"||E!=="paper";M||(M=k?.5:1);let R=k?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*R,30);var P=0;a._width=0,a._height=0;var O=$ve(a);if(s)t.each(function(Re){var Je=Re[0].height;jn.setTranslate(this,c+O[0],c+O[1]+a._height+Je/2+d),a._height+=Je,a._width=Math.max(a._width,Re[0].width)}),P=p+a._width,a._width+=d+p+v,a._height+=m,f&&(r.each(function(Re,Je){jn.setTranslate(this,0,Je*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var F=g3(a),H=a.x<0||a.x===0&&F==="right",W=a.x>1||a.x===1&&F==="left",ee=T||b,te=i.width/2;a._maxWidth=Math.max(H?ee&&F==="left"?l.l+l.w:te:W?ee&&F==="right"?l.r+l.w:te:l.w,2*p);var Q=0,$=0;t.each(function(Re){var Je=p3(Re,a,p);Q=Math.max(Q,Je),$+=Je}),P=null;var j=0;if(f){var se=0,le=0,Ee=0;r.each(function(){var Re=0,Je=0;No.select(this).selectAll("g.traces").each(function(Cr){var Ar=p3(Cr,a,p),gr=Cr[0].height;jn.setTranslate(this,O[0],O[1]+c+d+gr/2+Je),Je+=gr,Re=Math.max(Re,Ar),x[Cr[0].trace.legendgroup]=Re});var Ke=Re+d;le>0&&Ke+c+le>a._maxWidth?(j=Math.max(j,le),le=0,Ee+=se+_,se=Je):se=Math.max(se,Je),jn.setTranslate(this,le,Ee),le+=Ke}),a._width=Math.max(j,le)+c,a._height=Ee+se+m}else{var Ge=t.size(),Le=$+v+(Ge-1)*d=a._maxWidth&&(j=Math.max(j,Oe),xe=0,ur+=Ue,a._height+=Ue,Ue=0),jn.setTranslate(this,O[0]+c+xe,O[1]+c+ur+Je/2+d),Oe=xe+Ke+d,xe+=Cr,Ue=Math.max(Ue,Je)}),Le?(a._width=xe+v,a._height=Ue+m):(a._width=Math.max(j,Oe)+v,a._height+=Ue+m)}}a._width=Math.ceil(Math.max(a._width+O[0],a._titleWidth+2*(c+ni.titlePad))),a._height=Math.ceil(Math.max(a._height+O[1],a._titleHeight+2*(c+ni.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var He=e._context.edits,xr=He.legendText||He.legendPosition;t.each(function(Re){var Je=No.select(this).select("."+o+"toggle"),Ke=Re[0].height,Cr=Re[0].trace.legendgroup,Ar=p3(Re,a,p);f&&Cr!==""&&(Ar=x[Cr]);var gr=xr?p:P||Ar;!s&&!u&&(gr+=d/2),jn.setRect(Je,0,-Ke/2,gr,Ke)});var Ye=n.select("."+o+"titletext");Ye.node()&&Yve(Ye,a,c);var re=n.select("."+o+"titletoggle");if(re.size()&&Ye.node()){var de=Ye.attr("x")||0,ne=ni.titlePad;jn.setRect(re,de-ne,c,a._titleWidth+2*ne,a._titleHeight+2*ne)}}function Qve(e,r,t,a){var n=e._fullLayout,i=n[r],o=g3(i),l=b3(i),s=i.xref==="paper",f=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var u=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&f)return Kw.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Hd[o],r:i._width*zF[o],b:i._effHeight*zF[l],t:i._effHeight*Hd[l]});s?e._fullLayout._reservedMargin[r][u]=v[u]:f||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][u]=v[u]}function g3(e){return Wn.isRightAnchor(e)?"right":Wn.isCenterAnchor(e)?"center":"left"}function b3(e){return Wn.isBottomAnchor(e)?"bottom":Wn.isMiddleAnchor(e)?"middle":"top"}});var iA=N(nA=>{"use strict";var $h=ca(),Iu=_a(),jF=Ls(),qn=zr(),Kve=qn.pushUnique,tA=qn.strTranslate,ehe=qn.strRotate,rhe=iy(),jl=no(),the=mF(),Ff=Va(),Ai=va(),x3=Bs(),qf=hn(),ahe=ci().zindexSeparator,Wd=Bt(),zs=Nu(),Jh=j1(),nhe=zw(),ihe=rA(),rq=Jh.YANGLE,aA=Math.PI*rq/180,ohe=1/Math.sin(aA),lhe=Math.cos(aA),she=Math.sin(aA),dn=Jh.HOVERARROWSIZE,la=Jh.HOVERTEXTPAD,XF={box:!0,ohlc:!0,violin:!0,candlestick:!0},fhe={scatter:!0,scattergl:!0,splom:!0};function ZF(e,r){return e.distance-r.distance}nA.hover=function(r,t,a,n){r=qn.getGraphDiv(r);var i=t.target;qn.throttle(r._fullLayout._uid+Jh.HOVERID,Jh.HOVERMINTIME,function(){uhe(r,t,a,n,i)})};nA.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=oq(n),o=lq(n),l=r.map(function(y){var b=y._x0||y.x0||y.x||0,T=y._x1||y.x1||y.x||0,_=y._y0||y.y0||y.y||0,x=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var E=Math.min(b,T),M=Math.max(b,T),k=Math.min(_,x),R=Math.max(_,x),P=y.trace;if(Wd.traceIs(P,"gl3d")){var O=n._fullLayout[P.scene]._scene.container,F=O.offsetLeft,H=O.offsetTop;E+=F,M+=F,k+=H,R+=H}A.bbox={x0:E+o,x1:M+o,y0:k+i,y1:R+i},A.xPixel=(b+T)/2,A.yPixel=(_+x)/2,t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||Ai.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,f=aq(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ai.background,container:$h.select(t.container),outerContainer:t.outerContainer||t.container}),u=f.hoverLabels,c=5,v=0,d=0;u.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var T=y.y0-y.by/2;T-cM[0]._length||ne<0||ne>k[0]._length)return x3.unhoverRaw(e,r)}if(r.pointerX=de+M[0]._offset,r.pointerY=ne+k[0]._offset,"xval"in r?te=zs.flat(i,r.xval):te=zs.p2c(M,de),"yval"in r?Q=zs.flat(i,r.yval):Q=zs.p2c(k,ne),!Iu(te[0])||!Iu(Q[0]))return qn.warn("Fx.hover failed",r,e),x3.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=te,e._hoverYVals=Q,e._hoverXAxes=M,e._hoverYAxes=k);var Ke=1/0;function Cr(At,Ia){for(j=0;jOe&&(W.splice(0,Oe),Ke=W[0].distance),c&&H!==0&&W.length===0){ur.distance=H,ur.index=!1;var da=le._module.hoverPoints(ur,Ue,xe,"closest",{hoverLayer:l._hoverlayer});if(da&&(da=da.filter(function(An){return An.spikeDistance<=H})),da&&da.length){var di,Xi=da.filter(function(An){return An.xa.showspikes&&An.xa.spikesnap!=="hovered data"});if(Xi.length){var Nn=Xi[0];Iu(Nn.x0)&&Iu(Nn.y0)&&(di=gr(Nn),(!He.vLinePoint||He.vLinePoint.spikeDistance>di.spikeDistance)&&(He.vLinePoint=di))}var Ya=da.filter(function(An){return An.ya.showspikes&&An.ya.spikesnap!=="hovered data"});if(Ya.length){var wn=Ya[0];Iu(wn.x0)&&Iu(wn.y0)&&(di=gr(wn),(!He.hLinePoint||He.hLinePoint.spikeDistance>di.spikeDistance)&&(He.hLinePoint=di))}}}}}Cr();function Ar(At,Ia,ha){for(var Sa=null,mn=1/0,Ra,da=0;daAt.trace.index===sr.trace.index):W=[sr];var Gr=W.length,nt=eq("x",sr,l),Yr=eq("y",sr,l);Cr(nt,Yr);var Wr=[],xt={},jr=0,ot=function(At){var Ia=XF[At.trace.type]?tq(At):At.trace.index;if(!xt[Ia])jr++,xt[Ia]=jr,Wr.push(At);else{var ha=xt[Ia]-1,Sa=Wr[ha];ha>0&&Math.abs(At.distance)Gr-1;dr--)ot(W[dr]);W=Wr,wr()}var Se=e._hoverdata,Ie=[],pr=oq(e),_r=lq(e);for(let At of W){var ht=zs.makeEventData(At,At.trace,At.cd);if(At.hovertemplate!==!1){var Mt=!1;At.cd[At.index]&&At.cd[At.index].ht&&(Mt=At.cd[At.index].ht),At.hovertemplate=Mt||At.trace.hovertemplate||!1}if(At.xa&&At.ya){var wt=At.x0+At.xa._offset,Nt=At.x1+At.xa._offset,ta=At.y0+At.ya._offset,ma=At.y1+At.ya._offset,za=Math.min(wt,Nt),rn=Math.max(wt,Nt),Wa=Math.min(ta,ma),Ln=Math.max(ta,ma);ht.bbox={x0:za+_r,x1:rn+_r,y0:Wa+pr,y1:Ln+pr},ht.xPixel=(wt+Nt)/2,ht.yPixel=(ta+ma)/2}At.eventData=[ht],Ie.push(ht)}e._hoverdata=Ie;var _n=v==="y"&&(ee.length>1||W.length>1)||v==="closest"&&xr&&W.length>1,Ei=Ai.combine(l.plot_bgcolor||Ai.background,l.paper_bgcolor),un=aq(W,{gd:e,hovermode:v,rotateLabels:_n,bgColor:Ei,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),zn=un.hoverLabels;if(zs.isUnifiedHover(v)||(vhe(zn,_n,l,un.commonLabelBoundingBox),iq(zn,_n,l._invScaleX,l._invScaleY)),n&&n.tagName){var ki=Wd.getComponentMethod("annotations","hasClickToShow")(e,Ie);the($h.select(n),ki?"pointer":"")}var Dn=phe(e,r,Se);if(!n||a||!Dn&&!l.hoveranywhere)return;Se&&Dn&&e.emit("plotly_unhover",{event:r,points:Se}),yn(e._hoverdata);function yn(At){e.emit("plotly_hover",{event:r,points:At,xaxes:M,yaxes:k,xvals:te,yvals:Q})}}function tq(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var che=/([\s\S]*)<\/extra>/;function aq(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,f=r.commonLabelOpts||{};if(e.length===0)return[[]];var u=r.fontFamily||Jh.HOVERFONT,c=r.fontSize||Jh.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,m=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,T=e[0],_=T.xa,x=T.ya,A=n.charAt(0),E=A+"Label",M=T[E];if(M===void 0&&_.type==="multicategory")for(var k=0;ka.width-Ie&&(pr=a.width-Ie),tr.attr("d","M"+(ot-pr)+",0L"+(ot-pr+dn)+","+Se+dn+"H"+Ie+"v"+Se+(la*2+jr.height)+"H"+-Ie+"V"+Se+dn+"H"+(ot-pr-dn)+"Z"),ot=pr,j.minX=ot-Ie,j.maxX=ot+Ie,_.side==="top"?(j.minY=dr-(la*2+jr.height),j.maxY=dr-la):(j.minY=dr+la,j.maxY=dr+(la*2+jr.height))}else{var _r,ht,Mt;x.side==="right"?(_r="start",ht=1,Mt="",ot=_._offset+_._length):(_r="end",ht=-1,Mt="-",ot=_._offset),dr=x._offset+(T.y0+T.y1)/2,sr.attr("text-anchor",_r),tr.attr("d","M0,0L"+Mt+dn+","+dn+"V"+(la+jr.height/2)+"h"+Mt+(la*2+jr.width)+"V-"+(la+jr.height/2)+"H"+Mt+dn+"V-"+dn+"Z"),j.minY=dr-(la+jr.height/2),j.maxY=dr+(la+jr.height/2),x.side==="right"?(j.minX=ot+dn,j.maxX=ot+dn+(la*2+jr.width)):(j.minX=ot-dn-(la*2+jr.width),j.maxX=ot-dn);var wt=jr.height/2,Nt=P-jr.top-wt,ta="clip"+a._uid+"commonlabel"+x._id,ma;if(ottr.hoverinfo!=="none");if(Tr.length===0)return[];var se=a.hoverlabel,le=se.font,Ee=Tr[0],Ge=((n==="x unified"?Ee.xa:Ee.ya).unifiedhovertitle||{}).text,Le=Ge?qn.hovertemplateString({data:n==="x unified"?[{xa:Ee.xa,x:Ee.xVal}]:[{ya:Ee.ya,y:Ee.yVal}],fallback:Ee.trace.hovertemplatefallback,locale:a._d3locale,template:Ge}):M,Ue={showlegend:!0,legend:{title:{text:Le,font:le},font:le,bgcolor:se.bgcolor,bordercolor:se.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},xe={font:le};nhe(Ue,xe,t._fullData);var ur=xe.legend;ur.entries=[];for(var Oe=0;Oe=0?or=wr:Vr+Je=0?or=Vr:rt+Je=0?st=Hr:at+Ke=0?st=at:Pe+Ke=0,(Tr.idealAlign==="top"||!Wa)&&Ln?(Mt-=Nt/2,Tr.anchor="end"):Wa?(Mt+=Nt/2,Tr.anchor="start"):Tr.anchor="middle",Tr.crossPos=Mt;else{if(Tr.pos=Mt,Wa=ht+wt/2+rn<=O,Ln=ht-wt/2-rn>=0,(Tr.idealAlign==="left"||!Wa)&&Ln)ht-=wt/2,Tr.anchor="end";else if(Wa)ht+=wt/2,Tr.anchor="start";else{Tr.anchor="middle";var _n=rn/2,Ei=ht+_n-O,un=ht-_n;Ei>0&&(ht-=Ei),un<0&&(ht+=-un)}Tr.crossPos=ht}dr.attr("text-anchor",Tr.anchor),Ie&&Se.attr("text-anchor",Tr.anchor),tr.attr("transform",tA(ht,Mt)+(i?ehe(rq):""))}),{hoverLabels:kt,commonLabelBoundingBox:j}}function $F(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=qn.templateString(e.name,e.trace._meta)),o=KF(e.name,e.nameLength));var s=t.charAt(0),f=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[f+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:u=!1}=e;if(u){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=qn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:u}),l=l.replace(che,(p,m)=>(o=KF(m,e.nameLength),""))}return[l,o]}function vhe(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),f=new Array(s),u=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,m=function(te){return te*t._invScaleX},y=function(te){return te*t._invScaleY};e.each(function(te){var Q=te[n],$=te[i],j=Q._id.charAt(0)==="x",se=Q.range;u===0&&se&&se[0]>se[1]!==j&&(l=-1);var le=0,Ee=j?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ge=nq(te,r),Le=te.anchor,Ue=Le==="end"?-1:1,xe,ur;if(Le==="middle")xe=te.crossPos+(j?y(Ge.y-te.by/2):m(te.bx/2+te.tx2width/2)),ur=xe+(j?y(te.by):m(te.bx));else if(j)xe=te.crossPos+y(dn+Ge.y)-y(te.by/2-dn),ur=xe+y(te.by);else{var Oe=m(Ue*dn+Ge.x),He=Oe+m(Ue*te.bx);xe=te.crossPos+Math.min(Oe,He),ur=te.crossPos+Math.max(Oe,He)}j?d!==void 0&&p!==void 0&&Math.min(ur,p)-Math.max(xe,d)>1&&($.side==="left"?(le=$._mainLinePosition,Ee=t.width):Ee=$._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(ur,v)-Math.max(xe,c)>1&&($.side==="top"?(le=$._mainLinePosition,Ee=t.height):Ee=$._mainLinePosition)}f[u++]=[{datum:te,traceIndex:te.trace.index,dp:0,pos:te.pos,posref:te.posref,size:te.by*(j?ohe:1)/2,pmin:le,pmax:Ee}]}),f.sort(function(te,Q){return te[0].posref-Q[0].posref||l*(Q[0].traceIndex-te[0].traceIndex)});var b,T,_,x,A,E,M;function k(te){var Q=te[0],$=te[te.length-1];if(T=Q.pmin-Q.pos-Q.dp+Q.size,_=$.pos+$.dp+$.size-Q.pmax,T>.01){for(A=te.length-1;A>=0;A--)te[A].dp+=T;b=!1}if(!(_<.01)){if(T<-.01){for(A=te.length-1;A>=0;A--)te[A].dp-=_;b=!1}if(b){var j=0;for(x=0;xQ.pmax&&j++;for(x=te.length-1;x>=0&&!(j<=0);x--)E=te[x],E.pos>Q.pmax-1&&(E.del=!0,j--);for(x=0;x=0;A--)te[A].dp-=_;for(x=te.length-1;x>=0&&!(j<=0);x--)E=te[x],E.pos+E.dp+E.size>Q.pmax&&(E.del=!0,j--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(A=P.length-1;A>=0;A--)P[A].dp+=T;for(R.push.apply(R,P),f.splice(x+1,1),M=0,A=R.length-1;A>=0;A--)M+=R[A].dp;for(_=M/R.length,A=R.length-1;A>=0;A--)R[A].dp-=_;b=!1}else x++}f.forEach(k)}for(x=f.length-1;x>=0;x--){var H=f[x];for(A=H.length-1;A>=0;A--){var W=H[A],ee=W.datum;ee.offset=W.dp,ee.del=W.del}}}function nq(e,r){var t=0,a=e.offset;return r&&(a*=-she,t=e.offset*lhe),{x:t,y:a}}function hhe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(dn+la),a=t+r*(e.txwidth+la),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+la),{alignShift:r,textShiftX:t,text2ShiftX:a}}function iq(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=$h.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),f=o.anchor,u=f==="end"?-1:1,c=hhe(o),v=nq(o,r),d=v.x,p=v.y,m=f==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;m?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(u*dn+d)+","+i(dn+p)+"v"+i(o.by/2-dn)+"h"+n(u*o.bx)+"v-"+i(o.by)+"H"+n(u*dn+d)+"V"+i(p-dn)+"Z":b="M"+n(u*dn+d)+","+i(p-o.by/2)+"h"+n(u*o.bx)+"v"+i(o.by)+"h"+n(-u*o.bx)+"Z",l.select("path").attr("d",b);var T=d+c.textShiftX,_=p+o.ty0-o.by/2+la,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&f!=="start"?(s.attr("text-anchor","start"),T=m?-o.bx/2-o.tx2width/2+la:-o.bx-la):x==="right"&&f!=="end"&&(s.attr("text-anchor","end"),T=m?o.bx/2-o.tx2width/2-la:o.bx+la)),s.call(jl.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(jl.positionText,n(c.text2ShiftX+c.alignShift*la+d),i(p+o.ty0-o.by/2+la)),l.select("rect").call(Ff.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function dhe(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Iu(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=qn.castOption(n,t,v);return o(p)?p:qn.extractOption({},a,"",d)}:function(v,d){return qn.extractOption(i,a,v,d)};function s(v,d,p){var m=l(d,p);o(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=qn.constrain(e.x0,0,e.xa._length),e.x1=qn.constrain(e.x1,0,e.xa._length),e.y0=qn.constrain(e.y0,0,e.ya._length),e.y1=qn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:qf.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:qf.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var f=qf.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+f+" / -"+qf.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+f,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var u=qf.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+u+" / -"+qf.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+u,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function JF(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,f,u;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Ai.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;f=v&&v.xa,u=v&&v.ya;var m=u.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=f._offset+v.x,p=u._offset+v.y);var y=jF.readability(v.color,c)<1.5?Ai.contrast(c):v.color,b=u.spikemode,T=u.spikethickness,_=u.spikecolor||y,x=qf.getPxPosition(e,u),A,E;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(A=x,E=d),b.indexOf("across")!==-1){var M=u._counterDomainMin,k=u._counterDomainMax;u.anchor==="free"&&(M=Math.min(M,u.position),k=Math.max(k,u.position)),A=i.l+M*i.w,E=i.l+k*i.w}a.insert("line",":first-child").attr({x1:A,x2:E,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":Ff.dashStyle(u.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:E,y1:p,y2:p,"stroke-width":T+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(u.side!=="right"?T:-T),cy:p,r:T,fill:_}).classed("spikeline",!0)}if(s){var R=r.vLinePoint,P,O;f=R&&R.xa,u=R&&R.ya;var F=f.spikesnap;F==="cursor"?(P=o.pointerX,O=o.pointerY):(P=f._offset+R.x,O=u._offset+R.y);var H=jF.readability(R.color,c)<1.5?Ai.contrast(c):R.color,W=f.spikemode,ee=f.spikethickness,te=f.spikecolor||H,Q=qf.getPxPosition(e,f),$,j;if(W.indexOf("toaxis")!==-1||W.indexOf("across")!==-1){if(W.indexOf("toaxis")!==-1&&($=Q,j=O),W.indexOf("across")!==-1){var se=f._counterDomainMin,le=f._counterDomainMax;f.anchor==="free"&&(se=Math.min(se,f.position),le=Math.max(le,f.position)),$=i.t+(1-le)*i.h,j=i.t+(1-se)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:$,y2:j,"stroke-width":ee,stroke:te,"stroke-dasharray":Ff.dashStyle(f.spikedash,ee)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:$,y2:j,"stroke-width":ee+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}W.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:Q-(f.side!=="top"?ee:-ee),r:ee,fill:te}).classed("spikeline",!0)}}}function phe(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function QF(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function KF(e,r){return jl.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function yhe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,lq=e=>e.offsetLeft+e.clientLeft;function Yd(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=qn.apply3DTransform(t._invTransform)(n,i),f=qn.apply3DTransform(t._invTransform)(o,l),u=s[0],c=s[1],v=f[0],d=f[1];return{x:u,y:c,width:v-u,height:d-c,top:Math.min(c,d),left:Math.min(u,v),right:Math.max(u,v),bottom:Math.max(c,d)}}});var _3=N((KLe,sq)=>{"use strict";var mhe=zr(),ghe=va(),bhe=Nu().isUnifiedHover;sq.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&bhe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=ghe.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),mhe.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var uq=N((eDe,fq)=>{"use strict";var xhe=zr(),_he=_3(),whe=ld();fq.exports=function(r,t){function a(n,i){return xhe.coerce(r,t,whe,n,i)}_he(r,t,a)}});var hq=N((rDe,vq)=>{"use strict";var cq=zr(),Ahe=Xg(),The=_3();vq.exports=function(r,t,a,n){function i(l,s){return cq.coerce(r,t,Ahe,l,s)}var o=cq.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),The(r,t,i,o)}});var oA=N((tDe,dq)=>{"use strict";var Mhe=zr(),She=ld();dq.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Mhe.coerce(r,t,She,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var mq=N((aDe,yq)=>{"use strict";var pq=zr(),Ehe=ld(),khe=oA(),Che=_3();yq.exports=function(r,t){function a(u,c){return pq.coerce(r,t,Ehe,u,c)}var n=khe(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),f=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&f===1||(o||l)&&s&&f===2)&&(t.dragmode="pan"),Che(r,t,a),pq.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var xq=N((nDe,bq)=>{"use strict";var lA=zr(),gq=Bt();bq.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(f){return function(u){return lA.coerceHoverinfo({hoverinfo:u},{_module:f._module},a)}}for(var i=0;i{"use strict";var Dhe=Bt(),Rhe=iA().hover;_q.exports=function(r,t,a){var n=Dhe.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Rhe(r,t,a,!0);function o(){var s,f,u,c;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(f=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(u=l.xvals)!=null||(l.xvals=r._hoverXVals),(c=l.yvals)!=null||(l.yvals=r._hoverYVals),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Ou=N((oDe,Mq)=>{"use strict";var Fhe=ca(),w3=zr(),qhe=Bs(),Cy=Nu(),Aq=ld(),Tq=iA();Mq.exports={moduleType:"component",name:"fx",constants:j1(),schema:{layout:Aq},attributes:Xg(),layoutAttributes:Aq,supplyLayoutGlobalDefaults:uq(),supplyDefaults:hq(),supplyLayoutDefaults:mq(),calc:xq(),getDistanceFunction:Cy.getDistanceFunction,getClosest:Cy.getClosest,inbox:Cy.inbox,quadrature:Cy.quadrature,appendArrayPointValue:Cy.appendArrayPointValue,castHoverOption:Nhe,castHoverinfo:Ihe,hover:Tq.hover,unhover:qhe.unhover,loneHover:Tq.loneHover,loneUnhover:Phe,click:wq()};function Phe(e){var r=w3.isD3Selection(e)?e:Fhe.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Nhe(e,r,t){return w3.castOption(e,r,"hoverlabel."+t)}function Ihe(e,r,t){function a(n){return w3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return w3.castOption(e,t,"hoverinfo",a)}});var rv=N(Bu=>{"use strict";Bu.selectMode=function(e){return e==="lasso"||e==="select"};Bu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Bu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Bu.selectingOrDrawing=function(e){return Bu.freeMode(e)||Bu.rectMode(e)}});var A3=N((sDe,Sq)=>{"use strict";Sq.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var T3=N((fDe,Eq)=>{"use strict";Eq.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var S3=N((uDe,kq)=>{"use strict";var M3=32;kq.exports={CIRCLE_SIDES:M3,i000:0,i090:M3/4,i180:M3/2,i270:M3/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var E3=N((cDe,Lq)=>{"use strict";var Ohe=zr().strTranslate;function Cq(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function Bhe(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function zhe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return Cq(e,t[r])}}function Ghe(e){return Ohe(e.xaxis._offset,e.yaxis._offset)}Lq.exports={p2r:Cq,r2p:Bhe,axValue:zhe,getTransform:Ghe}});var tv=N(zu=>{"use strict";var Uhe=hy(),Fq=S3(),jd=Fq.CIRCLE_SIDES,sA=Fq.SQRT2,qq=E3(),Dq=qq.p2r,Rq=qq.r2p,Hhe=[0,3,4,5,6,1,2],Vhe=[0,3,4,1,2];zu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var Pq=En(),zq=rv(),Yhe=zq.drawMode,Whe=zq.openMode,Xd=S3(),Nq=Xd.i000,Iq=Xd.i090,Oq=Xd.i180,Bq=Xd.i270,jhe=Xd.cos45,Xhe=Xd.sin45,Gq=E3(),C3=Gq.p2r,av=Gq.r2p,Zhe=Yc(),$he=Zhe.clearOutline,L3=tv(),Jhe=L3.readPaths,Qhe=L3.writePaths,Khe=L3.ellipseOver,e0e=L3.fixDatesForPaths;function r0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!Yhe(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var t0e=rv(),a0e=t0e.selectMode,n0e=Yc(),i0e=n0e.clearOutline,fA=tv(),o0e=fA.readPaths,l0e=fA.writePaths,s0e=fA.fixDatesForPaths;Vq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,f=l.yaxis,u=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!a0e(c)&&u!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";Yq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var iv=N(Ii=>{"use strict";var Nf=Dy(),Wq=zr(),nv=hn();Ii.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ii.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ii.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ii.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ii.extractPathCoords=function(e,r,t){var a=[],n=e.match(Nf.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Nf.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Ii.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Ii.shapePositionToRange(r);o=function(s){var f=Pf(r,t);return r._offset+r.r2p(l(s,!0))+f},r.type==="date"&&(o=Ii.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Ii.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Ii.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Ii.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Ii.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Ii.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Ii.getPathString=function(e,r){let t=r.type,a=nv.getRefType(r.xref),n=nv.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,f,u,c,v,d,p,m,y,b;function T(P,O,F,H){var W;if(P)if(O==="domain")H?W=function(ee){return P._offset+P._length*(1-ee)}:W=function(ee){return P._offset+P._length*ee};else{let ee=Ii.shapePositionToRange(P);W=function(te){return P._offset+P.r2p(ee(te,!0))},F==="path"&&P.type==="date"&&(W=Ii.decodeDate(W))}else H?W=function(ee){return i.t+i.h*(1-ee)}:W=function(ee){return i.l+i.w*ee};return W}if(a==="array"?(v=[],o=r.xref.map(function(P){return nv.getFromId(e,P)}),v=r.xref.map(function(P,O){return T(o[O],nv.getRefType(P),t,!1)})):(o=nv.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(P){return nv.getFromId(e,P)}),d=r.yref.map(function(P,O){return T(l[O],nv.getRefType(P),t,!0)})):(l=nv.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return f0e(r,v,d);if(a==="array")s=Pf(o[0],r.x0shift),f=Pf(o[1],r.x1shift),p=v[0](r.x0)+s,m=v[1](r.x1)+f;else if(s=Pf(o,r.x0shift),f=Pf(o,r.x1shift),r.xsizemode==="pixel"){let P=v(r.xanchor);p=P+r.x0+s,m=P+r.x1+f}else p=v(r.x0)+s,m=v(r.x1)+f;if(n==="array")u=Pf(l[0],r.y0shift),c=Pf(l[1],r.y1shift),y=d[0](r.y0)+u,b=d[1](r.y1)+c;else if(u=Pf(l,r.y0shift),c=Pf(l,r.y1shift),r.ysizemode==="pixel"){let P=d(r.yanchor);y=P-r.y0+u,b=P-r.y1+c}else y=d(r.y0)+u,b=d(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+b;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+b+"H"+p+"Z";var _=(p+m)/2,x=(y+b)/2,A=Math.abs(_-p),E=Math.abs(x-y),M="A"+A+","+E,k=_+A+","+x,R=_+","+(x-E);return"M"+k+M+" 0 1,1 "+R+M+" 0 0,1 "+k+"Z"};function f0e(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),f=Array.isArray(e.yref);var u=0,c=0;return a.replace(Nf.segmentRE,function(v){var d=0,p=v.charAt(0),m=Nf.paramIsX[p],y=Nf.paramIsY[p],b=Nf.numParams[p];let T=m.drawn!==void 0,_=y.drawn!==void 0,x=s?r[u]:r,A=f?t[c]:t;var E=v.slice(1).replace(Nf.paramRE,function(M){return m[d]?n==="pixel"?M=x(o)+Number(M):M=x(M):y[d]&&(i==="pixel"?M=A(l)-Number(M):M=A(M)),d++,d>b&&(M="X"),M});return d>b&&(E=E.replace(/[\s,]*X.*/,""),Wq.log("Ignoring extra params in segment "+v)),T&&u++,_&&c++,p+E})}Ii.getPixelShift=Pf;function Pf(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var cA=N((mDe,Zq)=>{"use strict";var u0e=zr(),If=hn(),jq=no(),Xq=Va(),c0e=tv().readPaths,Qh=iv(),v0e=Qh.getPathString,Ry=t2(),h0e=ao().FROM_TL;Zq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=If.getFromId(r,a.xref),s=If.getFromId(r,a.yref);let le=Array.isArray(a.xref),Ee=Array.isArray(a.yref);for(var f in Ry){var u=typeof Ry[f]=="function",c=!le||Ry.simpleXVariables.includes(f),v=!Ee||Ry.simpleYVariables.includes(f);if(u&&c&&v){var d=Ry[f](a,l,s);d!==void 0&&(o[f]=d)}}}i=u0e.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),T=b.append("text").attr(y).classed("shape-label-text",!0).text(i),_,x,A,E;if(a.path){var M=v0e(r,a),k=c0e(M,r);_=1/0,A=1/0,x=-1/0,E=-1/0;for(var R=0;RQh.getDataToPixel(r,Re,ne,!1,Je)(de),re=(de,ne,Re,Je)=>Qh.getDataToPixel(r,Re,ne,!0,Je)(de);if(a.xsizemode==="pixel"){let de=Ye(a.xanchor,void 0,Ge,ur),ne=Qh.getPixelShift(Ge,a.x0shift),Re=Qh.getPixelShift(Ge,a.x1shift);_=de+a.x0+ne,x=de+a.x1+Re}else _=Ye(a.x0,a.x0shift,Ge,ur),x=Ye(a.x1,a.x1shift,Le,Oe);if(a.ysizemode==="pixel"){let de=re(a.yanchor,void 0,Ue,He),ne=Qh.getPixelShift(Ue,a.y0shift),Re=Qh.getPixelShift(Ue,a.y1shift);A=de-a.y0+ne,E=de-a.y1+Re}else A=re(a.y0,a.y0shift,Ue,He),E=re(a.y1,a.y1shift,xe,xr)}var ee=a.label.textangle;ee==="auto"&&(a.type==="line"?ee=d0e(_,A,x,E):ee=0),T.call(function(le){return le.call(Xq.font,m).attr({}),jq.convertToTspans(le,r),le});var te=Xq.bBox(T.node()),Q=p0e(_,A,x,E,a,ee,te),$=Q.textx,j=Q.texty,se=Q.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[se],y:j,x:$,transform:"rotate("+ee+","+$+","+j+")"}).call(jq.positionText,$,j)}};function d0e(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function p0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,f=n.label.padding,u=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,b,T,_;if(u==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var y0e=zr(),m0e=y0e.strTranslate,$q=Bs(),Kq=rv(),g0e=Kq.drawMode,eP=Kq.selectMode,rP=Bt(),Jq=va(),F3=S3(),b0e=F3.i000,x0e=F3.i090,_0e=F3.i180,w0e=F3.i270,A0e=Yc(),tP=A0e.clearOutlineControllers,hA=tv(),R3=hA.pointsOnRectangle,vA=hA.pointsOnEllipse,T0e=hA.writePaths,M0e=D3().newShapes,S0e=D3().createShapeObj,E0e=uA(),k0e=cA();aP.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(vA(r[0])||a.hasText)&&l({redrawing:!0})}function l(Q){var $={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,$=M0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,$=E0e(t,a),i._fullLayout._reselect=!0),Object.keys($).length&&rP.call((Q||{}).redrawing?"relayout":"_guiRelayout",i,$)}var s=i._fullLayout,f=s._zoomlayer,u=a.dragmode,c=g0e(u),v=eP(u);(c||v)&&(i._fullLayout._outlining=!0),tP(i),t.attr("d",T0e(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=C0e([],r);var T=f.append("g").attr("class","outline-controllers");P(T),te()}if(c&&a.hasText){var _=f.select(".label-temp"),x=S0e(t,a,a.dragmode);k0e(i,"label-temp",x,_)}function A(Q){m=+Q.srcElement.getAttribute("data-i"),y=+Q.srcElement.getAttribute("data-j"),d[m][y].moveFn=E}function E(Q,$){if(r.length){var j=b[m][y][1],se=b[m][y][2],le=r[m],Ee=le.length;if(R3(le)){var Ge=Q,Le=$;if(a.isActiveSelection){var Ue=Qq(le,y);Ue[1]===le[y][1]?Le=0:Ge=0}for(var xe=0;xe1&&!(Q.length===2&&Q[1][0]==="Z")&&(y===0&&(Q[0][0]="M"),r[m]=Q,o(),l())}}function R(Q,$){if(Q===2){m=+$.srcElement.getAttribute("data-i"),y=+$.srcElement.getAttribute("data-j");var j=r[m];!R3(j)&&!vA(j)&&k()}}function P(Q){d=[];for(var $=0;${"use strict";var D0e=ca(),fP=Bt(),pA=zr(),Kh=hn(),R0e=tv().readPaths,F0e=q3(),N3=cA(),uP=Yc().clearOutlineControllers,dA=va(),I3=Va(),q0e=$a().arrayEditor,nP=Bs(),iP=Ou(),oP=Kc(),e0=Dy(),Ko=iv(),yA=Ko.getPathString;hP.exports={draw:mA,drawOne:cP,eraseActiveShape:B0e,drawLabel:N3};function mA(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&iP.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&iP.click(e,o,t.id)}})}function vP(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=N0e(r,a,n);pA.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),I3.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");I3.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function N0e(e,r,t){let a=e._fullLayout._size;function n(l,s){let f=(Array.isArray(l)?l:[l]).map(v=>Kh.getFromId(e,v)).filter(Boolean);if(!f.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let u=f.map(function(v){return v._offset}),c=f.map(function(v){return v._offset+v._length});return[Math.min(...u),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function I0e(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",f=t.ysizemode==="pixel",u=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,m,y,b,T,_,x,A,E,M,k,R,P,O,F=D0e.select(r.node().parentNode),H=Kh.getFromId(e,t.xref),W=Kh.getRefType(t.xref),ee=Kh.getFromId(e,t.yref),te=Kh.getRefType(t.yref),Q=t.x0shift,$=t.x1shift,j=t.y0shift,se=t.y1shift,le=function(Ar,gr){var et=Ko.getDataToPixel(e,H,gr,!1,W);return et(Ar)},Ee=function(Ar,gr){var et=Ko.getDataToPixel(e,ee,gr,!0,te);return et(Ar)},Ge=Ko.getPixelToData(e,H,!1,W),Le=Ko.getPixelToData(e,ee,!0,te),Ue=Oe(),xe={element:Ue.node(),gd:e,prepFn:Ye,doneFn:re,clickFn:de},ur;nP.init(xe),Ue.node().onmousemove=xr;function Oe(){return u?He():r}function He(){var Ar=10,gr=Math.max(t.line.width,Ar),et=n.append("g").attr("data-index",a).attr("drag-helper",!0);et.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":gr,"stroke-opacity":"0"});var Hr={"fill-opacity":"0"},at=Math.max(gr/2,Ar);return et.append("circle").attr({"data-line-point":"start-point",cx:s?le(t.xanchor)+t.x0:le(t.x0,Q),cy:f?Ee(t.yanchor)-t.y0:Ee(t.y0,j),r:at}).style(Hr).classed("cursor-grab",!0),et.append("circle").attr({"data-line-point":"end-point",cx:s?le(t.xanchor)+t.x1:le(t.x1,$),cy:f?Ee(t.yanchor)-t.y1:Ee(t.y1,se),r:at}).style(Hr).classed("cursor-grab",!0),et}function xr(Ar){if(P3(e)){ur=null;return}if(u)Ar.target.tagName==="path"?ur="move":ur=Ar.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var gr=xe.element.getBoundingClientRect(),et=gr.right-gr.left,Hr=gr.bottom-gr.top,at=Ar.clientX-gr.left,wr=Ar.clientY-gr.top,Vr=!c&&et>o&&Hr>l&&!Ar.shiftKey?nP.getCursor(at/et,1-wr/Hr):"move";oP(r,Vr),ur=Vr.split("-")[0]}}function Ye(Ar){P3(e)||(s&&(b=le(t.xanchor)),f&&(T=Ee(t.yanchor)),t.type==="path"?O=t.path:(d=s?t.x0:le(t.x0),p=f?t.y0:Ee(t.y0),m=s?t.x1:le(t.x1),y=f?t.y1:Ee(t.y1)),dy?(_=p,M="y0",x=y,k="y1"):(_=y,M="y1",x=p,k="y0"),xr(Ar),Je(n,t),Cr(r,t,e),xe.moveFn=ur==="move"?ne:Re,xe.altKey=Ar.altKey)}function re(){P3(e)||(oP(r),Ke(n),vP(r,e,t),fP.call("_guiRelayout",e,i.getUpdateObj()))}function de(){P3(e)||Ke(n)}function ne(Ar,gr){if(t.type==="path"){var et=function(wr){return wr},Hr=et,at=et;s?v("xanchor",t.xanchor=Ge(b+Ar)):(Hr=function(Vr){return Ge(le(Vr)+Ar)},H&&H.type==="date"&&(Hr=Ko.encodeDate(Hr))),f?v("yanchor",t.yanchor=Le(T+gr)):(at=function(Vr){return Le(Ee(Vr)+gr)},ee&&ee.type==="date"&&(at=Ko.encodeDate(at))),v("path",t.path=lP(O,Hr,at))}else s?v("xanchor",t.xanchor=Ge(b+Ar)):(v("x0",t.x0=Ge(d+Ar)),v("x1",t.x1=Ge(m+Ar))),f?v("yanchor",t.yanchor=Le(T+gr)):(v("y0",t.y0=Le(p+gr)),v("y1",t.y1=Le(y+gr)));r.attr("d",yA(e,t)),Je(n,t),N3(e,a,t,F)}function Re(Ar,gr){if(c){var et=function(Wr){return Wr},Hr=et,at=et;s?v("xanchor",t.xanchor=Ge(b+Ar)):(Hr=function(xt){return Ge(le(xt)+Ar)},H&&H.type==="date"&&(Hr=Ko.encodeDate(Hr))),f?v("yanchor",t.yanchor=Le(T+gr)):(at=function(xt){return Le(Ee(xt)+gr)},ee&&ee.type==="date"&&(at=Ko.encodeDate(at))),v("path",t.path=lP(O,Hr,at))}else if(u){if(ur==="resize-over-start-point"){var wr=d+Ar,Vr=f?p-gr:p+gr;v("x0",t.x0=s?wr:Ge(wr)),v("y0",t.y0=f?Vr:Le(Vr))}else if(ur==="resize-over-end-point"){var rt=m+Ar,Pe=f?y-gr:y+gr;v("x1",t.x1=s?rt:Ge(rt)),v("y1",t.y1=f?Pe:Le(Pe))}}else{var or=function(Wr){return ur.indexOf(Wr)!==-1},st=or("n"),kt=or("s"),Tr=or("w"),tr=or("e"),sr=st?_+gr:_,Gr=kt?x+gr:x,nt=Tr?A+Ar:A,Yr=tr?E+Ar:E;f&&(st&&(sr=_-gr),kt&&(Gr=x-gr)),(!f&&Gr-sr>l||f&&sr-Gr>l)&&(v(M,t[M]=f?sr:Le(sr)),v(k,t[k]=f?Gr:Le(Gr))),Yr-nt>o&&(v(R,t[R]=s?nt:Ge(nt)),v(P,t[P]=s?Yr:Ge(Yr)))}r.attr("d",yA(e,t)),Je(n,t),N3(e,a,t,F)}function Je(Ar,gr){(s||f)&&et();function et(){var Hr=gr.type!=="path",at=Ar.selectAll(".visual-cue").data([0]),wr=1;at.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":wr}).classed("visual-cue",!0);var Vr=le(s?gr.xanchor:pA.midRange(Hr?[gr.x0,gr.x1]:Ko.extractPathCoords(gr.path,e0.paramIsX))),rt=Ee(f?gr.yanchor:pA.midRange(Hr?[gr.y0,gr.y1]:Ko.extractPathCoords(gr.path,e0.paramIsY)));if(Vr=Ko.roundPositionForSharpStrokeRendering(Vr,wr),rt=Ko.roundPositionForSharpStrokeRendering(rt,wr),s&&f){var Pe="M"+(Vr-1-wr)+","+(rt-1-wr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";at.attr("d",Pe)}else if(s){var or="M"+(Vr-1-wr)+","+(rt-9-wr)+"v18 h2 v-18 Z";at.attr("d",or)}else{var st="M"+(Vr-9-wr)+","+(rt-1-wr)+"h18 v2 h-18 Z";at.attr("d",st)}}}function Ke(Ar){Ar.selectAll(".visual-cue").remove()}function Cr(Ar,gr,et){var Hr=gr.xref,at=gr.yref,wr=Kh.getFromId(et,Hr),Vr=Kh.getFromId(et,at),rt="";Hr!=="paper"&&!wr.autorange&&(rt+=Hr),at!=="paper"&&!Vr.autorange&&(rt+=at),I3.setClipUrl(Ar,rt?"clip"+et._fullLayout._uid+rt:null,et)}}function lP(e,r,t){return e.replace(e0.segmentRE,function(a){var n=0,i=a.charAt(0),o=e0.paramIsX[i],l=e0.paramIsY[i],s=e0.numParams[i],f=a.slice(1).replace(e0.paramRE,function(u){return n>=s||(o[n]?u=r(u):l[n]&&(u=t(u)),n++),u});return i+f})}function O0e(e,r){if(O3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){sP(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=sP,mA(e)}}}function sP(e){if(O3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(uP(e),delete e._fullLayout._activeShapeIndex,mA(e))}}function B0e(e){if(O3(e)){uP(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var dP=ca(),z3=zr()._;pP.exports=function(r,t,a){var n=dP.select(r._fullLayout._paperdiv.node());n.selectAll(".plotly-cloud-dialog").remove();var i=n.append("div").classed("plotly-cloud-dialog",!0),o=i.append("div").classed("plotly-cloud-dialog-box",!0);o.append("div").classed("plotly-cloud-dialog-title",!0).text(z3(r,"Share with Plotly Cloud")),o.append("div").classed("plotly-cloud-dialog-message",!0).text(z3(r,"This chart and its data will be sent to")+" "+t+".");var l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);function s(){i.remove(),document.removeEventListener("keydown",f)}function f(u){(u.key==="Escape"||u.keyCode===27)&&s()}document.addEventListener("keydown",f),i.on("click",function(){dP.event.target===i.node()&&s()}),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(z3(r,"Cancel")).on("click",s),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(z3(r,"Share")).on("click",function(){s(),a()})}});var xA=N((_De,TP)=>{"use strict";var Xl=Bt(),z0e=_i(),mP=En(),Ma=T3(),G0e=B3().eraseActiveShape,U0e=yP(),G3=zr(),sa=G3._,pa=TP.exports={};pa.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?sa(e,"Download plot as a PNG"):sa(e,"Download plot")},icon:Ma.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};G3.notifier(sa(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Xl.call("downloadImage",e,t).then(function(a){G3.notifier(sa(e,"Snapshot succeeded")+" - "+a,"long",e)}).catch(function(){G3.notifier(sa(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};pa.sendChartToCloud={name:"sendChartToCloud",title:function(e){return sa(e,"Share with Plotly Cloud")},icon:Ma.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is not set)");return}try{new URL(r)}catch(t){console.error("Invalid plotlyServerURL: "+r);return}U0e(e,r,function(){z0e.sendDataToCloud(e,r)})}};pa.sendDataToCloud=pa.sendChartToCloud;pa.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return sa(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ma.zoombox,click:bo};pa.pan2d={name:"pan2d",_cat:"pan",title:function(e){return sa(e,"Pan")},attr:"dragmode",val:"pan",icon:Ma.pan,click:bo};pa.select2d={name:"select2d",_cat:"select",title:function(e){return sa(e,"Box Select")},attr:"dragmode",val:"select",icon:Ma.selectbox,click:bo};pa.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return sa(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ma.lasso,click:bo};pa.drawclosedpath={name:"drawclosedpath",title:function(e){return sa(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ma.drawclosedpath,click:bo};pa.drawopenpath={name:"drawopenpath",title:function(e){return sa(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ma.drawopenpath,click:bo};pa.drawline={name:"drawline",title:function(e){return sa(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ma.drawline,click:bo};pa.drawrect={name:"drawrect",title:function(e){return sa(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ma.drawrect,click:bo};pa.drawcircle={name:"drawcircle",title:function(e){return sa(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ma.drawcircle,click:bo};pa.eraseshape={name:"eraseshape",title:function(e){return sa(e,"Erase active shape")},icon:Ma.eraseshape,click:G0e};pa.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return sa(e,"Zoom in")},attr:"zoom",val:"in",icon:Ma.zoom_plus,click:bo};pa.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return sa(e,"Zoom out")},attr:"zoom",val:"out",icon:Ma.zoom_minus,click:bo};pa.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return sa(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ma.autoscale,click:bo};pa.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return sa(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ma.home,click:bo};pa.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return sa(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ma.tooltip_basic,gravity:"ne",click:bo};pa.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return sa(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ma.tooltip_compare,gravity:"ne",click:bo};function bo(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=mP.list(e,null,!0),s=i._cartesianSpikesEnabled,f,u;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,m;for(u=0;u{"use strict";var MP=xA(),Y0e=Object.keys(MP),SP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],EP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(SP),$d=[],W0e=function(e){if(EP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();$d.indexOf(r)===-1&&$d.push(r),$d.indexOf(t)===-1&&$d.push(t)}};Y0e.forEach(function(e){W0e(MP[e])});$d.sort();kP.exports={DRAW_MODES:SP,backButtons:EP,foreButtons:$d}});var wA=N((TDe,CP)=>{"use strict";var ADe=_A();CP.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var DP=N((MDe,LP)=>{"use strict";var j0e=zr(),Fy=va(),X0e=$a(),Z0e=wA();LP.exports=function(r,t){var a=r.modebar||{},n=X0e.newContainer(t,"modebar");function i(l,s){return j0e.coerce(a,n,Z0e,l,s)}i("orientation"),i("bgcolor",Fy.addOpacity(t.paper_bgcolor,.5));var o=Fy.contrast(Fy.rgb(t.modebar.bgcolor));i("color",Fy.addOpacity(o,.3)),i("activecolor",Fy.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var PP=N((SDe,qP)=>{"use strict";var AA=ca(),$0e=_a(),H3=zr(),RP=T3(),J0e=U1().version,Q0e=new DOMParser;function FP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Of=FP.prototype;Of.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,f=this.locale!==t.locale;if(this.locale=t.locale,(l||s||f)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var u=this.getLogo();t.watermark&&(u.className=u.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(u,this.element.childNodes[0]):this.element.appendChild(u),this.hasLogo=!0}this.updateActiveButton(),H3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Of.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Of.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Of.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&AA.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||RP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Of.createIcon=function(e){var r=$0e(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Q0e.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Of.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=AA.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var f=!l.classed("active");l.classed("active",f),s(a,f)}}else{var u=i===null?i:H3.nestedProperty(r,i).get();l.classed("active",u===n),s(a,u===n)}})};Of.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var rde=En(),NP=Ni(),TA=Bt(),tde=Nu().isUnifiedHover,ade=PP(),V3=xA(),nde=_A().DRAW_MODES,ide=zr().extendDeep;IP.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=cde(i):!a.displayModeBar&&a.watermark?o=[]:o=ode(r),n?n.update(r,o):t._modeBar=ade(r,o)};function ode(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n($,j){if(typeof j=="string"){if(j.toLowerCase()===$.toLowerCase())return!0}else{var se=j.name,le=j._cat||j.name;if(se===$||le===$.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function($){for(var j=0;j1?(P=["toggleHover"],O=["resetViews"]):c?(R=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],O=["resetGeo"]):u?(P=["hoverClosest3d"],O=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(R=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],O=["resetViewMapbox"]):y?(R=["zoomInMap","zoomOutMap"],P=["toggleHover"],O=["resetViewMap"]):v?P=["hoverClosestPie"]:_?(P=["hoverClosestCartesian","hoverCompareCartesian"],O=["resetViewSankey"]):P=["toggleHover"],f&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(fde(t)||A)&&(P=[]),f&&!x&&(R=["zoomIn2d","zoomOut2d","autoScale2d"],O[0]!=="resetViews"&&(O=["resetScale2d"])),u?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:f&&!x||p?F=["zoom2d","pan2d"]:m||y||c?F=["pan2d"]:b&&(F=["zoom2d"]),sde(t)&&F.push("select2d","lasso2d");var H=[],W=function($){H.indexOf($)===-1&&P.indexOf($)!==-1&&H.push($)};if(Array.isArray(l)){for(var ee=[],te=0;te{"use strict";BP.exports={moduleType:"component",name:"modebar",layoutAttributes:wA(),supplyLayoutDefaults:DP(),manage:OP()}});var SA=N((CDe,zP)=>{"use strict";var vde=ao().FROM_BL;zP.exports=function(r,t,a){a===void 0&&(a=vde[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Py=N(qy=>{"use strict";var r0=zr(),EA=Nd(),Gs=En().id2name,hde=Vl(),GP=SA(),dde=$2(),pde=ri().ALMOST_EQUAL,yde=ao().FROM_BL;qy.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,f,u,c,v,d,p;for(l=0;li?t.slice(i):a.slice(n))+o}function gde(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;opde*p&&!T)){for(i=0;iF&&seP&&(P=se);var Ee=(P-R)/(2*O);c/=Ee,R=s.l2r(R),P=s.l2r(P),s.range=s._input.range=E{"use strict";var W3=ca(),xo=Bt(),Tl=_i(),Zl=zr(),LA=no(),DA=A3(),Ny=va(),Jd=Va(),YP=yy(),$P=MA(),Iy=hn(),Gu=ao(),JP=Py(),bde=JP.enforce,xde=JP.clean,WP=Nd().doAutoRange,QP="start",_de="middle",KP="end",wde=ci().zindexSeparator;Ti.layoutStyles=function(e){return Zl.syncOrAsync([Tl.doAutoMargin,Tde],e)};function Ade(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Tde(e){var r=e._fullLayout,t=r._size,a=t.p,n=Iy.list(e,"",!0),i,o,l,s,f,u;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(Jd.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Ti.drawMainTitle(e),$P.manage(e),!r._has("cartesian"))return Tl.previousPromises(e);function c(Ye,re,de){var ne=Ye._lw/2;if(Ye._id.charAt(0)==="x"){if(re){if(de==="top")return re._offset-a-ne}else return t.t+t.h*(1-(Ye.position||0))+ne%1;return re._offset+re._length+a+ne}if(re){if(de==="right")return re._offset+re._length+a+ne}else return t.l+t.w*(Ye.position||0)+ne%1;return re._offset-a-ne}for(i=0;i0){kde(e,i,f,s),l.attr({x:o,y:i,"text-anchor":a,dy:ZP(r.yanchor)}).call(LA.positionText,o,i);var u=(r.text.match(LA.BR_TAG_ALL)||[]).length;if(u){var c=Gu.LINE_SPACING*u+Gu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=W3.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+YP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:ZP(r.yanchor)}).call(LA.positionText,o,m)}}}};function Mde(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Zl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return Zl.isTopAnchor(r)&&t==="t"||Zl.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Sde(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function kde(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Mde(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Tl.allowAutoMargin(e,n),Tl.autoMargin(e,n,l)}function Cde(e,r){var t=e.title,a=e._size,n=0;return r===QP?n=t.pad.l:r===KP&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function Lde(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Gu.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function ZP(e){return e==="top"?Gu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Gu.MID_SHIFT+"em"}function Dde(e){var r=e.title,t=_de;return Zl.isRightAnchor(r)?t=KP:Zl.isLeftAnchor(r)&&(t=QP),t}function Rde(e){var r=e.title,t="0em";return Zl.isTopAnchor(r)?t=Gu.CAP_SHIFT+"em":Zl.isMiddleAnchor(r)&&(t=Gu.MID_SHIFT+"em"),t}Ti.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Fde=tv().readPaths,qde=q3(),eN=Yc().clearOutlineControllers,RA=va(),rN=Va(),Pde=$a().arrayEditor,tN=iv(),Nde=tN.getPathString;nN.exports={draw:X3,drawOne:aN,activateLastSelection:Bde};function X3(e){var r=e._fullLayout;eN(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:f).call(RA.stroke,c).call(RA.fill,u).call(rN.dashLine,y?"solid":d,y?4+v:v);if(Ide(b,e,a),p){var T=Pde(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=Fde(l,e);qde(x,b,_)}else b.style("pointer-events",y?"all":"none");m[y]=b}var A=m[0],E=m[1];E.node().addEventListener("click",function(){return Ode(e,A)})}}function Ide(e,r,t){var a=t.xref+t.yref;rN.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Ode(e,r){if(Z3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){FA(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=FA,X3(e)}}}function Bde(e){if(Z3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=FA,X3(e)}}function FA(e){if(Z3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(eN(e),delete e._fullLayout._activeSelectionIndex,X3(e))}}});var oN=N((FDe,iN)=>{function zde(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}iN.exports=zde});var sN=N((qDe,lN)=>{function Gde(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],f=t[0],u=t[1];return(l-i)*(u-o)-(s-o)*(f-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],f=l*o+i*s;if(f-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-u)*(i-c)/(l-c)+u-n>e&&(s=!s),o=u,l=c}return s}};return r}lN.exports=Gde});var uN=N((PDe,fN)=>{var Ude={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};fN.exports=Ude});var vN=N((NDe,cN)=>{var Oy=uN();function Hde(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Oy.create();function o(p,m,y,b,T,_){var x=r.pointsCompare(m,T);return x!==0?x:r.pointsSame(y,_)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(y,b?T:_,b?_:T)?1:-1}function l(p,m){i.insertBefore(p,function(y){var b=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return b<0})}function s(p,m){var y=Oy.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function f(p,m,y){var b=Oy.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=b,l(b,p.pt)}function u(p,m){var y=s(p,m);return f(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),u(y,p.primary)}function d(p,m){var y=Oy.create();function b(ee,te){var Q=ee.seg.start,$=ee.seg.end,j=te.seg.start,se=te.seg.end;return r.pointsCollinear(Q,j,se)?r.pointsCollinear($,j,se)||r.pointAboveOrOnLine($,j,se)?1:-1:r.pointAboveOrOnLine(Q,j,se)?1:-1}function T(ee){return y.findTransition(function(te){var Q=b(ee,te.ev);return Q>0})}function _(ee,te){var Q=ee.seg,$=te.seg,j=Q.start,se=Q.end,le=$.start,Ee=$.end;t&&t.checkIntersection(Q,$);var Ge=r.linesIntersect(j,se,le,Ee);if(Ge===!1){if(!r.pointsCollinear(j,se,le)||r.pointsSame(j,Ee)||r.pointsSame(se,le))return!1;var Le=r.pointsSame(j,le),Ue=r.pointsSame(se,Ee);if(Le&&Ue)return te;var xe=!Le&&r.pointBetween(j,le,Ee),ur=!Ue&&r.pointBetween(se,le,Ee);if(Le)return ur?v(te,se):v(ee,Ee),te;xe&&(Ue||(ur?v(te,se):v(ee,Ee)),v(te,j))}else Ge.alongA===0&&(Ge.alongB===-1?v(ee,le):Ge.alongB===0?v(ee,Ge.pt):Ge.alongB===1&&v(ee,Ee)),Ge.alongB===0&&(Ge.alongA===-1?v(te,j):Ge.alongA===0?v(te,Ge.pt):Ge.alongA===1&&v(te,se));return!1}for(var x=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let ee=function(){if(M){var te=_(A,M);if(te)return te}return k?_(A,k):!1};var W=ee;t&&t.segmentNew(A.seg,A.primary);var E=T(A),M=E.before?E.before.ev:null,k=E.after?E.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,k?k.seg:!1);var R=ee();if(R){if(e){var P;A.seg.myFill.below===null?P=!0:P=A.seg.myFill.above!==A.seg.myFill.below,P&&(R.seg.myFill.above=!R.seg.myFill.above)}else R.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(R.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var P;A.seg.myFill.below===null?P=!0:P=A.seg.myFill.above!==A.seg.myFill.below,k?A.seg.myFill.below=k.seg.myFill.above:A.seg.myFill.below=p,P?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var O;k?A.primary===k.primary?O=k.seg.otherFill.above:O=k.seg.myFill.above:O=A.primary?m:p,A.seg.otherFill={above:O,below:O}}t&&t.status(A.seg,M?M.seg:!1,k?k.seg:!1),A.other.status=E.insert(Oy.node({ev:A}))}else{var F=A.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(F.prev)&&y.exists(F.next)&&_(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!A.primary){var H=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=H}x.push(A.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var m,y=p[p.length-1],b=0;b{function Vde(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},u=s;function c(W,ee,te){return u.index=W,u.matches_head=ee,u.matches_pt1=te,u===s?(u=f,!1):(u=null,!0)}for(var v=0;v{function By(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var Yde={union:function(e,r){return By(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return By(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return By(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return By(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return By(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};pN.exports=Yde});var gN=N((BDe,mN)=>{var Wde={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var u=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[u]})}for(var l=o(i[0]),s=1;s{var jde=oN(),Xde=sN(),bN=vN(),Zde=dN(),zy=yN(),xN=gN(),$l=!1,Gy=Xde(),el;el={buildLog:function(e){return e===!0?$l=jde():e===!1&&($l=!1),$l===!1?!1:$l.list},epsilon:function(e){return Gy.epsilon(e)},segments:function(e){var r=bN(!0,Gy,$l);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=bN(!1,Gy,$l);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:zy.union(e.combined,$l),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:zy.intersect(e.combined,$l),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:zy.difference(e.combined,$l),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:zy.differenceRev(e.combined,$l),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:zy.xor(e.combined,$l),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Zde(e.segments,Gy,$l),inverted:e.inverted}},polygonFromGeoJSON:function(e){return xN.toPolygon(el,e)},polygonToGeoJSON:function(e){return xN.fromPolygon(el,Gy,e)},union:function(e,r){return Uy(e,r,el.selectUnion)},intersect:function(e,r){return Uy(e,r,el.selectIntersect)},difference:function(e,r){return Uy(e,r,el.selectDifference)},differenceRev:function(e,r){return Uy(e,r,el.selectDifferenceRev)},xor:function(e,r){return Uy(e,r,el.selectXor)}};function Uy(e,r,t){var a=el.segments(e),n=el.segments(r),i=el.combine(a,n),o=t(i);return el.polygon(o)}typeof window=="object"&&(window.PolyBool=el);_N.exports=el});var TN=N((GDe,AN)=>{AN.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,f=0,u=s-1;fo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var NA=N((UDe,MN)=>{"use strict";var PA=Kg().dot,$3=ri().BADNUM,J3=MN.exports={};J3.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===$3||bo||m&&f(p))}function c(p,m){var y=p[0],b=p[1];if(y===$3||yn||b===$3||bo)return!1;var T=t.length,_=t[0][0],x=t[0][1],A=0,E,M,k,R,P;for(E=1;EMath.max(M,_)||b>Math.max(k,x)))if(bl||Math.abs(PA(c,f))>n)return!0;return!1};J3.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var f=a.length,u=n;a.splice(i+1);for(var c=u+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var EN=N((HDe,SN)=>{"use strict";SN.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var ZN=N((VDe,XN)=>{"use strict";var kN=wN(),$de=TN(),Yy=Bt(),Jde=Va().dashStyle,Hy=va(),Qde=Ou(),Kde=Nu().makeEventData,$y=rv(),epe=$y.freeMode,rpe=$y.rectMode,Wy=$y.drawMode,zA=$y.openMode,GA=$y.selectMode,CN=iv(),LN=Dy(),PN=q3(),NN=Yc().clearOutline,IN=tv(),IA=IN.handleEllipse,tpe=IN.readPaths,ape=D3().newShapes,npe=uA(),ipe=qA().activateLastSelection,K3=zr(),ope=K3.sorterAsc,ON=NA(),Vy=h2(),Jl=En().getFromId,lpe=A3(),spe=j3().redrawReglTraces,eb=EN(),Bf=eb.MINSELECT,fpe=ON.filter,UA=ON.tester,HA=E3(),DN=HA.p2r,upe=HA.axValue,cpe=HA.getTransform;function VA(e){return e.subplot!==void 0}function vpe(e,r,t,a,n){var i=!VA(a),o=epe(n),l=rpe(n),s=zA(n),f=Wy(n),u=GA(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,m=p._fullLayout,y=u&&m.newselection.mode==="immediate"&&i,b=m._zoomlayer,T=a.element.getBoundingClientRect(),_=a.plotinfo,x=cpe(_),A=r-T.left,E=t-T.top;m._calcInverseTransform(p);var M=K3.apply3DTransform(m._invTransform)(A,E);A=M[0],E=M[1];var k=m._invScaleX,R=m._invScaleY,P=A,O=E,F="M"+A+","+E,H=a.xaxes[0],W=a.yaxes[0],ee=H._length,te=W._length,Q=e.altKey&&!(Wy(n)&&s),$,j,se,le,Ee,Ge,Le;zN(e,p,a),o&&($=fpe([[A,E]],eb.BENDPX));var Ue=b.selectAll("path.select-outline-"+_.id).data([1]),xe=f?m.newshape:m.newselection;f&&(a.hasText=xe.label.text||xe.label.texttemplate);var ur=f&&!s?xe.fillcolor:"rgba(0,0,0,0)",Oe=xe.line.color||(i?Hy.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");Ue.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:f?xe.opacity/2:1,"stroke-dasharray":Jde(xe.line.dash,xe.line.width),"stroke-width":xe.line.width+"px","shape-rendering":"crispEdges"}).call(Hy.stroke,Oe).call(Hy.fill,ur).attr("fill-rule","evenodd").classed("cursor-move",!!f).attr("transform",x).attr("d",F+"Z");var He=b.append("path").attr("class","zoombox-corners").style({fill:Hy.background,stroke:Hy.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(f&&a.hasText){var xr=b.select(".label-temp");xr.empty()&&(xr=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ye=m._uid+eb.SELECTID,re=[],de=rb(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Re=H._id,Je=W._id;YN(p,Re,Je,de);for(var Ke=(p.layout||{}).selections||[],Cr=[],Ar=!1,gr=0;gr=0){p._fullLayout._deactivateShape(p);return}if(!f){var Ke=m.clickmode;Vy.done(Ye).then(function(){if(Vy.clear(Ye),Re===2){for(Ue.remove(),Ee=0;Ee-1&&BN(Je,p,a.xaxes,a.yaxes,a.subplot,a,Ue),Ke==="event"&&Zy(p,void 0);Qde.click(p,Je,_.id)}).catch(K3.error)}},a.doneFn=function(){He.remove(),Vy.done(Ye).then(function(){Vy.clear(Ye),!y&&le&&a.selectionDefs&&(le.subtract=Q,a.selectionDefs.push(le),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,se)),(y||f)&&jy(a,y),a.doneFnCompleted&&a.doneFnCompleted(re),u&&Zy(p,Le)}).catch(K3.error)}}function BN(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,f=s.clickmode,u=f.indexOf("event")>-1,c=[],v,d,p,m,y,b,T,_,x,A;if(mpe(l)){zN(e,r,i),v=rb(r,t,a,n);var E=gpe(l,v),M=E.pointNumbers.length>0;if(M?bpe(v,E):xpe(v)&&(T=FN(E))){for(o&&o.remove(),A=0;A=0}function ype(e){return e._fullLayout._activeSelectionIndex>=0}function jy(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;ppe(n)&&n._fullLayout._deactivateShape(n),ype(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Wy(t),s=GA(t);if(l||s){var f=o.selectAll(".select-outline-"+a.id);if(f&&n._fullLayout._outlining){var u;l&&(u=ape(f,e)),u&&Yy.call("_guiRelayout",n,{shapes:u});var c;s&&!VA(e)&&(c=npe(f,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Yy.call("_guiRelayout",n,{selections:c}).then(function(){r&&ipe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function RN(e){return e._id}function rb(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(RN),o=t.map(RN),l,s,f;for(f=0;f0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function bpe(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Xy(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var Re=qN(e,!0);if(Re.length){var Je=Re[0].xref,Ke=Re[0].yref;if(Je&&Ke){var Cr=WN(Re),Ar=jN([Jl(e,Je,"x"),Jl(e,Ke,"y")]);Ar(re,Cr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ne&&Zy(e,re),v._reselect=!1}if(!o&&v._deselect){var gr=v._deselect;l=gr.xref,s=gr.yref,Ape(l,s,u)||YN(e,l,s,a),ne&&(re.points.length?Zy(e,re):jA(e)),v._deselect=!1}return{eventData:re,selectionTesters:t}}function wpe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";$N.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Jy=N((WDe,JN)=>{"use strict";JN.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var Qd=N((XDe,eI)=>{"use strict";var QN=XA(),KN=Ui(),tb=ci(),kpe=$a().templatedArray,jDe=Jy();eI.exports=kpe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:KN({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:QN.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:QN.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",tb.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",tb.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",tb.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",tb.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:KN({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Qy=N((ZDe,rI)=>{"use strict";rI.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var ZA=N(($De,tI)=>{"use strict";tI.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var lv=N((JDe,uI)=>{"use strict";var aI=vy().axisHoverFormat,{hovertemplateAttrs:Cpe,texttemplateAttrs:Lpe,templatefallbackAttrs:nI}=hd(),iI=Nh(),Dpe=Ui(),oI=Nc().dash,Rpe=Nc().pattern,Fpe=Va(),qpe=Qy(),Ky=Un().extendFlat,Ppe=ZA();function lI(e){return{valType:"any",dflt:0,editType:"calc"}}function sI(e){return{valType:"any",editType:"calc"}}function fI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}uI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:lI("x"),yperiod:lI("y"),xperiod0:sI("x0"),yperiod0:sI("y0"),xperiodalignment:fI("x"),yperiodalignment:fI("y"),xhoverformat:aI("x"),yhoverformat:aI("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Lpe(),texttemplatefallback:nI({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Cpe({},{keys:qpe.eventDataKeys}),hovertemplatefallback:nI(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Ky({},oI,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Ppe(!0),fillgradient:Ky({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Rpe,marker:Ky({symbol:{valType:"enumerated",values:Fpe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Ky({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Ky({},oI,{arrayOk:!0}),editType:"calc"},iI("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},iI("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Dpe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var $A=N((KDe,hI)=>{"use strict";var cI=Qd(),vI=lv().line,Npe=Nc().dash,ab=Un().extendFlat,Ipe=Fs().overrideAll,Ope=$a().templatedArray,QDe=Jy();hI.exports=Ipe(Ope("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:ab({},cI.xref,{}),yref:ab({},cI.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:vI.color,width:ab({},vI.width,{min:1,dflt:1}),dash:ab({},Npe,{dflt:"dot"})}}),"arraydraw","from-root")});var mI=N((eRe,yI)=>{"use strict";var dI=zr(),nb=hn(),Bpe=bl(),zpe=$A(),pI=iv();yI.exports=function(r,t){Bpe(r,t,{name:"selections",handleItemDefaults:Gpe});for(var a=t.selections,n=0;n{"use strict";gI.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var em=N((tRe,wI)=>{"use strict";var Upe=Bt(),xI=zr(),_I=En();wI.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Upe.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,f=s.xaxis,u=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var AI=qA(),rm=ZN();TI.exports={moduleType:"component",name:"selections",layoutAttributes:$A(),supplyLayoutDefaults:mI(),supplyDrawNewSelectionDefaults:bI(),includeBasePlot:em()("selections"),draw:AI.draw,drawOne:AI.drawOne,reselect:rm.reselect,prepSelect:rm.prepSelect,clearOutline:rm.clearOutline,clearSelectionsCache:rm.clearSelectionsCache,selectOnClick:rm.selectOnClick}});var YI=N((nRe,VI)=>{"use strict";var r6=ca(),Ql=zr(),MI=Ql.numberFormat,Hpe=Ls(),Vpe=Fw(),ib=Bt(),qI=Ql.strTranslate,Ype=no(),SI=va(),sv=Va(),Wpe=Ou(),EI=hn(),jpe=Kc(),Xpe=Bs(),PI=rv(),ob=PI.selectingOrDrawing,Zpe=PI.freeMode,$pe=ao().FROM_TL,Jpe=A3(),Qpe=j3().redrawReglTraces,Kpe=_i(),QA=En().getFromId,e1e=Kd().prepSelect,r1e=Kd().clearOutline,t1e=Kd().selectOnClick,JA=SA(),t6=ci(),kI=t6.MINDRAG,Io=t6.MINZOOM,CI=!0;function a1e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,f=o+l==="nsew",u=(o+l).length===1,c,v,d,p,m,y,b,T,_,x,A,E,M,k,R,P,O,F,H,W,ee,te,Q;t+=r.yaxis._shift;function $(){if(c=r.xaxis,v=r.yaxis,_=c._length,x=v._length,b=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var tr=r.overlays,sr=0;sr=0){Gr._fullLayout._deactivateShape(Gr);return}var nt=Gr._fullLayout.clickmode;if(e6(Gr),tr===2&&!u&&rt(),f)nt.indexOf("select")>-1&&t1e(sr,Gr,m,y,r.id,le),nt.indexOf("event")>-1&&Wpe.click(Gr,sr,r.id);else if(tr===1&&u){var Yr=o?v:c,Wr=o==="s"||l==="w"?0:1,xt=Yr._name+".range["+Wr+"]",jr=n1e(Yr,Wr),ot="left",dr="middle";if(Yr.fixedrange)return;o?(dr=o==="n"?"top":"bottom",Yr.side==="right"&&(ot="right")):l==="e"&&(ot="right"),Gr._context.showAxisRangeEntryBoxes&&r6.select(se).call(Ype.makeEditable,{gd:Gr,immediate:!0,background:Gr._fullLayout.paper_bgcolor,text:String(jr),fill:Yr.tickfont?Yr.tickfont.color:"#444",horizontalAlign:ot,verticalAlign:dr}).on("edit",function(Se){var Ie=Yr.d2r(Se);Ie!==void 0&&ib.call("_guiRelayout",Gr,xt,Ie)})}}Xpe.init(le);var Le,Ue,xe,ur,Oe,He,xr,Ye,re,de;function ne(tr,sr,Gr){var nt=se.getBoundingClientRect();Le=sr-nt.left,Ue=Gr-nt.top,e._fullLayout._calcInverseTransform(e);var Yr=Ql.apply3DTransform(e._fullLayout._invTransform)(Le,Ue);Le=Yr[0],Ue=Yr[1],xe={l:Le,r:Le,w:0,t:Ue,b:Ue,h:0},ur=e._hmpixcount?e._hmlumcount/e._hmpixcount:Hpe(e._fullLayout.plot_bgcolor).getLuminance(),Oe="M0,0H"+_+"V"+x+"H0V0",He=!1,xr="xy",de=!1,Ye=OI(s,ur,b,T,Oe),re=BI(s,b,T)}function Re(tr,sr){if(e._transitioningWithDuration)return!1;var Gr=Math.max(0,Math.min(_,te*tr+Le)),nt=Math.max(0,Math.min(x,Q*sr+Ue)),Yr=Math.abs(Gr-Le),Wr=Math.abs(nt-Ue);xe.l=Math.min(Le,Gr),xe.r=Math.max(Le,Gr),xe.t=Math.min(Ue,nt),xe.b=Math.max(Ue,nt);function xt(){xr="",xe.r=xe.l,xe.t=xe.b,re.attr("d","M0,0Z")}if(A.isSubplotConstrained)Yr>Io||Wr>Io?(xr="xy",Yr/_>Wr/x?(Wr=Yr*x/_,Ue>nt?xe.t=Ue-Wr:xe.b=Ue+Wr):(Yr=Wr*_/x,Le>Gr?xe.l=Le-Yr:xe.r=Le+Yr),re.attr("d",lb(xe))):xt();else if(E.isSubplotConstrained)if(Yr>Io||Wr>Io){xr="xy";var jr=Math.min(xe.l/_,(x-xe.b)/x),ot=Math.max(xe.r/_,(x-xe.t)/x);xe.l=jr*_,xe.r=ot*_,xe.b=(1-jr)*x,xe.t=(1-ot)*x,re.attr("d",lb(xe))}else xt();else!k||Wr0){var Se;if(E.isSubplotConstrained||!M&&k.length===1){for(Se=0;Se1&&(xt.maxallowed!==void 0&&P===(xt.range[0]1&&(jr.maxallowed!==void 0&&O===(jr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function o1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function OI(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",qI(t,a)).attr("d",n+"Z")}function BI(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:SI.background,stroke:SI.defaultLine,"stroke-width":1,opacity:0}).attr("transform",qI(r,t)).attr("d","M0,0Z")}function zI(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),GI(e,r,n,i)}function GI(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function e6(e){r6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function UI(e){CI&&e.data&&e._context.showTips&&(Ql.notifier(Ql._(e,"Double-click to zoom back out"),"long",e),CI=!1)}function l1e(e,r){return"M"+(e.l-.5)+","+(r-Io-.5)+"h-3v"+(2*Io+1)+"h3ZM"+(e.r+.5)+","+(r-Io-.5)+"h3v"+(2*Io+1)+"h-3Z"}function s1e(e,r){return"M"+(r-Io-.5)+","+(e.t-.5)+"v-3h"+(2*Io+1)+"v3ZM"+(r-Io-.5)+","+(e.b+.5)+"v3h"+(2*Io+1)+"v-3Z"}function lb(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Io)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function RI(e,r,t,a,n){for(var i=!1,o={},l={},s,f,u,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var f1e=ca(),sb=Ou(),u1e=Bs(),c1e=Kc(),Us=YI().makeDragBox,Mi=ci().DRAGGERSIZE;fb.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){f1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var f=Us(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");f.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&sb.hover(r,v,i)},sb.hover(r,v,i),r._fullLayout._lasthover=f,r._fullLayout._hoversubplot=i},f.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,u1e.unhover(r,v))},r._context.showAxisDragHandles&&(Us(r,o,l._offset-Mi,s._offset-Mi,Mi,Mi,"n","w"),Us(r,o,l._offset+l._length,s._offset-Mi,Mi,Mi,"n","e"),Us(r,o,l._offset-Mi,s._offset+s._length,Mi,Mi,"s","w"),Us(r,o,l._offset+l._length,s._offset+s._length,Mi,Mi,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var u=l._mainLinePosition;l.side==="top"&&(u-=Mi),Us(r,o,l._offset+l._length*.1,u,l._length*.8,Mi,"","ew"),Us(r,o,l._offset,u,l._length*.1,Mi,"","w"),Us(r,o,l._offset+l._length*.9,u,l._length*.1,Mi,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Mi),Us(r,o,c,s._offset+s._length*.1,Mi,s._length*.8,"ns",""),Us(r,o,c,s._offset+s._length*.9,Mi,s._length*.1,"s",""),Us(r,o,c,s._offset,Mi,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,sb.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,sb.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},fb.updateFx(r)}};fb.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";c1e(r._draggers,t)}});var XI=N((oRe,jI)=>{"use strict";var WI=Bt();jI.exports=function(r){for(var t=WI.layoutArrayContainers,a=WI.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var v1e=Fc(),n6=Qg(),tm=Sh(),h1e=J5().sorterAsc,i6=Bt();am.containerArrayMatch=XI();var d1e=am.isAddVal=function(r){return r==="add"||v1e(r)},ZI=am.isRemoveVal=function(r){return r===null||r==="remove"};am.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=i6.getComponentMethod(o,"supplyLayoutDefaults"),s=i6.getComponentMethod(o,"draw"),f=i6.getComponentMethod(o,"drawOne"),u=n.replot||n.recalc||l===n6||s===n6,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&tm.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(ZI(d))t.set(null);else if(Array.isArray(d))t.set(d);else return tm.warn("Unrecognized full array edit value",o,d),!0;return u?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(h1e),m=t.get(),y=m||[],b=i(v,o).get(),T=[],_=-1,x=y.length,A,E,M,k,R,P,O,F;for(A=0;Ay.length-(O?0:1)){tm.warn("index out of range",o,M);continue}if(P!==void 0)R.length>1&&tm.warn("Insertion & removal are incompatible with edits to the same index.",o,M),ZI(P)?T.push(M):O?(P==="add"&&(P={}),y.splice(M,0,P),b&&b.splice(M,0,{})):tm.warn("Unrecognized full object edit value",o,M,P),_===-1&&(_=M);else for(E=0;E=0;A--)y.splice(T[A],1),b&&b.splice(T[A],1);if(y.length?m||t.set(y):t.set(null),u)return!1;if(l(c,v),f!==n6){var H;if(_===-1)H=p;else{for(x=Math.max(y.length,x),H=[],A=0;A=_));A++)H.push(M);for(A=_;A{"use strict";var eO=_a(),rO=Bt(),_o=zr(),nm=_i(),tO=En(),aO=va(),im=tO.cleanId,p1e=tO.getFromTrace,o6=rO.traceIs,y1e=["x","y","z"];Kl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&_o.log("Clearing previous rejected promises from queue."),e._promises=[]};Kl.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(nm.subplotsRegistry.cartesian||{}).attrRegex,n=(nm.subplotsRegistry.polar||{}).attrRegex,i=(nm.subplotsRegistry.ternary||{}).attrRegex,o=(nm.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),aO.clean(e),e.template&&e.template.layout&&Kl.cleanLayout(e.template.layout),e};function ep(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=im(a,n,!0))}Kl.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Kl.hasParent=function(e,r){for(var t=KI(r);t;){if(t in e)return!0;t=KI(t)}return!1};Kl.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>_o.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;a_o.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?l6(n,i):!1))return!1}return!0}return!1};Kl.collectionsAreEqual=l6});var h6=N(ya=>{"use strict";var hb=ca(),b1e=_a(),x1e=u4(),bt=zr(),Ka=bt.nestedProperty,u6=iy(),Oo=IC(),es=Bt(),xb=Md(),zt=_i(),wo=hn(),_1e=Rw(),w1e=Vl(),s6=Va(),A1e=va(),T1e=a6().initInteractions,M1e=Wc(),S1e=Kd().clearOutline,fO=Mh().dfltConfig,cb=$I(),Xn=nO(),Ba=j3(),fv=Fs(),E1e=ci().AX_NAME_PATTERN,f6=0,iO=5;function k1e(e,r,t,a){var n;if(e=bt.getGraphDiv(e),u6.init(e),bt.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=u6.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!bt.isPlotDiv(e)&&bt.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return ya.addFrames(e,n)}cO(e,a),t||(t={}),hb.select(e).classed("js-plotly-plot",!0),s6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Xn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Xn.cleanLayout(t)),zt.supplyDefaults(e);var f=e._fullLayout,u=f._has("cartesian");f._replotting=!0,(s||f._shouldCreateBgLayer)&&(J1e(e),f._shouldCreateBgLayer&&delete f._shouldCreateBgLayer),s6.initGradients(e),s6.initPatterns(e),s&&wo.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function vO(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),pb(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&pb(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function F1e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&u=0&&u0&&typeof k.parts[O]!="string";)O--;var F=k.parts[O],H=k.parts[O-1]+"."+F,W=k.parts.slice(0,O).join("."),ee=Ka(e.layout,W).get(),te=Ka(a,W).get(),Q=k.get();if(R!==void 0){b[M]=R,T[M]=F==="reverse"?R:Uu(Q);var $=xb.getLayoutValObject(a,k.parts);if($&&$.impliedEdits&&R!==null)for(var j in $.impliedEdits)_(bt.relativeAttr(M,j),$.impliedEdits[j]);if(["width","height"].indexOf(M)!==-1)if(R){_("autosize",null);var se=M==="height"?"width":"height";_(se,a[se])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",R?null:a.width),_("height",R?null:a.height);else if(H.match(_O))E(H),Ka(a,W+"._inputRange").set(null);else if(H.match(wO)){E(H),Ka(a,W+"._inputRange").set(null);var le=Ka(a,W).get();le._inputDomain&&(le._input.domain=le._inputDomain.slice())}else H.match(I1e)&&Ka(a,W+"._inputDomain").set(null);if(F==="type"){A=ee;var Ee=te.type==="linear"&&R==="log",Ge=te.type==="log"&&R==="linear";if(Ee||Ge){if(!A||!A.range)_(W+".autorange",!0);else if(te.autorange)Ee&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Le=A.range[0],Ue=A.range[1];Ee?(Le<=0&&Ue<=0&&_(W+".autorange",!0),Le<=0?Le=Ue/1e6:Ue<=0&&(Ue=Le/1e6),_(W+".range[0]",Math.log(Le)/Math.LN10),_(W+".range[1]",Math.log(Ue)/Math.LN10)):(_(W+".range[0]",Math.pow(10,Le)),_(W+".range[1]",Math.pow(10,Ue)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[k.parts[0]]&&k.parts[1]==="radialaxis"&&delete a[k.parts[0]]._subplot.viewInitial["radialaxis.range"],es.getComponentMethod("annotations","convertCoords")(e,te,R,_),es.getComponentMethod("images","convertCoords")(e,te,R,_)}else _(W+".autorange",!0),_(W+".range",null);Ka(a,W+"._inputRange").set(null)}else if(F.match(E1e)){var xe=Ka(a,M).get(),ur=(R||{}).type;(!ur||ur==="-")&&(ur="linear"),es.getComponentMethod("annotations","convertCoords")(e,xe,ur,_),es.getComponentMethod("images","convertCoords")(e,xe,ur,_)}var Oe=cb.containerArrayMatch(M);if(Oe){u=Oe.array,c=Oe.index;var He=Oe.property,xr=$||{editType:"calc"};c!==""&&He===""&&(cb.isAddVal(R)?T[M]=null:cb.isRemoveVal(R)?T[M]=(Ka(t,u).get()||[])[c]:bt.warn("unrecognized full object value",r)),fv.update(y,xr),f[u]||(f[u]={});var Ye=f[u][c];Ye||(Ye=f[u][c]={}),Ye[He]=R,delete r[M]}else F==="reverse"?(ee.range?ee.range.reverse():(_(W+".autorange",!0),ee.range=[1,0]),te.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(R===!1&&Q!==!1||R!==!1&&Q===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(R==="lasso"||R==="select")&&!(Q==="lasso"||Q==="select")?y.plot=!0:$?fv.update(y,$):y.calc=!0,k.set(R))}}for(u in f){var re=cb.applyContainerArrayChanges(e,i(t,u),f[u],y,i);re||(y.plot=!0)}for(var de in x){A=wo.getFromId(e,de);var ne=A&&A._constraintGroup;if(ne){y.calc=!0;for(var Re in ne)x[Re]||(wo.getFromId(e,Re)._constraintShrinkable=!0)}}(TO(e)||r.height||r.width)&&(y.plot=!0);var Je=a.shapes;for(c=0;c1;)if(a.pop(),t=Ka(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function z1e(e,r){for(var t=0;t[W,e._ev.listeners(W)]);i=ya.newPlot(e,r,t,a).then(()=>{for(let[W,ee]of H)ee.forEach(te=>e.on(W,te));return ya.react(e,r,t,a)})}else{e.data=r||[],Xn.cleanData(e.data),e.layout=t||{},Xn.cleanLayout(e.layout),U1e(e.data,e.layout,l,s),zt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,m=Y1e(e,s,v,d,p),y=m.newDataRevision,b=V1e(e,l,c,d,p,y);if(TO(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),_=0;_(u||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function V1e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=fv.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,f;function u(d){var p=xb.getTraceValObject(f,d);return!f._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:u,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[f]:n}function l(f){return Array.isArray(i)?f>=i.length?i[0]:i[f]:i}function s(f,u){var c=0;return function(){if(f&&++c===u)return f()}}return new Promise(function(f,u){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(F){if(F.length!==0){for(var H=0;Ha._timeToNext&&p()};F()}var y=0;function b(F){return Array.isArray(n)?y>=n.length?F.transitionOpts=n[y]:F.transitionOpts=n[0]:F.transitionOpts=n,y++,F}var T,_,x=[],A=r==null,E=Array.isArray(r),M=!A&&!E&&bt.isPlainObject(r);if(M)x.push({type:"object",data:b(bt.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&PP)&&O.push(_);x=O}}x.length>0?v(x):(e.emit("plotly_animated"),f())})}function j1e(e,r,t){if(e=bt.getGraphDiv(e),r==null)return Promise.resolve();if(!bt.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var f=l.length+r.length*2,u=[],c={};for(a=r.length-1;a>=0;a--)if(bt.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&f6k.index?-1:M.index=0;a--){if(n=u[a].frame,typeof n.name=="number"&&bt.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=zt.modifyFrames,s=zt.modifyFrames,f=[e,o],u=[e,i];return Oo&&Oo.add(e,l,f,s,u),zt.modifyFrames(e,i)}function Z1e(e){e=bt.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return zt.cleanPlot([],{},t,r),zt.purge(e),u6.purge(e),r._container&&r._container.remove(),delete e._context,e}function $1e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!bt.equalDomRects(t,r._lastBBox)){var a=r._invTransform=bt.inverseTransformMatrix(bt.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function J1e(e){var r=hb.select(e),t=e._fullLayout;if(t._calcInverseTransform=$1e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};hb.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=bt.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(M1e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}ya.animate=W1e;ya.addFrames=j1e;ya.deleteFrames=X1e;ya.addTraces=mO;ya.deleteTraces=gO;ya.extendTraces=pO;ya.moveTraces=c6;ya.prependTraces=yO;ya.newPlot=R1e;ya._doPlot=k1e;ya.purge=Z1e;ya.react=H1e;ya.redraw=D1e;ya.relayout=om;ya.restyle=yb;ya.setPlotConfig=C1e;ya.update=gb;ya._guiRelayout=v6(om);ya._guiRestyle=v6(yb);ya._guiUpdate=v6(gb);ya._storeDirectGUIEdit=N1e});var t0=N(zf=>{"use strict";var Q1e=Bt();zf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};zf.getRedrawFunc=function(e){return function(){Q1e.getComponentMethod("colorbar","draw")(e)}};zf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};zf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var MO=window.URL||window.webkitURL;zf.createObjectURL=function(e){return MO.createObjectURL(e)};zf.revokeObjectURL=function(e){return MO.revokeObjectURL(e)};zf.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=K1e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};zf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function K1e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var p6=ca(),cRe=zr(),eye=Va(),rye=va(),vRe=Wc(),d6=/"/g,a0="TOBESTRIPPED",tye=new RegExp(`("${a0})|(${a0}")|("${a0})|(${a0}")`,"g"),aye=["&","&","&",""",""",""","'","'","'"],nye=["<","<","<"],iye=[">",">",">"];function oye(e){let r=p6.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return aye.includes(n)?a:nye.includes(n)?"<":iye.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function lye(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}SO.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,f;i.insert("rect",":first-child").call(eye.setRect,0,0,l,s).call(rye.fill,n.paper_bgcolor);var u=n._basePlotModules||[];for(f=0;f{"use strict";var sye=zr(),fye=x2().EventEmitter,sm=t0();function uye(e){var r=e.emitter||new fye,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,f=e.scale||1,u=e.width||300,c=e.height||150,v=f*u,d=f*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,b;l==="svg"||sye.isSafari()?b=sm.encodeSVG(o):(y=sm.createBlob(o,"svg"),b=sm.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var T;switch(y=null,sm.revokeObjectURL(b),l!=="svg"&&p.drawImage(m,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=b;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(T),e.promise||r.emit("success",T)},m.onerror=function(T){if(y=null,sm.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},m.src=b});return e.promise?t:r}EO.exports=uye});var m6=N((pRe,LO)=>{"use strict";var kO=_a(),CO=h6(),cye=_i(),Gf=zr(),fm=t0(),vye=wb(),hye=Ab(),dye=U1().version,y6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function pye(e,r){r=r||{};var t,a,n,i;Gf.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Gf.getGraphDiv(e),t=Gf.extendDeep([],e.data),a=Gf.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(E){return!(E in r)||Gf.validate(r[E],y6[E])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Gf.join2(y6.format.values,", "," or ")+".");var l={};function s(E,M){return Gf.coerce(r,l,y6,E,M)}var f=s("format"),u=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Gf.extendFlat({},a);u?y.width=u:r.width===null&&kO(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&kO(i.height)&&(y.height=i.height);var b=Gf.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=fm.getRedrawFunc(m);function _(){return new Promise(function(E){setTimeout(E,fm.getDelay(m._fullLayout))})}function x(){return new Promise(function(E,M){var k=vye(m,f,v),R=m._fullLayout.width,P=m._fullLayout.height;function O(){CO.purge(m),document.body.removeChild(m)}if(f==="full-json"){var F=cye.graphJson(m,!1,"keepdata","object",!0,!0);return F.version=dye,F=JSON.stringify(F),O(),E(p?F:fm.encodeJSON(F))}if(O(),f==="svg")return E(p?k:fm.encodeSVG(k));var H=document.createElement("canvas");H.id=Gf.randstr(),hye({format:f,width:R,height:P,scale:v,canvas:H,svg:k,promise:!0}).then(E).catch(M)})}function A(E){return p?E.replace(fm.IMAGE_URL_PREFIX,""):E}return new Promise(function(E,M){CO.newPlot(m,t,y,b).then(T).then(_).then(x).then(function(k){E(A(k))}).catch(function(k){M(k)})})}LO.exports=pye});var FO=N((yRe,RO)=>{"use strict";var rs=zr(),yye=_i(),mye=Md(),gye=Mh().dfltConfig,Hs=rs.isPlainObject,i0=Array.isArray,g6=rs.isArrayOrTypedArray;RO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=mye.get(),n=[],i={_context:rs.extendFlat({},gye)},o,l;i0(r)?(i.data=rs.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Si("array","data"))),Hs(t)?(i.layout=rs.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Si("object","layout"))),yye.supplyDefaults(i);for(var s=i._fullData,f=o.length,u=0;uc.length&&a.push(Si("unused",n,f.concat(c.length)));var b=c.length,T=Array.isArray(y);T&&(b=Math.min(b,y.length));var _,x,A,E,M;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(Si("unused",n,f.concat(x,c[x].length)));var k=c[x].length;for(_=0;_<(T?Math.min(k,y[x].length):k);_++)A=T?y[x][_]:y,E=u[x][_],M=c[x][_],rs.validate(E,A)?M!==E&&M!==+E&&a.push(Si("dynamic",n,f.concat(x,_),E,M)):a.push(Si("value",n,f.concat(x,_),E))}else a.push(Si("array",n,f.concat(x),u[x]));else for(x=0;x{"use strict";var Mye=zr(),Mb=t0();function Sye(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,f;if(n)return s=Mb.createBlob(e,t),f=Mb.createObjectURL(s),a.href=f,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Mb.revokeObjectURL(f),s=null,o(r);if(Mye.isSafari()){var u=t==="svg"?",":";base64,";return Mb.octetStream(u+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}qO.exports=Sye});var b6=N((bRe,IO)=>{"use strict";var NO=zr(),Eye=m6(),kye=PO(),gRe=t0();function Cye(e,r){var t;return NO.isPlainObject(e)||(t=NO.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Eye(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),kye(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}IO.exports=Cye});var UO=N(x6=>{"use strict";var rl=zr(),tl=rl.isPlainObject,OO=Md(),BO=_i(),Lye=Ds(),zO=$a(),GO=Mh().dfltConfig;x6.makeTemplate=function(e){e=rl.isPlainObject(e)?e:rl.getGraphDiv(e),e=rl.extendDeep({_context:GO},{data:e.data,layout:e.layout}),BO.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};um(d,p,Rye.bind(null,d));var m=rl.coerce(d,{},Lye,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),um(t,a.layout,Dye.bind(null,t)),delete a.layout.template;var n=t.template;if(tl(n)){var i=n.layout,o,l,s,f,u,c;tl(i)&&Sb(i,a.layout);var v=n.data;if(tl(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(u=a.data[l],c=u.length,f=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function T(_,x){for(var A in _)if(A.charAt(0)!=="_"){var E=_[A],M=ts(_,A,x);tl(E)?(Array.isArray(_)&&E._template===!1&&E.templateitemname&&o.push({code:"missing",path:M,templateitemname:E.templateitemname}),T(E,M)):Array.isArray(E)&&Fye(E)&&T(E,M)}}if(T({data:s,layout:l},""),o.length)return o.map(qye)};function Fye(e){for(var r=0;r{"use strict";var vi=h6();pn._doPlot=vi._doPlot;pn.newPlot=vi.newPlot;pn.restyle=vi.restyle;pn.relayout=vi.relayout;pn.redraw=vi.redraw;pn.update=vi.update;pn._guiRestyle=vi._guiRestyle;pn._guiRelayout=vi._guiRelayout;pn._guiUpdate=vi._guiUpdate;pn._storeDirectGUIEdit=vi._storeDirectGUIEdit;pn.react=vi.react;pn.extendTraces=vi.extendTraces;pn.prependTraces=vi.prependTraces;pn.addTraces=vi.addTraces;pn.deleteTraces=vi.deleteTraces;pn.moveTraces=vi.moveTraces;pn.purge=vi.purge;pn.addFrames=vi.addFrames;pn.deleteFrames=vi.deleteFrames;pn.animate=vi.animate;pn.setPlotConfig=vi.setPlotConfig;var Pye=J1().getGraphDiv,Nye=B3().eraseActiveShape;pn.deleteActiveShape=function(e){return Nye(Pye(e))};pn.toImage=m6();pn.validate=FO();pn.downloadImage=b6();var HO=UO();pn.makeTemplate=HO.makeTemplate;pn.validateTemplate=HO.validateTemplate});var w6=N((wRe,YO)=>{"use strict";var _6=zr(),Iye=Bt();YO.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Iye.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var f=_6.minRowLength(i);o?l=Math.min(f,_6.minRowLength(o)):(l=f,n("y0"),n("dy"))}else{if(!o)return 0;l=_6.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var A6=N((ARe,XO)=>{"use strict";var WO=zr().dateTick0,Oye=ri(),Bye=Oye.ONEWEEK;function jO(e,r){return e%Bye===0?WO(r,1):WO(r,0)}XO.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",jO(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",jO(l,t.ycalendar)),n("yperiodalignment"))}}});var JO=N((TRe,$O)=>{"use strict";var ZO=["orientation","groupnorm","stackgaps"];$O.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var f=s[o],u=!1;f?f.traces.push(t):(f=s[o]={traceIndices:[],traces:[t]},u=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var QO=va(),KO=Is().hasColorscale,eB=Cd(),zye=Ni();rB.exports=function(r,t,a,n,i,o={}){var l=zye.isBubble(r),s=(r.line||{}).color,f;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),KO(r,"marker")&&eB(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?f=s:l?f=QO.background:f=QO.defaultLine,i("marker.line.color",f),KO(r,"marker.line")&&eB(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var u=i("marker.gradient.type");u!=="none"&&i("marker.gradient.color")}}});var T6=N((SRe,tB)=>{"use strict";var Gye=zr().isArrayOrTypedArray,Uye=Is().hasColorscale,Hye=Cd();tB.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),Uye(r,"line"))Hye(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Gye(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var nB=N((ERe,aB)=>{"use strict";aB.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var M6=N((kRe,iB)=>{"use strict";var Vye=zr();iB.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Vye.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var S6=N((CRe,lB)=>{"use strict";var Cb=va(),oB=zr().isArrayOrTypedArray;function Yye(e){for(var r=Cb.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var sB=zr(),Wye=Bt(),jye=lv(),Xye=Qy(),rp=Ni(),Zye=w6(),$ye=A6(),Jye=JO(),Qye=kb(),Kye=T6(),fB=nB(),eme=M6(),rme=S6(),tme=zr().coercePattern;uB.exports=function(r,t,a,n){function i(d,p){return sB.coerce(r,t,jye,d,p)}var o=Zye(r,t,n,i);if(o||(t.visible=!1),!!t.visible){$ye(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Jye(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var ame=Py().getAxisGroup;vB.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=ame(a,l)+o,f=a._alignmentOpts||{},u=n("alignmentgroup"),c=f[s];c||(c=f[s]={});var v=c[u];v?v.traces.push(t):v=c[u]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var E6=N((RRe,dB)=>{"use strict";var nme=zr(),ime=hB(),ome=lv();dB.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return nme.coerce(n._input,n,ome,v)}if(t.scattermode==="group")for(i=0;i=0;u--){var c=r[u];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var yB=N((FRe,pB)=>{"use strict";var lme=zr(),sme=M2();pB.exports=function(e,r){function t(n,i){return lme.coerce(e,r,sme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var k6=N((qRe,gB)=>{"use strict";var fme=_a(),mB=zr(),ume=mB.dateTime2ms,Lb=mB.incrementMonth,cme=ri(),vme=cme.ONEAVGMONTH;gB.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(fme(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var f=t.calendar,u=i==="start",c=i==="end",v=r[a+"period0"],d=ume(v,f)||0,p=[],m=[],y=[],b=n.length,T=0;T_;)E=Lb(E,-l,f);for(;E<=_;)E=Lb(E,l,f);A=Lb(E,-l,f)}else{for(x=Math.round((_-d)/o),E=d+x*o;E>_;)E-=o;for(;E<=_;)E+=o;A=E-o}p[T]=u?A:c?E:(A+E)/2,m[T]=A,y[T]=E}return{vals:p,starts:m,ends:y}}});var cm=N((PRe,xB)=>{"use strict";var C6=Is().hasColorscale,L6=Y4(),bB=Ni();xB.exports=function(r,t){bB.hasLines(t)&&C6(t,"line")&&L6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),bB.hasMarkers(t)&&(C6(t,"marker")&&L6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),C6(t,"marker.line")&&L6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var D6=N((NRe,_B)=>{"use strict";var Pn=zr();_B.exports=function(r,t){for(var a=0;a{"use strict";var wB=zr();AB.exports=function(r,t){wB.isArrayOrTypedArray(t.selectedpoints)&&wB.tagSelected(r,t)}});var tp=N((ORe,DB)=>{"use strict";var MB=_a(),F6=zr(),vm=hn(),SB=k6(),R6=ri().BADNUM,q6=Ni(),hme=cm(),dme=D6(),pme=TB();function yme(e,r){var t=e._fullLayout,a=r._xA=vm.getFromId(e,r.xaxis||"x","x"),n=r._yA=vm.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=SB(r,a,"x",i),s=SB(r,n,"y",o),f=l.vals,u=s.vals,c=r._length,v=new Array(c),d=r.ids,p=P6(r,t,a,n),m=!1,y,b,T,_,x,A;CB(t,r);var E="x",M="y",k;if(p)F6.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",k="x"):(E="s",k="y"),x=p.stackgaps==="interpolate";else{var R=kB(r,c);EB(e,r,a,n,f,u,R)}var P=!!r.xperiodalignment,O=!!r.yperiodalignment;for(b=0;bb&&v[_].gap;)_--;for(A=v[_].s,T=v.length-1;T>_;T--)v[T].s=A;for(;b<_;)if(b++,v[b].gap){for(T=b+1;v[T].gap;)T++;for(var ee=v[b-1][k],te=v[b-1].s,Q=(v[T].s-te)/(v[T][k]-ee);b{"use strict";RB.exports=Db;var mme=zr().distinctVals;function Db(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";qB.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var zB=N((GRe,BB)=>{"use strict";var as=_a(),{isArrayOrTypedArray:Hu}=zr(),{BADNUM:ap}=ri(),gme=Bt(),hm=hn(),{getAxisGroup:bme}=Py(),Rb=FB(),{TEXTPAD:xme}=PB(),{LINE_SPACING:_me}=ao(),{BR_TAG_ALL:wme}=no();function Ame(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fs+o||!as(l))}for(var u=0;ua(i))):a(e.text);let n=e.outsidetextfont.size*_me*t+xme;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function Fme(e,r,t,a){for(var n=np(a),i=0;i{"use strict";var GB=tp(),UB=zB().setGroupPositions;function Pme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fR[u]&&u{"use strict";var Ime=Va(),XB=ri(),dm=XB.BADNUM,ZB=XB.LOG_CLIP,YB=ZB+.5,WB=ZB-.5,Fb=zr(),Ome=Fb.segmentsIntersect,jB=Fb.constrain,U6=Qy();$B.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,f=i._length,u=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",b=[],T=U6.minTolerance,_=r.length,x=new Array(_),A=0,E,M,k,R,P,O,F,H,W,ee,te,Q,$,j,se,le;function Ee(dr){var Se=r[dr];if(!Se)return!1;var Ie=t.linearized?n.l2p(Se.x):n.c2p(Se.x),pr=t.linearized?i.l2p(Se.y):i.c2p(Se.y);if(Ie===dm){if(o&&(Ie=n.c2p(Se.x,!0)),Ie===dm)return!1;l&&pr===dm&&(Ie*=Math.abs(n._m*f*(n._m>0?YB:WB)/(i._m*s*(i._m>0?YB:WB)))),Ie*=1e3}if(pr===dm){if(l&&(pr=i.c2p(Se.y,!0)),pr===dm)return!1;pr*=1e3}return[Ie,pr]}function Ge(dr,Se,Ie,pr){var _r=Ie-dr,ht=pr-Se,Mt=.5-dr,wt=.5-Se,Nt=_r*_r+ht*ht,ta=_r*Mt+ht*wt;if(ta>0&&ta1||Math.abs(Mt.y-Ie[0][1])>1)&&(Mt=[Mt.x,Mt.y],pr&&ur(Mt,dr)xr||dr[1]re)return[jB(dr[0],He,xr),jB(dr[1],Ye,re)]}function Hr(dr,Se){if(dr[0]===Se[0]&&(dr[0]===He||dr[0]===xr)||dr[1]===Se[1]&&(dr[1]===Ye||dr[1]===re))return!0}function at(dr,Se){var Ie=[],pr=et(dr),_r=et(Se);return pr&&_r&&Hr(pr,_r)||(pr&&Ie.push(pr),_r&&Ie.push(_r)),Ie}function wr(dr,Se,Ie){return function(pr,_r){var ht=et(pr),Mt=et(_r),wt=[];if(ht&&Mt&&Hr(ht,Mt))return wt;ht&&wt.push(ht),Mt&&wt.push(Mt);var Nt=2*Fb.constrain((pr[dr]+_r[dr])/2,Se,Ie)-((ht||pr)[dr]+(Mt||_r)[dr]);if(Nt){var ta;ht&&Mt?ta=Nt>0==ht[dr]>Mt[dr]?ht:Mt:ta=ht||Mt,ta[dr]+=Nt}return wt}}var Vr;p==="linear"||p==="spline"?Vr=gr:p==="hv"||p==="vh"?Vr=at:p==="hvh"?Vr=wr(0,He,xr):p==="vhv"&&(Vr=wr(1,Ye,re));function rt(dr,Se){var Ie=Se[0]-dr[0],pr=(Se[1]-dr[1])/Ie,_r=(dr[1]*Se[0]-Se[1]*dr[0])/Ie;return _r>0?[pr>0?He:xr,re]:[pr>0?xr:He,Ye]}function Pe(dr){var Se=dr[0],Ie=dr[1],pr=Se===x[A-1][0],_r=Ie===x[A-1][1];if(!(pr&&_r))if(A>1){var ht=Se===x[A-2][0],Mt=Ie===x[A-2][1];pr&&(Se===He||Se===xr)&&ht?Mt?A--:x[A-1]=dr:_r&&(Ie===Ye||Ie===re)&&Mt?ht?A--:x[A-1]=dr:x[A++]=dr}else x[A++]=dr}function or(dr){x[A-1][0]!==dr[0]&&x[A-1][1]!==dr[1]&&Pe([Je,Ke]),Pe(dr),Cr=null,Je=Ke=0}var st=Fb.isArrayOrTypedArray(c);function kt(dr){if(dr&&u&&(dr.i=E,dr.d=r,dr.trace=a,dr.marker=st?c[dr.i]:c,dr.backoff=u),Le=dr[0]/s,Ue=dr[1]/f,ne=dr[0]xr?xr:0,Re=dr[1]re?re:0,ne||Re){if(!A)x[A++]=[ne||dr[0],Re||dr[1]];else if(Cr){var Se=Vr(Cr,dr);Se.length>1&&(or(Se[0]),x[A++]=Se[1])}else Ar=Vr(x[A-1],dr)[0],x[A++]=Ar;var Ie=x[A-1];ne&&Re&&(Ie[0]!==ne||Ie[1]!==Re)?(Cr&&(Je!==ne&&Ke!==Re?Pe(Je&&Ke?rt(Cr,dr):[Je||ne,Ke||Re]):Je&&Ke&&Pe([Je,Ke])),Pe([ne,Re])):Je-ne&&Ke-Re&&Pe([ne||Je,Re||Ke]),Cr=dr,Je=ne,Ke=Re}else Cr&&or(Vr(Cr,dr)[0]),x[A++]=dr}for(E=0;E<_;E++)if(M=Ee(E),!!M){for(A=0,Cr=null,kt(M),E++;E<_;E++){if(R=Ee(E),!R){if(v)continue;break}if(!m||!t.simplify){kt(R);continue}var Tr=Ee(E+1);if(ee=ur(R,M),!(!(y&&(A===0||A===_-1))&&eexe(O,Tr))break;k=O,$=W[0]*H[0]+W[1]*H[1],$>te?(te=$,R=O,F=!1):$=r.length||!O)break;kt(O),M=O}}Cr&&Pe([Je||Cr[0],Ke||Cr[1]]),b.push(x.slice(0,A))}var tr=p.slice(p.length-1);if(u&&tr!=="h"&&tr!=="v"){for(var sr=!1,Gr=-1,nt=[],Yr=0;Yr{"use strict";var QB={tonextx:1,tonexty:1,tonext:1};KB.exports=function(r,t,a){var n,i,o,l,s,f={},u=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Vs=ca(),Bme=Bt(),pm=zr(),ip=pm.ensureSingle,rz=pm.identity,On=Va(),op=Ni(),zme=JB(),Gme=H6(),qb=NA().tester;tz.exports=function(r,t,a,n,i,o){var l,s,f=!i,u=!!i&&i.duration>0,c=Gme(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Ume(r,l,t),u){o&&(s=o());var v=Vs.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){ez(r,p,t,d,c,this,i)})})}else l.each(function(d,p){ez(r,p,t,d,c,this,i)});f&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Ume(e,r,t){r.each(function(a){var n=ip(Vs.select(this),"g","fills");On.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,rz);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=ip(Vs.select(this),"path","js-fill")})})}function ez(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Hme(e,r,t,a,n);var f=!!o&&o.duration>0;function u(wr){return f?wr.transition():wr}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,m=Vs.select(i),y=ip(m,"g","errorbars"),b=ip(m,"g","lines"),T=ip(m,"g","points"),_=ip(m,"g","text");if(Bme.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;u(m).style("opacity",d.opacity);var x,A,E=d.fill.charAt(d.fill.length-1);E!=="x"&&E!=="y"&&(E="");var M,k;E==="y"?(M=1,k=v.c2p(0,!0)):E==="x"&&(M=0,k=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var R="",P=[],O=d._prevtrace,F=null,H=null;O&&(R=O._prevRevpath||"",A=O._nextFill,P=O._ownPolygons,F=O._fillsegments,H=O._fillElement);var W,ee,te="",Q="",$,j,se,le,Ee,Ge,Le=[];d._polygons=[];var Ue=[],xe=[],ur=pm.noop;if(x=d._ownFill,op.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?($=On.steps(p.shape),j=On.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?$=j=function(wr){var Vr=wr[wr.length-1];return wr.length>1&&wr[0][0]===Vr[0]&&wr[0][1]===Vr[1]?On.smoothclosed(wr.slice(1),p.smoothing):On.smoothopen(wr,p.smoothing)}:$=j=function(wr){return"M"+wr.join("L")},se=function(wr){return j(wr.reverse())},xe=zme(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),Ue=new Array(xe.length);var Oe=0;for(s=0;s=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/u),d=0;n.forEach(function(m,y){var b=m[0].trace;op.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";nz.exports={container:"marker",min:"cmin",max:"cmax"}});var V6=N((jRe,iz)=>{"use strict";var Nb=hn();iz.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Nb.getFromTrace(i,t,"x"),l=Nb.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var f=r.orig_y;return f===void 0&&(f=r.y),n.xLabel=Nb.tickText(o,o.c2l(s),!0).text,n.yLabel=Nb.tickText(l,l.c2l(f),!0).text,n}});var X6=N((XRe,oz)=>{"use strict";var Y6=ca(),lp=Va(),Vme=Bt();function Yme(e){var r=Y6.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Y6.select(this),n=t.trace||t[0].trace;W6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Y6.select(this),n=t.trace||t[0].trace;j6(a,n,e)}),r.selectAll("g.trace path.js-line").call(lp.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(lp.fillGroupStyle,e,!1),Vme.getComponentMethod("errorbars","style")(r)}function W6(e,r,t){lp.pointStyle(e.selectAll("path.point"),r,t)}function j6(e,r,t){lp.textPointStyle(e.selectAll("text"),r,t)}function Wme(e,r,t){var a=r[0].trace;a.selectedpoints?(lp.selectedPointStyle(t.selectAll("path.point"),a),lp.selectedTextStyle(t.selectAll("text"),a)):(W6(t,a,e),j6(t,a,e))}oz.exports={style:Yme,stylePoints:W6,styleText:j6,styleOnSelect:Wme}});var Z6=N((ZRe,lz)=>{"use strict";var sp=va(),jme=Ni();lz.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&sp.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&sp.opacity(i)?i:o&&sp.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?sp.opacity(n)<.3?sp.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&sp.opacity(a)&&jme.hasLines(r)&&r.line.width?a:r.fillcolor)}});var uz=N(($Re,fz)=>{"use strict";var Ib=zr(),sz=Ou(),Xme=Bt(),Zme=Z6(),$6=va(),$me=Ib.fillText;fz.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,f=l.c2p(t),u=s.c2p(a),c=[f,u],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(Q){if(p){var $=l.c2p(Q.xStart),j=l.c2p(Q.xEnd);return f>=Math.min($,j)&&f<=Math.max($,j)?0:1/0}var se=Math.max(3,Q.mrc||0),le=1-1/se,Ee=Math.abs(l.c2p(Q.x)-f);return Ee=Math.min($,j)&&u<=Math.max($,j)?0:1/0}var se=Math.max(3,Q.mrc||0),le=1-1/se,Ee=Math.abs(s.c2p(Q.y)-u);return EeLe!=re>=Le&&(He=ur[xe-1][0],xr=ur[xe][0],re-Ye&&(Oe=He+(xr-He)*(Le-Ye)/(re-Ye),se=Math.min(se,Oe),le=Math.max(le,Oe)));return se=Math.max(se,0),le=Math.min(le,l._length),{x0:se,x1:le,y0:Le,y1:Le}}if(v.indexOf("fills")!==-1&&o._fillElement){var W=F(o._fillElement)&&!F(o._fillExclusionElement);if(W){var ee=H(o._polygons);ee===null&&(ee={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var te=$6.defaultLine;return $6.opacity(o.fillcolor)?te=o.fillcolor:$6.opacity((o.line||{}).color)&&(te=o.line.color),Ib.extendFlat(r,{distance:r.maxHoverDistance,x0:ee.x0,x1:ee.x1,y0:ee.y0,y1:ee.y1,color:te,hovertemplate:!1}),delete r.index,o.text&&!Ib.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var hz=N((JRe,vz)=>{"use strict";var cz=Ni();vz.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,f,u,c,v=!cz.hasMarkers(l)&&!cz.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";dz.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var bz=N((KRe,gz)=>{"use strict";var ym=Bt().traceIs,J6=cw();gz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Jme(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Jme(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Qme(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!ym(i,"cartesian")||ym(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,mz(i,a)){var f=yz(i),u=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(mz(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function yz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function mz(e,r){var t=yz(e),a=ym(e,"box-violin"),n=ym(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var _z=N((eFe,xz)=>{"use strict";var Kme=Po().isTypedArraySpec;function ege(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Kme(i),l;o&&(l="array");var s=a("categoryorder",l),f;s==="array"&&(f=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=f.slice():(f=ege(t,n).sort(),s==="category ascending"?t._initialCategories=f:s==="category descending"&&(t._initialCategories=f.reverse()))}}});var Tz=N((rFe,Az)=>{"use strict";var wz=Ls().mix,rge=Mf(),tge=zr();Az.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(k,R){return tge.coerce2(r,t,n.attributes,k,R)}var l=o("linecolor",i),s=o("linewidth"),f=a("showline",n.showLine||!!l||!!s);f||(delete t.linecolor,delete t.linewidth);var u=wz(i,n.bgColor,n.blend||rge.lightFraction).toRgbString(),c=o("gridcolor",u),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=wz(t.gridcolor,n.bgColor,67).toRgbString(),y=o("minor.gridcolor",m),b=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!y||!!b||!!T);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),A=o("zerolinecolor",i),E=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!A||!!E);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var K6=N((tFe,Lz)=>{"use strict";var Mz=_a(),age=Bt(),mm=zr(),nge=$a(),ige=bl(),Q6=Vl(),Sz=q4(),Ez=N4(),oge=B4(),lge=z4(),sge=_z(),fge=Tz(),uge=Rw(),kz=$2(),Ob=ci().WEEKDAY_PATTERN,cge=ci().HOUR_PATTERN;Lz.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},f=a("visible",!n.visibleDflt),u=t._template||{},c=t.type||u.type||"-",v;if(c==="date"){var d=age.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=mm.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),kz(t,i),uge(r,t,a,n),sge(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==Q6.color.dflt?m:l.color,b=s.label||i._dfltTitle[o];if(lge(r,t,a,c,n),!f)return t;a("title.text",b),mm.coerceFont(a,"title.font",l,{overrideDflt:{size:mm.bigFont(l.size),color:y}}),Sz(r,t,a,c);var T=n.hasMinor;if(T&&(nge.newContainer(t,"minor"),Sz(r,t,a,c,{isMinor:!0})),oge(r,t,a,c,n),Ez(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,Ez(r,t,a,n),n.isMinor=_}fge(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:Q6}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(ige(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:vge}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var E=0;E=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=Cz(i[l]),s){o=Ob;break}}var f=a("pattern",o);if(f===Ob)for(l=0;l<2;l++)s=Cz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(f)for(l=0;l<2;l++)switch(s=i[l],f){case Ob:if(!Mz(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case cge:if(!Mz(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var u=t.range;if(u[0]u[1]){r.enabled=!1;return}}else if(i[0]>u[0]&&i[1]{"use strict";var dge=_a(),Bb=zr();Dz.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,f=n.overlayingDomain,u,c,v,d,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],u=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],u=u||(dge(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=Bb.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor"),b=Bb.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(l==="y"){var T=a("autoshift");T&&(d=b==="left"?f[0]:f[1],m=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var _=!1;if(o.length&&(_=Bb.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Bb.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var zz=N((nFe,Bz)=>{"use strict";var o0=zr(),Rz=va(),pge=Nu().isUnifiedHover,yge=oA(),Fz=$a(),mge=dd(),qz=Vl(),gge=bz(),Pz=K6(),bge=Py(),Nz=eT(),tT=En(),Uf=tT.id2name,Iz=tT.name2id,xge=ci().AX_ID_PATTERN,Oz=Bt(),zb=Oz.traceIs,rT=Oz.getComponentMethod;function Gb(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Bz.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},f={},u={},c={},v={},d={},p={},m,y;for(m=0;m{"use strict";var _ge=ca(),Gz=Bt(),Ub=zr(),Ml=Va(),Hb=hn();Uz.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Hb.redrawComponents(r);return}function o(y){var b=y.xaxis,T=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Ml.setTranslate,0,0).call(Ml.setScale,1,1),y.plot.call(Ml.setTranslate,b._offset,T._offset).call(Ml.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Ml.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Ml.setTextPointsScale,1,1),_.call(Ml.hideOutsideRangePoints,y)}function l(y,b){var T=y.plotinfo,_=T.xaxis,x=T.yaxis,A=_._length,E=x._length,M=!!y.xr1,k=!!y.yr1,R=[];if(M){var P=Ub.simpleMap(y.xr0,_.r2l),O=Ub.simpleMap(y.xr1,_.r2l),F=P[1]-P[0],H=O[1]-O[0];R[0]=(P[0]*(1-b)+b*O[0]-P[0])/(P[1]-P[0])*A,R[2]=A*(1-b+b*H/F),_.range[0]=_.l2r(P[0]*(1-b)+b*O[0]),_.range[1]=_.l2r(P[1]*(1-b)+b*O[1])}else R[0]=0,R[2]=A;if(k){var W=Ub.simpleMap(y.yr0,x.r2l),ee=Ub.simpleMap(y.yr1,x.r2l),te=W[1]-W[0],Q=ee[1]-ee[0];R[1]=(W[1]*(1-b)+b*ee[1]-W[1])/(W[0]-W[1])*E,R[3]=E*(1-b+b*Q/te),x.range[0]=_.l2r(W[0]*(1-b)+b*ee[0]),x.range[1]=x.l2r(W[1]*(1-b)+b*ee[1])}else R[1]=0,R[3]=E;Hb.drawOne(r,_,{skipTitle:!0}),Hb.drawOne(r,x,{skipTitle:!0}),Hb.redrawComponents(r,[_._id,x._id]);var $=M?A/R[2]:1,j=k?E/R[3]:1,se=M?R[0]:0,le=k?R[1]:0,Ee=M?R[0]/R[2]*A:0,Ge=k?R[1]/R[3]*E:0,Le=_._offset-Ee,Ue=x._offset-Ge;T.clipRect.call(Ml.setTranslate,se,le).call(Ml.setScale,1/$,1/j),T.plot.call(Ml.setTranslate,Le,Ue).call(Ml.setScale,$,j),Ml.setPointGroupScale(T.zoomScalePts,1/$,1/j),Ml.setTextPointsScale(T.zoomScaleTxt,1/$,1/j)}var s;n&&(s=n());function f(){for(var y={},b=0;ba.duration?(f(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var gm=N(lo=>{"use strict";var Yb=ca(),Vz=Bt(),l0=zr(),wge=_i(),Age=Va(),Yz=sy().getModuleCalcData,uv=En(),Ys=ci(),Tge=Wc(),Da=l0.ensureSingle;function Vb(e,r,t){return l0.ensureSingle(e,r,t,function(a){a.datum(t)})}var s0=Ys.zindexSeparator;lo.name="cartesian";lo.attr=["xaxis","yaxis"];lo.idRoot=["x","y"];lo.idRegex=Ys.idRegex;lo.attrRegex=Ys.attrRegex;lo.attributes=pz();lo.layoutAttributes=Vl();lo.supplyLayoutDefaults=zz();lo.transitionAxes=Hz();lo.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},f,u,c;for(f=0;f0){var d=v.id;if(d.indexOf(s0)!==-1)continue;d+=s0+(f+1),v=l0.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(A+=s0+x),_.push(l+A),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||u)if(f)r.xlines=Da(a,"path","xlines-above"),r.ylines=Da(a,"path","ylines-above"),r.xaxislayer=Da(a,"g","xaxislayer-above"),r.yaxislayer=Da(a,"g","yaxislayer-above");else{if(!o){var v=Da(a,"g","layer-subplot");r.shapelayer=Da(v,"g","shapelayer"),r.imagelayer=Da(v,"g","imagelayer"),c&&u?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Da(a,"g","minor-gridlayer"),r.gridlayer=Da(a,"g","gridlayer"),r.zerolinelayer=Da(a,"g","zerolinelayer"));var d=Da(a,"g","layer-between");r.shapelayerBetween=Da(d,"g","shapelayer"),r.imagelayerBetween=Da(d,"g","imagelayer"),Da(a,"path","xlines-below"),Da(a,"path","ylines-below"),r.overlinesBelow=Da(a,"g","overlines-below"),Da(a,"g","xaxislayer-below"),Da(a,"g","yaxislayer-below"),r.overaxesBelow=Da(a,"g","overaxes-below")}r.overplot=Da(a,"g","overplot"),r.plot=Da(r.overplot,"g",n),c&&u?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Da(a,"g","zerolinelayer-above"),o||(r.xlines=Da(a,"path","xlines-above"),r.ylines=Da(a,"path","ylines-above"),r.overlinesAbove=Da(a,"g","overlines-above"),Da(a,"g","xaxislayer-above"),Da(a,"g","yaxislayer-above"),r.overaxesAbove=Da(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Da(c.overlinesBelow,"path",m),Da(c.overlinesBelow,"path",y),Da(c.overaxesBelow,"g",m),Da(c.overaxesBelow,"g",y),r.plot=Da(c.overplot,"g",n),Da(c.overlinesAbove,"path",m),Da(c.overlinesAbove,"path",y),Da(c.overaxesAbove,"g",m),Da(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(f||(Vb(r.minorGridlayer,"g",r.xaxis._id),Vb(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(uv.idSort),Vb(r.gridlayer,"g",r.xaxis._id),Vb(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(uv.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function Xz(e,r){if(e){var t={};e.each(function(s){var f=s[0],u=Yb.select(this);u.remove(),Zz(f,r),t[f]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Wb=Ni();$z.exports={hasLines:Wb.hasLines,hasMarkers:Wb.hasMarkers,hasText:Wb.hasText,isBubble:Wb.isBubble,attributes:lv(),layoutAttributes:M2(),supplyDefaults:cB(),crossTraceDefaults:E6(),supplyLayoutDefaults:yB(),calc:tp().calc,crossTraceCalc:VB(),arraysToCalcdata:D6(),plot:az(),colorbar:Pb(),formatLabels:V6(),style:X6().style,styleOnSelect:X6().styleOnSelect,hoverPoints:uz(),selectPoints:hz(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:gm(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var eG=N((sFe,Kz)=>{"use strict";var Sge=ca(),Ege=va(),Qz=XA(),aT=zr(),kge=aT.strScale,Cge=aT.strRotate,Lge=aT.strTranslate;Kz.exports=function(r,t,a){var n=r.node(),i=Qz[a.arrowhead||0],o=Qz[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),f=t.indexOf("start")>=0,u=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,T=d.y-p.y;if(m=Math.atan2(T,b),y=m+Math.PI,c&&v&&c+v>Math.sqrt(b*b+T*T)){W();return}if(c){if(c*c>b*b+T*T){W();return}var _=c*Math.cos(m),x=c*Math.sin(m);p.x+=_,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+T*T){W();return}var A=v*Math.cos(m),E=v*Math.sin(m);d.x-=A,d.y-=E,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),k="";if(M{"use strict";var rG=ca(),nT=Bt(),Dge=_i(),vv=zr(),iT=vv.strTranslate,xm=hn(),f0=va(),Vu=Va(),tG=Ou(),oT=no(),lT=Kc(),bm=Bs(),Rge=$a().arrayEditor,Fge=eG();iG.exports={draw:qge,drawOne:aG,drawRaw:nG};function qge(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?_r="right":_r="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[_r]}for(var Ye=!1,re=["x","y"],de=0;de1)&&(Je===Re?(Tr=Ke.r2fraction(r["a"+ne]),(Tr<0||Tr>1)&&(Ye=!0)):Ye=!0),Vr=Ke._offset+Ke.r2p(r[ne]),or=.5}else{var tr=kt==="domain";ne==="x"?(Pe=r[ne],Vr=tr?Ke._offset+Ke._length*Pe:Vr=l.l+l.w*Pe):(Pe=1-r[ne],Vr=tr?Ke._offset+Ke._length*Pe:Vr=l.t+l.h*Pe),or=r.showarrow?.5:Pe}if(r.showarrow){wr.head=Vr;var sr=r["a"+ne];if(st=Ar*xr(.5,r.xanchor)-gr*xr(.5,r.yanchor),Je===Re){var Gr=xm.getRefType(Je);Gr==="domain"?(ne==="y"&&(sr=1-sr),wr.tail=Ke._offset+Ke._length*sr):Gr==="paper"?ne==="y"?(sr=1-sr,wr.tail=l.t+l.h*sr):wr.tail=l.l+l.w*sr:wr.tail=Ke._offset+Ke.r2p(sr),rt=st}else wr.tail=Vr+sr,rt=st+sr;wr.text=wr.tail+st;var nt=o[ne==="x"?"width":"height"];if(Re==="paper"&&(wr.head=vv.constrain(wr.head,1,nt-1)),Je==="pixel"){var Yr=-Math.max(wr.tail-3,wr.text),Wr=Math.min(wr.tail+3,wr.text)-nt;Yr>0?(wr.tail+=Yr,wr.text+=Yr):Wr>0&&(wr.tail-=Wr,wr.text-=Wr)}wr.tail+=at,wr.head+=at}else st=et*xr(or,Hr),rt=st,wr.text=Vr+st;wr.text+=at,st+=at,rt+=at,r["_"+ne+"padplus"]=et/2+rt,r["_"+ne+"padminus"]=et/2-rt,r["_"+ne+"size"]=et,r["_"+ne+"shift"]=st}if(Ye){M.remove();return}var xt=0,jr=0;if(r.align!=="left"&&(xt=(xe-Le)*(r.align==="center"?.5:1)),r.valign!=="top"&&(jr=(ur-Ue)*(r.valign==="middle"?.5:1)),Ee)le.select("svg").attr({x:P+xt-1,y:P+jr}).call(Vu.setClipUrl,F?m:null,e);else{var ot=P+jr-Ge.top,dr=P+xt-Ge.left;te.call(oT.positionText,dr,ot).call(Vu.setClipUrl,F?m:null,e)}H.select("rect").call(Vu.setRect,P,P,xe,ur),O.call(Vu.setRect,k/2,k/2,Oe-k,He-k),M.call(Vu.setTranslate,Math.round(y.x.text-Oe/2),Math.round(y.y.text-He/2)),_.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Se=function(pr,_r){T.selectAll(".annotation-arrow-g").remove();var ht=y.x.head,Mt=y.y.head,wt=y.x.tail+pr,Nt=y.y.tail+_r,ta=y.x.text+pr,ma=y.y.text+_r,za=vv.rotationXYMatrix(b,ta,ma),rn=vv.apply2DTransform(za),Wa=vv.apply2DTransform2(za),Ln=+O.attr("width"),_n=+O.attr("height"),Ei=ta-.5*Ln,un=Ei+Ln,zn=ma-.5*_n,ki=zn+_n,Dn=[[Ei,zn,Ei,ki],[Ei,ki,un,ki],[un,ki,un,zn],[un,zn,Ei,zn]].map(Wa);if(!Dn.reduce(function(Ya,wn){return Ya^!!vv.segmentsIntersect(ht,Mt,ht+1e6,Mt+1e6,wn[0],wn[1],wn[2],wn[3])},!1)){Dn.forEach(function(Ya){var wn=vv.segmentsIntersect(wt,Nt,ht,Mt,Ya[0],Ya[1],Ya[2],Ya[3]);wn&&(wt=wn.x,Nt=wn.y)});var yn=r.arrowwidth,At=r.arrowcolor,Ia=r.arrowside,ha=T.append("g").style({opacity:f0.opacity(At)}).classed("annotation-arrow-g",!0),Sa=ha.append("path").attr("d","M"+wt+","+Nt+"L"+ht+","+Mt).style("stroke-width",yn+"px").call(f0.stroke,f0.rgb(At));if(Fge(Sa,Ia,r),s.annotationPosition&&Sa.node().parentNode&&!a){var mn=ht,Ra=Mt;if(r.standoff){var da=Math.sqrt(Math.pow(ht-wt,2)+Math.pow(Mt-Nt,2));mn+=r.standoff*(wt-ht)/da,Ra+=r.standoff*(Nt-Mt)/da}var di=ha.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(wt-mn)+","+(Nt-Ra),transform:iT(mn,Ra)}).style("stroke-width",yn+6+"px").call(f0.stroke,"rgba(0,0,0,0)").call(f0.fill,"rgba(0,0,0,0)"),Xi,Nn;bm.init({element:di.node(),gd:e,prepFn:function(){var Ya=Vu.getTranslate(M);Xi=Ya.x,Nn=Ya.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Ya,wn){var An=rn(Xi,Nn),vs=An[0]+Ya,Ll=An[1]+wn;M.call(Vu.setTranslate,vs,Ll),d("x",cv(n,Ya,"x",l,r)),d("y",cv(i,wn,"y",l,r)),r.axref===r.xref&&d("ax",cv(n,Ya,"ax",l,r)),r.ayref===r.yref&&d("ay",cv(i,wn,"ay",l,r)),ha.attr("transform",iT(Ya,wn)),_.attr({transform:"rotate("+b+","+vs+","+Ll+")"})},doneFn:function(){nT.call("_guiRelayout",e,p());var Ya=document.querySelector(".js-notes-box-panel");Ya&&Ya.redraw(Ya.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Ie;bm.init({element:M.node(),gd:e,prepFn:function(){Ie=_.attr("transform")},moveFn:function(pr,_r){var ht="pointer";if(r.showarrow)r.axref===r.xref?d("ax",cv(n,pr,"ax",l,r)):d("ax",r.ax+pr),r.ayref===r.yref?d("ay",cv(i,_r,"ay",l.w,r)):d("ay",r.ay+_r),Se(pr,_r);else{if(a)return;var Mt,wt;if(n)Mt=cv(n,pr,"x",l,r);else{var Nt=r._xsize/l.w,ta=r.x+(r._xshift-r.xshift)/l.w-Nt/2;Mt=bm.align(ta+pr/l.w,Nt,0,1,r.xanchor)}if(i)wt=cv(i,_r,"y",l,r);else{var ma=r._ysize/l.h,za=r.y-(r._yshift+r.yshift)/l.h-ma/2;wt=bm.align(za-_r/l.h,ma,0,1,r.yanchor)}d("x",Mt),d("y",wt),(!n||!i)&&(ht=bm.getCursor(n?.5:Mt,i?.5:wt,r.xanchor,r.yanchor))}_.attr({transform:iT(pr,_r)+Ie}),lT(M,ht)},clickFn:function(pr,_r){r.captureevents&&e.emit("plotly_clickannotation",E(_r))},doneFn:function(){lT(M),nT.call("_guiRelayout",e,p());var pr=document.querySelector(".js-notes-box-panel");pr&&pr.redraw(pr.selectedObj)}})}}s.annotationText?te.call(oT.makeEditable,{delegate:M,gd:e}).call(Q).on("edit",function(j){r.text=j,this.call(Q),d("text",j),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),nT.call("_guiRelayout",e,p())}):te.call(Q)}});var cG=N((uFe,uG)=>{"use strict";var oG=zr(),Pge=Bt(),lG=$a().arrayEditor;uG.exports={hasClickToShow:Nge,onClick:Ige};function Nge(e,r){var t=fG(e,r);return t.on.length>0||t.explicitOff.length>0}function Ige(e,r){var t=fG(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var sT=zr(),fp=va();vG.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=fp.opacity(o);n("borderpad");var s=n("borderwidth"),f=n("showarrow");n("text",f?" ":a._dfltTitle.annotation),n("textangle"),sT.coerceFont(n,"font",a.font),n("width"),n("align");var u=n("height");if(u&&n("valign"),f){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:fp.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(fp.opacity(i)?fp.rgb(i):fp.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||fp.contrast(y)),T=sT.extendFlat({},m.font);T.color||(T.color=b),sT.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var dG=N((vFe,hG)=>{"use strict";var uT=zr(),u0=hn(),Oge=bl(),Bge=fT(),zge=Qd();hG.exports=function(r,t){Oge(r,t,{name:"annotations",handleItemDefaults:Gge})};function Gge(e,r,t){function a(_,x){return uT.coerce(e,r,zge,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Bge(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],f={_fullLayout:t},u=0;u<2;u++){var c=l[u],v=u0.coerceRef(e,r,f,c,"","paper");if(v!=="paper"){var d=u0.getFromId(f,v);d._annIndices.push(r._index)}if(u0.coercePosition(r,f,a,v,c,.5),o){var p="a"+c,m=u0.coerceRef(e,r,f,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[u]:.4;u0.coercePosition(r,f,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(uT.noneOrAll(e,r,["x","y"]),o&&uT.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:u0.cleanPosition(b,f,r.xref),r._yclick=T===void 0?r.y:u0.cleanPosition(T,f,r.yref)}}}});var mG=N((hFe,yG)=>{"use strict";var cT=zr(),c0=hn(),Uge=jb().draw;yG.exports=function(r){var t=r._fullLayout,a=cT.filterVisible(t.annotations);if(a.length&&r._fullData.length)return cT.syncOrAsync([Uge,Hge],r)};function Hge(e){var r=e._fullLayout;cT.filterVisible(r.annotations).forEach(function(t){var a=c0.getFromId(e,t.xref),n=c0.getFromId(e,t.yref),i=c0.getRefType(t.xref),o=c0.getRefType(t.yref);t._extremes={},i==="range"&&pG(t,a),o==="range"&&pG(t,n)})}function pG(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],f=e["_"+a+"padminus"],u={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+u,d=c-u,p=3*e.startarrowsize*e.arrowwidth||0,m=p+u,y=p-u,b;if(l===o){var T=c0.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=c0.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(f,y)});b={min:[T.min[0],_.min[0]],max:[T.max[0],_.max[0]]}}else m=i?m+i:m,y=i?y-i:y,b=c0.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(f,d,y)});e._extremes[t]=b}});var bG=N((dFe,gG)=>{"use strict";var Vge=_a(),Yge=Wg();gG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),f,u;function c(d){var p=f[d],m=null;i?m=Yge(p,t.range):m=Math.pow(10,p),Vge(m)||(m=null),n(u+d,m)}for(var v=0;v{"use strict";var vT=jb(),xG=cG();_G.exports={moduleType:"component",name:"annotations",layoutAttributes:Qd(),supplyLayoutDefaults:dG(),includeBasePlot:em()("annotations"),calcAutorange:mG(),draw:vT.draw,drawOne:vT.drawOne,drawRaw:vT.drawRaw,hasClickToShow:xG.hasClickToShow,onClick:xG.onClick,convertCoords:bG()}});var Xb=N((yFe,AG)=>{"use strict";var en=Qd(),Wge=Fs().overrideAll,jge=$a().templatedArray;AG.exports=Wge(jge("annotation",{visible:en.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:en.xanchor,xshift:en.xshift,yanchor:en.yanchor,yshift:en.yshift,text:en.text,textangle:en.textangle,font:en.font,width:en.width,height:en.height,opacity:en.opacity,align:en.align,valign:en.valign,bgcolor:en.bgcolor,bordercolor:en.bordercolor,borderpad:en.borderpad,borderwidth:en.borderwidth,showarrow:en.showarrow,arrowcolor:en.arrowcolor,arrowhead:en.arrowhead,startarrowhead:en.startarrowhead,arrowside:en.arrowside,arrowsize:en.arrowsize,startarrowsize:en.startarrowsize,arrowwidth:en.arrowwidth,standoff:en.standoff,startstandoff:en.startstandoff,hovertext:en.hovertext,hoverlabel:en.hoverlabel,captureevents:en.captureevents}),"calc","from-root")});var MG=N((mFe,TG)=>{"use strict";var hT=zr(),Xge=hn(),Zge=bl(),$ge=fT(),Jge=Xb();TG.exports=function(r,t,a){Zge(r,t,{name:"annotations",handleItemDefaults:Qge,fullLayout:a.fullLayout})};function Qge(e,r,t,a){function n(l,s){return hT.coerce(e,r,Jge,l,s)}function i(l){var s=l+"axis",f={_fullLayout:{}};return f._fullLayout[s]=t[s],Xge.coercePosition(r,f,n,l,l,.5)}var o=n("visible");o&&($ge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),hT.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),hT.noneOrAll(e,r,["ax","ay"])))}});var CG=N((gFe,kG)=>{"use strict";var SG=zr(),EG=hn();kG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function dT(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function e2e(e,r){var t=dT(e.projection,dT(e.view,dT(e.model,[r[0],r[1],r[2],1])));return t}LG.exports=e2e});var FG=N((xFe,RG)=>{"use strict";var r2e=jb().drawRaw,t2e=DG(),a2e=["x","y","z"];RG.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=t2e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),r2e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var NG=N((_Fe,PG)=>{"use strict";var n2e=Bt(),qG=zr();PG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Xb()}}},layoutAttributes:Xb(),handleDefaults:MG(),includeBasePlot:i2e,convert:CG(),draw:FG()};function i2e(e,r){var t=n2e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var wFe=ci(),IG=Ui(),OG=lv().line,o2e=Nc().dash,Ws=Un().extendFlat,l2e=$a().templatedArray,AFe=Jy(),up=Ds(),BG=Qd(),{shapeTexttemplateAttrs:s2e,templatefallbackAttrs:f2e}=hd(),u2e=t2();zG.exports=l2e("shape",{visible:Ws({},up.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ws({},up.legend,{editType:"calc+arraydraw"}),legendgroup:Ws({},up.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ws({},up.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:IG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ws({},up.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ws({},up.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Ws({},BG.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Ws({},BG.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Ws({},OG.color,{editType:"arraydraw"}),width:Ws({},OG.width,{editType:"calc+arraydraw"}),dash:Ws({},o2e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:s2e({},{keys:Object.keys(u2e)}),texttemplatefallback:f2e({editType:"arraydraw"}),font:IG({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var UG=N((MFe,GG)=>{"use strict";var cp=zr(),Sl=hn(),c2e=bl(),v2e=pT(),_m=iv();GG.exports=function(r,t){c2e(r,t,{name:"shapes",handleItemDefaults:d2e})};function h2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function d2e(e,r,t){function a(_,x){return cp.coerce(e,r,v2e,_,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),cp.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),f=s!=="path";f&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var u=a("line.width");u&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(_=>{var x=_+"anchor",A=_==="x"?c:v,E={_fullLayout:t},M,k,R,P;let O=_+"ref",F=e[O];if(Array.isArray(F)&&F.length>0){let H=_m.countDefiningCoords(s,o,_);P=Sl.coerceRefArray(e,r,E,_,void 0,"paper",H),r["_"+_+"refArray"]=!0}else P=Sl.coerceRef(e,r,E,_,void 0,"paper");if(Array.isArray(P))P.forEach(function(H){Sl.getRefType(H)==="range"&&(M=Sl.getFromId(E,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),f&&[0,1].forEach(function(H){let W=P[H];Sl.getRefType(W)==="range"?(M=Sl.getFromId(E,W),k=_m.shapePositionToRange(M),R=_m.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+H+"shift")):k=R=cp.identity;let te=_+H,Q=e[te];if(e[te]=k(e[te],!0),A==="pixel"?a(te,p[H]):Sl.coercePosition(r,E,a,W,te,d[H]),r[te]=R(r[te]),e[te]=Q,H===0&&A==="pixel"){let $=e[x];e[x]=k(e[x],!0),Sl.coercePosition(r,E,a,W,x,.25),r[x]=R(r[x]),e[x]=$}});else{if(Sl.getRefType(P)==="range"?(M=Sl.getFromId(E,P),M._shapeIndices.push(r._index),R=_m.rangeToShapePosition(M),k=_m.shapePositionToRange(M),f&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):k=R=cp.identity,f){let W=_+"0",ee=_+"1",te=e[W],Q=e[ee];e[W]=k(e[W],!0),e[ee]=k(e[ee],!0),A==="pixel"?(a(W,p[0]),a(ee,p[1])):(Sl.coercePosition(r,E,a,P,W,d[0]),Sl.coercePosition(r,E,a,P,ee,d[1])),r[W]=R(r[W]),r[ee]=R(r[ee]),e[W]=te,e[ee]=Q}if(A==="pixel"){let W=e[x];e[x]=k(e[x],!0),Sl.coercePosition(r,E,a,P,x,.25),r[x]=R(r[x]),e[x]=W}}}),f&&cp.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,b;if(f&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var T=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",h2e(m,T)),a("label.padding"),cp.coerceFont(a,"label.font",t.font)}}});var YG=N((SFe,VG)=>{"use strict";var p2e=va(),HG=zr();function y2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}VG.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),HG.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",p2e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var f=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",y2e(o,f)),a("newshape.label.padding"),HG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var QG=N((EFe,JG)=>{"use strict";var yT=zr(),ns=hn(),Hf=Dy(),mT=iv();JG.exports=function(r){var t=r._fullLayout,a=yT.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=ns.getFromId(r,c),i._extremes[o._id]=ns.findExtremes(o,v,jG(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=ns.getFromId(r,i.xref),l=ZG(o,i,Hf.paramIsX),l&&(i._extremes[o._id]=ns.findExtremes(o,l,jG(i))));if(f==="array"){let u=WG(r,i,"y");Object.entries(u).forEach(([c,v])=>{o=ns.getFromId(r,c),i._extremes[o._id]=ns.findExtremes(o,v,XG(i))})}else i.yref!=="paper"&&f!=="domain"&&(o=ns.getFromId(r,i.yref),l=ZG(o,i,Hf.paramIsY),l&&(i._extremes[o._id]=ns.findExtremes(o,l,XG(i))))}};function WG(e,r,t){let a=r[t+"ref"],n=t==="x"?Hf.paramIsX:Hf.paramIsY;function i(c,v){c==="paper"||ns.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Hf.segmentRE)||[];for(var l=0,s=0;sp&&(i(a[l],m[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let f={};for(let c in o){let v=ns.getFromId(e,c);if(v){var u=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(u=mT.decodeDate(u)),f[v._id]=o[c].map(u)}}return f}function jG(e){return $G(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function XG(e){return $G(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function $G(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?mT.extractPathCoords(n,i?Hf.paramIsY:Hf.paramIsX):[t,a],f=yT.aggNums(Math.max,null,s),u=yT.aggNums(Math.min,null,s),c=u<0?Math.abs(u)+o:o,v=f>0?f+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function ZG(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,f=n?e.r2c:e.d2c,u=r[a+"sizemode"]==="scaled";if(u?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[f(i)+l,f(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Hf.segmentRE),p,m,y,b,T;for(e.type==="date"&&(f=mT.decodeDate(f)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var rU=N((kFe,eU)=>{"use strict";var KG=B3();eU.exports={moduleType:"component",name:"shapes",layoutAttributes:pT(),supplyLayoutDefaults:UG(),supplyDrawNewShapeDefaults:YG(),includeBasePlot:em()("shapes"),calcAutorange:QG(),draw:KG.draw,drawOne:KG.drawOne}});var gT=N((LFe,aU)=>{"use strict";var tU=ci(),m2e=$a().templatedArray,CFe=Jy();aU.exports=m2e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",tU.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",tU.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var iU=N((DFe,nU)=>{"use strict";var g2e=zr(),bT=hn(),b2e=bl(),x2e=gT(),_2e="images";nU.exports=function(r,t){var a={name:_2e,handleItemDefaults:w2e};b2e(r,t,a)};function w2e(e,r,t){function a(v,d){return g2e.coerce(e,r,x2e,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var f=l[s],u=bT.coerceRef(e,r,o,f,"paper",void 0);if(u!=="paper"){var c=bT.getFromId(o,u);c._imgIndices.push(r._index)}bT.coercePosition(r,o,a,u,f,0)}return r}});var fU=N((RFe,sU)=>{"use strict";var oU=ca(),A2e=Va(),vp=hn(),lU=En(),T2e=Wc();sU.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var uU=_a(),M2e=Wg();cU.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),f,u,c=0;c{"use strict";hU.exports={moduleType:"component",name:"images",layoutAttributes:gT(),supplyLayoutDefaults:iU(),includeBasePlot:em()("images"),draw:fU(),convertCoords:vU()}});var Zb=N((PFe,pU)=>{"use strict";pU.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var xT=N((NFe,mU)=>{"use strict";var S2e=Ui(),E2e=Mf(),k2e=Un().extendFlat,C2e=Fs().overrideAll,L2e=a2(),yU=$a().templatedArray,D2e=yU("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});mU.exports=C2e(yU("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:D2e,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:k2e(L2e({editType:"arraydraw"}),{}),font:S2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:E2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var _U=N((IFe,xU)=>{"use strict";var $b=zr(),gU=bl(),bU=xT(),R2e=Zb(),F2e=R2e.name,q2e=bU.buttons;xU.exports=function(r,t){var a={name:F2e,handleItemDefaults:P2e};gU(r,t,a)};function P2e(e,r,t){function a(o,l){return $b.coerce(e,r,bU,o,l)}var n=gU(e,r,{name:"buttons",handleItemDefaults:N2e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),$b.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),$b.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function N2e(e,r){function t(n,i){return $b.coerce(e,r,q2e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var TU=N((OFe,AU)=>{"use strict";AU.exports=kn;var js=ca(),wU=va(),hp=Va(),Jb=zr();function kn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}kn.barWidth=2;kn.barLength=20;kn.barRadius=2;kn.barPad=1;kn.barColor="#808BA4";kn.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,f=this.position.t,u=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",m=c==="up",y=s,b=u,T,_,x,A;!v&&!d&&!p&&!m&&(this.position.direction="down",v=!0);var E=v||m;E?(T=l,_=T+y,v?(x=f,A=Math.min(x+b,o),b=A-x):(A=f+b,x=Math.max(A-b,0),b=A-x)):(x=f,A=x+b,d?(_=l+y,T=Math.max(_-y,0),y=_-T):(T=l,_=Math.min(T+y,i),y=_-T)),this._box={l:T,t:x,w:y,h:b};var M=s>y,k=kn.barLength+2*kn.barPad,R=kn.barWidth+2*kn.barPad,P=l,O=f+u;O+R>o&&(O=o-R);var F=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(wU.fill,kn.barColor),M?(this.hbar=F.attr({rx:kn.barRadius,ry:kn.barRadius,x:P,y:O,width:k,height:R}),this._hbarXMin=P+k/2,this._hbarTranslateMax=y-k):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=u>b,W=kn.barWidth+2*kn.barPad,ee=kn.barLength+2*kn.barPad,te=l+s,Q=f;te+W>i&&(te=i-W);var $=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);$.exit().on(".drag",null).remove(),$.enter().append("rect").classed("scrollbar-vertical",!0).call(wU.fill,kn.barColor),H?(this.vbar=$.attr({rx:kn.barRadius,ry:kn.barRadius,x:te,y:Q,width:W,height:ee}),this._vbarYMin=Q+ee/2,this._vbarTranslateMax=b-ee):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,se=T-.5,le=H?_+W+.5:_+.5,Ee=x-.5,Ge=M?A+R+.5:A+.5,Le=n._topdefs.selectAll("#"+j).data(M||H?[0]:[]);if(Le.exit().remove(),Le.enter().append("clipPath").attr("id",j).append("rect"),M||H?(this._clipRect=Le.select("rect").attr({x:Math.floor(se),y:Math.floor(Ee),width:Math.ceil(le)-Math.floor(se),height:Math.ceil(Ge)-Math.floor(Ee)}),this.container.call(hp.setClipUrl,j,this.gd),this.bg.attr({x:l,y:f,width:s,height:u})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(hp.setClipUrl,null),delete this._clipRect),M||H){var Ue=js.behavior.drag().on("dragstart",function(){js.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ue);var xe=js.behavior.drag().on("dragstart",function(){js.event.sourceEvent.preventDefault(),js.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(xe),H&&this.vbar.on(".drag",null).call(xe)}this.setTranslate(t,a)};kn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(hp.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};kn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=js.event.dx),this.vbar&&(t-=js.event.dy),this.setTranslate(r,t)};kn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=js.event.deltaY),this.vbar&&(t+=js.event.deltaY),this.setTranslate(r,t)};kn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Jb.constrain(js.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,f=s+this._vbarTranslateMax,u=Jb.constrain(js.event.y,s,f),c=(u-s)/(f-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};kn.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Jb.constrain(r||0,0,a),t=Jb.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(hp.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(hp.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(hp.setTranslate,r,t+o*this._vbarTranslateMax)}}});var qU=N((BFe,FU)=>{"use strict";var dp=ca(),wm=_i(),Am=va(),pp=Va(),El=zr(),Qb=no(),I2e=$a().arrayEditor,SU=ao().LINE_SPACING,Gt=Zb(),O2e=TU();FU.exports=function(r){var t=r._fullLayout,a=El.filterVisible(t[Gt.name]);function n(v){wm.autoMargin(r,DU(v))}var i=t._menulayer.selectAll("g."+Gt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Gt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){dp.select(this).selectAll("g."+Gt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Gt.headerGroupClassName).data(a,B2e);o.enter().append("g").classed(Gt.headerGroupClassName,!0);for(var l=El.ensureSingle(i,"g",Gt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var W2e=Zb();PU.exports={moduleType:"component",name:W2e.name,layoutAttributes:xT(),supplyLayoutDefaults:_U(),draw:qU()}});var Mm=N((GFe,IU)=>{"use strict";IU.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var TT=N((UFe,zU)=>{"use strict";var OU=Ui(),j2e=a2(),X2e=Un().extendDeepAll,Z2e=Fs().overrideAll,$2e=Q1(),BU=$a().templatedArray,v0=Mm(),J2e=BU("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});zU.exports=Z2e(BU("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:J2e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:X2e(j2e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:$2e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:OU({})},font:OU({}),activebgcolor:{valType:"color",dflt:v0.gripBgActiveColor},bgcolor:{valType:"color",dflt:v0.railBgColor},bordercolor:{valType:"color",dflt:v0.railBorderColor},borderwidth:{valType:"number",min:0,dflt:v0.railBorderWidth},ticklen:{valType:"number",min:0,dflt:v0.tickLength},tickcolor:{valType:"color",dflt:v0.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:v0.minorTickLength}}),"arraydraw","from-root")});var VU=N((HFe,HU)=>{"use strict";var yp=zr(),GU=bl(),UU=TT(),Q2e=Mm(),K2e=Q2e.name,e3e=UU.steps;HU.exports=function(r,t){GU(r,t,{name:K2e,handleItemDefaults:r3e})};function r3e(e,r,t){function a(c,v){return yp.coerce(e,r,UU,c,v)}for(var n=GU(e,r,{name:"steps",handleItemDefaults:t3e}),i=0,o=0;o{"use strict";var Xs=ca(),Kb=_i(),hv=va(),Zs=Va(),kl=zr(),a3e=kl.strTranslate,Sm=no(),n3e=$a().arrayEditor,ea=Mm(),ET=ao(),jU=ET.LINE_SPACING,MT=ET.FROM_TL,ST=ET.FROM_BR;KU.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=i3e(a,r),i=a._infolayer.selectAll("g."+ea.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(ea.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),Kb.autoMargin(r,XU(u))}if(i.exit().each(function(){Xs.select(this).selectAll("g."+ea.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+ea.groupClassName).data(n,o3e);l.enter().append("g").classed(ea.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",a3e(o-ea.gripWidth*.5,r._dims.currentValueTotalHeight))}}function kT(e,r){var t=e._dims;return t.inputAreaStart+ea.stepInset+(t.inputAreaLength-2*ea.stepInset)*Math.min(1,Math.max(0,r))}function WU(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-ea.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*ea.stepInset-2*t.inputAreaStart)))}function h3e(e,r,t){var a=t._dims,n=kl.ensureSingle(e,"rect",ea.railTouchRectClass,function(i){i.call(JU,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,ea.tickOffset+t.ticklen+a.labelHeight)}).call(hv.fill,t.bgcolor).attr("opacity",0),Zs.setTranslate(n,0,a.currentValueTotalHeight)}function d3e(e,r){var t=r._dims,a=t.inputAreaLength-ea.railInset*2,n=kl.ensureSingle(e,"rect",ea.railRectClass);n.attr({width:a,height:ea.railWidth,rx:ea.railRadius,ry:ea.railRadius,"shape-rendering":"crispEdges"}).call(hv.stroke,r.bordercolor).call(hv.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Zs.setTranslate(n,ea.railInset,(t.inputAreaWidth-ea.railWidth)*.5+t.currentValueTotalHeight)}});var tH=N((YFe,rH)=>{"use strict";var p3e=Mm();rH.exports={moduleType:"component",name:p3e.name,layoutAttributes:TT(),supplyLayoutDefaults:VU(),draw:eH()}});var rx=N((WFe,nH)=>{"use strict";var aH=Mf();nH.exports={bgcolor:{valType:"color",dflt:aH.background,editType:"plot"},bordercolor:{valType:"color",dflt:aH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var CT=N((jFe,iH)=>{"use strict";iH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var tx=N((XFe,oH)=>{"use strict";oH.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var fH=N(nx=>{"use strict";var y3e=En(),m3e=no(),lH=tx(),g3e=ao().LINE_SPACING,ax=lH.name;function sH(e){var r=e&&e[ax];return r&&r.visible}nx.isVisible=sH;nx.makeData=function(e){for(var r=y3e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var ix=zr(),uH=$a(),cH=En(),b3e=rx(),x3e=CT();vH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;ix.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=uH.newContainer(i,"rangeslider");function s(A,E){return ix.coerce(o,l,b3e,A,E)}var f,u;function c(A,E){return ix.coerce(f,u,x3e,A,E)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===cH.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=ix.simpleMap(p,cH.id2name),y=0;y{"use strict";var _3e=En().list,w3e=Nd().getAutoRange,A3e=tx();dH.exports=function(r){for(var t=_3e(r,"x",!0),a=0;a{"use strict";var ox=ca(),T3e=Bt(),M3e=_i(),Bn=zr(),lx=Bn.strTranslate,mH=Va(),dv=va(),S3e=yy(),E3e=gm(),LT=En(),k3e=Bs(),C3e=Kc(),oa=tx();gH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=$.max)te=O[Q+1];else if(ee<$.min)break}return te+P*ee},M=0;M=$.pmax)te=O[Q+1];else if(ee<$.pmin)break}return(ee-te)/P}}}if(c.rangemode!=="match"){var F=u.r2l(c.range[0]),H=u.r2l(c.range[1]),W=H-F;f.d2pOppAxis=function(ee){return(ee-F)/W*f._height}}s.call(F3e,e,l,f).call(q3e,e,l,f).call(P3e,e,l,f).call(I3e,e,l,f,c).call(O3e,e,l,f).call(B3e,e,l,f),L3e(s,e,l,f),R3e(s,e,l,f,u,c),l.side==="bottom"&&S3e.draw(e,l._id+"title",{propContainer:l,propName:l._name+".title.text",placeholder:r._dfltTitle.x,attributes:{x:l._offset+l._length/2,y:T+f._height+f._offsetShift+10+1.5*l.title.font.size,"text-anchor":"middle"}})}))};function yH(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function L3e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+oa.slideBoxClassName).node(),i=e.select("rect."+oa.grabAreaMinClassName).node(),o=e.select("rect."+oa.grabAreaMaxClassName).node();function l(){var s=ox.event,f=s.target,u=yH(s),c=u-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=k3e.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var T=yH(b),_=+T-u,x,A,E;switch(f){case n:if(E="ew-resize",v+_>t._length||d+_<0)return;x=v+_,A=d+_;break;case i:if(E="col-resize",v+_>t._length)return;x=v+_,A=d;break;case o:if(E="col-resize",d+_<0)return;x=v,A=d+_;break;default:E="ew-resize",x=c,A=c+_;break}if(A{"use strict";var z3e=zr(),G3e=rx(),U3e=CT(),DT=fH();xH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:z3e.extendFlat({},G3e,{yaxis:U3e})}}},layoutAttributes:rx(),handleDefaults:hH(),calcAutorange:pH(),draw:bH(),isVisible:DT.isVisible,makeData:DT.makeData,autoMarginOpts:DT.autoMarginOpts}});var sx=N((eqe,AH)=>{"use strict";var H3e=Ui(),wH=Mf(),V3e=$a().templatedArray,Y3e=V3e("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});AH.exports={visible:{valType:"boolean",editType:"plot"},buttons:Y3e,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:H3e({editType:"plot"}),bgcolor:{valType:"color",dflt:wH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:wH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var RT=N((rqe,TH)=>{"use strict";TH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var EH=N((tqe,SH)=>{"use strict";var fx=zr(),W3e=va(),j3e=$a(),X3e=bl(),MH=sx(),FT=RT();SH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=j3e.newContainer(t,"rangeselector");function s(d,p){return fx.coerce(o,l,MH,d,p)}var f=X3e(o,l,{name:"buttons",handleItemDefaults:Z3e,calendar:i}),u=s("visible",f.length>0);if(u){var c=$3e(t,a,n);s("x",c[0]),s("y",c[1]),fx.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),fx.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",W3e.contrast(v,FT.lightAmount,FT.darkAmount)),s("bordercolor"),s("borderwidth")}};function Z3e(e,r,t,a){var n=a.calendar;function i(s,f){return fx.coerce(e,r,MH.buttons,s,f)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function $3e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var J3e=E5(),Q3e=zr().titleCase;kH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=K3e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function K3e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=J3e["utc"+Q3e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var f=t[1];return[l,f]}});var IH=N((nqe,NH)=>{"use strict";var cx=ca(),ebe=Bt(),rbe=_i(),LH=va(),PH=Va(),Yu=zr(),DH=Yu.strTranslate,ux=no(),tbe=En(),NT=ao(),RH=NT.LINE_SPACING,FH=NT.FROM_TL,qH=NT.FROM_BR,PT=RT(),abe=CH();NH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(nbe(r),ibe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=cx.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Yu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(f){var u=cx.select(this),c=abe(o,f);f._isActive=obe(o,f,c),u.call(qT,l,f),u.call(sbe,l,f,r),u.on("click",function(){r._dragged||ebe.call("_guiRelayout",r,c)}),u.on("mouseover",function(){f._isHovered=!0,u.call(qT,l,f)}),u.on("mouseout",function(){f._isHovered=!1,u.call(qT,l,f)})}),ube(r,s,l,o._name,i)})};function nbe(e){for(var r=tbe.list(e,"x",!0),t=[],a=0;a{"use strict";OH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:sx()}}},layoutAttributes:sx(),handleDefaults:EH(),draw:IH()}});var vx=N(IT=>{"use strict";var zH=Un().extendFlat;IT.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:zH({},t,{}),y:zH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};IT.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var cbe=zr(),vbe=fd().counter,hbe=vx().attributes,GH=ci().idRegex,dbe=$a(),OT={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[vbe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:hbe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function hx(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function pbe(e,r){var t=e.grid||{},a=hx(r,t,"x"),n=hx(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,f,u;i?(f=t.subplots.length,u=t.subplots[0].length):(l&&(f=n.length),o&&(u=a.length));var c=dbe.newContainer(r,"grid");function v(E,M){return cbe.coerce(t,c,OT,E,M)}var d=v("rows",f),p=v("columns",u);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),b=y==="top to bottom",T=i?.2:.1,_=i?.3:.1,x,A;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,A=r._splomGridDflt.yside),c._domains={x:UH("x",v,T,x,p),y:UH("y",v,_,A,d,b)}}function UH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),f=l[0],u=(l[1]-f)/(n-o),c=u*(1-o),v=0;v{"use strict";YH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var XH=N((fqe,jH)=>{"use strict";var WH=_a(),mbe=Bt(),gbe=zr(),bbe=$a(),xbe=zT();jH.exports=function(e,r,t,a){var n="error_"+a.axis,i=bbe.newContainer(r,n),o=e[n]||{};function l(p,m){return gbe.coerce(o,i,xbe,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",f=l("visible",s);if(f!==!1){var u=l("type","array"in o?"data":"percent"),c=!0;u!=="sqrt"&&(c=l("symmetric",!((u==="data"?"arrayminus":"valueminus")in o))),u==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(u==="percent"||u==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||WH(o.thickness)||WH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",mbe.traceIs(r,"gl3d")?0:4))}}});var GT=N((uqe,$H)=>{"use strict";$H.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(f,u){var c=+n[u];return[c,c]};var i=r.arrayminus||[];return function(f,u){var c=+n[u],v=+i[u];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=ZH(t,r.value),l=ZH(t,r.valueminus);return a||r.valueminus===void 0?function(f){var u=o(f);return[u,u]}:function(f){return[l(f),o(f)]}}};function ZH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var KH=N((cqe,QH)=>{"use strict";var UT=_a(),_be=Bt(),HT=hn(),wbe=zr(),Abe=GT();QH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var eV=ca(),pv=_a(),Tbe=Va(),Mbe=Ni();rV.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,f=r._context.staticPlot;t.each(function(u){var c=u[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(T){return T.id});var m=Mbe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(u=[]);var y=eV.select(this).selectAll("g.errorbar").data(u,p);if(y.exit().remove(),!!u.length){v.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),Tbe.setClipUrl(y,a.layerClipId,r),y.each(function(T){var _=eV.select(this),x=Sbe(T,o,l);if(!(m&&!T.vis)){var A,E=_.select("path.yerror");if(d.visible&&pv(x.x)&&pv(x.yh)&&pv(x.ys)){var M=d.width;A="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(A+="m-"+M+",0h"+2*M),i=!E.size(),i?E=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("yerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",A)}else E.remove();var k=_.select("path.xerror");if(v.visible&&pv(x.y)&&pv(x.xh)&&pv(x.xs)){var R=(v.copy_ystyle?d:v).width;A="M"+x.xh+","+(x.y-R)+"v"+2*R+"m0,-"+R+"H"+x.xs,x.noXS||(A+="m0,-"+R+"v"+2*R),i=!k.size(),i?k=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("xerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",A)}else k.remove()}})}})};function Sbe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),pv(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),pv(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var iV=N((hqe,nV)=>{"use strict";var Ebe=ca(),aV=va();nV.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Ebe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(aV.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(aV.stroke,i.color)})}});var sV=N((dqe,lV)=>{"use strict";var Em=zr(),oV=Fs().overrideAll,km=zT(),h0={error_x:Em.extendFlat({},km),error_y:Em.extendFlat({},km)};delete h0.error_x.copy_zstyle;delete h0.error_y.copy_zstyle;delete h0.error_y.copy_ystyle;var Cm={error_x:Em.extendFlat({},km),error_y:Em.extendFlat({},km),error_z:Em.extendFlat({},km)};delete Cm.error_x.copy_ystyle;delete Cm.error_y.copy_ystyle;delete Cm.error_z.copy_ystyle;delete Cm.error_z.copy_zstyle;lV.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:h0,bar:h0,histogram:h0,scatter3d:oV(Cm,"calc","nested"),scattergl:oV(h0,"calc","nested")}},supplyDefaults:XH(),calc:KH(),makeComputeError:GT(),plot:tV(),style:iV(),hoverInfo:kbe};function kbe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var uV=N((pqe,fV)=>{"use strict";fV.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var mV=N((yqe,yV)=>{"use strict";var yv=ca(),VT=Ls(),px=_i(),cV=Bt(),Wu=hn(),dx=Bs(),is=zr(),Js=is.strTranslate,pV=Un().extendFlat,YT=Kc(),$s=Va(),WT=va(),Cbe=yy(),Lbe=no(),Dbe=Is().flipScale,Rbe=K6(),Fbe=eT(),qbe=Vl(),jT=ao(),vV=jT.LINE_SPACING,hV=jT.FROM_TL,dV=jT.FROM_BR,bn=uV().cn;function Pbe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+bn.colorbar).data(Nbe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(bn.colorbar,!0),t.each(function(a){var n=yv.select(this);is.ensureSingle(n,"rect",bn.cbbg),is.ensureSingle(n,"g",bn.cbfills),is.ensureSingle(n,"g",bn.cblines),is.ensureSingle(n,"g",bn.cbaxis,function(o){o.classed(bn.crisp,!0)}),is.ensureSingle(n,"g",bn.cbtitleunshift,function(o){o.append("g").classed(bn.cbtitle,!0)}),is.ensureSingle(n,"rect",bn.cboutline);var i=Ibe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Obe(n,a,e)}),t.exit().each(function(a){px.autoMargin(e,a._id)}).remove(),t.order()}function Nbe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return pV(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function f(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?Dbe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var u=0;u1){var de=Math.pow(10,Math.floor(Math.log(re)/Math.LN10));xr*=de*is.roundUp(re/de,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(Oe.tick0=0)}Oe.dtick=xr}Oe.domain=a?[xe+p/x.h,xe+j-p/x.h]:[xe+d/x.w,xe+j-d/x.w],Oe.setScale(),e.attr("transform",Js(Math.round(x.l),Math.round(x.t)));var ne=e.select("."+bn.cbtitleunshift).attr("transform",Js(-Math.round(x.l),-Math.round(x.t))),Re=Oe.ticklabelposition,Je=Oe.title.font.size,Ke=e.select("."+bn.cbaxis),Cr,Ar=0,gr=0;function et(rt,Pe){var or={propContainer:Oe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+bn.cbtitle)},st=rt.charAt(0)==="h"?rt.slice(1):"h"+rt;e.selectAll("."+st+",."+st+"-math-group").remove(),Cbe.draw(t,rt,pV(or,Pe||{}))}function Hr(){if(a&&He||!a&&!He){var rt,Pe;k==="top"&&(rt=d+x.l+se*m,Pe=p+x.t+le*(1-xe-j)+3+Je*.75),k==="bottom"&&(rt=d+x.l+se*m,Pe=p+x.t+le*(1-xe)-3-Je*.25),k==="right"&&(Pe=p+x.t+le*y+3+Je*.75,rt=d+x.l+se*xe),et(Oe._id+"title",{attributes:{x:rt,y:Pe,"text-anchor":a?"start":"middle"}})}}function at(){if(a&&!He||!a&&He){var rt=Oe.position||0,Pe=Oe._offset+Oe._length/2,or,st;if(k==="right")st=Pe,or=x.l+se*rt+10+Je*(Oe.showticklabels?1:.5);else if(or=Pe,k==="bottom"&&(st=x.t+le*rt+10+(Re.indexOf("inside")===-1?Oe.tickfont.size:0)+(Oe.ticks!=="inside"&&r.ticklen||0)),k==="top"){var kt=M.text.split("
").length;st=x.t+le*rt+10-te-vV*Je*kt}et((a?"h":"v")+Oe._id+"title",{avoid:{selection:yv.select(t).selectAll("g."+Oe._id+"tick"),side:k,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?_.width:_.height},attributes:{x:or,y:st,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function wr(){if(!a&&!He||a&&He){var rt=e.select("."+bn.cbtitle),Pe=rt.select("text"),or=[-s/2,s/2],st=rt.select(".h"+Oe._id+"title-math-group").node(),kt=15.6;Pe.node()&&(kt=parseInt(Pe.node().style.fontSize,10)*vV);var Tr;if(st?(Tr=$s.bBox(st),gr=Tr.width,Ar=Tr.height,Ar>kt&&(or[1]-=(Ar-kt)/2)):Pe.node()&&!Pe.classed(bn.jsPlaceholder)&&(Tr=$s.bBox(Pe.node()),gr=Tr.width,Ar=Tr.height),a){if(Ar){if(Ar+=5,k==="top")Oe.domain[1]-=Ar/x.h,or[1]*=-1;else{Oe.domain[0]+=Ar/x.h;var tr=Lbe.lineCount(Pe);or[1]+=(1-tr)*kt}rt.attr("transform",Js(or[0],or[1])),Oe.setScale()}}else gr&&(k==="right"&&(Oe.domain[0]+=(gr+Je/2)/x.w),rt.attr("transform",Js(or[0],or[1])),Oe.setScale())}e.selectAll("."+bn.cbfills+",."+bn.cblines).attr("transform",a?Js(0,Math.round(x.h*(1-Oe.domain[1]))):Js(Math.round(x.w*Oe.domain[0]),0)),Ke.attr("transform",a?Js(0,Math.round(-x.t)):Js(Math.round(-x.l),0));var sr=e.select("."+bn.cbfills).selectAll("rect."+bn.cbfill).attr("style","").data(W);sr.enter().append("rect").classed(bn.cbfill,!0).attr("style",""),sr.exit().remove();var Gr=R.map(Oe.c2p).map(Math.round).sort(function(jr,ot){return jr-ot});sr.each(function(jr,ot){var dr=[ot===0?R[0]:(W[ot]+W[ot-1])/2,ot===W.length-1?R[1]:(W[ot]+W[ot+1])/2].map(Oe.c2p).map(Math.round);a&&(dr[1]=is.constrain(dr[1]+(dr[1]>dr[0])?1:-1,Gr[0],Gr[1]));var Se=yv.select(this).attr(a?"x":"y",Ee).attr(a?"y":"x",yv.min(dr)).attr(a?"width":"height",Math.max(te,2)).attr(a?"height":"width",Math.max(yv.max(dr)-yv.min(dr),2));if(r._fillgradient)$s.gradient(Se,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Ie=O(jr).replace("e-","");Se.attr("fill",VT(Ie).toHexString())}});var nt=e.select("."+bn.cblines).selectAll("path."+bn.cbline).data(E.color&&E.width?ee:[]);nt.enter().append("path").classed(bn.cbline,!0),nt.exit().remove(),nt.each(function(jr){var ot=Ee,dr=Math.round(Oe.c2p(jr))+E.width/2%1;yv.select(this).attr("d","M"+(a?ot+","+dr:dr+","+ot)+(a?"h":"v")+te).call($s.lineGroupStyle,E.width,P(jr),E.dash)}),Ke.selectAll("g."+Oe._id+"tick,path").remove();var Yr=Ee+te+(s||0)/2-(r.ticks==="outside"?1:0),Wr=Wu.calcTicks(Oe),xt=Wu.getTickSigns(Oe)[2];return Wu.drawTicks(t,Oe,{vals:Oe.ticks==="inside"?Wu.clipEnds(Oe,Wr):Wr,layer:Ke,path:Wu.makeTickPath(Oe,Yr,xt),transFn:Wu.makeTransTickFn(Oe)}),Wu.drawLabels(t,Oe,{vals:Wr,layer:Ke,transFn:Wu.makeTransTickLabelFn(Oe),labelFns:Wu.makeLabelFns(Oe,Yr)})}function Vr(){var rt,Pe=te+s/2;Re.indexOf("inside")===-1&&(rt=$s.bBox(Ke.node()),Pe+=a?rt.width:rt.height),Cr=ne.select("text");var or=0,st=a&&k==="top",kt=!a&&k==="right",Tr=0;if(Cr.node()&&!Cr.classed(bn.jsPlaceholder)){var tr,sr=ne.select(".h"+Oe._id+"title-math-group").node();sr&&(a&&He||!a&&!He)?(rt=$s.bBox(sr),or=rt.width,tr=rt.height):(rt=$s.bBox(ne.node()),or=rt.right-x.l-(a?Ee:ur),tr=rt.bottom-x.t-(a?ur:Ee),!a&&k==="top"&&(Pe+=rt.height,Tr=rt.height)),kt&&(Cr.attr("transform",Js(or/2+Je/2,0)),or*=2),Pe=Math.max(Pe,a?or:tr)}var Gr=(a?d:p)*2+Pe+f+s/2,nt=0;!a&&M.text&&v==="bottom"&&y<=0&&(nt=Gr/2,Gr+=nt,Tr+=nt),_._hColorbarMoveTitle=nt,_._hColorbarMoveCBTitle=Tr;var Yr=f+s,Wr=(a?Ee:ur)-Yr/2-(a?d:0),xt=(a?ur:Ee)-(a?$:p+Tr-nt);e.select("."+bn.cbbg).attr("x",Wr).attr("y",xt).attr(a?"width":"height",Math.max(Gr-nt,2)).attr(a?"height":"width",Math.max($+Yr,2)).call(WT.fill,u).call(WT.stroke,r.bordercolor).style("stroke-width",f);var jr=kt?Math.max(or-10,0):0;e.selectAll("."+bn.cboutline).attr("x",(a?Ee:ur+d)+jr).attr("y",(a?ur+p-$:Ee)+(st?Ar:0)).attr(a?"width":"height",Math.max(te,2)).attr(a?"height":"width",Math.max($-(a?2*p+Ar:2*d+jr),2)).call(WT.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var ot=a?Ge*Gr:0,dr=a?0:(1-Le)*Gr-Tr;if(ot=T?x.l-ot:-ot,dr=b?x.t-dr:-dr,e.attr("transform",Js(ot,dr)),!a&&(f||VT(u).getAlpha()&&!VT.equals(_.paper_bgcolor,u))){var Se=Ke.selectAll("text"),Ie=Se[0].length,pr=e.select("."+bn.cbbg).node(),_r=$s.bBox(pr),ht=$s.getTranslate(e),Mt=2;Se.each(function(Ei,un){var zn=0,ki=Ie-1;if(un===zn||un===ki){var Dn=$s.bBox(this),yn=$s.getTranslate(this),At;if(un===ki){var Ia=Dn.right+yn.x,ha=_r.right+ht.x+ur-f-Mt+m;At=ha-Ia,At>0&&(At=0)}else if(un===zn){var Sa=Dn.left+yn.x,mn=_r.left+ht.x+ur+f+Mt;At=mn-Sa,At<0&&(At=0)}At&&(Ie<3?this.setAttribute("transform","translate("+At+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var wt={},Nt=hV[c],ta=dV[c],ma=hV[v],za=dV[v],rn=Gr-te;a?(i==="pixels"?(wt.y=y,wt.t=$*ma,wt.b=$*za):(wt.t=wt.b=0,wt.yt=y+n*ma,wt.yb=y-n*za),l==="pixels"?(wt.x=m,wt.l=Gr*Nt,wt.r=Gr*ta):(wt.l=rn*Nt,wt.r=rn*ta,wt.xl=m-o*Nt,wt.xr=m+o*ta)):(i==="pixels"?(wt.x=m,wt.l=$*Nt,wt.r=$*ta):(wt.l=wt.r=0,wt.xl=m+n*Nt,wt.xr=m-n*ta),l==="pixels"?(wt.y=1-y,wt.t=Gr*ma,wt.b=Gr*za):(wt.t=rn*ma,wt.b=rn*za,wt.yt=y-o*ma,wt.yb=y+o*za));var Wa=r.y<.5?"b":"t",Ln=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var _n={r:_.width-Wr-ot,l:Wr+wt.r,b:_.height-xt-dr,t:xt+wt.b};T&&b?px.autoMargin(t,r._id,wt):T?t._fullLayout._reservedMargin[r._id][Wa]=_n[Wa]:b||a?t._fullLayout._reservedMargin[r._id][Ln]=_n[Ln]:t._fullLayout._reservedMargin[r._id][Wa]=_n[Wa]}return is.syncOrAsync([px.previousPromises,Hr,wr,at,px.previousPromises,Vr],t)}function Obe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;dx.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),YT(e)},moveFn:function(f,u){e.attr("transform",o+Js(f,u)),l=dx.align((a?r._uFrac:r._vFrac)+f/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=dx.align((a?r._vFrac:1-r._uFrac)-u/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=dx.getCursor(l,s,r.xanchor,r.yanchor);YT(e,c)},doneFn:function(){if(YT(e),l!==void 0&&s!==void 0){var f={};f[r._propPrefix+"x"]=l,f[r._propPrefix+"y"]=s,r._traceIndex!==void 0?cV.call("_guiRestyle",t,f,r._traceIndex):cV.call("_guiRelayout",t,f)}}})}function Bbe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,f=a.size,u=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*f,!(f>0?o>=s:o<=s));l++)o>u&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";gV.exports={moduleType:"component",name:"colorbar",attributes:F2(),supplyDefaults:G4(),draw:mV().draw,hasColorbar:L4()}});var _V=N((gqe,xV)=>{"use strict";xV.exports={moduleType:"component",name:"legend",layoutAttributes:Ow(),supplyLayoutDefaults:zw(),draw:rA(),style:Jw()}});var AV=N((bqe,wV)=>{"use strict";wV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var MV=N((xqe,TV)=>{"use strict";TV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var ZT=N((_qe,CV)=>{"use strict";var Gbe=Bt(),kV=zr(),XT=kV.extendFlat,SV=kV.extendDeep;function EV(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Ube(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}CV.exports=function(r,t){var a,n=r.data,i=r.layout,o=SV([],n),l=SV({},i,EV(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var f=Object.keys(l);for(a=0;a{"use strict";var Hbe=x2().EventEmitter,Vbe=Bt(),Ybe=zr(),LV=t0(),Wbe=ZT(),jbe=wb(),Xbe=Ab();function Zbe(e,r){var t=new Hbe,a=Wbe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=LV.getDelay(n._fullLayout);setTimeout(function(){var s=jbe(n),f=document.createElement("canvas");f.id=Ybe.randstr(),t=Xbe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:f,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=LV.getRedrawFunc(n);return Vbe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}DV.exports=Zbe});var PV=N((Aqe,qV)=>{"use strict";var FV=t0(),$be={getDelay:FV.getDelay,getRedrawFunc:FV.getRedrawFunc,clone:ZT(),toSVG:wb(),svgToImg:Ab(),toImage:RV(),downloadImage:b6()};qV.exports=$be});var IV=N(ju=>{"use strict";ju.version=U1().version;RM();_C();var Jbe=Bt(),Lm=ju.register=Jbe.register,JT=VO(),NV=Object.keys(JT);for(yx=0;yx{"use strict";OV.exports=IV()});var QT=N((Sqe,GV)=>{"use strict";var Qbe=Bt(),Cl=zr(),Kbe=Z6();function exe(e,r,t,a){var n=e.cd,i=n[0].t,o=n[0].trace,l=e.xa,s=e.ya,f=i.x,u=i.y,c=l.c2p(r),v=s.c2p(t),d=e.distance,p;if(i.tree){var m=l.p2c(c-d),y=l.p2c(c+d),b=s.p2c(v-d),T=s.p2c(v+d);a==="x"?p=i.tree.range(Math.min(m,y),Math.min(s._rl[0],s._rl[1]),Math.max(m,y),Math.max(s._rl[0],s._rl[1])):p=i.tree.range(Math.min(m,y),Math.min(b,T),Math.max(m,y),Math.max(b,T))}else p=i.ids;var _,x,A,E,M,k,R,P,O,F=d;if(a==="x"){var H=!!o.xperiodalignment,W=!!o.yperiodalignment;for(M=0;M=Math.min(ee,te)&&c<=Math.max(ee,te)?0:1/0}if(k=Math.min(Q,$)&&v<=Math.max(Q,$)?0:1/0}O=Math.sqrt(k*k+R*R),x=p[M]}}}else for(M=p.length-1;M>-1;M--)_=p[M],A=f[_],E=u[_],k=l.c2p(A)-c,R=s.c2p(E)-v,P=Math.sqrt(k*k+R*R),P{"use strict";var UV=20;HV.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:UV,SYMBOL_STROKE:UV/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var gx=N((kqe,jV)=>{"use strict";var rxe=Ds(),txe=Ui(),axe=ZA(),xn=lv(),VV=vy().axisHoverFormat,YV=Nh(),nxe=u2(),KT=Un().extendFlat,ixe=Fs().overrideAll,oxe=gp().DASHES,WV=xn.line,Xu=xn.marker,lxe=Xu.line,mv=jV.exports=ixe({x:xn.x,x0:xn.x0,dx:xn.dx,y:xn.y,y0:xn.y0,dy:xn.dy,xperiod:xn.xperiod,yperiod:xn.yperiod,xperiod0:xn.xperiod0,yperiod0:xn.yperiod0,xperiodalignment:xn.xperiodalignment,yperiodalignment:xn.yperiodalignment,xhoverformat:VV("x"),yhoverformat:VV("y"),text:xn.text,hovertext:xn.hovertext,textposition:xn.textposition,textfont:txe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:WV.color,width:WV.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:nxe(oxe),dflt:"solid"}},marker:KT({},YV("marker"),{symbol:Xu.symbol,angle:Xu.angle,size:Xu.size,sizeref:Xu.sizeref,sizemin:Xu.sizemin,sizemode:Xu.sizemode,opacity:Xu.opacity,colorbar:Xu.colorbar,line:KT({},YV("marker.line"),{width:lxe.width})}),connectgaps:xn.connectgaps,fill:KT({},xn.fill,{dflt:"none"}),fillcolor:axe(),selected:{marker:xn.selected.marker,textfont:xn.selected.textfont},unselected:{marker:xn.unselected.marker,textfont:xn.unselected.textfont},opacity:rxe.opacity},"calc","nested");mv.x.editType=mv.y.editType=mv.x0.editType=mv.y0.editType="calc+clearAxisTypes";mv.hovertemplate=xn.hovertemplate;mv.hovertemplatefallback=xn.hovertemplatefallback;mv.texttemplate=xn.texttemplate;mv.texttemplatefallback=xn.texttemplatefallback});var bx=N(e8=>{"use strict";var XV=gp();e8.isOpenSymbol=function(e){return typeof e=="string"?XV.OPEN_RE.test(e):e%200>100};e8.isDotSymbol=function(e){return typeof e=="string"?XV.DOT_RE.test(e):e>200}});var JV=N((Lqe,$V)=>{"use strict";var ZV=zr(),sxe=Bt(),fxe=bx(),uxe=gx(),cxe=Qy(),xx=Ni(),vxe=w6(),hxe=A6(),dxe=kb(),pxe=T6(),yxe=S6(),mxe=M6();$V.exports=function(r,t,a,n){function i(d,p){return ZV.coerce(r,t,uxe,d,p)}var o=r.marker?fxe.isOpenSymbol(r.marker.symbol):!1,l=xx.isBubble(r),s=vxe(r,t,n,i);if(!s){t.visible=!1;return}hxe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var f=s{"use strict";var gxe=V6();QV.exports=function(r,t,a){var n=r.i;return"x"in r||(r.x=t._x[n]),"y"in r||(r.y=t._y[n]),gxe(r,t,a)}});var rY=N((Rqe,eY)=>{"use strict";function bxe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>=0?(i=o,n=o-1):a=o+1}return i}function xxe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>0?(i=o,n=o-1):a=o+1}return i}function _xe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<0?(i=o,a=o+1):n=o-1}return i}function wxe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<=0?(i=o,a=o+1):n=o-1}return i}function Axe(e,r,t,a,n){for(;a<=n;){var i=a+n>>>1,o=e[i],l=t!==void 0?t(o,r):o-r;if(l===0)return i;l<=0?a=i+1:n=i-1}return-1}function Dm(e,r,t,a,n,i){return typeof t=="function"?i(e,r,t,a===void 0?0:a|0,n===void 0?e.length-1:n|0):i(e,r,void 0,t===void 0?0:t|0,a===void 0?e.length-1:a|0)}eY.exports={ge:function(e,r,t,a,n){return Dm(e,r,t,a,n,bxe)},gt:function(e,r,t,a,n){return Dm(e,r,t,a,n,xxe)},lt:function(e,r,t,a,n){return Dm(e,r,t,a,n,_xe)},le:function(e,r,t,a,n){return Dm(e,r,t,a,n,wxe)},eq:function(e,r,t,a,n){return Dm(e,r,t,a,n,Axe)}}});var Rm=N((Fqe,tY)=>{tY.exports=Txe;function Txe(e,r,t){return rt?t:e:er?r:e}});var Vf=N((qqe,nY)=>{"use strict";nY.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=aY(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var Mxe=Vf();iY.exports=Sxe;function Sxe(e){var r;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?r={width:e[0],height:e[0],x:0,y:0}:e.length===2?r={width:e[0],height:e[1],x:0,y:0}:r={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=Mxe(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),r={x:e.left||0,y:e.top||0},e.width==null?e.right?r.width=e.right-r.x:r.width=0:r.width=e.width,e.height==null?e.bottom?r.height=e.bottom-r.y:r.height=0:r.height=e.height),r}});var d0=N((Nqe,oY)=>{"use strict";oY.exports=Exe;function Exe(e,r){if(!e||e.length==null)throw Error("Argument should be an array");r==null?r=1:r=Math.floor(r);for(var t=Array(r*2),a=0;an&&(n=e[o]),e[o]{lY.exports=function(){for(var e=0;e{fY.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var p0=N((Bqe,cY)=>{var uY=_x();cY.exports=kxe;function kxe(e,r,t){if(!e)throw new TypeError("must specify data as first parameter");if(t=+(t||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var a=e[0].length,n=e.length*a,i,o,l,s;(!r||typeof r=="string")&&(r=new(uY(r||"float32"))(n+t));var f=r.length-t;if(n!==f)throw new Error("source length "+n+" ("+a+"x"+e.length+") does not match destination length "+f);for(i=0,l=t;i{"use strict";vY.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var pY=N((Gqe,dY)=>{"use strict";dY.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var wY=N((Uqe,_Y)=>{"use strict";var yY=rY(),mY=Rm(),Cxe=bp(),Lxe=d0(),gY=Vf(),t8=sY(),Dxe=p0(),Rxe=hY(),Fxe=_x(),bY=pY(),qxe=1073741824;_Y.exports=function(r,t){t||(t={}),r=Dxe(r,"float64"),t=gY(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=t8(t.maxDepth,255),n=t8(t.bounds,Lxe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=xY(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(Fxe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||E>qxe){for(let $=0;$Ee||R>Ge||P=F||se===le)return;let Le=s[j];le===void 0&&(le=Le.length);for(let de=se;de=x&&Re<=E&&Je>=A&&Je<=M&&H.push(ne)}let Ue=f[j],xe=Ue[se*4+0],ur=Ue[se*4+1],Oe=Ue[se*4+2],He=Ue[se*4+3],xr=ee(Ue,se+1),Ye=$*.5,re=j+1;W(te,Q,Ye,re,xe,ur||Oe||He||xr),W(te,Q+Ye,Ye,re,ur,Oe||He||xr),W(te+Ye,Q,Ye,re,Oe,He||xr),W(te+Ye,Q+Ye,Ye,re,He,xr)}function ee(te,Q){let $=null,j=0;for(;$===null;)if($=te[Q*4+j],j++,j>te.length)return null;return $}return H}function m(b,T,_,x,A){let E=[];for(let M=0;M{"use strict";AY.exports=wY()});var n8=N((Vqe,TY)=>{TY.exports=Pxe;function Pxe(e){var r=0,t=0,a=0,n=0;return e.map(function(i){i=i.slice();var o=i[0],l=o.toUpperCase();if(o!=l)switch(i[0]=l,o){case"a":i[6]+=a,i[7]+=n;break;case"v":i[1]+=n;break;case"h":i[1]+=a;break;default:for(var s=1;s{"use strict";Object.defineProperty(wx,"__esModule",{value:!0});var Nxe=(function(){function e(r,t){var a=[],n=!0,i=!1,o=void 0;try{for(var l=r[Symbol.iterator](),s;!(n=(s=l.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(f){i=!0,o=f}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}return a}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),Fm=Math.PI*2,i8=function(r,t,a,n,i,o,l){var s=r.x,f=r.y;s*=t,f*=a;var u=n*s-i*f,c=i*s+n*f;return{x:u+o,y:c+l}},Ixe=function(r,t){var a=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(r),i=Math.sin(r),o=Math.cos(r+t),l=Math.sin(r+t);return[{x:n-i*a,y:i+n*a},{x:o+l*a,y:l-o*a},{x:o,y:l}]},MY=function(r,t,a,n){var i=r*n-t*a<0?-1:1,o=r*a+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},Oxe=function(r,t,a,n,i,o,l,s,f,u,c,v){var d=Math.pow(i,2),p=Math.pow(o,2),m=Math.pow(c,2),y=Math.pow(v,2),b=d*p-d*y-p*m;b<0&&(b=0),b/=d*y+p*m,b=Math.sqrt(b)*(l===s?-1:1);var T=b*i/o*v,_=b*-o/i*c,x=u*T-f*_+(r+a)/2,A=f*T+u*_+(t+n)/2,E=(c-T)/i,M=(v-_)/o,k=(-c-T)/i,R=(-v-_)/o,P=MY(1,0,E,M),O=MY(E,M,k,R);return s===0&&O>0&&(O-=Fm),s===1&&O<0&&(O+=Fm),[x,A,P,O]},Bxe=function(r){var t=r.px,a=r.py,n=r.cx,i=r.cy,o=r.rx,l=r.ry,s=r.xAxisRotation,f=s===void 0?0:s,u=r.largeArcFlag,c=u===void 0?0:u,v=r.sweepFlag,d=v===void 0?0:v,p=[];if(o===0||l===0)return[];var m=Math.sin(f*Fm/360),y=Math.cos(f*Fm/360),b=y*(t-n)/2+m*(a-i)/2,T=-m*(t-n)/2+y*(a-i)/2;if(b===0&&T===0)return[];o=Math.abs(o),l=Math.abs(l);var _=Math.pow(b,2)/Math.pow(o,2)+Math.pow(T,2)/Math.pow(l,2);_>1&&(o*=Math.sqrt(_),l*=Math.sqrt(_));var x=Oxe(t,a,n,i,o,l,c,d,m,y,b,T),A=Nxe(x,4),E=A[0],M=A[1],k=A[2],R=A[3],P=Math.abs(R)/(Fm/4);Math.abs(1-P)<1e-7&&(P=1);var O=Math.max(Math.ceil(P),1);R/=O;for(var F=0;F{"use strict";CY.exports=Gxe;var zxe=EY();function Gxe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function Ax(e,r,t,a){return["C",e,r,t,a,t,a]}function kY(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}});var o8=N((Wqe,DY)=>{"use strict";DY.exports=function(r){return typeof r!="string"?!1:(r=r.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4))}});var Tx=N((jqe,RY)=>{"use strict";RY.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var qm=N((Xqe,FY)=>{"use strict";var Uxe=Tx();FY.exports=function(){return Uxe()&&!!Symbol.toStringTag}});var l8=N((Zqe,qY)=>{"use strict";qY.exports=Object});var NY=N(($qe,PY)=>{"use strict";PY.exports=Error});var OY=N((Jqe,IY)=>{"use strict";IY.exports=EvalError});var zY=N((Qqe,BY)=>{"use strict";BY.exports=RangeError});var UY=N((Kqe,GY)=>{"use strict";GY.exports=ReferenceError});var s8=N((ePe,HY)=>{"use strict";HY.exports=SyntaxError});var xp=N((rPe,VY)=>{"use strict";VY.exports=TypeError});var WY=N((tPe,YY)=>{"use strict";YY.exports=URIError});var XY=N((aPe,jY)=>{"use strict";jY.exports=Math.abs});var $Y=N((nPe,ZY)=>{"use strict";ZY.exports=Math.floor});var QY=N((iPe,JY)=>{"use strict";JY.exports=Math.max});var eW=N((oPe,KY)=>{"use strict";KY.exports=Math.min});var tW=N((lPe,rW)=>{"use strict";rW.exports=Math.pow});var nW=N((sPe,aW)=>{"use strict";aW.exports=Math.round});var oW=N((fPe,iW)=>{"use strict";iW.exports=Number.isNaN||function(r){return r!==r}});var sW=N((uPe,lW)=>{"use strict";var Hxe=oW();lW.exports=function(r){return Hxe(r)||r===0?r:r<0?-1:1}});var uW=N((cPe,fW)=>{"use strict";fW.exports=Object.getOwnPropertyDescriptor});var y0=N((vPe,cW)=>{"use strict";var Mx=uW();if(Mx)try{Mx([],"length")}catch(e){Mx=null}cW.exports=Mx});var Pm=N((hPe,vW)=>{"use strict";var Sx=Object.defineProperty||!1;if(Sx)try{Sx({},"a",{value:1})}catch(e){Sx=!1}vW.exports=Sx});var pW=N((dPe,dW)=>{"use strict";var hW=typeof Symbol!="undefined"&&Symbol,Vxe=Tx();dW.exports=function(){return typeof hW!="function"||typeof Symbol!="function"||typeof hW("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vxe()}});var f8=N((pPe,yW)=>{"use strict";yW.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var u8=N((yPe,mW)=>{"use strict";var Yxe=l8();mW.exports=Yxe.getPrototypeOf||null});var xW=N((mPe,bW)=>{"use strict";var Wxe="Function.prototype.bind called on incompatible ",jxe=Object.prototype.toString,Xxe=Math.max,Zxe="[object Function]",gW=function(r,t){for(var a=[],n=0;n{"use strict";var Qxe=xW();_W.exports=Function.prototype.bind||Qxe});var Ex=N((bPe,wW)=>{"use strict";wW.exports=Function.prototype.call});var c8=N((xPe,AW)=>{"use strict";AW.exports=Function.prototype.apply});var MW=N((_Pe,TW)=>{"use strict";TW.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var EW=N((wPe,SW)=>{"use strict";var Kxe=_p(),e_e=c8(),r_e=Ex(),t_e=MW();SW.exports=t_e||Kxe.call(r_e,e_e)});var CW=N((APe,kW)=>{"use strict";var a_e=_p(),n_e=xp(),i_e=Ex(),o_e=EW();kW.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new n_e("a function is required");return o_e(a_e,i_e,r)}});var PW=N((TPe,qW)=>{"use strict";var l_e=CW(),LW=y0(),RW;try{RW=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var v8=!!RW&&LW&&LW(Object.prototype,"__proto__"),FW=Object,DW=FW.getPrototypeOf;qW.exports=v8&&typeof v8.get=="function"?l_e([v8.get]):typeof DW=="function"?function(r){return DW(r==null?r:FW(r))}:!1});var zW=N((MPe,BW)=>{"use strict";var NW=f8(),IW=u8(),OW=PW();BW.exports=NW?function(r){return NW(r)}:IW?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return IW(r)}:OW?function(r){return OW(r)}:null});var UW=N((SPe,GW)=>{"use strict";var s_e=Function.prototype.call,f_e=Object.prototype.hasOwnProperty,u_e=_p();GW.exports=u_e.call(s_e,f_e)});var Lx=N((EPe,XW)=>{"use strict";var qa,c_e=l8(),v_e=NY(),h_e=OY(),d_e=zY(),p_e=UY(),Mp=s8(),Tp=xp(),y_e=WY(),m_e=XY(),g_e=$Y(),b_e=QY(),x_e=eW(),__e=tW(),w_e=nW(),A_e=sW(),WW=Function,h8=function(e){try{return WW('"use strict"; return ('+e+").constructor;")()}catch(r){}},Nm=y0(),T_e=Pm(),d8=function(){throw new Tp},M_e=Nm?(function(){try{return arguments.callee,d8}catch(e){try{return Nm(arguments,"callee").get}catch(r){return d8}}})():d8,wp=pW()(),Yi=zW(),S_e=u8(),E_e=f8(),jW=c8(),Im=Ex(),Ap={},k_e=typeof Uint8Array=="undefined"||!Yi?qa:Yi(Uint8Array),m0={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?qa:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?qa:ArrayBuffer,"%ArrayIteratorPrototype%":wp&&Yi?Yi([][Symbol.iterator]()):qa,"%AsyncFromSyncIteratorPrototype%":qa,"%AsyncFunction%":Ap,"%AsyncGenerator%":Ap,"%AsyncGeneratorFunction%":Ap,"%AsyncIteratorPrototype%":Ap,"%Atomics%":typeof Atomics=="undefined"?qa:Atomics,"%BigInt%":typeof BigInt=="undefined"?qa:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?qa:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?qa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?qa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":v_e,"%eval%":eval,"%EvalError%":h_e,"%Float16Array%":typeof Float16Array=="undefined"?qa:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?qa:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?qa:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?qa:FinalizationRegistry,"%Function%":WW,"%GeneratorFunction%":Ap,"%Int8Array%":typeof Int8Array=="undefined"?qa:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?qa:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?qa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":wp&&Yi?Yi(Yi([][Symbol.iterator]())):qa,"%JSON%":typeof JSON=="object"?JSON:qa,"%Map%":typeof Map=="undefined"?qa:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!wp||!Yi?qa:Yi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":c_e,"%Object.getOwnPropertyDescriptor%":Nm,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?qa:Promise,"%Proxy%":typeof Proxy=="undefined"?qa:Proxy,"%RangeError%":d_e,"%ReferenceError%":p_e,"%Reflect%":typeof Reflect=="undefined"?qa:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?qa:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!wp||!Yi?qa:Yi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?qa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":wp&&Yi?Yi(""[Symbol.iterator]()):qa,"%Symbol%":wp?Symbol:qa,"%SyntaxError%":Mp,"%ThrowTypeError%":M_e,"%TypedArray%":k_e,"%TypeError%":Tp,"%Uint8Array%":typeof Uint8Array=="undefined"?qa:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?qa:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?qa:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?qa:Uint32Array,"%URIError%":y_e,"%WeakMap%":typeof WeakMap=="undefined"?qa:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?qa:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?qa:WeakSet,"%Function.prototype.call%":Im,"%Function.prototype.apply%":jW,"%Object.defineProperty%":T_e,"%Object.getPrototypeOf%":S_e,"%Math.abs%":m_e,"%Math.floor%":g_e,"%Math.max%":b_e,"%Math.min%":x_e,"%Math.pow%":__e,"%Math.round%":w_e,"%Math.sign%":A_e,"%Reflect.getPrototypeOf%":E_e};if(Yi)try{null.error}catch(e){HW=Yi(Yi(e)),m0["%Error.prototype%"]=HW}var HW,C_e=function e(r){var t;if(r==="%AsyncFunction%")t=h8("async function () {}");else if(r==="%GeneratorFunction%")t=h8("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=h8("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Yi&&(t=Yi(n.prototype))}return m0[r]=t,t},VW={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Om=_p(),kx=UW(),L_e=Om.call(Im,Array.prototype.concat),D_e=Om.call(jW,Array.prototype.splice),YW=Om.call(Im,String.prototype.replace),Cx=Om.call(Im,String.prototype.slice),R_e=Om.call(Im,RegExp.prototype.exec),F_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q_e=/\\(\\)?/g,P_e=function(r){var t=Cx(r,0,1),a=Cx(r,-1);if(t==="%"&&a!=="%")throw new Mp("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new Mp("invalid intrinsic syntax, expected opening `%`");var n=[];return YW(r,F_e,function(i,o,l,s){n[n.length]=l?YW(s,q_e,"$1"):o||i}),n},N_e=function(r,t){var a=r,n;if(kx(VW,a)&&(n=VW[a],a="%"+n[0]+"%"),kx(m0,a)){var i=m0[a];if(i===Ap&&(i=C_e(a)),typeof i=="undefined"&&!t)throw new Tp("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new Mp("intrinsic "+r+" does not exist!")};XW.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new Tp("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Tp('"allowMissing" argument must be a boolean');if(R_e(/^%?[^%]*%?$/,r)===null)throw new Mp("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=P_e(r),n=a.length>0?a[0]:"",i=N_e("%"+n+"%",t),o=i.name,l=i.value,s=!1,f=i.alias;f&&(n=f[0],D_e(a,L_e([0,1],f)));for(var u=1,c=!0;u=a.length){var m=Nm(l,v);c=!!m,c&&"get"in m&&!("originalValue"in m.get)?l=m.get:l=l[v]}else c=kx(l,v),l=l[v];c&&!s&&(m0[o]=l)}}return l}});var QW=N((kPe,JW)=>{"use strict";var ZW=Pm(),I_e=s8(),Sp=xp(),$W=y0();JW.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new Sp("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Sp("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Sp("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Sp("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Sp("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Sp("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!$W&&$W(r,t);if(ZW)ZW(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new I_e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var y8=N((CPe,ej)=>{"use strict";var p8=Pm(),KW=function(){return!!p8};KW.hasArrayLengthDefineBug=function(){if(!p8)return null;try{return p8([],"length",{value:1}).length!==1}catch(r){return!0}};ej.exports=KW});var ij=N((LPe,nj)=>{"use strict";var O_e=Lx(),rj=QW(),B_e=y8()(),tj=y0(),aj=xp(),z_e=O_e("%Math.floor%");nj.exports=function(r,t){if(typeof r!="function")throw new aj("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||z_e(t)!==t)throw new aj("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&tj){var o=tj(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(B_e?rj(r,"length",t,!0,!0):rj(r,"length",t)),r}});var Bm=N((DPe,Dx)=>{"use strict";var m8=_p(),Rx=Lx(),G_e=ij(),U_e=xp(),sj=Rx("%Function.prototype.apply%"),fj=Rx("%Function.prototype.call%"),uj=Rx("%Reflect.apply%",!0)||m8.call(fj,sj),oj=Pm(),H_e=Rx("%Math.max%");Dx.exports=function(r){if(typeof r!="function")throw new U_e("a function is required");var t=uj(m8,fj,arguments);return G_e(t,1+H_e(0,r.length-(arguments.length-1)),!0)};var lj=function(){return uj(m8,sj,arguments)};oj?oj(Dx.exports,"apply",{value:lj}):Dx.exports.apply=lj});var Ep=N((RPe,hj)=>{"use strict";var cj=Lx(),vj=Bm(),V_e=vj(cj("String.prototype.indexOf"));hj.exports=function(r,t){var a=cj(r,!!t);return typeof a=="function"&&V_e(r,".prototype.")>-1?vj(a):a}});var yj=N((FPe,pj)=>{"use strict";var Y_e=qm()(),W_e=Ep(),g8=W_e("Object.prototype.toString"),Fx=function(r){return Y_e&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:g8(r)==="[object Arguments]"},dj=function(r){return Fx(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&g8(r)!=="[object Array]"&&g8(r.callee)==="[object Function]"},j_e=(function(){return Fx(arguments)})();Fx.isLegacyArguments=dj;pj.exports=j_e?Fx:dj});var bj=N((qPe,gj)=>{"use strict";var X_e=Object.prototype.toString,Z_e=Function.prototype.toString,$_e=/^\s*(?:function)?\*/,mj=qm()(),b8=Object.getPrototypeOf,J_e=function(){if(!mj)return!1;try{return Function("return function*() {}")()}catch(e){}},x8;gj.exports=function(r){if(typeof r!="function")return!1;if($_e.test(Z_e.call(r)))return!0;if(!mj){var t=X_e.call(r);return t==="[object GeneratorFunction]"}if(!b8)return!1;if(typeof x8=="undefined"){var a=J_e();x8=a?b8(a):!1}return b8(r)===x8}});var Aj=N((PPe,wj)=>{"use strict";var _j=Function.prototype.toString,kp=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,w8,qx;if(typeof kp=="function"&&typeof Object.defineProperty=="function")try{w8=Object.defineProperty({},"length",{get:function(){throw qx}}),qx={},kp(function(){throw 42},null,w8)}catch(e){e!==qx&&(kp=null)}else kp=null;var Q_e=/^\s*class\b/,A8=function(r){try{var t=_j.call(r);return Q_e.test(t)}catch(a){return!1}},_8=function(r){try{return A8(r)?!1:(_j.call(r),!0)}catch(t){return!1}},Px=Object.prototype.toString,K_e="[object Object]",e5e="[object Function]",r5e="[object GeneratorFunction]",t5e="[object HTMLAllCollection]",a5e="[object HTML document.all class]",n5e="[object HTMLCollection]",i5e=typeof Symbol=="function"&&!!Symbol.toStringTag,o5e=!(0 in[,]),T8=function(){return!1};typeof document=="object"&&(xj=document.all,Px.call(xj)===Px.call(document.all)&&(T8=function(r){if((o5e||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Px.call(r);return(t===t5e||t===a5e||t===n5e||t===K_e)&&r("")==null}catch(a){}return!1}));var xj;wj.exports=kp?function(r){if(T8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{kp(r,null,w8)}catch(t){if(t!==qx)return!1}return!A8(r)&&_8(r)}:function(r){if(T8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(i5e)return _8(r);if(A8(r))return!1;var t=Px.call(r);return t!==e5e&&t!==r5e&&!/^\[object HTML/.test(t)?!1:_8(r)}});var M8=N((NPe,Mj)=>{"use strict";var l5e=Aj(),s5e=Object.prototype.toString,Tj=Object.prototype.hasOwnProperty,f5e=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),s5e.call(r)==="[object Array]"?f5e(r,t,n):typeof r=="string"?u5e(r,t,n):c5e(r,t,n)};Mj.exports=v5e});var E8=N((IPe,Sj)=>{"use strict";var S8=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],h5e=typeof globalThis=="undefined"?window:globalThis;Sj.exports=function(){for(var r=[],t=0;t{"use strict";var Ix=M8(),d5e=E8(),Ej=Bm(),L8=Ep(),Nx=y0(),p5e=L8("Object.prototype.toString"),Cj=qm()(),kj=typeof globalThis=="undefined"?window:globalThis,C8=d5e(),D8=L8("String.prototype.slice"),k8=Object.getPrototypeOf,y5e=L8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:g5e(r)}return Nx?m5e(r):null}});var Ij=N((BPe,Nj)=>{"use strict";var Rj=M8(),b5e=E8(),F8=Ep(),x5e=F8("Object.prototype.toString"),Fj=qm()(),Bx=y0(),_5e=typeof globalThis=="undefined"?window:globalThis,qj=b5e(),w5e=F8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return Bx?T5e(r):!1}});var Jj=N(Pa=>{"use strict";var M5e=yj(),S5e=bj(),Qs=Dj(),Oj=Ij();function Cp(e){return e.call.bind(e)}var Bj=typeof BigInt!="undefined",zj=typeof Symbol!="undefined",os=Cp(Object.prototype.toString),E5e=Cp(Number.prototype.valueOf),k5e=Cp(String.prototype.valueOf),C5e=Cp(Boolean.prototype.valueOf);Bj&&(Gj=Cp(BigInt.prototype.valueOf));var Gj;zj&&(Uj=Cp(Symbol.prototype.valueOf));var Uj;function Gm(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}Pa.isArgumentsObject=M5e;Pa.isGeneratorFunction=S5e;Pa.isTypedArray=Oj;function L5e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Pa.isPromise=L5e;function D5e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Oj(e)||Vj(e)}Pa.isArrayBufferView=D5e;function R5e(e){return Qs(e)==="Uint8Array"}Pa.isUint8Array=R5e;function F5e(e){return Qs(e)==="Uint8ClampedArray"}Pa.isUint8ClampedArray=F5e;function q5e(e){return Qs(e)==="Uint16Array"}Pa.isUint16Array=q5e;function P5e(e){return Qs(e)==="Uint32Array"}Pa.isUint32Array=P5e;function N5e(e){return Qs(e)==="Int8Array"}Pa.isInt8Array=N5e;function I5e(e){return Qs(e)==="Int16Array"}Pa.isInt16Array=I5e;function O5e(e){return Qs(e)==="Int32Array"}Pa.isInt32Array=O5e;function B5e(e){return Qs(e)==="Float32Array"}Pa.isFloat32Array=B5e;function z5e(e){return Qs(e)==="Float64Array"}Pa.isFloat64Array=z5e;function G5e(e){return Qs(e)==="BigInt64Array"}Pa.isBigInt64Array=G5e;function U5e(e){return Qs(e)==="BigUint64Array"}Pa.isBigUint64Array=U5e;function zx(e){return os(e)==="[object Map]"}zx.working=typeof Map!="undefined"&&zx(new Map);function H5e(e){return typeof Map=="undefined"?!1:zx.working?zx(e):e instanceof Map}Pa.isMap=H5e;function Gx(e){return os(e)==="[object Set]"}Gx.working=typeof Set!="undefined"&&Gx(new Set);function V5e(e){return typeof Set=="undefined"?!1:Gx.working?Gx(e):e instanceof Set}Pa.isSet=V5e;function Ux(e){return os(e)==="[object WeakMap]"}Ux.working=typeof WeakMap!="undefined"&&Ux(new WeakMap);function Y5e(e){return typeof WeakMap=="undefined"?!1:Ux.working?Ux(e):e instanceof WeakMap}Pa.isWeakMap=Y5e;function P8(e){return os(e)==="[object WeakSet]"}P8.working=typeof WeakSet!="undefined"&&P8(new WeakSet);function W5e(e){return P8(e)}Pa.isWeakSet=W5e;function Hx(e){return os(e)==="[object ArrayBuffer]"}Hx.working=typeof ArrayBuffer!="undefined"&&Hx(new ArrayBuffer);function Hj(e){return typeof ArrayBuffer=="undefined"?!1:Hx.working?Hx(e):e instanceof ArrayBuffer}Pa.isArrayBuffer=Hj;function Vx(e){return os(e)==="[object DataView]"}Vx.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Vx(new DataView(new ArrayBuffer(1),0,1));function Vj(e){return typeof DataView=="undefined"?!1:Vx.working?Vx(e):e instanceof DataView}Pa.isDataView=Vj;var q8=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function zm(e){return os(e)==="[object SharedArrayBuffer]"}function Yj(e){return typeof q8=="undefined"?!1:(typeof zm.working=="undefined"&&(zm.working=zm(new q8)),zm.working?zm(e):e instanceof q8)}Pa.isSharedArrayBuffer=Yj;function j5e(e){return os(e)==="[object AsyncFunction]"}Pa.isAsyncFunction=j5e;function X5e(e){return os(e)==="[object Map Iterator]"}Pa.isMapIterator=X5e;function Z5e(e){return os(e)==="[object Set Iterator]"}Pa.isSetIterator=Z5e;function $5e(e){return os(e)==="[object Generator]"}Pa.isGeneratorObject=$5e;function J5e(e){return os(e)==="[object WebAssembly.Module]"}Pa.isWebAssemblyCompiledModule=J5e;function Wj(e){return Gm(e,E5e)}Pa.isNumberObject=Wj;function jj(e){return Gm(e,k5e)}Pa.isStringObject=jj;function Xj(e){return Gm(e,C5e)}Pa.isBooleanObject=Xj;function Zj(e){return Bj&&Gm(e,Gj)}Pa.isBigIntObject=Zj;function $j(e){return zj&&Gm(e,Uj)}Pa.isSymbolObject=$j;function Q5e(e){return Wj(e)||jj(e)||Xj(e)||Zj(e)||$j(e)}Pa.isBoxedPrimitive=Q5e;function K5e(e){return typeof Uint8Array!="undefined"&&(Hj(e)||Yj(e))}Pa.isAnyArrayBuffer=K5e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Pa,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Kj=N((GPe,Qj)=>{Qj.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var eX=N((UPe,N8)=>{typeof Object.create=="function"?N8.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:N8.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var Dp=N(Na=>{var rX=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),z8(r)?t.showHidden=r:r&&Na._extend(t,r),b0(t.showHidden)&&(t.showHidden=!1),b0(t.depth)&&(t.depth=2),b0(t.colors)&&(t.colors=!1),b0(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=r4e),Xx(t,e,t.depth)}Na.inspect=gv;gv.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};gv.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r4e(e,r){var t=gv.styles[r];return t?"\x1B["+gv.colors[t][0]+"m"+e+"\x1B["+gv.colors[t][1]+"m":e}function t4e(e,r){return e}function a4e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Xx(e,r,t){if(e.customInspect&&r&&jx(r.inspect)&&r.inspect!==Na.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Jx(a)||(a=Xx(e,a,t)),a}var n=n4e(e,r);if(n)return n;var i=Object.keys(r),o=a4e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),Hm(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return I8(r);if(i.length===0){if(jx(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(Um(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Zx(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Hm(r))return I8(r)}var s="",f=!1,u=["{","}"];if(aX(r)&&(f=!0,u=["[","]"]),jx(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(Um(r)&&(s=" "+RegExp.prototype.toString.call(r)),Zx(r)&&(s=" "+Date.prototype.toUTCString.call(r)),Hm(r)&&(s=" "+I8(r)),i.length===0&&(!f||r.length==0))return u[0]+s+u[1];if(t<0)return Um(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return f?v=i4e(e,r,t,o,i):v=i.map(function(d){return B8(e,r,t,o,d,f)}),e.seen.pop(),o4e(v,s,u)}function n4e(e,r){if(b0(r))return e.stylize("undefined","undefined");if(Jx(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(nX(r))return e.stylize(""+r,"number");if(z8(r))return e.stylize(""+r,"boolean");if($x(r))return e.stylize("null","null")}function I8(e){return"["+Error.prototype.toString.call(e)+"]"}function i4e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(f){return" "+f}).join(` `).slice(2):l=` `+l.split(` `).map(function(f){return" "+f}).join(` -`))):l=e.stylize("[Circular]","special")),g0(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function $5e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),b0(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function o4e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}Na.types=Zj();function rX(e){return Array.isArray(e)}Na.isArray=rX;function B8(e){return typeof e=="boolean"}Na.isBoolean=B8;function Zx(e){return e===null}Na.isNull=Zx;function Q5e(e){return e==null}Na.isNullOrUndefined=Q5e;function tX(e){return typeof e=="number"}Na.isNumber=tX;function Jx(e){return typeof e=="string"}Na.isString=Jx;function K5e(e){return typeof e=="symbol"}Na.isSymbol=K5e;function g0(e){return e===void 0}Na.isUndefined=g0;function Gy(e){return Cp(e)&&z8(e)==="[object RegExp]"}Na.isRegExp=Gy;Na.types.isRegExp=Gy;function Cp(e){return typeof e=="object"&&e!==null}Na.isObject=Cp;function Xx(e){return Cp(e)&&z8(e)==="[object Date]"}Na.isDate=Xx;Na.types.isDate=Xx;function Uy(e){return Cp(e)&&(z8(e)==="[object Error]"||e instanceof Error)}Na.isError=Uy;Na.types.isNativeError=Uy;function Wx(e){return typeof e=="function"}Na.isFunction=Wx;function e4e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Na.isPrimitive=e4e;Na.isBuffer=$j();function z8(e){return Object.prototype.toString.call(e)}function I8(e){return e<10?"0"+e.toString(10):e.toString(10)}var r4e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function t4e(){var e=new Date,r=[I8(e.getHours()),I8(e.getMinutes()),I8(e.getSeconds())].join(":");return[e.getDate(),r4e[e.getMonth()],r].join(" ")}Na.log=function(){console.log("%s - %s",t4e(),Na.format.apply(Na,arguments))};Na.inherits=Qj();Na._extend=function(e,r){if(!r||!Cp(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function aX(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var y0=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Na.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(y0&&r[y0]){var t=r[y0];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,y0,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,f){a=s,n=f}),o=[],l=0;l{"use strict";function bv(e){"@babel/helpers - typeof";return bv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bv(e)}function nX(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function d4e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function p4e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function m4e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Hy("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Hy("ERR_INVALID_ARG_TYPE",function(e,r,t){Dp===void 0&&(Dp=Qx()),Dp(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&d4e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(p4e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(iX(r,"type"));else{var i=m4e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(iX(r,"type"))}return n+=". Received type ".concat(bv(t)),n},TypeError);Hy("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";G8===void 0&&(G8=Lp());var a=G8.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);Hy("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(bv(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);Hy("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);lX.exports.codes=oX});var yX=N((PPe,mX)=>{"use strict";function sX(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function fX(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function E4e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var Ks="",Vy="",Yy="",so="",b0={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},k4e=10;function vX(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function Wy(e){return W8(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function C4e(e,r,t){var a="",n="",i=0,o="",l=!1,s=Wy(e),f=s.split(` -`),u=Wy(r).split(` -`),c=0,v="";if(t==="strictEqual"&&al(e)==="object"&&al(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),f.length===1&&u.length===1&&f[0]!==u[0]){var d=f[0].length+u[0].length;if(d<=k4e){if((al(e)!=="object"||e===null)&&(al(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(b0[t],` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}Na.types=Jj();function aX(e){return Array.isArray(e)}Na.isArray=aX;function z8(e){return typeof e=="boolean"}Na.isBoolean=z8;function $x(e){return e===null}Na.isNull=$x;function l4e(e){return e==null}Na.isNullOrUndefined=l4e;function nX(e){return typeof e=="number"}Na.isNumber=nX;function Jx(e){return typeof e=="string"}Na.isString=Jx;function s4e(e){return typeof e=="symbol"}Na.isSymbol=s4e;function b0(e){return e===void 0}Na.isUndefined=b0;function Um(e){return Lp(e)&&G8(e)==="[object RegExp]"}Na.isRegExp=Um;Na.types.isRegExp=Um;function Lp(e){return typeof e=="object"&&e!==null}Na.isObject=Lp;function Zx(e){return Lp(e)&&G8(e)==="[object Date]"}Na.isDate=Zx;Na.types.isDate=Zx;function Hm(e){return Lp(e)&&(G8(e)==="[object Error]"||e instanceof Error)}Na.isError=Hm;Na.types.isNativeError=Hm;function jx(e){return typeof e=="function"}Na.isFunction=jx;function f4e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Na.isPrimitive=f4e;Na.isBuffer=Kj();function G8(e){return Object.prototype.toString.call(e)}function O8(e){return e<10?"0"+e.toString(10):e.toString(10)}var u4e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function c4e(){var e=new Date,r=[O8(e.getHours()),O8(e.getMinutes()),O8(e.getSeconds())].join(":");return[e.getDate(),u4e[e.getMonth()],r].join(" ")}Na.log=function(){console.log("%s - %s",c4e(),Na.format.apply(Na,arguments))};Na.inherits=eX();Na._extend=function(e,r){if(!r||!Lp(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function iX(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var g0=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Na.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(g0&&r[g0]){var t=r[g0];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,g0,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,f){a=s,n=f}),o=[],l=0;l{"use strict";function bv(e){"@babel/helpers - typeof";return bv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bv(e)}function oX(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function A4e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function T4e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function M4e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Vm("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Vm("ERR_INVALID_ARG_TYPE",function(e,r,t){Rp===void 0&&(Rp=Kx()),Rp(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&A4e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(T4e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(lX(r,"type"));else{var i=M4e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(lX(r,"type"))}return n+=". Received type ".concat(bv(t)),n},TypeError);Vm("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";U8===void 0&&(U8=Dp());var a=U8.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);Vm("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(bv(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);Vm("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);fX.exports.codes=sX});var bX=N((YPe,gX)=>{"use strict";function uX(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function cX(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function N4e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var Ks="",Ym="",Wm="",so="",x0={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},I4e=10;function dX(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function jm(e){return j8(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function O4e(e,r,t){var a="",n="",i=0,o="",l=!1,s=jm(e),f=s.split(` +`),u=jm(r).split(` +`),c=0,v="";if(t==="strictEqual"&&al(e)==="object"&&al(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),f.length===1&&u.length===1&&f[0]!==u[0]){var d=f[0].length+u[0].length;if(d<=I4e){if((al(e)!=="object"||e===null)&&(al(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(x0[t],` `)+"".concat(f[0]," !== ").concat(u[0],` `)}else if(t!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(v=` - `.concat(E4e(" ",c),"^"),c=0)}}}for(var y=f[f.length-1],m=u[u.length-1];y===m&&(c++<2?o=` - `.concat(y).concat(o):a=y,f.pop(),u.pop(),!(f.length===0||u.length===0));)y=f[f.length-1],m=u[u.length-1];var b=Math.max(f.length,u.length);if(b===0){var T=s.split(` -`);if(T.length>30)for(T[26]="".concat(Ks,"...").concat(so);T.length>27;)T.pop();return"".concat(b0.notIdentical,` + `.concat(N4e(" ",c),"^"),c=0)}}}for(var m=f[f.length-1],y=u[u.length-1];m===y&&(c++<2?o=` + `.concat(m).concat(o):a=m,f.pop(),u.pop(),!(f.length===0||u.length===0));)m=f[f.length-1],y=u[u.length-1];var b=Math.max(f.length,u.length);if(b===0){var T=s.split(` +`);if(T.length>30)for(T[26]="".concat(Ks,"...").concat(so);T.length>27;)T.pop();return"".concat(x0.notIdentical,` `).concat(T.join(` `),` `)}c>3&&(o=` `.concat(Ks,"...").concat(so).concat(o),l=!0),a!==""&&(o=` - `.concat(a).concat(o),a="");var _=0,x=b0[t]+` -`.concat(Vy,"+ actual").concat(so," ").concat(Yy,"- expected").concat(so),A=" ".concat(Ks,"...").concat(so," Lines skipped");for(c=0;c1&&c>2&&(E>4?(n+=` + `.concat(a).concat(o),a="");var _=0,x=x0[t]+` +`.concat(Ym,"+ actual").concat(so," ").concat(Wm,"- expected").concat(so),A=" ".concat(Ks,"...").concat(so," Lines skipped");for(c=0;c1&&c>2&&(E>4?(n+=` `.concat(Ks,"...").concat(so),l=!0):E>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,a+=` -`.concat(Yy,"-").concat(so," ").concat(u[c]),_++;else if(u.length1&&c>2&&(E>4?(n+=` +`.concat(Wm,"-").concat(so," ").concat(u[c]),_++;else if(u.length1&&c>2&&(E>4?(n+=` `.concat(Ks,"...").concat(so),l=!0):E>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,n+=` -`.concat(Vy,"+").concat(so," ").concat(f[c]),_++;else{var M=u[c],k=f[c],F=k!==M&&(!cX(k,",")||k.slice(0,-1)!==M);F&&cX(M,",")&&M.slice(0,-1)===k&&(F=!1,k+=","),F?(E>1&&c>2&&(E>4?(n+=` +`.concat(Ym,"+").concat(so," ").concat(f[c]),_++;else{var M=u[c],k=f[c],R=k!==M&&(!hX(k,",")||k.slice(0,-1)!==M);R&&hX(M,",")&&M.slice(0,-1)===k&&(R=!1,k+=","),R?(E>1&&c>2&&(E>4?(n+=` `.concat(Ks,"...").concat(so),l=!0):E>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,n+=` -`.concat(Vy,"+").concat(so," ").concat(k),a+=` -`.concat(Yy,"-").concat(so," ").concat(M),_+=2):(n+=a,a="",(E===1||c===0)&&(n+=` +`.concat(Ym,"+").concat(so," ").concat(k),a+=` +`.concat(Wm,"-").concat(so," ").concat(M),_+=2):(n+=a,a="",(E===1||c===0)&&(n+=` `.concat(k),_++))}if(_>20&&c30)for(d[26]="".concat(Ks,"...").concat(so);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` +`).concat(n).concat(a).concat(o).concat(v)}var B4e=(function(e,r){L4e(a,e);var t=D4e(a);function a(n){var i;if(E4e(this,a),al(n)!=="object"||n===null)throw new P4e("options","Object",n);var o=n.message,l=n.operator,s=n.stackStartFn,f=n.actual,u=n.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)i=t.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(Ks="\x1B[34m",Ym="\x1B[32m",so="\x1B[39m",Wm="\x1B[31m"):(Ks="",Ym="",so="",Wm="")),al(f)==="object"&&f!==null&&al(u)==="object"&&u!==null&&"stack"in f&&f instanceof Error&&"stack"in u&&u instanceof Error&&(f=dX(f),u=dX(u)),l==="deepStrictEqual"||l==="strictEqual")i=t.call(this,O4e(f,u,l));else if(l==="notDeepStrictEqual"||l==="notStrictEqual"){var v=x0[l],d=jm(f).split(` +`);if(l==="notStrictEqual"&&al(f)==="object"&&f!==null&&(v=x0.notStrictEqualObject),d.length>30)for(d[26]="".concat(Ks,"...").concat(so);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` `).concat(d.join(` `),` -`))}else{var p=Wy(f),y="",m=b0[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(b0[l],` +`))}else{var p=jm(f),m="",y=x0[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(x0[l],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(Wy(u)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(m="".concat(jm(u)),p.length>512&&(p="".concat(p.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(y,` `).concat(p,` should equal -`):y=" ".concat(l," ").concat(y)),i=t.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(V8(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=f,i.expected=u,i.operator=l,Error.captureStackTrace&&Error.captureStackTrace(V8(i),s),i.stack,i.name="AssertionError",dX(i)}return b4e(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return W8(this,fX(fX({},o),{},{customInspect:!1,depth:0}))}}]),a}(Y8(Error),W8.custom);mX.exports=L4e});var j8=N((NPe,bX)=>{"use strict";var gX=Object.prototype.toString;bX.exports=function(r){var t=gX.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&gX.call(r.callee)==="[object Function]"),a}});var kX=N((IPe,EX)=>{"use strict";var SX;Object.keys||(Zy=Object.prototype.hasOwnProperty,X8=Object.prototype.toString,xX=j8(),Z8=Object.prototype.propertyIsEnumerable,_X=!Z8.call({toString:null},"toString"),wX=Z8.call(function(){},"prototype"),Jy=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],e_=function(e){var r=e.constructor;return r&&r.prototype===e},AX={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},TX=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!AX["$"+e]&&Zy.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{e_(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),MX=function(e){if(typeof window=="undefined"||!TX)return e_(e);try{return e_(e)}catch(r){return!1}},SX=function(r){var t=r!==null&&typeof r=="object",a=X8.call(r)==="[object Function]",n=xX(r),i=t&&X8.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=wX&&a;if(i&&r.length>0&&!Zy.call(r,0))for(var s=0;s0)for(var f=0;f{"use strict";var D4e=Array.prototype.slice,F4e=j8(),CX=Object.keys,r_=CX?function(r){return CX(r)}:kX(),LX=Object.keys;r_.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return F4e(a)?LX(D4e.call(a)):LX(a)})}else Object.keys=r_;return Object.keys||r_};DX.exports=r_});var IX=N((BPe,NX)=>{"use strict";var R4e=J8(),qX=Ax()(),PX=Sp(),FX=Object,q4e=PX("Array.prototype.push"),RX=PX("Object.prototype.propertyIsEnumerable"),P4e=qX?Object.getOwnPropertySymbols:null;NX.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=FX(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var $8=IX(),N4e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var zX=function(e){return e!==e};GX.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||zX(r)&&zX(t))}});var t_=N((UPe,UX)=>{"use strict";var O4e=Q8();UX.exports=function(){return typeof Object.is=="function"?Object.is:O4e}});var $y=N((HPe,WX)=>{"use strict";var B4e=J8(),z4e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",G4e=Object.prototype.toString,U4e=Array.prototype.concat,HX=Object.defineProperty,H4e=function(e){return typeof e=="function"&&G4e.call(e)==="[object Function]"},V4e=p8()(),VX=HX&&V4e,Y4e=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!H4e(a)||!a())return}VX?HX(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},YX=function(e,r){var t=arguments.length>2?arguments[2]:{},a=B4e(r);z4e&&(a=U4e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var W4e=t_(),j4e=$y();jX.exports=function(){var r=W4e();return j4e(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var QX=N((YPe,$X)=>{"use strict";var X4e=$y(),Z4e=Oy(),J4e=Q8(),ZX=t_(),$4e=XX(),JX=Z4e(ZX(),Object);X4e(JX,{getPolyfill:ZX,implementation:J4e,shim:$4e});$X.exports=JX});var K8=N((WPe,KX)=>{"use strict";KX.exports=function(r){return r!==r}});var e7=N((jPe,eZ)=>{"use strict";var Q4e=K8();eZ.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Q4e}});var tZ=N((XPe,rZ)=>{"use strict";var K4e=$y(),ewe=e7();rZ.exports=function(){var r=ewe();return K4e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var oZ=N((ZPe,iZ)=>{"use strict";var rwe=Oy(),twe=$y(),awe=K8(),aZ=e7(),nwe=tZ(),nZ=rwe(aZ(),Number);twe(nZ,{getPolyfill:aZ,implementation:awe,shim:nwe});iZ.exports=nZ});var SZ=N((JPe,MZ)=>{"use strict";function lZ(e,r){return swe(e)||lwe(e,r)||owe(e,r)||iwe()}function iwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function owe(e,r){if(e){if(typeof e=="string")return sZ(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return sZ(e,r)}}function sZ(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function i_(e){return Object.keys(e).filter(ywe).concat(l_(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function _Z(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function ef(e){"@babel/helpers - typeof";return ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ef(e)}function EZ(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var xX=Object.prototype.toString;_X.exports=function(r){var t=xX.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&xX.call(r.callee)==="[object Function]"),a}});var LX=N((jPe,CX)=>{"use strict";var kX;Object.keys||($m=Object.prototype.hasOwnProperty,Z8=Object.prototype.toString,wX=X8(),$8=Object.prototype.propertyIsEnumerable,AX=!$8.call({toString:null},"toString"),TX=$8.call(function(){},"prototype"),Jm=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r_=function(e){var r=e.constructor;return r&&r.prototype===e},MX={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},SX=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!MX["$"+e]&&$m.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{r_(window[e])}catch(r){return!0}}catch(r){return!0}return!1})(),EX=function(e){if(typeof window=="undefined"||!SX)return r_(e);try{return r_(e)}catch(r){return!1}},kX=function(r){var t=r!==null&&typeof r=="object",a=Z8.call(r)==="[object Function]",n=wX(r),i=t&&Z8.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=TX&&a;if(i&&r.length>0&&!$m.call(r,0))for(var s=0;s0)for(var f=0;f{"use strict";var z4e=Array.prototype.slice,G4e=X8(),DX=Object.keys,t_=DX?function(r){return DX(r)}:LX(),RX=Object.keys;t_.shim=function(){if(Object.keys){var r=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);r||(Object.keys=function(a){return G4e(a)?RX(z4e.call(a)):RX(a)})}else Object.keys=t_;return Object.keys||t_};FX.exports=t_});var BX=N((ZPe,OX)=>{"use strict";var U4e=J8(),NX=Tx()(),IX=Ep(),qX=Object,H4e=IX("Array.prototype.push"),PX=IX("Object.prototype.propertyIsEnumerable"),V4e=NX?Object.getOwnPropertySymbols:null;OX.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=qX(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var Q8=BX(),Y4e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var UX=function(e){return e!==e};HX.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||UX(r)&&UX(t))}});var a_=N((QPe,VX)=>{"use strict";var j4e=K8();VX.exports=function(){return typeof Object.is=="function"?Object.is:j4e}});var Qm=N((KPe,XX)=>{"use strict";var X4e=J8(),Z4e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",$4e=Object.prototype.toString,J4e=Array.prototype.concat,YX=Object.defineProperty,Q4e=function(e){return typeof e=="function"&&$4e.call(e)==="[object Function]"},K4e=y8()(),WX=YX&&K4e,ewe=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!Q4e(a)||!a())return}WX?YX(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},jX=function(e,r){var t=arguments.length>2?arguments[2]:{},a=X4e(r);Z4e&&(a=J4e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var rwe=a_(),twe=Qm();ZX.exports=function(){var r=rwe();return twe(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var eZ=N((rNe,KX)=>{"use strict";var awe=Qm(),nwe=Bm(),iwe=K8(),JX=a_(),owe=$X(),QX=nwe(JX(),Object);awe(QX,{getPolyfill:JX,implementation:iwe,shim:owe});KX.exports=QX});var e7=N((tNe,rZ)=>{"use strict";rZ.exports=function(r){return r!==r}});var r7=N((aNe,tZ)=>{"use strict";var lwe=e7();tZ.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:lwe}});var nZ=N((nNe,aZ)=>{"use strict";var swe=Qm(),fwe=r7();aZ.exports=function(){var r=fwe();return swe(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var sZ=N((iNe,lZ)=>{"use strict";var uwe=Bm(),cwe=Qm(),vwe=e7(),iZ=r7(),hwe=nZ(),oZ=uwe(iZ(),Number);cwe(oZ,{getPolyfill:iZ,implementation:vwe,shim:hwe});lZ.exports=oZ});var kZ=N((oNe,EZ)=>{"use strict";function fZ(e,r){return mwe(e)||ywe(e,r)||pwe(e,r)||dwe()}function dwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pwe(e,r){if(e){if(typeof e=="string")return uZ(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return uZ(e,r)}}function uZ(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function o_(e){return Object.keys(e).filter(Swe).concat(s_(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function AZ(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function ef(e){"@babel/helpers - typeof";return ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ef(e)}function CZ(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var Hwe=cm(),Vwe=a8(),Ywe=kY(),Wwe=i8(),YZ=Qx();WZ.exports=jwe;function jwe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(YZ(Wwe(e),"String is not an SVG path."),e=Hwe(e)),YZ(Array.isArray(e),"Argument should be a string or an array of path segments."),e=Vwe(e),e=Ywe(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;tr[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var KZ=N((KPe,QZ)=>{var x0=Math.PI,XZ=$Z(120);QZ.exports=Xwe;function Xwe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c7&&(t.push(d.splice(0,7)),d.unshift("C"));break;case"S":var y=f,m=u;(r=="C"||r=="S")&&(y+=y-a,m+=m-n),d=["C",y,m,d[1],d[2],d[3],d[4]];break;case"T":r=="Q"||r=="T"?(l=f*2-l,s=u*2-s):(l=f,s=u),d=ZZ(f,u,l,s,d[1],d[2]);break;case"Q":l=d[1],s=d[2],d=ZZ(f,u,d[1],d[2],d[3],d[4]);break;case"L":d=p_(f,u,d[1],d[2]);break;case"H":d=p_(f,u,d[1],u);break;case"V":d=p_(f,u,f,d[1]);break;case"Z":d=p_(f,u,i,o);break}r=p,f=d[d.length-2],u=d[d.length-1],d.length>4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function p_(e,r,t,a){return["C",e,r,t,a,t,a]}function ZZ(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}function JZ(e,r,t,a,n,i,o,l,s,f){if(f)_=f[0],x=f[1],b=f[2],T=f[3];else{var u=o7(e,r,-n);e=u.x,r=u.y,u=o7(l,s,-n),l=u.x,s=u.y;var c=(e-l)/2,v=(r-s)/2,d=c*c/(t*t)+v*v/(a*a);d>1&&(d=Math.sqrt(d),t=d*t,a=d*a);var p=t*t,y=a*a,m=(i==o?-1:1)*Math.sqrt(Math.abs((p*y-p*v*v-y*c*c)/(p*v*v+y*c*c)));m==1/0&&(m=1);var b=m*t*v/a+(e+l)/2,T=m*-a*c/t+(r+s)/2,_=Math.asin(((r-T)/a).toFixed(9)),x=Math.asin(((s-T)/a).toFixed(9));_=ex&&(_=_-x0*2),!o&&x>_&&(x=x-x0*2)}if(Math.abs(x-_)>XZ){var A=x,E=l,M=s;x=_+XZ*(o&&x>_?1:-1),l=b+t*Math.cos(x),s=T+a*Math.sin(x);var k=JZ(l,s,t,a,n,0,o,E,M,[x,A,b,T])}var F=Math.tan((x-_)/4),P=4/3*t*F,O=4/3*a*F,R=[2*e-(e+P*Math.sin(_)),2*r-(r-O*Math.cos(_)),l+P*Math.sin(x),s-O*Math.cos(x),l,s];if(f)return R;k&&(R=R.concat(k));for(var H=0;H{var Zwe=a8(),Jwe=KZ(),$we={M:"moveTo",C:"bezierCurveTo"};eJ.exports=function(e,r){e.beginPath(),Jwe(Zwe(r)).forEach(function(t){var a=t[0],n=t.slice(1);e[$we[a]].apply(e,n)}),e.closePath()}});var iJ=N((rNe,nJ)=>{"use strict";var Qwe=Dy();nJ.exports=Kwe;var tg=1e20;function Kwe(e,r){r||(r={});var t=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,o,l,s,f,u,c,v,d,p,y;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,o=r.height,s=e,r.stride?u=r.stride:u=Math.floor(e.length/i/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,c=v.getContext("2d"),i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,c=e,i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.ImageData&&e instanceof window.ImageData&&(d=e,i=e.width,o=e.height,s=d.data,u=4);if(l=Math.max(i,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(i*o),p=0,y=f.length;p{"use strict";var eAe=jZ(),rAe=cm(),tAe=rJ(),aAe=i8(),nAe=iJ(),l7=document.createElement("canvas"),zo=l7.getContext("2d");oJ.exports=iAe;function iAe(e,r){if(!aAe(e))throw Error("Argument should be valid svg path string");r||(r={});var t,a;r.shape?(t=r.shape[0],a=r.shape[1]):(t=l7.width=r.w||r.width||200,a=l7.height=r.h||r.height||200);var n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||eAe(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(zo.fillStyle="black",zo.fillRect(0,0,t,a),zo.fillStyle="white",i&&(typeof i!="number"&&(i=1),i>0?zo.strokeStyle="white":zo.strokeStyle="black",zo.lineWidth=Math.abs(i)),zo.translate(t*.5,a*.5),zo.scale(s,s),oAe()){var f=new Path2D(e);zo.fill(f),i&&zo.stroke(f)}else{var u=rAe(e);tAe(zo,u),zo.fill(),i&&zo.stroke()}zo.setTransform(1,0,0,1,0,0);var c=nAe(zo,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5});return c}var m_;function oAe(){if(m_!=null)return m_;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return m_=!1;var r=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(r);var t=e.getImageData(0,0,1,1);return m_=t&&t.data&&t.data[3]===255}});var s7=N((aNe,sJ)=>{"use strict";sJ.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var vJ=N((nNe,cJ)=>{"use strict";var fJ=s7();cJ.exports=lAe;var uJ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function lAe(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),fJ[e])t=fJ[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],f=s==="rgb",i=s.replace(/a$/,"");n=i;var o=i==="cmyk"?4:i==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,d){if(/%$/.test(v))return d===o?parseFloat(v)/100:i==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(i[d]==="h"){if(/deg$/.test(v))return parseFloat(v);if(uJ[v]!==void 0)return uJ[v]}return parseFloat(v)}),s===i&&t.push(1),a=f||t[o]===void 0?1:t[o],t=t.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",a=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(a/=100)):(n="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:t,alpha:a}}});var dJ=N((iNe,hJ)=>{"use strict";var sAe=vJ();hJ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=sAe(r);if(!i.space)return[];var o=[0,0,0],l=i.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(i.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(i.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(i.values[2],o[2]),l[2]),i.space[0]==="h"&&(t=fAe(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function fAe(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}});var _0=N((oNe,pJ)=>{"use strict";var uAe=dJ(),y_=Dy(),cAe=xx();pJ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=cAe(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=uAe(r),r[0]/=255,r[1]/=255,r[2]/=255),vAe(r)?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:255,i&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(i?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:1):(n[0]=y_(Math.floor(r[0]*255),0,255),n[1]=y_(Math.floor(r[1]*255),0,255),n[2]=y_(Math.floor(r[2]*255),0,255),n[3]=r[3]==null?255:y_(Math.floor(r[3]*255),0,255)),n)};function vAe(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var AJ=N((lNe,wJ)=>{"use strict";var xJ=xa(),hAe=Ls(),g_=_0(),b_=Ld(),dAe=Mf().defaultLine,mJ=Po().isArrayOrTypedArray,f7=g_(dAe),_J=1;function yJ(e,r){var t=e;return t[3]*=r,t}function gJ(e){if(xJ(e))return f7;var r=g_(e);return r.length?r:f7}function bJ(e){return xJ(e)?e:_J}function pAe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=mJ(a),i=mJ(r),o=b_.extractOpts(e),l=[],s,f,u,c,v;if(o.colorscale!==void 0?s=b_.makeColorScaleFuncFromTrace(e):s=gJ,n?f=function(p,y){return p[y]===void 0?f7:g_(s(p[y]))}:f=gJ,i?u=function(p,y){return p[y]===void 0?_J:bJ(p[y])}:u=bJ,n||i)for(var d=0;d{"use strict";var __=xa(),yAe=lJ(),x_=_0(),gAe=Bt(),Pp=Ur(),Xn=Pp.isArrayOrTypedArray,Rp=Va(),TJ=Sn(),MJ=AJ().formatColor,qp=Ni(),bAe=Y4(),c7=gx(),ag=yp(),xAe=ld().DESELECTDIM,SJ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},_Ae=Nu().appendArrayPointValue;function wAe(e,r){var t,a={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},n=e._context.plotGlPixelRatio;if(r.visible!==!0)return a;if(qp.hasText(r)&&(a.text=RJ(e,r),a.textSel=kJ(e,r,r.selected),a.textUnsel=kJ(e,r,r.unselected)),qp.hasMarkers(r)&&(a.marker=h7(e,r),a.markerSel=v7(e,r,r.selected),a.markerUnsel=v7(e,r,r.unselected),!r.unselected&&Xn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function h7(e,r){var t=r._length,a=r.marker,n={},i,o=Xn(a.symbol),l=Xn(a.angle),s=Xn(a.color),f=Xn(a.line.color),u=Xn(a.opacity),c=Xn(a.size),v=Xn(a.line.width),d;if(o||(d=c7.isOpenSymbol(a.symbol)),o||s||f||u||l){n.symbols=new Array(t),n.angles=new Array(t),n.colors=new Array(t),n.borderColors=new Array(t);var p=a.symbol,y=a.angle,m=MJ(a,a.opacity,t),b=MJ(a.line,a.opacity,t);if(!Xn(b[0])){var T=b;for(b=Array(t),i=0;iag.TOO_MANY_POINTS||qp.hasMarkers(r)?"rect":"round";if(f&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o1?s[o]:s[0]:s,d=Xn(f)?f.length>1?f[o]:f[0]:f,p=SJ[v],y=SJ[d],m=u?u/.8+1:0,b=-y*m-y*.5;i.offset[o]=[p*m/c,b/c]}}return i}qJ.exports={style:wAe,markerStyle:h7,markerSelection:v7,linePositions:TAe,errorBarPositions:MAe,textPosition:SAe}});var NJ=N((fNe,PJ)=>{"use strict";var w_=Ur();PJ.exports=function(r,t){var a=t._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(a=t._scene={},a.init=function(){w_.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=w_.repeat(l,a.count);if(a.fill2d&&a.fill2d.update(s),a.scatter2d&&a.scatter2d.update(s),a.line2d&&a.line2d.update(s),a.error2d&&a.error2d.update(s.concat(s)),a.select2d&&a.select2d.update(s),a.glText)for(var f=0;f{"use strict";var EAe=t8(),Np=Ur(),IJ=Sn(),kAe=Pd().findExtremes,OJ=E6(),d7=rp(),CAe=d7.calcMarkerSize,LAe=d7.calcAxisExpansion,DAe=d7.setFirstScatter,FAe=uy(),Ip=ng(),RAe=NJ(),BJ=ei().BADNUM,qAe=yp().TOO_MANY_POINTS;GJ.exports=function(r,t){var a=r._fullLayout,n=t._xA=IJ.getFromId(r,t.xaxis,"x"),i=t._yA=IJ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=qAe,f=l*2,u={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=OJ(t,n,"x",v),y=OJ(t,i,"y",d),m=p.vals,b=y.vals;t._x=m,t._y=b,t.xperiodalignment&&(t._origX=v,t._xStarts=p.starts,t._xEnds=p.ends),t.yperiodalignment&&(t._origY=d,t._yStarts=y.starts,t._yEnds=y.ends);var T=new Array(f),_=new Array(l);for(c=0;c1&&Np.extendFlat(o.line,Ip.linePositions(e,t,a)),o.errorX||o.errorY){var l=Ip.errorBarPositions(e,t,a,n,i);o.errorX&&Np.extendFlat(o.errorX,l.x),o.errorY&&Np.extendFlat(o.errorY,l.y)}return o.text&&(Np.extendFlat(o.text,{positions:a},Ip.textPosition(e,t,o.text,o.marker)),Np.extendFlat(o.textSel,{positions:a},Ip.textPosition(e,t,o.text,o.markerSel)),Np.extendFlat(o.textUnsel,{positions:a},Ip.textPosition(e,t,o.text,o.markerUnsel))),o}});var p7=N((cNe,VJ)=>{"use strict";var HJ=Ur(),NAe=ca(),IAe=ld().DESELECTDIM;function OAe(e){var r=e[0],t=r.trace,a=r.t,n=a._scene,i=a.index,o=n.selectBatch[i],l=n.unselectBatch[i],s=n.textOptions[i],f=n.textSelectedOptions[i]||{},u=n.textUnselectedOptions[i]||{},c=HJ.extendFlat({},s),v,d;if(o.length||l.length){var p=f.color,y=u.color,m=s.color,b=HJ.isArrayOrTypedArray(m);for(c.color=new Array(t._length),v=0;v{"use strict";var YJ=Ni(),BAe=p7().styleTextSelection;WJ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s=a[0].t,f=l._length,u=s.x,c=s.y,v=s._scene,d=s.index;if(!v)return o;var p=YJ.hasText(l),y=YJ.hasMarkers(l),m=!y&&!p;if(l.visible!==!0||m)return o;var b=[],T=[];if(t!==!1&&!t.degenerate)for(var _=0;_{"use strict";var zAe=$T();XJ.exports={moduleType:"trace",name:"scattergl",basePlotModule:yy(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:yx(),supplyDefaults:ZV(),crossTraceDefaults:S6(),colorbar:qb(),formatLabels:$V(),calc:UJ(),hoverPoints:zAe.hoverPoints,selectPoints:jJ(),meta:{}}});var $J=N((dNe,T_)=>{"use strict";var A_=Dy();T_.exports=JJ;T_.exports.to=JJ;T_.exports.from=GAe;function JJ(e,r){r==null&&(r=!0);var t=e[0],a=e[1],n=e[2],i=e[3];i==null&&(i=r?1:255),r&&(t*=255,a*=255,n*=255,i*=255),t=A_(t,0,255)&255,a=A_(a,0,255)&255,n=A_(n,0,255)&255,i=A_(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function GAe(e,r){e=+e;var t=e>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,i=e&255;return r===!1?[t,a,n,i]:[t/255,a/255,n/255,i/255]}});var ni=N((pNe,KJ)=>{"use strict";var QJ=Object.getOwnPropertySymbols,UAe=Object.prototype.hasOwnProperty,HAe=Object.prototype.propertyIsEnumerable;function VAe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function YAe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}KJ.exports=YAe()?Object.assign:function(e,r){for(var t,a=VAe(e),n,i=1;i{e$.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";t$.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";a$.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var M_=N((bNe,Op)=>{"use strict";Op.exports=ig;Op.exports.float32=Op.exports.float=ig;Op.exports.fract32=Op.exports.fract=WAe;var i$=new Float32Array(1);function WAe(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=ig(e));for(var t=0,a=r.length;t{"use strict";function jAe(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a,n,i,o,l=[],s=!0,f=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);s=!0);}catch(u){f=!0,n=u}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(f)throw n}}return l}}function XAe(e,r){return $Ae(e)||jAe(e,r)||l$(e,r)||e6e()}function ZAe(e){return JAe(e)||QAe(e)||l$(e)||KAe()}function JAe(e){if(Array.isArray(e))return y7(e)}function $Ae(e){if(Array.isArray(e))return e}function QAe(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l$(e,r){if(e){if(typeof e=="string")return y7(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return y7(e,r)}}function y7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t{"use strict";var Qwe=hy(),Kwe=n8(),eAe=LY(),rAe=o8(),jZ=Kx();XZ.exports=tAe;function tAe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(jZ(rAe(e),"String is not an SVG path."),e=Qwe(e)),jZ(Array.isArray(e),"Argument should be a string or an array of path segments."),e=Kwe(e),e=eAe(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;tr[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var r$=N((fNe,e$)=>{var _0=Math.PI,$Z=KZ(120);e$.exports=aAe;function aAe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c7&&(t.push(d.splice(0,7)),d.unshift("C"));break;case"S":var m=f,y=u;(r=="C"||r=="S")&&(m+=m-a,y+=y-n),d=["C",m,y,d[1],d[2],d[3],d[4]];break;case"T":r=="Q"||r=="T"?(l=f*2-l,s=u*2-s):(l=f,s=u),d=JZ(f,u,l,s,d[1],d[2]);break;case"Q":l=d[1],s=d[2],d=JZ(f,u,d[1],d[2],d[3],d[4]);break;case"L":d=y_(f,u,d[1],d[2]);break;case"H":d=y_(f,u,d[1],u);break;case"V":d=y_(f,u,f,d[1]);break;case"Z":d=y_(f,u,i,o);break}r=p,f=d[d.length-2],u=d[d.length-1],d.length>4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function y_(e,r,t,a){return["C",e,r,t,a,t,a]}function JZ(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}function QZ(e,r,t,a,n,i,o,l,s,f){if(f)_=f[0],x=f[1],b=f[2],T=f[3];else{var u=l7(e,r,-n);e=u.x,r=u.y,u=l7(l,s,-n),l=u.x,s=u.y;var c=(e-l)/2,v=(r-s)/2,d=c*c/(t*t)+v*v/(a*a);d>1&&(d=Math.sqrt(d),t=d*t,a=d*a);var p=t*t,m=a*a,y=(i==o?-1:1)*Math.sqrt(Math.abs((p*m-p*v*v-m*c*c)/(p*v*v+m*c*c)));y==1/0&&(y=1);var b=y*t*v/a+(e+l)/2,T=y*-a*c/t+(r+s)/2,_=Math.asin(((r-T)/a).toFixed(9)),x=Math.asin(((s-T)/a).toFixed(9));_=ex&&(_=_-_0*2),!o&&x>_&&(x=x-_0*2)}if(Math.abs(x-_)>$Z){var A=x,E=l,M=s;x=_+$Z*(o&&x>_?1:-1),l=b+t*Math.cos(x),s=T+a*Math.sin(x);var k=QZ(l,s,t,a,n,0,o,E,M,[x,A,b,T])}var R=Math.tan((x-_)/4),P=4/3*t*R,O=4/3*a*R,F=[2*e-(e+P*Math.sin(_)),2*r-(r-O*Math.cos(_)),l+P*Math.sin(x),s-O*Math.cos(x),l,s];if(f)return F;k&&(F=F.concat(k));for(var H=0;H{var nAe=n8(),iAe=r$(),oAe={M:"moveTo",C:"bezierCurveTo"};t$.exports=function(e,r){e.beginPath(),iAe(nAe(r)).forEach(function(t){var a=t[0],n=t.slice(1);e[oAe[a]].apply(e,n)}),e.closePath()}});var l$=N((cNe,o$)=>{"use strict";var lAe=Rm();o$.exports=sAe;var ag=1e20;function sAe(e,r){r||(r={});var t=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,o,l,s,f,u,c,v,d,p,m;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,o=r.height,s=e,r.stride?u=r.stride:u=Math.floor(e.length/i/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,c=v.getContext("2d"),i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,c=e,i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.ImageData&&e instanceof window.ImageData&&(d=e,i=e.width,o=e.height,s=d.data,u=4);if(l=Math.max(i,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(i*o),p=0,m=f.length;p{"use strict";var fAe=ZZ(),uAe=hy(),cAe=a$(),vAe=o8(),hAe=l$(),s7=document.createElement("canvas"),zo=s7.getContext("2d");s$.exports=dAe;function dAe(e,r){if(!vAe(e))throw Error("Argument should be valid svg path string");r||(r={});var t,a;r.shape?(t=r.shape[0],a=r.shape[1]):(t=s7.width=r.w||r.width||200,a=s7.height=r.h||r.height||200);var n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||fAe(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(zo.fillStyle="black",zo.fillRect(0,0,t,a),zo.fillStyle="white",i&&(typeof i!="number"&&(i=1),i>0?zo.strokeStyle="white":zo.strokeStyle="black",zo.lineWidth=Math.abs(i)),zo.translate(t*.5,a*.5),zo.scale(s,s),pAe()){var f=new Path2D(e);zo.fill(f),i&&zo.stroke(f)}else{var u=uAe(e);cAe(zo,u),zo.fill(),i&&zo.stroke()}zo.setTransform(1,0,0,1,0,0);var c=hAe(zo,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5});return c}var m_;function pAe(){if(m_!=null)return m_;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return m_=!1;var r=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(r);var t=e.getImageData(0,0,1,1);return m_=t&&t.data&&t.data[3]===255}});var f7=N((hNe,u$)=>{"use strict";u$.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var d$=N((dNe,h$)=>{"use strict";var c$=f7();h$.exports=yAe;var v$={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function yAe(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),c$[e])t=c$[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],f=s==="rgb",i=s.replace(/a$/,"");n=i;var o=i==="cmyk"?4:i==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,d){if(/%$/.test(v))return d===o?parseFloat(v)/100:i==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(i[d]==="h"){if(/deg$/.test(v))return parseFloat(v);if(v$[v]!==void 0)return v$[v]}return parseFloat(v)}),s===i&&t.push(1),a=f||t[o]===void 0?1:t[o],t=t.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",a=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(a/=100)):(n="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:t,alpha:a}}});var y$=N((pNe,p$)=>{"use strict";var mAe=d$();p$.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=mAe(r);if(!i.space)return[];var o=[0,0,0],l=i.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(i.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(i.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(i.values[2],o[2]),l[2]),i.space[0]==="h"&&(t=gAe(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function gAe(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}});var w0=N((yNe,m$)=>{"use strict";var bAe=y$(),g_=Rm(),xAe=_x();m$.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=xAe(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=bAe(r),r[0]/=255,r[1]/=255,r[2]/=255),_Ae(r)?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:255,i&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(i?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:1):(n[0]=g_(Math.floor(r[0]*255),0,255),n[1]=g_(Math.floor(r[1]*255),0,255),n[2]=g_(Math.floor(r[2]*255),0,255),n[3]=r[3]==null?255:g_(Math.floor(r[3]*255),0,255)),n)};function _Ae(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var M$=N((mNe,T$)=>{"use strict";var w$=_a(),wAe=Ls(),b_=w0(),x_=Dd(),AAe=Mf().defaultLine,g$=Po().isArrayOrTypedArray,u7=b_(AAe),A$=1;function b$(e,r){var t=e;return t[3]*=r,t}function x$(e){if(w$(e))return u7;var r=b_(e);return r.length?r:u7}function _$(e){return w$(e)?e:A$}function TAe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=g$(a),i=g$(r),o=x_.extractOpts(e),l=[],s,f,u,c,v;if(o.colorscale!==void 0?s=x_.makeColorScaleFuncFromTrace(e):s=x$,n?f=function(p,m){return p[m]===void 0?u7:b_(s(p[m]))}:f=x$,i?u=function(p,m){return p[m]===void 0?A$:_$(p[m])}:u=_$,n||i)for(var d=0;d{"use strict";var w_=_a(),SAe=f$(),__=w0(),EAe=Bt(),Np=zr(),Zn=Np.isArrayOrTypedArray,qp=Va(),S$=En(),E$=M$().formatColor,Pp=Ni(),kAe=W4(),v7=bx(),ng=gp(),CAe=sd().DESELECTDIM,k$={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},LAe=Nu().appendArrayPointValue;function DAe(e,r){var t,a={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},n=e._context.plotGlPixelRatio;if(r.visible!==!0)return a;if(Pp.hasText(r)&&(a.text=P$(e,r),a.textSel=L$(e,r,r.selected),a.textUnsel=L$(e,r,r.unselected)),Pp.hasMarkers(r)&&(a.marker=d7(e,r),a.markerSel=h7(e,r,r.selected),a.markerUnsel=h7(e,r,r.unselected),!r.unselected&&Zn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function d7(e,r){var t=r._length,a=r.marker,n={},i,o=Zn(a.symbol),l=Zn(a.angle),s=Zn(a.color),f=Zn(a.line.color),u=Zn(a.opacity),c=Zn(a.size),v=Zn(a.line.width),d;if(o||(d=v7.isOpenSymbol(a.symbol)),o||s||f||u||l){n.symbols=new Array(t),n.angles=new Array(t),n.colors=new Array(t),n.borderColors=new Array(t);var p=a.symbol,m=a.angle,y=E$(a,a.opacity,t),b=E$(a.line,a.opacity,t);if(!Zn(b[0])){var T=b;for(b=Array(t),i=0;ing.TOO_MANY_POINTS||Pp.hasMarkers(r)?"rect":"round";if(f&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o1?s[o]:s[0]:s,d=Zn(f)?f.length>1?f[o]:f[0]:f,p=k$[v],m=k$[d],y=u?u/.8+1:0,b=-m*y-m*.5;i.offset[o]=[p*y/c,b/c]}}return i}N$.exports={style:DAe,markerStyle:d7,markerSelection:h7,linePositions:FAe,errorBarPositions:qAe,textPosition:PAe}});var O$=N((bNe,I$)=>{"use strict";var A_=zr();I$.exports=function(r,t){var a=t._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(a=t._scene={},a.init=function(){A_.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=A_.repeat(l,a.count);if(a.fill2d&&a.fill2d.update(s),a.scatter2d&&a.scatter2d.update(s),a.line2d&&a.line2d.update(s),a.error2d&&a.error2d.update(s.concat(s)),a.select2d&&a.select2d.update(s),a.glText)for(var f=0;f{"use strict";var NAe=a8(),Ip=zr(),B$=En(),IAe=Nd().findExtremes,z$=k6(),p7=tp(),OAe=p7.calcMarkerSize,BAe=p7.calcAxisExpansion,zAe=p7.setFirstScatter,GAe=cm(),Op=ig(),UAe=O$(),G$=ri().BADNUM,HAe=gp().TOO_MANY_POINTS;H$.exports=function(r,t){var a=r._fullLayout,n=t._xA=B$.getFromId(r,t.xaxis,"x"),i=t._yA=B$.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=HAe,f=l*2,u={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=z$(t,n,"x",v),m=z$(t,i,"y",d),y=p.vals,b=m.vals;t._x=y,t._y=b,t.xperiodalignment&&(t._origX=v,t._xStarts=p.starts,t._xEnds=p.ends),t.yperiodalignment&&(t._origY=d,t._yStarts=m.starts,t._yEnds=m.ends);var T=new Array(f),_=new Array(l);for(c=0;c1&&Ip.extendFlat(o.line,Op.linePositions(e,t,a)),o.errorX||o.errorY){var l=Op.errorBarPositions(e,t,a,n,i);o.errorX&&Ip.extendFlat(o.errorX,l.x),o.errorY&&Ip.extendFlat(o.errorY,l.y)}return o.text&&(Ip.extendFlat(o.text,{positions:a},Op.textPosition(e,t,o.text,o.marker)),Ip.extendFlat(o.textSel,{positions:a},Op.textPosition(e,t,o.text,o.markerSel)),Ip.extendFlat(o.textUnsel,{positions:a},Op.textPosition(e,t,o.text,o.markerUnsel))),o}});var y7=N((_Ne,W$)=>{"use strict";var Y$=zr(),YAe=va(),WAe=sd().DESELECTDIM;function jAe(e){var r=e[0],t=r.trace,a=r.t,n=a._scene,i=a.index,o=n.selectBatch[i],l=n.unselectBatch[i],s=n.textOptions[i],f=n.textSelectedOptions[i]||{},u=n.textUnselectedOptions[i]||{},c=Y$.extendFlat({},s),v,d;if(o.length||l.length){var p=f.color,m=u.color,y=s.color,b=Y$.isArrayOrTypedArray(y);for(c.color=new Array(t._length),v=0;v{"use strict";var j$=Ni(),XAe=y7().styleTextSelection;X$.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s=a[0].t,f=l._length,u=s.x,c=s.y,v=s._scene,d=s.index;if(!v)return o;var p=j$.hasText(l),m=j$.hasMarkers(l),y=!m&&!p;if(l.visible!==!0||y)return o;var b=[],T=[];if(t!==!1&&!t.degenerate)for(var _=0;_{"use strict";var ZAe=QT();$$.exports={moduleType:"trace",name:"scattergl",basePlotModule:gm(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:gx(),supplyDefaults:JV(),crossTraceDefaults:E6(),colorbar:Pb(),formatLabels:KV(),calc:V$(),hoverPoints:ZAe.hoverPoints,selectPoints:Z$(),meta:{}}});var K$=N((TNe,M_)=>{"use strict";var T_=Rm();M_.exports=Q$;M_.exports.to=Q$;M_.exports.from=$Ae;function Q$(e,r){r==null&&(r=!0);var t=e[0],a=e[1],n=e[2],i=e[3];i==null&&(i=r?1:255),r&&(t*=255,a*=255,n*=255,i*=255),t=T_(t,0,255)&255,a=T_(a,0,255)&255,n=T_(n,0,255)&255,i=T_(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function $Ae(e,r){e=+e;var t=e>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,i=e&255;return r===!1?[t,a,n,i]:[t/255,a/255,n/255,i/255]}});var ii=N((MNe,rJ)=>{"use strict";var eJ=Object.getOwnPropertySymbols,JAe=Object.prototype.hasOwnProperty,QAe=Object.prototype.propertyIsEnumerable;function KAe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function e6e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}rJ.exports=e6e()?Object.assign:function(e,r){for(var t,a=KAe(e),n,i=1;i{tJ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";nJ.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";iJ.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var S_=N((CNe,Bp)=>{"use strict";Bp.exports=og;Bp.exports.float32=Bp.exports.float=og;Bp.exports.fract32=Bp.exports.fract=r6e;var lJ=new Float32Array(1);function r6e(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=og(e));for(var t=0,a=r.length;t{"use strict";function t6e(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a,n,i,o,l=[],s=!0,f=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);s=!0);}catch(u){f=!0,n=u}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(f)throw n}}return l}}function a6e(e,r){return o6e(e)||t6e(e,r)||fJ(e,r)||f6e()}function n6e(e){return i6e(e)||l6e(e)||fJ(e)||s6e()}function i6e(e){if(Array.isArray(e))return g7(e)}function o6e(e){if(Array.isArray(e))return e}function l6e(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fJ(e,r){if(e){if(typeof e=="string")return g7(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g7(e,r)}}function g7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);tse)?J.tree=n6e(Q,{bounds:Ve}):se&&se.length&&(J.tree=se),J.tree){var we={primitive:"points",usage:"static",data:J.tree,type:"uint32"};J.elements?J.elements(we):J.elements=o.elements(we)}var ur=E_.float32(Q);le({data:ur,usage:"dynamic"});var Oe=E_.fract32(Q,ur);return Ee({data:Oe,usage:"dynamic"}),Ge({data:new Uint8Array(Le),type:"uint8",usage:"stream"}),Q}},{marker:function(Q,J,j){var se=J.activation;if(se.forEach(function(Oe){return Oe&&Oe.destroy&&Oe.destroy()}),se.length=0,!Q||typeof Q[0]=="number"){var le=e.addMarker(Q);se[le]=!0}else{for(var Ee=[],Ge=0,Le=Math.min(Q.length,J.count);Ge=0)return n;var i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)i=e;else{i=new Uint8Array(e.length);for(var o=0,l=e.length;oa*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Wi.prototype.updatePalette=function(e){if(!this.tooManyColors){var r=this.maxColors,t=this.paletteTexture,a=Math.ceil(e.length*.25/r);if(a>1){e=e.slice();for(var n=e.length*.25%r;n{"use strict";w7.exports=L_;w7.exports.default=L_;function L_(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=u$(e,0,n,t,!0),o=[];if(!i||i.next===i.prev)return o;var l,s,f,u,c,v,d;if(a&&(i=m6e(e,r,i,t)),e.length>80*t){l=f=e[0],s=u=e[1];for(var p=t;pf&&(f=c),v>u&&(u=v);d=Math.max(f-l,u-s),d=d!==0?32767/d:0}return og(i,o,t,l,s,d,0),o}function u$(e,r,t,a,n){var i,o;if(n===_7(e,r,t,a)>0)for(i=r;i=r;i-=a)o=f$(i,e[i],e[i+1],o);return o&&D_(o,o.next)&&(sg(o),o=o.next),o}function T0(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(D_(t,t.next)||Zn(t.prev,t,t.next)===0)){if(sg(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function og(e,r,t,a,n,i,o){if(e){!o&&i&&_6e(e,a,n,i);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,i?h6e(e,a,n,i):v6e(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(f.i/t|0),sg(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=d6e(T0(e),r,t),og(e,r,t,a,n,i,2)):o===2&&p6e(e,r,t,a,n,i):og(T0(e),r,t,a,n,i,1);break}}}}function v6e(e){var r=e.prev,t=e,a=e.next;if(Zn(r,t,a)>=0)return!1;for(var n=r.x,i=t.x,o=a.x,l=r.y,s=t.y,f=a.y,u=ni?n>o?n:o:i>o?i:o,d=l>s?l>f?l:f:s>f?s:f,p=a.next;p!==r;){if(p.x>=u&&p.x<=v&&p.y>=c&&p.y<=d&&Bp(n,l,i,s,o,f,p.x,p.y)&&Zn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function h6e(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Zn(n,i,o)>=0)return!1;for(var l=n.x,s=i.x,f=o.x,u=n.y,c=i.y,v=o.y,d=ls?l>f?l:f:s>f?s:f,m=u>c?u>v?u:v:c>v?c:v,b=b7(d,p,r,t,a),T=b7(y,m,r,t,a),_=e.prevZ,x=e.nextZ;_&&_.z>=b&&x&&x.z<=T;){if(_.x>=d&&_.x<=y&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&Bp(l,u,s,c,f,v,_.x,_.y)&&Zn(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=y&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&Bp(l,u,s,c,f,v,x.x,x.y)&&Zn(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=b;){if(_.x>=d&&_.x<=y&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&Bp(l,u,s,c,f,v,_.x,_.y)&&Zn(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=T;){if(x.x>=d&&x.x<=y&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&Bp(l,u,s,c,f,v,x.x,x.y)&&Zn(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function d6e(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!D_(n,i)&&c$(n,a,a.next,i)&&lg(n,i)&&lg(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),sg(a),sg(a.next),a=e=i),a=a.next}while(a!==e);return T0(a)}function p6e(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&T6e(o,l)){var s=v$(o,l);o=T0(o,o.next),s=T0(s,s.next),og(o,r,t,a,n,i,0),og(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function m6e(e,r,t,a){var n=[],i,o,l,s,f;for(i=0,o=r.length;i=t.next.y&&t.next.y!==t.y){var l=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(l<=a&&l>i&&(i=l,o=t.x=t.x&&t.x>=f&&a!==t.x&&Bp(no.x||t.x===o.x&&x6e(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function x6e(e,r){return Zn(e.prev,e,r.prev)<0&&Zn(r.next,e,e.next)<0}function _6e(e,r,t,a){var n=e;do n.z===0&&(n.z=b7(n.x,n.y,r,t,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,w6e(n)}function w6e(e){var r,t,a,n,i,o,l,s,f=1;do{for(t=e,e=null,i=null,o=0;t;){for(o++,a=t,l=0,r=0;r0||s>0&&a;)l!==0&&(s===0||!a||t.z<=a.z)?(n=t,t=t.nextZ,l--):(n=a,a=a.nextZ,s--),i?i.nextZ=n:e=n,n.prevZ=i,i=n;t=a}i.nextZ=null,f*=2}while(o>1);return e}function b7(e,r,t,a,n){return e=(e-t)*n|0,r=(r-a)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function A6e(e){var r=e,t=e;do(r.x=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function T6e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!M6e(e,r)&&(lg(e,r)&&lg(r,e)&&S6e(e,r)&&(Zn(e.prev,e,r.prev)||Zn(e,r.prev,r))||D_(e,r)&&Zn(e.prev,e,e.next)>0&&Zn(r.prev,r,r.next)>0)}function Zn(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function D_(e,r){return e.x===r.x&&e.y===r.y}function c$(e,r,t,a){var n=C_(Zn(e,r,t)),i=C_(Zn(e,r,a)),o=C_(Zn(t,a,e)),l=C_(Zn(t,a,r));return!!(n!==i&&o!==l||n===0&&k_(e,t,r)||i===0&&k_(e,a,r)||o===0&&k_(t,e,a)||l===0&&k_(t,r,a))}function k_(e,r,t){return r.x<=Math.max(e.x,t.x)&&r.x>=Math.min(e.x,t.x)&&r.y<=Math.max(e.y,t.y)&&r.y>=Math.min(e.y,t.y)}function C_(e){return e>0?1:e<0?-1:0}function M6e(e,r){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==r.i&&t.next.i!==r.i&&c$(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function lg(e,r){return Zn(e.prev,e,e.next)<0?Zn(e,r,e.next)>=0&&Zn(e,e.prev,r)>=0:Zn(e,r,e.prev)<0||Zn(e,e.next,r)<0}function S6e(e,r){var t=e,a=!1,n=(e.x+r.x)/2,i=(e.y+r.y)/2;do t.y>i!=t.next.y>i&&t.next.y!==t.y&&n<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(a=!a),t=t.next;while(t!==e);return a}function v$(e,r){var t=new x7(e.i,e.x,e.y),a=new x7(r.i,r.x,r.y),n=e.next,i=r.prev;return e.next=r,r.prev=e,t.next=n,n.prev=t,a.next=t,t.prev=a,i.next=a,a.prev=i,a}function f$(e,r,t,a){var n=new x7(e,r,t);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function sg(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function x7(e,r,t){this.i=e,this.x=r,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}L_.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(_7(e,0,i,t));if(n)for(var l=0,s=r.length;l0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var p$=N((wNe,d$)=>{"use strict";var E6e=h0();d$.exports=k6e;function k6e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=E6e(e,r));for(var a=0;a{"use strict";m$.exports=function(){var e,r;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[r={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(r)!=="one")}});var b$=N((TNe,g$)=>{"use strict";g$.exports=function(){}});var Av=N((MNe,x$)=>{"use strict";var C6e=b$()();x$.exports=function(e){return e!==C6e&&e!==null}});var A7=N((SNe,w$)=>{"use strict";var L6e=Object.create,D6e=Object.getPrototypeOf,_$={};w$.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||L6e;return typeof e!="function"?!1:D6e(e(r(null),_$))===_$}});var T7=N((ENe,A$)=>{"use strict";var F6e=Av(),R6e={function:!0,object:!0};A$.exports=function(e){return F6e(e)&&R6e[typeof e]||!1}});var Zu=N((kNe,T$)=>{"use strict";var q6e=Av();T$.exports=function(e){if(!q6e(e))throw new TypeError("Cannot use null or undefined");return e}});var S$=N((CNe,M$)=>{"use strict";var M7=Object.create,F_;A7()()||(F_=S7());M$.exports=function(){var e,r,t;return!F_||F_.level!==1?M7:(e={},r={},t={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){r[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}r[a]=t}),Object.defineProperties(e,r),Object.defineProperty(F_,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return M7(a===null?e:a,n)})}()});var S7=N((LNe,E$)=>{"use strict";var P6e=T7(),N6e=Zu(),I6e=Object.prototype.isPrototypeOf,O6e=Object.defineProperty,B6e={configurable:!0,enumerable:!1,writable:!0,value:void 0},R_;R_=function(e,r){if(N6e(e),r===null||P6e(r))return e;throw new TypeError("Prototype must be null or an object")};E$.exports=function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(R_(a,n),n),a}):r=function(a,n){return R_(a,n).__proto__=n,a}:r=function a(n,i){var o;return R_(n,i),o=I6e.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&O6e(a.nullPolyfill,"__proto__",B6e),n},Object.defineProperty(r,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),r={},t,a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(a){try{t=a.set,t.call(e,r)}catch(n){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:(e={},e.__proto__=r,Object.getPrototypeOf(e)===r?{level:1}:!1)}());S$()});var q_=N((DNe,k$)=>{"use strict";k$.exports=A7()()?Object.setPrototypeOf:S7()});var L$=N((FNe,C$)=>{"use strict";var z6e=T7();C$.exports=function(e){if(!z6e(e))throw new TypeError(e+" is not an Object");return e}});var F$=N((RNe,D$)=>{"use strict";var G6e=Object.create(null),U6e=Math.random;D$.exports=function(){var e;do e=U6e().toString(36).slice(2);while(G6e[e]);return e}});var M0=N((qNe,R$)=>{"use strict";var H6e=void 0;R$.exports=function(e){return e!==H6e&&e!==null}});var P_=N((PNe,q$)=>{"use strict";var V6e=M0(),Y6e={object:!0,function:!0,undefined:!0};q$.exports=function(e){return V6e(e)?hasOwnProperty.call(Y6e,typeof e):!1}});var N$=N((NNe,P$)=>{"use strict";var W6e=P_();P$.exports=function(e){if(!W6e(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var O$=N((INe,I$)=>{"use strict";var j6e=N$();I$.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(r){return!1}return!j6e(e)}});var E7=N((ONe,B$)=>{"use strict";var X6e=O$(),Z6e=/^\s*class[\s{/}]/,J6e=Function.prototype.toString;B$.exports=function(e){return!(!X6e(e)||Z6e.test(J6e.call(e)))}});var G$=N((BNe,z$)=>{"use strict";z$.exports=function(){var e=Object.assign,r;return typeof e!="function"?!1:(r={foo:"raz"},e(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}});var H$=N((zNe,U$)=>{"use strict";U$.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var Y$=N((GNe,V$)=>{"use strict";var $6e=Av(),Q6e=Object.keys;V$.exports=function(e){return Q6e($6e(e)?Object(e):e)}});var j$=N((UNe,W$)=>{"use strict";W$.exports=H$()()?Object.keys:Y$()});var Z$=N((HNe,X$)=>{"use strict";var K6e=j$(),eTe=Zu(),rTe=Math.max;X$.exports=function(e,r){var t,a,n=rTe(arguments.length,2),i;for(e=Object(eTe(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";J$.exports=G$()()?Object.assign:Z$()});var k7=N((YNe,$$)=>{"use strict";var tTe=Av(),aTe=Array.prototype.forEach,nTe=Object.create,iTe=function(e,r){var t;for(t in e)r[t]=e[t]};$$.exports=function(e){var r=nTe(null);return aTe.call(arguments,function(t){tTe(t)&&iTe(Object(t),r)}),r}});var K$=N((WNe,Q$)=>{"use strict";var C7="razdwatrzy";Q$.exports=function(){return typeof C7.contains!="function"?!1:C7.contains("dwa")===!0&&C7.contains("foo")===!1}});var rQ=N((jNe,eQ)=>{"use strict";var oTe=String.prototype.indexOf;eQ.exports=function(e){return oTe.call(this,e,arguments[1])>-1}});var L7=N((XNe,tQ)=>{"use strict";tQ.exports=K$()()?String.prototype.contains:rQ()});var Ju=N((ZNe,oQ)=>{"use strict";var I_=M0(),aQ=E7(),nQ=N_(),iQ=k7(),fg=L7(),lTe=oQ.exports=function(e,r){var t,a,n,i,o;return arguments.length<2||typeof e!="string"?(i=r,r=e,e=null):i=arguments[2],I_(e)?(t=fg.call(e,"c"),a=fg.call(e,"e"),n=fg.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?nQ(iQ(i),o):o};lTe.gs=function(e,r,t){var a,n,i,o;return typeof e!="string"?(i=t,t=r,r=e,e=null):i=arguments[3],I_(r)?aQ(r)?I_(t)?aQ(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,I_(e)?(a=fg.call(e,"c"),n=fg.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?nQ(iQ(i),o):o}});var ug=N((JNe,sQ)=>{"use strict";var lQ=Object.prototype.toString,sTe=lQ.call(function(){return arguments}());sQ.exports=function(e){return lQ.call(e)===sTe}});var cg=N(($Ne,uQ)=>{"use strict";var fQ=Object.prototype.toString,fTe=fQ.call("");uQ.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||fQ.call(e)===fTe)||!1}});var vQ=N((QNe,cQ)=>{"use strict";cQ.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var pQ=N((KNe,dQ)=>{var hQ=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};dQ.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return hQ()}try{return __global__||hQ()}finally{delete Object.prototype.__global__}}()});var vg=N((eIe,mQ)=>{"use strict";mQ.exports=vQ()()?globalThis:pQ()});var gQ=N((rIe,yQ)=>{"use strict";var uTe=vg(),D7={object:!0,symbol:!0};yQ.exports=function(){var e=uTe.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!D7[typeof e.iterator]||!D7[typeof e.toPrimitive]||!D7[typeof e.toStringTag])}});var xQ=N((tIe,bQ)=>{"use strict";bQ.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var F7=N((aIe,_Q)=>{"use strict";var cTe=xQ();_Q.exports=function(e){if(!cTe(e))throw new TypeError(e+" is not a symbol");return e}});var SQ=N((nIe,MQ)=>{"use strict";var wQ=Ju(),vTe=Object.create,AQ=Object.defineProperty,hTe=Object.prototype,TQ=vTe(null);MQ.exports=function(e){for(var r=0,t,a;TQ[e+(r||"")];)++r;return e+=r||"",TQ[e]=!0,t="@@"+e,AQ(hTe,t,wQ.gs(null,function(n){a||(a=!0,AQ(this,t,wQ(n)),a=!1)})),t}});var kQ=N((iIe,EQ)=>{"use strict";var tf=Ju(),ii=vg().Symbol;EQ.exports=function(e){return Object.defineProperties(e,{hasInstance:tf("",ii&&ii.hasInstance||e("hasInstance")),isConcatSpreadable:tf("",ii&&ii.isConcatSpreadable||e("isConcatSpreadable")),iterator:tf("",ii&&ii.iterator||e("iterator")),match:tf("",ii&&ii.match||e("match")),replace:tf("",ii&&ii.replace||e("replace")),search:tf("",ii&&ii.search||e("search")),species:tf("",ii&&ii.species||e("species")),split:tf("",ii&&ii.split||e("split")),toPrimitive:tf("",ii&&ii.toPrimitive||e("toPrimitive")),toStringTag:tf("",ii&&ii.toStringTag||e("toStringTag")),unscopables:tf("",ii&&ii.unscopables||e("unscopables"))})}});var DQ=N((oIe,LQ)=>{"use strict";var CQ=Ju(),dTe=F7(),hg=Object.create(null);LQ.exports=function(e){return Object.defineProperties(e,{for:CQ(function(r){return hg[r]?hg[r]:hg[r]=e(String(r))}),keyFor:CQ(function(r){var t;dTe(r);for(t in hg)if(hg[t]===r)return t})})}});var qQ=N((lIe,RQ)=>{"use strict";var Yf=Ju(),R7=F7(),O_=vg().Symbol,pTe=SQ(),mTe=kQ(),yTe=DQ(),gTe=Object.create,q7=Object.defineProperties,B_=Object.defineProperty,Ao,zp,FQ;if(typeof O_=="function")try{String(O_()),FQ=!0}catch(e){}else O_=null;zp=function(r){if(this instanceof zp)throw new TypeError("Symbol is not a constructor");return Ao(r)};RQ.exports=Ao=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return FQ?O_(r):(t=gTe(zp.prototype),r=r===void 0?"":String(r),q7(t,{__description__:Yf("",r),__name__:Yf("",pTe(r))}))};mTe(Ao);yTe(Ao);q7(zp.prototype,{constructor:Yf(Ao),toString:Yf("",function(){return this.__name__})});q7(Ao.prototype,{toString:Yf(function(){return"Symbol ("+R7(this).__description__+")"}),valueOf:Yf(function(){return R7(this)})});B_(Ao.prototype,Ao.toPrimitive,Yf("",function(){var e=R7(this);return typeof e=="symbol"?e:e.toString()}));B_(Ao.prototype,Ao.toStringTag,Yf("c","Symbol"));B_(zp.prototype,Ao.toStringTag,Yf("c",Ao.prototype[Ao.toStringTag]));B_(zp.prototype,Ao.toPrimitive,Yf("c",Ao.prototype[Ao.toPrimitive]))});var Tv=N((sIe,PQ)=>{"use strict";PQ.exports=gQ()()?vg().Symbol:qQ()});var IQ=N((fIe,NQ)=>{"use strict";var bTe=Zu();NQ.exports=function(){return bTe(this).length=0,this}});var Gp=N((uIe,OQ)=>{"use strict";OQ.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var zQ=N((cIe,BQ)=>{"use strict";var xTe=M0(),_Te=P_(),wTe=Object.prototype.toString;BQ.exports=function(e){if(!xTe(e))return null;if(_Te(e)){var r=e.toString;if(typeof r!="function"||r===wTe)return null}try{return""+e}catch(t){return null}}});var UQ=N((vIe,GQ)=>{"use strict";GQ.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var VQ=N((hIe,HQ)=>{"use strict";var ATe=UQ(),TTe=/[\n\r\u2028\u2029]/g;HQ.exports=function(e){var r=ATe(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(TTe,function(t){switch(t){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),r)}});var P7=N((dIe,jQ)=>{"use strict";var YQ=M0(),MTe=P_(),STe=zQ(),ETe=VQ(),WQ=function(e,r){return e.replace("%v",ETe(r))};jQ.exports=function(e,r,t){if(!MTe(t))throw new TypeError(WQ(r,e));if(!YQ(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=STe(t.errorMessage);throw YQ(a)||(a=r),new TypeError(WQ(a,e))}});var ZQ=N((pIe,XQ)=>{"use strict";var kTe=P7(),CTe=M0();XQ.exports=function(e){return CTe(e)?e:kTe(e,"Cannot use %v",arguments[1])}});var $Q=N((mIe,JQ)=>{"use strict";var LTe=P7(),DTe=E7();JQ.exports=function(e){return DTe(e)?e:LTe(e,"%v is not a plain function",arguments[1])}});var KQ=N((yIe,QQ)=>{"use strict";QQ.exports=function(){var e=Array.from,r,t;return typeof e!="function"?!1:(r=["raz","dwa"],t=e(r),!!(t&&t!==r&&t[1]==="dwa"))}});var rK=N((gIe,eK)=>{"use strict";var FTe=Object.prototype.toString,RTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);eK.exports=function(e){return typeof e=="function"&&RTe(FTe.call(e))}});var aK=N((bIe,tK)=>{"use strict";tK.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var iK=N((xIe,nK)=>{"use strict";nK.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var lK=N((_Ie,oK)=>{"use strict";oK.exports=aK()()?Math.sign:iK()});var fK=N((wIe,sK)=>{"use strict";var qTe=lK(),PTe=Math.abs,NTe=Math.floor;sK.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:qTe(e)*NTe(PTe(e)))}});var cK=N((AIe,uK)=>{"use strict";var ITe=fK(),OTe=Math.max;uK.exports=function(e){return OTe(0,ITe(e))}});var pK=N((TIe,dK)=>{"use strict";var BTe=Tv().iterator,zTe=ug(),GTe=rK(),UTe=cK(),vK=Gp(),HTe=Zu(),VTe=Av(),YTe=cg(),hK=Array.isArray,N7=Function.prototype.call,S0={configurable:!0,enumerable:!0,writable:!0,value:null},I7=Object.defineProperty;dK.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,f,u,c,v;if(e=Object(HTe(e)),VTe(r)&&vK(r),!this||this===Array||!GTe(this)){if(!r){if(zTe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(hK(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?N7.call(r,t,v,i):v,a?(S0.value=v,I7(o,i,S0)):o[i]=v,++i;l=i}}if(l===void 0)for(l=UTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";mK.exports=KQ()()?Array.from:pK()});var bK=N((SIe,gK)=>{"use strict";var WTe=yK(),jTe=N_(),XTe=Zu();gK.exports=function(e){var r=Object(XTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?WTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):jTe(n,e),n}});var wK=N((EIe,_K)=>{"use strict";var ZTe=Gp(),JTe=Zu(),$Te=Function.prototype.bind,xK=Function.prototype.call,QTe=Object.keys,KTe=Object.prototype.propertyIsEnumerable;_K.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(JTe(t)),ZTe(a),n=QTe(t),o&&n.sort(typeof o=="function"?$Te.call(o,t):void 0),typeof e!="function"&&(e=n[e]),xK.call(e,n,function(l,s){return KTe.call(t,l)?xK.call(a,i,t[l],l,t,s):r})}}});var TK=N((kIe,AK)=>{"use strict";AK.exports=wK()("forEach")});var SK=N((CIe,MK)=>{"use strict";var e8e=Gp(),r8e=TK(),t8e=Function.prototype.call;MK.exports=function(e,r){var t={},a=arguments[2];return e8e(r),r8e(e,function(n,i,o,l){t[i]=t8e.call(r,a,n,i,o,l)}),t}});var LK=N((LIe,CK)=>{"use strict";var a8e=M0(),n8e=ZQ(),EK=$Q(),i8e=bK(),o8e=k7(),l8e=SK(),s8e=Function.prototype.bind,f8e=Object.defineProperty,u8e=Object.prototype.hasOwnProperty,kK;kK=function(e,r,t){var a=n8e(r)&&EK(r.value),n;return n=i8e(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&u8e.call(this,e)?a:(r.value=s8e.call(a,t.resolveContext?t.resolveContext(this):this),f8e(this,e,r),this[e])},n};CK.exports=function(e){var r=o8e(arguments[1]);return a8e(r.resolveContext)&&EK(r.resolveContext),l8e(e,function(t,a){return kK(a,t,r)})}});var O7=N((DIe,qK)=>{"use strict";var c8e=IQ(),v8e=N_(),h8e=Gp(),d8e=Zu(),nl=Ju(),p8e=LK(),DK=Tv(),FK=Object.defineProperty,RK=Object.defineProperties,dg;qK.exports=dg=function(e,r){if(!(this instanceof dg))throw new TypeError("Constructor requires 'new'");RK(this,{__list__:nl("w",d8e(e)),__context__:nl("w",r),__nextIndex__:nl("w",0)}),r&&(h8e(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete dg.prototype.constructor;RK(dg.prototype,v8e({_next:nl(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){FK(this,"__redo__",nl("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:nl(function(e){var r;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(r=this.__redo__.indexOf(e),r!==-1&&this.__redo__.splice(r,1),this.__redo__.forEach(function(t,a){t>e&&(this.__redo__[a]=--t)},this)))}),_onClear:nl(function(){this.__redo__&&c8e.call(this.__redo__),this.__nextIndex__=0})})));FK(dg.prototype,DK.iterator,nl(function(){return this}))});var BK=N((FIe,OK)=>{"use strict";var PK=q_(),NK=L7(),B7=Ju(),m8e=Tv(),z7=O7(),IK=Object.defineProperty,Up;Up=OK.exports=function(e,r){if(!(this instanceof Up))throw new TypeError("Constructor requires 'new'");z7.call(this,e),r?NK.call(r,"key+value")?r="key+value":NK.call(r,"key")?r="key":r="value":r="value",IK(this,"__kind__",B7("",r))};PK&&PK(Up,z7);delete Up.prototype.constructor;Up.prototype=Object.create(z7.prototype,{_resolve:B7(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});IK(Up.prototype,m8e.toStringTag,B7("c","Array Iterator"))});var HK=N((RIe,UK)=>{"use strict";var zK=q_(),z_=Ju(),y8e=Tv(),G7=O7(),GK=Object.defineProperty,Hp;Hp=UK.exports=function(e){if(!(this instanceof Hp))throw new TypeError("Constructor requires 'new'");e=String(e),G7.call(this,e),GK(this,"__length__",z_("",e.length))};zK&&zK(Hp,G7);delete Hp.prototype.constructor;Hp.prototype=Object.create(G7.prototype,{_next:z_(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});GK(Hp.prototype,y8e.toStringTag,z_("c","String Iterator"))});var YK=N((qIe,VK)=>{"use strict";var g8e=ug(),b8e=Av(),x8e=cg(),_8e=Tv().iterator,w8e=Array.isArray;VK.exports=function(e){return b8e(e)?w8e(e)||x8e(e)||g8e(e)?!0:typeof e[_8e]=="function":!1}});var jK=N((PIe,WK)=>{"use strict";var A8e=YK();WK.exports=function(e){if(!A8e(e))throw new TypeError(e+" is not iterable");return e}});var U7=N((NIe,JK)=>{"use strict";var T8e=ug(),M8e=cg(),XK=BK(),S8e=HK(),E8e=jK(),ZK=Tv().iterator;JK.exports=function(e){return typeof E8e(e)[ZK]=="function"?e[ZK]():T8e(e)?new XK(e):M8e(e)?new S8e(e):new XK(e)}});var QK=N((IIe,$K)=>{"use strict";var k8e=ug(),C8e=Gp(),L8e=cg(),D8e=U7(),F8e=Array.isArray,H7=Function.prototype.call,R8e=Array.prototype.some;$K.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,f,u;if(F8e(e)||k8e(e)?t="array":L8e(e)?t="string":e=D8e(e),C8e(r),i=function(){o=!0},t==="array"){R8e.call(e,function(c){return H7.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&u<=56319&&(f+=e[++l])),H7.call(r,a,f,i),!o);++l);return}for(n=e.next();!n.done;){if(H7.call(r,a,n.value,i),o)return;n=e.next()}}});var eee=N((OIe,KK)=>{"use strict";KK.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var aee=N((BIe,tee)=>{"use strict";var q8e=Av(),U_=q_(),G_=L$(),P8e=Zu(),N8e=F$(),$u=Ju(),I8e=U7(),O8e=QK(),B8e=Tv().toStringTag,ree=eee(),z8e=Array.isArray,Y7=Object.defineProperty,V7=Object.prototype.hasOwnProperty,G8e=Object.getPrototypeOf,Mv;tee.exports=Mv=function(){var e=arguments[0],r;if(!(this instanceof Mv))throw new TypeError("Constructor requires 'new'");return r=ree&&U_&&WeakMap!==Mv?U_(new WeakMap,G8e(this)):this,q8e(e)&&(z8e(e)||(e=I8e(e))),Y7(r,"__weakMapData__",$u("c","$weakMap$"+N8e())),e&&O8e(e,function(t){P8e(t),r.set(t[0],t[1])}),r};ree&&(U_&&U_(Mv,WeakMap),Mv.prototype=Object.create(WeakMap.prototype,{constructor:$u(Mv)}));Object.defineProperties(Mv.prototype,{delete:$u(function(e){return V7.call(G_(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:$u(function(e){if(V7.call(G_(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:$u(function(e){return V7.call(G_(e),this.__weakMapData__)}),set:$u(function(e,r){return Y7(G_(e),this.__weakMapData__,$u("c",r)),this}),toString:$u(function(){return"[object WeakMap]"})});Y7(Mv.prototype,B8e,$u("c","WeakMap"))});var W7=N((zIe,nee)=>{"use strict";nee.exports=y$()()?WeakMap:aee()});var oee=N((GIe,iee)=>{"use strict";iee.exports=function(e,r,t){if(typeof Array.prototype.findIndex=="function")return e.findIndex(r,t);if(typeof r!="function")throw new TypeError("predicate must be a function");var a=Object(e),n=a.length;if(n===0)return-1;for(var i=0;i{"use strict";var H_=_0(),U8e=h0(),X7=ni(),H8e=Vf(),V8e=d0(),lee=h$(),Y8e=p$(),{float32:W8e,fract32:j7}=M_(),j8e=W7(),see=gp(),X8e=oee(),Z8e=` +`]),sJ&&(p.frag=p.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(p)}Wi.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};Wi.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};Wi.prototype.draw=function(){for(var e=this,r=arguments.length,t=new Array(r),a=0;ase)?$.tree=h6e(Q,{bounds:Ue}):se&&se.length&&($.tree=se),$.tree){var xe={primitive:"points",usage:"static",data:$.tree,type:"uint32"};$.elements?$.elements(xe):$.elements=o.elements(xe)}var ur=k_.float32(Q);le({data:ur,usage:"dynamic"});var Oe=k_.fract32(Q,ur);return Ee({data:Oe,usage:"dynamic"}),Ge({data:new Uint8Array(Le),type:"uint8",usage:"stream"}),Q}},{marker:function(Q,$,j){var se=$.activation;if(se.forEach(function(Oe){return Oe&&Oe.destroy&&Oe.destroy()}),se.length=0,!Q||typeof Q[0]=="number"){var le=e.addMarker(Q);se[le]=!0}else{for(var Ee=[],Ge=0,Le=Math.min(Q.length,$.count);Ge=0)return n;var i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)i=e;else{i=new Uint8Array(e.length);for(var o=0,l=e.length;oa*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Wi.prototype.updatePalette=function(e){if(!this.tooManyColors){var r=this.maxColors,t=this.paletteTexture,a=Math.ceil(e.length*.25/r);if(a>1){e=e.slice();for(var n=e.length*.25%r;n{"use strict";A7.exports=D_;A7.exports.default=D_;function D_(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=vJ(e,0,n,t,!0),o=[];if(!i||i.next===i.prev)return o;var l,s,f,u,c,v,d;if(a&&(i=M6e(e,r,i,t)),e.length>80*t){l=f=e[0],s=u=e[1];for(var p=t;pf&&(f=c),v>u&&(u=v);d=Math.max(f-l,u-s),d=d!==0?32767/d:0}return lg(i,o,t,l,s,d,0),o}function vJ(e,r,t,a,n){var i,o;if(n===w7(e,r,t,a)>0)for(i=r;i=r;i-=a)o=cJ(i,e[i],e[i+1],o);return o&&R_(o,o.next)&&(fg(o),o=o.next),o}function M0(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(R_(t,t.next)||$n(t.prev,t,t.next)===0)){if(fg(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function lg(e,r,t,a,n,i,o){if(e){!o&&i&&L6e(e,a,n,i);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,i?w6e(e,a,n,i):_6e(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(f.i/t|0),fg(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=A6e(M0(e),r,t),lg(e,r,t,a,n,i,2)):o===2&&T6e(e,r,t,a,n,i):lg(M0(e),r,t,a,n,i,1);break}}}}function _6e(e){var r=e.prev,t=e,a=e.next;if($n(r,t,a)>=0)return!1;for(var n=r.x,i=t.x,o=a.x,l=r.y,s=t.y,f=a.y,u=ni?n>o?n:o:i>o?i:o,d=l>s?l>f?l:f:s>f?s:f,p=a.next;p!==r;){if(p.x>=u&&p.x<=v&&p.y>=c&&p.y<=d&&zp(n,l,i,s,o,f,p.x,p.y)&&$n(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function w6e(e,r,t,a){var n=e.prev,i=e,o=e.next;if($n(n,i,o)>=0)return!1;for(var l=n.x,s=i.x,f=o.x,u=n.y,c=i.y,v=o.y,d=ls?l>f?l:f:s>f?s:f,y=u>c?u>v?u:v:c>v?c:v,b=x7(d,p,r,t,a),T=x7(m,y,r,t,a),_=e.prevZ,x=e.nextZ;_&&_.z>=b&&x&&x.z<=T;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&zp(l,u,s,c,f,v,_.x,_.y)&&$n(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=m&&x.y>=p&&x.y<=y&&x!==n&&x!==o&&zp(l,u,s,c,f,v,x.x,x.y)&&$n(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=b;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&zp(l,u,s,c,f,v,_.x,_.y)&&$n(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=T;){if(x.x>=d&&x.x<=m&&x.y>=p&&x.y<=y&&x!==n&&x!==o&&zp(l,u,s,c,f,v,x.x,x.y)&&$n(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function A6e(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!R_(n,i)&&hJ(n,a,a.next,i)&&sg(n,i)&&sg(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),fg(a),fg(a.next),a=e=i),a=a.next}while(a!==e);return M0(a)}function T6e(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&F6e(o,l)){var s=dJ(o,l);o=M0(o,o.next),s=M0(s,s.next),lg(o,r,t,a,n,i,0),lg(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function M6e(e,r,t,a){var n=[],i,o,l,s,f;for(i=0,o=r.length;i=t.next.y&&t.next.y!==t.y){var l=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(l<=a&&l>i&&(i=l,o=t.x=t.x&&t.x>=f&&a!==t.x&&zp(no.x||t.x===o.x&&C6e(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function C6e(e,r){return $n(e.prev,e,r.prev)<0&&$n(r.next,e,e.next)<0}function L6e(e,r,t,a){var n=e;do n.z===0&&(n.z=x7(n.x,n.y,r,t,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,D6e(n)}function D6e(e){var r,t,a,n,i,o,l,s,f=1;do{for(t=e,e=null,i=null,o=0;t;){for(o++,a=t,l=0,r=0;r0||s>0&&a;)l!==0&&(s===0||!a||t.z<=a.z)?(n=t,t=t.nextZ,l--):(n=a,a=a.nextZ,s--),i?i.nextZ=n:e=n,n.prevZ=i,i=n;t=a}i.nextZ=null,f*=2}while(o>1);return e}function x7(e,r,t,a,n){return e=(e-t)*n|0,r=(r-a)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function R6e(e){var r=e,t=e;do(r.x=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function F6e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!q6e(e,r)&&(sg(e,r)&&sg(r,e)&&P6e(e,r)&&($n(e.prev,e,r.prev)||$n(e,r.prev,r))||R_(e,r)&&$n(e.prev,e,e.next)>0&&$n(r.prev,r,r.next)>0)}function $n(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function R_(e,r){return e.x===r.x&&e.y===r.y}function hJ(e,r,t,a){var n=L_($n(e,r,t)),i=L_($n(e,r,a)),o=L_($n(t,a,e)),l=L_($n(t,a,r));return!!(n!==i&&o!==l||n===0&&C_(e,t,r)||i===0&&C_(e,a,r)||o===0&&C_(t,e,a)||l===0&&C_(t,r,a))}function C_(e,r,t){return r.x<=Math.max(e.x,t.x)&&r.x>=Math.min(e.x,t.x)&&r.y<=Math.max(e.y,t.y)&&r.y>=Math.min(e.y,t.y)}function L_(e){return e>0?1:e<0?-1:0}function q6e(e,r){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==r.i&&t.next.i!==r.i&&hJ(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function sg(e,r){return $n(e.prev,e,e.next)<0?$n(e,r,e.next)>=0&&$n(e,e.prev,r)>=0:$n(e,r,e.prev)<0||$n(e,e.next,r)<0}function P6e(e,r){var t=e,a=!1,n=(e.x+r.x)/2,i=(e.y+r.y)/2;do t.y>i!=t.next.y>i&&t.next.y!==t.y&&n<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(a=!a),t=t.next;while(t!==e);return a}function dJ(e,r){var t=new _7(e.i,e.x,e.y),a=new _7(r.i,r.x,r.y),n=e.next,i=r.prev;return e.next=r,r.prev=e,t.next=n,n.prev=t,a.next=t,t.prev=a,i.next=a,a.prev=i,a}function cJ(e,r,t,a){var n=new _7(e,r,t);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function fg(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function _7(e,r,t){this.i=e,this.x=r,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}D_.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(w7(e,0,i,t));if(n)for(var l=0,s=r.length;l0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var mJ=N((RNe,yJ)=>{"use strict";var N6e=d0();yJ.exports=I6e;function I6e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=N6e(e,r));for(var a=0;a{"use strict";gJ.exports=function(){var e,r;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[r={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(r)!=="one")}});var _J=N((qNe,xJ)=>{"use strict";xJ.exports=function(){}});var Av=N((PNe,wJ)=>{"use strict";var O6e=_J()();wJ.exports=function(e){return e!==O6e&&e!==null}});var T7=N((NNe,TJ)=>{"use strict";var B6e=Object.create,z6e=Object.getPrototypeOf,AJ={};TJ.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||B6e;return typeof e!="function"?!1:z6e(e(r(null),AJ))===AJ}});var M7=N((INe,MJ)=>{"use strict";var G6e=Av(),U6e={function:!0,object:!0};MJ.exports=function(e){return G6e(e)&&U6e[typeof e]||!1}});var Zu=N((ONe,SJ)=>{"use strict";var H6e=Av();SJ.exports=function(e){if(!H6e(e))throw new TypeError("Cannot use null or undefined");return e}});var kJ=N((BNe,EJ)=>{"use strict";var S7=Object.create,F_;T7()()||(F_=E7());EJ.exports=(function(){var e,r,t;return!F_||F_.level!==1?S7:(e={},r={},t={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){r[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}r[a]=t}),Object.defineProperties(e,r),Object.defineProperty(F_,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return S7(a===null?e:a,n)})})()});var E7=N((zNe,CJ)=>{"use strict";var V6e=M7(),Y6e=Zu(),W6e=Object.prototype.isPrototypeOf,j6e=Object.defineProperty,X6e={configurable:!0,enumerable:!1,writable:!0,value:void 0},q_;q_=function(e,r){if(Y6e(e),r===null||V6e(r))return e;throw new TypeError("Prototype must be null or an object")};CJ.exports=(function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(q_(a,n),n),a}):r=function(a,n){return q_(a,n).__proto__=n,a}:r=function a(n,i){var o;return q_(n,i),o=W6e.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&j6e(a.nullPolyfill,"__proto__",X6e),n},Object.defineProperty(r,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),r={},t,a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(a){try{t=a.set,t.call(e,r)}catch(n){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:(e={},e.__proto__=r,Object.getPrototypeOf(e)===r?{level:1}:!1)})());kJ()});var P_=N((GNe,LJ)=>{"use strict";LJ.exports=T7()()?Object.setPrototypeOf:E7()});var RJ=N((UNe,DJ)=>{"use strict";var Z6e=M7();DJ.exports=function(e){if(!Z6e(e))throw new TypeError(e+" is not an Object");return e}});var qJ=N((HNe,FJ)=>{"use strict";var $6e=Object.create(null),J6e=Math.random;FJ.exports=function(){var e;do e=J6e().toString(36).slice(2);while($6e[e]);return e}});var S0=N((VNe,PJ)=>{"use strict";var Q6e=void 0;PJ.exports=function(e){return e!==Q6e&&e!==null}});var N_=N((YNe,NJ)=>{"use strict";var K6e=S0(),eTe={object:!0,function:!0,undefined:!0};NJ.exports=function(e){return K6e(e)?hasOwnProperty.call(eTe,typeof e):!1}});var OJ=N((WNe,IJ)=>{"use strict";var rTe=N_();IJ.exports=function(e){if(!rTe(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var zJ=N((jNe,BJ)=>{"use strict";var tTe=OJ();BJ.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(r){return!1}return!tTe(e)}});var k7=N((XNe,GJ)=>{"use strict";var aTe=zJ(),nTe=/^\s*class[\s{/}]/,iTe=Function.prototype.toString;GJ.exports=function(e){return!(!aTe(e)||nTe.test(iTe.call(e)))}});var HJ=N((ZNe,UJ)=>{"use strict";UJ.exports=function(){var e=Object.assign,r;return typeof e!="function"?!1:(r={foo:"raz"},e(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}});var YJ=N(($Ne,VJ)=>{"use strict";VJ.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var jJ=N((JNe,WJ)=>{"use strict";var oTe=Av(),lTe=Object.keys;WJ.exports=function(e){return lTe(oTe(e)?Object(e):e)}});var ZJ=N((QNe,XJ)=>{"use strict";XJ.exports=YJ()()?Object.keys:jJ()});var JJ=N((KNe,$J)=>{"use strict";var sTe=ZJ(),fTe=Zu(),uTe=Math.max;$J.exports=function(e,r){var t,a,n=uTe(arguments.length,2),i;for(e=Object(fTe(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";QJ.exports=HJ()()?Object.assign:JJ()});var C7=N((rIe,KJ)=>{"use strict";var cTe=Av(),vTe=Array.prototype.forEach,hTe=Object.create,dTe=function(e,r){var t;for(t in e)r[t]=e[t]};KJ.exports=function(e){var r=hTe(null);return vTe.call(arguments,function(t){cTe(t)&&dTe(Object(t),r)}),r}});var rQ=N((tIe,eQ)=>{"use strict";var L7="razdwatrzy";eQ.exports=function(){return typeof L7.contains!="function"?!1:L7.contains("dwa")===!0&&L7.contains("foo")===!1}});var aQ=N((aIe,tQ)=>{"use strict";var pTe=String.prototype.indexOf;tQ.exports=function(e){return pTe.call(this,e,arguments[1])>-1}});var D7=N((nIe,nQ)=>{"use strict";nQ.exports=rQ()()?String.prototype.contains:aQ()});var $u=N((iIe,sQ)=>{"use strict";var O_=S0(),iQ=k7(),oQ=I_(),lQ=C7(),ug=D7(),yTe=sQ.exports=function(e,r){var t,a,n,i,o;return arguments.length<2||typeof e!="string"?(i=r,r=e,e=null):i=arguments[2],O_(e)?(t=ug.call(e,"c"),a=ug.call(e,"e"),n=ug.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?oQ(lQ(i),o):o};yTe.gs=function(e,r,t){var a,n,i,o;return typeof e!="string"?(i=t,t=r,r=e,e=null):i=arguments[3],O_(r)?iQ(r)?O_(t)?iQ(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,O_(e)?(a=ug.call(e,"c"),n=ug.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?oQ(lQ(i),o):o}});var cg=N((oIe,uQ)=>{"use strict";var fQ=Object.prototype.toString,mTe=fQ.call((function(){return arguments})());uQ.exports=function(e){return fQ.call(e)===mTe}});var vg=N((lIe,vQ)=>{"use strict";var cQ=Object.prototype.toString,gTe=cQ.call("");vQ.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||cQ.call(e)===gTe)||!1}});var dQ=N((sIe,hQ)=>{"use strict";hQ.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var mQ=N((fIe,yQ)=>{var pQ=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};yQ.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return pQ()}try{return __global__||pQ()}finally{delete Object.prototype.__global__}})()});var hg=N((uIe,gQ)=>{"use strict";gQ.exports=dQ()()?globalThis:mQ()});var xQ=N((cIe,bQ)=>{"use strict";var bTe=hg(),R7={object:!0,symbol:!0};bQ.exports=function(){var e=bTe.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!R7[typeof e.iterator]||!R7[typeof e.toPrimitive]||!R7[typeof e.toStringTag])}});var wQ=N((vIe,_Q)=>{"use strict";_Q.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var F7=N((hIe,AQ)=>{"use strict";var xTe=wQ();AQ.exports=function(e){if(!xTe(e))throw new TypeError(e+" is not a symbol");return e}});var kQ=N((dIe,EQ)=>{"use strict";var TQ=$u(),_Te=Object.create,MQ=Object.defineProperty,wTe=Object.prototype,SQ=_Te(null);EQ.exports=function(e){for(var r=0,t,a;SQ[e+(r||"")];)++r;return e+=r||"",SQ[e]=!0,t="@@"+e,MQ(wTe,t,TQ.gs(null,function(n){a||(a=!0,MQ(this,t,TQ(n)),a=!1)})),t}});var LQ=N((pIe,CQ)=>{"use strict";var tf=$u(),oi=hg().Symbol;CQ.exports=function(e){return Object.defineProperties(e,{hasInstance:tf("",oi&&oi.hasInstance||e("hasInstance")),isConcatSpreadable:tf("",oi&&oi.isConcatSpreadable||e("isConcatSpreadable")),iterator:tf("",oi&&oi.iterator||e("iterator")),match:tf("",oi&&oi.match||e("match")),replace:tf("",oi&&oi.replace||e("replace")),search:tf("",oi&&oi.search||e("search")),species:tf("",oi&&oi.species||e("species")),split:tf("",oi&&oi.split||e("split")),toPrimitive:tf("",oi&&oi.toPrimitive||e("toPrimitive")),toStringTag:tf("",oi&&oi.toStringTag||e("toStringTag")),unscopables:tf("",oi&&oi.unscopables||e("unscopables"))})}});var FQ=N((yIe,RQ)=>{"use strict";var DQ=$u(),ATe=F7(),dg=Object.create(null);RQ.exports=function(e){return Object.defineProperties(e,{for:DQ(function(r){return dg[r]?dg[r]:dg[r]=e(String(r))}),keyFor:DQ(function(r){var t;ATe(r);for(t in dg)if(dg[t]===r)return t})})}});var NQ=N((mIe,PQ)=>{"use strict";var Yf=$u(),q7=F7(),B_=hg().Symbol,TTe=kQ(),MTe=LQ(),STe=FQ(),ETe=Object.create,P7=Object.defineProperties,z_=Object.defineProperty,Ao,Gp,qQ;if(typeof B_=="function")try{String(B_()),qQ=!0}catch(e){}else B_=null;Gp=function(r){if(this instanceof Gp)throw new TypeError("Symbol is not a constructor");return Ao(r)};PQ.exports=Ao=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return qQ?B_(r):(t=ETe(Gp.prototype),r=r===void 0?"":String(r),P7(t,{__description__:Yf("",r),__name__:Yf("",TTe(r))}))};MTe(Ao);STe(Ao);P7(Gp.prototype,{constructor:Yf(Ao),toString:Yf("",function(){return this.__name__})});P7(Ao.prototype,{toString:Yf(function(){return"Symbol ("+q7(this).__description__+")"}),valueOf:Yf(function(){return q7(this)})});z_(Ao.prototype,Ao.toPrimitive,Yf("",function(){var e=q7(this);return typeof e=="symbol"?e:e.toString()}));z_(Ao.prototype,Ao.toStringTag,Yf("c","Symbol"));z_(Gp.prototype,Ao.toStringTag,Yf("c",Ao.prototype[Ao.toStringTag]));z_(Gp.prototype,Ao.toPrimitive,Yf("c",Ao.prototype[Ao.toPrimitive]))});var Tv=N((gIe,IQ)=>{"use strict";IQ.exports=xQ()()?hg().Symbol:NQ()});var BQ=N((bIe,OQ)=>{"use strict";var kTe=Zu();OQ.exports=function(){return kTe(this).length=0,this}});var Up=N((xIe,zQ)=>{"use strict";zQ.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var UQ=N((_Ie,GQ)=>{"use strict";var CTe=S0(),LTe=N_(),DTe=Object.prototype.toString;GQ.exports=function(e){if(!CTe(e))return null;if(LTe(e)){var r=e.toString;if(typeof r!="function"||r===DTe)return null}try{return""+e}catch(t){return null}}});var VQ=N((wIe,HQ)=>{"use strict";HQ.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var WQ=N((AIe,YQ)=>{"use strict";var RTe=VQ(),FTe=/[\n\r\u2028\u2029]/g;YQ.exports=function(e){var r=RTe(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(FTe,function(t){switch(t){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),r)}});var N7=N((TIe,ZQ)=>{"use strict";var jQ=S0(),qTe=N_(),PTe=UQ(),NTe=WQ(),XQ=function(e,r){return e.replace("%v",NTe(r))};ZQ.exports=function(e,r,t){if(!qTe(t))throw new TypeError(XQ(r,e));if(!jQ(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=PTe(t.errorMessage);throw jQ(a)||(a=r),new TypeError(XQ(a,e))}});var JQ=N((MIe,$Q)=>{"use strict";var ITe=N7(),OTe=S0();$Q.exports=function(e){return OTe(e)?e:ITe(e,"Cannot use %v",arguments[1])}});var KQ=N((SIe,QQ)=>{"use strict";var BTe=N7(),zTe=k7();QQ.exports=function(e){return zTe(e)?e:BTe(e,"%v is not a plain function",arguments[1])}});var rK=N((EIe,eK)=>{"use strict";eK.exports=function(){var e=Array.from,r,t;return typeof e!="function"?!1:(r=["raz","dwa"],t=e(r),!!(t&&t!==r&&t[1]==="dwa"))}});var aK=N((kIe,tK)=>{"use strict";var GTe=Object.prototype.toString,UTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);tK.exports=function(e){return typeof e=="function"&&UTe(GTe.call(e))}});var iK=N((CIe,nK)=>{"use strict";nK.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var lK=N((LIe,oK)=>{"use strict";oK.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var fK=N((DIe,sK)=>{"use strict";sK.exports=iK()()?Math.sign:lK()});var cK=N((RIe,uK)=>{"use strict";var HTe=fK(),VTe=Math.abs,YTe=Math.floor;uK.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:HTe(e)*YTe(VTe(e)))}});var hK=N((FIe,vK)=>{"use strict";var WTe=cK(),jTe=Math.max;vK.exports=function(e){return jTe(0,WTe(e))}});var mK=N((qIe,yK)=>{"use strict";var XTe=Tv().iterator,ZTe=cg(),$Te=aK(),JTe=hK(),dK=Up(),QTe=Zu(),KTe=Av(),e8e=vg(),pK=Array.isArray,I7=Function.prototype.call,E0={configurable:!0,enumerable:!0,writable:!0,value:null},O7=Object.defineProperty;yK.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,f,u,c,v;if(e=Object(QTe(e)),KTe(r)&&dK(r),!this||this===Array||!$Te(this)){if(!r){if(ZTe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(pK(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?I7.call(r,t,v,i):v,a?(E0.value=v,O7(o,i,E0)):o[i]=v,++i;l=i}}if(l===void 0)for(l=JTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";gK.exports=rK()()?Array.from:mK()});var _K=N((NIe,xK)=>{"use strict";var r8e=bK(),t8e=I_(),a8e=Zu();xK.exports=function(e){var r=Object(a8e(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?r8e(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):t8e(n,e),n}});var TK=N((IIe,AK)=>{"use strict";var n8e=Up(),i8e=Zu(),o8e=Function.prototype.bind,wK=Function.prototype.call,l8e=Object.keys,s8e=Object.prototype.propertyIsEnumerable;AK.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(i8e(t)),n8e(a),n=l8e(t),o&&n.sort(typeof o=="function"?o8e.call(o,t):void 0),typeof e!="function"&&(e=n[e]),wK.call(e,n,function(l,s){return s8e.call(t,l)?wK.call(a,i,t[l],l,t,s):r})}}});var SK=N((OIe,MK)=>{"use strict";MK.exports=TK()("forEach")});var kK=N((BIe,EK)=>{"use strict";var f8e=Up(),u8e=SK(),c8e=Function.prototype.call;EK.exports=function(e,r){var t={},a=arguments[2];return f8e(r),u8e(e,function(n,i,o,l){t[i]=c8e.call(r,a,n,i,o,l)}),t}});var RK=N((zIe,DK)=>{"use strict";var v8e=S0(),h8e=JQ(),CK=KQ(),d8e=_K(),p8e=C7(),y8e=kK(),m8e=Function.prototype.bind,g8e=Object.defineProperty,b8e=Object.prototype.hasOwnProperty,LK;LK=function(e,r,t){var a=h8e(r)&&CK(r.value),n;return n=d8e(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&b8e.call(this,e)?a:(r.value=m8e.call(a,t.resolveContext?t.resolveContext(this):this),g8e(this,e,r),this[e])},n};DK.exports=function(e){var r=p8e(arguments[1]);return v8e(r.resolveContext)&&CK(r.resolveContext),y8e(e,function(t,a){return LK(a,t,r)})}});var B7=N((GIe,NK)=>{"use strict";var x8e=BQ(),_8e=I_(),w8e=Up(),A8e=Zu(),nl=$u(),T8e=RK(),FK=Tv(),qK=Object.defineProperty,PK=Object.defineProperties,pg;NK.exports=pg=function(e,r){if(!(this instanceof pg))throw new TypeError("Constructor requires 'new'");PK(this,{__list__:nl("w",A8e(e)),__context__:nl("w",r),__nextIndex__:nl("w",0)}),r&&(w8e(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete pg.prototype.constructor;PK(pg.prototype,_8e({_next:nl(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){qK(this,"__redo__",nl("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:nl(function(e){var r;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(r=this.__redo__.indexOf(e),r!==-1&&this.__redo__.splice(r,1),this.__redo__.forEach(function(t,a){t>e&&(this.__redo__[a]=--t)},this)))}),_onClear:nl(function(){this.__redo__&&x8e.call(this.__redo__),this.__nextIndex__=0})})));qK(pg.prototype,FK.iterator,nl(function(){return this}))});var GK=N((UIe,zK)=>{"use strict";var IK=P_(),OK=D7(),z7=$u(),M8e=Tv(),G7=B7(),BK=Object.defineProperty,Hp;Hp=zK.exports=function(e,r){if(!(this instanceof Hp))throw new TypeError("Constructor requires 'new'");G7.call(this,e),r?OK.call(r,"key+value")?r="key+value":OK.call(r,"key")?r="key":r="value":r="value",BK(this,"__kind__",z7("",r))};IK&&IK(Hp,G7);delete Hp.prototype.constructor;Hp.prototype=Object.create(G7.prototype,{_resolve:z7(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});BK(Hp.prototype,M8e.toStringTag,z7("c","Array Iterator"))});var YK=N((HIe,VK)=>{"use strict";var UK=P_(),G_=$u(),S8e=Tv(),U7=B7(),HK=Object.defineProperty,Vp;Vp=VK.exports=function(e){if(!(this instanceof Vp))throw new TypeError("Constructor requires 'new'");e=String(e),U7.call(this,e),HK(this,"__length__",G_("",e.length))};UK&&UK(Vp,U7);delete Vp.prototype.constructor;Vp.prototype=Object.create(U7.prototype,{_next:G_(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});HK(Vp.prototype,S8e.toStringTag,G_("c","String Iterator"))});var jK=N((VIe,WK)=>{"use strict";var E8e=cg(),k8e=Av(),C8e=vg(),L8e=Tv().iterator,D8e=Array.isArray;WK.exports=function(e){return k8e(e)?D8e(e)||C8e(e)||E8e(e)?!0:typeof e[L8e]=="function":!1}});var ZK=N((YIe,XK)=>{"use strict";var R8e=jK();XK.exports=function(e){if(!R8e(e))throw new TypeError(e+" is not iterable");return e}});var H7=N((WIe,QK)=>{"use strict";var F8e=cg(),q8e=vg(),$K=GK(),P8e=YK(),N8e=ZK(),JK=Tv().iterator;QK.exports=function(e){return typeof N8e(e)[JK]=="function"?e[JK]():F8e(e)?new $K(e):q8e(e)?new P8e(e):new $K(e)}});var eee=N((jIe,KK)=>{"use strict";var I8e=cg(),O8e=Up(),B8e=vg(),z8e=H7(),G8e=Array.isArray,V7=Function.prototype.call,U8e=Array.prototype.some;KK.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,f,u;if(G8e(e)||I8e(e)?t="array":B8e(e)?t="string":e=z8e(e),O8e(r),i=function(){o=!0},t==="array"){U8e.call(e,function(c){return V7.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&u<=56319&&(f+=e[++l])),V7.call(r,a,f,i),!o);++l);return}for(n=e.next();!n.done;){if(V7.call(r,a,n.value,i),o)return;n=e.next()}}});var tee=N((XIe,ree)=>{"use strict";ree.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var iee=N((ZIe,nee)=>{"use strict";var H8e=Av(),H_=P_(),U_=RJ(),V8e=Zu(),Y8e=qJ(),Ju=$u(),W8e=H7(),j8e=eee(),X8e=Tv().toStringTag,aee=tee(),Z8e=Array.isArray,W7=Object.defineProperty,Y7=Object.prototype.hasOwnProperty,$8e=Object.getPrototypeOf,Mv;nee.exports=Mv=function(){var e=arguments[0],r;if(!(this instanceof Mv))throw new TypeError("Constructor requires 'new'");return r=aee&&H_&&WeakMap!==Mv?H_(new WeakMap,$8e(this)):this,H8e(e)&&(Z8e(e)||(e=W8e(e))),W7(r,"__weakMapData__",Ju("c","$weakMap$"+Y8e())),e&&j8e(e,function(t){V8e(t),r.set(t[0],t[1])}),r};aee&&(H_&&H_(Mv,WeakMap),Mv.prototype=Object.create(WeakMap.prototype,{constructor:Ju(Mv)}));Object.defineProperties(Mv.prototype,{delete:Ju(function(e){return Y7.call(U_(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Ju(function(e){if(Y7.call(U_(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Ju(function(e){return Y7.call(U_(e),this.__weakMapData__)}),set:Ju(function(e,r){return W7(U_(e),this.__weakMapData__,Ju("c",r)),this}),toString:Ju(function(){return"[object WeakMap]"})});W7(Mv.prototype,X8e,Ju("c","WeakMap"))});var j7=N(($Ie,oee)=>{"use strict";oee.exports=bJ()()?WeakMap:iee()});var see=N((JIe,lee)=>{"use strict";lee.exports=function(e,r,t){if(typeof Array.prototype.findIndex=="function")return e.findIndex(r,t);if(typeof r!="function")throw new TypeError("predicate must be a function");var a=Object(e),n=a.length;if(n===0)return-1;for(var i=0;i{"use strict";var V_=w0(),J8e=d0(),Z7=ii(),Q8e=Vf(),K8e=p0(),fee=pJ(),e7e=mJ(),{float32:r7e,fract32:X7}=S_(),t7e=j7(),uee=bp(),a7e=see(),n7e=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -325,7 +325,7 @@ void main() { fragColor = color / 255.; } -`,J8e=` +`,i7e=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -343,7 +343,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,$8e=` +`,o7e=` precision highp float; attribute vec2 position, positionFract; @@ -371,14 +371,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,Q8e=` +`,l7e=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,K8e=` +`,s7e=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -582,7 +582,7 @@ void main() { } } } -`,e7e=` +`,f7e=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -662,7 +662,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;fee.exports=fn;function fn(e,r){if(!(this instanceof fn))return new fn(e,r);if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=fn.shaders.has(e)?fn.shaders.get(e):fn.shaders.set(e,fn.createShaders(e)).get(e),this.update(r)}fn.dashMult=2;fn.maxPatternLength=256;fn.precisionThreshold=3e6;fn.maxPoints=1e4;fn.maxLines=2048;fn.shaders=new j8e;fn.createShaders=function(e){let r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),t={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(X7({vert:Z8e,frag:J8e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},t)),n;try{n=e(X7({cull:{enable:!0,face:"back"},vert:K8e,frag:e7e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},t))}catch(o){n=a}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:$8e,frag:Q8e,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:t.blend,depth:{enable:!1},scissor:t.scissor,stencil:t.stencil,viewport:t.viewport}),rect:a,miter:n}};fn.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};fn.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};fn.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((r,t)=>{if(r&&Array.isArray(r))return this.draw(...r);typeof r=="number"&&(r=this.passes[r]),r&&r.count>1&&r.opacity&&(this.regl._refresh(),r.fill&&r.triangles&&r.triangles.length>2&&this.shaders.fill(r),r.thickness&&(r.scale[0]*r.viewport.width>fn.precisionThreshold||r.scale[1]*r.viewport.height>fn.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=fn.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};fn.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:r,gl:t}=this;if(e.forEach((n,i)=>{let o=this.passes[i];if(n!==void 0){if(n===null){this.passes[i]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=H8e(n,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[i]=o={id:i,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=X7({},fn.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,iA-E),T=[],_=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let A=X8e(b,E=>E>=x);b=b.slice(0,A),b.push(x)}for(let A=0;AF-x+(b[A]-_)),k=lee(E,M);k=k.map(F=>F+_+(F+_{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var dee=N((HIe,hee)=>{"use strict";var r7e=h0(),t7e=_0(),a7e=m7(),n7e=Vf(),uee=ni(),cee=d0(),{float32:i7e,fract32:J7}=M_();hee.exports=o7e;var vee=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function o7e(e,r){if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let t=e._gl,a,n,i,o,l,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},u=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:vee}),p(r),a=e({vert:` +`;cee.exports=fn;function fn(e,r){if(!(this instanceof fn))return new fn(e,r);if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=fn.shaders.has(e)?fn.shaders.get(e):fn.shaders.set(e,fn.createShaders(e)).get(e),this.update(r)}fn.dashMult=2;fn.maxPatternLength=256;fn.precisionThreshold=3e6;fn.maxPoints=1e4;fn.maxLines=2048;fn.shaders=new t7e;fn.createShaders=function(e){let r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),t={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(Z7({vert:n7e,frag:i7e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},t)),n;try{n=e(Z7({cull:{enable:!0,face:"back"},vert:s7e,frag:f7e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},t))}catch(o){n=a}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:o7e,frag:l7e,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:t.blend,depth:{enable:!1},scissor:t.scissor,stencil:t.stencil,viewport:t.viewport}),rect:a,miter:n}};fn.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};fn.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};fn.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((r,t)=>{if(r&&Array.isArray(r))return this.draw(...r);typeof r=="number"&&(r=this.passes[r]),r&&r.count>1&&r.opacity&&(this.regl._refresh(),r.fill&&r.triangles&&r.triangles.length>2&&this.shaders.fill(r),r.thickness&&(r.scale[0]*r.viewport.width>fn.precisionThreshold||r.scale[1]*r.viewport.height>fn.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=fn.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};fn.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:r,gl:t}=this;if(e.forEach((n,i)=>{let o=this.passes[i];if(n!==void 0){if(n===null){this.passes[i]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=Q8e(n,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[i]=o={id:i,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=Z7({},fn.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,iA-E),T=[],_=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let A=a7e(b,E=>E>=x);b=b.slice(0,A),b.push(x)}for(let A=0;AR-x+(b[A]-_)),k=fee(E,M);k=k.map(R=>R+_+(R+_{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var yee=N((KIe,pee)=>{"use strict";var u7e=d0(),c7e=w0(),v7e=m7(),h7e=Vf(),vee=ii(),hee=p0(),{float32:d7e,fract32:J7}=S_();pee.exports=p7e;var dee=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function p7e(e,r){if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let t=e._gl,a,n,i,o,l,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},u=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:dee}),p(r),a=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -706,10 +706,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(m,b)=>[b.viewport.x,b.viewport.y,m.viewportWidth,m.viewportHeight]},attributes:{color:{buffer:o,offset:(m,b)=>b.offset*4,divisor:1},position:{buffer:n,offset:(m,b)=>b.offset*8,divisor:1},positionFract:{buffer:i,offset:(m,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(m,b)=>b.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:vee.length}),uee(c,{update:p,draw:v,destroy:y,regl:e,gl:t,canvas:t.canvas,groups:u}),c;function c(m){m?p(m):m===null&&y(),v()}function v(m){if(typeof m=="number")return d(m);m&&!Array.isArray(m)&&(m=[m]),e._refresh(),u.forEach((b,T)=>{if(b){if(m&&(m[T]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}d(T)}})}function d(m){typeof m=="number"&&(m=u[m]),m!=null&&m&&m.count&&m.color&&m.opacity&&m.positions&&m.positions.length>1&&(m.scaleRatio=[m.scale[0]*m.viewport.width,m.scale[1]*m.viewport.height],a(m),m.after&&m.after(m))}function p(m){if(!m)return;m.length!=null?typeof m[0]=="number"&&(m=[{positions:m}]):Array.isArray(m)||(m=[m]);let b=0,T=0;if(c.groups=u=m.map((A,E)=>{let M=u[E];if(A)typeof A=="function"?A={after:A}:typeof A[0]=="number"&&(A={positions:A});else return M;return A=n7e(A,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),M||(u[E]=M={id:E,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},A=uee({},f,A)),a7e(M,A,[{lineWidth:k=>+k*.5,capSize:k=>+k*.5,opacity:parseFloat,errors:k=>(k=cee(k),T+=k.length,k),positions:(k,F)=>(k=cee(k,"float64"),F.count=Math.floor(k.length/2),F.bounds=r7e(k,2),F.offset=b,b+=F.count,k)},{color:(k,F)=>{let P=F.count;if(k||(k="transparent"),!Array.isArray(k)||typeof k[0]=="number"){let R=k;k=Array(P);for(let H=0;H{let O=F.bounds;return k||(k=O),F.scale=[1/(k[2]-k[0]),1/(k[3]-k[1])],F.translate=[-k[0],-k[1]],F.scaleFract=J7(F.scale),F.translateFract=J7(F.translate),k},viewport:k=>{let F;return Array.isArray(k)?F={x:k[0],y:k[1],width:k[2]-k[0],height:k[3]-k[1]}:k?(F={x:k.x||k.left||0,y:k.y||k.top||0},k.right?F.width=k.right-F.x:F.width=k.w||k.width||0,k.bottom?F.height=k.bottom-F.y:F.height=k.h||k.height||0):F={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},F}}]),M}),b||T){let A=u.reduce((F,P,O)=>F+(P?P.count:0),0),E=new Float64Array(A*2),M=new Uint8Array(A*4),k=new Float32Array(A*4);u.forEach((F,P)=>{if(!F)return;let{positions:O,count:R,offset:H,color:W,errors:ee}=F;R&&(M.set(W,H*4),k.set(ee,H*4),E.set(O,H*2))});var _=i7e(E);n(_);var x=J7(E,_);i(x),o(M),l(k)}}function y(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var yee=N((VIe,mee)=>{var pee=/[\'\"]/;mee.exports=function(r){return r?(pee.test(r.charAt(0))&&(r=r.substr(1)),pee.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var $7=N((YIe,l7e)=>{l7e.exports=["inherit","initial","unset"]});var Q7=N((WIe,s7e)=>{s7e.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var K7=N((jIe,f7e)=>{f7e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var e9=N((XIe,u7e)=>{u7e.exports=["normal","italic","oblique"]});var r9=N((ZIe,c7e)=>{c7e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var _ee=N((JIe,xee)=>{"use strict";function gee(e,r){if(typeof e!="string")return[e];var t=[e];typeof r=="string"||Array.isArray(r)?r={brackets:r}:r||(r={});var a=r.brackets?Array.isArray(r.brackets)?r.brackets:[r.brackets]:["{}","[]","()"],n=r.escape||"___",i=!!r.flat;a.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),u=[];function c(v,d,p){var y=t.push(v.slice(s[0].length,-s[1].length))-1;return u.push(y),n+y+n}t.forEach(function(v,d){for(var p,y=0;v!=p;)if(p=v,v=v.replace(f,c),y++>1e4)throw Error("References have circular dependency. Please, check them.");t[d]=v}),u=u.reverse(),t=t.map(function(v){return u.forEach(function(d){v=v.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function l(s,f,u){for(var c=[],v,d=0;v=o.exec(s);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(s.slice(0,v.index)),c.push(l(f[v[1]],f)),s=s.slice(v.index+v[0].length)}return c.push(s),c}return i?t:l(t[0],t)}function bee(e,r){if(r&&r.flat){var t=r&&r.escape||"___",a=e[0],n;if(!a)return"";for(var i=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,l)}return a}return e.reduce(function s(f,u){return Array.isArray(u)&&(u=u.reduce(s,"")),f+u},"");function l(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function t9(e,r){return Array.isArray(e)?bee(e,r):gee(e,r)}t9.parse=gee;t9.stringify=bee;xee.exports=t9});var Tee=N(($Ie,Aee)=>{"use strict";var wee=_ee();Aee.exports=function(r,t,a){if(r==null)throw Error("First argument should be a string");if(t==null)throw Error("Separator should be a string or a RegExp");a?(typeof a=="string"||Array.isArray(a))&&(a={ignore:a}):a={},a.escape==null&&(a.escape=!0),a.ignore==null?a.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof a.ignore=="string"&&(a.ignore=[a.ignore]),a.ignore=a.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=wee.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{v7e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var a9=N((KIe,See)=>{"use strict";var h7e=Mee();See.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||h7e.indexOf(r)!==-1}}});var Lee=N((eOe,Cee)=>{"use strict";var d7e=yee(),p7e=$7(),m7e=Q7(),y7e=K7(),g7e=e9(),b7e=r9(),n9=Tee(),x7e=a9().isSize;Cee.exports=kee;var pg=kee.cache={};function kee(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(pg[e])return pg[e];if(e==="")throw new Error("Cannot parse an empty string.");if(m7e.indexOf(e)!==-1)return pg[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=n9(e,/\s+/),a;a=t.shift();){if(p7e.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),pg[e]=r;if(g7e.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(b7e.indexOf(a)!==-1){r.stretch=a;continue}if(y7e.indexOf(a)!==-1){r.weight=a;continue}if(x7e(a)){var n=n9(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=Eee(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=Eee(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=n9(t.join(" "),/\s*,\s*/).map(d7e),pg[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function Eee(e){var r=parseFloat(e);return r.toString()===e?r:e}});var o9=N((rOe,Dee)=>{"use strict";var _7e=Vf(),w7e=a9().isSize,A7e=yg($7()),T7e=yg(Q7()),M7e=yg(K7()),S7e=yg(e9()),E7e=yg(r9()),k7e={normal:1,"small-caps":1},C7e={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},i9={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Dee.exports=function(r){if(r=_7e(r,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),r.system)return r.system&&mg(r.system,T7e),r.system;if(mg(r.style,S7e),mg(r.variant,k7e),mg(r.weight,M7e),mg(r.stretch,E7e),r.size==null&&(r.size=i9.size),typeof r.size=="number"&&(r.size+="px"),!w7e)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=i9.family),Array.isArray(r.family)&&(r.family.length||(r.family=[i9.family]),r.family=r.family.map(function(a){return C7e[a]?a:'"'+a+'"'}).join(", "));var t=[];return t.push(r.style),r.variant!==r.style&&t.push(r.variant),r.weight!==r.variant&&r.weight!==r.style&&t.push(r.weight),r.stretch!==r.weight&&r.stretch!==r.variant&&r.stretch!==r.style&&t.push(r.stretch),t.push(r.size+(r.lineHeight==null||r.lineHeight==="normal"||r.lineHeight+""=="1"?"":"/"+r.lineHeight)),t.push(r.family),t.filter(Boolean).join(" ")};function mg(e,r){if(e&&!r[e]&&!A7e[e])throw Error("Unknown keyword `"+e+"`");return e}function yg(e){for(var r={},t=0;t{"use strict";Fee.exports={parse:Lee(),stringify:o9()}});var qee=N((l9,s9)=>{(function(e,r){typeof l9=="object"&&typeof s9!="undefined"?s9.exports=r():e.createREGL=r()})(l9,function(){"use strict";var e=function(S,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(S.substr(1,S.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(S);if(he)return l(S.substr(0,he.index)).concat(l(he[1])).concat(l(S.substr(he.index+he[0].length)));var xe=S.split(".");if(xe.length===1)return['"'+o(S)+'"'];for(var Ae=[],_e=0;_e65535)<<4,S>>>=B,V=(S>255)<<3,S>>>=V,B|=V,V=(S>15)<<2,S>>>=V,B|=V,V=(S>3)<<1,S>>>=V,B|=V,B|S>>1}function J(){var S=k(8,function(){return[]});function B(Ae){var _e=te(Ae),We=S[Q(_e)>>2];return We.length>0?We.pop():new ArrayBuffer(_e)}function V(Ae){S[Q(Ae.byteLength)>>2].push(Ae)}function he(Ae,_e){var We=null;switch(Ae){case F:We=new Int8Array(B(_e),0,_e);break;case P:We=new Uint8Array(B(_e),0,_e);break;case O:We=new Int16Array(B(2*_e),0,_e);break;case R:We=new Uint16Array(B(2*_e),0,_e);break;case H:We=new Int32Array(B(4*_e),0,_e);break;case W:We=new Uint32Array(B(4*_e),0,_e);break;case ee:We=new Float32Array(B(4*_e),0,_e);break;default:return null}return We.length!==_e?We.subarray(0,_e):We}function xe(Ae){V(Ae.buffer)}return{alloc:B,free:V,allocType:he,freeType:xe}}var j=J();j.zero=J();var se=3408,le=3410,Ee=3411,Ge=3412,Le=3413,Ve=3414,we=3415,ur=33901,Oe=33902,Ue=3379,xr=3386,Ye=34921,re=36347,de=36348,ne=35661,Fe=35660,$e=34930,Ke=36349,Cr=34076,Ar=34024,gr=7936,et=7937,Hr=7938,at=35724,wr=34047,Vr=36063,rt=34852,Pe=3553,or=34067,st=34069,kt=33984,Tr=6408,tr=5126,sr=5121,zr=36160,nt=36053,Yr=36064,Wr=16384,xt=function(S,B){var V=1;B.ext_texture_filter_anisotropic&&(V=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(rt),xe=S.getParameter(Vr));var Ae=!!B.oes_texture_float;if(Ae){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,Tr,1,1,0,Tr,tr,null);var We=S.createFramebuffer();if(S.bindFramebuffer(zr,We),S.framebufferTexture2D(zr,Yr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(zr)!==nt)Ae=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(Wr);var ir=j.allocType(tr,4);S.readPixels(0,0,1,1,Tr,tr,ir),S.getError()?Ae=!1:(S.deleteFramebuffer(We),S.deleteTexture(_e),Ae=ir[0]===1),j.freeType(ir)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var $r=S.createTexture(),Rr=j.allocType(sr,36);S.activeTexture(kt),S.bindTexture(or,$r),S.texImage2D(st,0,Tr,3,3,0,Tr,sr,Rr),j.freeType(Rr),S.bindTexture(or,null),S.deleteTexture($r),lr=!S.getError()}return{colorBits:[S.getParameter(le),S.getParameter(Ee),S.getParameter(Ge),S.getParameter(Le)],depthBits:S.getParameter(Ve),stencilBits:S.getParameter(we),subpixelBits:S.getParameter(se),extensions:Object.keys(B).filter(function(yr){return!!B[yr]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(ur),lineWidthDims:S.getParameter(Oe),maxViewportDims:S.getParameter(xr),maxCombinedTextureUnits:S.getParameter(ne),maxCubeMapSize:S.getParameter(Cr),maxRenderbufferSize:S.getParameter(Ar),maxTextureUnits:S.getParameter($e),maxTextureSize:S.getParameter(Ue),maxAttributes:S.getParameter(Ye),maxVertexUniforms:S.getParameter(re),maxVertexTextureUnits:S.getParameter(Fe),maxVaryingVectors:S.getParameter(de),maxFragmentUniforms:S.getParameter(Ke),glsl:S.getParameter(at),renderer:S.getParameter(et),vendor:S.getParameter(gr),version:S.getParameter(Hr),readFloat:Ae,npotTextureCube:lr}},jr=function(S){return S instanceof Uint8Array||S instanceof Uint16Array||S instanceof Uint32Array||S instanceof Int8Array||S instanceof Int16Array||S instanceof Int32Array||S instanceof Float32Array||S instanceof Float64Array||S instanceof Uint8ClampedArray};function ot(S){return!!S&&typeof S=="object"&&Array.isArray(S.shape)&&Array.isArray(S.stride)&&typeof S.offset=="number"&&S.shape.length===S.stride.length&&(Array.isArray(S.data)||jr(S.data))}var dr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:wt,flatten:Mt};function Ie(S,B,V){for(var he=0;he0){var Xr;if(Array.isArray(ke[0])){hr=At(ke);for(var Be=1,qe=1;qe0){if(typeof Be[0]=="number"){var fr=j.allocType(ze.dtype,Be.length);hi(fr,Be),hr(fr,Er),j.freeType(fr)}else if(Array.isArray(Be[0])||jr(Be[0])){vr=At(Be);var cr=mn(Be,vr,ze.dtype);hr(cr,Er),j.freeType(cr)}}}else if(ot(Be)){vr=Be.shape;var kr=Be.stride,Zr=0,ct=0,mr=0,Dr=0;vr.length===1?(Zr=vr[0],ct=1,mr=kr[0],Dr=0):vr.length===2&&(Zr=vr[0],ct=vr[1],mr=kr[0],Dr=kr[1]);var ft=Array.isArray(Be.data)?ze.dtype:va(Be.data),ut=j.allocType(ft,Zr*ct);Xi(ut,Be.data,Zr,ct,mr,Dr,Be.offset),hr(ut,Er),j.freeType(ut)}return br}return Ze||br(ue),br._reglType="buffer",br._buffer=ze,br.subdata=Xr,V.profile&&(br.stats=ze.stats),br.destroy=function(){Rr(ze)},br}function Ne(){dr(Ae).forEach(function(ue){ue.buffer=S.createBuffer(),S.bindBuffer(ue.type,ue.buffer),S.bufferData(ue.type,ue.persistentData||ue.byteLength,ue.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var ue=0;return Object.keys(Ae).forEach(function(ke){ue+=Ae[ke].stats.size}),ue}),{create:yr,createStream:ir,destroyStream:nr,clear:function(){dr(Ae).forEach(Rr),We.forEach(Rr)},getBuffer:function(ue){return ue&&ue._buffer instanceof _e?ue._buffer:null},restore:Ne,_initBuffer:$r}}var Ya=0,wn=0,ki=1,vs=1,Ll=4,ac=4,Go={points:Ya,point:wn,lines:ki,line:vs,triangles:Ll,triangle:ac,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Qf=0,Kf=1,Zi=4,di=5120,zi=5121,Dl=5122,pi=5123,Pt=5124,$t=5125,fa=34963,_t=35040,$n=35044;function Ga(S,B,V,he){var xe={},Ae=0,_e={uint8:zi,uint16:pi};B.oes_element_index_uint&&(_e.uint32=$t);function We(Ne){this.id=Ae++,xe[this.id]=this,this.buffer=Ne,this.primType=Zi,this.vertCount=0,this.type=0}We.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var ue=ir.pop();return ue||(ue=new We(V.create(null,fa,!0,!1)._buffer)),$r(ue,Ne,_t,-1,-1,0,0),ue}function lr(Ne){ir.push(Ne)}function $r(Ne,ue,ke,Ze,ar,ze,br){Ne.buffer.bind();var hr;if(ue){var Xr=br;!br&&(!jr(ue)||ot(ue)&&!jr(ue.data))&&(Xr=B.oes_element_index_uint?$t:pi),V._initBuffer(Ne.buffer,ue,ke,Xr,3)}else S.bufferData(fa,ze,ke),Ne.buffer.dtype=hr||zi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(hr=br,!br){switch(Ne.buffer.dtype){case zi:case di:hr=zi;break;case pi:case Dl:hr=pi;break;case $t:case Pt:hr=$t;break;default:}Ne.buffer.dtype=hr}Ne.type=hr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,hr===pi?Be>>=1:hr===$t&&(Be>>=2)),Ne.vertCount=Be;var qe=Ze;if(Ze<0){qe=Zi;var Er=Ne.buffer.dimension;Er===1&&(qe=Qf),Er===2&&(qe=Kf),Er===3&&(qe=Zi)}Ne.primType=qe}function Rr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function yr(Ne,ue){var ke=V.create(null,fa,!0),Ze=new We(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Ze.primType=Zi,Ze.vertCount=0,Ze.type=zi;else if(typeof ze=="number")ke(ze),Ze.primType=Zi,Ze.vertCount=ze|0,Ze.type=zi;else{var br=null,hr=$n,Xr=-1,Be=-1,qe=0,Er=0;Array.isArray(ze)||jr(ze)||ot(ze)?br=ze:("data"in ze&&(br=ze.data),"usage"in ze&&(hr=Ln[ze.usage]),"primitive"in ze&&(Xr=Go[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Er=_e[ze.type]),"length"in ze?qe=ze.length|0:(qe=Be,Er===pi||Er===Dl?qe*=2:(Er===$t||Er===Pt)&&(qe*=4))),$r(Ze,br,hr,Xr,Be,qe,Er)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Ze,ar.subdata=function(ze,br){return ke.subdata(ze,br),ar},ar.destroy=function(){Rr(Ze)},ar}return{create:yr,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof We?Ne._elements:null},clear:function(){dr(xe).forEach(Rr)}}}var Nn=new Float32Array(1),ra=new Uint32Array(Nn.buffer),To=5123;function ll(S){for(var B=j.allocType(To,S.length),V=0;V>>31<<15,Ae=(he<<1>>>24)-127,_e=he>>13&1023;if(Ae<-24)B[V]=xe;else if(Ae<-14){var We=-14-Ae;B[V]=xe+(_e+1024>>We)}else Ae>15?B[V]=xe+31744:B[V]=xe+(Ae+15<<10)+_e}return B}function Ci(S){return Array.isArray(S)||jr(S)}var a1=34467,An=3553,Fl=34067,Uo=34069,mi=6408,nf=6406,Ho=6407,Mo=6409,Rl=6410,nc=32854,Vo=32855,hs=36194,N0=32819,n1=32820,ic=33635,Bv=34042,ds=6402,ql=34041,Yo=35904,So=35906,yi=36193,of=33776,ps=33777,sl=33778,lf=33779,zv=35986,oc=35987,eu=34798,Gv=35840,Uv=35841,lc=35842,Hv=35843,sc=36196,Eo=5121,sf=5123,ru=5125,Gi=5126,ff=10242,i1=10243,o1=10497,tu=33071,I0=33648,au=10240,l1=10241,Pl=9728,fc=9729,ms=9984,uf=9985,ys=9986,fl=9987,O0=33170,ul=4352,s1=4353,uc=4354,f1=34046,u1=3317,c1=37440,B0=37441,nu=37443,Vv=37444,ko=33984,z0=[ms,ys,uf,fl],Li=[0,Mo,Rl,Ho,mi],Tn={};Tn[Mo]=Tn[nf]=Tn[ds]=1,Tn[ql]=Tn[Rl]=2,Tn[Ho]=Tn[Yo]=3,Tn[mi]=Tn[So]=4;function Ji(S){return"[object "+S+"]"}var iu=Ji("HTMLCanvasElement"),cl=Ji("OffscreenCanvas"),cf=Ji("CanvasRenderingContext2D"),cc=Ji("ImageBitmap"),Yv=Ji("HTMLImageElement"),Wv=Ji("HTMLVideoElement"),v1=Object.keys(Nt).concat([iu,cl,cf,cc,Yv,Wv]),co=[];co[Eo]=1,co[Gi]=4,co[yi]=2,co[sf]=2,co[ru]=4;var Ta=[];Ta[nc]=2,Ta[Vo]=2,Ta[hs]=2,Ta[ql]=4,Ta[of]=.5,Ta[ps]=.5,Ta[sl]=1,Ta[lf]=1,Ta[zv]=.5,Ta[oc]=1,Ta[eu]=1,Ta[Gv]=.5,Ta[Uv]=.25,Ta[lc]=.5,Ta[Hv]=.25,Ta[sc]=.5;function jv(S){return Array.isArray(S)&&(S.length===0||typeof S[0]=="number")}function Xv(S){if(!Array.isArray(S))return!1;var B=S.length;return!(B===0||!Ci(S[0]))}function $i(S){return Object.prototype.toString.call(S)}function Zv(S){return $i(S)===iu}function Jv(S){return $i(S)===cl}function h1(S){return $i(S)===cf}function d1(S){return $i(S)===cc}function p1(S){return $i(S)===Yv}function m1(S){return $i(S)===Wv}function ou(S){if(!S)return!1;var B=$i(S);return v1.indexOf(B)>=0?!0:jv(S)||Xv(S)||ot(S)}function $v(S){return Nt[Object.prototype.toString.call(S)]|0}function y1(S,B){var V=B.length;switch(S.type){case Eo:case sf:case ru:case Gi:var he=j.allocType(S.type,V);he.set(B),S.data=he;break;case yi:S.data=ll(B);break;default:}}function Qv(S,B){return j.allocType(S.type===yi?Gi:S.type,B)}function vc(S,B){S.type===yi?(S.data=ll(B),j.freeType(B)):S.data=B}function G0(S,B,V,he,xe,Ae){for(var _e=S.width,We=S.height,ir=S.channels,nr=_e*We*ir,lr=Qv(S,nr),$r=0,Rr=0;Rr=1;)We+=_e*ir*ir,ir/=2;return We}else return _e*V*he}function U0(S,B,V,he,xe,Ae,_e){var We={"don't care":ul,"dont care":ul,nice:uc,fast:s1},ir={repeat:o1,clamp:tu,mirror:I0},nr={nearest:Pl,linear:fc},lr=e({mipmap:fl,"nearest mipmap nearest":ms,"linear mipmap nearest":uf,"nearest mipmap linear":ys,"linear mipmap linear":fl},nr),$r={none:0,browser:Vv},Rr={uint8:Eo,rgba4:N0,rgb565:ic,"rgb5 a1":n1},yr={alpha:nf,luminance:Mo,"luminance alpha":Rl,rgb:Ho,rgba:mi,rgba4:nc,"rgb5 a1":Vo,rgb565:hs},Ne={};B.ext_srgb&&(yr.srgb=Yo,yr.srgba=So),B.oes_texture_float&&(Rr.float32=Rr.float=Gi),B.oes_texture_half_float&&(Rr.float16=Rr["half float"]=yi),B.webgl_depth_texture&&(e(yr,{depth:ds,"depth stencil":ql}),e(Rr,{uint16:sf,uint32:ru,"depth stencil":Bv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":of,"rgba s3tc dxt1":ps,"rgba s3tc dxt3":sl,"rgba s3tc dxt5":lf}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":zv,"rgba atc explicit alpha":oc,"rgba atc interpolated alpha":eu}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Gv,"rgb pvrtc 2bppv1":Uv,"rgba pvrtc 4bppv1":lc,"rgba pvrtc 2bppv1":Hv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=sc);var ue=Array.prototype.slice.call(S.getParameter(a1));Object.keys(Ne).forEach(function(z){var me=Ne[z];ue.indexOf(me)>=0&&(yr[z]=me)});var ke=Object.keys(yr);V.textureFormats=ke;var Ze=[];Object.keys(yr).forEach(function(z){var me=yr[z];Ze[me]=z});var ar=[];Object.keys(Rr).forEach(function(z){var me=Rr[z];ar[me]=z});var ze=[];Object.keys(nr).forEach(function(z){var me=nr[z];ze[me]=z});var br=[];Object.keys(lr).forEach(function(z){var me=lr[z];br[me]=z});var hr=[];Object.keys(ir).forEach(function(z){var me=ir[z];hr[me]=z});var Xr=ke.reduce(function(z,me){var be=yr[me];return be===Mo||be===nf||be===Mo||be===Rl||be===ds||be===ql||B.ext_srgb&&(be===Yo||be===So)?z[be]=be:be===Vo||me.indexOf("rgba")>=0?z[be]=mi:z[be]=Ho,z},{});function Be(){this.internalformat=mi,this.format=mi,this.type=Eo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Vv,this.width=0,this.height=0,this.channels=0}function qe(z,me){z.internalformat=me.internalformat,z.format=me.format,z.type=me.type,z.compressed=me.compressed,z.premultiplyAlpha=me.premultiplyAlpha,z.flipY=me.flipY,z.unpackAlignment=me.unpackAlignment,z.colorSpace=me.colorSpace,z.width=me.width,z.height=me.height,z.channels=me.channels}function Er(z,me){if(!(typeof me!="object"||!me)){if("premultiplyAlpha"in me&&(z.premultiplyAlpha=me.premultiplyAlpha),"flipY"in me&&(z.flipY=me.flipY),"alignment"in me&&(z.unpackAlignment=me.alignment),"colorSpace"in me&&(z.colorSpace=$r[me.colorSpace]),"type"in me){var be=me.type;z.type=Rr[be]}var Nr=z.width,Ft=z.height,Ht=z.channels,qr=!1;"shape"in me?(Nr=me.shape[0],Ft=me.shape[1],me.shape.length===3&&(Ht=me.shape[2],qr=!0)):("radius"in me&&(Nr=Ft=me.radius),"width"in me&&(Nr=me.width),"height"in me&&(Ft=me.height),"channels"in me&&(Ht=me.channels,qr=!0)),z.width=Nr|0,z.height=Ft|0,z.channels=Ht|0;var I=!1;if("format"in me){var U=me.format,$=z.internalformat=yr[U];z.format=Xr[$],U in Rr&&("type"in me||(z.type=Rr[U])),U in Ne&&(z.compressed=!0),I=!0}!qr&&I?z.channels=Tn[z.format]:qr&&!I&&z.channels!==Li[z.format]&&(z.format=z.internalformat=Li[z.channels])}}function vr(z){S.pixelStorei(c1,z.flipY),S.pixelStorei(B0,z.premultiplyAlpha),S.pixelStorei(nu,z.colorSpace),S.pixelStorei(u1,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function cr(z,me){var be=null;if(ou(me)?be=me:me&&(Er(z,me),"x"in me&&(z.xOffset=me.x|0),"y"in me&&(z.yOffset=me.y|0),ou(me.data)&&(be=me.data)),me.copy){var Nr=xe.viewportWidth,Ft=xe.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Ft-z.yOffset,z.needsCopy=!0}else if(!be)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(jr(be))z.channels=z.channels||4,z.data=be,!("type"in me)&&z.type===Eo&&(z.type=$v(be));else if(jv(be))z.channels=z.channels||4,y1(z,be),z.alignment=1,z.needsFree=!0;else if(ot(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===Eo&&(z.type=$v(Ht));var qr=be.shape,I=be.stride,U,$,pe,Te,ce,fe;qr.length===3?(pe=qr[2],fe=I[2]):(pe=1,fe=1),U=qr[0],$=qr[1],Te=I[0],ce=I[1],z.alignment=1,z.width=U,z.height=$,z.channels=pe,z.format=z.internalformat=Li[pe],z.needsFree=!0,G0(z,Ht,Te,ce,fe,be.offset)}else if(Zv(be)||Jv(be)||h1(be))Zv(be)||Jv(be)?z.element=be:z.element=be.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(d1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(p1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(m1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Xv(be)){var ae=z.width||be[0].length,X=z.height||be.length,K=z.channels;Ci(be[0][0])?K=K||be[0][0].length:K=K||1;for(var Y=Se.shape(be),ve=1,Ce=0;Ce>=Ft,be.height>>=Ft,cr(be,Nr[Ft]),z.mipmask|=1<=0&&!("faces"in me)&&(z.genMipmaps=!0)}if("mag"in me){var Nr=me.mag;z.magFilter=nr[Nr]}var Ft=z.wrapS,Ht=z.wrapT;if("wrap"in me){var qr=me.wrap;typeof qr=="string"?Ft=Ht=ir[qr]:Array.isArray(qr)&&(Ft=ir[qr[0]],Ht=ir[qr[1]])}else{if("wrapS"in me){var I=me.wrapS;Ft=ir[I]}if("wrapT"in me){var U=me.wrapT;Ht=ir[U]}}if(z.wrapS=Ft,z.wrapT=Ht,"anisotropic"in me){var $=me.anisotropic;z.anisotropic=me.anisotropic}if("mipmap"in me){var pe=!1;switch(typeof me.mipmap){case"string":z.mipmapHint=We[me.mipmap],z.genMipmaps=!0,pe=!0;break;case"boolean":pe=z.genMipmaps=me.mipmap;break;case"object":z.genMipmaps=!1,pe=!0;break;default:}pe&&!("min"in me)&&(z.minFilter=ms)}}function Xa(z,me){S.texParameteri(me,l1,z.minFilter),S.texParameteri(me,au,z.magFilter),S.texParameteri(me,ff,z.wrapS),S.texParameteri(me,i1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(me,f1,z.anisotropic),z.genMipmaps&&(S.hint(O0,z.mipmapHint),S.generateMipmap(me))}var nn=0,ga={},ba=V.maxTextureUnits,ka=Array(ba).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=mi,this.id=nn++,this.refCount=1,this.target=z,this.texture=S.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,_e.profile&&(this.stats={size:0})}function Ra(z){S.activeTexture(ko),S.bindTexture(z.target,z.texture)}function Wt(){var z=ka[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(An,null)}function Za(z){var me=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(ko+be),S.bindTexture(Nr,null),ka[be]=null),S.deleteTexture(me),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ga[z.id],Ae.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var me=z.unit;if(me<0){for(var be=0;be0)continue;Nr.unit=-1}ka[be]=z,me=be;break}me>=ba,_e.profile&&Ae.maxTextureUnits>ce)-pe,fe.height=fe.height||(be.height>>ce)-Te,Ra(be),Zr(fe,An,pe,Te,ce),Wt(),Dr(fe),Nr}function Ht(qr,I){var U=qr|0,$=I|0||U;if(U===be.width&&$===be.height)return Nr;Nr.width=be.width=U,Nr.height=be.height=$,Ra(be);for(var pe=0;be.mipmask>>pe;++pe){var Te=U>>pe,ce=$>>pe;if(!Te||!ce)break;S.texImage2D(An,pe,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=Nl(be.internalformat,be.type,U,$,!1,!1)),Nr}return Nr(z,me),Nr.subimage=Ft,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=be,_e.profile&&(Nr.stats=be.stats),Nr.destroy=function(){be.decRef()},Nr}function ln(z,me,be,Nr,Ft,Ht){var qr=new Tt(Fl);ga[qr.id]=qr,Ae.cubeCount++;var I=new Array(6);function U(Te,ce,fe,ae,X,K){var Y,ve=qr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)I[Y]=Dt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ut(I[Y],Ce,Ce)}else if(typeof Te=="object")if(ce)Et(I[0],Te),Et(I[1],ce),Et(I[2],fe),Et(I[3],ae),Et(I[4],X),Et(I[5],K);else if(Ha(ve,Te),Er(qr,Te),"faces"in Te){var Je=Te.faces;for(Y=0;Y<6;++Y)qe(I[Y],qr),Et(I[Y],Je[Y])}else for(Y=0;Y<6;++Y)Et(I[Y],Te);for(qe(qr,I[0]),ve.genMipmaps?qr.mipmask=(I[0].width<<1)-1:qr.mipmask=I[0].mipmask,qr.internalformat=I[0].internalformat,U.width=I[0].width,U.height=I[0].height,Ra(qr),Y=0;Y<6;++Y)aa(I[Y],Uo+Y);for(Xa(ve,Fl),Wt(),_e.profile&&(qr.stats.size=Nl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Ze[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=br[ve.minFilter],U.wrapS=hr[ve.wrapS],U.wrapT=hr[ve.wrapT],Y=0;Y<6;++Y)an(I[Y]);return U}function $(Te,ce,fe,ae,X){var K=fe|0,Y=ae|0,ve=X|0,Ce=mr();return qe(Ce,qr),Ce.width=0,Ce.height=0,cr(Ce,ce),Ce.width=Ce.width||(qr.width>>ve)-K,Ce.height=Ce.height||(qr.height>>ve)-Y,Ra(qr),Zr(Ce,Uo+Te,K,Y,ve),Wt(),Dr(Ce),U}function pe(Te){var ce=Te|0;if(ce!==qr.width){U.width=qr.width=ce,U.height=qr.height=ce,Ra(qr);for(var fe=0;fe<6;++fe)for(var ae=0;qr.mipmask>>ae;++ae)S.texImage2D(Uo+fe,ae,qr.format,ce>>ae,ce>>ae,0,qr.format,qr.type,null);return Wt(),_e.profile&&(qr.stats.size=Nl(qr.internalformat,qr.type,U.width,U.height,!1,!0)),U}}return U(z,me,be,Nr,Ft,Ht),U.subimage=$,U.resize=pe,U._reglType="textureCube",U._texture=qr,_e.profile&&(U.stats=qr.stats),U.destroy=function(){qr.decRef()},U}function mt(){for(var z=0;z>Nr,be.height>>Nr,0,be.internalformat,be.type,null);else for(var Ft=0;Ft<6;++Ft)S.texImage2D(Uo+Ft,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Xa(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?an=!0:ir.indexOf(Ut)>=0&&(an=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(ka=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(nn=Tt.depth,Ea=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ea=Tt.stencil:(ga=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ea=Tt.depthStencil:(ba=Tt.depthStencil,aa=!1,Ea=!1))}var Wt=null,Za=null,on=null,ln=null;if(Array.isArray(Dt))Wt=Dt.map(Ne);else if(Dt)Wt=[Ne(Dt)];else for(Wt=new Array(Xa),ft=0;ft0&&(Dr.depth=cr[0].depth,Dr.stencil=cr[0].stencil,Dr.depthStencil=cr[0].depthStencil),cr[mr]?cr[mr](Dr):cr[mr]=qe(Dr)}return e(kr,{width:ft,height:ft,color:Ut})}function Zr(ct){var mr,Dr=ct|0;if(Dr===kr.width)return kr;var ft=kr.color;for(mr=0;mr=ft.byteLength?ut.subdata(ft):(ut.destroy(),qe.buffers[ct]=null)),qe.buffers[ct]||(ut=qe.buffers[ct]=xe.create(mr,uh,!1,!0)),Dr.buffer=xe.getBuffer(ut),Dr.size=Dr.buffer.dimension|0,Dr.normalized=!1,Dr.type=Dr.buffer.dtype,Dr.offset=0,Dr.stride=0,Dr.divisor=0,Dr.state=1,kr[ct]=1}else xe.getBuffer(mr)?(Dr.buffer=xe.getBuffer(mr),Dr.size=Dr.buffer.dimension|0,Dr.normalized=!1,Dr.type=Dr.buffer.dtype,Dr.offset=0,Dr.stride=0,Dr.divisor=0,Dr.state=1):xe.getBuffer(mr.buffer)?(Dr.buffer=xe.getBuffer(mr.buffer),Dr.size=(+mr.size||Dr.buffer.dimension)|0,Dr.normalized=!!mr.normalized||!1,"type"in mr?Dr.type=un[mr.type]:Dr.type=Dr.buffer.dtype,Dr.offset=(mr.offset||0)|0,Dr.stride=(mr.stride||0)|0,Dr.divisor=(mr.divisor||0)|0,Dr.state=1):"x"in mr&&(Dr.x=+mr.x||0,Dr.y=+mr.y||0,Dr.z=+mr.z||0,Dr.w=+mr.w||0,Dr.state=2)}for(var Et=0;Et1)for(var vr=0;vrue&&(ue=ke.stats.uniformsCount)}),ue},V.getMaxAttributesCount=function(){var ue=0;return lr.forEach(function(ke){ke.stats.attributesCount>ue&&(ue=ke.stats.attributesCount)}),ue});function Ne(){xe={},Ae={};for(var ue=0;ue16&&(V=vl(V,S.length*8));for(var he=Array(16),xe=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=V[Ae]^909522486,xe[Ae]=V[Ae]^1549556828;var _e=vl(he.concat(uu(B)),512+B.length*8);return dh(vl(xe.concat(_e),768))}function j0(S){for(var B=Y0?"0123456789ABCDEF":"0123456789abcdef",V="",he,xe=0;xe>>4&15)+B.charAt(he&15);return V}function D1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=S.length,xe=0;xeS.length*8?V+=C1:V+=B.charAt(Ae>>>6*(3-_e)&63);return V}function F1(S,B){var V=B.length,he=Array(),xe,Ae,_e,We,ir=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(We=Array(),_e=0,xe=0;xe0||Ae>0)&&(We[We.length]=Ae);he[he.length]=_e,ir=We}var nr="";for(xe=he.length-1;xe>=0;xe--)nr+=B.charAt(he[xe]);var lr=Math.ceil(S.length*8/(Math.log(B.length)/Math.log(2)));for(xe=nr.length;xe>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function uu(S){for(var B=Array(S.length>>2),V=0;V>5]|=(S.charCodeAt(V/8)&255)<<24-V%32;return B}function dh(S){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function zn(S,B){return S>>>B|S<<32-B}function ph(S,B){return S>>>B}function X0(S,B,V){return S&B^~S&V}function Z0(S,B,V){return S&B^S&V^B&V}function mh(S){return zn(S,2)^zn(S,13)^zn(S,22)}function J0(S){return zn(S,6)^zn(S,11)^zn(S,25)}function mc(S){return zn(S,7)^zn(S,18)^ph(S,3)}function yc(S){return zn(S,17)^zn(S,19)^ph(S,10)}var q1=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function vl(S,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,Ae,_e,We,ir,nr,lr,$r,Rr,yr,Ne,ue;for(S[B>>5]|=128<<24-B%32,S[(B+64>>9<<4)+15]=B,Rr=0;Rr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function Lo(S){return Array.prototype.slice.call(S)}function Do(S){return Lo(S).join("")}function $0(S){var B=S&&S.cache,V=0,he=[],xe=[],Ae=[];function _e(Ne,ue){var ke=ue&&ue.stable;if(!ke){for(var Ze=0;Ze0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Lo(arguments)),Ne.push(";")),ar}return e(ue,{def:Ze,toString:function(){return Do([ke.length>0?"var "+ke.join(",")+";":"",Do(Ne)])}})}function ir(){var Ne=We(),ue=We(),ke=Ne.toString,Ze=ue.toString;function ar(ze,br){ue(ze,br,"=",Ne.def(ze,br),";")}return e(function(){Ne.apply(Ne,Lo(arguments))},{def:Ne.def,entry:Ne,exit:ue,save:ar,set:function(ze,br,hr){ar(ze,br),Ne(ze,br,"=",hr,";")},toString:function(){return ke()+Ze()}})}function nr(){var Ne=Do(arguments),ue=ir(),ke=ir(),Ze=ue.toString,ar=ke.toString;return e(ue,{then:function(){return ue.apply(ue,Lo(arguments)),this},else:function(){return ke.apply(ke,Lo(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Do(["if(",Ne,"){",Ze(),"}",ze])}})}var lr=We(),$r={};function Rr(Ne,ue){var ke=[];function Ze(){var Xr="a"+ke.length;return ke.push(Xr),Xr}ue=ue||0;for(var ar=0;ar[b.viewport.x,b.viewport.y,y.viewportWidth,y.viewportHeight]},attributes:{color:{buffer:o,offset:(y,b)=>b.offset*4,divisor:1},position:{buffer:n,offset:(y,b)=>b.offset*8,divisor:1},positionFract:{buffer:i,offset:(y,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(y,b)=>b.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:dee.length}),vee(c,{update:p,draw:v,destroy:m,regl:e,gl:t,canvas:t.canvas,groups:u}),c;function c(y){y?p(y):y===null&&m(),v()}function v(y){if(typeof y=="number")return d(y);y&&!Array.isArray(y)&&(y=[y]),e._refresh(),u.forEach((b,T)=>{if(b){if(y&&(y[T]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}d(T)}})}function d(y){typeof y=="number"&&(y=u[y]),y!=null&&y&&y.count&&y.color&&y.opacity&&y.positions&&y.positions.length>1&&(y.scaleRatio=[y.scale[0]*y.viewport.width,y.scale[1]*y.viewport.height],a(y),y.after&&y.after(y))}function p(y){if(!y)return;y.length!=null?typeof y[0]=="number"&&(y=[{positions:y}]):Array.isArray(y)||(y=[y]);let b=0,T=0;if(c.groups=u=y.map((A,E)=>{let M=u[E];if(A)typeof A=="function"?A={after:A}:typeof A[0]=="number"&&(A={positions:A});else return M;return A=h7e(A,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),M||(u[E]=M={id:E,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},A=vee({},f,A)),v7e(M,A,[{lineWidth:k=>+k*.5,capSize:k=>+k*.5,opacity:parseFloat,errors:k=>(k=hee(k),T+=k.length,k),positions:(k,R)=>(k=hee(k,"float64"),R.count=Math.floor(k.length/2),R.bounds=u7e(k,2),R.offset=b,b+=R.count,k)},{color:(k,R)=>{let P=R.count;if(k||(k="transparent"),!Array.isArray(k)||typeof k[0]=="number"){let F=k;k=Array(P);for(let H=0;H{let O=R.bounds;return k||(k=O),R.scale=[1/(k[2]-k[0]),1/(k[3]-k[1])],R.translate=[-k[0],-k[1]],R.scaleFract=J7(R.scale),R.translateFract=J7(R.translate),k},viewport:k=>{let R;return Array.isArray(k)?R={x:k[0],y:k[1],width:k[2]-k[0],height:k[3]-k[1]}:k?(R={x:k.x||k.left||0,y:k.y||k.top||0},k.right?R.width=k.right-R.x:R.width=k.w||k.width||0,k.bottom?R.height=k.bottom-R.y:R.height=k.h||k.height||0):R={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},R}}]),M}),b||T){let A=u.reduce((R,P,O)=>R+(P?P.count:0),0),E=new Float64Array(A*2),M=new Uint8Array(A*4),k=new Float32Array(A*4);u.forEach((R,P)=>{if(!R)return;let{positions:O,count:F,offset:H,color:W,errors:ee}=R;F&&(M.set(W,H*4),k.set(ee,H*4),E.set(O,H*2))});var _=d7e(E);n(_);var x=J7(E,_);i(x),o(M),l(k)}}function m(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var bee=N((eOe,gee)=>{var mee=/[\'\"]/;gee.exports=function(r){return r?(mee.test(r.charAt(0))&&(r=r.substr(1)),mee.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var Q7=N((rOe,y7e)=>{y7e.exports=["inherit","initial","unset"]});var K7=N((tOe,m7e)=>{m7e.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var e9=N((aOe,g7e)=>{g7e.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var r9=N((nOe,b7e)=>{b7e.exports=["normal","italic","oblique"]});var t9=N((iOe,x7e)=>{x7e.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var Aee=N((oOe,wee)=>{"use strict";function xee(e,r){if(typeof e!="string")return[e];var t=[e];typeof r=="string"||Array.isArray(r)?r={brackets:r}:r||(r={});var a=r.brackets?Array.isArray(r.brackets)?r.brackets:[r.brackets]:["{}","[]","()"],n=r.escape||"___",i=!!r.flat;a.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),u=[];function c(v,d,p){var m=t.push(v.slice(s[0].length,-s[1].length))-1;return u.push(m),n+m+n}t.forEach(function(v,d){for(var p,m=0;v!=p;)if(p=v,v=v.replace(f,c),m++>1e4)throw Error("References have circular dependency. Please, check them.");t[d]=v}),u=u.reverse(),t=t.map(function(v){return u.forEach(function(d){v=v.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function l(s,f,u){for(var c=[],v,d=0;v=o.exec(s);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(s.slice(0,v.index)),c.push(l(f[v[1]],f)),s=s.slice(v.index+v[0].length)}return c.push(s),c}return i?t:l(t[0],t)}function _ee(e,r){if(r&&r.flat){var t=r&&r.escape||"___",a=e[0],n;if(!a)return"";for(var i=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,l)}return a}return e.reduce(function s(f,u){return Array.isArray(u)&&(u=u.reduce(s,"")),f+u},"");function l(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function a9(e,r){return Array.isArray(e)?_ee(e,r):xee(e,r)}a9.parse=xee;a9.stringify=_ee;wee.exports=a9});var See=N((lOe,Mee)=>{"use strict";var Tee=Aee();Mee.exports=function(r,t,a){if(r==null)throw Error("First argument should be a string");if(t==null)throw Error("Separator should be a string or a RegExp");a?(typeof a=="string"||Array.isArray(a))&&(a={ignore:a}):a={},a.escape==null&&(a.escape=!0),a.ignore==null?a.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof a.ignore=="string"&&(a.ignore=[a.ignore]),a.ignore=a.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=Tee.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{_7e.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var n9=N((fOe,kee)=>{"use strict";var w7e=Eee();kee.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||w7e.indexOf(r)!==-1}}});var Ree=N((uOe,Dee)=>{"use strict";var A7e=bee(),T7e=Q7(),M7e=K7(),S7e=e9(),E7e=r9(),k7e=t9(),i9=See(),C7e=n9().isSize;Dee.exports=Lee;var yg=Lee.cache={};function Lee(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(yg[e])return yg[e];if(e==="")throw new Error("Cannot parse an empty string.");if(M7e.indexOf(e)!==-1)return yg[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=i9(e,/\s+/),a;a=t.shift();){if(T7e.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),yg[e]=r;if(E7e.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(k7e.indexOf(a)!==-1){r.stretch=a;continue}if(S7e.indexOf(a)!==-1){r.weight=a;continue}if(C7e(a)){var n=i9(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=Cee(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=Cee(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=i9(t.join(" "),/\s*,\s*/).map(A7e),yg[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function Cee(e){var r=parseFloat(e);return r.toString()===e?r:e}});var l9=N((cOe,Fee)=>{"use strict";var L7e=Vf(),D7e=n9().isSize,R7e=gg(Q7()),F7e=gg(K7()),q7e=gg(e9()),P7e=gg(r9()),N7e=gg(t9()),I7e={normal:1,"small-caps":1},O7e={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},o9={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Fee.exports=function(r){if(r=L7e(r,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),r.system)return r.system&&mg(r.system,F7e),r.system;if(mg(r.style,P7e),mg(r.variant,I7e),mg(r.weight,q7e),mg(r.stretch,N7e),r.size==null&&(r.size=o9.size),typeof r.size=="number"&&(r.size+="px"),!D7e)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=o9.family),Array.isArray(r.family)&&(r.family.length||(r.family=[o9.family]),r.family=r.family.map(function(a){return O7e[a]?a:'"'+a+'"'}).join(", "));var t=[];return t.push(r.style),r.variant!==r.style&&t.push(r.variant),r.weight!==r.variant&&r.weight!==r.style&&t.push(r.weight),r.stretch!==r.weight&&r.stretch!==r.variant&&r.stretch!==r.style&&t.push(r.stretch),t.push(r.size+(r.lineHeight==null||r.lineHeight==="normal"||r.lineHeight+""=="1"?"":"/"+r.lineHeight)),t.push(r.family),t.filter(Boolean).join(" ")};function mg(e,r){if(e&&!r[e]&&!R7e[e])throw Error("Unknown keyword `"+e+"`");return e}function gg(e){for(var r={},t=0;t{"use strict";qee.exports={parse:Ree(),stringify:l9()}});var Nee=N((s9,f9)=>{(function(e,r){typeof s9=="object"&&typeof f9!="undefined"?f9.exports=r():e.createREGL=r()})(s9,(function(){"use strict";var e=function(S,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(S.substr(1,S.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(S);if(he)return l(S.substr(0,he.index)).concat(l(he[1])).concat(l(S.substr(he.index+he[0].length)));var _e=S.split(".");if(_e.length===1)return['"'+o(S)+'"'];for(var Ae=[],we=0;we<_e.length;++we)Ae=Ae.concat(l(_e[we]));return Ae}function s(S){return"["+l(S).join("][")+"]"}function f(S,B){return new i(S,s(B+""))}function u(S){return typeof S=="function"&&!S._reglType||S instanceof i}function c(S,B){if(typeof S=="function")return new i(t,S);if(typeof S=="number"||typeof S=="boolean")return new i(a,S);if(Array.isArray(S))return new i(n,S.map(function(V,he){return c(V,B+"["+he+"]")}));if(S instanceof i)return S}var v={DynamicVariable:i,define:f,isDynamic:u,unbox:c,accessor:s},d={next:typeof requestAnimationFrame=="function"?function(S){return requestAnimationFrame(S)}:function(S){return setTimeout(S,16)},cancel:typeof cancelAnimationFrame=="function"?function(S){return cancelAnimationFrame(S)}:clearTimeout},p=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:function(){return+new Date};function m(){var S={"":0},B=[""];return{id:function(V){var he=S[V];return he||(he=S[V]=B.length,B.push(V),he)},str:function(V){return B[V]}}}function y(S,B,V){var he=document.createElement("canvas");e(he.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),S.appendChild(he),S===document.body&&(he.style.position="absolute",e(S.style,{margin:0,padding:0}));function _e(){var We=window.innerWidth,ir=window.innerHeight;if(S!==document.body){var nr=he.getBoundingClientRect();We=nr.right-nr.left,ir=nr.bottom-nr.top}he.width=V*We,he.height=V*ir}var Ae;S!==document.body&&typeof ResizeObserver=="function"?(Ae=new ResizeObserver(function(){setTimeout(_e)}),Ae.observe(S)):window.addEventListener("resize",_e,!1);function we(){Ae?Ae.disconnect():window.removeEventListener("resize",_e),S.removeChild(he)}return _e(),{canvas:he,onDestroy:we}}function b(S,B){function V(he){try{return S.getContext(he,B)}catch(_e){return null}}return V("webgl")||V("experimental-webgl")||V("webgl-experimental")}function T(S){return typeof S.nodeName=="string"&&typeof S.appendChild=="function"&&typeof S.getBoundingClientRect=="function"}function _(S){return typeof S.drawArrays=="function"||typeof S.drawElements=="function"}function x(S){return typeof S=="string"?S.split():S}function A(S){return typeof S=="string"?document.querySelector(S):S}function E(S){var B=S||{},V,he,_e,Ae,we={},We=[],ir=[],nr=typeof window=="undefined"?1:window.devicePixelRatio,lr=!1,Jr={},Fr=function(ue){},mr=function(){};if(typeof B=="string"?V=document.querySelector(B):typeof B=="object"&&(T(B)?V=B:_(B)?(Ae=B,_e=Ae.canvas):("gl"in B?Ae=B.gl:"canvas"in B?_e=A(B.canvas):"container"in B&&(he=A(B.container)),"attributes"in B&&(we=B.attributes),"extensions"in B&&(We=x(B.extensions)),"optionalExtensions"in B&&(ir=x(B.optionalExtensions)),"onDone"in B&&(Fr=B.onDone),"profile"in B&&(lr=!!B.profile),"pixelRatio"in B&&(nr=+B.pixelRatio),"cachedCode"in B&&(Jr=B.cachedCode))),V&&(V.nodeName.toLowerCase()==="canvas"?_e=V:he=V),!Ae){if(!_e){var Ne=y(he||document.body,Fr,nr);if(!Ne)return null;_e=Ne.canvas,mr=Ne.onDestroy}we.premultipliedAlpha===void 0&&(we.premultipliedAlpha=!0),Ae=b(_e,we)}return Ae?{gl:Ae,canvas:_e,container:he,extensions:We,optionalExtensions:ir,pixelRatio:nr,profile:lr,cachedCode:Jr,onDone:Fr,onDestroy:mr}:(mr(),Fr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function M(S,B){var V={};function he(we){var We=we.toLowerCase(),ir;try{ir=V[We]=S.getExtension(We)}catch(nr){}return!!ir}for(var _e=0;_e65535)<<4,S>>>=B,V=(S>255)<<3,S>>>=V,B|=V,V=(S>15)<<2,S>>>=V,B|=V,V=(S>3)<<1,S>>>=V,B|=V,B|S>>1}function $(){var S=k(8,function(){return[]});function B(Ae){var we=te(Ae),We=S[Q(we)>>2];return We.length>0?We.pop():new ArrayBuffer(we)}function V(Ae){S[Q(Ae.byteLength)>>2].push(Ae)}function he(Ae,we){var We=null;switch(Ae){case R:We=new Int8Array(B(we),0,we);break;case P:We=new Uint8Array(B(we),0,we);break;case O:We=new Int16Array(B(2*we),0,we);break;case F:We=new Uint16Array(B(2*we),0,we);break;case H:We=new Int32Array(B(4*we),0,we);break;case W:We=new Uint32Array(B(4*we),0,we);break;case ee:We=new Float32Array(B(4*we),0,we);break;default:return null}return We.length!==we?We.subarray(0,we):We}function _e(Ae){V(Ae.buffer)}return{alloc:B,free:V,allocType:he,freeType:_e}}var j=$();j.zero=$();var se=3408,le=3410,Ee=3411,Ge=3412,Le=3413,Ue=3414,xe=3415,ur=33901,Oe=33902,He=3379,xr=3386,Ye=34921,re=36347,de=36348,ne=35661,Re=35660,Je=34930,Ke=36349,Cr=34076,Ar=34024,gr=7936,et=7937,Hr=7938,at=35724,wr=34047,Vr=36063,rt=34852,Pe=3553,or=34067,st=34069,kt=33984,Tr=6408,tr=5126,sr=5121,Gr=36160,nt=36053,Yr=36064,Wr=16384,xt=function(S,B){var V=1;B.ext_texture_filter_anisotropic&&(V=S.getParameter(wr));var he=1,_e=1;B.webgl_draw_buffers&&(he=S.getParameter(rt),_e=S.getParameter(Vr));var Ae=!!B.oes_texture_float;if(Ae){var we=S.createTexture();S.bindTexture(Pe,we),S.texImage2D(Pe,0,Tr,1,1,0,Tr,tr,null);var We=S.createFramebuffer();if(S.bindFramebuffer(Gr,We),S.framebufferTexture2D(Gr,Yr,Pe,we,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Gr)!==nt)Ae=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(Wr);var ir=j.allocType(tr,4);S.readPixels(0,0,1,1,Tr,tr,ir),S.getError()?Ae=!1:(S.deleteFramebuffer(We),S.deleteTexture(we),Ae=ir[0]===1),j.freeType(ir)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var Jr=S.createTexture(),Fr=j.allocType(sr,36);S.activeTexture(kt),S.bindTexture(or,Jr),S.texImage2D(st,0,Tr,3,3,0,Tr,sr,Fr),j.freeType(Fr),S.bindTexture(or,null),S.deleteTexture(Jr),lr=!S.getError()}return{colorBits:[S.getParameter(le),S.getParameter(Ee),S.getParameter(Ge),S.getParameter(Le)],depthBits:S.getParameter(Ue),stencilBits:S.getParameter(xe),subpixelBits:S.getParameter(se),extensions:Object.keys(B).filter(function(mr){return!!B[mr]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:_e,pointSizeDims:S.getParameter(ur),lineWidthDims:S.getParameter(Oe),maxViewportDims:S.getParameter(xr),maxCombinedTextureUnits:S.getParameter(ne),maxCubeMapSize:S.getParameter(Cr),maxRenderbufferSize:S.getParameter(Ar),maxTextureUnits:S.getParameter(Je),maxTextureSize:S.getParameter(He),maxAttributes:S.getParameter(Ye),maxVertexUniforms:S.getParameter(re),maxVertexTextureUnits:S.getParameter(Re),maxVaryingVectors:S.getParameter(de),maxFragmentUniforms:S.getParameter(Ke),glsl:S.getParameter(at),renderer:S.getParameter(et),vendor:S.getParameter(gr),version:S.getParameter(Hr),readFloat:Ae,npotTextureCube:lr}},jr=function(S){return S instanceof Uint8Array||S instanceof Uint16Array||S instanceof Uint32Array||S instanceof Int8Array||S instanceof Int16Array||S instanceof Int32Array||S instanceof Float32Array||S instanceof Float64Array||S instanceof Uint8ClampedArray};function ot(S){return!!S&&typeof S=="object"&&Array.isArray(S.shape)&&Array.isArray(S.stride)&&typeof S.offset=="number"&&S.shape.length===S.stride.length&&(Array.isArray(S.data)||jr(S.data))}var dr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:wt,flatten:Mt};function Ie(S,B,V){for(var he=0;he0){var Xr;if(Array.isArray(ke[0])){hr=At(ke);for(var Be=1,qe=1;qe0){if(typeof Be[0]=="number"){var fr=j.allocType(ze.dtype,Be.length);di(fr,Be),hr(fr,Er),j.freeType(fr)}else if(Array.isArray(Be[0])||jr(Be[0])){vr=At(Be);var cr=yn(Be,vr,ze.dtype);hr(cr,Er),j.freeType(cr)}}}else if(ot(Be)){vr=Be.shape;var kr=Be.stride,Zr=0,ct=0,yr=0,Dr=0;vr.length===1?(Zr=vr[0],ct=1,yr=kr[0],Dr=0):vr.length===2&&(Zr=vr[0],ct=vr[1],yr=kr[0],Dr=kr[1]);var ft=Array.isArray(Be.data)?ze.dtype:da(Be.data),ut=j.allocType(ft,Zr*ct);Xi(ut,Be.data,Zr,ct,yr,Dr,Be.offset),hr(ut,Er),j.freeType(ut)}return br}return Ze||br(ue),br._reglType="buffer",br._buffer=ze,br.subdata=Xr,V.profile&&(br.stats=ze.stats),br.destroy=function(){Fr(ze)},br}function Ne(){dr(Ae).forEach(function(ue){ue.buffer=S.createBuffer(),S.bindBuffer(ue.type,ue.buffer),S.bufferData(ue.type,ue.persistentData||ue.byteLength,ue.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var ue=0;return Object.keys(Ae).forEach(function(ke){ue+=Ae[ke].stats.size}),ue}),{create:mr,createStream:ir,destroyStream:nr,clear:function(){dr(Ae).forEach(Fr),We.forEach(Fr)},getBuffer:function(ue){return ue&&ue._buffer instanceof we?ue._buffer:null},restore:Ne,_initBuffer:Jr}}var Ya=0,wn=0,An=1,vs=1,Ll=4,ac=4,Go={points:Ya,point:wn,lines:An,line:vs,triangles:Ll,triangle:ac,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Qf=0,Kf=1,Zi=4,pi=5120,zi=5121,Dl=5122,yi=5123,Pt=5124,Jt=5125,fa=34963,_t=35040,Qn=35044;function Ga(S,B,V,he){var _e={},Ae=0,we={uint8:zi,uint16:yi};B.oes_element_index_uint&&(we.uint32=Jt);function We(Ne){this.id=Ae++,_e[this.id]=this,this.buffer=Ne,this.primType=Zi,this.vertCount=0,this.type=0}We.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var ue=ir.pop();return ue||(ue=new We(V.create(null,fa,!0,!1)._buffer)),Jr(ue,Ne,_t,-1,-1,0,0),ue}function lr(Ne){ir.push(Ne)}function Jr(Ne,ue,ke,Ze,ar,ze,br){Ne.buffer.bind();var hr;if(ue){var Xr=br;!br&&(!jr(ue)||ot(ue)&&!jr(ue.data))&&(Xr=B.oes_element_index_uint?Jt:yi),V._initBuffer(Ne.buffer,ue,ke,Xr,3)}else S.bufferData(fa,ze,ke),Ne.buffer.dtype=hr||zi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(hr=br,!br){switch(Ne.buffer.dtype){case zi:case pi:hr=zi;break;case yi:case Dl:hr=yi;break;case Jt:case Pt:hr=Jt;break;default:}Ne.buffer.dtype=hr}Ne.type=hr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,hr===yi?Be>>=1:hr===Jt&&(Be>>=2)),Ne.vertCount=Be;var qe=Ze;if(Ze<0){qe=Zi;var Er=Ne.buffer.dimension;Er===1&&(qe=Qf),Er===2&&(qe=Kf),Er===3&&(qe=Zi)}Ne.primType=qe}function Fr(Ne){he.elementsCount--,delete _e[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function mr(Ne,ue){var ke=V.create(null,fa,!0),Ze=new We(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Ze.primType=Zi,Ze.vertCount=0,Ze.type=zi;else if(typeof ze=="number")ke(ze),Ze.primType=Zi,Ze.vertCount=ze|0,Ze.type=zi;else{var br=null,hr=Qn,Xr=-1,Be=-1,qe=0,Er=0;Array.isArray(ze)||jr(ze)||ot(ze)?br=ze:("data"in ze&&(br=ze.data),"usage"in ze&&(hr=Dn[ze.usage]),"primitive"in ze&&(Xr=Go[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Er=we[ze.type]),"length"in ze?qe=ze.length|0:(qe=Be,Er===yi||Er===Dl?qe*=2:(Er===Jt||Er===Pt)&&(qe*=4))),Jr(Ze,br,hr,Xr,Be,qe,Er)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Ze,ar.subdata=function(ze,br){return ke.subdata(ze,br),ar},ar.destroy=function(){Fr(Ze)},ar}return{create:mr,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof We?Ne._elements:null},clear:function(){dr(_e).forEach(Fr)}}}var In=new Float32Array(1),ra=new Uint32Array(In.buffer),To=5123;function ll(S){for(var B=j.allocType(To,S.length),V=0;V>>31<<15,Ae=(he<<1>>>24)-127,we=he>>13&1023;if(Ae<-24)B[V]=_e;else if(Ae<-14){var We=-14-Ae;B[V]=_e+(we+1024>>We)}else Ae>15?B[V]=_e+31744:B[V]=_e+(Ae+15<<10)+we}return B}function Ci(S){return Array.isArray(S)||jr(S)}var n1=34467,Tn=3553,Rl=34067,Uo=34069,mi=6408,nf=6406,Ho=6407,Mo=6409,Fl=6410,nc=32854,Vo=32855,hs=36194,I0=32819,i1=32820,ic=33635,Bv=34042,ds=6402,ql=34041,Yo=35904,So=35906,gi=36193,of=33776,ps=33777,sl=33778,lf=33779,zv=35986,oc=35987,eu=34798,Gv=35840,Uv=35841,lc=35842,Hv=35843,sc=36196,Eo=5121,sf=5123,ru=5125,Gi=5126,ff=10242,o1=10243,l1=10497,tu=33071,O0=33648,au=10240,s1=10241,Pl=9728,fc=9729,ys=9984,uf=9985,ms=9986,fl=9987,B0=33170,ul=4352,f1=4353,uc=4354,u1=34046,c1=3317,v1=37440,z0=37441,nu=37443,Vv=37444,ko=33984,G0=[ys,ms,uf,fl],Li=[0,Mo,Fl,Ho,mi],Mn={};Mn[Mo]=Mn[nf]=Mn[ds]=1,Mn[ql]=Mn[Fl]=2,Mn[Ho]=Mn[Yo]=3,Mn[mi]=Mn[So]=4;function $i(S){return"[object "+S+"]"}var iu=$i("HTMLCanvasElement"),cl=$i("OffscreenCanvas"),cf=$i("CanvasRenderingContext2D"),cc=$i("ImageBitmap"),Yv=$i("HTMLImageElement"),Wv=$i("HTMLVideoElement"),h1=Object.keys(Nt).concat([iu,cl,cf,cc,Yv,Wv]),co=[];co[Eo]=1,co[Gi]=4,co[gi]=2,co[sf]=2,co[ru]=4;var Aa=[];Aa[nc]=2,Aa[Vo]=2,Aa[hs]=2,Aa[ql]=4,Aa[of]=.5,Aa[ps]=.5,Aa[sl]=1,Aa[lf]=1,Aa[zv]=.5,Aa[oc]=1,Aa[eu]=1,Aa[Gv]=.5,Aa[Uv]=.25,Aa[lc]=.5,Aa[Hv]=.25,Aa[sc]=.5;function jv(S){return Array.isArray(S)&&(S.length===0||typeof S[0]=="number")}function Xv(S){if(!Array.isArray(S))return!1;var B=S.length;return!(B===0||!Ci(S[0]))}function Ji(S){return Object.prototype.toString.call(S)}function Zv(S){return Ji(S)===iu}function $v(S){return Ji(S)===cl}function d1(S){return Ji(S)===cf}function p1(S){return Ji(S)===cc}function y1(S){return Ji(S)===Yv}function m1(S){return Ji(S)===Wv}function ou(S){if(!S)return!1;var B=Ji(S);return h1.indexOf(B)>=0?!0:jv(S)||Xv(S)||ot(S)}function Jv(S){return Nt[Object.prototype.toString.call(S)]|0}function g1(S,B){var V=B.length;switch(S.type){case Eo:case sf:case ru:case Gi:var he=j.allocType(S.type,V);he.set(B),S.data=he;break;case gi:S.data=ll(B);break;default:}}function Qv(S,B){return j.allocType(S.type===gi?Gi:S.type,B)}function vc(S,B){S.type===gi?(S.data=ll(B),j.freeType(B)):S.data=B}function U0(S,B,V,he,_e,Ae){for(var we=S.width,We=S.height,ir=S.channels,nr=we*We*ir,lr=Qv(S,nr),Jr=0,Fr=0;Fr=1;)We+=we*ir*ir,ir/=2;return We}else return we*V*he}function H0(S,B,V,he,_e,Ae,we){var We={"don't care":ul,"dont care":ul,nice:uc,fast:f1},ir={repeat:l1,clamp:tu,mirror:O0},nr={nearest:Pl,linear:fc},lr=e({mipmap:fl,"nearest mipmap nearest":ys,"linear mipmap nearest":uf,"nearest mipmap linear":ms,"linear mipmap linear":fl},nr),Jr={none:0,browser:Vv},Fr={uint8:Eo,rgba4:I0,rgb565:ic,"rgb5 a1":i1},mr={alpha:nf,luminance:Mo,"luminance alpha":Fl,rgb:Ho,rgba:mi,rgba4:nc,"rgb5 a1":Vo,rgb565:hs},Ne={};B.ext_srgb&&(mr.srgb=Yo,mr.srgba=So),B.oes_texture_float&&(Fr.float32=Fr.float=Gi),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=gi),B.webgl_depth_texture&&(e(mr,{depth:ds,"depth stencil":ql}),e(Fr,{uint16:sf,uint32:ru,"depth stencil":Bv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":of,"rgba s3tc dxt1":ps,"rgba s3tc dxt3":sl,"rgba s3tc dxt5":lf}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":zv,"rgba atc explicit alpha":oc,"rgba atc interpolated alpha":eu}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Gv,"rgb pvrtc 2bppv1":Uv,"rgba pvrtc 4bppv1":lc,"rgba pvrtc 2bppv1":Hv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=sc);var ue=Array.prototype.slice.call(S.getParameter(n1));Object.keys(Ne).forEach(function(z){var ye=Ne[z];ue.indexOf(ye)>=0&&(mr[z]=ye)});var ke=Object.keys(mr);V.textureFormats=ke;var Ze=[];Object.keys(mr).forEach(function(z){var ye=mr[z];Ze[ye]=z});var ar=[];Object.keys(Fr).forEach(function(z){var ye=Fr[z];ar[ye]=z});var ze=[];Object.keys(nr).forEach(function(z){var ye=nr[z];ze[ye]=z});var br=[];Object.keys(lr).forEach(function(z){var ye=lr[z];br[ye]=z});var hr=[];Object.keys(ir).forEach(function(z){var ye=ir[z];hr[ye]=z});var Xr=ke.reduce(function(z,ye){var be=mr[ye];return be===Mo||be===nf||be===Mo||be===Fl||be===ds||be===ql||B.ext_srgb&&(be===Yo||be===So)?z[be]=be:be===Vo||ye.indexOf("rgba")>=0?z[be]=mi:z[be]=Ho,z},{});function Be(){this.internalformat=mi,this.format=mi,this.type=Eo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Vv,this.width=0,this.height=0,this.channels=0}function qe(z,ye){z.internalformat=ye.internalformat,z.format=ye.format,z.type=ye.type,z.compressed=ye.compressed,z.premultiplyAlpha=ye.premultiplyAlpha,z.flipY=ye.flipY,z.unpackAlignment=ye.unpackAlignment,z.colorSpace=ye.colorSpace,z.width=ye.width,z.height=ye.height,z.channels=ye.channels}function Er(z,ye){if(!(typeof ye!="object"||!ye)){if("premultiplyAlpha"in ye&&(z.premultiplyAlpha=ye.premultiplyAlpha),"flipY"in ye&&(z.flipY=ye.flipY),"alignment"in ye&&(z.unpackAlignment=ye.alignment),"colorSpace"in ye&&(z.colorSpace=Jr[ye.colorSpace]),"type"in ye){var be=ye.type;z.type=Fr[be]}var Nr=z.width,Rt=z.height,Ht=z.channels,qr=!1;"shape"in ye?(Nr=ye.shape[0],Rt=ye.shape[1],ye.shape.length===3&&(Ht=ye.shape[2],qr=!0)):("radius"in ye&&(Nr=Rt=ye.radius),"width"in ye&&(Nr=ye.width),"height"in ye&&(Rt=ye.height),"channels"in ye&&(Ht=ye.channels,qr=!0)),z.width=Nr|0,z.height=Rt|0,z.channels=Ht|0;var I=!1;if("format"in ye){var U=ye.format,J=z.internalformat=mr[U];z.format=Xr[J],U in Fr&&("type"in ye||(z.type=Fr[U])),U in Ne&&(z.compressed=!0),I=!0}!qr&&I?z.channels=Mn[z.format]:qr&&!I&&z.channels!==Li[z.format]&&(z.format=z.internalformat=Li[z.channels])}}function vr(z){S.pixelStorei(v1,z.flipY),S.pixelStorei(z0,z.premultiplyAlpha),S.pixelStorei(nu,z.colorSpace),S.pixelStorei(c1,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function cr(z,ye){var be=null;if(ou(ye)?be=ye:ye&&(Er(z,ye),"x"in ye&&(z.xOffset=ye.x|0),"y"in ye&&(z.yOffset=ye.y|0),ou(ye.data)&&(be=ye.data)),ye.copy){var Nr=_e.viewportWidth,Rt=_e.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Rt-z.yOffset,z.needsCopy=!0}else if(!be)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(jr(be))z.channels=z.channels||4,z.data=be,!("type"in ye)&&z.type===Eo&&(z.type=Jv(be));else if(jv(be))z.channels=z.channels||4,g1(z,be),z.alignment=1,z.needsFree=!0;else if(ot(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===Eo&&(z.type=Jv(Ht));var qr=be.shape,I=be.stride,U,J,pe,Te,ce,fe;qr.length===3?(pe=qr[2],fe=I[2]):(pe=1,fe=1),U=qr[0],J=qr[1],Te=I[0],ce=I[1],z.alignment=1,z.width=U,z.height=J,z.channels=pe,z.format=z.internalformat=Li[pe],z.needsFree=!0,U0(z,Ht,Te,ce,fe,be.offset)}else if(Zv(be)||$v(be)||d1(be))Zv(be)||$v(be)?z.element=be:z.element=be.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(p1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(y1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(m1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Xv(be)){var ae=z.width||be[0].length,X=z.height||be.length,K=z.channels;Ci(be[0][0])?K=K||be[0][0].length:K=K||1;for(var Y=Se.shape(be),ve=1,Ce=0;Ce>=Rt,be.height>>=Rt,cr(be,Nr[Rt]),z.mipmask|=1<=0&&!("faces"in ye)&&(z.genMipmaps=!0)}if("mag"in ye){var Nr=ye.mag;z.magFilter=nr[Nr]}var Rt=z.wrapS,Ht=z.wrapT;if("wrap"in ye){var qr=ye.wrap;typeof qr=="string"?Rt=Ht=ir[qr]:Array.isArray(qr)&&(Rt=ir[qr[0]],Ht=ir[qr[1]])}else{if("wrapS"in ye){var I=ye.wrapS;Rt=ir[I]}if("wrapT"in ye){var U=ye.wrapT;Ht=ir[U]}}if(z.wrapS=Rt,z.wrapT=Ht,"anisotropic"in ye){var J=ye.anisotropic;z.anisotropic=ye.anisotropic}if("mipmap"in ye){var pe=!1;switch(typeof ye.mipmap){case"string":z.mipmapHint=We[ye.mipmap],z.genMipmaps=!0,pe=!0;break;case"boolean":pe=z.genMipmaps=ye.mipmap;break;case"object":z.genMipmaps=!1,pe=!0;break;default:}pe&&!("min"in ye)&&(z.minFilter=ys)}}function Xa(z,ye){S.texParameteri(ye,s1,z.minFilter),S.texParameteri(ye,au,z.magFilter),S.texParameteri(ye,ff,z.wrapS),S.texParameteri(ye,o1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(ye,u1,z.anisotropic),z.genMipmaps&&(S.hint(B0,z.mipmapHint),S.generateMipmap(ye))}var nn=0,ba={},xa=V.maxTextureUnits,ka=Array(xa).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=mi,this.id=nn++,this.refCount=1,this.target=z,this.texture=S.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,we.profile&&(this.stats={size:0})}function Fa(z){S.activeTexture(ko),S.bindTexture(z.target,z.texture)}function Wt(){var z=ka[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(Tn,null)}function Za(z){var ye=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(ko+be),S.bindTexture(Nr,null),ka[be]=null),S.deleteTexture(ye),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ba[z.id],Ae.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var ye=z.unit;if(ye<0){for(var be=0;be0)continue;Nr.unit=-1}ka[be]=z,ye=be;break}ye>=xa,we.profile&&Ae.maxTextureUnits>ce)-pe,fe.height=fe.height||(be.height>>ce)-Te,Fa(be),Zr(fe,Tn,pe,Te,ce),Wt(),Dr(fe),Nr}function Ht(qr,I){var U=qr|0,J=I|0||U;if(U===be.width&&J===be.height)return Nr;Nr.width=be.width=U,Nr.height=be.height=J,Fa(be);for(var pe=0;be.mipmask>>pe;++pe){var Te=U>>pe,ce=J>>pe;if(!Te||!ce)break;S.texImage2D(Tn,pe,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),we.profile&&(be.stats.size=Nl(be.internalformat,be.type,U,J,!1,!1)),Nr}return Nr(z,ye),Nr.subimage=Rt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=be,we.profile&&(Nr.stats=be.stats),Nr.destroy=function(){be.decRef()},Nr}function ln(z,ye,be,Nr,Rt,Ht){var qr=new Tt(Rl);ba[qr.id]=qr,Ae.cubeCount++;var I=new Array(6);function U(Te,ce,fe,ae,X,K){var Y,ve=qr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)I[Y]=Dt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ut(I[Y],Ce,Ce)}else if(typeof Te=="object")if(ce)Et(I[0],Te),Et(I[1],ce),Et(I[2],fe),Et(I[3],ae),Et(I[4],X),Et(I[5],K);else if(Ha(ve,Te),Er(qr,Te),"faces"in Te){var $e=Te.faces;for(Y=0;Y<6;++Y)qe(I[Y],qr),Et(I[Y],$e[Y])}else for(Y=0;Y<6;++Y)Et(I[Y],Te);for(qe(qr,I[0]),ve.genMipmaps?qr.mipmask=(I[0].width<<1)-1:qr.mipmask=I[0].mipmask,qr.internalformat=I[0].internalformat,U.width=I[0].width,U.height=I[0].height,Fa(qr),Y=0;Y<6;++Y)aa(I[Y],Uo+Y);for(Xa(ve,Rl),Wt(),we.profile&&(qr.stats.size=Nl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Ze[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=br[ve.minFilter],U.wrapS=hr[ve.wrapS],U.wrapT=hr[ve.wrapT],Y=0;Y<6;++Y)an(I[Y]);return U}function J(Te,ce,fe,ae,X){var K=fe|0,Y=ae|0,ve=X|0,Ce=yr();return qe(Ce,qr),Ce.width=0,Ce.height=0,cr(Ce,ce),Ce.width=Ce.width||(qr.width>>ve)-K,Ce.height=Ce.height||(qr.height>>ve)-Y,Fa(qr),Zr(Ce,Uo+Te,K,Y,ve),Wt(),Dr(Ce),U}function pe(Te){var ce=Te|0;if(ce!==qr.width){U.width=qr.width=ce,U.height=qr.height=ce,Fa(qr);for(var fe=0;fe<6;++fe)for(var ae=0;qr.mipmask>>ae;++ae)S.texImage2D(Uo+fe,ae,qr.format,ce>>ae,ce>>ae,0,qr.format,qr.type,null);return Wt(),we.profile&&(qr.stats.size=Nl(qr.internalformat,qr.type,U.width,U.height,!1,!0)),U}}return U(z,ye,be,Nr,Rt,Ht),U.subimage=J,U.resize=pe,U._reglType="textureCube",U._texture=qr,we.profile&&(U.stats=qr.stats),U.destroy=function(){qr.decRef()},U}function yt(){for(var z=0;z>Nr,be.height>>Nr,0,be.internalformat,be.type,null);else for(var Rt=0;Rt<6;++Rt)S.texImage2D(Uo+Rt,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Xa(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?an=!0:ir.indexOf(Ut)>=0&&(an=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(ka=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(nn=Tt.depth,Ea=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ea=Tt.stencil:(ba=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ea=Tt.depthStencil:(xa=Tt.depthStencil,aa=!1,Ea=!1))}var Wt=null,Za=null,on=null,ln=null;if(Array.isArray(Dt))Wt=Dt.map(Ne);else if(Dt)Wt=[Ne(Dt)];else for(Wt=new Array(Xa),ft=0;ft0&&(Dr.depth=cr[0].depth,Dr.stencil=cr[0].stencil,Dr.depthStencil=cr[0].depthStencil),cr[yr]?cr[yr](Dr):cr[yr]=qe(Dr)}return e(kr,{width:ft,height:ft,color:Ut})}function Zr(ct){var yr,Dr=ct|0;if(Dr===kr.width)return kr;var ft=kr.color;for(yr=0;yr=ft.byteLength?ut.subdata(ft):(ut.destroy(),qe.buffers[ct]=null)),qe.buffers[ct]||(ut=qe.buffers[ct]=_e.create(yr,uh,!1,!0)),Dr.buffer=_e.getBuffer(ut),Dr.size=Dr.buffer.dimension|0,Dr.normalized=!1,Dr.type=Dr.buffer.dtype,Dr.offset=0,Dr.stride=0,Dr.divisor=0,Dr.state=1,kr[ct]=1}else _e.getBuffer(yr)?(Dr.buffer=_e.getBuffer(yr),Dr.size=Dr.buffer.dimension|0,Dr.normalized=!1,Dr.type=Dr.buffer.dtype,Dr.offset=0,Dr.stride=0,Dr.divisor=0,Dr.state=1):_e.getBuffer(yr.buffer)?(Dr.buffer=_e.getBuffer(yr.buffer),Dr.size=(+yr.size||Dr.buffer.dimension)|0,Dr.normalized=!!yr.normalized||!1,"type"in yr?Dr.type=un[yr.type]:Dr.type=Dr.buffer.dtype,Dr.offset=(yr.offset||0)|0,Dr.stride=(yr.stride||0)|0,Dr.divisor=(yr.divisor||0)|0,Dr.state=1):"x"in yr&&(Dr.x=+yr.x||0,Dr.y=+yr.y||0,Dr.z=+yr.z||0,Dr.w=+yr.w||0,Dr.state=2)}for(var Et=0;Et1)for(var vr=0;vrue&&(ue=ke.stats.uniformsCount)}),ue},V.getMaxAttributesCount=function(){var ue=0;return lr.forEach(function(ke){ke.stats.attributesCount>ue&&(ue=ke.stats.attributesCount)}),ue});function Ne(){_e={},Ae={};for(var ue=0;ue16&&(V=vl(V,S.length*8));for(var he=Array(16),_e=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=V[Ae]^909522486,_e[Ae]=V[Ae]^1549556828;var we=vl(he.concat(uu(B)),512+B.length*8);return dh(vl(_e.concat(we),768))}function X0(S){for(var B=W0?"0123456789ABCDEF":"0123456789abcdef",V="",he,_e=0;_e>>4&15)+B.charAt(he&15);return V}function R1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=S.length,_e=0;_eS.length*8?V+=L1:V+=B.charAt(Ae>>>6*(3-we)&63);return V}function F1(S,B){var V=B.length,he=Array(),_e,Ae,we,We,ir=Array(Math.ceil(S.length/2));for(_e=0;_e0;){for(We=Array(),we=0,_e=0;_e0||Ae>0)&&(We[We.length]=Ae);he[he.length]=we,ir=We}var nr="";for(_e=he.length-1;_e>=0;_e--)nr+=B.charAt(he[_e]);var lr=Math.ceil(S.length*8/(Math.log(B.length)/Math.log(2)));for(_e=nr.length;_e>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function uu(S){for(var B=Array(S.length>>2),V=0;V>5]|=(S.charCodeAt(V/8)&255)<<24-V%32;return B}function dh(S){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function Gn(S,B){return S>>>B|S<<32-B}function ph(S,B){return S>>>B}function Z0(S,B,V){return S&B^~S&V}function $0(S,B,V){return S&B^S&V^B&V}function yh(S){return Gn(S,2)^Gn(S,13)^Gn(S,22)}function J0(S){return Gn(S,6)^Gn(S,11)^Gn(S,25)}function yc(S){return Gn(S,7)^Gn(S,18)^ph(S,3)}function mc(S){return Gn(S,17)^Gn(S,19)^ph(S,10)}var P1=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function vl(S,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),_e,Ae,we,We,ir,nr,lr,Jr,Fr,mr,Ne,ue;for(S[B>>5]|=128<<24-B%32,S[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function Lo(S){return Array.prototype.slice.call(S)}function Do(S){return Lo(S).join("")}function Q0(S){var B=S&&S.cache,V=0,he=[],_e=[],Ae=[];function we(Ne,ue){var ke=ue&&ue.stable;if(!ke){for(var Ze=0;Ze<_e.length;++Ze)if(_e[Ze]===Ne&&!Ae[Ze])return he[Ze]}var ar="g"+V++;return he.push(ar),_e.push(Ne),Ae.push(ke),ar}function We(){var Ne=[];function ue(){Ne.push.apply(Ne,Lo(arguments))}var ke=[];function Ze(){var ar="v"+V++;return ke.push(ar),arguments.length>0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Lo(arguments)),Ne.push(";")),ar}return e(ue,{def:Ze,toString:function(){return Do([ke.length>0?"var "+ke.join(",")+";":"",Do(Ne)])}})}function ir(){var Ne=We(),ue=We(),ke=Ne.toString,Ze=ue.toString;function ar(ze,br){ue(ze,br,"=",Ne.def(ze,br),";")}return e(function(){Ne.apply(Ne,Lo(arguments))},{def:Ne.def,entry:Ne,exit:ue,save:ar,set:function(ze,br,hr){ar(ze,br),Ne(ze,br,"=",hr,";")},toString:function(){return ke()+Ze()}})}function nr(){var Ne=Do(arguments),ue=ir(),ke=ir(),Ze=ue.toString,ar=ke.toString;return e(ue,{then:function(){return ue.apply(ue,Lo(arguments)),this},else:function(){return ke.apply(ke,Lo(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Do(["if(",Ne,"){",Ze(),"}",ze])}})}var lr=We(),Jr={};function Fr(Ne,ue){var ke=[];function Ze(){var Xr="a"+ke.length;return ke.push(Xr),Xr}ue=ue||0;for(var ar=0;ar":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Re={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},He={cw:w,ccw:C};function er(S){return Array.isArray(S)||jr(S)||ot(S)}function rr(S){return S.sort(function(B,V){return B===si?-1:V===si?1:B=1,he>=2,B)}else if(V===Ts){var xe=S.data;return new De(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(V===xc)return new De(!1,!1,!1,B);if(V===pf){for(var Ae=!1,_e=!1,We=!1,ir=0;ir=1&&(_e=!0),lr>=2&&(We=!0)}else nr.type===Ts&&(Ae=Ae||nr.data.thisDep,_e=_e||nr.data.contextDep,We=We||nr.data.propDep)}return new De(Ae,_e,We,B)}else return new De(V===df,V===bc,V===hf,B)}}var yt=new De(!1,!1,!1,function(){});function Ct(S,B,V,he,xe,Ae,_e,We,ir,nr,lr,$r,Rr,yr,Ne,ue){var ke=nr.Record,Ze={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Ze.min=L,Ze.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,br=V.oes_vertex_array_object,hr={dirty:!0,profile:ue.profile},Xr={},Be=[],qe={},Er={};function vr(I){return I.replace(".","_")}function fr(I,U,$){var pe=vr(I);Be.push(I),Xr[pe]=hr[pe]=!!$,qe[pe]=U}function cr(I,U,$){var pe=vr(I);Be.push(I),Array.isArray($)?(hr[pe]=$.slice(),Xr[pe]=$.slice()):hr[pe]=Xr[pe]=$,Er[pe]=U}function kr(I){return!!isNaN(I)}fr(_c,O1),fr(yh,I1),cr(gh,"blendColor",[0,0,0,0]),cr(vu,"blendEquationSeparate",[oe,oe]),cr(hu,"blendFuncSeparate",[ie,Z,ie,Z]),fr(wc,ed,!0),cr(Ac,"depthFunc",ye),cr(Tc,"depthRange",[0,1]),cr(Mc,"depthMask",!0),cr(du,du,[!0,!0,!0,!0]),fr(mf,K0),cr(bh,"cullFace",g),cr(pu,pu,C),cr(yf,yf,1),fr(Sc,Lc),cr(mu,"polygonOffset",[0,0]),fr(gf,td),fr(bf,Dc),cr(xf,"sampleCoverage",[1,!1]),fr(Ec,B1),cr(yu,"stencilMask",-1),cr(Fi,"stencilFunc",[G,0,-1]),cr(_f,"stencilOpSeparate",[h,q,q,q]),cr(hl,"stencilOpSeparate",[g,q,q,q]),fr(gu,rd),cr(dl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),cr(si,si,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var Zr={gl:S,context:Rr,strings:B,next:Xr,current:hr,draw:$r,elements:Ae,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:We,extensions:V,timer:yr,isBufferArgs:er},ct={primTypes:Go,compareFuncs:Me,blendFuncs:Qe,blendEquations:Ze,stencilOps:Re,glTypes:un,orientationType:He};ze&&(ct.backBuffer=[g],ct.drawBuffer=k(he.maxDrawbuffers,function(I){return I===0?[0]:k(I,function(U){return Xe+U})}));var mr=0;function Dr(){var I=$0({cache:Ne}),U=I.link,$=I.global;I.id=mr++,I.batchId="0";var pe=U(Zr),Te=I.shared={props:"a0"};Object.keys(Zr).forEach(function(K){Te[K]=$.def(pe,".",K)});var ce=I.next={},fe=I.current={};Object.keys(Er).forEach(function(K){Array.isArray(hr[K])&&(ce[K]=$.def(Te.next,".",K),fe[K]=$.def(Te.current,".",K))});var ae=I.constants={};Object.keys(ct).forEach(function(K){ae[K]=$.def(JSON.stringify(ct[K]))}),I.invoke=function(K,Y){switch(Y.type){case cu:var ve=["this",Te.context,Te.props,I.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case hf:return K.def(Te.props,Y.data);case bc:return K.def(Te.context,Y.data);case df:return K.def("this",Y.data);case Ts:return Y.data.append(I,K),Y.data.ref;case xc:return Y.data.toString();case pf:return Y.data.map(function(Ce){return I.invoke(K,Ce)})}},I.attribCache={};var X={};return I.scopeAttrib=function(K){var Y=B.id(K);if(Y in X)return X[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=X[Y]=U(ve);return Ce},I}function ft(I){var U=I.static,$=I.dynamic,pe;if(Ms in U){var Te=!!U[Ms];pe=Br(function(fe,ae){return Te}),pe.enable=Te}else if(Ms in $){var ce=$[Ms];pe=it(ce,function(fe,ae){return fe.invoke(ae,ce)})}return pe}function ut(I,U){var $=I.static,pe=I.dynamic;if(Fo in $){var Te=$[Fo];return Te?(Te=We.getFramebuffer(Te),Br(function(fe,ae){var X=fe.link(Te),K=fe.shared;ae.set(K.framebuffer,".next",X);var Y=K.context;return ae.set(Y,"."+Ki,X+".width"),ae.set(Y,"."+eo,X+".height"),X})):Br(function(fe,ae){var X=fe.shared;ae.set(X.framebuffer,".next","null");var K=X.context;return ae.set(K,"."+Ki,K+"."+kc),ae.set(K,"."+eo,K+"."+Cc),"null"})}else if(Fo in pe){var ce=pe[Fo];return it(ce,function(fe,ae){var X=fe.invoke(ae,ce),K=fe.shared,Y=K.framebuffer,ve=ae.def(Y,".getFramebuffer(",X,")");ae.set(Y,".next",ve);var Ce=K.context;return ae.set(Ce,"."+Ki,ve+"?"+ve+".width:"+Ce+"."+kc),ae.set(Ce,"."+eo,ve+"?"+ve+".height:"+Ce+"."+Cc),ve})}else return null}function Et(I,U,$){var pe=I.static,Te=I.dynamic;function ce(X){if(X in pe){var K=pe[X],Y=!0,ve=K.x|0,Ce=K.y|0,Je,Kr;return"width"in K?Je=K.width|0:Y=!1,"height"in K?Kr=K.height|0:Y=!1,new De(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function(Jr,Gr){var Or=Jr.shared.context,Sr=Je;"width"in K||(Sr=Gr.def(Or,".",Ki,"-",ve));var Pr=Kr;return"height"in K||(Pr=Gr.def(Or,".",eo,"-",Ce)),[ve,Ce,Sr,Pr]})}else if(X in Te){var Lr=Te[X],Mr=it(Lr,function(Jr,Gr){var Or=Jr.invoke(Gr,Lr),Sr=Jr.shared.context,Pr=Gr.def(Or,".x|0"),Ir=Gr.def(Or,".y|0"),vt=Gr.def('"width" in ',Or,"?",Or,".width|0:","(",Sr,".",Ki,"-",Pr,")"),Kt=Gr.def('"height" in ',Or,"?",Or,".height|0:","(",Sr,".",eo,"-",Ir,")");return[Pr,Ir,vt,Kt]});return U&&(Mr.thisDep=Mr.thisDep||U.thisDep,Mr.contextDep=Mr.contextDep||U.contextDep,Mr.propDep=Mr.propDep||U.propDep),Mr}else return U?new De(U.thisDep,U.contextDep,U.propDep,function(Jr,Gr){var Or=Jr.shared.context;return[0,0,Gr.def(Or,".",Ki),Gr.def(Or,".",eo)]}):null}var fe=ce(si);if(fe){var ae=fe;fe=new De(fe.thisDep,fe.contextDep,fe.propDep,function(X,K){var Y=ae.append(X,K),ve=X.shared.context;return K.set(ve,"."+P1,Y[2]),K.set(ve,"."+N1,Y[3]),Y})}return{viewport:fe,scissor_box:ce(dl)}}function aa(I,U){var $=I.static,pe=typeof $[pl]=="string"&&typeof $[jo]=="string";if(pe){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ce=Object.keys(Te);if(ce.length>0&&typeof Te[ce[0]]=="number"){for(var fe=[],ae=0;ae"+Pr+"?"+Y+".constant["+Pr+"]:0;"}).join(""),"}}else{","if(",Je,"(",Y,".buffer)){",Jr,"=",Kr,".createStream(",mo,",",Y,".buffer);","}else{",Jr,"=",Kr,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",Jr,".dtype;",Lr.normalized,"=!!",Y,".normalized;");function Or(Sr){K(Lr[Sr],"=",Y,".",Sr,"|0;")}return Or("size"),Or("offset"),Or("stride"),Or("divisor"),K("}}"),K.exit("if(",Lr.isStream,"){",Kr,".destroyStream(",Jr,");","}"),Lr}Te[ce]=it(fe,ae)}),Te}function Xa(I){var U=I.static,$=I.dynamic,pe={};return Object.keys(U).forEach(function(Te){var ce=U[Te];pe[Te]=Br(function(fe,ae){return typeof ce=="number"||typeof ce=="boolean"?""+ce:fe.link(ce)})}),Object.keys($).forEach(function(Te){var ce=$[Te];pe[Te]=it(ce,function(fe,ae){return fe.invoke(ae,ce)})}),pe}function nn(I,U,$,pe,Te){var ce=I.static,fe=I.dynamic,ae=aa(I,U),X=ut(I,Te),K=Et(I,X,Te),Y=Dt(I,Te),ve=an(I,Te),Ce=Ea(I,Te,ae);function Je(Or){var Sr=K[Or];Sr&&(ve[Or]=Sr)}Je(si),Je(vr(dl));var Kr=Object.keys(ve).length>0,Lr={framebuffer:X,draw:Y,shader:Ce,state:ve,dirty:Kr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Lr.profile=ft(I,Te),Lr.uniforms=Ut($,Te),Lr.drawVAO=Lr.scopeVAO=Y.vao,!Lr.drawVAO&&Ce.program&&!ae&&V.angle_instanced_arrays&&Y.static.elements){var Mr=!0,Jr=Ce.program.attributes.map(function(Or){var Sr=U.static[Or];return Mr=Mr&&!!Sr,Sr});if(Mr&&Jr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Jr,elements:Y.static.elements}));Lr.drawVAO=new De(null,null,null,function(Or,Sr){return Or.link(Gr)}),Lr.useVAO=!0}}return ae?Lr.useVAO=!0:Lr.attributes=Ha(U,Te),Lr.context=Xa(pe,Te),Lr}function ga(I,U,$){var pe=I.shared,Te=pe.context,ce=I.scope();Object.keys($).forEach(function(fe){U.save(Te,"."+fe);var ae=$[fe],X=ae.append(I,U);Array.isArray(X)?ce(Te,".",fe,"=[",X.join(),"];"):ce(Te,".",fe,"=",X,";")}),U(ce)}function ba(I,U,$,pe){var Te=I.shared,ce=Te.gl,fe=Te.framebuffer,ae;ze&&(ae=U.def(Te.extensions,".webgl_draw_buffers"));var X=I.constants,K=X.drawBuffer,Y=X.backBuffer,ve;$?ve=$.append(I,U):ve=U.def(fe,".next"),pe||U("if(",ve,"!==",fe,".cur){"),U("if(",ve,"){",ce,".bindFramebuffer(",ge,",",ve,".framebuffer);"),ze&&U(ae,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(ae,".drawBuffersWEBGL(",Y,");"),U("}",fe,".cur=",ve,";"),pe||U("}")}function ka(I,U,$){var pe=I.shared,Te=pe.gl,ce=I.current,fe=I.next,ae=pe.current,X=pe.next,K=I.cond(ae,".dirty");Be.forEach(function(Y){var ve=vr(Y);if(!(ve in $.state)){var Ce,Je;if(ve in fe){Ce=fe[ve],Je=ce[ve];var Kr=k(hr[ve].length,function(Mr){return K.def(Ce,"[",Mr,"]")});K(I.cond(Kr.map(function(Mr,Jr){return Mr+"!=="+Je+"["+Jr+"]"}).join("||")).then(Te,".",Er[ve],"(",Kr,");",Kr.map(function(Mr,Jr){return Je+"["+Jr+"]="+Mr}).join(";"),";"))}else{Ce=K.def(X,".",ve);var Lr=I.cond(Ce,"!==",ae,".",ve);K(Lr),ve in qe?Lr(I.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),ae,".",ve,"=",Ce,";"):Lr(Te,".",Er[ve],"(",Ce,");",ae,".",ve,"=",Ce,";")}}}),Object.keys($.state).length===0&&K(ae,".dirty=false;"),U(K)}function Tt(I,U,$,pe){var Te=I.shared,ce=I.current,fe=Te.current,ae=Te.gl,X;rr(Object.keys($)).forEach(function(K){var Y=$[K];if(!(pe&&!pe(Y))){var ve=Y.append(I,U);if(qe[K]){var Ce=qe[K];Fr(Y)?(X=I.link(ve,{stable:!0}),U(I.cond(X).then(ae,".enable(",Ce,");").else(ae,".disable(",Ce,");")),U(fe,".",K,"=",X,";")):(U(I.cond(ve).then(ae,".enable(",Ce,");").else(ae,".disable(",Ce,");")),U(fe,".",K,"=",ve,";"))}else if(Ci(ve)){var Je=ce[K];U(ae,".",Er[K],"(",ve,");",ve.map(function(Kr,Lr){return Je+"["+Lr+"]="+Kr}).join(";"),";")}else Fr(Y)?(X=I.link(ve,{stable:!0}),U(ae,".",Er[K],"(",X,");",fe,".",K,"=",X,";")):U(ae,".",Er[K],"(",ve,");",fe,".",K,"=",ve,";")}})}function Ra(I,U){ar&&(I.instancing=U.def(I.shared.extensions,".angle_instanced_arrays"))}function Wt(I,U,$,pe,Te){var ce=I.shared,fe=I.stats,ae=ce.current,X=ce.timer,K=$.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function Je(Or){ve=U.def(),Or(ve,"=",Y(),";"),typeof Te=="string"?Or(fe,".count+=",Te,";"):Or(fe,".count++;"),yr&&(pe?(Ce=U.def(),Or(Ce,"=",X,".getNumPendingQueries();")):Or(X,".beginQuery(",fe,");"))}function Kr(Or){Or(fe,".cpuTime+=",Y(),"-",ve,";"),yr&&(pe?Or(X,".pushScopeStats(",Ce,",",X,".getNumPendingQueries(),",fe,");"):Or(X,".endQuery();"))}function Lr(Or){var Sr=U.def(ae,".profile");U(ae,".profile=",Or,";"),U.exit(ae,".profile=",Sr,";")}var Mr;if(K){if(Fr(K)){K.enable?(Je(U),Kr(U.exit),Lr("true")):Lr("false");return}Mr=K.append(I,U),Lr(Mr)}else Mr=U.def(ae,".profile");var Jr=I.block();Je(Jr),U("if(",Mr,"){",Jr,"}");var Gr=I.block();Kr(Gr),U.exit("if(",Mr,"){",Gr,"}")}function Za(I,U,$,pe,Te){var ce=I.shared;function fe(X){switch(X){case ml:case Bl:case zl:return 2;case tn:case Ss:case Tf:return 3;case Af:case _u:case Au:return 4;default:return 1}}function ae(X,K,Y){var ve=ce.gl,Ce=U.def(X,".location"),Je=U.def(ce.attributes,"[",Ce,"]"),Kr=Y.state,Lr=Y.buffer,Mr=[Y.x,Y.y,Y.z,Y.w],Jr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",Je,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Sr=Y.type,Pr;if(Y.size?Pr=U.def(Y.size,"||",K):Pr=K,U("if(",Je,".type!==",Sr,"||",Je,".size!==",Pr,"||",Jr.map(function(vt){return Je+"."+vt+"!=="+Y[vt]}).join("||"),"){",ve,".bindBuffer(",mo,",",Lr,".buffer);",ve,".vertexAttribPointer(",[Ce,Pr,Sr,Y.normalized,Y.stride,Y.offset],");",Je,".type=",Sr,";",Je,".size=",Pr,";",Jr.map(function(vt){return Je+"."+vt+"="+Y[vt]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",Je,".divisor!==",Ir,"){",I.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",Je,".divisor=",Ir,";}")}}function Or(){U("if(",Je,".buffer){",ve,".disableVertexAttribArray(",Ce,");",Je,".buffer=null;","}if(",vo.map(function(Sr,Pr){return Je+"."+Sr+"!=="+Mr[Pr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Mr,");",vo.map(function(Sr,Pr){return Je+"."+Sr+"="+Mr[Pr]+";"}).join(""),"}")}Kr===Qi?Gr():Kr===As?Or():(U("if(",Kr,"===",Qi,"){"),Gr(),U("}else{"),Or(),U("}"))}pe.forEach(function(X){var K=X.name,Y=$.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(I,U)}else{if(!Te(yt))return;var Ce=I.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function(Je){ve[Je]=U.def(Ce,".",Je)})}ae(I.link(X),fe(X.info.type),ve)})}function on(I,U,$,pe,Te,ce){for(var fe=I.shared,ae=fe.gl,X,K=0;K1){for(var sn=[],qi=[],ro=0;ro>1)",Lr],");")}function Ir(){$(Mr,".drawArraysInstancedANGLE(",[Ce,Je,Kr,Lr],");")}Y&&Y!=="null"?Gr?Pr():($("if(",Y,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}function Sr(){function Pr(){$(ce+".drawElements("+[Ce,Kr,Jr,Je+"<<(("+Jr+"-"+gc+")>>1)"]+");")}function Ir(){$(ce+".drawArrays("+[Ce,Je,Kr]+");")}Y&&Y!=="null"?Gr?Pr():($("if(",Y,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}ar&&(typeof Lr!="number"||Lr>=0)?typeof Lr=="string"?($("if(",Lr,">0){"),Or(),$("}else if(",Lr,"<0){"),Sr(),$("}")):Or():Sr()}function mt(I,U,$,pe,Te){var ce=Dr(),fe=ce.proc("body",Te);return ar&&(ce.instancing=fe.def(ce.shared.extensions,".angle_instanced_arrays")),I(ce,fe,$,pe),ce.compile().body}function qt(I,U,$,pe){Ra(I,U),$.useVAO?$.drawVAO?U(I.shared.vao,".setVAO(",$.drawVAO.append(I,U),");"):U(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(U(I.shared.vao,".setVAO(null);"),Za(I,U,$,pe.attributes,function(){return!0})),on(I,U,$,pe.uniforms,function(){return!0},!1),ln(I,U,U,$)}function Qt(I,U){var $=I.proc("draw",1);Ra(I,$),ga(I,$,U.context),ba(I,$,U.framebuffer),ka(I,$,U),Tt(I,$,U.state),Wt(I,$,U,!1,!0);var pe=U.shader.progVar.append(I,$);if($(I.shared.gl,".useProgram(",pe,".program);"),U.shader.program)qt(I,$,U,U.shader.program);else{$(I.shared.vao,".setVAO(null);");var Te=I.global.def("{}"),ce=$.def(pe,".id"),fe=$.def(Te,"[",ce,"]");$(I.cond(fe).then(fe,".call(this,a0);").else(fe,"=",Te,"[",ce,"]=",I.link(function(ae){return mt(qt,I,U,ae,1)}),"(",pe,");",fe,".call(this,a0);"))}Object.keys(U.state).length>0&&$(I.shared.current,".dirty=true;"),I.shared.vao&&$(I.shared.vao,".setVAO(null);")}function z(I,U,$,pe){I.batchId="a1",Ra(I,U);function Te(){return!0}Za(I,U,$,pe.attributes,Te),on(I,U,$,pe.uniforms,Te,!1),ln(I,U,U,$)}function me(I,U,$,pe){Ra(I,U);var Te=$.contextDep,ce=U.def(),fe="a0",ae="a1",X=U.def();I.shared.props=X,I.batchId=ce;var K=I.scope(),Y=I.scope();U(K.entry,"for(",ce,"=0;",ce,"<",ae,";++",ce,"){",X,"=",fe,"[",ce,"];",Y,"}",K.exit);function ve(Jr){return Jr.contextDep&&Te||Jr.propDep}function Ce(Jr){return!ve(Jr)}if($.needsContext&&ga(I,Y,$.context),$.needsFramebuffer&&ba(I,Y,$.framebuffer),Tt(I,Y,$.state,ve),$.profile&&ve($.profile)&&Wt(I,Y,$,!1,!0),pe)$.useVAO?$.drawVAO?ve($.drawVAO)?Y(I.shared.vao,".setVAO(",$.drawVAO.append(I,Y),");"):K(I.shared.vao,".setVAO(",$.drawVAO.append(I,K),");"):K(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(K(I.shared.vao,".setVAO(null);"),Za(I,K,$,pe.attributes,Ce),Za(I,Y,$,pe.attributes,ve)),on(I,K,$,pe.uniforms,Ce,!1),on(I,Y,$,pe.uniforms,ve,!0),ln(I,K,Y,$);else{var Je=I.global.def("{}"),Kr=$.shader.progVar.append(I,Y),Lr=Y.def(Kr,".id"),Mr=Y.def(Je,"[",Lr,"]");Y(I.shared.gl,".useProgram(",Kr,".program);","if(!",Mr,"){",Mr,"=",Je,"[",Lr,"]=",I.link(function(Jr){return mt(z,I,$,Jr,2)}),"(",Kr,");}",Mr,".call(this,a0[",ce,"],",ce,");")}}function be(I,U){var $=I.proc("batch",2);I.batchId="0",Ra(I,$);var pe=!1,Te=!0;Object.keys(U.context).forEach(function(Je){pe=pe||U.context[Je].propDep}),pe||(ga(I,$,U.context),Te=!1);var ce=U.framebuffer,fe=!1;ce?(ce.propDep?pe=fe=!0:ce.contextDep&&pe&&(fe=!0),fe||ba(I,$,ce)):ba(I,$,null),U.state.viewport&&U.state.viewport.propDep&&(pe=!0);function ae(Je){return Je.contextDep&&pe||Je.propDep}ka(I,$,U),Tt(I,$,U.state,function(Je){return!ae(Je)}),(!U.profile||!ae(U.profile))&&Wt(I,$,U,!1,"a1"),U.contextDep=pe,U.needsContext=Te,U.needsFramebuffer=fe;var X=U.shader.progVar;if(X.contextDep&&pe||X.propDep)me(I,$,U,null);else{var K=X.append(I,$);if($(I.shared.gl,".useProgram(",K,".program);"),U.shader.program)me(I,$,U,U.shader.program);else{$(I.shared.vao,".setVAO(null);");var Y=I.global.def("{}"),ve=$.def(K,".id"),Ce=$.def(Y,"[",ve,"]");$(I.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",I.link(function(Je){return mt(me,I,U,Je,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&$(I.shared.current,".dirty=true;"),I.shared.vao&&$(I.shared.vao,".setVAO(null);")}function Nr(I,U){var $=I.proc("scope",3);I.batchId="a2";var pe=I.shared,Te=pe.current;if(ga(I,$,U.context),U.framebuffer&&U.framebuffer.append(I,$),rr(Object.keys(U.state)).forEach(function(ae){var X=U.state[ae],K=X.append(I,$);Ci(K)?K.forEach(function(Y,ve){kr(Y)?$.set(I.next[ae],"["+ve+"]",Y):$.set(I.next[ae],"["+ve+"]",I.link(Y,{stable:!0}))}):Fr(X)?$.set(pe.next,"."+ae,I.link(K,{stable:!0})):$.set(pe.next,"."+ae,K)}),Wt(I,$,U,!0,!0),[ho,bu,qo,gi,Ro].forEach(function(ae){var X=U.draw[ae];if(X){var K=X.append(I,$);kr(K)?$.set(pe.draw,"."+ae,K):$.set(pe.draw,"."+ae,I.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(ae){var X=U.uniforms[ae].append(I,$);Array.isArray(X)&&(X="["+X.map(function(K){return kr(K)?K:I.link(K,{stable:!0})})+"]"),$.set(pe.uniforms,"["+I.link(B.id(ae),{stable:!0})+"]",X)}),Object.keys(U.attributes).forEach(function(ae){var X=U.attributes[ae].append(I,$),K=I.scopeAttrib(ae);Object.keys(new ke).forEach(function(Y){$.set(K,"."+Y,X[Y])})}),U.scopeVAO){var ce=U.scopeVAO.append(I,$);kr(ce)?$.set(pe.vao,".targetVAO",ce):$.set(pe.vao,".targetVAO",I.link(ce,{stable:!0}))}function fe(ae){var X=U.shader[ae];if(X){var K=X.append(I,$);kr(K)?$.set(pe.shader,"."+ae,K):$.set(pe.shader,"."+ae,I.link(K,{stable:!0}))}}fe(jo),fe(pl),Object.keys(U.state).length>0&&($(Te,".dirty=true;"),$.exit(Te,".dirty=true;")),$("a1(",I.shared.context,",a0,",I.batchId,");")}function Ft(I){if(!(typeof I!="object"||Ci(I))){for(var U=Object.keys(I),$=0;$=0;--mt){var qt=Zr[mt];qt&&qt(Ne,null,0)}V.flush(),lr&&lr.update()}function Et(){!ft&&Zr.length>0&&(ft=d.next(ut))}function aa(){ft&&(d.cancel(ut),ft=null)}function Ea(mt){mt.preventDefault(),xe=!0,aa(),ct.forEach(function(qt){qt()})}function Dt(mt){V.getError(),xe=!1,Ae.restore(),Xr.restore(),ar.restore(),Be.restore(),qe.restore(),Er.restore(),br.restore(),lr&&lr.restore(),vr.procs.refresh(),Et(),mr.forEach(function(qt){qt()})}kr&&(kr.addEventListener(jt,Ea,!1),kr.addEventListener(ua,Dt,!1));function an(){Zr.length=0,aa(),kr&&(kr.removeEventListener(jt,Ea),kr.removeEventListener(ua,Dt)),Xr.clear(),Er.clear(),qe.clear(),br.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),Dr.forEach(function(mt){mt()})}function Ut(mt){function qt(ce){var fe=e({},ce);delete fe.uniforms,delete fe.attributes,delete fe.context,delete fe.vao,"stencil"in fe&&fe.stencil.op&&(fe.stencil.opBack=fe.stencil.opFront=fe.stencil.op,delete fe.stencil.op);function ae(X){if(X in fe){var K=fe[X];delete fe[X],Object.keys(K).forEach(function(Y){fe[X+"."+Y]=K[Y]})}}return ae("blend"),ae("depth"),ae("cull"),ae("stencil"),ae("polygonOffset"),ae("scissor"),ae("sample"),"vao"in ce&&(fe.vao=ce.vao),fe}function Qt(ce,fe){var ae={},X={};return Object.keys(ce).forEach(function(K){var Y=ce[K];if(v.isDynamic(Y)){X[K]=v.unbox(Y,K);return}else if(fe&&Array.isArray(Y)){for(var ve=0;ve0)return I.call(this,pe(ce|0),ce|0)}else if(Array.isArray(ce)){if(ce.length)return I.call(this,ce,ce.length)}else return qr.call(this,ce)}return e(Te,{stats:Ft,destroy:function(){Ht.destroy()}})}var Ha=Er.setFBO=Ut({framebuffer:v.define.call(null,ja,"framebuffer")});function Xa(mt,qt){var Qt=0;vr.procs.poll();var z=qt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=gn),"depth"in qt&&(V.clearDepth(+qt.depth),Qt|=La),"stencil"in qt&&(V.clearStencil(qt.stencil|0),Qt|=dt),V.clear(Qt)}function nn(mt){if("framebuffer"in mt)if(mt.framebuffer&&mt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ha(e({framebuffer:mt.framebuffer.faces[qt]},mt),Xa);else Ha(mt,Xa);else Xa(null,mt)}function ga(mt){Zr.push(mt);function qt(){var Qt=Kn(Zr,mt);function z(){var me=Kn(Zr,z);Zr[me]=Zr[Zr.length-1],Zr.length-=1,Zr.length<=0&&aa()}Zr[Qt]=z}return Et(),{cancel:qt}}function ba(){var mt=cr.viewport,qt=cr.scissor_box;mt[0]=mt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=mt[2]=qt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=mt[3]=qt[3]=V.drawingBufferHeight}function ka(){Ne.tick+=1,Ne.time=Ra(),ba(),vr.procs.poll()}function Tt(){Be.refresh(),ba(),vr.procs.refresh(),lr&&lr.update()}function Ra(){return(p()-$r)/1e3}Tt();function Wt(mt,qt){var Qt;switch(mt){case"frame":return ga(qt);case"lost":Qt=ct;break;case"restore":Qt=mr;break;case"destroy":Qt=Dr;break;default:}return Qt.push(qt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:an,_gl:V,_refresh:Tt,poll:function(){ka(),lr&&lr.update()},now:Ra,stats:We,getCachedCode:Za,preloadCachedCode:on});return B.onDone(null,ln),ln}return Ri})});var Bee=N((aOe,Oee)=>{"use strict";var L7e=Vf();Oee.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},Nee(r)?r={container:r}:D7e(r)?r={container:r}:F7e(r)?r={gl:r}:r=L7e(r,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),r.pixelRatio||(r.pixelRatio=window.pixelRatio||1),r.gl)return r.gl;if(r.canvas&&(r.container=r.canvas.parentNode),r.container){if(typeof r.container=="string"){var t=document.querySelector(r.container);if(!t)throw Error("Element "+r.container+" is not found");r.container=t}Nee(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=Iee(),r.container.appendChild(r.canvas),Pee(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=Iee(),r.container.appendChild(r.canvas),Pee(r);else throw Error("Not DOM environment. Use headless-gl.");return r.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(a){try{r.gl=r.canvas.getContext(a,r.attrs)}catch(n){}return r.gl}),r.gl};function Pee(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function Nee(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function D7e(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function F7e(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Iee(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Gee=N((nOe,zee)=>{"use strict";var R7e=o9(),q7e=[32,126];zee.exports=P7e;function P7e(e){e=e||{};var r=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],t=e.canvas||document.createElement("canvas"),a=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],i=e.chars||q7e;if(a&&typeof a!="string"&&(a=R7e(a)),!Array.isArray(i))i=String(i).split("");else if(i.length===2&&typeof i[0]=="number"&&typeof i[1]=="number"){for(var o=[],l=i[0],s=0;l<=i[1];l++)o[s++]=String.fromCharCode(l);i=o}r=r.slice(),t.width=r[0],t.height=r[1];var f=t.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,t.width,t.height),f.font=a,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var u=n[0]/2,c=n[1]/2,l=0;lr[0]-n[0]/2&&(u=n[0]/2,c+=n[1]);return t}});var u9=N(oi=>{"use strict";"use restrict";var f9=32;oi.INT_BITS=f9;oi.INT_MAX=2147483647;oi.INT_MIN=-1<0)-(e<0)};oi.abs=function(e){var r=e>>f9-1;return(e^r)-r};oi.min=function(e,r){return r^(e^r)&-(e65535)<<4,e>>>=r,t=(e>255)<<3,e>>>=t,r|=t,t=(e>15)<<2,e>>>=t,r|=t,t=(e>3)<<1,e>>>=t,r|=t,r|e>>1};oi.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};oi.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Uee(e){var r=32;return e&=-e,e&&r--,e&65535&&(r-=16),e&16711935&&(r-=8),e&252645135&&(r-=4),e&858993459&&(r-=2),e&1431655765&&(r-=1),r}oi.countTrailingZeros=Uee;oi.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};oi.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};oi.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var gg=new Array(256);(function(e){for(var r=0;r<256;++r){var t=r,a=r,n=7;for(t>>>=1;t;t>>>=1)a<<=1,a|=t&1,--n;e[r]=a<>>8&255]<<16|gg[e>>>16&255]<<8|gg[e>>>24&255]};oi.interleave2=function(e,r){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r&=65535,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1};oi.deinterleave2=function(e,r){return e=e>>>r&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};oi.interleave3=function(e,r,t){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|=r<<1,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|t<<2};oi.deinterleave3=function(e,r){return e=e>>>r&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};oi.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>Uee(e)+1}});var Yee=N((oOe,Vee)=>{"use strict";function Hee(e,r,t){var a=e[t]|0;if(a<=0)return[];var n=new Array(a),i;if(t===e.length-1)for(i=0;i0)return N7e(e|0,r);break;case"object":if(typeof e.length=="number")return Hee(e,r,0);break}return[]}Vee.exports=I7e});var Xee=N(V_=>{"use strict";V_.byteLength=B7e;V_.toByteArray=G7e;V_.fromByteArray=V7e;var Wf=[],fs=[],O7e=typeof Uint8Array!="undefined"?Uint8Array:Array,c9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(E0=0,Wee=c9.length;E00)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function B7e(e){var r=jee(e),t=r[0],a=r[1];return(t+a)*3/4-a}function z7e(e,r,t){return(r+t)*3/4-t}function G7e(e){var r,t=jee(e),a=t[0],n=t[1],i=new O7e(z7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=fs[e.charCodeAt(s)]<<2|fs[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=fs[e.charCodeAt(s)]<<10|fs[e.charCodeAt(s+1)]<<4|fs[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function U7e(e){return Wf[e>>18&63]+Wf[e>>12&63]+Wf[e>>6&63]+Wf[e&63]}function H7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Wf[r>>2]+Wf[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Wf[r>>10]+Wf[r>>4&63]+Wf[r<<2&63]+"=")),n.join("")}});var Zee=N(v9=>{v9.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,u=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-u)-1,d>>=-u,u+=l;u>0;i=i*256+e[r+c],c+=v,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=o*256+e[r+c],c+=v,u-=8);if(i===0)i=1-f;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-f}return(d?-1:1)*o*Math.pow(2,i-a)};v9.write=function(e,r,t,a,n,i){var o,l,s,f=i*8-n-1,u=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=u):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=u?(l=0,o=u):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,f-=8);e[t+d-p]|=y*128}});var vre=N(jp=>{"use strict";var h9=Xee(),Yp=Zee(),Jee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;jp.Buffer=tt;jp.SlowBuffer=J7e;jp.INSPECT_MAX_BYTES=50;var Y_=2147483647;jp.kMaxLength=Y_;tt.TYPED_ARRAY_SUPPORT=Y7e();!tt.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Y7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.buffer}});Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.byteOffset}});function Qu(e){if(e>Y_)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,tt.prototype),r}function tt(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y9(e)}return ere(e,r,t)}tt.poolSize=8192;function ere(e,r,t){if(typeof e=="string")return j7e(e,r);if(ArrayBuffer.isView(e))return X7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(jf(e,ArrayBuffer)||e&&jf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(jf(e,SharedArrayBuffer)||e&&jf(e.buffer,SharedArrayBuffer)))return p9(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return tt.from(a,r,t);let n=Z7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return tt.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}tt.from=function(e,r,t){return ere(e,r,t)};Object.setPrototypeOf(tt.prototype,Uint8Array.prototype);Object.setPrototypeOf(tt,Uint8Array);function rre(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function W7e(e,r,t){return rre(e),e<=0?Qu(e):r!==void 0?typeof t=="string"?Qu(e).fill(r,t):Qu(e).fill(r):Qu(e)}tt.alloc=function(e,r,t){return W7e(e,r,t)};function y9(e){return rre(e),Qu(e<0?0:g9(e)|0)}tt.allocUnsafe=function(e){return y9(e)};tt.allocUnsafeSlow=function(e){return y9(e)};function j7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!tt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=tre(e,r)|0,a=Qu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function d9(e){let r=e.length<0?0:g9(e.length)|0,t=Qu(r);for(let a=0;a=Y_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y_.toString(16)+" bytes");return e|0}function J7e(e){return+e!=e&&(e=0),tt.alloc(+e)}tt.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==tt.prototype};tt.compare=function(r,t){if(jf(r,Uint8Array)&&(r=tt.from(r,r.offset,r.byteLength)),jf(t,Uint8Array)&&(t=tt.from(t,t.offset,t.byteLength)),!tt.isBuffer(r)||!tt.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(tt.isBuffer(o)||(o=tt.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(tt.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function tre(e,r){if(tt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jf(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return m9(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return cre(e).length;default:if(n)return a?-1:m9(e).length;r=(""+r).toLowerCase(),n=!0}}tt.byteLength=tre;function $7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return l9e(this,r,t);case"utf8":case"utf-8":return nre(this,r,t);case"ascii":return i9e(this,r,t);case"latin1":case"binary":return o9e(this,r,t);case"base64":return a9e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s9e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}tt.prototype._isBuffer=!0;function k0(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}tt.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};Jee&&(tt.prototype[Jee]=tt.prototype.inspect);tt.prototype.compare=function(r,t,a,n,i){if(jf(r,Uint8Array)&&(r=tt.from(r,r.offset,r.byteLength)),!tt.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),f=this.slice(n,i),u=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,x9(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=tt.from(r,a)),tt.isBuffer(r))return r.length===0?-1:$ee(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):$ee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function $ee(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(u,c){return i===1?u[c]:u.readUInt16BE(c*i)}let f;if(n){let u=-1;for(f=t;fo&&(t=o-l),f=t;f>=0;f--){let u=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return Q7e(this,r,t,a);case"utf8":case"utf-8":return K7e(this,r,t,a);case"ascii":case"latin1":case"binary":return e9e(this,r,t,a);case"base64":return r9e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t9e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function a9e(e,r,t){return r===0&&t===e.length?h9.fromByteArray(e):h9.fromByteArray(e.slice(r,t))}function nre(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,f,u,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],f=e[n+2],(s&192)===128&&(f&192)===128&&(c=(i&15)<<12|(s&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],f=e[n+2],u=e[n+3],(s&192)===128&&(f&192)===128&&(u&192)===128&&(c=(i&15)<<18|(s&63)<<12|(f&63)<<6|u&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return n9e(a)}var Qee=4096;function n9e(e){let r=e.length;if(r<=Qee)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}tt.prototype.readUintLE=tt.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||ji(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||ji(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};tt.prototype.readUint8=tt.prototype.readUInt8=function(r,t){return r=r>>>0,t||ji(r,1,this.length),this[r]};tt.prototype.readUint16LE=tt.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||ji(r,2,this.length),this[r]|this[r+1]<<8};tt.prototype.readUint16BE=tt.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||ji(r,2,this.length),this[r]<<8|this[r+1]};tt.prototype.readUint32LE=tt.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};tt.prototype.readUint32BE=tt.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};tt.prototype.readBigUInt64LE=Sv(function(r){r=r>>>0,Wp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&bg(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,Wp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&bg(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||ji(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};tt.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||ji(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};tt.prototype.readInt8=function(r,t){return r=r>>>0,t||ji(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};tt.prototype.readInt16LE=function(r,t){r=r>>>0,t||ji(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};tt.prototype.readInt16BE=function(r,t){r=r>>>0,t||ji(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};tt.prototype.readInt32LE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};tt.prototype.readInt32BE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};tt.prototype.readBigInt64LE=Sv(function(r){r=r>>>0,Wp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&bg(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,Wp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&bg(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||ji(r,4,this.length),Yp.read(this,r,!0,23,4)};tt.prototype.readFloatBE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),Yp.read(this,r,!1,23,4)};tt.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||ji(r,8,this.length),Yp.read(this,r,!0,52,8)};tt.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||ji(r,8,this.length),Yp.read(this,r,!1,52,8)};function il(e,r,t,a,n,i){if(!tt.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;il(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;il(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};tt.prototype.writeUint8=tt.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,1,255,0),this[t]=r&255,t+1};tt.prototype.writeUint16LE=tt.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};tt.prototype.writeUint16BE=tt.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};tt.prototype.writeUint32LE=tt.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};tt.prototype.writeUint32BE=tt.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function ire(e,r,t,a,n){ure(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function ore(e,r,t,a,n){ure(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}tt.prototype.writeBigUInt64LE=Sv(function(r,t=0){return ire(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});tt.prototype.writeBigUInt64BE=Sv(function(r,t=0){return ore(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});tt.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);il(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};tt.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);il(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};tt.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};tt.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};tt.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};tt.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};tt.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};tt.prototype.writeBigInt64LE=Sv(function(r,t=0){return ire(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});tt.prototype.writeBigInt64BE=Sv(function(r,t=0){return ore(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function lre(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function sre(e,r,t,a,n){return r=+r,t=t>>>0,n||lre(e,r,t,4,34028234663852886e22,-34028234663852886e22),Yp.write(e,r,t,a,23,4),t+4}tt.prototype.writeFloatLE=function(r,t,a){return sre(this,r,t,!0,a)};tt.prototype.writeFloatBE=function(r,t,a){return sre(this,r,t,!1,a)};function fre(e,r,t,a,n){return r=+r,t=t>>>0,n||lre(e,r,t,8,17976931348623157e292,-17976931348623157e292),Yp.write(e,r,t,a,52,8),t+8}tt.prototype.writeDoubleLE=function(r,t,a){return fre(this,r,t,!0,a)};tt.prototype.writeDoubleBE=function(r,t,a){return fre(this,r,t,!1,a)};tt.prototype.copy=function(r,t,a,n){if(!tt.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=Kee(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=Kee(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function Kee(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function f9e(e,r,t){Wp(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&bg(r,e.length-(t+1))}function ure(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new Vp.ERR_OUT_OF_RANGE("value",l,e)}f9e(a,n,i)}function Wp(e,r){if(typeof e!="number")throw new Vp.ERR_INVALID_ARG_TYPE(r,"number",e)}function bg(e,r,t){throw Math.floor(e)!==e?(Wp(e,t),new Vp.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new Vp.ERR_BUFFER_OUT_OF_BOUNDS:new Vp.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var u9e=/[^+/0-9A-Za-z-_]/g;function c9e(e){if(e=e.split("=")[0],e=e.trim().replace(u9e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function m9(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function v9e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function cre(e){return h9.toByteArray(c9e(e))}function W_(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function jf(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function x9(e){return e!==e}var d9e=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function Sv(e){return typeof BigInt=="undefined"?p9e:e}function p9e(){throw new Error("BigInt not supported")}});var Ere=N(Oa=>{"use strict";var Ev=u9(),fo=Yee(),hre=vre().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:fo([32,0]),UINT16:fo([32,0]),UINT32:fo([32,0]),BIGUINT64:fo([32,0]),INT8:fo([32,0]),INT16:fo([32,0]),INT32:fo([32,0]),BIGINT64:fo([32,0]),FLOAT:fo([32,0]),DOUBLE:fo([32,0]),DATA:fo([32,0]),UINT8C:fo([32,0]),BUFFER:fo([32,0])});var m9e=typeof Uint8ClampedArray!="undefined",y9e=typeof BigUint64Array!="undefined",g9e=typeof BigInt64Array!="undefined",vi=window.__TYPEDARRAY_POOL;vi.UINT8C||(vi.UINT8C=fo([32,0]));vi.BIGUINT64||(vi.BIGUINT64=fo([32,0]));vi.BIGINT64||(vi.BIGINT64=fo([32,0]));vi.BUFFER||(vi.BUFFER=fo([32,0]));var j_=vi.DATA,X_=vi.BUFFER;Oa.free=function(r){if(hre.isBuffer(r))X_[Ev.log2(r.length)].push(r);else{if(Object.prototype.toString.call(r)!=="[object ArrayBuffer]"&&(r=r.buffer),!r)return;var t=r.length||r.byteLength,a=Ev.log2(t)|0;j_[a].push(r)}};function dre(e){if(e){var r=e.length||e.byteLength,t=Ev.log2(r);j_[t].push(e)}}function b9e(e){dre(e.buffer)}Oa.freeUint8=Oa.freeUint16=Oa.freeUint32=Oa.freeBigUint64=Oa.freeInt8=Oa.freeInt16=Oa.freeInt32=Oa.freeBigInt64=Oa.freeFloat32=Oa.freeFloat=Oa.freeFloat64=Oa.freeDouble=Oa.freeUint8Clamped=Oa.freeDataView=b9e;Oa.freeArrayBuffer=dre;Oa.freeBuffer=function(r){X_[Ev.log2(r.length)].push(r)};Oa.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return ol(r);switch(t){case"uint8":return _9(r);case"uint16":return pre(r);case"uint32":return mre(r);case"int8":return yre(r);case"int16":return gre(r);case"int32":return bre(r);case"float":case"float32":return xre(r);case"double":case"float64":return _re(r);case"uint8_clamped":return wre(r);case"bigint64":return Tre(r);case"biguint64":return Are(r);case"buffer":return Sre(r);case"data":case"dataview":return Mre(r);default:return null}return null};function ol(r){var r=Ev.nextPow2(r),t=Ev.log2(r),a=j_[t];return a.length>0?a.pop():new ArrayBuffer(r)}Oa.mallocArrayBuffer=ol;function _9(e){return new Uint8Array(ol(e),0,e)}Oa.mallocUint8=_9;function pre(e){return new Uint16Array(ol(2*e),0,e)}Oa.mallocUint16=pre;function mre(e){return new Uint32Array(ol(4*e),0,e)}Oa.mallocUint32=mre;function yre(e){return new Int8Array(ol(e),0,e)}Oa.mallocInt8=yre;function gre(e){return new Int16Array(ol(2*e),0,e)}Oa.mallocInt16=gre;function bre(e){return new Int32Array(ol(4*e),0,e)}Oa.mallocInt32=bre;function xre(e){return new Float32Array(ol(4*e),0,e)}Oa.mallocFloat32=Oa.mallocFloat=xre;function _re(e){return new Float64Array(ol(8*e),0,e)}Oa.mallocFloat64=Oa.mallocDouble=_re;function wre(e){return m9e?new Uint8ClampedArray(ol(e),0,e):_9(e)}Oa.mallocUint8Clamped=wre;function Are(e){return y9e?new BigUint64Array(ol(8*e),0,e):null}Oa.mallocBigUint64=Are;function Tre(e){return g9e?new BigInt64Array(ol(8*e),0,e):null}Oa.mallocBigInt64=Tre;function Mre(e){return new DataView(ol(e),0,e)}Oa.mallocDataView=Mre;function Sre(e){e=Ev.nextPow2(e);var r=Ev.log2(e),t=X_[r];return t.length>0?t.pop():new hre(e)}Oa.mallocBuffer=Sre;Oa.clearCache=function(){for(var r=0;r<32;++r)vi.UINT8[r].length=0,vi.UINT16[r].length=0,vi.UINT32[r].length=0,vi.INT8[r].length=0,vi.INT16[r].length=0,vi.INT32[r].length=0,vi.FLOAT[r].length=0,vi.DOUBLE[r].length=0,vi.BIGUINT64[r].length=0,vi.BIGINT64[r].length=0,vi.UINT8C[r].length=0,j_[r].length=0,X_[r].length=0}});var Cre=N((vOe,kre)=>{"use strict";var x9e=Object.prototype.toString;kre.exports=function(e){var r;return x9e.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var w9=N((hOe,Lre)=>{Lre.exports=function(r,t){t||(t=[0,""]),r=String(r);var a=parseFloat(r,10);return t[0]=a,t[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}});var Rre=N((dOe,Fre)=>{"use strict";var _9e=w9();Fre.exports=Dre;var xg=96;function A9(e,r){var t=_9e(getComputedStyle(e).getPropertyValue(r));return t[0]*Dre(t[1],e)}function w9e(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=A9(t,"font-size")/128;return r.removeChild(t),a}function Dre(e,r){switch(r=r||document.body,e=(e||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),e){case"%":return r.clientHeight/100;case"ch":case"ex":return w9e(e,r);case"em":return A9(r,"font-size");case"rem":return A9(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return xg;case"cm":return xg/2.54;case"mm":return xg/25.4;case"pt":return xg/72;case"pc":return xg/6}return 1}});var Nre=N((pOe,Pre)=>{"use strict";Pre.exports=$_;var A9e=$_.canvas=document.createElement("canvas"),Z_=A9e.getContext("2d"),qre=J_([32,126]);$_.createPairs=J_;$_.ascii=qre;function $_(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=J_(r):Array.isArray(r)?a=r:(r.o?a=J_(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=qre),Z_.font=n+"px "+e;for(var o=0;on*i){var u=(f-s)/n;t[l]=u*1e3}}return t}function J_(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";Bre.exports=kv;kv.canvas=document.createElement("canvas");kv.cache={};function kv(o,r){r||(r={}),(typeof o=="string"||Array.isArray(o))&&(r.family=o);var t=Array.isArray(r.family)?r.family.join(", "):r.family;if(!t)throw Error("`family` must be defined");var a=r.size||r.fontSize||r.em||48,n=r.weight||r.fontWeight||"",i=r.style||r.fontStyle||"",o=[i,n,a].join(" ")+"px "+t,l=r.origin||"top";if(kv.cache[t]&&a<=kv.cache[t].em)return Ire(kv.cache[t],l);var s=r.canvas||kv.canvas,f=s.getContext("2d"),u={upper:r.upper!==void 0?r.upper:"H",lower:r.lower!==void 0?r.lower:"x",descent:r.descent!==void 0?r.descent:"p",ascent:r.ascent!==void 0?r.ascent:"h",tittle:r.tittle!==void 0?r.tittle:"i",overshoot:r.overshoot!==void 0?r.overshoot:"O"},c=Math.ceil(a*1.5);s.height=c,s.width=c*.5,f.font=o;var v="H",d={top:0};f.clearRect(0,0,c,c),f.textBaseline="top",f.fillStyle="black",f.fillText(v,0,0);var p=Xf(f.getImageData(0,0,c,c));f.clearRect(0,0,c,c),f.textBaseline="bottom",f.fillText(v,0,c);var y=Xf(f.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-y+p,f.clearRect(0,0,c,c),f.textBaseline="alphabetic",f.fillText(v,0,c);var m=Xf(f.getImageData(0,0,c,c)),b=c-m-1+p;d.baseline=d.alphabetic=b,f.clearRect(0,0,c,c),f.textBaseline="middle",f.fillText(v,0,c*.5);var T=Xf(f.getImageData(0,0,c,c));d.median=d.middle=c-T-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="hanging",f.fillText(v,0,c*.5);var _=Xf(f.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="ideographic",f.fillText(v,0,c);var x=Xf(f.getImageData(0,0,c,c));if(d.ideographic=c-x-1+p,u.upper&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.upper,0,0),d.upper=Xf(f.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),u.lower&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.lower,0,0),d.lower=Xf(f.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),u.tittle&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.tittle,0,0),d.tittle=Xf(f.getImageData(0,0,c,c))),u.ascent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.ascent,0,0),d.ascent=Xf(f.getImageData(0,0,c,c))),u.descent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.descent,0,0),d.descent=Ore(f.getImageData(0,0,c,c))),u.overshoot){f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.overshoot,0,0);var A=Ore(f.getImageData(0,0,c,c));d.overshoot=A-b}for(var E in d)d[E]/=a;return d.em=a,kv.cache[t]=d,Ire(d,l)}function Ire(e,r){var t={};typeof r=="string"&&(r=e[r]);for(var a in e)a!=="em"&&(t[a]=e[a]-r);return t}function Xf(e){for(var r=e.height,t=e.data,a=3;a0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var Vre=N((yOe,Hre)=>{"use strict";var Xp=Ree(),T9e=Vf(),M9e=qee(),S9e=Bee(),E9e=W7(),T9=_0(),k9e=Gee(),Cv=Ere(),C9e=gp(),L9e=Cre(),D9e=w9(),F9e=Rre(),R9e=Nre(),q9e=ni(),P9e=zre(),N9e=d0(),I9e=u9(),Gre=I9e.nextPow2,Ure=new E9e,K_=!1;document.body&&(Q_=document.body.appendChild(document.createElement("div")),Q_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Q_).fontStretch&&(K_=!0),document.body.removeChild(Q_));var Q_,Qa=function(r){O9e(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=S9e(r),this.shader=Ure.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||M9e({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),Ure.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(L9e(r)?r:{})};Qa.prototype.createShader=function(){var r=this.regl,t=r({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:r.prop("count"),offset:r.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:r.this("sizeBuffer")},width:{offset:0,stride:8,buffer:r.this("sizeBuffer")},char:r.this("charBuffer"),position:r.this("position")},uniforms:{atlasSize:function(n,i){return[i.atlas.width,i.atlas.height]},atlasDim:function(n,i){return[i.atlas.cols,i.atlas.rows]},atlas:function(n,i){return i.atlas.texture},charStep:function(n,i){return i.atlas.step},em:function(n,i){return i.atlas.em},color:r.prop("color"),opacity:r.prop("opacity"),viewport:r.this("viewportArray"),scale:r.this("scale"),align:r.prop("align"),baseline:r.prop("baseline"),translate:r.this("translate"),positionOffset:r.prop("positionOffset")},primitive:"points",viewport:r.this("viewport"),vert:` +`),ke;if(B&&(ke=D1(ue),B[ke]))return B[ke].apply(null,_e);var Ze=Function.apply(null,he.concat(ue));return B&&(B[ke]=Ze),Ze.apply(null,_e)}return{global:lr,link:we,block:We,proc:Fr,scope:ir,cond:nr,compile:mr}}var vo="xyzw".split(""),gc=5121,Qi=1,As=2,cu=0,hf=1,bc=2,df=3,Ts=4,xc=5,pf=6,_c="dither",mh="blend.enable",gh="blend.color",vu="blend.equation",hu="blend.func",wc="depth.enable",Ac="depth.func",Tc="depth.range",Mc="depth.mask",du="colorMask",yf="cull.enable",bh="cull.face",pu="frontFace",mf="lineWidth",Sc="polygonOffset.enable",yu="polygonOffset.offset",gf="sample.alpha",bf="sample.enable",xf="sample.coverage",Ec="stencil.enable",mu="stencil.mask",Ri="stencil.func",_f="stencil.opFront",hl="stencil.opBack",gu="scissor.enable",dl="scissor.box",fi="viewport",Ms="profile",Ro="framebuffer",jo="vert",pl="frag",ho="elements",Fo="primitive",qo="count",bu="offset",bi="instances",Ol="vao",wf="Width",po="Height",Ki=Ro+wf,eo=Ro+po,N1=fi+wf,I1=fi+po,xh="drawingBuffer",kc=xh+wf,Cc=xh+po,K0=[hu,vu,Ri,_f,hl,xf,fi,dl,yu],yo=34962,xu=34963,ed=2884,O1=3042,B1=3024,z1=2960,rd=2929,td=3089,Lc=32823,ad=32926,Dc=32928,Rc=5126,yl=35664,tn=35665,Af=35666,ml=5124,Bl=35667,Ss=35668,_u=35669,wu=35670,zl=35671,Tf=35672,Au=35673,Tu=35674,Mu=35675,Su=35676,Es=35678,Eu=35680,ku=4,h=1028,g=1029,w=2304,C=2305,L=32775,D=32776,G=519,q=7680,Z=0,ie=1,oe=32774,me=513,ge=36160,Xe=36064,Qe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ve={cw:w,ccw:C};function er(S){return Array.isArray(S)||jr(S)||ot(S)}function rr(S){return S.sort(function(B,V){return B===fi?-1:V===fi?1:B=1,he>=2,B)}else if(V===Ts){var _e=S.data;return new De(_e.thisDep,_e.contextDep,_e.propDep,B)}else{if(V===xc)return new De(!1,!1,!1,B);if(V===pf){for(var Ae=!1,we=!1,We=!1,ir=0;ir=1&&(we=!0),lr>=2&&(We=!0)}else nr.type===Ts&&(Ae=Ae||nr.data.thisDep,we=we||nr.data.contextDep,We=We||nr.data.propDep)}return new De(Ae,we,We,B)}else return new De(V===df,V===bc,V===hf,B)}}var mt=new De(!1,!1,!1,function(){});function Ct(S,B,V,he,_e,Ae,we,We,ir,nr,lr,Jr,Fr,mr,Ne,ue){var ke=nr.Record,Ze={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Ze.min=L,Ze.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,br=V.oes_vertex_array_object,hr={dirty:!0,profile:ue.profile},Xr={},Be=[],qe={},Er={};function vr(I){return I.replace(".","_")}function fr(I,U,J){var pe=vr(I);Be.push(I),Xr[pe]=hr[pe]=!!J,qe[pe]=U}function cr(I,U,J){var pe=vr(I);Be.push(I),Array.isArray(J)?(hr[pe]=J.slice(),Xr[pe]=J.slice()):hr[pe]=Xr[pe]=J,Er[pe]=U}function kr(I){return!!isNaN(I)}fr(_c,B1),fr(mh,O1),cr(gh,"blendColor",[0,0,0,0]),cr(vu,"blendEquationSeparate",[oe,oe]),cr(hu,"blendFuncSeparate",[ie,Z,ie,Z]),fr(wc,rd,!0),cr(Ac,"depthFunc",me),cr(Tc,"depthRange",[0,1]),cr(Mc,"depthMask",!0),cr(du,du,[!0,!0,!0,!0]),fr(yf,ed),cr(bh,"cullFace",g),cr(pu,pu,C),cr(mf,mf,1),fr(Sc,Lc),cr(yu,"polygonOffset",[0,0]),fr(gf,ad),fr(bf,Dc),cr(xf,"sampleCoverage",[1,!1]),fr(Ec,z1),cr(mu,"stencilMask",-1),cr(Ri,"stencilFunc",[G,0,-1]),cr(_f,"stencilOpSeparate",[h,q,q,q]),cr(hl,"stencilOpSeparate",[g,q,q,q]),fr(gu,td),cr(dl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),cr(fi,fi,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var Zr={gl:S,context:Fr,strings:B,next:Xr,current:hr,draw:Jr,elements:Ae,buffer:_e,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:We,extensions:V,timer:mr,isBufferArgs:er},ct={primTypes:Go,compareFuncs:Me,blendFuncs:Qe,blendEquations:Ze,stencilOps:Fe,glTypes:un,orientationType:Ve};ze&&(ct.backBuffer=[g],ct.drawBuffer=k(he.maxDrawbuffers,function(I){return I===0?[0]:k(I,function(U){return Xe+U})}));var yr=0;function Dr(){var I=Q0({cache:Ne}),U=I.link,J=I.global;I.id=yr++,I.batchId="0";var pe=U(Zr),Te=I.shared={props:"a0"};Object.keys(Zr).forEach(function(K){Te[K]=J.def(pe,".",K)});var ce=I.next={},fe=I.current={};Object.keys(Er).forEach(function(K){Array.isArray(hr[K])&&(ce[K]=J.def(Te.next,".",K),fe[K]=J.def(Te.current,".",K))});var ae=I.constants={};Object.keys(ct).forEach(function(K){ae[K]=J.def(JSON.stringify(ct[K]))}),I.invoke=function(K,Y){switch(Y.type){case cu:var ve=["this",Te.context,Te.props,I.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case hf:return K.def(Te.props,Y.data);case bc:return K.def(Te.context,Y.data);case df:return K.def("this",Y.data);case Ts:return Y.data.append(I,K),Y.data.ref;case xc:return Y.data.toString();case pf:return Y.data.map(function(Ce){return I.invoke(K,Ce)})}},I.attribCache={};var X={};return I.scopeAttrib=function(K){var Y=B.id(K);if(Y in X)return X[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=X[Y]=U(ve);return Ce},I}function ft(I){var U=I.static,J=I.dynamic,pe;if(Ms in U){var Te=!!U[Ms];pe=Br(function(fe,ae){return Te}),pe.enable=Te}else if(Ms in J){var ce=J[Ms];pe=it(ce,function(fe,ae){return fe.invoke(ae,ce)})}return pe}function ut(I,U){var J=I.static,pe=I.dynamic;if(Ro in J){var Te=J[Ro];return Te?(Te=We.getFramebuffer(Te),Br(function(fe,ae){var X=fe.link(Te),K=fe.shared;ae.set(K.framebuffer,".next",X);var Y=K.context;return ae.set(Y,"."+Ki,X+".width"),ae.set(Y,"."+eo,X+".height"),X})):Br(function(fe,ae){var X=fe.shared;ae.set(X.framebuffer,".next","null");var K=X.context;return ae.set(K,"."+Ki,K+"."+kc),ae.set(K,"."+eo,K+"."+Cc),"null"})}else if(Ro in pe){var ce=pe[Ro];return it(ce,function(fe,ae){var X=fe.invoke(ae,ce),K=fe.shared,Y=K.framebuffer,ve=ae.def(Y,".getFramebuffer(",X,")");ae.set(Y,".next",ve);var Ce=K.context;return ae.set(Ce,"."+Ki,ve+"?"+ve+".width:"+Ce+"."+kc),ae.set(Ce,"."+eo,ve+"?"+ve+".height:"+Ce+"."+Cc),ve})}else return null}function Et(I,U,J){var pe=I.static,Te=I.dynamic;function ce(X){if(X in pe){var K=pe[X],Y=!0,ve=K.x|0,Ce=K.y|0,$e,Kr;return"width"in K?$e=K.width|0:Y=!1,"height"in K?Kr=K.height|0:Y=!1,new De(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function($r,Ur){var Or=$r.shared.context,Sr=$e;"width"in K||(Sr=Ur.def(Or,".",Ki,"-",ve));var Pr=Kr;return"height"in K||(Pr=Ur.def(Or,".",eo,"-",Ce)),[ve,Ce,Sr,Pr]})}else if(X in Te){var Lr=Te[X],Mr=it(Lr,function($r,Ur){var Or=$r.invoke(Ur,Lr),Sr=$r.shared.context,Pr=Ur.def(Or,".x|0"),Ir=Ur.def(Or,".y|0"),vt=Ur.def('"width" in ',Or,"?",Or,".width|0:","(",Sr,".",Ki,"-",Pr,")"),Kt=Ur.def('"height" in ',Or,"?",Or,".height|0:","(",Sr,".",eo,"-",Ir,")");return[Pr,Ir,vt,Kt]});return U&&(Mr.thisDep=Mr.thisDep||U.thisDep,Mr.contextDep=Mr.contextDep||U.contextDep,Mr.propDep=Mr.propDep||U.propDep),Mr}else return U?new De(U.thisDep,U.contextDep,U.propDep,function($r,Ur){var Or=$r.shared.context;return[0,0,Ur.def(Or,".",Ki),Ur.def(Or,".",eo)]}):null}var fe=ce(fi);if(fe){var ae=fe;fe=new De(fe.thisDep,fe.contextDep,fe.propDep,function(X,K){var Y=ae.append(X,K),ve=X.shared.context;return K.set(ve,"."+N1,Y[2]),K.set(ve,"."+I1,Y[3]),Y})}return{viewport:fe,scissor_box:ce(dl)}}function aa(I,U){var J=I.static,pe=typeof J[pl]=="string"&&typeof J[jo]=="string";if(pe){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ce=Object.keys(Te);if(ce.length>0&&typeof Te[ce[0]]=="number"){for(var fe=[],ae=0;ae"+Pr+"?"+Y+".constant["+Pr+"]:0;"}).join(""),"}}else{","if(",$e,"(",Y,".buffer)){",$r,"=",Kr,".createStream(",yo,",",Y,".buffer);","}else{",$r,"=",Kr,".getBuffer(",Y,".buffer);","}",Ur,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",$r,".dtype;",Lr.normalized,"=!!",Y,".normalized;");function Or(Sr){K(Lr[Sr],"=",Y,".",Sr,"|0;")}return Or("size"),Or("offset"),Or("stride"),Or("divisor"),K("}}"),K.exit("if(",Lr.isStream,"){",Kr,".destroyStream(",$r,");","}"),Lr}Te[ce]=it(fe,ae)}),Te}function Xa(I){var U=I.static,J=I.dynamic,pe={};return Object.keys(U).forEach(function(Te){var ce=U[Te];pe[Te]=Br(function(fe,ae){return typeof ce=="number"||typeof ce=="boolean"?""+ce:fe.link(ce)})}),Object.keys(J).forEach(function(Te){var ce=J[Te];pe[Te]=it(ce,function(fe,ae){return fe.invoke(ae,ce)})}),pe}function nn(I,U,J,pe,Te){var ce=I.static,fe=I.dynamic,ae=aa(I,U),X=ut(I,Te),K=Et(I,X,Te),Y=Dt(I,Te),ve=an(I,Te),Ce=Ea(I,Te,ae);function $e(Or){var Sr=K[Or];Sr&&(ve[Or]=Sr)}$e(fi),$e(vr(dl));var Kr=Object.keys(ve).length>0,Lr={framebuffer:X,draw:Y,shader:Ce,state:ve,dirty:Kr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Lr.profile=ft(I,Te),Lr.uniforms=Ut(J,Te),Lr.drawVAO=Lr.scopeVAO=Y.vao,!Lr.drawVAO&&Ce.program&&!ae&&V.angle_instanced_arrays&&Y.static.elements){var Mr=!0,$r=Ce.program.attributes.map(function(Or){var Sr=U.static[Or];return Mr=Mr&&!!Sr,Sr});if(Mr&&$r.length>0){var Ur=nr.getVAO(nr.createVAO({attributes:$r,elements:Y.static.elements}));Lr.drawVAO=new De(null,null,null,function(Or,Sr){return Or.link(Ur)}),Lr.useVAO=!0}}return ae?Lr.useVAO=!0:Lr.attributes=Ha(U,Te),Lr.context=Xa(pe,Te),Lr}function ba(I,U,J){var pe=I.shared,Te=pe.context,ce=I.scope();Object.keys(J).forEach(function(fe){U.save(Te,"."+fe);var ae=J[fe],X=ae.append(I,U);Array.isArray(X)?ce(Te,".",fe,"=[",X.join(),"];"):ce(Te,".",fe,"=",X,";")}),U(ce)}function xa(I,U,J,pe){var Te=I.shared,ce=Te.gl,fe=Te.framebuffer,ae;ze&&(ae=U.def(Te.extensions,".webgl_draw_buffers"));var X=I.constants,K=X.drawBuffer,Y=X.backBuffer,ve;J?ve=J.append(I,U):ve=U.def(fe,".next"),pe||U("if(",ve,"!==",fe,".cur){"),U("if(",ve,"){",ce,".bindFramebuffer(",ge,",",ve,".framebuffer);"),ze&&U(ae,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(ae,".drawBuffersWEBGL(",Y,");"),U("}",fe,".cur=",ve,";"),pe||U("}")}function ka(I,U,J){var pe=I.shared,Te=pe.gl,ce=I.current,fe=I.next,ae=pe.current,X=pe.next,K=I.cond(ae,".dirty");Be.forEach(function(Y){var ve=vr(Y);if(!(ve in J.state)){var Ce,$e;if(ve in fe){Ce=fe[ve],$e=ce[ve];var Kr=k(hr[ve].length,function(Mr){return K.def(Ce,"[",Mr,"]")});K(I.cond(Kr.map(function(Mr,$r){return Mr+"!=="+$e+"["+$r+"]"}).join("||")).then(Te,".",Er[ve],"(",Kr,");",Kr.map(function(Mr,$r){return $e+"["+$r+"]="+Mr}).join(";"),";"))}else{Ce=K.def(X,".",ve);var Lr=I.cond(Ce,"!==",ae,".",ve);K(Lr),ve in qe?Lr(I.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),ae,".",ve,"=",Ce,";"):Lr(Te,".",Er[ve],"(",Ce,");",ae,".",ve,"=",Ce,";")}}}),Object.keys(J.state).length===0&&K(ae,".dirty=false;"),U(K)}function Tt(I,U,J,pe){var Te=I.shared,ce=I.current,fe=Te.current,ae=Te.gl,X;rr(Object.keys(J)).forEach(function(K){var Y=J[K];if(!(pe&&!pe(Y))){var ve=Y.append(I,U);if(qe[K]){var Ce=qe[K];Rr(Y)?(X=I.link(ve,{stable:!0}),U(I.cond(X).then(ae,".enable(",Ce,");").else(ae,".disable(",Ce,");")),U(fe,".",K,"=",X,";")):(U(I.cond(ve).then(ae,".enable(",Ce,");").else(ae,".disable(",Ce,");")),U(fe,".",K,"=",ve,";"))}else if(Ci(ve)){var $e=ce[K];U(ae,".",Er[K],"(",ve,");",ve.map(function(Kr,Lr){return $e+"["+Lr+"]="+Kr}).join(";"),";")}else Rr(Y)?(X=I.link(ve,{stable:!0}),U(ae,".",Er[K],"(",X,");",fe,".",K,"=",X,";")):U(ae,".",Er[K],"(",ve,");",fe,".",K,"=",ve,";")}})}function Fa(I,U){ar&&(I.instancing=U.def(I.shared.extensions,".angle_instanced_arrays"))}function Wt(I,U,J,pe,Te){var ce=I.shared,fe=I.stats,ae=ce.current,X=ce.timer,K=J.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function $e(Or){ve=U.def(),Or(ve,"=",Y(),";"),typeof Te=="string"?Or(fe,".count+=",Te,";"):Or(fe,".count++;"),mr&&(pe?(Ce=U.def(),Or(Ce,"=",X,".getNumPendingQueries();")):Or(X,".beginQuery(",fe,");"))}function Kr(Or){Or(fe,".cpuTime+=",Y(),"-",ve,";"),mr&&(pe?Or(X,".pushScopeStats(",Ce,",",X,".getNumPendingQueries(),",fe,");"):Or(X,".endQuery();"))}function Lr(Or){var Sr=U.def(ae,".profile");U(ae,".profile=",Or,";"),U.exit(ae,".profile=",Sr,";")}var Mr;if(K){if(Rr(K)){K.enable?($e(U),Kr(U.exit),Lr("true")):Lr("false");return}Mr=K.append(I,U),Lr(Mr)}else Mr=U.def(ae,".profile");var $r=I.block();$e($r),U("if(",Mr,"){",$r,"}");var Ur=I.block();Kr(Ur),U.exit("if(",Mr,"){",Ur,"}")}function Za(I,U,J,pe,Te){var ce=I.shared;function fe(X){switch(X){case yl:case Bl:case zl:return 2;case tn:case Ss:case Tf:return 3;case Af:case _u:case Au:return 4;default:return 1}}function ae(X,K,Y){var ve=ce.gl,Ce=U.def(X,".location"),$e=U.def(ce.attributes,"[",Ce,"]"),Kr=Y.state,Lr=Y.buffer,Mr=[Y.x,Y.y,Y.z,Y.w],$r=["buffer","normalized","offset","stride"];function Ur(){U("if(!",$e,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Sr=Y.type,Pr;if(Y.size?Pr=U.def(Y.size,"||",K):Pr=K,U("if(",$e,".type!==",Sr,"||",$e,".size!==",Pr,"||",$r.map(function(vt){return $e+"."+vt+"!=="+Y[vt]}).join("||"),"){",ve,".bindBuffer(",yo,",",Lr,".buffer);",ve,".vertexAttribPointer(",[Ce,Pr,Sr,Y.normalized,Y.stride,Y.offset],");",$e,".type=",Sr,";",$e,".size=",Pr,";",$r.map(function(vt){return $e+"."+vt+"="+Y[vt]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",$e,".divisor!==",Ir,"){",I.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",$e,".divisor=",Ir,";}")}}function Or(){U("if(",$e,".buffer){",ve,".disableVertexAttribArray(",Ce,");",$e,".buffer=null;","}if(",vo.map(function(Sr,Pr){return $e+"."+Sr+"!=="+Mr[Pr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Mr,");",vo.map(function(Sr,Pr){return $e+"."+Sr+"="+Mr[Pr]+";"}).join(""),"}")}Kr===Qi?Ur():Kr===As?Or():(U("if(",Kr,"===",Qi,"){"),Ur(),U("}else{"),Or(),U("}"))}pe.forEach(function(X){var K=X.name,Y=J.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(I,U)}else{if(!Te(mt))return;var Ce=I.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function($e){ve[$e]=U.def(Ce,".",$e)})}ae(I.link(X),fe(X.info.type),ve)})}function on(I,U,J,pe,Te,ce){for(var fe=I.shared,ae=fe.gl,X,K=0;K1){for(var sn=[],qi=[],ro=0;ro>1)",Lr],");")}function Ir(){J(Mr,".drawArraysInstancedANGLE(",[Ce,$e,Kr,Lr],");")}Y&&Y!=="null"?Ur?Pr():(J("if(",Y,"){"),Pr(),J("}else{"),Ir(),J("}")):Ir()}function Sr(){function Pr(){J(ce+".drawElements("+[Ce,Kr,$r,$e+"<<(("+$r+"-"+gc+")>>1)"]+");")}function Ir(){J(ce+".drawArrays("+[Ce,$e,Kr]+");")}Y&&Y!=="null"?Ur?Pr():(J("if(",Y,"){"),Pr(),J("}else{"),Ir(),J("}")):Ir()}ar&&(typeof Lr!="number"||Lr>=0)?typeof Lr=="string"?(J("if(",Lr,">0){"),Or(),J("}else if(",Lr,"<0){"),Sr(),J("}")):Or():Sr()}function yt(I,U,J,pe,Te){var ce=Dr(),fe=ce.proc("body",Te);return ar&&(ce.instancing=fe.def(ce.shared.extensions,".angle_instanced_arrays")),I(ce,fe,J,pe),ce.compile().body}function qt(I,U,J,pe){Fa(I,U),J.useVAO?J.drawVAO?U(I.shared.vao,".setVAO(",J.drawVAO.append(I,U),");"):U(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(U(I.shared.vao,".setVAO(null);"),Za(I,U,J,pe.attributes,function(){return!0})),on(I,U,J,pe.uniforms,function(){return!0},!1),ln(I,U,U,J)}function Qt(I,U){var J=I.proc("draw",1);Fa(I,J),ba(I,J,U.context),xa(I,J,U.framebuffer),ka(I,J,U),Tt(I,J,U.state),Wt(I,J,U,!1,!0);var pe=U.shader.progVar.append(I,J);if(J(I.shared.gl,".useProgram(",pe,".program);"),U.shader.program)qt(I,J,U,U.shader.program);else{J(I.shared.vao,".setVAO(null);");var Te=I.global.def("{}"),ce=J.def(pe,".id"),fe=J.def(Te,"[",ce,"]");J(I.cond(fe).then(fe,".call(this,a0);").else(fe,"=",Te,"[",ce,"]=",I.link(function(ae){return yt(qt,I,U,ae,1)}),"(",pe,");",fe,".call(this,a0);"))}Object.keys(U.state).length>0&&J(I.shared.current,".dirty=true;"),I.shared.vao&&J(I.shared.vao,".setVAO(null);")}function z(I,U,J,pe){I.batchId="a1",Fa(I,U);function Te(){return!0}Za(I,U,J,pe.attributes,Te),on(I,U,J,pe.uniforms,Te,!1),ln(I,U,U,J)}function ye(I,U,J,pe){Fa(I,U);var Te=J.contextDep,ce=U.def(),fe="a0",ae="a1",X=U.def();I.shared.props=X,I.batchId=ce;var K=I.scope(),Y=I.scope();U(K.entry,"for(",ce,"=0;",ce,"<",ae,";++",ce,"){",X,"=",fe,"[",ce,"];",Y,"}",K.exit);function ve($r){return $r.contextDep&&Te||$r.propDep}function Ce($r){return!ve($r)}if(J.needsContext&&ba(I,Y,J.context),J.needsFramebuffer&&xa(I,Y,J.framebuffer),Tt(I,Y,J.state,ve),J.profile&&ve(J.profile)&&Wt(I,Y,J,!1,!0),pe)J.useVAO?J.drawVAO?ve(J.drawVAO)?Y(I.shared.vao,".setVAO(",J.drawVAO.append(I,Y),");"):K(I.shared.vao,".setVAO(",J.drawVAO.append(I,K),");"):K(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(K(I.shared.vao,".setVAO(null);"),Za(I,K,J,pe.attributes,Ce),Za(I,Y,J,pe.attributes,ve)),on(I,K,J,pe.uniforms,Ce,!1),on(I,Y,J,pe.uniforms,ve,!0),ln(I,K,Y,J);else{var $e=I.global.def("{}"),Kr=J.shader.progVar.append(I,Y),Lr=Y.def(Kr,".id"),Mr=Y.def($e,"[",Lr,"]");Y(I.shared.gl,".useProgram(",Kr,".program);","if(!",Mr,"){",Mr,"=",$e,"[",Lr,"]=",I.link(function($r){return yt(z,I,J,$r,2)}),"(",Kr,");}",Mr,".call(this,a0[",ce,"],",ce,");")}}function be(I,U){var J=I.proc("batch",2);I.batchId="0",Fa(I,J);var pe=!1,Te=!0;Object.keys(U.context).forEach(function($e){pe=pe||U.context[$e].propDep}),pe||(ba(I,J,U.context),Te=!1);var ce=U.framebuffer,fe=!1;ce?(ce.propDep?pe=fe=!0:ce.contextDep&&pe&&(fe=!0),fe||xa(I,J,ce)):xa(I,J,null),U.state.viewport&&U.state.viewport.propDep&&(pe=!0);function ae($e){return $e.contextDep&&pe||$e.propDep}ka(I,J,U),Tt(I,J,U.state,function($e){return!ae($e)}),(!U.profile||!ae(U.profile))&&Wt(I,J,U,!1,"a1"),U.contextDep=pe,U.needsContext=Te,U.needsFramebuffer=fe;var X=U.shader.progVar;if(X.contextDep&&pe||X.propDep)ye(I,J,U,null);else{var K=X.append(I,J);if(J(I.shared.gl,".useProgram(",K,".program);"),U.shader.program)ye(I,J,U,U.shader.program);else{J(I.shared.vao,".setVAO(null);");var Y=I.global.def("{}"),ve=J.def(K,".id"),Ce=J.def(Y,"[",ve,"]");J(I.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",I.link(function($e){return yt(ye,I,U,$e,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&J(I.shared.current,".dirty=true;"),I.shared.vao&&J(I.shared.vao,".setVAO(null);")}function Nr(I,U){var J=I.proc("scope",3);I.batchId="a2";var pe=I.shared,Te=pe.current;if(ba(I,J,U.context),U.framebuffer&&U.framebuffer.append(I,J),rr(Object.keys(U.state)).forEach(function(ae){var X=U.state[ae],K=X.append(I,J);Ci(K)?K.forEach(function(Y,ve){kr(Y)?J.set(I.next[ae],"["+ve+"]",Y):J.set(I.next[ae],"["+ve+"]",I.link(Y,{stable:!0}))}):Rr(X)?J.set(pe.next,"."+ae,I.link(K,{stable:!0})):J.set(pe.next,"."+ae,K)}),Wt(I,J,U,!0,!0),[ho,bu,qo,bi,Fo].forEach(function(ae){var X=U.draw[ae];if(X){var K=X.append(I,J);kr(K)?J.set(pe.draw,"."+ae,K):J.set(pe.draw,"."+ae,I.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(ae){var X=U.uniforms[ae].append(I,J);Array.isArray(X)&&(X="["+X.map(function(K){return kr(K)?K:I.link(K,{stable:!0})})+"]"),J.set(pe.uniforms,"["+I.link(B.id(ae),{stable:!0})+"]",X)}),Object.keys(U.attributes).forEach(function(ae){var X=U.attributes[ae].append(I,J),K=I.scopeAttrib(ae);Object.keys(new ke).forEach(function(Y){J.set(K,"."+Y,X[Y])})}),U.scopeVAO){var ce=U.scopeVAO.append(I,J);kr(ce)?J.set(pe.vao,".targetVAO",ce):J.set(pe.vao,".targetVAO",I.link(ce,{stable:!0}))}function fe(ae){var X=U.shader[ae];if(X){var K=X.append(I,J);kr(K)?J.set(pe.shader,"."+ae,K):J.set(pe.shader,"."+ae,I.link(K,{stable:!0}))}}fe(jo),fe(pl),Object.keys(U.state).length>0&&(J(Te,".dirty=true;"),J.exit(Te,".dirty=true;")),J("a1(",I.shared.context,",a0,",I.batchId,");")}function Rt(I){if(!(typeof I!="object"||Ci(I))){for(var U=Object.keys(I),J=0;J=0;--yt){var qt=Zr[yt];qt&&qt(Ne,null,0)}V.flush(),lr&&lr.update()}function Et(){!ft&&Zr.length>0&&(ft=d.next(ut))}function aa(){ft&&(d.cancel(ut),ft=null)}function Ea(yt){yt.preventDefault(),_e=!0,aa(),ct.forEach(function(qt){qt()})}function Dt(yt){V.getError(),_e=!1,Ae.restore(),Xr.restore(),ar.restore(),Be.restore(),qe.restore(),Er.restore(),br.restore(),lr&&lr.restore(),vr.procs.refresh(),Et(),yr.forEach(function(qt){qt()})}kr&&(kr.addEventListener(jt,Ea,!1),kr.addEventListener(ua,Dt,!1));function an(){Zr.length=0,aa(),kr&&(kr.removeEventListener(jt,Ea),kr.removeEventListener(ua,Dt)),Xr.clear(),Er.clear(),qe.clear(),br.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),Dr.forEach(function(yt){yt()})}function Ut(yt){function qt(ce){var fe=e({},ce);delete fe.uniforms,delete fe.attributes,delete fe.context,delete fe.vao,"stencil"in fe&&fe.stencil.op&&(fe.stencil.opBack=fe.stencil.opFront=fe.stencil.op,delete fe.stencil.op);function ae(X){if(X in fe){var K=fe[X];delete fe[X],Object.keys(K).forEach(function(Y){fe[X+"."+Y]=K[Y]})}}return ae("blend"),ae("depth"),ae("cull"),ae("stencil"),ae("polygonOffset"),ae("scissor"),ae("sample"),"vao"in ce&&(fe.vao=ce.vao),fe}function Qt(ce,fe){var ae={},X={};return Object.keys(ce).forEach(function(K){var Y=ce[K];if(v.isDynamic(Y)){X[K]=v.unbox(Y,K);return}else if(fe&&Array.isArray(Y)){for(var ve=0;ve0)return I.call(this,pe(ce|0),ce|0)}else if(Array.isArray(ce)){if(ce.length)return I.call(this,ce,ce.length)}else return qr.call(this,ce)}return e(Te,{stats:Rt,destroy:function(){Ht.destroy()}})}var Ha=Er.setFBO=Ut({framebuffer:v.define.call(null,ja,"framebuffer")});function Xa(yt,qt){var Qt=0;vr.procs.poll();var z=qt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=gn),"depth"in qt&&(V.clearDepth(+qt.depth),Qt|=La),"stencil"in qt&&(V.clearStencil(qt.stencil|0),Qt|=dt),V.clear(Qt)}function nn(yt){if("framebuffer"in yt)if(yt.framebuffer&&yt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ha(e({framebuffer:yt.framebuffer.faces[qt]},yt),Xa);else Ha(yt,Xa);else Xa(null,yt)}function ba(yt){Zr.push(yt);function qt(){var Qt=ei(Zr,yt);function z(){var ye=ei(Zr,z);Zr[ye]=Zr[Zr.length-1],Zr.length-=1,Zr.length<=0&&aa()}Zr[Qt]=z}return Et(),{cancel:qt}}function xa(){var yt=cr.viewport,qt=cr.scissor_box;yt[0]=yt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=yt[2]=qt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=yt[3]=qt[3]=V.drawingBufferHeight}function ka(){Ne.tick+=1,Ne.time=Fa(),xa(),vr.procs.poll()}function Tt(){Be.refresh(),xa(),vr.procs.refresh(),lr&&lr.update()}function Fa(){return(p()-Jr)/1e3}Tt();function Wt(yt,qt){var Qt;switch(yt){case"frame":return ba(qt);case"lost":Qt=ct;break;case"restore":Qt=yr;break;case"destroy":Qt=Dr;break;default:}return Qt.push(qt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:an,_gl:V,_refresh:Tt,poll:function(){ka(),lr&&lr.update()},now:Fa,stats:We,getCachedCode:Za,preloadCachedCode:on});return B.onDone(null,ln),ln}return Fi}))});var Gee=N((hOe,zee)=>{"use strict";var B7e=Vf();zee.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},Oee(r)?r={container:r}:z7e(r)?r={container:r}:G7e(r)?r={gl:r}:r=B7e(r,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),r.pixelRatio||(r.pixelRatio=window.pixelRatio||1),r.gl)return r.gl;if(r.canvas&&(r.container=r.canvas.parentNode),r.container){if(typeof r.container=="string"){var t=document.querySelector(r.container);if(!t)throw Error("Element "+r.container+" is not found");r.container=t}Oee(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=Bee(),r.container.appendChild(r.canvas),Iee(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=Bee(),r.container.appendChild(r.canvas),Iee(r);else throw Error("Not DOM environment. Use headless-gl.");return r.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(a){try{r.gl=r.canvas.getContext(a,r.attrs)}catch(n){}return r.gl}),r.gl};function Iee(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function Oee(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function z7e(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function G7e(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Bee(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Hee=N((dOe,Uee)=>{"use strict";var U7e=l9(),H7e=[32,126];Uee.exports=V7e;function V7e(e){e=e||{};var r=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],t=e.canvas||document.createElement("canvas"),a=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],i=e.chars||H7e;if(a&&typeof a!="string"&&(a=U7e(a)),!Array.isArray(i))i=String(i).split("");else if(i.length===2&&typeof i[0]=="number"&&typeof i[1]=="number"){for(var o=[],l=i[0],s=0;l<=i[1];l++)o[s++]=String.fromCharCode(l);i=o}r=r.slice(),t.width=r[0],t.height=r[1];var f=t.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,t.width,t.height),f.font=a,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var u=n[0]/2,c=n[1]/2,l=0;lr[0]-n[0]/2&&(u=n[0]/2,c+=n[1]);return t}});var c9=N(li=>{"use strict";"use restrict";var u9=32;li.INT_BITS=u9;li.INT_MAX=2147483647;li.INT_MIN=-1<0)-(e<0)};li.abs=function(e){var r=e>>u9-1;return(e^r)-r};li.min=function(e,r){return r^(e^r)&-(e65535)<<4,e>>>=r,t=(e>255)<<3,e>>>=t,r|=t,t=(e>15)<<2,e>>>=t,r|=t,t=(e>3)<<1,e>>>=t,r|=t,r|e>>1};li.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};li.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Vee(e){var r=32;return e&=-e,e&&r--,e&65535&&(r-=16),e&16711935&&(r-=8),e&252645135&&(r-=4),e&858993459&&(r-=2),e&1431655765&&(r-=1),r}li.countTrailingZeros=Vee;li.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};li.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};li.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var bg=new Array(256);(function(e){for(var r=0;r<256;++r){var t=r,a=r,n=7;for(t>>>=1;t;t>>>=1)a<<=1,a|=t&1,--n;e[r]=a<>>8&255]<<16|bg[e>>>16&255]<<8|bg[e>>>24&255]};li.interleave2=function(e,r){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r&=65535,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1};li.deinterleave2=function(e,r){return e=e>>>r&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};li.interleave3=function(e,r,t){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|=r<<1,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|t<<2};li.deinterleave3=function(e,r){return e=e>>>r&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};li.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>Vee(e)+1}});var jee=N((yOe,Wee)=>{"use strict";function Yee(e,r,t){var a=e[t]|0;if(a<=0)return[];var n=new Array(a),i;if(t===e.length-1)for(i=0;i0)return Y7e(e|0,r);break;case"object":if(typeof e.length=="number")return Yee(e,r,0);break}return[]}Wee.exports=W7e});var $ee=N(Y_=>{"use strict";Y_.byteLength=X7e;Y_.toByteArray=$7e;Y_.fromByteArray=K7e;var Wf=[],fs=[],j7e=typeof Uint8Array!="undefined"?Uint8Array:Array,v9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(k0=0,Xee=v9.length;k00)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function X7e(e){var r=Zee(e),t=r[0],a=r[1];return(t+a)*3/4-a}function Z7e(e,r,t){return(r+t)*3/4-t}function $7e(e){var r,t=Zee(e),a=t[0],n=t[1],i=new j7e(Z7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=fs[e.charCodeAt(s)]<<2|fs[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=fs[e.charCodeAt(s)]<<10|fs[e.charCodeAt(s+1)]<<4|fs[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function J7e(e){return Wf[e>>18&63]+Wf[e>>12&63]+Wf[e>>6&63]+Wf[e&63]}function Q7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Wf[r>>2]+Wf[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Wf[r>>10]+Wf[r>>4&63]+Wf[r<<2&63]+"=")),n.join("")}});var Jee=N(h9=>{h9.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,u=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-u)-1,d>>=-u,u+=l;u>0;i=i*256+e[r+c],c+=v,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=o*256+e[r+c],c+=v,u-=8);if(i===0)i=1-f;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-f}return(d?-1:1)*o*Math.pow(2,i-a)};h9.write=function(e,r,t,a,n,i){var o,l,s,f=i*8-n-1,u=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,m=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=u):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=u?(l=0,o=u):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,f-=8);e[t+d-p]|=m*128}});var dre=N(Xp=>{"use strict";var d9=$ee(),Wp=Jee(),Qee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Xp.Buffer=tt;Xp.SlowBuffer=i9e;Xp.INSPECT_MAX_BYTES=50;var W_=2147483647;Xp.kMaxLength=W_;tt.TYPED_ARRAY_SUPPORT=e9e();!tt.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function e9e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.buffer}});Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.byteOffset}});function Qu(e){if(e>W_)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,tt.prototype),r}function tt(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g9(e)}return tre(e,r,t)}tt.poolSize=8192;function tre(e,r,t){if(typeof e=="string")return t9e(e,r);if(ArrayBuffer.isView(e))return a9e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(jf(e,ArrayBuffer)||e&&jf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(jf(e,SharedArrayBuffer)||e&&jf(e.buffer,SharedArrayBuffer)))return y9(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return tt.from(a,r,t);let n=n9e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return tt.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}tt.from=function(e,r,t){return tre(e,r,t)};Object.setPrototypeOf(tt.prototype,Uint8Array.prototype);Object.setPrototypeOf(tt,Uint8Array);function are(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function r9e(e,r,t){return are(e),e<=0?Qu(e):r!==void 0?typeof t=="string"?Qu(e).fill(r,t):Qu(e).fill(r):Qu(e)}tt.alloc=function(e,r,t){return r9e(e,r,t)};function g9(e){return are(e),Qu(e<0?0:b9(e)|0)}tt.allocUnsafe=function(e){return g9(e)};tt.allocUnsafeSlow=function(e){return g9(e)};function t9e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!tt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=nre(e,r)|0,a=Qu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function p9(e){let r=e.length<0?0:b9(e.length)|0,t=Qu(r);for(let a=0;a=W_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W_.toString(16)+" bytes");return e|0}function i9e(e){return+e!=e&&(e=0),tt.alloc(+e)}tt.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==tt.prototype};tt.compare=function(r,t){if(jf(r,Uint8Array)&&(r=tt.from(r,r.offset,r.byteLength)),jf(t,Uint8Array)&&(t=tt.from(t,t.offset,t.byteLength)),!tt.isBuffer(r)||!tt.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(tt.isBuffer(o)||(o=tt.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(tt.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function nre(e,r){if(tt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jf(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return m9(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return hre(e).length;default:if(n)return a?-1:m9(e).length;r=(""+r).toLowerCase(),n=!0}}tt.byteLength=nre;function o9e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return y9e(this,r,t);case"utf8":case"utf-8":return ore(this,r,t);case"ascii":return d9e(this,r,t);case"latin1":case"binary":return p9e(this,r,t);case"base64":return v9e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m9e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}tt.prototype._isBuffer=!0;function C0(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}tt.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};Qee&&(tt.prototype[Qee]=tt.prototype.inspect);tt.prototype.compare=function(r,t,a,n,i){if(jf(r,Uint8Array)&&(r=tt.from(r,r.offset,r.byteLength)),!tt.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),f=this.slice(n,i),u=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,_9(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=tt.from(r,a)),tt.isBuffer(r))return r.length===0?-1:Kee(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Kee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function Kee(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(u,c){return i===1?u[c]:u.readUInt16BE(c*i)}let f;if(n){let u=-1;for(f=t;fo&&(t=o-l),f=t;f>=0;f--){let u=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return l9e(this,r,t,a);case"utf8":case"utf-8":return s9e(this,r,t,a);case"ascii":case"latin1":case"binary":return f9e(this,r,t,a);case"base64":return u9e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c9e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function v9e(e,r,t){return r===0&&t===e.length?d9.fromByteArray(e):d9.fromByteArray(e.slice(r,t))}function ore(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,f,u,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],f=e[n+2],(s&192)===128&&(f&192)===128&&(c=(i&15)<<12|(s&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],f=e[n+2],u=e[n+3],(s&192)===128&&(f&192)===128&&(u&192)===128&&(c=(i&15)<<18|(s&63)<<12|(f&63)<<6|u&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return h9e(a)}var ere=4096;function h9e(e){let r=e.length;if(r<=ere)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}tt.prototype.readUintLE=tt.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||ji(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||ji(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};tt.prototype.readUint8=tt.prototype.readUInt8=function(r,t){return r=r>>>0,t||ji(r,1,this.length),this[r]};tt.prototype.readUint16LE=tt.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||ji(r,2,this.length),this[r]|this[r+1]<<8};tt.prototype.readUint16BE=tt.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||ji(r,2,this.length),this[r]<<8|this[r+1]};tt.prototype.readUint32LE=tt.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};tt.prototype.readUint32BE=tt.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};tt.prototype.readBigUInt64LE=Sv(function(r){r=r>>>0,jp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&xg(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,jp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&xg(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||ji(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};tt.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||ji(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};tt.prototype.readInt8=function(r,t){return r=r>>>0,t||ji(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};tt.prototype.readInt16LE=function(r,t){r=r>>>0,t||ji(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};tt.prototype.readInt16BE=function(r,t){r=r>>>0,t||ji(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};tt.prototype.readInt32LE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};tt.prototype.readInt32BE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};tt.prototype.readBigInt64LE=Sv(function(r){r=r>>>0,jp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&xg(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,jp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&xg(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||ji(r,4,this.length),Wp.read(this,r,!0,23,4)};tt.prototype.readFloatBE=function(r,t){return r=r>>>0,t||ji(r,4,this.length),Wp.read(this,r,!1,23,4)};tt.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||ji(r,8,this.length),Wp.read(this,r,!0,52,8)};tt.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||ji(r,8,this.length),Wp.read(this,r,!1,52,8)};function il(e,r,t,a,n,i){if(!tt.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;il(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;il(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};tt.prototype.writeUint8=tt.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,1,255,0),this[t]=r&255,t+1};tt.prototype.writeUint16LE=tt.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};tt.prototype.writeUint16BE=tt.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};tt.prototype.writeUint32LE=tt.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};tt.prototype.writeUint32BE=tt.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function lre(e,r,t,a,n){vre(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function sre(e,r,t,a,n){vre(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}tt.prototype.writeBigUInt64LE=Sv(function(r,t=0){return lre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});tt.prototype.writeBigUInt64BE=Sv(function(r,t=0){return sre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});tt.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);il(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};tt.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);il(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};tt.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};tt.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};tt.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};tt.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};tt.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||il(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};tt.prototype.writeBigInt64LE=Sv(function(r,t=0){return lre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});tt.prototype.writeBigInt64BE=Sv(function(r,t=0){return sre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fre(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function ure(e,r,t,a,n){return r=+r,t=t>>>0,n||fre(e,r,t,4,34028234663852886e22,-34028234663852886e22),Wp.write(e,r,t,a,23,4),t+4}tt.prototype.writeFloatLE=function(r,t,a){return ure(this,r,t,!0,a)};tt.prototype.writeFloatBE=function(r,t,a){return ure(this,r,t,!1,a)};function cre(e,r,t,a,n){return r=+r,t=t>>>0,n||fre(e,r,t,8,17976931348623157e292,-17976931348623157e292),Wp.write(e,r,t,a,52,8),t+8}tt.prototype.writeDoubleLE=function(r,t,a){return cre(this,r,t,!0,a)};tt.prototype.writeDoubleBE=function(r,t,a){return cre(this,r,t,!1,a)};tt.prototype.copy=function(r,t,a,n){if(!tt.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=rre(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=rre(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function rre(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function g9e(e,r,t){jp(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&xg(r,e.length-(t+1))}function vre(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new Yp.ERR_OUT_OF_RANGE("value",l,e)}g9e(a,n,i)}function jp(e,r){if(typeof e!="number")throw new Yp.ERR_INVALID_ARG_TYPE(r,"number",e)}function xg(e,r,t){throw Math.floor(e)!==e?(jp(e,t),new Yp.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new Yp.ERR_BUFFER_OUT_OF_BOUNDS:new Yp.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var b9e=/[^+/0-9A-Za-z-_]/g;function x9e(e){if(e=e.split("=")[0],e=e.trim().replace(b9e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function m9(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function _9e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function hre(e){return d9.toByteArray(x9e(e))}function j_(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function jf(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function _9(e){return e!==e}var A9e=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r})();function Sv(e){return typeof BigInt=="undefined"?T9e:e}function T9e(){throw new Error("BigInt not supported")}});var Cre=N(Oa=>{"use strict";var Ev=c9(),fo=jee(),pre=dre().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:fo([32,0]),UINT16:fo([32,0]),UINT32:fo([32,0]),BIGUINT64:fo([32,0]),INT8:fo([32,0]),INT16:fo([32,0]),INT32:fo([32,0]),BIGINT64:fo([32,0]),FLOAT:fo([32,0]),DOUBLE:fo([32,0]),DATA:fo([32,0]),UINT8C:fo([32,0]),BUFFER:fo([32,0])});var M9e=typeof Uint8ClampedArray!="undefined",S9e=typeof BigUint64Array!="undefined",E9e=typeof BigInt64Array!="undefined",hi=window.__TYPEDARRAY_POOL;hi.UINT8C||(hi.UINT8C=fo([32,0]));hi.BIGUINT64||(hi.BIGUINT64=fo([32,0]));hi.BIGINT64||(hi.BIGINT64=fo([32,0]));hi.BUFFER||(hi.BUFFER=fo([32,0]));var X_=hi.DATA,Z_=hi.BUFFER;Oa.free=function(r){if(pre.isBuffer(r))Z_[Ev.log2(r.length)].push(r);else{if(Object.prototype.toString.call(r)!=="[object ArrayBuffer]"&&(r=r.buffer),!r)return;var t=r.length||r.byteLength,a=Ev.log2(t)|0;X_[a].push(r)}};function yre(e){if(e){var r=e.length||e.byteLength,t=Ev.log2(r);X_[t].push(e)}}function k9e(e){yre(e.buffer)}Oa.freeUint8=Oa.freeUint16=Oa.freeUint32=Oa.freeBigUint64=Oa.freeInt8=Oa.freeInt16=Oa.freeInt32=Oa.freeBigInt64=Oa.freeFloat32=Oa.freeFloat=Oa.freeFloat64=Oa.freeDouble=Oa.freeUint8Clamped=Oa.freeDataView=k9e;Oa.freeArrayBuffer=yre;Oa.freeBuffer=function(r){Z_[Ev.log2(r.length)].push(r)};Oa.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return ol(r);switch(t){case"uint8":return w9(r);case"uint16":return mre(r);case"uint32":return gre(r);case"int8":return bre(r);case"int16":return xre(r);case"int32":return _re(r);case"float":case"float32":return wre(r);case"double":case"float64":return Are(r);case"uint8_clamped":return Tre(r);case"bigint64":return Sre(r);case"biguint64":return Mre(r);case"buffer":return kre(r);case"data":case"dataview":return Ere(r);default:return null}return null};function ol(r){var r=Ev.nextPow2(r),t=Ev.log2(r),a=X_[t];return a.length>0?a.pop():new ArrayBuffer(r)}Oa.mallocArrayBuffer=ol;function w9(e){return new Uint8Array(ol(e),0,e)}Oa.mallocUint8=w9;function mre(e){return new Uint16Array(ol(2*e),0,e)}Oa.mallocUint16=mre;function gre(e){return new Uint32Array(ol(4*e),0,e)}Oa.mallocUint32=gre;function bre(e){return new Int8Array(ol(e),0,e)}Oa.mallocInt8=bre;function xre(e){return new Int16Array(ol(2*e),0,e)}Oa.mallocInt16=xre;function _re(e){return new Int32Array(ol(4*e),0,e)}Oa.mallocInt32=_re;function wre(e){return new Float32Array(ol(4*e),0,e)}Oa.mallocFloat32=Oa.mallocFloat=wre;function Are(e){return new Float64Array(ol(8*e),0,e)}Oa.mallocFloat64=Oa.mallocDouble=Are;function Tre(e){return M9e?new Uint8ClampedArray(ol(e),0,e):w9(e)}Oa.mallocUint8Clamped=Tre;function Mre(e){return S9e?new BigUint64Array(ol(8*e),0,e):null}Oa.mallocBigUint64=Mre;function Sre(e){return E9e?new BigInt64Array(ol(8*e),0,e):null}Oa.mallocBigInt64=Sre;function Ere(e){return new DataView(ol(e),0,e)}Oa.mallocDataView=Ere;function kre(e){e=Ev.nextPow2(e);var r=Ev.log2(e),t=Z_[r];return t.length>0?t.pop():new pre(e)}Oa.mallocBuffer=kre;Oa.clearCache=function(){for(var r=0;r<32;++r)hi.UINT8[r].length=0,hi.UINT16[r].length=0,hi.UINT32[r].length=0,hi.INT8[r].length=0,hi.INT16[r].length=0,hi.INT32[r].length=0,hi.FLOAT[r].length=0,hi.DOUBLE[r].length=0,hi.BIGUINT64[r].length=0,hi.BIGINT64[r].length=0,hi.UINT8C[r].length=0,X_[r].length=0,Z_[r].length=0}});var Dre=N((wOe,Lre)=>{"use strict";var C9e=Object.prototype.toString;Lre.exports=function(e){var r;return C9e.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var A9=N((AOe,Rre)=>{Rre.exports=function(r,t){t||(t=[0,""]),r=String(r);var a=parseFloat(r,10);return t[0]=a,t[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}});var Pre=N((TOe,qre)=>{"use strict";var L9e=A9();qre.exports=Fre;var _g=96;function T9(e,r){var t=L9e(getComputedStyle(e).getPropertyValue(r));return t[0]*Fre(t[1],e)}function D9e(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=T9(t,"font-size")/128;return r.removeChild(t),a}function Fre(e,r){switch(r=r||document.body,e=(e||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),e){case"%":return r.clientHeight/100;case"ch":case"ex":return D9e(e,r);case"em":return T9(r,"font-size");case"rem":return T9(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return _g;case"cm":return _g/2.54;case"mm":return _g/25.4;case"pt":return _g/72;case"pc":return _g/6}return 1}});var Ore=N((MOe,Ire)=>{"use strict";Ire.exports=Q_;var R9e=Q_.canvas=document.createElement("canvas"),$_=R9e.getContext("2d"),Nre=J_([32,126]);Q_.createPairs=J_;Q_.ascii=Nre;function Q_(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=J_(r):Array.isArray(r)?a=r:(r.o?a=J_(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=Nre),$_.font=n+"px "+e;for(var o=0;on*i){var u=(f-s)/n;t[l]=u*1e3}}return t}function J_(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";Gre.exports=kv;kv.canvas=document.createElement("canvas");kv.cache={};function kv(o,r){r||(r={}),(typeof o=="string"||Array.isArray(o))&&(r.family=o);var t=Array.isArray(r.family)?r.family.join(", "):r.family;if(!t)throw Error("`family` must be defined");var a=r.size||r.fontSize||r.em||48,n=r.weight||r.fontWeight||"",i=r.style||r.fontStyle||"",o=[i,n,a].join(" ")+"px "+t,l=r.origin||"top";if(kv.cache[t]&&a<=kv.cache[t].em)return Bre(kv.cache[t],l);var s=r.canvas||kv.canvas,f=s.getContext("2d"),u={upper:r.upper!==void 0?r.upper:"H",lower:r.lower!==void 0?r.lower:"x",descent:r.descent!==void 0?r.descent:"p",ascent:r.ascent!==void 0?r.ascent:"h",tittle:r.tittle!==void 0?r.tittle:"i",overshoot:r.overshoot!==void 0?r.overshoot:"O"},c=Math.ceil(a*1.5);s.height=c,s.width=c*.5,f.font=o;var v="H",d={top:0};f.clearRect(0,0,c,c),f.textBaseline="top",f.fillStyle="black",f.fillText(v,0,0);var p=Xf(f.getImageData(0,0,c,c));f.clearRect(0,0,c,c),f.textBaseline="bottom",f.fillText(v,0,c);var m=Xf(f.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-m+p,f.clearRect(0,0,c,c),f.textBaseline="alphabetic",f.fillText(v,0,c);var y=Xf(f.getImageData(0,0,c,c)),b=c-y-1+p;d.baseline=d.alphabetic=b,f.clearRect(0,0,c,c),f.textBaseline="middle",f.fillText(v,0,c*.5);var T=Xf(f.getImageData(0,0,c,c));d.median=d.middle=c-T-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="hanging",f.fillText(v,0,c*.5);var _=Xf(f.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="ideographic",f.fillText(v,0,c);var x=Xf(f.getImageData(0,0,c,c));if(d.ideographic=c-x-1+p,u.upper&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.upper,0,0),d.upper=Xf(f.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),u.lower&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.lower,0,0),d.lower=Xf(f.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),u.tittle&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.tittle,0,0),d.tittle=Xf(f.getImageData(0,0,c,c))),u.ascent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.ascent,0,0),d.ascent=Xf(f.getImageData(0,0,c,c))),u.descent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.descent,0,0),d.descent=zre(f.getImageData(0,0,c,c))),u.overshoot){f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.overshoot,0,0);var A=zre(f.getImageData(0,0,c,c));d.overshoot=A-b}for(var E in d)d[E]/=a;return d.em=a,kv.cache[t]=d,Bre(d,l)}function Bre(e,r){var t={};typeof r=="string"&&(r=e[r]);for(var a in e)a!=="em"&&(t[a]=e[a]-r);return t}function Xf(e){for(var r=e.height,t=e.data,a=3;a0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var Wre=N((EOe,Yre)=>{"use strict";var Zp=Pee(),F9e=Vf(),q9e=Nee(),P9e=Gee(),N9e=j7(),M9=w0(),I9e=Hee(),Cv=Cre(),O9e=bp(),B9e=Dre(),z9e=A9(),G9e=Pre(),U9e=Ore(),H9e=ii(),V9e=Ure(),Y9e=p0(),W9e=c9(),Hre=W9e.nextPow2,Vre=new N9e,e5=!1;document.body&&(K_=document.body.appendChild(document.createElement("div")),K_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(K_).fontStretch&&(e5=!0),document.body.removeChild(K_));var K_,Qa=function(r){j9e(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=P9e(r),this.shader=Vre.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||q9e({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),Vre.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(B9e(r)?r:{})};Qa.prototype.createShader=function(){var r=this.regl,t=r({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:r.prop("count"),offset:r.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:r.this("sizeBuffer")},width:{offset:0,stride:8,buffer:r.this("sizeBuffer")},char:r.this("charBuffer"),position:r.this("position")},uniforms:{atlasSize:function(n,i){return[i.atlas.width,i.atlas.height]},atlasDim:function(n,i){return[i.atlas.cols,i.atlas.rows]},atlas:function(n,i){return i.atlas.texture},charStep:function(n,i){return i.atlas.step},em:function(n,i){return i.atlas.em},color:r.prop("color"),opacity:r.prop("opacity"),viewport:r.this("viewportArray"),scale:r.this("scale"),align:r.prop("align"),baseline:r.prop("baseline"),translate:r.this("translate"),positionOffset:r.prop("positionOffset")},primitive:"points",viewport:r.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -783,12 +783,12 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),a={};return{regl:r,draw:t,atlas:a}};Qa.prototype.update=function(r){var t=this;if(typeof r=="string")r={text:r};else if(!r)return;r=T9e(r,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),r.opacity!=null&&(Array.isArray(r.opacity)?this.opacity=r.opacity.map(function(Le){return parseFloat(Le)}):this.opacity=parseFloat(r.opacity)),r.viewport!=null&&(this.viewport=C9e(r.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),r.kerning!=null&&(this.kerning=r.kerning),r.offset!=null&&(typeof r.offset=="number"&&(r.offset=[r.offset,0]),this.positionOffset=N9e(r.offset)),r.direction&&(this.direction=r.direction),r.range&&(this.range=r.range,this.scale=[1/(r.range[2]-r.range[0]),1/(r.range[3]-r.range[1])],this.translate=[-r.range[0],-r.range[1]]),r.scale&&(this.scale=r.scale),r.translate&&(this.translate=r.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!r.font&&(r.font=Qa.baseFontSize+"px sans-serif");var a=!1,n=!1;if(r.font&&(Array.isArray(r.font)?r.font:[r.font]).forEach(function(Le,Ve){if(typeof Le=="string")try{Le=Xp.parse(Le)}catch(Fe){Le=Xp.parse(Qa.baseFontSize+"px "+Le)}else{var we=Le.style,ur=Le.weight,Oe=Le.stretch,Ue=Le.variant;Le=Xp.parse(Xp.stringify(Le)),we&&(Le.style=we),ur&&(Le.weight=ur),Oe&&(Le.stretch=Oe),Ue&&(Le.variant=Ue)}var xr=Xp.stringify({size:Qa.baseFontSize,family:Le.family,stretch:K_?Le.stretch:void 0,variant:Le.variant,weight:Le.weight,style:Le.style}),Ye=D9e(Le.size),re=Math.round(Ye[0]*F9e(Ye[1]));if(re!==t.fontSize[Ve]&&(n=!0,t.fontSize[Ve]=re),(!t.font[Ve]||xr!=t.font[Ve].baseString)&&(a=!0,t.font[Ve]=Qa.fonts[xr],!t.font[Ve])){var de=Le.family.join(", "),ne=[Le.style];Le.style!=Le.variant&&ne.push(Le.variant),Le.variant!=Le.weight&&ne.push(Le.weight),K_&&Le.weight!=Le.stretch&&ne.push(Le.stretch),t.font[Ve]={baseString:xr,family:de,weight:Le.weight,stretch:Le.stretch,style:Le.style,variant:Le.variant,width:{},kerning:{},metrics:P9e(de,{origin:"top",fontSize:Qa.baseFontSize,fontStyle:ne.join(" ")})},Qa.fonts[xr]=t.font[Ve]}}),(a||n)&&this.font.forEach(function(Le,Ve){var we=Xp.stringify({size:t.fontSize[Ve],family:Le.family,stretch:K_?Le.stretch:void 0,variant:Le.variant,weight:Le.weight,style:Le.style});if(t.fontAtlas[Ve]=t.shader.atlas[we],!t.fontAtlas[Ve]){var ur=Le.metrics;t.shader.atlas[we]=t.fontAtlas[Ve]={fontString:we,step:Math.ceil(t.fontSize[Ve]*ur.bottom*.5)*2,em:t.fontSize[Ve],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}r.text==null&&(r.text=t.text)}),typeof r.text=="string"&&r.position&&r.position.length>2){for(var i=Array(r.position.length*.5),o=0;o2){for(var f=!r.position[0].length,u=Cv.mallocFloat(this.count*2),c=0,v=0;c1?t.align[Ve]:t.align[0]:t.align;if(typeof we=="number")return we;switch(we){case"right":case"end":return-Le;case"center":case"centre":case"middle":return-Le*.5}return 0})),this.baseline==null&&r.baseline==null&&(r.baseline=0),r.baseline!=null&&(this.baseline=r.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Le,Ve){var we=(t.font[Ve]||t.font[0]).metrics,ur=0;return ur+=we.bottom*.5,typeof Le=="number"?ur+=Le-we.baseline:ur+=-we[Le],ur*=-1,ur})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=T9(r.color,"uint8");else{var ee;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var te=r.color.length;ee=Cv.mallocUint8(te);for(var Q=(r.color.subarray||r.color.slice).bind(r.color),J=0;J4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(le){var Ee=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(Ee);for(var Ge=0;Ge1?this.counts[Ge]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ge]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ge*4,Ge*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ge]:this.opacity,baseline:this.baselineOffset[Ge]!=null?this.baselineOffset[Ge]:this.baselineOffset[0],align:this.align?this.alignOffset[Ge]!=null?this.alignOffset[Ge]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ge]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ge*2,Ge*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Qa.prototype.destroy=function(){};Qa.prototype.kerning=!0;Qa.prototype.position={constant:new Float32Array(2)};Qa.prototype.translate=null;Qa.prototype.scale=null;Qa.prototype.font=null;Qa.prototype.text="";Qa.prototype.positionOffset=[0,0];Qa.prototype.opacity=1;Qa.prototype.color=new Uint8Array([0,0,0,255]);Qa.prototype.alignOffset=[0,0];Qa.maxAtlasSize=1024;Qa.atlasCanvas=document.createElement("canvas");Qa.atlasContext=Qa.atlasCanvas.getContext("2d",{alpha:!1});Qa.baseFontSize=64;Qa.fonts={};function O9e(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}Hre.exports=Qa});var jre=N((gOe,Wre)=>{"use strict";var Yre=ca(),B9e=function(){};Wre.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=B9e);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=Yre.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=Yre.lightLine,a.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",a.appendChild(n),r.container.appendChild(a),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var Xre=N((M9,S9)=>{(function(e,r){typeof M9=="object"&&typeof S9!="undefined"?S9.exports=r():e.createREGL=r()})(M9,function(){"use strict";var e=function(S,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(S.substr(1,S.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(S);if(he)return l(S.substr(0,he.index)).concat(l(he[1])).concat(l(S.substr(he.index+he[0].length)));var xe=S.split(".");if(xe.length===1)return['"'+o(S)+'"'];for(var Ae=[],_e=0;_e65535)<<4,S>>>=B,V=(S>255)<<3,S>>>=V,B|=V,V=(S>15)<<2,S>>>=V,B|=V,V=(S>3)<<1,S>>>=V,B|=V,B|S>>1}function J(){var S=k(8,function(){return[]});function B(Ae){var _e=te(Ae),We=S[Q(_e)>>2];return We.length>0?We.pop():new ArrayBuffer(_e)}function V(Ae){S[Q(Ae.byteLength)>>2].push(Ae)}function he(Ae,_e){var We=null;switch(Ae){case F:We=new Int8Array(B(_e),0,_e);break;case P:We=new Uint8Array(B(_e),0,_e);break;case O:We=new Int16Array(B(2*_e),0,_e);break;case R:We=new Uint16Array(B(2*_e),0,_e);break;case H:We=new Int32Array(B(4*_e),0,_e);break;case W:We=new Uint32Array(B(4*_e),0,_e);break;case ee:We=new Float32Array(B(4*_e),0,_e);break;default:return null}return We.length!==_e?We.subarray(0,_e):We}function xe(Ae){V(Ae.buffer)}return{alloc:B,free:V,allocType:he,freeType:xe}}var j=J();j.zero=J();var se=3408,le=3410,Ee=3411,Ge=3412,Le=3413,Ve=3414,we=3415,ur=33901,Oe=33902,Ue=3379,xr=3386,Ye=34921,re=36347,de=36348,ne=35661,Fe=35660,$e=34930,Ke=36349,Cr=34076,Ar=34024,gr=7936,et=7937,Hr=7938,at=35724,wr=34047,Vr=36063,rt=34852,Pe=3553,or=34067,st=34069,kt=33984,Tr=6408,tr=5126,sr=5121,zr=36160,nt=36053,Yr=36064,Wr=16384,xt=function(S,B){var V=1;B.ext_texture_filter_anisotropic&&(V=S.getParameter(wr));var he=1,xe=1;B.webgl_draw_buffers&&(he=S.getParameter(rt),xe=S.getParameter(Vr));var Ae=!!B.oes_texture_float;if(Ae){var _e=S.createTexture();S.bindTexture(Pe,_e),S.texImage2D(Pe,0,Tr,1,1,0,Tr,tr,null);var We=S.createFramebuffer();if(S.bindFramebuffer(zr,We),S.framebufferTexture2D(zr,Yr,Pe,_e,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(zr)!==nt)Ae=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(Wr);var ir=j.allocType(tr,4);S.readPixels(0,0,1,1,Tr,tr,ir),S.getError()?Ae=!1:(S.deleteFramebuffer(We),S.deleteTexture(_e),Ae=ir[0]===1),j.freeType(ir)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var $r=S.createTexture(),Rr=j.allocType(sr,36);S.activeTexture(kt),S.bindTexture(or,$r),S.texImage2D(st,0,Tr,3,3,0,Tr,sr,Rr),j.freeType(Rr),S.bindTexture(or,null),S.deleteTexture($r),lr=!S.getError()}return{colorBits:[S.getParameter(le),S.getParameter(Ee),S.getParameter(Ge),S.getParameter(Le)],depthBits:S.getParameter(Ve),stencilBits:S.getParameter(we),subpixelBits:S.getParameter(se),extensions:Object.keys(B).filter(function(yr){return!!B[yr]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:xe,pointSizeDims:S.getParameter(ur),lineWidthDims:S.getParameter(Oe),maxViewportDims:S.getParameter(xr),maxCombinedTextureUnits:S.getParameter(ne),maxCubeMapSize:S.getParameter(Cr),maxRenderbufferSize:S.getParameter(Ar),maxTextureUnits:S.getParameter($e),maxTextureSize:S.getParameter(Ue),maxAttributes:S.getParameter(Ye),maxVertexUniforms:S.getParameter(re),maxVertexTextureUnits:S.getParameter(Fe),maxVaryingVectors:S.getParameter(de),maxFragmentUniforms:S.getParameter(Ke),glsl:S.getParameter(at),renderer:S.getParameter(et),vendor:S.getParameter(gr),version:S.getParameter(Hr),readFloat:Ae,npotTextureCube:lr}},jr=function(S){return S instanceof Uint8Array||S instanceof Uint16Array||S instanceof Uint32Array||S instanceof Int8Array||S instanceof Int16Array||S instanceof Int32Array||S instanceof Float32Array||S instanceof Float64Array||S instanceof Uint8ClampedArray};function ot(S){return!!S&&typeof S=="object"&&Array.isArray(S.shape)&&Array.isArray(S.stride)&&typeof S.offset=="number"&&S.shape.length===S.stride.length&&(Array.isArray(S.data)||jr(S.data))}var dr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:wt,flatten:Mt};function Ie(S,B,V){for(var he=0;he0){var Xr;if(Array.isArray(ke[0])){hr=At(ke);for(var Be=1,qe=1;qe0){if(typeof Be[0]=="number"){var fr=j.allocType(ze.dtype,Be.length);hi(fr,Be),hr(fr,Er),j.freeType(fr)}else if(Array.isArray(Be[0])||jr(Be[0])){vr=At(Be);var cr=mn(Be,vr,ze.dtype);hr(cr,Er),j.freeType(cr)}}}else if(ot(Be)){vr=Be.shape;var kr=Be.stride,Zr=0,ct=0,mr=0,Dr=0;vr.length===1?(Zr=vr[0],ct=1,mr=kr[0],Dr=0):vr.length===2&&(Zr=vr[0],ct=vr[1],mr=kr[0],Dr=kr[1]);var ft=Array.isArray(Be.data)?ze.dtype:va(Be.data),ut=j.allocType(ft,Zr*ct);Xi(ut,Be.data,Zr,ct,mr,Dr,Be.offset),hr(ut,Er),j.freeType(ut)}return br}return Ze||br(ue),br._reglType="buffer",br._buffer=ze,br.subdata=Xr,V.profile&&(br.stats=ze.stats),br.destroy=function(){Rr(ze)},br}function Ne(){dr(Ae).forEach(function(ue){ue.buffer=S.createBuffer(),S.bindBuffer(ue.type,ue.buffer),S.bufferData(ue.type,ue.persistentData||ue.byteLength,ue.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var ue=0;return Object.keys(Ae).forEach(function(ke){ue+=Ae[ke].stats.size}),ue}),{create:yr,createStream:ir,destroyStream:nr,clear:function(){dr(Ae).forEach(Rr),We.forEach(Rr)},getBuffer:function(ue){return ue&&ue._buffer instanceof _e?ue._buffer:null},restore:Ne,_initBuffer:$r}}var Ya=0,wn=0,ki=1,vs=1,Ll=4,ac=4,Go={points:Ya,point:wn,lines:ki,line:vs,triangles:Ll,triangle:ac,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Qf=0,Kf=1,Zi=4,di=5120,zi=5121,Dl=5122,pi=5123,Pt=5124,$t=5125,fa=34963,_t=35040,$n=35044;function Ga(S,B,V,he){var xe={},Ae=0,_e={uint8:zi,uint16:pi};B.oes_element_index_uint&&(_e.uint32=$t);function We(Ne){this.id=Ae++,xe[this.id]=this,this.buffer=Ne,this.primType=Zi,this.vertCount=0,this.type=0}We.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var ue=ir.pop();return ue||(ue=new We(V.create(null,fa,!0,!1)._buffer)),$r(ue,Ne,_t,-1,-1,0,0),ue}function lr(Ne){ir.push(Ne)}function $r(Ne,ue,ke,Ze,ar,ze,br){Ne.buffer.bind();var hr;if(ue){var Xr=br;!br&&(!jr(ue)||ot(ue)&&!jr(ue.data))&&(Xr=B.oes_element_index_uint?$t:pi),V._initBuffer(Ne.buffer,ue,ke,Xr,3)}else S.bufferData(fa,ze,ke),Ne.buffer.dtype=hr||zi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(hr=br,!br){switch(Ne.buffer.dtype){case zi:case di:hr=zi;break;case pi:case Dl:hr=pi;break;case $t:case Pt:hr=$t;break;default:}Ne.buffer.dtype=hr}Ne.type=hr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,hr===pi?Be>>=1:hr===$t&&(Be>>=2)),Ne.vertCount=Be;var qe=Ze;if(Ze<0){qe=Zi;var Er=Ne.buffer.dimension;Er===1&&(qe=Qf),Er===2&&(qe=Kf),Er===3&&(qe=Zi)}Ne.primType=qe}function Rr(Ne){he.elementsCount--,delete xe[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function yr(Ne,ue){var ke=V.create(null,fa,!0),Ze=new We(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Ze.primType=Zi,Ze.vertCount=0,Ze.type=zi;else if(typeof ze=="number")ke(ze),Ze.primType=Zi,Ze.vertCount=ze|0,Ze.type=zi;else{var br=null,hr=$n,Xr=-1,Be=-1,qe=0,Er=0;Array.isArray(ze)||jr(ze)||ot(ze)?br=ze:("data"in ze&&(br=ze.data),"usage"in ze&&(hr=Ln[ze.usage]),"primitive"in ze&&(Xr=Go[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Er=_e[ze.type]),"length"in ze?qe=ze.length|0:(qe=Be,Er===pi||Er===Dl?qe*=2:(Er===$t||Er===Pt)&&(qe*=4))),$r(Ze,br,hr,Xr,Be,qe,Er)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Ze,ar.subdata=function(ze,br){return ke.subdata(ze,br),ar},ar.destroy=function(){Rr(Ze)},ar}return{create:yr,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof We?Ne._elements:null},clear:function(){dr(xe).forEach(Rr)}}}var Nn=new Float32Array(1),ra=new Uint32Array(Nn.buffer),To=5123;function ll(S){for(var B=j.allocType(To,S.length),V=0;V>>31<<15,Ae=(he<<1>>>24)-127,_e=he>>13&1023;if(Ae<-24)B[V]=xe;else if(Ae<-14){var We=-14-Ae;B[V]=xe+(_e+1024>>We)}else Ae>15?B[V]=xe+31744:B[V]=xe+(Ae+15<<10)+_e}return B}function Ci(S){return Array.isArray(S)||jr(S)}var a1=34467,An=3553,Fl=34067,Uo=34069,mi=6408,nf=6406,Ho=6407,Mo=6409,Rl=6410,nc=32854,Vo=32855,hs=36194,N0=32819,n1=32820,ic=33635,Bv=34042,ds=6402,ql=34041,Yo=35904,So=35906,yi=36193,of=33776,ps=33777,sl=33778,lf=33779,zv=35986,oc=35987,eu=34798,Gv=35840,Uv=35841,lc=35842,Hv=35843,sc=36196,Eo=5121,sf=5123,ru=5125,Gi=5126,ff=10242,i1=10243,o1=10497,tu=33071,I0=33648,au=10240,l1=10241,Pl=9728,fc=9729,ms=9984,uf=9985,ys=9986,fl=9987,O0=33170,ul=4352,s1=4353,uc=4354,f1=34046,u1=3317,c1=37440,B0=37441,nu=37443,Vv=37444,ko=33984,z0=[ms,ys,uf,fl],Li=[0,Mo,Rl,Ho,mi],Tn={};Tn[Mo]=Tn[nf]=Tn[ds]=1,Tn[ql]=Tn[Rl]=2,Tn[Ho]=Tn[Yo]=3,Tn[mi]=Tn[So]=4;function Ji(S){return"[object "+S+"]"}var iu=Ji("HTMLCanvasElement"),cl=Ji("OffscreenCanvas"),cf=Ji("CanvasRenderingContext2D"),cc=Ji("ImageBitmap"),Yv=Ji("HTMLImageElement"),Wv=Ji("HTMLVideoElement"),v1=Object.keys(Nt).concat([iu,cl,cf,cc,Yv,Wv]),co=[];co[Eo]=1,co[Gi]=4,co[yi]=2,co[sf]=2,co[ru]=4;var Ta=[];Ta[nc]=2,Ta[Vo]=2,Ta[hs]=2,Ta[ql]=4,Ta[of]=.5,Ta[ps]=.5,Ta[sl]=1,Ta[lf]=1,Ta[zv]=.5,Ta[oc]=1,Ta[eu]=1,Ta[Gv]=.5,Ta[Uv]=.25,Ta[lc]=.5,Ta[Hv]=.25,Ta[sc]=.5;function jv(S){return Array.isArray(S)&&(S.length===0||typeof S[0]=="number")}function Xv(S){if(!Array.isArray(S))return!1;var B=S.length;return!(B===0||!Ci(S[0]))}function $i(S){return Object.prototype.toString.call(S)}function Zv(S){return $i(S)===iu}function Jv(S){return $i(S)===cl}function h1(S){return $i(S)===cf}function d1(S){return $i(S)===cc}function p1(S){return $i(S)===Yv}function m1(S){return $i(S)===Wv}function ou(S){if(!S)return!1;var B=$i(S);return v1.indexOf(B)>=0?!0:jv(S)||Xv(S)||ot(S)}function $v(S){return Nt[Object.prototype.toString.call(S)]|0}function y1(S,B){var V=B.length;switch(S.type){case Eo:case sf:case ru:case Gi:var he=j.allocType(S.type,V);he.set(B),S.data=he;break;case yi:S.data=ll(B);break;default:}}function Qv(S,B){return j.allocType(S.type===yi?Gi:S.type,B)}function vc(S,B){S.type===yi?(S.data=ll(B),j.freeType(B)):S.data=B}function G0(S,B,V,he,xe,Ae){for(var _e=S.width,We=S.height,ir=S.channels,nr=_e*We*ir,lr=Qv(S,nr),$r=0,Rr=0;Rr=1;)We+=_e*ir*ir,ir/=2;return We}else return _e*V*he}function U0(S,B,V,he,xe,Ae,_e){var We={"don't care":ul,"dont care":ul,nice:uc,fast:s1},ir={repeat:o1,clamp:tu,mirror:I0},nr={nearest:Pl,linear:fc},lr=e({mipmap:fl,"nearest mipmap nearest":ms,"linear mipmap nearest":uf,"nearest mipmap linear":ys,"linear mipmap linear":fl},nr),$r={none:0,browser:Vv},Rr={uint8:Eo,rgba4:N0,rgb565:ic,"rgb5 a1":n1},yr={alpha:nf,luminance:Mo,"luminance alpha":Rl,rgb:Ho,rgba:mi,rgba4:nc,"rgb5 a1":Vo,rgb565:hs},Ne={};B.ext_srgb&&(yr.srgb=Yo,yr.srgba=So),B.oes_texture_float&&(Rr.float32=Rr.float=Gi),B.oes_texture_half_float&&(Rr.float16=Rr["half float"]=yi),B.webgl_depth_texture&&(e(yr,{depth:ds,"depth stencil":ql}),e(Rr,{uint16:sf,uint32:ru,"depth stencil":Bv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":of,"rgba s3tc dxt1":ps,"rgba s3tc dxt3":sl,"rgba s3tc dxt5":lf}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":zv,"rgba atc explicit alpha":oc,"rgba atc interpolated alpha":eu}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Gv,"rgb pvrtc 2bppv1":Uv,"rgba pvrtc 4bppv1":lc,"rgba pvrtc 2bppv1":Hv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=sc);var ue=Array.prototype.slice.call(S.getParameter(a1));Object.keys(Ne).forEach(function(z){var me=Ne[z];ue.indexOf(me)>=0&&(yr[z]=me)});var ke=Object.keys(yr);V.textureFormats=ke;var Ze=[];Object.keys(yr).forEach(function(z){var me=yr[z];Ze[me]=z});var ar=[];Object.keys(Rr).forEach(function(z){var me=Rr[z];ar[me]=z});var ze=[];Object.keys(nr).forEach(function(z){var me=nr[z];ze[me]=z});var br=[];Object.keys(lr).forEach(function(z){var me=lr[z];br[me]=z});var hr=[];Object.keys(ir).forEach(function(z){var me=ir[z];hr[me]=z});var Xr=ke.reduce(function(z,me){var be=yr[me];return be===Mo||be===nf||be===Mo||be===Rl||be===ds||be===ql||B.ext_srgb&&(be===Yo||be===So)?z[be]=be:be===Vo||me.indexOf("rgba")>=0?z[be]=mi:z[be]=Ho,z},{});function Be(){this.internalformat=mi,this.format=mi,this.type=Eo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Vv,this.width=0,this.height=0,this.channels=0}function qe(z,me){z.internalformat=me.internalformat,z.format=me.format,z.type=me.type,z.compressed=me.compressed,z.premultiplyAlpha=me.premultiplyAlpha,z.flipY=me.flipY,z.unpackAlignment=me.unpackAlignment,z.colorSpace=me.colorSpace,z.width=me.width,z.height=me.height,z.channels=me.channels}function Er(z,me){if(!(typeof me!="object"||!me)){if("premultiplyAlpha"in me&&(z.premultiplyAlpha=me.premultiplyAlpha),"flipY"in me&&(z.flipY=me.flipY),"alignment"in me&&(z.unpackAlignment=me.alignment),"colorSpace"in me&&(z.colorSpace=$r[me.colorSpace]),"type"in me){var be=me.type;z.type=Rr[be]}var Nr=z.width,Ft=z.height,Ht=z.channels,qr=!1;"shape"in me?(Nr=me.shape[0],Ft=me.shape[1],me.shape.length===3&&(Ht=me.shape[2],qr=!0)):("radius"in me&&(Nr=Ft=me.radius),"width"in me&&(Nr=me.width),"height"in me&&(Ft=me.height),"channels"in me&&(Ht=me.channels,qr=!0)),z.width=Nr|0,z.height=Ft|0,z.channels=Ht|0;var I=!1;if("format"in me){var U=me.format,$=z.internalformat=yr[U];z.format=Xr[$],U in Rr&&("type"in me||(z.type=Rr[U])),U in Ne&&(z.compressed=!0),I=!0}!qr&&I?z.channels=Tn[z.format]:qr&&!I&&z.channels!==Li[z.format]&&(z.format=z.internalformat=Li[z.channels])}}function vr(z){S.pixelStorei(c1,z.flipY),S.pixelStorei(B0,z.premultiplyAlpha),S.pixelStorei(nu,z.colorSpace),S.pixelStorei(u1,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function cr(z,me){var be=null;if(ou(me)?be=me:me&&(Er(z,me),"x"in me&&(z.xOffset=me.x|0),"y"in me&&(z.yOffset=me.y|0),ou(me.data)&&(be=me.data)),me.copy){var Nr=xe.viewportWidth,Ft=xe.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Ft-z.yOffset,z.needsCopy=!0}else if(!be)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(jr(be))z.channels=z.channels||4,z.data=be,!("type"in me)&&z.type===Eo&&(z.type=$v(be));else if(jv(be))z.channels=z.channels||4,y1(z,be),z.alignment=1,z.needsFree=!0;else if(ot(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===Eo&&(z.type=$v(Ht));var qr=be.shape,I=be.stride,U,$,pe,Te,ce,fe;qr.length===3?(pe=qr[2],fe=I[2]):(pe=1,fe=1),U=qr[0],$=qr[1],Te=I[0],ce=I[1],z.alignment=1,z.width=U,z.height=$,z.channels=pe,z.format=z.internalformat=Li[pe],z.needsFree=!0,G0(z,Ht,Te,ce,fe,be.offset)}else if(Zv(be)||Jv(be)||h1(be))Zv(be)||Jv(be)?z.element=be:z.element=be.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(d1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(p1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(m1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Xv(be)){var ae=z.width||be[0].length,X=z.height||be.length,K=z.channels;Ci(be[0][0])?K=K||be[0][0].length:K=K||1;for(var Y=Se.shape(be),ve=1,Ce=0;Ce>=Ft,be.height>>=Ft,cr(be,Nr[Ft]),z.mipmask|=1<=0&&!("faces"in me)&&(z.genMipmaps=!0)}if("mag"in me){var Nr=me.mag;z.magFilter=nr[Nr]}var Ft=z.wrapS,Ht=z.wrapT;if("wrap"in me){var qr=me.wrap;typeof qr=="string"?Ft=Ht=ir[qr]:Array.isArray(qr)&&(Ft=ir[qr[0]],Ht=ir[qr[1]])}else{if("wrapS"in me){var I=me.wrapS;Ft=ir[I]}if("wrapT"in me){var U=me.wrapT;Ht=ir[U]}}if(z.wrapS=Ft,z.wrapT=Ht,"anisotropic"in me){var $=me.anisotropic;z.anisotropic=me.anisotropic}if("mipmap"in me){var pe=!1;switch(typeof me.mipmap){case"string":z.mipmapHint=We[me.mipmap],z.genMipmaps=!0,pe=!0;break;case"boolean":pe=z.genMipmaps=me.mipmap;break;case"object":z.genMipmaps=!1,pe=!0;break;default:}pe&&!("min"in me)&&(z.minFilter=ms)}}function Xa(z,me){S.texParameteri(me,l1,z.minFilter),S.texParameteri(me,au,z.magFilter),S.texParameteri(me,ff,z.wrapS),S.texParameteri(me,i1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(me,f1,z.anisotropic),z.genMipmaps&&(S.hint(O0,z.mipmapHint),S.generateMipmap(me))}var nn=0,ga={},ba=V.maxTextureUnits,ka=Array(ba).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=mi,this.id=nn++,this.refCount=1,this.target=z,this.texture=S.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,_e.profile&&(this.stats={size:0})}function Ra(z){S.activeTexture(ko),S.bindTexture(z.target,z.texture)}function Wt(){var z=ka[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(An,null)}function Za(z){var me=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(ko+be),S.bindTexture(Nr,null),ka[be]=null),S.deleteTexture(me),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ga[z.id],Ae.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var me=z.unit;if(me<0){for(var be=0;be0)continue;Nr.unit=-1}ka[be]=z,me=be;break}me>=ba,_e.profile&&Ae.maxTextureUnits>ce)-pe,fe.height=fe.height||(be.height>>ce)-Te,Ra(be),Zr(fe,An,pe,Te,ce),Wt(),Dr(fe),Nr}function Ht(qr,I){var U=qr|0,$=I|0||U;if(U===be.width&&$===be.height)return Nr;Nr.width=be.width=U,Nr.height=be.height=$,Ra(be);for(var pe=0;be.mipmask>>pe;++pe){var Te=U>>pe,ce=$>>pe;if(!Te||!ce)break;S.texImage2D(An,pe,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),_e.profile&&(be.stats.size=Nl(be.internalformat,be.type,U,$,!1,!1)),Nr}return Nr(z,me),Nr.subimage=Ft,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=be,_e.profile&&(Nr.stats=be.stats),Nr.destroy=function(){be.decRef()},Nr}function ln(z,me,be,Nr,Ft,Ht){var qr=new Tt(Fl);ga[qr.id]=qr,Ae.cubeCount++;var I=new Array(6);function U(Te,ce,fe,ae,X,K){var Y,ve=qr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)I[Y]=Dt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ut(I[Y],Ce,Ce)}else if(typeof Te=="object")if(ce)Et(I[0],Te),Et(I[1],ce),Et(I[2],fe),Et(I[3],ae),Et(I[4],X),Et(I[5],K);else if(Ha(ve,Te),Er(qr,Te),"faces"in Te){var Je=Te.faces;for(Y=0;Y<6;++Y)qe(I[Y],qr),Et(I[Y],Je[Y])}else for(Y=0;Y<6;++Y)Et(I[Y],Te);for(qe(qr,I[0]),ve.genMipmaps?qr.mipmask=(I[0].width<<1)-1:qr.mipmask=I[0].mipmask,qr.internalformat=I[0].internalformat,U.width=I[0].width,U.height=I[0].height,Ra(qr),Y=0;Y<6;++Y)aa(I[Y],Uo+Y);for(Xa(ve,Fl),Wt(),_e.profile&&(qr.stats.size=Nl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Ze[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=br[ve.minFilter],U.wrapS=hr[ve.wrapS],U.wrapT=hr[ve.wrapT],Y=0;Y<6;++Y)an(I[Y]);return U}function $(Te,ce,fe,ae,X){var K=fe|0,Y=ae|0,ve=X|0,Ce=mr();return qe(Ce,qr),Ce.width=0,Ce.height=0,cr(Ce,ce),Ce.width=Ce.width||(qr.width>>ve)-K,Ce.height=Ce.height||(qr.height>>ve)-Y,Ra(qr),Zr(Ce,Uo+Te,K,Y,ve),Wt(),Dr(Ce),U}function pe(Te){var ce=Te|0;if(ce!==qr.width){U.width=qr.width=ce,U.height=qr.height=ce,Ra(qr);for(var fe=0;fe<6;++fe)for(var ae=0;qr.mipmask>>ae;++ae)S.texImage2D(Uo+fe,ae,qr.format,ce>>ae,ce>>ae,0,qr.format,qr.type,null);return Wt(),_e.profile&&(qr.stats.size=Nl(qr.internalformat,qr.type,U.width,U.height,!1,!0)),U}}return U(z,me,be,Nr,Ft,Ht),U.subimage=$,U.resize=pe,U._reglType="textureCube",U._texture=qr,_e.profile&&(U.stats=qr.stats),U.destroy=function(){qr.decRef()},U}function mt(){for(var z=0;z>Nr,be.height>>Nr,0,be.internalformat,be.type,null);else for(var Ft=0;Ft<6;++Ft)S.texImage2D(Uo+Ft,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Xa(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?an=!0:ir.indexOf(Ut)>=0&&(an=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(ka=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(nn=Tt.depth,Ea=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ea=Tt.stencil:(ga=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ea=Tt.depthStencil:(ba=Tt.depthStencil,aa=!1,Ea=!1))}var Wt=null,Za=null,on=null,ln=null;if(Array.isArray(Dt))Wt=Dt.map(Ne);else if(Dt)Wt=[Ne(Dt)];else for(Wt=new Array(Xa),ft=0;ft0&&(Dr.depth=cr[0].depth,Dr.stencil=cr[0].stencil,Dr.depthStencil=cr[0].depthStencil),cr[mr]?cr[mr](Dr):cr[mr]=qe(Dr)}return e(kr,{width:ft,height:ft,color:Ut})}function Zr(ct){var mr,Dr=ct|0;if(Dr===kr.width)return kr;var ft=kr.color;for(mr=0;mr=ft.byteLength?ut.subdata(ft):(ut.destroy(),qe.buffers[ct]=null)),qe.buffers[ct]||(ut=qe.buffers[ct]=xe.create(mr,uh,!1,!0)),Dr.buffer=xe.getBuffer(ut),Dr.size=Dr.buffer.dimension|0,Dr.normalized=!1,Dr.type=Dr.buffer.dtype,Dr.offset=0,Dr.stride=0,Dr.divisor=0,Dr.state=1,kr[ct]=1}else xe.getBuffer(mr)?(Dr.buffer=xe.getBuffer(mr),Dr.size=Dr.buffer.dimension|0,Dr.normalized=!1,Dr.type=Dr.buffer.dtype,Dr.offset=0,Dr.stride=0,Dr.divisor=0,Dr.state=1):xe.getBuffer(mr.buffer)?(Dr.buffer=xe.getBuffer(mr.buffer),Dr.size=(+mr.size||Dr.buffer.dimension)|0,Dr.normalized=!!mr.normalized||!1,"type"in mr?Dr.type=un[mr.type]:Dr.type=Dr.buffer.dtype,Dr.offset=(mr.offset||0)|0,Dr.stride=(mr.stride||0)|0,Dr.divisor=(mr.divisor||0)|0,Dr.state=1):"x"in mr&&(Dr.x=+mr.x||0,Dr.y=+mr.y||0,Dr.z=+mr.z||0,Dr.w=+mr.w||0,Dr.state=2)}for(var Et=0;Et1)for(var vr=0;vrue&&(ue=ke.stats.uniformsCount)}),ue},V.getMaxAttributesCount=function(){var ue=0;return lr.forEach(function(ke){ke.stats.attributesCount>ue&&(ue=ke.stats.attributesCount)}),ue});function Ne(){xe={},Ae={};for(var ue=0;ue16&&(V=vl(V,S.length*8));for(var he=Array(16),xe=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=V[Ae]^909522486,xe[Ae]=V[Ae]^1549556828;var _e=vl(he.concat(uu(B)),512+B.length*8);return dh(vl(xe.concat(_e),768))}function j0(S){for(var B=Y0?"0123456789ABCDEF":"0123456789abcdef",V="",he,xe=0;xe>>4&15)+B.charAt(he&15);return V}function D1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=S.length,xe=0;xeS.length*8?V+=C1:V+=B.charAt(Ae>>>6*(3-_e)&63);return V}function F1(S,B){var V=B.length,he=Array(),xe,Ae,_e,We,ir=Array(Math.ceil(S.length/2));for(xe=0;xe0;){for(We=Array(),_e=0,xe=0;xe0||Ae>0)&&(We[We.length]=Ae);he[he.length]=_e,ir=We}var nr="";for(xe=he.length-1;xe>=0;xe--)nr+=B.charAt(he[xe]);var lr=Math.ceil(S.length*8/(Math.log(B.length)/Math.log(2)));for(xe=nr.length;xe>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function uu(S){for(var B=Array(S.length>>2),V=0;V>5]|=(S.charCodeAt(V/8)&255)<<24-V%32;return B}function dh(S){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function zn(S,B){return S>>>B|S<<32-B}function ph(S,B){return S>>>B}function X0(S,B,V){return S&B^~S&V}function Z0(S,B,V){return S&B^S&V^B&V}function mh(S){return zn(S,2)^zn(S,13)^zn(S,22)}function J0(S){return zn(S,6)^zn(S,11)^zn(S,25)}function mc(S){return zn(S,7)^zn(S,18)^ph(S,3)}function yc(S){return zn(S,17)^zn(S,19)^ph(S,10)}var q1=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function vl(S,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),xe,Ae,_e,We,ir,nr,lr,$r,Rr,yr,Ne,ue;for(S[B>>5]|=128<<24-B%32,S[(B+64>>9<<4)+15]=B,Rr=0;Rr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function Lo(S){return Array.prototype.slice.call(S)}function Do(S){return Lo(S).join("")}function $0(S){var B=S&&S.cache,V=0,he=[],xe=[],Ae=[];function _e(Ne,ue){var ke=ue&&ue.stable;if(!ke){for(var Ze=0;Ze0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Lo(arguments)),Ne.push(";")),ar}return e(ue,{def:Ze,toString:function(){return Do([ke.length>0?"var "+ke.join(",")+";":"",Do(Ne)])}})}function ir(){var Ne=We(),ue=We(),ke=Ne.toString,Ze=ue.toString;function ar(ze,br){ue(ze,br,"=",Ne.def(ze,br),";")}return e(function(){Ne.apply(Ne,Lo(arguments))},{def:Ne.def,entry:Ne,exit:ue,save:ar,set:function(ze,br,hr){ar(ze,br),Ne(ze,br,"=",hr,";")},toString:function(){return ke()+Ze()}})}function nr(){var Ne=Do(arguments),ue=ir(),ke=ir(),Ze=ue.toString,ar=ke.toString;return e(ue,{then:function(){return ue.apply(ue,Lo(arguments)),this},else:function(){return ke.apply(ke,Lo(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Do(["if(",Ne,"){",Ze(),"}",ze])}})}var lr=We(),$r={};function Rr(Ne,ue){var ke=[];function Ze(){var Xr="a"+ke.length;return ke.push(Xr),Xr}ue=ue||0;for(var ar=0;ar2){for(var i=Array(r.position.length*.5),o=0;o2){for(var f=!r.position[0].length,u=Cv.mallocFloat(this.count*2),c=0,v=0;c1?t.align[Ue]:t.align[0]:t.align;if(typeof xe=="number")return xe;switch(xe){case"right":case"end":return-Le;case"center":case"centre":case"middle":return-Le*.5}return 0})),this.baseline==null&&r.baseline==null&&(r.baseline=0),r.baseline!=null&&(this.baseline=r.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Le,Ue){var xe=(t.font[Ue]||t.font[0]).metrics,ur=0;return ur+=xe.bottom*.5,typeof Le=="number"?ur+=Le-xe.baseline:ur+=-xe[Le],ur*=-1,ur})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=M9(r.color,"uint8");else{var ee;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var te=r.color.length;ee=Cv.mallocUint8(te);for(var Q=(r.color.subarray||r.color.slice).bind(r.color),$=0;$4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(le){var Ee=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(Ee);for(var Ge=0;Ge1?this.counts[Ge]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ge]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ge*4,Ge*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ge]:this.opacity,baseline:this.baselineOffset[Ge]!=null?this.baselineOffset[Ge]:this.baselineOffset[0],align:this.align?this.alignOffset[Ge]!=null?this.alignOffset[Ge]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ge]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ge*2,Ge*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Qa.prototype.destroy=function(){};Qa.prototype.kerning=!0;Qa.prototype.position={constant:new Float32Array(2)};Qa.prototype.translate=null;Qa.prototype.scale=null;Qa.prototype.font=null;Qa.prototype.text="";Qa.prototype.positionOffset=[0,0];Qa.prototype.opacity=1;Qa.prototype.color=new Uint8Array([0,0,0,255]);Qa.prototype.alignOffset=[0,0];Qa.maxAtlasSize=1024;Qa.atlasCanvas=document.createElement("canvas");Qa.atlasContext=Qa.atlasCanvas.getContext("2d",{alpha:!1});Qa.baseFontSize=64;Qa.fonts={};function j9e(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}Yre.exports=Qa});var Zre=N((kOe,Xre)=>{"use strict";var jre=va(),X9e=function(){};Xre.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=X9e);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=jre.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=jre.lightLine,a.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",a.appendChild(n),r.container.appendChild(a),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var $re=N((S9,E9)=>{(function(e,r){typeof S9=="object"&&typeof E9!="undefined"?E9.exports=r():e.createREGL=r()})(S9,(function(){"use strict";var e=function(S,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(S.substr(1,S.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(S);if(he)return l(S.substr(0,he.index)).concat(l(he[1])).concat(l(S.substr(he.index+he[0].length)));var _e=S.split(".");if(_e.length===1)return['"'+o(S)+'"'];for(var Ae=[],we=0;we<_e.length;++we)Ae=Ae.concat(l(_e[we]));return Ae}function s(S){return"["+l(S).join("][")+"]"}function f(S,B){return new i(S,s(B+""))}function u(S){return typeof S=="function"&&!S._reglType||S instanceof i}function c(S,B){if(typeof S=="function")return new i(t,S);if(typeof S=="number"||typeof S=="boolean")return new i(a,S);if(Array.isArray(S))return new i(n,S.map(function(V,he){return c(V,B+"["+he+"]")}));if(S instanceof i)return S}var v={DynamicVariable:i,define:f,isDynamic:u,unbox:c,accessor:s},d={next:typeof requestAnimationFrame=="function"?function(S){return requestAnimationFrame(S)}:function(S){return setTimeout(S,16)},cancel:typeof cancelAnimationFrame=="function"?function(S){return cancelAnimationFrame(S)}:clearTimeout},p=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:function(){return+new Date};function m(){var S={"":0},B=[""];return{id:function(V){var he=S[V];return he||(he=S[V]=B.length,B.push(V),he)},str:function(V){return B[V]}}}function y(S,B,V){var he=document.createElement("canvas");e(he.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),S.appendChild(he),S===document.body&&(he.style.position="absolute",e(S.style,{margin:0,padding:0}));function _e(){var We=window.innerWidth,ir=window.innerHeight;if(S!==document.body){var nr=he.getBoundingClientRect();We=nr.right-nr.left,ir=nr.bottom-nr.top}he.width=V*We,he.height=V*ir}var Ae;S!==document.body&&typeof ResizeObserver=="function"?(Ae=new ResizeObserver(function(){setTimeout(_e)}),Ae.observe(S)):window.addEventListener("resize",_e,!1);function we(){Ae?Ae.disconnect():window.removeEventListener("resize",_e),S.removeChild(he)}return _e(),{canvas:he,onDestroy:we}}function b(S,B){function V(he){try{return S.getContext(he,B)}catch(_e){return null}}return V("webgl")||V("experimental-webgl")||V("webgl-experimental")}function T(S){return typeof S.nodeName=="string"&&typeof S.appendChild=="function"&&typeof S.getBoundingClientRect=="function"}function _(S){return typeof S.drawArrays=="function"||typeof S.drawElements=="function"}function x(S){return typeof S=="string"?S.split():S}function A(S){return typeof S=="string"?document.querySelector(S):S}function E(S){var B=S||{},V,he,_e,Ae,we={},We=[],ir=[],nr=typeof window=="undefined"?1:window.devicePixelRatio,lr=!1,Jr={},Fr=function(ue){},mr=function(){};if(typeof B=="string"?V=document.querySelector(B):typeof B=="object"&&(T(B)?V=B:_(B)?(Ae=B,_e=Ae.canvas):("gl"in B?Ae=B.gl:"canvas"in B?_e=A(B.canvas):"container"in B&&(he=A(B.container)),"attributes"in B&&(we=B.attributes),"extensions"in B&&(We=x(B.extensions)),"optionalExtensions"in B&&(ir=x(B.optionalExtensions)),"onDone"in B&&(Fr=B.onDone),"profile"in B&&(lr=!!B.profile),"pixelRatio"in B&&(nr=+B.pixelRatio),"cachedCode"in B&&(Jr=B.cachedCode))),V&&(V.nodeName.toLowerCase()==="canvas"?_e=V:he=V),!Ae){if(!_e){var Ne=y(he||document.body,Fr,nr);if(!Ne)return null;_e=Ne.canvas,mr=Ne.onDestroy}we.premultipliedAlpha===void 0&&(we.premultipliedAlpha=!0),Ae=b(_e,we)}return Ae?{gl:Ae,canvas:_e,container:he,extensions:We,optionalExtensions:ir,pixelRatio:nr,profile:lr,cachedCode:Jr,onDone:Fr,onDestroy:mr}:(mr(),Fr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function M(S,B){var V={};function he(we){var We=we.toLowerCase(),ir;try{ir=V[We]=S.getExtension(We)}catch(nr){}return!!ir}for(var _e=0;_e65535)<<4,S>>>=B,V=(S>255)<<3,S>>>=V,B|=V,V=(S>15)<<2,S>>>=V,B|=V,V=(S>3)<<1,S>>>=V,B|=V,B|S>>1}function $(){var S=k(8,function(){return[]});function B(Ae){var we=te(Ae),We=S[Q(we)>>2];return We.length>0?We.pop():new ArrayBuffer(we)}function V(Ae){S[Q(Ae.byteLength)>>2].push(Ae)}function he(Ae,we){var We=null;switch(Ae){case R:We=new Int8Array(B(we),0,we);break;case P:We=new Uint8Array(B(we),0,we);break;case O:We=new Int16Array(B(2*we),0,we);break;case F:We=new Uint16Array(B(2*we),0,we);break;case H:We=new Int32Array(B(4*we),0,we);break;case W:We=new Uint32Array(B(4*we),0,we);break;case ee:We=new Float32Array(B(4*we),0,we);break;default:return null}return We.length!==we?We.subarray(0,we):We}function _e(Ae){V(Ae.buffer)}return{alloc:B,free:V,allocType:he,freeType:_e}}var j=$();j.zero=$();var se=3408,le=3410,Ee=3411,Ge=3412,Le=3413,Ue=3414,xe=3415,ur=33901,Oe=33902,He=3379,xr=3386,Ye=34921,re=36347,de=36348,ne=35661,Re=35660,Je=34930,Ke=36349,Cr=34076,Ar=34024,gr=7936,et=7937,Hr=7938,at=35724,wr=34047,Vr=36063,rt=34852,Pe=3553,or=34067,st=34069,kt=33984,Tr=6408,tr=5126,sr=5121,Gr=36160,nt=36053,Yr=36064,Wr=16384,xt=function(S,B){var V=1;B.ext_texture_filter_anisotropic&&(V=S.getParameter(wr));var he=1,_e=1;B.webgl_draw_buffers&&(he=S.getParameter(rt),_e=S.getParameter(Vr));var Ae=!!B.oes_texture_float;if(Ae){var we=S.createTexture();S.bindTexture(Pe,we),S.texImage2D(Pe,0,Tr,1,1,0,Tr,tr,null);var We=S.createFramebuffer();if(S.bindFramebuffer(Gr,We),S.framebufferTexture2D(Gr,Yr,Pe,we,0),S.bindTexture(Pe,null),S.checkFramebufferStatus(Gr)!==nt)Ae=!1;else{S.viewport(0,0,1,1),S.clearColor(1,0,0,1),S.clear(Wr);var ir=j.allocType(tr,4);S.readPixels(0,0,1,1,Tr,tr,ir),S.getError()?Ae=!1:(S.deleteFramebuffer(We),S.deleteTexture(we),Ae=ir[0]===1),j.freeType(ir)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var Jr=S.createTexture(),Fr=j.allocType(sr,36);S.activeTexture(kt),S.bindTexture(or,Jr),S.texImage2D(st,0,Tr,3,3,0,Tr,sr,Fr),j.freeType(Fr),S.bindTexture(or,null),S.deleteTexture(Jr),lr=!S.getError()}return{colorBits:[S.getParameter(le),S.getParameter(Ee),S.getParameter(Ge),S.getParameter(Le)],depthBits:S.getParameter(Ue),stencilBits:S.getParameter(xe),subpixelBits:S.getParameter(se),extensions:Object.keys(B).filter(function(mr){return!!B[mr]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:_e,pointSizeDims:S.getParameter(ur),lineWidthDims:S.getParameter(Oe),maxViewportDims:S.getParameter(xr),maxCombinedTextureUnits:S.getParameter(ne),maxCubeMapSize:S.getParameter(Cr),maxRenderbufferSize:S.getParameter(Ar),maxTextureUnits:S.getParameter(Je),maxTextureSize:S.getParameter(He),maxAttributes:S.getParameter(Ye),maxVertexUniforms:S.getParameter(re),maxVertexTextureUnits:S.getParameter(Re),maxVaryingVectors:S.getParameter(de),maxFragmentUniforms:S.getParameter(Ke),glsl:S.getParameter(at),renderer:S.getParameter(et),vendor:S.getParameter(gr),version:S.getParameter(Hr),readFloat:Ae,npotTextureCube:lr}},jr=function(S){return S instanceof Uint8Array||S instanceof Uint16Array||S instanceof Uint32Array||S instanceof Int8Array||S instanceof Int16Array||S instanceof Int32Array||S instanceof Float32Array||S instanceof Float64Array||S instanceof Uint8ClampedArray};function ot(S){return!!S&&typeof S=="object"&&Array.isArray(S.shape)&&Array.isArray(S.stride)&&typeof S.offset=="number"&&S.shape.length===S.stride.length&&(Array.isArray(S.data)||jr(S.data))}var dr=function(S){return Object.keys(S).map(function(B){return S[B]})},Se={shape:wt,flatten:Mt};function Ie(S,B,V){for(var he=0;he0){var Xr;if(Array.isArray(ke[0])){hr=At(ke);for(var Be=1,qe=1;qe0){if(typeof Be[0]=="number"){var fr=j.allocType(ze.dtype,Be.length);di(fr,Be),hr(fr,Er),j.freeType(fr)}else if(Array.isArray(Be[0])||jr(Be[0])){vr=At(Be);var cr=yn(Be,vr,ze.dtype);hr(cr,Er),j.freeType(cr)}}}else if(ot(Be)){vr=Be.shape;var kr=Be.stride,Zr=0,ct=0,yr=0,Dr=0;vr.length===1?(Zr=vr[0],ct=1,yr=kr[0],Dr=0):vr.length===2&&(Zr=vr[0],ct=vr[1],yr=kr[0],Dr=kr[1]);var ft=Array.isArray(Be.data)?ze.dtype:da(Be.data),ut=j.allocType(ft,Zr*ct);Xi(ut,Be.data,Zr,ct,yr,Dr,Be.offset),hr(ut,Er),j.freeType(ut)}return br}return Ze||br(ue),br._reglType="buffer",br._buffer=ze,br.subdata=Xr,V.profile&&(br.stats=ze.stats),br.destroy=function(){Fr(ze)},br}function Ne(){dr(Ae).forEach(function(ue){ue.buffer=S.createBuffer(),S.bindBuffer(ue.type,ue.buffer),S.bufferData(ue.type,ue.persistentData||ue.byteLength,ue.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var ue=0;return Object.keys(Ae).forEach(function(ke){ue+=Ae[ke].stats.size}),ue}),{create:mr,createStream:ir,destroyStream:nr,clear:function(){dr(Ae).forEach(Fr),We.forEach(Fr)},getBuffer:function(ue){return ue&&ue._buffer instanceof we?ue._buffer:null},restore:Ne,_initBuffer:Jr}}var Ya=0,wn=0,An=1,vs=1,Ll=4,ac=4,Go={points:Ya,point:wn,lines:An,line:vs,triangles:Ll,triangle:ac,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Qf=0,Kf=1,Zi=4,pi=5120,zi=5121,Dl=5122,yi=5123,Pt=5124,Jt=5125,fa=34963,_t=35040,Qn=35044;function Ga(S,B,V,he){var _e={},Ae=0,we={uint8:zi,uint16:yi};B.oes_element_index_uint&&(we.uint32=Jt);function We(Ne){this.id=Ae++,_e[this.id]=this,this.buffer=Ne,this.primType=Zi,this.vertCount=0,this.type=0}We.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var ue=ir.pop();return ue||(ue=new We(V.create(null,fa,!0,!1)._buffer)),Jr(ue,Ne,_t,-1,-1,0,0),ue}function lr(Ne){ir.push(Ne)}function Jr(Ne,ue,ke,Ze,ar,ze,br){Ne.buffer.bind();var hr;if(ue){var Xr=br;!br&&(!jr(ue)||ot(ue)&&!jr(ue.data))&&(Xr=B.oes_element_index_uint?Jt:yi),V._initBuffer(Ne.buffer,ue,ke,Xr,3)}else S.bufferData(fa,ze,ke),Ne.buffer.dtype=hr||zi,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(hr=br,!br){switch(Ne.buffer.dtype){case zi:case pi:hr=zi;break;case yi:case Dl:hr=yi;break;case Jt:case Pt:hr=Jt;break;default:}Ne.buffer.dtype=hr}Ne.type=hr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,hr===yi?Be>>=1:hr===Jt&&(Be>>=2)),Ne.vertCount=Be;var qe=Ze;if(Ze<0){qe=Zi;var Er=Ne.buffer.dimension;Er===1&&(qe=Qf),Er===2&&(qe=Kf),Er===3&&(qe=Zi)}Ne.primType=qe}function Fr(Ne){he.elementsCount--,delete _e[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function mr(Ne,ue){var ke=V.create(null,fa,!0),Ze=new We(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Ze.primType=Zi,Ze.vertCount=0,Ze.type=zi;else if(typeof ze=="number")ke(ze),Ze.primType=Zi,Ze.vertCount=ze|0,Ze.type=zi;else{var br=null,hr=Qn,Xr=-1,Be=-1,qe=0,Er=0;Array.isArray(ze)||jr(ze)||ot(ze)?br=ze:("data"in ze&&(br=ze.data),"usage"in ze&&(hr=Dn[ze.usage]),"primitive"in ze&&(Xr=Go[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Er=we[ze.type]),"length"in ze?qe=ze.length|0:(qe=Be,Er===yi||Er===Dl?qe*=2:(Er===Jt||Er===Pt)&&(qe*=4))),Jr(Ze,br,hr,Xr,Be,qe,Er)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Ze,ar.subdata=function(ze,br){return ke.subdata(ze,br),ar},ar.destroy=function(){Fr(Ze)},ar}return{create:mr,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof We?Ne._elements:null},clear:function(){dr(_e).forEach(Fr)}}}var In=new Float32Array(1),ra=new Uint32Array(In.buffer),To=5123;function ll(S){for(var B=j.allocType(To,S.length),V=0;V>>31<<15,Ae=(he<<1>>>24)-127,we=he>>13&1023;if(Ae<-24)B[V]=_e;else if(Ae<-14){var We=-14-Ae;B[V]=_e+(we+1024>>We)}else Ae>15?B[V]=_e+31744:B[V]=_e+(Ae+15<<10)+we}return B}function Ci(S){return Array.isArray(S)||jr(S)}var n1=34467,Tn=3553,Rl=34067,Uo=34069,mi=6408,nf=6406,Ho=6407,Mo=6409,Fl=6410,nc=32854,Vo=32855,hs=36194,I0=32819,i1=32820,ic=33635,Bv=34042,ds=6402,ql=34041,Yo=35904,So=35906,gi=36193,of=33776,ps=33777,sl=33778,lf=33779,zv=35986,oc=35987,eu=34798,Gv=35840,Uv=35841,lc=35842,Hv=35843,sc=36196,Eo=5121,sf=5123,ru=5125,Gi=5126,ff=10242,o1=10243,l1=10497,tu=33071,O0=33648,au=10240,s1=10241,Pl=9728,fc=9729,ys=9984,uf=9985,ms=9986,fl=9987,B0=33170,ul=4352,f1=4353,uc=4354,u1=34046,c1=3317,v1=37440,z0=37441,nu=37443,Vv=37444,ko=33984,G0=[ys,ms,uf,fl],Li=[0,Mo,Fl,Ho,mi],Mn={};Mn[Mo]=Mn[nf]=Mn[ds]=1,Mn[ql]=Mn[Fl]=2,Mn[Ho]=Mn[Yo]=3,Mn[mi]=Mn[So]=4;function $i(S){return"[object "+S+"]"}var iu=$i("HTMLCanvasElement"),cl=$i("OffscreenCanvas"),cf=$i("CanvasRenderingContext2D"),cc=$i("ImageBitmap"),Yv=$i("HTMLImageElement"),Wv=$i("HTMLVideoElement"),h1=Object.keys(Nt).concat([iu,cl,cf,cc,Yv,Wv]),co=[];co[Eo]=1,co[Gi]=4,co[gi]=2,co[sf]=2,co[ru]=4;var Aa=[];Aa[nc]=2,Aa[Vo]=2,Aa[hs]=2,Aa[ql]=4,Aa[of]=.5,Aa[ps]=.5,Aa[sl]=1,Aa[lf]=1,Aa[zv]=.5,Aa[oc]=1,Aa[eu]=1,Aa[Gv]=.5,Aa[Uv]=.25,Aa[lc]=.5,Aa[Hv]=.25,Aa[sc]=.5;function jv(S){return Array.isArray(S)&&(S.length===0||typeof S[0]=="number")}function Xv(S){if(!Array.isArray(S))return!1;var B=S.length;return!(B===0||!Ci(S[0]))}function Ji(S){return Object.prototype.toString.call(S)}function Zv(S){return Ji(S)===iu}function $v(S){return Ji(S)===cl}function d1(S){return Ji(S)===cf}function p1(S){return Ji(S)===cc}function y1(S){return Ji(S)===Yv}function m1(S){return Ji(S)===Wv}function ou(S){if(!S)return!1;var B=Ji(S);return h1.indexOf(B)>=0?!0:jv(S)||Xv(S)||ot(S)}function Jv(S){return Nt[Object.prototype.toString.call(S)]|0}function g1(S,B){var V=B.length;switch(S.type){case Eo:case sf:case ru:case Gi:var he=j.allocType(S.type,V);he.set(B),S.data=he;break;case gi:S.data=ll(B);break;default:}}function Qv(S,B){return j.allocType(S.type===gi?Gi:S.type,B)}function vc(S,B){S.type===gi?(S.data=ll(B),j.freeType(B)):S.data=B}function U0(S,B,V,he,_e,Ae){for(var we=S.width,We=S.height,ir=S.channels,nr=we*We*ir,lr=Qv(S,nr),Jr=0,Fr=0;Fr=1;)We+=we*ir*ir,ir/=2;return We}else return we*V*he}function H0(S,B,V,he,_e,Ae,we){var We={"don't care":ul,"dont care":ul,nice:uc,fast:f1},ir={repeat:l1,clamp:tu,mirror:O0},nr={nearest:Pl,linear:fc},lr=e({mipmap:fl,"nearest mipmap nearest":ys,"linear mipmap nearest":uf,"nearest mipmap linear":ms,"linear mipmap linear":fl},nr),Jr={none:0,browser:Vv},Fr={uint8:Eo,rgba4:I0,rgb565:ic,"rgb5 a1":i1},mr={alpha:nf,luminance:Mo,"luminance alpha":Fl,rgb:Ho,rgba:mi,rgba4:nc,"rgb5 a1":Vo,rgb565:hs},Ne={};B.ext_srgb&&(mr.srgb=Yo,mr.srgba=So),B.oes_texture_float&&(Fr.float32=Fr.float=Gi),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=gi),B.webgl_depth_texture&&(e(mr,{depth:ds,"depth stencil":ql}),e(Fr,{uint16:sf,uint32:ru,"depth stencil":Bv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":of,"rgba s3tc dxt1":ps,"rgba s3tc dxt3":sl,"rgba s3tc dxt5":lf}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":zv,"rgba atc explicit alpha":oc,"rgba atc interpolated alpha":eu}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Gv,"rgb pvrtc 2bppv1":Uv,"rgba pvrtc 4bppv1":lc,"rgba pvrtc 2bppv1":Hv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=sc);var ue=Array.prototype.slice.call(S.getParameter(n1));Object.keys(Ne).forEach(function(z){var ye=Ne[z];ue.indexOf(ye)>=0&&(mr[z]=ye)});var ke=Object.keys(mr);V.textureFormats=ke;var Ze=[];Object.keys(mr).forEach(function(z){var ye=mr[z];Ze[ye]=z});var ar=[];Object.keys(Fr).forEach(function(z){var ye=Fr[z];ar[ye]=z});var ze=[];Object.keys(nr).forEach(function(z){var ye=nr[z];ze[ye]=z});var br=[];Object.keys(lr).forEach(function(z){var ye=lr[z];br[ye]=z});var hr=[];Object.keys(ir).forEach(function(z){var ye=ir[z];hr[ye]=z});var Xr=ke.reduce(function(z,ye){var be=mr[ye];return be===Mo||be===nf||be===Mo||be===Fl||be===ds||be===ql||B.ext_srgb&&(be===Yo||be===So)?z[be]=be:be===Vo||ye.indexOf("rgba")>=0?z[be]=mi:z[be]=Ho,z},{});function Be(){this.internalformat=mi,this.format=mi,this.type=Eo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Vv,this.width=0,this.height=0,this.channels=0}function qe(z,ye){z.internalformat=ye.internalformat,z.format=ye.format,z.type=ye.type,z.compressed=ye.compressed,z.premultiplyAlpha=ye.premultiplyAlpha,z.flipY=ye.flipY,z.unpackAlignment=ye.unpackAlignment,z.colorSpace=ye.colorSpace,z.width=ye.width,z.height=ye.height,z.channels=ye.channels}function Er(z,ye){if(!(typeof ye!="object"||!ye)){if("premultiplyAlpha"in ye&&(z.premultiplyAlpha=ye.premultiplyAlpha),"flipY"in ye&&(z.flipY=ye.flipY),"alignment"in ye&&(z.unpackAlignment=ye.alignment),"colorSpace"in ye&&(z.colorSpace=Jr[ye.colorSpace]),"type"in ye){var be=ye.type;z.type=Fr[be]}var Nr=z.width,Rt=z.height,Ht=z.channels,qr=!1;"shape"in ye?(Nr=ye.shape[0],Rt=ye.shape[1],ye.shape.length===3&&(Ht=ye.shape[2],qr=!0)):("radius"in ye&&(Nr=Rt=ye.radius),"width"in ye&&(Nr=ye.width),"height"in ye&&(Rt=ye.height),"channels"in ye&&(Ht=ye.channels,qr=!0)),z.width=Nr|0,z.height=Rt|0,z.channels=Ht|0;var I=!1;if("format"in ye){var U=ye.format,J=z.internalformat=mr[U];z.format=Xr[J],U in Fr&&("type"in ye||(z.type=Fr[U])),U in Ne&&(z.compressed=!0),I=!0}!qr&&I?z.channels=Mn[z.format]:qr&&!I&&z.channels!==Li[z.format]&&(z.format=z.internalformat=Li[z.channels])}}function vr(z){S.pixelStorei(v1,z.flipY),S.pixelStorei(z0,z.premultiplyAlpha),S.pixelStorei(nu,z.colorSpace),S.pixelStorei(c1,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function cr(z,ye){var be=null;if(ou(ye)?be=ye:ye&&(Er(z,ye),"x"in ye&&(z.xOffset=ye.x|0),"y"in ye&&(z.yOffset=ye.y|0),ou(ye.data)&&(be=ye.data)),ye.copy){var Nr=_e.viewportWidth,Rt=_e.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Rt-z.yOffset,z.needsCopy=!0}else if(!be)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(jr(be))z.channels=z.channels||4,z.data=be,!("type"in ye)&&z.type===Eo&&(z.type=Jv(be));else if(jv(be))z.channels=z.channels||4,g1(z,be),z.alignment=1,z.needsFree=!0;else if(ot(be)){var Ht=be.data;!Array.isArray(Ht)&&z.type===Eo&&(z.type=Jv(Ht));var qr=be.shape,I=be.stride,U,J,pe,Te,ce,fe;qr.length===3?(pe=qr[2],fe=I[2]):(pe=1,fe=1),U=qr[0],J=qr[1],Te=I[0],ce=I[1],z.alignment=1,z.width=U,z.height=J,z.channels=pe,z.format=z.internalformat=Li[pe],z.needsFree=!0,U0(z,Ht,Te,ce,fe,be.offset)}else if(Zv(be)||$v(be)||d1(be))Zv(be)||$v(be)?z.element=be:z.element=be.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(p1(be))z.element=be,z.width=be.width,z.height=be.height,z.channels=4;else if(y1(be))z.element=be,z.width=be.naturalWidth,z.height=be.naturalHeight,z.channels=4;else if(m1(be))z.element=be,z.width=be.videoWidth,z.height=be.videoHeight,z.channels=4;else if(Xv(be)){var ae=z.width||be[0].length,X=z.height||be.length,K=z.channels;Ci(be[0][0])?K=K||be[0][0].length:K=K||1;for(var Y=Se.shape(be),ve=1,Ce=0;Ce>=Rt,be.height>>=Rt,cr(be,Nr[Rt]),z.mipmask|=1<=0&&!("faces"in ye)&&(z.genMipmaps=!0)}if("mag"in ye){var Nr=ye.mag;z.magFilter=nr[Nr]}var Rt=z.wrapS,Ht=z.wrapT;if("wrap"in ye){var qr=ye.wrap;typeof qr=="string"?Rt=Ht=ir[qr]:Array.isArray(qr)&&(Rt=ir[qr[0]],Ht=ir[qr[1]])}else{if("wrapS"in ye){var I=ye.wrapS;Rt=ir[I]}if("wrapT"in ye){var U=ye.wrapT;Ht=ir[U]}}if(z.wrapS=Rt,z.wrapT=Ht,"anisotropic"in ye){var J=ye.anisotropic;z.anisotropic=ye.anisotropic}if("mipmap"in ye){var pe=!1;switch(typeof ye.mipmap){case"string":z.mipmapHint=We[ye.mipmap],z.genMipmaps=!0,pe=!0;break;case"boolean":pe=z.genMipmaps=ye.mipmap;break;case"object":z.genMipmaps=!1,pe=!0;break;default:}pe&&!("min"in ye)&&(z.minFilter=ys)}}function Xa(z,ye){S.texParameteri(ye,s1,z.minFilter),S.texParameteri(ye,au,z.magFilter),S.texParameteri(ye,ff,z.wrapS),S.texParameteri(ye,o1,z.wrapT),B.ext_texture_filter_anisotropic&&S.texParameteri(ye,u1,z.anisotropic),z.genMipmaps&&(S.hint(B0,z.mipmapHint),S.generateMipmap(ye))}var nn=0,ba={},xa=V.maxTextureUnits,ka=Array(xa).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=mi,this.id=nn++,this.refCount=1,this.target=z,this.texture=S.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,we.profile&&(this.stats={size:0})}function Fa(z){S.activeTexture(ko),S.bindTexture(z.target,z.texture)}function Wt(){var z=ka[0];z?S.bindTexture(z.target,z.texture):S.bindTexture(Tn,null)}function Za(z){var ye=z.texture,be=z.unit,Nr=z.target;be>=0&&(S.activeTexture(ko+be),S.bindTexture(Nr,null),ka[be]=null),S.deleteTexture(ye),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ba[z.id],Ae.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var ye=z.unit;if(ye<0){for(var be=0;be0)continue;Nr.unit=-1}ka[be]=z,ye=be;break}ye>=xa,we.profile&&Ae.maxTextureUnits>ce)-pe,fe.height=fe.height||(be.height>>ce)-Te,Fa(be),Zr(fe,Tn,pe,Te,ce),Wt(),Dr(fe),Nr}function Ht(qr,I){var U=qr|0,J=I|0||U;if(U===be.width&&J===be.height)return Nr;Nr.width=be.width=U,Nr.height=be.height=J,Fa(be);for(var pe=0;be.mipmask>>pe;++pe){var Te=U>>pe,ce=J>>pe;if(!Te||!ce)break;S.texImage2D(Tn,pe,be.format,Te,ce,0,be.format,be.type,null)}return Wt(),we.profile&&(be.stats.size=Nl(be.internalformat,be.type,U,J,!1,!1)),Nr}return Nr(z,ye),Nr.subimage=Rt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=be,we.profile&&(Nr.stats=be.stats),Nr.destroy=function(){be.decRef()},Nr}function ln(z,ye,be,Nr,Rt,Ht){var qr=new Tt(Rl);ba[qr.id]=qr,Ae.cubeCount++;var I=new Array(6);function U(Te,ce,fe,ae,X,K){var Y,ve=qr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)I[Y]=Dt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ut(I[Y],Ce,Ce)}else if(typeof Te=="object")if(ce)Et(I[0],Te),Et(I[1],ce),Et(I[2],fe),Et(I[3],ae),Et(I[4],X),Et(I[5],K);else if(Ha(ve,Te),Er(qr,Te),"faces"in Te){var $e=Te.faces;for(Y=0;Y<6;++Y)qe(I[Y],qr),Et(I[Y],$e[Y])}else for(Y=0;Y<6;++Y)Et(I[Y],Te);for(qe(qr,I[0]),ve.genMipmaps?qr.mipmask=(I[0].width<<1)-1:qr.mipmask=I[0].mipmask,qr.internalformat=I[0].internalformat,U.width=I[0].width,U.height=I[0].height,Fa(qr),Y=0;Y<6;++Y)aa(I[Y],Uo+Y);for(Xa(ve,Rl),Wt(),we.profile&&(qr.stats.size=Nl(qr.internalformat,qr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Ze[qr.internalformat],U.type=ar[qr.type],U.mag=ze[ve.magFilter],U.min=br[ve.minFilter],U.wrapS=hr[ve.wrapS],U.wrapT=hr[ve.wrapT],Y=0;Y<6;++Y)an(I[Y]);return U}function J(Te,ce,fe,ae,X){var K=fe|0,Y=ae|0,ve=X|0,Ce=yr();return qe(Ce,qr),Ce.width=0,Ce.height=0,cr(Ce,ce),Ce.width=Ce.width||(qr.width>>ve)-K,Ce.height=Ce.height||(qr.height>>ve)-Y,Fa(qr),Zr(Ce,Uo+Te,K,Y,ve),Wt(),Dr(Ce),U}function pe(Te){var ce=Te|0;if(ce!==qr.width){U.width=qr.width=ce,U.height=qr.height=ce,Fa(qr);for(var fe=0;fe<6;++fe)for(var ae=0;qr.mipmask>>ae;++ae)S.texImage2D(Uo+fe,ae,qr.format,ce>>ae,ce>>ae,0,qr.format,qr.type,null);return Wt(),we.profile&&(qr.stats.size=Nl(qr.internalformat,qr.type,U.width,U.height,!1,!0)),U}}return U(z,ye,be,Nr,Rt,Ht),U.subimage=J,U.resize=pe,U._reglType="textureCube",U._texture=qr,we.profile&&(U.stats=qr.stats),U.destroy=function(){qr.decRef()},U}function yt(){for(var z=0;z>Nr,be.height>>Nr,0,be.internalformat,be.type,null);else for(var Rt=0;Rt<6;++Rt)S.texImage2D(Uo+Rt,Nr,be.internalformat,be.width>>Nr,be.height>>Nr,0,be.internalformat,be.type,null);Xa(be.texInfo,be.target)})}function Qt(){for(var z=0;z=0?an=!0:ir.indexOf(Ut)>=0&&(an=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(ka=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(nn=Tt.depth,Ea=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ea=Tt.stencil:(ba=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ea=Tt.depthStencil:(xa=Tt.depthStencil,aa=!1,Ea=!1))}var Wt=null,Za=null,on=null,ln=null;if(Array.isArray(Dt))Wt=Dt.map(Ne);else if(Dt)Wt=[Ne(Dt)];else for(Wt=new Array(Xa),ft=0;ft0&&(Dr.depth=cr[0].depth,Dr.stencil=cr[0].stencil,Dr.depthStencil=cr[0].depthStencil),cr[yr]?cr[yr](Dr):cr[yr]=qe(Dr)}return e(kr,{width:ft,height:ft,color:Ut})}function Zr(ct){var yr,Dr=ct|0;if(Dr===kr.width)return kr;var ft=kr.color;for(yr=0;yr=ft.byteLength?ut.subdata(ft):(ut.destroy(),qe.buffers[ct]=null)),qe.buffers[ct]||(ut=qe.buffers[ct]=_e.create(yr,uh,!1,!0)),Dr.buffer=_e.getBuffer(ut),Dr.size=Dr.buffer.dimension|0,Dr.normalized=!1,Dr.type=Dr.buffer.dtype,Dr.offset=0,Dr.stride=0,Dr.divisor=0,Dr.state=1,kr[ct]=1}else _e.getBuffer(yr)?(Dr.buffer=_e.getBuffer(yr),Dr.size=Dr.buffer.dimension|0,Dr.normalized=!1,Dr.type=Dr.buffer.dtype,Dr.offset=0,Dr.stride=0,Dr.divisor=0,Dr.state=1):_e.getBuffer(yr.buffer)?(Dr.buffer=_e.getBuffer(yr.buffer),Dr.size=(+yr.size||Dr.buffer.dimension)|0,Dr.normalized=!!yr.normalized||!1,"type"in yr?Dr.type=un[yr.type]:Dr.type=Dr.buffer.dtype,Dr.offset=(yr.offset||0)|0,Dr.stride=(yr.stride||0)|0,Dr.divisor=(yr.divisor||0)|0,Dr.state=1):"x"in yr&&(Dr.x=+yr.x||0,Dr.y=+yr.y||0,Dr.z=+yr.z||0,Dr.w=+yr.w||0,Dr.state=2)}for(var Et=0;Et1)for(var vr=0;vrue&&(ue=ke.stats.uniformsCount)}),ue},V.getMaxAttributesCount=function(){var ue=0;return lr.forEach(function(ke){ke.stats.attributesCount>ue&&(ue=ke.stats.attributesCount)}),ue});function Ne(){_e={},Ae={};for(var ue=0;ue16&&(V=vl(V,S.length*8));for(var he=Array(16),_e=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=V[Ae]^909522486,_e[Ae]=V[Ae]^1549556828;var we=vl(he.concat(uu(B)),512+B.length*8);return dh(vl(_e.concat(we),768))}function X0(S){for(var B=W0?"0123456789ABCDEF":"0123456789abcdef",V="",he,_e=0;_e>>4&15)+B.charAt(he&15);return V}function R1(S){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=S.length,_e=0;_eS.length*8?V+=L1:V+=B.charAt(Ae>>>6*(3-we)&63);return V}function F1(S,B){var V=B.length,he=Array(),_e,Ae,we,We,ir=Array(Math.ceil(S.length/2));for(_e=0;_e0;){for(We=Array(),we=0,_e=0;_e0||Ae>0)&&(We[We.length]=Ae);he[he.length]=we,ir=We}var nr="";for(_e=he.length-1;_e>=0;_e--)nr+=B.charAt(he[_e]);var lr=Math.ceil(S.length*8/(Math.log(B.length)/Math.log(2)));for(_e=nr.length;_e>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function uu(S){for(var B=Array(S.length>>2),V=0;V>5]|=(S.charCodeAt(V/8)&255)<<24-V%32;return B}function dh(S){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function Gn(S,B){return S>>>B|S<<32-B}function ph(S,B){return S>>>B}function Z0(S,B,V){return S&B^~S&V}function $0(S,B,V){return S&B^S&V^B&V}function yh(S){return Gn(S,2)^Gn(S,13)^Gn(S,22)}function J0(S){return Gn(S,6)^Gn(S,11)^Gn(S,25)}function yc(S){return Gn(S,7)^Gn(S,18)^ph(S,3)}function mc(S){return Gn(S,17)^Gn(S,19)^ph(S,10)}var P1=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function vl(S,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),_e,Ae,we,We,ir,nr,lr,Jr,Fr,mr,Ne,ue;for(S[B>>5]|=128<<24-B%32,S[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function Lo(S){return Array.prototype.slice.call(S)}function Do(S){return Lo(S).join("")}function Q0(S){var B=S&&S.cache,V=0,he=[],_e=[],Ae=[];function we(Ne,ue){var ke=ue&&ue.stable;if(!ke){for(var Ze=0;Ze<_e.length;++Ze)if(_e[Ze]===Ne&&!Ae[Ze])return he[Ze]}var ar="g"+V++;return he.push(ar),_e.push(Ne),Ae.push(ke),ar}function We(){var Ne=[];function ue(){Ne.push.apply(Ne,Lo(arguments))}var ke=[];function Ze(){var ar="v"+V++;return ke.push(ar),arguments.length>0&&(Ne.push(ar,"="),Ne.push.apply(Ne,Lo(arguments)),Ne.push(";")),ar}return e(ue,{def:Ze,toString:function(){return Do([ke.length>0?"var "+ke.join(",")+";":"",Do(Ne)])}})}function ir(){var Ne=We(),ue=We(),ke=Ne.toString,Ze=ue.toString;function ar(ze,br){ue(ze,br,"=",Ne.def(ze,br),";")}return e(function(){Ne.apply(Ne,Lo(arguments))},{def:Ne.def,entry:Ne,exit:ue,save:ar,set:function(ze,br,hr){ar(ze,br),Ne(ze,br,"=",hr,";")},toString:function(){return ke()+Ze()}})}function nr(){var Ne=Do(arguments),ue=ir(),ke=ir(),Ze=ue.toString,ar=ke.toString;return e(ue,{then:function(){return ue.apply(ue,Lo(arguments)),this},else:function(){return ke.apply(ke,Lo(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Do(["if(",Ne,"){",Ze(),"}",ze])}})}var lr=We(),Jr={};function Fr(Ne,ue){var ke=[];function Ze(){var Xr="a"+ke.length;return ke.push(Xr),Xr}ue=ue||0;for(var ar=0;ar":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Re={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},He={cw:w,ccw:C};function er(S){return Array.isArray(S)||jr(S)||ot(S)}function rr(S){return S.sort(function(B,V){return B===si?-1:V===si?1:B=1,he>=2,B)}else if(V===Ts){var xe=S.data;return new De(xe.thisDep,xe.contextDep,xe.propDep,B)}else{if(V===xc)return new De(!1,!1,!1,B);if(V===pf){for(var Ae=!1,_e=!1,We=!1,ir=0;ir=1&&(_e=!0),lr>=2&&(We=!0)}else nr.type===Ts&&(Ae=Ae||nr.data.thisDep,_e=_e||nr.data.contextDep,We=We||nr.data.propDep)}return new De(Ae,_e,We,B)}else return new De(V===df,V===bc,V===hf,B)}}var yt=new De(!1,!1,!1,function(){});function Ct(S,B,V,he,xe,Ae,_e,We,ir,nr,lr,$r,Rr,yr,Ne,ue){var ke=nr.Record,Ze={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Ze.min=L,Ze.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,br=V.oes_vertex_array_object,hr={dirty:!0,profile:ue.profile},Xr={},Be=[],qe={},Er={};function vr(I){return I.replace(".","_")}function fr(I,U,$){var pe=vr(I);Be.push(I),Xr[pe]=hr[pe]=!!$,qe[pe]=U}function cr(I,U,$){var pe=vr(I);Be.push(I),Array.isArray($)?(hr[pe]=$.slice(),Xr[pe]=$.slice()):hr[pe]=Xr[pe]=$,Er[pe]=U}function kr(I){return!!isNaN(I)}fr(_c,O1),fr(yh,I1),cr(gh,"blendColor",[0,0,0,0]),cr(vu,"blendEquationSeparate",[oe,oe]),cr(hu,"blendFuncSeparate",[ie,Z,ie,Z]),fr(wc,ed,!0),cr(Ac,"depthFunc",ye),cr(Tc,"depthRange",[0,1]),cr(Mc,"depthMask",!0),cr(du,du,[!0,!0,!0,!0]),fr(mf,K0),cr(bh,"cullFace",g),cr(pu,pu,C),cr(yf,yf,1),fr(Sc,Lc),cr(mu,"polygonOffset",[0,0]),fr(gf,td),fr(bf,Dc),cr(xf,"sampleCoverage",[1,!1]),fr(Ec,B1),cr(yu,"stencilMask",-1),cr(Fi,"stencilFunc",[G,0,-1]),cr(_f,"stencilOpSeparate",[h,q,q,q]),cr(hl,"stencilOpSeparate",[g,q,q,q]),fr(gu,rd),cr(dl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),cr(si,si,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var Zr={gl:S,context:Rr,strings:B,next:Xr,current:hr,draw:$r,elements:Ae,buffer:xe,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:We,extensions:V,timer:yr,isBufferArgs:er},ct={primTypes:Go,compareFuncs:Me,blendFuncs:Qe,blendEquations:Ze,stencilOps:Re,glTypes:un,orientationType:He};ze&&(ct.backBuffer=[g],ct.drawBuffer=k(he.maxDrawbuffers,function(I){return I===0?[0]:k(I,function(U){return Xe+U})}));var mr=0;function Dr(){var I=$0({cache:Ne}),U=I.link,$=I.global;I.id=mr++,I.batchId="0";var pe=U(Zr),Te=I.shared={props:"a0"};Object.keys(Zr).forEach(function(K){Te[K]=$.def(pe,".",K)});var ce=I.next={},fe=I.current={};Object.keys(Er).forEach(function(K){Array.isArray(hr[K])&&(ce[K]=$.def(Te.next,".",K),fe[K]=$.def(Te.current,".",K))});var ae=I.constants={};Object.keys(ct).forEach(function(K){ae[K]=$.def(JSON.stringify(ct[K]))}),I.invoke=function(K,Y){switch(Y.type){case cu:var ve=["this",Te.context,Te.props,I.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case hf:return K.def(Te.props,Y.data);case bc:return K.def(Te.context,Y.data);case df:return K.def("this",Y.data);case Ts:return Y.data.append(I,K),Y.data.ref;case xc:return Y.data.toString();case pf:return Y.data.map(function(Ce){return I.invoke(K,Ce)})}},I.attribCache={};var X={};return I.scopeAttrib=function(K){var Y=B.id(K);if(Y in X)return X[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=X[Y]=U(ve);return Ce},I}function ft(I){var U=I.static,$=I.dynamic,pe;if(Ms in U){var Te=!!U[Ms];pe=Br(function(fe,ae){return Te}),pe.enable=Te}else if(Ms in $){var ce=$[Ms];pe=it(ce,function(fe,ae){return fe.invoke(ae,ce)})}return pe}function ut(I,U){var $=I.static,pe=I.dynamic;if(Fo in $){var Te=$[Fo];return Te?(Te=We.getFramebuffer(Te),Br(function(fe,ae){var X=fe.link(Te),K=fe.shared;ae.set(K.framebuffer,".next",X);var Y=K.context;return ae.set(Y,"."+Ki,X+".width"),ae.set(Y,"."+eo,X+".height"),X})):Br(function(fe,ae){var X=fe.shared;ae.set(X.framebuffer,".next","null");var K=X.context;return ae.set(K,"."+Ki,K+"."+kc),ae.set(K,"."+eo,K+"."+Cc),"null"})}else if(Fo in pe){var ce=pe[Fo];return it(ce,function(fe,ae){var X=fe.invoke(ae,ce),K=fe.shared,Y=K.framebuffer,ve=ae.def(Y,".getFramebuffer(",X,")");ae.set(Y,".next",ve);var Ce=K.context;return ae.set(Ce,"."+Ki,ve+"?"+ve+".width:"+Ce+"."+kc),ae.set(Ce,"."+eo,ve+"?"+ve+".height:"+Ce+"."+Cc),ve})}else return null}function Et(I,U,$){var pe=I.static,Te=I.dynamic;function ce(X){if(X in pe){var K=pe[X],Y=!0,ve=K.x|0,Ce=K.y|0,Je,Kr;return"width"in K?Je=K.width|0:Y=!1,"height"in K?Kr=K.height|0:Y=!1,new De(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function(Jr,Gr){var Or=Jr.shared.context,Sr=Je;"width"in K||(Sr=Gr.def(Or,".",Ki,"-",ve));var Pr=Kr;return"height"in K||(Pr=Gr.def(Or,".",eo,"-",Ce)),[ve,Ce,Sr,Pr]})}else if(X in Te){var Lr=Te[X],Mr=it(Lr,function(Jr,Gr){var Or=Jr.invoke(Gr,Lr),Sr=Jr.shared.context,Pr=Gr.def(Or,".x|0"),Ir=Gr.def(Or,".y|0"),vt=Gr.def('"width" in ',Or,"?",Or,".width|0:","(",Sr,".",Ki,"-",Pr,")"),Kt=Gr.def('"height" in ',Or,"?",Or,".height|0:","(",Sr,".",eo,"-",Ir,")");return[Pr,Ir,vt,Kt]});return U&&(Mr.thisDep=Mr.thisDep||U.thisDep,Mr.contextDep=Mr.contextDep||U.contextDep,Mr.propDep=Mr.propDep||U.propDep),Mr}else return U?new De(U.thisDep,U.contextDep,U.propDep,function(Jr,Gr){var Or=Jr.shared.context;return[0,0,Gr.def(Or,".",Ki),Gr.def(Or,".",eo)]}):null}var fe=ce(si);if(fe){var ae=fe;fe=new De(fe.thisDep,fe.contextDep,fe.propDep,function(X,K){var Y=ae.append(X,K),ve=X.shared.context;return K.set(ve,"."+P1,Y[2]),K.set(ve,"."+N1,Y[3]),Y})}return{viewport:fe,scissor_box:ce(dl)}}function aa(I,U){var $=I.static,pe=typeof $[pl]=="string"&&typeof $[jo]=="string";if(pe){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ce=Object.keys(Te);if(ce.length>0&&typeof Te[ce[0]]=="number"){for(var fe=[],ae=0;ae"+Pr+"?"+Y+".constant["+Pr+"]:0;"}).join(""),"}}else{","if(",Je,"(",Y,".buffer)){",Jr,"=",Kr,".createStream(",mo,",",Y,".buffer);","}else{",Jr,"=",Kr,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",Jr,".dtype;",Lr.normalized,"=!!",Y,".normalized;");function Or(Sr){K(Lr[Sr],"=",Y,".",Sr,"|0;")}return Or("size"),Or("offset"),Or("stride"),Or("divisor"),K("}}"),K.exit("if(",Lr.isStream,"){",Kr,".destroyStream(",Jr,");","}"),Lr}Te[ce]=it(fe,ae)}),Te}function Xa(I){var U=I.static,$=I.dynamic,pe={};return Object.keys(U).forEach(function(Te){var ce=U[Te];pe[Te]=Br(function(fe,ae){return typeof ce=="number"||typeof ce=="boolean"?""+ce:fe.link(ce)})}),Object.keys($).forEach(function(Te){var ce=$[Te];pe[Te]=it(ce,function(fe,ae){return fe.invoke(ae,ce)})}),pe}function nn(I,U,$,pe,Te){var ce=I.static,fe=I.dynamic,ae=aa(I,U),X=ut(I,Te),K=Et(I,X,Te),Y=Dt(I,Te),ve=an(I,Te),Ce=Ea(I,Te,ae);function Je(Or){var Sr=K[Or];Sr&&(ve[Or]=Sr)}Je(si),Je(vr(dl));var Kr=Object.keys(ve).length>0,Lr={framebuffer:X,draw:Y,shader:Ce,state:ve,dirty:Kr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Lr.profile=ft(I,Te),Lr.uniforms=Ut($,Te),Lr.drawVAO=Lr.scopeVAO=Y.vao,!Lr.drawVAO&&Ce.program&&!ae&&V.angle_instanced_arrays&&Y.static.elements){var Mr=!0,Jr=Ce.program.attributes.map(function(Or){var Sr=U.static[Or];return Mr=Mr&&!!Sr,Sr});if(Mr&&Jr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Jr,elements:Y.static.elements}));Lr.drawVAO=new De(null,null,null,function(Or,Sr){return Or.link(Gr)}),Lr.useVAO=!0}}return ae?Lr.useVAO=!0:Lr.attributes=Ha(U,Te),Lr.context=Xa(pe,Te),Lr}function ga(I,U,$){var pe=I.shared,Te=pe.context,ce=I.scope();Object.keys($).forEach(function(fe){U.save(Te,"."+fe);var ae=$[fe],X=ae.append(I,U);Array.isArray(X)?ce(Te,".",fe,"=[",X.join(),"];"):ce(Te,".",fe,"=",X,";")}),U(ce)}function ba(I,U,$,pe){var Te=I.shared,ce=Te.gl,fe=Te.framebuffer,ae;ze&&(ae=U.def(Te.extensions,".webgl_draw_buffers"));var X=I.constants,K=X.drawBuffer,Y=X.backBuffer,ve;$?ve=$.append(I,U):ve=U.def(fe,".next"),pe||U("if(",ve,"!==",fe,".cur){"),U("if(",ve,"){",ce,".bindFramebuffer(",ge,",",ve,".framebuffer);"),ze&&U(ae,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(ae,".drawBuffersWEBGL(",Y,");"),U("}",fe,".cur=",ve,";"),pe||U("}")}function ka(I,U,$){var pe=I.shared,Te=pe.gl,ce=I.current,fe=I.next,ae=pe.current,X=pe.next,K=I.cond(ae,".dirty");Be.forEach(function(Y){var ve=vr(Y);if(!(ve in $.state)){var Ce,Je;if(ve in fe){Ce=fe[ve],Je=ce[ve];var Kr=k(hr[ve].length,function(Mr){return K.def(Ce,"[",Mr,"]")});K(I.cond(Kr.map(function(Mr,Jr){return Mr+"!=="+Je+"["+Jr+"]"}).join("||")).then(Te,".",Er[ve],"(",Kr,");",Kr.map(function(Mr,Jr){return Je+"["+Jr+"]="+Mr}).join(";"),";"))}else{Ce=K.def(X,".",ve);var Lr=I.cond(Ce,"!==",ae,".",ve);K(Lr),ve in qe?Lr(I.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),ae,".",ve,"=",Ce,";"):Lr(Te,".",Er[ve],"(",Ce,");",ae,".",ve,"=",Ce,";")}}}),Object.keys($.state).length===0&&K(ae,".dirty=false;"),U(K)}function Tt(I,U,$,pe){var Te=I.shared,ce=I.current,fe=Te.current,ae=Te.gl,X;rr(Object.keys($)).forEach(function(K){var Y=$[K];if(!(pe&&!pe(Y))){var ve=Y.append(I,U);if(qe[K]){var Ce=qe[K];Fr(Y)?(X=I.link(ve,{stable:!0}),U(I.cond(X).then(ae,".enable(",Ce,");").else(ae,".disable(",Ce,");")),U(fe,".",K,"=",X,";")):(U(I.cond(ve).then(ae,".enable(",Ce,");").else(ae,".disable(",Ce,");")),U(fe,".",K,"=",ve,";"))}else if(Ci(ve)){var Je=ce[K];U(ae,".",Er[K],"(",ve,");",ve.map(function(Kr,Lr){return Je+"["+Lr+"]="+Kr}).join(";"),";")}else Fr(Y)?(X=I.link(ve,{stable:!0}),U(ae,".",Er[K],"(",X,");",fe,".",K,"=",X,";")):U(ae,".",Er[K],"(",ve,");",fe,".",K,"=",ve,";")}})}function Ra(I,U){ar&&(I.instancing=U.def(I.shared.extensions,".angle_instanced_arrays"))}function Wt(I,U,$,pe,Te){var ce=I.shared,fe=I.stats,ae=ce.current,X=ce.timer,K=$.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function Je(Or){ve=U.def(),Or(ve,"=",Y(),";"),typeof Te=="string"?Or(fe,".count+=",Te,";"):Or(fe,".count++;"),yr&&(pe?(Ce=U.def(),Or(Ce,"=",X,".getNumPendingQueries();")):Or(X,".beginQuery(",fe,");"))}function Kr(Or){Or(fe,".cpuTime+=",Y(),"-",ve,";"),yr&&(pe?Or(X,".pushScopeStats(",Ce,",",X,".getNumPendingQueries(),",fe,");"):Or(X,".endQuery();"))}function Lr(Or){var Sr=U.def(ae,".profile");U(ae,".profile=",Or,";"),U.exit(ae,".profile=",Sr,";")}var Mr;if(K){if(Fr(K)){K.enable?(Je(U),Kr(U.exit),Lr("true")):Lr("false");return}Mr=K.append(I,U),Lr(Mr)}else Mr=U.def(ae,".profile");var Jr=I.block();Je(Jr),U("if(",Mr,"){",Jr,"}");var Gr=I.block();Kr(Gr),U.exit("if(",Mr,"){",Gr,"}")}function Za(I,U,$,pe,Te){var ce=I.shared;function fe(X){switch(X){case ml:case Bl:case zl:return 2;case tn:case Ss:case Tf:return 3;case Af:case _u:case Au:return 4;default:return 1}}function ae(X,K,Y){var ve=ce.gl,Ce=U.def(X,".location"),Je=U.def(ce.attributes,"[",Ce,"]"),Kr=Y.state,Lr=Y.buffer,Mr=[Y.x,Y.y,Y.z,Y.w],Jr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",Je,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Sr=Y.type,Pr;if(Y.size?Pr=U.def(Y.size,"||",K):Pr=K,U("if(",Je,".type!==",Sr,"||",Je,".size!==",Pr,"||",Jr.map(function(vt){return Je+"."+vt+"!=="+Y[vt]}).join("||"),"){",ve,".bindBuffer(",mo,",",Lr,".buffer);",ve,".vertexAttribPointer(",[Ce,Pr,Sr,Y.normalized,Y.stride,Y.offset],");",Je,".type=",Sr,";",Je,".size=",Pr,";",Jr.map(function(vt){return Je+"."+vt+"="+Y[vt]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",Je,".divisor!==",Ir,"){",I.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",Je,".divisor=",Ir,";}")}}function Or(){U("if(",Je,".buffer){",ve,".disableVertexAttribArray(",Ce,");",Je,".buffer=null;","}if(",vo.map(function(Sr,Pr){return Je+"."+Sr+"!=="+Mr[Pr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Mr,");",vo.map(function(Sr,Pr){return Je+"."+Sr+"="+Mr[Pr]+";"}).join(""),"}")}Kr===Qi?Gr():Kr===As?Or():(U("if(",Kr,"===",Qi,"){"),Gr(),U("}else{"),Or(),U("}"))}pe.forEach(function(X){var K=X.name,Y=$.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(I,U)}else{if(!Te(yt))return;var Ce=I.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function(Je){ve[Je]=U.def(Ce,".",Je)})}ae(I.link(X),fe(X.info.type),ve)})}function on(I,U,$,pe,Te,ce){for(var fe=I.shared,ae=fe.gl,X,K=0;K1){for(var sn=[],qi=[],ro=0;ro>1)",Lr],");")}function Ir(){$(Mr,".drawArraysInstancedANGLE(",[Ce,Je,Kr,Lr],");")}Y&&Y!=="null"?Gr?Pr():($("if(",Y,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}function Sr(){function Pr(){$(ce+".drawElements("+[Ce,Kr,Jr,Je+"<<(("+Jr+"-"+gc+")>>1)"]+");")}function Ir(){$(ce+".drawArrays("+[Ce,Je,Kr]+");")}Y&&Y!=="null"?Gr?Pr():($("if(",Y,"){"),Pr(),$("}else{"),Ir(),$("}")):Ir()}ar&&(typeof Lr!="number"||Lr>=0)?typeof Lr=="string"?($("if(",Lr,">0){"),Or(),$("}else if(",Lr,"<0){"),Sr(),$("}")):Or():Sr()}function mt(I,U,$,pe,Te){var ce=Dr(),fe=ce.proc("body",Te);return ar&&(ce.instancing=fe.def(ce.shared.extensions,".angle_instanced_arrays")),I(ce,fe,$,pe),ce.compile().body}function qt(I,U,$,pe){Ra(I,U),$.useVAO?$.drawVAO?U(I.shared.vao,".setVAO(",$.drawVAO.append(I,U),");"):U(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(U(I.shared.vao,".setVAO(null);"),Za(I,U,$,pe.attributes,function(){return!0})),on(I,U,$,pe.uniforms,function(){return!0},!1),ln(I,U,U,$)}function Qt(I,U){var $=I.proc("draw",1);Ra(I,$),ga(I,$,U.context),ba(I,$,U.framebuffer),ka(I,$,U),Tt(I,$,U.state),Wt(I,$,U,!1,!0);var pe=U.shader.progVar.append(I,$);if($(I.shared.gl,".useProgram(",pe,".program);"),U.shader.program)qt(I,$,U,U.shader.program);else{$(I.shared.vao,".setVAO(null);");var Te=I.global.def("{}"),ce=$.def(pe,".id"),fe=$.def(Te,"[",ce,"]");$(I.cond(fe).then(fe,".call(this,a0);").else(fe,"=",Te,"[",ce,"]=",I.link(function(ae){return mt(qt,I,U,ae,1)}),"(",pe,");",fe,".call(this,a0);"))}Object.keys(U.state).length>0&&$(I.shared.current,".dirty=true;"),I.shared.vao&&$(I.shared.vao,".setVAO(null);")}function z(I,U,$,pe){I.batchId="a1",Ra(I,U);function Te(){return!0}Za(I,U,$,pe.attributes,Te),on(I,U,$,pe.uniforms,Te,!1),ln(I,U,U,$)}function me(I,U,$,pe){Ra(I,U);var Te=$.contextDep,ce=U.def(),fe="a0",ae="a1",X=U.def();I.shared.props=X,I.batchId=ce;var K=I.scope(),Y=I.scope();U(K.entry,"for(",ce,"=0;",ce,"<",ae,";++",ce,"){",X,"=",fe,"[",ce,"];",Y,"}",K.exit);function ve(Jr){return Jr.contextDep&&Te||Jr.propDep}function Ce(Jr){return!ve(Jr)}if($.needsContext&&ga(I,Y,$.context),$.needsFramebuffer&&ba(I,Y,$.framebuffer),Tt(I,Y,$.state,ve),$.profile&&ve($.profile)&&Wt(I,Y,$,!1,!0),pe)$.useVAO?$.drawVAO?ve($.drawVAO)?Y(I.shared.vao,".setVAO(",$.drawVAO.append(I,Y),");"):K(I.shared.vao,".setVAO(",$.drawVAO.append(I,K),");"):K(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(K(I.shared.vao,".setVAO(null);"),Za(I,K,$,pe.attributes,Ce),Za(I,Y,$,pe.attributes,ve)),on(I,K,$,pe.uniforms,Ce,!1),on(I,Y,$,pe.uniforms,ve,!0),ln(I,K,Y,$);else{var Je=I.global.def("{}"),Kr=$.shader.progVar.append(I,Y),Lr=Y.def(Kr,".id"),Mr=Y.def(Je,"[",Lr,"]");Y(I.shared.gl,".useProgram(",Kr,".program);","if(!",Mr,"){",Mr,"=",Je,"[",Lr,"]=",I.link(function(Jr){return mt(z,I,$,Jr,2)}),"(",Kr,");}",Mr,".call(this,a0[",ce,"],",ce,");")}}function be(I,U){var $=I.proc("batch",2);I.batchId="0",Ra(I,$);var pe=!1,Te=!0;Object.keys(U.context).forEach(function(Je){pe=pe||U.context[Je].propDep}),pe||(ga(I,$,U.context),Te=!1);var ce=U.framebuffer,fe=!1;ce?(ce.propDep?pe=fe=!0:ce.contextDep&&pe&&(fe=!0),fe||ba(I,$,ce)):ba(I,$,null),U.state.viewport&&U.state.viewport.propDep&&(pe=!0);function ae(Je){return Je.contextDep&&pe||Je.propDep}ka(I,$,U),Tt(I,$,U.state,function(Je){return!ae(Je)}),(!U.profile||!ae(U.profile))&&Wt(I,$,U,!1,"a1"),U.contextDep=pe,U.needsContext=Te,U.needsFramebuffer=fe;var X=U.shader.progVar;if(X.contextDep&&pe||X.propDep)me(I,$,U,null);else{var K=X.append(I,$);if($(I.shared.gl,".useProgram(",K,".program);"),U.shader.program)me(I,$,U,U.shader.program);else{$(I.shared.vao,".setVAO(null);");var Y=I.global.def("{}"),ve=$.def(K,".id"),Ce=$.def(Y,"[",ve,"]");$(I.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",I.link(function(Je){return mt(me,I,U,Je,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&$(I.shared.current,".dirty=true;"),I.shared.vao&&$(I.shared.vao,".setVAO(null);")}function Nr(I,U){var $=I.proc("scope",3);I.batchId="a2";var pe=I.shared,Te=pe.current;if(ga(I,$,U.context),U.framebuffer&&U.framebuffer.append(I,$),rr(Object.keys(U.state)).forEach(function(ae){var X=U.state[ae],K=X.append(I,$);Ci(K)?K.forEach(function(Y,ve){kr(Y)?$.set(I.next[ae],"["+ve+"]",Y):$.set(I.next[ae],"["+ve+"]",I.link(Y,{stable:!0}))}):Fr(X)?$.set(pe.next,"."+ae,I.link(K,{stable:!0})):$.set(pe.next,"."+ae,K)}),Wt(I,$,U,!0,!0),[ho,bu,qo,gi,Ro].forEach(function(ae){var X=U.draw[ae];if(X){var K=X.append(I,$);kr(K)?$.set(pe.draw,"."+ae,K):$.set(pe.draw,"."+ae,I.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(ae){var X=U.uniforms[ae].append(I,$);Array.isArray(X)&&(X="["+X.map(function(K){return kr(K)?K:I.link(K,{stable:!0})})+"]"),$.set(pe.uniforms,"["+I.link(B.id(ae),{stable:!0})+"]",X)}),Object.keys(U.attributes).forEach(function(ae){var X=U.attributes[ae].append(I,$),K=I.scopeAttrib(ae);Object.keys(new ke).forEach(function(Y){$.set(K,"."+Y,X[Y])})}),U.scopeVAO){var ce=U.scopeVAO.append(I,$);kr(ce)?$.set(pe.vao,".targetVAO",ce):$.set(pe.vao,".targetVAO",I.link(ce,{stable:!0}))}function fe(ae){var X=U.shader[ae];if(X){var K=X.append(I,$);kr(K)?$.set(pe.shader,"."+ae,K):$.set(pe.shader,"."+ae,I.link(K,{stable:!0}))}}fe(jo),fe(pl),Object.keys(U.state).length>0&&($(Te,".dirty=true;"),$.exit(Te,".dirty=true;")),$("a1(",I.shared.context,",a0,",I.batchId,");")}function Ft(I){if(!(typeof I!="object"||Ci(I))){for(var U=Object.keys(I),$=0;$=0;--mt){var qt=Zr[mt];qt&&qt(Ne,null,0)}V.flush(),lr&&lr.update()}function Et(){!ft&&Zr.length>0&&(ft=d.next(ut))}function aa(){ft&&(d.cancel(ut),ft=null)}function Ea(mt){mt.preventDefault(),xe=!0,aa(),ct.forEach(function(qt){qt()})}function Dt(mt){V.getError(),xe=!1,Ae.restore(),Xr.restore(),ar.restore(),Be.restore(),qe.restore(),Er.restore(),br.restore(),lr&&lr.restore(),vr.procs.refresh(),Et(),mr.forEach(function(qt){qt()})}kr&&(kr.addEventListener(jt,Ea,!1),kr.addEventListener(ua,Dt,!1));function an(){Zr.length=0,aa(),kr&&(kr.removeEventListener(jt,Ea),kr.removeEventListener(ua,Dt)),Xr.clear(),Er.clear(),qe.clear(),br.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),Dr.forEach(function(mt){mt()})}function Ut(mt){function qt(ce){var fe=e({},ce);delete fe.uniforms,delete fe.attributes,delete fe.context,delete fe.vao,"stencil"in fe&&fe.stencil.op&&(fe.stencil.opBack=fe.stencil.opFront=fe.stencil.op,delete fe.stencil.op);function ae(X){if(X in fe){var K=fe[X];delete fe[X],Object.keys(K).forEach(function(Y){fe[X+"."+Y]=K[Y]})}}return ae("blend"),ae("depth"),ae("cull"),ae("stencil"),ae("polygonOffset"),ae("scissor"),ae("sample"),"vao"in ce&&(fe.vao=ce.vao),fe}function Qt(ce,fe){var ae={},X={};return Object.keys(ce).forEach(function(K){var Y=ce[K];if(v.isDynamic(Y)){X[K]=v.unbox(Y,K);return}else if(fe&&Array.isArray(Y)){for(var ve=0;ve0)return I.call(this,pe(ce|0),ce|0)}else if(Array.isArray(ce)){if(ce.length)return I.call(this,ce,ce.length)}else return qr.call(this,ce)}return e(Te,{stats:Ft,destroy:function(){Ht.destroy()}})}var Ha=Er.setFBO=Ut({framebuffer:v.define.call(null,ja,"framebuffer")});function Xa(mt,qt){var Qt=0;vr.procs.poll();var z=qt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=gn),"depth"in qt&&(V.clearDepth(+qt.depth),Qt|=La),"stencil"in qt&&(V.clearStencil(qt.stencil|0),Qt|=dt),V.clear(Qt)}function nn(mt){if("framebuffer"in mt)if(mt.framebuffer&&mt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ha(e({framebuffer:mt.framebuffer.faces[qt]},mt),Xa);else Ha(mt,Xa);else Xa(null,mt)}function ga(mt){Zr.push(mt);function qt(){var Qt=Kn(Zr,mt);function z(){var me=Kn(Zr,z);Zr[me]=Zr[Zr.length-1],Zr.length-=1,Zr.length<=0&&aa()}Zr[Qt]=z}return Et(),{cancel:qt}}function ba(){var mt=cr.viewport,qt=cr.scissor_box;mt[0]=mt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=mt[2]=qt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=mt[3]=qt[3]=V.drawingBufferHeight}function ka(){Ne.tick+=1,Ne.time=Ra(),ba(),vr.procs.poll()}function Tt(){Be.refresh(),ba(),vr.procs.refresh(),lr&&lr.update()}function Ra(){return(p()-$r)/1e3}Tt();function Wt(mt,qt){var Qt;switch(mt){case"frame":return ga(qt);case"lost":Qt=ct;break;case"restore":Qt=mr;break;case"destroy":Qt=Dr;break;default:}return Qt.push(qt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:an,_gl:V,_refresh:Tt,poll:function(){ka(),lr&&lr.update()},now:Ra,stats:We,getCachedCode:Za,preloadCachedCode:on});return B.onDone(null,ln),ln}return Ri})});var e5=N((bOe,Zre)=>{"use strict";var z9e=jre(),G9e=Xre();Zre.exports=function(r,t,a){var n=r._fullLayout,i=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(a);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=G9e({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||window.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch(l){i=!1}o.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(l){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:l,layer:o.key})},!1)}}),i||z9e({container:n._glcontainer.node()}),i}});var rte=N((k9,ete)=>{"use strict";var Jre=g7(),$re=Z7(),U9e=dee(),Qre=Vre(),E9=Ur(),H9e=rv().selectMode,V9e=e5(),Y9e=Ni(),W9e=U6(),j9e=p7().styleTextSelection,Kre={};function X9e(e,r,t,a){var n=e._size,i=e.width*a,o=e.height*a,l=n.l*a,s=n.b*a,f=n.r*a,u=n.t*a,c=n.w*a,v=n.h*a;return[l+r.domain[0]*c,s+t.domain[0]*v,i-f-(1-r.domain[1])*c,o-u-(1-t.domain[1])*v]}var k9=ete.exports=function(r,t,a){if(a.length){var n=r._fullLayout,i=t._scene,o=t.xaxis,l=t.yaxis,s,f;if(i){var u=V9e(r,["ANGLE_instanced_arrays","OES_element_index_uint"],Kre);if(!u){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(W9e(r,t,a),i.dirty){if((i.line2d||i.error2d)&&!(i.scatter2d||i.fill2d||i.glText)&&v.clear({color:!0,depth:!0}),i.error2d===!0&&(i.error2d=U9e(v)),i.line2d===!0&&(i.line2d=$re(v)),i.scatter2d===!0&&(i.scatter2d=Jre(v)),i.fill2d===!0&&(i.fill2d=$re(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;sse&&(isNaN(j[le])||isNaN(j[le+1]));)le-=2;J.positions=j.slice(se,le+2)}return J}),i.line2d.update(i.lineOptions)),i.error2d){var m=(i.errorXOptions||[]).concat(i.errorYOptions||[]);i.error2d.update(m)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=E9.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(J,j){var se=a[j];if(!(!J||!se||!se[0]||!se[0].trace)){var le=se[0],Ee=le.trace,Ge=le.t,Le=i.lineOptions[j],Ve,we,ur=[];Ee._ownfill&&ur.push(j),Ee._nexttrace&&ur.push(j+1),ur.length&&(i.fillOrder[j]=ur);var Oe=[],Ue=Le&&Le.positions||Ge.positions,xr,Ye;if(Ee.fill==="tozeroy"){for(xr=0;xrxr&&isNaN(Ue[Ye+1]);)Ye-=2;Ue[xr+1]!==0&&(Oe=[Ue[xr],0]),Oe=Oe.concat(Ue.slice(xr,Ye+2)),Ue[Ye+1]!==0&&(Oe=Oe.concat([Ue[Ye],0]))}else if(Ee.fill==="tozerox"){for(xr=0;xrxr&&isNaN(Ue[Ye]);)Ye-=2;Ue[xr]!==0&&(Oe=[0,Ue[xr+1]]),Oe=Oe.concat(Ue.slice(xr,Ye+2)),Ue[Ye]!==0&&(Oe=Oe.concat([0,Ue[Ye+1]]))}else if(Ee.fill==="toself"||Ee.fill==="tonext"){for(Oe=[],Ve=0,J.splitNull=!0,we=0;we-1;for(let[J]of a)if(J){var x=J.trace,A=J.t,E=A.index,M=x._length,k=A.x,F=A.y;if(x.selectedpoints||T||_){if(T||(T=!0),x.selectedpoints){var P=i.selectBatch[E]=E9.selIndices2selPoints(x),O={};for(f=0;f{"use strict";var tte=ZJ();tte.plot=rte();ate.exports=tte});var ote=N((_Oe,ite)=>{"use strict";ite.exports=nte()});var C9=N((wOe,ute)=>{"use strict";var Z9e=lv(),fte=Nh(),lte=um().axisHoverFormat,{hovertemplateAttrs:J9e,templatefallbackAttrs:$9e}=vd(),_g=yx(),Q9e=ui().idRegex,K9e=Ja().templatedArray,Zp=Gn().extendFlat,Ku=Z9e.marker,eMe=Ku.line,rMe=Zp(fte("marker.line",{editTypeOverride:"calc"}),{width:Zp({},eMe.width,{editType:"calc"}),editType:"calc"}),r5=Zp(fte("marker"),{symbol:Ku.symbol,angle:Ku.angle,size:Zp({},Ku.size,{editType:"markerSize"}),sizeref:Ku.sizeref,sizemin:Ku.sizemin,sizemode:Ku.sizemode,opacity:Ku.opacity,colorbar:Ku.colorbar,line:rMe,editType:"calc"});r5.color.editType=r5.cmin.editType=r5.cmax.editType="style";function ste(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:Q9e[e],editType:"plot"}}}ute.exports={dimensions:K9e("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:Zp({},_g.text,{}),hovertext:Zp({},_g.hovertext,{}),hovertemplate:J9e(),hovertemplatefallback:$9e(),xhoverformat:lte("x"),yhoverformat:lte("y"),marker:r5,xaxes:ste("x"),yaxes:ste("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:_g.selected.marker,editType:"calc"},unselected:{marker:_g.unselected.marker,editType:"calc"},opacity:_g.opacity}});var L9=N((AOe,cte)=>{"use strict";cte.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var D9=Ur(),tMe=bl(),vte=C9(),aMe=Ni(),nMe=Eb(),iMe=L9(),oMe=gx().isOpenSymbol;hte.exports=function(r,t,a,n){function i(d,p){return D9.coerce(r,t,vte,d,p)}var o=tMe(r,t,{name:"dimensions",handleItemDefaults:lMe}),l=i("diagonal.visible"),s=i("showupperhalf"),f=i("showlowerhalf"),u=iMe(t,o,"values");if(!u||!l&&!s&&!f){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),nMe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=oMe(t.marker.symbol),v=aMe.isBubble(t);i("marker.line.width",c||v?1:0),sMe(r,t,n,i),D9.coerceSelectionMarkerOpacity(t,i)};function lMe(e,r){function t(n,i){return D9.coerce(e,r,vte.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function sMe(e,r,t,a){var n=r.dimensions,i=n.length,o=r.showupperhalf,l=r.showlowerhalf,s=r.diagonal.visible,f,u,c=new Array(i),v=new Array(i);for(f=0;fu&&o||f{"use strict";var pte=Ur();mte.exports=function(r,t){var a=r._fullLayout,n=t.uid,i=a._splomScenes;i||(i=a._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||(s=i[n]=pte.extendFlat({},o,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||pte.extendFlat(s,o),s}});var xte=N((SOe,bte)=>{"use strict";var F9=Ur(),t5=Sn(),fMe=rp().calcMarkerSize,uMe=rp().calcAxisExpansion,cMe=uy(),gte=ng().markerSelection,vMe=ng().markerStyle,hMe=yte(),dMe=ei().BADNUM,pMe=yp().TOO_MANY_POINTS;bte.exports=function(r,t){var a=t.dimensions,n=t._length,i={},o=i.cdata=[],l=i.data=[],s=t._visibleDims=[],f,u,c,v,d;function p(_,x){for(var A=_.makeCalcdata({v:x.values,vcalendar:t.calendar},"v"),E=0;EpMe,b;for(m?b=i.sizeAvg||Math.max(i.size,3):b=fMe(t,n),u=0;u{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?wg.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(wg.exports=function(){return(e()-n)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,n=a-i):Date.now?(wg.exports=function(){return Date.now()-t},t=Date.now()):(wg.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(_te)});var Tte=N((EOe,i5)=>{var mMe=wte(),ec=window,a5=["moz","webkit"],$p="AnimationFrame",Qp=ec["request"+$p],Ag=ec["cancel"+$p]||ec["cancelRequest"+$p];for(Jp=0;!Qp&&Jp{Mte.exports=function(r,t){var a=typeof r=="number",n=typeof t=="number";a&&!n?(t=r,r=0):!a&&!n&&(r=0,t=0),r=r|0,t=t|0;var i=t-r;if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),l=0,s=r;l{"use strict";var yMe=g7(),gMe=Vf(),bMe=h0(),Ete=Tte(),xMe=Ste(),q9=gp(),_Me=d0();Cte.exports=Dv;function Dv(e,r){if(!(this instanceof Dv))return new Dv(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=yMe(e),this.canvas=this.scatter.canvas}Dv.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=Ete(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,Ete(()=>{this.dirty=!1})),this)};Dv.prototype.update=function(...e){if(!e.length)return;for(let a=0;am||!n.lower&&y{r[i+l]=a})}this.scatter.draw(...r)}return this};Dv.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function wMe(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function o5(e,r,t){let a,n,i,o,l,s,f,u,c=e[r],v=e[t];return c.length>2?(a=c[0],i=c[2],n=c[1],o=c[3]):c.length?(a=n=c[0],i=o=c[1]):(a=c.x,n=c.y,i=c.x+c.width,o=c.y+c.height),v.length>2?(l=v[0],f=v[2],s=v[1],u=v[3]):v.length?(l=s=v[0],f=u=v[1]):(l=v.x,s=v.y,f=v.x+v.width,u=v.y+v.height),[l,n,f,o]}function kte(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let r=q9(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var Fte=N((LOe,Dte)=>{"use strict";var AMe=Lte(),P9=Ur(),l5=Sn(),TMe=rv().selectMode;Dte.exports=function(r,t,a){if(a.length)for(var n=0;n-1,O=TMe(u)||!!n.selectedpoints||P,R=!0;if(O){var H=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var W=n.selectedpoints,ee={};for(d=0;d{"use strict";Rte.getDimIndex=function(r,t){for(var a=t._id,n=a.charAt(0),i={x:0,y:1}[n],o=r._visibleDims,l=0;l{"use strict";var qte=N9(),SMe=$T().calcHover,Pte=hn().getFromId,EMe=Gn().extendFlat;function kMe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=Nte(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,f=n.gd,u=EMe({},e),c=0;c{"use strict";var Ute=Ur(),Bte=Ute.pushUnique,zte=Ni(),Gte=N9();Hte.exports=function(r,t){var a=r.cd,n=a[0].trace,i=a[0].t,o=r.scene,l=o.matrixOptions.cdata,s=r.xaxis,f=r.yaxis,u=[];if(!o)return u;var c=!zte.hasMarkers(n)&&!zte.hasText(n);if(n.visible!==!0||c)return u;var v=Gte.getDimIndex(n,s),d=Gte.getDimIndex(n,f);if(v===!1||d===!1)return u;var p=i.xpx[v],y=i.ypx[d],m=l[v],b=l[d],T=(r.scene.selectBatch||[]).slice(),_=[];if(t!==!1&&!t.degenerate)for(var x=0;x{"use strict";var Yte=Ur(),CMe=uy(),LMe=ng().markerStyle;Wte.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){CMe(r,a),Yte.extendFlat(n.matrixOptions,LMe(r,a));var i=Yte.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Zte=N((POe,Xte)=>{"use strict";var DMe=Bt(),FMe=OT();Xte.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:C9(),supplyDefaults:dte(),colorbar:qb(),calc:xte(),plot:Fte(),hoverPoints:Ote().hoverPoints,selectPoints:Vte(),editStyle:jte(),meta:{}};DMe.register(FMe)});var rae=N((NOe,eae)=>{"use strict";var RMe=Z7(),qMe=Bt(),PMe=e5(),NMe=om().getModuleCalcData,Fv=yy(),Jte=Sn().getFromId,$te=hn().shouldShowZeroLine,Qte="splom",Kte={};function IMe(e){var r=e._fullLayout,t=qMe.getModule(Qte),a=NMe(e.calcdata,t)[0],n=PMe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],Kte);n&&(r._hasOnlyLargeSploms&&I9(e),t.plot(e,{},a))}function OMe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&I9(e);for(var a=0;a{"use strict";var tae=Zte();tae.basePlotModule=rae(),aae.exports=tae});var oae=N((OOe,iae)=>{"use strict";iae.exports=nae()});var z9=N((BOe,lae)=>{"use strict";var UMe=Nh(),O9=Vl(),B9=Ui(),HMe=cx().attributes,s5=Gn().extendFlat,VMe=Ja().templatedArray;lae.exports={domain:HMe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:B9({editType:"plot"}),tickfont:B9({autoShadowDflt:!0,editType:"plot"}),rangefont:B9({editType:"plot"}),dimensions:VMe("dimension",{label:{valType:"string",editType:"plot"},tickvals:s5({},O9.tickvals,{editType:"plot"}),ticktext:s5({},O9.ticktext,{editType:"plot"}),tickformat:s5({},O9.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:s5({editType:"calc"},UMe("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Tg=N((zOe,sae)=>{"use strict";sae.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Mg=N((GOe,uae)=>{"use strict";var YMe=f2();function fae(e){return[e]}uae.exports={keyFun:function(e){return e.key},repeat:fae,descend:YMe,wrap:fae,unwrap:function(e){return e[0]}}});var H9=N((UOe,_ae)=>{"use strict";var Jn=Tg(),af=ha(),WMe=Mg().keyFun,f5=Mg().repeat,Kp=Ur().sorterAsc,jMe=Ur().strTranslate,cae=Jn.bar.snapRatio;function vae(e,r){return e*(1-cae)+r*cae}var hae=Jn.bar.snapClose;function XMe(e,r){return e*(1-hae)+r*hae}function c5(e,r,t,a){if(ZMe(t,a))return t;var n=e?-1:1,i=0,o=r.length-1;if(n<0){var l=i;i=o,o=l}for(var s=r[i],f=s,u=i;n*u=r[t][0]&&e<=r[t][1])return!0;return!1}function JMe(e){e.attr("x",-Jn.bar.captureWidth/2).attr("width",Jn.bar.captureWidth)}function $Me(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function QMe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=dae(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;le[1]+t||r=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function pae(){af.select(document.body).style("cursor",null)}function U9(e){e.attr("stroke-dasharray",QMe)}function u5(e,r){var t=af.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Jn.bar.snapDuration).each("end",r):t;U9(a)}function mae(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),f=dae(s,l),u=NaN,c=NaN,v=NaN;for(o=0;o<=f.length;o++){var d=f[o];if(d&&d[0]<=r&&r<=d[1]){u=o;break}else if(c=o?o-1:NaN,d&&d[0]>r){v=o;break}}if(n=u,isNaN(n)&&(isNaN(c)||isNaN(v)?n=isNaN(c)?v:c:n=r-f[c][1]=T[0]&&b<=T[1]){i.clickableOrdinalRange=T;break}}}return i}function eSe(e,r){af.event.sourceEvent.stopPropagation();var t=r.height-af.mouse(e)[1]-2*Jn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=mae(r,t),o=i.interval,l=n.svgBrush;if(l.wasDragged=!1,l.grabbingBar=i.region==="ns",l.grabbingBar){var s=o.map(r.unitToPaddedPx);l.grabPoint=t-s[0]-Jn.verticalPadding,l.barLength=s[1]-s[0]}l.clickableOrdinalRange=i.clickableOrdinalRange,l.stayingIntervals=r.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(l.stayingIntervals=l.stayingIntervals.filter(function(f){return f[0]!==o[0]&&f[1]!==o[1]})),l.startExtent=i.region?o[i.region==="s"?1:0]:a,r.parent.inBrushDrag=!0,l.brushStartCallback()}function yae(e,r){af.event.sourceEvent.stopPropagation();var t=r.height-af.mouse(e)[1]-2*Jn.verticalPadding,a=r.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[t-a.grabPoint,t+a.barLength-a.grabPoint].map(r.unitToPaddedPx.invert):a.newExtent=[a.startExtent,r.unitToPaddedPx.invert(t)].sort(Kp),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),u5(e.parentNode)}function rSe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(gae(e,r),yae(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=af.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,pae(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?t.filterSpecified&&r.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],t.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&G9(t)):G9(t),n.brushCallback(r),u5(e.parentNode),n.brushEndCallback(t.filterSpecified?a.getConsolidated():[]);return}var l=function(){a.set(a.getConsolidated())};if(r.ordinal){var s=r.unitTickvals;s[s.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(f?[n.newExtent]:[]),n.extent.length||G9(t),n.brushCallback(r),f?u5(e.parentNode,l):(l(),u5(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function gae(e,r){var t=r.height-af.mouse(e)[1]-2*Jn.verticalPadding,a=mae(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),af.select(document.body).style("cursor",n)}function tSe(e){e.on("mousemove",function(r){af.event.preventDefault(),r.parent.inBrushDrag||gae(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||pae()}).call(af.behavior.drag().on("dragstart",function(r){eSe(this,r)}).on("drag",function(r){yae(this,r)}).on("dragend",function(r){rSe(this,r)}))}function bae(e,r){return e[0]-r[0]}function aSe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(f5);n.enter().append("rect").classed("background",!0).call(JMe).call($Me).style("pointer-events",a?"none":"auto").attr("transform",jMe(0,Jn.verticalPadding)),n.call(tSe).attr("height",function(l){return l.height-Jn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(f5);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-Jn.bar.width/2).attr("stroke-width",Jn.bar.width+Jn.bar.strokeWidth).attr("stroke",r).attr("opacity",Jn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(U9);var o=e.selectAll(".highlight").data(f5);o.enter().append("line").classed("highlight",!0).attr("x",-Jn.bar.width/2).attr("stroke-width",Jn.bar.width-Jn.bar.strokeWidth).attr("stroke",Jn.bar.fillColor).attr("opacity",Jn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(U9)}function nSe(e,r,t){var a=e.selectAll("."+Jn.cn.axisBrush).data(f5,WMe);a.enter().append("g").classed(Jn.cn.axisBrush,!0),aSe(a,r,t)}function iSe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function G9(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function oSe(e){return function(t){var a=t.brush,n=iSe(a),i=n.slice();a.filter.set(i),e()}}function xae(e){for(var r=e.slice(),t=[],a,n=r.shift();n;){for(a=n.slice();(n=r.shift())&&n[0]<=a[1];)a[1]=Math.max(a[1],n[1]);t.push(a)}return t.length===1&&t[0][0]>t[0][1]&&(t=[]),t}function lSe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(Kp)}).sort(bae),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=xae(e),t=e.reduce(function(n,i){return[Math.min(n[0],i[0]),Math.max(n[1],i[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return r},getBounds:function(){return t}}}function sSe(e,r,t,a,n,i){var o=lSe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:oSe(n),brushEndCallback:i}}}function fSe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(Kp)}),r.multiselect?e=xae(e.sort(bae)):e=[e[0]]):e=[e.sort(Kp)],r.tickvals){var t=r.tickvals.slice().sort(Kp);if(e=e.map(function(a){var n=[c5(0,t,a[0],[]),c5(1,t,a[1],[])];if(n[1]>n[0])return n}).filter(function(a){return a}),!e.length)return}return e.length>1?e:e[0]}_ae.exports={makeBrush:sSe,ensureAxisBrush:nSe,cleanRanges:fSe}});var Tae=N((HOe,Aae)=>{"use strict";var Rv=Ur(),uSe=Is().hasColorscale,cSe=kd(),vSe=cx().defaults,hSe=bl(),dSe=hn(),wae=z9(),pSe=H9(),V9=Tg().maxDimensionCount,mSe=L9();function ySe(e,r,t,a,n){var i=n("line.color",t);if(uSe(e,"line")&&Rv.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),cSe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function gSe(e,r,t,a){function n(f,u){return Rv.coerce(e,r,wae.dimensions,f,u)}var i=n("values"),o=n("visible");if(i&&i.length||(o=r.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var l=n("range");r._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:l},dSe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=pSe.cleanRanges(s,r))}}Aae.exports=function(r,t,a,n){function i(u,c){return Rv.coerce(r,t,wae,u,c)}var o=r.dimensions;Array.isArray(o)&&o.length>V9&&(Rv.log("parcoords traces support up to "+V9+" dimensions at the moment"),o.splice(V9));var l=hSe(r,t,{name:"dimensions",layout:n,handleItemDefaults:gSe}),s=ySe(r,t,a,n,i);vSe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),mSe(t,l,"values",s);var f=Rv.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});Rv.coerceFont(i,"labelfont",f),Rv.coerceFont(i,"tickfont",f,{autoShadowDflt:!0}),Rv.coerceFont(i,"rangefont",f),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var Sae=N((VOe,Mae)=>{"use strict";var bSe=Ur().isArrayOrTypedArray,Y9=Ld(),xSe=Mg().wrap;Mae.exports=function(r,t){var a,n;return Y9.hasColorscale(t,"line")&&bSe(t.line.color)?(a=t.line.color,n=Y9.extractOpts(t.line).colorscale,Y9.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=_Se(t._length),n=[[0,t.line.color],[1,t.line.color]]),xSe({lineColor:a,cscale:n})};function _Se(e){for(var r=new Array(e),t=0;t>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),W9.default[e])t=W9.default[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var s=r[1];n=s.replace(/a$/,"");var f=n==="cmyk"?4:n==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/),n==="color"&&(n=t.shift()),t=t.map(function(v,d){if(v[v.length-1]==="%")return v=parseFloat(v)/100,d===3?v:n==="rgb"?v*255:n[0]==="h"||n[0]==="l"&&!d?v*100:n==="lab"?v*125:n==="lch"?d<2?v*150:v*360:n[0]==="o"&&!d?v:n==="oklab"?v*.4:n==="oklch"?d<2?v*.4:v*360:v;if(n[d]==="h"||d===2&&n[n.length-1]==="h"){if(Eae[v]!==void 0)return Eae[v];if(v.endsWith("deg"))return parseFloat(v);if(v.endsWith("turn"))return parseFloat(v)*360;if(v.endsWith("grad"))return parseFloat(v)*360/400;if(v.endsWith("rad"))return parseFloat(v)*180/Math.PI}return v==="none"?0:parseFloat(v)}),a=t.length>f?t.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(v){return parseFloat(v)}),n=((c=(u=e.match(/([a-z])/ig))==null?void 0:u.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:n,values:t,alpha:a}}var W9,kae,Eae,Cae=Pg(()=>{W9=aie(s7(),1),kae=wSe,Eae={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Sg,j9=Pg(()=>{Sg={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var v5,Lae=Pg(()=>{j9();v5={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}};Sg.hsl=function(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,n=Math.min(r,t,a),i=Math.max(r,t,a),o=i-n,l,s,f;return i===n?l=0:r===i?l=(t-a)/o:t===i?l=2+(a-r)/o:a===i&&(l=4+(r-t)/o),l=Math.min(l*60,360),l<0&&(l+=360),f=(n+i)/2,i===n?s=0:f<=.5?s=o/(i+n):s=o/(2-i-n),[l,s*100,f*100]}});var Fae={};tie(Fae,{default:()=>Dae});function Dae(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var r,t,a,n=kae(e);if(!n.space)return[];let i=n.space[0]==="h"?v5.min:Sg.min,o=n.space[0]==="h"?v5.max:Sg.max;return r=Array(3),r[0]=Math.min(Math.max(n.values[0],i[0]),o[0]),r[1]=Math.min(Math.max(n.values[1],i[1]),o[1]),r[2]=Math.min(Math.max(n.values[2],i[2]),o[2]),n.space[0]==="h"&&(r=v5.rgb(r)),r.push(Math.min(Math.max(n.alpha,0),1)),r}var Rae=Pg(()=>{Cae();j9();Lae()});var X9=N(h5=>{"use strict";var ASe=Ur().isTypedArray;h5.convertTypedArray=function(e){return ASe(e)?Array.prototype.slice.call(e):e};h5.isOrdinal=function(e){return!!e.tickvals};h5.isVisible=function(e){return e.visible||!("visible"in e)}});var Hae=N((KOe,Uae)=>{"use strict";var TSe=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` -`),MSe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),Eg=Tg().maxDimensionCount,Bae=Ur(),qae=1e-6,d5=2048,SSe=new Uint8Array(4),Pae=new Uint8Array(4),Nae={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function ESe(e){e.read({x:0,y:0,width:1,height:1,data:SSe})}function zae(e,r,t,a,n){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(r,t,a,n),e.clear({color:[0,0,0,0],depth:1})}function kSe(e,r,t,a,n,i){var o=i.key;function l(s){var f=Math.min(a,n-s*a);s===0&&(window.cancelAnimationFrame(t.currentRafs[o]),delete t.currentRafs[o],zae(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!t.clearOnly&&(i.count=2*f,i.offset=2*s*a,r(i),s*a+f>>8*r)%256/255}function DSe(e,r,t){for(var a=new Array(e*(Eg+4)),n=0,i=0;ite&&(te=k[R].dim1.canvasX,W=R);O===0&&zae(n,0,0,f.canvasWidth,f.canvasHeight);var Q=_(t);for(R=0;R{"use strict";var Oi=ha(),rc=Ur(),J9=rc.isArrayOrTypedArray,Zae=rc.numberFormat,Jae=(Rae(),nie(Fae)).default,$ae=hn(),NSe=rc.strRotate,Zf=rc.strTranslate,ISe=no(),p5=Va(),Vae=Ld(),K9=Mg(),us=K9.keyFun,Jf=K9.repeat,Qae=K9.unwrap,e1=X9(),Aa=Tg(),Kae=H9(),OSe=Hae();function Yae(e,r,t){return rc.aggNums(e,null,r,t)}function ene(e,r){return eM(Yae(Math.min,e,r),Yae(Math.max,e,r))}function m5(e){var r=e.range;return r?eM(r[0],r[1]):ene(e.values,e._length)}function eM(e,r){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(r)||!isFinite(r))&&(r=0),e===r&&(e===0?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function BSe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function zSe(e,r,t,a,n){var i=m5(t);return a?Oi.scale.ordinal().domain(a.map(BSe(Zae(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):Oi.scale.linear().domain(i).range([e-r,r])}function GSe(e,r){return Oi.scale.linear().range([r,e-r])}function USe(e,r){return Oi.scale.linear().domain(m5(e)).range([r,1-r])}function HSe(e){if(e.tickvals){var r=m5(e);return Oi.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function VSe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){var o=Jae(i[1]);return Oi.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return Oi.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function Q9(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function YSe(e,r,t){var a=Qae(r),n=a.trace,i=e1.convertTypedArray(a.lineColor),o=n.line,l={color:Jae(n.unselected.line.color),opacity:n.unselected.line.opacity},s=Vae.extractOpts(o),f=s.reversescale?Vae.flipScale(a.cscale):a.cscale,u=n.domain,c=n.dimensions,v=e.width,d=n.labelangle,p=n.labelside,y=n.labelfont,m=n.tickfont,b=n.rangefont,T=rc.extendDeepNoArrays({},o,{color:i.map(Oi.scale.linear().domain(m5({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:Aa.blockLineCount,canvasOverdrag:Aa.overdrag*Aa.canvasPixelRatio}),_=Math.floor(v*(u.x[1]-u.x[0])),x=Math.floor(e.height*(u.y[1]-u.y[0])),A=e.margin||{l:80,r:80,t:100,b:80},E=_,M=x;return{key:t,colCount:c.filter(e1.isVisible).length,dimensions:c,tickDistance:Aa.tickDistance,unitToColor:VSe(f),lines:T,deselectedLines:l,labelAngle:d,labelSide:p,labelFont:y,tickFont:m,rangeFont:b,layoutWidth:v,layoutHeight:e.height,domain:u,translateX:u.x[0]*v,translateY:e.height-u.y[1]*e.height,pad:A,canvasWidth:E*Aa.canvasPixelRatio+2*T.canvasOverdrag,canvasHeight:M*Aa.canvasPixelRatio,width:E,height:M,canvasPixelRatio:Aa.canvasPixelRatio}}function WSe(e,r,t){var a=t.width,n=t.height,i=t.dimensions,o=t.canvasPixelRatio,l=function(v){return a*v/Math.max(1,t.colCount-1)},s=Aa.verticalPadding/n,f=GSe(n,Aa.verticalPadding),u={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return u.dimensions=i.filter(e1.isVisible).map(function(v,d){var p=USe(v,s),y=c[v.label];c[v.label]=(y||0)+1;var m=v.label+(y?"__"+y:""),b=v.constraintrange,T=b&&b.length;T&&!J9(b[0])&&(b=[b]);var _=T?b.map(function(H){return H.map(p)}):[[-1/0,1/0]],x=function(){var H=u;H.focusLayer&&H.focusLayer.render(H.panels,!0);var W=Q9(H);!e.contextShown()&&W?(H.contextLayer&&H.contextLayer.render(H.panels,!0),e.contextShown(!0)):e.contextShown()&&!W&&(H.contextLayer&&H.contextLayer.render(H.panels,!0,!0),e.contextShown(!1))},A=v.values;A.length>v._length&&(A=A.slice(0,v._length));var E=v.tickvals,M;function k(H,W){return{val:H,text:M[W]}}function F(H,W){return H.val-W.val}if(J9(E)&&E.length){rc.isTypedArray(E)&&(E=Array.from(E)),M=v.ticktext,!J9(M)||!M.length?M=E.map(Zae(v.tickformat)):M.length>E.length?M=M.slice(0,E.length):E.length>M.length&&(E=E.slice(0,M.length));for(var P=1;P=W||J>=ee)return;var j=R.lineLayer.readPixel(Q,ee-1-J),se=j[3]!==0,le=se?j[2]+256*(j[1]+256*j[0]):null,Ee={x:Q,y:J,clientX:H.clientX,clientY:H.clientY,dataIndex:R.model.key,curveNumber:le};le!==p&&(se?n.hover(Ee):n.unhover&&n.unhover(Ee),p=le)}}),d.style("opacity",function(R){return R.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var m=l.selectAll("."+Aa.cn.parcoords).data(v,us);m.exit().remove(),m.enter().append("g").classed(Aa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(R){return Zf(R.model.translateX,R.model.translateY)});var b=m.selectAll("."+Aa.cn.parcoordsControlView).data(Jf,us);b.enter().append("g").classed(Aa.cn.parcoordsControlView,!0),b.attr("transform",function(R){return Zf(R.model.pad.l,R.model.pad.t)});var T=b.selectAll("."+Aa.cn.yAxis).data(function(R){return R.dimensions},us);T.enter().append("g").classed(Aa.cn.yAxis,!0),b.each(function(R){$9(T,R,f)}),d.each(function(R){if(R.viewModel){!R.lineLayer||n?R.lineLayer=OSe(this,R):R.lineLayer.update(R),(R.key||R.key===0)&&(R.viewModel[R.key]=R.lineLayer);var H=!R.context||n;R.lineLayer.render(R.viewModel.panels,H)}}),T.attr("transform",function(R){return Zf(R.xScale(R.xIndex),0)}),T.call(Oi.behavior.drag().origin(function(R){return R}).on("drag",function(R){var H=R.parent;c.linePickActive(!1),R.x=Math.max(-Aa.overdrag,Math.min(R.model.width+Aa.overdrag,Oi.event.x)),R.canvasX=R.x*R.model.canvasPixelRatio,T.sort(function(W,ee){return W.x-ee.x}).each(function(W,ee){W.xIndex=ee,W.x=R===W?W.x:W.xScale(W.xIndex),W.canvasX=W.x*W.model.canvasPixelRatio}),$9(T,H,f),T.filter(function(W){return Math.abs(R.xIndex-W.xIndex)!==0}).attr("transform",function(W){return Zf(W.xScale(W.xIndex),0)}),Oi.select(this).attr("transform",Zf(R.x,0)),T.each(function(W,ee,te){te===R.parent.key&&(H.dimensions[ee]=W)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!Q9(H)),H.focusLayer.render&&H.focusLayer.render(H.panels)}).on("dragend",function(R){var H=R.parent;R.x=R.xScale(R.xIndex),R.canvasX=R.x*R.model.canvasPixelRatio,$9(T,H,f),Oi.select(this).attr("transform",function(W){return Zf(W.x,0)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!Q9(H)),H.focusLayer&&H.focusLayer.render(H.panels),H.pickLayer&&H.pickLayer.render(H.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(H.key,H.dimensions.map(function(W){return W.crossfilterDimensionIndex}))})),T.exit().remove();var _=T.selectAll("."+Aa.cn.axisOverlays).data(Jf,us);_.enter().append("g").classed(Aa.cn.axisOverlays,!0),_.selectAll("."+Aa.cn.axis).remove();var x=_.selectAll("."+Aa.cn.axis).data(Jf,us);x.enter().append("g").classed(Aa.cn.axis,!0),x.each(function(R){var H=R.model.height/R.model.tickDistance,W=R.domainScale,ee=W.domain();Oi.select(this).call(Oi.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(H,R.tickFormat).tickValues(R.ordinal?ee:null).tickFormat(function(te){return e1.isOrdinal(R)?te:rne(R.model.dimensions[R.visibleIndex],te)}).scale(W)),p5.font(x.selectAll("text"),R.model.tickFont)}),x.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),x.selectAll("text").style("cursor","default");var A=_.selectAll("."+Aa.cn.axisHeading).data(Jf,us);A.enter().append("g").classed(Aa.cn.axisHeading,!0);var E=A.selectAll("."+Aa.cn.axisTitle).data(Jf,us);E.enter().append("text").classed(Aa.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",i?"none":"auto"),E.text(function(R){return R.label}).each(function(R){var H=Oi.select(this);p5.font(H,R.model.labelFont),ISe.convertToTspans(H,r)}).attr("transform",function(R){var H=jae(R.model.labelAngle,R.model.labelSide),W=Aa.axisTitleOffset;return(H.dir>0?"":Zf(0,2*W+R.model.height))+NSe(H.degrees)+Zf(-W*H.dx,-W*H.dy)}).attr("text-anchor",function(R){var H=jae(R.model.labelAngle,R.model.labelSide),W=Math.abs(H.dx),ee=Math.abs(H.dy);return 2*W>ee?H.dir*H.dx<0?"start":"end":"middle"});var M=_.selectAll("."+Aa.cn.axisExtent).data(Jf,us);M.enter().append("g").classed(Aa.cn.axisExtent,!0);var k=M.selectAll("."+Aa.cn.axisExtentTop).data(Jf,us);k.enter().append("g").classed(Aa.cn.axisExtentTop,!0),k.attr("transform",Zf(0,-Aa.axisExtentOffset));var F=k.selectAll("."+Aa.cn.axisExtentTopText).data(Jf,us);F.enter().append("text").classed(Aa.cn.axisExtentTopText,!0).call(Wae),F.text(function(R){return Xae(R,!0)}).each(function(R){p5.font(Oi.select(this),R.model.rangeFont)});var P=M.selectAll("."+Aa.cn.axisExtentBottom).data(Jf,us);P.enter().append("g").classed(Aa.cn.axisExtentBottom,!0),P.attr("transform",function(R){return Zf(0,R.model.height+Aa.axisExtentOffset)});var O=P.selectAll("."+Aa.cn.axisExtentBottomText).data(Jf,us);O.enter().append("text").classed(Aa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(Wae),O.text(function(R){return Xae(R,!1)}).each(function(R){p5.font(Oi.select(this),R.model.rangeFont)}),Kae.ensureAxisBrush(_,u,r)}});var tM=N((rM,lne)=>{"use strict";var ZSe=ane(),JSe=e5(),nne=X9().isVisible,one={};function ine(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function $Se(e,r){return function(a,n){return ine(e,r,a)-ine(e,r,n)}}var rM=lne.exports=function(r,t){var a=r._fullLayout,n=JSe(r,[],one);if(n){var i={},o={},l={},s={},f=a._size;t.forEach(function(p,y){var m=p[0].trace;l[y]=m.index;var b=s[y]=m.index;i[y]=r.data[b].dimensions,o[y]=r.data[b].dimensions.slice()});var u=function(p,y,m){var b=o[p][y],T=m.map(function(k){return k.slice()}),_="dimensions["+y+"].constraintrange",x=a._tracePreGUI[r._fullData[l[p]]._fullInput.uid];if(x[_]===void 0){var A=b.constraintrange;x[_]=A||null}var E=r._fullData[l[p]].dimensions[y];T.length?(T.length===1&&(T=T[0]),b.constraintrange=T,E.constraintrange=T.slice(),T=[T]):(delete b.constraintrange,delete E.constraintrange,T=null);var M={};M[_]=T,r.emit("plotly_restyle",[M,[s[p]]])},c=function(p){r.emit("plotly_hover",p)},v=function(p){r.emit("plotly_unhover",p)},d=function(p,y){var m=$Se(y,o[p].filter(nne));i[p].sort(m),o[p].filter(function(b){return!nne(b)}).sort(function(b){return o[p].indexOf(b)}).forEach(function(b){i[p].splice(i[p].indexOf(b),1),i[p].splice(o[p].indexOf(b),0,b)}),r.emit("plotly_restyle",[{dimensions:[i[p]]},[s[p]]])};ZSe(r,t,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:u,hover:c,unhover:v,axesMoved:d})}};rM.reglPrecompiled=one});var fne=N(kg=>{"use strict";var sne=ha(),QSe=om().getModuleCalcData,KSe=tM(),eEe=Wc();kg.name="parcoords";kg.plot=function(e){var r=QSe(e.calcdata,"parcoords")[0];r.length&&KSe(e,r)};kg.clean=function(e,r,t,a){var n=a._has&&a._has("parcoords"),i=r._has&&r._has("parcoords");n&&!i&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())};kg.toSVG=function(e){var r=e._fullLayout._glimages,t=sne.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:eEe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){sne.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var cne=N((tBe,une)=>{"use strict";une.exports={attributes:z9(),supplyDefaults:Tae(),calc:Sae(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:fne(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var dne=N((aBe,hne)=>{"use strict";var vne=cne();vne.plot=tM();hne.exports=vne});var mne=N((nBe,pne)=>{"use strict";pne.exports=dne()});var uo=N((iBe,gne)=>{var g5=ni();function yne(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}g5(yne.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function aM(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function y5(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}g5(aM.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(na.local.differentCalendars||na.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+y5(Math.abs(this.year()),4)+"-"+y5(this.month(),2)+"-"+y5(this.day(),2)}});function nM(){this.shortYearCutoff="+10"}g5(nM.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new aM(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+y5(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(u){for(;oc-1+u.minMonth;)i++,o-=c,c=u.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(f){throw this._validateLevel--,f}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),f=n-(s>2.5?4716:4715);return f<=0&&f--,this.newDate(f,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var na=gne.exports=new yne;na.cdate=aM;na.baseCalendar=nM;na.calendars.gregorian=iM});var bne=N(()=>{var oM=ni(),Bi=uo();oM(Bi.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Bi.local=Bi.regionalOptions[""];oM(Bi.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});oM(Bi.baseCalendar.prototype,{UNIX_EPOCH:Bi.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Bi.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Bi.local.invalidFormat||Bi.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,f=function(x,A){for(var E=1;_+E1},u=function(x,A,E,M){var k=""+A;if(f(x,M))for(;k.length1},T=function(R,H){var W=b(R,H),ee=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],te=new RegExp("^-?\\d{1,"+ee+"}"),Q=r.substring(k).match(te);if(!Q)throw(Bi.local.missingNumberAt||Bi.regionalOptions[""].missingNumberAt).replace(/\{0\}/,k);return k+=Q[0].length,parseInt(Q[0],10)},_=this,x=function(){if(typeof l=="function"){b("m");var R=l.call(_,r.substring(k));return k+=R.length,R}return T("m")},A=function(R,H,W,ee){for(var te=b(R,ee)?W:H,Q=0;Q-1){v=1,d=p;for(var O=this.daysInMonth(c,v);d>O;O=this.daysInMonth(c,v))v++,d-=O}return u>-1?this.fromJD(u):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),f=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,u=f.exec(l);u;)s.add(parseInt(u[1],10),u[2]||"d"),u=f.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var xne=N(()=>{var qv=uo(),rEe=ni(),lM=qv.instance();function b5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b5.prototype=new qv.baseCalendar;rEe(b5.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(aEe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(nEe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(iEe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw qv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw qv.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,qv.local.invalidyear),n=Nv[a-Nv[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=lM.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var f=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Pv[e-Pv[0]],a=t>>13,n=a?12:11;if(r>n)throw qv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,qv.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=lEe(e,i,t,n);return lM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=lM.fromJD(e),t=oEe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(tEe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(b5.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),f=l.month(),u=this.isIntercalaryMonth(s,o),c=i&&u?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==f&&l.month(c)}return l}});var tEe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,aEe=/^\d?\d[iI]?/m,nEe=/^闰?十?[一二三四五六七八九]?月/m,iEe=/^闰?十?[一二三四五六七八九]?/m;qv.calendars.chinese=b5;var Pv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Nv=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function oEe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var f=Nv[n.year-Nv[0]],u=n.year<<9|n.month<<5|n.day;i.year=u>=f?n.year:n.year-1,f=Nv[i.year-Nv[0]];var c=f>>9&4095,v=f>>5&15,d=f&31,p,y=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=Pv[i.year-Pv[0]],T;for(T=0;T<13;T++){var _=b&1<<12-T?30:29;if(p<_)break;p-=_}var x=b>>13;return!x||T=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var f=typeof t=="number"&&t>=1&&t<=30;if(!f)throw new Error("Lunar day outside range 1 - 30");var u;typeof a=="object"?(u=!1,i=a):(u=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:u}}var c;c=o.day-1;var v=Pv[o.year-Pv[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y>9&4095,_=b>>5&15,x=b&31,A=new Date(T,_-1,x+c);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var _ne=N(()=>{var C0=uo(),sEe=ni();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new C0.baseCalendar;sEe(sM.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,C0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,C0.local.invalidYear||C0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,C0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,C0.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});C0.calendars.coptic=sM});var wne=N(()=>{var tc=uo(),fEe=ni();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new tc.baseCalendar;fEe(fM.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,tc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,tc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,tc.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,tc.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,tc.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,tc.local.invalidDate);return{century:uEe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,tc.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var uEe={20:"Fruitbat",21:"Anchovy"};tc.calendars.discworld=fM});var Ane=N(()=>{var L0=uo(),cEe=ni();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new L0.baseCalendar;cEe(uM.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,L0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,L0.local.invalidYear||L0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,L0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,L0.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});L0.calendars.ethiopian=uM});var Tne=N(()=>{var Iv=uo(),vEe=ni();function cM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cM.prototype=new Iv.baseCalendar;vEe(cM.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Iv.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,x5(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Iv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Iv.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Iv.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&x5(this.daysInYear(e),10)===5?30:r===9&&x5(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Iv.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Iv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function x5(e,r){return e-r*Math.floor(e/r)}Iv.calendars.hebrew=cM});var Mne=N(()=>{var Cg=uo(),hEe=ni();function vM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vM.prototype=new Cg.baseCalendar;hEe(vM.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Cg.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Cg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Cg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Cg.calendars.islamic=vM});var Sne=N(()=>{var Lg=uo(),dEe=ni();function hM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hM.prototype=new Lg.baseCalendar;dEe(hM.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Lg.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Lg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Lg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Lg.calendars.julian=hM});var kne=N(()=>{var cs=uo(),pEe=ni();function pM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pM.prototype=new cs.baseCalendar;pEe(pM.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cs.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cs.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cs.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,cs.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cs.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,cs.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,cs.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,cs.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,cs.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=dM(e+8+17*20,365);return[Math.floor(r/20)+1,dM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Ene(e+20,20),Ene(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,cs.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function dM(e,r){return e-r*Math.floor(e/r)}function Ene(e,r){return dM(e-1,r)+1}cs.calendars.mayan=pM});var Lne=N(()=>{var D0=uo(),mEe=ni();function mM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}mM.prototype=new D0.baseCalendar;var Cne=D0.instance("gregorian");mEe(mM.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,D0.local.invalidYear||D0.regionalOptions[""].invalidYear);return Cne.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,D0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,D0.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});D0.calendars.nanakshahi=mM});var Dne=N(()=>{var F0=uo(),yEe=ni();function yM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yM.prototype=new F0.baseCalendar;yEe(yM.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,F0.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,F0.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,F0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=F0.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=F0.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var f=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,f)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var r1=uo(),gEe=ni();function w5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function _5(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}w5.prototype=new r1.baseCalendar;gEe(w5.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,r1.local.invalidYear);return _5(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,r1.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,r1.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,_5(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});r1.calendars.persian=w5;r1.calendars.jalali=w5});var Rne=N(()=>{var R0=uo(),bEe=ni(),A5=R0.instance();function gM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gM.prototype=new R0.baseCalendar;bEe(gM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,R0.local.invalidYear),t=this._t2gYear(r.year());return A5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,R0.local.invalidYear),n=this._t2gYear(a.year());return A5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,R0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,R0.local.invalidDate),n=this._t2gYear(a.year());return A5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=A5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});R0.calendars.taiwan=gM});var qne=N(()=>{var q0=uo(),xEe=ni(),T5=q0.instance();function bM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bM.prototype=new q0.baseCalendar;xEe(bM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,q0.local.invalidYear),t=this._t2gYear(r.year());return T5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,q0.local.invalidYear),n=this._t2gYear(a.year());return T5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,q0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,q0.local.invalidDate),n=this._t2gYear(a.year());return T5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=T5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});q0.calendars.thai=bM});var Pne=N(()=>{var P0=uo(),_Ee=ni();function xM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xM.prototype=new P0.baseCalendar;_Ee(xM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,P0.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,P0.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ov[n]-Ov[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,P0.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ov[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Ov[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=P0.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=P0.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});P0.calendars.ummalqura=xM;var Ov=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Ine=N((NBe,Nne)=>{"use strict";Nne.exports=uo();bne();xne();_ne();wne();Ane();Tne();Mne();Sne();kne();Lne();Dne();Fne();Rne();qne();Pne()});var Vne=N((IBe,Hne)=>{"use strict";var Bne=Ine(),Dg=Ur(),zne=ei(),wEe=zne.EPOCHJD,AEe=zne.ONEDAY,AM={valType:"enumerated",values:Dg.sortObjectKeys(Bne.calendars),editType:"calc",dflt:"gregorian"},Gne=function(e,r,t,a){var n={};return n[t]=AM,Dg.coerce(e,r,n,t,a)},TEe=function(e,r,t,a){for(var n=0;n{"use strict";Yne.exports=Vne()});var LEe=N((BBe,Xne)=>{var jne=IV();jne.register([ote(),oae(),mne(),Wne()]);Xne.exports=jne});return LEe();})(); +`),ke;if(B&&(ke=D1(ue),B[ke]))return B[ke].apply(null,_e);var Ze=Function.apply(null,he.concat(ue));return B&&(B[ke]=Ze),Ze.apply(null,_e)}return{global:lr,link:we,block:We,proc:Fr,scope:ir,cond:nr,compile:mr}}var vo="xyzw".split(""),gc=5121,Qi=1,As=2,cu=0,hf=1,bc=2,df=3,Ts=4,xc=5,pf=6,_c="dither",mh="blend.enable",gh="blend.color",vu="blend.equation",hu="blend.func",wc="depth.enable",Ac="depth.func",Tc="depth.range",Mc="depth.mask",du="colorMask",yf="cull.enable",bh="cull.face",pu="frontFace",mf="lineWidth",Sc="polygonOffset.enable",yu="polygonOffset.offset",gf="sample.alpha",bf="sample.enable",xf="sample.coverage",Ec="stencil.enable",mu="stencil.mask",Ri="stencil.func",_f="stencil.opFront",hl="stencil.opBack",gu="scissor.enable",dl="scissor.box",fi="viewport",Ms="profile",Ro="framebuffer",jo="vert",pl="frag",ho="elements",Fo="primitive",qo="count",bu="offset",bi="instances",Ol="vao",wf="Width",po="Height",Ki=Ro+wf,eo=Ro+po,N1=fi+wf,I1=fi+po,xh="drawingBuffer",kc=xh+wf,Cc=xh+po,K0=[hu,vu,Ri,_f,hl,xf,fi,dl,yu],yo=34962,xu=34963,ed=2884,O1=3042,B1=3024,z1=2960,rd=2929,td=3089,Lc=32823,ad=32926,Dc=32928,Rc=5126,yl=35664,tn=35665,Af=35666,ml=5124,Bl=35667,Ss=35668,_u=35669,wu=35670,zl=35671,Tf=35672,Au=35673,Tu=35674,Mu=35675,Su=35676,Es=35678,Eu=35680,ku=4,h=1028,g=1029,w=2304,C=2305,L=32775,D=32776,G=519,q=7680,Z=0,ie=1,oe=32774,me=513,ge=36160,Xe=36064,Qe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ve={cw:w,ccw:C};function er(S){return Array.isArray(S)||jr(S)||ot(S)}function rr(S){return S.sort(function(B,V){return B===fi?-1:V===fi?1:B=1,he>=2,B)}else if(V===Ts){var _e=S.data;return new De(_e.thisDep,_e.contextDep,_e.propDep,B)}else{if(V===xc)return new De(!1,!1,!1,B);if(V===pf){for(var Ae=!1,we=!1,We=!1,ir=0;ir=1&&(we=!0),lr>=2&&(We=!0)}else nr.type===Ts&&(Ae=Ae||nr.data.thisDep,we=we||nr.data.contextDep,We=We||nr.data.propDep)}return new De(Ae,we,We,B)}else return new De(V===df,V===bc,V===hf,B)}}var mt=new De(!1,!1,!1,function(){});function Ct(S,B,V,he,_e,Ae,we,We,ir,nr,lr,Jr,Fr,mr,Ne,ue){var ke=nr.Record,Ze={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Ze.min=L,Ze.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,br=V.oes_vertex_array_object,hr={dirty:!0,profile:ue.profile},Xr={},Be=[],qe={},Er={};function vr(I){return I.replace(".","_")}function fr(I,U,J){var pe=vr(I);Be.push(I),Xr[pe]=hr[pe]=!!J,qe[pe]=U}function cr(I,U,J){var pe=vr(I);Be.push(I),Array.isArray(J)?(hr[pe]=J.slice(),Xr[pe]=J.slice()):hr[pe]=Xr[pe]=J,Er[pe]=U}function kr(I){return!!isNaN(I)}fr(_c,B1),fr(mh,O1),cr(gh,"blendColor",[0,0,0,0]),cr(vu,"blendEquationSeparate",[oe,oe]),cr(hu,"blendFuncSeparate",[ie,Z,ie,Z]),fr(wc,rd,!0),cr(Ac,"depthFunc",me),cr(Tc,"depthRange",[0,1]),cr(Mc,"depthMask",!0),cr(du,du,[!0,!0,!0,!0]),fr(yf,ed),cr(bh,"cullFace",g),cr(pu,pu,C),cr(mf,mf,1),fr(Sc,Lc),cr(yu,"polygonOffset",[0,0]),fr(gf,ad),fr(bf,Dc),cr(xf,"sampleCoverage",[1,!1]),fr(Ec,z1),cr(mu,"stencilMask",-1),cr(Ri,"stencilFunc",[G,0,-1]),cr(_f,"stencilOpSeparate",[h,q,q,q]),cr(hl,"stencilOpSeparate",[g,q,q,q]),fr(gu,td),cr(dl,"scissor",[0,0,S.drawingBufferWidth,S.drawingBufferHeight]),cr(fi,fi,[0,0,S.drawingBufferWidth,S.drawingBufferHeight]);var Zr={gl:S,context:Fr,strings:B,next:Xr,current:hr,draw:Jr,elements:Ae,buffer:_e,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:We,extensions:V,timer:mr,isBufferArgs:er},ct={primTypes:Go,compareFuncs:Me,blendFuncs:Qe,blendEquations:Ze,stencilOps:Fe,glTypes:un,orientationType:Ve};ze&&(ct.backBuffer=[g],ct.drawBuffer=k(he.maxDrawbuffers,function(I){return I===0?[0]:k(I,function(U){return Xe+U})}));var yr=0;function Dr(){var I=Q0({cache:Ne}),U=I.link,J=I.global;I.id=yr++,I.batchId="0";var pe=U(Zr),Te=I.shared={props:"a0"};Object.keys(Zr).forEach(function(K){Te[K]=J.def(pe,".",K)});var ce=I.next={},fe=I.current={};Object.keys(Er).forEach(function(K){Array.isArray(hr[K])&&(ce[K]=J.def(Te.next,".",K),fe[K]=J.def(Te.current,".",K))});var ae=I.constants={};Object.keys(ct).forEach(function(K){ae[K]=J.def(JSON.stringify(ct[K]))}),I.invoke=function(K,Y){switch(Y.type){case cu:var ve=["this",Te.context,Te.props,I.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case hf:return K.def(Te.props,Y.data);case bc:return K.def(Te.context,Y.data);case df:return K.def("this",Y.data);case Ts:return Y.data.append(I,K),Y.data.ref;case xc:return Y.data.toString();case pf:return Y.data.map(function(Ce){return I.invoke(K,Ce)})}},I.attribCache={};var X={};return I.scopeAttrib=function(K){var Y=B.id(K);if(Y in X)return X[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=X[Y]=U(ve);return Ce},I}function ft(I){var U=I.static,J=I.dynamic,pe;if(Ms in U){var Te=!!U[Ms];pe=Br(function(fe,ae){return Te}),pe.enable=Te}else if(Ms in J){var ce=J[Ms];pe=it(ce,function(fe,ae){return fe.invoke(ae,ce)})}return pe}function ut(I,U){var J=I.static,pe=I.dynamic;if(Ro in J){var Te=J[Ro];return Te?(Te=We.getFramebuffer(Te),Br(function(fe,ae){var X=fe.link(Te),K=fe.shared;ae.set(K.framebuffer,".next",X);var Y=K.context;return ae.set(Y,"."+Ki,X+".width"),ae.set(Y,"."+eo,X+".height"),X})):Br(function(fe,ae){var X=fe.shared;ae.set(X.framebuffer,".next","null");var K=X.context;return ae.set(K,"."+Ki,K+"."+kc),ae.set(K,"."+eo,K+"."+Cc),"null"})}else if(Ro in pe){var ce=pe[Ro];return it(ce,function(fe,ae){var X=fe.invoke(ae,ce),K=fe.shared,Y=K.framebuffer,ve=ae.def(Y,".getFramebuffer(",X,")");ae.set(Y,".next",ve);var Ce=K.context;return ae.set(Ce,"."+Ki,ve+"?"+ve+".width:"+Ce+"."+kc),ae.set(Ce,"."+eo,ve+"?"+ve+".height:"+Ce+"."+Cc),ve})}else return null}function Et(I,U,J){var pe=I.static,Te=I.dynamic;function ce(X){if(X in pe){var K=pe[X],Y=!0,ve=K.x|0,Ce=K.y|0,$e,Kr;return"width"in K?$e=K.width|0:Y=!1,"height"in K?Kr=K.height|0:Y=!1,new De(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function($r,Ur){var Or=$r.shared.context,Sr=$e;"width"in K||(Sr=Ur.def(Or,".",Ki,"-",ve));var Pr=Kr;return"height"in K||(Pr=Ur.def(Or,".",eo,"-",Ce)),[ve,Ce,Sr,Pr]})}else if(X in Te){var Lr=Te[X],Mr=it(Lr,function($r,Ur){var Or=$r.invoke(Ur,Lr),Sr=$r.shared.context,Pr=Ur.def(Or,".x|0"),Ir=Ur.def(Or,".y|0"),vt=Ur.def('"width" in ',Or,"?",Or,".width|0:","(",Sr,".",Ki,"-",Pr,")"),Kt=Ur.def('"height" in ',Or,"?",Or,".height|0:","(",Sr,".",eo,"-",Ir,")");return[Pr,Ir,vt,Kt]});return U&&(Mr.thisDep=Mr.thisDep||U.thisDep,Mr.contextDep=Mr.contextDep||U.contextDep,Mr.propDep=Mr.propDep||U.propDep),Mr}else return U?new De(U.thisDep,U.contextDep,U.propDep,function($r,Ur){var Or=$r.shared.context;return[0,0,Ur.def(Or,".",Ki),Ur.def(Or,".",eo)]}):null}var fe=ce(fi);if(fe){var ae=fe;fe=new De(fe.thisDep,fe.contextDep,fe.propDep,function(X,K){var Y=ae.append(X,K),ve=X.shared.context;return K.set(ve,"."+N1,Y[2]),K.set(ve,"."+I1,Y[3]),Y})}return{viewport:fe,scissor_box:ce(dl)}}function aa(I,U){var J=I.static,pe=typeof J[pl]=="string"&&typeof J[jo]=="string";if(pe){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ce=Object.keys(Te);if(ce.length>0&&typeof Te[ce[0]]=="number"){for(var fe=[],ae=0;ae"+Pr+"?"+Y+".constant["+Pr+"]:0;"}).join(""),"}}else{","if(",$e,"(",Y,".buffer)){",$r,"=",Kr,".createStream(",yo,",",Y,".buffer);","}else{",$r,"=",Kr,".getBuffer(",Y,".buffer);","}",Ur,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",$r,".dtype;",Lr.normalized,"=!!",Y,".normalized;");function Or(Sr){K(Lr[Sr],"=",Y,".",Sr,"|0;")}return Or("size"),Or("offset"),Or("stride"),Or("divisor"),K("}}"),K.exit("if(",Lr.isStream,"){",Kr,".destroyStream(",$r,");","}"),Lr}Te[ce]=it(fe,ae)}),Te}function Xa(I){var U=I.static,J=I.dynamic,pe={};return Object.keys(U).forEach(function(Te){var ce=U[Te];pe[Te]=Br(function(fe,ae){return typeof ce=="number"||typeof ce=="boolean"?""+ce:fe.link(ce)})}),Object.keys(J).forEach(function(Te){var ce=J[Te];pe[Te]=it(ce,function(fe,ae){return fe.invoke(ae,ce)})}),pe}function nn(I,U,J,pe,Te){var ce=I.static,fe=I.dynamic,ae=aa(I,U),X=ut(I,Te),K=Et(I,X,Te),Y=Dt(I,Te),ve=an(I,Te),Ce=Ea(I,Te,ae);function $e(Or){var Sr=K[Or];Sr&&(ve[Or]=Sr)}$e(fi),$e(vr(dl));var Kr=Object.keys(ve).length>0,Lr={framebuffer:X,draw:Y,shader:Ce,state:ve,dirty:Kr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Lr.profile=ft(I,Te),Lr.uniforms=Ut(J,Te),Lr.drawVAO=Lr.scopeVAO=Y.vao,!Lr.drawVAO&&Ce.program&&!ae&&V.angle_instanced_arrays&&Y.static.elements){var Mr=!0,$r=Ce.program.attributes.map(function(Or){var Sr=U.static[Or];return Mr=Mr&&!!Sr,Sr});if(Mr&&$r.length>0){var Ur=nr.getVAO(nr.createVAO({attributes:$r,elements:Y.static.elements}));Lr.drawVAO=new De(null,null,null,function(Or,Sr){return Or.link(Ur)}),Lr.useVAO=!0}}return ae?Lr.useVAO=!0:Lr.attributes=Ha(U,Te),Lr.context=Xa(pe,Te),Lr}function ba(I,U,J){var pe=I.shared,Te=pe.context,ce=I.scope();Object.keys(J).forEach(function(fe){U.save(Te,"."+fe);var ae=J[fe],X=ae.append(I,U);Array.isArray(X)?ce(Te,".",fe,"=[",X.join(),"];"):ce(Te,".",fe,"=",X,";")}),U(ce)}function xa(I,U,J,pe){var Te=I.shared,ce=Te.gl,fe=Te.framebuffer,ae;ze&&(ae=U.def(Te.extensions,".webgl_draw_buffers"));var X=I.constants,K=X.drawBuffer,Y=X.backBuffer,ve;J?ve=J.append(I,U):ve=U.def(fe,".next"),pe||U("if(",ve,"!==",fe,".cur){"),U("if(",ve,"){",ce,".bindFramebuffer(",ge,",",ve,".framebuffer);"),ze&&U(ae,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ce,".bindFramebuffer(",ge,",null);"),ze&&U(ae,".drawBuffersWEBGL(",Y,");"),U("}",fe,".cur=",ve,";"),pe||U("}")}function ka(I,U,J){var pe=I.shared,Te=pe.gl,ce=I.current,fe=I.next,ae=pe.current,X=pe.next,K=I.cond(ae,".dirty");Be.forEach(function(Y){var ve=vr(Y);if(!(ve in J.state)){var Ce,$e;if(ve in fe){Ce=fe[ve],$e=ce[ve];var Kr=k(hr[ve].length,function(Mr){return K.def(Ce,"[",Mr,"]")});K(I.cond(Kr.map(function(Mr,$r){return Mr+"!=="+$e+"["+$r+"]"}).join("||")).then(Te,".",Er[ve],"(",Kr,");",Kr.map(function(Mr,$r){return $e+"["+$r+"]="+Mr}).join(";"),";"))}else{Ce=K.def(X,".",ve);var Lr=I.cond(Ce,"!==",ae,".",ve);K(Lr),ve in qe?Lr(I.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),ae,".",ve,"=",Ce,";"):Lr(Te,".",Er[ve],"(",Ce,");",ae,".",ve,"=",Ce,";")}}}),Object.keys(J.state).length===0&&K(ae,".dirty=false;"),U(K)}function Tt(I,U,J,pe){var Te=I.shared,ce=I.current,fe=Te.current,ae=Te.gl,X;rr(Object.keys(J)).forEach(function(K){var Y=J[K];if(!(pe&&!pe(Y))){var ve=Y.append(I,U);if(qe[K]){var Ce=qe[K];Rr(Y)?(X=I.link(ve,{stable:!0}),U(I.cond(X).then(ae,".enable(",Ce,");").else(ae,".disable(",Ce,");")),U(fe,".",K,"=",X,";")):(U(I.cond(ve).then(ae,".enable(",Ce,");").else(ae,".disable(",Ce,");")),U(fe,".",K,"=",ve,";"))}else if(Ci(ve)){var $e=ce[K];U(ae,".",Er[K],"(",ve,");",ve.map(function(Kr,Lr){return $e+"["+Lr+"]="+Kr}).join(";"),";")}else Rr(Y)?(X=I.link(ve,{stable:!0}),U(ae,".",Er[K],"(",X,");",fe,".",K,"=",X,";")):U(ae,".",Er[K],"(",ve,");",fe,".",K,"=",ve,";")}})}function Fa(I,U){ar&&(I.instancing=U.def(I.shared.extensions,".angle_instanced_arrays"))}function Wt(I,U,J,pe,Te){var ce=I.shared,fe=I.stats,ae=ce.current,X=ce.timer,K=J.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function $e(Or){ve=U.def(),Or(ve,"=",Y(),";"),typeof Te=="string"?Or(fe,".count+=",Te,";"):Or(fe,".count++;"),mr&&(pe?(Ce=U.def(),Or(Ce,"=",X,".getNumPendingQueries();")):Or(X,".beginQuery(",fe,");"))}function Kr(Or){Or(fe,".cpuTime+=",Y(),"-",ve,";"),mr&&(pe?Or(X,".pushScopeStats(",Ce,",",X,".getNumPendingQueries(),",fe,");"):Or(X,".endQuery();"))}function Lr(Or){var Sr=U.def(ae,".profile");U(ae,".profile=",Or,";"),U.exit(ae,".profile=",Sr,";")}var Mr;if(K){if(Rr(K)){K.enable?($e(U),Kr(U.exit),Lr("true")):Lr("false");return}Mr=K.append(I,U),Lr(Mr)}else Mr=U.def(ae,".profile");var $r=I.block();$e($r),U("if(",Mr,"){",$r,"}");var Ur=I.block();Kr(Ur),U.exit("if(",Mr,"){",Ur,"}")}function Za(I,U,J,pe,Te){var ce=I.shared;function fe(X){switch(X){case yl:case Bl:case zl:return 2;case tn:case Ss:case Tf:return 3;case Af:case _u:case Au:return 4;default:return 1}}function ae(X,K,Y){var ve=ce.gl,Ce=U.def(X,".location"),$e=U.def(ce.attributes,"[",Ce,"]"),Kr=Y.state,Lr=Y.buffer,Mr=[Y.x,Y.y,Y.z,Y.w],$r=["buffer","normalized","offset","stride"];function Ur(){U("if(!",$e,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Sr=Y.type,Pr;if(Y.size?Pr=U.def(Y.size,"||",K):Pr=K,U("if(",$e,".type!==",Sr,"||",$e,".size!==",Pr,"||",$r.map(function(vt){return $e+"."+vt+"!=="+Y[vt]}).join("||"),"){",ve,".bindBuffer(",yo,",",Lr,".buffer);",ve,".vertexAttribPointer(",[Ce,Pr,Sr,Y.normalized,Y.stride,Y.offset],");",$e,".type=",Sr,";",$e,".size=",Pr,";",$r.map(function(vt){return $e+"."+vt+"="+Y[vt]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",$e,".divisor!==",Ir,"){",I.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",$e,".divisor=",Ir,";}")}}function Or(){U("if(",$e,".buffer){",ve,".disableVertexAttribArray(",Ce,");",$e,".buffer=null;","}if(",vo.map(function(Sr,Pr){return $e+"."+Sr+"!=="+Mr[Pr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Mr,");",vo.map(function(Sr,Pr){return $e+"."+Sr+"="+Mr[Pr]+";"}).join(""),"}")}Kr===Qi?Ur():Kr===As?Or():(U("if(",Kr,"===",Qi,"){"),Ur(),U("}else{"),Or(),U("}"))}pe.forEach(function(X){var K=X.name,Y=J.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(I,U)}else{if(!Te(mt))return;var Ce=I.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function($e){ve[$e]=U.def(Ce,".",$e)})}ae(I.link(X),fe(X.info.type),ve)})}function on(I,U,J,pe,Te,ce){for(var fe=I.shared,ae=fe.gl,X,K=0;K1){for(var sn=[],qi=[],ro=0;ro>1)",Lr],");")}function Ir(){J(Mr,".drawArraysInstancedANGLE(",[Ce,$e,Kr,Lr],");")}Y&&Y!=="null"?Ur?Pr():(J("if(",Y,"){"),Pr(),J("}else{"),Ir(),J("}")):Ir()}function Sr(){function Pr(){J(ce+".drawElements("+[Ce,Kr,$r,$e+"<<(("+$r+"-"+gc+")>>1)"]+");")}function Ir(){J(ce+".drawArrays("+[Ce,$e,Kr]+");")}Y&&Y!=="null"?Ur?Pr():(J("if(",Y,"){"),Pr(),J("}else{"),Ir(),J("}")):Ir()}ar&&(typeof Lr!="number"||Lr>=0)?typeof Lr=="string"?(J("if(",Lr,">0){"),Or(),J("}else if(",Lr,"<0){"),Sr(),J("}")):Or():Sr()}function yt(I,U,J,pe,Te){var ce=Dr(),fe=ce.proc("body",Te);return ar&&(ce.instancing=fe.def(ce.shared.extensions,".angle_instanced_arrays")),I(ce,fe,J,pe),ce.compile().body}function qt(I,U,J,pe){Fa(I,U),J.useVAO?J.drawVAO?U(I.shared.vao,".setVAO(",J.drawVAO.append(I,U),");"):U(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(U(I.shared.vao,".setVAO(null);"),Za(I,U,J,pe.attributes,function(){return!0})),on(I,U,J,pe.uniforms,function(){return!0},!1),ln(I,U,U,J)}function Qt(I,U){var J=I.proc("draw",1);Fa(I,J),ba(I,J,U.context),xa(I,J,U.framebuffer),ka(I,J,U),Tt(I,J,U.state),Wt(I,J,U,!1,!0);var pe=U.shader.progVar.append(I,J);if(J(I.shared.gl,".useProgram(",pe,".program);"),U.shader.program)qt(I,J,U,U.shader.program);else{J(I.shared.vao,".setVAO(null);");var Te=I.global.def("{}"),ce=J.def(pe,".id"),fe=J.def(Te,"[",ce,"]");J(I.cond(fe).then(fe,".call(this,a0);").else(fe,"=",Te,"[",ce,"]=",I.link(function(ae){return yt(qt,I,U,ae,1)}),"(",pe,");",fe,".call(this,a0);"))}Object.keys(U.state).length>0&&J(I.shared.current,".dirty=true;"),I.shared.vao&&J(I.shared.vao,".setVAO(null);")}function z(I,U,J,pe){I.batchId="a1",Fa(I,U);function Te(){return!0}Za(I,U,J,pe.attributes,Te),on(I,U,J,pe.uniforms,Te,!1),ln(I,U,U,J)}function ye(I,U,J,pe){Fa(I,U);var Te=J.contextDep,ce=U.def(),fe="a0",ae="a1",X=U.def();I.shared.props=X,I.batchId=ce;var K=I.scope(),Y=I.scope();U(K.entry,"for(",ce,"=0;",ce,"<",ae,";++",ce,"){",X,"=",fe,"[",ce,"];",Y,"}",K.exit);function ve($r){return $r.contextDep&&Te||$r.propDep}function Ce($r){return!ve($r)}if(J.needsContext&&ba(I,Y,J.context),J.needsFramebuffer&&xa(I,Y,J.framebuffer),Tt(I,Y,J.state,ve),J.profile&&ve(J.profile)&&Wt(I,Y,J,!1,!0),pe)J.useVAO?J.drawVAO?ve(J.drawVAO)?Y(I.shared.vao,".setVAO(",J.drawVAO.append(I,Y),");"):K(I.shared.vao,".setVAO(",J.drawVAO.append(I,K),");"):K(I.shared.vao,".setVAO(",I.shared.vao,".targetVAO);"):(K(I.shared.vao,".setVAO(null);"),Za(I,K,J,pe.attributes,Ce),Za(I,Y,J,pe.attributes,ve)),on(I,K,J,pe.uniforms,Ce,!1),on(I,Y,J,pe.uniforms,ve,!0),ln(I,K,Y,J);else{var $e=I.global.def("{}"),Kr=J.shader.progVar.append(I,Y),Lr=Y.def(Kr,".id"),Mr=Y.def($e,"[",Lr,"]");Y(I.shared.gl,".useProgram(",Kr,".program);","if(!",Mr,"){",Mr,"=",$e,"[",Lr,"]=",I.link(function($r){return yt(z,I,J,$r,2)}),"(",Kr,");}",Mr,".call(this,a0[",ce,"],",ce,");")}}function be(I,U){var J=I.proc("batch",2);I.batchId="0",Fa(I,J);var pe=!1,Te=!0;Object.keys(U.context).forEach(function($e){pe=pe||U.context[$e].propDep}),pe||(ba(I,J,U.context),Te=!1);var ce=U.framebuffer,fe=!1;ce?(ce.propDep?pe=fe=!0:ce.contextDep&&pe&&(fe=!0),fe||xa(I,J,ce)):xa(I,J,null),U.state.viewport&&U.state.viewport.propDep&&(pe=!0);function ae($e){return $e.contextDep&&pe||$e.propDep}ka(I,J,U),Tt(I,J,U.state,function($e){return!ae($e)}),(!U.profile||!ae(U.profile))&&Wt(I,J,U,!1,"a1"),U.contextDep=pe,U.needsContext=Te,U.needsFramebuffer=fe;var X=U.shader.progVar;if(X.contextDep&&pe||X.propDep)ye(I,J,U,null);else{var K=X.append(I,J);if(J(I.shared.gl,".useProgram(",K,".program);"),U.shader.program)ye(I,J,U,U.shader.program);else{J(I.shared.vao,".setVAO(null);");var Y=I.global.def("{}"),ve=J.def(K,".id"),Ce=J.def(Y,"[",ve,"]");J(I.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",I.link(function($e){return yt(ye,I,U,$e,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&J(I.shared.current,".dirty=true;"),I.shared.vao&&J(I.shared.vao,".setVAO(null);")}function Nr(I,U){var J=I.proc("scope",3);I.batchId="a2";var pe=I.shared,Te=pe.current;if(ba(I,J,U.context),U.framebuffer&&U.framebuffer.append(I,J),rr(Object.keys(U.state)).forEach(function(ae){var X=U.state[ae],K=X.append(I,J);Ci(K)?K.forEach(function(Y,ve){kr(Y)?J.set(I.next[ae],"["+ve+"]",Y):J.set(I.next[ae],"["+ve+"]",I.link(Y,{stable:!0}))}):Rr(X)?J.set(pe.next,"."+ae,I.link(K,{stable:!0})):J.set(pe.next,"."+ae,K)}),Wt(I,J,U,!0,!0),[ho,bu,qo,bi,Fo].forEach(function(ae){var X=U.draw[ae];if(X){var K=X.append(I,J);kr(K)?J.set(pe.draw,"."+ae,K):J.set(pe.draw,"."+ae,I.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(ae){var X=U.uniforms[ae].append(I,J);Array.isArray(X)&&(X="["+X.map(function(K){return kr(K)?K:I.link(K,{stable:!0})})+"]"),J.set(pe.uniforms,"["+I.link(B.id(ae),{stable:!0})+"]",X)}),Object.keys(U.attributes).forEach(function(ae){var X=U.attributes[ae].append(I,J),K=I.scopeAttrib(ae);Object.keys(new ke).forEach(function(Y){J.set(K,"."+Y,X[Y])})}),U.scopeVAO){var ce=U.scopeVAO.append(I,J);kr(ce)?J.set(pe.vao,".targetVAO",ce):J.set(pe.vao,".targetVAO",I.link(ce,{stable:!0}))}function fe(ae){var X=U.shader[ae];if(X){var K=X.append(I,J);kr(K)?J.set(pe.shader,"."+ae,K):J.set(pe.shader,"."+ae,I.link(K,{stable:!0}))}}fe(jo),fe(pl),Object.keys(U.state).length>0&&(J(Te,".dirty=true;"),J.exit(Te,".dirty=true;")),J("a1(",I.shared.context,",a0,",I.batchId,");")}function Rt(I){if(!(typeof I!="object"||Ci(I))){for(var U=Object.keys(I),J=0;J=0;--yt){var qt=Zr[yt];qt&&qt(Ne,null,0)}V.flush(),lr&&lr.update()}function Et(){!ft&&Zr.length>0&&(ft=d.next(ut))}function aa(){ft&&(d.cancel(ut),ft=null)}function Ea(yt){yt.preventDefault(),_e=!0,aa(),ct.forEach(function(qt){qt()})}function Dt(yt){V.getError(),_e=!1,Ae.restore(),Xr.restore(),ar.restore(),Be.restore(),qe.restore(),Er.restore(),br.restore(),lr&&lr.restore(),vr.procs.refresh(),Et(),yr.forEach(function(qt){qt()})}kr&&(kr.addEventListener(jt,Ea,!1),kr.addEventListener(ua,Dt,!1));function an(){Zr.length=0,aa(),kr&&(kr.removeEventListener(jt,Ea),kr.removeEventListener(ua,Dt)),Xr.clear(),Er.clear(),qe.clear(),br.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),Dr.forEach(function(yt){yt()})}function Ut(yt){function qt(ce){var fe=e({},ce);delete fe.uniforms,delete fe.attributes,delete fe.context,delete fe.vao,"stencil"in fe&&fe.stencil.op&&(fe.stencil.opBack=fe.stencil.opFront=fe.stencil.op,delete fe.stencil.op);function ae(X){if(X in fe){var K=fe[X];delete fe[X],Object.keys(K).forEach(function(Y){fe[X+"."+Y]=K[Y]})}}return ae("blend"),ae("depth"),ae("cull"),ae("stencil"),ae("polygonOffset"),ae("scissor"),ae("sample"),"vao"in ce&&(fe.vao=ce.vao),fe}function Qt(ce,fe){var ae={},X={};return Object.keys(ce).forEach(function(K){var Y=ce[K];if(v.isDynamic(Y)){X[K]=v.unbox(Y,K);return}else if(fe&&Array.isArray(Y)){for(var ve=0;ve0)return I.call(this,pe(ce|0),ce|0)}else if(Array.isArray(ce)){if(ce.length)return I.call(this,ce,ce.length)}else return qr.call(this,ce)}return e(Te,{stats:Rt,destroy:function(){Ht.destroy()}})}var Ha=Er.setFBO=Ut({framebuffer:v.define.call(null,ja,"framebuffer")});function Xa(yt,qt){var Qt=0;vr.procs.poll();var z=qt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=gn),"depth"in qt&&(V.clearDepth(+qt.depth),Qt|=La),"stencil"in qt&&(V.clearStencil(qt.stencil|0),Qt|=dt),V.clear(Qt)}function nn(yt){if("framebuffer"in yt)if(yt.framebuffer&&yt.framebuffer_reglType==="framebufferCube")for(var qt=0;qt<6;++qt)Ha(e({framebuffer:yt.framebuffer.faces[qt]},yt),Xa);else Ha(yt,Xa);else Xa(null,yt)}function ba(yt){Zr.push(yt);function qt(){var Qt=ei(Zr,yt);function z(){var ye=ei(Zr,z);Zr[ye]=Zr[Zr.length-1],Zr.length-=1,Zr.length<=0&&aa()}Zr[Qt]=z}return Et(),{cancel:qt}}function xa(){var yt=cr.viewport,qt=cr.scissor_box;yt[0]=yt[1]=qt[0]=qt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=yt[2]=qt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=yt[3]=qt[3]=V.drawingBufferHeight}function ka(){Ne.tick+=1,Ne.time=Fa(),xa(),vr.procs.poll()}function Tt(){Be.refresh(),xa(),vr.procs.refresh(),lr&&lr.update()}function Fa(){return(p()-Jr)/1e3}Tt();function Wt(yt,qt){var Qt;switch(yt){case"frame":return ba(qt);case"lost":Qt=ct;break;case"restore":Qt=yr;break;case"destroy":Qt=Dr;break;default:}return Qt.push(qt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:an,_gl:V,_refresh:Tt,poll:function(){ka(),lr&&lr.update()},now:Fa,stats:We,getCachedCode:Za,preloadCachedCode:on});return B.onDone(null,ln),ln}return Fi}))});var r5=N((COe,Jre)=>{"use strict";var Z9e=Zre(),$9e=$re();Jre.exports=function(r,t,a){var n=r._fullLayout,i=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(a);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=$9e({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||window.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch(l){i=!1}o.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(l){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:l,layer:o.key})},!1)}}),i||Z9e({container:n._glcontainer.node()}),i}});var ate=N((C9,tte)=>{"use strict";var Qre=b7(),Kre=$7(),J9e=yee(),ete=Wre(),k9=zr(),Q9e=rv().selectMode,K9e=r5(),eMe=Ni(),rMe=H6(),tMe=y7().styleTextSelection,rte={};function aMe(e,r,t,a){var n=e._size,i=e.width*a,o=e.height*a,l=n.l*a,s=n.b*a,f=n.r*a,u=n.t*a,c=n.w*a,v=n.h*a;return[l+r.domain[0]*c,s+t.domain[0]*v,i-f-(1-r.domain[1])*c,o-u-(1-t.domain[1])*v]}var C9=tte.exports=function(r,t,a){if(a.length){var n=r._fullLayout,i=t._scene,o=t.xaxis,l=t.yaxis,s,f;if(i){var u=K9e(r,["ANGLE_instanced_arrays","OES_element_index_uint"],rte);if(!u){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(rMe(r,t,a),i.dirty){if((i.line2d||i.error2d)&&!(i.scatter2d||i.fill2d||i.glText)&&v.clear({color:!0,depth:!0}),i.error2d===!0&&(i.error2d=J9e(v)),i.line2d===!0&&(i.line2d=Kre(v)),i.scatter2d===!0&&(i.scatter2d=Qre(v)),i.fill2d===!0&&(i.fill2d=Kre(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;sse&&(isNaN(j[le])||isNaN(j[le+1]));)le-=2;$.positions=j.slice(se,le+2)}return $}),i.line2d.update(i.lineOptions)),i.error2d){var y=(i.errorXOptions||[]).concat(i.errorYOptions||[]).map(function($){return $||{positions:[],errors:[]}});i.error2d.update(y)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=k9.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function($,j){var se=a[j];if(!(!$||!se||!se[0]||!se[0].trace)){var le=se[0],Ee=le.trace,Ge=le.t,Le=i.lineOptions[j],Ue,xe,ur=[];Ee._ownfill&&ur.push(j),Ee._nexttrace&&ur.push(j+1),ur.length&&(i.fillOrder[j]=ur);var Oe=[],He=Le&&Le.positions||Ge.positions,xr,Ye;if(Ee.fill==="tozeroy"){for(xr=0;xrxr&&isNaN(He[Ye+1]);)Ye-=2;He[xr+1]!==0&&(Oe=[He[xr],0]),Oe=Oe.concat(He.slice(xr,Ye+2)),He[Ye+1]!==0&&(Oe=Oe.concat([He[Ye],0]))}else if(Ee.fill==="tozerox"){for(xr=0;xrxr&&isNaN(He[Ye]);)Ye-=2;He[xr]!==0&&(Oe=[0,He[xr+1]]),Oe=Oe.concat(He.slice(xr,Ye+2)),He[Ye]!==0&&(Oe=Oe.concat([0,He[Ye+1]]))}else if(Ee.fill==="toself"||Ee.fill==="tonext"){for(Oe=[],Ue=0,$.splitNull=!0,xe=0;xe-1;for(let[$]of a)if($){var x=$.trace,A=$.t,E=A.index,M=x._length,k=A.x,R=A.y;if(x.selectedpoints||T||_){if(T||(T=!0),x.selectedpoints){var P=i.selectBatch[E]=k9.selIndices2selPoints(x),O={};for(f=0;f{"use strict";var nte=J$();nte.plot=ate();ite.exports=nte});var ste=N((DOe,lte)=>{"use strict";lte.exports=ote()});var L9=N((ROe,vte)=>{"use strict";var nMe=lv(),cte=Nh(),fte=vy().axisHoverFormat,{hovertemplateAttrs:iMe,templatefallbackAttrs:oMe}=hd(),wg=gx(),lMe=ci().idRegex,sMe=$a().templatedArray,$p=Un().extendFlat,Ku=nMe.marker,fMe=Ku.line,uMe=$p(cte("marker.line",{editTypeOverride:"calc"}),{width:$p({},fMe.width,{editType:"calc"}),editType:"calc"}),t5=$p(cte("marker"),{symbol:Ku.symbol,angle:Ku.angle,size:$p({},Ku.size,{editType:"markerSize"}),sizeref:Ku.sizeref,sizemin:Ku.sizemin,sizemode:Ku.sizemode,opacity:Ku.opacity,colorbar:Ku.colorbar,line:uMe,editType:"calc"});t5.color.editType=t5.cmin.editType=t5.cmax.editType="style";function ute(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:lMe[e],editType:"plot"}}}vte.exports={dimensions:sMe("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:$p({},wg.text,{}),hovertext:$p({},wg.hovertext,{}),hovertemplate:iMe(),hovertemplatefallback:oMe(),xhoverformat:fte("x"),yhoverformat:fte("y"),marker:t5,xaxes:ute("x"),yaxes:ute("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:wg.selected.marker,editType:"calc"},unselected:{marker:wg.unselected.marker,editType:"calc"},opacity:wg.opacity}});var D9=N((FOe,hte)=>{"use strict";hte.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var R9=zr(),cMe=bl(),dte=L9(),vMe=Ni(),hMe=kb(),dMe=D9(),pMe=bx().isOpenSymbol;pte.exports=function(r,t,a,n){function i(d,p){return R9.coerce(r,t,dte,d,p)}var o=cMe(r,t,{name:"dimensions",handleItemDefaults:yMe}),l=i("diagonal.visible"),s=i("showupperhalf"),f=i("showlowerhalf"),u=dMe(t,o,"values");if(!u||!l&&!s&&!f){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),hMe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=pMe(t.marker.symbol),v=vMe.isBubble(t);i("marker.line.width",c||v?1:0),mMe(r,t,n,i),R9.coerceSelectionMarkerOpacity(t,i)};function yMe(e,r){function t(n,i){return R9.coerce(e,r,dte.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function mMe(e,r,t,a){var n=r.dimensions,i=n.length,o=r.showupperhalf,l=r.showlowerhalf,s=r.diagonal.visible,f,u,c=new Array(i),v=new Array(i);for(f=0;fu&&o||f{"use strict";var mte=zr();gte.exports=function(r,t){var a=r._fullLayout,n=t.uid,i=a._splomScenes;i||(i=a._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||(s=i[n]=mte.extendFlat({},o,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||mte.extendFlat(s,o),s}});var wte=N((NOe,_te)=>{"use strict";var F9=zr(),a5=En(),gMe=tp().calcMarkerSize,bMe=tp().calcAxisExpansion,xMe=cm(),xte=ig().markerSelection,_Me=ig().markerStyle,wMe=bte(),AMe=ri().BADNUM,TMe=gp().TOO_MANY_POINTS;_te.exports=function(r,t){var a=t.dimensions,n=t._length,i={},o=i.cdata=[],l=i.data=[],s=t._visibleDims=[],f,u,c,v,d;function p(_,x){for(var A=_.makeCalcdata({v:x.values,vcalendar:t.calendar},"v"),E=0;ETMe,b;for(y?b=i.sizeAvg||Math.max(i.size,3):b=gMe(t,n),u=0;u{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?Ag.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Ag.exports=function(){return(e()-n)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,n=a-i):Date.now?(Ag.exports=function(){return Date.now()-t},t=Date.now()):(Ag.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(Ate)});var Ste=N((IOe,o5)=>{var MMe=Tte(),ec=window,n5=["moz","webkit"],Qp="AnimationFrame",Kp=ec["request"+Qp],Tg=ec["cancel"+Qp]||ec["cancelRequest"+Qp];for(Jp=0;!Kp&&Jp{Ete.exports=function(r,t){var a=typeof r=="number",n=typeof t=="number";a&&!n?(t=r,r=0):!a&&!n&&(r=0,t=0),r=r|0,t=t|0;var i=t-r;if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),l=0,s=r;l{"use strict";var SMe=b7(),EMe=Vf(),kMe=d0(),Cte=Ste(),CMe=kte(),P9=bp(),LMe=p0();Dte.exports=Dv;function Dv(e,r){if(!(this instanceof Dv))return new Dv(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=SMe(e),this.canvas=this.scatter.canvas}Dv.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=Cte(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,Cte(()=>{this.dirty=!1})),this)};Dv.prototype.update=function(...e){if(!e.length)return;for(let a=0;ay||!n.lower&&m{r[i+l]=a})}this.scatter.draw(...r)}return this};Dv.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function DMe(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function l5(e,r,t){let a,n,i,o,l,s,f,u,c=e[r],v=e[t];return c.length>2?(a=c[0],i=c[2],n=c[1],o=c[3]):c.length?(a=n=c[0],i=o=c[1]):(a=c.x,n=c.y,i=c.x+c.width,o=c.y+c.height),v.length>2?(l=v[0],f=v[2],s=v[1],u=v[3]):v.length?(l=s=v[0],f=u=v[1]):(l=v.x,s=v.y,f=v.x+v.width,u=v.y+v.height),[l,n,f,o]}function Lte(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let r=P9(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var qte=N((zOe,Fte)=>{"use strict";var RMe=Rte(),N9=zr(),s5=En(),FMe=rv().selectMode;Fte.exports=function(r,t,a){if(a.length)for(var n=0;n-1,O=FMe(u)||!!n.selectedpoints||P,F=!0;if(O){var H=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var W=n.selectedpoints,ee={};for(d=0;d{"use strict";Pte.getDimIndex=function(r,t){for(var a=t._id,n=a.charAt(0),i={x:0,y:1}[n],o=r._visibleDims,l=0;l{"use strict";var Nte=I9(),PMe=QT().calcHover,Ite=hn().getFromId,NMe=Un().extendFlat;function IMe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=Ote(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,f=n.gd,u=NMe({},e),c=0;c{"use strict";var Vte=zr(),Gte=Vte.pushUnique,Ute=Ni(),Hte=I9();Yte.exports=function(r,t){var a=r.cd,n=a[0].trace,i=a[0].t,o=r.scene,l=o.matrixOptions.cdata,s=r.xaxis,f=r.yaxis,u=[];if(!o)return u;var c=!Ute.hasMarkers(n)&&!Ute.hasText(n);if(n.visible!==!0||c)return u;var v=Hte.getDimIndex(n,s),d=Hte.getDimIndex(n,f);if(v===!1||d===!1)return u;var p=i.xpx[v],m=i.ypx[d],y=l[v],b=l[d],T=(r.scene.selectBatch||[]).slice(),_=[];if(t!==!1&&!t.degenerate)for(var x=0;x{"use strict";var jte=zr(),OMe=cm(),BMe=ig().markerStyle;Xte.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){OMe(r,a),jte.extendFlat(n.matrixOptions,BMe(r,a));var i=jte.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Jte=N((YOe,$te)=>{"use strict";var zMe=Bt(),GMe=BT();$te.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:L9(),supplyDefaults:yte(),colorbar:Pb(),calc:wte(),plot:qte(),hoverPoints:zte().hoverPoints,selectPoints:Wte(),editStyle:Zte(),meta:{}};zMe.register(GMe)});var aae=N((WOe,tae)=>{"use strict";var UMe=$7(),HMe=Bt(),VMe=r5(),YMe=sy().getModuleCalcData,Rv=gm(),Qte=En().getFromId,Kte=hn().shouldShowZeroLine,eae="splom",rae={};function WMe(e){var r=e._fullLayout,t=HMe.getModule(eae),a=YMe(e.calcdata,t)[0],n=VMe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],rae);n&&(r._hasOnlyLargeSploms&&O9(e),t.plot(e,{},a))}function jMe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&O9(e);for(var a=0;a{"use strict";var nae=Jte();nae.basePlotModule=aae(),iae.exports=nae});var sae=N((XOe,lae)=>{"use strict";lae.exports=oae()});var G9=N((ZOe,fae)=>{"use strict";var JMe=Nh(),B9=Vl(),z9=Ui(),QMe=vx().attributes,f5=Un().extendFlat,KMe=$a().templatedArray;fae.exports={domain:QMe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:z9({editType:"plot"}),tickfont:z9({autoShadowDflt:!0,editType:"plot"}),rangefont:z9({editType:"plot"}),dimensions:KMe("dimension",{label:{valType:"string",editType:"plot"},tickvals:f5({},B9.tickvals,{editType:"plot"}),ticktext:f5({},B9.ticktext,{editType:"plot"}),tickformat:f5({},B9.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:f5({editType:"calc"},JMe("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Mg=N(($Oe,uae)=>{"use strict";uae.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Sg=N((JOe,vae)=>{"use strict";var eSe=f2();function cae(e){return[e]}vae.exports={keyFun:function(e){return e.key},repeat:cae,descend:eSe,wrap:cae,unwrap:function(e){return e[0]}}});var V9=N((QOe,Aae)=>{"use strict";var Jn=Mg(),af=ca(),rSe=Sg().keyFun,u5=Sg().repeat,e1=zr().sorterAsc,tSe=zr().strTranslate,hae=Jn.bar.snapRatio;function dae(e,r){return e*(1-hae)+r*hae}var pae=Jn.bar.snapClose;function aSe(e,r){return e*(1-pae)+r*pae}function v5(e,r,t,a){if(nSe(t,a))return t;var n=e?-1:1,i=0,o=r.length-1;if(n<0){var l=i;i=o,o=l}for(var s=r[i],f=s,u=i;n*u=r[t][0]&&e<=r[t][1])return!0;return!1}function iSe(e){e.attr("x",-Jn.bar.captureWidth/2).attr("width",Jn.bar.captureWidth)}function oSe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function lSe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=yae(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;le[1]+t||r=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function mae(){af.select(document.body).style("cursor",null)}function H9(e){e.attr("stroke-dasharray",lSe)}function c5(e,r){var t=af.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Jn.bar.snapDuration).each("end",r):t;H9(a)}function gae(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),f=yae(s,l),u=NaN,c=NaN,v=NaN;for(o=0;o<=f.length;o++){var d=f[o];if(d&&d[0]<=r&&r<=d[1]){u=o;break}else if(c=o?o-1:NaN,d&&d[0]>r){v=o;break}}if(n=u,isNaN(n)&&(isNaN(c)||isNaN(v)?n=isNaN(c)?v:c:n=r-f[c][1]=T[0]&&b<=T[1]){i.clickableOrdinalRange=T;break}}}return i}function fSe(e,r){af.event.sourceEvent.stopPropagation();var t=r.height-af.mouse(e)[1]-2*Jn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=gae(r,t),o=i.interval,l=n.svgBrush;if(l.wasDragged=!1,l.grabbingBar=i.region==="ns",l.grabbingBar){var s=o.map(r.unitToPaddedPx);l.grabPoint=t-s[0]-Jn.verticalPadding,l.barLength=s[1]-s[0]}l.clickableOrdinalRange=i.clickableOrdinalRange,l.stayingIntervals=r.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(l.stayingIntervals=l.stayingIntervals.filter(function(f){return f[0]!==o[0]&&f[1]!==o[1]})),l.startExtent=i.region?o[i.region==="s"?1:0]:a,r.parent.inBrushDrag=!0,l.brushStartCallback()}function bae(e,r){af.event.sourceEvent.stopPropagation();var t=r.height-af.mouse(e)[1]-2*Jn.verticalPadding,a=r.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[t-a.grabPoint,t+a.barLength-a.grabPoint].map(r.unitToPaddedPx.invert):a.newExtent=[a.startExtent,r.unitToPaddedPx.invert(t)].sort(e1),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),c5(e.parentNode)}function uSe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(xae(e,r),bae(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=af.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,mae(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?t.filterSpecified&&r.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],t.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&U9(t)):U9(t),n.brushCallback(r),c5(e.parentNode),n.brushEndCallback(t.filterSpecified?a.getConsolidated():[]);return}var l=function(){a.set(a.getConsolidated())};if(r.ordinal){var s=r.unitTickvals;s[s.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(f?[n.newExtent]:[]),n.extent.length||U9(t),n.brushCallback(r),f?c5(e.parentNode,l):(l(),c5(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function xae(e,r){var t=r.height-af.mouse(e)[1]-2*Jn.verticalPadding,a=gae(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),af.select(document.body).style("cursor",n)}function cSe(e){e.on("mousemove",function(r){af.event.preventDefault(),r.parent.inBrushDrag||xae(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||mae()}).call(af.behavior.drag().on("dragstart",function(r){fSe(this,r)}).on("drag",function(r){bae(this,r)}).on("dragend",function(r){uSe(this,r)}))}function _ae(e,r){return e[0]-r[0]}function vSe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(u5);n.enter().append("rect").classed("background",!0).call(iSe).call(oSe).style("pointer-events",a?"none":"auto").attr("transform",tSe(0,Jn.verticalPadding)),n.call(cSe).attr("height",function(l){return l.height-Jn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(u5);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-Jn.bar.width/2).attr("stroke-width",Jn.bar.width+Jn.bar.strokeWidth).attr("stroke",r).attr("opacity",Jn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(H9);var o=e.selectAll(".highlight").data(u5);o.enter().append("line").classed("highlight",!0).attr("x",-Jn.bar.width/2).attr("stroke-width",Jn.bar.width-Jn.bar.strokeWidth).attr("stroke",Jn.bar.fillColor).attr("opacity",Jn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(H9)}function hSe(e,r,t){var a=e.selectAll("."+Jn.cn.axisBrush).data(u5,rSe);a.enter().append("g").classed(Jn.cn.axisBrush,!0),vSe(a,r,t)}function dSe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function U9(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function pSe(e){return function(t){var a=t.brush,n=dSe(a),i=n.slice();a.filter.set(i),e()}}function wae(e){for(var r=e.slice(),t=[],a,n=r.shift();n;){for(a=n.slice();(n=r.shift())&&n[0]<=a[1];)a[1]=Math.max(a[1],n[1]);t.push(a)}return t.length===1&&t[0][0]>t[0][1]&&(t=[]),t}function ySe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(e1)}).sort(_ae),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=wae(e),t=e.reduce(function(n,i){return[Math.min(n[0],i[0]),Math.max(n[1],i[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return r},getBounds:function(){return t}}}function mSe(e,r,t,a,n,i){var o=ySe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:pSe(n),brushEndCallback:i}}}function gSe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(e1)}),r.multiselect?e=wae(e.sort(_ae)):e=[e[0]]):e=[e.sort(e1)],r.tickvals){var t=r.tickvals.slice().sort(e1);if(e=e.map(function(a){var n=[v5(0,t,a[0],[]),v5(1,t,a[1],[])];if(n[1]>n[0])return n}).filter(function(a){return a}),!e.length)return}return e.length>1?e:e[0]}Aae.exports={makeBrush:mSe,ensureAxisBrush:hSe,cleanRanges:gSe}});var Sae=N((KOe,Mae)=>{"use strict";var Fv=zr(),bSe=Is().hasColorscale,xSe=Cd(),_Se=vx().defaults,wSe=bl(),ASe=hn(),Tae=G9(),TSe=V9(),Y9=Mg().maxDimensionCount,MSe=D9();function SSe(e,r,t,a,n){var i=n("line.color",t);if(bSe(e,"line")&&Fv.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),xSe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function ESe(e,r,t,a){function n(f,u){return Fv.coerce(e,r,Tae.dimensions,f,u)}var i=n("values"),o=n("visible");if(i&&i.length||(o=r.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var l=n("range");r._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:l},ASe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=TSe.cleanRanges(s,r))}}Mae.exports=function(r,t,a,n){function i(u,c){return Fv.coerce(r,t,Tae,u,c)}var o=r.dimensions;Array.isArray(o)&&o.length>Y9&&(Fv.log("parcoords traces support up to "+Y9+" dimensions at the moment"),o.splice(Y9));var l=wSe(r,t,{name:"dimensions",layout:n,handleItemDefaults:ESe}),s=SSe(r,t,a,n,i);_Se(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),MSe(t,l,"values",s);var f=Fv.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});Fv.coerceFont(i,"labelfont",f),Fv.coerceFont(i,"tickfont",f,{autoShadowDflt:!0}),Fv.coerceFont(i,"rangefont",f),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var kae=N((eBe,Eae)=>{"use strict";var kSe=zr().isArrayOrTypedArray,W9=Dd(),CSe=Sg().wrap;Eae.exports=function(r,t){var a,n;return W9.hasColorscale(t,"line")&&kSe(t.line.color)?(a=t.line.color,n=W9.extractOpts(t.line).colorscale,W9.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=LSe(t._length),n=[[0,t.line.color],[1,t.line.color]]),CSe({lineColor:a,cscale:n})};function LSe(e){for(var r=new Array(e),t=0;t>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),j9.default[e])t=j9.default[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var s=r[1];n=s.replace(/a$/,"");var f=n==="cmyk"?4:n==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/),n==="color"&&(n=t.shift()),t=t.map(function(v,d){if(v[v.length-1]==="%")return v=parseFloat(v)/100,d===3?v:n==="rgb"?v*255:n[0]==="h"||n[0]==="l"&&!d?v*100:n==="lab"?v*125:n==="lch"?d<2?v*150:v*360:n[0]==="o"&&!d?v:n==="oklab"?v*.4:n==="oklch"?d<2?v*.4:v*360:v;if(n[d]==="h"||d===2&&n[n.length-1]==="h"){if(Cae[v]!==void 0)return Cae[v];if(v.endsWith("deg"))return parseFloat(v);if(v.endsWith("turn"))return parseFloat(v)*360;if(v.endsWith("grad"))return parseFloat(v)*360/400;if(v.endsWith("rad"))return parseFloat(v)*180/Math.PI}return v==="none"?0:parseFloat(v)}),a=t.length>f?t.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(v){return parseFloat(v)}),n=((c=(u=e.match(/([a-z])/ig))==null?void 0:u.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:n,values:t,alpha:a}}var j9,Lae,Cae,Dae=Ng(()=>{j9=iie(f7(),1),Lae=DSe,Cae={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Eg,X9=Ng(()=>{Eg={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var h5,Rae=Ng(()=>{X9();h5={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}};Eg.hsl=function(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,n=Math.min(r,t,a),i=Math.max(r,t,a),o=i-n,l,s,f;return i===n?l=0:r===i?l=(t-a)/o:t===i?l=2+(a-r)/o:a===i&&(l=4+(r-t)/o),l=Math.min(l*60,360),l<0&&(l+=360),f=(n+i)/2,i===n?s=0:f<=.5?s=o/(i+n):s=o/(2-i-n),[l,s*100,f*100]}});var qae={};nie(qae,{default:()=>Fae});function Fae(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var r,t,a,n=Lae(e);if(!n.space)return[];let i=n.space[0]==="h"?h5.min:Eg.min,o=n.space[0]==="h"?h5.max:Eg.max;return r=Array(3),r[0]=Math.min(Math.max(n.values[0],i[0]),o[0]),r[1]=Math.min(Math.max(n.values[1],i[1]),o[1]),r[2]=Math.min(Math.max(n.values[2],i[2]),o[2]),n.space[0]==="h"&&(r=h5.rgb(r)),r.push(Math.min(Math.max(n.alpha,0),1)),r}var Pae=Ng(()=>{Dae();X9();Rae()});var Z9=N(d5=>{"use strict";var RSe=zr().isTypedArray;d5.convertTypedArray=function(e){return RSe(e)?Array.prototype.slice.call(e):e};d5.isOrdinal=function(e){return!!e.tickvals};d5.isVisible=function(e){return e.visible||!("visible"in e)}});var Yae=N((fBe,Vae)=>{"use strict";var FSe=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),qSe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),kg=Mg().maxDimensionCount,Gae=zr(),Nae=1e-6,p5=2048,PSe=new Uint8Array(4),Iae=new Uint8Array(4),Oae={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function NSe(e){e.read({x:0,y:0,width:1,height:1,data:PSe})}function Uae(e,r,t,a,n){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(r,t,a,n),e.clear({color:[0,0,0,0],depth:1})}function ISe(e,r,t,a,n,i){var o=i.key;function l(s){var f=Math.min(a,n-s*a);s===0&&(window.cancelAnimationFrame(t.currentRafs[o]),delete t.currentRafs[o],Uae(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!t.clearOnly&&(i.count=2*f,i.offset=2*s*a,r(i),s*a+f>>8*r)%256/255}function zSe(e,r,t){for(var a=new Array(e*(kg+4)),n=0,i=0;ite&&(te=k[F].dim1.canvasX,W=F);O===0&&Uae(n,0,0,f.canvasWidth,f.canvasHeight);var Q=_(t);for(F=0;F{"use strict";var Oi=ca(),rc=zr(),J9=rc.isArrayOrTypedArray,Jae=rc.numberFormat,Qae=(Pae(),oie(qae)).default,Kae=hn(),YSe=rc.strRotate,Zf=rc.strTranslate,WSe=no(),y5=Va(),Wae=Dd(),eM=Sg(),us=eM.keyFun,$f=eM.repeat,ene=eM.unwrap,r1=Z9(),wa=Mg(),rne=V9(),jSe=Yae();function jae(e,r,t){return rc.aggNums(e,null,r,t)}function tne(e,r){return rM(jae(Math.min,e,r),jae(Math.max,e,r))}function m5(e){var r=e.range;return r?rM(r[0],r[1]):tne(e.values,e._length)}function rM(e,r){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(r)||!isFinite(r))&&(r=0),e===r&&(e===0?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function XSe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function ZSe(e,r,t,a,n){var i=m5(t);return a?Oi.scale.ordinal().domain(a.map(XSe(Jae(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):Oi.scale.linear().domain(i).range([e-r,r])}function $Se(e,r){return Oi.scale.linear().range([r,e-r])}function JSe(e,r){return Oi.scale.linear().domain(m5(e)).range([r,1-r])}function QSe(e){if(e.tickvals){var r=m5(e);return Oi.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function KSe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){var o=Qae(i[1]);return Oi.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return Oi.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function K9(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function eEe(e,r,t){var a=ene(r),n=a.trace,i=r1.convertTypedArray(a.lineColor),o=n.line,l={color:Qae(n.unselected.line.color),opacity:n.unselected.line.opacity},s=Wae.extractOpts(o),f=s.reversescale?Wae.flipScale(a.cscale):a.cscale,u=n.domain,c=n.dimensions,v=e.width,d=n.labelangle,p=n.labelside,m=n.labelfont,y=n.tickfont,b=n.rangefont,T=rc.extendDeepNoArrays({},o,{color:i.map(Oi.scale.linear().domain(m5({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:wa.blockLineCount,canvasOverdrag:wa.overdrag*wa.canvasPixelRatio}),_=Math.floor(v*(u.x[1]-u.x[0])),x=Math.floor(e.height*(u.y[1]-u.y[0])),A=e.margin||{l:80,r:80,t:100,b:80},E=_,M=x;return{key:t,colCount:c.filter(r1.isVisible).length,dimensions:c,tickDistance:wa.tickDistance,unitToColor:KSe(f),lines:T,deselectedLines:l,labelAngle:d,labelSide:p,labelFont:m,tickFont:y,rangeFont:b,layoutWidth:v,layoutHeight:e.height,domain:u,translateX:u.x[0]*v,translateY:e.height-u.y[1]*e.height,pad:A,canvasWidth:E*wa.canvasPixelRatio+2*T.canvasOverdrag,canvasHeight:M*wa.canvasPixelRatio,width:E,height:M,canvasPixelRatio:wa.canvasPixelRatio}}function rEe(e,r,t){var a=t.width,n=t.height,i=t.dimensions,o=t.canvasPixelRatio,l=function(v){return a*v/Math.max(1,t.colCount-1)},s=wa.verticalPadding/n,f=$Se(n,wa.verticalPadding),u={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return u.dimensions=i.filter(r1.isVisible).map(function(v,d){var p=JSe(v,s),m=c[v.label];c[v.label]=(m||0)+1;var y=v.label+(m?"__"+m:""),b=v.constraintrange,T=b&&b.length;T&&!J9(b[0])&&(b=[b]);var _=T?b.map(function(H){return H.map(p)}):[[-1/0,1/0]],x=function(){var H=u;H.focusLayer&&H.focusLayer.render(H.panels,!0);var W=K9(H);!e.contextShown()&&W?(H.contextLayer&&H.contextLayer.render(H.panels,!0),e.contextShown(!0)):e.contextShown()&&!W&&(H.contextLayer&&H.contextLayer.render(H.panels,!0,!0),e.contextShown(!1))},A=v.values;A.length>v._length&&(A=A.slice(0,v._length));var E=v.tickvals,M;function k(H,W){return{val:H,text:M[W]}}function R(H,W){return H.val-W.val}if(J9(E)&&E.length){rc.isTypedArray(E)&&(E=Array.from(E)),M=v.ticktext,!J9(M)||!M.length?M=E.map(Jae(v.tickformat)):M.length>E.length?M=M.slice(0,E.length):E.length>M.length&&(E=E.slice(0,M.length));for(var P=1;P=W||$>=ee)return;var j=F.lineLayer.readPixel(Q,ee-1-$),se=j[3]!==0,le=se?j[2]+256*(j[1]+256*j[0]):null,Ee={x:Q,y:$,clientX:H.clientX,clientY:H.clientY,dataIndex:F.model.key,curveNumber:le};le!==p&&(se?n.hover(Ee):n.unhover&&n.unhover(Ee),p=le)}}),d.style("opacity",function(F){return F.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var y=l.selectAll("."+wa.cn.parcoords).data(v,us);y.exit().remove(),y.enter().append("g").classed(wa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),y.attr("transform",function(F){return Zf(F.model.translateX,F.model.translateY)});var b=y.selectAll("."+wa.cn.parcoordsControlView).data($f,us);b.enter().append("g").classed(wa.cn.parcoordsControlView,!0),b.attr("transform",function(F){return Zf(F.model.pad.l,F.model.pad.t)});var T=b.selectAll("."+wa.cn.yAxis).data(function(F){return F.dimensions},us);T.enter().append("g").classed(wa.cn.yAxis,!0),b.each(function(F){Q9(T,F,f)}),d.each(function(F){if(F.viewModel){!F.lineLayer||n?F.lineLayer=jSe(this,F):F.lineLayer.update(F),(F.key||F.key===0)&&(F.viewModel[F.key]=F.lineLayer);var H=!F.context||n;F.lineLayer.render(F.viewModel.panels,H)}}),T.attr("transform",function(F){return Zf(F.xScale(F.xIndex),0)}),T.call(Oi.behavior.drag().origin(function(F){return F}).on("drag",function(F){var H=F.parent;c.linePickActive(!1),F.x=Math.max(-wa.overdrag,Math.min(F.model.width+wa.overdrag,Oi.event.x)),F.canvasX=F.x*F.model.canvasPixelRatio,T.sort(function(W,ee){return W.x-ee.x}).each(function(W,ee){W.xIndex=ee,W.x=F===W?W.x:W.xScale(W.xIndex),W.canvasX=W.x*W.model.canvasPixelRatio}),Q9(T,H,f),T.filter(function(W){return Math.abs(F.xIndex-W.xIndex)!==0}).attr("transform",function(W){return Zf(W.xScale(W.xIndex),0)}),Oi.select(this).attr("transform",Zf(F.x,0)),T.each(function(W,ee,te){te===F.parent.key&&(H.dimensions[ee]=W)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!K9(H)),H.focusLayer.render&&H.focusLayer.render(H.panels)}).on("dragend",function(F){var H=F.parent;F.x=F.xScale(F.xIndex),F.canvasX=F.x*F.model.canvasPixelRatio,Q9(T,H,f),Oi.select(this).attr("transform",function(W){return Zf(W.x,0)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!K9(H)),H.focusLayer&&H.focusLayer.render(H.panels),H.pickLayer&&H.pickLayer.render(H.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(H.key,H.dimensions.map(function(W){return W.crossfilterDimensionIndex}))})),T.exit().remove();var _=T.selectAll("."+wa.cn.axisOverlays).data($f,us);_.enter().append("g").classed(wa.cn.axisOverlays,!0),_.selectAll("."+wa.cn.axis).remove();var x=_.selectAll("."+wa.cn.axis).data($f,us);x.enter().append("g").classed(wa.cn.axis,!0),x.each(function(F){var H=F.model.height/F.model.tickDistance,W=F.domainScale,ee=W.domain();Oi.select(this).call(Oi.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(H,F.tickFormat).tickValues(F.ordinal?ee:null).tickFormat(function(te){return r1.isOrdinal(F)?te:ane(F.model.dimensions[F.visibleIndex],te)}).scale(W)),y5.font(x.selectAll("text"),F.model.tickFont)}),x.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),x.selectAll("text").style("cursor","default");var A=_.selectAll("."+wa.cn.axisHeading).data($f,us);A.enter().append("g").classed(wa.cn.axisHeading,!0);var E=A.selectAll("."+wa.cn.axisTitle).data($f,us);E.enter().append("text").classed(wa.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",i?"none":"auto"),E.text(function(F){return F.label}).each(function(F){var H=Oi.select(this);y5.font(H,F.model.labelFont),WSe.convertToTspans(H,r)}).attr("transform",function(F){var H=Zae(F.model.labelAngle,F.model.labelSide),W=wa.axisTitleOffset;return(H.dir>0?"":Zf(0,2*W+F.model.height))+YSe(H.degrees)+Zf(-W*H.dx,-W*H.dy)}).attr("text-anchor",function(F){var H=Zae(F.model.labelAngle,F.model.labelSide),W=Math.abs(H.dx),ee=Math.abs(H.dy);return 2*W>ee?H.dir*H.dx<0?"start":"end":"middle"});var M=_.selectAll("."+wa.cn.axisExtent).data($f,us);M.enter().append("g").classed(wa.cn.axisExtent,!0);var k=M.selectAll("."+wa.cn.axisExtentTop).data($f,us);k.enter().append("g").classed(wa.cn.axisExtentTop,!0),k.attr("transform",Zf(0,-wa.axisExtentOffset));var R=k.selectAll("."+wa.cn.axisExtentTopText).data($f,us);R.enter().append("text").classed(wa.cn.axisExtentTopText,!0).call(Xae),R.text(function(F){return $ae(F,!0)}).each(function(F){y5.font(Oi.select(this),F.model.rangeFont)});var P=M.selectAll("."+wa.cn.axisExtentBottom).data($f,us);P.enter().append("g").classed(wa.cn.axisExtentBottom,!0),P.attr("transform",function(F){return Zf(0,F.model.height+wa.axisExtentOffset)});var O=P.selectAll("."+wa.cn.axisExtentBottomText).data($f,us);O.enter().append("text").classed(wa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(Xae),O.text(function(F){return $ae(F,!1)}).each(function(F){y5.font(Oi.select(this),F.model.rangeFont)}),rne.ensureAxisBrush(_,u,r)}});var aM=N((tM,fne)=>{"use strict";var nEe=ine(),iEe=r5(),one=Z9().isVisible,sne={};function lne(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function oEe(e,r){return function(a,n){return lne(e,r,a)-lne(e,r,n)}}var tM=fne.exports=function(r,t){var a=r._fullLayout,n=iEe(r,[],sne);if(n){var i={},o={},l={},s={},f=a._size;t.forEach(function(p,m){var y=p[0].trace;l[m]=y.index;var b=s[m]=y.index;i[m]=r.data[b].dimensions,o[m]=r.data[b].dimensions.slice()});var u=function(p,m,y){var b=o[p][m],T=y.map(function(k){return k.slice()}),_="dimensions["+m+"].constraintrange",x=a._tracePreGUI[r._fullData[l[p]]._fullInput.uid];if(x[_]===void 0){var A=b.constraintrange;x[_]=A||null}var E=r._fullData[l[p]].dimensions[m];T.length?(T.length===1&&(T=T[0]),b.constraintrange=T,E.constraintrange=T.slice(),T=[T]):(delete b.constraintrange,delete E.constraintrange,T=null);var M={};M[_]=T,r.emit("plotly_restyle",[M,[s[p]]])},c=function(p){r.emit("plotly_hover",p)},v=function(p){r.emit("plotly_unhover",p)},d=function(p,m){var y=oEe(m,o[p].filter(one));i[p].sort(y),o[p].filter(function(b){return!one(b)}).sort(function(b){return o[p].indexOf(b)}).forEach(function(b){i[p].splice(i[p].indexOf(b),1),i[p].splice(o[p].indexOf(b),0,b)}),r.emit("plotly_restyle",[{dimensions:[i[p]]},[s[p]]])};nEe(r,t,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:u,hover:c,unhover:v,axesMoved:d})}};tM.reglPrecompiled=sne});var cne=N(Cg=>{"use strict";var une=ca(),lEe=sy().getModuleCalcData,sEe=aM(),fEe=Wc();Cg.name="parcoords";Cg.plot=function(e){var r=lEe(e.calcdata,"parcoords")[0];r.length&&sEe(e,r)};Cg.clean=function(e,r,t,a){var n=a._has&&a._has("parcoords"),i=r._has&&r._has("parcoords");n&&!i&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())};Cg.toSVG=function(e){var r=e._fullLayout._glimages,t=une.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:fEe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){une.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var hne=N((vBe,vne)=>{"use strict";vne.exports={attributes:G9(),supplyDefaults:Sae(),calc:kae(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:cne(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var yne=N((hBe,pne)=>{"use strict";var dne=hne();dne.plot=aM();pne.exports=dne});var gne=N((dBe,mne)=>{"use strict";mne.exports=yne()});var uo=N((pBe,xne)=>{var b5=ii();function bne(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}b5(bne.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function nM(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function g5(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}b5(nM.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(na.local.differentCalendars||na.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+g5(Math.abs(this.year()),4)+"-"+g5(this.month(),2)+"-"+g5(this.day(),2)}});function iM(){this.shortYearCutoff="+10"}b5(iM.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new nM(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+g5(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(u){for(;oc-1+u.minMonth;)i++,o-=c,c=u.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(f){throw this._validateLevel--,f}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),f=n-(s>2.5?4716:4715);return f<=0&&f--,this.newDate(f,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var na=xne.exports=new bne;na.cdate=nM;na.baseCalendar=iM;na.calendars.gregorian=oM});var _ne=N(()=>{var lM=ii(),Bi=uo();lM(Bi.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Bi.local=Bi.regionalOptions[""];lM(Bi.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});lM(Bi.baseCalendar.prototype,{UNIX_EPOCH:Bi.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Bi.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Bi.local.invalidFormat||Bi.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,f=function(x,A){for(var E=1;_+E1},u=function(x,A,E,M){var k=""+A;if(f(x,M))for(;k.length1},T=function(F,H){var W=b(F,H),ee=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],te=new RegExp("^-?\\d{1,"+ee+"}"),Q=r.substring(k).match(te);if(!Q)throw(Bi.local.missingNumberAt||Bi.regionalOptions[""].missingNumberAt).replace(/\{0\}/,k);return k+=Q[0].length,parseInt(Q[0],10)},_=this,x=function(){if(typeof l=="function"){b("m");var F=l.call(_,r.substring(k));return k+=F.length,F}return T("m")},A=function(F,H,W,ee){for(var te=b(F,ee)?W:H,Q=0;Q-1){v=1,d=p;for(var O=this.daysInMonth(c,v);d>O;O=this.daysInMonth(c,v))v++,d-=O}return u>-1?this.fromJD(u):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),f=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,u=f.exec(l);u;)s.add(parseInt(u[1],10),u[2]||"d"),u=f.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var wne=N(()=>{var qv=uo(),uEe=ii(),sM=qv.instance();function x5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x5.prototype=new qv.baseCalendar;uEe(x5.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(vEe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(hEe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(dEe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw qv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw qv.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,qv.local.invalidyear),n=Nv[a-Nv[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=sM.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var f=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Pv[e-Pv[0]],a=t>>13,n=a?12:11;if(r>n)throw qv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,qv.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=yEe(e,i,t,n);return sM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=sM.fromJD(e),t=pEe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(cEe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(x5.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),f=l.month(),u=this.isIntercalaryMonth(s,o),c=i&&u?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==f&&l.month(c)}return l}});var cEe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,vEe=/^\d?\d[iI]?/m,hEe=/^闰?十?[一二三四五六七八九]?月/m,dEe=/^闰?十?[一二三四五六七八九]?/m;qv.calendars.chinese=x5;var Pv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Nv=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function pEe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var f=Nv[n.year-Nv[0]],u=n.year<<9|n.month<<5|n.day;i.year=u>=f?n.year:n.year-1,f=Nv[i.year-Nv[0]];var c=f>>9&4095,v=f>>5&15,d=f&31,p,m=new Date(c,v-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var b=Pv[i.year-Pv[0]],T;for(T=0;T<13;T++){var _=b&1<<12-T?30:29;if(p<_)break;p-=_}var x=b>>13;return!x||T=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var f=typeof t=="number"&&t>=1&&t<=30;if(!f)throw new Error("Lunar day outside range 1 - 30");var u;typeof a=="object"?(u=!1,i=a):(u=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:u}}var c;c=o.day-1;var v=Pv[o.year-Pv[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>9&4095,_=b>>5&15,x=b&31,A=new Date(T,_-1,x+c);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var Ane=N(()=>{var L0=uo(),mEe=ii();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new L0.baseCalendar;mEe(fM.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,L0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,L0.local.invalidYear||L0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,L0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,L0.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});L0.calendars.coptic=fM});var Tne=N(()=>{var tc=uo(),gEe=ii();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new tc.baseCalendar;gEe(uM.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,tc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,tc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,tc.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,tc.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,tc.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,tc.local.invalidDate);return{century:bEe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,tc.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var bEe={20:"Fruitbat",21:"Anchovy"};tc.calendars.discworld=uM});var Mne=N(()=>{var D0=uo(),xEe=ii();function cM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cM.prototype=new D0.baseCalendar;xEe(cM.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,D0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,D0.local.invalidYear||D0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,D0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,D0.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});D0.calendars.ethiopian=cM});var Sne=N(()=>{var Iv=uo(),_Ee=ii();function vM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vM.prototype=new Iv.baseCalendar;_Ee(vM.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Iv.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,_5(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Iv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Iv.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Iv.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&_5(this.daysInYear(e),10)===5?30:r===9&&_5(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Iv.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Iv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function _5(e,r){return e-r*Math.floor(e/r)}Iv.calendars.hebrew=vM});var Ene=N(()=>{var Lg=uo(),wEe=ii();function hM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hM.prototype=new Lg.baseCalendar;wEe(hM.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Lg.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Lg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Lg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Lg.calendars.islamic=hM});var kne=N(()=>{var Dg=uo(),AEe=ii();function dM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dM.prototype=new Dg.baseCalendar;AEe(dM.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Dg.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Dg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Dg.calendars.julian=dM});var Lne=N(()=>{var cs=uo(),TEe=ii();function yM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yM.prototype=new cs.baseCalendar;TEe(yM.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cs.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cs.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cs.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,cs.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cs.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,cs.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,cs.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,cs.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,cs.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=pM(e+8+340,365);return[Math.floor(r/20)+1,pM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Cne(e+20,20),Cne(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,cs.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function pM(e,r){return e-r*Math.floor(e/r)}function Cne(e,r){return pM(e-1,r)+1}cs.calendars.mayan=yM});var Rne=N(()=>{var R0=uo(),MEe=ii();function mM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}mM.prototype=new R0.baseCalendar;var Dne=R0.instance("gregorian");MEe(mM.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,R0.local.invalidYear||R0.regionalOptions[""].invalidYear);return Dne.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,R0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,R0.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});R0.calendars.nanakshahi=mM});var Fne=N(()=>{var F0=uo(),SEe=ii();function gM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gM.prototype=new F0.baseCalendar;SEe(gM.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,F0.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,F0.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,F0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=F0.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=F0.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var f=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,f)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var t1=uo(),EEe=ii();function A5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function w5(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}A5.prototype=new t1.baseCalendar;EEe(A5.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t1.local.invalidYear);return w5(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,t1.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,t1.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,w5(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});t1.calendars.persian=A5;t1.calendars.jalali=A5});var Pne=N(()=>{var q0=uo(),kEe=ii(),T5=q0.instance();function bM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bM.prototype=new q0.baseCalendar;kEe(bM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,q0.local.invalidYear),t=this._t2gYear(r.year());return T5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,q0.local.invalidYear),n=this._t2gYear(a.year());return T5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,q0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,q0.local.invalidDate),n=this._t2gYear(a.year());return T5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=T5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});q0.calendars.taiwan=bM});var Nne=N(()=>{var P0=uo(),CEe=ii(),M5=P0.instance();function xM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xM.prototype=new P0.baseCalendar;CEe(xM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,P0.local.invalidYear),t=this._t2gYear(r.year());return M5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,P0.local.invalidYear),n=this._t2gYear(a.year());return M5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,P0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,P0.local.invalidDate),n=this._t2gYear(a.year());return M5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=M5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});P0.calendars.thai=xM});var Ine=N(()=>{var N0=uo(),LEe=ii();function _M(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_M.prototype=new N0.baseCalendar;LEe(_M.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,N0.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,N0.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ov[n]-Ov[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,N0.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ov[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Ov[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=N0.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=N0.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});N0.calendars.ummalqura=_M;var Ov=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Bne=N((WBe,One)=>{"use strict";One.exports=uo();_ne();wne();Ane();Tne();Mne();Sne();Ene();kne();Lne();Rne();Fne();qne();Pne();Nne();Ine()});var Wne=N((jBe,Yne)=>{"use strict";var Gne=Bne(),Rg=zr(),Une=ri(),DEe=Une.EPOCHJD,REe=Une.ONEDAY,TM={valType:"enumerated",values:Rg.sortObjectKeys(Gne.calendars),editType:"calc",dflt:"gregorian"},Hne=function(e,r,t,a){var n={};return n[t]=TM,Rg.coerce(e,r,n,t,a)},FEe=function(e,r,t,a){for(var n=0;n{"use strict";jne.exports=Wne()});var BEe=N((ZBe,$ne)=>{var Zne=BV();Zne.register([ste(),sae(),gne(),Xne()]);$ne.exports=Zne});return BEe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl3d.js b/dist/plotly-gl3d.js index 1c56de30172..6d64b28a3e7 100644 --- a/dist/plotly-gl3d.js +++ b/dist/plotly-gl3d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d) v3.6.0 +* plotly.js (gl3d) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -35,14 +35,18 @@ var Plotly = (() => { }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; // src/version.js var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -78,7 +82,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -105,7 +109,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8131,7 +8135,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8371,7 +8375,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8488,7 +8492,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8533,7 +8537,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9936,7 +9940,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9955,7 +9959,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color) { return !!matchers.CSS_UNIT.exec(color); } @@ -13778,9 +13782,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -16033,6 +16037,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -17745,6 +17760,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -17873,24 +17889,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -32790,7 +32813,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -34592,6 +34625,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -36807,6 +36846,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -36816,6 +36889,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -36846,26 +36920,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.disk, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.pencil, - click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -38004,8 +38082,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -46033,6 +46117,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -47044,19 +47129,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); @@ -59723,7 +59807,7 @@ var Plotly = (() => { /***/ 1964: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { alpha_shape: __webpack_require__2(3502), convex_hull: __webpack_require__2(7352), @@ -59739,12 +59823,12 @@ var Plotly = (() => { ndarray: __webpack_require__2(9618), ndarray_linear_interpolate: __webpack_require__2(4317) }; - } + }) ), /***/ 4793: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var __webpack_unused_export__; function _typeof(o) { @@ -61065,7 +61149,7 @@ var Plotly = (() => { function numberIsNaN(obj) { return obj !== obj; } - var hexSliceLookupTable = function() { + var hexSliceLookupTable = (function() { var alphabet = "0123456789abcdef"; var table = new Array(256); for (var i = 0; i < 16; ++i) { @@ -61075,13 +61159,13 @@ var Plotly = (() => { } } return table; - }(); - } + })(); + }) ), /***/ 9216: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = isMobile; module2.exports.isMobile = isMobile; @@ -61103,12 +61187,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 6296: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createViewController; var createTurntable = __webpack_require__2(7261); @@ -61245,12 +61329,12 @@ var Plotly = (() => { matrix }, mode); } - } + }) ), /***/ 7169: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var weakMap = typeof WeakMap === "undefined" ? __webpack_require__2(1538) : WeakMap; var createBuffer = __webpack_require__2(2762); @@ -61276,12 +61360,12 @@ var Plotly = (() => { triangleVAO.unbind(); } module2.exports = createABigTriangle; - } + }) ), /***/ 1085: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var padLeft = __webpack_require__2(1371); module2.exports = addLineNumbers; function addLineNumbers(string, start, delim) { @@ -61296,12 +61380,12 @@ var Plotly = (() => { return prefix + delim + line; }).join("\n"); } - } + }) ), /***/ 3952: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = affineHull; var orient = __webpack_require__2(3250); @@ -61349,12 +61433,12 @@ var Plotly = (() => { } return index; } - } + }) ), /***/ 5995: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = alphaComplex; var delaunay = __webpack_require__2(7642); @@ -61368,33 +61452,33 @@ var Plotly = (() => { return circumradius(simplex) * alpha < 1; }); } - } + }) ), /***/ 3502: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = alphaShape; var ac = __webpack_require__2(5995); var bnd = __webpack_require__2(9127); function alphaShape(alpha, points) { return bnd(ac(alpha, points)); } - } + }) ), /***/ 6468: ( /***/ - function(module2) { + (function(module2) { module2.exports = function _atob(str) { return atob(str); }; - } + }) ), /***/ 2642: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = barycentric; var solve = __webpack_require__2(727); @@ -61435,12 +61519,12 @@ var Plotly = (() => { } return y; } - } + }) ), /***/ 7507: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.byteLength = byteLength; exports2.toByteArray = toByteArray; @@ -61534,12 +61618,12 @@ var Plotly = (() => { } return parts.join(""); } - } + }) ), /***/ 3865: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = add; @@ -61549,35 +61633,35 @@ var Plotly = (() => { a[1].mul(b[1]) ); } - } + }) ), /***/ 1318: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = cmp; function cmp(a, b) { return a[0].mul(b[1]).cmp(b[0].mul(a[1])); } - } + }) ), /***/ 8697: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = div; function div(a, b) { return rationalize(a[0].mul(b[1]), a[1].mul(b[0])); } - } + }) ), /***/ 7842: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isRat = __webpack_require__2(6330); var isBN = __webpack_require__2(1533); @@ -61635,36 +61719,36 @@ var Plotly = (() => { } return rationalize(a, b); } - } + }) ), /***/ 6330: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isBN = __webpack_require__2(1533); module2.exports = isRat; function isRat(x) { return Array.isArray(x) && x.length === 2 && isBN(x[0]) && isBN(x[1]); } - } + }) ), /***/ 5716: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = sign; function sign(x) { return x.cmp(new BN(0)); } - } + }) ), /***/ 1369: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var sign = __webpack_require__2(5716); module2.exports = bn2num; @@ -61684,12 +61768,12 @@ var Plotly = (() => { } return sign(b) * out; } - } + }) ), /***/ 4025: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var db = __webpack_require__2(2361); var ctz = __webpack_require__2(8828).countTrailingZeros; @@ -61705,24 +61789,24 @@ var Plotly = (() => { } return h + 32; } - } + }) ), /***/ 1533: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = isBN; function isBN(x) { return x && typeof x === "object" && Boolean(x.words); } - } + }) ), /***/ 2651: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); var db = __webpack_require__2(2361); @@ -61735,12 +61819,12 @@ var Plotly = (() => { return new BN(x * Math.pow(2, 52 - e)).ushln(e - 52); } } - } + }) ), /***/ 869: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var num2bn = __webpack_require__2(2651); var sign = __webpack_require__2(5716); @@ -61764,60 +61848,60 @@ var Plotly = (() => { } return [numer, denom]; } - } + }) ), /***/ 6768: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = str2BN; function str2BN(x) { return new BN(x); } - } + }) ), /***/ 6504: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = mul; function mul(a, b) { return rationalize(a[0].mul(b[0]), a[1].mul(b[1])); } - } + }) ), /***/ 7721: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnsign = __webpack_require__2(5716); module2.exports = sign; function sign(x) { return bnsign(x[0]) * bnsign(x[1]); } - } + }) ), /***/ 5572: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = sub; function sub(a, b) { return rationalize(a[0].mul(b[1]).sub(a[1].mul(b[0])), a[1].mul(b[1])); } - } + }) ), /***/ 946: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bn2num = __webpack_require__2(1369); var ctz = __webpack_require__2(4025); @@ -61850,12 +61934,12 @@ var Plotly = (() => { return sgn * y * Math.pow(2, 1023 - ybits); } } - } + }) ), /***/ 2478: ( /***/ - function(module2) { + (function(module2) { "use strict"; function ge(a, y, c, l, h) { var i = h + 1; @@ -61956,12 +62040,12 @@ var Plotly = (() => { return norm(a, y, c, l, h, eq); } }; - } + }) ), /***/ 8828: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; "use restrict"; var INT_BITS = 32; @@ -62111,12 +62195,12 @@ var Plotly = (() => { var t = v | v - 1; return t + 1 | (~t & -~t) - 1 >>> countTrailingZeros(v) + 1; }; - } + }) ), /***/ 6859: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2 = __webpack_require__2.nmd(module2); (function(module3, exports2) { "use strict"; @@ -64923,12 +65007,12 @@ var Plotly = (() => { return res._forceRed(this); }; })(module2, this); - } + }) ), /***/ 6204: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = boundary; function boundary(cells) { @@ -64961,12 +65045,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 6867: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boxIntersectWrapper; var pool = __webpack_require__2(1888); @@ -65095,12 +65179,12 @@ var Plotly = (() => { throw new Error("box-intersect: Invalid arguments"); } } - } + }) ), /***/ 2455: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; function full() { function bruteForceRedFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) { @@ -65231,12 +65315,12 @@ var Plotly = (() => { } exports2.partial = bruteForcePlanner(false); exports2.full = bruteForcePlanner(true); - } + }) ), /***/ 7150: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boxIntersectIter; var pool = __webpack_require__2(1888); @@ -65846,12 +65930,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 3545: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = findMedian; var genPartition = __webpack_require__2(8105); @@ -65976,12 +66060,12 @@ var Plotly = (() => { boxes[elemSize * mid + axis] ); } - } + }) ), /***/ 8105: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = genPartition; var P2F = { @@ -66101,12 +66185,12 @@ var Plotly = (() => { } return m; } - } + }) ), /***/ 4192: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = wrapper; var INSERT_SORT_CUTOFF = 32; @@ -66312,12 +66396,12 @@ var Plotly = (() => { quickSort(less, great, data); } } - } + }) ), /***/ 855: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = { init: sqInit, @@ -66656,12 +66740,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 2538: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var monotoneTriangulate = __webpack_require__2(8902); var makeIndex = __webpack_require__2(5542); @@ -66721,12 +66805,12 @@ var Plotly = (() => { return cells; } } - } + }) ), /***/ 2272: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var inCircle = __webpack_require__2(2646)[4]; var bsearch = __webpack_require__2(2478); @@ -66807,12 +66891,12 @@ var Plotly = (() => { testFlip(points, triangulation, stack, b, x, y); } } - } + }) ), /***/ 5023: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); module2.exports = classifyFaces; @@ -66829,7 +66913,7 @@ var Plotly = (() => { function compareCell(a, b) { return a[0] - b[0] || a[1] - b[1] || a[2] - b[2]; } - proto.locate = /* @__PURE__ */ function() { + proto.locate = /* @__PURE__ */ (function() { var key = [0, 0, 0]; return function(a, b, c) { var x = a, y = b, z = c; @@ -66852,7 +66936,7 @@ var Plotly = (() => { key[2] = z; return bsearch.eq(this.cells, key, compareCell); }; - }(); + })(); function indexCells(triangulation, infinity) { var cells = triangulation.cells(); var nc = cells.length; @@ -66972,12 +67056,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 8902: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); var orient = __webpack_require__2(3250)[3]; @@ -67141,12 +67225,12 @@ var Plotly = (() => { } return cells; } - } + }) ), /***/ 5542: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); module2.exports = createTriangulation; @@ -67165,7 +67249,7 @@ var Plotly = (() => { } } } - proto.isConstraint = /* @__PURE__ */ function() { + proto.isConstraint = /* @__PURE__ */ (function() { var e = [0, 0]; function compareLex(a, b) { return a[0] - b[0] || a[1] - b[1]; @@ -67175,7 +67259,7 @@ var Plotly = (() => { e[1] = Math.max(i, j); return bsearch.eq(this.edges, e, compareLex) >= 0; }; - }(); + })(); proto.removeTriangle = function(i, j, k) { var stars = this.stars; removePair(stars[i], j, k); @@ -67238,12 +67322,12 @@ var Plotly = (() => { } return new Triangulation(stars, edges); } - } + }) ), /***/ 2419: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = orientation; function orientation(s) { @@ -67259,12 +67343,12 @@ var Plotly = (() => { } return p; } - } + }) ), /***/ 3628: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var dup = __webpack_require__2(1338); var solve = __webpack_require__2(727); @@ -67324,12 +67408,12 @@ var Plotly = (() => { } circumcenter.barycenetric = barycentricCircumcenter; module2.exports = circumcenter; - } + }) ), /***/ 6037: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = circumradius; var circumcenter = __webpack_require__2(3628); function circumradius(points) { @@ -67343,12 +67427,12 @@ var Plotly = (() => { } return Math.sqrt(avgDist / points.length); } - } + }) ), /***/ 332: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = cleanPSLG; var UnionFind = __webpack_require__2(1755); @@ -67649,12 +67733,12 @@ var Plotly = (() => { } return modified; } - } + }) ), /***/ 3637: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = solveIntersection; var ratMul = __webpack_require__2(6504); @@ -67681,12 +67765,12 @@ var Plotly = (() => { var r = rvAdd(a, s); return r; } - } + }) ), /***/ 3642: ( /***/ - function(module2) { + (function(module2) { module2.exports = { "jet": [{ "index": 0, "rgb": [0, 0, 131] }, { "index": 0.125, "rgb": [0, 60, 170] }, { "index": 0.375, "rgb": [5, 255, 255] }, { "index": 0.625, "rgb": [255, 255, 0] }, { "index": 0.875, "rgb": [250, 0, 0] }, { "index": 1, "rgb": [128, 0, 0] }], "hsv": [{ "index": 0, "rgb": [255, 0, 0] }, { "index": 0.169, "rgb": [253, 255, 2] }, { "index": 0.173, "rgb": [247, 255, 2] }, { "index": 0.337, "rgb": [0, 252, 4] }, { "index": 0.341, "rgb": [0, 252, 10] }, { "index": 0.506, "rgb": [1, 249, 255] }, { "index": 0.671, "rgb": [2, 0, 253] }, { "index": 0.675, "rgb": [8, 0, 253] }, { "index": 0.839, "rgb": [255, 0, 251] }, { "index": 0.843, "rgb": [255, 0, 245] }, { "index": 1, "rgb": [255, 0, 6] }], @@ -67733,12 +67817,12 @@ var Plotly = (() => { "velocity-green": [{ "index": 0, "rgb": [23, 35, 19] }, { "index": 0.13, "rgb": [24, 64, 38] }, { "index": 0.25, "rgb": [11, 95, 45] }, { "index": 0.38, "rgb": [39, 123, 35] }, { "index": 0.5, "rgb": [95, 146, 12] }, { "index": 0.63, "rgb": [152, 165, 18] }, { "index": 0.75, "rgb": [201, 186, 69] }, { "index": 0.88, "rgb": [233, 216, 137] }, { "index": 1, "rgb": [255, 253, 205] }], "cubehelix": [{ "index": 0, "rgb": [0, 0, 0] }, { "index": 0.07, "rgb": [22, 5, 59] }, { "index": 0.13, "rgb": [60, 4, 105] }, { "index": 0.2, "rgb": [109, 1, 135] }, { "index": 0.27, "rgb": [161, 0, 147] }, { "index": 0.33, "rgb": [210, 2, 142] }, { "index": 0.4, "rgb": [251, 11, 123] }, { "index": 0.47, "rgb": [255, 29, 97] }, { "index": 0.53, "rgb": [255, 54, 69] }, { "index": 0.6, "rgb": [255, 85, 46] }, { "index": 0.67, "rgb": [255, 120, 34] }, { "index": 0.73, "rgb": [255, 157, 37] }, { "index": 0.8, "rgb": [241, 191, 57] }, { "index": 0.87, "rgb": [224, 220, 93] }, { "index": 0.93, "rgb": [218, 241, 142] }, { "index": 1, "rgb": [227, 253, 198] }] }; - } + }) ), /***/ 6729: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var colorScale = __webpack_require__2(3642); var lerp = __webpack_require__2(395); @@ -67833,12 +67917,12 @@ var Plotly = (() => { function rgbaStr(rgba) { return "rgba(" + rgba.join(",") + ")"; } - } + }) ), /***/ 3140: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = compareAngle; var orient = __webpack_require__2(3250); @@ -67918,12 +68002,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 8572: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function signum(x) { if (x < 0) { @@ -67934,12 +68018,12 @@ var Plotly = (() => { } return 0; }; - } + }) ), /***/ 8507: ( /***/ - function(module2) { + (function(module2) { module2.exports = compareCells; var min = Math.min; function compareInt(a, b) { @@ -67980,12 +68064,12 @@ var Plotly = (() => { return 0; } } - } + }) ), /***/ 3788: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compareCells = __webpack_require__2(8507); var parity = __webpack_require__2(2419); @@ -67993,12 +68077,12 @@ var Plotly = (() => { function compareOrientedCells(a, b) { return compareCells(a, b) || parity(a) - parity(b); } - } + }) ), /***/ 7352: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var convexHull1d = __webpack_require__2(5721); var convexHull2d = __webpack_require__2(4750); @@ -68021,12 +68105,12 @@ var Plotly = (() => { } return convexHullnd(points, d); } - } + }) ), /***/ 5721: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = convexHull1d; function convexHull1d(points) { @@ -68048,12 +68132,12 @@ var Plotly = (() => { return [[lo]]; } } - } + }) ), /***/ 4750: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = convexHull2D; var monotoneHull = __webpack_require__2(3090); @@ -68072,12 +68156,12 @@ var Plotly = (() => { } return edges; } - } + }) ), /***/ 2690: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = convexHullnD; var ich = __webpack_require__2(8954); @@ -68131,12 +68215,12 @@ var Plotly = (() => { return invPermute(nhull, ah); } } - } + }) ), /***/ 4769: ( /***/ - function(module2) { + (function(module2) { "use strict"; function dcubicHermite(p0, v0, p1, v1, t, f) { var dh00 = 6 * t * t - 6 * t, dh10 = 3 * t * t - 4 * t + 1, dh01 = -6 * t * t + 6 * t, dh11 = 3 * t * t - 2 * t; @@ -68166,12 +68250,12 @@ var Plotly = (() => { } module2.exports = cubicHermite; module2.exports.derivative = dcubicHermite; - } + }) ), /***/ 7642: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ch = __webpack_require__2(8954); var uniq = __webpack_require__2(1682); @@ -68307,12 +68391,12 @@ var Plotly = (() => { } return hull; } - } + }) ), /***/ 2361: ( /***/ - function(module2) { + (function(module2) { var hasTypedArrays = false; if (typeof Float64Array !== "undefined") { var DOUBLE_VIEW = new Float64Array(1), UINT_VIEW = new Uint32Array(DOUBLE_VIEW.buffer); @@ -68404,12 +68488,12 @@ var Plotly = (() => { var hi = module2.exports.hi(n); return !(hi & 2146435072); }; - } + }) ), /***/ 1338: ( /***/ - function(module2) { + (function(module2) { "use strict"; function dupe_array(count, value, i) { var c = count[i] | 0; @@ -68455,12 +68539,12 @@ var Plotly = (() => { return []; } module2.exports = dupe; - } + }) ), /***/ 3134: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = edgeToAdjacency; var uniq = __webpack_require__2(1682); @@ -68491,12 +68575,12 @@ var Plotly = (() => { } return adj; } - } + }) ), /***/ 5033: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = extractPlanes; function extractPlanes(M, zNear, zFar) { @@ -68511,12 +68595,12 @@ var Plotly = (() => { [zf * M[12] - M[8], zf * M[13] - M[9], zf * M[14] - M[10], zf * M[15] - M[11]] ]; } - } + }) ), /***/ 9215: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createFilteredVector; var cubicHermite = __webpack_require__2(4769); @@ -68791,12 +68875,12 @@ var Plotly = (() => { return new FilteredVector(initState, initVelocity, initTime); } } - } + }) ), /***/ 3840: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = createRBTree; var RED = 0; @@ -69676,12 +69760,12 @@ var Plotly = (() => { function createRBTree(compare) { return new RedBlackTree(compare || defaultCompare, null); } - } + }) ), /***/ 3837: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createAxes; var createText = __webpack_require__2(4935); @@ -70249,12 +70333,12 @@ var Plotly = (() => { axes.update(options); return axes; } - } + }) ), /***/ 5304: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createBackgroundCube; var createBuffer = __webpack_require__2(2762); @@ -70360,12 +70444,12 @@ var Plotly = (() => { shader.attributes.normal.location = 1; return new BackgroundCube(gl2, buffer, vao, shader); } - } + }) ), /***/ 6429: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = getCubeEdges; var bits = __webpack_require__2(8828); @@ -70571,12 +70655,12 @@ var Plotly = (() => { } return CUBE_RESULT; } - } + }) ), /***/ 501: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createLines; var createBuffer = __webpack_require__2(2762); @@ -70792,12 +70876,12 @@ var Plotly = (() => { shader.attributes.position.location = 0; return new Lines(gl2, vertBuf, vao, shader, tickCount, tickOffset, gridCount, gridOffset); } - } + }) ), /***/ 1879: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -70823,12 +70907,12 @@ var Plotly = (() => { { name: "normal", type: "vec3" } ]); }; - } + }) ), /***/ 4935: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createTextSprites; var createBuffer = __webpack_require__2(2762); @@ -71014,12 +71098,12 @@ var Plotly = (() => { result.update(bounds, labels, labelFont, ticks, tickFont); return result; } - } + }) ), /***/ 6444: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.create = defaultTicks; exports2.equal = ticksEqual; @@ -71088,12 +71172,12 @@ var Plotly = (() => { } return true; } - } + }) ), /***/ 5445: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = axesProperties; var getPlanes = __webpack_require__2(5033); @@ -71216,12 +71300,12 @@ var Plotly = (() => { } return ranges; } - } + }) ), /***/ 2762: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); var ops = __webpack_require__2(5298); @@ -71362,12 +71446,12 @@ var Plotly = (() => { return result; } module2.exports = createBuffer; - } + }) ), /***/ 6405: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vec3 = __webpack_require__2(2931); module2.exports = function(vectorfield, bounds) { @@ -71479,12 +71563,12 @@ var Plotly = (() => { traceType: "cone" }); }; - } + }) ), /***/ 9060: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createShader = __webpack_require__2(9405); var createBuffer = __webpack_require__2(2762); @@ -71965,12 +72049,12 @@ var Plotly = (() => { return mesh; } module2.exports = createVectorMesh; - } + }) ), /***/ 614: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]); @@ -71995,12 +72079,12 @@ var Plotly = (() => { { name: "vector", type: "vec3" } ] }; - } + }) ), /***/ 737: ( /***/ - function(module2) { + (function(module2) { module2.exports = { 0: "NONE", 1: "ONE", @@ -72299,22 +72383,22 @@ var Plotly = (() => { 37443: "UNPACK_COLORSPACE_CONVERSION_WEBGL", 37444: "BROWSER_DEFAULT_WEBGL" }; - } + }) ), /***/ 5171: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var gl10 = __webpack_require__2(737); module2.exports = function lookupConstant(number) { return gl10[number]; }; - } + }) ), /***/ 9165: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createErrorBars; var createBuffer = __webpack_require__2(2762); @@ -72392,7 +72476,7 @@ var Plotly = (() => { bounds[1][i] = Math.max(bounds[1][i], point[i]); } } - var FACE_TABLE = function() { + var FACE_TABLE = (function() { var table = new Array(3); for (var d = 0; d < 3; ++d) { var row = []; @@ -72407,7 +72491,7 @@ var Plotly = (() => { table[d] = row; } return table; - }(); + })(); function emitFace(verts, x, c, d) { var offsets = FACE_TABLE[d]; for (var i = 0; i < offsets.length; ++i) { @@ -72588,12 +72672,12 @@ var Plotly = (() => { result.update(options); return result; } - } + }) ), /***/ 3436: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -72606,12 +72690,12 @@ var Plotly = (() => { { name: "offset", type: "vec3" } ]); }; - } + }) ), /***/ 2260: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createTexture = __webpack_require__2(7766); module2.exports = createFBO; @@ -72994,12 +73078,12 @@ var Plotly = (() => { WEBGL_draw_buffers ); } - } + }) ), /***/ 2992: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var sprintf = __webpack_require__2(3387).sprintf; var glConstants = __webpack_require__2(5171); var shaderName = __webpack_require__2(1848); @@ -73041,12 +73125,12 @@ var Plotly = (() => { short: shortForm.trim() }; } - } + }) ), /***/ 7319: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); var vertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n vec4 startPoint = project(position);\n vec4 endPoint = project(nextPosition);\n\n vec2 A = startPoint.xy / startPoint.w;\n vec2 B = endPoint.xy / endPoint.w;\n\n float clipAngle = atan(\n (B.y - A.y) * screenShape.y,\n (B.x - A.x) * screenShape.x\n );\n\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n sin(clipAngle),\n -cos(clipAngle)\n ) / screenShape;\n\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n worldPosition = position;\n pixelArcLength = arcLength;\n fragColor = color;\n}\n"]); @@ -73065,12 +73149,12 @@ var Plotly = (() => { exports2.createPickShader = function(gl2) { return createShader(gl2, vertSrc, pickFrag, null, ATTRIBUTES); }; - } + }) ), /***/ 5714: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createLinePlot; var createBuffer = __webpack_require__2(2762); @@ -73495,12 +73579,12 @@ var Plotly = (() => { linePlot.update(options); return linePlot; } - } + }) ), /***/ 1903: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(16); @@ -73523,12 +73607,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6864: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(16); @@ -73551,24 +73635,24 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 9921: ( /***/ - function(module2) { + (function(module2) { module2.exports = determinant; function determinant(a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15], b00 = a00 * a11 - a01 * a10, b01 = a00 * a12 - a02 * a10, b02 = a00 * a13 - a03 * a10, b03 = a01 * a12 - a02 * a11, b04 = a01 * a13 - a03 * a11, b05 = a02 * a13 - a03 * a12, b06 = a20 * a31 - a21 * a30, b07 = a20 * a32 - a22 * a30, b08 = a20 * a33 - a23 * a30, b09 = a21 * a32 - a22 * a31, b10 = a21 * a33 - a23 * a31, b11 = a22 * a33 - a23 * a32; return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; } ; - } + }) ), /***/ 7399: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromQuat; function fromQuat(out, q) { var x = q[0], y = q[1], z = q[2], w = q[3], x2 = x + x, y2 = y + y, z2 = z + z, xx = x * x2, yx = y * x2, yy = y * y2, zx = z * x2, zy = z * y2, zz = z * z2, wx = w * x2, wy = w * y2, wz = w * z2; @@ -73591,12 +73675,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6743: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromRotationTranslation; function fromRotationTranslation(out, q, v) { var x = q[0], y = q[1], z = q[2], w = q[3], x2 = x + x, y2 = y + y, z2 = z + z, xx = x * x2, xy = x * y2, xz = x * z2, yy = y * y2, yz = y * z2, zz = z * z2, wx = w * x2, wy = w * y2, wz = w * z2; @@ -73619,12 +73703,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7894: ( /***/ - function(module2) { + (function(module2) { module2.exports = identity; function identity(out) { out[0] = 1; @@ -73646,12 +73730,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7608: ( /***/ - function(module2) { + (function(module2) { module2.exports = invert; function invert(out, a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15], b00 = a00 * a11 - a01 * a10, b01 = a00 * a12 - a02 * a10, b02 = a00 * a13 - a03 * a10, b03 = a01 * a12 - a02 * a11, b04 = a01 * a13 - a03 * a11, b05 = a02 * a13 - a03 * a12, b06 = a20 * a31 - a21 * a30, b07 = a20 * a32 - a22 * a30, b08 = a20 * a33 - a23 * a30, b09 = a21 * a32 - a22 * a31, b10 = a21 * a33 - a23 * a31, b11 = a22 * a33 - a23 * a32, det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; @@ -73678,12 +73762,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6582: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var identity = __webpack_require__2(7894); module2.exports = lookAt; function lookAt(out, eye, center, up) { @@ -73745,12 +73829,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6760: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; @@ -73786,12 +73870,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 4040: ( /***/ - function(module2) { + (function(module2) { module2.exports = ortho; function ortho(out, left, right, bottom, top, near, far) { var lr = 1 / (left - right), bt = 1 / (bottom - top), nf = 1 / (near - far); @@ -73814,12 +73898,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 4772: ( /***/ - function(module2) { + (function(module2) { module2.exports = perspective; function perspective(out, fovy, aspect, near, far) { var f = 1 / Math.tan(fovy / 2), nf = 1 / (near - far); @@ -73842,12 +73926,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6079: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotate; function rotate(out, a, rad, axis) { var x = axis[0], y = axis[1], z = axis[2], len = Math.sqrt(x * x + y * y + z * z), s, c, t, a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23, b00, b01, b02, b10, b11, b12, b20, b21, b22; @@ -73903,12 +73987,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 5567: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateX; function rotateX(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; @@ -73933,12 +74017,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 2408: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateY; function rotateY(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; @@ -73963,12 +74047,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7089: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateZ; function rotateZ(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7]; @@ -73993,12 +74077,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 2504: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, v) { var x = v[0], y = v[1], z = v[2]; @@ -74021,12 +74105,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7656: ( /***/ - function(module2) { + (function(module2) { module2.exports = translate; function translate(out, a, v) { var x = v[0], y = v[1], z = v[2], a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23; @@ -74068,12 +74152,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 5665: ( /***/ - function(module2) { + (function(module2) { module2.exports = transpose; function transpose(out, a) { if (out === a) { @@ -74111,12 +74195,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7626: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var barycentric = __webpack_require__2(2642); var closestPointToTriangle = __webpack_require__2(9346); @@ -74208,12 +74292,12 @@ var Plotly = (() => { } return [closestIndex, interpolate(simplex, weights), weights]; } - } + }) ), /***/ 840: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]); @@ -74279,12 +74363,12 @@ var Plotly = (() => { { name: "position", type: "vec3" } ] }; - } + }) ), /***/ 7201: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DEFAULT_VERTEX_NORMALS_EPSILON = 1e-6; var DEFAULT_FACE_NORMALS_EPSILON = 1e-6; @@ -75260,12 +75344,12 @@ var Plotly = (() => { return mesh; } module2.exports = createSimplicialMesh; - } + }) ), /***/ 4437: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createCamera; var now = __webpack_require__2(3025); @@ -75505,12 +75589,12 @@ var Plotly = (() => { camera.enableMouseListeners(); return camera; } - } + }) ), /***/ 799: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); var vertSrc = glslify(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]); @@ -75518,12 +75602,12 @@ var Plotly = (() => { module2.exports = function(gl2) { return createShader(gl2, vertSrc, fragSrc, null, [{ name: "position", type: "vec2" }]); }; - } + }) ), /***/ 4100: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createCamera = __webpack_require__2(4437); var createAxes = __webpack_require__2(3837); @@ -76219,12 +76303,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 783: ( /***/ - function(module2) { + (function(module2) { module2.exports = slerp; function slerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2], aw = a[3], bx = b[0], by = b[1], bz = b[2], bw = b[3]; @@ -76252,22 +76336,22 @@ var Plotly = (() => { out[3] = scale0 * aw + scale1 * bw; return out; } - } + }) ), /***/ 5964: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function(a) { return !a && a !== 0 ? "" : a.toString(); }; - } + }) ), /***/ 9366: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vectorizeText = __webpack_require__2(4359); module2.exports = getGlyph; @@ -76331,12 +76415,12 @@ var Plotly = (() => { } return fontCache[symbol] = [triSymbol, lineSymbol, bounds]; } - } + }) ), /***/ 1283: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var createShaderWrapper = __webpack_require__2(9405); var glslify = __webpack_require__2(3236); var perspectiveVertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]); @@ -76402,12 +76486,12 @@ var Plotly = (() => { exports2.createPickProject = function(gl2) { return createShader(gl2, pickProject); }; - } + }) ), /***/ 8418: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isAllBlank = __webpack_require__2(5219); var createBuffer = __webpack_require__2(2762); @@ -77138,12 +77222,12 @@ var Plotly = (() => { pointCloud.update(options); return pointCloud; } - } + }) ), /***/ 3589: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSelectBuffer; var createFBO = __webpack_require__2(2260); @@ -77304,12 +77388,12 @@ var Plotly = (() => { var buffer = pool.mallocUint8(width * height * 4); return new SelectBuffer(gl2, fbo, buffer); } - } + }) ), /***/ 9405: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createUniformWrapper = __webpack_require__2(3327); var createAttributeWrapper = __webpack_require__2(8731); @@ -77493,12 +77577,12 @@ var Plotly = (() => { return shader; } module2.exports = createShader; - } + }) ), /***/ 8866: ( /***/ - function(module2) { + (function(module2) { function GLError(rawError, shortMessage, longMessage) { this.shortMessage = shortMessage || ""; this.longMessage = longMessage || ""; @@ -77510,12 +77594,12 @@ var Plotly = (() => { GLError.prototype.name = "GLError"; GLError.prototype.constructor = GLError; module2.exports = GLError; - } + }) ), /***/ 8731: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createAttributeWrapper; var GLError = __webpack_require__2(8866); @@ -77746,12 +77830,12 @@ var Plotly = (() => { } return obj; } - } + }) ), /***/ 3327: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var coallesceUniforms = __webpack_require__2(216); var GLError = __webpack_require__2(8866); @@ -77940,12 +78024,12 @@ var Plotly = (() => { configurable: true }; } - } + }) ), /***/ 216: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = makeReflectTypes; function makeReflectTypes(uniforms, useIndex) { @@ -77996,12 +78080,12 @@ var Plotly = (() => { } return obj; } - } + }) ), /***/ 2145: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.uniforms = runtimeUniforms; exports2.attributes = runtimeAttributes; @@ -78074,12 +78158,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 5091: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; exports2.shader = getShaderReference; exports2.program = createProgram; @@ -78199,12 +78283,12 @@ var Plotly = (() => { function createProgram(gl2, vref, fref, attribs, locations) { return getCache(gl2).getProgram(vref, fref, attribs, locations); } - } + }) ), /***/ 1493: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -78217,12 +78301,12 @@ var Plotly = (() => { { name: "weight", type: "float" } ]); }; - } + }) ), /***/ 4449: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createBuffer = __webpack_require__2(2762); var createVAO = __webpack_require__2(8116); @@ -78394,12 +78478,12 @@ var Plotly = (() => { spikes.update(options); return spikes; } - } + }) ), /***/ 6740: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]); @@ -78424,12 +78508,12 @@ var Plotly = (() => { { name: "vector", type: "vec4" } ] }; - } + }) ), /***/ 7815: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vec3 = __webpack_require__2(2931); var vec4 = __webpack_require__2(9970); @@ -78863,12 +78947,12 @@ var Plotly = (() => { traceType: "streamtube" }); }; - } + }) ), /***/ 990: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var createShader = __webpack_require__2(9405); var glslify = __webpack_require__2(3236); var vertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 localCoordinate = vec3(uv.zw, f.x);\n worldCoordinate = objectOffset + localCoordinate;\n mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));\n vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0);\n vec4 clipPosition = projection * (view * worldPosition);\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n"]); @@ -78915,12 +78999,12 @@ var Plotly = (() => { shader.attributes.f.location = 1; return shader; }; - } + }) ), /***/ 9499: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSurfacePlot; var bits = __webpack_require__2(8828); @@ -80053,12 +80137,12 @@ var Plotly = (() => { surface.update(nparams); return surface; } - } + }) ), /***/ 7766: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ndarray = __webpack_require__2(9618); var ops = __webpack_require__2(5298); @@ -80576,12 +80660,12 @@ var Plotly = (() => { } throw new Error("gl-texture2d: Invalid arguments for texture2d constructor"); } - } + }) ), /***/ 1433: ( /***/ - function(module2) { + (function(module2) { "use strict"; function doBind(gl2, elements, attributes) { if (elements) { @@ -80634,12 +80718,12 @@ var Plotly = (() => { } } module2.exports = doBind; - } + }) ), /***/ 870: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bindAttribs = __webpack_require__2(1433); function VAOEmulated(gl2) { @@ -80673,12 +80757,12 @@ var Plotly = (() => { return new VAOEmulated(gl2); } module2.exports = createVAOEmulated; - } + }) ), /***/ 7518: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bindAttribs = __webpack_require__2(1433); function VertexAttribute(location, dimension, a, b, c, d) { @@ -80755,12 +80839,12 @@ var Plotly = (() => { return new VAONative(gl2, ext, ext.createVertexArrayOES()); } module2.exports = createVAONative; - } + }) ), /***/ 8116: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createVAONative = __webpack_require__2(7518); var createVAOEmulated = __webpack_require__2(870); @@ -80781,12 +80865,12 @@ var Plotly = (() => { return vao; } module2.exports = createVAO; - } + }) ), /***/ 5632: ( /***/ - function(module2) { + (function(module2) { module2.exports = add; function add(out, a, b) { out[0] = a[0] + b[0]; @@ -80794,12 +80878,12 @@ var Plotly = (() => { out[2] = a[2] + b[2]; return out; } - } + }) ), /***/ 8192: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = angle; var fromValues = __webpack_require__2(2825); var normalize = __webpack_require__2(3536); @@ -80816,12 +80900,12 @@ var Plotly = (() => { return Math.acos(cosine); } } - } + }) ), /***/ 9226: ( /***/ - function(module2) { + (function(module2) { module2.exports = ceil; function ceil(out, a) { out[0] = Math.ceil(a[0]); @@ -80829,12 +80913,12 @@ var Plotly = (() => { out[2] = Math.ceil(a[2]); return out; } - } + }) ), /***/ 3126: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(3); @@ -80843,12 +80927,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 3990: ( /***/ - function(module2) { + (function(module2) { module2.exports = copy; function copy(out, a) { out[0] = a[0]; @@ -80856,12 +80940,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 1091: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(3); @@ -80870,12 +80954,12 @@ var Plotly = (() => { out[2] = 0; return out; } - } + }) ), /***/ 5911: ( /***/ - function(module2) { + (function(module2) { module2.exports = cross; function cross(out, a, b) { var ax = a[0], ay = a[1], az = a[2], bx = b[0], by = b[1], bz = b[2]; @@ -80884,37 +80968,37 @@ var Plotly = (() => { out[2] = ax * by - ay * bx; return out; } - } + }) ), /***/ 5455: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(7056); - } + }) ), /***/ 7056: ( /***/ - function(module2) { + (function(module2) { module2.exports = distance; function distance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2]; return Math.sqrt(x * x + y * y + z * z); } - } + }) ), /***/ 4008: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(6690); - } + }) ), /***/ 6690: ( /***/ - function(module2) { + (function(module2) { module2.exports = divide; function divide(out, a, b) { out[0] = a[0] / b[0]; @@ -80922,29 +81006,29 @@ var Plotly = (() => { out[2] = a[2] / b[2]; return out; } - } + }) ), /***/ 244: ( /***/ - function(module2) { + (function(module2) { module2.exports = dot; function dot(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; } - } + }) ), /***/ 2613: ( /***/ - function(module2) { + (function(module2) { module2.exports = 1e-6; - } + }) ), /***/ 9922: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = equals; var EPSILON = __webpack_require__2(2613); function equals(a, b) { @@ -80956,22 +81040,22 @@ var Plotly = (() => { var b2 = b[2]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1, Math.abs(a2), Math.abs(b2)); } - } + }) ), /***/ 9265: ( /***/ - function(module2) { + (function(module2) { module2.exports = exactEquals; function exactEquals(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]; } - } + }) ), /***/ 2681: ( /***/ - function(module2) { + (function(module2) { module2.exports = floor; function floor(out, a) { out[0] = Math.floor(a[0]); @@ -80979,12 +81063,12 @@ var Plotly = (() => { out[2] = Math.floor(a[2]); return out; } - } + }) ), /***/ 5137: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = forEach; var vec = __webpack_require__2(1091)(); function forEach(a, stride, offset, count, fn, arg) { @@ -81011,12 +81095,12 @@ var Plotly = (() => { } return a; } - } + }) ), /***/ 2825: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromValues; function fromValues(x, y, z) { var out = new Float32Array(3); @@ -81025,12 +81109,12 @@ var Plotly = (() => { out[2] = z; return out; } - } + }) ), /***/ 2931: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { EPSILON: __webpack_require__2(2613), create: __webpack_require__2(1091), @@ -81078,12 +81162,12 @@ var Plotly = (() => { rotateZ: __webpack_require__2(8692), forEach: __webpack_require__2(5137) }; - } + }) ), /***/ 811: ( /***/ - function(module2) { + (function(module2) { module2.exports = inverse; function inverse(out, a) { out[0] = 1 / a[0]; @@ -81091,30 +81175,30 @@ var Plotly = (() => { out[2] = 1 / a[2]; return out; } - } + }) ), /***/ 868: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(1387); - } + }) ), /***/ 1387: ( /***/ - function(module2) { + (function(module2) { module2.exports = length; function length(a) { var x = a[0], y = a[1], z = a[2]; return Math.sqrt(x * x + y * y + z * z); } - } + }) ), /***/ 6658: ( /***/ - function(module2) { + (function(module2) { module2.exports = lerp; function lerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2]; @@ -81123,12 +81207,12 @@ var Plotly = (() => { out[2] = az + t * (b[2] - az); return out; } - } + }) ), /***/ 7417: ( /***/ - function(module2) { + (function(module2) { module2.exports = max; function max(out, a, b) { out[0] = Math.max(a[0], b[0]); @@ -81136,12 +81220,12 @@ var Plotly = (() => { out[2] = Math.max(a[2], b[2]); return out; } - } + }) ), /***/ 8107: ( /***/ - function(module2) { + (function(module2) { module2.exports = min; function min(out, a, b) { out[0] = Math.min(a[0], b[0]); @@ -81149,19 +81233,19 @@ var Plotly = (() => { out[2] = Math.min(a[2], b[2]); return out; } - } + }) ), /***/ 4505: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(5847); - } + }) ), /***/ 5847: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { out[0] = a[0] * b[0]; @@ -81169,12 +81253,12 @@ var Plotly = (() => { out[2] = a[2] * b[2]; return out; } - } + }) ), /***/ 5093: ( /***/ - function(module2) { + (function(module2) { module2.exports = negate; function negate(out, a) { out[0] = -a[0]; @@ -81182,12 +81266,12 @@ var Plotly = (() => { out[2] = -a[2]; return out; } - } + }) ), /***/ 3536: ( /***/ - function(module2) { + (function(module2) { module2.exports = normalize; function normalize(out, a) { var x = a[0], y = a[1], z = a[2]; @@ -81200,12 +81284,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 7636: ( /***/ - function(module2) { + (function(module2) { module2.exports = random; function random(out, scale) { scale = scale || 1; @@ -81217,12 +81301,12 @@ var Plotly = (() => { out[2] = z * scale; return out; } - } + }) ), /***/ 6894: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateX; function rotateX(out, a, b, c) { var by = b[1]; @@ -81236,12 +81320,12 @@ var Plotly = (() => { out[2] = bz + py * sc + pz * cc; return out; } - } + }) ), /***/ 109: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateY; function rotateY(out, a, b, c) { var bx = b[0]; @@ -81255,12 +81339,12 @@ var Plotly = (() => { out[2] = bz + pz * cc - px * sc; return out; } - } + }) ), /***/ 8692: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateZ; function rotateZ(out, a, b, c) { var bx = b[0]; @@ -81274,12 +81358,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 2447: ( /***/ - function(module2) { + (function(module2) { module2.exports = round; function round(out, a) { out[0] = Math.round(a[0]); @@ -81287,12 +81371,12 @@ var Plotly = (() => { out[2] = Math.round(a[2]); return out; } - } + }) ), /***/ 6621: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, b) { out[0] = a[0] * b; @@ -81300,12 +81384,12 @@ var Plotly = (() => { out[2] = a[2] * b; return out; } - } + }) ), /***/ 8489: ( /***/ - function(module2) { + (function(module2) { module2.exports = scaleAndAdd; function scaleAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; @@ -81313,12 +81397,12 @@ var Plotly = (() => { out[2] = a[2] + b[2] * scale; return out; } - } + }) ), /***/ 1463: ( /***/ - function(module2) { + (function(module2) { module2.exports = set; function set(out, x, y, z) { out[0] = x; @@ -81326,55 +81410,55 @@ var Plotly = (() => { out[2] = z; return out; } - } + }) ), /***/ 6141: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(2953); - } + }) ), /***/ 5486: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(3066); - } + }) ), /***/ 2953: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredDistance; function squaredDistance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2]; return x * x + y * y + z * z; } - } + }) ), /***/ 3066: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredLength; function squaredLength(a) { var x = a[0], y = a[1], z = a[2]; return x * x + y * y + z * z; } - } + }) ), /***/ 2229: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(6843); - } + }) ), /***/ 6843: ( /***/ - function(module2) { + (function(module2) { module2.exports = subtract; function subtract(out, a, b) { out[0] = a[0] - b[0]; @@ -81382,12 +81466,12 @@ var Plotly = (() => { out[2] = a[2] - b[2]; return out; } - } + }) ), /***/ 492: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat3; function transformMat3(out, a, m) { var x = a[0], y = a[1], z = a[2]; @@ -81396,12 +81480,12 @@ var Plotly = (() => { out[2] = x * m[2] + y * m[5] + z * m[8]; return out; } - } + }) ), /***/ 5673: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat4; function transformMat4(out, a, m) { var x = a[0], y = a[1], z = a[2], w = m[3] * x + m[7] * y + m[11] * z + m[15]; @@ -81411,12 +81495,12 @@ var Plotly = (() => { out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w; return out; } - } + }) ), /***/ 264: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformQuat; function transformQuat(out, a, q) { var x = a[0], y = a[1], z = a[2], qx = q[0], qy = q[1], qz = q[2], qw = q[3], ix = qw * x + qy * z - qz * y, iy = qw * y + qz * x - qx * z, iz = qw * z + qx * y - qy * x, iw = -qx * x - qy * y - qz * z; @@ -81425,12 +81509,12 @@ var Plotly = (() => { out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx; return out; } - } + }) ), /***/ 4361: ( /***/ - function(module2) { + (function(module2) { module2.exports = add; function add(out, a, b) { out[0] = a[0] + b[0]; @@ -81439,12 +81523,12 @@ var Plotly = (() => { out[3] = a[3] + b[3]; return out; } - } + }) ), /***/ 2335: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(4); @@ -81454,12 +81538,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 2933: ( /***/ - function(module2) { + (function(module2) { module2.exports = copy; function copy(out, a) { out[0] = a[0]; @@ -81468,12 +81552,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 7536: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(4); @@ -81483,23 +81567,23 @@ var Plotly = (() => { out[3] = 0; return out; } - } + }) ), /***/ 4691: ( /***/ - function(module2) { + (function(module2) { module2.exports = distance; function distance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2], w = b[3] - a[3]; return Math.sqrt(x * x + y * y + z * z + w * w); } - } + }) ), /***/ 1373: ( /***/ - function(module2) { + (function(module2) { module2.exports = divide; function divide(out, a, b) { out[0] = a[0] / b[0]; @@ -81508,22 +81592,22 @@ var Plotly = (() => { out[3] = a[3] / b[3]; return out; } - } + }) ), /***/ 3750: ( /***/ - function(module2) { + (function(module2) { module2.exports = dot; function dot(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]; } - } + }) ), /***/ 3390: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromValues; function fromValues(x, y, z, w) { var out = new Float32Array(4); @@ -81533,12 +81617,12 @@ var Plotly = (() => { out[3] = w; return out; } - } + }) ), /***/ 9970: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { create: __webpack_require__2(7536), clone: __webpack_require__2(2335), @@ -81566,12 +81650,12 @@ var Plotly = (() => { transformMat4: __webpack_require__2(5352), transformQuat: __webpack_require__2(4041) }; - } + }) ), /***/ 4494: ( /***/ - function(module2) { + (function(module2) { module2.exports = inverse; function inverse(out, a) { out[0] = 1 / a[0]; @@ -81580,23 +81664,23 @@ var Plotly = (() => { out[3] = 1 / a[3]; return out; } - } + }) ), /***/ 6808: ( /***/ - function(module2) { + (function(module2) { module2.exports = length; function length(a) { var x = a[0], y = a[1], z = a[2], w = a[3]; return Math.sqrt(x * x + y * y + z * z + w * w); } - } + }) ), /***/ 2573: ( /***/ - function(module2) { + (function(module2) { module2.exports = lerp; function lerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2], aw = a[3]; @@ -81606,12 +81690,12 @@ var Plotly = (() => { out[3] = aw + t * (b[3] - aw); return out; } - } + }) ), /***/ 160: ( /***/ - function(module2) { + (function(module2) { module2.exports = max; function max(out, a, b) { out[0] = Math.max(a[0], b[0]); @@ -81620,12 +81704,12 @@ var Plotly = (() => { out[3] = Math.max(a[3], b[3]); return out; } - } + }) ), /***/ 2334: ( /***/ - function(module2) { + (function(module2) { module2.exports = min; function min(out, a, b) { out[0] = Math.min(a[0], b[0]); @@ -81634,12 +81718,12 @@ var Plotly = (() => { out[3] = Math.min(a[3], b[3]); return out; } - } + }) ), /***/ 3576: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { out[0] = a[0] * b[0]; @@ -81648,12 +81732,12 @@ var Plotly = (() => { out[3] = a[3] * b[3]; return out; } - } + }) ), /***/ 1498: ( /***/ - function(module2) { + (function(module2) { module2.exports = negate; function negate(out, a) { out[0] = -a[0]; @@ -81662,12 +81746,12 @@ var Plotly = (() => { out[3] = -a[3]; return out; } - } + }) ), /***/ 5177: ( /***/ - function(module2) { + (function(module2) { module2.exports = normalize; function normalize(out, a) { var x = a[0], y = a[1], z = a[2], w = a[3]; @@ -81681,12 +81765,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 9131: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var vecNormalize = __webpack_require__2(5177); var vecScale = __webpack_require__2(9288); module2.exports = random; @@ -81700,12 +81784,12 @@ var Plotly = (() => { vecScale(out, out, scale); return out; } - } + }) ), /***/ 9288: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, b) { out[0] = a[0] * b; @@ -81714,12 +81798,12 @@ var Plotly = (() => { out[3] = a[3] * b; return out; } - } + }) ), /***/ 4844: ( /***/ - function(module2) { + (function(module2) { module2.exports = scaleAndAdd; function scaleAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; @@ -81728,12 +81812,12 @@ var Plotly = (() => { out[3] = a[3] + b[3] * scale; return out; } - } + }) ), /***/ 4578: ( /***/ - function(module2) { + (function(module2) { module2.exports = set; function set(out, x, y, z, w) { out[0] = x; @@ -81742,34 +81826,34 @@ var Plotly = (() => { out[3] = w; return out; } - } + }) ), /***/ 7960: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredDistance; function squaredDistance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2], w = b[3] - a[3]; return x * x + y * y + z * z + w * w; } - } + }) ), /***/ 483: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredLength; function squaredLength(a) { var x = a[0], y = a[1], z = a[2], w = a[3]; return x * x + y * y + z * z + w * w; } - } + }) ), /***/ 6860: ( /***/ - function(module2) { + (function(module2) { module2.exports = subtract; function subtract(out, a, b) { out[0] = a[0] - b[0]; @@ -81778,12 +81862,12 @@ var Plotly = (() => { out[3] = a[3] - b[3]; return out; } - } + }) ), /***/ 5352: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat4; function transformMat4(out, a, m) { var x = a[0], y = a[1], z = a[2], w = a[3]; @@ -81793,12 +81877,12 @@ var Plotly = (() => { out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; return out; } - } + }) ), /***/ 4041: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformQuat; function transformQuat(out, a, q) { var x = a[0], y = a[1], z = a[2], qx = q[0], qy = q[1], qz = q[2], qw = q[3], ix = qw * x + qy * z - qz * y, iy = qw * y + qz * x - qx * z, iz = qw * z + qx * y - qy * x, iw = -qx * x - qy * y - qz * z; @@ -81808,12 +81892,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 1848: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var tokenize = __webpack_require__2(4905); var atob2 = __webpack_require__2(6468); module2.exports = getName; @@ -81830,12 +81914,12 @@ var Plotly = (() => { return (b64 ? atob2(name2) : name2).trim(); } } - } + }) ), /***/ 5874: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = tokenize; var literals100 = __webpack_require__2(620), operators = __webpack_require__2(7827), builtins100 = __webpack_require__2(6852), literals300es = __webpack_require__2(7932), builtins300es = __webpack_require__2(3508); var NORMAL = 999, TOKEN = 9999, BLOCK_COMMENT = 0, LINE_COMMENT = 1, PREPROCESSOR = 2, OPERATOR = 3, INTEGER = 4, FLOAT = 5, IDENT = 6, BUILTIN = 7, KEYWORD = 8, WHITESPACE = 9, EOF = 10, HEX = 11; @@ -82144,12 +82228,12 @@ var Plotly = (() => { return i + 1; } } - } + }) ), /***/ 3508: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var v100 = __webpack_require__2(6852); v100 = v100.slice().filter(function(b) { return !/^(gl\_|texture)/.test(b); @@ -82212,12 +82296,12 @@ var Plotly = (() => { "textureProjGrad", "textureProjGradOffset" ]); - } + }) ), /***/ 6852: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ // Keep this list sorted "abs", @@ -82368,12 +82452,12 @@ var Plotly = (() => { "texture2DProjGradEXT", "textureCubeGradEXT" ]; - } + }) ), /***/ 7932: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var v100 = __webpack_require__2(620); module2.exports = v100.slice().concat([ "layout", @@ -82460,12 +82544,12 @@ var Plotly = (() => { "isampler2DMSArray", "usampler2DMSArray" ]); - } + }) ), /***/ 620: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ // current "precision", @@ -82558,12 +82642,12 @@ var Plotly = (() => { "namespace", "using" ]; - } + }) ), /***/ 7827: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ "<<=", ">>=", @@ -82611,12 +82695,12 @@ var Plotly = (() => { "{", "}" ]; - } + }) ), /***/ 4905: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var tokenize = __webpack_require__2(5874); module2.exports = tokenizeString; function tokenizeString(str, opt) { @@ -82626,12 +82710,12 @@ var Plotly = (() => { tokens = tokens.concat(generator(null)); return tokens; } - } + }) ), /***/ 3236: ( /***/ - function(module2) { + (function(module2) { module2.exports = function(strings) { if (typeof strings === "string") strings = [strings]; var exprs = [].slice.call(arguments, 1); @@ -82642,12 +82726,12 @@ var Plotly = (() => { parts.push(strings[i]); return parts.join(""); }; - } + }) ), /***/ 7520: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isBrowser = __webpack_require__2(9507); function detect() { @@ -82666,12 +82750,12 @@ var Plotly = (() => { return supported; } module2.exports = isBrowser && detect(); - } + }) ), /***/ 3778: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { exports2.read = function(buffer, offset, isLE, mLen, nBytes) { var e, m; var eLen = nBytes * 8 - mLen - 1; @@ -82749,12 +82833,12 @@ var Plotly = (() => { } buffer[offset + i - d] |= s * 128; }; - } + }) ), /***/ 8954: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = incrementalConvexHull; var orient = __webpack_require__2(3250); @@ -83106,12 +83190,12 @@ var Plotly = (() => { } return triangles.boundary(); } - } + }) ), /***/ 3352: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bounds = __webpack_require__2(2478); var NOT_FOUND = 0; @@ -83461,19 +83545,19 @@ var Plotly = (() => { } return new IntervalTree(createIntervalTree(intervals)); } - } + }) ), /***/ 9507: ( /***/ - function(module2) { + (function(module2) { module2.exports = true; - } + }) ), /***/ 7163: ( /***/ - function(module2) { + (function(module2) { module2.exports = function(obj) { return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer); }; @@ -83483,12 +83567,12 @@ var Plotly = (() => { function isSlowBuffer(obj) { return typeof obj.readFloatLE === "function" && typeof obj.slice === "function" && isBuffer(obj.slice(0, 0)); } - } + }) ), /***/ 5219: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function(str) { var l = str.length, a; @@ -83500,22 +83584,22 @@ var Plotly = (() => { } return true; }; - } + }) ), /***/ 395: ( /***/ - function(module2) { + (function(module2) { function lerp(v0, v1, t) { return v0 * (1 - t) + v1 * t; } module2.exports = lerp; - } + }) ), /***/ 2652: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var normalize = __webpack_require__2(4335); var create = __webpack_require__2(6864); var clone = __webpack_require__2(1903); @@ -83626,12 +83710,12 @@ var Plotly = (() => { out[1] = a[1] * scale1 + b[1] * scale2; out[2] = a[2] * scale1 + b[2] * scale2; } - } + }) ), /***/ 4335: ( /***/ - function(module2) { + (function(module2) { module2.exports = function normalize(out, mat) { var m44 = mat[15]; if (m44 === 0) @@ -83641,12 +83725,12 @@ var Plotly = (() => { out[i] = mat[i] * scale; return true; }; - } + }) ), /***/ 7442: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var lerp = __webpack_require__2(6658); var recompose = __webpack_require__2(7182); var decompose = __webpack_require__2(2652); @@ -83686,12 +83770,12 @@ var Plotly = (() => { function vec4() { return [0, 0, 0, 1]; } - } + }) ), /***/ 7182: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var mat4 = { identity: __webpack_require__2(7894), translate: __webpack_require__2(7656), @@ -83727,12 +83811,12 @@ var Plotly = (() => { mat4.scale(matrix, matrix, scale); return matrix; }; - } + }) ), /***/ 1811: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); var m4interp = __webpack_require__2(7442); @@ -83922,12 +84006,12 @@ var Plotly = (() => { ]; return new MatrixCameraController(matrix); } - } + }) ), /***/ 3090: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = monotoneConvexHull2D; var orient = __webpack_require__2(3250)[3]; @@ -83990,12 +84074,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 351: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = mouseListen; var mouse = __webpack_require__2(4687); @@ -84167,12 +84251,12 @@ var Plotly = (() => { }); return result; } - } + }) ), /***/ 24: ( /***/ - function(module2) { + (function(module2) { var rootPosition = { left: 0, top: 0 }; module2.exports = mouseEventOffset; function mouseEventOffset(ev, target, out) { @@ -84194,12 +84278,12 @@ var Plotly = (() => { return element.getBoundingClientRect(); } } - } + }) ), /***/ 4687: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; function mouseButtons(ev) { if (typeof ev === "object") { @@ -84256,12 +84340,12 @@ var Plotly = (() => { return 0; } exports2.y = mouseRelativeY; - } + }) ), /***/ 8512: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toPX = __webpack_require__2(665); module2.exports = mouseWheelListen; @@ -84299,12 +84383,12 @@ var Plotly = (() => { element.addEventListener("wheel", listener); return listener; } - } + }) ), /***/ 2640: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); module2.exports = createSurfaceExtractor; @@ -84613,12 +84697,12 @@ var Plotly = (() => { typesig ); } - } + }) ), /***/ 6199: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var dup = __webpack_require__2(1338); var CACHED_CWiseOp = { @@ -84829,12 +84913,12 @@ var Plotly = (() => { var cached = generateGradient(bc); return cached(out, inp); }; - } + }) ), /***/ 4317: ( /***/ - function(module2) { + (function(module2) { "use strict"; function interp1d(arr, x) { var ix = Math.floor(x), fx = x - ix, s0 = 0 <= ix && ix < arr.shape[0], s1 = 0 <= ix + 1 && ix + 1 < arr.shape[0], w0 = s0 ? +arr.get(ix) : 0, w1 = s1 ? +arr.get(ix + 1) : 0; @@ -84899,12 +84983,12 @@ var Plotly = (() => { module2.exports.d1 = interp1d; module2.exports.d2 = interp2d; module2.exports.d3 = interp3d; - } + }) ), /***/ 5298: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; var CACHED_CWiseOp = { "float64,2,1,0": function() { @@ -85252,12 +85336,12 @@ var Plotly = (() => { exports2.assign = makeOp({ funcName: "assign" }); - } + }) ), /***/ 9994: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ndarray = __webpack_require__2(9618); var do_convert = __webpack_require__2(8277); @@ -85277,12 +85361,12 @@ var Plotly = (() => { do_convert(result, arr); return result; }; - } + }) ), /***/ 8277: ( /***/ - function(module2) { + (function(module2) { "use strict"; function CwiseOp() { return function(SS, a0, t0, p0, Y0) { @@ -85343,12 +85427,12 @@ var Plotly = (() => { module2.exports = compileCwise({ funcName: "convert" }); - } + }) ), /***/ 7640: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); function getMallocFree(dtype) { @@ -86026,12 +86110,12 @@ var Plotly = (() => { return result(insertionSort, quickSort); } module2.exports = compileSort; - } + }) ), /***/ 446: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compile = __webpack_require__2(7640); var CACHE = {}; @@ -86048,12 +86132,12 @@ var Plotly = (() => { return array; } module2.exports = sort; - } + }) ), /***/ 9618: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var isBuffer = __webpack_require__2(7163); var hasTypedArrays = typeof Float64Array !== "undefined"; function compare1st(a, b) { @@ -86888,12 +86972,12 @@ var Plotly = (() => { return ctor(data, shape, stride, offset); } module2.exports = wrappedNDArrayCtor; - } + }) ), /***/ 1278: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var doubleBits = __webpack_require__2(2361); var SMALLEST_DENORM = Math.pow(2, -1074); @@ -86932,12 +87016,12 @@ var Plotly = (() => { } return doubleBits.pack(lo, hi); } - } + }) ), /***/ 8406: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { var DEFAULT_NORMALS_EPSILON = 1e-6; var DEFAULT_FACE_EPSILON = 1e-6; exports2.vertexNormals = function(faces, positions, specifiedEpsilon) { @@ -87035,12 +87119,12 @@ var Plotly = (() => { } return normals; }; - } + }) ), /***/ 4081: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = quatFromFrame; function quatFromFrame(out, rx, ry, rz, ux, uy, uz, fx, fy, fz) { @@ -87073,12 +87157,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 9977: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createOrbitController; var filterVector = __webpack_require__2(9215); @@ -87428,24 +87512,24 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 1371: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var repeat = __webpack_require__2(3233); module2.exports = function padLeft(str, num, ch) { ch = typeof ch !== "undefined" ? ch + "" : " "; return repeat(ch, num) + str; }; - } + }) ), /***/ 3202: ( /***/ - function(module2) { + (function(module2) { module2.exports = function parseUnit(str, out) { if (!out) out = [0, ""]; @@ -87455,12 +87539,12 @@ var Plotly = (() => { out[1] = str.match(/[\d.\-\+]*\s*(.*)/)[1] || ""; return out; }; - } + }) ), /***/ 3088: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = planarDual; var compareAngle = __webpack_require__2(3140); @@ -87574,12 +87658,12 @@ var Plotly = (() => { } return cycles; } - } + }) ), /***/ 5609: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = trimLeaves; var e2a = __webpack_require__2(3134); @@ -87627,12 +87711,12 @@ var Plotly = (() => { } return [nedges, npositions]; } - } + }) ), /***/ 2095: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = planarGraphToPolyline; var e2a = __webpack_require__2(3134); @@ -87809,12 +87893,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 5085: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = preprocessPolygon; var orient = __webpack_require__2(3250)[3]; var makeSlabs = __webpack_require__2(4209); @@ -87950,12 +88034,12 @@ var Plotly = (() => { ); } } - } + }) ), /***/ 9346: ( /***/ - function(module2) { + (function(module2) { "use strict"; var diff = new Float64Array(4); var edge0 = new Float64Array(4); @@ -88129,19 +88213,19 @@ var Plotly = (() => { return sqrDistance; } module2.exports = closestPoint2d; - } + }) ), /***/ 8648: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(783); - } + }) ), /***/ 2653: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnadd = __webpack_require__2(3865); module2.exports = add; @@ -88153,12 +88237,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 5838: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = float2rat; var rat = __webpack_require__2(7842); @@ -88169,12 +88253,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 8987: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rat = __webpack_require__2(7842); var mul = __webpack_require__2(6504); @@ -88188,12 +88272,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 544: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnsub = __webpack_require__2(5572); module2.exports = sub; @@ -88205,12 +88289,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 5771: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compareCell = __webpack_require__2(8507); var compareOrientedCell = __webpack_require__2(3788); @@ -88238,12 +88322,12 @@ var Plotly = (() => { cells.length = ptr; return cells; } - } + }) ), /***/ 3233: ( /***/ - function(module2) { + (function(module2) { "use strict"; var res = ""; var cache; @@ -88272,23 +88356,23 @@ var Plotly = (() => { res = res.substr(0, max); return res; } - } + }) ), /***/ 3025: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2.g.performance && __webpack_require__2.g.performance.now ? function now() { return performance.now(); } : Date.now || function now() { return +/* @__PURE__ */ new Date(); }; - } + }) ), /***/ 7004: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = compressExpansion; function compressExpansion(e) { @@ -88321,12 +88405,12 @@ var Plotly = (() => { e.length = top; return e; } - } + }) ), /***/ 2962: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -88396,12 +88480,12 @@ var Plotly = (() => { } } generateDispatch(); - } + }) ), /***/ 1944: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -88413,12 +88497,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 2646: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -88607,12 +88691,12 @@ var Plotly = (() => { } } generateInSphereTest(); - } + }) ), /***/ 727: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var determinant = __webpack_require__2(2962); var NUM_EXPAND = 6; @@ -88689,12 +88773,12 @@ var Plotly = (() => { } } generateDispatch(); - } + }) ), /***/ 3250: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -88834,12 +88918,12 @@ var Plotly = (() => { } } generateOrientationProc(); - } + }) ), /***/ 5382: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var robustSum = __webpack_require__2(8210); var robustScale = __webpack_require__2(3012); @@ -88866,12 +88950,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 3012: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var twoSum = __webpack_require__2(9362); @@ -88919,12 +89003,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 1125: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = segmentsIntersect; var orient = __webpack_require__2(3250)[3]; @@ -88960,12 +89044,12 @@ var Plotly = (() => { } return true; } - } + }) ), /***/ 8545: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = robustSubtract; function scalarScalar(a, b) { @@ -89118,12 +89202,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 8210: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = linearExpansionSum; function scalarScalar(a, b) { @@ -89276,12 +89360,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 9127: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boundary; var bnd = __webpack_require__2(6204); @@ -89289,12 +89373,12 @@ var Plotly = (() => { function boundary(cells) { return reduce(bnd(cells)); } - } + }) ), /***/ 7765: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = extractContour; var ndarray = __webpack_require__2(9618); @@ -89428,12 +89512,12 @@ var Plotly = (() => { vertexWeights: uweights }; } - } + }) ), /***/ 1570: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = getPolygonizer; var allFns = [ @@ -89706,12 +89790,12 @@ var Plotly = (() => { function getPolygonizer(d) { return allFns[d](); } - } + }) ), /***/ 6803: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var __webpack_unused_export__; "use restrict"; @@ -90004,12 +90088,12 @@ var Plotly = (() => { return connectedComponents_sparse(cells); } __webpack_unused_export__ = connectedComponents; - } + }) ), /***/ 3105: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; "use restrict"; var INT_BITS = 32; @@ -90159,12 +90243,12 @@ var Plotly = (() => { var t = v | v - 1; return t + 1 | (~t & -~t) - 1 >>> countTrailingZeros(v) + 1; }; - } + }) ), /***/ 2014: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; "use restrict"; var bits = __webpack_require__2(3105), UnionFind = __webpack_require__2(4623); @@ -90456,12 +90540,12 @@ var Plotly = (() => { return connectedComponents_sparse(cells); } exports2.connectedComponents = connectedComponents; - } + }) ), /***/ 4623: ( /***/ - function(module2) { + (function(module2) { "use strict"; "use restrict"; module2.exports = UnionFind; @@ -90506,12 +90590,12 @@ var Plotly = (() => { ++ranks[xr]; } }; - } + }) ), /***/ 5878: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = simplifyPolygon; var orient = __webpack_require__2(3250); @@ -90736,12 +90820,12 @@ var Plotly = (() => { edges: ncells }; } - } + }) ), /***/ 1303: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = orderSegments; var orient = __webpack_require__2(3250); @@ -90833,12 +90917,12 @@ var Plotly = (() => { } return ar[0] - br[0]; } - } + }) ), /***/ 4209: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSlabDecomposition; var bounds = __webpack_require__2(2478); @@ -91060,12 +91144,12 @@ var Plotly = (() => { } return new SlabDecomposition(slabs, lines, horizontal); } - } + }) ), /***/ 5202: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var robustDot = __webpack_require__2(1944); var robustSum = __webpack_require__2(8210); @@ -91148,14 +91232,14 @@ var Plotly = (() => { } return neg; } - } + }) ), /***/ 3387: ( /***/ - function(module2, exports2, __webpack_require__2) { + (function(module2, exports2, __webpack_require__2) { var __WEBPACK_AMD_DEFINE_RESULT__; - !function() { + !(function() { "use strict"; var re = { not_string: /[^s]/, @@ -91343,21 +91427,21 @@ var Plotly = (() => { window["sprintf"] = sprintf; window["vsprintf"] = vsprintf; if (true) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = function() { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return { "sprintf": sprintf, "vsprintf": vsprintf }; - }.call(exports2, __webpack_require__2, exports2, module2), __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + }).call(exports2, __webpack_require__2, exports2, module2), __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } - }(); - } + })(); + }) ), /***/ 3711: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = surfaceNets; var generateContourExtractor = __webpack_require__2(2640); @@ -91476,12 +91560,12 @@ var Plotly = (() => { } return proc(array, level); } - } + }) ), /***/ 665: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var parseUnit = __webpack_require__2(3202); module2.exports = toPX; @@ -91535,12 +91619,12 @@ var Plotly = (() => { } return 1; } - } + }) ), /***/ 7261: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createTurntableController; var filterVector = __webpack_require__2(9215); @@ -92028,12 +92112,12 @@ var Plotly = (() => { phi ); } - } + }) ), /***/ 5250: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = twoProduct; var SPLITTER = +(Math.pow(2, 27) + 1); @@ -92058,12 +92142,12 @@ var Plotly = (() => { } return [y, x]; } - } + }) ), /***/ 9362: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = fastTwoSum; function fastTwoSum(a, b, result) { @@ -92079,12 +92163,12 @@ var Plotly = (() => { } return [ar + br, x]; } - } + }) ), /***/ 1888: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var bits = __webpack_require__2(8828); var dup = __webpack_require__2(1338); @@ -92291,12 +92375,12 @@ var Plotly = (() => { BUFFER[i].length = 0; } }; - } + }) ), /***/ 1755: ( /***/ - function(module2) { + (function(module2) { "use strict"; "use restrict"; module2.exports = UnionFind; @@ -92348,12 +92432,12 @@ var Plotly = (() => { ++ranks[xr]; } }; - } + }) ), /***/ 1682: ( /***/ - function(module2) { + (function(module2) { "use strict"; function unique_pred(list, compare) { var ptr = 1, len = list.length, a = list[0], b = list[0]; @@ -92403,12 +92487,12 @@ var Plotly = (() => { return unique_eq(list); } module2.exports = unique; - } + }) ), /***/ 4359: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createText; var vectorizeText = __webpack_require__2(7718); @@ -92431,12 +92515,12 @@ var Plotly = (() => { options ); } - } + }) ), /***/ 7718: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = vectorizeText; module2.exports.processPixels = processPixels; var surfaceNets = __webpack_require__2(3711); @@ -92794,12 +92878,12 @@ var Plotly = (() => { var pixels = getPixels(canvas, context, str, size, lineSpacing, styletags); return processPixels(pixels, options, size); } - } + }) ), /***/ 1538: ( /***/ - function(module2) { + (function(module2) { (function WeakMapModule() { "use strict"; if (typeof ses !== "undefined" && ses.ok && !ses.ok()) { @@ -93128,12 +93212,12 @@ var Plotly = (() => { module2.exports = OurWeakMap; } })(); - } + }) ), /***/ 236: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var hiddenStore = __webpack_require__2(8284); module2.exports = createStore; function createStore() { @@ -93146,12 +93230,12 @@ var Plotly = (() => { return store && store.identity === key ? store : hiddenStore(obj, key); }; } - } + }) ), /***/ 8284: ( /***/ - function(module2) { + (function(module2) { module2.exports = hiddenStore; function hiddenStore(obj, key) { var store = { identity: key }; @@ -93164,12 +93248,12 @@ var Plotly = (() => { }); return store; } - } + }) ), /***/ 606: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var createStore = __webpack_require__2(236); module2.exports = weakMap; function weakMap() { @@ -93191,12 +93275,12 @@ var Plotly = (() => { } }; } - } + }) ), /***/ 3349: ( /***/ - function(module2) { + (function(module2) { "use strict"; function CWiseOp() { return function(SS, a0, t0, p0, Y0, Y1) { @@ -93241,12 +93325,12 @@ var Plotly = (() => { module2.exports = compileCwise({ funcName: "zeroCrossings" }); - } + }) ), /***/ 781: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = findZeroCrossings; var core = __webpack_require__2(3349); @@ -93256,13 +93340,13 @@ var Plotly = (() => { core(array.hi(array.shape[0] - 1), cross, level); return cross; } - } + }) ), /***/ 7790: ( /***/ - function() { - } + (function() { + }) ) /******/ }; @@ -93285,23 +93369,23 @@ var Plotly = (() => { module2.loaded = true; return module2.exports; } - !function() { - __webpack_require__.g = function() { + !(function() { + __webpack_require__.g = (function() { if (typeof globalThis === "object") return globalThis; try { return this || new Function("return this")(); } catch (e) { if (typeof window === "object") return window; } - }(); - }(); - !function() { + })(); + })(); + !(function() { __webpack_require__.nmd = function(module2) { module2.paths = []; if (!module2.children) module2.children = []; return module2; }; - }(); + })(); var __webpack_exports__ = __webpack_require__(1964); module.exports = __webpack_exports__; })(); diff --git a/dist/plotly-gl3d.min.js b/dist/plotly-gl3d.min.js index 339199d6121..7c0f7b11ee1 100644 --- a/dist/plotly-gl3d.min.js +++ b/dist/plotly-gl3d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d - minified) v3.6.0 +* plotly.js (gl3d - minified) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,14 +12,14 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var qB=Object.defineProperty,OB=Object.defineProperties;var BB=Object.getOwnPropertyDescriptors;var pb=Object.getOwnPropertySymbols;var UB=Object.prototype.hasOwnProperty,HB=Object.prototype.propertyIsEnumerable;var gb=(e,r,t)=>r in e?qB(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Cl=(e,r)=>{for(var t in r||(r={}))UB.call(r,t)&&gb(e,t,r[t]);if(pb)for(var t of pb(r))HB.call(r,t)&&gb(e,t,r[t]);return e},Ec=(e,r)=>OB(e,BB(r));var be=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Lc=be(yb=>{"use strict";yb.version="3.6.0"});var xb=be((mb,Dc)=>{(function(r,t,n){t[r]=t[r]||n(),typeof Dc!="undefined"&&Dc.exports&&(Dc.exports=t[r])})("Promise",typeof window!="undefined"?window:mb,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,x,M){return Object.defineProperty(k,S,{value:x,writable:!0,configurable:M!==!1})}}catch(m){r=function(S,x,M){return S[x]=M,S}}n=function(){var k,S,x;function M(v,w){this.fn=v,this.self=w,this.next=void 0}return{add:function(w,g){x=new M(w,g),S?S.next=x:k=x,S=x,x=void 0},drain:function(){var w=k;for(k=S=t=void 0;w;)w.fn.call(w.self),w=w.next}}}();function i(m,k){n.add(m,k),t||(t=o(n.drain))}function l(m){var k,S=typeof m;return m!=null&&(S=="object"||S=="function")&&(k=m.then),typeof k=="function"?k:!1}function u(){for(var m=0;m0&&i(u,S))}catch(x){h.call(new _(S),x)}}}function h(m){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=m,k.state=2,k.chain.length>0&&i(u,k))}function p(m,k,S,x){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(z){for(var U=z.length,G=new Array(U);U--;)G[U]=z[U];return G}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(z,U){l.call(this,z,U+"")},i.setAttributeNS=function(z,U,G){u.call(this,z,U,G+"")},s.setProperty=function(z,U,G){f.call(this,z,U+"",G)}}e.ascending=h;function h(C,z){return Cz?1:C>=z?0:NaN}e.descending=function(C,z){return zC?1:z>=C?0:NaN},e.min=function(C,z){var U=-1,G=C.length,W,K;if(arguments.length===1){for(;++U=K){W=K;break}for(;++UK&&(W=K)}else{for(;++U=K){W=K;break}for(;++UK&&(W=K)}return W},e.max=function(C,z){var U=-1,G=C.length,W,K;if(arguments.length===1){for(;++U=K){W=K;break}for(;++UW&&(W=K)}else{for(;++U=K){W=K;break}for(;++UW&&(W=K)}return W},e.extent=function(C,z){var U=-1,G=C.length,W,K,fe;if(arguments.length===1){for(;++U=K){W=fe=K;break}for(;++UK&&(W=K),fe=K){W=fe=K;break}for(;++UK&&(W=K),fe1)return fe/(he-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function y(C){return{left:function(z,U,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[K],U)<0?G=K+1:W=K}return G},right:function(z,U,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[K],U)>0?W=K:G=K+1}return G}}}var b=y(h);e.bisectLeft=b.left,e.bisect=e.bisectRight=b.right,e.bisector=function(C){return y(C.length===1?function(z,U){return h(C(z),U)}:C)},e.shuffle=function(C,z,U){(G=arguments.length)<3&&(U=C.length,G<2&&(z=0));for(var G=U-z,W,K;G;)K=Math.random()*G--|0,W=C[G+z],C[G+z]=C[K+z],C[K+z]=W;return C},e.permute=function(C,z){for(var U=z.length,G=new Array(U);U--;)G[U]=C[z[U]];return G},e.pairs=function(C){for(var z=0,U=C.length-1,G,W=C[0],K=new Array(U<0?0:U);z=0;)for(fe=C[z],U=fe.length;--U>=0;)K[--W]=fe[U];return K};var m=Math.abs;e.range=function(C,z,U){if(arguments.length<3&&(U=1,arguments.length<2&&(z=C,C=0)),(z-C)/U===1/0)throw new Error("infinite range");var G=[],W=k(m(U)),K=-1,fe;if(C*=W,z*=W,U*=W,U<0)for(;(fe=C+U*++K)>z;)G.push(fe/W);else for(;(fe=C+U*++K)=z.length)return W?W.call(C,he):G?he.sort(G):he;for(var Te=-1,Re=he.length,Pe=z[we++],Ge,Je,Ne,qe=new x,Ue;++Te=z.length)return le;var we=[],Te=U[he++];return le.forEach(function(Re,Pe){we.push({key:Re,values:fe(Pe,he)})}),Te?we.sort(function(Re,Pe){return Te(Re.key,Pe.key)}):we}return C.map=function(le,he){return K(he,le,0)},C.entries=function(le){return fe(K(e.map,le,0),0)},C.key=function(le){return z.push(le),C},C.sortKeys=function(le){return U[z.length-1]=le,C},C.sortValues=function(le){return G=le,C},C.rollup=function(le){return W=le,C},C},e.set=function(C){var z=new R;if(C)for(var U=0,G=C.length;U=0&&(G=C.slice(U+1),C=C.slice(0,U)),C)return arguments.length<2?this[C].on(G):this[C].on(G,z);if(arguments.length===2){if(z==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(G,null);return this}};function B(C){var z=[],U=new x;function G(){for(var W=z,K=-1,fe=W.length,le;++K=0&&(U=C.slice(0,z))!=="xmlns"&&(C=C.slice(z+1)),ne.hasOwnProperty(U)?{space:ne[U],local:C}:C}},j.attr=function(C,z){if(arguments.length<2){if(typeof C=="string"){var U=this.node();return C=e.ns.qualify(C),C.local?U.getAttributeNS(C.space,C.local):U.getAttribute(C)}for(z in C)this.each(ue(z,C[z]));return this}return this.each(ue(C,z))};function ue(C,z){C=e.ns.qualify(C);function U(){this.removeAttribute(C)}function G(){this.removeAttributeNS(C.space,C.local)}function W(){this.setAttribute(C,z)}function K(){this.setAttributeNS(C.space,C.local,z)}function fe(){var he=z.apply(this,arguments);he==null?this.removeAttribute(C):this.setAttribute(C,he)}function le(){var he=z.apply(this,arguments);he==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,he)}return z==null?C.local?G:U:typeof z=="function"?C.local?le:fe:C.local?K:W}function ye(C){return C.trim().replace(/\s+/g," ")}j.classed=function(C,z){if(arguments.length<2){if(typeof C=="string"){var U=this.node(),G=(C=Me(C)).length,W=-1;if(z=U.classList){for(;++W=0;)(K=U[G])&&(W&&W!==K.nextSibling&&W.parentNode.insertBefore(K,W),W=K);return this},j.sort=function(C){C=ce.apply(this,arguments);for(var z=-1,U=this.length;++z=z&&(z=W+1);!(he=fe[z])&&++z0&&(C=C.slice(0,W));var fe=_e.get(C);fe&&(C=fe,K=Ie);function le(){var Te=this[G];Te&&(this.removeEventListener(C,Te,Te.$),delete this[G])}function he(){var Te=K(z,t(arguments));le.call(this),this.addEventListener(C,this[G]=Te,Te.$=U),Te._=z}function we(){var Te=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Re;for(var Pe in this)if(Re=Pe.match(Te)){var Ge=this[Pe];this.removeEventListener(Re[1],Ge,Ge.$),delete this[Pe]}}return W?z?he:le:z?P:we}var _e=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&_e.forEach(function(C){"on"+C in n&&_e.remove(C)});function Ae(C,z){return function(U){var G=e.event;e.event=U,z[0]=this.__data__;try{C.apply(this,z)}finally{e.event=G}}}function Ie(C,z){var U=Ae(C,z);return function(G){var W=this,K=G.relatedTarget;(!K||K!==W&&!(K.compareDocumentPosition(W)&8))&&U.call(W,G)}}var De,We=0;function Oe(C){var z=".dragsuppress-"+ ++We,U="click"+z,G=e.select(o(C)).on("touchmove"+z,X).on("dragstart"+z,X).on("selectstart"+z,X);if(De==null&&(De="onselectstart"in C?!1:F(C.style,"userSelect")),De){var W=a(C).style,K=W[De];W[De]="none"}return function(fe){if(G.on(z,null),De&&(W[De]=K),fe){var le=function(){G.on(U,null)};G.on(U,function(){X(),le()},!0),setTimeout(le,0)}}}e.mouse=function(C){return Be(C,$())};var ze=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Be(C,z){z.changedTouches&&(z=z.changedTouches[0]);var U=C.ownerSVGElement||C;if(U.createSVGPoint){var G=U.createSVGPoint();if(ze<0){var W=o(C);if(W.scrollX||W.scrollY){U=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var K=U[0][0].getScreenCTM();ze=!(K.f||K.e),U.remove()}}return ze?(G.x=z.pageX,G.y=z.pageY):(G.x=z.clientX,G.y=z.clientY),G=G.matrixTransform(C.getScreenCTM().inverse()),[G.x,G.y]}var fe=C.getBoundingClientRect();return[z.clientX-fe.left-C.clientLeft,z.clientY-fe.top-C.clientTop]}e.touch=function(C,z,U){if(arguments.length<3&&(U=z,z=$().changedTouches),z){for(var G=0,W=z.length,K;G0?1:C<0?-1:0}function wr(C,z,U){return(z[0]-C[0])*(U[1]-C[1])-(z[1]-C[1])*(U[0]-C[0])}function $r(C){return C>1?0:C<-1?Xe:Math.acos(C)}function _r(C){return C>1?je:C<-1?-je:Math.asin(C)}function Nr(C){return((C=Math.exp(C))-1/C)/2}function et(C){return((C=Math.exp(C))+1/C)/2}function Sr(C){return((C=Math.exp(2*C))-1)/(C+1)}function qr(C){return(C=Math.sin(C/2))*C}var gt=Math.SQRT2,Hr=2,Zr=4;e.interpolateZoom=function(C,z){var U=C[0],G=C[1],W=C[2],K=z[0],fe=z[1],le=z[2],he=K-U,we=fe-G,Te=he*he+we*we,Re,Pe;if(Te0&&(sr=sr.transition().duration(fe)),sr.call(Ke.event)}function pr(){qe&&qe.domain(Ne.range().map(function(sr){return(sr-C.x)/C.k}).map(Ne.invert)),Ze&&Ze.domain(Ue.range().map(function(sr){return(sr-C.y)/C.k}).map(Ue.invert))}function gr(sr){le++||sr({type:"zoomstart"})}function Fr(sr){pr(),sr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function mr(sr){--le||(sr({type:"zoomend"}),U=null)}function Cr(){var sr=this,Ir=Je.of(sr,arguments),Or=0,ft=e.select(o(sr)).on(we,wn).on(Te,zn),Ft=Ve(e.mouse(sr)),rn=Oe(sr);Ac.call(sr),gr(Ir);function wn(){Or=1,dr(e.mouse(sr),Ft),Fr(Ir)}function zn(){ft.on(we,null).on(Te,null),rn(Or),mr(Ir)}}function ut(){var sr=this,Ir=Je.of(sr,arguments),Or={},ft=0,Ft,rn=".zoom-"+e.event.changedTouches[0].identifier,wn="touchmove"+rn,zn="touchend"+rn,Xn=[],qn=e.select(sr),ra=Oe(sr);ta(),gr(Ir),qn.on(he,null).on(Pe,ta);function kn(){var Ka=e.touches(sr);return Ft=C.k,Ka.forEach(function(Mn){Mn.identifier in Or&&(Or[Mn.identifier]=Ve(Mn))}),Ka}function ta(){var Ka=e.event.target;e.select(Ka).on(wn,kl).on(zn,zB),Xn.push(Ka);for(var Mn=e.event.changedTouches,Aa=0,ki=Mn.length;Aa1){var Sl=ka[0],Co=ka[1],Cc=Sl[0]-Co[0],db=Sl[1]-Co[1];ft=Cc*Cc+db*db}}function kl(){var Ka=e.touches(sr),Mn,Aa,ki,ka;Ac.call(sr);for(var Ns=0,Sl=Ka.length;Ns1?1:z,U=U<0?0:U>1?1:U,W=U<=.5?U*(1+z):U+z-U*z,G=2*U-W;function K(le){return le>360?le-=360:le<0&&(le+=360),le<60?G+(W-G)*le/60:le<180?W:le<240?G+(W-G)*(240-le)/60:G}function fe(le){return Math.round(K(le)*255)}return new on(fe(C+120),fe(C),fe(C-120))}e.hcl=at;function at(C,z,U){return this instanceof at?(this.h=+C,this.c=+z,void(this.l=+U)):arguments.length<2?C instanceof at?new at(C.h,C.c,C.l):C instanceof Rt?wi(C.l,C.a,C.b):wi((C=hr((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new at(C,z,U)}var $t=at.prototype=new Kr;$t.brighter=function(C){return new at(this.h,this.c,Math.min(100,this.l+vt*(arguments.length?C:1)))},$t.darker=function(C){return new at(this.h,this.c,Math.max(0,this.l-vt*(arguments.length?C:1)))},$t.rgb=function(){return Zt(this.h,this.c,this.l).rgb()};function Zt(C,z,U){return isNaN(C)&&(C=0),isNaN(z)&&(z=0),new Rt(U,Math.cos(C*=ir)*z,Math.sin(C)*z)}e.lab=Rt;function Rt(C,z,U){return this instanceof Rt?(this.l=+C,this.a=+z,void(this.b=+U)):arguments.length<2?C instanceof Rt?new Rt(C.l,C.a,C.b):C instanceof at?Zt(C.h,C.c,C.l):hr((C=on(C)).r,C.g,C.b):new Rt(C,z,U)}var vt=18,Mt=.95047,jt=1,ea=1.08883,Nn=Rt.prototype=new Kr;Nn.brighter=function(C){return new Rt(Math.min(100,this.l+vt*(arguments.length?C:1)),this.a,this.b)},Nn.darker=function(C){return new Rt(Math.max(0,this.l-vt*(arguments.length?C:1)),this.a,this.b)},Nn.rgb=function(){return Ma(this.l,this.a,this.b)};function Ma(C,z,U){var G=(C+16)/116,W=G+z/500,K=G-U/200;return W=$i(W)*Mt,G=$i(G)*jt,K=$i(K)*ea,new on(eo(3.2404542*W-1.5371385*G-.4985314*K),eo(-.969266*W+1.8760108*G+.041556*K),eo(.0556434*W-.2040259*G+1.0572252*K))}function wi(C,z,U){return C>0?new at(Math.atan2(U,z)*yr,Math.sqrt(z*z+U*U),C):new at(NaN,NaN,C)}function $i(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function ji(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function eo(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=on;function on(C,z,U){return this instanceof on?(this.r=~~C,this.g=~~z,void(this.b=~~U)):arguments.length<2?C instanceof on?new on(C.r,C.g,C.b):it(""+C,on,Dt):new on(C,z,U)}function ko(C){return new on(C>>16,C>>8&255,C&255)}function Mi(C){return ko(C)+""}var Ti=on.prototype=new Kr;Ti.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var z=this.r,U=this.g,G=this.b,W=30;return!z&&!U&&!G?new on(W,W,W):(z&&z>4,G=G>>4|G,W=he&240,W=W>>4|W,K=he&15,K=K<<4|K):C.length===7&&(G=(he&16711680)>>16,W=(he&65280)>>8,K=he&255)),z(G,W,K))}function ct(C,z,U){var G=Math.min(C/=255,z/=255,U/=255),W=Math.max(C,z,U),K=W-G,fe,le,he=(W+G)/2;return K?(le=he<.5?K/(W+G):K/(2-W-G),C==W?fe=(z-U)/K+(z0&&he<1?0:fe),new Er(fe,le,he)}function hr(C,z,U){C=bn(C),z=bn(z),U=bn(U);var G=ji((.4124564*C+.3575761*z+.1804375*U)/Mt),W=ji((.2126729*C+.7151522*z+.072175*U)/jt),K=ji((.0193339*C+.119192*z+.9503041*U)/ea);return Rt(116*W-16,500*(G-W),200*(W-K))}function bn(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function bt(C){var z=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(z*2.55):z}var _n=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});_n.forEach(function(C,z){_n.set(C,ko(z))});function Vr(C){return typeof C=="function"?C:function(){return C}}e.functor=Vr,e.xhr=Za(N);function Za(C){return function(z,U,G){return arguments.length===2&&typeof U=="function"&&(G=U,U=null),wl(z,U,C,G)}}function wl(C,z,U,G){var W={},K=e.dispatch("beforesend","progress","load","error"),fe={},le=new XMLHttpRequest,he=null;self.XDomainRequest&&!("withCredentials"in le)&&/^(http(s)?:)?\/\//.test(C)&&(le=new XDomainRequest),"onload"in le?le.onload=le.onerror=we:le.onreadystatechange=function(){le.readyState>3&&we()};function we(){var Te=le.status,Re;if(!Te&&Oq(le)||Te>=200&&Te<300||Te===304){try{Re=U.call(W,le)}catch(Pe){K.error.call(W,Pe);return}K.load.call(W,Re)}else K.error.call(W,le)}return le.onprogress=function(Te){var Re=e.event;e.event=Te;try{K.progress.call(W,le)}finally{e.event=Re}},W.header=function(Te,Re){return Te=(Te+"").toLowerCase(),arguments.length<2?fe[Te]:(Re==null?delete fe[Te]:fe[Te]=Re+"",W)},W.mimeType=function(Te){return arguments.length?(z=Te==null?null:Te+"",W):z},W.responseType=function(Te){return arguments.length?(he=Te,W):he},W.response=function(Te){return U=Te,W},["get","post"].forEach(function(Te){W[Te]=function(){return W.send.apply(W,[Te].concat(t(arguments)))}}),W.send=function(Te,Re,Pe){if(arguments.length===2&&typeof Re=="function"&&(Pe=Re,Re=null),le.open(Te,C,!0),z!=null&&!("accept"in fe)&&(fe.accept=z+",*/*"),le.setRequestHeader)for(var Ge in fe)le.setRequestHeader(Ge,fe[Ge]);return z!=null&&le.overrideMimeType&&le.overrideMimeType(z),he!=null&&(le.responseType=he),Pe!=null&&W.on("error",Pe).on("load",function(Je){Pe(null,Je)}),K.beforesend.call(W,le),le.send(Re==null?null:Re),W},W.abort=function(){return le.abort(),W},e.rebind(W,K,"on"),G==null?W:W.get(qq(G))}function qq(C){return C.length===1?function(z,U){C(z==null?U:null)}:C}function Oq(C){var z=C.responseType;return z&&z!=="text"?C.response:C.responseText}e.dsv=function(C,z){var U=new RegExp('["'+C+` +"use strict";var Plotly=(()=>{var BB=Object.defineProperty,UB=Object.defineProperties;var HB=Object.getOwnPropertyDescriptors;var gb=Object.getOwnPropertySymbols;var VB=Object.prototype.hasOwnProperty,GB=Object.prototype.propertyIsEnumerable;var yb=(e,r,t)=>r in e?BB(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Cl=(e,r)=>{for(var t in r||(r={}))VB.call(r,t)&&yb(e,t,r[t]);if(gb)for(var t of gb(r))GB.call(r,t)&&yb(e,t,r[t]);return e},Lc=(e,r)=>UB(e,HB(r));var be=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var vf=be(mb=>{"use strict";mb.version="3.7.0"});var bb=be((xb,Dc)=>{(function(r,t,n){t[r]=t[r]||n(),typeof Dc!="undefined"&&Dc.exports&&(Dc.exports=t[r])})("Promise",typeof window!="undefined"?window:xb,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,x,M){return Object.defineProperty(k,S,{value:x,writable:!0,configurable:M!==!1})}}catch(m){r=function(S,x,M){return S[x]=M,S}}n=(function(){var k,S,x;function M(v,w){this.fn=v,this.self=w,this.next=void 0}return{add:function(w,g){x=new M(w,g),S?S.next=x:k=x,S=x,x=void 0},drain:function(){var w=k;for(k=S=t=void 0;w;)w.fn.call(w.self),w=w.next}}})();function i(m,k){n.add(m,k),t||(t=o(n.drain))}function l(m){var k,S=typeof m;return m!=null&&(S=="object"||S=="function")&&(k=m.then),typeof k=="function"?k:!1}function u(){for(var m=0;m0&&i(u,S))}catch(x){h.call(new _(S),x)}}}function h(m){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=m,k.state=2,k.chain.length>0&&i(u,k))}function p(m,k,S,x){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(z){for(var U=z.length,G=new Array(U);U--;)G[U]=z[U];return G}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(z,U){l.call(this,z,U+"")},i.setAttributeNS=function(z,U,G){u.call(this,z,U,G+"")},s.setProperty=function(z,U,G){f.call(this,z,U+"",G)}}e.ascending=h;function h(C,z){return Cz?1:C>=z?0:NaN}e.descending=function(C,z){return zC?1:z>=C?0:NaN},e.min=function(C,z){var U=-1,G=C.length,W,K;if(arguments.length===1){for(;++U=K){W=K;break}for(;++UK&&(W=K)}else{for(;++U=K){W=K;break}for(;++UK&&(W=K)}return W},e.max=function(C,z){var U=-1,G=C.length,W,K;if(arguments.length===1){for(;++U=K){W=K;break}for(;++UW&&(W=K)}else{for(;++U=K){W=K;break}for(;++UW&&(W=K)}return W},e.extent=function(C,z){var U=-1,G=C.length,W,K,fe;if(arguments.length===1){for(;++U=K){W=fe=K;break}for(;++UK&&(W=K),fe=K){W=fe=K;break}for(;++UK&&(W=K),fe1)return fe/(he-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function y(C){return{left:function(z,U,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[K],U)<0?G=K+1:W=K}return G},right:function(z,U,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[K],U)>0?W=K:G=K+1}return G}}}var b=y(h);e.bisectLeft=b.left,e.bisect=e.bisectRight=b.right,e.bisector=function(C){return y(C.length===1?function(z,U){return h(C(z),U)}:C)},e.shuffle=function(C,z,U){(G=arguments.length)<3&&(U=C.length,G<2&&(z=0));for(var G=U-z,W,K;G;)K=Math.random()*G--|0,W=C[G+z],C[G+z]=C[K+z],C[K+z]=W;return C},e.permute=function(C,z){for(var U=z.length,G=new Array(U);U--;)G[U]=C[z[U]];return G},e.pairs=function(C){for(var z=0,U=C.length-1,G,W=C[0],K=new Array(U<0?0:U);z=0;)for(fe=C[z],U=fe.length;--U>=0;)K[--W]=fe[U];return K};var m=Math.abs;e.range=function(C,z,U){if(arguments.length<3&&(U=1,arguments.length<2&&(z=C,C=0)),(z-C)/U===1/0)throw new Error("infinite range");var G=[],W=k(m(U)),K=-1,fe;if(C*=W,z*=W,U*=W,U<0)for(;(fe=C+U*++K)>z;)G.push(fe/W);else for(;(fe=C+U*++K)=z.length)return W?W.call(C,he):G?he.sort(G):he;for(var Te=-1,Re=he.length,Pe=z[we++],Ge,Je,Ne,qe=new x,Ue;++Te=z.length)return le;var we=[],Te=U[he++];return le.forEach(function(Re,Pe){we.push({key:Re,values:fe(Pe,he)})}),Te?we.sort(function(Re,Pe){return Te(Re.key,Pe.key)}):we}return C.map=function(le,he){return K(he,le,0)},C.entries=function(le){return fe(K(e.map,le,0),0)},C.key=function(le){return z.push(le),C},C.sortKeys=function(le){return U[z.length-1]=le,C},C.sortValues=function(le){return G=le,C},C.rollup=function(le){return W=le,C},C},e.set=function(C){var z=new R;if(C)for(var U=0,G=C.length;U=0&&(G=C.slice(U+1),C=C.slice(0,U)),C)return arguments.length<2?this[C].on(G):this[C].on(G,z);if(arguments.length===2){if(z==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(G,null);return this}};function B(C){var z=[],U=new x;function G(){for(var W=z,K=-1,fe=W.length,le;++K=0&&(U=C.slice(0,z))!=="xmlns"&&(C=C.slice(z+1)),ne.hasOwnProperty(U)?{space:ne[U],local:C}:C}},j.attr=function(C,z){if(arguments.length<2){if(typeof C=="string"){var U=this.node();return C=e.ns.qualify(C),C.local?U.getAttributeNS(C.space,C.local):U.getAttribute(C)}for(z in C)this.each(ue(z,C[z]));return this}return this.each(ue(C,z))};function ue(C,z){C=e.ns.qualify(C);function U(){this.removeAttribute(C)}function G(){this.removeAttributeNS(C.space,C.local)}function W(){this.setAttribute(C,z)}function K(){this.setAttributeNS(C.space,C.local,z)}function fe(){var he=z.apply(this,arguments);he==null?this.removeAttribute(C):this.setAttribute(C,he)}function le(){var he=z.apply(this,arguments);he==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,he)}return z==null?C.local?G:U:typeof z=="function"?C.local?le:fe:C.local?K:W}function ye(C){return C.trim().replace(/\s+/g," ")}j.classed=function(C,z){if(arguments.length<2){if(typeof C=="string"){var U=this.node(),G=(C=Me(C)).length,W=-1;if(z=U.classList){for(;++W=0;)(K=U[G])&&(W&&W!==K.nextSibling&&W.parentNode.insertBefore(K,W),W=K);return this},j.sort=function(C){C=ce.apply(this,arguments);for(var z=-1,U=this.length;++z=z&&(z=W+1);!(he=fe[z])&&++z0&&(C=C.slice(0,W));var fe=_e.get(C);fe&&(C=fe,K=Ie);function le(){var Te=this[G];Te&&(this.removeEventListener(C,Te,Te.$),delete this[G])}function he(){var Te=K(z,t(arguments));le.call(this),this.addEventListener(C,this[G]=Te,Te.$=U),Te._=z}function we(){var Te=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Re;for(var Pe in this)if(Re=Pe.match(Te)){var Ge=this[Pe];this.removeEventListener(Re[1],Ge,Ge.$),delete this[Pe]}}return W?z?he:le:z?P:we}var _e=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&_e.forEach(function(C){"on"+C in n&&_e.remove(C)});function Ae(C,z){return function(U){var G=e.event;e.event=U,z[0]=this.__data__;try{C.apply(this,z)}finally{e.event=G}}}function Ie(C,z){var U=Ae(C,z);return function(G){var W=this,K=G.relatedTarget;(!K||K!==W&&!(K.compareDocumentPosition(W)&8))&&U.call(W,G)}}var De,We=0;function Oe(C){var z=".dragsuppress-"+ ++We,U="click"+z,G=e.select(o(C)).on("touchmove"+z,X).on("dragstart"+z,X).on("selectstart"+z,X);if(De==null&&(De="onselectstart"in C?!1:F(C.style,"userSelect")),De){var W=a(C).style,K=W[De];W[De]="none"}return function(fe){if(G.on(z,null),De&&(W[De]=K),fe){var le=function(){G.on(U,null)};G.on(U,function(){X(),le()},!0),setTimeout(le,0)}}}e.mouse=function(C){return Be(C,$())};var ze=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Be(C,z){z.changedTouches&&(z=z.changedTouches[0]);var U=C.ownerSVGElement||C;if(U.createSVGPoint){var G=U.createSVGPoint();if(ze<0){var W=o(C);if(W.scrollX||W.scrollY){U=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var K=U[0][0].getScreenCTM();ze=!(K.f||K.e),U.remove()}}return ze?(G.x=z.pageX,G.y=z.pageY):(G.x=z.clientX,G.y=z.clientY),G=G.matrixTransform(C.getScreenCTM().inverse()),[G.x,G.y]}var fe=C.getBoundingClientRect();return[z.clientX-fe.left-C.clientLeft,z.clientY-fe.top-C.clientTop]}e.touch=function(C,z,U){if(arguments.length<3&&(U=z,z=$().changedTouches),z){for(var G=0,W=z.length,K;G0?1:C<0?-1:0}function wr(C,z,U){return(z[0]-C[0])*(U[1]-C[1])-(z[1]-C[1])*(U[0]-C[0])}function $r(C){return C>1?0:C<-1?Xe:Math.acos(C)}function _r(C){return C>1?je:C<-1?-je:Math.asin(C)}function Nr(C){return((C=Math.exp(C))-1/C)/2}function rt(C){return((C=Math.exp(C))+1/C)/2}function Sr(C){return((C=Math.exp(2*C))-1)/(C+1)}function qr(C){return(C=Math.sin(C/2))*C}var gt=Math.SQRT2,Hr=2,Xr=4;e.interpolateZoom=function(C,z){var U=C[0],G=C[1],W=C[2],K=z[0],fe=z[1],le=z[2],he=K-U,we=fe-G,Te=he*he+we*we,Re,Pe;if(Te0&&(sr=sr.transition().duration(fe)),sr.call(Ke.event)}function pr(){qe&&qe.domain(Ne.range().map(function(sr){return(sr-C.x)/C.k}).map(Ne.invert)),Ze&&Ze.domain(Ue.range().map(function(sr){return(sr-C.y)/C.k}).map(Ue.invert))}function gr(sr){le++||sr({type:"zoomstart"})}function Fr(sr){pr(),sr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function mr(sr){--le||(sr({type:"zoomend"}),U=null)}function Cr(){var sr=this,Ir=Je.of(sr,arguments),Or=0,ft=e.select(o(sr)).on(we,wn).on(Te,zn),It=Ve(e.mouse(sr)),rn=Oe(sr);kc.call(sr),gr(Ir);function wn(){Or=1,dr(e.mouse(sr),It),Fr(Ir)}function zn(){ft.on(we,null).on(Te,null),rn(Or),mr(Ir)}}function ut(){var sr=this,Ir=Je.of(sr,arguments),Or={},ft=0,It,rn=".zoom-"+e.event.changedTouches[0].identifier,wn="touchmove"+rn,zn="touchend"+rn,Xn=[],qn=e.select(sr),ra=Oe(sr);ta(),gr(Ir),qn.on(he,null).on(Pe,ta);function kn(){var Ka=e.touches(sr);return It=C.k,Ka.forEach(function(Mn){Mn.identifier in Or&&(Or[Mn.identifier]=Ve(Mn))}),Ka}function ta(){var Ka=e.event.target;e.select(Ka).on(wn,kl).on(zn,OB),Xn.push(Ka);for(var Mn=e.event.changedTouches,Aa=0,ki=Mn.length;Aa1){var Sl=ka[0],Co=ka[1],Ec=Sl[0]-Co[0],pb=Sl[1]-Co[1];ft=Ec*Ec+pb*pb}}function kl(){var Ka=e.touches(sr),Mn,Aa,ki,ka;kc.call(sr);for(var zs=0,Sl=Ka.length;zs1?1:z,U=U<0?0:U>1?1:U,W=U<=.5?U*(1+z):U+z-U*z,G=2*U-W;function K(le){return le>360?le-=360:le<0&&(le+=360),le<60?G+(W-G)*le/60:le<180?W:le<240?G+(W-G)*(240-le)/60:G}function fe(le){return Math.round(K(le)*255)}return new on(fe(C+120),fe(C),fe(C-120))}e.hcl=it;function it(C,z,U){return this instanceof it?(this.h=+C,this.c=+z,void(this.l=+U)):arguments.length<2?C instanceof it?new it(C.h,C.c,C.l):C instanceof Pt?wi(C.l,C.a,C.b):wi((C=hr((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new it(C,z,U)}var jt=it.prototype=new Zr;jt.brighter=function(C){return new it(this.h,this.c,Math.min(100,this.l+vt*(arguments.length?C:1)))},jt.darker=function(C){return new it(this.h,this.c,Math.max(0,this.l-vt*(arguments.length?C:1)))},jt.rgb=function(){return Jt(this.h,this.c,this.l).rgb()};function Jt(C,z,U){return isNaN(C)&&(C=0),isNaN(z)&&(z=0),new Pt(U,Math.cos(C*=ir)*z,Math.sin(C)*z)}e.lab=Pt;function Pt(C,z,U){return this instanceof Pt?(this.l=+C,this.a=+z,void(this.b=+U)):arguments.length<2?C instanceof Pt?new Pt(C.l,C.a,C.b):C instanceof it?Jt(C.h,C.c,C.l):hr((C=on(C)).r,C.g,C.b):new Pt(C,z,U)}var vt=18,Mt=.95047,Tt=1,ea=1.08883,Nn=Pt.prototype=new Zr;Nn.brighter=function(C){return new Pt(Math.min(100,this.l+vt*(arguments.length?C:1)),this.a,this.b)},Nn.darker=function(C){return new Pt(Math.max(0,this.l-vt*(arguments.length?C:1)),this.a,this.b)},Nn.rgb=function(){return Ma(this.l,this.a,this.b)};function Ma(C,z,U){var G=(C+16)/116,W=G+z/500,K=G-U/200;return W=$i(W)*Mt,G=$i(G)*Tt,K=$i(K)*ea,new on(eo(3.2404542*W-1.5371385*G-.4985314*K),eo(-.969266*W+1.8760108*G+.041556*K),eo(.0556434*W-.2040259*G+1.0572252*K))}function wi(C,z,U){return C>0?new it(Math.atan2(U,z)*yr,Math.sqrt(z*z+U*U),C):new it(NaN,NaN,C)}function $i(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function ji(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function eo(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=on;function on(C,z,U){return this instanceof on?(this.r=~~C,this.g=~~z,void(this.b=~~U)):arguments.length<2?C instanceof on?new on(C.r,C.g,C.b):ot(""+C,on,Rt):new on(C,z,U)}function ko(C){return new on(C>>16,C>>8&255,C&255)}function Mi(C){return ko(C)+""}var Ti=on.prototype=new Zr;Ti.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var z=this.r,U=this.g,G=this.b,W=30;return!z&&!U&&!G?new on(W,W,W):(z&&z>4,G=G>>4|G,W=he&240,W=W>>4|W,K=he&15,K=K<<4|K):C.length===7&&(G=(he&16711680)>>16,W=(he&65280)>>8,K=he&255)),z(G,W,K))}function ct(C,z,U){var G=Math.min(C/=255,z/=255,U/=255),W=Math.max(C,z,U),K=W-G,fe,le,he=(W+G)/2;return K?(le=he<.5?K/(W+G):K/(2-W-G),C==W?fe=(z-U)/K+(z0&&he<1?0:fe),new Er(fe,le,he)}function hr(C,z,U){C=bn(C),z=bn(z),U=bn(U);var G=ji((.4124564*C+.3575761*z+.1804375*U)/Mt),W=ji((.2126729*C+.7151522*z+.072175*U)/Tt),K=ji((.0193339*C+.119192*z+.9503041*U)/ea);return Pt(116*W-16,500*(G-W),200*(W-K))}function bn(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function bt(C){var z=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(z*2.55):z}var _n=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});_n.forEach(function(C,z){_n.set(C,ko(z))});function Vr(C){return typeof C=="function"?C:function(){return C}}e.functor=Vr,e.xhr=Za(N);function Za(C){return function(z,U,G){return arguments.length===2&&typeof U=="function"&&(G=U,U=null),wl(z,U,C,G)}}function wl(C,z,U,G){var W={},K=e.dispatch("beforesend","progress","load","error"),fe={},le=new XMLHttpRequest,he=null;self.XDomainRequest&&!("withCredentials"in le)&&/^(http(s)?:)?\/\//.test(C)&&(le=new XDomainRequest),"onload"in le?le.onload=le.onerror=we:le.onreadystatechange=function(){le.readyState>3&&we()};function we(){var Te=le.status,Re;if(!Te&&Uq(le)||Te>=200&&Te<300||Te===304){try{Re=U.call(W,le)}catch(Pe){K.error.call(W,Pe);return}K.load.call(W,Re)}else K.error.call(W,le)}return le.onprogress=function(Te){var Re=e.event;e.event=Te;try{K.progress.call(W,le)}finally{e.event=Re}},W.header=function(Te,Re){return Te=(Te+"").toLowerCase(),arguments.length<2?fe[Te]:(Re==null?delete fe[Te]:fe[Te]=Re+"",W)},W.mimeType=function(Te){return arguments.length?(z=Te==null?null:Te+"",W):z},W.responseType=function(Te){return arguments.length?(he=Te,W):he},W.response=function(Te){return U=Te,W},["get","post"].forEach(function(Te){W[Te]=function(){return W.send.apply(W,[Te].concat(t(arguments)))}}),W.send=function(Te,Re,Pe){if(arguments.length===2&&typeof Re=="function"&&(Pe=Re,Re=null),le.open(Te,C,!0),z!=null&&!("accept"in fe)&&(fe.accept=z+",*/*"),le.setRequestHeader)for(var Ge in fe)le.setRequestHeader(Ge,fe[Ge]);return z!=null&&le.overrideMimeType&&le.overrideMimeType(z),he!=null&&(le.responseType=he),Pe!=null&&W.on("error",Pe).on("load",function(Je){Pe(null,Je)}),K.beforesend.call(W,le),le.send(Re==null?null:Re),W},W.abort=function(){return le.abort(),W},e.rebind(W,K,"on"),G==null?W:W.get(Bq(G))}function Bq(C){return C.length===1?function(z,U){C(z==null?U:null)}:C}function Uq(C){var z=C.responseType;return z&&z!=="text"?C.response:C.responseText}e.dsv=function(C,z){var U=new RegExp('["'+C+` ]`),G=C.charCodeAt(0);function W(we,Te,Re){arguments.length<3&&(Re=Te,Te=null);var Pe=wl(we,z,Te==null?K:fe(Te),Re);return Pe.row=function(Ge){return arguments.length?Pe.response((Te=Ge)==null?K:fe(Ge)):Te},Pe}function K(we){return W.parse(we.responseText)}function fe(we){return function(Te){return W.parse(Te.responseText,we)}}W.parse=function(we,Te){var Re;return W.parseRows(we,function(Pe,Ge){if(Re)return Re(Pe,Ge-1);var Je=function(Ne){for(var qe={},Ue=Pe.length,Ze=0;Ze=Je)return Pe;if(Ze)return Ze=!1,Re;var tr=Ne;if(we.charCodeAt(tr)===34){for(var fr=tr;fr++24?(isFinite(z)&&(clearTimeout(uc),uc=setTimeout(Bd,z)),sc=0):(sc=1,ex(Bd))}e.timer.flush=function(){rx(),tx()};function rx(){for(var C=Date.now(),z=oc;z;)C>=z.t&&z.c(C-z.t)&&(z.c=null),z=z.n;return C}function tx(){for(var C,z=oc,U=1/0;z;)z.c?(z.t=0;--le)Ne.push(W[we[Re[le]][2]]);for(le=+Ge;le1&&wr(C[U[G-2]],C[U[G-1]],C[W])<=0;)--G;U[G++]=W}return U.slice(0,G)}function Bq(C,z){return C[0]-z[0]||C[1]-z[1]}e.geom.polygon=function(C){return q(C,cc),C};var cc=e.geom.polygon.prototype=[];cc.area=function(){for(var C=-1,z=this.length,U,G=this[z-1],W=0;++CLe)le=le.L;else if(fe=z-Gq(le,U),fe>Le){if(!le.R){G=le;break}le=le.R}else{K>-Le?(G=le.P,W=le):fe>-Le?(G=le,W=le.N):G=W=le;break}var he=lx(C);if(Rs.insert(G,he),!(!G&&!W)){if(G===W){Fs(G),W=lx(G.site),Rs.insert(he,W),he.edge=W.edge=af(G.site,he.site),Ps(G),Ps(W);return}if(!W){he.edge=af(G.site,he.site);return}Fs(G),Fs(W);var we=G.site,Te=we.x,Re=we.y,Pe=C.x-Te,Ge=C.y-Re,Je=W.site,Ne=Je.x-Te,qe=Je.y-Re,Ue=2*(Pe*qe-Ge*Ne),Ze=Pe*Pe+Ge*Ge,Ke=Ne*Ne+qe*qe,Ve={x:(qe*Ze-Ge*Ke)/Ue+Te,y:(Pe*Ke-Ne*Ze)/Ue+Re};hc(W.edge,we,Je,Ve),he.edge=af(we,C,null,Ve),W.edge=af(C,Je,null,Ve),Ps(G),Ps(W)}}function sx(C,z){var U=C.site,G=U.x,W=U.y,K=W-z;if(!K)return G;var fe=C.P;if(!fe)return-1/0;U=fe.site;var le=U.x,he=U.y,we=he-z;if(!we)return le;var Te=le-G,Re=1/K-1/we,Pe=Te/we;return Re?(-Pe+Math.sqrt(Pe*Pe-2*Re*(Te*Te/(-2*we)-he+we/2+W-K/2)))/Re+G:(G+le)/2}function Gq(C,z){var U=C.N;if(U)return sx(U,z);var G=C.site;return G.y===z?G.x:1/0}function ux(C){this.site=C,this.edges=[]}ux.prototype.prepare=function(){for(var C=this.edges,z=C.length,U;z--;)U=C[z].edge,(!U.b||!U.a)&&C.splice(z,1);return C.sort(fx),C.length};function Yq(C){for(var z=C[0][0],U=C[1][0],G=C[0][1],W=C[1][1],K,fe,le,he,we=Ml,Te=we.length,Re,Pe,Ge,Je,Ne,qe;Te--;)if(Re=we[Te],!(!Re||!Re.prepare()))for(Ge=Re.edges,Je=Ge.length,Pe=0;PeLe||m(he-fe)>Le)&&(Ge.splice(Pe,0,new vc(Kq(Re.site,qe,m(le-z)Le?{x:z,y:m(K-z)Le?{x:m(fe-W)Le?{x:U,y:m(K-U)Le?{x:m(fe-G)=-Ye)){var Pe=he*he+we*we,Ge=Te*Te+qe*qe,Je=(qe*Pe-we*Ge)/Re,Ne=(he*Ge-Te*Pe)/Re,qe=Ne+le,Ue=ox.pop()||new Wq;Ue.arc=C,Ue.site=W,Ue.x=Je+fe,Ue.y=qe+Math.sqrt(Je*Je+Ne*Ne),Ue.cy=qe,C.circle=Ue;for(var Ze=null,Ke=nf._;Ke;)if(Ue.y0)){if(Ne/=Ge,Ge<0){if(Ne0){if(Ne>Pe)return;Ne>Re&&(Re=Ne)}if(Ne=U-le,!(!Ge&&Ne<0)){if(Ne/=Ge,Ge<0){if(Ne>Pe)return;Ne>Re&&(Re=Ne)}else if(Ge>0){if(Ne0)){if(Ne/=Je,Je<0){if(Ne0){if(Ne>Pe)return;Ne>Re&&(Re=Ne)}if(Ne=G-he,!(!Je&&Ne<0)){if(Ne/=Je,Je<0){if(Ne>Pe)return;Ne>Re&&(Re=Ne)}else if(Je>0){if(Ne0&&(W.a={x:le+Re*Ge,y:he+Re*Je}),Pe<1&&(W.b={x:le+Pe*Ge,y:he+Pe*Je}),W}}}}}}function Zq(C){for(var z=Ds,U=Xq(C[0][0],C[0][1],C[1][0],C[1][1]),G=z.length,W;G--;)W=z[G],(!Jq(W,C)||!U(W)||m(W.a.x-W.b.x)=K)return;if(Te>Pe){if(!G)G={x:Je,y:fe};else if(G.y>=le)return;U={x:Je,y:le}}else{if(!G)G={x:Je,y:le};else if(G.y1)if(Te>Pe){if(!G)G={x:(fe-Ue)/qe,y:fe};else if(G.y>=le)return;U={x:(le-Ue)/qe,y:le}}else{if(!G)G={x:(le-Ue)/qe,y:le};else if(G.y=K)return;U={x:K,y:qe*K+Ue}}else{if(!G)G={x:K,y:qe*K+Ue};else if(G.x=Te&&Ue.x<=Pe&&Ue.y>=Re&&Ue.y<=Ge?[[Te,Ge],[Pe,Ge],[Pe,Re],[Te,Re]]:[];Ze.point=he[Ne]}),we}function le(he){return he.map(function(we,Te){return{x:Math.round(G(we,Te)/Le)*Le,y:Math.round(W(we,Te)/Le)*Le,i:Te}})}return fe.links=function(he){return Wd(le(he)).edges.filter(function(we){return we.l&&we.r}).map(function(we){return{source:he[we.l.i],target:he[we.r.i]}})},fe.triangles=function(he){var we=[];return Wd(le(he)).cells.forEach(function(Te,Re){for(var Pe=Te.site,Ge=Te.edges.sort(fx),Je=-1,Ne=Ge.length,qe,Ue,Ze=Ge[Ne-1].edge,Ke=Ze.l===Pe?Ze.r:Ze.l;++JeKe&&(Ke=Te.x),Te.y>Ve&&(Ve=Te.y),Ge.push(Te.x),Je.push(Te.y);else for(Ne=0;NeKe&&(Ke=tr),fr>Ve&&(Ve=fr),Ge.push(tr),Je.push(fr)}var dr=Ke-Ue,cr=Ve-Ze;dr>cr?Ve=Ze+dr:Ke=Ue+cr;function pr(mr,Cr,ut,Bt,dt,sr,Ir,Or){if(!(isNaN(ut)||isNaN(Bt)))if(mr.leaf){var ft=mr.x,Ft=mr.y;if(ft!=null)if(m(ft-ut)+m(Ft-Bt)<.01)gr(mr,Cr,ut,Bt,dt,sr,Ir,Or);else{var rn=mr.point;mr.x=mr.y=mr.point=null,gr(mr,rn,ft,Ft,dt,sr,Ir,Or),gr(mr,Cr,ut,Bt,dt,sr,Ir,Or)}else mr.x=ut,mr.y=Bt,mr.point=Cr}else gr(mr,Cr,ut,Bt,dt,sr,Ir,Or)}function gr(mr,Cr,ut,Bt,dt,sr,Ir,Or){var ft=(dt+Ir)*.5,Ft=(sr+Or)*.5,rn=ut>=ft,wn=Bt>=Ft,zn=wn<<1|rn;mr.leaf=!1,mr=mr.nodes[zn]||(mr.nodes[zn]=vx()),rn?dt=ft:Ir=ft,wn?sr=Ft:Or=Ft,pr(mr,Cr,ut,Bt,dt,sr,Ir,Or)}var Fr=vx();if(Fr.add=function(mr){pr(Fr,mr,+Re(mr,++Ne),+Pe(mr,Ne),Ue,Ze,Ke,Ve)},Fr.visit=function(mr){sf(mr,Fr,Ue,Ze,Ke,Ve)},Fr.find=function(mr){return rO(Fr,mr[0],mr[1],Ue,Ze,Ke,Ve)},Ne=-1,z==null){for(;++NeK||Pe>fe||Ge=tr,cr=U>=fr,pr=cr<<1|dr,gr=pr+4;prU&&(K=z.slice(U,K),le[fe]?le[fe]+=K:le[++fe]=K),(G=G[0])===(W=W[0])?le[fe]?le[fe]+=W:le[++fe]=W:(le[++fe]=null,he.push({i:fe,x:ro(G,W)})),U=Jd.lastIndex;return U=0&&!(G=e.interpolators[U](C,z)););return G}e.interpolators=[function(C,z){var U=typeof z;return(U==="string"?_n.has(z.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(z)?Xd:px:z instanceof Kr?Xd:Array.isArray(z)?gc:U==="object"&&isNaN(z)?dx:ro)(C,z)}],e.interpolateArray=gc;function gc(C,z){var U=[],G=[],W=C.length,K=z.length,fe=Math.min(C.length,z.length),le;for(le=0;le=0?C.slice(0,z):C,G=z>=0?C.slice(z+1):"in";return U=tO.get(U)||gx,G=nO.get(G)||N,aO(G(U.apply(null,r.call(arguments,1))))};function aO(C){return function(z){return z<=0?0:z>=1?1:C(z)}}function yx(C){return function(z){return 1-C(1-z)}}function mx(C){return function(z){return .5*(z<.5?C(2*z):2-C(2-2*z))}}function iO(C){return C*C}function oO(C){return C*C*C}function lO(C){if(C<=0)return 0;if(C>=1)return 1;var z=C*C,U=z*C;return 4*(C<.5?U:3*(C-z)+U-.75)}function sO(C){return function(z){return Math.pow(z,C)}}function uO(C){return 1-Math.cos(C*je)}function fO(C){return Math.pow(2,10*(C-1))}function cO(C){return 1-Math.sqrt(1-C*C)}function hO(C,z){var U;return arguments.length<2&&(z=.45),arguments.length?U=z/$e*Math.asin(1/C):(C=1,U=z/4),function(G){return 1+C*Math.pow(2,-10*G)*Math.sin((G-U)*$e/z)}}function vO(C){return C||(C=1.70158),function(z){return z*z*((C+1)*z-C)}}function dO(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375}e.interpolateHcl=pO;function pO(C,z){C=e.hcl(C),z=e.hcl(z);var U=C.h,G=C.c,W=C.l,K=z.h-U,fe=z.c-G,le=z.l-W;return isNaN(fe)&&(fe=0,G=isNaN(G)?z.c:G),isNaN(K)?(K=0,U=isNaN(U)?z.h:U):K>180?K-=360:K<-180&&(K+=360),function(he){return Zt(U+K*he,G+fe*he,W+le*he)+""}}e.interpolateHsl=gO;function gO(C,z){C=e.hsl(C),z=e.hsl(z);var U=C.h,G=C.s,W=C.l,K=z.h-U,fe=z.s-G,le=z.l-W;return isNaN(fe)&&(fe=0,G=isNaN(G)?z.s:G),isNaN(K)?(K=0,U=isNaN(U)?z.h:U):K>180?K-=360:K<-180&&(K+=360),function(he){return Dt(U+K*he,G+fe*he,W+le*he)+""}}e.interpolateLab=yO;function yO(C,z){C=e.lab(C),z=e.lab(z);var U=C.l,G=C.a,W=C.b,K=z.l-U,fe=z.a-G,le=z.b-W;return function(he){return Ma(U+K*he,G+fe*he,W+le*he)+""}}e.interpolateRound=xx;function xx(C,z){return z-=C,function(U){return Math.round(C+z*U)}}e.transform=function(C){var z=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(U){if(U!=null){z.setAttribute("transform",U);var G=z.transform.baseVal.consolidate()}return new bx(G?G.matrix:xO)})(C)};function bx(C){var z=[C.a,C.b],U=[C.c,C.d],G=wx(z),W=_x(z,U),K=wx(mO(U,z,-W))||0;z[0]*U[1]180?z+=360:z-C>180&&(C+=360),G.push({i:U.push(Is(U)+"rotate(",null,")")-2,x:ro(C,z)})):z&&U.push(Is(U)+"rotate("+z+")")}function wO(C,z,U,G){C!==z?G.push({i:U.push(Is(U)+"skewX(",null,")")-2,x:ro(C,z)}):z&&U.push(Is(U)+"skewX("+z+")")}function MO(C,z,U,G){if(C[0]!==z[0]||C[1]!==z[1]){var W=U.push(Is(U)+"scale(",null,",",null,")");G.push({i:W-4,x:ro(C[0],z[0])},{i:W-2,x:ro(C[1],z[1])})}else(z[0]!==1||z[1]!==1)&&U.push(Is(U)+"scale("+z+")")}function Mx(C,z){var U=[],G=[];return C=e.transform(C),z=e.transform(z),bO(C.translate,z.translate,U,G),_O(C.rotate,z.rotate,U,G),wO(C.skew,z.skew,U,G),MO(C.scale,z.scale,U,G),C=z=null,function(W){for(var K=-1,fe=G.length,le;++K0?K=Ve:(U.c=null,U.t=NaN,U=null,z.end({type:"end",alpha:K=0})):Ve>0&&(z.start({type:"start",alpha:K=Ve}),U=fc(C.tick)),C):K},C.start=function(){var Ve,tr=Ge.length,fr=Je.length,dr=G[0],cr=G[1],pr,gr;for(Ve=0;Ve=0;)K.push(Te=we[he]),Te.parent=le,Te.depth=le.depth+1;U&&(le.value=0),le.children=we}else U&&(le.value=+U.call(G,le,le.depth)||0),delete le.children;return Ai(W,function(Re){var Pe,Ge;C&&(Pe=Re.children)&&Pe.sort(C),U&&(Ge=Re.parent)&&(Ge.value+=Re.value)}),fe}return G.sort=function(W){return arguments.length?(C=W,G):C},G.children=function(W){return arguments.length?(z=W,G):z},G.value=function(W){return arguments.length?(U=W,G):U},G.revalue=function(W){return U&&(ff(W,function(K){K.children&&(K.value=0)}),Ai(W,function(K){var fe;K.children||(K.value=+U.call(G,K,K.depth)||0),(fe=K.parent)&&(fe.value+=K.value)})),W},G};function uf(C,z){return e.rebind(C,z,"sort","children","value"),C.nodes=C,C.links=qO,C}function ff(C,z){for(var U=[C];(C=U.pop())!=null;)if(z(C),(W=C.children)&&(G=W.length))for(var G,W;--G>=0;)U.push(W[G])}function Ai(C,z){for(var U=[C],G=[];(C=U.pop())!=null;)if(G.push(C),(fe=C.children)&&(K=fe.length))for(var W=-1,K,fe;++WW&&(W=le),G.push(le)}for(fe=0;feG&&(U=z,G=W);return U}function YO(C){return C.reduce(WO,0)}function WO(C,z){return C+z[1]}e.layout.histogram=function(){var C=!0,z=Number,U=ZO,G=XO;function W(K,Pe){for(var le=[],he=K.map(z,this),we=U.call(this,he,Pe),Te=G.call(this,we,he,Pe),Re,Pe=-1,Ge=he.length,Je=Te.length-1,Ne=C?1:1/Ge,qe;++Pe0)for(Pe=-1;++Pe=we[0]&&qe<=we[1]&&(Re=le[e.bisect(Te,qe,1,Je)-1],Re.y+=Ne,Re.push(K[Pe]));return le}return W.value=function(K){return arguments.length?(z=K,W):z},W.range=function(K){return arguments.length?(U=Vr(K),W):U},W.bins=function(K){return arguments.length?(G=typeof K=="number"?function(fe){return Sx(fe,K)}:Vr(K),W):G},W.frequency=function(K){return arguments.length?(C=!!K,W):C},W};function XO(C,z){return Sx(C,Math.ceil(Math.log(z.length)/Math.LN2+1))}function Sx(C,z){for(var U=-1,G=+C[0],W=(C[1]-G)/z,K=[];++U<=z;)K[U]=W*U+G;return K}function ZO(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(JO),z=0,U=[1,1],G;function W(K,fe){var le=C.call(this,K,fe),he=le[0],we=U[0],Te=U[1],Re=G==null?Math.sqrt:typeof G=="function"?G:function(){return G};if(he.x=he.y=0,Ai(he,function(Ge){Ge.r=+Re(Ge.value)}),Ai(he,Lx),z){var Pe=z*(G?1:Math.max(2*he.r/we,2*he.r/Te))/2;Ai(he,function(Ge){Ge.r+=Pe}),Ai(he,Lx),Ai(he,function(Ge){Ge.r-=Pe})}return Dx(he,we/2,Te/2,G?1:1/Math.max(2*he.r/we,2*he.r/Te)),le}return W.size=function(K){return arguments.length?(U=K,W):U},W.radius=function(K){return arguments.length?(G=K==null||typeof K=="function"?K:+K,W):G},W.padding=function(K){return arguments.length?(z=+K,W):z},uf(W,C)};function JO(C,z){return C.value-z.value}function $d(C,z){var U=C._pack_next;C._pack_next=z,z._pack_prev=C,z._pack_next=U,U._pack_prev=z}function Cx(C,z){C._pack_next=z,z._pack_prev=C}function Ex(C,z){var U=z.x-C.x,G=z.y-C.y,W=C.r+z.r;return .999*W*W>U*U+G*G}function Lx(C){if(!(z=C.children)||!(Pe=z.length))return;var z,U=1/0,G=-1/0,W=1/0,K=-1/0,fe,le,he,we,Te,Re,Pe;function Ge(Ve){U=Math.min(Ve.x-Ve.r,U),G=Math.max(Ve.x+Ve.r,G),W=Math.min(Ve.y-Ve.r,W),K=Math.max(Ve.y+Ve.r,K)}if(z.forEach(KO),fe=z[0],fe.x=-fe.r,fe.y=0,Ge(fe),Pe>1&&(le=z[1],le.x=le.r,le.y=0,Ge(le),Pe>2))for(he=z[2],Rx(fe,le,he),Ge(he),$d(fe,he),fe._pack_prev=he,$d(he,le),le=fe._pack_next,we=3;weqe.x&&(qe=tr),tr.depth>Ue.depth&&(Ue=tr)});var Ze=z(Ne,qe)/2-Ne.x,Ke=U[0]/(qe.x+z(qe,Ne)/2+Ze),Ve=U[1]/(Ue.depth||1);ff(Ge,function(tr){tr.x=(tr.x+Ze)*Ke,tr.y=tr.depth*Ve})}return Pe}function K(Te){for(var Re={A:null,children:[Te]},Pe=[Re],Ge;(Ge=Pe.pop())!=null;)for(var Je=Ge.children,Ne,qe=0,Ue=Je.length;qe0&&($O(eB(Ne,Te,Pe),Te,tr),Ue+=tr,Ze+=tr),Ke+=Ne.m,Ue+=Ge.m,Ve+=qe.m,Ze+=Je.m;Ne&&!ep(Je)&&(Je.t=Ne,Je.m+=Ke-Ze),Ge&&!jd(qe)&&(qe.t=Ge,qe.m+=Ue-Ve,Pe=Te)}return Pe}function we(Te){Te.x*=U[0],Te.y=Te.depth*U[1]}return W.separation=function(Te){return arguments.length?(z=Te,W):z},W.size=function(Te){return arguments.length?(G=(U=Te)==null?we:null,W):G?null:U},W.nodeSize=function(Te){return arguments.length?(G=(U=Te)==null?null:we,W):G?U:null},uf(W,C)};function Px(C,z){return C.parent==z.parent?1:2}function jd(C){var z=C.children;return z.length?z[0]:C.t}function ep(C){var z=C.children,U;return(U=z.length)?z[U-1]:C.t}function $O(C,z,U){var G=U/(z.i-C.i);z.c-=G,z.s+=U,C.c+=G,z.z+=U,z.m+=U}function jO(C){for(var z=0,U=0,G=C.children,W=G.length,K;--W>=0;)K=G[W],K.z+=z,K.m+=z,z+=K.s+(U+=K.c)}function eB(C,z,U){return C.a.parent===z.parent?C.a:U}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),z=Px,U=[1,1],G=!1;function W(K,fe){var le=C.call(this,K,fe),he=le[0],we,Te=0;Ai(he,function(Ne){var qe=Ne.children;qe&&qe.length?(Ne.x=tB(qe),Ne.y=rB(qe)):(Ne.x=we?Te+=z(Ne,we):0,Ne.y=0,we=Ne)});var Re=Fx(he),Pe=Ix(he),Ge=Re.x-z(Re,Pe)/2,Je=Pe.x+z(Pe,Re)/2;return Ai(he,G?function(Ne){Ne.x=(Ne.x-he.x)*U[0],Ne.y=(he.y-Ne.y)*U[1]}:function(Ne){Ne.x=(Ne.x-Ge)/(Je-Ge)*U[0],Ne.y=(1-(he.y?Ne.y/he.y:1))*U[1]}),le}return W.separation=function(K){return arguments.length?(z=K,W):z},W.size=function(K){return arguments.length?(G=(U=K)==null,W):G?null:U},W.nodeSize=function(K){return arguments.length?(G=(U=K)!=null,W):G?U:null},uf(W,C)};function rB(C){return 1+e.max(C,function(z){return z.y})}function tB(C){return C.reduce(function(z,U){return z+U.x},0)/C.length}function Fx(C){var z=C.children;return z&&z.length?Fx(z[0]):C}function Ix(C){var z=C.children,U;return z&&(U=z.length)?Ix(z[U-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),z=Math.round,U=[1,1],G=null,W=rp,K=!1,fe,le="squarify",he=.5*(1+Math.sqrt(5));function we(Ne,qe){for(var Ue=-1,Ze=Ne.length,Ke,Ve;++Ue0;)Ze.push(Ve=Ke[cr-1]),Ze.area+=Ve.area,le!=="squarify"||(fr=Pe(Ze,dr))<=tr?(Ke.pop(),tr=fr):(Ze.area-=Ze.pop().area,Ge(Ze,dr,Ue,!1),dr=Math.min(Ue.dx,Ue.dy),Ze.length=Ze.area=0,tr=1/0);Ze.length&&(Ge(Ze,dr,Ue,!0),Ze.length=Ze.area=0),qe.forEach(Te)}}function Re(Ne){var qe=Ne.children;if(qe&&qe.length){var Ue=W(Ne),Ze=qe.slice(),Ke,Ve=[];for(we(Ze,Ue.dx*Ue.dy/Ne.value),Ve.area=0;Ke=Ze.pop();)Ve.push(Ke),Ve.area+=Ke.area,Ke.z!=null&&(Ge(Ve,Ke.z?Ue.dx:Ue.dy,Ue,!Ze.length),Ve.length=Ve.area=0);qe.forEach(Re)}}function Pe(Ne,qe){for(var Ue=Ne.area,Ze,Ke=0,Ve=1/0,tr=-1,fr=Ne.length;++trKe&&(Ke=Ze));return Ue*=Ue,qe*=qe,Ue?Math.max(qe*Ke*he/Ue,Ue/(qe*Ve*he)):1/0}function Ge(Ne,qe,Ue,Ze){var Ke=-1,Ve=Ne.length,tr=Ue.x,fr=Ue.y,dr=qe?z(Ne.area/qe):0,cr;if(qe==Ue.dx){for((Ze||dr>Ue.dy)&&(dr=Ue.dy);++KeUe.dx)&&(dr=Ue.dx);++Ke1);return C+z*G*Math.sqrt(-2*Math.log(K)/K)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var z=e.random.irwinHall(C);return function(){return z()/C}},irwinHall:function(C){return function(){for(var z=0,U=0;U2?iB:nB,we=G?AO:TO;return W=he(C,z,we,U),K=he(z,C,we,Tl),le}function le(he){return W(he)}return le.invert=function(he){return K(he)},le.domain=function(he){return arguments.length?(C=he.map(Number),fe()):C},le.range=function(he){return arguments.length?(z=he,fe()):z},le.rangeRound=function(he){return le.range(he).interpolate(xx)},le.clamp=function(he){return arguments.length?(G=he,fe()):G},le.interpolate=function(he){return arguments.length?(U=he,fe()):U},le.ticks=function(he){return ap(C,he)},le.tickFormat=function(he,we){return d3_scale_linearTickFormat(C,he,we)},le.nice=function(he){return Bx(C,he),fe()},le.copy=function(){return qx(C,z,U,G)},fe()}function Ox(C,z){return e.rebind(C,z,"range","rangeRound","interpolate","clamp")}function Bx(C,z){return tp(C,zx(np(C,z)[2])),tp(C,zx(np(C,z)[2])),C}function np(C,z){z==null&&(z=10);var U=yc(C),G=U[1]-U[0],W=Math.pow(10,Math.floor(Math.log(G/z)/Math.LN10)),K=z/G*W;return K<=.15?W*=10:K<=.35?W*=5:K<=.75&&(W*=2),U[0]=Math.ceil(U[0]/W)*W,U[1]=Math.floor(U[1]/W)*W+W*.5,U[2]=W,U}function ap(C,z){return e.range.apply(e,np(C,z))}var oB={s:1,g:1,p:1,r:1,e:1};function Ux(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function ffe(C,z){var U=Ux(z[2]);return C in oB?Math.abs(U-Ux(Math.max(m(z[0]),m(z[1]))))+ +(C!=="e"):U-(C==="%")*2}e.scale.log=function(){return Hx(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Hx(C,z,U,G){function W(le){return(U?Math.log(le<0?0:le):-Math.log(le>0?0:-le))/Math.log(z)}function K(le){return U?Math.pow(z,le):-Math.pow(z,-le)}function fe(le){return C(W(le))}return fe.invert=function(le){return K(C.invert(le))},fe.domain=function(le){return arguments.length?(U=le[0]>=0,C.domain((G=le.map(Number)).map(W)),fe):G},fe.base=function(le){return arguments.length?(z=+le,C.domain(G.map(W)),fe):z},fe.nice=function(){var le=tp(G.map(W),U?Math:lB);return C.domain(le),G=le.map(K),fe},fe.ticks=function(){var le=yc(G),he=[],we=le[0],Te=le[1],Re=Math.floor(W(we)),Pe=Math.ceil(W(Te)),Ge=z%1?2:z;if(isFinite(Pe-Re)){if(U){for(;Re0;Je--)he.push(K(Re)*Je);for(Re=0;he[Re]Te;Pe--);he=he.slice(Re,Pe)}return he},fe.copy=function(){return Hx(C.copy(),z,U,G)},Ox(fe,C)}var lB={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Vx(e.scale.linear(),1,[0,1])};function Vx(C,z,U){var G=xc(z),W=xc(1/z);function K(fe){return C(G(fe))}return K.invert=function(fe){return W(C.invert(fe))},K.domain=function(fe){return arguments.length?(C.domain((U=fe.map(Number)).map(G)),K):U},K.ticks=function(fe){return ap(U,fe)},K.tickFormat=function(fe,le){return d3_scale_linearTickFormat(U,fe,le)},K.nice=function(fe){return K.domain(Bx(U,fe))},K.exponent=function(fe){return arguments.length?(G=xc(z=fe),W=xc(1/z),C.domain(U.map(G)),K):z},K.copy=function(){return Vx(C.copy(),z,U)},Ox(K,C)}function xc(C){return function(z){return z<0?-Math.pow(-z,C):Math.pow(z,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Gx([],{t:"range",a:[[]]})};function Gx(C,z){var U,G,W;function K(le){return G[((U.get(le)||(z.t==="range"?U.set(le,C.push(le)):NaN))-1)%G.length]}function fe(le,he){return e.range(C.length).map(function(we){return le+he*we})}return K.domain=function(le){if(!arguments.length)return C;C=[],U=new x;for(var he=-1,we=le.length,Te;++he0?U[K-1]:C[0],KPe?0:1;if(Te=Qe)return he(Te,Je)+(we?he(we,1-Je):"")+"Z";var Ne,qe,Ue,Ze,Ke=0,Ve=0,tr,fr,dr,cr,pr,gr,Fr,mr,Cr=[];if((Ze=(+fe.apply(this,arguments)||0)/2)&&(Ue=G===bc?Math.sqrt(we*we+Te*Te):+G.apply(this,arguments),Je||(Ve*=-1),Te&&(Ve=_r(Ue/Te*Math.sin(Ze))),we&&(Ke=_r(Ue/we*Math.sin(Ze)))),Te){tr=Te*Math.cos(Re+Ve),fr=Te*Math.sin(Re+Ve),dr=Te*Math.cos(Pe-Ve),cr=Te*Math.sin(Pe-Ve);var ut=Math.abs(Pe-Re-2*Ve)<=Xe?0:1;if(Ve&&_c(tr,fr,dr,cr)===Je^ut){var Bt=(Re+Pe)/2;tr=Te*Math.cos(Bt),fr=Te*Math.sin(Bt),dr=cr=null}}else tr=fr=0;if(we){pr=we*Math.cos(Pe-Ke),gr=we*Math.sin(Pe-Ke),Fr=we*Math.cos(Re+Ke),mr=we*Math.sin(Re+Ke);var dt=Math.abs(Re-Pe+2*Ke)<=Xe?0:1;if(Ke&&_c(pr,gr,Fr,mr)===1-Je^dt){var sr=(Re+Pe)/2;pr=we*Math.cos(sr),gr=we*Math.sin(sr),Fr=mr=null}}else pr=gr=0;if(Ge>Le&&(Ne=Math.min(Math.abs(Te-we)/2,+U.apply(this,arguments)))>.001){qe=we0?0:1}function wc(C,z,U,G,W){var K=C[0]-z[0],fe=C[1]-z[1],le=(W?G:-G)/Math.sqrt(K*K+fe*fe),he=le*fe,we=-le*K,Te=C[0]+he,Re=C[1]+we,Pe=z[0]+he,Ge=z[1]+we,Je=(Te+Pe)/2,Ne=(Re+Ge)/2,qe=Pe-Te,Ue=Ge-Re,Ze=qe*qe+Ue*Ue,Ke=U-G,Ve=Te*Ge-Pe*Re,tr=(Ue<0?-1:1)*Math.sqrt(Math.max(0,Ke*Ke*Ze-Ve*Ve)),fr=(Ve*Ue-qe*tr)/Ze,dr=(-Ve*qe-Ue*tr)/Ze,cr=(Ve*Ue+qe*tr)/Ze,pr=(-Ve*qe+Ue*tr)/Ze,gr=fr-Je,Fr=dr-Ne,mr=cr-Je,Cr=pr-Ne;return gr*gr+Fr*Fr>mr*mr+Cr*Cr&&(fr=cr,dr=pr),[[fr-he,dr-we],[fr*U/Ke,dr*U/Ke]]}function Qx(){return!0}function $x(C){var z=Ls,U=tf,G=Qx,W=Ja,K=W.key,fe=.7;function le(he){var we=[],Te=[],Re=-1,Pe=he.length,Ge,Je=Vr(z),Ne=Vr(U);function qe(){we.push("M",W(C(Te),fe))}for(;++Re1?C.join("L"):C+"Z"}function jx(C){return C.join("L")+"Z"}function gB(C){for(var z=0,U=C.length,G=C[0],W=[G[0],",",G[1]];++z1&&W.push("H",G[0]),W.join("")}function op(C){for(var z=0,U=C.length,G=C[0],W=[G[0],",",G[1]];++z1){le=z[1],K=C[he],he++,G+="C"+(W[0]+fe[0])+","+(W[1]+fe[1])+","+(K[0]-le[0])+","+(K[1]-le[1])+","+K[0]+","+K[1];for(var we=2;we9&&(K=U*3/Math.sqrt(K),fe[le]=K*G,fe[le+1]=K*W));for(le=-1;++le<=he;)K=(C[Math.min(he,le+1)][0]-C[Math.max(0,le-1)][0])/(6*(1+fe[le]*fe[le])),z.push([K||0,fe[le]*K||0]);return z}function AB(C){return C.length<3?Ja(C):C[0]+Mc(C,TB(C))}e.svg.line.radial=function(){var C=$x(nb);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function nb(C){for(var z,U=-1,G=C.length,W,K;++UXe)+",1 "+Re}function we(Te,Re,Pe,Ge){return"Q 0,0 "+Ge}return K.radius=function(Te){return arguments.length?(U=Vr(Te),K):U},K.source=function(Te){return arguments.length?(C=Vr(Te),K):C},K.target=function(Te){return arguments.length?(z=Vr(Te),K):z},K.startAngle=function(Te){return arguments.length?(G=Vr(Te),K):G},K.endAngle=function(Te){return arguments.length?(W=Vr(Te),K):W},K};function kB(C){return C.radius}e.svg.diagonal=function(){var C=ib,z=ob,U=lb;function G(W,K){var fe=C.call(this,W,K),le=z.call(this,W,K),he=(fe.y+le.y)/2,we=[fe,{x:fe.x,y:he},{x:le.x,y:he},le];return we=we.map(U),"M"+we[0]+"C"+we[1]+" "+we[2]+" "+we[3]}return G.source=function(W){return arguments.length?(C=Vr(W),G):C},G.target=function(W){return arguments.length?(z=Vr(W),G):z},G.projection=function(W){return arguments.length?(U=W,G):U},G};function lb(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),z=lb,U=C.projection;return C.projection=function(G){return arguments.length?U(SB(z=G)):z},C};function SB(C){return function(){var z=C.apply(this,arguments),U=z[0],G=z[1]-je;return[U*Math.cos(G),U*Math.sin(G)]}}e.svg.symbol=function(){var C=EB,z=CB;function U(G,W){return(ub.get(C.call(this,G,W))||sb)(z.call(this,G,W))}return U.type=function(G){return arguments.length?(C=Vr(G),U):C},U.size=function(G){return arguments.length?(z=Vr(G),U):z},U};function CB(){return 64}function EB(){return"circle"}function sb(C){var z=Math.sqrt(C/Xe);return"M0,"+z+"A"+z+","+z+" 0 1,1 0,"+-z+"A"+z+","+z+" 0 1,1 0,"+z+"Z"}var ub=e.map({circle:sb,cross:function(C){var z=Math.sqrt(C/5)/2;return"M"+-3*z+","+-z+"H"+-z+"V"+-3*z+"H"+z+"V"+-z+"H"+3*z+"V"+z+"H"+z+"V"+3*z+"H"+-z+"V"+z+"H"+-3*z+"Z"},diamond:function(C){var z=Math.sqrt(C/(2*fb)),U=z*fb;return"M0,"+-z+"L"+U+",0 0,"+z+" "+-U+",0Z"},square:function(C){var z=Math.sqrt(C)/2;return"M"+-z+","+-z+"L"+z+","+-z+" "+z+","+z+" "+-z+","+z+"Z"},"triangle-down":function(C){var z=Math.sqrt(C/Tc),U=z*Tc/2;return"M0,"+U+"L"+z+","+-U+" "+-z+","+-U+"Z"},"triangle-up":function(C){var z=Math.sqrt(C/Tc),U=z*Tc/2;return"M0,"+-U+"L"+z+","+U+" "+-z+","+U+"Z"}});e.svg.symbolTypes=ub.keys();var Tc=Math.sqrt(3),fb=Math.tan(30*ir);j.transition=function(C){for(var z=Al||++hb,U=hp(C),G=[],W,K,fe=kc||{time:Date.now(),ease:lO,delay:0,duration:250},le=-1,he=this.length;++le0;)Re[--Ze].call(C,Ue);if(qe>=1)return fe.event&&fe.event.end.call(C,C.__data__,z),--K.count?delete K[G]:delete C[U],1}fe||(le=W.time,he=fc(Pe,0,le),fe=K[G]={tween:new x,time:le,timer:he,delay:W.delay,duration:W.duration,ease:W.ease,index:z},W=null,++K.count)}e.svg.axis=function(){var C=e.scale.linear(),z=vb,U=6,G=6,W=3,K=[10],fe=null,le;function he(we){we.each(function(){var Te=e.select(this),Re=this.__chart__||C,Pe=this.__chart__=C.copy(),Ge=fe==null?Pe.ticks?Pe.ticks.apply(Pe,K):Pe.domain():fe,Je=le==null?Pe.tickFormat?Pe.tickFormat.apply(Pe,K):N:le,Ne=Te.selectAll(".tick").data(Ge,Pe),qe=Ne.enter().insert("g",".domain").attr("class","tick").style("opacity",Le),Ue=e.transition(Ne.exit()).style("opacity",Le).remove(),Ze=e.transition(Ne.order()).style("opacity",1),Ke=Math.max(U,0)+W,Ve,tr=mc(Pe),fr=Te.selectAll(".domain").data([0]),dr=(fr.enter().append("path").attr("class","domain"),e.transition(fr));qe.append("line"),qe.append("text");var cr=qe.select("line"),pr=Ze.select("line"),gr=Ne.select("text").text(Je),Fr=qe.select("text"),mr=Ze.select("text"),Cr=z==="top"||z==="left"?-1:1,ut,Bt,dt,sr;if(z==="bottom"||z==="top"?(Ve=RB,ut="x",dt="y",Bt="x2",sr="y2",gr.attr("dy",Cr<0?"0em":".71em").style("text-anchor","middle"),dr.attr("d","M"+tr[0]+","+Cr*G+"V0H"+tr[1]+"V"+Cr*G)):(Ve=PB,ut="y",dt="x",Bt="y2",sr="x2",gr.attr("dy",".32em").style("text-anchor",Cr<0?"end":"start"),dr.attr("d","M"+Cr*G+","+tr[0]+"H0V"+tr[1]+"H"+Cr*G)),cr.attr(sr,Cr*U),Fr.attr(dt,Cr*Ke),pr.attr(Bt,0).attr(sr,Cr*U),mr.attr(ut,0).attr(dt,Cr*Ke),Pe.rangeBand){var Ir=Pe,Or=Ir.rangeBand()/2;Re=Pe=function(ft){return Ir(ft)+Or}}else Re.rangeBand?Re=Pe:Ue.call(Ve,Pe,Re);qe.call(Ve,Re,Pe),Ze.call(Ve,Pe,Pe)})}return he.scale=function(we){return arguments.length?(C=we,he):C},he.orient=function(we){return arguments.length?(z=we in DB?we+"":vb,he):z},he.ticks=function(){return arguments.length?(K=t(arguments),he):K},he.tickValues=function(we){return arguments.length?(fe=we,he):fe},he.tickFormat=function(we){return arguments.length?(le=we,he):le},he.tickSize=function(we){var Te=arguments.length;return Te?(U=+we,G=+arguments[Te-1],he):U},he.innerTickSize=function(we){return arguments.length?(U=+we,he):U},he.outerTickSize=function(we){return arguments.length?(G=+we,he):G},he.tickPadding=function(we){return arguments.length?(W=+we,he):W},he.tickSubdivide=function(){return arguments.length&&he},he};var vb="bottom",DB={top:1,right:1,bottom:1,left:1};function RB(C,z,U){C.attr("transform",function(G){var W=z(G);return"translate("+(isFinite(W)?W:U(G))+",0)"})}function PB(C,z,U){C.attr("transform",function(G){var W=z(G);return"translate(0,"+(isFinite(W)?W:U(G))+")"})}e.svg.brush=function(){var C=ee(Te,"brushstart","brush","brushend"),z=null,U=null,G=[0,0],W=[0,0],K,fe,le=!0,he=!0,we=vp[0];function Te(Ne){Ne.each(function(){var qe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Je).on("touchstart.brush",Je),Ue=qe.selectAll(".background").data([0]);Ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),qe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ze=qe.selectAll(".resize").data(we,N);Ze.exit().remove(),Ze.enter().append("g").attr("class",function(fr){return"resize "+fr}).style("cursor",function(fr){return FB[fr]}).append("rect").attr("x",function(fr){return/[ew]$/.test(fr)?-3:null}).attr("y",function(fr){return/^[ns]/.test(fr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ze.style("display",Te.empty()?"none":null);var Ke=e.transition(qe),Ve=e.transition(Ue),tr;z&&(tr=mc(z),Ve.attr("x",tr[0]).attr("width",tr[1]-tr[0]),Pe(Ke)),U&&(tr=mc(U),Ve.attr("y",tr[0]).attr("height",tr[1]-tr[0]),Ge(Ke)),Re(Ke)})}Te.event=function(Ne){Ne.each(function(){var qe=C.of(this,arguments),Ue={x:G,y:W,i:K,j:fe},Ze=this.__chart__||Ue;this.__chart__=Ue,Al?e.select(this).transition().each("start.brush",function(){K=Ze.i,fe=Ze.j,G=Ze.x,W=Ze.y,qe({type:"brushstart"})}).tween("brush:brush",function(){var Ke=gc(G,Ue.x),Ve=gc(W,Ue.y);return K=fe=null,function(tr){G=Ue.x=Ke(tr),W=Ue.y=Ve(tr),qe({type:"brush",mode:"resize"})}}).each("end.brush",function(){K=Ue.i,fe=Ue.j,qe({type:"brush",mode:"resize"}),qe({type:"brushend"})}):(qe({type:"brushstart"}),qe({type:"brush",mode:"resize"}),qe({type:"brushend"}))})};function Re(Ne){Ne.selectAll(".resize").attr("transform",function(qe){return"translate("+G[+/e$/.test(qe)]+","+W[+/^s/.test(qe)]+")"})}function Pe(Ne){Ne.select(".extent").attr("x",G[0]),Ne.selectAll(".extent,.n>rect,.s>rect").attr("width",G[1]-G[0])}function Ge(Ne){Ne.select(".extent").attr("y",W[0]),Ne.selectAll(".extent,.e>rect,.w>rect").attr("height",W[1]-W[0])}function Je(){var Ne=this,qe=e.select(e.event.target),Ue=C.of(Ne,arguments),Ze=e.select(Ne),Ke=qe.datum(),Ve=!/^(n|s)$/.test(Ke)&&z,tr=!/^(e|w)$/.test(Ke)&&U,fr=qe.classed("extent"),dr=Oe(Ne),cr,pr=e.mouse(Ne),gr,Fr=e.select(o(Ne)).on("keydown.brush",ut).on("keyup.brush",Bt);if(e.event.changedTouches?Fr.on("touchmove.brush",dt).on("touchend.brush",Ir):Fr.on("mousemove.brush",dt).on("mouseup.brush",Ir),Ze.interrupt().selectAll("*").interrupt(),fr)pr[0]=G[0]-pr[0],pr[1]=W[0]-pr[1];else if(Ke){var mr=+/w$/.test(Ke),Cr=+/^n/.test(Ke);gr=[G[1-mr]-pr[0],W[1-Cr]-pr[1]],pr[0]=G[mr],pr[1]=W[Cr]}else e.event.altKey&&(cr=pr.slice());Ze.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",qe.style("cursor")),Ue({type:"brushstart"}),dt();function ut(){e.event.keyCode==32&&(fr||(cr=null,pr[0]-=G[1],pr[1]-=W[1],fr=2),X())}function Bt(){e.event.keyCode==32&&fr==2&&(pr[0]+=G[1],pr[1]+=W[1],fr=0,X())}function dt(){var Or=e.mouse(Ne),ft=!1;gr&&(Or[0]+=gr[0],Or[1]+=gr[1]),fr||(e.event.altKey?(cr||(cr=[(G[0]+G[1])/2,(W[0]+W[1])/2]),pr[0]=G[+(Or[0]{(function(e,r){typeof Pc=="object"&&typeof bb!="undefined"?r(Pc):(e=e||self,r(e.d3=e.d3||{}))})(Pc,function(e){"use strict";var r=new Date,t=new Date;function n(ae,ce,pe,ve){function xe(me){return ae(me=arguments.length===0?new Date:new Date(+me)),me}return xe.floor=function(me){return ae(me=new Date(+me)),me},xe.ceil=function(me){return ae(me=new Date(me-1)),ce(me,1),ae(me),me},xe.round=function(me){var de=xe(me),_e=xe.ceil(me);return me-de<_e-me?de:_e},xe.offset=function(me,de){return ce(me=new Date(+me),de==null?1:Math.floor(de)),me},xe.range=function(me,de,_e){var Ae=[],Ie;if(me=xe.ceil(me),_e=_e==null?1:Math.floor(_e),!(me0))return Ae;do Ae.push(Ie=new Date(+me)),ce(me,_e),ae(me);while(Ie=de)for(;ae(de),!me(de);)de.setTime(de-1)},function(de,_e){if(de>=de)if(_e<0)for(;++_e<=0;)for(;ce(de,-1),!me(de););else for(;--_e>=0;)for(;ce(de,1),!me(de););})},pe&&(xe.count=function(me,de){return r.setTime(+me),t.setTime(+de),ae(r),ae(t),Math.floor(pe(r,t))},xe.every=function(me){return me=Math.floor(me),!isFinite(me)||!(me>0)?null:me>1?xe.filter(ve?function(de){return ve(de)%me===0}:function(de){return xe.count(0,de)%me===0}):xe}),xe}var a=n(function(){},function(ae,ce){ae.setTime(+ae+ce)},function(ae,ce){return ce-ae});a.every=function(ae){return ae=Math.floor(ae),!isFinite(ae)||!(ae>0)?null:ae>1?n(function(ce){ce.setTime(Math.floor(ce/ae)*ae)},function(ce,pe){ce.setTime(+ce+pe*ae)},function(ce,pe){return(pe-ce)/ae}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,h=n(function(ae){ae.setTime(ae-ae.getMilliseconds())},function(ae,ce){ae.setTime(+ae+ce*i)},function(ae,ce){return(ce-ae)/i},function(ae){return ae.getUTCSeconds()}),p=h.range,_=n(function(ae){ae.setTime(ae-ae.getMilliseconds()-ae.getSeconds()*i)},function(ae,ce){ae.setTime(+ae+ce*l)},function(ae,ce){return(ce-ae)/l},function(ae){return ae.getMinutes()}),y=_.range,b=n(function(ae){ae.setTime(ae-ae.getMilliseconds()-ae.getSeconds()*i-ae.getMinutes()*l)},function(ae,ce){ae.setTime(+ae+ce*u)},function(ae,ce){return(ce-ae)/u},function(ae){return ae.getHours()}),T=b.range,m=n(function(ae){ae.setHours(0,0,0,0)},function(ae,ce){ae.setDate(ae.getDate()+ce)},function(ae,ce){return(ce-ae-(ce.getTimezoneOffset()-ae.getTimezoneOffset())*l)/s},function(ae){return ae.getDate()-1}),k=m.range;function S(ae){return n(function(ce){ce.setDate(ce.getDate()-(ce.getDay()+7-ae)%7),ce.setHours(0,0,0,0)},function(ce,pe){ce.setDate(ce.getDate()+pe*7)},function(ce,pe){return(pe-ce-(pe.getTimezoneOffset()-ce.getTimezoneOffset())*l)/f})}var x=S(0),M=S(1),v=S(2),w=S(3),g=S(4),c=S(5),A=S(6),d=x.range,D=M.range,E=v.range,R=w.range,N=g.range,I=c.range,F=A.range,L=n(function(ae){ae.setDate(1),ae.setHours(0,0,0,0)},function(ae,ce){ae.setMonth(ae.getMonth()+ce)},function(ae,ce){return ce.getMonth()-ae.getMonth()+(ce.getFullYear()-ae.getFullYear())*12},function(ae){return ae.getMonth()}),P=L.range,O=n(function(ae){ae.setMonth(0,1),ae.setHours(0,0,0,0)},function(ae,ce){ae.setFullYear(ae.getFullYear()+ce)},function(ae,ce){return ce.getFullYear()-ae.getFullYear()},function(ae){return ae.getFullYear()});O.every=function(ae){return!isFinite(ae=Math.floor(ae))||!(ae>0)?null:n(function(ce){ce.setFullYear(Math.floor(ce.getFullYear()/ae)*ae),ce.setMonth(0,1),ce.setHours(0,0,0,0)},function(ce,pe){ce.setFullYear(ce.getFullYear()+pe*ae)})};var B=O.range,X=n(function(ae){ae.setUTCSeconds(0,0)},function(ae,ce){ae.setTime(+ae+ce*l)},function(ae,ce){return(ce-ae)/l},function(ae){return ae.getUTCMinutes()}),$=X.range,ee=n(function(ae){ae.setUTCMinutes(0,0,0)},function(ae,ce){ae.setTime(+ae+ce*u)},function(ae,ce){return(ce-ae)/u},function(ae){return ae.getUTCHours()}),Y=ee.range,q=n(function(ae){ae.setUTCHours(0,0,0,0)},function(ae,ce){ae.setUTCDate(ae.getUTCDate()+ce)},function(ae,ce){return(ce-ae)/s},function(ae){return ae.getUTCDate()-1}),Q=q.range;function oe(ae){return n(function(ce){ce.setUTCDate(ce.getUTCDate()-(ce.getUTCDay()+7-ae)%7),ce.setUTCHours(0,0,0,0)},function(ce,pe){ce.setUTCDate(ce.getUTCDate()+pe*7)},function(ce,pe){return(pe-ce)/f})}var Z=oe(0),se=oe(1),j=oe(2),V=oe(3),re=oe(4),H=oe(5),ne=oe(6),ue=Z.range,ye=se.range,ke=j.range,Me=V.range,ge=re.range,Ee=H.range,Ce=ne.range,Fe=n(function(ae){ae.setUTCDate(1),ae.setUTCHours(0,0,0,0)},function(ae,ce){ae.setUTCMonth(ae.getUTCMonth()+ce)},function(ae,ce){return ce.getUTCMonth()-ae.getUTCMonth()+(ce.getUTCFullYear()-ae.getUTCFullYear())*12},function(ae){return ae.getUTCMonth()}),ie=Fe.range,J=n(function(ae){ae.setUTCMonth(0,1),ae.setUTCHours(0,0,0,0)},function(ae,ce){ae.setUTCFullYear(ae.getUTCFullYear()+ce)},function(ae,ce){return ce.getUTCFullYear()-ae.getUTCFullYear()},function(ae){return ae.getUTCFullYear()});J.every=function(ae){return!isFinite(ae=Math.floor(ae))||!(ae>0)?null:n(function(ce){ce.setUTCFullYear(Math.floor(ce.getUTCFullYear()/ae)*ae),ce.setUTCMonth(0,1),ce.setUTCHours(0,0,0,0)},function(ce,pe){ce.setUTCFullYear(ce.getUTCFullYear()+pe*ae)})};var te=J.range;e.timeDay=m,e.timeDays=k,e.timeFriday=c,e.timeFridays=I,e.timeHour=b,e.timeHours=T,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=_,e.timeMinutes=y,e.timeMonday=M,e.timeMondays=D,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=F,e.timeSecond=h,e.timeSeconds=p,e.timeSunday=x,e.timeSundays=d,e.timeThursday=g,e.timeThursdays=N,e.timeTuesday=v,e.timeTuesdays=E,e.timeWednesday=w,e.timeWednesdays=R,e.timeWeek=x,e.timeWeeks=d,e.timeYear=O,e.timeYears=B,e.utcDay=q,e.utcDays=Q,e.utcFriday=H,e.utcFridays=Ee,e.utcHour=ee,e.utcHours=Y,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=X,e.utcMinutes=$,e.utcMonday=se,e.utcMondays=ye,e.utcMonth=Fe,e.utcMonths=ie,e.utcSaturday=ne,e.utcSaturdays=Ce,e.utcSecond=h,e.utcSeconds=p,e.utcSunday=Z,e.utcSundays=ue,e.utcThursday=re,e.utcThursdays=ge,e.utcTuesday=j,e.utcTuesdays=ke,e.utcWednesday=V,e.utcWednesdays=Me,e.utcWeek=Z,e.utcWeeks=ue,e.utcYear=J,e.utcYears=te,Object.defineProperty(e,"__esModule",{value:!0})})});var zs=be((Fc,_b)=>{(function(e,r){typeof Fc=="object"&&typeof _b!="undefined"?r(Fc,dp()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Fc,function(e,r){"use strict";function t(Se){if(0<=Se.y&&Se.y<100){var Le=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Le.setFullYear(Se.y),Le}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function n(Se){if(0<=Se.y&&Se.y<100){var Le=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Le.setUTCFullYear(Se.y),Le}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function a(Se,Le,Ye){return{y:Se,m:Le,d:Ye,H:0,M:0,S:0,L:0}}function o(Se){var Le=Se.dateTime,Ye=Se.date,Xe=Se.time,$e=Se.periods,Qe=Se.days,je=Se.shortDays,ir=Se.months,yr=Se.shortMonths,xr=p($e),wr=_($e),$r=p(Qe),_r=_(Qe),Nr=p(je),et=_(je),Sr=p(ir),qr=_(ir),gt=p(yr),Hr=_(yr),Zr={a:jt,A:ea,b:Nn,B:Ma,c:null,d:L,e:L,f:$,H:P,I:O,j:B,L:X,m:ee,M:Y,p:wi,q:$i,Q:de,s:_e,S:q,u:Q,U:oe,V:Z,w:se,W:j,x:null,X:null,y:V,Y:re,Z:H,"%":me},zt={a:ji,A:eo,b:on,B:ko,c:null,d:ne,e:ne,f:ge,H:ue,I:ye,j:ke,L:Me,m:Ee,M:Ce,p:Mi,q:Ti,Q:de,s:_e,S:Fe,u:ie,U:J,V:te,w:ae,W:ce,x:null,X:null,y:pe,Y:ve,Z:xe,"%":me},nr={a:Dt,A:at,b:$t,B:Zt,c:Rt,d:g,e:g,f:R,H:A,I:A,j:c,L:E,m:w,M:d,p:Qr,q:v,Q:I,s:F,S:D,u:b,U:T,V:m,w:y,W:k,x:vt,X:Mt,y:x,Y:S,Z:M,"%":N};Zr.x=Pr(Ye,Zr),Zr.X=Pr(Xe,Zr),Zr.c=Pr(Le,Zr),zt.x=Pr(Ye,zt),zt.X=Pr(Xe,zt),zt.c=Pr(Le,zt);function Pr(br,it){return function(ct){var hr=[],bn=-1,bt=0,_n=br.length,Vr,Za,wl;for(ct instanceof Date||(ct=new Date(+ct));++bn<_n;)br.charCodeAt(bn)===37&&(hr.push(br.slice(bt,bn)),(Za=i[Vr=br.charAt(++bn)])!=null?Vr=br.charAt(++bn):Za=Vr==="e"?" ":"0",(wl=it[Vr])&&(Vr=wl(ct,Za)),hr.push(Vr),bt=bn+1);return hr.push(br.slice(bt,bn)),hr.join("")}}function Kr(br,it){return function(ct){var hr=a(1900,void 0,1),bn=Er(hr,br,ct+="",0),bt,_n;if(bn!=ct.length)return null;if("Q"in hr)return new Date(hr.Q);if("s"in hr)return new Date(hr.s*1e3+("L"in hr?hr.L:0));if(it&&!("Z"in hr)&&(hr.Z=0),"p"in hr&&(hr.H=hr.H%12+hr.p*12),hr.m===void 0&&(hr.m="q"in hr?hr.q:0),"V"in hr){if(hr.V<1||hr.V>53)return null;"w"in hr||(hr.w=1),"Z"in hr?(bt=n(a(hr.y,0,1)),_n=bt.getUTCDay(),bt=_n>4||_n===0?r.utcMonday.ceil(bt):r.utcMonday(bt),bt=r.utcDay.offset(bt,(hr.V-1)*7),hr.y=bt.getUTCFullYear(),hr.m=bt.getUTCMonth(),hr.d=bt.getUTCDate()+(hr.w+6)%7):(bt=t(a(hr.y,0,1)),_n=bt.getDay(),bt=_n>4||_n===0?r.timeMonday.ceil(bt):r.timeMonday(bt),bt=r.timeDay.offset(bt,(hr.V-1)*7),hr.y=bt.getFullYear(),hr.m=bt.getMonth(),hr.d=bt.getDate()+(hr.w+6)%7)}else("W"in hr||"U"in hr)&&("w"in hr||(hr.w="u"in hr?hr.u%7:"W"in hr?1:0),_n="Z"in hr?n(a(hr.y,0,1)).getUTCDay():t(a(hr.y,0,1)).getDay(),hr.m=0,hr.d="W"in hr?(hr.w+6)%7+hr.W*7-(_n+5)%7:hr.w+hr.U*7-(_n+6)%7);return"Z"in hr?(hr.H+=hr.Z/100|0,hr.M+=hr.Z%100,n(hr)):t(hr)}}function Er(br,it,ct,hr){for(var bn=0,bt=it.length,_n=ct.length,Vr,Za;bn=_n)return-1;if(Vr=it.charCodeAt(bn++),Vr===37){if(Vr=it.charAt(bn++),Za=nr[Vr in i?it.charAt(bn++):Vr],!Za||(hr=Za(br,ct,hr))<0)return-1}else if(Vr!=ct.charCodeAt(hr++))return-1}return hr}function Qr(br,it,ct){var hr=xr.exec(it.slice(ct));return hr?(br.p=wr[hr[0].toLowerCase()],ct+hr[0].length):-1}function Dt(br,it,ct){var hr=Nr.exec(it.slice(ct));return hr?(br.w=et[hr[0].toLowerCase()],ct+hr[0].length):-1}function at(br,it,ct){var hr=$r.exec(it.slice(ct));return hr?(br.w=_r[hr[0].toLowerCase()],ct+hr[0].length):-1}function $t(br,it,ct){var hr=gt.exec(it.slice(ct));return hr?(br.m=Hr[hr[0].toLowerCase()],ct+hr[0].length):-1}function Zt(br,it,ct){var hr=Sr.exec(it.slice(ct));return hr?(br.m=qr[hr[0].toLowerCase()],ct+hr[0].length):-1}function Rt(br,it,ct){return Er(br,Le,it,ct)}function vt(br,it,ct){return Er(br,Ye,it,ct)}function Mt(br,it,ct){return Er(br,Xe,it,ct)}function jt(br){return je[br.getDay()]}function ea(br){return Qe[br.getDay()]}function Nn(br){return yr[br.getMonth()]}function Ma(br){return ir[br.getMonth()]}function wi(br){return $e[+(br.getHours()>=12)]}function $i(br){return 1+~~(br.getMonth()/3)}function ji(br){return je[br.getUTCDay()]}function eo(br){return Qe[br.getUTCDay()]}function on(br){return yr[br.getUTCMonth()]}function ko(br){return ir[br.getUTCMonth()]}function Mi(br){return $e[+(br.getUTCHours()>=12)]}function Ti(br){return 1+~~(br.getUTCMonth()/3)}return{format:function(br){var it=Pr(br+="",Zr);return it.toString=function(){return br},it},parse:function(br){var it=Kr(br+="",!1);return it.toString=function(){return br},it},utcFormat:function(br){var it=Pr(br+="",zt);return it.toString=function(){return br},it},utcParse:function(br){var it=Kr(br+="",!0);return it.toString=function(){return br},it}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Se,Le,Ye){var Xe=Se<0?"-":"",$e=(Xe?-Se:Se)+"",Qe=$e.length;return Xe+(Qe68?1900:2e3),Ye+Xe[0].length):-1}function M(Se,Le,Ye){var Xe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Le.slice(Ye,Ye+6));return Xe?(Se.Z=Xe[1]?0:-(Xe[2]+(Xe[3]||"00")),Ye+Xe[0].length):-1}function v(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+1));return Xe?(Se.q=Xe[0]*3-3,Ye+Xe[0].length):-1}function w(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.m=Xe[0]-1,Ye+Xe[0].length):-1}function g(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.d=+Xe[0],Ye+Xe[0].length):-1}function c(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+3));return Xe?(Se.m=0,Se.d=+Xe[0],Ye+Xe[0].length):-1}function A(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.H=+Xe[0],Ye+Xe[0].length):-1}function d(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.M=+Xe[0],Ye+Xe[0].length):-1}function D(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.S=+Xe[0],Ye+Xe[0].length):-1}function E(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+3));return Xe?(Se.L=+Xe[0],Ye+Xe[0].length):-1}function R(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+6));return Xe?(Se.L=Math.floor(Xe[0]/1e3),Ye+Xe[0].length):-1}function N(Se,Le,Ye){var Xe=u.exec(Le.slice(Ye,Ye+1));return Xe?Ye+Xe[0].length:-1}function I(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye));return Xe?(Se.Q=+Xe[0],Ye+Xe[0].length):-1}function F(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye));return Xe?(Se.s=+Xe[0],Ye+Xe[0].length):-1}function L(Se,Le){return f(Se.getDate(),Le,2)}function P(Se,Le){return f(Se.getHours(),Le,2)}function O(Se,Le){return f(Se.getHours()%12||12,Le,2)}function B(Se,Le){return f(1+r.timeDay.count(r.timeYear(Se),Se),Le,3)}function X(Se,Le){return f(Se.getMilliseconds(),Le,3)}function $(Se,Le){return X(Se,Le)+"000"}function ee(Se,Le){return f(Se.getMonth()+1,Le,2)}function Y(Se,Le){return f(Se.getMinutes(),Le,2)}function q(Se,Le){return f(Se.getSeconds(),Le,2)}function Q(Se){var Le=Se.getDay();return Le===0?7:Le}function oe(Se,Le){return f(r.timeSunday.count(r.timeYear(Se)-1,Se),Le,2)}function Z(Se,Le){var Ye=Se.getDay();return Se=Ye>=4||Ye===0?r.timeThursday(Se):r.timeThursday.ceil(Se),f(r.timeThursday.count(r.timeYear(Se),Se)+(r.timeYear(Se).getDay()===4),Le,2)}function se(Se){return Se.getDay()}function j(Se,Le){return f(r.timeMonday.count(r.timeYear(Se)-1,Se),Le,2)}function V(Se,Le){return f(Se.getFullYear()%100,Le,2)}function re(Se,Le){return f(Se.getFullYear()%1e4,Le,4)}function H(Se){var Le=Se.getTimezoneOffset();return(Le>0?"-":(Le*=-1,"+"))+f(Le/60|0,"0",2)+f(Le%60,"0",2)}function ne(Se,Le){return f(Se.getUTCDate(),Le,2)}function ue(Se,Le){return f(Se.getUTCHours(),Le,2)}function ye(Se,Le){return f(Se.getUTCHours()%12||12,Le,2)}function ke(Se,Le){return f(1+r.utcDay.count(r.utcYear(Se),Se),Le,3)}function Me(Se,Le){return f(Se.getUTCMilliseconds(),Le,3)}function ge(Se,Le){return Me(Se,Le)+"000"}function Ee(Se,Le){return f(Se.getUTCMonth()+1,Le,2)}function Ce(Se,Le){return f(Se.getUTCMinutes(),Le,2)}function Fe(Se,Le){return f(Se.getUTCSeconds(),Le,2)}function ie(Se){var Le=Se.getUTCDay();return Le===0?7:Le}function J(Se,Le){return f(r.utcSunday.count(r.utcYear(Se)-1,Se),Le,2)}function te(Se,Le){var Ye=Se.getUTCDay();return Se=Ye>=4||Ye===0?r.utcThursday(Se):r.utcThursday.ceil(Se),f(r.utcThursday.count(r.utcYear(Se),Se)+(r.utcYear(Se).getUTCDay()===4),Le,2)}function ae(Se){return Se.getUTCDay()}function ce(Se,Le){return f(r.utcMonday.count(r.utcYear(Se)-1,Se),Le,2)}function pe(Se,Le){return f(Se.getUTCFullYear()%100,Le,2)}function ve(Se,Le){return f(Se.getUTCFullYear()%1e4,Le,4)}function xe(){return"+0000"}function me(){return"%"}function de(Se){return+Se}function _e(Se){return Math.floor(+Se/1e3)}var Ae;Ie({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ie(Se){return Ae=o(Se),e.timeFormat=Ae.format,e.timeParse=Ae.parse,e.utcFormat=Ae.utcFormat,e.utcParse=Ae.utcParse,Ae}var De="%Y-%m-%dT%H:%M:%S.%LZ";function We(Se){return Se.toISOString()}var Oe=Date.prototype.toISOString?We:e.utcFormat(De);function ze(Se){var Le=new Date(Se);return isNaN(Le)?null:Le}var Be=+new Date("2000-01-01T00:00:00.000Z")?ze:e.utcParse(De);e.isoFormat=Oe,e.isoParse=Be,e.timeFormatDefaultLocale=Ie,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var pp=be((Ic,wb)=>{(function(e,r){typeof Ic=="object"&&typeof wb!="undefined"?r(Ic):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Ic,function(e){"use strict";function r(w){return Math.abs(w=Math.round(w))>=1e21?w.toLocaleString("en").replace(/,/g,""):w.toString(10)}function t(w,g){if((c=(w=g?w.toExponential(g-1):w.toExponential()).indexOf("e"))<0)return null;var c,A=w.slice(0,c);return[A.length>1?A[0]+A.slice(2):A,+w.slice(c+1)]}function n(w){return w=t(Math.abs(w)),w?w[1]:NaN}function a(w,g){return function(c,A){for(var d=c.length,D=[],E=0,R=w[0],N=0;d>0&&R>0&&(N+R+1>A&&(R=Math.max(1,A-N)),D.push(c.substring(d-=R,d+R)),!((N+=R+1)>A));)R=w[E=(E+1)%w.length];return D.reverse().join(g)}}function o(w){return function(g){return g.replace(/[0-9]/g,function(c){return w[+c]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(w){if(!(g=i.exec(w)))throw new Error("invalid format: "+w);var g;return new u({fill:g[1],align:g[2],sign:g[3],symbol:g[4],zero:g[5],width:g[6],comma:g[7],precision:g[8]&&g[8].slice(1),trim:g[9],type:g[10]})}l.prototype=u.prototype;function u(w){this.fill=w.fill===void 0?" ":w.fill+"",this.align=w.align===void 0?">":w.align+"",this.sign=w.sign===void 0?"-":w.sign+"",this.symbol=w.symbol===void 0?"":w.symbol+"",this.zero=!!w.zero,this.width=w.width===void 0?void 0:+w.width,this.comma=!!w.comma,this.precision=w.precision===void 0?void 0:+w.precision,this.trim=!!w.trim,this.type=w.type===void 0?"":w.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s(w){e:for(var g=w.length,c=1,A=-1,d;c0&&(A=0);break}return A>0?w.slice(0,A)+w.slice(d+1):w}var f;function h(w,g){var c=t(w,g);if(!c)return w+"";var A=c[0],d=c[1],D=d-(f=Math.max(-8,Math.min(8,Math.floor(d/3)))*3)+1,E=A.length;return D===E?A:D>E?A+new Array(D-E+1).join("0"):D>0?A.slice(0,D)+"."+A.slice(D):"0."+new Array(1-D).join("0")+t(w,Math.max(0,g+D-1))[0]}function p(w,g){var c=t(w,g);if(!c)return w+"";var A=c[0],d=c[1];return d<0?"0."+new Array(-d).join("0")+A:A.length>d+1?A.slice(0,d+1)+"."+A.slice(d+1):A+new Array(d-A.length+2).join("0")}var _={"%":function(w,g){return(w*100).toFixed(g)},b:function(w){return Math.round(w).toString(2)},c:function(w){return w+""},d:r,e:function(w,g){return w.toExponential(g)},f:function(w,g){return w.toFixed(g)},g:function(w,g){return w.toPrecision(g)},o:function(w){return Math.round(w).toString(8)},p:function(w,g){return p(w*100,g)},r:p,s:h,X:function(w){return Math.round(w).toString(16).toUpperCase()},x:function(w){return Math.round(w).toString(16)}};function y(w){return w}var b=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(w){var g=w.grouping===void 0||w.thousands===void 0?y:a(b.call(w.grouping,Number),w.thousands+""),c=w.currency===void 0?"":w.currency[0]+"",A=w.currency===void 0?"":w.currency[1]+"",d=w.decimal===void 0?".":w.decimal+"",D=w.numerals===void 0?y:o(b.call(w.numerals,String)),E=w.percent===void 0?"%":w.percent+"",R=w.minus===void 0?"-":w.minus+"",N=w.nan===void 0?"NaN":w.nan+"";function I(L){L=l(L);var P=L.fill,O=L.align,B=L.sign,X=L.symbol,$=L.zero,ee=L.width,Y=L.comma,q=L.precision,Q=L.trim,oe=L.type;oe==="n"?(Y=!0,oe="g"):_[oe]||(q===void 0&&(q=12),Q=!0,oe="g"),($||P==="0"&&O==="=")&&($=!0,P="0",O="=");var Z=X==="$"?c:X==="#"&&/[boxX]/.test(oe)?"0"+oe.toLowerCase():"",se=X==="$"?A:/[%p]/.test(oe)?E:"",j=_[oe],V=/[defgprs%]/.test(oe);q=q===void 0?6:/[gprs]/.test(oe)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function re(H){var ne=Z,ue=se,ye,ke,Me;if(oe==="c")ue=j(H)+ue,H="";else{H=+H;var ge=H<0||1/H<0;if(H=isNaN(H)?N:j(Math.abs(H),q),Q&&(H=s(H)),ge&&+H==0&&B!=="+"&&(ge=!1),ne=(ge?B==="("?B:R:B==="-"||B==="("?"":B)+ne,ue=(oe==="s"?T[8+f/3]:"")+ue+(ge&&B==="("?")":""),V){for(ye=-1,ke=H.length;++yeMe||Me>57){ue=(Me===46?d+H.slice(ye+1):H.slice(ye))+ue,H=H.slice(0,ye);break}}}Y&&!$&&(H=g(H,1/0));var Ee=ne.length+H.length+ue.length,Ce=Ee>1)+ne+H+ue+Ce.slice(Ee);break;default:H=Ce+ne+H+ue;break}return D(H)}return re.toString=function(){return L+""},re}function F(L,P){var O=I((L=l(L),L.type="f",L)),B=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,X=Math.pow(10,-B),$=T[8+B/3];return function(ee){return O(X*ee)+$}}return{format:I,formatPrefix:F}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(w){return k=m(w),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function x(w){return Math.max(0,-n(Math.abs(w)))}function M(w,g){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(g)/3)))*3-n(Math.abs(w)))}function v(w,g){return w=Math.abs(w),g=Math.abs(g)-w,Math.max(0,n(g)-n(w))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=m,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=v,Object.defineProperty(e,"__esModule",{value:!0})})});var Tb=be((dfe,Mb)=>{"use strict";Mb.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var nt=be((pfe,Ab)=>{"use strict";var VB=Tb();Ab.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&VB(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ln=be((gfe,kb)=>{"use strict";kb.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var gp=be((Nc,Sb)=>{(function(e,r){typeof Nc=="object"&&typeof Sb!="undefined"?r(Nc):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Nc,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,h,p,_,y;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var b=new ArrayBuffer(l),T=new Uint8Array(b);for(s=0;s>4,T[f++]=(p&15)<<4|_>>2,T[f++]=(_&3)<<6|y&63;return b};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Eo=be((yfe,Cb)=>{"use strict";Cb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Zn=be(Qa=>{"use strict";var GB=gp().decode,YB=Eo(),yp=Array.isArray,WB=ArrayBuffer,XB=DataView;function Eb(e){return WB.isView(e)&&!(e instanceof XB)}Qa.isTypedArray=Eb;function zc(e){return yp(e)||Eb(e)}Qa.isArrayOrTypedArray=zc;function ZB(e){return!zc(e[0])}Qa.isArray1D=ZB;Qa.ensureArray=function(e,r){return yp(e)||(e=[]),e.length=r,e};var gn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};gn.uint8c=gn.u1c;gn.uint8=gn.u1;gn.int8=gn.i1;gn.uint16=gn.u2;gn.int16=gn.i2;gn.uint32=gn.u4;gn.int32=gn.i4;gn.float32=gn.f4;gn.float64=gn.f8;function mp(e){return e.constructor===ArrayBuffer}Qa.isArrayBuffer=mp;Qa.decodeTypedArraySpec=function(e){var r=[],t=JB(e),n=t.dtype,a=gn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;mp(i)||(i=GB(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,h=+l[0],p=o*h,_=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var Db=nt(),bp=Zn().isArrayOrTypedArray;Ib.exports=function(r,t){if(Db(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var n=t.split("."),a,o,i,l;for(l=0;l{"use strict";var qs=qc(),eU=/^\w*$/,rU=0,Nb=1,Oc=2,zb=3,El=4;qb.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=qs(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[_]=u[_]|Oc,h.set(p,null);if(f){for(o=_;o{"use strict";var tU=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,nU=/^[^\.\[\]]+$/;Bb.exports=function(e,r){for(;r;){var t=e.match(tU);if(t)e=t[1];else if(e.match(nU))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Bc=be((wfe,Hb)=>{"use strict";var aU=nt();Hb.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return aU(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Yb=be((Mfe,Gb)=>{"use strict";var Vb=Zn().isArrayOrTypedArray,hf=Eo();Gb.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(Vb(a)&&Vb(o)&&hf(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l{"use strict";function iU(e,r){var t=e%r;return t<0?t+r:t}function oU(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Wb.exports={mod:iU,modHalf:oU}});var Sa=be((Afe,Uc)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,o=e.min,i=e.max,l=e.random;function u(V,re){if(V=V||"",re=re||{},V instanceof u)return V;if(!(this instanceof u))return new u(V,re);var H=s(V);this._originalInput=V,this._r=H.r,this._g=H.g,this._b=H.b,this._a=H.a,this._roundA=a(100*this._a)/100,this._format=re.format||H.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=H.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,H,ne,ue,ye,ke;return re=V.r/255,H=V.g/255,ne=V.b/255,re<=.03928?ue=re/12.92:ue=e.pow((re+.055)/1.055,2.4),H<=.03928?ye=H/12.92:ye=e.pow((H+.055)/1.055,2.4),ne<=.03928?ke=ne/12.92:ke=e.pow((ne+.055)/1.055,2.4),.2126*ue+.7152*ye+.0722*ke},setAlpha:function(V){return this._a=L(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=_(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=_(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),ne=a(V.v*100);return this._a==1?"hsv("+re+", "+H+"%, "+ne+"%)":"hsva("+re+", "+H+"%, "+ne+"%, "+this._roundA+")"},toHsl:function(){var V=h(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=h(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),ne=a(V.l*100);return this._a==1?"hsl("+re+", "+H+"%, "+ne+"%)":"hsla("+re+", "+H+"%, "+ne+"%, "+this._roundA+")"},toHex:function(V){return b(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return T(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+"%",g:a(P(this._g,255)*100)+"%",b:a(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%)":"rgba("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+m(this._r,this._g,this._b,this._a),H=re,ne=this._gradientType?"GradientType = 1, ":"";if(V){var ue=u(V);H="#"+m(ue._r,ue._g,ue._b,ue._a)}return"progid:DXImageTransform.Microsoft.gradient("+ne+"startColorstr="+re+",endColorstr="+H+")"},toString:function(V){var re=!!V;V=V||this._format;var H=!1,ne=this._a<1&&this._a>=0,ue=!re&&ne&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return ue?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(H=this.toRgbString()),V==="prgb"&&(H=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(H=this.toHexString()),V==="hex3"&&(H=this.toHexString(!0)),V==="hex4"&&(H=this.toHex8String(!0)),V==="hex8"&&(H=this.toHex8String()),V==="name"&&(H=this.toName()),V==="hsl"&&(H=this.toHslString()),V==="hsv"&&(H=this.toHsvString()),H||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(V,re){var H=V.apply(null,[this].concat([].slice.call(re)));return this._r=H._r,this._g=H._g,this._b=H._b,this.setAlpha(H._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(c,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(d,arguments)}},u.fromRatio=function(V,re){if(typeof V=="object"){var H={};for(var ne in V)V.hasOwnProperty(ne)&&(ne==="a"?H[ne]=V[ne]:H[ne]=Y(V[ne]));V=H}return u(V,re)};function s(V){var re={r:0,g:0,b:0},H=1,ne=null,ue=null,ye=null,ke=!1,Me=!1;return typeof V=="string"&&(V=se(V)),typeof V=="object"&&(Z(V.r)&&Z(V.g)&&Z(V.b)?(re=f(V.r,V.g,V.b),ke=!0,Me=String(V.r).substr(-1)==="%"?"prgb":"rgb"):Z(V.h)&&Z(V.s)&&Z(V.v)?(ne=Y(V.s),ue=Y(V.v),re=y(V.h,ne,ue),ke=!0,Me="hsv"):Z(V.h)&&Z(V.s)&&Z(V.l)&&(ne=Y(V.s),ye=Y(V.l),re=p(V.h,ne,ye),ke=!0,Me="hsl"),V.hasOwnProperty("a")&&(H=V.a)),H=L(H),{ok:ke,format:V.format||Me,r:o(255,i(re.r,0)),g:o(255,i(re.g,0)),b:o(255,i(re.b,0)),a:H}}function f(V,re,H){return{r:P(V,255)*255,g:P(re,255)*255,b:P(H,255)*255}}function h(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var ne=i(V,re,H),ue=o(V,re,H),ye,ke,Me=(ne+ue)/2;if(ne==ue)ye=ke=0;else{var ge=ne-ue;switch(ke=Me>.5?ge/(2-ne-ue):ge/(ne+ue),ne){case V:ye=(re-H)/ge+(re1&&(Fe-=1),Fe<1/6?Ee+(Ce-Ee)*6*Fe:Fe<1/2?Ce:Fe<2/3?Ee+(Ce-Ee)*(2/3-Fe)*6:Ee}if(re===0)ne=ue=ye=H;else{var Me=H<.5?H*(1+re):H+re-H*re,ge=2*H-Me;ne=ke(ge,Me,V+1/3),ue=ke(ge,Me,V),ye=ke(ge,Me,V-1/3)}return{r:ne*255,g:ue*255,b:ye*255}}function _(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var ne=i(V,re,H),ue=o(V,re,H),ye,ke,Me=ne,ge=ne-ue;if(ke=ne===0?0:ge/ne,ne==ue)ye=0;else{switch(ne){case V:ye=(re-H)/ge+(re>1)+720)%360;--re;)ne.h=(ne.h+ue)%360,ye.push(u(ne));return ye}function R(V,re){re=re||6;for(var H=u(V).toHsv(),ne=H.h,ue=H.s,ye=H.v,ke=[],Me=1/re;re--;)ke.push(u({h:ne,s:ue,v:ye})),ye=(ye+Me)%1;return ke}u.mix=function(V,re,H){H=H===0?0:H||50;var ne=u(V).toRgb(),ue=u(re).toRgb(),ye=H/100,ke={r:(ue.r-ne.r)*ye+ne.r,g:(ue.g-ne.g)*ye+ne.g,b:(ue.b-ne.b)*ye+ne.b,a:(ue.a-ne.a)*ye+ne.a};return u(ke)},u.readability=function(V,re){var H=u(V),ne=u(re);return(e.max(H.getLuminance(),ne.getLuminance())+.05)/(e.min(H.getLuminance(),ne.getLuminance())+.05)},u.isReadable=function(V,re,H){var ne=u.readability(V,re),ue,ye;switch(ye=!1,ue=j(H),ue.level+ue.size){case"AAsmall":case"AAAlarge":ye=ne>=4.5;break;case"AAlarge":ye=ne>=3;break;case"AAAsmall":ye=ne>=7;break}return ye},u.mostReadable=function(V,re,H){var ne=null,ue=0,ye,ke,Me,ge;H=H||{},ke=H.includeFallbackColors,Me=H.level,ge=H.size;for(var Ee=0;Eeue&&(ue=ye,ne=u(re[Ee]));return u.isReadable(V,ne,{level:Me,size:ge})||!ke?ne:(H.includeFallbackColors=!1,u.mostReadable(V,["#fff","#000"],H))};var N=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=u.hexNames=F(N);function F(V){var re={};for(var H in V)V.hasOwnProperty(H)&&(re[V[H]]=H);return re}function L(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function P(V,re){X(V)&&(V="100%");var H=$(V);return V=o(re,i(0,parseFloat(V))),H&&(V=parseInt(V*re,10)/100),e.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function O(V){return o(1,i(0,V))}function B(V){return parseInt(V,16)}function X(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function $(V){return typeof V=="string"&&V.indexOf("%")!=-1}function ee(V){return V.length==1?"0"+V:""+V}function Y(V){return V<=1&&(V=V*100+"%"),V}function q(V){return e.round(parseFloat(V)*255).toString(16)}function Q(V){return B(V)/255}var oe=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",H="(?:"+re+")|(?:"+V+")",ne="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",ue="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+ne),rgba:new RegExp("rgba"+ue),hsl:new RegExp("hsl"+ne),hsla:new RegExp("hsla"+ue),hsv:new RegExp("hsv"+ne),hsva:new RegExp("hsva"+ue),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Z(V){return!!oe.CSS_UNIT.exec(V)}function se(V){V=V.replace(r,"").replace(t,"").toLowerCase();var re=!1;if(N[V])V=N[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=oe.rgb.exec(V))?{r:H[1],g:H[2],b:H[3]}:(H=oe.rgba.exec(V))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=oe.hsl.exec(V))?{h:H[1],s:H[2],l:H[3]}:(H=oe.hsla.exec(V))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=oe.hsv.exec(V))?{h:H[1],s:H[2],v:H[3]}:(H=oe.hsva.exec(V))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=oe.hex8.exec(V))?{r:B(H[1]),g:B(H[2]),b:B(H[3]),a:Q(H[4]),format:re?"name":"hex8"}:(H=oe.hex6.exec(V))?{r:B(H[1]),g:B(H[2]),b:B(H[3]),format:re?"name":"hex"}:(H=oe.hex4.exec(V))?{r:B(H[1]+""+H[1]),g:B(H[2]+""+H[2]),b:B(H[3]+""+H[3]),a:Q(H[4]+""+H[4]),format:re?"name":"hex8"}:(H=oe.hex3.exec(V))?{r:B(H[1]+""+H[1]),g:B(H[2]+""+H[2]),b:B(H[3]+""+H[3]),format:re?"name":"hex"}:!1}function j(V){var re,H;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),H=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:re,size:H}}typeof Uc!="undefined"&&Uc.exports?Uc.exports=u:window.tinycolor=u})(Math)});var Tt=be(pf=>{"use strict";var Xb=Eo(),vf=Array.isArray;function lU(e,r){var t,n;for(t=0;t{"use strict";Zb.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var gf=be((Cfe,Jb)=>{"use strict";Jb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Ll=be((Efe,$b)=>{"use strict";var Kb=gf(),Qb=Sn(),_p=Qb({editType:"none"});_p.family.dflt=Kb.HOVERFONT;_p.size.dflt=Kb.HOVERFONTSIZE;$b.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:_p,grouptitlefont:Qb({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Hc=be((Lfe,jb)=>{"use strict";var sU=Sn(),yf=Ll().hoverlabel,mf=Tt().extendFlat;jb.exports={hoverlabel:{bgcolor:mf({},yf.bgcolor,{arrayOk:!0}),bordercolor:mf({},yf.bordercolor,{arrayOk:!0}),font:sU({arrayOk:!0,editType:"none"}),align:mf({},yf.align,{arrayOk:!0}),namelength:mf({},yf.namelength,{arrayOk:!0}),showarrow:mf({},yf.showarrow),editType:"none"}}});var Cn=be((Dfe,e4)=>{"use strict";var uU=Sn(),fU=Hc();e4.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:uU({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:fU.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Dl=be((Rfe,n4)=>{"use strict";var cU=Sa(),Vc={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},r4=Vc.RdBu;function hU(e,r){if(r||(r=r4),!e)return r;function t(){try{e=Vc[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),t4(e)?e:r}function t4(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Rl.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Rl.defaultLine="#444";Rl.lightLine="#eee";Rl.background="#fff";Rl.borderLine="#BEC8D9";Rl.lightFraction=100*10/11});var Gr=be((Ffe,a4)=>{"use strict";var na=Sa(),dU=nt(),pU=Zn().isTypedArray,sn=a4.exports={},Gc=Si();sn.defaults=Gc.defaults;var gU=sn.defaultLine=Gc.defaultLine;sn.lightLine=Gc.lightLine;var Mp=sn.background=Gc.background;sn.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};sn.rgb=function(e){return sn.tinyRGB(na(e))};sn.opacity=function(e){return e?na(e).getAlpha():0};sn.addOpacity=function(e,r){var t=na(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};sn.combine=function(e,r){var t=na(e).toRgb();if(t.a===1)return na(e).toRgbString();var n=na(r||Mp).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},o={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return na(o).toRgbString()};sn.interpolate=function(e,r,t){var n=na(e).toRgb(),a=na(r).toRgb(),o={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return na(o).toRgbString()};sn.contrast=function(e,r,t){var n=na(e);n.getAlpha()!==1&&(n=na(sn.combine(e,Mp)));var a=n.isDark()?r?n.lighten(r):Mp:t?n.darken(t):gU;return a.toString()};sn.stroke=function(e,r){var t=na(r);e.style({stroke:sn.tinyRGB(t),"stroke-opacity":t.getAlpha()})};sn.fill=function(e,r){var t=na(r);e.style({fill:sn.tinyRGB(t),"fill-opacity":t.getAlpha()})};sn.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,o;for(t=0;t=0)))return e;if(o===3)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var i=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+i+", "+n[3]+")":"rgb("+i+")"}});var Yc=be((Ife,i4)=>{"use strict";i4.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Bs=be(o4=>{"use strict";o4.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+e+"([2-9]|[1-9][0-9]+)?"+a)}});var f4=be(aa=>{"use strict";var Tp=nt(),l4=Sa(),s4=Tt().extendFlat,yU=Cn(),mU=Dl(),xU=Gr(),bU=Yc().DESELECTDIM,Us=qc(),u4=Bs().counter,_U=Os().modHalf,$a=Zn().isArrayOrTypedArray,Lo=Zn().isTypedArraySpec,Do=Zn().decodeTypedArraySpec;aa.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set($a(e)?e:Lo(e)?Do(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;no===!0||o===!1;a(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,n){Lo(e)&&(e=Do(e)),!Tp(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Lo(e)&&(e=Do(e)),e%1||!Tp(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Lo(e)&&(e=Do(e)),l4(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return l4(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(mU.get(e,t))}},angle:{coerceFunction:function(e,r,t){Lo(e)&&(e=Do(e)),e==="auto"?r.set("auto"):Tp(e)?r.set(_U(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||u4(t);let o=i=>typeof i=="string"&&a.test(i);o(e)||n.arrayOk&&$a(e)&&e.length>0&&e.every(o)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!u4(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o{"use strict";var c4={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},h4={};function v4(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),v4(n,r[t]))}}v4(c4,h4);d4.exports={configAttributes:c4,dfltConfig:h4}});var kp=be((Ofe,p4)=>{"use strict";var Ap=ot(),wU=nt(),xf=[];p4.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||xf.indexOf(e)!==-1)return;xf.push(e);var n=1e3;wU(r)?n=r:r==="long"&&(n=3e3);var a=Ap.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var o=a.selectAll(".notifier-note").data(xf);function i(u){u.duration(700).style("opacity",0).each("end",function(s){var f=xf.indexOf(s);f!==-1&&xf.splice(f,1),Ap.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=Ap.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(i)});for(var f=s.append("p"),h=u.split(//g),p=0;p{"use strict";var Hs=Pl().dfltConfig,Sp=kp(),Cp=g4.exports={};Cp.log=function(){var e;if(Hs.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Cp.warn=function(){var e;if(Hs.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Cp.error=function(){var e;if(Hs.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Xc=be((Ufe,y4)=>{"use strict";y4.exports=function(){}});var Ep=be((Hfe,m4)=>{"use strict";m4.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{x4.exports=MU;function MU(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var w4=be((Gfe,_4)=>{_4.exports=TU;function TU(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var T4=be((Yfe,M4)=>{M4.exports=AU;function AU(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Lp=be((Wfe,A4)=>{A4.exports=kU;function kU(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var S4=be((Xfe,k4)=>{k4.exports=SU;function SU(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var E4=be((Zfe,C4)=>{C4.exports=CU;function CU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],h=r[9],p=r[10],_=r[11],y=r[12],b=r[13],T=r[14],m=r[15],k=t*l-n*i,S=t*u-a*i,x=t*s-o*i,M=n*u-a*l,v=n*s-o*l,w=a*s-o*u,g=f*b-h*y,c=f*T-p*y,A=f*m-_*y,d=h*T-p*b,D=h*m-_*b,E=p*m-_*T,R=k*E-S*D+x*d+M*A-v*c+w*g;return R?(R=1/R,e[0]=(l*E-u*D+s*d)*R,e[1]=(a*D-n*E-o*d)*R,e[2]=(b*w-T*v+m*M)*R,e[3]=(p*v-h*w-_*M)*R,e[4]=(u*A-i*E-s*c)*R,e[5]=(t*E-a*A+o*c)*R,e[6]=(T*x-y*w-m*S)*R,e[7]=(f*w-p*x+_*S)*R,e[8]=(i*D-l*A+s*g)*R,e[9]=(n*A-t*D-o*g)*R,e[10]=(y*v-b*x+m*k)*R,e[11]=(h*x-f*v-_*k)*R,e[12]=(l*c-i*d-u*g)*R,e[13]=(t*d-n*c+a*g)*R,e[14]=(b*S-y*M-T*k)*R,e[15]=(f*M-h*S+p*k)*R,e):null}});var D4=be((Jfe,L4)=>{L4.exports=EU;function EU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],h=r[9],p=r[10],_=r[11],y=r[12],b=r[13],T=r[14],m=r[15];return e[0]=l*(p*m-_*T)-h*(u*m-s*T)+b*(u*_-s*p),e[1]=-(n*(p*m-_*T)-h*(a*m-o*T)+b*(a*_-o*p)),e[2]=n*(u*m-s*T)-l*(a*m-o*T)+b*(a*s-o*u),e[3]=-(n*(u*_-s*p)-l*(a*_-o*p)+h*(a*s-o*u)),e[4]=-(i*(p*m-_*T)-f*(u*m-s*T)+y*(u*_-s*p)),e[5]=t*(p*m-_*T)-f*(a*m-o*T)+y*(a*_-o*p),e[6]=-(t*(u*m-s*T)-i*(a*m-o*T)+y*(a*s-o*u)),e[7]=t*(u*_-s*p)-i*(a*_-o*p)+f*(a*s-o*u),e[8]=i*(h*m-_*b)-f*(l*m-s*b)+y*(l*_-s*h),e[9]=-(t*(h*m-_*b)-f*(n*m-o*b)+y*(n*_-o*h)),e[10]=t*(l*m-s*b)-i*(n*m-o*b)+y*(n*s-o*l),e[11]=-(t*(l*_-s*h)-i*(n*_-o*h)+f*(n*s-o*l)),e[12]=-(i*(h*T-p*b)-f*(l*T-u*b)+y*(l*p-u*h)),e[13]=t*(h*T-p*b)-f*(n*T-a*b)+y*(n*p-a*h),e[14]=-(t*(l*T-u*b)-i*(n*T-a*b)+y*(n*u-a*l)),e[15]=t*(l*p-u*h)-i*(n*p-a*h)+f*(n*u-a*l),e}});var P4=be((Kfe,R4)=>{R4.exports=LU;function LU(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],h=e[10],p=e[11],_=e[12],y=e[13],b=e[14],T=e[15],m=r*i-t*o,k=r*l-n*o,S=r*u-a*o,x=t*l-n*i,M=t*u-a*i,v=n*u-a*l,w=s*y-f*_,g=s*b-h*_,c=s*T-p*_,A=f*b-h*y,d=f*T-p*y,D=h*T-p*b;return m*D-k*d+S*A+x*c-M*g+v*w}});var I4=be((Qfe,F4)=>{F4.exports=DU;function DU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],h=r[8],p=r[9],_=r[10],y=r[11],b=r[12],T=r[13],m=r[14],k=r[15],S=t[0],x=t[1],M=t[2],v=t[3];return e[0]=S*n+x*l+M*h+v*b,e[1]=S*a+x*u+M*p+v*T,e[2]=S*o+x*s+M*_+v*m,e[3]=S*i+x*f+M*y+v*k,S=t[4],x=t[5],M=t[6],v=t[7],e[4]=S*n+x*l+M*h+v*b,e[5]=S*a+x*u+M*p+v*T,e[6]=S*o+x*s+M*_+v*m,e[7]=S*i+x*f+M*y+v*k,S=t[8],x=t[9],M=t[10],v=t[11],e[8]=S*n+x*l+M*h+v*b,e[9]=S*a+x*u+M*p+v*T,e[10]=S*o+x*s+M*_+v*m,e[11]=S*i+x*f+M*y+v*k,S=t[12],x=t[13],M=t[14],v=t[15],e[12]=S*n+x*l+M*h+v*b,e[13]=S*a+x*u+M*p+v*T,e[14]=S*o+x*s+M*_+v*m,e[15]=S*i+x*f+M*y+v*k,e}});var z4=be(($fe,N4)=>{N4.exports=RU;function RU(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,h,p,_,y,b,T,m;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],h=r[5],p=r[6],_=r[7],y=r[8],b=r[9],T=r[10],m=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=h,e[6]=p,e[7]=_,e[8]=y,e[9]=b,e[10]=T,e[11]=m,e[12]=i*n+f*a+y*o+r[12],e[13]=l*n+h*a+b*o+r[13],e[14]=u*n+p*a+T*o+r[14],e[15]=s*n+_*a+m*o+r[15]),e}});var O4=be((jfe,q4)=>{q4.exports=PU;function PU(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var U4=be((e0e,B4)=>{B4.exports=FU;function FU(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,h,p,_,y,b,T,m,k,S,x,M,v,w,g,c,A,d,D,E,R,N;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,h=r[0],p=r[1],_=r[2],y=r[3],b=r[4],T=r[5],m=r[6],k=r[7],S=r[8],x=r[9],M=r[10],v=r[11],w=a*a*f+s,g=o*a*f+i*u,c=i*a*f-o*u,A=a*o*f-i*u,d=o*o*f+s,D=i*o*f+a*u,E=a*i*f+o*u,R=o*i*f-a*u,N=i*i*f+s,e[0]=h*w+b*g+S*c,e[1]=p*w+T*g+x*c,e[2]=_*w+m*g+M*c,e[3]=y*w+k*g+v*c,e[4]=h*A+b*d+S*D,e[5]=p*A+T*d+x*D,e[6]=_*A+m*d+M*D,e[7]=y*A+k*d+v*D,e[8]=h*E+b*R+S*N,e[9]=p*E+T*R+x*N,e[10]=_*E+m*R+M*N,e[11]=y*E+k*R+v*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var V4=be((r0e,H4)=>{H4.exports=IU;function IU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],h=r[10],p=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+h*n,e[7]=u*a+p*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=h*a-l*n,e[11]=p*a-u*n,e}});var Y4=be((t0e,G4)=>{G4.exports=NU;function NU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],h=r[10],p=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-h*n,e[3]=u*a-p*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+h*a,e[11]=u*n+p*a,e}});var X4=be((n0e,W4)=>{W4.exports=zU;function zU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],h=r[6],p=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+h*n,e[3]=u*a+p*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=h*a-l*n,e[7]=p*a-u*n,e}});var J4=be((a0e,Z4)=>{Z4.exports=qU;function qU(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Q4=be((i0e,K4)=>{K4.exports=OU;function OU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,h=n*u,p=n*s,_=a*u,y=a*s,b=o*s,T=i*l,m=i*u,k=i*s;return e[0]=1-(_+b),e[1]=h+k,e[2]=p-m,e[3]=0,e[4]=h-k,e[5]=1-(f+b),e[6]=y+T,e[7]=0,e[8]=p+m,e[9]=y-T,e[10]=1-(f+_),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var j4=be((o0e,$4)=>{$4.exports=BU;function BU(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var r_=be((l0e,e_)=>{e_.exports=UU;function UU(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var n_=be((s0e,t_)=>{t_.exports=HU;function HU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var i_=be((u0e,a_)=>{a_.exports=VU;function VU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var l_=be((f0e,o_)=>{o_.exports=GU;function GU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var u_=be((c0e,s_)=>{s_.exports=YU;function YU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,h=n*l,p=a*i,_=a*l,y=a*u,b=o*i,T=o*l,m=o*u;return e[0]=1-h-y,e[1]=f+m,e[2]=p-T,e[3]=0,e[4]=f-m,e[5]=1-s-y,e[6]=_+b,e[7]=0,e[8]=p+T,e[9]=_-b,e[10]=1-s-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var c_=be((h0e,f_)=>{f_.exports=WU;function WU(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var v_=be((v0e,h_)=>{h_.exports=XU;function XU(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var p_=be((d0e,d_)=>{d_.exports=ZU;function ZU(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var y_=be((p0e,g_)=>{g_.exports=JU;function JU(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var x_=be((g0e,m_)=>{var KU=Lp();m_.exports=QU;function QU(e,r,t,n){var a,o,i,l,u,s,f,h,p,_,y=r[0],b=r[1],T=r[2],m=n[0],k=n[1],S=n[2],x=t[0],M=t[1],v=t[2];return Math.abs(y-x)<1e-6&&Math.abs(b-M)<1e-6&&Math.abs(T-v)<1e-6?KU(e):(f=y-x,h=b-M,p=T-v,_=1/Math.sqrt(f*f+h*h+p*p),f*=_,h*=_,p*=_,a=k*p-S*h,o=S*f-m*p,i=m*h-k*f,_=Math.sqrt(a*a+o*o+i*i),_?(_=1/_,a*=_,o*=_,i*=_):(a=0,o=0,i=0),l=h*i-p*o,u=p*a-f*i,s=f*o-h*a,_=Math.sqrt(l*l+u*u+s*s),_?(_=1/_,l*=_,u*=_,s*=_):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=h,e[7]=0,e[8]=i,e[9]=s,e[10]=p,e[11]=0,e[12]=-(a*y+o*b+i*T),e[13]=-(l*y+u*b+s*T),e[14]=-(f*y+h*b+p*T),e[15]=1,e)}});var __=be((y0e,b_)=>{b_.exports=$U;function $U(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Dp=be((m0e,w_)=>{w_.exports={create:b4(),clone:w4(),copy:T4(),identity:Lp(),transpose:S4(),invert:E4(),adjoint:D4(),determinant:P4(),multiply:I4(),translate:z4(),scale:O4(),rotate:U4(),rotateX:V4(),rotateY:Y4(),rotateZ:X4(),fromRotation:J4(),fromRotationTranslation:Q4(),fromScaling:j4(),fromTranslation:r_(),fromXRotation:n_(),fromYRotation:i_(),fromZRotation:l_(),fromQuat:u_(),frustum:c_(),perspective:v_(),perspectiveFromFieldOfView:p_(),ortho:y_(),lookAt:x_(),str:__()}});var Zc=be(Ut=>{"use strict";var jU=Dp();Ut.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var eH=ot(),M_=Fl(),rH=Zc(),tH=Dp();function nH(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function aH(e){var r=eH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function T_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function iH(e,r){A_("global",e,r)}function A_(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):M_.warn("addStyleRule failed"):M_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function oH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&T_(t)}function lH(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[i[0]]=i[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[i[0]]=i[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function sH(e){var r=S_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=k_(n);if(a){var o=rH.convertCssMatrix(a);t=tH.multiply(t,t,o)}}),t}function k_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function S_(e){for(var r=[];uH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function uH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function fH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}C_.exports={getGraphDiv:nH,isPlotDiv:aH,removeElement:T_,addStyleRule:iH,addRelatedStyleRule:A_,deleteRelatedStyleRule:oH,setStyleOnHover:lH,getFullTransformMatrix:sH,getElementTransformMatrix:k_,getElementAndAncestors:S_,equalDomRects:fH}});var _f=be((_0e,E_)=>{"use strict";E_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var On=be((w0e,N_)=>{"use strict";var D_=Tt().extendFlat,cH=Eo(),R_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},P_={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},hH=R_.flags.slice().concat(["fullReplot"]),vH=P_.flags.slice().concat("layoutReplot");N_.exports={traces:R_,layout:P_,traceFlags:function(){return L_(hH)},layoutFlags:function(){return L_(vH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";Rp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Rp.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Pp=be((T0e,z_)=>{"use strict";z_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var ja=be(Vs=>{"use strict";var{DATE_FORMAT_LINK:dH,FORMAT_LINK:pH}=Pp(),gH=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function yH({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,pH,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,dH,"for details on the date formatting syntax.",gH].join(" ")}Vs.templateFormatStringDescription=yH;Vs.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Cl({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Vs.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Cl({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Vs.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Vs.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Qc=be((S0e,V_)=>{"use strict";function Po(e,r){return r?r.d2l(e):e}function q_(e,r){return r?r.l2d(e):e}function mH(e){return e.x0}function xH(e){return e.x1}function bH(e){return e.y0}function _H(e){return e.y1}function O_(e){return e.x0shift||0}function B_(e){return e.x1shift||0}function U_(e){return e.y0shift||0}function H_(e){return e.y1shift||0}function Jc(e,r){return Po(e.x1,r)+B_(e)-Po(e.x0,r)-O_(e)}function Kc(e,r,t){return Po(e.y1,t)+H_(e)-Po(e.y0,t)-U_(e)}function wH(e,r){return Math.abs(Jc(e,r))}function MH(e,r,t){return Math.abs(Kc(e,r,t))}function TH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Jc(e,r),2)+Math.pow(Kc(e,r,t),2))}function AH(e,r){return q_((Po(e.x1,r)+B_(e)+Po(e.x0,r)+O_(e))/2,r)}function kH(e,r,t){return q_((Po(e.y1,t)+H_(e)+Po(e.y0,t)+U_(e))/2,t)}function SH(e,r,t){return e.type!=="line"?void 0:Kc(e,r,t)/Jc(e,r)}var CH=["x0","x1","y0","y1","dy","height","ycenter"],EH=["x0","x1","y0","y1","dx","width","xcenter"];V_.exports={x0:mH,x1:xH,y0:bH,y1:_H,slope:SH,dx:Jc,dy:Kc,width:wH,height:MH,length:TH,xcenter:AH,ycenter:kH,simpleXVariables:CH,simpleYVariables:EH}});var W_=be((C0e,Y_)=>{"use strict";var LH=On().overrideAll,Il=Cn(),G_=Sn(),DH=Ro().dash,Fo=Tt().extendFlat,{shapeTexttemplateAttrs:RH,templatefallbackAttrs:PH}=ja(),FH=Qc();Y_.exports=LH({newshape:{visible:Fo({},Il.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Fo({},Il.legend,{}),legendgroup:Fo({},Il.legendgroup,{}),legendgrouptitle:{text:Fo({},Il.legendgrouptitle.text,{}),font:G_({})},legendrank:Fo({},Il.legendrank,{}),legendwidth:Fo({},Il.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Fo({},DH,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Fo({},Il.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:RH({newshape:!0},{keys:Object.keys(FH)}),texttemplatefallback:PH({editType:"arraydraw"}),font:G_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Z_=be((E0e,X_)=>{"use strict";var IH=Ro().dash,NH=Tt().extendFlat;X_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:NH({},IH,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var $c=be((L0e,J_)=>{"use strict";J_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Gs=be((D0e,j_)=>{"use strict";var Fp=Sn(),zH=_f(),jc=Si(),K_=W_(),Q_=Z_(),qH=$c(),$_=Tt().extendFlat,eh=Fp({editType:"calc"});eh.family.dflt='"Open Sans", verdana, arial, sans-serif';eh.size.dflt=12;eh.color.dflt=jc.defaultLine;j_.exports={font:eh,title:{text:{valType:"string",editType:"layoutstyle"},font:Fp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Fp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:$_(qH({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:jc.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:jc.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:jc.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:K_.newshape,activeshape:K_.activeshape,newselection:Q_.newselection,activeselection:Q_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:$_({},zH.transition,{editType:"none"})}});var e6=be(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Tr=be(Yr=>{"use strict";var Ys=Fl(),r6=Xc(),t6=Ep(),OH=Eo(),BH=bf().addStyleRule,n6=Tt(),UH=Cn(),HH=Gs(),VH=n6.extendFlat,Ip=n6.extendDeepAll;Yr.modules={};Yr.allCategories={};Yr.allTypes=[];Yr.subplotsRegistry={};Yr.componentsRegistry={};Yr.layoutArrayContainers=[];Yr.layoutArrayRegexes=[];Yr.traceLayoutAttributes={};Yr.localeRegistry={};Yr.apiMethodRegistry={};Yr.collectableSubplotTypes=null;Yr.register=function(r){if(Yr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var JH=zs().timeFormat,d6=nt(),Np=Fl(),No=Os().mod,Zs=ln(),Ca=Zs.BADNUM,ia=Zs.ONEDAY,wf=Zs.ONEHOUR,Io=Zs.ONEMIN,Xs=Zs.ONESEC,Mf=Zs.EPOCHJD,to=Tr(),s6=zs().utcFormat,KH=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,QH=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,u6=new Date().getFullYear()-70;function no(e){return e&&to.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ht.dateTick0=function(e,r){var t=$H(e,!!r);if(r<2)return t;var n=Ht.dateTime2ms(t,e);return n+=ia*(r-1),Ht.ms2DateTime(n,0,e)};function $H(e,r){return no(e)?r?to.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:to.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Ht.dfltRange=function(e){return no(e)?to.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Ht.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var th,nh;Ht.dateTime2ms=function(e,r){if(Ht.isJSDate(e)){var t=e.getTimezoneOffset()*Io,n=(e.getUTCMinutes()-e.getMinutes())*Io+(e.getUTCSeconds()-e.getSeconds())*Xs+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Io;t=t-a/2+No(n-t+a/2,a)}return e=Number(e)-t,e>=th&&e<=nh?e:Ca}if(typeof e!="string"&&typeof e!="number")return Ca;e=String(e);var o=no(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.slice(1),r="");var l=o&&r.slice(0,7)==="chinese",u=e.match(l?QH:KH);if(!u)return Ca;var s=u[1],f=u[3]||"1",h=Number(u[5]||1),p=Number(u[7]||0),_=Number(u[9]||0),y=Number(u[11]||0);if(o){if(s.length===2)return Ca;s=Number(s);var b;try{var T=to.getComponentMethod("calendars","getCal")(r);if(l){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),b=T.newDate(s,T.toMonthIndex(s,f,m),h)}else b=T.newDate(s,Number(f),h)}catch(S){return Ca}return b?(b.toJD()-Mf)*ia+p*wf+_*Io+y*Xs:Ca}s.length===2?s=(Number(s)+2e3-u6)%100+u6:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,h,p,_));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==h?Ca:k.getTime()+y*Xs};th=Ht.MIN_MS=Ht.dateTime2ms("-9999");nh=Ht.MAX_MS=Ht.dateTime2ms("9999-12-31 23:59:59.9999");Ht.isDateTime=function(e,r){return Ht.dateTime2ms(e,r)!==Ca};function Ws(e,r){return String(e+Math.pow(10,r)).slice(1)}var rh=90*ia,f6=3*wf,c6=5*Io;Ht.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=th&&e<=nh))return Ca;r||(r=0);var n=Math.floor(No(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(no(t)){var h=Math.floor(a/ia)+Mf,p=Math.floor(No(e,ia));try{o=to.getComponentMethod("calendars","getCal")(t).fromJD(h).formatDate("yyyy-mm-dd")}catch(_){o=s6("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.slice(1);else for(;o.length<10;)o="0"+o;i=r=th+ia&&e<=nh-ia))return Ca;var r=Math.floor(No(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=JH("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return p6(n,a,o,i,l)};function p6(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+Ws(r,2)+":"+Ws(t,2),(n||a)&&(e+=":"+Ws(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Ws(a,o)}return e}Ht.cleanDate=function(e,r,t){if(e===Ca)return r;if(Ht.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(no(t))return Np.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Ht.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Ht.isDateTime(e,t))return Np.error("unrecognized date",e),r;return e};var jH=/%\d?f/g,eV=/%h/g,rV={1:"1",2:"1",3:"2",4:"2"};function h6(e,r,t,n){e=e.replace(jH,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).slice(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(eV,function(){return rV[t("%q")(a)]}),no(n))try{e=to.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var tV=[59,59.9,59.99,59.999,59.9999];function nV(e,r){var t=No(e+.05,ia),n=Ws(Math.floor(t/wf),2)+":"+Ws(No(Math.floor(t/Io),60),2);if(r!=="M"){d6(r)||(r=0);var a=Math.min(No(e/Xs,60),tV[r]),o=(100+a).toFixed(r).slice(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}Ht.formatDate=function(e,r,t,n,a,o){if(a=no(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+` -`+o.year;else return nV(e,t)+` -`+h6(o.dayMonthYear,e,n,a);return h6(r,e,n,a)};var v6=3*ia;Ht.incrementMonth=function(e,r,t){t=no(t)&&t;var n=No(e,ia);if(e=Math.round(e-n),t)try{var a=Math.round(e/ia)+Mf,o=to.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-Mf)*ia+n}catch(u){Np.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+v6);return l.setUTCMonth(l.getUTCMonth()+r)+n-v6};Ht.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=no(r)&&to.getComponentMethod("calendars","getCal")(r),s=0;s{"use strict";y6.exports=function(r){return r}});var Op=be(ao=>{"use strict";var aV=nt(),iV=Fl(),oV=zp(),lV=ln().BADNUM,qp=1e-9;ao.findBin=function(e,r,t){if(aV(r.start))return t?Math.ceil((e-r.start)/r.size-qp)-1:Math.floor((e-r.start)/r.size+qp);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?sV:uV:u=t?cV:fV,e+=i*qp*(t?-1:1)*(i>=0?1:-1);n90&&iV.log("Long binary search..."),n-1};function sV(e,r){return er}function cV(e,r){return e>=r}ao.sorterAsc=function(e,r){return e-r};ao.sorterDes=function(e,r){return r-e};ao.distinctVals=function(e){var r=e.slice();r.sort(ao.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===lV;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};ao.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};ao.findIndexOfMin=function(e,r){r=r||oV;for(var t=1/0,n,a=0;a{"use strict";m6.exports=function(r){return Object.keys(r).sort()}});var x6=be(Vt=>{"use strict";var Tf=nt(),hV=Zn().isArrayOrTypedArray;Vt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),Tf(r)||(r=!1),hV(t[0])){for(o=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var T6=be((B0e,M6)=>{"use strict";var b6=Os(),Bp=b6.mod,vV=b6.modHalf,Af=Math.PI,zo=2*Af;function dV(e){return e/180*Af}function pV(e){return e/Af*180}function Up(e){return Math.abs(e[1]-e[0])>zo-1e-14}function _6(e,r){return vV(r-e,zo)}function gV(e,r){return Math.abs(_6(e,r))}function w6(e,r){if(Up(r))return!0;var t,n;r[0]n&&(n+=zo);var a=Bp(e,zo),o=a+zo;return a>=t&&a<=n||o>=t&&o<=n}function yV(e,r,t,n){if(!w6(r,n))return!1;var a,o;return t[0]=a&&e<=o}function Hp(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=Up([t,n]),u,s,f,h,p;l?(u=0,s=Af,f=zo):t{"use strict";Nl.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Nl.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Nl.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Nl.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Nl.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Nl.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var C6=be(zl=>{"use strict";var Vp=Os().mod;zl.segmentsIntersect=S6;function S6(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,h=n-r,p=o-r,_=l-o,y=u*_-f*h;if(y===0)return null;var b=(s*_-f*p)/y,T=(s*h-u*p)/y;return T<0||T>1||b<0||b>1?null:{x:e+u*b,y:r+h*b}}zl.segmentDistance=function(r,t,n,a,o,i,l,u){if(S6(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,h=l-o,p=u-i,_=s*s+f*f,y=h*h+p*p,b=Math.min(ih(s,f,_,o-r,i-t),ih(s,f,_,l-r,u-t),ih(h,p,y,r-o,t-i),ih(h,p,y,n-o,a-i));return Math.sqrt(b)};function ih(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var oh,Gp,k6;zl.getTextLocation=function(r,t,n,a){if((r!==Gp||a!==k6)&&(oh={},Gp=r,k6=a),oh[n])return oh[n];var o=r.getPointAtLength(Vp(n-a/2,t)),i=r.getPointAtLength(Vp(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(Vp(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,h={x:s,y:f,theta:l};return oh[n]=h,h};zl.clearLocationCache=function(){Gp=null};zl.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,h,p;function _(b){var T=r.getPointAtLength(b);b===0?h=T:b===s&&(p=T);var m=T.xo?T.x-o:0,k=T.yl?T.y-l:0;return Math.sqrt(m*m+k*k)}for(var y=_(u);y;){if(u+=y+n,u>f)return;y=_(u)}for(y=_(f);y;){if(f-=y+n,u>f)return;y=_(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(h.x-p.x)<.1&&Math.abs(h.y-p.y)<.1}};zl.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,h=o,p,_,y;s0?h=p:f=p,s++}return _}});var lh=be(kf=>{"use strict";var io={};kf.throttle=function(r,t,n){var a=io[r],o=Date.now();if(!a){for(var i in io)io[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};kf.done=function(e){var r=io[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};kf.clear=function(e){if(e)E6(io[e]),delete io[e];else for(var r in io)kf.clear(r)};function E6(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var D6=be((G0e,L6)=>{"use strict";L6.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var R6=be((Y0e,sh)=>{"use strict";sh.exports=Yp;sh.exports.isMobile=Yp;sh.exports.default=Yp;var _V=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,wV=/CrOS/,MV=/android|ipad|playbook|silk/i;function Yp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=_V.test(r)&&!wV.test(r)||!!e.tablet&&MV.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var F6=be((W0e,P6)=>{"use strict";var TV=nt(),AV=R6();P6.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=kV(),typeof t!="string")return!0;var n=AV({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o-1;l--){var u=a[l];if(u.slice(0,8)==="Version/"){var s=u.slice(8).split(".")[0];if(TV(s)&&(s=+s),s>=13)return!0}}}return n};function kV(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var N6=be((X0e,I6)=>{"use strict";var SV=ot();I6.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=SV.select(this)}),a}});var q6=be((Z0e,z6)=>{"use strict";var CV=Tr();z6.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=CV.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var B6=be((J0e,O6)=>{"use strict";O6.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";U6.exports=function(r){for(var t=DV(r)?LV:EV,n=[],a=0;a{"use strict";V6.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var W6=be(($0e,Y6)=>{"use strict";var RV=nt(),PV=ln().BADNUM,FV=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Y6.exports=function(r){return typeof r=="string"&&(r=r.replace(FV,"")),RV(r)?Number(r):PV}});var er=be((j0e,iw)=>{"use strict";var Sf=ot(),IV=zs().utcFormat,NV=pp().format,$6=nt(),j6=ln(),ew=j6.FP_SAFE,zV=-ew,X6=j6.BADNUM,He=iw.exports={};He.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var Z6={};He.warnBadFormat=function(e){var r=String(e);Z6[r]||(Z6[r]=1,He.warn('encountered bad format: "'+r+'"'))};He.noFormat=function(e){return String(e)};He.numberFormat=function(e){var r;try{r=NV(He.adjustFormat(e))}catch(t){return He.warnBadFormat(e),He.noFormat}return r};He.nestedProperty=qc();He.keyedContainer=Ob();He.relativeAttr=Ub();He.isPlainObject=Eo();He.toLogRange=Bc();He.relinkPrivateKeys=Yb();var qo=Zn();He.isArrayBuffer=qo.isArrayBuffer;He.isTypedArray=qo.isTypedArray;He.isArrayOrTypedArray=qo.isArrayOrTypedArray;He.isArray1D=qo.isArray1D;He.ensureArray=qo.ensureArray;He.concat=qo.concat;He.maxRowLength=qo.maxRowLength;He.minRowLength=qo.minRowLength;var rw=Os();He.mod=rw.mod;He.modHalf=rw.modHalf;var Oo=f4();He.valObjectMeta=Oo.valObjectMeta;He.coerce=Oo.coerce;He.coerce2=Oo.coerce2;He.coerceFont=Oo.coerceFont;He.coercePattern=Oo.coercePattern;He.coerceHoverinfo=Oo.coerceHoverinfo;He.coerceSelectionMarkerOpacity=Oo.coerceSelectionMarkerOpacity;He.validate=Oo.validate;var va=g6();He.dateTime2ms=va.dateTime2ms;He.isDateTime=va.isDateTime;He.ms2DateTime=va.ms2DateTime;He.ms2DateTimeLocal=va.ms2DateTimeLocal;He.cleanDate=va.cleanDate;He.isJSDate=va.isJSDate;He.formatDate=va.formatDate;He.incrementMonth=va.incrementMonth;He.dateTick0=va.dateTick0;He.dfltRange=va.dfltRange;He.findExactDates=va.findExactDates;He.MIN_MS=va.MIN_MS;He.MAX_MS=va.MAX_MS;var ql=Op();He.findBin=ql.findBin;He.sorterAsc=ql.sorterAsc;He.sorterDes=ql.sorterDes;He.distinctVals=ql.distinctVals;He.roundUp=ql.roundUp;He.sort=ql.sort;He.findIndexOfMin=ql.findIndexOfMin;He.sortObjectKeys=ah();var oo=x6();He.aggNums=oo.aggNums;He.len=oo.len;He.mean=oo.mean;He.geometricMean=oo.geometricMean;He.median=oo.median;He.midRange=oo.midRange;He.variance=oo.variance;He.stdev=oo.stdev;He.interp=oo.interp;var ei=Zc();He.init2dArray=ei.init2dArray;He.transposeRagged=ei.transposeRagged;He.dot=ei.dot;He.translationMatrix=ei.translationMatrix;He.rotationMatrix=ei.rotationMatrix;He.rotationXYMatrix=ei.rotationXYMatrix;He.apply3DTransform=ei.apply3DTransform;He.apply2DTransform=ei.apply2DTransform;He.apply2DTransform2=ei.apply2DTransform2;He.convertCssMatrix=ei.convertCssMatrix;He.inverseTransformMatrix=ei.inverseTransformMatrix;var Ci=T6();He.deg2rad=Ci.deg2rad;He.rad2deg=Ci.rad2deg;He.angleDelta=Ci.angleDelta;He.angleDist=Ci.angleDist;He.isFullCircle=Ci.isFullCircle;He.isAngleInsideSector=Ci.isAngleInsideSector;He.isPtInsideSector=Ci.isPtInsideSector;He.pathArc=Ci.pathArc;He.pathSector=Ci.pathSector;He.pathAnnulus=Ci.pathAnnulus;var Ks=A6();He.isLeftAnchor=Ks.isLeftAnchor;He.isCenterAnchor=Ks.isCenterAnchor;He.isRightAnchor=Ks.isRightAnchor;He.isTopAnchor=Ks.isTopAnchor;He.isMiddleAnchor=Ks.isMiddleAnchor;He.isBottomAnchor=Ks.isBottomAnchor;var Qs=C6();He.segmentsIntersect=Qs.segmentsIntersect;He.segmentDistance=Qs.segmentDistance;He.getTextLocation=Qs.getTextLocation;He.clearLocationCache=Qs.clearLocationCache;He.getVisibleSegment=Qs.getVisibleSegment;He.findPointOnPath=Qs.findPointOnPath;var ch=Tt();He.extendFlat=ch.extendFlat;He.extendDeep=ch.extendDeep;He.extendDeepAll=ch.extendDeepAll;He.extendDeepNoArrays=ch.extendDeepNoArrays;var Wp=Fl();He.log=Wp.log;He.warn=Wp.warn;He.error=Wp.error;var qV=Bs();He.counterRegex=qV.counter;var Xp=lh();He.throttle=Xp.throttle;He.throttleDone=Xp.done;He.clearThrottle=Xp.clear;var ri=bf();He.getGraphDiv=ri.getGraphDiv;He.isPlotDiv=ri.isPlotDiv;He.removeElement=ri.removeElement;He.addStyleRule=ri.addStyleRule;He.addRelatedStyleRule=ri.addRelatedStyleRule;He.deleteRelatedStyleRule=ri.deleteRelatedStyleRule;He.setStyleOnHover=ri.setStyleOnHover;He.getFullTransformMatrix=ri.getFullTransformMatrix;He.getElementTransformMatrix=ri.getElementTransformMatrix;He.getElementAndAncestors=ri.getElementAndAncestors;He.equalDomRects=ri.equalDomRects;He.clearResponsive=D6();He.preserveDrawingBuffer=F6();He.makeTraceGroups=N6();He._=q6();He.notifier=kp();He.filterUnique=B6();He.filterVisible=H6();He.pushUnique=Ep();He.increment=G6();He.cleanNumber=W6();He.ensureNumber=function(r){return $6(r)?(r=Number(r),r>ew||r=r?!1:$6(e)&&e>=0&&e%1===0};He.noop=Xc();He.identity=zp();He.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};He.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};He.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l=Math.pow(2,t)?a>10?(He.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};He.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};He.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};He.syncOrAsync=function(e,r,t){var n,a;function o(){return He.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};He.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};He.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};He.fillArray=function(e,r,t,n){if(n=n||He.identity,He.isArrayOrTypedArray(e))for(var a=0;aUV.test(window.navigator.userAgent);var HV=/Firefox\/(\d+)\.\d+/;He.getFirefoxVersion=function(){var e=HV.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};He.isD3Selection=function(e){return e instanceof Sf.selection};He.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var o=e.append(r);return t&&o.classed(t,!0),n&&o.call(n),o};He.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var o=e.append(r).attr("id",t);return n&&o.call(n),o};He.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},o=0;o1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};He.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var aw=/^\w*$/;He.templateString=function(e,r){var t={};return e.replace(He.TEMPLATE_STRING_REGEX,function(n,a){var o;return aw.test(a)?o=r[a]:(t[a]=t[a]||He.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var YV={max:10,count:0,name:"hovertemplate"};He.hovertemplateString=e=>Zp(Ec(Cl({},e),{opts:YV}));var WV={max:10,count:0,name:"texttemplate"};He.texttemplateString=e=>Zp(Ec(Cl({},e),{opts:WV}));var XV=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function ZV(e){var r=e.match(XV);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var JV={max:10,count:0,name:"texttemplate",parseMultDiv:!0};He.texttemplateStringForShapes=e=>Zp(Ec(Cl({},e),{opts:JV}));var J6=/^[:|\|]/;function Zp({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(He.TEMPLATE_STRING_REGEX,(i,l,u)=>{let s=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),h=["_xother_","_yother_"].includes(l),p=["xother_","yother_"].includes(l),_=s||f||p||h;(f||h)&&(l=l.substring(1)),(p||h)&&(l=l.substring(0,l.length-1));let y=null,b=null;if(a.parseMultDiv){var T=ZV(l);l=T.key,y=T.op,b=T.number}let m;if(_){if(n[l]===void 0)return"";m=n[l]}else for(let M of e)if(M){if(M.hasOwnProperty(l)){m=M[l];break}if(aw.test(l)||(m=He.nestedProperty(M,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:v,name:w}=a,g=t===!1?i:t;return M=fh&&i<=K6,s=l>=fh&&l<=K6;if(u&&(n=10*n+i-fh),s&&(a=10*a+l-fh),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var Js=2e9;He.seedPseudoRandom=function(){Js=2e9};He.pseudoRandom=function(){var e=Js;return Js=(69069*Js+1)%4294967296,Math.abs(Js-e)<429496729?He.pseudoRandom():Js/4294967296};He.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=He.extractOption(e,r,"htx","hovertext");if(He.isValidTextValue(a))return n(a);var o=He.extractOption(e,r,"tx","text");if(He.isValidTextValue(o))return n(o)};He.isValidTextValue=function(e){return e||e===0};He.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(s=1):s=0,He.strTranslate(a-s*(t+i),o-s*(n+l))+He.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};He.setTransormAndDisplay=function(e,r){e.attr("transform",He.getTextTransform(r)),e.style("display",r.scale?null:"none")};He.ensureUniformFontSize=function(e,r){var t=He.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};He.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};He.bigFont=function(e){return Math.round(1.2*e)};var Q6=He.getFirefoxVersion(),KV=Q6!==null&&Q6<86;He.getPositionFromD3Event=function(){return KV?[Sf.event.layerX,Sf.event.layerY]:[Sf.event.offsetX,Sf.event.offsetY]}});var sw=be(()=>{"use strict";var QV=er(),ow={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Jp in ow)lw=Jp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),QV.addStyleRule(lw,ow[Jp]);var lw,Jp});var Kp=be((nce,uw)=>{uw.exports=!0});var $p=be((ace,fw)=>{"use strict";var $V=Kp(),Qp;typeof window.matchMedia=="function"?Qp=!window.matchMedia("(hover: none)").matches:Qp=$V;fw.exports=Qp});var dh=be((ice,jp)=>{"use strict";var $s=typeof Reflect=="object"?Reflect:null,cw=$s&&typeof $s.apply=="function"?$s.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},hh;$s&&typeof $s.ownKeys=="function"?hh=$s.ownKeys:Object.getOwnPropertySymbols?hh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:hh=function(r){return Object.getOwnPropertyNames(r)};function jV(e){console&&console.warn&&console.warn(e)}var vw=Number.isNaN||function(r){return r!==r};function At(){At.init.call(this)}jp.exports=At;jp.exports.once=nG;At.EventEmitter=At;At.prototype._events=void 0;At.prototype._eventsCount=0;At.prototype._maxListeners=void 0;var hw=10;function vh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(At,"defaultMaxListeners",{enumerable:!0,get:function(){return hw},set:function(e){if(typeof e!="number"||e<0||vw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");hw=e}});At.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};At.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||vw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function dw(e){return e._maxListeners===void 0?At.defaultMaxListeners:e._maxListeners}At.prototype.getMaxListeners=function(){return dw(this)};At.prototype.emit=function(r){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")cw(u,this,t);else for(var s=u.length,f=xw(u,s),n=0;n0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,jV(l)}return e}At.prototype.addListener=function(r,t){return pw(this,r,t,!1)};At.prototype.on=At.prototype.addListener;At.prototype.prependListener=function(r,t){return pw(this,r,t,!0)};function eG(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function gw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=eG.bind(n);return a.listener=t,n.wrapFn=a,a}At.prototype.once=function(r,t){return vh(t),this.on(r,gw(this,r,t)),this};At.prototype.prependOnceListener=function(r,t){return vh(t),this.prependListener(r,gw(this,r,t)),this};At.prototype.removeListener=function(r,t){var n,a,o,i,l;if(vh(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():rG(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};At.prototype.off=At.prototype.removeListener;At.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function yw(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?tG(a):xw(a,a.length)}At.prototype.listeners=function(r){return yw(this,r,!0)};At.prototype.rawListeners=function(r){return yw(this,r,!1)};At.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):mw.call(e,r)};At.prototype.listenerCount=mw;function mw(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}At.prototype.eventNames=function(){return this._eventsCount>0?hh(this._events):[]};function xw(e,r){for(var t=new Array(r),n=0;n{"use strict";var eg=dh().EventEmitter,iG={init:function(e){if(e._ev instanceof eg)return e;var r=new eg,t=new eg;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l{"use strict";var ww=er(),oG=Pl().dfltConfig;function lG(e,r){for(var t=[],n,a=0;aoG.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};lo.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};lo.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};lo.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";Aw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var ru=be(tn=>{"use strict";var Ea=Tr(),Ef=er(),gh=Cn(),tg=Gs(),sG=rg(),uG=_f(),fG=Pl().configAttributes,kw=On(),ti=Ef.extendDeepAll,js=Ef.isPlainObject,cG=Ef.isArrayOrTypedArray,yh=Ef.nestedProperty,hG=Ef.valObjectMeta,ng="_isSubplotObj",mh="_isLinkedToArray",vG="_arrayAttrRegexps",Cw="_deprecated",ag=[ng,mh,vG,Cw];tn.IS_SUBPLOT_OBJ=ng;tn.IS_LINKED_TO_ARRAY=mh;tn.DEPRECATED=Cw;tn.UNDERSCORE_ATTRS=ag;tn.get=function(){var e={};return Ea.allTypes.forEach(function(r){e[r]=pG(r)}),{defs:{valObjects:hG,metaKeys:ag.concat(["description","role","editType","impliedEdits"]),editType:{traces:kw.traces,layout:kw.layout},impliedEdits:{}},traces:e,layout:gG(),frames:yG(),animation:eu(uG),config:eu(fG)}};tn.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(ag.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!tn.isValObject(i)&&js(i)&&o!=="impliedEdits"&&tn.crawl(i,r,a+1,l)}})};tn.isValObject=function(e){return e&&e.valType!==void 0};tn.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,h){t=t.slice(0,h).concat([s]),n=n.slice(0,h).concat([u&&u._isLinkedToArray]);var p=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[h-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));p&&l(a,0,"")}function l(u,s,f){var h=u[t[s]],p=f+t[s];if(s===t.length-1)cG(h)&&r.push(o+p);else if(n[s]){if(Array.isArray(h))for(var _=0;_=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!ph(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function ph(e){return e===Math.round(e)&&e>=0}function pG(e){var r,t;r=Ea.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=ti({},gh),o=ti({},r.attributes);tn.crawl(o,function(u,s,f,h,p){yh(a,p).set(void 0),u===void 0&&yh(o,p).set(void 0)}),ti(n,a),Ea.traceIs(e,"noOpacity")&&delete n.opacity,Ea.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Ea.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,ti(n,o),t.attributes&&ti(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:eu(n)};if(r.layoutAttributes){var l={};ti(l,r.layoutAttributes),i.layoutAttributes=eu(l)}return r.animatable||tn.crawl(i,function(u){tn.isValObject(u)&&"anim"in u&&delete u.anim}),i}function gG(){var e={},r,t;ti(e,tg);for(r in Ea.subplotsRegistry)if(t=Ea.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var tu=er(),wG=Cn(),Bo="templateitemname",ig={name:{valType:"string",editType:"none"}};ig[Bo]={valType:"string",editType:"calc"};Ol.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=ig.name,r[Bo]=ig[Bo],r};Ol.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=tu.coerce(o,{},wG,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};Ol.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);tu.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};Ol.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[Dw(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},h=f[Bo]=s[Bo];if(!Lw(h))return f._template=a,f;for(var p=0;p=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][Bo]=o)}u();function s(_,y){l[_]=y}function f(_,y){o?tu.nestedProperty(l[i],_).set(y):l[i+"."+_]=y}function h(){var _=l;return u(),_}function p(_,y){_&&f(_,y);var b=h();for(var T in b)tu.nestedProperty(e,T).set(b[T])}return{modifyBase:s,modifyItem:f,getUpdateObj:h,applyUpdate:p}}});var un=be((cce,Rw)=>{"use strict";var Lf=Bs().counter;Rw.exports={idRegex:{x:Lf("x","( domain)?"),y:Lf("y","( domain)?")},attrRegex:Lf("[xy]axis"),xAxisMatch:Lf("xaxis"),yAxisMatch:Lf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var nn=be(oa=>{"use strict";var MG=Tr(),og=un();oa.id2name=function(r){if(!(typeof r!="string"||!r.match(og.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};oa.name2id=function(r){if(r.match(og.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};oa.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(og.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].slice(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};oa.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=oa.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};oa.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Pw(e,r){if(r&&r.length){for(var t=0;t{"use strict";function TG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function AG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Fw.exports={clearOutlineControllers:TG,clearOutline:AG}});var xh=be((dce,Iw)=>{"use strict";Iw.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Df=be(_h=>{"use strict";var bh=Tr(),pce=un().SUBPLOT_PATTERN;_h.getSubplotCalcData=function(e,r,t){var n=bh.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i{"use strict";var kG=Tr(),nu=er();Bl.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=Bl.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){Nw(e,i,a.cache),a.check=function(){if(o){var f=Nw(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+a;nu.isPlainObject(o)?lg(o,r,i,n+1):r(i,a,o)}})}});var fn=be((mce,jw)=>{"use strict";var Ww=ot(),CG=zs().timeFormatLocale,EG=pp().formatLocale,Rf=nt(),LG=gp(),lt=Tr(),Xw=ru(),DG=yt(),vr=er(),Zw=Gr(),Bw=ln().BADNUM,la=nn(),RG=Uo().clearOutline,PG=xh(),sg=_f(),FG=rg(),IG=Df().getModuleCalcData,Uw=vr.relinkPrivateKeys,Ul=vr._,or=jw.exports={};vr.extendFlat(or,lt);or.attributes=Cn();or.attributes.type.values=or.allTypes;or.fontAttrs=Sn();or.layoutAttributes=Gs();var Mh=Ow();or.executeAPICommand=Mh.executeAPICommand;or.computeAPICommandBindings=Mh.computeAPICommandBindings;or.manageCommandObserver=Mh.manageCommandObserver;or.hasSimpleAPICommandBindings=Mh.hasSimpleAPICommandBindings;or.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(lt.getComponentMethod("annotations","draw")(e),lt.getComponentMethod("legend","draw")(e),lt.getComponentMethod("colorbar","draw")(e),r(or.previousPromises(e)))},300)})};or.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||vr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,lt.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};or.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};or.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=vr.ensureSingle(r._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Zw.defaultLine,"pointer-events":"all"}).each(function(){var s=Ww.select(this);s.append("tspan").classed("js-link-to-tool",!0),s.append("tspan").classed("js-link-spacer",!0),s.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var o=t.select(".js-link-to-tool"),i=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&NG(e,o),i.text(o.text()&&l.text()?" - ":"")}};function NG(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){or.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}or.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=Ww.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=or.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var zG=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],qG=["year","month","dayMonth","dayMonthYear"];or.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},h;e._transitionData||or.createTransitionData(e),a._dfltTitle={plot:Ul(e,"Click to enter Plot title"),subtitle:Ul(e,"Click to enter Plot subtitle"),x:Ul(e,"Click to enter X axis title"),y:Ul(e,"Click to enter Y axis title"),colorbar:Ul(e,"Click to enter Colorscale title"),annotation:Ul(e,"new text")},a._traceWord=Ul(e,"trace");var p=Hw(e,zG);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var _=n.width,y=n.height;or.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=_),o.height||(a.height=y),or.sanitizeMargins(a)}else{or.supplyLayoutGlobalDefaults(o,a,p);var b=!o.width||!o.height,T=a.autosize,m=f.autosizable,k=b&&(T||m);k?or.plotAutoSize(e,o,a):b&&or.sanitizeMargins(a),!T&&b&&(o.width=a.width,o.height=a.height)}a._d3locale=UG(p,a.separators),a._extraFormat=Hw(e,qG),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=BG(),x=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=OG(i,u),or.supplyDataDefaults(u,l,o,a);var v=Object.keys(x.x),w=Object.keys(x.y);if(v.length>1&&w.length>1){for(lt.getComponentMethod("grid","sizeDefaults")(o,a),h=0;h15&&w.length>15&&a.shapes.length===0&&a.images.length===0,or.linkSubplots(l,a,i,n),or.cleanPlot(l,a,i,n);var D=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),R=D,N=E;R&&!N?n._bgLayer.remove():N&&!R&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&RG({_fullLayout:n}),HG(l,a),Uw(a,n),lt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var I=a._tracePreGUI,F={},L;for(L in I)F[L]="old";for(h=0;h0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var h=or.layoutAttributes.width.min,p=or.layoutAttributes.height.min;i1,y=!t.height&&Math.abs(n.height-l)>1;(y||_)&&(_&&(n.width=i),y&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),or.sanitizeMargins(n)};or.supplyLayoutModuleDefaults=function(e,r,t,n){var a=lt.componentsRegistry,o=r._basePlotModules,i,l,u,s=lt.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(lt.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(l=0;l1&&(t.l/=T,t.r/=T)}if(p){var m=(t.t+t.b)/p;m>1&&(t.t/=m,t.b/=m)}var k=t.xl!==void 0?t.xl:t.x,S=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;_[r]={l:{val:k,size:t.l+b},r:{val:S,size:t.r+b},b:{val:M,size:t.b+b},t:{val:x,size:t.t+b}},y[r]=1}if(!n._replotting)return or.doAutoMargin(e)}};function GG(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=la.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}or.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),Jw(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=vr.extendFlat({},a),u=o.l,s=o.r,f=o.t,h=o.b,p=r._pushmargin,_=r._pushmarginIds,y=r.minreducedwidth,b=r.minreducedheight;if(o.autoexpand!==!1){for(var T in p)_[T]||delete p[T];var m=e._fullLayout._reservedMargin;for(var k in m)for(var S in m[k]){var x=m[k][S];i[S]=Math.max(i[S],x)}p.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:h}};for(var M in i){var v=0;for(var w in p)w!=="base"&&Rf(p[w][M].size)&&(v=p[w][M].size>v?p[w][M].size:v);var g=Math.max(0,o[M]-v);i[M]=Math.max(0,i[M]-g)}for(var c in p){var A=p[c].l||{},d=p[c].b||{},D=A.val,E=A.size,R=d.val,N=d.size,I=t-i.r-i.l,F=n-i.t-i.b;for(var L in p){if(Rf(E)&&p[L].r){var P=p[L].r.val,O=p[L].r.size;if(P>D){var B=(E*P+(O-I)*D)/(P-D),X=(O*(1-D)+(E-I)*(1-P))/(P-D);B+X>u+s&&(u=B,s=X)}}if(Rf(N)&&p[L].t){var $=p[L].t.val,ee=p[L].t.size;if($>R){var Y=(N*$+(ee-F)*R)/($-R),q=(ee*(1-R)+(N-F)*(1-$))/($-R);Y+q>h+f&&(h=Y,f=q)}}}}}var Q=vr.constrain(t-o.l-o.r,Kw,y),oe=vr.constrain(n-o.t-o.b,Qw,b),Z=Math.max(0,t-Q),se=Math.max(0,n-oe);if(Z){var j=(u+s)/Z;j>1&&(u/=j,s/=j)}if(se){var V=(h+f)/se;V>1&&(h/=V,f/=V)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(h)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(or.didMarginChange(l,a)||GG(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var re=3*(1+Object.keys(_).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};or.graphJson=function(e,r,t,n,a,o){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&or.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function s(p,_){if(typeof p=="function")return _?"_function_":null;if(vr.isPlainObject(p)){var y={},b;return Object.keys(p).sort().forEach(function(S){if(["_","["].indexOf(S.charAt(0))===-1){if(typeof p[S]=="function"){_&&(y[S]="_function");return}if(t==="keepdata"){if(S.slice(-3)==="src")return}else if(t==="keepstream"){if(b=p[S+"src"],typeof b=="string"&&b.indexOf(":")>0&&!vr.isPlainObject(p.stream))return}else if(t!=="keepall"&&(b=p[S+"src"],typeof b=="string"&&b.indexOf(":")>0))return;y[S]=s(p[S],_)}}),y}var T=Array.isArray(p),m=vr.isTypedArray(p);if((T||m)&&p.dtype&&p.shape){var k=p.bdata;return s({dtype:p.dtype,shape:p.shape,bdata:vr.isArrayBuffer(k)?LG.encode(k):k},_)}return T?p.map(function(S){return s(S,_)}):m?vr.simpleMap(p,vr.identity):vr.isJSDate(p)?vr.ms2DateTimeLocal(+p):p}var f={data:(i||[]).map(function(p){var _=s(p);return r&&delete _.fit,_})};if(!r&&(f.layout=s(l),a)){var h=l._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return u&&(f.frames=s(u)),o&&(f.config=s(e._context,!0)),n==="object"?f:JSON.stringify(f)};or.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return lt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,_=0;function y(){return p++,function(){_++,!n&&_===p&&l(h)}}t.runFn(y),setTimeout(y())})}function l(h){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return lt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(h)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[or.previousPromises,u,t.prepareFn,or.rehover,or.reselect,i],f=vr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}or.doCalcdata=function(e,r){var t=la.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u,s=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=s,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;u--)if(M[u].enabled){o._indexToPoints=M[u]._indexToPoints;break}i&&i.calc&&(x=i.calc(e,o))}(!Array.isArray(x)||!x[0])&&(x=[{x:Bw,y:Bw}]),x[0].t||(x[0].t={}),x[0].trace=o,s[k]=x}}for(Gw(t,n,a),l=0;l{"use strict";Hl.xmlns="http://www.w3.org/2000/xmlns/";Hl.svg="http://www.w3.org/2000/svg";Hl.xlink="http://www.w3.org/1999/xlink";Hl.svgAttrs={xmlns:Hl.svg,"xmlns:xlink":Hl.xlink}});var En=be((bce,e7)=>{"use strict";e7.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Bn=be(La=>{"use strict";var Jt=ot(),so=er(),ZG=so.strTranslate,ug=Ho(),JG=En().LINE_SPACING,KG=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(KG),o=Jt.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=uY(e.node(),n);u&&e.style("pointer-events","all"),La.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s};eY(a[2],f,function(h,p,_){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var y=h&&h.select("svg");if(!y||!y.node()){l(),u();return}var b=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});b.node().appendChild(y.node()),p&&p.node()&&y.node().insertBefore(p.node().cloneNode(!0),y.node().firstChild);var T=_.width,m=_.height;y.attr({class:i,height:m,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",S=y.select("g");S.attr({fill:k,stroke:k});var x=S.node().getBoundingClientRect(),M=x.width,v=x.height;(M>T||v>m)&&(y.style("overflow","hidden"),x=y.node().getBoundingClientRect(),M=x.width,v=x.height);var w=+e.attr("x"),g=+e.attr("y"),c=s||e.node().getBoundingClientRect().height,A=-c/4;if(i[0]==="y")b.attr({transform:"rotate("+[-90,w,g]+")"+ZG(-M/2,A-v/2)});else if(i[0]==="l")g=A-v/2;else if(i[0]==="a"&&i.indexOf("atitle")!==0)w=0,g=A;else{var d=e.attr("text-anchor");w=w-M*(d==="middle"?.5:d==="end"?1:0),g=g+A-v/2}y.attr({x:w,y:g}),t&&t.call(e,b),u(b)})})):l(),e};var QG=/(<|<|<)/g,$G=/(>|>|>)/g;function jG(e){return e.replace(QG,"\\lt ").replace($G,"\\gt ")}var r7=[["$","$"],["\\(","\\)"]];function eY(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){so.warn("No MathJax version:",MathJax.version);return}var a,o,i,l,u=function(){return o=so.extendDeepAll({},MathJax.Hub.config),i=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:r7},displayAlign:"left"})},s=function(){o=so.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=r7},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},h=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},p=function(){var k="math-output-"+so.randstr({},64);l=Jt.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(jG(e));var S=l.node();return n===2?MathJax.Hub.Typeset(S):MathJax.typeset([S])},_=function(){var k=l.select(n===2?".MathJax_SVG":".MathJax"),S=!k.empty()&&l.select("svg").node();if(!S)so.log("There was an error in the tex syntax.",e),t();else{var x=S.getBoundingClientRect(),M;n===2?M=Jt.select("body").select("#MathJax_SVG_glyphs"):M=k.select("defs"),t(k,M,x)}l.remove()},y=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},b=function(){a!=="svg"&&(MathJax.config.startup.output=a)},T=function(){return i!==void 0&&(MathJax.Hub.processSectionDelay=i),MathJax.Hub.Config(o)},m=function(){MathJax.config=o};n===2?MathJax.Hub.Queue(u,f,p,_,y,T):n===3&&(s(),h(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){p(),_(),b(),m()}))}var i7={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},rY={sub:"0.3em",sup:"-0.6em"},tY={sub:"-0.21em",sup:"0.42em"},t7="\u200B",n7=["http:","https:","mailto:","",void 0,":"],o7=La.NEWLINES=/(\r\n?|\n)/g,cg=/(<[^<>]*>)/,hg=/<(\/?)([^ >]*)(\s+(.*))?>/i,nY=//i;La.BR_TAG_ALL=//gi;var l7=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,s7=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,u7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,aY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Vl(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&Th(n)}var iY=/(^|;)\s*color:/;La.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(cg),l=[],u="",s=0,f=0;fo?l.push(h.slice(0,Math.max(0,b-o))+a):l.push(h.slice(0,b));break}u=""}}return l.join("")};var oY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},lY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Th(e){return e.replace(lY,function(r,t){var n;return t.charAt(0)==="#"?n=sY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=oY[t],n||r})}La.convertEntities=Th;function sY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function uY(e,r){r=r.replace(o7," ");var t=!1,n=[],a,o=-1;function i(){o++;var v=document.createElementNS(ug.svg,"tspan");Jt.select(v).attr({class:"line",dy:o*JG+"em"}),e.appendChild(v),a=v;var w=n;if(n=[{node:v}],w.length>1)for(var g=1;g.",r);return}var w=n.pop();v!==w.type&&so.log("Start tag <"+w.type+"> doesnt match end tag <"+v+">. Pretending it did match.",r),a=n[n.length-1].node}var f=nY.test(r);f?i():(a=e,n=[{node:e}]);for(var h=r.split(cg),p=0;p{"use strict";var fY=ot(),kh=Sa(),Ff=nt(),Ah=er(),c7=Gr(),cY=Dl().isValid;function hY(e,r,t){var n=r?Ah.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(Ah.isArrayOrTypedArray(a)){for(var i=0;i=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function y7(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i{"use strict";var x7=Pp(),dY=x7.FORMAT_LINK,pY=x7.DATE_FORMAT_LINK;function gY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?vg:b7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function vg(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+dY+"."].join(" ")}function b7(e,r){return vg(e,r)+[" And for dates see: "+pY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}_7.exports={axisHoverFormat:gY,descriptionOnlyNumbers:vg,descriptionWithDates:b7}});var Da=be((Ace,q7)=>{"use strict";var w7=Sn(),au=Si(),z7=Ro().dash,pg=Tt().extendFlat,M7=yt().templatedArray,Tce=ja().templateFormatStringDescription,T7=uo().descriptionWithDates,yY=ln().ONEDAY,Li=un(),mY=Li.HOUR_PATTERN,xY=Li.WEEKDAY_PATTERN,dg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},bY=pg({},dg,{values:dg.values.slice().concat(["sync"])});function A7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var k7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},S7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},C7={valType:"data_array",editType:"ticks"},E7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function L7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function D7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var R7={valType:"color",dflt:au.defaultLine,editType:"ticks"},P7={valType:"color",dflt:au.lightLine,editType:"ticks"};function F7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var I7=pg({},z7,{editType:"ticks"}),N7={valType:"boolean",editType:"ticks"};q7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:au.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:w7({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Li.idRegex.x.toString(),Li.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Li.idRegex.x.toString(),Li.idRegex.y.toString()],editType:"calc"},rangebreaks:M7("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[xY,mY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:yY},editType:"calc"}),tickmode:bY,nticks:A7(),tick0:k7,dtick:S7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:C7,ticktext:{valType:"data_array",editType:"ticks"},ticks:E7,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:L7(),tickwidth:D7(),tickcolor:R7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:pg({},z7,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:w7({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:T7("tick label")},tickformatstops:M7("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:T7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:au.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:N7,gridcolor:P7,gridwidth:F7(),griddash:I7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:au.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:au.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Li.idRegex.x.toString(),Li.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Li.idRegex.x.toString(),Li.idRegex.y.toString()],editType:"plot"},minor:{tickmode:dg,nticks:A7("minor"),tick0:k7,dtick:S7,tickvals:C7,ticks:E7,ticklen:L7("minor"),tickwidth:D7("minor"),tickcolor:R7,gridcolor:P7,gridwidth:F7("minor"),griddash:I7,showgrid:N7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Sh=be((kce,U7)=>{"use strict";var kt=Da(),O7=Sn(),B7=Tt().extendFlat,_Y=On().overrideAll;U7.exports=_Y({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:kt.linecolor,outlinewidth:kt.linewidth,bordercolor:kt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:kt.minor.tickmode,nticks:kt.nticks,tick0:kt.tick0,dtick:kt.dtick,tickvals:kt.tickvals,ticktext:kt.ticktext,ticks:B7({},kt.ticks,{dflt:""}),ticklabeloverflow:B7({},kt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:kt.ticklen,tickwidth:kt.tickwidth,tickcolor:kt.tickcolor,ticklabelstep:kt.ticklabelstep,showticklabels:kt.showticklabels,labelalias:kt.labelalias,tickfont:O7({}),tickangle:kt.tickangle,tickformat:kt.tickformat,tickformatstops:kt.tickformatstops,tickprefix:kt.tickprefix,showtickprefix:kt.showtickprefix,ticksuffix:kt.ticksuffix,showticksuffix:kt.showticksuffix,separatethousands:kt.separatethousands,exponentformat:kt.exponentformat,minexponent:kt.minexponent,showexponent:kt.showexponent,title:{text:{valType:"string"},font:O7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ni=be((Cce,V7)=>{"use strict";var wY=Sh(),MY=Bs().counter,TY=ah(),H7=Dl().scales,Sce=TY(H7);function Ch(e){return"`"+e+"`"}V7.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?H7[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,h;"colorAttr"in t?(f=t.colorAttr,h=t.colorAttr):(f={z:"z",c:"color"}[n],h="in "+Ch(s+f));var p=a?" Has an effect only if "+h+" is set to a numerical array.":"",_=n+"auto",y=n+"min",b=n+"max",T=n+"mid",m=Ch(s+_),k=Ch(s+y),S=Ch(s+b),x=k+" and "+S,M={};M[y]=M[b]=void 0;var v={};v[_]=!1;var w={};return f==="color"&&(w.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(w.color.anim=!0)),w[_]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},w[y]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:v},w[b]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:v},w[T]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},w.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},w.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},w.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(w.showscale={valType:"boolean",dflt:i,editType:"calc"},w.colorbar=wY),t.noColorAxis||(w.coloraxis={valType:"subplotid",regex:MY("coloraxis"),dflt:null,editType:"calc"}),w}});var yg=be((Ece,G7)=>{"use strict";var AY=Tt().extendFlat,kY=ni(),gg=Dl().scales;G7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:gg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:gg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:gg.RdBu,editType:"calc"}},coloraxis:AY({_isSubplotObj:!0,editType:"calc"},kY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var mg=be((Lce,Y7)=>{"use strict";var SY=er();Y7.exports=function(r){return SY.isPlainObject(r.colorbar)}});var _g=be(bg=>{"use strict";var xg=nt(),W7=er(),X7=ln(),CY=X7.ONEDAY,EY=X7.ONEWEEK;bg.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?CY:1;if(!e)return o;if(xg(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.slice(1);return l=xg(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};bg.tick0=function(e,r,t,n){if(r==="date")return W7.cleanDate(e,W7.dateTick0(t,n%EY===0?1:0));if(!(n==="D1"||n==="D2"))return xg(e)?Number(e):0}});var wg=be((Rce,J7)=>{"use strict";var Z7=_g(),LY=er().isArrayOrTypedArray,DY=Zn().isTypedArraySpec,RY=Zn().decodeTypedArraySpec;J7.exports=function(r,t,n,a,o){o||(o={});var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(k){var S=l[k];return DY(S)&&(S=RY(S)),S!==void 0?S:(u._template||{})[k]}var h=f("tick0"),p=f("dtick"),_=f("tickvals"),y=LY(_)?"array":p?"linear":"auto",b=n(s+"tickmode",y);if(b==="auto"||b==="sync")n(s+"nticks");else if(b==="linear"){var T=u.dtick=Z7.dtick(p,a);u.tick0=Z7.tick0(h,a,t.calendar,T)}else if(a!=="multicategory"){var m=n(s+"tickvals");m===void 0?u.tickmode="auto":i||n("ticktext")}}});var Tg=be((Pce,Q7)=>{"use strict";var Mg=er(),K7=Da();Q7.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?K7.minor:K7,s=o?"minor.":"",f=Mg.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),h=Mg.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=Mg.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),_=n(s+"ticks",!o&&a.outerTicks||f||h||p?"outside":"");_||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var Ag=be((Fce,$7)=>{"use strict";$7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var ai=be((Ice,j7)=>{"use strict";var Eh=er(),PY=yt();j7.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=Eh.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=PY.arrayTemplater(t,a,o),f,h;for(f=0;f{"use strict";var kg=er(),FY=Gr().contrast,e8=Da(),IY=Ag(),NY=ai();r8.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");kg.isPlainObject(i)||delete t.labelalias;var l=IY(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,h=t.ticklabelposition||"",p=h.indexOf("inside")!==-1?FY(o.bgColor):f&&f!==e8.color.dflt?f:s.color;if(kg.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var _=n("tickangle");!o.noAutotickangles&&_==="auto"&&n("autotickangles")}if(a!=="category"){var y=n("tickformat");NY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:zY}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!y&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function zY(e,r){function t(a,o){return kg.coerce(e,r,e8.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var Cg=be((zce,t8)=>{"use strict";var qY=Ag();t8.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=qY(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var Eg=be((qce,n8)=>{"use strict";var Vo=er(),OY=yt(),BY=wg(),UY=Tg(),HY=Sg(),VY=Cg(),GY=Sh();n8.exports=function(r,t,n){var a=OY.newContainer(t,"colorbar"),o=r.colorbar||{};function i(d,D){return Vo.coerce(o,a,GY,d,D)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),h=f==="v",p=i("thicknessmode");i("thickness",p==="fraction"?30/(h?u:s):30);var _=i("lenmode");i("len",_==="fraction"?1:h?s:u);var y=i("yref"),b=i("xref"),T=y==="paper",m=b==="paper",k,S,x,M="left";h?(x="middle",M=m?"left":"right",k=m?1.02:1,S=.5):(x=T?"bottom":"top",M="center",k=.5,S=T?1.02:1),Vo.coerce(o,a,{x:{valType:"number",min:m?-2:0,max:m?3:1,dflt:k}},"x"),Vo.coerce(o,a,{y:{valType:"number",min:T?-2:0,max:T?3:1,dflt:S}},"y"),i("xanchor",M),i("xpad"),i("yanchor",x),i("ypad"),Vo.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var v=Vo.coerce(o,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");i("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":"hide past div"),BY(o,a,i,"linear");var w=n.font,g={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:w};v.indexOf("inside")!==-1&&(g.bgColor="black"),VY(o,a,i,"linear",g),HY(o,a,i,"linear",g),UY(o,a,i,"linear",g),i("title.text",n._dfltTitle.colorbar);var c=a.showticklabels?a.tickfont:w,A=Vo.extendFlat({},w,{family:c.family,size:Vo.bigFont(c.size)});Vo.coerceFont(i,"title.font",A),i("title.side",h?"top":"right")}});var Di=be((Oce,o8)=>{"use strict";var a8=nt(),Dg=er(),YY=mg(),WY=Eg(),i8=Dl().isValid,XY=Tr().traceIs;function Lg(e,r){var t=r.slice(0,r.length-1);return r?Dg.nestedProperty(e,t).get()||{}:e}o8.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=Lg(r,i),f=Lg(t,i),h=Lg(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var _=n._colorAxes||{},y=a(i+"coloraxis");if(y){var b=XY(t,"contour")&&Dg.nestedProperty(t,"contours.coloring").get()||"heatmap",T=_[y];T?(T[2].push(p),T[0]!==b&&(T[0]=!1,Dg.warn(["Ignoring coloraxis:",y,"setting","as it is linked to incompatible colorscales."].join(" ")))):_[y]=[b,t,[p]];return}}var m=s[l+"min"],k=s[l+"max"],S=a8(m)&&a8(k)&&m{"use strict";var l8=er(),ZY=yt(),s8=yg(),JY=Di();u8.exports=function(r,t){function n(h,p){return l8.coerce(r,t,s8,h,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(h,p){return l8.coerce(o,i,s8.coloraxis,h,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=ZY.newContainer(t,u,"coloraxis"),i._name=u,JY(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var KY=er(),QY=Ei().hasColorscale,$Y=Ei().extractOpts;c8.exports=function(r,t){function n(f,h){var p=f["_"+h];p!==void 0&&(f[h]=p)}function a(f,h){var p=h.container?KY.nestedProperty(f,h.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var _=$Y(p),y=_.auto;(y||_.min===void 0)&&n(p,h.min),(y||_.max===void 0)&&n(p,h.max),_.autocolorscale&&n(p,"colorscale")}}for(var o=0;o{"use strict";var v8=nt(),Rg=er(),jY=Ei().extractOpts;d8.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?Rg.nestedProperty(t,i).get():t,u=jY(l),s=u.auto!==!1,f=u.min,h=u.max,p=u.mid,_=function(){return Rg.aggNums(Math.min,null,o)},y=function(){return Rg.aggNums(Math.max,null,o)};if(f===void 0?f=_():s&&(l._colorAx&&v8(f)?f=Math.min(f,_()):f=_()),h===void 0?h=y():s&&(l._colorAx&&v8(h)?h=Math.max(h,y()):h=y()),s&&p!==void 0&&(h-p>p-f?f=p-(h-p):h-p=0?b=a.colorscale.sequential:b=a.colorscale.sequentialminus,u._sync("colorscale",b)}}});var Ri=be((Vce,p8)=>{"use strict";var Lh=Dl(),iu=Ei();p8.exports={moduleType:"component",name:"colorscale",attributes:ni(),layoutAttributes:yg(),supplyLayoutDefaults:f8(),handleDefaults:Di(),crossTraceDefaults:h8(),calc:Go(),scales:Lh.scales,defaultScale:Lh.defaultScale,getScale:Lh.get,isValidScale:Lh.isValid,hasColorscale:iu.hasColorscale,extractOpts:iu.extractOpts,extractScale:iu.extractScale,flipScale:iu.flipScale,makeColorScaleFunc:iu.makeColorScaleFunc,makeColorScaleFuncFromTrace:iu.makeColorScaleFuncFromTrace}});var sa=be((Gce,y8)=>{"use strict";var g8=er(),eW=Zn().isTypedArraySpec;y8.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return g8.isPlainObject(r)&&(g8.isArrayOrTypedArray(r.size)||eW(r.size))}}});var Pg=be((Yce,m8)=>{"use strict";var rW=nt();m8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return rW(u)&&u>0?Math.max(u,o):0}}});var fo=be(Ln=>{"use strict";var Dh=er();Ln.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ln.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{_8.exports=oW;var Fg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},iW=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function oW(e){var r=[];return e.replace(iW,function(t,n,a){var o=n.toLowerCase();for(a=sW(a),o=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(a.length==Fg[o])return a.unshift(n),r.push(a);if(a.length{"use strict";var uW=Ig(),ar=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Lr="M0,0Z",w8=Math.sqrt(2),Yo=Math.sqrt(3),Ng=Math.PI,zg=Math.cos,qg=Math.sin;S8.exports={circle:{n:0,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?Rr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.3,2);return Rr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.4,2),a=ar(e*1.2,2);return Rr(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.8/w8,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return Rr(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2/Yo,2),a=ar(e/2,2),o=ar(e,2);return Rr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2/Yo,2),a=ar(e/2,2),o=ar(e,2);return Rr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2/Yo,2),a=ar(e/2,2),o=ar(e,2);return Rr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2/Yo,2),a=ar(e/2,2),o=ar(e,2);return Rr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.6,2),a=ar(e*1.2,2);return Rr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.6,2),a=ar(e*1.2,2);return Rr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.6,2),a=ar(e*1.2,2);return Rr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.6,2),a=ar(e*1.2,2);return Rr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.951,2),a=ar(e*.588,2),o=ar(-e,2),i=ar(e*-.309,2),l=ar(e*.809,2);return Rr(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e/2,2),o=ar(e*Yo/2,2);return Rr(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e/2,2),o=ar(e*Yo/2,2);return Rr(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.924,2),a=ar(e*.383,2);return Rr(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Dr(r))return Lr;var n=e*1.4,a=ar(n*.225,2),o=ar(n*.951,2),i=ar(n*.363,2),l=ar(n*.588,2),u=ar(-n,2),s=ar(n*-.309,2),f=ar(n*.118,2),h=ar(n*.809,2),p=ar(n*.382,2);return Rr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+h+"L0,"+p+"L-"+l+","+h+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.66,2),a=ar(e*.38,2),o=ar(e*.76,2);return Rr(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*Yo*.8,2),a=ar(e*.8,2),o=ar(e*1.6,2),i=ar(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Rr(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*Yo*.8,2),a=ar(e*.8,2),o=ar(e*1.6,2),i=ar(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Rr(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.1,2),a=ar(e*2,2),o="A "+a+","+a+" 0 0 1 ";return Rr(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2),a=ar(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return Rr(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.7,2),a=ar(e*1.4,2);return Rr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2),a=ar(e*.7,2);return Rr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e/w8,2);return Rr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.3,2);return Rr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.3,2),a=ar(e*.65,2);return Rr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2);return Rr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*.85,2);return Rr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e/2,2),a=ar(e,2);return Rr(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*1.6,2),o=ar(e*.8,2);return Rr(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*1.6,2),o=ar(e*.8,2);return Rr(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*1.6,2),o=ar(e*.8,2);return Rr(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*1.6,2),o=ar(e*.8,2);return Rr(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2);return Rr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2);return Rr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e*2,2);return Rr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e*2,2);return Rr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2,2),a=ar(e,2);return Rr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2,2),a=ar(e,2);return Rr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e*2,2);return Rr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e*2,2);return Rr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2,2),a=ar(e,2);return Rr(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2,2),a=ar(e,2);return Rr(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Dr(r))return Lr;var n=Ng/2.5,a=2*e*zg(n),o=2*e*qg(n);return Rr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Dr(r))return Lr;var n=Ng/4,a=2*e*zg(n),o=2*e*qg(n);return Rr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Dr(e){return e===null}var M8,T8,A8,k8;function Rr(e,r,t){if((!e||e%360===0)&&!r)return t;if(A8===e&&k8===r&&M8===t)return T8;A8=e,k8=r,M8=t;function n(T,m){var k=zg(T),S=qg(T),x=m[0],M=m[1]+(r||0);return[x*k-M*S,x*S+M*k]}for(var a=e/180*Ng,o=0,i=0,l=uW(t),u="",s=0;s{"use strict";var cn=ot(),pt=er(),fW=pt.numberFormat,Xl=nt(),Gg=Sa(),Ph=Tr(),Tn=Gr(),cW=Ri(),Nf=pt.strTranslate,Fh=Bn(),hW=Ho(),vW=En(),dW=vW.LINE_SPACING,q8=Yc().DESELECTDIM,pW=sa(),gW=Pg(),yW=fo().appendArrayPointValue,lr=Z8.exports={};lr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(Tn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Og(xW(f))),u&&e.style("text-shadow",u==="auto"?Fh.makeTextShadow(Tn.contrast(o)):Og(u)),s&&e.style("text-decoration-line",Og(bW(s)))};function Og(e){return e==="none"?void 0:e}var mW={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function xW(e){return mW[e]}function bW(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}lr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};lr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};lr.setRect=function(e,r,t,n,a){e.call(lr.setPosition,r,t).call(lr.setSize,n,a)};lr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(Xl(a)&&Xl(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",Nf(a,o));else return!1;return!0};lr.translatePoints=function(e,r,t){e.each(function(n){var a=cn.select(this);lr.translatePoint(n,a,r,t)})};lr.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};lr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=Ph.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){lr.hideOutsideRangePoint(s,cn.select(this),t,n,i,l)})})}};lr.crispRound=function(e,r,t){return!r||!Xl(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};lr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";Tn.stroke(r,n||o.color),lr.dashLine(r,l,i)};lr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";cn.select(this).call(Tn.stroke,t||o.color).call(lr.dashLine,l,i)})};lr.dashLine=function(e,r,t){t=+t||0,r=lr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};lr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function O8(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=lr.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,h=i(a.size,0,8),p=i(a.solidity,0,.3),_=r.uid;lr.pattern(e,"point",t,_,l,h,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var y=o.type,b="scatterfill-"+r.uid;if(n&&(b="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var T,m;y==="horizontal"?(T={x:o.start,y:0},m={x:o.stop,y:0}):y==="vertical"&&(T={x:0,y:o.start},m={x:0,y:o.stop}),T.x=r._xA.c2p(T.x===void 0?r._extremes.x.min[0].val:T.x,!0),T.y=r._yA.c2p(T.y===void 0?r._extremes.y.min[0].val:T.y,!0),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.max[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.max[0].val:m.y,!0),e.call(H8,t,b,"linear",o.colorscale,"fill",T,m,!0,!1)}else y==="horizontal"&&(y=y+"reversed"),e.call(lr.gradient,t,b,y,o.colorscale,"fill")}else r.fillcolor&&e.call(Tn.fill,r.fillcolor)}lr.singleFillStyle=function(e,r){var t=cn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};O8(e,a,r,!1)};lr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=cn.select(this);n[0].trace&&O8(a,n[0].trace,r,t)})};var E8=C8();lr.symbolNames=[];lr.symbolFuncs=[];lr.symbolBackOffs=[];lr.symbolNeedLines={};lr.symbolNoDot={};lr.symbolNoFill={};lr.symbolList=[];Object.keys(E8).forEach(function(e){var r=E8[e],t=r.n;lr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),lr.symbolNames[t]=e,lr.symbolFuncs[t]=r.f,lr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(lr.symbolNeedLines[t]=!0),r.noDot?lr.symbolNoDot[t]=!0:lr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(lr.symbolNoFill[t]=!0)});var _W=lr.symbolNames.length,wW="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";lr.symbolNumber=function(e){if(Xl(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=lr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=_W||e>=400?0:Math.floor(Math.max(e,0))};function B8(e,r,t,n){var a=e%100;return lr.symbolFuncs[a](r,t,n)+(e>=200?wW:"")}var L8=fW("~f"),U8={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};lr.gradient=function(e,r,t,n,a,o){var i=U8[n];return H8(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function H8(e,r,t,n,a,o,i,l,u,s){var f=a.length,h;n==="linear"?h={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(h={node:"radialGradient",reversed:s});for(var p=new Array(f),_=0;_=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=lr.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=Xg(e,t),h=Wg(e,t);r.attr("d",B8(s,u,f,h))}var p=!1,_,y,b;if(e.so)b=l.outlierwidth,y=l.outliercolor,_=i.outliercolor;else{var T=(l||{}).width;b=(e.mlw+1||T+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?y=e.mlcc=n.lineScale(e.mlc):pt.isArrayOrTypedArray(l.color)?y=Tn.defaultLine:y=l.color,pt.isArrayOrTypedArray(i.color)&&(_=Tn.defaultLine,p=!0),"mc"in e?_=e.mcc=n.markerScale(e.mc):_=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(_=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&lr.dashLine(r,m,b),e.om)r.call(Tn.stroke,_).style({"stroke-width":(b||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:b)+"px");var k=i.gradient,S=e.mgt;S?p=!0:S=k&&k.type,pt.isArrayOrTypedArray(S)&&(S=S[0],U8[S]||(S=0));var x=i.pattern,M=lr.getPatternAttr,v=x&&(M(x.shape,e.i,"")||M(x.path,e.i,""));if(S&&S!=="none"){var w=e.mgc;w?p=!0:w=k.color;var g=t.uid;p&&(g+="-"+e.i),lr.gradient(r,a,g,S,[[0,w],[1,_]],"fill")}else if(v){var c=!1,A=x.fgcolor;!A&&o&&o.color&&(A=o.color,c=!0);var d=M(A,e.i,o&&o.color||null),D=M(x.bgcolor,e.i,null),E=x.fgopacity,R=M(x.size,e.i,8),N=M(x.solidity,e.i,.3);c=c||e.mcc||pt.isArrayOrTypedArray(x.shape)||pt.isArrayOrTypedArray(x.path)||pt.isArrayOrTypedArray(x.bgcolor)||pt.isArrayOrTypedArray(x.fgcolor)||pt.isArrayOrTypedArray(x.size)||pt.isArrayOrTypedArray(x.solidity);var I=t.uid;c&&(I+="-"+e.i),lr.pattern(r,"point",a,I,v,R,N,e.mcc,x.fillmode,D,d,E)}else pt.isArrayOrTypedArray(_)?Tn.fill(r,_[e.i]):Tn.fill(r,_);b&&Tn.stroke(r,y)}};lr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=lr.tryColorscale(t,""),r.lineScale=lr.tryColorscale(t,"line"),Ph.traceIs(e,"symbols")&&(r.ms2mrc=pW.isBubble(e)?gW(e):function(){return(t.size||6)/2}),e.selectedpoints&&pt.extendFlat(r,lr.makeSelectedPointStyleFns(e)),r};lr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,h=s!==void 0;(pt.isArrayOrTypedArray(l)||f||h)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?a.opacity:x.mo;return x.selected?f?u:M:h?s:q8*M});var p=a.color,_=o.color,y=i.color;(_||y)&&(r.selectedColorFn=function(x){var M=x.mcc||p;return x.selected?_||M:y||M});var b=a.size,T=o.size,m=i.size,k=T!==void 0,S=m!==void 0;return Ph.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(x){var M=x.mrc||b/2;return x.selected?k?T/2:M:S?m/2:M}),r};lr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var h=f.tc||l;return f.selected?u||h:s||(u?h:Tn.addOpacity(h,q8))},r};lr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=lr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){Tn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",B8(lr.symbolNumber(l),u,Xg(i,r),Wg(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=cn.select(this),l=0;l0?t:0}lr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=lr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=cn.select(this),s=o?pt.extractOption(l,r,"txt","texttemplate"):pt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,h=f?f(l,r,i):{},p={};yW(p,r,l.i),s=pt.texttemplateString({data:[p,l,r._meta],fallback:r.texttemplatefallback,labels:h,locale:i._d3locale,template:s})}var _=l.tp||r.textposition,y=G8(l,r),b=n?n(l):l.tc||r.textfont.color;u.call(lr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:y,color:b}).text(s).call(Fh.convertToTspans,t).call(V8,_,y,l.mrc)})}};lr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=lr.makeSelectedTextStyleFns(r);e.each(function(n){var a=cn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=G8(n,r);Tn.fill(a,o);var u=Ph.traceIs(r,"bar-like");V8(a,i,l,n.mrc2||n.mrc,u)})}};var D8=.5;lr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=u||x>=f&&x<=u)&&(M<=h&&M>=s||M>=h&&M<=s)&&(e=[x,M])}return e}lr.applyBackoff=X8;lr.makeTester=function(){var e=pt.ensureSingleById(cn.select("body"),"svg","js-plotly-tester",function(t){t.attr(hW.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=pt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});lr.tester=e,lr.testref=r};lr.savedBBoxes={};var Ug=0,AW=1e4;lr.bBox=function(e,r,t){t||(t=R8(e));var n;if(t){if(n=lr.savedBBoxes[t],n)return pt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=R8(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=lr.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=lr.savedBBoxes[t],n)return pt.extendFlat({},n)}}var s,f;r?s=e:(f=lr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),cn.select(s).attr("transform",null).call(Fh.positionText,0,0);var h=s.getBoundingClientRect(),p=lr.testref.node().getBoundingClientRect();r||f.removeChild(s);var _={height:h.height,width:h.width,left:h.left-p.left,top:h.top-p.top,right:h.right-p.left,bottom:h.bottom-p.top};return Ug>=AW&&(lr.savedBBoxes={},Ug=0),t&&(lr.savedBBoxes[t]=_),Ug++,pt.extendFlat({},_)};function R8(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}lr.setClipUrl=function(e,r,t){e.attr("clip-path",Yg(r,t))};function Yg(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}lr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};lr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=Nf(r,t),i=i.trim(),e[o]("transform",i),i};lr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};lr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var kW=/\s*sc.*/;lr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(kW,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var SW=/translate\([^)]*\)\s*$/;lr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=cn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(SW);r===1&&t===1?n=[]:n=[Nf(i,l),"scale("+r+","+t+")",Nf(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function Wg(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}lr.getMarkerStandoff=Wg;var If=Math.atan2,Gl=Math.cos,lu=Math.sin;function P8(e,r){var t=r[0],n=r[1];return[t*Gl(e)-n*lu(e),t*lu(e)+n*Gl(e)]}var F8,I8,N8,z8,Hg,Vg;function Xg(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||pt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],h=r._geo.project([s,f+1e-5]),p=r._geo.project([s+1e-5,f]),_=If(p[1]-a,p[0]-n),y=If(h[1]-a,h[0]-n),b;if(o==="north")b=t/180*Math.PI;else if(o==="previous"){var T=s/180*Math.PI,m=f/180*Math.PI,k=F8/180*Math.PI,S=I8/180*Math.PI,x=k-T,M=Gl(S)*lu(x),v=lu(S)*Gl(m)-Gl(S)*lu(m)*Gl(x);b=-If(M,v)-Math.PI,F8=s,I8=f}var w=P8(_,[Gl(b),0]),g=P8(y,[lu(b),0]);t=If(w[1]+g[1],w[0]+g[0])/Math.PI*180,o==="previous"&&!(Vg===r.uid&&e.i===Hg+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Vg===r.uid&&e.i===Hg+1&&Xl(n)&&Xl(a)){var c=n-N8,A=a-z8,d=r.line&&r.line.shape||"",D=d.slice(d.length-1);D==="h"&&(A=0),D==="v"&&(c=0),t+=If(A,c)/Math.PI*180+90}else t=null}return N8=n,z8=a,Hg=e.i,Vg=r.uid,t}lr.getMarkerAngle=Xg});var zf=be((Kce,$8)=>{"use strict";var su=ot(),CW=nt(),EW=fn(),Zg=Tr(),Zl=er(),J8=Zl.strTranslate,Ih=mt(),Nh=Gr(),uu=Bn(),K8=Yc(),LW=En().OPPOSITE_SIDE,Q8=/ [XY][0-9]* /,Jg=1.6,Kg=1.6;function DW(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,h=t.containerGroup,p=1,_=a.title,y=(_&&_.text?_.text:"").trim(),b=!1,T=_&&_.font?_.font:{},m=T.family,k=T.size,S=T.color,x=T.weight,M=T.style,v=T.variant,w=T.textcase,g=T.lineposition,c=T.shadow,A=t.subtitlePropName,d=!!A,D=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},R=(E.text||"").trim(),N=!1,I=1,F=E.font,L=F.family,P=F.size,O=F.color,B=F.weight,X=F.style,$=F.variant,ee=F.textcase,Y=F.lineposition,q=F.shadow,Q;o==="title.text"?Q="titleText":o.indexOf("axis")!==-1?Q="axisTitleText":o.indexOf("colorbar")!==-1&&(Q="colorbarTitleText");var oe=e._context.edits[Q];function Z(Ce,Fe){return Ce===void 0||Fe===void 0?!1:Ce.replace(Q8," % ")===Fe.replace(Q8," % ")}y===""?p=0:Z(y,i)&&(oe||(y=""),p=.2,b=!0),d&&(R===""?I=0:Z(R,D)&&(oe||(R=""),I=.2,N=!0)),t._meta?y=Zl.templateString(y,t._meta):n._meta&&(y=Zl.templateString(y,n._meta));var se=y||R||oe,j;h||(h=Zl.ensureSingle(n._infolayer,"g","g-"+r),j=n._hColorbarMoveTitle);var V=h.selectAll("text."+r).data(se?[0]:[]);V.enter().append("text"),V.text(y).attr("class",r),V.exit().remove();var re=null,H=r+"-subtitle",ne=R||oe;if(d&&(re=h.selectAll("text."+H).data(ne?[0]:[]),re.enter().append("text"),re.text(R).attr("class",H),re.exit().remove()),!se)return h;function ue(Ce,Fe){Zl.syncOrAsync([ye,ke],{title:Ce,subtitle:Fe})}function ye(Ce){var Fe=Ce.title,ie=Ce.subtitle,J;!f&&j&&(f={}),f?(J="",f.rotate&&(J+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||j)&&(J+=J8(0,(f.offset||0)-(j||0)))):J=null,Fe.attr("transform",J);function te(me){if(me){var de=su.select(me.node().parentNode).select("."+H);if(!de.empty()){var _e=me.node().getBBox();if(_e.height){var Ae=_e.y+_e.height+Jg*P;de.attr("y",Ae)}}}}if(Fe.style("opacity",p*Nh.opacity(S)).call(Ih.font,{color:Nh.rgb(S),size:su.round(k,2),family:m,weight:x,style:M,variant:v,textcase:w,shadow:c,lineposition:g}).attr(s).call(uu.convertToTspans,e,te),ie&&!ie.empty()){var ae=h.select("."+r+"-math-group"),ce=Fe.node().getBBox(),pe=ae.node()?ae.node().getBBox():void 0,ve=pe?pe.y+pe.height+Jg*P:ce.y+ce.height+Kg*P,xe=Zl.extendFlat({},s,{y:ve});ie.attr("transform",J),ie.style("opacity",I*Nh.opacity(O)).call(Ih.font,{color:Nh.rgb(O),size:su.round(P,2),family:L,weight:B,style:X,variant:$,textcase:ee,shadow:q,lineposition:Y}).attr(xe).call(uu.convertToTspans,e)}return EW.previousPromises(e)}function ke(Ce){var Fe=Ce.title,ie=su.select(Fe.node().parentNode);if(u&&u.selection&&u.side&&y){ie.attr("transform",null);var J=LW[u.side],te=u.side==="left"||u.side==="top"?-1:1,ae=CW(u.pad)?u.pad:2,ce=Ih.bBox(ie.node()),pe={t:0,b:0,l:0,r:0},ve=e._fullLayout._reservedMargin;for(var xe in ve)for(var me in ve[xe]){var de=ve[xe][me];pe[me]=Math.max(pe[me],de)}var _e={left:pe.l,top:pe.t,right:n.width-pe.r,bottom:n.height-pe.b},Ae=u.maxShift||te*(_e[u.side]-ce[u.side]),Ie=0;if(Ae<0)Ie=Ae;else{var De=u.offsetLeft||0,We=u.offsetTop||0;ce.left-=De,ce.right-=De,ce.top-=We,ce.bottom-=We,u.selection.each(function(){var ze=Ih.bBox(this);Zl.bBoxIntersect(ce,ze,ae)&&(Ie=Math.max(Ie,te*(ze[u.side]-ce[J])+ae))}),Ie=Math.min(Ae,Ie),a._titleScoot=Math.abs(Ie)}if(Ie>0||Ae<0){var Oe={left:[-Ie,0],right:[Ie,0],top:[0,-Ie],bottom:[0,Ie]}[u.side];ie.attr("transform",J8(Oe[0],Oe[1]))}}}V.call(ue,re);function Me(Ce,Fe){Ce.text(Fe).on("mouseover.opacity",function(){su.select(this).transition().duration(K8.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){su.select(this).transition().duration(K8.HIDE_PLACEHOLDER).style("opacity",0)})}if(oe&&(y?V.on(".opacity",null):(Me(V,i),b=!0),V.call(uu.makeEditable,{gd:e}).on("edit",function(Ce){l!==void 0?Zg.call("_guiRestyle",e,o,Ce,l):Zg.call("_guiRelayout",e,o,Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ce){this.text(Ce||" ").call(uu.positionText,s.x,s.y)}),d)){if(d&&!y){var ge=V.node().getBBox(),Ee=ge.y+ge.height+Kg*P;re.attr("y",Ee)}R?re.on(".opacity",null):(Me(re,D),N=!0),re.call(uu.makeEditable,{gd:e}).on("edit",function(Ce){Zg.call("_guiRelayout",e,"title.subtitle.text",Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ce){this.text(Ce||" ").call(uu.positionText,re.attr("x"),re.attr("y"))})}return V.classed("js-placeholder",b),re&&!re.empty()&&re.classed("js-placeholder",N),h}$8.exports={draw:DW,SUBTITLE_PADDING_EM:Kg,SUBTITLE_PADDING_MATHJAX_EM:Jg}});var Gh=be((Qce,nM)=>{"use strict";var RW=ot(),PW=zs().utcFormat,xt=er(),FW=xt.numberFormat,Pi=nt(),Wo=xt.cleanNumber,IW=xt.ms2DateTime,j8=xt.dateTime2ms,Fi=xt.ensureNumber,eM=xt.isArrayOrTypedArray,Xo=ln(),zh=Xo.FP_SAFE,ii=Xo.BADNUM,NW=Xo.LOG_CLIP,zW=Xo.ONEWEEK,qh=Xo.ONEDAY,Oh=Xo.ONEHOUR,rM=Xo.ONEMIN,tM=Xo.ONESEC,Bh=nn(),Vh=un(),Uh=Vh.HOUR_PATTERN,Hh=Vh.WEEKDAY_PATTERN;function qf(e){return Math.pow(10,e)}function Qg(e){return e!=null}nM.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var v=r.range[0],w=r.range[1];return .5*(v+w-2*NW*Math.abs(v-w))}else return ii}function i(x,M,v,w){if((w||{}).msUTC&&Pi(x))return+x;var g=j8(x,v||r.calendar);if(g===ii)if(Pi(x)){x=+x;var c=Math.floor(xt.mod(x+.05,1)*10),A=Math.round(x-c/10);g=j8(new Date(A))+c/10}else return ii;return g}function l(x,M,v){return IW(x,M,v||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(Qg(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return ii}function f(x,M){for(var v=new Array(M),w=0;wr.range[1]&&(v=!v);for(var w=v?-1:1,g=w*x,c=0,A=0;AD)c=A+1;else{c=g<(d+D)/2?A:A+1;break}}var E=r._B[c]||0;return isFinite(E)?y(x,r._m2,E):0},m=function(x){var M=r._rangebreaks.length;if(!M)return b(x,r._m,r._b);for(var v=0,w=0;wr._rangebreaks[w].pmax&&(v=w+1);return b(x,r._m2,r._B[v])}}r.c2l=r.type==="log"?o:Fi,r.l2c=r.type==="log"?qf:Fi,r.l2p=T,r.p2l=m,r.c2p=r.type==="log"?function(x,M){return T(o(x,M))}:T,r.p2c=r.type==="log"?function(x){return qf(m(x))}:m,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Wo,r.c2d=r.c2r=r.l2d=r.l2r=Fi,r.d2p=r.r2p=function(x){return r.l2p(Wo(x))},r.p2d=r.p2r=m,r.cleanPos=Fi):r.type==="log"?(r.d2r=r.d2l=function(x,M){return o(Wo(x),M)},r.r2d=r.r2c=function(x){return qf(Wo(x))},r.d2c=r.r2l=Wo,r.c2d=r.l2r=Fi,r.c2r=o,r.l2d=qf,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return qf(m(x))},r.r2p=function(x){return r.l2p(Wo(x))},r.p2r=m,r.cleanPos=Fi):r.type==="date"?(r.d2r=r.r2d=xt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,M,v){return r.l2p(i(x,0,v))},r.p2d=r.p2r=function(x,M,v){return l(m(x),M,v)},r.cleanPos=function(x){return xt.cleanDate(x,ii,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var M=_(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Fi,r.r2l=_,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(m(x))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Fi(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var M=p(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=h,r.l2r=r.c2r=Fi,r.r2l=p,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(m(x))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Fi(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,v,w,g=r._matchGroup;if(g&&r._categories.length===0){for(var c in g)if(c!==n){var A=t[Bh.id2name(c)];M=M.concat(A._traceIndices)}}var d=[[0,{}],[0,{}]],D=[];for(v=0;vA[1]&&(w[c?0:1]=v,g[1]=A[1]),g[0]>=g[1])if(M!==void 0){var d=A[0]+1;v!==void 0&&(d=Math.min(d,A[1])),w[c?0:1]=r.l2r(d)}else v!==void 0&&(w[c?1:0]=r.l2r(A[1]-1))}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var v=xt.nestedProperty(r,x).get(),w,g;if(r.type==="date"?g=xt.dfltRange(r.calendar):a==="y"?g=Vh.DFLTRANGEY:r._name==="realaxis"?g=[0,1]:g=M.dfltRange||Vh.DFLTRANGEX,g=g.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(g[0]=0),!v||v.length!==2){xt.nestedProperty(r,x).set(g);return}var c=v[0]===null,A=v[1]===null;for(r.type==="date"&&!r.autorange&&(v[0]=xt.cleanDate(v[0],ii,r.calendar),v[1]=xt.cleanDate(v[1],ii,r.calendar)),w=0;w<2;w++)if(r.type==="date"){if(!xt.isDateTime(v[w],r.calendar)){r[x]=g;break}if(r.r2l(v[0])===r.r2l(v[1])){var d=xt.constrain(r.r2l(v[0]),xt.MIN_MS+1e3,xt.MAX_MS-1e3);v[0]=r.l2r(d-1e3),v[1]=r.l2r(d+1e3);break}}else{if(!Pi(v[w]))if(!(c||A)&&Pi(v[1-w]))v[w]=v[1-w]*(w?10:.1);else{r[x]=g;break}if(v[w]<-zh?v[w]=-zh:v[w]>zh&&(v[w]=zh),v[0]===v[1]){var D=Math.max(1,Math.abs(v[0]*1e-6));v[0]-=D,v[1]+=D}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var v=Bh.getFromId({_fullLayout:t},r.overlaying);r.domain=v.domain}var w=x&&r._r?"_r":"range",g=r.calendar;r.cleanRange(w);var c=r.r2l(r[w][0],g),A=r.r2l(r[w][1],g),d=a==="y";if(d?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(c-A),r._b=-r._m*A):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-c),r._b=-r._m*c),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var D,E;if(r._rangebreaks=r.locateBreaks(Math.min(c,A),Math.max(c,A)),r._rangebreaks.length){for(D=0;DA&&(R=!R),R&&r._rangebreaks.reverse();var N=R?-1:1;for(r._m2=N*r._length/(Math.abs(A-c)-r._lBreaks),r._B.push(-r._m2*(d?A:c)),D=0;Dg&&(g+=7,cg&&(g+=24,c=w&&c=w&&x=q.min&&(Xq.max&&(q.max=$),ee=!1)}ee&&A.push({min:X,max:$})}};for(v=0;v{"use strict";var aM=nt(),$g=er(),qW=ln().BADNUM,Yh=$g.isArrayOrTypedArray,OW=$g.isDateTime,BW=$g.cleanNumber,iM=Math.round;lM.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(Yh(a)&&!a.length)return"-";if(!o&&YW(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function oM(e){return Math.max(1,(e-1)/1e3)}function GW(e,r){for(var t=e.length,n=oM(t),a=0,o=0,i={},l=0;la*2}function YW(e){return Yh(e[0])&&Yh(e[1])}});var fu=be((jce,pM)=>{"use strict";var WW=ot(),cM=nt(),Zo=er(),Wh=ln().FP_SAFE,XW=Tr(),ZW=mt(),hM=nn(),JW=hM.getFromId,KW=hM.isLinked;pM.exports={applyAutorangeOptions:dM,getAutoRange:e2,makePadFn:r2,doAutoRange:$W,findExtremes:jW,concatExtremes:a2};function e2(e,r){var t,n,a=[],o=e._fullLayout,i=r2(o,r,0),l=r2(o,r,1),u=a2(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return Zo.simpleMap(r.range,r.r2l);var h=s[0].val,p=f[0].val;for(t=1;t0&&(A=S-i(v)-l(w),A>x?d/A>M&&(g=v,c=w,M=d/A):d/S>M&&(g={val:v.val,nopad:1},c={val:w.val,nopad:1},M=d/S));function D(F,L){return Math.max(F,l(L))}if(h===p){var E=h-1,R=h+1;if(m)if(h===0)a=[0,1];else{var N=(h>0?f:s).reduce(D,0),I=h/(1-Math.min(.5,N/S));a=h>0?[0,I]:[I,0]}else k?a=[Math.max(0,E),Math.max(1,R)]:a=[E,R]}else m?(g.val>=0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:0,nopad:1})):k&&(g.val-M*i(g)<0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:1,nopad:1})),M=(c.val-g.val-sM(r,v.val,w.val))/(S-i(g)-l(c)),a=[g.val-M*i(g),c.val+M*l(c)];return a=dM(a,r),r.limitRange&&r.limitRange(),y&&a.reverse(),Zo.simpleMap(a,r.l2r||Number)}function sM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o0?t.ppadplus:t.ppadminus)||t.ppad||0),v=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),w=x(t.vpadplus||t.vpad),g=x(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(h=0;h0&&(k=p),p>S&&p-Wh&&(k=p),p>S&&p=d;h--)A(h);return{min:n,max:a,opts:t}}function t2(e,r,t,n){vM(e,r,t,n,eX)}function n2(e,r,t,n){vM(e,r,t,n,rX)}function vM(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function fM(e){return cM(e)&&Math.abs(e)=r}function tX(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Xh(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Xh(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function nX(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Xh(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Xh(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Xh(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=tX(t,r),n=nX(n,r),[t,n]}});var Et=be((rhe,qM)=>{"use strict";var Ra=ot(),Kt=nt(),cu=fn(),Bf=Tr(),Mr=er(),hu=Mr.strTranslate,Jl=Bn(),aX=zf(),Uf=Gr(),da=mt(),iX=Da(),gM=_g(),ehe=un(),An=ln(),oX=An.ONEMAXYEAR,Kh=An.ONEAVGYEAR,Qh=An.ONEMINYEAR,lX=An.ONEMAXQUARTER,s2=An.ONEAVGQUARTER,$h=An.ONEMINQUARTER,sX=An.ONEMAXMONTH,vu=An.ONEAVGMONTH,jh=An.ONEMINMONTH,pa=An.ONEWEEK,Un=An.ONEDAY,Jo=Un/2,Ni=An.ONEHOUR,Hf=An.ONEMIN,ev=An.ONESEC,uX=An.ONEMILLI,fX=An.ONEMICROSEC,Kl=An.MINUS_SIGN,tv=An.BADNUM,u2={K:"zeroline"},f2={K:"gridline",L:"path"},c2={K:"minor-gridline",L:"path"},SM={K:"tick",L:"path"},yM={K:"tick",L:"text"},mM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},nv=En(),Of=nv.MID_SHIFT,Ql=nv.CAP_SHIFT,Vf=nv.LINE_SPACING,cX=nv.OPPOSITE_SIDE,rv=3,rr=qM.exports={};rr.setConvert=Gh();var hX=jg(),zi=nn(),vX=zi.idSort,dX=zi.isLinked;rr.id2name=zi.id2name;rr.name2id=zi.name2id;rr.cleanId=zi.cleanId;rr.list=zi.list;rr.listIds=zi.listIds;rr.getFromId=zi.getFromId;rr.getFromTrace=zi.getFromTrace;var CM=fu();rr.getAutoRange=CM.getAutoRange;rr.findExtremes=CM.findExtremes;var pX=1e-4;function p2(e){var r=(e[1]-e[0])*pX;return[e[0]-r,e[1]+r]}rr.coerceRef=function(e,r,t,n,a,o){var i=n.charAt(n.length-1),l=t._fullLayout._subplots[i+"axis"],u=n+"ref",s={};return a||(a=l[0]||(typeof o=="string"?o:o[0])),o||(o=a),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(o?typeof o=="string"?[o]:o:[]),dflt:a},Mr.coerce(e,r,s,u)};rr.coerceRefArray=function(e,r,t,n,a,o,i){let l=n.charAt(n.length-1);var u=t._fullLayout._subplots[l+"axis"];let s=n+"ref";var f=e[s];a||(a=u[0]||(typeof o=="string"?o:o[0])),u=u.concat(u.map(p=>p+" domain")),u=u.concat(o||[]),f.length>i?(Mr.warn("Array attribute "+s+" has more entries than expected, truncating to "+i),f=f.slice(0,i)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};rr.saveRangeInitial=function(e,r){for(var t=rr.list(e,"",!0),n=!1,a=0;ah*.3||s(n)||s(a))){var p=t.dtick/2;e+=e+pi){var l=Number(t.slice(1));o.exactYears>i&&l%12===0?e=rr.tickIncrement(e,"M6","reverse")+Un*1.5:o.exactMonths>i?e=rr.tickIncrement(e,"M1","reverse")+Un*15.5:e-=Jo;var u=rr.tickIncrement(e,t);if(u<=n)return u}return e}rr.prepMinorTicks=function(e,r,t){var h,p;if(!((h=r.minor)!=null&&h.dtick)){delete e.dtick;var n=r.dtick&&Kt(r._tmin),a;if(n){var o=rr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Mr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Mr.simpleMap(a,r.l2r),e._isMinor=!0,rr.prepTicks(e,t),n){var l=Kt(r.dtick),u=Kt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?i2(s,f)?s===2*pa&&f===2*Un&&(e.dtick=pa):s===2*pa&&f===3*Un?e.dtick=pa:s===pa&&!(r._input.minor||{}).nticks?e.dtick=Un:_M(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":i2(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?i2(s,f)||(e.dtick=_M(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((p=r.minor)==null?void 0:p._tick0Init)===void 0&&(e.tick0=r.tick0)};function i2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function _M(e,r){return Math.abs(e/r-1)<.001}rr.prepTicks=function(e,r){var t=Mr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Mr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Mr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,rr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(o=n-1,i=n):(o=n,i=n);var l=e[o].value,u=e[i].value,s=Math.abs(u-l),f=t||s,h=0;f>=Qh?s>=Qh&&s<=oX?h=s:h=Kh:t===s2&&f>=$h?s>=$h&&s<=lX?h=s:h=s2:f>=jh?s>=jh&&s<=sX?h=s:h=vu:t===pa&&f>=pa?h=pa:f>=Un?h=Un:t===Jo&&f>=Jo?h=Jo:t===Ni&&f>=Ni&&(h=Ni);var p;h>=s&&(h=s,p=!0);var _=a+h;if(r.rangebreaks&&h>0){for(var y=84,b=0,T=0;Tpa&&(h=s)}(h>0||n===0)&&(e[n].periodX=a+h/2)}}rr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||Mr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=Mr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(x?0:1);M--){var v=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var w=M?r:Mr.extendFlat({},r,x?r.minor:{minor:{}});if(v?rr.prepMinorTicks(w,r,t):rr.prepTicks(w,t),w.tickmode==="array"){M?(T=[],y=wM(r,!v)):(m=[],b=wM(r,!v));continue}if(w.tickmode==="sync"){T=[],y=_X(r);continue}var g=p2(s),c=g[0],A=g[1],d=Kt(w.dtick),D=n==="log"&&!(d||w.dtick.charAt(0)==="L"),E=rr.tickFirst(w,t);if(M){if(r._tmin=E,E=A:N<=A;N=rr.tickIncrement(N,L,f,a)){if(M&&I++,w.rangebreaks&&!f){if(N=p)break}if(T.length>_||N===R)break;R=N;var P={value:N};M?(D&&N!==(N|0)&&(P.simpleLabel=!0),o>1&&I%o&&(P.skipLabel=!0),T.push(P)):(P.minor=!0,m.push(P))}}if(!m||m.length<3)u=!1;else{var O=(m[2].value-m[1].value)*(l?-1:1);WX(O,r.tickformat)||(u=!1,m=m.slice(1))}if(!u)k=T;else{var B=T.concat(m);i&&T.length&&(B=B.slice(1)),B=B.sort(function(Ce,Fe){return Ce.value-Fe.value}).filter(function(Ce,Fe,ie){return Fe===0||Ce.value!==ie[Fe-1].value});var X=B.map(function(Ce,Fe){return Ce.minor===void 0&&!Ce.skipLabel?Fe:null}).filter(function(Ce){return Ce!==null});X.forEach(function(Ce){u.map(function(Fe){var ie=Ce+Fe;ie>=0&&ie-1;j--){if(T[j].drop){T.splice(j,1);continue}T[j].value=l2(T[j].value,r);var ne=r.c2p(T[j].value);(V?H>ne-re:Hp||Jp&&(ie.periodX=p),Ja&&pKh)r/=Kh,n=a(10),e.dtick="M"+12*Ii(r,n,Zh);else if(o>vu)r/=vu,e.dtick="M"+Ii(r,1,MM);else if(o>Un){if(e.dtick=Ii(r,Un,e._hasDayOfWeekBreaks?[1,2,7,14]:wX),!t){var i=rr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Mr.dateTick0(e.calendar,2):e.tick0=Mr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>Ni?e.dtick=Ii(r,Ni,MM):o>Hf?e.dtick=Ii(r,Hf,TM):o>ev?e.dtick=Ii(r,ev,TM):(n=a(10),e.dtick=Ii(r,n,Zh))}else if(e.type==="log"){e.tick0=0;var u=Mr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+Ii(r,n,Zh)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):x2(e)?(e.tick0=0,n=1,e.dtick=Ii(r,n,MX)):(e.tick0=0,n=a(10),e.dtick=Ii(r,n,Zh));if(e.dtick===0&&(e.dtick=1),!Kt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function RM(e){var r=e.dtick;if(e._tickexponent=0,!Kt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Un&&a<=10||r>=Un*15)e._tickround="d";else if(r>=Hf&&a<=16||r>=Ni)e._tickround="M";else if(r>=ev&&a<=19||r>=Hf)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(Kt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);Kt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(du(e.exponentformat)&&e.exponentformat!=="SI extended"&&!g2(u)||du(e.exponentformat)&&e.exponentformat==="SI extended"&&!y2(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}rr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(Kt(r))return Mr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.slice(1));if(o==="M")return Mr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?DM:LM,u=e+a*.01,s=Mr.roundUp(Mr.mod(u,1),l,t);return Math.floor(u)+Math.log(Ra.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};rr.tickFirst=function(e,r){var t=e.r2l||Number,n=Mr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&m<=e._length?T:null};if(o&&Mr.isArrayOrTypedArray(e.ticktext)){var h=Mr.simpleMap(e.range,e.r2l),p=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(s=0;s"+l;else{var s=Yf(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function AX(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=Gf(Math.pow(10,i),e,a,n);else if(Kt(o)||u==="D"&&(e.minorloglabels==="complete"||Mr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Mr.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),h=f.split("e"),p=+h[1],_=Math.abs(p),y=e.exponentformat;y==="power"||du(y)&&y!=="SI extended"&&g2(p)||du(y)&&y==="SI extended"&&y2(p)?(r.text=h[0],_>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),p!==0&&p!==1&&(r.text+=""+(p>0?"":Kl)+_+""),r.fontSize*=1.25):(y==="e"||y==="E")&&_>2?r.text=h[0]+y+(p>0?"+":Kl)+_:(r.text=Gf(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Mr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var b=String(r.text).charAt(0);(b==="0"||b==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(i<0?.5:.25)))}}function kX(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function SX(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function CX(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=Gf(r.x,e,a,n)}function EX(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=LX(o);if(i[1]>=100)r.text=Gf(Mr.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["",i[0],"","\u2044","",i[1],"","\u03C0"].join(""),l&&(r.text=Kl+r.text)}}}else r.text=Gf(r.x,e,a,n)}function LX(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var FM=["f","p","n","\u03BC","m","","k","M","G","T"],DX=["q","r","y","z","a",...FM,"P","E","Z","Y","R","Q"],du=e=>["SI","SI extended","B"].includes(e);function g2(e){return e>14||e<-15}function y2(e){return e>32||e<-30}function RX(e,r){return du(r)?!!(r==="SI extended"&&y2(e)||r!=="SI extended"&&g2(e)):!1}function Gf(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=rr.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Kt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};RM(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Kl);var h=Math.pow(10,-o)/2;if(i==="none"&&(l=0),e=Math.abs(e),e"+y+"":i==="B"&&l===9?e+="B":du(i)&&(e+=i==="SI extended"?DX[l/3+10]:FM[l/3+5])}return a?Kl+e:e}rr.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*vu}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var h=f.indexOf(u.charAt(0)),p=f.indexOf(s.charAt(0));return h===p?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):h-p}else return typeof u=="number"?1:-1}function a(u,s,f){var h=f||function(y){return y},p=s[0],_=s[1];return(!p&&typeof p!="number"||h(p)<=h(u))&&(!_&&typeof _!="number"||h(_)>=h(u))}function o(u,s){var f=s[0]===null,h=s[1]===null,p=n(u,s[0])>=0,_=n(u,s[1])<=0;return(f||p)&&(h||_)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Mr.syncOrAsync(a.map(function(u){return function(){if(u){var s=rr.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=rr.drawOne(e,s,t);return s._shiftPusher&&d2(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Mr.simpleMap(s._r,s.r2l),f}}}))};rr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),h=rr.counterLetter(s),p=u._plots[r._mainSubplot],_=r.zerolinelayer==="above traces";if(!p)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var y=r.linewidth/2||0;r.ticks==="inside"&&(y+=r.ticklen),d2(r,y,n,!0),d2(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=YX(r,n));var b=p[f+"axislayer"],T=r._mainLinePosition,m=T+=r._shift,k=r._mainMirrorPosition,S=r._vals=rr.calcTicks(r),x=[r.mirror,m,k].join("_");for(o=0;o0?ie.bottom-Ce:0,Fe))));var ce=0,pe=0;if(r._shiftPusher&&(ce=Math.max(Fe,ie.height>0?ge==="l"?Ce-ie.left:ie.right-Ce:0),r.title.text!==u._dfltTitle[f]&&(pe=(r._titleStandoff||0)+(r._titleScoot||0),ge==="l"&&(pe+=kM(r))),r._fullDepth=Math.max(ce,pe)),r.automargin){J={x:0,y:0,r:0,l:0,t:0,b:0};var ve=[0,1],xe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ge==="b"?J[ge]=r._depth:(J[ge]=r._depth=Math.max(ie.width>0?Ce-ie.top:0,Fe),ve.reverse()),ie.width>0){var me=ie.right-(r._offset+r._length);me>0&&(J.xr=1,J.r=me);var de=r._offset-ie.left;de>0&&(J.xl=0,J.l=de)}}else if(ge==="l"?(r._depth=Math.max(ie.height>0?Ce-ie.left:0,Fe),J[ge]=r._depth-xe):(r._depth=Math.max(ie.height>0?ie.right-Ce:0,Fe),J[ge]=r._depth+xe,ve.reverse()),ie.height>0){var _e=ie.bottom-(r._offset+r._length);_e>0&&(J.yb=0,J.b=_e);var Ae=r._offset-ie.top;Ae>0&&(J.yt=1,J.t=Ae)}J[h]=r.anchor==="free"?r.position:r._anchorAxis.domain[ve[0]],r.title.text!==u._dfltTitle[f]&&(J[ge]+=kM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(te={x:0,y:0,r:0,l:0,t:0,b:0},te[Ee]=r.linewidth,r.mirror&&r.mirror!==!0&&(te[Ee]+=Fe),r.mirror===!0||r.mirror==="ticks"?te[h]=r._anchorAxis.domain[ve[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(te[h]=[r._counterDomainMin,r._counterDomainMax][ve[1]]))}Me&&(ae=Bf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(AM(J,r.automargin),AM(te,r.automargin)),cu.autoMargin(e,m2(r),J),cu.autoMargin(e,NM(r),te),cu.autoMargin(e,zM(r),ae)}),Mr.syncOrAsync(ye)}};function AM(e,r){if(e){var t=Object.keys(mM).reduce(function(n,a){return r.indexOf(a)!==-1&&mM[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function PX(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Mr.extendFlat({},o,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,h=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*h}return e._id.charAt(0)==="x"?function(p){return hu(a+e._offset+e.l2p(h2(p))+t,o+n)}:function(p){return hu(o+n,a+e._offset+e.l2p(h2(p))+t)}};function h2(e){return e.periodX!==void 0?e.periodX:e.x}function zX(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(y){return r.indexOf(y)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,h=s?(e.tickwidth||0)/2:0,p=rv,_=e.tickfont?e.tickfont.size:12;return(l||a)&&(h+=_*Ql,p+=(e.linewidth||0)/2),(o||i)&&(h+=(e.linewidth||0)/2,p+=rv),u&&f==="top"&&(p-=_*(1-Ql)),(o||a)&&(h=-h),(f==="bottom"||f==="right")&&(p=-p),[s?h:0,u?p:0]}rr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};rr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),h=o("inside"),p=n==="inside"&&e.ticks==="inside"||!h&&e.ticks==="outside"&&a!=="boundaries",_=0,y=0,b=p?e.ticklen:0;if(h?b*=-1:f&&(b=0),p&&(_+=b,t)){var T=Mr.deg2rad(t);_=b*Math.cos(T)+1,y=b*Math.sin(T)}e.showticklabels&&(p||e.showline)&&(_+=.2*e.tickfont.size),_+=(e.linewidth||1)/2*(h?-1:1);var m={labelStandoff:_,labelShift:y},k,S,x,M,v=0,w=e.side,g=e._id.charAt(0),c=e.tickangle,A;if(g==="x")A=!h&&w==="bottom"||h&&w==="top",M=A?1:-1,h&&(M*=-1),k=y*M,S=r+_*M,x=A?1:-.2,Math.abs(c)===90&&(h?x+=Of:c===-90&&w==="bottom"?x=Ql:c===90&&w==="top"?x=Of:x=.5,v=Of/2*(c/90)),m.xFn=function(E){return E.dx+k+v*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*x},m.anchorFn=function(E,R){if(f){if(l)return"end";if(u)return"start"}return!Kt(R)||R===0||R===180?"middle":R*M<0!==h?"end":"start"},m.heightFn=function(E,R,N){return R<-60||R>60?-.5*N:e.side==="top"!==h?-N:0};else if(g==="y"){if(A=!h&&w==="left"||h&&w==="right",M=A?1:-1,h&&(M*=-1),k=_,S=y*M,x=0,!h&&Math.abs(c)===90&&(c===-90&&w==="left"||c===90&&w==="right"?x=Ql:x=.5),h){var d=Kt(c)?+c:0;if(d!==0){var D=Mr.deg2rad(d);v=Math.abs(Math.sin(D))*Ql*M,x=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*M+v*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*Of},m.anchorFn=function(E,R){return Kt(R)&&Math.abs(R)===90?"middle":A?"end":"start"},m.heightFn=function(E,R,N){return e.side==="right"&&(R*=-1),R<-30?-N:R<30?-.5*N:0}}return m};function av(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}rr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,av);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return Uf.stroke(Ra.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return da.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),iv(r,[SM]),o.attr("transform",t.transFn)};rr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(m){return m.minor}):[],i=r.showgrid?t.vals.filter(function(m){return!m.minor}):[],l=t.counterAxis;if(l&&rr.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;y--){var b=y?p:_;if(b){var T=b.selectAll("path."+n).data(y?i:o,av);T.exit().remove(),T.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),T.attr("transform",t.transFn).attr("d",t.path).each(function(m){return Uf.stroke(Ra.select(this),m.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return da.dashStyle(m.minor?r.minor.griddash:r.griddash,m.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(m){return(m.minor?h:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&T.attr("d",t.path)}}iv(r,[f2,c2])}};rr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=rr.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return vX(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(Uf.stroke,r.zerolinecolor||Uf.defaultLine).style("stroke-width",da.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),iv(r,[u2])};rr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(P){return P.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],h=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],av),p=[];h.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(P){var O=Ra.select(this),B=e._promises.length;O.call(Jl.positionText,u.xFn(P),u.yFn(P)).call(da.font,{family:P.font,size:P.fontSize,color:P.fontColor,weight:P.fontWeight,style:P.fontStyle,variant:P.fontVariant,textcase:P.fontTextcase,lineposition:P.fontLineposition,shadow:P.fontShadow}).text(P.text).call(Jl.convertToTspans,e),e._promises[B]?p.push(e._promises.pop().then(function(){_(O,s)})):_(O,s)}),iv(r,[yM]),h.exit().remove(),t.repositionOnUpdate&&h.each(function(P){Ra.select(this).select("text").call(Jl.positionText,u.xFn(P),u.yFn(P))});function _(P,O){P.each(function(B){var X=Ra.select(this),$=X.select(".text-math-group"),ee=u.anchorFn(B,O),Y=t.transFn.call(X.node(),B)+(Kt(O)&&+O!=0?" rotate("+O+","+u.xFn(B)+","+(u.yFn(B)-B.fontSize/2)+")":""),q=Jl.lineCount(X),Q=Vf*B.fontSize,oe=u.heightFn(B,Kt(O)?+O:0,(q-1)*Q);if(oe&&(Y+=hu(0,oe)),$.empty()){var Z=X.select("text");Z.attr({transform:Y,"text-anchor":ee}),Z.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=da.bBox($.node()).width,j=se*{end:-.5,start:.5}[ee];$.attr("transform",Y+hu(j,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var O=P.indexOf("hide")!==-1,B=r._id.charAt(0)==="x",X=0,$=B?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var ee=Mr.simpleMap(r.range,r.r2l);X=r.l2p(ee[0])+r._offset,$=r.l2p(ee[1])+r._offset}var Y=Math.min(X,$),q=Math.max(X,$),Q=r.side,oe=1/0,Z=-1/0;h.each(function(re){var H=Ra.select(this),ne=H.select(".text-math-group");if(ne.empty()){var ue=da.bBox(H.node()),ye=0;B?(ue.right>q||ue.leftq||ue.top+(r.tickangle?0:re.fontSize/4)r["_visibleLabelMin_"+ee._id]?H.style("display","none"):q.K==="tick"&&!Y&&H.node().style.display!=="none"&&H.style("display",null)})})})})},_(h,f+1?f:s);function y(){return p.length&&Promise.all(p)}var b=null;function T(){if(_(h,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){b=r.autotickangles[0];var P=0,O=[],B,X=1;h.each(function(J){P=Math.max(P,J.fontSize);var te=r.l2p(J.x),ae=v2(this),ce=da.bBox(ae.node());X=Math.max(X,Jl.lineCount(ae)),O.push({top:0,bottom:10,height:10,left:te-ce.width/2,right:te+ce.width/2+2,width:ce.width+2})});var $=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ee=l.length,Y=Math.abs((l[ee-1].x-l[0].x)*r._m)/(ee-1),q=$?Y/2:Y,Q=$?r.ticklen:P*1.25*X,oe=Math.sqrt(Math.pow(q,2)+Math.pow(Q,2)),Z=q/oe,se=r.autotickangles.map(function(J){return J*Math.PI/180}),j=se.find(function(J){return Math.abs(Math.cos(J))<=Z});j===void 0&&(j=se.reduce(function(J,te){return Math.abs(Math.cos(J))I*N&&(D=N,c[g]=A[g]=E[g])}var F=Math.abs(D-d);F-M>0?(F-=M,M*=1+M/F):M=0,r._id.charAt(0)!=="y"&&(M=-M),c[w]=S.p2r(S.r2p(A[w])+v*M),S.autorange==="min"||S.autorange==="max reversed"?(c[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(c[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=c}var L=Mr.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function qX(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,av);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(Uf.stroke,r.dividercolor).style("stroke-width",da.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}rr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function kM(e){var r=e.title.font.size,t=(e.title.text.match(Jl.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Ql+t*Vf):t?r*(t+1)*Vf:r}function OX(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(Jl.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Ql:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(Of+l*Vf));else{var u=Yf(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=rr.getPxPosition(e,r),h,p,_;a==="x"?(p=r._offset+r._length/2,_=r.side==="top"?f-i:f+i):(_=r._offset+r._length/2,p=r.side==="right"?f+i:f-i,h={rotate:"-90",offset:0});var y;if(r.type!=="multicategory"){var b=r._selections[r._id+"tick"];if(y={selection:b,side:r.side},b&&b.node()&&b.node().parentNode){var T=da.getTranslate(b.node().parentNode);y.offsetLeft=T.x,y.offsetTop=T.y}r.title.hasOwnProperty("standoff")&&(y.pad=0)}return r._titleStandoff=i,aX.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:y,transform:h,attributes:{x:p,y:_,"text-anchor":"middle"}})}rr.shouldShowZeroLine=function(e,r,t){var n=Mr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===tv)&&(IM(r,0)||!BX(e,r,t,n)||UX(e,r))};rr.clipEnds=function(e,r){return r.filter(function(t){return IM(e,t.x)})};function IM(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=fX:/%L/.test(r)?e>=uX:/%[SX]/.test(r)?e>=ev:/%M/.test(r)?e>=Hf:/%[HI]/.test(r)?e>=Ni:/%p/.test(r)?e>=Jo:/%[Aadejuwx]/.test(r)?e>=Un:/%[UVW]/.test(r)?e>=pa:/%[Bbm]/.test(r)?e>=jh:/%[q]/.test(r)?e>=$h:/%[Yy]/.test(r)?e>=Qh:!0}});var BM=be((the,OM)=>{"use strict";OM.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var b2=be((nhe,UM)=>{"use strict";var XX=BM();UM.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),h;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,h=!0),h||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(XX(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var VM=be((ahe,HM)=>{var ZX={left:0,top:0};HM.exports=JX;function JX(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=KX(r);return t[0]=n-o.left,t[1]=a-o.top,t}function KX(e){return e===window||e===document||e===document.body?ZX:e.getBoundingClientRect()}});var ov=be((ihe,GM)=>{"use strict";var QX=Kp();function $X(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}GM.exports=QX&&$X()});var WM=be((ohe,YM)=>{"use strict";YM.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var JM=be((lhe,ZM)=>{"use strict";var XM=er(),jX=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ZM.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=XM.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=XM.constrain(Math.floor(t*3),0,2),jX[t][r]}});var QM=be((she,KM)=>{"use strict";var eZ=Cf(),rZ=lh(),tZ=bf().getGraphDiv,nZ=gf(),_2=KM.exports={};_2.wrapped=function(e,r,t){e=tZ(e),e._fullLayout&&rZ.clear(e._fullLayout._uid+nZ.HOVERID),_2.raw(e,r,t)};_2.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&eZ.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var oi=be((uhe,rT)=>{"use strict";var aZ=VM(),w2=$p(),iZ=ov(),oZ=er().removeElement,lZ=un(),$l=rT.exports={};$l.align=WM();$l.getCursor=JM();var jM=QM();$l.unhover=jM.wrapped;$l.unhoverRaw=jM.raw;$l.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,h,p,_;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=T,iZ?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=T,o.addEventListener("touchstart",T,{passive:!1})):o.ontouchstart=T;function y(S,x,M){return Math.abs(S)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;h.target===p?x=h:(x={target:p,srcElement:p,toElement:p},Object.keys(h).concat(Object.keys(h.__proto__)).forEach(M=>{var v=h[M];!x[M]&&typeof v!="function"&&(x[M]=v)})),r.clickFn&&r.clickFn(n,x),_||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function eT(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}$l.coverSlip=eT;function $M(e){return aZ(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ko=be((fhe,tT)=>{"use strict";tT.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var iT=be((che,aT)=>{"use strict";var M2=Ko(),Wf="data-savedcursor",nT="!!";aT.exports=function(r,t){var n=r.attr(Wf);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o{"use strict";var T2=Sn(),sZ=Si();oT.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:sZ.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:T2({editType:"legend"}),grouptitlefont:T2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:T2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Zf=be(Xf=>{"use strict";Xf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Xf.isVertical=function(r){return r.orientation!=="h"};Xf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Xf.getId=function(r){return r._id||"legend"}});var S2=be((dhe,lT)=>{"use strict";var lv=Tr(),ga=er(),uZ=yt(),fZ=Cn(),cZ=A2(),hZ=Gs(),k2=Zf();function vZ(e,r,t,n,a){var o=r[e]||{},i=uZ.newContainer(t,e);function l(P,O){return ga.coerce(o,i,cZ,P,O)}var u=ga.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(!s)return;var f,h=function(P,O){var B=f._input,X=f;return ga.coerce(B,X,fZ,P,O)},p=t.font||{},_=ga.coerceFont(l,"grouptitlefont",p,{overrideDflt:{size:Math.round(p.size*1.1)}}),y=0,b=!1,T="normal",m=(t.shapes||[]).filter(function(P){return P.showlegend});function k(P){return lv.traceIs(P,"pie-like")&&P._length!=null&&(Array.isArray(P.legend)||Array.isArray(P.showlegend))}n.filter(k).forEach(function(P){P.visible&&y++;for(var O=0;OP.legend.length)for(var X=P.legend.length;X(e==="legend"?1:0));if(v===!1&&(t[e]=void 0),!(v===!1&&!o.uirevision)&&(l("uirevision",t.uirevision),v!==!1)){l("borderwidth");var w=l("orientation"),g=l("yref"),c=l("xref"),A=w==="h",d=g==="paper",D=c==="paper",E,R,N,I="left";A?(E=0,lv.getComponentMethod("rangeslider","isVisible")(r.xaxis)?d?(R=1.1,N="bottom"):(R=1,N="top"):d?(R=-.1,N="top"):(R=0,N="bottom")):(R=1,N="auto",D?E=1.02:(E=1,I="right")),ga.coerce(o,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:E}},"x"),ga.coerce(o,i,{y:{valType:"number",editType:"legend",min:d?-2:0,max:d?3:1,dflt:R}},"y"),l("traceorder",T),k2.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",I),l("yanchor",N),l("maxheight"),l("valign"),ga.noneOrAll(o,i,["x","y"]);var F=l("title.text");if(F){l("title.side",A?"left":"top");var L=ga.extendFlat({},u,{size:ga.bigFont(u.size)});ga.coerceFont(l,"title.font",L);let P=a>1;l("titleclick",P?"toggle":!1),l("titledoubleclick",P?"toggleothers":!1)}}}lT.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var Qo=Tr(),C2=er(),dZ=C2.pushUnique,pZ=Zf(),sT=!0;E2.handleItemClick=function(r,t,n,a){var o=t._fullLayout;if(t._dragged||t._editing)return;var i=r.data()[0][0];if(i.groupTitle&&i.noClick)return;var l=n.groupclick;a==="toggle"&&n.itemdoubleclick==="toggleothers"&&sT&&t.data&&t._context.showTips&&(C2.notifier(C2._(t,"Double-click on legend to isolate one trace"),"long",t),sT=!1);var u=l==="togglegroup",s=o.hiddenlabels?o.hiddenlabels.slice():[],f=t._fullData;let h=(o.shapes||[]).filter(Me=>Me.showlegend||Me.legendgroup);var p=f.concat(h),_=i.trace;_._isShape&&(_=_._fullInput);var y=_.legendgroup,b,T,m,k,S,x,M={},v=[],w=[],g=[];function c(Me,ge){var Ee=v.indexOf(Me),Ce=M.visible;return Ce||(Ce=M.visible=[]),v.indexOf(Me)===-1&&(v.push(Me),Ee=v.length-1),Ce[Ee]=ge,Ee}var A=(o.shapes||[]).map(function(Me){return Me._input}),d=!1;function D(Me,ge){A[Me].visible=ge,d=!0}function E(Me,ge){if(!(i.groupTitle&&!u)){var Ee=Me._fullInput||Me,Ce=Ee._isShape,Fe=Ee.index;Fe===void 0&&(Fe=Ee._index);var ie=Ee.visible===!1?!1:ge;Ce?D(Fe,ie):c(Fe,ie)}}var R=_.legend,N=_._fullInput,I=N&&N._isShape;if(!I&&Qo.traceIs(_,"pie-like")){var F=i.label,L=s.indexOf(F);if(a==="toggle")L===-1?s.push(F):s.splice(L,1);else if(a==="toggleothers"){var P=L!==-1,O=[];for(b=0;bm.showlegend||m.legendgroup),u=o.concat(l);function s(m){return(m.legend||"legend")===i}var f,h;if(n==="toggle")f=!u.some(function(k){return s(k)&&k.visible===!0}),h=!1;else{let m=u.some(function(k){return!s(k)&&k.visible===!0&&k.showlegend!==!1});f=!0,h=!m}let p={visible:[]},_=[],y=(a.shapes||[]).map(function(m){return m._input});for(var b=!1,T=0;T{"use strict";uT.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var hT=be((yhe,cT)=>{"use strict";var{isArrayOrTypedArray:R2}=Zn(),fT=Tr(),P2=Zf();cT.exports=function(r,t,n){var a=t._inHover,o=P2.isGrouped(t),i=P2.isReversed(t),l={},u=[],s=!1,f={},h=0,p=0,_,y;function b(O,B,X){if(t.visible!==!1&&!(n&&O!==t._id))if(B===""||!P2.isGrouped(t)){var $="~~i"+h;u.push($),l[$]=[X],h++}else u.indexOf(B)===-1?(u.push(B),s=!0,l[B]=[X]):l[B].push(X)}for(_=0;_E&&(d=E)}c[_][0]._groupMinRank=d,c[_][0]._preGroupSort=_}var R=function(O,B){return O[0]._groupMinRank-B[0]._groupMinRank||O[0]._preGroupSort-B[0]._preGroupSort},N=function(O,B){var X=R2(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank,$=R2(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank;return X-$||O._preSort-B._preSort};for(c.forEach(function(O,B){O[0]._preGroupSort=B}),c.sort(R),_=0;_{"use strict";var sv=er();function vT(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}jl.formatPiePercent=function(r,t){var n=vT((r*100).toPrecision(3));return sv.numSeparate(n,t)+"%"};jl.formatPieValue=function(r,t){var n=vT(r.toPrecision(10));return sv.numSeparate(n,t)};jl.getFirstFilled=function(r,t){if(sv.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var gZ=mt(),yZ=Gr();dT.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?gZ.pointStyle(r,n,a,t):yZ.fill(r,t.color)}});var xT=be((bhe,mT)=>{"use strict";var gT=Gr(),yT=F2().castOption,mZ=pT();mT.exports=function(r,t,n,a){var o=n.marker.line,i=yT(o.color,t.pts)||gT.defaultLine,l=yT(o.width,t.pts)||0;r.call(mZ,t,n,a).style("stroke-width",l).call(gT.stroke,i)}});var q2=be((_he,AT)=>{"use strict";var Hn=ot(),I2=Tr(),Dn=er(),bT=Dn.strTranslate,ya=mt(),Pa=Gr(),N2=Ei().extractOpts,uv=sa(),xZ=xT(),bZ=F2().castOption,_Z=D2(),_T=12,wT=5,es=2,wZ=10,pu=5;AT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+_Z.itemGap*2)/2,u=bT(l,0),s=function(w,g,c,A){var d;if(w+1)d=w;else if(g&&g.width>0)d=g.width;else return 0;return o?A:Math.min(d,c)};r.each(function(w){var g=Hn.select(this),c=Dn.ensureSingle(g,"g","layers");c.style("opacity",w[0].trace.opacity);var A=n.indentation,d=n.valign,D=w[0].lineHeight,E=w[0].height;if(d==="middle"&&A===0||!D||!E)c.attr("transform",null);else{var R={top:1,bottom:-1}[d],N=R*(.5*(D-E+3))||0,I=n.indentation;c.attr("transform",bT(I,N))}var F=c.selectAll("g.legendfill").data([w]);F.enter().append("g").classed("legendfill",!0);var L=c.selectAll("g.legendlines").data([w]);L.enter().append("g").classed("legendlines",!0);var P=c.selectAll("g.legendsymbols").data([w]);P.enter().append("g").classed("legendsymbols",!0),P.selectAll("g.legendpoints").data([w]).enter().append("g").classed("legendpoints",!0)}).each(v).each(p).each(y).each(_).each(T).each(x).each(S).each(f).each(h).each(m).each(k);function f(w){var g=MT(w),c=g.showFill,A=g.showLine,d=g.showGradientLine,D=g.showGradientFill,E=g.anyFill,R=g.anyLine,N=w[0],I=N.trace,F,L,P=N2(I),O=P.colorscale,B=P.reversescale,X=function(Z){if(Z.size())if(c)ya.fillGroupStyle(Z,t,!0);else{var se="legendfill-"+I.uid;ya.gradient(Z,t,se,z2(B),O,"fill")}},$=function(Z){if(Z.size()){var se="legendline-"+I.uid;ya.lineGroupStyle(Z),ya.gradient(Z,t,se,z2(B),O,"stroke")}},ee=uv.hasMarkers(I)||!E?"M5,0":R?"M5,-2":"M5,-3",Y=Hn.select(this),q=Y.select(".legendfill").selectAll("path").data(c||D?[w]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",ee+"h"+i+"v6h-"+i+"z").call(X),A||d){var Q=s(void 0,I.line,wZ,wT);L=Dn.minExtend(I,{line:{width:Q}}),F=[Dn.minExtend(N,{trace:L})]}var oe=Y.select(".legendlines").selectAll("path").data(A||d?[F]:[]);oe.enter().append("path").classed("js-line",!0),oe.exit().remove(),oe.attr("d",ee+(d?"l"+i+",0.0001":"h"+i)).call(A?ya.lineGroupStyle:$)}function h(w){var g=MT(w),c=g.anyFill,A=g.anyLine,d=g.showLine,D=g.showMarker,E=w[0],R=E.trace,N=!D&&!A&&!c&&uv.hasText(R),I,F;function L(q,Q,oe,Z){var se=Dn.nestedProperty(R,q).get(),j=Dn.isArrayOrTypedArray(se)&&Q?Q(se):se;if(o&&j&&Z!==void 0&&(j=Z),oe){if(joe[1])return oe[1]}return j}function P(q){return E._distinct&&E.index&&q[E.index]?q[E.index]:q[0]}if(D||N||d){var O={},B={};if(D){O.mc=L("marker.color",P),O.mx=L("marker.symbol",P),O.mo=L("marker.opacity",Dn.mean,[.2,1]),O.mlc=L("marker.line.color",P),O.mlw=L("marker.line.width",Dn.mean,[0,5],es),O.mld=R._isShape?"solid":L("marker.line.dash",P),B.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var X=L("marker.size",Dn.mean,[2,16],_T);O.ms=X,B.marker.size=X}d&&(B.line={width:L("line.width",P,[0,10],wT)}),N&&(O.tx="Aa",O.tp=L("textposition",P),O.ts=10,O.tc=L("textfont.color",P),O.tf=L("textfont.family",P),O.tw=L("textfont.weight",P),O.ty=L("textfont.style",P),O.tv=L("textfont.variant",P),O.tC=L("textfont.textcase",P),O.tE=L("textfont.lineposition",P),O.tS=L("textfont.shadow",P)),I=[Dn.minExtend(E,O)],F=Dn.minExtend(R,B),F.selectedpoints=null,F.texttemplate=null}var $=Hn.select(this).select("g.legendpoints"),ee=$.selectAll("path.scatterpts").data(D?I:[]);ee.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),ee.exit().remove(),ee.call(ya.pointStyle,F,t),D&&(I[0].mrc=3);var Y=$.selectAll("g.pointtext").data(N?I:[]);Y.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Y.exit().remove(),Y.selectAll("text").call(ya.textPointStyle,F,t)}function p(w){var g=w[0].trace,c=g.type==="waterfall";if(w[0]._distinct&&c){var A=w[0].trace[w[0].dir].marker;return w[0].mc=A.color,w[0].mlw=A.line.width,w[0].mlc=A.line.color,b(w,this,"waterfall")}var d=[];g.visible&&c&&(d=w[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var D=Hn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(d);D.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E){var R=Hn.select(this),N=g[E[0]].marker,I=s(void 0,N.line,pu,es);R.attr("d",E[1]).style("stroke-width",I+"px").call(Pa.fill,N.color),I&&R.call(Pa.stroke,N.line.color)})}function _(w){b(w,this)}function y(w){b(w,this,"funnel")}function b(w,g,c){var A=w[0].trace,d=A.marker||{},D=d.line||{},E=d.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",R=c?A.visible&&A.type===c:I2.traceIs(A,"bar"),N=Hn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(R?[w]:[]);N.enter().append("path").classed("legend"+c,!0).attr("d",E).attr("transform",u),N.exit().remove(),N.each(function(I){var F=Hn.select(this),L=I[0],P=s(L.mlw,d.line,pu,es);F.style("stroke-width",P+"px");var O=L.mcc;if(!n._inHover&&"mc"in L){var B=N2(d),X=B.mid;X===void 0&&(X=(B.max+B.min)/2),O=ya.tryColorscale(d,"")(X)}var $=O||L.mc||d.color,ee=d.pattern,Y=ya.getPatternAttr,q=ee&&(Y(ee.shape,0,"")||Y(ee.path,0,""));if(q){var Q=Y(ee.bgcolor,0,null),oe=Y(ee.fgcolor,0,null),Z=ee.fgopacity,se=TT(ee.size,8,10),j=TT(ee.solidity,.5,1),V="legend-"+A.uid;F.call(ya.pattern,"legend",t,V,q,se,j,O,ee.fillmode,Q,oe,Z)}else F.call(Pa.fill,$);P&&Pa.stroke(F,L.mlc||D.color)})}function T(w){var g=w[0].trace,c=Hn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(g.visible&&I2.traceIs(g,"box-violin")?[w]:[]);c.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),c.exit().remove(),c.each(function(){var A=Hn.select(this);if((g.boxpoints==="all"||g.points==="all")&&Pa.opacity(g.fillcolor)===0&&Pa.opacity((g.line||{}).color)===0){var d=Dn.minExtend(g,{marker:{size:o?_T:Dn.constrain(g.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});c.call(ya.pointStyle,d,t)}else{var D=s(void 0,g.line,pu,es);A.style("stroke-width",D+"px").call(Pa.fill,g.fillcolor),D&&Pa.stroke(A,g.line.color)}})}function m(w){var g=w[0].trace,c=Hn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(g.visible&&g.type==="candlestick"?[w,w]:[]);c.enter().append("path").classed("legendcandle",!0).attr("d",function(A,d){return d?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,d){var D=Hn.select(this),E=g[d?"increasing":"decreasing"],R=s(void 0,E.line,pu,es);D.style("stroke-width",R+"px").call(Pa.fill,E.fillcolor),R&&Pa.stroke(D,E.line.color)})}function k(w){var g=w[0].trace,c=Hn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(g.visible&&g.type==="ohlc"?[w,w]:[]);c.enter().append("path").classed("legendohlc",!0).attr("d",function(A,d){return d?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,d){var D=Hn.select(this),E=g[d?"increasing":"decreasing"],R=s(void 0,E.line,pu,es);D.style("fill","none").call(ya.dashLine,E.line.dash,R),R&&Pa.stroke(D,E.line.color)})}function S(w){M(w,this,"pie")}function x(w){M(w,this,"funnelarea")}function M(w,g,c){var A=w[0],d=A.trace,D=c?d.visible&&d.type===c:I2.traceIs(d,c),E=Hn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(D?[w]:[]);if(E.enter().append("path").classed("legend"+c,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.size()){var R=d.marker||{},N=s(bZ(R.line.width,A.pts),R.line,pu,es),I="pieLike",F=Dn.minExtend(d,{marker:{line:{width:N}}},I),L=Dn.minExtend(A,{trace:F},I);xZ(E,L,F,t)}}function v(w){var g=w[0].trace,c,A=[];if(g.visible)switch(g.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],c=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":A=[["M-6,-6V6H6V-6Z"]],c=!0;break;case"densitymapbox":case"densitymap":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],c="radial";break;case"cone":A=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],c=!1;break;case"streamtube":A=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],c=!1;break;case"surface":A=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],c=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],c=!1;break}var d=Hn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);d.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),d.exit().remove(),d.each(function(D,E){var R=Hn.select(this),N=N2(g),I=N.colorscale,F=N.reversescale,L=function(X){if(X.size()){var $="legendfill-"+g.uid;ya.gradient(X,t,$,z2(F,c==="radial"),I,"fill")}},P;if(I){if(!c){var B=I.length;P=E===0?I[F?B-1:0][1]:E===1?I[F?0:B-1][1]:I[Math.floor((B-1)/2)][1]}}else{var O=g.vertexcolor||g.facecolor||g.color;P=Dn.isArrayOrTypedArray(O)?O[E]||O[0]:O}R.attr("d",D[0]),P?R.call(Pa.fill,P):R.call(L)})}};function z2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function MT(e){var r=e[0].trace,t=r.contours,n=uv.hasLines(r),a=uv.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function TT(e,r,t){return e&&Dn.isArrayOrTypedArray(e)?r:e>t?t:e}});var H2=be((whe,FT)=>{"use strict";var Jn=ot(),Gt=er(),B2=fn(),rs=Tr(),hv=Cf(),O2=oi(),Yt=mt(),Jf=Gr(),ts=Bn(),kT=L2().handleItemClick,ST=L2().handleTitleClick,Qt=D2(),U2=En(),RT=U2.LINE_SPACING,yu=U2.FROM_TL,CT=U2.FROM_BR,ET=hT(),MZ=q2(),mu=Zf(),gu=1,TZ=/^legend[0-9]*$/;FT.exports=function(r,t){if(t)LT(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=Jn.select(this),f=s.attr("class"),h=f.split(" ")[0];h.match(TZ)&&a.indexOf(h)===-1&&s.remove()});for(var i=0;i1)}var y=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),B2.autoMargin(e,a);var b=Gt.ensureSingle(i,"g",a,function(g){l||g.attr("pointer-events","all")}),T=Gt.ensureSingleById(n._topdefs,"clipPath",o,function(g){g.append("rect")}),m=Gt.ensureSingle(b,"rect","bg",function(g){g.attr("shape-rendering","crispEdges")});m.call(Jf.stroke,t.bordercolor).call(Jf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=Gt.ensureSingle(b,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var x;S.text?(x=Gt.ensureSingle(k,"text",a+"titletext"),x.attr("text-anchor","start").call(Yt.font,S.font).text(S.text),cv(x,k,e,t,gu),!l&&(t.titleclick||t.titledoubleclick)&&CZ(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var M=Gt.ensureSingle(b,"rect","scrollbar",function(g){g.attr(Qt.scrollBarEnterAttrs).call(Jf.fill,Qt.scrollBarColor)}),v=k.selectAll("g.groups").data(u);v.enter().append("g").attr("class","groups"),v.exit().remove();var w=v.selectAll("g.traces").data(Gt.identity);w.enter().append("g").attr("class","traces"),w.exit().remove(),w.style("opacity",function(g){let c=g[0],A=c.trace;if(c.groupTitle){let d=A.legendgroup,D=(n.shapes||[]).filter(function(R){return R.showlegend});return e._fullData.concat(D).some(function(R){return R.legendgroup===d&&(R.legend||"legend")===a&&R.visible===!0})?1:.5}return rs.traceIs(A,"pie-like")?y.indexOf(g[0].label)!==-1?.5:1:A.visible==="legendonly"?.5:1}).each(function(){Jn.select(this).call(kZ,e,t)}).call(MZ,e,t).each(function(g){l||g[0].groupTitle&&t.groupclick==="toggleitem"||Jn.select(this).call(SZ,e,a)}),Gt.syncOrAsync([B2.previousPromises,function(){return DZ(e,v,w,t,k)},function(){var g=n._size,c=t.borderwidth,A=t.xref==="paper",d=t.yref==="paper";if(S.text){let ne=(n.shapes||[]).filter(function(ye){return ye.showlegend}),ue=e._fullData.concat(ne).some(function(ye){let ke=ye.legend||"legend";var Me=Array.isArray(ke)?ke.includes(a):ke===a;return Me&&ye.visible===!0});x.style("opacity",ue?1:.5)}if(!l){var D,E;A?D=g.l+g.w*t.x-yu[vv(t)]*t._width:D=n.width*t.x-yu[vv(t)]*t._width,d?E=g.t+g.h*(1-t.y)-yu[dv(t)]*t._effHeight:E=n.height*(1-t.y)-yu[dv(t)]*t._effHeight;var R=RZ(e,a,D,E);if(R)return;if(n.margin.autoexpand){var N=D,I=E;D=A?Gt.constrain(D,0,n.width-t._width):N,E=d?Gt.constrain(E,0,n.height-t._effHeight):I,D!==N&&Gt.log("Constrain "+a+".x to make legend fit inside graph"),E!==I&&Gt.log("Constrain "+a+".y to make legend fit inside graph")}Yt.setTranslate(b,D,E)}if(M.on(".drag",null),b.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var F=t._effHeight;l&&(F=t._height),m.attr({width:t._width-c,height:F-c,x:c/2,y:c/2}),Yt.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*c,height:F-2*c,x:c,y:c}),Yt.setClipUrl(k,o,e),Yt.setRect(M,0,0,0,0),delete t._scrollY}else{var L=Math.max(Qt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*Qt.scrollBarMargin,O=t._height-t._effHeight,B=P/O,X=Math.min(t._scrollY||0,O);m.attr({width:t._width-2*c+Qt.scrollBarWidth+Qt.scrollBarMargin,height:t._effHeight-c,x:c/2,y:c/2}),T.select("rect").attr({width:t._width-2*c+Qt.scrollBarWidth+Qt.scrollBarMargin,height:t._effHeight-2*c,x:c,y:c+X}),Yt.setClipUrl(k,o,e),se(X,L,B),b.on("wheel",function(){X=Gt.constrain(t._scrollY+Jn.event.deltaY/O*P,0,O),se(X,L,B),X!==0&&X!==O&&Jn.event.preventDefault()});var $,ee,Y,q=function(ne,ue,ye){var ke=(ye-ue)/B+ne;return Gt.constrain(ke,0,O)},Q=function(ne,ue,ye){var ke=(ue-ye)/B+ne;return Gt.constrain(ke,0,O)},oe=Jn.behavior.drag().on("dragstart",function(){var ne=Jn.event.sourceEvent;ne.type==="touchstart"?$=ne.changedTouches[0].clientY:$=ne.clientY,Y=X}).on("drag",function(){var ne=Jn.event.sourceEvent;ne.buttons===2||ne.ctrlKey||(ne.type==="touchmove"?ee=ne.changedTouches[0].clientY:ee=ne.clientY,X=q(Y,$,ee),se(X,L,B))});M.call(oe);var Z=Jn.behavior.drag().on("dragstart",function(){var ne=Jn.event.sourceEvent;ne.type==="touchstart"&&($=ne.changedTouches[0].clientY,Y=X)}).on("drag",function(){var ne=Jn.event.sourceEvent;ne.type==="touchmove"&&(ee=ne.changedTouches[0].clientY,X=Q(Y,$,ee),se(X,L,B))});k.call(Z)}function se(ne,ue,ye){t._scrollY=e._fullLayout[a]._scrollY=ne,Yt.setTranslate(k,0,-ne),Yt.setRect(M,t._width,Qt.scrollBarMargin+ne*ye,Qt.scrollBarWidth,ue),T.select("rect").attr("y",c+ne)}if(e._context.edits.legendPosition){var j,V,re,H;b.classed("cursor-move",!0),O2.init({element:b.node(),gd:e,prepFn:function(ne){if(ne.target!==M.node()){var ue=Yt.getTranslate(b);re=ue.x,H=ue.y}},moveFn:function(ne,ue){if(re!==void 0&&H!==void 0){var ye=re+ne,ke=H+ue;Yt.setTranslate(b,ye,ke),j=O2.align(ye,t._width,g.l,g.l+g.w,t.xanchor),V=O2.align(ke+t._height,-t._height,g.t+g.h,g.t,t.yanchor)}},doneFn:function(){if(j!==void 0&&V!==void 0){var ne={};ne[a+".x"]=j,ne[a+".y"]=V,rs.call("_guiRelayout",e,ne)}},clickFn:function(ne,ue){var ye=i.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return ue.clientX>=ke.left&&ue.clientX<=ke.right&&ue.clientY>=ke.top&&ue.clientY<=ke.bottom});ye.size()>0&&PT(e,t,ye,ne,ue)}})}}],e)}}function fv(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function PT(e,r,t,n,a){var o=e._fullLayout,i=t.data()[0][0].trace,l=r.itemclick,u=r.itemdoubleclick,s={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:o};i._group&&(s.group=i._group),rs.traceIs(i,"pie-like")&&(s.label=t.datum()[0].label);var f=hv.triggerHandler(e,"plotly_legendclick",s);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&kT(t,e,r,l)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var h=hv.triggerHandler(e,"plotly_legenddoubleclick",s);h!==!1&&f!==!1&&u&&kT(t,e,r,u)}}function kZ(e,r,t){var n=mu.getId(t),a=e.data()[0][0],o=a.trace,i=rs.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=Gt.templateString(s,o._meta))));var h=Gt.ensureSingle(e,"text",n+"text");h.attr("text-anchor","start").call(Yt.font,f).text(l?DT(s,u):s);var p=t.indentation+t.itemwidth+Qt.itemGap*2;ts.positionText(h,p,0),l?h.call(ts.makeEditable,{gd:r,text:s}).call(cv,e,r,t).on("edit",function(_){this.text(DT(_,u)).call(cv,e,r,t);var y=a.trace._fullInput||{},b={};return b.name=_,y._isShape?rs.call("_guiRelayout",r,"shapes["+o.index+"].name",b.name):rs.call("_guiRestyle",r,b,o.index)}):cv(h,e,r,t)}function DT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function SZ(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=Gt.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Jf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(o=Math.max(o-1,1)),PT(r,l,e,o,Jn.event)}}))}function CZ(e,r,t,n){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&rs.traceIs(s,"pie-like")}))return;let o=r._context.doubleClickDelay;var i,l=1;let u=Gt.ensureSingle(e,"rect",n+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(Jf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(u.on("mousedown",function(){i=new Date().getTime(),i-r._legendMouseDownTimeo&&(l=Math.max(l-1,1));let s={event:Jn.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(hv.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&ST(r,t,t.titleclick)},o)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,hv.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&ST(r,t,t.titledoubleclick))}))}function cv(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),ts.convertToTspans(e,t,function(){EZ(r,t,n,a)})}function EZ(e,r,t,n){var a=e.data()[0][0],o=a&&a.trace.showlegend;if(Array.isArray(o)&&(o=o[a.i]!==!1),!t._inHover&&a&&!o){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),u=mu.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===gu?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var h=f.size*RT,p,_;if(l){var y=Yt.bBox(l);p=y.height,_=y.width,n===gu?Yt.setTranslate(i,s,s+p*.75):Yt.setTranslate(i,0,p*.25)}else{var b="."+u+(n===gu?"title":"")+"text",T=e.select(b),m=ts.lineCount(T),k=T.node();if(p=h*m,_=k?Yt.bBox(k).width:0,n===gu)t.title.side==="left"&&(_+=Qt.itemGap*2),ts.positionText(T,s+Qt.titlePad,s+h);else{var S=Qt.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(S=Qt.itemGap,_-=t.indentation+t.itemwidth),ts.positionText(T,S,-h*((m-1)/2-.3))}}n===gu?(t._titleWidth=_,t._titleHeight=p):(a.lineHeight=h,a.height=Math.max(p,16)+3,a.width=_)}function LZ(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function DZ(e,r,t,n,a){var o=e._fullLayout,i=mu.getId(n);n||(n=o[i]);var l=o._size,u=mu.isVertical(n),s=mu.isGrouped(n),f=n.entrywidthmode==="fraction",h=n.borderwidth,p=2*h,_=Qt.itemGap,y=n.indentation+n.itemwidth+_*2,b=2*(h+_),T=dv(n),m=n.y<0||n.y===0&&T==="top",k=n.y>1||n.y===1&&T==="bottom",S=n.tracegroupgap,x={};let{orientation:M,yref:v}=n,{maxheight:w}=n,g=m||k||M!=="v"||v!=="paper";w||(w=g?.5:1);let c=g?o.height:l.h;n._maxHeight=Math.max(w>1?w:w*c,30);var A=0;n._width=0,n._height=0;var d=LZ(n);if(u)t.each(function(ne){var ue=ne[0].height;Yt.setTranslate(this,h+d[0],h+d[1]+n._height+ue/2+_),n._height+=ue,n._width=Math.max(n._width,ne[0].width)}),A=y+n._width,n._width+=_+y+p,n._height+=b,s&&(r.each(function(ne,ue){Yt.setTranslate(this,0,ue*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var D=vv(n),E=n.x<0||n.x===0&&D==="right",R=n.x>1||n.x===1&&D==="left",N=k||m,I=o.width/2;n._maxWidth=Math.max(E?N&&D==="left"?l.l+l.w:I:R?N&&D==="right"?l.r+l.w:I:l.w,2*y);var F=0,L=0;t.each(function(ne){var ue=fv(ne,n,y);F=Math.max(F,ue),L+=ue}),A=null;var P=0;if(s){var O=0,B=0,X=0;r.each(function(){var ne=0,ue=0;Jn.select(this).selectAll("g.traces").each(function(ke){var Me=fv(ke,n,y),ge=ke[0].height;Yt.setTranslate(this,d[0],d[1]+h+_+ge/2+ue),ue+=ge,ne=Math.max(ne,Me),x[ke[0].trace.legendgroup]=ne});var ye=ne+_;B>0&&ye+h+B>n._maxWidth?(P=Math.max(P,B),B=0,X+=O+S,O=ue):O=Math.max(O,ue),Yt.setTranslate(this,B,X),B+=ye}),n._width=Math.max(P,B)+h,n._height=X+O+b}else{var $=t.size(),ee=L+p+($-1)*_=n._maxWidth&&(P=Math.max(P,oe),q=0,Q+=Y,n._height+=Y,Y=0),Yt.setTranslate(this,d[0]+h+q,d[1]+h+Q+ue/2+_),oe=q+ye+_,q+=ke,Y=Math.max(Y,ue)}),ee?(n._width=q+p,n._height=Y+b):(n._width=Math.max(P,oe)+p,n._height+=Y+b)}}n._width=Math.ceil(Math.max(n._width+d[0],n._titleWidth+2*(h+Qt.titlePad))),n._height=Math.ceil(Math.max(n._height+d[1],n._titleHeight+2*(h+Qt.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Z=e._context.edits,se=Z.legendText||Z.legendPosition;t.each(function(ne){var ue=Jn.select(this).select("."+i+"toggle"),ye=ne[0].height,ke=ne[0].trace.legendgroup,Me=fv(ne,n,y);s&&ke!==""&&(Me=x[ke]);var ge=se?y:A||Me;!u&&!f&&(ge+=_/2),Yt.setRect(ue,0,-ye/2,ge,ye)});var j=a.select("."+i+"titletext");j.node()&&AZ(j,n,h);var V=a.select("."+i+"titletoggle");if(V.size()&&j.node()){var re=j.attr("x")||0,H=Qt.titlePad;Yt.setRect(V,re-H,h,n._titleWidth+2*H,n._titleHeight+2*H)}}function RZ(e,r,t,n){var a=e._fullLayout,o=a[r],i=vv(o),l=dv(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",h=o.x<.5?"l":"r",p={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return B2.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*yu[i],r:o._width*CT[i],b:o._effHeight*CT[l],t:o._effHeight*yu[l]});u?e._fullLayout._reservedMargin[r][f]=p[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][h]=p[h]:e._fullLayout._reservedMargin[r][f]=p[f]}function vv(e){return Gt.isRightAnchor(e)?"right":Gt.isCenterAnchor(e)?"center":"left"}function dv(e){return Gt.isBottomAnchor(e)?"bottom":Gt.isMiddleAnchor(e)?"middle":"top"}});var W2=be(Y2=>{"use strict";var ns=ot(),co=nt(),IT=Sa(),It=er(),PZ=It.pushUnique,V2=It.strTranslate,FZ=It.strRotate,IZ=Cf(),Fa=Bn(),NZ=iT(),qi=mt(),hn=Gr(),pv=oi(),Oi=Et(),zZ=un().zindexSeparator,bu=Tr(),li=fo(),as=gf(),qZ=S2(),OZ=H2(),VT=as.YANGLE,G2=Math.PI*VT/180,BZ=1/Math.sin(G2),UZ=Math.cos(G2),HZ=Math.sin(G2),St=as.HOVERARROWSIZE,Jr=as.HOVERTEXTPAD,NT={box:!0,ohlc:!0,violin:!0,candlestick:!0},VZ={scatter:!0,scattergl:!0,splom:!0};function zT(e,r){return e.distance-r.distance}Y2.hover=function(r,t,n,a){r=It.getGraphDiv(r);var o=t.target;It.throttle(r._fullLayout._uid+as.HOVERID,as.HOVERMINTIME,function(){GZ(r,t,n,a,o)})};Y2.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=ZT(a),i=JT(a),l=r.map(function(T){var m=T._x0||T.x0||T.x||0,k=T._x1||T.x1||T.x||0,S=T._y0||T.y0||T.y||0,x=T._y1||T.y1||T.y||0,M=T.eventData;if(M){var v=Math.min(m,k),w=Math.max(m,k),g=Math.min(S,x),c=Math.max(S,x),A=T.trace;if(bu.traceIs(A,"gl3d")){var d=a._fullLayout[A.scene]._scene.container,D=d.offsetLeft,E=d.offsetTop;v+=D,w+=D,g+=E,c+=E}M.bbox={x0:v+i,x1:w+i,y0:g+o,y1:c+o},M.xPixel=(m+k)/2,M.yPixel=(S+x)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:T.color||hn.defaultLine,x0:T.x0||T.x||0,x1:T.x1||T.x||0,y0:T.y0||T.y||0,y1:T.y1||T.y||0,xLabel:T.xLabel,yLabel:T.yLabel,zLabel:T.zLabel,text:T.text,name:T.name,idealAlign:T.idealAlign,borderColor:T.borderColor,fontFamily:T.fontFamily,fontSize:T.fontSize,fontColor:T.fontColor,fontWeight:T.fontWeight,fontStyle:T.fontStyle,fontVariant:T.fontVariant,nameLength:T.nameLength,textAlign:T.textAlign,trace:T.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:T.hovertemplate||!1,hovertemplateLabels:T.hovertemplateLabels||!1,eventData:M}}),u=!1,s=YT(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||hn.background,container:ns.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,h=5,p=0,_=0;f.sort(function(T,m){return T.y0-m.y0}).each(function(T,m){var k=T.y0-T.by/2;k-hw[0]._length||H<0||H>g[0]._length)return pv.unhoverRaw(e,r)}if(r.pointerX=re+w[0]._offset,r.pointerY=H+g[0]._offset,"xval"in r?I=li.flat(o,r.xval):I=li.p2c(w,re),"yval"in r?F=li.flat(o,r.yval):F=li.p2c(g,H),!co(I[0])||!co(F[0]))return It.warn("Fx.hover failed",r,e),pv.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=I,e._hoverYVals=F,e._hoverXAxes=w,e._hoverYAxes=g);var ye=1/0;function ke(nr,Pr){for(P=0;Poe&&(R.splice(0,oe),ye=R[0].distance),h&&E!==0&&R.length===0){Q.distance=E,Q.index=!1;var at=B._module.hoverPoints(Q,Y,q,"closest",{hoverLayer:l._hoverlayer});if(at&&(at=at.filter(function(jt){return jt.spikeDistance<=E})),at&&at.length){var $t,Zt=at.filter(function(jt){return jt.xa.showspikes&&jt.xa.spikesnap!=="hovered data"});if(Zt.length){var Rt=Zt[0];co(Rt.x0)&&co(Rt.y0)&&($t=ge(Rt),(!Z.vLinePoint||Z.vLinePoint.spikeDistance>$t.spikeDistance)&&(Z.vLinePoint=$t))}var vt=at.filter(function(jt){return jt.ya.showspikes&&jt.ya.spikesnap!=="hovered data"});if(vt.length){var Mt=vt[0];co(Mt.x0)&&co(Mt.y0)&&($t=ge(Mt),(!Z.hLinePoint||Z.hLinePoint.spikeDistance>$t.spikeDistance)&&(Z.hLinePoint=$t))}}}}}ke();function Me(nr,Pr,Kr){for(var Er=null,Qr=1/0,Dt,at=0;atnr.trace.index===de.trace.index):R=[de];var _e=R.length,Ae=HT("x",de,l),Ie=HT("y",de,l);ke(Ae,Ie);var De=[],We={},Oe=0,ze=function(nr){var Pr=NT[nr.trace.type]?GT(nr):nr.trace.index;if(!We[Pr])Oe++,We[Pr]=Oe,De.push(nr);else{var Kr=We[Pr]-1,Er=De[Kr];Kr>0&&Math.abs(nr.distance)_e-1;Be--)ze(R[Be]);R=De,ie()}var Se=e._hoverdata,Le=[],Ye=ZT(e),Xe=JT(e);for(let nr of R){var $e=li.makeEventData(nr,nr.trace,nr.cd);if(nr.hovertemplate!==!1){var Qe=!1;nr.cd[nr.index]&&nr.cd[nr.index].ht&&(Qe=nr.cd[nr.index].ht),nr.hovertemplate=Qe||nr.trace.hovertemplate||!1}if(nr.xa&&nr.ya){var je=nr.x0+nr.xa._offset,ir=nr.x1+nr.xa._offset,yr=nr.y0+nr.ya._offset,xr=nr.y1+nr.ya._offset,wr=Math.min(je,ir),$r=Math.max(je,ir),_r=Math.min(yr,xr),Nr=Math.max(yr,xr);$e.bbox={x0:wr+Xe,x1:$r+Xe,y0:_r+Ye,y1:Nr+Ye},$e.xPixel=(je+ir)/2,$e.yPixel=(yr+xr)/2}nr.eventData=[$e],Le.push($e)}e._hoverdata=Le;var et=p==="y"&&(N.length>1||R.length>1)||p==="closest"&&se&&R.length>1,Sr=hn.combine(l.plot_bgcolor||hn.background,l.paper_bgcolor),qr=YT(R,{gd:e,hovermode:p,rotateLabels:et,bgColor:Sr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),gt=qr.hoverLabels;if(li.isUnifiedHover(p)||(WZ(gt,et,l,qr.commonLabelBoundingBox),XT(gt,et,l._invScaleX,l._invScaleY)),a&&a.tagName){var Hr=bu.getComponentMethod("annotations","hasClickToShow")(e,Le);NZ(ns.select(a),Hr?"pointer":"")}var Zr=JZ(e,r,Se);if(!a||n||!Zr&&!l.hoveranywhere)return;Se&&Zr&&e.emit("plotly_unhover",{event:r,points:Se}),zt(e._hoverdata);function zt(nr){e.emit("plotly_hover",{event:r,points:nr,xaxes:w,yaxes:g,xvals:I,yvals:F})}}function GT(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var YZ=/([\s\S]*)<\/extra>/;function YT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||as.HOVERFONT,h=r.fontSize||as.HOVERFONTSIZE,p=r.fontWeight||n.font.weight,_=r.fontStyle||n.font.style,y=r.fontVariant||n.font.variant,b=r.fontTextcase||n.font.textcase,T=r.fontLineposition||n.font.lineposition,m=r.fontShadow||n.font.shadow,k=e[0],S=k.xa,x=k.ya,M=a.charAt(0),v=M+"Label",w=k[v];if(w===void 0&&S.type==="multicategory")for(var g=0;gn.width-Le&&(Ye=n.width-Le),me.attr("d","M"+(ze-Ye)+",0L"+(ze-Ye+St)+","+Se+St+"H"+Le+"v"+Se+(Jr*2+Oe.height)+"H"+-Le+"V"+Se+St+"H"+(ze-Ye-St)+"Z"),ze=Ye,P.minX=ze-Le,P.maxX=ze+Le,S.side==="top"?(P.minY=Be-(Jr*2+Oe.height),P.maxY=Be-Jr):(P.minY=Be+Jr,P.maxY=Be+(Jr*2+Oe.height))}else{var Xe,$e,Qe;x.side==="right"?(Xe="start",$e=1,Qe="",ze=S._offset+S._length):(Xe="end",$e=-1,Qe="-",ze=S._offset),Be=x._offset+(k.y0+k.y1)/2,de.attr("text-anchor",Xe),me.attr("d","M0,0L"+Qe+St+","+St+"V"+(Jr+Oe.height/2)+"h"+Qe+(Jr*2+Oe.width)+"V-"+(Jr+Oe.height/2)+"H"+Qe+St+"V-"+St+"Z"),P.minY=Be-(Jr+Oe.height/2),P.maxY=Be+(Jr+Oe.height/2),x.side==="right"?(P.minX=ze+St,P.maxX=ze+St+(Jr*2+Oe.width)):(P.minX=ze-St-(Jr*2+Oe.width),P.maxX=ze-St);var je=Oe.height/2,ir=A-Oe.top-je,yr="clip"+n._uid+"commonlabel"+x._id,xr;if(zeme.hoverinfo!=="none");if(xe.length===0)return[];var O=n.hoverlabel,B=O.font,X=xe[0],$=((a==="x unified"?X.xa:X.ya).unifiedhovertitle||{}).text,ee=$?It.hovertemplateString({data:a==="x unified"?[{xa:X.xa,x:X.xVal}]:[{ya:X.ya,y:X.yVal}],fallback:X.trace.hovertemplatefallback,locale:n._d3locale,template:$}):w,Y={showlegend:!0,legend:{title:{text:ee,font:B},font:B,bgcolor:O.bgcolor,bordercolor:O.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},q={font:B};qZ(Y,q,t._fullData);var Q=q.legend;Q.entries=[];for(var oe=0;oe=0?ce=ie:J+ue=0?ce=J:te+ue=0?pe=Ce:Fe+ye=0?pe=Fe:ae+ye=0,(xe.idealAlign==="top"||!_r)&&Nr?(Qe-=ir/2,xe.anchor="end"):_r?(Qe+=ir/2,xe.anchor="start"):xe.anchor="middle",xe.crossPos=Qe;else{if(xe.pos=Qe,_r=$e+je/2+$r<=d,Nr=$e-je/2-$r>=0,(xe.idealAlign==="left"||!_r)&&Nr)$e-=je/2,xe.anchor="end";else if(_r)$e+=je/2,xe.anchor="start";else{xe.anchor="middle";var et=$r/2,Sr=$e+et-d,qr=$e-et;Sr>0&&($e-=Sr),qr<0&&($e+=-qr)}xe.crossPos=$e}Be.attr("text-anchor",xe.anchor),Le&&Se.attr("text-anchor",xe.anchor),me.attr("transform",V2($e,Qe)+(o?FZ(VT):""))}),{hoverLabels:ve,commonLabelBoundingBox:P}}function qT(e,r,t,n,a,o){var h,p;var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=It.templateString(e.name,e.trace._meta)),i=UT(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i),(p=(h=e.trace)==null?void 0:h.hoverlabel)!=null&&p.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let _=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(_[u+"other"]=_[u+"Val"],_[u+"otherLabel"]=_[u+"Label"]),l=It.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:_,locale:n._d3locale,template:f}),l=l.replace(YZ,(y,b)=>(i=UT(b,e.nameLength),""))}return[l,i]}function WZ(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,h=n.minX,p=n.maxX,_=n.minY,y=n.maxY,b=function(I){return I*t._invScaleX},T=function(I){return I*t._invScaleY};e.each(function(I){var F=I[a],L=I[o],P=F._id.charAt(0)==="x",O=F.range;f===0&&O&&O[0]>O[1]!==P&&(l=-1);var B=0,X=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var $=WT(I,r),ee=I.anchor,Y=ee==="end"?-1:1,q,Q;if(ee==="middle")q=I.crossPos+(P?T($.y-I.by/2):b(I.bx/2+I.tx2width/2)),Q=q+(P?T(I.by):b(I.bx));else if(P)q=I.crossPos+T(St+$.y)-T(I.by/2-St),Q=q+T(I.by);else{var oe=b(Y*St+$.x),Z=oe+b(Y*I.bx);q=I.crossPos+Math.min(oe,Z),Q=I.crossPos+Math.max(oe,Z)}P?_!==void 0&&y!==void 0&&Math.min(Q,y)-Math.max(q,_)>1&&(L.side==="left"?(B=L._mainLinePosition,X=t.width):X=L._mainLinePosition):h!==void 0&&p!==void 0&&Math.min(Q,p)-Math.max(q,h)>1&&(L.side==="top"?(B=L._mainLinePosition,X=t.height):X=L._mainLinePosition)}s[f++]=[{datum:I,traceIndex:I.trace.index,dp:0,pos:I.pos,posref:I.posref,size:I.by*(P?BZ:1)/2,pmin:B,pmax:X}]}),s.sort(function(I,F){return I[0].posref-F[0].posref||l*(F[0].traceIndex-I[0].traceIndex)});var m,k,S,x,M,v,w;function g(I){var F=I[0],L=I[I.length-1];if(k=F.pmin-F.pos-F.dp+F.size,S=L.pos+L.dp+L.size-F.pmax,k>.01){for(M=I.length-1;M>=0;M--)I[M].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(M=I.length-1;M>=0;M--)I[M].dp-=S;m=!1}if(m){var P=0;for(x=0;xF.pmax&&P++;for(x=I.length-1;x>=0&&!(P<=0);x--)v=I[x],v.pos>F.pmax-1&&(v.del=!0,P--);for(x=0;x=0;M--)I[M].dp-=S;for(x=I.length-1;x>=0&&!(P<=0);x--)v=I[x],v.pos+v.dp+v.size>F.pmax&&(v.del=!0,P--)}}}for(;!m&&i<=u;){for(i++,m=!0,x=0;x.01){for(M=A.length-1;M>=0;M--)A[M].dp+=k;for(c.push.apply(c,A),s.splice(x+1,1),w=0,M=c.length-1;M>=0;M--)w+=c[M].dp;for(S=w/c.length,M=c.length-1;M>=0;M--)c[M].dp-=S;m=!1}else x++}s.forEach(g)}for(x=s.length-1;x>=0;x--){var E=s[x];for(M=E.length-1;M>=0;M--){var R=E[M],N=R.datum;N.offset=R.dp,N.del=R.del}}}function WT(e,r){var t=0,n=e.offset;return r&&(n*=-HZ,t=e.offset*UZ),{x:t,y:n}}function XZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(St+Jr),n=t+r*(e.txwidth+Jr),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Jr),{alignShift:r,textShiftX:t,text2ShiftX:n}}function XT(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=ns.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,h=XZ(i),p=WT(i,r),_=p.x,y=p.y,b=s==="middle",T="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,m;b?m="M-"+a(i.bx/2+i.tx2width/2)+","+o(y-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":T?m="M0,0L"+a(f*St+_)+","+o(St+y)+"v"+o(i.by/2-St)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*St+_)+"V"+o(y-St)+"Z":m="M"+a(f*St+_)+","+o(y-i.by/2)+"h"+a(f*i.bx)+"v"+o(i.by)+"h"+a(-f*i.bx)+"Z",l.select("path").attr("d",m);var k=_+h.textShiftX,S=y+i.ty0-i.by/2+Jr,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=b?-i.bx/2-i.tx2width/2+Jr:-i.bx-Jr):x==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=b?i.bx/2-i.tx2width/2-Jr:i.bx+Jr)),u.call(Fa.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Fa.positionText,a(h.text2ShiftX+h.alignShift*Jr+_),o(y+i.ty0-i.by/2+Jr)),l.select("rect").call(qi.setRect,a(h.text2ShiftX+(h.alignShift-1)*i.tx2width/2+_),o(y-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function ZZ(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||co(p)&&p===0}var l=Array.isArray(t)?function(p,_){var y=It.castOption(a,t,p);return i(y)?y:It.extractOption({},n,"",_)}:function(p,_){return It.extractOption(o,n,p,_)};function u(p,_,y){var b=l(_,y);i(b)&&(e[p]=b)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=It.constrain(e.x0,0,e.xa._length),e.x1=It.constrain(e.x1,0,e.xa._length),e.y0=It.constrain(e.y0,0,e.ya._length),e.y1=It.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Oi.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Oi.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=Oi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+Oi.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Oi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Oi.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&h!=="all"&&(h=Array.isArray(h)?h:h.split("+"),h.indexOf("x")===-1&&(e.xLabel=void 0),h.indexOf("y")===-1&&(e.yLabel=void 0),h.indexOf("z")===-1&&(e.zLabel=void 0),h.indexOf("text")===-1&&(e.text=void 0),h.indexOf("name")===-1&&(e.name=void 0)),e}function OT(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var h=hn.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,_,y;s=p&&p.xa,f=p&&p.ya;var b=f.spikesnap;b==="cursor"?(_=i.pointerX,y=i.pointerY):(_=s._offset+p.x,y=f._offset+p.y);var T=IT.readability(p.color,h)<1.5?hn.contrast(h):p.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||T,x=Oi.getPxPosition(e,f),M,v;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=x,v=_),m.indexOf("across")!==-1){var w=f._counterDomainMin,g=f._counterDomainMax;f.anchor==="free"&&(w=Math.min(w,f.position),g=Math.max(g,f.position)),M=o.l+w*o.w,v=o.l+g*o.w}n.insert("line",":first-child").attr({x1:M,x2:v,y1:y,y2:y,"stroke-width":k,stroke:S,"stroke-dasharray":qi.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:M,x2:v,y1:y,y2:y,"stroke-width":k+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}m.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?k:-k),cy:y,r:k,fill:S}).classed("spikeline",!0)}if(u){var c=r.vLinePoint,A,d;s=c&&c.xa,f=c&&c.ya;var D=s.spikesnap;D==="cursor"?(A=i.pointerX,d=i.pointerY):(A=s._offset+c.x,d=f._offset+c.y);var E=IT.readability(c.color,h)<1.5?hn.contrast(h):c.color,R=s.spikemode,N=s.spikethickness,I=s.spikecolor||E,F=Oi.getPxPosition(e,s),L,P;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(L=F,P=d),R.indexOf("across")!==-1){var O=s._counterDomainMin,B=s._counterDomainMax;s.anchor==="free"&&(O=Math.min(O,s.position),B=Math.max(B,s.position)),L=o.t+(1-B)*o.h,P=o.t+(1-O)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N,stroke:I,"stroke-dasharray":qi.dashStyle(s.spikedash,N)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}R.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:F-(s.side!=="top"?N:-N),r:N,fill:I}).classed("spikeline",!0)}}}function JZ(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers)||a.binNumber!==o.binNumber)return!0}return!1}function BT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function UT(e,r){return Fa.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function KZ(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;ie.offsetTop+e.clientTop,JT=e=>e.offsetLeft+e.clientLeft;function xu(e,r){var t=e._fullLayout,n=r.getBoundingClientRect(),a=n.left,o=n.top,i=a+n.width,l=o+n.height,u=It.apply3DTransform(t._invTransform)(a,o),s=It.apply3DTransform(t._invTransform)(i,l),f=u[0],h=u[1],p=s[0],_=s[1];return{x:f,y:h,width:p-f,height:_-h,top:Math.min(h,_),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(h,_)}}});var gv=be((The,KT)=>{"use strict";var QZ=er(),$Z=Gr(),jZ=fo().isUnifiedHover;KT.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&jZ(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=$Z.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),QZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var $T=be((Ahe,QT)=>{"use strict";var eJ=er(),rJ=gv(),tJ=Ll();QT.exports=function(r,t){function n(a,o){return eJ.coerce(r,t,tJ,a,o)}rJ(r,t,n)}});var r9=be((khe,e9)=>{"use strict";var jT=er(),nJ=Hc(),aJ=gv();e9.exports=function(r,t,n,a){function o(l,u){return jT.coerce(r,t,nJ,l,u)}var i=jT.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),aJ(r,t,o,i)}});var X2=be((She,t9)=>{"use strict";var iJ=er(),oJ=Ll();t9.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:iJ.coerce(r,t,oJ,a,o)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var i9=be((Che,a9)=>{"use strict";var n9=er(),lJ=Ll(),sJ=X2(),uJ=gv();a9.exports=function(r,t){function n(f,h){return n9.coerce(r,t,lJ,f,h)}var a=sJ(r,t);a&&(n("hoverdistance"),n("spikedistance"),a.indexOf("unified")!==-1&&n("hoversort"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("mapbox"),l=t._has("map"),u=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l||u)&&s===1||(i||l)&&u&&s===2)&&(t.dragmode="pan"),uJ(r,t,n),n9.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var s9=be((Ehe,l9)=>{"use strict";var Z2=er(),o9=Tr();l9.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return Z2.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var cJ=Tr(),hJ=W2().hover;u9.exports=function(r,t,n){var a=cJ.getComponentMethod("annotations","onClick")(r,r._hoverdata),o=r._fullLayout;n!==void 0&&hJ(r,t,n,!0);function i(){var u,s,f,h;var l={points:r._hoverdata,event:t};(u=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(s=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals),(h=l.yvals)!=null||(l.yvals=r._hoverYVals),r.emit("plotly_click",l)}(r._hoverdata||o.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Bi=be((Dhe,v9)=>{"use strict";var vJ=ot(),yv=er(),dJ=oi(),Kf=fo(),c9=Ll(),h9=W2();v9.exports={moduleType:"component",name:"fx",constants:gf(),schema:{layout:c9},attributes:Hc(),layoutAttributes:c9,supplyLayoutGlobalDefaults:$T(),supplyDefaults:r9(),supplyLayoutDefaults:i9(),calc:s9(),getDistanceFunction:Kf.getDistanceFunction,getClosest:Kf.getClosest,inbox:Kf.inbox,quadrature:Kf.quadrature,appendArrayPointValue:Kf.appendArrayPointValue,castHoverOption:gJ,castHoverinfo:yJ,hover:h9.hover,unhover:dJ.unhover,loneHover:h9.loneHover,loneUnhover:pJ,click:f9()};function pJ(e){var r=yv.isD3Selection(e)?e:vJ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function gJ(e,r,t){return yv.castOption(e,r,"hoverlabel."+t)}function yJ(e,r,t){function n(a){return yv.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return yv.castOption(e,t,"hoverinfo",n)}});var _u=be(ho=>{"use strict";ho.selectMode=function(e){return e==="lasso"||e==="select"};ho.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ho.openMode=function(e){return e==="drawline"||e==="drawopenpath"};ho.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ho.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};ho.selectingOrDrawing=function(e){return ho.freeMode(e)||ho.rectMode(e)}});var mv=be((Phe,d9)=>{"use strict";d9.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var xv=be((Fhe,p9)=>{"use strict";p9.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var _v=be((Ihe,g9)=>{"use strict";var bv=32;g9.exports={CIRCLE_SIDES:bv,i000:0,i090:bv/4,i180:bv/2,i270:bv/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var wv=be((Nhe,m9)=>{"use strict";var mJ=er().strTranslate;function y9(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function xJ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function bJ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return y9(e,t[r])}}function _J(e){return mJ(e.xaxis._offset,e.yaxis._offset)}m9.exports={p2r:y9,r2p:xJ,axValue:bJ,getTransform:_J}});var $o=be(vo=>{"use strict";var wJ=Ig(),_9=_v(),wu=_9.CIRCLE_SIDES,J2=_9.SQRT2,w9=wv(),x9=w9.p2r,b9=w9.r2p,MJ=[0,3,4,5,6,1,2],TJ=[0,3,4,1,2];vo.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var M9=nn(),C9=_u(),AJ=C9.drawMode,kJ=C9.openMode,Mu=_v(),T9=Mu.i000,A9=Mu.i090,k9=Mu.i180,S9=Mu.i270,SJ=Mu.cos45,CJ=Mu.sin45,E9=wv(),Tv=E9.p2r,jo=E9.r2p,EJ=Uo(),LJ=EJ.clearOutline,Av=$o(),DJ=Av.readPaths,RJ=Av.writePaths,PJ=Av.ellipseOver,FJ=Av.fixDatesForPaths;function IJ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!AJ(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var NJ=_u(),zJ=NJ.selectMode,qJ=Uo(),OJ=qJ.clearOutline,K2=$o(),BJ=K2.readPaths,UJ=K2.writePaths,HJ=K2.fixDatesForPaths;R9.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,h=t.dragmode,p=(o.layout||{}).selections||[];if(!zJ(h)&&f!==void 0){var _=o._fullLayout._activeSelectionIndex;if(_{"use strict";P9.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var rl=be(yn=>{"use strict";var Hi=$f(),F9=er(),el=Et();yn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};yn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};yn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};yn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};yn.extractPathCoords=function(e,r,t){var n=[],a=e.match(Hi.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(Hi.paramRE);if(!(!l||l.length{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};yn.getDataToPixel=function(e,r,t,n,a){var o=e._fullLayout._size,i;if(r)if(a==="domain")i=function(u){return r._length*(n?1-u:u)+r._offset};else{var l=yn.shapePositionToRange(r);i=function(u){var s=Ui(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=yn.decodeDate(i))}else n?i=function(u){return o.t+o.h*(1-u)}:i=function(u){return o.l+o.w*u};return i};yn.getPixelToData=function(e,r,t,n){var a=e._fullLayout._size,o;if(r)if(n==="domain")o=function(l){var u=(l-r._offset)/r._length;return t?1-u:u};else{var i=yn.rangeToShapePosition(r);o=function(l){return i(r.p2r(l-r._offset))}}else t?o=function(l){return 1-(l-a.t)/a.h}:o=function(l){return(l-a.l)/a.w};return o};yn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};yn.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&t.xref!=="paper"&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(n.yaxis=e._fullLayout[t.yref+"axis"])),n.xsizemode=t.xsizemode,n.ysizemode=t.ysizemode,n.xanchor=t.xanchor,n.yanchor=t.yanchor,{options:t,plotinfo:n}};yn.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(n.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:n}};yn.getPathString=function(e,r){let t=r.type,n=el.getRefType(r.xref),a=el.getRefType(r.yref),o=e._fullLayout._size;var i,l,u,s,f,h,p,_,y,b,T,m;function k(A,d,D,E){var R;if(A)if(d==="domain")E?R=function(N){return A._offset+A._length*(1-N)}:R=function(N){return A._offset+A._length*N};else{let N=yn.shapePositionToRange(A);R=function(I){return A._offset+A.r2p(N(I,!0))},D==="path"&&A.type==="date"&&(R=yn.decodeDate(R))}else E?R=function(N){return o.t+o.h*(1-N)}:R=function(N){return o.l+o.w*N};return R}if(n==="array"?(p=[],i=r.xref.map(function(A){return el.getFromId(e,A)}),p=r.xref.map(function(A,d){return k(i[d],el.getRefType(A),t,!1)})):(i=el.getFromId(e,r.xref),p=k(i,n,t,!1)),a==="array"?(_=[],l=r.yref.map(function(A){return el.getFromId(e,A)}),_=r.yref.map(function(A,d){return k(l[d],el.getRefType(A),t,!0)})):(l=el.getFromId(e,r.yref),_=k(l,a,t,!0)),t==="path")return VJ(r,p,_);if(n==="array")u=Ui(i[0],r.x0shift),s=Ui(i[1],r.x1shift),y=p[0](r.x0)+u,b=p[1](r.x1)+s;else if(u=Ui(i,r.x0shift),s=Ui(i,r.x1shift),r.xsizemode==="pixel"){let A=p(r.xanchor);y=A+r.x0+u,b=A+r.x1+s}else y=p(r.x0)+u,b=p(r.x1)+s;if(a==="array")f=Ui(l[0],r.y0shift),h=Ui(l[1],r.y1shift),T=_[0](r.y0)+f,m=_[1](r.y1)+h;else if(f=Ui(l,r.y0shift),h=Ui(l,r.y1shift),r.ysizemode==="pixel"){let A=_(r.yanchor);T=A-r.y0+f,m=A-r.y1+h}else T=_(r.y0)+f,m=_(r.y1)+h;if(t==="line")return"M"+y+","+T+"L"+b+","+m;if(t==="rect")return"M"+y+","+T+"H"+b+"V"+m+"H"+y+"Z";var S=(y+b)/2,x=(T+m)/2,M=Math.abs(S-y),v=Math.abs(x-T),w="A"+M+","+v,g=S+M+","+x,c=S+","+(x-v);return"M"+g+w+" 0 1,1 "+c+w+" 0 0,1 "+g+"Z"};function VJ(e,r,t){let n=e.path,a=e.xsizemode,o=e.ysizemode,i=e.xanchor,l=e.yanchor,u=Array.isArray(e.xref),s=Array.isArray(e.yref);var f=0,h=0;return n.replace(Hi.segmentRE,function(p){var _=0,y=p.charAt(0),b=Hi.paramIsX[y],T=Hi.paramIsY[y],m=Hi.numParams[y];let k=b.drawn!==void 0,S=T.drawn!==void 0,x=u?r[f]:r,M=s?t[h]:t;var v=p.slice(1).replace(Hi.paramRE,function(w){return b[_]?a==="pixel"?w=x(i)+Number(w):w=x(w):T[_]&&(o==="pixel"?w=M(l)-Number(w):w=M(w)),_++,_>m&&(w="X"),w});return _>m&&(v=v.replace(/[\s,]*X.*/,""),F9.log("Ignoring extra params in segment "+p)),k&&f++,S&&h++,y+v})}yn.getPixelShift=Ui;function Ui(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var $2=be((Hhe,z9)=>{"use strict";var GJ=er(),Vi=Et(),I9=Bn(),N9=mt(),YJ=$o().readPaths,is=rl(),WJ=is.getPathString,jf=Qc(),XJ=En().FROM_TL;z9.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=Vi.getFromId(r,n.xref),u=Vi.getFromId(r,n.yref);let B=Array.isArray(n.xref),X=Array.isArray(n.yref);for(var s in jf){var f=typeof jf[s]=="function",h=!B||jf.simpleXVariables.includes(s),p=!X||jf.simpleYVariables.includes(s);if(f&&h&&p){var _=jf[s](n,l,u);_!==void 0&&(i[s]=_)}}}o=GJ.texttemplateStringForShapes({data:[i],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else o=n.label.text;var y={"data-index":t},b=n.label.font,T={"data-notex":1},m=a.append("g").attr(y).classed("shape-label",!0),k=m.append("text").attr(T).classed("shape-label-text",!0).text(o),S,x,M,v;if(n.path){var w=WJ(r,n),g=YJ(w,r);S=1/0,M=1/0,x=-1/0,v=-1/0;for(var c=0;cis.getDataToPixel(r,ne,H,!1,ue)(re),V=(re,H,ne,ue)=>is.getDataToPixel(r,ne,H,!0,ue)(re);if(n.xsizemode==="pixel"){let re=j(n.xanchor,void 0,$,Q),H=is.getPixelShift($,n.x0shift),ne=is.getPixelShift($,n.x1shift);S=re+n.x0+H,x=re+n.x1+ne}else S=j(n.x0,n.x0shift,$,Q),x=j(n.x1,n.x1shift,ee,oe);if(n.ysizemode==="pixel"){let re=V(n.yanchor,void 0,Y,Z),H=is.getPixelShift(Y,n.y0shift),ne=is.getPixelShift(Y,n.y1shift);M=re-n.y0+H,v=re-n.y1+ne}else M=V(n.y0,n.y0shift,Y,Z),v=V(n.y1,n.y1shift,q,se)}var N=n.label.textangle;N==="auto"&&(n.type==="line"?N=ZJ(S,M,x,v):N=0),k.call(function(B){return B.call(N9.font,b).attr({}),I9.convertToTspans(B,r),B});var I=N9.bBox(k.node()),F=JJ(S,M,x,v,n,N,I),L=F.textx,P=F.texty,O=F.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[O],y:P,x:L,transform:"rotate("+N+","+L+","+P+")"}).call(I9.positionText,L,P)}};function ZJ(e,r,t,n){var a,o;return o=Math.abs(t-e),t>=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function JJ(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,h=Math.PI/180*o,p=Math.sin(h),_=Math.cos(h),y=a.label.xanchor,b=a.label.yanchor,T,m,k,S;if(f==="line"){l==="start"?(T=e,m=r):l==="end"?(T=t,m=n):(T=(e+t)/2,m=(r+n)/2),y==="auto"&&(l==="start"?u==="auto"?t>e?y="left":te?y="right":te?y="right":te?y="left":t{"use strict";var KJ=er(),QJ=KJ.strTranslate,q9=oi(),U9=_u(),$J=U9.drawMode,H9=U9.selectMode,V9=Tr(),O9=Gr(),Cv=_v(),jJ=Cv.i000,eK=Cv.i090,rK=Cv.i180,tK=Cv.i270,nK=Uo(),G9=nK.clearOutlineControllers,ey=$o(),Sv=ey.pointsOnRectangle,j2=ey.pointsOnEllipse,aK=ey.writePaths,iK=kv().newShapes,oK=kv().createShapeObj,lK=Q2(),sK=$2();Y9.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(j2(r[0])||n.hasText)&&l({redrawing:!0})}function l(F){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=iK(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=lK(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&V9.call((F||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,h=$J(f),p=H9(f);(h||p)&&(o._fullLayout._outlining=!0),G9(o),t.attr("d",aK(r));var _,y,b,T,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=uK([],r);var k=s.append("g").attr("class","outline-controllers");A(k),I()}if(h&&n.hasText){var S=s.select(".label-temp"),x=oK(t,n,n.dragmode);sK(o,"label-temp",x,S)}function M(F){b=+F.srcElement.getAttribute("data-i"),T=+F.srcElement.getAttribute("data-j"),_[b][T].moveFn=v}function v(F,L){if(r.length){var P=m[b][T][1],O=m[b][T][2],B=r[b],X=B.length;if(Sv(B)){var $=F,ee=L;if(n.isActiveSelection){var Y=B9(B,T);Y[1]===B[T][1]?ee=0:$=0}for(var q=0;q1&&!(F.length===2&&F[1][0]==="Z")&&(T===0&&(F[0][0]="M"),r[b]=F,i(),l())}}function c(F,L){if(F===2){b=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var P=r[b];!Sv(P)&&!j2(P)&&g()}}function A(F){_=[];for(var L=0;L{"use strict";var cK=ot(),Q9=Tr(),ty=er(),os=Et(),hK=$o().readPaths,vK=Ev(),Dv=$2(),$9=Uo().clearOutlineControllers,ry=Gr(),Rv=mt(),dK=yt().arrayEditor,W9=oi(),X9=Bi(),Z9=Ko(),ls=$f(),ua=rl(),ny=ua.getPathString;rA.exports={draw:ay,drawOne:j9,eraseActiveShape:xK,drawLabel:Dv};function ay(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let i=a(o);i&&X9.hover(e,i,t.id)}}),n.addEventListener("click",o=>{if(!e._dragged&&e._fullLayout.clickanywhere){let i=a(o);i&&X9.click(e,i,t.id)}})}function eA(e,r,t){let n=t.xref,a=t.yref;if(Array.isArray(n)||Array.isArray(a)){let o="clip"+r._fullLayout._uid+"shape"+t._index,i=gK(r,n,a);ty.ensureSingleById(r._fullLayout._clips,"clipPath",o,function(l){l.append("rect")}).select("rect").attr(i),Rv.setClipUrl(e,o,r)}else{let o=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Rv.setClipUrl(e,o?"clip"+r._fullLayout._uid+o:null,r)}}function gK(e,r,t){let n=e._fullLayout._size;function a(l,u){let s=(Array.isArray(l)?l:[l]).map(p=>os.getFromId(e,p)).filter(Boolean);if(!s.length)return u?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=s.map(function(p){return p._offset}),h=s.map(function(p){return p._offset+p._length});return[Math.min(...f),Math.max(...h)]}let o=a(r,!1),i=a(t,!0);return{x:o[0],y:i[0],width:o[1]-o[0],height:i[1]-i[0]}}function yK(e,r,t,n,a,o){var i=10,l=10,u=t.xsizemode==="pixel",s=t.ysizemode==="pixel",f=t.type==="line",h=t.type==="path",p=o.modifyItem,_,y,b,T,m,k,S,x,M,v,w,g,c,A,d,D=cK.select(r.node().parentNode),E=os.getFromId(e,t.xref),R=os.getRefType(t.xref),N=os.getFromId(e,t.yref),I=os.getRefType(t.yref),F=t.x0shift,L=t.x1shift,P=t.y0shift,O=t.y1shift,B=function(Me,ge){var Ee=ua.getDataToPixel(e,E,ge,!1,R);return Ee(Me)},X=function(Me,ge){var Ee=ua.getDataToPixel(e,N,ge,!0,I);return Ee(Me)},$=ua.getPixelToData(e,E,!1,R),ee=ua.getPixelToData(e,N,!0,I),Y=oe(),q={element:Y.node(),gd:e,prepFn:j,doneFn:V,clickFn:re},Q;W9.init(q),Y.node().onmousemove=se;function oe(){return f?Z():r}function Z(){var Me=10,ge=Math.max(t.line.width,Me),Ee=a.append("g").attr("data-index",n).attr("drag-helper",!0);Ee.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ge,"stroke-opacity":"0"});var Ce={"fill-opacity":"0"},Fe=Math.max(ge/2,Me);return Ee.append("circle").attr({"data-line-point":"start-point",cx:u?B(t.xanchor)+t.x0:B(t.x0,F),cy:s?X(t.yanchor)-t.y0:X(t.y0,P),r:Fe}).style(Ce).classed("cursor-grab",!0),Ee.append("circle").attr({"data-line-point":"end-point",cx:u?B(t.xanchor)+t.x1:B(t.x1,L),cy:s?X(t.yanchor)-t.y1:X(t.y1,O),r:Fe}).style(Ce).classed("cursor-grab",!0),Ee}function se(Me){if(Lv(e)){Q=null;return}if(f)Me.target.tagName==="path"?Q="move":Q=Me.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ge=q.element.getBoundingClientRect(),Ee=ge.right-ge.left,Ce=ge.bottom-ge.top,Fe=Me.clientX-ge.left,ie=Me.clientY-ge.top,J=!h&&Ee>i&&Ce>l&&!Me.shiftKey?W9.getCursor(Fe/Ee,1-ie/Ce):"move";Z9(r,J),Q=J.split("-")[0]}}function j(Me){Lv(e)||(u&&(m=B(t.xanchor)),s&&(k=X(t.yanchor)),t.type==="path"?d=t.path:(_=u?t.x0:B(t.x0),y=s?t.y0:X(t.y0),b=u?t.x1:B(t.x1),T=s?t.y1:X(t.y1)),_T?(S=y,w="y0",x=T,g="y1"):(S=T,w="y1",x=y,g="y0"),se(Me),ue(a,t),ke(r,t,e),q.moveFn=Q==="move"?H:ne,q.altKey=Me.altKey)}function V(){Lv(e)||(Z9(r),ye(a),eA(r,e,t),Q9.call("_guiRelayout",e,o.getUpdateObj()))}function re(){Lv(e)||ye(a)}function H(Me,ge){if(t.type==="path"){var Ee=function(ie){return ie},Ce=Ee,Fe=Ee;u?p("xanchor",t.xanchor=$(m+Me)):(Ce=function(J){return $(B(J)+Me)},E&&E.type==="date"&&(Ce=ua.encodeDate(Ce))),s?p("yanchor",t.yanchor=ee(k+ge)):(Fe=function(J){return ee(X(J)+ge)},N&&N.type==="date"&&(Fe=ua.encodeDate(Fe))),p("path",t.path=J9(d,Ce,Fe))}else u?p("xanchor",t.xanchor=$(m+Me)):(p("x0",t.x0=$(_+Me)),p("x1",t.x1=$(b+Me))),s?p("yanchor",t.yanchor=ee(k+ge)):(p("y0",t.y0=ee(y+ge)),p("y1",t.y1=ee(T+ge)));r.attr("d",ny(e,t)),ue(a,t),Dv(e,n,t,D)}function ne(Me,ge){if(h){var Ee=function(De){return De},Ce=Ee,Fe=Ee;u?p("xanchor",t.xanchor=$(m+Me)):(Ce=function(We){return $(B(We)+Me)},E&&E.type==="date"&&(Ce=ua.encodeDate(Ce))),s?p("yanchor",t.yanchor=ee(k+ge)):(Fe=function(We){return ee(X(We)+ge)},N&&N.type==="date"&&(Fe=ua.encodeDate(Fe))),p("path",t.path=J9(d,Ce,Fe))}else if(f){if(Q==="resize-over-start-point"){var ie=_+Me,J=s?y-ge:y+ge;p("x0",t.x0=u?ie:$(ie)),p("y0",t.y0=s?J:ee(J))}else if(Q==="resize-over-end-point"){var te=b+Me,ae=s?T-ge:T+ge;p("x1",t.x1=u?te:$(te)),p("y1",t.y1=s?ae:ee(ae))}}else{var ce=function(De){return Q.indexOf(De)!==-1},pe=ce("n"),ve=ce("s"),xe=ce("w"),me=ce("e"),de=pe?S+ge:S,_e=ve?x+ge:x,Ae=xe?M+Me:M,Ie=me?v+Me:v;s&&(pe&&(de=S-ge),ve&&(_e=x-ge)),(!s&&_e-de>l||s&&de-_e>l)&&(p(w,t[w]=s?de:ee(de)),p(g,t[g]=s?_e:ee(_e))),Ie-Ae>i&&(p(c,t[c]=u?Ae:$(Ae)),p(A,t[A]=u?Ie:$(Ie)))}r.attr("d",ny(e,t)),ue(a,t),Dv(e,n,t,D)}function ue(Me,ge){(u||s)&&Ee();function Ee(){var Ce=ge.type!=="path",Fe=Me.selectAll(".visual-cue").data([0]),ie=1;Fe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":ie}).classed("visual-cue",!0);var J=B(u?ge.xanchor:ty.midRange(Ce?[ge.x0,ge.x1]:ua.extractPathCoords(ge.path,ls.paramIsX))),te=X(s?ge.yanchor:ty.midRange(Ce?[ge.y0,ge.y1]:ua.extractPathCoords(ge.path,ls.paramIsY)));if(J=ua.roundPositionForSharpStrokeRendering(J,ie),te=ua.roundPositionForSharpStrokeRendering(te,ie),u&&s){var ae="M"+(J-1-ie)+","+(te-1-ie)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Fe.attr("d",ae)}else if(u){var ce="M"+(J-1-ie)+","+(te-9-ie)+"v18 h2 v-18 Z";Fe.attr("d",ce)}else{var pe="M"+(J-9-ie)+","+(te-1-ie)+"h18 v2 h-18 Z";Fe.attr("d",pe)}}}function ye(Me){Me.selectAll(".visual-cue").remove()}function ke(Me,ge,Ee){var Ce=ge.xref,Fe=ge.yref,ie=os.getFromId(Ee,Ce),J=os.getFromId(Ee,Fe),te="";Ce!=="paper"&&!ie.autorange&&(te+=Ce),Fe!=="paper"&&!J.autorange&&(te+=Fe),Rv.setClipUrl(Me,te?"clip"+Ee._fullLayout._uid+te:null,Ee)}}function J9(e,r,t){return e.replace(ls.segmentRE,function(n){var a=0,o=n.charAt(0),i=ls.paramIsX[o],l=ls.paramIsY[o],u=ls.numParams[o],s=n.slice(1).replace(ls.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function mK(e,r){if(Pv(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){K9(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=K9,ay(e)}}}function K9(e){if(Pv(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&($9(e),delete e._fullLayout._activeShapeIndex,ay(e))}}function xK(e){if(Pv(e)){$9(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Ia=Tr(),tA=fn(),nA=nn(),rt=xv(),bK=Fv().eraseActiveShape,Iv=er(),Wr=Iv._,tt=fA.exports={};tt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Wr(e,"Download plot as a PNG"):Wr(e,"Download plot")},icon:rt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Iv.notifier(Wr(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Ia.call("downloadImage",e,t).then(function(n){Iv.notifier(Wr(e,"Snapshot succeeded")+" - "+n,"long",e)}).catch(function(){Iv.notifier(Wr(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};tt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Wr(e,"Edit in Chart Studio")},icon:rt.disk,click:function(e){tA.sendDataToCloud(e)}};tt.editInChartStudio={name:"editInChartStudio",title:function(e){return Wr(e,"Edit in Chart Studio")},icon:rt.pencil,click:function(e){tA.sendDataToCloud(e)}};tt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Wr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:rt.zoombox,click:Vn};tt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Wr(e,"Pan")},attr:"dragmode",val:"pan",icon:rt.pan,click:Vn};tt.select2d={name:"select2d",_cat:"select",title:function(e){return Wr(e,"Box Select")},attr:"dragmode",val:"select",icon:rt.selectbox,click:Vn};tt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Wr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:rt.lasso,click:Vn};tt.drawclosedpath={name:"drawclosedpath",title:function(e){return Wr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:rt.drawclosedpath,click:Vn};tt.drawopenpath={name:"drawopenpath",title:function(e){return Wr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:rt.drawopenpath,click:Vn};tt.drawline={name:"drawline",title:function(e){return Wr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:rt.drawline,click:Vn};tt.drawrect={name:"drawrect",title:function(e){return Wr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:rt.drawrect,click:Vn};tt.drawcircle={name:"drawcircle",title:function(e){return Wr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:rt.drawcircle,click:Vn};tt.eraseshape={name:"eraseshape",title:function(e){return Wr(e,"Erase active shape")},icon:rt.eraseshape,click:bK};tt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Wr(e,"Zoom in")},attr:"zoom",val:"in",icon:rt.zoom_plus,click:Vn};tt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Wr(e,"Zoom out")},attr:"zoom",val:"out",icon:rt.zoom_minus,click:Vn};tt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Wr(e,"Autoscale")},attr:"zoom",val:"auto",icon:rt.autoscale,click:Vn};tt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Wr(e,"Reset axes")},attr:"zoom",val:"reset",icon:rt.home,click:Vn};tt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Wr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:rt.tooltip_basic,gravity:"ne",click:Vn};tt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Wr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:rt.tooltip_compare,gravity:"ne",click:Vn};function Vn(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=nA.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var h=a==="in"?.5:2,p=(1+h)/2,_=(1-h)/2,y,b;for(f=0;f{"use strict";var cA=ly(),MK=Object.keys(cA),hA=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],vA=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(hA),Au=[],TK=function(e){if(vA.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Au.indexOf(r)===-1&&Au.push(r),Au.indexOf(t)===-1&&Au.push(t)}};MK.forEach(function(e){TK(cA[e])});Au.sort();dA.exports={DRAW_MODES:hA,backButtons:vA,foreButtons:Au}});var uy=be((Zhe,pA)=>{"use strict";var Xhe=sy();pA.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var yA=be((Jhe,gA)=>{"use strict";var AK=er(),e0=Gr(),kK=yt(),SK=uy();gA.exports=function(r,t){var n=r.modebar||{},a=kK.newContainer(t,"modebar");function o(l,u){return AK.coerce(n,a,SK,l,u)}o("orientation"),o("bgcolor",e0.addOpacity(t.paper_bgcolor,.5));var i=e0.contrast(e0.rgb(t.modebar.bgcolor));o("color",e0.addOpacity(i,.3)),o("activecolor",e0.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var _A=be((Khe,bA)=>{"use strict";var fy=ot(),CK=nt(),zv=er(),mA=xv(),EK=Lc().version,LK=new DOMParser;function xA(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Gi=xA.prototype;Gi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(h){h.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),zv.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};Gi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};Gi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Gi.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&fy.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||mA.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Gi.createIcon=function(e){var r=CK(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=LK.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Gi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=fy.select(n),u=function(h,p){var _=r.modebar,y=h.querySelector(".icon path");y&&(p||h.matches(":hover")?y.style.fill=_.activecolor:y.style.fill=_.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:zv.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};Gi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var PK=nn(),wA=sa(),cy=Tr(),FK=fo().isUnifiedHover,IK=_A(),qv=ly(),NK=sy().DRAW_MODES,zK=er().extendDeep;MA.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=VK(o):!n.displayModeBar&&n.watermark?i=[]:i=qK(r),a?a.update(r,i):t._modeBar=IK(r,i)};function qK(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,P){if(typeof P=="string"){if(P.toLowerCase()===L.toLowerCase())return!0}else{var O=P.name,B=P._cat||P.name;if(O===L||B===L.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(L){for(var P=0;P1?(A=["toggleHover"],d=["resetViews"]):h?(c=["zoomInGeo","zoomOutGeo"],A=["hoverClosestGeo"],d=["resetGeo"]):f?(A=["hoverClosest3d"],d=["resetCameraDefault3d","resetCameraLastSave3d"]):b?(c=["zoomInMapbox","zoomOutMapbox"],A=["toggleHover"],d=["resetViewMapbox"]):T?(c=["zoomInMap","zoomOutMap"],A=["toggleHover"],d=["resetViewMap"]):p?A=["hoverClosestPie"]:S?(A=["hoverClosestCartesian","hoverCompareCartesian"],d=["resetViewSankey"]):A=["toggleHover"],s&&A.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(UK(t)||M)&&(A=[]),s&&!x&&(c=["zoomIn2d","zoomOut2d","autoScale2d"],d[0]!=="resetViews"&&(d=["resetScale2d"])),f?D=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||y?D=["zoom2d","pan2d"]:b||T||h?D=["pan2d"]:m&&(D=["zoom2d"]),BK(t)&&D.push("select2d","lasso2d");var E=[],R=function(L){E.indexOf(L)===-1&&A.indexOf(L)!==-1&&E.push(L)};if(Array.isArray(l)){for(var N=[],I=0;I{"use strict";AA.exports={moduleType:"component",name:"modebar",layoutAttributes:uy(),supplyLayoutDefaults:yA(),manage:TA()}});var vy=be((jhe,kA)=>{"use strict";var GK=En().FROM_BL;kA.exports=function(r,t,n){n===void 0&&(n=GK[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var t0=be(r0=>{"use strict";var ss=er(),dy=fu(),si=nn().id2name,YK=Da(),SA=vy(),WK=Gh(),XK=ln().ALMOST_EQUAL,ZK=En().FROM_BL;r0.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,h,p,_,y;for(l=0;lo?t.slice(o):n.slice(a))+i}function KK(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;iXK*y&&!k)){for(o=0;oD&&OA&&(A=O);var X=(A-c)/(2*d);h/=X,c=u.l2r(c),A=u.l2r(A),u.range=u._input.range=v{"use strict";var Bv=ot(),Gn=Tr(),ma=fn(),Na=er(),yy=Bn(),my=mv(),n0=Gr(),ku=mt(),DA=zf(),NA=hy(),a0=Et(),po=En(),zA=t0(),QK=zA.enforce,$K=zA.clean,RA=fu().doAutoRange,qA="start",jK="middle",OA="end",eQ=un().zindexSeparator;vn.layoutStyles=function(e){return Na.syncOrAsync([ma.doAutoMargin,tQ],e)};function rQ(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function tQ(e){var r=e._fullLayout,t=r._size,n=t.p,a=a0.list(e,"",!0),o,i,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(ku.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),vn.drawMainTitle(e),NA.manage(e),!r._has("cartesian"))return ma.previousPromises(e);function h(j,V,re){var H=j._lw/2;if(j._id.charAt(0)==="x"){if(V){if(re==="top")return V._offset-n-H}else return t.t+t.h*(1-(j.position||0))+H%1;return V._offset+V._length+n+H}if(V){if(re==="right")return V._offset+V._length+n+H}else return t.l+t.w*(j.position||0)+H%1;return V._offset-n-H}for(o=0;o0){oQ(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:IA(r.yanchor)}).call(yy.positionText,i,o);var f=(r.text.match(yy.BR_TAG_ALL)||[]).length;if(f){var h=po.LINE_SPACING*f+po.MID_SHIFT;r.y===0&&(h=-h),l.selectAll(".line").each(function(){var T=+this.getAttribute("dy").slice(0,-2)-h+"em";this.setAttribute("dy",T)})}var p=Bv.select(e).selectAll(".gtitle-subtitle");if(p.node()){var _=l.node().getBBox(),y=_.y+_.height,b=y+DA.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:b,"text-anchor":n,dy:IA(r.yanchor)}).call(yy.positionText,i,b)}}}};function nQ(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=Na.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return Na.isTopAnchor(r)&&t==="t"||Na.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=aQ(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function oQ(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&nQ(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),ma.allowAutoMargin(e,a),ma.autoMargin(e,a,l)}function lQ(e,r){var t=e.title,n=e._size,a=0;switch(r===qA?a=t.pad.l:r===OA&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function sQ(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===po.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function IA(e){return e==="top"?po.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":po.MID_SHIFT+"em"}function uQ(e){var r=e.title,t=jK;return Na.isRightAnchor(r)?t=OA:Na.isLeftAnchor(r)&&(t=qA),t}function fQ(e){var r=e.title,t="0em";return Na.isTopAnchor(r)?t=po.CAP_SHIFT+"em":Na.isMiddleAnchor(r)&&(t=po.MID_SHIFT+"em"),t}vn.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var cQ=$o().readPaths,hQ=Ev(),BA=Uo().clearOutlineControllers,xy=Gr(),UA=mt(),vQ=yt().arrayEditor,HA=rl(),dQ=HA.getPathString;GA.exports={draw:Hv,drawOne:VA,activateLastSelection:yQ};function Hv(e){var r=e._fullLayout;BA(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;T--){var m=i.append("path").attr(u).style("opacity",T?.1:s).call(xy.stroke,h).call(xy.fill,f).call(UA.dashLine,T?"solid":_,T?4+p:p);if(pQ(m,e,n),y){var k=vQ(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=cQ(l,e);hQ(x,m,S)}else m.style("pointer-events",T?"all":"none");b[T]=m}var M=b[0],v=b[1];v.node().addEventListener("click",function(){return gQ(e,M)})}}function pQ(e,r,t){var n=t.xref+t.yref;UA.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function gQ(e,r){if(Vv(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){by(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=by,Hv(e)}}}function yQ(e){if(Vv(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=by,Hv(e)}}function by(e){if(Vv(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(BA(e),delete e._fullLayout._activeSelectionIndex,Hv(e))}}});var WA=be((nve,YA)=>{function mQ(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}YA.exports=mQ});var ZA=be((ave,XA)=>{function xQ(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-o>e&&(i-f)*(o-h)/(l-h)+f-a>e&&(u=!u),i=f,l=h}return u}};return r}XA.exports=xQ});var KA=be((ive,JA)=>{var bQ={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};JA.exports=bQ});var $A=be((ove,QA)=>{var i0=KA();function _Q(e,r,t){function n(y,b){return{id:t?t.segmentId():-1,start:y,end:b,myFill:{above:null,below:null},otherFill:null}}function a(y,b,T){return{id:t?t.segmentId():-1,start:y,end:b,myFill:{above:T.myFill.above,below:T.myFill.below},otherFill:null}}var o=i0.create();function i(y,b,T,m,k,S){var x=r.pointsCompare(b,k);return x!==0?x:r.pointsSame(T,S)?0:y!==m?y?1:-1:r.pointAboveOrOnLine(T,m?k:S,m?S:k)?1:-1}function l(y,b){o.insertBefore(y,function(T){var m=i(y.isStart,y.pt,b,T.isStart,T.pt,T.other.pt);return m<0})}function u(y,b){var T=i0.node({isStart:!0,pt:y.start,seg:y,primary:b,other:null,status:null});return l(T,y.end),T}function s(y,b,T){var m=i0.node({isStart:!1,pt:b.end,seg:b,primary:T,other:y,status:null});y.other=m,l(m,y.pt)}function f(y,b){var T=u(y,b);return s(T,y,b),T}function h(y,b){t&&t.segmentChop(y.seg,b),y.other.remove(),y.seg.end=b,y.other.pt=b,l(y.other,y.pt)}function p(y,b){var T=a(b,y.seg.end,y.seg);return h(y,b),f(T,y.primary)}function _(y,b){var T=i0.create();function m(N,I){var F=N.seg.start,L=N.seg.end,P=I.seg.start,O=I.seg.end;return r.pointsCollinear(F,P,O)?r.pointsCollinear(L,P,O)||r.pointAboveOrOnLine(L,P,O)?1:-1:r.pointAboveOrOnLine(F,P,O)?1:-1}function k(N){return T.findTransition(function(I){var F=m(N,I.ev);return F>0})}function S(N,I){var F=N.seg,L=I.seg,P=F.start,O=F.end,B=L.start,X=L.end;t&&t.checkIntersection(F,L);var $=r.linesIntersect(P,O,B,X);if($===!1){if(!r.pointsCollinear(P,O,B)||r.pointsSame(P,X)||r.pointsSame(O,B))return!1;var ee=r.pointsSame(P,B),Y=r.pointsSame(O,X);if(ee&&Y)return I;var q=!ee&&r.pointBetween(P,B,X),Q=!Y&&r.pointBetween(O,B,X);if(ee)return Q?p(I,O):p(N,X),I;q&&(Y||(Q?p(I,O):p(N,X)),p(I,P))}else $.alongA===0&&($.alongB===-1?p(N,B):$.alongB===0?p(N,$.pt):$.alongB===1&&p(N,X)),$.alongB===0&&($.alongA===-1?p(I,P):$.alongA===0?p(I,$.pt):$.alongA===1&&p(I,O));return!1}for(var x=[];!o.isEmpty();){var M=o.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let N=function(){if(w){var I=S(M,w);if(I)return I}return g?S(M,g):!1};var R=N;t&&t.segmentNew(M.seg,M.primary);var v=k(M),w=v.before?v.before.ev:null,g=v.after?v.after.ev:null;t&&t.tempStatus(M.seg,w?w.seg:!1,g?g.seg:!1);var c=N();if(c){if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,A&&(c.seg.myFill.above=!c.seg.myFill.above)}else c.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(c.seg),M.other.remove(),M.remove()}if(o.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,g?M.seg.myFill.below=g.seg.myFill.above:M.seg.myFill.below=y,A?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var d;g?M.primary===g.primary?d=g.seg.otherFill.above:d=g.seg.myFill.above:d=M.primary?b:y,M.seg.otherFill={above:d,below:d}}t&&t.status(M.seg,w?w.seg:!1,g?g.seg:!1),M.other.status=v.insert(i0.node({ev:M}))}else{var D=M.status;if(D===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(T.exists(D.prev)&&T.exists(D.next)&&S(D.prev.ev,D.next.ev),t&&t.statusRemove(D.ev.seg),D.remove(),!M.primary){var E=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=E}x.push(M.seg)}o.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(y){for(var b,T=y[y.length-1],m=0;m{function wQ(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function h(R,N,I){return f.index=R,f.matches_head=N,f.matches_pt1=I,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p{function o0(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var MQ={union:function(e,r){return o0(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return o0(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return o0(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return o0(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return o0(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};rk.exports=MQ});var ak=be((uve,nk)=>{var TQ={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u{var AQ=WA(),kQ=ZA(),ik=$A(),SQ=ek(),l0=tk(),ok=ak(),za=!1,s0=kQ(),fa;fa={buildLog:function(e){return e===!0?za=AQ():e===!1&&(za=!1),za===!1?!1:za.list},epsilon:function(e){return s0.epsilon(e)},segments:function(e){var r=ik(!0,s0,za);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=ik(!1,s0,za);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:l0.union(e.combined,za),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:l0.intersect(e.combined,za),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:l0.difference(e.combined,za),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:l0.differenceRev(e.combined,za),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:l0.xor(e.combined,za),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:SQ(e.segments,s0,za),inverted:e.inverted}},polygonFromGeoJSON:function(e){return ok.toPolygon(fa,e)},polygonToGeoJSON:function(e){return ok.fromPolygon(fa,s0,e)},union:function(e,r){return u0(e,r,fa.selectUnion)},intersect:function(e,r){return u0(e,r,fa.selectIntersect)},difference:function(e,r){return u0(e,r,fa.selectDifference)},differenceRev:function(e,r){return u0(e,r,fa.selectDifferenceRev)},xor:function(e,r){return u0(e,r,fa.selectXor)}};function u0(e,r,t){var n=fa.segments(e),a=fa.segments(r),o=fa.combine(n,a),i=t(o);return fa.polygon(i)}typeof window=="object"&&(window.PolyBool=fa);lk.exports=fa});var fk=be((cve,uk)=>{uk.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;si!=y>i&&o<(_-h)*(i-p)/(y-p)+h;b&&(l=!l)}return l}});var My=be((hve,ck)=>{"use strict";var wy=Zc().dot,Gv=ln().BADNUM,Yv=ck.exports={};Yv.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||m===Gv||mi||b&&s(y))}function h(y,b){var T=y[0],m=y[1];if(T===Gv||Ta||m===Gv||mi)return!1;var k=t.length,S=t[0][0],x=t[0][1],M=0,v,w,g,c,A;for(v=1;vMath.max(w,S)||m>Math.max(g,x)))if(ml||Math.abs(wy(h,s))>a)return!0;return!1};Yv.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var h=f+1;h1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var vk=be((vve,hk)=>{"use strict";hk.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Ik=be((dve,Fk)=>{"use strict";var dk=sk(),CQ=fk(),h0=Tr(),EQ=mt().dashStyle,f0=Gr(),LQ=Bi(),DQ=fo().makeEventData,y0=_u(),RQ=y0.freeMode,PQ=y0.rectMode,v0=y0.drawMode,Sy=y0.openMode,Cy=y0.selectMode,pk=rl(),gk=$f(),_k=Ev(),wk=Uo().clearOutline,Mk=$o(),Ty=Mk.handleEllipse,FQ=Mk.readPaths,IQ=kv().newShapes,NQ=Q2(),zQ=_y().activateLastSelection,Xv=er(),qQ=Xv.sorterAsc,Tk=My(),c0=lh(),qa=nn().getFromId,OQ=mv(),BQ=Uv().redrawReglTraces,Zv=vk(),Yi=Zv.MINSELECT,UQ=Tk.filter,Ey=Tk.tester,Ly=wv(),yk=Ly.p2r,HQ=Ly.axValue,VQ=Ly.getTransform;function Dy(e){return e.subplot!==void 0}function GQ(e,r,t,n,a){var o=!Dy(n),i=RQ(a),l=PQ(a),u=Sy(a),s=v0(a),f=Cy(a),h=a==="drawline",p=a==="drawcircle",_=h||p,y=n.gd,b=y._fullLayout,T=f&&b.newselection.mode==="immediate"&&o,m=b._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=VQ(S),M=r-k.left,v=t-k.top;b._calcInverseTransform(y);var w=Xv.apply3DTransform(b._invTransform)(M,v);M=w[0],v=w[1];var g=b._invScaleX,c=b._invScaleY,A=M,d=v,D="M"+M+","+v,E=n.xaxes[0],R=n.yaxes[0],N=E._length,I=R._length,F=e.altKey&&!(v0(a)&&u),L,P,O,B,X,$,ee;kk(e,y,n),i&&(L=UQ([[M,v]],Zv.BENDPX));var Y=m.selectAll("path.select-outline-"+S.id).data([1]),q=s?b.newshape:b.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var Q=s&&!u?q.fillcolor:"rgba(0,0,0,0)",oe=q.line.color||(o?f0.contrast(y._fullLayout.plot_bgcolor):"#7f7f7f");Y.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":EQ(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(f0.stroke,oe).call(f0.fill,Q).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",D+"Z");var Z=m.append("path").attr("class","zoombox-corners").style({fill:f0.background,stroke:f0.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var se=m.select(".label-temp");se.empty()&&(se=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var j=b._uid+Zv.SELECTID,V=[],re=Jv(y,n.xaxes,n.yaxes,n.subplot);T&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var ne=E._id,ue=R._id;Dk(y,ne,ue,re);for(var ye=(y.layout||{}).selections||[],ke=[],Me=!1,ge=0;ge=0){y._fullLayout._deactivateShape(y);return}if(!s){var ye=b.clickmode;c0.done(j).then(function(){if(c0.clear(j),ne===2){for(Y.remove(),X=0;X-1&&Ak(ue,y,n.xaxes,n.yaxes,n.subplot,n,Y),ye==="event"&&g0(y,void 0);LQ.click(y,ue,S.id)}).catch(Xv.error)}},n.doneFn=function(){Z.remove(),c0.done(j).then(function(){c0.clear(j),!T&&B&&n.selectionDefs&&(B.subtract=F,n.selectionDefs.push(B),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(T||s)&&d0(n,T),n.doneFnCompleted&&n.doneFnCompleted(V),f&&g0(y,ee)}).catch(Xv.error)}}function Ak(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,h=[],p,_,y,b,T,m,k,S,x,M;if(JQ(l)){kk(e,r,o),p=Jv(r,t,n,a);var v=KQ(l,p),w=v.pointNumbers.length>0;if(w?QQ(p,v):$Q(p)&&(k=xk(v))){for(i&&i.remove(),M=0;M=0}function ZQ(e){return e._fullLayout._activeSelectionIndex>=0}function d0(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;XQ(a)&&a._fullLayout._deactivateShape(a),ZQ(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=v0(t),u=Cy(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=IQ(s,e)),f&&h0.call("_guiRelayout",a,{shapes:f});var h;u&&!Dy(e)&&(h=NQ(s,e)),h&&(a._fullLayout._noEmitSelectedAtStart=!0,h0.call("_guiRelayout",a,{selections:h}).then(function(){r&&zQ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function mk(e){return e._id}function Jv(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(mk),i=t.map(mk),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function QQ(e,r){var t=[],n,a,o,i;for(i=0;i0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function p0(e,r,t){var n;for(n=0;n-1&&r;if(!i&&r){var ne=bk(e,!0);if(ne.length){var ue=ne[0].xref,ye=ne[0].yref;if(ue&&ye){var ke=Rk(ne),Me=Pk([qa(e,ue,"x"),qa(e,ye,"y")]);Me(V,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:H&&g0(e,V),p._reselect=!1}if(!i&&p._deselect){var ge=p._deselect;l=ge.xref,u=ge.yref,r$(l,u,f)||Dk(e,l,u,n),H&&(V.points.length?g0(e,V):Fy(e)),p._deselect=!1}return{eventData:V,selectionTesters:t}}function e$(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Nk.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var m0=be((gve,zk)=>{"use strict";zk.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var Su=be((mve,Bk)=>{"use strict";var qk=Iy(),Ok=Sn(),Kv=un(),o$=yt().templatedArray,yve=m0();Bk.exports=o$("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Ok({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:qk.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:qk.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Kv.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Kv.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Kv.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Kv.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Ok({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Qv=be((xve,Uk)=>{"use strict";Uk.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Vk=be((bve,Hk)=>{"use strict";Hk.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var us=be((_ve,Qk)=>{"use strict";var Gk=uo().axisHoverFormat,{hovertemplateAttrs:l$,texttemplateAttrs:s$,templatefallbackAttrs:Yk}=ja(),Wk=ni(),u$=Sn(),Xk=Ro().dash,f$=Ro().pattern,c$=mt(),h$=Qv(),x0=Tt().extendFlat,v$=Vk();function Zk(e){return{valType:"any",dflt:0,editType:"calc"}}function Jk(e){return{valType:"any",editType:"calc"}}function Kk(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Qk.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Zk("x"),yperiod:Zk("y"),xperiod0:Jk("x0"),yperiod0:Jk("y0"),xperiodalignment:Kk("x"),yperiodalignment:Kk("y"),xhoverformat:Gk("x"),yhoverformat:Gk("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:s$(),texttemplatefallback:Yk({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:l$({},{keys:h$.eventDataKeys}),hovertemplatefallback:Yk(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:x0({},Xk,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:v$(!0),fillgradient:x0({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:f$,marker:x0({symbol:{valType:"enumerated",values:c$.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:x0({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:x0({},Xk,{arrayOk:!0}),editType:"calc"},Wk("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Wk("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:u$({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Ny=be((Mve,eS)=>{"use strict";var $k=Su(),jk=us().line,d$=Ro().dash,$v=Tt().extendFlat,p$=On().overrideAll,g$=yt().templatedArray,wve=m0();eS.exports=p$(g$("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:$v({},$k.xref,{}),yref:$v({},$k.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:jk.color,width:$v({},jk.width,{min:1,dflt:1}),dash:$v({},d$,{dflt:"dot"})}}),"arraydraw","from-root")});var aS=be((Tve,nS)=>{"use strict";var rS=er(),jv=Et(),y$=ai(),m$=Ny(),tS=rl();nS.exports=function(r,t){y$(r,t,{name:"selections",handleItemDefaults:x$});for(var n=t.selections,a=0;a{"use strict";iS.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var b0=be((kve,uS)=>{"use strict";var b$=Tr(),lS=er(),sS=nn();uS.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=b$.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,h=u.cartesian,p=a._has("cartesian"),_=0;_{"use strict";var fS=_y(),_0=Ik();cS.exports={moduleType:"component",name:"selections",layoutAttributes:Ny(),supplyLayoutDefaults:aS(),supplyDrawNewSelectionDefaults:oS(),includeBasePlot:b0()("selections"),draw:fS.draw,drawOne:fS.drawOne,reselect:_0.reselect,prepSelect:_0.prepSelect,clearOutline:_0.clearOutline,clearSelectionsCache:_0.clearSelectionsCache,selectOnClick:_0.selectOnClick}});var RS=be((Cve,DS)=>{"use strict";var Uy=ot(),Oa=er(),hS=Oa.numberFormat,_$=Sa(),w$=ov(),e1=Tr(),_S=Oa.strTranslate,M$=Bn(),vS=Gr(),nl=mt(),T$=Bi(),dS=Et(),A$=Ko(),k$=oi(),wS=_u(),r1=wS.selectingOrDrawing,S$=wS.freeMode,C$=En().FROM_TL,E$=mv(),L$=Uv().redrawReglTraces,D$=fn(),qy=nn().getFromId,R$=Cu().prepSelect,P$=Cu().clearOutline,F$=Cu().selectOnClick,zy=vy(),Hy=un(),pS=Hy.MINDRAG,Kn=Hy.MINZOOM,gS=!0;function I$(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,h,p,_,y,b,T,m,k,S,x,M,v,w,g,c,A,d,D,E,R,N,I,F;t+=r.yaxis._shift;function L(){if(h=r.xaxis,p=r.yaxis,S=h._length,x=p._length,m=h._offset,k=p._offset,_={},_[h._id]=h,y={},y[p._id]=p,i&&l)for(var me=r.overlays,de=0;de=0){_e._fullLayout._deactivateShape(_e);return}var Ae=_e._fullLayout.clickmode;if(By(_e),me===2&&!f&&te(),s)Ae.indexOf("select")>-1&&F$(de,_e,b,T,r.id,B),Ae.indexOf("event")>-1&&T$.click(_e,de,r.id);else if(me===1&&f){var Ie=i?p:h,De=i==="s"||l==="w"?0:1,We=Ie._name+".range["+De+"]",Oe=N$(Ie,De),ze="left",Be="middle";if(Ie.fixedrange)return;i?(Be=i==="n"?"top":"bottom",Ie.side==="right"&&(ze="right")):l==="e"&&(ze="right"),_e._context.showAxisRangeEntryBoxes&&Uy.select(O).call(M$.makeEditable,{gd:_e,immediate:!0,background:_e._fullLayout.paper_bgcolor,text:String(Oe),fill:Ie.tickfont?Ie.tickfont.color:"#444",horizontalAlign:ze,verticalAlign:Be}).on("edit",function(Se){var Le=Ie.d2r(Se);Le!==void 0&&e1.call("_guiRelayout",_e,We,Le)})}}k$.init(B);var ee,Y,q,Q,oe,Z,se,j,V,re;function H(me,de,_e){var Ae=O.getBoundingClientRect();ee=de-Ae.left,Y=_e-Ae.top,e._fullLayout._calcInverseTransform(e);var Ie=Oa.apply3DTransform(e._fullLayout._invTransform)(ee,Y);ee=Ie[0],Y=Ie[1],q={l:ee,r:ee,w:0,t:Y,b:Y,h:0},Q=e._hmpixcount?e._hmlumcount/e._hmpixcount:_$(e._fullLayout.plot_bgcolor).getLuminance(),oe="M0,0H"+S+"V"+x+"H0V0",Z=!1,se="xy",re=!1,j=AS(u,Q,m,k,oe),V=kS(u,m,k)}function ne(me,de){if(e._transitioningWithDuration)return!1;var _e=Math.max(0,Math.min(S,I*me+ee)),Ae=Math.max(0,Math.min(x,F*de+Y)),Ie=Math.abs(_e-ee),De=Math.abs(Ae-Y);q.l=Math.min(ee,_e),q.r=Math.max(ee,_e),q.t=Math.min(Y,Ae),q.b=Math.max(Y,Ae);function We(){se="",q.r=q.l,q.t=q.b,V.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ie>Kn||De>Kn?(se="xy",Ie/S>De/x?(De=Ie*x/S,Y>Ae?q.t=Y-De:q.b=Y+De):(Ie=De*S/x,ee>_e?q.l=ee-Ie:q.r=ee+Ie),V.attr("d",t1(q))):We();else if(v.isSubplotConstrained)if(Ie>Kn||De>Kn){se="xy";var Oe=Math.min(q.l/S,(x-q.b)/x),ze=Math.max(q.r/S,(x-q.t)/x);q.l=Oe*S,q.r=ze*S,q.b=(1-Oe)*x,q.t=(1-ze)*x,V.attr("d",t1(q))}else We();else!g||De0){var Se;if(v.isSubplotConstrained||!w&&g.length===1){for(Se=0;Se1&&(We.maxallowed!==void 0&&A===(We.range[0]1&&(Oe.maxallowed!==void 0&&d===(Oe.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function q$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function AS(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",_S(t,n)).attr("d",a+"Z")}function kS(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:vS.background,stroke:vS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",_S(r,t)).attr("d","M0,0Z")}function SS(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),CS(e,r,a,o)}function CS(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function By(e){Uy.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ES(e){gS&&e.data&&e._context.showTips&&(Oa.notifier(Oa._(e,"Double-click to zoom back out"),"long",e),gS=!1)}function O$(e,r){return"M"+(e.l-.5)+","+(r-Kn-.5)+"h-3v"+(2*Kn+1)+"h3ZM"+(e.r+.5)+","+(r-Kn-.5)+"h3v"+(2*Kn+1)+"h-3Z"}function B$(e,r){return"M"+(r-Kn-.5)+","+(e.t-.5)+"v-3h"+(2*Kn+1)+"v3ZM"+(r-Kn-.5)+","+(e.b+.5)+"v3h"+(2*Kn+1)+"v-3Z"}function t1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Kn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function xS(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,h,p=(a||{}).xaHash,_=(a||{}).yaHash,y=0;y{"use strict";var U$=ot(),n1=Bi(),H$=oi(),V$=Ko(),ui=RS().makeDragBox,dn=un().DRAGGERSIZE;a1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){U$.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=ui(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(p){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&n1.hover(r,p,o)},n1.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,H$.unhover(r,p))},r._context.showAxisDragHandles&&(ui(r,i,l._offset-dn,u._offset-dn,dn,dn,"n","w"),ui(r,i,l._offset+l._length,u._offset-dn,dn,dn,"n","e"),ui(r,i,l._offset-dn,u._offset+u._length,dn,dn,"s","w"),ui(r,i,l._offset+l._length,u._offset+u._length,dn,dn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=dn),ui(r,i,l._offset+l._length*.1,f,l._length*.8,dn,"","ew"),ui(r,i,l._offset,f,l._length*.1,dn,"","w"),ui(r,i,l._offset+l._length*.9,f,l._length*.1,dn,"","e")}if(o===u._mainSubplot){var h=u._mainLinePosition;u.side!=="right"&&(h-=dn),ui(r,i,h,u._offset+u._length*.1,dn,u._length*.8,"ns",""),ui(r,i,h,u._offset+u._length*.9,dn,u._length*.1,"s",""),ui(r,i,h,u._offset,dn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,n1.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,n1.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},a1.updateFx(r)}};a1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";V$(r._draggers,t)}});var IS=be((Lve,FS)=>{"use strict";var PS=Tr();FS.exports=function(r){for(var t=PS.layoutArrayContainers,n=PS.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var G$=Eo(),Gy=Xc(),w0=Fl(),Y$=Op().sorterAsc,Yy=Tr();M0.containerArrayMatch=IS();var W$=M0.isAddVal=function(r){return r==="add"||G$(r)},NS=M0.isRemoveVal=function(r){return r===null||r==="remove"};M0.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=Yy.getComponentMethod(i,"supplyLayoutDefaults"),u=Yy.getComponentMethod(i,"draw"),s=Yy.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Gy||u===Gy,h=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&w0.warn("Full array edits are incompatible with other edits",i);var _=n[""][""];if(NS(_))t.set(null);else if(Array.isArray(_))t.set(_);else return w0.warn("Unrecognized full array edit value",i,_),!0;return f?!1:(l(h,p),u(r),!0)}var y=Object.keys(n).map(Number).sort(Y$),b=t.get(),T=b||[],m=o(p,i).get(),k=[],S=-1,x=T.length,M,v,w,g,c,A,d,D;for(M=0;MT.length-(d?0:1)){w0.warn("index out of range",i,w);continue}if(A!==void 0)c.length>1&&w0.warn("Insertion & removal are incompatible with edits to the same index.",i,w),NS(A)?k.push(w):d?(A==="add"&&(A={}),T.splice(w,0,A),m&&m.splice(w,0,{})):w0.warn("Unrecognized full object edit value",i,w,A),S===-1&&(S=w);else for(v=0;v=0;M--)T.splice(k[M],1),m&&m.splice(k[M],1);if(T.length?b||t.set(T):t.set(null),f)return!1;if(l(h,p),s!==Gy){var E;if(S===-1)E=y;else{for(x=Math.max(T.length,x),E=[],M=0;M=S));M++)E.push(w);for(M=S;M{"use strict";var US=nt(),HS=Tr(),Yn=er(),T0=fn(),VS=nn(),GS=Gr(),A0=VS.cleanId,X$=VS.getFromTrace,Wy=HS.traceIs,Z$=["x","y","z"];Ba.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Yn.log("Clearing previous rejected promises from queue."),e._promises=[]};Ba.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(T0.subplotsRegistry.cartesian||{}).attrRegex,a=(T0.subplotsRegistry.polar||{}).attrRegex,o=(T0.subplotsRegistry.ternary||{}).attrRegex,i=(T0.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(T.x=1.02,T.xanchor="left"):T.x<-2&&(T.x=-.02,T.xanchor="right"),T.y>3?(T.y=1.02,T.yanchor="bottom"):T.y<-2&&(T.y=-.02,T.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),GS.clean(e),e.template&&e.template.layout&&Ba.cleanLayout(e.template.layout),e};function Eu(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=A0(n,a,!0))}Ba.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Ba.hasParent=function(e,r){for(var t=BS(r);t;){if(t in e)return!0;t=BS(t)}return!1};Ba.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>Yn.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;nYn.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],o=r[n];if(a!==o&&!(t(a,o)?Xy(a,o):!1))return!1}return!0}return!1};Ba.collectionsAreEqual=Xy});var jy=be(jr=>{"use strict";var s1=ot(),Q$=nt(),$$=$p(),ur=er(),_t=ur.nestedProperty,Ky=Cf(),Qn=Tw(),Ua=Tr(),p1=ru(),Ar=fn(),Wn=Et(),j$=b2(),ej=Da(),Zy=mt(),rj=Gr(),tj=Vy().initInteractions,nj=Ho(),aj=Cu().clearOutline,KS=Pl().dfltConfig,o1=zS(),Wt=YS(),ht=Uv(),al=On(),ij=un().AX_NAME_PATTERN,Jy=0,WS=5;function oj(e,r,t,n){var a;if(e=ur.getGraphDiv(e),Ky.init(e),ur.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Ky.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!ur.isPlotDiv(e)&&ur.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return jr.addFrames(e,a)}$S(e,n),t||(t={}),s1.select(e).classed("js-plotly-plot",!0),Zy.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Wt.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=Wt.cleanLayout(t)),Ar.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(Ej(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),Zy.initGradients(e),Zy.initPatterns(e),u&&Wn.saveShowSpikeInitial(e);var h=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;h&&Ar.doCalcdata(e);for(var p=0;p=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function jS(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),f1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&f1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function cj(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof g.parts[d]!="string";)d--;var D=g.parts[d],E=g.parts[d-1]+"."+D,R=g.parts.slice(0,d).join("."),N=_t(e.layout,R).get(),I=_t(n,R).get(),F=g.get();if(c!==void 0){m[w]=c,k[w]=D==="reverse"?c:go(F);var L=p1.getLayoutValObject(n,g.parts);if(L&&L.impliedEdits&&c!==null)for(var P in L.impliedEdits)S(ur.relativeAttr(w,P),L.impliedEdits[P]);if(["width","height"].indexOf(w)!==-1)if(c){S("autosize",null);var O=w==="height"?"width":"height";S(O,n[O])}else n[w]=e._initialAutoSize[w];else if(w==="autosize")S("width",c?null:n.width),S("height",c?null:n.height);else if(E.match(sC))v(E),_t(n,R+"._inputRange").set(null);else if(E.match(uC)){v(E),_t(n,R+"._inputRange").set(null);var B=_t(n,R).get();B._inputDomain&&(B._input.domain=B._inputDomain.slice())}else E.match(pj)&&_t(n,R+"._inputDomain").set(null);if(D==="type"){M=N;var X=I.type==="linear"&&c==="log",$=I.type==="log"&&c==="linear";if(X||$){if(!M||!M.range)S(R+".autorange",!0);else if(I.autorange)X&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var ee=M.range[0],Y=M.range[1];X?(ee<=0&&Y<=0&&S(R+".autorange",!0),ee<=0?ee=Y/1e6:Y<=0&&(Y=ee/1e6),S(R+".range[0]",Math.log(ee)/Math.LN10),S(R+".range[1]",Math.log(Y)/Math.LN10)):(S(R+".range[0]",Math.pow(10,ee)),S(R+".range[1]",Math.pow(10,Y)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[g.parts[0]]&&g.parts[1]==="radialaxis"&&delete n[g.parts[0]]._subplot.viewInitial["radialaxis.range"],Ua.getComponentMethod("annotations","convertCoords")(e,I,c,S),Ua.getComponentMethod("images","convertCoords")(e,I,c,S)}else S(R+".autorange",!0),S(R+".range",null);_t(n,R+"._inputRange").set(null)}else if(D.match(ij)){var q=_t(n,w).get(),Q=(c||{}).type;(!Q||Q==="-")&&(Q="linear"),Ua.getComponentMethod("annotations","convertCoords")(e,q,Q,S),Ua.getComponentMethod("images","convertCoords")(e,q,Q,S)}var oe=o1.containerArrayMatch(w);if(oe){f=oe.array,h=oe.index;var Z=oe.property,se=L||{editType:"calc"};h!==""&&Z===""&&(o1.isAddVal(c)?k[w]=null:o1.isRemoveVal(c)?k[w]=(_t(t,f).get()||[])[h]:ur.warn("unrecognized full object value",r)),al.update(T,se),s[f]||(s[f]={});var j=s[f][h];j||(j=s[f][h]={}),j[Z]=c,delete r[w]}else D==="reverse"?(N.range?N.range.reverse():(S(R+".autorange",!0),N.range=[1,0]),I.autorange?T.calc=!0:T.plot=!0):(w==="dragmode"&&(c===!1&&F!==!1||c!==!1&&F===!1)||n._has("scatter-like")&&n._has("regl")&&w==="dragmode"&&(c==="lasso"||c==="select")&&!(F==="lasso"||F==="select")?T.plot=!0:L?al.update(T,L):T.calc=!0,g.set(c))}}for(f in s){var V=o1.applyContainerArrayChanges(e,o(t,f),s[f],T,o);V||(T.plot=!0)}for(var re in x){M=Wn.getFromId(e,re);var H=M&&M._constraintGroup;if(H){T.calc=!0;for(var ne in H)x[ne]||(Wn.getFromId(e,ne)._constraintShrinkable=!0)}}(cC(e)||r.height||r.width)&&(T.plot=!0);var ue=n.shapes;for(h=0;h1;)if(n.pop(),t=_t(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function mj(e,r){for(var t=0;t[R,e._ev.listeners(R)]);o=jr.newPlot(e,r,t,n).then(()=>{for(let[R,N]of E)N.forEach(I=>e.on(R,I));return jr.react(e,r,t,n)})}else{e.data=r||[],Wt.cleanData(e.data),e.layout=t||{},Wt.cleanLayout(e.layout),bj(e.data,e.layout,l,u),Ar.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,p=e._fullLayout,_=p.datarevision===void 0,y=p.transition,b=Mj(e,u,p,_,y),T=b.newDataRevision,m=wj(e,l,h,_,y,T);if(cC(e)&&(b.layoutReplot=!0),m.calc||b.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(p),S=0;S(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function wj(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=al.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(_){var y=p1.getTraceValObject(s,_);return!s._module.animatable&&y.anim&&(y.anim=!1),y}var h={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:o,gd:e},p={};for(u=0;u=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var h=0;return function(){if(s&&++h===f)return s()}}return new Promise(function(s,f){function h(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var D=n._frameQueue.pop();D.onInterrupt&&D.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function p(D){if(D.length!==0){for(var E=0;En._timeToNext&&y()};D()}var T=0;function m(D){return Array.isArray(a)?T>=a.length?D.transitionOpts=a[T]:D.transitionOpts=a[0]:D.transitionOpts=a,T++,D}var k,S,x=[],M=r==null,v=Array.isArray(r),w=!M&&!v&&ur.isPlainObject(r);if(w)x.push({type:"object",data:m(ur.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&d.push(S);x=d}}x.length>0?p(x):(e.emit("plotly_animated"),s())})}function Aj(e,r,t){if(e=ur.getGraphDiv(e),r==null)return Promise.resolve();if(!ur.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],h={};for(n=r.length-1;n>=0;n--)if(ur.isPlainObject(r[n])){var p=r[n].name,_=(u[p]||h[p]||{}).name,y=r[n].name,b=u[_]||h[_];_&&y&&typeof y=="number"&&b&&Jyg.index?-1:w.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&ur.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Ar.modifyFrames,u=Ar.modifyFrames,s=[e,i],f=[e,o];return Qn&&Qn.add(e,l,s,u,f),Ar.modifyFrames(e,o)}function Sj(e){e=ur.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Ar.cleanPlot([],{},t,r),Ar.purge(e),Ky.purge(e),r._container&&r._container.remove(),delete e._context,e}function Cj(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ur.equalDomRects(t,r._lastBBox)){var n=r._invTransform=ur.inverseTransformMatrix(ur.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function Ej(e){var r=s1.select(e),t=e._fullLayout;if(t._calcInverseTransform=Cj,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};s1.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=ur.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(nj.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}jr.animate=Tj;jr.addFrames=Aj;jr.deleteFrames=kj;jr.addTraces=aC;jr.deleteTraces=iC;jr.extendTraces=tC;jr.moveTraces=Qy;jr.prependTraces=nC;jr.newPlot=fj;jr._doPlot=oj;jr.purge=Sj;jr.react=_j;jr.redraw=uj;jr.relayout=k0;jr.restyle=c1;jr.setPlotConfig=lj;jr.update=v1;jr._guiRelayout=$y(k0);jr._guiRestyle=$y(c1);jr._guiUpdate=$y(v1);jr._storeDirectGUIEdit=dj});var fs=be(Wi=>{"use strict";var Lj=Tr();Wi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Wi.getRedrawFunc=function(e){return function(){Lj.getComponentMethod("colorbar","draw")(e)}};Wi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Wi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var hC=window.URL||window.webkitURL;Wi.createObjectURL=function(e){return hC.createObjectURL(e)};Wi.revokeObjectURL=function(e){return hC.revokeObjectURL(e)};Wi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Dj(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Wi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Dj(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var rm=ot(),Ive=er(),Rj=mt(),Pj=Gr(),Nve=Ho(),em=/"/g,C0="TOBESTRIPPED",Fj=new RegExp('("'+C0+")|("+C0+'")',"g");function Ij(e){var r=rm.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function Nj(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}vC.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(Rj.setRect,0,0,l,u).call(Pj.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var zj=er(),qj=dh().EventEmitter,E0=fs();function Oj(e){var r=e.emitter||new qj,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,h=e.height||150,p=s*f,_=s*h,y=u.getContext("2d",{willReadFrequently:!0}),b=new o,T,m;l==="svg"||zj.isSafari()?m=E0.encodeSVG(i):(T=E0.createBlob(i,"svg"),m=E0.createObjectURL(T)),u.width=p,u.height=_,b.onload=function(){var k;switch(T=null,E0.revokeObjectURL(m),l!=="svg"&&y.drawImage(b,0,0,p,_),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=m;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},b.onerror=function(k){if(T=null,E0.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},b.src=m});return e.promise?t:r}dC.exports=Oj});var nm=be((Ove,yC)=>{"use strict";var pC=nt(),gC=jy(),Bj=fn(),Xi=er(),L0=fs(),Uj=y1(),Hj=m1(),Vj=Lc().version,tm={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Gj(e,r){r=r||{};var t,n,a,o;Xi.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Xi.getGraphDiv(e),t=Xi.extendDeep([],e.data),n=Xi.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(v){return!(v in r)||Xi.validate(r[v],tm[v])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+Xi.join2(tm.format.values,", "," or ")+".");var l={};function u(v,w){return Xi.coerce(r,l,tm,v,w)}var s=u("format"),f=u("width"),h=u("height"),p=u("scale"),_=u("setBackground"),y=u("imageDataOnly"),b=document.createElement("div");b.style.position="absolute",b.style.left="-5000px",document.body.appendChild(b);var T=Xi.extendFlat({},n);f?T.width=f:r.width===null&&pC(o.width)&&(T.width=o.width),h?T.height=h:r.height===null&&pC(o.height)&&(T.height=o.height);var m=Xi.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:_}),k=L0.getRedrawFunc(b);function S(){return new Promise(function(v){setTimeout(v,L0.getDelay(b._fullLayout))})}function x(){return new Promise(function(v,w){var g=Uj(b,s,p),c=b._fullLayout.width,A=b._fullLayout.height;function d(){gC.purge(b),document.body.removeChild(b)}if(s==="full-json"){var D=Bj.graphJson(b,!1,"keepdata","object",!0,!0);return D.version=Vj,D=JSON.stringify(D),d(),v(y?D:L0.encodeJSON(D))}if(d(),s==="svg")return v(y?g:L0.encodeSVG(g));var E=document.createElement("canvas");E.id=Xi.randstr(),Hj({format:s,width:c,height:A,scale:p,canvas:E,svg:g,promise:!0}).then(v).catch(w)})}function M(v){return y?v.replace(L0.IMAGE_URL_PREFIX,""):v}return new Promise(function(v,w){gC.newPlot(b,t,T,m).then(k).then(S).then(x).then(function(g){v(M(g))}).catch(function(g){w(g)})})}yC.exports=Gj});var bC=be((Bve,xC)=>{"use strict";var Ha=er(),Yj=fn(),Wj=ru(),Xj=Pl().dfltConfig,fi=Ha.isPlainObject,hs=Array.isArray,am=Ha.isArrayOrTypedArray;xC.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=Wj.get(),a=[],o={_context:Ha.extendFlat({},Xj)},i,l;hs(r)?(o.data=Ha.extendDeep([],r),i=r):(o.data=[],i=[],a.push(pn("array","data"))),fi(t)?(o.layout=Ha.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(pn("object","layout"))),Yj.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fh.length&&n.push(pn("unused",a,s.concat(h.length)));var m=h.length,k=Array.isArray(T);k&&(m=Math.min(m,T.length));var S,x,M,v,w;if(p.dimensions===2)for(x=0;xh[x].length&&n.push(pn("unused",a,s.concat(x,h[x].length)));var g=h[x].length;for(S=0;S<(k?Math.min(g,T[x].length):g);S++)M=k?T[x][S]:T,v=f[x][S],w=h[x][S],Ha.validate(v,M)?w!==v&&w!==+v&&n.push(pn("dynamic",a,s.concat(x,S),v,w)):n.push(pn("value",a,s.concat(x,S),v))}else n.push(pn("array",a,s.concat(x),f[x]));else for(x=0;x{"use strict";var eee=er(),b1=fs();function ree(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=b1.createBlob(e,t),s=b1.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),b1.revokeObjectURL(s),u=null,i(r);if(eee.isSafari()){var f=t==="svg"?",":";base64,";return b1.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}_C.exports=ree});var im=be((Vve,TC)=>{"use strict";var MC=er(),tee=nm(),nee=wC(),Hve=fs();function aee(e,r){var t;return MC.isPlainObject(e)||(t=MC.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var o=tee(e,r),i=r.filename||e.fn||"newplot";i+="."+r.format.replace("-","."),o.then(function(l){return t&&(t._snapshotInProgress=!1),nee(l,i,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}TC.exports=aee});var EC=be(om=>{"use strict";var ca=er(),ha=ca.isPlainObject,AC=ru(),kC=fn(),iee=Cn(),SC=yt(),CC=Pl().dfltConfig;om.makeTemplate=function(e){e=ca.isPlainObject(e)?e:ca.getGraphDiv(e),e=ca.extendDeep({_context:CC},{data:e.data,layout:e.layout}),kC.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(_){var y={};D0(_,y,lee.bind(null,_));var b=ca.coerce(_,{},iee,"type"),T=n.data[b];T||(T=n.data[b]=[]),T.push(y)}),D0(t,n.layout,oee.bind(null,t)),delete n.layout.template;var a=t.template;if(ha(a)){var o=a.layout,i,l,u,s,f,h;ha(o)&&_1(o,n.layout);var p=a.data;if(ha(p)){for(l in n.data)if(u=p[l],Array.isArray(u)){for(f=n.data[l],h=f.length,s=u.length,i=0;im?i.push({code:"unused",traceType:_,templateCount:T,dataCount:m}):m>T&&i.push({code:"reused",traceType:_,templateCount:T,dataCount:m})}}function k(S,x){for(var M in S)if(M.charAt(0)!=="_"){var v=S[M],w=Va(S,M,x);ha(v)?(Array.isArray(S)&&v._template===!1&&v.templateitemname&&i.push({code:"missing",path:w,templateitemname:v.templateitemname}),k(v,w)):Array.isArray(v)&&see(v)&&k(v,w)}}if(k({data:u,layout:l},""),i.length)return i.map(uee)};function see(e){for(var r=0;r{"use strict";var an=jy();Ct._doPlot=an._doPlot;Ct.newPlot=an.newPlot;Ct.restyle=an.restyle;Ct.relayout=an.relayout;Ct.redraw=an.redraw;Ct.update=an.update;Ct._guiRestyle=an._guiRestyle;Ct._guiRelayout=an._guiRelayout;Ct._guiUpdate=an._guiUpdate;Ct._storeDirectGUIEdit=an._storeDirectGUIEdit;Ct.react=an.react;Ct.extendTraces=an.extendTraces;Ct.prependTraces=an.prependTraces;Ct.addTraces=an.addTraces;Ct.deleteTraces=an.deleteTraces;Ct.moveTraces=an.moveTraces;Ct.purge=an.purge;Ct.addFrames=an.addFrames;Ct.deleteFrames=an.deleteFrames;Ct.animate=an.animate;Ct.setPlotConfig=an.setPlotConfig;var fee=bf().getGraphDiv,cee=Fv().eraseActiveShape;Ct.deleteActiveShape=function(e){return cee(fee(e))};Ct.toImage=nm();Ct.validate=bC();Ct.downloadImage=im();var LC=EC();Ct.makeTemplate=LC.makeTemplate;Ct.validateTemplate=LC.validateTemplate});var PC=be((Wve,RC)=>{"use strict";var lm=er(),hee=Tr();RC.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=hee.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=lm.minRowLength(o);i?l=Math.min(s,lm.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=lm.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var zC=be((Xve,NC)=>{"use strict";var FC=er().dateTick0,vee=ln(),dee=vee.ONEWEEK;function IC(e,r){return e%dee===0?FC(r,1):FC(r,0)}NC.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",IC(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",IC(l,t.ycalendar)),a("yperiodalignment"))}}});var BC=be((Zve,OC)=>{"use strict";var qC=["orientation","groupnorm","stackgaps"];OC.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var h={orientation:t.x&&!t.y?"h":"v"},p=0;p{"use strict";var UC=Gr(),HC=Ei().hasColorscale,VC=Di(),pee=sa();GC.exports=function(r,t,n,a,o,i={}){var l=pee.isBubble(r),u=(r.line||{}).color,s;if(u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),HC(r,"marker")&&VC(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=UC.background:s=UC.defaultLine,o("marker.line.color",s),HC(r,"marker.line")&&VC(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0),i.noLineDash||o("marker.line.dash")),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var um=be((Kve,YC)=>{"use strict";var gee=er().isArrayOrTypedArray,yee=Ei().hasColorscale,mee=Di();YC.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),yee(r,"line"))mee(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(gee(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var XC=be((Qve,WC)=>{"use strict";WC.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var fm=be(($ve,ZC)=>{"use strict";var xee=er();ZC.exports=function(e,r,t,n,a){a=a||{},n("textposition"),xee.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var QC=be((jve,KC)=>{"use strict";var M1=Gr(),JC=er().isArrayOrTypedArray;function bee(e){for(var r=M1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var $C=er(),_ee=Tr(),wee=us(),Mee=Qv(),Lu=sa(),Tee=PC(),Aee=zC(),kee=BC(),See=sm(),Cee=um(),jC=XC(),Eee=fm(),Lee=QC(),Dee=er().coercePattern;eE.exports=function(r,t,n,a){function o(_,y){return $C.coerce(r,t,wee,_,y)}var i=Tee(r,t,a,o);if(i||(t.visible=!1),!!t.visible){Aee(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=kee(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i{"use strict";var Ree=t0().getAxisGroup;tE.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=Ree(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),h=s[u];h||(h=s[u]={});var p=h[f];p?p.traces.push(t):p=h[f]={traces:[t],alignmentIndex:Object.keys(h).length,offsetGroups:{}};var _=a("offsetgroup")||"",y=p.offsetGroups,b=y[_];t._offsetIndex=0,(o!=="group"||_)&&(b||(b=y[_]={offsetIndex:Object.keys(y).length}),t._offsetIndex=b.offsetIndex)}});var iE=be((t1e,aE)=>{"use strict";var Pee=er(),Fee=nE(),Iee=us();aE.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return Pee.coerce(a._input,a,Iee,p)}if(t.scattermode==="group")for(o=0;o=0;f--){var h=r[f];if(h.type==="scatter"&&h.xaxis===u.xaxis&&h.yaxis===u.yaxis){h.opacity=void 0;break}}}}}});var lE=be((n1e,oE)=>{"use strict";var Nee=er(),zee=xh();oE.exports=function(e,r){function t(a,o){return Nee.coerce(e,r,zee,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var fE=be((a1e,uE)=>{"use strict";var qee=nt(),sE=er(),Oee=sE.dateTime2ms,T1=sE.incrementMonth,Bee=ln(),Uee=Bee.ONEAVGMONTH;uE.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(qee(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",h=o==="end",p=r[n+"period0"],_=Oee(p,s)||0,y=[],b=[],T=[],m=a.length,k=0;kS;)v=T1(v,-l,s);for(;v<=S;)v=T1(v,l,s);M=T1(v,-l,s)}else{for(x=Math.round((S-_)/i),v=_+x*i;v>S;)v-=i;for(;v<=S;)v+=i;M=v-i}y[k]=f?M:h?v:(M+v)/2,b[k]=M,T[k]=v}return{vals:y,starts:b,ends:T}}});var vm=be((i1e,hE)=>{"use strict";var cm=Ei().hasColorscale,hm=Go(),cE=sa();hE.exports=function(r,t){cE.hasLines(t)&&cm(t,"line")&&hm(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),cE.hasMarkers(t)&&(cm(t,"marker")&&hm(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),cm(t,"marker.line")&&hm(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var A1=be((o1e,vE)=>{"use strict";var Nt=er();vE.exports=function(r,t){for(var n=0;n{"use strict";var dE=er();pE.exports=function(r,t){dE.isArrayOrTypedArray(t.selectedpoints)&&dE.tagSelected(r,t)}});var mm=be((s1e,ME)=>{"use strict";var yE=nt(),pm=er(),R0=Et(),mE=fE(),dm=ln().BADNUM,gm=sa(),Hee=vm(),Vee=A1(),Gee=gE();function Yee(e,r){var t=e._fullLayout,n=r._xA=R0.getFromId(e,r.xaxis||"x","x"),a=r._yA=R0.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=mE(r,n,"x",o),u=mE(r,a,"y",i),s=l.vals,f=u.vals,h=r._length,p=new Array(h),_=r.ids,y=ym(r,t,n,a),b=!1,T,m,k,S,x,M;_E(t,r);var v="x",w="y",g;if(y)pm.pushUnique(y.traceIndices,r.index),T=y.orientation==="v",T?(w="s",g="x"):(v="s",g="y"),x=y.stackgaps==="interpolate";else{var c=bE(r,h);xE(e,r,n,a,s,f,c)}var A=!!r.xperiodalignment,d=!!r.yperiodalignment;for(m=0;mm&&p[S].gap;)S--;for(M=p[S].s,k=p.length-1;k>S;k--)p[k].s=M;for(;m{"use strict";TE.exports=k1;var Wee=er().distinctVals;function k1(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;o{"use strict";kE.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var RE=be((c1e,DE)=>{"use strict";var Ga=nt(),{isArrayOrTypedArray:yo}=er(),{BADNUM:Du}=ln(),Xee=Tr(),P0=Et(),{getAxisGroup:Zee}=t0(),S1=AE(),{TEXTPAD:Jee}=SE(),{LINE_SPACING:Kee}=En(),{BR_TAG_ALL:Qee}=Bn();function $ee(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;su+i||!Ga(l))}for(var f=0;fn(o))):n(e.text);let a=e.outsidetextfont.size*Kee*t+Jee;return{ppadplus:r.some(o=>o.s<0)?a:0,ppadminus:r.some(o=>o.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function sre(e,r,t,n){for(var a=Ru(n),o=0;o{"use strict";var PE=mm(),FE=RE().setGroupPositions;function fre(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;sc[f]&&f{"use strict";var hre=mt(),BE=ln(),F0=BE.BADNUM,UE=BE.LOG_CLIP,zE=UE+.5,qE=UE-.5,C1=er(),vre=C1.segmentsIntersect,OE=C1.constrain,Am=Qv();HE.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,h=n.marker,p=t.connectGaps,_=t.baseTolerance,y=t.shape,b=y==="linear",T=n.fill&&n.fill!=="none",m=[],k=Am.minTolerance,S=r.length,x=new Array(S),M=0,v,w,g,c,A,d,D,E,R,N,I,F,L,P,O,B;function X(Be){var Se=r[Be];if(!Se)return!1;var Le=t.linearized?a.l2p(Se.x):a.c2p(Se.x),Ye=t.linearized?o.l2p(Se.y):o.c2p(Se.y);if(Le===F0){if(i&&(Le=a.c2p(Se.x,!0)),Le===F0)return!1;l&&Ye===F0&&(Le*=Math.abs(a._m*s*(a._m>0?zE:qE)/(o._m*u*(o._m>0?zE:qE)))),Le*=1e3}if(Ye===F0){if(l&&(Ye=o.c2p(Se.y,!0)),Ye===F0)return!1;Ye*=1e3}return[Le,Ye]}function $(Be,Se,Le,Ye){var Xe=Le-Be,$e=Ye-Se,Qe=.5-Be,je=.5-Se,ir=Xe*Xe+$e*$e,yr=Xe*Qe+$e*je;if(yr>0&&yr1||Math.abs(Qe.y-Le[0][1])>1)&&(Qe=[Qe.x,Qe.y],Ye&&Q(Qe,Be)se||Be[1]V)return[OE(Be[0],Z,se),OE(Be[1],j,V)]}function Ce(Be,Se){if(Be[0]===Se[0]&&(Be[0]===Z||Be[0]===se)||Be[1]===Se[1]&&(Be[1]===j||Be[1]===V))return!0}function Fe(Be,Se){var Le=[],Ye=Ee(Be),Xe=Ee(Se);return Ye&&Xe&&Ce(Ye,Xe)||(Ye&&Le.push(Ye),Xe&&Le.push(Xe)),Le}function ie(Be,Se,Le){return function(Ye,Xe){var $e=Ee(Ye),Qe=Ee(Xe),je=[];if($e&&Qe&&Ce($e,Qe))return je;$e&&je.push($e),Qe&&je.push(Qe);var ir=2*C1.constrain((Ye[Be]+Xe[Be])/2,Se,Le)-(($e||Ye)[Be]+(Qe||Xe)[Be]);if(ir){var yr;$e&&Qe?yr=ir>0==$e[Be]>Qe[Be]?$e:Qe:yr=$e||Qe,yr[Be]+=ir}return je}}var J;y==="linear"||y==="spline"?J=ge:y==="hv"||y==="vh"?J=Fe:y==="hvh"?J=ie(0,Z,se):y==="vhv"&&(J=ie(1,j,V));function te(Be,Se){var Le=Se[0]-Be[0],Ye=(Se[1]-Be[1])/Le,Xe=(Be[1]*Se[0]-Se[1]*Be[0])/Le;return Xe>0?[Ye>0?Z:se,V]:[Ye>0?se:Z,j]}function ae(Be){var Se=Be[0],Le=Be[1],Ye=Se===x[M-1][0],Xe=Le===x[M-1][1];if(!(Ye&&Xe))if(M>1){var $e=Se===x[M-2][0],Qe=Le===x[M-2][1];Ye&&(Se===Z||Se===se)&&$e?Qe?M--:x[M-1]=Be:Xe&&(Le===j||Le===V)&&Qe?$e?M--:x[M-1]=Be:x[M++]=Be}else x[M++]=Be}function ce(Be){x[M-1][0]!==Be[0]&&x[M-1][1]!==Be[1]&&ae([ue,ye]),ae(Be),ke=null,ue=ye=0}var pe=C1.isArrayOrTypedArray(h);function ve(Be){if(Be&&f&&(Be.i=v,Be.d=r,Be.trace=n,Be.marker=pe?h[Be.i]:h,Be.backoff=f),ee=Be[0]/u,Y=Be[1]/s,H=Be[0]se?se:0,ne=Be[1]V?V:0,H||ne){if(!M)x[M++]=[H||Be[0],ne||Be[1]];else if(ke){var Se=J(ke,Be);Se.length>1&&(ce(Se[0]),x[M++]=Se[1])}else Me=J(x[M-1],Be)[0],x[M++]=Me;var Le=x[M-1];H&&ne&&(Le[0]!==H||Le[1]!==ne)?(ke&&(ue!==H&&ye!==ne?ae(ue&&ye?te(ke,Be):[ue||H,ye||ne]):ue&&ye&&ae([ue,ye])),ae([H,ne])):ue-H&&ye-ne&&ae([H||ue,ne||ye]),ke=Be,ue=H,ye=ne}else ke&&ce(J(ke,Be)[0]),x[M++]=Be}for(v=0;vq(d,xe))break;g=d,L=R[0]*E[0]+R[1]*E[1],L>I?(I=L,c=d,D=!1):L=r.length||!d)break;ve(d),w=d}}ke&&ae([ue||ke[0],ye||ke[1]]),m.push(x.slice(0,M))}var me=y.slice(y.length-1);if(f&&me!=="h"&&me!=="v"){for(var de=!1,_e=-1,Ae=[],Ie=0;Ie{"use strict";var GE={tonextx:1,tonexty:1,tonext:1};YE.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,h=-1,p=0,_=-1;for(o=0;o=0?u=_:(u=_=p,p++),u{"use strict";var ci=ot(),dre=Tr(),I0=er(),Pu=I0.ensureSingle,ZE=I0.identity,qt=mt(),Fu=sa(),pre=VE(),gre=WE(),E1=My().tester;JE.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,h=gre(r,t,n);if(l=a.selectAll("g.trace").data(h,function(_){return _[0].trace.uid}),l.enter().append("g").attr("class",function(_){return"trace scatter trace"+_[0].trace.uid}).style("stroke-miterlimit",2),l.order(),yre(r,l,t),f){i&&(u=i());var p=ci.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});p.each(function(){a.selectAll("g.trace").each(function(_,y){XE(r,y,t,_,h,this,o)})})}else l.each(function(_,y){XE(r,y,t,_,h,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function yre(e,r,t){r.each(function(n){var a=Pu(ci.select(this),"g","fills");qt.setClipUrl(a,t.layerClipId,e);var o=n[0].trace;o._ownFill=null,o._nextFill=null;var i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,ZE);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=Pu(ci.select(this),"path","js-fill")})})}function XE(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;mre(e,r,t,n,a);var s=!!i&&i.duration>0;function f(ie){return s?ie.transition():ie}var h=t.xaxis,p=t.yaxis,_=n[0].trace,y=_.line,b=ci.select(o),T=Pu(b,"g","errorbars"),m=Pu(b,"g","lines"),k=Pu(b,"g","points"),S=Pu(b,"g","text");if(dre.getComponentMethod("errorbars","plot")(e,T,t,i),_.visible!==!0)return;f(b).style("opacity",_.opacity);var x,M,v=_.fill.charAt(_.fill.length-1);v!=="x"&&v!=="y"&&(v="");var w,g;v==="y"?(w=1,g=p.c2p(0,!0)):v==="x"&&(w=0,g=h.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=b;var c="",A=[],d=_._prevtrace,D=null,E=null;d&&(c=d._prevRevpath||"",M=d._nextFill,A=d._ownPolygons,D=d._fillsegments,E=d._fillElement);var R,N,I="",F="",L,P,O,B,X,$,ee=[];_._polygons=[];var Y=[],q=[],Q=I0.noop;if(x=_._ownFill,Fu.hasLines(_)||_.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(y.shape)!==-1?(L=qt.steps(y.shape),P=qt.steps(y.shape.split("").reverse().join(""))):y.shape==="spline"?L=P=function(ie){var J=ie[ie.length-1];return ie.length>1&&ie[0][0]===J[0]&&ie[0][1]===J[1]?qt.smoothclosed(ie.slice(1),y.smoothing):qt.smoothopen(ie,y.smoothing)}:L=P=function(ie){return"M"+ie.join("L")},O=function(ie){return P(ie.reverse())},q=pre(n,{xaxis:h,yaxis:p,trace:_,connectGaps:_.connectgaps,baseTolerance:Math.max(y.width||1,3)/4,shape:y.shape,backoff:y.backoff,simplify:y.simplify,fill:_.fill}),Y=new Array(q.length);var oe=0;for(u=0;u=l[0]&&b.x<=l[1]&&b.y>=u[0]&&b.y<=u[1]}),p=Math.ceil(h.length/f),_=0;a.forEach(function(b,T){var m=b[0].trace;Fu.hasMarkers(m)&&m.marker.maxdisplayed>0&&T{"use strict";QE.exports={container:"marker",min:"cmin",max:"cmax"}});var eL=be((y1e,jE)=>{"use strict";var L1=Et();jE.exports=function(r,t,n){var a={},o={_fullLayout:n},i=L1.getFromTrace(o,t,"x"),l=L1.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=L1.tickText(i,i.c2l(u),!0).text,a.yLabel=L1.tickText(l,l.c2l(s),!0).text,a}});var Em=be((m1e,rL)=>{"use strict";var km=ot(),Iu=mt(),xre=Tr();function bre(e){var r=km.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=km.select(this),a=t.trace||t[0].trace;Sm(n,a,e)}),r.selectAll("g.text").each(function(t){var n=km.select(this),a=t.trace||t[0].trace;Cm(n,a,e)}),r.selectAll("g.trace path.js-line").call(Iu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Iu.fillGroupStyle,e,!1),xre.getComponentMethod("errorbars","style")(r)}function Sm(e,r,t){Iu.pointStyle(e.selectAll("path.point"),r,t)}function Cm(e,r,t){Iu.textPointStyle(e.selectAll("text"),r,t)}function _re(e,r,t){var n=r[0].trace;n.selectedpoints?(Iu.selectedPointStyle(t.selectAll("path.point"),n),Iu.selectedTextStyle(t.selectAll("text"),n)):(Sm(t,n,e),Cm(t,n,e))}rL.exports={style:bre,stylePoints:Sm,styleText:Cm,styleOnSelect:_re}});var nL=be((x1e,tL)=>{"use strict";var Nu=Gr(),wre=sa();tL.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Nu.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&Nu.opacity(o)?o:i&&Nu.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Nu.opacity(a)<.3?Nu.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Nu.opacity(n)&&wre.hasLines(r)&&r.line.width?n:r.fillcolor)}});var oL=be((b1e,iL)=>{"use strict";var D1=er(),aL=Bi(),Mre=Tr(),Tre=nL(),Lm=Gr(),Are=D1.fillText;iL.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),h=[s,f],p=i.hoveron||"",_=i.mode.indexOf("markers")!==-1?3:.5,y=!!i.xperiodalignment,b=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var T=function(F){if(y){var L=l.c2p(F.xStart),P=l.c2p(F.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),B=1-1/O,X=Math.abs(l.c2p(F.x)-s);return X=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),B=1-1/O,X=Math.abs(u.c2p(F.y)-f);return Xee!=V>=ee&&(Z=Q[q-1][0],se=Q[q][0],V-j&&(oe=Z+(se-Z)*(ee-j)/(V-j),O=Math.min(O,oe),B=Math.max(B,oe)));return O=Math.max(O,0),B=Math.min(B,l._length),{x0:O,x1:B,y0:ee,y1:ee}}if(p.indexOf("fills")!==-1&&i._fillElement){var R=D(i._fillElement)&&!D(i._fillExclusionElement);if(R){var N=E(i._polygons);N===null&&(N={x0:h[0],x1:h[0],y0:h[1],y1:h[1]});var I=Lm.defaultLine;return Lm.opacity(i.fillcolor)?I=i.fillcolor:Lm.opacity((i.line||{}).color)&&(I=i.line.color),D1.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:I,hovertemplate:!1}),delete r.index,i.text&&!D1.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var uL=be((_1e,sL)=>{"use strict";var lL=sa();sL.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,h,p=!lL.hasMarkers(l)&&!lL.hasText(l);if(p)return[];if(t===!1)for(u=0;u{"use strict";fL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Rm=be((M1e,dL)=>{"use strict";var N0=Tr().traceIs,Dm=jg();dL.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(kre(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function kre(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=Sre(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!N0(o,"cartesian")||N0(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,vL(o,n)){var s=hL(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(vL(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function hL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function vL(e,r){var t=hL(e),n=N0(e,"box-violin"),a=N0(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var gL=be((T1e,pL)=>{"use strict";var Cre=Zn().isTypedArraySpec;function Ere(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o0||Cre(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=Ere(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var xL=be((A1e,mL)=>{"use strict";var yL=Sa().mix,Lre=Si(),Dre=er();mL.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(g,c){return Dre.coerce2(r,t,a.attributes,g,c)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=yL(o,a.bgColor,a.blend||Lre.lightFraction).toRgbString(),h=i("gridcolor",f),p=i("gridwidth"),_=i("griddash"),y=n("showgrid",a.showGrid||!!h||!!p||!!_);if(y||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var b=yL(t.gridcolor,a.bgColor,67).toRgbString(),T=i("minor.gridcolor",b),m=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!T||!!m||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var x=i("zerolinelayer"),M=i("zerolinecolor",o),v=i("zerolinewidth"),w=n("zeroline",a.showGrid||!!M||!!v);w||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var P1=be((k1e,AL)=>{"use strict";var bL=nt(),Rre=Tr(),z0=er(),Pre=yt(),Fre=ai(),Pm=Da(),_L=wg(),wL=Tg(),Ire=Sg(),Nre=Cg(),zre=gL(),qre=xL(),Ore=b2(),ML=Gh(),R1=un().WEEKDAY_PATTERN,Bre=un().HOUR_PATTERN;AL.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},h=t.type||f.type||"-",p;if(h==="date"){var _=Rre.getComponentMethod("calendars","handleDefaults");_(r,t,"calendar",a.calendar),a.noTicklabelmode||(p=n("ticklabelmode"))}!a.noTicklabelindex&&(h==="date"||h==="linear")&&n("ticklabelindex");var y="";(!a.noTicklabelposition||h==="multicategory")&&(y=z0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:p==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",y.indexOf("inside")!==-1?"hide past domain":h==="category"||h==="multicategory"?"allow":"hide past div"),ML(t,o),Ore(r,t,n,a),zre(r,t,n,a),a.noHover||(h!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var b=n("color"),T=b!==Pm.color.dflt?b:l.color,m=u.label||o._dfltTitle[i];if(Nre(r,t,n,h,a),!s)return t;n("title.text",m),z0.coerceFont(n,"title.font",l,{overrideDflt:{size:z0.bigFont(l.size),color:T}}),_L(r,t,n,h);var k=a.hasMinor;if(k&&(Pre.newContainer(t,"minor"),_L(r,t,n,h,{isMinor:!0})),Ire(r,t,n,h,a),wL(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,wL(r,t,n,a),a.isMinor=S}qre(r,t,n,{dfltColor:b,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Pm}),k&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var x=h==="multicategory";if(!a.noTickson&&(h==="category"||x)&&(t.ticks||t.showgrid)&&(x?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),x){var M=n("showdividers");M&&(n("dividercolor"),n("dividerwidth"))}if(h==="date")if(Fre(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Ure}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var v=0;v=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=TL(o[l]),u){i=R1;break}}var s=n("pattern",i);if(s===R1)for(l=0;l<2;l++)u=TL(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case R1:if(!bL(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case Bre:if(!bL(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]{"use strict";var Vre=nt(),F1=er();kL.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,h,p,_,y,b;u&&(h=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],h&&(p=u[l+"side"].split(" ")[0],_=u.domain[l][p==="right"||p==="top"?1:0])),h=h||[0,1],f=f||(Vre(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),_=_||0,y=0,b=!1;var T=F1.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=F1.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:p}},"side");if(T==="free"){if(l==="y"){var k=n("autoshift");k&&(_=m==="left"?s[0]:s[1],b=t.automargin?t.automargin:!0,y=m==="left"?-3:3),n("shift",y)}n("position",_)}n("automargin",b);var S=!1;if(i.length&&(S=F1.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var x=n("domain",h);x[0]>x[1]-1/4096&&(t.domain=h),F1.noneOrAll(r.domain,t.domain,h),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var IL=be((C1e,FL)=>{"use strict";var vs=er(),SL=Gr(),Gre=fo().isUnifiedHover,Yre=X2(),CL=yt(),Wre=Gs(),EL=Da(),Xre=Rm(),LL=P1(),Zre=t0(),DL=Fm(),Nm=nn(),Zi=Nm.id2name,RL=Nm.name2id,Jre=un().AX_ID_PATTERN,PL=Tr(),I1=PL.traceIs,Im=PL.getComponentMethod;function N1(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}FL.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},h={},p={},_={},y={},b,T;for(b=0;b{"use strict";var Kre=ot(),NL=Tr(),z1=er(),xa=mt(),q1=Et();zL.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){q1.redrawComponents(r);return}function i(T){var m=T.xaxis,k=T.yaxis;o._defs.select("#"+T.clipId+"> rect").call(xa.setTranslate,0,0).call(xa.setScale,1,1),T.plot.call(xa.setTranslate,m._offset,k._offset).call(xa.setScale,1,1);var S=T.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(xa.setPointGroupScale,1,1),S.selectAll(".textpoint").call(xa.setTextPointsScale,1,1),S.call(xa.hideOutsideRangePoints,T)}function l(T,m){var k=T.plotinfo,S=k.xaxis,x=k.yaxis,M=S._length,v=x._length,w=!!T.xr1,g=!!T.yr1,c=[];if(w){var A=z1.simpleMap(T.xr0,S.r2l),d=z1.simpleMap(T.xr1,S.r2l),D=A[1]-A[0],E=d[1]-d[0];c[0]=(A[0]*(1-m)+m*d[0]-A[0])/(A[1]-A[0])*M,c[2]=M*(1-m+m*E/D),S.range[0]=S.l2r(A[0]*(1-m)+m*d[0]),S.range[1]=S.l2r(A[1]*(1-m)+m*d[1])}else c[0]=0,c[2]=M;if(g){var R=z1.simpleMap(T.yr0,x.r2l),N=z1.simpleMap(T.yr1,x.r2l),I=R[1]-R[0],F=N[1]-N[0];c[1]=(R[1]*(1-m)+m*N[1]-R[1])/(R[0]-R[1])*v,c[3]=v*(1-m+m*F/I),x.range[0]=S.l2r(R[0]*(1-m)+m*N[0]),x.range[1]=x.l2r(R[1]*(1-m)+m*N[1])}else c[1]=0,c[3]=v;q1.drawOne(r,S,{skipTitle:!0}),q1.drawOne(r,x,{skipTitle:!0}),q1.redrawComponents(r,[S._id,x._id]);var L=w?M/c[2]:1,P=g?v/c[3]:1,O=w?c[0]:0,B=g?c[1]:0,X=w?c[0]/c[2]*M:0,$=g?c[1]/c[3]*v:0,ee=S._offset-X,Y=x._offset-$;k.clipRect.call(xa.setTranslate,O,B).call(xa.setScale,1/L,1/P),k.plot.call(xa.setTranslate,ee,Y).call(xa.setScale,L,P),xa.setPointGroupScale(k.zoomScalePts,1/L,1/P),xa.setTextPointsScale(k.zoomScaleTxt,1/L,1/P)}var u;a&&(u=a());function s(){for(var T={},m=0;mn.duration?(s(),_=window.cancelAnimationFrame(b)):_=window.requestAnimationFrame(b)}return h=Date.now(),_=window.requestAnimationFrame(b),Promise.resolve()}});var zm=be(Rn=>{"use strict";var B1=ot(),OL=Tr(),ds=er(),Qre=fn(),$re=mt(),BL=Df().getModuleCalcData,il=nn(),hi=un(),jre=Ho(),st=ds.ensureSingle;function O1(e,r,t){return ds.ensureSingle(e,r,t,function(n){n.datum(t)})}var ps=hi.zindexSeparator;Rn.name="cartesian";Rn.attr=["xaxis","yaxis"];Rn.idRoot=["x","y"];Rn.idRegex=hi.idRegex;Rn.attrRegex=hi.attrRegex;Rn.attributes=cL();Rn.layoutAttributes=Da();Rn.supplyLayoutDefaults=IL();Rn.transitionAxes=qL();Rn.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,h;for(s=0;s0){var _=p.id;if(_.indexOf(ps)!==-1)continue;_+=ps+(s+1),p=ds.extendFlat({},p,{id:_,plot:a._cartesianlayer.selectAll(".subplot").select("."+_)})}for(var y=[],b,T=0;T1&&(M+=ps+x),S.push(l+M),i=0;i1,h=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.xaxislayer=st(n,"g","xaxislayer-above"),r.yaxislayer=st(n,"g","yaxislayer-above");else{if(!i){var p=st(n,"g","layer-subplot");r.shapelayer=st(p,"g","shapelayer"),r.imagelayer=st(p,"g","imagelayer"),h&&f?(r.minorGridlayer=h.minorGridlayer,r.gridlayer=h.gridlayer,r.zerolinelayer=h.zerolinelayer):(r.minorGridlayer=st(n,"g","minor-gridlayer"),r.gridlayer=st(n,"g","gridlayer"),r.zerolinelayer=st(n,"g","zerolinelayer"));var _=st(n,"g","layer-between");r.shapelayerBetween=st(_,"g","shapelayer"),r.imagelayerBetween=st(_,"g","imagelayer"),st(n,"path","xlines-below"),st(n,"path","ylines-below"),r.overlinesBelow=st(n,"g","overlines-below"),st(n,"g","xaxislayer-below"),st(n,"g","yaxislayer-below"),r.overaxesBelow=st(n,"g","overaxes-below")}r.overplot=st(n,"g","overplot"),r.plot=st(r.overplot,"g",a),h&&f?r.zerolinelayerAbove=h.zerolinelayerAbove:r.zerolinelayerAbove=st(n,"g","zerolinelayer-above"),i||(r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.overlinesAbove=st(n,"g","overlines-above"),st(n,"g","xaxislayer-above"),st(n,"g","yaxislayer-above"),r.overaxesAbove=st(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var y=h.plotgroup,b=a+"-x",T=a+"-y";r.minorGridlayer=h.minorGridlayer,r.gridlayer=h.gridlayer,r.zerolinelayer=h.zerolinelayer,r.zerolinelayerAbove=h.zerolinelayerAbove,st(h.overlinesBelow,"path",b),st(h.overlinesBelow,"path",T),st(h.overaxesBelow,"g",b),st(h.overaxesBelow,"g",T),r.plot=st(h.overplot,"g",a),st(h.overlinesAbove,"path",b),st(h.overlinesAbove,"path",T),st(h.overaxesAbove,"g",b),st(h.overaxesAbove,"g",T),r.xlines=y.select(".overlines-"+l).select("."+b),r.ylines=y.select(".overlines-"+u).select("."+T),r.xaxislayer=y.select(".overaxes-"+l).select("."+b),r.yaxislayer=y.select(".overaxes-"+u).select("."+T)}i||(s||(O1(r.minorGridlayer,"g",r.xaxis._id),O1(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(il.idSort),O1(r.gridlayer,"g",r.xaxis._id),O1(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(il.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function VL(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=B1.select(this);f.remove(),GL(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i{"use strict";var U1=sa();YL.exports={hasLines:U1.hasLines,hasMarkers:U1.hasMarkers,hasText:U1.hasText,isBubble:U1.isBubble,attributes:us(),layoutAttributes:xh(),supplyDefaults:rE(),crossTraceDefaults:iE(),supplyLayoutDefaults:lE(),calc:mm().calc,crossTraceCalc:NE(),arraysToCalcdata:A1(),plot:KE(),colorbar:$E(),formatLabels:eL(),style:Em().style,styleOnSelect:Em().styleOnSelect,hoverPoints:oL(),selectPoints:uL(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:zm(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var JL=be((R1e,ZL)=>{"use strict";var rte=ot(),tte=Gr(),XL=Iy(),qm=er(),nte=qm.strScale,ate=qm.strRotate,ite=qm.strTranslate;ZL.exports=function(r,t,n){var a=r.node(),o=XL[n.arrowhead||0],i=XL[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,h=o.backoff*l+n.standoff,p=i.backoff*u+n.startstandoff,_,y,b,T;if(a.nodeName==="line"){_={x:+r.attr("x1"),y:+r.attr("y1")},y={x:+r.attr("x2"),y:+r.attr("y2")};var m=_.x-y.x,k=_.y-y.y;if(b=Math.atan2(k,m),T=b+Math.PI,h&&p&&h+p>Math.sqrt(m*m+k*k)){R();return}if(h){if(h*h>m*m+k*k){R();return}var S=h*Math.cos(b),x=h*Math.sin(b);y.x+=S,y.y+=x,r.attr({x2:y.x,y2:y.y})}if(p){if(p*p>m*m+k*k){R();return}var M=p*Math.cos(b),v=p*Math.sin(b);_.x-=M,_.y-=v,r.attr({x1:_.x,y1:_.y})}}else if(a.nodeName==="path"){var w=a.getTotalLength(),g="";if(w{"use strict";var KL=ot(),Om=Tr(),ote=fn(),ll=er(),Bm=ll.strTranslate,O0=Et(),gs=Gr(),mo=mt(),QL=Bi(),Um=Bn(),Hm=Ko(),q0=oi(),lte=yt().arrayEditor,ste=JL();eD.exports={draw:ute,drawOne:$L,drawRaw:jL};function ute(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Xe="right":Xe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Xe]}for(var j=!1,V=["x","y"],re=0;re1)&&(ue===ne?(xe=ye.r2fraction(r["a"+H]),(xe<0||xe>1)&&(j=!0)):j=!0),J=ye._offset+ye.r2p(r[H]),ce=.5}else{var me=ve==="domain";H==="x"?(ae=r[H],J=me?ye._offset+ye._length*ae:J=l.l+l.w*ae):(ae=1-r[H],J=me?ye._offset+ye._length*ae:J=l.t+l.h*ae),ce=r.showarrow?.5:ae}if(r.showarrow){ie.head=J;var de=r["a"+H];if(pe=Me*se(.5,r.xanchor)-ge*se(.5,r.yanchor),ue===ne){var _e=O0.getRefType(ue);_e==="domain"?(H==="y"&&(de=1-de),ie.tail=ye._offset+ye._length*de):_e==="paper"?H==="y"?(de=1-de,ie.tail=l.t+l.h*de):ie.tail=l.l+l.w*de:ie.tail=ye._offset+ye.r2p(de),te=pe}else ie.tail=J+de,te=pe+de;ie.text=ie.tail+pe;var Ae=i[H==="x"?"width":"height"];if(ne==="paper"&&(ie.head=ll.constrain(ie.head,1,Ae-1)),ue==="pixel"){var Ie=-Math.max(ie.tail-3,ie.text),De=Math.min(ie.tail+3,ie.text)-Ae;Ie>0?(ie.tail+=Ie,ie.text+=Ie):De>0&&(ie.tail-=De,ie.text-=De)}ie.tail+=Fe,ie.head+=Fe}else pe=Ee*se(ce,Ce),te=pe,ie.text=J+pe;ie.text+=Fe,pe+=Fe,te+=Fe,r["_"+H+"padplus"]=Ee/2+te,r["_"+H+"padminus"]=Ee/2-te,r["_"+H+"size"]=Ee,r["_"+H+"shift"]=pe}if(j){w.remove();return}var We=0,Oe=0;if(r.align!=="left"&&(We=(q-ee)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Oe=(Q-Y)*(r.valign==="middle"?.5:1)),X)B.select("svg").attr({x:A+We-1,y:A+Oe}).call(mo.setClipUrl,D?b:null,e);else{var ze=A+Oe-$.top,Be=A+We-$.left;I.call(Um.positionText,Be,ze).call(mo.setClipUrl,D?b:null,e)}E.select("rect").call(mo.setRect,A,A,q,Q),d.call(mo.setRect,g/2,g/2,oe-g,Z-g),w.call(mo.setTranslate,Math.round(T.x.text-oe/2),Math.round(T.y.text-Z/2)),S.attr({transform:"rotate("+m+","+T.x.text+","+T.y.text+")"});var Se=function(Ye,Xe){k.selectAll(".annotation-arrow-g").remove();var $e=T.x.head,Qe=T.y.head,je=T.x.tail+Ye,ir=T.y.tail+Xe,yr=T.x.text+Ye,xr=T.y.text+Xe,wr=ll.rotationXYMatrix(m,yr,xr),$r=ll.apply2DTransform(wr),_r=ll.apply2DTransform2(wr),Nr=+d.attr("width"),et=+d.attr("height"),Sr=yr-.5*Nr,qr=Sr+Nr,gt=xr-.5*et,Hr=gt+et,Zr=[[Sr,gt,Sr,Hr],[Sr,Hr,qr,Hr],[qr,Hr,qr,gt],[qr,gt,Sr,gt]].map(_r);if(!Zr.reduce(function(vt,Mt){return vt^!!ll.segmentsIntersect($e,Qe,$e+1e6,Qe+1e6,Mt[0],Mt[1],Mt[2],Mt[3])},!1)){Zr.forEach(function(vt){var Mt=ll.segmentsIntersect(je,ir,$e,Qe,vt[0],vt[1],vt[2],vt[3]);Mt&&(je=Mt.x,ir=Mt.y)});var zt=r.arrowwidth,nr=r.arrowcolor,Pr=r.arrowside,Kr=k.append("g").style({opacity:gs.opacity(nr)}).classed("annotation-arrow-g",!0),Er=Kr.append("path").attr("d","M"+je+","+ir+"L"+$e+","+Qe).style("stroke-width",zt+"px").call(gs.stroke,gs.rgb(nr));if(ste(Er,Pr,r),u.annotationPosition&&Er.node().parentNode&&!n){var Qr=$e,Dt=Qe;if(r.standoff){var at=Math.sqrt(Math.pow($e-je,2)+Math.pow(Qe-ir,2));Qr+=r.standoff*(je-$e)/at,Dt+=r.standoff*(ir-Qe)/at}var $t=Kr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(je-Qr)+","+(ir-Dt),transform:Bm(Qr,Dt)}).style("stroke-width",zt+6+"px").call(gs.stroke,"rgba(0,0,0,0)").call(gs.fill,"rgba(0,0,0,0)"),Zt,Rt;q0.init({element:$t.node(),gd:e,prepFn:function(){var vt=mo.getTranslate(w);Zt=vt.x,Rt=vt.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(vt,Mt){var jt=$r(Zt,Rt),ea=jt[0]+vt,Nn=jt[1]+Mt;w.call(mo.setTranslate,ea,Nn),_("x",ol(a,vt,"x",l,r)),_("y",ol(o,Mt,"y",l,r)),r.axref===r.xref&&_("ax",ol(a,vt,"ax",l,r)),r.ayref===r.yref&&_("ay",ol(o,Mt,"ay",l,r)),Kr.attr("transform",Bm(vt,Mt)),S.attr({transform:"rotate("+m+","+ea+","+Nn+")"})},doneFn:function(){Om.call("_guiRelayout",e,y());var vt=document.querySelector(".js-notes-box-panel");vt&&vt.redraw(vt.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Le;q0.init({element:w.node(),gd:e,prepFn:function(){Le=S.attr("transform")},moveFn:function(Ye,Xe){var $e="pointer";if(r.showarrow)r.axref===r.xref?_("ax",ol(a,Ye,"ax",l,r)):_("ax",r.ax+Ye),r.ayref===r.yref?_("ay",ol(o,Xe,"ay",l.w,r)):_("ay",r.ay+Xe),Se(Ye,Xe);else{if(n)return;var Qe,je;if(a)Qe=ol(a,Ye,"x",l,r);else{var ir=r._xsize/l.w,yr=r.x+(r._xshift-r.xshift)/l.w-ir/2;Qe=q0.align(yr+Ye/l.w,ir,0,1,r.xanchor)}if(o)je=ol(o,Xe,"y",l,r);else{var xr=r._ysize/l.h,wr=r.y-(r._yshift+r.yshift)/l.h-xr/2;je=q0.align(wr-Xe/l.h,xr,0,1,r.yanchor)}_("x",Qe),_("y",je),(!a||!o)&&($e=q0.getCursor(a?.5:Qe,o?.5:je,r.xanchor,r.yanchor))}S.attr({transform:Bm(Ye,Xe)+Le}),Hm(w,$e)},clickFn:function(Ye,Xe){r.captureevents&&e.emit("plotly_clickannotation",v(Xe))},doneFn:function(){Hm(w),Om.call("_guiRelayout",e,y());var Ye=document.querySelector(".js-notes-box-panel");Ye&&Ye.redraw(Ye.selectedObj)}})}}u.annotationText?I.call(Um.makeEditable,{delegate:w,gd:e}).call(F).on("edit",function(P){r.text=P,this.call(F),_("text",P),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),Om.call("_guiRelayout",e,y())}):I.call(F)}});var oD=be((F1e,iD)=>{"use strict";var rD=er(),fte=Tr(),tD=yt().arrayEditor;iD.exports={hasClickToShow:cte,onClick:hte};function cte(e,r){var t=aD(e,r);return t.on.length>0||t.explicitOff.length>0}function hte(e,r){var t=aD(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l{"use strict";var Vm=er(),zu=Gr();lD.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=zu.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Vm.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var h=a("arrowside"),p,_;h.indexOf("end")!==-1&&(p=a("arrowhead"),_=a("arrowsize")),h.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",_)),a("arrowcolor",l?t.bordercolor:zu.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var y=a("hovertext"),b=n.hoverlabel||{};if(y){var T=a("hoverlabel.bgcolor",b.bgcolor||(zu.opacity(o)?zu.rgb(o):zu.defaultLine)),m=a("hoverlabel.bordercolor",b.bordercolor||zu.contrast(T)),k=Vm.extendFlat({},b.font);k.color||(k.color=m),Vm.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!y)}});var uD=be((N1e,sD)=>{"use strict";var Ym=er(),ys=Et(),vte=ai(),dte=Gm(),pte=Su();sD.exports=function(r,t){vte(r,t,{name:"annotations",handleItemDefaults:gte})};function gte(e,r,t){function n(S,x){return Ym.coerce(e,r,pte,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){dte(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var h=l[f],p=ys.coerceRef(e,r,s,h,"","paper");if(p!=="paper"){var _=ys.getFromId(s,p);_._annIndices.push(r._index)}if(ys.coercePosition(r,s,n,p,h,.5),i){var y="a"+h,b=ys.coerceRef(e,r,s,y,"pixel",["pixel","paper"]);b!=="pixel"&&b!==p&&(b=r[y]="pixel");var T=b==="pixel"?u[f]:.4;ys.coercePosition(r,s,n,b,y,T)}n(h+"anchor"),n(h+"shift")}if(Ym.noneOrAll(e,r,["x","y"]),i&&Ym.noneOrAll(e,r,["ax","ay"]),o){var m=n("xclick"),k=n("yclick");r._xclick=m===void 0?r.x:ys.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:ys.cleanPosition(k,s,r.yref)}}}});var hD=be((z1e,cD)=>{"use strict";var Wm=er(),ms=Et(),yte=H1().draw;cD.exports=function(r){var t=r._fullLayout,n=Wm.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Wm.syncOrAsync([yte,mte],r)};function mte(e){var r=e._fullLayout;Wm.filterVisible(r.annotations).forEach(function(t){var n=ms.getFromId(e,t.xref),a=ms.getFromId(e,t.yref),o=ms.getRefType(t.xref),i=ms.getRefType(t.yref);t._extremes={},o==="range"&&fD(t,n),i==="range"&&fD(t,a)})}function fD(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],h=3*e.arrowsize*e.arrowwidth||0,p=h+f,_=h-f,y=3*e.startarrowsize*e.arrowwidth||0,b=y+f,T=y-f,m;if(l===i){var k=ms.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:_}),S=ms.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,b),ppadminus:Math.max(s,T)});m={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else b=o?b+o:b,T=o?T-o:T,m=ms.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,b),ppadminus:Math.max(s,_,T)});e._extremes[t]=m}});var dD=be((q1e,vD)=>{"use strict";var xte=nt(),bte=Bc();vD.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function h(_){var y=s[_],b=null;o?b=bte(y,t.range):b=Math.pow(10,y),xte(b)||(b=null),a(f+_,b)}for(var p=0;p{"use strict";var Xm=H1(),pD=oD();gD.exports={moduleType:"component",name:"annotations",layoutAttributes:Su(),supplyLayoutDefaults:uD(),includeBasePlot:b0()("annotations"),calcAutorange:hD(),draw:Xm.draw,drawOne:Xm.drawOne,drawRaw:Xm.drawRaw,hasClickToShow:pD.hasClickToShow,onClick:pD.onClick,convertCoords:dD()}});var V1=be((B1e,mD)=>{"use strict";var wt=Su(),_te=On().overrideAll,wte=yt().templatedArray;mD.exports=_te(wte("annotation",{visible:wt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:wt.xanchor,xshift:wt.xshift,yanchor:wt.yanchor,yshift:wt.yshift,text:wt.text,textangle:wt.textangle,font:wt.font,width:wt.width,height:wt.height,opacity:wt.opacity,align:wt.align,valign:wt.valign,bgcolor:wt.bgcolor,bordercolor:wt.bordercolor,borderpad:wt.borderpad,borderwidth:wt.borderwidth,showarrow:wt.showarrow,arrowcolor:wt.arrowcolor,arrowhead:wt.arrowhead,startarrowhead:wt.startarrowhead,arrowside:wt.arrowside,arrowsize:wt.arrowsize,startarrowsize:wt.startarrowsize,arrowwidth:wt.arrowwidth,standoff:wt.standoff,startstandoff:wt.startstandoff,hovertext:wt.hovertext,hoverlabel:wt.hoverlabel,captureevents:wt.captureevents}),"calc","from-root")});var bD=be((U1e,xD)=>{"use strict";var Zm=er(),Mte=Et(),Tte=ai(),Ate=Gm(),kte=V1();xD.exports=function(r,t,n){Tte(r,t,{name:"annotations",handleItemDefaults:Ste,fullLayout:n.fullLayout})};function Ste(e,r,t,n){function a(l,u){return Zm.coerce(e,r,kte,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Mte.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(Ate(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),Zm.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),Zm.noneOrAll(e,r,["ax","ay"])))}});var TD=be((H1e,MD)=>{"use strict";var _D=er(),wD=Et();MD.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function Jm(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function Ete(e,r){var t=Jm(e.projection,Jm(e.view,Jm(e.model,[r[0],r[1],r[2],1])));return t}AD.exports=Ete});var SD=be((G1e,kD)=>{"use strict";var Lte=H1().drawRaw,Dte=Km(),Rte=["x","y","z"];kD.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=Dte(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),Lte(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var LD=be((Y1e,ED)=>{"use strict";var Pte=Tr(),CD=er();ED.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:V1()}}},layoutAttributes:V1(),handleDefaults:bD(),includeBasePlot:Fte,convert:TD(),draw:SD()};function Fte(e,r){var t=Pte.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var W1e=un(),DD=Sn(),RD=us().line,Ite=Ro().dash,vi=Tt().extendFlat,Nte=yt().templatedArray,X1e=m0(),qu=Cn(),PD=Su(),{shapeTexttemplateAttrs:zte,templatefallbackAttrs:qte}=ja(),Ote=Qc();FD.exports=Nte("shape",{visible:vi({},qu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:vi({},qu.legend,{editType:"calc+arraydraw"}),legendgroup:vi({},qu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:vi({},qu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:DD({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:vi({},qu.legendrank,{editType:"calc+arraydraw"}),legendwidth:vi({},qu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:vi({},PD.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:vi({},PD.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:vi({},RD.color,{editType:"arraydraw"}),width:vi({},RD.width,{editType:"calc+arraydraw"}),dash:vi({},Ite,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:zte({},{keys:Object.keys(Ote)}),texttemplatefallback:qte({editType:"arraydraw"}),font:DD({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var ND=be((J1e,ID)=>{"use strict";var Ou=er(),ba=Et(),Bte=ai(),Ute=Qm(),B0=rl();ID.exports=function(r,t){Bte(r,t,{name:"shapes",handleItemDefaults:Vte})};function Hte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Vte(e,r,t){function n(S,x){return Ou.coerce(e,r,Ute,S,x)}r._isShape=!0;var a=n("visible");if(!a)return;var o=n("showlegend");n("legend"),n("legendgroup"),o&&(n("legendwidth"),n("legendgrouptitle.text"),Ou.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var h=n("xsizemode"),p=n("ysizemode");let _=[.25,.75],y=[0,10];["x","y"].forEach(S=>{var x=S+"anchor",M=S==="x"?h:p,v={_fullLayout:t},w,g,c,A;let d=S+"ref",D=e[d];if(Array.isArray(D)&&D.length>0){let E=B0.countDefiningCoords(u,i,S);A=ba.coerceRefArray(e,r,v,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=ba.coerceRef(e,r,v,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){ba.getRefType(E)==="range"&&(w=ba.getFromId(v,E),w&&w._shapeIndices.indexOf(r._index)===-1&&w._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let R=A[E];ba.getRefType(R)==="range"?(w=ba.getFromId(v,R),g=B0.shapePositionToRange(w),c=B0.rangeToShapePosition(w),(w.type==="category"||w.type==="multicategory")&&n(S+E+"shift")):g=c=Ou.identity;let I=S+E,F=e[I];if(e[I]=g(e[I],!0),M==="pixel"?n(I,y[E]):ba.coercePosition(r,v,n,R,I,_[E]),r[I]=c(r[I]),e[I]=F,E===0&&M==="pixel"){let L=e[x];e[x]=g(e[x],!0),ba.coercePosition(r,v,n,R,x,.25),r[x]=c(r[x]),e[x]=L}});else{if(ba.getRefType(A)==="range"?(w=ba.getFromId(v,A),w._shapeIndices.push(r._index),c=B0.rangeToShapePosition(w),g=B0.shapePositionToRange(w),s&&(w.type==="category"||w.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):g=c=Ou.identity,s){let R=S+"0",N=S+"1",I=e[R],F=e[N];e[R]=g(e[R],!0),e[N]=g(e[N],!0),M==="pixel"?(n(R,y[0]),n(N,y[1])):(ba.coercePosition(r,v,n,A,R,_[0]),ba.coercePosition(r,v,n,A,N,_[1])),r[R]=c(r[R]),r[N]=c(r[N]),e[R]=I,e[N]=F}if(M==="pixel"){let R=e[x];e[x]=g(e[x],!0),ba.coercePosition(r,v,n,A,x,.25),r[x]=c(r[x]),e[x]=R}}}),s&&Ou.noneOrAll(e,r,["x0","x1","y0","y1"]);var b=u==="line",T,m;if(s&&(T=n("label.texttemplate"),n("label.texttemplatefallback")),T||(m=n("label.text")),m||T){n("label.textangle");var k=n("label.textposition",b?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Hte(b,k)),n("label.padding"),Ou.coerceFont(n,"label.font",t.font)}}});var OD=be((K1e,qD)=>{"use strict";var Gte=Gr(),zD=er();function Yte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}qD.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),zD.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Gte.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Yte(i,s)),n("newshape.label.padding"),zD.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var WD=be((Q1e,YD)=>{"use strict";var $m=er(),Ya=Et(),Ji=$f(),jm=rl();YD.exports=function(r){var t=r._fullLayout,n=$m.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a{i=Ya.getFromId(r,h),o._extremes[i._id]=Ya.findExtremes(i,p,UD(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=Ya.getFromId(r,o.xref),l=VD(i,o,Ji.paramIsX),l&&(o._extremes[i._id]=Ya.findExtremes(i,l,UD(o))));if(s==="array"){let f=BD(r,o,"y");Object.entries(f).forEach(([h,p])=>{i=Ya.getFromId(r,h),o._extremes[i._id]=Ya.findExtremes(i,p,HD(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=Ya.getFromId(r,o.yref),l=VD(i,o,Ji.paramIsY),l&&(o._extremes[i._id]=Ya.findExtremes(i,l,HD(o))))}};function BD(e,r,t){let n=r[t+"ref"],a=t==="x"?Ji.paramIsX:Ji.paramIsY;function o(h,p){h==="paper"||Ya.getRefType(h)==="domain"||(i[h]||(i[h]=[]),i[h].push(p))}let i={};if(r.type==="path"&&r.path){let h=r.path.match(Ji.segmentRE)||[];for(var l=0,u=0;uy&&(o(n[l],b[y]),l++)}}else o(n[0],r[t+"0"]),o(n[1],r[t+"1"]);let s={};for(let h in i){let p=Ya.getFromId(e,h);if(p){var f=p.type==="category"||p.type==="multicategory"?p.r2c:p.d2c;p.type==="date"&&(f=jm.decodeDate(f)),s[p._id]=i[h].map(f)}}return s}function UD(e){return GD(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function HD(e){return GD(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function GD(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?jm.extractPathCoords(a,o?Ji.paramIsY:Ji.paramIsX):[t,n],s=$m.aggNums(Math.max,null,u),f=$m.aggNums(Math.min,null,u),h=f<0?Math.abs(f)+i:i,p=s>0?s+i:i;return{ppad:i,ppadplus:l?h:p,ppadminus:l?p:h}}else return{ppad:i}}function VD(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var h=1/0,p=-1/0,_=r.path.match(Ji.segmentRE),y,b,T,m,k;for(e.type==="date"&&(s=jm.decodeDate(s)),y=0;y<_.length;y++)b=_[y],T=t[b.charAt(0)].drawn,T!==void 0&&(m=_[y].slice(1).match(Ji.paramRE),!(!m||m.lengthp&&(p=k)));if(p>=h)return[h,p]}}});var JD=be(($1e,ZD)=>{"use strict";var XD=Fv();ZD.exports={moduleType:"component",name:"shapes",layoutAttributes:Qm(),supplyLayoutDefaults:ND(),supplyDrawNewShapeDefaults:OD(),includeBasePlot:b0()("shapes"),calcAutorange:WD(),draw:XD.draw,drawOne:XD.drawOne}});var e3=be((ede,QD)=>{"use strict";var KD=un(),Wte=yt().templatedArray,j1e=m0();QD.exports=Wte("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",KD.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",KD.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var jD=be((rde,$D)=>{"use strict";var Xte=er(),r3=Et(),Zte=ai(),Jte=e3(),Kte="images";$D.exports=function(r,t){var n={name:Kte,handleItemDefaults:Qte};Zte(r,t,n)};function Qte(e,r,t){function n(p,_){return Xte.coerce(e,r,Jte,p,_)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=r3.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var h=r3.getFromId(i,f);h._imgIndices.push(r._index)}r3.coercePosition(r,i,n,f,s,0)}return r}});var nR=be((tde,tR)=>{"use strict";var eR=ot(),$te=mt(),Bu=Et(),rR=nn(),jte=Ho();tR.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var aR=nt(),ene=Bc();iR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,h=0;h{"use strict";lR.exports={moduleType:"component",name:"images",layoutAttributes:e3(),supplyLayoutDefaults:jD(),includeBasePlot:b0()("images"),draw:nR(),convertCoords:oR()}});var G1=be((ide,uR)=>{"use strict";uR.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var t3=be((ode,cR)=>{"use strict";var rne=Sn(),tne=Si(),nne=Tt().extendFlat,ane=On().overrideAll,ine=$c(),fR=yt().templatedArray,one=fR("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});cR.exports=ane(fR("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:one,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:nne(ine({editType:"arraydraw"}),{}),font:rne({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:tne.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var pR=be((lde,dR)=>{"use strict";var Y1=er(),hR=ai(),vR=t3(),lne=G1(),sne=lne.name,une=vR.buttons;dR.exports=function(r,t){var n={name:sne,handleItemDefaults:fne};hR(r,t,n)};function fne(e,r,t){function n(i,l){return Y1.coerce(e,r,vR,i,l)}var a=hR(e,r,{name:"buttons",handleItemDefaults:cne}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Y1.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Y1.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function cne(e,r){function t(a,o){return Y1.coerce(e,r,une,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var mR=be((sde,yR)=>{"use strict";yR.exports=Pt;var di=ot(),gR=Gr(),Uu=mt(),W1=er();function Pt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Pt.barWidth=2;Pt.barLength=20;Pt.barRadius=2;Pt.barPad=1;Pt.barColor="#808BA4";Pt.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,h=this.position.direction,p=h==="down",_=h==="left",y=h==="right",b=h==="up",T=u,m=f,k,S,x,M;!p&&!_&&!y&&!b&&(this.position.direction="down",p=!0);var v=p||b;v?(k=l,S=k+T,p?(x=s,M=Math.min(x+m,i),m=M-x):(M=s+m,x=Math.max(M-m,0),m=M-x)):(x=s,M=x+m,_?(S=l+T,k=Math.max(S-T,0),T=S-k):(k=l,S=Math.min(k+T,o),T=S-k)),this._box={l:k,t:x,w:T,h:m};var w=u>T,g=Pt.barLength+2*Pt.barPad,c=Pt.barWidth+2*Pt.barPad,A=l,d=s+f;d+c>i&&(d=i-c);var D=this.container.selectAll("rect.scrollbar-horizontal").data(w?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(gR.fill,Pt.barColor),w?(this.hbar=D.attr({rx:Pt.barRadius,ry:Pt.barRadius,x:A,y:d,width:g,height:c}),this._hbarXMin=A+g/2,this._hbarTranslateMax=T-g):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>m,R=Pt.barWidth+2*Pt.barPad,N=Pt.barLength+2*Pt.barPad,I=l+u,F=s;I+R>o&&(I=o-R);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(gR.fill,Pt.barColor),E?(this.vbar=L.attr({rx:Pt.barRadius,ry:Pt.barRadius,x:I,y:F,width:R,height:N}),this._vbarYMin=F+N/2,this._vbarTranslateMax=m-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,O=k-.5,B=E?S+R+.5:S+.5,X=x-.5,$=w?M+c+.5:M+.5,ee=a._topdefs.selectAll("#"+P).data(w||E?[0]:[]);if(ee.exit().remove(),ee.enter().append("clipPath").attr("id",P).append("rect"),w||E?(this._clipRect=ee.select("rect").attr({x:Math.floor(O),y:Math.floor(X),width:Math.ceil(B)-Math.floor(O),height:Math.ceil($)-Math.floor(X)}),this.container.call(Uu.setClipUrl,P,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Uu.setClipUrl,null),delete this._clipRect),w||E){var Y=di.behavior.drag().on("dragstart",function(){di.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Y);var q=di.behavior.drag().on("dragstart",function(){di.event.sourceEvent.preventDefault(),di.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));w&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Pt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Uu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Pt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=di.event.dx),this.vbar&&(t-=di.event.dy),this.setTranslate(r,t)};Pt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=di.event.deltaY),this.vbar&&(t+=di.event.deltaY),this.setTranslate(r,t)};Pt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=W1.constrain(di.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=W1.constrain(di.event.y,u,s),h=(f-u)/(s-u),p=this.position.h-this._box.h;t=h*p}this.setTranslate(r,t)};Pt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=W1.constrain(r||0,0,n),t=W1.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Uu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=r/n;this.hbar.call(Uu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Uu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var CR=be((ude,SR)=>{"use strict";var Hu=ot(),U0=fn(),H0=Gr(),Vu=mt(),_a=er(),X1=Bn(),hne=yt().arrayEditor,bR=En().LINE_SPACING,kr=G1(),vne=mR();SR.exports=function(r){var t=r._fullLayout,n=_a.filterVisible(t[kr.name]);function a(p){U0.autoMargin(r,AR(p))}var o=t._menulayer.selectAll("g."+kr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(kr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Hu.select(this).selectAll("g."+kr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+kr.headerGroupClassName).data(n,dne);i.enter().append("g").classed(kr.headerGroupClassName,!0);for(var l=_a.ensureSingle(o,"g",kr.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u{"use strict";var _ne=G1();ER.exports={moduleType:"component",name:_ne.name,layoutAttributes:t3(),supplyLayoutDefaults:pR(),draw:CR()}});var G0=be((cde,DR)=>{"use strict";DR.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var o3=be((hde,FR)=>{"use strict";var RR=Sn(),wne=$c(),Mne=Tt().extendDeepAll,Tne=On().overrideAll,Ane=_f(),PR=yt().templatedArray,xs=G0(),kne=PR("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});FR.exports=Tne(PR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:kne,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Mne(wne({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Ane.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:RR({})},font:RR({}),activebgcolor:{valType:"color",dflt:xs.gripBgActiveColor},bgcolor:{valType:"color",dflt:xs.railBgColor},bordercolor:{valType:"color",dflt:xs.railBorderColor},borderwidth:{valType:"number",min:0,dflt:xs.railBorderWidth},ticklen:{valType:"number",min:0,dflt:xs.tickLength},tickcolor:{valType:"color",dflt:xs.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:xs.minorTickLength}}),"arraydraw","from-root")});var qR=be((vde,zR)=>{"use strict";var Gu=er(),IR=ai(),NR=o3(),Sne=G0(),Cne=Sne.name,Ene=NR.steps;zR.exports=function(r,t){IR(r,t,{name:Cne,handleItemDefaults:Lne})};function Lne(e,r,t){function n(h,p){return Gu.coerce(e,r,NR,h,p)}for(var a=IR(e,r,{name:"steps",handleItemDefaults:Dne}),o=0,i=0;i{"use strict";var pi=ot(),Z1=fn(),sl=Gr(),gi=mt(),wa=er(),Rne=wa.strTranslate,Y0=Bn(),Pne=yt().arrayEditor,Br=G0(),u3=En(),UR=u3.LINE_SPACING,l3=u3.FROM_TL,s3=u3.FROM_BR;XR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Fne(n,r),o=n._infolayer.selectAll("g."+Br.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Br.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Z1.autoMargin(r,HR(f))}if(o.exit().each(function(){pi.select(this).selectAll("g."+Br.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Br.groupClassName).data(a,Ine);l.enter().append("g").classed(Br.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",Rne(i-Br.gripWidth*.5,r._dims.currentValueTotalHeight))}}function f3(e,r){var t=e._dims;return t.inputAreaStart+Br.stepInset+(t.inputAreaLength-2*Br.stepInset)*Math.min(1,Math.max(0,r))}function BR(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Br.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Br.stepInset-2*t.inputAreaStart)))}function Hne(e,r,t){var n=t._dims,a=wa.ensureSingle(e,"rect",Br.railTouchRectClass,function(o){o.call(YR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Br.tickOffset+t.ticklen+n.labelHeight)}).call(sl.fill,t.bgcolor).attr("opacity",0),gi.setTranslate(a,0,n.currentValueTotalHeight)}function Vne(e,r){var t=r._dims,n=t.inputAreaLength-Br.railInset*2,a=wa.ensureSingle(e,"rect",Br.railRectClass);a.attr({width:n,height:Br.railWidth,rx:Br.railRadius,ry:Br.railRadius,"shape-rendering":"crispEdges"}).call(sl.stroke,r.bordercolor).call(sl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),gi.setTranslate(a,Br.railInset,(t.inputAreaWidth-Br.railWidth)*.5+t.currentValueTotalHeight)}});var KR=be((pde,JR)=>{"use strict";var Gne=G0();JR.exports={moduleType:"component",name:Gne.name,layoutAttributes:o3(),supplyLayoutDefaults:qR(),draw:ZR()}});var K1=be((gde,$R)=>{"use strict";var QR=Si();$R.exports={bgcolor:{valType:"color",dflt:QR.background,editType:"plot"},bordercolor:{valType:"color",dflt:QR.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var c3=be((yde,jR)=>{"use strict";jR.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Q1=be((mde,eP)=>{"use strict";eP.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var nP=be(j1=>{"use strict";var Yne=nn(),Wne=Bn(),rP=Q1(),Xne=En().LINE_SPACING,$1=rP.name;function tP(e){var r=e&&e[$1];return r&&r.visible}j1.isVisible=tP;j1.makeData=function(e){for(var r=Yne.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var ed=er(),aP=yt(),iP=nn(),Zne=K1(),Jne=c3();oP.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;ed.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=aP.newContainer(o,"rangeslider");function u(M,v){return ed.coerce(i,l,Zne,M,v)}var s,f;function h(M,v){return ed.coerce(s,f,Jne,M,v)}var p=u("visible");if(p){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var _=t._subplots;if(_)for(var y=_.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===iP.name2id(n)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),b=ed.simpleMap(y,iP.id2name),T=0;T{"use strict";var Kne=nn().list,Qne=fu().getAutoRange,$ne=Q1();sP.exports=function(r){for(var t=Kne(r,"x",!0),n=0;n{"use strict";var rd=ot(),jne=Tr(),eae=fn(),Ot=er(),td=Ot.strTranslate,cP=mt(),ul=Gr(),rae=zf(),tae=zm(),h3=nn(),nae=oi(),aae=Ko(),Xr=Q1();hP.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)I=d[F+1];else if(N=L.pmax)I=d[F+1];else if(N0?e.touches[0].clientX:0}function iae(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Xr.slideBoxClassName).node(),o=e.select("rect."+Xr.grabAreaMinClassName).node(),i=e.select("rect."+Xr.grabAreaMaxClassName).node();function l(){var u=rd.event,s=u.target,f=fP(u),h=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),_=n.d2p(t._rl[1]),y=nae.coverSlip();this.addEventListener("touchmove",b),this.addEventListener("touchend",T),y.addEventListener("mousemove",b),y.addEventListener("mouseup",T);function b(m){var k=fP(m),S=+k-f,x,M,v;switch(s){case a:if(v="ew-resize",p+S>t._length||_+S<0)return;x=p+S,M=_+S;break;case o:if(v="col-resize",p+S>t._length)return;x=p+S,M=_;break;case i:if(v="col-resize",_+S<0)return;x=p,M=_+S;break;default:v="ew-resize",x=h,M=h+S;break}if(M{"use strict";var pae=er(),gae=K1(),yae=c3(),v3=nP();dP.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:pae.extendFlat({},gae,{yaxis:yae})}}},layoutAttributes:K1(),handleDefaults:lP(),calcAutorange:uP(),draw:vP(),isVisible:v3.isVisible,makeData:v3.makeData,autoMarginOpts:v3.autoMarginOpts}});var nd=be((Tde,yP)=>{"use strict";var mae=Sn(),gP=Si(),xae=yt().templatedArray,bae=xae("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});yP.exports={visible:{valType:"boolean",editType:"plot"},buttons:bae,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:mae({editType:"plot"}),bgcolor:{valType:"color",dflt:gP.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:gP.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var d3=be((Ade,mP)=>{"use strict";mP.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var _P=be((kde,bP)=>{"use strict";var ad=er(),_ae=Gr(),wae=yt(),Mae=ai(),xP=nd(),p3=d3();bP.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=wae.newContainer(t,"rangeselector");function u(_,y){return ad.coerce(i,l,xP,_,y)}var s=Mae(i,l,{name:"buttons",handleItemDefaults:Tae,calendar:o}),f=u("visible",s.length>0);if(f){var h=Aae(t,n,a);u("x",h[0]),u("y",h[1]),ad.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),ad.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",_ae.contrast(p,p3.lightAmount,p3.darkAmount)),u("bordercolor"),u("borderwidth")}};function Tae(e,r,t,n){var a=n.calendar;function o(u,s){return ad.coerce(e,r,xP.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function Aae(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var kae=dp(),Sae=er().titleCase;wP.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=Cae(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function Cae(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=kae["utc"+Sae(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var DP=be((Cde,LP)=>{"use strict";var od=ot(),Eae=Tr(),Lae=fn(),TP=Gr(),EP=mt(),xo=er(),AP=xo.strTranslate,id=Bn(),Dae=nn(),m3=En(),kP=m3.LINE_SPACING,SP=m3.FROM_TL,CP=m3.FROM_BR,y3=d3(),Rae=MP();LP.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Pae(r),Fae);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=od.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(xo.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=od.select(this),h=Rae(i,s);s._isActive=Iae(i,s,h),f.call(g3,l,s),f.call(zae,l,s,r),f.on("click",function(){r._dragged||Eae.call("_guiRelayout",r,h)}),f.on("mouseover",function(){s._isHovered=!0,f.call(g3,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(g3,l,s)})}),Oae(r,u,l,i._name,o)})};function Pae(e){for(var r=Dae.list(e,"x",!0),t=[],n=0;n{"use strict";RP.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:nd()}}},layoutAttributes:nd(),handleDefaults:_P(),draw:DP()}});var ld=be(x3=>{"use strict";var FP=Tt().extendFlat;x3.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",o=r.description?" "+r.description:"",i={x:FP({},t,{}),y:FP({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};x3.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l{"use strict";var Bae=er(),Uae=Bs().counter,Hae=ld().attributes,IP=un().idRegex,Vae=yt(),b3={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Uae("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[IP.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[IP.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Hae({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function sd(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function Gae(e,r){var t=e.grid||{},n=sd(r,t,"x"),a=sd(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var h=Vae.newContainer(r,"grid");function p(v,w){return Bae.coerce(t,h,b3,v,w)}var _=p("rows",s),y=p("columns",f);if(!(_*y>1)){delete r.grid;return}if(!o&&!i&&!l){var b=p("pattern")==="independent";b&&(o=!0)}h._hasSubplotGrid=o;var T=p("roworder"),m=T==="top to bottom",k=o?.2:.1,S=o?.3:.1,x,M;u&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),h._domains={x:NP("x",p,k,x,y),y:NP("y",p,S,M,_,m)}}function NP(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),h=f*(1-i),p=0;p{"use strict";BP.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var VP=be((Pde,HP)=>{"use strict";var UP=nt(),Wae=Tr(),Xae=er(),Zae=yt(),Jae=_3();HP.exports=function(e,r,t,n){var a="error_"+n.axis,o=Zae.newContainer(r,a),i=e[a]||{};function l(y,b){return Xae.coerce(i,o,Jae,y,b)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),h=!0;f!=="sqrt"&&(h=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),h||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),h||l("valueminus"));var p="copy_"+n.inherit+"style";if(n.inherit){var _=r["error_"+n.inherit];(_||{}).visible&&l(p,!(i.color||UP(i.thickness)||UP(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",Wae.traceIs(r,"gl3d")?0:4))}}});var w3=be((Fde,YP)=>{"use strict";YP.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var h=+a[f];return[h,h]};var o=r.arrayminus||[];return function(s,f){var h=+a[f],p=+o[f];return!isNaN(h)||!isNaN(p)?[p||0,h||0]:[NaN,NaN]}}else{var i=GP(t,r.value),l=GP(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function GP(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var ZP=be((Ide,XP)=>{"use strict";var M3=nt(),Kae=Tr(),T3=Et(),Qae=er(),$ae=w3();XP.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var JP=ot(),fl=nt(),jae=mt(),eie=sa();KP.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var h=f[0].trace,p=h.error_x||{},_=h.error_y||{},y;h.ids&&(y=function(k){return k.id});var b=eie.hasMarkers(h)&&h.marker.maxdisplayed>0;!_.visible&&!p.visible&&(f=[]);var T=JP.select(this).selectAll("g.errorbar").data(f,y);if(T.exit().remove(),!!f.length){p.visible||T.selectAll("path.xerror").remove(),_.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var m=T.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(a.duration).style("opacity",1),jae.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=JP.select(this),x=rie(k,i,l);if(!(b&&!k.vis)){var M,v=S.select("path.yerror");if(_.visible&&fl(x.x)&&fl(x.yh)&&fl(x.ys)){var w=_.width;M="M"+(x.x-w)+","+x.yh+"h"+2*w+"m-"+w+",0V"+x.ys,x.noYS||(M+="m-"+w+",0h"+2*w),o=!v.size(),o?v=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(v=v.transition().duration(a.duration).ease(a.easing)),v.attr("d",M)}else v.remove();var g=S.select("path.xerror");if(p.visible&&fl(x.y)&&fl(x.xh)&&fl(x.xs)){var c=(p.copy_ystyle?_:p).width;M="M"+x.xh+","+(x.y-c)+"v"+2*c+"m0,-"+c+"H"+x.xs,x.noXS||(M+="m0,-"+c+"v"+2*c),o=!g.size(),o?g=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(g=g.transition().duration(a.duration).ease(a.easing)),g.attr("d",M)}else g.remove()}})}})};function rie(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),fl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),fl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var eF=be((zde,jP)=>{"use strict";var tie=ot(),$P=Gr();jP.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=tie.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call($P.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call($P.stroke,o.color)})}});var nF=be((qde,tF)=>{"use strict";var W0=er(),rF=On().overrideAll,X0=_3(),bs={error_x:W0.extendFlat({},X0),error_y:W0.extendFlat({},X0)};delete bs.error_x.copy_zstyle;delete bs.error_y.copy_zstyle;delete bs.error_y.copy_ystyle;var Z0={error_x:W0.extendFlat({},X0),error_y:W0.extendFlat({},X0),error_z:W0.extendFlat({},X0)};delete Z0.error_x.copy_ystyle;delete Z0.error_y.copy_ystyle;delete Z0.error_z.copy_ystyle;delete Z0.error_z.copy_zstyle;tF.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:bs,bar:bs,histogram:bs,scatter3d:rF(Z0,"calc","nested"),scattergl:rF(bs,"calc","nested")}},supplyDefaults:VP(),calc:ZP(),makeComputeError:w3(),plot:QP(),style:eF(),hoverInfo:nie};function nie(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var iF=be((Ode,aF)=>{"use strict";aF.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var hF=be((Bde,cF)=>{"use strict";var cl=ot(),A3=Sa(),fd=fn(),oF=Tr(),bo=Et(),ud=oi(),Wa=er(),mi=Wa.strTranslate,fF=Tt().extendFlat,k3=Ko(),yi=mt(),S3=Gr(),aie=zf(),iie=Bn(),oie=Ei().flipScale,lie=P1(),sie=Fm(),uie=Da(),C3=En(),lF=C3.LINE_SPACING,sF=C3.FROM_TL,uF=C3.FROM_BR,Lt=iF().cn;function fie(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Lt.colorbar).data(cie(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Lt.colorbar,!0),t.each(function(n){var a=cl.select(this);Wa.ensureSingle(a,"rect",Lt.cbbg),Wa.ensureSingle(a,"g",Lt.cbfills),Wa.ensureSingle(a,"g",Lt.cblines),Wa.ensureSingle(a,"g",Lt.cbaxis,function(i){i.classed(Lt.crisp,!0)}),Wa.ensureSingle(a,"g",Lt.cbtitleunshift,function(i){i.append("g").classed(Lt.cbtitle,!0)}),Wa.ensureSingle(a,"rect",Lt.cboutline);var o=hie(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&vie(a,n,e)}),t.exit().each(function(n){fd.autoMargin(e,n._id)}).remove(),t.order()}function cie(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return fF(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?oie(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f1){var re=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));se*=re*Wa.roundUp(V/re,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(oe.tick0=0)}oe.dtick=se}oe.domain=n?[q+y/x.h,q+P-y/x.h]:[q+_/x.w,q+P-_/x.w],oe.setScale(),e.attr("transform",mi(Math.round(x.l),Math.round(x.t)));var H=e.select("."+Lt.cbtitleunshift).attr("transform",mi(-Math.round(x.l),-Math.round(x.t))),ne=oe.ticklabelposition,ue=oe.title.font.size,ye=e.select("."+Lt.cbaxis),ke,Me=0,ge=0;function Ee(te,ae){var ce={propContainer:oe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Lt.cbtitle)},pe=te.charAt(0)==="h"?te.slice(1):"h"+te;e.selectAll("."+pe+",."+pe+"-math-group").remove(),aie.draw(t,te,fF(ce,ae||{}))}function Ce(){if(n&&Z||!n&&!Z){var te,ae;g==="top"&&(te=_+x.l+O*b,ae=y+x.t+B*(1-q-P)+3+ue*.75),g==="bottom"&&(te=_+x.l+O*b,ae=y+x.t+B*(1-q)-3-ue*.25),g==="right"&&(ae=y+x.t+B*T+3+ue*.75,te=_+x.l+O*q),Ee(oe._id+"title",{attributes:{x:te,y:ae,"text-anchor":n?"start":"middle"}})}}function Fe(){if(n&&!Z||!n&&Z){var te=oe.position||0,ae=oe._offset+oe._length/2,ce,pe;if(g==="right")pe=ae,ce=x.l+O*te+10+ue*(oe.showticklabels?1:.5);else if(ce=ae,g==="bottom"&&(pe=x.t+B*te+10+(ne.indexOf("inside")===-1?oe.tickfont.size:0)+(oe.ticks!=="inside"&&r.ticklen||0)),g==="top"){var ve=w.text.split("
").length;pe=x.t+B*te+10-I-lF*ue*ve}Ee((n?"h":"v")+oe._id+"title",{avoid:{selection:cl.select(t).selectAll("g."+oe._id+"tick"),side:g,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?S.width:S.height},attributes:{x:ce,y:pe,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function ie(){if(!n&&!Z||n&&Z){var te=e.select("."+Lt.cbtitle),ae=te.select("text"),ce=[-u/2,u/2],pe=te.select(".h"+oe._id+"title-math-group").node(),ve=15.6;ae.node()&&(ve=parseInt(ae.node().style.fontSize,10)*lF);var xe;if(pe?(xe=yi.bBox(pe),ge=xe.width,Me=xe.height,Me>ve&&(ce[1]-=(Me-ve)/2)):ae.node()&&!ae.classed(Lt.jsPlaceholder)&&(xe=yi.bBox(ae.node()),ge=xe.width,Me=xe.height),n){if(Me){if(Me+=5,g==="top")oe.domain[1]-=Me/x.h,ce[1]*=-1;else{oe.domain[0]+=Me/x.h;var me=iie.lineCount(ae);ce[1]+=(1-me)*ve}te.attr("transform",mi(ce[0],ce[1])),oe.setScale()}}else ge&&(g==="right"&&(oe.domain[0]+=(ge+ue/2)/x.w),te.attr("transform",mi(ce[0],ce[1])),oe.setScale())}e.selectAll("."+Lt.cbfills+",."+Lt.cblines).attr("transform",n?mi(0,Math.round(x.h*(1-oe.domain[1]))):mi(Math.round(x.w*oe.domain[0]),0)),ye.attr("transform",n?mi(0,Math.round(-x.t)):mi(Math.round(-x.l),0));var de=e.select("."+Lt.cbfills).selectAll("rect."+Lt.cbfill).attr("style","").data(R);de.enter().append("rect").classed(Lt.cbfill,!0).attr("style",""),de.exit().remove();var _e=c.map(oe.c2p).map(Math.round).sort(function(Oe,ze){return Oe-ze});de.each(function(Oe,ze){var Be=[ze===0?c[0]:(R[ze]+R[ze-1])/2,ze===R.length-1?c[1]:(R[ze]+R[ze+1])/2].map(oe.c2p).map(Math.round);n&&(Be[1]=Wa.constrain(Be[1]+(Be[1]>Be[0])?1:-1,_e[0],_e[1]));var Se=cl.select(this).attr(n?"x":"y",X).attr(n?"y":"x",cl.min(Be)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(cl.max(Be)-cl.min(Be),2));if(r._fillgradient)yi.gradient(Se,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Le=d(Oe).replace("e-","");Se.attr("fill",A3(Le).toHexString())}});var Ae=e.select("."+Lt.cblines).selectAll("path."+Lt.cbline).data(v.color&&v.width?N:[]);Ae.enter().append("path").classed(Lt.cbline,!0),Ae.exit().remove(),Ae.each(function(Oe){var ze=X,Be=Math.round(oe.c2p(Oe))+v.width/2%1;cl.select(this).attr("d","M"+(n?ze+","+Be:Be+","+ze)+(n?"h":"v")+I).call(yi.lineGroupStyle,v.width,A(Oe),v.dash)}),ye.selectAll("g."+oe._id+"tick,path").remove();var Ie=X+I+(u||0)/2-(r.ticks==="outside"?1:0),De=bo.calcTicks(oe),We=bo.getTickSigns(oe)[2];return bo.drawTicks(t,oe,{vals:oe.ticks==="inside"?bo.clipEnds(oe,De):De,layer:ye,path:bo.makeTickPath(oe,Ie,We),transFn:bo.makeTransTickFn(oe)}),bo.drawLabels(t,oe,{vals:De,layer:ye,transFn:bo.makeTransTickLabelFn(oe),labelFns:bo.makeLabelFns(oe,Ie)})}function J(){var te,ae=I+u/2;ne.indexOf("inside")===-1&&(te=yi.bBox(ye.node()),ae+=n?te.width:te.height),ke=H.select("text");var ce=0,pe=n&&g==="top",ve=!n&&g==="right",xe=0;if(ke.node()&&!ke.classed(Lt.jsPlaceholder)){var me,de=H.select(".h"+oe._id+"title-math-group").node();de&&(n&&Z||!n&&!Z)?(te=yi.bBox(de),ce=te.width,me=te.height):(te=yi.bBox(H.node()),ce=te.right-x.l-(n?X:Q),me=te.bottom-x.t-(n?Q:X),!n&&g==="top"&&(ae+=te.height,xe=te.height)),ve&&(ke.attr("transform",mi(ce/2+ue/2,0)),ce*=2),ae=Math.max(ae,n?ce:me)}var _e=(n?_:y)*2+ae+s+u/2,Ae=0;!n&&w.text&&p==="bottom"&&T<=0&&(Ae=_e/2,_e+=Ae,xe+=Ae),S._hColorbarMoveTitle=Ae,S._hColorbarMoveCBTitle=xe;var Ie=s+u,De=(n?X:Q)-Ie/2-(n?_:0),We=(n?Q:X)-(n?L:y+xe-Ae);e.select("."+Lt.cbbg).attr("x",De).attr("y",We).attr(n?"width":"height",Math.max(_e-Ae,2)).attr(n?"height":"width",Math.max(L+Ie,2)).call(S3.fill,f).call(S3.stroke,r.bordercolor).style("stroke-width",s);var Oe=ve?Math.max(ce-10,0):0;e.selectAll("."+Lt.cboutline).attr("x",(n?X:Q+_)+Oe).attr("y",(n?Q+y-L:X)+(pe?Me:0)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(L-(n?2*y+Me:2*_+Oe),2)).call(S3.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var ze=n?$*_e:0,Be=n?0:(1-ee)*_e-xe;if(ze=k?x.l-ze:-ze,Be=m?x.t-Be:-Be,e.attr("transform",mi(ze,Be)),!n&&(s||A3(f).getAlpha()&&!A3.equals(S.paper_bgcolor,f))){var Se=ye.selectAll("text"),Le=Se[0].length,Ye=e.select("."+Lt.cbbg).node(),Xe=yi.bBox(Ye),$e=yi.getTranslate(e),Qe=2;Se.each(function(Sr,qr){var gt=0,Hr=Le-1;if(qr===gt||qr===Hr){var Zr=yi.bBox(this),zt=yi.getTranslate(this),nr;if(qr===Hr){var Pr=Zr.right+zt.x,Kr=Xe.right+$e.x+Q-s-Qe+b;nr=Kr-Pr,nr>0&&(nr=0)}else if(qr===gt){var Er=Zr.left+zt.x,Qr=Xe.left+$e.x+Q+s+Qe;nr=Qr-Er,nr<0&&(nr=0)}nr&&(Le<3?this.setAttribute("transform","translate("+nr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var je={},ir=sF[h],yr=uF[h],xr=sF[p],wr=uF[p],$r=_e-I;n?(o==="pixels"?(je.y=T,je.t=L*xr,je.b=L*wr):(je.t=je.b=0,je.yt=T+a*xr,je.yb=T-a*wr),l==="pixels"?(je.x=b,je.l=_e*ir,je.r=_e*yr):(je.l=$r*ir,je.r=$r*yr,je.xl=b-i*ir,je.xr=b+i*yr)):(o==="pixels"?(je.x=b,je.l=L*ir,je.r=L*yr):(je.l=je.r=0,je.xl=b+a*ir,je.xr=b-a*yr),l==="pixels"?(je.y=1-T,je.t=_e*xr,je.b=_e*wr):(je.t=$r*xr,je.b=$r*wr,je.yt=T-i*xr,je.yb=T+i*wr));var _r=r.y<.5?"b":"t",Nr=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var et={r:S.width-De-ze,l:De+je.r,b:S.height-We-Be,t:We+je.b};k&&m?fd.autoMargin(t,r._id,je):k?t._fullLayout._reservedMargin[r._id][_r]=et[_r]:m||n?t._fullLayout._reservedMargin[r._id][Nr]=et[Nr]:t._fullLayout._reservedMargin[r._id][_r]=et[_r]}return Wa.syncOrAsync([fd.previousPromises,Ce,ie,Fe,fd.previousPromises,J],t)}function vie(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;ud.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),k3(e)},moveFn:function(s,f){e.attr("transform",i+mi(s,f)),l=ud.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=ud.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var h=ud.getCursor(l,u,r.xanchor,r.yanchor);k3(e,h)},doneFn:function(){if(k3(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?oF.call("_guiRestyle",t,s,r._traceIndex):oF.call("_guiRelayout",t,s)}}})}function die(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],h=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i0?i>=u:i<=u));l++)i>t[0]&&i{"use strict";vF.exports={moduleType:"component",name:"colorbar",attributes:Sh(),supplyDefaults:Eg(),draw:hF().draw,hasColorbar:mg()}});var gF=be((Hde,pF)=>{"use strict";pF.exports={moduleType:"component",name:"legend",layoutAttributes:A2(),supplyLayoutDefaults:S2(),draw:H2(),style:q2()}});var mF=be((Vde,yF)=>{"use strict";yF.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var bF=be((Gde,xF)=>{"use strict";xF.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var L3=be((Yde,TF)=>{"use strict";var gie=Tr(),MF=er(),E3=MF.extendFlat,_F=MF.extendDeep;function wF(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function yie(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}TF.exports=function(r,t){var n,a=r.data,o=r.layout,i=_F([],a),l=_F({},o,wF(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(n=0;n{"use strict";var mie=dh().EventEmitter,xie=Tr(),bie=er(),AF=fs(),_ie=L3(),wie=y1(),Mie=m1();function Tie(e,r){var t=new mie,n=_ie(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=AF.getDelay(a._fullLayout);setTimeout(function(){var u=wie(a),s=document.createElement("canvas");s.id=bie.randstr(),t=Mie({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=AF.getRedrawFunc(a);return xie.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}kF.exports=Tie});var LF=be((Xde,EF)=>{"use strict";var CF=fs(),Aie={getDelay:CF.getDelay,getRedrawFunc:CF.getRedrawFunc,clone:L3(),toSVG:y1(),svgToImg:m1(),toImage:SF(),downloadImage:im()};EF.exports=Aie});var RF=be(_o=>{"use strict";_o.version=Lc().version;xb();sw();var kie=Tr(),J0=_o.register=kie.register,R3=DC(),DF=Object.keys(R3);for(cd=0;cd{"use strict";PF.exports=RF()});var mn=be((Kde,IF)=>{(function(){var e={1964:function(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}},4793:function(a,o,i){"use strict";var l;function u(ie){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},u(ie)}var s=i(7507),f=i(3778),h=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.hp=b,l=A,o.IS=50;var p=2147483647;l=p,b.TYPED_ARRAY_SUPPORT=_(),!b.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function _(){try{var ie=new Uint8Array(1),J={foo:function(){return 42}};return Object.setPrototypeOf(J,Uint8Array.prototype),Object.setPrototypeOf(ie,J),ie.foo()===42}catch(te){return!1}}Object.defineProperty(b.prototype,"parent",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.buffer}}),Object.defineProperty(b.prototype,"offset",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.byteOffset}});function y(ie){if(ie>p)throw new RangeError('The value "'+ie+'" is invalid for option "size"');var J=new Uint8Array(ie);return Object.setPrototypeOf(J,b.prototype),J}function b(ie,J,te){if(typeof ie=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(ie)}return T(ie,J,te)}b.poolSize=8192;function T(ie,J,te){if(typeof ie=="string")return x(ie,J);if(ArrayBuffer.isView(ie))return v(ie);if(ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u(ie));if(Ee(ie,ArrayBuffer)||ie&&Ee(ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ee(ie,SharedArrayBuffer)||ie&&Ee(ie.buffer,SharedArrayBuffer)))return w(ie,J,te);if(typeof ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ae=ie.valueOf&&ie.valueOf();if(ae!=null&&ae!==ie)return b.from(ae,J,te);var ce=g(ie);if(ce)return ce;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ie[Symbol.toPrimitive]=="function")return b.from(ie[Symbol.toPrimitive]("string"),J,te);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u(ie))}b.from=function(ie,J,te){return T(ie,J,te)},Object.setPrototypeOf(b.prototype,Uint8Array.prototype),Object.setPrototypeOf(b,Uint8Array);function m(ie){if(typeof ie!="number")throw new TypeError('"size" argument must be of type number');if(ie<0)throw new RangeError('The value "'+ie+'" is invalid for option "size"')}function k(ie,J,te){return m(ie),ie<=0?y(ie):J!==void 0?typeof te=="string"?y(ie).fill(J,te):y(ie).fill(J):y(ie)}b.alloc=function(ie,J,te){return k(ie,J,te)};function S(ie){return m(ie),y(ie<0?0:c(ie)|0)}b.allocUnsafe=function(ie){return S(ie)},b.allocUnsafeSlow=function(ie){return S(ie)};function x(ie,J){if((typeof J!="string"||J==="")&&(J="utf8"),!b.isEncoding(J))throw new TypeError("Unknown encoding: "+J);var te=d(ie,J)|0,ae=y(te),ce=ae.write(ie,J);return ce!==te&&(ae=ae.slice(0,ce)),ae}function M(ie){for(var J=ie.length<0?0:c(ie.length)|0,te=y(J),ae=0;ae=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return ie|0}function A(ie){return+ie!=ie&&(ie=0),b.alloc(+ie)}b.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==b.prototype},b.compare=function(J,te){if(Ee(J,Uint8Array)&&(J=b.from(J,J.offset,J.byteLength)),Ee(te,Uint8Array)&&(te=b.from(te,te.offset,te.byteLength)),!b.isBuffer(J)||!b.isBuffer(te))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===te)return 0;for(var ae=J.length,ce=te.length,pe=0,ve=Math.min(ae,ce);pece.length?b.from(ve).copy(ce,pe):Uint8Array.prototype.set.call(ce,ve,pe);else if(b.isBuffer(ve))ve.copy(ce,pe);else throw new TypeError('"list" argument must be an Array of Buffers');pe+=ve.length}return ce};function d(ie,J){if(b.isBuffer(ie))return ie.length;if(ArrayBuffer.isView(ie)||Ee(ie,ArrayBuffer))return ie.byteLength;if(typeof ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+u(ie));var te=ie.length,ae=arguments.length>2&&arguments[2]===!0;if(!ae&&te===0)return 0;for(var ce=!1;;)switch(J){case"ascii":case"latin1":case"binary":return te;case"utf8":case"utf-8":return ue(ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te*2;case"hex":return te>>>1;case"base64":return Me(ie).length;default:if(ce)return ae?-1:ue(ie).length;J=(""+J).toLowerCase(),ce=!0}}b.byteLength=d;function D(ie,J,te){var ae=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((te===void 0||te>this.length)&&(te=this.length),te<=0)||(te>>>=0,J>>>=0,te<=J))return"";for(ie||(ie="utf8");;)switch(ie){case"hex":return Q(this,J,te);case"utf8":case"utf-8":return X(this,J,te);case"ascii":return Y(this,J,te);case"latin1":case"binary":return q(this,J,te);case"base64":return B(this,J,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,J,te);default:if(ae)throw new TypeError("Unknown encoding: "+ie);ie=(ie+"").toLowerCase(),ae=!0}}b.prototype._isBuffer=!0;function E(ie,J,te){var ae=ie[J];ie[J]=ie[te],ie[te]=ae}b.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var te=0;tete&&(J+=" ... "),""},h&&(b.prototype[h]=b.prototype.inspect),b.prototype.compare=function(J,te,ae,ce,pe){if(Ee(J,Uint8Array)&&(J=b.from(J,J.offset,J.byteLength)),!b.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+u(J));if(te===void 0&&(te=0),ae===void 0&&(ae=J?J.length:0),ce===void 0&&(ce=0),pe===void 0&&(pe=this.length),te<0||ae>J.length||ce<0||pe>this.length)throw new RangeError("out of range index");if(ce>=pe&&te>=ae)return 0;if(ce>=pe)return-1;if(te>=ae)return 1;if(te>>>=0,ae>>>=0,ce>>>=0,pe>>>=0,this===J)return 0;for(var ve=pe-ce,xe=ae-te,me=Math.min(ve,xe),de=this.slice(ce,pe),_e=J.slice(te,ae),Ae=0;Ae2147483647?te=2147483647:te<-2147483648&&(te=-2147483648),te=+te,Ce(te)&&(te=ce?0:ie.length-1),te<0&&(te=ie.length+te),te>=ie.length){if(ce)return-1;te=ie.length-1}else if(te<0)if(ce)te=0;else return-1;if(typeof J=="string"&&(J=b.from(J,ae)),b.isBuffer(J))return J.length===0?-1:N(ie,J,te,ae,ce);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(ie,J,te):Uint8Array.prototype.lastIndexOf.call(ie,J,te):N(ie,[J],te,ae,ce);throw new TypeError("val must be string, number or Buffer")}function N(ie,J,te,ae,ce){var pe=1,ve=ie.length,xe=J.length;if(ae!==void 0&&(ae=String(ae).toLowerCase(),ae==="ucs2"||ae==="ucs-2"||ae==="utf16le"||ae==="utf-16le")){if(ie.length<2||J.length<2)return-1;pe=2,ve/=2,xe/=2,te/=2}function me(De,We){return pe===1?De[We]:De.readUInt16BE(We*pe)}var de;if(ce){var _e=-1;for(de=te;deve&&(te=ve-xe),de=te;de>=0;de--){for(var Ae=!0,Ie=0;Iece&&(ae=ce)):ae=ce;var pe=J.length;ae>pe/2&&(ae=pe/2);for(var ve=0;ve>>0,isFinite(ae)?(ae=ae>>>0,ce===void 0&&(ce="utf8")):(ce=ae,ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var pe=this.length-te;if((ae===void 0||ae>pe)&&(ae=pe),J.length>0&&(ae<0||te<0)||te>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");for(var ve=!1;;)switch(ce){case"hex":return I(this,J,te,ae);case"utf8":case"utf-8":return F(this,J,te,ae);case"ascii":case"latin1":case"binary":return L(this,J,te,ae);case"base64":return P(this,J,te,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,J,te,ae);default:if(ve)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),ve=!0}},b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(ie,J,te){return J===0&&te===ie.length?s.fromByteArray(ie):s.fromByteArray(ie.slice(J,te))}function X(ie,J,te){te=Math.min(ie.length,te);for(var ae=[],ce=J;ce239?4:pe>223?3:pe>191?2:1;if(ce+xe<=te){var me,de,_e,Ae;switch(xe){case 1:pe<128&&(ve=pe);break;case 2:me=ie[ce+1],(me&192)===128&&(Ae=(pe&31)<<6|me&63,Ae>127&&(ve=Ae));break;case 3:me=ie[ce+1],de=ie[ce+2],(me&192)===128&&(de&192)===128&&(Ae=(pe&15)<<12|(me&63)<<6|de&63,Ae>2047&&(Ae<55296||Ae>57343)&&(ve=Ae));break;case 4:me=ie[ce+1],de=ie[ce+2],_e=ie[ce+3],(me&192)===128&&(de&192)===128&&(_e&192)===128&&(Ae=(pe&15)<<18|(me&63)<<12|(de&63)<<6|_e&63,Ae>65535&&Ae<1114112&&(ve=Ae))}}ve===null?(ve=65533,xe=1):ve>65535&&(ve-=65536,ae.push(ve>>>10&1023|55296),ve=56320|ve&1023),ae.push(ve),ce+=xe}return ee(ae)}var $=4096;function ee(ie){var J=ie.length;if(J<=$)return String.fromCharCode.apply(String,ie);for(var te="",ae=0;aeae)&&(te=ae);for(var ce="",pe=J;peae&&(J=ae),te<0?(te+=ae,te<0&&(te=0)):te>ae&&(te=ae),tete)throw new RangeError("Trying to access beyond buffer length")}b.prototype.readUintLE=b.prototype.readUIntLE=function(J,te,ae){J=J>>>0,te=te>>>0,ae||Z(J,te,this.length);for(var ce=this[J],pe=1,ve=0;++ve>>0,te=te>>>0,ae||Z(J,te,this.length);for(var ce=this[J+--te],pe=1;te>0&&(pe*=256);)ce+=this[J+--te]*pe;return ce},b.prototype.readUint8=b.prototype.readUInt8=function(J,te){return J=J>>>0,te||Z(J,1,this.length),this[J]},b.prototype.readUint16LE=b.prototype.readUInt16LE=function(J,te){return J=J>>>0,te||Z(J,2,this.length),this[J]|this[J+1]<<8},b.prototype.readUint16BE=b.prototype.readUInt16BE=function(J,te){return J=J>>>0,te||Z(J,2,this.length),this[J]<<8|this[J+1]},b.prototype.readUint32LE=b.prototype.readUInt32LE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},b.prototype.readUint32BE=b.prototype.readUInt32BE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},b.prototype.readIntLE=function(J,te,ae){J=J>>>0,te=te>>>0,ae||Z(J,te,this.length);for(var ce=this[J],pe=1,ve=0;++ve=pe&&(ce-=Math.pow(2,8*te)),ce},b.prototype.readIntBE=function(J,te,ae){J=J>>>0,te=te>>>0,ae||Z(J,te,this.length);for(var ce=te,pe=1,ve=this[J+--ce];ce>0&&(pe*=256);)ve+=this[J+--ce]*pe;return pe*=128,ve>=pe&&(ve-=Math.pow(2,8*te)),ve},b.prototype.readInt8=function(J,te){return J=J>>>0,te||Z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},b.prototype.readInt16LE=function(J,te){J=J>>>0,te||Z(J,2,this.length);var ae=this[J]|this[J+1]<<8;return ae&32768?ae|4294901760:ae},b.prototype.readInt16BE=function(J,te){J=J>>>0,te||Z(J,2,this.length);var ae=this[J+1]|this[J]<<8;return ae&32768?ae|4294901760:ae},b.prototype.readInt32LE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},b.prototype.readInt32BE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},b.prototype.readFloatLE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),f.read(this,J,!0,23,4)},b.prototype.readFloatBE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),f.read(this,J,!1,23,4)},b.prototype.readDoubleLE=function(J,te){return J=J>>>0,te||Z(J,8,this.length),f.read(this,J,!0,52,8)},b.prototype.readDoubleBE=function(J,te){return J=J>>>0,te||Z(J,8,this.length),f.read(this,J,!1,52,8)};function se(ie,J,te,ae,ce,pe){if(!b.isBuffer(ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>ce||Jie.length)throw new RangeError("Index out of range")}b.prototype.writeUintLE=b.prototype.writeUIntLE=function(J,te,ae,ce){if(J=+J,te=te>>>0,ae=ae>>>0,!ce){var pe=Math.pow(2,8*ae)-1;se(this,J,te,ae,pe,0)}var ve=1,xe=0;for(this[te]=J&255;++xe>>0,ae=ae>>>0,!ce){var pe=Math.pow(2,8*ae)-1;se(this,J,te,ae,pe,0)}var ve=ae-1,xe=1;for(this[te+ve]=J&255;--ve>=0&&(xe*=256);)this[te+ve]=J/xe&255;return te+ae},b.prototype.writeUint8=b.prototype.writeUInt8=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,1,255,0),this[te]=J&255,te+1},b.prototype.writeUint16LE=b.prototype.writeUInt16LE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,2,65535,0),this[te]=J&255,this[te+1]=J>>>8,te+2},b.prototype.writeUint16BE=b.prototype.writeUInt16BE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,2,65535,0),this[te]=J>>>8,this[te+1]=J&255,te+2},b.prototype.writeUint32LE=b.prototype.writeUInt32LE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,4,4294967295,0),this[te+3]=J>>>24,this[te+2]=J>>>16,this[te+1]=J>>>8,this[te]=J&255,te+4},b.prototype.writeUint32BE=b.prototype.writeUInt32BE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,4,4294967295,0),this[te]=J>>>24,this[te+1]=J>>>16,this[te+2]=J>>>8,this[te+3]=J&255,te+4},b.prototype.writeIntLE=function(J,te,ae,ce){if(J=+J,te=te>>>0,!ce){var pe=Math.pow(2,8*ae-1);se(this,J,te,ae,pe-1,-pe)}var ve=0,xe=1,me=0;for(this[te]=J&255;++ve>0)-me&255;return te+ae},b.prototype.writeIntBE=function(J,te,ae,ce){if(J=+J,te=te>>>0,!ce){var pe=Math.pow(2,8*ae-1);se(this,J,te,ae,pe-1,-pe)}var ve=ae-1,xe=1,me=0;for(this[te+ve]=J&255;--ve>=0&&(xe*=256);)J<0&&me===0&&this[te+ve+1]!==0&&(me=1),this[te+ve]=(J/xe>>0)-me&255;return te+ae},b.prototype.writeInt8=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,1,127,-128),J<0&&(J=255+J+1),this[te]=J&255,te+1},b.prototype.writeInt16LE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,2,32767,-32768),this[te]=J&255,this[te+1]=J>>>8,te+2},b.prototype.writeInt16BE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,2,32767,-32768),this[te]=J>>>8,this[te+1]=J&255,te+2},b.prototype.writeInt32LE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,4,2147483647,-2147483648),this[te]=J&255,this[te+1]=J>>>8,this[te+2]=J>>>16,this[te+3]=J>>>24,te+4},b.prototype.writeInt32BE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[te]=J>>>24,this[te+1]=J>>>16,this[te+2]=J>>>8,this[te+3]=J&255,te+4};function j(ie,J,te,ae,ce,pe){if(te+ae>ie.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("Index out of range")}function V(ie,J,te,ae,ce){return J=+J,te=te>>>0,ce||j(ie,J,te,4,34028234663852886e22,-34028234663852886e22),f.write(ie,J,te,ae,23,4),te+4}b.prototype.writeFloatLE=function(J,te,ae){return V(this,J,te,!0,ae)},b.prototype.writeFloatBE=function(J,te,ae){return V(this,J,te,!1,ae)};function re(ie,J,te,ae,ce){return J=+J,te=te>>>0,ce||j(ie,J,te,8,17976931348623157e292,-17976931348623157e292),f.write(ie,J,te,ae,52,8),te+8}b.prototype.writeDoubleLE=function(J,te,ae){return re(this,J,te,!0,ae)},b.prototype.writeDoubleBE=function(J,te,ae){return re(this,J,te,!1,ae)},b.prototype.copy=function(J,te,ae,ce){if(!b.isBuffer(J))throw new TypeError("argument should be a Buffer");if(ae||(ae=0),!ce&&ce!==0&&(ce=this.length),te>=J.length&&(te=J.length),te||(te=0),ce>0&&ce=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),J.length-te>>0,ae=ae===void 0?this.length:ae>>>0,J||(J=0);var ve;if(typeof J=="number")for(ve=te;ve55295&&te<57344){if(!ce){if(te>56319){(J-=3)>-1&&pe.push(239,191,189);continue}else if(ve+1===ae){(J-=3)>-1&&pe.push(239,191,189);continue}ce=te;continue}if(te<56320){(J-=3)>-1&&pe.push(239,191,189),ce=te;continue}te=(ce-55296<<10|te-56320)+65536}else ce&&(J-=3)>-1&&pe.push(239,191,189);if(ce=null,te<128){if((J-=1)<0)break;pe.push(te)}else if(te<2048){if((J-=2)<0)break;pe.push(te>>6|192,te&63|128)}else if(te<65536){if((J-=3)<0)break;pe.push(te>>12|224,te>>6&63|128,te&63|128)}else if(te<1114112){if((J-=4)<0)break;pe.push(te>>18|240,te>>12&63|128,te>>6&63|128,te&63|128)}else throw new Error("Invalid code point")}return pe}function ye(ie){for(var J=[],te=0;te>8,ce=te%256,pe.push(ce),pe.push(ae);return pe}function Me(ie){return s.toByteArray(ne(ie))}function ge(ie,J,te,ae){for(var ce=0;ce=J.length||ce>=ie.length);++ce)J[ce+te]=ie[ce];return ce}function Ee(ie,J){return ie instanceof J||ie!=null&&ie.constructor!=null&&ie.constructor.name!=null&&ie.constructor.name===J.name}function Ce(ie){return ie!==ie}var Fe=function(){for(var ie="0123456789abcdef",J=new Array(256),te=0;te<16;++te)for(var ae=te*16,ce=0;ce<16;++ce)J[ae+ce]=ie[te]+ie[ce];return J}()},9216:function(a){"use strict";a.exports=u,a.exports.isMobile=u,a.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,l=/android|ipad|playbook|silk/i;function u(s){s||(s={});var f=s.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var h=o.test(f)&&!i.test(f)||!!s.tablet&&l.test(f);return!h&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(h=!0),h}},6296:function(a,o,i){"use strict";a.exports=p;var l=i(7261),u=i(9977),s=i(1811);function f(_,y){this._controllerNames=Object.keys(_),this._controllerList=this._controllerNames.map(function(b){return _[b]}),this._mode=y,this._active=_[y],this._active||(this._mode="turntable",this._active=_.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var h=f.prototype;h.flush=function(_){for(var y=this._controllerList,b=0;b0)throw new Error("Invalid string. Length must be a multiple of 4");var M=S.indexOf("=");M===-1&&(M=x);var v=M===x?0:4-M%4;return[M,v]}function _(S){var x=p(S),M=x[0],v=x[1];return(M+v)*3/4-v}function y(S,x,M){return(x+M)*3/4-M}function b(S){var x,M=p(S),v=M[0],w=M[1],g=new u(y(S,v,w)),c=0,A=w>0?v-4:v,d;for(d=0;d>16&255,g[c++]=x>>8&255,g[c++]=x&255;return w===2&&(x=l[S.charCodeAt(d)]<<2|l[S.charCodeAt(d+1)]>>4,g[c++]=x&255),w===1&&(x=l[S.charCodeAt(d)]<<10|l[S.charCodeAt(d+1)]<<4|l[S.charCodeAt(d+2)]>>2,g[c++]=x>>8&255,g[c++]=x&255),g}function T(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function m(S,x,M){for(var v,w=[],g=x;gA?A:c+g));return v===1?(x=S[M-1],w.push(i[x>>2]+i[x<<4&63]+"==")):v===2&&(x=(S[M-2]<<8)+S[M-1],w.push(i[x>>10]+i[x>>4&63]+i[x<<2&63]+"=")),w.join("")}},3865:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}},1318:function(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}},8697:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}},7842:function(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),h=i(869),p=i(8697);a.exports=_;function _(y,b){if(l(y))return b?p(y,_(b)):[y[0].clone(),y[1].clone()];var T=0,m,k;if(u(y))m=y.clone();else if(typeof y=="string")m=f(y);else{if(y===0)return[s(0),s(1)];if(y===Math.floor(y))m=s(y);else{for(;y!==Math.floor(y);)y=y*Math.pow(2,256),T-=256;m=s(y)}}if(l(b))m.mul(b[1]),k=b[0].clone();else if(u(b))k=b.clone();else if(typeof b=="string")k=f(b);else if(!b)k=s(1);else if(b===Math.floor(b))k=s(b);else{for(;b!==Math.floor(b);)b=b*Math.pow(2,256),T+=256;k=s(b)}return T>0?m=m.ushln(T):T<0&&(k=k.ushln(-T)),h(m,k)}},6330:function(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}},5716:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}},1369:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,h=s.words,p=0;if(f===1)p=h[0];else if(f===2)p=h[0]+h[1]*67108864;else for(var _=0;_20?52:p+32}},1533:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}},2651:function(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var h=u.exponent(f);return h<52?new l(f):new l(f*Math.pow(2,52-h)).ushln(h-52)}},869:function(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,h){var p=u(f),_=u(h);if(p===0)return[l(0),l(1)];if(_===0)return[l(0),l(0)];_<0&&(f=f.neg(),h=h.neg());var y=f.gcd(h);return y.cmpn(1)?[f.div(y),h.div(y)]:[f,h]}},6768:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}},6504:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}},7721:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}},5572:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}},946:function(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var h=f[0],p=f[1];if(h.cmpn(0)===0)return 0;var _=h.abs().divmod(p.abs()),y=_.div,b=l(y),T=_.mod,m=h.negative!==p.negative?-1:1;if(T.cmpn(0)===0)return m*b;if(b){var k=u(b)+4,S=l(T.ushln(k).divRound(p));return m*(b+S*Math.pow(2,-k))}else{var x=p.bitLength()-T.bitLength()+53,S=l(T.ushln(x).divRound(p));return x<1023?m*S*Math.pow(2,-x):(S*=Math.pow(2,-1023),m*S*Math.pow(2,1023-x))}}},2478:function(a){"use strict";function o(h,p,_,y,b){for(var T=b+1;y<=b;){var m=y+b>>>1,k=h[m],S=_!==void 0?_(k,p):k-p;S>=0?(T=m,b=m-1):y=m+1}return T}function i(h,p,_,y,b){for(var T=b+1;y<=b;){var m=y+b>>>1,k=h[m],S=_!==void 0?_(k,p):k-p;S>0?(T=m,b=m-1):y=m+1}return T}function l(h,p,_,y,b){for(var T=y-1;y<=b;){var m=y+b>>>1,k=h[m],S=_!==void 0?_(k,p):k-p;S<0?(T=m,y=m+1):b=m-1}return T}function u(h,p,_,y,b){for(var T=y-1;y<=b;){var m=y+b>>>1,k=h[m],S=_!==void 0?_(k,p):k-p;S<=0?(T=m,y=m+1):b=m-1}return T}function s(h,p,_,y,b){for(;y<=b;){var T=y+b>>>1,m=h[T],k=_!==void 0?_(m,p):m-p;if(k===0)return T;k<=0?y=T+1:b=T-1}return-1}function f(h,p,_,y,b,T){return typeof _=="function"?T(h,p,_,y===void 0?0:y|0,b===void 0?h.length-1:b|0):T(h,p,void 0,_===void 0?0:_|0,y===void 0?h.length-1:y|0)}a.exports={ge:function(h,p,_,y,b){return f(h,p,_,y,b,o)},gt:function(h,p,_,y,b){return f(h,p,_,y,b,i)},lt:function(h,p,_,y,b){return f(h,p,_,y,b,l)},le:function(h,p,_,y,b){return f(h,p,_,y,b,u)},eq:function(h,p,_,y,b){return f(h,p,_,y,b,s)}}},8828:function(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,h=(s>255)<<3,s>>>=h,f|=h,h=(s>15)<<2,s>>>=h,f|=h,h=(s>3)<<1,s>>>=h,f|=h,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var h=f,p=f,_=7;for(h>>>=1;h;h>>>=1)p<<=1,p|=h&1,--_;s[f]=p<<_&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,h){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,h&=1023,h=(h|h<<16)&4278190335,h=(h|h<<8)&251719695,h=(h|h<<4)&3272356035,h=(h|h<<2)&1227133513,s|h<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},6859:function(a,o,i){a=i.nmd(a),function(l,u){"use strict";function s(F,L){if(!F)throw new Error(L||"Assertion failed")}function f(F,L){F.super_=L;var P=function(){};P.prototype=L.prototype,F.prototype=new P,F.prototype.constructor=F}function h(F,L,P){if(h.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((L==="le"||L==="be")&&(P=L,L=10),this._init(F||0,L||10,P||"be"))}typeof l=="object"?l.exports=h:u.BN=h,h.BN=h,h.wordSize=26;var p;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?p=window.Buffer:p=i(7790).Buffer}catch(F){}h.isBN=function(L){return L instanceof h?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===h.wordSize&&Array.isArray(L.words)},h.max=function(L,P){return L.cmp(P)>0?L:P},h.min=function(L,P){return L.cmp(P)<0?L:P},h.prototype._init=function(L,P,O){if(typeof L=="number")return this._initNumber(L,P,O);if(typeof L=="object")return this._initArray(L,P,O);P==="hex"&&(P=16),s(P===(P|0)&&P>=2&&P<=36),L=L.toString().replace(/\s+/g,"");var B=0;L[0]==="-"&&(B++,this.negative=1),B=0;B-=3)$=L[B]|L[B-1]<<8|L[B-2]<<16,this.words[X]|=$<>>26-ee&67108863,ee+=24,ee>=26&&(ee-=26,X++);else if(O==="le")for(B=0,X=0;B>>26-ee&67108863,ee+=24,ee>=26&&(ee-=26,X++);return this.strip()};function _(F,L){var P=F.charCodeAt(L);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function y(F,L,P){var O=_(F,P);return P-1>=L&&(O|=_(F,P-1)<<4),O}h.prototype._parseHex=function(L,P,O){this.length=Math.ceil((L.length-P)/6),this.words=new Array(this.length);for(var B=0;B=P;B-=2)ee=y(L,P,B)<=18?(X-=18,$+=1,this.words[$]|=ee>>>26):X+=8;else{var Y=L.length-P;for(B=Y%2===0?P+1:P;B=18?(X-=18,$+=1,this.words[$]|=ee>>>26):X+=8}this.strip()};function b(F,L,P,O){for(var B=0,X=Math.min(F.length,P),$=L;$=49?B+=ee-49+10:ee>=17?B+=ee-17+10:B+=ee}return B}h.prototype._parseBase=function(L,P,O){this.words=[0],this.length=1;for(var B=0,X=1;X<=67108863;X*=P)B++;B--,X=X/P|0;for(var $=L.length-O,ee=$%B,Y=Math.min($,$-ee)+O,q=0,Q=O;Q1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},h.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(L,P){L=L||10,P=P|0||1;var O;if(L===16||L==="hex"){O="";for(var B=0,X=0,$=0;$>>24-B&16777215,B+=2,B>=26&&(B-=26,$--),X!==0||$!==this.length-1?O=T[6-Y.length]+Y+O:O=Y+O}for(X!==0&&(O=X.toString(16)+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(L===(L|0)&&L>=2&&L<=36){var q=m[L],Q=k[L];O="";var oe=this.clone();for(oe.negative=0;!oe.isZero();){var Z=oe.modn(Q).toString(L);oe=oe.idivn(Q),oe.isZero()?O=Z+O:O=T[q-Z.length]+Z+O}for(this.isZero()&&(O="0"+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}s(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(L,P){return s(typeof p!="undefined"),this.toArrayLike(p,L,P)},h.prototype.toArray=function(L,P){return this.toArrayLike(Array,L,P)},h.prototype.toArrayLike=function(L,P,O){var B=this.byteLength(),X=O||Math.max(1,B);s(B<=X,"byte array longer than desired length"),s(X>0,"Requested array length <= 0"),this.strip();var $=P==="le",ee=new L(X),Y,q,Q=this.clone();if($){for(q=0;!Q.isZero();q++)Y=Q.andln(255),Q.iushrn(8),ee[q]=Y;for(;q=4096&&(O+=13,P>>>=13),P>=64&&(O+=7,P>>>=7),P>=8&&(O+=4,P>>>=4),P>=2&&(O+=2,P>>>=2),O+P},h.prototype._zeroBits=function(L){if(L===0)return 26;var P=L,O=0;return(P&8191)===0&&(O+=13,P>>>=13),(P&127)===0&&(O+=7,P>>>=7),(P&15)===0&&(O+=4,P>>>=4),(P&3)===0&&(O+=2,P>>>=2),(P&1)===0&&O++,O},h.prototype.bitLength=function(){var L=this.words[this.length-1],P=this._countBits(L);return(this.length-1)*26+P};function S(F){for(var L=new Array(F.bitLength()),P=0;P>>B}return L}h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,P=0;PL.length?this.clone().ior(L):L.clone().ior(this)},h.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},h.prototype.iuand=function(L){var P;this.length>L.length?P=L:P=this;for(var O=0;OL.length?this.clone().iand(L):L.clone().iand(this)},h.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},h.prototype.iuxor=function(L){var P,O;this.length>L.length?(P=this,O=L):(P=L,O=this);for(var B=0;BL.length?this.clone().ixor(L):L.clone().ixor(this)},h.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},h.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var P=Math.ceil(L/26)|0,O=L%26;this._expand(P),O>0&&P--;for(var B=0;B0&&(this.words[B]=~this.words[B]&67108863>>26-O),this.strip()},h.prototype.notn=function(L){return this.clone().inotn(L)},h.prototype.setn=function(L,P){s(typeof L=="number"&&L>=0);var O=L/26|0,B=L%26;return this._expand(O+1),P?this.words[O]=this.words[O]|1<L.length?(O=this,B=L):(O=L,B=this);for(var X=0,$=0;$>>26;for(;X!==0&&$>>26;if(this.length=O.length,X!==0)this.words[this.length]=X,this.length++;else if(O!==this)for(;$L.length?this.clone().iadd(L):L.clone().iadd(this)},h.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var P=this.iadd(L);return L.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var O=this.cmp(L);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var B,X;O>0?(B=this,X=L):(B=L,X=this);for(var $=0,ee=0;ee>26,this.words[ee]=P&67108863;for(;$!==0&&ee>26,this.words[ee]=P&67108863;if($===0&&ee>>26,oe=Y&67108863,Z=Math.min(q,L.length-1),se=Math.max(0,q-F.length+1);se<=Z;se++){var j=q-se|0;B=F.words[j]|0,X=L.words[se]|0,$=B*X+oe,Q+=$/67108864|0,oe=$&67108863}P.words[q]=oe|0,Y=Q|0}return Y!==0?P.words[q]=Y|0:P.length--,P.strip()}var M=function(L,P,O){var B=L.words,X=P.words,$=O.words,ee=0,Y,q,Q,oe=B[0]|0,Z=oe&8191,se=oe>>>13,j=B[1]|0,V=j&8191,re=j>>>13,H=B[2]|0,ne=H&8191,ue=H>>>13,ye=B[3]|0,ke=ye&8191,Me=ye>>>13,ge=B[4]|0,Ee=ge&8191,Ce=ge>>>13,Fe=B[5]|0,ie=Fe&8191,J=Fe>>>13,te=B[6]|0,ae=te&8191,ce=te>>>13,pe=B[7]|0,ve=pe&8191,xe=pe>>>13,me=B[8]|0,de=me&8191,_e=me>>>13,Ae=B[9]|0,Ie=Ae&8191,De=Ae>>>13,We=X[0]|0,Oe=We&8191,ze=We>>>13,Be=X[1]|0,Se=Be&8191,Le=Be>>>13,Ye=X[2]|0,Xe=Ye&8191,$e=Ye>>>13,Qe=X[3]|0,je=Qe&8191,ir=Qe>>>13,yr=X[4]|0,xr=yr&8191,wr=yr>>>13,$r=X[5]|0,_r=$r&8191,Nr=$r>>>13,et=X[6]|0,Sr=et&8191,qr=et>>>13,gt=X[7]|0,Hr=gt&8191,Zr=gt>>>13,zt=X[8]|0,nr=zt&8191,Pr=zt>>>13,Kr=X[9]|0,Er=Kr&8191,Qr=Kr>>>13;O.negative=L.negative^P.negative,O.length=19,Y=Math.imul(Z,Oe),q=Math.imul(Z,ze),q=q+Math.imul(se,Oe)|0,Q=Math.imul(se,ze);var Dt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,Y=Math.imul(V,Oe),q=Math.imul(V,ze),q=q+Math.imul(re,Oe)|0,Q=Math.imul(re,ze),Y=Y+Math.imul(Z,Se)|0,q=q+Math.imul(Z,Le)|0,q=q+Math.imul(se,Se)|0,Q=Q+Math.imul(se,Le)|0;var at=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(at>>>26)|0,at&=67108863,Y=Math.imul(ne,Oe),q=Math.imul(ne,ze),q=q+Math.imul(ue,Oe)|0,Q=Math.imul(ue,ze),Y=Y+Math.imul(V,Se)|0,q=q+Math.imul(V,Le)|0,q=q+Math.imul(re,Se)|0,Q=Q+Math.imul(re,Le)|0,Y=Y+Math.imul(Z,Xe)|0,q=q+Math.imul(Z,$e)|0,q=q+Math.imul(se,Xe)|0,Q=Q+Math.imul(se,$e)|0;var $t=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+($t>>>26)|0,$t&=67108863,Y=Math.imul(ke,Oe),q=Math.imul(ke,ze),q=q+Math.imul(Me,Oe)|0,Q=Math.imul(Me,ze),Y=Y+Math.imul(ne,Se)|0,q=q+Math.imul(ne,Le)|0,q=q+Math.imul(ue,Se)|0,Q=Q+Math.imul(ue,Le)|0,Y=Y+Math.imul(V,Xe)|0,q=q+Math.imul(V,$e)|0,q=q+Math.imul(re,Xe)|0,Q=Q+Math.imul(re,$e)|0,Y=Y+Math.imul(Z,je)|0,q=q+Math.imul(Z,ir)|0,q=q+Math.imul(se,je)|0,Q=Q+Math.imul(se,ir)|0;var Zt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,Y=Math.imul(Ee,Oe),q=Math.imul(Ee,ze),q=q+Math.imul(Ce,Oe)|0,Q=Math.imul(Ce,ze),Y=Y+Math.imul(ke,Se)|0,q=q+Math.imul(ke,Le)|0,q=q+Math.imul(Me,Se)|0,Q=Q+Math.imul(Me,Le)|0,Y=Y+Math.imul(ne,Xe)|0,q=q+Math.imul(ne,$e)|0,q=q+Math.imul(ue,Xe)|0,Q=Q+Math.imul(ue,$e)|0,Y=Y+Math.imul(V,je)|0,q=q+Math.imul(V,ir)|0,q=q+Math.imul(re,je)|0,Q=Q+Math.imul(re,ir)|0,Y=Y+Math.imul(Z,xr)|0,q=q+Math.imul(Z,wr)|0,q=q+Math.imul(se,xr)|0,Q=Q+Math.imul(se,wr)|0;var Rt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,Y=Math.imul(ie,Oe),q=Math.imul(ie,ze),q=q+Math.imul(J,Oe)|0,Q=Math.imul(J,ze),Y=Y+Math.imul(Ee,Se)|0,q=q+Math.imul(Ee,Le)|0,q=q+Math.imul(Ce,Se)|0,Q=Q+Math.imul(Ce,Le)|0,Y=Y+Math.imul(ke,Xe)|0,q=q+Math.imul(ke,$e)|0,q=q+Math.imul(Me,Xe)|0,Q=Q+Math.imul(Me,$e)|0,Y=Y+Math.imul(ne,je)|0,q=q+Math.imul(ne,ir)|0,q=q+Math.imul(ue,je)|0,Q=Q+Math.imul(ue,ir)|0,Y=Y+Math.imul(V,xr)|0,q=q+Math.imul(V,wr)|0,q=q+Math.imul(re,xr)|0,Q=Q+Math.imul(re,wr)|0,Y=Y+Math.imul(Z,_r)|0,q=q+Math.imul(Z,Nr)|0,q=q+Math.imul(se,_r)|0,Q=Q+Math.imul(se,Nr)|0;var vt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(vt>>>26)|0,vt&=67108863,Y=Math.imul(ae,Oe),q=Math.imul(ae,ze),q=q+Math.imul(ce,Oe)|0,Q=Math.imul(ce,ze),Y=Y+Math.imul(ie,Se)|0,q=q+Math.imul(ie,Le)|0,q=q+Math.imul(J,Se)|0,Q=Q+Math.imul(J,Le)|0,Y=Y+Math.imul(Ee,Xe)|0,q=q+Math.imul(Ee,$e)|0,q=q+Math.imul(Ce,Xe)|0,Q=Q+Math.imul(Ce,$e)|0,Y=Y+Math.imul(ke,je)|0,q=q+Math.imul(ke,ir)|0,q=q+Math.imul(Me,je)|0,Q=Q+Math.imul(Me,ir)|0,Y=Y+Math.imul(ne,xr)|0,q=q+Math.imul(ne,wr)|0,q=q+Math.imul(ue,xr)|0,Q=Q+Math.imul(ue,wr)|0,Y=Y+Math.imul(V,_r)|0,q=q+Math.imul(V,Nr)|0,q=q+Math.imul(re,_r)|0,Q=Q+Math.imul(re,Nr)|0,Y=Y+Math.imul(Z,Sr)|0,q=q+Math.imul(Z,qr)|0,q=q+Math.imul(se,Sr)|0,Q=Q+Math.imul(se,qr)|0;var Mt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,Y=Math.imul(ve,Oe),q=Math.imul(ve,ze),q=q+Math.imul(xe,Oe)|0,Q=Math.imul(xe,ze),Y=Y+Math.imul(ae,Se)|0,q=q+Math.imul(ae,Le)|0,q=q+Math.imul(ce,Se)|0,Q=Q+Math.imul(ce,Le)|0,Y=Y+Math.imul(ie,Xe)|0,q=q+Math.imul(ie,$e)|0,q=q+Math.imul(J,Xe)|0,Q=Q+Math.imul(J,$e)|0,Y=Y+Math.imul(Ee,je)|0,q=q+Math.imul(Ee,ir)|0,q=q+Math.imul(Ce,je)|0,Q=Q+Math.imul(Ce,ir)|0,Y=Y+Math.imul(ke,xr)|0,q=q+Math.imul(ke,wr)|0,q=q+Math.imul(Me,xr)|0,Q=Q+Math.imul(Me,wr)|0,Y=Y+Math.imul(ne,_r)|0,q=q+Math.imul(ne,Nr)|0,q=q+Math.imul(ue,_r)|0,Q=Q+Math.imul(ue,Nr)|0,Y=Y+Math.imul(V,Sr)|0,q=q+Math.imul(V,qr)|0,q=q+Math.imul(re,Sr)|0,Q=Q+Math.imul(re,qr)|0,Y=Y+Math.imul(Z,Hr)|0,q=q+Math.imul(Z,Zr)|0,q=q+Math.imul(se,Hr)|0,Q=Q+Math.imul(se,Zr)|0;var jt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(jt>>>26)|0,jt&=67108863,Y=Math.imul(de,Oe),q=Math.imul(de,ze),q=q+Math.imul(_e,Oe)|0,Q=Math.imul(_e,ze),Y=Y+Math.imul(ve,Se)|0,q=q+Math.imul(ve,Le)|0,q=q+Math.imul(xe,Se)|0,Q=Q+Math.imul(xe,Le)|0,Y=Y+Math.imul(ae,Xe)|0,q=q+Math.imul(ae,$e)|0,q=q+Math.imul(ce,Xe)|0,Q=Q+Math.imul(ce,$e)|0,Y=Y+Math.imul(ie,je)|0,q=q+Math.imul(ie,ir)|0,q=q+Math.imul(J,je)|0,Q=Q+Math.imul(J,ir)|0,Y=Y+Math.imul(Ee,xr)|0,q=q+Math.imul(Ee,wr)|0,q=q+Math.imul(Ce,xr)|0,Q=Q+Math.imul(Ce,wr)|0,Y=Y+Math.imul(ke,_r)|0,q=q+Math.imul(ke,Nr)|0,q=q+Math.imul(Me,_r)|0,Q=Q+Math.imul(Me,Nr)|0,Y=Y+Math.imul(ne,Sr)|0,q=q+Math.imul(ne,qr)|0,q=q+Math.imul(ue,Sr)|0,Q=Q+Math.imul(ue,qr)|0,Y=Y+Math.imul(V,Hr)|0,q=q+Math.imul(V,Zr)|0,q=q+Math.imul(re,Hr)|0,Q=Q+Math.imul(re,Zr)|0,Y=Y+Math.imul(Z,nr)|0,q=q+Math.imul(Z,Pr)|0,q=q+Math.imul(se,nr)|0,Q=Q+Math.imul(se,Pr)|0;var ea=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(ea>>>26)|0,ea&=67108863,Y=Math.imul(Ie,Oe),q=Math.imul(Ie,ze),q=q+Math.imul(De,Oe)|0,Q=Math.imul(De,ze),Y=Y+Math.imul(de,Se)|0,q=q+Math.imul(de,Le)|0,q=q+Math.imul(_e,Se)|0,Q=Q+Math.imul(_e,Le)|0,Y=Y+Math.imul(ve,Xe)|0,q=q+Math.imul(ve,$e)|0,q=q+Math.imul(xe,Xe)|0,Q=Q+Math.imul(xe,$e)|0,Y=Y+Math.imul(ae,je)|0,q=q+Math.imul(ae,ir)|0,q=q+Math.imul(ce,je)|0,Q=Q+Math.imul(ce,ir)|0,Y=Y+Math.imul(ie,xr)|0,q=q+Math.imul(ie,wr)|0,q=q+Math.imul(J,xr)|0,Q=Q+Math.imul(J,wr)|0,Y=Y+Math.imul(Ee,_r)|0,q=q+Math.imul(Ee,Nr)|0,q=q+Math.imul(Ce,_r)|0,Q=Q+Math.imul(Ce,Nr)|0,Y=Y+Math.imul(ke,Sr)|0,q=q+Math.imul(ke,qr)|0,q=q+Math.imul(Me,Sr)|0,Q=Q+Math.imul(Me,qr)|0,Y=Y+Math.imul(ne,Hr)|0,q=q+Math.imul(ne,Zr)|0,q=q+Math.imul(ue,Hr)|0,Q=Q+Math.imul(ue,Zr)|0,Y=Y+Math.imul(V,nr)|0,q=q+Math.imul(V,Pr)|0,q=q+Math.imul(re,nr)|0,Q=Q+Math.imul(re,Pr)|0,Y=Y+Math.imul(Z,Er)|0,q=q+Math.imul(Z,Qr)|0,q=q+Math.imul(se,Er)|0,Q=Q+Math.imul(se,Qr)|0;var Nn=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,Y=Math.imul(Ie,Se),q=Math.imul(Ie,Le),q=q+Math.imul(De,Se)|0,Q=Math.imul(De,Le),Y=Y+Math.imul(de,Xe)|0,q=q+Math.imul(de,$e)|0,q=q+Math.imul(_e,Xe)|0,Q=Q+Math.imul(_e,$e)|0,Y=Y+Math.imul(ve,je)|0,q=q+Math.imul(ve,ir)|0,q=q+Math.imul(xe,je)|0,Q=Q+Math.imul(xe,ir)|0,Y=Y+Math.imul(ae,xr)|0,q=q+Math.imul(ae,wr)|0,q=q+Math.imul(ce,xr)|0,Q=Q+Math.imul(ce,wr)|0,Y=Y+Math.imul(ie,_r)|0,q=q+Math.imul(ie,Nr)|0,q=q+Math.imul(J,_r)|0,Q=Q+Math.imul(J,Nr)|0,Y=Y+Math.imul(Ee,Sr)|0,q=q+Math.imul(Ee,qr)|0,q=q+Math.imul(Ce,Sr)|0,Q=Q+Math.imul(Ce,qr)|0,Y=Y+Math.imul(ke,Hr)|0,q=q+Math.imul(ke,Zr)|0,q=q+Math.imul(Me,Hr)|0,Q=Q+Math.imul(Me,Zr)|0,Y=Y+Math.imul(ne,nr)|0,q=q+Math.imul(ne,Pr)|0,q=q+Math.imul(ue,nr)|0,Q=Q+Math.imul(ue,Pr)|0,Y=Y+Math.imul(V,Er)|0,q=q+Math.imul(V,Qr)|0,q=q+Math.imul(re,Er)|0,Q=Q+Math.imul(re,Qr)|0;var Ma=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Ma>>>26)|0,Ma&=67108863,Y=Math.imul(Ie,Xe),q=Math.imul(Ie,$e),q=q+Math.imul(De,Xe)|0,Q=Math.imul(De,$e),Y=Y+Math.imul(de,je)|0,q=q+Math.imul(de,ir)|0,q=q+Math.imul(_e,je)|0,Q=Q+Math.imul(_e,ir)|0,Y=Y+Math.imul(ve,xr)|0,q=q+Math.imul(ve,wr)|0,q=q+Math.imul(xe,xr)|0,Q=Q+Math.imul(xe,wr)|0,Y=Y+Math.imul(ae,_r)|0,q=q+Math.imul(ae,Nr)|0,q=q+Math.imul(ce,_r)|0,Q=Q+Math.imul(ce,Nr)|0,Y=Y+Math.imul(ie,Sr)|0,q=q+Math.imul(ie,qr)|0,q=q+Math.imul(J,Sr)|0,Q=Q+Math.imul(J,qr)|0,Y=Y+Math.imul(Ee,Hr)|0,q=q+Math.imul(Ee,Zr)|0,q=q+Math.imul(Ce,Hr)|0,Q=Q+Math.imul(Ce,Zr)|0,Y=Y+Math.imul(ke,nr)|0,q=q+Math.imul(ke,Pr)|0,q=q+Math.imul(Me,nr)|0,Q=Q+Math.imul(Me,Pr)|0,Y=Y+Math.imul(ne,Er)|0,q=q+Math.imul(ne,Qr)|0,q=q+Math.imul(ue,Er)|0,Q=Q+Math.imul(ue,Qr)|0;var wi=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(wi>>>26)|0,wi&=67108863,Y=Math.imul(Ie,je),q=Math.imul(Ie,ir),q=q+Math.imul(De,je)|0,Q=Math.imul(De,ir),Y=Y+Math.imul(de,xr)|0,q=q+Math.imul(de,wr)|0,q=q+Math.imul(_e,xr)|0,Q=Q+Math.imul(_e,wr)|0,Y=Y+Math.imul(ve,_r)|0,q=q+Math.imul(ve,Nr)|0,q=q+Math.imul(xe,_r)|0,Q=Q+Math.imul(xe,Nr)|0,Y=Y+Math.imul(ae,Sr)|0,q=q+Math.imul(ae,qr)|0,q=q+Math.imul(ce,Sr)|0,Q=Q+Math.imul(ce,qr)|0,Y=Y+Math.imul(ie,Hr)|0,q=q+Math.imul(ie,Zr)|0,q=q+Math.imul(J,Hr)|0,Q=Q+Math.imul(J,Zr)|0,Y=Y+Math.imul(Ee,nr)|0,q=q+Math.imul(Ee,Pr)|0,q=q+Math.imul(Ce,nr)|0,Q=Q+Math.imul(Ce,Pr)|0,Y=Y+Math.imul(ke,Er)|0,q=q+Math.imul(ke,Qr)|0,q=q+Math.imul(Me,Er)|0,Q=Q+Math.imul(Me,Qr)|0;var $i=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+($i>>>26)|0,$i&=67108863,Y=Math.imul(Ie,xr),q=Math.imul(Ie,wr),q=q+Math.imul(De,xr)|0,Q=Math.imul(De,wr),Y=Y+Math.imul(de,_r)|0,q=q+Math.imul(de,Nr)|0,q=q+Math.imul(_e,_r)|0,Q=Q+Math.imul(_e,Nr)|0,Y=Y+Math.imul(ve,Sr)|0,q=q+Math.imul(ve,qr)|0,q=q+Math.imul(xe,Sr)|0,Q=Q+Math.imul(xe,qr)|0,Y=Y+Math.imul(ae,Hr)|0,q=q+Math.imul(ae,Zr)|0,q=q+Math.imul(ce,Hr)|0,Q=Q+Math.imul(ce,Zr)|0,Y=Y+Math.imul(ie,nr)|0,q=q+Math.imul(ie,Pr)|0,q=q+Math.imul(J,nr)|0,Q=Q+Math.imul(J,Pr)|0,Y=Y+Math.imul(Ee,Er)|0,q=q+Math.imul(Ee,Qr)|0,q=q+Math.imul(Ce,Er)|0,Q=Q+Math.imul(Ce,Qr)|0;var ji=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(ji>>>26)|0,ji&=67108863,Y=Math.imul(Ie,_r),q=Math.imul(Ie,Nr),q=q+Math.imul(De,_r)|0,Q=Math.imul(De,Nr),Y=Y+Math.imul(de,Sr)|0,q=q+Math.imul(de,qr)|0,q=q+Math.imul(_e,Sr)|0,Q=Q+Math.imul(_e,qr)|0,Y=Y+Math.imul(ve,Hr)|0,q=q+Math.imul(ve,Zr)|0,q=q+Math.imul(xe,Hr)|0,Q=Q+Math.imul(xe,Zr)|0,Y=Y+Math.imul(ae,nr)|0,q=q+Math.imul(ae,Pr)|0,q=q+Math.imul(ce,nr)|0,Q=Q+Math.imul(ce,Pr)|0,Y=Y+Math.imul(ie,Er)|0,q=q+Math.imul(ie,Qr)|0,q=q+Math.imul(J,Er)|0,Q=Q+Math.imul(J,Qr)|0;var eo=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(eo>>>26)|0,eo&=67108863,Y=Math.imul(Ie,Sr),q=Math.imul(Ie,qr),q=q+Math.imul(De,Sr)|0,Q=Math.imul(De,qr),Y=Y+Math.imul(de,Hr)|0,q=q+Math.imul(de,Zr)|0,q=q+Math.imul(_e,Hr)|0,Q=Q+Math.imul(_e,Zr)|0,Y=Y+Math.imul(ve,nr)|0,q=q+Math.imul(ve,Pr)|0,q=q+Math.imul(xe,nr)|0,Q=Q+Math.imul(xe,Pr)|0,Y=Y+Math.imul(ae,Er)|0,q=q+Math.imul(ae,Qr)|0,q=q+Math.imul(ce,Er)|0,Q=Q+Math.imul(ce,Qr)|0;var on=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(on>>>26)|0,on&=67108863,Y=Math.imul(Ie,Hr),q=Math.imul(Ie,Zr),q=q+Math.imul(De,Hr)|0,Q=Math.imul(De,Zr),Y=Y+Math.imul(de,nr)|0,q=q+Math.imul(de,Pr)|0,q=q+Math.imul(_e,nr)|0,Q=Q+Math.imul(_e,Pr)|0,Y=Y+Math.imul(ve,Er)|0,q=q+Math.imul(ve,Qr)|0,q=q+Math.imul(xe,Er)|0,Q=Q+Math.imul(xe,Qr)|0;var ko=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(ko>>>26)|0,ko&=67108863,Y=Math.imul(Ie,nr),q=Math.imul(Ie,Pr),q=q+Math.imul(De,nr)|0,Q=Math.imul(De,Pr),Y=Y+Math.imul(de,Er)|0,q=q+Math.imul(de,Qr)|0,q=q+Math.imul(_e,Er)|0,Q=Q+Math.imul(_e,Qr)|0;var Mi=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,Y=Math.imul(Ie,Er),q=Math.imul(Ie,Qr),q=q+Math.imul(De,Er)|0,Q=Math.imul(De,Qr);var Ti=(ee+Y|0)+((q&8191)<<13)|0;return ee=(Q+(q>>>13)|0)+(Ti>>>26)|0,Ti&=67108863,$[0]=Dt,$[1]=at,$[2]=$t,$[3]=Zt,$[4]=Rt,$[5]=vt,$[6]=Mt,$[7]=jt,$[8]=ea,$[9]=Nn,$[10]=Ma,$[11]=wi,$[12]=$i,$[13]=ji,$[14]=eo,$[15]=on,$[16]=ko,$[17]=Mi,$[18]=Ti,ee!==0&&($[19]=ee,O.length++),O};Math.imul||(M=x);function v(F,L,P){P.negative=L.negative^F.negative,P.length=F.length+L.length;for(var O=0,B=0,X=0;X>>26)|0,B+=$>>>26,$&=67108863}P.words[X]=ee,O=$,$=B}return O!==0?P.words[X]=O:P.length--,P.strip()}function w(F,L,P){var O=new g;return O.mulp(F,L,P)}h.prototype.mulTo=function(L,P){var O,B=this.length+L.length;return this.length===10&&L.length===10?O=M(this,L,P):B<63?O=x(this,L,P):B<1024?O=v(this,L,P):O=w(this,L,P),O};function g(F,L){this.x=F,this.y=L}g.prototype.makeRBT=function(L){for(var P=new Array(L),O=h.prototype._countBits(L)-1,B=0;B>=1;return B},g.prototype.permute=function(L,P,O,B,X,$){for(var ee=0;ee<$;ee++)B[ee]=P[L[ee]],X[ee]=O[L[ee]]},g.prototype.transform=function(L,P,O,B,X,$){this.permute($,L,P,O,B,X);for(var ee=1;ee>>1)X++;return 1<>>13,O[2*$+1]=X&8191,X=X>>>13;for($=2*P;$>=26,P+=B/67108864|0,P+=X>>>26,this.words[O]=X&67108863}return P!==0&&(this.words[O]=P,this.length++),this.length=L===0?1:this.length,this},h.prototype.muln=function(L){return this.clone().imuln(L)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(L){var P=S(L);if(P.length===0)return new h(1);for(var O=this,B=0;B=0);var P=L%26,O=(L-P)/26,B=67108863>>>26-P<<26-P,X;if(P!==0){var $=0;for(X=0;X>>26-P}$&&(this.words[X]=$,this.length++)}if(O!==0){for(X=this.length-1;X>=0;X--)this.words[X+O]=this.words[X];for(X=0;X=0);var B;P?B=(P-P%26)/26:B=0;var X=L%26,$=Math.min((L-X)/26,this.length),ee=67108863^67108863>>>X<$)for(this.length-=$,q=0;q=0&&(Q!==0||q>=B);q--){var oe=this.words[q]|0;this.words[q]=Q<<26-X|oe>>>X,Q=oe&ee}return Y&&Q!==0&&(Y.words[Y.length++]=Q),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(L,P,O){return s(this.negative===0),this.iushrn(L,P,O)},h.prototype.shln=function(L){return this.clone().ishln(L)},h.prototype.ushln=function(L){return this.clone().iushln(L)},h.prototype.shrn=function(L){return this.clone().ishrn(L)},h.prototype.ushrn=function(L){return this.clone().iushrn(L)},h.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var P=L%26,O=(L-P)/26,B=1<=0);var P=L%26,O=(L-P)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(P!==0&&O++,this.length=Math.min(O,this.length),P!==0){var B=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},h.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(Y/67108864|0),this.words[X+O]=$&67108863}for(;X>26,this.words[X+O]=$&67108863;if(ee===0)return this.strip();for(s(ee===-1),ee=0,X=0;X>26,this.words[X]=$&67108863;return this.negative=1,this.strip()},h.prototype._wordDiv=function(L,P){var O=this.length-L.length,B=this.clone(),X=L,$=X.words[X.length-1]|0,ee=this._countBits($);O=26-ee,O!==0&&(X=X.ushln(O),B.iushln(O),$=X.words[X.length-1]|0);var Y=B.length-X.length,q;if(P!=="mod"){q=new h(null),q.length=Y+1,q.words=new Array(q.length);for(var Q=0;Q=0;Z--){var se=(B.words[X.length+Z]|0)*67108864+(B.words[X.length+Z-1]|0);for(se=Math.min(se/$|0,67108863),B._ishlnsubmul(X,se,Z);B.negative!==0;)se--,B.negative=0,B._ishlnsubmul(X,1,Z),B.isZero()||(B.negative^=1);q&&(q.words[Z]=se)}return q&&q.strip(),B.strip(),P!=="div"&&O!==0&&B.iushrn(O),{div:q||null,mod:B}},h.prototype.divmod=function(L,P,O){if(s(!L.isZero()),this.isZero())return{div:new h(0),mod:new h(0)};var B,X,$;return this.negative!==0&&L.negative===0?($=this.neg().divmod(L,P),P!=="mod"&&(B=$.div.neg()),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.iadd(L)),{div:B,mod:X}):this.negative===0&&L.negative!==0?($=this.divmod(L.neg(),P),P!=="mod"&&(B=$.div.neg()),{div:B,mod:$.mod}):(this.negative&L.negative)!==0?($=this.neg().divmod(L.neg(),P),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.isub(L)),{div:$.div,mod:X}):L.length>this.length||this.cmp(L)<0?{div:new h(0),mod:this}:L.length===1?P==="div"?{div:this.divn(L.words[0]),mod:null}:P==="mod"?{div:null,mod:new h(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new h(this.modn(L.words[0]))}:this._wordDiv(L,P)},h.prototype.div=function(L){return this.divmod(L,"div",!1).div},h.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},h.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},h.prototype.divRound=function(L){var P=this.divmod(L);if(P.mod.isZero())return P.div;var O=P.div.negative!==0?P.mod.isub(L):P.mod,B=L.ushrn(1),X=L.andln(1),$=O.cmp(B);return $<0||X===1&&$===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},h.prototype.modn=function(L){s(L<=67108863);for(var P=(1<<26)%L,O=0,B=this.length-1;B>=0;B--)O=(P*O+(this.words[B]|0))%L;return O},h.prototype.idivn=function(L){s(L<=67108863);for(var P=0,O=this.length-1;O>=0;O--){var B=(this.words[O]|0)+P*67108864;this.words[O]=B/L|0,P=B%L}return this.strip()},h.prototype.divn=function(L){return this.clone().idivn(L)},h.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var B=new h(1),X=new h(0),$=new h(0),ee=new h(1),Y=0;P.isEven()&&O.isEven();)P.iushrn(1),O.iushrn(1),++Y;for(var q=O.clone(),Q=P.clone();!P.isZero();){for(var oe=0,Z=1;(P.words[0]&Z)===0&&oe<26;++oe,Z<<=1);if(oe>0)for(P.iushrn(oe);oe-- >0;)(B.isOdd()||X.isOdd())&&(B.iadd(q),X.isub(Q)),B.iushrn(1),X.iushrn(1);for(var se=0,j=1;(O.words[0]&j)===0&&se<26;++se,j<<=1);if(se>0)for(O.iushrn(se);se-- >0;)($.isOdd()||ee.isOdd())&&($.iadd(q),ee.isub(Q)),$.iushrn(1),ee.iushrn(1);P.cmp(O)>=0?(P.isub(O),B.isub($),X.isub(ee)):(O.isub(P),$.isub(B),ee.isub(X))}return{a:$,b:ee,gcd:O.iushln(Y)}},h.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var B=new h(1),X=new h(0),$=O.clone();P.cmpn(1)>0&&O.cmpn(1)>0;){for(var ee=0,Y=1;(P.words[0]&Y)===0&&ee<26;++ee,Y<<=1);if(ee>0)for(P.iushrn(ee);ee-- >0;)B.isOdd()&&B.iadd($),B.iushrn(1);for(var q=0,Q=1;(O.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0)for(O.iushrn(q);q-- >0;)X.isOdd()&&X.iadd($),X.iushrn(1);P.cmp(O)>=0?(P.isub(O),B.isub(X)):(O.isub(P),X.isub(B))}var oe;return P.cmpn(1)===0?oe=B:oe=X,oe.cmpn(0)<0&&oe.iadd(L),oe},h.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var P=this.clone(),O=L.clone();P.negative=0,O.negative=0;for(var B=0;P.isEven()&&O.isEven();B++)P.iushrn(1),O.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;O.isEven();)O.iushrn(1);var X=P.cmp(O);if(X<0){var $=P;P=O,O=$}else if(X===0||O.cmpn(1)===0)break;P.isub(O)}while(!0);return O.iushln(B)},h.prototype.invm=function(L){return this.egcd(L).a.umod(L)},h.prototype.isEven=function(){return(this.words[0]&1)===0},h.prototype.isOdd=function(){return(this.words[0]&1)===1},h.prototype.andln=function(L){return this.words[0]&L},h.prototype.bincn=function(L){s(typeof L=="number");var P=L%26,O=(L-P)/26,B=1<>>26,ee&=67108863,this.words[$]=ee}return X!==0&&(this.words[$]=X,this.length++),this},h.prototype.isZero=function(){return this.length===1&&this.words[0]===0},h.prototype.cmpn=function(L){var P=L<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var O;if(this.length>1)O=1;else{P&&(L=-L),s(L<=67108863,"Number is too big");var B=this.words[0]|0;O=B===L?0:BL.length)return 1;if(this.length=0;O--){var B=this.words[O]|0,X=L.words[O]|0;if(B!==X){BX&&(P=1);break}}return P},h.prototype.gtn=function(L){return this.cmpn(L)===1},h.prototype.gt=function(L){return this.cmp(L)===1},h.prototype.gten=function(L){return this.cmpn(L)>=0},h.prototype.gte=function(L){return this.cmp(L)>=0},h.prototype.ltn=function(L){return this.cmpn(L)===-1},h.prototype.lt=function(L){return this.cmp(L)===-1},h.prototype.lten=function(L){return this.cmpn(L)<=0},h.prototype.lte=function(L){return this.cmp(L)<=0},h.prototype.eqn=function(L){return this.cmpn(L)===0},h.prototype.eq=function(L){return this.cmp(L)===0},h.red=function(L){return new N(L)},h.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},h.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(L){return this.red=L,this},h.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},h.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},h.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},h.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},h.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},h.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},h.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},h.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},h.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var c={k256:null,p224:null,p192:null,p25519:null};function A(F,L){this.name=F,this.p=new h(L,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new h(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var P=L,O;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),O=P.bitLength();while(O>this.n);var B=O0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},A.prototype.split=function(L,P){L.iushrn(this.n,0,P)},A.prototype.imulK=function(L){return L.imul(this.k)};function d(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(d,A),d.prototype.split=function(L,P){for(var O=4194303,B=Math.min(L.length,9),X=0;X>>22,$=ee}$>>>=22,L.words[X-10]=$,$===0&&L.length>10?L.length-=10:L.length-=9},d.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var P=0,O=0;O>>=26,L.words[O]=X,P=B}return P!==0&&(L.words[L.length++]=P),L},h._prime=function(L){if(c[L])return c[L];var P;if(L==="k256")P=new d;else if(L==="p224")P=new D;else if(L==="p192")P=new E;else if(L==="p25519")P=new R;else throw new Error("Unknown prime "+L);return c[L]=P,P};function N(F){if(typeof F=="string"){var L=h._prime(F);this.m=L.p,this.prime=L}else s(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}N.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},N.prototype._verify2=function(L,P){s((L.negative|P.negative)===0,"red works only with positives"),s(L.red&&L.red===P.red,"red works only with red numbers")},N.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},N.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},N.prototype.add=function(L,P){this._verify2(L,P);var O=L.add(P);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},N.prototype.iadd=function(L,P){this._verify2(L,P);var O=L.iadd(P);return O.cmp(this.m)>=0&&O.isub(this.m),O},N.prototype.sub=function(L,P){this._verify2(L,P);var O=L.sub(P);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},N.prototype.isub=function(L,P){this._verify2(L,P);var O=L.isub(P);return O.cmpn(0)<0&&O.iadd(this.m),O},N.prototype.shl=function(L,P){return this._verify1(L),this.imod(L.ushln(P))},N.prototype.imul=function(L,P){return this._verify2(L,P),this.imod(L.imul(P))},N.prototype.mul=function(L,P){return this._verify2(L,P),this.imod(L.mul(P))},N.prototype.isqr=function(L){return this.imul(L,L.clone())},N.prototype.sqr=function(L){return this.mul(L,L)},N.prototype.sqrt=function(L){if(L.isZero())return L.clone();var P=this.m.andln(3);if(s(P%2===1),P===3){var O=this.m.add(new h(1)).iushrn(2);return this.pow(L,O)}for(var B=this.m.subn(1),X=0;!B.isZero()&&B.andln(1)===0;)X++,B.iushrn(1);s(!B.isZero());var $=new h(1).toRed(this),ee=$.redNeg(),Y=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new h(2*q*q).toRed(this);this.pow(q,Y).cmp(ee)!==0;)q.redIAdd(ee);for(var Q=this.pow(q,B),oe=this.pow(L,B.addn(1).iushrn(1)),Z=this.pow(L,B),se=X;Z.cmp($)!==0;){for(var j=Z,V=0;j.cmp($)!==0;V++)j=j.redSqr();s(V=0;X--){for(var Q=P.words[X],oe=q-1;oe>=0;oe--){var Z=Q>>oe&1;if($!==B[0]&&($=this.sqr($)),Z===0&&ee===0){Y=0;continue}ee<<=1,ee|=Z,Y++,!(Y!==O&&(X!==0||oe!==0))&&($=this.mul($,B[ee]),Y=0,ee=0)}q=26}return $},N.prototype.convertTo=function(L){var P=L.umod(this.m);return P===L?P.clone():P},N.prototype.convertFrom=function(L){var P=L.clone();return P.red=null,P},h.mont=function(L){return new I(L)};function I(F){N.call(this,F),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(I,N),I.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},I.prototype.convertFrom=function(L){var P=this.imod(L.mul(this.rinv));return P.red=null,P},I.prototype.imul=function(L,P){if(L.isZero()||P.isZero())return L.words[0]=0,L.length=1,L;var O=L.imul(P),B=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(B).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.mul=function(L,P){if(L.isZero()||P.isZero())return new h(0)._forceRed(this);var O=L.mul(P),B=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(B).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.invm=function(L){var P=this.imod(L._invmp(this.m).mul(this.r2));return P._forceRed(this)}}(a,this)},6204:function(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,h=0;for(l=0;l>>1;if(!(g<=0)){var c,A=l.mallocDouble(2*g*v),d=l.mallocInt32(v);if(v=h(k,g,A,d),v>0){if(g===1&&M)u.init(v),c=u.sweepComplete(g,x,0,v,A,d,0,v,A,d);else{var D=l.mallocDouble(2*g*w),E=l.mallocInt32(w);w=h(S,g,D,E),w>0&&(u.init(v+w),g===1?c=u.sweepBipartite(g,x,0,v,A,d,0,w,D,E):c=s(g,x,M,v,A,d,w,D,E),l.free(D),l.free(E))}l.free(A),l.free(d)}return c}}}var _;function y(k,S){_.push([k,S])}function b(k){return _=[],p(k,k,y,!0),_}function T(k,S){return _=[],p(k,S,y,!1),_}function m(k,S,x){switch(arguments.length){case 1:return b(k);case 2:return typeof S=="function"?p(k,k,S,!0):T(k,S);case 3:return p(k,S,x,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(a,o){"use strict";function i(){function s(p,_,y,b,T,m,k,S,x,M,v){for(var w=2*p,g=b,c=w*b;gx-S?s(p,_,y,b,T,m,k,S,x,M,v):f(p,_,y,b,T,m,k,S,x,M,v)}return h}function l(){function s(y,b,T,m,k,S,x,M,v,w,g){for(var c=2*y,A=m,d=c*m;Aw-v?m?s(y,b,T,k,S,x,M,v,w,g,c):f(y,b,T,k,S,x,M,v,w,g,c):m?h(y,b,T,k,S,x,M,v,w,g,c):p(y,b,T,k,S,x,M,v,w,g,c)}return _}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150:function(a,o,i){"use strict";a.exports=F;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,h=s.full,p=i(855),_=i(3545),y=i(8105),b=128,T=1<<22,m=1<<22,k=y("!(lo>=p0)&&!(p1>=hi)"),S=y("lo===p0"),x=y("lo0;){Q-=1;var se=Q*g,j=d[se],V=d[se+1],re=d[se+2],H=d[se+3],ne=d[se+4],ue=d[se+5],ye=Q*c,ke=D[ye],Me=D[ye+1],ge=ue&1,Ee=!!(ue&16),Ce=X,Fe=$,ie=Y,J=q;if(ge&&(Ce=Y,Fe=q,ie=X,J=$),!(ue&2&&(re=x(L,j,V,re,Ce,Fe,Me),V>=re))&&!(ue&4&&(V=M(L,j,V,re,Ce,Fe,ke),V>=re))){var te=re-V,ae=ne-H;if(Ee){if(L*te*(te+ae)y&&T[w+_]>M;--v,w-=k){for(var g=w,c=w+k,A=0;A>>1,M=2*p,v=x,w=T[M*x+_];k=D?(v=d,w=D):A>=R?(v=c,w=A):(v=E,w=R):D>=R?(v=d,w=D):R>=A?(v=c,w=A):(v=E,w=R);for(var F=M*(S-1),L=M*v,N=0;N=p0)&&!(p1>=hi)":_};function i(y){return o[y]}function l(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+c];if(D===x)if(g===d)g+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[v+E];k[v+E]=k[w],k[w++]=R}var N=S[d];S[d]=S[g],S[g++]=N}}return g}function u(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+c];if(DE;++E){var R=k[v+E];k[v+E]=k[w],k[w++]=R}var N=S[d];S[d]=S[g],S[g++]=N}}return g}function s(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+A];if(D<=x)if(g===d)g+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[v+E];k[v+E]=k[w],k[w++]=R}var N=S[d];S[d]=S[g],S[g++]=N}}return g}function f(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+A];if(D<=x)if(g===d)g+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[v+E];k[v+E]=k[w],k[w++]=R}var N=S[d];S[d]=S[g],S[g++]=N}}return g}function h(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+c],E=k[v+A];if(D<=x&&x<=E)if(g===d)g+=1,w+=M;else{for(var R=0;M>R;++R){var N=k[v+R];k[v+R]=k[w],k[w++]=N}var I=S[d];S[d]=S[g],S[g++]=I}}return g}function p(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+c],E=k[v+A];if(DR;++R){var N=k[v+R];k[v+R]=k[w],k[w++]=N}var I=S[d];S[d]=S[g],S[g++]=I}}return g}function _(y,b,T,m,k,S,x,M){for(var v=2*y,w=v*T,g=w,c=T,A=b,d=y+b,D=T;m>D;++D,w+=v){var E=k[w+A],R=k[w+d];if(!(E>=x)&&!(M>=R))if(c===D)c+=1,g+=v;else{for(var N=0;v>N;++N){var I=k[w+N];k[w+N]=k[g],k[g++]=I}var F=S[D];S[D]=S[c],S[c++]=F}}return c}},4192:function(a){"use strict";a.exports=i;var o=32;function i(b,T){T<=4*o?l(0,T-1,b):y(0,T-1,b)}function l(b,T,m){for(var k=2*(b+1),S=b+1;S<=T;++S){for(var x=m[k++],M=m[k++],v=S,w=k-2;v-- >b;){var g=m[w-2],c=m[w-1];if(gm[T+1]:!0}function _(b,T,m,k){b*=2;var S=k[b];return S>1,v=M-k,w=M+k,g=S,c=v,A=M,d=w,D=x,E=b+1,R=T-1,N=0;p(g,c,m)&&(N=g,g=c,c=N),p(d,D,m)&&(N=d,d=D,D=N),p(g,A,m)&&(N=g,g=A,A=N),p(c,A,m)&&(N=c,c=A,A=N),p(g,d,m)&&(N=g,g=d,d=N),p(A,d,m)&&(N=A,A=d,d=N),p(c,D,m)&&(N=c,c=D,D=N),p(c,A,m)&&(N=c,c=A,A=N),p(d,D,m)&&(N=d,d=D,D=N);for(var I=m[2*c],F=m[2*c+1],L=m[2*d],P=m[2*d+1],O=2*g,B=2*A,X=2*D,$=2*S,ee=2*M,Y=2*x,q=0;q<2;++q){var Q=m[O+q],oe=m[B+q],Z=m[X+q];m[$+q]=Q,m[ee+q]=oe,m[Y+q]=Z}s(v,b,m),s(w,T,m);for(var se=E;se<=R;++se)if(_(se,I,F,m))se!==E&&u(se,E,m),++E;else if(!_(se,L,P,m))for(;;)if(_(R,L,P,m)){_(R,I,F,m)?(f(se,E,R,m),++E,--R):(u(se,R,m),--R);break}else{if(--R>>1;s(k,oe);for(var Z=0,se=0,ee=0;ee=f)j=j-f|0,x(y,b,se--,j);else if(j>=0)x(p,_,Z--,j);else if(j<=-f){j=-j-f|0;for(var V=0;V>>1;s(k,oe);for(var Z=0,se=0,j=0,ee=0;ee>1===k[2*ee+3]>>1&&(re=2,ee+=1),V<0){for(var H=-(V>>1)-1,ne=0;ne>1)-1;re===0?x(p,_,Z--,H):re===1?x(y,b,se--,H):re===2&&x(T,m,j--,H)}}}function g(A,d,D,E,R,N,I,F,L,P,O,B){var X=0,$=2*A,ee=d,Y=d+A,q=1,Q=1;E?Q=f:q=f;for(var oe=R;oe>>1;s(k,V);for(var re=0,oe=0;oe=f?(ne=!E,Z-=f):(ne=!!E,Z-=1),ne)M(p,_,re++,Z);else{var ue=B[Z],ye=$*Z,ke=O[ye+d+1],Me=O[ye+d+1+A];e:for(var ge=0;ge>>1;s(k,Z);for(var se=0,Y=0;Y=f)p[se++]=q-f;else{q-=1;var V=O[q],re=X*q,H=P[re+d+1],ne=P[re+d+1+A];e:for(var ue=0;ue=0;--ue)if(p[ue]===q){for(var ge=ue+1;ge0;){for(var S=_.pop(),T=_.pop(),x=-1,M=-1,m=b[T],w=1;w=0||(p.flip(T,S),s(h,p,_,x,T,M),s(h,p,_,T,M,x),s(h,p,_,M,S,x),s(h,p,_,S,x,M))}}},5023:function(a,o,i){"use strict";var l=i(2478);a.exports=_;function u(y,b,T,m,k,S,x){this.cells=y,this.neighbor=b,this.flags=m,this.constraint=T,this.active=k,this.next=S,this.boundary=x}var s=u.prototype;function f(y,b){return y[0]-b[0]||y[1]-b[1]||y[2]-b[2]}s.locate=function(){var y=[0,0,0];return function(b,T,m){var k=b,S=T,x=m;return T0||x.length>0;){for(;S.length>0;){var c=S.pop();if(M[c]!==-k){M[c]=k;for(var A=v[c],d=0;d<3;++d){var D=g[3*c+d];D>=0&&M[D]===0&&(w[3*c+d]?x.push(D):(S.push(D),M[D]=k))}}}var E=x;x=S,S=E,x.length=0,k=-k}var R=p(v,M,b);return T?R.concat(m.boundary):R}},8902:function(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,h=2;a.exports=x;function p(M,v,w,g,c){this.a=M,this.b=v,this.idx=w,this.lowerIds=g,this.upperIds=c}function _(M,v,w,g){this.a=M,this.b=v,this.type=w,this.idx=g}function y(M,v){var w=M.a[0]-v.a[0]||M.a[1]-v.a[1]||M.type-v.type;return w||M.type!==s&&(w=u(M.a,M.b,v.b),w)?w:M.idx-v.idx}function b(M,v){return u(M.a,M.b,v)}function T(M,v,w,g,c){for(var A=l.lt(v,g,b),d=l.gt(v,g,b),D=A;D1&&u(w[R[I-2]],w[R[I-1]],g)>0;)M.push([R[I-1],R[I-2],c]),I-=1;R.length=I,R.push(c);for(var N=E.upperIds,I=N.length;I>1&&u(w[N[I-2]],w[N[I-1]],g)<0;)M.push([N[I-2],N[I-1],c]),I-=1;N.length=I,N.push(c)}}function m(M,v){var w;return M.a[0]E[0]&&c.push(new _(E,D,h,A),new _(D,E,f,A))}c.sort(y);for(var R=c[0].a[0]-(1+Math.abs(c[0].a[0]))*Math.pow(2,-52),N=[new p([R,1],[R,0],-1,[],[],[],[])],I=[],A=0,F=c.length;A=0}}(),s.removeTriangle=function(p,_,y){var b=this.stars;f(b[p],_,y),f(b[_],y,p),f(b[y],p,_)},s.addTriangle=function(p,_,y){var b=this.stars;b[p].push(_,y),b[_].push(y,p),b[y].push(p,_)},s.opposite=function(p,_){for(var y=this.stars[_],b=1,T=y.length;b=0;--L){var Q=I[L];P=Q[0];var oe=R[P],Z=oe[0],se=oe[1],j=E[Z],V=E[se];if((j[0]-V[0]||j[1]-V[1])<0){var re=Z;Z=se,se=re}oe[0]=Z;var H=oe[1]=Q[1],ne;for(F&&(ne=oe[2]);L>0&&I[L-1][0]===P;){var Q=I[--L],ue=Q[1];F?R.push([H,ue,ne]):R.push([H,ue]),H=ue}F?R.push([H,se,ne]):R.push([H,se])}return O}function v(E,R,N){for(var I=R.length,F=new l(I),L=[],P=0;PR[2]?1:0)}function c(E,R,N){if(E.length!==0){if(R)for(var I=0;I0||P.length>0}function D(E,R,N){var I;if(N){I=R;for(var F=new Array(R.length),L=0;LM+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(_.alpha)?_.alpha.length!==2?v=[1,1]:v=_.alpha.slice():typeof _.alpha=="number"?v=[_.alpha,_.alpha]:v=[1,1],y=k.map(function(D){return Math.round(D.index*M)}),v[0]=Math.min(Math.max(v[0],0),1),v[1]=Math.min(Math.max(v[1],0),1);var g=k.map(function(D,E){var R=k[E].index,N=k[E].rgb.slice();return N.length===4&&N[3]>=0&&N[3]<=1||(N[3]=v[0]+(v[1]-v[0])*R),N}),c=[];for(w=0;w=0}function _(y,b,T,m){var k=l(b,T,m);if(k===0){var S=u(l(y,b,T)),x=u(l(y,b,m));if(S===x){if(S===0){var M=p(y,b,T),v=p(y,b,m);return M===v?0:M?1:-1}return 0}else{if(x===0)return S>0||p(y,b,m)?-1:1;if(S===0)return x>0||p(y,b,T)?1:-1}return u(x-S)}var w=l(y,b,T);if(w>0)return k>0&&l(y,b,m)>0?1:-1;if(w<0)return k>0||l(y,b,m)>0?1:-1;var g=l(y,b,m);return g>0||p(y,b,T)?1:-1}},8572:function(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}},8507:function(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,h=u.length-s.length;if(h)return h;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var p=u[0]+u[1],_=s[0]+s[1];if(h=p+u[2]-(_+s[2]),h)return h;var y=o(u[0],u[1]),b=o(s[0],s[1]);return o(y,u[2])-o(b,s[2])||o(y+u[2],p)-o(b+s[2],_);case 4:var T=u[0],m=u[1],k=u[2],S=u[3],x=s[0],M=s[1],v=s[2],w=s[3];return T+m+k+S-(x+M+v+w)||o(T,m,k,S)-o(x,M,v,w,x)||o(T+m,T+k,T+S,m+k,m+S,k+S)-o(x+M,x+v,x+w,M+v,M+w,v+w)||o(T+m+k,T+m+S,T+k+S,m+k+S)-o(x+M+v,x+M+w,x+v+w,M+v+w);default:for(var g=u.slice().sort(i),c=s.slice().sort(i),A=0;Ai[u][0]&&(u=s);return lu?[[u],[l]]:[[l]]}},4750:function(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),h=f.length;if(h<=2)return[];for(var p=new Array(h),_=f[h-1],y=0;y=_[x]&&(S+=1);m[k]=S}}return p}function h(p,_){try{return l(p,!0)}catch(m){var y=u(p);if(y.length<=_)return[];var b=s(p,y),T=l(b,!0);return f(T,y)}}},4769:function(a){"use strict";function o(l,u,s,f,h,p){var _=6*h*h-6*h,y=3*h*h-4*h+1,b=-6*h*h+6*h,T=3*h*h-2*h;if(l.length){p||(p=new Array(l.length));for(var m=l.length-1;m>=0;--m)p[m]=_*l[m]+y*u[m]+b*s[m]+T*f[m];return p}return _*l+y*u+b*s[m]+T*f}function i(l,u,s,f,h,p){var _=h-1,y=h*h,b=_*_,T=(1+2*h)*b,m=h*b,k=y*(3-2*h),S=y*_;if(l.length){p||(p=new Array(l.length));for(var x=l.length-1;x>=0;--x)p[x]=T*l[x]+m*u[x]+k*s[x]+S*f[x];return p}return T*l+m*u+k*s+S*f}a.exports=i,a.exports.derivative=o},7642:function(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=p;function s(_,y){this.point=_,this.index=y}function f(_,y){for(var b=_.point,T=y.point,m=b.length,k=0;k=2)return!1;N[F]=L}return!0}):R=R.filter(function(N){for(var I=0;I<=T;++I){var F=A[N[I]];if(F<0)return!1;N[I]=F}return!0}),T&1)for(var S=0;S>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),x=a.exports.hi(k),M=x&(1<<20)-1;return x&2146435072&&(M+=1048576),[S,M]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}},1338:function(a){"use strict";function o(u,s,f){var h=u[f]|0;if(h<=0)return[];var p=new Array(h),_;if(f===u.length-1)for(_=0;_0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l},3134:function(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var h=s.length;if(typeof f!="number"){f=0;for(var p=0;p=T-1)for(var w=S.length-1,c=y-b[T-1],g=0;g=T-1)for(var v=S.length-1,w=y-b[T-1],g=0;g=0;--T)if(y[--b])return!1;return!0},h.jump=function(y){var b=this.lastT(),T=this.dimension;if(!(y0;--g)m.push(s(M[g-1],v[g-1],arguments[g])),k.push(0)}},h.push=function(y){var b=this.lastT(),T=this.dimension;if(!(y1e-6?1/x:0;this._time.push(y);for(var c=T;c>0;--c){var A=s(v[c-1],w[c-1],arguments[c]);m.push(A),k.push((A-m[S++])*g)}}},h.set=function(y){var b=this.dimension;if(!(y0;--M)T.push(s(S[M-1],x[M-1],arguments[M])),m.push(0)}},h.move=function(y){var b=this.lastT(),T=this.dimension;if(!(y<=b||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=this.bounds,M=x[0],v=x[1],w=y-b,g=w>1e-6?1/w:0;this._time.push(y);for(var c=T;c>0;--c){var A=arguments[c];m.push(s(M[c-1],v[c-1],m[S++]+A)),k.push(A*g)}}},h.idle=function(y){var b=this.lastT();if(!(y=0;--g)m.push(s(M[g],v[g],m[S]+w*k[S])),k.push(0),S+=1}};function p(y){for(var b=new Array(y),T=0;T=0;--E){var c=A[E];d[E]<=0?A[E]=new l(c._color,c.key,c.value,A[E+1],c.right,c._count+1):A[E]=new l(c._color,c.key,c.value,c.left,A[E+1],c._count+1)}for(var E=A.length-1;E>1;--E){var R=A[E-1],c=A[E];if(R._color===i||c._color===i)break;var N=A[E-2];if(N.left===R)if(R.left===c){var I=N.right;if(I&&I._color===o)R._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.left=R.right,R._color=i,R.right=N,A[E-2]=R,A[E-1]=c,f(N),f(R),E>=3){var F=A[E-3];F.left===N?F.left=R:F.right=R}break}}else{var I=N.right;if(I&&I._color===o)R._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(R.right=c.left,N._color=o,N.left=c.right,c._color=i,c.left=R,c.right=N,A[E-2]=c,A[E-1]=R,f(N),f(R),f(c),E>=3){var F=A[E-3];F.left===N?F.left=c:F.right=c}break}}else if(R.right===c){var I=N.left;if(I&&I._color===o)R._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.right=R.left,R._color=i,R.left=N,A[E-2]=R,A[E-1]=c,f(N),f(R),E>=3){var F=A[E-3];F.right===N?F.right=R:F.left=R}break}}else{var I=N.left;if(I&&I._color===o)R._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(R.left=c.right,N._color=o,N.right=c.left,c._color=i,c.right=R,c.left=N,A[E-2]=c,A[E-1]=R,f(N),f(R),f(c),E>=3){var F=A[E-3];F.right===N?F.right=c:F.left=c}break}}}return A[0]._color=i,new h(g,A[0])};function _(v,w){if(w.left){var g=_(v,w.left);if(g)return g}var g=v(w.key,w.value);if(g)return g;if(w.right)return _(v,w.right)}function y(v,w,g,c){var A=w(v,c.key);if(A<=0){if(c.left){var d=y(v,w,g,c.left);if(d)return d}var d=g(c.key,c.value);if(d)return d}if(c.right)return y(v,w,g,c.right)}function b(v,w,g,c,A){var d=g(v,A.key),D=g(w,A.key),E;if(d<=0&&(A.left&&(E=b(v,w,g,c,A.left),E)||D>0&&(E=c(A.key,A.value),E)))return E;if(D>0&&A.right)return b(v,w,g,c,A.right)}p.forEach=function(w,g,c){if(this.root)switch(arguments.length){case 1:return _(w,this.root);case 2:return y(g,this._compare,w,this.root);case 3:return this._compare(g,c)>=0?void 0:b(g,c,this._compare,w,this.root)}},Object.defineProperty(p,"begin",{get:function(){for(var v=[],w=this.root;w;)v.push(w),w=w.left;return new T(this,v)}}),Object.defineProperty(p,"end",{get:function(){for(var v=[],w=this.root;w;)v.push(w),w=w.right;return new T(this,v)}}),p.at=function(v){if(v<0)return new T(this,[]);for(var w=this.root,g=[];;){if(g.push(w),w.left){if(v=w.right._count)break;w=w.right}else break}return new T(this,[])},p.ge=function(v){for(var w=this._compare,g=this.root,c=[],A=0;g;){var d=w(v,g.key);c.push(g),d<=0&&(A=c.length),d<=0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.gt=function(v){for(var w=this._compare,g=this.root,c=[],A=0;g;){var d=w(v,g.key);c.push(g),d<0&&(A=c.length),d<0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.lt=function(v){for(var w=this._compare,g=this.root,c=[],A=0;g;){var d=w(v,g.key);c.push(g),d>0&&(A=c.length),d<=0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.le=function(v){for(var w=this._compare,g=this.root,c=[],A=0;g;){var d=w(v,g.key);c.push(g),d>=0&&(A=c.length),d<0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.find=function(v){for(var w=this._compare,g=this.root,c=[];g;){var A=w(v,g.key);if(c.push(g),A===0)return new T(this,c);A<=0?g=g.left:g=g.right}return new T(this,[])},p.remove=function(v){var w=this.find(v);return w?w.remove():this},p.get=function(v){for(var w=this._compare,g=this.root;g;){var c=w(v,g.key);if(c===0)return g.value;c<=0?g=g.left:g=g.right}};function T(v,w){this.tree=v,this._stack=w}var m=T.prototype;Object.defineProperty(m,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(m,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),m.clone=function(){return new T(this.tree,this._stack.slice())};function k(v,w){v.key=w.key,v.value=w.value,v.left=w.left,v.right=w.right,v._color=w._color,v._count=w._count}function S(v){for(var w,g,c,A,d=v.length-1;d>=0;--d){if(w=v[d],d===0){w._color=i;return}if(g=v[d-1],g.left===w){if(c=g.right,c.right&&c.right._color===o){if(c=g.right=u(c),A=c.right=u(c.right),g.right=c.left,c.left=g,c.right=A,c._color=g._color,w._color=i,g._color=i,A._color=i,f(g),f(c),d>1){var D=v[d-2];D.left===g?D.left=c:D.right=c}v[d-1]=c;return}else if(c.left&&c.left._color===o){if(c=g.right=u(c),A=c.left=u(c.left),g.right=A.left,c.left=A.right,A.left=g,A.right=c,A._color=g._color,g._color=i,c._color=i,w._color=i,f(g),f(c),f(A),d>1){var D=v[d-2];D.left===g?D.left=A:D.right=A}v[d-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.right=s(o,c);return}else{g.right=s(o,c);continue}else{if(c=u(c),g.right=c.left,c.left=g,c._color=g._color,g._color=o,f(g),f(c),d>1){var D=v[d-2];D.left===g?D.left=c:D.right=c}v[d-1]=c,v[d]=g,d+11){var D=v[d-2];D.right===g?D.right=c:D.left=c}v[d-1]=c;return}else if(c.right&&c.right._color===o){if(c=g.left=u(c),A=c.right=u(c.right),g.left=A.right,c.right=A.left,A.right=g,A.left=c,A._color=g._color,g._color=i,c._color=i,w._color=i,f(g),f(c),f(A),d>1){var D=v[d-2];D.right===g?D.right=A:D.left=A}v[d-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.left=s(o,c);return}else{g.left=s(o,c);continue}else{if(c=u(c),g.left=c.right,c.right=g,c._color=g._color,g._color=o,f(g),f(c),d>1){var D=v[d-2];D.right===g?D.right=c:D.left=c}v[d-1]=c,v[d]=g,d+1=0;--c){var g=v[c];g.left===v[c+1]?w[c]=new l(g._color,g.key,g.value,w[c+1],g.right,g._count):w[c]=new l(g._color,g.key,g.value,g.left,w[c+1],g._count)}if(g=w[w.length-1],g.left&&g.right){var A=w.length;for(g=g.left;g.right;)w.push(g),g=g.right;var d=w[A-1];w.push(new l(g._color,d.key,d.value,g.left,g.right,g._count)),w[A-1].key=g.key,w[A-1].value=g.value;for(var c=w.length-2;c>=A;--c)g=w[c],w[c]=new l(g._color,g.key,g.value,g.left,w[c+1],g._count);w[A-1].left=w[A]}if(g=w[w.length-1],g._color===o){var D=w[w.length-2];D.left===g?D.left=null:D.right===g&&(D.right=null),w.pop();for(var c=0;c0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(m,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(m,"index",{get:function(){var v=0,w=this._stack;if(w.length===0){var g=this.tree.root;return g?g._count:0}else w[w.length-1].left&&(v=w[w.length-1].left._count);for(var c=w.length-2;c>=0;--c)w[c+1]===w[c].right&&(++v,w[c].left&&(v+=w[c].left._count));return v},enumerable:!0}),m.next=function(){var v=this._stack;if(v.length!==0){var w=v[v.length-1];if(w.right)for(w=w.right;w;)v.push(w),w=w.left;else for(v.pop();v.length>0&&v[v.length-1].right===w;)w=v[v.length-1],v.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var v=this._stack;if(v.length===0)return!1;if(v[v.length-1].right)return!0;for(var w=v.length-1;w>0;--w)if(v[w-1].left===v[w])return!0;return!1}}),m.update=function(v){var w=this._stack;if(w.length===0)throw new Error("Can't update empty node!");var g=new Array(w.length),c=w[w.length-1];g[g.length-1]=new l(c._color,c.key,v,c.left,c.right,c._count);for(var A=w.length-2;A>=0;--A)c=w[A],c.left===w[A+1]?g[A]=new l(c._color,c.key,c.value,g[A+1],c.right,c._count):g[A]=new l(c._color,c.key,c.value,c.left,g[A+1],c._count);return new h(this.tree._compare,g[0])},m.prev=function(){var v=this._stack;if(v.length!==0){var w=v[v.length-1];if(w.left)for(w=w.left;w;)v.push(w),w=w.right;else for(v.pop();v.length>0&&v[v.length-1].left===w;)w=v[v.length-1],v.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var v=this._stack;if(v.length===0)return!1;if(v[v.length-1].left)return!0;for(var w=v.length-1;w>0;--w)if(v[w-1].right===v[w])return!0;return!1}});function x(v,w){return vw?1:0}function M(v){return new h(v||x,null)}},3837:function(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),h=i(6444),p=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),_=ArrayBuffer,y=DataView;function b(R){return _.isView(R)&&!(R instanceof y)}function T(R){return Array.isArray(R)||b(R)}function m(R,N){return R[0]=N[0],R[1]=N[1],R[2]=N[2],R}function k(R){this.gl=R,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=s(R)}var S=k.prototype;S.update=function(R){R=R||{};function N(Z,se,j){if(j in R){var V=R[j],re=this[j],H;(Z?T(V)&&T(V[0]):T(V))?this[j]=H=[se(V[0]),se(V[1]),se(V[2])]:this[j]=H=[se(V),se(V),se(V)];for(var ne=0;ne<3;++ne)if(H[ne]!==re[ne])return!0}return!1}var I=N.bind(this,!1,Number),F=N.bind(this,!1,Boolean),L=N.bind(this,!1,String),P=N.bind(this,!0,function(Z){if(T(Z)){if(Z.length===3)return[+Z[0],+Z[1],+Z[2],1];if(Z.length===4)return[+Z[0],+Z[1],+Z[2],+Z[3]]}return[0,0,0,1]}),O,B=!1,X=!1;if("bounds"in R)for(var $=R.bounds,ee=0;ee<2;++ee)for(var Y=0;Y<3;++Y)$[ee][Y]!==this.bounds[ee][Y]&&(X=!0),this.bounds[ee][Y]=$[ee][Y];if("ticks"in R){O=R.ticks,B=!0,this.autoTicks=!1;for(var ee=0;ee<3;++ee)this.tickSpacing[ee]=0}else I("tickSpacing")&&(this.autoTicks=!0,X=!0);if(this._firstInit&&("ticks"in R||"tickSpacing"in R||(this.autoTicks=!0),X=!0,B=!0,this._firstInit=!1),X&&this.autoTicks&&(O=h.create(this.bounds,this.tickSpacing),B=!0),B){for(var ee=0;ee<3;++ee)O[ee].sort(function(se,j){return se.x-j.x});h.equal(O,this.ticks)?B=!1:this.ticks=O}F("tickEnable"),L("tickFont")&&(B=!0),L("tickFontStyle")&&(B=!0),L("tickFontWeight")&&(B=!0),L("tickFontVariant")&&(B=!0),I("tickSize"),I("tickAngle"),I("tickPad"),P("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),F("labelEnable"),I("labelSize"),I("labelPad"),P("labelColor"),F("lineEnable"),F("lineMirror"),I("lineWidth"),P("lineColor"),F("lineTickEnable"),F("lineTickMirror"),I("lineTickLength"),I("lineTickWidth"),P("lineTickColor"),F("gridEnable"),I("gridWidth"),P("gridColor"),F("zeroEnable"),P("zeroLineColor"),I("zeroLineWidth"),F("backgroundEnable"),P("backgroundColor");var Q=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],oe=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||B)&&this._text.update(this.bounds,this.labels,Q,this.ticks,oe):this._text=l(this.gl,this.bounds,this.labels,Q,this.ticks,oe),this._lines&&B&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function x(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new x,new x,new x];function v(R,N,I,F,L){for(var P=R.primalOffset,O=R.primalMinor,B=R.mirrorOffset,X=R.mirrorMinor,$=F[N],ee=0;ee<3;++ee)if(N!==ee){var Y=P,q=B,Q=O,oe=X;$&1<0?(Q[ee]=-1,oe[ee]=0):(Q[ee]=0,oe[ee]=1)}}var w=[0,0,0],g={model:p,view:p,projection:p,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(R){};var c=0,A=[0,0,0],d=[0,0,0],D=[0,0,0];S.draw=function(R){R=R||g;for(var j=this.gl,N=R.model||p,I=R.view||p,F=R.projection||p,L=this.bounds,P=R._ortho||!1,O=f(N,I,F,L,P),B=O.cubeEdges,X=O.axis,$=I[12],ee=I[13],Y=I[14],q=I[15],Q=P?2:1,oe=Q*this.pixelRatio*(F[3]*$+F[7]*ee+F[11]*Y+F[15]*q)/j.drawingBufferHeight,Z=0;Z<3;++Z)this.lastCubeProps.cubeEdges[Z]=B[Z],this.lastCubeProps.axis[Z]=X[Z];for(var se=M,Z=0;Z<3;++Z)v(M[Z],Z,this.bounds,B,X);for(var j=this.gl,V=w,Z=0;Z<3;++Z)this.backgroundEnable[Z]?V[Z]=X[Z]:V[Z]=0;this._background.draw(N,I,F,L,V,this.backgroundColor),this._lines.bind(N,I,F,this);for(var Z=0;Z<3;++Z){var re=[0,0,0];X[Z]>0?re[Z]=L[1][Z]:re[Z]=L[0][Z];for(var H=0;H<2;++H){var ne=(Z+1+H)%3,ue=(Z+1+(H^1))%3;this.gridEnable[ne]&&this._lines.drawGrid(ne,ue,this.bounds,re,this.gridColor[ne],this.gridWidth[ne]*this.pixelRatio)}for(var H=0;H<2;++H){var ne=(Z+1+H)%3,ue=(Z+1+(H^1))%3;this.zeroEnable[ue]&&Math.min(L[0][ue],L[1][ue])<=0&&Math.max(L[0][ue],L[1][ue])>=0&&this._lines.drawZero(ne,ue,this.bounds,re,this.zeroLineColor[ue],this.zeroLineWidth[ue]*this.pixelRatio)}}for(var Z=0;Z<3;++Z){this.lineEnable[Z]&&this._lines.drawAxisLine(Z,this.bounds,se[Z].primalOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio),this.lineMirror[Z]&&this._lines.drawAxisLine(Z,this.bounds,se[Z].mirrorOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio);for(var ye=m(A,se[Z].primalMinor),ke=m(d,se[Z].mirrorMinor),Me=this.lineTickLength,H=0;H<3;++H){var ge=oe/N[5*H];ye[H]*=Me[H]*ge,ke[H]*=Me[H]*ge}this.lineTickEnable[Z]&&this._lines.drawAxisTicks(Z,se[Z].primalOffset,ye,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio),this.lineTickMirror[Z]&&this._lines.drawAxisTicks(Z,se[Z].mirrorOffset,ke,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio)}this._lines.unbind(),this._text.bind(N,I,F,this.pixelRatio);var Ee,Ce=.5,Fe,ie;function J(xe){ie=[0,0,0],ie[xe]=1}function te(xe,me,de){var _e=(xe+1)%3,Ae=(xe+2)%3,Ie=me[_e],De=me[Ae],We=de[_e],Oe=de[Ae];if(Ie>0&&Oe>0){J(_e);return}else if(Ie>0&&Oe<0){J(_e);return}else if(Ie<0&&Oe>0){J(_e);return}else if(Ie<0&&Oe<0){J(_e);return}else if(De>0&&We>0){J(Ae);return}else if(De>0&&We<0){J(Ae);return}else if(De<0&&We>0){J(Ae);return}else if(De<0&&We<0){J(Ae);return}}for(var Z=0;Z<3;++Z){for(var ae=se[Z].primalMinor,ce=se[Z].mirrorMinor,pe=m(D,se[Z].primalOffset),H=0;H<3;++H)this.lineTickEnable[Z]&&(pe[H]+=oe*ae[H]*Math.max(this.lineTickLength[H],0)/N[5*H]);var ve=[0,0,0];if(ve[Z]=1,this.tickEnable[Z]){this.tickAngle[Z]===-3600?(this.tickAngle[Z]=0,this.tickAlign[Z]="auto"):this.tickAlign[Z]=-1,Fe=1,Ee=[this.tickAlign[Z],Ce,Fe],Ee[0]==="auto"?Ee[0]=c:Ee[0]=parseInt(""+Ee[0]),ie=[0,0,0],te(Z,ae,ce);for(var H=0;H<3;++H)pe[H]+=oe*ae[H]*this.tickPad[H]/N[5*H];this._text.drawTicks(Z,this.tickSize[Z],this.tickAngle[Z],pe,this.tickColor[Z],ve,ie,Ee)}if(this.labelEnable[Z]){Fe=0,ie=[0,0,0],this.labels[Z].length>4&&(J(Z),Fe=1),Ee=[this.labelAlign[Z],Ce,Fe],Ee[0]==="auto"?Ee[0]=c:Ee[0]=parseInt(""+Ee[0]);for(var H=0;H<3;++H)pe[H]+=oe*ae[H]*this.labelPad[H]/N[5*H];pe[Z]+=.5*(L[0][Z]+L[1][Z]),this._text.drawLabel(Z,this.labelSize[Z],this.labelAngle[Z],pe,this.labelColor[Z],[0,0,0],ie,Ee)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(R,N){var I=new k(R);return I.update(N),I}},5304:function(a,o,i){"use strict";a.exports=p;var l=i(2762),u=i(8116),s=i(1879).bg;function f(_,y,b,T){this.gl=_,this.buffer=y,this.vao=b,this.shader=T}var h=f.prototype;h.draw=function(_,y,b,T,m,k){for(var S=!1,x=0;x<3;++x)S=S||m[x];if(S){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:_,view:y,projection:b,bounds:T,enable:m,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},h.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function p(_){for(var y=[],b=[],T=0,m=0;m<3;++m)for(var k=(m+1)%3,S=(m+2)%3,x=[0,0,0],M=[0,0,0],v=-1;v<=1;v+=2){b.push(T,T+2,T+1,T+1,T+2,T+3),x[m]=v,M[m]=v;for(var w=-1;w<=1;w+=2){x[k]=w;for(var g=-1;g<=1;g+=2)x[S]=g,y.push(x[0],x[1],x[2],M[0],M[1],M[2]),T+=1}var c=k;k=S,S=c}var A=l(_,new Float32Array(y)),d=l(_,new Uint16Array(b),_.ELEMENT_ARRAY_BUFFER),D=u(_,[{buffer:A,type:_.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:_.FLOAT,size:3,offset:12,stride:24}],d),E=s(_);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(_,A,D,E)}},6429:function(a,o,i){"use strict";a.exports=v;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),h=new Array(16),p=new Array(8),_=new Array(8),y=new Array(3),b=[0,0,0];(function(){for(var w=0;w<8;++w)p[w]=[1,1,1,1],_[w]=[1,1,1]})();function T(w,g,c){for(var A=0;A<4;++A){w[A]=c[12+A];for(var d=0;d<3;++d)w[A]+=g[d]*c[4*d+A]}}var m=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(w){for(var g=0;gX&&(I|=1<X){I|=1<_[E][1])&&(se=E);for(var j=-1,E=0;E<3;++E){var V=se^1<_[re][0]&&(re=V)}}var H=S;H[0]=H[1]=H[2]=0,H[l.log2(j^se)]=se&j,H[l.log2(se^re)]=se&re;var ne=re^7;ne===I||ne===Z?(ne=j^7,H[l.log2(re^ne)]=ne&re):H[l.log2(j^ne)]=ne&j;for(var ue=x,ye=I,P=0;P<3;++P)ye&1<24?(isFinite(z)&&(clearTimeout(fc),fc=setTimeout(Ud,z)),uc=0):(uc=1,rx(Ud))}e.timer.flush=function(){tx(),nx()};function tx(){for(var C=Date.now(),z=lc;z;)C>=z.t&&z.c(C-z.t)&&(z.c=null),z=z.n;return C}function nx(){for(var C,z=lc,U=1/0;z;)z.c?(z.t=0;--le)Ne.push(W[we[Re[le]][2]]);for(le=+Ge;le1&&wr(C[U[G-2]],C[U[G-1]],C[W])<=0;)--G;U[G++]=W}return U.slice(0,G)}function Hq(C,z){return C[0]-z[0]||C[1]-z[1]}e.geom.polygon=function(C){return q(C,hc),C};var hc=e.geom.polygon.prototype=[];hc.area=function(){for(var C=-1,z=this.length,U,G=this[z-1],W=0;++CLe)le=le.L;else if(fe=z-Wq(le,U),fe>Le){if(!le.R){G=le;break}le=le.R}else{K>-Le?(G=le.P,W=le):fe>-Le?(G=le,W=le.N):G=W=le;break}var he=sx(C);if(Ps.insert(G,he),!(!G&&!W)){if(G===W){Is(G),W=sx(G.site),Ps.insert(he,W),he.edge=W.edge=of(G.site,he.site),Fs(G),Fs(W);return}if(!W){he.edge=of(G.site,he.site);return}Is(G),Is(W);var we=G.site,Te=we.x,Re=we.y,Pe=C.x-Te,Ge=C.y-Re,Je=W.site,Ne=Je.x-Te,qe=Je.y-Re,Ue=2*(Pe*qe-Ge*Ne),Ze=Pe*Pe+Ge*Ge,Ke=Ne*Ne+qe*qe,Ve={x:(qe*Ze-Ge*Ke)/Ue+Te,y:(Pe*Ke-Ne*Ze)/Ue+Re};vc(W.edge,we,Je,Ve),he.edge=of(we,C,null,Ve),W.edge=of(C,Je,null,Ve),Fs(G),Fs(W)}}function ux(C,z){var U=C.site,G=U.x,W=U.y,K=W-z;if(!K)return G;var fe=C.P;if(!fe)return-1/0;U=fe.site;var le=U.x,he=U.y,we=he-z;if(!we)return le;var Te=le-G,Re=1/K-1/we,Pe=Te/we;return Re?(-Pe+Math.sqrt(Pe*Pe-2*Re*(Te*Te/(-2*we)-he+we/2+W-K/2)))/Re+G:(G+le)/2}function Wq(C,z){var U=C.N;if(U)return ux(U,z);var G=C.site;return G.y===z?G.x:1/0}function fx(C){this.site=C,this.edges=[]}fx.prototype.prepare=function(){for(var C=this.edges,z=C.length,U;z--;)U=C[z].edge,(!U.b||!U.a)&&C.splice(z,1);return C.sort(cx),C.length};function Xq(C){for(var z=C[0][0],U=C[1][0],G=C[0][1],W=C[1][1],K,fe,le,he,we=Ml,Te=we.length,Re,Pe,Ge,Je,Ne,qe;Te--;)if(Re=we[Te],!(!Re||!Re.prepare()))for(Ge=Re.edges,Je=Ge.length,Pe=0;PeLe||m(he-fe)>Le)&&(Ge.splice(Pe,0,new dc($q(Re.site,qe,m(le-z)Le?{x:z,y:m(K-z)Le?{x:m(fe-W)Le?{x:U,y:m(K-U)Le?{x:m(fe-G)=-Ye)){var Pe=he*he+we*we,Ge=Te*Te+qe*qe,Je=(qe*Pe-we*Ge)/Re,Ne=(he*Ge-Te*Pe)/Re,qe=Ne+le,Ue=lx.pop()||new Zq;Ue.arc=C,Ue.site=W,Ue.x=Je+fe,Ue.y=qe+Math.sqrt(Je*Je+Ne*Ne),Ue.cy=qe,C.circle=Ue;for(var Ze=null,Ke=af._;Ke;)if(Ue.y0)){if(Ne/=Ge,Ge<0){if(Ne0){if(Ne>Pe)return;Ne>Re&&(Re=Ne)}if(Ne=U-le,!(!Ge&&Ne<0)){if(Ne/=Ge,Ge<0){if(Ne>Pe)return;Ne>Re&&(Re=Ne)}else if(Ge>0){if(Ne0)){if(Ne/=Je,Je<0){if(Ne0){if(Ne>Pe)return;Ne>Re&&(Re=Ne)}if(Ne=G-he,!(!Je&&Ne<0)){if(Ne/=Je,Je<0){if(Ne>Pe)return;Ne>Re&&(Re=Ne)}else if(Je>0){if(Ne0&&(W.a={x:le+Re*Ge,y:he+Re*Je}),Pe<1&&(W.b={x:le+Pe*Ge,y:he+Pe*Je}),W}}}}}}function Kq(C){for(var z=Rs,U=Jq(C[0][0],C[0][1],C[1][0],C[1][1]),G=z.length,W;G--;)W=z[G],(!Qq(W,C)||!U(W)||m(W.a.x-W.b.x)=K)return;if(Te>Pe){if(!G)G={x:Je,y:fe};else if(G.y>=le)return;U={x:Je,y:le}}else{if(!G)G={x:Je,y:le};else if(G.y1)if(Te>Pe){if(!G)G={x:(fe-Ue)/qe,y:fe};else if(G.y>=le)return;U={x:(le-Ue)/qe,y:le}}else{if(!G)G={x:(le-Ue)/qe,y:le};else if(G.y=K)return;U={x:K,y:qe*K+Ue}}else{if(!G)G={x:K,y:qe*K+Ue};else if(G.x=Te&&Ue.x<=Pe&&Ue.y>=Re&&Ue.y<=Ge?[[Te,Ge],[Pe,Ge],[Pe,Re],[Te,Re]]:[];Ze.point=he[Ne]}),we}function le(he){return he.map(function(we,Te){return{x:Math.round(G(we,Te)/Le)*Le,y:Math.round(W(we,Te)/Le)*Le,i:Te}})}return fe.links=function(he){return Xd(le(he)).edges.filter(function(we){return we.l&&we.r}).map(function(we){return{source:he[we.l.i],target:he[we.r.i]}})},fe.triangles=function(he){var we=[];return Xd(le(he)).cells.forEach(function(Te,Re){for(var Pe=Te.site,Ge=Te.edges.sort(cx),Je=-1,Ne=Ge.length,qe,Ue,Ze=Ge[Ne-1].edge,Ke=Ze.l===Pe?Ze.r:Ze.l;++JeKe&&(Ke=Te.x),Te.y>Ve&&(Ve=Te.y),Ge.push(Te.x),Je.push(Te.y);else for(Ne=0;NeKe&&(Ke=tr),fr>Ve&&(Ve=fr),Ge.push(tr),Je.push(fr)}var dr=Ke-Ue,cr=Ve-Ze;dr>cr?Ve=Ze+dr:Ke=Ue+cr;function pr(mr,Cr,ut,Ut,dt,sr,Ir,Or){if(!(isNaN(ut)||isNaN(Ut)))if(mr.leaf){var ft=mr.x,It=mr.y;if(ft!=null)if(m(ft-ut)+m(It-Ut)<.01)gr(mr,Cr,ut,Ut,dt,sr,Ir,Or);else{var rn=mr.point;mr.x=mr.y=mr.point=null,gr(mr,rn,ft,It,dt,sr,Ir,Or),gr(mr,Cr,ut,Ut,dt,sr,Ir,Or)}else mr.x=ut,mr.y=Ut,mr.point=Cr}else gr(mr,Cr,ut,Ut,dt,sr,Ir,Or)}function gr(mr,Cr,ut,Ut,dt,sr,Ir,Or){var ft=(dt+Ir)*.5,It=(sr+Or)*.5,rn=ut>=ft,wn=Ut>=It,zn=wn<<1|rn;mr.leaf=!1,mr=mr.nodes[zn]||(mr.nodes[zn]=dx()),rn?dt=ft:Ir=ft,wn?sr=It:Or=It,pr(mr,Cr,ut,Ut,dt,sr,Ir,Or)}var Fr=dx();if(Fr.add=function(mr){pr(Fr,mr,+Re(mr,++Ne),+Pe(mr,Ne),Ue,Ze,Ke,Ve)},Fr.visit=function(mr){uf(mr,Fr,Ue,Ze,Ke,Ve)},Fr.find=function(mr){return nO(Fr,mr[0],mr[1],Ue,Ze,Ke,Ve)},Ne=-1,z==null){for(;++NeK||Pe>fe||Ge=tr,cr=U>=fr,pr=cr<<1|dr,gr=pr+4;prU&&(K=z.slice(U,K),le[fe]?le[fe]+=K:le[++fe]=K),(G=G[0])===(W=W[0])?le[fe]?le[fe]+=W:le[++fe]=W:(le[++fe]=null,he.push({i:fe,x:ro(G,W)})),U=Kd.lastIndex;return U=0&&!(G=e.interpolators[U](C,z)););return G}e.interpolators=[function(C,z){var U=typeof z;return(U==="string"?_n.has(z.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(z)?Zd:gx:z instanceof Zr?Zd:Array.isArray(z)?yc:U==="object"&&isNaN(z)?px:ro)(C,z)}],e.interpolateArray=yc;function yc(C,z){var U=[],G=[],W=C.length,K=z.length,fe=Math.min(C.length,z.length),le;for(le=0;le=0?C.slice(0,z):C,G=z>=0?C.slice(z+1):"in";return U=aO.get(U)||yx,G=iO.get(G)||N,oO(G(U.apply(null,r.call(arguments,1))))};function oO(C){return function(z){return z<=0?0:z>=1?1:C(z)}}function mx(C){return function(z){return 1-C(1-z)}}function xx(C){return function(z){return .5*(z<.5?C(2*z):2-C(2-2*z))}}function lO(C){return C*C}function sO(C){return C*C*C}function uO(C){if(C<=0)return 0;if(C>=1)return 1;var z=C*C,U=z*C;return 4*(C<.5?U:3*(C-z)+U-.75)}function fO(C){return function(z){return Math.pow(z,C)}}function cO(C){return 1-Math.cos(C*je)}function hO(C){return Math.pow(2,10*(C-1))}function vO(C){return 1-Math.sqrt(1-C*C)}function dO(C,z){var U;return arguments.length<2&&(z=.45),arguments.length?U=z/$e*Math.asin(1/C):(C=1,U=z/4),function(G){return 1+C*Math.pow(2,-10*G)*Math.sin((G-U)*$e/z)}}function pO(C){return C||(C=1.70158),function(z){return z*z*((C+1)*z-C)}}function gO(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375}e.interpolateHcl=yO;function yO(C,z){C=e.hcl(C),z=e.hcl(z);var U=C.h,G=C.c,W=C.l,K=z.h-U,fe=z.c-G,le=z.l-W;return isNaN(fe)&&(fe=0,G=isNaN(G)?z.c:G),isNaN(K)?(K=0,U=isNaN(U)?z.h:U):K>180?K-=360:K<-180&&(K+=360),function(he){return Jt(U+K*he,G+fe*he,W+le*he)+""}}e.interpolateHsl=mO;function mO(C,z){C=e.hsl(C),z=e.hsl(z);var U=C.h,G=C.s,W=C.l,K=z.h-U,fe=z.s-G,le=z.l-W;return isNaN(fe)&&(fe=0,G=isNaN(G)?z.s:G),isNaN(K)?(K=0,U=isNaN(U)?z.h:U):K>180?K-=360:K<-180&&(K+=360),function(he){return Rt(U+K*he,G+fe*he,W+le*he)+""}}e.interpolateLab=xO;function xO(C,z){C=e.lab(C),z=e.lab(z);var U=C.l,G=C.a,W=C.b,K=z.l-U,fe=z.a-G,le=z.b-W;return function(he){return Ma(U+K*he,G+fe*he,W+le*he)+""}}e.interpolateRound=bx;function bx(C,z){return z-=C,function(U){return Math.round(C+z*U)}}e.transform=function(C){var z=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(U){if(U!=null){z.setAttribute("transform",U);var G=z.transform.baseVal.consolidate()}return new _x(G?G.matrix:_O)})(C)};function _x(C){var z=[C.a,C.b],U=[C.c,C.d],G=Mx(z),W=wx(z,U),K=Mx(bO(U,z,-W))||0;z[0]*U[1]180?z+=360:z-C>180&&(C+=360),G.push({i:U.push(Ns(U)+"rotate(",null,")")-2,x:ro(C,z)})):z&&U.push(Ns(U)+"rotate("+z+")")}function TO(C,z,U,G){C!==z?G.push({i:U.push(Ns(U)+"skewX(",null,")")-2,x:ro(C,z)}):z&&U.push(Ns(U)+"skewX("+z+")")}function AO(C,z,U,G){if(C[0]!==z[0]||C[1]!==z[1]){var W=U.push(Ns(U)+"scale(",null,",",null,")");G.push({i:W-4,x:ro(C[0],z[0])},{i:W-2,x:ro(C[1],z[1])})}else(z[0]!==1||z[1]!==1)&&U.push(Ns(U)+"scale("+z+")")}function Tx(C,z){var U=[],G=[];return C=e.transform(C),z=e.transform(z),wO(C.translate,z.translate,U,G),MO(C.rotate,z.rotate,U,G),TO(C.skew,z.skew,U,G),AO(C.scale,z.scale,U,G),C=z=null,function(W){for(var K=-1,fe=G.length,le;++K0?K=Ve:(U.c=null,U.t=NaN,U=null,z.end({type:"end",alpha:K=0})):Ve>0&&(z.start({type:"start",alpha:K=Ve}),U=cc(C.tick)),C):K},C.start=function(){var Ve,tr=Ge.length,fr=Je.length,dr=G[0],cr=G[1],pr,gr;for(Ve=0;Ve=0;)K.push(Te=we[he]),Te.parent=le,Te.depth=le.depth+1;U&&(le.value=0),le.children=we}else U&&(le.value=+U.call(G,le,le.depth)||0),delete le.children;return Ai(W,function(Re){var Pe,Ge;C&&(Pe=Re.children)&&Pe.sort(C),U&&(Ge=Re.parent)&&(Ge.value+=Re.value)}),fe}return G.sort=function(W){return arguments.length?(C=W,G):C},G.children=function(W){return arguments.length?(z=W,G):z},G.value=function(W){return arguments.length?(U=W,G):U},G.revalue=function(W){return U&&(cf(W,function(K){K.children&&(K.value=0)}),Ai(W,function(K){var fe;K.children||(K.value=+U.call(G,K,K.depth)||0),(fe=K.parent)&&(fe.value+=K.value)})),W},G};function ff(C,z){return e.rebind(C,z,"sort","children","value"),C.nodes=C,C.links=BO,C}function cf(C,z){for(var U=[C];(C=U.pop())!=null;)if(z(C),(W=C.children)&&(G=W.length))for(var G,W;--G>=0;)U.push(W[G])}function Ai(C,z){for(var U=[C],G=[];(C=U.pop())!=null;)if(G.push(C),(fe=C.children)&&(K=fe.length))for(var W=-1,K,fe;++WW&&(W=le),G.push(le)}for(fe=0;feG&&(U=z,G=W);return U}function XO(C){return C.reduce(ZO,0)}function ZO(C,z){return C+z[1]}e.layout.histogram=function(){var C=!0,z=Number,U=KO,G=JO;function W(K,Pe){for(var le=[],he=K.map(z,this),we=U.call(this,he,Pe),Te=G.call(this,we,he,Pe),Re,Pe=-1,Ge=he.length,Je=Te.length-1,Ne=C?1:1/Ge,qe;++Pe0)for(Pe=-1;++Pe=we[0]&&qe<=we[1]&&(Re=le[e.bisect(Te,qe,1,Je)-1],Re.y+=Ne,Re.push(K[Pe]));return le}return W.value=function(K){return arguments.length?(z=K,W):z},W.range=function(K){return arguments.length?(U=Vr(K),W):U},W.bins=function(K){return arguments.length?(G=typeof K=="number"?function(fe){return Cx(fe,K)}:Vr(K),W):G},W.frequency=function(K){return arguments.length?(C=!!K,W):C},W};function JO(C,z){return Cx(C,Math.ceil(Math.log(z.length)/Math.LN2+1))}function Cx(C,z){for(var U=-1,G=+C[0],W=(C[1]-G)/z,K=[];++U<=z;)K[U]=W*U+G;return K}function KO(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(QO),z=0,U=[1,1],G;function W(K,fe){var le=C.call(this,K,fe),he=le[0],we=U[0],Te=U[1],Re=G==null?Math.sqrt:typeof G=="function"?G:function(){return G};if(he.x=he.y=0,Ai(he,function(Ge){Ge.r=+Re(Ge.value)}),Ai(he,Dx),z){var Pe=z*(G?1:Math.max(2*he.r/we,2*he.r/Te))/2;Ai(he,function(Ge){Ge.r+=Pe}),Ai(he,Dx),Ai(he,function(Ge){Ge.r-=Pe})}return Rx(he,we/2,Te/2,G?1:1/Math.max(2*he.r/we,2*he.r/Te)),le}return W.size=function(K){return arguments.length?(U=K,W):U},W.radius=function(K){return arguments.length?(G=K==null||typeof K=="function"?K:+K,W):G},W.padding=function(K){return arguments.length?(z=+K,W):z},ff(W,C)};function QO(C,z){return C.value-z.value}function jd(C,z){var U=C._pack_next;C._pack_next=z,z._pack_prev=C,z._pack_next=U,U._pack_prev=z}function Ex(C,z){C._pack_next=z,z._pack_prev=C}function Lx(C,z){var U=z.x-C.x,G=z.y-C.y,W=C.r+z.r;return .999*W*W>U*U+G*G}function Dx(C){if(!(z=C.children)||!(Pe=z.length))return;var z,U=1/0,G=-1/0,W=1/0,K=-1/0,fe,le,he,we,Te,Re,Pe;function Ge(Ve){U=Math.min(Ve.x-Ve.r,U),G=Math.max(Ve.x+Ve.r,G),W=Math.min(Ve.y-Ve.r,W),K=Math.max(Ve.y+Ve.r,K)}if(z.forEach($O),fe=z[0],fe.x=-fe.r,fe.y=0,Ge(fe),Pe>1&&(le=z[1],le.x=le.r,le.y=0,Ge(le),Pe>2))for(he=z[2],Px(fe,le,he),Ge(he),jd(fe,he),fe._pack_prev=he,jd(he,le),le=fe._pack_next,we=3;weqe.x&&(qe=tr),tr.depth>Ue.depth&&(Ue=tr)});var Ze=z(Ne,qe)/2-Ne.x,Ke=U[0]/(qe.x+z(qe,Ne)/2+Ze),Ve=U[1]/(Ue.depth||1);cf(Ge,function(tr){tr.x=(tr.x+Ze)*Ke,tr.y=tr.depth*Ve})}return Pe}function K(Te){for(var Re={A:null,children:[Te]},Pe=[Re],Ge;(Ge=Pe.pop())!=null;)for(var Je=Ge.children,Ne,qe=0,Ue=Je.length;qe0&&(eB(tB(Ne,Te,Pe),Te,tr),Ue+=tr,Ze+=tr),Ke+=Ne.m,Ue+=Ge.m,Ve+=qe.m,Ze+=Je.m;Ne&&!rp(Je)&&(Je.t=Ne,Je.m+=Ke-Ze),Ge&&!ep(qe)&&(qe.t=Ge,qe.m+=Ue-Ve,Pe=Te)}return Pe}function we(Te){Te.x*=U[0],Te.y=Te.depth*U[1]}return W.separation=function(Te){return arguments.length?(z=Te,W):z},W.size=function(Te){return arguments.length?(G=(U=Te)==null?we:null,W):G?null:U},W.nodeSize=function(Te){return arguments.length?(G=(U=Te)==null?null:we,W):G?U:null},ff(W,C)};function Fx(C,z){return C.parent==z.parent?1:2}function ep(C){var z=C.children;return z.length?z[0]:C.t}function rp(C){var z=C.children,U;return(U=z.length)?z[U-1]:C.t}function eB(C,z,U){var G=U/(z.i-C.i);z.c-=G,z.s+=U,C.c+=G,z.z+=U,z.m+=U}function rB(C){for(var z=0,U=0,G=C.children,W=G.length,K;--W>=0;)K=G[W],K.z+=z,K.m+=z,z+=K.s+(U+=K.c)}function tB(C,z,U){return C.a.parent===z.parent?C.a:U}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),z=Fx,U=[1,1],G=!1;function W(K,fe){var le=C.call(this,K,fe),he=le[0],we,Te=0;Ai(he,function(Ne){var qe=Ne.children;qe&&qe.length?(Ne.x=aB(qe),Ne.y=nB(qe)):(Ne.x=we?Te+=z(Ne,we):0,Ne.y=0,we=Ne)});var Re=Ix(he),Pe=Nx(he),Ge=Re.x-z(Re,Pe)/2,Je=Pe.x+z(Pe,Re)/2;return Ai(he,G?function(Ne){Ne.x=(Ne.x-he.x)*U[0],Ne.y=(he.y-Ne.y)*U[1]}:function(Ne){Ne.x=(Ne.x-Ge)/(Je-Ge)*U[0],Ne.y=(1-(he.y?Ne.y/he.y:1))*U[1]}),le}return W.separation=function(K){return arguments.length?(z=K,W):z},W.size=function(K){return arguments.length?(G=(U=K)==null,W):G?null:U},W.nodeSize=function(K){return arguments.length?(G=(U=K)!=null,W):G?U:null},ff(W,C)};function nB(C){return 1+e.max(C,function(z){return z.y})}function aB(C){return C.reduce(function(z,U){return z+U.x},0)/C.length}function Ix(C){var z=C.children;return z&&z.length?Ix(z[0]):C}function Nx(C){var z=C.children,U;return z&&(U=z.length)?Nx(z[U-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),z=Math.round,U=[1,1],G=null,W=tp,K=!1,fe,le="squarify",he=.5*(1+Math.sqrt(5));function we(Ne,qe){for(var Ue=-1,Ze=Ne.length,Ke,Ve;++Ue0;)Ze.push(Ve=Ke[cr-1]),Ze.area+=Ve.area,le!=="squarify"||(fr=Pe(Ze,dr))<=tr?(Ke.pop(),tr=fr):(Ze.area-=Ze.pop().area,Ge(Ze,dr,Ue,!1),dr=Math.min(Ue.dx,Ue.dy),Ze.length=Ze.area=0,tr=1/0);Ze.length&&(Ge(Ze,dr,Ue,!0),Ze.length=Ze.area=0),qe.forEach(Te)}}function Re(Ne){var qe=Ne.children;if(qe&&qe.length){var Ue=W(Ne),Ze=qe.slice(),Ke,Ve=[];for(we(Ze,Ue.dx*Ue.dy/Ne.value),Ve.area=0;Ke=Ze.pop();)Ve.push(Ke),Ve.area+=Ke.area,Ke.z!=null&&(Ge(Ve,Ke.z?Ue.dx:Ue.dy,Ue,!Ze.length),Ve.length=Ve.area=0);qe.forEach(Re)}}function Pe(Ne,qe){for(var Ue=Ne.area,Ze,Ke=0,Ve=1/0,tr=-1,fr=Ne.length;++trKe&&(Ke=Ze));return Ue*=Ue,qe*=qe,Ue?Math.max(qe*Ke*he/Ue,Ue/(qe*Ve*he)):1/0}function Ge(Ne,qe,Ue,Ze){var Ke=-1,Ve=Ne.length,tr=Ue.x,fr=Ue.y,dr=qe?z(Ne.area/qe):0,cr;if(qe==Ue.dx){for((Ze||dr>Ue.dy)&&(dr=Ue.dy);++KeUe.dx)&&(dr=Ue.dx);++Ke1);return C+z*G*Math.sqrt(-2*Math.log(K)/K)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var z=e.random.irwinHall(C);return function(){return z()/C}},irwinHall:function(C){return function(){for(var z=0,U=0;U2?lB:iB,we=G?SO:kO;return W=he(C,z,we,U),K=he(z,C,we,Tl),le}function le(he){return W(he)}return le.invert=function(he){return K(he)},le.domain=function(he){return arguments.length?(C=he.map(Number),fe()):C},le.range=function(he){return arguments.length?(z=he,fe()):z},le.rangeRound=function(he){return le.range(he).interpolate(bx)},le.clamp=function(he){return arguments.length?(G=he,fe()):G},le.interpolate=function(he){return arguments.length?(U=he,fe()):U},le.ticks=function(he){return ip(C,he)},le.tickFormat=function(he,we){return d3_scale_linearTickFormat(C,he,we)},le.nice=function(he){return Ux(C,he),fe()},le.copy=function(){return Ox(C,z,U,G)},fe()}function Bx(C,z){return e.rebind(C,z,"range","rangeRound","interpolate","clamp")}function Ux(C,z){return np(C,qx(ap(C,z)[2])),np(C,qx(ap(C,z)[2])),C}function ap(C,z){z==null&&(z=10);var U=mc(C),G=U[1]-U[0],W=Math.pow(10,Math.floor(Math.log(G/z)/Math.LN10)),K=z/G*W;return K<=.15?W*=10:K<=.35?W*=5:K<=.75&&(W*=2),U[0]=Math.ceil(U[0]/W)*W,U[1]=Math.floor(U[1]/W)*W+W*.5,U[2]=W,U}function ip(C,z){return e.range.apply(e,ap(C,z))}var sB={s:1,g:1,p:1,r:1,e:1};function Hx(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function xfe(C,z){var U=Hx(z[2]);return C in sB?Math.abs(U-Hx(Math.max(m(z[0]),m(z[1]))))+ +(C!=="e"):U-(C==="%")*2}e.scale.log=function(){return Vx(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Vx(C,z,U,G){function W(le){return(U?Math.log(le<0?0:le):-Math.log(le>0?0:-le))/Math.log(z)}function K(le){return U?Math.pow(z,le):-Math.pow(z,-le)}function fe(le){return C(W(le))}return fe.invert=function(le){return K(C.invert(le))},fe.domain=function(le){return arguments.length?(U=le[0]>=0,C.domain((G=le.map(Number)).map(W)),fe):G},fe.base=function(le){return arguments.length?(z=+le,C.domain(G.map(W)),fe):z},fe.nice=function(){var le=np(G.map(W),U?Math:uB);return C.domain(le),G=le.map(K),fe},fe.ticks=function(){var le=mc(G),he=[],we=le[0],Te=le[1],Re=Math.floor(W(we)),Pe=Math.ceil(W(Te)),Ge=z%1?2:z;if(isFinite(Pe-Re)){if(U){for(;Re0;Je--)he.push(K(Re)*Je);for(Re=0;he[Re]Te;Pe--);he=he.slice(Re,Pe)}return he},fe.copy=function(){return Vx(C.copy(),z,U,G)},Bx(fe,C)}var uB={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Gx(e.scale.linear(),1,[0,1])};function Gx(C,z,U){var G=bc(z),W=bc(1/z);function K(fe){return C(G(fe))}return K.invert=function(fe){return W(C.invert(fe))},K.domain=function(fe){return arguments.length?(C.domain((U=fe.map(Number)).map(G)),K):U},K.ticks=function(fe){return ip(U,fe)},K.tickFormat=function(fe,le){return d3_scale_linearTickFormat(U,fe,le)},K.nice=function(fe){return K.domain(Ux(U,fe))},K.exponent=function(fe){return arguments.length?(G=bc(z=fe),W=bc(1/z),C.domain(U.map(G)),K):z},K.copy=function(){return Gx(C.copy(),z,U)},Bx(K,C)}function bc(C){return function(z){return z<0?-Math.pow(-z,C):Math.pow(z,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Yx([],{t:"range",a:[[]]})};function Yx(C,z){var U,G,W;function K(le){return G[((U.get(le)||(z.t==="range"?U.set(le,C.push(le)):NaN))-1)%G.length]}function fe(le,he){return e.range(C.length).map(function(we){return le+he*we})}return K.domain=function(le){if(!arguments.length)return C;C=[],U=new x;for(var he=-1,we=le.length,Te;++he0?U[K-1]:C[0],KPe?0:1;if(Te=Qe)return he(Te,Je)+(we?he(we,1-Je):"")+"Z";var Ne,qe,Ue,Ze,Ke=0,Ve=0,tr,fr,dr,cr,pr,gr,Fr,mr,Cr=[];if((Ze=(+fe.apply(this,arguments)||0)/2)&&(Ue=G===_c?Math.sqrt(we*we+Te*Te):+G.apply(this,arguments),Je||(Ve*=-1),Te&&(Ve=_r(Ue/Te*Math.sin(Ze))),we&&(Ke=_r(Ue/we*Math.sin(Ze)))),Te){tr=Te*Math.cos(Re+Ve),fr=Te*Math.sin(Re+Ve),dr=Te*Math.cos(Pe-Ve),cr=Te*Math.sin(Pe-Ve);var ut=Math.abs(Pe-Re-2*Ve)<=Xe?0:1;if(Ve&&wc(tr,fr,dr,cr)===Je^ut){var Ut=(Re+Pe)/2;tr=Te*Math.cos(Ut),fr=Te*Math.sin(Ut),dr=cr=null}}else tr=fr=0;if(we){pr=we*Math.cos(Pe-Ke),gr=we*Math.sin(Pe-Ke),Fr=we*Math.cos(Re+Ke),mr=we*Math.sin(Re+Ke);var dt=Math.abs(Re-Pe+2*Ke)<=Xe?0:1;if(Ke&&wc(pr,gr,Fr,mr)===1-Je^dt){var sr=(Re+Pe)/2;pr=we*Math.cos(sr),gr=we*Math.sin(sr),Fr=mr=null}}else pr=gr=0;if(Ge>Le&&(Ne=Math.min(Math.abs(Te-we)/2,+U.apply(this,arguments)))>.001){qe=we0?0:1}function Mc(C,z,U,G,W){var K=C[0]-z[0],fe=C[1]-z[1],le=(W?G:-G)/Math.sqrt(K*K+fe*fe),he=le*fe,we=-le*K,Te=C[0]+he,Re=C[1]+we,Pe=z[0]+he,Ge=z[1]+we,Je=(Te+Pe)/2,Ne=(Re+Ge)/2,qe=Pe-Te,Ue=Ge-Re,Ze=qe*qe+Ue*Ue,Ke=U-G,Ve=Te*Ge-Pe*Re,tr=(Ue<0?-1:1)*Math.sqrt(Math.max(0,Ke*Ke*Ze-Ve*Ve)),fr=(Ve*Ue-qe*tr)/Ze,dr=(-Ve*qe-Ue*tr)/Ze,cr=(Ve*Ue+qe*tr)/Ze,pr=(-Ve*qe+Ue*tr)/Ze,gr=fr-Je,Fr=dr-Ne,mr=cr-Je,Cr=pr-Ne;return gr*gr+Fr*Fr>mr*mr+Cr*Cr&&(fr=cr,dr=pr),[[fr-he,dr-we],[fr*U/Ke,dr*U/Ke]]}function $x(){return!0}function jx(C){var z=Ds,U=nf,G=$x,W=Ja,K=W.key,fe=.7;function le(he){var we=[],Te=[],Re=-1,Pe=he.length,Ge,Je=Vr(z),Ne=Vr(U);function qe(){we.push("M",W(C(Te),fe))}for(;++Re1?C.join("L"):C+"Z"}function eb(C){return C.join("L")+"Z"}function mB(C){for(var z=0,U=C.length,G=C[0],W=[G[0],",",G[1]];++z1&&W.push("H",G[0]),W.join("")}function lp(C){for(var z=0,U=C.length,G=C[0],W=[G[0],",",G[1]];++z1){le=z[1],K=C[he],he++,G+="C"+(W[0]+fe[0])+","+(W[1]+fe[1])+","+(K[0]-le[0])+","+(K[1]-le[1])+","+K[0]+","+K[1];for(var we=2;we9&&(K=U*3/Math.sqrt(K),fe[le]=K*G,fe[le+1]=K*W));for(le=-1;++le<=he;)K=(C[Math.min(he,le+1)][0]-C[Math.max(0,le-1)][0])/(6*(1+fe[le]*fe[le])),z.push([K||0,fe[le]*K||0]);return z}function SB(C){return C.length<3?Ja(C):C[0]+Tc(C,kB(C))}e.svg.line.radial=function(){var C=jx(ab);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function ab(C){for(var z,U=-1,G=C.length,W,K;++UXe)+",1 "+Re}function we(Te,Re,Pe,Ge){return"Q 0,0 "+Ge}return K.radius=function(Te){return arguments.length?(U=Vr(Te),K):U},K.source=function(Te){return arguments.length?(C=Vr(Te),K):C},K.target=function(Te){return arguments.length?(z=Vr(Te),K):z},K.startAngle=function(Te){return arguments.length?(G=Vr(Te),K):G},K.endAngle=function(Te){return arguments.length?(W=Vr(Te),K):W},K};function CB(C){return C.radius}e.svg.diagonal=function(){var C=ob,z=lb,U=sb;function G(W,K){var fe=C.call(this,W,K),le=z.call(this,W,K),he=(fe.y+le.y)/2,we=[fe,{x:fe.x,y:he},{x:le.x,y:he},le];return we=we.map(U),"M"+we[0]+"C"+we[1]+" "+we[2]+" "+we[3]}return G.source=function(W){return arguments.length?(C=Vr(W),G):C},G.target=function(W){return arguments.length?(z=Vr(W),G):z},G.projection=function(W){return arguments.length?(U=W,G):U},G};function sb(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),z=sb,U=C.projection;return C.projection=function(G){return arguments.length?U(EB(z=G)):z},C};function EB(C){return function(){var z=C.apply(this,arguments),U=z[0],G=z[1]-je;return[U*Math.cos(G),U*Math.sin(G)]}}e.svg.symbol=function(){var C=DB,z=LB;function U(G,W){return(fb.get(C.call(this,G,W))||ub)(z.call(this,G,W))}return U.type=function(G){return arguments.length?(C=Vr(G),U):C},U.size=function(G){return arguments.length?(z=Vr(G),U):z},U};function LB(){return 64}function DB(){return"circle"}function ub(C){var z=Math.sqrt(C/Xe);return"M0,"+z+"A"+z+","+z+" 0 1,1 0,"+-z+"A"+z+","+z+" 0 1,1 0,"+z+"Z"}var fb=e.map({circle:ub,cross:function(C){var z=Math.sqrt(C/5)/2;return"M"+-3*z+","+-z+"H"+-z+"V"+-3*z+"H"+z+"V"+-z+"H"+3*z+"V"+z+"H"+z+"V"+3*z+"H"+-z+"V"+z+"H"+-3*z+"Z"},diamond:function(C){var z=Math.sqrt(C/(2*cb)),U=z*cb;return"M0,"+-z+"L"+U+",0 0,"+z+" "+-U+",0Z"},square:function(C){var z=Math.sqrt(C)/2;return"M"+-z+","+-z+"L"+z+","+-z+" "+z+","+z+" "+-z+","+z+"Z"},"triangle-down":function(C){var z=Math.sqrt(C/Ac),U=z*Ac/2;return"M0,"+U+"L"+z+","+-U+" "+-z+","+-U+"Z"},"triangle-up":function(C){var z=Math.sqrt(C/Ac),U=z*Ac/2;return"M0,"+-U+"L"+z+","+U+" "+-z+","+U+"Z"}});e.svg.symbolTypes=fb.keys();var Ac=Math.sqrt(3),cb=Math.tan(30*ir);j.transition=function(C){for(var z=Al||++vb,U=vp(C),G=[],W,K,fe=Sc||{time:Date.now(),ease:uO,delay:0,duration:250},le=-1,he=this.length;++le0;)Re[--Ze].call(C,Ue);if(qe>=1)return fe.event&&fe.event.end.call(C,C.__data__,z),--K.count?delete K[G]:delete C[U],1}fe||(le=W.time,he=cc(Pe,0,le),fe=K[G]={tween:new x,time:le,timer:he,delay:W.delay,duration:W.duration,ease:W.ease,index:z},W=null,++K.count)}e.svg.axis=function(){var C=e.scale.linear(),z=db,U=6,G=6,W=3,K=[10],fe=null,le;function he(we){we.each(function(){var Te=e.select(this),Re=this.__chart__||C,Pe=this.__chart__=C.copy(),Ge=fe==null?Pe.ticks?Pe.ticks.apply(Pe,K):Pe.domain():fe,Je=le==null?Pe.tickFormat?Pe.tickFormat.apply(Pe,K):N:le,Ne=Te.selectAll(".tick").data(Ge,Pe),qe=Ne.enter().insert("g",".domain").attr("class","tick").style("opacity",Le),Ue=e.transition(Ne.exit()).style("opacity",Le).remove(),Ze=e.transition(Ne.order()).style("opacity",1),Ke=Math.max(U,0)+W,Ve,tr=xc(Pe),fr=Te.selectAll(".domain").data([0]),dr=(fr.enter().append("path").attr("class","domain"),e.transition(fr));qe.append("line"),qe.append("text");var cr=qe.select("line"),pr=Ze.select("line"),gr=Ne.select("text").text(Je),Fr=qe.select("text"),mr=Ze.select("text"),Cr=z==="top"||z==="left"?-1:1,ut,Ut,dt,sr;if(z==="bottom"||z==="top"?(Ve=FB,ut="x",dt="y",Ut="x2",sr="y2",gr.attr("dy",Cr<0?"0em":".71em").style("text-anchor","middle"),dr.attr("d","M"+tr[0]+","+Cr*G+"V0H"+tr[1]+"V"+Cr*G)):(Ve=IB,ut="y",dt="x",Ut="y2",sr="x2",gr.attr("dy",".32em").style("text-anchor",Cr<0?"end":"start"),dr.attr("d","M"+Cr*G+","+tr[0]+"H0V"+tr[1]+"H"+Cr*G)),cr.attr(sr,Cr*U),Fr.attr(dt,Cr*Ke),pr.attr(Ut,0).attr(sr,Cr*U),mr.attr(ut,0).attr(dt,Cr*Ke),Pe.rangeBand){var Ir=Pe,Or=Ir.rangeBand()/2;Re=Pe=function(ft){return Ir(ft)+Or}}else Re.rangeBand?Re=Pe:Ue.call(Ve,Pe,Re);qe.call(Ve,Re,Pe),Ze.call(Ve,Pe,Pe)})}return he.scale=function(we){return arguments.length?(C=we,he):C},he.orient=function(we){return arguments.length?(z=we in PB?we+"":db,he):z},he.ticks=function(){return arguments.length?(K=t(arguments),he):K},he.tickValues=function(we){return arguments.length?(fe=we,he):fe},he.tickFormat=function(we){return arguments.length?(le=we,he):le},he.tickSize=function(we){var Te=arguments.length;return Te?(U=+we,G=+arguments[Te-1],he):U},he.innerTickSize=function(we){return arguments.length?(U=+we,he):U},he.outerTickSize=function(we){return arguments.length?(G=+we,he):G},he.tickPadding=function(we){return arguments.length?(W=+we,he):W},he.tickSubdivide=function(){return arguments.length&&he},he};var db="bottom",PB={top:1,right:1,bottom:1,left:1};function FB(C,z,U){C.attr("transform",function(G){var W=z(G);return"translate("+(isFinite(W)?W:U(G))+",0)"})}function IB(C,z,U){C.attr("transform",function(G){var W=z(G);return"translate(0,"+(isFinite(W)?W:U(G))+")"})}e.svg.brush=function(){var C=ee(Te,"brushstart","brush","brushend"),z=null,U=null,G=[0,0],W=[0,0],K,fe,le=!0,he=!0,we=dp[0];function Te(Ne){Ne.each(function(){var qe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Je).on("touchstart.brush",Je),Ue=qe.selectAll(".background").data([0]);Ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),qe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ze=qe.selectAll(".resize").data(we,N);Ze.exit().remove(),Ze.enter().append("g").attr("class",function(fr){return"resize "+fr}).style("cursor",function(fr){return NB[fr]}).append("rect").attr("x",function(fr){return/[ew]$/.test(fr)?-3:null}).attr("y",function(fr){return/^[ns]/.test(fr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ze.style("display",Te.empty()?"none":null);var Ke=e.transition(qe),Ve=e.transition(Ue),tr;z&&(tr=xc(z),Ve.attr("x",tr[0]).attr("width",tr[1]-tr[0]),Pe(Ke)),U&&(tr=xc(U),Ve.attr("y",tr[0]).attr("height",tr[1]-tr[0]),Ge(Ke)),Re(Ke)})}Te.event=function(Ne){Ne.each(function(){var qe=C.of(this,arguments),Ue={x:G,y:W,i:K,j:fe},Ze=this.__chart__||Ue;this.__chart__=Ue,Al?e.select(this).transition().each("start.brush",function(){K=Ze.i,fe=Ze.j,G=Ze.x,W=Ze.y,qe({type:"brushstart"})}).tween("brush:brush",function(){var Ke=yc(G,Ue.x),Ve=yc(W,Ue.y);return K=fe=null,function(tr){G=Ue.x=Ke(tr),W=Ue.y=Ve(tr),qe({type:"brush",mode:"resize"})}}).each("end.brush",function(){K=Ue.i,fe=Ue.j,qe({type:"brush",mode:"resize"}),qe({type:"brushend"})}):(qe({type:"brushstart"}),qe({type:"brush",mode:"resize"}),qe({type:"brushend"}))})};function Re(Ne){Ne.selectAll(".resize").attr("transform",function(qe){return"translate("+G[+/e$/.test(qe)]+","+W[+/^s/.test(qe)]+")"})}function Pe(Ne){Ne.select(".extent").attr("x",G[0]),Ne.selectAll(".extent,.n>rect,.s>rect").attr("width",G[1]-G[0])}function Ge(Ne){Ne.select(".extent").attr("y",W[0]),Ne.selectAll(".extent,.e>rect,.w>rect").attr("height",W[1]-W[0])}function Je(){var Ne=this,qe=e.select(e.event.target),Ue=C.of(Ne,arguments),Ze=e.select(Ne),Ke=qe.datum(),Ve=!/^(n|s)$/.test(Ke)&&z,tr=!/^(e|w)$/.test(Ke)&&U,fr=qe.classed("extent"),dr=Oe(Ne),cr,pr=e.mouse(Ne),gr,Fr=e.select(o(Ne)).on("keydown.brush",ut).on("keyup.brush",Ut);if(e.event.changedTouches?Fr.on("touchmove.brush",dt).on("touchend.brush",Ir):Fr.on("mousemove.brush",dt).on("mouseup.brush",Ir),Ze.interrupt().selectAll("*").interrupt(),fr)pr[0]=G[0]-pr[0],pr[1]=W[0]-pr[1];else if(Ke){var mr=+/w$/.test(Ke),Cr=+/^n/.test(Ke);gr=[G[1-mr]-pr[0],W[1-Cr]-pr[1]],pr[0]=G[mr],pr[1]=W[Cr]}else e.event.altKey&&(cr=pr.slice());Ze.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",qe.style("cursor")),Ue({type:"brushstart"}),dt();function ut(){e.event.keyCode==32&&(fr||(cr=null,pr[0]-=G[1],pr[1]-=W[1],fr=2),X())}function Ut(){e.event.keyCode==32&&fr==2&&(pr[0]+=G[1],pr[1]+=W[1],fr=0,X())}function dt(){var Or=e.mouse(Ne),ft=!1;gr&&(Or[0]+=gr[0],Or[1]+=gr[1]),fr||(e.event.altKey?(cr||(cr=[(G[0]+G[1])/2,(W[0]+W[1])/2]),pr[0]=G[+(Or[0]{(function(e,r){typeof Pc=="object"&&typeof _b!="undefined"?r(Pc):(e=e||self,r(e.d3=e.d3||{}))})(Pc,function(e){"use strict";var r=new Date,t=new Date;function n(ae,ce,pe,ve){function xe(me){return ae(me=arguments.length===0?new Date:new Date(+me)),me}return xe.floor=function(me){return ae(me=new Date(+me)),me},xe.ceil=function(me){return ae(me=new Date(me-1)),ce(me,1),ae(me),me},xe.round=function(me){var de=xe(me),_e=xe.ceil(me);return me-de<_e-me?de:_e},xe.offset=function(me,de){return ce(me=new Date(+me),de==null?1:Math.floor(de)),me},xe.range=function(me,de,_e){var Ae=[],Ie;if(me=xe.ceil(me),_e=_e==null?1:Math.floor(_e),!(me0))return Ae;do Ae.push(Ie=new Date(+me)),ce(me,_e),ae(me);while(Ie=de)for(;ae(de),!me(de);)de.setTime(de-1)},function(de,_e){if(de>=de)if(_e<0)for(;++_e<=0;)for(;ce(de,-1),!me(de););else for(;--_e>=0;)for(;ce(de,1),!me(de););})},pe&&(xe.count=function(me,de){return r.setTime(+me),t.setTime(+de),ae(r),ae(t),Math.floor(pe(r,t))},xe.every=function(me){return me=Math.floor(me),!isFinite(me)||!(me>0)?null:me>1?xe.filter(ve?function(de){return ve(de)%me===0}:function(de){return xe.count(0,de)%me===0}):xe}),xe}var a=n(function(){},function(ae,ce){ae.setTime(+ae+ce)},function(ae,ce){return ce-ae});a.every=function(ae){return ae=Math.floor(ae),!isFinite(ae)||!(ae>0)?null:ae>1?n(function(ce){ce.setTime(Math.floor(ce/ae)*ae)},function(ce,pe){ce.setTime(+ce+pe*ae)},function(ce,pe){return(pe-ce)/ae}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,h=n(function(ae){ae.setTime(ae-ae.getMilliseconds())},function(ae,ce){ae.setTime(+ae+ce*i)},function(ae,ce){return(ce-ae)/i},function(ae){return ae.getUTCSeconds()}),p=h.range,_=n(function(ae){ae.setTime(ae-ae.getMilliseconds()-ae.getSeconds()*i)},function(ae,ce){ae.setTime(+ae+ce*l)},function(ae,ce){return(ce-ae)/l},function(ae){return ae.getMinutes()}),y=_.range,b=n(function(ae){ae.setTime(ae-ae.getMilliseconds()-ae.getSeconds()*i-ae.getMinutes()*l)},function(ae,ce){ae.setTime(+ae+ce*u)},function(ae,ce){return(ce-ae)/u},function(ae){return ae.getHours()}),T=b.range,m=n(function(ae){ae.setHours(0,0,0,0)},function(ae,ce){ae.setDate(ae.getDate()+ce)},function(ae,ce){return(ce-ae-(ce.getTimezoneOffset()-ae.getTimezoneOffset())*l)/s},function(ae){return ae.getDate()-1}),k=m.range;function S(ae){return n(function(ce){ce.setDate(ce.getDate()-(ce.getDay()+7-ae)%7),ce.setHours(0,0,0,0)},function(ce,pe){ce.setDate(ce.getDate()+pe*7)},function(ce,pe){return(pe-ce-(pe.getTimezoneOffset()-ce.getTimezoneOffset())*l)/f})}var x=S(0),M=S(1),v=S(2),w=S(3),g=S(4),c=S(5),A=S(6),d=x.range,D=M.range,E=v.range,R=w.range,N=g.range,I=c.range,F=A.range,L=n(function(ae){ae.setDate(1),ae.setHours(0,0,0,0)},function(ae,ce){ae.setMonth(ae.getMonth()+ce)},function(ae,ce){return ce.getMonth()-ae.getMonth()+(ce.getFullYear()-ae.getFullYear())*12},function(ae){return ae.getMonth()}),P=L.range,O=n(function(ae){ae.setMonth(0,1),ae.setHours(0,0,0,0)},function(ae,ce){ae.setFullYear(ae.getFullYear()+ce)},function(ae,ce){return ce.getFullYear()-ae.getFullYear()},function(ae){return ae.getFullYear()});O.every=function(ae){return!isFinite(ae=Math.floor(ae))||!(ae>0)?null:n(function(ce){ce.setFullYear(Math.floor(ce.getFullYear()/ae)*ae),ce.setMonth(0,1),ce.setHours(0,0,0,0)},function(ce,pe){ce.setFullYear(ce.getFullYear()+pe*ae)})};var B=O.range,X=n(function(ae){ae.setUTCSeconds(0,0)},function(ae,ce){ae.setTime(+ae+ce*l)},function(ae,ce){return(ce-ae)/l},function(ae){return ae.getUTCMinutes()}),$=X.range,ee=n(function(ae){ae.setUTCMinutes(0,0,0)},function(ae,ce){ae.setTime(+ae+ce*u)},function(ae,ce){return(ce-ae)/u},function(ae){return ae.getUTCHours()}),Y=ee.range,q=n(function(ae){ae.setUTCHours(0,0,0,0)},function(ae,ce){ae.setUTCDate(ae.getUTCDate()+ce)},function(ae,ce){return(ce-ae)/s},function(ae){return ae.getUTCDate()-1}),Q=q.range;function oe(ae){return n(function(ce){ce.setUTCDate(ce.getUTCDate()-(ce.getUTCDay()+7-ae)%7),ce.setUTCHours(0,0,0,0)},function(ce,pe){ce.setUTCDate(ce.getUTCDate()+pe*7)},function(ce,pe){return(pe-ce)/f})}var Z=oe(0),se=oe(1),j=oe(2),V=oe(3),re=oe(4),H=oe(5),ne=oe(6),ue=Z.range,ye=se.range,ke=j.range,Me=V.range,ge=re.range,Ee=H.range,Ce=ne.range,Fe=n(function(ae){ae.setUTCDate(1),ae.setUTCHours(0,0,0,0)},function(ae,ce){ae.setUTCMonth(ae.getUTCMonth()+ce)},function(ae,ce){return ce.getUTCMonth()-ae.getUTCMonth()+(ce.getUTCFullYear()-ae.getUTCFullYear())*12},function(ae){return ae.getUTCMonth()}),ie=Fe.range,J=n(function(ae){ae.setUTCMonth(0,1),ae.setUTCHours(0,0,0,0)},function(ae,ce){ae.setUTCFullYear(ae.getUTCFullYear()+ce)},function(ae,ce){return ce.getUTCFullYear()-ae.getUTCFullYear()},function(ae){return ae.getUTCFullYear()});J.every=function(ae){return!isFinite(ae=Math.floor(ae))||!(ae>0)?null:n(function(ce){ce.setUTCFullYear(Math.floor(ce.getUTCFullYear()/ae)*ae),ce.setUTCMonth(0,1),ce.setUTCHours(0,0,0,0)},function(ce,pe){ce.setUTCFullYear(ce.getUTCFullYear()+pe*ae)})};var te=J.range;e.timeDay=m,e.timeDays=k,e.timeFriday=c,e.timeFridays=I,e.timeHour=b,e.timeHours=T,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=_,e.timeMinutes=y,e.timeMonday=M,e.timeMondays=D,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=F,e.timeSecond=h,e.timeSeconds=p,e.timeSunday=x,e.timeSundays=d,e.timeThursday=g,e.timeThursdays=N,e.timeTuesday=v,e.timeTuesdays=E,e.timeWednesday=w,e.timeWednesdays=R,e.timeWeek=x,e.timeWeeks=d,e.timeYear=O,e.timeYears=B,e.utcDay=q,e.utcDays=Q,e.utcFriday=H,e.utcFridays=Ee,e.utcHour=ee,e.utcHours=Y,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=X,e.utcMinutes=$,e.utcMonday=se,e.utcMondays=ye,e.utcMonth=Fe,e.utcMonths=ie,e.utcSaturday=ne,e.utcSaturdays=Ce,e.utcSecond=h,e.utcSeconds=p,e.utcSunday=Z,e.utcSundays=ue,e.utcThursday=re,e.utcThursdays=ge,e.utcTuesday=j,e.utcTuesdays=ke,e.utcWednesday=V,e.utcWednesdays=Me,e.utcWeek=Z,e.utcWeeks=ue,e.utcYear=J,e.utcYears=te,Object.defineProperty(e,"__esModule",{value:!0})})});var qs=be((Fc,wb)=>{(function(e,r){typeof Fc=="object"&&typeof wb!="undefined"?r(Fc,pp()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Fc,function(e,r){"use strict";function t(Se){if(0<=Se.y&&Se.y<100){var Le=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Le.setFullYear(Se.y),Le}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function n(Se){if(0<=Se.y&&Se.y<100){var Le=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Le.setUTCFullYear(Se.y),Le}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function a(Se,Le,Ye){return{y:Se,m:Le,d:Ye,H:0,M:0,S:0,L:0}}function o(Se){var Le=Se.dateTime,Ye=Se.date,Xe=Se.time,$e=Se.periods,Qe=Se.days,je=Se.shortDays,ir=Se.months,yr=Se.shortMonths,xr=p($e),wr=_($e),$r=p(Qe),_r=_(Qe),Nr=p(je),rt=_(je),Sr=p(ir),qr=_(ir),gt=p(yr),Hr=_(yr),Xr={a:Tt,A:ea,b:Nn,B:Ma,c:null,d:L,e:L,f:$,H:P,I:O,j:B,L:X,m:ee,M:Y,p:wi,q:$i,Q:de,s:_e,S:q,u:Q,U:oe,V:Z,w:se,W:j,x:null,X:null,y:V,Y:re,Z:H,"%":me},qt={a:ji,A:eo,b:on,B:ko,c:null,d:ne,e:ne,f:ge,H:ue,I:ye,j:ke,L:Me,m:Ee,M:Ce,p:Mi,q:Ti,Q:de,s:_e,S:Fe,u:ie,U:J,V:te,w:ae,W:ce,x:null,X:null,y:pe,Y:ve,Z:xe,"%":me},nr={a:Rt,A:it,b:jt,B:Jt,c:Pt,d:g,e:g,f:R,H:A,I:A,j:c,L:E,m:w,M:d,p:Qr,q:v,Q:I,s:F,S:D,u:b,U:T,V:m,w:y,W:k,x:vt,X:Mt,y:x,Y:S,Z:M,"%":N};Xr.x=Pr(Ye,Xr),Xr.X=Pr(Xe,Xr),Xr.c=Pr(Le,Xr),qt.x=Pr(Ye,qt),qt.X=Pr(Xe,qt),qt.c=Pr(Le,qt);function Pr(br,ot){return function(ct){var hr=[],bn=-1,bt=0,_n=br.length,Vr,Za,wl;for(ct instanceof Date||(ct=new Date(+ct));++bn<_n;)br.charCodeAt(bn)===37&&(hr.push(br.slice(bt,bn)),(Za=i[Vr=br.charAt(++bn)])!=null?Vr=br.charAt(++bn):Za=Vr==="e"?" ":"0",(wl=ot[Vr])&&(Vr=wl(ct,Za)),hr.push(Vr),bt=bn+1);return hr.push(br.slice(bt,bn)),hr.join("")}}function Zr(br,ot){return function(ct){var hr=a(1900,void 0,1),bn=Er(hr,br,ct+="",0),bt,_n;if(bn!=ct.length)return null;if("Q"in hr)return new Date(hr.Q);if("s"in hr)return new Date(hr.s*1e3+("L"in hr?hr.L:0));if(ot&&!("Z"in hr)&&(hr.Z=0),"p"in hr&&(hr.H=hr.H%12+hr.p*12),hr.m===void 0&&(hr.m="q"in hr?hr.q:0),"V"in hr){if(hr.V<1||hr.V>53)return null;"w"in hr||(hr.w=1),"Z"in hr?(bt=n(a(hr.y,0,1)),_n=bt.getUTCDay(),bt=_n>4||_n===0?r.utcMonday.ceil(bt):r.utcMonday(bt),bt=r.utcDay.offset(bt,(hr.V-1)*7),hr.y=bt.getUTCFullYear(),hr.m=bt.getUTCMonth(),hr.d=bt.getUTCDate()+(hr.w+6)%7):(bt=t(a(hr.y,0,1)),_n=bt.getDay(),bt=_n>4||_n===0?r.timeMonday.ceil(bt):r.timeMonday(bt),bt=r.timeDay.offset(bt,(hr.V-1)*7),hr.y=bt.getFullYear(),hr.m=bt.getMonth(),hr.d=bt.getDate()+(hr.w+6)%7)}else("W"in hr||"U"in hr)&&("w"in hr||(hr.w="u"in hr?hr.u%7:"W"in hr?1:0),_n="Z"in hr?n(a(hr.y,0,1)).getUTCDay():t(a(hr.y,0,1)).getDay(),hr.m=0,hr.d="W"in hr?(hr.w+6)%7+hr.W*7-(_n+5)%7:hr.w+hr.U*7-(_n+6)%7);return"Z"in hr?(hr.H+=hr.Z/100|0,hr.M+=hr.Z%100,n(hr)):t(hr)}}function Er(br,ot,ct,hr){for(var bn=0,bt=ot.length,_n=ct.length,Vr,Za;bn=_n)return-1;if(Vr=ot.charCodeAt(bn++),Vr===37){if(Vr=ot.charAt(bn++),Za=nr[Vr in i?ot.charAt(bn++):Vr],!Za||(hr=Za(br,ct,hr))<0)return-1}else if(Vr!=ct.charCodeAt(hr++))return-1}return hr}function Qr(br,ot,ct){var hr=xr.exec(ot.slice(ct));return hr?(br.p=wr[hr[0].toLowerCase()],ct+hr[0].length):-1}function Rt(br,ot,ct){var hr=Nr.exec(ot.slice(ct));return hr?(br.w=rt[hr[0].toLowerCase()],ct+hr[0].length):-1}function it(br,ot,ct){var hr=$r.exec(ot.slice(ct));return hr?(br.w=_r[hr[0].toLowerCase()],ct+hr[0].length):-1}function jt(br,ot,ct){var hr=gt.exec(ot.slice(ct));return hr?(br.m=Hr[hr[0].toLowerCase()],ct+hr[0].length):-1}function Jt(br,ot,ct){var hr=Sr.exec(ot.slice(ct));return hr?(br.m=qr[hr[0].toLowerCase()],ct+hr[0].length):-1}function Pt(br,ot,ct){return Er(br,Le,ot,ct)}function vt(br,ot,ct){return Er(br,Ye,ot,ct)}function Mt(br,ot,ct){return Er(br,Xe,ot,ct)}function Tt(br){return je[br.getDay()]}function ea(br){return Qe[br.getDay()]}function Nn(br){return yr[br.getMonth()]}function Ma(br){return ir[br.getMonth()]}function wi(br){return $e[+(br.getHours()>=12)]}function $i(br){return 1+~~(br.getMonth()/3)}function ji(br){return je[br.getUTCDay()]}function eo(br){return Qe[br.getUTCDay()]}function on(br){return yr[br.getUTCMonth()]}function ko(br){return ir[br.getUTCMonth()]}function Mi(br){return $e[+(br.getUTCHours()>=12)]}function Ti(br){return 1+~~(br.getUTCMonth()/3)}return{format:function(br){var ot=Pr(br+="",Xr);return ot.toString=function(){return br},ot},parse:function(br){var ot=Zr(br+="",!1);return ot.toString=function(){return br},ot},utcFormat:function(br){var ot=Pr(br+="",qt);return ot.toString=function(){return br},ot},utcParse:function(br){var ot=Zr(br+="",!0);return ot.toString=function(){return br},ot}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Se,Le,Ye){var Xe=Se<0?"-":"",$e=(Xe?-Se:Se)+"",Qe=$e.length;return Xe+(Qe68?1900:2e3),Ye+Xe[0].length):-1}function M(Se,Le,Ye){var Xe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Le.slice(Ye,Ye+6));return Xe?(Se.Z=Xe[1]?0:-(Xe[2]+(Xe[3]||"00")),Ye+Xe[0].length):-1}function v(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+1));return Xe?(Se.q=Xe[0]*3-3,Ye+Xe[0].length):-1}function w(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.m=Xe[0]-1,Ye+Xe[0].length):-1}function g(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.d=+Xe[0],Ye+Xe[0].length):-1}function c(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+3));return Xe?(Se.m=0,Se.d=+Xe[0],Ye+Xe[0].length):-1}function A(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.H=+Xe[0],Ye+Xe[0].length):-1}function d(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.M=+Xe[0],Ye+Xe[0].length):-1}function D(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+2));return Xe?(Se.S=+Xe[0],Ye+Xe[0].length):-1}function E(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+3));return Xe?(Se.L=+Xe[0],Ye+Xe[0].length):-1}function R(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye,Ye+6));return Xe?(Se.L=Math.floor(Xe[0]/1e3),Ye+Xe[0].length):-1}function N(Se,Le,Ye){var Xe=u.exec(Le.slice(Ye,Ye+1));return Xe?Ye+Xe[0].length:-1}function I(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye));return Xe?(Se.Q=+Xe[0],Ye+Xe[0].length):-1}function F(Se,Le,Ye){var Xe=l.exec(Le.slice(Ye));return Xe?(Se.s=+Xe[0],Ye+Xe[0].length):-1}function L(Se,Le){return f(Se.getDate(),Le,2)}function P(Se,Le){return f(Se.getHours(),Le,2)}function O(Se,Le){return f(Se.getHours()%12||12,Le,2)}function B(Se,Le){return f(1+r.timeDay.count(r.timeYear(Se),Se),Le,3)}function X(Se,Le){return f(Se.getMilliseconds(),Le,3)}function $(Se,Le){return X(Se,Le)+"000"}function ee(Se,Le){return f(Se.getMonth()+1,Le,2)}function Y(Se,Le){return f(Se.getMinutes(),Le,2)}function q(Se,Le){return f(Se.getSeconds(),Le,2)}function Q(Se){var Le=Se.getDay();return Le===0?7:Le}function oe(Se,Le){return f(r.timeSunday.count(r.timeYear(Se)-1,Se),Le,2)}function Z(Se,Le){var Ye=Se.getDay();return Se=Ye>=4||Ye===0?r.timeThursday(Se):r.timeThursday.ceil(Se),f(r.timeThursday.count(r.timeYear(Se),Se)+(r.timeYear(Se).getDay()===4),Le,2)}function se(Se){return Se.getDay()}function j(Se,Le){return f(r.timeMonday.count(r.timeYear(Se)-1,Se),Le,2)}function V(Se,Le){return f(Se.getFullYear()%100,Le,2)}function re(Se,Le){return f(Se.getFullYear()%1e4,Le,4)}function H(Se){var Le=Se.getTimezoneOffset();return(Le>0?"-":(Le*=-1,"+"))+f(Le/60|0,"0",2)+f(Le%60,"0",2)}function ne(Se,Le){return f(Se.getUTCDate(),Le,2)}function ue(Se,Le){return f(Se.getUTCHours(),Le,2)}function ye(Se,Le){return f(Se.getUTCHours()%12||12,Le,2)}function ke(Se,Le){return f(1+r.utcDay.count(r.utcYear(Se),Se),Le,3)}function Me(Se,Le){return f(Se.getUTCMilliseconds(),Le,3)}function ge(Se,Le){return Me(Se,Le)+"000"}function Ee(Se,Le){return f(Se.getUTCMonth()+1,Le,2)}function Ce(Se,Le){return f(Se.getUTCMinutes(),Le,2)}function Fe(Se,Le){return f(Se.getUTCSeconds(),Le,2)}function ie(Se){var Le=Se.getUTCDay();return Le===0?7:Le}function J(Se,Le){return f(r.utcSunday.count(r.utcYear(Se)-1,Se),Le,2)}function te(Se,Le){var Ye=Se.getUTCDay();return Se=Ye>=4||Ye===0?r.utcThursday(Se):r.utcThursday.ceil(Se),f(r.utcThursday.count(r.utcYear(Se),Se)+(r.utcYear(Se).getUTCDay()===4),Le,2)}function ae(Se){return Se.getUTCDay()}function ce(Se,Le){return f(r.utcMonday.count(r.utcYear(Se)-1,Se),Le,2)}function pe(Se,Le){return f(Se.getUTCFullYear()%100,Le,2)}function ve(Se,Le){return f(Se.getUTCFullYear()%1e4,Le,4)}function xe(){return"+0000"}function me(){return"%"}function de(Se){return+Se}function _e(Se){return Math.floor(+Se/1e3)}var Ae;Ie({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ie(Se){return Ae=o(Se),e.timeFormat=Ae.format,e.timeParse=Ae.parse,e.utcFormat=Ae.utcFormat,e.utcParse=Ae.utcParse,Ae}var De="%Y-%m-%dT%H:%M:%S.%LZ";function We(Se){return Se.toISOString()}var Oe=Date.prototype.toISOString?We:e.utcFormat(De);function ze(Se){var Le=new Date(Se);return isNaN(Le)?null:Le}var Be=+new Date("2000-01-01T00:00:00.000Z")?ze:e.utcParse(De);e.isoFormat=Oe,e.isoParse=Be,e.timeFormatDefaultLocale=Ie,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var gp=be((Ic,Mb)=>{(function(e,r){typeof Ic=="object"&&typeof Mb!="undefined"?r(Ic):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Ic,(function(e){"use strict";function r(w){return Math.abs(w=Math.round(w))>=1e21?w.toLocaleString("en").replace(/,/g,""):w.toString(10)}function t(w,g){if((c=(w=g?w.toExponential(g-1):w.toExponential()).indexOf("e"))<0)return null;var c,A=w.slice(0,c);return[A.length>1?A[0]+A.slice(2):A,+w.slice(c+1)]}function n(w){return w=t(Math.abs(w)),w?w[1]:NaN}function a(w,g){return function(c,A){for(var d=c.length,D=[],E=0,R=w[0],N=0;d>0&&R>0&&(N+R+1>A&&(R=Math.max(1,A-N)),D.push(c.substring(d-=R,d+R)),!((N+=R+1)>A));)R=w[E=(E+1)%w.length];return D.reverse().join(g)}}function o(w){return function(g){return g.replace(/[0-9]/g,function(c){return w[+c]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(w){if(!(g=i.exec(w)))throw new Error("invalid format: "+w);var g;return new u({fill:g[1],align:g[2],sign:g[3],symbol:g[4],zero:g[5],width:g[6],comma:g[7],precision:g[8]&&g[8].slice(1),trim:g[9],type:g[10]})}l.prototype=u.prototype;function u(w){this.fill=w.fill===void 0?" ":w.fill+"",this.align=w.align===void 0?">":w.align+"",this.sign=w.sign===void 0?"-":w.sign+"",this.symbol=w.symbol===void 0?"":w.symbol+"",this.zero=!!w.zero,this.width=w.width===void 0?void 0:+w.width,this.comma=!!w.comma,this.precision=w.precision===void 0?void 0:+w.precision,this.trim=!!w.trim,this.type=w.type===void 0?"":w.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s(w){e:for(var g=w.length,c=1,A=-1,d;c0&&(A=0);break}return A>0?w.slice(0,A)+w.slice(d+1):w}var f;function h(w,g){var c=t(w,g);if(!c)return w+"";var A=c[0],d=c[1],D=d-(f=Math.max(-8,Math.min(8,Math.floor(d/3)))*3)+1,E=A.length;return D===E?A:D>E?A+new Array(D-E+1).join("0"):D>0?A.slice(0,D)+"."+A.slice(D):"0."+new Array(1-D).join("0")+t(w,Math.max(0,g+D-1))[0]}function p(w,g){var c=t(w,g);if(!c)return w+"";var A=c[0],d=c[1];return d<0?"0."+new Array(-d).join("0")+A:A.length>d+1?A.slice(0,d+1)+"."+A.slice(d+1):A+new Array(d-A.length+2).join("0")}var _={"%":function(w,g){return(w*100).toFixed(g)},b:function(w){return Math.round(w).toString(2)},c:function(w){return w+""},d:r,e:function(w,g){return w.toExponential(g)},f:function(w,g){return w.toFixed(g)},g:function(w,g){return w.toPrecision(g)},o:function(w){return Math.round(w).toString(8)},p:function(w,g){return p(w*100,g)},r:p,s:h,X:function(w){return Math.round(w).toString(16).toUpperCase()},x:function(w){return Math.round(w).toString(16)}};function y(w){return w}var b=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(w){var g=w.grouping===void 0||w.thousands===void 0?y:a(b.call(w.grouping,Number),w.thousands+""),c=w.currency===void 0?"":w.currency[0]+"",A=w.currency===void 0?"":w.currency[1]+"",d=w.decimal===void 0?".":w.decimal+"",D=w.numerals===void 0?y:o(b.call(w.numerals,String)),E=w.percent===void 0?"%":w.percent+"",R=w.minus===void 0?"-":w.minus+"",N=w.nan===void 0?"NaN":w.nan+"";function I(L){L=l(L);var P=L.fill,O=L.align,B=L.sign,X=L.symbol,$=L.zero,ee=L.width,Y=L.comma,q=L.precision,Q=L.trim,oe=L.type;oe==="n"?(Y=!0,oe="g"):_[oe]||(q===void 0&&(q=12),Q=!0,oe="g"),($||P==="0"&&O==="=")&&($=!0,P="0",O="=");var Z=X==="$"?c:X==="#"&&/[boxX]/.test(oe)?"0"+oe.toLowerCase():"",se=X==="$"?A:/[%p]/.test(oe)?E:"",j=_[oe],V=/[defgprs%]/.test(oe);q=q===void 0?6:/[gprs]/.test(oe)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function re(H){var ne=Z,ue=se,ye,ke,Me;if(oe==="c")ue=j(H)+ue,H="";else{H=+H;var ge=H<0||1/H<0;if(H=isNaN(H)?N:j(Math.abs(H),q),Q&&(H=s(H)),ge&&+H==0&&B!=="+"&&(ge=!1),ne=(ge?B==="("?B:R:B==="-"||B==="("?"":B)+ne,ue=(oe==="s"?T[8+f/3]:"")+ue+(ge&&B==="("?")":""),V){for(ye=-1,ke=H.length;++yeMe||Me>57){ue=(Me===46?d+H.slice(ye+1):H.slice(ye))+ue,H=H.slice(0,ye);break}}}Y&&!$&&(H=g(H,1/0));var Ee=ne.length+H.length+ue.length,Ce=Ee>1)+ne+H+ue+Ce.slice(Ee);break;default:H=Ce+ne+H+ue;break}return D(H)}return re.toString=function(){return L+""},re}function F(L,P){var O=I((L=l(L),L.type="f",L)),B=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,X=Math.pow(10,-B),$=T[8+B/3];return function(ee){return O(X*ee)+$}}return{format:I,formatPrefix:F}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(w){return k=m(w),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function x(w){return Math.max(0,-n(Math.abs(w)))}function M(w,g){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(g)/3)))*3-n(Math.abs(w)))}function v(w,g){return w=Math.abs(w),g=Math.abs(g)-w,Math.max(0,n(g)-n(w))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=m,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=v,Object.defineProperty(e,"__esModule",{value:!0})}))});var Ab=be((Mfe,Tb)=>{"use strict";Tb.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var nt=be((Tfe,kb)=>{"use strict";var YB=Ab();kb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&YB(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ln=be((Afe,Sb)=>{"use strict";Sb.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var yp=be((Nc,Cb)=>{(function(e,r){typeof Nc=="object"&&typeof Cb!="undefined"?r(Nc):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Nc,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,h,p,_,y;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var b=new ArrayBuffer(l),T=new Uint8Array(b);for(s=0;s>4,T[f++]=(p&15)<<4|_>>2,T[f++]=(_&3)<<6|y&63;return b};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var Eo=be((kfe,Eb)=>{"use strict";Eb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Zn=be(Qa=>{"use strict";var WB=yp().decode,XB=Eo(),mp=Array.isArray,ZB=ArrayBuffer,JB=DataView;function Lb(e){return ZB.isView(e)&&!(e instanceof JB)}Qa.isTypedArray=Lb;function zc(e){return mp(e)||Lb(e)}Qa.isArrayOrTypedArray=zc;function KB(e){return!zc(e[0])}Qa.isArray1D=KB;Qa.ensureArray=function(e,r){return mp(e)||(e=[]),e.length=r,e};var gn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};gn.uint8c=gn.u1c;gn.uint8=gn.u1;gn.int8=gn.i1;gn.uint16=gn.u2;gn.int16=gn.i2;gn.uint32=gn.u4;gn.int32=gn.i4;gn.float32=gn.f4;gn.float64=gn.f8;function xp(e){return e.constructor===ArrayBuffer}Qa.isArrayBuffer=xp;Qa.decodeTypedArraySpec=function(e){var r=[],t=QB(e),n=t.dtype,a=gn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;xp(i)||(i=WB(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,h=+l[0],p=o*h,_=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var Rb=nt(),_p=Zn().isArrayOrTypedArray;Nb.exports=function(r,t){if(Rb(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var n=t.split("."),a,o,i,l;for(l=0;l{"use strict";var Os=qc(),tU=/^\w*$/,nU=0,zb=1,Oc=2,qb=3,El=4;Ob.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=Os(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[_]=u[_]|Oc,h.set(p,null);if(f){for(o=_;o{"use strict";var aU=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,iU=/^[^\.\[\]]+$/;Ub.exports=function(e,r){for(;r;){var t=e.match(aU);if(t)e=t[1];else if(e.match(iU))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Bc=be((Dfe,Vb)=>{"use strict";var oU=nt();Vb.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return oU(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Wb=be((Rfe,Yb)=>{"use strict";var Gb=Zn().isArrayOrTypedArray,df=Eo();Yb.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(Gb(a)&&Gb(o)&&df(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l{"use strict";function lU(e,r){var t=e%r;return t<0?t+r:t}function sU(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Xb.exports={mod:lU,modHalf:sU}});var Sa=be((Ffe,Uc)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,o=e.min,i=e.max,l=e.random;function u(V,re){if(V=V||"",re=re||{},V instanceof u)return V;if(!(this instanceof u))return new u(V,re);var H=s(V);this._originalInput=V,this._r=H.r,this._g=H.g,this._b=H.b,this._a=H.a,this._roundA=a(100*this._a)/100,this._format=re.format||H.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=H.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,H,ne,ue,ye,ke;return re=V.r/255,H=V.g/255,ne=V.b/255,re<=.03928?ue=re/12.92:ue=e.pow((re+.055)/1.055,2.4),H<=.03928?ye=H/12.92:ye=e.pow((H+.055)/1.055,2.4),ne<=.03928?ke=ne/12.92:ke=e.pow((ne+.055)/1.055,2.4),.2126*ue+.7152*ye+.0722*ke},setAlpha:function(V){return this._a=L(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=_(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=_(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),ne=a(V.v*100);return this._a==1?"hsv("+re+", "+H+"%, "+ne+"%)":"hsva("+re+", "+H+"%, "+ne+"%, "+this._roundA+")"},toHsl:function(){var V=h(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=h(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),ne=a(V.l*100);return this._a==1?"hsl("+re+", "+H+"%, "+ne+"%)":"hsla("+re+", "+H+"%, "+ne+"%, "+this._roundA+")"},toHex:function(V){return b(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return T(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+"%",g:a(P(this._g,255)*100)+"%",b:a(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%)":"rgba("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+m(this._r,this._g,this._b,this._a),H=re,ne=this._gradientType?"GradientType = 1, ":"";if(V){var ue=u(V);H="#"+m(ue._r,ue._g,ue._b,ue._a)}return"progid:DXImageTransform.Microsoft.gradient("+ne+"startColorstr="+re+",endColorstr="+H+")"},toString:function(V){var re=!!V;V=V||this._format;var H=!1,ne=this._a<1&&this._a>=0,ue=!re&&ne&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return ue?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(H=this.toRgbString()),V==="prgb"&&(H=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(H=this.toHexString()),V==="hex3"&&(H=this.toHexString(!0)),V==="hex4"&&(H=this.toHex8String(!0)),V==="hex8"&&(H=this.toHex8String()),V==="name"&&(H=this.toName()),V==="hsl"&&(H=this.toHslString()),V==="hsv"&&(H=this.toHsvString()),H||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(V,re){var H=V.apply(null,[this].concat([].slice.call(re)));return this._r=H._r,this._g=H._g,this._b=H._b,this.setAlpha(H._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(c,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(d,arguments)}},u.fromRatio=function(V,re){if(typeof V=="object"){var H={};for(var ne in V)V.hasOwnProperty(ne)&&(ne==="a"?H[ne]=V[ne]:H[ne]=Y(V[ne]));V=H}return u(V,re)};function s(V){var re={r:0,g:0,b:0},H=1,ne=null,ue=null,ye=null,ke=!1,Me=!1;return typeof V=="string"&&(V=se(V)),typeof V=="object"&&(Z(V.r)&&Z(V.g)&&Z(V.b)?(re=f(V.r,V.g,V.b),ke=!0,Me=String(V.r).substr(-1)==="%"?"prgb":"rgb"):Z(V.h)&&Z(V.s)&&Z(V.v)?(ne=Y(V.s),ue=Y(V.v),re=y(V.h,ne,ue),ke=!0,Me="hsv"):Z(V.h)&&Z(V.s)&&Z(V.l)&&(ne=Y(V.s),ye=Y(V.l),re=p(V.h,ne,ye),ke=!0,Me="hsl"),V.hasOwnProperty("a")&&(H=V.a)),H=L(H),{ok:ke,format:V.format||Me,r:o(255,i(re.r,0)),g:o(255,i(re.g,0)),b:o(255,i(re.b,0)),a:H}}function f(V,re,H){return{r:P(V,255)*255,g:P(re,255)*255,b:P(H,255)*255}}function h(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var ne=i(V,re,H),ue=o(V,re,H),ye,ke,Me=(ne+ue)/2;if(ne==ue)ye=ke=0;else{var ge=ne-ue;switch(ke=Me>.5?ge/(2-ne-ue):ge/(ne+ue),ne){case V:ye=(re-H)/ge+(re1&&(Fe-=1),Fe<1/6?Ee+(Ce-Ee)*6*Fe:Fe<1/2?Ce:Fe<2/3?Ee+(Ce-Ee)*(2/3-Fe)*6:Ee}if(re===0)ne=ue=ye=H;else{var Me=H<.5?H*(1+re):H+re-H*re,ge=2*H-Me;ne=ke(ge,Me,V+1/3),ue=ke(ge,Me,V),ye=ke(ge,Me,V-1/3)}return{r:ne*255,g:ue*255,b:ye*255}}function _(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var ne=i(V,re,H),ue=o(V,re,H),ye,ke,Me=ne,ge=ne-ue;if(ke=ne===0?0:ge/ne,ne==ue)ye=0;else{switch(ne){case V:ye=(re-H)/ge+(re>1)+720)%360;--re;)ne.h=(ne.h+ue)%360,ye.push(u(ne));return ye}function R(V,re){re=re||6;for(var H=u(V).toHsv(),ne=H.h,ue=H.s,ye=H.v,ke=[],Me=1/re;re--;)ke.push(u({h:ne,s:ue,v:ye})),ye=(ye+Me)%1;return ke}u.mix=function(V,re,H){H=H===0?0:H||50;var ne=u(V).toRgb(),ue=u(re).toRgb(),ye=H/100,ke={r:(ue.r-ne.r)*ye+ne.r,g:(ue.g-ne.g)*ye+ne.g,b:(ue.b-ne.b)*ye+ne.b,a:(ue.a-ne.a)*ye+ne.a};return u(ke)},u.readability=function(V,re){var H=u(V),ne=u(re);return(e.max(H.getLuminance(),ne.getLuminance())+.05)/(e.min(H.getLuminance(),ne.getLuminance())+.05)},u.isReadable=function(V,re,H){var ne=u.readability(V,re),ue,ye;switch(ye=!1,ue=j(H),ue.level+ue.size){case"AAsmall":case"AAAlarge":ye=ne>=4.5;break;case"AAlarge":ye=ne>=3;break;case"AAAsmall":ye=ne>=7;break}return ye},u.mostReadable=function(V,re,H){var ne=null,ue=0,ye,ke,Me,ge;H=H||{},ke=H.includeFallbackColors,Me=H.level,ge=H.size;for(var Ee=0;Eeue&&(ue=ye,ne=u(re[Ee]));return u.isReadable(V,ne,{level:Me,size:ge})||!ke?ne:(H.includeFallbackColors=!1,u.mostReadable(V,["#fff","#000"],H))};var N=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=u.hexNames=F(N);function F(V){var re={};for(var H in V)V.hasOwnProperty(H)&&(re[V[H]]=H);return re}function L(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function P(V,re){X(V)&&(V="100%");var H=$(V);return V=o(re,i(0,parseFloat(V))),H&&(V=parseInt(V*re,10)/100),e.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function O(V){return o(1,i(0,V))}function B(V){return parseInt(V,16)}function X(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function $(V){return typeof V=="string"&&V.indexOf("%")!=-1}function ee(V){return V.length==1?"0"+V:""+V}function Y(V){return V<=1&&(V=V*100+"%"),V}function q(V){return e.round(parseFloat(V)*255).toString(16)}function Q(V){return B(V)/255}var oe=(function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",H="(?:"+re+")|(?:"+V+")",ne="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",ue="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+ne),rgba:new RegExp("rgba"+ue),hsl:new RegExp("hsl"+ne),hsla:new RegExp("hsla"+ue),hsv:new RegExp("hsv"+ne),hsva:new RegExp("hsva"+ue),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Z(V){return!!oe.CSS_UNIT.exec(V)}function se(V){V=V.replace(r,"").replace(t,"").toLowerCase();var re=!1;if(N[V])V=N[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=oe.rgb.exec(V))?{r:H[1],g:H[2],b:H[3]}:(H=oe.rgba.exec(V))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=oe.hsl.exec(V))?{h:H[1],s:H[2],l:H[3]}:(H=oe.hsla.exec(V))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=oe.hsv.exec(V))?{h:H[1],s:H[2],v:H[3]}:(H=oe.hsva.exec(V))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=oe.hex8.exec(V))?{r:B(H[1]),g:B(H[2]),b:B(H[3]),a:Q(H[4]),format:re?"name":"hex8"}:(H=oe.hex6.exec(V))?{r:B(H[1]),g:B(H[2]),b:B(H[3]),format:re?"name":"hex"}:(H=oe.hex4.exec(V))?{r:B(H[1]+""+H[1]),g:B(H[2]+""+H[2]),b:B(H[3]+""+H[3]),a:Q(H[4]+""+H[4]),format:re?"name":"hex8"}:(H=oe.hex3.exec(V))?{r:B(H[1]+""+H[1]),g:B(H[2]+""+H[2]),b:B(H[3]+""+H[3]),format:re?"name":"hex"}:!1}function j(V){var re,H;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),H=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:re,size:H}}typeof Uc!="undefined"&&Uc.exports?Uc.exports=u:window.tinycolor=u})(Math)});var At=be(yf=>{"use strict";var Zb=Eo(),pf=Array.isArray;function uU(e,r){var t,n;for(t=0;t{"use strict";Jb.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var mf=be((zfe,Kb)=>{"use strict";Kb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Ll=be((qfe,jb)=>{"use strict";var Qb=mf(),$b=Sn(),wp=$b({editType:"none"});wp.family.dflt=Qb.HOVERFONT;wp.size.dflt=Qb.HOVERFONTSIZE;jb.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:wp,grouptitlefont:$b({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Hc=be((Ofe,e4)=>{"use strict";var fU=Sn(),xf=Ll().hoverlabel,bf=At().extendFlat;e4.exports={hoverlabel:{bgcolor:bf({},xf.bgcolor,{arrayOk:!0}),bordercolor:bf({},xf.bordercolor,{arrayOk:!0}),font:fU({arrayOk:!0,editType:"none"}),align:bf({},xf.align,{arrayOk:!0}),namelength:bf({},xf.namelength,{arrayOk:!0}),showarrow:bf({},xf.showarrow),editType:"none"}}});var Cn=be((Bfe,r4)=>{"use strict";var cU=Sn(),hU=Hc();r4.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:cU({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:hU.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Dl=be((Ufe,a4)=>{"use strict";var vU=Sa(),Vc={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},t4=Vc.RdBu;function dU(e,r){if(r||(r=t4),!e)return r;function t(){try{e=Vc[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),n4(e)?e:r}function n4(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Rl.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Rl.defaultLine="#444";Rl.lightLine="#eee";Rl.background="#fff";Rl.borderLine="#BEC8D9";Rl.lightFraction=1e3/11});var Gr=be((Vfe,i4)=>{"use strict";var na=Sa(),gU=nt(),yU=Zn().isTypedArray,sn=i4.exports={},Gc=Si();sn.defaults=Gc.defaults;var mU=sn.defaultLine=Gc.defaultLine;sn.lightLine=Gc.lightLine;var Tp=sn.background=Gc.background;sn.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};sn.rgb=function(e){return sn.tinyRGB(na(e))};sn.opacity=function(e){return e?na(e).getAlpha():0};sn.addOpacity=function(e,r){var t=na(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};sn.combine=function(e,r){var t=na(e).toRgb();if(t.a===1)return na(e).toRgbString();var n=na(r||Tp).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},o={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return na(o).toRgbString()};sn.interpolate=function(e,r,t){var n=na(e).toRgb(),a=na(r).toRgb(),o={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return na(o).toRgbString()};sn.contrast=function(e,r,t){var n=na(e);n.getAlpha()!==1&&(n=na(sn.combine(e,Tp)));var a=n.isDark()?r?n.lighten(r):Tp:t?n.darken(t):mU;return a.toString()};sn.stroke=function(e,r){var t=na(r);e.style({stroke:sn.tinyRGB(t),"stroke-opacity":t.getAlpha()})};sn.fill=function(e,r){var t=na(r);e.style({fill:sn.tinyRGB(t),"fill-opacity":t.getAlpha()})};sn.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,o;for(t=0;t=0)))return e;if(o===3)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var i=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+i+", "+n[3]+")":"rgb("+i+")"}});var Yc=be((Gfe,o4)=>{"use strict";o4.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Us=be(l4=>{"use strict";l4.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+e+"([2-9]|[1-9][0-9]+)?"+a)}});var c4=be(aa=>{"use strict";var Ap=nt(),s4=Sa(),u4=At().extendFlat,xU=Cn(),bU=Dl(),_U=Gr(),wU=Yc().DESELECTDIM,Hs=qc(),f4=Us().counter,MU=Bs().modHalf,$a=Zn().isArrayOrTypedArray,Lo=Zn().isTypedArraySpec,Do=Zn().decodeTypedArraySpec;aa.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set($a(e)?e:Lo(e)?Do(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;no===!0||o===!1;a(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,n){Lo(e)&&(e=Do(e)),!Ap(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Lo(e)&&(e=Do(e)),e%1||!Ap(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Lo(e)&&(e=Do(e)),s4(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return s4(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(bU.get(e,t))}},angle:{coerceFunction:function(e,r,t){Lo(e)&&(e=Do(e)),e==="auto"?r.set("auto"):Ap(e)?r.set(MU(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||f4(t);let o=i=>typeof i=="string"&&a.test(i);o(e)||n.arrayOk&&$a(e)&&e.length>0&&e.every(o)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!f4(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o{"use strict";var h4={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},v4={};function d4(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),d4(n,r[t]))}}d4(h4,v4);p4.exports={configAttributes:h4,dfltConfig:v4}});var Sp=be((Zfe,g4)=>{"use strict";var kp=tt(),TU=nt(),_f=[];g4.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||_f.indexOf(e)!==-1)return;_f.push(e);var n=1e3;TU(r)?n=r:r==="long"&&(n=3e3);var a=kp.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var o=a.selectAll(".notifier-note").data(_f);function i(u){u.duration(700).style("opacity",0).each("end",function(s){var f=_f.indexOf(s);f!==-1&&_f.splice(f,1),kp.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=kp.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(i)});for(var f=s.append("p"),h=u.split(//g),p=0;p{"use strict";var Vs=Pl().dfltConfig,Cp=Sp(),Ep=y4.exports={};Ep.log=function(){var e;if(Vs.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Ep.warn=function(){var e;if(Vs.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Ep.error=function(){var e;if(Vs.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Xc=be((Kfe,m4)=>{"use strict";m4.exports=function(){}});var Lp=be((Qfe,x4)=>{"use strict";x4.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{b4.exports=AU;function AU(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var M4=be((jfe,w4)=>{w4.exports=kU;function kU(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var A4=be((e0e,T4)=>{T4.exports=SU;function SU(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Dp=be((r0e,k4)=>{k4.exports=CU;function CU(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var C4=be((t0e,S4)=>{S4.exports=EU;function EU(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var L4=be((n0e,E4)=>{E4.exports=LU;function LU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],h=r[9],p=r[10],_=r[11],y=r[12],b=r[13],T=r[14],m=r[15],k=t*l-n*i,S=t*u-a*i,x=t*s-o*i,M=n*u-a*l,v=n*s-o*l,w=a*s-o*u,g=f*b-h*y,c=f*T-p*y,A=f*m-_*y,d=h*T-p*b,D=h*m-_*b,E=p*m-_*T,R=k*E-S*D+x*d+M*A-v*c+w*g;return R?(R=1/R,e[0]=(l*E-u*D+s*d)*R,e[1]=(a*D-n*E-o*d)*R,e[2]=(b*w-T*v+m*M)*R,e[3]=(p*v-h*w-_*M)*R,e[4]=(u*A-i*E-s*c)*R,e[5]=(t*E-a*A+o*c)*R,e[6]=(T*x-y*w-m*S)*R,e[7]=(f*w-p*x+_*S)*R,e[8]=(i*D-l*A+s*g)*R,e[9]=(n*A-t*D-o*g)*R,e[10]=(y*v-b*x+m*k)*R,e[11]=(h*x-f*v-_*k)*R,e[12]=(l*c-i*d-u*g)*R,e[13]=(t*d-n*c+a*g)*R,e[14]=(b*S-y*M-T*k)*R,e[15]=(f*M-h*S+p*k)*R,e):null}});var R4=be((a0e,D4)=>{D4.exports=DU;function DU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],h=r[9],p=r[10],_=r[11],y=r[12],b=r[13],T=r[14],m=r[15];return e[0]=l*(p*m-_*T)-h*(u*m-s*T)+b*(u*_-s*p),e[1]=-(n*(p*m-_*T)-h*(a*m-o*T)+b*(a*_-o*p)),e[2]=n*(u*m-s*T)-l*(a*m-o*T)+b*(a*s-o*u),e[3]=-(n*(u*_-s*p)-l*(a*_-o*p)+h*(a*s-o*u)),e[4]=-(i*(p*m-_*T)-f*(u*m-s*T)+y*(u*_-s*p)),e[5]=t*(p*m-_*T)-f*(a*m-o*T)+y*(a*_-o*p),e[6]=-(t*(u*m-s*T)-i*(a*m-o*T)+y*(a*s-o*u)),e[7]=t*(u*_-s*p)-i*(a*_-o*p)+f*(a*s-o*u),e[8]=i*(h*m-_*b)-f*(l*m-s*b)+y*(l*_-s*h),e[9]=-(t*(h*m-_*b)-f*(n*m-o*b)+y*(n*_-o*h)),e[10]=t*(l*m-s*b)-i*(n*m-o*b)+y*(n*s-o*l),e[11]=-(t*(l*_-s*h)-i*(n*_-o*h)+f*(n*s-o*l)),e[12]=-(i*(h*T-p*b)-f*(l*T-u*b)+y*(l*p-u*h)),e[13]=t*(h*T-p*b)-f*(n*T-a*b)+y*(n*p-a*h),e[14]=-(t*(l*T-u*b)-i*(n*T-a*b)+y*(n*u-a*l)),e[15]=t*(l*p-u*h)-i*(n*p-a*h)+f*(n*u-a*l),e}});var F4=be((i0e,P4)=>{P4.exports=RU;function RU(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],h=e[10],p=e[11],_=e[12],y=e[13],b=e[14],T=e[15],m=r*i-t*o,k=r*l-n*o,S=r*u-a*o,x=t*l-n*i,M=t*u-a*i,v=n*u-a*l,w=s*y-f*_,g=s*b-h*_,c=s*T-p*_,A=f*b-h*y,d=f*T-p*y,D=h*T-p*b;return m*D-k*d+S*A+x*c-M*g+v*w}});var N4=be((o0e,I4)=>{I4.exports=PU;function PU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],h=r[8],p=r[9],_=r[10],y=r[11],b=r[12],T=r[13],m=r[14],k=r[15],S=t[0],x=t[1],M=t[2],v=t[3];return e[0]=S*n+x*l+M*h+v*b,e[1]=S*a+x*u+M*p+v*T,e[2]=S*o+x*s+M*_+v*m,e[3]=S*i+x*f+M*y+v*k,S=t[4],x=t[5],M=t[6],v=t[7],e[4]=S*n+x*l+M*h+v*b,e[5]=S*a+x*u+M*p+v*T,e[6]=S*o+x*s+M*_+v*m,e[7]=S*i+x*f+M*y+v*k,S=t[8],x=t[9],M=t[10],v=t[11],e[8]=S*n+x*l+M*h+v*b,e[9]=S*a+x*u+M*p+v*T,e[10]=S*o+x*s+M*_+v*m,e[11]=S*i+x*f+M*y+v*k,S=t[12],x=t[13],M=t[14],v=t[15],e[12]=S*n+x*l+M*h+v*b,e[13]=S*a+x*u+M*p+v*T,e[14]=S*o+x*s+M*_+v*m,e[15]=S*i+x*f+M*y+v*k,e}});var q4=be((l0e,z4)=>{z4.exports=FU;function FU(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,h,p,_,y,b,T,m;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],h=r[5],p=r[6],_=r[7],y=r[8],b=r[9],T=r[10],m=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=h,e[6]=p,e[7]=_,e[8]=y,e[9]=b,e[10]=T,e[11]=m,e[12]=i*n+f*a+y*o+r[12],e[13]=l*n+h*a+b*o+r[13],e[14]=u*n+p*a+T*o+r[14],e[15]=s*n+_*a+m*o+r[15]),e}});var B4=be((s0e,O4)=>{O4.exports=IU;function IU(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var H4=be((u0e,U4)=>{U4.exports=NU;function NU(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,h,p,_,y,b,T,m,k,S,x,M,v,w,g,c,A,d,D,E,R,N;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,h=r[0],p=r[1],_=r[2],y=r[3],b=r[4],T=r[5],m=r[6],k=r[7],S=r[8],x=r[9],M=r[10],v=r[11],w=a*a*f+s,g=o*a*f+i*u,c=i*a*f-o*u,A=a*o*f-i*u,d=o*o*f+s,D=i*o*f+a*u,E=a*i*f+o*u,R=o*i*f-a*u,N=i*i*f+s,e[0]=h*w+b*g+S*c,e[1]=p*w+T*g+x*c,e[2]=_*w+m*g+M*c,e[3]=y*w+k*g+v*c,e[4]=h*A+b*d+S*D,e[5]=p*A+T*d+x*D,e[6]=_*A+m*d+M*D,e[7]=y*A+k*d+v*D,e[8]=h*E+b*R+S*N,e[9]=p*E+T*R+x*N,e[10]=_*E+m*R+M*N,e[11]=y*E+k*R+v*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var G4=be((f0e,V4)=>{V4.exports=zU;function zU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],h=r[10],p=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+h*n,e[7]=u*a+p*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=h*a-l*n,e[11]=p*a-u*n,e}});var W4=be((c0e,Y4)=>{Y4.exports=qU;function qU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],h=r[10],p=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-h*n,e[3]=u*a-p*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+h*a,e[11]=u*n+p*a,e}});var Z4=be((h0e,X4)=>{X4.exports=OU;function OU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],h=r[6],p=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+h*n,e[3]=u*a+p*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=h*a-l*n,e[7]=p*a-u*n,e}});var K4=be((v0e,J4)=>{J4.exports=BU;function BU(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var $4=be((d0e,Q4)=>{Q4.exports=UU;function UU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,h=n*u,p=n*s,_=a*u,y=a*s,b=o*s,T=i*l,m=i*u,k=i*s;return e[0]=1-(_+b),e[1]=h+k,e[2]=p-m,e[3]=0,e[4]=h-k,e[5]=1-(f+b),e[6]=y+T,e[7]=0,e[8]=p+m,e[9]=y-T,e[10]=1-(f+_),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var e_=be((p0e,j4)=>{j4.exports=HU;function HU(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var t_=be((g0e,r_)=>{r_.exports=VU;function VU(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var a_=be((y0e,n_)=>{n_.exports=GU;function GU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var o_=be((m0e,i_)=>{i_.exports=YU;function YU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var s_=be((x0e,l_)=>{l_.exports=WU;function WU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var f_=be((b0e,u_)=>{u_.exports=XU;function XU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,h=n*l,p=a*i,_=a*l,y=a*u,b=o*i,T=o*l,m=o*u;return e[0]=1-h-y,e[1]=f+m,e[2]=p-T,e[3]=0,e[4]=f-m,e[5]=1-s-y,e[6]=_+b,e[7]=0,e[8]=p+T,e[9]=_-b,e[10]=1-s-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var h_=be((_0e,c_)=>{c_.exports=ZU;function ZU(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var d_=be((w0e,v_)=>{v_.exports=JU;function JU(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var g_=be((M0e,p_)=>{p_.exports=KU;function KU(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var m_=be((T0e,y_)=>{y_.exports=QU;function QU(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var b_=be((A0e,x_)=>{var $U=Dp();x_.exports=jU;function jU(e,r,t,n){var a,o,i,l,u,s,f,h,p,_,y=r[0],b=r[1],T=r[2],m=n[0],k=n[1],S=n[2],x=t[0],M=t[1],v=t[2];return Math.abs(y-x)<1e-6&&Math.abs(b-M)<1e-6&&Math.abs(T-v)<1e-6?$U(e):(f=y-x,h=b-M,p=T-v,_=1/Math.sqrt(f*f+h*h+p*p),f*=_,h*=_,p*=_,a=k*p-S*h,o=S*f-m*p,i=m*h-k*f,_=Math.sqrt(a*a+o*o+i*i),_?(_=1/_,a*=_,o*=_,i*=_):(a=0,o=0,i=0),l=h*i-p*o,u=p*a-f*i,s=f*o-h*a,_=Math.sqrt(l*l+u*u+s*s),_?(_=1/_,l*=_,u*=_,s*=_):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=h,e[7]=0,e[8]=i,e[9]=s,e[10]=p,e[11]=0,e[12]=-(a*y+o*b+i*T),e[13]=-(l*y+u*b+s*T),e[14]=-(f*y+h*b+p*T),e[15]=1,e)}});var w_=be((k0e,__)=>{__.exports=eH;function eH(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Rp=be((S0e,M_)=>{M_.exports={create:_4(),clone:M4(),copy:A4(),identity:Dp(),transpose:C4(),invert:L4(),adjoint:R4(),determinant:F4(),multiply:N4(),translate:q4(),scale:B4(),rotate:H4(),rotateX:G4(),rotateY:W4(),rotateZ:Z4(),fromRotation:K4(),fromRotationTranslation:$4(),fromScaling:e_(),fromTranslation:t_(),fromXRotation:a_(),fromYRotation:o_(),fromZRotation:s_(),fromQuat:f_(),frustum:h_(),perspective:d_(),perspectiveFromFieldOfView:g_(),ortho:m_(),lookAt:b_(),str:w_()}});var Zc=be(Ht=>{"use strict";var rH=Rp();Ht.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var tH=tt(),T_=Fl(),nH=Zc(),aH=Rp();function iH(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function oH(e){var r=tH.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function A_(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function lH(e,r){k_("global",e,r)}function k_(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):T_.warn("addStyleRule failed"):T_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function sH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&A_(t)}function uH(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[i[0]]=i[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[i[0]]=i[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function fH(e){var r=C_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=S_(n);if(a){var o=nH.convertCssMatrix(a);t=aH.multiply(t,t,o)}}),t}function S_(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function C_(e){for(var r=[];cH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function cH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function hH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}E_.exports={getGraphDiv:iH,isPlotDiv:oH,removeElement:A_,addStyleRule:lH,addRelatedStyleRule:k_,deleteRelatedStyleRule:sH,setStyleOnHover:uH,getFullTransformMatrix:fH,getElementTransformMatrix:S_,getElementAndAncestors:C_,equalDomRects:hH}});var Mf=be((L0e,L_)=>{"use strict";L_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var On=be((D0e,z_)=>{"use strict";var R_=At().extendFlat,vH=Eo(),P_={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},F_={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},dH=P_.flags.slice().concat(["fullReplot"]),pH=F_.flags.slice().concat("layoutReplot");z_.exports={traces:P_,layout:F_,traceFlags:function(){return D_(dH)},layoutFlags:function(){return D_(pH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";Pp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Pp.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Fp=be((P0e,q_)=>{"use strict";q_.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var ja=be(Gs=>{"use strict";var{DATE_FORMAT_LINK:gH,FORMAT_LINK:yH}=Fp(),mH=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function xH({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,yH,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,gH,"for details on the date formatting syntax.",mH].join(" ")}Gs.templateFormatStringDescription=xH;Gs.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>Cl({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Gs.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>Cl({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Gs.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Gs.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Qc=be((N0e,G_)=>{"use strict";function Po(e,r){return r?r.d2l(e):e}function O_(e,r){return r?r.l2d(e):e}function bH(e){return e.x0}function _H(e){return e.x1}function wH(e){return e.y0}function MH(e){return e.y1}function B_(e){return e.x0shift||0}function U_(e){return e.x1shift||0}function H_(e){return e.y0shift||0}function V_(e){return e.y1shift||0}function Jc(e,r){return Po(e.x1,r)+U_(e)-Po(e.x0,r)-B_(e)}function Kc(e,r,t){return Po(e.y1,t)+V_(e)-Po(e.y0,t)-H_(e)}function TH(e,r){return Math.abs(Jc(e,r))}function AH(e,r,t){return Math.abs(Kc(e,r,t))}function kH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Jc(e,r),2)+Math.pow(Kc(e,r,t),2))}function SH(e,r){return O_((Po(e.x1,r)+U_(e)+Po(e.x0,r)+B_(e))/2,r)}function CH(e,r,t){return O_((Po(e.y1,t)+V_(e)+Po(e.y0,t)+H_(e))/2,t)}function EH(e,r,t){return e.type!=="line"?void 0:Kc(e,r,t)/Jc(e,r)}var LH=["x0","x1","y0","y1","dy","height","ycenter"],DH=["x0","x1","y0","y1","dx","width","xcenter"];G_.exports={x0:bH,x1:_H,y0:wH,y1:MH,slope:EH,dx:Jc,dy:Kc,width:TH,height:AH,length:kH,xcenter:SH,ycenter:CH,simpleXVariables:LH,simpleYVariables:DH}});var X_=be((z0e,W_)=>{"use strict";var RH=On().overrideAll,Il=Cn(),Y_=Sn(),PH=Ro().dash,Fo=At().extendFlat,{shapeTexttemplateAttrs:FH,templatefallbackAttrs:IH}=ja(),NH=Qc();W_.exports=RH({newshape:{visible:Fo({},Il.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Fo({},Il.legend,{}),legendgroup:Fo({},Il.legendgroup,{}),legendgrouptitle:{text:Fo({},Il.legendgrouptitle.text,{}),font:Y_({})},legendrank:Fo({},Il.legendrank,{}),legendwidth:Fo({},Il.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Fo({},PH,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Fo({},Il.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:FH({newshape:!0},{keys:Object.keys(NH)}),texttemplatefallback:IH({editType:"arraydraw"}),font:Y_({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var J_=be((q0e,Z_)=>{"use strict";var zH=Ro().dash,qH=At().extendFlat;Z_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:qH({},zH,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var $c=be((O0e,K_)=>{"use strict";K_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Ys=be((B0e,e6)=>{"use strict";var Ip=Sn(),OH=Mf(),jc=Si(),Q_=X_(),$_=J_(),BH=$c(),j_=At().extendFlat,eh=Ip({editType:"calc"});eh.family.dflt='"Open Sans", verdana, arial, sans-serif';eh.size.dflt=12;eh.color.dflt=jc.defaultLine;e6.exports={font:eh,title:{text:{valType:"string",editType:"layoutstyle"},font:Ip({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Ip({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:j_(BH({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:jc.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:jc.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:jc.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Q_.newshape,activeshape:Q_.activeshape,newselection:$_.newselection,activeselection:$_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:j_({},OH.transition,{editType:"none"})}});var r6=be(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Tr=be(Yr=>{"use strict";var Ws=Fl(),t6=Xc(),n6=Lp(),UH=Eo(),HH=wf().addStyleRule,a6=At(),VH=Cn(),GH=Ys(),YH=a6.extendFlat,Np=a6.extendDeepAll;Yr.modules={};Yr.allCategories={};Yr.allTypes=[];Yr.subplotsRegistry={};Yr.componentsRegistry={};Yr.layoutArrayContainers=[];Yr.layoutArrayRegexes=[];Yr.traceLayoutAttributes={};Yr.localeRegistry={};Yr.apiMethodRegistry={};Yr.collectableSubplotTypes=null;Yr.register=function(r){if(Yr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var QH=qs().timeFormat,p6=nt(),zp=Fl(),No=Bs().mod,Js=ln(),Ca=Js.BADNUM,ia=Js.ONEDAY,Tf=Js.ONEHOUR,Io=Js.ONEMIN,Zs=Js.ONESEC,Af=Js.EPOCHJD,to=Tr(),u6=qs().utcFormat,$H=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,jH=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,f6=new Date().getFullYear()-70;function no(e){return e&&to.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Vt.dateTick0=function(e,r){var t=eV(e,!!r);if(r<2)return t;var n=Vt.dateTime2ms(t,e);return n+=ia*(r-1),Vt.ms2DateTime(n,0,e)};function eV(e,r){return no(e)?r?to.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:to.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Vt.dfltRange=function(e){return no(e)?to.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Vt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var th,nh;Vt.dateTime2ms=function(e,r){if(Vt.isJSDate(e)){var t=e.getTimezoneOffset()*Io,n=(e.getUTCMinutes()-e.getMinutes())*Io+(e.getUTCSeconds()-e.getSeconds())*Zs+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Io;t=t-a/2+No(n-t+a/2,a)}return e=Number(e)-t,e>=th&&e<=nh?e:Ca}if(typeof e!="string"&&typeof e!="number")return Ca;e=String(e);var o=no(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.slice(1),r="");var l=o&&r.slice(0,7)==="chinese",u=e.match(l?jH:$H);if(!u)return Ca;var s=u[1],f=u[3]||"1",h=Number(u[5]||1),p=Number(u[7]||0),_=Number(u[9]||0),y=Number(u[11]||0);if(o){if(s.length===2)return Ca;s=Number(s);var b;try{var T=to.getComponentMethod("calendars","getCal")(r);if(l){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),b=T.newDate(s,T.toMonthIndex(s,f,m),h)}else b=T.newDate(s,Number(f),h)}catch(S){return Ca}return b?(b.toJD()-Af)*ia+p*Tf+_*Io+y*Zs:Ca}s.length===2?s=(Number(s)+2e3-f6)%100+f6:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,h,p,_));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==h?Ca:k.getTime()+y*Zs};th=Vt.MIN_MS=Vt.dateTime2ms("-9999");nh=Vt.MAX_MS=Vt.dateTime2ms("9999-12-31 23:59:59.9999");Vt.isDateTime=function(e,r){return Vt.dateTime2ms(e,r)!==Ca};function Xs(e,r){return String(e+Math.pow(10,r)).slice(1)}var rh=90*ia,c6=3*Tf,h6=5*Io;Vt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=th&&e<=nh))return Ca;r||(r=0);var n=Math.floor(No(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(no(t)){var h=Math.floor(a/ia)+Af,p=Math.floor(No(e,ia));try{o=to.getComponentMethod("calendars","getCal")(t).fromJD(h).formatDate("yyyy-mm-dd")}catch(_){o=u6("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.slice(1);else for(;o.length<10;)o="0"+o;i=r=th+ia&&e<=nh-ia))return Ca;var r=Math.floor(No(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=QH("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return g6(n,a,o,i,l)};function g6(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+Xs(r,2)+":"+Xs(t,2),(n||a)&&(e+=":"+Xs(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Xs(a,o)}return e}Vt.cleanDate=function(e,r,t){if(e===Ca)return r;if(Vt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(no(t))return zp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Vt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Vt.isDateTime(e,t))return zp.error("unrecognized date",e),r;return e};var rV=/%\d?f/g,tV=/%h/g,nV={1:"1",2:"1",3:"2",4:"2"};function v6(e,r,t,n){e=e.replace(rV,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).slice(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(tV,function(){return nV[t("%q")(a)]}),no(n))try{e=to.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var aV=[59,59.9,59.99,59.999,59.9999];function iV(e,r){var t=No(e+.05,ia),n=Xs(Math.floor(t/Tf),2)+":"+Xs(No(Math.floor(t/Io),60),2);if(r!=="M"){p6(r)||(r=0);var a=Math.min(No(e/Zs,60),aV[r]),o=(100+a).toFixed(r).slice(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}Vt.formatDate=function(e,r,t,n,a,o){if(a=no(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+` +`+o.year;else return iV(e,t)+` +`+v6(o.dayMonthYear,e,n,a);return v6(r,e,n,a)};var d6=3*ia;Vt.incrementMonth=function(e,r,t){t=no(t)&&t;var n=No(e,ia);if(e=Math.round(e-n),t)try{var a=Math.round(e/ia)+Af,o=to.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-Af)*ia+n}catch(u){zp.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+d6);return l.setUTCMonth(l.getUTCMonth()+r)+n-d6};Vt.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=no(r)&&to.getComponentMethod("calendars","getCal")(r),s=0;s{"use strict";m6.exports=function(r){return r}});var Bp=be(ao=>{"use strict";var oV=nt(),lV=Fl(),sV=qp(),uV=ln().BADNUM,Op=1e-9;ao.findBin=function(e,r,t){if(oV(r.start))return t?Math.ceil((e-r.start)/r.size-Op)-1:Math.floor((e-r.start)/r.size+Op);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?fV:cV:u=t?vV:hV,e+=i*Op*(t?-1:1)*(i>=0?1:-1);n90&&lV.log("Long binary search..."),n-1};function fV(e,r){return er}function vV(e,r){return e>=r}ao.sorterAsc=function(e,r){return e-r};ao.sorterDes=function(e,r){return r-e};ao.distinctVals=function(e){var r=e.slice();r.sort(ao.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===uV;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};ao.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};ao.findIndexOfMin=function(e,r){r=r||sV;for(var t=1/0,n,a=0;a{"use strict";x6.exports=function(r){return Object.keys(r).sort()}});var b6=be(Gt=>{"use strict";var kf=nt(),dV=Zn().isArrayOrTypedArray;Gt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),kf(r)||(r=!1),dV(t[0])){for(o=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var A6=be((J0e,T6)=>{"use strict";var _6=Bs(),Up=_6.mod,pV=_6.modHalf,Sf=Math.PI,zo=2*Sf;function gV(e){return e/180*Sf}function yV(e){return e/Sf*180}function Hp(e){return Math.abs(e[1]-e[0])>zo-1e-14}function w6(e,r){return pV(r-e,zo)}function mV(e,r){return Math.abs(w6(e,r))}function M6(e,r){if(Hp(r))return!0;var t,n;r[0]n&&(n+=zo);var a=Up(e,zo),o=a+zo;return a>=t&&a<=n||o>=t&&o<=n}function xV(e,r,t,n){if(!M6(r,n))return!1;var a,o;return t[0]=a&&e<=o}function Vp(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=Hp([t,n]),u,s,f,h,p;l?(u=0,s=Sf,f=zo):t{"use strict";Nl.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Nl.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Nl.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Nl.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Nl.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Nl.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var E6=be(zl=>{"use strict";var Gp=Bs().mod;zl.segmentsIntersect=C6;function C6(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,h=n-r,p=o-r,_=l-o,y=u*_-f*h;if(y===0)return null;var b=(s*_-f*p)/y,T=(s*h-u*p)/y;return T<0||T>1||b<0||b>1?null:{x:e+u*b,y:r+h*b}}zl.segmentDistance=function(r,t,n,a,o,i,l,u){if(C6(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,h=l-o,p=u-i,_=s*s+f*f,y=h*h+p*p,b=Math.min(ih(s,f,_,o-r,i-t),ih(s,f,_,l-r,u-t),ih(h,p,y,r-o,t-i),ih(h,p,y,n-o,a-i));return Math.sqrt(b)};function ih(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var oh,Yp,S6;zl.getTextLocation=function(r,t,n,a){if((r!==Yp||a!==S6)&&(oh={},Yp=r,S6=a),oh[n])return oh[n];var o=r.getPointAtLength(Gp(n-a/2,t)),i=r.getPointAtLength(Gp(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(Gp(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,h={x:s,y:f,theta:l};return oh[n]=h,h};zl.clearLocationCache=function(){Yp=null};zl.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,h,p;function _(b){var T=r.getPointAtLength(b);b===0?h=T:b===s&&(p=T);var m=T.xo?T.x-o:0,k=T.yl?T.y-l:0;return Math.sqrt(m*m+k*k)}for(var y=_(u);y;){if(u+=y+n,u>f)return;y=_(u)}for(y=_(f);y;){if(f-=y+n,u>f)return;y=_(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(h.x-p.x)<.1&&Math.abs(h.y-p.y)<.1}};zl.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,h=o,p,_,y;s0?h=p:f=p,s++}return _}});var lh=be(Cf=>{"use strict";var io={};Cf.throttle=function(r,t,n){var a=io[r],o=Date.now();if(!a){for(var i in io)io[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};Cf.done=function(e){var r=io[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};Cf.clear=function(e){if(e)L6(io[e]),delete io[e];else for(var r in io)Cf.clear(r)};function L6(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var R6=be((j0e,D6)=>{"use strict";D6.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var P6=be((ece,sh)=>{"use strict";sh.exports=Wp;sh.exports.isMobile=Wp;sh.exports.default=Wp;var MV=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,TV=/CrOS/,AV=/android|ipad|playbook|silk/i;function Wp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=MV.test(r)&&!TV.test(r)||!!e.tablet&&AV.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var I6=be((rce,F6)=>{"use strict";var kV=nt(),SV=P6();F6.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=CV(),typeof t!="string")return!0;var n=SV({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o-1;l--){var u=a[l];if(u.slice(0,8)==="Version/"){var s=u.slice(8).split(".")[0];if(kV(s)&&(s=+s),s>=13)return!0}}}return n};function CV(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var z6=be((tce,N6)=>{"use strict";var EV=tt();N6.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=EV.select(this)}),a}});var O6=be((nce,q6)=>{"use strict";var LV=Tr();q6.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=LV.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var U6=be((ace,B6)=>{"use strict";B6.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";H6.exports=function(r){for(var t=PV(r)?RV:DV,n=[],a=0;a{"use strict";G6.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var X6=be((lce,W6)=>{"use strict";var FV=nt(),IV=ln().BADNUM,NV=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;W6.exports=function(r){return typeof r=="string"&&(r=r.replace(NV,"")),FV(r)?Number(r):IV}});var er=be((sce,ow)=>{"use strict";var Ef=tt(),zV=qs().utcFormat,qV=gp().format,j6=nt(),ew=ln(),rw=ew.FP_SAFE,OV=-rw,Z6=ew.BADNUM,He=ow.exports={};He.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var J6={};He.warnBadFormat=function(e){var r=String(e);J6[r]||(J6[r]=1,He.warn('encountered bad format: "'+r+'"'))};He.noFormat=function(e){return String(e)};He.numberFormat=function(e){var r;try{r=qV(He.adjustFormat(e))}catch(t){return He.warnBadFormat(e),He.noFormat}return r};He.nestedProperty=qc();He.keyedContainer=Bb();He.relativeAttr=Hb();He.isPlainObject=Eo();He.toLogRange=Bc();He.relinkPrivateKeys=Wb();var qo=Zn();He.isArrayBuffer=qo.isArrayBuffer;He.isTypedArray=qo.isTypedArray;He.isArrayOrTypedArray=qo.isArrayOrTypedArray;He.isArray1D=qo.isArray1D;He.ensureArray=qo.ensureArray;He.concat=qo.concat;He.maxRowLength=qo.maxRowLength;He.minRowLength=qo.minRowLength;var tw=Bs();He.mod=tw.mod;He.modHalf=tw.modHalf;var Oo=c4();He.valObjectMeta=Oo.valObjectMeta;He.coerce=Oo.coerce;He.coerce2=Oo.coerce2;He.coerceFont=Oo.coerceFont;He.coercePattern=Oo.coercePattern;He.coerceHoverinfo=Oo.coerceHoverinfo;He.coerceSelectionMarkerOpacity=Oo.coerceSelectionMarkerOpacity;He.validate=Oo.validate;var va=y6();He.dateTime2ms=va.dateTime2ms;He.isDateTime=va.isDateTime;He.ms2DateTime=va.ms2DateTime;He.ms2DateTimeLocal=va.ms2DateTimeLocal;He.cleanDate=va.cleanDate;He.isJSDate=va.isJSDate;He.formatDate=va.formatDate;He.incrementMonth=va.incrementMonth;He.dateTick0=va.dateTick0;He.dfltRange=va.dfltRange;He.findExactDates=va.findExactDates;He.MIN_MS=va.MIN_MS;He.MAX_MS=va.MAX_MS;var ql=Bp();He.findBin=ql.findBin;He.sorterAsc=ql.sorterAsc;He.sorterDes=ql.sorterDes;He.distinctVals=ql.distinctVals;He.roundUp=ql.roundUp;He.sort=ql.sort;He.findIndexOfMin=ql.findIndexOfMin;He.sortObjectKeys=ah();var oo=b6();He.aggNums=oo.aggNums;He.len=oo.len;He.mean=oo.mean;He.geometricMean=oo.geometricMean;He.median=oo.median;He.midRange=oo.midRange;He.variance=oo.variance;He.stdev=oo.stdev;He.interp=oo.interp;var ei=Zc();He.init2dArray=ei.init2dArray;He.transposeRagged=ei.transposeRagged;He.dot=ei.dot;He.translationMatrix=ei.translationMatrix;He.rotationMatrix=ei.rotationMatrix;He.rotationXYMatrix=ei.rotationXYMatrix;He.apply3DTransform=ei.apply3DTransform;He.apply2DTransform=ei.apply2DTransform;He.apply2DTransform2=ei.apply2DTransform2;He.convertCssMatrix=ei.convertCssMatrix;He.inverseTransformMatrix=ei.inverseTransformMatrix;var Ci=A6();He.deg2rad=Ci.deg2rad;He.rad2deg=Ci.rad2deg;He.angleDelta=Ci.angleDelta;He.angleDist=Ci.angleDist;He.isFullCircle=Ci.isFullCircle;He.isAngleInsideSector=Ci.isAngleInsideSector;He.isPtInsideSector=Ci.isPtInsideSector;He.pathArc=Ci.pathArc;He.pathSector=Ci.pathSector;He.pathAnnulus=Ci.pathAnnulus;var Qs=k6();He.isLeftAnchor=Qs.isLeftAnchor;He.isCenterAnchor=Qs.isCenterAnchor;He.isRightAnchor=Qs.isRightAnchor;He.isTopAnchor=Qs.isTopAnchor;He.isMiddleAnchor=Qs.isMiddleAnchor;He.isBottomAnchor=Qs.isBottomAnchor;var $s=E6();He.segmentsIntersect=$s.segmentsIntersect;He.segmentDistance=$s.segmentDistance;He.getTextLocation=$s.getTextLocation;He.clearLocationCache=$s.clearLocationCache;He.getVisibleSegment=$s.getVisibleSegment;He.findPointOnPath=$s.findPointOnPath;var ch=At();He.extendFlat=ch.extendFlat;He.extendDeep=ch.extendDeep;He.extendDeepAll=ch.extendDeepAll;He.extendDeepNoArrays=ch.extendDeepNoArrays;var Xp=Fl();He.log=Xp.log;He.warn=Xp.warn;He.error=Xp.error;var BV=Us();He.counterRegex=BV.counter;var Zp=lh();He.throttle=Zp.throttle;He.throttleDone=Zp.done;He.clearThrottle=Zp.clear;var ri=wf();He.getGraphDiv=ri.getGraphDiv;He.isPlotDiv=ri.isPlotDiv;He.removeElement=ri.removeElement;He.addStyleRule=ri.addStyleRule;He.addRelatedStyleRule=ri.addRelatedStyleRule;He.deleteRelatedStyleRule=ri.deleteRelatedStyleRule;He.setStyleOnHover=ri.setStyleOnHover;He.getFullTransformMatrix=ri.getFullTransformMatrix;He.getElementTransformMatrix=ri.getElementTransformMatrix;He.getElementAndAncestors=ri.getElementAndAncestors;He.equalDomRects=ri.equalDomRects;He.clearResponsive=R6();He.preserveDrawingBuffer=I6();He.makeTraceGroups=z6();He._=O6();He.notifier=Sp();He.filterUnique=U6();He.filterVisible=V6();He.pushUnique=Lp();He.increment=Y6();He.cleanNumber=X6();He.ensureNumber=function(r){return j6(r)?(r=Number(r),r>rw||r=r?!1:j6(e)&&e>=0&&e%1===0};He.noop=Xc();He.identity=qp();He.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};He.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};He.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l=Math.pow(2,t)?a>10?(He.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};He.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};He.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};He.syncOrAsync=function(e,r,t){var n,a;function o(){return He.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};He.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};He.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};He.fillArray=function(e,r,t,n){if(n=n||He.identity,He.isArrayOrTypedArray(e))for(var a=0;aVV.test(window.navigator.userAgent);var GV=/Firefox\/(\d+)\.\d+/;He.getFirefoxVersion=function(){var e=GV.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};He.isD3Selection=function(e){return e instanceof Ef.selection};He.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var o=e.append(r);return t&&o.classed(t,!0),n&&o.call(n),o};He.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var o=e.append(r).attr("id",t);return n&&o.call(n),o};He.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},o=0;o1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};He.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var iw=/^\w*$/;He.templateString=function(e,r){var t={};return e.replace(He.TEMPLATE_STRING_REGEX,function(n,a){var o;return iw.test(a)?o=r[a]:(t[a]=t[a]||He.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var XV={max:10,count:0,name:"hovertemplate"};He.hovertemplateString=e=>Jp(Lc(Cl({},e),{opts:XV}));var ZV={max:10,count:0,name:"texttemplate"};He.texttemplateString=e=>Jp(Lc(Cl({},e),{opts:ZV}));var JV=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function KV(e){var r=e.match(JV);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var QV={max:10,count:0,name:"texttemplate",parseMultDiv:!0};He.texttemplateStringForShapes=e=>Jp(Lc(Cl({},e),{opts:QV}));var K6=/^[:|\|]/;function Jp({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(He.TEMPLATE_STRING_REGEX,(i,l,u)=>{let s=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),h=["_xother_","_yother_"].includes(l),p=["xother_","yother_"].includes(l),_=s||f||p||h;(f||h)&&(l=l.substring(1)),(p||h)&&(l=l.substring(0,l.length-1));let y=null,b=null;if(a.parseMultDiv){var T=KV(l);l=T.key,y=T.op,b=T.number}let m;if(_){if(n[l]===void 0)return"";m=n[l]}else for(let M of e)if(M){if(M.hasOwnProperty(l)){m=M[l];break}if(iw.test(l)||(m=He.nestedProperty(M,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:v,name:w}=a,g=t===!1?i:t;return M=fh&&i<=Q6,s=l>=fh&&l<=Q6;if(u&&(n=10*n+i-fh),s&&(a=10*a+l-fh),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var Ks=2e9;He.seedPseudoRandom=function(){Ks=2e9};He.pseudoRandom=function(){var e=Ks;return Ks=(69069*Ks+1)%4294967296,Math.abs(Ks-e)<429496729?He.pseudoRandom():Ks/4294967296};He.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=He.extractOption(e,r,"htx","hovertext");if(He.isValidTextValue(a))return n(a);var o=He.extractOption(e,r,"tx","text");if(He.isValidTextValue(o))return n(o)};He.isValidTextValue=function(e){return e||e===0};He.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(s=1):s=0,He.strTranslate(a-s*(t+i),o-s*(n+l))+He.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};He.setTransormAndDisplay=function(e,r){e.attr("transform",He.getTextTransform(r)),e.style("display",r.scale?null:"none")};He.ensureUniformFontSize=function(e,r){var t=He.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};He.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};He.bigFont=function(e){return Math.round(1.2*e)};var $6=He.getFirefoxVersion(),$V=$6!==null&&$6<86;He.getPositionFromD3Event=function(){return $V?[Ef.event.layerX,Ef.event.layerY]:[Ef.event.offsetX,Ef.event.offsetY]}});var uw=be(()=>{"use strict";var jV=er(),lw={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#fff;border-color:#e0e2e5;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#f3f3f3;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Kp in lw)sw=Kp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),jV.addStyleRule(sw,lw[Kp]);var sw,Kp});var Qp=be((hce,fw)=>{fw.exports=!0});var jp=be((vce,cw)=>{"use strict";var eG=Qp(),$p;typeof window.matchMedia=="function"?$p=!window.matchMedia("(hover: none)").matches:$p=eG;cw.exports=$p});var dh=be((dce,eg)=>{"use strict";var js=typeof Reflect=="object"?Reflect:null,hw=js&&typeof js.apply=="function"?js.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},hh;js&&typeof js.ownKeys=="function"?hh=js.ownKeys:Object.getOwnPropertySymbols?hh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:hh=function(r){return Object.getOwnPropertyNames(r)};function rG(e){console&&console.warn&&console.warn(e)}var dw=Number.isNaN||function(r){return r!==r};function kt(){kt.init.call(this)}eg.exports=kt;eg.exports.once=iG;kt.EventEmitter=kt;kt.prototype._events=void 0;kt.prototype._eventsCount=0;kt.prototype._maxListeners=void 0;var vw=10;function vh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(kt,"defaultMaxListeners",{enumerable:!0,get:function(){return vw},set:function(e){if(typeof e!="number"||e<0||dw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");vw=e}});kt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};kt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||dw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function pw(e){return e._maxListeners===void 0?kt.defaultMaxListeners:e._maxListeners}kt.prototype.getMaxListeners=function(){return pw(this)};kt.prototype.emit=function(r){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")hw(u,this,t);else for(var s=u.length,f=bw(u,s),n=0;n0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,rG(l)}return e}kt.prototype.addListener=function(r,t){return gw(this,r,t,!1)};kt.prototype.on=kt.prototype.addListener;kt.prototype.prependListener=function(r,t){return gw(this,r,t,!0)};function tG(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function yw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=tG.bind(n);return a.listener=t,n.wrapFn=a,a}kt.prototype.once=function(r,t){return vh(t),this.on(r,yw(this,r,t)),this};kt.prototype.prependOnceListener=function(r,t){return vh(t),this.prependListener(r,yw(this,r,t)),this};kt.prototype.removeListener=function(r,t){var n,a,o,i,l;if(vh(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():nG(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};kt.prototype.off=kt.prototype.removeListener;kt.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function mw(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?aG(a):bw(a,a.length)}kt.prototype.listeners=function(r){return mw(this,r,!0)};kt.prototype.rawListeners=function(r){return mw(this,r,!1)};kt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):xw.call(e,r)};kt.prototype.listenerCount=xw;function xw(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}kt.prototype.eventNames=function(){return this._eventsCount>0?hh(this._events):[]};function bw(e,r){for(var t=new Array(r),n=0;n{"use strict";var rg=dh().EventEmitter,lG={init:function(e){if(e._ev instanceof rg)return e;var r=new rg,t=new rg;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l{"use strict";var Mw=er(),sG=Pl().dfltConfig;function uG(e,r){for(var t=[],n,a=0;asG.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};lo.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};lo.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};lo.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";kw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var tu=be(tn=>{"use strict";var Ea=Tr(),Df=er(),gh=Cn(),ng=Ys(),fG=tg(),cG=Mf(),hG=Pl().configAttributes,Sw=On(),ti=Df.extendDeepAll,eu=Df.isPlainObject,vG=Df.isArrayOrTypedArray,yh=Df.nestedProperty,dG=Df.valObjectMeta,ag="_isSubplotObj",mh="_isLinkedToArray",pG="_arrayAttrRegexps",Ew="_deprecated",ig=[ag,mh,pG,Ew];tn.IS_SUBPLOT_OBJ=ag;tn.IS_LINKED_TO_ARRAY=mh;tn.DEPRECATED=Ew;tn.UNDERSCORE_ATTRS=ig;tn.get=function(){var e={};return Ea.allTypes.forEach(function(r){e[r]=yG(r)}),{defs:{valObjects:dG,metaKeys:ig.concat(["description","role","editType","impliedEdits"]),editType:{traces:Sw.traces,layout:Sw.layout},impliedEdits:{}},traces:e,layout:mG(),frames:xG(),animation:ru(cG),config:ru(hG)}};tn.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(ig.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!tn.isValObject(i)&&eu(i)&&o!=="impliedEdits"&&tn.crawl(i,r,a+1,l)}})};tn.isValObject=function(e){return e&&e.valType!==void 0};tn.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,h){t=t.slice(0,h).concat([s]),n=n.slice(0,h).concat([u&&u._isLinkedToArray]);var p=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[h-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));p&&l(a,0,"")}function l(u,s,f){var h=u[t[s]],p=f+t[s];if(s===t.length-1)vG(h)&&r.push(o+p);else if(n[s]){if(Array.isArray(h))for(var _=0;_=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!ph(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function ph(e){return e===Math.round(e)&&e>=0}function yG(e){var r,t;r=Ea.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=ti({},gh),o=ti({},r.attributes);tn.crawl(o,function(u,s,f,h,p){yh(a,p).set(void 0),u===void 0&&yh(o,p).set(void 0)}),ti(n,a),Ea.traceIs(e,"noOpacity")&&delete n.opacity,Ea.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Ea.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,ti(n,o),t.attributes&&ti(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:ru(n)};if(r.layoutAttributes){var l={};ti(l,r.layoutAttributes),i.layoutAttributes=ru(l)}return r.animatable||tn.crawl(i,function(u){tn.isValObject(u)&&"anim"in u&&delete u.anim}),i}function mG(){var e={},r,t;ti(e,ng);for(r in Ea.subplotsRegistry)if(t=Ea.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var nu=er(),TG=Cn(),Bo="templateitemname",og={name:{valType:"string",editType:"none"}};og[Bo]={valType:"string",editType:"calc"};Ol.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=og.name,r[Bo]=og[Bo],r};Ol.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=nu.coerce(o,{},TG,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};Ol.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);nu.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};Ol.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[Rw(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},h=f[Bo]=s[Bo];if(!Dw(h))return f._template=a,f;for(var p=0;p=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][Bo]=o)}u();function s(_,y){l[_]=y}function f(_,y){o?nu.nestedProperty(l[i],_).set(y):l[i+"."+_]=y}function h(){var _=l;return u(),_}function p(_,y){_&&f(_,y);var b=h();for(var T in b)nu.nestedProperty(e,T).set(b[T])}return{modifyBase:s,modifyItem:f,getUpdateObj:h,applyUpdate:p}}});var un=be((bce,Pw)=>{"use strict";var Rf=Us().counter;Pw.exports={idRegex:{x:Rf("x","( domain)?"),y:Rf("y","( domain)?")},attrRegex:Rf("[xy]axis"),xAxisMatch:Rf("xaxis"),yAxisMatch:Rf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var nn=be(oa=>{"use strict";var AG=Tr(),lg=un();oa.id2name=function(r){if(!(typeof r!="string"||!r.match(lg.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};oa.name2id=function(r){if(r.match(lg.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};oa.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(lg.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].slice(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};oa.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=oa.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};oa.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Fw(e,r){if(r&&r.length){for(var t=0;t{"use strict";function kG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function SG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Iw.exports={clearOutlineControllers:kG,clearOutline:SG}});var xh=be((Mce,Nw)=>{"use strict";Nw.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Pf=be(_h=>{"use strict";var bh=Tr(),Tce=un().SUBPLOT_PATTERN;_h.getSubplotCalcData=function(e,r,t){var n=bh.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i{"use strict";var CG=Tr(),au=er();Bl.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=Bl.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){zw(e,i,a.cache),a.check=function(){if(o){var f=zw(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+a;au.isPlainObject(o)?sg(o,r,i,n+1):r(i,a,o)}})}});var fn=be((Sce,jw)=>{"use strict";var LG=tt(),DG=qs().timeFormatLocale,RG=gp().formatLocale,Ff=nt(),PG=yp(),FG=vf().version,lt=Tr(),Xw=tu(),IG=yt(),vr=er(),Zw=Gr(),Uw=ln().BADNUM,la=nn(),NG=Uo().clearOutline,zG=xh(),ug=Mf(),qG=tg(),OG=Pf().getModuleCalcData,Hw=vr.relinkPrivateKeys,Ul=vr._,or=jw.exports={};vr.extendFlat(or,lt);or.attributes=Cn();or.attributes.type.values=or.allTypes;or.fontAttrs=Sn();or.layoutAttributes=Ys();var Mh=Bw();or.executeAPICommand=Mh.executeAPICommand;or.computeAPICommandBindings=Mh.computeAPICommandBindings;or.manageCommandObserver=Mh.manageCommandObserver;or.hasSimpleAPICommandBindings=Mh.hasSimpleAPICommandBindings;or.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(lt.getComponentMethod("annotations","draw")(e),lt.getComponentMethod("legend","draw")(e),lt.getComponentMethod("colorbar","draw")(e),r(or.previousPromises(e)))},300)})};or.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||vr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,lt.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};or.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};or.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=vr.ensureSingle(r._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Zw.defaultLine,"pointer-events":"all"}).each(function(){var s=LG.select(this);s.append("tspan").classed("js-link-to-tool",!0),s.append("tspan").classed("js-link-spacer",!0),s.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var o=t.select(".js-link-to-tool"),i=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&BG(e,o),i.text(o.text()&&l.text()?" - ":"")}};function BG(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){or.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}or.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var n=or.graphJson(e,!1,"keepdata","object");n.version=FG;var a=new URL(r);a.searchParams.set("origin",window.location.origin);var o=window.open(a.href,"_blank");if(!o){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var i=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(o.postMessage({type:"chart",chart:n},t),window.removeEventListener("message",i),e.emit("plotly_afterexport"))};return window.addEventListener("message",i),!1};var UG=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],HG=["year","month","dayMonth","dayMonthYear"];or.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},h;e._transitionData||or.createTransitionData(e),a._dfltTitle={plot:Ul(e,"Click to enter Plot title"),subtitle:Ul(e,"Click to enter Plot subtitle"),x:Ul(e,"Click to enter X axis title"),y:Ul(e,"Click to enter Y axis title"),colorbar:Ul(e,"Click to enter Colorscale title"),annotation:Ul(e,"new text")},a._traceWord=Ul(e,"trace");var p=Vw(e,UG);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var _=n.width,y=n.height;or.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=_),o.height||(a.height=y),or.sanitizeMargins(a)}else{or.supplyLayoutGlobalDefaults(o,a,p);var b=!o.width||!o.height,T=a.autosize,m=f.autosizable,k=b&&(T||m);k?or.plotAutoSize(e,o,a):b&&or.sanitizeMargins(a),!T&&b&&(o.width=a.width,o.height=a.height)}a._d3locale=YG(p,a.separators),a._extraFormat=Vw(e,HG),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=GG(),x=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=VG(i,u),or.supplyDataDefaults(u,l,o,a);var v=Object.keys(x.x),w=Object.keys(x.y);if(v.length>1&&w.length>1){for(lt.getComponentMethod("grid","sizeDefaults")(o,a),h=0;h15&&w.length>15&&a.shapes.length===0&&a.images.length===0,or.linkSubplots(l,a,i,n),or.cleanPlot(l,a,i,n);var D=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),R=D,N=E;R&&!N?n._bgLayer.remove():N&&!R&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&NG({_fullLayout:n}),WG(l,a),Hw(a,n),lt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var I=a._tracePreGUI,F={},L;for(L in I)F[L]="old";for(h=0;h0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var h=or.layoutAttributes.width.min,p=or.layoutAttributes.height.min;i1,y=!t.height&&Math.abs(n.height-l)>1;(y||_)&&(_&&(n.width=i),y&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),or.sanitizeMargins(n)};or.supplyLayoutModuleDefaults=function(e,r,t,n){var a=lt.componentsRegistry,o=r._basePlotModules,i,l,u,s=lt.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(lt.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(l=0;l1&&(t.l/=T,t.r/=T)}if(p){var m=(t.t+t.b)/p;m>1&&(t.t/=m,t.b/=m)}var k=t.xl!==void 0?t.xl:t.x,S=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;_[r]={l:{val:k,size:t.l+b},r:{val:S,size:t.r+b},b:{val:M,size:t.b+b},t:{val:x,size:t.t+b}},y[r]=1}if(!n._replotting)return or.doAutoMargin(e)}};function ZG(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=la.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}or.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),Jw(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=vr.extendFlat({},a),u=o.l,s=o.r,f=o.t,h=o.b,p=r._pushmargin,_=r._pushmarginIds,y=r.minreducedwidth,b=r.minreducedheight;if(o.autoexpand!==!1){for(var T in p)_[T]||delete p[T];var m=e._fullLayout._reservedMargin;for(var k in m)for(var S in m[k]){var x=m[k][S];i[S]=Math.max(i[S],x)}p.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:h}};for(var M in i){var v=0;for(var w in p)w!=="base"&&Ff(p[w][M].size)&&(v=p[w][M].size>v?p[w][M].size:v);var g=Math.max(0,o[M]-v);i[M]=Math.max(0,i[M]-g)}for(var c in p){var A=p[c].l||{},d=p[c].b||{},D=A.val,E=A.size,R=d.val,N=d.size,I=t-i.r-i.l,F=n-i.t-i.b;for(var L in p){if(Ff(E)&&p[L].r){var P=p[L].r.val,O=p[L].r.size;if(P>D){var B=(E*P+(O-I)*D)/(P-D),X=(O*(1-D)+(E-I)*(1-P))/(P-D);B+X>u+s&&(u=B,s=X)}}if(Ff(N)&&p[L].t){var $=p[L].t.val,ee=p[L].t.size;if($>R){var Y=(N*$+(ee-F)*R)/($-R),q=(ee*(1-R)+(N-F)*(1-$))/($-R);Y+q>h+f&&(h=Y,f=q)}}}}}var Q=vr.constrain(t-o.l-o.r,Kw,y),oe=vr.constrain(n-o.t-o.b,Qw,b),Z=Math.max(0,t-Q),se=Math.max(0,n-oe);if(Z){var j=(u+s)/Z;j>1&&(u/=j,s/=j)}if(se){var V=(h+f)/se;V>1&&(h/=V,f/=V)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(h)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(or.didMarginChange(l,a)||ZG(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var re=3*(1+Object.keys(_).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};or.graphJson=function(e,r,t,n,a,o){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&or.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function s(p,_){if(typeof p=="function")return _?"_function_":null;if(vr.isPlainObject(p)){var y={},b;return Object.keys(p).sort().forEach(function(S){if(["_","["].indexOf(S.charAt(0))===-1){if(typeof p[S]=="function"){_&&(y[S]="_function");return}if(t==="keepdata"){if(S.slice(-3)==="src")return}else if(t==="keepstream"){if(b=p[S+"src"],typeof b=="string"&&b.indexOf(":")>0&&!vr.isPlainObject(p.stream))return}else if(t!=="keepall"&&(b=p[S+"src"],typeof b=="string"&&b.indexOf(":")>0))return;y[S]=s(p[S],_)}}),y}var T=Array.isArray(p),m=vr.isTypedArray(p);if((T||m)&&p.dtype&&p.shape){var k=p.bdata;return s({dtype:p.dtype,shape:p.shape,bdata:vr.isArrayBuffer(k)?PG.encode(k):k},_)}return T?p.map(function(S){return s(S,_)}):m?vr.simpleMap(p,vr.identity):vr.isJSDate(p)?vr.ms2DateTimeLocal(+p):p}var f={data:(i||[]).map(function(p){var _=s(p);return r&&delete _.fit,_})};if(!r&&(f.layout=s(l),a)){var h=l._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return u&&(f.frames=s(u)),o&&(f.config=s(e._context,!0)),n==="object"?f:JSON.stringify(f)};or.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return lt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,_=0;function y(){return p++,function(){_++,!n&&_===p&&l(h)}}t.runFn(y),setTimeout(y())})}function l(h){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return lt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(h)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[or.previousPromises,u,t.prepareFn,or.rehover,or.reselect,i],f=vr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}or.doCalcdata=function(e,r){var t=la.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u,s=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=s,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;u--)if(M[u].enabled){o._indexToPoints=M[u]._indexToPoints;break}i&&i.calc&&(x=i.calc(e,o))}(!Array.isArray(x)||!x[0])&&(x=[{x:Uw,y:Uw}]),x[0].t||(x[0].t={}),x[0].trace=o,s[k]=x}}for(Yw(t,n,a),l=0;l{"use strict";Hl.xmlns="http://www.w3.org/2000/xmlns/";Hl.svg="http://www.w3.org/2000/svg";Hl.xlink="http://www.w3.org/1999/xlink";Hl.svgAttrs={xmlns:Hl.svg,"xmlns:xlink":Hl.xlink}});var En=be((Ece,e7)=>{"use strict";e7.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Bn=be(La=>{"use strict";var Kt=tt(),so=er(),$G=so.strTranslate,fg=Ho(),jG=En().LINE_SPACING,eY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(eY),o=Kt.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=vY(e.node(),n);u&&e.style("pointer-events","all"),La.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s};aY(a[2],f,function(h,p,_){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var y=h&&h.select("svg");if(!y||!y.node()){l(),u();return}var b=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});b.node().appendChild(y.node()),p&&p.node()&&y.node().insertBefore(p.node().cloneNode(!0),y.node().firstChild);var T=_.width,m=_.height;y.attr({class:i,height:m,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",S=y.select("g");S.attr({fill:k,stroke:k});var x=S.node().getBoundingClientRect(),M=x.width,v=x.height;(M>T||v>m)&&(y.style("overflow","hidden"),x=y.node().getBoundingClientRect(),M=x.width,v=x.height);var w=+e.attr("x"),g=+e.attr("y"),c=s||e.node().getBoundingClientRect().height,A=-c/4;if(i[0]==="y")b.attr({transform:"rotate("+[-90,w,g]+")"+$G(-M/2,A-v/2)});else if(i[0]==="l")g=A-v/2;else if(i[0]==="a"&&i.indexOf("atitle")!==0)w=0,g=A;else{var d=e.attr("text-anchor");w=w-M*(d==="middle"?.5:d==="end"?1:0),g=g+A-v/2}y.attr({x:w,y:g}),t&&t.call(e,b),u(b)})})):l(),e};var rY=/(<|<|<)/g,tY=/(>|>|>)/g;function nY(e){return e.replace(rY,"\\lt ").replace(tY,"\\gt ")}var r7=[["$","$"],["\\(","\\)"]];function aY(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){so.warn("No MathJax version:",MathJax.version);return}var a,o,i,l,u=function(){return o=so.extendDeepAll({},MathJax.Hub.config),i=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:r7},displayAlign:"left"})},s=function(){o=so.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=r7},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},h=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},p=function(){var k="math-output-"+so.randstr({},64);l=Kt.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(nY(e));var S=l.node();return n===2?MathJax.Hub.Typeset(S):MathJax.typeset([S])},_=function(){var k=l.select(n===2?".MathJax_SVG":".MathJax"),S=!k.empty()&&l.select("svg").node();if(!S)so.log("There was an error in the tex syntax.",e),t();else{var x=S.getBoundingClientRect(),M;n===2?M=Kt.select("body").select("#MathJax_SVG_glyphs"):M=k.select("defs"),t(k,M,x)}l.remove()},y=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},b=function(){a!=="svg"&&(MathJax.config.startup.output=a)},T=function(){return i!==void 0&&(MathJax.Hub.processSectionDelay=i),MathJax.Hub.Config(o)},m=function(){MathJax.config=o};n===2?MathJax.Hub.Queue(u,f,p,_,y,T):n===3&&(s(),h(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){p(),_(),b(),m()}))}var i7={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},iY={sub:"0.3em",sup:"-0.6em"},oY={sub:"-0.21em",sup:"0.42em"},t7="\u200B",n7=["http:","https:","mailto:","",void 0,":"],o7=La.NEWLINES=/(\r\n?|\n)/g,hg=/(<[^<>]*>)/,vg=/<(\/?)([^ >]*)(\s+(.*))?>/i,lY=//i;La.BR_TAG_ALL=//gi;var l7=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,s7=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,u7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,sY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Vl(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&Th(n)}var uY=/(^|;)\s*color:/;La.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(hg),l=[],u="",s=0,f=0;fo?l.push(h.slice(0,Math.max(0,b-o))+a):l.push(h.slice(0,b));break}u=""}}return l.join("")};var fY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},cY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Th(e){return e.replace(cY,function(r,t){var n;return t.charAt(0)==="#"?n=hY(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=fY[t],n||r})}La.convertEntities=Th;function hY(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function vY(e,r){r=r.replace(o7," ");var t=!1,n=[],a,o=-1;function i(){o++;var v=document.createElementNS(fg.svg,"tspan");Kt.select(v).attr({class:"line",dy:o*jG+"em"}),e.appendChild(v),a=v;var w=n;if(n=[{node:v}],w.length>1)for(var g=1;g.",r);return}var w=n.pop();v!==w.type&&so.log("Start tag <"+w.type+"> doesnt match end tag <"+v+">. Pretending it did match.",r),a=n[n.length-1].node}var f=lY.test(r);f?i():(a=e,n=[{node:e}]);for(var h=r.split(hg),p=0;p{"use strict";var dY=tt(),kh=Sa(),Nf=nt(),Ah=er(),c7=Gr(),pY=Dl().isValid;function gY(e,r,t){var n=r?Ah.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(Ah.isArrayOrTypedArray(a)){for(var i=0;i=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function y7(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i{"use strict";var x7=Fp(),mY=x7.FORMAT_LINK,xY=x7.DATE_FORMAT_LINK;function bY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?dg:b7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function dg(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+mY+"."].join(" ")}function b7(e,r){return dg(e,r)+[" And for dates see: "+xY+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}_7.exports={axisHoverFormat:bY,descriptionOnlyNumbers:dg,descriptionWithDates:b7}});var Da=be((Fce,q7)=>{"use strict";var w7=Sn(),iu=Si(),z7=Ro().dash,gg=At().extendFlat,M7=yt().templatedArray,Pce=ja().templateFormatStringDescription,T7=uo().descriptionWithDates,_Y=ln().ONEDAY,Li=un(),wY=Li.HOUR_PATTERN,MY=Li.WEEKDAY_PATTERN,pg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},TY=gg({},pg,{values:pg.values.slice().concat(["sync"])});function A7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var k7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},S7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},C7={valType:"data_array",editType:"ticks"},E7={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function L7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function D7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var R7={valType:"color",dflt:iu.defaultLine,editType:"ticks"},P7={valType:"color",dflt:iu.lightLine,editType:"ticks"};function F7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var I7=gg({},z7,{editType:"ticks"}),N7={valType:"boolean",editType:"ticks"};q7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:iu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:w7({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Li.idRegex.x.toString(),Li.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Li.idRegex.x.toString(),Li.idRegex.y.toString()],editType:"calc"},rangebreaks:M7("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[MY,wY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:_Y},editType:"calc"}),tickmode:TY,nticks:A7(),tick0:k7,dtick:S7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:C7,ticktext:{valType:"data_array",editType:"ticks"},ticks:E7,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:L7(),tickwidth:D7(),tickcolor:R7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:gg({},z7,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:w7({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:T7("tick label")},tickformatstops:M7("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:T7("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:iu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:N7,gridcolor:P7,gridwidth:F7(),griddash:I7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:iu.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:iu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Li.idRegex.x.toString(),Li.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Li.idRegex.x.toString(),Li.idRegex.y.toString()],editType:"plot"},minor:{tickmode:pg,nticks:A7("minor"),tick0:k7,dtick:S7,tickvals:C7,ticks:E7,ticklen:L7("minor"),tickwidth:D7("minor"),tickcolor:R7,gridcolor:P7,gridwidth:F7("minor"),griddash:I7,showgrid:N7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Sh=be((Ice,U7)=>{"use strict";var St=Da(),O7=Sn(),B7=At().extendFlat,AY=On().overrideAll;U7.exports=AY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:St.linecolor,outlinewidth:St.linewidth,bordercolor:St.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:St.minor.tickmode,nticks:St.nticks,tick0:St.tick0,dtick:St.dtick,tickvals:St.tickvals,ticktext:St.ticktext,ticks:B7({},St.ticks,{dflt:""}),ticklabeloverflow:B7({},St.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:St.ticklen,tickwidth:St.tickwidth,tickcolor:St.tickcolor,ticklabelstep:St.ticklabelstep,showticklabels:St.showticklabels,labelalias:St.labelalias,tickfont:O7({}),tickangle:St.tickangle,tickformat:St.tickformat,tickformatstops:St.tickformatstops,tickprefix:St.tickprefix,showtickprefix:St.showtickprefix,ticksuffix:St.ticksuffix,showticksuffix:St.showticksuffix,separatethousands:St.separatethousands,exponentformat:St.exponentformat,minexponent:St.minexponent,showexponent:St.showexponent,title:{text:{valType:"string"},font:O7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ni=be((zce,V7)=>{"use strict";var kY=Sh(),SY=Us().counter,CY=ah(),H7=Dl().scales,Nce=CY(H7);function Ch(e){return"`"+e+"`"}V7.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?H7[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,h;"colorAttr"in t?(f=t.colorAttr,h=t.colorAttr):(f={z:"z",c:"color"}[n],h="in "+Ch(s+f));var p=a?" Has an effect only if "+h+" is set to a numerical array.":"",_=n+"auto",y=n+"min",b=n+"max",T=n+"mid",m=Ch(s+_),k=Ch(s+y),S=Ch(s+b),x=k+" and "+S,M={};M[y]=M[b]=void 0;var v={};v[_]=!1;var w={};return f==="color"&&(w.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(w.color.anim=!0)),w[_]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},w[y]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:v},w[b]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:v},w[T]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},w.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},w.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},w.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(w.showscale={valType:"boolean",dflt:i,editType:"calc"},w.colorbar=kY),t.noColorAxis||(w.coloraxis={valType:"subplotid",regex:SY("coloraxis"),dflt:null,editType:"calc"}),w}});var mg=be((qce,G7)=>{"use strict";var EY=At().extendFlat,LY=ni(),yg=Dl().scales;G7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:yg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:yg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:yg.RdBu,editType:"calc"}},coloraxis:EY({_isSubplotObj:!0,editType:"calc"},LY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var xg=be((Oce,Y7)=>{"use strict";var DY=er();Y7.exports=function(r){return DY.isPlainObject(r.colorbar)}});var wg=be(_g=>{"use strict";var bg=nt(),W7=er(),X7=ln(),RY=X7.ONEDAY,PY=X7.ONEWEEK;_g.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?RY:1;if(!e)return o;if(bg(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.slice(1);return l=bg(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};_g.tick0=function(e,r,t,n){if(r==="date")return W7.cleanDate(e,W7.dateTick0(t,n%PY===0?1:0));if(!(n==="D1"||n==="D2"))return bg(e)?Number(e):0}});var Mg=be((Uce,J7)=>{"use strict";var Z7=wg(),FY=er().isArrayOrTypedArray,IY=Zn().isTypedArraySpec,NY=Zn().decodeTypedArraySpec;J7.exports=function(r,t,n,a,o){o||(o={});var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(k){var S=l[k];return IY(S)&&(S=NY(S)),S!==void 0?S:(u._template||{})[k]}var h=f("tick0"),p=f("dtick"),_=f("tickvals"),y=FY(_)?"array":p?"linear":"auto",b=n(s+"tickmode",y);if(b==="auto"||b==="sync")n(s+"nticks");else if(b==="linear"){var T=u.dtick=Z7.dtick(p,a);u.tick0=Z7.tick0(h,a,t.calendar,T)}else if(a!=="multicategory"){var m=n(s+"tickvals");m===void 0?u.tickmode="auto":i||n("ticktext")}}});var Ag=be((Hce,Q7)=>{"use strict";var Tg=er(),K7=Da();Q7.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?K7.minor:K7,s=o?"minor.":"",f=Tg.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),h=Tg.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=Tg.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),_=n(s+"ticks",!o&&a.outerTicks||f||h||p?"outside":"");_||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var kg=be((Vce,$7)=>{"use strict";$7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var ai=be((Gce,j7)=>{"use strict";var Eh=er(),zY=yt();j7.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=Eh.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=zY.arrayTemplater(t,a,o),f,h;for(f=0;f{"use strict";var Sg=er(),qY=Gr().contrast,e8=Da(),OY=kg(),BY=ai();r8.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");Sg.isPlainObject(i)||delete t.labelalias;var l=OY(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,h=t.ticklabelposition||"",p=h.indexOf("inside")!==-1?qY(o.bgColor):f&&f!==e8.color.dflt?f:s.color;if(Sg.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var _=n("tickangle");!o.noAutotickangles&&_==="auto"&&n("autotickangles")}if(a!=="category"){var y=n("tickformat");BY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:UY}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!y&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function UY(e,r){function t(a,o){return Sg.coerce(e,r,e8.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var Eg=be((Wce,t8)=>{"use strict";var HY=kg();t8.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=HY(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var Lg=be((Xce,n8)=>{"use strict";var Vo=er(),VY=yt(),GY=Mg(),YY=Ag(),WY=Cg(),XY=Eg(),ZY=Sh();n8.exports=function(r,t,n){var a=VY.newContainer(t,"colorbar"),o=r.colorbar||{};function i(d,D){return Vo.coerce(o,a,ZY,d,D)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),h=f==="v",p=i("thicknessmode");i("thickness",p==="fraction"?30/(h?u:s):30);var _=i("lenmode");i("len",_==="fraction"?1:h?s:u);var y=i("yref"),b=i("xref"),T=y==="paper",m=b==="paper",k,S,x,M="left";h?(x="middle",M=m?"left":"right",k=m?1.02:1,S=.5):(x=T?"bottom":"top",M="center",k=.5,S=T?1.02:1),Vo.coerce(o,a,{x:{valType:"number",min:m?-2:0,max:m?3:1,dflt:k}},"x"),Vo.coerce(o,a,{y:{valType:"number",min:T?-2:0,max:T?3:1,dflt:S}},"y"),i("xanchor",M),i("xpad"),i("yanchor",x),i("ypad"),Vo.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var v=Vo.coerce(o,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");i("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":"hide past div"),GY(o,a,i,"linear");var w=n.font,g={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:w};v.indexOf("inside")!==-1&&(g.bgColor="black"),XY(o,a,i,"linear",g),WY(o,a,i,"linear",g),YY(o,a,i,"linear",g),i("title.text",n._dfltTitle.colorbar);var c=a.showticklabels?a.tickfont:w,A=Vo.extendFlat({},w,{family:c.family,size:Vo.bigFont(c.size)});Vo.coerceFont(i,"title.font",A),i("title.side",h?"top":"right")}});var Di=be((Zce,o8)=>{"use strict";var a8=nt(),Rg=er(),JY=xg(),KY=Lg(),i8=Dl().isValid,QY=Tr().traceIs;function Dg(e,r){var t=r.slice(0,r.length-1);return r?Rg.nestedProperty(e,t).get()||{}:e}o8.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=Dg(r,i),f=Dg(t,i),h=Dg(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var _=n._colorAxes||{},y=a(i+"coloraxis");if(y){var b=QY(t,"contour")&&Rg.nestedProperty(t,"contours.coloring").get()||"heatmap",T=_[y];T?(T[2].push(p),T[0]!==b&&(T[0]=!1,Rg.warn(["Ignoring coloraxis:",y,"setting","as it is linked to incompatible colorscales."].join(" ")))):_[y]=[b,t,[p]];return}}var m=s[l+"min"],k=s[l+"max"],S=a8(m)&&a8(k)&&m{"use strict";var l8=er(),$Y=yt(),s8=mg(),jY=Di();u8.exports=function(r,t){function n(h,p){return l8.coerce(r,t,s8,h,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(h,p){return l8.coerce(o,i,s8.coloraxis,h,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=$Y.newContainer(t,u,"coloraxis"),i._name=u,jY(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var eW=er(),rW=Ei().hasColorscale,tW=Ei().extractOpts;c8.exports=function(r,t){function n(f,h){var p=f["_"+h];p!==void 0&&(f[h]=p)}function a(f,h){var p=h.container?eW.nestedProperty(f,h.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var _=tW(p),y=_.auto;(y||_.min===void 0)&&n(p,h.min),(y||_.max===void 0)&&n(p,h.max),_.autocolorscale&&n(p,"colorscale")}}for(var o=0;o{"use strict";var v8=nt(),Pg=er(),nW=Ei().extractOpts;d8.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?Pg.nestedProperty(t,i).get():t,u=nW(l),s=u.auto!==!1,f=u.min,h=u.max,p=u.mid,_=function(){return Pg.aggNums(Math.min,null,o)},y=function(){return Pg.aggNums(Math.max,null,o)};if(f===void 0?f=_():s&&(l._colorAx&&v8(f)?f=Math.min(f,_()):f=_()),h===void 0?h=y():s&&(l._colorAx&&v8(h)?h=Math.max(h,y()):h=y()),s&&p!==void 0&&(h-p>p-f?f=p-(h-p):h-p=0?b=a.colorscale.sequential:b=a.colorscale.sequentialminus,u._sync("colorscale",b)}}});var Ri=be(($ce,p8)=>{"use strict";var Lh=Dl(),ou=Ei();p8.exports={moduleType:"component",name:"colorscale",attributes:ni(),layoutAttributes:mg(),supplyLayoutDefaults:f8(),handleDefaults:Di(),crossTraceDefaults:h8(),calc:Go(),scales:Lh.scales,defaultScale:Lh.defaultScale,getScale:Lh.get,isValidScale:Lh.isValid,hasColorscale:ou.hasColorscale,extractOpts:ou.extractOpts,extractScale:ou.extractScale,flipScale:ou.flipScale,makeColorScaleFunc:ou.makeColorScaleFunc,makeColorScaleFuncFromTrace:ou.makeColorScaleFuncFromTrace}});var sa=be((jce,y8)=>{"use strict";var g8=er(),aW=Zn().isTypedArraySpec;y8.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return g8.isPlainObject(r)&&(g8.isArrayOrTypedArray(r.size)||aW(r.size))}}});var Fg=be((ehe,m8)=>{"use strict";var iW=nt();m8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return iW(u)&&u>0?Math.max(u,o):0}}});var fo=be(Ln=>{"use strict";var Dh=er();Ln.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ln.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{_8.exports=fW;var Ig={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},uW=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function fW(e){var r=[];return e.replace(uW,function(t,n,a){var o=n.toLowerCase();for(a=hW(a),o=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(a.length==Ig[o])return a.unshift(n),r.push(a);if(a.length{"use strict";var vW=Ng(),ar=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Lr="M0,0Z",w8=Math.sqrt(2),Yo=Math.sqrt(3),zg=Math.PI,qg=Math.cos,Og=Math.sin;S8.exports={circle:{n:0,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?Rr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.3,2);return Rr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.4,2),a=ar(e*1.2,2);return Rr(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.8/w8,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return Rr(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2/Yo,2),a=ar(e/2,2),o=ar(e,2);return Rr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2/Yo,2),a=ar(e/2,2),o=ar(e,2);return Rr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2/Yo,2),a=ar(e/2,2),o=ar(e,2);return Rr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2/Yo,2),a=ar(e/2,2),o=ar(e,2);return Rr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.6,2),a=ar(e*1.2,2);return Rr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.6,2),a=ar(e*1.2,2);return Rr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.6,2),a=ar(e*1.2,2);return Rr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.6,2),a=ar(e*1.2,2);return Rr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.951,2),a=ar(e*.588,2),o=ar(-e,2),i=ar(e*-.309,2),l=ar(e*.809,2);return Rr(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e/2,2),o=ar(e*Yo/2,2);return Rr(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e/2,2),o=ar(e*Yo/2,2);return Rr(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.924,2),a=ar(e*.383,2);return Rr(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Dr(r))return Lr;var n=e*1.4,a=ar(n*.225,2),o=ar(n*.951,2),i=ar(n*.363,2),l=ar(n*.588,2),u=ar(-n,2),s=ar(n*-.309,2),f=ar(n*.118,2),h=ar(n*.809,2),p=ar(n*.382,2);return Rr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+h+"L0,"+p+"L-"+l+","+h+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.66,2),a=ar(e*.38,2),o=ar(e*.76,2);return Rr(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*Yo*.8,2),a=ar(e*.8,2),o=ar(e*1.6,2),i=ar(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Rr(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*Yo*.8,2),a=ar(e*.8,2),o=ar(e*1.6,2),i=ar(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Rr(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.1,2),a=ar(e*2,2),o="A "+a+","+a+" 0 0 1 ";return Rr(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2),a=ar(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return Rr(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*.7,2),a=ar(e*1.4,2);return Rr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2),a=ar(e*.7,2);return Rr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e/w8,2);return Rr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.3,2);return Rr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.3,2),a=ar(e*.65,2);return Rr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2);return Rr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*.85,2);return Rr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e/2,2),a=ar(e,2);return Rr(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*1.6,2),o=ar(e*.8,2);return Rr(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*1.6,2),o=ar(e*.8,2);return Rr(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*1.6,2),o=ar(e*.8,2);return Rr(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.2,2),a=ar(e*1.6,2),o=ar(e*.8,2);return Rr(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2);return Rr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*1.4,2);return Rr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2);return Rr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e*2,2);return Rr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e*2,2);return Rr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2,2),a=ar(e,2);return Rr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2,2),a=ar(e,2);return Rr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e*2,2);return Rr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e,2),a=ar(e*2,2);return Rr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2,2),a=ar(e,2);return Rr(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Dr(r))return Lr;var n=ar(e*2,2),a=ar(e,2);return Rr(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Dr(r))return Lr;var n=zg/2.5,a=2*e*qg(n),o=2*e*Og(n);return Rr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Dr(r))return Lr;var n=zg/4,a=2*e*qg(n),o=2*e*Og(n);return Rr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Dr(e){return e===null}var M8,T8,A8,k8;function Rr(e,r,t){if((!e||e%360===0)&&!r)return t;if(A8===e&&k8===r&&M8===t)return T8;A8=e,k8=r,M8=t;function n(T,m){var k=qg(T),S=Og(T),x=m[0],M=m[1]+(r||0);return[x*k-M*S,x*S+M*k]}for(var a=e/180*zg,o=0,i=0,l=vW(t),u="",s=0;s{"use strict";var cn=tt(),pt=er(),dW=pt.numberFormat,Xl=nt(),Yg=Sa(),Ph=Tr(),Tn=Gr(),pW=Ri(),qf=pt.strTranslate,Fh=Bn(),gW=Ho(),yW=En(),mW=yW.LINE_SPACING,q8=Yc().DESELECTDIM,xW=sa(),bW=Fg(),_W=fo().appendArrayPointValue,lr=Z8.exports={};lr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(Tn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Bg(MW(f))),u&&e.style("text-shadow",u==="auto"?Fh.makeTextShadow(Tn.contrast(o)):Bg(u)),s&&e.style("text-decoration-line",Bg(TW(s)))};function Bg(e){return e==="none"?void 0:e}var wW={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function MW(e){return wW[e]}function TW(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}lr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};lr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};lr.setRect=function(e,r,t,n,a){e.call(lr.setPosition,r,t).call(lr.setSize,n,a)};lr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(Xl(a)&&Xl(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",qf(a,o));else return!1;return!0};lr.translatePoints=function(e,r,t){e.each(function(n){var a=cn.select(this);lr.translatePoint(n,a,r,t)})};lr.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};lr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=Ph.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){lr.hideOutsideRangePoint(s,cn.select(this),t,n,i,l)})})}};lr.crispRound=function(e,r,t){return!r||!Xl(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};lr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";Tn.stroke(r,n||o.color),lr.dashLine(r,l,i)};lr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";cn.select(this).call(Tn.stroke,t||o.color).call(lr.dashLine,l,i)})};lr.dashLine=function(e,r,t){t=+t||0,r=lr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};lr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function O8(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=lr.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,h=i(a.size,0,8),p=i(a.solidity,0,.3),_=r.uid;lr.pattern(e,"point",t,_,l,h,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var y=o.type,b="scatterfill-"+r.uid;if(n&&(b="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var T,m;y==="horizontal"?(T={x:o.start,y:0},m={x:o.stop,y:0}):y==="vertical"&&(T={x:0,y:o.start},m={x:0,y:o.stop}),T.x=r._xA.c2p(T.x===void 0?r._extremes.x.min[0].val:T.x,!0),T.y=r._yA.c2p(T.y===void 0?r._extremes.y.min[0].val:T.y,!0),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.max[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.max[0].val:m.y,!0),e.call(H8,t,b,"linear",o.colorscale,"fill",T,m,!0,!1)}else y==="horizontal"&&(y=y+"reversed"),e.call(lr.gradient,t,b,y,o.colorscale,"fill")}else r.fillcolor&&e.call(Tn.fill,r.fillcolor)}lr.singleFillStyle=function(e,r){var t=cn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};O8(e,a,r,!1)};lr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=cn.select(this);n[0].trace&&O8(a,n[0].trace,r,t)})};var E8=C8();lr.symbolNames=[];lr.symbolFuncs=[];lr.symbolBackOffs=[];lr.symbolNeedLines={};lr.symbolNoDot={};lr.symbolNoFill={};lr.symbolList=[];Object.keys(E8).forEach(function(e){var r=E8[e],t=r.n;lr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),lr.symbolNames[t]=e,lr.symbolFuncs[t]=r.f,lr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(lr.symbolNeedLines[t]=!0),r.noDot?lr.symbolNoDot[t]=!0:lr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(lr.symbolNoFill[t]=!0)});var AW=lr.symbolNames.length,kW="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";lr.symbolNumber=function(e){if(Xl(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=lr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=AW||e>=400?0:Math.floor(Math.max(e,0))};function B8(e,r,t,n){var a=e%100;return lr.symbolFuncs[a](r,t,n)+(e>=200?kW:"")}var L8=dW("~f"),U8={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};lr.gradient=function(e,r,t,n,a,o){var i=U8[n];return H8(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function H8(e,r,t,n,a,o,i,l,u,s){var f=a.length,h;n==="linear"?h={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(h={node:"radialGradient",reversed:s});for(var p=new Array(f),_=0;_=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=lr.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=Zg(e,t),h=Xg(e,t);r.attr("d",B8(s,u,f,h))}var p=!1,_,y,b;if(e.so)b=l.outlierwidth,y=l.outliercolor,_=i.outliercolor;else{var T=(l||{}).width;b=(e.mlw+1||T+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?y=e.mlcc=n.lineScale(e.mlc):pt.isArrayOrTypedArray(l.color)?y=Tn.defaultLine:y=l.color,pt.isArrayOrTypedArray(i.color)&&(_=Tn.defaultLine,p=!0),"mc"in e?_=e.mcc=n.markerScale(e.mc):_=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(_=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&lr.dashLine(r,m,b),e.om)r.call(Tn.stroke,_).style({"stroke-width":(b||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:b)+"px");var k=i.gradient,S=e.mgt;S?p=!0:S=k&&k.type,pt.isArrayOrTypedArray(S)&&(S=S[0],U8[S]||(S=0));var x=i.pattern,M=lr.getPatternAttr,v=x&&(M(x.shape,e.i,"")||M(x.path,e.i,""));if(S&&S!=="none"){var w=e.mgc;w?p=!0:w=k.color;var g=t.uid;p&&(g+="-"+e.i),lr.gradient(r,a,g,S,[[0,w],[1,_]],"fill")}else if(v){var c=!1,A=x.fgcolor;!A&&o&&o.color&&(A=o.color,c=!0);var d=M(A,e.i,o&&o.color||null),D=M(x.bgcolor,e.i,null),E=x.fgopacity,R=M(x.size,e.i,8),N=M(x.solidity,e.i,.3);c=c||e.mcc||pt.isArrayOrTypedArray(x.shape)||pt.isArrayOrTypedArray(x.path)||pt.isArrayOrTypedArray(x.bgcolor)||pt.isArrayOrTypedArray(x.fgcolor)||pt.isArrayOrTypedArray(x.size)||pt.isArrayOrTypedArray(x.solidity);var I=t.uid;c&&(I+="-"+e.i),lr.pattern(r,"point",a,I,v,R,N,e.mcc,x.fillmode,D,d,E)}else pt.isArrayOrTypedArray(_)?Tn.fill(r,_[e.i]):Tn.fill(r,_);b&&Tn.stroke(r,y)}};lr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=lr.tryColorscale(t,""),r.lineScale=lr.tryColorscale(t,"line"),Ph.traceIs(e,"symbols")&&(r.ms2mrc=xW.isBubble(e)?bW(e):function(){return(t.size||6)/2}),e.selectedpoints&&pt.extendFlat(r,lr.makeSelectedPointStyleFns(e)),r};lr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,h=s!==void 0;(pt.isArrayOrTypedArray(l)||f||h)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?a.opacity:x.mo;return x.selected?f?u:M:h?s:q8*M});var p=a.color,_=o.color,y=i.color;(_||y)&&(r.selectedColorFn=function(x){var M=x.mcc||p;return x.selected?_||M:y||M});var b=a.size,T=o.size,m=i.size,k=T!==void 0,S=m!==void 0;return Ph.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(x){var M=x.mrc||b/2;return x.selected?k?T/2:M:S?m/2:M}),r};lr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var h=f.tc||l;return f.selected?u||h:s||(u?h:Tn.addOpacity(h,q8))},r};lr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=lr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){Tn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",B8(lr.symbolNumber(l),u,Zg(i,r),Xg(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=cn.select(this),l=0;l0?t:0}lr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=lr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=cn.select(this),s=o?pt.extractOption(l,r,"txt","texttemplate"):pt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,h=f?f(l,r,i):{},p={};_W(p,r,l.i),s=pt.texttemplateString({data:[p,l,r._meta],fallback:r.texttemplatefallback,labels:h,locale:i._d3locale,template:s})}var _=l.tp||r.textposition,y=G8(l,r),b=n?n(l):l.tc||r.textfont.color;u.call(lr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:y,color:b}).text(s).call(Fh.convertToTspans,t).call(V8,_,y,l.mrc)})}};lr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=lr.makeSelectedTextStyleFns(r);e.each(function(n){var a=cn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=G8(n,r);Tn.fill(a,o);var u=Ph.traceIs(r,"bar-like");V8(a,i,l,n.mrc2||n.mrc,u)})}};var D8=.5;lr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=u||x>=f&&x<=u)&&(M<=h&&M>=s||M>=h&&M<=s)&&(e=[x,M])}return e}lr.applyBackoff=X8;lr.makeTester=function(){var e=pt.ensureSingleById(cn.select("body"),"svg","js-plotly-tester",function(t){t.attr(gW.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=pt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});lr.tester=e,lr.testref=r};lr.savedBBoxes={};var Hg=0,EW=1e4;lr.bBox=function(e,r,t){t||(t=R8(e));var n;if(t){if(n=lr.savedBBoxes[t],n)return pt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=R8(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=lr.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=lr.savedBBoxes[t],n)return pt.extendFlat({},n)}}var s,f;r?s=e:(f=lr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),cn.select(s).attr("transform",null).call(Fh.positionText,0,0);var h=s.getBoundingClientRect(),p=lr.testref.node().getBoundingClientRect();r||f.removeChild(s);var _={height:h.height,width:h.width,left:h.left-p.left,top:h.top-p.top,right:h.right-p.left,bottom:h.bottom-p.top};return Hg>=EW&&(lr.savedBBoxes={},Hg=0),t&&(lr.savedBBoxes[t]=_),Hg++,pt.extendFlat({},_)};function R8(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}lr.setClipUrl=function(e,r,t){e.attr("clip-path",Wg(r,t))};function Wg(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}lr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};lr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=qf(r,t),i=i.trim(),e[o]("transform",i),i};lr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};lr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var LW=/\s*sc.*/;lr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(LW,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var DW=/translate\([^)]*\)\s*$/;lr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=cn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(DW);r===1&&t===1?n=[]:n=[qf(i,l),"scale("+r+","+t+")",qf(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function Xg(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}lr.getMarkerStandoff=Xg;var zf=Math.atan2,Gl=Math.cos,su=Math.sin;function P8(e,r){var t=r[0],n=r[1];return[t*Gl(e)-n*su(e),t*su(e)+n*Gl(e)]}var F8,I8,N8,z8,Vg,Gg;function Zg(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||pt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],h=r._geo.project([s,f+1e-5]),p=r._geo.project([s+1e-5,f]),_=zf(p[1]-a,p[0]-n),y=zf(h[1]-a,h[0]-n),b;if(o==="north")b=t/180*Math.PI;else if(o==="previous"){var T=s/180*Math.PI,m=f/180*Math.PI,k=F8/180*Math.PI,S=I8/180*Math.PI,x=k-T,M=Gl(S)*su(x),v=su(S)*Gl(m)-Gl(S)*su(m)*Gl(x);b=-zf(M,v)-Math.PI,F8=s,I8=f}var w=P8(_,[Gl(b),0]),g=P8(y,[su(b),0]);t=zf(w[1]+g[1],w[0]+g[0])/Math.PI*180,o==="previous"&&!(Gg===r.uid&&e.i===Vg+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Gg===r.uid&&e.i===Vg+1&&Xl(n)&&Xl(a)){var c=n-N8,A=a-z8,d=r.line&&r.line.shape||"",D=d.slice(d.length-1);D==="h"&&(A=0),D==="v"&&(c=0),t+=zf(A,c)/Math.PI*180+90}else t=null}return N8=n,z8=a,Vg=e.i,Gg=r.uid,t}lr.getMarkerAngle=Zg});var Of=be((ihe,$8)=>{"use strict";var uu=tt(),RW=nt(),PW=fn(),Jg=Tr(),Zl=er(),J8=Zl.strTranslate,Ih=mt(),Nh=Gr(),fu=Bn(),K8=Yc(),FW=En().OPPOSITE_SIDE,Q8=/ [XY][0-9]* /,Kg=1.6,Qg=1.6;function IW(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,h=t.containerGroup,p=1,_=a.title,y=(_&&_.text?_.text:"").trim(),b=!1,T=_&&_.font?_.font:{},m=T.family,k=T.size,S=T.color,x=T.weight,M=T.style,v=T.variant,w=T.textcase,g=T.lineposition,c=T.shadow,A=t.subtitlePropName,d=!!A,D=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},R=(E.text||"").trim(),N=!1,I=1,F=E.font,L=F.family,P=F.size,O=F.color,B=F.weight,X=F.style,$=F.variant,ee=F.textcase,Y=F.lineposition,q=F.shadow,Q;o==="title.text"?Q="titleText":o.indexOf("axis")!==-1?Q="axisTitleText":o.indexOf("colorbar")!==-1&&(Q="colorbarTitleText");var oe=e._context.edits[Q];function Z(Ce,Fe){return Ce===void 0||Fe===void 0?!1:Ce.replace(Q8," % ")===Fe.replace(Q8," % ")}y===""?p=0:Z(y,i)&&(oe||(y=""),p=.2,b=!0),d&&(R===""?I=0:Z(R,D)&&(oe||(R=""),I=.2,N=!0)),t._meta?y=Zl.templateString(y,t._meta):n._meta&&(y=Zl.templateString(y,n._meta));var se=y||R||oe,j;h||(h=Zl.ensureSingle(n._infolayer,"g","g-"+r),j=n._hColorbarMoveTitle);var V=h.selectAll("text."+r).data(se?[0]:[]);V.enter().append("text"),V.text(y).attr("class",r),V.exit().remove();var re=null,H=r+"-subtitle",ne=R||oe;if(d&&(re=h.selectAll("text."+H).data(ne?[0]:[]),re.enter().append("text"),re.text(R).attr("class",H),re.exit().remove()),!se)return h;function ue(Ce,Fe){Zl.syncOrAsync([ye,ke],{title:Ce,subtitle:Fe})}function ye(Ce){var Fe=Ce.title,ie=Ce.subtitle,J;!f&&j&&(f={}),f?(J="",f.rotate&&(J+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||j)&&(J+=J8(0,(f.offset||0)-(j||0)))):J=null,Fe.attr("transform",J);function te(me){if(me){var de=uu.select(me.node().parentNode).select("."+H);if(!de.empty()){var _e=me.node().getBBox();if(_e.height){var Ae=_e.y+_e.height+Kg*P;de.attr("y",Ae)}}}}if(Fe.style("opacity",p*Nh.opacity(S)).call(Ih.font,{color:Nh.rgb(S),size:uu.round(k,2),family:m,weight:x,style:M,variant:v,textcase:w,shadow:c,lineposition:g}).attr(s).call(fu.convertToTspans,e,te),ie&&!ie.empty()){var ae=h.select("."+r+"-math-group"),ce=Fe.node().getBBox(),pe=ae.node()?ae.node().getBBox():void 0,ve=pe?pe.y+pe.height+Kg*P:ce.y+ce.height+Qg*P,xe=Zl.extendFlat({},s,{y:ve});ie.attr("transform",J),ie.style("opacity",I*Nh.opacity(O)).call(Ih.font,{color:Nh.rgb(O),size:uu.round(P,2),family:L,weight:B,style:X,variant:$,textcase:ee,shadow:q,lineposition:Y}).attr(xe).call(fu.convertToTspans,e)}return PW.previousPromises(e)}function ke(Ce){var Fe=Ce.title,ie=uu.select(Fe.node().parentNode);if(u&&u.selection&&u.side&&y){ie.attr("transform",null);var J=FW[u.side],te=u.side==="left"||u.side==="top"?-1:1,ae=RW(u.pad)?u.pad:2,ce=Ih.bBox(ie.node()),pe={t:0,b:0,l:0,r:0},ve=e._fullLayout._reservedMargin;for(var xe in ve)for(var me in ve[xe]){var de=ve[xe][me];pe[me]=Math.max(pe[me],de)}var _e={left:pe.l,top:pe.t,right:n.width-pe.r,bottom:n.height-pe.b},Ae=u.maxShift||te*(_e[u.side]-ce[u.side]),Ie=0;if(Ae<0)Ie=Ae;else{var De=u.offsetLeft||0,We=u.offsetTop||0;ce.left-=De,ce.right-=De,ce.top-=We,ce.bottom-=We,u.selection.each(function(){var ze=Ih.bBox(this);Zl.bBoxIntersect(ce,ze,ae)&&(Ie=Math.max(Ie,te*(ze[u.side]-ce[J])+ae))}),Ie=Math.min(Ae,Ie),a._titleScoot=Math.abs(Ie)}if(Ie>0||Ae<0){var Oe={left:[-Ie,0],right:[Ie,0],top:[0,-Ie],bottom:[0,Ie]}[u.side];ie.attr("transform",J8(Oe[0],Oe[1]))}}}V.call(ue,re);function Me(Ce,Fe){Ce.text(Fe).on("mouseover.opacity",function(){uu.select(this).transition().duration(K8.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){uu.select(this).transition().duration(K8.HIDE_PLACEHOLDER).style("opacity",0)})}if(oe&&(y?V.on(".opacity",null):(Me(V,i),b=!0),V.call(fu.makeEditable,{gd:e}).on("edit",function(Ce){l!==void 0?Jg.call("_guiRestyle",e,o,Ce,l):Jg.call("_guiRelayout",e,o,Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ce){this.text(Ce||" ").call(fu.positionText,s.x,s.y)}),d)){if(d&&!y){var ge=V.node().getBBox(),Ee=ge.y+ge.height+Qg*P;re.attr("y",Ee)}R?re.on(".opacity",null):(Me(re,D),N=!0),re.call(fu.makeEditable,{gd:e}).on("edit",function(Ce){Jg.call("_guiRelayout",e,"title.subtitle.text",Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ce){this.text(Ce||" ").call(fu.positionText,re.attr("x"),re.attr("y"))})}return V.classed("js-placeholder",b),re&&!re.empty()&&re.classed("js-placeholder",N),h}$8.exports={draw:IW,SUBTITLE_PADDING_EM:Qg,SUBTITLE_PADDING_MATHJAX_EM:Kg}});var Gh=be((ohe,nM)=>{"use strict";var NW=tt(),zW=qs().utcFormat,xt=er(),qW=xt.numberFormat,Pi=nt(),Wo=xt.cleanNumber,OW=xt.ms2DateTime,j8=xt.dateTime2ms,Fi=xt.ensureNumber,eM=xt.isArrayOrTypedArray,Xo=ln(),zh=Xo.FP_SAFE,ii=Xo.BADNUM,BW=Xo.LOG_CLIP,UW=Xo.ONEWEEK,qh=Xo.ONEDAY,Oh=Xo.ONEHOUR,rM=Xo.ONEMIN,tM=Xo.ONESEC,Bh=nn(),Vh=un(),Uh=Vh.HOUR_PATTERN,Hh=Vh.WEEKDAY_PATTERN;function Bf(e){return Math.pow(10,e)}function $g(e){return e!=null}nM.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var v=r.range[0],w=r.range[1];return .5*(v+w-2*BW*Math.abs(v-w))}else return ii}function i(x,M,v,w){if((w||{}).msUTC&&Pi(x))return+x;var g=j8(x,v||r.calendar);if(g===ii)if(Pi(x)){x=+x;var c=Math.floor(xt.mod(x+.05,1)*10),A=Math.round(x-c/10);g=j8(new Date(A))+c/10}else return ii;return g}function l(x,M,v){return OW(x,M,v||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if($g(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return ii}function f(x,M){for(var v=new Array(M),w=0;wr.range[1]&&(v=!v);for(var w=v?-1:1,g=w*x,c=0,A=0;AD)c=A+1;else{c=g<(d+D)/2?A:A+1;break}}var E=r._B[c]||0;return isFinite(E)?y(x,r._m2,E):0},m=function(x){var M=r._rangebreaks.length;if(!M)return b(x,r._m,r._b);for(var v=0,w=0;wr._rangebreaks[w].pmax&&(v=w+1);return b(x,r._m2,r._B[v])}}r.c2l=r.type==="log"?o:Fi,r.l2c=r.type==="log"?Bf:Fi,r.l2p=T,r.p2l=m,r.c2p=r.type==="log"?function(x,M){return T(o(x,M))}:T,r.p2c=r.type==="log"?function(x){return Bf(m(x))}:m,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Wo,r.c2d=r.c2r=r.l2d=r.l2r=Fi,r.d2p=r.r2p=function(x){return r.l2p(Wo(x))},r.p2d=r.p2r=m,r.cleanPos=Fi):r.type==="log"?(r.d2r=r.d2l=function(x,M){return o(Wo(x),M)},r.r2d=r.r2c=function(x){return Bf(Wo(x))},r.d2c=r.r2l=Wo,r.c2d=r.l2r=Fi,r.c2r=o,r.l2d=Bf,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return Bf(m(x))},r.r2p=function(x){return r.l2p(Wo(x))},r.p2r=m,r.cleanPos=Fi):r.type==="date"?(r.d2r=r.r2d=xt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,M,v){return r.l2p(i(x,0,v))},r.p2d=r.p2r=function(x,M,v){return l(m(x),M,v)},r.cleanPos=function(x){return xt.cleanDate(x,ii,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var M=_(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Fi,r.r2l=_,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(m(x))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Fi(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var M=p(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=h,r.l2r=r.c2r=Fi,r.r2l=p,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(m(x))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Fi(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,v,w,g=r._matchGroup;if(g&&r._categories.length===0){for(var c in g)if(c!==n){var A=t[Bh.id2name(c)];M=M.concat(A._traceIndices)}}var d=[[0,{}],[0,{}]],D=[];for(v=0;vA[1]&&(w[c?0:1]=v,g[1]=A[1]),g[0]>=g[1])if(M!==void 0){var d=A[0]+1;v!==void 0&&(d=Math.min(d,A[1])),w[c?0:1]=r.l2r(d)}else v!==void 0&&(w[c?1:0]=r.l2r(A[1]-1))}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var v=xt.nestedProperty(r,x).get(),w,g;if(r.type==="date"?g=xt.dfltRange(r.calendar):a==="y"?g=Vh.DFLTRANGEY:r._name==="realaxis"?g=[0,1]:g=M.dfltRange||Vh.DFLTRANGEX,g=g.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(g[0]=0),!v||v.length!==2){xt.nestedProperty(r,x).set(g);return}var c=v[0]===null,A=v[1]===null;for(r.type==="date"&&!r.autorange&&(v[0]=xt.cleanDate(v[0],ii,r.calendar),v[1]=xt.cleanDate(v[1],ii,r.calendar)),w=0;w<2;w++)if(r.type==="date"){if(!xt.isDateTime(v[w],r.calendar)){r[x]=g;break}if(r.r2l(v[0])===r.r2l(v[1])){var d=xt.constrain(r.r2l(v[0]),xt.MIN_MS+1e3,xt.MAX_MS-1e3);v[0]=r.l2r(d-1e3),v[1]=r.l2r(d+1e3);break}}else{if(!Pi(v[w]))if(!(c||A)&&Pi(v[1-w]))v[w]=v[1-w]*(w?10:.1);else{r[x]=g;break}if(v[w]<-zh?v[w]=-zh:v[w]>zh&&(v[w]=zh),v[0]===v[1]){var D=Math.max(1,Math.abs(v[0]*1e-6));v[0]-=D,v[1]+=D}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var v=Bh.getFromId({_fullLayout:t},r.overlaying);r.domain=v.domain}var w=x&&r._r?"_r":"range",g=r.calendar;r.cleanRange(w);var c=r.r2l(r[w][0],g),A=r.r2l(r[w][1],g),d=a==="y";if(d?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(c-A),r._b=-r._m*A):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-c),r._b=-r._m*c),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var D,E;if(r._rangebreaks=r.locateBreaks(Math.min(c,A),Math.max(c,A)),r._rangebreaks.length){for(D=0;DA&&(R=!R),R&&r._rangebreaks.reverse();var N=R?-1:1;for(r._m2=N*r._length/(Math.abs(A-c)-r._lBreaks),r._B.push(-r._m2*(d?A:c)),D=0;Dg&&(g+=7,cg&&(g+=24,c=w&&c=w&&x=q.min&&(Xq.max&&(q.max=$),ee=!1)}ee&&A.push({min:X,max:$})}};for(v=0;v{"use strict";var aM=nt(),jg=er(),HW=ln().BADNUM,Yh=jg.isArrayOrTypedArray,VW=jg.isDateTime,GW=jg.cleanNumber,iM=Math.round;lM.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(Yh(a)&&!a.length)return"-";if(!o&&JW(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function oM(e){return Math.max(1,(e-1)/1e3)}function ZW(e,r){for(var t=e.length,n=oM(t),a=0,o=0,i={},l=0;la*2}function JW(e){return Yh(e[0])&&Yh(e[1])}});var cu=be((she,pM)=>{"use strict";var KW=tt(),cM=nt(),Zo=er(),Wh=ln().FP_SAFE,QW=Tr(),$W=mt(),hM=nn(),jW=hM.getFromId,eX=hM.isLinked;pM.exports={applyAutorangeOptions:dM,getAutoRange:r2,makePadFn:t2,doAutoRange:tX,findExtremes:nX,concatExtremes:i2};function r2(e,r){var t,n,a=[],o=e._fullLayout,i=t2(o,r,0),l=t2(o,r,1),u=i2(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return Zo.simpleMap(r.range,r.r2l);var h=s[0].val,p=f[0].val;for(t=1;t0&&(A=S-i(v)-l(w),A>x?d/A>M&&(g=v,c=w,M=d/A):d/S>M&&(g={val:v.val,nopad:1},c={val:w.val,nopad:1},M=d/S));function D(F,L){return Math.max(F,l(L))}if(h===p){var E=h-1,R=h+1;if(m)if(h===0)a=[0,1];else{var N=(h>0?f:s).reduce(D,0),I=h/(1-Math.min(.5,N/S));a=h>0?[0,I]:[I,0]}else k?a=[Math.max(0,E),Math.max(1,R)]:a=[E,R]}else m?(g.val>=0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:0,nopad:1})):k&&(g.val-M*i(g)<0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:1,nopad:1})),M=(c.val-g.val-sM(r,v.val,w.val))/(S-i(g)-l(c)),a=[g.val-M*i(g),c.val+M*l(c)];return a=dM(a,r),r.limitRange&&r.limitRange(),y&&a.reverse(),Zo.simpleMap(a,r.l2r||Number)}function sM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o0?t.ppadplus:t.ppadminus)||t.ppad||0),v=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),w=x(t.vpadplus||t.vpad),g=x(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(h=0;h0&&(k=p),p>S&&p-Wh&&(k=p),p>S&&p=d;h--)A(h);return{min:n,max:a,opts:t}}function n2(e,r,t,n){vM(e,r,t,n,aX)}function a2(e,r,t,n){vM(e,r,t,n,iX)}function vM(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function fM(e){return cM(e)&&Math.abs(e)=r}function oX(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Xh(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Xh(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function lX(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Xh(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Xh(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Xh(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=oX(t,r),n=lX(n,r),[t,n]}});var Lt=be((fhe,qM)=>{"use strict";var Ra=tt(),Qt=nt(),hu=fn(),Hf=Tr(),Mr=er(),vu=Mr.strTranslate,Jl=Bn(),sX=Of(),Vf=Gr(),da=mt(),uX=Da(),gM=wg(),uhe=un(),An=ln(),fX=An.ONEMAXYEAR,Kh=An.ONEAVGYEAR,Qh=An.ONEMINYEAR,cX=An.ONEMAXQUARTER,u2=An.ONEAVGQUARTER,$h=An.ONEMINQUARTER,hX=An.ONEMAXMONTH,du=An.ONEAVGMONTH,jh=An.ONEMINMONTH,pa=An.ONEWEEK,Un=An.ONEDAY,Jo=Un/2,Ni=An.ONEHOUR,Gf=An.ONEMIN,ev=An.ONESEC,vX=An.ONEMILLI,dX=An.ONEMICROSEC,Kl=An.MINUS_SIGN,tv=An.BADNUM,f2={K:"zeroline"},c2={K:"gridline",L:"path"},h2={K:"minor-gridline",L:"path"},SM={K:"tick",L:"path"},yM={K:"tick",L:"text"},mM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},nv=En(),Uf=nv.MID_SHIFT,Ql=nv.CAP_SHIFT,Yf=nv.LINE_SPACING,pX=nv.OPPOSITE_SIDE,rv=3,rr=qM.exports={};rr.setConvert=Gh();var gX=e2(),zi=nn(),yX=zi.idSort,mX=zi.isLinked;rr.id2name=zi.id2name;rr.name2id=zi.name2id;rr.cleanId=zi.cleanId;rr.list=zi.list;rr.listIds=zi.listIds;rr.getFromId=zi.getFromId;rr.getFromTrace=zi.getFromTrace;var CM=cu();rr.getAutoRange=CM.getAutoRange;rr.findExtremes=CM.findExtremes;var xX=1e-4;function g2(e){var r=(e[1]-e[0])*xX;return[e[0]-r,e[1]+r]}rr.coerceRef=function(e,r,t,n,a,o){var i=n.charAt(n.length-1),l=t._fullLayout._subplots[i+"axis"],u=n+"ref",s={};return a||(a=l[0]||(typeof o=="string"?o:o[0])),o||(o=a),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(o?typeof o=="string"?[o]:o:[]),dflt:a},Mr.coerce(e,r,s,u)};rr.coerceRefArray=function(e,r,t,n,a,o,i){let l=n.charAt(n.length-1);var u=t._fullLayout._subplots[l+"axis"];let s=n+"ref";var f=e[s];a||(a=u[0]||(typeof o=="string"?o:o[0])),u=u.concat(u.map(p=>p+" domain")),u=u.concat(o||[]),f.length>i?(Mr.warn("Array attribute "+s+" has more entries than expected, truncating to "+i),f=f.slice(0,i)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};rr.saveRangeInitial=function(e,r){for(var t=rr.list(e,"",!0),n=!1,a=0;ah*.3||s(n)||s(a))){var p=t.dtick/2;e+=e+pi){var l=Number(t.slice(1));o.exactYears>i&&l%12===0?e=rr.tickIncrement(e,"M6","reverse")+Un*1.5:o.exactMonths>i?e=rr.tickIncrement(e,"M1","reverse")+Un*15.5:e-=Jo;var u=rr.tickIncrement(e,t);if(u<=n)return u}return e}rr.prepMinorTicks=function(e,r,t){var h,p;if(!((h=r.minor)!=null&&h.dtick)){delete e.dtick;var n=r.dtick&&Qt(r._tmin),a;if(n){var o=rr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Mr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Mr.simpleMap(a,r.l2r),e._isMinor=!0,rr.prepTicks(e,t),n){var l=Qt(r.dtick),u=Qt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?o2(s,f)?s===2*pa&&f===2*Un&&(e.dtick=pa):s===2*pa&&f===3*Un?e.dtick=pa:s===pa&&!(r._input.minor||{}).nticks?e.dtick=Un:_M(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":o2(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?o2(s,f)||(e.dtick=_M(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((p=r.minor)==null?void 0:p._tick0Init)===void 0&&(e.tick0=r.tick0)};function o2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function _M(e,r){return Math.abs(e/r-1)<.001}rr.prepTicks=function(e,r){var t=Mr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Mr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Mr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,rr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(o=n-1,i=n):(o=n,i=n);var l=e[o].value,u=e[i].value,s=Math.abs(u-l),f=t||s,h=0;f>=Qh?s>=Qh&&s<=fX?h=s:h=Kh:t===u2&&f>=$h?s>=$h&&s<=cX?h=s:h=u2:f>=jh?s>=jh&&s<=hX?h=s:h=du:t===pa&&f>=pa?h=pa:f>=Un?h=Un:t===Jo&&f>=Jo?h=Jo:t===Ni&&f>=Ni&&(h=Ni);var p;h>=s&&(h=s,p=!0);var _=a+h;if(r.rangebreaks&&h>0){for(var y=84,b=0,T=0;Tpa&&(h=s)}(h>0||n===0)&&(e[n].periodX=a+h/2)}}rr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||Mr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=Mr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(x?0:1);M--){var v=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var w=M?r:Mr.extendFlat({},r,x?r.minor:{minor:{}});if(v?rr.prepMinorTicks(w,r,t):rr.prepTicks(w,t),w.tickmode==="array"){M?(T=[],y=wM(r,!v)):(m=[],b=wM(r,!v));continue}if(w.tickmode==="sync"){T=[],y=AX(r);continue}var g=g2(s),c=g[0],A=g[1],d=Qt(w.dtick),D=n==="log"&&!(d||w.dtick.charAt(0)==="L"),E=rr.tickFirst(w,t);if(M){if(r._tmin=E,E=A:N<=A;N=rr.tickIncrement(N,L,f,a)){if(M&&I++,w.rangebreaks&&!f){if(N=p)break}if(T.length>_||N===R)break;R=N;var P={value:N};M?(D&&N!==(N|0)&&(P.simpleLabel=!0),o>1&&I%o&&(P.skipLabel=!0),T.push(P)):(P.minor=!0,m.push(P))}}if(!m||m.length<3)u=!1;else{var O=(m[2].value-m[1].value)*(l?-1:1);KX(O,r.tickformat)||(u=!1,m=m.slice(1))}if(!u)k=T;else{var B=T.concat(m);i&&T.length&&(B=B.slice(1)),B=B.sort(function(Ce,Fe){return Ce.value-Fe.value}).filter(function(Ce,Fe,ie){return Fe===0||Ce.value!==ie[Fe-1].value});var X=B.map(function(Ce,Fe){return Ce.minor===void 0&&!Ce.skipLabel?Fe:null}).filter(function(Ce){return Ce!==null});X.forEach(function(Ce){u.map(function(Fe){var ie=Ce+Fe;ie>=0&&ie-1;j--){if(T[j].drop){T.splice(j,1);continue}T[j].value=s2(T[j].value,r);var ne=r.c2p(T[j].value);(V?H>ne-re:Hp||Jp&&(ie.periodX=p),Ja&&pKh)r/=Kh,n=a(10),e.dtick="M"+12*Ii(r,n,Zh);else if(o>du)r/=du,e.dtick="M"+Ii(r,1,MM);else if(o>Un){if(e.dtick=Ii(r,Un,e._hasDayOfWeekBreaks?[1,2,7,14]:kX),!t){var i=rr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Mr.dateTick0(e.calendar,2):e.tick0=Mr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>Ni?e.dtick=Ii(r,Ni,MM):o>Gf?e.dtick=Ii(r,Gf,TM):o>ev?e.dtick=Ii(r,ev,TM):(n=a(10),e.dtick=Ii(r,n,Zh))}else if(e.type==="log"){e.tick0=0;var u=Mr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+Ii(r,n,Zh)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):b2(e)?(e.tick0=0,n=1,e.dtick=Ii(r,n,SX)):(e.tick0=0,n=a(10),e.dtick=Ii(r,n,Zh));if(e.dtick===0&&(e.dtick=1),!Qt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function RM(e){var r=e.dtick;if(e._tickexponent=0,!Qt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Un&&a<=10||r>=Un*15)e._tickround="d";else if(r>=Gf&&a<=16||r>=Ni)e._tickround="M";else if(r>=ev&&a<=19||r>=Gf)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(Qt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);Qt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(pu(e.exponentformat)&&e.exponentformat!=="SI extended"&&!y2(u)||pu(e.exponentformat)&&e.exponentformat==="SI extended"&&!m2(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}rr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(Qt(r))return Mr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.slice(1));if(o==="M")return Mr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?DM:LM,u=e+a*.01,s=Mr.roundUp(Mr.mod(u,1),l,t);return Math.floor(u)+Math.log(Ra.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};rr.tickFirst=function(e,r){var t=e.r2l||Number,n=Mr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&m<=e._length?T:null};if(o&&Mr.isArrayOrTypedArray(e.ticktext)){var h=Mr.simpleMap(e.range,e.r2l),p=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(s=0;s"+l;else{var s=Xf(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function EX(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=Wf(Math.pow(10,i),e,a,n);else if(Qt(o)||u==="D"&&(e.minorloglabels==="complete"||Mr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Mr.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),h=f.split("e"),p=+h[1],_=Math.abs(p),y=e.exponentformat;y==="power"||pu(y)&&y!=="SI extended"&&y2(p)||pu(y)&&y==="SI extended"&&m2(p)?(r.text=h[0],_>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),p!==0&&p!==1&&(r.text+=""+(p>0?"":Kl)+_+""),r.fontSize*=1.25):(y==="e"||y==="E")&&_>2?r.text=h[0]+y+(p>0?"+":Kl)+_:(r.text=Wf(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Mr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var b=String(r.text).charAt(0);(b==="0"||b==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(i<0?.5:.25)))}}function LX(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function DX(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function RX(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=Wf(r.x,e,a,n)}function PX(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=FX(o);if(i[1]>=100)r.text=Wf(Mr.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["",i[0],"","\u2044","",i[1],"","\u03C0"].join(""),l&&(r.text=Kl+r.text)}}}else r.text=Wf(r.x,e,a,n)}function FX(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var FM=["f","p","n","\u03BC","m","","k","M","G","T"],IX=["q","r","y","z","a",...FM,"P","E","Z","Y","R","Q"],pu=e=>["SI","SI extended","B"].includes(e);function y2(e){return e>14||e<-15}function m2(e){return e>32||e<-30}function NX(e,r){return pu(r)?!!(r==="SI extended"&&m2(e)||r!=="SI extended"&&y2(e)):!1}function Wf(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=rr.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Qt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};RM(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Kl);var h=Math.pow(10,-o)/2;if(i==="none"&&(l=0),e=Math.abs(e),e"+y+"":i==="B"&&l===9?e+="B":pu(i)&&(e+=i==="SI extended"?IX[l/3+10]:FM[l/3+5])}return a?Kl+e:e}rr.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*du}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var h=f.indexOf(u.charAt(0)),p=f.indexOf(s.charAt(0));return h===p?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):h-p}else return typeof u=="number"?1:-1}function a(u,s,f){var h=f||function(y){return y},p=s[0],_=s[1];return(!p&&typeof p!="number"||h(p)<=h(u))&&(!_&&typeof _!="number"||h(_)>=h(u))}function o(u,s){var f=s[0]===null,h=s[1]===null,p=n(u,s[0])>=0,_=n(u,s[1])<=0;return(f||p)&&(h||_)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Mr.syncOrAsync(a.map(function(u){return function(){if(u){var s=rr.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=rr.drawOne(e,s,t);return s._shiftPusher&&p2(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Mr.simpleMap(s._r,s.r2l),f}}}))};rr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),h=rr.counterLetter(s),p=u._plots[r._mainSubplot],_=r.zerolinelayer==="above traces";if(!p)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var y=r.linewidth/2||0;r.ticks==="inside"&&(y+=r.ticklen),p2(r,y,n,!0),p2(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=JX(r,n));var b=p[f+"axislayer"],T=r._mainLinePosition,m=T+=r._shift,k=r._mainMirrorPosition,S=r._vals=rr.calcTicks(r),x=[r.mirror,m,k].join("_");for(o=0;o0?ie.bottom-Ce:0,Fe))));var ce=0,pe=0;if(r._shiftPusher&&(ce=Math.max(Fe,ie.height>0?ge==="l"?Ce-ie.left:ie.right-Ce:0),r.title.text!==u._dfltTitle[f]&&(pe=(r._titleStandoff||0)+(r._titleScoot||0),ge==="l"&&(pe+=kM(r))),r._fullDepth=Math.max(ce,pe)),r.automargin){J={x:0,y:0,r:0,l:0,t:0,b:0};var ve=[0,1],xe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ge==="b"?J[ge]=r._depth:(J[ge]=r._depth=Math.max(ie.width>0?Ce-ie.top:0,Fe),ve.reverse()),ie.width>0){var me=ie.right-(r._offset+r._length);me>0&&(J.xr=1,J.r=me);var de=r._offset-ie.left;de>0&&(J.xl=0,J.l=de)}}else if(ge==="l"?(r._depth=Math.max(ie.height>0?Ce-ie.left:0,Fe),J[ge]=r._depth-xe):(r._depth=Math.max(ie.height>0?ie.right-Ce:0,Fe),J[ge]=r._depth+xe,ve.reverse()),ie.height>0){var _e=ie.bottom-(r._offset+r._length);_e>0&&(J.yb=0,J.b=_e);var Ae=r._offset-ie.top;Ae>0&&(J.yt=1,J.t=Ae)}J[h]=r.anchor==="free"?r.position:r._anchorAxis.domain[ve[0]],r.title.text!==u._dfltTitle[f]&&(J[ge]+=kM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(te={x:0,y:0,r:0,l:0,t:0,b:0},te[Ee]=r.linewidth,r.mirror&&r.mirror!==!0&&(te[Ee]+=Fe),r.mirror===!0||r.mirror==="ticks"?te[h]=r._anchorAxis.domain[ve[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(te[h]=[r._counterDomainMin,r._counterDomainMax][ve[1]]))}Me&&(ae=Hf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(AM(J,r.automargin),AM(te,r.automargin)),hu.autoMargin(e,x2(r),J),hu.autoMargin(e,NM(r),te),hu.autoMargin(e,zM(r),ae)}),Mr.syncOrAsync(ye)}};function AM(e,r){if(e){var t=Object.keys(mM).reduce(function(n,a){return r.indexOf(a)!==-1&&mM[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function zX(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Mr.extendFlat({},o,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,h=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*h}return e._id.charAt(0)==="x"?function(p){return vu(a+e._offset+e.l2p(v2(p))+t,o+n)}:function(p){return vu(o+n,a+e._offset+e.l2p(v2(p))+t)}};function v2(e){return e.periodX!==void 0?e.periodX:e.x}function UX(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(y){return r.indexOf(y)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,h=s?(e.tickwidth||0)/2:0,p=rv,_=e.tickfont?e.tickfont.size:12;return(l||a)&&(h+=_*Ql,p+=(e.linewidth||0)/2),(o||i)&&(h+=(e.linewidth||0)/2,p+=rv),u&&f==="top"&&(p-=_*(1-Ql)),(o||a)&&(h=-h),(f==="bottom"||f==="right")&&(p=-p),[s?h:0,u?p:0]}rr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};rr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),h=o("inside"),p=n==="inside"&&e.ticks==="inside"||!h&&e.ticks==="outside"&&a!=="boundaries",_=0,y=0,b=p?e.ticklen:0;if(h?b*=-1:f&&(b=0),p&&(_+=b,t)){var T=Mr.deg2rad(t);_=b*Math.cos(T)+1,y=b*Math.sin(T)}e.showticklabels&&(p||e.showline)&&(_+=.2*e.tickfont.size),_+=(e.linewidth||1)/2*(h?-1:1);var m={labelStandoff:_,labelShift:y},k,S,x,M,v=0,w=e.side,g=e._id.charAt(0),c=e.tickangle,A;if(g==="x")A=!h&&w==="bottom"||h&&w==="top",M=A?1:-1,h&&(M*=-1),k=y*M,S=r+_*M,x=A?1:-.2,Math.abs(c)===90&&(h?x+=Uf:c===-90&&w==="bottom"?x=Ql:c===90&&w==="top"?x=Uf:x=.5,v=Uf/2*(c/90)),m.xFn=function(E){return E.dx+k+v*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*x},m.anchorFn=function(E,R){if(f){if(l)return"end";if(u)return"start"}return!Qt(R)||R===0||R===180?"middle":R*M<0!==h?"end":"start"},m.heightFn=function(E,R,N){return R<-60||R>60?-.5*N:e.side==="top"!==h?-N:0};else if(g==="y"){if(A=!h&&w==="left"||h&&w==="right",M=A?1:-1,h&&(M*=-1),k=_,S=y*M,x=0,!h&&Math.abs(c)===90&&(c===-90&&w==="left"||c===90&&w==="right"?x=Ql:x=.5),h){var d=Qt(c)?+c:0;if(d!==0){var D=Mr.deg2rad(d);v=Math.abs(Math.sin(D))*Ql*M,x=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*M+v*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*Uf},m.anchorFn=function(E,R){return Qt(R)&&Math.abs(R)===90?"middle":A?"end":"start"},m.heightFn=function(E,R,N){return e.side==="right"&&(R*=-1),R<-30?-N:R<30?-.5*N:0}}return m};function av(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}rr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,av);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return Vf.stroke(Ra.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return da.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),iv(r,[SM]),o.attr("transform",t.transFn)};rr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(m){return m.minor}):[],i=r.showgrid?t.vals.filter(function(m){return!m.minor}):[],l=t.counterAxis;if(l&&rr.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;y--){var b=y?p:_;if(b){var T=b.selectAll("path."+n).data(y?i:o,av);T.exit().remove(),T.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),T.attr("transform",t.transFn).attr("d",t.path).each(function(m){return Vf.stroke(Ra.select(this),m.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return da.dashStyle(m.minor?r.minor.griddash:r.griddash,m.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(m){return(m.minor?h:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&T.attr("d",t.path)}}iv(r,[c2,h2])}};rr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=rr.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return yX(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(Vf.stroke,r.zerolinecolor||Vf.defaultLine).style("stroke-width",da.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),iv(r,[f2])};rr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(P){return P.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],h=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],av),p=[];h.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(P){var O=Ra.select(this),B=e._promises.length;O.call(Jl.positionText,u.xFn(P),u.yFn(P)).call(da.font,{family:P.font,size:P.fontSize,color:P.fontColor,weight:P.fontWeight,style:P.fontStyle,variant:P.fontVariant,textcase:P.fontTextcase,lineposition:P.fontLineposition,shadow:P.fontShadow}).text(P.text).call(Jl.convertToTspans,e),e._promises[B]?p.push(e._promises.pop().then(function(){_(O,s)})):_(O,s)}),iv(r,[yM]),h.exit().remove(),t.repositionOnUpdate&&h.each(function(P){Ra.select(this).select("text").call(Jl.positionText,u.xFn(P),u.yFn(P))});function _(P,O){P.each(function(B){var X=Ra.select(this),$=X.select(".text-math-group"),ee=u.anchorFn(B,O),Y=t.transFn.call(X.node(),B)+(Qt(O)&&+O!=0?" rotate("+O+","+u.xFn(B)+","+(u.yFn(B)-B.fontSize/2)+")":""),q=Jl.lineCount(X),Q=Yf*B.fontSize,oe=u.heightFn(B,Qt(O)?+O:0,(q-1)*Q);if(oe&&(Y+=vu(0,oe)),$.empty()){var Z=X.select("text");Z.attr({transform:Y,"text-anchor":ee}),Z.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=da.bBox($.node()).width,j=se*{end:-.5,start:.5}[ee];$.attr("transform",Y+vu(j,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var O=P.indexOf("hide")!==-1,B=r._id.charAt(0)==="x",X=0,$=B?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var ee=Mr.simpleMap(r.range,r.r2l);X=r.l2p(ee[0])+r._offset,$=r.l2p(ee[1])+r._offset}var Y=Math.min(X,$),q=Math.max(X,$),Q=r.side,oe=1/0,Z=-1/0;h.each(function(re){var H=Ra.select(this),ne=H.select(".text-math-group");if(ne.empty()){var ue=da.bBox(H.node()),ye=0;B?(ue.right>q||ue.leftq||ue.top+(r.tickangle?0:re.fontSize/4)r["_visibleLabelMin_"+ee._id]?H.style("display","none"):q.K==="tick"&&!Y&&H.node().style.display!=="none"&&H.style("display",null)})})})})},_(h,f+1?f:s);function y(){return p.length&&Promise.all(p)}var b=null;function T(){if(_(h,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){b=r.autotickangles[0];var P=0,O=[],B,X=1;h.each(function(J){P=Math.max(P,J.fontSize);var te=r.l2p(J.x),ae=d2(this),ce=da.bBox(ae.node());X=Math.max(X,Jl.lineCount(ae)),O.push({top:0,bottom:10,height:10,left:te-ce.width/2,right:te+ce.width/2+2,width:ce.width+2})});var $=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ee=l.length,Y=Math.abs((l[ee-1].x-l[0].x)*r._m)/(ee-1),q=$?Y/2:Y,Q=$?r.ticklen:P*1.25*X,oe=Math.sqrt(Math.pow(q,2)+Math.pow(Q,2)),Z=q/oe,se=r.autotickangles.map(function(J){return J*Math.PI/180}),j=se.find(function(J){return Math.abs(Math.cos(J))<=Z});j===void 0&&(j=se.reduce(function(J,te){return Math.abs(Math.cos(J))I*N&&(D=N,c[g]=A[g]=E[g])}var F=Math.abs(D-d);F-M>0?(F-=M,M*=1+M/F):M=0,r._id.charAt(0)!=="y"&&(M=-M),c[w]=S.p2r(S.r2p(A[w])+v*M),S.autorange==="min"||S.autorange==="max reversed"?(c[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(c[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=c}var L=Mr.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function HX(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,av);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(Vf.stroke,r.dividercolor).style("stroke-width",da.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}rr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function kM(e){var r=e.title.font.size,t=(e.title.text.match(Jl.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Ql+t*Yf):t?r*(t+1)*Yf:r}function VX(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(Jl.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Ql:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(Uf+l*Yf));else{var u=Xf(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=rr.getPxPosition(e,r),h,p,_;a==="x"?(p=r._offset+r._length/2,_=r.side==="top"?f-i:f+i):(_=r._offset+r._length/2,p=r.side==="right"?f+i:f-i,h={rotate:"-90",offset:0});var y;if(r.type!=="multicategory"){var b=r._selections[r._id+"tick"];if(y={selection:b,side:r.side},b&&b.node()&&b.node().parentNode){var T=da.getTranslate(b.node().parentNode);y.offsetLeft=T.x,y.offsetTop=T.y}r.title.hasOwnProperty("standoff")&&(y.pad=0)}return r._titleStandoff=i,sX.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:y,transform:h,attributes:{x:p,y:_,"text-anchor":"middle"}})}rr.shouldShowZeroLine=function(e,r,t){var n=Mr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===tv)&&(IM(r,0)||!GX(e,r,t,n)||YX(e,r))};rr.clipEnds=function(e,r){return r.filter(function(t){return IM(e,t.x)})};function IM(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=dX:/%L/.test(r)?e>=vX:/%[SX]/.test(r)?e>=ev:/%M/.test(r)?e>=Gf:/%[HI]/.test(r)?e>=Ni:/%p/.test(r)?e>=Jo:/%[Aadejuwx]/.test(r)?e>=Un:/%[UVW]/.test(r)?e>=pa:/%[Bbm]/.test(r)?e>=jh:/%[q]/.test(r)?e>=$h:/%[Yy]/.test(r)?e>=Qh:!0}});var BM=be((che,OM)=>{"use strict";OM.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var _2=be((hhe,UM)=>{"use strict";var QX=BM();UM.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),h;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,h=!0),h||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(QX(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var VM=be((vhe,HM)=>{var $X={left:0,top:0};HM.exports=jX;function jX(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=eZ(r);return t[0]=n-o.left,t[1]=a-o.top,t}function eZ(e){return e===window||e===document||e===document.body?$X:e.getBoundingClientRect()}});var ov=be((dhe,GM)=>{"use strict";var rZ=Qp();function tZ(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}GM.exports=rZ&&tZ()});var WM=be((phe,YM)=>{"use strict";YM.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var JM=be((ghe,ZM)=>{"use strict";var XM=er(),nZ=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ZM.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=XM.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=XM.constrain(Math.floor(t*3),0,2),nZ[t][r]}});var QM=be((yhe,KM)=>{"use strict";var aZ=Lf(),iZ=lh(),oZ=wf().getGraphDiv,lZ=mf(),w2=KM.exports={};w2.wrapped=function(e,r,t){e=oZ(e),e._fullLayout&&iZ.clear(e._fullLayout._uid+lZ.HOVERID),w2.raw(e,r,t)};w2.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&aZ.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var oi=be((mhe,rT)=>{"use strict";var sZ=VM(),M2=jp(),uZ=ov(),fZ=er().removeElement,cZ=un(),$l=rT.exports={};$l.align=WM();$l.getCursor=JM();var jM=QM();$l.unhover=jM.wrapped;$l.unhoverRaw=jM.raw;$l.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,h,p,_;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=T,uZ?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=T,o.addEventListener("touchstart",T,{passive:!1})):o.ontouchstart=T;function y(S,x,M){return Math.abs(S)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;h.target===p?x=h:(x={target:p,srcElement:p,toElement:p},Object.keys(h).concat(Object.keys(h.__proto__)).forEach(M=>{var v=h[M];!x[M]&&typeof v!="function"&&(x[M]=v)})),r.clickFn&&r.clickFn(n,x),_||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function eT(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}$l.coverSlip=eT;function $M(e){return sZ(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ko=be((xhe,tT)=>{"use strict";tT.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var iT=be((bhe,aT)=>{"use strict";var T2=Ko(),Zf="data-savedcursor",nT="!!";aT.exports=function(r,t){var n=r.attr(Zf);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o{"use strict";var A2=Sn(),hZ=Si();oT.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:hZ.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:A2({editType:"legend"}),grouptitlefont:A2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:A2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Kf=be(Jf=>{"use strict";Jf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Jf.isVertical=function(r){return r.orientation!=="h"};Jf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Jf.getId=function(r){return r._id||"legend"}});var C2=be((Mhe,lT)=>{"use strict";var lv=Tr(),ga=er(),vZ=yt(),dZ=Cn(),pZ=k2(),gZ=Ys(),S2=Kf();function yZ(e,r,t,n,a){var o=r[e]||{},i=vZ.newContainer(t,e);function l(P,O){return ga.coerce(o,i,pZ,P,O)}var u=ga.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(!s)return;var f,h=function(P,O){var B=f._input,X=f;return ga.coerce(B,X,dZ,P,O)},p=t.font||{},_=ga.coerceFont(l,"grouptitlefont",p,{overrideDflt:{size:Math.round(p.size*1.1)}}),y=0,b=!1,T="normal",m=(t.shapes||[]).filter(function(P){return P.showlegend});function k(P){return lv.traceIs(P,"pie-like")&&P._length!=null&&(Array.isArray(P.legend)||Array.isArray(P.showlegend))}n.filter(k).forEach(function(P){P.visible&&y++;for(var O=0;OP.legend.length)for(var X=P.legend.length;X(e==="legend"?1:0));if(v===!1&&(t[e]=void 0),!(v===!1&&!o.uirevision)&&(l("uirevision",t.uirevision),v!==!1)){l("borderwidth");var w=l("orientation"),g=l("yref"),c=l("xref"),A=w==="h",d=g==="paper",D=c==="paper",E,R,N,I="left";A?(E=0,lv.getComponentMethod("rangeslider","isVisible")(r.xaxis)?d?(R=1.1,N="bottom"):(R=1,N="top"):d?(R=-.1,N="top"):(R=0,N="bottom")):(R=1,N="auto",D?E=1.02:(E=1,I="right")),ga.coerce(o,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:E}},"x"),ga.coerce(o,i,{y:{valType:"number",editType:"legend",min:d?-2:0,max:d?3:1,dflt:R}},"y"),l("traceorder",T),S2.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",I),l("yanchor",N),l("maxheight"),l("valign"),ga.noneOrAll(o,i,["x","y"]);var F=l("title.text");if(F){l("title.side",A?"left":"top");var L=ga.extendFlat({},u,{size:ga.bigFont(u.size)});ga.coerceFont(l,"title.font",L);let P=a>1;l("titleclick",P?"toggle":!1),l("titledoubleclick",P?"toggleothers":!1)}}}lT.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var Qo=Tr(),E2=er(),mZ=E2.pushUnique,xZ=Kf(),sT=!0;L2.handleItemClick=function(r,t,n,a){var o=t._fullLayout;if(t._dragged||t._editing)return;var i=r.data()[0][0];if(i.groupTitle&&i.noClick)return;var l=n.groupclick;a==="toggle"&&n.itemdoubleclick==="toggleothers"&&sT&&t.data&&t._context.showTips&&(E2.notifier(E2._(t,"Double-click on legend to isolate one trace"),"long",t),sT=!1);var u=l==="togglegroup",s=o.hiddenlabels?o.hiddenlabels.slice():[],f=t._fullData;let h=(o.shapes||[]).filter(Me=>Me.showlegend||Me.legendgroup);var p=f.concat(h),_=i.trace;_._isShape&&(_=_._fullInput);var y=_.legendgroup,b,T,m,k,S,x,M={},v=[],w=[],g=[];function c(Me,ge){var Ee=v.indexOf(Me),Ce=M.visible;return Ce||(Ce=M.visible=[]),v.indexOf(Me)===-1&&(v.push(Me),Ee=v.length-1),Ce[Ee]=ge,Ee}var A=(o.shapes||[]).map(function(Me){return Me._input}),d=!1;function D(Me,ge){A[Me].visible=ge,d=!0}function E(Me,ge){if(!(i.groupTitle&&!u)){var Ee=Me._fullInput||Me,Ce=Ee._isShape,Fe=Ee.index;Fe===void 0&&(Fe=Ee._index);var ie=Ee.visible===!1?!1:ge;Ce?D(Fe,ie):c(Fe,ie)}}var R=_.legend,N=_._fullInput,I=N&&N._isShape;if(!I&&Qo.traceIs(_,"pie-like")){var F=i.label,L=s.indexOf(F);if(a==="toggle")L===-1?s.push(F):s.splice(L,1);else if(a==="toggleothers"){var P=L!==-1,O=[];for(b=0;bm.showlegend||m.legendgroup),u=o.concat(l);function s(m){return(m.legend||"legend")===i}var f,h;if(n==="toggle")f=!u.some(function(k){return s(k)&&k.visible===!0}),h=!1;else{let m=u.some(function(k){return!s(k)&&k.visible===!0&&k.showlegend!==!1});f=!0,h=!m}let p={visible:[]},_=[],y=(a.shapes||[]).map(function(m){return m._input});for(var b=!1,T=0;T{"use strict";uT.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var hT=be((khe,cT)=>{"use strict";var{isArrayOrTypedArray:P2}=Zn(),fT=Tr(),F2=Kf();cT.exports=function(r,t,n){var a=t._inHover,o=F2.isGrouped(t),i=F2.isReversed(t),l={},u=[],s=!1,f={},h=0,p=0,_,y;function b(O,B,X){if(t.visible!==!1&&!(n&&O!==t._id))if(B===""||!F2.isGrouped(t)){var $="~~i"+h;u.push($),l[$]=[X],h++}else u.indexOf(B)===-1?(u.push(B),s=!0,l[B]=[X]):l[B].push(X)}for(_=0;_E&&(d=E)}c[_][0]._groupMinRank=d,c[_][0]._preGroupSort=_}var R=function(O,B){return O[0]._groupMinRank-B[0]._groupMinRank||O[0]._preGroupSort-B[0]._preGroupSort},N=function(O,B){var X=P2(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank,$=P2(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank;return X-$||O._preSort-B._preSort};for(c.forEach(function(O,B){O[0]._preGroupSort=B}),c.sort(R),_=0;_{"use strict";var sv=er();function vT(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}jl.formatPiePercent=function(r,t){var n=vT((r*100).toPrecision(3));return sv.numSeparate(n,t)+"%"};jl.formatPieValue=function(r,t){var n=vT(r.toPrecision(10));return sv.numSeparate(n,t)};jl.getFirstFilled=function(r,t){if(sv.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var bZ=mt(),_Z=Gr();dT.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?bZ.pointStyle(r,n,a,t):_Z.fill(r,t.color)}});var xT=be((Ehe,mT)=>{"use strict";var gT=Gr(),yT=I2().castOption,wZ=pT();mT.exports=function(r,t,n,a){var o=n.marker.line,i=yT(o.color,t.pts)||gT.defaultLine,l=yT(o.width,t.pts)||0;r.call(wZ,t,n,a).style("stroke-width",l).call(gT.stroke,i)}});var O2=be((Lhe,AT)=>{"use strict";var Hn=tt(),N2=Tr(),Dn=er(),bT=Dn.strTranslate,ya=mt(),Pa=Gr(),z2=Ei().extractOpts,uv=sa(),MZ=xT(),TZ=I2().castOption,AZ=R2(),_T=12,wT=5,es=2,kZ=10,gu=5;AT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+AZ.itemGap*2)/2,u=bT(l,0),s=function(w,g,c,A){var d;if(w+1)d=w;else if(g&&g.width>0)d=g.width;else return 0;return o?A:Math.min(d,c)};r.each(function(w){var g=Hn.select(this),c=Dn.ensureSingle(g,"g","layers");c.style("opacity",w[0].trace.opacity);var A=n.indentation,d=n.valign,D=w[0].lineHeight,E=w[0].height;if(d==="middle"&&A===0||!D||!E)c.attr("transform",null);else{var R={top:1,bottom:-1}[d],N=R*(.5*(D-E+3))||0,I=n.indentation;c.attr("transform",bT(I,N))}var F=c.selectAll("g.legendfill").data([w]);F.enter().append("g").classed("legendfill",!0);var L=c.selectAll("g.legendlines").data([w]);L.enter().append("g").classed("legendlines",!0);var P=c.selectAll("g.legendsymbols").data([w]);P.enter().append("g").classed("legendsymbols",!0),P.selectAll("g.legendpoints").data([w]).enter().append("g").classed("legendpoints",!0)}).each(v).each(p).each(y).each(_).each(T).each(x).each(S).each(f).each(h).each(m).each(k);function f(w){var g=MT(w),c=g.showFill,A=g.showLine,d=g.showGradientLine,D=g.showGradientFill,E=g.anyFill,R=g.anyLine,N=w[0],I=N.trace,F,L,P=z2(I),O=P.colorscale,B=P.reversescale,X=function(Z){if(Z.size())if(c)ya.fillGroupStyle(Z,t,!0);else{var se="legendfill-"+I.uid;ya.gradient(Z,t,se,q2(B),O,"fill")}},$=function(Z){if(Z.size()){var se="legendline-"+I.uid;ya.lineGroupStyle(Z),ya.gradient(Z,t,se,q2(B),O,"stroke")}},ee=uv.hasMarkers(I)||!E?"M5,0":R?"M5,-2":"M5,-3",Y=Hn.select(this),q=Y.select(".legendfill").selectAll("path").data(c||D?[w]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",ee+"h"+i+"v6h-"+i+"z").call(X),A||d){var Q=s(void 0,I.line,kZ,wT);L=Dn.minExtend(I,{line:{width:Q}}),F=[Dn.minExtend(N,{trace:L})]}var oe=Y.select(".legendlines").selectAll("path").data(A||d?[F]:[]);oe.enter().append("path").classed("js-line",!0),oe.exit().remove(),oe.attr("d",ee+(d?"l"+i+",0.0001":"h"+i)).call(A?ya.lineGroupStyle:$)}function h(w){var g=MT(w),c=g.anyFill,A=g.anyLine,d=g.showLine,D=g.showMarker,E=w[0],R=E.trace,N=!D&&!A&&!c&&uv.hasText(R),I,F;function L(q,Q,oe,Z){var se=Dn.nestedProperty(R,q).get(),j=Dn.isArrayOrTypedArray(se)&&Q?Q(se):se;if(o&&j&&Z!==void 0&&(j=Z),oe){if(joe[1])return oe[1]}return j}function P(q){return E._distinct&&E.index&&q[E.index]?q[E.index]:q[0]}if(D||N||d){var O={},B={};if(D){O.mc=L("marker.color",P),O.mx=L("marker.symbol",P),O.mo=L("marker.opacity",Dn.mean,[.2,1]),O.mlc=L("marker.line.color",P),O.mlw=L("marker.line.width",Dn.mean,[0,5],es),O.mld=R._isShape?"solid":L("marker.line.dash",P),B.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var X=L("marker.size",Dn.mean,[2,16],_T);O.ms=X,B.marker.size=X}d&&(B.line={width:L("line.width",P,[0,10],wT)}),N&&(O.tx="Aa",O.tp=L("textposition",P),O.ts=10,O.tc=L("textfont.color",P),O.tf=L("textfont.family",P),O.tw=L("textfont.weight",P),O.ty=L("textfont.style",P),O.tv=L("textfont.variant",P),O.tC=L("textfont.textcase",P),O.tE=L("textfont.lineposition",P),O.tS=L("textfont.shadow",P)),I=[Dn.minExtend(E,O)],F=Dn.minExtend(R,B),F.selectedpoints=null,F.texttemplate=null}var $=Hn.select(this).select("g.legendpoints"),ee=$.selectAll("path.scatterpts").data(D?I:[]);ee.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),ee.exit().remove(),ee.call(ya.pointStyle,F,t),D&&(I[0].mrc=3);var Y=$.selectAll("g.pointtext").data(N?I:[]);Y.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Y.exit().remove(),Y.selectAll("text").call(ya.textPointStyle,F,t)}function p(w){var g=w[0].trace,c=g.type==="waterfall";if(w[0]._distinct&&c){var A=w[0].trace[w[0].dir].marker;return w[0].mc=A.color,w[0].mlw=A.line.width,w[0].mlc=A.line.color,b(w,this,"waterfall")}var d=[];g.visible&&c&&(d=w[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var D=Hn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(d);D.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E){var R=Hn.select(this),N=g[E[0]].marker,I=s(void 0,N.line,gu,es);R.attr("d",E[1]).style("stroke-width",I+"px").call(Pa.fill,N.color),I&&R.call(Pa.stroke,N.line.color)})}function _(w){b(w,this)}function y(w){b(w,this,"funnel")}function b(w,g,c){var A=w[0].trace,d=A.marker||{},D=d.line||{},E=d.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",R=c?A.visible&&A.type===c:N2.traceIs(A,"bar"),N=Hn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(R?[w]:[]);N.enter().append("path").classed("legend"+c,!0).attr("d",E).attr("transform",u),N.exit().remove(),N.each(function(I){var F=Hn.select(this),L=I[0],P=s(L.mlw,d.line,gu,es);F.style("stroke-width",P+"px");var O=L.mcc;if(!n._inHover&&"mc"in L){var B=z2(d),X=B.mid;X===void 0&&(X=(B.max+B.min)/2),O=ya.tryColorscale(d,"")(X)}var $=O||L.mc||d.color,ee=d.pattern,Y=ya.getPatternAttr,q=ee&&(Y(ee.shape,0,"")||Y(ee.path,0,""));if(q){var Q=Y(ee.bgcolor,0,null),oe=Y(ee.fgcolor,0,null),Z=ee.fgopacity,se=TT(ee.size,8,10),j=TT(ee.solidity,.5,1),V="legend-"+A.uid;F.call(ya.pattern,"legend",t,V,q,se,j,O,ee.fillmode,Q,oe,Z)}else F.call(Pa.fill,$);P&&Pa.stroke(F,L.mlc||D.color)})}function T(w){var g=w[0].trace,c=Hn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(g.visible&&N2.traceIs(g,"box-violin")?[w]:[]);c.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),c.exit().remove(),c.each(function(){var A=Hn.select(this);if((g.boxpoints==="all"||g.points==="all")&&Pa.opacity(g.fillcolor)===0&&Pa.opacity((g.line||{}).color)===0){var d=Dn.minExtend(g,{marker:{size:o?_T:Dn.constrain(g.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});c.call(ya.pointStyle,d,t)}else{var D=s(void 0,g.line,gu,es);A.style("stroke-width",D+"px").call(Pa.fill,g.fillcolor),D&&Pa.stroke(A,g.line.color)}})}function m(w){var g=w[0].trace,c=Hn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(g.visible&&g.type==="candlestick"?[w,w]:[]);c.enter().append("path").classed("legendcandle",!0).attr("d",function(A,d){return d?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,d){var D=Hn.select(this),E=g[d?"increasing":"decreasing"],R=s(void 0,E.line,gu,es);D.style("stroke-width",R+"px").call(Pa.fill,E.fillcolor),R&&Pa.stroke(D,E.line.color)})}function k(w){var g=w[0].trace,c=Hn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(g.visible&&g.type==="ohlc"?[w,w]:[]);c.enter().append("path").classed("legendohlc",!0).attr("d",function(A,d){return d?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,d){var D=Hn.select(this),E=g[d?"increasing":"decreasing"],R=s(void 0,E.line,gu,es);D.style("fill","none").call(ya.dashLine,E.line.dash,R),R&&Pa.stroke(D,E.line.color)})}function S(w){M(w,this,"pie")}function x(w){M(w,this,"funnelarea")}function M(w,g,c){var A=w[0],d=A.trace,D=c?d.visible&&d.type===c:N2.traceIs(d,c),E=Hn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(D?[w]:[]);if(E.enter().append("path").classed("legend"+c,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.size()){var R=d.marker||{},N=s(TZ(R.line.width,A.pts),R.line,gu,es),I="pieLike",F=Dn.minExtend(d,{marker:{line:{width:N}}},I),L=Dn.minExtend(A,{trace:F},I);MZ(E,L,F,t)}}function v(w){var g=w[0].trace,c,A=[];if(g.visible)switch(g.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],c=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":A=[["M-6,-6V6H6V-6Z"]],c=!0;break;case"densitymapbox":case"densitymap":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],c="radial";break;case"cone":A=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],c=!1;break;case"streamtube":A=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],c=!1;break;case"surface":A=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],c=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],c=!1;break}var d=Hn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);d.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),d.exit().remove(),d.each(function(D,E){var R=Hn.select(this),N=z2(g),I=N.colorscale,F=N.reversescale,L=function(X){if(X.size()){var $="legendfill-"+g.uid;ya.gradient(X,t,$,q2(F,c==="radial"),I,"fill")}},P;if(I){if(!c){var B=I.length;P=E===0?I[F?B-1:0][1]:E===1?I[F?0:B-1][1]:I[Math.floor((B-1)/2)][1]}}else{var O=g.vertexcolor||g.facecolor||g.color;P=Dn.isArrayOrTypedArray(O)?O[E]||O[0]:O}R.attr("d",D[0]),P?R.call(Pa.fill,P):R.call(L)})}};function q2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function MT(e){var r=e[0].trace,t=r.contours,n=uv.hasLines(r),a=uv.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function TT(e,r,t){return e&&Dn.isArrayOrTypedArray(e)?r:e>t?t:e}});var V2=be((Dhe,FT)=>{"use strict";var Jn=tt(),Yt=er(),U2=fn(),rs=Tr(),hv=Lf(),B2=oi(),Wt=mt(),Qf=Gr(),ts=Bn(),kT=D2().handleItemClick,ST=D2().handleTitleClick,$t=R2(),H2=En(),RT=H2.LINE_SPACING,mu=H2.FROM_TL,CT=H2.FROM_BR,ET=hT(),SZ=O2(),xu=Kf(),yu=1,CZ=/^legend[0-9]*$/;FT.exports=function(r,t){if(t)LT(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=Jn.select(this),f=s.attr("class"),h=f.split(" ")[0];h.match(CZ)&&a.indexOf(h)===-1&&s.remove()});for(var i=0;i1)}var y=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),U2.autoMargin(e,a);var b=Yt.ensureSingle(i,"g",a,function(g){l||g.attr("pointer-events","all")}),T=Yt.ensureSingleById(n._topdefs,"clipPath",o,function(g){g.append("rect")}),m=Yt.ensureSingle(b,"rect","bg",function(g){g.attr("shape-rendering","crispEdges")});m.call(Qf.stroke,t.bordercolor).call(Qf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=Yt.ensureSingle(b,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var x;S.text?(x=Yt.ensureSingle(k,"text",a+"titletext"),x.attr("text-anchor","start").call(Wt.font,S.font).text(S.text),cv(x,k,e,t,yu),!l&&(t.titleclick||t.titledoubleclick)&&RZ(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var M=Yt.ensureSingle(b,"rect","scrollbar",function(g){g.attr($t.scrollBarEnterAttrs).call(Qf.fill,$t.scrollBarColor)}),v=k.selectAll("g.groups").data(u);v.enter().append("g").attr("class","groups"),v.exit().remove();var w=v.selectAll("g.traces").data(Yt.identity);w.enter().append("g").attr("class","traces"),w.exit().remove(),w.style("opacity",function(g){let c=g[0],A=c.trace;if(c.groupTitle){let d=A.legendgroup,D=(n.shapes||[]).filter(function(R){return R.showlegend});return e._fullData.concat(D).some(function(R){return R.legendgroup===d&&(R.legend||"legend")===a&&R.visible===!0})?1:.5}return rs.traceIs(A,"pie-like")?y.indexOf(g[0].label)!==-1?.5:1:A.visible==="legendonly"?.5:1}).each(function(){Jn.select(this).call(LZ,e,t)}).call(SZ,e,t).each(function(g){l||g[0].groupTitle&&t.groupclick==="toggleitem"||Jn.select(this).call(DZ,e,a)}),Yt.syncOrAsync([U2.previousPromises,function(){return IZ(e,v,w,t,k)},function(){var g=n._size,c=t.borderwidth,A=t.xref==="paper",d=t.yref==="paper";if(S.text){let ne=(n.shapes||[]).filter(function(ye){return ye.showlegend}),ue=e._fullData.concat(ne).some(function(ye){let ke=ye.legend||"legend";var Me=Array.isArray(ke)?ke.includes(a):ke===a;return Me&&ye.visible===!0});x.style("opacity",ue?1:.5)}if(!l){var D,E;A?D=g.l+g.w*t.x-mu[vv(t)]*t._width:D=n.width*t.x-mu[vv(t)]*t._width,d?E=g.t+g.h*(1-t.y)-mu[dv(t)]*t._effHeight:E=n.height*(1-t.y)-mu[dv(t)]*t._effHeight;var R=NZ(e,a,D,E);if(R)return;if(n.margin.autoexpand){var N=D,I=E;D=A?Yt.constrain(D,0,n.width-t._width):N,E=d?Yt.constrain(E,0,n.height-t._effHeight):I,D!==N&&Yt.log("Constrain "+a+".x to make legend fit inside graph"),E!==I&&Yt.log("Constrain "+a+".y to make legend fit inside graph")}Wt.setTranslate(b,D,E)}if(M.on(".drag",null),b.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var F=t._effHeight;l&&(F=t._height),m.attr({width:t._width-c,height:F-c,x:c/2,y:c/2}),Wt.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*c,height:F-2*c,x:c,y:c}),Wt.setClipUrl(k,o,e),Wt.setRect(M,0,0,0,0),delete t._scrollY}else{var L=Math.max($t.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*$t.scrollBarMargin,O=t._height-t._effHeight,B=P/O,X=Math.min(t._scrollY||0,O);m.attr({width:t._width-2*c+$t.scrollBarWidth+$t.scrollBarMargin,height:t._effHeight-c,x:c/2,y:c/2}),T.select("rect").attr({width:t._width-2*c+$t.scrollBarWidth+$t.scrollBarMargin,height:t._effHeight-2*c,x:c,y:c+X}),Wt.setClipUrl(k,o,e),se(X,L,B),b.on("wheel",function(){X=Yt.constrain(t._scrollY+Jn.event.deltaY/O*P,0,O),se(X,L,B),X!==0&&X!==O&&Jn.event.preventDefault()});var $,ee,Y,q=function(ne,ue,ye){var ke=(ye-ue)/B+ne;return Yt.constrain(ke,0,O)},Q=function(ne,ue,ye){var ke=(ue-ye)/B+ne;return Yt.constrain(ke,0,O)},oe=Jn.behavior.drag().on("dragstart",function(){var ne=Jn.event.sourceEvent;ne.type==="touchstart"?$=ne.changedTouches[0].clientY:$=ne.clientY,Y=X}).on("drag",function(){var ne=Jn.event.sourceEvent;ne.buttons===2||ne.ctrlKey||(ne.type==="touchmove"?ee=ne.changedTouches[0].clientY:ee=ne.clientY,X=q(Y,$,ee),se(X,L,B))});M.call(oe);var Z=Jn.behavior.drag().on("dragstart",function(){var ne=Jn.event.sourceEvent;ne.type==="touchstart"&&($=ne.changedTouches[0].clientY,Y=X)}).on("drag",function(){var ne=Jn.event.sourceEvent;ne.type==="touchmove"&&(ee=ne.changedTouches[0].clientY,X=Q(Y,$,ee),se(X,L,B))});k.call(Z)}function se(ne,ue,ye){t._scrollY=e._fullLayout[a]._scrollY=ne,Wt.setTranslate(k,0,-ne),Wt.setRect(M,t._width,$t.scrollBarMargin+ne*ye,$t.scrollBarWidth,ue),T.select("rect").attr("y",c+ne)}if(e._context.edits.legendPosition){var j,V,re,H;b.classed("cursor-move",!0),B2.init({element:b.node(),gd:e,prepFn:function(ne){if(ne.target!==M.node()){var ue=Wt.getTranslate(b);re=ue.x,H=ue.y}},moveFn:function(ne,ue){if(re!==void 0&&H!==void 0){var ye=re+ne,ke=H+ue;Wt.setTranslate(b,ye,ke),j=B2.align(ye,t._width,g.l,g.l+g.w,t.xanchor),V=B2.align(ke+t._height,-t._height,g.t+g.h,g.t,t.yanchor)}},doneFn:function(){if(j!==void 0&&V!==void 0){var ne={};ne[a+".x"]=j,ne[a+".y"]=V,rs.call("_guiRelayout",e,ne)}},clickFn:function(ne,ue){var ye=i.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return ue.clientX>=ke.left&&ue.clientX<=ke.right&&ue.clientY>=ke.top&&ue.clientY<=ke.bottom});ye.size()>0&&PT(e,t,ye,ne,ue)}})}}],e)}}function fv(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function PT(e,r,t,n,a){var o=e._fullLayout,i=t.data()[0][0].trace,l=r.itemclick,u=r.itemdoubleclick,s={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:o};i._group&&(s.group=i._group),rs.traceIs(i,"pie-like")&&(s.label=t.datum()[0].label);var f=hv.triggerHandler(e,"plotly_legendclick",s);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&kT(t,e,r,l)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var h=hv.triggerHandler(e,"plotly_legenddoubleclick",s);h!==!1&&f!==!1&&u&&kT(t,e,r,u)}}function LZ(e,r,t){var n=xu.getId(t),a=e.data()[0][0],o=a.trace,i=rs.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=Yt.templateString(s,o._meta))));var h=Yt.ensureSingle(e,"text",n+"text");h.attr("text-anchor","start").call(Wt.font,f).text(l?DT(s,u):s);var p=t.indentation+t.itemwidth+$t.itemGap*2;ts.positionText(h,p,0),l?h.call(ts.makeEditable,{gd:r,text:s}).call(cv,e,r,t).on("edit",function(_){this.text(DT(_,u)).call(cv,e,r,t);var y=a.trace._fullInput||{},b={};return b.name=_,y._isShape?rs.call("_guiRelayout",r,"shapes["+o.index+"].name",b.name):rs.call("_guiRestyle",r,b,o.index)}):cv(h,e,r,t)}function DT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function DZ(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=Yt.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Qf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(o=Math.max(o-1,1)),PT(r,l,e,o,Jn.event)}}))}function RZ(e,r,t,n){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&rs.traceIs(s,"pie-like")}))return;let o=r._context.doubleClickDelay;var i,l=1;let u=Yt.ensureSingle(e,"rect",n+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(Qf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(u.on("mousedown",function(){i=new Date().getTime(),i-r._legendMouseDownTimeo&&(l=Math.max(l-1,1));let s={event:Jn.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(hv.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&ST(r,t,t.titleclick)},o)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,hv.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&ST(r,t,t.titledoubleclick))}))}function cv(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),ts.convertToTspans(e,t,function(){PZ(r,t,n,a)})}function PZ(e,r,t,n){var a=e.data()[0][0],o=a&&a.trace.showlegend;if(Array.isArray(o)&&(o=o[a.i]!==!1),!t._inHover&&a&&!o){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),u=xu.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===yu?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var h=f.size*RT,p,_;if(l){var y=Wt.bBox(l);p=y.height,_=y.width,n===yu?Wt.setTranslate(i,s,s+p*.75):Wt.setTranslate(i,0,p*.25)}else{var b="."+u+(n===yu?"title":"")+"text",T=e.select(b),m=ts.lineCount(T),k=T.node();if(p=h*m,_=k?Wt.bBox(k).width:0,n===yu)t.title.side==="left"&&(_+=$t.itemGap*2),ts.positionText(T,s+$t.titlePad,s+h);else{var S=$t.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(S=$t.itemGap,_-=t.indentation+t.itemwidth),ts.positionText(T,S,-h*((m-1)/2-.3))}}n===yu?(t._titleWidth=_,t._titleHeight=p):(a.lineHeight=h,a.height=Math.max(p,16)+3,a.width=_)}function FZ(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function IZ(e,r,t,n,a){var o=e._fullLayout,i=xu.getId(n);n||(n=o[i]);var l=o._size,u=xu.isVertical(n),s=xu.isGrouped(n),f=n.entrywidthmode==="fraction",h=n.borderwidth,p=2*h,_=$t.itemGap,y=n.indentation+n.itemwidth+_*2,b=2*(h+_),T=dv(n),m=n.y<0||n.y===0&&T==="top",k=n.y>1||n.y===1&&T==="bottom",S=n.tracegroupgap,x={};let{orientation:M,yref:v}=n,{maxheight:w}=n,g=m||k||M!=="v"||v!=="paper";w||(w=g?.5:1);let c=g?o.height:l.h;n._maxHeight=Math.max(w>1?w:w*c,30);var A=0;n._width=0,n._height=0;var d=FZ(n);if(u)t.each(function(ne){var ue=ne[0].height;Wt.setTranslate(this,h+d[0],h+d[1]+n._height+ue/2+_),n._height+=ue,n._width=Math.max(n._width,ne[0].width)}),A=y+n._width,n._width+=_+y+p,n._height+=b,s&&(r.each(function(ne,ue){Wt.setTranslate(this,0,ue*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var D=vv(n),E=n.x<0||n.x===0&&D==="right",R=n.x>1||n.x===1&&D==="left",N=k||m,I=o.width/2;n._maxWidth=Math.max(E?N&&D==="left"?l.l+l.w:I:R?N&&D==="right"?l.r+l.w:I:l.w,2*y);var F=0,L=0;t.each(function(ne){var ue=fv(ne,n,y);F=Math.max(F,ue),L+=ue}),A=null;var P=0;if(s){var O=0,B=0,X=0;r.each(function(){var ne=0,ue=0;Jn.select(this).selectAll("g.traces").each(function(ke){var Me=fv(ke,n,y),ge=ke[0].height;Wt.setTranslate(this,d[0],d[1]+h+_+ge/2+ue),ue+=ge,ne=Math.max(ne,Me),x[ke[0].trace.legendgroup]=ne});var ye=ne+_;B>0&&ye+h+B>n._maxWidth?(P=Math.max(P,B),B=0,X+=O+S,O=ue):O=Math.max(O,ue),Wt.setTranslate(this,B,X),B+=ye}),n._width=Math.max(P,B)+h,n._height=X+O+b}else{var $=t.size(),ee=L+p+($-1)*_=n._maxWidth&&(P=Math.max(P,oe),q=0,Q+=Y,n._height+=Y,Y=0),Wt.setTranslate(this,d[0]+h+q,d[1]+h+Q+ue/2+_),oe=q+ye+_,q+=ke,Y=Math.max(Y,ue)}),ee?(n._width=q+p,n._height=Y+b):(n._width=Math.max(P,oe)+p,n._height+=Y+b)}}n._width=Math.ceil(Math.max(n._width+d[0],n._titleWidth+2*(h+$t.titlePad))),n._height=Math.ceil(Math.max(n._height+d[1],n._titleHeight+2*(h+$t.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Z=e._context.edits,se=Z.legendText||Z.legendPosition;t.each(function(ne){var ue=Jn.select(this).select("."+i+"toggle"),ye=ne[0].height,ke=ne[0].trace.legendgroup,Me=fv(ne,n,y);s&&ke!==""&&(Me=x[ke]);var ge=se?y:A||Me;!u&&!f&&(ge+=_/2),Wt.setRect(ue,0,-ye/2,ge,ye)});var j=a.select("."+i+"titletext");j.node()&&EZ(j,n,h);var V=a.select("."+i+"titletoggle");if(V.size()&&j.node()){var re=j.attr("x")||0,H=$t.titlePad;Wt.setRect(V,re-H,h,n._titleWidth+2*H,n._titleHeight+2*H)}}function NZ(e,r,t,n){var a=e._fullLayout,o=a[r],i=vv(o),l=dv(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",h=o.x<.5?"l":"r",p={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return U2.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*mu[i],r:o._width*CT[i],b:o._effHeight*CT[l],t:o._effHeight*mu[l]});u?e._fullLayout._reservedMargin[r][f]=p[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][h]=p[h]:e._fullLayout._reservedMargin[r][f]=p[f]}function vv(e){return Yt.isRightAnchor(e)?"right":Yt.isCenterAnchor(e)?"center":"left"}function dv(e){return Yt.isBottomAnchor(e)?"bottom":Yt.isMiddleAnchor(e)?"middle":"top"}});var X2=be(W2=>{"use strict";var ns=tt(),co=nt(),IT=Sa(),Nt=er(),zZ=Nt.pushUnique,G2=Nt.strTranslate,qZ=Nt.strRotate,OZ=Lf(),Fa=Bn(),BZ=iT(),qi=mt(),hn=Gr(),pv=oi(),Oi=Lt(),UZ=un().zindexSeparator,_u=Tr(),li=fo(),as=mf(),HZ=C2(),VZ=V2(),VT=as.YANGLE,Y2=Math.PI*VT/180,GZ=1/Math.sin(Y2),YZ=Math.cos(Y2),WZ=Math.sin(Y2),Ct=as.HOVERARROWSIZE,Jr=as.HOVERTEXTPAD,NT={box:!0,ohlc:!0,violin:!0,candlestick:!0},XZ={scatter:!0,scattergl:!0,splom:!0};function zT(e,r){return e.distance-r.distance}W2.hover=function(r,t,n,a){r=Nt.getGraphDiv(r);var o=t.target;Nt.throttle(r._fullLayout._uid+as.HOVERID,as.HOVERMINTIME,function(){ZZ(r,t,n,a,o)})};W2.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=ZT(a),i=JT(a),l=r.map(function(T){var m=T._x0||T.x0||T.x||0,k=T._x1||T.x1||T.x||0,S=T._y0||T.y0||T.y||0,x=T._y1||T.y1||T.y||0,M=T.eventData;if(M){var v=Math.min(m,k),w=Math.max(m,k),g=Math.min(S,x),c=Math.max(S,x),A=T.trace;if(_u.traceIs(A,"gl3d")){var d=a._fullLayout[A.scene]._scene.container,D=d.offsetLeft,E=d.offsetTop;v+=D,w+=D,g+=E,c+=E}M.bbox={x0:v+i,x1:w+i,y0:g+o,y1:c+o},M.xPixel=(m+k)/2,M.yPixel=(S+x)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:T.color||hn.defaultLine,x0:T.x0||T.x||0,x1:T.x1||T.x||0,y0:T.y0||T.y||0,y1:T.y1||T.y||0,xLabel:T.xLabel,yLabel:T.yLabel,zLabel:T.zLabel,text:T.text,name:T.name,idealAlign:T.idealAlign,borderColor:T.borderColor,fontFamily:T.fontFamily,fontSize:T.fontSize,fontColor:T.fontColor,fontWeight:T.fontWeight,fontStyle:T.fontStyle,fontVariant:T.fontVariant,nameLength:T.nameLength,textAlign:T.textAlign,trace:T.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:T.hovertemplate||!1,hovertemplateLabels:T.hovertemplateLabels||!1,eventData:M}}),u=!1,s=YT(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||hn.background,container:ns.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,h=5,p=0,_=0;f.sort(function(T,m){return T.y0-m.y0}).each(function(T,m){var k=T.y0-T.by/2;k-hw[0]._length||H<0||H>g[0]._length)return pv.unhoverRaw(e,r)}if(r.pointerX=re+w[0]._offset,r.pointerY=H+g[0]._offset,"xval"in r?I=li.flat(o,r.xval):I=li.p2c(w,re),"yval"in r?F=li.flat(o,r.yval):F=li.p2c(g,H),!co(I[0])||!co(F[0]))return Nt.warn("Fx.hover failed",r,e),pv.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=I,e._hoverYVals=F,e._hoverXAxes=w,e._hoverYAxes=g);var ye=1/0;function ke(nr,Pr){for(P=0;Poe&&(R.splice(0,oe),ye=R[0].distance),h&&E!==0&&R.length===0){Q.distance=E,Q.index=!1;var it=B._module.hoverPoints(Q,Y,q,"closest",{hoverLayer:l._hoverlayer});if(it&&(it=it.filter(function(Tt){return Tt.spikeDistance<=E})),it&&it.length){var jt,Jt=it.filter(function(Tt){return Tt.xa.showspikes&&Tt.xa.spikesnap!=="hovered data"});if(Jt.length){var Pt=Jt[0];co(Pt.x0)&&co(Pt.y0)&&(jt=ge(Pt),(!Z.vLinePoint||Z.vLinePoint.spikeDistance>jt.spikeDistance)&&(Z.vLinePoint=jt))}var vt=it.filter(function(Tt){return Tt.ya.showspikes&&Tt.ya.spikesnap!=="hovered data"});if(vt.length){var Mt=vt[0];co(Mt.x0)&&co(Mt.y0)&&(jt=ge(Mt),(!Z.hLinePoint||Z.hLinePoint.spikeDistance>jt.spikeDistance)&&(Z.hLinePoint=jt))}}}}}ke();function Me(nr,Pr,Zr){for(var Er=null,Qr=1/0,Rt,it=0;itnr.trace.index===de.trace.index):R=[de];var _e=R.length,Ae=HT("x",de,l),Ie=HT("y",de,l);ke(Ae,Ie);var De=[],We={},Oe=0,ze=function(nr){var Pr=NT[nr.trace.type]?GT(nr):nr.trace.index;if(!We[Pr])Oe++,We[Pr]=Oe,De.push(nr);else{var Zr=We[Pr]-1,Er=De[Zr];Zr>0&&Math.abs(nr.distance)_e-1;Be--)ze(R[Be]);R=De,ie()}var Se=e._hoverdata,Le=[],Ye=ZT(e),Xe=JT(e);for(let nr of R){var $e=li.makeEventData(nr,nr.trace,nr.cd);if(nr.hovertemplate!==!1){var Qe=!1;nr.cd[nr.index]&&nr.cd[nr.index].ht&&(Qe=nr.cd[nr.index].ht),nr.hovertemplate=Qe||nr.trace.hovertemplate||!1}if(nr.xa&&nr.ya){var je=nr.x0+nr.xa._offset,ir=nr.x1+nr.xa._offset,yr=nr.y0+nr.ya._offset,xr=nr.y1+nr.ya._offset,wr=Math.min(je,ir),$r=Math.max(je,ir),_r=Math.min(yr,xr),Nr=Math.max(yr,xr);$e.bbox={x0:wr+Xe,x1:$r+Xe,y0:_r+Ye,y1:Nr+Ye},$e.xPixel=(je+ir)/2,$e.yPixel=(yr+xr)/2}nr.eventData=[$e],Le.push($e)}e._hoverdata=Le;var rt=p==="y"&&(N.length>1||R.length>1)||p==="closest"&&se&&R.length>1,Sr=hn.combine(l.plot_bgcolor||hn.background,l.paper_bgcolor),qr=YT(R,{gd:e,hovermode:p,rotateLabels:rt,bgColor:Sr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),gt=qr.hoverLabels;if(li.isUnifiedHover(p)||(KZ(gt,rt,l,qr.commonLabelBoundingBox),XT(gt,rt,l._invScaleX,l._invScaleY)),a&&a.tagName){var Hr=_u.getComponentMethod("annotations","hasClickToShow")(e,Le);BZ(ns.select(a),Hr?"pointer":"")}var Xr=jZ(e,r,Se);if(!a||n||!Xr&&!l.hoveranywhere)return;Se&&Xr&&e.emit("plotly_unhover",{event:r,points:Se}),qt(e._hoverdata);function qt(nr){e.emit("plotly_hover",{event:r,points:nr,xaxes:w,yaxes:g,xvals:I,yvals:F})}}function GT(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var JZ=/([\s\S]*)<\/extra>/;function YT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||as.HOVERFONT,h=r.fontSize||as.HOVERFONTSIZE,p=r.fontWeight||n.font.weight,_=r.fontStyle||n.font.style,y=r.fontVariant||n.font.variant,b=r.fontTextcase||n.font.textcase,T=r.fontLineposition||n.font.lineposition,m=r.fontShadow||n.font.shadow,k=e[0],S=k.xa,x=k.ya,M=a.charAt(0),v=M+"Label",w=k[v];if(w===void 0&&S.type==="multicategory")for(var g=0;gn.width-Le&&(Ye=n.width-Le),me.attr("d","M"+(ze-Ye)+",0L"+(ze-Ye+Ct)+","+Se+Ct+"H"+Le+"v"+Se+(Jr*2+Oe.height)+"H"+-Le+"V"+Se+Ct+"H"+(ze-Ye-Ct)+"Z"),ze=Ye,P.minX=ze-Le,P.maxX=ze+Le,S.side==="top"?(P.minY=Be-(Jr*2+Oe.height),P.maxY=Be-Jr):(P.minY=Be+Jr,P.maxY=Be+(Jr*2+Oe.height))}else{var Xe,$e,Qe;x.side==="right"?(Xe="start",$e=1,Qe="",ze=S._offset+S._length):(Xe="end",$e=-1,Qe="-",ze=S._offset),Be=x._offset+(k.y0+k.y1)/2,de.attr("text-anchor",Xe),me.attr("d","M0,0L"+Qe+Ct+","+Ct+"V"+(Jr+Oe.height/2)+"h"+Qe+(Jr*2+Oe.width)+"V-"+(Jr+Oe.height/2)+"H"+Qe+Ct+"V-"+Ct+"Z"),P.minY=Be-(Jr+Oe.height/2),P.maxY=Be+(Jr+Oe.height/2),x.side==="right"?(P.minX=ze+Ct,P.maxX=ze+Ct+(Jr*2+Oe.width)):(P.minX=ze-Ct-(Jr*2+Oe.width),P.maxX=ze-Ct);var je=Oe.height/2,ir=A-Oe.top-je,yr="clip"+n._uid+"commonlabel"+x._id,xr;if(zeme.hoverinfo!=="none");if(xe.length===0)return[];var O=n.hoverlabel,B=O.font,X=xe[0],$=((a==="x unified"?X.xa:X.ya).unifiedhovertitle||{}).text,ee=$?Nt.hovertemplateString({data:a==="x unified"?[{xa:X.xa,x:X.xVal}]:[{ya:X.ya,y:X.yVal}],fallback:X.trace.hovertemplatefallback,locale:n._d3locale,template:$}):w,Y={showlegend:!0,legend:{title:{text:ee,font:B},font:B,bgcolor:O.bgcolor,bordercolor:O.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},q={font:B};HZ(Y,q,t._fullData);var Q=q.legend;Q.entries=[];for(var oe=0;oe=0?ce=ie:J+ue=0?ce=J:te+ue=0?pe=Ce:Fe+ye=0?pe=Fe:ae+ye=0,(xe.idealAlign==="top"||!_r)&&Nr?(Qe-=ir/2,xe.anchor="end"):_r?(Qe+=ir/2,xe.anchor="start"):xe.anchor="middle",xe.crossPos=Qe;else{if(xe.pos=Qe,_r=$e+je/2+$r<=d,Nr=$e-je/2-$r>=0,(xe.idealAlign==="left"||!_r)&&Nr)$e-=je/2,xe.anchor="end";else if(_r)$e+=je/2,xe.anchor="start";else{xe.anchor="middle";var rt=$r/2,Sr=$e+rt-d,qr=$e-rt;Sr>0&&($e-=Sr),qr<0&&($e+=-qr)}xe.crossPos=$e}Be.attr("text-anchor",xe.anchor),Le&&Se.attr("text-anchor",xe.anchor),me.attr("transform",G2($e,Qe)+(o?qZ(VT):""))}),{hoverLabels:ve,commonLabelBoundingBox:P}}function qT(e,r,t,n,a,o){var h,p;var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Nt.templateString(e.name,e.trace._meta)),i=UT(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i),(p=(h=e.trace)==null?void 0:h.hoverlabel)!=null&&p.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let _=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(_[u+"other"]=_[u+"Val"],_[u+"otherLabel"]=_[u+"Label"]),l=Nt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:_,locale:n._d3locale,template:f}),l=l.replace(JZ,(y,b)=>(i=UT(b,e.nameLength),""))}return[l,i]}function KZ(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,h=n.minX,p=n.maxX,_=n.minY,y=n.maxY,b=function(I){return I*t._invScaleX},T=function(I){return I*t._invScaleY};e.each(function(I){var F=I[a],L=I[o],P=F._id.charAt(0)==="x",O=F.range;f===0&&O&&O[0]>O[1]!==P&&(l=-1);var B=0,X=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var $=WT(I,r),ee=I.anchor,Y=ee==="end"?-1:1,q,Q;if(ee==="middle")q=I.crossPos+(P?T($.y-I.by/2):b(I.bx/2+I.tx2width/2)),Q=q+(P?T(I.by):b(I.bx));else if(P)q=I.crossPos+T(Ct+$.y)-T(I.by/2-Ct),Q=q+T(I.by);else{var oe=b(Y*Ct+$.x),Z=oe+b(Y*I.bx);q=I.crossPos+Math.min(oe,Z),Q=I.crossPos+Math.max(oe,Z)}P?_!==void 0&&y!==void 0&&Math.min(Q,y)-Math.max(q,_)>1&&(L.side==="left"?(B=L._mainLinePosition,X=t.width):X=L._mainLinePosition):h!==void 0&&p!==void 0&&Math.min(Q,p)-Math.max(q,h)>1&&(L.side==="top"?(B=L._mainLinePosition,X=t.height):X=L._mainLinePosition)}s[f++]=[{datum:I,traceIndex:I.trace.index,dp:0,pos:I.pos,posref:I.posref,size:I.by*(P?GZ:1)/2,pmin:B,pmax:X}]}),s.sort(function(I,F){return I[0].posref-F[0].posref||l*(F[0].traceIndex-I[0].traceIndex)});var m,k,S,x,M,v,w;function g(I){var F=I[0],L=I[I.length-1];if(k=F.pmin-F.pos-F.dp+F.size,S=L.pos+L.dp+L.size-F.pmax,k>.01){for(M=I.length-1;M>=0;M--)I[M].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(M=I.length-1;M>=0;M--)I[M].dp-=S;m=!1}if(m){var P=0;for(x=0;xF.pmax&&P++;for(x=I.length-1;x>=0&&!(P<=0);x--)v=I[x],v.pos>F.pmax-1&&(v.del=!0,P--);for(x=0;x=0;M--)I[M].dp-=S;for(x=I.length-1;x>=0&&!(P<=0);x--)v=I[x],v.pos+v.dp+v.size>F.pmax&&(v.del=!0,P--)}}}for(;!m&&i<=u;){for(i++,m=!0,x=0;x.01){for(M=A.length-1;M>=0;M--)A[M].dp+=k;for(c.push.apply(c,A),s.splice(x+1,1),w=0,M=c.length-1;M>=0;M--)w+=c[M].dp;for(S=w/c.length,M=c.length-1;M>=0;M--)c[M].dp-=S;m=!1}else x++}s.forEach(g)}for(x=s.length-1;x>=0;x--){var E=s[x];for(M=E.length-1;M>=0;M--){var R=E[M],N=R.datum;N.offset=R.dp,N.del=R.del}}}function WT(e,r){var t=0,n=e.offset;return r&&(n*=-WZ,t=e.offset*YZ),{x:t,y:n}}function QZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ct+Jr),n=t+r*(e.txwidth+Jr),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Jr),{alignShift:r,textShiftX:t,text2ShiftX:n}}function XT(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=ns.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,h=QZ(i),p=WT(i,r),_=p.x,y=p.y,b=s==="middle",T="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,m;b?m="M-"+a(i.bx/2+i.tx2width/2)+","+o(y-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":T?m="M0,0L"+a(f*Ct+_)+","+o(Ct+y)+"v"+o(i.by/2-Ct)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*Ct+_)+"V"+o(y-Ct)+"Z":m="M"+a(f*Ct+_)+","+o(y-i.by/2)+"h"+a(f*i.bx)+"v"+o(i.by)+"h"+a(-f*i.bx)+"Z",l.select("path").attr("d",m);var k=_+h.textShiftX,S=y+i.ty0-i.by/2+Jr,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=b?-i.bx/2-i.tx2width/2+Jr:-i.bx-Jr):x==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=b?i.bx/2-i.tx2width/2-Jr:i.bx+Jr)),u.call(Fa.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Fa.positionText,a(h.text2ShiftX+h.alignShift*Jr+_),o(y+i.ty0-i.by/2+Jr)),l.select("rect").call(qi.setRect,a(h.text2ShiftX+(h.alignShift-1)*i.tx2width/2+_),o(y-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function $Z(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||co(p)&&p===0}var l=Array.isArray(t)?function(p,_){var y=Nt.castOption(a,t,p);return i(y)?y:Nt.extractOption({},n,"",_)}:function(p,_){return Nt.extractOption(o,n,p,_)};function u(p,_,y){var b=l(_,y);i(b)&&(e[p]=b)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Nt.constrain(e.x0,0,e.xa._length),e.x1=Nt.constrain(e.x1,0,e.xa._length),e.y0=Nt.constrain(e.y0,0,e.ya._length),e.y1=Nt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Oi.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Oi.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=Oi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+Oi.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Oi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Oi.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&h!=="all"&&(h=Array.isArray(h)?h:h.split("+"),h.indexOf("x")===-1&&(e.xLabel=void 0),h.indexOf("y")===-1&&(e.yLabel=void 0),h.indexOf("z")===-1&&(e.zLabel=void 0),h.indexOf("text")===-1&&(e.text=void 0),h.indexOf("name")===-1&&(e.name=void 0)),e}function OT(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var h=hn.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,_,y;s=p&&p.xa,f=p&&p.ya;var b=f.spikesnap;b==="cursor"?(_=i.pointerX,y=i.pointerY):(_=s._offset+p.x,y=f._offset+p.y);var T=IT.readability(p.color,h)<1.5?hn.contrast(h):p.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||T,x=Oi.getPxPosition(e,f),M,v;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=x,v=_),m.indexOf("across")!==-1){var w=f._counterDomainMin,g=f._counterDomainMax;f.anchor==="free"&&(w=Math.min(w,f.position),g=Math.max(g,f.position)),M=o.l+w*o.w,v=o.l+g*o.w}n.insert("line",":first-child").attr({x1:M,x2:v,y1:y,y2:y,"stroke-width":k,stroke:S,"stroke-dasharray":qi.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:M,x2:v,y1:y,y2:y,"stroke-width":k+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}m.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?k:-k),cy:y,r:k,fill:S}).classed("spikeline",!0)}if(u){var c=r.vLinePoint,A,d;s=c&&c.xa,f=c&&c.ya;var D=s.spikesnap;D==="cursor"?(A=i.pointerX,d=i.pointerY):(A=s._offset+c.x,d=f._offset+c.y);var E=IT.readability(c.color,h)<1.5?hn.contrast(h):c.color,R=s.spikemode,N=s.spikethickness,I=s.spikecolor||E,F=Oi.getPxPosition(e,s),L,P;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(L=F,P=d),R.indexOf("across")!==-1){var O=s._counterDomainMin,B=s._counterDomainMax;s.anchor==="free"&&(O=Math.min(O,s.position),B=Math.max(B,s.position)),L=o.t+(1-B)*o.h,P=o.t+(1-O)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N,stroke:I,"stroke-dasharray":qi.dashStyle(s.spikedash,N)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}R.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:F-(s.side!=="top"?N:-N),r:N,fill:I}).classed("spikeline",!0)}}}function jZ(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers)||a.binNumber!==o.binNumber)return!0}return!1}function BT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function UT(e,r){return Fa.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function eJ(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;ie.offsetTop+e.clientTop,JT=e=>e.offsetLeft+e.clientLeft;function bu(e,r){var t=e._fullLayout,n=r.getBoundingClientRect(),a=n.left,o=n.top,i=a+n.width,l=o+n.height,u=Nt.apply3DTransform(t._invTransform)(a,o),s=Nt.apply3DTransform(t._invTransform)(i,l),f=u[0],h=u[1],p=s[0],_=s[1];return{x:f,y:h,width:p-f,height:_-h,top:Math.min(h,_),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(h,_)}}});var gv=be((Phe,KT)=>{"use strict";var rJ=er(),tJ=Gr(),nJ=fo().isUnifiedHover;KT.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&nJ(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=tJ.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),rJ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var $T=be((Fhe,QT)=>{"use strict";var aJ=er(),iJ=gv(),oJ=Ll();QT.exports=function(r,t){function n(a,o){return aJ.coerce(r,t,oJ,a,o)}iJ(r,t,n)}});var r9=be((Ihe,e9)=>{"use strict";var jT=er(),lJ=Hc(),sJ=gv();e9.exports=function(r,t,n,a){function o(l,u){return jT.coerce(r,t,lJ,l,u)}var i=jT.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),sJ(r,t,o,i)}});var Z2=be((Nhe,t9)=>{"use strict";var uJ=er(),fJ=Ll();t9.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:uJ.coerce(r,t,fJ,a,o)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var i9=be((zhe,a9)=>{"use strict";var n9=er(),cJ=Ll(),hJ=Z2(),vJ=gv();a9.exports=function(r,t){function n(f,h){return n9.coerce(r,t,cJ,f,h)}var a=hJ(r,t);a&&(n("hoverdistance"),n("spikedistance"),a.indexOf("unified")!==-1&&n("hoversort"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("mapbox"),l=t._has("map"),u=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l||u)&&s===1||(i||l)&&u&&s===2)&&(t.dragmode="pan"),vJ(r,t,n),n9.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var s9=be((qhe,l9)=>{"use strict";var J2=er(),o9=Tr();l9.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return J2.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var pJ=Tr(),gJ=X2().hover;u9.exports=function(r,t,n){var a=pJ.getComponentMethod("annotations","onClick")(r,r._hoverdata),o=r._fullLayout;n!==void 0&&gJ(r,t,n,!0);function i(){var u,s,f,h;var l={points:r._hoverdata,event:t};(u=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(s=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals),(h=l.yvals)!=null||(l.yvals=r._hoverYVals),r.emit("plotly_click",l)}(r._hoverdata||o.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Bi=be((Bhe,v9)=>{"use strict";var yJ=tt(),yv=er(),mJ=oi(),$f=fo(),c9=Ll(),h9=X2();v9.exports={moduleType:"component",name:"fx",constants:mf(),schema:{layout:c9},attributes:Hc(),layoutAttributes:c9,supplyLayoutGlobalDefaults:$T(),supplyDefaults:r9(),supplyLayoutDefaults:i9(),calc:s9(),getDistanceFunction:$f.getDistanceFunction,getClosest:$f.getClosest,inbox:$f.inbox,quadrature:$f.quadrature,appendArrayPointValue:$f.appendArrayPointValue,castHoverOption:bJ,castHoverinfo:_J,hover:h9.hover,unhover:mJ.unhover,loneHover:h9.loneHover,loneUnhover:xJ,click:f9()};function xJ(e){var r=yv.isD3Selection(e)?e:yJ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function bJ(e,r,t){return yv.castOption(e,r,"hoverlabel."+t)}function _J(e,r,t){function n(a){return yv.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return yv.castOption(e,t,"hoverinfo",n)}});var wu=be(ho=>{"use strict";ho.selectMode=function(e){return e==="lasso"||e==="select"};ho.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ho.openMode=function(e){return e==="drawline"||e==="drawopenpath"};ho.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ho.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};ho.selectingOrDrawing=function(e){return ho.freeMode(e)||ho.rectMode(e)}});var mv=be((Hhe,d9)=>{"use strict";d9.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var xv=be((Vhe,p9)=>{"use strict";p9.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var _v=be((Ghe,g9)=>{"use strict";var bv=32;g9.exports={CIRCLE_SIDES:bv,i000:0,i090:bv/4,i180:bv/2,i270:bv/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var wv=be((Yhe,m9)=>{"use strict";var wJ=er().strTranslate;function y9(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function MJ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function TJ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return y9(e,t[r])}}function AJ(e){return wJ(e.xaxis._offset,e.yaxis._offset)}m9.exports={p2r:y9,r2p:MJ,axValue:TJ,getTransform:AJ}});var $o=be(vo=>{"use strict";var kJ=Ng(),_9=_v(),Mu=_9.CIRCLE_SIDES,K2=_9.SQRT2,w9=wv(),x9=w9.p2r,b9=w9.r2p,SJ=[0,3,4,5,6,1,2],CJ=[0,3,4,1,2];vo.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var M9=nn(),C9=wu(),EJ=C9.drawMode,LJ=C9.openMode,Tu=_v(),T9=Tu.i000,A9=Tu.i090,k9=Tu.i180,S9=Tu.i270,DJ=Tu.cos45,RJ=Tu.sin45,E9=wv(),Tv=E9.p2r,jo=E9.r2p,PJ=Uo(),FJ=PJ.clearOutline,Av=$o(),IJ=Av.readPaths,NJ=Av.writePaths,zJ=Av.ellipseOver,qJ=Av.fixDatesForPaths;function OJ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!EJ(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var BJ=wu(),UJ=BJ.selectMode,HJ=Uo(),VJ=HJ.clearOutline,Q2=$o(),GJ=Q2.readPaths,YJ=Q2.writePaths,WJ=Q2.fixDatesForPaths;R9.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,h=t.dragmode,p=(o.layout||{}).selections||[];if(!UJ(h)&&f!==void 0){var _=o._fullLayout._activeSelectionIndex;if(_{"use strict";P9.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var rl=be(yn=>{"use strict";var Hi=e0(),F9=er(),el=Lt();yn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};yn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};yn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};yn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};yn.extractPathCoords=function(e,r,t){var n=[],a=e.match(Hi.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(Hi.paramRE);if(!(!l||l.length{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};yn.getDataToPixel=function(e,r,t,n,a){var o=e._fullLayout._size,i;if(r)if(a==="domain")i=function(u){return r._length*(n?1-u:u)+r._offset};else{var l=yn.shapePositionToRange(r);i=function(u){var s=Ui(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=yn.decodeDate(i))}else n?i=function(u){return o.t+o.h*(1-u)}:i=function(u){return o.l+o.w*u};return i};yn.getPixelToData=function(e,r,t,n){var a=e._fullLayout._size,o;if(r)if(n==="domain")o=function(l){var u=(l-r._offset)/r._length;return t?1-u:u};else{var i=yn.rangeToShapePosition(r);o=function(l){return i(r.p2r(l-r._offset))}}else t?o=function(l){return 1-(l-a.t)/a.h}:o=function(l){return(l-a.l)/a.w};return o};yn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};yn.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&t.xref!=="paper"&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(n.yaxis=e._fullLayout[t.yref+"axis"])),n.xsizemode=t.xsizemode,n.ysizemode=t.ysizemode,n.xanchor=t.xanchor,n.yanchor=t.yanchor,{options:t,plotinfo:n}};yn.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(n.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:n}};yn.getPathString=function(e,r){let t=r.type,n=el.getRefType(r.xref),a=el.getRefType(r.yref),o=e._fullLayout._size;var i,l,u,s,f,h,p,_,y,b,T,m;function k(A,d,D,E){var R;if(A)if(d==="domain")E?R=function(N){return A._offset+A._length*(1-N)}:R=function(N){return A._offset+A._length*N};else{let N=yn.shapePositionToRange(A);R=function(I){return A._offset+A.r2p(N(I,!0))},D==="path"&&A.type==="date"&&(R=yn.decodeDate(R))}else E?R=function(N){return o.t+o.h*(1-N)}:R=function(N){return o.l+o.w*N};return R}if(n==="array"?(p=[],i=r.xref.map(function(A){return el.getFromId(e,A)}),p=r.xref.map(function(A,d){return k(i[d],el.getRefType(A),t,!1)})):(i=el.getFromId(e,r.xref),p=k(i,n,t,!1)),a==="array"?(_=[],l=r.yref.map(function(A){return el.getFromId(e,A)}),_=r.yref.map(function(A,d){return k(l[d],el.getRefType(A),t,!0)})):(l=el.getFromId(e,r.yref),_=k(l,a,t,!0)),t==="path")return XJ(r,p,_);if(n==="array")u=Ui(i[0],r.x0shift),s=Ui(i[1],r.x1shift),y=p[0](r.x0)+u,b=p[1](r.x1)+s;else if(u=Ui(i,r.x0shift),s=Ui(i,r.x1shift),r.xsizemode==="pixel"){let A=p(r.xanchor);y=A+r.x0+u,b=A+r.x1+s}else y=p(r.x0)+u,b=p(r.x1)+s;if(a==="array")f=Ui(l[0],r.y0shift),h=Ui(l[1],r.y1shift),T=_[0](r.y0)+f,m=_[1](r.y1)+h;else if(f=Ui(l,r.y0shift),h=Ui(l,r.y1shift),r.ysizemode==="pixel"){let A=_(r.yanchor);T=A-r.y0+f,m=A-r.y1+h}else T=_(r.y0)+f,m=_(r.y1)+h;if(t==="line")return"M"+y+","+T+"L"+b+","+m;if(t==="rect")return"M"+y+","+T+"H"+b+"V"+m+"H"+y+"Z";var S=(y+b)/2,x=(T+m)/2,M=Math.abs(S-y),v=Math.abs(x-T),w="A"+M+","+v,g=S+M+","+x,c=S+","+(x-v);return"M"+g+w+" 0 1,1 "+c+w+" 0 0,1 "+g+"Z"};function XJ(e,r,t){let n=e.path,a=e.xsizemode,o=e.ysizemode,i=e.xanchor,l=e.yanchor,u=Array.isArray(e.xref),s=Array.isArray(e.yref);var f=0,h=0;return n.replace(Hi.segmentRE,function(p){var _=0,y=p.charAt(0),b=Hi.paramIsX[y],T=Hi.paramIsY[y],m=Hi.numParams[y];let k=b.drawn!==void 0,S=T.drawn!==void 0,x=u?r[f]:r,M=s?t[h]:t;var v=p.slice(1).replace(Hi.paramRE,function(w){return b[_]?a==="pixel"?w=x(i)+Number(w):w=x(w):T[_]&&(o==="pixel"?w=M(l)-Number(w):w=M(w)),_++,_>m&&(w="X"),w});return _>m&&(v=v.replace(/[\s,]*X.*/,""),F9.log("Ignoring extra params in segment "+p)),k&&f++,S&&h++,y+v})}yn.getPixelShift=Ui;function Ui(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var j2=be((Qhe,z9)=>{"use strict";var ZJ=er(),Vi=Lt(),I9=Bn(),N9=mt(),JJ=$o().readPaths,is=rl(),KJ=is.getPathString,r0=Qc(),QJ=En().FROM_TL;z9.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=Vi.getFromId(r,n.xref),u=Vi.getFromId(r,n.yref);let B=Array.isArray(n.xref),X=Array.isArray(n.yref);for(var s in r0){var f=typeof r0[s]=="function",h=!B||r0.simpleXVariables.includes(s),p=!X||r0.simpleYVariables.includes(s);if(f&&h&&p){var _=r0[s](n,l,u);_!==void 0&&(i[s]=_)}}}o=ZJ.texttemplateStringForShapes({data:[i],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else o=n.label.text;var y={"data-index":t},b=n.label.font,T={"data-notex":1},m=a.append("g").attr(y).classed("shape-label",!0),k=m.append("text").attr(T).classed("shape-label-text",!0).text(o),S,x,M,v;if(n.path){var w=KJ(r,n),g=JJ(w,r);S=1/0,M=1/0,x=-1/0,v=-1/0;for(var c=0;cis.getDataToPixel(r,ne,H,!1,ue)(re),V=(re,H,ne,ue)=>is.getDataToPixel(r,ne,H,!0,ue)(re);if(n.xsizemode==="pixel"){let re=j(n.xanchor,void 0,$,Q),H=is.getPixelShift($,n.x0shift),ne=is.getPixelShift($,n.x1shift);S=re+n.x0+H,x=re+n.x1+ne}else S=j(n.x0,n.x0shift,$,Q),x=j(n.x1,n.x1shift,ee,oe);if(n.ysizemode==="pixel"){let re=V(n.yanchor,void 0,Y,Z),H=is.getPixelShift(Y,n.y0shift),ne=is.getPixelShift(Y,n.y1shift);M=re-n.y0+H,v=re-n.y1+ne}else M=V(n.y0,n.y0shift,Y,Z),v=V(n.y1,n.y1shift,q,se)}var N=n.label.textangle;N==="auto"&&(n.type==="line"?N=$J(S,M,x,v):N=0),k.call(function(B){return B.call(N9.font,b).attr({}),I9.convertToTspans(B,r),B});var I=N9.bBox(k.node()),F=jJ(S,M,x,v,n,N,I),L=F.textx,P=F.texty,O=F.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[O],y:P,x:L,transform:"rotate("+N+","+L+","+P+")"}).call(I9.positionText,L,P)}};function $J(e,r,t,n){var a,o;return o=Math.abs(t-e),t>=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function jJ(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,h=Math.PI/180*o,p=Math.sin(h),_=Math.cos(h),y=a.label.xanchor,b=a.label.yanchor,T,m,k,S;if(f==="line"){l==="start"?(T=e,m=r):l==="end"?(T=t,m=n):(T=(e+t)/2,m=(r+n)/2),y==="auto"&&(l==="start"?u==="auto"?t>e?y="left":te?y="right":te?y="right":te?y="left":t{"use strict";var eK=er(),rK=eK.strTranslate,q9=oi(),U9=wu(),tK=U9.drawMode,H9=U9.selectMode,V9=Tr(),O9=Gr(),Cv=_v(),nK=Cv.i000,aK=Cv.i090,iK=Cv.i180,oK=Cv.i270,lK=Uo(),G9=lK.clearOutlineControllers,ry=$o(),Sv=ry.pointsOnRectangle,ey=ry.pointsOnEllipse,sK=ry.writePaths,uK=kv().newShapes,fK=kv().createShapeObj,cK=$2(),hK=j2();Y9.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(ey(r[0])||n.hasText)&&l({redrawing:!0})}function l(F){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=uK(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=cK(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&V9.call((F||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,h=tK(f),p=H9(f);(h||p)&&(o._fullLayout._outlining=!0),G9(o),t.attr("d",sK(r));var _,y,b,T,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=vK([],r);var k=s.append("g").attr("class","outline-controllers");A(k),I()}if(h&&n.hasText){var S=s.select(".label-temp"),x=fK(t,n,n.dragmode);hK(o,"label-temp",x,S)}function M(F){b=+F.srcElement.getAttribute("data-i"),T=+F.srcElement.getAttribute("data-j"),_[b][T].moveFn=v}function v(F,L){if(r.length){var P=m[b][T][1],O=m[b][T][2],B=r[b],X=B.length;if(Sv(B)){var $=F,ee=L;if(n.isActiveSelection){var Y=B9(B,T);Y[1]===B[T][1]?ee=0:$=0}for(var q=0;q1&&!(F.length===2&&F[1][0]==="Z")&&(T===0&&(F[0][0]="M"),r[b]=F,i(),l())}}function c(F,L){if(F===2){b=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var P=r[b];!Sv(P)&&!ey(P)&&g()}}function A(F){_=[];for(var L=0;L{"use strict";var pK=tt(),Q9=Tr(),ny=er(),os=Lt(),gK=$o().readPaths,yK=Ev(),Dv=j2(),$9=Uo().clearOutlineControllers,ty=Gr(),Rv=mt(),mK=yt().arrayEditor,W9=oi(),X9=Bi(),Z9=Ko(),ls=e0(),ua=rl(),ay=ua.getPathString;rA.exports={draw:iy,drawOne:j9,eraseActiveShape:MK,drawLabel:Dv};function iy(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let i=a(o);i&&X9.hover(e,i,t.id)}}),n.addEventListener("click",o=>{if(!e._dragged&&e._fullLayout.clickanywhere){let i=a(o);i&&X9.click(e,i,t.id)}})}function eA(e,r,t){let n=t.xref,a=t.yref;if(Array.isArray(n)||Array.isArray(a)){let o="clip"+r._fullLayout._uid+"shape"+t._index,i=bK(r,n,a);ny.ensureSingleById(r._fullLayout._clips,"clipPath",o,function(l){l.append("rect")}).select("rect").attr(i),Rv.setClipUrl(e,o,r)}else{let o=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Rv.setClipUrl(e,o?"clip"+r._fullLayout._uid+o:null,r)}}function bK(e,r,t){let n=e._fullLayout._size;function a(l,u){let s=(Array.isArray(l)?l:[l]).map(p=>os.getFromId(e,p)).filter(Boolean);if(!s.length)return u?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=s.map(function(p){return p._offset}),h=s.map(function(p){return p._offset+p._length});return[Math.min(...f),Math.max(...h)]}let o=a(r,!1),i=a(t,!0);return{x:o[0],y:i[0],width:o[1]-o[0],height:i[1]-i[0]}}function _K(e,r,t,n,a,o){var i=10,l=10,u=t.xsizemode==="pixel",s=t.ysizemode==="pixel",f=t.type==="line",h=t.type==="path",p=o.modifyItem,_,y,b,T,m,k,S,x,M,v,w,g,c,A,d,D=pK.select(r.node().parentNode),E=os.getFromId(e,t.xref),R=os.getRefType(t.xref),N=os.getFromId(e,t.yref),I=os.getRefType(t.yref),F=t.x0shift,L=t.x1shift,P=t.y0shift,O=t.y1shift,B=function(Me,ge){var Ee=ua.getDataToPixel(e,E,ge,!1,R);return Ee(Me)},X=function(Me,ge){var Ee=ua.getDataToPixel(e,N,ge,!0,I);return Ee(Me)},$=ua.getPixelToData(e,E,!1,R),ee=ua.getPixelToData(e,N,!0,I),Y=oe(),q={element:Y.node(),gd:e,prepFn:j,doneFn:V,clickFn:re},Q;W9.init(q),Y.node().onmousemove=se;function oe(){return f?Z():r}function Z(){var Me=10,ge=Math.max(t.line.width,Me),Ee=a.append("g").attr("data-index",n).attr("drag-helper",!0);Ee.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ge,"stroke-opacity":"0"});var Ce={"fill-opacity":"0"},Fe=Math.max(ge/2,Me);return Ee.append("circle").attr({"data-line-point":"start-point",cx:u?B(t.xanchor)+t.x0:B(t.x0,F),cy:s?X(t.yanchor)-t.y0:X(t.y0,P),r:Fe}).style(Ce).classed("cursor-grab",!0),Ee.append("circle").attr({"data-line-point":"end-point",cx:u?B(t.xanchor)+t.x1:B(t.x1,L),cy:s?X(t.yanchor)-t.y1:X(t.y1,O),r:Fe}).style(Ce).classed("cursor-grab",!0),Ee}function se(Me){if(Lv(e)){Q=null;return}if(f)Me.target.tagName==="path"?Q="move":Q=Me.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ge=q.element.getBoundingClientRect(),Ee=ge.right-ge.left,Ce=ge.bottom-ge.top,Fe=Me.clientX-ge.left,ie=Me.clientY-ge.top,J=!h&&Ee>i&&Ce>l&&!Me.shiftKey?W9.getCursor(Fe/Ee,1-ie/Ce):"move";Z9(r,J),Q=J.split("-")[0]}}function j(Me){Lv(e)||(u&&(m=B(t.xanchor)),s&&(k=X(t.yanchor)),t.type==="path"?d=t.path:(_=u?t.x0:B(t.x0),y=s?t.y0:X(t.y0),b=u?t.x1:B(t.x1),T=s?t.y1:X(t.y1)),_T?(S=y,w="y0",x=T,g="y1"):(S=T,w="y1",x=y,g="y0"),se(Me),ue(a,t),ke(r,t,e),q.moveFn=Q==="move"?H:ne,q.altKey=Me.altKey)}function V(){Lv(e)||(Z9(r),ye(a),eA(r,e,t),Q9.call("_guiRelayout",e,o.getUpdateObj()))}function re(){Lv(e)||ye(a)}function H(Me,ge){if(t.type==="path"){var Ee=function(ie){return ie},Ce=Ee,Fe=Ee;u?p("xanchor",t.xanchor=$(m+Me)):(Ce=function(J){return $(B(J)+Me)},E&&E.type==="date"&&(Ce=ua.encodeDate(Ce))),s?p("yanchor",t.yanchor=ee(k+ge)):(Fe=function(J){return ee(X(J)+ge)},N&&N.type==="date"&&(Fe=ua.encodeDate(Fe))),p("path",t.path=J9(d,Ce,Fe))}else u?p("xanchor",t.xanchor=$(m+Me)):(p("x0",t.x0=$(_+Me)),p("x1",t.x1=$(b+Me))),s?p("yanchor",t.yanchor=ee(k+ge)):(p("y0",t.y0=ee(y+ge)),p("y1",t.y1=ee(T+ge)));r.attr("d",ay(e,t)),ue(a,t),Dv(e,n,t,D)}function ne(Me,ge){if(h){var Ee=function(De){return De},Ce=Ee,Fe=Ee;u?p("xanchor",t.xanchor=$(m+Me)):(Ce=function(We){return $(B(We)+Me)},E&&E.type==="date"&&(Ce=ua.encodeDate(Ce))),s?p("yanchor",t.yanchor=ee(k+ge)):(Fe=function(We){return ee(X(We)+ge)},N&&N.type==="date"&&(Fe=ua.encodeDate(Fe))),p("path",t.path=J9(d,Ce,Fe))}else if(f){if(Q==="resize-over-start-point"){var ie=_+Me,J=s?y-ge:y+ge;p("x0",t.x0=u?ie:$(ie)),p("y0",t.y0=s?J:ee(J))}else if(Q==="resize-over-end-point"){var te=b+Me,ae=s?T-ge:T+ge;p("x1",t.x1=u?te:$(te)),p("y1",t.y1=s?ae:ee(ae))}}else{var ce=function(De){return Q.indexOf(De)!==-1},pe=ce("n"),ve=ce("s"),xe=ce("w"),me=ce("e"),de=pe?S+ge:S,_e=ve?x+ge:x,Ae=xe?M+Me:M,Ie=me?v+Me:v;s&&(pe&&(de=S-ge),ve&&(_e=x-ge)),(!s&&_e-de>l||s&&de-_e>l)&&(p(w,t[w]=s?de:ee(de)),p(g,t[g]=s?_e:ee(_e))),Ie-Ae>i&&(p(c,t[c]=u?Ae:$(Ae)),p(A,t[A]=u?Ie:$(Ie)))}r.attr("d",ay(e,t)),ue(a,t),Dv(e,n,t,D)}function ue(Me,ge){(u||s)&&Ee();function Ee(){var Ce=ge.type!=="path",Fe=Me.selectAll(".visual-cue").data([0]),ie=1;Fe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":ie}).classed("visual-cue",!0);var J=B(u?ge.xanchor:ny.midRange(Ce?[ge.x0,ge.x1]:ua.extractPathCoords(ge.path,ls.paramIsX))),te=X(s?ge.yanchor:ny.midRange(Ce?[ge.y0,ge.y1]:ua.extractPathCoords(ge.path,ls.paramIsY)));if(J=ua.roundPositionForSharpStrokeRendering(J,ie),te=ua.roundPositionForSharpStrokeRendering(te,ie),u&&s){var ae="M"+(J-1-ie)+","+(te-1-ie)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Fe.attr("d",ae)}else if(u){var ce="M"+(J-1-ie)+","+(te-9-ie)+"v18 h2 v-18 Z";Fe.attr("d",ce)}else{var pe="M"+(J-9-ie)+","+(te-1-ie)+"h18 v2 h-18 Z";Fe.attr("d",pe)}}}function ye(Me){Me.selectAll(".visual-cue").remove()}function ke(Me,ge,Ee){var Ce=ge.xref,Fe=ge.yref,ie=os.getFromId(Ee,Ce),J=os.getFromId(Ee,Fe),te="";Ce!=="paper"&&!ie.autorange&&(te+=Ce),Fe!=="paper"&&!J.autorange&&(te+=Fe),Rv.setClipUrl(Me,te?"clip"+Ee._fullLayout._uid+te:null,Ee)}}function J9(e,r,t){return e.replace(ls.segmentRE,function(n){var a=0,o=n.charAt(0),i=ls.paramIsX[o],l=ls.paramIsY[o],u=ls.numParams[o],s=n.slice(1).replace(ls.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function wK(e,r){if(Pv(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){K9(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=K9,iy(e)}}}function K9(e){if(Pv(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&($9(e),delete e._fullLayout._activeShapeIndex,iy(e))}}function MK(e){if(Pv(e)){$9(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var tA=tt(),Iv=er()._;nA.exports=function(r,t,n){var a=tA.select(r._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();var o=a.append("div").classed("plotly-cloud-dialog",!0),i=o.append("div").classed("plotly-cloud-dialog-box",!0);i.append("div").classed("plotly-cloud-dialog-title",!0).text(Iv(r,"Share with Plotly Cloud")),i.append("div").classed("plotly-cloud-dialog-message",!0).text(Iv(r,"This chart and its data will be sent to")+" "+t+".");var l=i.append("div").classed("plotly-cloud-dialog-buttons",!0);function u(){o.remove(),document.removeEventListener("keydown",s)}function s(f){(f.key==="Escape"||f.keyCode===27)&&u()}document.addEventListener("keydown",s),o.on("click",function(){tA.event.target===o.node()&&u()}),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(Iv(r,"Cancel")).on("click",u),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(Iv(r,"Share")).on("click",function(){u(),n()})}});var sy=be((rve,hA)=>{"use strict";var Ia=Tr(),TK=fn(),iA=nn(),at=xv(),AK=Fv().eraseActiveShape,kK=aA(),Nv=er(),Kr=Nv._,jr=hA.exports={};jr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Kr(e,"Download plot as a PNG"):Kr(e,"Download plot")},icon:at.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Nv.notifier(Kr(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Ia.call("downloadImage",e,t).then(function(n){Nv.notifier(Kr(e,"Snapshot succeeded")+" - "+n,"long",e)}).catch(function(){Nv.notifier(Kr(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};jr.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Kr(e,"Share with Plotly Cloud")},icon:at.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is not set)");return}try{new URL(r)}catch(t){console.error("Invalid plotlyServerURL: "+r);return}kK(e,r,function(){TK.sendDataToCloud(e,r)})}};jr.sendDataToCloud=jr.sendChartToCloud;jr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Kr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:at.zoombox,click:Vn};jr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Kr(e,"Pan")},attr:"dragmode",val:"pan",icon:at.pan,click:Vn};jr.select2d={name:"select2d",_cat:"select",title:function(e){return Kr(e,"Box Select")},attr:"dragmode",val:"select",icon:at.selectbox,click:Vn};jr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Kr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:at.lasso,click:Vn};jr.drawclosedpath={name:"drawclosedpath",title:function(e){return Kr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:at.drawclosedpath,click:Vn};jr.drawopenpath={name:"drawopenpath",title:function(e){return Kr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:at.drawopenpath,click:Vn};jr.drawline={name:"drawline",title:function(e){return Kr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:at.drawline,click:Vn};jr.drawrect={name:"drawrect",title:function(e){return Kr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:at.drawrect,click:Vn};jr.drawcircle={name:"drawcircle",title:function(e){return Kr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:at.drawcircle,click:Vn};jr.eraseshape={name:"eraseshape",title:function(e){return Kr(e,"Erase active shape")},icon:at.eraseshape,click:AK};jr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Kr(e,"Zoom in")},attr:"zoom",val:"in",icon:at.zoom_plus,click:Vn};jr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Kr(e,"Zoom out")},attr:"zoom",val:"out",icon:at.zoom_minus,click:Vn};jr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Kr(e,"Autoscale")},attr:"zoom",val:"auto",icon:at.autoscale,click:Vn};jr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Kr(e,"Reset axes")},attr:"zoom",val:"reset",icon:at.home,click:Vn};jr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Kr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:at.tooltip_basic,gravity:"ne",click:Vn};jr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Kr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:at.tooltip_compare,gravity:"ne",click:Vn};function Vn(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=iA.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var h=a==="in"?.5:2,p=(1+h)/2,_=(1-h)/2,y,b;for(f=0;f{"use strict";var vA=sy(),EK=Object.keys(vA),dA=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],pA=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(dA),ku=[],LK=function(e){if(pA.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();ku.indexOf(r)===-1&&ku.push(r),ku.indexOf(t)===-1&&ku.push(t)}};EK.forEach(function(e){LK(vA[e])});ku.sort();gA.exports={DRAW_MODES:dA,backButtons:pA,foreButtons:ku}});var fy=be((ave,yA)=>{"use strict";var nve=uy();yA.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var xA=be((ive,mA)=>{"use strict";var DK=er(),t0=Gr(),RK=yt(),PK=fy();mA.exports=function(r,t){var n=r.modebar||{},a=RK.newContainer(t,"modebar");function o(l,u){return DK.coerce(n,a,PK,l,u)}o("orientation"),o("bgcolor",t0.addOpacity(t.paper_bgcolor,.5));var i=t0.contrast(t0.rgb(t.modebar.bgcolor));o("color",t0.addOpacity(i,.3)),o("activecolor",t0.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var MA=be((ove,wA)=>{"use strict";var cy=tt(),FK=nt(),qv=er(),bA=xv(),IK=vf().version,NK=new DOMParser;function _A(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Gi=_A.prototype;Gi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(h){h.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),qv.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};Gi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};Gi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Gi.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&cy.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||bA.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Gi.createIcon=function(e){var r=FK(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=NK.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Gi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=cy.select(n),u=function(h,p){var _=r.modebar,y=h.querySelector(".icon path");y&&(p||h.matches(":hover")?y.style.fill=_.activecolor:y.style.fill=_.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:qv.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};Gi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var OK=nn(),TA=sa(),hy=Tr(),BK=fo().isUnifiedHover,UK=MA(),Ov=sy(),HK=uy().DRAW_MODES,VK=er().extendDeep;AA.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=JK(o):!n.displayModeBar&&n.watermark?i=[]:i=GK(r),a?a.update(r,i):t._modeBar=UK(r,i)};function GK(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,P){if(typeof P=="string"){if(P.toLowerCase()===L.toLowerCase())return!0}else{var O=P.name,B=P._cat||P.name;if(O===L||B===L.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(L){for(var P=0;P1?(A=["toggleHover"],d=["resetViews"]):h?(c=["zoomInGeo","zoomOutGeo"],A=["hoverClosestGeo"],d=["resetGeo"]):f?(A=["hoverClosest3d"],d=["resetCameraDefault3d","resetCameraLastSave3d"]):b?(c=["zoomInMapbox","zoomOutMapbox"],A=["toggleHover"],d=["resetViewMapbox"]):T?(c=["zoomInMap","zoomOutMap"],A=["toggleHover"],d=["resetViewMap"]):p?A=["hoverClosestPie"]:S?(A=["hoverClosestCartesian","hoverCompareCartesian"],d=["resetViewSankey"]):A=["toggleHover"],s&&A.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(XK(t)||M)&&(A=[]),s&&!x&&(c=["zoomIn2d","zoomOut2d","autoScale2d"],d[0]!=="resetViews"&&(d=["resetScale2d"])),f?D=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||y?D=["zoom2d","pan2d"]:b||T||h?D=["pan2d"]:m&&(D=["zoom2d"]),WK(t)&&D.push("select2d","lasso2d");var E=[],R=function(L){E.indexOf(L)===-1&&A.indexOf(L)!==-1&&E.push(L)};if(Array.isArray(l)){for(var N=[],I=0;I{"use strict";SA.exports={moduleType:"component",name:"modebar",layoutAttributes:fy(),supplyLayoutDefaults:xA(),manage:kA()}});var dy=be((uve,CA)=>{"use strict";var KK=En().FROM_BL;CA.exports=function(r,t,n){n===void 0&&(n=KK[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var a0=be(n0=>{"use strict";var ss=er(),py=cu(),si=nn().id2name,QK=Da(),EA=dy(),$K=Gh(),jK=ln().ALMOST_EQUAL,eQ=En().FROM_BL;n0.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,h,p,_,y;for(l=0;lo?t.slice(o):n.slice(a))+i}function tQ(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;ijK*y&&!k)){for(o=0;oD&&OA&&(A=O);var X=(A-c)/(2*d);h/=X,c=u.l2r(c),A=u.l2r(A),u.range=u._input.range=v{"use strict";var Uv=tt(),Gn=Tr(),ma=fn(),Na=er(),my=Bn(),xy=mv(),i0=Gr(),Su=mt(),PA=Of(),qA=vy(),o0=Lt(),po=En(),OA=a0(),nQ=OA.enforce,aQ=OA.clean,FA=cu().doAutoRange,BA="start",iQ="middle",UA="end",oQ=un().zindexSeparator;vn.layoutStyles=function(e){return Na.syncOrAsync([ma.doAutoMargin,sQ],e)};function lQ(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function sQ(e){var r=e._fullLayout,t=r._size,n=t.p,a=o0.list(e,"",!0),o,i,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(Su.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),vn.drawMainTitle(e),qA.manage(e),!r._has("cartesian"))return ma.previousPromises(e);function h(j,V,re){var H=j._lw/2;if(j._id.charAt(0)==="x"){if(V){if(re==="top")return V._offset-n-H}else return t.t+t.h*(1-(j.position||0))+H%1;return V._offset+V._length+n+H}if(V){if(re==="right")return V._offset+V._length+n+H}else return t.l+t.w*(j.position||0)+H%1;return V._offset-n-H}for(o=0;o0){hQ(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:zA(r.yanchor)}).call(my.positionText,i,o);var f=(r.text.match(my.BR_TAG_ALL)||[]).length;if(f){var h=po.LINE_SPACING*f+po.MID_SHIFT;r.y===0&&(h=-h),l.selectAll(".line").each(function(){var T=+this.getAttribute("dy").slice(0,-2)-h+"em";this.setAttribute("dy",T)})}var p=Uv.select(e).selectAll(".gtitle-subtitle");if(p.node()){var _=l.node().getBBox(),y=_.y+_.height,b=y+PA.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:b,"text-anchor":n,dy:zA(r.yanchor)}).call(my.positionText,i,b)}}}};function uQ(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=Na.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return Na.isTopAnchor(r)&&t==="t"||Na.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=fQ(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function hQ(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&uQ(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),ma.allowAutoMargin(e,a),ma.autoMargin(e,a,l)}function vQ(e,r){var t=e.title,n=e._size,a=0;return r===BA?a=t.pad.l:r===UA&&(a=-t.pad.r),t.xref==="paper"?n.l+n.w*t.x+a:e.width*t.x+a}function dQ(e,r){var t=e.title,n=e._size,a=0;return r==="0em"||!r?a=-t.pad.b:r===po.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto"?n.t/2:t.yref==="paper"?n.t+n.h-n.h*t.y+a:e.height-e.height*t.y+a}function zA(e){return e==="top"?po.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":po.MID_SHIFT+"em"}function pQ(e){var r=e.title,t=iQ;return Na.isRightAnchor(r)?t=UA:Na.isLeftAnchor(r)&&(t=BA),t}function gQ(e){var r=e.title,t="0em";return Na.isTopAnchor(r)?t=po.CAP_SHIFT+"em":Na.isMiddleAnchor(r)&&(t=po.MID_SHIFT+"em"),t}vn.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var yQ=$o().readPaths,mQ=Ev(),HA=Uo().clearOutlineControllers,by=Gr(),VA=mt(),xQ=yt().arrayEditor,GA=rl(),bQ=GA.getPathString;WA.exports={draw:Vv,drawOne:YA,activateLastSelection:MQ};function Vv(e){var r=e._fullLayout;HA(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;T--){var m=i.append("path").attr(u).style("opacity",T?.1:s).call(by.stroke,h).call(by.fill,f).call(VA.dashLine,T?"solid":_,T?4+p:p);if(_Q(m,e,n),y){var k=xQ(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=yQ(l,e);mQ(x,m,S)}else m.style("pointer-events",T?"all":"none");b[T]=m}var M=b[0],v=b[1];v.node().addEventListener("click",function(){return wQ(e,M)})}}function _Q(e,r,t){var n=t.xref+t.yref;VA.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function wQ(e,r){if(Gv(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){_y(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=_y,Vv(e)}}}function MQ(e){if(Gv(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=_y,Vv(e)}}function _y(e){if(Gv(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(HA(e),delete e._fullLayout._activeSelectionIndex,Vv(e))}}});var ZA=be((vve,XA)=>{function TQ(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}XA.exports=TQ});var KA=be((dve,JA)=>{function AQ(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-o>e&&(i-f)*(o-h)/(l-h)+f-a>e&&(u=!u),i=f,l=h}return u}};return r}JA.exports=AQ});var $A=be((pve,QA)=>{var kQ={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};QA.exports=kQ});var ek=be((gve,jA)=>{var l0=$A();function SQ(e,r,t){function n(y,b){return{id:t?t.segmentId():-1,start:y,end:b,myFill:{above:null,below:null},otherFill:null}}function a(y,b,T){return{id:t?t.segmentId():-1,start:y,end:b,myFill:{above:T.myFill.above,below:T.myFill.below},otherFill:null}}var o=l0.create();function i(y,b,T,m,k,S){var x=r.pointsCompare(b,k);return x!==0?x:r.pointsSame(T,S)?0:y!==m?y?1:-1:r.pointAboveOrOnLine(T,m?k:S,m?S:k)?1:-1}function l(y,b){o.insertBefore(y,function(T){var m=i(y.isStart,y.pt,b,T.isStart,T.pt,T.other.pt);return m<0})}function u(y,b){var T=l0.node({isStart:!0,pt:y.start,seg:y,primary:b,other:null,status:null});return l(T,y.end),T}function s(y,b,T){var m=l0.node({isStart:!1,pt:b.end,seg:b,primary:T,other:y,status:null});y.other=m,l(m,y.pt)}function f(y,b){var T=u(y,b);return s(T,y,b),T}function h(y,b){t&&t.segmentChop(y.seg,b),y.other.remove(),y.seg.end=b,y.other.pt=b,l(y.other,y.pt)}function p(y,b){var T=a(b,y.seg.end,y.seg);return h(y,b),f(T,y.primary)}function _(y,b){var T=l0.create();function m(N,I){var F=N.seg.start,L=N.seg.end,P=I.seg.start,O=I.seg.end;return r.pointsCollinear(F,P,O)?r.pointsCollinear(L,P,O)||r.pointAboveOrOnLine(L,P,O)?1:-1:r.pointAboveOrOnLine(F,P,O)?1:-1}function k(N){return T.findTransition(function(I){var F=m(N,I.ev);return F>0})}function S(N,I){var F=N.seg,L=I.seg,P=F.start,O=F.end,B=L.start,X=L.end;t&&t.checkIntersection(F,L);var $=r.linesIntersect(P,O,B,X);if($===!1){if(!r.pointsCollinear(P,O,B)||r.pointsSame(P,X)||r.pointsSame(O,B))return!1;var ee=r.pointsSame(P,B),Y=r.pointsSame(O,X);if(ee&&Y)return I;var q=!ee&&r.pointBetween(P,B,X),Q=!Y&&r.pointBetween(O,B,X);if(ee)return Q?p(I,O):p(N,X),I;q&&(Y||(Q?p(I,O):p(N,X)),p(I,P))}else $.alongA===0&&($.alongB===-1?p(N,B):$.alongB===0?p(N,$.pt):$.alongB===1&&p(N,X)),$.alongB===0&&($.alongA===-1?p(I,P):$.alongA===0?p(I,$.pt):$.alongA===1&&p(I,O));return!1}for(var x=[];!o.isEmpty();){var M=o.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let N=function(){if(w){var I=S(M,w);if(I)return I}return g?S(M,g):!1};var R=N;t&&t.segmentNew(M.seg,M.primary);var v=k(M),w=v.before?v.before.ev:null,g=v.after?v.after.ev:null;t&&t.tempStatus(M.seg,w?w.seg:!1,g?g.seg:!1);var c=N();if(c){if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,A&&(c.seg.myFill.above=!c.seg.myFill.above)}else c.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(c.seg),M.other.remove(),M.remove()}if(o.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,g?M.seg.myFill.below=g.seg.myFill.above:M.seg.myFill.below=y,A?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var d;g?M.primary===g.primary?d=g.seg.otherFill.above:d=g.seg.myFill.above:d=M.primary?b:y,M.seg.otherFill={above:d,below:d}}t&&t.status(M.seg,w?w.seg:!1,g?g.seg:!1),M.other.status=v.insert(l0.node({ev:M}))}else{var D=M.status;if(D===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(T.exists(D.prev)&&T.exists(D.next)&&S(D.prev.ev,D.next.ev),t&&t.statusRemove(D.ev.seg),D.remove(),!M.primary){var E=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=E}x.push(M.seg)}o.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(y){for(var b,T=y[y.length-1],m=0;m{function CQ(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function h(R,N,I){return f.index=R,f.matches_head=N,f.matches_pt1=I,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p{function s0(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var EQ={union:function(e,r){return s0(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return s0(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return s0(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return s0(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return s0(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};nk.exports=EQ});var ok=be((xve,ik)=>{var LQ={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u{var DQ=ZA(),RQ=KA(),lk=ek(),PQ=tk(),u0=ak(),sk=ok(),za=!1,f0=RQ(),fa;fa={buildLog:function(e){return e===!0?za=DQ():e===!1&&(za=!1),za===!1?!1:za.list},epsilon:function(e){return f0.epsilon(e)},segments:function(e){var r=lk(!0,f0,za);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=lk(!1,f0,za);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:u0.union(e.combined,za),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:u0.intersect(e.combined,za),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:u0.difference(e.combined,za),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:u0.differenceRev(e.combined,za),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:u0.xor(e.combined,za),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:PQ(e.segments,f0,za),inverted:e.inverted}},polygonFromGeoJSON:function(e){return sk.toPolygon(fa,e)},polygonToGeoJSON:function(e){return sk.fromPolygon(fa,f0,e)},union:function(e,r){return c0(e,r,fa.selectUnion)},intersect:function(e,r){return c0(e,r,fa.selectIntersect)},difference:function(e,r){return c0(e,r,fa.selectDifference)},differenceRev:function(e,r){return c0(e,r,fa.selectDifferenceRev)},xor:function(e,r){return c0(e,r,fa.selectXor)}};function c0(e,r,t){var n=fa.segments(e),a=fa.segments(r),o=fa.combine(n,a),i=t(o);return fa.polygon(i)}typeof window=="object"&&(window.PolyBool=fa);uk.exports=fa});var hk=be((_ve,ck)=>{ck.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;si!=y>i&&o<(_-h)*(i-p)/(y-p)+h;b&&(l=!l)}return l}});var Ty=be((wve,vk)=>{"use strict";var My=Zc().dot,Yv=ln().BADNUM,Wv=vk.exports={};Wv.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||m===Yv||mi||b&&s(y))}function h(y,b){var T=y[0],m=y[1];if(T===Yv||Ta||m===Yv||mi)return!1;var k=t.length,S=t[0][0],x=t[0][1],M=0,v,w,g,c,A;for(v=1;vMath.max(w,S)||m>Math.max(g,x)))if(ml||Math.abs(My(h,s))>a)return!0;return!1};Wv.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var h=f+1;h1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var pk=be((Mve,dk)=>{"use strict";dk.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var zk=be((Tve,Nk)=>{"use strict";var gk=fk(),FQ=hk(),d0=Tr(),IQ=mt().dashStyle,h0=Gr(),NQ=Bi(),zQ=fo().makeEventData,x0=wu(),qQ=x0.freeMode,OQ=x0.rectMode,p0=x0.drawMode,Cy=x0.openMode,Ey=x0.selectMode,yk=rl(),mk=e0(),Mk=Ev(),Tk=Uo().clearOutline,Ak=$o(),Ay=Ak.handleEllipse,BQ=Ak.readPaths,UQ=kv().newShapes,HQ=$2(),VQ=wy().activateLastSelection,Zv=er(),GQ=Zv.sorterAsc,kk=Ty(),v0=lh(),qa=nn().getFromId,YQ=mv(),WQ=Hv().redrawReglTraces,Jv=pk(),Yi=Jv.MINSELECT,XQ=kk.filter,Ly=kk.tester,Dy=wv(),xk=Dy.p2r,ZQ=Dy.axValue,JQ=Dy.getTransform;function Ry(e){return e.subplot!==void 0}function KQ(e,r,t,n,a){var o=!Ry(n),i=qQ(a),l=OQ(a),u=Cy(a),s=p0(a),f=Ey(a),h=a==="drawline",p=a==="drawcircle",_=h||p,y=n.gd,b=y._fullLayout,T=f&&b.newselection.mode==="immediate"&&o,m=b._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=JQ(S),M=r-k.left,v=t-k.top;b._calcInverseTransform(y);var w=Zv.apply3DTransform(b._invTransform)(M,v);M=w[0],v=w[1];var g=b._invScaleX,c=b._invScaleY,A=M,d=v,D="M"+M+","+v,E=n.xaxes[0],R=n.yaxes[0],N=E._length,I=R._length,F=e.altKey&&!(p0(a)&&u),L,P,O,B,X,$,ee;Ck(e,y,n),i&&(L=XQ([[M,v]],Jv.BENDPX));var Y=m.selectAll("path.select-outline-"+S.id).data([1]),q=s?b.newshape:b.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var Q=s&&!u?q.fillcolor:"rgba(0,0,0,0)",oe=q.line.color||(o?h0.contrast(y._fullLayout.plot_bgcolor):"#7f7f7f");Y.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":IQ(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(h0.stroke,oe).call(h0.fill,Q).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",D+"Z");var Z=m.append("path").attr("class","zoombox-corners").style({fill:h0.background,stroke:h0.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var se=m.select(".label-temp");se.empty()&&(se=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var j=b._uid+Jv.SELECTID,V=[],re=Kv(y,n.xaxes,n.yaxes,n.subplot);T&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var ne=E._id,ue=R._id;Pk(y,ne,ue,re);for(var ye=(y.layout||{}).selections||[],ke=[],Me=!1,ge=0;ge=0){y._fullLayout._deactivateShape(y);return}if(!s){var ye=b.clickmode;v0.done(j).then(function(){if(v0.clear(j),ne===2){for(Y.remove(),X=0;X-1&&Sk(ue,y,n.xaxes,n.yaxes,n.subplot,n,Y),ye==="event"&&m0(y,void 0);NQ.click(y,ue,S.id)}).catch(Zv.error)}},n.doneFn=function(){Z.remove(),v0.done(j).then(function(){v0.clear(j),!T&&B&&n.selectionDefs&&(B.subtract=F,n.selectionDefs.push(B),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(T||s)&&g0(n,T),n.doneFnCompleted&&n.doneFnCompleted(V),f&&m0(y,ee)}).catch(Zv.error)}}function Sk(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,h=[],p,_,y,b,T,m,k,S,x,M;if(r$(l)){Ck(e,r,o),p=Kv(r,t,n,a);var v=t$(l,p),w=v.pointNumbers.length>0;if(w?n$(p,v):a$(p)&&(k=_k(v))){for(i&&i.remove(),M=0;M=0}function e$(e){return e._fullLayout._activeSelectionIndex>=0}function g0(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;jQ(a)&&a._fullLayout._deactivateShape(a),e$(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=p0(t),u=Ey(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=UQ(s,e)),f&&d0.call("_guiRelayout",a,{shapes:f});var h;u&&!Ry(e)&&(h=HQ(s,e)),h&&(a._fullLayout._noEmitSelectedAtStart=!0,d0.call("_guiRelayout",a,{selections:h}).then(function(){r&&VQ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function bk(e){return e._id}function Kv(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(bk),i=t.map(bk),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function n$(e,r){var t=[],n,a,o,i;for(i=0;i0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function y0(e,r,t){var n;for(n=0;n-1&&r;if(!i&&r){var ne=wk(e,!0);if(ne.length){var ue=ne[0].xref,ye=ne[0].yref;if(ue&&ye){var ke=Fk(ne),Me=Ik([qa(e,ue,"x"),qa(e,ye,"y")]);Me(V,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:H&&m0(e,V),p._reselect=!1}if(!i&&p._deselect){var ge=p._deselect;l=ge.xref,u=ge.yref,l$(l,u,f)||Pk(e,l,u,n),H&&(V.points.length?m0(e,V):Iy(e)),p._deselect=!1}return{eventData:V,selectionTesters:t}}function o$(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";qk.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var b0=be((kve,Ok)=>{"use strict";Ok.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var Cu=be((Cve,Hk)=>{"use strict";var Bk=Ny(),Uk=Sn(),Qv=un(),h$=yt().templatedArray,Sve=b0();Hk.exports=h$("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Uk({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Bk.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Bk.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Qv.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Qv.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Qv.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Qv.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Uk({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var $v=be((Eve,Vk)=>{"use strict";Vk.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Yk=be((Lve,Gk)=>{"use strict";Gk.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var us=be((Dve,jk)=>{"use strict";var Wk=uo().axisHoverFormat,{hovertemplateAttrs:v$,texttemplateAttrs:d$,templatefallbackAttrs:Xk}=ja(),Zk=ni(),p$=Sn(),Jk=Ro().dash,g$=Ro().pattern,y$=mt(),m$=$v(),_0=At().extendFlat,x$=Yk();function Kk(e){return{valType:"any",dflt:0,editType:"calc"}}function Qk(e){return{valType:"any",editType:"calc"}}function $k(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}jk.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Kk("x"),yperiod:Kk("y"),xperiod0:Qk("x0"),yperiod0:Qk("y0"),xperiodalignment:$k("x"),yperiodalignment:$k("y"),xhoverformat:Wk("x"),yhoverformat:Wk("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:d$(),texttemplatefallback:Xk({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:v$({},{keys:m$.eventDataKeys}),hovertemplatefallback:Xk(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:_0({},Jk,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:x$(!0),fillgradient:_0({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:g$,marker:_0({symbol:{valType:"enumerated",values:y$.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:_0({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:_0({},Jk,{arrayOk:!0}),editType:"calc"},Zk("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Zk("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:p$({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var zy=be((Pve,tS)=>{"use strict";var eS=Cu(),rS=us().line,b$=Ro().dash,jv=At().extendFlat,_$=On().overrideAll,w$=yt().templatedArray,Rve=b0();tS.exports=_$(w$("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:jv({},eS.xref,{}),yref:jv({},eS.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:rS.color,width:jv({},rS.width,{min:1,dflt:1}),dash:jv({},b$,{dflt:"dot"})}}),"arraydraw","from-root")});var oS=be((Fve,iS)=>{"use strict";var nS=er(),e1=Lt(),M$=ai(),T$=zy(),aS=rl();iS.exports=function(r,t){M$(r,t,{name:"selections",handleItemDefaults:A$});for(var n=t.selections,a=0;a{"use strict";lS.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var w0=be((Nve,cS)=>{"use strict";var k$=Tr(),uS=er(),fS=nn();cS.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=k$.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,h=u.cartesian,p=a._has("cartesian"),_=0;_{"use strict";var hS=wy(),M0=zk();vS.exports={moduleType:"component",name:"selections",layoutAttributes:zy(),supplyLayoutDefaults:oS(),supplyDrawNewSelectionDefaults:sS(),includeBasePlot:w0()("selections"),draw:hS.draw,drawOne:hS.drawOne,reselect:M0.reselect,prepSelect:M0.prepSelect,clearOutline:M0.clearOutline,clearSelectionsCache:M0.clearSelectionsCache,selectOnClick:M0.selectOnClick}});var FS=be((qve,PS)=>{"use strict";var Hy=tt(),Oa=er(),dS=Oa.numberFormat,S$=Sa(),C$=ov(),r1=Tr(),MS=Oa.strTranslate,E$=Bn(),pS=Gr(),nl=mt(),L$=Bi(),gS=Lt(),D$=Ko(),R$=oi(),TS=wu(),t1=TS.selectingOrDrawing,P$=TS.freeMode,F$=En().FROM_TL,I$=mv(),N$=Hv().redrawReglTraces,z$=fn(),Oy=nn().getFromId,q$=Eu().prepSelect,O$=Eu().clearOutline,B$=Eu().selectOnClick,qy=dy(),Vy=un(),yS=Vy.MINDRAG,Kn=Vy.MINZOOM,mS=!0;function U$(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,h,p,_,y,b,T,m,k,S,x,M,v,w,g,c,A,d,D,E,R,N,I,F;t+=r.yaxis._shift;function L(){if(h=r.xaxis,p=r.yaxis,S=h._length,x=p._length,m=h._offset,k=p._offset,_={},_[h._id]=h,y={},y[p._id]=p,i&&l)for(var me=r.overlays,de=0;de=0){_e._fullLayout._deactivateShape(_e);return}var Ae=_e._fullLayout.clickmode;if(Uy(_e),me===2&&!f&&te(),s)Ae.indexOf("select")>-1&&B$(de,_e,b,T,r.id,B),Ae.indexOf("event")>-1&&L$.click(_e,de,r.id);else if(me===1&&f){var Ie=i?p:h,De=i==="s"||l==="w"?0:1,We=Ie._name+".range["+De+"]",Oe=H$(Ie,De),ze="left",Be="middle";if(Ie.fixedrange)return;i?(Be=i==="n"?"top":"bottom",Ie.side==="right"&&(ze="right")):l==="e"&&(ze="right"),_e._context.showAxisRangeEntryBoxes&&Hy.select(O).call(E$.makeEditable,{gd:_e,immediate:!0,background:_e._fullLayout.paper_bgcolor,text:String(Oe),fill:Ie.tickfont?Ie.tickfont.color:"#444",horizontalAlign:ze,verticalAlign:Be}).on("edit",function(Se){var Le=Ie.d2r(Se);Le!==void 0&&r1.call("_guiRelayout",_e,We,Le)})}}R$.init(B);var ee,Y,q,Q,oe,Z,se,j,V,re;function H(me,de,_e){var Ae=O.getBoundingClientRect();ee=de-Ae.left,Y=_e-Ae.top,e._fullLayout._calcInverseTransform(e);var Ie=Oa.apply3DTransform(e._fullLayout._invTransform)(ee,Y);ee=Ie[0],Y=Ie[1],q={l:ee,r:ee,w:0,t:Y,b:Y,h:0},Q=e._hmpixcount?e._hmlumcount/e._hmpixcount:S$(e._fullLayout.plot_bgcolor).getLuminance(),oe="M0,0H"+S+"V"+x+"H0V0",Z=!1,se="xy",re=!1,j=SS(u,Q,m,k,oe),V=CS(u,m,k)}function ne(me,de){if(e._transitioningWithDuration)return!1;var _e=Math.max(0,Math.min(S,I*me+ee)),Ae=Math.max(0,Math.min(x,F*de+Y)),Ie=Math.abs(_e-ee),De=Math.abs(Ae-Y);q.l=Math.min(ee,_e),q.r=Math.max(ee,_e),q.t=Math.min(Y,Ae),q.b=Math.max(Y,Ae);function We(){se="",q.r=q.l,q.t=q.b,V.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ie>Kn||De>Kn?(se="xy",Ie/S>De/x?(De=Ie*x/S,Y>Ae?q.t=Y-De:q.b=Y+De):(Ie=De*S/x,ee>_e?q.l=ee-Ie:q.r=ee+Ie),V.attr("d",n1(q))):We();else if(v.isSubplotConstrained)if(Ie>Kn||De>Kn){se="xy";var Oe=Math.min(q.l/S,(x-q.b)/x),ze=Math.max(q.r/S,(x-q.t)/x);q.l=Oe*S,q.r=ze*S,q.b=(1-Oe)*x,q.t=(1-ze)*x,V.attr("d",n1(q))}else We();else!g||De0){var Se;if(v.isSubplotConstrained||!w&&g.length===1){for(Se=0;Se1&&(We.maxallowed!==void 0&&A===(We.range[0]1&&(Oe.maxallowed!==void 0&&d===(Oe.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function G$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function SS(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",MS(t,n)).attr("d",a+"Z")}function CS(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:pS.background,stroke:pS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",MS(r,t)).attr("d","M0,0Z")}function ES(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),LS(e,r,a,o)}function LS(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function Uy(e){Hy.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function DS(e){mS&&e.data&&e._context.showTips&&(Oa.notifier(Oa._(e,"Double-click to zoom back out"),"long",e),mS=!1)}function Y$(e,r){return"M"+(e.l-.5)+","+(r-Kn-.5)+"h-3v"+(2*Kn+1)+"h3ZM"+(e.r+.5)+","+(r-Kn-.5)+"h3v"+(2*Kn+1)+"h-3Z"}function W$(e,r){return"M"+(r-Kn-.5)+","+(e.t-.5)+"v-3h"+(2*Kn+1)+"v3ZM"+(r-Kn-.5)+","+(e.b+.5)+"v3h"+(2*Kn+1)+"v-3Z"}function n1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Kn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function _S(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,h,p=(a||{}).xaHash,_=(a||{}).yaHash,y=0;y{"use strict";var X$=tt(),a1=Bi(),Z$=oi(),J$=Ko(),ui=FS().makeDragBox,dn=un().DRAGGERSIZE;i1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){X$.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=ui(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(p){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&a1.hover(r,p,o)},a1.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,Z$.unhover(r,p))},r._context.showAxisDragHandles&&(ui(r,i,l._offset-dn,u._offset-dn,dn,dn,"n","w"),ui(r,i,l._offset+l._length,u._offset-dn,dn,dn,"n","e"),ui(r,i,l._offset-dn,u._offset+u._length,dn,dn,"s","w"),ui(r,i,l._offset+l._length,u._offset+u._length,dn,dn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=dn),ui(r,i,l._offset+l._length*.1,f,l._length*.8,dn,"","ew"),ui(r,i,l._offset,f,l._length*.1,dn,"","w"),ui(r,i,l._offset+l._length*.9,f,l._length*.1,dn,"","e")}if(o===u._mainSubplot){var h=u._mainLinePosition;u.side!=="right"&&(h-=dn),ui(r,i,h,u._offset+u._length*.1,dn,u._length*.8,"ns",""),ui(r,i,h,u._offset+u._length*.9,dn,u._length*.1,"s",""),ui(r,i,h,u._offset,dn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,a1.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,a1.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},i1.updateFx(r)}};i1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";J$(r._draggers,t)}});var zS=be((Bve,NS)=>{"use strict";var IS=Tr();NS.exports=function(r){for(var t=IS.layoutArrayContainers,n=IS.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var K$=Eo(),Yy=Xc(),T0=Fl(),Q$=Bp().sorterAsc,Wy=Tr();A0.containerArrayMatch=zS();var $$=A0.isAddVal=function(r){return r==="add"||K$(r)},qS=A0.isRemoveVal=function(r){return r===null||r==="remove"};A0.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=Wy.getComponentMethod(i,"supplyLayoutDefaults"),u=Wy.getComponentMethod(i,"draw"),s=Wy.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Yy||u===Yy,h=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&T0.warn("Full array edits are incompatible with other edits",i);var _=n[""][""];if(qS(_))t.set(null);else if(Array.isArray(_))t.set(_);else return T0.warn("Unrecognized full array edit value",i,_),!0;return f?!1:(l(h,p),u(r),!0)}var y=Object.keys(n).map(Number).sort(Q$),b=t.get(),T=b||[],m=o(p,i).get(),k=[],S=-1,x=T.length,M,v,w,g,c,A,d,D;for(M=0;MT.length-(d?0:1)){T0.warn("index out of range",i,w);continue}if(A!==void 0)c.length>1&&T0.warn("Insertion & removal are incompatible with edits to the same index.",i,w),qS(A)?k.push(w):d?(A==="add"&&(A={}),T.splice(w,0,A),m&&m.splice(w,0,{})):T0.warn("Unrecognized full object edit value",i,w,A),S===-1&&(S=w);else for(v=0;v=0;M--)T.splice(k[M],1),m&&m.splice(k[M],1);if(T.length?b||t.set(T):t.set(null),f)return!1;if(l(h,p),s!==Yy){var E;if(S===-1)E=y;else{for(x=Math.max(T.length,x),E=[],M=0;M=S));M++)E.push(w);for(M=S;M{"use strict";var VS=nt(),GS=Tr(),Yn=er(),k0=fn(),YS=nn(),WS=Gr(),S0=YS.cleanId,j$=YS.getFromTrace,Xy=GS.traceIs,ej=["x","y","z"];Ba.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Yn.log("Clearing previous rejected promises from queue."),e._promises=[]};Ba.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(k0.subplotsRegistry.cartesian||{}).attrRegex,a=(k0.subplotsRegistry.polar||{}).attrRegex,o=(k0.subplotsRegistry.ternary||{}).attrRegex,i=(k0.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(T.x=1.02,T.xanchor="left"):T.x<-2&&(T.x=-.02,T.xanchor="right"),T.y>3?(T.y=1.02,T.yanchor="bottom"):T.y<-2&&(T.y=-.02,T.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),WS.clean(e),e.template&&e.template.layout&&Ba.cleanLayout(e.template.layout),e};function Lu(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=S0(n,a,!0))}Ba.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Ba.hasParent=function(e,r){for(var t=HS(r);t;){if(t in e)return!0;t=HS(t)}return!1};Ba.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>Yn.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;nYn.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],o=r[n];if(a!==o&&!(t(a,o)?Zy(a,o):!1))return!1}return!0}return!1};Ba.collectionsAreEqual=Zy});var em=be(et=>{"use strict";var u1=tt(),nj=nt(),aj=jp(),ur=er(),_t=ur.nestedProperty,Qy=Lf(),Qn=Aw(),Ua=Tr(),g1=tu(),Ar=fn(),Wn=Lt(),ij=_2(),oj=Da(),Jy=mt(),lj=Gr(),sj=Gy().initInteractions,uj=Ho(),fj=Eu().clearOutline,$S=Pl().dfltConfig,l1=OS(),Xt=XS(),ht=Hv(),al=On(),cj=un().AX_NAME_PATTERN,Ky=0,ZS=5;function hj(e,r,t,n){var a;if(e=ur.getGraphDiv(e),Qy.init(e),ur.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Qy.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!ur.isPlotDiv(e)&&ur.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return et.addFrames(e,a)}eC(e,n),t||(t={}),u1.select(e).classed("js-plotly-plot",!0),Jy.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Xt.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=Xt.cleanLayout(t)),Ar.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(Ij(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),Jy.initGradients(e),Jy.initPatterns(e),u&&Wn.saveShowSpikeInitial(e);var h=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;h&&Ar.doCalcdata(e);for(var p=0;p=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function rC(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),c1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&c1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function yj(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof g.parts[d]!="string";)d--;var D=g.parts[d],E=g.parts[d-1]+"."+D,R=g.parts.slice(0,d).join("."),N=_t(e.layout,R).get(),I=_t(n,R).get(),F=g.get();if(c!==void 0){m[w]=c,k[w]=D==="reverse"?c:go(F);var L=g1.getLayoutValObject(n,g.parts);if(L&&L.impliedEdits&&c!==null)for(var P in L.impliedEdits)S(ur.relativeAttr(w,P),L.impliedEdits[P]);if(["width","height"].indexOf(w)!==-1)if(c){S("autosize",null);var O=w==="height"?"width":"height";S(O,n[O])}else n[w]=e._initialAutoSize[w];else if(w==="autosize")S("width",c?null:n.width),S("height",c?null:n.height);else if(E.match(fC))v(E),_t(n,R+"._inputRange").set(null);else if(E.match(cC)){v(E),_t(n,R+"._inputRange").set(null);var B=_t(n,R).get();B._inputDomain&&(B._input.domain=B._inputDomain.slice())}else E.match(_j)&&_t(n,R+"._inputDomain").set(null);if(D==="type"){M=N;var X=I.type==="linear"&&c==="log",$=I.type==="log"&&c==="linear";if(X||$){if(!M||!M.range)S(R+".autorange",!0);else if(I.autorange)X&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var ee=M.range[0],Y=M.range[1];X?(ee<=0&&Y<=0&&S(R+".autorange",!0),ee<=0?ee=Y/1e6:Y<=0&&(Y=ee/1e6),S(R+".range[0]",Math.log(ee)/Math.LN10),S(R+".range[1]",Math.log(Y)/Math.LN10)):(S(R+".range[0]",Math.pow(10,ee)),S(R+".range[1]",Math.pow(10,Y)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[g.parts[0]]&&g.parts[1]==="radialaxis"&&delete n[g.parts[0]]._subplot.viewInitial["radialaxis.range"],Ua.getComponentMethod("annotations","convertCoords")(e,I,c,S),Ua.getComponentMethod("images","convertCoords")(e,I,c,S)}else S(R+".autorange",!0),S(R+".range",null);_t(n,R+"._inputRange").set(null)}else if(D.match(cj)){var q=_t(n,w).get(),Q=(c||{}).type;(!Q||Q==="-")&&(Q="linear"),Ua.getComponentMethod("annotations","convertCoords")(e,q,Q,S),Ua.getComponentMethod("images","convertCoords")(e,q,Q,S)}var oe=l1.containerArrayMatch(w);if(oe){f=oe.array,h=oe.index;var Z=oe.property,se=L||{editType:"calc"};h!==""&&Z===""&&(l1.isAddVal(c)?k[w]=null:l1.isRemoveVal(c)?k[w]=(_t(t,f).get()||[])[h]:ur.warn("unrecognized full object value",r)),al.update(T,se),s[f]||(s[f]={});var j=s[f][h];j||(j=s[f][h]={}),j[Z]=c,delete r[w]}else D==="reverse"?(N.range?N.range.reverse():(S(R+".autorange",!0),N.range=[1,0]),I.autorange?T.calc=!0:T.plot=!0):(w==="dragmode"&&(c===!1&&F!==!1||c!==!1&&F===!1)||n._has("scatter-like")&&n._has("regl")&&w==="dragmode"&&(c==="lasso"||c==="select")&&!(F==="lasso"||F==="select")?T.plot=!0:L?al.update(T,L):T.calc=!0,g.set(c))}}for(f in s){var V=l1.applyContainerArrayChanges(e,o(t,f),s[f],T,o);V||(T.plot=!0)}for(var re in x){M=Wn.getFromId(e,re);var H=M&&M._constraintGroup;if(H){T.calc=!0;for(var ne in H)x[ne]||(Wn.getFromId(e,ne)._constraintShrinkable=!0)}}(vC(e)||r.height||r.width)&&(T.plot=!0);var ue=n.shapes;for(h=0;h1;)if(n.pop(),t=_t(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Tj(e,r){for(var t=0;t[R,e._ev.listeners(R)]);o=et.newPlot(e,r,t,n).then(()=>{for(let[R,N]of E)N.forEach(I=>e.on(R,I));return et.react(e,r,t,n)})}else{e.data=r||[],Xt.cleanData(e.data),e.layout=t||{},Xt.cleanLayout(e.layout),kj(e.data,e.layout,l,u),Ar.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,p=e._fullLayout,_=p.datarevision===void 0,y=p.transition,b=Ej(e,u,p,_,y),T=b.newDataRevision,m=Cj(e,l,h,_,y,T);if(vC(e)&&(b.layoutReplot=!0),m.calc||b.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(p),S=0;S(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function Cj(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=al.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(_){var y=g1.getTraceValObject(s,_);return!s._module.animatable&&y.anim&&(y.anim=!1),y}var h={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:o,gd:e},p={};for(u=0;u=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var h=0;return function(){if(s&&++h===f)return s()}}return new Promise(function(s,f){function h(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var D=n._frameQueue.pop();D.onInterrupt&&D.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function p(D){if(D.length!==0){for(var E=0;En._timeToNext&&y()};D()}var T=0;function m(D){return Array.isArray(a)?T>=a.length?D.transitionOpts=a[T]:D.transitionOpts=a[0]:D.transitionOpts=a,T++,D}var k,S,x=[],M=r==null,v=Array.isArray(r),w=!M&&!v&&ur.isPlainObject(r);if(w)x.push({type:"object",data:m(ur.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&d.push(S);x=d}}x.length>0?p(x):(e.emit("plotly_animated"),s())})}function Dj(e,r,t){if(e=ur.getGraphDiv(e),r==null)return Promise.resolve();if(!ur.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],h={};for(n=r.length-1;n>=0;n--)if(ur.isPlainObject(r[n])){var p=r[n].name,_=(u[p]||h[p]||{}).name,y=r[n].name,b=u[_]||h[_];_&&y&&typeof y=="number"&&b&&Kyg.index?-1:w.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&ur.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Ar.modifyFrames,u=Ar.modifyFrames,s=[e,i],f=[e,o];return Qn&&Qn.add(e,l,s,u,f),Ar.modifyFrames(e,o)}function Pj(e){e=ur.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Ar.cleanPlot([],{},t,r),Ar.purge(e),Qy.purge(e),r._container&&r._container.remove(),delete e._context,e}function Fj(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ur.equalDomRects(t,r._lastBBox)){var n=r._invTransform=ur.inverseTransformMatrix(ur.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function Ij(e){var r=u1.select(e),t=e._fullLayout;if(t._calcInverseTransform=Fj,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};u1.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=ur.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(uj.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}et.animate=Lj;et.addFrames=Dj;et.deleteFrames=Rj;et.addTraces=oC;et.deleteTraces=lC;et.extendTraces=aC;et.moveTraces=$y;et.prependTraces=iC;et.newPlot=gj;et._doPlot=hj;et.purge=Pj;et.react=Sj;et.redraw=pj;et.relayout=C0;et.restyle=h1;et.setPlotConfig=vj;et.update=d1;et._guiRelayout=jy(C0);et._guiRestyle=jy(h1);et._guiUpdate=jy(d1);et._storeDirectGUIEdit=bj});var fs=be(Wi=>{"use strict";var Nj=Tr();Wi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Wi.getRedrawFunc=function(e){return function(){Nj.getComponentMethod("colorbar","draw")(e)}};Wi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Wi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var dC=window.URL||window.webkitURL;Wi.createObjectURL=function(e){return dC.createObjectURL(e)};Wi.revokeObjectURL=function(e){return dC.revokeObjectURL(e)};Wi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=zj(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Wi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function zj(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var tm=tt(),Yve=er(),qj=mt(),Oj=Gr(),Wve=Ho(),rm=/"/g,cs="TOBESTRIPPED",Bj=new RegExp(`("${cs})|(${cs}")|("${cs})|(${cs}")`,"g"),Uj=["&","&","&",""",""",""","'","'","'"],Hj=["<","<","<"],Vj=[">",">",">"];function Gj(e){let r=tm.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,n=>{let a=n.toLowerCase();return Uj.includes(a)?n:Hj.includes(a)?"<":Vj.includes(a)?">":n.includes("<")||n.includes(">")?"":r.html(n).text()});return r.remove(),t}function Yj(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}pC.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(qj.setRect,0,0,l,u).call(Oj.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var Wj=er(),Xj=dh().EventEmitter,L0=fs();function Zj(e){var r=e.emitter||new Xj,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,h=e.height||150,p=s*f,_=s*h,y=u.getContext("2d",{willReadFrequently:!0}),b=new o,T,m;l==="svg"||Wj.isSafari()?m=L0.encodeSVG(i):(T=L0.createBlob(i,"svg"),m=L0.createObjectURL(T)),u.width=p,u.height=_,b.onload=function(){var k;switch(T=null,L0.revokeObjectURL(m),l!=="svg"&&y.drawImage(b,0,0,p,_),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=m;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},b.onerror=function(k){if(T=null,L0.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},b.src=m});return e.promise?t:r}gC.exports=Zj});var am=be((Jve,xC)=>{"use strict";var yC=nt(),mC=em(),Jj=fn(),Xi=er(),D0=fs(),Kj=m1(),Qj=x1(),$j=vf().version,nm={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function jj(e,r){r=r||{};var t,n,a,o;Xi.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Xi.getGraphDiv(e),t=Xi.extendDeep([],e.data),n=Xi.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(v){return!(v in r)||Xi.validate(r[v],nm[v])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+Xi.join2(nm.format.values,", "," or ")+".");var l={};function u(v,w){return Xi.coerce(r,l,nm,v,w)}var s=u("format"),f=u("width"),h=u("height"),p=u("scale"),_=u("setBackground"),y=u("imageDataOnly"),b=document.createElement("div");b.style.position="absolute",b.style.left="-5000px",document.body.appendChild(b);var T=Xi.extendFlat({},n);f?T.width=f:r.width===null&&yC(o.width)&&(T.width=o.width),h?T.height=h:r.height===null&&yC(o.height)&&(T.height=o.height);var m=Xi.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:_}),k=D0.getRedrawFunc(b);function S(){return new Promise(function(v){setTimeout(v,D0.getDelay(b._fullLayout))})}function x(){return new Promise(function(v,w){var g=Kj(b,s,p),c=b._fullLayout.width,A=b._fullLayout.height;function d(){mC.purge(b),document.body.removeChild(b)}if(s==="full-json"){var D=Jj.graphJson(b,!1,"keepdata","object",!0,!0);return D.version=$j,D=JSON.stringify(D),d(),v(y?D:D0.encodeJSON(D))}if(d(),s==="svg")return v(y?g:D0.encodeSVG(g));var E=document.createElement("canvas");E.id=Xi.randstr(),Qj({format:s,width:c,height:A,scale:p,canvas:E,svg:g,promise:!0}).then(v).catch(w)})}function M(v){return y?v.replace(D0.IMAGE_URL_PREFIX,""):v}return new Promise(function(v,w){mC.newPlot(b,t,T,m).then(k).then(S).then(x).then(function(g){v(M(g))}).catch(function(g){w(g)})})}xC.exports=jj});var wC=be((Kve,_C)=>{"use strict";var Ha=er(),eee=fn(),ree=tu(),tee=Pl().dfltConfig,fi=Ha.isPlainObject,vs=Array.isArray,im=Ha.isArrayOrTypedArray;_C.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=ree.get(),a=[],o={_context:Ha.extendFlat({},tee)},i,l;vs(r)?(o.data=Ha.extendDeep([],r),i=r):(o.data=[],i=[],a.push(pn("array","data"))),fi(t)?(o.layout=Ha.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(pn("object","layout"))),eee.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fh.length&&n.push(pn("unused",a,s.concat(h.length)));var m=h.length,k=Array.isArray(T);k&&(m=Math.min(m,T.length));var S,x,M,v,w;if(p.dimensions===2)for(x=0;xh[x].length&&n.push(pn("unused",a,s.concat(x,h[x].length)));var g=h[x].length;for(S=0;S<(k?Math.min(g,T[x].length):g);S++)M=k?T[x][S]:T,v=f[x][S],w=h[x][S],Ha.validate(v,M)?w!==v&&w!==+v&&n.push(pn("dynamic",a,s.concat(x,S),v,w)):n.push(pn("value",a,s.concat(x,S),v))}else n.push(pn("array",a,s.concat(x),f[x]));else for(x=0;x{"use strict";var uee=er(),_1=fs();function fee(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=_1.createBlob(e,t),s=_1.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),_1.revokeObjectURL(s),u=null,i(r);if(uee.isSafari()){var f=t==="svg"?",":";base64,";return _1.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}MC.exports=fee});var om=be((jve,kC)=>{"use strict";var AC=er(),cee=am(),hee=TC(),$ve=fs();function vee(e,r){var t;return AC.isPlainObject(e)||(t=AC.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var o=cee(e,r),i=r.filename||e.fn||"newplot";i+="."+r.format.replace("-","."),o.then(function(l){return t&&(t._snapshotInProgress=!1),hee(l,i,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}kC.exports=vee});var DC=be(lm=>{"use strict";var ca=er(),ha=ca.isPlainObject,SC=tu(),CC=fn(),dee=Cn(),EC=yt(),LC=Pl().dfltConfig;lm.makeTemplate=function(e){e=ca.isPlainObject(e)?e:ca.getGraphDiv(e),e=ca.extendDeep({_context:LC},{data:e.data,layout:e.layout}),CC.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(_){var y={};R0(_,y,gee.bind(null,_));var b=ca.coerce(_,{},dee,"type"),T=n.data[b];T||(T=n.data[b]=[]),T.push(y)}),R0(t,n.layout,pee.bind(null,t)),delete n.layout.template;var a=t.template;if(ha(a)){var o=a.layout,i,l,u,s,f,h;ha(o)&&w1(o,n.layout);var p=a.data;if(ha(p)){for(l in n.data)if(u=p[l],Array.isArray(u)){for(f=n.data[l],h=f.length,s=u.length,i=0;im?i.push({code:"unused",traceType:_,templateCount:T,dataCount:m}):m>T&&i.push({code:"reused",traceType:_,templateCount:T,dataCount:m})}}function k(S,x){for(var M in S)if(M.charAt(0)!=="_"){var v=S[M],w=Va(S,M,x);ha(v)?(Array.isArray(S)&&v._template===!1&&v.templateitemname&&i.push({code:"missing",path:w,templateitemname:v.templateitemname}),k(v,w)):Array.isArray(v)&&yee(v)&&k(v,w)}}if(k({data:u,layout:l},""),i.length)return i.map(mee)};function yee(e){for(var r=0;r{"use strict";var an=em();Et._doPlot=an._doPlot;Et.newPlot=an.newPlot;Et.restyle=an.restyle;Et.relayout=an.relayout;Et.redraw=an.redraw;Et.update=an.update;Et._guiRestyle=an._guiRestyle;Et._guiRelayout=an._guiRelayout;Et._guiUpdate=an._guiUpdate;Et._storeDirectGUIEdit=an._storeDirectGUIEdit;Et.react=an.react;Et.extendTraces=an.extendTraces;Et.prependTraces=an.prependTraces;Et.addTraces=an.addTraces;Et.deleteTraces=an.deleteTraces;Et.moveTraces=an.moveTraces;Et.purge=an.purge;Et.addFrames=an.addFrames;Et.deleteFrames=an.deleteFrames;Et.animate=an.animate;Et.setPlotConfig=an.setPlotConfig;var xee=wf().getGraphDiv,bee=Fv().eraseActiveShape;Et.deleteActiveShape=function(e){return bee(xee(e))};Et.toImage=am();Et.validate=wC();Et.downloadImage=om();var RC=DC();Et.makeTemplate=RC.makeTemplate;Et.validateTemplate=RC.validateTemplate});var IC=be((t1e,FC)=>{"use strict";var sm=er(),_ee=Tr();FC.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=_ee.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=sm.minRowLength(o);i?l=Math.min(s,sm.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=sm.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var OC=be((n1e,qC)=>{"use strict";var NC=er().dateTick0,wee=ln(),Mee=wee.ONEWEEK;function zC(e,r){return e%Mee===0?NC(r,1):NC(r,0)}qC.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",zC(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",zC(l,t.ycalendar)),a("yperiodalignment"))}}});var HC=be((a1e,UC)=>{"use strict";var BC=["orientation","groupnorm","stackgaps"];UC.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var h={orientation:t.x&&!t.y?"h":"v"},p=0;p{"use strict";var VC=Gr(),GC=Ei().hasColorscale,YC=Di(),Tee=sa();WC.exports=function(r,t,n,a,o,i={}){var l=Tee.isBubble(r),u=(r.line||{}).color,s;if(u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),GC(r,"marker")&&YC(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=VC.background:s=VC.defaultLine,o("marker.line.color",s),GC(r,"marker.line")&&YC(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0),i.noLineDash||o("marker.line.dash")),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var fm=be((o1e,XC)=>{"use strict";var Aee=er().isArrayOrTypedArray,kee=Ei().hasColorscale,See=Di();XC.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),kee(r,"line"))See(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Aee(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var JC=be((l1e,ZC)=>{"use strict";ZC.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var cm=be((s1e,KC)=>{"use strict";var Cee=er();KC.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Cee.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var jC=be((u1e,$C)=>{"use strict";var T1=Gr(),QC=er().isArrayOrTypedArray;function Eee(e){for(var r=T1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var eE=er(),Lee=Tr(),Dee=us(),Ree=$v(),Du=sa(),Pee=IC(),Fee=OC(),Iee=HC(),Nee=um(),zee=fm(),rE=JC(),qee=cm(),Oee=jC(),Bee=er().coercePattern;tE.exports=function(r,t,n,a){function o(_,y){return eE.coerce(r,t,Dee,_,y)}var i=Pee(r,t,a,o);if(i||(t.visible=!1),!!t.visible){Fee(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=Iee(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i{"use strict";var Uee=a0().getAxisGroup;aE.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=Uee(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),h=s[u];h||(h=s[u]={});var p=h[f];p?p.traces.push(t):p=h[f]={traces:[t],alignmentIndex:Object.keys(h).length,offsetGroups:{}};var _=a("offsetgroup")||"",y=p.offsetGroups,b=y[_];t._offsetIndex=0,(o!=="group"||_)&&(b||(b=y[_]={offsetIndex:Object.keys(y).length}),t._offsetIndex=b.offsetIndex)}});var lE=be((h1e,oE)=>{"use strict";var Hee=er(),Vee=iE(),Gee=us();oE.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return Hee.coerce(a._input,a,Gee,p)}if(t.scattermode==="group")for(o=0;o=0;f--){var h=r[f];if(h.type==="scatter"&&h.xaxis===u.xaxis&&h.yaxis===u.yaxis){h.opacity=void 0;break}}}}}});var uE=be((v1e,sE)=>{"use strict";var Yee=er(),Wee=xh();sE.exports=function(e,r){function t(a,o){return Yee.coerce(e,r,Wee,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var hE=be((d1e,cE)=>{"use strict";var Xee=nt(),fE=er(),Zee=fE.dateTime2ms,A1=fE.incrementMonth,Jee=ln(),Kee=Jee.ONEAVGMONTH;cE.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(Xee(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",h=o==="end",p=r[n+"period0"],_=Zee(p,s)||0,y=[],b=[],T=[],m=a.length,k=0;kS;)v=A1(v,-l,s);for(;v<=S;)v=A1(v,l,s);M=A1(v,-l,s)}else{for(x=Math.round((S-_)/i),v=_+x*i;v>S;)v-=i;for(;v<=S;)v+=i;M=v-i}y[k]=f?M:h?v:(M+v)/2,b[k]=M,T[k]=v}return{vals:y,starts:b,ends:T}}});var dm=be((p1e,dE)=>{"use strict";var hm=Ei().hasColorscale,vm=Go(),vE=sa();dE.exports=function(r,t){vE.hasLines(t)&&hm(t,"line")&&vm(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),vE.hasMarkers(t)&&(hm(t,"marker")&&vm(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),hm(t,"marker.line")&&vm(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var k1=be((g1e,pE)=>{"use strict";var zt=er();pE.exports=function(r,t){for(var n=0;n{"use strict";var gE=er();yE.exports=function(r,t){gE.isArrayOrTypedArray(t.selectedpoints)&&gE.tagSelected(r,t)}});var xm=be((m1e,AE)=>{"use strict";var xE=nt(),gm=er(),P0=Lt(),bE=hE(),pm=ln().BADNUM,ym=sa(),Qee=dm(),$ee=k1(),jee=mE();function ere(e,r){var t=e._fullLayout,n=r._xA=P0.getFromId(e,r.xaxis||"x","x"),a=r._yA=P0.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=bE(r,n,"x",o),u=bE(r,a,"y",i),s=l.vals,f=u.vals,h=r._length,p=new Array(h),_=r.ids,y=mm(r,t,n,a),b=!1,T,m,k,S,x,M;ME(t,r);var v="x",w="y",g;if(y)gm.pushUnique(y.traceIndices,r.index),T=y.orientation==="v",T?(w="s",g="x"):(v="s",g="y"),x=y.stackgaps==="interpolate";else{var c=wE(r,h);_E(e,r,n,a,s,f,c)}var A=!!r.xperiodalignment,d=!!r.yperiodalignment;for(m=0;mm&&p[S].gap;)S--;for(M=p[S].s,k=p.length-1;k>S;k--)p[k].s=M;for(;m{"use strict";kE.exports=S1;var rre=er().distinctVals;function S1(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;o{"use strict";CE.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var FE=be((_1e,PE)=>{"use strict";var Ga=nt(),{isArrayOrTypedArray:yo}=er(),{BADNUM:Ru}=ln(),tre=Tr(),F0=Lt(),{getAxisGroup:nre}=a0(),C1=SE(),{TEXTPAD:are}=EE(),{LINE_SPACING:ire}=En(),{BR_TAG_ALL:ore}=Bn();function lre(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;su+i||!Ga(l))}for(var f=0;fn(o))):n(e.text);let a=e.outsidetextfont.size*ire*t+are;return{ppadplus:r.some(o=>o.s<0)?a:0,ppadminus:r.some(o=>o.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function yre(e,r,t,n){for(var a=Pu(n),o=0;o{"use strict";var IE=xm(),NE=FE().setGroupPositions;function xre(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;sc[f]&&f{"use strict";var _re=mt(),HE=ln(),I0=HE.BADNUM,VE=HE.LOG_CLIP,OE=VE+.5,BE=VE-.5,E1=er(),wre=E1.segmentsIntersect,UE=E1.constrain,km=$v();GE.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,h=n.marker,p=t.connectGaps,_=t.baseTolerance,y=t.shape,b=y==="linear",T=n.fill&&n.fill!=="none",m=[],k=km.minTolerance,S=r.length,x=new Array(S),M=0,v,w,g,c,A,d,D,E,R,N,I,F,L,P,O,B;function X(Be){var Se=r[Be];if(!Se)return!1;var Le=t.linearized?a.l2p(Se.x):a.c2p(Se.x),Ye=t.linearized?o.l2p(Se.y):o.c2p(Se.y);if(Le===I0){if(i&&(Le=a.c2p(Se.x,!0)),Le===I0)return!1;l&&Ye===I0&&(Le*=Math.abs(a._m*s*(a._m>0?OE:BE)/(o._m*u*(o._m>0?OE:BE)))),Le*=1e3}if(Ye===I0){if(l&&(Ye=o.c2p(Se.y,!0)),Ye===I0)return!1;Ye*=1e3}return[Le,Ye]}function $(Be,Se,Le,Ye){var Xe=Le-Be,$e=Ye-Se,Qe=.5-Be,je=.5-Se,ir=Xe*Xe+$e*$e,yr=Xe*Qe+$e*je;if(yr>0&&yr1||Math.abs(Qe.y-Le[0][1])>1)&&(Qe=[Qe.x,Qe.y],Ye&&Q(Qe,Be)se||Be[1]V)return[UE(Be[0],Z,se),UE(Be[1],j,V)]}function Ce(Be,Se){if(Be[0]===Se[0]&&(Be[0]===Z||Be[0]===se)||Be[1]===Se[1]&&(Be[1]===j||Be[1]===V))return!0}function Fe(Be,Se){var Le=[],Ye=Ee(Be),Xe=Ee(Se);return Ye&&Xe&&Ce(Ye,Xe)||(Ye&&Le.push(Ye),Xe&&Le.push(Xe)),Le}function ie(Be,Se,Le){return function(Ye,Xe){var $e=Ee(Ye),Qe=Ee(Xe),je=[];if($e&&Qe&&Ce($e,Qe))return je;$e&&je.push($e),Qe&&je.push(Qe);var ir=2*E1.constrain((Ye[Be]+Xe[Be])/2,Se,Le)-(($e||Ye)[Be]+(Qe||Xe)[Be]);if(ir){var yr;$e&&Qe?yr=ir>0==$e[Be]>Qe[Be]?$e:Qe:yr=$e||Qe,yr[Be]+=ir}return je}}var J;y==="linear"||y==="spline"?J=ge:y==="hv"||y==="vh"?J=Fe:y==="hvh"?J=ie(0,Z,se):y==="vhv"&&(J=ie(1,j,V));function te(Be,Se){var Le=Se[0]-Be[0],Ye=(Se[1]-Be[1])/Le,Xe=(Be[1]*Se[0]-Se[1]*Be[0])/Le;return Xe>0?[Ye>0?Z:se,V]:[Ye>0?se:Z,j]}function ae(Be){var Se=Be[0],Le=Be[1],Ye=Se===x[M-1][0],Xe=Le===x[M-1][1];if(!(Ye&&Xe))if(M>1){var $e=Se===x[M-2][0],Qe=Le===x[M-2][1];Ye&&(Se===Z||Se===se)&&$e?Qe?M--:x[M-1]=Be:Xe&&(Le===j||Le===V)&&Qe?$e?M--:x[M-1]=Be:x[M++]=Be}else x[M++]=Be}function ce(Be){x[M-1][0]!==Be[0]&&x[M-1][1]!==Be[1]&&ae([ue,ye]),ae(Be),ke=null,ue=ye=0}var pe=E1.isArrayOrTypedArray(h);function ve(Be){if(Be&&f&&(Be.i=v,Be.d=r,Be.trace=n,Be.marker=pe?h[Be.i]:h,Be.backoff=f),ee=Be[0]/u,Y=Be[1]/s,H=Be[0]se?se:0,ne=Be[1]V?V:0,H||ne){if(!M)x[M++]=[H||Be[0],ne||Be[1]];else if(ke){var Se=J(ke,Be);Se.length>1&&(ce(Se[0]),x[M++]=Se[1])}else Me=J(x[M-1],Be)[0],x[M++]=Me;var Le=x[M-1];H&&ne&&(Le[0]!==H||Le[1]!==ne)?(ke&&(ue!==H&&ye!==ne?ae(ue&&ye?te(ke,Be):[ue||H,ye||ne]):ue&&ye&&ae([ue,ye])),ae([H,ne])):ue-H&&ye-ne&&ae([H||ue,ne||ye]),ke=Be,ue=H,ye=ne}else ke&&ce(J(ke,Be)[0]),x[M++]=Be}for(v=0;vq(d,xe))break;g=d,L=R[0]*E[0]+R[1]*E[1],L>I?(I=L,c=d,D=!1):L=r.length||!d)break;ve(d),w=d}}ke&&ae([ue||ke[0],ye||ke[1]]),m.push(x.slice(0,M))}var me=y.slice(y.length-1);if(f&&me!=="h"&&me!=="v"){for(var de=!1,_e=-1,Ae=[],Ie=0;Ie{"use strict";var WE={tonextx:1,tonexty:1,tonext:1};XE.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,h=-1,p=0,_=-1;for(o=0;o=0?u=_:(u=_=p,p++),u{"use strict";var ci=tt(),Mre=Tr(),N0=er(),Fu=N0.ensureSingle,KE=N0.identity,Ot=mt(),Iu=sa(),Tre=YE(),Are=ZE(),L1=Ty().tester;QE.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,h=Are(r,t,n);if(l=a.selectAll("g.trace").data(h,function(_){return _[0].trace.uid}),l.enter().append("g").attr("class",function(_){return"trace scatter trace"+_[0].trace.uid}).style("stroke-miterlimit",2),l.order(),kre(r,l,t),f){i&&(u=i());var p=ci.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});p.each(function(){a.selectAll("g.trace").each(function(_,y){JE(r,y,t,_,h,this,o)})})}else l.each(function(_,y){JE(r,y,t,_,h,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function kre(e,r,t){r.each(function(n){var a=Fu(ci.select(this),"g","fills");Ot.setClipUrl(a,t.layerClipId,e);var o=n[0].trace;o._ownFill=null,o._nextFill=null;var i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,KE);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=Fu(ci.select(this),"path","js-fill")})})}function JE(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Sre(e,r,t,n,a);var s=!!i&&i.duration>0;function f(ie){return s?ie.transition():ie}var h=t.xaxis,p=t.yaxis,_=n[0].trace,y=_.line,b=ci.select(o),T=Fu(b,"g","errorbars"),m=Fu(b,"g","lines"),k=Fu(b,"g","points"),S=Fu(b,"g","text");if(Mre.getComponentMethod("errorbars","plot")(e,T,t,i),_.visible!==!0)return;f(b).style("opacity",_.opacity);var x,M,v=_.fill.charAt(_.fill.length-1);v!=="x"&&v!=="y"&&(v="");var w,g;v==="y"?(w=1,g=p.c2p(0,!0)):v==="x"&&(w=0,g=h.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=b;var c="",A=[],d=_._prevtrace,D=null,E=null;d&&(c=d._prevRevpath||"",M=d._nextFill,A=d._ownPolygons,D=d._fillsegments,E=d._fillElement);var R,N,I="",F="",L,P,O,B,X,$,ee=[];_._polygons=[];var Y=[],q=[],Q=N0.noop;if(x=_._ownFill,Iu.hasLines(_)||_.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(y.shape)!==-1?(L=Ot.steps(y.shape),P=Ot.steps(y.shape.split("").reverse().join(""))):y.shape==="spline"?L=P=function(ie){var J=ie[ie.length-1];return ie.length>1&&ie[0][0]===J[0]&&ie[0][1]===J[1]?Ot.smoothclosed(ie.slice(1),y.smoothing):Ot.smoothopen(ie,y.smoothing)}:L=P=function(ie){return"M"+ie.join("L")},O=function(ie){return P(ie.reverse())},q=Tre(n,{xaxis:h,yaxis:p,trace:_,connectGaps:_.connectgaps,baseTolerance:Math.max(y.width||1,3)/4,shape:y.shape,backoff:y.backoff,simplify:y.simplify,fill:_.fill}),Y=new Array(q.length);var oe=0;for(u=0;u=l[0]&&b.x<=l[1]&&b.y>=u[0]&&b.y<=u[1]}),p=Math.ceil(h.length/f),_=0;a.forEach(function(b,T){var m=b[0].trace;Iu.hasMarkers(m)&&m.marker.maxdisplayed>0&&T{"use strict";jE.exports={container:"marker",min:"cmin",max:"cmax"}});var tL=be((S1e,rL)=>{"use strict";var D1=Lt();rL.exports=function(r,t,n){var a={},o={_fullLayout:n},i=D1.getFromTrace(o,t,"x"),l=D1.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=D1.tickText(i,i.c2l(u),!0).text,a.yLabel=D1.tickText(l,l.c2l(s),!0).text,a}});var Lm=be((C1e,nL)=>{"use strict";var Sm=tt(),Nu=mt(),Cre=Tr();function Ere(e){var r=Sm.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=Sm.select(this),a=t.trace||t[0].trace;Cm(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Sm.select(this),a=t.trace||t[0].trace;Em(n,a,e)}),r.selectAll("g.trace path.js-line").call(Nu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Nu.fillGroupStyle,e,!1),Cre.getComponentMethod("errorbars","style")(r)}function Cm(e,r,t){Nu.pointStyle(e.selectAll("path.point"),r,t)}function Em(e,r,t){Nu.textPointStyle(e.selectAll("text"),r,t)}function Lre(e,r,t){var n=r[0].trace;n.selectedpoints?(Nu.selectedPointStyle(t.selectAll("path.point"),n),Nu.selectedTextStyle(t.selectAll("text"),n)):(Cm(t,n,e),Em(t,n,e))}nL.exports={style:Ere,stylePoints:Cm,styleText:Em,styleOnSelect:Lre}});var iL=be((E1e,aL)=>{"use strict";var zu=Gr(),Dre=sa();aL.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&zu.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&zu.opacity(o)?o:i&&zu.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?zu.opacity(a)<.3?zu.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&zu.opacity(n)&&Dre.hasLines(r)&&r.line.width?n:r.fillcolor)}});var sL=be((L1e,lL)=>{"use strict";var R1=er(),oL=Bi(),Rre=Tr(),Pre=iL(),Dm=Gr(),Fre=R1.fillText;lL.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),h=[s,f],p=i.hoveron||"",_=i.mode.indexOf("markers")!==-1?3:.5,y=!!i.xperiodalignment,b=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var T=function(F){if(y){var L=l.c2p(F.xStart),P=l.c2p(F.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),B=1-1/O,X=Math.abs(l.c2p(F.x)-s);return X=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),B=1-1/O,X=Math.abs(u.c2p(F.y)-f);return Xee!=V>=ee&&(Z=Q[q-1][0],se=Q[q][0],V-j&&(oe=Z+(se-Z)*(ee-j)/(V-j),O=Math.min(O,oe),B=Math.max(B,oe)));return O=Math.max(O,0),B=Math.min(B,l._length),{x0:O,x1:B,y0:ee,y1:ee}}if(p.indexOf("fills")!==-1&&i._fillElement){var R=D(i._fillElement)&&!D(i._fillExclusionElement);if(R){var N=E(i._polygons);N===null&&(N={x0:h[0],x1:h[0],y0:h[1],y1:h[1]});var I=Dm.defaultLine;return Dm.opacity(i.fillcolor)?I=i.fillcolor:Dm.opacity((i.line||{}).color)&&(I=i.line.color),R1.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:I,hovertemplate:!1}),delete r.index,i.text&&!R1.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var cL=be((D1e,fL)=>{"use strict";var uL=sa();fL.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,h,p=!uL.hasMarkers(l)&&!uL.hasText(l);if(p)return[];if(t===!1)for(u=0;u{"use strict";hL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Pm=be((P1e,gL)=>{"use strict";var z0=Tr().traceIs,Rm=e2();gL.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(Ire(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function Ire(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=Nre(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!z0(o,"cartesian")||z0(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,pL(o,n)){var s=dL(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(pL(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function dL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function pL(e,r){var t=dL(e),n=z0(e,"box-violin"),a=z0(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var mL=be((F1e,yL)=>{"use strict";var zre=Zn().isTypedArraySpec;function qre(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o0||zre(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=qre(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var _L=be((I1e,bL)=>{"use strict";var xL=Sa().mix,Ore=Si(),Bre=er();bL.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(g,c){return Bre.coerce2(r,t,a.attributes,g,c)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=xL(o,a.bgColor,a.blend||Ore.lightFraction).toRgbString(),h=i("gridcolor",f),p=i("gridwidth"),_=i("griddash"),y=n("showgrid",a.showGrid||!!h||!!p||!!_);if(y||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var b=xL(t.gridcolor,a.bgColor,67).toRgbString(),T=i("minor.gridcolor",b),m=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!T||!!m||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var x=i("zerolinelayer"),M=i("zerolinecolor",o),v=i("zerolinewidth"),w=n("zeroline",a.showGrid||!!M||!!v);w||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var F1=be((N1e,SL)=>{"use strict";var wL=nt(),Ure=Tr(),q0=er(),Hre=yt(),Vre=ai(),Fm=Da(),ML=Mg(),TL=Ag(),Gre=Cg(),Yre=Eg(),Wre=mL(),Xre=_L(),Zre=_2(),AL=Gh(),P1=un().WEEKDAY_PATTERN,Jre=un().HOUR_PATTERN;SL.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},h=t.type||f.type||"-",p;if(h==="date"){var _=Ure.getComponentMethod("calendars","handleDefaults");_(r,t,"calendar",a.calendar),a.noTicklabelmode||(p=n("ticklabelmode"))}!a.noTicklabelindex&&(h==="date"||h==="linear")&&n("ticklabelindex");var y="";(!a.noTicklabelposition||h==="multicategory")&&(y=q0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:p==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",y.indexOf("inside")!==-1?"hide past domain":h==="category"||h==="multicategory"?"allow":"hide past div"),AL(t,o),Zre(r,t,n,a),Wre(r,t,n,a),a.noHover||(h!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var b=n("color"),T=b!==Fm.color.dflt?b:l.color,m=u.label||o._dfltTitle[i];if(Yre(r,t,n,h,a),!s)return t;n("title.text",m),q0.coerceFont(n,"title.font",l,{overrideDflt:{size:q0.bigFont(l.size),color:T}}),ML(r,t,n,h);var k=a.hasMinor;if(k&&(Hre.newContainer(t,"minor"),ML(r,t,n,h,{isMinor:!0})),Gre(r,t,n,h,a),TL(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,TL(r,t,n,a),a.isMinor=S}Xre(r,t,n,{dfltColor:b,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Fm}),k&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var x=h==="multicategory";if(!a.noTickson&&(h==="category"||x)&&(t.ticks||t.showgrid)&&(x?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),x){var M=n("showdividers");M&&(n("dividercolor"),n("dividerwidth"))}if(h==="date")if(Vre(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Kre}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var v=0;v=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=kL(o[l]),u){i=P1;break}}var s=n("pattern",i);if(s===P1)for(l=0;l<2;l++)u=kL(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case P1:if(!wL(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case Jre:if(!wL(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]{"use strict";var $re=nt(),I1=er();CL.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,h,p,_,y,b;u&&(h=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],h&&(p=u[l+"side"].split(" ")[0],_=u.domain[l][p==="right"||p==="top"?1:0])),h=h||[0,1],f=f||($re(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),_=_||0,y=0,b=!1;var T=I1.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=I1.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:p}},"side");if(T==="free"){if(l==="y"){var k=n("autoshift");k&&(_=m==="left"?s[0]:s[1],b=t.automargin?t.automargin:!0,y=m==="left"?-3:3),n("shift",y)}n("position",_)}n("automargin",b);var S=!1;if(i.length&&(S=I1.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var x=n("domain",h);x[0]>x[1]-1/4096&&(t.domain=h),I1.noneOrAll(r.domain,t.domain,h),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var zL=be((q1e,NL)=>{"use strict";var ds=er(),EL=Gr(),jre=fo().isUnifiedHover,ete=Z2(),LL=yt(),rte=Ys(),DL=Da(),tte=Pm(),RL=F1(),nte=a0(),PL=Im(),zm=nn(),Zi=zm.id2name,FL=zm.name2id,ate=un().AX_ID_PATTERN,IL=Tr(),N1=IL.traceIs,Nm=IL.getComponentMethod;function z1(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}NL.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},h={},p={},_={},y={},b,T;for(b=0;b{"use strict";var ite=tt(),qL=Tr(),q1=er(),xa=mt(),O1=Lt();OL.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){O1.redrawComponents(r);return}function i(T){var m=T.xaxis,k=T.yaxis;o._defs.select("#"+T.clipId+"> rect").call(xa.setTranslate,0,0).call(xa.setScale,1,1),T.plot.call(xa.setTranslate,m._offset,k._offset).call(xa.setScale,1,1);var S=T.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(xa.setPointGroupScale,1,1),S.selectAll(".textpoint").call(xa.setTextPointsScale,1,1),S.call(xa.hideOutsideRangePoints,T)}function l(T,m){var k=T.plotinfo,S=k.xaxis,x=k.yaxis,M=S._length,v=x._length,w=!!T.xr1,g=!!T.yr1,c=[];if(w){var A=q1.simpleMap(T.xr0,S.r2l),d=q1.simpleMap(T.xr1,S.r2l),D=A[1]-A[0],E=d[1]-d[0];c[0]=(A[0]*(1-m)+m*d[0]-A[0])/(A[1]-A[0])*M,c[2]=M*(1-m+m*E/D),S.range[0]=S.l2r(A[0]*(1-m)+m*d[0]),S.range[1]=S.l2r(A[1]*(1-m)+m*d[1])}else c[0]=0,c[2]=M;if(g){var R=q1.simpleMap(T.yr0,x.r2l),N=q1.simpleMap(T.yr1,x.r2l),I=R[1]-R[0],F=N[1]-N[0];c[1]=(R[1]*(1-m)+m*N[1]-R[1])/(R[0]-R[1])*v,c[3]=v*(1-m+m*F/I),x.range[0]=S.l2r(R[0]*(1-m)+m*N[0]),x.range[1]=x.l2r(R[1]*(1-m)+m*N[1])}else c[1]=0,c[3]=v;O1.drawOne(r,S,{skipTitle:!0}),O1.drawOne(r,x,{skipTitle:!0}),O1.redrawComponents(r,[S._id,x._id]);var L=w?M/c[2]:1,P=g?v/c[3]:1,O=w?c[0]:0,B=g?c[1]:0,X=w?c[0]/c[2]*M:0,$=g?c[1]/c[3]*v:0,ee=S._offset-X,Y=x._offset-$;k.clipRect.call(xa.setTranslate,O,B).call(xa.setScale,1/L,1/P),k.plot.call(xa.setTranslate,ee,Y).call(xa.setScale,L,P),xa.setPointGroupScale(k.zoomScalePts,1/L,1/P),xa.setTextPointsScale(k.zoomScaleTxt,1/L,1/P)}var u;a&&(u=a());function s(){for(var T={},m=0;mn.duration?(s(),_=window.cancelAnimationFrame(b)):_=window.requestAnimationFrame(b)}return h=Date.now(),_=window.requestAnimationFrame(b),Promise.resolve()}});var qm=be(Rn=>{"use strict";var U1=tt(),UL=Tr(),ps=er(),ote=fn(),lte=mt(),HL=Pf().getModuleCalcData,il=nn(),hi=un(),ste=Ho(),st=ps.ensureSingle;function B1(e,r,t){return ps.ensureSingle(e,r,t,function(n){n.datum(t)})}var gs=hi.zindexSeparator;Rn.name="cartesian";Rn.attr=["xaxis","yaxis"];Rn.idRoot=["x","y"];Rn.idRegex=hi.idRegex;Rn.attrRegex=hi.attrRegex;Rn.attributes=vL();Rn.layoutAttributes=Da();Rn.supplyLayoutDefaults=zL();Rn.transitionAxes=BL();Rn.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,h;for(s=0;s0){var _=p.id;if(_.indexOf(gs)!==-1)continue;_+=gs+(s+1),p=ps.extendFlat({},p,{id:_,plot:a._cartesianlayer.selectAll(".subplot").select("."+_)})}for(var y=[],b,T=0;T1&&(M+=gs+x),S.push(l+M),i=0;i1,h=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.xaxislayer=st(n,"g","xaxislayer-above"),r.yaxislayer=st(n,"g","yaxislayer-above");else{if(!i){var p=st(n,"g","layer-subplot");r.shapelayer=st(p,"g","shapelayer"),r.imagelayer=st(p,"g","imagelayer"),h&&f?(r.minorGridlayer=h.minorGridlayer,r.gridlayer=h.gridlayer,r.zerolinelayer=h.zerolinelayer):(r.minorGridlayer=st(n,"g","minor-gridlayer"),r.gridlayer=st(n,"g","gridlayer"),r.zerolinelayer=st(n,"g","zerolinelayer"));var _=st(n,"g","layer-between");r.shapelayerBetween=st(_,"g","shapelayer"),r.imagelayerBetween=st(_,"g","imagelayer"),st(n,"path","xlines-below"),st(n,"path","ylines-below"),r.overlinesBelow=st(n,"g","overlines-below"),st(n,"g","xaxislayer-below"),st(n,"g","yaxislayer-below"),r.overaxesBelow=st(n,"g","overaxes-below")}r.overplot=st(n,"g","overplot"),r.plot=st(r.overplot,"g",a),h&&f?r.zerolinelayerAbove=h.zerolinelayerAbove:r.zerolinelayerAbove=st(n,"g","zerolinelayer-above"),i||(r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.overlinesAbove=st(n,"g","overlines-above"),st(n,"g","xaxislayer-above"),st(n,"g","yaxislayer-above"),r.overaxesAbove=st(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var y=h.plotgroup,b=a+"-x",T=a+"-y";r.minorGridlayer=h.minorGridlayer,r.gridlayer=h.gridlayer,r.zerolinelayer=h.zerolinelayer,r.zerolinelayerAbove=h.zerolinelayerAbove,st(h.overlinesBelow,"path",b),st(h.overlinesBelow,"path",T),st(h.overaxesBelow,"g",b),st(h.overaxesBelow,"g",T),r.plot=st(h.overplot,"g",a),st(h.overlinesAbove,"path",b),st(h.overlinesAbove,"path",T),st(h.overaxesAbove,"g",b),st(h.overaxesAbove,"g",T),r.xlines=y.select(".overlines-"+l).select("."+b),r.ylines=y.select(".overlines-"+u).select("."+T),r.xaxislayer=y.select(".overaxes-"+l).select("."+b),r.yaxislayer=y.select(".overaxes-"+u).select("."+T)}i||(s||(B1(r.minorGridlayer,"g",r.xaxis._id),B1(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(il.idSort),B1(r.gridlayer,"g",r.xaxis._id),B1(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(il.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function YL(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=U1.select(this);f.remove(),WL(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i{"use strict";var H1=sa();XL.exports={hasLines:H1.hasLines,hasMarkers:H1.hasMarkers,hasText:H1.hasText,isBubble:H1.isBubble,attributes:us(),layoutAttributes:xh(),supplyDefaults:nE(),crossTraceDefaults:lE(),supplyLayoutDefaults:uE(),calc:xm().calc,crossTraceCalc:qE(),arraysToCalcdata:k1(),plot:$E(),colorbar:eL(),formatLabels:tL(),style:Lm().style,styleOnSelect:Lm().styleOnSelect,hoverPoints:sL(),selectPoints:cL(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:qm(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var QL=be((H1e,KL)=>{"use strict";var fte=tt(),cte=Gr(),JL=Ny(),Om=er(),hte=Om.strScale,vte=Om.strRotate,dte=Om.strTranslate;KL.exports=function(r,t,n){var a=r.node(),o=JL[n.arrowhead||0],i=JL[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,h=o.backoff*l+n.standoff,p=i.backoff*u+n.startstandoff,_,y,b,T;if(a.nodeName==="line"){_={x:+r.attr("x1"),y:+r.attr("y1")},y={x:+r.attr("x2"),y:+r.attr("y2")};var m=_.x-y.x,k=_.y-y.y;if(b=Math.atan2(k,m),T=b+Math.PI,h&&p&&h+p>Math.sqrt(m*m+k*k)){R();return}if(h){if(h*h>m*m+k*k){R();return}var S=h*Math.cos(b),x=h*Math.sin(b);y.x+=S,y.y+=x,r.attr({x2:y.x,y2:y.y})}if(p){if(p*p>m*m+k*k){R();return}var M=p*Math.cos(b),v=p*Math.sin(b);_.x-=M,_.y-=v,r.attr({x1:_.x,y1:_.y})}}else if(a.nodeName==="path"){var w=a.getTotalLength(),g="";if(w{"use strict";var $L=tt(),Bm=Tr(),pte=fn(),ll=er(),Um=ll.strTranslate,B0=Lt(),ys=Gr(),mo=mt(),jL=Bi(),Hm=Bn(),Vm=Ko(),O0=oi(),gte=yt().arrayEditor,yte=QL();tD.exports={draw:mte,drawOne:eD,drawRaw:rD};function mte(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Xe="right":Xe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Xe]}for(var j=!1,V=["x","y"],re=0;re1)&&(ue===ne?(xe=ye.r2fraction(r["a"+H]),(xe<0||xe>1)&&(j=!0)):j=!0),J=ye._offset+ye.r2p(r[H]),ce=.5}else{var me=ve==="domain";H==="x"?(ae=r[H],J=me?ye._offset+ye._length*ae:J=l.l+l.w*ae):(ae=1-r[H],J=me?ye._offset+ye._length*ae:J=l.t+l.h*ae),ce=r.showarrow?.5:ae}if(r.showarrow){ie.head=J;var de=r["a"+H];if(pe=Me*se(.5,r.xanchor)-ge*se(.5,r.yanchor),ue===ne){var _e=B0.getRefType(ue);_e==="domain"?(H==="y"&&(de=1-de),ie.tail=ye._offset+ye._length*de):_e==="paper"?H==="y"?(de=1-de,ie.tail=l.t+l.h*de):ie.tail=l.l+l.w*de:ie.tail=ye._offset+ye.r2p(de),te=pe}else ie.tail=J+de,te=pe+de;ie.text=ie.tail+pe;var Ae=i[H==="x"?"width":"height"];if(ne==="paper"&&(ie.head=ll.constrain(ie.head,1,Ae-1)),ue==="pixel"){var Ie=-Math.max(ie.tail-3,ie.text),De=Math.min(ie.tail+3,ie.text)-Ae;Ie>0?(ie.tail+=Ie,ie.text+=Ie):De>0&&(ie.tail-=De,ie.text-=De)}ie.tail+=Fe,ie.head+=Fe}else pe=Ee*se(ce,Ce),te=pe,ie.text=J+pe;ie.text+=Fe,pe+=Fe,te+=Fe,r["_"+H+"padplus"]=Ee/2+te,r["_"+H+"padminus"]=Ee/2-te,r["_"+H+"size"]=Ee,r["_"+H+"shift"]=pe}if(j){w.remove();return}var We=0,Oe=0;if(r.align!=="left"&&(We=(q-ee)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Oe=(Q-Y)*(r.valign==="middle"?.5:1)),X)B.select("svg").attr({x:A+We-1,y:A+Oe}).call(mo.setClipUrl,D?b:null,e);else{var ze=A+Oe-$.top,Be=A+We-$.left;I.call(Hm.positionText,Be,ze).call(mo.setClipUrl,D?b:null,e)}E.select("rect").call(mo.setRect,A,A,q,Q),d.call(mo.setRect,g/2,g/2,oe-g,Z-g),w.call(mo.setTranslate,Math.round(T.x.text-oe/2),Math.round(T.y.text-Z/2)),S.attr({transform:"rotate("+m+","+T.x.text+","+T.y.text+")"});var Se=function(Ye,Xe){k.selectAll(".annotation-arrow-g").remove();var $e=T.x.head,Qe=T.y.head,je=T.x.tail+Ye,ir=T.y.tail+Xe,yr=T.x.text+Ye,xr=T.y.text+Xe,wr=ll.rotationXYMatrix(m,yr,xr),$r=ll.apply2DTransform(wr),_r=ll.apply2DTransform2(wr),Nr=+d.attr("width"),rt=+d.attr("height"),Sr=yr-.5*Nr,qr=Sr+Nr,gt=xr-.5*rt,Hr=gt+rt,Xr=[[Sr,gt,Sr,Hr],[Sr,Hr,qr,Hr],[qr,Hr,qr,gt],[qr,gt,Sr,gt]].map(_r);if(!Xr.reduce(function(vt,Mt){return vt^!!ll.segmentsIntersect($e,Qe,$e+1e6,Qe+1e6,Mt[0],Mt[1],Mt[2],Mt[3])},!1)){Xr.forEach(function(vt){var Mt=ll.segmentsIntersect(je,ir,$e,Qe,vt[0],vt[1],vt[2],vt[3]);Mt&&(je=Mt.x,ir=Mt.y)});var qt=r.arrowwidth,nr=r.arrowcolor,Pr=r.arrowside,Zr=k.append("g").style({opacity:ys.opacity(nr)}).classed("annotation-arrow-g",!0),Er=Zr.append("path").attr("d","M"+je+","+ir+"L"+$e+","+Qe).style("stroke-width",qt+"px").call(ys.stroke,ys.rgb(nr));if(yte(Er,Pr,r),u.annotationPosition&&Er.node().parentNode&&!n){var Qr=$e,Rt=Qe;if(r.standoff){var it=Math.sqrt(Math.pow($e-je,2)+Math.pow(Qe-ir,2));Qr+=r.standoff*(je-$e)/it,Rt+=r.standoff*(ir-Qe)/it}var jt=Zr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(je-Qr)+","+(ir-Rt),transform:Um(Qr,Rt)}).style("stroke-width",qt+6+"px").call(ys.stroke,"rgba(0,0,0,0)").call(ys.fill,"rgba(0,0,0,0)"),Jt,Pt;O0.init({element:jt.node(),gd:e,prepFn:function(){var vt=mo.getTranslate(w);Jt=vt.x,Pt=vt.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(vt,Mt){var Tt=$r(Jt,Pt),ea=Tt[0]+vt,Nn=Tt[1]+Mt;w.call(mo.setTranslate,ea,Nn),_("x",ol(a,vt,"x",l,r)),_("y",ol(o,Mt,"y",l,r)),r.axref===r.xref&&_("ax",ol(a,vt,"ax",l,r)),r.ayref===r.yref&&_("ay",ol(o,Mt,"ay",l,r)),Zr.attr("transform",Um(vt,Mt)),S.attr({transform:"rotate("+m+","+ea+","+Nn+")"})},doneFn:function(){Bm.call("_guiRelayout",e,y());var vt=document.querySelector(".js-notes-box-panel");vt&&vt.redraw(vt.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Le;O0.init({element:w.node(),gd:e,prepFn:function(){Le=S.attr("transform")},moveFn:function(Ye,Xe){var $e="pointer";if(r.showarrow)r.axref===r.xref?_("ax",ol(a,Ye,"ax",l,r)):_("ax",r.ax+Ye),r.ayref===r.yref?_("ay",ol(o,Xe,"ay",l.w,r)):_("ay",r.ay+Xe),Se(Ye,Xe);else{if(n)return;var Qe,je;if(a)Qe=ol(a,Ye,"x",l,r);else{var ir=r._xsize/l.w,yr=r.x+(r._xshift-r.xshift)/l.w-ir/2;Qe=O0.align(yr+Ye/l.w,ir,0,1,r.xanchor)}if(o)je=ol(o,Xe,"y",l,r);else{var xr=r._ysize/l.h,wr=r.y-(r._yshift+r.yshift)/l.h-xr/2;je=O0.align(wr-Xe/l.h,xr,0,1,r.yanchor)}_("x",Qe),_("y",je),(!a||!o)&&($e=O0.getCursor(a?.5:Qe,o?.5:je,r.xanchor,r.yanchor))}S.attr({transform:Um(Ye,Xe)+Le}),Vm(w,$e)},clickFn:function(Ye,Xe){r.captureevents&&e.emit("plotly_clickannotation",v(Xe))},doneFn:function(){Vm(w),Bm.call("_guiRelayout",e,y());var Ye=document.querySelector(".js-notes-box-panel");Ye&&Ye.redraw(Ye.selectedObj)}})}}u.annotationText?I.call(Hm.makeEditable,{delegate:w,gd:e}).call(F).on("edit",function(P){r.text=P,this.call(F),_("text",P),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),Bm.call("_guiRelayout",e,y())}):I.call(F)}});var sD=be((G1e,lD)=>{"use strict";var nD=er(),xte=Tr(),aD=yt().arrayEditor;lD.exports={hasClickToShow:bte,onClick:_te};function bte(e,r){var t=oD(e,r);return t.on.length>0||t.explicitOff.length>0}function _te(e,r){var t=oD(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l{"use strict";var Gm=er(),qu=Gr();uD.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=qu.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Gm.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var h=a("arrowside"),p,_;h.indexOf("end")!==-1&&(p=a("arrowhead"),_=a("arrowsize")),h.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",_)),a("arrowcolor",l?t.bordercolor:qu.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var y=a("hovertext"),b=n.hoverlabel||{};if(y){var T=a("hoverlabel.bgcolor",b.bgcolor||(qu.opacity(o)?qu.rgb(o):qu.defaultLine)),m=a("hoverlabel.bordercolor",b.bordercolor||qu.contrast(T)),k=Gm.extendFlat({},b.font);k.color||(k.color=m),Gm.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!y)}});var cD=be((W1e,fD)=>{"use strict";var Wm=er(),ms=Lt(),wte=ai(),Mte=Ym(),Tte=Cu();fD.exports=function(r,t){wte(r,t,{name:"annotations",handleItemDefaults:Ate})};function Ate(e,r,t){function n(S,x){return Wm.coerce(e,r,Tte,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){Mte(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var h=l[f],p=ms.coerceRef(e,r,s,h,"","paper");if(p!=="paper"){var _=ms.getFromId(s,p);_._annIndices.push(r._index)}if(ms.coercePosition(r,s,n,p,h,.5),i){var y="a"+h,b=ms.coerceRef(e,r,s,y,"pixel",["pixel","paper"]);b!=="pixel"&&b!==p&&(b=r[y]="pixel");var T=b==="pixel"?u[f]:.4;ms.coercePosition(r,s,n,b,y,T)}n(h+"anchor"),n(h+"shift")}if(Wm.noneOrAll(e,r,["x","y"]),i&&Wm.noneOrAll(e,r,["ax","ay"]),o){var m=n("xclick"),k=n("yclick");r._xclick=m===void 0?r.x:ms.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:ms.cleanPosition(k,s,r.yref)}}}});var dD=be((X1e,vD)=>{"use strict";var Xm=er(),xs=Lt(),kte=V1().draw;vD.exports=function(r){var t=r._fullLayout,n=Xm.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Xm.syncOrAsync([kte,Ste],r)};function Ste(e){var r=e._fullLayout;Xm.filterVisible(r.annotations).forEach(function(t){var n=xs.getFromId(e,t.xref),a=xs.getFromId(e,t.yref),o=xs.getRefType(t.xref),i=xs.getRefType(t.yref);t._extremes={},o==="range"&&hD(t,n),i==="range"&&hD(t,a)})}function hD(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],h=3*e.arrowsize*e.arrowwidth||0,p=h+f,_=h-f,y=3*e.startarrowsize*e.arrowwidth||0,b=y+f,T=y-f,m;if(l===i){var k=xs.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:_}),S=xs.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,b),ppadminus:Math.max(s,T)});m={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else b=o?b+o:b,T=o?T-o:T,m=xs.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,b),ppadminus:Math.max(s,_,T)});e._extremes[t]=m}});var gD=be((Z1e,pD)=>{"use strict";var Cte=nt(),Ete=Bc();pD.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function h(_){var y=s[_],b=null;o?b=Ete(y,t.range):b=Math.pow(10,y),Cte(b)||(b=null),a(f+_,b)}for(var p=0;p{"use strict";var Zm=V1(),yD=sD();mD.exports={moduleType:"component",name:"annotations",layoutAttributes:Cu(),supplyLayoutDefaults:cD(),includeBasePlot:w0()("annotations"),calcAutorange:dD(),draw:Zm.draw,drawOne:Zm.drawOne,drawRaw:Zm.drawRaw,hasClickToShow:yD.hasClickToShow,onClick:yD.onClick,convertCoords:gD()}});var G1=be((K1e,bD)=>{"use strict";var wt=Cu(),Lte=On().overrideAll,Dte=yt().templatedArray;bD.exports=Lte(Dte("annotation",{visible:wt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:wt.xanchor,xshift:wt.xshift,yanchor:wt.yanchor,yshift:wt.yshift,text:wt.text,textangle:wt.textangle,font:wt.font,width:wt.width,height:wt.height,opacity:wt.opacity,align:wt.align,valign:wt.valign,bgcolor:wt.bgcolor,bordercolor:wt.bordercolor,borderpad:wt.borderpad,borderwidth:wt.borderwidth,showarrow:wt.showarrow,arrowcolor:wt.arrowcolor,arrowhead:wt.arrowhead,startarrowhead:wt.startarrowhead,arrowside:wt.arrowside,arrowsize:wt.arrowsize,startarrowsize:wt.startarrowsize,arrowwidth:wt.arrowwidth,standoff:wt.standoff,startstandoff:wt.startstandoff,hovertext:wt.hovertext,hoverlabel:wt.hoverlabel,captureevents:wt.captureevents}),"calc","from-root")});var wD=be((Q1e,_D)=>{"use strict";var Jm=er(),Rte=Lt(),Pte=ai(),Fte=Ym(),Ite=G1();_D.exports=function(r,t,n){Pte(r,t,{name:"annotations",handleItemDefaults:Nte,fullLayout:n.fullLayout})};function Nte(e,r,t,n){function a(l,u){return Jm.coerce(e,r,Ite,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Rte.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(Fte(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),Jm.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),Jm.noneOrAll(e,r,["ax","ay"])))}});var kD=be(($1e,AD)=>{"use strict";var MD=er(),TD=Lt();AD.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function Km(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function qte(e,r){var t=Km(e.projection,Km(e.view,Km(e.model,[r[0],r[1],r[2],1])));return t}SD.exports=qte});var ED=be((ede,CD)=>{"use strict";var Ote=V1().drawRaw,Bte=Qm(),Ute=["x","y","z"];CD.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=Bte(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),Ote(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var RD=be((rde,DD)=>{"use strict";var Hte=Tr(),LD=er();DD.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:G1()}}},layoutAttributes:G1(),handleDefaults:wD(),includeBasePlot:Vte,convert:kD(),draw:ED()};function Vte(e,r){var t=Hte.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var tde=un(),PD=Sn(),FD=us().line,Gte=Ro().dash,vi=At().extendFlat,Yte=yt().templatedArray,nde=b0(),Ou=Cn(),ID=Cu(),{shapeTexttemplateAttrs:Wte,templatefallbackAttrs:Xte}=ja(),Zte=Qc();ND.exports=Yte("shape",{visible:vi({},Ou.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:vi({},Ou.legend,{editType:"calc+arraydraw"}),legendgroup:vi({},Ou.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:vi({},Ou.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:PD({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:vi({},Ou.legendrank,{editType:"calc+arraydraw"}),legendwidth:vi({},Ou.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:vi({},ID.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:vi({},ID.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:vi({},FD.color,{editType:"arraydraw"}),width:vi({},FD.width,{editType:"calc+arraydraw"}),dash:vi({},Gte,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Wte({},{keys:Object.keys(Zte)}),texttemplatefallback:Xte({editType:"arraydraw"}),font:PD({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var qD=be((ide,zD)=>{"use strict";var Bu=er(),ba=Lt(),Jte=ai(),Kte=$m(),U0=rl();zD.exports=function(r,t){Jte(r,t,{name:"shapes",handleItemDefaults:$te})};function Qte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function $te(e,r,t){function n(S,x){return Bu.coerce(e,r,Kte,S,x)}r._isShape=!0;var a=n("visible");if(!a)return;var o=n("showlegend");n("legend"),n("legendgroup"),o&&(n("legendwidth"),n("legendgrouptitle.text"),Bu.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var h=n("xsizemode"),p=n("ysizemode");let _=[.25,.75],y=[0,10];["x","y"].forEach(S=>{var x=S+"anchor",M=S==="x"?h:p,v={_fullLayout:t},w,g,c,A;let d=S+"ref",D=e[d];if(Array.isArray(D)&&D.length>0){let E=U0.countDefiningCoords(u,i,S);A=ba.coerceRefArray(e,r,v,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=ba.coerceRef(e,r,v,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){ba.getRefType(E)==="range"&&(w=ba.getFromId(v,E),w&&w._shapeIndices.indexOf(r._index)===-1&&w._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let R=A[E];ba.getRefType(R)==="range"?(w=ba.getFromId(v,R),g=U0.shapePositionToRange(w),c=U0.rangeToShapePosition(w),(w.type==="category"||w.type==="multicategory")&&n(S+E+"shift")):g=c=Bu.identity;let I=S+E,F=e[I];if(e[I]=g(e[I],!0),M==="pixel"?n(I,y[E]):ba.coercePosition(r,v,n,R,I,_[E]),r[I]=c(r[I]),e[I]=F,E===0&&M==="pixel"){let L=e[x];e[x]=g(e[x],!0),ba.coercePosition(r,v,n,R,x,.25),r[x]=c(r[x]),e[x]=L}});else{if(ba.getRefType(A)==="range"?(w=ba.getFromId(v,A),w._shapeIndices.push(r._index),c=U0.rangeToShapePosition(w),g=U0.shapePositionToRange(w),s&&(w.type==="category"||w.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):g=c=Bu.identity,s){let R=S+"0",N=S+"1",I=e[R],F=e[N];e[R]=g(e[R],!0),e[N]=g(e[N],!0),M==="pixel"?(n(R,y[0]),n(N,y[1])):(ba.coercePosition(r,v,n,A,R,_[0]),ba.coercePosition(r,v,n,A,N,_[1])),r[R]=c(r[R]),r[N]=c(r[N]),e[R]=I,e[N]=F}if(M==="pixel"){let R=e[x];e[x]=g(e[x],!0),ba.coercePosition(r,v,n,A,x,.25),r[x]=c(r[x]),e[x]=R}}}),s&&Bu.noneOrAll(e,r,["x0","x1","y0","y1"]);var b=u==="line",T,m;if(s&&(T=n("label.texttemplate"),n("label.texttemplatefallback")),T||(m=n("label.text")),m||T){n("label.textangle");var k=n("label.textposition",b?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Qte(b,k)),n("label.padding"),Bu.coerceFont(n,"label.font",t.font)}}});var UD=be((ode,BD)=>{"use strict";var jte=Gr(),OD=er();function ene(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}BD.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),OD.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",jte.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",ene(i,s)),n("newshape.label.padding"),OD.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var ZD=be((lde,XD)=>{"use strict";var jm=er(),Ya=Lt(),Ji=e0(),e3=rl();XD.exports=function(r){var t=r._fullLayout,n=jm.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a{i=Ya.getFromId(r,h),o._extremes[i._id]=Ya.findExtremes(i,p,VD(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=Ya.getFromId(r,o.xref),l=YD(i,o,Ji.paramIsX),l&&(o._extremes[i._id]=Ya.findExtremes(i,l,VD(o))));if(s==="array"){let f=HD(r,o,"y");Object.entries(f).forEach(([h,p])=>{i=Ya.getFromId(r,h),o._extremes[i._id]=Ya.findExtremes(i,p,GD(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=Ya.getFromId(r,o.yref),l=YD(i,o,Ji.paramIsY),l&&(o._extremes[i._id]=Ya.findExtremes(i,l,GD(o))))}};function HD(e,r,t){let n=r[t+"ref"],a=t==="x"?Ji.paramIsX:Ji.paramIsY;function o(h,p){h==="paper"||Ya.getRefType(h)==="domain"||(i[h]||(i[h]=[]),i[h].push(p))}let i={};if(r.type==="path"&&r.path){let h=r.path.match(Ji.segmentRE)||[];for(var l=0,u=0;uy&&(o(n[l],b[y]),l++)}}else o(n[0],r[t+"0"]),o(n[1],r[t+"1"]);let s={};for(let h in i){let p=Ya.getFromId(e,h);if(p){var f=p.type==="category"||p.type==="multicategory"?p.r2c:p.d2c;p.type==="date"&&(f=e3.decodeDate(f)),s[p._id]=i[h].map(f)}}return s}function VD(e){return WD(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function GD(e){return WD(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function WD(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?e3.extractPathCoords(a,o?Ji.paramIsY:Ji.paramIsX):[t,n],s=jm.aggNums(Math.max,null,u),f=jm.aggNums(Math.min,null,u),h=f<0?Math.abs(f)+i:i,p=s>0?s+i:i;return{ppad:i,ppadplus:l?h:p,ppadminus:l?p:h}}else return{ppad:i}}function YD(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var h=1/0,p=-1/0,_=r.path.match(Ji.segmentRE),y,b,T,m,k;for(e.type==="date"&&(s=e3.decodeDate(s)),y=0;y<_.length;y++)b=_[y],T=t[b.charAt(0)].drawn,T!==void 0&&(m=_[y].slice(1).match(Ji.paramRE),!(!m||m.lengthp&&(p=k)));if(p>=h)return[h,p]}}});var QD=be((sde,KD)=>{"use strict";var JD=Fv();KD.exports={moduleType:"component",name:"shapes",layoutAttributes:$m(),supplyLayoutDefaults:qD(),supplyDrawNewShapeDefaults:UD(),includeBasePlot:w0()("shapes"),calcAutorange:ZD(),draw:JD.draw,drawOne:JD.drawOne}});var r3=be((fde,jD)=>{"use strict";var $D=un(),rne=yt().templatedArray,ude=b0();jD.exports=rne("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",$D.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",$D.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var rR=be((cde,eR)=>{"use strict";var tne=er(),t3=Lt(),nne=ai(),ane=r3(),ine="images";eR.exports=function(r,t){var n={name:ine,handleItemDefaults:one};nne(r,t,n)};function one(e,r,t){function n(p,_){return tne.coerce(e,r,ane,p,_)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=t3.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var h=t3.getFromId(i,f);h._imgIndices.push(r._index)}t3.coercePosition(r,i,n,f,s,0)}return r}});var iR=be((hde,aR)=>{"use strict";var tR=tt(),lne=mt(),Uu=Lt(),nR=nn(),sne=Ho();aR.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var oR=nt(),une=Bc();lR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,h=0;h{"use strict";uR.exports={moduleType:"component",name:"images",layoutAttributes:r3(),supplyLayoutDefaults:rR(),includeBasePlot:w0()("images"),draw:iR(),convertCoords:sR()}});var Y1=be((pde,cR)=>{"use strict";cR.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var n3=be((gde,vR)=>{"use strict";var fne=Sn(),cne=Si(),hne=At().extendFlat,vne=On().overrideAll,dne=$c(),hR=yt().templatedArray,pne=hR("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});vR.exports=vne(hR("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:pne,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:hne(dne({editType:"arraydraw"}),{}),font:fne({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:cne.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var yR=be((yde,gR)=>{"use strict";var W1=er(),dR=ai(),pR=n3(),gne=Y1(),yne=gne.name,mne=pR.buttons;gR.exports=function(r,t){var n={name:yne,handleItemDefaults:xne};dR(r,t,n)};function xne(e,r,t){function n(i,l){return W1.coerce(e,r,pR,i,l)}var a=dR(e,r,{name:"buttons",handleItemDefaults:bne}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),W1.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),W1.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function bne(e,r){function t(a,o){return W1.coerce(e,r,mne,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var bR=be((mde,xR)=>{"use strict";xR.exports=Ft;var di=tt(),mR=Gr(),Hu=mt(),X1=er();function Ft(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ft.barWidth=2;Ft.barLength=20;Ft.barRadius=2;Ft.barPad=1;Ft.barColor="#808BA4";Ft.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,h=this.position.direction,p=h==="down",_=h==="left",y=h==="right",b=h==="up",T=u,m=f,k,S,x,M;!p&&!_&&!y&&!b&&(this.position.direction="down",p=!0);var v=p||b;v?(k=l,S=k+T,p?(x=s,M=Math.min(x+m,i),m=M-x):(M=s+m,x=Math.max(M-m,0),m=M-x)):(x=s,M=x+m,_?(S=l+T,k=Math.max(S-T,0),T=S-k):(k=l,S=Math.min(k+T,o),T=S-k)),this._box={l:k,t:x,w:T,h:m};var w=u>T,g=Ft.barLength+2*Ft.barPad,c=Ft.barWidth+2*Ft.barPad,A=l,d=s+f;d+c>i&&(d=i-c);var D=this.container.selectAll("rect.scrollbar-horizontal").data(w?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(mR.fill,Ft.barColor),w?(this.hbar=D.attr({rx:Ft.barRadius,ry:Ft.barRadius,x:A,y:d,width:g,height:c}),this._hbarXMin=A+g/2,this._hbarTranslateMax=T-g):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>m,R=Ft.barWidth+2*Ft.barPad,N=Ft.barLength+2*Ft.barPad,I=l+u,F=s;I+R>o&&(I=o-R);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(mR.fill,Ft.barColor),E?(this.vbar=L.attr({rx:Ft.barRadius,ry:Ft.barRadius,x:I,y:F,width:R,height:N}),this._vbarYMin=F+N/2,this._vbarTranslateMax=m-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,O=k-.5,B=E?S+R+.5:S+.5,X=x-.5,$=w?M+c+.5:M+.5,ee=a._topdefs.selectAll("#"+P).data(w||E?[0]:[]);if(ee.exit().remove(),ee.enter().append("clipPath").attr("id",P).append("rect"),w||E?(this._clipRect=ee.select("rect").attr({x:Math.floor(O),y:Math.floor(X),width:Math.ceil(B)-Math.floor(O),height:Math.ceil($)-Math.floor(X)}),this.container.call(Hu.setClipUrl,P,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Hu.setClipUrl,null),delete this._clipRect),w||E){var Y=di.behavior.drag().on("dragstart",function(){di.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Y);var q=di.behavior.drag().on("dragstart",function(){di.event.sourceEvent.preventDefault(),di.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));w&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Ft.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Hu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Ft.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=di.event.dx),this.vbar&&(t-=di.event.dy),this.setTranslate(r,t)};Ft.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=di.event.deltaY),this.vbar&&(t+=di.event.deltaY),this.setTranslate(r,t)};Ft.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=X1.constrain(di.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=X1.constrain(di.event.y,u,s),h=(f-u)/(s-u),p=this.position.h-this._box.h;t=h*p}this.setTranslate(r,t)};Ft.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=X1.constrain(r||0,0,n),t=X1.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Hu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=r/n;this.hbar.call(Hu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Hu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var LR=be((xde,ER)=>{"use strict";var Vu=tt(),H0=fn(),V0=Gr(),Gu=mt(),_a=er(),Z1=Bn(),_ne=yt().arrayEditor,wR=En().LINE_SPACING,kr=Y1(),wne=bR();ER.exports=function(r){var t=r._fullLayout,n=_a.filterVisible(t[kr.name]);function a(p){H0.autoMargin(r,SR(p))}var o=t._menulayer.selectAll("g."+kr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(kr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Vu.select(this).selectAll("g."+kr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+kr.headerGroupClassName).data(n,Mne);i.enter().append("g").classed(kr.headerGroupClassName,!0);for(var l=_a.ensureSingle(o,"g",kr.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u{"use strict";var Lne=Y1();DR.exports={moduleType:"component",name:Lne.name,layoutAttributes:n3(),supplyLayoutDefaults:yR(),draw:LR()}});var Y0=be((_de,PR)=>{"use strict";PR.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var l3=be((wde,NR)=>{"use strict";var FR=Sn(),Dne=$c(),Rne=At().extendDeepAll,Pne=On().overrideAll,Fne=Mf(),IR=yt().templatedArray,bs=Y0(),Ine=IR("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});NR.exports=Pne(IR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Ine,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Rne(Dne({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Fne.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:FR({})},font:FR({}),activebgcolor:{valType:"color",dflt:bs.gripBgActiveColor},bgcolor:{valType:"color",dflt:bs.railBgColor},bordercolor:{valType:"color",dflt:bs.railBorderColor},borderwidth:{valType:"number",min:0,dflt:bs.railBorderWidth},ticklen:{valType:"number",min:0,dflt:bs.tickLength},tickcolor:{valType:"color",dflt:bs.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:bs.minorTickLength}}),"arraydraw","from-root")});var BR=be((Mde,OR)=>{"use strict";var Yu=er(),zR=ai(),qR=l3(),Nne=Y0(),zne=Nne.name,qne=qR.steps;OR.exports=function(r,t){zR(r,t,{name:zne,handleItemDefaults:One})};function One(e,r,t){function n(h,p){return Yu.coerce(e,r,qR,h,p)}for(var a=zR(e,r,{name:"steps",handleItemDefaults:Bne}),o=0,i=0;i{"use strict";var pi=tt(),J1=fn(),sl=Gr(),gi=mt(),wa=er(),Une=wa.strTranslate,W0=Bn(),Hne=yt().arrayEditor,Br=Y0(),f3=En(),VR=f3.LINE_SPACING,s3=f3.FROM_TL,u3=f3.FROM_BR;JR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Vne(n,r),o=n._infolayer.selectAll("g."+Br.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Br.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),J1.autoMargin(r,GR(f))}if(o.exit().each(function(){pi.select(this).selectAll("g."+Br.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Br.groupClassName).data(a,Gne);l.enter().append("g").classed(Br.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",Une(i-Br.gripWidth*.5,r._dims.currentValueTotalHeight))}}function c3(e,r){var t=e._dims;return t.inputAreaStart+Br.stepInset+(t.inputAreaLength-2*Br.stepInset)*Math.min(1,Math.max(0,r))}function HR(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Br.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Br.stepInset-2*t.inputAreaStart)))}function Qne(e,r,t){var n=t._dims,a=wa.ensureSingle(e,"rect",Br.railTouchRectClass,function(o){o.call(XR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Br.tickOffset+t.ticklen+n.labelHeight)}).call(sl.fill,t.bgcolor).attr("opacity",0),gi.setTranslate(a,0,n.currentValueTotalHeight)}function $ne(e,r){var t=r._dims,n=t.inputAreaLength-Br.railInset*2,a=wa.ensureSingle(e,"rect",Br.railRectClass);a.attr({width:n,height:Br.railWidth,rx:Br.railRadius,ry:Br.railRadius,"shape-rendering":"crispEdges"}).call(sl.stroke,r.bordercolor).call(sl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),gi.setTranslate(a,Br.railInset,(t.inputAreaWidth-Br.railWidth)*.5+t.currentValueTotalHeight)}});var $R=be((Ade,QR)=>{"use strict";var jne=Y0();QR.exports={moduleType:"component",name:jne.name,layoutAttributes:l3(),supplyLayoutDefaults:BR(),draw:KR()}});var Q1=be((kde,eP)=>{"use strict";var jR=Si();eP.exports={bgcolor:{valType:"color",dflt:jR.background,editType:"plot"},bordercolor:{valType:"color",dflt:jR.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var h3=be((Sde,rP)=>{"use strict";rP.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var $1=be((Cde,tP)=>{"use strict";tP.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var iP=be(ed=>{"use strict";var eae=nn(),rae=Bn(),nP=$1(),tae=En().LINE_SPACING,j1=nP.name;function aP(e){var r=e&&e[j1];return r&&r.visible}ed.isVisible=aP;ed.makeData=function(e){for(var r=eae.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var rd=er(),oP=yt(),lP=nn(),nae=Q1(),aae=h3();sP.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;rd.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=oP.newContainer(o,"rangeslider");function u(M,v){return rd.coerce(i,l,nae,M,v)}var s,f;function h(M,v){return rd.coerce(s,f,aae,M,v)}var p=u("visible");if(p){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var _=t._subplots;if(_)for(var y=_.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===lP.name2id(n)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),b=rd.simpleMap(y,lP.id2name),T=0;T{"use strict";var iae=nn().list,oae=cu().getAutoRange,lae=$1();fP.exports=function(r){for(var t=iae(r,"x",!0),n=0;n{"use strict";var td=tt(),sae=Tr(),uae=fn(),Bt=er(),nd=Bt.strTranslate,vP=mt(),ul=Gr(),fae=Of(),cae=qm(),v3=nn(),hae=oi(),vae=Ko(),Wr=$1();dP.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)I=d[F+1];else if(N=L.pmax)I=d[F+1];else if(N0?e.touches[0].clientX:0}function dae(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Wr.slideBoxClassName).node(),o=e.select("rect."+Wr.grabAreaMinClassName).node(),i=e.select("rect."+Wr.grabAreaMaxClassName).node();function l(){var u=td.event,s=u.target,f=hP(u),h=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),_=n.d2p(t._rl[1]),y=hae.coverSlip();this.addEventListener("touchmove",b),this.addEventListener("touchend",T),y.addEventListener("mousemove",b),y.addEventListener("mouseup",T);function b(m){var k=hP(m),S=+k-f,x,M,v;switch(s){case a:if(v="ew-resize",p+S>t._length||_+S<0)return;x=p+S,M=_+S;break;case o:if(v="col-resize",p+S>t._length)return;x=p+S,M=_;break;case i:if(v="col-resize",_+S<0)return;x=p,M=_+S;break;default:v="ew-resize",x=h,M=h+S;break}if(M{"use strict";var Tae=er(),Aae=Q1(),kae=h3(),d3=iP();gP.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Tae.extendFlat({},Aae,{yaxis:kae})}}},layoutAttributes:Q1(),handleDefaults:uP(),calcAutorange:cP(),draw:pP(),isVisible:d3.isVisible,makeData:d3.makeData,autoMarginOpts:d3.autoMarginOpts}});var ad=be((Fde,xP)=>{"use strict";var Sae=Sn(),mP=Si(),Cae=yt().templatedArray,Eae=Cae("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});xP.exports={visible:{valType:"boolean",editType:"plot"},buttons:Eae,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Sae({editType:"plot"}),bgcolor:{valType:"color",dflt:mP.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:mP.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var p3=be((Ide,bP)=>{"use strict";bP.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var MP=be((Nde,wP)=>{"use strict";var id=er(),Lae=Gr(),Dae=yt(),Rae=ai(),_P=ad(),g3=p3();wP.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=Dae.newContainer(t,"rangeselector");function u(_,y){return id.coerce(i,l,_P,_,y)}var s=Rae(i,l,{name:"buttons",handleItemDefaults:Pae,calendar:o}),f=u("visible",s.length>0);if(f){var h=Fae(t,n,a);u("x",h[0]),u("y",h[1]),id.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),id.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",Lae.contrast(p,g3.lightAmount,g3.darkAmount)),u("bordercolor"),u("borderwidth")}};function Pae(e,r,t,n){var a=n.calendar;function o(u,s){return id.coerce(e,r,_P.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function Fae(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var Iae=pp(),Nae=er().titleCase;TP.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=zae(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function zae(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=Iae["utc"+Nae(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var PP=be((qde,RP)=>{"use strict";var ld=tt(),qae=Tr(),Oae=fn(),kP=Gr(),DP=mt(),xo=er(),SP=xo.strTranslate,od=Bn(),Bae=nn(),x3=En(),CP=x3.LINE_SPACING,EP=x3.FROM_TL,LP=x3.FROM_BR,m3=p3(),Uae=AP();RP.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Hae(r),Vae);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=ld.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(xo.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=ld.select(this),h=Uae(i,s);s._isActive=Gae(i,s,h),f.call(y3,l,s),f.call(Wae,l,s,r),f.on("click",function(){r._dragged||qae.call("_guiRelayout",r,h)}),f.on("mouseover",function(){s._isHovered=!0,f.call(y3,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(y3,l,s)})}),Zae(r,u,l,i._name,o)})};function Hae(e){for(var r=Bae.list(e,"x",!0),t=[],n=0;n{"use strict";FP.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:ad()}}},layoutAttributes:ad(),handleDefaults:MP(),draw:PP()}});var sd=be(b3=>{"use strict";var NP=At().extendFlat;b3.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",o=r.description?" "+r.description:"",i={x:NP({},t,{}),y:NP({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};b3.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l{"use strict";var Jae=er(),Kae=Us().counter,Qae=sd().attributes,zP=un().idRegex,$ae=yt(),_3={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Kae("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[zP.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[zP.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Qae({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function ud(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function jae(e,r){var t=e.grid||{},n=ud(r,t,"x"),a=ud(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var h=$ae.newContainer(r,"grid");function p(v,w){return Jae.coerce(t,h,_3,v,w)}var _=p("rows",s),y=p("columns",f);if(!(_*y>1)){delete r.grid;return}if(!o&&!i&&!l){var b=p("pattern")==="independent";b&&(o=!0)}h._hasSubplotGrid=o;var T=p("roworder"),m=T==="top to bottom",k=o?.2:.1,S=o?.3:.1,x,M;u&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),h._domains={x:qP("x",p,k,x,y),y:qP("y",p,S,M,_,m)}}function qP(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),h=f*(1-i),p=0;p{"use strict";HP.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var YP=be((Vde,GP)=>{"use strict";var VP=nt(),rie=Tr(),tie=er(),nie=yt(),aie=w3();GP.exports=function(e,r,t,n){var a="error_"+n.axis,o=nie.newContainer(r,a),i=e[a]||{};function l(y,b){return tie.coerce(i,o,aie,y,b)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),h=!0;f!=="sqrt"&&(h=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),h||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),h||l("valueminus"));var p="copy_"+n.inherit+"style";if(n.inherit){var _=r["error_"+n.inherit];(_||{}).visible&&l(p,!(i.color||VP(i.thickness)||VP(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",rie.traceIs(r,"gl3d")?0:4))}}});var M3=be((Gde,XP)=>{"use strict";XP.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var h=+a[f];return[h,h]};var o=r.arrayminus||[];return function(s,f){var h=+a[f],p=+o[f];return!isNaN(h)||!isNaN(p)?[p||0,h||0]:[NaN,NaN]}}else{var i=WP(t,r.value),l=WP(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function WP(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var KP=be((Yde,JP)=>{"use strict";var T3=nt(),iie=Tr(),A3=Lt(),oie=er(),lie=M3();JP.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var QP=tt(),fl=nt(),sie=mt(),uie=sa();$P.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var h=f[0].trace,p=h.error_x||{},_=h.error_y||{},y;h.ids&&(y=function(k){return k.id});var b=uie.hasMarkers(h)&&h.marker.maxdisplayed>0;!_.visible&&!p.visible&&(f=[]);var T=QP.select(this).selectAll("g.errorbar").data(f,y);if(T.exit().remove(),!!f.length){p.visible||T.selectAll("path.xerror").remove(),_.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var m=T.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(a.duration).style("opacity",1),sie.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=QP.select(this),x=fie(k,i,l);if(!(b&&!k.vis)){var M,v=S.select("path.yerror");if(_.visible&&fl(x.x)&&fl(x.yh)&&fl(x.ys)){var w=_.width;M="M"+(x.x-w)+","+x.yh+"h"+2*w+"m-"+w+",0V"+x.ys,x.noYS||(M+="m-"+w+",0h"+2*w),o=!v.size(),o?v=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(v=v.transition().duration(a.duration).ease(a.easing)),v.attr("d",M)}else v.remove();var g=S.select("path.xerror");if(p.visible&&fl(x.y)&&fl(x.xh)&&fl(x.xs)){var c=(p.copy_ystyle?_:p).width;M="M"+x.xh+","+(x.y-c)+"v"+2*c+"m0,-"+c+"H"+x.xs,x.noXS||(M+="m0,-"+c+"v"+2*c),o=!g.size(),o?g=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(g=g.transition().duration(a.duration).ease(a.easing)),g.attr("d",M)}else g.remove()}})}})};function fie(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),fl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),fl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var tF=be((Xde,rF)=>{"use strict";var cie=tt(),eF=Gr();rF.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=cie.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(eF.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(eF.stroke,o.color)})}});var iF=be((Zde,aF)=>{"use strict";var X0=er(),nF=On().overrideAll,Z0=w3(),_s={error_x:X0.extendFlat({},Z0),error_y:X0.extendFlat({},Z0)};delete _s.error_x.copy_zstyle;delete _s.error_y.copy_zstyle;delete _s.error_y.copy_ystyle;var J0={error_x:X0.extendFlat({},Z0),error_y:X0.extendFlat({},Z0),error_z:X0.extendFlat({},Z0)};delete J0.error_x.copy_ystyle;delete J0.error_y.copy_ystyle;delete J0.error_z.copy_ystyle;delete J0.error_z.copy_zstyle;aF.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:_s,bar:_s,histogram:_s,scatter3d:nF(J0,"calc","nested"),scattergl:nF(_s,"calc","nested")}},supplyDefaults:YP(),calc:KP(),makeComputeError:M3(),plot:jP(),style:tF(),hoverInfo:hie};function hie(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var lF=be((Jde,oF)=>{"use strict";oF.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var dF=be((Kde,vF)=>{"use strict";var cl=tt(),k3=Sa(),cd=fn(),sF=Tr(),bo=Lt(),fd=oi(),Wa=er(),mi=Wa.strTranslate,hF=At().extendFlat,S3=Ko(),yi=mt(),C3=Gr(),vie=Of(),die=Bn(),pie=Ei().flipScale,gie=F1(),yie=Im(),mie=Da(),E3=En(),uF=E3.LINE_SPACING,fF=E3.FROM_TL,cF=E3.FROM_BR,Dt=lF().cn;function xie(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Dt.colorbar).data(bie(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Dt.colorbar,!0),t.each(function(n){var a=cl.select(this);Wa.ensureSingle(a,"rect",Dt.cbbg),Wa.ensureSingle(a,"g",Dt.cbfills),Wa.ensureSingle(a,"g",Dt.cblines),Wa.ensureSingle(a,"g",Dt.cbaxis,function(i){i.classed(Dt.crisp,!0)}),Wa.ensureSingle(a,"g",Dt.cbtitleunshift,function(i){i.append("g").classed(Dt.cbtitle,!0)}),Wa.ensureSingle(a,"rect",Dt.cboutline);var o=_ie(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&wie(a,n,e)}),t.exit().each(function(n){cd.autoMargin(e,n._id)}).remove(),t.order()}function bie(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return hF(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?pie(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f1){var re=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));se*=re*Wa.roundUp(V/re,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(oe.tick0=0)}oe.dtick=se}oe.domain=n?[q+y/x.h,q+P-y/x.h]:[q+_/x.w,q+P-_/x.w],oe.setScale(),e.attr("transform",mi(Math.round(x.l),Math.round(x.t)));var H=e.select("."+Dt.cbtitleunshift).attr("transform",mi(-Math.round(x.l),-Math.round(x.t))),ne=oe.ticklabelposition,ue=oe.title.font.size,ye=e.select("."+Dt.cbaxis),ke,Me=0,ge=0;function Ee(te,ae){var ce={propContainer:oe,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Dt.cbtitle)},pe=te.charAt(0)==="h"?te.slice(1):"h"+te;e.selectAll("."+pe+",."+pe+"-math-group").remove(),vie.draw(t,te,hF(ce,ae||{}))}function Ce(){if(n&&Z||!n&&!Z){var te,ae;g==="top"&&(te=_+x.l+O*b,ae=y+x.t+B*(1-q-P)+3+ue*.75),g==="bottom"&&(te=_+x.l+O*b,ae=y+x.t+B*(1-q)-3-ue*.25),g==="right"&&(ae=y+x.t+B*T+3+ue*.75,te=_+x.l+O*q),Ee(oe._id+"title",{attributes:{x:te,y:ae,"text-anchor":n?"start":"middle"}})}}function Fe(){if(n&&!Z||!n&&Z){var te=oe.position||0,ae=oe._offset+oe._length/2,ce,pe;if(g==="right")pe=ae,ce=x.l+O*te+10+ue*(oe.showticklabels?1:.5);else if(ce=ae,g==="bottom"&&(pe=x.t+B*te+10+(ne.indexOf("inside")===-1?oe.tickfont.size:0)+(oe.ticks!=="inside"&&r.ticklen||0)),g==="top"){var ve=w.text.split("
").length;pe=x.t+B*te+10-I-uF*ue*ve}Ee((n?"h":"v")+oe._id+"title",{avoid:{selection:cl.select(t).selectAll("g."+oe._id+"tick"),side:g,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?S.width:S.height},attributes:{x:ce,y:pe,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function ie(){if(!n&&!Z||n&&Z){var te=e.select("."+Dt.cbtitle),ae=te.select("text"),ce=[-u/2,u/2],pe=te.select(".h"+oe._id+"title-math-group").node(),ve=15.6;ae.node()&&(ve=parseInt(ae.node().style.fontSize,10)*uF);var xe;if(pe?(xe=yi.bBox(pe),ge=xe.width,Me=xe.height,Me>ve&&(ce[1]-=(Me-ve)/2)):ae.node()&&!ae.classed(Dt.jsPlaceholder)&&(xe=yi.bBox(ae.node()),ge=xe.width,Me=xe.height),n){if(Me){if(Me+=5,g==="top")oe.domain[1]-=Me/x.h,ce[1]*=-1;else{oe.domain[0]+=Me/x.h;var me=die.lineCount(ae);ce[1]+=(1-me)*ve}te.attr("transform",mi(ce[0],ce[1])),oe.setScale()}}else ge&&(g==="right"&&(oe.domain[0]+=(ge+ue/2)/x.w),te.attr("transform",mi(ce[0],ce[1])),oe.setScale())}e.selectAll("."+Dt.cbfills+",."+Dt.cblines).attr("transform",n?mi(0,Math.round(x.h*(1-oe.domain[1]))):mi(Math.round(x.w*oe.domain[0]),0)),ye.attr("transform",n?mi(0,Math.round(-x.t)):mi(Math.round(-x.l),0));var de=e.select("."+Dt.cbfills).selectAll("rect."+Dt.cbfill).attr("style","").data(R);de.enter().append("rect").classed(Dt.cbfill,!0).attr("style",""),de.exit().remove();var _e=c.map(oe.c2p).map(Math.round).sort(function(Oe,ze){return Oe-ze});de.each(function(Oe,ze){var Be=[ze===0?c[0]:(R[ze]+R[ze-1])/2,ze===R.length-1?c[1]:(R[ze]+R[ze+1])/2].map(oe.c2p).map(Math.round);n&&(Be[1]=Wa.constrain(Be[1]+(Be[1]>Be[0])?1:-1,_e[0],_e[1]));var Se=cl.select(this).attr(n?"x":"y",X).attr(n?"y":"x",cl.min(Be)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(cl.max(Be)-cl.min(Be),2));if(r._fillgradient)yi.gradient(Se,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Le=d(Oe).replace("e-","");Se.attr("fill",k3(Le).toHexString())}});var Ae=e.select("."+Dt.cblines).selectAll("path."+Dt.cbline).data(v.color&&v.width?N:[]);Ae.enter().append("path").classed(Dt.cbline,!0),Ae.exit().remove(),Ae.each(function(Oe){var ze=X,Be=Math.round(oe.c2p(Oe))+v.width/2%1;cl.select(this).attr("d","M"+(n?ze+","+Be:Be+","+ze)+(n?"h":"v")+I).call(yi.lineGroupStyle,v.width,A(Oe),v.dash)}),ye.selectAll("g."+oe._id+"tick,path").remove();var Ie=X+I+(u||0)/2-(r.ticks==="outside"?1:0),De=bo.calcTicks(oe),We=bo.getTickSigns(oe)[2];return bo.drawTicks(t,oe,{vals:oe.ticks==="inside"?bo.clipEnds(oe,De):De,layer:ye,path:bo.makeTickPath(oe,Ie,We),transFn:bo.makeTransTickFn(oe)}),bo.drawLabels(t,oe,{vals:De,layer:ye,transFn:bo.makeTransTickLabelFn(oe),labelFns:bo.makeLabelFns(oe,Ie)})}function J(){var te,ae=I+u/2;ne.indexOf("inside")===-1&&(te=yi.bBox(ye.node()),ae+=n?te.width:te.height),ke=H.select("text");var ce=0,pe=n&&g==="top",ve=!n&&g==="right",xe=0;if(ke.node()&&!ke.classed(Dt.jsPlaceholder)){var me,de=H.select(".h"+oe._id+"title-math-group").node();de&&(n&&Z||!n&&!Z)?(te=yi.bBox(de),ce=te.width,me=te.height):(te=yi.bBox(H.node()),ce=te.right-x.l-(n?X:Q),me=te.bottom-x.t-(n?Q:X),!n&&g==="top"&&(ae+=te.height,xe=te.height)),ve&&(ke.attr("transform",mi(ce/2+ue/2,0)),ce*=2),ae=Math.max(ae,n?ce:me)}var _e=(n?_:y)*2+ae+s+u/2,Ae=0;!n&&w.text&&p==="bottom"&&T<=0&&(Ae=_e/2,_e+=Ae,xe+=Ae),S._hColorbarMoveTitle=Ae,S._hColorbarMoveCBTitle=xe;var Ie=s+u,De=(n?X:Q)-Ie/2-(n?_:0),We=(n?Q:X)-(n?L:y+xe-Ae);e.select("."+Dt.cbbg).attr("x",De).attr("y",We).attr(n?"width":"height",Math.max(_e-Ae,2)).attr(n?"height":"width",Math.max(L+Ie,2)).call(C3.fill,f).call(C3.stroke,r.bordercolor).style("stroke-width",s);var Oe=ve?Math.max(ce-10,0):0;e.selectAll("."+Dt.cboutline).attr("x",(n?X:Q+_)+Oe).attr("y",(n?Q+y-L:X)+(pe?Me:0)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(L-(n?2*y+Me:2*_+Oe),2)).call(C3.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var ze=n?$*_e:0,Be=n?0:(1-ee)*_e-xe;if(ze=k?x.l-ze:-ze,Be=m?x.t-Be:-Be,e.attr("transform",mi(ze,Be)),!n&&(s||k3(f).getAlpha()&&!k3.equals(S.paper_bgcolor,f))){var Se=ye.selectAll("text"),Le=Se[0].length,Ye=e.select("."+Dt.cbbg).node(),Xe=yi.bBox(Ye),$e=yi.getTranslate(e),Qe=2;Se.each(function(Sr,qr){var gt=0,Hr=Le-1;if(qr===gt||qr===Hr){var Xr=yi.bBox(this),qt=yi.getTranslate(this),nr;if(qr===Hr){var Pr=Xr.right+qt.x,Zr=Xe.right+$e.x+Q-s-Qe+b;nr=Zr-Pr,nr>0&&(nr=0)}else if(qr===gt){var Er=Xr.left+qt.x,Qr=Xe.left+$e.x+Q+s+Qe;nr=Qr-Er,nr<0&&(nr=0)}nr&&(Le<3?this.setAttribute("transform","translate("+nr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var je={},ir=fF[h],yr=cF[h],xr=fF[p],wr=cF[p],$r=_e-I;n?(o==="pixels"?(je.y=T,je.t=L*xr,je.b=L*wr):(je.t=je.b=0,je.yt=T+a*xr,je.yb=T-a*wr),l==="pixels"?(je.x=b,je.l=_e*ir,je.r=_e*yr):(je.l=$r*ir,je.r=$r*yr,je.xl=b-i*ir,je.xr=b+i*yr)):(o==="pixels"?(je.x=b,je.l=L*ir,je.r=L*yr):(je.l=je.r=0,je.xl=b+a*ir,je.xr=b-a*yr),l==="pixels"?(je.y=1-T,je.t=_e*xr,je.b=_e*wr):(je.t=$r*xr,je.b=$r*wr,je.yt=T-i*xr,je.yb=T+i*wr));var _r=r.y<.5?"b":"t",Nr=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var rt={r:S.width-De-ze,l:De+je.r,b:S.height-We-Be,t:We+je.b};k&&m?cd.autoMargin(t,r._id,je):k?t._fullLayout._reservedMargin[r._id][_r]=rt[_r]:m||n?t._fullLayout._reservedMargin[r._id][Nr]=rt[Nr]:t._fullLayout._reservedMargin[r._id][_r]=rt[_r]}return Wa.syncOrAsync([cd.previousPromises,Ce,ie,Fe,cd.previousPromises,J],t)}function wie(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;fd.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),S3(e)},moveFn:function(s,f){e.attr("transform",i+mi(s,f)),l=fd.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=fd.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var h=fd.getCursor(l,u,r.xanchor,r.yanchor);S3(e,h)},doneFn:function(){if(S3(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?sF.call("_guiRestyle",t,s,r._traceIndex):sF.call("_guiRelayout",t,s)}}})}function Mie(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],h=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i0?i>=u:i<=u));l++)i>t[0]&&i{"use strict";pF.exports={moduleType:"component",name:"colorbar",attributes:Sh(),supplyDefaults:Lg(),draw:dF().draw,hasColorbar:xg()}});var mF=be(($de,yF)=>{"use strict";yF.exports={moduleType:"component",name:"legend",layoutAttributes:k2(),supplyLayoutDefaults:C2(),draw:V2(),style:O2()}});var bF=be((jde,xF)=>{"use strict";xF.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var wF=be((epe,_F)=>{"use strict";_F.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var D3=be((rpe,kF)=>{"use strict";var Aie=Tr(),AF=er(),L3=AF.extendFlat,MF=AF.extendDeep;function TF(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function kie(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}kF.exports=function(r,t){var n,a=r.data,o=r.layout,i=MF([],a),l=MF({},o,TF(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(n=0;n{"use strict";var Sie=dh().EventEmitter,Cie=Tr(),Eie=er(),SF=fs(),Lie=D3(),Die=m1(),Rie=x1();function Pie(e,r){var t=new Sie,n=Lie(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=SF.getDelay(a._fullLayout);setTimeout(function(){var u=Die(a),s=document.createElement("canvas");s.id=Eie.randstr(),t=Rie({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=SF.getRedrawFunc(a);return Cie.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}CF.exports=Pie});var RF=be((npe,DF)=>{"use strict";var LF=fs(),Fie={getDelay:LF.getDelay,getRedrawFunc:LF.getRedrawFunc,clone:D3(),toSVG:m1(),svgToImg:x1(),toImage:EF(),downloadImage:om()};DF.exports=Fie});var FF=be(_o=>{"use strict";_o.version=vf().version;bb();uw();var Iie=Tr(),K0=_o.register=Iie.register,P3=PC(),PF=Object.keys(P3);for(hd=0;hd{"use strict";IF.exports=FF()});var mn=be((ope,zF)=>{(function(){var e={1964:(function(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}}),4793:(function(a,o,i){"use strict";var l;function u(ie){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},u(ie)}var s=i(7507),f=i(3778),h=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.hp=b,l=A,o.IS=50;var p=2147483647;l=p,b.TYPED_ARRAY_SUPPORT=_(),!b.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function _(){try{var ie=new Uint8Array(1),J={foo:function(){return 42}};return Object.setPrototypeOf(J,Uint8Array.prototype),Object.setPrototypeOf(ie,J),ie.foo()===42}catch(te){return!1}}Object.defineProperty(b.prototype,"parent",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.buffer}}),Object.defineProperty(b.prototype,"offset",{enumerable:!0,get:function(){if(b.isBuffer(this))return this.byteOffset}});function y(ie){if(ie>p)throw new RangeError('The value "'+ie+'" is invalid for option "size"');var J=new Uint8Array(ie);return Object.setPrototypeOf(J,b.prototype),J}function b(ie,J,te){if(typeof ie=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(ie)}return T(ie,J,te)}b.poolSize=8192;function T(ie,J,te){if(typeof ie=="string")return x(ie,J);if(ArrayBuffer.isView(ie))return v(ie);if(ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u(ie));if(Ee(ie,ArrayBuffer)||ie&&Ee(ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ee(ie,SharedArrayBuffer)||ie&&Ee(ie.buffer,SharedArrayBuffer)))return w(ie,J,te);if(typeof ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ae=ie.valueOf&&ie.valueOf();if(ae!=null&&ae!==ie)return b.from(ae,J,te);var ce=g(ie);if(ce)return ce;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ie[Symbol.toPrimitive]=="function")return b.from(ie[Symbol.toPrimitive]("string"),J,te);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u(ie))}b.from=function(ie,J,te){return T(ie,J,te)},Object.setPrototypeOf(b.prototype,Uint8Array.prototype),Object.setPrototypeOf(b,Uint8Array);function m(ie){if(typeof ie!="number")throw new TypeError('"size" argument must be of type number');if(ie<0)throw new RangeError('The value "'+ie+'" is invalid for option "size"')}function k(ie,J,te){return m(ie),ie<=0?y(ie):J!==void 0?typeof te=="string"?y(ie).fill(J,te):y(ie).fill(J):y(ie)}b.alloc=function(ie,J,te){return k(ie,J,te)};function S(ie){return m(ie),y(ie<0?0:c(ie)|0)}b.allocUnsafe=function(ie){return S(ie)},b.allocUnsafeSlow=function(ie){return S(ie)};function x(ie,J){if((typeof J!="string"||J==="")&&(J="utf8"),!b.isEncoding(J))throw new TypeError("Unknown encoding: "+J);var te=d(ie,J)|0,ae=y(te),ce=ae.write(ie,J);return ce!==te&&(ae=ae.slice(0,ce)),ae}function M(ie){for(var J=ie.length<0?0:c(ie.length)|0,te=y(J),ae=0;ae=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return ie|0}function A(ie){return+ie!=ie&&(ie=0),b.alloc(+ie)}b.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==b.prototype},b.compare=function(J,te){if(Ee(J,Uint8Array)&&(J=b.from(J,J.offset,J.byteLength)),Ee(te,Uint8Array)&&(te=b.from(te,te.offset,te.byteLength)),!b.isBuffer(J)||!b.isBuffer(te))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===te)return 0;for(var ae=J.length,ce=te.length,pe=0,ve=Math.min(ae,ce);pece.length?b.from(ve).copy(ce,pe):Uint8Array.prototype.set.call(ce,ve,pe);else if(b.isBuffer(ve))ve.copy(ce,pe);else throw new TypeError('"list" argument must be an Array of Buffers');pe+=ve.length}return ce};function d(ie,J){if(b.isBuffer(ie))return ie.length;if(ArrayBuffer.isView(ie)||Ee(ie,ArrayBuffer))return ie.byteLength;if(typeof ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+u(ie));var te=ie.length,ae=arguments.length>2&&arguments[2]===!0;if(!ae&&te===0)return 0;for(var ce=!1;;)switch(J){case"ascii":case"latin1":case"binary":return te;case"utf8":case"utf-8":return ue(ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te*2;case"hex":return te>>>1;case"base64":return Me(ie).length;default:if(ce)return ae?-1:ue(ie).length;J=(""+J).toLowerCase(),ce=!0}}b.byteLength=d;function D(ie,J,te){var ae=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((te===void 0||te>this.length)&&(te=this.length),te<=0)||(te>>>=0,J>>>=0,te<=J))return"";for(ie||(ie="utf8");;)switch(ie){case"hex":return Q(this,J,te);case"utf8":case"utf-8":return X(this,J,te);case"ascii":return Y(this,J,te);case"latin1":case"binary":return q(this,J,te);case"base64":return B(this,J,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,J,te);default:if(ae)throw new TypeError("Unknown encoding: "+ie);ie=(ie+"").toLowerCase(),ae=!0}}b.prototype._isBuffer=!0;function E(ie,J,te){var ae=ie[J];ie[J]=ie[te],ie[te]=ae}b.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var te=0;tete&&(J+=" ... "),""},h&&(b.prototype[h]=b.prototype.inspect),b.prototype.compare=function(J,te,ae,ce,pe){if(Ee(J,Uint8Array)&&(J=b.from(J,J.offset,J.byteLength)),!b.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+u(J));if(te===void 0&&(te=0),ae===void 0&&(ae=J?J.length:0),ce===void 0&&(ce=0),pe===void 0&&(pe=this.length),te<0||ae>J.length||ce<0||pe>this.length)throw new RangeError("out of range index");if(ce>=pe&&te>=ae)return 0;if(ce>=pe)return-1;if(te>=ae)return 1;if(te>>>=0,ae>>>=0,ce>>>=0,pe>>>=0,this===J)return 0;for(var ve=pe-ce,xe=ae-te,me=Math.min(ve,xe),de=this.slice(ce,pe),_e=J.slice(te,ae),Ae=0;Ae2147483647?te=2147483647:te<-2147483648&&(te=-2147483648),te=+te,Ce(te)&&(te=ce?0:ie.length-1),te<0&&(te=ie.length+te),te>=ie.length){if(ce)return-1;te=ie.length-1}else if(te<0)if(ce)te=0;else return-1;if(typeof J=="string"&&(J=b.from(J,ae)),b.isBuffer(J))return J.length===0?-1:N(ie,J,te,ae,ce);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(ie,J,te):Uint8Array.prototype.lastIndexOf.call(ie,J,te):N(ie,[J],te,ae,ce);throw new TypeError("val must be string, number or Buffer")}function N(ie,J,te,ae,ce){var pe=1,ve=ie.length,xe=J.length;if(ae!==void 0&&(ae=String(ae).toLowerCase(),ae==="ucs2"||ae==="ucs-2"||ae==="utf16le"||ae==="utf-16le")){if(ie.length<2||J.length<2)return-1;pe=2,ve/=2,xe/=2,te/=2}function me(De,We){return pe===1?De[We]:De.readUInt16BE(We*pe)}var de;if(ce){var _e=-1;for(de=te;deve&&(te=ve-xe),de=te;de>=0;de--){for(var Ae=!0,Ie=0;Iece&&(ae=ce)):ae=ce;var pe=J.length;ae>pe/2&&(ae=pe/2);for(var ve=0;ve>>0,isFinite(ae)?(ae=ae>>>0,ce===void 0&&(ce="utf8")):(ce=ae,ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var pe=this.length-te;if((ae===void 0||ae>pe)&&(ae=pe),J.length>0&&(ae<0||te<0)||te>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");for(var ve=!1;;)switch(ce){case"hex":return I(this,J,te,ae);case"utf8":case"utf-8":return F(this,J,te,ae);case"ascii":case"latin1":case"binary":return L(this,J,te,ae);case"base64":return P(this,J,te,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,J,te,ae);default:if(ve)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),ve=!0}},b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(ie,J,te){return J===0&&te===ie.length?s.fromByteArray(ie):s.fromByteArray(ie.slice(J,te))}function X(ie,J,te){te=Math.min(ie.length,te);for(var ae=[],ce=J;ce239?4:pe>223?3:pe>191?2:1;if(ce+xe<=te){var me,de,_e,Ae;switch(xe){case 1:pe<128&&(ve=pe);break;case 2:me=ie[ce+1],(me&192)===128&&(Ae=(pe&31)<<6|me&63,Ae>127&&(ve=Ae));break;case 3:me=ie[ce+1],de=ie[ce+2],(me&192)===128&&(de&192)===128&&(Ae=(pe&15)<<12|(me&63)<<6|de&63,Ae>2047&&(Ae<55296||Ae>57343)&&(ve=Ae));break;case 4:me=ie[ce+1],de=ie[ce+2],_e=ie[ce+3],(me&192)===128&&(de&192)===128&&(_e&192)===128&&(Ae=(pe&15)<<18|(me&63)<<12|(de&63)<<6|_e&63,Ae>65535&&Ae<1114112&&(ve=Ae))}}ve===null?(ve=65533,xe=1):ve>65535&&(ve-=65536,ae.push(ve>>>10&1023|55296),ve=56320|ve&1023),ae.push(ve),ce+=xe}return ee(ae)}var $=4096;function ee(ie){var J=ie.length;if(J<=$)return String.fromCharCode.apply(String,ie);for(var te="",ae=0;aeae)&&(te=ae);for(var ce="",pe=J;peae&&(J=ae),te<0?(te+=ae,te<0&&(te=0)):te>ae&&(te=ae),tete)throw new RangeError("Trying to access beyond buffer length")}b.prototype.readUintLE=b.prototype.readUIntLE=function(J,te,ae){J=J>>>0,te=te>>>0,ae||Z(J,te,this.length);for(var ce=this[J],pe=1,ve=0;++ve>>0,te=te>>>0,ae||Z(J,te,this.length);for(var ce=this[J+--te],pe=1;te>0&&(pe*=256);)ce+=this[J+--te]*pe;return ce},b.prototype.readUint8=b.prototype.readUInt8=function(J,te){return J=J>>>0,te||Z(J,1,this.length),this[J]},b.prototype.readUint16LE=b.prototype.readUInt16LE=function(J,te){return J=J>>>0,te||Z(J,2,this.length),this[J]|this[J+1]<<8},b.prototype.readUint16BE=b.prototype.readUInt16BE=function(J,te){return J=J>>>0,te||Z(J,2,this.length),this[J]<<8|this[J+1]},b.prototype.readUint32LE=b.prototype.readUInt32LE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},b.prototype.readUint32BE=b.prototype.readUInt32BE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},b.prototype.readIntLE=function(J,te,ae){J=J>>>0,te=te>>>0,ae||Z(J,te,this.length);for(var ce=this[J],pe=1,ve=0;++ve=pe&&(ce-=Math.pow(2,8*te)),ce},b.prototype.readIntBE=function(J,te,ae){J=J>>>0,te=te>>>0,ae||Z(J,te,this.length);for(var ce=te,pe=1,ve=this[J+--ce];ce>0&&(pe*=256);)ve+=this[J+--ce]*pe;return pe*=128,ve>=pe&&(ve-=Math.pow(2,8*te)),ve},b.prototype.readInt8=function(J,te){return J=J>>>0,te||Z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},b.prototype.readInt16LE=function(J,te){J=J>>>0,te||Z(J,2,this.length);var ae=this[J]|this[J+1]<<8;return ae&32768?ae|4294901760:ae},b.prototype.readInt16BE=function(J,te){J=J>>>0,te||Z(J,2,this.length);var ae=this[J+1]|this[J]<<8;return ae&32768?ae|4294901760:ae},b.prototype.readInt32LE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},b.prototype.readInt32BE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},b.prototype.readFloatLE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),f.read(this,J,!0,23,4)},b.prototype.readFloatBE=function(J,te){return J=J>>>0,te||Z(J,4,this.length),f.read(this,J,!1,23,4)},b.prototype.readDoubleLE=function(J,te){return J=J>>>0,te||Z(J,8,this.length),f.read(this,J,!0,52,8)},b.prototype.readDoubleBE=function(J,te){return J=J>>>0,te||Z(J,8,this.length),f.read(this,J,!1,52,8)};function se(ie,J,te,ae,ce,pe){if(!b.isBuffer(ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>ce||Jie.length)throw new RangeError("Index out of range")}b.prototype.writeUintLE=b.prototype.writeUIntLE=function(J,te,ae,ce){if(J=+J,te=te>>>0,ae=ae>>>0,!ce){var pe=Math.pow(2,8*ae)-1;se(this,J,te,ae,pe,0)}var ve=1,xe=0;for(this[te]=J&255;++xe>>0,ae=ae>>>0,!ce){var pe=Math.pow(2,8*ae)-1;se(this,J,te,ae,pe,0)}var ve=ae-1,xe=1;for(this[te+ve]=J&255;--ve>=0&&(xe*=256);)this[te+ve]=J/xe&255;return te+ae},b.prototype.writeUint8=b.prototype.writeUInt8=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,1,255,0),this[te]=J&255,te+1},b.prototype.writeUint16LE=b.prototype.writeUInt16LE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,2,65535,0),this[te]=J&255,this[te+1]=J>>>8,te+2},b.prototype.writeUint16BE=b.prototype.writeUInt16BE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,2,65535,0),this[te]=J>>>8,this[te+1]=J&255,te+2},b.prototype.writeUint32LE=b.prototype.writeUInt32LE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,4,4294967295,0),this[te+3]=J>>>24,this[te+2]=J>>>16,this[te+1]=J>>>8,this[te]=J&255,te+4},b.prototype.writeUint32BE=b.prototype.writeUInt32BE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,4,4294967295,0),this[te]=J>>>24,this[te+1]=J>>>16,this[te+2]=J>>>8,this[te+3]=J&255,te+4},b.prototype.writeIntLE=function(J,te,ae,ce){if(J=+J,te=te>>>0,!ce){var pe=Math.pow(2,8*ae-1);se(this,J,te,ae,pe-1,-pe)}var ve=0,xe=1,me=0;for(this[te]=J&255;++ve>0)-me&255;return te+ae},b.prototype.writeIntBE=function(J,te,ae,ce){if(J=+J,te=te>>>0,!ce){var pe=Math.pow(2,8*ae-1);se(this,J,te,ae,pe-1,-pe)}var ve=ae-1,xe=1,me=0;for(this[te+ve]=J&255;--ve>=0&&(xe*=256);)J<0&&me===0&&this[te+ve+1]!==0&&(me=1),this[te+ve]=(J/xe>>0)-me&255;return te+ae},b.prototype.writeInt8=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,1,127,-128),J<0&&(J=255+J+1),this[te]=J&255,te+1},b.prototype.writeInt16LE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,2,32767,-32768),this[te]=J&255,this[te+1]=J>>>8,te+2},b.prototype.writeInt16BE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,2,32767,-32768),this[te]=J>>>8,this[te+1]=J&255,te+2},b.prototype.writeInt32LE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,4,2147483647,-2147483648),this[te]=J&255,this[te+1]=J>>>8,this[te+2]=J>>>16,this[te+3]=J>>>24,te+4},b.prototype.writeInt32BE=function(J,te,ae){return J=+J,te=te>>>0,ae||se(this,J,te,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[te]=J>>>24,this[te+1]=J>>>16,this[te+2]=J>>>8,this[te+3]=J&255,te+4};function j(ie,J,te,ae,ce,pe){if(te+ae>ie.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("Index out of range")}function V(ie,J,te,ae,ce){return J=+J,te=te>>>0,ce||j(ie,J,te,4,34028234663852886e22,-34028234663852886e22),f.write(ie,J,te,ae,23,4),te+4}b.prototype.writeFloatLE=function(J,te,ae){return V(this,J,te,!0,ae)},b.prototype.writeFloatBE=function(J,te,ae){return V(this,J,te,!1,ae)};function re(ie,J,te,ae,ce){return J=+J,te=te>>>0,ce||j(ie,J,te,8,17976931348623157e292,-17976931348623157e292),f.write(ie,J,te,ae,52,8),te+8}b.prototype.writeDoubleLE=function(J,te,ae){return re(this,J,te,!0,ae)},b.prototype.writeDoubleBE=function(J,te,ae){return re(this,J,te,!1,ae)},b.prototype.copy=function(J,te,ae,ce){if(!b.isBuffer(J))throw new TypeError("argument should be a Buffer");if(ae||(ae=0),!ce&&ce!==0&&(ce=this.length),te>=J.length&&(te=J.length),te||(te=0),ce>0&&ce=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),J.length-te>>0,ae=ae===void 0?this.length:ae>>>0,J||(J=0);var ve;if(typeof J=="number")for(ve=te;ve55295&&te<57344){if(!ce){if(te>56319){(J-=3)>-1&&pe.push(239,191,189);continue}else if(ve+1===ae){(J-=3)>-1&&pe.push(239,191,189);continue}ce=te;continue}if(te<56320){(J-=3)>-1&&pe.push(239,191,189),ce=te;continue}te=(ce-55296<<10|te-56320)+65536}else ce&&(J-=3)>-1&&pe.push(239,191,189);if(ce=null,te<128){if((J-=1)<0)break;pe.push(te)}else if(te<2048){if((J-=2)<0)break;pe.push(te>>6|192,te&63|128)}else if(te<65536){if((J-=3)<0)break;pe.push(te>>12|224,te>>6&63|128,te&63|128)}else if(te<1114112){if((J-=4)<0)break;pe.push(te>>18|240,te>>12&63|128,te>>6&63|128,te&63|128)}else throw new Error("Invalid code point")}return pe}function ye(ie){for(var J=[],te=0;te>8,ce=te%256,pe.push(ce),pe.push(ae);return pe}function Me(ie){return s.toByteArray(ne(ie))}function ge(ie,J,te,ae){for(var ce=0;ce=J.length||ce>=ie.length);++ce)J[ce+te]=ie[ce];return ce}function Ee(ie,J){return ie instanceof J||ie!=null&&ie.constructor!=null&&ie.constructor.name!=null&&ie.constructor.name===J.name}function Ce(ie){return ie!==ie}var Fe=(function(){for(var ie="0123456789abcdef",J=new Array(256),te=0;te<16;++te)for(var ae=te*16,ce=0;ce<16;++ce)J[ae+ce]=ie[te]+ie[ce];return J})()}),9216:(function(a){"use strict";a.exports=u,a.exports.isMobile=u,a.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,l=/android|ipad|playbook|silk/i;function u(s){s||(s={});var f=s.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var h=o.test(f)&&!i.test(f)||!!s.tablet&&l.test(f);return!h&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(h=!0),h}}),6296:(function(a,o,i){"use strict";a.exports=p;var l=i(7261),u=i(9977),s=i(1811);function f(_,y){this._controllerNames=Object.keys(_),this._controllerList=this._controllerNames.map(function(b){return _[b]}),this._mode=y,this._active=_[y],this._active||(this._mode="turntable",this._active=_.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var h=f.prototype;h.flush=function(_){for(var y=this._controllerList,b=0;b0)throw new Error("Invalid string. Length must be a multiple of 4");var M=S.indexOf("=");M===-1&&(M=x);var v=M===x?0:4-M%4;return[M,v]}function _(S){var x=p(S),M=x[0],v=x[1];return(M+v)*3/4-v}function y(S,x,M){return(x+M)*3/4-M}function b(S){var x,M=p(S),v=M[0],w=M[1],g=new u(y(S,v,w)),c=0,A=w>0?v-4:v,d;for(d=0;d>16&255,g[c++]=x>>8&255,g[c++]=x&255;return w===2&&(x=l[S.charCodeAt(d)]<<2|l[S.charCodeAt(d+1)]>>4,g[c++]=x&255),w===1&&(x=l[S.charCodeAt(d)]<<10|l[S.charCodeAt(d+1)]<<4|l[S.charCodeAt(d+2)]>>2,g[c++]=x>>8&255,g[c++]=x&255),g}function T(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function m(S,x,M){for(var v,w=[],g=x;gA?A:c+g));return v===1?(x=S[M-1],w.push(i[x>>2]+i[x<<4&63]+"==")):v===2&&(x=(S[M-2]<<8)+S[M-1],w.push(i[x>>10]+i[x>>4&63]+i[x<<2&63]+"=")),w.join("")}}),3865:(function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}}),1318:(function(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}}),8697:(function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}}),7842:(function(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),h=i(869),p=i(8697);a.exports=_;function _(y,b){if(l(y))return b?p(y,_(b)):[y[0].clone(),y[1].clone()];var T=0,m,k;if(u(y))m=y.clone();else if(typeof y=="string")m=f(y);else{if(y===0)return[s(0),s(1)];if(y===Math.floor(y))m=s(y);else{for(;y!==Math.floor(y);)y=y*Math.pow(2,256),T-=256;m=s(y)}}if(l(b))m.mul(b[1]),k=b[0].clone();else if(u(b))k=b.clone();else if(typeof b=="string")k=f(b);else if(!b)k=s(1);else if(b===Math.floor(b))k=s(b);else{for(;b!==Math.floor(b);)b=b*Math.pow(2,256),T+=256;k=s(b)}return T>0?m=m.ushln(T):T<0&&(k=k.ushln(-T)),h(m,k)}}),6330:(function(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}}),5716:(function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}}),1369:(function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,h=s.words,p=0;if(f===1)p=h[0];else if(f===2)p=h[0]+h[1]*67108864;else for(var _=0;_20?52:p+32}}),1533:(function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}}),2651:(function(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var h=u.exponent(f);return h<52?new l(f):new l(f*Math.pow(2,52-h)).ushln(h-52)}}),869:(function(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,h){var p=u(f),_=u(h);if(p===0)return[l(0),l(1)];if(_===0)return[l(0),l(0)];_<0&&(f=f.neg(),h=h.neg());var y=f.gcd(h);return y.cmpn(1)?[f.div(y),h.div(y)]:[f,h]}}),6768:(function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}}),6504:(function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}}),7721:(function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}}),5572:(function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}}),946:(function(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var h=f[0],p=f[1];if(h.cmpn(0)===0)return 0;var _=h.abs().divmod(p.abs()),y=_.div,b=l(y),T=_.mod,m=h.negative!==p.negative?-1:1;if(T.cmpn(0)===0)return m*b;if(b){var k=u(b)+4,S=l(T.ushln(k).divRound(p));return m*(b+S*Math.pow(2,-k))}else{var x=p.bitLength()-T.bitLength()+53,S=l(T.ushln(x).divRound(p));return x<1023?m*S*Math.pow(2,-x):(S*=Math.pow(2,-1023),m*S*Math.pow(2,1023-x))}}}),2478:(function(a){"use strict";function o(h,p,_,y,b){for(var T=b+1;y<=b;){var m=y+b>>>1,k=h[m],S=_!==void 0?_(k,p):k-p;S>=0?(T=m,b=m-1):y=m+1}return T}function i(h,p,_,y,b){for(var T=b+1;y<=b;){var m=y+b>>>1,k=h[m],S=_!==void 0?_(k,p):k-p;S>0?(T=m,b=m-1):y=m+1}return T}function l(h,p,_,y,b){for(var T=y-1;y<=b;){var m=y+b>>>1,k=h[m],S=_!==void 0?_(k,p):k-p;S<0?(T=m,y=m+1):b=m-1}return T}function u(h,p,_,y,b){for(var T=y-1;y<=b;){var m=y+b>>>1,k=h[m],S=_!==void 0?_(k,p):k-p;S<=0?(T=m,y=m+1):b=m-1}return T}function s(h,p,_,y,b){for(;y<=b;){var T=y+b>>>1,m=h[T],k=_!==void 0?_(m,p):m-p;if(k===0)return T;k<=0?y=T+1:b=T-1}return-1}function f(h,p,_,y,b,T){return typeof _=="function"?T(h,p,_,y===void 0?0:y|0,b===void 0?h.length-1:b|0):T(h,p,void 0,_===void 0?0:_|0,y===void 0?h.length-1:y|0)}a.exports={ge:function(h,p,_,y,b){return f(h,p,_,y,b,o)},gt:function(h,p,_,y,b){return f(h,p,_,y,b,i)},lt:function(h,p,_,y,b){return f(h,p,_,y,b,l)},le:function(h,p,_,y,b){return f(h,p,_,y,b,u)},eq:function(h,p,_,y,b){return f(h,p,_,y,b,s)}}}),8828:(function(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,h=(s>255)<<3,s>>>=h,f|=h,h=(s>15)<<2,s>>>=h,f|=h,h=(s>3)<<1,s>>>=h,f|=h,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var h=f,p=f,_=7;for(h>>>=1;h;h>>>=1)p<<=1,p|=h&1,--_;s[f]=p<<_&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,h){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,h&=1023,h=(h|h<<16)&4278190335,h=(h|h<<8)&251719695,h=(h|h<<4)&3272356035,h=(h|h<<2)&1227133513,s|h<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}}),6859:(function(a,o,i){a=i.nmd(a),(function(l,u){"use strict";function s(F,L){if(!F)throw new Error(L||"Assertion failed")}function f(F,L){F.super_=L;var P=function(){};P.prototype=L.prototype,F.prototype=new P,F.prototype.constructor=F}function h(F,L,P){if(h.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((L==="le"||L==="be")&&(P=L,L=10),this._init(F||0,L||10,P||"be"))}typeof l=="object"?l.exports=h:u.BN=h,h.BN=h,h.wordSize=26;var p;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?p=window.Buffer:p=i(7790).Buffer}catch(F){}h.isBN=function(L){return L instanceof h?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===h.wordSize&&Array.isArray(L.words)},h.max=function(L,P){return L.cmp(P)>0?L:P},h.min=function(L,P){return L.cmp(P)<0?L:P},h.prototype._init=function(L,P,O){if(typeof L=="number")return this._initNumber(L,P,O);if(typeof L=="object")return this._initArray(L,P,O);P==="hex"&&(P=16),s(P===(P|0)&&P>=2&&P<=36),L=L.toString().replace(/\s+/g,"");var B=0;L[0]==="-"&&(B++,this.negative=1),B=0;B-=3)$=L[B]|L[B-1]<<8|L[B-2]<<16,this.words[X]|=$<>>26-ee&67108863,ee+=24,ee>=26&&(ee-=26,X++);else if(O==="le")for(B=0,X=0;B>>26-ee&67108863,ee+=24,ee>=26&&(ee-=26,X++);return this.strip()};function _(F,L){var P=F.charCodeAt(L);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function y(F,L,P){var O=_(F,P);return P-1>=L&&(O|=_(F,P-1)<<4),O}h.prototype._parseHex=function(L,P,O){this.length=Math.ceil((L.length-P)/6),this.words=new Array(this.length);for(var B=0;B=P;B-=2)ee=y(L,P,B)<=18?(X-=18,$+=1,this.words[$]|=ee>>>26):X+=8;else{var Y=L.length-P;for(B=Y%2===0?P+1:P;B=18?(X-=18,$+=1,this.words[$]|=ee>>>26):X+=8}this.strip()};function b(F,L,P,O){for(var B=0,X=Math.min(F.length,P),$=L;$=49?B+=ee-49+10:ee>=17?B+=ee-17+10:B+=ee}return B}h.prototype._parseBase=function(L,P,O){this.words=[0],this.length=1;for(var B=0,X=1;X<=67108863;X*=P)B++;B--,X=X/P|0;for(var $=L.length-O,ee=$%B,Y=Math.min($,$-ee)+O,q=0,Q=O;Q1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},h.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?""};var T=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(L,P){L=L||10,P=P|0||1;var O;if(L===16||L==="hex"){O="";for(var B=0,X=0,$=0;$>>24-B&16777215,B+=2,B>=26&&(B-=26,$--),X!==0||$!==this.length-1?O=T[6-Y.length]+Y+O:O=Y+O}for(X!==0&&(O=X.toString(16)+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(L===(L|0)&&L>=2&&L<=36){var q=m[L],Q=k[L];O="";var oe=this.clone();for(oe.negative=0;!oe.isZero();){var Z=oe.modn(Q).toString(L);oe=oe.idivn(Q),oe.isZero()?O=Z+O:O=T[q-Z.length]+Z+O}for(this.isZero()&&(O="0"+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}s(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(L,P){return s(typeof p!="undefined"),this.toArrayLike(p,L,P)},h.prototype.toArray=function(L,P){return this.toArrayLike(Array,L,P)},h.prototype.toArrayLike=function(L,P,O){var B=this.byteLength(),X=O||Math.max(1,B);s(B<=X,"byte array longer than desired length"),s(X>0,"Requested array length <= 0"),this.strip();var $=P==="le",ee=new L(X),Y,q,Q=this.clone();if($){for(q=0;!Q.isZero();q++)Y=Q.andln(255),Q.iushrn(8),ee[q]=Y;for(;q=4096&&(O+=13,P>>>=13),P>=64&&(O+=7,P>>>=7),P>=8&&(O+=4,P>>>=4),P>=2&&(O+=2,P>>>=2),O+P},h.prototype._zeroBits=function(L){if(L===0)return 26;var P=L,O=0;return(P&8191)===0&&(O+=13,P>>>=13),(P&127)===0&&(O+=7,P>>>=7),(P&15)===0&&(O+=4,P>>>=4),(P&3)===0&&(O+=2,P>>>=2),(P&1)===0&&O++,O},h.prototype.bitLength=function(){var L=this.words[this.length-1],P=this._countBits(L);return(this.length-1)*26+P};function S(F){for(var L=new Array(F.bitLength()),P=0;P>>B}return L}h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,P=0;PL.length?this.clone().ior(L):L.clone().ior(this)},h.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},h.prototype.iuand=function(L){var P;this.length>L.length?P=L:P=this;for(var O=0;OL.length?this.clone().iand(L):L.clone().iand(this)},h.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},h.prototype.iuxor=function(L){var P,O;this.length>L.length?(P=this,O=L):(P=L,O=this);for(var B=0;BL.length?this.clone().ixor(L):L.clone().ixor(this)},h.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},h.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var P=Math.ceil(L/26)|0,O=L%26;this._expand(P),O>0&&P--;for(var B=0;B0&&(this.words[B]=~this.words[B]&67108863>>26-O),this.strip()},h.prototype.notn=function(L){return this.clone().inotn(L)},h.prototype.setn=function(L,P){s(typeof L=="number"&&L>=0);var O=L/26|0,B=L%26;return this._expand(O+1),P?this.words[O]=this.words[O]|1<L.length?(O=this,B=L):(O=L,B=this);for(var X=0,$=0;$>>26;for(;X!==0&&$>>26;if(this.length=O.length,X!==0)this.words[this.length]=X,this.length++;else if(O!==this)for(;$L.length?this.clone().iadd(L):L.clone().iadd(this)},h.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var P=this.iadd(L);return L.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var O=this.cmp(L);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var B,X;O>0?(B=this,X=L):(B=L,X=this);for(var $=0,ee=0;ee>26,this.words[ee]=P&67108863;for(;$!==0&&ee>26,this.words[ee]=P&67108863;if($===0&&ee>>26,oe=Y&67108863,Z=Math.min(q,L.length-1),se=Math.max(0,q-F.length+1);se<=Z;se++){var j=q-se|0;B=F.words[j]|0,X=L.words[se]|0,$=B*X+oe,Q+=$/67108864|0,oe=$&67108863}P.words[q]=oe|0,Y=Q|0}return Y!==0?P.words[q]=Y|0:P.length--,P.strip()}var M=function(L,P,O){var B=L.words,X=P.words,$=O.words,ee=0,Y,q,Q,oe=B[0]|0,Z=oe&8191,se=oe>>>13,j=B[1]|0,V=j&8191,re=j>>>13,H=B[2]|0,ne=H&8191,ue=H>>>13,ye=B[3]|0,ke=ye&8191,Me=ye>>>13,ge=B[4]|0,Ee=ge&8191,Ce=ge>>>13,Fe=B[5]|0,ie=Fe&8191,J=Fe>>>13,te=B[6]|0,ae=te&8191,ce=te>>>13,pe=B[7]|0,ve=pe&8191,xe=pe>>>13,me=B[8]|0,de=me&8191,_e=me>>>13,Ae=B[9]|0,Ie=Ae&8191,De=Ae>>>13,We=X[0]|0,Oe=We&8191,ze=We>>>13,Be=X[1]|0,Se=Be&8191,Le=Be>>>13,Ye=X[2]|0,Xe=Ye&8191,$e=Ye>>>13,Qe=X[3]|0,je=Qe&8191,ir=Qe>>>13,yr=X[4]|0,xr=yr&8191,wr=yr>>>13,$r=X[5]|0,_r=$r&8191,Nr=$r>>>13,rt=X[6]|0,Sr=rt&8191,qr=rt>>>13,gt=X[7]|0,Hr=gt&8191,Xr=gt>>>13,qt=X[8]|0,nr=qt&8191,Pr=qt>>>13,Zr=X[9]|0,Er=Zr&8191,Qr=Zr>>>13;O.negative=L.negative^P.negative,O.length=19,Y=Math.imul(Z,Oe),q=Math.imul(Z,ze),q=q+Math.imul(se,Oe)|0,Q=Math.imul(se,ze);var Rt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,Y=Math.imul(V,Oe),q=Math.imul(V,ze),q=q+Math.imul(re,Oe)|0,Q=Math.imul(re,ze),Y=Y+Math.imul(Z,Se)|0,q=q+Math.imul(Z,Le)|0,q=q+Math.imul(se,Se)|0,Q=Q+Math.imul(se,Le)|0;var it=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(it>>>26)|0,it&=67108863,Y=Math.imul(ne,Oe),q=Math.imul(ne,ze),q=q+Math.imul(ue,Oe)|0,Q=Math.imul(ue,ze),Y=Y+Math.imul(V,Se)|0,q=q+Math.imul(V,Le)|0,q=q+Math.imul(re,Se)|0,Q=Q+Math.imul(re,Le)|0,Y=Y+Math.imul(Z,Xe)|0,q=q+Math.imul(Z,$e)|0,q=q+Math.imul(se,Xe)|0,Q=Q+Math.imul(se,$e)|0;var jt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(jt>>>26)|0,jt&=67108863,Y=Math.imul(ke,Oe),q=Math.imul(ke,ze),q=q+Math.imul(Me,Oe)|0,Q=Math.imul(Me,ze),Y=Y+Math.imul(ne,Se)|0,q=q+Math.imul(ne,Le)|0,q=q+Math.imul(ue,Se)|0,Q=Q+Math.imul(ue,Le)|0,Y=Y+Math.imul(V,Xe)|0,q=q+Math.imul(V,$e)|0,q=q+Math.imul(re,Xe)|0,Q=Q+Math.imul(re,$e)|0,Y=Y+Math.imul(Z,je)|0,q=q+Math.imul(Z,ir)|0,q=q+Math.imul(se,je)|0,Q=Q+Math.imul(se,ir)|0;var Jt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,Y=Math.imul(Ee,Oe),q=Math.imul(Ee,ze),q=q+Math.imul(Ce,Oe)|0,Q=Math.imul(Ce,ze),Y=Y+Math.imul(ke,Se)|0,q=q+Math.imul(ke,Le)|0,q=q+Math.imul(Me,Se)|0,Q=Q+Math.imul(Me,Le)|0,Y=Y+Math.imul(ne,Xe)|0,q=q+Math.imul(ne,$e)|0,q=q+Math.imul(ue,Xe)|0,Q=Q+Math.imul(ue,$e)|0,Y=Y+Math.imul(V,je)|0,q=q+Math.imul(V,ir)|0,q=q+Math.imul(re,je)|0,Q=Q+Math.imul(re,ir)|0,Y=Y+Math.imul(Z,xr)|0,q=q+Math.imul(Z,wr)|0,q=q+Math.imul(se,xr)|0,Q=Q+Math.imul(se,wr)|0;var Pt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,Y=Math.imul(ie,Oe),q=Math.imul(ie,ze),q=q+Math.imul(J,Oe)|0,Q=Math.imul(J,ze),Y=Y+Math.imul(Ee,Se)|0,q=q+Math.imul(Ee,Le)|0,q=q+Math.imul(Ce,Se)|0,Q=Q+Math.imul(Ce,Le)|0,Y=Y+Math.imul(ke,Xe)|0,q=q+Math.imul(ke,$e)|0,q=q+Math.imul(Me,Xe)|0,Q=Q+Math.imul(Me,$e)|0,Y=Y+Math.imul(ne,je)|0,q=q+Math.imul(ne,ir)|0,q=q+Math.imul(ue,je)|0,Q=Q+Math.imul(ue,ir)|0,Y=Y+Math.imul(V,xr)|0,q=q+Math.imul(V,wr)|0,q=q+Math.imul(re,xr)|0,Q=Q+Math.imul(re,wr)|0,Y=Y+Math.imul(Z,_r)|0,q=q+Math.imul(Z,Nr)|0,q=q+Math.imul(se,_r)|0,Q=Q+Math.imul(se,Nr)|0;var vt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(vt>>>26)|0,vt&=67108863,Y=Math.imul(ae,Oe),q=Math.imul(ae,ze),q=q+Math.imul(ce,Oe)|0,Q=Math.imul(ce,ze),Y=Y+Math.imul(ie,Se)|0,q=q+Math.imul(ie,Le)|0,q=q+Math.imul(J,Se)|0,Q=Q+Math.imul(J,Le)|0,Y=Y+Math.imul(Ee,Xe)|0,q=q+Math.imul(Ee,$e)|0,q=q+Math.imul(Ce,Xe)|0,Q=Q+Math.imul(Ce,$e)|0,Y=Y+Math.imul(ke,je)|0,q=q+Math.imul(ke,ir)|0,q=q+Math.imul(Me,je)|0,Q=Q+Math.imul(Me,ir)|0,Y=Y+Math.imul(ne,xr)|0,q=q+Math.imul(ne,wr)|0,q=q+Math.imul(ue,xr)|0,Q=Q+Math.imul(ue,wr)|0,Y=Y+Math.imul(V,_r)|0,q=q+Math.imul(V,Nr)|0,q=q+Math.imul(re,_r)|0,Q=Q+Math.imul(re,Nr)|0,Y=Y+Math.imul(Z,Sr)|0,q=q+Math.imul(Z,qr)|0,q=q+Math.imul(se,Sr)|0,Q=Q+Math.imul(se,qr)|0;var Mt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,Y=Math.imul(ve,Oe),q=Math.imul(ve,ze),q=q+Math.imul(xe,Oe)|0,Q=Math.imul(xe,ze),Y=Y+Math.imul(ae,Se)|0,q=q+Math.imul(ae,Le)|0,q=q+Math.imul(ce,Se)|0,Q=Q+Math.imul(ce,Le)|0,Y=Y+Math.imul(ie,Xe)|0,q=q+Math.imul(ie,$e)|0,q=q+Math.imul(J,Xe)|0,Q=Q+Math.imul(J,$e)|0,Y=Y+Math.imul(Ee,je)|0,q=q+Math.imul(Ee,ir)|0,q=q+Math.imul(Ce,je)|0,Q=Q+Math.imul(Ce,ir)|0,Y=Y+Math.imul(ke,xr)|0,q=q+Math.imul(ke,wr)|0,q=q+Math.imul(Me,xr)|0,Q=Q+Math.imul(Me,wr)|0,Y=Y+Math.imul(ne,_r)|0,q=q+Math.imul(ne,Nr)|0,q=q+Math.imul(ue,_r)|0,Q=Q+Math.imul(ue,Nr)|0,Y=Y+Math.imul(V,Sr)|0,q=q+Math.imul(V,qr)|0,q=q+Math.imul(re,Sr)|0,Q=Q+Math.imul(re,qr)|0,Y=Y+Math.imul(Z,Hr)|0,q=q+Math.imul(Z,Xr)|0,q=q+Math.imul(se,Hr)|0,Q=Q+Math.imul(se,Xr)|0;var Tt=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,Y=Math.imul(de,Oe),q=Math.imul(de,ze),q=q+Math.imul(_e,Oe)|0,Q=Math.imul(_e,ze),Y=Y+Math.imul(ve,Se)|0,q=q+Math.imul(ve,Le)|0,q=q+Math.imul(xe,Se)|0,Q=Q+Math.imul(xe,Le)|0,Y=Y+Math.imul(ae,Xe)|0,q=q+Math.imul(ae,$e)|0,q=q+Math.imul(ce,Xe)|0,Q=Q+Math.imul(ce,$e)|0,Y=Y+Math.imul(ie,je)|0,q=q+Math.imul(ie,ir)|0,q=q+Math.imul(J,je)|0,Q=Q+Math.imul(J,ir)|0,Y=Y+Math.imul(Ee,xr)|0,q=q+Math.imul(Ee,wr)|0,q=q+Math.imul(Ce,xr)|0,Q=Q+Math.imul(Ce,wr)|0,Y=Y+Math.imul(ke,_r)|0,q=q+Math.imul(ke,Nr)|0,q=q+Math.imul(Me,_r)|0,Q=Q+Math.imul(Me,Nr)|0,Y=Y+Math.imul(ne,Sr)|0,q=q+Math.imul(ne,qr)|0,q=q+Math.imul(ue,Sr)|0,Q=Q+Math.imul(ue,qr)|0,Y=Y+Math.imul(V,Hr)|0,q=q+Math.imul(V,Xr)|0,q=q+Math.imul(re,Hr)|0,Q=Q+Math.imul(re,Xr)|0,Y=Y+Math.imul(Z,nr)|0,q=q+Math.imul(Z,Pr)|0,q=q+Math.imul(se,nr)|0,Q=Q+Math.imul(se,Pr)|0;var ea=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(ea>>>26)|0,ea&=67108863,Y=Math.imul(Ie,Oe),q=Math.imul(Ie,ze),q=q+Math.imul(De,Oe)|0,Q=Math.imul(De,ze),Y=Y+Math.imul(de,Se)|0,q=q+Math.imul(de,Le)|0,q=q+Math.imul(_e,Se)|0,Q=Q+Math.imul(_e,Le)|0,Y=Y+Math.imul(ve,Xe)|0,q=q+Math.imul(ve,$e)|0,q=q+Math.imul(xe,Xe)|0,Q=Q+Math.imul(xe,$e)|0,Y=Y+Math.imul(ae,je)|0,q=q+Math.imul(ae,ir)|0,q=q+Math.imul(ce,je)|0,Q=Q+Math.imul(ce,ir)|0,Y=Y+Math.imul(ie,xr)|0,q=q+Math.imul(ie,wr)|0,q=q+Math.imul(J,xr)|0,Q=Q+Math.imul(J,wr)|0,Y=Y+Math.imul(Ee,_r)|0,q=q+Math.imul(Ee,Nr)|0,q=q+Math.imul(Ce,_r)|0,Q=Q+Math.imul(Ce,Nr)|0,Y=Y+Math.imul(ke,Sr)|0,q=q+Math.imul(ke,qr)|0,q=q+Math.imul(Me,Sr)|0,Q=Q+Math.imul(Me,qr)|0,Y=Y+Math.imul(ne,Hr)|0,q=q+Math.imul(ne,Xr)|0,q=q+Math.imul(ue,Hr)|0,Q=Q+Math.imul(ue,Xr)|0,Y=Y+Math.imul(V,nr)|0,q=q+Math.imul(V,Pr)|0,q=q+Math.imul(re,nr)|0,Q=Q+Math.imul(re,Pr)|0,Y=Y+Math.imul(Z,Er)|0,q=q+Math.imul(Z,Qr)|0,q=q+Math.imul(se,Er)|0,Q=Q+Math.imul(se,Qr)|0;var Nn=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,Y=Math.imul(Ie,Se),q=Math.imul(Ie,Le),q=q+Math.imul(De,Se)|0,Q=Math.imul(De,Le),Y=Y+Math.imul(de,Xe)|0,q=q+Math.imul(de,$e)|0,q=q+Math.imul(_e,Xe)|0,Q=Q+Math.imul(_e,$e)|0,Y=Y+Math.imul(ve,je)|0,q=q+Math.imul(ve,ir)|0,q=q+Math.imul(xe,je)|0,Q=Q+Math.imul(xe,ir)|0,Y=Y+Math.imul(ae,xr)|0,q=q+Math.imul(ae,wr)|0,q=q+Math.imul(ce,xr)|0,Q=Q+Math.imul(ce,wr)|0,Y=Y+Math.imul(ie,_r)|0,q=q+Math.imul(ie,Nr)|0,q=q+Math.imul(J,_r)|0,Q=Q+Math.imul(J,Nr)|0,Y=Y+Math.imul(Ee,Sr)|0,q=q+Math.imul(Ee,qr)|0,q=q+Math.imul(Ce,Sr)|0,Q=Q+Math.imul(Ce,qr)|0,Y=Y+Math.imul(ke,Hr)|0,q=q+Math.imul(ke,Xr)|0,q=q+Math.imul(Me,Hr)|0,Q=Q+Math.imul(Me,Xr)|0,Y=Y+Math.imul(ne,nr)|0,q=q+Math.imul(ne,Pr)|0,q=q+Math.imul(ue,nr)|0,Q=Q+Math.imul(ue,Pr)|0,Y=Y+Math.imul(V,Er)|0,q=q+Math.imul(V,Qr)|0,q=q+Math.imul(re,Er)|0,Q=Q+Math.imul(re,Qr)|0;var Ma=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Ma>>>26)|0,Ma&=67108863,Y=Math.imul(Ie,Xe),q=Math.imul(Ie,$e),q=q+Math.imul(De,Xe)|0,Q=Math.imul(De,$e),Y=Y+Math.imul(de,je)|0,q=q+Math.imul(de,ir)|0,q=q+Math.imul(_e,je)|0,Q=Q+Math.imul(_e,ir)|0,Y=Y+Math.imul(ve,xr)|0,q=q+Math.imul(ve,wr)|0,q=q+Math.imul(xe,xr)|0,Q=Q+Math.imul(xe,wr)|0,Y=Y+Math.imul(ae,_r)|0,q=q+Math.imul(ae,Nr)|0,q=q+Math.imul(ce,_r)|0,Q=Q+Math.imul(ce,Nr)|0,Y=Y+Math.imul(ie,Sr)|0,q=q+Math.imul(ie,qr)|0,q=q+Math.imul(J,Sr)|0,Q=Q+Math.imul(J,qr)|0,Y=Y+Math.imul(Ee,Hr)|0,q=q+Math.imul(Ee,Xr)|0,q=q+Math.imul(Ce,Hr)|0,Q=Q+Math.imul(Ce,Xr)|0,Y=Y+Math.imul(ke,nr)|0,q=q+Math.imul(ke,Pr)|0,q=q+Math.imul(Me,nr)|0,Q=Q+Math.imul(Me,Pr)|0,Y=Y+Math.imul(ne,Er)|0,q=q+Math.imul(ne,Qr)|0,q=q+Math.imul(ue,Er)|0,Q=Q+Math.imul(ue,Qr)|0;var wi=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(wi>>>26)|0,wi&=67108863,Y=Math.imul(Ie,je),q=Math.imul(Ie,ir),q=q+Math.imul(De,je)|0,Q=Math.imul(De,ir),Y=Y+Math.imul(de,xr)|0,q=q+Math.imul(de,wr)|0,q=q+Math.imul(_e,xr)|0,Q=Q+Math.imul(_e,wr)|0,Y=Y+Math.imul(ve,_r)|0,q=q+Math.imul(ve,Nr)|0,q=q+Math.imul(xe,_r)|0,Q=Q+Math.imul(xe,Nr)|0,Y=Y+Math.imul(ae,Sr)|0,q=q+Math.imul(ae,qr)|0,q=q+Math.imul(ce,Sr)|0,Q=Q+Math.imul(ce,qr)|0,Y=Y+Math.imul(ie,Hr)|0,q=q+Math.imul(ie,Xr)|0,q=q+Math.imul(J,Hr)|0,Q=Q+Math.imul(J,Xr)|0,Y=Y+Math.imul(Ee,nr)|0,q=q+Math.imul(Ee,Pr)|0,q=q+Math.imul(Ce,nr)|0,Q=Q+Math.imul(Ce,Pr)|0,Y=Y+Math.imul(ke,Er)|0,q=q+Math.imul(ke,Qr)|0,q=q+Math.imul(Me,Er)|0,Q=Q+Math.imul(Me,Qr)|0;var $i=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+($i>>>26)|0,$i&=67108863,Y=Math.imul(Ie,xr),q=Math.imul(Ie,wr),q=q+Math.imul(De,xr)|0,Q=Math.imul(De,wr),Y=Y+Math.imul(de,_r)|0,q=q+Math.imul(de,Nr)|0,q=q+Math.imul(_e,_r)|0,Q=Q+Math.imul(_e,Nr)|0,Y=Y+Math.imul(ve,Sr)|0,q=q+Math.imul(ve,qr)|0,q=q+Math.imul(xe,Sr)|0,Q=Q+Math.imul(xe,qr)|0,Y=Y+Math.imul(ae,Hr)|0,q=q+Math.imul(ae,Xr)|0,q=q+Math.imul(ce,Hr)|0,Q=Q+Math.imul(ce,Xr)|0,Y=Y+Math.imul(ie,nr)|0,q=q+Math.imul(ie,Pr)|0,q=q+Math.imul(J,nr)|0,Q=Q+Math.imul(J,Pr)|0,Y=Y+Math.imul(Ee,Er)|0,q=q+Math.imul(Ee,Qr)|0,q=q+Math.imul(Ce,Er)|0,Q=Q+Math.imul(Ce,Qr)|0;var ji=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(ji>>>26)|0,ji&=67108863,Y=Math.imul(Ie,_r),q=Math.imul(Ie,Nr),q=q+Math.imul(De,_r)|0,Q=Math.imul(De,Nr),Y=Y+Math.imul(de,Sr)|0,q=q+Math.imul(de,qr)|0,q=q+Math.imul(_e,Sr)|0,Q=Q+Math.imul(_e,qr)|0,Y=Y+Math.imul(ve,Hr)|0,q=q+Math.imul(ve,Xr)|0,q=q+Math.imul(xe,Hr)|0,Q=Q+Math.imul(xe,Xr)|0,Y=Y+Math.imul(ae,nr)|0,q=q+Math.imul(ae,Pr)|0,q=q+Math.imul(ce,nr)|0,Q=Q+Math.imul(ce,Pr)|0,Y=Y+Math.imul(ie,Er)|0,q=q+Math.imul(ie,Qr)|0,q=q+Math.imul(J,Er)|0,Q=Q+Math.imul(J,Qr)|0;var eo=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(eo>>>26)|0,eo&=67108863,Y=Math.imul(Ie,Sr),q=Math.imul(Ie,qr),q=q+Math.imul(De,Sr)|0,Q=Math.imul(De,qr),Y=Y+Math.imul(de,Hr)|0,q=q+Math.imul(de,Xr)|0,q=q+Math.imul(_e,Hr)|0,Q=Q+Math.imul(_e,Xr)|0,Y=Y+Math.imul(ve,nr)|0,q=q+Math.imul(ve,Pr)|0,q=q+Math.imul(xe,nr)|0,Q=Q+Math.imul(xe,Pr)|0,Y=Y+Math.imul(ae,Er)|0,q=q+Math.imul(ae,Qr)|0,q=q+Math.imul(ce,Er)|0,Q=Q+Math.imul(ce,Qr)|0;var on=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(on>>>26)|0,on&=67108863,Y=Math.imul(Ie,Hr),q=Math.imul(Ie,Xr),q=q+Math.imul(De,Hr)|0,Q=Math.imul(De,Xr),Y=Y+Math.imul(de,nr)|0,q=q+Math.imul(de,Pr)|0,q=q+Math.imul(_e,nr)|0,Q=Q+Math.imul(_e,Pr)|0,Y=Y+Math.imul(ve,Er)|0,q=q+Math.imul(ve,Qr)|0,q=q+Math.imul(xe,Er)|0,Q=Q+Math.imul(xe,Qr)|0;var ko=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(ko>>>26)|0,ko&=67108863,Y=Math.imul(Ie,nr),q=Math.imul(Ie,Pr),q=q+Math.imul(De,nr)|0,Q=Math.imul(De,Pr),Y=Y+Math.imul(de,Er)|0,q=q+Math.imul(de,Qr)|0,q=q+Math.imul(_e,Er)|0,Q=Q+Math.imul(_e,Qr)|0;var Mi=(ee+Y|0)+((q&8191)<<13)|0;ee=(Q+(q>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,Y=Math.imul(Ie,Er),q=Math.imul(Ie,Qr),q=q+Math.imul(De,Er)|0,Q=Math.imul(De,Qr);var Ti=(ee+Y|0)+((q&8191)<<13)|0;return ee=(Q+(q>>>13)|0)+(Ti>>>26)|0,Ti&=67108863,$[0]=Rt,$[1]=it,$[2]=jt,$[3]=Jt,$[4]=Pt,$[5]=vt,$[6]=Mt,$[7]=Tt,$[8]=ea,$[9]=Nn,$[10]=Ma,$[11]=wi,$[12]=$i,$[13]=ji,$[14]=eo,$[15]=on,$[16]=ko,$[17]=Mi,$[18]=Ti,ee!==0&&($[19]=ee,O.length++),O};Math.imul||(M=x);function v(F,L,P){P.negative=L.negative^F.negative,P.length=F.length+L.length;for(var O=0,B=0,X=0;X>>26)|0,B+=$>>>26,$&=67108863}P.words[X]=ee,O=$,$=B}return O!==0?P.words[X]=O:P.length--,P.strip()}function w(F,L,P){var O=new g;return O.mulp(F,L,P)}h.prototype.mulTo=function(L,P){var O,B=this.length+L.length;return this.length===10&&L.length===10?O=M(this,L,P):B<63?O=x(this,L,P):B<1024?O=v(this,L,P):O=w(this,L,P),O};function g(F,L){this.x=F,this.y=L}g.prototype.makeRBT=function(L){for(var P=new Array(L),O=h.prototype._countBits(L)-1,B=0;B>=1;return B},g.prototype.permute=function(L,P,O,B,X,$){for(var ee=0;ee<$;ee++)B[ee]=P[L[ee]],X[ee]=O[L[ee]]},g.prototype.transform=function(L,P,O,B,X,$){this.permute($,L,P,O,B,X);for(var ee=1;ee>>1)X++;return 1<>>13,O[2*$+1]=X&8191,X=X>>>13;for($=2*P;$>=26,P+=B/67108864|0,P+=X>>>26,this.words[O]=X&67108863}return P!==0&&(this.words[O]=P,this.length++),this.length=L===0?1:this.length,this},h.prototype.muln=function(L){return this.clone().imuln(L)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(L){var P=S(L);if(P.length===0)return new h(1);for(var O=this,B=0;B=0);var P=L%26,O=(L-P)/26,B=67108863>>>26-P<<26-P,X;if(P!==0){var $=0;for(X=0;X>>26-P}$&&(this.words[X]=$,this.length++)}if(O!==0){for(X=this.length-1;X>=0;X--)this.words[X+O]=this.words[X];for(X=0;X=0);var B;P?B=(P-P%26)/26:B=0;var X=L%26,$=Math.min((L-X)/26,this.length),ee=67108863^67108863>>>X<$)for(this.length-=$,q=0;q=0&&(Q!==0||q>=B);q--){var oe=this.words[q]|0;this.words[q]=Q<<26-X|oe>>>X,Q=oe&ee}return Y&&Q!==0&&(Y.words[Y.length++]=Q),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(L,P,O){return s(this.negative===0),this.iushrn(L,P,O)},h.prototype.shln=function(L){return this.clone().ishln(L)},h.prototype.ushln=function(L){return this.clone().iushln(L)},h.prototype.shrn=function(L){return this.clone().ishrn(L)},h.prototype.ushrn=function(L){return this.clone().iushrn(L)},h.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var P=L%26,O=(L-P)/26,B=1<=0);var P=L%26,O=(L-P)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(P!==0&&O++,this.length=Math.min(O,this.length),P!==0){var B=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},h.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(Y/67108864|0),this.words[X+O]=$&67108863}for(;X>26,this.words[X+O]=$&67108863;if(ee===0)return this.strip();for(s(ee===-1),ee=0,X=0;X>26,this.words[X]=$&67108863;return this.negative=1,this.strip()},h.prototype._wordDiv=function(L,P){var O=this.length-L.length,B=this.clone(),X=L,$=X.words[X.length-1]|0,ee=this._countBits($);O=26-ee,O!==0&&(X=X.ushln(O),B.iushln(O),$=X.words[X.length-1]|0);var Y=B.length-X.length,q;if(P!=="mod"){q=new h(null),q.length=Y+1,q.words=new Array(q.length);for(var Q=0;Q=0;Z--){var se=(B.words[X.length+Z]|0)*67108864+(B.words[X.length+Z-1]|0);for(se=Math.min(se/$|0,67108863),B._ishlnsubmul(X,se,Z);B.negative!==0;)se--,B.negative=0,B._ishlnsubmul(X,1,Z),B.isZero()||(B.negative^=1);q&&(q.words[Z]=se)}return q&&q.strip(),B.strip(),P!=="div"&&O!==0&&B.iushrn(O),{div:q||null,mod:B}},h.prototype.divmod=function(L,P,O){if(s(!L.isZero()),this.isZero())return{div:new h(0),mod:new h(0)};var B,X,$;return this.negative!==0&&L.negative===0?($=this.neg().divmod(L,P),P!=="mod"&&(B=$.div.neg()),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.iadd(L)),{div:B,mod:X}):this.negative===0&&L.negative!==0?($=this.divmod(L.neg(),P),P!=="mod"&&(B=$.div.neg()),{div:B,mod:$.mod}):(this.negative&L.negative)!==0?($=this.neg().divmod(L.neg(),P),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.isub(L)),{div:$.div,mod:X}):L.length>this.length||this.cmp(L)<0?{div:new h(0),mod:this}:L.length===1?P==="div"?{div:this.divn(L.words[0]),mod:null}:P==="mod"?{div:null,mod:new h(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new h(this.modn(L.words[0]))}:this._wordDiv(L,P)},h.prototype.div=function(L){return this.divmod(L,"div",!1).div},h.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},h.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},h.prototype.divRound=function(L){var P=this.divmod(L);if(P.mod.isZero())return P.div;var O=P.div.negative!==0?P.mod.isub(L):P.mod,B=L.ushrn(1),X=L.andln(1),$=O.cmp(B);return $<0||X===1&&$===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},h.prototype.modn=function(L){s(L<=67108863);for(var P=(1<<26)%L,O=0,B=this.length-1;B>=0;B--)O=(P*O+(this.words[B]|0))%L;return O},h.prototype.idivn=function(L){s(L<=67108863);for(var P=0,O=this.length-1;O>=0;O--){var B=(this.words[O]|0)+P*67108864;this.words[O]=B/L|0,P=B%L}return this.strip()},h.prototype.divn=function(L){return this.clone().idivn(L)},h.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var B=new h(1),X=new h(0),$=new h(0),ee=new h(1),Y=0;P.isEven()&&O.isEven();)P.iushrn(1),O.iushrn(1),++Y;for(var q=O.clone(),Q=P.clone();!P.isZero();){for(var oe=0,Z=1;(P.words[0]&Z)===0&&oe<26;++oe,Z<<=1);if(oe>0)for(P.iushrn(oe);oe-- >0;)(B.isOdd()||X.isOdd())&&(B.iadd(q),X.isub(Q)),B.iushrn(1),X.iushrn(1);for(var se=0,j=1;(O.words[0]&j)===0&&se<26;++se,j<<=1);if(se>0)for(O.iushrn(se);se-- >0;)($.isOdd()||ee.isOdd())&&($.iadd(q),ee.isub(Q)),$.iushrn(1),ee.iushrn(1);P.cmp(O)>=0?(P.isub(O),B.isub($),X.isub(ee)):(O.isub(P),$.isub(B),ee.isub(X))}return{a:$,b:ee,gcd:O.iushln(Y)}},h.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var B=new h(1),X=new h(0),$=O.clone();P.cmpn(1)>0&&O.cmpn(1)>0;){for(var ee=0,Y=1;(P.words[0]&Y)===0&&ee<26;++ee,Y<<=1);if(ee>0)for(P.iushrn(ee);ee-- >0;)B.isOdd()&&B.iadd($),B.iushrn(1);for(var q=0,Q=1;(O.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0)for(O.iushrn(q);q-- >0;)X.isOdd()&&X.iadd($),X.iushrn(1);P.cmp(O)>=0?(P.isub(O),B.isub(X)):(O.isub(P),X.isub(B))}var oe;return P.cmpn(1)===0?oe=B:oe=X,oe.cmpn(0)<0&&oe.iadd(L),oe},h.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var P=this.clone(),O=L.clone();P.negative=0,O.negative=0;for(var B=0;P.isEven()&&O.isEven();B++)P.iushrn(1),O.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;O.isEven();)O.iushrn(1);var X=P.cmp(O);if(X<0){var $=P;P=O,O=$}else if(X===0||O.cmpn(1)===0)break;P.isub(O)}while(!0);return O.iushln(B)},h.prototype.invm=function(L){return this.egcd(L).a.umod(L)},h.prototype.isEven=function(){return(this.words[0]&1)===0},h.prototype.isOdd=function(){return(this.words[0]&1)===1},h.prototype.andln=function(L){return this.words[0]&L},h.prototype.bincn=function(L){s(typeof L=="number");var P=L%26,O=(L-P)/26,B=1<>>26,ee&=67108863,this.words[$]=ee}return X!==0&&(this.words[$]=X,this.length++),this},h.prototype.isZero=function(){return this.length===1&&this.words[0]===0},h.prototype.cmpn=function(L){var P=L<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var O;if(this.length>1)O=1;else{P&&(L=-L),s(L<=67108863,"Number is too big");var B=this.words[0]|0;O=B===L?0:BL.length)return 1;if(this.length=0;O--){var B=this.words[O]|0,X=L.words[O]|0;if(B!==X){BX&&(P=1);break}}return P},h.prototype.gtn=function(L){return this.cmpn(L)===1},h.prototype.gt=function(L){return this.cmp(L)===1},h.prototype.gten=function(L){return this.cmpn(L)>=0},h.prototype.gte=function(L){return this.cmp(L)>=0},h.prototype.ltn=function(L){return this.cmpn(L)===-1},h.prototype.lt=function(L){return this.cmp(L)===-1},h.prototype.lten=function(L){return this.cmpn(L)<=0},h.prototype.lte=function(L){return this.cmp(L)<=0},h.prototype.eqn=function(L){return this.cmpn(L)===0},h.prototype.eq=function(L){return this.cmp(L)===0},h.red=function(L){return new N(L)},h.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},h.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(L){return this.red=L,this},h.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},h.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},h.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},h.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},h.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},h.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},h.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},h.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},h.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var c={k256:null,p224:null,p192:null,p25519:null};function A(F,L){this.name=F,this.p=new h(L,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new h(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var P=L,O;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),O=P.bitLength();while(O>this.n);var B=O0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},A.prototype.split=function(L,P){L.iushrn(this.n,0,P)},A.prototype.imulK=function(L){return L.imul(this.k)};function d(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(d,A),d.prototype.split=function(L,P){for(var O=4194303,B=Math.min(L.length,9),X=0;X>>22,$=ee}$>>>=22,L.words[X-10]=$,$===0&&L.length>10?L.length-=10:L.length-=9},d.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var P=0,O=0;O>>=26,L.words[O]=X,P=B}return P!==0&&(L.words[L.length++]=P),L},h._prime=function(L){if(c[L])return c[L];var P;if(L==="k256")P=new d;else if(L==="p224")P=new D;else if(L==="p192")P=new E;else if(L==="p25519")P=new R;else throw new Error("Unknown prime "+L);return c[L]=P,P};function N(F){if(typeof F=="string"){var L=h._prime(F);this.m=L.p,this.prime=L}else s(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}N.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},N.prototype._verify2=function(L,P){s((L.negative|P.negative)===0,"red works only with positives"),s(L.red&&L.red===P.red,"red works only with red numbers")},N.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},N.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},N.prototype.add=function(L,P){this._verify2(L,P);var O=L.add(P);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},N.prototype.iadd=function(L,P){this._verify2(L,P);var O=L.iadd(P);return O.cmp(this.m)>=0&&O.isub(this.m),O},N.prototype.sub=function(L,P){this._verify2(L,P);var O=L.sub(P);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},N.prototype.isub=function(L,P){this._verify2(L,P);var O=L.isub(P);return O.cmpn(0)<0&&O.iadd(this.m),O},N.prototype.shl=function(L,P){return this._verify1(L),this.imod(L.ushln(P))},N.prototype.imul=function(L,P){return this._verify2(L,P),this.imod(L.imul(P))},N.prototype.mul=function(L,P){return this._verify2(L,P),this.imod(L.mul(P))},N.prototype.isqr=function(L){return this.imul(L,L.clone())},N.prototype.sqr=function(L){return this.mul(L,L)},N.prototype.sqrt=function(L){if(L.isZero())return L.clone();var P=this.m.andln(3);if(s(P%2===1),P===3){var O=this.m.add(new h(1)).iushrn(2);return this.pow(L,O)}for(var B=this.m.subn(1),X=0;!B.isZero()&&B.andln(1)===0;)X++,B.iushrn(1);s(!B.isZero());var $=new h(1).toRed(this),ee=$.redNeg(),Y=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new h(2*q*q).toRed(this);this.pow(q,Y).cmp(ee)!==0;)q.redIAdd(ee);for(var Q=this.pow(q,B),oe=this.pow(L,B.addn(1).iushrn(1)),Z=this.pow(L,B),se=X;Z.cmp($)!==0;){for(var j=Z,V=0;j.cmp($)!==0;V++)j=j.redSqr();s(V=0;X--){for(var Q=P.words[X],oe=q-1;oe>=0;oe--){var Z=Q>>oe&1;if($!==B[0]&&($=this.sqr($)),Z===0&&ee===0){Y=0;continue}ee<<=1,ee|=Z,Y++,!(Y!==O&&(X!==0||oe!==0))&&($=this.mul($,B[ee]),Y=0,ee=0)}q=26}return $},N.prototype.convertTo=function(L){var P=L.umod(this.m);return P===L?P.clone():P},N.prototype.convertFrom=function(L){var P=L.clone();return P.red=null,P},h.mont=function(L){return new I(L)};function I(F){N.call(this,F),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(I,N),I.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},I.prototype.convertFrom=function(L){var P=this.imod(L.mul(this.rinv));return P.red=null,P},I.prototype.imul=function(L,P){if(L.isZero()||P.isZero())return L.words[0]=0,L.length=1,L;var O=L.imul(P),B=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(B).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.mul=function(L,P){if(L.isZero()||P.isZero())return new h(0)._forceRed(this);var O=L.mul(P),B=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(B).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.invm=function(L){var P=this.imod(L._invmp(this.m).mul(this.r2));return P._forceRed(this)}})(a,this)}),6204:(function(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,h=0;for(l=0;l>>1;if(!(g<=0)){var c,A=l.mallocDouble(2*g*v),d=l.mallocInt32(v);if(v=h(k,g,A,d),v>0){if(g===1&&M)u.init(v),c=u.sweepComplete(g,x,0,v,A,d,0,v,A,d);else{var D=l.mallocDouble(2*g*w),E=l.mallocInt32(w);w=h(S,g,D,E),w>0&&(u.init(v+w),g===1?c=u.sweepBipartite(g,x,0,v,A,d,0,w,D,E):c=s(g,x,M,v,A,d,w,D,E),l.free(D),l.free(E))}l.free(A),l.free(d)}return c}}}var _;function y(k,S){_.push([k,S])}function b(k){return _=[],p(k,k,y,!0),_}function T(k,S){return _=[],p(k,S,y,!1),_}function m(k,S,x){switch(arguments.length){case 1:return b(k);case 2:return typeof S=="function"?p(k,k,S,!0):T(k,S);case 3:return p(k,S,x,!1);default:throw new Error("box-intersect: Invalid arguments")}}}),2455:(function(a,o){"use strict";function i(){function s(p,_,y,b,T,m,k,S,x,M,v){for(var w=2*p,g=b,c=w*b;gx-S?s(p,_,y,b,T,m,k,S,x,M,v):f(p,_,y,b,T,m,k,S,x,M,v)}return h}function l(){function s(y,b,T,m,k,S,x,M,v,w,g){for(var c=2*y,A=m,d=c*m;Aw-v?m?s(y,b,T,k,S,x,M,v,w,g,c):f(y,b,T,k,S,x,M,v,w,g,c):m?h(y,b,T,k,S,x,M,v,w,g,c):p(y,b,T,k,S,x,M,v,w,g,c)}return _}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)}),7150:(function(a,o,i){"use strict";a.exports=F;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,h=s.full,p=i(855),_=i(3545),y=i(8105),b=128,T=1<<22,m=1<<22,k=y("!(lo>=p0)&&!(p1>=hi)"),S=y("lo===p0"),x=y("lo0;){Q-=1;var se=Q*g,j=d[se],V=d[se+1],re=d[se+2],H=d[se+3],ne=d[se+4],ue=d[se+5],ye=Q*c,ke=D[ye],Me=D[ye+1],ge=ue&1,Ee=!!(ue&16),Ce=X,Fe=$,ie=Y,J=q;if(ge&&(Ce=Y,Fe=q,ie=X,J=$),!(ue&2&&(re=x(L,j,V,re,Ce,Fe,Me),V>=re))&&!(ue&4&&(V=M(L,j,V,re,Ce,Fe,ke),V>=re))){var te=re-V,ae=ne-H;if(Ee){if(L*te*(te+ae)y&&T[w+_]>M;--v,w-=k){for(var g=w,c=w+k,A=0;A>>1,M=2*p,v=x,w=T[M*x+_];k=D?(v=d,w=D):A>=R?(v=c,w=A):(v=E,w=R):D>=R?(v=d,w=D):R>=A?(v=c,w=A):(v=E,w=R);for(var F=M*(S-1),L=M*v,N=0;N=p0)&&!(p1>=hi)":_};function i(y){return o[y]}function l(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+c];if(D===x)if(g===d)g+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[v+E];k[v+E]=k[w],k[w++]=R}var N=S[d];S[d]=S[g],S[g++]=N}}return g}function u(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+c];if(DE;++E){var R=k[v+E];k[v+E]=k[w],k[w++]=R}var N=S[d];S[d]=S[g],S[g++]=N}}return g}function s(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+A];if(D<=x)if(g===d)g+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[v+E];k[v+E]=k[w],k[w++]=R}var N=S[d];S[d]=S[g],S[g++]=N}}return g}function f(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+A];if(D<=x)if(g===d)g+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[v+E];k[v+E]=k[w],k[w++]=R}var N=S[d];S[d]=S[g],S[g++]=N}}return g}function h(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+c],E=k[v+A];if(D<=x&&x<=E)if(g===d)g+=1,w+=M;else{for(var R=0;M>R;++R){var N=k[v+R];k[v+R]=k[w],k[w++]=N}var I=S[d];S[d]=S[g],S[g++]=I}}return g}function p(y,b,T,m,k,S,x){for(var M=2*y,v=M*T,w=v,g=T,c=b,A=y+b,d=T;m>d;++d,v+=M){var D=k[v+c],E=k[v+A];if(DR;++R){var N=k[v+R];k[v+R]=k[w],k[w++]=N}var I=S[d];S[d]=S[g],S[g++]=I}}return g}function _(y,b,T,m,k,S,x,M){for(var v=2*y,w=v*T,g=w,c=T,A=b,d=y+b,D=T;m>D;++D,w+=v){var E=k[w+A],R=k[w+d];if(!(E>=x)&&!(M>=R))if(c===D)c+=1,g+=v;else{for(var N=0;v>N;++N){var I=k[w+N];k[w+N]=k[g],k[g++]=I}var F=S[D];S[D]=S[c],S[c++]=F}}return c}}),4192:(function(a){"use strict";a.exports=i;var o=32;function i(b,T){T<=4*o?l(0,T-1,b):y(0,T-1,b)}function l(b,T,m){for(var k=2*(b+1),S=b+1;S<=T;++S){for(var x=m[k++],M=m[k++],v=S,w=k-2;v-- >b;){var g=m[w-2],c=m[w-1];if(gm[T+1]:!0}function _(b,T,m,k){b*=2;var S=k[b];return S>1,v=M-k,w=M+k,g=S,c=v,A=M,d=w,D=x,E=b+1,R=T-1,N=0;p(g,c,m)&&(N=g,g=c,c=N),p(d,D,m)&&(N=d,d=D,D=N),p(g,A,m)&&(N=g,g=A,A=N),p(c,A,m)&&(N=c,c=A,A=N),p(g,d,m)&&(N=g,g=d,d=N),p(A,d,m)&&(N=A,A=d,d=N),p(c,D,m)&&(N=c,c=D,D=N),p(c,A,m)&&(N=c,c=A,A=N),p(d,D,m)&&(N=d,d=D,D=N);for(var I=m[2*c],F=m[2*c+1],L=m[2*d],P=m[2*d+1],O=2*g,B=2*A,X=2*D,$=2*S,ee=2*M,Y=2*x,q=0;q<2;++q){var Q=m[O+q],oe=m[B+q],Z=m[X+q];m[$+q]=Q,m[ee+q]=oe,m[Y+q]=Z}s(v,b,m),s(w,T,m);for(var se=E;se<=R;++se)if(_(se,I,F,m))se!==E&&u(se,E,m),++E;else if(!_(se,L,P,m))for(;;)if(_(R,L,P,m)){_(R,I,F,m)?(f(se,E,R,m),++E,--R):(u(se,R,m),--R);break}else{if(--R>>1;s(k,oe);for(var Z=0,se=0,ee=0;ee=f)j=j-f|0,x(y,b,se--,j);else if(j>=0)x(p,_,Z--,j);else if(j<=-f){j=-j-f|0;for(var V=0;V>>1;s(k,oe);for(var Z=0,se=0,j=0,ee=0;ee>1===k[2*ee+3]>>1&&(re=2,ee+=1),V<0){for(var H=-(V>>1)-1,ne=0;ne>1)-1;re===0?x(p,_,Z--,H):re===1?x(y,b,se--,H):re===2&&x(T,m,j--,H)}}}function g(A,d,D,E,R,N,I,F,L,P,O,B){var X=0,$=2*A,ee=d,Y=d+A,q=1,Q=1;E?Q=f:q=f;for(var oe=R;oe>>1;s(k,V);for(var re=0,oe=0;oe=f?(ne=!E,Z-=f):(ne=!!E,Z-=1),ne)M(p,_,re++,Z);else{var ue=B[Z],ye=$*Z,ke=O[ye+d+1],Me=O[ye+d+1+A];e:for(var ge=0;ge>>1;s(k,Z);for(var se=0,Y=0;Y=f)p[se++]=q-f;else{q-=1;var V=O[q],re=X*q,H=P[re+d+1],ne=P[re+d+1+A];e:for(var ue=0;ue=0;--ue)if(p[ue]===q){for(var ge=ue+1;ge0;){for(var S=_.pop(),T=_.pop(),x=-1,M=-1,m=b[T],w=1;w=0||(p.flip(T,S),s(h,p,_,x,T,M),s(h,p,_,T,M,x),s(h,p,_,M,S,x),s(h,p,_,S,x,M))}}}),5023:(function(a,o,i){"use strict";var l=i(2478);a.exports=_;function u(y,b,T,m,k,S,x){this.cells=y,this.neighbor=b,this.flags=m,this.constraint=T,this.active=k,this.next=S,this.boundary=x}var s=u.prototype;function f(y,b){return y[0]-b[0]||y[1]-b[1]||y[2]-b[2]}s.locate=(function(){var y=[0,0,0];return function(b,T,m){var k=b,S=T,x=m;return T0||x.length>0;){for(;S.length>0;){var c=S.pop();if(M[c]!==-k){M[c]=k;for(var A=v[c],d=0;d<3;++d){var D=g[3*c+d];D>=0&&M[D]===0&&(w[3*c+d]?x.push(D):(S.push(D),M[D]=k))}}}var E=x;x=S,S=E,x.length=0,k=-k}var R=p(v,M,b);return T?R.concat(m.boundary):R}}),8902:(function(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,h=2;a.exports=x;function p(M,v,w,g,c){this.a=M,this.b=v,this.idx=w,this.lowerIds=g,this.upperIds=c}function _(M,v,w,g){this.a=M,this.b=v,this.type=w,this.idx=g}function y(M,v){var w=M.a[0]-v.a[0]||M.a[1]-v.a[1]||M.type-v.type;return w||M.type!==s&&(w=u(M.a,M.b,v.b),w)?w:M.idx-v.idx}function b(M,v){return u(M.a,M.b,v)}function T(M,v,w,g,c){for(var A=l.lt(v,g,b),d=l.gt(v,g,b),D=A;D1&&u(w[R[I-2]],w[R[I-1]],g)>0;)M.push([R[I-1],R[I-2],c]),I-=1;R.length=I,R.push(c);for(var N=E.upperIds,I=N.length;I>1&&u(w[N[I-2]],w[N[I-1]],g)<0;)M.push([N[I-2],N[I-1],c]),I-=1;N.length=I,N.push(c)}}function m(M,v){var w;return M.a[0]E[0]&&c.push(new _(E,D,h,A),new _(D,E,f,A))}c.sort(y);for(var R=c[0].a[0]-(1+Math.abs(c[0].a[0]))*Math.pow(2,-52),N=[new p([R,1],[R,0],-1,[],[],[],[])],I=[],A=0,F=c.length;A=0}})(),s.removeTriangle=function(p,_,y){var b=this.stars;f(b[p],_,y),f(b[_],y,p),f(b[y],p,_)},s.addTriangle=function(p,_,y){var b=this.stars;b[p].push(_,y),b[_].push(y,p),b[y].push(p,_)},s.opposite=function(p,_){for(var y=this.stars[_],b=1,T=y.length;b=0;--L){var Q=I[L];P=Q[0];var oe=R[P],Z=oe[0],se=oe[1],j=E[Z],V=E[se];if((j[0]-V[0]||j[1]-V[1])<0){var re=Z;Z=se,se=re}oe[0]=Z;var H=oe[1]=Q[1],ne;for(F&&(ne=oe[2]);L>0&&I[L-1][0]===P;){var Q=I[--L],ue=Q[1];F?R.push([H,ue,ne]):R.push([H,ue]),H=ue}F?R.push([H,se,ne]):R.push([H,se])}return O}function v(E,R,N){for(var I=R.length,F=new l(I),L=[],P=0;PR[2]?1:0)}function c(E,R,N){if(E.length!==0){if(R)for(var I=0;I0||P.length>0}function D(E,R,N){var I;if(N){I=R;for(var F=new Array(R.length),L=0;LM+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(_.alpha)?_.alpha.length!==2?v=[1,1]:v=_.alpha.slice():typeof _.alpha=="number"?v=[_.alpha,_.alpha]:v=[1,1],y=k.map(function(D){return Math.round(D.index*M)}),v[0]=Math.min(Math.max(v[0],0),1),v[1]=Math.min(Math.max(v[1],0),1);var g=k.map(function(D,E){var R=k[E].index,N=k[E].rgb.slice();return N.length===4&&N[3]>=0&&N[3]<=1||(N[3]=v[0]+(v[1]-v[0])*R),N}),c=[];for(w=0;w=0}function _(y,b,T,m){var k=l(b,T,m);if(k===0){var S=u(l(y,b,T)),x=u(l(y,b,m));if(S===x){if(S===0){var M=p(y,b,T),v=p(y,b,m);return M===v?0:M?1:-1}return 0}else{if(x===0)return S>0||p(y,b,m)?-1:1;if(S===0)return x>0||p(y,b,T)?1:-1}return u(x-S)}var w=l(y,b,T);if(w>0)return k>0&&l(y,b,m)>0?1:-1;if(w<0)return k>0||l(y,b,m)>0?1:-1;var g=l(y,b,m);return g>0||p(y,b,T)?1:-1}}),8572:(function(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}}),8507:(function(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,h=u.length-s.length;if(h)return h;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var p=u[0]+u[1],_=s[0]+s[1];if(h=p+u[2]-(_+s[2]),h)return h;var y=o(u[0],u[1]),b=o(s[0],s[1]);return o(y,u[2])-o(b,s[2])||o(y+u[2],p)-o(b+s[2],_);case 4:var T=u[0],m=u[1],k=u[2],S=u[3],x=s[0],M=s[1],v=s[2],w=s[3];return T+m+k+S-(x+M+v+w)||o(T,m,k,S)-o(x,M,v,w,x)||o(T+m,T+k,T+S,m+k,m+S,k+S)-o(x+M,x+v,x+w,M+v,M+w,v+w)||o(T+m+k,T+m+S,T+k+S,m+k+S)-o(x+M+v,x+M+w,x+v+w,M+v+w);default:for(var g=u.slice().sort(i),c=s.slice().sort(i),A=0;Ai[u][0]&&(u=s);return lu?[[u],[l]]:[[l]]}}),4750:(function(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),h=f.length;if(h<=2)return[];for(var p=new Array(h),_=f[h-1],y=0;y=_[x]&&(S+=1);m[k]=S}}return p}function h(p,_){try{return l(p,!0)}catch(m){var y=u(p);if(y.length<=_)return[];var b=s(p,y),T=l(b,!0);return f(T,y)}}}),4769:(function(a){"use strict";function o(l,u,s,f,h,p){var _=6*h*h-6*h,y=3*h*h-4*h+1,b=-6*h*h+6*h,T=3*h*h-2*h;if(l.length){p||(p=new Array(l.length));for(var m=l.length-1;m>=0;--m)p[m]=_*l[m]+y*u[m]+b*s[m]+T*f[m];return p}return _*l+y*u+b*s[m]+T*f}function i(l,u,s,f,h,p){var _=h-1,y=h*h,b=_*_,T=(1+2*h)*b,m=h*b,k=y*(3-2*h),S=y*_;if(l.length){p||(p=new Array(l.length));for(var x=l.length-1;x>=0;--x)p[x]=T*l[x]+m*u[x]+k*s[x]+S*f[x];return p}return T*l+m*u+k*s+S*f}a.exports=i,a.exports.derivative=o}),7642:(function(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=p;function s(_,y){this.point=_,this.index=y}function f(_,y){for(var b=_.point,T=y.point,m=b.length,k=0;k=2)return!1;N[F]=L}return!0}):R=R.filter(function(N){for(var I=0;I<=T;++I){var F=A[N[I]];if(F<0)return!1;N[I]=F}return!0}),T&1)for(var S=0;S>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),x=a.exports.hi(k),M=x&(1<<20)-1;return x&2146435072&&(M+=1048576),[S,M]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}}),1338:(function(a){"use strict";function o(u,s,f){var h=u[f]|0;if(h<=0)return[];var p=new Array(h),_;if(f===u.length-1)for(_=0;_0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l}),3134:(function(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var h=s.length;if(typeof f!="number"){f=0;for(var p=0;p=T-1)for(var w=S.length-1,c=y-b[T-1],g=0;g=T-1)for(var v=S.length-1,w=y-b[T-1],g=0;g=0;--T)if(y[--b])return!1;return!0},h.jump=function(y){var b=this.lastT(),T=this.dimension;if(!(y0;--g)m.push(s(M[g-1],v[g-1],arguments[g])),k.push(0)}},h.push=function(y){var b=this.lastT(),T=this.dimension;if(!(y1e-6?1/x:0;this._time.push(y);for(var c=T;c>0;--c){var A=s(v[c-1],w[c-1],arguments[c]);m.push(A),k.push((A-m[S++])*g)}}},h.set=function(y){var b=this.dimension;if(!(y0;--M)T.push(s(S[M-1],x[M-1],arguments[M])),m.push(0)}},h.move=function(y){var b=this.lastT(),T=this.dimension;if(!(y<=b||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,x=this.bounds,M=x[0],v=x[1],w=y-b,g=w>1e-6?1/w:0;this._time.push(y);for(var c=T;c>0;--c){var A=arguments[c];m.push(s(M[c-1],v[c-1],m[S++]+A)),k.push(A*g)}}},h.idle=function(y){var b=this.lastT();if(!(y=0;--g)m.push(s(M[g],v[g],m[S]+w*k[S])),k.push(0),S+=1}};function p(y){for(var b=new Array(y),T=0;T=0;--E){var c=A[E];d[E]<=0?A[E]=new l(c._color,c.key,c.value,A[E+1],c.right,c._count+1):A[E]=new l(c._color,c.key,c.value,c.left,A[E+1],c._count+1)}for(var E=A.length-1;E>1;--E){var R=A[E-1],c=A[E];if(R._color===i||c._color===i)break;var N=A[E-2];if(N.left===R)if(R.left===c){var I=N.right;if(I&&I._color===o)R._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.left=R.right,R._color=i,R.right=N,A[E-2]=R,A[E-1]=c,f(N),f(R),E>=3){var F=A[E-3];F.left===N?F.left=R:F.right=R}break}}else{var I=N.right;if(I&&I._color===o)R._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(R.right=c.left,N._color=o,N.left=c.right,c._color=i,c.left=R,c.right=N,A[E-2]=c,A[E-1]=R,f(N),f(R),f(c),E>=3){var F=A[E-3];F.left===N?F.left=c:F.right=c}break}}else if(R.right===c){var I=N.left;if(I&&I._color===o)R._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.right=R.left,R._color=i,R.left=N,A[E-2]=R,A[E-1]=c,f(N),f(R),E>=3){var F=A[E-3];F.right===N?F.right=R:F.left=R}break}}else{var I=N.left;if(I&&I._color===o)R._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(R.left=c.right,N._color=o,N.right=c.left,c._color=i,c.right=R,c.left=N,A[E-2]=c,A[E-1]=R,f(N),f(R),f(c),E>=3){var F=A[E-3];F.right===N?F.right=c:F.left=c}break}}}return A[0]._color=i,new h(g,A[0])};function _(v,w){if(w.left){var g=_(v,w.left);if(g)return g}var g=v(w.key,w.value);if(g)return g;if(w.right)return _(v,w.right)}function y(v,w,g,c){var A=w(v,c.key);if(A<=0){if(c.left){var d=y(v,w,g,c.left);if(d)return d}var d=g(c.key,c.value);if(d)return d}if(c.right)return y(v,w,g,c.right)}function b(v,w,g,c,A){var d=g(v,A.key),D=g(w,A.key),E;if(d<=0&&(A.left&&(E=b(v,w,g,c,A.left),E)||D>0&&(E=c(A.key,A.value),E)))return E;if(D>0&&A.right)return b(v,w,g,c,A.right)}p.forEach=function(w,g,c){if(this.root)switch(arguments.length){case 1:return _(w,this.root);case 2:return y(g,this._compare,w,this.root);case 3:return this._compare(g,c)>=0?void 0:b(g,c,this._compare,w,this.root)}},Object.defineProperty(p,"begin",{get:function(){for(var v=[],w=this.root;w;)v.push(w),w=w.left;return new T(this,v)}}),Object.defineProperty(p,"end",{get:function(){for(var v=[],w=this.root;w;)v.push(w),w=w.right;return new T(this,v)}}),p.at=function(v){if(v<0)return new T(this,[]);for(var w=this.root,g=[];;){if(g.push(w),w.left){if(v=w.right._count)break;w=w.right}else break}return new T(this,[])},p.ge=function(v){for(var w=this._compare,g=this.root,c=[],A=0;g;){var d=w(v,g.key);c.push(g),d<=0&&(A=c.length),d<=0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.gt=function(v){for(var w=this._compare,g=this.root,c=[],A=0;g;){var d=w(v,g.key);c.push(g),d<0&&(A=c.length),d<0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.lt=function(v){for(var w=this._compare,g=this.root,c=[],A=0;g;){var d=w(v,g.key);c.push(g),d>0&&(A=c.length),d<=0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.le=function(v){for(var w=this._compare,g=this.root,c=[],A=0;g;){var d=w(v,g.key);c.push(g),d>=0&&(A=c.length),d<0?g=g.left:g=g.right}return c.length=A,new T(this,c)},p.find=function(v){for(var w=this._compare,g=this.root,c=[];g;){var A=w(v,g.key);if(c.push(g),A===0)return new T(this,c);A<=0?g=g.left:g=g.right}return new T(this,[])},p.remove=function(v){var w=this.find(v);return w?w.remove():this},p.get=function(v){for(var w=this._compare,g=this.root;g;){var c=w(v,g.key);if(c===0)return g.value;c<=0?g=g.left:g=g.right}};function T(v,w){this.tree=v,this._stack=w}var m=T.prototype;Object.defineProperty(m,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(m,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),m.clone=function(){return new T(this.tree,this._stack.slice())};function k(v,w){v.key=w.key,v.value=w.value,v.left=w.left,v.right=w.right,v._color=w._color,v._count=w._count}function S(v){for(var w,g,c,A,d=v.length-1;d>=0;--d){if(w=v[d],d===0){w._color=i;return}if(g=v[d-1],g.left===w){if(c=g.right,c.right&&c.right._color===o){if(c=g.right=u(c),A=c.right=u(c.right),g.right=c.left,c.left=g,c.right=A,c._color=g._color,w._color=i,g._color=i,A._color=i,f(g),f(c),d>1){var D=v[d-2];D.left===g?D.left=c:D.right=c}v[d-1]=c;return}else if(c.left&&c.left._color===o){if(c=g.right=u(c),A=c.left=u(c.left),g.right=A.left,c.left=A.right,A.left=g,A.right=c,A._color=g._color,g._color=i,c._color=i,w._color=i,f(g),f(c),f(A),d>1){var D=v[d-2];D.left===g?D.left=A:D.right=A}v[d-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.right=s(o,c);return}else{g.right=s(o,c);continue}else{if(c=u(c),g.right=c.left,c.left=g,c._color=g._color,g._color=o,f(g),f(c),d>1){var D=v[d-2];D.left===g?D.left=c:D.right=c}v[d-1]=c,v[d]=g,d+11){var D=v[d-2];D.right===g?D.right=c:D.left=c}v[d-1]=c;return}else if(c.right&&c.right._color===o){if(c=g.left=u(c),A=c.right=u(c.right),g.left=A.right,c.right=A.left,A.right=g,A.left=c,A._color=g._color,g._color=i,c._color=i,w._color=i,f(g),f(c),f(A),d>1){var D=v[d-2];D.right===g?D.right=A:D.left=A}v[d-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.left=s(o,c);return}else{g.left=s(o,c);continue}else{if(c=u(c),g.left=c.right,c.right=g,c._color=g._color,g._color=o,f(g),f(c),d>1){var D=v[d-2];D.right===g?D.right=c:D.left=c}v[d-1]=c,v[d]=g,d+1=0;--c){var g=v[c];g.left===v[c+1]?w[c]=new l(g._color,g.key,g.value,w[c+1],g.right,g._count):w[c]=new l(g._color,g.key,g.value,g.left,w[c+1],g._count)}if(g=w[w.length-1],g.left&&g.right){var A=w.length;for(g=g.left;g.right;)w.push(g),g=g.right;var d=w[A-1];w.push(new l(g._color,d.key,d.value,g.left,g.right,g._count)),w[A-1].key=g.key,w[A-1].value=g.value;for(var c=w.length-2;c>=A;--c)g=w[c],w[c]=new l(g._color,g.key,g.value,g.left,w[c+1],g._count);w[A-1].left=w[A]}if(g=w[w.length-1],g._color===o){var D=w[w.length-2];D.left===g?D.left=null:D.right===g&&(D.right=null),w.pop();for(var c=0;c0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(m,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(m,"index",{get:function(){var v=0,w=this._stack;if(w.length===0){var g=this.tree.root;return g?g._count:0}else w[w.length-1].left&&(v=w[w.length-1].left._count);for(var c=w.length-2;c>=0;--c)w[c+1]===w[c].right&&(++v,w[c].left&&(v+=w[c].left._count));return v},enumerable:!0}),m.next=function(){var v=this._stack;if(v.length!==0){var w=v[v.length-1];if(w.right)for(w=w.right;w;)v.push(w),w=w.left;else for(v.pop();v.length>0&&v[v.length-1].right===w;)w=v[v.length-1],v.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var v=this._stack;if(v.length===0)return!1;if(v[v.length-1].right)return!0;for(var w=v.length-1;w>0;--w)if(v[w-1].left===v[w])return!0;return!1}}),m.update=function(v){var w=this._stack;if(w.length===0)throw new Error("Can't update empty node!");var g=new Array(w.length),c=w[w.length-1];g[g.length-1]=new l(c._color,c.key,v,c.left,c.right,c._count);for(var A=w.length-2;A>=0;--A)c=w[A],c.left===w[A+1]?g[A]=new l(c._color,c.key,c.value,g[A+1],c.right,c._count):g[A]=new l(c._color,c.key,c.value,c.left,g[A+1],c._count);return new h(this.tree._compare,g[0])},m.prev=function(){var v=this._stack;if(v.length!==0){var w=v[v.length-1];if(w.left)for(w=w.left;w;)v.push(w),w=w.right;else for(v.pop();v.length>0&&v[v.length-1].left===w;)w=v[v.length-1],v.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var v=this._stack;if(v.length===0)return!1;if(v[v.length-1].left)return!0;for(var w=v.length-1;w>0;--w)if(v[w-1].right===v[w])return!0;return!1}});function x(v,w){return vw?1:0}function M(v){return new h(v||x,null)}}),3837:(function(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),h=i(6444),p=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),_=ArrayBuffer,y=DataView;function b(R){return _.isView(R)&&!(R instanceof y)}function T(R){return Array.isArray(R)||b(R)}function m(R,N){return R[0]=N[0],R[1]=N[1],R[2]=N[2],R}function k(R){this.gl=R,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=s(R)}var S=k.prototype;S.update=function(R){R=R||{};function N(Z,se,j){if(j in R){var V=R[j],re=this[j],H;(Z?T(V)&&T(V[0]):T(V))?this[j]=H=[se(V[0]),se(V[1]),se(V[2])]:this[j]=H=[se(V),se(V),se(V)];for(var ne=0;ne<3;++ne)if(H[ne]!==re[ne])return!0}return!1}var I=N.bind(this,!1,Number),F=N.bind(this,!1,Boolean),L=N.bind(this,!1,String),P=N.bind(this,!0,function(Z){if(T(Z)){if(Z.length===3)return[+Z[0],+Z[1],+Z[2],1];if(Z.length===4)return[+Z[0],+Z[1],+Z[2],+Z[3]]}return[0,0,0,1]}),O,B=!1,X=!1;if("bounds"in R)for(var $=R.bounds,ee=0;ee<2;++ee)for(var Y=0;Y<3;++Y)$[ee][Y]!==this.bounds[ee][Y]&&(X=!0),this.bounds[ee][Y]=$[ee][Y];if("ticks"in R){O=R.ticks,B=!0,this.autoTicks=!1;for(var ee=0;ee<3;++ee)this.tickSpacing[ee]=0}else I("tickSpacing")&&(this.autoTicks=!0,X=!0);if(this._firstInit&&("ticks"in R||"tickSpacing"in R||(this.autoTicks=!0),X=!0,B=!0,this._firstInit=!1),X&&this.autoTicks&&(O=h.create(this.bounds,this.tickSpacing),B=!0),B){for(var ee=0;ee<3;++ee)O[ee].sort(function(se,j){return se.x-j.x});h.equal(O,this.ticks)?B=!1:this.ticks=O}F("tickEnable"),L("tickFont")&&(B=!0),L("tickFontStyle")&&(B=!0),L("tickFontWeight")&&(B=!0),L("tickFontVariant")&&(B=!0),I("tickSize"),I("tickAngle"),I("tickPad"),P("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),F("labelEnable"),I("labelSize"),I("labelPad"),P("labelColor"),F("lineEnable"),F("lineMirror"),I("lineWidth"),P("lineColor"),F("lineTickEnable"),F("lineTickMirror"),I("lineTickLength"),I("lineTickWidth"),P("lineTickColor"),F("gridEnable"),I("gridWidth"),P("gridColor"),F("zeroEnable"),P("zeroLineColor"),I("zeroLineWidth"),F("backgroundEnable"),P("backgroundColor");var Q=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],oe=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||B)&&this._text.update(this.bounds,this.labels,Q,this.ticks,oe):this._text=l(this.gl,this.bounds,this.labels,Q,this.ticks,oe),this._lines&&B&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function x(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new x,new x,new x];function v(R,N,I,F,L){for(var P=R.primalOffset,O=R.primalMinor,B=R.mirrorOffset,X=R.mirrorMinor,$=F[N],ee=0;ee<3;++ee)if(N!==ee){var Y=P,q=B,Q=O,oe=X;$&1<0?(Q[ee]=-1,oe[ee]=0):(Q[ee]=0,oe[ee]=1)}}var w=[0,0,0],g={model:p,view:p,projection:p,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(R){};var c=0,A=[0,0,0],d=[0,0,0],D=[0,0,0];S.draw=function(R){R=R||g;for(var j=this.gl,N=R.model||p,I=R.view||p,F=R.projection||p,L=this.bounds,P=R._ortho||!1,O=f(N,I,F,L,P),B=O.cubeEdges,X=O.axis,$=I[12],ee=I[13],Y=I[14],q=I[15],Q=P?2:1,oe=Q*this.pixelRatio*(F[3]*$+F[7]*ee+F[11]*Y+F[15]*q)/j.drawingBufferHeight,Z=0;Z<3;++Z)this.lastCubeProps.cubeEdges[Z]=B[Z],this.lastCubeProps.axis[Z]=X[Z];for(var se=M,Z=0;Z<3;++Z)v(M[Z],Z,this.bounds,B,X);for(var j=this.gl,V=w,Z=0;Z<3;++Z)this.backgroundEnable[Z]?V[Z]=X[Z]:V[Z]=0;this._background.draw(N,I,F,L,V,this.backgroundColor),this._lines.bind(N,I,F,this);for(var Z=0;Z<3;++Z){var re=[0,0,0];X[Z]>0?re[Z]=L[1][Z]:re[Z]=L[0][Z];for(var H=0;H<2;++H){var ne=(Z+1+H)%3,ue=(Z+1+(H^1))%3;this.gridEnable[ne]&&this._lines.drawGrid(ne,ue,this.bounds,re,this.gridColor[ne],this.gridWidth[ne]*this.pixelRatio)}for(var H=0;H<2;++H){var ne=(Z+1+H)%3,ue=(Z+1+(H^1))%3;this.zeroEnable[ue]&&Math.min(L[0][ue],L[1][ue])<=0&&Math.max(L[0][ue],L[1][ue])>=0&&this._lines.drawZero(ne,ue,this.bounds,re,this.zeroLineColor[ue],this.zeroLineWidth[ue]*this.pixelRatio)}}for(var Z=0;Z<3;++Z){this.lineEnable[Z]&&this._lines.drawAxisLine(Z,this.bounds,se[Z].primalOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio),this.lineMirror[Z]&&this._lines.drawAxisLine(Z,this.bounds,se[Z].mirrorOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio);for(var ye=m(A,se[Z].primalMinor),ke=m(d,se[Z].mirrorMinor),Me=this.lineTickLength,H=0;H<3;++H){var ge=oe/N[5*H];ye[H]*=Me[H]*ge,ke[H]*=Me[H]*ge}this.lineTickEnable[Z]&&this._lines.drawAxisTicks(Z,se[Z].primalOffset,ye,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio),this.lineTickMirror[Z]&&this._lines.drawAxisTicks(Z,se[Z].mirrorOffset,ke,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio)}this._lines.unbind(),this._text.bind(N,I,F,this.pixelRatio);var Ee,Ce=.5,Fe,ie;function J(xe){ie=[0,0,0],ie[xe]=1}function te(xe,me,de){var _e=(xe+1)%3,Ae=(xe+2)%3,Ie=me[_e],De=me[Ae],We=de[_e],Oe=de[Ae];if(Ie>0&&Oe>0){J(_e);return}else if(Ie>0&&Oe<0){J(_e);return}else if(Ie<0&&Oe>0){J(_e);return}else if(Ie<0&&Oe<0){J(_e);return}else if(De>0&&We>0){J(Ae);return}else if(De>0&&We<0){J(Ae);return}else if(De<0&&We>0){J(Ae);return}else if(De<0&&We<0){J(Ae);return}}for(var Z=0;Z<3;++Z){for(var ae=se[Z].primalMinor,ce=se[Z].mirrorMinor,pe=m(D,se[Z].primalOffset),H=0;H<3;++H)this.lineTickEnable[Z]&&(pe[H]+=oe*ae[H]*Math.max(this.lineTickLength[H],0)/N[5*H]);var ve=[0,0,0];if(ve[Z]=1,this.tickEnable[Z]){this.tickAngle[Z]===-3600?(this.tickAngle[Z]=0,this.tickAlign[Z]="auto"):this.tickAlign[Z]=-1,Fe=1,Ee=[this.tickAlign[Z],Ce,Fe],Ee[0]==="auto"?Ee[0]=c:Ee[0]=parseInt(""+Ee[0]),ie=[0,0,0],te(Z,ae,ce);for(var H=0;H<3;++H)pe[H]+=oe*ae[H]*this.tickPad[H]/N[5*H];this._text.drawTicks(Z,this.tickSize[Z],this.tickAngle[Z],pe,this.tickColor[Z],ve,ie,Ee)}if(this.labelEnable[Z]){Fe=0,ie=[0,0,0],this.labels[Z].length>4&&(J(Z),Fe=1),Ee=[this.labelAlign[Z],Ce,Fe],Ee[0]==="auto"?Ee[0]=c:Ee[0]=parseInt(""+Ee[0]);for(var H=0;H<3;++H)pe[H]+=oe*ae[H]*this.labelPad[H]/N[5*H];pe[Z]+=.5*(L[0][Z]+L[1][Z]),this._text.drawLabel(Z,this.labelSize[Z],this.labelAngle[Z],pe,this.labelColor[Z],[0,0,0],ie,Ee)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(R,N){var I=new k(R);return I.update(N),I}}),5304:(function(a,o,i){"use strict";a.exports=p;var l=i(2762),u=i(8116),s=i(1879).bg;function f(_,y,b,T){this.gl=_,this.buffer=y,this.vao=b,this.shader=T}var h=f.prototype;h.draw=function(_,y,b,T,m,k){for(var S=!1,x=0;x<3;++x)S=S||m[x];if(S){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:_,view:y,projection:b,bounds:T,enable:m,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},h.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function p(_){for(var y=[],b=[],T=0,m=0;m<3;++m)for(var k=(m+1)%3,S=(m+2)%3,x=[0,0,0],M=[0,0,0],v=-1;v<=1;v+=2){b.push(T,T+2,T+1,T+1,T+2,T+3),x[m]=v,M[m]=v;for(var w=-1;w<=1;w+=2){x[k]=w;for(var g=-1;g<=1;g+=2)x[S]=g,y.push(x[0],x[1],x[2],M[0],M[1],M[2]),T+=1}var c=k;k=S,S=c}var A=l(_,new Float32Array(y)),d=l(_,new Uint16Array(b),_.ELEMENT_ARRAY_BUFFER),D=u(_,[{buffer:A,type:_.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:_.FLOAT,size:3,offset:12,stride:24}],d),E=s(_);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(_,A,D,E)}}),6429:(function(a,o,i){"use strict";a.exports=v;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),h=new Array(16),p=new Array(8),_=new Array(8),y=new Array(3),b=[0,0,0];(function(){for(var w=0;w<8;++w)p[w]=[1,1,1,1],_[w]=[1,1,1]})();function T(w,g,c){for(var A=0;A<4;++A){w[A]=c[12+A];for(var d=0;d<3;++d)w[A]+=g[d]*c[4*d+A]}}var m=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(w){for(var g=0;gX&&(I|=1<X){I|=1<_[E][1])&&(se=E);for(var j=-1,E=0;E<3;++E){var V=se^1<_[re][0]&&(re=V)}}var H=S;H[0]=H[1]=H[2]=0,H[l.log2(j^se)]=se&j,H[l.log2(se^re)]=se&re;var ne=re^7;ne===I||ne===Z?(ne=j^7,H[l.log2(re^ne)]=ne&re):H[l.log2(j^ne)]=ne&j;for(var ue=x,ye=I,P=0;P<3;++P)ye&1<=0;--H){var ne=Z[re[H]];g.push(oe*ne[0],-oe*ne[1],P)}}for(var A=[0,0,0],d=[0,0,0],D=[0,0,0],E=[0,0,0],R=1.25,N={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},I=0;I<3;++I){D[I]=g.length/_|0,c(.5*(S[0][I]+S[1][I]),x[I],M[I],12,R,N),E[I]=(g.length/_|0)-D[I],A[I]=g.length/_|0;for(var F=0;F=0&&(_=h.length-p-1);var y=Math.pow(10,_),b=Math.round(s*f*y),T=b+"";if(T.indexOf("e")>=0)return T;var m=b/y,k=b%y;b<0?(m=-Math.ceil(m)|0,k=-k|0):(m=Math.floor(m)|0,k=k|0);var S=""+m;if(b<0&&(S="-"+S),_){for(var x=""+k;x.length<_;)x="0"+x;return S+"."+x}else return S}function l(s,f){for(var h=[],p=0;p<3;++p){for(var _=[],y=.5*(s[0][p]+s[1][p]),b=0;b*f[p]<=s[1][p];++b)_.push({x:b*f[p],text:i(f[p],b)});for(var b=-1;b*f[p]>=s[0][p];--b)_.push({x:b*f[p],text:i(f[p],b)});h.push(_)}return h}function u(s,f){for(var h=0;h<3;++h){if(s[h].length!==f[h].length)return!1;for(var p=0;pS)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(k,v,M),S}function y(m,k){for(var S=l.malloc(m.length,k),x=m.length,M=0;M=0;--x){if(k[x]!==S)return!1;S*=m[x]}return!0}p.update=function(m,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof m=="object"&&typeof m.shape!="undefined"){var S=m.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var x=gl.getExtension("OES_element_index_uint");x&&S!=="uint16"?S="uint32":S="uint16"}if(S===m.dtype&&b(m.shape,m.stride))m.offset===0&&m.data.length===m.shape[0]?this.length=_(this.gl,this.type,this.length,this.usage,m.data,k):this.length=_(this.gl,this.type,this.length,this.usage,m.data.subarray(m.offset,m.shape[0]),k);else{var M=l.malloc(m.size,S),v=s(M,m.shape);u.assign(v,m),k<0?this.length=_(this.gl,this.type,this.length,this.usage,M,k):this.length=_(this.gl,this.type,this.length,this.usage,M.subarray(0,m.size),k),l.free(M)}}else if(Array.isArray(m)){var w;this.type===this.gl.ELEMENT_ARRAY_BUFFER?w=y(m,"uint16"):w=y(m,"float32"),k<0?this.length=_(this.gl,this.type,this.length,this.usage,w,k):this.length=_(this.gl,this.type,this.length,this.usage,w.subarray(0,m.length),k),l.free(w)}else if(typeof m=="object"&&typeof m.length=="number")this.length=_(this.gl,this.type,this.length,this.usage,m,k);else if(typeof m=="number"||m===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");m=m|0,m<=0&&(m=1),this.gl.bufferData(this.type,m|0,this.usage),this.length=m}else throw new Error("gl-buffer: Invalid data type")};function T(m,k,S,x){if(S=S||m.ARRAY_BUFFER,x=x||m.DYNAMIC_DRAW,S!==m.ARRAY_BUFFER&&S!==m.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(x!==m.DYNAMIC_DRAW&&x!==m.STATIC_DRAW&&x!==m.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var M=m.createBuffer(),v=new h(m,S,M,0,x);return v.update(k),v}a.exports=T},6405:function(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var h=s.positions,p=s.vectors,_={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),_;for(var y=0,b=1/0,T=-1/0,m=1/0,k=-1/0,S=1/0,x=-1/0,M=null,v=null,w=[],g=1/0,c=!1,A=s.coneSizemode==="raw",d=0;dy&&(y=l.length(E)),d&&!A){var R=2*l.distance(M,D)/(l.length(v)+l.length(E));R?(g=Math.min(g,R),c=!1):c=!0}c||(M=D,v=E),w.push(E)}var N=[b,m,S],I=[T,k,x];f&&(f[0]=N,f[1]=I),y===0&&(y=1);var F=1/y;isFinite(g)||(g=1),_.vectorScale=g;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*F),_.coneScale=L;for(var d=0,P=0;d=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(w){this.pickId=w};function k(w){for(var g=y({colormap:w,nshades:256,format:"rgba"}),c=new Uint8Array(256*4),A=0;A<256;++A){for(var d=g[A],D=0;D<3;++D)c[4*A+D]=d[D];c[4*A+3]=d[3]*255}return _(c,[256,256,4],[4,0,1])}function S(w){for(var g=w.length,c=new Array(g),A=0;A0){var P=this.triShader;P.bind(),P.uniforms=R,this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},m.drawPick=function(w){w=w||{};for(var g=this.gl,c=w.model||b,A=w.view||b,d=w.projection||b,D=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)D[0][E]=Math.max(D[0][E],this.clipBounds[0][E]),D[1][E]=Math.min(D[1][E],this.clipBounds[1][E]);this._model=[].slice.call(c),this._view=[].slice.call(A),this._projection=[].slice.call(d),this._resolution=[g.drawingBufferWidth,g.drawingBufferHeight];var R={model:c,view:A,projection:d,clipBounds:D,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},N=this.pickShader;N.bind(),N.uniforms=R,this.triangleCount>0&&(this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},m.pick=function(w){if(!w||w.id!==this.pickId)return null;var g=w.value[0]+256*w.value[1]+65536*w.value[2],c=this.cells[g],A=this.positions[c[1]].slice(0,3),d={position:A,dataCoordinate:A,index:Math.floor(c[1]/48)};return this.traceType==="cone"?d.index=Math.floor(c[1]/48):this.traceType==="streamtube"&&(d.intensity=this.intensity[c[1]],d.velocity=this.vectors[c[1]].slice(0,3),d.divergence=this.vectors[c[1]][3],d.index=g),d},m.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function x(w,g){var c=l(w,g.meshShader.vertex,g.meshShader.fragment,null,g.meshShader.attributes);return c.attributes.position.location=0,c.attributes.color.location=2,c.attributes.uv.location=3,c.attributes.vector.location=4,c}function M(w,g){var c=l(w,g.pickShader.vertex,g.pickShader.fragment,null,g.pickShader.attributes);return c.attributes.position.location=0,c.attributes.id.location=1,c.attributes.vector.location=4,c}function v(w,g,c){var A=c.shaders;arguments.length===1&&(g=w,w=g.gl);var d=x(w,A),D=M(w,A),E=f(w,_(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=w.LINEAR_MIPMAP_LINEAR,E.magFilter=w.LINEAR;var R=u(w),N=u(w),I=u(w),F=u(w),L=u(w),P=s(w,[{buffer:R,type:w.FLOAT,size:4},{buffer:L,type:w.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:I,type:w.FLOAT,size:4},{buffer:F,type:w.FLOAT,size:2},{buffer:N,type:w.FLOAT,size:4}]),O=new T(w,E,d,D,R,N,L,I,F,P,c.traceType||"cone");return O.update(g),O}a.exports=v},614:function(a,o,i){var l=i(3236),u=l([`precision highp float; +}`]);o.bg=function(b){return u(b,_,y,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}}),4935:(function(a,o,i){"use strict";a.exports=k;var l=i(2762),u=i(8116),s=i(4359),f=i(1879).Q,h=window||process.global||{},p=h.__TEXT_CACHE||{};h.__TEXT_CACHE={};var _=3;function y(S,x,M,v){this.gl=S,this.shader=x,this.buffer=M,this.vao=v,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var b=y.prototype,T=[0,0];b.bind=function(S,x,M,v){this.vao.bind(),this.shader.bind();var w=this.shader.uniforms;w.model=S,w.view=x,w.projection=M,w.pixelScale=v,T[0]=this.gl.drawingBufferWidth,T[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=T},b.unbind=function(){this.vao.unbind()},b.update=function(S,x,M,v,w){var g=[];function c(P,O,B,X,$,ee){var Y=[B.style,B.weight,B.variant,B.family].join("_"),q=p[Y];q||(q=p[Y]={});var Q=q[O];Q||(Q=q[O]=m(O,{triangles:!0,font:B.family,fontStyle:B.style,fontWeight:B.weight,fontVariant:B.variant,textAlign:"center",textBaseline:"middle",lineSpacing:$,styletags:ee}));for(var oe=(X||12)/12,Z=Q.positions,se=Q.cells,j=0,V=se.length;j=0;--H){var ne=Z[re[H]];g.push(oe*ne[0],-oe*ne[1],P)}}for(var A=[0,0,0],d=[0,0,0],D=[0,0,0],E=[0,0,0],R=1.25,N={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},I=0;I<3;++I){D[I]=g.length/_|0,c(.5*(S[0][I]+S[1][I]),x[I],M[I],12,R,N),E[I]=(g.length/_|0)-D[I],A[I]=g.length/_|0;for(var F=0;F=0&&(_=h.length-p-1);var y=Math.pow(10,_),b=Math.round(s*f*y),T=b+"";if(T.indexOf("e")>=0)return T;var m=b/y,k=b%y;b<0?(m=-Math.ceil(m)|0,k=-k|0):(m=Math.floor(m)|0,k=k|0);var S=""+m;if(b<0&&(S="-"+S),_){for(var x=""+k;x.length<_;)x="0"+x;return S+"."+x}else return S}function l(s,f){for(var h=[],p=0;p<3;++p){for(var _=[],y=.5*(s[0][p]+s[1][p]),b=0;b*f[p]<=s[1][p];++b)_.push({x:b*f[p],text:i(f[p],b)});for(var b=-1;b*f[p]>=s[0][p];--b)_.push({x:b*f[p],text:i(f[p],b)});h.push(_)}return h}function u(s,f){for(var h=0;h<3;++h){if(s[h].length!==f[h].length)return!1;for(var p=0;pS)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(k,v,M),S}function y(m,k){for(var S=l.malloc(m.length,k),x=m.length,M=0;M=0;--x){if(k[x]!==S)return!1;S*=m[x]}return!0}p.update=function(m,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof m=="object"&&typeof m.shape!="undefined"){var S=m.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var x=gl.getExtension("OES_element_index_uint");x&&S!=="uint16"?S="uint32":S="uint16"}if(S===m.dtype&&b(m.shape,m.stride))m.offset===0&&m.data.length===m.shape[0]?this.length=_(this.gl,this.type,this.length,this.usage,m.data,k):this.length=_(this.gl,this.type,this.length,this.usage,m.data.subarray(m.offset,m.shape[0]),k);else{var M=l.malloc(m.size,S),v=s(M,m.shape);u.assign(v,m),k<0?this.length=_(this.gl,this.type,this.length,this.usage,M,k):this.length=_(this.gl,this.type,this.length,this.usage,M.subarray(0,m.size),k),l.free(M)}}else if(Array.isArray(m)){var w;this.type===this.gl.ELEMENT_ARRAY_BUFFER?w=y(m,"uint16"):w=y(m,"float32"),k<0?this.length=_(this.gl,this.type,this.length,this.usage,w,k):this.length=_(this.gl,this.type,this.length,this.usage,w.subarray(0,m.length),k),l.free(w)}else if(typeof m=="object"&&typeof m.length=="number")this.length=_(this.gl,this.type,this.length,this.usage,m,k);else if(typeof m=="number"||m===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");m=m|0,m<=0&&(m=1),this.gl.bufferData(this.type,m|0,this.usage),this.length=m}else throw new Error("gl-buffer: Invalid data type")};function T(m,k,S,x){if(S=S||m.ARRAY_BUFFER,x=x||m.DYNAMIC_DRAW,S!==m.ARRAY_BUFFER&&S!==m.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(x!==m.DYNAMIC_DRAW&&x!==m.STATIC_DRAW&&x!==m.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var M=m.createBuffer(),v=new h(m,S,M,0,x);return v.update(k),v}a.exports=T}),6405:(function(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var h=s.positions,p=s.vectors,_={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),_;for(var y=0,b=1/0,T=-1/0,m=1/0,k=-1/0,S=1/0,x=-1/0,M=null,v=null,w=[],g=1/0,c=!1,A=s.coneSizemode==="raw",d=0;dy&&(y=l.length(E)),d&&!A){var R=2*l.distance(M,D)/(l.length(v)+l.length(E));R?(g=Math.min(g,R),c=!1):c=!0}c||(M=D,v=E),w.push(E)}var N=[b,m,S],I=[T,k,x];f&&(f[0]=N,f[1]=I),y===0&&(y=1);var F=1/y;isFinite(g)||(g=1),_.vectorScale=g;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*F),_.coneScale=L;for(var d=0,P=0;d=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(w){this.pickId=w};function k(w){for(var g=y({colormap:w,nshades:256,format:"rgba"}),c=new Uint8Array(256*4),A=0;A<256;++A){for(var d=g[A],D=0;D<3;++D)c[4*A+D]=d[D];c[4*A+3]=d[3]*255}return _(c,[256,256,4],[4,0,1])}function S(w){for(var g=w.length,c=new Array(g),A=0;A0){var P=this.triShader;P.bind(),P.uniforms=R,this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},m.drawPick=function(w){w=w||{};for(var g=this.gl,c=w.model||b,A=w.view||b,d=w.projection||b,D=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)D[0][E]=Math.max(D[0][E],this.clipBounds[0][E]),D[1][E]=Math.min(D[1][E],this.clipBounds[1][E]);this._model=[].slice.call(c),this._view=[].slice.call(A),this._projection=[].slice.call(d),this._resolution=[g.drawingBufferWidth,g.drawingBufferHeight];var R={model:c,view:A,projection:d,clipBounds:D,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},N=this.pickShader;N.bind(),N.uniforms=R,this.triangleCount>0&&(this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},m.pick=function(w){if(!w||w.id!==this.pickId)return null;var g=w.value[0]+256*w.value[1]+65536*w.value[2],c=this.cells[g],A=this.positions[c[1]].slice(0,3),d={position:A,dataCoordinate:A,index:Math.floor(c[1]/48)};return this.traceType==="cone"?d.index=Math.floor(c[1]/48):this.traceType==="streamtube"&&(d.intensity=this.intensity[c[1]],d.velocity=this.vectors[c[1]].slice(0,3),d.divergence=this.vectors[c[1]][3],d.index=g),d},m.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function x(w,g){var c=l(w,g.meshShader.vertex,g.meshShader.fragment,null,g.meshShader.attributes);return c.attributes.position.location=0,c.attributes.color.location=2,c.attributes.uv.location=3,c.attributes.vector.location=4,c}function M(w,g){var c=l(w,g.pickShader.vertex,g.pickShader.fragment,null,g.pickShader.attributes);return c.attributes.position.location=0,c.attributes.id.location=1,c.attributes.vector.location=4,c}function v(w,g,c){var A=c.shaders;arguments.length===1&&(g=w,w=g.gl);var d=x(w,A),D=M(w,A),E=f(w,_(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=w.LINEAR_MIPMAP_LINEAR,E.magFilter=w.LINEAR;var R=u(w),N=u(w),I=u(w),F=u(w),L=u(w),P=s(w,[{buffer:R,type:w.FLOAT,size:4},{buffer:L,type:w.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:I,type:w.FLOAT,size:4},{buffer:F,type:w.FLOAT,size:2},{buffer:N,type:w.FLOAT,size:4}]),O=new T(w,E,d,D,R,N,L,I,F,P,c.traceType||"cone");return O.update(g),O}a.exports=v}),614:(function(a,o,i){var l=i(3236),u=l([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -574,7 +574,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},o.pickShader={vertex:f,fragment:h,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(a){a.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(a,o,i){var l=i(737);a.exports=function(s){return l[s]}},9165:function(a,o,i){"use strict";a.exports=T;var l=i(2762),u=i(8116),s=i(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(m,k,S,x){this.gl=m,this.shader=x,this.buffer=k,this.vao=S,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var p=h.prototype;p.isOpaque=function(){return!this.hasAlpha},p.isTransparent=function(){return this.hasAlpha},p.drawTransparent=p.draw=function(m){var k=this.gl,S=this.shader.uniforms;this.shader.bind();var x=S.view=m.view||f,M=S.projection=m.projection||f;S.model=m.model||f,S.clipBounds=this.clipBounds,S.opacity=this.opacity;var v=x[12],w=x[13],g=x[14],c=x[15],A=m._ortho||!1,d=A?2:1,D=d*this.pixelRatio*(M[3]*v+M[7]*w+M[11]*g+M[15]*c)/k.drawingBufferHeight;this.vao.bind();for(var E=0;E<3;++E)k.lineWidth(this.lineWidth[E]*this.pixelRatio),S.capSize=this.capSize[E]*D,this.lineCount[E]&&k.drawArrays(k.LINES,this.lineOffset[E],this.lineCount[E]);this.vao.unbind()};function _(m,k){for(var S=0;S<3;++S)m[0][S]=Math.min(m[0][S],k[S]),m[1][S]=Math.max(m[1][S],k[S])}var y=function(){for(var m=new Array(3),k=0;k<3;++k){for(var S=[],x=1;x<=2;++x)for(var M=-1;M<=1;M+=2){var v=(x+k)%3,w=[0,0,0];w[v]=M,S.push(w)}m[k]=S}return m}();function b(m,k,S,x){for(var M=y[x],v=0;v0){var R=A.slice();R[g]+=D[1][g],M.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,R[0],R[1],R[2],E[0],E[1],E[2],E[3],0,0,0),_(this.bounds,R),w+=2+b(M,R,E,g)}}}this.lineCount[g]=w-this.lineOffset[g]}this.buffer.update(M)}},p.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(m){var k=m.gl,S=l(k),x=u(k,[{buffer:S,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:S,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:S,type:k.FLOAT,size:3,offset:28,stride:40}]),M=s(k);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var v=new h(k,S,x,M);return v.update(m),v}},3436:function(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float; +}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},o.pickShader={vertex:f,fragment:h,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}}),737:(function(a){a.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}}),5171:(function(a,o,i){var l=i(737);a.exports=function(s){return l[s]}}),9165:(function(a,o,i){"use strict";a.exports=T;var l=i(2762),u=i(8116),s=i(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(m,k,S,x){this.gl=m,this.shader=x,this.buffer=k,this.vao=S,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var p=h.prototype;p.isOpaque=function(){return!this.hasAlpha},p.isTransparent=function(){return this.hasAlpha},p.drawTransparent=p.draw=function(m){var k=this.gl,S=this.shader.uniforms;this.shader.bind();var x=S.view=m.view||f,M=S.projection=m.projection||f;S.model=m.model||f,S.clipBounds=this.clipBounds,S.opacity=this.opacity;var v=x[12],w=x[13],g=x[14],c=x[15],A=m._ortho||!1,d=A?2:1,D=d*this.pixelRatio*(M[3]*v+M[7]*w+M[11]*g+M[15]*c)/k.drawingBufferHeight;this.vao.bind();for(var E=0;E<3;++E)k.lineWidth(this.lineWidth[E]*this.pixelRatio),S.capSize=this.capSize[E]*D,this.lineCount[E]&&k.drawArrays(k.LINES,this.lineOffset[E],this.lineCount[E]);this.vao.unbind()};function _(m,k){for(var S=0;S<3;++S)m[0][S]=Math.min(m[0][S],k[S]),m[1][S]=Math.max(m[1][S],k[S])}var y=(function(){for(var m=new Array(3),k=0;k<3;++k){for(var S=[],x=1;x<=2;++x)for(var M=-1;M<=1;M+=2){var v=(x+k)%3,w=[0,0,0];w[v]=M,S.push(w)}m[k]=S}return m})();function b(m,k,S,x){for(var M=y[x],v=0;v0){var R=A.slice();R[g]+=D[1][g],M.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,R[0],R[1],R[2],E[0],E[1],E[2],E[3],0,0,0),_(this.bounds,R),w+=2+b(M,R,E,g)}}}this.lineCount[g]=w-this.lineOffset[g]}this.buffer.update(M)}},p.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(m){var k=m.gl,S=l(k),x=u(k,[{buffer:S,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:S,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:S,type:k.FLOAT,size:3,offset:28,stride:40}]),M=s(k);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var v=new h(k,S,x,M);return v.update(m),v}}),3436:(function(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -625,13 +625,13 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);a.exports=function(h){return u(h,s,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(a,o,i){"use strict";var l=i(7766);a.exports=w;var u=null,s,f,h,p;function _(g){var c=g.getParameter(g.FRAMEBUFFER_BINDING),A=g.getParameter(g.RENDERBUFFER_BINDING),d=g.getParameter(g.TEXTURE_BINDING_2D);return[c,A,d]}function y(g,c){g.bindFramebuffer(g.FRAMEBUFFER,c[0]),g.bindRenderbuffer(g.RENDERBUFFER,c[1]),g.bindTexture(g.TEXTURE_2D,c[2])}function b(g,c){var A=g.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(A+1);for(var d=0;d<=A;++d){for(var D=new Array(A),E=0;E1&&N.drawBuffersWEBGL(u[R]);var O=A.getExtension("WEBGL_depth_texture");O?I?g.depth=m(A,D,E,O.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):F&&(g.depth=m(A,D,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):F&&I?g._depth_rb=k(A,D,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):F?g._depth_rb=k(A,D,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):I&&(g._depth_rb=k(A,D,E,A.STENCIL_INDEX,A.STENCIL_ATTACHMENT));var B=A.checkFramebufferStatus(A.FRAMEBUFFER);if(B!==A.FRAMEBUFFER_COMPLETE){g._destroyed=!0,A.bindFramebuffer(A.FRAMEBUFFER,null),A.deleteFramebuffer(g.handle),g.handle=null,g.depth&&(g.depth.dispose(),g.depth=null),g._depth_rb&&(A.deleteRenderbuffer(g._depth_rb),g._depth_rb=null);for(var P=0;PD||A<0||A>D)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");g._shape[0]=c,g._shape[1]=A;for(var E=_(d),R=0;RE||A<0||A>E)throw new Error("gl-fbo: Parameters are too large for FBO");d=d||{};var R=1;if("color"in d){if(R=Math.max(d.color|0,0),R<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(R>1)if(D){if(R>g.getParameter(D.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+R+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var N=g.UNSIGNED_BYTE,I=g.getExtension("OES_texture_float");if(d.float&&R>0){if(!I)throw new Error("gl-fbo: Context does not support floating point textures");N=g.FLOAT}else d.preferFloat&&R>0&&I&&(N=g.FLOAT);var F=!0;"depth"in d&&(F=!!d.depth);var L=!1;return"stencil"in d&&(L=!!d.stencil),new x(g,c,A,N,R,F,L,D)}},2992:function(a,o,i){var l=i(3387).sprintf,u=i(5171),s=i(1848),f=i(1085);a.exports=h;function h(p,_,y){"use strict";var b=s(_)||"of unknown name (see npm glsl-shader-name)",T="unknown type";y!==void 0&&(T=y===u.FRAGMENT_SHADER?"fragment":"vertex");for(var m=l(`Error compiling %s shader %s: +}`]);a.exports=function(h){return u(h,s,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}}),2260:(function(a,o,i){"use strict";var l=i(7766);a.exports=w;var u=null,s,f,h,p;function _(g){var c=g.getParameter(g.FRAMEBUFFER_BINDING),A=g.getParameter(g.RENDERBUFFER_BINDING),d=g.getParameter(g.TEXTURE_BINDING_2D);return[c,A,d]}function y(g,c){g.bindFramebuffer(g.FRAMEBUFFER,c[0]),g.bindRenderbuffer(g.RENDERBUFFER,c[1]),g.bindTexture(g.TEXTURE_2D,c[2])}function b(g,c){var A=g.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(A+1);for(var d=0;d<=A;++d){for(var D=new Array(A),E=0;E1&&N.drawBuffersWEBGL(u[R]);var O=A.getExtension("WEBGL_depth_texture");O?I?g.depth=m(A,D,E,O.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):F&&(g.depth=m(A,D,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):F&&I?g._depth_rb=k(A,D,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):F?g._depth_rb=k(A,D,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):I&&(g._depth_rb=k(A,D,E,A.STENCIL_INDEX,A.STENCIL_ATTACHMENT));var B=A.checkFramebufferStatus(A.FRAMEBUFFER);if(B!==A.FRAMEBUFFER_COMPLETE){g._destroyed=!0,A.bindFramebuffer(A.FRAMEBUFFER,null),A.deleteFramebuffer(g.handle),g.handle=null,g.depth&&(g.depth.dispose(),g.depth=null),g._depth_rb&&(A.deleteRenderbuffer(g._depth_rb),g._depth_rb=null);for(var P=0;PD||A<0||A>D)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");g._shape[0]=c,g._shape[1]=A;for(var E=_(d),R=0;RE||A<0||A>E)throw new Error("gl-fbo: Parameters are too large for FBO");d=d||{};var R=1;if("color"in d){if(R=Math.max(d.color|0,0),R<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(R>1)if(D){if(R>g.getParameter(D.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+R+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var N=g.UNSIGNED_BYTE,I=g.getExtension("OES_texture_float");if(d.float&&R>0){if(!I)throw new Error("gl-fbo: Context does not support floating point textures");N=g.FLOAT}else d.preferFloat&&R>0&&I&&(N=g.FLOAT);var F=!0;"depth"in d&&(F=!!d.depth);var L=!1;return"stencil"in d&&(L=!!d.stencil),new x(g,c,A,N,R,F,L,D)}}),2992:(function(a,o,i){var l=i(3387).sprintf,u=i(5171),s=i(1848),f=i(1085);a.exports=h;function h(p,_,y){"use strict";var b=s(_)||"of unknown name (see npm glsl-shader-name)",T="unknown type";y!==void 0&&(T=y===u.FRAGMENT_SHADER?"fragment":"vertex");for(var m=l(`Error compiling %s shader %s: `,T,b),k=l("%s%s",m,p),S=p.split(` `),x={},M=0;M0){for(var Y=0;Y<24;++Y)E.push(E[E.length-12]);F+=2,X=!0}continue e}L[0][d]=Math.min(L[0][d],$[d],ee[d]),L[1][d]=Math.max(L[1][d],$[d],ee[d])}var q,Q;Array.isArray(O[0])?(q=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1],Q=O.length>A?O[A]:O.length>0?O[O.length-1]:[0,0,0,1]):q=Q=O,q.length===3&&(q=[q[0],q[1],q[2],1]),Q.length===3&&(Q=[Q[0],Q[1],Q[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var oe;Array.isArray(B)?oe=B.length>A-1?B[A-1]:B.length>0?B[B.length-1]:[0,0,0,1]:oe=B;var Z=I;if(I+=S($,ee),X){for(d=0;d<2;++d)E.push($[0],$[1],$[2],ee[0],ee[1],ee[2],Z,oe,q[0],q[1],q[2],q[3]);F+=2,X=!1}E.push($[0],$[1],$[2],ee[0],ee[1],ee[2],Z,oe,q[0],q[1],q[2],q[3],$[0],$[1],$[2],ee[0],ee[1],ee[2],Z,-oe,q[0],q[1],q[2],q[3],ee[0],ee[1],ee[2],$[0],$[1],$[2],I,-oe,Q[0],Q[1],Q[2],Q[3],ee[0],ee[1],ee[2],$[0],$[1],$[2],I,oe,Q[0],Q[1],Q[2],Q[3]),F+=4}}if(this.buffer.update(E),R.push(I),N.push(P[P.length-1].slice()),this.bounds=L,this.vertexCount=F,this.points=N,this.arcLength=R,"dashes"in c){var se=c.dashes,j=se.slice();for(j.unshift(0),A=1;A1.0001)return null;d+=A[M]}return Math.abs(d-1)>.001?null:[v,p(y,A),A]}},840:function(a,o,i){var l=i(3236),u=l([`precision highp float; +}`]),p=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];o.createShader=function(_){return u(_,s,f,null,p)},o.createPickShader=function(_){return u(_,s,h,null,p)}}),5714:(function(a,o,i){"use strict";a.exports=g;var l=i(2762),u=i(8116),s=i(7766),f=new Uint8Array(4),h=new Float32Array(f.buffer);function p(c,A,d,D){return f[0]=D,f[1]=d,f[2]=A,f[3]=c,h[0]}var _=i(2478),y=i(9618),b=i(7319),T=b.createShader,m=b.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function S(c,A){for(var d=0,D=0;D<3;++D){var E=c[D]-A[D];d+=E*E}return Math.sqrt(d)}function x(c){for(var A=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],d=0;d<3;++d)A[0][d]=Math.max(c[0][d],A[0][d]),A[1][d]=Math.min(c[1][d],A[1][d]);return A}function M(c,A,d,D){this.arcLength=c,this.position=A,this.index=d,this.dataCoordinate=D}function v(c,A,d,D,E,R){this.gl=c,this.shader=A,this.pickShader=d,this.buffer=D,this.vao=E,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=R,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var w=v.prototype;w.isTransparent=function(){return this.hasAlpha},w.isOpaque=function(){return!this.hasAlpha},w.pickSlots=1,w.setPickBase=function(c){this.pickId=c},w.drawTransparent=w.draw=function(c){if(this.vertexCount){var A=this.gl,d=this.shader,D=this.vao;d.bind(),d.uniforms={model:c.model||k,view:c.view||k,projection:c.projection||k,clipBounds:x(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},D.bind(),D.draw(A.TRIANGLE_STRIP,this.vertexCount),D.unbind()}},w.drawPick=function(c){if(this.vertexCount){var A=this.gl,d=this.pickShader,D=this.vao;d.bind(),d.uniforms={model:c.model||k,view:c.view||k,projection:c.projection||k,pickId:this.pickId,clipBounds:x(this.clipBounds),screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},D.bind(),D.draw(A.TRIANGLE_STRIP,this.vertexCount),D.unbind()}},w.update=function(c){var A,d;this.dirty=!0;var D=!!c.connectGaps;"dashScale"in c&&(this.dashScale=c.dashScale),this.hasAlpha=!1,"opacity"in c&&(this.opacity=+c.opacity,this.opacity<1&&(this.hasAlpha=!0));var E=[],R=[],N=[],I=0,F=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],P=c.position||c.positions;if(P){var O=c.color||c.colors||[0,0,0,1],B=c.lineWidth||1,X=!1;e:for(A=1;A0){for(var Y=0;Y<24;++Y)E.push(E[E.length-12]);F+=2,X=!0}continue e}L[0][d]=Math.min(L[0][d],$[d],ee[d]),L[1][d]=Math.max(L[1][d],$[d],ee[d])}var q,Q;Array.isArray(O[0])?(q=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1],Q=O.length>A?O[A]:O.length>0?O[O.length-1]:[0,0,0,1]):q=Q=O,q.length===3&&(q=[q[0],q[1],q[2],1]),Q.length===3&&(Q=[Q[0],Q[1],Q[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var oe;Array.isArray(B)?oe=B.length>A-1?B[A-1]:B.length>0?B[B.length-1]:[0,0,0,1]:oe=B;var Z=I;if(I+=S($,ee),X){for(d=0;d<2;++d)E.push($[0],$[1],$[2],ee[0],ee[1],ee[2],Z,oe,q[0],q[1],q[2],q[3]);F+=2,X=!1}E.push($[0],$[1],$[2],ee[0],ee[1],ee[2],Z,oe,q[0],q[1],q[2],q[3],$[0],$[1],$[2],ee[0],ee[1],ee[2],Z,-oe,q[0],q[1],q[2],q[3],ee[0],ee[1],ee[2],$[0],$[1],$[2],I,-oe,Q[0],Q[1],Q[2],Q[3],ee[0],ee[1],ee[2],$[0],$[1],$[2],I,oe,Q[0],Q[1],Q[2],Q[3]),F+=4}}if(this.buffer.update(E),R.push(I),N.push(P[P.length-1].slice()),this.bounds=L,this.vertexCount=F,this.points=N,this.arcLength=R,"dashes"in c){var se=c.dashes,j=se.slice();for(j.unshift(0),A=1;A1.0001)return null;d+=A[M]}return Math.abs(d-1)>.001?null:[v,p(y,A),A]}}),840:(function(a,o,i){var l=i(3236),u=l([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1157,7 +1157,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:h,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:p,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:y,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:T,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:m,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),h=i(8116),p=i(7766),_=i(8406),y=i(6760),b=i(7608),T=i(9618),m=i(6729),k=i(7765),S=i(1888),x=i(840),M=i(7626),v=x.meshShader,w=x.wireShader,g=x.pointShader,c=x.pickShader,A=x.pointPickShader,d=x.contourShader,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(Y,q,Q,oe,Z,se,j,V,re,H,ne,ue,ye,ke,Me,ge,Ee,Ce,Fe,ie,J,te,ae,ce,pe,ve,xe){this.gl=Y,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=Q,this.lineShader=oe,this.pointShader=Z,this.pickShader=se,this.pointPickShader=j,this.contourShader=V,this.trianglePositions=re,this.triangleColors=ne,this.triangleNormals=ye,this.triangleUVs=ue,this.triangleIds=H,this.triangleVAO=ke,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Me,this.edgeColors=Ee,this.edgeUVs=Ce,this.edgeIds=ge,this.edgeVAO=Fe,this.edgeCount=0,this.pointPositions=ie,this.pointColors=te,this.pointUVs=ae,this.pointSizes=ce,this.pointIds=J,this.pointVAO=pe,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=ve,this.contourVAO=xe,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=D,this._view=D,this._projection=D,this._resolution=[1,1]}var R=E.prototype;R.isOpaque=function(){return!this.hasAlpha},R.isTransparent=function(){return this.hasAlpha},R.pickSlots=1,R.setPickBase=function(Y){this.pickId=Y};function N(Y,q){if(!q||!q.length)return 1;for(var Q=0;QY&&Q>0){var oe=(q[Q][0]-Y)/(q[Q][0]-q[Q-1][0]);return q[Q][1]*(1-oe)+oe*q[Q-1][1]}}return 1}function I(Y,q){for(var Q=m({colormap:Y,nshades:256,format:"rgba"}),oe=new Uint8Array(256*4),Z=0;Z<256;++Z){for(var se=Q[Z],j=0;j<3;++j)oe[4*Z+j]=se[j];q?oe[4*Z+3]=255*N(Z/255,q):oe[4*Z+3]=255*se[3]}return T(oe,[256,256,4],[4,0,1])}function F(Y){for(var q=Y.length,Q=new Array(q),oe=0;oe0){var ye=this.triShader;ye.bind(),ye.uniforms=V,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var ye=this.lineShader;ye.bind(),ye.uniforms=V,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var ye=this.pointShader;ye.bind(),ye.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var ye=this.contourShader;ye.bind(),ye.uniforms=V,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},R.drawPick=function(Y){Y=Y||{};for(var q=this.gl,Q=Y.model||D,oe=Y.view||D,Z=Y.projection||D,se=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],j=0;j<3;++j)se[0][j]=Math.max(se[0][j],this.clipBounds[0][j]),se[1][j]=Math.min(se[1][j],this.clipBounds[1][j]);this._model=[].slice.call(Q),this._view=[].slice.call(oe),this._projection=[].slice.call(Z),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var V={model:Q,view:oe,projection:Z,clipBounds:se,pickId:this.pickId/255},re=this.pickShader;if(re.bind(),re.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var re=this.pointPickShader;re.bind(),re.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},R.pick=function(Y){if(!Y||Y.id!==this.pickId)return null;for(var q=Y.value[0]+256*Y.value[1]+65536*Y.value[2],Q=this.cells[q],oe=this.positions,Z=new Array(Q.length),se=0;seMath.abs(c))m.rotate(D,0,0,-g*A*Math.PI*v.rotateSpeed/window.innerWidth);else if(!v._ortho){var E=-v.zoomSpeed*d*c/window.innerHeight*(D-m.lastT())/20;m.pan(D,0,0,S*(Math.exp(E)-1))}}},!0)},v.enableMouseListeners(),v}},799:function(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float; +`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:h,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:p,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:y,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:T,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:m,fragment:k,attributes:[{name:"position",type:"vec3"}]}}),7201:(function(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),h=i(8116),p=i(7766),_=i(8406),y=i(6760),b=i(7608),T=i(9618),m=i(6729),k=i(7765),S=i(1888),x=i(840),M=i(7626),v=x.meshShader,w=x.wireShader,g=x.pointShader,c=x.pickShader,A=x.pointPickShader,d=x.contourShader,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(Y,q,Q,oe,Z,se,j,V,re,H,ne,ue,ye,ke,Me,ge,Ee,Ce,Fe,ie,J,te,ae,ce,pe,ve,xe){this.gl=Y,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=Q,this.lineShader=oe,this.pointShader=Z,this.pickShader=se,this.pointPickShader=j,this.contourShader=V,this.trianglePositions=re,this.triangleColors=ne,this.triangleNormals=ye,this.triangleUVs=ue,this.triangleIds=H,this.triangleVAO=ke,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Me,this.edgeColors=Ee,this.edgeUVs=Ce,this.edgeIds=ge,this.edgeVAO=Fe,this.edgeCount=0,this.pointPositions=ie,this.pointColors=te,this.pointUVs=ae,this.pointSizes=ce,this.pointIds=J,this.pointVAO=pe,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=ve,this.contourVAO=xe,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=D,this._view=D,this._projection=D,this._resolution=[1,1]}var R=E.prototype;R.isOpaque=function(){return!this.hasAlpha},R.isTransparent=function(){return this.hasAlpha},R.pickSlots=1,R.setPickBase=function(Y){this.pickId=Y};function N(Y,q){if(!q||!q.length)return 1;for(var Q=0;QY&&Q>0){var oe=(q[Q][0]-Y)/(q[Q][0]-q[Q-1][0]);return q[Q][1]*(1-oe)+oe*q[Q-1][1]}}return 1}function I(Y,q){for(var Q=m({colormap:Y,nshades:256,format:"rgba"}),oe=new Uint8Array(256*4),Z=0;Z<256;++Z){for(var se=Q[Z],j=0;j<3;++j)oe[4*Z+j]=se[j];q?oe[4*Z+3]=255*N(Z/255,q):oe[4*Z+3]=255*se[3]}return T(oe,[256,256,4],[4,0,1])}function F(Y){for(var q=Y.length,Q=new Array(q),oe=0;oe0){var ye=this.triShader;ye.bind(),ye.uniforms=V,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var ye=this.lineShader;ye.bind(),ye.uniforms=V,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var ye=this.pointShader;ye.bind(),ye.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var ye=this.contourShader;ye.bind(),ye.uniforms=V,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},R.drawPick=function(Y){Y=Y||{};for(var q=this.gl,Q=Y.model||D,oe=Y.view||D,Z=Y.projection||D,se=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],j=0;j<3;++j)se[0][j]=Math.max(se[0][j],this.clipBounds[0][j]),se[1][j]=Math.min(se[1][j],this.clipBounds[1][j]);this._model=[].slice.call(Q),this._view=[].slice.call(oe),this._projection=[].slice.call(Z),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var V={model:Q,view:oe,projection:Z,clipBounds:se,pickId:this.pickId/255},re=this.pickShader;if(re.bind(),re.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var re=this.pointPickShader;re.bind(),re.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},R.pick=function(Y){if(!Y||Y.id!==this.pickId)return null;for(var q=Y.value[0]+256*Y.value[1]+65536*Y.value[2],Q=this.cells[q],oe=this.positions,Z=new Array(Q.length),se=0;seMath.abs(c))m.rotate(D,0,0,-g*A*Math.PI*v.rotateSpeed/window.innerWidth);else if(!v._ortho){var E=-v.zoomSpeed*d*c/window.innerHeight*(D-m.lastT())/20;m.pan(D,0,0,S*(Math.exp(E)-1))}}},!0)},v.enableMouseListeners(),v}}),799:(function(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1173,7 +1173,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);a.exports=function(h){return u(h,s,f,null,[{name:"position",type:"vec2"}])}},4100:function(a,o,i){"use strict";var l=i(4437),u=i(3837),s=i(5445),f=i(4449),h=i(3589),p=i(2260),_=i(7169),y=i(351),b=i(4772),T=i(4040),m=i(799),k=i(9216)({tablet:!0,featureDetect:!0});a.exports={createScene:w,createCamera:l};function S(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function x(c,A){var d=null;try{d=c.getContext("webgl",A),d||(d=c.getContext("experimental-webgl",A))}catch(D){return null}return d}function M(c){var A=Math.round(Math.log(Math.abs(c))/Math.log(10));if(A<0){var d=Math.round(Math.pow(10,-A));return Math.ceil(c*d)/d}else if(A>0){var d=Math.round(Math.pow(10,A));return Math.ceil(c/d)*d}return Math.ceil(c)}function v(c){return typeof c=="boolean"?c:!0}function w(c){c=c||{},c.camera=c.camera||{};var A=c.canvas;if(!A)if(A=document.createElement("canvas"),c.container){var d=c.container;d.appendChild(A)}else document.body.appendChild(A);var D=c.gl;if(D||(c.glOptions&&(k=!!c.glOptions.preserveDrawingBuffer),D=x(A,c.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!D)throw new Error("webgl not supported");var E=c.bounds||[[-10,-10,-10],[10,10,10]],R=new S,N=p(D,D.drawingBufferWidth,D.drawingBufferHeight,{preferFloat:!k}),I=m(D),F=c.cameraObject&&c.cameraObject._ortho===!0||c.camera.projection&&c.camera.projection.type==="orthographic"||!1,L={eye:c.camera.eye||[2,0,0],center:c.camera.center||[0,0,0],up:c.camera.up||[0,1,0],zoomMin:c.camera.zoomMax||.1,zoomMax:c.camera.zoomMin||100,mode:c.camera.mode||"turntable",_ortho:F},P=c.axes||{},O=u(D,P);O.enable=!P.disable;var B=c.spikes||{},X=f(D,B),$=[],ee=[],Y=[],q=[],Q=!0,j=!0,oe=new Array(16),Z=new Array(16),se={view:null,projection:oe,model:Z,_ortho:!1},j=!0,V=[D.drawingBufferWidth,D.drawingBufferHeight],re=c.cameraObject||l(A,L),H={gl:D,contextLost:!1,pixelRatio:c.pixelRatio||1,canvas:A,selection:R,camera:re,axes:O,axesPixels:null,spikes:X,bounds:E,objects:$,shape:V,aspect:c.aspectRatio||[1,1,1],pickRadius:c.pickRadius||10,zNear:c.zNear||.01,zFar:c.zFar||1e3,fovy:c.fovy||Math.PI/4,clearColor:c.clearColor||[0,0,0,0],autoResize:v(c.autoResize),autoBounds:v(c.autoBounds),autoScale:!!c.autoScale,autoCenter:v(c.autoCenter),clipToBounds:v(c.clipToBounds),snapToData:!!c.snapToData,onselect:c.onselect||null,onrender:c.onrender||null,onclick:c.onclick||null,cameraParams:se,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(ie){this.aspect[0]=ie.x,this.aspect[1]=ie.y,this.aspect[2]=ie.z,j=!0},setBounds:function(ie,J){this.bounds[0][ie]=J.min,this.bounds[1][ie]=J.max},setClearColor:function(ie){this.clearColor=ie},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},ne=[D.drawingBufferWidth/H.pixelRatio|0,D.drawingBufferHeight/H.pixelRatio|0];function ue(){if(!H._stopped&&H.autoResize){var ie=A.parentNode,J=1,te=1;ie&&ie!==document.body?(J=ie.clientWidth,te=ie.clientHeight):(J=window.innerWidth,te=window.innerHeight);var ae=Math.ceil(J*H.pixelRatio)|0,ce=Math.ceil(te*H.pixelRatio)|0;if(ae!==A.width||ce!==A.height){A.width=ae,A.height=ce;var pe=A.style;pe.position=pe.position||"absolute",pe.left="0px",pe.top="0px",pe.width=J+"px",pe.height=te+"px",Q=!0}}}H.autoResize&&ue(),window.addEventListener("resize",ue);function ye(){for(var ie=$.length,J=q.length,te=0;te0&&Y[J-1]===0;)Y.pop(),q.pop().dispose()}H.update=function(ie){H._stopped||(ie=ie||{},Q=!0,j=!0)},H.add=function(ie){H._stopped||(ie.axes=O,$.push(ie),ee.push(-1),Q=!0,j=!0,ye())},H.remove=function(ie){if(!H._stopped){var J=$.indexOf(ie);J<0||($.splice(J,1),ee.pop(),Q=!0,j=!0,ye())}},H.dispose=function(){if(!H._stopped&&(H._stopped=!0,window.removeEventListener("resize",ue),A.removeEventListener("webglcontextlost",ke),H.mouseListener.enabled=!1,!H.contextLost)){O.dispose(),X.dispose();for(var ie=0;ie<$.length;++ie)$[ie].dispose();N.dispose();for(var ie=0;ieR.distance)continue;for(var de=0;de1e-6?(k=Math.acos(S),x=Math.sin(k),M=Math.sin((1-s)*k)/x,v=Math.sin(s*k)/x):(M=1-s,v=s),i[0]=M*f+v*y,i[1]=M*h+v*b,i[2]=M*p+v*T,i[3]=M*_+v*m,i}},5964:function(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}},9366:function(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,h,p){var _=[h.style,h.weight,h.variant,h.family].join("_"),y=u[_];if(y||(y=u[_]={}),f in y)return y[f];var b={textAlign:"center",textBaseline:"middle",lineHeight:1,font:h.family,fontStyle:h.style,fontWeight:h.weight,fontVariant:h.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};b.triangles=!0;var T=l(f,b);b.triangles=!1;var m=l(f,b),k,S;if(p&&p!==1){for(k=0;k0){var d=Math.round(Math.pow(10,A));return Math.ceil(c/d)*d}return Math.ceil(c)}function v(c){return typeof c=="boolean"?c:!0}function w(c){c=c||{},c.camera=c.camera||{};var A=c.canvas;if(!A)if(A=document.createElement("canvas"),c.container){var d=c.container;d.appendChild(A)}else document.body.appendChild(A);var D=c.gl;if(D||(c.glOptions&&(k=!!c.glOptions.preserveDrawingBuffer),D=x(A,c.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!D)throw new Error("webgl not supported");var E=c.bounds||[[-10,-10,-10],[10,10,10]],R=new S,N=p(D,D.drawingBufferWidth,D.drawingBufferHeight,{preferFloat:!k}),I=m(D),F=c.cameraObject&&c.cameraObject._ortho===!0||c.camera.projection&&c.camera.projection.type==="orthographic"||!1,L={eye:c.camera.eye||[2,0,0],center:c.camera.center||[0,0,0],up:c.camera.up||[0,1,0],zoomMin:c.camera.zoomMax||.1,zoomMax:c.camera.zoomMin||100,mode:c.camera.mode||"turntable",_ortho:F},P=c.axes||{},O=u(D,P);O.enable=!P.disable;var B=c.spikes||{},X=f(D,B),$=[],ee=[],Y=[],q=[],Q=!0,j=!0,oe=new Array(16),Z=new Array(16),se={view:null,projection:oe,model:Z,_ortho:!1},j=!0,V=[D.drawingBufferWidth,D.drawingBufferHeight],re=c.cameraObject||l(A,L),H={gl:D,contextLost:!1,pixelRatio:c.pixelRatio||1,canvas:A,selection:R,camera:re,axes:O,axesPixels:null,spikes:X,bounds:E,objects:$,shape:V,aspect:c.aspectRatio||[1,1,1],pickRadius:c.pickRadius||10,zNear:c.zNear||.01,zFar:c.zFar||1e3,fovy:c.fovy||Math.PI/4,clearColor:c.clearColor||[0,0,0,0],autoResize:v(c.autoResize),autoBounds:v(c.autoBounds),autoScale:!!c.autoScale,autoCenter:v(c.autoCenter),clipToBounds:v(c.clipToBounds),snapToData:!!c.snapToData,onselect:c.onselect||null,onrender:c.onrender||null,onclick:c.onclick||null,cameraParams:se,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(ie){this.aspect[0]=ie.x,this.aspect[1]=ie.y,this.aspect[2]=ie.z,j=!0},setBounds:function(ie,J){this.bounds[0][ie]=J.min,this.bounds[1][ie]=J.max},setClearColor:function(ie){this.clearColor=ie},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},ne=[D.drawingBufferWidth/H.pixelRatio|0,D.drawingBufferHeight/H.pixelRatio|0];function ue(){if(!H._stopped&&H.autoResize){var ie=A.parentNode,J=1,te=1;ie&&ie!==document.body?(J=ie.clientWidth,te=ie.clientHeight):(J=window.innerWidth,te=window.innerHeight);var ae=Math.ceil(J*H.pixelRatio)|0,ce=Math.ceil(te*H.pixelRatio)|0;if(ae!==A.width||ce!==A.height){A.width=ae,A.height=ce;var pe=A.style;pe.position=pe.position||"absolute",pe.left="0px",pe.top="0px",pe.width=J+"px",pe.height=te+"px",Q=!0}}}H.autoResize&&ue(),window.addEventListener("resize",ue);function ye(){for(var ie=$.length,J=q.length,te=0;te0&&Y[J-1]===0;)Y.pop(),q.pop().dispose()}H.update=function(ie){H._stopped||(ie=ie||{},Q=!0,j=!0)},H.add=function(ie){H._stopped||(ie.axes=O,$.push(ie),ee.push(-1),Q=!0,j=!0,ye())},H.remove=function(ie){if(!H._stopped){var J=$.indexOf(ie);J<0||($.splice(J,1),ee.pop(),Q=!0,j=!0,ye())}},H.dispose=function(){if(!H._stopped&&(H._stopped=!0,window.removeEventListener("resize",ue),A.removeEventListener("webglcontextlost",ke),H.mouseListener.enabled=!1,!H.contextLost)){O.dispose(),X.dispose();for(var ie=0;ie<$.length;++ie)$[ie].dispose();N.dispose();for(var ie=0;ieR.distance)continue;for(var de=0;de1e-6?(k=Math.acos(S),x=Math.sin(k),M=Math.sin((1-s)*k)/x,v=Math.sin(s*k)/x):(M=1-s,v=s),i[0]=M*f+v*y,i[1]=M*h+v*b,i[2]=M*p+v*T,i[3]=M*_+v*m,i}}),5964:(function(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}}),9366:(function(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,h,p){var _=[h.style,h.weight,h.variant,h.family].join("_"),y=u[_];if(y||(y=u[_]={}),f in y)return y[f];var b={textAlign:"center",textBaseline:"middle",lineHeight:1,font:h.family,fontStyle:h.style,fontWeight:h.weight,fontVariant:h.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};b.triangles=!0;var T=l(f,b);b.triangles=!1;var m=l(f,b),k,S;if(p&&p!==1){for(k=0;k1?1:Z}function g(Z,se,j,V,re,H,ne,ue,ye,ke,Me,ge){this.gl=Z,this.pixelRatio=1,this.shader=se,this.orthoShader=j,this.projectShader=V,this.pointBuffer=re,this.colorBuffer=H,this.glyphBuffer=ne,this.idBuffer=ue,this.vao=ye,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=ke,this.pickOrthoShader=Me,this.pickProjectShader=ge,this.points=[],this._selectResult=new v(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var c=g.prototype;c.pickSlots=1,c.setPickBase=function(Z){this.pickId=Z},c.isTransparent=function(){if(this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&this.projectHasAlpha)return!0;return!1},c.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],d=[0,0,0],D=[0,0,0],E=[0,0,0,1],R=[0,0,0,1],N=b.slice(),I=[0,0,0],F=[[0,0,0],[0,0,0]];function L(Z){return Z[0]=Z[1]=Z[2]=0,Z}function P(Z,se){return Z[0]=se[0],Z[1]=se[1],Z[2]=se[2],Z[3]=1,Z}function O(Z,se,j,V){return Z[0]=se[0],Z[1]=se[1],Z[2]=se[2],Z[j]=V,Z}function B(Z){for(var se=F,j=0;j<2;++j)for(var V=0;V<3;++V)se[j][V]=Math.max(Math.min(Z[j][V],1e8),-1e8);return se}function X(Z,se,j,V){var re=se.axesProject,H=se.gl,ne=Z.uniforms,ue=j.model||b,ye=j.view||b,ke=j.projection||b,Me=se.axesBounds,ge=B(se.clipBounds),Ee;se.axes&&se.axes.lastCubeProps?Ee=se.axes.lastCubeProps.axis:Ee=[1,1,1],A[0]=2/H.drawingBufferWidth,A[1]=2/H.drawingBufferHeight,Z.bind(),ne.view=ye,ne.projection=ke,ne.screenSize=A,ne.highlightId=se.highlightId,ne.highlightScale=se.highlightScale,ne.clipBounds=ge,ne.pickGroup=se.pickId/255,ne.pixelRatio=V;for(var Ce=0;Ce<3;++Ce)if(re[Ce]){ne.scale=se.projectScale[Ce],ne.opacity=se.projectOpacity[Ce];for(var Fe=N,ie=0;ie<16;++ie)Fe[ie]=0;for(var ie=0;ie<4;++ie)Fe[5*ie]=1;Fe[5*Ce]=0,Ee[Ce]<0?Fe[12+Ce]=Me[0][Ce]:Fe[12+Ce]=Me[1][Ce],h(Fe,ue,Fe),ne.model=Fe;var J=(Ce+1)%3,te=(Ce+2)%3,ae=L(d),ce=L(D);ae[J]=1,ce[te]=1;var pe=M(ke,ye,ue,P(E,ae)),ve=M(ke,ye,ue,P(R,ce));if(Math.abs(pe[1])>Math.abs(ve[1])){var xe=pe;pe=ve,ve=xe,xe=ae,ae=ce,ce=xe;var me=J;J=te,te=me}pe[0]<0&&(ae[J]=-1),ve[1]>0&&(ce[te]=-1);for(var de=0,_e=0,ie=0;ie<4;++ie)de+=Math.pow(ue[4*J+ie],2),_e+=Math.pow(ue[4*te+ie],2);ae[J]/=Math.sqrt(de),ce[te]/=Math.sqrt(_e),ne.axes[0]=ae,ne.axes[1]=ce,ne.fragClipBounds[0]=O(I,ge[0],Ce,-1e8),ne.fragClipBounds[1]=O(I,ge[1],Ce,1e8),se.vao.bind(),se.vao.draw(H.TRIANGLES,se.vertexCount),se.lineWidth>0&&(H.lineWidth(se.lineWidth*V),se.vao.draw(H.LINES,se.lineVertexCount,se.vertexCount)),se.vao.unbind()}}var $=[-1e8,-1e8,-1e8],ee=[1e8,1e8,1e8],Y=[$,ee];function q(Z,se,j,V,re,H,ne){var ue=j.gl;if((H===j.projectHasAlpha||ne)&&X(se,j,V,re),H===j.hasAlpha||ne){Z.bind();var ye=Z.uniforms;ye.model=V.model||b,ye.view=V.view||b,ye.projection=V.projection||b,A[0]=2/ue.drawingBufferWidth,A[1]=2/ue.drawingBufferHeight,ye.screenSize=A,ye.highlightId=j.highlightId,ye.highlightScale=j.highlightScale,ye.fragClipBounds=Y,ye.clipBounds=j.axes.bounds,ye.opacity=j.opacity,ye.pickGroup=j.pickId/255,ye.pixelRatio=re,j.vao.bind(),j.vao.draw(ue.TRIANGLES,j.vertexCount),j.lineWidth>0&&(ue.lineWidth(j.lineWidth*re),j.vao.draw(ue.LINES,j.lineVertexCount,j.vertexCount)),j.vao.unbind()}}c.draw=function(Z){var se=this.useOrtho?this.orthoShader:this.shader;q(se,this.projectShader,this,Z,this.pixelRatio,!1,!1)},c.drawTransparent=function(Z){var se=this.useOrtho?this.orthoShader:this.shader;q(se,this.projectShader,this,Z,this.pixelRatio,!0,!1)},c.drawPick=function(Z){var se=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(se,this.pickProjectShader,this,Z,1,!0,!0)},c.pick=function(Z){if(!Z||Z.id!==this.pickId)return null;var se=Z.value[2]+(Z.value[1]<<8)+(Z.value[0]<<16);if(se>=this.pointCount||se<0)return null;var j=this.points[se],V=this._selectResult;V.index=se;for(var re=0;re<3;++re)V.position[re]=V.dataCoordinate[re]=j[re];return V},c.highlight=function(Z){if(!Z)this.highlightId=[1,1,1,1];else{var se=Z.index,j=se&255,V=se>>8&255,re=se>>16&255;this.highlightId=[j/255,V/255,re/255,0]}};function Q(Z,se,j,V){var re;S(Z)?se0){var ze=0,Be=te,Se=[0,0,0,1],Le=[0,0,0,1],Ye=S(Ee)&&S(Ee[0]),Xe=S(ie)&&S(ie[0]);e:for(var V=0;V0?1-_e[0][0]:wr<0?1+_e[1][0]:1,$r*=$r>0?1-_e[0][1]:$r<0?1+_e[1][1]:1;for(var _r=[wr,$r],gt=me.cells||[],Hr=me.positions||[],ve=0;vethis.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*m*4)),x=0;xS)for(m=S;mk)for(m=k;m=0){for(var F=I.type.charAt(I.type.length-1)|0,L=new Array(F),P=0;P=0;)O+=1;R[N]=O}var B=new Array(S.length);function X(){v.program=f.program(w,v._vref,v._fref,E,R);for(var $=0;$=0){var c=w.charCodeAt(w.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+v+": "+w);h(y,b,g[0],m,c,k,v)}else if(w.indexOf("mat")>=0){var c=w.charCodeAt(w.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+v+": "+w);p(y,b,g,m,c,k,v)}else throw new l("","Unknown data type for attribute "+v+": "+w);break}}return k}},3327:function(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=h;function s(p){return function(){return p}}function f(p,_){for(var y=new Array(p),b=0;b4)throw new u("","Invalid data type");switch(O.charAt(0)){case"b":case"i":p["uniform"+B+"iv"](b[R],N);break;case"v":p["uniform"+B+"fv"](b[R],N);break;default:throw new u("","Unrecognized data type for vector "+name+": "+O)}}else if(O.indexOf("mat")===0&&O.length===4){if(B=O.charCodeAt(O.length-1)-48,B<2||B>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+O);p["uniformMatrix"+B+"fv"](b[R],!1,N);break}else throw new u("","Unknown uniform data type for "+name+": "+O)}}}}}function k(w,g){if(typeof g!="object")return[[w,g]];var c=[];for(var A in g){var d=g[A],D=w;parseInt(A)+""===A?D+="["+A+"]":D+="."+A,typeof d=="object"?c.push.apply(c,k(D,d)):c.push([D,d])}return c}function S(w){switch(w){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var g=w.indexOf("vec");if(0<=g&&g<=1&&w.length===4+g){var c=w.charCodeAt(w.length-1)-48;if(c<2||c>4)throw new u("","Invalid data type");return w.charAt(0)==="b"?f(c,!1):f(c,0)}else if(w.indexOf("mat")===0&&w.length===4){var c=w.charCodeAt(w.length-1)-48;if(c<2||c>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+w);return f(c*c,0)}else throw new u("","Unknown uniform data type for "+name+": "+w)}}function x(w,g,c){if(typeof c=="object"){var A=M(c);Object.defineProperty(w,g,{get:s(A),set:m(c),enumerable:!0,configurable:!1})}else b[c]?Object.defineProperty(w,g,{get:T(c),set:m(c),enumerable:!0,configurable:!1}):w[g]=S(y[c].type)}function M(w){var g;if(Array.isArray(w)){g=new Array(w.length);for(var c=0;c1){y[0]in p||(p[y[0]]=[]),p=p[y[0]];for(var b=1;b1)for(var k=0;k1?1:Z}function g(Z,se,j,V,re,H,ne,ue,ye,ke,Me,ge){this.gl=Z,this.pixelRatio=1,this.shader=se,this.orthoShader=j,this.projectShader=V,this.pointBuffer=re,this.colorBuffer=H,this.glyphBuffer=ne,this.idBuffer=ue,this.vao=ye,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=ke,this.pickOrthoShader=Me,this.pickProjectShader=ge,this.points=[],this._selectResult=new v(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var c=g.prototype;c.pickSlots=1,c.setPickBase=function(Z){this.pickId=Z},c.isTransparent=function(){if(this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&this.projectHasAlpha)return!0;return!1},c.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],d=[0,0,0],D=[0,0,0],E=[0,0,0,1],R=[0,0,0,1],N=b.slice(),I=[0,0,0],F=[[0,0,0],[0,0,0]];function L(Z){return Z[0]=Z[1]=Z[2]=0,Z}function P(Z,se){return Z[0]=se[0],Z[1]=se[1],Z[2]=se[2],Z[3]=1,Z}function O(Z,se,j,V){return Z[0]=se[0],Z[1]=se[1],Z[2]=se[2],Z[j]=V,Z}function B(Z){for(var se=F,j=0;j<2;++j)for(var V=0;V<3;++V)se[j][V]=Math.max(Math.min(Z[j][V],1e8),-1e8);return se}function X(Z,se,j,V){var re=se.axesProject,H=se.gl,ne=Z.uniforms,ue=j.model||b,ye=j.view||b,ke=j.projection||b,Me=se.axesBounds,ge=B(se.clipBounds),Ee;se.axes&&se.axes.lastCubeProps?Ee=se.axes.lastCubeProps.axis:Ee=[1,1,1],A[0]=2/H.drawingBufferWidth,A[1]=2/H.drawingBufferHeight,Z.bind(),ne.view=ye,ne.projection=ke,ne.screenSize=A,ne.highlightId=se.highlightId,ne.highlightScale=se.highlightScale,ne.clipBounds=ge,ne.pickGroup=se.pickId/255,ne.pixelRatio=V;for(var Ce=0;Ce<3;++Ce)if(re[Ce]){ne.scale=se.projectScale[Ce],ne.opacity=se.projectOpacity[Ce];for(var Fe=N,ie=0;ie<16;++ie)Fe[ie]=0;for(var ie=0;ie<4;++ie)Fe[5*ie]=1;Fe[5*Ce]=0,Ee[Ce]<0?Fe[12+Ce]=Me[0][Ce]:Fe[12+Ce]=Me[1][Ce],h(Fe,ue,Fe),ne.model=Fe;var J=(Ce+1)%3,te=(Ce+2)%3,ae=L(d),ce=L(D);ae[J]=1,ce[te]=1;var pe=M(ke,ye,ue,P(E,ae)),ve=M(ke,ye,ue,P(R,ce));if(Math.abs(pe[1])>Math.abs(ve[1])){var xe=pe;pe=ve,ve=xe,xe=ae,ae=ce,ce=xe;var me=J;J=te,te=me}pe[0]<0&&(ae[J]=-1),ve[1]>0&&(ce[te]=-1);for(var de=0,_e=0,ie=0;ie<4;++ie)de+=Math.pow(ue[4*J+ie],2),_e+=Math.pow(ue[4*te+ie],2);ae[J]/=Math.sqrt(de),ce[te]/=Math.sqrt(_e),ne.axes[0]=ae,ne.axes[1]=ce,ne.fragClipBounds[0]=O(I,ge[0],Ce,-1e8),ne.fragClipBounds[1]=O(I,ge[1],Ce,1e8),se.vao.bind(),se.vao.draw(H.TRIANGLES,se.vertexCount),se.lineWidth>0&&(H.lineWidth(se.lineWidth*V),se.vao.draw(H.LINES,se.lineVertexCount,se.vertexCount)),se.vao.unbind()}}var $=[-1e8,-1e8,-1e8],ee=[1e8,1e8,1e8],Y=[$,ee];function q(Z,se,j,V,re,H,ne){var ue=j.gl;if((H===j.projectHasAlpha||ne)&&X(se,j,V,re),H===j.hasAlpha||ne){Z.bind();var ye=Z.uniforms;ye.model=V.model||b,ye.view=V.view||b,ye.projection=V.projection||b,A[0]=2/ue.drawingBufferWidth,A[1]=2/ue.drawingBufferHeight,ye.screenSize=A,ye.highlightId=j.highlightId,ye.highlightScale=j.highlightScale,ye.fragClipBounds=Y,ye.clipBounds=j.axes.bounds,ye.opacity=j.opacity,ye.pickGroup=j.pickId/255,ye.pixelRatio=re,j.vao.bind(),j.vao.draw(ue.TRIANGLES,j.vertexCount),j.lineWidth>0&&(ue.lineWidth(j.lineWidth*re),j.vao.draw(ue.LINES,j.lineVertexCount,j.vertexCount)),j.vao.unbind()}}c.draw=function(Z){var se=this.useOrtho?this.orthoShader:this.shader;q(se,this.projectShader,this,Z,this.pixelRatio,!1,!1)},c.drawTransparent=function(Z){var se=this.useOrtho?this.orthoShader:this.shader;q(se,this.projectShader,this,Z,this.pixelRatio,!0,!1)},c.drawPick=function(Z){var se=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(se,this.pickProjectShader,this,Z,1,!0,!0)},c.pick=function(Z){if(!Z||Z.id!==this.pickId)return null;var se=Z.value[2]+(Z.value[1]<<8)+(Z.value[0]<<16);if(se>=this.pointCount||se<0)return null;var j=this.points[se],V=this._selectResult;V.index=se;for(var re=0;re<3;++re)V.position[re]=V.dataCoordinate[re]=j[re];return V},c.highlight=function(Z){if(!Z)this.highlightId=[1,1,1,1];else{var se=Z.index,j=se&255,V=se>>8&255,re=se>>16&255;this.highlightId=[j/255,V/255,re/255,0]}};function Q(Z,se,j,V){var re;S(Z)?se0){var ze=0,Be=te,Se=[0,0,0,1],Le=[0,0,0,1],Ye=S(Ee)&&S(Ee[0]),Xe=S(ie)&&S(ie[0]);e:for(var V=0;V0?1-_e[0][0]:wr<0?1+_e[1][0]:1,$r*=$r>0?1-_e[0][1]:$r<0?1+_e[1][1]:1;for(var _r=[wr,$r],gt=me.cells||[],Hr=me.positions||[],ve=0;vethis.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*m*4)),x=0;xS)for(m=S;mk)for(m=k;m=0){for(var F=I.type.charAt(I.type.length-1)|0,L=new Array(F),P=0;P=0;)O+=1;R[N]=O}var B=new Array(S.length);function X(){v.program=f.program(w,v._vref,v._fref,E,R);for(var $=0;$=0){var c=w.charCodeAt(w.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+v+": "+w);h(y,b,g[0],m,c,k,v)}else if(w.indexOf("mat")>=0){var c=w.charCodeAt(w.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+v+": "+w);p(y,b,g,m,c,k,v)}else throw new l("","Unknown data type for attribute "+v+": "+w);break}}return k}}),3327:(function(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=h;function s(p){return function(){return p}}function f(p,_){for(var y=new Array(p),b=0;b4)throw new u("","Invalid data type");switch(O.charAt(0)){case"b":case"i":p["uniform"+B+"iv"](b[R],N);break;case"v":p["uniform"+B+"fv"](b[R],N);break;default:throw new u("","Unrecognized data type for vector "+name+": "+O)}}else if(O.indexOf("mat")===0&&O.length===4){if(B=O.charCodeAt(O.length-1)-48,B<2||B>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+O);p["uniformMatrix"+B+"fv"](b[R],!1,N);break}else throw new u("","Unknown uniform data type for "+name+": "+O)}}}}}function k(w,g){if(typeof g!="object")return[[w,g]];var c=[];for(var A in g){var d=g[A],D=w;parseInt(A)+""===A?D+="["+A+"]":D+="."+A,typeof d=="object"?c.push.apply(c,k(D,d)):c.push([D,d])}return c}function S(w){switch(w){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var g=w.indexOf("vec");if(0<=g&&g<=1&&w.length===4+g){var c=w.charCodeAt(w.length-1)-48;if(c<2||c>4)throw new u("","Invalid data type");return w.charAt(0)==="b"?f(c,!1):f(c,0)}else if(w.indexOf("mat")===0&&w.length===4){var c=w.charCodeAt(w.length-1)-48;if(c<2||c>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+w);return f(c*c,0)}else throw new u("","Unknown uniform data type for "+name+": "+w)}}function x(w,g,c){if(typeof c=="object"){var A=M(c);Object.defineProperty(w,g,{get:s(A),set:m(c),enumerable:!0,configurable:!1})}else b[c]?Object.defineProperty(w,g,{get:T(c),set:m(c),enumerable:!0,configurable:!1}):w[g]=S(y[c].type)}function M(w){var g;if(Array.isArray(w)){g=new Array(w.length);for(var c=0;c1){y[0]in p||(p[y[0]]=[]),p=p[y[0]];for(var b=1;b1)for(var k=0;k0)for(var q=0;qM)return w-1}return w},_=function(x,M,v){return xv?v:x},y=function(x,M,v){var w=M.vectors,g=M.meshgrid,c=x[0],A=x[1],d=x[2],D=g[0].length,E=g[1].length,R=g[2].length,N=p(g[0],c),I=p(g[1],A),F=p(g[2],d),L=N+1,P=I+1,O=F+1;if(N=_(N,0,D-1),L=_(L,0,D-1),I=_(I,0,E-1),P=_(P,0,E-1),F=_(F,0,R-1),O=_(O,0,R-1),N<0||I<0||F<0||L>D-1||P>E-1||O>R-1)return l.create();var B=g[0][N],X=g[0][L],$=g[1][I],ee=g[1][P],Y=g[2][F],q=g[2][O],Q=(c-B)/(X-B),oe=(A-$)/(ee-$),Z=(d-Y)/(q-Y);isFinite(Q)||(Q=.5),isFinite(oe)||(oe=.5),isFinite(Z)||(Z=.5);var se,j,V,re,H,ne;switch(v.reversedX&&(N=D-1-N,L=D-1-L),v.reversedY&&(I=E-1-I,P=E-1-P),v.reversedZ&&(F=R-1-F,O=R-1-O),v.filled){case 5:H=F,ne=O,V=I*R,re=P*R,se=N*R*E,j=L*R*E;break;case 4:H=F,ne=O,se=N*R,j=L*R,V=I*R*D,re=P*R*D;break;case 3:V=I,re=P,H=F*E,ne=O*E,se=N*E*R,j=L*E*R;break;case 2:V=I,re=P,se=N*E,j=L*E,H=F*E*D,ne=O*E*D;break;case 1:se=N,j=L,H=F*D,ne=O*D,V=I*D*R,re=P*D*R;break;default:se=N,j=L,V=I*D,re=P*D,H=F*D*E,ne=O*D*E;break}var ue=w[se+V+H],ye=w[se+V+ne],ke=w[se+re+H],Me=w[se+re+ne],ge=w[j+V+H],Ee=w[j+V+ne],Ce=w[j+re+H],Fe=w[j+re+ne],ie=l.create(),J=l.create(),te=l.create(),ae=l.create();l.lerp(ie,ue,ge,Q),l.lerp(J,ye,Ee,Q),l.lerp(te,ke,Ce,Q),l.lerp(ae,Me,Fe,Q);var ce=l.create(),pe=l.create();l.lerp(ce,ie,te,oe),l.lerp(pe,J,ae,oe);var ve=l.create();return l.lerp(ve,ce,pe,Z),ve},b=function(x,M){var v=M[0],w=M[1],g=M[2];return x[0]=v<0?-v:v,x[1]=w<0?-w:w,x[2]=g<0?-g:g,x},T=function(x){var M=1/0;x.sort(function(c,A){return c-A});for(var v=x.length,w=1;wL||FeP||ieO)},X=l.distance(M[0],M[1]),$=10*X/w,ee=$*$,Y=1,q=0,Q=v.length;Q>1&&(Y=m(v));for(var oe=0;oeq&&(q=ue),H.push(ue),R.push({points:se,velocities:j,divergences:H});for(var ye=0;yeee&&l.scale(ke,ke,$/Math.sqrt(Me)),l.add(ke,ke,Z),V=D(ke),l.squaredDistance(re,ke)-ee>-1e-4*ee){se.push(ke),re=ke,j.push(V);var ne=E(ke,V),ue=l.length(ne);isFinite(ue)&&ue>q&&(q=ue),H.push(ue)}Z=ke}}var ge=h(R,x.colormap,q,Y);return c?ge.tubeScale=c:(q===0&&(q=1),ge.tubeScale=g*.5*Y/q),ge};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(x,M){return S(x,M,{shaders:k,traceType:"streamtube"})}},990:function(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float; +}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},o.pickShader={vertex:f,fragment:h,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}}),7815:(function(a,o,i){"use strict";var l=i(2931),u=i(9970),s=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(x,M,v,w){for(var g=x.points,c=x.velocities,A=x.divergences,d=[],D=[],E=[],R=[],N=[],I=[],F=0,L=0,P=u.create(),O=u.create(),B=8,X=0;X0)for(var q=0;qM)return w-1}return w},_=function(x,M,v){return xv?v:x},y=function(x,M,v){var w=M.vectors,g=M.meshgrid,c=x[0],A=x[1],d=x[2],D=g[0].length,E=g[1].length,R=g[2].length,N=p(g[0],c),I=p(g[1],A),F=p(g[2],d),L=N+1,P=I+1,O=F+1;if(N=_(N,0,D-1),L=_(L,0,D-1),I=_(I,0,E-1),P=_(P,0,E-1),F=_(F,0,R-1),O=_(O,0,R-1),N<0||I<0||F<0||L>D-1||P>E-1||O>R-1)return l.create();var B=g[0][N],X=g[0][L],$=g[1][I],ee=g[1][P],Y=g[2][F],q=g[2][O],Q=(c-B)/(X-B),oe=(A-$)/(ee-$),Z=(d-Y)/(q-Y);isFinite(Q)||(Q=.5),isFinite(oe)||(oe=.5),isFinite(Z)||(Z=.5);var se,j,V,re,H,ne;switch(v.reversedX&&(N=D-1-N,L=D-1-L),v.reversedY&&(I=E-1-I,P=E-1-P),v.reversedZ&&(F=R-1-F,O=R-1-O),v.filled){case 5:H=F,ne=O,V=I*R,re=P*R,se=N*R*E,j=L*R*E;break;case 4:H=F,ne=O,se=N*R,j=L*R,V=I*R*D,re=P*R*D;break;case 3:V=I,re=P,H=F*E,ne=O*E,se=N*E*R,j=L*E*R;break;case 2:V=I,re=P,se=N*E,j=L*E,H=F*E*D,ne=O*E*D;break;case 1:se=N,j=L,H=F*D,ne=O*D,V=I*D*R,re=P*D*R;break;default:se=N,j=L,V=I*D,re=P*D,H=F*D*E,ne=O*D*E;break}var ue=w[se+V+H],ye=w[se+V+ne],ke=w[se+re+H],Me=w[se+re+ne],ge=w[j+V+H],Ee=w[j+V+ne],Ce=w[j+re+H],Fe=w[j+re+ne],ie=l.create(),J=l.create(),te=l.create(),ae=l.create();l.lerp(ie,ue,ge,Q),l.lerp(J,ye,Ee,Q),l.lerp(te,ke,Ce,Q),l.lerp(ae,Me,Fe,Q);var ce=l.create(),pe=l.create();l.lerp(ce,ie,te,oe),l.lerp(pe,J,ae,oe);var ve=l.create();return l.lerp(ve,ce,pe,Z),ve},b=function(x,M){var v=M[0],w=M[1],g=M[2];return x[0]=v<0?-v:v,x[1]=w<0?-w:w,x[2]=g<0?-g:g,x},T=function(x){var M=1/0;x.sort(function(c,A){return c-A});for(var v=x.length,w=1;wL||FeP||ieO)},X=l.distance(M[0],M[1]),$=10*X/w,ee=$*$,Y=1,q=0,Q=v.length;Q>1&&(Y=m(v));for(var oe=0;oeq&&(q=ue),H.push(ue),R.push({points:se,velocities:j,divergences:H});for(var ye=0;yeee&&l.scale(ke,ke,$/Math.sqrt(Me)),l.add(ke,ke,Z),V=D(ke),l.squaredDistance(re,ke)-ee>-1e-4*ee){se.push(ke),re=ke,j.push(V);var ne=E(ke,V),ue=l.length(ne);isFinite(ue)&&ue>q&&(q=ue),H.push(ue)}Z=ke}}var ge=h(R,x.colormap,q,Y);return c?ge.tubeScale=c:(q===0&&(q=1),ge.tubeScale=g*.5*Y/q),ge};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(x,M){return S(x,M,{shaders:k,traceType:"streamtube"})}}),990:(function(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1920,13 +1920,13 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);o.createShader=function(_){var y=l(_,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y.attributes.normal.location=2,y},o.createPickShader=function(_){var y=l(_,s,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y.attributes.normal.location=2,y},o.createContourShader=function(_){var y=l(_,h,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y},o.createPickContourShader=function(_){var y=l(_,h,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y}},9499:function(a,o,i){"use strict";a.exports=se;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),h=i(1888),p=i(6729),_=i(5298),y=i(9994),b=i(9618),T=i(3711),m=i(6760),k=i(7608),S=i(2478),x=i(6199),M=i(990),v=M.createShader,w=M.createContourShader,g=M.createPickShader,c=M.createPickContourShader,A=4*10,d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],D=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var j=0;j<3;++j){var V=E[j],re=(j+1)%3,H=(j+2)%3;V[re+0]=1,V[H+3]=1,V[j+6]=1}})();function R(j,V,re,H,ne){this.position=j,this.index=V,this.uv=re,this.level=H,this.dataCoordinate=ne}var N=256;function I(j,V,re,H,ne,ue,ye,ke,Me,ge,Ee,Ce,Fe,ie,J){this.gl=j,this.shape=V,this.bounds=re,this.objectOffset=J,this.intensityBounds=[],this._shader=H,this._pickShader=ne,this._coordinateBuffer=ue,this._vao=ye,this._colorMap=ke,this._contourShader=Me,this._contourPickShader=ge,this._contourBuffer=Ee,this._contourVAO=Ce,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new R([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Fe,this._dynamicVAO=ie,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[b(h.mallocFloat(1024),[0,0]),b(h.mallocFloat(1024),[0,0]),b(h.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var F=I.prototype;F.genColormap=function(j,V){var re=!1,H=y([p({colormap:j,nshades:N,format:"rgba"}).map(function(ne,ue){var ye=V?L(ue/255,V):ne[3];return ye<1&&(re=!0),[ne[0],ne[1],ne[2],255*ye]})]);return _.divseq(H,255),this.hasAlphaScale=re,H},F.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},F.isOpaque=function(){return!this.isTransparent()},F.pickSlots=1,F.setPickBase=function(j){this.pickId=j};function L(j,V){if(!V||!V.length)return 1;for(var re=0;rej&&re>0){var H=(V[re][0]-j)/(V[re][0]-V[re-1][0]);return V[re][1]*(1-H)+H*V[re-1][1]}}return 1}var P=[0,0,0],O={showSurface:!1,showContour:!1,projections:[d.slice(),d.slice(),d.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function B(j,V){var re,H,ne,ue=V.axes&&V.axes.lastCubeProps.axis||P,ye=V.showSurface,ke=V.showContour;for(re=0;re<3;++re)for(ye=ye||V.surfaceProject[re],H=0;H<3;++H)ke=ke||V.contourProject[re][H];for(re=0;re<3;++re){var Me=O.projections[re];for(H=0;H<16;++H)Me[H]=0;for(H=0;H<4;++H)Me[5*H]=1;Me[5*re]=0,Me[12+re]=V.axesBounds[+(ue[re]>0)][re],m(Me,j.model,Me);var ge=O.clipBounds[re];for(ne=0;ne<2;++ne)for(H=0;H<3;++H)ge[ne][H]=j.clipBounds[ne][H];ge[0][re]=-1e8,ge[1][re]=1e8}return O.showSurface=ye,O.showContour=ke,O}var X={model:d,view:d,projection:d,inverseModel:d.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},$=d.slice(),ee=[1,0,0,0,1,0,0,0,1];function Y(j,V){j=j||{};var re=this.gl;re.disable(re.CULL_FACE),this._colorMap.bind(0);var H=X;H.model=j.model||d,H.view=j.view||d,H.projection=j.projection||d,H.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],H.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],H.objectOffset=this.objectOffset,H.contourColor=this.contourColor[0],H.inverseModel=k(H.inverseModel,H.model);for(var ne=0;ne<2;++ne)for(var ue=H.clipBounds[ne],ye=0;ye<3;++ye)ue[ye]=Math.min(Math.max(this.clipBounds[ne][ye],-1e8),1e8);H.kambient=this.ambientLight,H.kdiffuse=this.diffuseLight,H.kspecular=this.specularLight,H.roughness=this.roughness,H.fresnel=this.fresnel,H.opacity=this.opacity,H.height=0,H.permutation=ee,H.vertexColor=this.vertexColor;var ke=$;for(m(ke,H.view,H.model),m(ke,H.projection,ke),k(ke,ke),ne=0;ne<3;++ne)H.eyePosition[ne]=ke[12+ne]/ke[15];var Me=ke[15];for(ne=0;ne<3;++ne)Me+=this.lightPosition[ne]*ke[4*ne+3];for(ne=0;ne<3;++ne){var ge=ke[12+ne];for(ye=0;ye<3;++ye)ge+=ke[4*ye+ne]*this.lightPosition[ye];H.lightPosition[ne]=ge/Me}var Ee=B(H,this);if(Ee.showSurface){for(this._shader.bind(),this._shader.uniforms=H,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(re.TRIANGLES,this._vertexCount),ne=0;ne<3;++ne)!this.surfaceProject[ne]||!this.vertexCount||(this._shader.uniforms.model=Ee.projections[ne],this._shader.uniforms.clipBounds=Ee.clipBounds[ne],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ee.showContour){var Ce=this._contourShader;H.kambient=1,H.kdiffuse=0,H.kspecular=0,H.opacity=1,Ce.bind(),Ce.uniforms=H;var Fe=this._contourVAO;for(Fe.bind(),ne=0;ne<3;++ne)for(Ce.uniforms.permutation=E[ne],re.lineWidth(this.contourWidth[ne]*this.pixelRatio),ye=0;ye>4)/16)/255,ne=Math.floor(H),ue=H-ne,ye=V[1]*(j.value[1]+(j.value[2]&15)/16)/255,ke=Math.floor(ye),Me=ye-ke;ne+=1,ke+=1;var ge=re.position;ge[0]=ge[1]=ge[2]=0;for(var Ee=0;Ee<2;++Ee)for(var Ce=Ee?ue:1-ue,Fe=0;Fe<2;++Fe)for(var ie=Fe?Me:1-Me,J=ne+Ee,te=ke+Fe,ae=Ce*ie,ce=0;ce<3;++ce)ge[ce]+=this._field[ce].get(J,te)*ae;for(var pe=this._pickResult.level,ve=0;ve<3;++ve)if(pe[ve]=S.le(this.contourLevels[ve],ge[ve]),pe[ve]<0)this.contourLevels[ve].length>0&&(pe[ve]=0);else if(pe[ve]Math.abs(me-ge[ve])&&(pe[ve]+=1)}for(re.index[0]=ue<.5?ne:ne+1,re.index[1]=Me<.5?ke:ke+1,re.uv[0]=H/V[0],re.uv[1]=ye/V[1],ce=0;ce<3;++ce)re.dataCoordinate[ce]=this._field[ce].get(re.index[0],re.index[1]);return re},F.padField=function(j,V){var re=V.shape.slice(),H=j.shape.slice();_.assign(j.lo(1,1).hi(re[0],re[1]),V),_.assign(j.lo(1).hi(re[0],1),V.hi(re[0],1)),_.assign(j.lo(1,H[1]-1).hi(re[0],1),V.lo(0,re[1]-1).hi(re[0],1)),_.assign(j.lo(0,1).hi(1,re[1]),V.hi(1)),_.assign(j.lo(H[0]-1,1).hi(1,re[1]),V.lo(re[0]-1)),j.set(0,0,V.get(0,0)),j.set(0,H[1]-1,V.get(0,re[1]-1)),j.set(H[0]-1,0,V.get(re[0]-1,0)),j.set(H[0]-1,H[1]-1,V.get(re[0]-1,re[1]-1))};function Q(j,V){return Array.isArray(j)?[V(j[0]),V(j[1]),V(j[2])]:[V(j),V(j),V(j)]}function oe(j){return Array.isArray(j)?j.length===3?[j[0],j[1],j[2],1]:[j[0],j[1],j[2],j[3]]:[0,0,0,1]}function Z(j){if(Array.isArray(j)){if(Array.isArray(j))return[oe(j[0]),oe(j[1]),oe(j[2])];var V=oe(j);return[V.slice(),V.slice(),V.slice()]}}F.update=function(j){j=j||{},this.objectOffset=j.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in j&&(this.contourWidth=Q(j.contourWidth,Number)),"showContour"in j&&(this.showContour=Q(j.showContour,Boolean)),"showSurface"in j&&(this.showSurface=!!j.showSurface),"contourTint"in j&&(this.contourTint=Q(j.contourTint,Boolean)),"contourColor"in j&&(this.contourColor=Z(j.contourColor)),"contourProject"in j&&(this.contourProject=Q(j.contourProject,function(Ma){return Q(Ma,Boolean)})),"surfaceProject"in j&&(this.surfaceProject=j.surfaceProject),"dynamicColor"in j&&(this.dynamicColor=Z(j.dynamicColor)),"dynamicTint"in j&&(this.dynamicTint=Q(j.dynamicTint,Number)),"dynamicWidth"in j&&(this.dynamicWidth=Q(j.dynamicWidth,Number)),"opacity"in j&&(this.opacity=j.opacity),"opacityscale"in j&&(this.opacityscale=j.opacityscale),"colorBounds"in j&&(this.colorBounds=j.colorBounds),"vertexColor"in j&&(this.vertexColor=j.vertexColor?1:0),"colormap"in j&&this._colorMap.setPixels(this.genColormap(j.colormap,this.opacityscale));var V=j.field||j.coords&&j.coords[2]||null,re=!1;if(V||(this._field[2].shape[0]||this._field[2].shape[2]?V=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):V=this._field[2].hi(0,0)),"field"in j||"coords"in j){var H=(V.shape[0]+2)*(V.shape[1]+2);H>this._field[2].data.length&&(h.freeFloat(this._field[2].data),this._field[2].data=h.mallocFloat(l.nextPow2(H))),this._field[2]=b(this._field[2].data,[V.shape[0]+2,V.shape[1]+2]),this.padField(this._field[2],V),this.shape=V.shape.slice();for(var ne=this.shape,ue=0;ue<2;++ue)this._field[2].size>this._field[ue].data.length&&(h.freeFloat(this._field[ue].data),this._field[ue].data=h.mallocFloat(this._field[2].size)),this._field[ue]=b(this._field[ue].data,[ne[0]+2,ne[1]+2]);if(j.coords){var ye=j.coords;if(!Array.isArray(ye)||ye.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ue=0;ue<2;++ue){var ke=ye[ue];for(Fe=0;Fe<2;++Fe)if(ke.shape[Fe]!==ne[Fe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ue],ke)}}else if(j.ticks){var Me=j.ticks;if(!Array.isArray(Me)||Me.length!==2)throw new Error("gl-surface: invalid ticks");for(ue=0;ue<2;++ue){var ge=Me[ue];if((Array.isArray(ge)||ge.length)&&(ge=b(ge)),ge.shape[0]!==ne[ue])throw new Error("gl-surface: invalid tick length");var Ee=b(ge.data,ne);Ee.stride[ue]=ge.stride[0],Ee.stride[ue^1]=0,this.padField(this._field[ue],Ee)}}else{for(ue=0;ue<2;++ue){var Ce=[0,0];Ce[ue]=1,this._field[ue]=b(this._field[ue].data,[ne[0]+2,ne[1]+2],Ce,0)}this._field[0].set(0,0,0);for(var Fe=0;Fe0){for(var ea=0;ea<5;++ea)Nr.pop();Ye-=1}continue e}}}gt.push(Ye)}this._contourOffsets[et]=qr,this._contourCounts[et]=gt}var Nn=h.mallocFloat(Nr.length);for(ue=0;ueR||D<0||D>R)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[d,D],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,d,D,0,A.format,A.type,null),A._mipLevels=[0],A}function m(A,d,D,E,R,N){this.gl=A,this.handle=d,this.format=R,this.type=N,this._shape=[D,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var I=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return I._wrapS},set:function(P){return I.wrapS=P}},{get:function(){return I._wrapT},set:function(P){return I.wrapT=P}}]),this._wrapVector=F;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return I._shape[0]},set:function(P){return I.width=P}},{get:function(){return I._shape[1]},set:function(P){return I.height=P}}]),this._shapeVector=L}var k=m.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var d=this.gl;if(this.type===d.FLOAT&&f.indexOf(A)>=0&&(d.getExtension("OES_texture_float_linear")||(A=d.NEAREST)),h.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var d=this.gl;if(this.type===d.FLOAT&&f.indexOf(A)>=0&&(d.getExtension("OES_texture_float_linear")||(A=d.NEAREST)),h.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var d=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,d!==this._anisoSamples){var D=this.gl.getExtension("EXT_texture_filter_anisotropic");D&&this.gl.texParameterf(this.gl.TEXTURE_2D,D.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var d=0;d<2;++d)if(p.indexOf(A[d])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var D=this.gl;return this.bind(),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_S,this._wrapS),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return T(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,T(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,T(this,this._shape[0],A),A}}}),k.bind=function(A){var d=this.gl;return A!==void 0&&d.activeTexture(d.TEXTURE0+(A|0)),d.bindTexture(d.TEXTURE_2D,this.handle),A!==void 0?A|0:d.getParameter(d.ACTIVE_TEXTURE)-d.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),d=0;A>0;++d,A>>>=1)this._mipLevels.indexOf(d)<0&&this._mipLevels.push(d)},k.setPixels=function(A,d,D,E){var R=this.gl;this.bind(),Array.isArray(d)?(E=D,D=d[1]|0,d=d[0]|0):(d=d||0,D=D||0),E=E||0;var N=y(A)?A:A.raw;if(N){var I=this._mipLevels.indexOf(E)<0;I?(R.texImage2D(R.TEXTURE_2D,0,this.format,this.format,this.type,N),this._mipLevels.push(E)):R.texSubImage2D(R.TEXTURE_2D,E,d,D,this.format,this.type,N)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||d+A.shape[1]>this._shape[1]>>>E||D+A.shape[0]>this._shape[0]>>>E||d<0||D<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");x(R,d,D,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,d){return A.length===3?d[2]===1&&d[1]===A[0]*A[2]&&d[0]===A[2]:d[0]===1&&d[1]===A[0]}function x(A,d,D,E,R,N,I,F){var L=F.dtype,P=F.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,B=0,X=S(P,F.stride.slice());L==="float32"?O=A.FLOAT:L==="float64"?(O=A.FLOAT,X=!1,L="float32"):L==="uint8"?O=A.UNSIGNED_BYTE:(O=A.UNSIGNED_BYTE,X=!1,L="uint8");var $=1;if(P.length===2)B=A.LUMINANCE,P=[P[0],P[1],1],F=l(F.data,P,[F.stride[0],F.stride[1],1],F.offset);else if(P.length===3){if(P[2]===1)B=A.ALPHA;else if(P[2]===2)B=A.LUMINANCE_ALPHA;else if(P[2]===3)B=A.RGB;else if(P[2]===4)B=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");$=P[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((B===A.LUMINANCE||B===A.ALPHA)&&(R===A.LUMINANCE||R===A.ALPHA)&&(B=R),B!==R)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ee=F.size,Y=I.indexOf(E)<0;if(Y&&I.push(E),O===N&&X)F.offset===0&&F.data.length===ee?Y?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,N,F.data):A.texSubImage2D(A.TEXTURE_2D,E,d,D,P[0],P[1],R,N,F.data):Y?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,N,F.data.subarray(F.offset,F.offset+ee)):A.texSubImage2D(A.TEXTURE_2D,E,d,D,P[0],P[1],R,N,F.data.subarray(F.offset,F.offset+ee));else{var q;N===A.FLOAT?q=s.mallocFloat32(ee):q=s.mallocUint8(ee);var Q=l(q,P,[P[2],P[2]*P[0],1]);O===A.FLOAT&&N===A.UNSIGNED_BYTE?b(Q,F):u.assign(Q,F),Y?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,N,q.subarray(0,ee)):A.texSubImage2D(A.TEXTURE_2D,E,d,D,P[0],P[1],R,N,q.subarray(0,ee)),N===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function M(A){var d=A.createTexture();return A.bindTexture(A.TEXTURE_2D,d),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),d}function v(A,d,D,E,R){var N=A.getParameter(A.MAX_TEXTURE_SIZE);if(d<0||d>N||D<0||D>N)throw new Error("gl-texture2d: Invalid texture shape");if(R===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var I=M(A);return A.texImage2D(A.TEXTURE_2D,0,E,d,D,0,E,R,null),new m(A,I,d,D,E,R)}function w(A,d,D,E,R,N){var I=M(A);return A.texImage2D(A.TEXTURE_2D,0,R,R,N,d),new m(A,I,D,E,R,N)}function g(A,d){var D=d.dtype,E=d.shape.slice(),R=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>R||E[1]<0||E[1]>R)throw new Error("gl-texture2d: Invalid texture size");var N=S(E,d.stride.slice()),I=0;D==="float32"?I=A.FLOAT:D==="float64"?(I=A.FLOAT,N=!1,D="float32"):D==="uint8"?I=A.UNSIGNED_BYTE:(I=A.UNSIGNED_BYTE,N=!1,D="uint8");var F=0;if(E.length===2)F=A.LUMINANCE,E=[E[0],E[1],1],d=l(d.data,E,[d.stride[0],d.stride[1],1],d.offset);else if(E.length===3)if(E[2]===1)F=A.ALPHA;else if(E[2]===2)F=A.LUMINANCE_ALPHA;else if(E[2]===3)F=A.RGB;else if(E[2]===4)F=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");I===A.FLOAT&&!A.getExtension("OES_texture_float")&&(I=A.UNSIGNED_BYTE,N=!1);var L,P,O=d.size;if(N)d.offset===0&&d.data.length===O?L=d.data:L=d.data.subarray(d.offset,d.offset+O);else{var B=[E[2],E[2]*E[0],1];P=s.malloc(O,D);var X=l(P,E,B,0);(D==="float32"||D==="float64")&&I===A.UNSIGNED_BYTE?b(X,d):u.assign(X,d),L=P.subarray(0,O)}var $=M(A);return A.texImage2D(A.TEXTURE_2D,0,F,E[0],E[1],0,F,I,L),N||s.free(P),new m(A,$,E[0],E[1],F,I)}function c(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||_(A),typeof arguments[1]=="number")return v(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var d=arguments[1],D=y(d)?d:d.raw;if(D)return w(A,D,d.width|0,d.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(d.shape&&d.data&&d.stride)return g(A,d)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(b)}},9226:function(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}},3126:function(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}},3990:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}},1091:function(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}},5911:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=u[0],_=u[1],y=u[2];return i[0]=f*y-h*_,i[1]=h*p-s*y,i[2]=s*_-f*p,i}},5455:function(a,o,i){a.exports=i(7056)},7056:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}},4008:function(a,o,i){a.exports=i(6690)},6690:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}},244:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}},2613:function(a){a.exports=1e-6},9922:function(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var h=s[0],p=s[1],_=s[2],y=f[0],b=f[1],T=f[2];return Math.abs(h-y)<=l*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(p-b)<=l*Math.max(1,Math.abs(p),Math.abs(b))&&Math.abs(_-T)<=l*Math.max(1,Math.abs(_),Math.abs(T))}},9265:function(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},2681:function(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}},5137:function(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,h,p,_,y){var b,T;for(f||(f=3),h||(h=0),p?T=Math.min(p*f+h,s.length):T=s.length,b=h;b0&&(h=1/Math.sqrt(h),i[0]=l[0]*h,i[1]=l[1]*h,i[2]=l[2]*h),i}},7636:function(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}},6894:function(a){a.exports=o;function o(i,l,u,s){var f=u[1],h=u[2],p=l[1]-f,_=l[2]-h,y=Math.sin(s),b=Math.cos(s);return i[0]=l[0],i[1]=f+p*b-_*y,i[2]=h+p*y+_*b,i}},109:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],h=u[2],p=l[0]-f,_=l[2]-h,y=Math.sin(s),b=Math.cos(s);return i[0]=f+_*y+p*b,i[1]=l[1],i[2]=h+_*b-p*y,i}},8692:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],h=u[1],p=l[0]-f,_=l[1]-h,y=Math.sin(s),b=Math.cos(s);return i[0]=f+p*b-_*y,i[1]=h+p*y+_*b,i[2]=l[2],i}},2447:function(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}},6621:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}},8489:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}},1463:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}},6141:function(a,o,i){a.exports=i(2953)},5486:function(a,o,i){a.exports=i(3066)},2953:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}},3066:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}},2229:function(a,o,i){a.exports=i(6843)},6843:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}},492:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2];return i[0]=s*u[0]+f*u[3]+h*u[6],i[1]=s*u[1]+f*u[4]+h*u[7],i[2]=s*u[2]+f*u[5]+h*u[8],i}},5673:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=u[3]*s+u[7]*f+u[11]*h+u[15];return p=p||1,i[0]=(u[0]*s+u[4]*f+u[8]*h+u[12])/p,i[1]=(u[1]*s+u[5]*f+u[9]*h+u[13])/p,i[2]=(u[2]*s+u[6]*f+u[10]*h+u[14])/p,i}},264:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=u[0],_=u[1],y=u[2],b=u[3],T=b*s+_*h-y*f,m=b*f+y*s-p*h,k=b*h+p*f-_*s,S=-p*s-_*f-y*h;return i[0]=T*b+S*-p+m*-y-k*-_,i[1]=m*b+S*-_+k*-p-T*-y,i[2]=k*b+S*-y+T*-_-m*-p,i}},4361:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}},2335:function(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}},2933:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}},7536:function(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}},4691:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],h=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+h*h)}},1373:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}},3750:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}},3390:function(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}},9970:function(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}},4494:function(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}},6808:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}},2573:function(a){a.exports=o;function o(i,l,u,s){var f=l[0],h=l[1],p=l[2],_=l[3];return i[0]=f+s*(u[0]-f),i[1]=h+s*(u[1]-h),i[2]=p+s*(u[2]-p),i[3]=_+s*(u[3]-_),i}},160:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}},2334:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}},3576:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}},1498:function(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}},5177:function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],h=l[3],p=u*u+s*s+f*f+h*h;return p>0&&(p=1/Math.sqrt(p),i[0]=u*p,i[1]=s*p,i[2]=f*p,i[3]=h*p),i}},9131:function(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,h){return h=h||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,h),f}},9288:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}},4844:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}},4578:function(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}},7960:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],h=l[3]-i[3];return u*u+s*s+f*f+h*h}},483:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}},6860:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}},5352:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*h+u[12]*p,i[1]=u[1]*s+u[5]*f+u[9]*h+u[13]*p,i[2]=u[2]*s+u[6]*f+u[10]*h+u[14]*p,i[3]=u[3]*s+u[7]*f+u[11]*h+u[15]*p,i}},4041:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=u[0],_=u[1],y=u[2],b=u[3],T=b*s+_*h-y*f,m=b*f+y*s-p*h,k=b*h+p*f-_*s,S=-p*s-_*f-y*h;return i[0]=T*b+S*-p+m*-y-k*-_,i[1]=m*b+S*-_+k*-p-T*-y,i[2]=k*b+S*-y+T*-_-m*-p,i[3]=l[3],i}},1848:function(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var h=Array.isArray(f)?f:l(f),p=0;p0)continue;ve=ae.slice(0,1).join("")}return re(ve),ee+=ve.length,L=L.slice(ve.length),L.length}while(!0)}function Fe(){return/[^a-fA-F0-9]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function ie(){return I==="."||/[eE]/.test(I)?(L.push(I),N=S,F=I,E+1):I==="x"&&L.length===1&&L[0]==="0"?(N=c,L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function J(){return I==="f"&&(L.push(I),F=I,E+=1),/[eE]/.test(I)||(I==="-"||I==="+")&&/[eE]/.test(F)?(L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function te(){if(/[^\d\w_]/.test(I)){var ae=L.join("");return V[ae]?N=v:j[ae]?N=M:N=x,re(L.join("")),N=p,E}return L.push(I),F=I,E+1}}},3508:function(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(a){a.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(a,o,i){var l=i(620);a.exports=l.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(a){a.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var h=l(f),p=[];return p=p.concat(h(s)),p=p.concat(h(null)),p}},3236:function(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u>1,T=-7,m=u?f-1:0,k=u?-1:1,S=i[l+m];for(m+=k,h=S&(1<<-T)-1,S>>=-T,T+=_;T>0;h=h*256+i[l+m],m+=k,T-=8);for(p=h&(1<<-T)-1,h>>=-T,T+=s;T>0;p=p*256+i[l+m],m+=k,T-=8);if(h===0)h=1-b;else{if(h===y)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,s),h=h-b}return(S?-1:1)*p*Math.pow(2,h-s)},o.write=function(i,l,u,s,f,h){var p,_,y,b=h*8-f-1,T=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:h-1,x=s?1:-1,M=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(_=isNaN(l)?1:0,p=T):(p=Math.floor(Math.log(l)/Math.LN2),l*(y=Math.pow(2,-p))<1&&(p--,y*=2),p+m>=1?l+=k/y:l+=k*Math.pow(2,1-m),l*y>=2&&(p++,y/=2),p+m>=T?(_=0,p=T):p+m>=1?(_=(l*y-1)*Math.pow(2,f),p=p+m):(_=l*Math.pow(2,m-1)*Math.pow(2,f),p=0));f>=8;i[u+S]=_&255,S+=x,_/=256,f-=8);for(p=p<0;i[u+S]=p&255,S+=x,p/=256,b-=8);i[u+S-x]|=M*128}},8954:function(a,o,i){"use strict";a.exports=m;var l=i(3250),u=i(6803).Fw;function s(k,S,x){this.vertices=k,this.adjacent=S,this.boundary=x,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,x){this.vertices=k,this.cell=S,this.index=x}function h(k,S){return u(k.vertices,S.vertices)}function p(k){return function(){var S=this.tuple;return k.apply(this,S)}}function _(k){var S=l[k+1];return S||(S=l),p(S)}var y=[];function b(k,S,x){this.dimension=k,this.vertices=S,this.simplices=x,this.interior=x.filter(function(w){return!w.boundary}),this.tuple=new Array(k+1);for(var M=0;M<=k;++M)this.tuple[M]=this.vertices[M];var v=y[k];v||(v=y[k]=_(k)),this.orient=v}var T=b.prototype;T.handleBoundaryDegeneracy=function(k,S){var x=this.dimension,M=this.vertices.length-1,v=this.tuple,w=this.vertices,g=[k];for(k.lastVisited=-M;g.length>0;){k=g.pop();for(var c=k.adjacent,A=0;A<=x;++A){var d=c[A];if(!(!d.boundary||d.lastVisited<=-M)){for(var D=d.vertices,E=0;E<=x;++E){var R=D[E];R<0?v[E]=S:v[E]=w[R]}var N=this.orient();if(N>0)return d;d.lastVisited=-M,N===0&&g.push(d)}}}return null},T.walk=function(k,S){var x=this.vertices.length-1,M=this.dimension,v=this.vertices,w=this.tuple,g=S?this.interior.length*Math.random()|0:this.interior.length-1,c=this.interior[g];e:for(;!c.boundary;){for(var A=c.vertices,d=c.adjacent,D=0;D<=M;++D)w[D]=v[A[D]];c.lastVisited=x;for(var D=0;D<=M;++D){var E=d[D];if(!(E.lastVisited>=x)){var R=w[D];w[D]=k;var N=this.orient();if(w[D]=R,N<0){c=E;continue e}else E.boundary?E.lastVisited=-x:E.lastVisited=x}}return}return c},T.addPeaks=function(k,S){var x=this.vertices.length-1,M=this.dimension,v=this.vertices,w=this.tuple,g=this.interior,c=this.simplices,A=[S];S.lastVisited=x,S.vertices[S.vertices.indexOf(-1)]=x,S.boundary=!1,g.push(S);for(var d=[];A.length>0;){var S=A.pop(),D=S.vertices,E=S.adjacent,R=D.indexOf(x);if(!(R<0)){for(var N=0;N<=M;++N)if(N!==R){var I=E[N];if(!(!I.boundary||I.lastVisited>=x)){var F=I.vertices;if(I.lastVisited!==-x){for(var L=0,P=0;P<=M;++P)F[P]<0?(L=P,w[P]=k):w[P]=v[F[P]];var O=this.orient();if(O>0){F[L]=x,I.boundary=!1,g.push(I),A.push(I),I.lastVisited=x;continue}else I.lastVisited=-x}var B=I.adjacent,X=D.slice(),$=E.slice(),ee=new s(X,$,!0);c.push(ee);var Y=B.indexOf(S);if(!(Y<0)){B[Y]=ee,$[R]=I,X[N]=-1,$[N]=S,E[N]=ee,ee.flip();for(var P=0;P<=M;++P){var q=X[P];if(!(q<0||q===x)){for(var Q=new Array(M-1),oe=0,Z=0;Z<=M;++Z){var se=X[Z];se<0||Z===P||(Q[oe++]=se)}d.push(new f(Q,ee,P))}}}}}}}d.sort(h);for(var N=0;N+1=0?g[A++]=c[D]:d=D&1;if(d===(k&1)){var E=g[0];g[0]=g[1],g[1]=E}S.push(g)}}return S};function m(k,S){var x=k.length;if(x===0)throw new Error("Must have at least d+1 points");var M=k[0].length;if(x<=M)throw new Error("Must input at least d+1 points");var v=k.slice(0,M+1),w=l.apply(void 0,v);if(w===0)throw new Error("Input not in general position");for(var g=new Array(M+1),c=0;c<=M;++c)g[c]=c;w<0&&(g[0]=1,g[1]=0);for(var A=new s(g,new Array(M+1),!1),d=A.adjacent,D=new Array(M+2),c=0;c<=M;++c){for(var E=g.slice(),R=0;R<=M;++R)R===c&&(E[R]=-1);var N=E[0];E[0]=E[1],E[1]=N;var I=new s(E,new Array(M+1),!0);d[c]=I,D[c]=I}D[M+1]=A;for(var c=0;c<=M;++c)for(var E=d[c].vertices,F=d[c].adjacent,R=0;R<=M;++R){var L=E[R];if(L<0){F[R]=A;continue}for(var P=0;P<=M;++P)d[P].vertices.indexOf(L)<0&&(F[R]=d[P])}for(var O=new b(M,v,D),B=!!S,c=M+1;c3*(D+1)?b(this,d):this.left.insert(d):this.left=w([d]);else if(d[0]>this.mid)this.right?4*(this.right.count+1)>3*(D+1)?b(this,d):this.right.insert(d):this.right=w([d]);else{var E=l.ge(this.leftPoints,d,M),R=l.ge(this.rightPoints,d,v);this.leftPoints.splice(E,0,d),this.rightPoints.splice(R,0,d)}},p.remove=function(d){var D=this.count-this.leftPoints;if(d[1]3*(D-1))return T(this,d);var R=this.left.remove(d);return R===f?(this.left=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else if(d[0]>this.mid){if(!this.right)return u;var N=this.left?this.left.count:0;if(4*N>3*(D-1))return T(this,d);var R=this.right.remove(d);return R===f?(this.right=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else{if(this.count===1)return this.leftPoints[0]===d?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===d){if(this.left&&this.right){for(var I=this,F=this.left;F.right;)I=F,F=F.right;if(I===this)F.right=this.right;else{var L=this.left,R=this.right;I.count-=F.count,I.right=F.left,F.left=L,F.right=R}_(this,F),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?_(this,this.left):_(this,this.right);return s}for(var L=l.ge(this.leftPoints,d,M);L=0&&d[R][1]>=D;--R){var N=E(d[R]);if(N)return N}}function S(d,D){for(var E=0;Ethis.mid){if(this.right){var E=this.right.queryPoint(d,D);if(E)return E}return k(this.rightPoints,d,D)}else return S(this.leftPoints,D)},p.queryInterval=function(d,D,E){if(dthis.mid&&this.right){var R=this.right.queryInterval(d,D,E);if(R)return R}return Dthis.mid?k(this.rightPoints,d,E):S(this.leftPoints,E)};function x(d,D){return d-D}function M(d,D){var E=d[0]-D[0];return E||d[1]-D[1]}function v(d,D){var E=d[1]-D[1];return E||d[0]-D[0]}function w(d){if(d.length===0)return null;for(var D=[],E=0;E>1],N=[],I=[],F=[],E=0;E13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},395:function(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o},2652:function(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),h=i(7608),p=i(5665),_={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},y=u(),b=u(),T=[0,0,0,0],m=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(w,g,c,A,d,D){if(g||(g=[0,0,0]),c||(c=[0,0,0]),A||(A=[0,0,0]),d||(d=[0,0,0,1]),D||(D=[0,0,0,1]),!l(y,w)||(s(b,y),b[3]=0,b[7]=0,b[11]=0,b[15]=1,Math.abs(f(b)<1e-8)))return!1;var E=y[3],R=y[7],N=y[11],I=y[12],F=y[13],L=y[14],P=y[15];if(E!==0||R!==0||N!==0){T[0]=E,T[1]=R,T[2]=N,T[3]=P;var O=h(b,b);if(!O)return!1;p(b,b),S(d,T,b)}else d[0]=d[1]=d[2]=0,d[3]=1;if(g[0]=I,g[1]=F,g[2]=L,x(m,y),c[0]=_.length(m[0]),_.normalize(m[0],m[0]),A[0]=_.dot(m[0],m[1]),M(m[1],m[1],m[0],1,-A[0]),c[1]=_.length(m[1]),_.normalize(m[1],m[1]),A[0]/=c[1],A[1]=_.dot(m[0],m[2]),M(m[2],m[2],m[0],1,-A[1]),A[2]=_.dot(m[1],m[2]),M(m[2],m[2],m[1],1,-A[2]),c[2]=_.length(m[2]),_.normalize(m[2],m[2]),A[1]/=c[2],A[2]/=c[2],_.cross(k,m[1],m[2]),_.dot(m[0],k)<0)for(var B=0;B<3;B++)c[B]*=-1,m[B][0]*=-1,m[B][1]*=-1,m[B][2]*=-1;return D[0]=.5*Math.sqrt(Math.max(1+m[0][0]-m[1][1]-m[2][2],0)),D[1]=.5*Math.sqrt(Math.max(1-m[0][0]+m[1][1]-m[2][2],0)),D[2]=.5*Math.sqrt(Math.max(1-m[0][0]-m[1][1]+m[2][2],0)),D[3]=.5*Math.sqrt(Math.max(1+m[0][0]+m[1][1]+m[2][2],0)),m[2][1]>m[1][2]&&(D[0]=-D[0]),m[0][2]>m[2][0]&&(D[1]=-D[1]),m[1][0]>m[0][1]&&(D[2]=-D[2]),!0};function S(v,w,g){var c=w[0],A=w[1],d=w[2],D=w[3];return v[0]=g[0]*c+g[4]*A+g[8]*d+g[12]*D,v[1]=g[1]*c+g[5]*A+g[9]*d+g[13]*D,v[2]=g[2]*c+g[6]*A+g[10]*d+g[14]*D,v[3]=g[3]*c+g[7]*A+g[11]*d+g[15]*D,v}function x(v,w){v[0][0]=w[0],v[0][1]=w[1],v[0][2]=w[2],v[1][0]=w[4],v[1][1]=w[5],v[1][2]=w[6],v[2][0]=w[8],v[2][1]=w[9],v[2][2]=w[10]}function M(v,w,g,c,A){v[0]=w[0]*c+g[0]*A,v[1]=w[1]*c+g[1]*A,v[2]=w[2]*c+g[2]*A}},4335:function(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}},7442:function(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),h=i(8648),p=T(),_=T(),y=T();a.exports=b;function b(S,x,M,v){if(f(x)===0||f(M)===0)return!1;var w=s(x,p.translate,p.scale,p.skew,p.perspective,p.quaternion),g=s(M,_.translate,_.scale,_.skew,_.perspective,_.quaternion);return!w||!g?!1:(l(y.translate,p.translate,_.translate,v),l(y.skew,p.skew,_.skew,v),l(y.scale,p.scale,_.scale,v),l(y.perspective,p.perspective,_.perspective,v),h(y.quaternion,p.quaternion,_.quaternion,v),u(S,y.translate,y.scale,y.skew,y.perspective,y.quaternion),!0)}function T(){return{translate:m(),scale:m(1),skew:m(),perspective:k(),quaternion:k()}}function m(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}},7182:function(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(h,p,_,y,b,T){return l.identity(h),l.fromRotationTranslation(h,T,p),h[3]=b[0],h[7]=b[1],h[11]=b[2],h[15]=b[3],l.identity(s),y[2]!==0&&(s[9]=y[2],l.multiply(h,h,s)),y[1]!==0&&(s[9]=0,s[8]=y[1],l.multiply(h,h,s)),y[0]!==0&&(s[8]=0,s[4]=y[0],l.multiply(h,h,s)),l.scale(h,h,_),h}},1811:function(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),h=i(2408),p=i(7089),_=i(6582),y=i(7656),b=i(2504),T=i(3536),m=[0,0,0];a.exports=M;function k(v){this._components=v.slice(),this._time=[0],this.prevMatrix=v.slice(),this.nextMatrix=v.slice(),this.computedMatrix=v.slice(),this.computedInverse=v.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var S=k.prototype;S.recalcMatrix=function(v){var w=this._time,g=l.le(w,v),c=this.computedMatrix;if(!(g<0)){var A=this._components;if(g===w.length-1)for(var d=16*g,D=0;D<16;++D)c[D]=A[d++];else{for(var E=w[g+1]-w[g],d=16*g,R=this.prevMatrix,N=!0,D=0;D<16;++D)R[D]=A[d++];for(var I=this.nextMatrix,D=0;D<16;++D)I[D]=A[d++],N=N&&R[D]===I[D];if(E<1e-6||N)for(var D=0;D<16;++D)c[D]=R[D];else u(c,R,I,(v-w[g])/E)}var F=this.computedUp;F[0]=c[1],F[1]=c[5],F[2]=c[9],T(F,F);var L=this.computedInverse;s(L,c);var P=this.computedEye,O=L[15];P[0]=L[12]/O,P[1]=L[13]/O,P[2]=L[14]/O;for(var B=this.computedCenter,X=Math.exp(this.computedRadius[0]),D=0;D<3;++D)B[D]=P[D]-c[2+4*D]*X}},S.idle=function(v){if(!(v1&&l(s[_[m-2]],s[_[m-1]],T)<=0;)m-=1,_.pop();for(_.push(b),m=y.length;m>1&&l(s[y[m-2]],s[y[m-1]],T)>=0;)m-=1,y.pop();y.push(b)}for(var k=new Array(y.length+_.length-2),S=0,h=0,x=_.length;h0;--M)k[S++]=y[M];return k}},351:function(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var h=0,p=0,_=0,y={shift:!1,alt:!1,control:!1,meta:!1},b=!1;function T(d){var D=!1;return"altKey"in d&&(D=D||d.altKey!==y.alt,y.alt=!!d.altKey),"shiftKey"in d&&(D=D||d.shiftKey!==y.shift,y.shift=!!d.shiftKey),"ctrlKey"in d&&(D=D||d.ctrlKey!==y.control,y.control=!!d.ctrlKey),"metaKey"in d&&(D=D||d.metaKey!==y.meta,y.meta=!!d.metaKey),D}function m(d,D){var E=l.x(D),R=l.y(D);"buttons"in D&&(d=D.buttons|0),(d!==h||E!==p||R!==_||T(D))&&(h=d|0,p=E||0,_=R||0,f&&f(h,p,_,y))}function k(d){m(0,d)}function S(){(h||p||_||y.shift||y.alt||y.meta||y.control)&&(p=_=0,h=0,y.shift=y.alt=y.control=y.meta=!1,f&&f(0,0,0,y))}function x(d){T(d)&&f&&f(h,p,_,y)}function M(d){l.buttons(d)===0?m(0,d):m(h,d)}function v(d){m(h|l.buttons(d),d)}function w(d){m(h&~l.buttons(d),d)}function g(){b||(b=!0,s.addEventListener("mousemove",M),s.addEventListener("mousedown",v),s.addEventListener("mouseup",w),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",x),s.addEventListener("keydown",x),s.addEventListener("keypress",x),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",x),window.addEventListener("keydown",x),window.addEventListener("keypress",x)))}function c(){b&&(b=!1,s.removeEventListener("mousemove",M),s.removeEventListener("mousedown",v),s.removeEventListener("mouseup",w),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",x),s.removeEventListener("keydown",x),s.removeEventListener("keypress",x),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",x),window.removeEventListener("keydown",x),window.removeEventListener("keypress",x)))}g();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return b},set:function(d){d?g():c()},enumerable:!0},buttons:{get:function(){return h},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return _},enumerable:!0},mods:{get:function(){return y},enumerable:!0}}),A}},24:function(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var h=u.clientX||0,p=u.clientY||0,_=l(s);return f[0]=h-_.left,f[1]=p-_.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},4687:function(a,o){"use strict";function i(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var h=f.which;if(h===2)return 4;if(h===3)return 2;if(h>0)return 1<=0)return 1<0){if($=1,q[oe++]=y(g[D],S,x,M),D+=O,v>0)for(X=1,E=g[D],Z=q[oe]=y(E,S,x,M),V=q[oe+se],ne=q[oe+re],ke=q[oe+ue],(Z!==V||Z!==ne||Z!==ke)&&(N=g[D+R],F=g[D+I],P=g[D+L],p(X,$,E,N,F,P,Z,V,ne,ke,S,x,M),Me=Q[oe]=ee++),oe+=1,D+=O,X=2;X0)for(X=1,E=g[D],Z=q[oe]=y(E,S,x,M),V=q[oe+se],ne=q[oe+re],ke=q[oe+ue],(Z!==V||Z!==ne||Z!==ke)&&(N=g[D+R],F=g[D+I],P=g[D+L],p(X,$,E,N,F,P,Z,V,ne,ke,S,x,M),Me=Q[oe]=ee++,ke!==ne&&_(Q[oe+re],Me,F,P,ne,ke,S,x,M)),oe+=1,D+=O,X=2;X0){if(X=1,q[oe++]=y(g[D],S,x,M),D+=O,w>0)for($=1,E=g[D],Z=q[oe]=y(E,S,x,M),ne=q[oe+re],V=q[oe+se],ke=q[oe+ue],(Z!==ne||Z!==V||Z!==ke)&&(N=g[D+R],F=g[D+I],P=g[D+L],p(X,$,E,N,F,P,Z,ne,V,ke,S,x,M),Me=Q[oe]=ee++),oe+=1,D+=O,$=2;$0)for($=1,E=g[D],Z=q[oe]=y(E,S,x,M),ne=q[oe+re],V=q[oe+se],ke=q[oe+ue],(Z!==ne||Z!==V||Z!==ke)&&(N=g[D+R],F=g[D+I],P=g[D+L],p(X,$,E,N,F,P,Z,ne,V,ke,S,x,M),Me=Q[oe]=ee++,ke!==ne&&_(Q[oe+re],Me,P,N,ke,ne,S,x,M)),oe+=1,D+=O,$=2;$ 0"),typeof h.vertex!="function"&&p("Must specify vertex creation function"),typeof h.cell!="function"&&p("Must specify cell creation function"),typeof h.phase!="function"&&p("Must specify phase function");for(var T=h.getters||[],m=new Array(y),k=0;k=0?m[k]=!0:m[k]=!1;return s(h.vertex,h.cell,h.phase,b,_,m)}},6199:function(a,o,i){"use strict";var l=i(1338),u={zero:function(M,v,w,g){var c=M[0],A=w[0];g|=0;var d=0,D=A;for(d=0;d2&&d[1]>2&&g(A.pick(-1,-1).lo(1,1).hi(d[0]-2,d[1]-2),c.pick(-1,-1,0).lo(1,1).hi(d[0]-2,d[1]-2),c.pick(-1,-1,1).lo(1,1).hi(d[0]-2,d[1]-2)),d[1]>2&&(w(A.pick(0,-1).lo(1).hi(d[1]-2),c.pick(0,-1,1).lo(1).hi(d[1]-2)),v(c.pick(0,-1,0).lo(1).hi(d[1]-2))),d[1]>2&&(w(A.pick(d[0]-1,-1).lo(1).hi(d[1]-2),c.pick(d[0]-1,-1,1).lo(1).hi(d[1]-2)),v(c.pick(d[0]-1,-1,0).lo(1).hi(d[1]-2))),d[0]>2&&(w(A.pick(-1,0).lo(1).hi(d[0]-2),c.pick(-1,0,0).lo(1).hi(d[0]-2)),v(c.pick(-1,0,1).lo(1).hi(d[0]-2))),d[0]>2&&(w(A.pick(-1,d[1]-1).lo(1).hi(d[0]-2),c.pick(-1,d[1]-1,0).lo(1).hi(d[0]-2)),v(c.pick(-1,d[1]-1,1).lo(1).hi(d[0]-2))),c.set(0,0,0,0),c.set(0,0,1,0),c.set(d[0]-1,0,0,0),c.set(d[0]-1,0,1,0),c.set(0,d[1]-1,0,0),c.set(0,d[1]-1,1,0),c.set(d[0]-1,d[1]-1,0,0),c.set(d[0]-1,d[1]-1,1,0),c}}function x(M){var v=M.join(),d=y[v];if(d)return d;for(var w=M.length,g=[T,m],c=1;c<=w;++c)g.push(k(c));var A=S,d=A.apply(void 0,g);return y[v]=d,d}a.exports=function(v,w,g){if(Array.isArray(g)||(typeof g=="string"?g=l(w.dimension,g):g=l(w.dimension,"clamp")),w.size===0)return v;if(w.dimension===0)return v.set(0),v;var c=x(g);return c(v,w)}},4317:function(a){"use strict";function o(f,h){var p=Math.floor(h),_=h-p,y=0<=p&&p0;){F<64?(v=F,F=0):(v=64,F-=64);for(var L=y[1]|0;L>0;){L<64?(w=L,L=0):(w=64,L-=64),m=N+F*c+L*A,x=I+F*D+L*E;var P=0,O=0,B=0,X=d,$=c-g*d,ee=A-v*c,Y=R,q=D-g*R,Q=E-v*D;for(B=0;B0;){E<64?(v=E,E=0):(v=64,E-=64);for(var R=y[0]|0;R>0;){R<64?(M=R,R=0):(M=64,R-=64),m=d+E*g+R*w,x=D+E*A+R*c;var N=0,I=0,F=g,L=w-v*g,P=A,O=c-v*A;for(I=0;I0;){I<64?(w=I,I=0):(w=64,I-=64);for(var F=y[0]|0;F>0;){F<64?(M=F,F=0):(M=64,F-=64);for(var L=y[1]|0;L>0;){L<64?(v=L,L=0):(v=64,L-=64),m=R+I*A+F*g+L*c,x=N+I*E+F*d+L*D;var P=0,O=0,B=0,X=A,$=g-w*A,ee=c-M*g,Y=E,q=d-w*E,Q=D-M*d;for(B=0;Bk;){P=0,O=N-v;r:for(F=0;FX)break r;O+=d,P+=D}for(P=N,O=N-v,F=0;F>1,L=F-R,P=F+R,O=N,B=L,X=F,$=P,ee=I,Y=S+1,q=x-1,Q=!0,oe,Z,se,j,V,re,H,ne,ue,ye=0,ke=0,Me=0,ge,Ee,Ce,Fe,ie,J,te,ae,ce,pe,ve,xe,me,de,_e,Ae,Ie=A,De=T(Ie),We=T(Ie);Ee=w*O,Ce=w*B,Ae=v;e:for(ge=0;ge0){Z=O,O=B,B=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*$,Ce=w*ee,Ae=v;e:for(ge=0;ge0){Z=$,$=ee,ee=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*O,Ce=w*X,Ae=v;e:for(ge=0;ge0){Z=O,O=X,X=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*B,Ce=w*X,Ae=v;e:for(ge=0;ge0){Z=B,B=X,X=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*O,Ce=w*$,Ae=v;e:for(ge=0;ge0){Z=O,O=$,$=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*X,Ce=w*$,Ae=v;e:for(ge=0;ge0){Z=X,X=$,$=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*B,Ce=w*ee,Ae=v;e:for(ge=0;ge0){Z=B,B=ee,ee=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*B,Ce=w*X,Ae=v;e:for(ge=0;ge0){Z=B,B=X,X=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*$,Ce=w*ee,Ae=v;e:for(ge=0;ge0){Z=$,$=ee,ee=Z;break e}if(Me<0)break e;Ae+=D}for(Ee=w*O,Ce=w*B,Fe=w*X,ie=w*$,J=w*ee,te=w*N,ae=w*F,ce=w*I,_e=0,Ae=v,ge=0;ge0)q--;else if(Me<0){for(Ee=w*re,Ce=w*Y,Fe=w*q,Ae=v,ge=0;ge0)for(;;){H=v+q*w,_e=0;e:for(ge=0;ge0){if(--qI){e:for(;;){for(H=v+Y*w,_e=0,Ae=v,ge=0;ge1&&k?x(m,k[0],k[1]):x(m)}var _={"uint32,1,0":function(b,T){return function(m){var k=m.data,S=m.offset|0,x=m.shape,M=m.stride,v=M[0]|0,w=x[0]|0,g=M[1]|0,c=x[1]|0,A=g,d=g,D=1;w<=32?b(0,w-1,k,S,v,g,w,c,A,d,D):T(0,w-1,k,S,v,g,w,c,A,d,D)}}};function y(b,T){var m=[T,b].join(","),k=_[m],S=f(b,T),x=p(b,T,S);return k(S,x)}a.exports=y},446:function(a,o,i){"use strict";var l=i(7640),u={};function s(f){var h=f.order,p=f.dtype,_=[h,p],y=_.join(":"),b=u[y];return b||(u[y]=b=l(h,p)),b(f),f}a.exports=s},9618:function(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(T,m){return T[0]-m[0]}function f(){var T=this.stride,m=new Array(T.length),k;for(k=0;k=0&&(g=v|0,w+=A*g,c-=g),new S(this.data,c,A,w)},x.step=function(v){var w=this.shape[0],g=this.stride[0],c=this.offset,A=0,d=Math.ceil;return typeof v=="number"&&(A=v|0,A<0?(c+=g*(w-1),w=d(-w/A)):w=d(w/A),g*=A),new S(this.data,w,g,c)},x.transpose=function(v){v=v===void 0?0:v|0;var w=this.shape,g=this.stride;return new S(this.data,w[v],g[v],this.offset)},x.pick=function(v){var w=[],g=[],c=this.offset;typeof v=="number"&&v>=0?c=c+this.stride[0]*v|0:(w.push(this.shape[0]),g.push(this.stride[0]));var A=m[w.length+1];return A(this.data,w,g,c)},function(v,w,g,c){return new S(v,w[0],g[0],c)}},2:function(T,m,k){function S(M,v,w,g,c,A){this.data=M,this.shape=[v,w],this.stride=[g,c],this.offset=A|0}var x=S.prototype;return x.dtype=T,x.dimension=2,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(x,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),x.set=function(v,w,g){return T==="generic"?this.data.set(this.offset+this.stride[0]*v+this.stride[1]*w,g):this.data[this.offset+this.stride[0]*v+this.stride[1]*w]=g},x.get=function(v,w){return T==="generic"?this.data.get(this.offset+this.stride[0]*v+this.stride[1]*w):this.data[this.offset+this.stride[0]*v+this.stride[1]*w]},x.index=function(v,w){return this.offset+this.stride[0]*v+this.stride[1]*w},x.hi=function(v,w){return new S(this.data,typeof v!="number"||v<0?this.shape[0]:v|0,typeof w!="number"||w<0?this.shape[1]:w|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(v,w){var g=this.offset,c=0,A=this.shape[0],d=this.shape[1],D=this.stride[0],E=this.stride[1];return typeof v=="number"&&v>=0&&(c=v|0,g+=D*c,A-=c),typeof w=="number"&&w>=0&&(c=w|0,g+=E*c,d-=c),new S(this.data,A,d,D,E,g)},x.step=function(v,w){var g=this.shape[0],c=this.shape[1],A=this.stride[0],d=this.stride[1],D=this.offset,E=0,R=Math.ceil;return typeof v=="number"&&(E=v|0,E<0?(D+=A*(g-1),g=R(-g/E)):g=R(g/E),A*=E),typeof w=="number"&&(E=w|0,E<0?(D+=d*(c-1),c=R(-c/E)):c=R(c/E),d*=E),new S(this.data,g,c,A,d,D)},x.transpose=function(v,w){v=v===void 0?0:v|0,w=w===void 0?1:w|0;var g=this.shape,c=this.stride;return new S(this.data,g[v],g[w],c[v],c[w],this.offset)},x.pick=function(v,w){var g=[],c=[],A=this.offset;typeof v=="number"&&v>=0?A=A+this.stride[0]*v|0:(g.push(this.shape[0]),c.push(this.stride[0])),typeof w=="number"&&w>=0?A=A+this.stride[1]*w|0:(g.push(this.shape[1]),c.push(this.stride[1]));var d=m[g.length+1];return d(this.data,g,c,A)},function(v,w,g,c){return new S(v,w[0],w[1],g[0],g[1],c)}},3:function(T,m,k){function S(M,v,w,g,c,A,d,D){this.data=M,this.shape=[v,w,g],this.stride=[c,A,d],this.offset=D|0}var x=S.prototype;return x.dtype=T,x.dimension=3,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(x,"order",{get:function(){var v=Math.abs(this.stride[0]),w=Math.abs(this.stride[1]),g=Math.abs(this.stride[2]);return v>w?w>g?[2,1,0]:v>g?[1,2,0]:[1,0,2]:v>g?[2,0,1]:g>w?[0,1,2]:[0,2,1]}}),x.set=function(v,w,g,c){return T==="generic"?this.data.set(this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g,c):this.data[this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g]=c},x.get=function(v,w,g){return T==="generic"?this.data.get(this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g):this.data[this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g]},x.index=function(v,w,g){return this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g},x.hi=function(v,w,g){return new S(this.data,typeof v!="number"||v<0?this.shape[0]:v|0,typeof w!="number"||w<0?this.shape[1]:w|0,typeof g!="number"||g<0?this.shape[2]:g|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},x.lo=function(v,w,g){var c=this.offset,A=0,d=this.shape[0],D=this.shape[1],E=this.shape[2],R=this.stride[0],N=this.stride[1],I=this.stride[2];return typeof v=="number"&&v>=0&&(A=v|0,c+=R*A,d-=A),typeof w=="number"&&w>=0&&(A=w|0,c+=N*A,D-=A),typeof g=="number"&&g>=0&&(A=g|0,c+=I*A,E-=A),new S(this.data,d,D,E,R,N,I,c)},x.step=function(v,w,g){var c=this.shape[0],A=this.shape[1],d=this.shape[2],D=this.stride[0],E=this.stride[1],R=this.stride[2],N=this.offset,I=0,F=Math.ceil;return typeof v=="number"&&(I=v|0,I<0?(N+=D*(c-1),c=F(-c/I)):c=F(c/I),D*=I),typeof w=="number"&&(I=w|0,I<0?(N+=E*(A-1),A=F(-A/I)):A=F(A/I),E*=I),typeof g=="number"&&(I=g|0,I<0?(N+=R*(d-1),d=F(-d/I)):d=F(d/I),R*=I),new S(this.data,c,A,d,D,E,R,N)},x.transpose=function(v,w,g){v=v===void 0?0:v|0,w=w===void 0?1:w|0,g=g===void 0?2:g|0;var c=this.shape,A=this.stride;return new S(this.data,c[v],c[w],c[g],A[v],A[w],A[g],this.offset)},x.pick=function(v,w,g){var c=[],A=[],d=this.offset;typeof v=="number"&&v>=0?d=d+this.stride[0]*v|0:(c.push(this.shape[0]),A.push(this.stride[0])),typeof w=="number"&&w>=0?d=d+this.stride[1]*w|0:(c.push(this.shape[1]),A.push(this.stride[1])),typeof g=="number"&&g>=0?d=d+this.stride[2]*g|0:(c.push(this.shape[2]),A.push(this.stride[2]));var D=m[c.length+1];return D(this.data,c,A,d)},function(v,w,g,c){return new S(v,w[0],w[1],w[2],g[0],g[1],g[2],c)}},4:function(T,m,k){function S(M,v,w,g,c,A,d,D,E,R){this.data=M,this.shape=[v,w,g,c],this.stride=[A,d,D,E],this.offset=R|0}var x=S.prototype;return x.dtype=T,x.dimension=4,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(x,"order",{get:k}),x.set=function(v,w,g,c,A){return T==="generic"?this.data.set(this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c,A):this.data[this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c]=A},x.get=function(v,w,g,c){return T==="generic"?this.data.get(this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c):this.data[this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c]},x.index=function(v,w,g,c){return this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c},x.hi=function(v,w,g,c){return new S(this.data,typeof v!="number"||v<0?this.shape[0]:v|0,typeof w!="number"||w<0?this.shape[1]:w|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof c!="number"||c<0?this.shape[3]:c|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},x.lo=function(v,w,g,c){var A=this.offset,d=0,D=this.shape[0],E=this.shape[1],R=this.shape[2],N=this.shape[3],I=this.stride[0],F=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof v=="number"&&v>=0&&(d=v|0,A+=I*d,D-=d),typeof w=="number"&&w>=0&&(d=w|0,A+=F*d,E-=d),typeof g=="number"&&g>=0&&(d=g|0,A+=L*d,R-=d),typeof c=="number"&&c>=0&&(d=c|0,A+=P*d,N-=d),new S(this.data,D,E,R,N,I,F,L,P,A)},x.step=function(v,w,g,c){var A=this.shape[0],d=this.shape[1],D=this.shape[2],E=this.shape[3],R=this.stride[0],N=this.stride[1],I=this.stride[2],F=this.stride[3],L=this.offset,P=0,O=Math.ceil;return typeof v=="number"&&(P=v|0,P<0?(L+=R*(A-1),A=O(-A/P)):A=O(A/P),R*=P),typeof w=="number"&&(P=w|0,P<0?(L+=N*(d-1),d=O(-d/P)):d=O(d/P),N*=P),typeof g=="number"&&(P=g|0,P<0?(L+=I*(D-1),D=O(-D/P)):D=O(D/P),I*=P),typeof c=="number"&&(P=c|0,P<0?(L+=F*(E-1),E=O(-E/P)):E=O(E/P),F*=P),new S(this.data,A,d,D,E,R,N,I,F,L)},x.transpose=function(v,w,g,c){v=v===void 0?0:v|0,w=w===void 0?1:w|0,g=g===void 0?2:g|0,c=c===void 0?3:c|0;var A=this.shape,d=this.stride;return new S(this.data,A[v],A[w],A[g],A[c],d[v],d[w],d[g],d[c],this.offset)},x.pick=function(v,w,g,c){var A=[],d=[],D=this.offset;typeof v=="number"&&v>=0?D=D+this.stride[0]*v|0:(A.push(this.shape[0]),d.push(this.stride[0])),typeof w=="number"&&w>=0?D=D+this.stride[1]*w|0:(A.push(this.shape[1]),d.push(this.stride[1])),typeof g=="number"&&g>=0?D=D+this.stride[2]*g|0:(A.push(this.shape[2]),d.push(this.stride[2])),typeof c=="number"&&c>=0?D=D+this.stride[3]*c|0:(A.push(this.shape[3]),d.push(this.stride[3]));var E=m[A.length+1];return E(this.data,A,d,D)},function(v,w,g,c){return new S(v,w[0],w[1],w[2],w[3],g[0],g[1],g[2],g[3],c)}},5:function(m,k,S){function x(v,w,g,c,A,d,D,E,R,N,I,F){this.data=v,this.shape=[w,g,c,A,d],this.stride=[D,E,R,N,I],this.offset=F|0}var M=x.prototype;return M.dtype=m,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:S}),M.set=function(w,g,c,A,d,D){return m==="generic"?this.data.set(this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d,D):this.data[this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d]=D},M.get=function(w,g,c,A,d){return m==="generic"?this.data.get(this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d):this.data[this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d]},M.index=function(w,g,c,A,d){return this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d},M.hi=function(w,g,c,A,d){return new x(this.data,typeof w!="number"||w<0?this.shape[0]:w|0,typeof g!="number"||g<0?this.shape[1]:g|0,typeof c!="number"||c<0?this.shape[2]:c|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof d!="number"||d<0?this.shape[4]:d|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(w,g,c,A,d){var D=this.offset,E=0,R=this.shape[0],N=this.shape[1],I=this.shape[2],F=this.shape[3],L=this.shape[4],P=this.stride[0],O=this.stride[1],B=this.stride[2],X=this.stride[3],$=this.stride[4];return typeof w=="number"&&w>=0&&(E=w|0,D+=P*E,R-=E),typeof g=="number"&&g>=0&&(E=g|0,D+=O*E,N-=E),typeof c=="number"&&c>=0&&(E=c|0,D+=B*E,I-=E),typeof A=="number"&&A>=0&&(E=A|0,D+=X*E,F-=E),typeof d=="number"&&d>=0&&(E=d|0,D+=$*E,L-=E),new x(this.data,R,N,I,F,L,P,O,B,X,$,D)},M.step=function(w,g,c,A,d){var D=this.shape[0],E=this.shape[1],R=this.shape[2],N=this.shape[3],I=this.shape[4],F=this.stride[0],L=this.stride[1],P=this.stride[2],O=this.stride[3],B=this.stride[4],X=this.offset,$=0,ee=Math.ceil;return typeof w=="number"&&($=w|0,$<0?(X+=F*(D-1),D=ee(-D/$)):D=ee(D/$),F*=$),typeof g=="number"&&($=g|0,$<0?(X+=L*(E-1),E=ee(-E/$)):E=ee(E/$),L*=$),typeof c=="number"&&($=c|0,$<0?(X+=P*(R-1),R=ee(-R/$)):R=ee(R/$),P*=$),typeof A=="number"&&($=A|0,$<0?(X+=O*(N-1),N=ee(-N/$)):N=ee(N/$),O*=$),typeof d=="number"&&($=d|0,$<0?(X+=B*(I-1),I=ee(-I/$)):I=ee(I/$),B*=$),new x(this.data,D,E,R,N,I,F,L,P,O,B,X)},M.transpose=function(w,g,c,A,d){w=w===void 0?0:w|0,g=g===void 0?1:g|0,c=c===void 0?2:c|0,A=A===void 0?3:A|0,d=d===void 0?4:d|0;var D=this.shape,E=this.stride;return new x(this.data,D[w],D[g],D[c],D[A],D[d],E[w],E[g],E[c],E[A],E[d],this.offset)},M.pick=function(w,g,c,A,d){var D=[],E=[],R=this.offset;typeof w=="number"&&w>=0?R=R+this.stride[0]*w|0:(D.push(this.shape[0]),E.push(this.stride[0])),typeof g=="number"&&g>=0?R=R+this.stride[1]*g|0:(D.push(this.shape[1]),E.push(this.stride[1])),typeof c=="number"&&c>=0?R=R+this.stride[2]*c|0:(D.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?R=R+this.stride[3]*A|0:(D.push(this.shape[3]),E.push(this.stride[3])),typeof d=="number"&&d>=0?R=R+this.stride[4]*d|0:(D.push(this.shape[4]),E.push(this.stride[4]));var N=k[D.length+1];return N(this.data,D,E,R)},function(w,g,c,A){return new x(w,g[0],g[1],g[2],g[3],g[4],c[0],c[1],c[2],c[3],c[4],A)}}};function p(T,m){var k=m===-1?"T":String(m),S=h[k];return m===-1?S(T):m===0?S(T,y[T][0]):S(T,y[T],f)}function _(T){if(l(T))return"buffer";if(u)switch(Object.prototype.toString.call(T)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(T)?"array":"generic"}var y={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function b(T,m,k,S){if(T===void 0){var c=y.array[0];return c([])}else typeof T=="number"&&(T=[T]);m===void 0&&(m=[T.length]);var x=m.length;if(k===void 0){k=new Array(x);for(var M=x-1,v=1;M>=0;--M)k[M]=v,v*=m[M]}if(S===void 0){S=0;for(var M=0;M>>0;a.exports=f;function f(h,p){if(isNaN(h)||isNaN(p))return NaN;if(h===p)return h;if(h===0)return p<0?-u:u;var _=l.hi(h),y=l.lo(h);return p>h==h>0?y===s?(_+=1,y=0):y+=1:y===0?(y=s,_-=1):y-=1,l.pack(y,_)}},8406:function(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var h=s.length,p=new Array(h),_=f===void 0?i:f,y=0;y_)for(var D=p[m],E=1/Math.sqrt(g*A),d=0;d<3;++d){var R=(d+1)%3,N=(d+2)%3;D[d]+=E*(c[R]*w[N]-c[N]*w[R])}}for(var y=0;y_)for(var E=1/Math.sqrt(I),d=0;d<3;++d)D[d]*=E;else for(var d=0;d<3;++d)D[d]=0}return p},o.faceNormals=function(u,s,f){for(var h=u.length,p=new Array(h),_=f===void 0?l:f,y=0;y_?M=1/Math.sqrt(M):M=0;for(var m=0;m<3;++m)x[m]*=M;p[y]=x}return p}},4081:function(a){"use strict";a.exports=o;function o(i,l,u,s,f,h,p,_,y,b){var T=l+h+b;if(m>0){var m=Math.sqrt(T+1);i[0]=.5*(p-y)/m,i[1]=.5*(_-s)/m,i[2]=.5*(u-h)/m,i[3]=.5*m}else{var k=Math.max(l,h,b),m=Math.sqrt(2*k-T+1);l>=k?(i[0]=.5*m,i[1]=.5*(f+u)/m,i[2]=.5*(_+s)/m,i[3]=.5*(p-y)/m):h>=k?(i[0]=.5*(u+f)/m,i[1]=.5*m,i[2]=.5*(y+p)/m,i[3]=.5*(_-s)/m):(i[0]=.5*(s+_)/m,i[1]=.5*(p+y)/m,i[2]=.5*m,i[3]=.5*(u-f)/m)}return i}},9977:function(a,o,i){"use strict";a.exports=m;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),h=i(4081);function p(k,S,x){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2))}function _(k,S,x,M){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2)+Math.pow(M,2))}function y(k,S){var x=S[0],M=S[1],v=S[2],w=S[3],g=_(x,M,v,w);g>1e-6?(k[0]=x/g,k[1]=M/g,k[2]=v/g,k[3]=w/g):(k[0]=k[1]=k[2]=0,k[3]=1)}function b(k,S,x){this.radius=l([x]),this.center=l(S),this.rotation=l(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var T=b.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;y(S,S);var x=this.computedMatrix;s(x,S);var M=this.computedCenter,v=this.computedEye,w=this.computedUp,g=Math.exp(this.computedRadius[0]);v[0]=M[0]+g*x[2],v[1]=M[1]+g*x[6],v[2]=M[2]+g*x[10],w[0]=x[1],w[1]=x[5],w[2]=x[9];for(var c=0;c<3;++c){for(var A=0,d=0;d<3;++d)A+=x[c+4*d]*v[d];x[12+c]=-A}},T.getMatrix=function(k,S){this.recalcMatrix(k);var x=this.computedMatrix;if(S){for(var M=0;M<16;++M)S[M]=x[M];return S}return x},T.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},T.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},T.pan=function(k,S,x,M){S=S||0,x=x||0,M=M||0,this.recalcMatrix(k);var v=this.computedMatrix,w=v[1],g=v[5],c=v[9],A=p(w,g,c);w/=A,g/=A,c/=A;var d=v[0],D=v[4],E=v[8],R=d*w+D*g+E*c;d-=w*R,D-=g*R,E-=c*R;var N=p(d,D,E);d/=N,D/=N,E/=N;var I=v[2],F=v[6],L=v[10],P=I*w+F*g+L*c,O=I*d+F*D+L*E;I-=P*w+O*d,F-=P*g+O*D,L-=P*c+O*E;var B=p(I,F,L);I/=B,F/=B,L/=B;var X=d*S+w*x,$=D*S+g*x,ee=E*S+c*x;this.center.move(k,X,$,ee);var Y=Math.exp(this.computedRadius[0]);Y=Math.max(1e-4,Y+M),this.radius.set(k,Math.log(Y))},T.rotate=function(k,S,x,M){this.recalcMatrix(k),S=S||0,x=x||0;var v=this.computedMatrix,w=v[0],g=v[4],c=v[8],A=v[1],d=v[5],D=v[9],E=v[2],R=v[6],N=v[10],I=S*w+x*A,F=S*g+x*d,L=S*c+x*D,P=-(R*L-N*F),O=-(N*I-E*L),B=-(E*F-R*I),X=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(O,2)-Math.pow(B,2))),$=_(P,O,B,X);$>1e-6?(P/=$,O/=$,B/=$,X/=$):(P=O=B=0,X=1);var ee=this.computedRotation,Y=ee[0],q=ee[1],Q=ee[2],oe=ee[3],Z=Y*X+oe*P+q*B-Q*O,se=q*X+oe*O+Q*P-Y*B,j=Q*X+oe*B+Y*O-q*P,V=oe*X-Y*P-q*O-Q*B;if(M){P=E,O=R,B=N;var re=Math.sin(M)/p(P,O,B);P*=re,O*=re,B*=re,X=Math.cos(S),Z=Z*X+V*P+se*B-j*O,se=se*X+V*O+j*P-Z*B,j=j*X+V*B+Z*O-se*P,V=V*X-Z*P-se*O-j*B}var H=_(Z,se,j,V);H>1e-6?(Z/=H,se/=H,j/=H,V/=H):(Z=se=j=0,V=1),this.rotation.set(k,Z,se,j,V)},T.lookAt=function(k,S,x,M){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var v=this.computedMatrix;u(v,S,x,M);var w=this.computedRotation;h(w,v[0],v[1],v[2],v[4],v[5],v[6],v[8],v[9],v[10]),y(w,w),this.rotation.set(k,w[0],w[1],w[2],w[3]);for(var g=0,c=0;c<3;++c)g+=Math.pow(x[c]-S[c],2);this.radius.set(k,.5*Math.log(Math.max(g,1e-6))),this.center.set(k,x[0],x[1],x[2])},T.translate=function(k,S,x,M){this.center.move(k,S||0,x||0,M||0)},T.setMatrix=function(k,S){var x=this.computedRotation;h(x,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),y(x,x),this.rotation.set(k,x[0],x[1],x[2],x[3]);var M=this.computedMatrix;f(M,S);var v=M[15];if(Math.abs(v)>1e-6){var w=M[12]/v,g=M[13]/v,c=M[14]/v;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,w-M[2]*A,g-M[6]*A,c-M[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},T.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},T.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},T.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},T.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},T.fromJSON=function(k){var S=this.lastT(),x=k.center;x&&this.center.set(S,x[0],x[1],x[2]);var M=k.rotation;M&&this.rotation.set(S,M[0],M[1],M[2],M[3]);var v=k.distance;v&&v>0&&this.radius.set(S,Math.log(v)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function m(k){k=k||{};var S=k.center||[0,0,0],x=k.rotation||[0,0,0,1],M=k.radius||1;S=[].slice.call(S,0,3),x=[].slice.call(x,0,4),y(x,x);var v=new b(x,S,Math.log(M));return v.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&v.lookAt(0,k.eye,k.center,k.up),v}},1371:function(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,h){return h=typeof h!="undefined"?h+"":" ",l(h,f)+s}},3202:function(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}},3088:function(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var h=f.length|0,p=s.length,_=[new Array(h),new Array(h)],y=0;y0){D=_[N][A][0],R=N;break}E=D[R^1];for(var I=0;I<2;++I)for(var F=_[I][A],L=0;L0&&(D=P,E=O,R=I)}return d||D&&m(D,R),E}function S(c,A){var d=_[A][c][0],D=[c];m(d,A);for(var E=d[A^1],R=A;;){for(;E!==c;)D.push(E),E=k(D[D.length-2],E,!1);if(_[0][c].length+_[1][c].length===0)break;var N=D[D.length-1],I=c,F=D[1],L=k(N,I,!0);if(l(f[N],f[I],f[F],f[L])<0)break;D.push(c),E=k(N,I)}return D}function x(c,A){return A[1]===A[A.length-1]}for(var y=0;y0;){var w=_[0][y].length,g=S(y,M);x(v,g)?v.push.apply(v,g):(v.length>0&&T.push(v),v=g)}v.length>0&&T.push(v)}return T}},5609:function(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var h=l(s,f.length),p=new Array(f.length),_=new Array(f.length),y=[],b=0;b0;){var m=y.pop();p[m]=!1;for(var k=h[m],b=0;b0}w=w.filter(g);for(var c=w.length,A=new Array(c),d=new Array(c),v=0;v0;){var H=j.pop(),ne=$[H];p(ne,function(ge,Ee){return ge-Ee});var ue=ne.length,ye=V[H],ke;if(ye===0){var F=w[H];ke=[F]}for(var v=0;v=0)&&(V[Me]=ye^1,j.push(Me),ye===0)){var F=w[Me];se(F)||(F.reverse(),ke.push(F))}}ye===0&&re.push(ke)}return re}},5085:function(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function h(){return!0}function p(S){return function(x,M){var v=S[x];return v?!!v.queryPoint(M,h):!1}}function _(S){for(var x={},M=0;M0&&x[v]===M[0])w=S[v-1];else return 1;for(var g=1;w;){var c=w.key,A=l(M,c[0],c[1]);if(c[0][0]0)g=-1,w=w.right;else return 0;else if(A>0)w=w.left;else if(A<0)g=1,w=w.right;else return 0}return g}}function b(S){return 1}function T(S){return function(M){return S(M[0],M[1])?0:1}}function m(S,x){return function(v){return S(v[0],v[1])?0:x(v)}}function k(S){for(var x=S.length,M=[],v=[],w=0,g=0;g=b?(c=1,d=b+2*k+x):(c=-k/b,d=k*c+x)):(c=0,S>=0?(A=0,d=x):-S>=m?(A=1,d=m+2*S+x):(A=-S/m,d=S*A+x));else if(A<0)A=0,k>=0?(c=0,d=x):-k>=b?(c=1,d=b+2*k+x):(c=-k/b,d=k*c+x);else{var D=1/g;c*=D,A*=D,d=c*(b*c+T*A+2*k)+A*(T*c+m*A+2*S)+x}else{var E,R,N,I;c<0?(E=T+k,R=m+S,R>E?(N=R-E,I=b-2*T+m,N>=I?(c=1,A=0,d=b+2*k+x):(c=N/I,A=1-c,d=c*(b*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)):(c=0,R<=0?(A=1,d=m+2*S+x):S>=0?(A=0,d=x):(A=-S/m,d=S*A+x))):A<0?(E=T+S,R=b+k,R>E?(N=R-E,I=b-2*T+m,N>=I?(A=1,c=0,d=m+2*S+x):(A=N/I,c=1-A,d=c*(b*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)):(A=0,R<=0?(c=1,d=b+2*k+x):k>=0?(c=0,d=x):(c=-k/b,d=k*c+x))):(N=m+S-T-k,N<=0?(c=0,A=1,d=m+2*S+x):(I=b-2*T+m,N>=I?(c=1,A=0,d=b+2*k+x):(c=N/I,A=1-c,d=c*(b*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)))}for(var F=1-c-A,y=0;y0){var m=h[_-1];if(l(b,m)===0&&s(m)!==T){_-=1;continue}}h[_++]=b}}return h.length=_,h}},3233:function(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}},3025:function(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var h=u,p=i[f];u=h+p;var _=u-h,y=p-_;y&&(i[--s]=u,u=y)}for(var b=0,f=s;f0){if(R<=0)return N;I=E+R}else if(E<0){if(R>=0)return N;I=-(E+R)}else return N;var F=_*I;return N>=F||N<=-F?N:S(A,d,D)},function(A,d,D,E){var R=A[0]-E[0],N=d[0]-E[0],I=D[0]-E[0],F=A[1]-E[1],L=d[1]-E[1],P=D[1]-E[1],O=A[2]-E[2],B=d[2]-E[2],X=D[2]-E[2],$=N*P,ee=I*L,Y=I*F,q=R*P,Q=R*L,oe=N*F,Z=O*($-ee)+B*(Y-q)+X*(Q-oe),se=(Math.abs($)+Math.abs(ee))*Math.abs(O)+(Math.abs(Y)+Math.abs(q))*Math.abs(B)+(Math.abs(Q)+Math.abs(oe))*Math.abs(X),j=y*se;return Z>j||-Z>j?Z:x(A,d,D,E)}];function v(c){var A=M[c.length];return A||(A=M[c.length]=k(c.length)),A.apply(void 0,c)}function w(c,A,d,D,E,R,N){return function(F,L,P,O,B){switch(arguments.length){case 0:case 1:return 0;case 2:return D(F,L);case 3:return E(F,L,P);case 4:return R(F,L,P,O);case 5:return N(F,L,P,O,B)}for(var X=new Array(arguments.length),$=0;$0&&b>0||y<0&&b<0)return!1;var T=l(p,f,h),m=l(_,f,h);return T>0&&m>0||T<0&&m<0?!1:y===0&&b===0&&T===0&&m===0?u(f,h,p,_):!0}},8545:function(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,h=s-f,p=u-f,_=l-h,y=_+p;return y?[y,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var h=s+f,p=new Array(h),_=0,y=0,b=0,T=Math.abs,m=l[y],k=T(m),S=-u[b],x=T(S),M,v;k=f?(M=m,y+=1,y=f?(M=m,y+=1,y>1,S=h[2*k+1];if(S===b)return k;b>1,S=h[2*k+1];if(S===b)return k;b>1,S=h[2*k+1];if(S===b)return k;b>1,S=h[2*k+1];if(S===b)return k;b>1,I=_(A[N],d);I<=0?(I===0&&(R=N),D=N+1):I>0&&(E=N-1)}return R}l=m;function k(A,d){for(var D=new Array(A.length),E=0,R=D.length;E=A.length||_(A[$],N)!==0););}return D}l=k;function S(A,d){if(!d)return k(T(M(A,0)),A,0);for(var D=new Array(d),E=0;E>>P&1&&L.push(R[P]);d.push(L)}return b(d)}l=x;function M(A,d){if(d<0)return[];for(var D=[],E=(1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,h=(s>255)<<3,s>>>=h,f|=h,h=(s>15)<<2,s>>>=h,f|=h,h=(s>3)<<1,s>>>=h,f|=h,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var h=f,p=f,_=7;for(h>>>=1;h;h>>>=1)p<<=1,p|=h&1,--_;s[f]=p<<_&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,h){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,h&=1023,h=(h|h<<16)&4278190335,h=(h|h<<8)&251719695,h=(h|h<<4)&3272356035,h=(h|h<<2)&1227133513,s|h<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},2014:function(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(c){for(var A=0,d=Math.max,D=0,E=c.length;D>1,N=p(c[R],A);N<=0?(N===0&&(E=R),d=R+1):N>0&&(D=R-1)}return E}o.findCell=T;function m(c,A){for(var d=new Array(c.length),D=0,E=d.length;D=c.length||p(c[X],R)!==0););}return d}o.incidence=m;function k(c,A){if(!A)return m(b(x(c,0)),c,0);for(var d=new Array(A),D=0;D>>L&1&&F.push(E[L]);A.push(F)}return y(A)}o.explode=S;function x(c,A){if(A<0)return[];for(var d=[],D=(1<>1:(q>>1)-1}function D(q){for(var Q=A(q);;){var oe=Q,Z=2*q+1,se=2*(q+1),j=q;if(Z0;){var oe=d(q);if(oe>=0){var Z=A(oe);if(Q0){var q=F[0];return c(0,O-1),O-=1,D(0),q}return-1}function N(q,Q){var oe=F[q];return k[oe]===Q?q:(k[oe]=-1/0,E(q),R(),k[oe]=Q,O+=1,E(O-1))}function I(q){if(!S[q]){S[q]=!0;var Q=T[q],oe=m[q];T[oe]>=0&&(T[oe]=Q),m[Q]>=0&&(m[Q]=oe),L[Q]>=0&&N(L[Q],g(Q)),L[oe]>=0&&N(L[oe],g(oe))}}for(var F=[],L=new Array(y),x=0;x>1;x>=0;--x)D(x);for(;;){var B=R();if(B<0||k[B]>_)break;I(B)}for(var X=[],x=0;x=0&&oe>=0&&Q!==oe){var Z=L[Q],se=L[oe];Z!==se&&Y.push([Z,se])}}),u.unique(u.normalize(Y)),{positions:X,edges:Y}}},1303:function(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,h){var p,_;if(h[0][0]h[1][0])p=h[1],_=h[0];else{var y=Math.min(f[0][1],f[1][1]),b=Math.max(f[0][1],f[1][1]),T=Math.min(h[0][1],h[1][1]),m=Math.max(h[0][1],h[1][1]);return bm?y-m:b-m}var k,S;f[0][1]h[1][0])p=h[1],_=h[0];else return u(h,f);var y,b;if(f[0][0]f[1][0])y=f[1],b=f[0];else return-u(f,h);var T=l(p,_,b),m=l(p,_,y);if(T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;if(T=l(b,y,_),m=l(b,y,p),T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;return _[0]-b[0]}},4209:function(a,o,i){"use strict";a.exports=m;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function h(k,S,x){this.slabs=k,this.coordinates=S,this.horizontal=x}var p=h.prototype;function _(k,S){return k.y-S}function y(k,S){for(var x=null;k;){var M=k.key,v,w;M[0][0]0)if(S[0]!==M[1][0])x=k,k=k.right;else{var c=y(k.right,S);if(c)return c;k=k.left}else{if(S[0]!==M[1][0])return k;var c=y(k.right,S);if(c)return c;k=k.left}}return x}p.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var x=this.slabs[S],M=y(this.slabs[S],k),v=-1;if(M&&(v=M.value),this.coordinates[S]===k[0]){var w=null;if(M&&(w=M.key),S>0){var g=y(this.slabs[S-1],k);g&&(w?f(g.key,w)>0&&(w=g.key,v=g.value):(v=g.value,w=g.key))}var c=this.horizontal[S];if(c.length>0){var A=l.ge(c,k[1],_);if(A=c.length)return v;d=c[A]}}if(d.start)if(w){var D=s(w[0],w[1],[k[0],d.y]);w[0][0]>w[1][0]&&(D=-D),D>0&&(v=d.index)}else v=d.index;else d.y!==k[1]&&(v=d.index)}}}return v};function b(k,S,x,M){this.y=k,this.index=S,this.start=x,this.closed=M}function T(k,S,x,M){this.x=k,this.segment=S,this.create=x,this.index=M}function m(k){for(var S=k.length,x=2*S,M=new Array(x),v=0;v1&&(S=1);for(var x=1-S,M=y.length,v=new Array(M),w=0;w0||k>0&&v<0){var w=f(S,v,x,k);T.push(w),m.push(w.slice())}v<0?m.push(x.slice()):v>0?T.push(x.slice()):(T.push(x.slice()),m.push(x.slice())),k=v}return{positive:T,negative:m}}function p(y,b){for(var T=[],m=s(y[y.length-1],b),k=y[y.length-1],S=y[0],x=0;x0||m>0&&M<0)&&T.push(f(k,M,S,m)),M>=0&&T.push(S.slice()),m=M}return T}function _(y,b){for(var T=[],m=s(y[y.length-1],b),k=y[y.length-1],S=y[0],x=0;x0||m>0&&M<0)&&T.push(f(k,M,S,m)),M<=0&&T.push(S.slice()),m=M}return T}},3387:function(a,o,i){var l;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function s(y){return h(_(y),arguments)}function f(y,b){return s.apply(null,[y].concat(b||[]))}function h(y,b){var T=1,m=y.length,k,S="",x,M,v,w,g,c,A,d;for(x=0;x=0),v.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,v.width?parseInt(v.width):0);break;case"e":k=v.precision?parseFloat(k).toExponential(v.precision):parseFloat(k).toExponential();break;case"f":k=v.precision?parseFloat(k).toFixed(v.precision):parseFloat(k);break;case"g":k=v.precision?String(Number(k.toPrecision(v.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=v.precision?k.substring(0,v.precision):k;break;case"t":k=String(!!k),k=v.precision?k.substring(0,v.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=v.precision?k.substring(0,v.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=v.precision?k.substring(0,v.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(v.type)?S+=k:(u.number.test(v.type)&&(!A||v.sign)?(d=A?"+":"-",k=k.toString().replace(u.sign,"")):d="",g=v.pad_char?v.pad_char==="0"?"0":v.pad_char.charAt(1):" ",c=v.width-(d+k).length,w=v.width&&c>0?g.repeat(c):"",S+=v.align?d+k+w:g==="0"?d+w+k:w+d+k)}return S}var p=Object.create(null);function _(y){if(p[y])return p[y];for(var b=y,T,m=[],k=0;b;){if((T=u.text.exec(b))!==null)m.push(T[0]);else if((T=u.modulo.exec(b))!==null)m.push("%");else if((T=u.placeholder.exec(b))!==null){if(T[2]){k|=1;var S=[],x=T[2],M=[];if((M=u.key.exec(x))!==null)for(S.push(M[1]);(x=x.substring(M[0].length))!=="";)if((M=u.key_access.exec(x))!==null)S.push(M[1]);else if((M=u.index_access.exec(x))!==null)S.push(M[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");T[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:T[0],param_no:T[1],keys:T[2],sign:T[3],pad_char:T[4],align:T[5],width:T[6],precision:T[7],type:T[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");b=b.substring(T[0].length)}return p[y]=m}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=function(){return{sprintf:s,vsprintf:f}}.call(o,i,o,a),l!==void 0&&(a.exports=l))})()},3711:function(a,o,i){"use strict";a.exports=_;var l=i(2640),u=i(781),s={"2d":function(y,b,T){var m=y({order:b,scalarArguments:3,getters:T==="generic"?[0]:void 0,phase:function(S,x,M,v){return S>v|0},vertex:function(S,x,M,v,w,g,c,A,d,D,E,R,N){var I=(c<<0)+(A<<1)+(d<<2)+(D<<3)|0;if(!(I===0||I===15))switch(I){case 0:E.push([S-.5,x-.5]);break;case 1:E.push([S-.25-.25*(v+M-2*N)/(M-v),x-.25-.25*(w+M-2*N)/(M-w)]);break;case 2:E.push([S-.75-.25*(-v-M+2*N)/(v-M),x-.25-.25*(g+v-2*N)/(v-g)]);break;case 3:E.push([S-.5,x-.5-.5*(w+M+g+v-4*N)/(M-w+v-g)]);break;case 4:E.push([S-.25-.25*(g+w-2*N)/(w-g),x-.75-.25*(-w-M+2*N)/(w-M)]);break;case 5:E.push([S-.5-.5*(v+M+g+w-4*N)/(M-v+w-g),x-.5]);break;case 6:E.push([S-.5-.25*(-v-M+g+w)/(v-M+w-g),x-.5-.25*(-w-M+g+v)/(w-M+v-g)]);break;case 7:E.push([S-.75-.25*(g+w-2*N)/(w-g),x-.75-.25*(g+v-2*N)/(v-g)]);break;case 8:E.push([S-.75-.25*(-g-w+2*N)/(g-w),x-.75-.25*(-g-v+2*N)/(g-v)]);break;case 9:E.push([S-.5-.25*(v+M+-g-w)/(M-v+g-w),x-.5-.25*(w+M+-g-v)/(M-w+g-v)]);break;case 10:E.push([S-.5-.5*(-v-M+-g-w+4*N)/(v-M+g-w),x-.5]);break;case 11:E.push([S-.25-.25*(-g-w+2*N)/(g-w),x-.75-.25*(w+M-2*N)/(M-w)]);break;case 12:E.push([S-.5,x-.5-.5*(-w-M+-g-v+4*N)/(w-M+g-v)]);break;case 13:E.push([S-.75-.25*(v+M-2*N)/(M-v),x-.25-.25*(-g-v+2*N)/(g-v)]);break;case 14:E.push([S-.25-.25*(-v-M+2*N)/(v-M),x-.25-.25*(-w-M+2*N)/(w-M)]);break;case 15:E.push([S-.5,x-.5]);break}},cell:function(S,x,M,v,w,g,c,A,d){w?A.push([S,x]):A.push([x,S])}});return function(k,S){var x=[],M=[];return m(k,x,M,S),{positions:x,cells:M}}}};function f(y,b){var T=y.length+"d",m=s[T];if(m)return m(l,y,b)}function h(y,b){for(var T=u(y,b),m=T.length,k=new Array(m),S=new Array(m),x=0;xMath.max(v,w)?g[2]=1:v>Math.max(M,w)?g[0]=1:g[1]=1;for(var c=0,A=0,d=0;d<3;++d)c+=x[d]*x[d],A+=g[d]*x[d];for(var d=0;d<3;++d)g[d]-=A/c*x[d];return h(g,g),g}function T(x,M,v,w,g,c,A,d){this.center=l(v),this.up=l(w),this.right=l(g),this.radius=l([c]),this.angle=l([A,d]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(x,M),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var D=0;D<16;++D)this.computedMatrix[D]=.5;this.recalcMatrix(0)}var m=T.prototype;m.setDistanceLimits=function(x,M){x>0?x=Math.log(x):x=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,x),this.radius.bounds[0][0]=x,this.radius.bounds[1][0]=M},m.getDistanceLimits=function(x){var M=this.radius.bounds[0];return x?(x[0]=Math.exp(M[0][0]),x[1]=Math.exp(M[1][0]),x):[Math.exp(M[0][0]),Math.exp(M[1][0])]},m.recalcMatrix=function(x){this.center.curve(x),this.up.curve(x),this.right.curve(x),this.radius.curve(x),this.angle.curve(x);for(var M=this.computedUp,v=this.computedRight,w=0,g=0,c=0;c<3;++c)g+=M[c]*v[c],w+=M[c]*M[c];for(var A=Math.sqrt(w),d=0,c=0;c<3;++c)v[c]-=M[c]*g/w,d+=v[c]*v[c],M[c]/=A;for(var D=Math.sqrt(d),c=0;c<3;++c)v[c]/=D;var E=this.computedToward;f(E,M,v),h(E,E);for(var R=Math.exp(this.computedRadius[0]),N=this.computedAngle[0],I=this.computedAngle[1],F=Math.cos(N),L=Math.sin(N),P=Math.cos(I),O=Math.sin(I),B=this.computedCenter,X=F*P,$=L*P,ee=O,Y=-F*O,q=-L*O,Q=P,oe=this.computedEye,Z=this.computedMatrix,c=0;c<3;++c){var se=X*v[c]+$*E[c]+ee*M[c];Z[4*c+1]=Y*v[c]+q*E[c]+Q*M[c],Z[4*c+2]=se,Z[4*c+3]=0}var j=Z[1],V=Z[5],re=Z[9],H=Z[2],ne=Z[6],ue=Z[10],ye=V*ue-re*ne,ke=re*H-j*ue,Me=j*ne-V*H,ge=_(ye,ke,Me);ye/=ge,ke/=ge,Me/=ge,Z[0]=ye,Z[4]=ke,Z[8]=Me;for(var c=0;c<3;++c)oe[c]=B[c]+Z[2+4*c]*R;for(var c=0;c<3;++c){for(var d=0,Ee=0;Ee<3;++Ee)d+=Z[c+4*Ee]*oe[Ee];Z[12+c]=-d}Z[15]=1},m.getMatrix=function(x,M){this.recalcMatrix(x);var v=this.computedMatrix;if(M){for(var w=0;w<16;++w)M[w]=v[w];return M}return v};var k=[0,0,0];m.rotate=function(x,M,v,w){if(this.angle.move(x,M,v),w){this.recalcMatrix(x);var g=this.computedMatrix;k[0]=g[2],k[1]=g[6],k[2]=g[10];for(var c=this.computedUp,A=this.computedRight,d=this.computedToward,D=0;D<3;++D)g[4*D]=c[D],g[4*D+1]=A[D],g[4*D+2]=d[D];s(g,g,w,k);for(var D=0;D<3;++D)c[D]=g[4*D],A[D]=g[4*D+1];this.up.set(x,c[0],c[1],c[2]),this.right.set(x,A[0],A[1],A[2])}},m.pan=function(x,M,v,w){M=M||0,v=v||0,w=w||0,this.recalcMatrix(x);var g=this.computedMatrix,c=Math.exp(this.computedRadius[0]),A=g[1],d=g[5],D=g[9],E=_(A,d,D);A/=E,d/=E,D/=E;var R=g[0],N=g[4],I=g[8],F=R*A+N*d+I*D;R-=A*F,N-=d*F,I-=D*F;var L=_(R,N,I);R/=L,N/=L,I/=L;var P=R*M+A*v,O=N*M+d*v,B=I*M+D*v;this.center.move(x,P,O,B);var X=Math.exp(this.computedRadius[0]);X=Math.max(1e-4,X+w),this.radius.set(x,Math.log(X))},m.translate=function(x,M,v,w){this.center.move(x,M||0,v||0,w||0)},m.setMatrix=function(x,M,v,w){var g=1;typeof v=="number"&&(g=v|0),(g<0||g>3)&&(g=1);var c=(g+2)%3,A=(g+1)%3;M||(this.recalcMatrix(x),M=this.computedMatrix);var d=M[g],D=M[g+4],E=M[g+8];if(w){var N=Math.abs(d),I=Math.abs(D),F=Math.abs(E),L=Math.max(N,I,F);N===L?(d=d<0?-1:1,D=E=0):F===L?(E=E<0?-1:1,d=D=0):(D=D<0?-1:1,d=E=0)}else{var R=_(d,D,E);d/=R,D/=R,E/=R}var P=M[c],O=M[c+4],B=M[c+8],X=P*d+O*D+B*E;P-=d*X,O-=D*X,B-=E*X;var $=_(P,O,B);P/=$,O/=$,B/=$;var ee=D*B-E*O,Y=E*P-d*B,q=d*O-D*P,Q=_(ee,Y,q);ee/=Q,Y/=Q,q/=Q,this.center.jump(x,te,ae,ce),this.radius.idle(x),this.up.jump(x,d,D,E),this.right.jump(x,P,O,B);var oe,Z;if(g===2){var se=M[1],j=M[5],V=M[9],re=se*P+j*O+V*B,H=se*ee+j*Y+V*q;ke<0?oe=-Math.PI/2:oe=Math.PI/2,Z=Math.atan2(H,re)}else{var ne=M[2],ue=M[6],ye=M[10],ke=ne*d+ue*D+ye*E,Me=ne*P+ue*O+ye*B,ge=ne*ee+ue*Y+ye*q;oe=Math.asin(y(ke)),Z=Math.atan2(ge,Me)}this.angle.jump(x,Z,oe),this.recalcMatrix(x);var Ee=M[2],Ce=M[6],Fe=M[10],ie=this.computedMatrix;u(ie,M);var J=ie[15],te=ie[12]/J,ae=ie[13]/J,ce=ie[14]/J,pe=Math.exp(this.computedRadius[0]);this.center.jump(x,te-Ee*pe,ae-Ce*pe,ce-Fe*pe)},m.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},m.idle=function(x){this.center.idle(x),this.up.idle(x),this.right.idle(x),this.radius.idle(x),this.angle.idle(x)},m.flush=function(x){this.center.flush(x),this.up.flush(x),this.right.flush(x),this.radius.flush(x),this.angle.flush(x)},m.setDistance=function(x,M){M>0&&this.radius.set(x,Math.log(M))},m.lookAt=function(x,M,v,w){this.recalcMatrix(x),M=M||this.computedEye,v=v||this.computedCenter,w=w||this.computedUp;var g=w[0],c=w[1],A=w[2],d=_(g,c,A);if(!(d<1e-6)){g/=d,c/=d,A/=d;var D=M[0]-v[0],E=M[1]-v[1],R=M[2]-v[2],N=_(D,E,R);if(!(N<1e-6)){D/=N,E/=N,R/=N;var I=this.computedRight,F=I[0],L=I[1],P=I[2],O=g*F+c*L+A*P;F-=O*g,L-=O*c,P-=O*A;var B=_(F,L,P);if(!(B<.01&&(F=c*R-A*E,L=A*D-g*R,P=g*E-c*D,B=_(F,L,P),B<1e-6))){F/=B,L/=B,P/=B,this.up.set(x,g,c,A),this.right.set(x,F,L,P),this.center.set(x,v[0],v[1],v[2]),this.radius.set(x,Math.log(N));var X=c*P-A*L,$=A*F-g*P,ee=g*L-c*F,Y=_(X,$,ee);X/=Y,$/=Y,ee/=Y;var q=g*D+c*E+A*R,Q=F*D+L*E+P*R,oe=X*D+$*E+ee*R,Z=Math.asin(y(q)),se=Math.atan2(oe,Q),j=this.angle._state,V=j[j.length-1],re=j[j.length-2];V=V%(2*Math.PI);var H=Math.abs(V+2*Math.PI-se),ne=Math.abs(V-se),ue=Math.abs(V-2*Math.PI-se);H0?P.pop():new ArrayBuffer(F)}o.mallocArrayBuffer=k;function S(I){return new Uint8Array(k(I),0,I)}o.mallocUint8=S;function x(I){return new Uint16Array(k(2*I),0,I)}o.mallocUint16=x;function M(I){return new Uint32Array(k(4*I),0,I)}o.mallocUint32=M;function v(I){return new Int8Array(k(I),0,I)}o.mallocInt8=v;function w(I){return new Int16Array(k(2*I),0,I)}o.mallocInt16=w;function g(I){return new Int32Array(k(4*I),0,I)}o.mallocInt32=g;function c(I){return new Float32Array(k(4*I),0,I)}o.mallocFloat32=o.mallocFloat=c;function A(I){return new Float64Array(k(8*I),0,I)}o.mallocFloat64=o.mallocDouble=A;function d(I){return f?new Uint8ClampedArray(k(I),0,I):S(I)}o.mallocUint8Clamped=d;function D(I){return h?new BigUint64Array(k(8*I),0,I):null}o.mallocBigUint64=D;function E(I){return p?new BigInt64Array(k(8*I),0,I):null}o.mallocBigInt64=E;function R(I){return new DataView(k(I),0,I)}o.mallocDataView=R;function N(I){I=l.nextPow2(I);var F=l.log2(I),L=b[F];return L.length>0?L.pop():new s(I)}o.mallocBuffer=N,o.clearCache=function(){for(var F=0;F<32;++F)_.UINT8[F].length=0,_.UINT16[F].length=0,_.UINT32[F].length=0,_.INT8[F].length=0,_.INT16[F].length=0,_.INT32[F].length=0,_.FLOAT[F].length=0,_.DOUBLE[F].length=0,_.BIGUINT64[F].length=0,_.BIGINT64[F].length=0,_.UINT8C[F].length=0,y[F].length=0,b[F].length=0}},1755:function(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u",P="",O=L.length,B=P.length,X=N[0]===k||N[0]===M,$=0,ee=-B;$>-1&&($=I.indexOf(L,$),!($===-1||(ee=I.indexOf(P,$+O),ee===-1)||ee<=$));){for(var Y=$;Y=ee)F[Y]=null,I=I.substr(0,Y)+" "+I.substr(Y+1);else if(F[Y]!==null){var q=F[Y].indexOf(N[0]);q===-1?F[Y]+=N:X&&(F[Y]=F[Y].substr(0,q+1)+(1+parseInt(F[Y][q+1]))+F[Y].substr(q+2))}var Q=$+O,oe=I.substr(Q,ee-Q),Z=oe.indexOf(L);Z!==-1?$=Z:$=ee+B}return F}function g(R,N,I){for(var F=N.textAlign||"start",L=N.textBaseline||"alphabetic",P=[1<<30,1<<30],O=[0,0],B=R.length,X=0;X/g,` +`]);o.createShader=function(_){var y=l(_,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y.attributes.normal.location=2,y},o.createPickShader=function(_){var y=l(_,s,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y.attributes.normal.location=2,y},o.createContourShader=function(_){var y=l(_,h,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y},o.createPickContourShader=function(_){var y=l(_,h,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y}}),9499:(function(a,o,i){"use strict";a.exports=se;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),h=i(1888),p=i(6729),_=i(5298),y=i(9994),b=i(9618),T=i(3711),m=i(6760),k=i(7608),S=i(2478),x=i(6199),M=i(990),v=M.createShader,w=M.createContourShader,g=M.createPickShader,c=M.createPickContourShader,A=40,d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],D=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var j=0;j<3;++j){var V=E[j],re=(j+1)%3,H=(j+2)%3;V[re+0]=1,V[H+3]=1,V[j+6]=1}})();function R(j,V,re,H,ne){this.position=j,this.index=V,this.uv=re,this.level=H,this.dataCoordinate=ne}var N=256;function I(j,V,re,H,ne,ue,ye,ke,Me,ge,Ee,Ce,Fe,ie,J){this.gl=j,this.shape=V,this.bounds=re,this.objectOffset=J,this.intensityBounds=[],this._shader=H,this._pickShader=ne,this._coordinateBuffer=ue,this._vao=ye,this._colorMap=ke,this._contourShader=Me,this._contourPickShader=ge,this._contourBuffer=Ee,this._contourVAO=Ce,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new R([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Fe,this._dynamicVAO=ie,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[b(h.mallocFloat(1024),[0,0]),b(h.mallocFloat(1024),[0,0]),b(h.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var F=I.prototype;F.genColormap=function(j,V){var re=!1,H=y([p({colormap:j,nshades:N,format:"rgba"}).map(function(ne,ue){var ye=V?L(ue/255,V):ne[3];return ye<1&&(re=!0),[ne[0],ne[1],ne[2],255*ye]})]);return _.divseq(H,255),this.hasAlphaScale=re,H},F.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},F.isOpaque=function(){return!this.isTransparent()},F.pickSlots=1,F.setPickBase=function(j){this.pickId=j};function L(j,V){if(!V||!V.length)return 1;for(var re=0;rej&&re>0){var H=(V[re][0]-j)/(V[re][0]-V[re-1][0]);return V[re][1]*(1-H)+H*V[re-1][1]}}return 1}var P=[0,0,0],O={showSurface:!1,showContour:!1,projections:[d.slice(),d.slice(),d.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function B(j,V){var re,H,ne,ue=V.axes&&V.axes.lastCubeProps.axis||P,ye=V.showSurface,ke=V.showContour;for(re=0;re<3;++re)for(ye=ye||V.surfaceProject[re],H=0;H<3;++H)ke=ke||V.contourProject[re][H];for(re=0;re<3;++re){var Me=O.projections[re];for(H=0;H<16;++H)Me[H]=0;for(H=0;H<4;++H)Me[5*H]=1;Me[5*re]=0,Me[12+re]=V.axesBounds[+(ue[re]>0)][re],m(Me,j.model,Me);var ge=O.clipBounds[re];for(ne=0;ne<2;++ne)for(H=0;H<3;++H)ge[ne][H]=j.clipBounds[ne][H];ge[0][re]=-1e8,ge[1][re]=1e8}return O.showSurface=ye,O.showContour=ke,O}var X={model:d,view:d,projection:d,inverseModel:d.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},$=d.slice(),ee=[1,0,0,0,1,0,0,0,1];function Y(j,V){j=j||{};var re=this.gl;re.disable(re.CULL_FACE),this._colorMap.bind(0);var H=X;H.model=j.model||d,H.view=j.view||d,H.projection=j.projection||d,H.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],H.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],H.objectOffset=this.objectOffset,H.contourColor=this.contourColor[0],H.inverseModel=k(H.inverseModel,H.model);for(var ne=0;ne<2;++ne)for(var ue=H.clipBounds[ne],ye=0;ye<3;++ye)ue[ye]=Math.min(Math.max(this.clipBounds[ne][ye],-1e8),1e8);H.kambient=this.ambientLight,H.kdiffuse=this.diffuseLight,H.kspecular=this.specularLight,H.roughness=this.roughness,H.fresnel=this.fresnel,H.opacity=this.opacity,H.height=0,H.permutation=ee,H.vertexColor=this.vertexColor;var ke=$;for(m(ke,H.view,H.model),m(ke,H.projection,ke),k(ke,ke),ne=0;ne<3;++ne)H.eyePosition[ne]=ke[12+ne]/ke[15];var Me=ke[15];for(ne=0;ne<3;++ne)Me+=this.lightPosition[ne]*ke[4*ne+3];for(ne=0;ne<3;++ne){var ge=ke[12+ne];for(ye=0;ye<3;++ye)ge+=ke[4*ye+ne]*this.lightPosition[ye];H.lightPosition[ne]=ge/Me}var Ee=B(H,this);if(Ee.showSurface){for(this._shader.bind(),this._shader.uniforms=H,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(re.TRIANGLES,this._vertexCount),ne=0;ne<3;++ne)!this.surfaceProject[ne]||!this.vertexCount||(this._shader.uniforms.model=Ee.projections[ne],this._shader.uniforms.clipBounds=Ee.clipBounds[ne],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ee.showContour){var Ce=this._contourShader;H.kambient=1,H.kdiffuse=0,H.kspecular=0,H.opacity=1,Ce.bind(),Ce.uniforms=H;var Fe=this._contourVAO;for(Fe.bind(),ne=0;ne<3;++ne)for(Ce.uniforms.permutation=E[ne],re.lineWidth(this.contourWidth[ne]*this.pixelRatio),ye=0;ye>4)/16)/255,ne=Math.floor(H),ue=H-ne,ye=V[1]*(j.value[1]+(j.value[2]&15)/16)/255,ke=Math.floor(ye),Me=ye-ke;ne+=1,ke+=1;var ge=re.position;ge[0]=ge[1]=ge[2]=0;for(var Ee=0;Ee<2;++Ee)for(var Ce=Ee?ue:1-ue,Fe=0;Fe<2;++Fe)for(var ie=Fe?Me:1-Me,J=ne+Ee,te=ke+Fe,ae=Ce*ie,ce=0;ce<3;++ce)ge[ce]+=this._field[ce].get(J,te)*ae;for(var pe=this._pickResult.level,ve=0;ve<3;++ve)if(pe[ve]=S.le(this.contourLevels[ve],ge[ve]),pe[ve]<0)this.contourLevels[ve].length>0&&(pe[ve]=0);else if(pe[ve]Math.abs(me-ge[ve])&&(pe[ve]+=1)}for(re.index[0]=ue<.5?ne:ne+1,re.index[1]=Me<.5?ke:ke+1,re.uv[0]=H/V[0],re.uv[1]=ye/V[1],ce=0;ce<3;++ce)re.dataCoordinate[ce]=this._field[ce].get(re.index[0],re.index[1]);return re},F.padField=function(j,V){var re=V.shape.slice(),H=j.shape.slice();_.assign(j.lo(1,1).hi(re[0],re[1]),V),_.assign(j.lo(1).hi(re[0],1),V.hi(re[0],1)),_.assign(j.lo(1,H[1]-1).hi(re[0],1),V.lo(0,re[1]-1).hi(re[0],1)),_.assign(j.lo(0,1).hi(1,re[1]),V.hi(1)),_.assign(j.lo(H[0]-1,1).hi(1,re[1]),V.lo(re[0]-1)),j.set(0,0,V.get(0,0)),j.set(0,H[1]-1,V.get(0,re[1]-1)),j.set(H[0]-1,0,V.get(re[0]-1,0)),j.set(H[0]-1,H[1]-1,V.get(re[0]-1,re[1]-1))};function Q(j,V){return Array.isArray(j)?[V(j[0]),V(j[1]),V(j[2])]:[V(j),V(j),V(j)]}function oe(j){return Array.isArray(j)?j.length===3?[j[0],j[1],j[2],1]:[j[0],j[1],j[2],j[3]]:[0,0,0,1]}function Z(j){if(Array.isArray(j)){if(Array.isArray(j))return[oe(j[0]),oe(j[1]),oe(j[2])];var V=oe(j);return[V.slice(),V.slice(),V.slice()]}}F.update=function(j){j=j||{},this.objectOffset=j.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in j&&(this.contourWidth=Q(j.contourWidth,Number)),"showContour"in j&&(this.showContour=Q(j.showContour,Boolean)),"showSurface"in j&&(this.showSurface=!!j.showSurface),"contourTint"in j&&(this.contourTint=Q(j.contourTint,Boolean)),"contourColor"in j&&(this.contourColor=Z(j.contourColor)),"contourProject"in j&&(this.contourProject=Q(j.contourProject,function(Ma){return Q(Ma,Boolean)})),"surfaceProject"in j&&(this.surfaceProject=j.surfaceProject),"dynamicColor"in j&&(this.dynamicColor=Z(j.dynamicColor)),"dynamicTint"in j&&(this.dynamicTint=Q(j.dynamicTint,Number)),"dynamicWidth"in j&&(this.dynamicWidth=Q(j.dynamicWidth,Number)),"opacity"in j&&(this.opacity=j.opacity),"opacityscale"in j&&(this.opacityscale=j.opacityscale),"colorBounds"in j&&(this.colorBounds=j.colorBounds),"vertexColor"in j&&(this.vertexColor=j.vertexColor?1:0),"colormap"in j&&this._colorMap.setPixels(this.genColormap(j.colormap,this.opacityscale));var V=j.field||j.coords&&j.coords[2]||null,re=!1;if(V||(this._field[2].shape[0]||this._field[2].shape[2]?V=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):V=this._field[2].hi(0,0)),"field"in j||"coords"in j){var H=(V.shape[0]+2)*(V.shape[1]+2);H>this._field[2].data.length&&(h.freeFloat(this._field[2].data),this._field[2].data=h.mallocFloat(l.nextPow2(H))),this._field[2]=b(this._field[2].data,[V.shape[0]+2,V.shape[1]+2]),this.padField(this._field[2],V),this.shape=V.shape.slice();for(var ne=this.shape,ue=0;ue<2;++ue)this._field[2].size>this._field[ue].data.length&&(h.freeFloat(this._field[ue].data),this._field[ue].data=h.mallocFloat(this._field[2].size)),this._field[ue]=b(this._field[ue].data,[ne[0]+2,ne[1]+2]);if(j.coords){var ye=j.coords;if(!Array.isArray(ye)||ye.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ue=0;ue<2;++ue){var ke=ye[ue];for(Fe=0;Fe<2;++Fe)if(ke.shape[Fe]!==ne[Fe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ue],ke)}}else if(j.ticks){var Me=j.ticks;if(!Array.isArray(Me)||Me.length!==2)throw new Error("gl-surface: invalid ticks");for(ue=0;ue<2;++ue){var ge=Me[ue];if((Array.isArray(ge)||ge.length)&&(ge=b(ge)),ge.shape[0]!==ne[ue])throw new Error("gl-surface: invalid tick length");var Ee=b(ge.data,ne);Ee.stride[ue]=ge.stride[0],Ee.stride[ue^1]=0,this.padField(this._field[ue],Ee)}}else{for(ue=0;ue<2;++ue){var Ce=[0,0];Ce[ue]=1,this._field[ue]=b(this._field[ue].data,[ne[0]+2,ne[1]+2],Ce,0)}this._field[0].set(0,0,0);for(var Fe=0;Fe0){for(var ea=0;ea<5;++ea)Nr.pop();Ye-=1}continue e}}}gt.push(Ye)}this._contourOffsets[rt]=qr,this._contourCounts[rt]=gt}var Nn=h.mallocFloat(Nr.length);for(ue=0;ueR||D<0||D>R)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[d,D],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,d,D,0,A.format,A.type,null),A._mipLevels=[0],A}function m(A,d,D,E,R,N){this.gl=A,this.handle=d,this.format=R,this.type=N,this._shape=[D,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var I=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return I._wrapS},set:function(P){return I.wrapS=P}},{get:function(){return I._wrapT},set:function(P){return I.wrapT=P}}]),this._wrapVector=F;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return I._shape[0]},set:function(P){return I.width=P}},{get:function(){return I._shape[1]},set:function(P){return I.height=P}}]),this._shapeVector=L}var k=m.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var d=this.gl;if(this.type===d.FLOAT&&f.indexOf(A)>=0&&(d.getExtension("OES_texture_float_linear")||(A=d.NEAREST)),h.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var d=this.gl;if(this.type===d.FLOAT&&f.indexOf(A)>=0&&(d.getExtension("OES_texture_float_linear")||(A=d.NEAREST)),h.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var d=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,d!==this._anisoSamples){var D=this.gl.getExtension("EXT_texture_filter_anisotropic");D&&this.gl.texParameterf(this.gl.TEXTURE_2D,D.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var d=0;d<2;++d)if(p.indexOf(A[d])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var D=this.gl;return this.bind(),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_S,this._wrapS),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return T(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,T(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,T(this,this._shape[0],A),A}}}),k.bind=function(A){var d=this.gl;return A!==void 0&&d.activeTexture(d.TEXTURE0+(A|0)),d.bindTexture(d.TEXTURE_2D,this.handle),A!==void 0?A|0:d.getParameter(d.ACTIVE_TEXTURE)-d.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),d=0;A>0;++d,A>>>=1)this._mipLevels.indexOf(d)<0&&this._mipLevels.push(d)},k.setPixels=function(A,d,D,E){var R=this.gl;this.bind(),Array.isArray(d)?(E=D,D=d[1]|0,d=d[0]|0):(d=d||0,D=D||0),E=E||0;var N=y(A)?A:A.raw;if(N){var I=this._mipLevels.indexOf(E)<0;I?(R.texImage2D(R.TEXTURE_2D,0,this.format,this.format,this.type,N),this._mipLevels.push(E)):R.texSubImage2D(R.TEXTURE_2D,E,d,D,this.format,this.type,N)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||d+A.shape[1]>this._shape[1]>>>E||D+A.shape[0]>this._shape[0]>>>E||d<0||D<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");x(R,d,D,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,d){return A.length===3?d[2]===1&&d[1]===A[0]*A[2]&&d[0]===A[2]:d[0]===1&&d[1]===A[0]}function x(A,d,D,E,R,N,I,F){var L=F.dtype,P=F.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,B=0,X=S(P,F.stride.slice());L==="float32"?O=A.FLOAT:L==="float64"?(O=A.FLOAT,X=!1,L="float32"):L==="uint8"?O=A.UNSIGNED_BYTE:(O=A.UNSIGNED_BYTE,X=!1,L="uint8");var $=1;if(P.length===2)B=A.LUMINANCE,P=[P[0],P[1],1],F=l(F.data,P,[F.stride[0],F.stride[1],1],F.offset);else if(P.length===3){if(P[2]===1)B=A.ALPHA;else if(P[2]===2)B=A.LUMINANCE_ALPHA;else if(P[2]===3)B=A.RGB;else if(P[2]===4)B=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");$=P[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((B===A.LUMINANCE||B===A.ALPHA)&&(R===A.LUMINANCE||R===A.ALPHA)&&(B=R),B!==R)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ee=F.size,Y=I.indexOf(E)<0;if(Y&&I.push(E),O===N&&X)F.offset===0&&F.data.length===ee?Y?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,N,F.data):A.texSubImage2D(A.TEXTURE_2D,E,d,D,P[0],P[1],R,N,F.data):Y?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,N,F.data.subarray(F.offset,F.offset+ee)):A.texSubImage2D(A.TEXTURE_2D,E,d,D,P[0],P[1],R,N,F.data.subarray(F.offset,F.offset+ee));else{var q;N===A.FLOAT?q=s.mallocFloat32(ee):q=s.mallocUint8(ee);var Q=l(q,P,[P[2],P[2]*P[0],1]);O===A.FLOAT&&N===A.UNSIGNED_BYTE?b(Q,F):u.assign(Q,F),Y?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,N,q.subarray(0,ee)):A.texSubImage2D(A.TEXTURE_2D,E,d,D,P[0],P[1],R,N,q.subarray(0,ee)),N===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function M(A){var d=A.createTexture();return A.bindTexture(A.TEXTURE_2D,d),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),d}function v(A,d,D,E,R){var N=A.getParameter(A.MAX_TEXTURE_SIZE);if(d<0||d>N||D<0||D>N)throw new Error("gl-texture2d: Invalid texture shape");if(R===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var I=M(A);return A.texImage2D(A.TEXTURE_2D,0,E,d,D,0,E,R,null),new m(A,I,d,D,E,R)}function w(A,d,D,E,R,N){var I=M(A);return A.texImage2D(A.TEXTURE_2D,0,R,R,N,d),new m(A,I,D,E,R,N)}function g(A,d){var D=d.dtype,E=d.shape.slice(),R=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>R||E[1]<0||E[1]>R)throw new Error("gl-texture2d: Invalid texture size");var N=S(E,d.stride.slice()),I=0;D==="float32"?I=A.FLOAT:D==="float64"?(I=A.FLOAT,N=!1,D="float32"):D==="uint8"?I=A.UNSIGNED_BYTE:(I=A.UNSIGNED_BYTE,N=!1,D="uint8");var F=0;if(E.length===2)F=A.LUMINANCE,E=[E[0],E[1],1],d=l(d.data,E,[d.stride[0],d.stride[1],1],d.offset);else if(E.length===3)if(E[2]===1)F=A.ALPHA;else if(E[2]===2)F=A.LUMINANCE_ALPHA;else if(E[2]===3)F=A.RGB;else if(E[2]===4)F=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");I===A.FLOAT&&!A.getExtension("OES_texture_float")&&(I=A.UNSIGNED_BYTE,N=!1);var L,P,O=d.size;if(N)d.offset===0&&d.data.length===O?L=d.data:L=d.data.subarray(d.offset,d.offset+O);else{var B=[E[2],E[2]*E[0],1];P=s.malloc(O,D);var X=l(P,E,B,0);(D==="float32"||D==="float64")&&I===A.UNSIGNED_BYTE?b(X,d):u.assign(X,d),L=P.subarray(0,O)}var $=M(A);return A.texImage2D(A.TEXTURE_2D,0,F,E[0],E[1],0,F,I,L),N||s.free(P),new m(A,$,E[0],E[1],F,I)}function c(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||_(A),typeof arguments[1]=="number")return v(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var d=arguments[1],D=y(d)?d:d.raw;if(D)return w(A,D,d.width|0,d.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(d.shape&&d.data&&d.stride)return g(A,d)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}}),1433:(function(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(b)}}),9226:(function(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}}),3126:(function(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}}),3990:(function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}}),1091:(function(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}}),5911:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=u[0],_=u[1],y=u[2];return i[0]=f*y-h*_,i[1]=h*p-s*y,i[2]=s*_-f*p,i}}),5455:(function(a,o,i){a.exports=i(7056)}),7056:(function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}}),4008:(function(a,o,i){a.exports=i(6690)}),6690:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}}),244:(function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}}),2613:(function(a){a.exports=1e-6}),9922:(function(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var h=s[0],p=s[1],_=s[2],y=f[0],b=f[1],T=f[2];return Math.abs(h-y)<=l*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(p-b)<=l*Math.max(1,Math.abs(p),Math.abs(b))&&Math.abs(_-T)<=l*Math.max(1,Math.abs(_),Math.abs(T))}}),9265:(function(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}}),2681:(function(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}}),5137:(function(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,h,p,_,y){var b,T;for(f||(f=3),h||(h=0),p?T=Math.min(p*f+h,s.length):T=s.length,b=h;b0&&(h=1/Math.sqrt(h),i[0]=l[0]*h,i[1]=l[1]*h,i[2]=l[2]*h),i}}),7636:(function(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}}),6894:(function(a){a.exports=o;function o(i,l,u,s){var f=u[1],h=u[2],p=l[1]-f,_=l[2]-h,y=Math.sin(s),b=Math.cos(s);return i[0]=l[0],i[1]=f+p*b-_*y,i[2]=h+p*y+_*b,i}}),109:(function(a){a.exports=o;function o(i,l,u,s){var f=u[0],h=u[2],p=l[0]-f,_=l[2]-h,y=Math.sin(s),b=Math.cos(s);return i[0]=f+_*y+p*b,i[1]=l[1],i[2]=h+_*b-p*y,i}}),8692:(function(a){a.exports=o;function o(i,l,u,s){var f=u[0],h=u[1],p=l[0]-f,_=l[1]-h,y=Math.sin(s),b=Math.cos(s);return i[0]=f+p*b-_*y,i[1]=h+p*y+_*b,i[2]=l[2],i}}),2447:(function(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}}),6621:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}}),8489:(function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}}),1463:(function(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}}),6141:(function(a,o,i){a.exports=i(2953)}),5486:(function(a,o,i){a.exports=i(3066)}),2953:(function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}}),3066:(function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}}),2229:(function(a,o,i){a.exports=i(6843)}),6843:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}}),492:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2];return i[0]=s*u[0]+f*u[3]+h*u[6],i[1]=s*u[1]+f*u[4]+h*u[7],i[2]=s*u[2]+f*u[5]+h*u[8],i}}),5673:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=u[3]*s+u[7]*f+u[11]*h+u[15];return p=p||1,i[0]=(u[0]*s+u[4]*f+u[8]*h+u[12])/p,i[1]=(u[1]*s+u[5]*f+u[9]*h+u[13])/p,i[2]=(u[2]*s+u[6]*f+u[10]*h+u[14])/p,i}}),264:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=u[0],_=u[1],y=u[2],b=u[3],T=b*s+_*h-y*f,m=b*f+y*s-p*h,k=b*h+p*f-_*s,S=-p*s-_*f-y*h;return i[0]=T*b+S*-p+m*-y-k*-_,i[1]=m*b+S*-_+k*-p-T*-y,i[2]=k*b+S*-y+T*-_-m*-p,i}}),4361:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}}),2335:(function(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}}),2933:(function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}}),7536:(function(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}}),4691:(function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],h=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+h*h)}}),1373:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}}),3750:(function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}}),3390:(function(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}}),9970:(function(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}}),4494:(function(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}}),6808:(function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}}),2573:(function(a){a.exports=o;function o(i,l,u,s){var f=l[0],h=l[1],p=l[2],_=l[3];return i[0]=f+s*(u[0]-f),i[1]=h+s*(u[1]-h),i[2]=p+s*(u[2]-p),i[3]=_+s*(u[3]-_),i}}),160:(function(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}}),2334:(function(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}}),3576:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}}),1498:(function(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}}),5177:(function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],h=l[3],p=u*u+s*s+f*f+h*h;return p>0&&(p=1/Math.sqrt(p),i[0]=u*p,i[1]=s*p,i[2]=f*p,i[3]=h*p),i}}),9131:(function(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,h){return h=h||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,h),f}}),9288:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}}),4844:(function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}}),4578:(function(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}}),7960:(function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],h=l[3]-i[3];return u*u+s*s+f*f+h*h}}),483:(function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}}),6860:(function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}}),5352:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*h+u[12]*p,i[1]=u[1]*s+u[5]*f+u[9]*h+u[13]*p,i[2]=u[2]*s+u[6]*f+u[10]*h+u[14]*p,i[3]=u[3]*s+u[7]*f+u[11]*h+u[15]*p,i}}),4041:(function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],h=l[2],p=u[0],_=u[1],y=u[2],b=u[3],T=b*s+_*h-y*f,m=b*f+y*s-p*h,k=b*h+p*f-_*s,S=-p*s-_*f-y*h;return i[0]=T*b+S*-p+m*-y-k*-_,i[1]=m*b+S*-_+k*-p-T*-y,i[2]=k*b+S*-y+T*-_-m*-p,i[3]=l[3],i}}),1848:(function(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var h=Array.isArray(f)?f:l(f),p=0;p0)continue;ve=ae.slice(0,1).join("")}return re(ve),ee+=ve.length,L=L.slice(ve.length),L.length}while(!0)}function Fe(){return/[^a-fA-F0-9]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function ie(){return I==="."||/[eE]/.test(I)?(L.push(I),N=S,F=I,E+1):I==="x"&&L.length===1&&L[0]==="0"?(N=c,L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function J(){return I==="f"&&(L.push(I),F=I,E+=1),/[eE]/.test(I)||(I==="-"||I==="+")&&/[eE]/.test(F)?(L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function te(){if(/[^\d\w_]/.test(I)){var ae=L.join("");return V[ae]?N=v:j[ae]?N=M:N=x,re(L.join("")),N=p,E}return L.push(I),F=I,E+1}}}),3508:(function(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])}),6852:(function(a){a.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]}),7932:(function(a,o,i){var l=i(620);a.exports=l.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])}),620:(function(a){a.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]}),7827:(function(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]}),4905:(function(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var h=l(f),p=[];return p=p.concat(h(s)),p=p.concat(h(null)),p}}),3236:(function(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u>1,T=-7,m=u?f-1:0,k=u?-1:1,S=i[l+m];for(m+=k,h=S&(1<<-T)-1,S>>=-T,T+=_;T>0;h=h*256+i[l+m],m+=k,T-=8);for(p=h&(1<<-T)-1,h>>=-T,T+=s;T>0;p=p*256+i[l+m],m+=k,T-=8);if(h===0)h=1-b;else{if(h===y)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,s),h=h-b}return(S?-1:1)*p*Math.pow(2,h-s)},o.write=function(i,l,u,s,f,h){var p,_,y,b=h*8-f-1,T=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:h-1,x=s?1:-1,M=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(_=isNaN(l)?1:0,p=T):(p=Math.floor(Math.log(l)/Math.LN2),l*(y=Math.pow(2,-p))<1&&(p--,y*=2),p+m>=1?l+=k/y:l+=k*Math.pow(2,1-m),l*y>=2&&(p++,y/=2),p+m>=T?(_=0,p=T):p+m>=1?(_=(l*y-1)*Math.pow(2,f),p=p+m):(_=l*Math.pow(2,m-1)*Math.pow(2,f),p=0));f>=8;i[u+S]=_&255,S+=x,_/=256,f-=8);for(p=p<0;i[u+S]=p&255,S+=x,p/=256,b-=8);i[u+S-x]|=M*128}}),8954:(function(a,o,i){"use strict";a.exports=m;var l=i(3250),u=i(6803).Fw;function s(k,S,x){this.vertices=k,this.adjacent=S,this.boundary=x,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,x){this.vertices=k,this.cell=S,this.index=x}function h(k,S){return u(k.vertices,S.vertices)}function p(k){return function(){var S=this.tuple;return k.apply(this,S)}}function _(k){var S=l[k+1];return S||(S=l),p(S)}var y=[];function b(k,S,x){this.dimension=k,this.vertices=S,this.simplices=x,this.interior=x.filter(function(w){return!w.boundary}),this.tuple=new Array(k+1);for(var M=0;M<=k;++M)this.tuple[M]=this.vertices[M];var v=y[k];v||(v=y[k]=_(k)),this.orient=v}var T=b.prototype;T.handleBoundaryDegeneracy=function(k,S){var x=this.dimension,M=this.vertices.length-1,v=this.tuple,w=this.vertices,g=[k];for(k.lastVisited=-M;g.length>0;){k=g.pop();for(var c=k.adjacent,A=0;A<=x;++A){var d=c[A];if(!(!d.boundary||d.lastVisited<=-M)){for(var D=d.vertices,E=0;E<=x;++E){var R=D[E];R<0?v[E]=S:v[E]=w[R]}var N=this.orient();if(N>0)return d;d.lastVisited=-M,N===0&&g.push(d)}}}return null},T.walk=function(k,S){var x=this.vertices.length-1,M=this.dimension,v=this.vertices,w=this.tuple,g=S?this.interior.length*Math.random()|0:this.interior.length-1,c=this.interior[g];e:for(;!c.boundary;){for(var A=c.vertices,d=c.adjacent,D=0;D<=M;++D)w[D]=v[A[D]];c.lastVisited=x;for(var D=0;D<=M;++D){var E=d[D];if(!(E.lastVisited>=x)){var R=w[D];w[D]=k;var N=this.orient();if(w[D]=R,N<0){c=E;continue e}else E.boundary?E.lastVisited=-x:E.lastVisited=x}}return}return c},T.addPeaks=function(k,S){var x=this.vertices.length-1,M=this.dimension,v=this.vertices,w=this.tuple,g=this.interior,c=this.simplices,A=[S];S.lastVisited=x,S.vertices[S.vertices.indexOf(-1)]=x,S.boundary=!1,g.push(S);for(var d=[];A.length>0;){var S=A.pop(),D=S.vertices,E=S.adjacent,R=D.indexOf(x);if(!(R<0)){for(var N=0;N<=M;++N)if(N!==R){var I=E[N];if(!(!I.boundary||I.lastVisited>=x)){var F=I.vertices;if(I.lastVisited!==-x){for(var L=0,P=0;P<=M;++P)F[P]<0?(L=P,w[P]=k):w[P]=v[F[P]];var O=this.orient();if(O>0){F[L]=x,I.boundary=!1,g.push(I),A.push(I),I.lastVisited=x;continue}else I.lastVisited=-x}var B=I.adjacent,X=D.slice(),$=E.slice(),ee=new s(X,$,!0);c.push(ee);var Y=B.indexOf(S);if(!(Y<0)){B[Y]=ee,$[R]=I,X[N]=-1,$[N]=S,E[N]=ee,ee.flip();for(var P=0;P<=M;++P){var q=X[P];if(!(q<0||q===x)){for(var Q=new Array(M-1),oe=0,Z=0;Z<=M;++Z){var se=X[Z];se<0||Z===P||(Q[oe++]=se)}d.push(new f(Q,ee,P))}}}}}}}d.sort(h);for(var N=0;N+1=0?g[A++]=c[D]:d=D&1;if(d===(k&1)){var E=g[0];g[0]=g[1],g[1]=E}S.push(g)}}return S};function m(k,S){var x=k.length;if(x===0)throw new Error("Must have at least d+1 points");var M=k[0].length;if(x<=M)throw new Error("Must input at least d+1 points");var v=k.slice(0,M+1),w=l.apply(void 0,v);if(w===0)throw new Error("Input not in general position");for(var g=new Array(M+1),c=0;c<=M;++c)g[c]=c;w<0&&(g[0]=1,g[1]=0);for(var A=new s(g,new Array(M+1),!1),d=A.adjacent,D=new Array(M+2),c=0;c<=M;++c){for(var E=g.slice(),R=0;R<=M;++R)R===c&&(E[R]=-1);var N=E[0];E[0]=E[1],E[1]=N;var I=new s(E,new Array(M+1),!0);d[c]=I,D[c]=I}D[M+1]=A;for(var c=0;c<=M;++c)for(var E=d[c].vertices,F=d[c].adjacent,R=0;R<=M;++R){var L=E[R];if(L<0){F[R]=A;continue}for(var P=0;P<=M;++P)d[P].vertices.indexOf(L)<0&&(F[R]=d[P])}for(var O=new b(M,v,D),B=!!S,c=M+1;c3*(D+1)?b(this,d):this.left.insert(d):this.left=w([d]);else if(d[0]>this.mid)this.right?4*(this.right.count+1)>3*(D+1)?b(this,d):this.right.insert(d):this.right=w([d]);else{var E=l.ge(this.leftPoints,d,M),R=l.ge(this.rightPoints,d,v);this.leftPoints.splice(E,0,d),this.rightPoints.splice(R,0,d)}},p.remove=function(d){var D=this.count-this.leftPoints;if(d[1]3*(D-1))return T(this,d);var R=this.left.remove(d);return R===f?(this.left=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else if(d[0]>this.mid){if(!this.right)return u;var N=this.left?this.left.count:0;if(4*N>3*(D-1))return T(this,d);var R=this.right.remove(d);return R===f?(this.right=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else{if(this.count===1)return this.leftPoints[0]===d?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===d){if(this.left&&this.right){for(var I=this,F=this.left;F.right;)I=F,F=F.right;if(I===this)F.right=this.right;else{var L=this.left,R=this.right;I.count-=F.count,I.right=F.left,F.left=L,F.right=R}_(this,F),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?_(this,this.left):_(this,this.right);return s}for(var L=l.ge(this.leftPoints,d,M);L=0&&d[R][1]>=D;--R){var N=E(d[R]);if(N)return N}}function S(d,D){for(var E=0;Ethis.mid){if(this.right){var E=this.right.queryPoint(d,D);if(E)return E}return k(this.rightPoints,d,D)}else return S(this.leftPoints,D)},p.queryInterval=function(d,D,E){if(dthis.mid&&this.right){var R=this.right.queryInterval(d,D,E);if(R)return R}return Dthis.mid?k(this.rightPoints,d,E):S(this.leftPoints,E)};function x(d,D){return d-D}function M(d,D){var E=d[0]-D[0];return E||d[1]-D[1]}function v(d,D){var E=d[1]-D[1];return E||d[0]-D[0]}function w(d){if(d.length===0)return null;for(var D=[],E=0;E>1],N=[],I=[],F=[],E=0;E13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}}),395:(function(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o}),2652:(function(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),h=i(7608),p=i(5665),_={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},y=u(),b=u(),T=[0,0,0,0],m=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(w,g,c,A,d,D){if(g||(g=[0,0,0]),c||(c=[0,0,0]),A||(A=[0,0,0]),d||(d=[0,0,0,1]),D||(D=[0,0,0,1]),!l(y,w)||(s(b,y),b[3]=0,b[7]=0,b[11]=0,b[15]=1,Math.abs(f(b)<1e-8)))return!1;var E=y[3],R=y[7],N=y[11],I=y[12],F=y[13],L=y[14],P=y[15];if(E!==0||R!==0||N!==0){T[0]=E,T[1]=R,T[2]=N,T[3]=P;var O=h(b,b);if(!O)return!1;p(b,b),S(d,T,b)}else d[0]=d[1]=d[2]=0,d[3]=1;if(g[0]=I,g[1]=F,g[2]=L,x(m,y),c[0]=_.length(m[0]),_.normalize(m[0],m[0]),A[0]=_.dot(m[0],m[1]),M(m[1],m[1],m[0],1,-A[0]),c[1]=_.length(m[1]),_.normalize(m[1],m[1]),A[0]/=c[1],A[1]=_.dot(m[0],m[2]),M(m[2],m[2],m[0],1,-A[1]),A[2]=_.dot(m[1],m[2]),M(m[2],m[2],m[1],1,-A[2]),c[2]=_.length(m[2]),_.normalize(m[2],m[2]),A[1]/=c[2],A[2]/=c[2],_.cross(k,m[1],m[2]),_.dot(m[0],k)<0)for(var B=0;B<3;B++)c[B]*=-1,m[B][0]*=-1,m[B][1]*=-1,m[B][2]*=-1;return D[0]=.5*Math.sqrt(Math.max(1+m[0][0]-m[1][1]-m[2][2],0)),D[1]=.5*Math.sqrt(Math.max(1-m[0][0]+m[1][1]-m[2][2],0)),D[2]=.5*Math.sqrt(Math.max(1-m[0][0]-m[1][1]+m[2][2],0)),D[3]=.5*Math.sqrt(Math.max(1+m[0][0]+m[1][1]+m[2][2],0)),m[2][1]>m[1][2]&&(D[0]=-D[0]),m[0][2]>m[2][0]&&(D[1]=-D[1]),m[1][0]>m[0][1]&&(D[2]=-D[2]),!0};function S(v,w,g){var c=w[0],A=w[1],d=w[2],D=w[3];return v[0]=g[0]*c+g[4]*A+g[8]*d+g[12]*D,v[1]=g[1]*c+g[5]*A+g[9]*d+g[13]*D,v[2]=g[2]*c+g[6]*A+g[10]*d+g[14]*D,v[3]=g[3]*c+g[7]*A+g[11]*d+g[15]*D,v}function x(v,w){v[0][0]=w[0],v[0][1]=w[1],v[0][2]=w[2],v[1][0]=w[4],v[1][1]=w[5],v[1][2]=w[6],v[2][0]=w[8],v[2][1]=w[9],v[2][2]=w[10]}function M(v,w,g,c,A){v[0]=w[0]*c+g[0]*A,v[1]=w[1]*c+g[1]*A,v[2]=w[2]*c+g[2]*A}}),4335:(function(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}}),7442:(function(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),h=i(8648),p=T(),_=T(),y=T();a.exports=b;function b(S,x,M,v){if(f(x)===0||f(M)===0)return!1;var w=s(x,p.translate,p.scale,p.skew,p.perspective,p.quaternion),g=s(M,_.translate,_.scale,_.skew,_.perspective,_.quaternion);return!w||!g?!1:(l(y.translate,p.translate,_.translate,v),l(y.skew,p.skew,_.skew,v),l(y.scale,p.scale,_.scale,v),l(y.perspective,p.perspective,_.perspective,v),h(y.quaternion,p.quaternion,_.quaternion,v),u(S,y.translate,y.scale,y.skew,y.perspective,y.quaternion),!0)}function T(){return{translate:m(),scale:m(1),skew:m(),perspective:k(),quaternion:k()}}function m(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}}),7182:(function(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(h,p,_,y,b,T){return l.identity(h),l.fromRotationTranslation(h,T,p),h[3]=b[0],h[7]=b[1],h[11]=b[2],h[15]=b[3],l.identity(s),y[2]!==0&&(s[9]=y[2],l.multiply(h,h,s)),y[1]!==0&&(s[9]=0,s[8]=y[1],l.multiply(h,h,s)),y[0]!==0&&(s[8]=0,s[4]=y[0],l.multiply(h,h,s)),l.scale(h,h,_),h}}),1811:(function(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),h=i(2408),p=i(7089),_=i(6582),y=i(7656),b=i(2504),T=i(3536),m=[0,0,0];a.exports=M;function k(v){this._components=v.slice(),this._time=[0],this.prevMatrix=v.slice(),this.nextMatrix=v.slice(),this.computedMatrix=v.slice(),this.computedInverse=v.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var S=k.prototype;S.recalcMatrix=function(v){var w=this._time,g=l.le(w,v),c=this.computedMatrix;if(!(g<0)){var A=this._components;if(g===w.length-1)for(var d=16*g,D=0;D<16;++D)c[D]=A[d++];else{for(var E=w[g+1]-w[g],d=16*g,R=this.prevMatrix,N=!0,D=0;D<16;++D)R[D]=A[d++];for(var I=this.nextMatrix,D=0;D<16;++D)I[D]=A[d++],N=N&&R[D]===I[D];if(E<1e-6||N)for(var D=0;D<16;++D)c[D]=R[D];else u(c,R,I,(v-w[g])/E)}var F=this.computedUp;F[0]=c[1],F[1]=c[5],F[2]=c[9],T(F,F);var L=this.computedInverse;s(L,c);var P=this.computedEye,O=L[15];P[0]=L[12]/O,P[1]=L[13]/O,P[2]=L[14]/O;for(var B=this.computedCenter,X=Math.exp(this.computedRadius[0]),D=0;D<3;++D)B[D]=P[D]-c[2+4*D]*X}},S.idle=function(v){if(!(v1&&l(s[_[m-2]],s[_[m-1]],T)<=0;)m-=1,_.pop();for(_.push(b),m=y.length;m>1&&l(s[y[m-2]],s[y[m-1]],T)>=0;)m-=1,y.pop();y.push(b)}for(var k=new Array(y.length+_.length-2),S=0,h=0,x=_.length;h0;--M)k[S++]=y[M];return k}}),351:(function(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var h=0,p=0,_=0,y={shift:!1,alt:!1,control:!1,meta:!1},b=!1;function T(d){var D=!1;return"altKey"in d&&(D=D||d.altKey!==y.alt,y.alt=!!d.altKey),"shiftKey"in d&&(D=D||d.shiftKey!==y.shift,y.shift=!!d.shiftKey),"ctrlKey"in d&&(D=D||d.ctrlKey!==y.control,y.control=!!d.ctrlKey),"metaKey"in d&&(D=D||d.metaKey!==y.meta,y.meta=!!d.metaKey),D}function m(d,D){var E=l.x(D),R=l.y(D);"buttons"in D&&(d=D.buttons|0),(d!==h||E!==p||R!==_||T(D))&&(h=d|0,p=E||0,_=R||0,f&&f(h,p,_,y))}function k(d){m(0,d)}function S(){(h||p||_||y.shift||y.alt||y.meta||y.control)&&(p=_=0,h=0,y.shift=y.alt=y.control=y.meta=!1,f&&f(0,0,0,y))}function x(d){T(d)&&f&&f(h,p,_,y)}function M(d){l.buttons(d)===0?m(0,d):m(h,d)}function v(d){m(h|l.buttons(d),d)}function w(d){m(h&~l.buttons(d),d)}function g(){b||(b=!0,s.addEventListener("mousemove",M),s.addEventListener("mousedown",v),s.addEventListener("mouseup",w),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",x),s.addEventListener("keydown",x),s.addEventListener("keypress",x),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",x),window.addEventListener("keydown",x),window.addEventListener("keypress",x)))}function c(){b&&(b=!1,s.removeEventListener("mousemove",M),s.removeEventListener("mousedown",v),s.removeEventListener("mouseup",w),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",x),s.removeEventListener("keydown",x),s.removeEventListener("keypress",x),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",x),window.removeEventListener("keydown",x),window.removeEventListener("keypress",x)))}g();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return b},set:function(d){d?g():c()},enumerable:!0},buttons:{get:function(){return h},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return _},enumerable:!0},mods:{get:function(){return y},enumerable:!0}}),A}}),24:(function(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var h=u.clientX||0,p=u.clientY||0,_=l(s);return f[0]=h-_.left,f[1]=p-_.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}}),4687:(function(a,o){"use strict";function i(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var h=f.which;if(h===2)return 4;if(h===3)return 2;if(h>0)return 1<=0)return 1<0){if($=1,q[oe++]=y(g[D],S,x,M),D+=O,v>0)for(X=1,E=g[D],Z=q[oe]=y(E,S,x,M),V=q[oe+se],ne=q[oe+re],ke=q[oe+ue],(Z!==V||Z!==ne||Z!==ke)&&(N=g[D+R],F=g[D+I],P=g[D+L],p(X,$,E,N,F,P,Z,V,ne,ke,S,x,M),Me=Q[oe]=ee++),oe+=1,D+=O,X=2;X0)for(X=1,E=g[D],Z=q[oe]=y(E,S,x,M),V=q[oe+se],ne=q[oe+re],ke=q[oe+ue],(Z!==V||Z!==ne||Z!==ke)&&(N=g[D+R],F=g[D+I],P=g[D+L],p(X,$,E,N,F,P,Z,V,ne,ke,S,x,M),Me=Q[oe]=ee++,ke!==ne&&_(Q[oe+re],Me,F,P,ne,ke,S,x,M)),oe+=1,D+=O,X=2;X0){if(X=1,q[oe++]=y(g[D],S,x,M),D+=O,w>0)for($=1,E=g[D],Z=q[oe]=y(E,S,x,M),ne=q[oe+re],V=q[oe+se],ke=q[oe+ue],(Z!==ne||Z!==V||Z!==ke)&&(N=g[D+R],F=g[D+I],P=g[D+L],p(X,$,E,N,F,P,Z,ne,V,ke,S,x,M),Me=Q[oe]=ee++),oe+=1,D+=O,$=2;$0)for($=1,E=g[D],Z=q[oe]=y(E,S,x,M),ne=q[oe+re],V=q[oe+se],ke=q[oe+ue],(Z!==ne||Z!==V||Z!==ke)&&(N=g[D+R],F=g[D+I],P=g[D+L],p(X,$,E,N,F,P,Z,ne,V,ke,S,x,M),Me=Q[oe]=ee++,ke!==ne&&_(Q[oe+re],Me,P,N,ke,ne,S,x,M)),oe+=1,D+=O,$=2;$ 0"),typeof h.vertex!="function"&&p("Must specify vertex creation function"),typeof h.cell!="function"&&p("Must specify cell creation function"),typeof h.phase!="function"&&p("Must specify phase function");for(var T=h.getters||[],m=new Array(y),k=0;k=0?m[k]=!0:m[k]=!1;return s(h.vertex,h.cell,h.phase,b,_,m)}}),6199:(function(a,o,i){"use strict";var l=i(1338),u={zero:function(M,v,w,g){var c=M[0],A=w[0];g|=0;var d=0,D=A;for(d=0;d2&&d[1]>2&&g(A.pick(-1,-1).lo(1,1).hi(d[0]-2,d[1]-2),c.pick(-1,-1,0).lo(1,1).hi(d[0]-2,d[1]-2),c.pick(-1,-1,1).lo(1,1).hi(d[0]-2,d[1]-2)),d[1]>2&&(w(A.pick(0,-1).lo(1).hi(d[1]-2),c.pick(0,-1,1).lo(1).hi(d[1]-2)),v(c.pick(0,-1,0).lo(1).hi(d[1]-2))),d[1]>2&&(w(A.pick(d[0]-1,-1).lo(1).hi(d[1]-2),c.pick(d[0]-1,-1,1).lo(1).hi(d[1]-2)),v(c.pick(d[0]-1,-1,0).lo(1).hi(d[1]-2))),d[0]>2&&(w(A.pick(-1,0).lo(1).hi(d[0]-2),c.pick(-1,0,0).lo(1).hi(d[0]-2)),v(c.pick(-1,0,1).lo(1).hi(d[0]-2))),d[0]>2&&(w(A.pick(-1,d[1]-1).lo(1).hi(d[0]-2),c.pick(-1,d[1]-1,0).lo(1).hi(d[0]-2)),v(c.pick(-1,d[1]-1,1).lo(1).hi(d[0]-2))),c.set(0,0,0,0),c.set(0,0,1,0),c.set(d[0]-1,0,0,0),c.set(d[0]-1,0,1,0),c.set(0,d[1]-1,0,0),c.set(0,d[1]-1,1,0),c.set(d[0]-1,d[1]-1,0,0),c.set(d[0]-1,d[1]-1,1,0),c}}function x(M){var v=M.join(),d=y[v];if(d)return d;for(var w=M.length,g=[T,m],c=1;c<=w;++c)g.push(k(c));var A=S,d=A.apply(void 0,g);return y[v]=d,d}a.exports=function(v,w,g){if(Array.isArray(g)||(typeof g=="string"?g=l(w.dimension,g):g=l(w.dimension,"clamp")),w.size===0)return v;if(w.dimension===0)return v.set(0),v;var c=x(g);return c(v,w)}}),4317:(function(a){"use strict";function o(f,h){var p=Math.floor(h),_=h-p,y=0<=p&&p0;){F<64?(v=F,F=0):(v=64,F-=64);for(var L=y[1]|0;L>0;){L<64?(w=L,L=0):(w=64,L-=64),m=N+F*c+L*A,x=I+F*D+L*E;var P=0,O=0,B=0,X=d,$=c-g*d,ee=A-v*c,Y=R,q=D-g*R,Q=E-v*D;for(B=0;B0;){E<64?(v=E,E=0):(v=64,E-=64);for(var R=y[0]|0;R>0;){R<64?(M=R,R=0):(M=64,R-=64),m=d+E*g+R*w,x=D+E*A+R*c;var N=0,I=0,F=g,L=w-v*g,P=A,O=c-v*A;for(I=0;I0;){I<64?(w=I,I=0):(w=64,I-=64);for(var F=y[0]|0;F>0;){F<64?(M=F,F=0):(M=64,F-=64);for(var L=y[1]|0;L>0;){L<64?(v=L,L=0):(v=64,L-=64),m=R+I*A+F*g+L*c,x=N+I*E+F*d+L*D;var P=0,O=0,B=0,X=A,$=g-w*A,ee=c-M*g,Y=E,q=d-w*E,Q=D-M*d;for(B=0;Bk;){P=0,O=N-v;r:for(F=0;FX)break r;O+=d,P+=D}for(P=N,O=N-v,F=0;F>1,L=F-R,P=F+R,O=N,B=L,X=F,$=P,ee=I,Y=S+1,q=x-1,Q=!0,oe,Z,se,j,V,re,H,ne,ue,ye=0,ke=0,Me=0,ge,Ee,Ce,Fe,ie,J,te,ae,ce,pe,ve,xe,me,de,_e,Ae,Ie=A,De=T(Ie),We=T(Ie);Ee=w*O,Ce=w*B,Ae=v;e:for(ge=0;ge0){Z=O,O=B,B=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*$,Ce=w*ee,Ae=v;e:for(ge=0;ge0){Z=$,$=ee,ee=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*O,Ce=w*X,Ae=v;e:for(ge=0;ge0){Z=O,O=X,X=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*B,Ce=w*X,Ae=v;e:for(ge=0;ge0){Z=B,B=X,X=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*O,Ce=w*$,Ae=v;e:for(ge=0;ge0){Z=O,O=$,$=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*X,Ce=w*$,Ae=v;e:for(ge=0;ge0){Z=X,X=$,$=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*B,Ce=w*ee,Ae=v;e:for(ge=0;ge0){Z=B,B=ee,ee=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*B,Ce=w*X,Ae=v;e:for(ge=0;ge0){Z=B,B=X,X=Z;break e}if(Me<0)break e;Ae+=D}Ee=w*$,Ce=w*ee,Ae=v;e:for(ge=0;ge0){Z=$,$=ee,ee=Z;break e}if(Me<0)break e;Ae+=D}for(Ee=w*O,Ce=w*B,Fe=w*X,ie=w*$,J=w*ee,te=w*N,ae=w*F,ce=w*I,_e=0,Ae=v,ge=0;ge0)q--;else if(Me<0){for(Ee=w*re,Ce=w*Y,Fe=w*q,Ae=v,ge=0;ge0)for(;;){H=v+q*w,_e=0;e:for(ge=0;ge0){if(--qI){e:for(;;){for(H=v+Y*w,_e=0,Ae=v,ge=0;ge1&&k?x(m,k[0],k[1]):x(m)}var _={"uint32,1,0":function(b,T){return function(m){var k=m.data,S=m.offset|0,x=m.shape,M=m.stride,v=M[0]|0,w=x[0]|0,g=M[1]|0,c=x[1]|0,A=g,d=g,D=1;w<=32?b(0,w-1,k,S,v,g,w,c,A,d,D):T(0,w-1,k,S,v,g,w,c,A,d,D)}}};function y(b,T){var m=[T,b].join(","),k=_[m],S=f(b,T),x=p(b,T,S);return k(S,x)}a.exports=y}),446:(function(a,o,i){"use strict";var l=i(7640),u={};function s(f){var h=f.order,p=f.dtype,_=[h,p],y=_.join(":"),b=u[y];return b||(u[y]=b=l(h,p)),b(f),f}a.exports=s}),9618:(function(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(T,m){return T[0]-m[0]}function f(){var T=this.stride,m=new Array(T.length),k;for(k=0;k=0&&(g=v|0,w+=A*g,c-=g),new S(this.data,c,A,w)},x.step=function(v){var w=this.shape[0],g=this.stride[0],c=this.offset,A=0,d=Math.ceil;return typeof v=="number"&&(A=v|0,A<0?(c+=g*(w-1),w=d(-w/A)):w=d(w/A),g*=A),new S(this.data,w,g,c)},x.transpose=function(v){v=v===void 0?0:v|0;var w=this.shape,g=this.stride;return new S(this.data,w[v],g[v],this.offset)},x.pick=function(v){var w=[],g=[],c=this.offset;typeof v=="number"&&v>=0?c=c+this.stride[0]*v|0:(w.push(this.shape[0]),g.push(this.stride[0]));var A=m[w.length+1];return A(this.data,w,g,c)},function(v,w,g,c){return new S(v,w[0],g[0],c)}},2:function(T,m,k){function S(M,v,w,g,c,A){this.data=M,this.shape=[v,w],this.stride=[g,c],this.offset=A|0}var x=S.prototype;return x.dtype=T,x.dimension=2,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(x,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),x.set=function(v,w,g){return T==="generic"?this.data.set(this.offset+this.stride[0]*v+this.stride[1]*w,g):this.data[this.offset+this.stride[0]*v+this.stride[1]*w]=g},x.get=function(v,w){return T==="generic"?this.data.get(this.offset+this.stride[0]*v+this.stride[1]*w):this.data[this.offset+this.stride[0]*v+this.stride[1]*w]},x.index=function(v,w){return this.offset+this.stride[0]*v+this.stride[1]*w},x.hi=function(v,w){return new S(this.data,typeof v!="number"||v<0?this.shape[0]:v|0,typeof w!="number"||w<0?this.shape[1]:w|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(v,w){var g=this.offset,c=0,A=this.shape[0],d=this.shape[1],D=this.stride[0],E=this.stride[1];return typeof v=="number"&&v>=0&&(c=v|0,g+=D*c,A-=c),typeof w=="number"&&w>=0&&(c=w|0,g+=E*c,d-=c),new S(this.data,A,d,D,E,g)},x.step=function(v,w){var g=this.shape[0],c=this.shape[1],A=this.stride[0],d=this.stride[1],D=this.offset,E=0,R=Math.ceil;return typeof v=="number"&&(E=v|0,E<0?(D+=A*(g-1),g=R(-g/E)):g=R(g/E),A*=E),typeof w=="number"&&(E=w|0,E<0?(D+=d*(c-1),c=R(-c/E)):c=R(c/E),d*=E),new S(this.data,g,c,A,d,D)},x.transpose=function(v,w){v=v===void 0?0:v|0,w=w===void 0?1:w|0;var g=this.shape,c=this.stride;return new S(this.data,g[v],g[w],c[v],c[w],this.offset)},x.pick=function(v,w){var g=[],c=[],A=this.offset;typeof v=="number"&&v>=0?A=A+this.stride[0]*v|0:(g.push(this.shape[0]),c.push(this.stride[0])),typeof w=="number"&&w>=0?A=A+this.stride[1]*w|0:(g.push(this.shape[1]),c.push(this.stride[1]));var d=m[g.length+1];return d(this.data,g,c,A)},function(v,w,g,c){return new S(v,w[0],w[1],g[0],g[1],c)}},3:function(T,m,k){function S(M,v,w,g,c,A,d,D){this.data=M,this.shape=[v,w,g],this.stride=[c,A,d],this.offset=D|0}var x=S.prototype;return x.dtype=T,x.dimension=3,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(x,"order",{get:function(){var v=Math.abs(this.stride[0]),w=Math.abs(this.stride[1]),g=Math.abs(this.stride[2]);return v>w?w>g?[2,1,0]:v>g?[1,2,0]:[1,0,2]:v>g?[2,0,1]:g>w?[0,1,2]:[0,2,1]}}),x.set=function(v,w,g,c){return T==="generic"?this.data.set(this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g,c):this.data[this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g]=c},x.get=function(v,w,g){return T==="generic"?this.data.get(this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g):this.data[this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g]},x.index=function(v,w,g){return this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g},x.hi=function(v,w,g){return new S(this.data,typeof v!="number"||v<0?this.shape[0]:v|0,typeof w!="number"||w<0?this.shape[1]:w|0,typeof g!="number"||g<0?this.shape[2]:g|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},x.lo=function(v,w,g){var c=this.offset,A=0,d=this.shape[0],D=this.shape[1],E=this.shape[2],R=this.stride[0],N=this.stride[1],I=this.stride[2];return typeof v=="number"&&v>=0&&(A=v|0,c+=R*A,d-=A),typeof w=="number"&&w>=0&&(A=w|0,c+=N*A,D-=A),typeof g=="number"&&g>=0&&(A=g|0,c+=I*A,E-=A),new S(this.data,d,D,E,R,N,I,c)},x.step=function(v,w,g){var c=this.shape[0],A=this.shape[1],d=this.shape[2],D=this.stride[0],E=this.stride[1],R=this.stride[2],N=this.offset,I=0,F=Math.ceil;return typeof v=="number"&&(I=v|0,I<0?(N+=D*(c-1),c=F(-c/I)):c=F(c/I),D*=I),typeof w=="number"&&(I=w|0,I<0?(N+=E*(A-1),A=F(-A/I)):A=F(A/I),E*=I),typeof g=="number"&&(I=g|0,I<0?(N+=R*(d-1),d=F(-d/I)):d=F(d/I),R*=I),new S(this.data,c,A,d,D,E,R,N)},x.transpose=function(v,w,g){v=v===void 0?0:v|0,w=w===void 0?1:w|0,g=g===void 0?2:g|0;var c=this.shape,A=this.stride;return new S(this.data,c[v],c[w],c[g],A[v],A[w],A[g],this.offset)},x.pick=function(v,w,g){var c=[],A=[],d=this.offset;typeof v=="number"&&v>=0?d=d+this.stride[0]*v|0:(c.push(this.shape[0]),A.push(this.stride[0])),typeof w=="number"&&w>=0?d=d+this.stride[1]*w|0:(c.push(this.shape[1]),A.push(this.stride[1])),typeof g=="number"&&g>=0?d=d+this.stride[2]*g|0:(c.push(this.shape[2]),A.push(this.stride[2]));var D=m[c.length+1];return D(this.data,c,A,d)},function(v,w,g,c){return new S(v,w[0],w[1],w[2],g[0],g[1],g[2],c)}},4:function(T,m,k){function S(M,v,w,g,c,A,d,D,E,R){this.data=M,this.shape=[v,w,g,c],this.stride=[A,d,D,E],this.offset=R|0}var x=S.prototype;return x.dtype=T,x.dimension=4,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(x,"order",{get:k}),x.set=function(v,w,g,c,A){return T==="generic"?this.data.set(this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c,A):this.data[this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c]=A},x.get=function(v,w,g,c){return T==="generic"?this.data.get(this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c):this.data[this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c]},x.index=function(v,w,g,c){return this.offset+this.stride[0]*v+this.stride[1]*w+this.stride[2]*g+this.stride[3]*c},x.hi=function(v,w,g,c){return new S(this.data,typeof v!="number"||v<0?this.shape[0]:v|0,typeof w!="number"||w<0?this.shape[1]:w|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof c!="number"||c<0?this.shape[3]:c|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},x.lo=function(v,w,g,c){var A=this.offset,d=0,D=this.shape[0],E=this.shape[1],R=this.shape[2],N=this.shape[3],I=this.stride[0],F=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof v=="number"&&v>=0&&(d=v|0,A+=I*d,D-=d),typeof w=="number"&&w>=0&&(d=w|0,A+=F*d,E-=d),typeof g=="number"&&g>=0&&(d=g|0,A+=L*d,R-=d),typeof c=="number"&&c>=0&&(d=c|0,A+=P*d,N-=d),new S(this.data,D,E,R,N,I,F,L,P,A)},x.step=function(v,w,g,c){var A=this.shape[0],d=this.shape[1],D=this.shape[2],E=this.shape[3],R=this.stride[0],N=this.stride[1],I=this.stride[2],F=this.stride[3],L=this.offset,P=0,O=Math.ceil;return typeof v=="number"&&(P=v|0,P<0?(L+=R*(A-1),A=O(-A/P)):A=O(A/P),R*=P),typeof w=="number"&&(P=w|0,P<0?(L+=N*(d-1),d=O(-d/P)):d=O(d/P),N*=P),typeof g=="number"&&(P=g|0,P<0?(L+=I*(D-1),D=O(-D/P)):D=O(D/P),I*=P),typeof c=="number"&&(P=c|0,P<0?(L+=F*(E-1),E=O(-E/P)):E=O(E/P),F*=P),new S(this.data,A,d,D,E,R,N,I,F,L)},x.transpose=function(v,w,g,c){v=v===void 0?0:v|0,w=w===void 0?1:w|0,g=g===void 0?2:g|0,c=c===void 0?3:c|0;var A=this.shape,d=this.stride;return new S(this.data,A[v],A[w],A[g],A[c],d[v],d[w],d[g],d[c],this.offset)},x.pick=function(v,w,g,c){var A=[],d=[],D=this.offset;typeof v=="number"&&v>=0?D=D+this.stride[0]*v|0:(A.push(this.shape[0]),d.push(this.stride[0])),typeof w=="number"&&w>=0?D=D+this.stride[1]*w|0:(A.push(this.shape[1]),d.push(this.stride[1])),typeof g=="number"&&g>=0?D=D+this.stride[2]*g|0:(A.push(this.shape[2]),d.push(this.stride[2])),typeof c=="number"&&c>=0?D=D+this.stride[3]*c|0:(A.push(this.shape[3]),d.push(this.stride[3]));var E=m[A.length+1];return E(this.data,A,d,D)},function(v,w,g,c){return new S(v,w[0],w[1],w[2],w[3],g[0],g[1],g[2],g[3],c)}},5:function(m,k,S){function x(v,w,g,c,A,d,D,E,R,N,I,F){this.data=v,this.shape=[w,g,c,A,d],this.stride=[D,E,R,N,I],this.offset=F|0}var M=x.prototype;return M.dtype=m,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:S}),M.set=function(w,g,c,A,d,D){return m==="generic"?this.data.set(this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d,D):this.data[this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d]=D},M.get=function(w,g,c,A,d){return m==="generic"?this.data.get(this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d):this.data[this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d]},M.index=function(w,g,c,A,d){return this.offset+this.stride[0]*w+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*d},M.hi=function(w,g,c,A,d){return new x(this.data,typeof w!="number"||w<0?this.shape[0]:w|0,typeof g!="number"||g<0?this.shape[1]:g|0,typeof c!="number"||c<0?this.shape[2]:c|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof d!="number"||d<0?this.shape[4]:d|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(w,g,c,A,d){var D=this.offset,E=0,R=this.shape[0],N=this.shape[1],I=this.shape[2],F=this.shape[3],L=this.shape[4],P=this.stride[0],O=this.stride[1],B=this.stride[2],X=this.stride[3],$=this.stride[4];return typeof w=="number"&&w>=0&&(E=w|0,D+=P*E,R-=E),typeof g=="number"&&g>=0&&(E=g|0,D+=O*E,N-=E),typeof c=="number"&&c>=0&&(E=c|0,D+=B*E,I-=E),typeof A=="number"&&A>=0&&(E=A|0,D+=X*E,F-=E),typeof d=="number"&&d>=0&&(E=d|0,D+=$*E,L-=E),new x(this.data,R,N,I,F,L,P,O,B,X,$,D)},M.step=function(w,g,c,A,d){var D=this.shape[0],E=this.shape[1],R=this.shape[2],N=this.shape[3],I=this.shape[4],F=this.stride[0],L=this.stride[1],P=this.stride[2],O=this.stride[3],B=this.stride[4],X=this.offset,$=0,ee=Math.ceil;return typeof w=="number"&&($=w|0,$<0?(X+=F*(D-1),D=ee(-D/$)):D=ee(D/$),F*=$),typeof g=="number"&&($=g|0,$<0?(X+=L*(E-1),E=ee(-E/$)):E=ee(E/$),L*=$),typeof c=="number"&&($=c|0,$<0?(X+=P*(R-1),R=ee(-R/$)):R=ee(R/$),P*=$),typeof A=="number"&&($=A|0,$<0?(X+=O*(N-1),N=ee(-N/$)):N=ee(N/$),O*=$),typeof d=="number"&&($=d|0,$<0?(X+=B*(I-1),I=ee(-I/$)):I=ee(I/$),B*=$),new x(this.data,D,E,R,N,I,F,L,P,O,B,X)},M.transpose=function(w,g,c,A,d){w=w===void 0?0:w|0,g=g===void 0?1:g|0,c=c===void 0?2:c|0,A=A===void 0?3:A|0,d=d===void 0?4:d|0;var D=this.shape,E=this.stride;return new x(this.data,D[w],D[g],D[c],D[A],D[d],E[w],E[g],E[c],E[A],E[d],this.offset)},M.pick=function(w,g,c,A,d){var D=[],E=[],R=this.offset;typeof w=="number"&&w>=0?R=R+this.stride[0]*w|0:(D.push(this.shape[0]),E.push(this.stride[0])),typeof g=="number"&&g>=0?R=R+this.stride[1]*g|0:(D.push(this.shape[1]),E.push(this.stride[1])),typeof c=="number"&&c>=0?R=R+this.stride[2]*c|0:(D.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?R=R+this.stride[3]*A|0:(D.push(this.shape[3]),E.push(this.stride[3])),typeof d=="number"&&d>=0?R=R+this.stride[4]*d|0:(D.push(this.shape[4]),E.push(this.stride[4]));var N=k[D.length+1];return N(this.data,D,E,R)},function(w,g,c,A){return new x(w,g[0],g[1],g[2],g[3],g[4],c[0],c[1],c[2],c[3],c[4],A)}}};function p(T,m){var k=m===-1?"T":String(m),S=h[k];return m===-1?S(T):m===0?S(T,y[T][0]):S(T,y[T],f)}function _(T){if(l(T))return"buffer";if(u)switch(Object.prototype.toString.call(T)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(T)?"array":"generic"}var y={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function b(T,m,k,S){if(T===void 0){var c=y.array[0];return c([])}else typeof T=="number"&&(T=[T]);m===void 0&&(m=[T.length]);var x=m.length;if(k===void 0){k=new Array(x);for(var M=x-1,v=1;M>=0;--M)k[M]=v,v*=m[M]}if(S===void 0){S=0;for(var M=0;M>>0;a.exports=f;function f(h,p){if(isNaN(h)||isNaN(p))return NaN;if(h===p)return h;if(h===0)return p<0?-u:u;var _=l.hi(h),y=l.lo(h);return p>h==h>0?y===s?(_+=1,y=0):y+=1:y===0?(y=s,_-=1):y-=1,l.pack(y,_)}}),8406:(function(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var h=s.length,p=new Array(h),_=f===void 0?i:f,y=0;y_)for(var D=p[m],E=1/Math.sqrt(g*A),d=0;d<3;++d){var R=(d+1)%3,N=(d+2)%3;D[d]+=E*(c[R]*w[N]-c[N]*w[R])}}for(var y=0;y_)for(var E=1/Math.sqrt(I),d=0;d<3;++d)D[d]*=E;else for(var d=0;d<3;++d)D[d]=0}return p},o.faceNormals=function(u,s,f){for(var h=u.length,p=new Array(h),_=f===void 0?l:f,y=0;y_?M=1/Math.sqrt(M):M=0;for(var m=0;m<3;++m)x[m]*=M;p[y]=x}return p}}),4081:(function(a){"use strict";a.exports=o;function o(i,l,u,s,f,h,p,_,y,b){var T=l+h+b;if(m>0){var m=Math.sqrt(T+1);i[0]=.5*(p-y)/m,i[1]=.5*(_-s)/m,i[2]=.5*(u-h)/m,i[3]=.5*m}else{var k=Math.max(l,h,b),m=Math.sqrt(2*k-T+1);l>=k?(i[0]=.5*m,i[1]=.5*(f+u)/m,i[2]=.5*(_+s)/m,i[3]=.5*(p-y)/m):h>=k?(i[0]=.5*(u+f)/m,i[1]=.5*m,i[2]=.5*(y+p)/m,i[3]=.5*(_-s)/m):(i[0]=.5*(s+_)/m,i[1]=.5*(p+y)/m,i[2]=.5*m,i[3]=.5*(u-f)/m)}return i}}),9977:(function(a,o,i){"use strict";a.exports=m;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),h=i(4081);function p(k,S,x){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2))}function _(k,S,x,M){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2)+Math.pow(M,2))}function y(k,S){var x=S[0],M=S[1],v=S[2],w=S[3],g=_(x,M,v,w);g>1e-6?(k[0]=x/g,k[1]=M/g,k[2]=v/g,k[3]=w/g):(k[0]=k[1]=k[2]=0,k[3]=1)}function b(k,S,x){this.radius=l([x]),this.center=l(S),this.rotation=l(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var T=b.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;y(S,S);var x=this.computedMatrix;s(x,S);var M=this.computedCenter,v=this.computedEye,w=this.computedUp,g=Math.exp(this.computedRadius[0]);v[0]=M[0]+g*x[2],v[1]=M[1]+g*x[6],v[2]=M[2]+g*x[10],w[0]=x[1],w[1]=x[5],w[2]=x[9];for(var c=0;c<3;++c){for(var A=0,d=0;d<3;++d)A+=x[c+4*d]*v[d];x[12+c]=-A}},T.getMatrix=function(k,S){this.recalcMatrix(k);var x=this.computedMatrix;if(S){for(var M=0;M<16;++M)S[M]=x[M];return S}return x},T.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},T.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},T.pan=function(k,S,x,M){S=S||0,x=x||0,M=M||0,this.recalcMatrix(k);var v=this.computedMatrix,w=v[1],g=v[5],c=v[9],A=p(w,g,c);w/=A,g/=A,c/=A;var d=v[0],D=v[4],E=v[8],R=d*w+D*g+E*c;d-=w*R,D-=g*R,E-=c*R;var N=p(d,D,E);d/=N,D/=N,E/=N;var I=v[2],F=v[6],L=v[10],P=I*w+F*g+L*c,O=I*d+F*D+L*E;I-=P*w+O*d,F-=P*g+O*D,L-=P*c+O*E;var B=p(I,F,L);I/=B,F/=B,L/=B;var X=d*S+w*x,$=D*S+g*x,ee=E*S+c*x;this.center.move(k,X,$,ee);var Y=Math.exp(this.computedRadius[0]);Y=Math.max(1e-4,Y+M),this.radius.set(k,Math.log(Y))},T.rotate=function(k,S,x,M){this.recalcMatrix(k),S=S||0,x=x||0;var v=this.computedMatrix,w=v[0],g=v[4],c=v[8],A=v[1],d=v[5],D=v[9],E=v[2],R=v[6],N=v[10],I=S*w+x*A,F=S*g+x*d,L=S*c+x*D,P=-(R*L-N*F),O=-(N*I-E*L),B=-(E*F-R*I),X=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(O,2)-Math.pow(B,2))),$=_(P,O,B,X);$>1e-6?(P/=$,O/=$,B/=$,X/=$):(P=O=B=0,X=1);var ee=this.computedRotation,Y=ee[0],q=ee[1],Q=ee[2],oe=ee[3],Z=Y*X+oe*P+q*B-Q*O,se=q*X+oe*O+Q*P-Y*B,j=Q*X+oe*B+Y*O-q*P,V=oe*X-Y*P-q*O-Q*B;if(M){P=E,O=R,B=N;var re=Math.sin(M)/p(P,O,B);P*=re,O*=re,B*=re,X=Math.cos(S),Z=Z*X+V*P+se*B-j*O,se=se*X+V*O+j*P-Z*B,j=j*X+V*B+Z*O-se*P,V=V*X-Z*P-se*O-j*B}var H=_(Z,se,j,V);H>1e-6?(Z/=H,se/=H,j/=H,V/=H):(Z=se=j=0,V=1),this.rotation.set(k,Z,se,j,V)},T.lookAt=function(k,S,x,M){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var v=this.computedMatrix;u(v,S,x,M);var w=this.computedRotation;h(w,v[0],v[1],v[2],v[4],v[5],v[6],v[8],v[9],v[10]),y(w,w),this.rotation.set(k,w[0],w[1],w[2],w[3]);for(var g=0,c=0;c<3;++c)g+=Math.pow(x[c]-S[c],2);this.radius.set(k,.5*Math.log(Math.max(g,1e-6))),this.center.set(k,x[0],x[1],x[2])},T.translate=function(k,S,x,M){this.center.move(k,S||0,x||0,M||0)},T.setMatrix=function(k,S){var x=this.computedRotation;h(x,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),y(x,x),this.rotation.set(k,x[0],x[1],x[2],x[3]);var M=this.computedMatrix;f(M,S);var v=M[15];if(Math.abs(v)>1e-6){var w=M[12]/v,g=M[13]/v,c=M[14]/v;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,w-M[2]*A,g-M[6]*A,c-M[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},T.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},T.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},T.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},T.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},T.fromJSON=function(k){var S=this.lastT(),x=k.center;x&&this.center.set(S,x[0],x[1],x[2]);var M=k.rotation;M&&this.rotation.set(S,M[0],M[1],M[2],M[3]);var v=k.distance;v&&v>0&&this.radius.set(S,Math.log(v)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function m(k){k=k||{};var S=k.center||[0,0,0],x=k.rotation||[0,0,0,1],M=k.radius||1;S=[].slice.call(S,0,3),x=[].slice.call(x,0,4),y(x,x);var v=new b(x,S,Math.log(M));return v.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&v.lookAt(0,k.eye,k.center,k.up),v}}),1371:(function(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,h){return h=typeof h!="undefined"?h+"":" ",l(h,f)+s}}),3202:(function(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}}),3088:(function(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var h=f.length|0,p=s.length,_=[new Array(h),new Array(h)],y=0;y0){D=_[N][A][0],R=N;break}E=D[R^1];for(var I=0;I<2;++I)for(var F=_[I][A],L=0;L0&&(D=P,E=O,R=I)}return d||D&&m(D,R),E}function S(c,A){var d=_[A][c][0],D=[c];m(d,A);for(var E=d[A^1],R=A;;){for(;E!==c;)D.push(E),E=k(D[D.length-2],E,!1);if(_[0][c].length+_[1][c].length===0)break;var N=D[D.length-1],I=c,F=D[1],L=k(N,I,!0);if(l(f[N],f[I],f[F],f[L])<0)break;D.push(c),E=k(N,I)}return D}function x(c,A){return A[1]===A[A.length-1]}for(var y=0;y0;){var w=_[0][y].length,g=S(y,M);x(v,g)?v.push.apply(v,g):(v.length>0&&T.push(v),v=g)}v.length>0&&T.push(v)}return T}}),5609:(function(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var h=l(s,f.length),p=new Array(f.length),_=new Array(f.length),y=[],b=0;b0;){var m=y.pop();p[m]=!1;for(var k=h[m],b=0;b0}w=w.filter(g);for(var c=w.length,A=new Array(c),d=new Array(c),v=0;v0;){var H=j.pop(),ne=$[H];p(ne,function(ge,Ee){return ge-Ee});var ue=ne.length,ye=V[H],ke;if(ye===0){var F=w[H];ke=[F]}for(var v=0;v=0)&&(V[Me]=ye^1,j.push(Me),ye===0)){var F=w[Me];se(F)||(F.reverse(),ke.push(F))}}ye===0&&re.push(ke)}return re}}),5085:(function(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function h(){return!0}function p(S){return function(x,M){var v=S[x];return v?!!v.queryPoint(M,h):!1}}function _(S){for(var x={},M=0;M0&&x[v]===M[0])w=S[v-1];else return 1;for(var g=1;w;){var c=w.key,A=l(M,c[0],c[1]);if(c[0][0]0)g=-1,w=w.right;else return 0;else if(A>0)w=w.left;else if(A<0)g=1,w=w.right;else return 0}return g}}function b(S){return 1}function T(S){return function(M){return S(M[0],M[1])?0:1}}function m(S,x){return function(v){return S(v[0],v[1])?0:x(v)}}function k(S){for(var x=S.length,M=[],v=[],w=0,g=0;g=b?(c=1,d=b+2*k+x):(c=-k/b,d=k*c+x)):(c=0,S>=0?(A=0,d=x):-S>=m?(A=1,d=m+2*S+x):(A=-S/m,d=S*A+x));else if(A<0)A=0,k>=0?(c=0,d=x):-k>=b?(c=1,d=b+2*k+x):(c=-k/b,d=k*c+x);else{var D=1/g;c*=D,A*=D,d=c*(b*c+T*A+2*k)+A*(T*c+m*A+2*S)+x}else{var E,R,N,I;c<0?(E=T+k,R=m+S,R>E?(N=R-E,I=b-2*T+m,N>=I?(c=1,A=0,d=b+2*k+x):(c=N/I,A=1-c,d=c*(b*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)):(c=0,R<=0?(A=1,d=m+2*S+x):S>=0?(A=0,d=x):(A=-S/m,d=S*A+x))):A<0?(E=T+S,R=b+k,R>E?(N=R-E,I=b-2*T+m,N>=I?(A=1,c=0,d=m+2*S+x):(A=N/I,c=1-A,d=c*(b*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)):(A=0,R<=0?(c=1,d=b+2*k+x):k>=0?(c=0,d=x):(c=-k/b,d=k*c+x))):(N=m+S-T-k,N<=0?(c=0,A=1,d=m+2*S+x):(I=b-2*T+m,N>=I?(c=1,A=0,d=b+2*k+x):(c=N/I,A=1-c,d=c*(b*c+T*A+2*k)+A*(T*c+m*A+2*S)+x)))}for(var F=1-c-A,y=0;y0){var m=h[_-1];if(l(b,m)===0&&s(m)!==T){_-=1;continue}}h[_++]=b}}return h.length=_,h}}),3233:(function(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}}),3025:(function(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}),7004:(function(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var h=u,p=i[f];u=h+p;var _=u-h,y=p-_;y&&(i[--s]=u,u=y)}for(var b=0,f=s;f0){if(R<=0)return N;I=E+R}else if(E<0){if(R>=0)return N;I=-(E+R)}else return N;var F=_*I;return N>=F||N<=-F?N:S(A,d,D)},function(A,d,D,E){var R=A[0]-E[0],N=d[0]-E[0],I=D[0]-E[0],F=A[1]-E[1],L=d[1]-E[1],P=D[1]-E[1],O=A[2]-E[2],B=d[2]-E[2],X=D[2]-E[2],$=N*P,ee=I*L,Y=I*F,q=R*P,Q=R*L,oe=N*F,Z=O*($-ee)+B*(Y-q)+X*(Q-oe),se=(Math.abs($)+Math.abs(ee))*Math.abs(O)+(Math.abs(Y)+Math.abs(q))*Math.abs(B)+(Math.abs(Q)+Math.abs(oe))*Math.abs(X),j=y*se;return Z>j||-Z>j?Z:x(A,d,D,E)}];function v(c){var A=M[c.length];return A||(A=M[c.length]=k(c.length)),A.apply(void 0,c)}function w(c,A,d,D,E,R,N){return function(F,L,P,O,B){switch(arguments.length){case 0:case 1:return 0;case 2:return D(F,L);case 3:return E(F,L,P);case 4:return R(F,L,P,O);case 5:return N(F,L,P,O,B)}for(var X=new Array(arguments.length),$=0;$0&&b>0||y<0&&b<0)return!1;var T=l(p,f,h),m=l(_,f,h);return T>0&&m>0||T<0&&m<0?!1:y===0&&b===0&&T===0&&m===0?u(f,h,p,_):!0}}),8545:(function(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,h=s-f,p=u-f,_=l-h,y=_+p;return y?[y,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var h=s+f,p=new Array(h),_=0,y=0,b=0,T=Math.abs,m=l[y],k=T(m),S=-u[b],x=T(S),M,v;k=f?(M=m,y+=1,y=f?(M=m,y+=1,y>1,S=h[2*k+1];if(S===b)return k;b>1,S=h[2*k+1];if(S===b)return k;b>1,S=h[2*k+1];if(S===b)return k;b>1,S=h[2*k+1];if(S===b)return k;b>1,I=_(A[N],d);I<=0?(I===0&&(R=N),D=N+1):I>0&&(E=N-1)}return R}l=m;function k(A,d){for(var D=new Array(A.length),E=0,R=D.length;E=A.length||_(A[$],N)!==0););}return D}l=k;function S(A,d){if(!d)return k(T(M(A,0)),A,0);for(var D=new Array(d),E=0;E>>P&1&&L.push(R[P]);d.push(L)}return b(d)}l=x;function M(A,d){if(d<0)return[];for(var D=[],E=(1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,h=(s>255)<<3,s>>>=h,f|=h,h=(s>15)<<2,s>>>=h,f|=h,h=(s>3)<<1,s>>>=h,f|=h,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var h=f,p=f,_=7;for(h>>>=1;h;h>>>=1)p<<=1,p|=h&1,--_;s[f]=p<<_&255}})(u),o.reverse=function(s){return u[s&255]<<24|u[s>>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,h){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,h&=1023,h=(h|h<<16)&4278190335,h=(h|h<<8)&251719695,h=(h|h<<4)&3272356035,h=(h|h<<2)&1227133513,s|h<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}}),2014:(function(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(c){for(var A=0,d=Math.max,D=0,E=c.length;D>1,N=p(c[R],A);N<=0?(N===0&&(E=R),d=R+1):N>0&&(D=R-1)}return E}o.findCell=T;function m(c,A){for(var d=new Array(c.length),D=0,E=d.length;D=c.length||p(c[X],R)!==0););}return d}o.incidence=m;function k(c,A){if(!A)return m(b(x(c,0)),c,0);for(var d=new Array(A),D=0;D>>L&1&&F.push(E[L]);A.push(F)}return y(A)}o.explode=S;function x(c,A){if(A<0)return[];for(var d=[],D=(1<>1:(q>>1)-1}function D(q){for(var Q=A(q);;){var oe=Q,Z=2*q+1,se=2*(q+1),j=q;if(Z0;){var oe=d(q);if(oe>=0){var Z=A(oe);if(Q0){var q=F[0];return c(0,O-1),O-=1,D(0),q}return-1}function N(q,Q){var oe=F[q];return k[oe]===Q?q:(k[oe]=-1/0,E(q),R(),k[oe]=Q,O+=1,E(O-1))}function I(q){if(!S[q]){S[q]=!0;var Q=T[q],oe=m[q];T[oe]>=0&&(T[oe]=Q),m[Q]>=0&&(m[Q]=oe),L[Q]>=0&&N(L[Q],g(Q)),L[oe]>=0&&N(L[oe],g(oe))}}for(var F=[],L=new Array(y),x=0;x>1;x>=0;--x)D(x);for(;;){var B=R();if(B<0||k[B]>_)break;I(B)}for(var X=[],x=0;x=0&&oe>=0&&Q!==oe){var Z=L[Q],se=L[oe];Z!==se&&Y.push([Z,se])}}),u.unique(u.normalize(Y)),{positions:X,edges:Y}}}),1303:(function(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,h){var p,_;if(h[0][0]h[1][0])p=h[1],_=h[0];else{var y=Math.min(f[0][1],f[1][1]),b=Math.max(f[0][1],f[1][1]),T=Math.min(h[0][1],h[1][1]),m=Math.max(h[0][1],h[1][1]);return bm?y-m:b-m}var k,S;f[0][1]h[1][0])p=h[1],_=h[0];else return u(h,f);var y,b;if(f[0][0]f[1][0])y=f[1],b=f[0];else return-u(f,h);var T=l(p,_,b),m=l(p,_,y);if(T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;if(T=l(b,y,_),m=l(b,y,p),T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;return _[0]-b[0]}}),4209:(function(a,o,i){"use strict";a.exports=m;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function h(k,S,x){this.slabs=k,this.coordinates=S,this.horizontal=x}var p=h.prototype;function _(k,S){return k.y-S}function y(k,S){for(var x=null;k;){var M=k.key,v,w;M[0][0]0)if(S[0]!==M[1][0])x=k,k=k.right;else{var c=y(k.right,S);if(c)return c;k=k.left}else{if(S[0]!==M[1][0])return k;var c=y(k.right,S);if(c)return c;k=k.left}}return x}p.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var x=this.slabs[S],M=y(this.slabs[S],k),v=-1;if(M&&(v=M.value),this.coordinates[S]===k[0]){var w=null;if(M&&(w=M.key),S>0){var g=y(this.slabs[S-1],k);g&&(w?f(g.key,w)>0&&(w=g.key,v=g.value):(v=g.value,w=g.key))}var c=this.horizontal[S];if(c.length>0){var A=l.ge(c,k[1],_);if(A=c.length)return v;d=c[A]}}if(d.start)if(w){var D=s(w[0],w[1],[k[0],d.y]);w[0][0]>w[1][0]&&(D=-D),D>0&&(v=d.index)}else v=d.index;else d.y!==k[1]&&(v=d.index)}}}return v};function b(k,S,x,M){this.y=k,this.index=S,this.start=x,this.closed=M}function T(k,S,x,M){this.x=k,this.segment=S,this.create=x,this.index=M}function m(k){for(var S=k.length,x=2*S,M=new Array(x),v=0;v1&&(S=1);for(var x=1-S,M=y.length,v=new Array(M),w=0;w0||k>0&&v<0){var w=f(S,v,x,k);T.push(w),m.push(w.slice())}v<0?m.push(x.slice()):v>0?T.push(x.slice()):(T.push(x.slice()),m.push(x.slice())),k=v}return{positive:T,negative:m}}function p(y,b){for(var T=[],m=s(y[y.length-1],b),k=y[y.length-1],S=y[0],x=0;x0||m>0&&M<0)&&T.push(f(k,M,S,m)),M>=0&&T.push(S.slice()),m=M}return T}function _(y,b){for(var T=[],m=s(y[y.length-1],b),k=y[y.length-1],S=y[0],x=0;x0||m>0&&M<0)&&T.push(f(k,M,S,m)),M<=0&&T.push(S.slice()),m=M}return T}}),3387:(function(a,o,i){var l;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function s(y){return h(_(y),arguments)}function f(y,b){return s.apply(null,[y].concat(b||[]))}function h(y,b){var T=1,m=y.length,k,S="",x,M,v,w,g,c,A,d;for(x=0;x=0),v.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,v.width?parseInt(v.width):0);break;case"e":k=v.precision?parseFloat(k).toExponential(v.precision):parseFloat(k).toExponential();break;case"f":k=v.precision?parseFloat(k).toFixed(v.precision):parseFloat(k);break;case"g":k=v.precision?String(Number(k.toPrecision(v.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=v.precision?k.substring(0,v.precision):k;break;case"t":k=String(!!k),k=v.precision?k.substring(0,v.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=v.precision?k.substring(0,v.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=v.precision?k.substring(0,v.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(v.type)?S+=k:(u.number.test(v.type)&&(!A||v.sign)?(d=A?"+":"-",k=k.toString().replace(u.sign,"")):d="",g=v.pad_char?v.pad_char==="0"?"0":v.pad_char.charAt(1):" ",c=v.width-(d+k).length,w=v.width&&c>0?g.repeat(c):"",S+=v.align?d+k+w:g==="0"?d+w+k:w+d+k)}return S}var p=Object.create(null);function _(y){if(p[y])return p[y];for(var b=y,T,m=[],k=0;b;){if((T=u.text.exec(b))!==null)m.push(T[0]);else if((T=u.modulo.exec(b))!==null)m.push("%");else if((T=u.placeholder.exec(b))!==null){if(T[2]){k|=1;var S=[],x=T[2],M=[];if((M=u.key.exec(x))!==null)for(S.push(M[1]);(x=x.substring(M[0].length))!=="";)if((M=u.key_access.exec(x))!==null)S.push(M[1]);else if((M=u.index_access.exec(x))!==null)S.push(M[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");T[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:T[0],param_no:T[1],keys:T[2],sign:T[3],pad_char:T[4],align:T[5],width:T[6],precision:T[7],type:T[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");b=b.substring(T[0].length)}return p[y]=m}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=(function(){return{sprintf:s,vsprintf:f}}).call(o,i,o,a),l!==void 0&&(a.exports=l))})()}),3711:(function(a,o,i){"use strict";a.exports=_;var l=i(2640),u=i(781),s={"2d":function(y,b,T){var m=y({order:b,scalarArguments:3,getters:T==="generic"?[0]:void 0,phase:function(S,x,M,v){return S>v|0},vertex:function(S,x,M,v,w,g,c,A,d,D,E,R,N){var I=(c<<0)+(A<<1)+(d<<2)+(D<<3)|0;if(!(I===0||I===15))switch(I){case 0:E.push([S-.5,x-.5]);break;case 1:E.push([S-.25-.25*(v+M-2*N)/(M-v),x-.25-.25*(w+M-2*N)/(M-w)]);break;case 2:E.push([S-.75-.25*(-v-M+2*N)/(v-M),x-.25-.25*(g+v-2*N)/(v-g)]);break;case 3:E.push([S-.5,x-.5-.5*(w+M+g+v-4*N)/(M-w+v-g)]);break;case 4:E.push([S-.25-.25*(g+w-2*N)/(w-g),x-.75-.25*(-w-M+2*N)/(w-M)]);break;case 5:E.push([S-.5-.5*(v+M+g+w-4*N)/(M-v+w-g),x-.5]);break;case 6:E.push([S-.5-.25*(-v-M+g+w)/(v-M+w-g),x-.5-.25*(-w-M+g+v)/(w-M+v-g)]);break;case 7:E.push([S-.75-.25*(g+w-2*N)/(w-g),x-.75-.25*(g+v-2*N)/(v-g)]);break;case 8:E.push([S-.75-.25*(-g-w+2*N)/(g-w),x-.75-.25*(-g-v+2*N)/(g-v)]);break;case 9:E.push([S-.5-.25*(v+M+-g-w)/(M-v+g-w),x-.5-.25*(w+M+-g-v)/(M-w+g-v)]);break;case 10:E.push([S-.5-.5*(-v-M+-g-w+4*N)/(v-M+g-w),x-.5]);break;case 11:E.push([S-.25-.25*(-g-w+2*N)/(g-w),x-.75-.25*(w+M-2*N)/(M-w)]);break;case 12:E.push([S-.5,x-.5-.5*(-w-M+-g-v+4*N)/(w-M+g-v)]);break;case 13:E.push([S-.75-.25*(v+M-2*N)/(M-v),x-.25-.25*(-g-v+2*N)/(g-v)]);break;case 14:E.push([S-.25-.25*(-v-M+2*N)/(v-M),x-.25-.25*(-w-M+2*N)/(w-M)]);break;case 15:E.push([S-.5,x-.5]);break}},cell:function(S,x,M,v,w,g,c,A,d){w?A.push([S,x]):A.push([x,S])}});return function(k,S){var x=[],M=[];return m(k,x,M,S),{positions:x,cells:M}}}};function f(y,b){var T=y.length+"d",m=s[T];if(m)return m(l,y,b)}function h(y,b){for(var T=u(y,b),m=T.length,k=new Array(m),S=new Array(m),x=0;xMath.max(v,w)?g[2]=1:v>Math.max(M,w)?g[0]=1:g[1]=1;for(var c=0,A=0,d=0;d<3;++d)c+=x[d]*x[d],A+=g[d]*x[d];for(var d=0;d<3;++d)g[d]-=A/c*x[d];return h(g,g),g}function T(x,M,v,w,g,c,A,d){this.center=l(v),this.up=l(w),this.right=l(g),this.radius=l([c]),this.angle=l([A,d]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(x,M),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var D=0;D<16;++D)this.computedMatrix[D]=.5;this.recalcMatrix(0)}var m=T.prototype;m.setDistanceLimits=function(x,M){x>0?x=Math.log(x):x=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,x),this.radius.bounds[0][0]=x,this.radius.bounds[1][0]=M},m.getDistanceLimits=function(x){var M=this.radius.bounds[0];return x?(x[0]=Math.exp(M[0][0]),x[1]=Math.exp(M[1][0]),x):[Math.exp(M[0][0]),Math.exp(M[1][0])]},m.recalcMatrix=function(x){this.center.curve(x),this.up.curve(x),this.right.curve(x),this.radius.curve(x),this.angle.curve(x);for(var M=this.computedUp,v=this.computedRight,w=0,g=0,c=0;c<3;++c)g+=M[c]*v[c],w+=M[c]*M[c];for(var A=Math.sqrt(w),d=0,c=0;c<3;++c)v[c]-=M[c]*g/w,d+=v[c]*v[c],M[c]/=A;for(var D=Math.sqrt(d),c=0;c<3;++c)v[c]/=D;var E=this.computedToward;f(E,M,v),h(E,E);for(var R=Math.exp(this.computedRadius[0]),N=this.computedAngle[0],I=this.computedAngle[1],F=Math.cos(N),L=Math.sin(N),P=Math.cos(I),O=Math.sin(I),B=this.computedCenter,X=F*P,$=L*P,ee=O,Y=-F*O,q=-L*O,Q=P,oe=this.computedEye,Z=this.computedMatrix,c=0;c<3;++c){var se=X*v[c]+$*E[c]+ee*M[c];Z[4*c+1]=Y*v[c]+q*E[c]+Q*M[c],Z[4*c+2]=se,Z[4*c+3]=0}var j=Z[1],V=Z[5],re=Z[9],H=Z[2],ne=Z[6],ue=Z[10],ye=V*ue-re*ne,ke=re*H-j*ue,Me=j*ne-V*H,ge=_(ye,ke,Me);ye/=ge,ke/=ge,Me/=ge,Z[0]=ye,Z[4]=ke,Z[8]=Me;for(var c=0;c<3;++c)oe[c]=B[c]+Z[2+4*c]*R;for(var c=0;c<3;++c){for(var d=0,Ee=0;Ee<3;++Ee)d+=Z[c+4*Ee]*oe[Ee];Z[12+c]=-d}Z[15]=1},m.getMatrix=function(x,M){this.recalcMatrix(x);var v=this.computedMatrix;if(M){for(var w=0;w<16;++w)M[w]=v[w];return M}return v};var k=[0,0,0];m.rotate=function(x,M,v,w){if(this.angle.move(x,M,v),w){this.recalcMatrix(x);var g=this.computedMatrix;k[0]=g[2],k[1]=g[6],k[2]=g[10];for(var c=this.computedUp,A=this.computedRight,d=this.computedToward,D=0;D<3;++D)g[4*D]=c[D],g[4*D+1]=A[D],g[4*D+2]=d[D];s(g,g,w,k);for(var D=0;D<3;++D)c[D]=g[4*D],A[D]=g[4*D+1];this.up.set(x,c[0],c[1],c[2]),this.right.set(x,A[0],A[1],A[2])}},m.pan=function(x,M,v,w){M=M||0,v=v||0,w=w||0,this.recalcMatrix(x);var g=this.computedMatrix,c=Math.exp(this.computedRadius[0]),A=g[1],d=g[5],D=g[9],E=_(A,d,D);A/=E,d/=E,D/=E;var R=g[0],N=g[4],I=g[8],F=R*A+N*d+I*D;R-=A*F,N-=d*F,I-=D*F;var L=_(R,N,I);R/=L,N/=L,I/=L;var P=R*M+A*v,O=N*M+d*v,B=I*M+D*v;this.center.move(x,P,O,B);var X=Math.exp(this.computedRadius[0]);X=Math.max(1e-4,X+w),this.radius.set(x,Math.log(X))},m.translate=function(x,M,v,w){this.center.move(x,M||0,v||0,w||0)},m.setMatrix=function(x,M,v,w){var g=1;typeof v=="number"&&(g=v|0),(g<0||g>3)&&(g=1);var c=(g+2)%3,A=(g+1)%3;M||(this.recalcMatrix(x),M=this.computedMatrix);var d=M[g],D=M[g+4],E=M[g+8];if(w){var N=Math.abs(d),I=Math.abs(D),F=Math.abs(E),L=Math.max(N,I,F);N===L?(d=d<0?-1:1,D=E=0):F===L?(E=E<0?-1:1,d=D=0):(D=D<0?-1:1,d=E=0)}else{var R=_(d,D,E);d/=R,D/=R,E/=R}var P=M[c],O=M[c+4],B=M[c+8],X=P*d+O*D+B*E;P-=d*X,O-=D*X,B-=E*X;var $=_(P,O,B);P/=$,O/=$,B/=$;var ee=D*B-E*O,Y=E*P-d*B,q=d*O-D*P,Q=_(ee,Y,q);ee/=Q,Y/=Q,q/=Q,this.center.jump(x,te,ae,ce),this.radius.idle(x),this.up.jump(x,d,D,E),this.right.jump(x,P,O,B);var oe,Z;if(g===2){var se=M[1],j=M[5],V=M[9],re=se*P+j*O+V*B,H=se*ee+j*Y+V*q;ke<0?oe=-Math.PI/2:oe=Math.PI/2,Z=Math.atan2(H,re)}else{var ne=M[2],ue=M[6],ye=M[10],ke=ne*d+ue*D+ye*E,Me=ne*P+ue*O+ye*B,ge=ne*ee+ue*Y+ye*q;oe=Math.asin(y(ke)),Z=Math.atan2(ge,Me)}this.angle.jump(x,Z,oe),this.recalcMatrix(x);var Ee=M[2],Ce=M[6],Fe=M[10],ie=this.computedMatrix;u(ie,M);var J=ie[15],te=ie[12]/J,ae=ie[13]/J,ce=ie[14]/J,pe=Math.exp(this.computedRadius[0]);this.center.jump(x,te-Ee*pe,ae-Ce*pe,ce-Fe*pe)},m.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},m.idle=function(x){this.center.idle(x),this.up.idle(x),this.right.idle(x),this.radius.idle(x),this.angle.idle(x)},m.flush=function(x){this.center.flush(x),this.up.flush(x),this.right.flush(x),this.radius.flush(x),this.angle.flush(x)},m.setDistance=function(x,M){M>0&&this.radius.set(x,Math.log(M))},m.lookAt=function(x,M,v,w){this.recalcMatrix(x),M=M||this.computedEye,v=v||this.computedCenter,w=w||this.computedUp;var g=w[0],c=w[1],A=w[2],d=_(g,c,A);if(!(d<1e-6)){g/=d,c/=d,A/=d;var D=M[0]-v[0],E=M[1]-v[1],R=M[2]-v[2],N=_(D,E,R);if(!(N<1e-6)){D/=N,E/=N,R/=N;var I=this.computedRight,F=I[0],L=I[1],P=I[2],O=g*F+c*L+A*P;F-=O*g,L-=O*c,P-=O*A;var B=_(F,L,P);if(!(B<.01&&(F=c*R-A*E,L=A*D-g*R,P=g*E-c*D,B=_(F,L,P),B<1e-6))){F/=B,L/=B,P/=B,this.up.set(x,g,c,A),this.right.set(x,F,L,P),this.center.set(x,v[0],v[1],v[2]),this.radius.set(x,Math.log(N));var X=c*P-A*L,$=A*F-g*P,ee=g*L-c*F,Y=_(X,$,ee);X/=Y,$/=Y,ee/=Y;var q=g*D+c*E+A*R,Q=F*D+L*E+P*R,oe=X*D+$*E+ee*R,Z=Math.asin(y(q)),se=Math.atan2(oe,Q),j=this.angle._state,V=j[j.length-1],re=j[j.length-2];V=V%(2*Math.PI);var H=Math.abs(V+2*Math.PI-se),ne=Math.abs(V-se),ue=Math.abs(V-2*Math.PI-se);H0?P.pop():new ArrayBuffer(F)}o.mallocArrayBuffer=k;function S(I){return new Uint8Array(k(I),0,I)}o.mallocUint8=S;function x(I){return new Uint16Array(k(2*I),0,I)}o.mallocUint16=x;function M(I){return new Uint32Array(k(4*I),0,I)}o.mallocUint32=M;function v(I){return new Int8Array(k(I),0,I)}o.mallocInt8=v;function w(I){return new Int16Array(k(2*I),0,I)}o.mallocInt16=w;function g(I){return new Int32Array(k(4*I),0,I)}o.mallocInt32=g;function c(I){return new Float32Array(k(4*I),0,I)}o.mallocFloat32=o.mallocFloat=c;function A(I){return new Float64Array(k(8*I),0,I)}o.mallocFloat64=o.mallocDouble=A;function d(I){return f?new Uint8ClampedArray(k(I),0,I):S(I)}o.mallocUint8Clamped=d;function D(I){return h?new BigUint64Array(k(8*I),0,I):null}o.mallocBigUint64=D;function E(I){return p?new BigInt64Array(k(8*I),0,I):null}o.mallocBigInt64=E;function R(I){return new DataView(k(I),0,I)}o.mallocDataView=R;function N(I){I=l.nextPow2(I);var F=l.log2(I),L=b[F];return L.length>0?L.pop():new s(I)}o.mallocBuffer=N,o.clearCache=function(){for(var F=0;F<32;++F)_.UINT8[F].length=0,_.UINT16[F].length=0,_.UINT32[F].length=0,_.INT8[F].length=0,_.INT16[F].length=0,_.INT32[F].length=0,_.FLOAT[F].length=0,_.DOUBLE[F].length=0,_.BIGUINT64[F].length=0,_.BIGINT64[F].length=0,_.UINT8C[F].length=0,y[F].length=0,b[F].length=0}}),1755:(function(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u",P="",O=L.length,B=P.length,X=N[0]===k||N[0]===M,$=0,ee=-B;$>-1&&($=I.indexOf(L,$),!($===-1||(ee=I.indexOf(P,$+O),ee===-1)||ee<=$));){for(var Y=$;Y=ee)F[Y]=null,I=I.substr(0,Y)+" "+I.substr(Y+1);else if(F[Y]!==null){var q=F[Y].indexOf(N[0]);q===-1?F[Y]+=N:X&&(F[Y]=F[Y].substr(0,q+1)+(1+parseInt(F[Y][q+1]))+F[Y].substr(q+2))}var Q=$+O,oe=I.substr(Q,ee-Q),Z=oe.indexOf(L);Z!==-1?$=Z:$=ee+B}return F}function g(R,N,I){for(var F=N.textAlign||"start",L=N.textBaseline||"alphabetic",P=[1<<30,1<<30],O=[0,0],B=R.length,X=0;X/g,` `):I=I.replace(/\/g," ");var O="",B=[];for(V=0;V-1?parseInt(ae[1+ve]):0,de=xe>-1?parseInt(ce[1+xe]):0;me!==de&&(pe=pe.replace(Me(),"?px "),ne*=Math.pow(.75,de-me),pe=pe.replace("?px ",Me())),H+=.25*q*(de-me)}if(P.superscripts===!0){var _e=ae.indexOf(k),Ae=ce.indexOf(k),Ie=_e>-1?parseInt(ae[1+_e]):0,De=Ae>-1?parseInt(ce[1+Ae]):0;Ie!==De&&(pe=pe.replace(Me(),"?px "),ne*=Math.pow(.75,De-Ie),pe=pe.replace("?px ",Me())),H-=.25*q*(De-Ie)}if(P.bolds===!0){var We=ae.indexOf(y)>-1,Oe=ce.indexOf(y)>-1;!We&&Oe&&(ze?pe=pe.replace("italic ","italic bold "):pe="bold "+pe),We&&!Oe&&(pe=pe.replace("bold ",""))}if(P.italics===!0){var ze=ae.indexOf(T)>-1,Be=ce.indexOf(T)>-1;!ze&&Be&&(pe="italic "+pe),ze&&!Be&&(pe=pe.replace("italic ",""))}N.font=pe}for(j=0;j0&&(L=F.size),F.lineSpacing&&F.lineSpacing>0&&(P=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(O.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(O.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(O.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(O.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(O.superscripts=!!F.styletags.superscripts)),I.font=[F.fontStyle,F.fontVariant,F.fontWeight,L+"px",F.font].filter(function(X){return X}).join(" "),I.textAlign="start",I.textBaseline="alphabetic",I.direction="ltr";var B=c(N,I,R,L,P,O);return D(B,F,L)}},1538:function(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(d){d.permitHostObjects___&&d.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var h=Object.prototype.hasOwnProperty,p=Object.getOwnPropertyNames,_=Object.defineProperty,y=Object.isExtensible,b="weakmap:",T=b+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var m=new ArrayBuffer(25),k=new Uint8Array(m);crypto.getRandomValues(k),T=b+"rand:"+Array.prototype.map.call(k,function(d){return(d%36).toString(36)}).join("")+"___"}function S(d){return!(d.substr(0,b.length)==b&&d.substr(d.length-3)==="___")}if(_(Object,"getOwnPropertyNames",{value:function(D){return p(D).filter(S)}}),"getPropertyNames"in Object){var x=Object.getPropertyNames;_(Object,"getPropertyNames",{value:function(D){return x(D).filter(S)}})}function M(d){if(d!==Object(d))throw new TypeError("Not an object: "+d);var D=d[T];if(D&&D.key===d)return D;if(y(d)){D={key:d};try{return _(d,T,{value:D,writable:!1,enumerable:!1,configurable:!1}),D}catch(E){return}}}(function(){var d=Object.freeze;_(Object,"freeze",{value:function(N){return M(N),d(N)}});var D=Object.seal;_(Object,"seal",{value:function(N){return M(N),D(N)}});var E=Object.preventExtensions;_(Object,"preventExtensions",{value:function(N){return M(N),E(N)}})})();function v(d){return d.prototype=null,Object.freeze(d)}var w=!1;function g(){!w&&typeof console!="undefined"&&(w=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var c=0,A=function(){this instanceof A||g();var d=[],D=[],E=c++;function R(L,P){var O,B=M(L);return B?E in B?B[E]:P:(O=d.indexOf(L),O>=0?D[O]:P)}function N(L){var P=M(L);return P?E in P:d.indexOf(L)>=0}function I(L,P){var O,B=M(L);return B?B[E]=P:(O=d.indexOf(L),O>=0?D[O]=P:(O=d.length,D[O]=P,d[O]=L)),this}function F(L){var P=M(L),O,B;return P?E in P&&delete P[E]:(O=d.indexOf(L),O<0?!1:(B=d.length-1,d[O]=void 0,D[O]=D[B],d[O]=d[B],d.length=B,D.length=B,!0))}return Object.create(A.prototype,{get___:{value:v(R)},has___:{value:v(N)},set___:{value:v(I)},delete___:{value:v(F)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(D,E){return this.get___(D,E)},writable:!0,configurable:!0},has:{value:function(D){return this.has___(D)},writable:!0,configurable:!0},set:{value:function(D,E){return this.set___(D,E)},writable:!0,configurable:!0},delete:{value:function(D){return this.delete___(D)},writable:!0,configurable:!0}}),typeof u=="function"?function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function d(){this instanceof A||g();var D=new u,E=void 0,R=!1;function N(P,O){return E?D.has(P)?D.get(P):E.get___(P,O):D.get(P,O)}function I(P){return D.has(P)||(E?E.has___(P):!1)}var F;l?F=function(P,O){return D.set(P,O),D.has(P)||(E||(E=new A),E.set(P,O)),this}:F=function(P,O){if(R)try{D.set(P,O)}catch(B){E||(E=new A),E.set___(P,O)}else D.set(P,O);return this};function L(P){var O=!!D.delete(P);return E&&E.delete___(P)||O}return Object.create(A.prototype,{get___:{value:v(N)},has___:{value:v(I)},set___:{value:v(F)},delete___:{value:v(L)},permitHostObjects___:{value:v(function(P){if(P===i)R=!0;else throw new Error("bogus call to permitHostObjects___")})}})}d.prototype=A.prototype,a.exports=d,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()},236:function(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var h=f.valueOf(s);return h&&h.identity===s?h:l(f,s)}}},8284:function(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}},606:function(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,h){var p=s(f);return p.hasOwnProperty("value")?p.value:h},set:function(f,h){return s(f).value=h,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}},3349:function(a){"use strict";function o(){return function(h,p,_,y,b,T){var m=h[0],k=_[0],S=[0],x=k;y|=0;var M=0,v=k;for(M=0;M=0!=g>=0&&b.push(S[0]+.5+.5*(w+g)/(w-g))}y+=v,++S[0]}}}function i(){return o()}var l=i;function u(h){var p={};return function(y,b,T){var m=y.dtype,k=y.order,S=[m,k.join()].join(),x=p[S];return x||(p[S]=x=h([m,k])),x(y.shape.slice(0),y.data,y.stride,y.offset|0,b,T)}}function s(h){return u(l.bind(void 0,h))}function f(h){return s({funcName:h.funcName})}a.exports=f({funcName:"zeroCrossings"})},781:function(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var h=[];return f=+f||0,l(s.hi(s.shape[0]-1),h,f),h}},7790:function(){}},r={};function t(a){var o=r[a];if(o!==void 0)return o.exports;var i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}(function(){t.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}()})(),function(){t.nmd=function(a){return a.paths=[],a.children||(a.children=[]),a}}();var n=t(1964);IF.exports=n})()});var zF=be((Qde,NF)=>{"use strict";NF.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var UF=be(($de,BF)=>{"use strict";var qF=zF();BF.exports=Sie;var OF={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Sie(e){var r,t=[],n=1,a;if(typeof e=="string")if(e=e.toLowerCase(),qF[e])t=qF[e].slice(),a="rgb";else if(e==="transparent")n=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),i=o.length,l=i<=4;n=1,l?(t=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],i===4&&(n=parseInt(o[3]+o[3],16)/255)):(t=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],i===8&&(n=parseInt(o[6]+o[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=r[1],s=u==="rgb",o=u.replace(/a$/,"");a=o;var i=o==="cmyk"?4:o==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(p,_){if(/%$/.test(p))return _===i?parseFloat(p)/100:o==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(o[_]==="h"){if(/deg$/.test(p))return parseFloat(p);if(OF[p]!==void 0)return OF[p]}return parseFloat(p)}),u===o&&t.push(1),n=s||t[i]===void 0?1:t[i],t=t.slice(0,i)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),a=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(a="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:a,values:t,alpha:n}}});var VF=be((jde,HF)=>{"use strict";var Cie=UF();HF.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,n,a,o=Cie(r);if(!o.space)return[];var i=[0,0,0],l=o.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(o.values[0],i[0]),l[0]),t[1]=Math.min(Math.max(o.values[1],i[1]),l[1]),t[2]=Math.min(Math.max(o.values[2],i[2]),l[2]),o.space[0]==="h"&&(t=Eie(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t};function Eie(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100,a,o,i,l,u,s=0;if(t===0)return u=n*255,[u,u,u];for(o=n<.5?n*(1+t):n+t-n*t,a=2*n-o,l=[0,0,0];s<3;)i=r+1/3*-(s-1),i<0?i++:i>1&&i--,u=6*i<1?a+(o-a)*6*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,l[s++]=u*255;return l}});var YF=be((epe,GF)=>{GF.exports=Lie;function Lie(e,r,t){return rt?t:e:er?r:e}});var XF=be((rpe,WF)=>{WF.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var P3=be((tpe,ZF)=>{"use strict";var Die=VF(),vd=YF(),Rie=XF();ZF.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var n=Rie(t),a=new n(4),o=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=Die(r),r[0]/=255,r[1]/=255,r[2]/=255),Pie(r)?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:255,o&&(a[0]/=255,a[1]/=255,a[2]/=255,a[3]/=255),a):(o?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:1):(a[0]=vd(Math.floor(r[0]*255),0,255),a[1]=vd(Math.floor(r[1]*255),0,255),a[2]=vd(Math.floor(r[2]*255),0,255),a[3]=r[3]==null?255:vd(Math.floor(r[3]*255),0,255)),a)};function Pie(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var wo=be((npe,JF)=>{"use strict";var Fie=P3();function Iie(e){return e?Fie(e):[0,0,0,1]}JF.exports=Iie});var hl=be((ape,tI)=>{"use strict";var eI=nt(),Nie=Sa(),dd=P3(),pd=Ri(),zie=Si().defaultLine,KF=Zn().isArrayOrTypedArray,F3=dd(zie),rI=1;function QF(e,r){var t=e;return t[3]*=r,t}function $F(e){if(eI(e))return F3;var r=dd(e);return r.length?r:F3}function jF(e){return eI(e)?e:rI}function qie(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=KF(n),o=KF(r),i=pd.extractOpts(e),l=[],u,s,f,h,p;if(i.colorscale!==void 0?u=pd.makeColorScaleFuncFromTrace(e):u=$F,a?s=function(y,b){return y[b]===void 0?F3:dd(u(y[b]))}:s=$F,o?f=function(y,b){return y[b]===void 0?rI:jF(y[b])}:f=jF,a||o)for(var _=0;_{"use strict";nI.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var gd=be((ope,aI)=>{"use strict";aI.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var oI=be((lpe,iI)=>{"use strict";var Bie=Tr();function N3(e,r,t,n){if(!r||!r.visible)return null;for(var a=Bie.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i0){var h=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=h),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,h)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function Uie(e){for(var r=0;r{"use strict";var Vie=mn().gl_line3d,lI=mn().gl_scatter3d,Gie=mn().gl_error3d,Yie=mn().gl_mesh3d,Wie=mn().delaunay_triangulate,Mo=er(),hI=wo(),yd=hl().formatColor,Xie=Pg(),z3=I3(),Zie=gd(),Jie=Et(),Kie=fo().appendArrayPointValue,Qie=oI();function vI(e,r){this.scene=e,this.uid=r,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var O3=vI.prototype;O3.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Mo.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function $ie(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l-1?-1:e.indexOf("right")>-1?1:0}function uI(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function eoe(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=$ie(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=Yie(s),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};O3.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function aoe(e,r){var t=new vI(e,r.uid);return t.update(r),t}dI.exports=aoe});var G3=be((upe,xI)=>{"use strict";var To=us(),ioe=Sn(),V3=ni(),B3=uo().axisHoverFormat,{hovertemplateAttrs:ooe,texttemplateAttrs:loe,templatefallbackAttrs:gI}=ja(),yI=Cn(),soe=I3(),uoe=gd(),xi=Tt().extendFlat,foe=On().overrideAll,mI=ah(),coe=To.line,_s=To.marker,hoe=_s.line,voe=xi({width:coe.width,dash:{valType:"enumerated",values:mI(soe),dflt:"solid"}},V3("line"));function U3(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var H3=xI.exports=foe({x:To.x,y:To.y,z:{valType:"data_array"},text:xi({},To.text,{}),texttemplate:loe(),texttemplatefallback:gI({editType:"calc"}),hovertext:xi({},To.hovertext,{}),hovertemplate:ooe(),hovertemplatefallback:gI(),xhoverformat:B3("x"),yhoverformat:B3("y"),zhoverformat:B3("z"),mode:xi({},To.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:U3("x"),y:U3("y"),z:U3("z")},connectgaps:To.connectgaps,line:voe,marker:xi({symbol:{valType:"enumerated",values:mI(uoe),dflt:"circle",arrayOk:!0},size:xi({},_s.size,{dflt:8}),sizeref:_s.sizeref,sizemin:_s.sizemin,sizemode:_s.sizemode,opacity:xi({},_s.opacity,{arrayOk:!1}),colorbar:_s.colorbar,line:xi({width:xi({},hoe.width,{arrayOk:!1})},V3("marker.line"))},V3("marker")),textposition:xi({},To.textposition,{dflt:"top center"}),textfont:ioe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:yI.opacity,hoverinfo:xi({},yI.hoverinfo)},"calc","nested");H3.x.editType=H3.y.editType=H3.z.editType="calc+clearAxisTypes"});var wI=be((fpe,_I)=>{"use strict";var bI=Tr(),doe=er(),Y3=sa(),poe=sm(),goe=um(),yoe=fm(),moe=G3();_I.exports=function(r,t,n,a){function o(_,y){return doe.coerce(r,t,moe,_,y)}var i=xoe(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),Y3.hasMarkers(t)&&poe(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),Y3.hasLines(t)&&(o("connectgaps"),goe(r,t,n,a,o)),Y3.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),yoe(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var h="projection."+s[f];o(h+".show")&&(o(h+".opacity"),o(h+".scale"))}var p=bI.getComponentMethod("errorbars","supplyDefaults");p(r,t,l||u||n,{axis:"z"}),p(r,t,l||u||n,{axis:"y",inherit:"z"}),p(r,t,l||u||n,{axis:"x",inherit:"z"})};function xoe(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=bI.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var TI=be((cpe,MI)=>{"use strict";var boe=A1(),_oe=vm();MI.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return boe(n,t),_oe(r,t),n}});var kI=be((hpe,AI)=>{AI.exports=woe;function woe(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i{var Moe=kI();SI.exports=function(r){return Moe("webgl",r)}});var DI=be((dpe,LI)=>{"use strict";var EI=Gr(),Toe=function(){};LI.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=Toe);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=EI.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=EI.lightLine,n.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var FI=be((ppe,PI)=>{"use strict";var ws=wo(),Aoe=er(),koe=["xaxis","yaxis","zaxis"];function RI(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var Soe=RI.prototype;Soe.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[koe[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?Aoe.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=ws(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=ws(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=ws(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=ws(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=ws(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=ws(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=ws(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function Coe(e,r){var t=new RI;return t.merge(e,r),t}PI.exports=Coe});var zI=be((gpe,NI)=>{"use strict";var Eoe=wo(),Loe=["xaxis","yaxis","zaxis"];function II(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var Doe=II.prototype;Doe.merge=function(e){for(var r=0;r<3;++r){var t=e[Loe[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=Eoe(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function Roe(e){var r=new II;return r.merge(e),r}NI.exports=Roe});var BI=be((ype,OI)=>{"use strict";OI.exports=zoe;var qI=Et(),Poe=er(),Foe=["xaxis","yaxis","zaxis"],Ioe=[0,0,0];function Noe(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){Ioe[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=Noe(a)}});var XI=be((mpe,WI)=>{"use strict";var VI=mn().gl_plot3d,qoe=VI.createCamera,UI=VI.createScene,Ooe=CI(),Boe=ov(),bd=Tr(),$n=er(),xd=$n.preserveDrawingBuffer(),_d=Et(),bi=Bi(),Uoe=wo(),Hoe=DI(),Voe=Km(),Goe=FI(),Yoe=zI(),Woe=BI(),Xoe=fu().applyAutorangeOptions,K0,md,GI=!1;function YI(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=Goe(r,r[this.id]),this.spikeOptions=Yoe(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=bd.getComponentMethod("annotations3d","convert"),this.drawAnnotations=bd.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Pn=YI.prototype;Pn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:xd,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!md&&(K0=document.createElement("canvas"),md=Ooe({canvas:K0,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!md))throw new Error("error creating static canvas/context for image server");r.gl=md,r.canvas=K0}return r};var HI=!0;Pn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=UI(r)}catch(n){if(e.staticMode||!HI||xd)t=!1;else{$n.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{xd=r.glOptions.preserveDrawingBuffer=!0,e.glplot=UI(r)}catch(a){xd=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return HI=!1,t};Pn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=qoe(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};Pn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return Hoe(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){GI=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},Boe?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Pn.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),Woe(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,h=e.glplot.selection,p=0;p")):t.type==="isosurface"||t.type==="volume"?(m.valueLabel=_d.hoverLabelText(e._mockAxis,e._mockAxis.d2l(h.traceCoordinate[3]),t.valuehoverformat),v.push("value: "+m.valueLabel),h.textLabel&&v.push(h.textLabel),M=v.join("
")):M=h.textLabel;var w={x:h.traceCoordinate[0],y:h.traceCoordinate[1],z:h.traceCoordinate[2],data:b._input,fullData:b,curveNumber:b.index,pointNumber:T};bi.appendArrayPointValue(w,b,T),t._module.eventData&&(w=b._module.eventData(w,h,b,{},T));var g={points:[w]};if(e.fullSceneLayout.hovermode){var c=[];bi.loneHover({trace:b,x:(.5+.5*y[0]/y[3])*l,y:(.5-.5*y[1]/y[3])*u,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:M,name:f.name,color:bi.castHoverOption(b,T,"bgcolor")||f.color,borderColor:bi.castHoverOption(b,T,"bordercolor"),fontFamily:bi.castHoverOption(b,T,"font.family"),fontSize:bi.castHoverOption(b,T,"font.size"),fontColor:bi.castHoverOption(b,T,"font.color"),nameLength:bi.castHoverOption(b,T,"namelength"),textAlign:bi.castHoverOption(b,T,"align"),hovertemplate:$n.castOption(b,T,"hovertemplate"),hovertemplateLabels:$n.extendFlat({},w,m),eventData:[w]},{container:n,gd:r,inOut_bbox:c}),w.bbox=c[0]}h.distance<5&&(h.buttons||GI)?r.emit("plotly_click",g):r.emit("plotly_hover",g),this.oldEventData=g}else bi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Pn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){$n.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var Q0=["xaxis","yaxis","zaxis"];function Zoe(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=Q0[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!$n.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var h,p=0;p<(f||u.length);p++)if($n.isArrayOrTypedArray(u[p]))for(var _=0;_b[1][i])b[0][i]=-1,b[1][i]=1;else{var d=b[1][i]-b[0][i];b[0][i]-=d/32,b[1][i]+=d/32}if(k=[b[0][i],b[1][i]],k=Xoe(k,u),b[0][i]=k[0],b[1][i]=k[1],u.isReversed()){var D=b[0][i];b[0][i]=b[1][i],b[1][i]=D}}else k=u.range,b[0][i]=u.r2l(k[0]),b[1][i]=u.r2l(k[1]);b[0][i]===b[1][i]&&(b[0][i]-=1,b[1][i]+=1),T[i]=b[1][i]-b[0][i],u.range=[b[0][i],b[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*_[i],max:u.range[1]*_[i]})}var E,R=f.aspectmode;if(R==="cube")E=[1,1,1];else if(R==="manual"){var N=f.aspectratio;E=[N.x,N.y,N.z]}else if(R==="auto"||R==="data"){var I=[1,1,1];for(i=0;i<3;++i){u=f[Q0[i]],s=u.type;var F=m[s];I[i]=Math.pow(F.acc,1/F.count)/_[i]}R==="data"||Math.max.apply(null,I)/Math.min.apply(null,I)<=4?E=I:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=h.aspectratio.x=E[0],f.aspectratio.y=h.aspectratio.y=E[1],f.aspectratio.z=h.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,P=r._size||null;if(L&&P){var O=n.container.style;O.position="absolute",O.left=P.l+L.x[0]*P.w+"px",O.top=P.t+(1-L.y[1])*P.h+"px",O.width=P.w*(L.x[1]-L.x[0])+"px",O.height=P.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};Pn.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function Koe(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function Qoe(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Pn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),Qoe(e.camera)};Pn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,Koe(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};Pn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=$n.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,h,p){var _=["up","center","eye"],y=["x","y","z"];return f[_[h]]&&s[_[h]][y[p]]===f[_[h]][y[p]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};Pn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=$n.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Pn.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),h=s||f;if(h){var p={};if(s&&(n=r.getCamera(),a=$n.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=$n.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),bd.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var _=$n.nestedProperty(t,r.id+".camera");_.set(n)}if(f){l.set(i);var y=$n.nestedProperty(t,r.id+".aspectratio");y.set(i),r.glplot.redraw()}}return h};Pn.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",h={x:0,y:0,z:1},p={};p[f]=h;var _=a.layout;bd.call("_storeDirectGUIEdit",_,o._preGUI,p),i.up=h,$n.nestedProperty(_,f).set(h)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function $oe(e,r,t){for(var n=0,a=t-1;n0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}Pn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(K0),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),$oe(o,n,a),joe(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(K0),s};Pn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[Q0[r]];_d.setConvert(t,e.fullLayout),t.setScale=$n.noop}};Pn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},_d.setConvert(e._mockAxis,t)};WI.exports=YI});var JI=be((xpe,ZI)=>{"use strict";ZI.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var X3=be((bpe,KI)=>{"use strict";var ele=Gr(),zr=Da(),W3=Tt().extendFlat,rle=On().overrideAll;KI.exports=rle({visible:zr.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:ele.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:zr.color,categoryorder:zr.categoryorder,categoryarray:zr.categoryarray,title:{text:zr.title.text,font:zr.title.font},type:W3({},zr.type,{values:["-","linear","log","date","category"]}),autotypenumbers:zr.autotypenumbers,autorange:zr.autorange,autorangeoptions:{minallowed:zr.autorangeoptions.minallowed,maxallowed:zr.autorangeoptions.maxallowed,clipmin:zr.autorangeoptions.clipmin,clipmax:zr.autorangeoptions.clipmax,include:zr.autorangeoptions.include,editType:"plot"},rangemode:zr.rangemode,minallowed:zr.minallowed,maxallowed:zr.maxallowed,range:W3({},zr.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:zr.minor.tickmode,nticks:zr.nticks,tick0:zr.tick0,dtick:zr.dtick,tickvals:zr.tickvals,ticktext:zr.ticktext,ticks:zr.ticks,mirror:zr.mirror,ticklen:zr.ticklen,tickwidth:zr.tickwidth,tickcolor:zr.tickcolor,showticklabels:zr.showticklabels,labelalias:zr.labelalias,tickfont:zr.tickfont,tickangle:zr.tickangle,tickprefix:zr.tickprefix,showtickprefix:zr.showtickprefix,ticksuffix:zr.ticksuffix,showticksuffix:zr.showticksuffix,showexponent:zr.showexponent,exponentformat:zr.exponentformat,minexponent:zr.minexponent,separatethousands:zr.separatethousands,tickformat:zr.tickformat,tickformatstops:zr.tickformatstops,hoverformat:zr.hoverformat,showline:zr.showline,linecolor:zr.linecolor,linewidth:zr.linewidth,showgrid:zr.showgrid,gridcolor:W3({},zr.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:zr.gridwidth,zeroline:zr.zeroline,zerolinecolor:zr.zerolinecolor,zerolinewidth:zr.zerolinewidth},"plot","from-root")});var Q3=be((_pe,QI)=>{"use strict";var Z3=X3(),tle=ld().attributes,J3=Tt().extendFlat,nle=er().counterRegex;function K3(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}QI.exports={_arrayAttrRegexps:[nle("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:J3(K3(0,0,1),{}),center:J3(K3(0,0,0),{}),eye:J3(K3(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:tle({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:Z3,yaxis:Z3,zaxis:Z3,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var jI=be((wpe,$I)=>{"use strict";var ale=er(),ile=yt(),ole=ld().defaults;$I.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,h=f&&s[0].replace(/\d+$/,""),p,_;function y(k,S){return ale.coerce(p,_,i,k,S)}for(var b=0;b{"use strict";var lle=Sa().mix,eN=er(),sle=yt(),ule=X3(),fle=Rm(),cle=P1(),rN=["xaxis","yaxis","zaxis"],hle=100*136/187;tN.exports=function(r,t,n){var a,o;function i(s,f){return eN.coerce(a,o,ule,s,f)}for(var l=0;l{"use strict";var vle=er(),dle=Gr(),ple=Tr(),gle=jI(),yle=nN(),aN=Q3(),mle=Df().getSubplotData,iN="gl3d";oN.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=vle.validate(r[i],aN[i]);if(l)return r[i]}}gle(r,t,n,{type:iN,attributes:aN,handleDefaults:xle,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function xle(e,r,t,n){for(var a=t("bgcolor"),o=dle.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l.999)&&(p="turntable")}else p="turntable";t("dragmode",p),t("hovermode",n.getDfltFromLayout("hovermode"))}});var vl=be(jn=>{"use strict";var ble=On().overrideAll,_le=Ll(),wle=XI(),Mle=Df().getSubplotData,Tle=er(),Ale=Ho(),Wu="gl3d",$3="scene";jn.name=Wu;jn.attr=$3;jn.idRoot=$3;jn.idRegex=jn.attrRegex=Tle.counterRegex("scene");jn.attributes=JI();jn.layoutAttributes=Q3();jn.baseLayoutAttrOverrides=ble({hoverlabel:_le.hoverlabel},"plot","nested");jn.supplyLayoutDefaults=lN();jn.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Wu],o=0;o{"use strict";sN.exports={plot:pI(),attributes:G3(),markerSymbols:gd(),supplyDefaults:wI(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:TI(),moduleType:"trace",name:"scatter3d",basePlotModule:vl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var cN=be((Spe,fN)=>{"use strict";fN.exports=uN()});var $0=be((Cpe,dN)=>{"use strict";var hN=Gr(),kle=ni(),j3=uo().axisHoverFormat,{hovertemplateAttrs:Sle,templatefallbackAttrs:Cle}=ja(),vN=Cn(),e5=Tt().extendFlat,Ele=On().overrideAll;function r5(e){return{valType:"boolean",dflt:!1}}function t5(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:r5("x"),y:r5("y"),z:r5("z")},color:{valType:"color",dflt:hN.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:hN.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var n5=dN.exports=Ele(e5({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Sle(),hovertemplatefallback:Cle(),xhoverformat:j3("x"),yhoverformat:j3("y"),zhoverformat:j3("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},kle("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:t5("x"),y:t5("y"),z:t5("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:e5({},vN.hoverinfo),showlegend:e5({},vN.showlegend,{dflt:!1})}),"calc","nested");n5.x.editType=n5.y.editType=n5.z.editType="calc+clearAxisTypes"});var i5=be((Epe,yN)=>{"use strict";var Lle=Tr(),pN=er(),Dle=Di(),Rle=$0(),a5=.1;function Ple(e,r){for(var t=[],n=32,a=0;a{"use strict";var mN=Go();xN.exports=function(r,t){t.surfacecolor?mN(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):mN(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var TN=be((Dpe,MN)=>{"use strict";var Nle=er(),_N=.01,zle=[[-1,0],[1,0],[0,-1],[0,1]];function qle(e){return .5-.25*Math.min(1,e*.5)}MN.exports=function(r,t){var n=1,a;for(wN(r,t),a=0;a_N;a++)n=wN(r,t,qle(n));return n>_N&&Nle.log("interp2d didn't converge quickly",n),r};function wN(e,r,t){var n=0,a,o,i,l,u,s,f,h,p,_,y,b,T;for(l=0;lb&&(n=Math.max(n,Math.abs(e[o][i]-y)/(T-b))))}return n}});var kN=be((Rpe,AN)=>{"use strict";var Ole=er().maxRowLength;AN.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=Ole(r),s,f,h,p,_,y,b,T;for(f=0;f=0;_--)p=a[_],f=p[0],h=p[1],y=((n[[f-1,h]]||l)[2]+(n[[f+1,h]]||l)[2]+(n[[f,h-1]]||l)[2]+(n[[f,h+1]]||l)[2])/20,y&&(b[p]=[f,h,y],a.splice(_,1),T=!0);if(!T)throw"findEmpties iterated with no new neighbors";for(p in b)n[p]=b[p],t.push(b[p])}return t.sort(function(m,k){return k[2]-m[2]})}});var RN=be((Ppe,DN)=>{"use strict";var Ble=mn().gl_surface3d,Xu=mn().ndarray,Ule=mn().ndarray_linear_interpolate.d2,Hle=TN(),Vle=kN(),j0=er().isArrayOrTypedArray,Gle=hl().parseColorScale,SN=wo(),Yle=Ri().extractOpts;function EN(e,r,t){this.scene=e,this.uid=t,this.surface=r,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var _i=EN.prototype;_i.getXat=function(e,r,t,n){var a=j0(this.data.x)?j0(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};_i.getYat=function(e,r,t,n){var a=j0(this.data.y)?j0(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};_i.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};_i.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return j0(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function Wle(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var Zu=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function Xle(e,r){if(e0){t=Zu[n];break}return t}function Jle(e,r){if(!(e<1||r<1)){for(var t=o5(e),n=o5(r),a=1,o=0;owd;)n--,n/=Zle(n),n++,n1?a:1};function Qle(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function $le(e,r,t){return jle(e,r,Qle,t),e}function jle(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];ap&&(this.minValues[s]=p),this.maxValues[s]{"use strict";PN.exports={attributes:$0(),supplyDefaults:i5().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:bN(),plot:RN(),moduleType:"trace",name:"surface",basePlotModule:vl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var NN=be((Ipe,IN)=>{"use strict";IN.exports=FN()});var Ju=be((Npe,qN)=>{"use strict";var tse=ni(),l5=uo().axisHoverFormat,{hovertemplateAttrs:nse,templatefallbackAttrs:ase}=ja(),dl=$0(),zN=Cn(),pl=Tt().extendFlat;qN.exports=pl({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:nse({editType:"calc"}),hovertemplatefallback:ase({editType:"calc"}),xhoverformat:l5("x"),yhoverformat:l5("y"),zhoverformat:l5("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},tse("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:dl.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:pl({},dl.contours.x.show,{}),color:dl.contours.x.color,width:dl.contours.x.width,editType:"calc"},lightposition:{x:pl({},dl.lightposition.x,{dflt:1e5}),y:pl({},dl.lightposition.y,{dflt:1e5}),z:pl({},dl.lightposition.z,{dflt:0}),editType:"calc"},lighting:pl({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},dl.lighting),hoverinfo:pl({},zN.hoverinfo,{editType:"calc"}),showlegend:pl({},zN.showlegend,{dflt:!1})})});var Td=be((zpe,BN)=>{"use strict";var ise=ni(),Md=uo().axisHoverFormat,{hovertemplateAttrs:ose,templatefallbackAttrs:lse}=ja(),ec=Ju(),ON=Cn(),s5=Tt().extendFlat,sse=On().overrideAll;function u5(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function f5(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Ku=BN.exports=sse(s5({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:u5("x"),y:u5("y"),z:u5("z")},caps:{x:f5("x"),y:f5("y"),z:f5("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:ose(),hovertemplatefallback:lse(),xhoverformat:Md("x"),yhoverformat:Md("y"),zhoverformat:Md("z"),valuehoverformat:Md("value",1),showlegend:s5({},ON.showlegend,{dflt:!1})},ise("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ec.opacity,lightposition:ec.lightposition,lighting:ec.lighting,flatshading:ec.flatshading,contour:ec.contour,hoverinfo:s5({},ON.hoverinfo)}),"calc","nested");Ku.flatshading.dflt=!0;Ku.lighting.facenormalsepsilon.dflt=0;Ku.x.editType=Ku.y.editType=Ku.z.editType=Ku.value.editType="calc+clearAxisTypes"});var c5=be((qpe,HN)=>{"use strict";var use=er(),fse=Tr(),cse=Td(),hse=Di();function vse(e,r,t,n){function a(o,i){return use.coerce(e,r,cse,o,i)}UN(e,r,t,n,a)}function UN(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var h=fse.getComponentMethod("calendars","handleTraceDefaults");h(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(b){a(b+"hoverformat");var T="caps."+b,m=a(T+".show");m&&a(T+".fill");var k="slices."+b,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var _=a("surface.show");_&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var y=a("contour.show");y&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(b){a(b)}),hse(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}HN.exports={supplyDefaults:vse,supplyIsoDefaults:UN}});var Ad=be((Ope,GN)=>{"use strict";var v5=er(),dse=Go();function pse(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=Ki(r.u,r._len),r._v=Ki(r.v,r._len),r._w=Ki(r.w,r._len),r._x=Ki(r.x,r._len),r._y=Ki(r.y,r._len),r._z=Ki(r.z,r._len);var t=VN(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=Ki(r.starts.x||[]),o=Ki(r.starts.y||[]),i=Ki(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s1&&(S=r[a-1],M=t[a-1],w=n[a-1]),o=0;oS?"-":"+")+"x"),y=y.replace("y",(x>M?"-":"+")+"y"),y=y.replace("z",(v>w?"-":"+")+"z");var d=function(){a=0,g=[],c=[],A=[]};(!a||a{"use strict";var gse=Go(),yse=Ad().processGrid,kd=Ad().filter;YN.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=kd(t.x,t._len),t._y=kd(t.y,t._len),t._z=kd(t.z,t._len),t._value=kd(t.value,t._len);var n=yse(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i{"use strict";WN.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var mse=mn().gl_mesh3d,xse=hl().parseColorScale,bse=er().isArrayOrTypedArray,_se=wo(),wse=Ri().extractOpts,XN=Qu(),rc=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n-1}function B(pe,ve){return pe===null?ve:pe}function X(pe,ve,xe){d();var me=[ve],de=[xe];if(F>=1)me=[ve],de=[xe];else if(F>0){var _e=P(ve,xe);me=_e.xyzv,de=_e.abc}for(var Ae=0;Ae-1?xe[De]:A(We,Oe,ze);Se>-1?Ie[De]=Se:Ie[De]=E(We,Oe,ze,B(pe,Be))}R(Ie[0],Ie[1],Ie[2])}}function $(pe,ve,xe){var me=function(de,_e,Ae){X(pe,[ve[de],ve[_e],ve[Ae]],[xe[de],xe[_e],xe[Ae]])};me(0,1,2),me(2,3,0)}function ee(pe,ve,xe){var me=function(de,_e,Ae){X(pe,[ve[de],ve[_e],ve[Ae]],[xe[de],xe[_e],xe[Ae]])};me(0,1,2),me(3,0,1),me(2,3,0),me(1,2,3)}function Y(pe,ve,xe,me){var de=pe[3];deme&&(de=me);for(var _e=(pe[3]-de)/(pe[3]-ve[3]+1e-9),Ae=[],Ie=0;Ie<4;Ie++)Ae[Ie]=(1-_e)*pe[Ie]+_e*ve[Ie];return Ae}function q(pe,ve,xe){return pe>=ve&&pe<=xe}function Q(pe){var ve=.001*(M-x);return pe>=x-ve&&pe<=M+ve}function oe(pe){for(var ve=[],xe=0;xe<4;xe++){var me=pe[xe];ve.push([e._x[me],e._y[me],e._z[me],e._value[me]])}return ve}var Z=3;function se(pe,ve,xe,me,de,_e){_e||(_e=1),xe=[-1,-1,-1];var Ae=!1,Ie=[q(ve[0][3],me,de),q(ve[1][3],me,de),q(ve[2][3],me,de)];if(!Ie[0]&&!Ie[1]&&!Ie[2])return!1;var De=function(Oe,ze,Be){return Q(ze[0][3])&&Q(ze[1][3])&&Q(ze[2][3])?(X(Oe,ze,Be),!0):_eIe?[k,_e]:[_e,S];Ce(ve,De[0],De[1])}}var We=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,M),Math.max(k,M)]];["x","y","z"].forEach(function(Oe){for(var ze=[],Be=0;Be0&&(Qe.push(yr.id),Oe==="x"?je.push([yr.distRatio,0,0]):Oe==="y"?je.push([0,yr.distRatio,0]):je.push([0,0,yr.distRatio]))}else Oe==="x"?$e=te(1,_-1):Oe==="y"?$e=te(1,y-1):$e=te(1,b-1);Qe.length>0&&(Oe==="x"?ze[Se]=Fe(pe,Qe,Le,Ye,je,ze[Se]):Oe==="y"?ze[Se]=ie(pe,Qe,Le,Ye,je,ze[Se]):ze[Se]=J(pe,Qe,Le,Ye,je,ze[Se]),Se++),$e.length>0&&(Oe==="x"?ze[Se]=ye(pe,$e,Le,Ye,ze[Se]):Oe==="y"?ze[Se]=ke(pe,$e,Le,Ye,ze[Se]):ze[Se]=Me(pe,$e,Le,Ye,ze[Se]),Se++)}var xr=e.caps[Oe];xr.show&&xr.fill&&(L(xr.fill),Oe==="x"?ze[Se]=ye(pe,[0,_-1],Le,Ye,ze[Se]):Oe==="y"?ze[Se]=ke(pe,[0,y-1],Le,Ye,ze[Se]):ze[Se]=Me(pe,[0,b-1],Le,Ye,ze[Se]),Se++)}}),l===0&&D(),e._meshX=v,e._meshY=w,e._meshZ=g,e._meshIntensity=c,e._Xs=f,e._Ys=h,e._Zs=p}return ce(),e}function Tse(e,r){var t=e.glplot.gl,n=mse({gl:t}),a=new ZN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}KN.exports={findNearestOnAxis:rc,generateIsoMeshes:JN,createIsosurfaceTrace:Tse}});var $N=be((Vpe,QN)=>{"use strict";QN.exports={attributes:Td(),supplyDefaults:c5().supplyDefaults,calc:d5(),colorbar:{min:"cmin",max:"cmax"},plot:Sd().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var ez=be((Gpe,jN)=>{"use strict";jN.exports=$N()});var y5=be((Ype,tz)=>{"use strict";var Ase=ni(),Xt=Td(),kse=$0(),rz=Cn(),g5=Tt().extendFlat,Sse=On().overrideAll,Cd=tz.exports=Sse(g5({x:Xt.x,y:Xt.y,z:Xt.z,value:Xt.value,isomin:Xt.isomin,isomax:Xt.isomax,surface:Xt.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Xt.slices,caps:Xt.caps,text:Xt.text,hovertext:Xt.hovertext,xhoverformat:Xt.xhoverformat,yhoverformat:Xt.yhoverformat,zhoverformat:Xt.zhoverformat,valuehoverformat:Xt.valuehoverformat,hovertemplate:Xt.hovertemplate,hovertemplatefallback:Xt.hovertemplatefallback},Ase("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Xt.colorbar,opacity:Xt.opacity,opacityscale:kse.opacityscale,lightposition:Xt.lightposition,lighting:Xt.lighting,flatshading:Xt.flatshading,contour:Xt.contour,hoverinfo:g5({},rz.hoverinfo),showlegend:g5({},rz.showlegend,{dflt:!1})}),"calc","nested");Cd.x.editType=Cd.y.editType=Cd.z.editType=Cd.value.editType="calc+clearAxisTypes"});var az=be((Wpe,nz)=>{"use strict";var Cse=er(),Ese=y5(),Lse=c5().supplyIsoDefaults,Dse=i5().opacityscaleDefaults;nz.exports=function(r,t,n,a){function o(i,l){return Cse.coerce(r,t,Ese,i,l)}Lse(r,t,n,a,o),Dse(r,t,a,o)}});var sz=be((Xpe,lz)=>{"use strict";var Rse=mn().gl_mesh3d,Pse=hl().parseColorScale,Fse=er().isArrayOrTypedArray,Ise=wo(),Nse=Ri().extractOpts,iz=Qu(),m5=Sd().findNearestOnAxis,zse=Sd().generateIsoMeshes;function oz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var x5=oz.prototype;x5.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=m5(t,this.data._Xs).id,u=m5(n,this.data._Ys).id,s=m5(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Fse(h)&&h[f]!==void 0?e.textLabel=h[f]:h&&(e.textLabel=h),!0}};x5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=zse(e);function n(u,s,f,h){return s.map(function(p){return u.d2l(p,0,h)*f})}var a=iz(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=iz(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:Ise(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Nse(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Pse(e),this.mesh.update(i)};x5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function qse(e,r){var t=e.glplot.gl,n=Rse({gl:t}),a=new oz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}lz.exports=qse});var fz=be((Zpe,uz)=>{"use strict";uz.exports={attributes:y5(),supplyDefaults:az(),calc:d5(),colorbar:{min:"cmin",max:"cmax"},plot:sz(),moduleType:"trace",name:"volume",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var hz=be((Jpe,cz)=>{"use strict";cz.exports=fz()});var pz=be((Kpe,dz)=>{"use strict";var Ose=Tr(),vz=er(),Bse=Di(),Use=Ju();dz.exports=function(r,t,n,a){function o(f,h){return vz.coerce(r,t,Use,f,h)}function i(f){var h=f.map(function(p){var _=o(p);return _&&vz.isArrayOrTypedArray(_)?_:null});return h.every(function(p){return p&&p.length===h[0].length})&&h}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=Ose.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y","z"],a),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),Bse(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var yz=be((Qpe,gz)=>{"use strict";var Hse=Go();gz.exports=function(r,t){t.intensity&&Hse(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var wz=be(($pe,_z)=>{"use strict";var Vse=mn().gl_mesh3d,Gse=mn().delaunay_triangulate,Yse=mn().alpha_shape,Wse=mn().convex_hull,Xse=hl().parseColorScale,Zse=er().isArrayOrTypedArray,M5=wo(),Jse=Ri().extractOpts,mz=Qu();function bz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var T5=bz.prototype;T5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return Zse(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function xz(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}T5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=mz(b5(t.xaxis,e.x,r.dataScale[0],e.xcalendar),b5(t.yaxis,e.y,r.dataScale[1],e.ycalendar),b5(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!w5(e.i,n)||!w5(e.j,n)||!w5(e.k,n))return;o=mz(_5(e.i),_5(e.j),_5(e.k))}else e.alphahull===0?o=Wse(a):e.alphahull>0?o=Yse(e.alphahull,a):o=Kse(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:M5(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=Jse(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=Xse(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=xz(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=xz(e.facecolor)):(this.color=e.color,i.meshColor=M5(e.color));this.mesh.update(i)};T5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Qse(e,r){var t=e.glplot.gl,n=Vse({gl:t}),a=new bz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}_z.exports=Qse});var Tz=be((jpe,Mz)=>{"use strict";Mz.exports={attributes:Ju(),supplyDefaults:pz(),calc:yz(),colorbar:{min:"cmin",max:"cmax"},plot:wz(),moduleType:"trace",name:"mesh3d",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var kz=be((ege,Az)=>{"use strict";Az.exports=Tz()});var k5=be((rge,Cz)=>{"use strict";var $se=ni(),$u=uo().axisHoverFormat,{hovertemplateAttrs:jse,templatefallbackAttrs:eue}=ja(),rue=Ju(),Sz=Cn(),A5=Tt().extendFlat,Ed={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:jse({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:eue({editType:"calc"}),uhoverformat:$u("u",1),vhoverformat:$u("v",1),whoverformat:$u("w",1),xhoverformat:$u("x"),yhoverformat:$u("y"),zhoverformat:$u("z"),showlegend:A5({},Sz.showlegend,{dflt:!1})};A5(Ed,$se("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var tue=["opacity","lightposition","lighting"];tue.forEach(function(e){Ed[e]=rue[e]});Ed.hoverinfo=A5({},Sz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});Cz.exports=Ed});var Lz=be((tge,Ez)=>{"use strict";var nue=er(),aue=Di(),iue=k5();Ez.exports=function(r,t,n,a){function o(_,y){return nue.coerce(r,t,iue,_,y)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),h=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!h||!h.length){t.visible=!1;return}var p=o("sizemode");o("sizeref",p==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),aue(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var Rz=be((nge,Dz)=>{"use strict";var oue=Go();Dz.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s{"use strict";var lue=mn().gl_cone3d,sue=mn().gl_cone3d.createConeMesh,uue=er().simpleMap,fue=hl().parseColorScale,cue=Ri().extractOpts,hue=er().isArrayOrTypedArray,Pz=Qu();function Fz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var S5=Fz.prototype;S5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return hue(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var vue={xaxis:0,yaxis:1,zaxis:2},due={tip:1,tail:0,cm:.25,center:.5},pue={tip:1,tail:1,cm:.75,center:.5};function Iz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,h){var p=t[h],_=n[vue[h]];return uue(f,function(y){return p.d2l(y)*_})}a.vectors=Pz(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=Pz(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=cue(r);a.colormap=fue(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=due[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=lue(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=pue[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}S5.update=function(e){this.data=e;var r=Iz(this.scene,e);this.mesh.update(r)};S5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function gue(e,r){var t=e.glplot.gl,n=Iz(e,r),a=sue(t,n),o=new Fz(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}Nz.exports=gue});var Oz=be((ige,qz)=>{"use strict";qz.exports={moduleType:"trace",name:"cone",basePlotModule:vl(),categories:["gl3d","showLegend"],attributes:k5(),supplyDefaults:Lz(),colorbar:{min:"cmin",max:"cmax"},calc:Rz(),plot:zz(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var Uz=be((oge,Bz)=>{"use strict";Bz.exports=Oz()});var E5=be((lge,Vz)=>{"use strict";var yue=ni(),ju=uo().axisHoverFormat,{hovertemplateAttrs:mue,templatefallbackAttrs:xue}=ja(),bue=Ju(),Hz=Cn(),C5=Tt().extendFlat,Ld={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:mue({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:xue({editType:"calc"}),uhoverformat:ju("u",1),vhoverformat:ju("v",1),whoverformat:ju("w",1),xhoverformat:ju("x"),yhoverformat:ju("y"),zhoverformat:ju("z"),showlegend:C5({},Hz.showlegend,{dflt:!1})};C5(Ld,yue("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var _ue=["opacity","lightposition","lighting"];_ue.forEach(function(e){Ld[e]=bue[e]});Ld.hoverinfo=C5({},Hz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Vz.exports=Ld});var Yz=be((sge,Gz)=>{"use strict";var wue=er(),Mue=Di(),Tue=E5();Gz.exports=function(r,t,n,a){function o(p,_){return wue.coerce(r,t,Tue,p,_)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),h=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!h||!h.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Mue(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var jz=be((uge,$z)=>{"use strict";var Zz=mn().gl_streamtube3d,Aue=Zz.createTubeMesh,kue=er(),Sue=hl().parseColorScale,Cue=Ri().extractOpts,Wz=Qu(),Jz={xaxis:0,yaxis:1,zaxis:2};function Kz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var D5=Kz.prototype;D5.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[Jz[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function Xz(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function L5(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function Qz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(D,E){var R=t[E],N=n[Jz[E]];return kue.simpleMap(D,function(I){return R.d2l(I)*N})}if(o.vectors=Wz(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=Wz(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var h=u[0],p=Xz(l),_=Xz(s),y=new Array(p.length*_.length),b=0,T=0;T{"use strict";eq.exports={moduleType:"trace",name:"streamtube",basePlotModule:vl(),categories:["gl3d","showLegend"],attributes:E5(),supplyDefaults:Yz(),colorbar:{min:"cmin",max:"cmax"},calc:Ad().calc,plot:jz(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var nq=be((cge,tq)=>{"use strict";tq.exports=rq()});var Fn=be((hge,iq)=>{"use strict";var aq=Object.getOwnPropertySymbols,Lue=Object.prototype.hasOwnProperty,Due=Object.prototype.propertyIsEnumerable;function Rue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Pue(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}iq.exports=Pue()?Object.assign:function(e,r){for(var t,n=Rue(e),a,o=1;o{var Rd=Fn();function oq(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Rd(oq.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function R5(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Dd(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Rd(R5.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Ur.local.differentCalendars||Ur.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Dd(Math.abs(this.year()),4)+"-"+Dd(this.month(),2)+"-"+Dd(this.day(),2)}});function P5(){this.shortYearCutoff="+10"}Rd(P5.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new R5(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Dd(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Ur.local.invalidMonth||Ur.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Ur.local.invalidMonth||Ur.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ih-1+f.minMonth;)o++,i-=h,h=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Ur=lq.exports=new oq;Ur.cdate=R5;Ur.baseCalendar=P5;Ur.calendars.gregorian=F5});var sq=be(()=>{var I5=Fn(),xn=In();I5(xn.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});xn.local=xn.regionalOptions[""];I5(xn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});I5(xn.baseCalendar.prototype,{UNIX_EPOCH:xn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:xn.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw xn.local.invalidFormat||xn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(x,M){for(var v=1;S+v1},f=function(x,M,v,w){var g=""+M;if(s(x,w))for(;g.length1},k=function(D,E){var R=m(D,E),N=[2,3,R?4:2,R?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],I=new RegExp("^-?\\d{1,"+N+"}"),F=r.substring(g).match(I);if(!F)throw(xn.local.missingNumberAt||xn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,g);return g+=F[0].length,parseInt(F[0],10)},S=this,x=function(){if(typeof l=="function"){m("m");var D=l.call(S,r.substring(g));return g+=D.length,D}return k("m")},M=function(D,E,R,N){for(var I=m(D,N)?R:E,F=0;F-1){p=1,_=y;for(var d=this.daysInMonth(h,p);_>d;d=this.daysInMonth(h,p))p++,_-=d}return f>-1?this.fromJD(f):this.newDate(h,p,_)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(h){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var uq=be(()=>{var yl=In(),Fue=Fn(),N5=yl.instance();function Pd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Pd.prototype=new yl.baseCalendar;Fue(Pd.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Nue);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(zue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(que);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw yl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw yl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,yl.local.invalidyear),a=xl[n-xl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=N5.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=ml[e-ml[0]],n=t>>13,a=n?12:11;if(r>a)throw yl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,yl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=Bue(e,o,t,a);return N5.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=N5.fromJD(e),t=Oue(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(Iue),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(Pd.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),h=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);h!==s&&l.month(h)}return l}});var Iue=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Nue=/^\d?\d[iI]?/m,zue=/^闰?十?[一二三四五六七八九]?月/m,que=/^闰?十?[一二三四五六七八九]?/m;yl.calendars.chinese=Pd;var ml=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],xl=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Oue(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=xl[a.year-xl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=xl[o.year-xl[0]];var h=s>>9&4095,p=s>>5&15,_=s&31,y,b=new Date(h,p-1,_),T=new Date(a.year,a.month-1,a.day);y=Math.round((T-b)/(24*3600*1e3));var m=ml[o.year-ml[0]],k;for(k=0;k<13;k++){var S=m&1<<12-k?30:29;if(y>13;return!x||k=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var h;h=i.day-1;var p=ml[i.year-ml[0]],_=p>>13,y;_&&(i.month>_||i.isIntercalary)?y=i.month:y=i.month-1;for(var b=0;b>9&4095,S=m>>5&15,x=m&31,M=new Date(k,S-1,x+h);return o.year=M.getFullYear(),o.month=1+M.getMonth(),o.day=M.getDate(),o}});var fq=be(()=>{var Ms=In(),Uue=Fn();function z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z5.prototype=new Ms.baseCalendar;Uue(z5.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ms.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ms.local.invalidYear||Ms.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ms.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Ms.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Ms.calendars.coptic=z5});var cq=be(()=>{var Ao=In(),Hue=Fn();function q5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q5.prototype=new Ao.baseCalendar;Hue(q5.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ao.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ao.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ao.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ao.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ao.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ao.local.invalidDate);return{century:Vue[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,Ao.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var Vue={20:"Fruitbat",21:"Anchovy"};Ao.calendars.discworld=q5});var hq=be(()=>{var Ts=In(),Gue=Fn();function O5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O5.prototype=new Ts.baseCalendar;Gue(O5.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ts.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ts.local.invalidYear||Ts.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ts.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Ts.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Ts.calendars.ethiopian=O5});var vq=be(()=>{var bl=In(),Yue=Fn();function B5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B5.prototype=new bl.baseCalendar;Yue(B5.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,bl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Fd(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,bl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,bl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Fd(this.daysInYear(e),10)===5?30:r===9&&Fd(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,bl.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,bl.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function Fd(e,r){return e-r*Math.floor(e/r)}bl.calendars.hebrew=B5});var dq=be(()=>{var tc=In(),Wue=Fn();function U5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U5.prototype=new tc.baseCalendar;Wue(U5.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,tc.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,tc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,tc.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});tc.calendars.islamic=U5});var pq=be(()=>{var nc=In(),Xue=Fn();function H5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H5.prototype=new nc.baseCalendar;Xue(H5.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,nc.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,nc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,nc.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});nc.calendars.julian=H5});var yq=be(()=>{var Xa=In(),Zue=Fn();function G5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}G5.prototype=new Xa.baseCalendar;Zue(G5.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xa.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xa.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xa.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Xa.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xa.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Xa.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Xa.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Xa.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Xa.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=V5(e+8+17*20,365);return[Math.floor(r/20)+1,V5(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[gq(e+20,20),gq(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Xa.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function V5(e,r){return e-r*Math.floor(e/r)}function gq(e,r){return V5(e-1,r)+1}Xa.calendars.mayan=G5});var xq=be(()=>{var As=In(),Jue=Fn();function Y5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y5.prototype=new As.baseCalendar;var mq=As.instance("gregorian");Jue(Y5.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,As.local.invalidYear||As.regionalOptions[""].invalidYear);return mq.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,As.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,As.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});As.calendars.nanakshahi=Y5});var bq=be(()=>{var ks=In(),Kue=Fn();function W5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W5.prototype=new ks.baseCalendar;Kue(W5.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ks.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,ks.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,ks.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=ks.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<0&&(o+=a.daysInYear(u))):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=ks.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var ef=In(),Que=Fn();function Nd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Id(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}Nd.prototype=new ef.baseCalendar;Que(Nd.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ef.local.invalidYear);return Id(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ef.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,ef.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Id(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});ef.calendars.persian=Nd;ef.calendars.jalali=Nd});var wq=be(()=>{var Ss=In(),$ue=Fn(),zd=Ss.instance();function X5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X5.prototype=new Ss.baseCalendar;$ue(X5.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ss.local.invalidYear),t=this._t2gYear(r.year());return zd.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Ss.local.invalidYear),a=this._t2gYear(n.year());return zd.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ss.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Ss.local.invalidDate),a=this._t2gYear(n.year());return zd.toJD(a,n.month(),n.day())},fromJD:function(e){var r=zd.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Ss.calendars.taiwan=X5});var Mq=be(()=>{var Cs=In(),jue=Fn(),qd=Cs.instance();function Z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z5.prototype=new Cs.baseCalendar;jue(Z5.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Cs.local.invalidYear),t=this._t2gYear(r.year());return qd.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Cs.local.invalidYear),a=this._t2gYear(n.year());return qd.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Cs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Cs.local.invalidDate),a=this._t2gYear(n.year());return qd.toJD(a,n.month(),n.day())},fromJD:function(e){var r=qd.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Cs.calendars.thai=Z5});var Tq=be(()=>{var Es=In(),efe=Fn();function J5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J5.prototype=new Es.baseCalendar;efe(J5.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Es.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Es.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;o<_l.length;o++){if(_l[o]>n)return _l[a]-_l[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Es.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+_l[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;n<_l.length&&!(_l[n]>r);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-_l[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=Es.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=Es.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});Es.calendars.ummalqura=J5;var _l=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var kq=be((Gge,Aq)=>{"use strict";Aq.exports=In();sq();uq();fq();cq();hq();vq();dq();pq();yq();xq();bq();_q();wq();Mq();Tq()});var Pq=be((Yge,Rq)=>{"use strict";var Cq=kq(),ac=er(),Eq=ln(),rfe=Eq.EPOCHJD,tfe=Eq.ONEDAY,$5={valType:"enumerated",values:ac.sortObjectKeys(Cq.calendars),editType:"calc",dflt:"gregorian"},Lq=function(e,r,t,n){var a={};return a[t]=$5,ac.coerce(e,r,a,t,n)},nfe=function(e,r,t,n){for(var a=0;a{"use strict";Fq.exports=Pq()});var ufe=be((Xge,zq)=>{var Nq=FF();Nq.register([cN(),NN(),ez(),hz(),kz(),Uz(),nq(),Iq()]);zq.exports=Nq});return ufe();})(); +`;for(re=0,H=j*q,ne=F,ye="",V=0;V0&&(L=F.size),F.lineSpacing&&F.lineSpacing>0&&(P=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(O.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(O.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(O.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(O.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(O.superscripts=!!F.styletags.superscripts)),I.font=[F.fontStyle,F.fontVariant,F.fontWeight,L+"px",F.font].filter(function(X){return X}).join(" "),I.textAlign="start",I.textBaseline="alphabetic",I.direction="ltr";var B=c(N,I,R,L,P,O);return D(B,F,L)}}),1538:(function(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(d){d.permitHostObjects___&&d.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var h=Object.prototype.hasOwnProperty,p=Object.getOwnPropertyNames,_=Object.defineProperty,y=Object.isExtensible,b="weakmap:",T=b+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var m=new ArrayBuffer(25),k=new Uint8Array(m);crypto.getRandomValues(k),T=b+"rand:"+Array.prototype.map.call(k,function(d){return(d%36).toString(36)}).join("")+"___"}function S(d){return!(d.substr(0,b.length)==b&&d.substr(d.length-3)==="___")}if(_(Object,"getOwnPropertyNames",{value:function(D){return p(D).filter(S)}}),"getPropertyNames"in Object){var x=Object.getPropertyNames;_(Object,"getPropertyNames",{value:function(D){return x(D).filter(S)}})}function M(d){if(d!==Object(d))throw new TypeError("Not an object: "+d);var D=d[T];if(D&&D.key===d)return D;if(y(d)){D={key:d};try{return _(d,T,{value:D,writable:!1,enumerable:!1,configurable:!1}),D}catch(E){return}}}(function(){var d=Object.freeze;_(Object,"freeze",{value:function(N){return M(N),d(N)}});var D=Object.seal;_(Object,"seal",{value:function(N){return M(N),D(N)}});var E=Object.preventExtensions;_(Object,"preventExtensions",{value:function(N){return M(N),E(N)}})})();function v(d){return d.prototype=null,Object.freeze(d)}var w=!1;function g(){!w&&typeof console!="undefined"&&(w=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var c=0,A=function(){this instanceof A||g();var d=[],D=[],E=c++;function R(L,P){var O,B=M(L);return B?E in B?B[E]:P:(O=d.indexOf(L),O>=0?D[O]:P)}function N(L){var P=M(L);return P?E in P:d.indexOf(L)>=0}function I(L,P){var O,B=M(L);return B?B[E]=P:(O=d.indexOf(L),O>=0?D[O]=P:(O=d.length,D[O]=P,d[O]=L)),this}function F(L){var P=M(L),O,B;return P?E in P&&delete P[E]:(O=d.indexOf(L),O<0?!1:(B=d.length-1,d[O]=void 0,D[O]=D[B],d[O]=d[B],d.length=B,D.length=B,!0))}return Object.create(A.prototype,{get___:{value:v(R)},has___:{value:v(N)},set___:{value:v(I)},delete___:{value:v(F)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(D,E){return this.get___(D,E)},writable:!0,configurable:!0},has:{value:function(D){return this.has___(D)},writable:!0,configurable:!0},set:{value:function(D,E){return this.set___(D,E)},writable:!0,configurable:!0},delete:{value:function(D){return this.delete___(D)},writable:!0,configurable:!0}}),typeof u=="function"?(function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function d(){this instanceof A||g();var D=new u,E=void 0,R=!1;function N(P,O){return E?D.has(P)?D.get(P):E.get___(P,O):D.get(P,O)}function I(P){return D.has(P)||(E?E.has___(P):!1)}var F;l?F=function(P,O){return D.set(P,O),D.has(P)||(E||(E=new A),E.set(P,O)),this}:F=function(P,O){if(R)try{D.set(P,O)}catch(B){E||(E=new A),E.set___(P,O)}else D.set(P,O);return this};function L(P){var O=!!D.delete(P);return E&&E.delete___(P)||O}return Object.create(A.prototype,{get___:{value:v(N)},has___:{value:v(I)},set___:{value:v(F)},delete___:{value:v(L)},permitHostObjects___:{value:v(function(P){if(P===i)R=!0;else throw new Error("bogus call to permitHostObjects___")})}})}d.prototype=A.prototype,a.exports=d,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()}),236:(function(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var h=f.valueOf(s);return h&&h.identity===s?h:l(f,s)}}}),8284:(function(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}}),606:(function(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,h){var p=s(f);return p.hasOwnProperty("value")?p.value:h},set:function(f,h){return s(f).value=h,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}}),3349:(function(a){"use strict";function o(){return function(h,p,_,y,b,T){var m=h[0],k=_[0],S=[0],x=k;y|=0;var M=0,v=k;for(M=0;M=0!=g>=0&&b.push(S[0]+.5+.5*(w+g)/(w-g))}y+=v,++S[0]}}}function i(){return o()}var l=i;function u(h){var p={};return function(y,b,T){var m=y.dtype,k=y.order,S=[m,k.join()].join(),x=p[S];return x||(p[S]=x=h([m,k])),x(y.shape.slice(0),y.data,y.stride,y.offset|0,b,T)}}function s(h){return u(l.bind(void 0,h))}function f(h){return s({funcName:h.funcName})}a.exports=f({funcName:"zeroCrossings"})}),781:(function(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var h=[];return f=+f||0,l(s.hi(s.shape[0]-1),h,f),h}}),7790:(function(){})},r={};function t(a){var o=r[a];if(o!==void 0)return o.exports;var i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}(function(){t.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}})()})(),(function(){t.nmd=function(a){return a.paths=[],a.children||(a.children=[]),a}})();var n=t(1964);zF.exports=n})()});var OF=be((lpe,qF)=>{"use strict";qF.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var VF=be((spe,HF)=>{"use strict";var BF=OF();HF.exports=Nie;var UF={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Nie(e){var r,t=[],n=1,a;if(typeof e=="string")if(e=e.toLowerCase(),BF[e])t=BF[e].slice(),a="rgb";else if(e==="transparent")n=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),i=o.length,l=i<=4;n=1,l?(t=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],i===4&&(n=parseInt(o[3]+o[3],16)/255)):(t=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],i===8&&(n=parseInt(o[6]+o[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=r[1],s=u==="rgb",o=u.replace(/a$/,"");a=o;var i=o==="cmyk"?4:o==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(p,_){if(/%$/.test(p))return _===i?parseFloat(p)/100:o==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(o[_]==="h"){if(/deg$/.test(p))return parseFloat(p);if(UF[p]!==void 0)return UF[p]}return parseFloat(p)}),u===o&&t.push(1),n=s||t[i]===void 0?1:t[i],t=t.slice(0,i)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),a=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(a="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:a,values:t,alpha:n}}});var YF=be((upe,GF)=>{"use strict";var zie=VF();GF.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,n,a,o=zie(r);if(!o.space)return[];var i=[0,0,0],l=o.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(o.values[0],i[0]),l[0]),t[1]=Math.min(Math.max(o.values[1],i[1]),l[1]),t[2]=Math.min(Math.max(o.values[2],i[2]),l[2]),o.space[0]==="h"&&(t=qie(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t};function qie(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100,a,o,i,l,u,s=0;if(t===0)return u=n*255,[u,u,u];for(o=n<.5?n*(1+t):n+t-n*t,a=2*n-o,l=[0,0,0];s<3;)i=r+1/3*-(s-1),i<0?i++:i>1&&i--,u=6*i<1?a+(o-a)*6*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,l[s++]=u*255;return l}});var XF=be((fpe,WF)=>{WF.exports=Oie;function Oie(e,r,t){return rt?t:e:er?r:e}});var JF=be((cpe,ZF)=>{ZF.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var F3=be((hpe,KF)=>{"use strict";var Bie=YF(),dd=XF(),Uie=JF();KF.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var n=Uie(t),a=new n(4),o=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=Bie(r),r[0]/=255,r[1]/=255,r[2]/=255),Hie(r)?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:255,o&&(a[0]/=255,a[1]/=255,a[2]/=255,a[3]/=255),a):(o?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:1):(a[0]=dd(Math.floor(r[0]*255),0,255),a[1]=dd(Math.floor(r[1]*255),0,255),a[2]=dd(Math.floor(r[2]*255),0,255),a[3]=r[3]==null?255:dd(Math.floor(r[3]*255),0,255)),a)};function Hie(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var wo=be((vpe,QF)=>{"use strict";var Vie=F3();function Gie(e){return e?Vie(e):[0,0,0,1]}QF.exports=Gie});var hl=be((dpe,aI)=>{"use strict";var tI=nt(),Yie=Sa(),pd=F3(),gd=Ri(),Wie=Si().defaultLine,$F=Zn().isArrayOrTypedArray,I3=pd(Wie),nI=1;function jF(e,r){var t=e;return t[3]*=r,t}function eI(e){if(tI(e))return I3;var r=pd(e);return r.length?r:I3}function rI(e){return tI(e)?e:nI}function Xie(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=$F(n),o=$F(r),i=gd.extractOpts(e),l=[],u,s,f,h,p;if(i.colorscale!==void 0?u=gd.makeColorScaleFuncFromTrace(e):u=eI,a?s=function(y,b){return y[b]===void 0?I3:pd(u(y[b]))}:s=eI,o?f=function(y,b){return y[b]===void 0?nI:rI(y[b])}:f=rI,a||o)for(var _=0;_{"use strict";iI.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var yd=be((gpe,oI)=>{"use strict";oI.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var sI=be((ype,lI)=>{"use strict";var Jie=Tr();function z3(e,r,t,n){if(!r||!r.visible)return null;for(var a=Jie.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i0){var h=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=h),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,h)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function Kie(e){for(var r=0;r{"use strict";var $ie=mn().gl_line3d,uI=mn().gl_scatter3d,jie=mn().gl_error3d,eoe=mn().gl_mesh3d,roe=mn().delaunay_triangulate,Mo=er(),dI=wo(),md=hl().formatColor,toe=Fg(),q3=N3(),noe=yd(),aoe=Lt(),ioe=fo().appendArrayPointValue,ooe=sI();function pI(e,r){this.scene=e,this.uid=r,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var B3=pI.prototype;B3.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Mo.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function loe(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l-1?-1:e.indexOf("right")>-1?1:0}function cI(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function uoe(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=loe(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=eoe(s),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};B3.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function voe(e,r){var t=new pI(e,r.uid);return t.update(r),t}gI.exports=voe});var Y3=be((xpe,_I)=>{"use strict";var To=us(),doe=Sn(),G3=ni(),U3=uo().axisHoverFormat,{hovertemplateAttrs:poe,texttemplateAttrs:goe,templatefallbackAttrs:mI}=ja(),xI=Cn(),yoe=N3(),moe=yd(),xi=At().extendFlat,xoe=On().overrideAll,bI=ah(),boe=To.line,ws=To.marker,_oe=ws.line,woe=xi({width:boe.width,dash:{valType:"enumerated",values:bI(yoe),dflt:"solid"}},G3("line"));function H3(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var V3=_I.exports=xoe({x:To.x,y:To.y,z:{valType:"data_array"},text:xi({},To.text,{}),texttemplate:goe(),texttemplatefallback:mI({editType:"calc"}),hovertext:xi({},To.hovertext,{}),hovertemplate:poe(),hovertemplatefallback:mI(),xhoverformat:U3("x"),yhoverformat:U3("y"),zhoverformat:U3("z"),mode:xi({},To.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:H3("x"),y:H3("y"),z:H3("z")},connectgaps:To.connectgaps,line:woe,marker:xi({symbol:{valType:"enumerated",values:bI(moe),dflt:"circle",arrayOk:!0},size:xi({},ws.size,{dflt:8}),sizeref:ws.sizeref,sizemin:ws.sizemin,sizemode:ws.sizemode,opacity:xi({},ws.opacity,{arrayOk:!1}),colorbar:ws.colorbar,line:xi({width:xi({},_oe.width,{arrayOk:!1})},G3("marker.line"))},G3("marker")),textposition:xi({},To.textposition,{dflt:"top center"}),textfont:doe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:xI.opacity,hoverinfo:xi({},xI.hoverinfo)},"calc","nested");V3.x.editType=V3.y.editType=V3.z.editType="calc+clearAxisTypes"});var TI=be((bpe,MI)=>{"use strict";var wI=Tr(),Moe=er(),W3=sa(),Toe=um(),Aoe=fm(),koe=cm(),Soe=Y3();MI.exports=function(r,t,n,a){function o(_,y){return Moe.coerce(r,t,Soe,_,y)}var i=Coe(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),W3.hasMarkers(t)&&Toe(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),W3.hasLines(t)&&(o("connectgaps"),Aoe(r,t,n,a,o)),W3.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),koe(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var h="projection."+s[f];o(h+".show")&&(o(h+".opacity"),o(h+".scale"))}var p=wI.getComponentMethod("errorbars","supplyDefaults");p(r,t,l||u||n,{axis:"z"}),p(r,t,l||u||n,{axis:"y",inherit:"z"}),p(r,t,l||u||n,{axis:"x",inherit:"z"})};function Coe(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=wI.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var kI=be((_pe,AI)=>{"use strict";var Eoe=k1(),Loe=dm();AI.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return Eoe(n,t),Loe(r,t),n}});var CI=be((wpe,SI)=>{SI.exports=Doe;function Doe(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i{var Roe=CI();EI.exports=function(r){return Roe("webgl",r)}});var PI=be((Tpe,RI)=>{"use strict";var DI=Gr(),Poe=function(){};RI.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=Poe);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=DI.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=DI.lightLine,n.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var NI=be((Ape,II)=>{"use strict";var Ms=wo(),Foe=er(),Ioe=["xaxis","yaxis","zaxis"];function FI(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var Noe=FI.prototype;Noe.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[Ioe[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?Foe.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=Ms(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=Ms(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=Ms(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=Ms(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=Ms(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=Ms(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=Ms(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function zoe(e,r){var t=new FI;return t.merge(e,r),t}II.exports=zoe});var OI=be((kpe,qI)=>{"use strict";var qoe=wo(),Ooe=["xaxis","yaxis","zaxis"];function zI(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var Boe=zI.prototype;Boe.merge=function(e){for(var r=0;r<3;++r){var t=e[Ooe[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=qoe(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function Uoe(e){var r=new zI;return r.merge(e),r}qI.exports=Uoe});var HI=be((Spe,UI)=>{"use strict";UI.exports=Woe;var BI=Lt(),Hoe=er(),Voe=["xaxis","yaxis","zaxis"],Goe=[0,0,0];function Yoe(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){Goe[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=Yoe(a)}});var JI=be((Cpe,ZI)=>{"use strict";var YI=mn().gl_plot3d,Xoe=YI.createCamera,VI=YI.createScene,Zoe=LI(),Joe=ov(),_d=Tr(),$n=er(),bd=$n.preserveDrawingBuffer(),wd=Lt(),bi=Bi(),Koe=wo(),Qoe=PI(),$oe=Qm(),joe=NI(),ele=OI(),rle=HI(),tle=cu().applyAutorangeOptions,Q0,xd,WI=!1;function XI(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=joe(r,r[this.id]),this.spikeOptions=ele(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=_d.getComponentMethod("annotations3d","convert"),this.drawAnnotations=_d.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Pn=XI.prototype;Pn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:bd,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!xd&&(Q0=document.createElement("canvas"),xd=Zoe({canvas:Q0,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!xd))throw new Error("error creating static canvas/context for image server");r.gl=xd,r.canvas=Q0}return r};var GI=!0;Pn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=VI(r)}catch(n){if(e.staticMode||!GI||bd)t=!1;else{$n.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{bd=r.glOptions.preserveDrawingBuffer=!0,e.glplot=VI(r)}catch(a){bd=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return GI=!1,t};Pn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=Xoe(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};Pn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return Qoe(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){WI=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},Joe?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Pn.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),rle(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,h=e.glplot.selection,p=0;p")):t.type==="isosurface"||t.type==="volume"?(m.valueLabel=wd.hoverLabelText(e._mockAxis,e._mockAxis.d2l(h.traceCoordinate[3]),t.valuehoverformat),v.push("value: "+m.valueLabel),h.textLabel&&v.push(h.textLabel),M=v.join("
")):M=h.textLabel;var w={x:h.traceCoordinate[0],y:h.traceCoordinate[1],z:h.traceCoordinate[2],data:b._input,fullData:b,curveNumber:b.index,pointNumber:T};bi.appendArrayPointValue(w,b,T),t._module.eventData&&(w=b._module.eventData(w,h,b,{},T));var g={points:[w]};if(e.fullSceneLayout.hovermode){var c=[];bi.loneHover({trace:b,x:(.5+.5*y[0]/y[3])*l,y:(.5-.5*y[1]/y[3])*u,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:M,name:f.name,color:bi.castHoverOption(b,T,"bgcolor")||f.color,borderColor:bi.castHoverOption(b,T,"bordercolor"),fontFamily:bi.castHoverOption(b,T,"font.family"),fontSize:bi.castHoverOption(b,T,"font.size"),fontColor:bi.castHoverOption(b,T,"font.color"),nameLength:bi.castHoverOption(b,T,"namelength"),textAlign:bi.castHoverOption(b,T,"align"),hovertemplate:$n.castOption(b,T,"hovertemplate"),hovertemplateLabels:$n.extendFlat({},w,m),eventData:[w]},{container:n,gd:r,inOut_bbox:c}),w.bbox=c[0]}h.distance<5&&(h.buttons||WI)?r.emit("plotly_click",g):r.emit("plotly_hover",g),this.oldEventData=g}else bi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Pn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){$n.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var $0=["xaxis","yaxis","zaxis"];function nle(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=$0[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!$n.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var h,p=0;p<(f||u.length);p++)if($n.isArrayOrTypedArray(u[p]))for(var _=0;_b[1][i])b[0][i]=-1,b[1][i]=1;else{var d=b[1][i]-b[0][i];b[0][i]-=d/32,b[1][i]+=d/32}if(k=[b[0][i],b[1][i]],k=tle(k,u),b[0][i]=k[0],b[1][i]=k[1],u.isReversed()){var D=b[0][i];b[0][i]=b[1][i],b[1][i]=D}}else k=u.range,b[0][i]=u.r2l(k[0]),b[1][i]=u.r2l(k[1]);b[0][i]===b[1][i]&&(b[0][i]-=1,b[1][i]+=1),T[i]=b[1][i]-b[0][i],u.range=[b[0][i],b[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*_[i],max:u.range[1]*_[i]})}var E,R=f.aspectmode;if(R==="cube")E=[1,1,1];else if(R==="manual"){var N=f.aspectratio;E=[N.x,N.y,N.z]}else if(R==="auto"||R==="data"){var I=[1,1,1];for(i=0;i<3;++i){u=f[$0[i]],s=u.type;var F=m[s];I[i]=Math.pow(F.acc,1/F.count)/_[i]}R==="data"||Math.max.apply(null,I)/Math.min.apply(null,I)<=4?E=I:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=h.aspectratio.x=E[0],f.aspectratio.y=h.aspectratio.y=E[1],f.aspectratio.z=h.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,P=r._size||null;if(L&&P){var O=n.container.style;O.position="absolute",O.left=P.l+L.x[0]*P.w+"px",O.top=P.t+(1-L.y[1])*P.h+"px",O.width=P.w*(L.x[1]-L.x[0])+"px",O.height=P.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};Pn.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function ile(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function ole(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Pn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),ole(e.camera)};Pn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,ile(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};Pn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=$n.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,h,p){var _=["up","center","eye"],y=["x","y","z"];return f[_[h]]&&s[_[h]][y[p]]===f[_[h]][y[p]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};Pn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=$n.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Pn.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),h=s||f;if(h){var p={};if(s&&(n=r.getCamera(),a=$n.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=$n.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),_d.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var _=$n.nestedProperty(t,r.id+".camera");_.set(n)}if(f){l.set(i);var y=$n.nestedProperty(t,r.id+".aspectratio");y.set(i),r.glplot.redraw()}}return h};Pn.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",h={x:0,y:0,z:1},p={};p[f]=h;var _=a.layout;_d.call("_storeDirectGUIEdit",_,o._preGUI,p),i.up=h,$n.nestedProperty(_,f).set(h)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function lle(e,r,t){for(var n=0,a=t-1;n0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}Pn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(Q0),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),lle(o,n,a),sle(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(Q0),s};Pn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[$0[r]];wd.setConvert(t,e.fullLayout),t.setScale=$n.noop}};Pn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},wd.setConvert(e._mockAxis,t)};ZI.exports=XI});var QI=be((Epe,KI)=>{"use strict";KI.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var Z3=be((Lpe,$I)=>{"use strict";var ule=Gr(),zr=Da(),X3=At().extendFlat,fle=On().overrideAll;$I.exports=fle({visible:zr.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:ule.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:zr.color,categoryorder:zr.categoryorder,categoryarray:zr.categoryarray,title:{text:zr.title.text,font:zr.title.font},type:X3({},zr.type,{values:["-","linear","log","date","category"]}),autotypenumbers:zr.autotypenumbers,autorange:zr.autorange,autorangeoptions:{minallowed:zr.autorangeoptions.minallowed,maxallowed:zr.autorangeoptions.maxallowed,clipmin:zr.autorangeoptions.clipmin,clipmax:zr.autorangeoptions.clipmax,include:zr.autorangeoptions.include,editType:"plot"},rangemode:zr.rangemode,minallowed:zr.minallowed,maxallowed:zr.maxallowed,range:X3({},zr.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:zr.minor.tickmode,nticks:zr.nticks,tick0:zr.tick0,dtick:zr.dtick,tickvals:zr.tickvals,ticktext:zr.ticktext,ticks:zr.ticks,mirror:zr.mirror,ticklen:zr.ticklen,tickwidth:zr.tickwidth,tickcolor:zr.tickcolor,showticklabels:zr.showticklabels,labelalias:zr.labelalias,tickfont:zr.tickfont,tickangle:zr.tickangle,tickprefix:zr.tickprefix,showtickprefix:zr.showtickprefix,ticksuffix:zr.ticksuffix,showticksuffix:zr.showticksuffix,showexponent:zr.showexponent,exponentformat:zr.exponentformat,minexponent:zr.minexponent,separatethousands:zr.separatethousands,tickformat:zr.tickformat,tickformatstops:zr.tickformatstops,hoverformat:zr.hoverformat,showline:zr.showline,linecolor:zr.linecolor,linewidth:zr.linewidth,showgrid:zr.showgrid,gridcolor:X3({},zr.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:zr.gridwidth,zeroline:zr.zeroline,zerolinecolor:zr.zerolinecolor,zerolinewidth:zr.zerolinewidth},"plot","from-root")});var $3=be((Dpe,jI)=>{"use strict";var J3=Z3(),cle=sd().attributes,K3=At().extendFlat,hle=er().counterRegex;function Q3(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}jI.exports={_arrayAttrRegexps:[hle("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:K3(Q3(0,0,1),{}),center:K3(Q3(0,0,0),{}),eye:K3(Q3(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:cle({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:J3,yaxis:J3,zaxis:J3,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var rN=be((Rpe,eN)=>{"use strict";var vle=er(),dle=yt(),ple=sd().defaults;eN.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,h=f&&s[0].replace(/\d+$/,""),p,_;function y(k,S){return vle.coerce(p,_,i,k,S)}for(var b=0;b{"use strict";var gle=Sa().mix,tN=er(),yle=yt(),mle=Z3(),xle=Pm(),ble=F1(),nN=["xaxis","yaxis","zaxis"],_le=13600/187;aN.exports=function(r,t,n){var a,o;function i(s,f){return tN.coerce(a,o,mle,s,f)}for(var l=0;l{"use strict";var wle=er(),Mle=Gr(),Tle=Tr(),Ale=rN(),kle=iN(),oN=$3(),Sle=Pf().getSubplotData,lN="gl3d";sN.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=wle.validate(r[i],oN[i]);if(l)return r[i]}}Ale(r,t,n,{type:lN,attributes:oN,handleDefaults:Cle,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Cle(e,r,t,n){for(var a=t("bgcolor"),o=Mle.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l.999)&&(p="turntable")}else p="turntable";t("dragmode",p),t("hovermode",n.getDfltFromLayout("hovermode"))}});var vl=be(jn=>{"use strict";var Ele=On().overrideAll,Lle=Ll(),Dle=JI(),Rle=Pf().getSubplotData,Ple=er(),Fle=Ho(),Xu="gl3d",j3="scene";jn.name=Xu;jn.attr=j3;jn.idRoot=j3;jn.idRegex=jn.attrRegex=Ple.counterRegex("scene");jn.attributes=QI();jn.layoutAttributes=$3();jn.baseLayoutAttrOverrides=Ele({hoverlabel:Lle.hoverlabel},"plot","nested");jn.supplyLayoutDefaults=uN();jn.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Xu],o=0;o{"use strict";fN.exports={plot:yI(),attributes:Y3(),markerSymbols:yd(),supplyDefaults:TI(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:kI(),moduleType:"trace",name:"scatter3d",basePlotModule:vl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var vN=be((zpe,hN)=>{"use strict";hN.exports=cN()});var j0=be((qpe,gN)=>{"use strict";var dN=Gr(),Ile=ni(),e5=uo().axisHoverFormat,{hovertemplateAttrs:Nle,templatefallbackAttrs:zle}=ja(),pN=Cn(),r5=At().extendFlat,qle=On().overrideAll;function t5(e){return{valType:"boolean",dflt:!1}}function n5(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:t5("x"),y:t5("y"),z:t5("z")},color:{valType:"color",dflt:dN.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:dN.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var a5=gN.exports=qle(r5({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Nle(),hovertemplatefallback:zle(),xhoverformat:e5("x"),yhoverformat:e5("y"),zhoverformat:e5("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},Ile("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:n5("x"),y:n5("y"),z:n5("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:r5({},pN.hoverinfo),showlegend:r5({},pN.showlegend,{dflt:!1})}),"calc","nested");a5.x.editType=a5.y.editType=a5.z.editType="calc+clearAxisTypes"});var o5=be((Ope,xN)=>{"use strict";var Ole=Tr(),yN=er(),Ble=Di(),Ule=j0(),i5=.1;function Hle(e,r){for(var t=[],n=32,a=0;a{"use strict";var bN=Go();_N.exports=function(r,t){t.surfacecolor?bN(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):bN(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var kN=be((Upe,AN)=>{"use strict";var Yle=er(),MN=.01,Wle=[[-1,0],[1,0],[0,-1],[0,1]];function Xle(e){return .5-.25*Math.min(1,e*.5)}AN.exports=function(r,t){var n=1,a;for(TN(r,t),a=0;aMN;a++)n=TN(r,t,Xle(n));return n>MN&&Yle.log("interp2d didn't converge quickly",n),r};function TN(e,r,t){var n=0,a,o,i,l,u,s,f,h,p,_,y,b,T;for(l=0;lb&&(n=Math.max(n,Math.abs(e[o][i]-y)/(T-b))))}return n}});var CN=be((Hpe,SN)=>{"use strict";var Zle=er().maxRowLength;SN.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=Zle(r),s,f,h,p,_,y,b,T;for(f=0;f=0;_--)p=a[_],f=p[0],h=p[1],y=((n[[f-1,h]]||l)[2]+(n[[f+1,h]]||l)[2]+(n[[f,h-1]]||l)[2]+(n[[f,h+1]]||l)[2])/20,y&&(b[p]=[f,h,y],a.splice(_,1),T=!0);if(!T)throw"findEmpties iterated with no new neighbors";for(p in b)n[p]=b[p],t.push(b[p])}return t.sort(function(m,k){return k[2]-m[2]})}});var FN=be((Vpe,PN)=>{"use strict";var Jle=mn().gl_surface3d,Zu=mn().ndarray,Kle=mn().ndarray_linear_interpolate.d2,Qle=kN(),$le=CN(),ec=er().isArrayOrTypedArray,jle=hl().parseColorScale,EN=wo(),ese=Ri().extractOpts;function DN(e,r,t){this.scene=e,this.uid=t,this.surface=r,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var _i=DN.prototype;_i.getXat=function(e,r,t,n){var a=ec(this.data.x)?ec(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};_i.getYat=function(e,r,t,n){var a=ec(this.data.y)?ec(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};_i.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};_i.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return ec(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function rse(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var Ju=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function tse(e,r){if(e0){t=Ju[n];break}return t}function ase(e,r){if(!(e<1||r<1)){for(var t=l5(e),n=l5(r),a=1,o=0;oMd;)n--,n/=nse(n),n++,n1?a:1};function ose(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function lse(e,r,t){return sse(e,r,ose,t),e}function sse(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];ap&&(this.minValues[s]=p),this.maxValues[s]{"use strict";IN.exports={attributes:j0(),supplyDefaults:o5().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:wN(),plot:FN(),moduleType:"trace",name:"surface",basePlotModule:vl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var qN=be((Ype,zN)=>{"use strict";zN.exports=NN()});var Ku=be((Wpe,BN)=>{"use strict";var cse=ni(),s5=uo().axisHoverFormat,{hovertemplateAttrs:hse,templatefallbackAttrs:vse}=ja(),dl=j0(),ON=Cn(),pl=At().extendFlat;BN.exports=pl({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:hse({editType:"calc"}),hovertemplatefallback:vse({editType:"calc"}),xhoverformat:s5("x"),yhoverformat:s5("y"),zhoverformat:s5("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},cse("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:dl.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:pl({},dl.contours.x.show,{}),color:dl.contours.x.color,width:dl.contours.x.width,editType:"calc"},lightposition:{x:pl({},dl.lightposition.x,{dflt:1e5}),y:pl({},dl.lightposition.y,{dflt:1e5}),z:pl({},dl.lightposition.z,{dflt:0}),editType:"calc"},lighting:pl({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},dl.lighting),hoverinfo:pl({},ON.hoverinfo,{editType:"calc"}),showlegend:pl({},ON.showlegend,{dflt:!1})})});var Ad=be((Xpe,HN)=>{"use strict";var dse=ni(),Td=uo().axisHoverFormat,{hovertemplateAttrs:pse,templatefallbackAttrs:gse}=ja(),rc=Ku(),UN=Cn(),u5=At().extendFlat,yse=On().overrideAll;function f5(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function c5(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Qu=HN.exports=yse(u5({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:f5("x"),y:f5("y"),z:f5("z")},caps:{x:c5("x"),y:c5("y"),z:c5("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:pse(),hovertemplatefallback:gse(),xhoverformat:Td("x"),yhoverformat:Td("y"),zhoverformat:Td("z"),valuehoverformat:Td("value",1),showlegend:u5({},UN.showlegend,{dflt:!1})},dse("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:rc.opacity,lightposition:rc.lightposition,lighting:rc.lighting,flatshading:rc.flatshading,contour:rc.contour,hoverinfo:u5({},UN.hoverinfo)}),"calc","nested");Qu.flatshading.dflt=!0;Qu.lighting.facenormalsepsilon.dflt=0;Qu.x.editType=Qu.y.editType=Qu.z.editType=Qu.value.editType="calc+clearAxisTypes"});var h5=be((Zpe,GN)=>{"use strict";var mse=er(),xse=Tr(),bse=Ad(),_se=Di();function wse(e,r,t,n){function a(o,i){return mse.coerce(e,r,bse,o,i)}VN(e,r,t,n,a)}function VN(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var h=xse.getComponentMethod("calendars","handleTraceDefaults");h(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(b){a(b+"hoverformat");var T="caps."+b,m=a(T+".show");m&&a(T+".fill");var k="slices."+b,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var _=a("surface.show");_&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var y=a("contour.show");y&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(b){a(b)}),_se(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}GN.exports={supplyDefaults:wse,supplyIsoDefaults:VN}});var kd=be((Jpe,WN)=>{"use strict";var d5=er(),Mse=Go();function Tse(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=Ki(r.u,r._len),r._v=Ki(r.v,r._len),r._w=Ki(r.w,r._len),r._x=Ki(r.x,r._len),r._y=Ki(r.y,r._len),r._z=Ki(r.z,r._len);var t=YN(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=Ki(r.starts.x||[]),o=Ki(r.starts.y||[]),i=Ki(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s1&&(S=r[a-1],M=t[a-1],w=n[a-1]),o=0;oS?"-":"+")+"x"),y=y.replace("y",(x>M?"-":"+")+"y"),y=y.replace("z",(v>w?"-":"+")+"z");var d=function(){a=0,g=[],c=[],A=[]};(!a||a{"use strict";var Ase=Go(),kse=kd().processGrid,Sd=kd().filter;XN.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=Sd(t.x,t._len),t._y=Sd(t.y,t._len),t._z=Sd(t.z,t._len),t._value=Sd(t.value,t._len);var n=kse(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i{"use strict";ZN.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var Sse=mn().gl_mesh3d,Cse=hl().parseColorScale,Ese=er().isArrayOrTypedArray,Lse=wo(),Dse=Ri().extractOpts,JN=$u(),tc=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n-1}function B(pe,ve){return pe===null?ve:pe}function X(pe,ve,xe){d();var me=[ve],de=[xe];if(F>=1)me=[ve],de=[xe];else if(F>0){var _e=P(ve,xe);me=_e.xyzv,de=_e.abc}for(var Ae=0;Ae-1?xe[De]:A(We,Oe,ze);Se>-1?Ie[De]=Se:Ie[De]=E(We,Oe,ze,B(pe,Be))}R(Ie[0],Ie[1],Ie[2])}}function $(pe,ve,xe){var me=function(de,_e,Ae){X(pe,[ve[de],ve[_e],ve[Ae]],[xe[de],xe[_e],xe[Ae]])};me(0,1,2),me(2,3,0)}function ee(pe,ve,xe){var me=function(de,_e,Ae){X(pe,[ve[de],ve[_e],ve[Ae]],[xe[de],xe[_e],xe[Ae]])};me(0,1,2),me(3,0,1),me(2,3,0),me(1,2,3)}function Y(pe,ve,xe,me){var de=pe[3];deme&&(de=me);for(var _e=(pe[3]-de)/(pe[3]-ve[3]+1e-9),Ae=[],Ie=0;Ie<4;Ie++)Ae[Ie]=(1-_e)*pe[Ie]+_e*ve[Ie];return Ae}function q(pe,ve,xe){return pe>=ve&&pe<=xe}function Q(pe){var ve=.001*(M-x);return pe>=x-ve&&pe<=M+ve}function oe(pe){for(var ve=[],xe=0;xe<4;xe++){var me=pe[xe];ve.push([e._x[me],e._y[me],e._z[me],e._value[me]])}return ve}var Z=3;function se(pe,ve,xe,me,de,_e){_e||(_e=1),xe=[-1,-1,-1];var Ae=!1,Ie=[q(ve[0][3],me,de),q(ve[1][3],me,de),q(ve[2][3],me,de)];if(!Ie[0]&&!Ie[1]&&!Ie[2])return!1;var De=function(Oe,ze,Be){return Q(ze[0][3])&&Q(ze[1][3])&&Q(ze[2][3])?(X(Oe,ze,Be),!0):_eIe?[k,_e]:[_e,S];Ce(ve,De[0],De[1])}}var We=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,M),Math.max(k,M)]];["x","y","z"].forEach(function(Oe){for(var ze=[],Be=0;Be0&&(Qe.push(yr.id),Oe==="x"?je.push([yr.distRatio,0,0]):Oe==="y"?je.push([0,yr.distRatio,0]):je.push([0,0,yr.distRatio]))}else Oe==="x"?$e=te(1,_-1):Oe==="y"?$e=te(1,y-1):$e=te(1,b-1);Qe.length>0&&(Oe==="x"?ze[Se]=Fe(pe,Qe,Le,Ye,je,ze[Se]):Oe==="y"?ze[Se]=ie(pe,Qe,Le,Ye,je,ze[Se]):ze[Se]=J(pe,Qe,Le,Ye,je,ze[Se]),Se++),$e.length>0&&(Oe==="x"?ze[Se]=ye(pe,$e,Le,Ye,ze[Se]):Oe==="y"?ze[Se]=ke(pe,$e,Le,Ye,ze[Se]):ze[Se]=Me(pe,$e,Le,Ye,ze[Se]),Se++)}var xr=e.caps[Oe];xr.show&&xr.fill&&(L(xr.fill),Oe==="x"?ze[Se]=ye(pe,[0,_-1],Le,Ye,ze[Se]):Oe==="y"?ze[Se]=ke(pe,[0,y-1],Le,Ye,ze[Se]):ze[Se]=Me(pe,[0,b-1],Le,Ye,ze[Se]),Se++)}}),l===0&&D(),e._meshX=v,e._meshY=w,e._meshZ=g,e._meshIntensity=c,e._Xs=f,e._Ys=h,e._Zs=p}return ce(),e}function Pse(e,r){var t=e.glplot.gl,n=Sse({gl:t}),a=new KN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}$N.exports={findNearestOnAxis:tc,generateIsoMeshes:QN,createIsosurfaceTrace:Pse}});var ez=be((jpe,jN)=>{"use strict";jN.exports={attributes:Ad(),supplyDefaults:h5().supplyDefaults,calc:p5(),colorbar:{min:"cmin",max:"cmax"},plot:Cd().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var tz=be((ege,rz)=>{"use strict";rz.exports=ez()});var m5=be((rge,az)=>{"use strict";var Fse=ni(),Zt=Ad(),Ise=j0(),nz=Cn(),y5=At().extendFlat,Nse=On().overrideAll,Ed=az.exports=Nse(y5({x:Zt.x,y:Zt.y,z:Zt.z,value:Zt.value,isomin:Zt.isomin,isomax:Zt.isomax,surface:Zt.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Zt.slices,caps:Zt.caps,text:Zt.text,hovertext:Zt.hovertext,xhoverformat:Zt.xhoverformat,yhoverformat:Zt.yhoverformat,zhoverformat:Zt.zhoverformat,valuehoverformat:Zt.valuehoverformat,hovertemplate:Zt.hovertemplate,hovertemplatefallback:Zt.hovertemplatefallback},Fse("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Zt.colorbar,opacity:Zt.opacity,opacityscale:Ise.opacityscale,lightposition:Zt.lightposition,lighting:Zt.lighting,flatshading:Zt.flatshading,contour:Zt.contour,hoverinfo:y5({},nz.hoverinfo),showlegend:y5({},nz.showlegend,{dflt:!1})}),"calc","nested");Ed.x.editType=Ed.y.editType=Ed.z.editType=Ed.value.editType="calc+clearAxisTypes"});var oz=be((tge,iz)=>{"use strict";var zse=er(),qse=m5(),Ose=h5().supplyIsoDefaults,Bse=o5().opacityscaleDefaults;iz.exports=function(r,t,n,a){function o(i,l){return zse.coerce(r,t,qse,i,l)}Ose(r,t,n,a,o),Bse(r,t,a,o)}});var fz=be((nge,uz)=>{"use strict";var Use=mn().gl_mesh3d,Hse=hl().parseColorScale,Vse=er().isArrayOrTypedArray,Gse=wo(),Yse=Ri().extractOpts,lz=$u(),x5=Cd().findNearestOnAxis,Wse=Cd().generateIsoMeshes;function sz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var b5=sz.prototype;b5.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=x5(t,this.data._Xs).id,u=x5(n,this.data._Ys).id,s=x5(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Vse(h)&&h[f]!==void 0?e.textLabel=h[f]:h&&(e.textLabel=h),!0}};b5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=Wse(e);function n(u,s,f,h){return s.map(function(p){return u.d2l(p,0,h)*f})}var a=lz(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=lz(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:Gse(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Yse(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Hse(e),this.mesh.update(i)};b5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Xse(e,r){var t=e.glplot.gl,n=Use({gl:t}),a=new sz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}uz.exports=Xse});var hz=be((age,cz)=>{"use strict";cz.exports={attributes:m5(),supplyDefaults:oz(),calc:p5(),colorbar:{min:"cmin",max:"cmax"},plot:fz(),moduleType:"trace",name:"volume",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var dz=be((ige,vz)=>{"use strict";vz.exports=hz()});var yz=be((oge,gz)=>{"use strict";var Zse=Tr(),pz=er(),Jse=Di(),Kse=Ku();gz.exports=function(r,t,n,a){function o(f,h){return pz.coerce(r,t,Kse,f,h)}function i(f){var h=f.map(function(p){var _=o(p);return _&&pz.isArrayOrTypedArray(_)?_:null});return h.every(function(p){return p&&p.length===h[0].length})&&h}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=Zse.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y","z"],a),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),Jse(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var xz=be((lge,mz)=>{"use strict";var Qse=Go();mz.exports=function(r,t){t.intensity&&Qse(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var Tz=be((sge,Mz)=>{"use strict";var $se=mn().gl_mesh3d,jse=mn().delaunay_triangulate,eue=mn().alpha_shape,rue=mn().convex_hull,tue=hl().parseColorScale,nue=er().isArrayOrTypedArray,T5=wo(),aue=Ri().extractOpts,bz=$u();function wz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var A5=wz.prototype;A5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return nue(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function _z(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}A5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=bz(_5(t.xaxis,e.x,r.dataScale[0],e.xcalendar),_5(t.yaxis,e.y,r.dataScale[1],e.ycalendar),_5(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!M5(e.i,n)||!M5(e.j,n)||!M5(e.k,n))return;o=bz(w5(e.i),w5(e.j),w5(e.k))}else e.alphahull===0?o=rue(a):e.alphahull>0?o=eue(e.alphahull,a):o=iue(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:T5(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=aue(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=tue(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=_z(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=_z(e.facecolor)):(this.color=e.color,i.meshColor=T5(e.color));this.mesh.update(i)};A5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function oue(e,r){var t=e.glplot.gl,n=$se({gl:t}),a=new wz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}Mz.exports=oue});var kz=be((uge,Az)=>{"use strict";Az.exports={attributes:Ku(),supplyDefaults:yz(),calc:xz(),colorbar:{min:"cmin",max:"cmax"},plot:Tz(),moduleType:"trace",name:"mesh3d",basePlotModule:vl(),categories:["gl3d","showLegend"],meta:{}}});var Cz=be((fge,Sz)=>{"use strict";Sz.exports=kz()});var S5=be((cge,Lz)=>{"use strict";var lue=ni(),ju=uo().axisHoverFormat,{hovertemplateAttrs:sue,templatefallbackAttrs:uue}=ja(),fue=Ku(),Ez=Cn(),k5=At().extendFlat,Ld={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:sue({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:uue({editType:"calc"}),uhoverformat:ju("u",1),vhoverformat:ju("v",1),whoverformat:ju("w",1),xhoverformat:ju("x"),yhoverformat:ju("y"),zhoverformat:ju("z"),showlegend:k5({},Ez.showlegend,{dflt:!1})};k5(Ld,lue("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var cue=["opacity","lightposition","lighting"];cue.forEach(function(e){Ld[e]=fue[e]});Ld.hoverinfo=k5({},Ez.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});Lz.exports=Ld});var Rz=be((hge,Dz)=>{"use strict";var hue=er(),vue=Di(),due=S5();Dz.exports=function(r,t,n,a){function o(_,y){return hue.coerce(r,t,due,_,y)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),h=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!h||!h.length){t.visible=!1;return}var p=o("sizemode");o("sizeref",p==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),vue(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var Fz=be((vge,Pz)=>{"use strict";var pue=Go();Pz.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s{"use strict";var gue=mn().gl_cone3d,yue=mn().gl_cone3d.createConeMesh,mue=er().simpleMap,xue=hl().parseColorScale,bue=Ri().extractOpts,_ue=er().isArrayOrTypedArray,Iz=$u();function Nz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var C5=Nz.prototype;C5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return _ue(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var wue={xaxis:0,yaxis:1,zaxis:2},Mue={tip:1,tail:0,cm:.25,center:.5},Tue={tip:1,tail:1,cm:.75,center:.5};function zz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,h){var p=t[h],_=n[wue[h]];return mue(f,function(y){return p.d2l(y)*_})}a.vectors=Iz(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=Iz(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=bue(r);a.colormap=xue(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=Mue[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=gue(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=Tue[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}C5.update=function(e){this.data=e;var r=zz(this.scene,e);this.mesh.update(r)};C5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Aue(e,r){var t=e.glplot.gl,n=zz(e,r),a=yue(t,n),o=new Nz(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}qz.exports=Aue});var Uz=be((pge,Bz)=>{"use strict";Bz.exports={moduleType:"trace",name:"cone",basePlotModule:vl(),categories:["gl3d","showLegend"],attributes:S5(),supplyDefaults:Rz(),colorbar:{min:"cmin",max:"cmax"},calc:Fz(),plot:Oz(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var Vz=be((gge,Hz)=>{"use strict";Hz.exports=Uz()});var L5=be((yge,Yz)=>{"use strict";var kue=ni(),ef=uo().axisHoverFormat,{hovertemplateAttrs:Sue,templatefallbackAttrs:Cue}=ja(),Eue=Ku(),Gz=Cn(),E5=At().extendFlat,Dd={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Sue({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:Cue({editType:"calc"}),uhoverformat:ef("u",1),vhoverformat:ef("v",1),whoverformat:ef("w",1),xhoverformat:ef("x"),yhoverformat:ef("y"),zhoverformat:ef("z"),showlegend:E5({},Gz.showlegend,{dflt:!1})};E5(Dd,kue("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Lue=["opacity","lightposition","lighting"];Lue.forEach(function(e){Dd[e]=Eue[e]});Dd.hoverinfo=E5({},Gz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Yz.exports=Dd});var Xz=be((mge,Wz)=>{"use strict";var Due=er(),Rue=Di(),Pue=L5();Wz.exports=function(r,t,n,a){function o(p,_){return Due.coerce(r,t,Pue,p,_)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),h=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!h||!h.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Rue(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var rq=be((xge,eq)=>{"use strict";var Kz=mn().gl_streamtube3d,Fue=Kz.createTubeMesh,Iue=er(),Nue=hl().parseColorScale,zue=Ri().extractOpts,Zz=$u(),Qz={xaxis:0,yaxis:1,zaxis:2};function $z(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var R5=$z.prototype;R5.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[Qz[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function Jz(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function D5(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function jz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(D,E){var R=t[E],N=n[Qz[E]];return Iue.simpleMap(D,function(I){return R.d2l(I)*N})}if(o.vectors=Zz(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=Zz(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var h=u[0],p=Jz(l),_=Jz(s),y=new Array(p.length*_.length),b=0,T=0;T{"use strict";tq.exports={moduleType:"trace",name:"streamtube",basePlotModule:vl(),categories:["gl3d","showLegend"],attributes:L5(),supplyDefaults:Xz(),colorbar:{min:"cmin",max:"cmax"},calc:kd().calc,plot:rq(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var iq=be((_ge,aq)=>{"use strict";aq.exports=nq()});var Fn=be((wge,lq)=>{"use strict";var oq=Object.getOwnPropertySymbols,Oue=Object.prototype.hasOwnProperty,Bue=Object.prototype.propertyIsEnumerable;function Uue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Hue(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}lq.exports=Hue()?Object.assign:function(e,r){for(var t,n=Uue(e),a,o=1;o{var Pd=Fn();function sq(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Pd(sq.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function P5(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Rd(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Pd(P5.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Ur.local.differentCalendars||Ur.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Rd(Math.abs(this.year()),4)+"-"+Rd(this.month(),2)+"-"+Rd(this.day(),2)}});function F5(){this.shortYearCutoff="+10"}Pd(F5.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new P5(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Rd(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Ur.local.invalidMonth||Ur.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Ur.local.invalidMonth||Ur.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ur.local.invalidYear||Ur.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ih-1+f.minMonth;)o++,i-=h,h=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Ur.local.invalidDate||Ur.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Ur=uq.exports=new sq;Ur.cdate=P5;Ur.baseCalendar=F5;Ur.calendars.gregorian=I5});var fq=be(()=>{var N5=Fn(),xn=In();N5(xn.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});xn.local=xn.regionalOptions[""];N5(xn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});N5(xn.baseCalendar.prototype,{UNIX_EPOCH:xn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:xn.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw xn.local.invalidFormat||xn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(x,M){for(var v=1;S+v1},f=function(x,M,v,w){var g=""+M;if(s(x,w))for(;g.length1},k=function(D,E){var R=m(D,E),N=[2,3,R?4:2,R?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],I=new RegExp("^-?\\d{1,"+N+"}"),F=r.substring(g).match(I);if(!F)throw(xn.local.missingNumberAt||xn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,g);return g+=F[0].length,parseInt(F[0],10)},S=this,x=function(){if(typeof l=="function"){m("m");var D=l.call(S,r.substring(g));return g+=D.length,D}return k("m")},M=function(D,E,R,N){for(var I=m(D,N)?R:E,F=0;F-1){p=1,_=y;for(var d=this.daysInMonth(h,p);_>d;d=this.daysInMonth(h,p))p++,_-=d}return f>-1?this.fromJD(f):this.newDate(h,p,_)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(h){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var cq=be(()=>{var yl=In(),Vue=Fn(),z5=yl.instance();function Fd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Fd.prototype=new yl.baseCalendar;Vue(Fd.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Yue);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(Wue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Xue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw yl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw yl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,yl.local.invalidyear),a=xl[n-xl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=z5.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=ml[e-ml[0]],n=t>>13,a=n?12:11;if(r>a)throw yl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,yl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=Jue(e,o,t,a);return z5.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=z5.fromJD(e),t=Zue(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(Gue),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(Fd.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),h=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);h!==s&&l.month(h)}return l}});var Gue=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Yue=/^\d?\d[iI]?/m,Wue=/^闰?十?[一二三四五六七八九]?月/m,Xue=/^闰?十?[一二三四五六七八九]?/m;yl.calendars.chinese=Fd;var ml=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],xl=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Zue(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=xl[a.year-xl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=xl[o.year-xl[0]];var h=s>>9&4095,p=s>>5&15,_=s&31,y,b=new Date(h,p-1,_),T=new Date(a.year,a.month-1,a.day);y=Math.round((T-b)/(24*3600*1e3));var m=ml[o.year-ml[0]],k;for(k=0;k<13;k++){var S=m&1<<12-k?30:29;if(y>13;return!x||k=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var h;h=i.day-1;var p=ml[i.year-ml[0]],_=p>>13,y;_&&(i.month>_||i.isIntercalary)?y=i.month:y=i.month-1;for(var b=0;b>9&4095,S=m>>5&15,x=m&31,M=new Date(k,S-1,x+h);return o.year=M.getFullYear(),o.month=1+M.getMonth(),o.day=M.getDate(),o}});var hq=be(()=>{var Ts=In(),Kue=Fn();function q5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q5.prototype=new Ts.baseCalendar;Kue(q5.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ts.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ts.local.invalidYear||Ts.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ts.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Ts.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Ts.calendars.coptic=q5});var vq=be(()=>{var Ao=In(),Que=Fn();function O5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O5.prototype=new Ao.baseCalendar;Que(O5.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ao.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ao.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ao.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ao.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ao.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ao.local.invalidDate);return{century:$ue[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,Ao.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var $ue={20:"Fruitbat",21:"Anchovy"};Ao.calendars.discworld=O5});var dq=be(()=>{var As=In(),jue=Fn();function B5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B5.prototype=new As.baseCalendar;jue(B5.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,As.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,As.local.invalidYear||As.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,As.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,As.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});As.calendars.ethiopian=B5});var pq=be(()=>{var bl=In(),efe=Fn();function U5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U5.prototype=new bl.baseCalendar;efe(U5.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,bl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Id(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,bl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,bl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Id(this.daysInYear(e),10)===5?30:r===9&&Id(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,bl.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,bl.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function Id(e,r){return e-r*Math.floor(e/r)}bl.calendars.hebrew=U5});var gq=be(()=>{var nc=In(),rfe=Fn();function H5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H5.prototype=new nc.baseCalendar;rfe(H5.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,nc.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,nc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,nc.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});nc.calendars.islamic=H5});var yq=be(()=>{var ac=In(),tfe=Fn();function V5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}V5.prototype=new ac.baseCalendar;tfe(V5.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ac.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ac.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,ac.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});ac.calendars.julian=V5});var xq=be(()=>{var Xa=In(),nfe=Fn();function Y5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Y5.prototype=new Xa.baseCalendar;nfe(Y5.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xa.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xa.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xa.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Xa.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xa.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Xa.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Xa.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Xa.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Xa.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=G5(e+8+340,365);return[Math.floor(r/20)+1,G5(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[mq(e+20,20),mq(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Xa.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function G5(e,r){return e-r*Math.floor(e/r)}function mq(e,r){return G5(e-1,r)+1}Xa.calendars.mayan=Y5});var _q=be(()=>{var ks=In(),afe=Fn();function W5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}W5.prototype=new ks.baseCalendar;var bq=ks.instance("gregorian");afe(W5.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ks.local.invalidYear||ks.regionalOptions[""].invalidYear);return bq.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ks.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,ks.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});ks.calendars.nanakshahi=W5});var wq=be(()=>{var Ss=In(),ife=Fn();function X5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}X5.prototype=new Ss.baseCalendar;ife(X5.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ss.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Ss.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,Ss.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=Ss.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<0&&(o+=a.daysInYear(u))):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=Ss.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var rf=In(),ofe=Fn();function zd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Nd(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}zd.prototype=new rf.baseCalendar;ofe(zd.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,rf.local.invalidYear);return Nd(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,rf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,rf.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Nd(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});rf.calendars.persian=zd;rf.calendars.jalali=zd});var Tq=be(()=>{var Cs=In(),lfe=Fn(),qd=Cs.instance();function Z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z5.prototype=new Cs.baseCalendar;lfe(Z5.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Cs.local.invalidYear),t=this._t2gYear(r.year());return qd.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Cs.local.invalidYear),a=this._t2gYear(n.year());return qd.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Cs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Cs.local.invalidDate),a=this._t2gYear(n.year());return qd.toJD(a,n.month(),n.day())},fromJD:function(e){var r=qd.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Cs.calendars.taiwan=Z5});var Aq=be(()=>{var Es=In(),sfe=Fn(),Od=Es.instance();function J5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J5.prototype=new Es.baseCalendar;sfe(J5.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Es.local.invalidYear),t=this._t2gYear(r.year());return Od.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Es.local.invalidYear),a=this._t2gYear(n.year());return Od.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Es.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Es.local.invalidDate),a=this._t2gYear(n.year());return Od.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Od.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Es.calendars.thai=J5});var kq=be(()=>{var Ls=In(),ufe=Fn();function K5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K5.prototype=new Ls.baseCalendar;ufe(K5.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ls.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Ls.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;o<_l.length;o++){if(_l[o]>n)return _l[a]-_l[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Ls.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+_l[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;n<_l.length&&!(_l[n]>r);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-_l[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=Ls.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=Ls.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});Ls.calendars.ummalqura=K5;var _l=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Cq=be((e2e,Sq)=>{"use strict";Sq.exports=In();fq();cq();hq();vq();dq();pq();gq();yq();xq();_q();wq();Mq();Tq();Aq();kq()});var Iq=be((r2e,Fq)=>{"use strict";var Lq=Cq(),ic=er(),Dq=ln(),ffe=Dq.EPOCHJD,cfe=Dq.ONEDAY,j5={valType:"enumerated",values:ic.sortObjectKeys(Lq.calendars),editType:"calc",dflt:"gregorian"},Rq=function(e,r,t,n){var a={};return a[t]=j5,ic.coerce(e,r,a,t,n)},hfe=function(e,r,t,n){for(var a=0;a{"use strict";Nq.exports=Iq()});var mfe=be((n2e,Oq)=>{var qq=NF();qq.register([vN(),qN(),tz(),dz(),Cz(),Vz(),iq(),zq()]);Oq.exports=qq});return mfe();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-mapbox.js b/dist/plotly-mapbox.js index 8fdc7f08a1c..47da5e29208 100644 --- a/dist/plotly-mapbox.js +++ b/dist/plotly-mapbox.js @@ -1,5 +1,5 @@ /** -* plotly.js (mapbox) v3.6.0 +* plotly.js (mapbox) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -35,14 +35,18 @@ var Plotly = (() => { }; var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; // src/version.js var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -78,7 +82,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -105,7 +109,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8131,7 +8135,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8371,7 +8375,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8488,7 +8492,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8533,7 +8537,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9936,7 +9940,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9955,7 +9959,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color) { return !!matchers.CSS_UNIT.exec(color); } @@ -13778,9 +13782,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -16033,6 +16037,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -17745,6 +17760,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -17873,24 +17889,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -32790,7 +32813,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -34592,6 +34625,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -36807,6 +36846,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -36816,6 +36889,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -36846,26 +36920,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.disk, - click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.pencil, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -38004,8 +38082,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -46033,6 +46117,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -47044,19 +47129,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); @@ -61379,7 +61463,7 @@ var Plotly = (() => { "node_modules/@plotly/mapbox-gl/dist/mapbox-gl-unminified.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : (global2 = global2 || self, global2.mapboxgl = factory()); - })(exports, function() { + })(exports, (function() { "use strict"; var shared, worker, mapboxgl; function define2(_, chunk) { @@ -62279,7 +62363,7 @@ var Plotly = (() => { this.queue.push(event); this.processRequests(customAccessToken); }; - var MapLoadEvent = function(TelemetryEvent2) { + var MapLoadEvent = (function(TelemetryEvent2) { function MapLoadEvent2() { TelemetryEvent2.call(this, "map.load"); this.success = {}; @@ -62326,8 +62410,8 @@ var Plotly = (() => { }, customAccessToken); }; return MapLoadEvent2; - }(TelemetryEvent); - var TurnstileEvent = function(TelemetryEvent2) { + })(TelemetryEvent); + var TurnstileEvent = (function(TelemetryEvent2) { function TurnstileEvent2(customAccessToken) { TelemetryEvent2.call(this, "appUserTurnstile"); this._customAccessToken = customAccessToken; @@ -62378,7 +62462,7 @@ var Plotly = (() => { }, customAccessToken); }; return TurnstileEvent2; - }(TelemetryEvent); + })(TelemetryEvent); var turnstileEvent_ = new TurnstileEvent(); var postTurnstileEvent = turnstileEvent_.postTurnstileEvent.bind(turnstileEvent_); var mapLoadEvent_ = new MapLoadEvent(); @@ -62528,7 +62612,7 @@ var Plotly = (() => { if (typeof Object.freeze == "function") { Object.freeze(ResourceType); } - var AJAXError = function(Error2) { + var AJAXError = (function(Error2) { function AJAXError2(message, status2, url) { if (status2 === 401 && isMapboxHTTPURL(url)) { message += ": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"; @@ -62547,7 +62631,7 @@ var Plotly = (() => { return this.name + ": " + this.message + " (" + this.status + "): " + this.url; }; return AJAXError2; - }(Error); + })(Error); var getReferrer = isWorker() ? function() { return self.worker && self.worker.referrer; } : function() { @@ -62824,7 +62908,7 @@ var Plotly = (() => { extend(this, data); this.type = type; }; - var ErrorEvent = function(Event2) { + var ErrorEvent = (function(Event2) { function ErrorEvent2(error2, data) { if (data === void 0) data = {}; @@ -62835,7 +62919,7 @@ var Plotly = (() => { ErrorEvent2.prototype = Object.create(Event2 && Event2.prototype); ErrorEvent2.prototype.constructor = ErrorEvent2; return ErrorEvent2; - }(Event); + })(Event); var Evented = function Evented2() { }; Evented.prototype.on = function on(type, listener) { @@ -65744,7 +65828,7 @@ var Plotly = (() => { } return unbundle(value); } - var ParsingError = function(Error2) { + var ParsingError = (function(Error2) { function ParsingError2(key, message) { Error2.call(this, message); this.message = message; @@ -65755,7 +65839,7 @@ var Plotly = (() => { ParsingError2.prototype = Object.create(Error2 && Error2.prototype); ParsingError2.prototype.constructor = ParsingError2; return ParsingError2; - }(Error); + })(Error); var Scope = function Scope2(parent, bindings) { if (bindings === void 0) bindings = []; @@ -69336,7 +69420,7 @@ var Plotly = (() => { } function makeComparison(op, compareBasic, compareWithCollator) { var isOrderComparison = op !== "==" && op !== "!="; - return function() { + return (function() { function Comparison(lhs, rhs, collator) { this.type = BooleanType; this.lhs = lhs; @@ -69422,7 +69506,7 @@ var Plotly = (() => { return serialized; }; return Comparison; - }(); + })(); } var Equals = makeComparison("==", eq, eqCollate); var NotEquals = makeComparison("!=", neq, neqCollate); @@ -72994,7 +73078,7 @@ var Plotly = (() => { return value.evaluate(parameters, feature, featureState, canonical, availableImages); } }; - var CrossFadedDataDrivenProperty = function(DataDrivenProperty2) { + var CrossFadedDataDrivenProperty = (function(DataDrivenProperty2) { function CrossFadedDataDrivenProperty2() { DataDrivenProperty2.apply(this, arguments); } @@ -73051,7 +73135,7 @@ var Plotly = (() => { return a; }; return CrossFadedDataDrivenProperty2; - }(DataDrivenProperty); + })(DataDrivenProperty); var CrossFadedProperty = function CrossFadedProperty2(specification) { this.specification = specification; }; @@ -73111,7 +73195,7 @@ var Plotly = (() => { register("CrossFadedProperty", CrossFadedProperty); register("ColorRampProperty", ColorRampProperty); var TRANSITION_SUFFIX = "-transition"; - var StyleLayer = function(Evented2) { + var StyleLayer = (function(Evented2) { function StyleLayer2(layer2, properties2) { Evented2.call(this); this.id = layer2.id; @@ -73300,7 +73384,7 @@ var Plotly = (() => { return false; }; return StyleLayer2; - }(Evented); + })(Evented); var viewTypes = { "Int8": Int8Array, "Uint8": Uint8Array, @@ -73402,7 +73486,7 @@ var Plotly = (() => { function align(offset, size) { return Math.ceil(offset / size) * size; } - var StructArrayLayout2i4 = function(StructArray2) { + var StructArrayLayout2i4 = (function(StructArray2) { function StructArrayLayout2i42() { StructArray2.apply(this, arguments); } @@ -73426,10 +73510,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout2i42; - }(StructArray); + })(StructArray); StructArrayLayout2i4.prototype.bytesPerElement = 4; register("StructArrayLayout2i4", StructArrayLayout2i4); - var StructArrayLayout4i8 = function(StructArray2) { + var StructArrayLayout4i8 = (function(StructArray2) { function StructArrayLayout4i82() { StructArray2.apply(this, arguments); } @@ -73455,10 +73539,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout4i82; - }(StructArray); + })(StructArray); StructArrayLayout4i8.prototype.bytesPerElement = 8; register("StructArrayLayout4i8", StructArrayLayout4i8); - var StructArrayLayout2i4i12 = function(StructArray2) { + var StructArrayLayout2i4i12 = (function(StructArray2) { function StructArrayLayout2i4i122() { StructArray2.apply(this, arguments); } @@ -73486,10 +73570,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout2i4i122; - }(StructArray); + })(StructArray); StructArrayLayout2i4i12.prototype.bytesPerElement = 12; register("StructArrayLayout2i4i12", StructArrayLayout2i4i12); - var StructArrayLayout2i4ub8 = function(StructArray2) { + var StructArrayLayout2i4ub8 = (function(StructArray2) { function StructArrayLayout2i4ub82() { StructArray2.apply(this, arguments); } @@ -73518,10 +73602,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout2i4ub82; - }(StructArray); + })(StructArray); StructArrayLayout2i4ub8.prototype.bytesPerElement = 8; register("StructArrayLayout2i4ub8", StructArrayLayout2i4ub8); - var StructArrayLayout2f8 = function(StructArray2) { + var StructArrayLayout2f8 = (function(StructArray2) { function StructArrayLayout2f82() { StructArray2.apply(this, arguments); } @@ -73545,10 +73629,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout2f82; - }(StructArray); + })(StructArray); StructArrayLayout2f8.prototype.bytesPerElement = 8; register("StructArrayLayout2f8", StructArrayLayout2f8); - var StructArrayLayout10ui20 = function(StructArray2) { + var StructArrayLayout10ui20 = (function(StructArray2) { function StructArrayLayout10ui202() { StructArray2.apply(this, arguments); } @@ -73580,10 +73664,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout10ui202; - }(StructArray); + })(StructArray); StructArrayLayout10ui20.prototype.bytesPerElement = 20; register("StructArrayLayout10ui20", StructArrayLayout10ui20); - var StructArrayLayout4i4ui4i24 = function(StructArray2) { + var StructArrayLayout4i4ui4i24 = (function(StructArray2) { function StructArrayLayout4i4ui4i242() { StructArray2.apply(this, arguments); } @@ -73618,10 +73702,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout4i4ui4i242; - }(StructArray); + })(StructArray); StructArrayLayout4i4ui4i24.prototype.bytesPerElement = 24; register("StructArrayLayout4i4ui4i24", StructArrayLayout4i4ui4i24); - var StructArrayLayout3f12 = function(StructArray2) { + var StructArrayLayout3f12 = (function(StructArray2) { function StructArrayLayout3f122() { StructArray2.apply(this, arguments); } @@ -73646,10 +73730,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout3f122; - }(StructArray); + })(StructArray); StructArrayLayout3f12.prototype.bytesPerElement = 12; register("StructArrayLayout3f12", StructArrayLayout3f12); - var StructArrayLayout1ul4 = function(StructArray2) { + var StructArrayLayout1ul4 = (function(StructArray2) { function StructArrayLayout1ul42() { StructArray2.apply(this, arguments); } @@ -73672,10 +73756,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout1ul42; - }(StructArray); + })(StructArray); StructArrayLayout1ul4.prototype.bytesPerElement = 4; register("StructArrayLayout1ul4", StructArrayLayout1ul4); - var StructArrayLayout6i1ul2ui20 = function(StructArray2) { + var StructArrayLayout6i1ul2ui20 = (function(StructArray2) { function StructArrayLayout6i1ul2ui202() { StructArray2.apply(this, arguments); } @@ -73709,10 +73793,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout6i1ul2ui202; - }(StructArray); + })(StructArray); StructArrayLayout6i1ul2ui20.prototype.bytesPerElement = 20; register("StructArrayLayout6i1ul2ui20", StructArrayLayout6i1ul2ui20); - var StructArrayLayout2i2i2i12 = function(StructArray2) { + var StructArrayLayout2i2i2i12 = (function(StructArray2) { function StructArrayLayout2i2i2i122() { StructArray2.apply(this, arguments); } @@ -73740,10 +73824,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout2i2i2i122; - }(StructArray); + })(StructArray); StructArrayLayout2i2i2i12.prototype.bytesPerElement = 12; register("StructArrayLayout2i2i2i12", StructArrayLayout2i2i2i12); - var StructArrayLayout2f1f2i16 = function(StructArray2) { + var StructArrayLayout2f1f2i16 = (function(StructArray2) { function StructArrayLayout2f1f2i162() { StructArray2.apply(this, arguments); } @@ -73772,10 +73856,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout2f1f2i162; - }(StructArray); + })(StructArray); StructArrayLayout2f1f2i16.prototype.bytesPerElement = 16; register("StructArrayLayout2f1f2i16", StructArrayLayout2f1f2i16); - var StructArrayLayout2ub2f12 = function(StructArray2) { + var StructArrayLayout2ub2f12 = (function(StructArray2) { function StructArrayLayout2ub2f122() { StructArray2.apply(this, arguments); } @@ -73802,10 +73886,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout2ub2f122; - }(StructArray); + })(StructArray); StructArrayLayout2ub2f12.prototype.bytesPerElement = 12; register("StructArrayLayout2ub2f12", StructArrayLayout2ub2f12); - var StructArrayLayout3ui6 = function(StructArray2) { + var StructArrayLayout3ui6 = (function(StructArray2) { function StructArrayLayout3ui62() { StructArray2.apply(this, arguments); } @@ -73830,10 +73914,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout3ui62; - }(StructArray); + })(StructArray); StructArrayLayout3ui6.prototype.bytesPerElement = 6; register("StructArrayLayout3ui6", StructArrayLayout3ui6); - var StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 = function(StructArray2) { + var StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 = (function(StructArray2) { function StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482() { StructArray2.apply(this, arguments); } @@ -73877,10 +73961,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482; - }(StructArray); + })(StructArray); StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype.bytesPerElement = 48; register("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); - var StructArrayLayout8i15ui1ul4f68 = function(StructArray2) { + var StructArrayLayout8i15ui1ul4f68 = (function(StructArray2) { function StructArrayLayout8i15ui1ul4f682() { StructArray2.apply(this, arguments); } @@ -73934,10 +74018,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout8i15ui1ul4f682; - }(StructArray); + })(StructArray); StructArrayLayout8i15ui1ul4f68.prototype.bytesPerElement = 68; register("StructArrayLayout8i15ui1ul4f68", StructArrayLayout8i15ui1ul4f68); - var StructArrayLayout1f4 = function(StructArray2) { + var StructArrayLayout1f4 = (function(StructArray2) { function StructArrayLayout1f42() { StructArray2.apply(this, arguments); } @@ -73960,10 +74044,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout1f42; - }(StructArray); + })(StructArray); StructArrayLayout1f4.prototype.bytesPerElement = 4; register("StructArrayLayout1f4", StructArrayLayout1f4); - var StructArrayLayout3i6 = function(StructArray2) { + var StructArrayLayout3i6 = (function(StructArray2) { function StructArrayLayout3i62() { StructArray2.apply(this, arguments); } @@ -73988,10 +74072,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout3i62; - }(StructArray); + })(StructArray); StructArrayLayout3i6.prototype.bytesPerElement = 6; register("StructArrayLayout3i6", StructArrayLayout3i6); - var StructArrayLayout1ul2ui8 = function(StructArray2) { + var StructArrayLayout1ul2ui8 = (function(StructArray2) { function StructArrayLayout1ul2ui82() { StructArray2.apply(this, arguments); } @@ -74018,10 +74102,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout1ul2ui82; - }(StructArray); + })(StructArray); StructArrayLayout1ul2ui8.prototype.bytesPerElement = 8; register("StructArrayLayout1ul2ui8", StructArrayLayout1ul2ui8); - var StructArrayLayout2ui4 = function(StructArray2) { + var StructArrayLayout2ui4 = (function(StructArray2) { function StructArrayLayout2ui42() { StructArray2.apply(this, arguments); } @@ -74045,10 +74129,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout2ui42; - }(StructArray); + })(StructArray); StructArrayLayout2ui4.prototype.bytesPerElement = 4; register("StructArrayLayout2ui4", StructArrayLayout2ui4); - var StructArrayLayout1ui2 = function(StructArray2) { + var StructArrayLayout1ui2 = (function(StructArray2) { function StructArrayLayout1ui22() { StructArray2.apply(this, arguments); } @@ -74071,10 +74155,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout1ui22; - }(StructArray); + })(StructArray); StructArrayLayout1ui2.prototype.bytesPerElement = 2; register("StructArrayLayout1ui2", StructArrayLayout1ui2); - var StructArrayLayout4f16 = function(StructArray2) { + var StructArrayLayout4f16 = (function(StructArray2) { function StructArrayLayout4f162() { StructArray2.apply(this, arguments); } @@ -74100,10 +74184,10 @@ var Plotly = (() => { return i; }; return StructArrayLayout4f162; - }(StructArray); + })(StructArray); StructArrayLayout4f16.prototype.bytesPerElement = 16; register("StructArrayLayout4f16", StructArrayLayout4f16); - var CollisionBoxStruct = function(Struct2) { + var CollisionBoxStruct = (function(Struct2) { function CollisionBoxStruct2() { Struct2.apply(this, arguments); } @@ -74155,9 +74239,9 @@ var Plotly = (() => { }; Object.defineProperties(CollisionBoxStruct2.prototype, prototypeAccessors2); return CollisionBoxStruct2; - }(Struct); + })(Struct); CollisionBoxStruct.prototype.size = 20; - var CollisionBoxArray = function(StructArrayLayout6i1ul2ui202) { + var CollisionBoxArray = (function(StructArrayLayout6i1ul2ui202) { function CollisionBoxArray2() { StructArrayLayout6i1ul2ui202.apply(this, arguments); } @@ -74169,9 +74253,9 @@ var Plotly = (() => { return new CollisionBoxStruct(this, index); }; return CollisionBoxArray2; - }(StructArrayLayout6i1ul2ui20); + })(StructArrayLayout6i1ul2ui20); register("CollisionBoxArray", CollisionBoxArray); - var PlacedSymbolStruct = function(Struct2) { + var PlacedSymbolStruct = (function(Struct2) { function PlacedSymbolStruct2() { Struct2.apply(this, arguments); } @@ -74260,9 +74344,9 @@ var Plotly = (() => { }; Object.defineProperties(PlacedSymbolStruct2.prototype, prototypeAccessors$12); return PlacedSymbolStruct2; - }(Struct); + })(Struct); PlacedSymbolStruct.prototype.size = 48; - var PlacedSymbolArray = function(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482) { + var PlacedSymbolArray = (function(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482) { function PlacedSymbolArray2() { StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482.apply(this, arguments); } @@ -74274,9 +74358,9 @@ var Plotly = (() => { return new PlacedSymbolStruct(this, index); }; return PlacedSymbolArray2; - }(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); + })(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); register("PlacedSymbolArray", PlacedSymbolArray); - var SymbolInstanceStruct = function(Struct2) { + var SymbolInstanceStruct = (function(Struct2) { function SymbolInstanceStruct2() { Struct2.apply(this, arguments); } @@ -74403,9 +74487,9 @@ var Plotly = (() => { }; Object.defineProperties(SymbolInstanceStruct2.prototype, prototypeAccessors$2); return SymbolInstanceStruct2; - }(Struct); + })(Struct); SymbolInstanceStruct.prototype.size = 68; - var SymbolInstanceArray = function(StructArrayLayout8i15ui1ul4f682) { + var SymbolInstanceArray = (function(StructArrayLayout8i15ui1ul4f682) { function SymbolInstanceArray2() { StructArrayLayout8i15ui1ul4f682.apply(this, arguments); } @@ -74417,9 +74501,9 @@ var Plotly = (() => { return new SymbolInstanceStruct(this, index); }; return SymbolInstanceArray2; - }(StructArrayLayout8i15ui1ul4f68); + })(StructArrayLayout8i15ui1ul4f68); register("SymbolInstanceArray", SymbolInstanceArray); - var GlyphOffsetArray = function(StructArrayLayout1f42) { + var GlyphOffsetArray = (function(StructArrayLayout1f42) { function GlyphOffsetArray2() { StructArrayLayout1f42.apply(this, arguments); } @@ -74431,9 +74515,9 @@ var Plotly = (() => { return this.float32[index * 1 + 0]; }; return GlyphOffsetArray2; - }(StructArrayLayout1f4); + })(StructArrayLayout1f4); register("GlyphOffsetArray", GlyphOffsetArray); - var SymbolLineVertexArray = function(StructArrayLayout3i62) { + var SymbolLineVertexArray = (function(StructArrayLayout3i62) { function SymbolLineVertexArray2() { StructArrayLayout3i62.apply(this, arguments); } @@ -74451,9 +74535,9 @@ var Plotly = (() => { return this.int16[index * 3 + 2]; }; return SymbolLineVertexArray2; - }(StructArrayLayout3i6); + })(StructArrayLayout3i6); register("SymbolLineVertexArray", SymbolLineVertexArray); - var FeatureIndexStruct = function(Struct2) { + var FeatureIndexStruct = (function(Struct2) { function FeatureIndexStruct2() { Struct2.apply(this, arguments); } @@ -74477,9 +74561,9 @@ var Plotly = (() => { }; Object.defineProperties(FeatureIndexStruct2.prototype, prototypeAccessors$3); return FeatureIndexStruct2; - }(Struct); + })(Struct); FeatureIndexStruct.prototype.size = 8; - var FeatureIndexArray = function(StructArrayLayout1ul2ui82) { + var FeatureIndexArray = (function(StructArrayLayout1ul2ui82) { function FeatureIndexArray2() { StructArrayLayout1ul2ui82.apply(this, arguments); } @@ -74491,7 +74575,7 @@ var Plotly = (() => { return new FeatureIndexStruct(this, index); }; return FeatureIndexArray2; - }(StructArrayLayout1ul2ui8); + })(StructArrayLayout1ul2ui8); register("FeatureIndexArray", FeatureIndexArray); var layout$1 = createLayout([{ name: "a_pos", @@ -74754,7 +74838,7 @@ var Plotly = (() => { this.gl = context.gl; this.location = location; }; - var Uniform1i = function(Uniform2) { + var Uniform1i = (function(Uniform2) { function Uniform1i2(context, location) { Uniform2.call(this, context, location); this.current = 0; @@ -74770,8 +74854,8 @@ var Plotly = (() => { } }; return Uniform1i2; - }(Uniform); - var Uniform1f = function(Uniform2) { + })(Uniform); + var Uniform1f = (function(Uniform2) { function Uniform1f2(context, location) { Uniform2.call(this, context, location); this.current = 0; @@ -74787,8 +74871,8 @@ var Plotly = (() => { } }; return Uniform1f2; - }(Uniform); - var Uniform2f = function(Uniform2) { + })(Uniform); + var Uniform2f = (function(Uniform2) { function Uniform2f2(context, location) { Uniform2.call(this, context, location); this.current = [ @@ -74807,8 +74891,8 @@ var Plotly = (() => { } }; return Uniform2f2; - }(Uniform); - var Uniform3f = function(Uniform2) { + })(Uniform); + var Uniform3f = (function(Uniform2) { function Uniform3f2(context, location) { Uniform2.call(this, context, location); this.current = [ @@ -74828,8 +74912,8 @@ var Plotly = (() => { } }; return Uniform3f2; - }(Uniform); - var Uniform4f = function(Uniform2) { + })(Uniform); + var Uniform4f = (function(Uniform2) { function Uniform4f2(context, location) { Uniform2.call(this, context, location); this.current = [ @@ -74850,8 +74934,8 @@ var Plotly = (() => { } }; return Uniform4f2; - }(Uniform); - var UniformColor = function(Uniform2) { + })(Uniform); + var UniformColor = (function(Uniform2) { function UniformColor2(context, location) { Uniform2.call(this, context, location); this.current = Color.transparent; @@ -74867,9 +74951,9 @@ var Plotly = (() => { } }; return UniformColor2; - }(Uniform); + })(Uniform); var emptyMat4 = new Float32Array(16); - var UniformMatrix4f = function(Uniform2) { + var UniformMatrix4f = (function(Uniform2) { function UniformMatrix4f2(context, location) { Uniform2.call(this, context, location); this.current = emptyMat4; @@ -74893,7 +74977,7 @@ var Plotly = (() => { } }; return UniformMatrix4f2; - }(Uniform); + })(Uniform); function packColor(color2) { return [ packUint8ToFloat(255 * color2.r, 255 * color2.g), @@ -76227,7 +76311,7 @@ var Plotly = (() => { return out; } var sub = subtract; - var forEach = function() { + var forEach = (function() { var vec = create$3(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -76253,7 +76337,7 @@ var Plotly = (() => { } return a; }; - }(); + })(); function create$4() { var out = new ARRAY_TYPE(4); if (ARRAY_TYPE != Float32Array) { @@ -76282,7 +76366,7 @@ var Plotly = (() => { out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; return out; } - var forEach$1 = function() { + var forEach$1 = (function() { var vec = create$4(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -76310,7 +76394,7 @@ var Plotly = (() => { } return a; }; - }(); + })(); function create$5() { var out = new ARRAY_TYPE(2); if (ARRAY_TYPE != Float32Array) { @@ -76324,7 +76408,7 @@ var Plotly = (() => { return x * x + y * y; } var sqrLen = squaredLength; - var forEach$2 = function() { + var forEach$2 = (function() { var vec = create$5(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -76348,8 +76432,8 @@ var Plotly = (() => { } return a; }; - }(); - var CircleStyleLayer = function(StyleLayer2) { + })(); + var CircleStyleLayer = (function(StyleLayer2) { function CircleStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties); } @@ -76397,7 +76481,7 @@ var Plotly = (() => { return false; }; return CircleStyleLayer2; - }(StyleLayer); + })(StyleLayer); function projectPoint(p, pixelPosMatrix) { var point = transformMat4([], [ p.x, @@ -76412,7 +76496,7 @@ var Plotly = (() => { return projectPoint(p, pixelPosMatrix); }); } - var HeatmapBucket = function(CircleBucket2) { + var HeatmapBucket = (function(CircleBucket2) { function HeatmapBucket2() { CircleBucket2.apply(this, arguments); } @@ -76421,7 +76505,7 @@ var Plotly = (() => { HeatmapBucket2.prototype = Object.create(CircleBucket2 && CircleBucket2.prototype); HeatmapBucket2.prototype.constructor = HeatmapBucket2; return HeatmapBucket2; - }(CircleBucket); + })(CircleBucket); register("HeatmapBucket", HeatmapBucket, { omit: ["layers"] }); function createImage(image, ref, channels, data) { var width = ref.width; @@ -76567,7 +76651,7 @@ var Plotly = (() => { } return image; } - var HeatmapStyleLayer = function(StyleLayer2) { + var HeatmapStyleLayer = (function(StyleLayer2) { function HeatmapStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$1); this._updateColorRamp(); @@ -76609,7 +76693,7 @@ var Plotly = (() => { return this.paint.get("heatmap-opacity") !== 0 && this.visibility !== "none"; }; return HeatmapStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$3 = new Properties({ "hillshade-illumination-direction": new DataConstantProperty(spec["paint_hillshade"]["hillshade-illumination-direction"]), "hillshade-illumination-anchor": new DataConstantProperty(spec["paint_hillshade"]["hillshade-illumination-anchor"]), @@ -76619,7 +76703,7 @@ var Plotly = (() => { "hillshade-accent-color": new DataConstantProperty(spec["paint_hillshade"]["hillshade-accent-color"]) }); var properties$2 = { paint: paint$3 }; - var HillshadeStyleLayer = function(StyleLayer2) { + var HillshadeStyleLayer = (function(StyleLayer2) { function HillshadeStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$2); } @@ -76631,7 +76715,7 @@ var Plotly = (() => { return this.paint.get("hillshade-exaggeration") !== 0 && this.visibility !== "none"; }; return HillshadeStyleLayer2; - }(StyleLayer); + })(StyleLayer); var layout$3 = createLayout([{ name: "a_pos", components: 2, @@ -77453,7 +77537,7 @@ var Plotly = (() => { paint: paint$4, layout: layout$4 }; - var FillStyleLayer = function(StyleLayer2) { + var FillStyleLayer = (function(StyleLayer2) { function FillStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$3); } @@ -77482,7 +77566,7 @@ var Plotly = (() => { return true; }; return FillStyleLayer2; - }(StyleLayer); + })(StyleLayer); var layout$5 = createLayout([ { name: "a_pos", @@ -77956,7 +78040,7 @@ var Plotly = (() => { "fill-extrusion-vertical-gradient": new DataConstantProperty(spec["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) }); var properties$4 = { paint: paint$5 }; - var FillExtrusionStyleLayer = function(StyleLayer2) { + var FillExtrusionStyleLayer = (function(StyleLayer2) { function FillExtrusionStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$4); } @@ -77984,7 +78068,7 @@ var Plotly = (() => { return checkIntersection(projectedBase, projectedTop, projectedQueryGeometry); }; return FillExtrusionStyleLayer2; - }(StyleLayer); + })(StyleLayer); function dot$2(a, b) { return a.x * b.x + a.y * b.y; } @@ -78520,7 +78604,7 @@ var Plotly = (() => { paint: paint$6, layout: layout$6 }; - var LineFloorwidthProperty = function(DataDrivenProperty2) { + var LineFloorwidthProperty = (function(DataDrivenProperty2) { function LineFloorwidthProperty2() { DataDrivenProperty2.apply(this, arguments); } @@ -78542,10 +78626,10 @@ var Plotly = (() => { return DataDrivenProperty2.prototype.evaluate.call(this, value, globals, feature, featureState); }; return LineFloorwidthProperty2; - }(DataDrivenProperty); + })(DataDrivenProperty); var lineFloorwidthProperty = new LineFloorwidthProperty(properties$5.paint.properties["line-width"].specification); lineFloorwidthProperty.useIntegerZoom = true; - var LineStyleLayer = function(StyleLayer2) { + var LineStyleLayer = (function(StyleLayer2) { function LineStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$5); this.gradientVersion = 0; @@ -78590,7 +78674,7 @@ var Plotly = (() => { return true; }; return LineStyleLayer2; - }(StyleLayer); + })(StyleLayer); function getLineWidth(lineWidth, lineGapWidth) { if (lineGapWidth > 0) { return lineGapWidth + 2 * lineWidth; @@ -80738,7 +80822,7 @@ var Plotly = (() => { collisionPadding }; } - var Anchor = function(Point2) { + var Anchor = (function(Point2) { function Anchor2(x, y, angle, segment) { Point2.call(this, x, y); this.angle = angle; @@ -80754,7 +80838,7 @@ var Plotly = (() => { return new Anchor2(this.x, this.y, this.angle, this.segment); }; return Anchor2; - }(pointGeometry); + })(pointGeometry); register("Anchor", Anchor); var SIZE_PACK_FACTOR = 128; function getSizeData(tileZoom, value) { @@ -82647,7 +82731,7 @@ var Plotly = (() => { return null; }; register("FormatSectionOverride", FormatSectionOverride, { omit: ["defaultValue"] }); - var SymbolStyleLayer = function(StyleLayer2) { + var SymbolStyleLayer = (function(StyleLayer2) { function SymbolStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$6); } @@ -82772,14 +82856,14 @@ var Plotly = (() => { return hasOverrides; }; return SymbolStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$8 = new Properties({ "background-color": new DataConstantProperty(spec["paint_background"]["background-color"]), "background-pattern": new CrossFadedProperty(spec["paint_background"]["background-pattern"]), "background-opacity": new DataConstantProperty(spec["paint_background"]["background-opacity"]) }); var properties$7 = { paint: paint$8 }; - var BackgroundStyleLayer = function(StyleLayer2) { + var BackgroundStyleLayer = (function(StyleLayer2) { function BackgroundStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$7); } @@ -82788,7 +82872,7 @@ var Plotly = (() => { BackgroundStyleLayer2.prototype = Object.create(StyleLayer2 && StyleLayer2.prototype); BackgroundStyleLayer2.prototype.constructor = BackgroundStyleLayer2; return BackgroundStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$9 = new Properties({ "raster-opacity": new DataConstantProperty(spec["paint_raster"]["raster-opacity"]), "raster-hue-rotate": new DataConstantProperty(spec["paint_raster"]["raster-hue-rotate"]), @@ -82800,7 +82884,7 @@ var Plotly = (() => { "raster-fade-duration": new DataConstantProperty(spec["paint_raster"]["raster-fade-duration"]) }); var properties$8 = { paint: paint$9 }; - var RasterStyleLayer = function(StyleLayer2) { + var RasterStyleLayer = (function(StyleLayer2) { function RasterStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$8); } @@ -82809,7 +82893,7 @@ var Plotly = (() => { RasterStyleLayer2.prototype = Object.create(StyleLayer2 && StyleLayer2.prototype); RasterStyleLayer2.prototype.constructor = RasterStyleLayer2; return RasterStyleLayer2; - }(StyleLayer); + })(StyleLayer); function validateCustomStyleLayer(layerObject) { var errors = []; var id2 = layerObject.id; @@ -82824,7 +82908,7 @@ var Plotly = (() => { } return errors; } - var CustomStyleLayer = function(StyleLayer2) { + var CustomStyleLayer = (function(StyleLayer2) { function CustomStyleLayer2(implementation) { StyleLayer2.call(this, implementation, {}); this.implementation = implementation; @@ -82858,7 +82942,7 @@ var Plotly = (() => { } }; return CustomStyleLayer2; - }(StyleLayer); + })(StyleLayer); var subclasses = { circle: CircleStyleLayer, heatmap: HeatmapStyleLayer, @@ -86521,7 +86605,7 @@ var Plotly = (() => { rawData: pbf.buffer }); } - var GeoJSONWorkerSource = function(VectorTileWorkerSource2) { + var GeoJSONWorkerSource = (function(VectorTileWorkerSource2) { function GeoJSONWorkerSource2(actor, layerIndex, availableImages, loadGeoJSON) { VectorTileWorkerSource2.call(this, actor, layerIndex, availableImages, loadGeoJSONTile); if (loadGeoJSON) { @@ -86657,7 +86741,7 @@ var Plotly = (() => { } }; return GeoJSONWorkerSource2; - }(VectorTileWorkerSource); + })(VectorTileWorkerSource); function getSuperclusterOptions(ref) { var superclusterOptions = ref.superclusterOptions; var clusterProperties = ref.clusterProperties; @@ -87194,7 +87278,7 @@ var Plotly = (() => { return false; } var padding = 1; - var ImageManager = function(Evented) { + var ImageManager = (function(Evented) { function ImageManager2() { Evented.call(this); this.images = {}; @@ -87497,7 +87581,7 @@ var Plotly = (() => { } }; return ImageManager2; - }(performance.Evented); + })(performance.Evented); function loadGlyphRange(fontstack, range, urlTemplate, requestManager, callback) { var begin = range * 256; var end = begin + 255; @@ -87774,7 +87858,7 @@ var Plotly = (() => { "intensity": new performance.DataConstantProperty(performance.styleSpec.light.intensity) }); var TRANSITION_SUFFIX = "-transition"; - var Light = function(Evented) { + var Light = (function(Evented) { function Light2(lightOptions) { Evented.call(this); this._transitionable = new performance.Transitionable(properties); @@ -87826,7 +87910,7 @@ var Plotly = (() => { }))); }; return Light2; - }(performance.Evented); + })(performance.Evented); var LineAtlas = function LineAtlas2(width, height) { this.width = width; this.height = height; @@ -88071,7 +88155,7 @@ var Plotly = (() => { var hit = tileID.x >= level.minX && tileID.x < level.maxX && tileID.y >= level.minY && tileID.y < level.maxY; return hit; }; - var VectorTileSource = function(Evented) { + var VectorTileSource = (function(Evented) { function VectorTileSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -88244,8 +88328,8 @@ var Plotly = (() => { return false; }; return VectorTileSource2; - }(performance.Evented); - var RasterTileSource = function(Evented) { + })(performance.Evented); + var RasterTileSource = (function(Evented) { function RasterTileSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -88367,8 +88451,8 @@ var Plotly = (() => { return false; }; return RasterTileSource2; - }(performance.Evented); - var RasterDEMTileSource = function(RasterTileSource2) { + })(performance.Evented); + var RasterDEMTileSource = (function(RasterTileSource2) { function RasterDEMTileSource2(id, options, dispatcher, eventedParent) { RasterTileSource2.call(this, id, options, dispatcher, eventedParent); this.type = "raster-dem"; @@ -88479,8 +88563,8 @@ var Plotly = (() => { } }; return RasterDEMTileSource2; - }(RasterTileSource); - var GeoJSONSource = function(Evented) { + })(RasterTileSource); + var GeoJSONSource = (function(Evented) { function GeoJSONSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -88690,7 +88774,7 @@ var Plotly = (() => { return false; }; return GeoJSONSource2; - }(performance.Evented); + })(performance.Evented); var rasterBoundsAttributes = performance.createLayout([ { name: "a_pos", @@ -88703,7 +88787,7 @@ var Plotly = (() => { components: 2 } ]); - var ImageSource = function(Evented) { + var ImageSource = (function(Evented) { function ImageSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -88839,7 +88923,7 @@ var Plotly = (() => { return false; }; return ImageSource2; - }(performance.Evented); + })(performance.Evented); function getCoordinatesCenterTileID(coords) { var minX = Infinity; var minY = Infinity; @@ -88859,7 +88943,7 @@ var Plotly = (() => { var tilesAtZoom = Math.pow(2, zoom); return new performance.CanonicalTileID(zoom, Math.floor((minX + maxX) / 2 * tilesAtZoom), Math.floor((minY + maxY) / 2 * tilesAtZoom)); } - var VideoSource = function(ImageSource2) { + var VideoSource = (function(ImageSource2) { function VideoSource2(id, options, dispatcher, eventedParent) { ImageSource2.call(this, id, options, dispatcher, eventedParent); this.roundZoom = true; @@ -88968,8 +89052,8 @@ var Plotly = (() => { return this.video && !this.video.paused; }; return VideoSource2; - }(ImageSource); - var CanvasSource = function(ImageSource2) { + })(ImageSource); + var CanvasSource = (function(ImageSource2) { function CanvasSource2(id, options, dispatcher, eventedParent) { ImageSource2.call(this, id, options, dispatcher, eventedParent); if (!options.coordinates) { @@ -89093,7 +89177,7 @@ var Plotly = (() => { return false; }; return CanvasSource2; - }(ImageSource); + })(ImageSource); var sourceTypes = { vector: VectorTileSource, raster: RasterTileSource, @@ -89496,7 +89580,7 @@ var Plotly = (() => { BaseValue.prototype.setDefault = function setDefault() { this.set(this.default); }; - var ClearColor = function(BaseValue2) { + var ClearColor = (function(BaseValue2) { function ClearColor2() { BaseValue2.apply(this, arguments); } @@ -89517,8 +89601,8 @@ var Plotly = (() => { this.dirty = false; }; return ClearColor2; - }(BaseValue); - var ClearDepth = function(BaseValue2) { + })(BaseValue); + var ClearDepth = (function(BaseValue2) { function ClearDepth2() { BaseValue2.apply(this, arguments); } @@ -89538,8 +89622,8 @@ var Plotly = (() => { this.dirty = false; }; return ClearDepth2; - }(BaseValue); - var ClearStencil = function(BaseValue2) { + })(BaseValue); + var ClearStencil = (function(BaseValue2) { function ClearStencil2() { BaseValue2.apply(this, arguments); } @@ -89559,8 +89643,8 @@ var Plotly = (() => { this.dirty = false; }; return ClearStencil2; - }(BaseValue); - var ColorMask = function(BaseValue2) { + })(BaseValue); + var ColorMask = (function(BaseValue2) { function ColorMask2() { BaseValue2.apply(this, arguments); } @@ -89586,8 +89670,8 @@ var Plotly = (() => { this.dirty = false; }; return ColorMask2; - }(BaseValue); - var DepthMask = function(BaseValue2) { + })(BaseValue); + var DepthMask = (function(BaseValue2) { function DepthMask2() { BaseValue2.apply(this, arguments); } @@ -89607,8 +89691,8 @@ var Plotly = (() => { this.dirty = false; }; return DepthMask2; - }(BaseValue); - var StencilMask = function(BaseValue2) { + })(BaseValue); + var StencilMask = (function(BaseValue2) { function StencilMask2() { BaseValue2.apply(this, arguments); } @@ -89628,8 +89712,8 @@ var Plotly = (() => { this.dirty = false; }; return StencilMask2; - }(BaseValue); - var StencilFunc = function(BaseValue2) { + })(BaseValue); + var StencilFunc = (function(BaseValue2) { function StencilFunc2() { BaseValue2.apply(this, arguments); } @@ -89654,8 +89738,8 @@ var Plotly = (() => { this.dirty = false; }; return StencilFunc2; - }(BaseValue); - var StencilOp = function(BaseValue2) { + })(BaseValue); + var StencilOp = (function(BaseValue2) { function StencilOp2() { BaseValue2.apply(this, arguments); } @@ -89681,8 +89765,8 @@ var Plotly = (() => { this.dirty = false; }; return StencilOp2; - }(BaseValue); - var StencilTest = function(BaseValue2) { + })(BaseValue); + var StencilTest = (function(BaseValue2) { function StencilTest2() { BaseValue2.apply(this, arguments); } @@ -89707,8 +89791,8 @@ var Plotly = (() => { this.dirty = false; }; return StencilTest2; - }(BaseValue); - var DepthRange = function(BaseValue2) { + })(BaseValue); + var DepthRange = (function(BaseValue2) { function DepthRange2() { BaseValue2.apply(this, arguments); } @@ -89732,8 +89816,8 @@ var Plotly = (() => { this.dirty = false; }; return DepthRange2; - }(BaseValue); - var DepthTest = function(BaseValue2) { + })(BaseValue); + var DepthTest = (function(BaseValue2) { function DepthTest2() { BaseValue2.apply(this, arguments); } @@ -89758,8 +89842,8 @@ var Plotly = (() => { this.dirty = false; }; return DepthTest2; - }(BaseValue); - var DepthFunc = function(BaseValue2) { + })(BaseValue); + var DepthFunc = (function(BaseValue2) { function DepthFunc2() { BaseValue2.apply(this, arguments); } @@ -89779,8 +89863,8 @@ var Plotly = (() => { this.dirty = false; }; return DepthFunc2; - }(BaseValue); - var Blend = function(BaseValue2) { + })(BaseValue); + var Blend = (function(BaseValue2) { function Blend2() { BaseValue2.apply(this, arguments); } @@ -89805,8 +89889,8 @@ var Plotly = (() => { this.dirty = false; }; return Blend2; - }(BaseValue); - var BlendFunc = function(BaseValue2) { + })(BaseValue); + var BlendFunc = (function(BaseValue2) { function BlendFunc2() { BaseValue2.apply(this, arguments); } @@ -89831,8 +89915,8 @@ var Plotly = (() => { this.dirty = false; }; return BlendFunc2; - }(BaseValue); - var BlendColor = function(BaseValue2) { + })(BaseValue); + var BlendColor = (function(BaseValue2) { function BlendColor2() { BaseValue2.apply(this, arguments); } @@ -89853,8 +89937,8 @@ var Plotly = (() => { this.dirty = false; }; return BlendColor2; - }(BaseValue); - var BlendEquation = function(BaseValue2) { + })(BaseValue); + var BlendEquation = (function(BaseValue2) { function BlendEquation2() { BaseValue2.apply(this, arguments); } @@ -89874,8 +89958,8 @@ var Plotly = (() => { this.dirty = false; }; return BlendEquation2; - }(BaseValue); - var CullFace = function(BaseValue2) { + })(BaseValue); + var CullFace = (function(BaseValue2) { function CullFace2() { BaseValue2.apply(this, arguments); } @@ -89900,8 +89984,8 @@ var Plotly = (() => { this.dirty = false; }; return CullFace2; - }(BaseValue); - var CullFaceSide = function(BaseValue2) { + })(BaseValue); + var CullFaceSide = (function(BaseValue2) { function CullFaceSide2() { BaseValue2.apply(this, arguments); } @@ -89921,8 +90005,8 @@ var Plotly = (() => { this.dirty = false; }; return CullFaceSide2; - }(BaseValue); - var FrontFace = function(BaseValue2) { + })(BaseValue); + var FrontFace = (function(BaseValue2) { function FrontFace2() { BaseValue2.apply(this, arguments); } @@ -89942,8 +90026,8 @@ var Plotly = (() => { this.dirty = false; }; return FrontFace2; - }(BaseValue); - var Program = function(BaseValue2) { + })(BaseValue); + var Program = (function(BaseValue2) { function Program2() { BaseValue2.apply(this, arguments); } @@ -89963,8 +90047,8 @@ var Plotly = (() => { this.dirty = false; }; return Program2; - }(BaseValue); - var ActiveTextureUnit = function(BaseValue2) { + })(BaseValue); + var ActiveTextureUnit = (function(BaseValue2) { function ActiveTextureUnit2() { BaseValue2.apply(this, arguments); } @@ -89984,8 +90068,8 @@ var Plotly = (() => { this.dirty = false; }; return ActiveTextureUnit2; - }(BaseValue); - var Viewport = function(BaseValue2) { + })(BaseValue); + var Viewport = (function(BaseValue2) { function Viewport2() { BaseValue2.apply(this, arguments); } @@ -90012,8 +90096,8 @@ var Plotly = (() => { this.dirty = false; }; return Viewport2; - }(BaseValue); - var BindFramebuffer = function(BaseValue2) { + })(BaseValue); + var BindFramebuffer = (function(BaseValue2) { function BindFramebuffer2() { BaseValue2.apply(this, arguments); } @@ -90034,8 +90118,8 @@ var Plotly = (() => { this.dirty = false; }; return BindFramebuffer2; - }(BaseValue); - var BindRenderbuffer = function(BaseValue2) { + })(BaseValue); + var BindRenderbuffer = (function(BaseValue2) { function BindRenderbuffer2() { BaseValue2.apply(this, arguments); } @@ -90056,8 +90140,8 @@ var Plotly = (() => { this.dirty = false; }; return BindRenderbuffer2; - }(BaseValue); - var BindTexture = function(BaseValue2) { + })(BaseValue); + var BindTexture = (function(BaseValue2) { function BindTexture2() { BaseValue2.apply(this, arguments); } @@ -90078,8 +90162,8 @@ var Plotly = (() => { this.dirty = false; }; return BindTexture2; - }(BaseValue); - var BindVertexBuffer = function(BaseValue2) { + })(BaseValue); + var BindVertexBuffer = (function(BaseValue2) { function BindVertexBuffer2() { BaseValue2.apply(this, arguments); } @@ -90100,8 +90184,8 @@ var Plotly = (() => { this.dirty = false; }; return BindVertexBuffer2; - }(BaseValue); - var BindElementBuffer = function(BaseValue2) { + })(BaseValue); + var BindElementBuffer = (function(BaseValue2) { function BindElementBuffer2() { BaseValue2.apply(this, arguments); } @@ -90119,8 +90203,8 @@ var Plotly = (() => { this.dirty = false; }; return BindElementBuffer2; - }(BaseValue); - var BindVertexArrayOES = function(BaseValue2) { + })(BaseValue); + var BindVertexArrayOES = (function(BaseValue2) { function BindVertexArrayOES2(context) { BaseValue2.call(this, context); this.vao = context.extVertexArrayObject; @@ -90141,8 +90225,8 @@ var Plotly = (() => { this.dirty = false; }; return BindVertexArrayOES2; - }(BaseValue); - var PixelStoreUnpack = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpack = (function(BaseValue2) { function PixelStoreUnpack2() { BaseValue2.apply(this, arguments); } @@ -90163,8 +90247,8 @@ var Plotly = (() => { this.dirty = false; }; return PixelStoreUnpack2; - }(BaseValue); - var PixelStoreUnpackPremultiplyAlpha = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpackPremultiplyAlpha = (function(BaseValue2) { function PixelStoreUnpackPremultiplyAlpha2() { BaseValue2.apply(this, arguments); } @@ -90185,8 +90269,8 @@ var Plotly = (() => { this.dirty = false; }; return PixelStoreUnpackPremultiplyAlpha2; - }(BaseValue); - var PixelStoreUnpackFlipY = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpackFlipY = (function(BaseValue2) { function PixelStoreUnpackFlipY2() { BaseValue2.apply(this, arguments); } @@ -90207,8 +90291,8 @@ var Plotly = (() => { this.dirty = false; }; return PixelStoreUnpackFlipY2; - }(BaseValue); - var FramebufferAttachment = function(BaseValue2) { + })(BaseValue); + var FramebufferAttachment = (function(BaseValue2) { function FramebufferAttachment2(context, parent) { BaseValue2.call(this, context); this.context = context; @@ -90222,8 +90306,8 @@ var Plotly = (() => { return null; }; return FramebufferAttachment2; - }(BaseValue); - var ColorAttachment = function(FramebufferAttachment2) { + })(BaseValue); + var ColorAttachment = (function(FramebufferAttachment2) { function ColorAttachment2() { FramebufferAttachment2.apply(this, arguments); } @@ -90245,8 +90329,8 @@ var Plotly = (() => { this.dirty = false; }; return ColorAttachment2; - }(FramebufferAttachment); - var DepthAttachment = function(FramebufferAttachment2) { + })(FramebufferAttachment); + var DepthAttachment = (function(FramebufferAttachment2) { function DepthAttachment2() { FramebufferAttachment2.apply(this, arguments); } @@ -90265,7 +90349,7 @@ var Plotly = (() => { this.dirty = false; }; return DepthAttachment2; - }(FramebufferAttachment); + })(FramebufferAttachment); var Framebuffer = function Framebuffer2(context, width, height, hasDepth) { this.context = context; this.width = width; @@ -90563,7 +90647,7 @@ var Plotly = (() => { this.bindVertexArrayOES.set(null); } }; - var SourceCache = function(Evented) { + var SourceCache = (function(Evented) { function SourceCache2(id, options, dispatcher) { var this$1 = this; Evented.call(this); @@ -91249,7 +91333,7 @@ var Plotly = (() => { }); }; return SourceCache2; - }(performance.Evented); + })(performance.Evented); SourceCache.maxOverzooming = 10; SourceCache.maxUnderzooming = 3; function compareTileId(a, b) { @@ -93568,7 +93652,7 @@ var Plotly = (() => { "setPitch" ]); var empty = emptyStyle(); - var Style = function(Evented) { + var Style = (function(Evented) { function Style2(map, options) { var this$1 = this; if (options === void 0) @@ -94539,7 +94623,7 @@ var Plotly = (() => { return performance.makeRequest(params, callback); }; return Style2; - }(performance.Evented); + })(performance.Evented); Style.getSourceType = getType; Style.setSourceType = setType; Style.registerForPluginStateChange = performance.registerForPluginStateChange; @@ -98247,7 +98331,7 @@ var Plotly = (() => { amount: speed * (duration / 2) }; } - var MapMouseEvent = function(Event) { + var MapMouseEvent = (function(Event) { function MapMouseEvent2(type, map, originalEvent, data) { if (data === void 0) data = {}; @@ -98274,8 +98358,8 @@ var Plotly = (() => { }; Object.defineProperties(MapMouseEvent2.prototype, prototypeAccessors2); return MapMouseEvent2; - }(performance.Event); - var MapTouchEvent = function(Event) { + })(performance.Event); + var MapTouchEvent = (function(Event) { function MapTouchEvent2(type, map, originalEvent) { var touches = type === "touchend" ? originalEvent.changedTouches : originalEvent.touches; var points = DOM.touchPos(map.getCanvasContainer(), touches); @@ -98308,8 +98392,8 @@ var Plotly = (() => { }; Object.defineProperties(MapTouchEvent2.prototype, prototypeAccessors$1); return MapTouchEvent2; - }(performance.Event); - var MapWheelEvent = function(Event) { + })(performance.Event); + var MapWheelEvent = (function(Event) { function MapWheelEvent2(type, map, originalEvent) { Event.call(this, type, { originalEvent }); this._defaultPrevented = false; @@ -98327,7 +98411,7 @@ var Plotly = (() => { }; Object.defineProperties(MapWheelEvent2.prototype, prototypeAccessors$2); return MapWheelEvent2; - }(performance.Event); + })(performance.Event); var MapEventHandler = function MapEventHandler2(map, options) { this._map = map; this._clickTolerance = options.clickTolerance; @@ -98785,7 +98869,7 @@ var Plotly = (() => { MouseHandler.prototype.isActive = function isActive() { return this._active; }; - var MousePanHandler = function(MouseHandler2) { + var MousePanHandler = (function(MouseHandler2) { function MousePanHandler2() { MouseHandler2.apply(this, arguments); } @@ -98809,8 +98893,8 @@ var Plotly = (() => { }; }; return MousePanHandler2; - }(MouseHandler); - var MouseRotateHandler = function(MouseHandler2) { + })(MouseHandler); + var MouseRotateHandler = (function(MouseHandler2) { function MouseRotateHandler2() { MouseHandler2.apply(this, arguments); } @@ -98833,8 +98917,8 @@ var Plotly = (() => { e.preventDefault(); }; return MouseRotateHandler2; - }(MouseHandler); - var MousePitchHandler = function(MouseHandler2) { + })(MouseHandler); + var MousePitchHandler = (function(MouseHandler2) { function MousePitchHandler2() { MouseHandler2.apply(this, arguments); } @@ -98857,7 +98941,7 @@ var Plotly = (() => { e.preventDefault(); }; return MousePitchHandler2; - }(MouseHandler); + })(MouseHandler); var TouchPanHandler = function TouchPanHandler2(options) { this._minTouches = 1; this._clickTolerance = options.clickTolerance || 1; @@ -99022,7 +99106,7 @@ var Plotly = (() => { function getZoomDelta(distance, lastDistance) { return Math.log(distance / lastDistance) / Math.LN2; } - var TouchZoomHandler = function(TwoTouchHandler2) { + var TouchZoomHandler = (function(TwoTouchHandler2) { function TouchZoomHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -99051,12 +99135,12 @@ var Plotly = (() => { }; }; return TouchZoomHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); var ROTATION_THRESHOLD = 25; function getBearingDelta(a, b) { return a.angleWith(b) * 180 / Math.PI; } - var TouchRotateHandler = function(TwoTouchHandler2) { + var TouchRotateHandler = (function(TwoTouchHandler2) { function TouchRotateHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -99094,12 +99178,12 @@ var Plotly = (() => { return Math.abs(bearingDeltaSinceStart) < threshold; }; return TouchRotateHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); function isVertical(vector) { return Math.abs(vector.y) > Math.abs(vector.x); } var ALLOWED_SINGLE_TOUCH_TIME = 100; - var TouchPitchHandler = function(TwoTouchHandler2) { + var TouchPitchHandler = (function(TwoTouchHandler2) { function TouchPitchHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -99156,7 +99240,7 @@ var Plotly = (() => { return isVertical(vectorA) && isVertical(vectorB) && isSameDirection; }; return TouchPitchHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); var defaultOptions = { panStep: 100, bearingStep: 15, @@ -99662,7 +99746,7 @@ var Plotly = (() => { var isMoving = function(p) { return p.zoom || p.drag || p.pitch || p.rotate; }; - var RenderFrameEvent = function(Event) { + var RenderFrameEvent = (function(Event) { function RenderFrameEvent2() { Event.apply(this, arguments); } @@ -99671,7 +99755,7 @@ var Plotly = (() => { RenderFrameEvent2.prototype = Object.create(Event && Event.prototype); RenderFrameEvent2.prototype.constructor = RenderFrameEvent2; return RenderFrameEvent2; - }(performance.Event); + })(performance.Event); function hasChange(result) { return result.panDelta && result.panDelta.mag() || result.zoomDelta || result.bearingDelta || result.pitchDelta; } @@ -100161,7 +100245,7 @@ var Plotly = (() => { this._frameId = this._requestFrame(); } }; - var Camera = function(Evented) { + var Camera = (function(Evented) { function Camera2(transform, options) { Evented.call(this); this._moving = false; @@ -100656,7 +100740,7 @@ var Plotly = (() => { center.lng += delta > 180 ? -360 : delta < -180 ? 360 : 0; }; return Camera2; - }(performance.Evented); + })(performance.Evented); var AttributionControl = function AttributionControl2(options) { if (options === void 0) options = {}; @@ -100988,7 +101072,7 @@ var Plotly = (() => { fadeDuration: 300, crossSourceCollisions: true }; - var Map = function(Camera2) { + var Map = (function(Camera2) { function Map2(options) { var this$1 = this; options = performance.extend({}, defaultOptions$1, options); @@ -102026,7 +102110,7 @@ var Plotly = (() => { }; Object.defineProperties(Map2.prototype, prototypeAccessors2); return Map2; - }(Camera); + })(Camera); function removeNode(node) { if (node.parentNode) { node.parentNode.removeChild(node); @@ -102293,7 +102377,7 @@ var Plotly = (() => { } classList.add("mapboxgl-" + prefix + "-anchor-" + anchor); } - var Marker = function(Evented) { + var Marker = (function(Evented) { function Marker2(options, legacyOptions) { Evented.call(this); if (options instanceof performance.window.HTMLElement || legacyOptions) { @@ -102695,7 +102779,7 @@ var Plotly = (() => { return this._pitchAlignment; }; return Marker2; - }(performance.Evented); + })(performance.Evented); var defaultOptions$3 = { positionOptions: { enableHighAccuracy: false, @@ -102723,7 +102807,7 @@ var Plotly = (() => { } var numberOfWatches = 0; var noTimeout = false; - var GeolocateControl = function(Evented) { + var GeolocateControl = (function(Evented) { function GeolocateControl2(options) { Evented.call(this); this.options = performance.extend({}, defaultOptions$3, options); @@ -103050,7 +103134,7 @@ var Plotly = (() => { } }; return GeolocateControl2; - }(performance.Evented); + })(performance.Evented); var defaultOptions$4 = { maxWidth: 100, unit: "metric" @@ -103239,7 +103323,7 @@ var Plotly = (() => { "select:not([disabled])", "textarea:not([disabled])" ].join(", "); - var Popup = function(Evented) { + var Popup = (function(Evented) { function Popup2(options) { Evented.call(this); this.options = performance.extend(Object.create(defaultOptions$5), options); @@ -103492,7 +103576,7 @@ var Plotly = (() => { this.remove(); }; return Popup2; - }(performance.Evented); + })(performance.Evented); function normalizeOffset(offset) { if (!offset) { return normalizeOffset(new performance.Point(0, 0)); @@ -103617,7 +103701,7 @@ var Plotly = (() => { return exported; }); return mapboxgl; - }); + })); } }); @@ -105055,34 +105139,35 @@ var Plotly = (() => { } return false; } + var ANTIMERIDIAN_LON_SHIFT = 360; + function doesCrossAntiMeridian(pts) { + for (let l = 0; l < pts.length - 1; l++) { + if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; + } + return null; + } function feature2polygons(feature) { var geometry = feature.geometry; var coords = geometry.coordinates; var loc = feature.id; var polygons = []; var appendPolygon, j, k, m; - function doesCrossAntiMerdian(pts) { - for (var l = 0; l < pts.length - 1; l++) { - if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; - } - return null; - } if (loc === "RUS" || loc === "FJI") { appendPolygon = function(_pts) { var pts; - if (doesCrossAntiMerdian(_pts) === null) { + if (doesCrossAntiMeridian(_pts) === null) { pts = _pts; } else { pts = new Array(_pts.length); for (m = 0; m < _pts.length; m++) { - pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + 360 : _pts[m][0], _pts[m][1]]; + pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + ANTIMERIDIAN_LON_SHIFT : _pts[m][0], _pts[m][1]]; } } polygons.push(polygon.tester(pts)); }; } else if (loc === "ATA") { appendPolygon = function(pts) { - var crossAntiMeridianIndex = doesCrossAntiMerdian(pts); + var crossAntiMeridianIndex = doesCrossAntiMeridian(pts); if (crossAntiMeridianIndex === null) { return polygons.push(polygon.tester(pts)); } @@ -105090,7 +105175,7 @@ var Plotly = (() => { var si = 0; for (m = 0; m < pts.length; m++) { if (m > crossAntiMeridianIndex) { - stitch[si++] = [pts[m][0] + 360, pts[m][1]]; + stitch[si++] = [pts[m][0] + ANTIMERIDIAN_LON_SHIFT, pts[m][1]]; } else if (m === crossAntiMeridianIndex) { stitch[si++] = pts[m]; stitch[si++] = [pts[m][0], -90]; @@ -105280,13 +105365,39 @@ var Plotly = (() => { function computeBbox(d) { return turfBbox(d); } + function getFitboundsLonRange(lons) { + const sorted = lons.filter(isFinite).sort((a, b) => a - b); + if (sorted.length < 2) return null; + const n = sorted.length; + const naiveSpan = sorted[n - 1] - sorted[0]; + if (naiveSpan >= 360) return null; + let maxGap = -Infinity; + let gapStart = -1; + for (let i = 0; i < n - 1; i++) { + const gap = sorted[i + 1] - sorted[i]; + if (gap > maxGap) { + maxGap = gap; + gapStart = i; + } + } + const antimeridianGap = 360 - naiveSpan; + if (maxGap <= antimeridianGap) return null; + return [sorted[gapStart + 1], sorted[gapStart] + ANTIMERIDIAN_LON_SHIFT]; + } + function unwrapLonRange([lon0, lon1]) { + return [lon0, lon0 > 0 && lon1 < 0 ? lon1 + ANTIMERIDIAN_LON_SHIFT : lon1]; + } module.exports = { locationToFeature, feature2polygons, getTraceGeojson, extractTraceFeature, fetchTraceGeoData, - computeBbox + computeBbox, + doesCrossAntiMeridian, + getFitboundsLonRange, + unwrapLonRange, + ANTIMERIDIAN_LON_SHIFT }; } }); @@ -106953,13 +107064,14 @@ var Plotly = (() => { var Axes = require_axes(); var attributes = require_attributes25(); var fillText = require_lib().fillText; + var { ANTIMERIDIAN_LON_SHIFT } = require_geo_location_utils(); module.exports = function hoverPoints(pointData, xval, yval) { var cd = pointData.cd; var trace = cd[0].trace; var geo = pointData.subplot; var pt, i, j, isInside; var xy = [xval, yval]; - var altXy = [xval + 360, yval]; + const altXy = [xval + ANTIMERIDIAN_LON_SHIFT, yval]; for (i = 0; i < cd.length; i++) { pt = cd[i]; isInside = false; diff --git a/dist/plotly-mapbox.min.js b/dist/plotly-mapbox.min.js index 879bf958276..7a350dc8cf9 100644 --- a/dist/plotly-mapbox.min.js +++ b/dist/plotly-mapbox.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (mapbox - minified) v3.6.0 +* plotly.js (mapbox - minified) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,18 +12,18 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var dj=Object.defineProperty,pj=Object.defineProperties;var mj=Object.getOwnPropertyDescriptors;var M7=Object.getOwnPropertySymbols;var yj=Object.prototype.hasOwnProperty,gj=Object.prototype.propertyIsEnumerable;var S7=(e,t,r)=>t in e?dj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sd=(e,t)=>{for(var r in t||(t={}))yj.call(t,r)&&S7(e,r,t[r]);if(M7)for(var r of M7(t))gj.call(t,r)&&S7(e,r,t[r]);return e},t_=(e,t)=>pj(e,mj(t));var pe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var r_=pe(k7=>{"use strict";k7.version="3.6.0"});var E7=pe((C7,a_)=>{(function(t,r,i){r[t]=r[t]||i(),typeof a_!="undefined"&&a_.exports&&(a_.exports=r[t])})("Promise",typeof window!="undefined"?window:C7,function(){"use strict";var t,r,i,a=Object.prototype.toString,s=typeof setImmediate!="undefined"?function(O){return setImmediate(O)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(O,q,z,N){return Object.defineProperty(O,q,{value:z,writable:!0,configurable:N!==!1})}}catch(I){t=function(q,z,N){return q[z]=N,q}}i=function(){var O,q,z;function N(H,U){this.fn=H,this.self=U,this.next=void 0}return{add:function(U,W){z=new N(U,W),q?q.next=z:O=z,q=z,z=void 0},drain:function(){var U=O;for(O=q=r=void 0;U;)U.fn.call(U.self),U=U.next}}}();function l(I,O){i.add(I,O),r||(r=s(i.drain))}function u(I){var O,q=typeof I;return I!=null&&(q=="object"||q=="function")&&(O=I.then),typeof O=="function"?O:!1}function h(){for(var I=0;I0&&l(h,q))}catch(z){_.call(new M(q),z)}}}function _(I){var O=this;O.triggered||(O.triggered=!0,O.def&&(O=O.def),O.msg=I,O.state=2,O.chain.length>0&&l(h,O))}function T(I,O,q,z){for(var N=0;N{(function(){var e={version:"3.8.2"},t=[].slice,r=function(y){return t.call(y)},i=self.document;function a(y){return y&&(y.ownerDocument||y.document||y).documentElement}function s(y){return y&&(y.ownerDocument&&y.ownerDocument.defaultView||y.document&&y||y.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(y){r=function(S){for(var P=S.length,B=new Array(P);P--;)B[P]=S[P];return B}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(y){var l=this.Element.prototype,u=l.setAttribute,h=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,m=v.setProperty;l.setAttribute=function(S,P){u.call(this,S,P+"")},l.setAttributeNS=function(S,P,B){h.call(this,S,P,B+"")},v.setProperty=function(S,P,B){m.call(this,S,P+"",B)}}e.ascending=_;function _(y,S){return yS?1:y>=S?0:NaN}e.descending=function(y,S){return Sy?1:S>=y?0:NaN},e.min=function(y,S){var P=-1,B=y.length,V,Z;if(arguments.length===1){for(;++P=Z){V=Z;break}for(;++PZ&&(V=Z)}else{for(;++P=Z){V=Z;break}for(;++PZ&&(V=Z)}return V},e.max=function(y,S){var P=-1,B=y.length,V,Z;if(arguments.length===1){for(;++P=Z){V=Z;break}for(;++PV&&(V=Z)}else{for(;++P=Z){V=Z;break}for(;++PV&&(V=Z)}return V},e.extent=function(y,S){var P=-1,B=y.length,V,Z,$;if(arguments.length===1){for(;++P=Z){V=$=Z;break}for(;++PZ&&(V=Z),$=Z){V=$=Z;break}for(;++PZ&&(V=Z),$1)return $/(ae-1)},e.deviation=function(){var y=e.variance.apply(this,arguments);return y&&Math.sqrt(y)};function C(y){return{left:function(S,P,B,V){for(arguments.length<3&&(B=0),arguments.length<4&&(V=S.length);B>>1;y(S[Z],P)<0?B=Z+1:V=Z}return B},right:function(S,P,B,V){for(arguments.length<3&&(B=0),arguments.length<4&&(V=S.length);B>>1;y(S[Z],P)>0?V=Z:B=Z+1}return B}}}var E=C(_);e.bisectLeft=E.left,e.bisect=e.bisectRight=E.right,e.bisector=function(y){return C(y.length===1?function(S,P){return _(y(S),P)}:y)},e.shuffle=function(y,S,P){(B=arguments.length)<3&&(P=y.length,B<2&&(S=0));for(var B=P-S,V,Z;B;)Z=Math.random()*B--|0,V=y[B+S],y[B+S]=y[Z+S],y[Z+S]=V;return y},e.permute=function(y,S){for(var P=S.length,B=new Array(P);P--;)B[P]=y[S[P]];return B},e.pairs=function(y){for(var S=0,P=y.length-1,B,V=y[0],Z=new Array(P<0?0:P);S=0;)for($=y[S],P=$.length;--P>=0;)Z[--V]=$[P];return Z};var I=Math.abs;e.range=function(y,S,P){if(arguments.length<3&&(P=1,arguments.length<2&&(S=y,y=0)),(S-y)/P===1/0)throw new Error("infinite range");var B=[],V=O(I(P)),Z=-1,$;if(y*=V,S*=V,P*=V,P<0)for(;($=y+P*++Z)>S;)B.push($/V);else for(;($=y+P*++Z)=S.length)return V?V.call(y,ae):B?ae.sort(B):ae;for(var xe=-1,ze=ae.length,Pe=S[ge++],$e,st,Ie,He=new z,Qe;++xe=S.length)return X;var ge=[],xe=P[ae++];return X.forEach(function(ze,Pe){ge.push({key:ze,values:$(Pe,ae)})}),xe?ge.sort(function(ze,Pe){return xe(ze.key,Pe.key)}):ge}return y.map=function(X,ae){return Z(ae,X,0)},y.entries=function(X){return $(Z(e.map,X,0),0)},y.key=function(X){return S.push(X),y},y.sortKeys=function(X){return P[S.length-1]=X,y},y.sortValues=function(X){return B=X,y},y.rollup=function(X){return V=X,y},y},e.set=function(y){var S=new fe;if(y)for(var P=0,B=y.length;P=0&&(B=y.slice(P+1),y=y.slice(0,P)),y)return arguments.length<2?this[y].on(B):this[y].on(B,S);if(arguments.length===2){if(S==null)for(y in this)this.hasOwnProperty(y)&&this[y].on(B,null);return this}};function Me(y){var S=[],P=new z;function B(){for(var V=S,Z=-1,$=V.length,X;++Z<$;)(X=V[Z].on)&&X.apply(this,arguments);return y}return B.on=function(V,Z){var $=P.get(V),X;return arguments.length<2?$&&$.on:($&&($.on=null,S=S.slice(0,X=S.indexOf($)).concat(S.slice(X+1)),P.remove(V)),Z&&S.push(P.set(V,{on:Z})),y)},B}e.event=null;function We(){e.event.preventDefault()}function it(){for(var y=e.event,S;S=y.sourceEvent;)y=S;return y}function nt(y){for(var S=new Ce,P=0,B=arguments.length;++P=0&&(P=y.slice(0,S))!=="xmlns"&&(y=y.slice(S+1)),Oe.hasOwnProperty(P)?{space:Oe[P],local:y}:y}},ft.attr=function(y,S){if(arguments.length<2){if(typeof y=="string"){var P=this.node();return y=e.ns.qualify(y),y.local?P.getAttributeNS(y.space,y.local):P.getAttribute(y)}for(S in y)this.each(at(S,y[S]));return this}return this.each(at(y,S))};function at(y,S){y=e.ns.qualify(y);function P(){this.removeAttribute(y)}function B(){this.removeAttributeNS(y.space,y.local)}function V(){this.setAttribute(y,S)}function Z(){this.setAttributeNS(y.space,y.local,S)}function $(){var ae=S.apply(this,arguments);ae==null?this.removeAttribute(y):this.setAttribute(y,ae)}function X(){var ae=S.apply(this,arguments);ae==null?this.removeAttributeNS(y.space,y.local):this.setAttributeNS(y.space,y.local,ae)}return S==null?y.local?B:P:typeof S=="function"?y.local?X:$:y.local?Z:V}function Je(y){return y.trim().replace(/\s+/g," ")}ft.classed=function(y,S){if(arguments.length<2){if(typeof y=="string"){var P=this.node(),B=(y=xt(y)).length,V=-1;if(S=P.classList){for(;++V=0;)(Z=P[B])&&(V&&V!==Z.nextSibling&&V.parentNode.insertBefore(Z,V),V=Z);return this},ft.sort=function(y){y=ut.apply(this,arguments);for(var S=-1,P=this.length;++S=S&&(S=V+1);!(ae=$[S])&&++S0&&(y=y.slice(0,V));var $=Nt.get(y);$&&(y=$,Z=Ht);function X(){var xe=this[B];xe&&(this.removeEventListener(y,xe,xe.$),delete this[B])}function ae(){var xe=Z(S,r(arguments));X.call(this),this.addEventListener(y,this[B]=xe,xe.$=P),xe._=S}function ge(){var xe=new RegExp("^__on([^.]+)"+e.requote(y)+"$"),ze;for(var Pe in this)if(ze=Pe.match(xe)){var $e=this[Pe];this.removeEventListener(ze[1],$e,$e.$),delete this[Pe]}}return V?S?ae:X:S?me:ge}var Nt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Nt.forEach(function(y){"on"+y in i&&Nt.remove(y)});function er(y,S){return function(P){var B=e.event;e.event=P,S[0]=this.__data__;try{y.apply(this,S)}finally{e.event=B}}}function Ht(y,S){var P=er(y,S);return function(B){var V=this,Z=B.relatedTarget;(!Z||Z!==V&&!(Z.compareDocumentPosition(V)&8))&&P.call(V,B)}}var Gt,hr=0;function yr(y){var S=".dragsuppress-"+ ++hr,P="click"+S,B=e.select(s(y)).on("touchmove"+S,We).on("dragstart"+S,We).on("selectstart"+S,We);if(Gt==null&&(Gt="onselectstart"in y?!1:Se(y.style,"userSelect")),Gt){var V=a(y).style,Z=V[Gt];V[Gt]="none"}return function($){if(B.on(S,null),Gt&&(V[Gt]=Z),$){var X=function(){B.on(P,null)};B.on(P,function(){We(),X()},!0),setTimeout(X,0)}}}e.mouse=function(y){return Ct(y,it())};var mr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ct(y,S){S.changedTouches&&(S=S.changedTouches[0]);var P=y.ownerSVGElement||y;if(P.createSVGPoint){var B=P.createSVGPoint();if(mr<0){var V=s(y);if(V.scrollX||V.scrollY){P=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=P[0][0].getScreenCTM();mr=!(Z.f||Z.e),P.remove()}}return mr?(B.x=S.pageX,B.y=S.pageY):(B.x=S.clientX,B.y=S.clientY),B=B.matrixTransform(y.getScreenCTM().inverse()),[B.x,B.y]}var $=y.getBoundingClientRect();return[S.clientX-$.left-y.clientLeft,S.clientY-$.top-y.clientTop]}e.touch=function(y,S,P){if(arguments.length<3&&(P=S,S=it().changedTouches),S){for(var B=0,V=S.length,Z;B0?1:y<0?-1:0}function ai(y,S,P){return(S[0]-y[0])*(P[1]-y[1])-(S[1]-y[1])*(P[0]-y[0])}function bi(y){return y>1?0:y<-1?Tt:Math.acos(y)}function hi(y){return y>1?Tr:y<-1?-Tr:Math.asin(y)}function Hi(y){return((y=Math.exp(y))-1/y)/2}function Ii(y){return((y=Math.exp(y))+1/y)/2}function _n(y){return((y=Math.exp(2*y))-1)/(y+1)}function an(y){return(y=Math.sin(y/2))*y}var Gi=Math.SQRT2,ma=2,nn=4;e.interpolateZoom=function(y,S){var P=y[0],B=y[1],V=y[2],Z=S[0],$=S[1],X=S[2],ae=Z-P,ge=$-B,xe=ae*ae+ge*ge,ze,Pe;if(xe0&&(Jt=Jt.transition().duration($)),Jt.call(ot.event)}function zr(){He&&He.domain(Ie.range().map(function(Jt){return(Jt-y.x)/y.k}).map(Ie.invert)),ht&&ht.domain(Qe.range().map(function(Jt){return(Jt-y.y)/y.k}).map(Qe.invert))}function Rr(Jt){X++||Jt({type:"zoomstart"})}function ta(Jt){zr(),Jt({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function Vr(Jt){--X||(Jt({type:"zoomend"}),P=null)}function Qr(){var Jt=this,Kr=st.of(Jt,arguments),oa=0,sa=e.select(s(Jt)).on(ge,$i).on(xe,xi),Ei=je(e.mouse(Jt)),Ui=yr(Jt);fh.call(Jt),Rr(Kr);function $i(){oa=1,cr(e.mouse(Jt),Ei),ta(Kr)}function xi(){sa.on(ge,null).on(xe,null),Ui(oa),Vr(Kr)}}function qa(){var Jt=this,Kr=st.of(Jt,arguments),oa={},sa=0,Ei,Ui=".zoom-"+e.event.changedTouches[0].identifier,$i="touchmove"+Ui,xi="touchend"+Ui,wn=[],Ar=e.select(Jt),Hr=yr(Jt);Ti(),Rr(Kr),Ar.on(ae,null).on(Pe,Ti);function Fi(){var pn=e.touches(Jt);return Ei=y.k,pn.forEach(function(di){di.identifier in oa&&(oa[di.identifier]=je(di))}),pn}function Ti(){var pn=e.event.target;e.select(pn).on($i,fo).on(xi,qn),wn.push(pn);for(var di=e.event.changedTouches,Jo=0,co=di.length;Jo1){var Ta=fi[0],li=fi[1],Bl=Ta[0]-li[0],Kv=Ta[1]-li[1];sa=Bl*Bl+Kv*Kv}}function fo(){var pn=e.touches(Jt),di,Jo,co,fi;fh.call(Jt);for(var bf=0,Ta=pn.length;bf1?1:S,P=P<0?0:P>1?1:P,V=P<=.5?P*(1+S):P+S-P*S,B=2*P-V;function Z(X){return X>360?X-=360:X<0&&(X+=360),X<60?B+(V-B)*X/60:X<180?V:X<240?B+(V-B)*(240-X)/60:B}function $(X){return Math.round(Z(X)*255)}return new ua($(y+120),$(y),$(y-120))}e.hcl=ue;function ue(y,S,P){return this instanceof ue?(this.h=+y,this.c=+S,void(this.l=+P)):arguments.length<2?y instanceof ue?new ue(y.h,y.c,y.l):y instanceof rt?Sr(y.l,y.a,y.b):Sr((y=nr((y=e.rgb(y)).r,y.g,y.b)).l,y.a,y.b):new ue(y,S,P)}var Le=ue.prototype=new Xr;Le.brighter=function(y){return new ue(this.h,this.c,Math.min(100,this.l+Ze*(arguments.length?y:1)))},Le.darker=function(y){return new ue(this.h,this.c,Math.max(0,this.l-Ze*(arguments.length?y:1)))},Le.rgb=function(){return Ne(this.h,this.c,this.l).rgb()};function Ne(y,S,P){return isNaN(y)&&(y=0),isNaN(S)&&(S=0),new rt(P,Math.cos(y*=Gr)*S,Math.sin(y)*S)}e.lab=rt;function rt(y,S,P){return this instanceof rt?(this.l=+y,this.a=+S,void(this.b=+P)):arguments.length<2?y instanceof rt?new rt(y.l,y.a,y.b):y instanceof ue?Ne(y.h,y.c,y.l):nr((y=ua(y)).r,y.g,y.b):new rt(y,S,P)}var Ze=18,yt=.95047,Et=1,Rt=1.08883,tr=rt.prototype=new Xr;tr.brighter=function(y){return new rt(Math.min(100,this.l+Ze*(arguments.length?y:1)),this.a,this.b)},tr.darker=function(y){return new rt(Math.max(0,this.l-Ze*(arguments.length?y:1)),this.a,this.b)},tr.rgb=function(){return Xt(this.l,this.a,this.b)};function Xt(y,S,P){var B=(y+16)/116,V=B+S/500,Z=B-P/200;return V=Zr(V)*yt,B=Zr(B)*Et,Z=Zr(Z)*Rt,new ua(ca(3.2404542*V-1.5371385*B-.4985314*Z),ca(-.969266*V+1.8760108*B+.041556*Z),ca(.0556434*V-.2040259*B+1.0572252*Z))}function Sr(y,S,P){return y>0?new ue(Math.atan2(P,S)*pa,Math.sqrt(S*S+P*P),y):new ue(NaN,NaN,y)}function Zr(y){return y>.206893034?y*y*y:(y-4/29)/7.787037}function Or(y){return y>.008856?Math.pow(y,1/3):7.787037*y+4/29}function ca(y){return Math.round(255*(y<=.00304?12.92*y:1.055*Math.pow(y,1/2.4)-.055))}e.rgb=ua;function ua(y,S,P){return this instanceof ua?(this.r=~~y,this.g=~~S,void(this.b=~~P)):arguments.length<2?y instanceof ua?new ua(y.r,y.g,y.b):ea(""+y,ua,se):new ua(y,S,P)}function Fa(y){return new ua(y>>16,y>>8&255,y&255)}function ti(y){return Fa(y)+""}var Yr=ua.prototype=new Xr;Yr.brighter=function(y){y=Math.pow(.7,arguments.length?y:1);var S=this.r,P=this.g,B=this.b,V=30;return!S&&!P&&!B?new ua(V,V,V):(S&&S>4,B=B>>4|B,V=ae&240,V=V>>4|V,Z=ae&15,Z=Z<<4|Z):y.length===7&&(B=(ae&16711680)>>16,V=(ae&65280)>>8,Z=ae&255)),S(B,V,Z))}function ga(y,S,P){var B=Math.min(y/=255,S/=255,P/=255),V=Math.max(y,S,P),Z=V-B,$,X,ae=(V+B)/2;return Z?(X=ae<.5?Z/(V+B):Z/(2-V-B),y==V?$=(S-P)/Z+(S0&&ae<1?0:$),new le($,X,ae)}function nr(y,S,P){y=wi(y),S=wi(S),P=wi(P);var B=Or((.4124564*y+.3575761*S+.1804375*P)/yt),V=Or((.2126729*y+.7151522*S+.072175*P)/Et),Z=Or((.0193339*y+.119192*S+.9503041*P)/Rt);return rt(116*V-16,500*(B-V),200*(V-Z))}function wi(y){return(y/=255)<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function Ca(y){var S=parseFloat(y);return y.charAt(y.length-1)==="%"?Math.round(S*2.55):S}var oi=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});oi.forEach(function(y,S){oi.set(y,Fa(S))});function fa(y){return typeof y=="function"?y:function(){return y}}e.functor=fa,e.xhr=In(Te);function In(y){return function(S,P,B){return arguments.length===2&&typeof P=="function"&&(B=P,P=null),Co(S,P,y,B)}}function Co(y,S,P,B){var V={},Z=e.dispatch("beforesend","progress","load","error"),$={},X=new XMLHttpRequest,ae=null;self.XDomainRequest&&!("withCredentials"in X)&&/^(http(s)?:)?\/\//.test(y)&&(X=new XDomainRequest),"onload"in X?X.onload=X.onerror=ge:X.onreadystatechange=function(){X.readyState>3&&ge()};function ge(){var xe=X.status,ze;if(!xe&&Ha(X)||xe>=200&&xe<300||xe===304){try{ze=P.call(V,X)}catch(Pe){Z.error.call(V,Pe);return}Z.load.call(V,ze)}else Z.error.call(V,X)}return X.onprogress=function(xe){var ze=e.event;e.event=xe;try{Z.progress.call(V,X)}finally{e.event=ze}},V.header=function(xe,ze){return xe=(xe+"").toLowerCase(),arguments.length<2?$[xe]:(ze==null?delete $[xe]:$[xe]=ze+"",V)},V.mimeType=function(xe){return arguments.length?(S=xe==null?null:xe+"",V):S},V.responseType=function(xe){return arguments.length?(ae=xe,V):ae},V.response=function(xe){return P=xe,V},["get","post"].forEach(function(xe){V[xe]=function(){return V.send.apply(V,[xe].concat(r(arguments)))}}),V.send=function(xe,ze,Pe){if(arguments.length===2&&typeof ze=="function"&&(Pe=ze,ze=null),X.open(xe,y,!0),S!=null&&!("accept"in $)&&($.accept=S+",*/*"),X.setRequestHeader)for(var $e in $)X.setRequestHeader($e,$[$e]);return S!=null&&X.overrideMimeType&&X.overrideMimeType(S),ae!=null&&(X.responseType=ae),Pe!=null&&V.on("error",Pe).on("load",function(st){Pe(null,st)}),Z.beforesend.call(V,X),X.send(ze==null?null:ze),V},V.abort=function(){return X.abort(),V},e.rebind(V,Z,"on"),B==null?V:V.get(bs(B))}function bs(y){return y.length===1?function(S,P){y(S==null?P:null)}:y}function Ha(y){var S=y.responseType;return S&&S!=="text"?y.response:y.responseText}e.dsv=function(y,S){var P=new RegExp('["'+y+` +"use strict";var Plotly=(()=>{var gj=Object.defineProperty,_j=Object.defineProperties;var xj=Object.getOwnPropertyDescriptors;var C7=Object.getOwnPropertySymbols;var bj=Object.prototype.hasOwnProperty,wj=Object.prototype.propertyIsEnumerable;var E7=(e,t,r)=>t in e?gj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sd=(e,t)=>{for(var r in t||(t={}))bj.call(t,r)&&E7(e,r,t[r]);if(C7)for(var r of C7(t))wj.call(t,r)&&E7(e,r,t[r]);return e},a_=(e,t)=>_j(e,xj(t));var de=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Dy=de(L7=>{"use strict";L7.version="3.7.0"});var P7=de((D7,i_)=>{(function(t,r,i){r[t]=r[t]||i(),typeof i_!="undefined"&&i_.exports&&(i_.exports=r[t])})("Promise",typeof window!="undefined"?window:D7,function(){"use strict";var t,r,i,a=Object.prototype.toString,s=typeof setImmediate!="undefined"?function(O){return setImmediate(O)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(O,q,z,N){return Object.defineProperty(O,q,{value:z,writable:!0,configurable:N!==!1})}}catch(I){t=function(q,z,N){return q[z]=N,q}}i=(function(){var O,q,z;function N(H,U){this.fn=H,this.self=U,this.next=void 0}return{add:function(U,W){z=new N(U,W),q?q.next=z:O=z,q=z,z=void 0},drain:function(){var U=O;for(O=q=r=void 0;U;)U.fn.call(U.self),U=U.next}}})();function l(I,O){i.add(I,O),r||(r=s(i.drain))}function u(I){var O,q=typeof I;return I!=null&&(q=="object"||q=="function")&&(O=I.then),typeof O=="function"?O:!1}function h(){for(var I=0;I0&&l(h,q))}catch(z){_.call(new M(q),z)}}}function _(I){var O=this;O.triggered||(O.triggered=!0,O.def&&(O=O.def),O.msg=I,O.state=2,O.chain.length>0&&l(h,O))}function T(I,O,q,z){for(var N=0;N{(function(){var e={version:"3.8.2"},t=[].slice,r=function(y){return t.call(y)},i=self.document;function a(y){return y&&(y.ownerDocument||y.document||y).documentElement}function s(y){return y&&(y.ownerDocument&&y.ownerDocument.defaultView||y.document&&y||y.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(y){r=function(S){for(var P=S.length,B=new Array(P);P--;)B[P]=S[P];return B}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(y){var l=this.Element.prototype,u=l.setAttribute,h=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,m=v.setProperty;l.setAttribute=function(S,P){u.call(this,S,P+"")},l.setAttributeNS=function(S,P,B){h.call(this,S,P,B+"")},v.setProperty=function(S,P,B){m.call(this,S,P+"",B)}}e.ascending=_;function _(y,S){return yS?1:y>=S?0:NaN}e.descending=function(y,S){return Sy?1:S>=y?0:NaN},e.min=function(y,S){var P=-1,B=y.length,V,Z;if(arguments.length===1){for(;++P=Z){V=Z;break}for(;++PZ&&(V=Z)}else{for(;++P=Z){V=Z;break}for(;++PZ&&(V=Z)}return V},e.max=function(y,S){var P=-1,B=y.length,V,Z;if(arguments.length===1){for(;++P=Z){V=Z;break}for(;++PV&&(V=Z)}else{for(;++P=Z){V=Z;break}for(;++PV&&(V=Z)}return V},e.extent=function(y,S){var P=-1,B=y.length,V,Z,$;if(arguments.length===1){for(;++P=Z){V=$=Z;break}for(;++PZ&&(V=Z),$=Z){V=$=Z;break}for(;++PZ&&(V=Z),$1)return $/(ae-1)},e.deviation=function(){var y=e.variance.apply(this,arguments);return y&&Math.sqrt(y)};function C(y){return{left:function(S,P,B,V){for(arguments.length<3&&(B=0),arguments.length<4&&(V=S.length);B>>1;y(S[Z],P)<0?B=Z+1:V=Z}return B},right:function(S,P,B,V){for(arguments.length<3&&(B=0),arguments.length<4&&(V=S.length);B>>1;y(S[Z],P)>0?V=Z:B=Z+1}return B}}}var E=C(_);e.bisectLeft=E.left,e.bisect=e.bisectRight=E.right,e.bisector=function(y){return C(y.length===1?function(S,P){return _(y(S),P)}:y)},e.shuffle=function(y,S,P){(B=arguments.length)<3&&(P=y.length,B<2&&(S=0));for(var B=P-S,V,Z;B;)Z=Math.random()*B--|0,V=y[B+S],y[B+S]=y[Z+S],y[Z+S]=V;return y},e.permute=function(y,S){for(var P=S.length,B=new Array(P);P--;)B[P]=y[S[P]];return B},e.pairs=function(y){for(var S=0,P=y.length-1,B,V=y[0],Z=new Array(P<0?0:P);S=0;)for($=y[S],P=$.length;--P>=0;)Z[--V]=$[P];return Z};var I=Math.abs;e.range=function(y,S,P){if(arguments.length<3&&(P=1,arguments.length<2&&(S=y,y=0)),(S-y)/P===1/0)throw new Error("infinite range");var B=[],V=O(I(P)),Z=-1,$;if(y*=V,S*=V,P*=V,P<0)for(;($=y+P*++Z)>S;)B.push($/V);else for(;($=y+P*++Z)=S.length)return V?V.call(y,ae):B?ae.sort(B):ae;for(var xe=-1,ze=ae.length,Pe=S[ge++],$e,st,Ie,He=new z,Qe;++xe=S.length)return X;var ge=[],xe=P[ae++];return X.forEach(function(ze,Pe){ge.push({key:ze,values:$(Pe,ae)})}),xe?ge.sort(function(ze,Pe){return xe(ze.key,Pe.key)}):ge}return y.map=function(X,ae){return Z(ae,X,0)},y.entries=function(X){return $(Z(e.map,X,0),0)},y.key=function(X){return S.push(X),y},y.sortKeys=function(X){return P[S.length-1]=X,y},y.sortValues=function(X){return B=X,y},y.rollup=function(X){return V=X,y},y},e.set=function(y){var S=new fe;if(y)for(var P=0,B=y.length;P=0&&(B=y.slice(P+1),y=y.slice(0,P)),y)return arguments.length<2?this[y].on(B):this[y].on(B,S);if(arguments.length===2){if(S==null)for(y in this)this.hasOwnProperty(y)&&this[y].on(B,null);return this}};function Me(y){var S=[],P=new z;function B(){for(var V=S,Z=-1,$=V.length,X;++Z<$;)(X=V[Z].on)&&X.apply(this,arguments);return y}return B.on=function(V,Z){var $=P.get(V),X;return arguments.length<2?$&&$.on:($&&($.on=null,S=S.slice(0,X=S.indexOf($)).concat(S.slice(X+1)),P.remove(V)),Z&&S.push(P.set(V,{on:Z})),y)},B}e.event=null;function Xe(){e.event.preventDefault()}function it(){for(var y=e.event,S;S=y.sourceEvent;)y=S;return y}function nt(y){for(var S=new Ce,P=0,B=arguments.length;++P=0&&(P=y.slice(0,S))!=="xmlns"&&(y=y.slice(S+1)),Oe.hasOwnProperty(P)?{space:Oe[P],local:y}:y}},ft.attr=function(y,S){if(arguments.length<2){if(typeof y=="string"){var P=this.node();return y=e.ns.qualify(y),y.local?P.getAttributeNS(y.space,y.local):P.getAttribute(y)}for(S in y)this.each(at(S,y[S]));return this}return this.each(at(y,S))};function at(y,S){y=e.ns.qualify(y);function P(){this.removeAttribute(y)}function B(){this.removeAttributeNS(y.space,y.local)}function V(){this.setAttribute(y,S)}function Z(){this.setAttributeNS(y.space,y.local,S)}function $(){var ae=S.apply(this,arguments);ae==null?this.removeAttribute(y):this.setAttribute(y,ae)}function X(){var ae=S.apply(this,arguments);ae==null?this.removeAttributeNS(y.space,y.local):this.setAttributeNS(y.space,y.local,ae)}return S==null?y.local?B:P:typeof S=="function"?y.local?X:$:y.local?Z:V}function Je(y){return y.trim().replace(/\s+/g," ")}ft.classed=function(y,S){if(arguments.length<2){if(typeof y=="string"){var P=this.node(),B=(y=xt(y)).length,V=-1;if(S=P.classList){for(;++V=0;)(Z=P[B])&&(V&&V!==Z.nextSibling&&V.parentNode.insertBefore(Z,V),V=Z);return this},ft.sort=function(y){y=ut.apply(this,arguments);for(var S=-1,P=this.length;++S=S&&(S=V+1);!(ae=$[S])&&++S0&&(y=y.slice(0,V));var $=Nt.get(y);$&&(y=$,Z=Ht);function X(){var xe=this[B];xe&&(this.removeEventListener(y,xe,xe.$),delete this[B])}function ae(){var xe=Z(S,r(arguments));X.call(this),this.addEventListener(y,this[B]=xe,xe.$=P),xe._=S}function ge(){var xe=new RegExp("^__on([^.]+)"+e.requote(y)+"$"),ze;for(var Pe in this)if(ze=Pe.match(xe)){var $e=this[Pe];this.removeEventListener(ze[1],$e,$e.$),delete this[Pe]}}return V?S?ae:X:S?me:ge}var Nt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Nt.forEach(function(y){"on"+y in i&&Nt.remove(y)});function er(y,S){return function(P){var B=e.event;e.event=P,S[0]=this.__data__;try{y.apply(this,S)}finally{e.event=B}}}function Ht(y,S){var P=er(y,S);return function(B){var V=this,Z=B.relatedTarget;(!Z||Z!==V&&!(Z.compareDocumentPosition(V)&8))&&P.call(V,B)}}var Gt,hr=0;function yr(y){var S=".dragsuppress-"+ ++hr,P="click"+S,B=e.select(s(y)).on("touchmove"+S,Xe).on("dragstart"+S,Xe).on("selectstart"+S,Xe);if(Gt==null&&(Gt="onselectstart"in y?!1:Se(y.style,"userSelect")),Gt){var V=a(y).style,Z=V[Gt];V[Gt]="none"}return function($){if(B.on(S,null),Gt&&(V[Gt]=Z),$){var X=function(){B.on(P,null)};B.on(P,function(){Xe(),X()},!0),setTimeout(X,0)}}}e.mouse=function(y){return Et(y,it())};var mr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Et(y,S){S.changedTouches&&(S=S.changedTouches[0]);var P=y.ownerSVGElement||y;if(P.createSVGPoint){var B=P.createSVGPoint();if(mr<0){var V=s(y);if(V.scrollX||V.scrollY){P=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=P[0][0].getScreenCTM();mr=!(Z.f||Z.e),P.remove()}}return mr?(B.x=S.pageX,B.y=S.pageY):(B.x=S.clientX,B.y=S.clientY),B=B.matrixTransform(y.getScreenCTM().inverse()),[B.x,B.y]}var $=y.getBoundingClientRect();return[S.clientX-$.left-y.clientLeft,S.clientY-$.top-y.clientTop]}e.touch=function(y,S,P){if(arguments.length<3&&(P=S,S=it().changedTouches),S){for(var B=0,V=S.length,Z;B0?1:y<0?-1:0}function ai(y,S,P){return(S[0]-y[0])*(P[1]-y[1])-(S[1]-y[1])*(P[0]-y[0])}function bi(y){return y>1?0:y<-1?Tt:Math.acos(y)}function hi(y){return y>1?Tr:y<-1?-Tr:Math.asin(y)}function Hi(y){return((y=Math.exp(y))-1/y)/2}function Ii(y){return((y=Math.exp(y))+1/y)/2}function _n(y){return((y=Math.exp(2*y))-1)/(y+1)}function an(y){return(y=Math.sin(y/2))*y}var Gi=Math.SQRT2,ma=2,nn=4;e.interpolateZoom=function(y,S){var P=y[0],B=y[1],V=y[2],Z=S[0],$=S[1],X=S[2],ae=Z-P,ge=$-B,xe=ae*ae+ge*ge,ze,Pe;if(xe0&&(Jt=Jt.transition().duration($)),Jt.call(ot.event)}function zr(){He&&He.domain(Ie.range().map(function(Jt){return(Jt-y.x)/y.k}).map(Ie.invert)),ht&&ht.domain(Qe.range().map(function(Jt){return(Jt-y.y)/y.k}).map(Qe.invert))}function Rr(Jt){X++||Jt({type:"zoomstart"})}function ta(Jt){zr(),Jt({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function Vr(Jt){--X||(Jt({type:"zoomend"}),P=null)}function Qr(){var Jt=this,Kr=st.of(Jt,arguments),oa=0,sa=e.select(s(Jt)).on(ge,$i).on(xe,xi),Ei=je(e.mouse(Jt)),Ui=yr(Jt);fh.call(Jt),Rr(Kr);function $i(){oa=1,cr(e.mouse(Jt),Ei),ta(Kr)}function xi(){sa.on(ge,null).on(xe,null),Ui(oa),Vr(Kr)}}function qa(){var Jt=this,Kr=st.of(Jt,arguments),oa={},sa=0,Ei,Ui=".zoom-"+e.event.changedTouches[0].identifier,$i="touchmove"+Ui,xi="touchend"+Ui,wn=[],Ar=e.select(Jt),Hr=yr(Jt);Ti(),Rr(Kr),Ar.on(ae,null).on(Pe,Ti);function Fi(){var pn=e.touches(Jt);return Ei=y.k,pn.forEach(function(di){di.identifier in oa&&(oa[di.identifier]=je(di))}),pn}function Ti(){var pn=e.event.target;e.select(pn).on($i,fo).on(xi,qn),wn.push(pn);for(var di=e.event.changedTouches,Jo=0,co=di.length;Jo1){var Ta=fi[0],li=fi[1],Bl=Ta[0]-li[0],Kv=Ta[1]-li[1];sa=Bl*Bl+Kv*Kv}}function fo(){var pn=e.touches(Jt),di,Jo,co,fi;fh.call(Jt);for(var bf=0,Ta=pn.length;bf1?1:S,P=P<0?0:P>1?1:P,V=P<=.5?P*(1+S):P+S-P*S,B=2*P-V;function Z(X){return X>360?X-=360:X<0&&(X+=360),X<60?B+(V-B)*X/60:X<180?V:X<240?B+(V-B)*(240-X)/60:B}function $(X){return Math.round(Z(X)*255)}return new ua($(y+120),$(y),$(y-120))}e.hcl=ue;function ue(y,S,P){return this instanceof ue?(this.h=+y,this.c=+S,void(this.l=+P)):arguments.length<2?y instanceof ue?new ue(y.h,y.c,y.l):y instanceof rt?Sr(y.l,y.a,y.b):Sr((y=nr((y=e.rgb(y)).r,y.g,y.b)).l,y.a,y.b):new ue(y,S,P)}var Le=ue.prototype=new Wr;Le.brighter=function(y){return new ue(this.h,this.c,Math.min(100,this.l+Ye*(arguments.length?y:1)))},Le.darker=function(y){return new ue(this.h,this.c,Math.max(0,this.l-Ye*(arguments.length?y:1)))},Le.rgb=function(){return Ne(this.h,this.c,this.l).rgb()};function Ne(y,S,P){return isNaN(y)&&(y=0),isNaN(S)&&(S=0),new rt(P,Math.cos(y*=Gr)*S,Math.sin(y)*S)}e.lab=rt;function rt(y,S,P){return this instanceof rt?(this.l=+y,this.a=+S,void(this.b=+P)):arguments.length<2?y instanceof rt?new rt(y.l,y.a,y.b):y instanceof ue?Ne(y.h,y.c,y.l):nr((y=ua(y)).r,y.g,y.b):new rt(y,S,P)}var Ye=18,yt=.95047,Mt=1,Rt=1.08883,tr=rt.prototype=new Wr;tr.brighter=function(y){return new rt(Math.min(100,this.l+Ye*(arguments.length?y:1)),this.a,this.b)},tr.darker=function(y){return new rt(Math.max(0,this.l-Ye*(arguments.length?y:1)),this.a,this.b)},tr.rgb=function(){return Xt(this.l,this.a,this.b)};function Xt(y,S,P){var B=(y+16)/116,V=B+S/500,Z=B-P/200;return V=Zr(V)*yt,B=Zr(B)*Mt,Z=Zr(Z)*Rt,new ua(ca(3.2404542*V-1.5371385*B-.4985314*Z),ca(-.969266*V+1.8760108*B+.041556*Z),ca(.0556434*V-.2040259*B+1.0572252*Z))}function Sr(y,S,P){return y>0?new ue(Math.atan2(P,S)*pa,Math.sqrt(S*S+P*P),y):new ue(NaN,NaN,y)}function Zr(y){return y>.206893034?y*y*y:(y-4/29)/7.787037}function Or(y){return y>.008856?Math.pow(y,1/3):7.787037*y+4/29}function ca(y){return Math.round(255*(y<=.00304?12.92*y:1.055*Math.pow(y,1/2.4)-.055))}e.rgb=ua;function ua(y,S,P){return this instanceof ua?(this.r=~~y,this.g=~~S,void(this.b=~~P)):arguments.length<2?y instanceof ua?new ua(y.r,y.g,y.b):ea(""+y,ua,se):new ua(y,S,P)}function Fa(y){return new ua(y>>16,y>>8&255,y&255)}function ti(y){return Fa(y)+""}var Yr=ua.prototype=new Wr;Yr.brighter=function(y){y=Math.pow(.7,arguments.length?y:1);var S=this.r,P=this.g,B=this.b,V=30;return!S&&!P&&!B?new ua(V,V,V):(S&&S>4,B=B>>4|B,V=ae&240,V=V>>4|V,Z=ae&15,Z=Z<<4|Z):y.length===7&&(B=(ae&16711680)>>16,V=(ae&65280)>>8,Z=ae&255)),S(B,V,Z))}function ga(y,S,P){var B=Math.min(y/=255,S/=255,P/=255),V=Math.max(y,S,P),Z=V-B,$,X,ae=(V+B)/2;return Z?(X=ae<.5?Z/(V+B):Z/(2-V-B),y==V?$=(S-P)/Z+(S0&&ae<1?0:$),new le($,X,ae)}function nr(y,S,P){y=wi(y),S=wi(S),P=wi(P);var B=Or((.4124564*y+.3575761*S+.1804375*P)/yt),V=Or((.2126729*y+.7151522*S+.072175*P)/Mt),Z=Or((.0193339*y+.119192*S+.9503041*P)/Rt);return rt(116*V-16,500*(B-V),200*(V-Z))}function wi(y){return(y/=255)<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function Ca(y){var S=parseFloat(y);return y.charAt(y.length-1)==="%"?Math.round(S*2.55):S}var oi=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});oi.forEach(function(y,S){oi.set(y,Fa(S))});function fa(y){return typeof y=="function"?y:function(){return y}}e.functor=fa,e.xhr=In(Te);function In(y){return function(S,P,B){return arguments.length===2&&typeof P=="function"&&(B=P,P=null),Co(S,P,y,B)}}function Co(y,S,P,B){var V={},Z=e.dispatch("beforesend","progress","load","error"),$={},X=new XMLHttpRequest,ae=null;self.XDomainRequest&&!("withCredentials"in X)&&/^(http(s)?:)?\/\//.test(y)&&(X=new XDomainRequest),"onload"in X?X.onload=X.onerror=ge:X.onreadystatechange=function(){X.readyState>3&&ge()};function ge(){var xe=X.status,ze;if(!xe&&Za(X)||xe>=200&&xe<300||xe===304){try{ze=P.call(V,X)}catch(Pe){Z.error.call(V,Pe);return}Z.load.call(V,ze)}else Z.error.call(V,X)}return X.onprogress=function(xe){var ze=e.event;e.event=xe;try{Z.progress.call(V,X)}finally{e.event=ze}},V.header=function(xe,ze){return xe=(xe+"").toLowerCase(),arguments.length<2?$[xe]:(ze==null?delete $[xe]:$[xe]=ze+"",V)},V.mimeType=function(xe){return arguments.length?(S=xe==null?null:xe+"",V):S},V.responseType=function(xe){return arguments.length?(ae=xe,V):ae},V.response=function(xe){return P=xe,V},["get","post"].forEach(function(xe){V[xe]=function(){return V.send.apply(V,[xe].concat(r(arguments)))}}),V.send=function(xe,ze,Pe){if(arguments.length===2&&typeof ze=="function"&&(Pe=ze,ze=null),X.open(xe,y,!0),S!=null&&!("accept"in $)&&($.accept=S+",*/*"),X.setRequestHeader)for(var $e in $)X.setRequestHeader($e,$[$e]);return S!=null&&X.overrideMimeType&&X.overrideMimeType(S),ae!=null&&(X.responseType=ae),Pe!=null&&V.on("error",Pe).on("load",function(st){Pe(null,st)}),Z.beforesend.call(V,X),X.send(ze==null?null:ze),V},V.abort=function(){return X.abort(),V},e.rebind(V,Z,"on"),B==null?V:V.get(bs(B))}function bs(y){return y.length===1?function(S,P){y(S==null?P:null)}:y}function Za(y){var S=y.responseType;return S&&S!=="text"?y.response:y.responseText}e.dsv=function(y,S){var P=new RegExp('["'+y+` ]`),B=y.charCodeAt(0);function V(ge,xe,ze){arguments.length<3&&(ze=xe,xe=null);var Pe=Co(ge,S,xe==null?Z:$(xe),ze);return Pe.row=function($e){return arguments.length?Pe.response((xe=$e)==null?Z:$($e)):xe},Pe}function Z(ge){return V.parse(ge.responseText)}function $(ge){return function(xe){return V.parse(xe.responseText,ge)}}V.parse=function(ge,xe){var ze;return V.parseRows(ge,function(Pe,$e){if(ze)return ze(Pe,$e-1);var st=function(Ie){for(var He={},Qe=Pe.length,ht=0;ht=st)return Pe;if(ht)return ht=!1,ze;var Zt=Ie;if(ge.charCodeAt(Zt)===34){for(var or=Zt;or++24?(isFinite(S)&&(clearTimeout(pl),pl=setTimeout(Zc,S)),Oi=0):(Oi=1,fp(Zc))}e.timer.flush=function(){xv(),bv()};function xv(){for(var y=Date.now(),S=Kn;S;)y>=S.t&&S.c(y-S.t)&&(S.c=null),S=S.n;return y}function bv(){for(var y,S=Kn,P=1/0;S;)S.c?(S.t=0;--X)Ie.push(V[ge[ze[X]][2]]);for(X=+$e;X1&&ai(y[P[B-2]],y[P[B-1]],y[V])<=0;)--B;P[B++]=V}return P.slice(0,B)}function ef(y,S){return y[0]-S[0]||y[1]-S[1]}e.geom.polygon=function(y){return Xe(y,Qf),y};var Qf=e.geom.polygon.prototype=[];Qf.area=function(){for(var y=-1,S=this.length,P,B=this[S-1],V=0;++yUe)X=X.L;else if($=S-on(X,P),$>Ue){if(!X.R){B=X;break}X=X.R}else{Z>-Ue?(B=X.P,V=X):$>-Ue?(B=X,V=X.N):B=V=X;break}var ae=lo(y);if(mu.insert(B,ae),!(!B&&!V)){if(B===V){ba(B),V=lo(B.site),mu.insert(ae,V),ae.edge=V.edge=Xs(B.site,ae.site),Er(B),Er(V);return}if(!V){ae.edge=Xs(B.site,ae.site);return}ba(B),ba(V);var ge=B.site,xe=ge.x,ze=ge.y,Pe=y.x-xe,$e=y.y-ze,st=V.site,Ie=st.x-xe,He=st.y-ze,Qe=2*(Pe*He-$e*Ie),ht=Pe*Pe+$e*$e,ot=Ie*Ie+He*He,je={x:(He*ht-$e*ot)/Qe+xe,y:(Pe*ot-Ie*ht)/Qe+ze};fs(V.edge,ge,st,je),ae.edge=Xs(ge,y,null,je),V.edge=Xs(y,st,null,je),Er(B),Er(V)}}function yu(y,S){var P=y.site,B=P.x,V=P.y,Z=V-S;if(!Z)return B;var $=y.P;if(!$)return-1/0;P=$.site;var X=P.x,ae=P.y,ge=ae-S;if(!ge)return X;var xe=X-B,ze=1/Z-1/ge,Pe=xe/ge;return ze?(-Pe+Math.sqrt(Pe*Pe-2*ze*(xe*xe/(-2*ge)-ae+ge/2+V-Z/2)))/ze+B:(B+X)/2}function on(y,S){var P=y.N;if(P)return yu(P,S);var B=y.site;return B.y===S?B.x:1/0}function gl(y){this.site=y,this.edges=[]}gl.prototype.prepare=function(){for(var y=this.edges,S=y.length,P;S--;)P=y[S].edge,(!P.b||!P.a)&&y.splice(S,1);return y.sort(rf),y.length};function ws(y){for(var S=y[0][0],P=y[1][0],B=y[0][1],V=y[1][1],Z,$,X,ae,ge=Zo,xe=ge.length,ze,Pe,$e,st,Ie,He;xe--;)if(ze=ge[xe],!(!ze||!ze.prepare()))for($e=ze.edges,st=$e.length,Pe=0;PeUe||I(ae-$)>Ue)&&($e.splice(Pe,0,new xl(gu(ze.site,He,I(X-S)Ue?{x:S,y:I(Z-S)Ue?{x:I($-V)Ue?{x:P,y:I(Z-P)Ue?{x:I($-B)=-wt)){var Pe=ae*ae+ge*ge,$e=xe*xe+He*He,st=(He*Pe-ge*$e)/ze,Ie=(ae*$e-xe*Pe)/ze,He=Ie+X,Qe=Tv.pop()||new af;Qe.arc=y,Qe.site=V,Qe.x=st+$,Qe.y=He+Math.sqrt(st*st+Ie*Ie),Qe.cy=He,y.circle=Qe;for(var ht=null,ot=tf._;ot;)if(Qe.y0)){if(Ie/=$e,$e<0){if(Ie0){if(Ie>Pe)return;Ie>ze&&(ze=Ie)}if(Ie=P-X,!(!$e&&Ie<0)){if(Ie/=$e,$e<0){if(Ie>Pe)return;Ie>ze&&(ze=Ie)}else if($e>0){if(Ie0)){if(Ie/=st,st<0){if(Ie0){if(Ie>Pe)return;Ie>ze&&(ze=Ie)}if(Ie=B-ae,!(!st&&Ie<0)){if(Ie/=st,st<0){if(Ie>Pe)return;Ie>ze&&(ze=Ie)}else if(st>0){if(Ie0&&(V.a={x:X+ze*$e,y:ae+ze*st}),Pe<1&&(V.b={x:X+Pe*$e,y:ae+Pe*st}),V}}}}}}function Ts(y){for(var S=yl,P=wa(y[0][0],y[0][1],y[1][0],y[1][1]),B=S.length,V;B--;)V=S[B],(!_l(V,y)||!P(V)||I(V.a.x-V.b.x)=Z)return;if(xe>Pe){if(!B)B={x:st,y:$};else if(B.y>=X)return;P={x:st,y:X}}else{if(!B)B={x:st,y:X};else if(B.y<$)return;P={x:st,y:$}}}else if(He=(xe-Pe)/($e-ze),Qe=Ie-He*st,He<-1||He>1)if(xe>Pe){if(!B)B={x:($-Qe)/He,y:$};else if(B.y>=X)return;P={x:(X-Qe)/He,y:X}}else{if(!B)B={x:(X-Qe)/He,y:X};else if(B.y<$)return;P={x:($-Qe)/He,y:$}}else if(ze<$e){if(!B)B={x:V,y:He*V+Qe};else if(B.x>=Z)return;P={x:Z,y:He*Z+Qe}}else{if(!B)B={x:Z,y:He*Z+Qe};else if(B.x=xe&&Qe.x<=Pe&&Qe.y>=ze&&Qe.y<=$e?[[xe,$e],[Pe,$e],[Pe,ze],[xe,ze]]:[];ht.point=ae[Ie]}),ge}function X(ae){return ae.map(function(ge,xe){return{x:Math.round(B(ge,xe)/Ue)*Ue,y:Math.round(V(ge,xe)/Ue)*Ue,i:xe}})}return $.links=function(ae){return _u(X(ae)).edges.filter(function(ge){return ge.l&&ge.r}).map(function(ge){return{source:ae[ge.l.i],target:ae[ge.r.i]}})},$.triangles=function(ae){var ge=[];return _u(X(ae)).cells.forEach(function(xe,ze){for(var Pe=xe.site,$e=xe.edges.sort(rf),st=-1,Ie=$e.length,He,Qe,ht=$e[Ie-1].edge,ot=ht.l===Pe?ht.r:ht.l;++stot&&(ot=xe.x),xe.y>je&&(je=xe.y),$e.push(xe.x),st.push(xe.y);else for(Ie=0;Ieot&&(ot=Zt),or>je&&(je=or),$e.push(Zt),st.push(or)}var cr=ot-Qe,ur=je-ht;cr>ur?je=ht+cr:ot=Qe+ur;function zr(Vr,Qr,qa,$a,Ka,Jt,Kr,oa){if(!(isNaN(qa)||isNaN($a)))if(Vr.leaf){var sa=Vr.x,Ei=Vr.y;if(sa!=null)if(I(sa-qa)+I(Ei-$a)<.01)Rr(Vr,Qr,qa,$a,Ka,Jt,Kr,oa);else{var Ui=Vr.point;Vr.x=Vr.y=Vr.point=null,Rr(Vr,Ui,sa,Ei,Ka,Jt,Kr,oa),Rr(Vr,Qr,qa,$a,Ka,Jt,Kr,oa)}else Vr.x=qa,Vr.y=$a,Vr.point=Qr}else Rr(Vr,Qr,qa,$a,Ka,Jt,Kr,oa)}function Rr(Vr,Qr,qa,$a,Ka,Jt,Kr,oa){var sa=(Ka+Kr)*.5,Ei=(Jt+oa)*.5,Ui=qa>=sa,$i=$a>=Ei,xi=$i<<1|Ui;Vr.leaf=!1,Vr=Vr.nodes[xi]||(Vr.nodes[xi]=xn()),Ui?Ka=sa:Kr=sa,$i?Jt=Ei:oa=Ei,zr(Vr,Qr,qa,$a,Ka,Jt,Kr,oa)}var ta=xn();if(ta.add=function(Vr){zr(ta,Vr,+ze(Vr,++Ie),+Pe(Vr,Ie),Qe,ht,ot,je)},ta.visit=function(Vr){Rn(Vr,ta,Qe,ht,ot,je)},ta.find=function(Vr){return dp(ta,Vr[0],Vr[1],Qe,ht,ot,je)},Ie=-1,S==null){for(;++IeZ||Pe>$||$e=Zt,ur=P>=or,zr=ur<<1|cr,Rr=zr+4;zrP&&(Z=S.slice(P,Z),X[$]?X[$]+=Z:X[++$]=Z),(B=B[0])===(V=V[0])?X[$]?X[$]+=V:X[++$]=V:(X[++$]=null,ae.push({i:$,x:Eo(B,V)})),P=tc.lastIndex;return P=0&&!(B=e.interpolators[P](y,S)););return B}e.interpolators=[function(y,S){var P=typeof S;return(P==="string"?oi.has(S.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(S)?nf:Yo:S instanceof Xr?nf:Array.isArray(S)?Wo:P==="object"&&isNaN(S)?sn:Eo)(y,S)}],e.interpolateArray=Wo;function Wo(y,S){var P=[],B=[],V=y.length,Z=S.length,$=Math.min(y.length,S.length),X;for(X=0;X<$;++X)P.push(ln(y[X],S[X]));for(;X=0?y.slice(0,S):y,B=S>=0?y.slice(S+1):"in";return P=Im.get(P)||js,B=Xo.get(B)||Te,Rm(B(P.apply(null,t.call(arguments,1))))};function Rm(y){return function(S){return S<=0?0:S>=1?1:y(S)}}function Js(y){return function(S){return 1-y(1-S)}}function Fn(y){return function(S){return .5*(S<.5?y(2*S):2-y(2-2*S))}}function Fm(y){return y*y}function bl(y){return y*y*y}function wl(y){if(y<=0)return 0;if(y>=1)return 1;var S=y*y,P=S*y;return 4*(y<.5?P:3*(y-S)+P-.75)}function Sv(y){return function(S){return Math.pow(S,y)}}function qm(y){return 1-Math.cos(y*Tr)}function Nm(y){return Math.pow(2,10*(y-1))}function Wc(y){return 1-Math.sqrt(1-y*y)}function Bm(y,S){var P;return arguments.length<2&&(S=.45),arguments.length?P=S/vr*Math.asin(1/y):(y=1,P=S/4),function(B){return 1+y*Math.pow(2,-10*B)*Math.sin((B-P)*vr/S)}}function Om(y){return y||(y=1.70158),function(S){return S*S*((y+1)*S-y)}}function Um(y){return y<1/2.75?7.5625*y*y:y<2/2.75?7.5625*(y-=1.5/2.75)*y+.75:y<2.5/2.75?7.5625*(y-=2.25/2.75)*y+.9375:7.5625*(y-=2.625/2.75)*y+.984375}e.interpolateHcl=kv;function kv(y,S){y=e.hcl(y),S=e.hcl(S);var P=y.h,B=y.c,V=y.l,Z=S.h-P,$=S.c-B,X=S.l-V;return isNaN($)&&($=0,B=isNaN(B)?S.c:B),isNaN(Z)?(Z=0,P=isNaN(P)?S.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return Ne(P+Z*ae,B+$*ae,V+X*ae)+""}}e.interpolateHsl=Vm;function Vm(y,S){y=e.hsl(y),S=e.hsl(S);var P=y.h,B=y.s,V=y.l,Z=S.h-P,$=S.s-B,X=S.l-V;return isNaN($)&&($=0,B=isNaN(B)?S.s:B),isNaN(Z)?(Z=0,P=isNaN(P)?S.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return se(P+Z*ae,B+$*ae,V+X*ae)+""}}e.interpolateLab=Hm;function Hm(y,S){y=e.lab(y),S=e.lab(S);var P=y.l,B=y.a,V=y.b,Z=S.l-P,$=S.a-B,X=S.b-V;return function(ae){return Xt(P+Z*ae,B+$*ae,V+X*ae)+""}}e.interpolateRound=Cv;function Cv(y,S){return S-=y,function(P){return Math.round(y+S*P)}}e.transform=function(y){var S=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(P){if(P!=null){S.setAttribute("transform",P);var B=S.transform.baseVal.consolidate()}return new pp(B?B.matrix:Lv)})(y)};function pp(y){var S=[y.a,y.b],P=[y.c,y.d],B=Ev(S),V=mp(S,P),Z=Ev(Gm(P,S,-V))||0;S[0]*P[1]180?S+=360:S-y>180&&(y+=360),B.push({i:P.push(xu(P)+"rotate(",null,")")-2,x:Eo(y,S)})):S&&P.push(xu(P)+"rotate("+S+")")}function gp(y,S,P,B){y!==S?B.push({i:P.push(xu(P)+"skewX(",null,")")-2,x:Eo(y,S)}):S&&P.push(xu(P)+"skewX("+S+")")}function _p(y,S,P,B){if(y[0]!==S[0]||y[1]!==S[1]){var V=P.push(xu(P)+"scale(",null,",",null,")");B.push({i:V-4,x:Eo(y[0],S[0])},{i:V-2,x:Eo(y[1],S[1])})}else(S[0]!==1||S[1]!==1)&&P.push(xu(P)+"scale("+S+")")}function xp(y,S){var P=[],B=[];return y=e.transform(y),S=e.transform(S),yp(y.translate,S.translate,P,B),Zm(y.rotate,S.rotate,P,B),gp(y.skew,S.skew,P,B),_p(y.scale,S.scale,P,B),y=S=null,function(V){for(var Z=-1,$=B.length,X;++Z<$;)P[(X=B[Z]).i]=X.x(V);return P.join("")}}function Ym(y,S){return S=(S-=y=+y)||1/S,function(P){return(P-y)/S}}function hs(y,S){return S=(S-=y=+y)||1/S,function(P){return Math.max(0,Math.min(1,(P-y)/S))}}e.layout={},e.layout.bundle=function(){return function(y){for(var S=[],P=-1,B=y.length;++P0?Z=je:(P.c=null,P.t=NaN,P=null,S.end({type:"end",alpha:Z=0})):je>0&&(S.start({type:"start",alpha:Z=je}),P=Gc(y.tick)),y):Z},y.start=function(){var je,Zt=$e.length,or=st.length,cr=B[0],ur=B[1],zr,Rr;for(je=0;je=0;)Z.push(xe=ge[ae]),xe.parent=X,xe.depth=X.depth+1;P&&(X.value=0),X.children=ge}else P&&(X.value=+P.call(B,X,X.depth)||0),delete X.children;return vs(V,function(ze){var Pe,$e;y&&(Pe=ze.children)&&Pe.sort(y),P&&($e=ze.parent)&&($e.value+=ze.value)}),$}return B.sort=function(V){return arguments.length?(y=V,B):y},B.children=function(V){return arguments.length?(S=V,B):S},B.value=function(V){return arguments.length?(P=V,B):P},B.revalue=function(V){return P&&(of(V,function(Z){Z.children&&(Z.value=0)}),vs(V,function(Z){var $;Z.children||(Z.value=+P.call(B,Z,Z.depth)||0),($=Z.parent)&&($.value+=Z.value)})),V},B};function Sl(y,S){return e.rebind(y,S,"sort","children","value"),y.nodes=y,y.links=Tp,y}function of(y,S){for(var P=[y];(y=P.pop())!=null;)if(S(y),(V=y.children)&&(B=V.length))for(var B,V;--B>=0;)P.push(V[B])}function vs(y,S){for(var P=[y],B=[];(y=P.pop())!=null;)if(B.push(y),($=y.children)&&(Z=$.length))for(var V=-1,Z,$;++VV&&(V=X),B.push(X)}for($=0;$B&&(P=S,B=V);return P}function Ri(y){return y.reduce(Km,0)}function Km(y,S){return y+S[1]}e.layout.histogram=function(){var y=!0,S=Number,P=Sp,B=Qc;function V(Z,Pe){for(var X=[],ae=Z.map(S,this),ge=P.call(this,ae,Pe),xe=B.call(this,ge,ae,Pe),ze,Pe=-1,$e=ae.length,st=xe.length-1,Ie=y?1:1/$e,He;++Pe0)for(Pe=-1;++Pe<$e;)He=ae[Pe],He>=ge[0]&&He<=ge[1]&&(ze=X[e.bisect(xe,He,1,st)-1],ze.y+=Ie,ze.push(Z[Pe]));return X}return V.value=function(Z){return arguments.length?(S=Z,V):S},V.range=function(Z){return arguments.length?(P=fa(Z),V):P},V.bins=function(Z){return arguments.length?(B=typeof Z=="number"?function($){return Rv($,Z)}:fa(Z),V):B},V.frequency=function(Z){return arguments.length?(y=!!Z,V):y},V};function Qc(y,S){return Rv(y,Math.ceil(Math.log(S.length)/Math.LN2+1))}function Rv(y,S){for(var P=-1,B=+y[0],V=(y[1]-B)/S,Z=[];++P<=S;)Z[P]=V*P+B;return Z}function Sp(y){return[e.min(y),e.max(y)]}e.layout.pack=function(){var y=e.layout.hierarchy().sort(lf),S=0,P=[1,1],B;function V(Z,$){var X=y.call(this,Z,$),ae=X[0],ge=P[0],xe=P[1],ze=B==null?Math.sqrt:typeof B=="function"?B:function(){return B};if(ae.x=ae.y=0,vs(ae,function($e){$e.r=+ze($e.value)}),vs(ae,ac),S){var Pe=S*(B?1:Math.max(2*ae.r/ge,2*ae.r/xe))/2;vs(ae,function($e){$e.r+=Pe}),vs(ae,ac),vs(ae,function($e){$e.r-=Pe})}return Cl(ae,ge/2,xe/2,B?1:1/Math.max(2*ae.r/ge,2*ae.r/xe)),X}return V.size=function(Z){return arguments.length?(P=Z,V):P},V.radius=function(Z){return arguments.length?(B=Z==null||typeof Z=="function"?Z:+Z,V):B},V.padding=function(Z){return arguments.length?(S=+Z,V):S},Sl(V,y)};function lf(y,S){return y.value-S.value}function bu(y,S){var P=y._pack_next;y._pack_next=S,S._pack_prev=y,S._pack_next=P,P._pack_prev=S}function Fv(y,S){y._pack_next=S,S._pack_prev=y}function bn(y,S){var P=S.x-y.x,B=S.y-y.y,V=y.r+S.r;return .999*V*V>P*P+B*B}function ac(y){if(!(S=y.children)||!(Pe=S.length))return;var S,P=1/0,B=-1/0,V=1/0,Z=-1/0,$,X,ae,ge,xe,ze,Pe;function $e(je){P=Math.min(je.x-je.r,P),B=Math.max(je.x+je.r,B),V=Math.min(je.y-je.r,V),Z=Math.max(je.y+je.r,Z)}if(S.forEach(Ks),$=S[0],$.x=-$.r,$.y=0,$e($),Pe>1&&(X=S[1],X.x=X.r,X.y=0,$e(X),Pe>2))for(ae=S[2],El($,X,ae),$e(ae),bu($,ae),$._pack_prev=ae,bu(ae,X),X=$._pack_next,ge=3;geHe.x&&(He=Zt),Zt.depth>Qe.depth&&(Qe=Zt)});var ht=S(Ie,He)/2-Ie.x,ot=P[0]/(He.x+S(He,Ie)/2+ht),je=P[1]/(Qe.depth||1);of($e,function(Zt){Zt.x=(Zt.x+ht)*ot,Zt.y=Zt.depth*je})}return Pe}function Z(xe){for(var ze={A:null,children:[xe]},Pe=[ze],$e;($e=Pe.pop())!=null;)for(var st=$e.children,Ie,He=0,Qe=st.length;He0&&(Ll(Qm(Ie,xe,Pe),xe,Zt),Qe+=Zt,ht+=Zt),ot+=Ie.m,Qe+=$e.m,je+=He.m,ht+=st.m;Ie&&!ks(st)&&(st.t=Ie,st.m+=ot-ht),$e&&!Ss(He)&&(He.t=$e,He.m+=Qe-je,Pe=xe)}return Pe}function ge(xe){xe.x*=P[0],xe.y=xe.depth*P[1]}return V.separation=function(xe){return arguments.length?(S=xe,V):S},V.size=function(xe){return arguments.length?(B=(P=xe)==null?ge:null,V):B?null:P},V.nodeSize=function(xe){return arguments.length?(B=(P=xe)==null?null:ge,V):B?P:null},Sl(V,y)};function Qs(y,S){return y.parent==S.parent?1:2}function Ss(y){var S=y.children;return S.length?S[0]:y.t}function ks(y){var S=y.children,P;return(P=S.length)?S[P-1]:y.t}function Ll(y,S,P){var B=P/(S.i-y.i);S.c-=B,S.s+=P,y.c+=B,S.z+=P,S.m+=P}function kp(y){for(var S=0,P=0,B=y.children,V=B.length,Z;--V>=0;)Z=B[V],Z.z+=S,Z.m+=S,S+=Z.s+(P+=Z.c)}function Qm(y,S,P){return y.a.parent===S.parent?y.a:P}e.layout.cluster=function(){var y=e.layout.hierarchy().sort(null).value(null),S=Qs,P=[1,1],B=!1;function V(Z,$){var X=y.call(this,Z,$),ae=X[0],ge,xe=0;vs(ae,function(Ie){var He=Ie.children;He&&He.length?(Ie.x=ey(He),Ie.y=$m(He)):(Ie.x=ge?xe+=S(Ie,ge):0,Ie.y=0,ge=Ie)});var ze=Cp(ae),Pe=Ep(ae),$e=ze.x-S(ze,Pe)/2,st=Pe.x+S(Pe,ze)/2;return vs(ae,B?function(Ie){Ie.x=(Ie.x-ae.x)*P[0],Ie.y=(ae.y-Ie.y)*P[1]}:function(Ie){Ie.x=(Ie.x-$e)/(st-$e)*P[0],Ie.y=(1-(ae.y?Ie.y/ae.y:1))*P[1]}),X}return V.separation=function(Z){return arguments.length?(S=Z,V):S},V.size=function(Z){return arguments.length?(B=(P=Z)==null,V):B?null:P},V.nodeSize=function(Z){return arguments.length?(B=(P=Z)!=null,V):B?P:null},Sl(V,y)};function $m(y){return 1+e.max(y,function(S){return S.y})}function ey(y){return y.reduce(function(S,P){return S+P.x},0)/y.length}function Cp(y){var S=y.children;return S&&S.length?Cp(S[0]):y}function Ep(y){var S=y.children,P;return S&&(P=S.length)?Ep(S[P-1]):y}e.layout.treemap=function(){var y=e.layout.hierarchy(),S=Math.round,P=[1,1],B=null,V=qv,Z=!1,$,X="squarify",ae=.5*(1+Math.sqrt(5));function ge(Ie,He){for(var Qe=-1,ht=Ie.length,ot,je;++Qe0;)ht.push(je=ot[ur-1]),ht.area+=je.area,X!=="squarify"||(or=Pe(ht,cr))<=Zt?(ot.pop(),Zt=or):(ht.area-=ht.pop().area,$e(ht,cr,Qe,!1),cr=Math.min(Qe.dx,Qe.dy),ht.length=ht.area=0,Zt=1/0);ht.length&&($e(ht,cr,Qe,!0),ht.length=ht.area=0),He.forEach(xe)}}function ze(Ie){var He=Ie.children;if(He&&He.length){var Qe=V(Ie),ht=He.slice(),ot,je=[];for(ge(ht,Qe.dx*Qe.dy/Ie.value),je.area=0;ot=ht.pop();)je.push(ot),je.area+=ot.area,ot.z!=null&&($e(je,ot.z?Qe.dx:Qe.dy,Qe,!ht.length),je.length=je.area=0);He.forEach(ze)}}function Pe(Ie,He){for(var Qe=Ie.area,ht,ot=0,je=1/0,Zt=-1,or=Ie.length;++Ztot&&(ot=ht));return Qe*=Qe,He*=He,Qe?Math.max(He*ot*ae/Qe,Qe/(He*je*ae)):1/0}function $e(Ie,He,Qe,ht){var ot=-1,je=Ie.length,Zt=Qe.x,or=Qe.y,cr=He?S(Ie.area/He):0,ur;if(He==Qe.dx){for((ht||cr>Qe.dy)&&(cr=Qe.dy);++otQe.dx)&&(cr=Qe.dx);++ot1);return y+S*B*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var y=e.random.normal.apply(e,arguments);return function(){return Math.exp(y())}},bates:function(y){var S=e.random.irwinHall(y);return function(){return S()/y}},irwinHall:function(y){return function(){for(var S=0,P=0;P2?ty:Lp,ge=B?hs:Ym;return V=ae(y,S,ge,P),Z=ae(S,y,ge,ln),X}function X(ae){return V(ae)}return X.invert=function(ae){return Z(ae)},X.domain=function(ae){return arguments.length?(y=ae.map(Number),$()):y},X.range=function(ae){return arguments.length?(S=ae,$()):S},X.rangeRound=function(ae){return X.range(ae).interpolate(Cv)},X.clamp=function(ae){return arguments.length?(B=ae,$()):B},X.interpolate=function(ae){return arguments.length?(P=ae,$()):P},X.ticks=function(ae){return Uv(y,ae)},X.tickFormat=function(ae,ge){return d3_scale_linearTickFormat(y,ae,ge)},X.nice=function(ae){return Ip(y,ae),$()},X.copy=function(){return Pp(y,S,P,B)},$()}function zp(y,S){return e.rebind(y,S,"range","rangeRound","interpolate","clamp")}function Ip(y,S){return Bv(y,Dp(Ov(y,S)[2])),Bv(y,Dp(Ov(y,S)[2])),y}function Ov(y,S){S==null&&(S=10);var P=ic(y),B=P[1]-P[0],V=Math.pow(10,Math.floor(Math.log(B/S)/Math.LN10)),Z=S/B*V;return Z<=.15?V*=10:Z<=.35?V*=5:Z<=.75&&(V*=2),P[0]=Math.ceil(P[0]/V)*V,P[1]=Math.floor(P[1]/V)*V+V*.5,P[2]=V,P}function Uv(y,S){return e.range.apply(e,Ov(y,S))}var wu={s:1,g:1,p:1,r:1,e:1};function Dl(y){return-Math.floor(Math.log(y)/Math.LN10+.01)}function nc(y,S){var P=Dl(S[2]);return y in wu?Math.abs(P-Dl(Math.max(I(S[0]),I(S[1]))))+ +(y!=="e"):P-(y==="%")*2}e.scale.log=function(){return Vv(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Vv(y,S,P,B){function V(X){return(P?Math.log(X<0?0:X):-Math.log(X>0?0:-X))/Math.log(S)}function Z(X){return P?Math.pow(S,X):-Math.pow(S,-X)}function $(X){return y(V(X))}return $.invert=function(X){return Z(y.invert(X))},$.domain=function(X){return arguments.length?(P=X[0]>=0,y.domain((B=X.map(Number)).map(V)),$):B},$.base=function(X){return arguments.length?(S=+X,y.domain(B.map(V)),$):S},$.nice=function(){var X=Bv(B.map(V),P?Math:eh);return y.domain(X),B=X.map(Z),$},$.ticks=function(){var X=ic(B),ae=[],ge=X[0],xe=X[1],ze=Math.floor(V(ge)),Pe=Math.ceil(V(xe)),$e=S%1?2:S;if(isFinite(Pe-ze)){if(P){for(;ze0;st--)ae.push(Z(ze)*st);for(ze=0;ae[ze]xe;Pe--);ae=ae.slice(ze,Pe)}return ae},$.copy=function(){return Vv(y.copy(),S,P,B)},zp($,y)}var eh={floor:function(y){return-Math.ceil(-y)},ceil:function(y){return-Math.floor(-y)}};e.scale.pow=function(){return th(e.scale.linear(),1,[0,1])};function th(y,S,P){var B=rh(S),V=rh(1/S);function Z($){return y(B($))}return Z.invert=function($){return V(y.invert($))},Z.domain=function($){return arguments.length?(y.domain((P=$.map(Number)).map(B)),Z):P},Z.ticks=function($){return Uv(P,$)},Z.tickFormat=function($,X){return d3_scale_linearTickFormat(P,$,X)},Z.nice=function($){return Z.domain(Ip(P,$))},Z.exponent=function($){return arguments.length?(B=rh(S=$),V=rh(1/S),y.domain(P.map(B)),Z):S},Z.copy=function(){return th(y.copy(),S,P)},zp(Z,y)}function rh(y){return function(S){return S<0?-Math.pow(-S,y):Math.pow(S,y)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Pl([],{t:"range",a:[[]]})};function Pl(y,S){var P,B,V;function Z(X){return B[((P.get(X)||(S.t==="range"?P.set(X,y.push(X)):NaN))-1)%B.length]}function $(X,ae){return e.range(y.length).map(function(ge){return X+ae*ge})}return Z.domain=function(X){if(!arguments.length)return y;y=[],P=new z;for(var ae=-1,ge=X.length,xe;++ae0?P[Z-1]:y[0],ZPe?0:1;if(xe=Mr)return ae(xe,st)+(ge?ae(ge,1-st):"")+"Z";var Ie,He,Qe,ht,ot=0,je=0,Zt,or,cr,ur,zr,Rr,ta,Vr,Qr=[];if((ht=(+$.apply(this,arguments)||0)/2)&&(Qe=B===zl?Math.sqrt(ge*ge+xe*xe):+B.apply(this,arguments),st||(je*=-1),xe&&(je=hi(Qe/xe*Math.sin(ht))),ge&&(ot=hi(Qe/ge*Math.sin(ht)))),xe){Zt=xe*Math.cos(ze+je),or=xe*Math.sin(ze+je),cr=xe*Math.cos(Pe-je),ur=xe*Math.sin(Pe-je);var qa=Math.abs(Pe-ze-2*je)<=Tt?0:1;if(je&&Il(Zt,or,cr,ur)===st^qa){var $a=(ze+Pe)/2;Zt=xe*Math.cos($a),or=xe*Math.sin($a),cr=ur=null}}else Zt=or=0;if(ge){zr=ge*Math.cos(Pe-ot),Rr=ge*Math.sin(Pe-ot),ta=ge*Math.cos(ze+ot),Vr=ge*Math.sin(ze+ot);var Ka=Math.abs(ze-Pe+2*ot)<=Tt?0:1;if(ot&&Il(zr,Rr,ta,Vr)===1-st^Ka){var Jt=(ze+Pe)/2;zr=ge*Math.cos(Jt),Rr=ge*Math.sin(Jt),ta=Vr=null}}else zr=Rr=0;if($e>Ue&&(Ie=Math.min(Math.abs(xe-ge)/2,+P.apply(this,arguments)))>.001){He=ge0?0:1}function Au(y,S,P,B,V){var Z=y[0]-S[0],$=y[1]-S[1],X=(V?B:-B)/Math.sqrt(Z*Z+$*$),ae=X*$,ge=-X*Z,xe=y[0]+ae,ze=y[1]+ge,Pe=S[0]+ae,$e=S[1]+ge,st=(xe+Pe)/2,Ie=(ze+$e)/2,He=Pe-xe,Qe=$e-ze,ht=He*He+Qe*Qe,ot=P-B,je=xe*$e-Pe*ze,Zt=(Qe<0?-1:1)*Math.sqrt(Math.max(0,ot*ot*ht-je*je)),or=(je*Qe-He*Zt)/ht,cr=(-je*He-Qe*Zt)/ht,ur=(je*Qe+He*Zt)/ht,zr=(-je*He+Qe*Zt)/ht,Rr=or-st,ta=cr-Ie,Vr=ur-st,Qr=zr-Ie;return Rr*Rr+ta*ta>Vr*Vr+Qr*Qr&&(or=ur,cr=zr),[[or-ae,cr-ge],[or*P/ot,cr*P/ot]]}function sc(){return!0}function Cs(y){var S=pu,P=ml,B=sc,V=jo,Z=V.key,$=.7;function X(ae){var ge=[],xe=[],ze=-1,Pe=ae.length,$e,st=fa(S),Ie=fa(P);function He(){ge.push("M",V(y(xe),$))}for(;++ze1?y.join("L"):y+"Z"}function cf(y){return y.join("L")+"Z"}function ay(y){for(var S=0,P=y.length,B=y[0],V=[B[0],",",B[1]];++S1&&V.push("H",B[0]),V.join("")}function hf(y){for(var S=0,P=y.length,B=y[0],V=[B[0],",",B[1]];++S1){X=S[1],Z=y[ae],ae++,B+="C"+(V[0]+$[0])+","+(V[1]+$[1])+","+(Z[0]-X[0])+","+(Z[1]-X[1])+","+Z[0]+","+Z[1];for(var ge=2;ge9&&(Z=P*3/Math.sqrt(Z),$[X]=Z*B,$[X+1]=Z*V));for(X=-1;++X<=ae;)Z=(y[Math.min(ae,X+1)][0]-y[Math.max(0,X-1)][0])/(6*(1+$[X]*$[X])),S.push([Z||0,$[X]*Z||0]);return S}function Vp(y){return y.length<3?jo(y):y[0]+vf(y,sy(y))}e.svg.line.radial=function(){var y=Cs(Wv);return y.radius=y.x,delete y.x,y.angle=y.y,delete y.y,y};function Wv(y){for(var S,P=-1,B=y.length,V,Z;++PTt)+",1 "+ze}function ge(xe,ze,Pe,$e){return"Q 0,0 "+$e}return Z.radius=function(xe){return arguments.length?(P=fa(xe),Z):P},Z.source=function(xe){return arguments.length?(y=fa(xe),Z):y},Z.target=function(xe){return arguments.length?(S=fa(xe),Z):S},Z.startAngle=function(xe){return arguments.length?(B=fa(xe),Z):B},Z.endAngle=function(xe){return arguments.length?(V=fa(xe),Z):V},Z};function Hp(y){return y.radius}e.svg.diagonal=function(){var y=sh,S=Xv,P=jv;function B(V,Z){var $=y.call(this,V,Z),X=S.call(this,V,Z),ae=($.y+X.y)/2,ge=[$,{x:$.x,y:ae},{x:X.x,y:ae},X];return ge=ge.map(P),"M"+ge[0]+"C"+ge[1]+" "+ge[2]+" "+ge[3]}return B.source=function(V){return arguments.length?(y=fa(V),B):y},B.target=function(V){return arguments.length?(S=fa(V),B):S},B.projection=function(V){return arguments.length?(P=V,B):P},B};function jv(y){return[y.x,y.y]}e.svg.diagonal.radial=function(){var y=e.svg.diagonal(),S=jv,P=y.projection;return y.projection=function(B){return arguments.length?P(Gp(S=B)):S},y};function Gp(y){return function(){var S=y.apply(this,arguments),P=S[0],B=S[1]-Tr;return[P*Math.cos(B),P*Math.sin(B)]}}e.svg.symbol=function(){var y=yf,S=Zp;function P(B,V){return(uh.get(y.call(this,B,V))||lh)(S.call(this,B,V))}return P.type=function(B){return arguments.length?(y=fa(B),P):y},P.size=function(B){return arguments.length?(S=fa(B),P):S},P};function Zp(){return 64}function yf(){return"circle"}function lh(y){var S=Math.sqrt(y/Tt);return"M0,"+S+"A"+S+","+S+" 0 1,1 0,"+-S+"A"+S+","+S+" 0 1,1 0,"+S+"Z"}var uh=e.map({circle:lh,cross:function(y){var S=Math.sqrt(y/5)/2;return"M"+-3*S+","+-S+"H"+-S+"V"+-3*S+"H"+S+"V"+-S+"H"+3*S+"V"+S+"H"+S+"V"+3*S+"H"+-S+"V"+S+"H"+-3*S+"Z"},diamond:function(y){var S=Math.sqrt(y/(2*Jv)),P=S*Jv;return"M0,"+-S+"L"+P+",0 0,"+S+" "+-P+",0Z"},square:function(y){var S=Math.sqrt(y)/2;return"M"+-S+","+-S+"L"+S+","+-S+" "+S+","+S+" "+-S+","+S+"Z"},"triangle-down":function(y){var S=Math.sqrt(y/Su),P=S*Su/2;return"M0,"+P+"L"+S+","+-P+" "+-S+","+-P+"Z"},"triangle-up":function(y){var S=Math.sqrt(y/Su),P=S*Su/2;return"M0,"+-P+"L"+S+","+P+" "+-S+","+P+"Z"}});e.svg.symbolTypes=uh.keys();var Su=Math.sqrt(3),Jv=Math.tan(30*Gr);ft.transition=function(y){for(var S=uo||++Ci,P=ui(y),B=[],V,Z,$=Ls||{time:Date.now(),ease:wl,delay:0,duration:250},X=-1,ae=this.length;++X0;)ze[--ht].call(y,Qe);if(He>=1)return $.event&&$.event.end.call(y,y.__data__,S),--Z.count?delete Z[B]:delete y[P],1}$||(X=V.time,ae=Gc(Pe,0,X),$=Z[B]={tween:new z,time:X,timer:ae,delay:V.delay,duration:V.duration,ease:V.ease,index:S},V=null,++Z.count)}e.svg.axis=function(){var y=e.scale.linear(),S=Fl,P=6,B=6,V=3,Z=[10],$=null,X;function ae(ge){ge.each(function(){var xe=e.select(this),ze=this.__chart__||y,Pe=this.__chart__=y.copy(),$e=$==null?Pe.ticks?Pe.ticks.apply(Pe,Z):Pe.domain():$,st=X==null?Pe.tickFormat?Pe.tickFormat.apply(Pe,Z):Te:X,Ie=xe.selectAll(".tick").data($e,Pe),He=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Ue),Qe=e.transition(Ie.exit()).style("opacity",Ue).remove(),ht=e.transition(Ie.order()).style("opacity",1),ot=Math.max(P,0)+V,je,Zt=$c(Pe),or=xe.selectAll(".domain").data([0]),cr=(or.enter().append("path").attr("class","domain"),e.transition(or));He.append("line"),He.append("text");var ur=He.select("line"),zr=ht.select("line"),Rr=Ie.select("text").text(st),ta=He.select("text"),Vr=ht.select("text"),Qr=S==="top"||S==="left"?-1:1,qa,$a,Ka,Jt;if(S==="bottom"||S==="top"?(je=_f,qa="x",Ka="y",$a="x2",Jt="y2",Rr.attr("dy",Qr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Zt[0]+","+Qr*B+"V0H"+Zt[1]+"V"+Qr*B)):(je=ql,qa="y",Ka="x",$a="y2",Jt="x2",Rr.attr("dy",".32em").style("text-anchor",Qr<0?"end":"start"),cr.attr("d","M"+Qr*B+","+Zt[0]+"H0V"+Zt[1]+"H"+Qr*B)),ur.attr(Jt,Qr*P),ta.attr(Ka,Qr*ot),zr.attr($a,0).attr(Jt,Qr*P),Vr.attr(qa,0).attr(Ka,Qr*ot),Pe.rangeBand){var Kr=Pe,oa=Kr.rangeBand()/2;ze=Pe=function(sa){return Kr(sa)+oa}}else ze.rangeBand?ze=Pe:Qe.call(je,Pe,ze);He.call(je,ze,Pe),ht.call(je,Pe,Pe)})}return ae.scale=function(ge){return arguments.length?(y=ge,ae):y},ae.orient=function(ge){return arguments.length?(S=ge in uc?ge+"":Fl,ae):S},ae.ticks=function(){return arguments.length?(Z=r(arguments),ae):Z},ae.tickValues=function(ge){return arguments.length?($=ge,ae):$},ae.tickFormat=function(ge){return arguments.length?(X=ge,ae):X},ae.tickSize=function(ge){var xe=arguments.length;return xe?(P=+ge,B=+arguments[xe-1],ae):P},ae.innerTickSize=function(ge){return arguments.length?(P=+ge,ae):P},ae.outerTickSize=function(ge){return arguments.length?(B=+ge,ae):B},ae.tickPadding=function(ge){return arguments.length?(V=+ge,ae):V},ae.tickSubdivide=function(){return arguments.length&&ae},ae};var Fl="bottom",uc={top:1,right:1,bottom:1,left:1};function _f(y,S,P){y.attr("transform",function(B){var V=S(B);return"translate("+(isFinite(V)?V:P(B))+",0)"})}function ql(y,S,P){y.attr("transform",function(B){var V=S(B);return"translate(0,"+(isFinite(V)?V:P(B))+")"})}e.svg.brush=function(){var y=nt(xe,"brushstart","brush","brushend"),S=null,P=null,B=[0,0],V=[0,0],Z,$,X=!0,ae=!0,ge=hh[0];function xe(Ie){Ie.each(function(){var He=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",st).on("touchstart.brush",st),Qe=He.selectAll(".background").data([0]);Qe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),He.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ht=He.selectAll(".resize").data(ge,Te);ht.exit().remove(),ht.enter().append("g").attr("class",function(or){return"resize "+or}).style("cursor",function(or){return Ds[or]}).append("rect").attr("x",function(or){return/[ew]$/.test(or)?-3:null}).attr("y",function(or){return/^[ns]/.test(or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ht.style("display",xe.empty()?"none":null);var ot=e.transition(He),je=e.transition(Qe),Zt;S&&(Zt=$c(S),je.attr("x",Zt[0]).attr("width",Zt[1]-Zt[0]),Pe(ot)),P&&(Zt=$c(P),je.attr("y",Zt[0]).attr("height",Zt[1]-Zt[0]),$e(ot)),ze(ot)})}xe.event=function(Ie){Ie.each(function(){var He=y.of(this,arguments),Qe={x:B,y:V,i:Z,j:$},ht=this.__chart__||Qe;this.__chart__=Qe,uo?e.select(this).transition().each("start.brush",function(){Z=ht.i,$=ht.j,B=ht.x,V=ht.y,He({type:"brushstart"})}).tween("brush:brush",function(){var ot=Wo(B,Qe.x),je=Wo(V,Qe.y);return Z=$=null,function(Zt){B=Qe.x=ot(Zt),V=Qe.y=je(Zt),He({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Qe.i,$=Qe.j,He({type:"brush",mode:"resize"}),He({type:"brushend"})}):(He({type:"brushstart"}),He({type:"brush",mode:"resize"}),He({type:"brushend"}))})};function ze(Ie){Ie.selectAll(".resize").attr("transform",function(He){return"translate("+B[+/e$/.test(He)]+","+V[+/^s/.test(He)]+")"})}function Pe(Ie){Ie.select(".extent").attr("x",B[0]),Ie.selectAll(".extent,.n>rect,.s>rect").attr("width",B[1]-B[0])}function $e(Ie){Ie.select(".extent").attr("y",V[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",V[1]-V[0])}function st(){var Ie=this,He=e.select(e.event.target),Qe=y.of(Ie,arguments),ht=e.select(Ie),ot=He.datum(),je=!/^(n|s)$/.test(ot)&&S,Zt=!/^(e|w)$/.test(ot)&&P,or=He.classed("extent"),cr=yr(Ie),ur,zr=e.mouse(Ie),Rr,ta=e.select(s(Ie)).on("keydown.brush",qa).on("keyup.brush",$a);if(e.event.changedTouches?ta.on("touchmove.brush",Ka).on("touchend.brush",Kr):ta.on("mousemove.brush",Ka).on("mouseup.brush",Kr),ht.interrupt().selectAll("*").interrupt(),or)zr[0]=B[0]-zr[0],zr[1]=V[0]-zr[1];else if(ot){var Vr=+/w$/.test(ot),Qr=+/^n/.test(ot);Rr=[B[1-Vr]-zr[0],V[1-Qr]-zr[1]],zr[0]=B[Vr],zr[1]=V[Qr]}else e.event.altKey&&(ur=zr.slice());ht.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",He.style("cursor")),Qe({type:"brushstart"}),Ka();function qa(){e.event.keyCode==32&&(or||(ur=null,zr[0]-=B[1],zr[1]-=V[1],or=2),We())}function $a(){e.event.keyCode==32&&or==2&&(zr[0]+=B[1],zr[1]+=V[1],or=0,We())}function Ka(){var oa=e.mouse(Ie),sa=!1;Rr&&(oa[0]+=Rr[0],oa[1]+=Rr[1]),or||(e.event.altKey?(ur||(ur=[(B[0]+B[1])/2,(V[0]+V[1])/2]),zr[0]=B[+(oa[0]{(function(e,t){typeof n_=="object"&&typeof L7!="undefined"?t(n_):(e=e||self,t(e.d3=e.d3||{}))})(n_,function(e){"use strict";var t=new Date,r=new Date;function i(Be,ut,sr,Pr){function Lt(vt){return Be(vt=arguments.length===0?new Date:new Date(+vt)),vt}return Lt.floor=function(vt){return Be(vt=new Date(+vt)),vt},Lt.ceil=function(vt){return Be(vt=new Date(vt-1)),ut(vt,1),Be(vt),vt},Lt.round=function(vt){var pt=Lt(vt),Nt=Lt.ceil(vt);return vt-pt0))return er;do er.push(Ht=new Date(+vt)),ut(vt,Nt),Be(vt);while(Ht=pt)for(;Be(pt),!vt(pt);)pt.setTime(pt-1)},function(pt,Nt){if(pt>=pt)if(Nt<0)for(;++Nt<=0;)for(;ut(pt,-1),!vt(pt););else for(;--Nt>=0;)for(;ut(pt,1),!vt(pt););})},sr&&(Lt.count=function(vt,pt){return t.setTime(+vt),r.setTime(+pt),Be(t),Be(r),Math.floor(sr(t,r))},Lt.every=function(vt){return vt=Math.floor(vt),!isFinite(vt)||!(vt>0)?null:vt>1?Lt.filter(Pr?function(pt){return Pr(pt)%vt===0}:function(pt){return Lt.count(0,pt)%vt===0}):Lt}),Lt}var a=i(function(){},function(Be,ut){Be.setTime(+Be+ut)},function(Be,ut){return ut-Be});a.every=function(Be){return Be=Math.floor(Be),!isFinite(Be)||!(Be>0)?null:Be>1?i(function(ut){ut.setTime(Math.floor(ut/Be)*Be)},function(ut,sr){ut.setTime(+ut+sr*Be)},function(ut,sr){return(sr-ut)/Be}):a};var s=a.range,l=1e3,u=6e4,h=36e5,v=864e5,m=6048e5,_=i(function(Be){Be.setTime(Be-Be.getMilliseconds())},function(Be,ut){Be.setTime(+Be+ut*l)},function(Be,ut){return(ut-Be)/l},function(Be){return Be.getUTCSeconds()}),T=_.range,M=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l)},function(Be,ut){Be.setTime(+Be+ut*u)},function(Be,ut){return(ut-Be)/u},function(Be){return Be.getMinutes()}),C=M.range,E=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l-Be.getMinutes()*u)},function(Be,ut){Be.setTime(+Be+ut*h)},function(Be,ut){return(ut-Be)/h},function(Be){return Be.getHours()}),L=E.range,I=i(function(Be){Be.setHours(0,0,0,0)},function(Be,ut){Be.setDate(Be.getDate()+ut)},function(Be,ut){return(ut-Be-(ut.getTimezoneOffset()-Be.getTimezoneOffset())*u)/v},function(Be){return Be.getDate()-1}),O=I.range;function q(Be){return i(function(ut){ut.setDate(ut.getDate()-(ut.getDay()+7-Be)%7),ut.setHours(0,0,0,0)},function(ut,sr){ut.setDate(ut.getDate()+sr*7)},function(ut,sr){return(sr-ut-(sr.getTimezoneOffset()-ut.getTimezoneOffset())*u)/m})}var z=q(0),N=q(1),H=q(2),U=q(3),W=q(4),J=q(5),ee=q(6),ie=z.range,oe=N.range,he=H.range,fe=U.range,Te=W.range,ke=J.range,Se=ee.range,Ae=i(function(Be){Be.setDate(1),Be.setHours(0,0,0,0)},function(Be,ut){Be.setMonth(Be.getMonth()+ut)},function(Be,ut){return ut.getMonth()-Be.getMonth()+(ut.getFullYear()-Be.getFullYear())*12},function(Be){return Be.getMonth()}),me=Ae.range,Ce=i(function(Be){Be.setMonth(0,1),Be.setHours(0,0,0,0)},function(Be,ut){Be.setFullYear(Be.getFullYear()+ut)},function(Be,ut){return ut.getFullYear()-Be.getFullYear()},function(Be){return Be.getFullYear()});Ce.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ut){ut.setFullYear(Math.floor(ut.getFullYear()/Be)*Be),ut.setMonth(0,1),ut.setHours(0,0,0,0)},function(ut,sr){ut.setFullYear(ut.getFullYear()+sr*Be)})};var Me=Ce.range,We=i(function(Be){Be.setUTCSeconds(0,0)},function(Be,ut){Be.setTime(+Be+ut*u)},function(Be,ut){return(ut-Be)/u},function(Be){return Be.getUTCMinutes()}),it=We.range,nt=i(function(Be){Be.setUTCMinutes(0,0,0)},function(Be,ut){Be.setTime(+Be+ut*h)},function(Be,ut){return(ut-Be)/h},function(Be){return Be.getUTCHours()}),gt=nt.range,Xe=i(function(Be){Be.setUTCHours(0,0,0,0)},function(Be,ut){Be.setUTCDate(Be.getUTCDate()+ut)},function(Be,ut){return(ut-Be)/v},function(Be){return Be.getUTCDate()-1}),kt=Xe.range;function lt(Be){return i(function(ut){ut.setUTCDate(ut.getUTCDate()-(ut.getUTCDay()+7-Be)%7),ut.setUTCHours(0,0,0,0)},function(ut,sr){ut.setUTCDate(ut.getUTCDate()+sr*7)},function(ut,sr){return(sr-ut)/m})}var mt=lt(0),Bt=lt(1),ft=lt(2),de=lt(3),De=lt(4),ye=lt(5),Oe=lt(6),at=mt.range,Je=Bt.range,Pt=ft.range,xt=de.range,bt=De.range,Vt=ye.range,qt=Oe.range,Dt=i(function(Be){Be.setUTCDate(1),Be.setUTCHours(0,0,0,0)},function(Be,ut){Be.setUTCMonth(Be.getUTCMonth()+ut)},function(Be,ut){return ut.getUTCMonth()-Be.getUTCMonth()+(ut.getUTCFullYear()-Be.getUTCFullYear())*12},function(Be){return Be.getUTCMonth()}),At=Dt.range,Ut=i(function(Be){Be.setUTCMonth(0,1),Be.setUTCHours(0,0,0,0)},function(Be,ut){Be.setUTCFullYear(Be.getUTCFullYear()+ut)},function(Be,ut){return ut.getUTCFullYear()-Be.getUTCFullYear()},function(Be){return Be.getUTCFullYear()});Ut.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ut){ut.setUTCFullYear(Math.floor(ut.getUTCFullYear()/Be)*Be),ut.setUTCMonth(0,1),ut.setUTCHours(0,0,0,0)},function(ut,sr){ut.setUTCFullYear(ut.getUTCFullYear()+sr*Be)})};var Wt=Ut.range;e.timeDay=I,e.timeDays=O,e.timeFriday=J,e.timeFridays=ke,e.timeHour=E,e.timeHours=L,e.timeInterval=i,e.timeMillisecond=a,e.timeMilliseconds=s,e.timeMinute=M,e.timeMinutes=C,e.timeMonday=N,e.timeMondays=oe,e.timeMonth=Ae,e.timeMonths=me,e.timeSaturday=ee,e.timeSaturdays=Se,e.timeSecond=_,e.timeSeconds=T,e.timeSunday=z,e.timeSundays=ie,e.timeThursday=W,e.timeThursdays=Te,e.timeTuesday=H,e.timeTuesdays=he,e.timeWednesday=U,e.timeWednesdays=fe,e.timeWeek=z,e.timeWeeks=ie,e.timeYear=Ce,e.timeYears=Me,e.utcDay=Xe,e.utcDays=kt,e.utcFriday=ye,e.utcFridays=Vt,e.utcHour=nt,e.utcHours=gt,e.utcMillisecond=a,e.utcMilliseconds=s,e.utcMinute=We,e.utcMinutes=it,e.utcMonday=Bt,e.utcMondays=Je,e.utcMonth=Dt,e.utcMonths=At,e.utcSaturday=Oe,e.utcSaturdays=qt,e.utcSecond=_,e.utcSeconds=T,e.utcSunday=mt,e.utcSundays=at,e.utcThursday=De,e.utcThursdays=bt,e.utcTuesday=ft,e.utcTuesdays=Pt,e.utcWednesday=de,e.utcWednesdays=xt,e.utcWeek=mt,e.utcWeeks=at,e.utcYear=Ut,e.utcYears=Wt,Object.defineProperty(e,"__esModule",{value:!0})})});var _0=pe((o_,D7)=>{(function(e,t){typeof o_=="object"&&typeof D7!="undefined"?t(o_,Y3()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(o_,function(e,t){"use strict";function r(Fe){if(0<=Fe.y&&Fe.y<100){var Ue=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return Ue.setFullYear(Fe.y),Ue}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function i(Fe){if(0<=Fe.y&&Fe.y<100){var Ue=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return Ue.setUTCFullYear(Fe.y),Ue}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function a(Fe,Ue,wt){return{y:Fe,m:Ue,d:wt,H:0,M:0,S:0,L:0}}function s(Fe){var Ue=Fe.dateTime,wt=Fe.date,Tt=Fe.time,vr=Fe.periods,Mr=Fe.days,Tr=Fe.shortDays,Gr=Fe.months,pa=Fe.shortMonths,Aa=T(vr),ai=M(vr),bi=T(Mr),hi=M(Mr),Hi=T(Tr),Ii=M(Tr),_n=T(Gr),an=M(Gr),Gi=T(pa),ma=M(pa),nn={a:Et,A:Rt,b:tr,B:Xt,c:null,d:Ae,e:Ae,f:it,H:me,I:Ce,j:Me,L:We,m:nt,M:gt,p:Sr,q:Zr,Q:pt,s:Nt,S:Xe,u:kt,U:lt,V:mt,w:Bt,W:ft,x:null,X:null,y:de,Y:De,Z:ye,"%":vt},Bi={a:Or,A:ca,b:ua,B:Fa,c:null,d:Oe,e:Oe,f:bt,H:at,I:Je,j:Pt,L:xt,m:Vt,M:qt,p:ti,q:Yr,Q:pt,s:Nt,S:Dt,u:At,U:Ut,V:Wt,w:Be,W:ut,x:null,X:null,y:sr,Y:Pr,Z:Lt,"%":vt},ir={a:se,A:ue,b:Le,B:Ne,c:rt,d:W,e:W,f:fe,H:ee,I:ee,j:J,L:he,m:U,M:ie,p:te,q:H,Q:ke,s:Se,S:oe,u:E,U:L,V:I,w:C,W:O,x:Ze,X:yt,y:z,Y:q,Z:N,"%":Te};nn.x=ii(wt,nn),nn.X=ii(Tt,nn),nn.c=ii(Ue,nn),Bi.x=ii(wt,Bi),Bi.X=ii(Tt,Bi),Bi.c=ii(Ue,Bi);function ii(gr,ea){return function(ga){var nr=[],wi=-1,Ca=0,oi=gr.length,fa,In,Co;for(ga instanceof Date||(ga=new Date(+ga));++wi53)return null;"w"in nr||(nr.w=1),"Z"in nr?(Ca=i(a(nr.y,0,1)),oi=Ca.getUTCDay(),Ca=oi>4||oi===0?t.utcMonday.ceil(Ca):t.utcMonday(Ca),Ca=t.utcDay.offset(Ca,(nr.V-1)*7),nr.y=Ca.getUTCFullYear(),nr.m=Ca.getUTCMonth(),nr.d=Ca.getUTCDate()+(nr.w+6)%7):(Ca=r(a(nr.y,0,1)),oi=Ca.getDay(),Ca=oi>4||oi===0?t.timeMonday.ceil(Ca):t.timeMonday(Ca),Ca=t.timeDay.offset(Ca,(nr.V-1)*7),nr.y=Ca.getFullYear(),nr.m=Ca.getMonth(),nr.d=Ca.getDate()+(nr.w+6)%7)}else("W"in nr||"U"in nr)&&("w"in nr||(nr.w="u"in nr?nr.u%7:"W"in nr?1:0),oi="Z"in nr?i(a(nr.y,0,1)).getUTCDay():r(a(nr.y,0,1)).getDay(),nr.m=0,nr.d="W"in nr?(nr.w+6)%7+nr.W*7-(oi+5)%7:nr.w+nr.U*7-(oi+6)%7);return"Z"in nr?(nr.H+=nr.Z/100|0,nr.M+=nr.Z%100,i(nr)):r(nr)}}function le(gr,ea,ga,nr){for(var wi=0,Ca=ea.length,oi=ga.length,fa,In;wi=oi)return-1;if(fa=ea.charCodeAt(wi++),fa===37){if(fa=ea.charAt(wi++),In=ir[fa in l?ea.charAt(wi++):fa],!In||(nr=In(gr,ga,nr))<0)return-1}else if(fa!=ga.charCodeAt(nr++))return-1}return nr}function te(gr,ea,ga){var nr=Aa.exec(ea.slice(ga));return nr?(gr.p=ai[nr[0].toLowerCase()],ga+nr[0].length):-1}function se(gr,ea,ga){var nr=Hi.exec(ea.slice(ga));return nr?(gr.w=Ii[nr[0].toLowerCase()],ga+nr[0].length):-1}function ue(gr,ea,ga){var nr=bi.exec(ea.slice(ga));return nr?(gr.w=hi[nr[0].toLowerCase()],ga+nr[0].length):-1}function Le(gr,ea,ga){var nr=Gi.exec(ea.slice(ga));return nr?(gr.m=ma[nr[0].toLowerCase()],ga+nr[0].length):-1}function Ne(gr,ea,ga){var nr=_n.exec(ea.slice(ga));return nr?(gr.m=an[nr[0].toLowerCase()],ga+nr[0].length):-1}function rt(gr,ea,ga){return le(gr,Ue,ea,ga)}function Ze(gr,ea,ga){return le(gr,wt,ea,ga)}function yt(gr,ea,ga){return le(gr,Tt,ea,ga)}function Et(gr){return Tr[gr.getDay()]}function Rt(gr){return Mr[gr.getDay()]}function tr(gr){return pa[gr.getMonth()]}function Xt(gr){return Gr[gr.getMonth()]}function Sr(gr){return vr[+(gr.getHours()>=12)]}function Zr(gr){return 1+~~(gr.getMonth()/3)}function Or(gr){return Tr[gr.getUTCDay()]}function ca(gr){return Mr[gr.getUTCDay()]}function ua(gr){return pa[gr.getUTCMonth()]}function Fa(gr){return Gr[gr.getUTCMonth()]}function ti(gr){return vr[+(gr.getUTCHours()>=12)]}function Yr(gr){return 1+~~(gr.getUTCMonth()/3)}return{format:function(gr){var ea=ii(gr+="",nn);return ea.toString=function(){return gr},ea},parse:function(gr){var ea=Xr(gr+="",!1);return ea.toString=function(){return gr},ea},utcFormat:function(gr){var ea=ii(gr+="",Bi);return ea.toString=function(){return gr},ea},utcParse:function(gr){var ea=Xr(gr+="",!0);return ea.toString=function(){return gr},ea}}}var l={"-":"",_:" ",0:"0"},u=/^\s*\d+/,h=/^%/,v=/[\\^$*+?|[\]().{}]/g;function m(Fe,Ue,wt){var Tt=Fe<0?"-":"",vr=(Tt?-Fe:Fe)+"",Mr=vr.length;return Tt+(Mr68?1900:2e3),wt+Tt[0].length):-1}function N(Fe,Ue,wt){var Tt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ue.slice(wt,wt+6));return Tt?(Fe.Z=Tt[1]?0:-(Tt[2]+(Tt[3]||"00")),wt+Tt[0].length):-1}function H(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+1));return Tt?(Fe.q=Tt[0]*3-3,wt+Tt[0].length):-1}function U(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.m=Tt[0]-1,wt+Tt[0].length):-1}function W(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.d=+Tt[0],wt+Tt[0].length):-1}function J(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+3));return Tt?(Fe.m=0,Fe.d=+Tt[0],wt+Tt[0].length):-1}function ee(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.H=+Tt[0],wt+Tt[0].length):-1}function ie(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.M=+Tt[0],wt+Tt[0].length):-1}function oe(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.S=+Tt[0],wt+Tt[0].length):-1}function he(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+3));return Tt?(Fe.L=+Tt[0],wt+Tt[0].length):-1}function fe(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+6));return Tt?(Fe.L=Math.floor(Tt[0]/1e3),wt+Tt[0].length):-1}function Te(Fe,Ue,wt){var Tt=h.exec(Ue.slice(wt,wt+1));return Tt?wt+Tt[0].length:-1}function ke(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt));return Tt?(Fe.Q=+Tt[0],wt+Tt[0].length):-1}function Se(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt));return Tt?(Fe.s=+Tt[0],wt+Tt[0].length):-1}function Ae(Fe,Ue){return m(Fe.getDate(),Ue,2)}function me(Fe,Ue){return m(Fe.getHours(),Ue,2)}function Ce(Fe,Ue){return m(Fe.getHours()%12||12,Ue,2)}function Me(Fe,Ue){return m(1+t.timeDay.count(t.timeYear(Fe),Fe),Ue,3)}function We(Fe,Ue){return m(Fe.getMilliseconds(),Ue,3)}function it(Fe,Ue){return We(Fe,Ue)+"000"}function nt(Fe,Ue){return m(Fe.getMonth()+1,Ue,2)}function gt(Fe,Ue){return m(Fe.getMinutes(),Ue,2)}function Xe(Fe,Ue){return m(Fe.getSeconds(),Ue,2)}function kt(Fe){var Ue=Fe.getDay();return Ue===0?7:Ue}function lt(Fe,Ue){return m(t.timeSunday.count(t.timeYear(Fe)-1,Fe),Ue,2)}function mt(Fe,Ue){var wt=Fe.getDay();return Fe=wt>=4||wt===0?t.timeThursday(Fe):t.timeThursday.ceil(Fe),m(t.timeThursday.count(t.timeYear(Fe),Fe)+(t.timeYear(Fe).getDay()===4),Ue,2)}function Bt(Fe){return Fe.getDay()}function ft(Fe,Ue){return m(t.timeMonday.count(t.timeYear(Fe)-1,Fe),Ue,2)}function de(Fe,Ue){return m(Fe.getFullYear()%100,Ue,2)}function De(Fe,Ue){return m(Fe.getFullYear()%1e4,Ue,4)}function ye(Fe){var Ue=Fe.getTimezoneOffset();return(Ue>0?"-":(Ue*=-1,"+"))+m(Ue/60|0,"0",2)+m(Ue%60,"0",2)}function Oe(Fe,Ue){return m(Fe.getUTCDate(),Ue,2)}function at(Fe,Ue){return m(Fe.getUTCHours(),Ue,2)}function Je(Fe,Ue){return m(Fe.getUTCHours()%12||12,Ue,2)}function Pt(Fe,Ue){return m(1+t.utcDay.count(t.utcYear(Fe),Fe),Ue,3)}function xt(Fe,Ue){return m(Fe.getUTCMilliseconds(),Ue,3)}function bt(Fe,Ue){return xt(Fe,Ue)+"000"}function Vt(Fe,Ue){return m(Fe.getUTCMonth()+1,Ue,2)}function qt(Fe,Ue){return m(Fe.getUTCMinutes(),Ue,2)}function Dt(Fe,Ue){return m(Fe.getUTCSeconds(),Ue,2)}function At(Fe){var Ue=Fe.getUTCDay();return Ue===0?7:Ue}function Ut(Fe,Ue){return m(t.utcSunday.count(t.utcYear(Fe)-1,Fe),Ue,2)}function Wt(Fe,Ue){var wt=Fe.getUTCDay();return Fe=wt>=4||wt===0?t.utcThursday(Fe):t.utcThursday.ceil(Fe),m(t.utcThursday.count(t.utcYear(Fe),Fe)+(t.utcYear(Fe).getUTCDay()===4),Ue,2)}function Be(Fe){return Fe.getUTCDay()}function ut(Fe,Ue){return m(t.utcMonday.count(t.utcYear(Fe)-1,Fe),Ue,2)}function sr(Fe,Ue){return m(Fe.getUTCFullYear()%100,Ue,2)}function Pr(Fe,Ue){return m(Fe.getUTCFullYear()%1e4,Ue,4)}function Lt(){return"+0000"}function vt(){return"%"}function pt(Fe){return+Fe}function Nt(Fe){return Math.floor(+Fe/1e3)}var er;Ht({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ht(Fe){return er=s(Fe),e.timeFormat=er.format,e.timeParse=er.parse,e.utcFormat=er.utcFormat,e.utcParse=er.utcParse,er}var Gt="%Y-%m-%dT%H:%M:%S.%LZ";function hr(Fe){return Fe.toISOString()}var yr=Date.prototype.toISOString?hr:e.utcFormat(Gt);function mr(Fe){var Ue=new Date(Fe);return isNaN(Ue)?null:Ue}var Ct=+new Date("2000-01-01T00:00:00.000Z")?mr:e.utcParse(Gt);e.isoFormat=yr,e.isoParse=Ct,e.timeFormatDefaultLocale=Ht,e.timeFormatLocale=s,Object.defineProperty(e,"__esModule",{value:!0})})});var W3=pe((s_,P7)=>{(function(e,t){typeof s_=="object"&&typeof P7!="undefined"?t(s_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(s_,function(e){"use strict";function t(U){return Math.abs(U=Math.round(U))>=1e21?U.toLocaleString("en").replace(/,/g,""):U.toString(10)}function r(U,W){if((J=(U=W?U.toExponential(W-1):U.toExponential()).indexOf("e"))<0)return null;var J,ee=U.slice(0,J);return[ee.length>1?ee[0]+ee.slice(2):ee,+U.slice(J+1)]}function i(U){return U=r(Math.abs(U)),U?U[1]:NaN}function a(U,W){return function(J,ee){for(var ie=J.length,oe=[],he=0,fe=U[0],Te=0;ie>0&&fe>0&&(Te+fe+1>ee&&(fe=Math.max(1,ee-Te)),oe.push(J.substring(ie-=fe,ie+fe)),!((Te+=fe+1)>ee));)fe=U[he=(he+1)%U.length];return oe.reverse().join(W)}}function s(U){return function(W){return W.replace(/[0-9]/g,function(J){return U[+J]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function u(U){if(!(W=l.exec(U)))throw new Error("invalid format: "+U);var W;return new h({fill:W[1],align:W[2],sign:W[3],symbol:W[4],zero:W[5],width:W[6],comma:W[7],precision:W[8]&&W[8].slice(1),trim:W[9],type:W[10]})}u.prototype=h.prototype;function h(U){this.fill=U.fill===void 0?" ":U.fill+"",this.align=U.align===void 0?">":U.align+"",this.sign=U.sign===void 0?"-":U.sign+"",this.symbol=U.symbol===void 0?"":U.symbol+"",this.zero=!!U.zero,this.width=U.width===void 0?void 0:+U.width,this.comma=!!U.comma,this.precision=U.precision===void 0?void 0:+U.precision,this.trim=!!U.trim,this.type=U.type===void 0?"":U.type+""}h.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function v(U){e:for(var W=U.length,J=1,ee=-1,ie;J0&&(ee=0);break}return ee>0?U.slice(0,ee)+U.slice(ie+1):U}var m;function _(U,W){var J=r(U,W);if(!J)return U+"";var ee=J[0],ie=J[1],oe=ie-(m=Math.max(-8,Math.min(8,Math.floor(ie/3)))*3)+1,he=ee.length;return oe===he?ee:oe>he?ee+new Array(oe-he+1).join("0"):oe>0?ee.slice(0,oe)+"."+ee.slice(oe):"0."+new Array(1-oe).join("0")+r(U,Math.max(0,W+oe-1))[0]}function T(U,W){var J=r(U,W);if(!J)return U+"";var ee=J[0],ie=J[1];return ie<0?"0."+new Array(-ie).join("0")+ee:ee.length>ie+1?ee.slice(0,ie+1)+"."+ee.slice(ie+1):ee+new Array(ie-ee.length+2).join("0")}var M={"%":function(U,W){return(U*100).toFixed(W)},b:function(U){return Math.round(U).toString(2)},c:function(U){return U+""},d:t,e:function(U,W){return U.toExponential(W)},f:function(U,W){return U.toFixed(W)},g:function(U,W){return U.toPrecision(W)},o:function(U){return Math.round(U).toString(8)},p:function(U,W){return T(U*100,W)},r:T,s:_,X:function(U){return Math.round(U).toString(16).toUpperCase()},x:function(U){return Math.round(U).toString(16)}};function C(U){return U}var E=Array.prototype.map,L=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function I(U){var W=U.grouping===void 0||U.thousands===void 0?C:a(E.call(U.grouping,Number),U.thousands+""),J=U.currency===void 0?"":U.currency[0]+"",ee=U.currency===void 0?"":U.currency[1]+"",ie=U.decimal===void 0?".":U.decimal+"",oe=U.numerals===void 0?C:s(E.call(U.numerals,String)),he=U.percent===void 0?"%":U.percent+"",fe=U.minus===void 0?"-":U.minus+"",Te=U.nan===void 0?"NaN":U.nan+"";function ke(Ae){Ae=u(Ae);var me=Ae.fill,Ce=Ae.align,Me=Ae.sign,We=Ae.symbol,it=Ae.zero,nt=Ae.width,gt=Ae.comma,Xe=Ae.precision,kt=Ae.trim,lt=Ae.type;lt==="n"?(gt=!0,lt="g"):M[lt]||(Xe===void 0&&(Xe=12),kt=!0,lt="g"),(it||me==="0"&&Ce==="=")&&(it=!0,me="0",Ce="=");var mt=We==="$"?J:We==="#"&&/[boxX]/.test(lt)?"0"+lt.toLowerCase():"",Bt=We==="$"?ee:/[%p]/.test(lt)?he:"",ft=M[lt],de=/[defgprs%]/.test(lt);Xe=Xe===void 0?6:/[gprs]/.test(lt)?Math.max(1,Math.min(21,Xe)):Math.max(0,Math.min(20,Xe));function De(ye){var Oe=mt,at=Bt,Je,Pt,xt;if(lt==="c")at=ft(ye)+at,ye="";else{ye=+ye;var bt=ye<0||1/ye<0;if(ye=isNaN(ye)?Te:ft(Math.abs(ye),Xe),kt&&(ye=v(ye)),bt&&+ye==0&&Me!=="+"&&(bt=!1),Oe=(bt?Me==="("?Me:fe:Me==="-"||Me==="("?"":Me)+Oe,at=(lt==="s"?L[8+m/3]:"")+at+(bt&&Me==="("?")":""),de){for(Je=-1,Pt=ye.length;++Jext||xt>57){at=(xt===46?ie+ye.slice(Je+1):ye.slice(Je))+at,ye=ye.slice(0,Je);break}}}gt&&!it&&(ye=W(ye,1/0));var Vt=Oe.length+ye.length+at.length,qt=Vt>1)+Oe+ye+at+qt.slice(Vt);break;default:ye=qt+Oe+ye+at;break}return oe(ye)}return De.toString=function(){return Ae+""},De}function Se(Ae,me){var Ce=ke((Ae=u(Ae),Ae.type="f",Ae)),Me=Math.max(-8,Math.min(8,Math.floor(i(me)/3)))*3,We=Math.pow(10,-Me),it=L[8+Me/3];return function(nt){return Ce(We*nt)+it}}return{format:ke,formatPrefix:Se}}var O;q({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function q(U){return O=I(U),e.format=O.format,e.formatPrefix=O.formatPrefix,O}function z(U){return Math.max(0,-i(Math.abs(U)))}function N(U,W){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(W)/3)))*3-i(Math.abs(U)))}function H(U,W){return U=Math.abs(U),W=Math.abs(W)-U,Math.max(0,i(W)-i(U))+1}e.FormatSpecifier=h,e.formatDefaultLocale=q,e.formatLocale=I,e.formatSpecifier=u,e.precisionFixed=z,e.precisionPrefix=N,e.precisionRound=H,Object.defineProperty(e,"__esModule",{value:!0})})});var I7=pe((nye,z7)=>{"use strict";z7.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var La=pe((oye,R7)=>{"use strict";var _j=I7();R7.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&_j(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Zi=pe((sye,F7)=>{"use strict";F7.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var X3=pe((l_,q7)=>{(function(e,t){typeof l_=="object"&&typeof q7!="undefined"?t(l_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(l_,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],m+=t[(u[h]&3)<<4|u[h+1]>>4],m+=t[(u[h+1]&15)<<2|u[h+2]>>6],m+=t[u[h+2]&63];return v%3===2?m=m.substring(0,m.length-1)+"=":v%3===1&&(m=m.substring(0,m.length-2)+"=="),m},s=function(l){var u=l.length*.75,h=l.length,v,m=0,_,T,M,C;l[l.length-1]==="="&&(u--,l[l.length-2]==="="&&u--);var E=new ArrayBuffer(u),L=new Uint8Array(E);for(v=0;v>4,L[m++]=(T&15)<<4|M>>2,L[m++]=(M&3)<<6|C&63;return E};e.decode=s,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var gc=pe((lye,N7)=>{"use strict";N7.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var Fs=pe(zu=>{"use strict";var xj=X3().decode,bj=gc(),j3=Array.isArray,wj=ArrayBuffer,Tj=DataView;function B7(e){return wj.isView(e)&&!(e instanceof Tj)}zu.isTypedArray=B7;function u_(e){return j3(e)||B7(e)}zu.isArrayOrTypedArray=u_;function Aj(e){return!u_(e[0])}zu.isArray1D=Aj;zu.ensureArray=function(e,t){return j3(e)||(e=[]),e.length=t,e};var ho={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ho.uint8c=ho.u1c;ho.uint8=ho.u1;ho.int8=ho.i1;ho.uint16=ho.u2;ho.int16=ho.i2;ho.uint32=ho.u4;ho.int32=ho.i4;ho.float32=ho.f4;ho.float64=ho.f8;function J3(e){return e.constructor===ArrayBuffer}zu.isArrayBuffer=J3;zu.decodeTypedArraySpec=function(e){var t=[],r=Mj(e),i=r.dtype,a=ho[i];if(!a)throw new Error('Error in dtype: "'+i+'"');var s=a.BYTES_PER_ELEMENT,l=r.bdata;J3(l)||(l=xj(l));var u=r.shape===void 0?[l.byteLength/s]:(""+r.shape).split(",");u.reverse();var h=u.length,v,m,_=+u[0],T=s*_,M=0;if(h===1)t=new a(l);else if(h===2)for(v=+u[1],m=0;m{"use strict";var U7=La(),Q3=Fs().isArrayOrTypedArray;Z7.exports=function(t,r){if(U7(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),a,s,l,u;for(u=0;u{"use strict";var x0=Ly(),Lj=/^\w*$/,Dj=0,Y7=1,f_=2,W7=3,ld=4;X7.exports=function(t,r,i,a){i=i||"name",a=a||"value";var s,l,u,h={};r&&r.length?(u=x0(t,r),l=u.get()):l=t,r=r||"";var v={};if(l)for(s=0;s2)return h[M]=h[M]|f_,_.set(T,null);if(m){for(s=M;s{"use strict";var Pj=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,zj=/^[^\.\[\]]+$/;J7.exports=function(e,t){for(;t;){var r=e.match(Pj);if(r)e=r[1];else if(e.match(zj))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var c_=pe((vye,Q7)=>{"use strict";var Ij=La();Q7.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Ij(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var t8=pe((dye,e8)=>{"use strict";var $7=Fs().isArrayOrTypedArray,Dy=gc();e8.exports=function e(t,r){for(var i in r){var a=r[i],s=t[i];if(s!==a)if(i.charAt(0)==="_"||typeof a=="function"){if(i in t)continue;t[i]=a}else if($7(a)&&$7(s)&&Dy(a[0])){if(i==="customdata"||i==="ids")continue;for(var l=Math.min(a.length,s.length),u=0;u{"use strict";function Rj(e,t){var r=e%t;return r<0?r+t:r}function Fj(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}r8.exports={mod:Rj,modHalf:Fj}});var Sf=pe((mye,h_)=>{(function(e){var t=/^\s+/,r=/\s+$/,i=0,a=e.round,s=e.min,l=e.max,u=e.random;function h(de,De){if(de=de||"",De=De||{},de instanceof h)return de;if(!(this instanceof h))return new h(de,De);var ye=v(de);this._originalInput=de,this._r=ye.r,this._g=ye.g,this._b=ye.b,this._a=ye.a,this._roundA=a(100*this._a)/100,this._format=De.format||ye.format,this._gradientType=De.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=ye.ok,this._tc_id=i++}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var de=this.toRgb();return(de.r*299+de.g*587+de.b*114)/1e3},getLuminance:function(){var de=this.toRgb(),De,ye,Oe,at,Je,Pt;return De=de.r/255,ye=de.g/255,Oe=de.b/255,De<=.03928?at=De/12.92:at=e.pow((De+.055)/1.055,2.4),ye<=.03928?Je=ye/12.92:Je=e.pow((ye+.055)/1.055,2.4),Oe<=.03928?Pt=Oe/12.92:Pt=e.pow((Oe+.055)/1.055,2.4),.2126*at+.7152*Je+.0722*Pt},setAlpha:function(de){return this._a=Ae(de),this._roundA=a(100*this._a)/100,this},toHsv:function(){var de=M(this._r,this._g,this._b);return{h:de.h*360,s:de.s,v:de.v,a:this._a}},toHsvString:function(){var de=M(this._r,this._g,this._b),De=a(de.h*360),ye=a(de.s*100),Oe=a(de.v*100);return this._a==1?"hsv("+De+", "+ye+"%, "+Oe+"%)":"hsva("+De+", "+ye+"%, "+Oe+"%, "+this._roundA+")"},toHsl:function(){var de=_(this._r,this._g,this._b);return{h:de.h*360,s:de.s,l:de.l,a:this._a}},toHslString:function(){var de=_(this._r,this._g,this._b),De=a(de.h*360),ye=a(de.s*100),Oe=a(de.l*100);return this._a==1?"hsl("+De+", "+ye+"%, "+Oe+"%)":"hsla("+De+", "+ye+"%, "+Oe+"%, "+this._roundA+")"},toHex:function(de){return E(this._r,this._g,this._b,de)},toHexString:function(de){return"#"+this.toHex(de)},toHex8:function(de){return L(this._r,this._g,this._b,this._a,de)},toHex8String:function(de){return"#"+this.toHex8(de)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(me(this._r,255)*100)+"%",g:a(me(this._g,255)*100)+"%",b:a(me(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(me(this._r,255)*100)+"%, "+a(me(this._g,255)*100)+"%, "+a(me(this._b,255)*100)+"%)":"rgba("+a(me(this._r,255)*100)+"%, "+a(me(this._g,255)*100)+"%, "+a(me(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ke[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(de){var De="#"+I(this._r,this._g,this._b,this._a),ye=De,Oe=this._gradientType?"GradientType = 1, ":"";if(de){var at=h(de);ye="#"+I(at._r,at._g,at._b,at._a)}return"progid:DXImageTransform.Microsoft.gradient("+Oe+"startColorstr="+De+",endColorstr="+ye+")"},toString:function(de){var De=!!de;de=de||this._format;var ye=!1,Oe=this._a<1&&this._a>=0,at=!De&&Oe&&(de==="hex"||de==="hex6"||de==="hex3"||de==="hex4"||de==="hex8"||de==="name");return at?de==="name"&&this._a===0?this.toName():this.toRgbString():(de==="rgb"&&(ye=this.toRgbString()),de==="prgb"&&(ye=this.toPercentageRgbString()),(de==="hex"||de==="hex6")&&(ye=this.toHexString()),de==="hex3"&&(ye=this.toHexString(!0)),de==="hex4"&&(ye=this.toHex8String(!0)),de==="hex8"&&(ye=this.toHex8String()),de==="name"&&(ye=this.toName()),de==="hsl"&&(ye=this.toHslString()),de==="hsv"&&(ye=this.toHsvString()),ye||this.toHexString())},clone:function(){return h(this.toString())},_applyModification:function(de,De){var ye=de.apply(null,[this].concat([].slice.call(De)));return this._r=ye._r,this._g=ye._g,this._b=ye._b,this.setAlpha(ye._a),this},lighten:function(){return this._applyModification(N,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(U,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(q,arguments)},greyscale:function(){return this._applyModification(z,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(de,De){return de.apply(null,[this].concat([].slice.call(De)))},analogous:function(){return this._applyCombination(he,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(fe,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(ee,arguments)},tetrad:function(){return this._applyCombination(ie,arguments)}},h.fromRatio=function(de,De){if(typeof de=="object"){var ye={};for(var Oe in de)de.hasOwnProperty(Oe)&&(Oe==="a"?ye[Oe]=de[Oe]:ye[Oe]=gt(de[Oe]));de=ye}return h(de,De)};function v(de){var De={r:0,g:0,b:0},ye=1,Oe=null,at=null,Je=null,Pt=!1,xt=!1;return typeof de=="string"&&(de=Bt(de)),typeof de=="object"&&(mt(de.r)&&mt(de.g)&&mt(de.b)?(De=m(de.r,de.g,de.b),Pt=!0,xt=String(de.r).substr(-1)==="%"?"prgb":"rgb"):mt(de.h)&&mt(de.s)&&mt(de.v)?(Oe=gt(de.s),at=gt(de.v),De=C(de.h,Oe,at),Pt=!0,xt="hsv"):mt(de.h)&&mt(de.s)&&mt(de.l)&&(Oe=gt(de.s),Je=gt(de.l),De=T(de.h,Oe,Je),Pt=!0,xt="hsl"),de.hasOwnProperty("a")&&(ye=de.a)),ye=Ae(ye),{ok:Pt,format:de.format||xt,r:s(255,l(De.r,0)),g:s(255,l(De.g,0)),b:s(255,l(De.b,0)),a:ye}}function m(de,De,ye){return{r:me(de,255)*255,g:me(De,255)*255,b:me(ye,255)*255}}function _(de,De,ye){de=me(de,255),De=me(De,255),ye=me(ye,255);var Oe=l(de,De,ye),at=s(de,De,ye),Je,Pt,xt=(Oe+at)/2;if(Oe==at)Je=Pt=0;else{var bt=Oe-at;switch(Pt=xt>.5?bt/(2-Oe-at):bt/(Oe+at),Oe){case de:Je=(De-ye)/bt+(De1&&(Dt-=1),Dt<1/6?Vt+(qt-Vt)*6*Dt:Dt<1/2?qt:Dt<2/3?Vt+(qt-Vt)*(2/3-Dt)*6:Vt}if(De===0)Oe=at=Je=ye;else{var xt=ye<.5?ye*(1+De):ye+De-ye*De,bt=2*ye-xt;Oe=Pt(bt,xt,de+1/3),at=Pt(bt,xt,de),Je=Pt(bt,xt,de-1/3)}return{r:Oe*255,g:at*255,b:Je*255}}function M(de,De,ye){de=me(de,255),De=me(De,255),ye=me(ye,255);var Oe=l(de,De,ye),at=s(de,De,ye),Je,Pt,xt=Oe,bt=Oe-at;if(Pt=Oe===0?0:bt/Oe,Oe==at)Je=0;else{switch(Oe){case de:Je=(De-ye)/bt+(De>1)+720)%360;--De;)Oe.h=(Oe.h+at)%360,Je.push(h(Oe));return Je}function fe(de,De){De=De||6;for(var ye=h(de).toHsv(),Oe=ye.h,at=ye.s,Je=ye.v,Pt=[],xt=1/De;De--;)Pt.push(h({h:Oe,s:at,v:Je})),Je=(Je+xt)%1;return Pt}h.mix=function(de,De,ye){ye=ye===0?0:ye||50;var Oe=h(de).toRgb(),at=h(De).toRgb(),Je=ye/100,Pt={r:(at.r-Oe.r)*Je+Oe.r,g:(at.g-Oe.g)*Je+Oe.g,b:(at.b-Oe.b)*Je+Oe.b,a:(at.a-Oe.a)*Je+Oe.a};return h(Pt)},h.readability=function(de,De){var ye=h(de),Oe=h(De);return(e.max(ye.getLuminance(),Oe.getLuminance())+.05)/(e.min(ye.getLuminance(),Oe.getLuminance())+.05)},h.isReadable=function(de,De,ye){var Oe=h.readability(de,De),at,Je;switch(Je=!1,at=ft(ye),at.level+at.size){case"AAsmall":case"AAAlarge":Je=Oe>=4.5;break;case"AAlarge":Je=Oe>=3;break;case"AAAsmall":Je=Oe>=7;break}return Je},h.mostReadable=function(de,De,ye){var Oe=null,at=0,Je,Pt,xt,bt;ye=ye||{},Pt=ye.includeFallbackColors,xt=ye.level,bt=ye.size;for(var Vt=0;Vtat&&(at=Je,Oe=h(De[Vt]));return h.isReadable(de,Oe,{level:xt,size:bt})||!Pt?Oe:(ye.includeFallbackColors=!1,h.mostReadable(de,["#fff","#000"],ye))};var Te=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ke=h.hexNames=Se(Te);function Se(de){var De={};for(var ye in de)de.hasOwnProperty(ye)&&(De[de[ye]]=ye);return De}function Ae(de){return de=parseFloat(de),(isNaN(de)||de<0||de>1)&&(de=1),de}function me(de,De){We(de)&&(de="100%");var ye=it(de);return de=s(De,l(0,parseFloat(de))),ye&&(de=parseInt(de*De,10)/100),e.abs(de-De)<1e-6?1:de%De/parseFloat(De)}function Ce(de){return s(1,l(0,de))}function Me(de){return parseInt(de,16)}function We(de){return typeof de=="string"&&de.indexOf(".")!=-1&&parseFloat(de)===1}function it(de){return typeof de=="string"&&de.indexOf("%")!=-1}function nt(de){return de.length==1?"0"+de:""+de}function gt(de){return de<=1&&(de=de*100+"%"),de}function Xe(de){return e.round(parseFloat(de)*255).toString(16)}function kt(de){return Me(de)/255}var lt=function(){var de="[-\\+]?\\d+%?",De="[-\\+]?\\d*\\.\\d+%?",ye="(?:"+De+")|(?:"+de+")",Oe="[\\s|\\(]+("+ye+")[,|\\s]+("+ye+")[,|\\s]+("+ye+")\\s*\\)?",at="[\\s|\\(]+("+ye+")[,|\\s]+("+ye+")[,|\\s]+("+ye+")[,|\\s]+("+ye+")\\s*\\)?";return{CSS_UNIT:new RegExp(ye),rgb:new RegExp("rgb"+Oe),rgba:new RegExp("rgba"+at),hsl:new RegExp("hsl"+Oe),hsla:new RegExp("hsla"+at),hsv:new RegExp("hsv"+Oe),hsva:new RegExp("hsva"+at),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function mt(de){return!!lt.CSS_UNIT.exec(de)}function Bt(de){de=de.replace(t,"").replace(r,"").toLowerCase();var De=!1;if(Te[de])de=Te[de],De=!0;else if(de=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ye;return(ye=lt.rgb.exec(de))?{r:ye[1],g:ye[2],b:ye[3]}:(ye=lt.rgba.exec(de))?{r:ye[1],g:ye[2],b:ye[3],a:ye[4]}:(ye=lt.hsl.exec(de))?{h:ye[1],s:ye[2],l:ye[3]}:(ye=lt.hsla.exec(de))?{h:ye[1],s:ye[2],l:ye[3],a:ye[4]}:(ye=lt.hsv.exec(de))?{h:ye[1],s:ye[2],v:ye[3]}:(ye=lt.hsva.exec(de))?{h:ye[1],s:ye[2],v:ye[3],a:ye[4]}:(ye=lt.hex8.exec(de))?{r:Me(ye[1]),g:Me(ye[2]),b:Me(ye[3]),a:kt(ye[4]),format:De?"name":"hex8"}:(ye=lt.hex6.exec(de))?{r:Me(ye[1]),g:Me(ye[2]),b:Me(ye[3]),format:De?"name":"hex"}:(ye=lt.hex4.exec(de))?{r:Me(ye[1]+""+ye[1]),g:Me(ye[2]+""+ye[2]),b:Me(ye[3]+""+ye[3]),a:kt(ye[4]+""+ye[4]),format:De?"name":"hex8"}:(ye=lt.hex3.exec(de))?{r:Me(ye[1]+""+ye[1]),g:Me(ye[2]+""+ye[2]),b:Me(ye[3]+""+ye[3]),format:De?"name":"hex"}:!1}function ft(de){var De,ye;return de=de||{level:"AA",size:"small"},De=(de.level||"AA").toUpperCase(),ye=(de.size||"small").toLowerCase(),De!=="AA"&&De!=="AAA"&&(De="AA"),ye!=="small"&&ye!=="large"&&(ye="small"),{level:De,size:ye}}typeof h_!="undefined"&&h_.exports?h_.exports=h:window.tinycolor=h})(Math)});var mn=pe(Iy=>{"use strict";var a8=gc(),Py=Array.isArray;function qj(e,t){var r,i;for(r=0;r{"use strict";i8.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var a={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var s={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:a,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(s.size.dflt="auto"),e.autoColor&&(s.color.dflt="auto"),e.arrayOk&&(s.family.arrayOk=!0,s.weight.arrayOk=!0,s.style.arrayOk=!0,e.noFontVariant||(s.variant.arrayOk=!0),e.noFontTextcase||(s.textcase.arrayOk=!0),e.noFontLineposition||(s.lineposition.arrayOk=!0),e.noFontShadow||(s.shadow.arrayOk=!0),s.size.arrayOk=!0,s.color.arrayOk=!0),s}});var Ry=pe((_ye,n8)=>{"use strict";n8.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var w0=pe((xye,l8)=>{"use strict";var o8=Ry(),s8=qo(),$3=s8({editType:"none"});$3.family.dflt=o8.HOVERFONT;$3.size.dflt=o8.HOVERFONTSIZE;l8.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:$3,grouptitlefont:s8({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var v_=pe((bye,u8)=>{"use strict";var Nj=qo(),Fy=w0().hoverlabel,qy=mn().extendFlat;u8.exports={hoverlabel:{bgcolor:qy({},Fy.bgcolor,{arrayOk:!0}),bordercolor:qy({},Fy.bordercolor,{arrayOk:!0}),font:Nj({arrayOk:!0,editType:"none"}),align:qy({},Fy.align,{arrayOk:!0}),namelength:qy({},Fy.namelength,{arrayOk:!0}),showarrow:qy({},Fy.showarrow),editType:"none"}}});var ys=pe((wye,f8)=>{"use strict";var Bj=qo(),Oj=v_();f8.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Bj({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Oj.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ud=pe((Tye,v8)=>{"use strict";var Uj=Sf(),d_={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},c8=d_.RdBu;function Vj(e,t){if(t||(t=c8),!e)return t;function r(){try{e=d_[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),h8(e)?e:t}function h8(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";fd.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];fd.defaultLine="#444";fd.lightLine="#eee";fd.background="#fff";fd.borderLine="#BEC8D9";fd.lightFraction=100*10/11});var Ba=pe((Mye,d8)=>{"use strict";var qs=Sf(),Gj=La(),Zj=Fs().isTypedArray,$n=d8.exports={},p_=kf();$n.defaults=p_.defaults;var Yj=$n.defaultLine=p_.defaultLine;$n.lightLine=p_.lightLine;var tw=$n.background=p_.background;$n.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};$n.rgb=function(e){return $n.tinyRGB(qs(e))};$n.opacity=function(e){return e?qs(e).getAlpha():0};$n.addOpacity=function(e,t){var r=qs(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};$n.combine=function(e,t){var r=qs(e).toRgb();if(r.a===1)return qs(e).toRgbString();var i=qs(t||tw).toRgb(),a=i.a===1?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},s={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return qs(s).toRgbString()};$n.interpolate=function(e,t,r){var i=qs(e).toRgb(),a=qs(t).toRgb(),s={r:r*i.r+(1-r)*a.r,g:r*i.g+(1-r)*a.g,b:r*i.b+(1-r)*a.b};return qs(s).toRgbString()};$n.contrast=function(e,t,r){var i=qs(e);i.getAlpha()!==1&&(i=qs($n.combine(e,tw)));var a=i.isDark()?t?i.lighten(t):tw:r?i.darken(r):Yj;return a.toString()};$n.stroke=function(e,t){var r=qs(t);e.style({stroke:$n.tinyRGB(r),"stroke-opacity":r.getAlpha()})};$n.fill=function(e,t){var r=qs(t);e.style({fill:$n.tinyRGB(r),"fill-opacity":r.getAlpha()})};$n.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,i,a,s;for(r=0;r=0)))return e;if(s===3)i[s]>1&&(i[s]=1);else if(i[s]>=1)return e}var l=Math.round(i[0]*255)+", "+Math.round(i[1]*255)+", "+Math.round(i[2]*255);return a?"rgba("+l+", "+i[3]+")":"rgb("+l+")"}});var m_=pe((Sye,p8)=>{"use strict";p8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var T0=pe(m8=>{"use strict";m8.counter=function(e,t,r,i){var a=(t||"")+(r?"":"$"),s=i===!1?"":"^";return e==="xy"?new RegExp(s+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(s+e+"([2-9]|[1-9][0-9]+)?"+a)}});var x8=pe(Ns=>{"use strict";var rw=La(),y8=Sf(),g8=mn().extendFlat,Wj=ys(),Xj=ud(),jj=Ba(),Jj=m_().DESELECTDIM,A0=Ly(),_8=T0().counter,Kj=b0().modHalf,Iu=Fs().isArrayOrTypedArray,Ch=Fs().isTypedArraySpec,Eh=Fs().decodeTypedArraySpec;Ns.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Iu(e)?e:Ch(e)?Eh(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;is===!0||s===!1;a(e)||i.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,i){Ch(e)&&(e=Eh(e)),!rw(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}Ch(e)&&(e=Eh(e)),e%1||!rw(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var a=typeof e=="number";i.strict===!0||!a?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Ch(e)&&(e=Eh(e)),y8(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function i(a){return y8(a).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(i)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Xj.get(e,r))}},angle:{coerceFunction:function(e,t,r){Ch(e)&&(e=Eh(e)),e==="auto"?t.set("auto"):rw(e)?t.set(Kj(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||_8(r);let s=l=>typeof l=="string"&&a.test(l);s(e)||i.arrayOk&&Iu(e)&&e.length>0&&e.every(s)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!_8(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var a=e.split("+"),s=0;s{"use strict";var b8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},w8={};function T8(e,t){for(var r in e){var i=e[r];i.valType?t[r]=i.dflt:(t[r]||(t[r]={}),T8(i,t[r]))}}T8(b8,w8);A8.exports={configAttributes:b8,dfltConfig:w8}});var iw=pe((Lye,M8)=>{"use strict";var aw=Xa(),Qj=La(),Ny=[];M8.exports=function(e,t,r){var u;if(((u=r==null?void 0:r._context)==null?void 0:u.displayNotifier)===!1||Ny.indexOf(e)!==-1)return;Ny.push(e);var i=1e3;Qj(t)?i=t:t==="long"&&(i=3e3);var a=aw.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var s=a.selectAll(".notifier-note").data(Ny);function l(h){h.duration(700).style("opacity",0).each("end",function(v){var m=Ny.indexOf(v);m!==-1&&Ny.splice(m,1),aw.select(this).remove()})}s.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(h){var v=aw.select(this);v.append("button").classed("notifier-close",!0).html("×").on("click",function(){v.transition().call(l)});for(var m=v.append("p"),_=h.split(//g),T=0;T<_.length;T++)T&&m.append("br"),m.append("span").text(_[T]);t==="stick"?v.transition().duration(350).style("opacity",1):v.transition().duration(700).style("opacity",1).transition().delay(i).call(l)})}});var Lh=pe((Dye,S8)=>{"use strict";var M0=cd().dfltConfig,nw=iw(),ow=S8.exports={};ow.log=function(){var e;if(M0.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};ow.warn=function(){var e;if(M0.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};ow.error=function(){var e;if(M0.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var g_=pe((Pye,k8)=>{"use strict";k8.exports=function(){}});var sw=pe((zye,C8)=>{"use strict";C8.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{E8.exports=$j;function $j(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var P8=pe((Rye,D8)=>{D8.exports=eJ;function eJ(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var I8=pe((Fye,z8)=>{z8.exports=tJ;function tJ(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var lw=pe((qye,R8)=>{R8.exports=rJ;function rJ(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var q8=pe((Nye,F8)=>{F8.exports=aJ;function aJ(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],s=t[6],l=t[7],u=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=a,e[13]=l,e[14]=u}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var B8=pe((Bye,N8)=>{N8.exports=iJ;function iJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],M=t[11],C=t[12],E=t[13],L=t[14],I=t[15],O=r*u-i*l,q=r*h-a*l,z=r*v-s*l,N=i*h-a*u,H=i*v-s*u,U=a*v-s*h,W=m*E-_*C,J=m*L-T*C,ee=m*I-M*C,ie=_*L-T*E,oe=_*I-M*E,he=T*I-M*L,fe=O*he-q*oe+z*ie+N*ee-H*J+U*W;return fe?(fe=1/fe,e[0]=(u*he-h*oe+v*ie)*fe,e[1]=(a*oe-i*he-s*ie)*fe,e[2]=(E*U-L*H+I*N)*fe,e[3]=(T*H-_*U-M*N)*fe,e[4]=(h*ee-l*he-v*J)*fe,e[5]=(r*he-a*ee+s*J)*fe,e[6]=(L*z-C*U-I*q)*fe,e[7]=(m*U-T*z+M*q)*fe,e[8]=(l*oe-u*ee+v*W)*fe,e[9]=(i*ee-r*oe-s*W)*fe,e[10]=(C*H-E*z+I*O)*fe,e[11]=(_*z-m*H-M*O)*fe,e[12]=(u*J-l*ie-h*W)*fe,e[13]=(r*ie-i*J+a*W)*fe,e[14]=(E*q-C*N-L*O)*fe,e[15]=(m*N-_*q+T*O)*fe,e):null}});var U8=pe((Oye,O8)=>{O8.exports=nJ;function nJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],M=t[11],C=t[12],E=t[13],L=t[14],I=t[15];return e[0]=u*(T*I-M*L)-_*(h*I-v*L)+E*(h*M-v*T),e[1]=-(i*(T*I-M*L)-_*(a*I-s*L)+E*(a*M-s*T)),e[2]=i*(h*I-v*L)-u*(a*I-s*L)+E*(a*v-s*h),e[3]=-(i*(h*M-v*T)-u*(a*M-s*T)+_*(a*v-s*h)),e[4]=-(l*(T*I-M*L)-m*(h*I-v*L)+C*(h*M-v*T)),e[5]=r*(T*I-M*L)-m*(a*I-s*L)+C*(a*M-s*T),e[6]=-(r*(h*I-v*L)-l*(a*I-s*L)+C*(a*v-s*h)),e[7]=r*(h*M-v*T)-l*(a*M-s*T)+m*(a*v-s*h),e[8]=l*(_*I-M*E)-m*(u*I-v*E)+C*(u*M-v*_),e[9]=-(r*(_*I-M*E)-m*(i*I-s*E)+C*(i*M-s*_)),e[10]=r*(u*I-v*E)-l*(i*I-s*E)+C*(i*v-s*u),e[11]=-(r*(u*M-v*_)-l*(i*M-s*_)+m*(i*v-s*u)),e[12]=-(l*(_*L-T*E)-m*(u*L-h*E)+C*(u*T-h*_)),e[13]=r*(_*L-T*E)-m*(i*L-a*E)+C*(i*T-a*_),e[14]=-(r*(u*L-h*E)-l*(i*L-a*E)+C*(i*h-a*u)),e[15]=r*(u*T-h*_)-l*(i*T-a*_)+m*(i*h-a*u),e}});var H8=pe((Uye,V8)=>{V8.exports=oJ;function oJ(e){var t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],l=e[5],u=e[6],h=e[7],v=e[8],m=e[9],_=e[10],T=e[11],M=e[12],C=e[13],E=e[14],L=e[15],I=t*l-r*s,O=t*u-i*s,q=t*h-a*s,z=r*u-i*l,N=r*h-a*l,H=i*h-a*u,U=v*C-m*M,W=v*E-_*M,J=v*L-T*M,ee=m*E-_*C,ie=m*L-T*C,oe=_*L-T*E;return I*oe-O*ie+q*ee+z*J-N*W+H*U}});var Z8=pe((Vye,G8)=>{G8.exports=sJ;function sJ(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],u=t[4],h=t[5],v=t[6],m=t[7],_=t[8],T=t[9],M=t[10],C=t[11],E=t[12],L=t[13],I=t[14],O=t[15],q=r[0],z=r[1],N=r[2],H=r[3];return e[0]=q*i+z*u+N*_+H*E,e[1]=q*a+z*h+N*T+H*L,e[2]=q*s+z*v+N*M+H*I,e[3]=q*l+z*m+N*C+H*O,q=r[4],z=r[5],N=r[6],H=r[7],e[4]=q*i+z*u+N*_+H*E,e[5]=q*a+z*h+N*T+H*L,e[6]=q*s+z*v+N*M+H*I,e[7]=q*l+z*m+N*C+H*O,q=r[8],z=r[9],N=r[10],H=r[11],e[8]=q*i+z*u+N*_+H*E,e[9]=q*a+z*h+N*T+H*L,e[10]=q*s+z*v+N*M+H*I,e[11]=q*l+z*m+N*C+H*O,q=r[12],z=r[13],N=r[14],H=r[15],e[12]=q*i+z*u+N*_+H*E,e[13]=q*a+z*h+N*T+H*L,e[14]=q*s+z*v+N*M+H*I,e[15]=q*l+z*m+N*C+H*O,e}});var W8=pe((Hye,Y8)=>{Y8.exports=lJ;function lJ(e,t,r){var i=r[0],a=r[1],s=r[2],l,u,h,v,m,_,T,M,C,E,L,I;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*s+t[12],e[13]=t[1]*i+t[5]*a+t[9]*s+t[13],e[14]=t[2]*i+t[6]*a+t[10]*s+t[14],e[15]=t[3]*i+t[7]*a+t[11]*s+t[15]):(l=t[0],u=t[1],h=t[2],v=t[3],m=t[4],_=t[5],T=t[6],M=t[7],C=t[8],E=t[9],L=t[10],I=t[11],e[0]=l,e[1]=u,e[2]=h,e[3]=v,e[4]=m,e[5]=_,e[6]=T,e[7]=M,e[8]=C,e[9]=E,e[10]=L,e[11]=I,e[12]=l*i+m*a+C*s+t[12],e[13]=u*i+_*a+E*s+t[13],e[14]=h*i+T*a+L*s+t[14],e[15]=v*i+M*a+I*s+t[15]),e}});var j8=pe((Gye,X8)=>{X8.exports=uJ;function uJ(e,t,r){var i=r[0],a=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var K8=pe((Zye,J8)=>{J8.exports=fJ;function fJ(e,t,r,i){var a=i[0],s=i[1],l=i[2],u=Math.sqrt(a*a+s*s+l*l),h,v,m,_,T,M,C,E,L,I,O,q,z,N,H,U,W,J,ee,ie,oe,he,fe,Te;return Math.abs(u)<1e-6?null:(u=1/u,a*=u,s*=u,l*=u,h=Math.sin(r),v=Math.cos(r),m=1-v,_=t[0],T=t[1],M=t[2],C=t[3],E=t[4],L=t[5],I=t[6],O=t[7],q=t[8],z=t[9],N=t[10],H=t[11],U=a*a*m+v,W=s*a*m+l*h,J=l*a*m-s*h,ee=a*s*m-l*h,ie=s*s*m+v,oe=l*s*m+a*h,he=a*l*m+s*h,fe=s*l*m-a*h,Te=l*l*m+v,e[0]=_*U+E*W+q*J,e[1]=T*U+L*W+z*J,e[2]=M*U+I*W+N*J,e[3]=C*U+O*W+H*J,e[4]=_*ee+E*ie+q*oe,e[5]=T*ee+L*ie+z*oe,e[6]=M*ee+I*ie+N*oe,e[7]=C*ee+O*ie+H*oe,e[8]=_*he+E*fe+q*Te,e[9]=T*he+L*fe+z*Te,e[10]=M*he+I*fe+N*Te,e[11]=C*he+O*fe+H*Te,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var $8=pe((Yye,Q8)=>{Q8.exports=cJ;function cJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[4],l=t[5],u=t[6],h=t[7],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*a+v*i,e[5]=l*a+m*i,e[6]=u*a+_*i,e[7]=h*a+T*i,e[8]=v*a-s*i,e[9]=m*a-l*i,e[10]=_*a-u*i,e[11]=T*a-h*i,e}});var tS=pe((Wye,eS)=>{eS.exports=hJ;function hJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],u=t[2],h=t[3],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a-v*i,e[1]=l*a-m*i,e[2]=u*a-_*i,e[3]=h*a-T*i,e[8]=s*i+v*a,e[9]=l*i+m*a,e[10]=u*i+_*a,e[11]=h*i+T*a,e}});var aS=pe((Xye,rS)=>{rS.exports=vJ;function vJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],u=t[2],h=t[3],v=t[4],m=t[5],_=t[6],T=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a+v*i,e[1]=l*a+m*i,e[2]=u*a+_*i,e[3]=h*a+T*i,e[4]=v*a-s*i,e[5]=m*a-l*i,e[6]=_*a-u*i,e[7]=T*a-h*i,e}});var nS=pe((jye,iS)=>{iS.exports=dJ;function dJ(e,t,r){var i,a,s,l=r[0],u=r[1],h=r[2],v=Math.sqrt(l*l+u*u+h*h);return Math.abs(v)<1e-6?null:(v=1/v,l*=v,u*=v,h*=v,i=Math.sin(t),a=Math.cos(t),s=1-a,e[0]=l*l*s+a,e[1]=u*l*s+h*i,e[2]=h*l*s-u*i,e[3]=0,e[4]=l*u*s-h*i,e[5]=u*u*s+a,e[6]=h*u*s+l*i,e[7]=0,e[8]=l*h*s+u*i,e[9]=u*h*s-l*i,e[10]=h*h*s+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var sS=pe((Jye,oS)=>{oS.exports=pJ;function pJ(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],u=i+i,h=a+a,v=s+s,m=i*u,_=i*h,T=i*v,M=a*h,C=a*v,E=s*v,L=l*u,I=l*h,O=l*v;return e[0]=1-(M+E),e[1]=_+O,e[2]=T-I,e[3]=0,e[4]=_-O,e[5]=1-(m+E),e[6]=C+L,e[7]=0,e[8]=T+I,e[9]=C-L,e[10]=1-(m+M),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var uS=pe((Kye,lS)=>{lS.exports=mJ;function mJ(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var cS=pe((Qye,fS)=>{fS.exports=yJ;function yJ(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var vS=pe(($ye,hS)=>{hS.exports=gJ;function gJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var pS=pe((ege,dS)=>{dS.exports=_J;function _J(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var yS=pe((tge,mS)=>{mS.exports=xJ;function xJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var _S=pe((rge,gS)=>{gS.exports=bJ;function bJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=r+r,u=i+i,h=a+a,v=r*l,m=i*l,_=i*u,T=a*l,M=a*u,C=a*h,E=s*l,L=s*u,I=s*h;return e[0]=1-_-C,e[1]=m+I,e[2]=T-L,e[3]=0,e[4]=m-I,e[5]=1-v-C,e[6]=M+E,e[7]=0,e[8]=T+L,e[9]=M-E,e[10]=1-v-_,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var bS=pe((age,xS)=>{xS.exports=wJ;function wJ(e,t,r,i,a,s,l){var u=1/(r-t),h=1/(a-i),v=1/(s-l);return e[0]=s*2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s*2*h,e[6]=0,e[7]=0,e[8]=(r+t)*u,e[9]=(a+i)*h,e[10]=(l+s)*v,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*s*2*v,e[15]=0,e}});var TS=pe((ige,wS)=>{wS.exports=TJ;function TJ(e,t,r,i,a){var s=1/Math.tan(t/2),l=1/(i-a);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+i)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*i*l,e[15]=0,e}});var MS=pe((nge,AS)=>{AS.exports=AJ;function AJ(e,t,r,i){var a=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),l=Math.tan(t.leftDegrees*Math.PI/180),u=Math.tan(t.rightDegrees*Math.PI/180),h=2/(l+u),v=2/(a+s);return e[0]=h,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=v,e[6]=0,e[7]=0,e[8]=-((l-u)*h*.5),e[9]=(a-s)*v*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var kS=pe((oge,SS)=>{SS.exports=MJ;function MJ(e,t,r,i,a,s,l){var u=1/(t-r),h=1/(i-a),v=1/(s-l);return e[0]=-2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*h,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*v,e[11]=0,e[12]=(t+r)*u,e[13]=(a+i)*h,e[14]=(l+s)*v,e[15]=1,e}});var ES=pe((sge,CS)=>{var SJ=lw();CS.exports=kJ;function kJ(e,t,r,i){var a,s,l,u,h,v,m,_,T,M,C=t[0],E=t[1],L=t[2],I=i[0],O=i[1],q=i[2],z=r[0],N=r[1],H=r[2];return Math.abs(C-z)<1e-6&&Math.abs(E-N)<1e-6&&Math.abs(L-H)<1e-6?SJ(e):(m=C-z,_=E-N,T=L-H,M=1/Math.sqrt(m*m+_*_+T*T),m*=M,_*=M,T*=M,a=O*T-q*_,s=q*m-I*T,l=I*_-O*m,M=Math.sqrt(a*a+s*s+l*l),M?(M=1/M,a*=M,s*=M,l*=M):(a=0,s=0,l=0),u=_*l-T*s,h=T*a-m*l,v=m*s-_*a,M=Math.sqrt(u*u+h*h+v*v),M?(M=1/M,u*=M,h*=M,v*=M):(u=0,h=0,v=0),e[0]=a,e[1]=u,e[2]=m,e[3]=0,e[4]=s,e[5]=h,e[6]=_,e[7]=0,e[8]=l,e[9]=v,e[10]=T,e[11]=0,e[12]=-(a*C+s*E+l*L),e[13]=-(u*C+h*E+v*L),e[14]=-(m*C+_*E+T*L),e[15]=1,e)}});var DS=pe((lge,LS)=>{LS.exports=CJ;function CJ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var uw=pe((uge,PS)=>{PS.exports={create:L8(),clone:P8(),copy:I8(),identity:lw(),transpose:q8(),invert:B8(),adjoint:U8(),determinant:H8(),multiply:Z8(),translate:W8(),scale:j8(),rotate:K8(),rotateX:$8(),rotateY:tS(),rotateZ:aS(),fromRotation:nS(),fromRotationTranslation:sS(),fromScaling:uS(),fromTranslation:cS(),fromXRotation:vS(),fromYRotation:pS(),fromZRotation:yS(),fromQuat:_S(),frustum:bS(),perspective:TS(),perspectiveFromFieldOfView:MS(),ortho:kS(),lookAt:ES(),str:DS()}});var __=pe(Cn=>{"use strict";var EJ=uw();Cn.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var LJ=Xa(),zS=Lh(),DJ=__(),PJ=uw();function zJ(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function IJ(e){var t=LJ.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function IS(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function RJ(e,t){RS("global",e,t)}function RS(e,t,r){var i="plotly.js-style-"+e,a=document.getElementById(i);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",i),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var s=a.sheet;s?s.insertRule?s.insertRule(t+"{"+r+"}",0):s.addRule?s.addRule(t,r,0):zS.warn("addStyleRule failed"):zS.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function FJ(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&IS(r)}function qJ(e,t,r,i,a,s){var l=i.split(":"),u=a.split(":"),h="data-btn-style-event-added";s||(s=document),s.querySelectorAll(e).forEach(function(v){v.getAttribute(h)||(v.addEventListener("mouseenter",function(){var m=this.querySelector(r);m&&(m.style[l[0]]=l[1])}),v.addEventListener("mouseleave",function(){var m=this.querySelector(r);m&&(t&&this.matches(t)?m.style[l[0]]=l[1]:m.style[u[0]]=u[1])}),v.setAttribute(h,!0))})}function NJ(e){var t=qS(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var a=FS(i);if(a){var s=DJ.convertCssMatrix(a);r=PJ.multiply(r,r,s)}}),r}function FS(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function qS(e){for(var t=[];BJ(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function BJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function OJ(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}NS.exports={getGraphDiv:zJ,isPlotDiv:IJ,removeElement:IS,addStyleRule:RJ,addRelatedStyleRule:RS,deleteRelatedStyleRule:FJ,setStyleOnHover:qJ,getFullTransformMatrix:NJ,getElementTransformMatrix:FS,getElementAndAncestors:qS,equalDomRects:OJ}});var Oy=pe((hge,BS)=>{"use strict";BS.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var il=pe((vge,YS)=>{"use strict";var US=mn().extendFlat,UJ=gc(),VS={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},HS={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},VJ=VS.flags.slice().concat(["fullReplot"]),HJ=HS.flags.slice().concat("layoutReplot");YS.exports={traces:VS,layout:HS,traceFlags:function(){return OS(VJ)},layoutFlags:function(){return OS(HJ)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";fw.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};fw.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var cw=pe((pge,WS)=>{"use strict";WS.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Cf=pe(S0=>{"use strict";var{DATE_FORMAT_LINK:GJ,FORMAT_LINK:ZJ}=cw(),YJ=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function WJ({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,ZJ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,GJ,"for details on the date formatting syntax.",YJ].join(" ")}S0.templateFormatStringDescription=WJ;S0.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>sd({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});S0.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>sd({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});S0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});S0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var w_=pe((gge,$S)=>{"use strict";function Dh(e,t){return t?t.d2l(e):e}function XS(e,t){return t?t.l2d(e):e}function XJ(e){return e.x0}function jJ(e){return e.x1}function JJ(e){return e.y0}function KJ(e){return e.y1}function jS(e){return e.x0shift||0}function JS(e){return e.x1shift||0}function KS(e){return e.y0shift||0}function QS(e){return e.y1shift||0}function x_(e,t){return Dh(e.x1,t)+JS(e)-Dh(e.x0,t)-jS(e)}function b_(e,t,r){return Dh(e.y1,r)+QS(e)-Dh(e.y0,r)-KS(e)}function QJ(e,t){return Math.abs(x_(e,t))}function $J(e,t,r){return Math.abs(b_(e,t,r))}function eK(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(x_(e,t),2)+Math.pow(b_(e,t,r),2))}function tK(e,t){return XS((Dh(e.x1,t)+JS(e)+Dh(e.x0,t)+jS(e))/2,t)}function rK(e,t,r){return XS((Dh(e.y1,r)+QS(e)+Dh(e.y0,r)+KS(e))/2,r)}function aK(e,t,r){return e.type!=="line"?void 0:b_(e,t,r)/x_(e,t)}var iK=["x0","x1","y0","y1","dy","height","ycenter"],nK=["x0","x1","y0","y1","dx","width","xcenter"];$S.exports={x0:XJ,x1:jJ,y0:JJ,y1:KJ,slope:aK,dx:x_,dy:b_,width:QJ,height:$J,length:eK,xcenter:tK,ycenter:rK,simpleXVariables:iK,simpleYVariables:nK}});var r9=pe((_ge,t9)=>{"use strict";var oK=il().overrideAll,hd=ys(),e9=qo(),sK=_c().dash,Ph=mn().extendFlat,{shapeTexttemplateAttrs:lK,templatefallbackAttrs:uK}=Cf(),fK=w_();t9.exports=oK({newshape:{visible:Ph({},hd.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Ph({},hd.legend,{}),legendgroup:Ph({},hd.legendgroup,{}),legendgrouptitle:{text:Ph({},hd.legendgrouptitle.text,{}),font:e9({})},legendrank:Ph({},hd.legendrank,{}),legendwidth:Ph({},hd.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ph({},sK,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Ph({},hd.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:lK({newshape:!0},{keys:Object.keys(fK)}),texttemplatefallback:uK({editType:"arraydraw"}),font:e9({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var i9=pe((xge,a9)=>{"use strict";var cK=_c().dash,hK=mn().extendFlat;a9.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:hK({},cK,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var T_=pe((bge,n9)=>{"use strict";n9.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var k0=pe((wge,u9)=>{"use strict";var hw=qo(),vK=Oy(),A_=kf(),o9=r9(),s9=i9(),dK=T_(),l9=mn().extendFlat,M_=hw({editType:"calc"});M_.family.dflt='"Open Sans", verdana, arial, sans-serif';M_.size.dflt=12;M_.color.dflt=A_.defaultLine;u9.exports={font:M_,title:{text:{valType:"string",editType:"layoutstyle"},font:hw({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:hw({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:l9(dK({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:A_.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:A_.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:A_.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:o9.newshape,activeshape:o9.activeshape,newselection:s9.newselection,activeselection:s9.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:l9({},vK.transition,{editType:"none"})}});var f9=pe(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var la=pe(Da=>{"use strict";var C0=Lh(),c9=g_(),h9=sw(),pK=gc(),mK=By().addStyleRule,v9=mn(),yK=ys(),gK=k0(),_K=v9.extendFlat,vw=v9.extendDeepAll;Da.modules={};Da.allCategories={};Da.allTypes=[];Da.subplotsRegistry={};Da.componentsRegistry={};Da.layoutArrayContainers=[];Da.layoutArrayRegexes=[];Da.traceLayoutAttributes={};Da.localeRegistry={};Da.apiMethodRegistry={};Da.collectableSubplotTypes=null;Da.register=function(t){if(Da.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var MK=_0().timeFormat,A9=La(),dw=Lh(),Ih=b0().mod,D0=Zi(),Gl=D0.BADNUM,Bs=D0.ONEDAY,Uy=D0.ONEHOUR,zh=D0.ONEMIN,L0=D0.ONESEC,Vy=D0.EPOCHJD,xc=la(),g9=_0().utcFormat,SK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,kK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,_9=new Date().getFullYear()-70;function bc(e){return e&&xc.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}En.dateTick0=function(e,t){var r=CK(e,!!t);if(t<2)return r;var i=En.dateTime2ms(r,e);return i+=Bs*(t-1),En.ms2DateTime(i,0,e)};function CK(e,t){return bc(e)?t?xc.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:xc.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}En.dfltRange=function(e){return bc(e)?xc.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};En.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var k_,C_;En.dateTime2ms=function(e,t){if(En.isJSDate(e)){var r=e.getTimezoneOffset()*zh,i=(e.getUTCMinutes()-e.getMinutes())*zh+(e.getUTCSeconds()-e.getSeconds())*L0+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var a=3*zh;r=r-a/2+Ih(i-r+a/2,a)}return e=Number(e)-r,e>=k_&&e<=C_?e:Gl}if(typeof e!="string"&&typeof e!="number")return Gl;e=String(e);var s=bc(t),l=e.charAt(0);s&&(l==="G"||l==="g")&&(e=e.slice(1),t="");var u=s&&t.slice(0,7)==="chinese",h=e.match(u?kK:SK);if(!h)return Gl;var v=h[1],m=h[3]||"1",_=Number(h[5]||1),T=Number(h[7]||0),M=Number(h[9]||0),C=Number(h[11]||0);if(s){if(v.length===2)return Gl;v=Number(v);var E;try{var L=xc.getComponentMethod("calendars","getCal")(t);if(u){var I=m.charAt(m.length-1)==="i";m=parseInt(m,10),E=L.newDate(v,L.toMonthIndex(v,m,I),_)}else E=L.newDate(v,Number(m),_)}catch(q){return Gl}return E?(E.toJD()-Vy)*Bs+T*Uy+M*zh+C*L0:Gl}v.length===2?v=(Number(v)+2e3-_9)%100+_9:v=Number(v),m-=1;var O=new Date(Date.UTC(2e3,m,_,T,M));return O.setUTCFullYear(v),O.getUTCMonth()!==m||O.getUTCDate()!==_?Gl:O.getTime()+C*L0};k_=En.MIN_MS=En.dateTime2ms("-9999");C_=En.MAX_MS=En.dateTime2ms("9999-12-31 23:59:59.9999");En.isDateTime=function(e,t){return En.dateTime2ms(e,t)!==Gl};function E0(e,t){return String(e+Math.pow(10,t)).slice(1)}var S_=90*Bs,x9=3*Uy,b9=5*zh;En.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=k_&&e<=C_))return Gl;t||(t=0);var i=Math.floor(Ih(e+.05,1)*10),a=Math.round(e-i/10),s,l,u,h,v,m;if(bc(r)){var _=Math.floor(a/Bs)+Vy,T=Math.floor(Ih(e,Bs));try{s=xc.getComponentMethod("calendars","getCal")(r).fromJD(_).formatDate("yyyy-mm-dd")}catch(M){s=g9("G%Y-%m-%d")(new Date(a))}if(s.charAt(0)==="-")for(;s.length<11;)s="-0"+s.slice(1);else for(;s.length<10;)s="0"+s;l=t=k_+Bs&&e<=C_-Bs))return Gl;var t=Math.floor(Ih(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=MK("%Y-%m-%d")(r),a=r.getHours(),s=r.getMinutes(),l=r.getSeconds(),u=r.getUTCMilliseconds()*10+t;return M9(i,a,s,l,u)};function M9(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+E0(t,2)+":"+E0(r,2),(i||a)&&(e+=":"+E0(i,2),a))){for(var s=4;a%10===0;)s-=1,a/=10;e+="."+E0(a,s)}return e}En.cleanDate=function(e,t,r){if(e===Gl)return t;if(En.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(bc(r))return dw.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=En.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!En.isDateTime(e,r))return dw.error("unrecognized date",e),t;return e};var EK=/%\d?f/g,LK=/%h/g,DK={1:"1",2:"1",3:"2",4:"2"};function w9(e,t,r,i){e=e.replace(EK,function(s){var l=Math.min(+s.charAt(1)||6,6),u=(t/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return u});var a=new Date(Math.floor(t+.05));if(e=e.replace(LK,function(){return DK[r("%q")(a)]}),bc(i))try{e=xc.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(s){return"Invalid"}return r(e)(a)}var PK=[59,59.9,59.99,59.999,59.9999];function zK(e,t){var r=Ih(e+.05,Bs),i=E0(Math.floor(r/Uy),2)+":"+E0(Ih(Math.floor(r/zh),60),2);if(t!=="M"){A9(t)||(t=0);var a=Math.min(Ih(e/L0,60),PK[t]),s=(100+a).toFixed(t).slice(1);t>0&&(s=s.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+s}return i}En.formatDate=function(e,t,r,i,a,s){if(a=bc(a)&&a,!t)if(r==="y")t=s.year;else if(r==="m")t=s.month;else if(r==="d")t=s.dayMonth+` -`+s.year;else return zK(e,r)+` -`+w9(s.dayMonthYear,e,i,a);return w9(t,e,i,a)};var T9=3*Bs;En.incrementMonth=function(e,t,r){r=bc(r)&&r;var i=Ih(e,Bs);if(e=Math.round(e-i),r)try{var a=Math.round(e/Bs)+Vy,s=xc.getComponentMethod("calendars","getCal")(r),l=s.fromJD(a);return t%12?s.add(l,t,"m"):s.add(l,t/12,"y"),(l.toJD()-Vy)*Bs+i}catch(h){dw.error("invalid ms "+e+" in calendar "+r)}var u=new Date(e+T9);return u.setUTCMonth(u.getUTCMonth()+t)+i-T9};En.findExactDates=function(e,t){for(var r=0,i=0,a=0,s=0,l,u,h=bc(t)&&xc.getComponentMethod("calendars","getCal")(t),v=0;v{"use strict";k9.exports=function(t){return t}});var mw=pe(wc=>{"use strict";var IK=La(),RK=Lh(),FK=E_(),qK=Zi().BADNUM,pw=1e-9;wc.findBin=function(e,t,r){if(IK(t.start))return r?Math.ceil((e-t.start)/t.size-pw)-1:Math.floor((e-t.start)/t.size+pw);var i=0,a=t.length,s=0,l=a>1?(t[a-1]-t[0])/(a-1):1,u,h;for(l>=0?h=r?NK:BK:h=r?UK:OK,e+=l*pw*(r?-1:1)*(l>=0?1:-1);i90&&RK.log("Long binary search..."),i-1};function NK(e,t){return et}function UK(e,t){return e>=t}wc.sorterAsc=function(e,t){return e-t};wc.sorterDes=function(e,t){return t-e};wc.distinctVals=function(e){var t=e.slice();t.sort(wc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===qK;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,s=[],l,u=0;u<=r;u++){var h=t[u],v=h-l;l===void 0?(s.push(h),l=h):v>a&&(i=Math.min(i,v),s.push(h),l=h)}return{vals:s,minDiff:i}};wc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,s,l=0,u=r?0:1,h=r?1:0,v=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};wc.findIndexOfMin=function(e,t){t=t||FK;for(var r=1/0,i,a=0;a{"use strict";C9.exports=function(t){return Object.keys(t).sort()}});var E9=pe(Ln=>{"use strict";var Hy=La(),VK=Fs().isArrayOrTypedArray;Ln.aggNums=function(e,t,r,i){var a,s;if((!i||i>r.length)&&(i=r.length),Hy(t)||(t=!1),VK(r[0])){for(s=new Array(i),a=0;ae.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var I9=pe((Dge,z9)=>{"use strict";var L9=b0(),yw=L9.mod,HK=L9.modHalf,Gy=Math.PI,Rh=2*Gy;function GK(e){return e/180*Gy}function ZK(e){return e/Gy*180}function gw(e){return Math.abs(e[1]-e[0])>Rh-1e-14}function D9(e,t){return HK(t-e,Rh)}function YK(e,t){return Math.abs(D9(e,t))}function P9(e,t){if(gw(t))return!0;var r,i;t[0]i&&(i+=Rh);var a=yw(e,Rh),s=a+Rh;return a>=r&&a<=i||s>=r&&s<=i}function WK(e,t,r,i){if(!P9(t,i))return!1;var a,s;return r[0]=a&&e<=s}function _w(e,t,r,i,a,s,l){a=a||0,s=s||0;var u=gw([r,i]),h,v,m,_,T;u?(h=0,v=Gy,m=Rh):r{"use strict";vd.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};vd.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};vd.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};vd.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};vd.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};vd.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var N9=pe(dd=>{"use strict";var xw=b0().mod;dd.segmentsIntersect=q9;function q9(e,t,r,i,a,s,l,u){var h=r-e,v=a-e,m=l-a,_=i-t,T=s-t,M=u-s,C=h*M-m*_;if(C===0)return null;var E=(v*M-m*T)/C,L=(v*_-h*T)/C;return L<0||L>1||E<0||E>1?null:{x:e+h*E,y:t+_*E}}dd.segmentDistance=function(t,r,i,a,s,l,u,h){if(q9(t,r,i,a,s,l,u,h))return 0;var v=i-t,m=a-r,_=u-s,T=h-l,M=v*v+m*m,C=_*_+T*T,E=Math.min(D_(v,m,M,s-t,l-r),D_(v,m,M,u-t,h-r),D_(_,T,C,t-s,r-l),D_(_,T,C,i-s,a-l));return Math.sqrt(E)};function D_(e,t,r,i,a){var s=i*e+a*t;if(s<0)return i*i+a*a;if(s>r){var l=i-e,u=a-t;return l*l+u*u}else{var h=i*t-a*e;return h*h/r}}var P_,bw,F9;dd.getTextLocation=function(t,r,i,a){if((t!==bw||a!==F9)&&(P_={},bw=t,F9=a),P_[i])return P_[i];var s=t.getPointAtLength(xw(i-a/2,r)),l=t.getPointAtLength(xw(i+a/2,r)),u=Math.atan((l.y-s.y)/(l.x-s.x)),h=t.getPointAtLength(xw(i,r)),v=(h.x*4+s.x+l.x)/6,m=(h.y*4+s.y+l.y)/6,_={x:v,y:m,theta:u};return P_[i]=_,_};dd.clearLocationCache=function(){bw=null};dd.getVisibleSegment=function(t,r,i){var a=r.left,s=r.right,l=r.top,u=r.bottom,h=0,v=t.getTotalLength(),m=v,_,T;function M(E){var L=t.getPointAtLength(E);E===0?_=L:E===v&&(T=L);var I=L.xs?L.x-s:0,O=L.yu?L.y-u:0;return Math.sqrt(I*I+O*O)}for(var C=M(h);C;){if(h+=C+i,h>m)return;C=M(h)}for(C=M(m);C;){if(m-=C+i,h>m)return;C=M(m)}return{min:h,max:m,len:m-h,total:v,isClosed:h===0&&m===v&&Math.abs(_.x-T.x)<.1&&Math.abs(_.y-T.y)<.1}};dd.findPointOnPath=function(t,r,i,a){a=a||{};for(var s=a.pathLength||t.getTotalLength(),l=a.tolerance||.001,u=a.iterationLimit||30,h=t.getPointAtLength(0)[i]>t.getPointAtLength(s)[i]?-1:1,v=0,m=0,_=s,T,M,C;v0?_=T:m=T,v++}return M}});var z_=pe(Zy=>{"use strict";var Tc={};Zy.throttle=function(t,r,i){var a=Tc[t],s=Date.now();if(!a){for(var l in Tc)Tc[l].tsa.ts+r){u();return}a.timer=setTimeout(function(){u(),a.timer=null},r)};Zy.done=function(e){var t=Tc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};Zy.clear=function(e){if(e)B9(Tc[e]),delete Tc[e];else for(var t in Tc)Zy.clear(t)};function B9(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var U9=pe((Rge,O9)=>{"use strict";O9.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var V9=pe((Fge,I_)=>{"use strict";I_.exports=ww;I_.exports.isMobile=ww;I_.exports.default=ww;var KK=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,QK=/CrOS/,$K=/android|ipad|playbook|silk/i;function ww(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=KK.test(t)&&!QK.test(t)||!!e.tablet&&$K.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var G9=pe((qge,H9)=>{"use strict";var eQ=La(),tQ=V9();H9.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=rQ(),typeof r!="string")return!0;var i=tQ({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),s=1;s-1;u--){var h=a[u];if(h.slice(0,8)==="Version/"){var v=h.slice(8).split(".")[0];if(eQ(v)&&(v=+v),v>=13)return!0}}}return i};function rQ(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Y9=pe((Nge,Z9)=>{"use strict";var aQ=Xa();Z9.exports=function(t,r,i){var a=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(l){return l[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",i),a.order();var s=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(l){l[0][s]=aQ.select(this)}),a}});var X9=pe((Bge,W9)=>{"use strict";var iQ=la();W9.exports=function(t,r){for(var i=t._context.locale,a=0;a<2;a++){for(var s=t._context.locales,l=0;l<2;l++){var u=(s[i]||{}).dictionary;if(u){var h=u[r];if(h)return h}s=iQ.localeRegistry}var v=i.split("-")[0];if(v===i)break;i=v}return r}});var J9=pe((Oge,j9)=>{"use strict";j9.exports=function(t){for(var r={},i=[],a=0,s=0;s{"use strict";K9.exports=function(t){for(var r=sQ(t)?oQ:nQ,i=[],a=0;a{"use strict";$9.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),a=i>1?(i*t+i*r)/i:t+r,s=String(a).length;if(s>16){var l=String(r).length,u=String(t).length;if(s>=u+l){var h=parseFloat(a).toPrecision(12);h.indexOf("e+")===-1&&(a=+h)}}return a}});var rk=pe((Hge,tk)=>{"use strict";var lQ=La(),uQ=Zi().BADNUM,fQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;tk.exports=function(t){return typeof t=="string"&&(t=t.replace(fQ,"")),lQ(t)?Number(t):uQ}});var Ot=pe((Gge,pk)=>{"use strict";var Yy=Xa(),cQ=_0().utcFormat,hQ=W3().format,lk=La(),uk=Zi(),fk=uk.FP_SAFE,vQ=-fk,ak=uk.BADNUM,tt=pk.exports={};tt.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var ik={};tt.warnBadFormat=function(e){var t=String(e);ik[t]||(ik[t]=1,tt.warn('encountered bad format: "'+t+'"'))};tt.noFormat=function(e){return String(e)};tt.numberFormat=function(e){var t;try{t=hQ(tt.adjustFormat(e))}catch(r){return tt.warnBadFormat(e),tt.noFormat}return t};tt.nestedProperty=Ly();tt.keyedContainer=j7();tt.relativeAttr=K7();tt.isPlainObject=gc();tt.toLogRange=c_();tt.relinkPrivateKeys=t8();var Fh=Fs();tt.isArrayBuffer=Fh.isArrayBuffer;tt.isTypedArray=Fh.isTypedArray;tt.isArrayOrTypedArray=Fh.isArrayOrTypedArray;tt.isArray1D=Fh.isArray1D;tt.ensureArray=Fh.ensureArray;tt.concat=Fh.concat;tt.maxRowLength=Fh.maxRowLength;tt.minRowLength=Fh.minRowLength;var ck=b0();tt.mod=ck.mod;tt.modHalf=ck.modHalf;var qh=x8();tt.valObjectMeta=qh.valObjectMeta;tt.coerce=qh.coerce;tt.coerce2=qh.coerce2;tt.coerceFont=qh.coerceFont;tt.coercePattern=qh.coercePattern;tt.coerceHoverinfo=qh.coerceHoverinfo;tt.coerceSelectionMarkerOpacity=qh.coerceSelectionMarkerOpacity;tt.validate=qh.validate;var nl=S9();tt.dateTime2ms=nl.dateTime2ms;tt.isDateTime=nl.isDateTime;tt.ms2DateTime=nl.ms2DateTime;tt.ms2DateTimeLocal=nl.ms2DateTimeLocal;tt.cleanDate=nl.cleanDate;tt.isJSDate=nl.isJSDate;tt.formatDate=nl.formatDate;tt.incrementMonth=nl.incrementMonth;tt.dateTick0=nl.dateTick0;tt.dfltRange=nl.dfltRange;tt.findExactDates=nl.findExactDates;tt.MIN_MS=nl.MIN_MS;tt.MAX_MS=nl.MAX_MS;var pd=mw();tt.findBin=pd.findBin;tt.sorterAsc=pd.sorterAsc;tt.sorterDes=pd.sorterDes;tt.distinctVals=pd.distinctVals;tt.roundUp=pd.roundUp;tt.sort=pd.sort;tt.findIndexOfMin=pd.findIndexOfMin;tt.sortObjectKeys=L_();var Ac=E9();tt.aggNums=Ac.aggNums;tt.len=Ac.len;tt.mean=Ac.mean;tt.geometricMean=Ac.geometricMean;tt.median=Ac.median;tt.midRange=Ac.midRange;tt.variance=Ac.variance;tt.stdev=Ac.stdev;tt.interp=Ac.interp;var Ru=__();tt.init2dArray=Ru.init2dArray;tt.transposeRagged=Ru.transposeRagged;tt.dot=Ru.dot;tt.translationMatrix=Ru.translationMatrix;tt.rotationMatrix=Ru.rotationMatrix;tt.rotationXYMatrix=Ru.rotationXYMatrix;tt.apply3DTransform=Ru.apply3DTransform;tt.apply2DTransform=Ru.apply2DTransform;tt.apply2DTransform2=Ru.apply2DTransform2;tt.convertCssMatrix=Ru.convertCssMatrix;tt.inverseTransformMatrix=Ru.inverseTransformMatrix;var Ef=I9();tt.deg2rad=Ef.deg2rad;tt.rad2deg=Ef.rad2deg;tt.angleDelta=Ef.angleDelta;tt.angleDist=Ef.angleDist;tt.isFullCircle=Ef.isFullCircle;tt.isAngleInsideSector=Ef.isAngleInsideSector;tt.isPtInsideSector=Ef.isPtInsideSector;tt.pathArc=Ef.pathArc;tt.pathSector=Ef.pathSector;tt.pathAnnulus=Ef.pathAnnulus;var z0=R9();tt.isLeftAnchor=z0.isLeftAnchor;tt.isCenterAnchor=z0.isCenterAnchor;tt.isRightAnchor=z0.isRightAnchor;tt.isTopAnchor=z0.isTopAnchor;tt.isMiddleAnchor=z0.isMiddleAnchor;tt.isBottomAnchor=z0.isBottomAnchor;var I0=N9();tt.segmentsIntersect=I0.segmentsIntersect;tt.segmentDistance=I0.segmentDistance;tt.getTextLocation=I0.getTextLocation;tt.clearLocationCache=I0.clearLocationCache;tt.getVisibleSegment=I0.getVisibleSegment;tt.findPointOnPath=I0.findPointOnPath;var q_=mn();tt.extendFlat=q_.extendFlat;tt.extendDeep=q_.extendDeep;tt.extendDeepAll=q_.extendDeepAll;tt.extendDeepNoArrays=q_.extendDeepNoArrays;var Tw=Lh();tt.log=Tw.log;tt.warn=Tw.warn;tt.error=Tw.error;var dQ=T0();tt.counterRegex=dQ.counter;var Aw=z_();tt.throttle=Aw.throttle;tt.throttleDone=Aw.done;tt.clearThrottle=Aw.clear;var Fu=By();tt.getGraphDiv=Fu.getGraphDiv;tt.isPlotDiv=Fu.isPlotDiv;tt.removeElement=Fu.removeElement;tt.addStyleRule=Fu.addStyleRule;tt.addRelatedStyleRule=Fu.addRelatedStyleRule;tt.deleteRelatedStyleRule=Fu.deleteRelatedStyleRule;tt.setStyleOnHover=Fu.setStyleOnHover;tt.getFullTransformMatrix=Fu.getFullTransformMatrix;tt.getElementTransformMatrix=Fu.getElementTransformMatrix;tt.getElementAndAncestors=Fu.getElementAndAncestors;tt.equalDomRects=Fu.equalDomRects;tt.clearResponsive=U9();tt.preserveDrawingBuffer=G9();tt.makeTraceGroups=Y9();tt._=X9();tt.notifier=iw();tt.filterUnique=J9();tt.filterVisible=Q9();tt.pushUnique=sw();tt.increment=ek();tt.cleanNumber=rk();tt.ensureNumber=function(t){return lk(t)?(t=Number(t),t>fk||t=t?!1:lk(e)&&e>=0&&e%1===0};tt.noop=g_();tt.identity=E_();tt.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};tt.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};tt.simpleMap=function(e,t,r,i,a){for(var s=e.length,l=new Array(s),u=0;u=Math.pow(2,r)?a>10?(tt.warn("randstr failed uniqueness"),l):e(t,r,i,(a||0)+1):l};tt.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};tt.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,a=2*t-1,s=new Array(a),l=new Array(r),u,h,v,m;for(u=0;u=i&&(v-=i*Math.floor(v/i)),v<0?v=-1-v:v>=r&&(v=i-1-v),m+=e[v]*s[h];l[u]=m}return l};tt.syncOrAsync=function(e,t,r){var i,a;function s(){return tt.syncOrAsync(e,t,r)}for(;e.length;)if(a=e.splice(0,1)[0],i=a(t),i&&i.then)return i.then(s);return r&&r(t)};tt.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};tt.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,s,l;for(s=0;s0?a:0})};tt.fillArray=function(e,t,r,i){if(i=i||tt.identity,tt.isArrayOrTypedArray(e))for(var a=0;ayQ.test(window.navigator.userAgent);var gQ=/Firefox\/(\d+)\.\d+/;tt.getFirefoxVersion=function(){var e=gQ.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};tt.isD3Selection=function(e){return e instanceof Yy.selection};tt.ensureSingle=function(e,t,r,i){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var s=e.append(t);return r&&s.classed(r,!0),i&&s.call(i),s};tt.ensureSingleById=function(e,t,r,i){var a=e.select(t+"#"+r);if(a.size())return a;var s=e.append(t).attr("id",r);return i&&s.call(i),s};tt.objectFromPath=function(e,t){for(var r=e.split("."),i,a=i={},s=0;s1?a+l[1]:"";if(s&&(l.length>1||u.length>4||r))for(;i.test(u);)u=u.replace(i,"$1"+s+"$2");return u+h};tt.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var dk=/^\w*$/;tt.templateString=function(e,t){var r={};return e.replace(tt.TEMPLATE_STRING_REGEX,function(i,a){var s;return dk.test(a)?s=t[a]:(r[a]=r[a]||tt.nestedProperty(t,a).get,s=r[a](!0)),s!==void 0?s:""})};var bQ={max:10,count:0,name:"hovertemplate"};tt.hovertemplateString=e=>Mw(t_(sd({},e),{opts:bQ}));var wQ={max:10,count:0,name:"texttemplate"};tt.texttemplateString=e=>Mw(t_(sd({},e),{opts:wQ}));var TQ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function AQ(e){var t=e.match(TQ);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var MQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};tt.texttemplateStringForShapes=e=>Mw(t_(sd({},e),{opts:MQ}));var nk=/^[:|\|]/;function Mw({data:e=[],locale:t,fallback:r,labels:i={},opts:a,template:s}){return s.replace(tt.TEMPLATE_STRING_REGEX,(l,u,h)=>{let v=["xother","yother"].includes(u),m=["_xother","_yother"].includes(u),_=["_xother_","_yother_"].includes(u),T=["xother_","yother_"].includes(u),M=v||m||T||_;(m||_)&&(u=u.substring(1)),(T||_)&&(u=u.substring(0,u.length-1));let C=null,E=null;if(a.parseMultDiv){var L=AQ(u);u=L.key,C=L.op,E=L.number}let I;if(M){if(i[u]===void 0)return"";I=i[u]}else for(let N of e)if(N){if(N.hasOwnProperty(u)){I=N[u];break}if(dk.test(u)||(I=tt.nestedProperty(N,u).get(!0)),I!==void 0)break}if(I===void 0){let{count:N,max:H,name:U}=a,W=r===!1?l:r;return N=F_&&l<=ok,v=u>=F_&&u<=ok;if(h&&(i=10*i+l-F_),v&&(a=10*a+u-F_),!h||!v){if(i!==a)return i-a;if(l!==u)return l-u}}return a-i};var P0=2e9;tt.seedPseudoRandom=function(){P0=2e9};tt.pseudoRandom=function(){var e=P0;return P0=(69069*P0+1)%4294967296,Math.abs(P0-e)<429496729?tt.pseudoRandom():P0/4294967296};tt.fillText=function(e,t,r){var i=Array.isArray(r)?function(l){r.push(l)}:function(l){r.text=l},a=tt.extractOption(e,t,"htx","hovertext");if(tt.isValidTextValue(a))return i(a);var s=tt.extractOption(e,t,"tx","text");if(tt.isValidTextValue(s))return i(s)};tt.isValidTextValue=function(e){return e||e===0};tt.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(v=1):v=0,tt.strTranslate(a-v*(r+l),s-v*(i+u))+tt.strScale(v)+(h?"rotate("+h+(t?"":" "+r+" "+i)+")":"")};tt.setTransormAndDisplay=function(e,t){e.attr("transform",tt.getTextTransform(t)),e.style("display",t.scale?null:"none")};tt.ensureUniformFontSize=function(e,t){var r=tt.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};tt.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};tt.bigFont=function(e){return Math.round(1.2*e)};var sk=tt.getFirefoxVersion(),SQ=sk!==null&&sk<86;tt.getPositionFromD3Event=function(){return SQ?[Yy.event.layerX,Yy.event.layerY]:[Yy.event.offsetX,Yy.event.offsetY]}});var gk=pe(()=>{"use strict";var kQ=Ot(),mk={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Sw in mk)yk=Sw.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),kQ.addStyleRule(yk,mk[Sw]);var yk,Sw});var kw=pe((Xge,_k)=>{_k.exports=!0});var Ew=pe((jge,xk)=>{"use strict";var CQ=kw(),Cw;typeof window.matchMedia=="function"?Cw=!window.matchMedia("(hover: none)").matches:Cw=CQ;xk.exports=Cw});var O_=pe((Jge,Lw)=>{"use strict";var R0=typeof Reflect=="object"?Reflect:null,bk=R0&&typeof R0.apply=="function"?R0.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},N_;R0&&typeof R0.ownKeys=="function"?N_=R0.ownKeys:Object.getOwnPropertySymbols?N_=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:N_=function(t){return Object.getOwnPropertyNames(t)};function EQ(e){console&&console.warn&&console.warn(e)}var Tk=Number.isNaN||function(t){return t!==t};function Yi(){Yi.init.call(this)}Lw.exports=Yi;Lw.exports.once=zQ;Yi.EventEmitter=Yi;Yi.prototype._events=void 0;Yi.prototype._eventsCount=0;Yi.prototype._maxListeners=void 0;var wk=10;function B_(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Yi,"defaultMaxListeners",{enumerable:!0,get:function(){return wk},set:function(e){if(typeof e!="number"||e<0||Tk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");wk=e}});Yi.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Yi.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Tk(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Ak(e){return e._maxListeners===void 0?Yi.defaultMaxListeners:e._maxListeners}Yi.prototype.getMaxListeners=function(){return Ak(this)};Yi.prototype.emit=function(t){for(var r=[],i=1;i0&&(l=r[0]),l instanceof Error)throw l;var u=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw u.context=l,u}var h=s[t];if(h===void 0)return!1;if(typeof h=="function")bk(h,this,r);else for(var v=h.length,m=Ek(h,v),i=0;i0&&l.length>a&&!l.warned){l.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=l.length,EQ(u)}return e}Yi.prototype.addListener=function(t,r){return Mk(this,t,r,!1)};Yi.prototype.on=Yi.prototype.addListener;Yi.prototype.prependListener=function(t,r){return Mk(this,t,r,!0)};function LQ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Sk(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=LQ.bind(i);return a.listener=r,i.wrapFn=a,a}Yi.prototype.once=function(t,r){return B_(r),this.on(t,Sk(this,t,r)),this};Yi.prototype.prependOnceListener=function(t,r){return B_(r),this.prependListener(t,Sk(this,t,r)),this};Yi.prototype.removeListener=function(t,r){var i,a,s,l,u;if(B_(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(s=-1,l=i.length-1;l>=0;l--)if(i[l]===r||i[l].listener===r){u=i[l].listener,s=l;break}if(s<0)return this;s===0?i.shift():DQ(i,s),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,u||r)}return this};Yi.prototype.off=Yi.prototype.removeListener;Yi.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var s=Object.keys(i),l;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function kk(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?PQ(a):Ek(a,a.length)}Yi.prototype.listeners=function(t){return kk(this,t,!0)};Yi.prototype.rawListeners=function(t){return kk(this,t,!1)};Yi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Ck.call(e,t)};Yi.prototype.listenerCount=Ck;function Ck(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Yi.prototype.eventNames=function(){return this._eventsCount>0?N_(this._events):[]};function Ek(e,t){for(var r=new Array(t),i=0;i{"use strict";var Dw=O_().EventEmitter,RQ={init:function(e){if(e._ev instanceof Dw)return e;var t=new Dw,r=new Dw;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,a){t.emit(i,a),r.emit(i,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,a=e._ev;if(!a)return;var s=a._events[t];if(!s)return;function l(h){if(h.listener){if(a.removeListener(t,h.listener),!h.fired)return h.fired=!0,h.listener.apply(a,[r])}else return h.apply(a,[r])}s=Array.isArray(s)?s:[s];var u;for(u=0;u{"use strict";var Pk=Ot(),FQ=cd().dfltConfig;function qQ(e,t){for(var r=[],i,a=0;aFQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Mc.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Mc.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Mc.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";Rk.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var N0=pe(Xn=>{"use strict";var Zl=la(),Xy=Ot(),V_=ys(),zw=k0(),NQ=Pw(),BQ=Oy(),OQ=cd().configAttributes,Fk=il(),qu=Xy.extendDeepAll,F0=Xy.isPlainObject,UQ=Xy.isArrayOrTypedArray,H_=Xy.nestedProperty,VQ=Xy.valObjectMeta,Iw="_isSubplotObj",G_="_isLinkedToArray",HQ="_arrayAttrRegexps",Nk="_deprecated",Rw=[Iw,G_,HQ,Nk];Xn.IS_SUBPLOT_OBJ=Iw;Xn.IS_LINKED_TO_ARRAY=G_;Xn.DEPRECATED=Nk;Xn.UNDERSCORE_ATTRS=Rw;Xn.get=function(){var e={};return Zl.allTypes.forEach(function(t){e[t]=ZQ(t)}),{defs:{valObjects:VQ,metaKeys:Rw.concat(["description","role","editType","impliedEdits"]),editType:{traces:Fk.traces,layout:Fk.layout},impliedEdits:{}},traces:e,layout:YQ(),frames:WQ(),animation:q0(BQ),config:q0(OQ)}};Xn.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(s){var l=e[s];if(Rw.indexOf(s)===-1){var u=(i?i+".":"")+s;t(l,s,e,a,u),!Xn.isValObject(l)&&F0(l)&&s!=="impliedEdits"&&Xn.crawl(l,t,a+1,u)}})};Xn.isValObject=function(e){return e&&e.valType!==void 0};Xn.findArrayAttributes=function(e){var t=[],r=[],i=[],a,s;function l(h,v,m,_){r=r.slice(0,_).concat([v]),i=i.slice(0,_).concat([h&&h._isLinkedToArray]);var T=h&&(h.valType==="data_array"||h.arrayOk===!0)&&!(r[_-1]==="colorbar"&&(v==="ticktext"||v==="tickvals"));T&&u(a,0,"")}function u(h,v,m){var _=h[r[v]],T=m+r[v];if(v===r.length-1)UQ(_)&&t.push(s+T);else if(i[v]){if(Array.isArray(_))for(var M=0;M<_.length;M++)F0(_[M])&&u(_[M],v+1,T+"["+M+"].")}else F0(_)&&u(_,v+1,T+".")}return a=e,s="",Xn.crawl(V_,l),e._module&&e._module.attributes&&Xn.crawl(e._module.attributes,l),t};Xn.getTraceValObject=function(e,t){var r=t[0],i=1,a,s,l=e._module;if(l||(l=(Zl.modules[e.type||V_.type.dflt]||{})._module),!l)return!1;if(a=l.attributes,s=a&&a[r],!s){var u=l.basePlotModule;u&&u.attributes&&(s=u.attributes[r])}return s||(s=V_[r]),Bk(s,t,i)};Xn.getLayoutValObject=function(e,t){var r=GQ(e,t[0]);return Bk(r,t,1)};function GQ(e,t){var r,i,a,s,l=e._basePlotModules;if(l){var u;for(r=0;r=s.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var l=t[r];if(!U_(l))return!1;e=s[a][l]}else e=s[a]}else e=s}}return e}function U_(e){return e===Math.round(e)&&e>=0}function ZQ(e){var t,r;t=Zl.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var a=qu({},V_),s=qu({},t.attributes);Xn.crawl(s,function(h,v,m,_,T){H_(a,T).set(void 0),h===void 0&&H_(s,T).set(void 0)}),qu(i,a),Zl.traceIs(e,"noOpacity")&&delete i.opacity,Zl.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),Zl.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,qu(i,s),r.attributes&&qu(i,r.attributes),i.type=e;var l={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:q0(i)};if(t.layoutAttributes){var u={};qu(u,t.layoutAttributes),l.layoutAttributes=q0(u)}return t.animatable||Xn.crawl(l,function(h){Xn.isValObject(h)&&"anim"in h&&delete h.anim}),l}function YQ(){var e={},t,r;qu(e,zw);for(t in Zl.subplotsRegistry)if(r=Zl.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var B0=Ot(),QQ=ys(),Nh="templateitemname",Fw={name:{valType:"string",editType:"none"}};Fw[Nh]={valType:"string",editType:"calc"};md.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Fw.name,t[Nh]=Fw[Nh],t};md.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function a(s){r=B0.coerce(s,{},QQ,"type");var l={type:r,_template:null};if(r in t){i=e[r];var u=t[r]%i.length;t[r]++,l._template=i[u]}return l}return{newTrace:a}};md.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);B0.isPlainObject(a)||(a=null);var s=e[t]={_template:a};return s};md.arrayTemplater=function(e,t,r){var i=e._template,a=i&&i[Uk(t)],s=i&&i[t];(!Array.isArray(s)||!s.length)&&(s=[]);var l={};function u(v){var m={name:v.name,_input:v},_=m[Nh]=v[Nh];if(!Ok(_))return m._template=a,m;for(var T=0;T=i&&(r._input||{})._templateitemname;s&&(a=i);var l=t+"["+a+"]",u;function h(){u={},s&&(u[l]={},u[l][Nh]=s)}h();function v(M,C){u[M]=C}function m(M,C){s?B0.nestedProperty(u[l],M).set(C):u[l+"."+M]=C}function _(){var M=u;return h(),M}function T(M,C){M&&m(M,C);var E=_();for(var L in E)B0.nestedProperty(e,L).set(E[L])}return{modifyBase:v,modifyItem:m,getUpdateObj:_,applyUpdate:T}}});var eo=pe((r1e,Vk)=>{"use strict";var jy=T0().counter;Vk.exports={idRegex:{x:jy("x","( domain)?"),y:jy("y","( domain)?")},attrRegex:jy("[xy]axis"),xAxisMatch:jy("xaxis"),yAxisMatch:jy("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var jn=pe(Os=>{"use strict";var $Q=la(),qw=eo();Os.id2name=function(t){if(!(typeof t!="string"||!t.match(qw.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Os.name2id=function(t){if(t.match(qw.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Os.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(qw.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(a&&!i)){var s=t.split(" ")[0].slice(1).replace(/^0+/,"");return s==="1"&&(s=""),t.charAt(0)+s+(a&&i?" domain":"")}};Os.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=Os.listIds(e,t),s=new Array(a.length),l;for(l=0;li?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Os.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Hk(e,t){if(t&&t.length){for(var r=0;r{"use strict";function e$(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function t$(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Gk.exports={clearOutlineControllers:e$,clearOutline:t$}});var Z_=pe((n1e,Zk)=>{"use strict";Zk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var X_=pe(W_=>{"use strict";var Y_=la(),o1e=eo().SUBPLOT_PATTERN;W_.getSubplotCalcData=function(e,t,r){var i=Y_.subplotsRegistry[t];if(!i)return[];for(var a=i.attr,s=[],l=0;l{"use strict";var r$=la(),O0=Ot();yd.manageCommandObserver=function(e,t,r,i){var a={},s=!0;t&&t._commandObserver&&(a=t._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var l=yd.hasSimpleAPICommandBindings(e,r,a.lookupTable);if(t&&t._commandObserver){if(l)return a;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,a}if(l){Yk(e,l,a.cache),a.check=function(){if(s){var m=Yk(e,l,a.cache);return m.changed&&i&&a.lookupTable[m.value]!==void 0&&(a.disable(),Promise.resolve(i({value:m.value,type:l.type,prop:l.prop,traces:l.traces,index:a.lookupTable[m.value]})).then(a.enable,a.enable)),m.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+a;O0.isPlainObject(s)?Nw(s,t,l,i+1):t(l,a,s)}})}});var to=pe((u1e,uC)=>{"use strict";var rC=Xa(),i$=_0().timeFormatLocale,n$=W3().formatLocale,Jy=La(),o$=X3(),ei=la(),aC=N0(),s$=Pi(),Lr=Ot(),iC=Ba(),Jk=Zi().BADNUM,Us=jn(),l$=Bh().clearOutline,u$=Z_(),Bw=Oy(),f$=Pw(),c$=X_().getModuleCalcData,Kk=Lr.relinkPrivateKeys,gd=Lr._,_r=uC.exports={};Lr.extendFlat(_r,ei);_r.attributes=ys();_r.attributes.type.values=_r.allTypes;_r.fontAttrs=qo();_r.layoutAttributes=k0();var J_=jk();_r.executeAPICommand=J_.executeAPICommand;_r.computeAPICommandBindings=J_.computeAPICommandBindings;_r.manageCommandObserver=J_.manageCommandObserver;_r.hasSimpleAPICommandBindings=J_.hasSimpleAPICommandBindings;_r.redrawText=function(e){return e=Lr.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ei.getComponentMethod("annotations","draw")(e),ei.getComponentMethod("legend","draw")(e),ei.getComponentMethod("colorbar","draw")(e),t(_r.previousPromises(e)))},300)})};_r.resize=function(e){e=Lr.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Lr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Lr.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var s=e.changed;e.autoplay=!0,ei.call("relayout",e,{autosize:!0}).then(function(){e.changed=s,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};_r.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};_r.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Lr.ensureSingle(t._paper,"text","js-plot-link-container",function(h){h.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:iC.defaultLine,"pointer-events":"all"}).each(function(){var v=rC.select(this);v.append("tspan").classed("js-link-to-tool",!0),v.append("tspan").classed("js-link-spacer",!0),v.append("tspan").classed("js-sourcelinks",!0)})}),i=r.node(),a={y:t._paper.attr("height")-9};document.body.contains(i)&&i.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),r.attr(a);var s=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),u=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&h$(e,s),l.text(s.text()&&u.text()?" - ":"")}};function h$(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){_r.sendDataToCloud(e)});else{var i=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+i[2].split(".")[0]+"/"+i[1]+a})}}_r.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=rC.select(e).append("div").attr("id","hiddenform").style("display","none"),i=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),a=i.append("input").attr({type:"text",name:"data"});return a.node().value=_r.graphJson(e,!1,"keepdata"),i.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var v$=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],d$=["year","month","dayMonth","dayMonthYear"];_r.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var a=e._fullLayout={},s=e.layout||{},l=e._fullData||[],u=e._fullData=[],h=e.data||[],v=e.calcdata||[],m=e._context||{},_;e._transitionData||_r.createTransitionData(e),a._dfltTitle={plot:gd(e,"Click to enter Plot title"),subtitle:gd(e,"Click to enter Plot subtitle"),x:gd(e,"Click to enter X axis title"),y:gd(e,"Click to enter Y axis title"),colorbar:gd(e,"Click to enter Colorscale title"),annotation:gd(e,"new text")},a._traceWord=gd(e,"trace");var T=Qk(e,v$);if(a._mapboxAccessToken=m.mapboxAccessToken,i._initialAutoSizeIsDone){var M=i.width,C=i.height;_r.supplyLayoutGlobalDefaults(s,a,T),s.width||(a.width=M),s.height||(a.height=C),_r.sanitizeMargins(a)}else{_r.supplyLayoutGlobalDefaults(s,a,T);var E=!s.width||!s.height,L=a.autosize,I=m.autosizable,O=E&&(L||I);O?_r.plotAutoSize(e,s,a):E&&_r.sanitizeMargins(a),!L&&E&&(s.width=a.width,s.height=a.height)}a._d3locale=y$(T,a.separators),a._extraFormat=Qk(e,d$),a._initialAutoSizeIsDone=!0,a._dataLength=h.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var q=a._subplots=m$(),z=a._splomAxes={x:{},y:{}},N=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=p$(l,h),_r.supplyDataDefaults(h,u,s,a);var H=Object.keys(z.x),U=Object.keys(z.y);if(H.length>1&&U.length>1){for(ei.getComponentMethod("grid","sizeDefaults")(s,a),_=0;_15&&U.length>15&&a.shapes.length===0&&a.images.length===0,_r.linkSubplots(u,a,l,i),_r.cleanPlot(u,a,l,i);var oe=!!(i._has&&i._has("cartesian")),he=!!(a._has&&a._has("cartesian")),fe=oe,Te=he;fe&&!Te?i._bgLayer.remove():Te&&!fe&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&l$({_fullLayout:i}),g$(u,a),Kk(a,i),ei.getComponentMethod("colorscale","crossTraceDefaults")(u,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var ke=a._tracePreGUI,Se={},Ae;for(Ae in ke)Se[Ae]="old";for(_=0;_0){var m=1-2*s;l=Math.round(m*l),u=Math.round(m*u)}}var _=_r.layoutAttributes.width.min,T=_r.layoutAttributes.height.min;l<_&&(l=_),u1,C=!r.height&&Math.abs(i.height-u)>1;(C||M)&&(M&&(i.width=l),C&&(i.height=u)),t._initialAutoSize||(t._initialAutoSize={width:l,height:u}),_r.sanitizeMargins(i)};_r.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ei.componentsRegistry,s=t._basePlotModules,l,u,h,v=ei.subplotsRegistry.cartesian;for(l in a)h=a[l],h.includeBasePlot&&h.includeBasePlot(e,t);s.length||s.push(v),t._has("cartesian")&&(ei.getComponentMethod("grid","contentDefaults")(e,t),v.finalizeSubplots(e,t));for(var m in t._subplots)t._subplots[m].sort(Lr.subplotSort);for(u=0;u1&&(r.l/=L,r.r/=L)}if(T){var I=(r.t+r.b)/T;I>1&&(r.t/=I,r.b/=I)}var O=r.xl!==void 0?r.xl:r.x,q=r.xr!==void 0?r.xr:r.x,z=r.yt!==void 0?r.yt:r.y,N=r.yb!==void 0?r.yb:r.y;M[t]={l:{val:O,size:r.l+E},r:{val:q,size:r.r+E},b:{val:N,size:r.b+E},t:{val:z,size:r.t+E}},C[t]=1}if(!i._replotting)return _r.doAutoMargin(e)}};function x$(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Us.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}_r.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),nC(t);var a=t._size,s=t.margin,l={t:0,b:0,l:0,r:0},u=Lr.extendFlat({},a),h=s.l,v=s.r,m=s.t,_=s.b,T=t._pushmargin,M=t._pushmarginIds,C=t.minreducedwidth,E=t.minreducedheight;if(s.autoexpand!==!1){for(var L in T)M[L]||delete T[L];var I=e._fullLayout._reservedMargin;for(var O in I)for(var q in I[O]){var z=I[O][q];l[q]=Math.max(l[q],z)}T.base={l:{val:0,size:h},r:{val:1,size:v},t:{val:1,size:m},b:{val:0,size:_}};for(var N in l){var H=0;for(var U in T)U!=="base"&&Jy(T[U][N].size)&&(H=T[U][N].size>H?T[U][N].size:H);var W=Math.max(0,s[N]-H);l[N]=Math.max(0,l[N]-W)}for(var J in T){var ee=T[J].l||{},ie=T[J].b||{},oe=ee.val,he=ee.size,fe=ie.val,Te=ie.size,ke=r-l.r-l.l,Se=i-l.t-l.b;for(var Ae in T){if(Jy(he)&&T[Ae].r){var me=T[Ae].r.val,Ce=T[Ae].r.size;if(me>oe){var Me=(he*me+(Ce-ke)*oe)/(me-oe),We=(Ce*(1-oe)+(he-ke)*(1-me))/(me-oe);Me+We>h+v&&(h=Me,v=We)}}if(Jy(Te)&&T[Ae].t){var it=T[Ae].t.val,nt=T[Ae].t.size;if(it>fe){var gt=(Te*it+(nt-Se)*fe)/(it-fe),Xe=(nt*(1-fe)+(Te-Se)*(1-it))/(it-fe);gt+Xe>_+m&&(_=gt,m=Xe)}}}}}var kt=Lr.constrain(r-s.l-s.r,oC,C),lt=Lr.constrain(i-s.t-s.b,sC,E),mt=Math.max(0,r-kt),Bt=Math.max(0,i-lt);if(mt){var ft=(h+v)/mt;ft>1&&(h/=ft,v/=ft)}if(Bt){var de=(_+m)/Bt;de>1&&(_/=de,m/=de)}if(a.l=Math.round(h)+l.l,a.r=Math.round(v)+l.r,a.t=Math.round(m)+l.t,a.b=Math.round(_)+l.b,a.p=Math.round(s.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(i)-a.t-a.b,!t._replotting&&(_r.didMarginChange(u,a)||x$(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var De=3*(1+Object.keys(M).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};_r.graphJson=function(e,t,r,i,a,s){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&_r.supplyDefaults(e);var l=a?e._fullData:e.data,u=a?e._fullLayout:e.layout,h=(e._transitionData||{})._frames;function v(T,M){if(typeof T=="function")return M?"_function_":null;if(Lr.isPlainObject(T)){var C={},E;return Object.keys(T).sort().forEach(function(q){if(["_","["].indexOf(q.charAt(0))===-1){if(typeof T[q]=="function"){M&&(C[q]="_function");return}if(r==="keepdata"){if(q.slice(-3)==="src")return}else if(r==="keepstream"){if(E=T[q+"src"],typeof E=="string"&&E.indexOf(":")>0&&!Lr.isPlainObject(T.stream))return}else if(r!=="keepall"&&(E=T[q+"src"],typeof E=="string"&&E.indexOf(":")>0))return;C[q]=v(T[q],M)}}),C}var L=Array.isArray(T),I=Lr.isTypedArray(T);if((L||I)&&T.dtype&&T.shape){var O=T.bdata;return v({dtype:T.dtype,shape:T.shape,bdata:Lr.isArrayBuffer(O)?o$.encode(O):O},M)}return L?T.map(function(q){return v(q,M)}):I?Lr.simpleMap(T,Lr.identity):Lr.isJSDate(T)?Lr.ms2DateTimeLocal(+T):T}var m={data:(l||[]).map(function(T){var M=v(T);return t&&delete M.fit,M})};if(!t&&(m.layout=v(u),a)){var _=u._size;m.layout.computed={margin:{b:_.b,l:_.l,r:_.r,t:_.t}}}return h&&(m.frames=v(h)),s&&(m.config=v(e._context,!0)),i==="object"?m:JSON.stringify(m)};_r.modifyFrames=function(e,t){var r,i,a,s=e._transitionData._frames,l=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return ei.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var T=0,M=0;function C(){return T++,function(){M++,!i&&M===T&&u(_)}}r.runFn(C),setTimeout(C())})}function u(_){if(e._transitionData)return s(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ei.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(_)}function h(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var v=[_r.previousPromises,h,r.prepareFn,_r.rehover,_r.reselect,l],m=Lr.syncOrAsync(v,e);return(!m||!m.then)&&(m=Promise.resolve()),m.then(function(){return e})}_r.doCalcdata=function(e,t){var r=Us.list(e),i=e._fullData,a=e._fullLayout,s,l,u,h,v=new Array(i.length),m=(e.calcdata||[]).slice();for(e.calcdata=v,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},u=0;u=0;h--)if(N[h].enabled){s._indexToPoints=N[h]._indexToPoints;break}l&&l.calc&&(z=l.calc(e,s))}(!Array.isArray(z)||!z[0])&&(z=[{x:Jk,y:Jk}]),z[0].t||(z[0].t={}),z[0].trace=s,v[O]=z}}for(eC(r,i,a),u=0;u{"use strict";_d.xmlns="http://www.w3.org/2000/xmlns/";_d.svg="http://www.w3.org/2000/svg";_d.xlink="http://www.w3.org/1999/xlink";_d.svgAttrs={xmlns:_d.svg,"xmlns:xlink":_d.xlink}});var No=pe((c1e,fC)=>{"use strict";fC.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ro=pe(Yl=>{"use strict";var On=Xa(),Sc=Ot(),A$=Sc.strTranslate,Ow=Oh(),M$=No().LINE_SPACING,S$=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yl.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&i.match(S$),s=On.select(e.node().parentNode);if(s.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function u(){s.empty()||(l=e.attr("class")+"-math",s.select("svg."+l).remove()),e.text("").style("white-space","pre");var h=B$(e.node(),i);h&&e.style("pointer-events","all"),Yl.positionText(e),r&&r.call(e)}return a?(t&&t._promises||[]).push(new Promise(function(h){e.style("display","none");var v=parseInt(e.node().style.fontSize,10),m={fontSize:v};L$(a[2],m,function(_,T,M){s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove();var C=_&&_.select("svg");if(!C||!C.node()){u(),h();return}var E=s.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});E.node().appendChild(C.node()),T&&T.node()&&C.node().insertBefore(T.node().cloneNode(!0),C.node().firstChild);var L=M.width,I=M.height;C.attr({class:l,height:I,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var O=e.node().style.fill||"black",q=C.select("g");q.attr({fill:O,stroke:O});var z=q.node().getBoundingClientRect(),N=z.width,H=z.height;(N>L||H>I)&&(C.style("overflow","hidden"),z=C.node().getBoundingClientRect(),N=z.width,H=z.height);var U=+e.attr("x"),W=+e.attr("y"),J=v||e.node().getBoundingClientRect().height,ee=-J/4;if(l[0]==="y")E.attr({transform:"rotate("+[-90,U,W]+")"+A$(-N/2,ee-H/2)});else if(l[0]==="l")W=ee-H/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)U=0,W=ee;else{var ie=e.attr("text-anchor");U=U-N*(ie==="middle"?.5:ie==="end"?1:0),W=W+ee-H/2}C.attr({x:U,y:W}),r&&r.call(e,E),h(E)})})):u(),e};var k$=/(<|<|<)/g,C$=/(>|>|>)/g;function E$(e){return e.replace(k$,"\\lt ").replace(C$,"\\gt ")}var cC=[["$","$"],["\\(","\\)"]];function L$(e,t,r){var i=parseInt((MathJax.version||"").split(".")[0]);if(i!==2&&i!==3){Sc.warn("No MathJax version:",MathJax.version);return}var a,s,l,u,h=function(){return s=Sc.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:cC},displayAlign:"left"})},v=function(){s=Sc.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=cC},m=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},_=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},T=function(){var O="math-output-"+Sc.randstr({},64);u=On.select("body").append("div").attr({id:O}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(E$(e));var q=u.node();return i===2?MathJax.Hub.Typeset(q):MathJax.typeset([q])},M=function(){var O=u.select(i===2?".MathJax_SVG":".MathJax"),q=!O.empty()&&u.select("svg").node();if(!q)Sc.log("There was an error in the tex syntax.",e),r();else{var z=q.getBoundingClientRect(),N;i===2?N=On.select("body").select("#MathJax_SVG_glyphs"):N=O.select("defs"),r(O,N,z)}u.remove()},C=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},E=function(){a!=="svg"&&(MathJax.config.startup.output=a)},L=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(s)},I=function(){MathJax.config=s};i===2?MathJax.Hub.Queue(h,m,T,M,C,L):i===3&&(v(),_(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){T(),M(),E(),I()}))}var pC={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},D$={sub:"0.3em",sup:"-0.6em"},P$={sub:"-0.21em",sup:"0.42em"},hC="\u200B",vC=["http:","https:","mailto:","",void 0,":"],mC=Yl.NEWLINES=/(\r\n?|\n)/g,Vw=/(<[^<>]*>)/,Hw=/<(\/?)([^ >]*)(\s+(.*))?>/i,z$=//i;Yl.BR_TAG_ALL=//gi;var yC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,gC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,_C=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,I$=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function xd(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&K_(i)}var R$=/(^|;)\s*color:/;Yl.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],a="...",s=a.length,l=e.split(Vw),u=[],h="",v=0,m=0;ms?u.push(_.slice(0,Math.max(0,E-s))+a):u.push(_.slice(0,E));break}h=""}}return u.join("")};var F$={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},q$=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function K_(e){return e.replace(q$,function(t,r){var i;return r.charAt(0)==="#"?i=N$(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=F$[r],i||t})}Yl.convertEntities=K_;function N$(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function B$(e,t){t=t.replace(mC," ");var r=!1,i=[],a,s=-1;function l(){s++;var H=document.createElementNS(Ow.svg,"tspan");On.select(H).attr({class:"line",dy:s*M$+"em"}),e.appendChild(H),a=H;var U=i;if(i=[{node:H}],U.length>1)for(var W=1;W.",t);return}var U=i.pop();H!==U.type&&Sc.log("Start tag <"+U.type+"> doesnt match end tag <"+H+">. Pretending it did match.",t),a=i[i.length-1].node}var m=z$.test(t);m?l():(a=e,i=[{node:e}]);for(var _=t.split(Vw),T=0;T<_.length;T++){var M=_[T],C=M.match(Hw),E=C&&C[2].toLowerCase(),L=pC[E];if(E==="br")l();else if(L===void 0)h(a,K_(M));else if(C[1])v(E);else{var I=C[4],O={type:E},q=xd(I,yC);if(q?(q=q.replace(R$,"$1 fill:"),L&&(q+=";"+L)):L&&(q=L),q&&(O.style=q),E==="a"){r=!0;var z=xd(I,gC);if(z){var N=xC(z);N&&(O.href=N,O.target=xd(I,_C)||"_blank",O.popup=xd(I,I$))}}u(O)}}return r}function xC(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),i=document.createElement("a");r.href=e,i.href=t;var a=r.protocol,s=i.protocol;return vC.indexOf(a)!==-1&&vC.indexOf(s)!==-1?t:""}Yl.sanitizeHTML=function(t){t=t.replace(mC," ");for(var r=document.createElement("p"),i=r,a=[],s=t.split(Vw),l=0;l{"use strict";var O$=Xa(),$_=Sf(),Qy=La(),Q_=Ot(),bC=Ba(),U$=ud().isValid;function V$(e,t,r){var i=t?Q_.nestedProperty(e,t).get()||{}:e,a=i[r||"color"];a&&a._inputArray&&(a=a._inputArray);var s=!1;if(Q_.isArrayOrTypedArray(a)){for(var l=0;l=0;i--,a++){var s=e[i];r[a]=[1-s[0],s[1]]}return r}function kC(e,t){t=t||{};for(var r=e.domain,i=e.range,a=i.length,s=new Array(a),l=0;l{"use strict";var EC=cw(),G$=EC.FORMAT_LINK,Z$=EC.DATE_FORMAT_LINK;function Y$(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Gw:LC)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Gw(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+G$+"."].join(" ")}function LC(e,t){return Gw(e,t)+[" And for dates see: "+Z$+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}DC.exports={axisHoverFormat:Y$,descriptionOnlyNumbers:Gw,descriptionWithDates:LC}});var Nu=pe((m1e,XC)=>{"use strict";var PC=qo(),U0=kf(),WC=_c().dash,Ww=mn().extendFlat,zC=Pi().templatedArray,p1e=Cf().templateFormatStringDescription,IC=Zw().descriptionWithDates,W$=Zi().ONEDAY,Df=eo(),X$=Df.HOUR_PATTERN,j$=Df.WEEKDAY_PATTERN,Yw={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},J$=Ww({},Yw,{values:Yw.values.slice().concat(["sync"])});function RC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var FC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},qC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},NC={valType:"data_array",editType:"ticks"},BC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function OC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function UC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var VC={valType:"color",dflt:U0.defaultLine,editType:"ticks"},HC={valType:"color",dflt:U0.lightLine,editType:"ticks"};function GC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var ZC=Ww({},WC,{editType:"ticks"}),YC={valType:"boolean",editType:"ticks"};XC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:U0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:PC({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Df.idRegex.x.toString(),Df.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Df.idRegex.x.toString(),Df.idRegex.y.toString()],editType:"calc"},rangebreaks:zC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[j$,X$,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:W$},editType:"calc"}),tickmode:J$,nticks:RC(),tick0:FC,dtick:qC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:NC,ticktext:{valType:"data_array",editType:"ticks"},ticks:BC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:OC(),tickwidth:UC(),tickcolor:VC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Ww({},WC,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:PC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:IC("tick label")},tickformatstops:zC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:IC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:U0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:YC,gridcolor:HC,gridwidth:GC(),griddash:ZC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:U0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:U0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Df.idRegex.x.toString(),Df.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Df.idRegex.x.toString(),Df.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Yw,nticks:RC("minor"),tick0:FC,dtick:qC,tickvals:NC,ticks:BC,ticklen:OC("minor"),tickwidth:UC("minor"),tickcolor:VC,gridcolor:HC,gridwidth:GC("minor"),griddash:ZC,showgrid:YC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var e2=pe((y1e,KC)=>{"use strict";var Wi=Nu(),jC=qo(),JC=mn().extendFlat,K$=il().overrideAll;KC.exports=K$({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Wi.linecolor,outlinewidth:Wi.linewidth,bordercolor:Wi.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Wi.minor.tickmode,nticks:Wi.nticks,tick0:Wi.tick0,dtick:Wi.dtick,tickvals:Wi.tickvals,ticktext:Wi.ticktext,ticks:JC({},Wi.ticks,{dflt:""}),ticklabeloverflow:JC({},Wi.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Wi.ticklen,tickwidth:Wi.tickwidth,tickcolor:Wi.tickcolor,ticklabelstep:Wi.ticklabelstep,showticklabels:Wi.showticklabels,labelalias:Wi.labelalias,tickfont:jC({}),tickangle:Wi.tickangle,tickformat:Wi.tickformat,tickformatstops:Wi.tickformatstops,tickprefix:Wi.tickprefix,showtickprefix:Wi.showtickprefix,ticksuffix:Wi.ticksuffix,showticksuffix:Wi.showticksuffix,separatethousands:Wi.separatethousands,exponentformat:Wi.exponentformat,minexponent:Wi.minexponent,showexponent:Wi.showexponent,title:{text:{valType:"string"},font:jC({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var kc=pe((_1e,$C)=>{"use strict";var Q$=e2(),$$=T0().counter,eee=L_(),QC=ud().scales,g1e=eee(QC);function t2(e){return"`"+e+"`"}$C.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",a="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,s="noScale"in r?r.noScale:t==="marker.line",l="showScaleDflt"in r?r.showScaleDflt:i==="z",u=typeof r.colorscaleDflt=="string"?QC[r.colorscaleDflt]:null,h=r.editTypeOverride||"",v=t?t+".":"",m,_;"colorAttr"in r?(m=r.colorAttr,_=r.colorAttr):(m={z:"z",c:"color"}[i],_="in "+t2(v+m));var T=a?" Has an effect only if "+_+" is set to a numerical array.":"",M=i+"auto",C=i+"min",E=i+"max",L=i+"mid",I=t2(v+M),O=t2(v+C),q=t2(v+E),z=O+" and "+q,N={};N[C]=N[E]=void 0;var H={};H[M]=!1;var U={};return m==="color"&&(U.color={valType:"color",arrayOk:!0,editType:h||"style"},r.anim&&(U.color.anim=!0)),U[M]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:N},U[C]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},U[E]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},U[L]={valType:"number",dflt:null,editType:"calc",impliedEdits:N},U.colorscale={valType:"colorscale",editType:"calc",dflt:u,impliedEdits:{autocolorscale:!1}},U.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},U.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(U.showscale={valType:"boolean",dflt:l,editType:"calc"},U.colorbar=Q$),r.noColorAxis||(U.coloraxis={valType:"subplotid",regex:$$("coloraxis"),dflt:null,editType:"calc"}),U}});var jw=pe((x1e,eE)=>{"use strict";var tee=mn().extendFlat,ree=kc(),Xw=ud().scales;eE.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Xw.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Xw.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Xw.RdBu,editType:"calc"}},coloraxis:tee({_isSubplotObj:!0,editType:"calc"},ree("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Jw=pe((b1e,tE)=>{"use strict";var aee=Ot();tE.exports=function(t){return aee.isPlainObject(t.colorbar)}});var $w=pe(Qw=>{"use strict";var Kw=La(),rE=Ot(),aE=Zi(),iee=aE.ONEDAY,nee=aE.ONEWEEK;Qw.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",s=i?iee:1;if(!e)return s;if(Kw(e))return e=Number(e),e<=0?s:a?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return s;var l=e.charAt(0),u=e.slice(1);return u=Kw(u)?Number(u):0,u<=0||!(i&&l==="M"&&u===Math.round(u)||r&&l==="L"||r&&l==="D"&&(u===1||u===2))?s:e};Qw.tick0=function(e,t,r,i){if(t==="date")return rE.cleanDate(e,rE.dateTick0(r,i%nee===0?1:0));if(!(i==="D1"||i==="D2"))return Kw(e)?Number(e):0}});var e5=pe((T1e,nE)=>{"use strict";var iE=$w(),oee=Ot().isArrayOrTypedArray,see=Fs().isTypedArraySpec,lee=Fs().decodeTypedArraySpec;nE.exports=function(t,r,i,a,s){s||(s={});var l=s.isMinor,u=l?t.minor||{}:t,h=l?r.minor:r,v=l?"minor.":"";function m(O){var q=u[O];return see(q)&&(q=lee(q)),q!==void 0?q:(h._template||{})[O]}var _=m("tick0"),T=m("dtick"),M=m("tickvals"),C=oee(M)?"array":T?"linear":"auto",E=i(v+"tickmode",C);if(E==="auto"||E==="sync")i(v+"nticks");else if(E==="linear"){var L=h.dtick=iE.dtick(T,a);h.tick0=iE.tick0(_,a,r.calendar,L)}else if(a!=="multicategory"){var I=i(v+"tickvals");I===void 0?h.tickmode="auto":l||i("ticktext")}}});var r5=pe((A1e,sE)=>{"use strict";var t5=Ot(),oE=Nu();sE.exports=function(t,r,i,a){var s=a.isMinor,l=s?t.minor||{}:t,u=s?r.minor:r,h=s?oE.minor:oE,v=s?"minor.":"",m=t5.coerce2(l,u,h,"ticklen",s?(r.ticklen||5)*.6:void 0),_=t5.coerce2(l,u,h,"tickwidth",s?r.tickwidth||1:void 0),T=t5.coerce2(l,u,h,"tickcolor",(s?r.tickcolor:void 0)||u.color),M=i(v+"ticks",!s&&a.outerTicks||m||_||T?"outside":"");M||(delete u.ticklen,delete u.tickwidth,delete u.tickcolor)}});var a5=pe((M1e,lE)=>{"use strict";lE.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(s){return t[s]!==void 0}),a=function(s){return t[s]===t[i[0]]};if(i.every(a)||i.length===1)return t[i[0]]}});var Wl=pe((S1e,uE)=>{"use strict";var r2=Ot(),uee=Pi();uE.exports=function(t,r,i){var a=i.name,s=i.inclusionAttr||"visible",l=r[a],u=r2.isArrayOrTypedArray(t[a])?t[a]:[],h=r[a]=[],v=uee.arrayTemplater(r,a,s),m,_;for(m=0;m{"use strict";var i5=Ot(),fee=Ba().contrast,fE=Nu(),cee=a5(),hee=Wl();cE.exports=function(t,r,i,a,s){s||(s={});var l=i("labelalias");i5.isPlainObject(l)||delete r.labelalias;var u=cee(t),h=i("showticklabels");if(h){s.noTicklabelshift||i("ticklabelshift"),s.noTicklabelstandoff||i("ticklabelstandoff");var v=s.font||{},m=r.color,_=r.ticklabelposition||"",T=_.indexOf("inside")!==-1?fee(s.bgColor):m&&m!==fE.color.dflt?m:v.color;if(i5.coerceFont(i,"tickfont",v,{overrideDflt:{color:T}}),!s.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&i("ticklabelstep"),!s.noAng){var M=i("tickangle");!s.noAutotickangles&&M==="auto"&&i("autotickangles")}if(a!=="category"){var C=i("tickformat");hee(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:vee}),r.tickformatstops.length||delete r.tickformatstops,!s.noExp&&!C&&a!=="date"&&(i("showexponent",u),i("exponentformat"),i("minexponent"),i("separatethousands"))}!s.noMinorloglabels&&a==="log"&&i("minorloglabels")}};function vee(e,t){function r(a,s){return i5.coerce(e,t,fE.tickformatstops,a,s)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var o5=pe((C1e,hE)=>{"use strict";var dee=a5();hE.exports=function(t,r,i,a,s){s||(s={});var l=s.tickSuffixDflt,u=dee(t),h=i("tickprefix");h&&i("showtickprefix",u);var v=i("ticksuffix",l);v&&i("showticksuffix",u)}});var s5=pe((E1e,vE)=>{"use strict";var Uh=Ot(),pee=Pi(),mee=e5(),yee=r5(),gee=n5(),_ee=o5(),xee=e2();vE.exports=function(t,r,i){var a=pee.newContainer(r,"colorbar"),s=t.colorbar||{};function l(ie,oe){return Uh.coerce(s,a,xee,ie,oe)}var u=i.margin||{t:0,b:0,l:0,r:0},h=i.width-u.l-u.r,v=i.height-u.t-u.b,m=l("orientation"),_=m==="v",T=l("thicknessmode");l("thickness",T==="fraction"?30/(_?h:v):30);var M=l("lenmode");l("len",M==="fraction"?1:_?v:h);var C=l("yref"),E=l("xref"),L=C==="paper",I=E==="paper",O,q,z,N="left";_?(z="middle",N=I?"left":"right",O=I?1.02:1,q=.5):(z=L?"bottom":"top",N="center",O=.5,q=L?1.02:1),Uh.coerce(s,a,{x:{valType:"number",min:I?-2:0,max:I?3:1,dflt:O}},"x"),Uh.coerce(s,a,{y:{valType:"number",min:L?-2:0,max:L?3:1,dflt:q}},"y"),l("xanchor",N),l("xpad"),l("yanchor",z),l("ypad"),Uh.noneOrAll(s,a,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var H=Uh.coerce(s,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:_?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",H.indexOf("inside")!==-1?"hide past domain":"hide past div"),mee(s,a,l,"linear");var U=i.font,W={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:U};H.indexOf("inside")!==-1&&(W.bgColor="black"),_ee(s,a,l,"linear",W),gee(s,a,l,"linear",W),yee(s,a,l,"linear",W),l("title.text",i._dfltTitle.colorbar);var J=a.showticklabels?a.tickfont:U,ee=Uh.extendFlat({},U,{family:J.family,size:Uh.bigFont(J.size)});Uh.coerceFont(l,"title.font",ee),l("title.side",_?"top":"right")}});var bd=pe((L1e,mE)=>{"use strict";var dE=La(),u5=Ot(),bee=Jw(),wee=s5(),pE=ud().isValid,Tee=la().traceIs;function l5(e,t){var r=t.slice(0,t.length-1);return t?u5.nestedProperty(e,r).get()||{}:e}mE.exports=function e(t,r,i,a,s){var l=s.prefix,u=s.cLetter,h="_module"in r,v=l5(t,l),m=l5(r,l),_=l5(r._template||{},l)||{},T=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,a,s)};if(h){var M=i._colorAxes||{},C=a(l+"coloraxis");if(C){var E=Tee(r,"contour")&&u5.nestedProperty(r,"contours.coloring").get()||"heatmap",L=M[C];L?(L[2].push(T),L[0]!==E&&(L[0]=!1,u5.warn(["Ignoring coloraxis:",C,"setting","as it is linked to incompatible colorscales."].join(" ")))):M[C]=[E,r,[T]];return}}var I=v[u+"min"],O=v[u+"max"],q=dE(I)&&dE(O)&&I{"use strict";var yE=Ot(),Aee=Pi(),gE=jw(),Mee=bd();_E.exports=function(t,r){function i(_,T){return yE.coerce(t,r,gE,_,T)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,s,l;function u(_,T){return yE.coerce(s,l,gE.coloraxis,_,T)}for(var h in a){var v=a[h];if(v[0])s=t[h]||{},l=Aee.newContainer(r,h,"coloraxis"),l._name=h,Mee(s,l,r,u,{prefix:"",cLetter:"c"});else{for(var m=0;m{"use strict";var See=Ot(),kee=Lf().hasColorscale,Cee=Lf().extractOpts;bE.exports=function(t,r){function i(m,_){var T=m["_"+_];T!==void 0&&(m[_]=T)}function a(m,_){var T=_.container?See.nestedProperty(m,_.container).get():m;if(T)if(T.coloraxis)T._colorAx=r[T.coloraxis];else{var M=Cee(T),C=M.auto;(C||M.min===void 0)&&i(T,_.min),(C||M.max===void 0)&&i(T,_.max),M.autocolorscale&&i(T,"colorscale")}}for(var s=0;s{"use strict";var TE=La(),f5=Ot(),Eee=Lf().extractOpts;AE.exports=function(t,r,i){var a=t._fullLayout,s=i.vals,l=i.containerStr,u=l?f5.nestedProperty(r,l).get():r,h=Eee(u),v=h.auto!==!1,m=h.min,_=h.max,T=h.mid,M=function(){return f5.aggNums(Math.min,null,s)},C=function(){return f5.aggNums(Math.max,null,s)};if(m===void 0?m=M():v&&(u._colorAx&&TE(m)?m=Math.min(m,M()):m=M()),_===void 0?_=C():v&&(u._colorAx&&TE(_)?_=Math.max(_,C()):_=C()),v&&T!==void 0&&(_-T>T-m?m=T-(_-T):_-T=0?E=a.colorscale.sequential:E=a.colorscale.sequentialminus,h._sync("colorscale",E)}}});var H0=pe((I1e,ME)=>{"use strict";var a2=ud(),V0=Lf();ME.exports={moduleType:"component",name:"colorscale",attributes:kc(),layoutAttributes:jw(),supplyLayoutDefaults:xE(),handleDefaults:bd(),crossTraceDefaults:wE(),calc:$y(),scales:a2.scales,defaultScale:a2.defaultScale,getScale:a2.get,isValidScale:a2.isValid,hasColorscale:V0.hasColorscale,extractOpts:V0.extractOpts,extractScale:V0.extractScale,flipScale:V0.flipScale,makeColorScaleFunc:V0.makeColorScaleFunc,makeColorScaleFuncFromTrace:V0.makeColorScaleFuncFromTrace}});var rs=pe((R1e,kE)=>{"use strict";var SE=Ot(),Lee=Fs().isTypedArraySpec;kE.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return SE.isPlainObject(t)&&(SE.isArrayOrTypedArray(t.size)||Lee(t.size))}}});var c5=pe((F1e,CE)=>{"use strict";var Dee=La();CE.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,s=i.sizemin||0,l=i.sizemode==="area"?function(u){return Math.sqrt(u/a)}:function(u){return u/a};return function(u){var h=l(u/r);return Dee(h)&&h>0?Math.max(h,s):0}}});var Cc=pe(Bo=>{"use strict";var i2=Ot();Bo.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Bo.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index{DE.exports=Fee;var h5={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Ree=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Fee(e){var t=[];return e.replace(Ree,function(r,i,a){var s=i.toLowerCase();for(a=Nee(a),s=="m"&&a.length>2&&(t.push([i].concat(a.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(a.length==h5[s])return a.unshift(i),t.push(a);if(a.length{"use strict";var Bee=v5(),lr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ha="M0,0Z",PE=Math.sqrt(2),Vh=Math.sqrt(3),d5=Math.PI,p5=Math.cos,m5=Math.sin;qE.exports={circle:{n:0,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?da(t,r,a):a}},square:{n:1,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.4,2),a=lr(e*1.2,2);return da(t,r,"M"+a+","+i+"H"+i+"V"+a+"H-"+i+"V"+i+"H-"+a+"V-"+i+"H-"+i+"V-"+a+"H"+i+"V-"+i+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.8/PE,2),a="l"+i+","+i,s="l"+i+",-"+i,l="l-"+i+",-"+i,u="l-"+i+","+i;return da(t,r,"M0,"+i+a+s+l+s+l+u+l+u+a+u+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2/Vh,2),a=lr(e/2,2),s=lr(e,2);return da(t,r,"M-"+i+","+a+"H"+i+"L0,-"+s+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2/Vh,2),a=lr(e/2,2),s=lr(e,2);return da(t,r,"M-"+i+",-"+a+"H"+i+"L0,"+s+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2/Vh,2),a=lr(e/2,2),s=lr(e,2);return da(t,r,"M"+a+",-"+i+"V"+i+"L-"+s+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2/Vh,2),a=lr(e/2,2),s=lr(e,2);return da(t,r,"M-"+a+",-"+i+"V"+i+"L"+s+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.6,2),a=lr(e*1.2,2);return da(t,r,"M-"+a+",-"+i+"H"+i+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.6,2),a=lr(e*1.2,2);return da(t,r,"M"+i+",-"+a+"V"+i+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.6,2),a=lr(e*1.2,2);return da(t,r,"M"+a+","+i+"H-"+i+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.6,2),a=lr(e*1.2,2);return da(t,r,"M-"+i+","+a+"V-"+i+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.951,2),a=lr(e*.588,2),s=lr(-e,2),l=lr(e*-.309,2),u=lr(e*.809,2);return da(t,r,"M"+i+","+l+"L"+a+","+u+"H-"+a+"L-"+i+","+l+"L0,"+s+"Z")}},hexagon:{n:14,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e/2,2),s=lr(e*Vh/2,2);return da(t,r,"M"+s+",-"+a+"V"+a+"L0,"+i+"L-"+s+","+a+"V-"+a+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e/2,2),s=lr(e*Vh/2,2);return da(t,r,"M-"+a+","+s+"H"+a+"L"+i+",0L"+a+",-"+s+"H-"+a+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.924,2),a=lr(e*.383,2);return da(t,r,"M-"+a+",-"+i+"H"+a+"L"+i+",-"+a+"V"+a+"L"+a+","+i+"H-"+a+"L-"+i+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(va(t))return ha;var i=e*1.4,a=lr(i*.225,2),s=lr(i*.951,2),l=lr(i*.363,2),u=lr(i*.588,2),h=lr(-i,2),v=lr(i*-.309,2),m=lr(i*.118,2),_=lr(i*.809,2),T=lr(i*.382,2);return da(t,r,"M"+a+","+v+"H"+s+"L"+l+","+m+"L"+u+","+_+"L0,"+T+"L-"+u+","+_+"L-"+l+","+m+"L-"+s+","+v+"H-"+a+"L0,"+h+"Z")}},hexagram:{n:18,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.66,2),a=lr(e*.38,2),s=lr(e*.76,2);return da(t,r,"M-"+s+",0l-"+a+",-"+i+"h"+s+"l"+a+",-"+i+"l"+a+","+i+"h"+s+"l-"+a+","+i+"l"+a+","+i+"h-"+s+"l-"+a+","+i+"l-"+a+",-"+i+"h-"+s+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(va(t))return ha;var i=lr(e*Vh*.8,2),a=lr(e*.8,2),s=lr(e*1.6,2),l=lr(e*4,2),u="A "+l+","+l+" 0 0 1 ";return da(t,r,"M-"+i+","+a+u+i+","+a+u+"0,-"+s+u+"-"+i+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(va(t))return ha;var i=lr(e*Vh*.8,2),a=lr(e*.8,2),s=lr(e*1.6,2),l=lr(e*4,2),u="A "+l+","+l+" 0 0 1 ";return da(t,r,"M"+i+",-"+a+u+"-"+i+",-"+a+u+"0,"+s+u+i+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.1,2),a=lr(e*2,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",-"+i+s+"-"+i+","+i+s+i+","+i+s+i+",-"+i+s+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2),a=lr(e*1.9,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",0"+s+"0,"+i+s+i+",0"+s+"0,-"+i+s+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.7,2),a=lr(e*1.4,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2),a=lr(e*.7,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e/PE,2);return da(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.3,2),a=lr(e*.65,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*.85,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(va(t))return ha;var i=lr(e/2,2),a=lr(e,2);return da(t,r,"M"+i+","+a+"V-"+a+"M"+(i-a)+",-"+a+"V"+a+"M"+a+","+i+"H-"+a+"M-"+a+","+(i-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*1.6,2),s=lr(e*.8,2);return da(t,r,"M-"+i+","+s+"L0,0M"+i+","+s+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*1.6,2),s=lr(e*.8,2);return da(t,r,"M-"+i+",-"+s+"L0,0M"+i+",-"+s+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*1.6,2),s=lr(e*.8,2);return da(t,r,"M"+s+","+i+"L0,0M"+s+",-"+i+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*1.6,2),s=lr(e*.8,2);return da(t,r,"M-"+s+","+i+"L0,0M-"+s+",-"+i+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2);return da(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e*2,2);return da(t,r,"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e*2,2);return da(t,r,"M0,0L-"+i+",-"+a+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2,2),a=lr(e,2);return da(t,r,"M0,0L"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2,2),a=lr(e,2);return da(t,r,"M0,0L-"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+a+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2,2),a=lr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2,2),a=lr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L-"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(va(t))return ha;var i=d5/2.5,a=2*e*p5(i),s=2*e*m5(i);return da(t,r,"M0,0L"+-a+","+s+"L"+a+","+s+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(va(t))return ha;var i=d5/4,a=2*e*p5(i),s=2*e*m5(i);return da(t,r,"M0,0L"+-a+","+s+"A "+2*e+","+2*e+" 0 0 1 "+a+","+s+"Z")},backoff:.4,noDot:!0}};function va(e){return e===null}var zE,IE,RE,FE;function da(e,t,r){if((!e||e%360===0)&&!t)return r;if(RE===e&&FE===t&&zE===r)return IE;RE=e,FE=t,zE=r;function i(L,I){var O=p5(L),q=m5(L),z=I[0],N=I[1]+(t||0);return[z*O-N*q,z*q+N*O]}for(var a=e/180*d5,s=0,l=0,u=Bee(r),h="",v=0;v{"use strict";var ao=Xa(),gi=Ot(),Oee=gi.numberFormat,Md=La(),w5=Sf(),o2=la(),Mo=Ba(),Uee=H0(),tg=gi.strTranslate,s2=ro(),Vee=Oh(),Hee=No(),Gee=Hee.LINE_SPACING,XE=m_().DESELECTDIM,Zee=rs(),Yee=c5(),Wee=Cc().appendArrayPointValue,xr=iL.exports={};xr.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,s=t.color,l=t.size,u=t.family,h=t.shadow,v=t.lineposition,m=t.textcase;u&&e.style("font-family",u),l+1&&e.style("font-size",l+"px"),s&&e.call(Mo.fill,s),a&&e.style("font-weight",a),i&&e.style("font-style",i),r&&e.style("font-variant",r),m&&e.style("text-transform",y5(jee(m))),h&&e.style("text-shadow",h==="auto"?s2.makeTextShadow(Mo.contrast(s)):y5(h)),v&&e.style("text-decoration-line",y5(Jee(v)))};function y5(e){return e==="none"?void 0:e}var Xee={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function jee(e){return Xee[e]}function Jee(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}xr.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};xr.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};xr.setRect=function(e,t,r,i,a){e.call(xr.setPosition,t,r).call(xr.setSize,i,a)};xr.translatePoint=function(e,t,r,i){var a=r.c2p(e.x),s=i.c2p(e.y);if(Md(a)&&Md(s)&&t.node())t.node().nodeName==="text"?t.attr("x",a).attr("y",s):t.attr("transform",tg(a,s));else return!1;return!0};xr.translatePoints=function(e,t,r){e.each(function(i){var a=ao.select(this);xr.translatePoint(i,a,t,r)})};xr.hideOutsideRangePoint=function(e,t,r,i,a,s){t.attr("display",r.isPtWithinRange(e,a)&&i.isPtWithinRange(e,s)?null:"none")};xr.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(a){var s=a[0].trace,l=s.xcalendar,u=s.ycalendar,h=o2.traceIs(s,"bar-like")?".bartext":".point,.textpoint";e.selectAll(h).each(function(v){xr.hideOutsideRangePoint(v,ao.select(this),r,i,l,u)})})}};xr.crispRound=function(e,t,r){return!t||!Md(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};xr.singleLineStyle=function(e,t,r,i,a){t.style("fill","none");var s=(((e||[])[0]||{}).trace||{}).line||{},l=r||s.width||0,u=a||s.dash||"";Mo.stroke(t,i||s.color),xr.dashLine(t,u,l)};xr.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(a){var s=(((a||[])[0]||{}).trace||{}).line||{},l=t||s.width||0,u=i||s.dash||"";ao.select(this).call(Mo.stroke,r||s.color).call(xr.dashLine,u,l)})};xr.dashLine=function(e,t,r){r=+r||0,t=xr.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};xr.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function jE(e,t,r,i){var a=t.fillpattern,s=t.fillgradient,l=xr.getPatternAttr,u=a&&(l(a.shape,0,"")||l(a.path,0,""));if(u){var h=l(a.bgcolor,0,null),v=l(a.fgcolor,0,null),m=a.fgopacity,_=l(a.size,0,8),T=l(a.solidity,0,.3),M=t.uid;xr.pattern(e,"point",r,M,u,_,T,void 0,a.fillmode,h,v,m)}else if(s&&s.type!=="none"){var C=s.type,E="scatterfill-"+t.uid;if(i&&(E="legendfill-"+t.uid),!i&&(s.start!==void 0||s.stop!==void 0)){var L,I;C==="horizontal"?(L={x:s.start,y:0},I={x:s.stop,y:0}):C==="vertical"&&(L={x:0,y:s.start},I={x:0,y:s.stop}),L.x=t._xA.c2p(L.x===void 0?t._extremes.x.min[0].val:L.x,!0),L.y=t._yA.c2p(L.y===void 0?t._extremes.y.min[0].val:L.y,!0),I.x=t._xA.c2p(I.x===void 0?t._extremes.x.max[0].val:I.x,!0),I.y=t._yA.c2p(I.y===void 0?t._extremes.y.max[0].val:I.y,!0),e.call(QE,r,E,"linear",s.colorscale,"fill",L,I,!0,!1)}else C==="horizontal"&&(C=C+"reversed"),e.call(xr.gradient,r,E,C,s.colorscale,"fill")}else t.fillcolor&&e.call(Mo.fill,t.fillcolor)}xr.singleFillStyle=function(e,t){var r=ao.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};jE(e,a,t,!1)};xr.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var a=ao.select(this);i[0].trace&&jE(a,i[0].trace,t,r)})};var BE=NE();xr.symbolNames=[];xr.symbolFuncs=[];xr.symbolBackOffs=[];xr.symbolNeedLines={};xr.symbolNoDot={};xr.symbolNoFill={};xr.symbolList=[];Object.keys(BE).forEach(function(e){var t=BE[e],r=t.n;xr.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),xr.symbolNames[r]=e,xr.symbolFuncs[r]=t.f,xr.symbolBackOffs[r]=t.backoff||0,t.needLine&&(xr.symbolNeedLines[r]=!0),t.noDot?xr.symbolNoDot[r]=!0:xr.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(xr.symbolNoFill[r]=!0)});var Kee=xr.symbolNames.length,Qee="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";xr.symbolNumber=function(e){if(Md(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=xr.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Kee||e>=400?0:Math.floor(Math.max(e,0))};function JE(e,t,r,i){var a=e%100;return xr.symbolFuncs[a](t,r,i)+(e>=200?Qee:"")}var OE=Oee("~f"),KE={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};xr.gradient=function(e,t,r,i,a,s){var l=KE[i];return QE(e,t,r,l.type,a,s,l.start,l.stop,!1,l.reversed)};function QE(e,t,r,i,a,s,l,u,h,v){var m=a.length,_;i==="linear"?_={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:u.x,y2:u.y,gradientUnits:h?"userSpaceOnUse":"objectBoundingBox"},reversed:v}:i==="radial"&&(_={node:"radialGradient",reversed:v});for(var T=new Array(m),M=0;M=0&&e.i===void 0&&(e.i=s.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),i.ms2mrc){var h;e.ms==="various"||l.size==="various"?h=3:h=i.ms2mrc(e.ms),e.mrc=h,i.selectedSizeFn&&(h=e.mrc=i.selectedSizeFn(e));var v=xr.symbolNumber(e.mx||l.symbol)||0;e.om=v%200>=100;var m=M5(e,r),_=A5(e,r);t.attr("d",JE(v,h,m,_))}var T=!1,M,C,E;if(e.so)E=u.outlierwidth,C=u.outliercolor,M=l.outliercolor;else{var L=(u||{}).width;E=(e.mlw+1||L+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?C=e.mlcc=i.lineScale(e.mlc):gi.isArrayOrTypedArray(u.color)?C=Mo.defaultLine:C=u.color,gi.isArrayOrTypedArray(l.color)&&(M=Mo.defaultLine,T=!0),"mc"in e?M=e.mcc=i.markerScale(e.mc):M=l.color||l.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(M=i.selectedColorFn(e))}let I=e.mld||(u||{}).dash;if(I&&xr.dashLine(t,I,E),e.om)t.call(Mo.stroke,M).style({"stroke-width":(E||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:E)+"px");var O=l.gradient,q=e.mgt;q?T=!0:q=O&&O.type,gi.isArrayOrTypedArray(q)&&(q=q[0],KE[q]||(q=0));var z=l.pattern,N=xr.getPatternAttr,H=z&&(N(z.shape,e.i,"")||N(z.path,e.i,""));if(q&&q!=="none"){var U=e.mgc;U?T=!0:U=O.color;var W=r.uid;T&&(W+="-"+e.i),xr.gradient(t,a,W,q,[[0,U],[1,M]],"fill")}else if(H){var J=!1,ee=z.fgcolor;!ee&&s&&s.color&&(ee=s.color,J=!0);var ie=N(ee,e.i,s&&s.color||null),oe=N(z.bgcolor,e.i,null),he=z.fgopacity,fe=N(z.size,e.i,8),Te=N(z.solidity,e.i,.3);J=J||e.mcc||gi.isArrayOrTypedArray(z.shape)||gi.isArrayOrTypedArray(z.path)||gi.isArrayOrTypedArray(z.bgcolor)||gi.isArrayOrTypedArray(z.fgcolor)||gi.isArrayOrTypedArray(z.size)||gi.isArrayOrTypedArray(z.solidity);var ke=r.uid;J&&(ke+="-"+e.i),xr.pattern(t,"point",a,ke,H,fe,Te,e.mcc,z.fillmode,oe,ie,he)}else gi.isArrayOrTypedArray(M)?Mo.fill(t,M[e.i]):Mo.fill(t,M);E&&Mo.stroke(t,C)}};xr.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=xr.tryColorscale(r,""),t.lineScale=xr.tryColorscale(r,"line"),o2.traceIs(e,"symbols")&&(t.ms2mrc=Zee.isBubble(e)?Yee(e):function(){return(r.size||6)/2}),e.selectedpoints&&gi.extendFlat(t,xr.makeSelectedPointStyleFns(e)),t};xr.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.marker||{},s=r.marker||{},l=i.marker||{},u=a.opacity,h=s.opacity,v=l.opacity,m=h!==void 0,_=v!==void 0;(gi.isArrayOrTypedArray(u)||m||_)&&(t.selectedOpacityFn=function(z){var N=z.mo===void 0?a.opacity:z.mo;return z.selected?m?h:N:_?v:XE*N});var T=a.color,M=s.color,C=l.color;(M||C)&&(t.selectedColorFn=function(z){var N=z.mcc||T;return z.selected?M||N:C||N});var E=a.size,L=s.size,I=l.size,O=L!==void 0,q=I!==void 0;return o2.traceIs(e,"symbols")&&(O||q)&&(t.selectedSizeFn=function(z){var N=z.mrc||E/2;return z.selected?O?L/2:N:q?I/2:N}),t};xr.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.textfont||{},s=r.textfont||{},l=i.textfont||{},u=a.color,h=s.color,v=l.color;return t.selectedTextColorFn=function(m){var _=m.tc||u;return m.selected?h||_:v||(h?_:Mo.addOpacity(_,XE))},t};xr.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=xr.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];r.selectedOpacityFn&&a.push(function(s,l){s.style("opacity",r.selectedOpacityFn(l))}),r.selectedColorFn&&a.push(function(s,l){Mo.fill(s,r.selectedColorFn(l))}),r.selectedSizeFn&&a.push(function(s,l){var u=l.mx||i.symbol||0,h=r.selectedSizeFn(l);s.attr("d",JE(xr.symbolNumber(u),h,M5(l,t),A5(l,t))),l.mrc2=h}),a.length&&e.each(function(s){for(var l=ao.select(this),u=0;u0?r:0}xr.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var a=xr.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}var s=t.texttemplate,l=r._fullLayout;e.each(function(u){var h=ao.select(this),v=s?gi.extractOption(u,t,"txt","texttemplate"):gi.extractOption(u,t,"tx","text");if(!v&&v!==0){h.remove();return}if(s){var m=t._module.formatLabels,_=m?m(u,t,l):{},T={};Wee(T,t,u.i),v=gi.texttemplateString({data:[T,u,t._meta],fallback:t.texttemplatefallback,labels:_,locale:l._d3locale,template:v})}var M=u.tp||t.textposition,C=eL(u,t),E=i?i(u):u.tc||t.textfont.color;h.call(xr.font,{family:u.tf||t.textfont.family,weight:u.tw||t.textfont.weight,style:u.ty||t.textfont.style,variant:u.tv||t.textfont.variant,textcase:u.tC||t.textfont.textcase,lineposition:u.tE||t.textfont.lineposition,shadow:u.tS||t.textfont.shadow,size:C,color:E}).text(v).call(s2.convertToTspans,r).call($E,M,C,u.mrc)})}};xr.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=xr.makeSelectedTextStyleFns(t);e.each(function(i){var a=ao.select(this),s=r.selectedTextColorFn(i),l=i.tp||t.textposition,u=eL(i,t);Mo.fill(a,s);var h=o2.traceIs(t,"bar-like");$E(a,l,u,i.mrc2||i.mrc,h)})}};var UE=.5;xr.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],a;for(a=1;a=h||z>=m&&z<=h)&&(N<=_&&N>=v||N>=_&&N<=v)&&(e=[z,N])}return e}xr.applyBackoff=aL;xr.makeTester=function(){var e=gi.ensureSingleById(ao.select("body"),"svg","js-plotly-tester",function(r){r.attr(Vee.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=gi.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});xr.tester=e,xr.testref=t};xr.savedBBoxes={};var _5=0,tte=1e4;xr.bBox=function(e,t,r){r||(r=VE(e));var i;if(r){if(i=xr.savedBBoxes[r],i)return gi.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=VE(a),r){var s=+a.getAttribute("x")||0,l=+a.getAttribute("y")||0,u=a.getAttribute("transform");if(!u){var h=xr.bBox(a,!1,r);return s&&(h.left+=s,h.right+=s),l&&(h.top+=l,h.bottom+=l),h}if(r+="~"+s+"~"+l+"~"+u,i=xr.savedBBoxes[r],i)return gi.extendFlat({},i)}}var v,m;t?v=e:(m=xr.tester.node(),v=e.cloneNode(!0),m.appendChild(v)),ao.select(v).attr("transform",null).call(s2.positionText,0,0);var _=v.getBoundingClientRect(),T=xr.testref.node().getBoundingClientRect();t||m.removeChild(v);var M={height:_.height,width:_.width,left:_.left-T.left,top:_.top-T.top,right:_.right-T.left,bottom:_.bottom-T.top};return _5>=tte&&(xr.savedBBoxes={},_5=0),r&&(xr.savedBBoxes[r]=M),_5++,gi.extendFlat({},M)};function VE(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}xr.setClipUrl=function(e,t,r){e.attr("clip-path",T5(t,r))};function T5(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}xr.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,u){return[l,u].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};xr.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||0,r=r||0,l=l.replace(i,"").trim(),l+=tg(t,r),l=l.trim(),e[s]("transform",l),l};xr.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,u){return[l,u].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};xr.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||1,r=r||1,l=l.replace(i,"").trim(),l+="scale("+t+","+r+")",l=l.trim(),e[s]("transform",l),l};var rte=/\s*sc.*/;xr.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(rte,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var ate=/translate\([^)]*\)\s*$/;xr.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,a=ao.select(this),s=a.select("text");if(s.node()){var l=parseFloat(s.attr("x")||0),u=parseFloat(s.attr("y")||0),h=(a.attr("transform")||"").match(ate);t===1&&r===1?i=[]:i=[tg(l,u),"scale("+t+","+r+")",tg(-l,-u)],h&&i.push(h),a.attr("transform",i.join(""))}})};function A5(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}xr.getMarkerStandoff=A5;var eg=Math.atan2,wd=Math.cos,Z0=Math.sin;function HE(e,t){var r=t[0],i=t[1];return[r*wd(e)-i*Z0(e),r*Z0(e)+i*wd(e)]}var GE,ZE,YE,WE,x5,b5;function M5(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||gi.isArrayOrTypedArray(r))&&(r=0));var i,a,s=t.marker.angleref;if(s==="previous"||s==="north"){if(t._geo){var l=t._geo.project(e.lonlat);i=l[0],a=l[1]}else{var u=t._xA,h=t._yA;if(u&&h)i=u.c2p(e.x),a=h.c2p(e.y);else return 90}if(t._geo){var v=e.lonlat[0],m=e.lonlat[1],_=t._geo.project([v,m+1e-5]),T=t._geo.project([v+1e-5,m]),M=eg(T[1]-a,T[0]-i),C=eg(_[1]-a,_[0]-i),E;if(s==="north")E=r/180*Math.PI;else if(s==="previous"){var L=v/180*Math.PI,I=m/180*Math.PI,O=GE/180*Math.PI,q=ZE/180*Math.PI,z=O-L,N=wd(q)*Z0(z),H=Z0(q)*wd(I)-wd(q)*Z0(I)*wd(z);E=-eg(N,H)-Math.PI,GE=v,ZE=m}var U=HE(M,[wd(E),0]),W=HE(C,[Z0(E),0]);r=eg(U[1]+W[1],U[0]+W[0])/Math.PI*180,s==="previous"&&!(b5===t.uid&&e.i===x5+1)&&(r=null)}if(s==="previous"&&!t._geo)if(b5===t.uid&&e.i===x5+1&&Md(i)&&Md(a)){var J=i-YE,ee=a-WE,ie=t.line&&t.line.shape||"",oe=ie.slice(ie.length-1);oe==="h"&&(ee=0),oe==="v"&&(J=0),r+=eg(ee,J)/Math.PI*180+90}else r=null}return YE=i,WE=a,x5=e.i,b5=t.uid,r}xr.getMarkerAngle=M5});var rg=pe((U1e,lL)=>{"use strict";var Y0=Xa(),ite=La(),nte=to(),S5=la(),Sd=Ot(),nL=Sd.strTranslate,l2=_i(),u2=Ba(),W0=ro(),oL=m_(),ote=No().OPPOSITE_SIDE,sL=/ [XY][0-9]* /,k5=1.6,C5=1.6;function ste(e,t,r){var i=e._fullLayout,a=r.propContainer,s=r.propName,l=r.placeholder,u=r.traceIndex,h=r.avoid||{},v=r.attributes,m=r.transform,_=r.containerGroup,T=1,M=a.title,C=(M&&M.text?M.text:"").trim(),E=!1,L=M&&M.font?M.font:{},I=L.family,O=L.size,q=L.color,z=L.weight,N=L.style,H=L.variant,U=L.textcase,W=L.lineposition,J=L.shadow,ee=r.subtitlePropName,ie=!!ee,oe=r.subtitlePlaceholder,he=(a.title||{}).subtitle||{text:"",font:{}},fe=(he.text||"").trim(),Te=!1,ke=1,Se=he.font,Ae=Se.family,me=Se.size,Ce=Se.color,Me=Se.weight,We=Se.style,it=Se.variant,nt=Se.textcase,gt=Se.lineposition,Xe=Se.shadow,kt;s==="title.text"?kt="titleText":s.indexOf("axis")!==-1?kt="axisTitleText":s.indexOf("colorbar")!==-1&&(kt="colorbarTitleText");var lt=e._context.edits[kt];function mt(qt,Dt){return qt===void 0||Dt===void 0?!1:qt.replace(sL," % ")===Dt.replace(sL," % ")}C===""?T=0:mt(C,l)&&(lt||(C=""),T=.2,E=!0),ie&&(fe===""?ke=0:mt(fe,oe)&&(lt||(fe=""),ke=.2,Te=!0)),r._meta?C=Sd.templateString(C,r._meta):i._meta&&(C=Sd.templateString(C,i._meta));var Bt=C||fe||lt,ft;_||(_=Sd.ensureSingle(i._infolayer,"g","g-"+t),ft=i._hColorbarMoveTitle);var de=_.selectAll("text."+t).data(Bt?[0]:[]);de.enter().append("text"),de.text(C).attr("class",t),de.exit().remove();var De=null,ye=t+"-subtitle",Oe=fe||lt;if(ie&&(De=_.selectAll("text."+ye).data(Oe?[0]:[]),De.enter().append("text"),De.text(fe).attr("class",ye),De.exit().remove()),!Bt)return _;function at(qt,Dt){Sd.syncOrAsync([Je,Pt],{title:qt,subtitle:Dt})}function Je(qt){var Dt=qt.title,At=qt.subtitle,Ut;!m&&ft&&(m={}),m?(Ut="",m.rotate&&(Ut+="rotate("+[m.rotate,v.x,v.y]+")"),(m.offset||ft)&&(Ut+=nL(0,(m.offset||0)-(ft||0)))):Ut=null,Dt.attr("transform",Ut);function Wt(vt){if(vt){var pt=Y0.select(vt.node().parentNode).select("."+ye);if(!pt.empty()){var Nt=vt.node().getBBox();if(Nt.height){var er=Nt.y+Nt.height+k5*me;pt.attr("y",er)}}}}if(Dt.style("opacity",T*u2.opacity(q)).call(l2.font,{color:u2.rgb(q),size:Y0.round(O,2),family:I,weight:z,style:N,variant:H,textcase:U,shadow:J,lineposition:W}).attr(v).call(W0.convertToTspans,e,Wt),At&&!At.empty()){var Be=_.select("."+t+"-math-group"),ut=Dt.node().getBBox(),sr=Be.node()?Be.node().getBBox():void 0,Pr=sr?sr.y+sr.height+k5*me:ut.y+ut.height+C5*me,Lt=Sd.extendFlat({},v,{y:Pr});At.attr("transform",Ut),At.style("opacity",ke*u2.opacity(Ce)).call(l2.font,{color:u2.rgb(Ce),size:Y0.round(me,2),family:Ae,weight:Me,style:We,variant:it,textcase:nt,shadow:Xe,lineposition:gt}).attr(Lt).call(W0.convertToTspans,e)}return nte.previousPromises(e)}function Pt(qt){var Dt=qt.title,At=Y0.select(Dt.node().parentNode);if(h&&h.selection&&h.side&&C){At.attr("transform",null);var Ut=ote[h.side],Wt=h.side==="left"||h.side==="top"?-1:1,Be=ite(h.pad)?h.pad:2,ut=l2.bBox(At.node()),sr={t:0,b:0,l:0,r:0},Pr=e._fullLayout._reservedMargin;for(var Lt in Pr)for(var vt in Pr[Lt]){var pt=Pr[Lt][vt];sr[vt]=Math.max(sr[vt],pt)}var Nt={left:sr.l,top:sr.t,right:i.width-sr.r,bottom:i.height-sr.b},er=h.maxShift||Wt*(Nt[h.side]-ut[h.side]),Ht=0;if(er<0)Ht=er;else{var Gt=h.offsetLeft||0,hr=h.offsetTop||0;ut.left-=Gt,ut.right-=Gt,ut.top-=hr,ut.bottom-=hr,h.selection.each(function(){var mr=l2.bBox(this);Sd.bBoxIntersect(ut,mr,Be)&&(Ht=Math.max(Ht,Wt*(mr[h.side]-ut[Ut])+Be))}),Ht=Math.min(er,Ht),a._titleScoot=Math.abs(Ht)}if(Ht>0||er<0){var yr={left:[-Ht,0],right:[Ht,0],top:[0,-Ht],bottom:[0,Ht]}[h.side];At.attr("transform",nL(yr[0],yr[1]))}}}de.call(at,De);function xt(qt,Dt){qt.text(Dt).on("mouseover.opacity",function(){Y0.select(this).transition().duration(oL.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Y0.select(this).transition().duration(oL.HIDE_PLACEHOLDER).style("opacity",0)})}if(lt&&(C?de.on(".opacity",null):(xt(de,l),E=!0),de.call(W0.makeEditable,{gd:e}).on("edit",function(qt){u!==void 0?S5.call("_guiRestyle",e,s,qt,u):S5.call("_guiRelayout",e,s,qt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(at)}).on("input",function(qt){this.text(qt||" ").call(W0.positionText,v.x,v.y)}),ie)){if(ie&&!C){var bt=de.node().getBBox(),Vt=bt.y+bt.height+C5*me;De.attr("y",Vt)}fe?De.on(".opacity",null):(xt(De,oe),Te=!0),De.call(W0.makeEditable,{gd:e}).on("edit",function(qt){S5.call("_guiRelayout",e,"title.subtitle.text",qt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(at)}).on("input",function(qt){this.text(qt||" ").call(W0.positionText,De.attr("x"),De.attr("y"))})}return de.classed("js-placeholder",E),De&&!De.empty()&&De.classed("js-placeholder",Te),_}lL.exports={draw:ste,SUBTITLE_PADDING_EM:C5,SUBTITLE_PADDING_MATHJAX_EM:k5}});var y2=pe((V1e,vL)=>{"use strict";var lte=Xa(),ute=_0().utcFormat,zi=Ot(),fte=zi.numberFormat,Pf=La(),Hh=zi.cleanNumber,cte=zi.ms2DateTime,uL=zi.dateTime2ms,zf=zi.ensureNumber,fL=zi.isArrayOrTypedArray,Gh=Zi(),f2=Gh.FP_SAFE,Bu=Gh.BADNUM,hte=Gh.LOG_CLIP,vte=Gh.ONEWEEK,c2=Gh.ONEDAY,h2=Gh.ONEHOUR,cL=Gh.ONEMIN,hL=Gh.ONESEC,v2=jn(),m2=eo(),d2=m2.HOUR_PATTERN,p2=m2.WEEKDAY_PATTERN;function ag(e){return Math.pow(10,e)}function E5(e){return e!=null}vL.exports=function(t,r){r=r||{};var i=t._id||"x",a=i.charAt(0);function s(z,N){if(z>0)return Math.log(z)/Math.LN10;if(z<=0&&N&&t.range&&t.range.length===2){var H=t.range[0],U=t.range[1];return .5*(H+U-2*hte*Math.abs(H-U))}else return Bu}function l(z,N,H,U){if((U||{}).msUTC&&Pf(z))return+z;var W=uL(z,H||t.calendar);if(W===Bu)if(Pf(z)){z=+z;var J=Math.floor(zi.mod(z+.05,1)*10),ee=Math.round(z-J/10);W=uL(new Date(ee))+J/10}else return Bu;return W}function u(z,N,H){return cte(z,N,H||t.calendar)}function h(z){return t._categories[Math.round(z)]}function v(z){if(E5(z)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[z]!==void 0)return t._categoriesMap[z];t._categories.push(typeof z=="number"?String(z):z);var N=t._categories.length-1;return t._categoriesMap[z]=N,N}return Bu}function m(z,N){for(var H=new Array(N),U=0;Ut.range[1]&&(H=!H);for(var U=H?-1:1,W=U*z,J=0,ee=0;eeoe)J=ee+1;else{J=W<(ie+oe)/2?ee:ee+1;break}}var he=t._B[J]||0;return isFinite(he)?C(z,t._m2,he):0},I=function(z){var N=t._rangebreaks.length;if(!N)return E(z,t._m,t._b);for(var H=0,U=0;Ut._rangebreaks[U].pmax&&(H=U+1);return E(z,t._m2,t._B[H])}}t.c2l=t.type==="log"?s:zf,t.l2c=t.type==="log"?ag:zf,t.l2p=L,t.p2l=I,t.c2p=t.type==="log"?function(z,N){return L(s(z,N))}:L,t.p2c=t.type==="log"?function(z){return ag(I(z))}:I,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=Hh,t.c2d=t.c2r=t.l2d=t.l2r=zf,t.d2p=t.r2p=function(z){return t.l2p(Hh(z))},t.p2d=t.p2r=I,t.cleanPos=zf):t.type==="log"?(t.d2r=t.d2l=function(z,N){return s(Hh(z),N)},t.r2d=t.r2c=function(z){return ag(Hh(z))},t.d2c=t.r2l=Hh,t.c2d=t.l2r=zf,t.c2r=s,t.l2d=ag,t.d2p=function(z,N){return t.l2p(t.d2r(z,N))},t.p2d=function(z){return ag(I(z))},t.r2p=function(z){return t.l2p(Hh(z))},t.p2r=I,t.cleanPos=zf):t.type==="date"?(t.d2r=t.r2d=zi.identity,t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=u,t.d2p=t.r2p=function(z,N,H){return t.l2p(l(z,0,H))},t.p2d=t.p2r=function(z,N,H){return u(I(z),N,H)},t.cleanPos=function(z){return zi.cleanDate(z,Bu,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=v,t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var N=M(z);return N!==void 0?N:t.fraction2r(.5)},t.l2r=t.c2r=zf,t.r2l=M,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return typeof z=="string"&&z!==""?z:zf(z)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var N=T(z);return N!==void 0?N:t.fraction2r(.5)},t.r2c_just_indices=_,t.l2r=t.c2r=zf,t.r2l=T,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return Array.isArray(z)||typeof z=="string"&&z!==""?z:zf(z)},t.setupMultiCategory=function(z){var N=t._traceIndices,H,U,W=t._matchGroup;if(W&&t._categories.length===0){for(var J in W)if(J!==i){var ee=r[v2.id2name(J)];N=N.concat(ee._traceIndices)}}var ie=[[0,{}],[0,{}]],oe=[];for(H=0;Hee[1]&&(U[J?0:1]=H,W[1]=ee[1]),W[0]>=W[1])if(N!==void 0){var ie=ee[0]+1;H!==void 0&&(ie=Math.min(ie,ee[1])),U[J?0:1]=t.l2r(ie)}else H!==void 0&&(U[J?1:0]=t.l2r(ee[1]-1))}},t.cleanRange=function(z,N){t._cleanRange(z,N),t.limitRange(z)},t._cleanRange=function(z,N){N||(N={}),z||(z="range");var H=zi.nestedProperty(t,z).get(),U,W;if(t.type==="date"?W=zi.dfltRange(t.calendar):a==="y"?W=m2.DFLTRANGEY:t._name==="realaxis"?W=[0,1]:W=N.dfltRange||m2.DFLTRANGEX,W=W.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(W[0]=0),!H||H.length!==2){zi.nestedProperty(t,z).set(W);return}var J=H[0]===null,ee=H[1]===null;for(t.type==="date"&&!t.autorange&&(H[0]=zi.cleanDate(H[0],Bu,t.calendar),H[1]=zi.cleanDate(H[1],Bu,t.calendar)),U=0;U<2;U++)if(t.type==="date"){if(!zi.isDateTime(H[U],t.calendar)){t[z]=W;break}if(t.r2l(H[0])===t.r2l(H[1])){var ie=zi.constrain(t.r2l(H[0]),zi.MIN_MS+1e3,zi.MAX_MS-1e3);H[0]=t.l2r(ie-1e3),H[1]=t.l2r(ie+1e3);break}}else{if(!Pf(H[U]))if(!(J||ee)&&Pf(H[1-U]))H[U]=H[1-U]*(U?10:.1);else{t[z]=W;break}if(H[U]<-f2?H[U]=-f2:H[U]>f2&&(H[U]=f2),H[0]===H[1]){var oe=Math.max(1,Math.abs(H[0]*1e-6));H[0]-=oe,H[1]+=oe}}},t.setScale=function(z){var N=r._size;if(t.overlaying){var H=v2.getFromId({_fullLayout:r},t.overlaying);t.domain=H.domain}var U=z&&t._r?"_r":"range",W=t.calendar;t.cleanRange(U);var J=t.r2l(t[U][0],W),ee=t.r2l(t[U][1],W),ie=a==="y";if(ie?(t._offset=N.t+(1-t.domain[1])*N.h,t._length=N.h*(t.domain[1]-t.domain[0]),t._m=t._length/(J-ee),t._b=-t._m*ee):(t._offset=N.l+t.domain[0]*N.w,t._length=N.w*(t.domain[1]-t.domain[0]),t._m=t._length/(ee-J),t._b=-t._m*J),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var oe,he;if(t._rangebreaks=t.locateBreaks(Math.min(J,ee),Math.max(J,ee)),t._rangebreaks.length){for(oe=0;oeee&&(fe=!fe),fe&&t._rangebreaks.reverse();var Te=fe?-1:1;for(t._m2=Te*t._length/(Math.abs(ee-J)-t._lBreaks),t._B.push(-t._m2*(ie?ee:J)),oe=0;oeW&&(W+=7,JW&&(W+=24,J=U&&J=U&&z=Xe.min&&(WeXe.max&&(Xe.max=it),nt=!1)}nt&&ee.push({min:We,max:it})}};for(H=0;H{"use strict";var dL=La(),L5=Ot(),dte=Zi().BADNUM,g2=L5.isArrayOrTypedArray,pte=L5.isDateTime,mte=L5.cleanNumber,pL=Math.round;yL.exports=function(t,r,i){var a=t,s=i.noMultiCategory;if(g2(a)&&!a.length)return"-";if(!s&&bte(a))return"multicategory";if(s&&Array.isArray(a[0])){for(var l=[],u=0;us*2}function mL(e){return Math.max(1,(e-1)/1e3)}function xte(e,t){for(var r=e.length,i=mL(r),a=0,s=0,l={},u=0;ua*2}function bte(e){return g2(e[0])&&g2(e[1])}});var ig=pe((G1e,ML)=>{"use strict";var wte=Xa(),bL=La(),Zh=Ot(),_2=Zi().FP_SAFE,Tte=la(),Ate=_i(),wL=jn(),Mte=wL.getFromId,Ste=wL.isLinked;ML.exports={applyAutorangeOptions:AL,getAutoRange:P5,makePadFn:z5,doAutoRange:Cte,findExtremes:Ete,concatExtremes:F5};function P5(e,t){var r,i,a=[],s=e._fullLayout,l=z5(s,t,0),u=z5(s,t,1),h=F5(e,t),v=h.min,m=h.max;if(v.length===0||m.length===0)return Zh.simpleMap(t.range,t.r2l);var _=v[0].val,T=m[0].val;for(r=1;r0&&(ee=q-l(H)-u(U),ee>z?ie/ee>N&&(W=H,J=U,N=ie/ee):ie/q>N&&(W={val:H.val,nopad:1},J={val:U.val,nopad:1},N=ie/q));function oe(Se,Ae){return Math.max(Se,u(Ae))}if(_===T){var he=_-1,fe=_+1;if(I)if(_===0)a=[0,1];else{var Te=(_>0?m:v).reduce(oe,0),ke=_/(1-Math.min(.5,Te/q));a=_>0?[0,ke]:[ke,0]}else O?a=[Math.max(0,he),Math.max(1,fe)]:a=[he,fe]}else I?(W.val>=0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:0,nopad:1})):O&&(W.val-N*l(W)<0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:1,nopad:1})),N=(J.val-W.val-gL(t,H.val,U.val))/(q-l(W)-u(J)),a=[W.val-N*l(W),J.val+N*u(J)];return a=AL(a,t),t.limitRange&&t.limitRange(),C&&a.reverse(),Zh.simpleMap(a,t.l2r||Number)}function gL(e,t,r){var i=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),s=0;s0?r.ppadplus:r.ppadminus)||r.ppad||0),H=z((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),U=z(r.vpadplus||r.vpad),W=z(r.vpadminus||r.vpad);if(!v){if(O=1/0,q=-1/0,h)for(_=0;_0&&(O=T),T>q&&T<_2&&(q=T);else for(_=0;_-_2&&(O=T),T>q&&T<_2&&(q=T);t=[O,q],s=2}var J={tozero:u,extrapad:l};function ee(oe){M=t[oe],bL(M)&&(L=N(oe),I=H(oe),m?(C=e.c2l(M)-W(oe),E=e.c2l(M)+U(oe)):(O=M-W(oe),q=M+U(oe),h&&O=ie;_--)ee(_);return{min:i,max:a,opts:r}}function I5(e,t,r,i){TL(e,t,r,i,Lte)}function R5(e,t,r,i){TL(e,t,r,i,Dte)}function TL(e,t,r,i,a){for(var s=i.tozero,l=i.extrapad,u=!0,h=0;h=r&&(v.extrapad||!l)){u=!1;break}else a(t,v.val)&&v.pad<=r&&(l||!v.extrapad)&&(e.splice(h,1),h--)}if(u){var m=s&&t===0;e.push({val:t,pad:m?0:r,extrapad:m?!1:l})}}function xL(e){return bL(e)&&Math.abs(e)<_2}function Lte(e,t){return e<=t}function Dte(e,t){return e>=t}function Pte(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&x2(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&x2(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function zte(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&x2(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&x2(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function x2(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=h&&(s=h,r=h),l<=h&&(l=h,i=h)}}return r=Pte(r,t),i=zte(i,t),[r,i]}});var Xi=pe((Y1e,XL)=>{"use strict";var Xl=Xa(),Un=La(),X0=to(),og=la(),Jr=Ot(),j0=Jr.strTranslate,kd=ro(),Ite=rg(),sg=Ba(),ol=_i(),Rte=Nu(),SL=$w(),Z1e=eo(),So=Zi(),Fte=So.ONEMAXYEAR,T2=So.ONEAVGYEAR,A2=So.ONEMINYEAR,qte=So.ONEMAXQUARTER,O5=So.ONEAVGQUARTER,M2=So.ONEMINQUARTER,Nte=So.ONEMAXMONTH,J0=So.ONEAVGMONTH,S2=So.ONEMINMONTH,sl=So.ONEWEEK,as=So.ONEDAY,Yh=as/2,Rf=So.ONEHOUR,lg=So.ONEMIN,k2=So.ONESEC,Bte=So.ONEMILLI,Ote=So.ONEMICROSEC,Cd=So.MINUS_SIGN,E2=So.BADNUM,U5={K:"zeroline"},V5={K:"gridline",L:"path"},H5={K:"minor-gridline",L:"path"},qL={K:"tick",L:"path"},kL={K:"tick",L:"text"},CL={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},L2=No(),ng=L2.MID_SHIFT,Ed=L2.CAP_SHIFT,ug=L2.LINE_SPACING,Ute=L2.OPPOSITE_SIDE,C2=3,$t=XL.exports={};$t.setConvert=y2();var Vte=D5(),Ff=jn(),Hte=Ff.idSort,Gte=Ff.isLinked;$t.id2name=Ff.id2name;$t.name2id=Ff.name2id;$t.cleanId=Ff.cleanId;$t.list=Ff.list;$t.listIds=Ff.listIds;$t.getFromId=Ff.getFromId;$t.getFromTrace=Ff.getFromTrace;var NL=ig();$t.getAutoRange=NL.getAutoRange;$t.findExtremes=NL.findExtremes;var Zte=1e-4;function W5(e){var t=(e[1]-e[0])*Zte;return[e[0]-t,e[1]+t]}$t.coerceRef=function(e,t,r,i,a,s){var l=i.charAt(i.length-1),u=r._fullLayout._subplots[l+"axis"],h=i+"ref",v={};return a||(a=u[0]||(typeof s=="string"?s:s[0])),s||(s=a),u=u.concat(u.map(function(m){return m+" domain"})),v[h]={valType:"enumerated",values:u.concat(s?typeof s=="string"?[s]:s:[]),dflt:a},Jr.coerce(e,t,v,h)};$t.coerceRefArray=function(e,t,r,i,a,s,l){let u=i.charAt(i.length-1);var h=r._fullLayout._subplots[u+"axis"];let v=i+"ref";var m=e[v];a||(a=h[0]||(typeof s=="string"?s:s[0])),h=h.concat(h.map(T=>T+" domain")),h=h.concat(s||[]),m.length>l?(Jr.warn("Array attribute "+v+" has more entries than expected, truncating to "+l),m=m.slice(0,l)):m.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};$t.saveRangeInitial=function(e,t){for(var r=$t.list(e,"",!0),i=!1,a=0;a_*.3||v(i)||v(a))){var T=r.dtick/2;e+=e+Tl){var u=Number(r.slice(1));s.exactYears>l&&u%12===0?e=$t.tickIncrement(e,"M6","reverse")+as*1.5:s.exactMonths>l?e=$t.tickIncrement(e,"M1","reverse")+as*15.5:e-=Yh;var h=$t.tickIncrement(e,r);if(h<=i)return h}return e}$t.prepMinorTicks=function(e,t,r){var _,T;if(!((_=t.minor)!=null&&_.dtick)){delete e.dtick;var i=t.dtick&&Un(t._tmin),a;if(i){var s=$t.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,s*.99+t._tmin*.01]}else{var l=Jr.simpleMap(t.range,t.r2l);a=[l[0],.8*l[0]+.2*l[1]]}if(e.range=Jr.simpleMap(a,t.l2r),e._isMinor=!0,$t.prepTicks(e,r),i){var u=Un(t.dtick),h=Un(e.dtick),v=u?t.dtick:+t.dtick.substring(1),m=h?e.dtick:+e.dtick.substring(1);u&&h?q5(v,m)?v===2*sl&&m===2*as&&(e.dtick=sl):v===2*sl&&m===3*as?e.dtick=sl:v===sl&&!(t._input.minor||{}).nticks?e.dtick=as:DL(v/m,2.5)?e.dtick=v/2:e.dtick=v:String(t.dtick).charAt(0)==="M"?h?e.dtick="M1":q5(v,m)?v>=12&&m===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?q5(v,m)||(e.dtick=DL(v/m,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((T=t.minor)==null?void 0:T._tick0Init)===void 0&&(e.tick0=t.tick0)};function q5(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function DL(e,t){return Math.abs(e/t-1)<.001}$t.prepTicks=function(e,t){var r=Jr.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,a;i||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Jr.bigFont(e.tickfont.size||12):15,i=e._length/a):(a=e._id.charAt(0)==="y"?40:80,i=Jr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,$t.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(s=i-1,l=i):(s=i,l=i);var u=e[s].value,h=e[l].value,v=Math.abs(h-u),m=r||v,_=0;m>=A2?v>=A2&&v<=Fte?_=v:_=T2:r===O5&&m>=M2?v>=M2&&v<=qte?_=v:_=O5:m>=S2?v>=S2&&v<=Nte?_=v:_=J0:r===sl&&m>=sl?_=sl:m>=as?_=as:r===Yh&&m>=Yh?_=Yh:r===Rf&&m>=Rf&&(_=Rf);var T;_>=v&&(_=v,T=!0);var M=a+_;if(t.rangebreaks&&_>0){for(var C=84,E=0,L=0;Lsl&&(_=v)}(_>0||i===0)&&(e[i].periodX=a+_/2)}}$t.calcTicks=function(t,r){for(var i=t.type,a=t.calendar,s=t.ticklabelstep,l=t.ticklabelmode==="period",u=t.range[0]>t.range[1],h=!t.ticklabelindex||Jr.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],v=Jr.simpleMap(t.range,t.r2l,void 0,void 0,r),m=v[1]=(z?0:1);N--){var H=!N;N?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):z&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var U=N?t:Jr.extendFlat({},t,z?t.minor:{minor:{}});if(H?$t.prepMinorTicks(U,t,r):$t.prepTicks(U,r),U.tickmode==="array"){N?(L=[],C=PL(t,!H)):(I=[],E=PL(t,!H));continue}if(U.tickmode==="sync"){L=[],C=Kte(t);continue}var W=W5(v),J=W[0],ee=W[1],ie=Un(U.dtick),oe=i==="log"&&!(ie||U.dtick.charAt(0)==="L"),he=$t.tickFirst(U,r);if(N){if(t._tmin=he,he=ee:Te<=ee;Te=$t.tickIncrement(Te,Ae,m,a)){if(N&&ke++,U.rangebreaks&&!m){if(Te=T)break}if(L.length>M||Te===fe)break;fe=Te;var me={value:Te};N?(oe&&Te!==(Te|0)&&(me.simpleLabel=!0),s>1&&ke%s&&(me.skipLabel=!0),L.push(me)):(me.minor=!0,I.push(me))}}if(!I||I.length<3)h=!1;else{var Ce=(I[2].value-I[1].value)*(u?-1:1);wre(Ce,t.tickformat)||(h=!1,I=I.slice(1))}if(!h)O=L;else{var Me=L.concat(I);l&&L.length&&(Me=Me.slice(1)),Me=Me.sort(function(qt,Dt){return qt.value-Dt.value}).filter(function(qt,Dt,At){return Dt===0||qt.value!==At[Dt-1].value});var We=Me.map(function(qt,Dt){return qt.minor===void 0&&!qt.skipLabel?Dt:null}).filter(function(qt){return qt!==null});We.forEach(function(qt){h.map(function(Dt){var At=qt+Dt;At>=0&&At-1;ft--){if(L[ft].drop){L.splice(ft,1);continue}L[ft].value=B5(L[ft].value,t);var Oe=t.c2p(L[ft].value);(de?ye>Oe-De:yeT||Ut<_)&&(Ut>T&&(At.periodX=T),Ut<_&&(At.periodX=_),Je(At))),At}var xt;for(ft=0;fta&&TT2)t/=T2,i=a(10),e.dtick="M"+12*If(t,i,b2);else if(s>J0)t/=J0,e.dtick="M"+If(t,1,zL);else if(s>as){if(e.dtick=If(t,as,e._hasDayOfWeekBreaks?[1,2,7,14]:Qte),!r){var l=$t.getTickFormat(e),u=e.ticklabelmode==="period";u&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=Jr.dateTick0(e.calendar,2):e.tick0=Jr.dateTick0(e.calendar,1),u&&(e._dowTick0=e.tick0)}}else s>Rf?e.dtick=If(t,Rf,zL):s>lg?e.dtick=If(t,lg,IL):s>k2?e.dtick=If(t,k2,IL):(i=a(10),e.dtick=If(t,i,b2))}else if(e.type==="log"){e.tick0=0;var h=Jr.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(h[1]-h[0])<1){var v=1.5*Math.abs((h[1]-h[0])/t);t=Math.abs(Math.pow(10,h[1])-Math.pow(10,h[0]))/v,i=a(10),e.dtick="L"+If(t,i,b2)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):K5(e)?(e.tick0=0,i=1,e.dtick=If(t,i,$te)):(e.tick0=0,i=a(10),e.dtick=If(t,i,b2));if(e.dtick===0&&(e.dtick=1),!Un(e.dtick)&&typeof e.dtick!="string"){var m=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(m)}};function VL(e){var t=e.dtick;if(e._tickexponent=0,!Un(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),a=i.length;if(String(t).charAt(0)==="M")a>10||i.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=as&&a<=10||t>=as*15)e._tickround="d";else if(t>=lg&&a<=16||t>=Rf)e._tickround="M";else if(t>=k2&&a<=19||t>=lg)e._tickround="S";else{var s=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,s)-20,e._tickround<0&&(e._tickround=4)}}else if(Un(t)||t.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Un(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var u=Math.max(Math.abs(l[0]),Math.abs(l[1])),h=Math.floor(Math.log(u)/Math.LN10+.01),v=e.minexponent===void 0?3:e.minexponent;Math.abs(h)>v&&(K0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!X5(h)||K0(e.exponentformat)&&e.exponentformat==="SI extended"&&!j5(h)?e._tickexponent=3*Math.round((h-1)/3):e._tickexponent=h)}else e._tickround=null}$t.tickIncrement=function(e,t,r,i){var a=r?-1:1;if(Un(t))return Jr.increment(e,a*t);var s=t.charAt(0),l=a*Number(t.slice(1));if(s==="M")return Jr.incrementMonth(e,l,i);if(s==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(s==="D"){var u=t==="D2"?UL:OL,h=e+a*.01,v=Jr.roundUp(Jr.mod(h,1),u,r);return Math.floor(h)+Math.log(Xl.round(Math.pow(10,v),1))/Math.LN10}throw"unrecognized dtick "+String(t)};$t.tickFirst=function(e,t){var r=e.r2l||Number,i=Jr.simpleMap(e.range,r,void 0,void 0,t),a=i[1]=0&&I<=e._length?L:null};if(s&&Jr.isArrayOrTypedArray(e.ticktext)){var _=Jr.simpleMap(e.range,e.r2l),T=(Math.abs(_[1]-_[0])-(e._lBreaks||0))/1e4;for(v=0;v"+u;else{var v=cg(e),m=e._trueSide||e.side;(!v&&m==="top"||v&&m==="bottom")&&(l+="
")}t.text=l}function tre(e,t,r,i,a){var s=e.dtick,l=t.x,u=e.tickformat,h=typeof s=="string"&&s.charAt(0);if(a==="never"&&(a=""),i&&h!=="L"&&(s="L3",h="L"),u||h==="L")t.text=fg(Math.pow(10,l),e,a,i);else if(Un(s)||h==="D"&&(e.minorloglabels==="complete"||Jr.mod(l+.01,1)<.1)){var v;e.minorloglabels==="complete"&&!(Jr.mod(l+.01,1)<.1)&&(v=!0,t.fontSize*=.75);var m=Math.pow(10,l).toExponential(0),_=m.split("e"),T=+_[1],M=Math.abs(T),C=e.exponentformat;C==="power"||K0(C)&&C!=="SI extended"&&X5(T)||K0(C)&&C==="SI extended"&&j5(T)?(t.text=_[0],M>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),T!==0&&T!==1&&(t.text+=""+(T>0?"":Cd)+M+""),t.fontSize*=1.25):(C==="e"||C==="E")&&M>2?t.text=_[0]+C+(T>0?"+":Cd)+M:(t.text=fg(Math.pow(10,l),e,"","fakehover"),s==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(h==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Jr.mod(l,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(s);if(e.dtick==="D1"){var E=String(t.text).charAt(0);(E==="0"||E==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}function rre(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function are(e,t,r){var i=Math.round(t.x),a=e._categories[i]||[],s=a[1]===void 0?"":String(a[1]),l=a[0]===void 0?"":String(a[0]);r?t.text=l+" - "+s:(t.text=s,t.text2=l)}function ire(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=fg(t.x,e,a,i)}function nre(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var s=t.x/180;if(s===0)t.text="0";else{var l=ore(s);if(l[1]>=100)t.text=fg(Jr.deg2rad(t.x),e,a,i);else{var u=t.x<0;l[1]===1?l[0]===1?t.text="\u03C0":t.text=l[0]+"\u03C0":t.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),u&&(t.text=Cd+t.text)}}}else t.text=fg(t.x,e,a,i)}function ore(e){function t(u,h){return Math.abs(u-h)<=1e-6}function r(u,h){return t(h,0)?u:r(h,u%h)}function i(u){for(var h=1;!t(Math.round(u*h)/h,u);)h*=10;return h}var a=i(e),s=e*a,l=Math.abs(r(s,a));return[Math.round(s/l),Math.round(a/l)]}var GL=["f","p","n","\u03BC","m","","k","M","G","T"],sre=["q","r","y","z","a",...GL,"P","E","Z","Y","R","Q"],K0=e=>["SI","SI extended","B"].includes(e);function X5(e){return e>14||e<-15}function j5(e){return e>32||e<-30}function lre(e,t){return K0(t)?!!(t==="SI extended"&&j5(e)||t!=="SI extended"&&X5(e)):!1}function fg(e,t,r,i){var a=e<0,s=t._tickround,l=r||t.exponentformat||"B",u=t._tickexponent,h=$t.getTickFormat(t),v=t.separatethousands;if(i){var m={exponentformat:l,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Un(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};VL(m),s=(Number(m._tickround)||0)+4,u=m._tickexponent,t.hoverformat&&(h=t.hoverformat)}if(h)return t._numFormat(h)(e).replace(/-/g,Cd);var _=Math.pow(10,-s)/2;if(l==="none"&&(u=0),e=Math.abs(e),e<_)e="0",a=!1;else{if(e+=_,u&&(e*=Math.pow(10,-u),s+=u),s===0)e=String(Math.floor(e));else if(s<0){e=String(Math.round(e)),e=e.slice(0,Math.max(0,e.length+s));for(var T=s;T<0;T++)e+="0"}else{e=String(e);var M=e.indexOf(".")+1;M&&(e=e.slice(0,M+s).replace(/\.?0+$/,""))}e=Jr.numSeparate(e,t._separators,v)}if(u&&l!=="hide"){lre(u,l)&&(l="power");var C;u<0?C=Cd+-u:l!=="power"?C="+"+u:C=String(u),l==="e"||l==="E"?e+=l+C:l==="power"?e+="\xD710"+C+"":l==="B"&&u===9?e+="B":K0(l)&&(e+=l==="SI extended"?sre[u/3+10]:GL[u/3+5])}return a?Cd+e:e}$t.getTickFormat=function(e){var t;function r(h){return typeof h!="string"?h:Number(h.replace("M",""))*J0}function i(h,v){var m=["L","D"];if(typeof h==typeof v){if(typeof h=="number")return h-v;var _=m.indexOf(h.charAt(0)),T=m.indexOf(v.charAt(0));return _===T?Number(h.replace(/(L|D)/g,""))-Number(v.replace(/(L|D)/g,"")):_-T}else return typeof h=="number"?1:-1}function a(h,v,m){var _=m||function(C){return C},T=v[0],M=v[1];return(!T&&typeof T!="number"||_(T)<=_(h))&&(!M&&typeof M!="number"||_(M)>=_(h))}function s(h,v){var m=v[0]===null,_=v[1]===null,T=i(h,v[0])>=0,M=i(h,v[1])<=0;return(m||T)&&(_||M)}var l,u;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&a.unshift(a.splice(m,1).shift())}});var u={false:{left:0,right:0}};return Jr.syncOrAsync(a.map(function(h){return function(){if(h){var v=$t.getFromId(e,h);r||(r={}),r.axShifts=u,r.overlayingShiftedAx=l;var m=$t.drawOne(e,v,r);return v._shiftPusher&&Y5(v,v._fullDepth||0,u,!0),v._r=v.range.slice(),v._rl=Jr.simpleMap(v._r,v.r2l),m}}}))};$t.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},a=r.overlayingShiftedAx||[],s,l,u;t.setScale();var h=e._fullLayout,v=t._id,m=v.charAt(0),_=$t.counterLetter(v),T=h._plots[t._mainSubplot],M=t.zerolinelayer==="above traces";if(!T)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var C=t.linewidth/2||0;t.ticks==="inside"&&(C+=t.ticklen),Y5(t,C,i,!0),Y5(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=bre(t,i));var E=T[m+"axislayer"],L=t._mainLinePosition,I=L+=t._shift,O=t._mainMirrorPosition,q=t._vals=$t.calcTicks(t),z=[t.mirror,I,O].join("_");for(s=0;s0?At.bottom-qt:0,Dt))));var ut=0,sr=0;if(t._shiftPusher&&(ut=Math.max(Dt,At.height>0?bt==="l"?qt-At.left:At.right-qt:0),t.title.text!==h._dfltTitle[m]&&(sr=(t._titleStandoff||0)+(t._titleScoot||0),bt==="l"&&(sr+=FL(t))),t._fullDepth=Math.max(ut,sr)),t.automargin){Ut={x:0,y:0,r:0,l:0,t:0,b:0};var Pr=[0,1],Lt=typeof t._shift=="number"?t._shift:0;if(m==="x"){if(bt==="b"?Ut[bt]=t._depth:(Ut[bt]=t._depth=Math.max(At.width>0?qt-At.top:0,Dt),Pr.reverse()),At.width>0){var vt=At.right-(t._offset+t._length);vt>0&&(Ut.xr=1,Ut.r=vt);var pt=t._offset-At.left;pt>0&&(Ut.xl=0,Ut.l=pt)}}else if(bt==="l"?(t._depth=Math.max(At.height>0?qt-At.left:0,Dt),Ut[bt]=t._depth-Lt):(t._depth=Math.max(At.height>0?At.right-qt:0,Dt),Ut[bt]=t._depth+Lt,Pr.reverse()),At.height>0){var Nt=At.bottom-(t._offset+t._length);Nt>0&&(Ut.yb=0,Ut.b=Nt);var er=t._offset-At.top;er>0&&(Ut.yt=1,Ut.t=er)}Ut[_]=t.anchor==="free"?t.position:t._anchorAxis.domain[Pr[0]],t.title.text!==h._dfltTitle[m]&&(Ut[bt]+=FL(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Wt={x:0,y:0,r:0,l:0,t:0,b:0},Wt[Vt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Wt[Vt]+=Dt),t.mirror===!0||t.mirror==="ticks"?Wt[_]=t._anchorAxis.domain[Pr[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Wt[_]=[t._counterDomainMin,t._counterDomainMax][Pr[1]]))}xt&&(Be=og.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(RL(Ut,t.automargin),RL(Wt,t.automargin)),X0.autoMargin(e,J5(t),Ut),X0.autoMargin(e,YL(t),Wt),X0.autoMargin(e,WL(t),Be)}),Jr.syncOrAsync(Je)}};function RL(e,t){if(e){var r=Object.keys(CL).reduce(function(i,a){return t.indexOf(a)!==-1&&CL[a].forEach(function(s){i[s]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function ure(e,t){var r=[],i,a=function(s,l){var u=s.xbnd[l];u!==null&&r.push(Jr.extendFlat({},s,{x:u}))};if(t.length){for(i=0;ie.range[1],u=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,h=!u;if(r){var v=l?-1:1;r=r*v}if(i){var m=e.side,_=u&&(m==="top"||m==="left")||h&&(m==="bottom"||m==="right")?1:-1;i=i*_}return e._id.charAt(0)==="x"?function(T){return j0(a+e._offset+e.l2p(G5(T))+r,s+i)}:function(T){return j0(s+i,a+e._offset+e.l2p(G5(T))+r)}};function G5(e){return e.periodX!==void 0?e.periodX:e.x}function vre(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(C){return t.indexOf(C)!==-1},a=i("top"),s=i("left"),l=i("right"),u=i("bottom"),h=i("inside"),v=r!=="boundaries"&&(u||s||a||l);if(!v&&!h)return[0,0];var m=e.side,_=v?(e.tickwidth||0)/2:0,T=C2,M=e.tickfont?e.tickfont.size:12;return(u||a)&&(_+=M*Ed,T+=(e.linewidth||0)/2),(s||l)&&(_+=(e.linewidth||0)/2,T+=C2),h&&m==="top"&&(T-=M*(1-Ed)),(s||a)&&(_=-_),(m==="bottom"||m==="right")&&(T=-T),[v?_:0,h?T:0]}$t.makeTickPath=function(e,t,r,i){i||(i={});var a=i.minor;if(a&&!e.minor)return"";var s=i.len!==void 0?i.len:a?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),u=(e.linewidth||1)/2;return l==="x"?"M0,"+(t+u*r)+"v"+s*r:"M"+(t+u*r)+",0h"+s*r};$t.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",s=function(he){return i.indexOf(he)!==-1},l=s("top"),u=s("left"),h=s("right"),v=s("bottom"),m=a!=="boundaries"&&(v||u||l||h),_=s("inside"),T=i==="inside"&&e.ticks==="inside"||!_&&e.ticks==="outside"&&a!=="boundaries",M=0,C=0,E=T?e.ticklen:0;if(_?E*=-1:m&&(E=0),T&&(M+=E,r)){var L=Jr.deg2rad(r);M=E*Math.cos(L)+1,C=E*Math.sin(L)}e.showticklabels&&(T||e.showline)&&(M+=.2*e.tickfont.size),M+=(e.linewidth||1)/2*(_?-1:1);var I={labelStandoff:M,labelShift:C},O,q,z,N,H=0,U=e.side,W=e._id.charAt(0),J=e.tickangle,ee;if(W==="x")ee=!_&&U==="bottom"||_&&U==="top",N=ee?1:-1,_&&(N*=-1),O=C*N,q=t+M*N,z=ee?1:-.2,Math.abs(J)===90&&(_?z+=ng:J===-90&&U==="bottom"?z=Ed:J===90&&U==="top"?z=ng:z=.5,H=ng/2*(J/90)),I.xFn=function(he){return he.dx+O+H*he.fontSize},I.yFn=function(he){return he.dy+q+he.fontSize*z},I.anchorFn=function(he,fe){if(m){if(u)return"end";if(h)return"start"}return!Un(fe)||fe===0||fe===180?"middle":fe*N<0!==_?"end":"start"},I.heightFn=function(he,fe,Te){return fe<-60||fe>60?-.5*Te:e.side==="top"!==_?-Te:0};else if(W==="y"){if(ee=!_&&U==="left"||_&&U==="right",N=ee?1:-1,_&&(N*=-1),O=M,q=C*N,z=0,!_&&Math.abs(J)===90&&(J===-90&&U==="left"||J===90&&U==="right"?z=Ed:z=.5),_){var ie=Un(J)?+J:0;if(ie!==0){var oe=Jr.deg2rad(ie);H=Math.abs(Math.sin(oe))*Ed*N,z=0}}I.xFn=function(he){return he.dx+t-(O+he.fontSize*z)*N+H*he.fontSize},I.yFn=function(he){return he.dy+q+he.fontSize*ng},I.anchorFn=function(he,fe){return Un(fe)&&Math.abs(fe)===90?"middle":ee?"end":"start"},I.heightFn=function(he,fe,Te){return e.side==="right"&&(fe*=-1),fe<-30?-Te:fe<30?-.5*Te:0}}return I};function D2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}$t.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(t.ticks?r.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),s=r.layer.selectAll("path."+i).data(a,D2);s.exit().remove(),s.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(l){return sg.stroke(Xl.select(this),l.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(l){return ol.crispRound(e,l.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),P2(t,[qL]),s.attr("transform",r.transFn)};$t.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",a=t.minor&&t.minor.showgrid,s=a?r.vals.filter(function(I){return I.minor}):[],l=t.showgrid?r.vals.filter(function(I){return!I.minor}):[],u=r.counterAxis;if(u&&$t.shouldShowZeroLine(e,t,u))for(var h=t.tickmode==="array",v=0;v=0;C--){var E=C?T:M;if(E){var L=E.selectAll("path."+i).data(C?l:s,D2);L.exit().remove(),L.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),L.attr("transform",r.transFn).attr("d",r.path).each(function(I){return sg.stroke(Xl.select(this),I.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(I){return ol.dashStyle(I.minor?t.minor.griddash:t.griddash,I.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(I){return(I.minor?_:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&L.attr("d",r.path)}}P2(t,[V5,H5])}};$t.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",a=$t.shouldShowZeroLine(e,t,r.counterAxis),s=r.layer.selectAll("path."+i).data(a?[{x:0,id:t._id}]:[]);s.exit().remove(),s.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(l,u){return Hte(l.id,u.id)})}),s.attr("transform",r.transFn).attr("d",r.path).call(sg.stroke,t.zerolinecolor||sg.defaultLine).style("stroke-width",ol.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),P2(t,[U5])};$t.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,a=t._id,s=t.zerolinelayer==="above traces",l=r.cls||a+"tick",u=r.vals.filter(function(me){return me.text}),h=r.labelFns,v=r.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[l],_=r.layer.selectAll("g."+l).data(t.showticklabels?u:[],D2),T=[];_.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(me){var Ce=Xl.select(this),Me=e._promises.length;Ce.call(kd.positionText,h.xFn(me),h.yFn(me)).call(ol.font,{family:me.font,size:me.fontSize,color:me.fontColor,weight:me.fontWeight,style:me.fontStyle,variant:me.fontVariant,textcase:me.fontTextcase,lineposition:me.fontLineposition,shadow:me.fontShadow}).text(me.text).call(kd.convertToTspans,e),e._promises[Me]?T.push(e._promises.pop().then(function(){M(Ce,v)})):M(Ce,v)}),P2(t,[kL]),_.exit().remove(),r.repositionOnUpdate&&_.each(function(me){Xl.select(this).select("text").call(kd.positionText,h.xFn(me),h.yFn(me))});function M(me,Ce){me.each(function(Me){var We=Xl.select(this),it=We.select(".text-math-group"),nt=h.anchorFn(Me,Ce),gt=r.transFn.call(We.node(),Me)+(Un(Ce)&&+Ce!=0?" rotate("+Ce+","+h.xFn(Me)+","+(h.yFn(Me)-Me.fontSize/2)+")":""),Xe=kd.lineCount(We),kt=ug*Me.fontSize,lt=h.heightFn(Me,Un(Ce)?+Ce:0,(Xe-1)*kt);if(lt&&(gt+=j0(0,lt)),it.empty()){var mt=We.select("text");mt.attr({transform:gt,"text-anchor":nt}),mt.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Bt=ol.bBox(it.node()).width,ft=Bt*{end:-.5,start:.5}[nt];it.attr("transform",gt+j0(ft,0))}})}t._adjustTickLabelsOverflow=function(){var me=t.ticklabeloverflow;if(!(!me||me==="allow")){var Ce=me.indexOf("hide")!==-1,Me=t._id.charAt(0)==="x",We=0,it=Me?e._fullLayout.width:e._fullLayout.height;if(me.indexOf("domain")!==-1){var nt=Jr.simpleMap(t.range,t.r2l);We=t.l2p(nt[0])+t._offset,it=t.l2p(nt[1])+t._offset}var gt=Math.min(We,it),Xe=Math.max(We,it),kt=t.side,lt=1/0,mt=-1/0;_.each(function(De){var ye=Xl.select(this),Oe=ye.select(".text-math-group");if(Oe.empty()){var at=ol.bBox(ye.node()),Je=0;Me?(at.right>Xe||at.leftXe||at.top+(t.tickangle?0:De.fontSize/4)t["_visibleLabelMin_"+nt._id]?ye.style("display","none"):Xe.K==="tick"&&!gt&&ye.node().style.display!=="none"&&ye.style("display",null)})})})})},M(_,m+1?m:v);function C(){return T.length&&Promise.all(T)}var E=null;function L(){if(M(_,v),u.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){E=t.autotickangles[0];var me=0,Ce=[],Me,We=1;_.each(function(Ut){me=Math.max(me,Ut.fontSize);var Wt=t.l2p(Ut.x),Be=Z5(this),ut=ol.bBox(Be.node());We=Math.max(We,kd.lineCount(Be)),Ce.push({top:0,bottom:10,height:10,left:Wt-ut.width/2,right:Wt+ut.width/2+2,width:ut.width+2})});var it=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,nt=u.length,gt=Math.abs((u[nt-1].x-u[0].x)*t._m)/(nt-1),Xe=it?gt/2:gt,kt=it?t.ticklen:me*1.25*We,lt=Math.sqrt(Math.pow(Xe,2)+Math.pow(kt,2)),mt=Xe/lt,Bt=t.autotickangles.map(function(Ut){return Ut*Math.PI/180}),ft=Bt.find(function(Ut){return Math.abs(Math.cos(Ut))<=mt});ft===void 0&&(ft=Bt.reduce(function(Ut,Wt){return Math.abs(Math.cos(Ut))ke*Te&&(oe=Te,J[W]=ee[W]=he[W])}var Se=Math.abs(oe-ie);Se-N>0?(Se-=N,N*=1+N/Se):N=0,t._id.charAt(0)!=="y"&&(N=-N),J[U]=q.p2r(q.r2p(ee[U])+H*N),q.autorange==="min"||q.autorange==="max reversed"?(J[0]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0):(q.autorange==="max"||q.autorange==="min reversed")&&(J[1]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[q._name+".range"]=J}var Ae=Jr.syncOrAsync(I);return Ae&&Ae.then&&e._promises.push(Ae),Ae};function dre(e,t,r){var i=t._id+"divider",a=r.vals,s=r.layer.selectAll("path."+i).data(a,D2);s.exit().remove(),s.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(sg.stroke,t.dividercolor).style("stroke-width",ol.crispRound(e,t.dividerwidth,1)+"px"),s.attr("transform",r.transFn).attr("d",r.path)}$t.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),a=t.side,s;if(t.anchor!=="free"?s=t._anchorAxis:i==="x"?s={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(s={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),a==="top"||a==="left")return s._offset;if(a==="bottom"||a==="right")return s._offset+s._length};function FL(e){var t=e.title.font.size,r=(e.title.text.match(kd.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Ed+r*ug):r?t*(r+1)*ug:t}function pre(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),s=t.title.font.size,l,u=(t.title.text.match(kd.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?l=t._depth+t.title.standoff+s*Ed:(t.side==="top"||t.side==="left")&&(l=t._depth+t.title.standoff+s*(ng+u*ug));else{var h=cg(t);if(t.type==="multicategory")l=t._depth;else{var v=1.5*s;h&&(v=.5*s,t.ticks==="outside"&&(v+=t.ticklen)),l=10+v+(t.linewidth?t.linewidth-1:0)}h||(a==="x"?l+=t.side==="top"?s*(t.showticklabels?1:0):s*(t.showticklabels?1.5:.5):l+=t.side==="right"?s*(t.showticklabels?1:.5):s*(t.showticklabels?.5:0))}var m=$t.getPxPosition(e,t),_,T,M;a==="x"?(T=t._offset+t._length/2,M=t.side==="top"?m-l:m+l):(M=t._offset+t._length/2,T=t.side==="right"?m+l:m-l,_={rotate:"-90",offset:0});var C;if(t.type!=="multicategory"){var E=t._selections[t._id+"tick"];if(C={selection:E,side:t.side},E&&E.node()&&E.node().parentNode){var L=ol.getTranslate(E.node().parentNode);C.offsetLeft=L.x,C.offsetTop=L.y}t.title.hasOwnProperty("standoff")&&(C.pad=0)}return t._titleStandoff=l,Ite.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:C,transform:_,attributes:{x:T,y:M,"text-anchor":"middle"}})}$t.shouldShowZeroLine=function(e,t,r){var i=Jr.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===E2)&&(ZL(t,0)||!mre(e,t,r,i)||yre(e,t))};$t.clipEnds=function(e,t){return t.filter(function(r){return ZL(e,r.x)})};function ZL(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=Ote:/%L/.test(t)?e>=Bte:/%[SX]/.test(t)?e>=k2:/%M/.test(t)?e>=lg:/%[HI]/.test(t)?e>=Rf:/%p/.test(t)?e>=Yh:/%[Aadejuwx]/.test(t)?e>=as:/%[UVW]/.test(t)?e>=sl:/%[Bbm]/.test(t)?e>=S2:/%[q]/.test(t)?e>=M2:/%[Yy]/.test(t)?e>=A2:!0}});var JL=pe((W1e,jL)=>{"use strict";jL.exports=function(t,r,i){var a,s;if(i){var l=r==="reversed"||r==="min reversed"||r==="max reversed";a=i[l?1:0],s=i[l?0:1]}var u=t("autorangeoptions.minallowed",s===null?a:void 0),h=t("autorangeoptions.maxallowed",a===null?s:void 0);u===void 0&&t("autorangeoptions.clipmin"),h===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var Q5=pe((X1e,KL)=>{"use strict";var Tre=JL();KL.exports=function(t,r,i,a){var s=r._template||{},l=r.type||s.type||"-";i("minallowed"),i("maxallowed");var u=i("range");if(!u){var h;!a.noInsiderange&&l!=="log"&&(h=i("insiderange"),h&&(h[0]===null||h[1]===null)&&(r.insiderange=!1,h=void 0),h&&(u=i("range",h)))}var v=r.getAutorangeDflt(u,a),m=i("autorange",v),_;u&&(u[0]===null&&u[1]===null||(u[0]===null||u[1]===null)&&(m==="reversed"||m===!0)||u[0]!==null&&(m==="min"||m==="max reversed")||u[1]!==null&&(m==="max"||m==="min reversed"))&&(u=void 0,delete r.range,r.autorange=!0,_=!0),_||(v=r.getAutorangeDflt(u,a),m=i("autorange",v)),m&&(Tre(i,m,u),(l==="linear"||l==="-")&&i("rangemode")),r.cleanRange()}});var $L=pe((j1e,QL)=>{var Are={left:0,top:0};QL.exports=Mre;function Mre(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,a=e.clientY||0,s=Sre(t);return r[0]=i-s.left,r[1]=a-s.top,r}function Sre(e){return e===window||e===document||e===document.body?Are:e.getBoundingClientRect()}});var $5=pe((J1e,eD)=>{"use strict";var kre=kw();function Cre(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}eD.exports=kre&&Cre()});var rD=pe((K1e,tD)=>{"use strict";tD.exports=function(t,r,i,a,s){var l=(t-i)/(a-i),u=l+r/(a-i),h=(l+u)/2;return s==="left"||s==="bottom"?l:s==="center"||s==="middle"?h:s==="right"||s==="top"?u:l<2/3-h?l:u>4/3-h?u:h}});var nD=pe((Q1e,iD)=>{"use strict";var aD=Ot(),Ere=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];iD.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=aD.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=aD.constrain(Math.floor(r*3),0,2),Ere[r][t]}});var sD=pe(($1e,oD)=>{"use strict";var Lre=Wy(),Dre=z_(),Pre=By().getGraphDiv,zre=Ry(),e4=oD.exports={};e4.wrapped=function(e,t,r){e=Pre(e),e._fullLayout&&Dre.clear(e._fullLayout._uid+zre.HOVERID),e4.raw(e,t,r)};e4.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Lre.triggerHandler(t,"plotly_beforehover",r)===!1)&&(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&a&&t.emit("plotly_unhover",{event:r,points:a}))}});var jl=pe((e_e,cD)=>{"use strict";var Ire=$L(),t4=Ew(),Rre=$5(),Fre=Ot().removeElement,qre=eo(),Ld=cD.exports={};Ld.align=rD();Ld.getCursor=nD();var uD=sD();Ld.unhover=uD.wrapped;Ld.unhoverRaw=uD.raw;Ld.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,s=t.element,l,u,h,v,m,_,T,M;r._mouseDownTime||(r._mouseDownTime=0),s.style.pointerEvents="all",s.onmousedown=L,Rre?(s._ontouchstart&&s.removeEventListener("touchstart",s._ontouchstart),s._ontouchstart=L,s.addEventListener("touchstart",L,{passive:!1})):s.ontouchstart=L;function C(q,z,N){return Math.abs(q)a&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var z;_.target===T?z=_:(z={target:T,srcElement:T,toElement:T},Object.keys(_).concat(Object.keys(_.__proto__)).forEach(N=>{var H=_[N];!z[N]&&typeof H!="function"&&(z[N]=H)})),t.clickFn&&t.clickFn(i,z),M||T.dispatchEvent(new MouseEvent("click",q))}r._dragging=!1,r._dragged=!1}};function fD(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Ld.coverSlip=fD;function lD(e){return Ire(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Wh=pe((t_e,hD)=>{"use strict";hD.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var pD=pe((r_e,dD)=>{"use strict";var r4=Wh(),hg="data-savedcursor",vD="!!";dD.exports=function(t,r){var i=t.attr(hg);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),s=0;s{"use strict";var a4=qo(),Nre=kf();mD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Nre.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:a4({editType:"legend"}),grouptitlefont:a4({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:a4({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var dg=pe(vg=>{"use strict";vg.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};vg.isVertical=function(t){return t.orientation!=="h"};vg.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};vg.getId=function(t){return t._id||"legend"}});var o4=pe((n_e,yD)=>{"use strict";var z2=la(),ll=Ot(),Bre=Pi(),Ore=ys(),Ure=i4(),Vre=k0(),n4=dg();function Hre(e,t,r,i,a){var s=t[e]||{},l=Bre.newContainer(r,e);function u(me,Ce){return ll.coerce(s,l,Ure,me,Ce)}var h=ll.coerceFont(u,"font",r.font);u("bgcolor",r.paper_bgcolor),u("bordercolor");var v=u("visible");if(!v)return;var m,_=function(me,Ce){var Me=m._input,We=m;return ll.coerce(Me,We,Ore,me,Ce)},T=r.font||{},M=ll.coerceFont(u,"grouptitlefont",T,{overrideDflt:{size:Math.round(T.size*1.1)}}),C=0,E=!1,L="normal",I=(r.shapes||[]).filter(function(me){return me.showlegend});function O(me){return z2.traceIs(me,"pie-like")&&me._length!=null&&(Array.isArray(me.legend)||Array.isArray(me.showlegend))}i.filter(O).forEach(function(me){me.visible&&C++;for(var Ce=0;Ceme.legend.length)for(var We=me.legend.length;We(e==="legend"?1:0));if(H===!1&&(r[e]=void 0),!(H===!1&&!s.uirevision)&&(u("uirevision",r.uirevision),H!==!1)){u("borderwidth");var U=u("orientation"),W=u("yref"),J=u("xref"),ee=U==="h",ie=W==="paper",oe=J==="paper",he,fe,Te,ke="left";ee?(he=0,z2.getComponentMethod("rangeslider","isVisible")(t.xaxis)?ie?(fe=1.1,Te="bottom"):(fe=1,Te="top"):ie?(fe=-.1,Te="top"):(fe=0,Te="bottom")):(fe=1,Te="auto",oe?he=1.02:(he=1,ke="right")),ll.coerce(s,l,{x:{valType:"number",editType:"legend",min:oe?-2:0,max:oe?3:1,dflt:he}},"x"),ll.coerce(s,l,{y:{valType:"number",editType:"legend",min:ie?-2:0,max:ie?3:1,dflt:fe}},"y"),u("traceorder",L),n4.isGrouped(r[e])&&u("tracegroupgap"),u("entrywidth"),u("entrywidthmode"),u("indentation"),u("itemsizing"),u("itemwidth"),u("itemclick"),u("itemdoubleclick"),u("groupclick"),u("xanchor",ke),u("yanchor",Te),u("maxheight"),u("valign"),ll.noneOrAll(s,l,["x","y"]);var Se=u("title.text");if(Se){u("title.side",ee?"left":"top");var Ae=ll.extendFlat({},h,{size:ll.bigFont(h.size)});ll.coerceFont(u,"title.font",Ae);let me=a>1;u("titleclick",me?"toggle":!1),u("titledoubleclick",me?"toggleothers":!1)}}}yD.exports=function(t,r,i){var a,s=i.slice(),l=r.shapes;if(l)for(a=0;a{"use strict";var Xh=la(),s4=Ot(),Gre=s4.pushUnique,Zre=dg(),gD=!0;l4.handleItemClick=function(t,r,i,a){var s=r._fullLayout;if(r._dragged||r._editing)return;var l=t.data()[0][0];if(l.groupTitle&&l.noClick)return;var u=i.groupclick;a==="toggle"&&i.itemdoubleclick==="toggleothers"&&gD&&r.data&&r._context.showTips&&(s4.notifier(s4._(r,"Double-click on legend to isolate one trace"),"long",r),gD=!1);var h=u==="togglegroup",v=s.hiddenlabels?s.hiddenlabels.slice():[],m=r._fullData;let _=(s.shapes||[]).filter(xt=>xt.showlegend||xt.legendgroup);var T=m.concat(_),M=l.trace;M._isShape&&(M=M._fullInput);var C=M.legendgroup,E,L,I,O,q,z,N={},H=[],U=[],W=[];function J(xt,bt){var Vt=H.indexOf(xt),qt=N.visible;return qt||(qt=N.visible=[]),H.indexOf(xt)===-1&&(H.push(xt),Vt=H.length-1),qt[Vt]=bt,Vt}var ee=(s.shapes||[]).map(function(xt){return xt._input}),ie=!1;function oe(xt,bt){ee[xt].visible=bt,ie=!0}function he(xt,bt){if(!(l.groupTitle&&!h)){var Vt=xt._fullInput||xt,qt=Vt._isShape,Dt=Vt.index;Dt===void 0&&(Dt=Vt._index);var At=Vt.visible===!1?!1:bt;qt?oe(Dt,At):J(Dt,At)}}var fe=M.legend,Te=M._fullInput,ke=Te&&Te._isShape;if(!ke&&Xh.traceIs(M,"pie-like")){var Se=l.label,Ae=v.indexOf(Se);if(a==="toggle")Ae===-1?v.push(Se):v.splice(Ae,1);else if(a==="toggleothers"){var me=Ae!==-1,Ce=[];for(E=0;EI.showlegend||I.legendgroup),h=s.concat(u);function v(I){return(I.legend||"legend")===l}var m,_;if(i==="toggle")m=!h.some(function(O){return v(O)&&O.visible===!0}),_=!1;else{let I=h.some(function(O){return!v(O)&&O.visible===!0&&O.showlegend!==!1});m=!0,_=!I}let T={visible:[]},M=[],C=(a.shapes||[]).map(function(I){return I._input});for(var E=!1,L=0;L{"use strict";_D.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var wD=pe((l_e,bD)=>{"use strict";var{isArrayOrTypedArray:c4}=Fs(),xD=la(),h4=dg();bD.exports=function(t,r,i){var a=r._inHover,s=h4.isGrouped(r),l=h4.isReversed(r),u={},h=[],v=!1,m={},_=0,T=0,M,C;function E(Ce,Me,We){if(r.visible!==!1&&!(i&&Ce!==r._id))if(Me===""||!h4.isGrouped(r)){var it="~~i"+_;h.push(it),u[it]=[We],_++}else h.indexOf(Me)===-1?(h.push(Me),v=!0,u[Me]=[We]):u[Me].push(We)}for(M=0;Mhe&&(ie=he)}J[M][0]._groupMinRank=ie,J[M][0]._preGroupSort=M}var fe=function(Ce,Me){return Ce[0]._groupMinRank-Me[0]._groupMinRank||Ce[0]._preGroupSort-Me[0]._preGroupSort},Te=function(Ce,Me){var We=c4(Ce.trace.legendrank)?Ce.trace.legendrank[Ce.i]:Ce.trace.legendrank,it=c4(Me.trace.legendrank)?Me.trace.legendrank[Me.i]:Me.trace.legendrank;return We-it||Ce._preSort-Me._preSort};for(J.forEach(function(Ce,Me){Ce[0]._preGroupSort=Me}),J.sort(fe),M=0;M{"use strict";var I2=Ot();function TD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Dd.formatPiePercent=function(t,r){var i=TD((t*100).toPrecision(3));return I2.numSeparate(i,r)+"%"};Dd.formatPieValue=function(t,r){var i=TD(t.toPrecision(10));return I2.numSeparate(i,r)};Dd.getFirstFilled=function(t,r){if(I2.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var Yre=_i(),Wre=Ba();AD.exports=function(t,r,i,a){var s=i.marker.pattern;s&&s.shape?Yre.pointStyle(t,i,a,r):Wre.fill(t,r.color)}});var ED=pe((c_e,CD)=>{"use strict";var SD=Ba(),kD=v4().castOption,Xre=MD();CD.exports=function(t,r,i,a){var s=i.marker.line,l=kD(s.color,r.pts)||SD.defaultLine,u=kD(s.width,r.pts)||0;t.call(Xre,r,i,a).style("stroke-width",u).call(SD.stroke,l)}});var y4=pe((h_e,RD)=>{"use strict";var is=Xa(),d4=la(),Oo=Ot(),LD=Oo.strTranslate,ul=_i(),Jl=Ba(),p4=Lf().extractOpts,R2=rs(),jre=ED(),Jre=v4().castOption,Kre=f4(),DD=12,PD=5,Pd=2,Qre=10,Q0=5;RD.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var s=i.itemsizing==="constant",l=i.itemwidth,u=(l+Kre.itemGap*2)/2,h=LD(u,0),v=function(U,W,J,ee){var ie;if(U+1)ie=U;else if(W&&W.width>0)ie=W.width;else return 0;return s?ee:Math.min(ie,J)};t.each(function(U){var W=is.select(this),J=Oo.ensureSingle(W,"g","layers");J.style("opacity",U[0].trace.opacity);var ee=i.indentation,ie=i.valign,oe=U[0].lineHeight,he=U[0].height;if(ie==="middle"&&ee===0||!oe||!he)J.attr("transform",null);else{var fe={top:1,bottom:-1}[ie],Te=fe*(.5*(oe-he+3))||0,ke=i.indentation;J.attr("transform",LD(ke,Te))}var Se=J.selectAll("g.legendfill").data([U]);Se.enter().append("g").classed("legendfill",!0);var Ae=J.selectAll("g.legendlines").data([U]);Ae.enter().append("g").classed("legendlines",!0);var me=J.selectAll("g.legendsymbols").data([U]);me.enter().append("g").classed("legendsymbols",!0),me.selectAll("g.legendpoints").data([U]).enter().append("g").classed("legendpoints",!0)}).each(H).each(T).each(C).each(M).each(L).each(z).each(q).each(m).each(_).each(I).each(O);function m(U){var W=zD(U),J=W.showFill,ee=W.showLine,ie=W.showGradientLine,oe=W.showGradientFill,he=W.anyFill,fe=W.anyLine,Te=U[0],ke=Te.trace,Se,Ae,me=p4(ke),Ce=me.colorscale,Me=me.reversescale,We=function(mt){if(mt.size())if(J)ul.fillGroupStyle(mt,r,!0);else{var Bt="legendfill-"+ke.uid;ul.gradient(mt,r,Bt,m4(Me),Ce,"fill")}},it=function(mt){if(mt.size()){var Bt="legendline-"+ke.uid;ul.lineGroupStyle(mt),ul.gradient(mt,r,Bt,m4(Me),Ce,"stroke")}},nt=R2.hasMarkers(ke)||!he?"M5,0":fe?"M5,-2":"M5,-3",gt=is.select(this),Xe=gt.select(".legendfill").selectAll("path").data(J||oe?[U]:[]);if(Xe.enter().append("path").classed("js-fill",!0),Xe.exit().remove(),Xe.attr("d",nt+"h"+l+"v6h-"+l+"z").call(We),ee||ie){var kt=v(void 0,ke.line,Qre,PD);Ae=Oo.minExtend(ke,{line:{width:kt}}),Se=[Oo.minExtend(Te,{trace:Ae})]}var lt=gt.select(".legendlines").selectAll("path").data(ee||ie?[Se]:[]);lt.enter().append("path").classed("js-line",!0),lt.exit().remove(),lt.attr("d",nt+(ie?"l"+l+",0.0001":"h"+l)).call(ee?ul.lineGroupStyle:it)}function _(U){var W=zD(U),J=W.anyFill,ee=W.anyLine,ie=W.showLine,oe=W.showMarker,he=U[0],fe=he.trace,Te=!oe&&!ee&&!J&&R2.hasText(fe),ke,Se;function Ae(Xe,kt,lt,mt){var Bt=Oo.nestedProperty(fe,Xe).get(),ft=Oo.isArrayOrTypedArray(Bt)&&kt?kt(Bt):Bt;if(s&&ft&&mt!==void 0&&(ft=mt),lt){if(ftlt[1])return lt[1]}return ft}function me(Xe){return he._distinct&&he.index&&Xe[he.index]?Xe[he.index]:Xe[0]}if(oe||Te||ie){var Ce={},Me={};if(oe){Ce.mc=Ae("marker.color",me),Ce.mx=Ae("marker.symbol",me),Ce.mo=Ae("marker.opacity",Oo.mean,[.2,1]),Ce.mlc=Ae("marker.line.color",me),Ce.mlw=Ae("marker.line.width",Oo.mean,[0,5],Pd),Ce.mld=fe._isShape?"solid":Ae("marker.line.dash",me),Me.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var We=Ae("marker.size",Oo.mean,[2,16],DD);Ce.ms=We,Me.marker.size=We}ie&&(Me.line={width:Ae("line.width",me,[0,10],PD)}),Te&&(Ce.tx="Aa",Ce.tp=Ae("textposition",me),Ce.ts=10,Ce.tc=Ae("textfont.color",me),Ce.tf=Ae("textfont.family",me),Ce.tw=Ae("textfont.weight",me),Ce.ty=Ae("textfont.style",me),Ce.tv=Ae("textfont.variant",me),Ce.tC=Ae("textfont.textcase",me),Ce.tE=Ae("textfont.lineposition",me),Ce.tS=Ae("textfont.shadow",me)),ke=[Oo.minExtend(he,Ce)],Se=Oo.minExtend(fe,Me),Se.selectedpoints=null,Se.texttemplate=null}var it=is.select(this).select("g.legendpoints"),nt=it.selectAll("path.scatterpts").data(oe?ke:[]);nt.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",h),nt.exit().remove(),nt.call(ul.pointStyle,Se,r),oe&&(ke[0].mrc=3);var gt=it.selectAll("g.pointtext").data(Te?ke:[]);gt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",h),gt.exit().remove(),gt.selectAll("text").call(ul.textPointStyle,Se,r)}function T(U){var W=U[0].trace,J=W.type==="waterfall";if(U[0]._distinct&&J){var ee=U[0].trace[U[0].dir].marker;return U[0].mc=ee.color,U[0].mlw=ee.line.width,U[0].mlc=ee.line.color,E(U,this,"waterfall")}var ie=[];W.visible&&J&&(ie=U[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var oe=is.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ie);oe.enter().append("path").classed("legendwaterfall",!0).attr("transform",h).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(he){var fe=is.select(this),Te=W[he[0]].marker,ke=v(void 0,Te.line,Q0,Pd);fe.attr("d",he[1]).style("stroke-width",ke+"px").call(Jl.fill,Te.color),ke&&fe.call(Jl.stroke,Te.line.color)})}function M(U){E(U,this)}function C(U){E(U,this,"funnel")}function E(U,W,J){var ee=U[0].trace,ie=ee.marker||{},oe=ie.line||{},he=ie.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",fe=J?ee.visible&&ee.type===J:d4.traceIs(ee,"bar"),Te=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(fe?[U]:[]);Te.enter().append("path").classed("legend"+J,!0).attr("d",he).attr("transform",h),Te.exit().remove(),Te.each(function(ke){var Se=is.select(this),Ae=ke[0],me=v(Ae.mlw,ie.line,Q0,Pd);Se.style("stroke-width",me+"px");var Ce=Ae.mcc;if(!i._inHover&&"mc"in Ae){var Me=p4(ie),We=Me.mid;We===void 0&&(We=(Me.max+Me.min)/2),Ce=ul.tryColorscale(ie,"")(We)}var it=Ce||Ae.mc||ie.color,nt=ie.pattern,gt=ul.getPatternAttr,Xe=nt&&(gt(nt.shape,0,"")||gt(nt.path,0,""));if(Xe){var kt=gt(nt.bgcolor,0,null),lt=gt(nt.fgcolor,0,null),mt=nt.fgopacity,Bt=ID(nt.size,8,10),ft=ID(nt.solidity,.5,1),de="legend-"+ee.uid;Se.call(ul.pattern,"legend",r,de,Xe,Bt,ft,Ce,nt.fillmode,kt,lt,mt)}else Se.call(Jl.fill,it);me&&Jl.stroke(Se,Ae.mlc||oe.color)})}function L(U){var W=U[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendbox").data(W.visible&&d4.traceIs(W,"box-violin")?[U]:[]);J.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),J.exit().remove(),J.each(function(){var ee=is.select(this);if((W.boxpoints==="all"||W.points==="all")&&Jl.opacity(W.fillcolor)===0&&Jl.opacity((W.line||{}).color)===0){var ie=Oo.minExtend(W,{marker:{size:s?DD:Oo.constrain(W.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});J.call(ul.pointStyle,ie,r)}else{var oe=v(void 0,W.line,Q0,Pd);ee.style("stroke-width",oe+"px").call(Jl.fill,W.fillcolor),oe&&Jl.stroke(ee,W.line.color)}})}function I(U){var W=U[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(W.visible&&W.type==="candlestick"?[U,U]:[]);J.enter().append("path").classed("legendcandle",!0).attr("d",function(ee,ie){return ie?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(ee,ie){var oe=is.select(this),he=W[ie?"increasing":"decreasing"],fe=v(void 0,he.line,Q0,Pd);oe.style("stroke-width",fe+"px").call(Jl.fill,he.fillcolor),fe&&Jl.stroke(oe,he.line.color)})}function O(U){var W=U[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(W.visible&&W.type==="ohlc"?[U,U]:[]);J.enter().append("path").classed("legendohlc",!0).attr("d",function(ee,ie){return ie?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(ee,ie){var oe=is.select(this),he=W[ie?"increasing":"decreasing"],fe=v(void 0,he.line,Q0,Pd);oe.style("fill","none").call(ul.dashLine,he.line.dash,fe),fe&&Jl.stroke(oe,he.line.color)})}function q(U){N(U,this,"pie")}function z(U){N(U,this,"funnelarea")}function N(U,W,J){var ee=U[0],ie=ee.trace,oe=J?ie.visible&&ie.type===J:d4.traceIs(ie,J),he=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(oe?[U]:[]);if(he.enter().append("path").classed("legend"+J,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),he.exit().remove(),he.size()){var fe=ie.marker||{},Te=v(Jre(fe.line.width,ee.pts),fe.line,Q0,Pd),ke="pieLike",Se=Oo.minExtend(ie,{marker:{line:{width:Te}}},ke),Ae=Oo.minExtend(ee,{trace:Se},ke);jre(he,Ae,Se,r)}}function H(U){var W=U[0].trace,J,ee=[];if(W.visible)switch(W.type){case"histogram2d":case"heatmap":ee=[["M-15,-2V4H15V-2Z"]],J=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":ee=[["M-6,-6V6H6V-6Z"]],J=!0;break;case"densitymapbox":case"densitymap":ee=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],J="radial";break;case"cone":ee=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],J=!1;break;case"streamtube":ee=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],J=!1;break;case"surface":ee=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],J=!0;break;case"mesh3d":ee=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!1;break;case"volume":ee=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!0;break;case"isosurface":ee=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],J=!1;break}var ie=is.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(ee);ie.enter().append("path").classed("legend3dandfriends",!0).attr("transform",h).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(oe,he){var fe=is.select(this),Te=p4(W),ke=Te.colorscale,Se=Te.reversescale,Ae=function(We){if(We.size()){var it="legendfill-"+W.uid;ul.gradient(We,r,it,m4(Se,J==="radial"),ke,"fill")}},me;if(ke){if(!J){var Me=ke.length;me=he===0?ke[Se?Me-1:0][1]:he===1?ke[Se?0:Me-1][1]:ke[Math.floor((Me-1)/2)][1]}}else{var Ce=W.vertexcolor||W.facecolor||W.color;me=Oo.isArrayOrTypedArray(Ce)?Ce[he]||Ce[0]:Ce}fe.attr("d",oe[0]),me?fe.call(Jl.fill,me):fe.call(Ae)})}};function m4(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function zD(e){var t=e[0].trace,r=t.contours,i=R2.hasLines(t),a=R2.hasMarkers(t),s=t.visible&&t.fill&&t.fill!=="none",l=!1,u=!1;if(r){var h=r.coloring;h==="lines"?l=!0:i=h==="none"||h==="heatmap"||r.showlines,r.type==="constraint"?s=r._operation!=="=":(h==="fill"||h==="heatmap")&&(u=!0)}return{showMarker:a,showLine:i,showFill:s,showGradientLine:l,showGradientFill:u,anyLine:i||l,anyFill:s||u}}function ID(e,t,r){return e&&Oo.isArrayOrTypedArray(e)?t:e>r?r:e}});var b4=pe((v_e,GD)=>{"use strict";var gs=Xa(),Dn=Ot(),_4=to(),zd=la(),N2=Wy(),g4=jl(),Pn=_i(),pg=Ba(),Id=ro(),FD=u4().handleItemClick,qD=u4().handleTitleClick,Vn=f4(),x4=No(),VD=x4.LINE_SPACING,em=x4.FROM_TL,ND=x4.FROM_BR,BD=wD(),$re=y4(),tm=dg(),$0=1,eae=/^legend[0-9]*$/;GD.exports=function(t,r){if(r)OD(t,r);else{var i=t._fullLayout,a=i._legends,s=i._infolayer.selectAll('[class^="legend"]');s.each(function(){var v=gs.select(this),m=v.attr("class"),_=m.split(" ")[0];_.match(eae)&&a.indexOf(_)===-1&&v.remove()});for(var l=0;l1)}var C=i.hiddenlabels||[];if(!u&&(!i.showlegend||!h.length))return l.selectAll("."+a).remove(),i._topdefs.select("#"+s).remove(),_4.autoMargin(e,a);var E=Dn.ensureSingle(l,"g",a,function(W){u||W.attr("pointer-events","all")}),L=Dn.ensureSingleById(i._topdefs,"clipPath",s,function(W){W.append("rect")}),I=Dn.ensureSingle(E,"rect","bg",function(W){W.attr("shape-rendering","crispEdges")});I.call(pg.stroke,r.bordercolor).call(pg.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var O=Dn.ensureSingle(E,"g","scrollbox"),q=r.title;r._titleWidth=0,r._titleHeight=0;var z;q.text?(z=Dn.ensureSingle(O,"text",a+"titletext"),z.attr("text-anchor","start").call(Pn.font,q.font).text(q.text),q2(z,O,e,r,$0),!u&&(r.titleclick||r.titledoubleclick)&&iae(O,e,r,a)):(O.selectAll("."+a+"titletext").remove(),O.selectAll("."+a+"titletoggle").remove());var N=Dn.ensureSingle(E,"rect","scrollbar",function(W){W.attr(Vn.scrollBarEnterAttrs).call(pg.fill,Vn.scrollBarColor)}),H=O.selectAll("g.groups").data(h);H.enter().append("g").attr("class","groups"),H.exit().remove();var U=H.selectAll("g.traces").data(Dn.identity);U.enter().append("g").attr("class","traces"),U.exit().remove(),U.style("opacity",function(W){let J=W[0],ee=J.trace;if(J.groupTitle){let ie=ee.legendgroup,oe=(i.shapes||[]).filter(function(fe){return fe.showlegend});return e._fullData.concat(oe).some(function(fe){return fe.legendgroup===ie&&(fe.legend||"legend")===a&&fe.visible===!0})?1:.5}return zd.traceIs(ee,"pie-like")?C.indexOf(W[0].label)!==-1?.5:1:ee.visible==="legendonly"?.5:1}).each(function(){gs.select(this).call(rae,e,r)}).call($re,e,r).each(function(W){u||W[0].groupTitle&&r.groupclick==="toggleitem"||gs.select(this).call(aae,e,a)}),Dn.syncOrAsync([_4.previousPromises,function(){return sae(e,H,U,r,O)},function(){var W=i._size,J=r.borderwidth,ee=r.xref==="paper",ie=r.yref==="paper";if(q.text){let Oe=(i.shapes||[]).filter(function(Je){return Je.showlegend}),at=e._fullData.concat(Oe).some(function(Je){let Pt=Je.legend||"legend";var xt=Array.isArray(Pt)?Pt.includes(a):Pt===a;return xt&&Je.visible===!0});z.style("opacity",at?1:.5)}if(!u){var oe,he;ee?oe=W.l+W.w*r.x-em[B2(r)]*r._width:oe=i.width*r.x-em[B2(r)]*r._width,ie?he=W.t+W.h*(1-r.y)-em[O2(r)]*r._effHeight:he=i.height*(1-r.y)-em[O2(r)]*r._effHeight;var fe=lae(e,a,oe,he);if(fe)return;if(i.margin.autoexpand){var Te=oe,ke=he;oe=ee?Dn.constrain(oe,0,i.width-r._width):Te,he=ie?Dn.constrain(he,0,i.height-r._effHeight):ke,oe!==Te&&Dn.log("Constrain "+a+".x to make legend fit inside graph"),he!==ke&&Dn.log("Constrain "+a+".y to make legend fit inside graph")}Pn.setTranslate(E,oe,he)}if(N.on(".drag",null),E.on("wheel",null),u||r._height<=r._maxHeight||e._context.staticPlot){var Se=r._effHeight;u&&(Se=r._height),I.attr({width:r._width-J,height:Se-J,x:J/2,y:J/2}),Pn.setTranslate(O,0,0),L.select("rect").attr({width:r._width-2*J,height:Se-2*J,x:J,y:J}),Pn.setClipUrl(O,s,e),Pn.setRect(N,0,0,0,0),delete r._scrollY}else{var Ae=Math.max(Vn.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),me=r._effHeight-Ae-2*Vn.scrollBarMargin,Ce=r._height-r._effHeight,Me=me/Ce,We=Math.min(r._scrollY||0,Ce);I.attr({width:r._width-2*J+Vn.scrollBarWidth+Vn.scrollBarMargin,height:r._effHeight-J,x:J/2,y:J/2}),L.select("rect").attr({width:r._width-2*J+Vn.scrollBarWidth+Vn.scrollBarMargin,height:r._effHeight-2*J,x:J,y:J+We}),Pn.setClipUrl(O,s,e),Bt(We,Ae,Me),E.on("wheel",function(){We=Dn.constrain(r._scrollY+gs.event.deltaY/Ce*me,0,Ce),Bt(We,Ae,Me),We!==0&&We!==Ce&&gs.event.preventDefault()});var it,nt,gt,Xe=function(Oe,at,Je){var Pt=(Je-at)/Me+Oe;return Dn.constrain(Pt,0,Ce)},kt=function(Oe,at,Je){var Pt=(at-Je)/Me+Oe;return Dn.constrain(Pt,0,Ce)},lt=gs.behavior.drag().on("dragstart",function(){var Oe=gs.event.sourceEvent;Oe.type==="touchstart"?it=Oe.changedTouches[0].clientY:it=Oe.clientY,gt=We}).on("drag",function(){var Oe=gs.event.sourceEvent;Oe.buttons===2||Oe.ctrlKey||(Oe.type==="touchmove"?nt=Oe.changedTouches[0].clientY:nt=Oe.clientY,We=Xe(gt,it,nt),Bt(We,Ae,Me))});N.call(lt);var mt=gs.behavior.drag().on("dragstart",function(){var Oe=gs.event.sourceEvent;Oe.type==="touchstart"&&(it=Oe.changedTouches[0].clientY,gt=We)}).on("drag",function(){var Oe=gs.event.sourceEvent;Oe.type==="touchmove"&&(nt=Oe.changedTouches[0].clientY,We=kt(gt,it,nt),Bt(We,Ae,Me))});O.call(mt)}function Bt(Oe,at,Je){r._scrollY=e._fullLayout[a]._scrollY=Oe,Pn.setTranslate(O,0,-Oe),Pn.setRect(N,r._width,Vn.scrollBarMargin+Oe*Je,Vn.scrollBarWidth,at),L.select("rect").attr("y",J+Oe)}if(e._context.edits.legendPosition){var ft,de,De,ye;E.classed("cursor-move",!0),g4.init({element:E.node(),gd:e,prepFn:function(Oe){if(Oe.target!==N.node()){var at=Pn.getTranslate(E);De=at.x,ye=at.y}},moveFn:function(Oe,at){if(De!==void 0&&ye!==void 0){var Je=De+Oe,Pt=ye+at;Pn.setTranslate(E,Je,Pt),ft=g4.align(Je,r._width,W.l,W.l+W.w,r.xanchor),de=g4.align(Pt+r._height,-r._height,W.t+W.h,W.t,r.yanchor)}},doneFn:function(){if(ft!==void 0&&de!==void 0){var Oe={};Oe[a+".x"]=ft,Oe[a+".y"]=de,zd.call("_guiRelayout",e,Oe)}},clickFn:function(Oe,at){var Je=l.selectAll("g.traces").filter(function(){var Pt=this.getBoundingClientRect();return at.clientX>=Pt.left&&at.clientX<=Pt.right&&at.clientY>=Pt.top&&at.clientY<=Pt.bottom});Je.size()>0&&HD(e,r,Je,Oe,at)}})}}],e)}}function F2(e,t,r){var i=e[0],a=i.width,s=t.entrywidthmode,l=i.trace.legendwidth||t.entrywidth;return s==="fraction"?t._maxWidth*l:r+(l||a)}function HD(e,t,r,i,a){var s=e._fullLayout,l=r.data()[0][0].trace,u=t.itemclick,h=t.itemdoubleclick,v={event:a,node:r.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:s};l._group&&(v.group=l._group),zd.traceIs(l,"pie-like")&&(v.label=r.datum()[0].label);var m=N2.triggerHandler(e,"plotly_legendclick",v);if(i===1){if(m===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&u&&FD(r,e,t,u)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var _=N2.triggerHandler(e,"plotly_legenddoubleclick",v);_!==!1&&m!==!1&&h&&FD(r,e,t,h)}}function rae(e,t,r){var i=tm.getId(r),a=e.data()[0][0],s=a.trace,l=zd.traceIs(s,"pie-like"),u=!r._inHover&&t._context.edits.legendText&&!l,h=r._maxNameLength,v,m;a.groupTitle?(v=a.groupTitle.text,m=a.groupTitle.font):(m=r.font,r.entries?v=a.text:(v=l?a.label:s.name,s._meta&&(v=Dn.templateString(v,s._meta))));var _=Dn.ensureSingle(e,"text",i+"text");_.attr("text-anchor","start").call(Pn.font,m).text(u?UD(v,h):v);var T=r.indentation+r.itemwidth+Vn.itemGap*2;Id.positionText(_,T,0),u?_.call(Id.makeEditable,{gd:t,text:v}).call(q2,e,t,r).on("edit",function(M){this.text(UD(M,h)).call(q2,e,t,r);var C=a.trace._fullInput||{},E={};return E.name=M,C._isShape?zd.call("_guiRelayout",t,"shapes["+s.index+"].name",E.name):zd.call("_guiRestyle",t,E,s.index)}):q2(_,e,t,r)}function UD(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function aae(e,t,r){var i=t._context.doubleClickDelay,a,s=1,l=Dn.ensureSingle(e,"rect",r+"toggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(pg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimei&&(s=Math.max(s-1,1)),HD(t,u,e,s,gs.event)}}))}function iae(e,t,r,i){if(t._fullData.some(function(v){let m=v.legend||"legend";return(Array.isArray(m)?m.includes(i):m===i)&&zd.traceIs(v,"pie-like")}))return;let s=t._context.doubleClickDelay;var l,u=1;let h=Dn.ensureSingle(e,"rect",i+"titletoggle",function(v){t._context.staticPlot||v.style("cursor","pointer").attr("pointer-events","all"),v.call(pg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(h.on("mousedown",function(){l=new Date().getTime(),l-t._legendMouseDownTimes&&(u=Math.max(u-1,1));let v={event:gs.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(u===1&&r.titleclick){if(N2.triggerHandler(t,"plotly_legendtitleclick",v)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&qD(t,r,r.titleclick)},s)}else u===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,N2.triggerHandler(t,"plotly_legendtitledoubleclick",v)!==!1&&r.titledoubleclick&&qD(t,r,r.titledoubleclick))}))}function q2(e,t,r,i,a){i._inHover&&e.attr("data-notex",!0),Id.convertToTspans(e,r,function(){nae(t,r,i,a)})}function nae(e,t,r,i){var a=e.data()[0][0],s=a&&a.trace.showlegend;if(Array.isArray(s)&&(s=s[a.i]!==!1),!r._inHover&&a&&!s){e.remove();return}var l=e.select("g[class*=math-group]"),u=l.node(),h=tm.getId(r);r||(r=t._fullLayout[h]);var v=r.borderwidth,m;i===$0?m=r.title.font:a.groupTitle?m=a.groupTitle.font:m=r.font;var _=m.size*VD,T,M;if(u){var C=Pn.bBox(u);T=C.height,M=C.width,i===$0?Pn.setTranslate(l,v,v+T*.75):Pn.setTranslate(l,0,T*.25)}else{var E="."+h+(i===$0?"title":"")+"text",L=e.select(E),I=Id.lineCount(L),O=L.node();if(T=_*I,M=O?Pn.bBox(O).width:0,i===$0)r.title.side==="left"&&(M+=Vn.itemGap*2),Id.positionText(L,v+Vn.titlePad,v+_);else{var q=Vn.itemGap*2+r.indentation+r.itemwidth;a.groupTitle&&(q=Vn.itemGap,M-=r.indentation+r.itemwidth),Id.positionText(L,q,-_*((I-1)/2-.3))}}i===$0?(r._titleWidth=M,r._titleHeight=T):(a.lineHeight=_,a.height=Math.max(T,16)+3,a.width=M)}function oae(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function sae(e,t,r,i,a){var s=e._fullLayout,l=tm.getId(i);i||(i=s[l]);var u=s._size,h=tm.isVertical(i),v=tm.isGrouped(i),m=i.entrywidthmode==="fraction",_=i.borderwidth,T=2*_,M=Vn.itemGap,C=i.indentation+i.itemwidth+M*2,E=2*(_+M),L=O2(i),I=i.y<0||i.y===0&&L==="top",O=i.y>1||i.y===1&&L==="bottom",q=i.tracegroupgap,z={};let{orientation:N,yref:H}=i,{maxheight:U}=i,W=I||O||N!=="v"||H!=="paper";U||(U=W?.5:1);let J=W?s.height:u.h;i._maxHeight=Math.max(U>1?U:U*J,30);var ee=0;i._width=0,i._height=0;var ie=oae(i);if(h)r.each(function(Oe){var at=Oe[0].height;Pn.setTranslate(this,_+ie[0],_+ie[1]+i._height+at/2+M),i._height+=at,i._width=Math.max(i._width,Oe[0].width)}),ee=C+i._width,i._width+=M+C+T,i._height+=E,v&&(t.each(function(Oe,at){Pn.setTranslate(this,0,at*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var oe=B2(i),he=i.x<0||i.x===0&&oe==="right",fe=i.x>1||i.x===1&&oe==="left",Te=O||I,ke=s.width/2;i._maxWidth=Math.max(he?Te&&oe==="left"?u.l+u.w:ke:fe?Te&&oe==="right"?u.r+u.w:ke:u.w,2*C);var Se=0,Ae=0;r.each(function(Oe){var at=F2(Oe,i,C);Se=Math.max(Se,at),Ae+=at}),ee=null;var me=0;if(v){var Ce=0,Me=0,We=0;t.each(function(){var Oe=0,at=0;gs.select(this).selectAll("g.traces").each(function(Pt){var xt=F2(Pt,i,C),bt=Pt[0].height;Pn.setTranslate(this,ie[0],ie[1]+_+M+bt/2+at),at+=bt,Oe=Math.max(Oe,xt),z[Pt[0].trace.legendgroup]=Oe});var Je=Oe+M;Me>0&&Je+_+Me>i._maxWidth?(me=Math.max(me,Me),Me=0,We+=Ce+q,Ce=at):Ce=Math.max(Ce,at),Pn.setTranslate(this,Me,We),Me+=Je}),i._width=Math.max(me,Me)+_,i._height=We+Ce+E}else{var it=r.size(),nt=Ae+T+(it-1)*M=i._maxWidth&&(me=Math.max(me,lt),Xe=0,kt+=gt,i._height+=gt,gt=0),Pn.setTranslate(this,ie[0]+_+Xe,ie[1]+_+kt+at/2+M),lt=Xe+Je+M,Xe+=Pt,gt=Math.max(gt,at)}),nt?(i._width=Xe+T,i._height=gt+E):(i._width=Math.max(me,lt)+T,i._height+=gt+E)}}i._width=Math.ceil(Math.max(i._width+ie[0],i._titleWidth+2*(_+Vn.titlePad))),i._height=Math.ceil(Math.max(i._height+ie[1],i._titleHeight+2*(_+Vn.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var mt=e._context.edits,Bt=mt.legendText||mt.legendPosition;r.each(function(Oe){var at=gs.select(this).select("."+l+"toggle"),Je=Oe[0].height,Pt=Oe[0].trace.legendgroup,xt=F2(Oe,i,C);v&&Pt!==""&&(xt=z[Pt]);var bt=Bt?C:ee||xt;!h&&!m&&(bt+=M/2),Pn.setRect(at,0,-Je/2,bt,Je)});var ft=a.select("."+l+"titletext");ft.node()&&tae(ft,i,_);var de=a.select("."+l+"titletoggle");if(de.size()&&ft.node()){var De=ft.attr("x")||0,ye=Vn.titlePad;Pn.setRect(de,De-ye,_,i._titleWidth+2*ye,i._titleHeight+2*ye)}}function lae(e,t,r,i){var a=e._fullLayout,s=a[t],l=B2(s),u=O2(s),h=s.xref==="paper",v=s.yref==="paper";e._fullLayout._reservedMargin[t]={};var m=s.y<.5?"b":"t",_=s.x<.5?"l":"r",T={r:a.width-r,l:r+s._width,b:a.height-i,t:i+s._effHeight};if(h&&v)return _4.autoMargin(e,t,{x:s.x,y:s.y,l:s._width*em[l],r:s._width*ND[l],b:s._effHeight*ND[u],t:s._effHeight*em[u]});h?e._fullLayout._reservedMargin[t][m]=T[m]:v||s.orientation==="v"?e._fullLayout._reservedMargin[t][_]=T[_]:e._fullLayout._reservedMargin[t][m]=T[m]}function B2(e){return Dn.isRightAnchor(e)?"right":Dn.isCenterAnchor(e)?"center":"left"}function O2(e){return Dn.isBottomAnchor(e)?"bottom":Dn.isMiddleAnchor(e)?"middle":"top"}});var M4=pe(A4=>{"use strict";var Rd=Xa(),Ec=La(),ZD=Sf(),cn=Ot(),uae=cn.pushUnique,w4=cn.strTranslate,fae=cn.strRotate,cae=Wy(),Kl=ro(),hae=pD(),qf=_i(),io=Ba(),U2=jl(),Nf=Xi(),vae=eo().zindexSeparator,am=la(),Ou=Cc(),Fd=Ry(),dae=o4(),pae=b4(),$D=Fd.YANGLE,T4=Math.PI*$D/180,mae=1/Math.sin(T4),yae=Math.cos(T4),gae=Math.sin(T4),ji=Fd.HOVERARROWSIZE,Ra=Fd.HOVERTEXTPAD,YD={box:!0,ohlc:!0,violin:!0,candlestick:!0},_ae={scatter:!0,scattergl:!0,splom:!0};function WD(e,t){return e.distance-t.distance}A4.hover=function(t,r,i,a){t=cn.getGraphDiv(t);var s=r.target;cn.throttle(t._fullLayout._uid+Fd.HOVERID,Fd.HOVERMINTIME,function(){xae(t,r,i,a,s)})};A4.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,s=iP(a),l=nP(a),u=t.map(function(L){var I=L._x0||L.x0||L.x||0,O=L._x1||L.x1||L.x||0,q=L._y0||L.y0||L.y||0,z=L._y1||L.y1||L.y||0,N=L.eventData;if(N){var H=Math.min(I,O),U=Math.max(I,O),W=Math.min(q,z),J=Math.max(q,z),ee=L.trace;if(am.traceIs(ee,"gl3d")){var ie=a._fullLayout[ee.scene]._scene.container,oe=ie.offsetLeft,he=ie.offsetTop;H+=oe,U+=oe,W+=he,J+=he}N.bbox={x0:H+l,x1:U+l,y0:W+s,y1:J+s},N.xPixel=(I+O)/2,N.yPixel=(q+z)/2,r.inOut_bbox&&r.inOut_bbox.push(N.bbox)}else N=!1;return{color:L.color||io.defaultLine,x0:L.x0||L.x||0,x1:L.x1||L.x||0,y0:L.y0||L.y||0,y1:L.y1||L.y||0,xLabel:L.xLabel,yLabel:L.yLabel,zLabel:L.zLabel,text:L.text,name:L.name,idealAlign:L.idealAlign,borderColor:L.borderColor,fontFamily:L.fontFamily,fontSize:L.fontSize,fontColor:L.fontColor,fontWeight:L.fontWeight,fontStyle:L.fontStyle,fontVariant:L.fontVariant,nameLength:L.nameLength,textAlign:L.textAlign,trace:L.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:L.hovertemplate||!1,hovertemplateLabels:L.hovertemplateLabels||!1,eventData:N}}),h=!1,v=tP(u,{gd:a,hovermode:"closest",rotateLabels:h,bgColor:r.bgColor||io.background,container:Rd.select(r.container),outerContainer:r.outerContainer||r.container}),m=v.hoverLabels,_=5,T=0,M=0;m.sort(function(L,I){return L.y0-I.y0}).each(function(L,I){var O=L.y0-L.by/2;O-_U[0]._length||ye<0||ye>W[0]._length)return U2.unhoverRaw(e,t)}if(t.pointerX=De+U[0]._offset,t.pointerY=ye+W[0]._offset,"xval"in t?ke=Ou.flat(s,t.xval):ke=Ou.p2c(U,De),"yval"in t?Se=Ou.flat(s,t.yval):Se=Ou.p2c(W,ye),!Ec(ke[0])||!Ec(Se[0]))return cn.warn("Fx.hover failed",t,e),U2.unhoverRaw(e,t)}u.clickanywhere&&(e._hoverXVals=ke,e._hoverYVals=Se,e._hoverXAxes=U,e._hoverYAxes=W);var Je=1/0;function Pt(ir,ii){for(me=0;melt&&(fe.splice(0,lt),Je=fe[0].distance),_&&he!==0&&fe.length===0){kt.distance=he,kt.index=!1;var ue=Me._module.hoverPoints(kt,gt,Xe,"closest",{hoverLayer:u._hoverlayer});if(ue&&(ue=ue.filter(function(Et){return Et.spikeDistance<=he})),ue&&ue.length){var Le,Ne=ue.filter(function(Et){return Et.xa.showspikes&&Et.xa.spikesnap!=="hovered data"});if(Ne.length){var rt=Ne[0];Ec(rt.x0)&&Ec(rt.y0)&&(Le=bt(rt),(!mt.vLinePoint||mt.vLinePoint.spikeDistance>Le.spikeDistance)&&(mt.vLinePoint=Le))}var Ze=ue.filter(function(Et){return Et.ya.showspikes&&Et.ya.spikesnap!=="hovered data"});if(Ze.length){var yt=Ze[0];Ec(yt.x0)&&Ec(yt.y0)&&(Le=bt(yt),(!mt.hLinePoint||mt.hLinePoint.spikeDistance>Le.spikeDistance)&&(mt.hLinePoint=Le))}}}}}Pt();function xt(ir,ii,Xr){for(var le=null,te=1/0,se,ue=0;ueir.trace.index===pt.trace.index):fe=[pt];var Nt=fe.length,er=QD("x",pt,u),Ht=QD("y",pt,u);Pt(er,Ht);var Gt=[],hr={},yr=0,mr=function(ir){var ii=YD[ir.trace.type]?eP(ir):ir.trace.index;if(!hr[ii])yr++,hr[ii]=yr,Gt.push(ir);else{var Xr=hr[ii]-1,le=Gt[Xr];Xr>0&&Math.abs(ir.distance)Nt-1;Ct--)mr(fe[Ct]);fe=Gt,At()}var Fe=e._hoverdata,Ue=[],wt=iP(e),Tt=nP(e);for(let ir of fe){var vr=Ou.makeEventData(ir,ir.trace,ir.cd);if(ir.hovertemplate!==!1){var Mr=!1;ir.cd[ir.index]&&ir.cd[ir.index].ht&&(Mr=ir.cd[ir.index].ht),ir.hovertemplate=Mr||ir.trace.hovertemplate||!1}if(ir.xa&&ir.ya){var Tr=ir.x0+ir.xa._offset,Gr=ir.x1+ir.xa._offset,pa=ir.y0+ir.ya._offset,Aa=ir.y1+ir.ya._offset,ai=Math.min(Tr,Gr),bi=Math.max(Tr,Gr),hi=Math.min(pa,Aa),Hi=Math.max(pa,Aa);vr.bbox={x0:ai+Tt,x1:bi+Tt,y0:hi+wt,y1:Hi+wt},vr.xPixel=(Tr+Gr)/2,vr.yPixel=(pa+Aa)/2}ir.eventData=[vr],Ue.push(vr)}e._hoverdata=Ue;var Ii=T==="y"&&(Te.length>1||fe.length>1)||T==="closest"&&Bt&&fe.length>1,_n=io.combine(u.plot_bgcolor||io.background,u.paper_bgcolor),an=tP(fe,{gd:e,hovermode:T,rotateLabels:Ii,bgColor:_n,container:u._hoverlayer,outerContainer:u._paper.node(),commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance}),Gi=an.hoverLabels;if(Ou.isUnifiedHover(T)||(wae(Gi,Ii,u,an.commonLabelBoundingBox),aP(Gi,Ii,u._invScaleX,u._invScaleY)),a&&a.tagName){var ma=am.getComponentMethod("annotations","hasClickToShow")(e,Ue);hae(Rd.select(a),ma?"pointer":"")}var nn=Mae(e,t,Fe);if(!a||i||!nn&&!u.hoveranywhere)return;Fe&&nn&&e.emit("plotly_unhover",{event:t,points:Fe}),Bi(e._hoverdata);function Bi(ir){e.emit("plotly_hover",{event:t,points:ir,xaxes:U,yaxes:W,xvals:ke,yvals:Se})}}function eP(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var bae=/([\s\S]*)<\/extra>/;function tP(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,s=t.rotateLabels,l=t.bgColor,u=t.container,h=t.outerContainer,v=t.commonLabelOpts||{};if(e.length===0)return[[]];var m=t.fontFamily||Fd.HOVERFONT,_=t.fontSize||Fd.HOVERFONTSIZE,T=t.fontWeight||i.font.weight,M=t.fontStyle||i.font.style,C=t.fontVariant||i.font.variant,E=t.fontTextcase||i.font.textcase,L=t.fontLineposition||i.font.lineposition,I=t.fontShadow||i.font.shadow,O=e[0],q=O.xa,z=O.ya,N=a.charAt(0),H=N+"Label",U=O[H];if(U===void 0&&q.type==="multicategory")for(var W=0;Wi.width-Ue&&(wt=i.width-Ue),vt.attr("d","M"+(mr-wt)+",0L"+(mr-wt+ji)+","+Fe+ji+"H"+Ue+"v"+Fe+(Ra*2+yr.height)+"H"+-Ue+"V"+Fe+ji+"H"+(mr-wt-ji)+"Z"),mr=wt,me.minX=mr-Ue,me.maxX=mr+Ue,q.side==="top"?(me.minY=Ct-(Ra*2+yr.height),me.maxY=Ct-Ra):(me.minY=Ct+Ra,me.maxY=Ct+(Ra*2+yr.height))}else{var Tt,vr,Mr;z.side==="right"?(Tt="start",vr=1,Mr="",mr=q._offset+q._length):(Tt="end",vr=-1,Mr="-",mr=q._offset),Ct=z._offset+(O.y0+O.y1)/2,pt.attr("text-anchor",Tt),vt.attr("d","M0,0L"+Mr+ji+","+ji+"V"+(Ra+yr.height/2)+"h"+Mr+(Ra*2+yr.width)+"V-"+(Ra+yr.height/2)+"H"+Mr+ji+"V-"+ji+"Z"),me.minY=Ct-(Ra+yr.height/2),me.maxY=Ct+(Ra+yr.height/2),z.side==="right"?(me.minX=mr+ji,me.maxX=mr+ji+(Ra*2+yr.width)):(me.minX=mr-ji-(Ra*2+yr.width),me.maxX=mr-ji);var Tr=yr.height/2,Gr=ee-yr.top-Tr,pa="clip"+i._uid+"commonlabel"+z._id,Aa;if(mrvt.hoverinfo!=="none");if(Lt.length===0)return[];var Ce=i.hoverlabel,Me=Ce.font,We=Lt[0],it=((a==="x unified"?We.xa:We.ya).unifiedhovertitle||{}).text,nt=it?cn.hovertemplateString({data:a==="x unified"?[{xa:We.xa,x:We.xVal}]:[{ya:We.ya,y:We.yVal}],fallback:We.trace.hovertemplatefallback,locale:i._d3locale,template:it}):U,gt={showlegend:!0,legend:{title:{text:nt,font:Me},font:Me,bgcolor:Ce.bgcolor,bordercolor:Ce.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},Xe={font:Me};dae(gt,Xe,r._fullData);var kt=Xe.legend;kt.entries=[];for(var lt=0;lt=0?ut=At:Ut+at=0?ut=Ut:Wt+at=0?sr=qt:Dt+Je=0?sr=Dt:Be+Je=0,(Lt.idealAlign==="top"||!hi)&&Hi?(Mr-=Gr/2,Lt.anchor="end"):hi?(Mr+=Gr/2,Lt.anchor="start"):Lt.anchor="middle",Lt.crossPos=Mr;else{if(Lt.pos=Mr,hi=vr+Tr/2+bi<=ie,Hi=vr-Tr/2-bi>=0,(Lt.idealAlign==="left"||!hi)&&Hi)vr-=Tr/2,Lt.anchor="end";else if(hi)vr+=Tr/2,Lt.anchor="start";else{Lt.anchor="middle";var Ii=bi/2,_n=vr+Ii-ie,an=vr-Ii;_n>0&&(vr-=_n),an<0&&(vr+=-an)}Lt.crossPos=vr}Ct.attr("text-anchor",Lt.anchor),Ue&&Fe.attr("text-anchor",Lt.anchor),vt.attr("transform",w4(vr,Mr)+(s?fae($D):""))}),{hoverLabels:Pr,commonLabelBoundingBox:me}}function XD(e,t,r,i,a,s){var _,T;var l="",u="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=cn.templateString(e.name,e.trace._meta)),l=KD(e.name,e.nameLength));var h=r.charAt(0),v=h==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(u+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(u+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(u+=(u?"z: ":"")+e.zLabel)):t&&e[h+"Label"]===a?u=e[v+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(u=e.yLabel):e.yLabel===void 0?u=e.xLabel:u="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(u+=(u?"
":"")+e.text),e.extraText!==void 0&&(u+=(u?"
":"")+e.extraText),s&&u===""&&!e.hovertemplate&&(l===""&&s.remove(),u=l),(T=(_=e.trace)==null?void 0:_.hoverlabel)!=null&&T.split&&(e.hovertemplate="");let{hovertemplate:m=!1}=e;if(m){let M=e.hovertemplateLabels||e;e[h+"Label"]!==a&&(M[h+"other"]=M[h+"Val"],M[h+"otherLabel"]=M[h+"Label"]),u=cn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:M,locale:i._d3locale,template:m}),u=u.replace(bae,(C,E)=>(l=KD(E,e.nameLength),""))}return[u,l]}function wae(e,t,r,i){var a=t?"xa":"ya",s=t?"ya":"xa",l=0,u=1,h=e.size(),v=new Array(h),m=0,_=i.minX,T=i.maxX,M=i.minY,C=i.maxY,E=function(ke){return ke*r._invScaleX},L=function(ke){return ke*r._invScaleY};e.each(function(ke){var Se=ke[a],Ae=ke[s],me=Se._id.charAt(0)==="x",Ce=Se.range;m===0&&Ce&&Ce[0]>Ce[1]!==me&&(u=-1);var Me=0,We=me?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var it=rP(ke,t),nt=ke.anchor,gt=nt==="end"?-1:1,Xe,kt;if(nt==="middle")Xe=ke.crossPos+(me?L(it.y-ke.by/2):E(ke.bx/2+ke.tx2width/2)),kt=Xe+(me?L(ke.by):E(ke.bx));else if(me)Xe=ke.crossPos+L(ji+it.y)-L(ke.by/2-ji),kt=Xe+L(ke.by);else{var lt=E(gt*ji+it.x),mt=lt+E(gt*ke.bx);Xe=ke.crossPos+Math.min(lt,mt),kt=ke.crossPos+Math.max(lt,mt)}me?M!==void 0&&C!==void 0&&Math.min(kt,C)-Math.max(Xe,M)>1&&(Ae.side==="left"?(Me=Ae._mainLinePosition,We=r.width):We=Ae._mainLinePosition):_!==void 0&&T!==void 0&&Math.min(kt,T)-Math.max(Xe,_)>1&&(Ae.side==="top"?(Me=Ae._mainLinePosition,We=r.height):We=Ae._mainLinePosition)}v[m++]=[{datum:ke,traceIndex:ke.trace.index,dp:0,pos:ke.pos,posref:ke.posref,size:ke.by*(me?mae:1)/2,pmin:Me,pmax:We}]}),v.sort(function(ke,Se){return ke[0].posref-Se[0].posref||u*(Se[0].traceIndex-ke[0].traceIndex)});var I,O,q,z,N,H,U;function W(ke){var Se=ke[0],Ae=ke[ke.length-1];if(O=Se.pmin-Se.pos-Se.dp+Se.size,q=Ae.pos+Ae.dp+Ae.size-Se.pmax,O>.01){for(N=ke.length-1;N>=0;N--)ke[N].dp+=O;I=!1}if(!(q<.01)){if(O<-.01){for(N=ke.length-1;N>=0;N--)ke[N].dp-=q;I=!1}if(I){var me=0;for(z=0;zSe.pmax&&me++;for(z=ke.length-1;z>=0&&!(me<=0);z--)H=ke[z],H.pos>Se.pmax-1&&(H.del=!0,me--);for(z=0;z=0;N--)ke[N].dp-=q;for(z=ke.length-1;z>=0&&!(me<=0);z--)H=ke[z],H.pos+H.dp+H.size>Se.pmax&&(H.del=!0,me--)}}}for(;!I&&l<=h;){for(l++,I=!0,z=0;z.01){for(N=ee.length-1;N>=0;N--)ee[N].dp+=O;for(J.push.apply(J,ee),v.splice(z+1,1),U=0,N=J.length-1;N>=0;N--)U+=J[N].dp;for(q=U/J.length,N=J.length-1;N>=0;N--)J[N].dp-=q;I=!1}else z++}v.forEach(W)}for(z=v.length-1;z>=0;z--){var he=v[z];for(N=he.length-1;N>=0;N--){var fe=he[N],Te=fe.datum;Te.offset=fe.dp,Te.del=fe.del}}}function rP(e,t){var r=0,i=e.offset;return t&&(i*=-gae,r=e.offset*yae),{x:r,y:i}}function Tae(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ji+Ra),i=r+t*(e.txwidth+Ra),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+Ra),{alignShift:t,textShiftX:r,text2ShiftX:i}}function aP(e,t,r,i){var a=function(l){return l*r},s=function(l){return l*i};e.each(function(l){var u=Rd.select(this);if(l.del)return u.remove();var h=u.select("text.nums"),v=l.anchor,m=v==="end"?-1:1,_=Tae(l),T=rP(l,t),M=T.x,C=T.y,E=v==="middle",L="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,I;E?I="M-"+a(l.bx/2+l.tx2width/2)+","+s(C-l.by/2)+"h"+a(l.bx)+"v"+s(l.by)+"h-"+a(l.bx)+"Z":L?I="M0,0L"+a(m*ji+M)+","+s(ji+C)+"v"+s(l.by/2-ji)+"h"+a(m*l.bx)+"v-"+s(l.by)+"H"+a(m*ji+M)+"V"+s(C-ji)+"Z":I="M"+a(m*ji+M)+","+s(C-l.by/2)+"h"+a(m*l.bx)+"v"+s(l.by)+"h"+a(-m*l.bx)+"Z",u.select("path").attr("d",I);var O=M+_.textShiftX,q=C+l.ty0-l.by/2+Ra,z=l.textAlign||"auto";z!=="auto"&&(z==="left"&&v!=="start"?(h.attr("text-anchor","start"),O=E?-l.bx/2-l.tx2width/2+Ra:-l.bx-Ra):z==="right"&&v!=="end"&&(h.attr("text-anchor","end"),O=E?l.bx/2-l.tx2width/2-Ra:l.bx+Ra)),h.call(Kl.positionText,a(O),s(q)),l.tx2width&&(u.select("text.name").call(Kl.positionText,a(_.text2ShiftX+_.alignShift*Ra+M),s(C+l.ty0-l.by/2+Ra)),u.select("rect").call(qf.setRect,a(_.text2ShiftX+(_.alignShift-1)*l.tx2width/2+M),s(C-l.by/2-1),a(l.tx2width),s(l.by+2)))})}function Aae(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],s=e.cd[r]||{};function l(T){return T||Ec(T)&&T===0}var u=Array.isArray(r)?function(T,M){var C=cn.castOption(a,r,T);return l(C)?C:cn.extractOption({},i,"",M)}:function(T,M){return cn.extractOption(s,i,T,M)};function h(T,M,C){var E=u(M,C);l(E)&&(e[T]=E)}if(h("hoverinfo","hi","hoverinfo"),h("bgcolor","hbg","hoverlabel.bgcolor"),h("borderColor","hbc","hoverlabel.bordercolor"),h("fontFamily","htf","hoverlabel.font.family"),h("fontSize","hts","hoverlabel.font.size"),h("fontColor","htc","hoverlabel.font.color"),h("fontWeight","htw","hoverlabel.font.weight"),h("fontStyle","hty","hoverlabel.font.style"),h("fontVariant","htv","hoverlabel.font.variant"),h("nameLength","hnl","hoverlabel.namelength"),h("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=cn.constrain(e.x0,0,e.xa._length),e.x1=cn.constrain(e.x1,0,e.xa._length),e.y0=cn.constrain(e.y0,0,e.ya._length),e.y1=cn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Nf.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Nf.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var v=Nf.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+v+" / -"+Nf.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+v,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var m=Nf.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+m+" / -"+Nf.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+m,t==="y"&&(e.distance+=1)}var _=e.hoverinfo||e.trace.hoverinfo;return _&&_!=="all"&&(_=Array.isArray(_)?_:_.split("+"),_.indexOf("x")===-1&&(e.xLabel=void 0),_.indexOf("y")===-1&&(e.yLabel=void 0),_.indexOf("z")===-1&&(e.zLabel=void 0),_.indexOf("text")===-1&&(e.text=void 0),_.indexOf("name")===-1&&(e.name=void 0)),e}function jD(e,t,r){var i=r.container,a=r.fullLayout,s=a._size,l=r.event,u=!!t.hLinePoint,h=!!t.vLinePoint,v,m;if(i.selectAll(".spikeline").remove(),!!(h||u)){var _=io.combine(a.plot_bgcolor,a.paper_bgcolor);if(u){var T=t.hLinePoint,M,C;v=T&&T.xa,m=T&&T.ya;var E=m.spikesnap;E==="cursor"?(M=l.pointerX,C=l.pointerY):(M=v._offset+T.x,C=m._offset+T.y);var L=ZD.readability(T.color,_)<1.5?io.contrast(_):T.color,I=m.spikemode,O=m.spikethickness,q=m.spikecolor||L,z=Nf.getPxPosition(e,m),N,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(N=z,H=M),I.indexOf("across")!==-1){var U=m._counterDomainMin,W=m._counterDomainMax;m.anchor==="free"&&(U=Math.min(U,m.position),W=Math.max(W,m.position)),N=s.l+U*s.w,H=s.l+W*s.w}i.insert("line",":first-child").attr({x1:N,x2:H,y1:C,y2:C,"stroke-width":O,stroke:q,"stroke-dasharray":qf.dashStyle(m.spikedash,O)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:N,x2:H,y1:C,y2:C,"stroke-width":O+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:z+(m.side!=="right"?O:-O),cy:C,r:O,fill:q}).classed("spikeline",!0)}if(h){var J=t.vLinePoint,ee,ie;v=J&&J.xa,m=J&&J.ya;var oe=v.spikesnap;oe==="cursor"?(ee=l.pointerX,ie=l.pointerY):(ee=v._offset+J.x,ie=m._offset+J.y);var he=ZD.readability(J.color,_)<1.5?io.contrast(_):J.color,fe=v.spikemode,Te=v.spikethickness,ke=v.spikecolor||he,Se=Nf.getPxPosition(e,v),Ae,me;if(fe.indexOf("toaxis")!==-1||fe.indexOf("across")!==-1){if(fe.indexOf("toaxis")!==-1&&(Ae=Se,me=ie),fe.indexOf("across")!==-1){var Ce=v._counterDomainMin,Me=v._counterDomainMax;v.anchor==="free"&&(Ce=Math.min(Ce,v.position),Me=Math.max(Me,v.position)),Ae=s.t+(1-Me)*s.h,me=s.t+(1-Ce)*s.h}i.insert("line",":first-child").attr({x1:ee,x2:ee,y1:Ae,y2:me,"stroke-width":Te,stroke:ke,"stroke-dasharray":qf.dashStyle(v.spikedash,Te)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:ee,x2:ee,y1:Ae,y2:me,"stroke-width":Te+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}fe.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:ee,cy:Se-(v.side!=="top"?Te:-Te),r:Te,fill:ke}).classed("spikeline",!0)}}}function Mae(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var a=r[i],s=e._hoverdata[i];if(a.curveNumber!==s.curveNumber||String(a.pointNumber)!==String(s.pointNumber)||String(a.pointNumbers)!==String(s.pointNumbers)||a.binNumber!==s.binNumber)return!0}return!1}function JD(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function KD(e,t){return Kl.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Sae(e,t){for(var r=t.charAt(0),i=[],a=[],s=[],l=0;le.offsetTop+e.clientTop,nP=e=>e.offsetLeft+e.clientLeft;function rm(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),a=i.left,s=i.top,l=a+i.width,u=s+i.height,h=cn.apply3DTransform(r._invTransform)(a,s),v=cn.apply3DTransform(r._invTransform)(l,u),m=h[0],_=h[1],T=v[0],M=v[1];return{x:m,y:_,width:T-m,height:M-_,top:Math.min(_,M),left:Math.min(m,T),right:Math.max(m,T),bottom:Math.max(_,M)}}});var V2=pe((p_e,oP)=>{"use strict";var kae=Ot(),Cae=Ba(),Eae=Cc().isUnifiedHover;oP.exports=function(t,r,i,a){a=a||{};var s=r.legend;function l(u){a.font[u]||(a.font[u]=s?r.legend.font[u]:r.font[u])}r&&Eae(r.hovermode)&&(a.font||(a.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(a.bgcolor||(a.bgcolor=Cae.combine(r.legend.bgcolor,r.paper_bgcolor)),a.bordercolor||(a.bordercolor=r.legend.bordercolor)):a.bgcolor||(a.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",a.bgcolor),i("hoverlabel.bordercolor",a.bordercolor),i("hoverlabel.namelength",a.namelength),i("hoverlabel.showarrow",a.showarrow),kae.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var lP=pe((m_e,sP)=>{"use strict";var Lae=Ot(),Dae=V2(),Pae=w0();sP.exports=function(t,r){function i(a,s){return Lae.coerce(t,r,Pae,a,s)}Dae(t,r,i)}});var cP=pe((y_e,fP)=>{"use strict";var uP=Ot(),zae=v_(),Iae=V2();fP.exports=function(t,r,i,a){function s(u,h){return uP.coerce(t,r,zae,u,h)}var l=uP.extendFlat({},a.hoverlabel);r.hovertemplate&&(l.namelength=-1),Iae(t,r,s,l)}});var S4=pe((g_e,hP)=>{"use strict";var Rae=Ot(),Fae=w0();hP.exports=function(t,r){function i(a,s){return r[a]!==void 0?r[a]:Rae.coerce(t,r,Fae,a,s)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var pP=pe((__e,dP)=>{"use strict";var vP=Ot(),qae=w0(),Nae=S4(),Bae=V2();dP.exports=function(t,r){function i(m,_){return vP.coerce(t,r,qae,m,_)}var a=Nae(t,r);a&&(i("hoverdistance"),i("spikedistance"),a.indexOf("unified")!==-1&&i("hoversort"));var s=i("dragmode");s==="select"&&i("selectdirection");var l=r._has("mapbox"),u=r._has("map"),h=r._has("geo"),v=r._basePlotModules.length;r.dragmode==="zoom"&&((l||u||h)&&v===1||(l||u)&&h&&v===2)&&(r.dragmode="pan"),Bae(t,r,i),vP.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var gP=pe((x_e,yP)=>{"use strict";var k4=Ot(),mP=la();yP.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(v){return function(m){return k4.coerceHoverinfo({hoverinfo:m},{_module:v._module},i)}}for(var s=0;s{"use strict";var Uae=la(),Vae=M4().hover;_P.exports=function(t,r,i){var a=Uae.getComponentMethod("annotations","onClick")(t,t._hoverdata),s=t._fullLayout;i!==void 0&&Vae(t,r,i,!0);function l(){var h,v,m,_;var u={points:t._hoverdata,event:r};(h=u.xaxes)!=null||(u.xaxes=t._hoverXAxes),(v=u.yaxes)!=null||(u.yaxes=t._hoverYAxes),(m=u.xvals)!=null||(u.xvals=t._hoverXVals),(_=u.yvals)!=null||(u.yvals=t._hoverYVals),t.emit("plotly_click",u)}(t._hoverdata||s.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),a&&a.then?a.then(l):l(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Uu=pe((w_e,TP)=>{"use strict";var Hae=Xa(),H2=Ot(),Gae=jl(),mg=Cc(),bP=w0(),wP=M4();TP.exports={moduleType:"component",name:"fx",constants:Ry(),schema:{layout:bP},attributes:v_(),layoutAttributes:bP,supplyLayoutGlobalDefaults:lP(),supplyDefaults:cP(),supplyLayoutDefaults:pP(),calc:gP(),getDistanceFunction:mg.getDistanceFunction,getClosest:mg.getClosest,inbox:mg.inbox,quadrature:mg.quadrature,appendArrayPointValue:mg.appendArrayPointValue,castHoverOption:Yae,castHoverinfo:Wae,hover:wP.hover,unhover:Gae.unhover,loneHover:wP.loneHover,loneUnhover:Zae,click:xP()};function Zae(e){var t=H2.isD3Selection(e)?e:Hae.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Yae(e,t,r){return H2.castOption(e,t,"hoverlabel."+r)}function Wae(e,t,r){function i(a){return H2.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return H2.castOption(e,r,"hoverinfo",i)}});var qd=pe(Lc=>{"use strict";Lc.selectMode=function(e){return e==="lasso"||e==="select"};Lc.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Lc.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Lc.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Lc.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Lc.selectingOrDrawing=function(e){return Lc.freeMode(e)||Lc.rectMode(e)}});var G2=pe((A_e,AP)=>{"use strict";AP.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var Z2=pe((M_e,MP)=>{"use strict";MP.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var W2=pe((S_e,SP)=>{"use strict";var Y2=32;SP.exports={CIRCLE_SIDES:Y2,i000:0,i090:Y2/4,i180:Y2/2,i270:Y2/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var X2=pe((k_e,CP)=>{"use strict";var Xae=Ot().strTranslate;function kP(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function jae(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function Jae(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return kP(e,r[t])}}function Kae(e){return Xae(e.xaxis._offset,e.yaxis._offset)}CP.exports={p2r:kP,r2p:jae,axValue:Jae,getTransform:Kae}});var jh=pe(Dc=>{"use strict";var Qae=v5(),DP=W2(),im=DP.CIRCLE_SIDES,C4=DP.SQRT2,PP=X2(),EP=PP.p2r,LP=PP.r2p,$ae=[0,3,4,5,6,1,2],eie=[0,3,4,1,2];Dc.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&h{"use strict";var zP=jn(),NP=qd(),tie=NP.drawMode,rie=NP.openMode,nm=W2(),IP=nm.i000,RP=nm.i090,FP=nm.i180,qP=nm.i270,aie=nm.cos45,iie=nm.sin45,BP=X2(),J2=BP.p2r,Jh=BP.r2p,nie=Bh(),oie=nie.clearOutline,K2=jh(),sie=K2.readPaths,lie=K2.writePaths,uie=K2.ellipseOver,fie=K2.fixDatesForPaths;function cie(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,a=t.isActiveShape,s=t.dragmode,l=(i.layout||{}).shapes||[];if(!tie(s)&&a!==void 0){var u=i._fullLayout._activeShapeIndex;if(u{"use strict";var hie=qd(),vie=hie.selectMode,die=Bh(),pie=die.clearOutline,E4=jh(),mie=E4.readPaths,yie=E4.writePaths,gie=E4.fixDatesForPaths;VP.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var a=i.getAttribute("d"),s=r.gd,l=s._fullLayout.newselection,u=r.plotinfo,h=u.xaxis,v=u.yaxis,m=r.isActiveSelection,_=r.dragmode,T=(s.layout||{}).selections||[];if(!vie(_)&&m!==void 0){var M=s._fullLayout._activeSelectionIndex;if(M{"use strict";HP.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Qh=pe(vo=>{"use strict";var Of=gg(),GP=Ot(),Kh=Xi();vo.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};vo.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};vo.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};vo.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};vo.extractPathCoords=function(e,t,r){var i=[],a=e.match(Of.segmentRE);return a.forEach(function(s){var l=t[s.charAt(0)].drawn;if(l!==void 0){var u=s.slice(1).match(Of.paramRE);if(!(!u||u.length{let u=l.charAt(0),h=a[u].drawn!==void 0;return s+(h?1:0)},0)};vo.getDataToPixel=function(e,t,r,i,a){var s=e._fullLayout._size,l;if(t)if(a==="domain")l=function(h){return t._length*(i?1-h:h)+t._offset};else{var u=vo.shapePositionToRange(t);l=function(h){var v=Bf(t,r);return t._offset+t.r2p(u(h,!0))+v},t.type==="date"&&(l=vo.decodeDate(l))}else i?l=function(h){return s.t+s.h*(1-h)}:l=function(h){return s.l+s.w*h};return l};vo.getPixelToData=function(e,t,r,i){var a=e._fullLayout._size,s;if(t)if(i==="domain")s=function(u){var h=(u-t._offset)/t._length;return r?1-h:h};else{var l=vo.rangeToShapePosition(t);s=function(u){return l(t.p2r(u-t._offset))}}else r?s=function(u){return 1-(u-a.t)/a.h}:s=function(u){return(u-a.l)/a.w};return s};vo.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};vo.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},i=e._fullLayout._plots[r.xref+r.yref],a=!!i;return a?i._hadPlotinfo=!0:(i={},r.xref&&r.xref!=="paper"&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(i.yaxis=e._fullLayout[r.yref+"axis"])),i.xsizemode=r.xsizemode,i.ysizemode=r.ysizemode,i.xanchor=r.xanchor,i.yanchor=r.yanchor,{options:r,plotinfo:i}};vo.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},i=e._fullLayout._plots[r.xref+r.yref],a=!!i;return a?i._hadPlotinfo=!0:(i={},r.xref&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(i.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:i}};vo.getPathString=function(e,t){let r=t.type,i=Kh.getRefType(t.xref),a=Kh.getRefType(t.yref),s=e._fullLayout._size;var l,u,h,v,m,_,T,M,C,E,L,I;function O(ee,ie,oe,he){var fe;if(ee)if(ie==="domain")he?fe=function(Te){return ee._offset+ee._length*(1-Te)}:fe=function(Te){return ee._offset+ee._length*Te};else{let Te=vo.shapePositionToRange(ee);fe=function(ke){return ee._offset+ee.r2p(Te(ke,!0))},oe==="path"&&ee.type==="date"&&(fe=vo.decodeDate(fe))}else he?fe=function(Te){return s.t+s.h*(1-Te)}:fe=function(Te){return s.l+s.w*Te};return fe}if(i==="array"?(T=[],l=t.xref.map(function(ee){return Kh.getFromId(e,ee)}),T=t.xref.map(function(ee,ie){return O(l[ie],Kh.getRefType(ee),r,!1)})):(l=Kh.getFromId(e,t.xref),T=O(l,i,r,!1)),a==="array"?(M=[],u=t.yref.map(function(ee){return Kh.getFromId(e,ee)}),M=t.yref.map(function(ee,ie){return O(u[ie],Kh.getRefType(ee),r,!0)})):(u=Kh.getFromId(e,t.yref),M=O(u,a,r,!0)),r==="path")return _ie(t,T,M);if(i==="array")h=Bf(l[0],t.x0shift),v=Bf(l[1],t.x1shift),C=T[0](t.x0)+h,E=T[1](t.x1)+v;else if(h=Bf(l,t.x0shift),v=Bf(l,t.x1shift),t.xsizemode==="pixel"){let ee=T(t.xanchor);C=ee+t.x0+h,E=ee+t.x1+v}else C=T(t.x0)+h,E=T(t.x1)+v;if(a==="array")m=Bf(u[0],t.y0shift),_=Bf(u[1],t.y1shift),L=M[0](t.y0)+m,I=M[1](t.y1)+_;else if(m=Bf(u,t.y0shift),_=Bf(u,t.y1shift),t.ysizemode==="pixel"){let ee=M(t.yanchor);L=ee-t.y0+m,I=ee-t.y1+_}else L=M(t.y0)+m,I=M(t.y1)+_;if(r==="line")return"M"+C+","+L+"L"+E+","+I;if(r==="rect")return"M"+C+","+L+"H"+E+"V"+I+"H"+C+"Z";var q=(C+E)/2,z=(L+I)/2,N=Math.abs(q-C),H=Math.abs(z-L),U="A"+N+","+H,W=q+N+","+z,J=q+","+(z-H);return"M"+W+U+" 0 1,1 "+J+U+" 0 0,1 "+W+"Z"};function _ie(e,t,r){let i=e.path,a=e.xsizemode,s=e.ysizemode,l=e.xanchor,u=e.yanchor,h=Array.isArray(e.xref),v=Array.isArray(e.yref);var m=0,_=0;return i.replace(Of.segmentRE,function(T){var M=0,C=T.charAt(0),E=Of.paramIsX[C],L=Of.paramIsY[C],I=Of.numParams[C];let O=E.drawn!==void 0,q=L.drawn!==void 0,z=h?t[m]:t,N=v?r[_]:r;var H=T.slice(1).replace(Of.paramRE,function(U){return E[M]?a==="pixel"?U=z(l)+Number(U):U=z(U):L[M]&&(s==="pixel"?U=N(u)-Number(U):U=N(U)),M++,M>I&&(U="X"),U});return M>I&&(H=H.replace(/[\s,]*X.*/,""),GP.log("Ignoring extra params in segment "+T)),O&&m++,q&&_++,C+H})}vo.getPixelShift=Bf;function Bf(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var D4=pe((z_e,WP)=>{"use strict";var xie=Ot(),Uf=Xi(),ZP=ro(),YP=_i(),bie=jh().readPaths,Nd=Qh(),wie=Nd.getPathString,_g=w_(),Tie=No().FROM_TL;WP.exports=function(t,r,i,a){if(a.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var s;if(i.label.texttemplate){var l={};if(i.type!=="path"){var u=Uf.getFromId(t,i.xref),h=Uf.getFromId(t,i.yref);let Me=Array.isArray(i.xref),We=Array.isArray(i.yref);for(var v in _g){var m=typeof _g[v]=="function",_=!Me||_g.simpleXVariables.includes(v),T=!We||_g.simpleYVariables.includes(v);if(m&&_&&T){var M=_g[v](i,u,h);M!==void 0&&(l[v]=M)}}}s=xie.texttemplateStringForShapes({data:[l],fallback:i.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:i.label.texttemplate})}else s=i.label.text;var C={"data-index":r},E=i.label.font,L={"data-notex":1},I=a.append("g").attr(C).classed("shape-label",!0),O=I.append("text").attr(L).classed("shape-label-text",!0).text(s),q,z,N,H;if(i.path){var U=wie(t,i),W=bie(U,t);q=1/0,N=1/0,z=-1/0,H=-1/0;for(var J=0;JNd.getDataToPixel(t,Oe,ye,!1,at)(De),de=(De,ye,Oe,at)=>Nd.getDataToPixel(t,Oe,ye,!0,at)(De);if(i.xsizemode==="pixel"){let De=ft(i.xanchor,void 0,it,kt),ye=Nd.getPixelShift(it,i.x0shift),Oe=Nd.getPixelShift(it,i.x1shift);q=De+i.x0+ye,z=De+i.x1+Oe}else q=ft(i.x0,i.x0shift,it,kt),z=ft(i.x1,i.x1shift,nt,lt);if(i.ysizemode==="pixel"){let De=de(i.yanchor,void 0,gt,mt),ye=Nd.getPixelShift(gt,i.y0shift),Oe=Nd.getPixelShift(gt,i.y1shift);N=De-i.y0+ye,H=De-i.y1+Oe}else N=de(i.y0,i.y0shift,gt,mt),H=de(i.y1,i.y1shift,Xe,Bt)}var Te=i.label.textangle;Te==="auto"&&(i.type==="line"?Te=Aie(q,N,z,H):Te=0),O.call(function(Me){return Me.call(YP.font,E).attr({}),ZP.convertToTspans(Me,t),Me});var ke=YP.bBox(O.node()),Se=Mie(q,N,z,H,i,Te,ke),Ae=Se.textx,me=Se.texty,Ce=Se.xanchor;O.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Ce],y:me,x:Ae,transform:"rotate("+Te+","+Ae+","+me+")"}).call(ZP.positionText,Ae,me)}};function Aie(e,t,r,i){var a,s;return s=Math.abs(r-e),r>=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,s)}function Mie(e,t,r,i,a,s,l){var u=a.label.textposition,h=a.label.textangle,v=a.label.padding,m=a.type,_=Math.PI/180*s,T=Math.sin(_),M=Math.cos(_),C=a.label.xanchor,E=a.label.yanchor,L,I,O,q;if(m==="line"){u==="start"?(L=e,I=t):u==="end"?(L=r,I=i):(L=(e+r)/2,I=(t+i)/2),C==="auto"&&(u==="start"?h==="auto"?r>e?C="left":re?C="right":re?C="right":re?C="left":r{"use strict";var Sie=Ot(),kie=Sie.strTranslate,XP=jl(),KP=qd(),Cie=KP.drawMode,QP=KP.selectMode,$P=la(),jP=Ba(),ex=W2(),Eie=ex.i000,Lie=ex.i090,Die=ex.i180,Pie=ex.i270,zie=Bh(),ez=zie.clearOutlineControllers,z4=jh(),$2=z4.pointsOnRectangle,P4=z4.pointsOnEllipse,Iie=z4.writePaths,Rie=Q2().newShapes,Fie=Q2().createShapeObj,qie=L4(),Nie=D4();tz.exports=function e(t,r,i,a){a||(a=0);var s=i.gd;function l(){e(t,r,i,a++),(P4(t[0])||i.hasText)&&u({redrawing:!0})}function u(Se){var Ae={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,Ae=Rie(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,Ae=qie(r,i),s._fullLayout._reselect=!0),Object.keys(Ae).length&&$P.call((Se||{}).redrawing?"relayout":"_guiRelayout",s,Ae)}var h=s._fullLayout,v=h._zoomlayer,m=i.dragmode,_=Cie(m),T=QP(m);(_||T)&&(s._fullLayout._outlining=!0),ez(s),r.attr("d",Iie(t));var M,C,E,L,I;if(!a&&(i.isActiveShape||i.isActiveSelection)){I=Bie([],t);var O=v.append("g").attr("class","outline-controllers");ee(O),ke()}if(_&&i.hasText){var q=v.select(".label-temp"),z=Fie(r,i,i.dragmode);Nie(s,"label-temp",z,q)}function N(Se){E=+Se.srcElement.getAttribute("data-i"),L=+Se.srcElement.getAttribute("data-j"),M[E][L].moveFn=H}function H(Se,Ae){if(t.length){var me=I[E][L][1],Ce=I[E][L][2],Me=t[E],We=Me.length;if($2(Me)){var it=Se,nt=Ae;if(i.isActiveSelection){var gt=JP(Me,L);gt[1]===Me[L][1]?nt=0:it=0}for(var Xe=0;Xe1&&!(Se.length===2&&Se[1][0]==="Z")&&(L===0&&(Se[0][0]="M"),t[E]=Se,l(),u())}}function J(Se,Ae){if(Se===2){E=+Ae.srcElement.getAttribute("data-i"),L=+Ae.srcElement.getAttribute("data-j");var me=t[E];!$2(me)&&!P4(me)&&W()}}function ee(Se){M=[];for(var Ae=0;Ae{"use strict";var Uie=Xa(),sz=la(),R4=Ot(),Bd=Xi(),Vie=jh().readPaths,Hie=tx(),ax=D4(),lz=Bh().clearOutlineControllers,I4=Ba(),ix=_i(),Gie=Pi().arrayEditor,rz=jl(),az=Uu(),iz=Wh(),Od=gg(),Vs=Qh(),F4=Vs.getPathString;cz.exports={draw:q4,drawOne:uz,eraseActiveShape:jie,drawLabel:ax};function q4(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=a(s);l&&az.hover(e,l,r.id)}}),i.addEventListener("click",s=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=a(s);l&&az.click(e,l,r.id)}})}function fz(e,t,r){let i=r.xref,a=r.yref;if(Array.isArray(i)||Array.isArray(a)){let s="clip"+t._fullLayout._uid+"shape"+r._index,l=Yie(t,i,a);R4.ensureSingleById(t._fullLayout._clips,"clipPath",s,function(u){u.append("rect")}).select("rect").attr(l),ix.setClipUrl(e,s,t)}else{let s=(i+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");ix.setClipUrl(e,s?"clip"+t._fullLayout._uid+s:null,t)}}function Yie(e,t,r){let i=e._fullLayout._size;function a(u,h){let v=(Array.isArray(u)?u:[u]).map(T=>Bd.getFromId(e,T)).filter(Boolean);if(!v.length)return h?[i.t,i.t+i.h]:[i.l,i.l+i.w];let m=v.map(function(T){return T._offset}),_=v.map(function(T){return T._offset+T._length});return[Math.min(...m),Math.max(..._)]}let s=a(t,!1),l=a(r,!0);return{x:s[0],y:l[0],width:s[1]-s[0],height:l[1]-l[0]}}function Wie(e,t,r,i,a,s){var l=10,u=10,h=r.xsizemode==="pixel",v=r.ysizemode==="pixel",m=r.type==="line",_=r.type==="path",T=s.modifyItem,M,C,E,L,I,O,q,z,N,H,U,W,J,ee,ie,oe=Uie.select(t.node().parentNode),he=Bd.getFromId(e,r.xref),fe=Bd.getRefType(r.xref),Te=Bd.getFromId(e,r.yref),ke=Bd.getRefType(r.yref),Se=r.x0shift,Ae=r.x1shift,me=r.y0shift,Ce=r.y1shift,Me=function(xt,bt){var Vt=Vs.getDataToPixel(e,he,bt,!1,fe);return Vt(xt)},We=function(xt,bt){var Vt=Vs.getDataToPixel(e,Te,bt,!0,ke);return Vt(xt)},it=Vs.getPixelToData(e,he,!1,fe),nt=Vs.getPixelToData(e,Te,!0,ke),gt=lt(),Xe={element:gt.node(),gd:e,prepFn:ft,doneFn:de,clickFn:De},kt;rz.init(Xe),gt.node().onmousemove=Bt;function lt(){return m?mt():t}function mt(){var xt=10,bt=Math.max(r.line.width,xt),Vt=a.append("g").attr("data-index",i).attr("drag-helper",!0);Vt.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":bt,"stroke-opacity":"0"});var qt={"fill-opacity":"0"},Dt=Math.max(bt/2,xt);return Vt.append("circle").attr({"data-line-point":"start-point",cx:h?Me(r.xanchor)+r.x0:Me(r.x0,Se),cy:v?We(r.yanchor)-r.y0:We(r.y0,me),r:Dt}).style(qt).classed("cursor-grab",!0),Vt.append("circle").attr({"data-line-point":"end-point",cx:h?Me(r.xanchor)+r.x1:Me(r.x1,Ae),cy:v?We(r.yanchor)-r.y1:We(r.y1,Ce),r:Dt}).style(qt).classed("cursor-grab",!0),Vt}function Bt(xt){if(rx(e)){kt=null;return}if(m)xt.target.tagName==="path"?kt="move":kt=xt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var bt=Xe.element.getBoundingClientRect(),Vt=bt.right-bt.left,qt=bt.bottom-bt.top,Dt=xt.clientX-bt.left,At=xt.clientY-bt.top,Ut=!_&&Vt>l&&qt>u&&!xt.shiftKey?rz.getCursor(Dt/Vt,1-At/qt):"move";iz(t,Ut),kt=Ut.split("-")[0]}}function ft(xt){rx(e)||(h&&(I=Me(r.xanchor)),v&&(O=We(r.yanchor)),r.type==="path"?ie=r.path:(M=h?r.x0:Me(r.x0),C=v?r.y0:We(r.y0),E=h?r.x1:Me(r.x1),L=v?r.y1:We(r.y1)),ML?(q=C,U="y0",z=L,W="y1"):(q=L,U="y1",z=C,W="y0"),Bt(xt),at(a,r),Pt(t,r,e),Xe.moveFn=kt==="move"?ye:Oe,Xe.altKey=xt.altKey)}function de(){rx(e)||(iz(t),Je(a),fz(t,e,r),sz.call("_guiRelayout",e,s.getUpdateObj()))}function De(){rx(e)||Je(a)}function ye(xt,bt){if(r.type==="path"){var Vt=function(At){return At},qt=Vt,Dt=Vt;h?T("xanchor",r.xanchor=it(I+xt)):(qt=function(Ut){return it(Me(Ut)+xt)},he&&he.type==="date"&&(qt=Vs.encodeDate(qt))),v?T("yanchor",r.yanchor=nt(O+bt)):(Dt=function(Ut){return nt(We(Ut)+bt)},Te&&Te.type==="date"&&(Dt=Vs.encodeDate(Dt))),T("path",r.path=nz(ie,qt,Dt))}else h?T("xanchor",r.xanchor=it(I+xt)):(T("x0",r.x0=it(M+xt)),T("x1",r.x1=it(E+xt))),v?T("yanchor",r.yanchor=nt(O+bt)):(T("y0",r.y0=nt(C+bt)),T("y1",r.y1=nt(L+bt)));t.attr("d",F4(e,r)),at(a,r),ax(e,i,r,oe)}function Oe(xt,bt){if(_){var Vt=function(Gt){return Gt},qt=Vt,Dt=Vt;h?T("xanchor",r.xanchor=it(I+xt)):(qt=function(hr){return it(Me(hr)+xt)},he&&he.type==="date"&&(qt=Vs.encodeDate(qt))),v?T("yanchor",r.yanchor=nt(O+bt)):(Dt=function(hr){return nt(We(hr)+bt)},Te&&Te.type==="date"&&(Dt=Vs.encodeDate(Dt))),T("path",r.path=nz(ie,qt,Dt))}else if(m){if(kt==="resize-over-start-point"){var At=M+xt,Ut=v?C-bt:C+bt;T("x0",r.x0=h?At:it(At)),T("y0",r.y0=v?Ut:nt(Ut))}else if(kt==="resize-over-end-point"){var Wt=E+xt,Be=v?L-bt:L+bt;T("x1",r.x1=h?Wt:it(Wt)),T("y1",r.y1=v?Be:nt(Be))}}else{var ut=function(Gt){return kt.indexOf(Gt)!==-1},sr=ut("n"),Pr=ut("s"),Lt=ut("w"),vt=ut("e"),pt=sr?q+bt:q,Nt=Pr?z+bt:z,er=Lt?N+xt:N,Ht=vt?H+xt:H;v&&(sr&&(pt=q-bt),Pr&&(Nt=z-bt)),(!v&&Nt-pt>u||v&&pt-Nt>u)&&(T(U,r[U]=v?pt:nt(pt)),T(W,r[W]=v?Nt:nt(Nt))),Ht-er>l&&(T(J,r[J]=h?er:it(er)),T(ee,r[ee]=h?Ht:it(Ht)))}t.attr("d",F4(e,r)),at(a,r),ax(e,i,r,oe)}function at(xt,bt){(h||v)&&Vt();function Vt(){var qt=bt.type!=="path",Dt=xt.selectAll(".visual-cue").data([0]),At=1;Dt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":At}).classed("visual-cue",!0);var Ut=Me(h?bt.xanchor:R4.midRange(qt?[bt.x0,bt.x1]:Vs.extractPathCoords(bt.path,Od.paramIsX))),Wt=We(v?bt.yanchor:R4.midRange(qt?[bt.y0,bt.y1]:Vs.extractPathCoords(bt.path,Od.paramIsY)));if(Ut=Vs.roundPositionForSharpStrokeRendering(Ut,At),Wt=Vs.roundPositionForSharpStrokeRendering(Wt,At),h&&v){var Be="M"+(Ut-1-At)+","+(Wt-1-At)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Dt.attr("d",Be)}else if(h){var ut="M"+(Ut-1-At)+","+(Wt-9-At)+"v18 h2 v-18 Z";Dt.attr("d",ut)}else{var sr="M"+(Ut-9-At)+","+(Wt-1-At)+"h18 v2 h-18 Z";Dt.attr("d",sr)}}}function Je(xt){xt.selectAll(".visual-cue").remove()}function Pt(xt,bt,Vt){var qt=bt.xref,Dt=bt.yref,At=Bd.getFromId(Vt,qt),Ut=Bd.getFromId(Vt,Dt),Wt="";qt!=="paper"&&!At.autorange&&(Wt+=qt),Dt!=="paper"&&!Ut.autorange&&(Wt+=Dt),ix.setClipUrl(xt,Wt?"clip"+Vt._fullLayout._uid+Wt:null,Vt)}}function nz(e,t,r){return e.replace(Od.segmentRE,function(i){var a=0,s=i.charAt(0),l=Od.paramIsX[s],u=Od.paramIsY[s],h=Od.numParams[s],v=i.slice(1).replace(Od.paramRE,function(m){return a>=h||(l[a]?m=t(m):u[a]&&(m=r(m)),a++),m});return s+v})}function Xie(e,t){if(nx(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){oz(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=oz,q4(e)}}}function oz(e){if(nx(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(lz(e),delete e._fullLayout._activeShapeIndex,q4(e))}}function jie(e){if(nx(e)){lz(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Ql=la(),hz=to(),vz=jn(),ja=Z2(),Jie=ox().eraseActiveShape,sx=Ot(),Pa=sx._,Ja=xz.exports={};Ja.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Pa(e,"Download plot as a PNG"):Pa(e,"Download plot")},icon:ja.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};sx.notifier(Pa(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),Ql.call("downloadImage",e,r).then(function(i){sx.notifier(Pa(e,"Snapshot succeeded")+" - "+i,"long",e)}).catch(function(){sx.notifier(Pa(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Ja.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Pa(e,"Edit in Chart Studio")},icon:ja.disk,click:function(e){hz.sendDataToCloud(e)}};Ja.editInChartStudio={name:"editInChartStudio",title:function(e){return Pa(e,"Edit in Chart Studio")},icon:ja.pencil,click:function(e){hz.sendDataToCloud(e)}};Ja.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Pa(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ja.zoombox,click:ns};Ja.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Pa(e,"Pan")},attr:"dragmode",val:"pan",icon:ja.pan,click:ns};Ja.select2d={name:"select2d",_cat:"select",title:function(e){return Pa(e,"Box Select")},attr:"dragmode",val:"select",icon:ja.selectbox,click:ns};Ja.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Pa(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ja.lasso,click:ns};Ja.drawclosedpath={name:"drawclosedpath",title:function(e){return Pa(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ja.drawclosedpath,click:ns};Ja.drawopenpath={name:"drawopenpath",title:function(e){return Pa(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ja.drawopenpath,click:ns};Ja.drawline={name:"drawline",title:function(e){return Pa(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ja.drawline,click:ns};Ja.drawrect={name:"drawrect",title:function(e){return Pa(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ja.drawrect,click:ns};Ja.drawcircle={name:"drawcircle",title:function(e){return Pa(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ja.drawcircle,click:ns};Ja.eraseshape={name:"eraseshape",title:function(e){return Pa(e,"Erase active shape")},icon:ja.eraseshape,click:Jie};Ja.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Pa(e,"Zoom in")},attr:"zoom",val:"in",icon:ja.zoom_plus,click:ns};Ja.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Pa(e,"Zoom out")},attr:"zoom",val:"out",icon:ja.zoom_minus,click:ns};Ja.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Pa(e,"Autoscale")},attr:"zoom",val:"auto",icon:ja.autoscale,click:ns};Ja.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Pa(e,"Reset axes")},attr:"zoom",val:"reset",icon:ja.home,click:ns};Ja.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Pa(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ja.tooltip_basic,gravity:"ne",click:ns};Ja.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Pa(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ja.tooltip_compare,gravity:"ne",click:ns};function ns(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,s=e._fullLayout,l={},u=vz.list(e,null,!0),h=s._cartesianSpikesEnabled,v,m;if(i==="zoom"){var _=a==="in"?.5:2,T=(1+_)/2,M=(1-_)/2,C,E;for(m=0;m{"use strict";var bz=O4(),$ie=Object.keys(bz),wz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Tz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(wz),sm=[],ene=function(e){if(Tz.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();sm.indexOf(t)===-1&&sm.push(t),sm.indexOf(r)===-1&&sm.push(r)}};$ie.forEach(function(e){ene(bz[e])});sm.sort();Az.exports={DRAW_MODES:wz,backButtons:Tz,foreButtons:sm}});var V4=pe((B_e,Mz)=>{"use strict";var N_e=U4();Mz.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var kz=pe((O_e,Sz)=>{"use strict";var tne=Ot(),xg=Ba(),rne=Pi(),ane=V4();Sz.exports=function(t,r){var i=t.modebar||{},a=rne.newContainer(r,"modebar");function s(u,h){return tne.coerce(i,a,ane,u,h)}s("orientation"),s("bgcolor",xg.addOpacity(r.paper_bgcolor,.5));var l=xg.contrast(xg.rgb(r.modebar.bgcolor));s("color",xg.addOpacity(l,.3)),s("activecolor",xg.addOpacity(l,.7)),s("uirevision",r.uirevision),s("add"),s("remove")}});var Dz=pe((U_e,Lz)=>{"use strict";var H4=Xa(),ine=La(),ux=Ot(),Cz=Z2(),nne=r_().version,one=new DOMParser;function Ez(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Vf=Ez.prototype;Vf.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,a="modebar-"+i._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var s=i.modebar,l="#"+a+" .modebar-group";document.querySelectorAll(l).forEach(function(_){_.style.backgroundColor=s.bgcolor});var u=!this.hasButtons(t),h=this.hasLogo!==r.displaylogo,v=this.locale!==r.locale;if(this.locale=r.locale,(u||h||v)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var m=this.getLogo();r.watermark&&(m.className=m.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(m,this.element.childNodes[0]):this.element.appendChild(m),this.hasLogo=!0}this.updateActiveButton(),ux.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+s.activecolor,"fill: "+s.color,this.element)};Vf.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(a){var s=a.name;if(!s)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(s)!==-1)throw new Error("button name '"+s+"' is taken");t.buttonsNames.push(s);var l=t.createButton(a);t.buttonElements.push(l),i.appendChild(l)}),t.element.appendChild(i)})};Vf.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Vf.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),r.setAttribute("data-val",a));var s=e.click;if(typeof s!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(u){e.click(t.graphInfo,u),t.updateActiveButton(u.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&H4.select(r).classed("active",!0);var l=e.icon;return typeof l=="function"?r.appendChild(l()):r.appendChild(this.createIcon(l||Cz.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Vf.createIcon=function(e){var t=ine(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var a=document.createElementNS(r,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(a)}if(e.svg){var s=one.parseFromString(e.svg,"application/xml");i=s.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};Vf.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var a=i.getAttribute("data-val")||!0,s=i.getAttribute("data-attr"),l=i.getAttribute("data-toggle")==="true",u=H4.select(i),h=function(_,T){var M=t.modebar,C=_.querySelector(".icon path");C&&(T||_.matches(":hover")?C.style.fill=M.activecolor:C.style.fill=M.color)};if(l){if(s===r){var v=!u.classed("active");u.classed("active",v),h(i,v)}}else{var m=s===null?s:ux.nestedProperty(t,s).get();u.classed("active",m===a),h(i,m===a)}})};Vf.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var une=jn(),Pz=rs(),G4=la(),fne=Cc().isUnifiedHover,cne=Dz(),fx=O4(),hne=U4().DRAW_MODES,vne=Ot().extendDeep;zz.exports=function(t){var r=t._fullLayout,i=t._context,a=r._modeBar;if(!i.displayModeBar&&!i.watermark){a&&(a.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var s=i.modeBarButtons,l;Array.isArray(s)&&s.length?l=_ne(s):!i.displayModeBar&&i.watermark?l=[]:l=dne(t),a?a.update(t,l):r._modeBar=cne(t,l)};function dne(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a(Ae,me){if(typeof me=="string"){if(me.toLowerCase()===Ae.toLowerCase())return!0}else{var Ce=me.name,Me=me._cat||me.name;if(Ce===Ae||Me===Ae.toLowerCase())return!0}return!1}var s=t.modebar.add;typeof s=="string"&&(s=[s]);var l=t.modebar.remove;typeof l=="string"&&(l=[l]);var u=i.modeBarButtonsToAdd.concat(s.filter(function(Ae){for(var me=0;me1?(ee=["toggleHover"],ie=["resetViews"]):_?(J=["zoomInGeo","zoomOutGeo"],ee=["hoverClosestGeo"],ie=["resetGeo"]):m?(ee=["hoverClosest3d"],ie=["resetCameraDefault3d","resetCameraLastSave3d"]):E?(J=["zoomInMapbox","zoomOutMapbox"],ee=["toggleHover"],ie=["resetViewMapbox"]):L?(J=["zoomInMap","zoomOutMap"],ee=["toggleHover"],ie=["resetViewMap"]):T?ee=["hoverClosestPie"]:q?(ee=["hoverClosestCartesian","hoverCompareCartesian"],ie=["resetViewSankey"]):ee=["toggleHover"],v&&ee.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(yne(r)||N)&&(ee=[]),v&&!z&&(J=["zoomIn2d","zoomOut2d","autoScale2d"],ie[0]!=="resetViews"&&(ie=["resetScale2d"])),m?oe=["zoom3d","pan3d","orbitRotation","tableRotation"]:v&&!z||C?oe=["zoom2d","pan2d"]:E||L||_?oe=["pan2d"]:I&&(oe=["zoom2d"]),mne(r)&&oe.push("select2d","lasso2d");var he=[],fe=function(Ae){he.indexOf(Ae)===-1&&ee.indexOf(Ae)!==-1&&he.push(Ae)};if(Array.isArray(u)){for(var Te=[],ke=0;ke{"use strict";Rz.exports={moduleType:"component",name:"modebar",layoutAttributes:V4(),supplyLayoutDefaults:kz(),manage:Iz()}});var Y4=pe((G_e,Fz)=>{"use strict";var xne=No().FROM_BL;Fz.exports=function(t,r,i){i===void 0&&(i=xne[t.constraintoward||"center"]);var a=[t.r2l(t.range[0]),t.r2l(t.range[1])],s=a[0]+(a[1]-a[0])*i;t.range=t._input.range=[t.l2r(s+(a[0]-s)*r),t.l2r(s+(a[1]-s)*r)],t.setScale()}});var wg=pe(bg=>{"use strict";var Ud=Ot(),W4=ig(),Vu=jn().id2name,bne=Nu(),qz=Y4(),wne=y2(),Tne=Zi().ALMOST_EQUAL,Ane=No().FROM_BL;bg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,s=t._axisConstraintGroups=[],l=t._axisMatchGroups=[],u,h,v,m,_,T,M,C;for(u=0;us?r.slice(s):i.slice(a))+l}function Sne(e,t){for(var r=t._size,i=r.h/r.w,a={},s=Object.keys(e),l=0;lTne*C&&!O)){for(s=0;soe&&Ceee&&(ee=Ce);var We=(ee-J)/(2*ie);_/=We,J=h.l2r(J),ee=h.l2r(ee),h.range=h._input.range=H{"use strict";var hx=Xa(),os=la(),fl=to(),$l=Ot(),J4=ro(),K4=G2(),Tg=Ba(),lm=_i(),Uz=rg(),Yz=Z4(),Ag=Xi(),Pc=No(),Wz=wg(),kne=Wz.enforce,Cne=Wz.clean,Vz=ig().doAutoRange,Xz="start",Ene="middle",jz="end",Lne=eo().zindexSeparator;no.layoutStyles=function(e){return $l.syncOrAsync([fl.doAutoMargin,Pne],e)};function Dne(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&s[0]t[0])return!0}return!1}function Pne(e){var t=e._fullLayout,r=t._size,i=r.p,a=Ag.list(e,"",!0),s,l,u,h,v,m;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(lm.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),no.drawMainTitle(e),Yz.manage(e),!t._has("cartesian"))return fl.previousPromises(e);function _(ft,de,De){var ye=ft._lw/2;if(ft._id.charAt(0)==="x"){if(de){if(De==="top")return de._offset-i-ye}else return r.t+r.h*(1-(ft.position||0))+ye%1;return de._offset+de._length+i+ye}if(de){if(De==="right")return de._offset+de._length+i+ye}else return r.l+r.w*(ft.position||0)+ye%1;return de._offset-i-ye}for(s=0;s0){Fne(e,s,v,h),u.attr({x:l,y:s,"text-anchor":i,dy:Zz(t.yanchor)}).call(J4.positionText,l,s);var m=(t.text.match(J4.BR_TAG_ALL)||[]).length;if(m){var _=Pc.LINE_SPACING*m+Pc.MID_SHIFT;t.y===0&&(_=-_),u.selectAll(".line").each(function(){var L=+this.getAttribute("dy").slice(0,-2)-_+"em";this.setAttribute("dy",L)})}var T=hx.select(e).selectAll(".gtitle-subtitle");if(T.node()){var M=u.node().getBBox(),C=M.y+M.height,E=C+Uz.SUBTITLE_PADDING_EM*t.subtitle.font.size;T.attr({x:l,y:E,"text-anchor":i,dy:Zz(t.yanchor)}).call(J4.positionText,l,E)}}}};function zne(e,t,r,i,a){var s=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=$l.isTopAnchor(t)?i:i-a,u=r==="b"?s-l:l;return $l.isTopAnchor(t)&&r==="t"||$l.isBottomAnchor(t)&&r==="b"?!1:u.5?"t":"b",l=e._fullLayout.margin[s],u=0;return t.yref==="paper"?u=r+t.pad.t+t.pad.b:t.yref==="container"&&(u=Ine(s,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),u>l?u:0}function Fne(e,t,r,i){var a="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",u={x:s.x,y:s.y,t:0,b:0},h={};s.yref==="paper"&&zne(e,s,l,t,i)?u[l]=r:s.yref==="container"&&(h[l]=r,e._fullLayout._reservedMargin[a]=h),fl.allowAutoMargin(e,a),fl.autoMargin(e,a,u)}function qne(e,t){var r=e.title,i=e._size,a=0;switch(t===Xz?a=r.pad.l:t===jz&&(a=-r.pad.r),r.xref){case"paper":return i.l+i.w*r.x+a;case"container":default:return e.width*r.x+a}}function Nne(e,t){var r=e.title,i=e._size,a=0;if(t==="0em"||!t?a=-r.pad.b:t===Pc.CAP_SHIFT+"em"&&(a=r.pad.t),r.y==="auto")return i.t/2;switch(r.yref){case"paper":return i.t+i.h-i.h*r.y+a;case"container":default:return e.height-e.height*r.y+a}}function Zz(e){return e==="top"?Pc.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Pc.MID_SHIFT+"em"}function Bne(e){var t=e.title,r=Ene;return $l.isRightAnchor(t)?r=jz:$l.isLeftAnchor(t)&&(r=Xz),r}function One(e){var t=e.title,r="0em";return $l.isTopAnchor(t)?r=Pc.CAP_SHIFT+"em":$l.isMiddleAnchor(t)&&(r=Pc.MID_SHIFT+"em"),r}no.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var Une=jh().readPaths,Vne=tx(),Jz=Bh().clearOutlineControllers,Q4=Ba(),Kz=_i(),Hne=Pi().arrayEditor,Qz=Qh(),Gne=Qz.getPathString;eI.exports={draw:dx,drawOne:$z,activateLastSelection:Wne};function dx(e){var t=e._fullLayout;Jz(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var a=0;a=0;L--){var I=l.append("path").attr(h).style("opacity",L?.1:v).call(Q4.stroke,_).call(Q4.fill,m).call(Kz.dashLine,L?"solid":M,L?4+T:T);if(Zne(I,e,i),C){var O=Hne(e.layout,"selections",i);I.style({cursor:"move"});var q={element:I.node(),plotinfo:a,gd:e,editHelpers:O,isActiveSelection:!0},z=Une(u,e);Vne(z,I,q)}else I.style("pointer-events",L?"all":"none");E[L]=I}var N=E[0],H=E[1];H.node().addEventListener("click",function(){return Yne(e,N)})}}function Zne(e,t,r){var i=r.xref+r.yref;Kz.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function Yne(e,t){if(px(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){$4(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=$4,dx(e)}}}function Wne(e){if(px(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=$4,dx(e)}}function $4(e){if(px(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Jz(e),delete e._fullLayout._activeSelectionIndex,dx(e))}}});var rI=pe((X_e,tI)=>{function Xne(){var e,t=0,r=!1;function i(a,s){return e.list.push({type:a,data:s?JSON.parse(JSON.stringify(s)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,s){return i("check",{seg1:a,seg2:s})},segmentChop:function(a,s){return i("div_seg",{seg:a,pt:s}),i("chop",{seg:a,pt:s})},statusRemove:function(a){return i("pop_seg",{seg:a})},segmentUpdate:function(a){return i("seg_update",{seg:a})},segmentNew:function(a,s){return i("new_seg",{seg:a,primary:s})},segmentRemove:function(a){return i("rem_seg",{seg:a})},tempStatus:function(a,s,l){return i("temp_status",{seg:a,above:s,below:l})},rewind:function(a){return i("rewind",{seg:a})},status:function(a,s,l){return i("status",{seg:a,above:s,below:l})},vert:function(a){return a===r?e:(r=a,i("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),i("log",{txt:a})},reset:function(){return i("reset")},selected:function(a){return i("selected",{segs:a})},chainStart:function(a){return i("chain_start",{seg:a})},chainRemoveHead:function(a,s){return i("chain_rem_head",{index:a,pt:s})},chainRemoveTail:function(a,s){return i("chain_rem_tail",{index:a,pt:s})},chainNew:function(a,s){return i("chain_new",{pt1:a,pt2:s})},chainMatch:function(a){return i("chain_match",{index:a})},chainClose:function(a){return i("chain_close",{index:a})},chainAddHead:function(a,s){return i("chain_add_head",{index:a,pt:s})},chainAddTail:function(a,s){return i("chain_add_tail",{index:a,pt:s})},chainConnect:function(a,s){return i("chain_con",{index1:a,index2:s})},chainReverse:function(a){return i("chain_rev",{index:a})},chainJoin:function(a,s){return i("chain_join",{index1:a,index2:s})},done:function(){return i("done")}},e}tI.exports=Xne});var iI=pe((j_e,aI)=>{function jne(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,a){var s=i[0],l=i[1],u=a[0],h=a[1],v=r[0],m=r[1];return(u-s)*(m-l)-(h-l)*(v-s)>=-e},pointBetween:function(r,i,a){var s=r[1]-i[1],l=a[0]-i[0],u=r[0]-i[0],h=a[1]-i[1],v=u*l+s*h;if(v-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=u-s>e&&(l-m)*(s-_)/(u-_)+m-a>e&&(h=!h),l=m,u=_}return h}};return t}aI.exports=jne});var oI=pe((J_e,nI)=>{var Jne={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,a=e.root.next;a!==null;){if(r(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}i=a,a=a.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(a){return a.prev=r,a.next=i,r.next=a,i!==null&&(i.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};nI.exports=Jne});var lI=pe((K_e,sI)=>{var Mg=oI();function Kne(e,t,r){function i(C,E){return{id:r?r.segmentId():-1,start:C,end:E,myFill:{above:null,below:null},otherFill:null}}function a(C,E,L){return{id:r?r.segmentId():-1,start:C,end:E,myFill:{above:L.myFill.above,below:L.myFill.below},otherFill:null}}var s=Mg.create();function l(C,E,L,I,O,q){var z=t.pointsCompare(E,O);return z!==0?z:t.pointsSame(L,q)?0:C!==I?C?1:-1:t.pointAboveOrOnLine(L,I?O:q,I?q:O)?1:-1}function u(C,E){s.insertBefore(C,function(L){var I=l(C.isStart,C.pt,E,L.isStart,L.pt,L.other.pt);return I<0})}function h(C,E){var L=Mg.node({isStart:!0,pt:C.start,seg:C,primary:E,other:null,status:null});return u(L,C.end),L}function v(C,E,L){var I=Mg.node({isStart:!1,pt:E.end,seg:E,primary:L,other:C,status:null});C.other=I,u(I,C.pt)}function m(C,E){var L=h(C,E);return v(L,C,E),L}function _(C,E){r&&r.segmentChop(C.seg,E),C.other.remove(),C.seg.end=E,C.other.pt=E,u(C.other,C.pt)}function T(C,E){var L=a(E,C.seg.end,C.seg);return _(C,E),m(L,C.primary)}function M(C,E){var L=Mg.create();function I(Te,ke){var Se=Te.seg.start,Ae=Te.seg.end,me=ke.seg.start,Ce=ke.seg.end;return t.pointsCollinear(Se,me,Ce)?t.pointsCollinear(Ae,me,Ce)||t.pointAboveOrOnLine(Ae,me,Ce)?1:-1:t.pointAboveOrOnLine(Se,me,Ce)?1:-1}function O(Te){return L.findTransition(function(ke){var Se=I(Te,ke.ev);return Se>0})}function q(Te,ke){var Se=Te.seg,Ae=ke.seg,me=Se.start,Ce=Se.end,Me=Ae.start,We=Ae.end;r&&r.checkIntersection(Se,Ae);var it=t.linesIntersect(me,Ce,Me,We);if(it===!1){if(!t.pointsCollinear(me,Ce,Me)||t.pointsSame(me,We)||t.pointsSame(Ce,Me))return!1;var nt=t.pointsSame(me,Me),gt=t.pointsSame(Ce,We);if(nt&>)return ke;var Xe=!nt&&t.pointBetween(me,Me,We),kt=!gt&&t.pointBetween(Ce,Me,We);if(nt)return kt?T(ke,Ce):T(Te,We),ke;Xe&&(gt||(kt?T(ke,Ce):T(Te,We)),T(ke,me))}else it.alongA===0&&(it.alongB===-1?T(Te,Me):it.alongB===0?T(Te,it.pt):it.alongB===1&&T(Te,We)),it.alongB===0&&(it.alongA===-1?T(ke,me):it.alongA===0?T(ke,it.pt):it.alongA===1&&T(ke,Ce));return!1}for(var z=[];!s.isEmpty();){var N=s.getHead();if(r&&r.vert(N.pt[0]),N.isStart){let Te=function(){if(U){var ke=q(N,U);if(ke)return ke}return W?q(N,W):!1};var fe=Te;r&&r.segmentNew(N.seg,N.primary);var H=O(N),U=H.before?H.before.ev:null,W=H.after?H.after.ev:null;r&&r.tempStatus(N.seg,U?U.seg:!1,W?W.seg:!1);var J=Te();if(J){if(e){var ee;N.seg.myFill.below===null?ee=!0:ee=N.seg.myFill.above!==N.seg.myFill.below,ee&&(J.seg.myFill.above=!J.seg.myFill.above)}else J.seg.otherFill=N.seg.myFill;r&&r.segmentUpdate(J.seg),N.other.remove(),N.remove()}if(s.getHead()!==N){r&&r.rewind(N.seg);continue}if(e){var ee;N.seg.myFill.below===null?ee=!0:ee=N.seg.myFill.above!==N.seg.myFill.below,W?N.seg.myFill.below=W.seg.myFill.above:N.seg.myFill.below=C,ee?N.seg.myFill.above=!N.seg.myFill.below:N.seg.myFill.above=N.seg.myFill.below}else if(N.seg.otherFill===null){var ie;W?N.primary===W.primary?ie=W.seg.otherFill.above:ie=W.seg.myFill.above:ie=N.primary?E:C,N.seg.otherFill={above:ie,below:ie}}r&&r.status(N.seg,U?U.seg:!1,W?W.seg:!1),N.other.status=H.insert(Mg.node({ev:N}))}else{var oe=N.status;if(oe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(L.exists(oe.prev)&&L.exists(oe.next)&&q(oe.prev.ev,oe.next.ev),r&&r.statusRemove(oe.ev.seg),oe.remove(),!N.primary){var he=N.seg.myFill;N.seg.myFill=N.seg.otherFill,N.seg.otherFill=he}z.push(N.seg)}s.getHead().remove()}return r&&r.done(),z}return e?{addRegion:function(C){for(var E,L=C[C.length-1],I=0;I{function Qne(e,t,r){var i=[],a=[];return e.forEach(function(s){var l=s.start,u=s.end;if(t.pointsSame(l,u)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(s);var h={index:0,matches_head:!1,matches_pt1:!1},v={index:0,matches_head:!1,matches_pt1:!1},m=h;function _(fe,Te,ke){return m.index=fe,m.matches_head=Te,m.matches_pt1=ke,m===h?(m=v,!1):(m=null,!0)}for(var T=0;T{function Sg(e,t,r){var i=[];return e.forEach(function(a){var s=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);t[s]!==0&&i.push({id:r?r.segmentId():-1,start:a.start,end:a.end,myFill:{above:t[s]===1,below:t[s]===2},otherFill:null})}),r&&r.selected(i),i}var $ne={union:function(e,t){return Sg(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Sg(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Sg(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Sg(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Sg(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};cI.exports=$ne});var dI=pe((e2e,vI)=>{var eoe={toPolygon:function(e,t){function r(s){if(s.length<=0)return e.segments({inverted:!1,regions:[]});function l(v){var m=v.slice(0,v.length-1);return e.segments({inverted:!1,regions:[m]})}for(var u=l(s[0]),h=1;h{var toe=rI(),roe=iI(),pI=lI(),aoe=fI(),kg=hI(),mI=dI(),eu=!1,Cg=roe(),Hs;Hs={buildLog:function(e){return e===!0?eu=toe():e===!1&&(eu=!1),eu===!1?!1:eu.list},epsilon:function(e){return Cg.epsilon(e)},segments:function(e){var t=pI(!0,Cg,eu);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=pI(!1,Cg,eu);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:kg.union(e.combined,eu),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:kg.intersect(e.combined,eu),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:kg.difference(e.combined,eu),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:kg.differenceRev(e.combined,eu),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:kg.xor(e.combined,eu),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:aoe(e.segments,Cg,eu),inverted:e.inverted}},polygonFromGeoJSON:function(e){return mI.toPolygon(Hs,e)},polygonToGeoJSON:function(e){return mI.fromPolygon(Hs,Cg,e)},union:function(e,t){return Eg(e,t,Hs.selectUnion)},intersect:function(e,t){return Eg(e,t,Hs.selectIntersect)},difference:function(e,t){return Eg(e,t,Hs.selectDifference)},differenceRev:function(e,t){return Eg(e,t,Hs.selectDifferenceRev)},xor:function(e,t){return Eg(e,t,Hs.selectXor)}};function Eg(e,t,r){var i=Hs.segments(e),a=Hs.segments(t),s=Hs.combine(i,a),l=r(s);return Hs.polygon(l)}typeof window=="object"&&(window.PolyBool=Hs);yI.exports=Hs});var xI=pe((r2e,_I)=>{_I.exports=function(t,r,i,a){var s=t[0],l=t[1],u=!1;i===void 0&&(i=0),a===void 0&&(a=r.length);for(var h=a-i,v=0,m=h-1;vl!=C>l&&s<(M-_)*(l-T)/(C-T)+_;E&&(u=!u)}return u}});var gx=pe((a2e,bI)=>{"use strict";var t6=__().dot,mx=Zi().BADNUM,yx=bI.exports={};yx.tester=function(t){var r=t.slice(),i=r[0][0],a=i,s=r[0][1],l=s,u;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),u=1;ua||I===mx||Il||E&&v(C))}function _(C,E){var L=C[0],I=C[1];if(L===mx||La||I===mx||Il)return!1;var O=r.length,q=r[0][0],z=r[0][1],N=0,H,U,W,J,ee;for(H=1;HMath.max(U,q)||I>Math.max(W,z)))if(Iu||Math.abs(t6(_,v))>a)return!0;return!1};yx.filter=function(t,r){var i=[t[0]],a=0,s=0;function l(h){t.push(h);var v=i.length,m=a;i.splice(s+1);for(var _=m+1;_1){var u=t.pop();l(u)}return{addPt:l,raw:t,filtered:i}}});var TI=pe((i2e,wI)=>{"use strict";wI.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var ZI=pe((n2e,GI)=>{"use strict";var AI=gI(),ioe=xI(),Pg=la(),noe=_i().dashStyle,Lg=Ba(),ooe=Uu(),soe=Cc().makeEventData,qg=qd(),loe=qg.freeMode,uoe=qg.rectMode,zg=qg.drawMode,n6=qg.openMode,o6=qg.selectMode,MI=Qh(),SI=gg(),DI=tx(),PI=Bh().clearOutline,zI=jh(),r6=zI.handleEllipse,foe=zI.readPaths,coe=Q2().newShapes,hoe=L4(),voe=e6().activateLastSelection,xx=Ot(),doe=xx.sorterAsc,II=gx(),Dg=z_(),tu=jn().getFromId,poe=G2(),moe=vx().redrawReglTraces,bx=TI(),Hf=bx.MINSELECT,yoe=II.filter,s6=II.tester,l6=X2(),kI=l6.p2r,goe=l6.axValue,_oe=l6.getTransform;function u6(e){return e.subplot!==void 0}function xoe(e,t,r,i,a){var s=!u6(i),l=loe(a),u=uoe(a),h=n6(a),v=zg(a),m=o6(a),_=a==="drawline",T=a==="drawcircle",M=_||T,C=i.gd,E=C._fullLayout,L=m&&E.newselection.mode==="immediate"&&s,I=E._zoomlayer,O=i.element.getBoundingClientRect(),q=i.plotinfo,z=_oe(q),N=t-O.left,H=r-O.top;E._calcInverseTransform(C);var U=xx.apply3DTransform(E._invTransform)(N,H);N=U[0],H=U[1];var W=E._invScaleX,J=E._invScaleY,ee=N,ie=H,oe="M"+N+","+H,he=i.xaxes[0],fe=i.yaxes[0],Te=he._length,ke=fe._length,Se=e.altKey&&!(zg(a)&&h),Ae,me,Ce,Me,We,it,nt;FI(e,C,i),l&&(Ae=yoe([[N,H]],bx.BENDPX));var gt=I.selectAll("path.select-outline-"+q.id).data([1]),Xe=v?E.newshape:E.newselection;v&&(i.hasText=Xe.label.text||Xe.label.texttemplate);var kt=v&&!h?Xe.fillcolor:"rgba(0,0,0,0)",lt=Xe.line.color||(s?Lg.contrast(C._fullLayout.plot_bgcolor):"#7f7f7f");gt.enter().append("path").attr("class","select-outline select-outline-"+q.id).style({opacity:v?Xe.opacity/2:1,"stroke-dasharray":noe(Xe.line.dash,Xe.line.width),"stroke-width":Xe.line.width+"px","shape-rendering":"crispEdges"}).call(Lg.stroke,lt).call(Lg.fill,kt).attr("fill-rule","evenodd").classed("cursor-move",!!v).attr("transform",z).attr("d",oe+"Z");var mt=I.append("path").attr("class","zoombox-corners").style({fill:Lg.background,stroke:Lg.defaultLine,"stroke-width":1}).attr("transform",z).attr("d","M0,0Z");if(v&&i.hasText){var Bt=I.select(".label-temp");Bt.empty()&&(Bt=I.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ft=E._uid+bx.SELECTID,de=[],De=wx(C,i.xaxes,i.yaxes,i.subplot);L&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(s){var Oe=he._id,at=fe._id;UI(C,Oe,at,De);for(var Je=(C.layout||{}).selections||[],Pt=[],xt=!1,bt=0;bt=0){C._fullLayout._deactivateShape(C);return}if(!v){var Je=E.clickmode;Dg.done(ft).then(function(){if(Dg.clear(ft),Oe===2){for(gt.remove(),We=0;We-1&&RI(at,C,i.xaxes,i.yaxes,i.subplot,i,gt),Je==="event"&&Fg(C,void 0);ooe.click(C,at,q.id)}).catch(xx.error)}},i.doneFn=function(){mt.remove(),Dg.done(ft).then(function(){Dg.clear(ft),!L&&Me&&i.selectionDefs&&(Me.subtract=Se,i.selectionDefs.push(Me),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,Ce)),(L||v)&&Ig(i,L),i.doneFnCompleted&&i.doneFnCompleted(de),m&&Fg(C,nt)}).catch(xx.error)}}function RI(e,t,r,i,a,s,l){var u=t._hoverdata,h=t._fullLayout,v=h.clickmode,m=v.indexOf("event")>-1,_=[],T,M,C,E,L,I,O,q,z,N;if(Moe(u)){FI(e,t,s),T=wx(t,r,i,a);var H=Soe(u,T),U=H.pointNumbers.length>0;if(U?koe(T,H):Coe(T)&&(O=EI(H))){for(l&&l.remove(),N=0;N=0}function Aoe(e){return e._fullLayout._activeSelectionIndex>=0}function Ig(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;Toe(a)&&a._fullLayout._deactivateShape(a),Aoe(a)&&a._fullLayout._deactivateSelection(a);var s=a._fullLayout,l=s._zoomlayer,u=zg(r),h=o6(r);if(u||h){var v=l.selectAll(".select-outline-"+i.id);if(v&&a._fullLayout._outlining){var m;u&&(m=coe(v,e)),m&&Pg.call("_guiRelayout",a,{shapes:m});var _;h&&!u6(e)&&(_=hoe(v,e)),_&&(a._fullLayout._noEmitSelectedAtStart=!0,Pg.call("_guiRelayout",a,{selections:_}).then(function(){t&&voe(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function CI(e){return e._id}function wx(e,t,r,i){if(!e.calcdata)return[];var a=[],s=t.map(CI),l=r.map(CI),u,h,v;for(v=0;v0,s=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(s)>-1:!1}function koe(e,t){var r=[],i,a,s,l;for(l=0;l0&&r.push(i);if(r.length===1&&(s=r[0]===t.searchInfo,s&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(l=0;l1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function Rg(e,t,r){var i;for(i=0;i-1&&t;if(!l&&t){var Oe=LI(e,!0);if(Oe.length){var at=Oe[0].xref,Je=Oe[0].yref;if(at&&Je){var Pt=VI(Oe),xt=HI([tu(e,at,"x"),tu(e,Je,"y")]);xt(de,Pt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ye&&Fg(e,de),T._reselect=!1}if(!l&&T._deselect){var bt=T._deselect;u=bt.xref,h=bt.yref,Doe(u,h,m)||UI(e,u,h,i),ye&&(de.points.length?Fg(e,de):h6(e)),T._deselect=!1}return{eventData:de,selectionTesters:r}}function Loe(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";YI.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Ng=pe((s2e,WI)=>{"use strict";WI.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var um=pe((u2e,JI)=>{"use strict";var XI=v6(),jI=qo(),Tx=eo(),Foe=Pi().templatedArray,l2e=Ng();JI.exports=Foe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:jI({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:XI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:XI.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Tx.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Tx.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Tx.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Tx.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:jI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ax=pe((f2e,KI)=>{"use strict";KI.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Mx=pe((c2e,QI)=>{"use strict";QI.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var zc=pe((h2e,oR)=>{"use strict";var $I=Zw().axisHoverFormat,{hovertemplateAttrs:qoe,texttemplateAttrs:Noe,templatefallbackAttrs:eR}=Cf(),tR=kc(),Boe=qo(),rR=_c().dash,Ooe=_c().pattern,Uoe=_i(),Voe=Ax(),Bg=mn().extendFlat,Hoe=Mx();function aR(e){return{valType:"any",dflt:0,editType:"calc"}}function iR(e){return{valType:"any",editType:"calc"}}function nR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}oR.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:aR("x"),yperiod:aR("y"),xperiod0:iR("x0"),yperiod0:iR("y0"),xperiodalignment:nR("x"),yperiodalignment:nR("y"),xhoverformat:$I("x"),yhoverformat:$I("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Noe(),texttemplatefallback:eR({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:qoe({},{keys:Voe.eventDataKeys}),hovertemplatefallback:eR(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Bg({},rR,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Hoe(!0),fillgradient:Bg({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Ooe,marker:Bg({symbol:{valType:"enumerated",values:Uoe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Bg({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Bg({},rR,{arrayOk:!0}),editType:"calc"},tR("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},tR("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Boe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var d6=pe((d2e,uR)=>{"use strict";var sR=um(),lR=zc().line,Goe=_c().dash,Sx=mn().extendFlat,Zoe=il().overrideAll,Yoe=Pi().templatedArray,v2e=Ng();uR.exports=Zoe(Yoe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Sx({},sR.xref,{}),yref:Sx({},sR.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:lR.color,width:Sx({},lR.width,{min:1,dflt:1}),dash:Sx({},Goe,{dflt:"dot"})}}),"arraydraw","from-root")});var vR=pe((p2e,hR)=>{"use strict";var fR=Ot(),kx=Xi(),Woe=Wl(),Xoe=d6(),cR=Qh();hR.exports=function(t,r){Woe(t,r,{name:"selections",handleItemDefaults:joe});for(var i=r.selections,a=0;a{"use strict";dR.exports=function(t,r,i){i("newselection.mode");var a=i("newselection.line.width");a&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var Og=pe((y2e,gR)=>{"use strict";var Joe=la(),mR=Ot(),yR=jn();gR.exports=function(t){return function(i,a){var s=i[t];if(Array.isArray(s))for(var l=Joe.subplotsRegistry.cartesian,u=l.idRegex,h=a._subplots,v=h.xaxis,m=h.yaxis,_=h.cartesian,T=a._has("cartesian"),M=0;M{"use strict";var _R=e6(),Ug=ZI();xR.exports={moduleType:"component",name:"selections",layoutAttributes:d6(),supplyLayoutDefaults:vR(),supplyDrawNewSelectionDefaults:pR(),includeBasePlot:Og()("selections"),draw:_R.draw,drawOne:_R.drawOne,reselect:Ug.reselect,prepSelect:Ug.prepSelect,clearOutline:Ug.clearOutline,clearSelectionsCache:Ug.clearSelectionsCache,selectOnClick:Ug.selectOnClick}});var UR=pe((_2e,OR)=>{"use strict";var _6=Xa(),ru=Ot(),bR=ru.numberFormat,Koe=Sf(),Qoe=$5(),Cx=la(),LR=ru.strTranslate,$oe=ro(),wR=Ba(),ev=_i(),ese=Uu(),TR=Xi(),tse=Wh(),rse=jl(),DR=qd(),Ex=DR.selectingOrDrawing,ase=DR.freeMode,ise=No().FROM_TL,nse=G2(),ose=vx().redrawReglTraces,sse=to(),m6=jn().getFromId,lse=Gf().prepSelect,use=Gf().clearOutline,fse=Gf().selectOnClick,p6=Y4(),x6=eo(),AR=x6.MINDRAG,_s=x6.MINZOOM,MR=!0;function cse(e,t,r,i,a,s,l,u){var h=e._fullLayout._zoomlayer,v=l+u==="nsew",m=(l+u).length===1,_,T,M,C,E,L,I,O,q,z,N,H,U,W,J,ee,ie,oe,he,fe,Te,ke,Se;r+=t.yaxis._shift;function Ae(){if(_=t.xaxis,T=t.yaxis,q=_._length,z=T._length,I=_._offset,O=T._offset,M={},M[_._id]=_,C={},C[T._id]=T,l&&u)for(var vt=t.overlays,pt=0;pt=0){Nt._fullLayout._deactivateShape(Nt);return}var er=Nt._fullLayout.clickmode;if(g6(Nt),vt===2&&!m&&Wt(),v)er.indexOf("select")>-1&&fse(pt,Nt,E,L,t.id,Me),er.indexOf("event")>-1&&ese.click(Nt,pt,t.id);else if(vt===1&&m){var Ht=l?T:_,Gt=l==="s"||u==="w"?0:1,hr=Ht._name+".range["+Gt+"]",yr=hse(Ht,Gt),mr="left",Ct="middle";if(Ht.fixedrange)return;l?(Ct=l==="n"?"top":"bottom",Ht.side==="right"&&(mr="right")):u==="e"&&(mr="right"),Nt._context.showAxisRangeEntryBoxes&&_6.select(Ce).call($oe.makeEditable,{gd:Nt,immediate:!0,background:Nt._fullLayout.paper_bgcolor,text:String(yr),fill:Ht.tickfont?Ht.tickfont.color:"#444",horizontalAlign:mr,verticalAlign:Ct}).on("edit",function(Fe){var Ue=Ht.d2r(Fe);Ue!==void 0&&Cx.call("_guiRelayout",Nt,hr,Ue)})}}rse.init(Me);var nt,gt,Xe,kt,lt,mt,Bt,ft,de,De;function ye(vt,pt,Nt){var er=Ce.getBoundingClientRect();nt=pt-er.left,gt=Nt-er.top,e._fullLayout._calcInverseTransform(e);var Ht=ru.apply3DTransform(e._fullLayout._invTransform)(nt,gt);nt=Ht[0],gt=Ht[1],Xe={l:nt,r:nt,w:0,t:gt,b:gt,h:0},kt=e._hmpixcount?e._hmlumcount/e._hmpixcount:Koe(e._fullLayout.plot_bgcolor).getLuminance(),lt="M0,0H"+q+"V"+z+"H0V0",mt=!1,Bt="xy",De=!1,ft=IR(h,kt,I,O,lt),de=RR(h,I,O)}function Oe(vt,pt){if(e._transitioningWithDuration)return!1;var Nt=Math.max(0,Math.min(q,ke*vt+nt)),er=Math.max(0,Math.min(z,Se*pt+gt)),Ht=Math.abs(Nt-nt),Gt=Math.abs(er-gt);Xe.l=Math.min(nt,Nt),Xe.r=Math.max(nt,Nt),Xe.t=Math.min(gt,er),Xe.b=Math.max(gt,er);function hr(){Bt="",Xe.r=Xe.l,Xe.t=Xe.b,de.attr("d","M0,0Z")}if(N.isSubplotConstrained)Ht>_s||Gt>_s?(Bt="xy",Ht/q>Gt/z?(Gt=Ht*z/q,gt>er?Xe.t=gt-Gt:Xe.b=gt+Gt):(Ht=Gt*q/z,nt>Nt?Xe.l=nt-Ht:Xe.r=nt+Ht),de.attr("d",Lx(Xe))):hr();else if(H.isSubplotConstrained)if(Ht>_s||Gt>_s){Bt="xy";var yr=Math.min(Xe.l/q,(z-Xe.b)/z),mr=Math.max(Xe.r/q,(z-Xe.t)/z);Xe.l=yr*q,Xe.r=mr*q,Xe.b=(1-yr)*z,Xe.t=(1-mr)*z,de.attr("d",Lx(Xe))}else hr();else!W||Gt0){var Fe;if(H.isSubplotConstrained||!U&&W.length===1){for(Fe=0;Fe1&&(hr.maxallowed!==void 0&&ee===(hr.range[0]1&&(yr.maxallowed!==void 0&&ie===(yr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function dse(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function IR(e,t,r,i,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",LR(r,i)).attr("d",a+"Z")}function RR(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:wR.background,stroke:wR.defaultLine,"stroke-width":1,opacity:0}).attr("transform",LR(t,r)).attr("d","M0,0Z")}function FR(e,t,r,i,a,s){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),qR(e,t,a,s)}function qR(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function g6(e){_6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function NR(e){MR&&e.data&&e._context.showTips&&(ru.notifier(ru._(e,"Double-click to zoom back out"),"long",e),MR=!1)}function pse(e,t){return"M"+(e.l-.5)+","+(t-_s-.5)+"h-3v"+(2*_s+1)+"h3ZM"+(e.r+.5)+","+(t-_s-.5)+"h3v"+(2*_s+1)+"h-3Z"}function mse(e,t){return"M"+(t-_s-.5)+","+(e.t-.5)+"v-3h"+(2*_s+1)+"v3ZM"+(t-_s-.5)+","+(e.b+.5)+"v3h"+(2*_s+1)+"v-3Z"}function Lx(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,_s)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function CR(e,t,r,i,a){for(var s=!1,l={},u={},h,v,m,_,T=(a||{}).xaHash,M=(a||{}).yaHash,C=0;C{"use strict";var yse=Xa(),Dx=Uu(),gse=jl(),_se=Wh(),Hu=UR().makeDragBox,oo=eo().DRAGGERSIZE;Px.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){yse.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(s,l){if((r._plots[s].mainplot&&!0)===(r._plots[l].mainplot&&!0)){var u=s.split("y"),h=l.split("y");return u[0]===h[0]?Number(u[1]||1)-Number(h[1]||1):Number(u[0]||1)-Number(h[0]||1)}return r._plots[s].mainplot?1:-1});i.forEach(function(s){var l=r._plots[s],u=l.xaxis,h=l.yaxis;if(!l.mainplot){var v=Hu(t,l,u._offset,h._offset,u._length,h._length,"ns","ew");v.onmousemove=function(T){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===s&&t._fullLayout._plots[s]&&Dx.hover(t,T,s)},Dx.hover(t,T,s),t._fullLayout._lasthover=v,t._fullLayout._hoversubplot=s},v.onmouseout=function(T){t._dragging||(t._fullLayout._hoversubplot=null,gse.unhover(t,T))},t._context.showAxisDragHandles&&(Hu(t,l,u._offset-oo,h._offset-oo,oo,oo,"n","w"),Hu(t,l,u._offset+u._length,h._offset-oo,oo,oo,"n","e"),Hu(t,l,u._offset-oo,h._offset+h._length,oo,oo,"s","w"),Hu(t,l,u._offset+u._length,h._offset+h._length,oo,oo,"s","e"))}if(t._context.showAxisDragHandles){if(s===u._mainSubplot){var m=u._mainLinePosition;u.side==="top"&&(m-=oo),Hu(t,l,u._offset+u._length*.1,m,u._length*.8,oo,"","ew"),Hu(t,l,u._offset,m,u._length*.1,oo,"","w"),Hu(t,l,u._offset+u._length*.9,m,u._length*.1,oo,"","e")}if(s===h._mainSubplot){var _=h._mainLinePosition;h.side!=="right"&&(_-=oo),Hu(t,l,_,h._offset+h._length*.1,oo,h._length*.8,"ns",""),Hu(t,l,_,h._offset+h._length*.9,oo,h._length*.1,"s",""),Hu(t,l,_,h._offset,oo,h._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(s){s.target=t._fullLayout._lasthover,Dx.hover(t,s,r._hoversubplot)},a.onclick=function(s){s.target=t._fullLayout._lasthover,Dx.click(t,s)},a.onmousedown=function(s){t._fullLayout._lasthover.onmousedown(s)},Px.updateFx(t)}};Px.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";_se(t._draggers,r)}});var GR=pe((b2e,HR)=>{"use strict";var VR=la();HR.exports=function(t){for(var r=VR.layoutArrayContainers,i=VR.layoutArrayRegexes,a=t.split("[")[0],s,l,u=0;u{"use strict";var xse=gc(),w6=g_(),Vg=Lh(),bse=mw().sorterAsc,T6=la();Hg.containerArrayMatch=GR();var wse=Hg.isAddVal=function(t){return t==="add"||xse(t)},ZR=Hg.isRemoveVal=function(t){return t===null||t==="remove"};Hg.applyContainerArrayChanges=function(t,r,i,a,s){var l=r.astr,u=T6.getComponentMethod(l,"supplyLayoutDefaults"),h=T6.getComponentMethod(l,"draw"),v=T6.getComponentMethod(l,"drawOne"),m=a.replot||a.recalc||u===w6||h===w6,_=t.layout,T=t._fullLayout;if(i[""]){Object.keys(i).length>1&&Vg.warn("Full array edits are incompatible with other edits",l);var M=i[""][""];if(ZR(M))r.set(null);else if(Array.isArray(M))r.set(M);else return Vg.warn("Unrecognized full array edit value",l,M),!0;return m?!1:(u(_,T),h(t),!0)}var C=Object.keys(i).map(Number).sort(bse),E=r.get(),L=E||[],I=s(T,l).get(),O=[],q=-1,z=L.length,N,H,U,W,J,ee,ie,oe;for(N=0;NL.length-(ie?0:1)){Vg.warn("index out of range",l,U);continue}if(ee!==void 0)J.length>1&&Vg.warn("Insertion & removal are incompatible with edits to the same index.",l,U),ZR(ee)?O.push(U):ie?(ee==="add"&&(ee={}),L.splice(U,0,ee),I&&I.splice(U,0,{})):Vg.warn("Unrecognized full object edit value",l,U,ee),q===-1&&(q=U);else for(H=0;H=0;N--)L.splice(O[N],1),I&&I.splice(O[N],1);if(L.length?E||r.set(L):r.set(null),m)return!1;if(u(_,T),v!==w6){var he;if(q===-1)he=C;else{for(z=Math.max(L.length,z),he=[],N=0;N=q));N++)he.push(U);for(N=q;N{"use strict";var JR=La(),KR=la(),ss=Ot(),Gg=to(),QR=jn(),$R=Ba(),Zg=QR.cleanId,Tse=QR.getFromTrace,A6=KR.traceIs,Ase=["x","y","z"];au.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ss.log("Clearing previous rejected promises from queue."),e._promises=[]};au.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(Gg.subplotsRegistry.cartesian||{}).attrRegex,a=(Gg.subplotsRegistry.polar||{}).attrRegex,s=(Gg.subplotsRegistry.ternary||{}).attrRegex,l=(Gg.subplotsRegistry.gl3d||{}).attrRegex,u=Object.keys(e);for(t=0;t3?(L.x=1.02,L.xanchor="left"):L.x<-2&&(L.x=-.02,L.xanchor="right"),L.y>3?(L.y=1.02,L.yanchor="bottom"):L.y<-2&&(L.y=-.02,L.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),$R.clean(e),e.template&&e.template.layout&&au.cleanLayout(e.template.layout),e};function fm(e,t,r=!1){var i=e[t],a=t.charAt(0);r&&Array.isArray(i)||i&&i!=="paper"&&(e[t]=Zg(i,a,!0))}au.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}au.hasParent=function(e,t){for(var r=jR(t);r;){if(r in e)return!0;r=jR(r)}return!1};au.clearAxisTypes=function(e,t,r){for(var i=0;i{let r=(...i)=>i.every(a=>ss.isPlainObject(a))||i.every(a=>Array.isArray(a));if([e,t].every(i=>Array.isArray(i))){if(e.length!==t.length)return!1;for(let i=0;iss.isPlainObject(i))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){if(i.startsWith("_"))continue;let a=e[i],s=t[i];if(a!==s&&!(r(a,s)?M6(a,s):!1))return!1}return!0}return!1};au.collectionsAreEqual=M6});var D6=pe(Va=>{"use strict";var Fx=Xa(),kse=La(),Cse=Ew(),br=Ot(),qi=br.nestedProperty,C6=Wy(),xs=Ik(),iu=la(),Hx=N0(),ra=to(),ls=Xi(),Ese=Q5(),Lse=Nu(),S6=_i(),Dse=Ba(),Pse=b6().initInteractions,zse=Oh(),Ise=Gf().clearOutline,nF=cd().dfltConfig,Ix=YR(),zn=eF(),ci=vx(),tv=il(),Rse=eo().AX_NAME_PATTERN,k6=0,tF=5;function Fse(e,t,r,i){var a;if(e=br.getGraphDiv(e),C6.init(e),br.isPlainObject(t)){var s=t;t=s.data,r=s.layout,i=s.config,a=s.frames}var l=C6.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(l===!1)return Promise.reject();!t&&!r&&!br.isPlotDiv(e)&&br.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function u(){if(a)return Va.addFrames(e,a)}sF(e,i),r||(r={}),Fx.select(e).classed("js-plotly-plot",!0),S6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var h=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(zn.cleanData(t),h?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||h)&&(e.layout=zn.cleanLayout(r)),ra.supplyDefaults(e);var v=e._fullLayout,m=v._has("cartesian");v._replotting=!0,(h||v._shouldCreateBgLayer)&&(nle(e),v._shouldCreateBgLayer&&delete v._shouldCreateBgLayer),S6.initGradients(e),S6.initPatterns(e),h&&ls.saveShowSpikeInitial(e);var _=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;_&&ra.doCalcdata(e);for(var T=0;T=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,i+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function lF(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Nx(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Nx(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Use(e,t,r){var i,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&m<_.length?_.splice(0,_.length-m):[];return[_,T]}var s=uF(e,t,r,i,a),l=Va.redraw(e),u=[e,s.update,r,s.maxPoints];return xs.add(e,Va.prependTraces,u,cF,arguments),l}function hF(e,t,r,i){e=br.getGraphDiv(e);function a(h,v,m){var _,T;if(br.isTypedArray(h))if(m<=0){var M=new h.constructor(0),C=fF(v,h);m<0?(_=C,T=M):(_=M,T=C)}else if(_=new h.constructor(m),T=new h.constructor(h.length+v.length-m),m===v.length)_.set(v),T.set(h);else if(m=0&&m<_.length?_.splice(m,_.length):[];return[_,T]}var s=uF(e,t,r,i,a),l=Va.redraw(e),u=[e,s.update,r,s.maxPoints];return xs.add(e,Va.extendTraces,u,hF,arguments),l}function vF(e,t,r){e=br.getGraphDiv(e);var i=[],a=Va.deleteTraces,s=vF,l=[e,i],u=[e,t],h,v;for(Use(e,t,r),Array.isArray(t)||(t=[t]),t=t.map(function(m){return br.extendFlat({},m)}),zn.cleanData(t),h=0;h0&&typeof W.parts[ie]!="string";)ie--;var oe=W.parts[ie],he=W.parts[ie-1]+"."+oe,fe=W.parts.slice(0,ie).join("."),Te=qi(e.layout,fe).get(),ke=qi(i,fe).get(),Se=W.get();if(J!==void 0){I[U]=J,O[U]=oe==="reverse"?J:Ic(Se);var Ae=Hx.getLayoutValObject(i,W.parts);if(Ae&&Ae.impliedEdits&&J!==null)for(var me in Ae.impliedEdits)q(br.relativeAttr(U,me),Ae.impliedEdits[me]);if(["width","height"].indexOf(U)!==-1)if(J){q("autosize",null);var Ce=U==="height"?"width":"height";q(Ce,i[Ce])}else i[U]=e._initialAutoSize[U];else if(U==="autosize")q("width",J?null:i.width),q("height",J?null:i.height);else if(he.match(yF))H(he),qi(i,fe+"._inputRange").set(null);else if(he.match(gF)){H(he),qi(i,fe+"._inputRange").set(null);var Me=qi(i,fe).get();Me._inputDomain&&(Me._input.domain=Me._inputDomain.slice())}else he.match(Zse)&&qi(i,fe+"._inputDomain").set(null);if(oe==="type"){N=Te;var We=ke.type==="linear"&&J==="log",it=ke.type==="log"&&J==="linear";if(We||it){if(!N||!N.range)q(fe+".autorange",!0);else if(ke.autorange)We&&(N.range=N.range[1]>N.range[0]?[1,2]:[2,1]);else{var nt=N.range[0],gt=N.range[1];We?(nt<=0&><=0&&q(fe+".autorange",!0),nt<=0?nt=gt/1e6:gt<=0&&(gt=nt/1e6),q(fe+".range[0]",Math.log(nt)/Math.LN10),q(fe+".range[1]",Math.log(gt)/Math.LN10)):(q(fe+".range[0]",Math.pow(10,nt)),q(fe+".range[1]",Math.pow(10,gt)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[W.parts[0]]&&W.parts[1]==="radialaxis"&&delete i[W.parts[0]]._subplot.viewInitial["radialaxis.range"],iu.getComponentMethod("annotations","convertCoords")(e,ke,J,q),iu.getComponentMethod("images","convertCoords")(e,ke,J,q)}else q(fe+".autorange",!0),q(fe+".range",null);qi(i,fe+"._inputRange").set(null)}else if(oe.match(Rse)){var Xe=qi(i,U).get(),kt=(J||{}).type;(!kt||kt==="-")&&(kt="linear"),iu.getComponentMethod("annotations","convertCoords")(e,Xe,kt,q),iu.getComponentMethod("images","convertCoords")(e,Xe,kt,q)}var lt=Ix.containerArrayMatch(U);if(lt){m=lt.array,_=lt.index;var mt=lt.property,Bt=Ae||{editType:"calc"};_!==""&&mt===""&&(Ix.isAddVal(J)?O[U]=null:Ix.isRemoveVal(J)?O[U]=(qi(r,m).get()||[])[_]:br.warn("unrecognized full object value",t)),tv.update(L,Bt),v[m]||(v[m]={});var ft=v[m][_];ft||(ft=v[m][_]={}),ft[mt]=J,delete t[U]}else oe==="reverse"?(Te.range?Te.range.reverse():(q(fe+".autorange",!0),Te.range=[1,0]),ke.autorange?L.calc=!0:L.plot=!0):(U==="dragmode"&&(J===!1&&Se!==!1||J!==!1&&Se===!1)||i._has("scatter-like")&&i._has("regl")&&U==="dragmode"&&(J==="lasso"||J==="select")&&!(Se==="lasso"||Se==="select")?L.plot=!0:Ae?tv.update(L,Ae):L.calc=!0,W.set(J))}}for(m in v){var de=Ix.applyContainerArrayChanges(e,s(r,m),v[m],L,s);de||(L.plot=!0)}for(var De in z){N=ls.getFromId(e,De);var ye=N&&N._constraintGroup;if(ye){L.calc=!0;for(var Oe in ye)z[Oe]||(ls.getFromId(e,Oe)._constraintShrinkable=!0)}}(xF(e)||t.height||t.width)&&(L.plot=!0);var at=i.shapes;for(_=0;_1;)if(i.pop(),r=qi(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function Xse(e,t){for(var r=0;r[fe,e._ev.listeners(fe)]);s=Va.newPlot(e,t,r,i).then(()=>{for(let[fe,Te]of he)Te.forEach(ke=>e.on(fe,ke));return Va.react(e,t,r,i)})}else{e.data=t||[],zn.cleanData(e.data),e.layout=r||{},zn.cleanLayout(e.layout),Jse(e.data,e.layout,u,h),ra.supplyDefaults(e,{skipUpdateCalc:!0});var _=e._fullData,T=e._fullLayout,M=T.datarevision===void 0,C=T.transition,E=$se(e,h,T,M,C),L=E.newDataRevision,I=Qse(e,u,_,M,C,L);if(xF(e)&&(E.layoutReplot=!0),I.calc||E.calc){e.calcdata=void 0;for(var O=Object.getOwnPropertyNames(T),q=0;q(m||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function Qse(e,t,r,i,a,s){var l=t.length===r.length;if(!a&&!l)return{fullReplot:!0,calc:!0};var u=tv.traceFlags();u.arrays={},u.nChanges=0,u.nChangesAnim=0;var h,v;function m(M){var C=Hx.getTraceValObject(v,M);return!v._module.animatable&&C.anim&&(C.anim=!1),C}var _={getValObject:m,flags:u,immutable:i,transition:a,newDataRevision:s,gd:e},T={};for(h=0;h=a.length?a[0]:a[v]:a}function u(v){return Array.isArray(s)?v>=s.length?s[0]:s[v]:s}function h(v,m){var _=0;return function(){if(v&&++_===m)return v()}}return new Promise(function(v,m){function _(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var oe=i._frameQueue.pop();oe.onInterrupt&&oe.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function T(oe){if(oe.length!==0){for(var he=0;hei._timeToNext&&C()};oe()}var L=0;function I(oe){return Array.isArray(a)?L>=a.length?oe.transitionOpts=a[L]:oe.transitionOpts=a[0]:oe.transitionOpts=a,L++,oe}var O,q,z=[],N=t==null,H=Array.isArray(t),U=!N&&!H&&br.isPlainObject(t);if(U)z.push({type:"object",data:I(br.extendFlat({},t))});else if(N||["string","number"].indexOf(typeof t)!==-1)for(O=0;O0&&eeee)&&ie.push(q);z=ie}}z.length>0?T(z):(e.emit("plotly_animated"),v())})}function tle(e,t,r){if(e=br.getGraphDiv(e),t==null)return Promise.resolve();if(!br.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,a,s,l,u=e._transitionData._frames,h=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var v=u.length+t.length*2,m=[],_={};for(i=t.length-1;i>=0;i--)if(br.isPlainObject(t[i])){var T=t[i].name,M=(h[T]||_[T]||{}).name,C=t[i].name,E=h[M]||_[M];M&&C&&typeof C=="number"&&E&&k6W.index?-1:U.index=0;i--){if(a=m[i].frame,typeof a.name=="number"&&br.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;h[a.name="frame "+e._transitionData._counter++];);if(h[a.name]){for(s=0;s=0;r--)i=t[r],s.push({type:"delete",index:i}),l.unshift({type:"insert",index:i,value:a[i]});var u=ra.modifyFrames,h=ra.modifyFrames,v=[e,l],m=[e,s];return xs&&xs.add(e,u,v,h,m),ra.modifyFrames(e,s)}function ale(e){e=br.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ra.cleanPlot([],{},r,t),ra.purge(e),C6.purge(e),t._container&&t._container.remove(),delete e._context,e}function ile(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!br.equalDomRects(r,t._lastBBox)){var i=t._invTransform=br.inverseTransformMatrix(br.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function nle(e){var t=Fx.select(e),r=e._fullLayout;if(r._calcInverseTransform=ile,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};Fx.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=br.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(zse.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var a=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=a.append("g").classed("imagelayer",!0),r._shapeLowerLayer=a.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var s=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=s.append("g").classed("imagelayer",!0),r._shapeUpperLayer=s.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Va.animate=ele;Va.addFrames=tle;Va.deleteFrames=rle;Va.addTraces=vF;Va.deleteTraces=dF;Va.extendTraces=cF;Va.moveTraces=E6;Va.prependTraces=hF;Va.newPlot=Ose;Va._doPlot=Fse;Va.purge=ale;Va.react=Kse;Va.redraw=Bse;Va.relayout=Yg;Va.restyle=Bx;Va.setPlotConfig=qse;Va.update=Ux;Va._guiRelayout=L6(Yg);Va._guiRestyle=L6(Bx);Va._guiUpdate=L6(Ux);Va._storeDirectGUIEdit=Gse});var Vd=pe(Zf=>{"use strict";var ole=la();Zf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Zf.getRedrawFunc=function(e){return function(){ole.getComponentMethod("colorbar","draw")(e)}};Zf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Zf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var bF=window.URL||window.webkitURL;Zf.createObjectURL=function(e){return bF.createObjectURL(e)};Zf.revokeObjectURL=function(e){return bF.revokeObjectURL(e)};Zf.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=sle(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Zf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function sle(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var z6=Xa(),S2e=Ot(),lle=_i(),ule=Ba(),k2e=Oh(),P6=/"/g,Xg="TOBESTRIPPED",fle=new RegExp('("'+Xg+")|("+Xg+'")',"g");function cle(e){var t=z6.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(i){return i==="<"?"<":i==="&rt;"?">":i.indexOf("<")!==-1||i.indexOf(">")!==-1?"":t.html(i).text()});return t.remove(),r}function hle(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}wF.exports=function(t,r,i){var a=t._fullLayout,s=a._paper,l=a._toppaper,u=a.width,h=a.height,v;s.insert("rect",":first-child").call(lle.setRect,0,0,u,h).call(ule.fill,a.paper_bgcolor);var m=a._basePlotModules||[];for(v=0;v{"use strict";var vle=Ot(),dle=O_().EventEmitter,jg=Vd();function ple(e){var t=e.emitter||new dle,r=new Promise(function(i,a){var s=window.Image,l=e.svg,u=e.format||"png",h=e.canvas,v=e.scale||1,m=e.width||300,_=e.height||150,T=v*m,M=v*_,C=h.getContext("2d",{willReadFrequently:!0}),E=new s,L,I;u==="svg"||vle.isSafari()?I=jg.encodeSVG(l):(L=jg.createBlob(l,"svg"),I=jg.createObjectURL(L)),h.width=T,h.height=M,E.onload=function(){var O;switch(L=null,jg.revokeObjectURL(I),u!=="svg"&&C.drawImage(E,0,0,T,M),u){case"jpeg":O=h.toDataURL("image/jpeg");break;case"png":O=h.toDataURL("image/png");break;case"webp":O=h.toDataURL("image/webp");break;case"svg":O=I;break;default:var q="Image format is not jpeg, png, svg or webp.";if(a(new Error(q)),!e.promise)return t.emit("error",q)}i(O),e.promise||t.emit("success",O)},E.onerror=function(O){if(L=null,jg.revokeObjectURL(I),a(O),!e.promise)return t.emit("error",O)},E.src=I});return e.promise?r:t}TF.exports=ple});var R6=pe((L2e,SF)=>{"use strict";var AF=La(),MF=D6(),mle=to(),Yf=Ot(),Jg=Vd(),yle=Zx(),gle=Yx(),_le=r_().version,I6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function xle(e,t){t=t||{};var r,i,a,s;Yf.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},s={}):(e=Yf.getGraphDiv(e),r=Yf.extendDeep([],e.data),i=Yf.extendDeep({},e.layout),a=e._context,s=e._fullLayout||{});function l(H){return!(H in t)||Yf.validate(t[H],I6[H])}if(!l("width")&&t.width!==null||!l("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Yf.join2(I6.format.values,", "," or ")+".");var u={};function h(H,U){return Yf.coerce(t,u,I6,H,U)}var v=h("format"),m=h("width"),_=h("height"),T=h("scale"),M=h("setBackground"),C=h("imageDataOnly"),E=document.createElement("div");E.style.position="absolute",E.style.left="-5000px",document.body.appendChild(E);var L=Yf.extendFlat({},i);m?L.width=m:t.width===null&&AF(s.width)&&(L.width=s.width),_?L.height=_:t.height===null&&AF(s.height)&&(L.height=s.height);var I=Yf.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:M}),O=Jg.getRedrawFunc(E);function q(){return new Promise(function(H){setTimeout(H,Jg.getDelay(E._fullLayout))})}function z(){return new Promise(function(H,U){var W=yle(E,v,T),J=E._fullLayout.width,ee=E._fullLayout.height;function ie(){MF.purge(E),document.body.removeChild(E)}if(v==="full-json"){var oe=mle.graphJson(E,!1,"keepdata","object",!0,!0);return oe.version=_le,oe=JSON.stringify(oe),ie(),H(C?oe:Jg.encodeJSON(oe))}if(ie(),v==="svg")return H(C?W:Jg.encodeSVG(W));var he=document.createElement("canvas");he.id=Yf.randstr(),gle({format:v,width:J,height:ee,scale:T,canvas:he,svg:W,promise:!0}).then(H).catch(U)})}function N(H){return C?H.replace(Jg.IMAGE_URL_PREFIX,""):H}return new Promise(function(H,U){MF.newPlot(E,r,L,I).then(O).then(q).then(z).then(function(W){H(N(W))}).catch(function(W){U(W)})})}SF.exports=xle});var EF=pe((D2e,CF)=>{"use strict";var nu=Ot(),ble=to(),wle=N0(),Tle=cd().dfltConfig,Gu=nu.isPlainObject,Gd=Array.isArray,F6=nu.isArrayOrTypedArray;CF.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=wle.get(),a=[],s={_context:nu.extendFlat({},Tle)},l,u;Gd(t)?(s.data=nu.extendDeep([],t),l=t):(s.data=[],l=[],a.push(so("array","data"))),Gu(r)?(s.layout=nu.extendDeep({},r),u=r):(s.layout={},u={},arguments.length>1&&a.push(so("object","layout"))),ble.supplyDefaults(s);for(var h=s._fullData,v=l.length,m=0;m_.length&&i.push(so("unused",a,v.concat(_.length)));var I=_.length,O=Array.isArray(L);O&&(I=Math.min(I,L.length));var q,z,N,H,U;if(T.dimensions===2)for(z=0;z_[z].length&&i.push(so("unused",a,v.concat(z,_[z].length)));var W=_[z].length;for(q=0;q<(O?Math.min(W,L[z].length):W);q++)N=O?L[z][q]:L,H=m[z][q],U=_[z][q],nu.validate(H,N)?U!==H&&U!==+H&&i.push(so("dynamic",a,v.concat(z,q),H,U)):i.push(so("value",a,v.concat(z,q),H))}else i.push(so("array",a,v.concat(z),m[z]));else for(z=0;z{"use strict";var Lle=Ot(),Xx=Vd();function Dle(e,t,r){var i=document.createElement("a"),a="download"in i,s=new Promise(function(l,u){var h,v;if(a)return h=Xx.createBlob(e,r),v=Xx.createObjectURL(h),i.href=v,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),Xx.revokeObjectURL(v),h=null,l(t);if(Lle.isSafari()){var m=r==="svg"?",":";base64,";return Xx.octetStream(m+encodeURIComponent(e)),l(t)}u(new Error("download error"))});return s}LF.exports=Dle});var q6=pe((I2e,zF)=>{"use strict";var PF=Ot(),Ple=R6(),zle=DF(),z2e=Vd();function Ile(e,t){var r;return PF.isPlainObject(e)||(r=PF.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,a){r&&r._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var s=Ple(e,t),l=t.filename||e.fn||"newplot";l+="."+t.format.replace("-","."),s.then(function(u){return r&&(r._snapshotInProgress=!1),zle(u,l,t.format)}).then(function(u){i(u)}).catch(function(u){r&&(r._snapshotInProgress=!1),a(u)})})}zF.exports=Ile});var NF=pe(N6=>{"use strict";var Gs=Ot(),Zs=Gs.isPlainObject,IF=N0(),RF=to(),Rle=ys(),FF=Pi(),qF=cd().dfltConfig;N6.makeTemplate=function(e){e=Gs.isPlainObject(e)?e:Gs.getGraphDiv(e),e=Gs.extendDeep({_context:qF},{data:e.data,layout:e.layout}),RF.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(M){var C={};Kg(M,C,qle.bind(null,M));var E=Gs.coerce(M,{},Rle,"type"),L=i.data[E];L||(L=i.data[E]=[]),L.push(C)}),Kg(r,i.layout,Fle.bind(null,r)),delete i.layout.template;var a=r.template;if(Zs(a)){var s=a.layout,l,u,h,v,m,_;Zs(s)&&jx(s,i.layout);var T=a.data;if(Zs(T)){for(u in i.data)if(h=T[u],Array.isArray(h)){for(m=i.data[u],_=m.length,v=h.length,l=0;l<_;l++)jx(h[l%v],m[l]);for(l=_;lI?l.push({code:"unused",traceType:M,templateCount:L,dataCount:I}):I>L&&l.push({code:"reused",traceType:M,templateCount:L,dataCount:I})}}function O(q,z){for(var N in q)if(N.charAt(0)!=="_"){var H=q[N],U=ou(q,N,z);Zs(H)?(Array.isArray(q)&&H._template===!1&&H.templateitemname&&l.push({code:"missing",path:U,templateitemname:H.templateitemname}),O(H,U)):Array.isArray(H)&&Nle(H)&&O(H,U)}}if(O({data:h,layout:u},""),l.length)return l.map(Ble)};function Nle(e){for(var t=0;t{"use strict";var Jn=D6();Ji._doPlot=Jn._doPlot;Ji.newPlot=Jn.newPlot;Ji.restyle=Jn.restyle;Ji.relayout=Jn.relayout;Ji.redraw=Jn.redraw;Ji.update=Jn.update;Ji._guiRestyle=Jn._guiRestyle;Ji._guiRelayout=Jn._guiRelayout;Ji._guiUpdate=Jn._guiUpdate;Ji._storeDirectGUIEdit=Jn._storeDirectGUIEdit;Ji.react=Jn.react;Ji.extendTraces=Jn.extendTraces;Ji.prependTraces=Jn.prependTraces;Ji.addTraces=Jn.addTraces;Ji.deleteTraces=Jn.deleteTraces;Ji.moveTraces=Jn.moveTraces;Ji.purge=Jn.purge;Ji.addFrames=Jn.addFrames;Ji.deleteFrames=Jn.deleteFrames;Ji.animate=Jn.animate;Ji.setPlotConfig=Jn.setPlotConfig;var Ole=By().getGraphDiv,Ule=ox().eraseActiveShape;Ji.deleteActiveShape=function(e){return Ule(Ole(e))};Ji.toImage=R6();Ji.validate=EF();Ji.downloadImage=q6();var BF=NF();Ji.makeTemplate=BF.makeTemplate;Ji.validateTemplate=BF.validateTemplate});var VF=pe((q2e,UF)=>{"use strict";var B6=Ot(),Vle=la();UF.exports=function(t,r,i,a){var s=a("x"),l=a("y"),u,h=Vle.getComponentMethod("calendars","handleTraceDefaults");if(h(t,r,["x","y"],i),s){var v=B6.minRowLength(s);l?u=Math.min(v,B6.minRowLength(l)):(u=v,a("y0"),a("dy"))}else{if(!l)return 0;u=B6.minRowLength(l),a("x0"),a("dx")}return r._length=u,u}});var YF=pe((N2e,ZF)=>{"use strict";var HF=Ot().dateTick0,Hle=Zi(),Gle=Hle.ONEWEEK;function GF(e,t){return e%Gle===0?HF(t,1):HF(t,0)}ZF.exports=function(t,r,i,a,s){if(s||(s={x:!0,y:!0}),s.x){var l=a("xperiod");l&&(a("xperiod0",GF(l,r.xcalendar)),a("xperiodalignment"))}if(s.y){var u=a("yperiod");u&&(a("yperiod0",GF(u,r.ycalendar)),a("yperiodalignment"))}}});var jF=pe((B2e,XF)=>{"use strict";var WF=["orientation","groupnorm","stackgaps"];XF.exports=function(t,r,i,a){var s=i._scatterStackOpts,l=a("stackgroup");if(l){var u=r.xaxis+r.yaxis,h=s[u];h||(h=s[u]={});var v=h[l],m=!1;v?v.traces.push(r):(v=h[l]={traceIndices:[],traces:[r]},m=!0);for(var _={orientation:r.x&&!r.y?"h":"v"},T=0;T{"use strict";var JF=Ba(),KF=Lf().hasColorscale,QF=bd(),Zle=rs();$F.exports=function(t,r,i,a,s,l={}){var u=Zle.isBubble(t),h=(t.line||{}).color,v;if(h&&(i=h),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),l.noAngle||(s("marker.angle"),l.noAngleRef||s("marker.angleref"),l.noStandOff||s("marker.standoff")),s("marker.color",i),KF(t,"marker")&&QF(t,r,a,s,{prefix:"marker.",cLetter:"c"}),l.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),l.noLine||(h&&!Array.isArray(h)&&r.marker.color!==h?v=h:u?v=JF.background:v=JF.defaultLine,s("marker.line.color",v),KF(t,"marker.line")&&QF(t,r,a,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0),l.noLineDash||s("marker.line.dash")),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),l.gradient){var m=s("marker.gradient.type");m!=="none"&&s("marker.gradient.color")}}});var U6=pe((U2e,eq)=>{"use strict";var Yle=Ot().isArrayOrTypedArray,Wle=Lf().hasColorscale,Xle=bd();eq.exports=function(t,r,i,a,s,l){l||(l={});var u=(t.marker||{}).color;if(u&&u._inputArray&&(u=u._inputArray),s("line.color",i),Wle(t,"line"))Xle(t,r,a,s,{prefix:"line.",cLetter:"c"});else{var h=(Yle(u)?!1:u)||i;s("line.color",h)}s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}});var rq=pe((V2e,tq)=>{"use strict";tq.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var V6=pe((H2e,aq)=>{"use strict";var jle=Ot();aq.exports=function(e,t,r,i,a){a=a||{},i("textposition"),jle.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var H6=pe((G2e,nq)=>{"use strict";var Kx=Ba(),iq=Ot().isArrayOrTypedArray;function Jle(e){for(var t=Kx.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var oq=Ot(),Kle=la(),Qle=zc(),$le=Ax(),cm=rs(),eue=VF(),tue=YF(),rue=jF(),aue=O6(),iue=U6(),sq=rq(),nue=V6(),oue=H6(),sue=Ot().coercePattern;lq.exports=function(t,r,i,a){function s(M,C){return oq.coerce(t,r,Qle,M,C)}var l=eue(t,r,a,s);if(l||(r.visible=!1),!!r.visible){tue(t,r,a,s),s("xhoverformat"),s("yhoverformat"),s("zorder");var u=rue(t,r,a,s);a.scattermode==="group"&&r.orientation===void 0&&s("orientation","v");var h=!u&&l<$le.PTS_LINESONLY?"lines+markers":"lines";s("text"),s("hovertext"),s("mode",h),cm.hasMarkers(r)&&aue(t,r,i,a,s,{gradient:!0}),cm.hasLines(r)&&(iue(t,r,i,a,s,{backoff:!0}),sq(t,r,s),s("connectgaps"),s("line.simplify")),cm.hasText(r)&&(s("texttemplate"),s("texttemplatefallback"),nue(t,r,a,s));var v=[];(cm.hasMarkers(r)||cm.hasText(r))&&(s("cliponaxis"),s("marker.maxdisplayed"),v.push("points")),s("fill",u?u.fillDflt:"none"),r.fill!=="none"&&(oue(t,r,i,s,{moduleHasFillgradient:!0}),cm.hasLines(r)||sq(t,r,s),sue(s,"fillpattern",r.fillcolor,!1));var m=(r.line||{}).color,_=(r.marker||{}).color;(r.fill==="tonext"||r.fill==="toself")&&v.push("fills"),s("hoveron",v.join("+")||"points"),r.hoveron!=="fills"&&(s("hovertemplate"),s("hovertemplatefallback"));var T=Kle.getComponentMethod("errorbars","supplyDefaults");T(t,r,m||_||i,{axis:"y"}),T(t,r,m||_||i,{axis:"x",inherit:"y"}),oq.coerceSelectionMarkerOpacity(r,s)}}});var cq=pe((Y2e,fq)=>{"use strict";var lue=wg().getAxisGroup;fq.exports=function(t,r,i,a,s){var l=r.orientation,u=r[{v:"x",h:"y"}[l]+"axis"],h=lue(i,u)+l,v=i._alignmentOpts||{},m=a("alignmentgroup"),_=v[h];_||(_=v[h]={});var T=_[m];T?T.traces.push(r):T=_[m]={traces:[r],alignmentIndex:Object.keys(_).length,offsetGroups:{}};var M=a("offsetgroup")||"",C=T.offsetGroups,E=C[M];r._offsetIndex=0,(s!=="group"||M)&&(E||(E=C[M]={offsetIndex:Object.keys(C).length}),r._offsetIndex=E.offsetIndex)}});var vq=pe((W2e,hq)=>{"use strict";var uue=Ot(),fue=cq(),cue=zc();hq.exports=function(t,r){var i,a,s,l=r.scattermode;function u(T){return uue.coerce(a._input,a,cue,T)}if(r.scattermode==="group")for(s=0;s=0;m--){var _=t[m];if(_.type==="scatter"&&_.xaxis===h.xaxis&&_.yaxis===h.yaxis){_.opacity=void 0;break}}}}}});var pq=pe((X2e,dq)=>{"use strict";var hue=Ot(),vue=Z_();dq.exports=function(e,t){function r(a,s){return hue.coerce(e,t,vue,a,s)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var gq=pe((j2e,yq)=>{"use strict";var due=La(),mq=Ot(),pue=mq.dateTime2ms,Qx=mq.incrementMonth,mue=Zi(),yue=mue.ONEAVGMONTH;yq.exports=function(t,r,i,a){if(r.type!=="date")return{vals:a};var s=t[i+"periodalignment"];if(!s)return{vals:a};var l=t[i+"period"],u;if(due(l)){if(l=+l,l<=0)return{vals:a}}else if(typeof l=="string"&&l.charAt(0)==="M"){var h=+l.substring(1);if(h>0&&Math.round(h)===h)u=h;else return{vals:a}}for(var v=r.calendar,m=s==="start",_=s==="end",T=t[i+"period0"],M=pue(T,v)||0,C=[],E=[],L=[],I=a.length,O=0;Oq;)H=Qx(H,-u,v);for(;H<=q;)H=Qx(H,u,v);N=Qx(H,-u,v)}else{for(z=Math.round((q-M)/l),H=M+z*l;H>q;)H-=l;for(;H<=q;)H+=l;N=H-l}C[O]=m?N:_?H:(N+H)/2,E[O]=N,L[O]=H}return{vals:C,starts:E,ends:L}}});var Y6=pe((J2e,xq)=>{"use strict";var G6=Lf().hasColorscale,Z6=$y(),_q=rs();xq.exports=function(t,r){_q.hasLines(r)&&G6(r,"line")&&Z6(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),_q.hasMarkers(r)&&(G6(r,"marker")&&Z6(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),G6(r,"marker.line")&&Z6(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Qg=pe((K2e,bq)=>{"use strict";var hn=Ot();bq.exports=function(t,r){for(var i=0;i{"use strict";var wq=Ot();Tq.exports=function(t,r){wq.isArrayOrTypedArray(r.selectedpoints)&&wq.tagSelected(t,r)}});var K6=pe(($2e,Lq)=>{"use strict";var Aq=La(),X6=Ot(),$g=Xi(),Mq=gq(),W6=Zi().BADNUM,j6=rs(),gue=Y6(),_ue=Qg(),xue=$x();function bue(e,t){var r=e._fullLayout,i=t._xA=$g.getFromId(e,t.xaxis||"x","x"),a=t._yA=$g.getFromId(e,t.yaxis||"y","y"),s=i.makeCalcdata(t,"x"),l=a.makeCalcdata(t,"y"),u=Mq(t,i,"x",s),h=Mq(t,a,"y",l),v=u.vals,m=h.vals,_=t._length,T=new Array(_),M=t.ids,C=J6(t,r,i,a),E=!1,L,I,O,q,z,N;Cq(r,t);var H="x",U="y",W;if(C)X6.pushUnique(C.traceIndices,t.index),L=C.orientation==="v",L?(U="s",W="x"):(H="s",W="y"),z=C.stackgaps==="interpolate";else{var J=kq(t,_);Sq(e,t,i,a,v,m,J)}var ee=!!t.xperiodalignment,ie=!!t.yperiodalignment;for(I=0;I<_;I++){var oe=T[I]={},he=Aq(v[I]),fe=Aq(m[I]);he&&fe?(oe[H]=v[I],oe[U]=m[I],ee&&(oe.orig_x=s[I],oe.xEnd=u.ends[I],oe.xStart=u.starts[I]),ie&&(oe.orig_y=l[I],oe.yEnd=h.ends[I],oe.yStart=h.starts[I])):C&&(L?he:fe)?(oe[W]=L?v[I]:m[I],oe.gap=!0,z?(oe.s=W6,E=!0):oe.s=0):oe[H]=oe[U]=W6,M&&(oe.id=String(M[I]))}if(_ue(T,t),gue(e,t),xue(T,t),C){for(I=0;II&&T[q].gap;)q--;for(N=T[q].s,O=T.length-1;O>q;O--)T[O].s=N;for(;I{"use strict";Dq.exports=eb;var wue=Ot().distinctVals;function eb(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),a=[],s=0;s{"use strict";zq.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Bq=pe((rxe,Nq)=>{"use strict";var su=La(),{isArrayOrTypedArray:Rc}=Ot(),{BADNUM:hm}=Zi(),Tue=la(),e1=Xi(),{getAxisGroup:Aue}=wg(),tb=Pq(),{TEXTPAD:Mue}=Iq(),{LINE_SPACING:Sue}=No(),{BR_TAG_ALL:kue}=ro();function Cue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,u=[],h=[],v=0;vh+l||!su(u))}for(var m=0;mi(s))):i(e.text);let a=e.outsidetextfont.size*Sue*r+Mue;return{ppadplus:t.some(s=>s.s<0)?a:0,ppadminus:t.some(s=>s.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function Nue(e,t,r,i){for(var a=vm(i),s=0;s{"use strict";var Oq=K6(),Uq=Bq().setGroupPositions;function Oue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,u=[],h=[],v=0;vJ[m]&&m{"use strict";var Vue=_i(),Wq=Zi(),t1=Wq.BADNUM,Xq=Wq.LOG_CLIP,Gq=Xq+.5,Zq=Xq-.5,rb=Ot(),Hue=rb.segmentsIntersect,Yq=rb.constrain,iT=Ax();jq.exports=function(t,r){var i=r.trace||{},a=r.xaxis,s=r.yaxis,l=a.type==="log",u=s.type==="log",h=a._length,v=s._length,m=r.backoff,_=i.marker,T=r.connectGaps,M=r.baseTolerance,C=r.shape,E=C==="linear",L=i.fill&&i.fill!=="none",I=[],O=iT.minTolerance,q=t.length,z=new Array(q),N=0,H,U,W,J,ee,ie,oe,he,fe,Te,ke,Se,Ae,me,Ce,Me;function We(Ct){var Fe=t[Ct];if(!Fe)return!1;var Ue=r.linearized?a.l2p(Fe.x):a.c2p(Fe.x),wt=r.linearized?s.l2p(Fe.y):s.c2p(Fe.y);if(Ue===t1){if(l&&(Ue=a.c2p(Fe.x,!0)),Ue===t1)return!1;u&&wt===t1&&(Ue*=Math.abs(a._m*v*(a._m>0?Gq:Zq)/(s._m*h*(s._m>0?Gq:Zq)))),Ue*=1e3}if(wt===t1){if(u&&(wt=s.c2p(Fe.y,!0)),wt===t1)return!1;wt*=1e3}return[Ue,wt]}function it(Ct,Fe,Ue,wt){var Tt=Ue-Ct,vr=wt-Fe,Mr=.5-Ct,Tr=.5-Fe,Gr=Tt*Tt+vr*vr,pa=Tt*Mr+vr*Tr;if(pa>0&&pa1||Math.abs(Mr.y-Ue[0][1])>1)&&(Mr=[Mr.x,Mr.y],wt&&kt(Mr,Ct)Bt||Ct[1]de)return[Yq(Ct[0],mt,Bt),Yq(Ct[1],ft,de)]}function qt(Ct,Fe){if(Ct[0]===Fe[0]&&(Ct[0]===mt||Ct[0]===Bt)||Ct[1]===Fe[1]&&(Ct[1]===ft||Ct[1]===de))return!0}function Dt(Ct,Fe){var Ue=[],wt=Vt(Ct),Tt=Vt(Fe);return wt&&Tt&&qt(wt,Tt)||(wt&&Ue.push(wt),Tt&&Ue.push(Tt)),Ue}function At(Ct,Fe,Ue){return function(wt,Tt){var vr=Vt(wt),Mr=Vt(Tt),Tr=[];if(vr&&Mr&&qt(vr,Mr))return Tr;vr&&Tr.push(vr),Mr&&Tr.push(Mr);var Gr=2*rb.constrain((wt[Ct]+Tt[Ct])/2,Fe,Ue)-((vr||wt)[Ct]+(Mr||Tt)[Ct]);if(Gr){var pa;vr&&Mr?pa=Gr>0==vr[Ct]>Mr[Ct]?vr:Mr:pa=vr||Mr,pa[Ct]+=Gr}return Tr}}var Ut;C==="linear"||C==="spline"?Ut=bt:C==="hv"||C==="vh"?Ut=Dt:C==="hvh"?Ut=At(0,mt,Bt):C==="vhv"&&(Ut=At(1,ft,de));function Wt(Ct,Fe){var Ue=Fe[0]-Ct[0],wt=(Fe[1]-Ct[1])/Ue,Tt=(Ct[1]*Fe[0]-Fe[1]*Ct[0])/Ue;return Tt>0?[wt>0?mt:Bt,de]:[wt>0?Bt:mt,ft]}function Be(Ct){var Fe=Ct[0],Ue=Ct[1],wt=Fe===z[N-1][0],Tt=Ue===z[N-1][1];if(!(wt&&Tt))if(N>1){var vr=Fe===z[N-2][0],Mr=Ue===z[N-2][1];wt&&(Fe===mt||Fe===Bt)&&vr?Mr?N--:z[N-1]=Ct:Tt&&(Ue===ft||Ue===de)&&Mr?vr?N--:z[N-1]=Ct:z[N++]=Ct}else z[N++]=Ct}function ut(Ct){z[N-1][0]!==Ct[0]&&z[N-1][1]!==Ct[1]&&Be([at,Je]),Be(Ct),Pt=null,at=Je=0}var sr=rb.isArrayOrTypedArray(_);function Pr(Ct){if(Ct&&m&&(Ct.i=H,Ct.d=t,Ct.trace=i,Ct.marker=sr?_[Ct.i]:_,Ct.backoff=m),nt=Ct[0]/h,gt=Ct[1]/v,ye=Ct[0]Bt?Bt:0,Oe=Ct[1]de?de:0,ye||Oe){if(!N)z[N++]=[ye||Ct[0],Oe||Ct[1]];else if(Pt){var Fe=Ut(Pt,Ct);Fe.length>1&&(ut(Fe[0]),z[N++]=Fe[1])}else xt=Ut(z[N-1],Ct)[0],z[N++]=xt;var Ue=z[N-1];ye&&Oe&&(Ue[0]!==ye||Ue[1]!==Oe)?(Pt&&(at!==ye&&Je!==Oe?Be(at&&Je?Wt(Pt,Ct):[at||ye,Je||Oe]):at&&Je&&Be([at,Je])),Be([ye,Oe])):at-ye&&Je-Oe&&Be([ye||at,Oe||Je]),Pt=Ct,at=ye,Je=Oe}else Pt&&ut(Ut(Pt,Ct)[0]),z[N++]=Ct}for(H=0;HXe(ie,Lt))break;W=ie,Ae=fe[0]*he[0]+fe[1]*he[1],Ae>ke?(ke=Ae,J=ie,oe=!1):Ae=t.length||!ie)break;Pr(ie),U=ie}}Pt&&Be([at||Pt[0],Je||Pt[1]]),I.push(z.slice(0,N))}var vt=C.slice(C.length-1);if(m&&vt!=="h"&&vt!=="v"){for(var pt=!1,Nt=-1,er=[],Ht=0;Ht{"use strict";var Kq={tonextx:1,tonexty:1,tonext:1};Qq.exports=function(t,r,i){var a,s,l,u,h,v={},m=!1,_=-1,T=0,M=-1;for(s=0;s=0?h=M:(h=M=T,T++),h<_&&(m=!0),a._groupIndex=_=h;var C=i.slice();m&&C.sort(function(L,I){var O=L[0].trace,q=I[0].trace;return O._groupIndex-q._groupIndex||O.index-q.index});var E={};for(s=0;s{"use strict";var Zu=Xa(),Gue=la(),r1=Ot(),dm=r1.ensureSingle,tN=r1.identity,yn=_i(),pm=rs(),Zue=Jq(),Yue=$q(),ab=gx().tester;rN.exports=function(t,r,i,a,s,l){var u,h,v=!s,m=!!s&&s.duration>0,_=Yue(t,r,i);if(u=a.selectAll("g.trace").data(_,function(M){return M[0].trace.uid}),u.enter().append("g").attr("class",function(M){return"trace scatter trace"+M[0].trace.uid}).style("stroke-miterlimit",2),u.order(),Wue(t,u,r),m){l&&(h=l());var T=Zu.transition().duration(s.duration).ease(s.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()});T.each(function(){a.selectAll("g.trace").each(function(M,C){eN(t,C,r,M,_,this,s)})})}else u.each(function(M,C){eN(t,C,r,M,_,this,s)});v&&u.exit().remove(),a.selectAll("path:not([d])").remove()};function Wue(e,t,r){t.each(function(i){var a=dm(Zu.select(this),"g","fills");yn.setClipUrl(a,r.layerClipId,e);var s=i[0].trace;s._ownFill=null,s._nextFill=null;var l=[];s._ownfill&&l.push("_ownFill"),s._nexttrace&&l.push("_nextFill");var u=a.selectAll("g").data(l,tN);u.enter().append("g"),u.exit().remove(),u.order().each(function(h){s[h]=dm(Zu.select(this),"path","js-fill")})})}function eN(e,t,r,i,a,s,l){var u=e._context.staticPlot,h;Xue(e,t,r,i,a);var v=!!l&&l.duration>0;function m(At){return v?At.transition():At}var _=r.xaxis,T=r.yaxis,M=i[0].trace,C=M.line,E=Zu.select(s),L=dm(E,"g","errorbars"),I=dm(E,"g","lines"),O=dm(E,"g","points"),q=dm(E,"g","text");if(Gue.getComponentMethod("errorbars","plot")(e,L,r,l),M.visible!==!0)return;m(E).style("opacity",M.opacity);var z,N,H=M.fill.charAt(M.fill.length-1);H!=="x"&&H!=="y"&&(H="");var U,W;H==="y"?(U=1,W=T.c2p(0,!0)):H==="x"&&(U=0,W=_.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=E;var J="",ee=[],ie=M._prevtrace,oe=null,he=null;ie&&(J=ie._prevRevpath||"",N=ie._nextFill,ee=ie._ownPolygons,oe=ie._fillsegments,he=ie._fillElement);var fe,Te,ke="",Se="",Ae,me,Ce,Me,We,it,nt=[];M._polygons=[];var gt=[],Xe=[],kt=r1.noop;if(z=M._ownFill,pm.hasLines(M)||M.fill!=="none"){N&&N.datum(i),["hv","vh","hvh","vhv"].indexOf(C.shape)!==-1?(Ae=yn.steps(C.shape),me=yn.steps(C.shape.split("").reverse().join(""))):C.shape==="spline"?Ae=me=function(At){var Ut=At[At.length-1];return At.length>1&&At[0][0]===Ut[0]&&At[0][1]===Ut[1]?yn.smoothclosed(At.slice(1),C.smoothing):yn.smoothopen(At,C.smoothing)}:Ae=me=function(At){return"M"+At.join("L")},Ce=function(At){return me(At.reverse())},Xe=Zue(i,{xaxis:_,yaxis:T,trace:M,connectGaps:M.connectgaps,baseTolerance:Math.max(C.width||1,3)/4,shape:C.shape,backoff:C.backoff,simplify:C.simplify,fill:M.fill}),gt=new Array(Xe.length);var lt=0;for(h=0;h=u[0]&&E.x<=u[1]&&E.y>=h[0]&&E.y<=h[1]}),T=Math.ceil(_.length/m),M=0;a.forEach(function(E,L){var I=E[0].trace;pm.hasMarkers(I)&&I.marker.maxdisplayed>0&&L{"use strict";iN.exports={container:"marker",min:"cmin",max:"cmax"}});var oN=pe((lxe,nN)=>{"use strict";var ib=Xi();nN.exports=function(t,r,i){var a={},s={_fullLayout:i},l=ib.getFromTrace(s,r,"x"),u=ib.getFromTrace(s,r,"y"),h=t.orig_x;h===void 0&&(h=t.x);var v=t.orig_y;return v===void 0&&(v=t.y),a.xLabel=ib.tickText(l,l.c2l(h),!0).text,a.yLabel=ib.tickText(u,u.c2l(v),!0).text,a}});var uT=pe((uxe,sN)=>{"use strict";var oT=Xa(),mm=_i(),jue=la();function Jue(e){var t=oT.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=oT.select(this),a=r.trace||r[0].trace;sT(i,a,e)}),t.selectAll("g.text").each(function(r){var i=oT.select(this),a=r.trace||r[0].trace;lT(i,a,e)}),t.selectAll("g.trace path.js-line").call(mm.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(mm.fillGroupStyle,e,!1),jue.getComponentMethod("errorbars","style")(t)}function sT(e,t,r){mm.pointStyle(e.selectAll("path.point"),t,r)}function lT(e,t,r){mm.textPointStyle(e.selectAll("text"),t,r)}function Kue(e,t,r){var i=t[0].trace;i.selectedpoints?(mm.selectedPointStyle(r.selectAll("path.point"),i),mm.selectedTextStyle(r.selectAll("text"),i)):(sT(r,i,e),lT(r,i,e))}sN.exports={style:Jue,stylePoints:sT,styleText:lT,styleOnSelect:Kue}});var fT=pe((fxe,lN)=>{"use strict";var ym=Ba(),Que=rs();lN.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&ym.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var s=r.mcc||(t.marker||{}).color,l=r.mlcc||((t.marker||{}).line||{}).color;return a=s&&ym.opacity(s)?s:l&&ym.opacity(l)&&(r.mlw||((t.marker||{}).line||{}).width)?l:"",a?ym.opacity(a)<.3?ym.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&ym.opacity(i)&&Que.hasLines(t)&&t.line.width?i:t.fillcolor)}});var cN=pe((cxe,fN)=>{"use strict";var nb=Ot(),uN=Uu(),$ue=la(),efe=fT(),cT=Ba(),tfe=nb.fillText;fN.exports=function(t,r,i,a){var s=t.cd,l=s[0].trace,u=t.xa,h=t.ya,v=u.c2p(r),m=h.c2p(i),_=[v,m],T=l.hoveron||"",M=l.mode.indexOf("markers")!==-1?3:.5,C=!!l.xperiodalignment,E=!!l.yperiodalignment;if(T.indexOf("points")!==-1){var L=function(Se){if(C){var Ae=u.c2p(Se.xStart),me=u.c2p(Se.xEnd);return v>=Math.min(Ae,me)&&v<=Math.max(Ae,me)?0:1/0}var Ce=Math.max(3,Se.mrc||0),Me=1-1/Ce,We=Math.abs(u.c2p(Se.x)-v);return We=Math.min(Ae,me)&&m<=Math.max(Ae,me)?0:1/0}var Ce=Math.max(3,Se.mrc||0),Me=1-1/Ce,We=Math.abs(h.c2p(Se.y)-m);return Went!=de>=nt&&(mt=kt[Xe-1][0],Bt=kt[Xe][0],de-ft&&(lt=mt+(Bt-mt)*(nt-ft)/(de-ft),Ce=Math.min(Ce,lt),Me=Math.max(Me,lt)));return Ce=Math.max(Ce,0),Me=Math.min(Me,u._length),{x0:Ce,x1:Me,y0:nt,y1:nt}}if(T.indexOf("fills")!==-1&&l._fillElement){var fe=oe(l._fillElement)&&!oe(l._fillExclusionElement);if(fe){var Te=he(l._polygons);Te===null&&(Te={x0:_[0],x1:_[0],y0:_[1],y1:_[1]});var ke=cT.defaultLine;return cT.opacity(l.fillcolor)?ke=l.fillcolor:cT.opacity((l.line||{}).color)&&(ke=l.line.color),nb.extendFlat(t,{distance:t.maxHoverDistance,x0:Te.x0,x1:Te.x1,y0:Te.y0,y1:Te.y1,color:ke,hovertemplate:!1}),delete t.index,l.text&&!nb.isArrayOrTypedArray(l.text)?t.text=String(l.text):t.text=l.name,[t]}}}});var dN=pe((hxe,vN)=>{"use strict";var hN=rs();vN.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],u=i[0].trace,h,v,m,_,T=!hN.hasMarkers(u)&&!hN.hasText(u);if(T)return[];if(r===!1)for(h=0;h{"use strict";pN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var xN=pe((dxe,_N)=>{"use strict";var a1=la().traceIs,hT=D5();_N.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var s=i("type",(a.splomStash||{}).type);s==="-"&&(rfe(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function rfe(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var s=afe(t,r,i);if(s){if(s.type==="histogram"&&i==={v:"y",h:"x"}[s.orientation||"v"]){e.type="linear";return}var l=i+"calendar",u=s[l],h={noMultiCategory:!a1(s,"cartesian")||a1(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&i==={h:"x",v:"y"}[s.orientation||"v"]&&(h.noMultiCategory=!0),h.autotypenumbers=e.autotypenumbers,gN(s,i)){var v=yN(s),m=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(gN(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function yN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function gN(e,t){var r=yN(e),i=a1(e,"box-violin"),a=a1(e._fullInput||{},"candlestick");return i&&!a&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var wN=pe((pxe,bN)=>{"use strict";var ife=Fs().isTypedArraySpec;function nfe(e,t){var r=t.dataAttr||e._id.charAt(0),i={},a,s,l;if(t.axData)a=t.axData;else for(a=[],s=0;s0||ife(s),u;l&&(u="array");var h=i("categoryorder",u),v;h==="array"&&(v=i("categoryarray")),!l&&h==="array"&&(h=r.categoryorder="trace"),h==="trace"?r._initialCategories=[]:h==="array"?r._initialCategories=v.slice():(v=nfe(r,a).sort(),h==="category ascending"?r._initialCategories=v:h==="category descending"&&(r._initialCategories=v.reverse()))}}});var MN=pe((mxe,AN)=>{"use strict";var TN=Sf().mix,ofe=kf(),sfe=Ot();AN.exports=function(t,r,i,a){a=a||{};var s=a.dfltColor;function l(W,J){return sfe.coerce2(t,r,a.attributes,W,J)}var u=l("linecolor",s),h=l("linewidth"),v=i("showline",a.showLine||!!u||!!h);v||(delete r.linecolor,delete r.linewidth);var m=TN(s,a.bgColor,a.blend||ofe.lightFraction).toRgbString(),_=l("gridcolor",m),T=l("gridwidth"),M=l("griddash"),C=i("showgrid",a.showGrid||!!_||!!T||!!M);if(C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),a.hasMinor){var E=TN(r.gridcolor,a.bgColor,67).toRgbString(),L=l("minor.gridcolor",E),I=l("minor.gridwidth",r.gridwidth||1),O=l("minor.griddash",r.griddash||"solid"),q=i("minor.showgrid",!!L||!!I||!!O);q||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!a.noZeroLine){var z=l("zerolinelayer"),N=l("zerolinecolor",s),H=l("zerolinewidth"),U=i("zeroline",a.showGrid||!!N||!!H);U||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var dT=pe((yxe,DN)=>{"use strict";var SN=La(),lfe=la(),i1=Ot(),ufe=Pi(),ffe=Wl(),vT=Nu(),kN=e5(),CN=r5(),cfe=n5(),hfe=o5(),vfe=wN(),dfe=MN(),pfe=Q5(),EN=y2(),ob=eo().WEEKDAY_PATTERN,mfe=eo().HOUR_PATTERN;DN.exports=function(t,r,i,a,s){var l=a.letter,u=a.font||{},h=a.splomStash||{},v=i("visible",!a.visibleDflt),m=r._template||{},_=r.type||m.type||"-",T;if(_==="date"){var M=lfe.getComponentMethod("calendars","handleDefaults");M(t,r,"calendar",a.calendar),a.noTicklabelmode||(T=i("ticklabelmode"))}!a.noTicklabelindex&&(_==="date"||_==="linear")&&i("ticklabelindex");var C="";(!a.noTicklabelposition||_==="multicategory")&&(C=i1.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:T==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||i("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":_==="category"||_==="multicategory"?"allow":"hide past div"),EN(r,s),pfe(t,r,i,a),vfe(t,r,i,a),a.noHover||(_!=="category"&&i("hoverformat"),a.noUnifiedhovertitle||i("unifiedhovertitle.text"));var E=i("color"),L=E!==vT.color.dflt?E:u.color,I=h.label||s._dfltTitle[l];if(hfe(t,r,i,_,a),!v)return r;i("title.text",I),i1.coerceFont(i,"title.font",u,{overrideDflt:{size:i1.bigFont(u.size),color:L}}),kN(t,r,i,_);var O=a.hasMinor;if(O&&(ufe.newContainer(r,"minor"),kN(t,r,i,_,{isMinor:!0})),cfe(t,r,i,_,a),CN(t,r,i,a),O){var q=a.isMinor;a.isMinor=!0,CN(t,r,i,a),a.isMinor=q}dfe(t,r,i,{dfltColor:E,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:O,attributes:vT}),O&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var z=_==="multicategory";if(!a.noTickson&&(_==="category"||z)&&(r.ticks||r.showgrid)&&(z?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),z){var N=i("showdividers");N&&(i("dividercolor"),i("dividerwidth"))}if(_==="date")if(ffe(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:yfe}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var H=0;H=2){var l="",u,h;if(s.length===2){for(u=0;u<2;u++)if(h=LN(s[u]),h){l=ob;break}}var v=i("pattern",l);if(v===ob)for(u=0;u<2;u++)h=LN(s[u]),h&&(t.bounds[u]=s[u]=h-1);if(v)for(u=0;u<2;u++)switch(h=s[u],v){case ob:if(!SN(h)){t.enabled=!1;return}if(h=+h,h!==Math.floor(h)||h<0||h>=7){t.enabled=!1;return}t.bounds[u]=s[u]=h;break;case mfe:if(!SN(h)){t.enabled=!1;return}if(h=+h,h<0||h>24){t.enabled=!1;return}t.bounds[u]=s[u]=h;break}if(r.autorange===!1){var m=r.range;if(m[0]m[1]){t.enabled=!1;return}}else if(s[0]>m[0]&&s[1]{"use strict";var _fe=La(),sb=Ot();PN.exports=function(t,r,i,a){var s=a.counterAxes||[],l=a.overlayableAxes||[],u=a.letter,h=a.grid,v=a.overlayingDomain,m,_,T,M,C,E;h&&(_=h._domains[u][h._axisMap[r._id]],m=h._anchors[r._id],_&&(T=h[u+"side"].split(" ")[0],M=h.domain[u][T==="right"||T==="top"?1:0])),_=_||[0,1],m=m||(_fe(t.position)?"free":s[0]||"free"),T=T||(u==="x"?"bottom":"left"),M=M||0,C=0,E=!1;var L=sb.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(s),dflt:m}},"anchor"),I=sb.coerce(t,r,{side:{valType:"enumerated",values:u==="x"?["bottom","top"]:["left","right"],dflt:T}},"side");if(L==="free"){if(u==="y"){var O=i("autoshift");O&&(M=I==="left"?v[0]:v[1],E=r.automargin?r.automargin:!0,C=I==="left"?-3:3),i("shift",C)}i("position",M)}i("automargin",E);var q=!1;if(l.length&&(q=sb.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!q){var z=i("domain",_);z[0]>z[1]-1/4096&&(r.domain=_),sb.noneOrAll(t.domain,r.domain,_),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var UN=pe((_xe,ON)=>{"use strict";var Zd=Ot(),zN=Ba(),xfe=Cc().isUnifiedHover,bfe=S4(),IN=Pi(),wfe=k0(),RN=Nu(),Tfe=xN(),FN=dT(),Afe=wg(),qN=pT(),yT=jn(),Wf=yT.id2name,NN=yT.name2id,Mfe=eo().AX_ID_PATTERN,BN=la(),lb=BN.traceIs,mT=BN.getComponentMethod;function ub(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}ON.exports=function(t,r,i){var a=r.autotypenumbers,s={},l={},u={},h={},v={},m={},_={},T={},M={},C={},E,L;for(E=0;E{"use strict";var Sfe=Xa(),VN=la(),fb=Ot(),cl=_i(),cb=Xi();HN.exports=function(t,r,i,a){var s=t._fullLayout;if(r.length===0){cb.redrawComponents(t);return}function l(L){var I=L.xaxis,O=L.yaxis;s._defs.select("#"+L.clipId+"> rect").call(cl.setTranslate,0,0).call(cl.setScale,1,1),L.plot.call(cl.setTranslate,I._offset,O._offset).call(cl.setScale,1,1);var q=L.plot.selectAll(".scatterlayer .trace");q.selectAll(".point").call(cl.setPointGroupScale,1,1),q.selectAll(".textpoint").call(cl.setTextPointsScale,1,1),q.call(cl.hideOutsideRangePoints,L)}function u(L,I){var O=L.plotinfo,q=O.xaxis,z=O.yaxis,N=q._length,H=z._length,U=!!L.xr1,W=!!L.yr1,J=[];if(U){var ee=fb.simpleMap(L.xr0,q.r2l),ie=fb.simpleMap(L.xr1,q.r2l),oe=ee[1]-ee[0],he=ie[1]-ie[0];J[0]=(ee[0]*(1-I)+I*ie[0]-ee[0])/(ee[1]-ee[0])*N,J[2]=N*(1-I+I*he/oe),q.range[0]=q.l2r(ee[0]*(1-I)+I*ie[0]),q.range[1]=q.l2r(ee[1]*(1-I)+I*ie[1])}else J[0]=0,J[2]=N;if(W){var fe=fb.simpleMap(L.yr0,z.r2l),Te=fb.simpleMap(L.yr1,z.r2l),ke=fe[1]-fe[0],Se=Te[1]-Te[0];J[1]=(fe[1]*(1-I)+I*Te[1]-fe[1])/(fe[0]-fe[1])*H,J[3]=H*(1-I+I*Se/ke),z.range[0]=q.l2r(fe[0]*(1-I)+I*Te[0]),z.range[1]=z.l2r(fe[1]*(1-I)+I*Te[1])}else J[1]=0,J[3]=H;cb.drawOne(t,q,{skipTitle:!0}),cb.drawOne(t,z,{skipTitle:!0}),cb.redrawComponents(t,[q._id,z._id]);var Ae=U?N/J[2]:1,me=W?H/J[3]:1,Ce=U?J[0]:0,Me=W?J[1]:0,We=U?J[0]/J[2]*N:0,it=W?J[1]/J[3]*H:0,nt=q._offset-We,gt=z._offset-it;O.clipRect.call(cl.setTranslate,Ce,Me).call(cl.setScale,1/Ae,1/me),O.plot.call(cl.setTranslate,nt,gt).call(cl.setScale,Ae,me),cl.setPointGroupScale(O.zoomScalePts,1/Ae,1/me),cl.setTextPointsScale(O.zoomScaleTxt,1/Ae,1/me)}var h;a&&(h=a());function v(){for(var L={},I=0;Ii.duration?(v(),M=window.cancelAnimationFrame(E)):M=window.requestAnimationFrame(E)}return _=Date.now(),M=window.requestAnimationFrame(E),Promise.resolve()}});var gT=pe(Uo=>{"use strict";var vb=Xa(),ZN=la(),Yd=Ot(),kfe=to(),Cfe=_i(),YN=X_().getModuleCalcData,rv=jn(),Yu=eo(),Efe=Oh(),ri=Yd.ensureSingle;function hb(e,t,r){return Yd.ensureSingle(e,t,r,function(i){i.datum(r)})}var Wd=Yu.zindexSeparator;Uo.name="cartesian";Uo.attr=["xaxis","yaxis"];Uo.idRoot=["x","y"];Uo.idRegex=Yu.idRegex;Uo.attrRegex=Yu.attrRegex;Uo.attributes=mN();Uo.layoutAttributes=Nu();Uo.supplyLayoutDefaults=UN();Uo.transitionAxes=GN();Uo.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,s=r.cartesian,l=s,u={},h={},v,m,_;for(v=0;v0){var M=T.id;if(M.indexOf(Wd)!==-1)continue;M+=Wd+(v+1),T=Yd.extendFlat({},T,{id:M,plot:a._cartesianlayer.selectAll(".subplot").select("."+M)})}for(var C=[],E,L=0;L1&&(N+=Wd+z),q.push(u+N),l=0;l1,_=t.mainplotinfo;if(!t.mainplot||m)if(v)t.xlines=ri(i,"path","xlines-above"),t.ylines=ri(i,"path","ylines-above"),t.xaxislayer=ri(i,"g","xaxislayer-above"),t.yaxislayer=ri(i,"g","yaxislayer-above");else{if(!l){var T=ri(i,"g","layer-subplot");t.shapelayer=ri(T,"g","shapelayer"),t.imagelayer=ri(T,"g","imagelayer"),_&&m?(t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer):(t.minorGridlayer=ri(i,"g","minor-gridlayer"),t.gridlayer=ri(i,"g","gridlayer"),t.zerolinelayer=ri(i,"g","zerolinelayer"));var M=ri(i,"g","layer-between");t.shapelayerBetween=ri(M,"g","shapelayer"),t.imagelayerBetween=ri(M,"g","imagelayer"),ri(i,"path","xlines-below"),ri(i,"path","ylines-below"),t.overlinesBelow=ri(i,"g","overlines-below"),ri(i,"g","xaxislayer-below"),ri(i,"g","yaxislayer-below"),t.overaxesBelow=ri(i,"g","overaxes-below")}t.overplot=ri(i,"g","overplot"),t.plot=ri(t.overplot,"g",a),_&&m?t.zerolinelayerAbove=_.zerolinelayerAbove:t.zerolinelayerAbove=ri(i,"g","zerolinelayer-above"),l||(t.xlines=ri(i,"path","xlines-above"),t.ylines=ri(i,"path","ylines-above"),t.overlinesAbove=ri(i,"g","overlines-above"),ri(i,"g","xaxislayer-above"),ri(i,"g","yaxislayer-above"),t.overaxesAbove=ri(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+u),t.ylines=i.select(".ylines-"+h),t.xaxislayer=i.select(".xaxislayer-"+u),t.yaxislayer=i.select(".yaxislayer-"+h))}else{var C=_.plotgroup,E=a+"-x",L=a+"-y";t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer,t.zerolinelayerAbove=_.zerolinelayerAbove,ri(_.overlinesBelow,"path",E),ri(_.overlinesBelow,"path",L),ri(_.overaxesBelow,"g",E),ri(_.overaxesBelow,"g",L),t.plot=ri(_.overplot,"g",a),ri(_.overlinesAbove,"path",E),ri(_.overlinesAbove,"path",L),ri(_.overaxesAbove,"g",E),ri(_.overaxesAbove,"g",L),t.xlines=C.select(".overlines-"+u).select("."+E),t.ylines=C.select(".overlines-"+h).select("."+L),t.xaxislayer=C.select(".overaxes-"+u).select("."+E),t.yaxislayer=C.select(".overaxes-"+h).select("."+L)}l||(v||(hb(t.minorGridlayer,"g",t.xaxis._id),hb(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(I){return I[0]}).sort(rv.idSort),hb(t.gridlayer,"g",t.xaxis._id),hb(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(I){return I[0]}).sort(rv.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function jN(e,t){if(e){var r={};e.each(function(h){var v=h[0],m=vb.select(this);m.remove(),JN(v,t),r[v]=!0});for(var i in t._plots)for(var a=t._plots[i],s=a.overlays||[],l=0;l{"use strict";var db=rs();KN.exports={hasLines:db.hasLines,hasMarkers:db.hasMarkers,hasText:db.hasText,isBubble:db.isBubble,attributes:zc(),layoutAttributes:Z_(),supplyDefaults:uq(),crossTraceDefaults:vq(),supplyLayoutDefaults:pq(),calc:K6().calc,crossTraceCalc:Hq(),arraysToCalcdata:Qg(),plot:aN(),colorbar:nT(),formatLabels:oN(),style:uT().style,styleOnSelect:uT().styleOnSelect,hoverPoints:cN(),selectPoints:dN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:gT(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var tB=pe((Txe,eB)=>{"use strict";var Dfe=Xa(),Pfe=Ba(),$N=v6(),_T=Ot(),zfe=_T.strScale,Ife=_T.strRotate,Rfe=_T.strTranslate;eB.exports=function(t,r,i){var a=t.node(),s=$N[i.arrowhead||0],l=$N[i.startarrowhead||0],u=(i.arrowwidth||1)*(i.arrowsize||1),h=(i.arrowwidth||1)*(i.startarrowsize||1),v=r.indexOf("start")>=0,m=r.indexOf("end")>=0,_=s.backoff*u+i.standoff,T=l.backoff*h+i.startstandoff,M,C,E,L;if(a.nodeName==="line"){M={x:+t.attr("x1"),y:+t.attr("y1")},C={x:+t.attr("x2"),y:+t.attr("y2")};var I=M.x-C.x,O=M.y-C.y;if(E=Math.atan2(O,I),L=E+Math.PI,_&&T&&_+T>Math.sqrt(I*I+O*O)){fe();return}if(_){if(_*_>I*I+O*O){fe();return}var q=_*Math.cos(E),z=_*Math.sin(E);C.x+=q,C.y+=z,t.attr({x2:C.x,y2:C.y})}if(T){if(T*T>I*I+O*O){fe();return}var N=T*Math.cos(E),H=T*Math.sin(E);M.x-=N,M.y-=H,t.attr({x1:M.x,y1:M.y})}}else if(a.nodeName==="path"){var U=a.getTotalLength(),W="";if(U<_+T){fe();return}var J=a.getPointAtLength(0),ee=a.getPointAtLength(.1);E=Math.atan2(J.y-ee.y,J.x-ee.x),M=a.getPointAtLength(Math.min(T,U)),W="0px,"+T+"px,";var ie=a.getPointAtLength(U),oe=a.getPointAtLength(U-.1);L=Math.atan2(ie.y-oe.y,ie.x-oe.x),C=a.getPointAtLength(Math.max(0,U-_));var he=W?T+_:_;W+=U-he+"px,"+U+"px",t.style("stroke-dasharray",W)}function fe(){t.style("stroke-dasharray","0px,100px")}function Te(ke,Se,Ae,me){ke.path&&(ke.noRotate&&(Ae=0),Dfe.select(a.parentNode).append("path").attr({class:t.attr("class"),d:ke.path,transform:Rfe(Se.x,Se.y)+Ife(Ae*180/Math.PI)+zfe(me)}).style({fill:Pfe.rgb(i.arrowcolor),"stroke-width":0}))}v&&Te(l,M,E,h),m&&Te(s,C,L,u)}});var pb=pe((Axe,oB)=>{"use strict";var rB=Xa(),xT=la(),Ffe=to(),iv=Ot(),bT=iv.strTranslate,o1=Xi(),Xd=Ba(),Fc=_i(),aB=Uu(),wT=ro(),TT=Wh(),n1=jl(),qfe=Pi().arrayEditor,Nfe=tB();oB.exports={draw:Bfe,drawOne:iB,drawRaw:nB};function Bfe(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Tt="right":Tt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Tt]}for(var ft=!1,de=["x","y"],De=0;De1)&&(at===Oe?(Lt=Je.r2fraction(t["a"+ye]),(Lt<0||Lt>1)&&(ft=!0)):ft=!0),Ut=Je._offset+Je.r2p(t[ye]),ut=.5}else{var vt=Pr==="domain";ye==="x"?(Be=t[ye],Ut=vt?Je._offset+Je._length*Be:Ut=u.l+u.w*Be):(Be=1-t[ye],Ut=vt?Je._offset+Je._length*Be:Ut=u.t+u.h*Be),ut=t.showarrow?.5:Be}if(t.showarrow){At.head=Ut;var pt=t["a"+ye];if(sr=xt*Bt(.5,t.xanchor)-bt*Bt(.5,t.yanchor),at===Oe){var Nt=o1.getRefType(at);Nt==="domain"?(ye==="y"&&(pt=1-pt),At.tail=Je._offset+Je._length*pt):Nt==="paper"?ye==="y"?(pt=1-pt,At.tail=u.t+u.h*pt):At.tail=u.l+u.w*pt:At.tail=Je._offset+Je.r2p(pt),Wt=sr}else At.tail=Ut+pt,Wt=sr+pt;At.text=At.tail+sr;var er=l[ye==="x"?"width":"height"];if(Oe==="paper"&&(At.head=iv.constrain(At.head,1,er-1)),at==="pixel"){var Ht=-Math.max(At.tail-3,At.text),Gt=Math.min(At.tail+3,At.text)-er;Ht>0?(At.tail+=Ht,At.text+=Ht):Gt>0&&(At.tail-=Gt,At.text-=Gt)}At.tail+=Dt,At.head+=Dt}else sr=Vt*Bt(ut,qt),Wt=sr,At.text=Ut+sr;At.text+=Dt,sr+=Dt,Wt+=Dt,t["_"+ye+"padplus"]=Vt/2+Wt,t["_"+ye+"padminus"]=Vt/2-Wt,t["_"+ye+"size"]=Vt,t["_"+ye+"shift"]=sr}if(ft){U.remove();return}var hr=0,yr=0;if(t.align!=="left"&&(hr=(Xe-nt)*(t.align==="center"?.5:1)),t.valign!=="top"&&(yr=(kt-gt)*(t.valign==="middle"?.5:1)),We)Me.select("svg").attr({x:ee+hr-1,y:ee+yr}).call(Fc.setClipUrl,oe?E:null,e);else{var mr=ee+yr-it.top,Ct=ee+hr-it.left;ke.call(wT.positionText,Ct,mr).call(Fc.setClipUrl,oe?E:null,e)}he.select("rect").call(Fc.setRect,ee,ee,Xe,kt),ie.call(Fc.setRect,W/2,W/2,lt-W,mt-W),U.call(Fc.setTranslate,Math.round(L.x.text-lt/2),Math.round(L.y.text-mt/2)),q.attr({transform:"rotate("+I+","+L.x.text+","+L.y.text+")"});var Fe=function(wt,Tt){O.selectAll(".annotation-arrow-g").remove();var vr=L.x.head,Mr=L.y.head,Tr=L.x.tail+wt,Gr=L.y.tail+Tt,pa=L.x.text+wt,Aa=L.y.text+Tt,ai=iv.rotationXYMatrix(I,pa,Aa),bi=iv.apply2DTransform(ai),hi=iv.apply2DTransform2(ai),Hi=+ie.attr("width"),Ii=+ie.attr("height"),_n=pa-.5*Hi,an=_n+Hi,Gi=Aa-.5*Ii,ma=Gi+Ii,nn=[[_n,Gi,_n,ma],[_n,ma,an,ma],[an,ma,an,Gi],[an,Gi,_n,Gi]].map(hi);if(!nn.reduce(function(Ze,yt){return Ze^!!iv.segmentsIntersect(vr,Mr,vr+1e6,Mr+1e6,yt[0],yt[1],yt[2],yt[3])},!1)){nn.forEach(function(Ze){var yt=iv.segmentsIntersect(Tr,Gr,vr,Mr,Ze[0],Ze[1],Ze[2],Ze[3]);yt&&(Tr=yt.x,Gr=yt.y)});var Bi=t.arrowwidth,ir=t.arrowcolor,ii=t.arrowside,Xr=O.append("g").style({opacity:Xd.opacity(ir)}).classed("annotation-arrow-g",!0),le=Xr.append("path").attr("d","M"+Tr+","+Gr+"L"+vr+","+Mr).style("stroke-width",Bi+"px").call(Xd.stroke,Xd.rgb(ir));if(Nfe(le,ii,t),h.annotationPosition&&le.node().parentNode&&!i){var te=vr,se=Mr;if(t.standoff){var ue=Math.sqrt(Math.pow(vr-Tr,2)+Math.pow(Mr-Gr,2));te+=t.standoff*(Tr-vr)/ue,se+=t.standoff*(Gr-Mr)/ue}var Le=Xr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Tr-te)+","+(Gr-se),transform:bT(te,se)}).style("stroke-width",Bi+6+"px").call(Xd.stroke,"rgba(0,0,0,0)").call(Xd.fill,"rgba(0,0,0,0)"),Ne,rt;n1.init({element:Le.node(),gd:e,prepFn:function(){var Ze=Fc.getTranslate(U);Ne=Ze.x,rt=Ze.y,a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0)},moveFn:function(Ze,yt){var Et=bi(Ne,rt),Rt=Et[0]+Ze,tr=Et[1]+yt;U.call(Fc.setTranslate,Rt,tr),M("x",av(a,Ze,"x",u,t)),M("y",av(s,yt,"y",u,t)),t.axref===t.xref&&M("ax",av(a,Ze,"ax",u,t)),t.ayref===t.yref&&M("ay",av(s,yt,"ay",u,t)),Xr.attr("transform",bT(Ze,yt)),q.attr({transform:"rotate("+I+","+Rt+","+tr+")"})},doneFn:function(){xT.call("_guiRelayout",e,C());var Ze=document.querySelector(".js-notes-box-panel");Ze&&Ze.redraw(Ze.selectedObj)}})}}};if(t.showarrow&&Fe(0,0),z){var Ue;n1.init({element:U.node(),gd:e,prepFn:function(){Ue=q.attr("transform")},moveFn:function(wt,Tt){var vr="pointer";if(t.showarrow)t.axref===t.xref?M("ax",av(a,wt,"ax",u,t)):M("ax",t.ax+wt),t.ayref===t.yref?M("ay",av(s,Tt,"ay",u.w,t)):M("ay",t.ay+Tt),Fe(wt,Tt);else{if(i)return;var Mr,Tr;if(a)Mr=av(a,wt,"x",u,t);else{var Gr=t._xsize/u.w,pa=t.x+(t._xshift-t.xshift)/u.w-Gr/2;Mr=n1.align(pa+wt/u.w,Gr,0,1,t.xanchor)}if(s)Tr=av(s,Tt,"y",u,t);else{var Aa=t._ysize/u.h,ai=t.y-(t._yshift+t.yshift)/u.h-Aa/2;Tr=n1.align(ai-Tt/u.h,Aa,0,1,t.yanchor)}M("x",Mr),M("y",Tr),(!a||!s)&&(vr=n1.getCursor(a?.5:Mr,s?.5:Tr,t.xanchor,t.yanchor))}q.attr({transform:bT(wt,Tt)+Ue}),TT(U,vr)},clickFn:function(wt,Tt){t.captureevents&&e.emit("plotly_clickannotation",H(Tt))},doneFn:function(){TT(U),xT.call("_guiRelayout",e,C());var wt=document.querySelector(".js-notes-box-panel");wt&&wt.redraw(wt.selectedObj)}})}}h.annotationText?ke.call(wT.makeEditable,{delegate:U,gd:e}).call(Se).on("edit",function(me){t.text=me,this.call(Se),M("text",me),a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0),xT.call("_guiRelayout",e,C())}):ke.call(Se)}});var hB=pe((Mxe,cB)=>{"use strict";var sB=Ot(),Ofe=la(),lB=Pi().arrayEditor;cB.exports={hasClickToShow:Ufe,onClick:Vfe};function Ufe(e,t){var r=fB(e,t);return r.on.length>0||r.explicitOff.length>0}function Vfe(e,t){var r=fB(e,t),i=r.on,a=r.off.concat(r.explicitOff),s={},l=e._fullLayout.annotations,u,h;if(i.length||a.length){for(u=0;u{"use strict";var AT=Ot(),gm=Ba();vB.exports=function(t,r,i,a){a("opacity");var s=a("bgcolor"),l=a("bordercolor"),u=gm.opacity(l);a("borderpad");var h=a("borderwidth"),v=a("showarrow");a("text",v?" ":i._dfltTitle.annotation),a("textangle"),AT.coerceFont(a,"font",i.font),a("width"),a("align");var m=a("height");if(m&&a("valign"),v){var _=a("arrowside"),T,M;_.indexOf("end")!==-1&&(T=a("arrowhead"),M=a("arrowsize")),_.indexOf("start")!==-1&&(a("startarrowhead",T),a("startarrowsize",M)),a("arrowcolor",u?r.bordercolor:gm.defaultLine),a("arrowwidth",(u&&h||1)*2),a("standoff"),a("startstandoff")}var C=a("hovertext"),E=i.hoverlabel||{};if(C){var L=a("hoverlabel.bgcolor",E.bgcolor||(gm.opacity(s)?gm.rgb(s):gm.defaultLine)),I=a("hoverlabel.bordercolor",E.bordercolor||gm.contrast(L)),O=AT.extendFlat({},E.font);O.color||(O.color=I),AT.coerceFont(a,"hoverlabel.font",O)}a("captureevents",!!C)}});var pB=pe((kxe,dB)=>{"use strict";var ST=Ot(),jd=Xi(),Hfe=Wl(),Gfe=MT(),Zfe=um();dB.exports=function(t,r){Hfe(t,r,{name:"annotations",handleItemDefaults:Yfe})};function Yfe(e,t,r){function i(q,z){return ST.coerce(e,t,Zfe,q,z)}var a=i("visible"),s=i("clicktoshow");if(a||s){Gfe(e,t,r,i);for(var l=t.showarrow,u=["x","y"],h=[-10,-30],v={_fullLayout:r},m=0;m<2;m++){var _=u[m],T=jd.coerceRef(e,t,v,_,"","paper");if(T!=="paper"){var M=jd.getFromId(v,T);M._annIndices.push(t._index)}if(jd.coercePosition(t,v,i,T,_,.5),l){var C="a"+_,E=jd.coerceRef(e,t,v,C,"pixel",["pixel","paper"]);E!=="pixel"&&E!==T&&(E=t[C]="pixel");var L=E==="pixel"?h[m]:.4;jd.coercePosition(t,v,i,E,C,L)}i(_+"anchor"),i(_+"shift")}if(ST.noneOrAll(e,t,["x","y"]),l&&ST.noneOrAll(e,t,["ax","ay"]),s){var I=i("xclick"),O=i("yclick");t._xclick=I===void 0?t.x:jd.cleanPosition(I,v,t.xref),t._yclick=O===void 0?t.y:jd.cleanPosition(O,v,t.yref)}}}});var gB=pe((Cxe,yB)=>{"use strict";var kT=Ot(),Jd=Xi(),Wfe=pb().draw;yB.exports=function(t){var r=t._fullLayout,i=kT.filterVisible(r.annotations);if(i.length&&t._fullData.length)return kT.syncOrAsync([Wfe,Xfe],t)};function Xfe(e){var t=e._fullLayout;kT.filterVisible(t.annotations).forEach(function(r){var i=Jd.getFromId(e,r.xref),a=Jd.getFromId(e,r.yref),s=Jd.getRefType(r.xref),l=Jd.getRefType(r.yref);r._extremes={},s==="range"&&mB(r,i),l==="range"&&mB(r,a)})}function mB(e,t){var r=t._id,i=r.charAt(0),a=e[i],s=e["a"+i],l=e[i+"ref"],u=e["a"+i+"ref"],h=e["_"+i+"padplus"],v=e["_"+i+"padminus"],m={x:1,y:-1}[i]*e[i+"shift"],_=3*e.arrowsize*e.arrowwidth||0,T=_+m,M=_-m,C=3*e.startarrowsize*e.arrowwidth||0,E=C+m,L=C-m,I;if(u===l){var O=Jd.findExtremes(t,[t.r2c(a)],{ppadplus:T,ppadminus:M}),q=Jd.findExtremes(t,[t.r2c(s)],{ppadplus:Math.max(h,E),ppadminus:Math.max(v,L)});I={min:[O.min[0],q.min[0]],max:[O.max[0],q.max[0]]}}else E=s?E+s:E,L=s?L-s:L,I=Jd.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(h,T,E),ppadminus:Math.max(v,M,L)});e._extremes[r]=I}});var xB=pe((Exe,_B)=>{"use strict";var jfe=La(),Jfe=c_();_B.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(!(s||l))return;var u=t._fullLayout.annotations,h=r._id.charAt(0),v,m;function _(M){var C=v[M],E=null;s?E=Jfe(C,r.range):E=Math.pow(10,C),jfe(E)||(E=null),a(m+M,E)}for(var T=0;T{"use strict";var CT=pb(),bB=hB();wB.exports={moduleType:"component",name:"annotations",layoutAttributes:um(),supplyLayoutDefaults:pB(),includeBasePlot:Og()("annotations"),calcAutorange:gB(),draw:CT.draw,drawOne:CT.drawOne,drawRaw:CT.drawRaw,hasClickToShow:bB.hasClickToShow,onClick:bB.onClick,convertCoords:xB()}});var mb=pe((Dxe,AB)=>{"use strict";var Ni=um(),Kfe=il().overrideAll,Qfe=Pi().templatedArray;AB.exports=Kfe(Qfe("annotation",{visible:Ni.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ni.xanchor,xshift:Ni.xshift,yanchor:Ni.yanchor,yshift:Ni.yshift,text:Ni.text,textangle:Ni.textangle,font:Ni.font,width:Ni.width,height:Ni.height,opacity:Ni.opacity,align:Ni.align,valign:Ni.valign,bgcolor:Ni.bgcolor,bordercolor:Ni.bordercolor,borderpad:Ni.borderpad,borderwidth:Ni.borderwidth,showarrow:Ni.showarrow,arrowcolor:Ni.arrowcolor,arrowhead:Ni.arrowhead,startarrowhead:Ni.startarrowhead,arrowside:Ni.arrowside,arrowsize:Ni.arrowsize,startarrowsize:Ni.startarrowsize,arrowwidth:Ni.arrowwidth,standoff:Ni.standoff,startstandoff:Ni.startstandoff,hovertext:Ni.hovertext,hoverlabel:Ni.hoverlabel,captureevents:Ni.captureevents}),"calc","from-root")});var SB=pe((Pxe,MB)=>{"use strict";var ET=Ot(),$fe=Xi(),ece=Wl(),tce=MT(),rce=mb();MB.exports=function(t,r,i){ece(t,r,{name:"annotations",handleItemDefaults:ace,fullLayout:i.fullLayout})};function ace(e,t,r,i){function a(u,h){return ET.coerce(e,t,rce,u,h)}function s(u){var h=u+"axis",v={_fullLayout:{}};return v._fullLayout[h]=r[h],$fe.coercePosition(t,v,a,u,u,.5)}var l=a("visible");l&&(tce(e,t,i.fullLayout,a),s("x"),s("y"),s("z"),ET.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",a("ax",-10),a("ay",-30),ET.noneOrAll(e,t,["ax","ay"])))}});var LB=pe((zxe,EB)=>{"use strict";var kB=Ot(),CB=Xi();EB.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function LT(e,t){var r=[0,0,0,0],i,a;for(i=0;i<4;++i)for(a=0;a<4;++a)r[a]+=e[4*i+a]*t[i];return r}function nce(e,t){var r=LT(e.projection,LT(e.view,LT(e.model,[t[0],t[1],t[2],1])));return r}DB.exports=nce});var IB=pe((Rxe,zB)=>{"use strict";var oce=pb().drawRaw,sce=PB(),lce=["x","y","z"];zB.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,s=0;s1){u=!0;break}}u?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=sce(t.glplot.cameraParams,[r.xaxis.r2l(l.x)*i[0],r.yaxis.r2l(l.y)*i[1],r.zaxis.r2l(l.z)*i[2]]),oce(t.graphDiv,l,s,t.id,l._xa,l._ya))}}});var qB=pe((Fxe,FB)=>{"use strict";var uce=la(),RB=Ot();FB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:mb()}}},layoutAttributes:mb(),handleDefaults:SB(),includeBasePlot:fce,convert:LB(),draw:IB()};function fce(e,t){var r=uce.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),s=0;s{"use strict";var qxe=eo(),NB=qo(),BB=zc().line,cce=_c().dash,Wu=mn().extendFlat,hce=Pi().templatedArray,Nxe=Ng(),_m=ys(),OB=um(),{shapeTexttemplateAttrs:vce,templatefallbackAttrs:dce}=Cf(),pce=w_();UB.exports=hce("shape",{visible:Wu({},_m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Wu({},_m.legend,{editType:"calc+arraydraw"}),legendgroup:Wu({},_m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Wu({},_m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:NB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Wu({},_m.legendrank,{editType:"calc+arraydraw"}),legendwidth:Wu({},_m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Wu({},OB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Wu({},OB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Wu({},BB.color,{editType:"arraydraw"}),width:Wu({},BB.width,{editType:"calc+arraydraw"}),dash:Wu({},cce,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:vce({},{keys:Object.keys(pce)}),texttemplatefallback:dce({editType:"arraydraw"}),font:NB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var HB=pe((Oxe,VB)=>{"use strict";var xm=Ot(),hl=Xi(),mce=Wl(),yce=DT(),s1=Qh();VB.exports=function(t,r){mce(t,r,{name:"shapes",handleItemDefaults:_ce})};function gce(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function _ce(e,t,r){function i(q,z){return xm.coerce(e,t,yce,q,z)}t._isShape=!0;var a=i("visible");if(!a)return;var s=i("showlegend");i("legend"),i("legendgroup"),s&&(i("legendwidth"),i("legendgrouptitle.text"),xm.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var l=i("path"),u=l?"path":"rect",h=i("type",u),v=h!=="path";v&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var m=i("line.width");m&&(i("line.color"),i("line.dash"));var _=i("xsizemode"),T=i("ysizemode");let M=[.25,.75],C=[0,10];["x","y"].forEach(q=>{var z=q+"anchor",N=q==="x"?_:T,H={_fullLayout:r},U,W,J,ee;let ie=q+"ref",oe=e[ie];if(Array.isArray(oe)&&oe.length>0){let he=s1.countDefiningCoords(h,l,q);ee=hl.coerceRefArray(e,t,H,q,void 0,"paper",he),t["_"+q+"refArray"]=!0}else ee=hl.coerceRef(e,t,H,q,void 0,"paper");if(Array.isArray(ee))ee.forEach(function(he){hl.getRefType(he)==="range"&&(U=hl.getFromId(H,he),U&&U._shapeIndices.indexOf(t._index)===-1&&U._shapeIndices.push(t._index))}),v&&[0,1].forEach(function(he){let fe=ee[he];hl.getRefType(fe)==="range"?(U=hl.getFromId(H,fe),W=s1.shapePositionToRange(U),J=s1.rangeToShapePosition(U),(U.type==="category"||U.type==="multicategory")&&i(q+he+"shift")):W=J=xm.identity;let ke=q+he,Se=e[ke];if(e[ke]=W(e[ke],!0),N==="pixel"?i(ke,C[he]):hl.coercePosition(t,H,i,fe,ke,M[he]),t[ke]=J(t[ke]),e[ke]=Se,he===0&&N==="pixel"){let Ae=e[z];e[z]=W(e[z],!0),hl.coercePosition(t,H,i,fe,z,.25),t[z]=J(t[z]),e[z]=Ae}});else{if(hl.getRefType(ee)==="range"?(U=hl.getFromId(H,ee),U._shapeIndices.push(t._index),J=s1.rangeToShapePosition(U),W=s1.shapePositionToRange(U),v&&(U.type==="category"||U.type==="multicategory")&&(i(q+"0shift"),i(q+"1shift"))):W=J=xm.identity,v){let fe=q+"0",Te=q+"1",ke=e[fe],Se=e[Te];e[fe]=W(e[fe],!0),e[Te]=W(e[Te],!0),N==="pixel"?(i(fe,C[0]),i(Te,C[1])):(hl.coercePosition(t,H,i,ee,fe,M[0]),hl.coercePosition(t,H,i,ee,Te,M[1])),t[fe]=J(t[fe]),t[Te]=J(t[Te]),e[fe]=ke,e[Te]=Se}if(N==="pixel"){let fe=e[z];e[z]=W(e[z],!0),hl.coercePosition(t,H,i,ee,z,.25),t[z]=J(t[z]),e[z]=fe}}}),v&&xm.noneOrAll(e,t,["x0","x1","y0","y1"]);var E=h==="line",L,I;if(v&&(L=i("label.texttemplate"),i("label.texttemplatefallback")),L||(I=i("label.text")),I||L){i("label.textangle");var O=i("label.textposition",E?"middle":"middle center");i("label.xanchor"),i("label.yanchor",gce(E,O)),i("label.padding"),xm.coerceFont(i,"label.font",r.font)}}});var YB=pe((Uxe,ZB)=>{"use strict";var xce=Ba(),GB=Ot();function bce(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}ZB.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),GB.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var a=i("newshape.line.width");if(a){var s=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",xce.contrast(s)),i("newshape.line.dash")}var l=t.dragmode==="drawline",u=i("newshape.label.text"),h=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),u||h){i("newshape.label.textangle");var v=i("newshape.label.textposition",l?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",bce(l,v)),i("newshape.label.padding"),GB.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var $B=pe((Vxe,QB)=>{"use strict";var PT=Ot(),lu=Xi(),Xf=gg(),zT=Qh();QB.exports=function(t){var r=t._fullLayout,i=PT.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var a=0;a{l=lu.getFromId(t,_),s._extremes[l._id]=lu.findExtremes(l,T,XB(s))})}else s.xref!=="paper"&&h!=="domain"&&(l=lu.getFromId(t,s.xref),u=JB(l,s,Xf.paramIsX),u&&(s._extremes[l._id]=lu.findExtremes(l,u,XB(s))));if(v==="array"){let m=WB(t,s,"y");Object.entries(m).forEach(([_,T])=>{l=lu.getFromId(t,_),s._extremes[l._id]=lu.findExtremes(l,T,jB(s))})}else s.yref!=="paper"&&v!=="domain"&&(l=lu.getFromId(t,s.yref),u=JB(l,s,Xf.paramIsY),u&&(s._extremes[l._id]=lu.findExtremes(l,u,jB(s))))}};function WB(e,t,r){let i=t[r+"ref"],a=r==="x"?Xf.paramIsX:Xf.paramIsY;function s(_,T){_==="paper"||lu.getRefType(_)==="domain"||(l[_]||(l[_]=[]),l[_].push(T))}let l={};if(t.type==="path"&&t.path){let _=t.path.match(Xf.segmentRE)||[];for(var u=0,h=0;h<_.length;h++){let T=_[h],M=T.charAt(0),C=a[M].drawn;if(C===void 0)continue;let E=T.slice(1).match(Xf.paramRE);E&&E.length>C&&(s(i[u],E[C]),u++)}}else s(i[0],t[r+"0"]),s(i[1],t[r+"1"]);let v={};for(let _ in l){let T=lu.getFromId(e,_);if(T){var m=T.type==="category"||T.type==="multicategory"?T.r2c:T.d2c;T.type==="date"&&(m=zT.decodeDate(m)),v[T._id]=l[_].map(m)}}return v}function XB(e){return KB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function jB(e){return KB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function KB(e,t,r,i,a,s){var l=e/2,u=s;if(t==="pixel"){var h=a?zT.extractPathCoords(a,s?Xf.paramIsY:Xf.paramIsX):[r,i],v=PT.aggNums(Math.max,null,h),m=PT.aggNums(Math.min,null,h),_=m<0?Math.abs(m)+l:l,T=v>0?v+l:l;return{ppad:l,ppadplus:u?_:T,ppadminus:u?T:_}}else return{ppad:l}}function JB(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",s,l,u=0,h=0,v=a?e.r2c:e.d2c,m=t[i+"sizemode"]==="scaled";if(m?(s=t[i+"0"],l=t[i+"1"],a&&(u=t[i+"0shift"],h=t[i+"1shift"])):(s=t[i+"anchor"],l=t[i+"anchor"]),s!==void 0)return[v(s)+u,v(l)+h];if(t.path){var _=1/0,T=-1/0,M=t.path.match(Xf.segmentRE),C,E,L,I,O;for(e.type==="date"&&(v=zT.decodeDate(v)),C=0;CT&&(T=O)));if(T>=_)return[_,T]}}});var rO=pe((Hxe,tO)=>{"use strict";var eO=ox();tO.exports={moduleType:"component",name:"shapes",layoutAttributes:DT(),supplyLayoutDefaults:HB(),supplyDrawNewShapeDefaults:YB(),includeBasePlot:Og()("shapes"),calcAutorange:$B(),draw:eO.draw,drawOne:eO.drawOne}});var IT=pe((Zxe,iO)=>{"use strict";var aO=eo(),wce=Pi().templatedArray,Gxe=Ng();iO.exports=wce("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",aO.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",aO.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var oO=pe((Yxe,nO)=>{"use strict";var Tce=Ot(),RT=Xi(),Ace=Wl(),Mce=IT(),Sce="images";nO.exports=function(t,r){var i={name:Sce,handleItemDefaults:kce};Ace(t,r,i)};function kce(e,t,r){function i(T,M){return Tce.coerce(e,t,Mce,T,M)}var a=i("source"),s=i("visible",!!a);if(!s)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var l={_fullLayout:r},u=["x","y"],h=0;h<2;h++){var v=u[h],m=RT.coerceRef(e,t,l,v,"paper",void 0);if(m!=="paper"){var _=RT.getFromId(l,m);_._imgIndices.push(t._index)}RT.coercePosition(t,l,i,m,v,0)}return t}});var fO=pe((Wxe,uO)=>{"use strict";var sO=Xa(),Cce=_i(),bm=Xi(),lO=jn(),Ece=Oh();uO.exports=function(t){var r=t._fullLayout,i=[],a={},s=[],l,u;for(u=0;u{"use strict";var cO=La(),Lce=c_();hO.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(s||l){for(var u=t._fullLayout.images,h=r._id.charAt(0),v,m,_=0;_{"use strict";dO.exports={moduleType:"component",name:"images",layoutAttributes:IT(),supplyLayoutDefaults:oO(),includeBasePlot:Og()("images"),draw:fO(),convertCoords:vO()}});var yb=pe((Jxe,mO)=>{"use strict";mO.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var FT=pe((Kxe,gO)=>{"use strict";var Dce=qo(),Pce=kf(),zce=mn().extendFlat,Ice=il().overrideAll,Rce=T_(),yO=Pi().templatedArray,Fce=yO("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});gO.exports=Ice(yO("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Fce,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:zce(Rce({editType:"arraydraw"}),{}),font:Dce({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Pce.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var wO=pe((Qxe,bO)=>{"use strict";var gb=Ot(),_O=Wl(),xO=FT(),qce=yb(),Nce=qce.name,Bce=xO.buttons;bO.exports=function(t,r){var i={name:Nce,handleItemDefaults:Oce};_O(t,r,i)};function Oce(e,t,r){function i(l,u){return gb.coerce(e,t,xO,l,u)}var a=_O(e,t,{name:"buttons",handleItemDefaults:Uce}),s=i("visible",a.length>0);s&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),gb.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),gb.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function Uce(e,t){function r(a,s){return gb.coerce(e,t,Bce,a,s)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var MO=pe(($xe,AO)=>{"use strict";AO.exports=rn;var Xu=Xa(),TO=Ba(),wm=_i(),_b=Ot();function rn(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}rn.barWidth=2;rn.barLength=20;rn.barRadius=2;rn.barPad=1;rn.barColor="#808BA4";rn.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,s=a.width,l=a.height;this.position=t;var u=this.position.l,h=this.position.w,v=this.position.t,m=this.position.h,_=this.position.direction,T=_==="down",M=_==="left",C=_==="right",E=_==="up",L=h,I=m,O,q,z,N;!T&&!M&&!C&&!E&&(this.position.direction="down",T=!0);var H=T||E;H?(O=u,q=O+L,T?(z=v,N=Math.min(z+I,l),I=N-z):(N=v+I,z=Math.max(N-I,0),I=N-z)):(z=v,N=z+I,M?(q=u+L,O=Math.max(q-L,0),L=q-O):(O=u,q=Math.min(O+L,s),L=q-O)),this._box={l:O,t:z,w:L,h:I};var U=h>L,W=rn.barLength+2*rn.barPad,J=rn.barWidth+2*rn.barPad,ee=u,ie=v+m;ie+J>l&&(ie=l-J);var oe=this.container.selectAll("rect.scrollbar-horizontal").data(U?[0]:[]);oe.exit().on(".drag",null).remove(),oe.enter().append("rect").classed("scrollbar-horizontal",!0).call(TO.fill,rn.barColor),U?(this.hbar=oe.attr({rx:rn.barRadius,ry:rn.barRadius,x:ee,y:ie,width:W,height:J}),this._hbarXMin=ee+W/2,this._hbarTranslateMax=L-W):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var he=m>I,fe=rn.barWidth+2*rn.barPad,Te=rn.barLength+2*rn.barPad,ke=u+h,Se=v;ke+fe>s&&(ke=s-fe);var Ae=this.container.selectAll("rect.scrollbar-vertical").data(he?[0]:[]);Ae.exit().on(".drag",null).remove(),Ae.enter().append("rect").classed("scrollbar-vertical",!0).call(TO.fill,rn.barColor),he?(this.vbar=Ae.attr({rx:rn.barRadius,ry:rn.barRadius,x:ke,y:Se,width:fe,height:Te}),this._vbarYMin=Se+Te/2,this._vbarTranslateMax=I-Te):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var me=this.id,Ce=O-.5,Me=he?q+fe+.5:q+.5,We=z-.5,it=U?N+J+.5:N+.5,nt=a._topdefs.selectAll("#"+me).data(U||he?[0]:[]);if(nt.exit().remove(),nt.enter().append("clipPath").attr("id",me).append("rect"),U||he?(this._clipRect=nt.select("rect").attr({x:Math.floor(Ce),y:Math.floor(We),width:Math.ceil(Me)-Math.floor(Ce),height:Math.ceil(it)-Math.floor(We)}),this.container.call(wm.setClipUrl,me,this.gd),this.bg.attr({x:u,y:v,width:h,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(wm.setClipUrl,null),delete this._clipRect),U||he){var gt=Xu.behavior.drag().on("dragstart",function(){Xu.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(gt);var Xe=Xu.behavior.drag().on("dragstart",function(){Xu.event.sourceEvent.preventDefault(),Xu.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));U&&this.hbar.on(".drag",null).call(Xe),he&&this.vbar.on(".drag",null).call(Xe)}this.setTranslate(r,i)};rn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(wm.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};rn.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Xu.event.dx),this.vbar&&(r-=Xu.event.dy),this.setTranslate(t,r)};rn.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Xu.event.deltaY),this.vbar&&(r+=Xu.event.deltaY),this.setTranslate(t,r)};rn.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,s=_b.constrain(Xu.event.x,i,a),l=(s-i)/(a-i),u=this.position.w-this._box.w;t=l*u}if(this.vbar){var h=r+this._vbarYMin,v=h+this._vbarTranslateMax,m=_b.constrain(Xu.event.y,h,v),_=(m-h)/(v-h),T=this.position.h-this._box.h;r=_*T}this.setTranslate(t,r)};rn.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=_b.constrain(t||0,0,i),r=_b.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(wm.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var s=t/i;this.hbar.call(wm.setTranslate,t+s*this._hbarTranslateMax,r)}if(this.vbar){var l=r/a;this.vbar.call(wm.setTranslate,t,r+l*this._vbarTranslateMax)}}});var RO=pe((ebe,IO)=>{"use strict";var Tm=Xa(),l1=to(),u1=Ba(),Am=_i(),vl=Ot(),xb=ro(),Vce=Pi().arrayEditor,kO=No().LINE_SPACING,aa=yb(),Hce=MO();IO.exports=function(t){var r=t._fullLayout,i=vl.filterVisible(r[aa.name]);function a(T){l1.autoMargin(t,PO(T))}var s=r._menulayer.selectAll("g."+aa.containerClassName).data(i.length>0?[0]:[]);if(s.enter().append("g").classed(aa.containerClassName,!0).style("cursor","pointer"),s.exit().each(function(){Tm.select(this).selectAll("g."+aa.headerGroupClassName).each(a)}).remove(),i.length!==0){var l=s.selectAll("g."+aa.headerGroupClassName).data(i,Gce);l.enter().append("g").classed(aa.headerGroupClassName,!0);for(var u=vl.ensureSingle(s,"g",aa.dropdownButtonGroupClassName,function(T){T.style("pointer-events","all")}),h=0;h{"use strict";var Kce=yb();FO.exports={moduleType:"component",name:Kce.name,layoutAttributes:FT(),supplyLayoutDefaults:wO(),draw:RO()}});var c1=pe((rbe,NO)=>{"use strict";NO.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var OT=pe((abe,UO)=>{"use strict";var BO=qo(),Qce=T_(),$ce=mn().extendDeepAll,ehe=il().overrideAll,the=Oy(),OO=Pi().templatedArray,Kd=c1(),rhe=OO("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});UO.exports=ehe(OO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:rhe,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:$ce(Qce({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:the.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:BO({})},font:BO({}),activebgcolor:{valType:"color",dflt:Kd.gripBgActiveColor},bgcolor:{valType:"color",dflt:Kd.railBgColor},bordercolor:{valType:"color",dflt:Kd.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Kd.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Kd.tickLength},tickcolor:{valType:"color",dflt:Kd.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Kd.minorTickLength}}),"arraydraw","from-root")});var ZO=pe((ibe,GO)=>{"use strict";var Mm=Ot(),VO=Wl(),HO=OT(),ahe=c1(),ihe=ahe.name,nhe=HO.steps;GO.exports=function(t,r){VO(t,r,{name:ihe,handleItemDefaults:ohe})};function ohe(e,t,r){function i(_,T){return Mm.coerce(e,t,HO,_,T)}for(var a=VO(e,t,{name:"steps",handleItemDefaults:she}),s=0,l=0;l{"use strict";var ju=Xa(),bb=to(),nv=Ba(),Ju=_i(),dl=Ot(),lhe=dl.strTranslate,h1=ro(),uhe=Pi().arrayEditor,xa=c1(),HT=No(),XO=HT.LINE_SPACING,UT=HT.FROM_TL,VT=HT.FROM_BR;eU.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=fhe(i,t),s=i._infolayer.selectAll("g."+xa.containerClassName).data(a.length>0?[0]:[]);s.enter().append("g").classed(xa.containerClassName,!0).style("cursor",r?null:"ew-resize");function l(m){m._commandObserver&&(m._commandObserver.remove(),delete m._commandObserver),bb.autoMargin(t,jO(m))}if(s.exit().each(function(){ju.select(this).selectAll("g."+xa.groupClassName).each(l)}).remove(),a.length!==0){var u=s.selectAll("g."+xa.groupClassName).data(a,che);u.enter().append("g").classed(xa.groupClassName,!0),u.exit().each(l).remove();for(var h=0;h0&&(u=u.transition().duration(t.transition.duration).ease(t.transition.easing)),u.attr("transform",lhe(l-xa.gripWidth*.5,t._dims.currentValueTotalHeight))}}function GT(e,t){var r=e._dims;return r.inputAreaStart+xa.stepInset+(r.inputAreaLength-2*xa.stepInset)*Math.min(1,Math.max(0,t))}function WO(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-xa.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*xa.stepInset-2*r.inputAreaStart)))}function ghe(e,t,r){var i=r._dims,a=dl.ensureSingle(e,"rect",xa.railTouchRectClass,function(s){s.call(QO,t,e,r).style("pointer-events","all")});a.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,xa.tickOffset+r.ticklen+i.labelHeight)}).call(nv.fill,r.bgcolor).attr("opacity",0),Ju.setTranslate(a,0,i.currentValueTotalHeight)}function _he(e,t){var r=t._dims,i=r.inputAreaLength-xa.railInset*2,a=dl.ensureSingle(e,"rect",xa.railRectClass);a.attr({width:i,height:xa.railWidth,rx:xa.railRadius,ry:xa.railRadius,"shape-rendering":"crispEdges"}).call(nv.stroke,t.bordercolor).call(nv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Ju.setTranslate(a,xa.railInset,(r.inputAreaWidth-xa.railWidth)*.5+r.currentValueTotalHeight)}});var aU=pe((obe,rU)=>{"use strict";var xhe=c1();rU.exports={moduleType:"component",name:xhe.name,layoutAttributes:OT(),supplyLayoutDefaults:ZO(),draw:tU()}});var Tb=pe((sbe,nU)=>{"use strict";var iU=kf();nU.exports={bgcolor:{valType:"color",dflt:iU.background,editType:"plot"},bordercolor:{valType:"color",dflt:iU.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var ZT=pe((lbe,oU)=>{"use strict";oU.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Ab=pe((ube,sU)=>{"use strict";sU.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var fU=pe(Sb=>{"use strict";var bhe=jn(),whe=ro(),lU=Ab(),The=No().LINE_SPACING,Mb=lU.name;function uU(e){var t=e&&e[Mb];return t&&t.visible}Sb.isVisible=uU;Sb.makeData=function(e){for(var t=bhe.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var kb=Ot(),cU=Pi(),hU=jn(),Ahe=Tb(),Mhe=ZT();vU.exports=function(t,r,i){var a=t[i],s=r[i];if(!(a.rangeslider||r._requestRangeslider[s._id]))return;kb.isPlainObject(a.rangeslider)||(a.rangeslider={});var l=a.rangeslider,u=cU.newContainer(s,"rangeslider");function h(N,H){return kb.coerce(l,u,Ahe,N,H)}var v,m;function _(N,H){return kb.coerce(v,m,Mhe,N,H)}var T=h("visible");if(T){h("bgcolor",r.plot_bgcolor),h("bordercolor"),h("borderwidth"),h("thickness"),h("autorange",!s.isValidRange(l.range)),h("range");var M=r._subplots;if(M)for(var C=M.cartesian.filter(function(N){return N.slice(0,Math.max(0,N.indexOf("y")))===hU.name2id(i)}).map(function(N){return N.slice(N.indexOf("y"),N.length)}),E=kb.simpleMap(C,hU.id2name),L=0;L{"use strict";var She=jn().list,khe=ig().getAutoRange,Che=Ab();pU.exports=function(t){for(var r=She(t,"x",!0),i=0;i{"use strict";var Cb=Xa(),Ehe=la(),Lhe=to(),gn=Ot(),Eb=gn.strTranslate,gU=_i(),ov=Ba(),Dhe=rg(),Phe=gT(),YT=jn(),zhe=jl(),Ihe=Wh(),za=Ab();_U.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=Ae.max)ke=ie[Se+1];else if(Te=Ae.pmax)ke=ie[Se+1];else if(Te0?e.touches[0].clientX:0}function Rhe(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+za.slideBoxClassName).node(),s=e.select("rect."+za.grabAreaMinClassName).node(),l=e.select("rect."+za.grabAreaMaxClassName).node();function u(){var h=Cb.event,v=h.target,m=yU(h),_=m-e.node().getBoundingClientRect().left,T=i.d2p(r._rl[0]),M=i.d2p(r._rl[1]),C=zhe.coverSlip();this.addEventListener("touchmove",E),this.addEventListener("touchend",L),C.addEventListener("mousemove",E),C.addEventListener("mouseup",L);function E(I){var O=yU(I),q=+O-m,z,N,H;switch(v){case a:if(H="ew-resize",T+q>r._length||M+q<0)return;z=T+q,N=M+q;break;case s:if(H="col-resize",T+q>r._length)return;z=T+q,N=M;break;case l:if(H="col-resize",M+q<0)return;z=T,N=M+q;break;default:H="ew-resize",z=_,N=_+q;break}if(N{"use strict";var Zhe=Ot(),Yhe=Tb(),Whe=ZT(),WT=fU();bU.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Zhe.extendFlat({},Yhe,{yaxis:Whe})}}},layoutAttributes:Tb(),handleDefaults:dU(),calcAutorange:mU(),draw:xU(),isVisible:WT.isVisible,makeData:WT.makeData,autoMarginOpts:WT.autoMarginOpts}});var Lb=pe((pbe,AU)=>{"use strict";var Xhe=qo(),TU=kf(),jhe=Pi().templatedArray,Jhe=jhe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});AU.exports={visible:{valType:"boolean",editType:"plot"},buttons:Jhe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Xhe({editType:"plot"}),bgcolor:{valType:"color",dflt:TU.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:TU.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var XT=pe((mbe,MU)=>{"use strict";MU.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var CU=pe((ybe,kU)=>{"use strict";var Db=Ot(),Khe=Ba(),Qhe=Pi(),$he=Wl(),SU=Lb(),jT=XT();kU.exports=function(t,r,i,a,s){var l=t.rangeselector||{},u=Qhe.newContainer(r,"rangeselector");function h(M,C){return Db.coerce(l,u,SU,M,C)}var v=$he(l,u,{name:"buttons",handleItemDefaults:eve,calendar:s}),m=h("visible",v.length>0);if(m){var _=tve(r,i,a);h("x",_[0]),h("y",_[1]),Db.noneOrAll(t,r,["x","y"]),h("xanchor"),h("yanchor"),Db.coerceFont(h,"font",i.font);var T=h("bgcolor");h("activecolor",Khe.contrast(T,jT.lightAmount,jT.darkAmount)),h("bordercolor"),h("borderwidth")}};function eve(e,t,r,i){var a=i.calendar;function s(h,v){return Db.coerce(e,t,SU.buttons,h,v)}var l=s("visible");if(l){var u=s("step");u!=="all"&&(a&&a!=="gregorian"&&(u==="month"||u==="year")?t.stepmode="backward":s("stepmode"),s("count")),s("label")}}function tve(e,t,r){for(var i=r.filter(function(u){return t[u].anchor===e._id}),a=0,s=0;s{"use strict";var rve=Y3(),ave=Ot().titleCase;EU.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var s=ive(t,r);a[i+".range[0]"]=s[0],a[i+".range[1]"]=s[1]}return a};function ive(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,s=rve["utc"+ave(a)],l=t.count,u;switch(t.stepmode){case"backward":u=e.l2r(+s.offset(i,-l));break;case"todate":var h=s.offset(i,-l);u=e.l2r(+s.ceil(h));break}var v=r[1];return[u,v]}});var NU=pe((_be,qU)=>{"use strict";var zb=Xa(),nve=la(),ove=to(),DU=Ba(),FU=_i(),qc=Ot(),PU=qc.strTranslate,Pb=ro(),sve=jn(),QT=No(),zU=QT.LINE_SPACING,IU=QT.FROM_TL,RU=QT.FROM_BR,KT=XT(),lve=LU();qU.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(uve(t),fve);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var s=zb.select(this),l=a,u=l.rangeselector,h=s.selectAll("g.button").data(qc.filterVisible(u.buttons));h.enter().append("g").classed("button",!0),h.exit().remove(),h.each(function(v){var m=zb.select(this),_=lve(l,v);v._isActive=cve(l,v,_),m.call(JT,u,v),m.call(vve,u,v,t),m.on("click",function(){t._dragged||nve.call("_guiRelayout",t,_)}),m.on("mouseover",function(){v._isHovered=!0,m.call(JT,u,v)}),m.on("mouseout",function(){v._isHovered=!1,m.call(JT,u,v)})}),pve(t,h,u,l._name,s)})};function uve(e){for(var t=sve.list(e,"x",!0),r=[],i=0;i{"use strict";BU.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Lb()}}},layoutAttributes:Lb(),handleDefaults:CU(),draw:NU()}});var Ib=pe($T=>{"use strict";var UU=mn().extendFlat;$T.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",s=t.description?" "+t.description:"",l={x:UU({},r,{}),y:UU({},r,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};$T.defaults=function(e,t,r,i){var a=i&&i.x||[0,1],s=i&&i.y||[0,1],l=t.grid;if(l){var u=r("domain.column");u!==void 0&&(u{"use strict";var mve=Ot(),yve=T0().counter,gve=Ib().attributes,VU=eo().idRegex,_ve=Pi(),eA={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[yve("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[VU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[VU.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:gve({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Rb(e,t,r){var i=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(a.length)return a}function xve(e,t){var r=e.grid||{},i=Rb(t,r,"x"),a=Rb(t,r,"y");if(!e.grid&&!i&&!a)return;var s=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),l=Array.isArray(i),u=Array.isArray(a),h=l&&i!==r.xaxes&&u&&a!==r.yaxes,v,m;s?(v=r.subplots.length,m=r.subplots[0].length):(u&&(v=a.length),l&&(m=i.length));var _=_ve.newContainer(t,"grid");function T(H,U){return mve.coerce(r,_,eA,H,U)}var M=T("rows",v),C=T("columns",m);if(!(M*C>1)){delete t.grid;return}if(!s&&!l&&!u){var E=T("pattern")==="independent";E&&(s=!0)}_._hasSubplotGrid=s;var L=T("roworder"),I=L==="top to bottom",O=s?.2:.1,q=s?.3:.1,z,N;h&&t._splomGridDflt&&(z=t._splomGridDflt.xside,N=t._splomGridDflt.yside),_._domains={x:HU("x",T,O,z,C),y:HU("y",T,q,N,M,I)}}function HU(e,t,r,i,a,s){var l=t(e+"gap",r),u=t("domain."+e);t(e+"side",i);for(var h=new Array(a),v=u[0],m=(u[1]-v)/(a-l),_=m*(1-l),T=0;T{"use strict";WU.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var JU=pe((Abe,jU)=>{"use strict";var XU=La(),wve=la(),Tve=Ot(),Ave=Pi(),Mve=tA();jU.exports=function(e,t,r,i){var a="error_"+i.axis,s=Ave.newContainer(t,a),l=e[a]||{};function u(C,E){return Tve.coerce(l,s,Mve,C,E)}var h=l.array!==void 0||l.value!==void 0||l.type==="sqrt",v=u("visible",h);if(v!==!1){var m=u("type","array"in l?"data":"percent"),_=!0;m!=="sqrt"&&(_=u("symmetric",!((m==="data"?"arrayminus":"valueminus")in l))),m==="data"?(u("array"),u("traceref"),_||(u("arrayminus"),u("tracerefminus"))):(m==="percent"||m==="constant")&&(u("value"),_||u("valueminus"));var T="copy_"+i.inherit+"style";if(i.inherit){var M=t["error_"+i.inherit];(M||{}).visible&&u(T,!(l.color||XU(l.thickness)||XU(l.width)))}(!i.inherit||!s[T])&&(u("color",r),u("thickness"),u("width",wve.traceIs(t,"gl3d")?0:4))}}});var rA=pe((Mbe,QU)=>{"use strict";QU.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var a=t.array||[];if(i)return function(v,m){var _=+a[m];return[_,_]};var s=t.arrayminus||[];return function(v,m){var _=+a[m],T=+s[m];return!isNaN(_)||!isNaN(T)?[T||0,_||0]:[NaN,NaN]}}else{var l=KU(r,t.value),u=KU(r,t.valueminus);return i||t.valueminus===void 0?function(v){var m=l(v);return[m,m]}:function(v){return[u(v),l(v)]}}};function KU(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var tV=pe((Sbe,eV)=>{"use strict";var aA=La(),Sve=la(),iA=Xi(),kve=Ot(),Cve=rA();eV.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var rV=Xa(),sv=La(),Eve=_i(),Lve=rs();aV.exports=function(t,r,i,a){var s,l=i.xaxis,u=i.yaxis,h=a&&a.duration>0,v=t._context.staticPlot;r.each(function(m){var _=m[0].trace,T=_.error_x||{},M=_.error_y||{},C;_.ids&&(C=function(O){return O.id});var E=Lve.hasMarkers(_)&&_.marker.maxdisplayed>0;!M.visible&&!T.visible&&(m=[]);var L=rV.select(this).selectAll("g.errorbar").data(m,C);if(L.exit().remove(),!!m.length){T.visible||L.selectAll("path.xerror").remove(),M.visible||L.selectAll("path.yerror").remove(),L.style("opacity",1);var I=L.enter().append("g").classed("errorbar",!0);h&&I.style("opacity",0).transition().duration(a.duration).style("opacity",1),Eve.setClipUrl(L,i.layerClipId,t),L.each(function(O){var q=rV.select(this),z=Dve(O,l,u);if(!(E&&!O.vis)){var N,H=q.select("path.yerror");if(M.visible&&sv(z.x)&&sv(z.yh)&&sv(z.ys)){var U=M.width;N="M"+(z.x-U)+","+z.yh+"h"+2*U+"m-"+U+",0V"+z.ys,z.noYS||(N+="m-"+U+",0h"+2*U),s=!H.size(),s?H=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0):h&&(H=H.transition().duration(a.duration).ease(a.easing)),H.attr("d",N)}else H.remove();var W=q.select("path.xerror");if(T.visible&&sv(z.y)&&sv(z.xh)&&sv(z.xs)){var J=(T.copy_ystyle?M:T).width;N="M"+z.xh+","+(z.y-J)+"v"+2*J+"m0,-"+J+"H"+z.xs,z.noXS||(N+="m0,-"+J+"v"+2*J),s=!W.size(),s?W=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0):h&&(W=W.transition().duration(a.duration).ease(a.easing)),W.attr("d",N)}else W.remove()}})}})};function Dve(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),sv(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),sv(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var sV=pe((Cbe,oV)=>{"use strict";var Pve=Xa(),nV=Ba();oV.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},s=i.error_x||{},l=Pve.select(this);l.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(nV.stroke,a.color),s.copy_ystyle&&(s=a),l.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(nV.stroke,s.color)})}});var fV=pe((Ebe,uV)=>{"use strict";var v1=Ot(),lV=il().overrideAll,d1=tA(),Qd={error_x:v1.extendFlat({},d1),error_y:v1.extendFlat({},d1)};delete Qd.error_x.copy_zstyle;delete Qd.error_y.copy_zstyle;delete Qd.error_y.copy_ystyle;var p1={error_x:v1.extendFlat({},d1),error_y:v1.extendFlat({},d1),error_z:v1.extendFlat({},d1)};delete p1.error_x.copy_ystyle;delete p1.error_y.copy_ystyle;delete p1.error_z.copy_ystyle;delete p1.error_z.copy_zstyle;uV.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Qd,bar:Qd,histogram:Qd,scatter3d:lV(p1,"calc","nested"),scattergl:lV(Qd,"calc","nested")}},supplyDefaults:JU(),calc:tV(),makeComputeError:rA(),plot:iV(),style:sV(),hoverInfo:zve};function zve(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var hV=pe((Lbe,cV)=>{"use strict";cV.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var _V=pe((Dbe,gV)=>{"use strict";var lv=Xa(),nA=Sf(),qb=to(),vV=la(),Nc=Xi(),Fb=jl(),uu=Ot(),Qu=uu.strTranslate,yV=mn().extendFlat,oA=Wh(),Ku=_i(),sA=Ba(),Ive=rg(),Rve=ro(),Fve=Lf().flipScale,qve=dT(),Nve=pT(),Bve=Nu(),lA=No(),dV=lA.LINE_SPACING,pV=lA.FROM_TL,mV=lA.FROM_BR,Ki=hV().cn;function Ove(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Ki.colorbar).data(Uve(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Ki.colorbar,!0),r.each(function(i){var a=lv.select(this);uu.ensureSingle(a,"rect",Ki.cbbg),uu.ensureSingle(a,"g",Ki.cbfills),uu.ensureSingle(a,"g",Ki.cblines),uu.ensureSingle(a,"g",Ki.cbaxis,function(l){l.classed(Ki.crisp,!0)}),uu.ensureSingle(a,"g",Ki.cbtitleunshift,function(l){l.append("g").classed(Ki.cbtitle,!0)}),uu.ensureSingle(a,"rect",Ki.cboutline);var s=Vve(a,i,e);s&&s.then&&(e._promises||[]).push(s),e._context.edits.colorbarPosition&&Hve(a,i,e)}),r.exit().each(function(i){qb.autoMargin(e,i._id)}).remove(),r.order()}function Uve(e){var t=e._fullLayout,r=e.calcdata,i=[],a,s,l,u;function h(q){return yV(q,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function v(){typeof u.calc=="function"?u.calc(e,l,a):(a._fillgradient=s.reversescale?Fve(s.colorscale):s.colorscale,a._zrange=[s[u.min],s[u.max]])}for(var m=0;m1){var De=Math.pow(10,Math.floor(Math.log(de)/Math.LN10));Bt*=De*uu.roundUp(de/De,[2,5,10]),(Math.abs(oe.start)/oe.size+1e-6)%1<2e-6&&(lt.tick0=0)}lt.dtick=Bt}lt.domain=i?[Xe+C/z.h,Xe+me-C/z.h]:[Xe+M/z.w,Xe+me-M/z.w],lt.setScale(),e.attr("transform",Qu(Math.round(z.l),Math.round(z.t)));var ye=e.select("."+Ki.cbtitleunshift).attr("transform",Qu(-Math.round(z.l),-Math.round(z.t))),Oe=lt.ticklabelposition,at=lt.title.font.size,Je=e.select("."+Ki.cbaxis),Pt,xt=0,bt=0;function Vt(Wt,Be){var ut={propContainer:lt,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:q._dfltTitle.colorbar,containerGroup:e.select("."+Ki.cbtitle)},sr=Wt.charAt(0)==="h"?Wt.slice(1):"h"+Wt;e.selectAll("."+sr+",."+sr+"-math-group").remove(),Ive.draw(r,Wt,yV(ut,Be||{}))}function qt(){if(i&&mt||!i&&!mt){var Wt,Be;W==="top"&&(Wt=M+z.l+Ce*E,Be=C+z.t+Me*(1-Xe-me)+3+at*.75),W==="bottom"&&(Wt=M+z.l+Ce*E,Be=C+z.t+Me*(1-Xe)-3-at*.25),W==="right"&&(Be=C+z.t+Me*L+3+at*.75,Wt=M+z.l+Ce*Xe),Vt(lt._id+"title",{attributes:{x:Wt,y:Be,"text-anchor":i?"start":"middle"}})}}function Dt(){if(i&&!mt||!i&&mt){var Wt=lt.position||0,Be=lt._offset+lt._length/2,ut,sr;if(W==="right")sr=Be,ut=z.l+Ce*Wt+10+at*(lt.showticklabels?1:.5);else if(ut=Be,W==="bottom"&&(sr=z.t+Me*Wt+10+(Oe.indexOf("inside")===-1?lt.tickfont.size:0)+(lt.ticks!=="inside"&&t.ticklen||0)),W==="top"){var Pr=U.text.split("
").length;sr=z.t+Me*Wt+10-ke-dV*at*Pr}Vt((i?"h":"v")+lt._id+"title",{avoid:{selection:lv.select(r).selectAll("g."+lt._id+"tick"),side:W,offsetTop:i?0:z.t,offsetLeft:i?z.l:0,maxShift:i?q.width:q.height},attributes:{x:ut,y:sr,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function At(){if(!i&&!mt||i&&mt){var Wt=e.select("."+Ki.cbtitle),Be=Wt.select("text"),ut=[-h/2,h/2],sr=Wt.select(".h"+lt._id+"title-math-group").node(),Pr=15.6;Be.node()&&(Pr=parseInt(Be.node().style.fontSize,10)*dV);var Lt;if(sr?(Lt=Ku.bBox(sr),bt=Lt.width,xt=Lt.height,xt>Pr&&(ut[1]-=(xt-Pr)/2)):Be.node()&&!Be.classed(Ki.jsPlaceholder)&&(Lt=Ku.bBox(Be.node()),bt=Lt.width,xt=Lt.height),i){if(xt){if(xt+=5,W==="top")lt.domain[1]-=xt/z.h,ut[1]*=-1;else{lt.domain[0]+=xt/z.h;var vt=Rve.lineCount(Be);ut[1]+=(1-vt)*Pr}Wt.attr("transform",Qu(ut[0],ut[1])),lt.setScale()}}else bt&&(W==="right"&&(lt.domain[0]+=(bt+at/2)/z.w),Wt.attr("transform",Qu(ut[0],ut[1])),lt.setScale())}e.selectAll("."+Ki.cbfills+",."+Ki.cblines).attr("transform",i?Qu(0,Math.round(z.h*(1-lt.domain[1]))):Qu(Math.round(z.w*lt.domain[0]),0)),Je.attr("transform",i?Qu(0,Math.round(-z.t)):Qu(Math.round(-z.l),0));var pt=e.select("."+Ki.cbfills).selectAll("rect."+Ki.cbfill).attr("style","").data(fe);pt.enter().append("rect").classed(Ki.cbfill,!0).attr("style",""),pt.exit().remove();var Nt=J.map(lt.c2p).map(Math.round).sort(function(yr,mr){return yr-mr});pt.each(function(yr,mr){var Ct=[mr===0?J[0]:(fe[mr]+fe[mr-1])/2,mr===fe.length-1?J[1]:(fe[mr]+fe[mr+1])/2].map(lt.c2p).map(Math.round);i&&(Ct[1]=uu.constrain(Ct[1]+(Ct[1]>Ct[0])?1:-1,Nt[0],Nt[1]));var Fe=lv.select(this).attr(i?"x":"y",We).attr(i?"y":"x",lv.min(Ct)).attr(i?"width":"height",Math.max(ke,2)).attr(i?"height":"width",Math.max(lv.max(Ct)-lv.min(Ct),2));if(t._fillgradient)Ku.gradient(Fe,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Ue=ie(yr).replace("e-","");Fe.attr("fill",nA(Ue).toHexString())}});var er=e.select("."+Ki.cblines).selectAll("path."+Ki.cbline).data(H.color&&H.width?Te:[]);er.enter().append("path").classed(Ki.cbline,!0),er.exit().remove(),er.each(function(yr){var mr=We,Ct=Math.round(lt.c2p(yr))+H.width/2%1;lv.select(this).attr("d","M"+(i?mr+","+Ct:Ct+","+mr)+(i?"h":"v")+ke).call(Ku.lineGroupStyle,H.width,ee(yr),H.dash)}),Je.selectAll("g."+lt._id+"tick,path").remove();var Ht=We+ke+(h||0)/2-(t.ticks==="outside"?1:0),Gt=Nc.calcTicks(lt),hr=Nc.getTickSigns(lt)[2];return Nc.drawTicks(r,lt,{vals:lt.ticks==="inside"?Nc.clipEnds(lt,Gt):Gt,layer:Je,path:Nc.makeTickPath(lt,Ht,hr),transFn:Nc.makeTransTickFn(lt)}),Nc.drawLabels(r,lt,{vals:Gt,layer:Je,transFn:Nc.makeTransTickLabelFn(lt),labelFns:Nc.makeLabelFns(lt,Ht)})}function Ut(){var Wt,Be=ke+h/2;Oe.indexOf("inside")===-1&&(Wt=Ku.bBox(Je.node()),Be+=i?Wt.width:Wt.height),Pt=ye.select("text");var ut=0,sr=i&&W==="top",Pr=!i&&W==="right",Lt=0;if(Pt.node()&&!Pt.classed(Ki.jsPlaceholder)){var vt,pt=ye.select(".h"+lt._id+"title-math-group").node();pt&&(i&&mt||!i&&!mt)?(Wt=Ku.bBox(pt),ut=Wt.width,vt=Wt.height):(Wt=Ku.bBox(ye.node()),ut=Wt.right-z.l-(i?We:kt),vt=Wt.bottom-z.t-(i?kt:We),!i&&W==="top"&&(Be+=Wt.height,Lt=Wt.height)),Pr&&(Pt.attr("transform",Qu(ut/2+at/2,0)),ut*=2),Be=Math.max(Be,i?ut:vt)}var Nt=(i?M:C)*2+Be+v+h/2,er=0;!i&&U.text&&T==="bottom"&&L<=0&&(er=Nt/2,Nt+=er,Lt+=er),q._hColorbarMoveTitle=er,q._hColorbarMoveCBTitle=Lt;var Ht=v+h,Gt=(i?We:kt)-Ht/2-(i?M:0),hr=(i?kt:We)-(i?Ae:C+Lt-er);e.select("."+Ki.cbbg).attr("x",Gt).attr("y",hr).attr(i?"width":"height",Math.max(Nt-er,2)).attr(i?"height":"width",Math.max(Ae+Ht,2)).call(sA.fill,m).call(sA.stroke,t.bordercolor).style("stroke-width",v);var yr=Pr?Math.max(ut-10,0):0;e.selectAll("."+Ki.cboutline).attr("x",(i?We:kt+M)+yr).attr("y",(i?kt+C-Ae:We)+(sr?xt:0)).attr(i?"width":"height",Math.max(ke,2)).attr(i?"height":"width",Math.max(Ae-(i?2*C+xt:2*M+yr),2)).call(sA.stroke,t.outlinecolor).style({fill:"none","stroke-width":h});var mr=i?it*Nt:0,Ct=i?0:(1-nt)*Nt-Lt;if(mr=O?z.l-mr:-mr,Ct=I?z.t-Ct:-Ct,e.attr("transform",Qu(mr,Ct)),!i&&(v||nA(m).getAlpha()&&!nA.equals(q.paper_bgcolor,m))){var Fe=Je.selectAll("text"),Ue=Fe[0].length,wt=e.select("."+Ki.cbbg).node(),Tt=Ku.bBox(wt),vr=Ku.getTranslate(e),Mr=2;Fe.each(function(_n,an){var Gi=0,ma=Ue-1;if(an===Gi||an===ma){var nn=Ku.bBox(this),Bi=Ku.getTranslate(this),ir;if(an===ma){var ii=nn.right+Bi.x,Xr=Tt.right+vr.x+kt-v-Mr+E;ir=Xr-ii,ir>0&&(ir=0)}else if(an===Gi){var le=nn.left+Bi.x,te=Tt.left+vr.x+kt+v+Mr;ir=te-le,ir<0&&(ir=0)}ir&&(Ue<3?this.setAttribute("transform","translate("+ir+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Tr={},Gr=pV[_],pa=mV[_],Aa=pV[T],ai=mV[T],bi=Nt-ke;i?(s==="pixels"?(Tr.y=L,Tr.t=Ae*Aa,Tr.b=Ae*ai):(Tr.t=Tr.b=0,Tr.yt=L+a*Aa,Tr.yb=L-a*ai),u==="pixels"?(Tr.x=E,Tr.l=Nt*Gr,Tr.r=Nt*pa):(Tr.l=bi*Gr,Tr.r=bi*pa,Tr.xl=E-l*Gr,Tr.xr=E+l*pa)):(s==="pixels"?(Tr.x=E,Tr.l=Ae*Gr,Tr.r=Ae*pa):(Tr.l=Tr.r=0,Tr.xl=E+a*Gr,Tr.xr=E-a*pa),u==="pixels"?(Tr.y=1-L,Tr.t=Nt*Aa,Tr.b=Nt*ai):(Tr.t=bi*Aa,Tr.b=bi*ai,Tr.yt=L-l*Aa,Tr.yb=L+l*ai));var hi=t.y<.5?"b":"t",Hi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Ii={r:q.width-Gt-mr,l:Gt+Tr.r,b:q.height-hr-Ct,t:hr+Tr.b};O&&I?qb.autoMargin(r,t._id,Tr):O?r._fullLayout._reservedMargin[t._id][hi]=Ii[hi]:I||i?r._fullLayout._reservedMargin[t._id][Hi]=Ii[Hi]:r._fullLayout._reservedMargin[t._id][hi]=Ii[hi]}return uu.syncOrAsync([qb.previousPromises,qt,At,Dt,qb.previousPromises,Ut],r)}function Hve(e,t,r){var i=t.orientation==="v",a=r._fullLayout,s=a._size,l,u,h;Fb.init({element:e.node(),gd:r,prepFn:function(){l=e.attr("transform"),oA(e)},moveFn:function(v,m){e.attr("transform",l+Qu(v,m)),u=Fb.align((i?t._uFrac:t._vFrac)+v/s.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),h=Fb.align((i?t._vFrac:1-t._uFrac)-m/s.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var _=Fb.getCursor(u,h,t.xanchor,t.yanchor);oA(e,_)},doneFn:function(){if(oA(e),u!==void 0&&h!==void 0){var v={};v[t._propPrefix+"x"]=u,v[t._propPrefix+"y"]=h,t._traceIndex!==void 0?vV.call("_guiRestyle",r,v,t._traceIndex):vV.call("_guiRelayout",r,v)}}})}function Gve(e,t,r){var i=t._levels,a=[],s=[],l,u,h=i.end+i.size/100,v=i.size,m=1.001*r[0]-.001*r[1],_=1.001*r[1]-.001*r[0];for(u=0;u<1e5&&(l=i.start+u*v,!(v>0?l>=h:l<=h));u++)l>m&&l<_&&a.push(l);if(t._fillgradient)s=[0];else if(typeof t._fillcolor=="function"){var T=t._filllevels;if(T)for(h=T.end+T.size/100,v=T.size,u=0;u<1e5&&(l=T.start+u*v,!(v>0?l>=h:l<=h));u++)l>r[0]&&l{"use strict";xV.exports={moduleType:"component",name:"colorbar",attributes:e2(),supplyDefaults:s5(),draw:_V().draw,hasColorbar:Jw()}});var TV=pe((zbe,wV)=>{"use strict";wV.exports={moduleType:"component",name:"legend",layoutAttributes:i4(),supplyLayoutDefaults:o4(),draw:b4(),style:y4()}});var MV=pe((Ibe,AV)=>{"use strict";AV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var kV=pe((Rbe,SV)=>{"use strict";SV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var fA=pe((Fbe,DV)=>{"use strict";var Yve=la(),LV=Ot(),uA=LV.extendFlat,CV=LV.extendDeep;function EV(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function Wve(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}DV.exports=function(t,r){var i,a=t.data,s=t.layout,l=CV([],a),u=CV({},s,EV(r.tileClass)),h=t._context||{};if(r.width&&(u.width=r.width),r.height&&(u.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){u.annotations=[];var v=Object.keys(u);for(i=0;i{"use strict";var Xve=O_().EventEmitter,jve=la(),Jve=Ot(),PV=Vd(),Kve=fA(),Qve=Zx(),$ve=Yx();function ede(e,t){var r=new Xve,i=Kve(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function s(){var u=PV.getDelay(a._fullLayout);setTimeout(function(){var h=Qve(a),v=document.createElement("canvas");v.id=Jve.randstr(),r=$ve({format:t.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:v,emitter:r,svg:h}),r.clean=function(){a&&document.body.removeChild(a)}},u)}var l=PV.getRedrawFunc(a);return jve.call("_doPlot",a,i.data,i.layout,i.config).then(l).then(s).catch(function(u){r.emit("error",u)}),r}zV.exports=ede});var qV=pe((Nbe,FV)=>{"use strict";var RV=Vd(),tde={getDelay:RV.getDelay,getRedrawFunc:RV.getRedrawFunc,clone:fA(),toSVG:Zx(),svgToImg:Yx(),toImage:IV(),downloadImage:q6()};FV.exports=tde});var BV=pe(Bc=>{"use strict";Bc.version=r_().version;E7();gk();var rde=la(),m1=Bc.register=rde.register,hA=OF(),NV=Object.keys(hA);for(Nb=0;Nb{"use strict";OV.exports=BV()});var vA=pe((Vbe,YV)=>{"use strict";var{hovertemplateAttrs:ade,texttemplateAttrs:ide,templatefallbackAttrs:VV}=Cf(),nde=Mx(),jf=zc(),ode=ys(),HV=kc(),sde=_c().dash,$d=mn().extendFlat,lde=il().overrideAll,fu=jf.marker,GV=jf.line,ZV=fu.line,Ube=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");YV.exports=lde({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:$d({},jf.mode,{dflt:"markers"}),text:$d({},jf.text,{}),texttemplate:ide({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:VV({editType:"plot"}),hovertext:$d({},jf.hovertext,{}),textfont:jf.textfont,textposition:jf.textposition,line:{color:GV.color,width:GV.width,dash:sde},connectgaps:jf.connectgaps,marker:$d({symbol:fu.symbol,opacity:fu.opacity,angle:fu.angle,angleref:$d({},fu.angleref,{values:["previous","up","north"]}),standoff:fu.standoff,size:fu.size,sizeref:fu.sizeref,sizemin:fu.sizemin,sizemode:fu.sizemode,colorbar:fu.colorbar,line:$d({width:ZV.width,dash:ZV.dash},HV("marker.line")),gradient:fu.gradient},HV("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:nde(),selected:jf.selected,unselected:jf.unselected,hoverinfo:$d({},ode.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:ade(),hovertemplatefallback:VV()},"calc","nested")});var Oc=pe((Hbe,$V)=>{"use strict";var ude=L_(),WV="1.13.4",KV='\xA9 OpenStreetMap contributors',XV=['\xA9 Carto',KV].join(" "),jV=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),fde=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),QV={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:KV,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:XV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:XV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:jV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:jV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:fde,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},JV=ude(QV);$V.exports={requiredVersion:WV,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:QV,styleValuesNonMapbox:JV,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+WV+"."].join(` +`)};function X(ge){return ge.map(ae).join(y)}function ae(ge){return P.test(ge)?'"'+ge.replace(/\"/g,'""')+'"':ge}return V},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Kn,du,Oi,pl,cp=this[Se(this,"requestAnimationFrame")]||function(y){setTimeout(y,17)};e.timer=function(){Gc.apply(this,arguments)};function Gc(y,S,P){var B=arguments.length;B<2&&(S=0),B<3&&(P=Date.now());var V=P+S,Z={c:y,t:V,n:null};return du?du.n=Z:Kn=Z,du=Z,Oi||(pl=clearTimeout(pl),Oi=1,cp(Zc)),Z}function Zc(){var y=xv(),S=bv()-y;S>24?(isFinite(S)&&(clearTimeout(pl),pl=setTimeout(Zc,S)),Oi=0):(Oi=1,cp(Zc))}e.timer.flush=function(){xv(),bv()};function xv(){for(var y=Date.now(),S=Kn;S;)y>=S.t&&S.c(y-S.t)&&(S.c=null),S=S.n;return y}function bv(){for(var y,S=Kn,P=1/0;S;)S.c?(S.t=0;--X)Ie.push(V[ge[ze[X]][2]]);for(X=+$e;X1&&ai(y[P[B-2]],y[P[B-1]],y[V])<=0;)--B;P[B++]=V}return P.slice(0,B)}function ef(y,S){return y[0]-S[0]||y[1]-S[1]}e.geom.polygon=function(y){return Ge(y,Qf),y};var Qf=e.geom.polygon.prototype=[];Qf.area=function(){for(var y=-1,S=this.length,P,B=this[S-1],V=0;++yUe)X=X.L;else if($=S-on(X,P),$>Ue){if(!X.R){B=X;break}X=X.R}else{Z>-Ue?(B=X.P,V=X):$>-Ue?(B=X,V=X.N):B=V=X;break}var ae=lo(y);if(mu.insert(B,ae),!(!B&&!V)){if(B===V){ba(B),V=lo(B.site),mu.insert(ae,V),ae.edge=V.edge=Xs(B.site,ae.site),Er(B),Er(V);return}if(!V){ae.edge=Xs(B.site,ae.site);return}ba(B),ba(V);var ge=B.site,xe=ge.x,ze=ge.y,Pe=y.x-xe,$e=y.y-ze,st=V.site,Ie=st.x-xe,He=st.y-ze,Qe=2*(Pe*He-$e*Ie),ht=Pe*Pe+$e*$e,ot=Ie*Ie+He*He,je={x:(He*ht-$e*ot)/Qe+xe,y:(Pe*ot-Ie*ht)/Qe+ze};fs(V.edge,ge,st,je),ae.edge=Xs(ge,y,null,je),V.edge=Xs(y,st,null,je),Er(B),Er(V)}}function yu(y,S){var P=y.site,B=P.x,V=P.y,Z=V-S;if(!Z)return B;var $=y.P;if(!$)return-1/0;P=$.site;var X=P.x,ae=P.y,ge=ae-S;if(!ge)return X;var xe=X-B,ze=1/Z-1/ge,Pe=xe/ge;return ze?(-Pe+Math.sqrt(Pe*Pe-2*ze*(xe*xe/(-2*ge)-ae+ge/2+V-Z/2)))/ze+B:(B+X)/2}function on(y,S){var P=y.N;if(P)return yu(P,S);var B=y.site;return B.y===S?B.x:1/0}function gl(y){this.site=y,this.edges=[]}gl.prototype.prepare=function(){for(var y=this.edges,S=y.length,P;S--;)P=y[S].edge,(!P.b||!P.a)&&y.splice(S,1);return y.sort(rf),y.length};function ws(y){for(var S=y[0][0],P=y[1][0],B=y[0][1],V=y[1][1],Z,$,X,ae,ge=Zo,xe=ge.length,ze,Pe,$e,st,Ie,He;xe--;)if(ze=ge[xe],!(!ze||!ze.prepare()))for($e=ze.edges,st=$e.length,Pe=0;PeUe||I(ae-$)>Ue)&&($e.splice(Pe,0,new xl(gu(ze.site,He,I(X-S)Ue?{x:S,y:I(Z-S)Ue?{x:I($-V)Ue?{x:P,y:I(Z-P)Ue?{x:I($-B)=-wt)){var Pe=ae*ae+ge*ge,$e=xe*xe+He*He,st=(He*Pe-ge*$e)/ze,Ie=(ae*$e-xe*Pe)/ze,He=Ie+X,Qe=Tv.pop()||new af;Qe.arc=y,Qe.site=V,Qe.x=st+$,Qe.y=He+Math.sqrt(st*st+Ie*Ie),Qe.cy=He,y.circle=Qe;for(var ht=null,ot=tf._;ot;)if(Qe.y0)){if(Ie/=$e,$e<0){if(Ie0){if(Ie>Pe)return;Ie>ze&&(ze=Ie)}if(Ie=P-X,!(!$e&&Ie<0)){if(Ie/=$e,$e<0){if(Ie>Pe)return;Ie>ze&&(ze=Ie)}else if($e>0){if(Ie0)){if(Ie/=st,st<0){if(Ie0){if(Ie>Pe)return;Ie>ze&&(ze=Ie)}if(Ie=B-ae,!(!st&&Ie<0)){if(Ie/=st,st<0){if(Ie>Pe)return;Ie>ze&&(ze=Ie)}else if(st>0){if(Ie0&&(V.a={x:X+ze*$e,y:ae+ze*st}),Pe<1&&(V.b={x:X+Pe*$e,y:ae+Pe*st}),V}}}}}}function Ts(y){for(var S=yl,P=wa(y[0][0],y[0][1],y[1][0],y[1][1]),B=S.length,V;B--;)V=S[B],(!_l(V,y)||!P(V)||I(V.a.x-V.b.x)=Z)return;if(xe>Pe){if(!B)B={x:st,y:$};else if(B.y>=X)return;P={x:st,y:X}}else{if(!B)B={x:st,y:X};else if(B.y<$)return;P={x:st,y:$}}}else if(He=(xe-Pe)/($e-ze),Qe=Ie-He*st,He<-1||He>1)if(xe>Pe){if(!B)B={x:($-Qe)/He,y:$};else if(B.y>=X)return;P={x:(X-Qe)/He,y:X}}else{if(!B)B={x:(X-Qe)/He,y:X};else if(B.y<$)return;P={x:($-Qe)/He,y:$}}else if(ze<$e){if(!B)B={x:V,y:He*V+Qe};else if(B.x>=Z)return;P={x:Z,y:He*Z+Qe}}else{if(!B)B={x:Z,y:He*Z+Qe};else if(B.x=xe&&Qe.x<=Pe&&Qe.y>=ze&&Qe.y<=$e?[[xe,$e],[Pe,$e],[Pe,ze],[xe,ze]]:[];ht.point=ae[Ie]}),ge}function X(ae){return ae.map(function(ge,xe){return{x:Math.round(B(ge,xe)/Ue)*Ue,y:Math.round(V(ge,xe)/Ue)*Ue,i:xe}})}return $.links=function(ae){return _u(X(ae)).edges.filter(function(ge){return ge.l&&ge.r}).map(function(ge){return{source:ae[ge.l.i],target:ae[ge.r.i]}})},$.triangles=function(ae){var ge=[];return _u(X(ae)).cells.forEach(function(xe,ze){for(var Pe=xe.site,$e=xe.edges.sort(rf),st=-1,Ie=$e.length,He,Qe,ht=$e[Ie-1].edge,ot=ht.l===Pe?ht.r:ht.l;++stot&&(ot=xe.x),xe.y>je&&(je=xe.y),$e.push(xe.x),st.push(xe.y);else for(Ie=0;Ieot&&(ot=Zt),or>je&&(je=or),$e.push(Zt),st.push(or)}var cr=ot-Qe,ur=je-ht;cr>ur?je=ht+cr:ot=Qe+ur;function zr(Vr,Qr,qa,$a,Ja,Jt,Kr,oa){if(!(isNaN(qa)||isNaN($a)))if(Vr.leaf){var sa=Vr.x,Ei=Vr.y;if(sa!=null)if(I(sa-qa)+I(Ei-$a)<.01)Rr(Vr,Qr,qa,$a,Ja,Jt,Kr,oa);else{var Ui=Vr.point;Vr.x=Vr.y=Vr.point=null,Rr(Vr,Ui,sa,Ei,Ja,Jt,Kr,oa),Rr(Vr,Qr,qa,$a,Ja,Jt,Kr,oa)}else Vr.x=qa,Vr.y=$a,Vr.point=Qr}else Rr(Vr,Qr,qa,$a,Ja,Jt,Kr,oa)}function Rr(Vr,Qr,qa,$a,Ja,Jt,Kr,oa){var sa=(Ja+Kr)*.5,Ei=(Jt+oa)*.5,Ui=qa>=sa,$i=$a>=Ei,xi=$i<<1|Ui;Vr.leaf=!1,Vr=Vr.nodes[xi]||(Vr.nodes[xi]=xn()),Ui?Ja=sa:Kr=sa,$i?Jt=Ei:oa=Ei,zr(Vr,Qr,qa,$a,Ja,Jt,Kr,oa)}var ta=xn();if(ta.add=function(Vr){zr(ta,Vr,+ze(Vr,++Ie),+Pe(Vr,Ie),Qe,ht,ot,je)},ta.visit=function(Vr){Rn(Vr,ta,Qe,ht,ot,je)},ta.find=function(Vr){return pp(ta,Vr[0],Vr[1],Qe,ht,ot,je)},Ie=-1,S==null){for(;++IeZ||Pe>$||$e=Zt,ur=P>=or,zr=ur<<1|cr,Rr=zr+4;zrP&&(Z=S.slice(P,Z),X[$]?X[$]+=Z:X[++$]=Z),(B=B[0])===(V=V[0])?X[$]?X[$]+=V:X[++$]=V:(X[++$]=null,ae.push({i:$,x:Eo(B,V)})),P=tc.lastIndex;return P=0&&!(B=e.interpolators[P](y,S)););return B}e.interpolators=[function(y,S){var P=typeof S;return(P==="string"?oi.has(S.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(S)?nf:Yo:S instanceof Wr?nf:Array.isArray(S)?Wo:P==="object"&&isNaN(S)?sn:Eo)(y,S)}],e.interpolateArray=Wo;function Wo(y,S){var P=[],B=[],V=y.length,Z=S.length,$=Math.min(y.length,S.length),X;for(X=0;X<$;++X)P.push(ln(y[X],S[X]));for(;X=0?y.slice(0,S):y,B=S>=0?y.slice(S+1):"in";return P=Rm.get(P)||js,B=Xo.get(B)||Te,Fm(B(P.apply(null,t.call(arguments,1))))};function Fm(y){return function(S){return S<=0?0:S>=1?1:y(S)}}function Js(y){return function(S){return 1-y(1-S)}}function Fn(y){return function(S){return .5*(S<.5?y(2*S):2-y(2-2*S))}}function qm(y){return y*y}function bl(y){return y*y*y}function wl(y){if(y<=0)return 0;if(y>=1)return 1;var S=y*y,P=S*y;return 4*(y<.5?P:3*(y-S)+P-.75)}function Sv(y){return function(S){return Math.pow(S,y)}}function Nm(y){return 1-Math.cos(y*Tr)}function Bm(y){return Math.pow(2,10*(y-1))}function Wc(y){return 1-Math.sqrt(1-y*y)}function Om(y,S){var P;return arguments.length<2&&(S=.45),arguments.length?P=S/vr*Math.asin(1/y):(y=1,P=S/4),function(B){return 1+y*Math.pow(2,-10*B)*Math.sin((B-P)*vr/S)}}function Um(y){return y||(y=1.70158),function(S){return S*S*((y+1)*S-y)}}function Vm(y){return y<1/2.75?7.5625*y*y:y<2/2.75?7.5625*(y-=1.5/2.75)*y+.75:y<2.5/2.75?7.5625*(y-=2.25/2.75)*y+.9375:7.5625*(y-=2.625/2.75)*y+.984375}e.interpolateHcl=kv;function kv(y,S){y=e.hcl(y),S=e.hcl(S);var P=y.h,B=y.c,V=y.l,Z=S.h-P,$=S.c-B,X=S.l-V;return isNaN($)&&($=0,B=isNaN(B)?S.c:B),isNaN(Z)?(Z=0,P=isNaN(P)?S.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return Ne(P+Z*ae,B+$*ae,V+X*ae)+""}}e.interpolateHsl=Hm;function Hm(y,S){y=e.hsl(y),S=e.hsl(S);var P=y.h,B=y.s,V=y.l,Z=S.h-P,$=S.s-B,X=S.l-V;return isNaN($)&&($=0,B=isNaN(B)?S.s:B),isNaN(Z)?(Z=0,P=isNaN(P)?S.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return se(P+Z*ae,B+$*ae,V+X*ae)+""}}e.interpolateLab=Gm;function Gm(y,S){y=e.lab(y),S=e.lab(S);var P=y.l,B=y.a,V=y.b,Z=S.l-P,$=S.a-B,X=S.b-V;return function(ae){return Xt(P+Z*ae,B+$*ae,V+X*ae)+""}}e.interpolateRound=Cv;function Cv(y,S){return S-=y,function(P){return Math.round(y+S*P)}}e.transform=function(y){var S=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(P){if(P!=null){S.setAttribute("transform",P);var B=S.transform.baseVal.consolidate()}return new mp(B?B.matrix:Lv)})(y)};function mp(y){var S=[y.a,y.b],P=[y.c,y.d],B=Ev(S),V=yp(S,P),Z=Ev(Zm(P,S,-V))||0;S[0]*P[1]180?S+=360:S-y>180&&(y+=360),B.push({i:P.push(xu(P)+"rotate(",null,")")-2,x:Eo(y,S)})):S&&P.push(xu(P)+"rotate("+S+")")}function _p(y,S,P,B){y!==S?B.push({i:P.push(xu(P)+"skewX(",null,")")-2,x:Eo(y,S)}):S&&P.push(xu(P)+"skewX("+S+")")}function xp(y,S,P,B){if(y[0]!==S[0]||y[1]!==S[1]){var V=P.push(xu(P)+"scale(",null,",",null,")");B.push({i:V-4,x:Eo(y[0],S[0])},{i:V-2,x:Eo(y[1],S[1])})}else(S[0]!==1||S[1]!==1)&&P.push(xu(P)+"scale("+S+")")}function bp(y,S){var P=[],B=[];return y=e.transform(y),S=e.transform(S),gp(y.translate,S.translate,P,B),Ym(y.rotate,S.rotate,P,B),_p(y.skew,S.skew,P,B),xp(y.scale,S.scale,P,B),y=S=null,function(V){for(var Z=-1,$=B.length,X;++Z<$;)P[(X=B[Z]).i]=X.x(V);return P.join("")}}function Wm(y,S){return S=(S-=y=+y)||1/S,function(P){return(P-y)/S}}function hs(y,S){return S=(S-=y=+y)||1/S,function(P){return Math.max(0,Math.min(1,(P-y)/S))}}e.layout={},e.layout.bundle=function(){return function(y){for(var S=[],P=-1,B=y.length;++P0?Z=je:(P.c=null,P.t=NaN,P=null,S.end({type:"end",alpha:Z=0})):je>0&&(S.start({type:"start",alpha:Z=je}),P=Gc(y.tick)),y):Z},y.start=function(){var je,Zt=$e.length,or=st.length,cr=B[0],ur=B[1],zr,Rr;for(je=0;je=0;)Z.push(xe=ge[ae]),xe.parent=X,xe.depth=X.depth+1;P&&(X.value=0),X.children=ge}else P&&(X.value=+P.call(B,X,X.depth)||0),delete X.children;return vs(V,function(ze){var Pe,$e;y&&(Pe=ze.children)&&Pe.sort(y),P&&($e=ze.parent)&&($e.value+=ze.value)}),$}return B.sort=function(V){return arguments.length?(y=V,B):y},B.children=function(V){return arguments.length?(S=V,B):S},B.value=function(V){return arguments.length?(P=V,B):P},B.revalue=function(V){return P&&(of(V,function(Z){Z.children&&(Z.value=0)}),vs(V,function(Z){var $;Z.children||(Z.value=+P.call(B,Z,Z.depth)||0),($=Z.parent)&&($.value+=Z.value)})),V},B};function Sl(y,S){return e.rebind(y,S,"sort","children","value"),y.nodes=y,y.links=Ap,y}function of(y,S){for(var P=[y];(y=P.pop())!=null;)if(S(y),(V=y.children)&&(B=V.length))for(var B,V;--B>=0;)P.push(V[B])}function vs(y,S){for(var P=[y],B=[];(y=P.pop())!=null;)if(B.push(y),($=y.children)&&(Z=$.length))for(var V=-1,Z,$;++VV&&(V=X),B.push(X)}for($=0;$B&&(P=S,B=V);return P}function Ri(y){return y.reduce(Qm,0)}function Qm(y,S){return y+S[1]}e.layout.histogram=function(){var y=!0,S=Number,P=kp,B=Qc;function V(Z,Pe){for(var X=[],ae=Z.map(S,this),ge=P.call(this,ae,Pe),xe=B.call(this,ge,ae,Pe),ze,Pe=-1,$e=ae.length,st=xe.length-1,Ie=y?1:1/$e,He;++Pe0)for(Pe=-1;++Pe<$e;)He=ae[Pe],He>=ge[0]&&He<=ge[1]&&(ze=X[e.bisect(xe,He,1,st)-1],ze.y+=Ie,ze.push(Z[Pe]));return X}return V.value=function(Z){return arguments.length?(S=Z,V):S},V.range=function(Z){return arguments.length?(P=fa(Z),V):P},V.bins=function(Z){return arguments.length?(B=typeof Z=="number"?function($){return Rv($,Z)}:fa(Z),V):B},V.frequency=function(Z){return arguments.length?(y=!!Z,V):y},V};function Qc(y,S){return Rv(y,Math.ceil(Math.log(S.length)/Math.LN2+1))}function Rv(y,S){for(var P=-1,B=+y[0],V=(y[1]-B)/S,Z=[];++P<=S;)Z[P]=V*P+B;return Z}function kp(y){return[e.min(y),e.max(y)]}e.layout.pack=function(){var y=e.layout.hierarchy().sort(lf),S=0,P=[1,1],B;function V(Z,$){var X=y.call(this,Z,$),ae=X[0],ge=P[0],xe=P[1],ze=B==null?Math.sqrt:typeof B=="function"?B:function(){return B};if(ae.x=ae.y=0,vs(ae,function($e){$e.r=+ze($e.value)}),vs(ae,ac),S){var Pe=S*(B?1:Math.max(2*ae.r/ge,2*ae.r/xe))/2;vs(ae,function($e){$e.r+=Pe}),vs(ae,ac),vs(ae,function($e){$e.r-=Pe})}return Cl(ae,ge/2,xe/2,B?1:1/Math.max(2*ae.r/ge,2*ae.r/xe)),X}return V.size=function(Z){return arguments.length?(P=Z,V):P},V.radius=function(Z){return arguments.length?(B=Z==null||typeof Z=="function"?Z:+Z,V):B},V.padding=function(Z){return arguments.length?(S=+Z,V):S},Sl(V,y)};function lf(y,S){return y.value-S.value}function bu(y,S){var P=y._pack_next;y._pack_next=S,S._pack_prev=y,S._pack_next=P,P._pack_prev=S}function Fv(y,S){y._pack_next=S,S._pack_prev=y}function bn(y,S){var P=S.x-y.x,B=S.y-y.y,V=y.r+S.r;return .999*V*V>P*P+B*B}function ac(y){if(!(S=y.children)||!(Pe=S.length))return;var S,P=1/0,B=-1/0,V=1/0,Z=-1/0,$,X,ae,ge,xe,ze,Pe;function $e(je){P=Math.min(je.x-je.r,P),B=Math.max(je.x+je.r,B),V=Math.min(je.y-je.r,V),Z=Math.max(je.y+je.r,Z)}if(S.forEach(Ks),$=S[0],$.x=-$.r,$.y=0,$e($),Pe>1&&(X=S[1],X.x=X.r,X.y=0,$e(X),Pe>2))for(ae=S[2],El($,X,ae),$e(ae),bu($,ae),$._pack_prev=ae,bu(ae,X),X=$._pack_next,ge=3;geHe.x&&(He=Zt),Zt.depth>Qe.depth&&(Qe=Zt)});var ht=S(Ie,He)/2-Ie.x,ot=P[0]/(He.x+S(He,Ie)/2+ht),je=P[1]/(Qe.depth||1);of($e,function(Zt){Zt.x=(Zt.x+ht)*ot,Zt.y=Zt.depth*je})}return Pe}function Z(xe){for(var ze={A:null,children:[xe]},Pe=[ze],$e;($e=Pe.pop())!=null;)for(var st=$e.children,Ie,He=0,Qe=st.length;He0&&(Ll($m(Ie,xe,Pe),xe,Zt),Qe+=Zt,ht+=Zt),ot+=Ie.m,Qe+=$e.m,je+=He.m,ht+=st.m;Ie&&!ks(st)&&(st.t=Ie,st.m+=ot-ht),$e&&!Ss(He)&&(He.t=$e,He.m+=Qe-je,Pe=xe)}return Pe}function ge(xe){xe.x*=P[0],xe.y=xe.depth*P[1]}return V.separation=function(xe){return arguments.length?(S=xe,V):S},V.size=function(xe){return arguments.length?(B=(P=xe)==null?ge:null,V):B?null:P},V.nodeSize=function(xe){return arguments.length?(B=(P=xe)==null?null:ge,V):B?P:null},Sl(V,y)};function Qs(y,S){return y.parent==S.parent?1:2}function Ss(y){var S=y.children;return S.length?S[0]:y.t}function ks(y){var S=y.children,P;return(P=S.length)?S[P-1]:y.t}function Ll(y,S,P){var B=P/(S.i-y.i);S.c-=B,S.s+=P,y.c+=B,S.z+=P,S.m+=P}function Cp(y){for(var S=0,P=0,B=y.children,V=B.length,Z;--V>=0;)Z=B[V],Z.z+=S,Z.m+=S,S+=Z.s+(P+=Z.c)}function $m(y,S,P){return y.a.parent===S.parent?y.a:P}e.layout.cluster=function(){var y=e.layout.hierarchy().sort(null).value(null),S=Qs,P=[1,1],B=!1;function V(Z,$){var X=y.call(this,Z,$),ae=X[0],ge,xe=0;vs(ae,function(Ie){var He=Ie.children;He&&He.length?(Ie.x=ty(He),Ie.y=ey(He)):(Ie.x=ge?xe+=S(Ie,ge):0,Ie.y=0,ge=Ie)});var ze=Ep(ae),Pe=Lp(ae),$e=ze.x-S(ze,Pe)/2,st=Pe.x+S(Pe,ze)/2;return vs(ae,B?function(Ie){Ie.x=(Ie.x-ae.x)*P[0],Ie.y=(ae.y-Ie.y)*P[1]}:function(Ie){Ie.x=(Ie.x-$e)/(st-$e)*P[0],Ie.y=(1-(ae.y?Ie.y/ae.y:1))*P[1]}),X}return V.separation=function(Z){return arguments.length?(S=Z,V):S},V.size=function(Z){return arguments.length?(B=(P=Z)==null,V):B?null:P},V.nodeSize=function(Z){return arguments.length?(B=(P=Z)!=null,V):B?P:null},Sl(V,y)};function ey(y){return 1+e.max(y,function(S){return S.y})}function ty(y){return y.reduce(function(S,P){return S+P.x},0)/y.length}function Ep(y){var S=y.children;return S&&S.length?Ep(S[0]):y}function Lp(y){var S=y.children,P;return S&&(P=S.length)?Lp(S[P-1]):y}e.layout.treemap=function(){var y=e.layout.hierarchy(),S=Math.round,P=[1,1],B=null,V=qv,Z=!1,$,X="squarify",ae=.5*(1+Math.sqrt(5));function ge(Ie,He){for(var Qe=-1,ht=Ie.length,ot,je;++Qe0;)ht.push(je=ot[ur-1]),ht.area+=je.area,X!=="squarify"||(or=Pe(ht,cr))<=Zt?(ot.pop(),Zt=or):(ht.area-=ht.pop().area,$e(ht,cr,Qe,!1),cr=Math.min(Qe.dx,Qe.dy),ht.length=ht.area=0,Zt=1/0);ht.length&&($e(ht,cr,Qe,!0),ht.length=ht.area=0),He.forEach(xe)}}function ze(Ie){var He=Ie.children;if(He&&He.length){var Qe=V(Ie),ht=He.slice(),ot,je=[];for(ge(ht,Qe.dx*Qe.dy/Ie.value),je.area=0;ot=ht.pop();)je.push(ot),je.area+=ot.area,ot.z!=null&&($e(je,ot.z?Qe.dx:Qe.dy,Qe,!ht.length),je.length=je.area=0);He.forEach(ze)}}function Pe(Ie,He){for(var Qe=Ie.area,ht,ot=0,je=1/0,Zt=-1,or=Ie.length;++Ztot&&(ot=ht));return Qe*=Qe,He*=He,Qe?Math.max(He*ot*ae/Qe,Qe/(He*je*ae)):1/0}function $e(Ie,He,Qe,ht){var ot=-1,je=Ie.length,Zt=Qe.x,or=Qe.y,cr=He?S(Ie.area/He):0,ur;if(He==Qe.dx){for((ht||cr>Qe.dy)&&(cr=Qe.dy);++otQe.dx)&&(cr=Qe.dx);++ot1);return y+S*B*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var y=e.random.normal.apply(e,arguments);return function(){return Math.exp(y())}},bates:function(y){var S=e.random.irwinHall(y);return function(){return S()/y}},irwinHall:function(y){return function(){for(var S=0,P=0;P2?ry:Dp,ge=B?hs:Wm;return V=ae(y,S,ge,P),Z=ae(S,y,ge,ln),X}function X(ae){return V(ae)}return X.invert=function(ae){return Z(ae)},X.domain=function(ae){return arguments.length?(y=ae.map(Number),$()):y},X.range=function(ae){return arguments.length?(S=ae,$()):S},X.rangeRound=function(ae){return X.range(ae).interpolate(Cv)},X.clamp=function(ae){return arguments.length?(B=ae,$()):B},X.interpolate=function(ae){return arguments.length?(P=ae,$()):P},X.ticks=function(ae){return Uv(y,ae)},X.tickFormat=function(ae,ge){return d3_scale_linearTickFormat(y,ae,ge)},X.nice=function(ae){return Rp(y,ae),$()},X.copy=function(){return zp(y,S,P,B)},$()}function Ip(y,S){return e.rebind(y,S,"range","rangeRound","interpolate","clamp")}function Rp(y,S){return Bv(y,Pp(Ov(y,S)[2])),Bv(y,Pp(Ov(y,S)[2])),y}function Ov(y,S){S==null&&(S=10);var P=ic(y),B=P[1]-P[0],V=Math.pow(10,Math.floor(Math.log(B/S)/Math.LN10)),Z=S/B*V;return Z<=.15?V*=10:Z<=.35?V*=5:Z<=.75&&(V*=2),P[0]=Math.ceil(P[0]/V)*V,P[1]=Math.floor(P[1]/V)*V+V*.5,P[2]=V,P}function Uv(y,S){return e.range.apply(e,Ov(y,S))}var wu={s:1,g:1,p:1,r:1,e:1};function Dl(y){return-Math.floor(Math.log(y)/Math.LN10+.01)}function nc(y,S){var P=Dl(S[2]);return y in wu?Math.abs(P-Dl(Math.max(I(S[0]),I(S[1]))))+ +(y!=="e"):P-(y==="%")*2}e.scale.log=function(){return Vv(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Vv(y,S,P,B){function V(X){return(P?Math.log(X<0?0:X):-Math.log(X>0?0:-X))/Math.log(S)}function Z(X){return P?Math.pow(S,X):-Math.pow(S,-X)}function $(X){return y(V(X))}return $.invert=function(X){return Z(y.invert(X))},$.domain=function(X){return arguments.length?(P=X[0]>=0,y.domain((B=X.map(Number)).map(V)),$):B},$.base=function(X){return arguments.length?(S=+X,y.domain(B.map(V)),$):S},$.nice=function(){var X=Bv(B.map(V),P?Math:eh);return y.domain(X),B=X.map(Z),$},$.ticks=function(){var X=ic(B),ae=[],ge=X[0],xe=X[1],ze=Math.floor(V(ge)),Pe=Math.ceil(V(xe)),$e=S%1?2:S;if(isFinite(Pe-ze)){if(P){for(;ze0;st--)ae.push(Z(ze)*st);for(ze=0;ae[ze]xe;Pe--);ae=ae.slice(ze,Pe)}return ae},$.copy=function(){return Vv(y.copy(),S,P,B)},Ip($,y)}var eh={floor:function(y){return-Math.ceil(-y)},ceil:function(y){return-Math.floor(-y)}};e.scale.pow=function(){return th(e.scale.linear(),1,[0,1])};function th(y,S,P){var B=rh(S),V=rh(1/S);function Z($){return y(B($))}return Z.invert=function($){return V(y.invert($))},Z.domain=function($){return arguments.length?(y.domain((P=$.map(Number)).map(B)),Z):P},Z.ticks=function($){return Uv(P,$)},Z.tickFormat=function($,X){return d3_scale_linearTickFormat(P,$,X)},Z.nice=function($){return Z.domain(Rp(P,$))},Z.exponent=function($){return arguments.length?(B=rh(S=$),V=rh(1/S),y.domain(P.map(B)),Z):S},Z.copy=function(){return th(y.copy(),S,P)},Ip(Z,y)}function rh(y){return function(S){return S<0?-Math.pow(-S,y):Math.pow(S,y)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Pl([],{t:"range",a:[[]]})};function Pl(y,S){var P,B,V;function Z(X){return B[((P.get(X)||(S.t==="range"?P.set(X,y.push(X)):NaN))-1)%B.length]}function $(X,ae){return e.range(y.length).map(function(ge){return X+ae*ge})}return Z.domain=function(X){if(!arguments.length)return y;y=[],P=new z;for(var ae=-1,ge=X.length,xe;++ae0?P[Z-1]:y[0],ZPe?0:1;if(xe=Mr)return ae(xe,st)+(ge?ae(ge,1-st):"")+"Z";var Ie,He,Qe,ht,ot=0,je=0,Zt,or,cr,ur,zr,Rr,ta,Vr,Qr=[];if((ht=(+$.apply(this,arguments)||0)/2)&&(Qe=B===zl?Math.sqrt(ge*ge+xe*xe):+B.apply(this,arguments),st||(je*=-1),xe&&(je=hi(Qe/xe*Math.sin(ht))),ge&&(ot=hi(Qe/ge*Math.sin(ht)))),xe){Zt=xe*Math.cos(ze+je),or=xe*Math.sin(ze+je),cr=xe*Math.cos(Pe-je),ur=xe*Math.sin(Pe-je);var qa=Math.abs(Pe-ze-2*je)<=Tt?0:1;if(je&&Il(Zt,or,cr,ur)===st^qa){var $a=(ze+Pe)/2;Zt=xe*Math.cos($a),or=xe*Math.sin($a),cr=ur=null}}else Zt=or=0;if(ge){zr=ge*Math.cos(Pe-ot),Rr=ge*Math.sin(Pe-ot),ta=ge*Math.cos(ze+ot),Vr=ge*Math.sin(ze+ot);var Ja=Math.abs(ze-Pe+2*ot)<=Tt?0:1;if(ot&&Il(zr,Rr,ta,Vr)===1-st^Ja){var Jt=(ze+Pe)/2;zr=ge*Math.cos(Jt),Rr=ge*Math.sin(Jt),ta=Vr=null}}else zr=Rr=0;if($e>Ue&&(Ie=Math.min(Math.abs(xe-ge)/2,+P.apply(this,arguments)))>.001){He=ge0?0:1}function Au(y,S,P,B,V){var Z=y[0]-S[0],$=y[1]-S[1],X=(V?B:-B)/Math.sqrt(Z*Z+$*$),ae=X*$,ge=-X*Z,xe=y[0]+ae,ze=y[1]+ge,Pe=S[0]+ae,$e=S[1]+ge,st=(xe+Pe)/2,Ie=(ze+$e)/2,He=Pe-xe,Qe=$e-ze,ht=He*He+Qe*Qe,ot=P-B,je=xe*$e-Pe*ze,Zt=(Qe<0?-1:1)*Math.sqrt(Math.max(0,ot*ot*ht-je*je)),or=(je*Qe-He*Zt)/ht,cr=(-je*He-Qe*Zt)/ht,ur=(je*Qe+He*Zt)/ht,zr=(-je*He+Qe*Zt)/ht,Rr=or-st,ta=cr-Ie,Vr=ur-st,Qr=zr-Ie;return Rr*Rr+ta*ta>Vr*Vr+Qr*Qr&&(or=ur,cr=zr),[[or-ae,cr-ge],[or*P/ot,cr*P/ot]]}function sc(){return!0}function Cs(y){var S=pu,P=ml,B=sc,V=jo,Z=V.key,$=.7;function X(ae){var ge=[],xe=[],ze=-1,Pe=ae.length,$e,st=fa(S),Ie=fa(P);function He(){ge.push("M",V(y(xe),$))}for(;++ze1?y.join("L"):y+"Z"}function cf(y){return y.join("L")+"Z"}function iy(y){for(var S=0,P=y.length,B=y[0],V=[B[0],",",B[1]];++S1&&V.push("H",B[0]),V.join("")}function hf(y){for(var S=0,P=y.length,B=y[0],V=[B[0],",",B[1]];++S1){X=S[1],Z=y[ae],ae++,B+="C"+(V[0]+$[0])+","+(V[1]+$[1])+","+(Z[0]-X[0])+","+(Z[1]-X[1])+","+Z[0]+","+Z[1];for(var ge=2;ge9&&(Z=P*3/Math.sqrt(Z),$[X]=Z*B,$[X+1]=Z*V));for(X=-1;++X<=ae;)Z=(y[Math.min(ae,X+1)][0]-y[Math.max(0,X-1)][0])/(6*(1+$[X]*$[X])),S.push([Z||0,$[X]*Z||0]);return S}function Hp(y){return y.length<3?jo(y):y[0]+vf(y,ly(y))}e.svg.line.radial=function(){var y=Cs(Wv);return y.radius=y.x,delete y.x,y.angle=y.y,delete y.y,y};function Wv(y){for(var S,P=-1,B=y.length,V,Z;++PTt)+",1 "+ze}function ge(xe,ze,Pe,$e){return"Q 0,0 "+$e}return Z.radius=function(xe){return arguments.length?(P=fa(xe),Z):P},Z.source=function(xe){return arguments.length?(y=fa(xe),Z):y},Z.target=function(xe){return arguments.length?(S=fa(xe),Z):S},Z.startAngle=function(xe){return arguments.length?(B=fa(xe),Z):B},Z.endAngle=function(xe){return arguments.length?(V=fa(xe),Z):V},Z};function Gp(y){return y.radius}e.svg.diagonal=function(){var y=sh,S=Xv,P=jv;function B(V,Z){var $=y.call(this,V,Z),X=S.call(this,V,Z),ae=($.y+X.y)/2,ge=[$,{x:$.x,y:ae},{x:X.x,y:ae},X];return ge=ge.map(P),"M"+ge[0]+"C"+ge[1]+" "+ge[2]+" "+ge[3]}return B.source=function(V){return arguments.length?(y=fa(V),B):y},B.target=function(V){return arguments.length?(S=fa(V),B):S},B.projection=function(V){return arguments.length?(P=V,B):P},B};function jv(y){return[y.x,y.y]}e.svg.diagonal.radial=function(){var y=e.svg.diagonal(),S=jv,P=y.projection;return y.projection=function(B){return arguments.length?P(Zp(S=B)):S},y};function Zp(y){return function(){var S=y.apply(this,arguments),P=S[0],B=S[1]-Tr;return[P*Math.cos(B),P*Math.sin(B)]}}e.svg.symbol=function(){var y=yf,S=Yp;function P(B,V){return(uh.get(y.call(this,B,V))||lh)(S.call(this,B,V))}return P.type=function(B){return arguments.length?(y=fa(B),P):y},P.size=function(B){return arguments.length?(S=fa(B),P):S},P};function Yp(){return 64}function yf(){return"circle"}function lh(y){var S=Math.sqrt(y/Tt);return"M0,"+S+"A"+S+","+S+" 0 1,1 0,"+-S+"A"+S+","+S+" 0 1,1 0,"+S+"Z"}var uh=e.map({circle:lh,cross:function(y){var S=Math.sqrt(y/5)/2;return"M"+-3*S+","+-S+"H"+-S+"V"+-3*S+"H"+S+"V"+-S+"H"+3*S+"V"+S+"H"+S+"V"+3*S+"H"+-S+"V"+S+"H"+-3*S+"Z"},diamond:function(y){var S=Math.sqrt(y/(2*Jv)),P=S*Jv;return"M0,"+-S+"L"+P+",0 0,"+S+" "+-P+",0Z"},square:function(y){var S=Math.sqrt(y)/2;return"M"+-S+","+-S+"L"+S+","+-S+" "+S+","+S+" "+-S+","+S+"Z"},"triangle-down":function(y){var S=Math.sqrt(y/Su),P=S*Su/2;return"M0,"+P+"L"+S+","+-P+" "+-S+","+-P+"Z"},"triangle-up":function(y){var S=Math.sqrt(y/Su),P=S*Su/2;return"M0,"+-P+"L"+S+","+P+" "+-S+","+P+"Z"}});e.svg.symbolTypes=uh.keys();var Su=Math.sqrt(3),Jv=Math.tan(30*Gr);ft.transition=function(y){for(var S=uo||++Ci,P=ui(y),B=[],V,Z,$=Ls||{time:Date.now(),ease:wl,delay:0,duration:250},X=-1,ae=this.length;++X0;)ze[--ht].call(y,Qe);if(He>=1)return $.event&&$.event.end.call(y,y.__data__,S),--Z.count?delete Z[B]:delete y[P],1}$||(X=V.time,ae=Gc(Pe,0,X),$=Z[B]={tween:new z,time:X,timer:ae,delay:V.delay,duration:V.duration,ease:V.ease,index:S},V=null,++Z.count)}e.svg.axis=function(){var y=e.scale.linear(),S=Fl,P=6,B=6,V=3,Z=[10],$=null,X;function ae(ge){ge.each(function(){var xe=e.select(this),ze=this.__chart__||y,Pe=this.__chart__=y.copy(),$e=$==null?Pe.ticks?Pe.ticks.apply(Pe,Z):Pe.domain():$,st=X==null?Pe.tickFormat?Pe.tickFormat.apply(Pe,Z):Te:X,Ie=xe.selectAll(".tick").data($e,Pe),He=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Ue),Qe=e.transition(Ie.exit()).style("opacity",Ue).remove(),ht=e.transition(Ie.order()).style("opacity",1),ot=Math.max(P,0)+V,je,Zt=$c(Pe),or=xe.selectAll(".domain").data([0]),cr=(or.enter().append("path").attr("class","domain"),e.transition(or));He.append("line"),He.append("text");var ur=He.select("line"),zr=ht.select("line"),Rr=Ie.select("text").text(st),ta=He.select("text"),Vr=ht.select("text"),Qr=S==="top"||S==="left"?-1:1,qa,$a,Ja,Jt;if(S==="bottom"||S==="top"?(je=_f,qa="x",Ja="y",$a="x2",Jt="y2",Rr.attr("dy",Qr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Zt[0]+","+Qr*B+"V0H"+Zt[1]+"V"+Qr*B)):(je=ql,qa="y",Ja="x",$a="y2",Jt="x2",Rr.attr("dy",".32em").style("text-anchor",Qr<0?"end":"start"),cr.attr("d","M"+Qr*B+","+Zt[0]+"H0V"+Zt[1]+"H"+Qr*B)),ur.attr(Jt,Qr*P),ta.attr(Ja,Qr*ot),zr.attr($a,0).attr(Jt,Qr*P),Vr.attr(qa,0).attr(Ja,Qr*ot),Pe.rangeBand){var Kr=Pe,oa=Kr.rangeBand()/2;ze=Pe=function(sa){return Kr(sa)+oa}}else ze.rangeBand?ze=Pe:Qe.call(je,Pe,ze);He.call(je,ze,Pe),ht.call(je,Pe,Pe)})}return ae.scale=function(ge){return arguments.length?(y=ge,ae):y},ae.orient=function(ge){return arguments.length?(S=ge in uc?ge+"":Fl,ae):S},ae.ticks=function(){return arguments.length?(Z=r(arguments),ae):Z},ae.tickValues=function(ge){return arguments.length?($=ge,ae):$},ae.tickFormat=function(ge){return arguments.length?(X=ge,ae):X},ae.tickSize=function(ge){var xe=arguments.length;return xe?(P=+ge,B=+arguments[xe-1],ae):P},ae.innerTickSize=function(ge){return arguments.length?(P=+ge,ae):P},ae.outerTickSize=function(ge){return arguments.length?(B=+ge,ae):B},ae.tickPadding=function(ge){return arguments.length?(V=+ge,ae):V},ae.tickSubdivide=function(){return arguments.length&&ae},ae};var Fl="bottom",uc={top:1,right:1,bottom:1,left:1};function _f(y,S,P){y.attr("transform",function(B){var V=S(B);return"translate("+(isFinite(V)?V:P(B))+",0)"})}function ql(y,S,P){y.attr("transform",function(B){var V=S(B);return"translate(0,"+(isFinite(V)?V:P(B))+")"})}e.svg.brush=function(){var y=nt(xe,"brushstart","brush","brushend"),S=null,P=null,B=[0,0],V=[0,0],Z,$,X=!0,ae=!0,ge=hh[0];function xe(Ie){Ie.each(function(){var He=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",st).on("touchstart.brush",st),Qe=He.selectAll(".background").data([0]);Qe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),He.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ht=He.selectAll(".resize").data(ge,Te);ht.exit().remove(),ht.enter().append("g").attr("class",function(or){return"resize "+or}).style("cursor",function(or){return Ds[or]}).append("rect").attr("x",function(or){return/[ew]$/.test(or)?-3:null}).attr("y",function(or){return/^[ns]/.test(or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ht.style("display",xe.empty()?"none":null);var ot=e.transition(He),je=e.transition(Qe),Zt;S&&(Zt=$c(S),je.attr("x",Zt[0]).attr("width",Zt[1]-Zt[0]),Pe(ot)),P&&(Zt=$c(P),je.attr("y",Zt[0]).attr("height",Zt[1]-Zt[0]),$e(ot)),ze(ot)})}xe.event=function(Ie){Ie.each(function(){var He=y.of(this,arguments),Qe={x:B,y:V,i:Z,j:$},ht=this.__chart__||Qe;this.__chart__=Qe,uo?e.select(this).transition().each("start.brush",function(){Z=ht.i,$=ht.j,B=ht.x,V=ht.y,He({type:"brushstart"})}).tween("brush:brush",function(){var ot=Wo(B,Qe.x),je=Wo(V,Qe.y);return Z=$=null,function(Zt){B=Qe.x=ot(Zt),V=Qe.y=je(Zt),He({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Qe.i,$=Qe.j,He({type:"brush",mode:"resize"}),He({type:"brushend"})}):(He({type:"brushstart"}),He({type:"brush",mode:"resize"}),He({type:"brushend"}))})};function ze(Ie){Ie.selectAll(".resize").attr("transform",function(He){return"translate("+B[+/e$/.test(He)]+","+V[+/^s/.test(He)]+")"})}function Pe(Ie){Ie.select(".extent").attr("x",B[0]),Ie.selectAll(".extent,.n>rect,.s>rect").attr("width",B[1]-B[0])}function $e(Ie){Ie.select(".extent").attr("y",V[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",V[1]-V[0])}function st(){var Ie=this,He=e.select(e.event.target),Qe=y.of(Ie,arguments),ht=e.select(Ie),ot=He.datum(),je=!/^(n|s)$/.test(ot)&&S,Zt=!/^(e|w)$/.test(ot)&&P,or=He.classed("extent"),cr=yr(Ie),ur,zr=e.mouse(Ie),Rr,ta=e.select(s(Ie)).on("keydown.brush",qa).on("keyup.brush",$a);if(e.event.changedTouches?ta.on("touchmove.brush",Ja).on("touchend.brush",Kr):ta.on("mousemove.brush",Ja).on("mouseup.brush",Kr),ht.interrupt().selectAll("*").interrupt(),or)zr[0]=B[0]-zr[0],zr[1]=V[0]-zr[1];else if(ot){var Vr=+/w$/.test(ot),Qr=+/^n/.test(ot);Rr=[B[1-Vr]-zr[0],V[1-Qr]-zr[1]],zr[0]=B[Vr],zr[1]=V[Qr]}else e.event.altKey&&(ur=zr.slice());ht.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",He.style("cursor")),Qe({type:"brushstart"}),Ja();function qa(){e.event.keyCode==32&&(or||(ur=null,zr[0]-=B[1],zr[1]-=V[1],or=2),Xe())}function $a(){e.event.keyCode==32&&or==2&&(zr[0]+=B[1],zr[1]+=V[1],or=0,Xe())}function Ja(){var oa=e.mouse(Ie),sa=!1;Rr&&(oa[0]+=Rr[0],oa[1]+=Rr[1]),or||(e.event.altKey?(ur||(ur=[(B[0]+B[1])/2,(V[0]+V[1])/2]),zr[0]=B[+(oa[0]{(function(e,t){typeof o_=="object"&&typeof z7!="undefined"?t(o_):(e=e||self,t(e.d3=e.d3||{}))})(o_,function(e){"use strict";var t=new Date,r=new Date;function i(Be,ut,sr,Pr){function Lt(vt){return Be(vt=arguments.length===0?new Date:new Date(+vt)),vt}return Lt.floor=function(vt){return Be(vt=new Date(+vt)),vt},Lt.ceil=function(vt){return Be(vt=new Date(vt-1)),ut(vt,1),Be(vt),vt},Lt.round=function(vt){var pt=Lt(vt),Nt=Lt.ceil(vt);return vt-pt0))return er;do er.push(Ht=new Date(+vt)),ut(vt,Nt),Be(vt);while(Ht=pt)for(;Be(pt),!vt(pt);)pt.setTime(pt-1)},function(pt,Nt){if(pt>=pt)if(Nt<0)for(;++Nt<=0;)for(;ut(pt,-1),!vt(pt););else for(;--Nt>=0;)for(;ut(pt,1),!vt(pt););})},sr&&(Lt.count=function(vt,pt){return t.setTime(+vt),r.setTime(+pt),Be(t),Be(r),Math.floor(sr(t,r))},Lt.every=function(vt){return vt=Math.floor(vt),!isFinite(vt)||!(vt>0)?null:vt>1?Lt.filter(Pr?function(pt){return Pr(pt)%vt===0}:function(pt){return Lt.count(0,pt)%vt===0}):Lt}),Lt}var a=i(function(){},function(Be,ut){Be.setTime(+Be+ut)},function(Be,ut){return ut-Be});a.every=function(Be){return Be=Math.floor(Be),!isFinite(Be)||!(Be>0)?null:Be>1?i(function(ut){ut.setTime(Math.floor(ut/Be)*Be)},function(ut,sr){ut.setTime(+ut+sr*Be)},function(ut,sr){return(sr-ut)/Be}):a};var s=a.range,l=1e3,u=6e4,h=36e5,v=864e5,m=6048e5,_=i(function(Be){Be.setTime(Be-Be.getMilliseconds())},function(Be,ut){Be.setTime(+Be+ut*l)},function(Be,ut){return(ut-Be)/l},function(Be){return Be.getUTCSeconds()}),T=_.range,M=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l)},function(Be,ut){Be.setTime(+Be+ut*u)},function(Be,ut){return(ut-Be)/u},function(Be){return Be.getMinutes()}),C=M.range,E=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l-Be.getMinutes()*u)},function(Be,ut){Be.setTime(+Be+ut*h)},function(Be,ut){return(ut-Be)/h},function(Be){return Be.getHours()}),L=E.range,I=i(function(Be){Be.setHours(0,0,0,0)},function(Be,ut){Be.setDate(Be.getDate()+ut)},function(Be,ut){return(ut-Be-(ut.getTimezoneOffset()-Be.getTimezoneOffset())*u)/v},function(Be){return Be.getDate()-1}),O=I.range;function q(Be){return i(function(ut){ut.setDate(ut.getDate()-(ut.getDay()+7-Be)%7),ut.setHours(0,0,0,0)},function(ut,sr){ut.setDate(ut.getDate()+sr*7)},function(ut,sr){return(sr-ut-(sr.getTimezoneOffset()-ut.getTimezoneOffset())*u)/m})}var z=q(0),N=q(1),H=q(2),U=q(3),W=q(4),J=q(5),ee=q(6),ie=z.range,oe=N.range,he=H.range,fe=U.range,Te=W.range,ke=J.range,Se=ee.range,Ae=i(function(Be){Be.setDate(1),Be.setHours(0,0,0,0)},function(Be,ut){Be.setMonth(Be.getMonth()+ut)},function(Be,ut){return ut.getMonth()-Be.getMonth()+(ut.getFullYear()-Be.getFullYear())*12},function(Be){return Be.getMonth()}),me=Ae.range,Ce=i(function(Be){Be.setMonth(0,1),Be.setHours(0,0,0,0)},function(Be,ut){Be.setFullYear(Be.getFullYear()+ut)},function(Be,ut){return ut.getFullYear()-Be.getFullYear()},function(Be){return Be.getFullYear()});Ce.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ut){ut.setFullYear(Math.floor(ut.getFullYear()/Be)*Be),ut.setMonth(0,1),ut.setHours(0,0,0,0)},function(ut,sr){ut.setFullYear(ut.getFullYear()+sr*Be)})};var Me=Ce.range,Xe=i(function(Be){Be.setUTCSeconds(0,0)},function(Be,ut){Be.setTime(+Be+ut*u)},function(Be,ut){return(ut-Be)/u},function(Be){return Be.getUTCMinutes()}),it=Xe.range,nt=i(function(Be){Be.setUTCMinutes(0,0,0)},function(Be,ut){Be.setTime(+Be+ut*h)},function(Be,ut){return(ut-Be)/h},function(Be){return Be.getUTCHours()}),gt=nt.range,Ge=i(function(Be){Be.setUTCHours(0,0,0,0)},function(Be,ut){Be.setUTCDate(Be.getUTCDate()+ut)},function(Be,ut){return(ut-Be)/v},function(Be){return Be.getUTCDate()-1}),Ct=Ge.range;function lt(Be){return i(function(ut){ut.setUTCDate(ut.getUTCDate()-(ut.getUTCDay()+7-Be)%7),ut.setUTCHours(0,0,0,0)},function(ut,sr){ut.setUTCDate(ut.getUTCDate()+sr*7)},function(ut,sr){return(sr-ut)/m})}var mt=lt(0),Ot=lt(1),ft=lt(2),pe=lt(3),De=lt(4),ye=lt(5),Oe=lt(6),at=mt.range,Je=Ot.range,Pt=ft.range,xt=pe.range,bt=De.range,Vt=ye.range,qt=Oe.range,Dt=i(function(Be){Be.setUTCDate(1),Be.setUTCHours(0,0,0,0)},function(Be,ut){Be.setUTCMonth(Be.getUTCMonth()+ut)},function(Be,ut){return ut.getUTCMonth()-Be.getUTCMonth()+(ut.getUTCFullYear()-Be.getUTCFullYear())*12},function(Be){return Be.getUTCMonth()}),At=Dt.range,Ut=i(function(Be){Be.setUTCMonth(0,1),Be.setUTCHours(0,0,0,0)},function(Be,ut){Be.setUTCFullYear(Be.getUTCFullYear()+ut)},function(Be,ut){return ut.getUTCFullYear()-Be.getUTCFullYear()},function(Be){return Be.getUTCFullYear()});Ut.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ut){ut.setUTCFullYear(Math.floor(ut.getUTCFullYear()/Be)*Be),ut.setUTCMonth(0,1),ut.setUTCHours(0,0,0,0)},function(ut,sr){ut.setUTCFullYear(ut.getUTCFullYear()+sr*Be)})};var Wt=Ut.range;e.timeDay=I,e.timeDays=O,e.timeFriday=J,e.timeFridays=ke,e.timeHour=E,e.timeHours=L,e.timeInterval=i,e.timeMillisecond=a,e.timeMilliseconds=s,e.timeMinute=M,e.timeMinutes=C,e.timeMonday=N,e.timeMondays=oe,e.timeMonth=Ae,e.timeMonths=me,e.timeSaturday=ee,e.timeSaturdays=Se,e.timeSecond=_,e.timeSeconds=T,e.timeSunday=z,e.timeSundays=ie,e.timeThursday=W,e.timeThursdays=Te,e.timeTuesday=H,e.timeTuesdays=he,e.timeWednesday=U,e.timeWednesdays=fe,e.timeWeek=z,e.timeWeeks=ie,e.timeYear=Ce,e.timeYears=Me,e.utcDay=Ge,e.utcDays=Ct,e.utcFriday=ye,e.utcFridays=Vt,e.utcHour=nt,e.utcHours=gt,e.utcMillisecond=a,e.utcMilliseconds=s,e.utcMinute=Xe,e.utcMinutes=it,e.utcMonday=Ot,e.utcMondays=Je,e.utcMonth=Dt,e.utcMonths=At,e.utcSaturday=Oe,e.utcSaturdays=qt,e.utcSecond=_,e.utcSeconds=T,e.utcSunday=mt,e.utcSundays=at,e.utcThursday=De,e.utcThursdays=bt,e.utcTuesday=ft,e.utcTuesdays=Pt,e.utcWednesday=pe,e.utcWednesdays=xt,e.utcWeek=mt,e.utcWeeks=at,e.utcYear=Ut,e.utcYears=Wt,Object.defineProperty(e,"__esModule",{value:!0})})});var x0=de((s_,I7)=>{(function(e,t){typeof s_=="object"&&typeof I7!="undefined"?t(s_,j3()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(s_,function(e,t){"use strict";function r(Fe){if(0<=Fe.y&&Fe.y<100){var Ue=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return Ue.setFullYear(Fe.y),Ue}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function i(Fe){if(0<=Fe.y&&Fe.y<100){var Ue=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return Ue.setUTCFullYear(Fe.y),Ue}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function a(Fe,Ue,wt){return{y:Fe,m:Ue,d:wt,H:0,M:0,S:0,L:0}}function s(Fe){var Ue=Fe.dateTime,wt=Fe.date,Tt=Fe.time,vr=Fe.periods,Mr=Fe.days,Tr=Fe.shortDays,Gr=Fe.months,pa=Fe.shortMonths,Aa=T(vr),ai=M(vr),bi=T(Mr),hi=M(Mr),Hi=T(Tr),Ii=M(Tr),_n=T(Gr),an=M(Gr),Gi=T(pa),ma=M(pa),nn={a:Mt,A:Rt,b:tr,B:Xt,c:null,d:Ae,e:Ae,f:it,H:me,I:Ce,j:Me,L:Xe,m:nt,M:gt,p:Sr,q:Zr,Q:pt,s:Nt,S:Ge,u:Ct,U:lt,V:mt,w:Ot,W:ft,x:null,X:null,y:pe,Y:De,Z:ye,"%":vt},Bi={a:Or,A:ca,b:ua,B:Fa,c:null,d:Oe,e:Oe,f:bt,H:at,I:Je,j:Pt,L:xt,m:Vt,M:qt,p:ti,q:Yr,Q:pt,s:Nt,S:Dt,u:At,U:Ut,V:Wt,w:Be,W:ut,x:null,X:null,y:sr,Y:Pr,Z:Lt,"%":vt},ir={a:se,A:ue,b:Le,B:Ne,c:rt,d:W,e:W,f:fe,H:ee,I:ee,j:J,L:he,m:U,M:ie,p:te,q:H,Q:ke,s:Se,S:oe,u:E,U:L,V:I,w:C,W:O,x:Ye,X:yt,y:z,Y:q,Z:N,"%":Te};nn.x=ii(wt,nn),nn.X=ii(Tt,nn),nn.c=ii(Ue,nn),Bi.x=ii(wt,Bi),Bi.X=ii(Tt,Bi),Bi.c=ii(Ue,Bi);function ii(gr,ea){return function(ga){var nr=[],wi=-1,Ca=0,oi=gr.length,fa,In,Co;for(ga instanceof Date||(ga=new Date(+ga));++wi53)return null;"w"in nr||(nr.w=1),"Z"in nr?(Ca=i(a(nr.y,0,1)),oi=Ca.getUTCDay(),Ca=oi>4||oi===0?t.utcMonday.ceil(Ca):t.utcMonday(Ca),Ca=t.utcDay.offset(Ca,(nr.V-1)*7),nr.y=Ca.getUTCFullYear(),nr.m=Ca.getUTCMonth(),nr.d=Ca.getUTCDate()+(nr.w+6)%7):(Ca=r(a(nr.y,0,1)),oi=Ca.getDay(),Ca=oi>4||oi===0?t.timeMonday.ceil(Ca):t.timeMonday(Ca),Ca=t.timeDay.offset(Ca,(nr.V-1)*7),nr.y=Ca.getFullYear(),nr.m=Ca.getMonth(),nr.d=Ca.getDate()+(nr.w+6)%7)}else("W"in nr||"U"in nr)&&("w"in nr||(nr.w="u"in nr?nr.u%7:"W"in nr?1:0),oi="Z"in nr?i(a(nr.y,0,1)).getUTCDay():r(a(nr.y,0,1)).getDay(),nr.m=0,nr.d="W"in nr?(nr.w+6)%7+nr.W*7-(oi+5)%7:nr.w+nr.U*7-(oi+6)%7);return"Z"in nr?(nr.H+=nr.Z/100|0,nr.M+=nr.Z%100,i(nr)):r(nr)}}function le(gr,ea,ga,nr){for(var wi=0,Ca=ea.length,oi=ga.length,fa,In;wi=oi)return-1;if(fa=ea.charCodeAt(wi++),fa===37){if(fa=ea.charAt(wi++),In=ir[fa in l?ea.charAt(wi++):fa],!In||(nr=In(gr,ga,nr))<0)return-1}else if(fa!=ga.charCodeAt(nr++))return-1}return nr}function te(gr,ea,ga){var nr=Aa.exec(ea.slice(ga));return nr?(gr.p=ai[nr[0].toLowerCase()],ga+nr[0].length):-1}function se(gr,ea,ga){var nr=Hi.exec(ea.slice(ga));return nr?(gr.w=Ii[nr[0].toLowerCase()],ga+nr[0].length):-1}function ue(gr,ea,ga){var nr=bi.exec(ea.slice(ga));return nr?(gr.w=hi[nr[0].toLowerCase()],ga+nr[0].length):-1}function Le(gr,ea,ga){var nr=Gi.exec(ea.slice(ga));return nr?(gr.m=ma[nr[0].toLowerCase()],ga+nr[0].length):-1}function Ne(gr,ea,ga){var nr=_n.exec(ea.slice(ga));return nr?(gr.m=an[nr[0].toLowerCase()],ga+nr[0].length):-1}function rt(gr,ea,ga){return le(gr,Ue,ea,ga)}function Ye(gr,ea,ga){return le(gr,wt,ea,ga)}function yt(gr,ea,ga){return le(gr,Tt,ea,ga)}function Mt(gr){return Tr[gr.getDay()]}function Rt(gr){return Mr[gr.getDay()]}function tr(gr){return pa[gr.getMonth()]}function Xt(gr){return Gr[gr.getMonth()]}function Sr(gr){return vr[+(gr.getHours()>=12)]}function Zr(gr){return 1+~~(gr.getMonth()/3)}function Or(gr){return Tr[gr.getUTCDay()]}function ca(gr){return Mr[gr.getUTCDay()]}function ua(gr){return pa[gr.getUTCMonth()]}function Fa(gr){return Gr[gr.getUTCMonth()]}function ti(gr){return vr[+(gr.getUTCHours()>=12)]}function Yr(gr){return 1+~~(gr.getUTCMonth()/3)}return{format:function(gr){var ea=ii(gr+="",nn);return ea.toString=function(){return gr},ea},parse:function(gr){var ea=Wr(gr+="",!1);return ea.toString=function(){return gr},ea},utcFormat:function(gr){var ea=ii(gr+="",Bi);return ea.toString=function(){return gr},ea},utcParse:function(gr){var ea=Wr(gr+="",!0);return ea.toString=function(){return gr},ea}}}var l={"-":"",_:" ",0:"0"},u=/^\s*\d+/,h=/^%/,v=/[\\^$*+?|[\]().{}]/g;function m(Fe,Ue,wt){var Tt=Fe<0?"-":"",vr=(Tt?-Fe:Fe)+"",Mr=vr.length;return Tt+(Mr68?1900:2e3),wt+Tt[0].length):-1}function N(Fe,Ue,wt){var Tt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ue.slice(wt,wt+6));return Tt?(Fe.Z=Tt[1]?0:-(Tt[2]+(Tt[3]||"00")),wt+Tt[0].length):-1}function H(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+1));return Tt?(Fe.q=Tt[0]*3-3,wt+Tt[0].length):-1}function U(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.m=Tt[0]-1,wt+Tt[0].length):-1}function W(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.d=+Tt[0],wt+Tt[0].length):-1}function J(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+3));return Tt?(Fe.m=0,Fe.d=+Tt[0],wt+Tt[0].length):-1}function ee(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.H=+Tt[0],wt+Tt[0].length):-1}function ie(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.M=+Tt[0],wt+Tt[0].length):-1}function oe(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+2));return Tt?(Fe.S=+Tt[0],wt+Tt[0].length):-1}function he(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+3));return Tt?(Fe.L=+Tt[0],wt+Tt[0].length):-1}function fe(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt,wt+6));return Tt?(Fe.L=Math.floor(Tt[0]/1e3),wt+Tt[0].length):-1}function Te(Fe,Ue,wt){var Tt=h.exec(Ue.slice(wt,wt+1));return Tt?wt+Tt[0].length:-1}function ke(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt));return Tt?(Fe.Q=+Tt[0],wt+Tt[0].length):-1}function Se(Fe,Ue,wt){var Tt=u.exec(Ue.slice(wt));return Tt?(Fe.s=+Tt[0],wt+Tt[0].length):-1}function Ae(Fe,Ue){return m(Fe.getDate(),Ue,2)}function me(Fe,Ue){return m(Fe.getHours(),Ue,2)}function Ce(Fe,Ue){return m(Fe.getHours()%12||12,Ue,2)}function Me(Fe,Ue){return m(1+t.timeDay.count(t.timeYear(Fe),Fe),Ue,3)}function Xe(Fe,Ue){return m(Fe.getMilliseconds(),Ue,3)}function it(Fe,Ue){return Xe(Fe,Ue)+"000"}function nt(Fe,Ue){return m(Fe.getMonth()+1,Ue,2)}function gt(Fe,Ue){return m(Fe.getMinutes(),Ue,2)}function Ge(Fe,Ue){return m(Fe.getSeconds(),Ue,2)}function Ct(Fe){var Ue=Fe.getDay();return Ue===0?7:Ue}function lt(Fe,Ue){return m(t.timeSunday.count(t.timeYear(Fe)-1,Fe),Ue,2)}function mt(Fe,Ue){var wt=Fe.getDay();return Fe=wt>=4||wt===0?t.timeThursday(Fe):t.timeThursday.ceil(Fe),m(t.timeThursday.count(t.timeYear(Fe),Fe)+(t.timeYear(Fe).getDay()===4),Ue,2)}function Ot(Fe){return Fe.getDay()}function ft(Fe,Ue){return m(t.timeMonday.count(t.timeYear(Fe)-1,Fe),Ue,2)}function pe(Fe,Ue){return m(Fe.getFullYear()%100,Ue,2)}function De(Fe,Ue){return m(Fe.getFullYear()%1e4,Ue,4)}function ye(Fe){var Ue=Fe.getTimezoneOffset();return(Ue>0?"-":(Ue*=-1,"+"))+m(Ue/60|0,"0",2)+m(Ue%60,"0",2)}function Oe(Fe,Ue){return m(Fe.getUTCDate(),Ue,2)}function at(Fe,Ue){return m(Fe.getUTCHours(),Ue,2)}function Je(Fe,Ue){return m(Fe.getUTCHours()%12||12,Ue,2)}function Pt(Fe,Ue){return m(1+t.utcDay.count(t.utcYear(Fe),Fe),Ue,3)}function xt(Fe,Ue){return m(Fe.getUTCMilliseconds(),Ue,3)}function bt(Fe,Ue){return xt(Fe,Ue)+"000"}function Vt(Fe,Ue){return m(Fe.getUTCMonth()+1,Ue,2)}function qt(Fe,Ue){return m(Fe.getUTCMinutes(),Ue,2)}function Dt(Fe,Ue){return m(Fe.getUTCSeconds(),Ue,2)}function At(Fe){var Ue=Fe.getUTCDay();return Ue===0?7:Ue}function Ut(Fe,Ue){return m(t.utcSunday.count(t.utcYear(Fe)-1,Fe),Ue,2)}function Wt(Fe,Ue){var wt=Fe.getUTCDay();return Fe=wt>=4||wt===0?t.utcThursday(Fe):t.utcThursday.ceil(Fe),m(t.utcThursday.count(t.utcYear(Fe),Fe)+(t.utcYear(Fe).getUTCDay()===4),Ue,2)}function Be(Fe){return Fe.getUTCDay()}function ut(Fe,Ue){return m(t.utcMonday.count(t.utcYear(Fe)-1,Fe),Ue,2)}function sr(Fe,Ue){return m(Fe.getUTCFullYear()%100,Ue,2)}function Pr(Fe,Ue){return m(Fe.getUTCFullYear()%1e4,Ue,4)}function Lt(){return"+0000"}function vt(){return"%"}function pt(Fe){return+Fe}function Nt(Fe){return Math.floor(+Fe/1e3)}var er;Ht({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ht(Fe){return er=s(Fe),e.timeFormat=er.format,e.timeParse=er.parse,e.utcFormat=er.utcFormat,e.utcParse=er.utcParse,er}var Gt="%Y-%m-%dT%H:%M:%S.%LZ";function hr(Fe){return Fe.toISOString()}var yr=Date.prototype.toISOString?hr:e.utcFormat(Gt);function mr(Fe){var Ue=new Date(Fe);return isNaN(Ue)?null:Ue}var Et=+new Date("2000-01-01T00:00:00.000Z")?mr:e.utcParse(Gt);e.isoFormat=yr,e.isoParse=Et,e.timeFormatDefaultLocale=Ht,e.timeFormatLocale=s,Object.defineProperty(e,"__esModule",{value:!0})})});var J3=de((l_,R7)=>{(function(e,t){typeof l_=="object"&&typeof R7!="undefined"?t(l_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(l_,(function(e){"use strict";function t(U){return Math.abs(U=Math.round(U))>=1e21?U.toLocaleString("en").replace(/,/g,""):U.toString(10)}function r(U,W){if((J=(U=W?U.toExponential(W-1):U.toExponential()).indexOf("e"))<0)return null;var J,ee=U.slice(0,J);return[ee.length>1?ee[0]+ee.slice(2):ee,+U.slice(J+1)]}function i(U){return U=r(Math.abs(U)),U?U[1]:NaN}function a(U,W){return function(J,ee){for(var ie=J.length,oe=[],he=0,fe=U[0],Te=0;ie>0&&fe>0&&(Te+fe+1>ee&&(fe=Math.max(1,ee-Te)),oe.push(J.substring(ie-=fe,ie+fe)),!((Te+=fe+1)>ee));)fe=U[he=(he+1)%U.length];return oe.reverse().join(W)}}function s(U){return function(W){return W.replace(/[0-9]/g,function(J){return U[+J]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function u(U){if(!(W=l.exec(U)))throw new Error("invalid format: "+U);var W;return new h({fill:W[1],align:W[2],sign:W[3],symbol:W[4],zero:W[5],width:W[6],comma:W[7],precision:W[8]&&W[8].slice(1),trim:W[9],type:W[10]})}u.prototype=h.prototype;function h(U){this.fill=U.fill===void 0?" ":U.fill+"",this.align=U.align===void 0?">":U.align+"",this.sign=U.sign===void 0?"-":U.sign+"",this.symbol=U.symbol===void 0?"":U.symbol+"",this.zero=!!U.zero,this.width=U.width===void 0?void 0:+U.width,this.comma=!!U.comma,this.precision=U.precision===void 0?void 0:+U.precision,this.trim=!!U.trim,this.type=U.type===void 0?"":U.type+""}h.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function v(U){e:for(var W=U.length,J=1,ee=-1,ie;J0&&(ee=0);break}return ee>0?U.slice(0,ee)+U.slice(ie+1):U}var m;function _(U,W){var J=r(U,W);if(!J)return U+"";var ee=J[0],ie=J[1],oe=ie-(m=Math.max(-8,Math.min(8,Math.floor(ie/3)))*3)+1,he=ee.length;return oe===he?ee:oe>he?ee+new Array(oe-he+1).join("0"):oe>0?ee.slice(0,oe)+"."+ee.slice(oe):"0."+new Array(1-oe).join("0")+r(U,Math.max(0,W+oe-1))[0]}function T(U,W){var J=r(U,W);if(!J)return U+"";var ee=J[0],ie=J[1];return ie<0?"0."+new Array(-ie).join("0")+ee:ee.length>ie+1?ee.slice(0,ie+1)+"."+ee.slice(ie+1):ee+new Array(ie-ee.length+2).join("0")}var M={"%":function(U,W){return(U*100).toFixed(W)},b:function(U){return Math.round(U).toString(2)},c:function(U){return U+""},d:t,e:function(U,W){return U.toExponential(W)},f:function(U,W){return U.toFixed(W)},g:function(U,W){return U.toPrecision(W)},o:function(U){return Math.round(U).toString(8)},p:function(U,W){return T(U*100,W)},r:T,s:_,X:function(U){return Math.round(U).toString(16).toUpperCase()},x:function(U){return Math.round(U).toString(16)}};function C(U){return U}var E=Array.prototype.map,L=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function I(U){var W=U.grouping===void 0||U.thousands===void 0?C:a(E.call(U.grouping,Number),U.thousands+""),J=U.currency===void 0?"":U.currency[0]+"",ee=U.currency===void 0?"":U.currency[1]+"",ie=U.decimal===void 0?".":U.decimal+"",oe=U.numerals===void 0?C:s(E.call(U.numerals,String)),he=U.percent===void 0?"%":U.percent+"",fe=U.minus===void 0?"-":U.minus+"",Te=U.nan===void 0?"NaN":U.nan+"";function ke(Ae){Ae=u(Ae);var me=Ae.fill,Ce=Ae.align,Me=Ae.sign,Xe=Ae.symbol,it=Ae.zero,nt=Ae.width,gt=Ae.comma,Ge=Ae.precision,Ct=Ae.trim,lt=Ae.type;lt==="n"?(gt=!0,lt="g"):M[lt]||(Ge===void 0&&(Ge=12),Ct=!0,lt="g"),(it||me==="0"&&Ce==="=")&&(it=!0,me="0",Ce="=");var mt=Xe==="$"?J:Xe==="#"&&/[boxX]/.test(lt)?"0"+lt.toLowerCase():"",Ot=Xe==="$"?ee:/[%p]/.test(lt)?he:"",ft=M[lt],pe=/[defgprs%]/.test(lt);Ge=Ge===void 0?6:/[gprs]/.test(lt)?Math.max(1,Math.min(21,Ge)):Math.max(0,Math.min(20,Ge));function De(ye){var Oe=mt,at=Ot,Je,Pt,xt;if(lt==="c")at=ft(ye)+at,ye="";else{ye=+ye;var bt=ye<0||1/ye<0;if(ye=isNaN(ye)?Te:ft(Math.abs(ye),Ge),Ct&&(ye=v(ye)),bt&&+ye==0&&Me!=="+"&&(bt=!1),Oe=(bt?Me==="("?Me:fe:Me==="-"||Me==="("?"":Me)+Oe,at=(lt==="s"?L[8+m/3]:"")+at+(bt&&Me==="("?")":""),pe){for(Je=-1,Pt=ye.length;++Jext||xt>57){at=(xt===46?ie+ye.slice(Je+1):ye.slice(Je))+at,ye=ye.slice(0,Je);break}}}gt&&!it&&(ye=W(ye,1/0));var Vt=Oe.length+ye.length+at.length,qt=Vt>1)+Oe+ye+at+qt.slice(Vt);break;default:ye=qt+Oe+ye+at;break}return oe(ye)}return De.toString=function(){return Ae+""},De}function Se(Ae,me){var Ce=ke((Ae=u(Ae),Ae.type="f",Ae)),Me=Math.max(-8,Math.min(8,Math.floor(i(me)/3)))*3,Xe=Math.pow(10,-Me),it=L[8+Me/3];return function(nt){return Ce(Xe*nt)+it}}return{format:ke,formatPrefix:Se}}var O;q({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function q(U){return O=I(U),e.format=O.format,e.formatPrefix=O.formatPrefix,O}function z(U){return Math.max(0,-i(Math.abs(U)))}function N(U,W){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(W)/3)))*3-i(Math.abs(U)))}function H(U,W){return U=Math.abs(U),W=Math.abs(W)-U,Math.max(0,i(W)-i(U))+1}e.FormatSpecifier=h,e.formatDefaultLocale=q,e.formatLocale=I,e.formatSpecifier=u,e.precisionFixed=z,e.precisionPrefix=N,e.precisionRound=H,Object.defineProperty(e,"__esModule",{value:!0})}))});var q7=de((_ye,F7)=>{"use strict";F7.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var La=de((xye,N7)=>{"use strict";var Tj=q7();N7.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Tj(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Zi=de((bye,B7)=>{"use strict";B7.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var K3=de((u_,O7)=>{(function(e,t){typeof u_=="object"&&typeof O7!="undefined"?t(u_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(u_,(function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],m+=t[(u[h]&3)<<4|u[h+1]>>4],m+=t[(u[h+1]&15)<<2|u[h+2]>>6],m+=t[u[h+2]&63];return v%3===2?m=m.substring(0,m.length-1)+"=":v%3===1&&(m=m.substring(0,m.length-2)+"=="),m},s=function(l){var u=l.length*.75,h=l.length,v,m=0,_,T,M,C;l[l.length-1]==="="&&(u--,l[l.length-2]==="="&&u--);var E=new ArrayBuffer(u),L=new Uint8Array(E);for(v=0;v>4,L[m++]=(T&15)<<4|M>>2,L[m++]=(M&3)<<6|C&63;return E};e.decode=s,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var gc=de((wye,U7)=>{"use strict";U7.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var Fs=de(zu=>{"use strict";var Aj=K3().decode,Mj=gc(),Q3=Array.isArray,Sj=ArrayBuffer,kj=DataView;function V7(e){return Sj.isView(e)&&!(e instanceof kj)}zu.isTypedArray=V7;function f_(e){return Q3(e)||V7(e)}zu.isArrayOrTypedArray=f_;function Cj(e){return!f_(e[0])}zu.isArray1D=Cj;zu.ensureArray=function(e,t){return Q3(e)||(e=[]),e.length=t,e};var ho={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ho.uint8c=ho.u1c;ho.uint8=ho.u1;ho.int8=ho.i1;ho.uint16=ho.u2;ho.int16=ho.i2;ho.uint32=ho.u4;ho.int32=ho.i4;ho.float32=ho.f4;ho.float64=ho.f8;function $3(e){return e.constructor===ArrayBuffer}zu.isArrayBuffer=$3;zu.decodeTypedArraySpec=function(e){var t=[],r=Ej(e),i=r.dtype,a=ho[i];if(!a)throw new Error('Error in dtype: "'+i+'"');var s=a.BYTES_PER_ELEMENT,l=r.bdata;$3(l)||(l=Aj(l));var u=r.shape===void 0?[l.byteLength/s]:(""+r.shape).split(",");u.reverse();var h=u.length,v,m,_=+u[0],T=s*_,M=0;if(h===1)t=new a(l);else if(h===2)for(v=+u[1],m=0;m{"use strict";var G7=La(),tw=Fs().isArrayOrTypedArray;X7.exports=function(t,r){if(G7(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),a,s,l,u;for(u=0;u{"use strict";var b0=Py(),Ij=/^\w*$/,Rj=0,j7=1,c_=2,J7=3,ld=4;K7.exports=function(t,r,i,a){i=i||"name",a=a||"value";var s,l,u,h={};r&&r.length?(u=b0(t,r),l=u.get()):l=t,r=r||"";var v={};if(l)for(s=0;s2)return h[M]=h[M]|c_,_.set(T,null);if(m){for(s=M;s{"use strict";var Fj=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,qj=/^[^\.\[\]]+$/;$7.exports=function(e,t){for(;t;){var r=e.match(Fj);if(r)e=r[1];else if(e.match(qj))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var h_=de((kye,t8)=>{"use strict";var Nj=La();t8.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Nj(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var i8=de((Cye,a8)=>{"use strict";var r8=Fs().isArrayOrTypedArray,zy=gc();a8.exports=function e(t,r){for(var i in r){var a=r[i],s=t[i];if(s!==a)if(i.charAt(0)==="_"||typeof a=="function"){if(i in t)continue;t[i]=a}else if(r8(a)&&r8(s)&&zy(a[0])){if(i==="customdata"||i==="ids")continue;for(var l=Math.min(a.length,s.length),u=0;u{"use strict";function Bj(e,t){var r=e%t;return r<0?r+t:r}function Oj(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}n8.exports={mod:Bj,modHalf:Oj}});var Sf=de((Lye,v_)=>{(function(e){var t=/^\s+/,r=/\s+$/,i=0,a=e.round,s=e.min,l=e.max,u=e.random;function h(pe,De){if(pe=pe||"",De=De||{},pe instanceof h)return pe;if(!(this instanceof h))return new h(pe,De);var ye=v(pe);this._originalInput=pe,this._r=ye.r,this._g=ye.g,this._b=ye.b,this._a=ye.a,this._roundA=a(100*this._a)/100,this._format=De.format||ye.format,this._gradientType=De.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=ye.ok,this._tc_id=i++}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var pe=this.toRgb();return(pe.r*299+pe.g*587+pe.b*114)/1e3},getLuminance:function(){var pe=this.toRgb(),De,ye,Oe,at,Je,Pt;return De=pe.r/255,ye=pe.g/255,Oe=pe.b/255,De<=.03928?at=De/12.92:at=e.pow((De+.055)/1.055,2.4),ye<=.03928?Je=ye/12.92:Je=e.pow((ye+.055)/1.055,2.4),Oe<=.03928?Pt=Oe/12.92:Pt=e.pow((Oe+.055)/1.055,2.4),.2126*at+.7152*Je+.0722*Pt},setAlpha:function(pe){return this._a=Ae(pe),this._roundA=a(100*this._a)/100,this},toHsv:function(){var pe=M(this._r,this._g,this._b);return{h:pe.h*360,s:pe.s,v:pe.v,a:this._a}},toHsvString:function(){var pe=M(this._r,this._g,this._b),De=a(pe.h*360),ye=a(pe.s*100),Oe=a(pe.v*100);return this._a==1?"hsv("+De+", "+ye+"%, "+Oe+"%)":"hsva("+De+", "+ye+"%, "+Oe+"%, "+this._roundA+")"},toHsl:function(){var pe=_(this._r,this._g,this._b);return{h:pe.h*360,s:pe.s,l:pe.l,a:this._a}},toHslString:function(){var pe=_(this._r,this._g,this._b),De=a(pe.h*360),ye=a(pe.s*100),Oe=a(pe.l*100);return this._a==1?"hsl("+De+", "+ye+"%, "+Oe+"%)":"hsla("+De+", "+ye+"%, "+Oe+"%, "+this._roundA+")"},toHex:function(pe){return E(this._r,this._g,this._b,pe)},toHexString:function(pe){return"#"+this.toHex(pe)},toHex8:function(pe){return L(this._r,this._g,this._b,this._a,pe)},toHex8String:function(pe){return"#"+this.toHex8(pe)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(me(this._r,255)*100)+"%",g:a(me(this._g,255)*100)+"%",b:a(me(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(me(this._r,255)*100)+"%, "+a(me(this._g,255)*100)+"%, "+a(me(this._b,255)*100)+"%)":"rgba("+a(me(this._r,255)*100)+"%, "+a(me(this._g,255)*100)+"%, "+a(me(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ke[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(pe){var De="#"+I(this._r,this._g,this._b,this._a),ye=De,Oe=this._gradientType?"GradientType = 1, ":"";if(pe){var at=h(pe);ye="#"+I(at._r,at._g,at._b,at._a)}return"progid:DXImageTransform.Microsoft.gradient("+Oe+"startColorstr="+De+",endColorstr="+ye+")"},toString:function(pe){var De=!!pe;pe=pe||this._format;var ye=!1,Oe=this._a<1&&this._a>=0,at=!De&&Oe&&(pe==="hex"||pe==="hex6"||pe==="hex3"||pe==="hex4"||pe==="hex8"||pe==="name");return at?pe==="name"&&this._a===0?this.toName():this.toRgbString():(pe==="rgb"&&(ye=this.toRgbString()),pe==="prgb"&&(ye=this.toPercentageRgbString()),(pe==="hex"||pe==="hex6")&&(ye=this.toHexString()),pe==="hex3"&&(ye=this.toHexString(!0)),pe==="hex4"&&(ye=this.toHex8String(!0)),pe==="hex8"&&(ye=this.toHex8String()),pe==="name"&&(ye=this.toName()),pe==="hsl"&&(ye=this.toHslString()),pe==="hsv"&&(ye=this.toHsvString()),ye||this.toHexString())},clone:function(){return h(this.toString())},_applyModification:function(pe,De){var ye=pe.apply(null,[this].concat([].slice.call(De)));return this._r=ye._r,this._g=ye._g,this._b=ye._b,this.setAlpha(ye._a),this},lighten:function(){return this._applyModification(N,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(U,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(q,arguments)},greyscale:function(){return this._applyModification(z,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(pe,De){return pe.apply(null,[this].concat([].slice.call(De)))},analogous:function(){return this._applyCombination(he,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(fe,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(ee,arguments)},tetrad:function(){return this._applyCombination(ie,arguments)}},h.fromRatio=function(pe,De){if(typeof pe=="object"){var ye={};for(var Oe in pe)pe.hasOwnProperty(Oe)&&(Oe==="a"?ye[Oe]=pe[Oe]:ye[Oe]=gt(pe[Oe]));pe=ye}return h(pe,De)};function v(pe){var De={r:0,g:0,b:0},ye=1,Oe=null,at=null,Je=null,Pt=!1,xt=!1;return typeof pe=="string"&&(pe=Ot(pe)),typeof pe=="object"&&(mt(pe.r)&&mt(pe.g)&&mt(pe.b)?(De=m(pe.r,pe.g,pe.b),Pt=!0,xt=String(pe.r).substr(-1)==="%"?"prgb":"rgb"):mt(pe.h)&&mt(pe.s)&&mt(pe.v)?(Oe=gt(pe.s),at=gt(pe.v),De=C(pe.h,Oe,at),Pt=!0,xt="hsv"):mt(pe.h)&&mt(pe.s)&&mt(pe.l)&&(Oe=gt(pe.s),Je=gt(pe.l),De=T(pe.h,Oe,Je),Pt=!0,xt="hsl"),pe.hasOwnProperty("a")&&(ye=pe.a)),ye=Ae(ye),{ok:Pt,format:pe.format||xt,r:s(255,l(De.r,0)),g:s(255,l(De.g,0)),b:s(255,l(De.b,0)),a:ye}}function m(pe,De,ye){return{r:me(pe,255)*255,g:me(De,255)*255,b:me(ye,255)*255}}function _(pe,De,ye){pe=me(pe,255),De=me(De,255),ye=me(ye,255);var Oe=l(pe,De,ye),at=s(pe,De,ye),Je,Pt,xt=(Oe+at)/2;if(Oe==at)Je=Pt=0;else{var bt=Oe-at;switch(Pt=xt>.5?bt/(2-Oe-at):bt/(Oe+at),Oe){case pe:Je=(De-ye)/bt+(De1&&(Dt-=1),Dt<1/6?Vt+(qt-Vt)*6*Dt:Dt<1/2?qt:Dt<2/3?Vt+(qt-Vt)*(2/3-Dt)*6:Vt}if(De===0)Oe=at=Je=ye;else{var xt=ye<.5?ye*(1+De):ye+De-ye*De,bt=2*ye-xt;Oe=Pt(bt,xt,pe+1/3),at=Pt(bt,xt,pe),Je=Pt(bt,xt,pe-1/3)}return{r:Oe*255,g:at*255,b:Je*255}}function M(pe,De,ye){pe=me(pe,255),De=me(De,255),ye=me(ye,255);var Oe=l(pe,De,ye),at=s(pe,De,ye),Je,Pt,xt=Oe,bt=Oe-at;if(Pt=Oe===0?0:bt/Oe,Oe==at)Je=0;else{switch(Oe){case pe:Je=(De-ye)/bt+(De>1)+720)%360;--De;)Oe.h=(Oe.h+at)%360,Je.push(h(Oe));return Je}function fe(pe,De){De=De||6;for(var ye=h(pe).toHsv(),Oe=ye.h,at=ye.s,Je=ye.v,Pt=[],xt=1/De;De--;)Pt.push(h({h:Oe,s:at,v:Je})),Je=(Je+xt)%1;return Pt}h.mix=function(pe,De,ye){ye=ye===0?0:ye||50;var Oe=h(pe).toRgb(),at=h(De).toRgb(),Je=ye/100,Pt={r:(at.r-Oe.r)*Je+Oe.r,g:(at.g-Oe.g)*Je+Oe.g,b:(at.b-Oe.b)*Je+Oe.b,a:(at.a-Oe.a)*Je+Oe.a};return h(Pt)},h.readability=function(pe,De){var ye=h(pe),Oe=h(De);return(e.max(ye.getLuminance(),Oe.getLuminance())+.05)/(e.min(ye.getLuminance(),Oe.getLuminance())+.05)},h.isReadable=function(pe,De,ye){var Oe=h.readability(pe,De),at,Je;switch(Je=!1,at=ft(ye),at.level+at.size){case"AAsmall":case"AAAlarge":Je=Oe>=4.5;break;case"AAlarge":Je=Oe>=3;break;case"AAAsmall":Je=Oe>=7;break}return Je},h.mostReadable=function(pe,De,ye){var Oe=null,at=0,Je,Pt,xt,bt;ye=ye||{},Pt=ye.includeFallbackColors,xt=ye.level,bt=ye.size;for(var Vt=0;Vtat&&(at=Je,Oe=h(De[Vt]));return h.isReadable(pe,Oe,{level:xt,size:bt})||!Pt?Oe:(ye.includeFallbackColors=!1,h.mostReadable(pe,["#fff","#000"],ye))};var Te=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ke=h.hexNames=Se(Te);function Se(pe){var De={};for(var ye in pe)pe.hasOwnProperty(ye)&&(De[pe[ye]]=ye);return De}function Ae(pe){return pe=parseFloat(pe),(isNaN(pe)||pe<0||pe>1)&&(pe=1),pe}function me(pe,De){Xe(pe)&&(pe="100%");var ye=it(pe);return pe=s(De,l(0,parseFloat(pe))),ye&&(pe=parseInt(pe*De,10)/100),e.abs(pe-De)<1e-6?1:pe%De/parseFloat(De)}function Ce(pe){return s(1,l(0,pe))}function Me(pe){return parseInt(pe,16)}function Xe(pe){return typeof pe=="string"&&pe.indexOf(".")!=-1&&parseFloat(pe)===1}function it(pe){return typeof pe=="string"&&pe.indexOf("%")!=-1}function nt(pe){return pe.length==1?"0"+pe:""+pe}function gt(pe){return pe<=1&&(pe=pe*100+"%"),pe}function Ge(pe){return e.round(parseFloat(pe)*255).toString(16)}function Ct(pe){return Me(pe)/255}var lt=(function(){var pe="[-\\+]?\\d+%?",De="[-\\+]?\\d*\\.\\d+%?",ye="(?:"+De+")|(?:"+pe+")",Oe="[\\s|\\(]+("+ye+")[,|\\s]+("+ye+")[,|\\s]+("+ye+")\\s*\\)?",at="[\\s|\\(]+("+ye+")[,|\\s]+("+ye+")[,|\\s]+("+ye+")[,|\\s]+("+ye+")\\s*\\)?";return{CSS_UNIT:new RegExp(ye),rgb:new RegExp("rgb"+Oe),rgba:new RegExp("rgba"+at),hsl:new RegExp("hsl"+Oe),hsla:new RegExp("hsla"+at),hsv:new RegExp("hsv"+Oe),hsva:new RegExp("hsva"+at),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function mt(pe){return!!lt.CSS_UNIT.exec(pe)}function Ot(pe){pe=pe.replace(t,"").replace(r,"").toLowerCase();var De=!1;if(Te[pe])pe=Te[pe],De=!0;else if(pe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ye;return(ye=lt.rgb.exec(pe))?{r:ye[1],g:ye[2],b:ye[3]}:(ye=lt.rgba.exec(pe))?{r:ye[1],g:ye[2],b:ye[3],a:ye[4]}:(ye=lt.hsl.exec(pe))?{h:ye[1],s:ye[2],l:ye[3]}:(ye=lt.hsla.exec(pe))?{h:ye[1],s:ye[2],l:ye[3],a:ye[4]}:(ye=lt.hsv.exec(pe))?{h:ye[1],s:ye[2],v:ye[3]}:(ye=lt.hsva.exec(pe))?{h:ye[1],s:ye[2],v:ye[3],a:ye[4]}:(ye=lt.hex8.exec(pe))?{r:Me(ye[1]),g:Me(ye[2]),b:Me(ye[3]),a:Ct(ye[4]),format:De?"name":"hex8"}:(ye=lt.hex6.exec(pe))?{r:Me(ye[1]),g:Me(ye[2]),b:Me(ye[3]),format:De?"name":"hex"}:(ye=lt.hex4.exec(pe))?{r:Me(ye[1]+""+ye[1]),g:Me(ye[2]+""+ye[2]),b:Me(ye[3]+""+ye[3]),a:Ct(ye[4]+""+ye[4]),format:De?"name":"hex8"}:(ye=lt.hex3.exec(pe))?{r:Me(ye[1]+""+ye[1]),g:Me(ye[2]+""+ye[2]),b:Me(ye[3]+""+ye[3]),format:De?"name":"hex"}:!1}function ft(pe){var De,ye;return pe=pe||{level:"AA",size:"small"},De=(pe.level||"AA").toUpperCase(),ye=(pe.size||"small").toLowerCase(),De!=="AA"&&De!=="AAA"&&(De="AA"),ye!=="small"&&ye!=="large"&&(ye="small"),{level:De,size:ye}}typeof v_!="undefined"&&v_.exports?v_.exports=h:window.tinycolor=h})(Math)});var mn=de(Fy=>{"use strict";var o8=gc(),Iy=Array.isArray;function Uj(e,t){var r,i;for(r=0;r{"use strict";s8.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var a={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var s={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:a,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(s.size.dflt="auto"),e.autoColor&&(s.color.dflt="auto"),e.arrayOk&&(s.family.arrayOk=!0,s.weight.arrayOk=!0,s.style.arrayOk=!0,e.noFontVariant||(s.variant.arrayOk=!0),e.noFontTextcase||(s.textcase.arrayOk=!0),e.noFontLineposition||(s.lineposition.arrayOk=!0),e.noFontShadow||(s.shadow.arrayOk=!0),s.size.arrayOk=!0,s.color.arrayOk=!0),s}});var qy=de((zye,l8)=>{"use strict";l8.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var T0=de((Iye,c8)=>{"use strict";var u8=qy(),f8=qo(),rw=f8({editType:"none"});rw.family.dflt=u8.HOVERFONT;rw.size.dflt=u8.HOVERFONTSIZE;c8.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:rw,grouptitlefont:f8({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var d_=de((Rye,h8)=>{"use strict";var Vj=qo(),Ny=T0().hoverlabel,By=mn().extendFlat;h8.exports={hoverlabel:{bgcolor:By({},Ny.bgcolor,{arrayOk:!0}),bordercolor:By({},Ny.bordercolor,{arrayOk:!0}),font:Vj({arrayOk:!0,editType:"none"}),align:By({},Ny.align,{arrayOk:!0}),namelength:By({},Ny.namelength,{arrayOk:!0}),showarrow:By({},Ny.showarrow),editType:"none"}}});var ys=de((Fye,v8)=>{"use strict";var Hj=qo(),Gj=d_();v8.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Hj({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Gj.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ud=de((qye,m8)=>{"use strict";var Zj=Sf(),p_={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},d8=p_.RdBu;function Yj(e,t){if(t||(t=d8),!e)return t;function r(){try{e=p_[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),p8(e)?e:t}function p8(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";fd.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];fd.defaultLine="#444";fd.lightLine="#eee";fd.background="#fff";fd.borderLine="#BEC8D9";fd.lightFraction=1e3/11});var Ba=de((Bye,y8)=>{"use strict";var qs=Sf(),Xj=La(),jj=Fs().isTypedArray,$n=y8.exports={},m_=kf();$n.defaults=m_.defaults;var Jj=$n.defaultLine=m_.defaultLine;$n.lightLine=m_.lightLine;var iw=$n.background=m_.background;$n.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};$n.rgb=function(e){return $n.tinyRGB(qs(e))};$n.opacity=function(e){return e?qs(e).getAlpha():0};$n.addOpacity=function(e,t){var r=qs(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};$n.combine=function(e,t){var r=qs(e).toRgb();if(r.a===1)return qs(e).toRgbString();var i=qs(t||iw).toRgb(),a=i.a===1?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},s={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return qs(s).toRgbString()};$n.interpolate=function(e,t,r){var i=qs(e).toRgb(),a=qs(t).toRgb(),s={r:r*i.r+(1-r)*a.r,g:r*i.g+(1-r)*a.g,b:r*i.b+(1-r)*a.b};return qs(s).toRgbString()};$n.contrast=function(e,t,r){var i=qs(e);i.getAlpha()!==1&&(i=qs($n.combine(e,iw)));var a=i.isDark()?t?i.lighten(t):iw:r?i.darken(r):Jj;return a.toString()};$n.stroke=function(e,t){var r=qs(t);e.style({stroke:$n.tinyRGB(r),"stroke-opacity":r.getAlpha()})};$n.fill=function(e,t){var r=qs(t);e.style({fill:$n.tinyRGB(r),"fill-opacity":r.getAlpha()})};$n.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,i,a,s;for(r=0;r=0)))return e;if(s===3)i[s]>1&&(i[s]=1);else if(i[s]>=1)return e}var l=Math.round(i[0]*255)+", "+Math.round(i[1]*255)+", "+Math.round(i[2]*255);return a?"rgba("+l+", "+i[3]+")":"rgb("+l+")"}});var y_=de((Oye,g8)=>{"use strict";g8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var A0=de(_8=>{"use strict";_8.counter=function(e,t,r,i){var a=(t||"")+(r?"":"$"),s=i===!1?"":"^";return e==="xy"?new RegExp(s+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(s+e+"([2-9]|[1-9][0-9]+)?"+a)}});var T8=de(Ns=>{"use strict";var nw=La(),x8=Sf(),b8=mn().extendFlat,Kj=ys(),Qj=ud(),$j=Ba(),eJ=y_().DESELECTDIM,M0=Py(),w8=A0().counter,tJ=w0().modHalf,Iu=Fs().isArrayOrTypedArray,Ch=Fs().isTypedArraySpec,Eh=Fs().decodeTypedArraySpec;Ns.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Iu(e)?e:Ch(e)?Eh(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;is===!0||s===!1;a(e)||i.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,i){Ch(e)&&(e=Eh(e)),!nw(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}Ch(e)&&(e=Eh(e)),e%1||!nw(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var a=typeof e=="number";i.strict===!0||!a?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Ch(e)&&(e=Eh(e)),x8(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function i(a){return x8(a).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(i)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Qj.get(e,r))}},angle:{coerceFunction:function(e,t,r){Ch(e)&&(e=Eh(e)),e==="auto"?t.set("auto"):nw(e)?t.set(tJ(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||w8(r);let s=l=>typeof l=="string"&&a.test(l);s(e)||i.arrayOk&&Iu(e)&&e.length>0&&e.every(s)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!w8(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var a=e.split("+"),s=0;s{"use strict";var A8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},M8={};function S8(e,t){for(var r in e){var i=e[r];i.valType?t[r]=i.dflt:(t[r]||(t[r]={}),S8(i,t[r]))}}S8(A8,M8);k8.exports={configAttributes:A8,dfltConfig:M8}});var sw=de((Gye,C8)=>{"use strict";var ow=Va(),rJ=La(),Oy=[];C8.exports=function(e,t,r){var u;if(((u=r==null?void 0:r._context)==null?void 0:u.displayNotifier)===!1||Oy.indexOf(e)!==-1)return;Oy.push(e);var i=1e3;rJ(t)?i=t:t==="long"&&(i=3e3);var a=ow.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var s=a.selectAll(".notifier-note").data(Oy);function l(h){h.duration(700).style("opacity",0).each("end",function(v){var m=Oy.indexOf(v);m!==-1&&Oy.splice(m,1),ow.select(this).remove()})}s.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(h){var v=ow.select(this);v.append("button").classed("notifier-close",!0).html("×").on("click",function(){v.transition().call(l)});for(var m=v.append("p"),_=h.split(//g),T=0;T<_.length;T++)T&&m.append("br"),m.append("span").text(_[T]);t==="stick"?v.transition().duration(350).style("opacity",1):v.transition().duration(700).style("opacity",1).transition().delay(i).call(l)})}});var Lh=de((Zye,E8)=>{"use strict";var S0=cd().dfltConfig,lw=sw(),uw=E8.exports={};uw.log=function(){var e;if(S0.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};uw.warn=function(){var e;if(S0.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};uw.error=function(){var e;if(S0.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var __=de((Yye,L8)=>{"use strict";L8.exports=function(){}});var fw=de((Wye,D8)=>{"use strict";D8.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{P8.exports=aJ;function aJ(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var R8=de((jye,I8)=>{I8.exports=iJ;function iJ(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var q8=de((Jye,F8)=>{F8.exports=nJ;function nJ(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var cw=de((Kye,N8)=>{N8.exports=oJ;function oJ(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var O8=de((Qye,B8)=>{B8.exports=sJ;function sJ(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],s=t[6],l=t[7],u=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=a,e[13]=l,e[14]=u}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var V8=de(($ye,U8)=>{U8.exports=lJ;function lJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],M=t[11],C=t[12],E=t[13],L=t[14],I=t[15],O=r*u-i*l,q=r*h-a*l,z=r*v-s*l,N=i*h-a*u,H=i*v-s*u,U=a*v-s*h,W=m*E-_*C,J=m*L-T*C,ee=m*I-M*C,ie=_*L-T*E,oe=_*I-M*E,he=T*I-M*L,fe=O*he-q*oe+z*ie+N*ee-H*J+U*W;return fe?(fe=1/fe,e[0]=(u*he-h*oe+v*ie)*fe,e[1]=(a*oe-i*he-s*ie)*fe,e[2]=(E*U-L*H+I*N)*fe,e[3]=(T*H-_*U-M*N)*fe,e[4]=(h*ee-l*he-v*J)*fe,e[5]=(r*he-a*ee+s*J)*fe,e[6]=(L*z-C*U-I*q)*fe,e[7]=(m*U-T*z+M*q)*fe,e[8]=(l*oe-u*ee+v*W)*fe,e[9]=(i*ee-r*oe-s*W)*fe,e[10]=(C*H-E*z+I*O)*fe,e[11]=(_*z-m*H-M*O)*fe,e[12]=(u*J-l*ie-h*W)*fe,e[13]=(r*ie-i*J+a*W)*fe,e[14]=(E*q-C*N-L*O)*fe,e[15]=(m*N-_*q+T*O)*fe,e):null}});var G8=de((ege,H8)=>{H8.exports=uJ;function uJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],u=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],M=t[11],C=t[12],E=t[13],L=t[14],I=t[15];return e[0]=u*(T*I-M*L)-_*(h*I-v*L)+E*(h*M-v*T),e[1]=-(i*(T*I-M*L)-_*(a*I-s*L)+E*(a*M-s*T)),e[2]=i*(h*I-v*L)-u*(a*I-s*L)+E*(a*v-s*h),e[3]=-(i*(h*M-v*T)-u*(a*M-s*T)+_*(a*v-s*h)),e[4]=-(l*(T*I-M*L)-m*(h*I-v*L)+C*(h*M-v*T)),e[5]=r*(T*I-M*L)-m*(a*I-s*L)+C*(a*M-s*T),e[6]=-(r*(h*I-v*L)-l*(a*I-s*L)+C*(a*v-s*h)),e[7]=r*(h*M-v*T)-l*(a*M-s*T)+m*(a*v-s*h),e[8]=l*(_*I-M*E)-m*(u*I-v*E)+C*(u*M-v*_),e[9]=-(r*(_*I-M*E)-m*(i*I-s*E)+C*(i*M-s*_)),e[10]=r*(u*I-v*E)-l*(i*I-s*E)+C*(i*v-s*u),e[11]=-(r*(u*M-v*_)-l*(i*M-s*_)+m*(i*v-s*u)),e[12]=-(l*(_*L-T*E)-m*(u*L-h*E)+C*(u*T-h*_)),e[13]=r*(_*L-T*E)-m*(i*L-a*E)+C*(i*T-a*_),e[14]=-(r*(u*L-h*E)-l*(i*L-a*E)+C*(i*h-a*u)),e[15]=r*(u*T-h*_)-l*(i*T-a*_)+m*(i*h-a*u),e}});var Y8=de((tge,Z8)=>{Z8.exports=fJ;function fJ(e){var t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],l=e[5],u=e[6],h=e[7],v=e[8],m=e[9],_=e[10],T=e[11],M=e[12],C=e[13],E=e[14],L=e[15],I=t*l-r*s,O=t*u-i*s,q=t*h-a*s,z=r*u-i*l,N=r*h-a*l,H=i*h-a*u,U=v*C-m*M,W=v*E-_*M,J=v*L-T*M,ee=m*E-_*C,ie=m*L-T*C,oe=_*L-T*E;return I*oe-O*ie+q*ee+z*J-N*W+H*U}});var X8=de((rge,W8)=>{W8.exports=cJ;function cJ(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],u=t[4],h=t[5],v=t[6],m=t[7],_=t[8],T=t[9],M=t[10],C=t[11],E=t[12],L=t[13],I=t[14],O=t[15],q=r[0],z=r[1],N=r[2],H=r[3];return e[0]=q*i+z*u+N*_+H*E,e[1]=q*a+z*h+N*T+H*L,e[2]=q*s+z*v+N*M+H*I,e[3]=q*l+z*m+N*C+H*O,q=r[4],z=r[5],N=r[6],H=r[7],e[4]=q*i+z*u+N*_+H*E,e[5]=q*a+z*h+N*T+H*L,e[6]=q*s+z*v+N*M+H*I,e[7]=q*l+z*m+N*C+H*O,q=r[8],z=r[9],N=r[10],H=r[11],e[8]=q*i+z*u+N*_+H*E,e[9]=q*a+z*h+N*T+H*L,e[10]=q*s+z*v+N*M+H*I,e[11]=q*l+z*m+N*C+H*O,q=r[12],z=r[13],N=r[14],H=r[15],e[12]=q*i+z*u+N*_+H*E,e[13]=q*a+z*h+N*T+H*L,e[14]=q*s+z*v+N*M+H*I,e[15]=q*l+z*m+N*C+H*O,e}});var J8=de((age,j8)=>{j8.exports=hJ;function hJ(e,t,r){var i=r[0],a=r[1],s=r[2],l,u,h,v,m,_,T,M,C,E,L,I;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*s+t[12],e[13]=t[1]*i+t[5]*a+t[9]*s+t[13],e[14]=t[2]*i+t[6]*a+t[10]*s+t[14],e[15]=t[3]*i+t[7]*a+t[11]*s+t[15]):(l=t[0],u=t[1],h=t[2],v=t[3],m=t[4],_=t[5],T=t[6],M=t[7],C=t[8],E=t[9],L=t[10],I=t[11],e[0]=l,e[1]=u,e[2]=h,e[3]=v,e[4]=m,e[5]=_,e[6]=T,e[7]=M,e[8]=C,e[9]=E,e[10]=L,e[11]=I,e[12]=l*i+m*a+C*s+t[12],e[13]=u*i+_*a+E*s+t[13],e[14]=h*i+T*a+L*s+t[14],e[15]=v*i+M*a+I*s+t[15]),e}});var Q8=de((ige,K8)=>{K8.exports=vJ;function vJ(e,t,r){var i=r[0],a=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var eS=de((nge,$8)=>{$8.exports=dJ;function dJ(e,t,r,i){var a=i[0],s=i[1],l=i[2],u=Math.sqrt(a*a+s*s+l*l),h,v,m,_,T,M,C,E,L,I,O,q,z,N,H,U,W,J,ee,ie,oe,he,fe,Te;return Math.abs(u)<1e-6?null:(u=1/u,a*=u,s*=u,l*=u,h=Math.sin(r),v=Math.cos(r),m=1-v,_=t[0],T=t[1],M=t[2],C=t[3],E=t[4],L=t[5],I=t[6],O=t[7],q=t[8],z=t[9],N=t[10],H=t[11],U=a*a*m+v,W=s*a*m+l*h,J=l*a*m-s*h,ee=a*s*m-l*h,ie=s*s*m+v,oe=l*s*m+a*h,he=a*l*m+s*h,fe=s*l*m-a*h,Te=l*l*m+v,e[0]=_*U+E*W+q*J,e[1]=T*U+L*W+z*J,e[2]=M*U+I*W+N*J,e[3]=C*U+O*W+H*J,e[4]=_*ee+E*ie+q*oe,e[5]=T*ee+L*ie+z*oe,e[6]=M*ee+I*ie+N*oe,e[7]=C*ee+O*ie+H*oe,e[8]=_*he+E*fe+q*Te,e[9]=T*he+L*fe+z*Te,e[10]=M*he+I*fe+N*Te,e[11]=C*he+O*fe+H*Te,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var rS=de((oge,tS)=>{tS.exports=pJ;function pJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[4],l=t[5],u=t[6],h=t[7],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*a+v*i,e[5]=l*a+m*i,e[6]=u*a+_*i,e[7]=h*a+T*i,e[8]=v*a-s*i,e[9]=m*a-l*i,e[10]=_*a-u*i,e[11]=T*a-h*i,e}});var iS=de((sge,aS)=>{aS.exports=mJ;function mJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],u=t[2],h=t[3],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a-v*i,e[1]=l*a-m*i,e[2]=u*a-_*i,e[3]=h*a-T*i,e[8]=s*i+v*a,e[9]=l*i+m*a,e[10]=u*i+_*a,e[11]=h*i+T*a,e}});var oS=de((lge,nS)=>{nS.exports=yJ;function yJ(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],u=t[2],h=t[3],v=t[4],m=t[5],_=t[6],T=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a+v*i,e[1]=l*a+m*i,e[2]=u*a+_*i,e[3]=h*a+T*i,e[4]=v*a-s*i,e[5]=m*a-l*i,e[6]=_*a-u*i,e[7]=T*a-h*i,e}});var lS=de((uge,sS)=>{sS.exports=gJ;function gJ(e,t,r){var i,a,s,l=r[0],u=r[1],h=r[2],v=Math.sqrt(l*l+u*u+h*h);return Math.abs(v)<1e-6?null:(v=1/v,l*=v,u*=v,h*=v,i=Math.sin(t),a=Math.cos(t),s=1-a,e[0]=l*l*s+a,e[1]=u*l*s+h*i,e[2]=h*l*s-u*i,e[3]=0,e[4]=l*u*s-h*i,e[5]=u*u*s+a,e[6]=h*u*s+l*i,e[7]=0,e[8]=l*h*s+u*i,e[9]=u*h*s-l*i,e[10]=h*h*s+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var fS=de((fge,uS)=>{uS.exports=_J;function _J(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],u=i+i,h=a+a,v=s+s,m=i*u,_=i*h,T=i*v,M=a*h,C=a*v,E=s*v,L=l*u,I=l*h,O=l*v;return e[0]=1-(M+E),e[1]=_+O,e[2]=T-I,e[3]=0,e[4]=_-O,e[5]=1-(m+E),e[6]=C+L,e[7]=0,e[8]=T+I,e[9]=C-L,e[10]=1-(m+M),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var hS=de((cge,cS)=>{cS.exports=xJ;function xJ(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dS=de((hge,vS)=>{vS.exports=bJ;function bJ(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var mS=de((vge,pS)=>{pS.exports=wJ;function wJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var gS=de((dge,yS)=>{yS.exports=TJ;function TJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var xS=de((pge,_S)=>{_S.exports=AJ;function AJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wS=de((mge,bS)=>{bS.exports=MJ;function MJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=r+r,u=i+i,h=a+a,v=r*l,m=i*l,_=i*u,T=a*l,M=a*u,C=a*h,E=s*l,L=s*u,I=s*h;return e[0]=1-_-C,e[1]=m+I,e[2]=T-L,e[3]=0,e[4]=m-I,e[5]=1-v-C,e[6]=M+E,e[7]=0,e[8]=T+L,e[9]=M-E,e[10]=1-v-_,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var AS=de((yge,TS)=>{TS.exports=SJ;function SJ(e,t,r,i,a,s,l){var u=1/(r-t),h=1/(a-i),v=1/(s-l);return e[0]=s*2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s*2*h,e[6]=0,e[7]=0,e[8]=(r+t)*u,e[9]=(a+i)*h,e[10]=(l+s)*v,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*s*2*v,e[15]=0,e}});var SS=de((gge,MS)=>{MS.exports=kJ;function kJ(e,t,r,i,a){var s=1/Math.tan(t/2),l=1/(i-a);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+i)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*i*l,e[15]=0,e}});var CS=de((_ge,kS)=>{kS.exports=CJ;function CJ(e,t,r,i){var a=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),l=Math.tan(t.leftDegrees*Math.PI/180),u=Math.tan(t.rightDegrees*Math.PI/180),h=2/(l+u),v=2/(a+s);return e[0]=h,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=v,e[6]=0,e[7]=0,e[8]=-((l-u)*h*.5),e[9]=(a-s)*v*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var LS=de((xge,ES)=>{ES.exports=EJ;function EJ(e,t,r,i,a,s,l){var u=1/(t-r),h=1/(i-a),v=1/(s-l);return e[0]=-2*u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*h,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*v,e[11]=0,e[12]=(t+r)*u,e[13]=(a+i)*h,e[14]=(l+s)*v,e[15]=1,e}});var PS=de((bge,DS)=>{var LJ=cw();DS.exports=DJ;function DJ(e,t,r,i){var a,s,l,u,h,v,m,_,T,M,C=t[0],E=t[1],L=t[2],I=i[0],O=i[1],q=i[2],z=r[0],N=r[1],H=r[2];return Math.abs(C-z)<1e-6&&Math.abs(E-N)<1e-6&&Math.abs(L-H)<1e-6?LJ(e):(m=C-z,_=E-N,T=L-H,M=1/Math.sqrt(m*m+_*_+T*T),m*=M,_*=M,T*=M,a=O*T-q*_,s=q*m-I*T,l=I*_-O*m,M=Math.sqrt(a*a+s*s+l*l),M?(M=1/M,a*=M,s*=M,l*=M):(a=0,s=0,l=0),u=_*l-T*s,h=T*a-m*l,v=m*s-_*a,M=Math.sqrt(u*u+h*h+v*v),M?(M=1/M,u*=M,h*=M,v*=M):(u=0,h=0,v=0),e[0]=a,e[1]=u,e[2]=m,e[3]=0,e[4]=s,e[5]=h,e[6]=_,e[7]=0,e[8]=l,e[9]=v,e[10]=T,e[11]=0,e[12]=-(a*C+s*E+l*L),e[13]=-(u*C+h*E+v*L),e[14]=-(m*C+_*E+T*L),e[15]=1,e)}});var IS=de((wge,zS)=>{zS.exports=PJ;function PJ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var hw=de((Tge,RS)=>{RS.exports={create:z8(),clone:R8(),copy:q8(),identity:cw(),transpose:O8(),invert:V8(),adjoint:G8(),determinant:Y8(),multiply:X8(),translate:J8(),scale:Q8(),rotate:eS(),rotateX:rS(),rotateY:iS(),rotateZ:oS(),fromRotation:lS(),fromRotationTranslation:fS(),fromScaling:hS(),fromTranslation:dS(),fromXRotation:mS(),fromYRotation:gS(),fromZRotation:xS(),fromQuat:wS(),frustum:AS(),perspective:SS(),perspectiveFromFieldOfView:CS(),ortho:LS(),lookAt:PS(),str:IS()}});var x_=de(Cn=>{"use strict";var zJ=hw();Cn.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var IJ=Va(),FS=Lh(),RJ=x_(),FJ=hw();function qJ(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function NJ(e){var t=IJ.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function qS(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function BJ(e,t){NS("global",e,t)}function NS(e,t,r){var i="plotly.js-style-"+e,a=document.getElementById(i);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",i),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var s=a.sheet;s?s.insertRule?s.insertRule(t+"{"+r+"}",0):s.addRule?s.addRule(t,r,0):FS.warn("addStyleRule failed"):FS.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function OJ(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&qS(r)}function UJ(e,t,r,i,a,s){var l=i.split(":"),u=a.split(":"),h="data-btn-style-event-added";s||(s=document),s.querySelectorAll(e).forEach(function(v){v.getAttribute(h)||(v.addEventListener("mouseenter",function(){var m=this.querySelector(r);m&&(m.style[l[0]]=l[1])}),v.addEventListener("mouseleave",function(){var m=this.querySelector(r);m&&(t&&this.matches(t)?m.style[l[0]]=l[1]:m.style[u[0]]=u[1])}),v.setAttribute(h,!0))})}function VJ(e){var t=OS(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var a=BS(i);if(a){var s=RJ.convertCssMatrix(a);r=FJ.multiply(r,r,s)}}),r}function BS(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function OS(e){for(var t=[];HJ(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function HJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function GJ(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}US.exports={getGraphDiv:qJ,isPlotDiv:NJ,removeElement:qS,addStyleRule:BJ,addRelatedStyleRule:NS,deleteRelatedStyleRule:OJ,setStyleOnHover:UJ,getFullTransformMatrix:VJ,getElementTransformMatrix:BS,getElementAndAncestors:OS,equalDomRects:GJ}});var Vy=de((Sge,VS)=>{"use strict";VS.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var il=de((kge,jS)=>{"use strict";var GS=mn().extendFlat,ZJ=gc(),ZS={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},YS={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},YJ=ZS.flags.slice().concat(["fullReplot"]),WJ=YS.flags.slice().concat("layoutReplot");jS.exports={traces:ZS,layout:YS,traceFlags:function(){return HS(YJ)},layoutFlags:function(){return HS(WJ)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";vw.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};vw.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var dw=de((Ege,JS)=>{"use strict";JS.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Cf=de(k0=>{"use strict";var{DATE_FORMAT_LINK:XJ,FORMAT_LINK:jJ}=dw(),JJ=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function KJ({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,jJ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,XJ,"for details on the date formatting syntax.",JJ].join(" ")}k0.templateFormatStringDescription=KJ;k0.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>sd({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});k0.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>sd({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});k0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});k0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var T_=de((Pge,r9)=>{"use strict";function Dh(e,t){return t?t.d2l(e):e}function KS(e,t){return t?t.l2d(e):e}function QJ(e){return e.x0}function $J(e){return e.x1}function eK(e){return e.y0}function tK(e){return e.y1}function QS(e){return e.x0shift||0}function $S(e){return e.x1shift||0}function e9(e){return e.y0shift||0}function t9(e){return e.y1shift||0}function b_(e,t){return Dh(e.x1,t)+$S(e)-Dh(e.x0,t)-QS(e)}function w_(e,t,r){return Dh(e.y1,r)+t9(e)-Dh(e.y0,r)-e9(e)}function rK(e,t){return Math.abs(b_(e,t))}function aK(e,t,r){return Math.abs(w_(e,t,r))}function iK(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(b_(e,t),2)+Math.pow(w_(e,t,r),2))}function nK(e,t){return KS((Dh(e.x1,t)+$S(e)+Dh(e.x0,t)+QS(e))/2,t)}function oK(e,t,r){return KS((Dh(e.y1,r)+t9(e)+Dh(e.y0,r)+e9(e))/2,r)}function sK(e,t,r){return e.type!=="line"?void 0:w_(e,t,r)/b_(e,t)}var lK=["x0","x1","y0","y1","dy","height","ycenter"],uK=["x0","x1","y0","y1","dx","width","xcenter"];r9.exports={x0:QJ,x1:$J,y0:eK,y1:tK,slope:sK,dx:b_,dy:w_,width:rK,height:aK,length:iK,xcenter:nK,ycenter:oK,simpleXVariables:lK,simpleYVariables:uK}});var n9=de((zge,i9)=>{"use strict";var fK=il().overrideAll,hd=ys(),a9=qo(),cK=_c().dash,Ph=mn().extendFlat,{shapeTexttemplateAttrs:hK,templatefallbackAttrs:vK}=Cf(),dK=T_();i9.exports=fK({newshape:{visible:Ph({},hd.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Ph({},hd.legend,{}),legendgroup:Ph({},hd.legendgroup,{}),legendgrouptitle:{text:Ph({},hd.legendgrouptitle.text,{}),font:a9({})},legendrank:Ph({},hd.legendrank,{}),legendwidth:Ph({},hd.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ph({},cK,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Ph({},hd.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:hK({newshape:!0},{keys:Object.keys(dK)}),texttemplatefallback:vK({editType:"arraydraw"}),font:a9({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var s9=de((Ige,o9)=>{"use strict";var pK=_c().dash,mK=mn().extendFlat;o9.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:mK({},pK,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var A_=de((Rge,l9)=>{"use strict";l9.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var C0=de((Fge,h9)=>{"use strict";var pw=qo(),yK=Vy(),M_=kf(),u9=n9(),f9=s9(),gK=A_(),c9=mn().extendFlat,S_=pw({editType:"calc"});S_.family.dflt='"Open Sans", verdana, arial, sans-serif';S_.size.dflt=12;S_.color.dflt=M_.defaultLine;h9.exports={font:S_,title:{text:{valType:"string",editType:"layoutstyle"},font:pw({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:pw({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:c9(gK({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:M_.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:M_.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:M_.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:u9.newshape,activeshape:u9.activeshape,newselection:f9.newselection,activeselection:f9.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:c9({},yK.transition,{editType:"none"})}});var v9=de(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var la=de(Da=>{"use strict";var E0=Lh(),d9=__(),p9=fw(),_K=gc(),xK=Uy().addStyleRule,m9=mn(),bK=ys(),wK=C0(),TK=m9.extendFlat,mw=m9.extendDeepAll;Da.modules={};Da.allCategories={};Da.allTypes=[];Da.subplotsRegistry={};Da.componentsRegistry={};Da.layoutArrayContainers=[];Da.layoutArrayRegexes=[];Da.traceLayoutAttributes={};Da.localeRegistry={};Da.apiMethodRegistry={};Da.collectableSubplotTypes=null;Da.register=function(t){if(Da.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var EK=x0().timeFormat,k9=La(),yw=Lh(),Ih=w0().mod,P0=Zi(),Gl=P0.BADNUM,Bs=P0.ONEDAY,Hy=P0.ONEHOUR,zh=P0.ONEMIN,D0=P0.ONESEC,Gy=P0.EPOCHJD,xc=la(),b9=x0().utcFormat,LK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,DK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,w9=new Date().getFullYear()-70;function bc(e){return e&&xc.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}En.dateTick0=function(e,t){var r=PK(e,!!t);if(t<2)return r;var i=En.dateTime2ms(r,e);return i+=Bs*(t-1),En.ms2DateTime(i,0,e)};function PK(e,t){return bc(e)?t?xc.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:xc.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}En.dfltRange=function(e){return bc(e)?xc.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};En.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var C_,E_;En.dateTime2ms=function(e,t){if(En.isJSDate(e)){var r=e.getTimezoneOffset()*zh,i=(e.getUTCMinutes()-e.getMinutes())*zh+(e.getUTCSeconds()-e.getSeconds())*D0+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var a=3*zh;r=r-a/2+Ih(i-r+a/2,a)}return e=Number(e)-r,e>=C_&&e<=E_?e:Gl}if(typeof e!="string"&&typeof e!="number")return Gl;e=String(e);var s=bc(t),l=e.charAt(0);s&&(l==="G"||l==="g")&&(e=e.slice(1),t="");var u=s&&t.slice(0,7)==="chinese",h=e.match(u?DK:LK);if(!h)return Gl;var v=h[1],m=h[3]||"1",_=Number(h[5]||1),T=Number(h[7]||0),M=Number(h[9]||0),C=Number(h[11]||0);if(s){if(v.length===2)return Gl;v=Number(v);var E;try{var L=xc.getComponentMethod("calendars","getCal")(t);if(u){var I=m.charAt(m.length-1)==="i";m=parseInt(m,10),E=L.newDate(v,L.toMonthIndex(v,m,I),_)}else E=L.newDate(v,Number(m),_)}catch(q){return Gl}return E?(E.toJD()-Gy)*Bs+T*Hy+M*zh+C*D0:Gl}v.length===2?v=(Number(v)+2e3-w9)%100+w9:v=Number(v),m-=1;var O=new Date(Date.UTC(2e3,m,_,T,M));return O.setUTCFullYear(v),O.getUTCMonth()!==m||O.getUTCDate()!==_?Gl:O.getTime()+C*D0};C_=En.MIN_MS=En.dateTime2ms("-9999");E_=En.MAX_MS=En.dateTime2ms("9999-12-31 23:59:59.9999");En.isDateTime=function(e,t){return En.dateTime2ms(e,t)!==Gl};function L0(e,t){return String(e+Math.pow(10,t)).slice(1)}var k_=90*Bs,T9=3*Hy,A9=5*zh;En.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=C_&&e<=E_))return Gl;t||(t=0);var i=Math.floor(Ih(e+.05,1)*10),a=Math.round(e-i/10),s,l,u,h,v,m;if(bc(r)){var _=Math.floor(a/Bs)+Gy,T=Math.floor(Ih(e,Bs));try{s=xc.getComponentMethod("calendars","getCal")(r).fromJD(_).formatDate("yyyy-mm-dd")}catch(M){s=b9("G%Y-%m-%d")(new Date(a))}if(s.charAt(0)==="-")for(;s.length<11;)s="-0"+s.slice(1);else for(;s.length<10;)s="0"+s;l=t=C_+Bs&&e<=E_-Bs))return Gl;var t=Math.floor(Ih(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=EK("%Y-%m-%d")(r),a=r.getHours(),s=r.getMinutes(),l=r.getSeconds(),u=r.getUTCMilliseconds()*10+t;return C9(i,a,s,l,u)};function C9(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+L0(t,2)+":"+L0(r,2),(i||a)&&(e+=":"+L0(i,2),a))){for(var s=4;a%10===0;)s-=1,a/=10;e+="."+L0(a,s)}return e}En.cleanDate=function(e,t,r){if(e===Gl)return t;if(En.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(bc(r))return yw.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=En.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!En.isDateTime(e,r))return yw.error("unrecognized date",e),t;return e};var zK=/%\d?f/g,IK=/%h/g,RK={1:"1",2:"1",3:"2",4:"2"};function M9(e,t,r,i){e=e.replace(zK,function(s){var l=Math.min(+s.charAt(1)||6,6),u=(t/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return u});var a=new Date(Math.floor(t+.05));if(e=e.replace(IK,function(){return RK[r("%q")(a)]}),bc(i))try{e=xc.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(s){return"Invalid"}return r(e)(a)}var FK=[59,59.9,59.99,59.999,59.9999];function qK(e,t){var r=Ih(e+.05,Bs),i=L0(Math.floor(r/Hy),2)+":"+L0(Ih(Math.floor(r/zh),60),2);if(t!=="M"){k9(t)||(t=0);var a=Math.min(Ih(e/D0,60),FK[t]),s=(100+a).toFixed(t).slice(1);t>0&&(s=s.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+s}return i}En.formatDate=function(e,t,r,i,a,s){if(a=bc(a)&&a,!t)if(r==="y")t=s.year;else if(r==="m")t=s.month;else if(r==="d")t=s.dayMonth+` +`+s.year;else return qK(e,r)+` +`+M9(s.dayMonthYear,e,i,a);return M9(t,e,i,a)};var S9=3*Bs;En.incrementMonth=function(e,t,r){r=bc(r)&&r;var i=Ih(e,Bs);if(e=Math.round(e-i),r)try{var a=Math.round(e/Bs)+Gy,s=xc.getComponentMethod("calendars","getCal")(r),l=s.fromJD(a);return t%12?s.add(l,t,"m"):s.add(l,t/12,"y"),(l.toJD()-Gy)*Bs+i}catch(h){yw.error("invalid ms "+e+" in calendar "+r)}var u=new Date(e+S9);return u.setUTCMonth(u.getUTCMonth()+t)+i-S9};En.findExactDates=function(e,t){for(var r=0,i=0,a=0,s=0,l,u,h=bc(t)&&xc.getComponentMethod("calendars","getCal")(t),v=0;v{"use strict";L9.exports=function(t){return t}});var _w=de(wc=>{"use strict";var NK=La(),BK=Lh(),OK=L_(),UK=Zi().BADNUM,gw=1e-9;wc.findBin=function(e,t,r){if(NK(t.start))return r?Math.ceil((e-t.start)/t.size-gw)-1:Math.floor((e-t.start)/t.size+gw);var i=0,a=t.length,s=0,l=a>1?(t[a-1]-t[0])/(a-1):1,u,h;for(l>=0?h=r?VK:HK:h=r?ZK:GK,e+=l*gw*(r?-1:1)*(l>=0?1:-1);i90&&BK.log("Long binary search..."),i-1};function VK(e,t){return et}function ZK(e,t){return e>=t}wc.sorterAsc=function(e,t){return e-t};wc.sorterDes=function(e,t){return t-e};wc.distinctVals=function(e){var t=e.slice();t.sort(wc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===UK;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,s=[],l,u=0;u<=r;u++){var h=t[u],v=h-l;l===void 0?(s.push(h),l=h):v>a&&(i=Math.min(i,v),s.push(h),l=h)}return{vals:s,minDiff:i}};wc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,s,l=0,u=r?0:1,h=r?1:0,v=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};wc.findIndexOfMin=function(e,t){t=t||OK;for(var r=1/0,i,a=0;a{"use strict";D9.exports=function(t){return Object.keys(t).sort()}});var P9=de(Ln=>{"use strict";var Zy=La(),YK=Fs().isArrayOrTypedArray;Ln.aggNums=function(e,t,r,i){var a,s;if((!i||i>r.length)&&(i=r.length),Zy(t)||(t=!1),YK(r[0])){for(s=new Array(i),a=0;ae.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var q9=de((Zge,F9)=>{"use strict";var z9=w0(),xw=z9.mod,WK=z9.modHalf,Yy=Math.PI,Rh=2*Yy;function XK(e){return e/180*Yy}function jK(e){return e/Yy*180}function bw(e){return Math.abs(e[1]-e[0])>Rh-1e-14}function I9(e,t){return WK(t-e,Rh)}function JK(e,t){return Math.abs(I9(e,t))}function R9(e,t){if(bw(t))return!0;var r,i;t[0]i&&(i+=Rh);var a=xw(e,Rh),s=a+Rh;return a>=r&&a<=i||s>=r&&s<=i}function KK(e,t,r,i){if(!R9(t,i))return!1;var a,s;return r[0]=a&&e<=s}function ww(e,t,r,i,a,s,l){a=a||0,s=s||0;var u=bw([r,i]),h,v,m,_,T;u?(h=0,v=Yy,m=Rh):r{"use strict";vd.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};vd.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};vd.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};vd.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};vd.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};vd.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var U9=de(dd=>{"use strict";var Tw=w0().mod;dd.segmentsIntersect=O9;function O9(e,t,r,i,a,s,l,u){var h=r-e,v=a-e,m=l-a,_=i-t,T=s-t,M=u-s,C=h*M-m*_;if(C===0)return null;var E=(v*M-m*T)/C,L=(v*_-h*T)/C;return L<0||L>1||E<0||E>1?null:{x:e+h*E,y:t+_*E}}dd.segmentDistance=function(t,r,i,a,s,l,u,h){if(O9(t,r,i,a,s,l,u,h))return 0;var v=i-t,m=a-r,_=u-s,T=h-l,M=v*v+m*m,C=_*_+T*T,E=Math.min(P_(v,m,M,s-t,l-r),P_(v,m,M,u-t,h-r),P_(_,T,C,t-s,r-l),P_(_,T,C,i-s,a-l));return Math.sqrt(E)};function P_(e,t,r,i,a){var s=i*e+a*t;if(s<0)return i*i+a*a;if(s>r){var l=i-e,u=a-t;return l*l+u*u}else{var h=i*t-a*e;return h*h/r}}var z_,Aw,B9;dd.getTextLocation=function(t,r,i,a){if((t!==Aw||a!==B9)&&(z_={},Aw=t,B9=a),z_[i])return z_[i];var s=t.getPointAtLength(Tw(i-a/2,r)),l=t.getPointAtLength(Tw(i+a/2,r)),u=Math.atan((l.y-s.y)/(l.x-s.x)),h=t.getPointAtLength(Tw(i,r)),v=(h.x*4+s.x+l.x)/6,m=(h.y*4+s.y+l.y)/6,_={x:v,y:m,theta:u};return z_[i]=_,_};dd.clearLocationCache=function(){Aw=null};dd.getVisibleSegment=function(t,r,i){var a=r.left,s=r.right,l=r.top,u=r.bottom,h=0,v=t.getTotalLength(),m=v,_,T;function M(E){var L=t.getPointAtLength(E);E===0?_=L:E===v&&(T=L);var I=L.xs?L.x-s:0,O=L.yu?L.y-u:0;return Math.sqrt(I*I+O*O)}for(var C=M(h);C;){if(h+=C+i,h>m)return;C=M(h)}for(C=M(m);C;){if(m-=C+i,h>m)return;C=M(m)}return{min:h,max:m,len:m-h,total:v,isClosed:h===0&&m===v&&Math.abs(_.x-T.x)<.1&&Math.abs(_.y-T.y)<.1}};dd.findPointOnPath=function(t,r,i,a){a=a||{};for(var s=a.pathLength||t.getTotalLength(),l=a.tolerance||.001,u=a.iterationLimit||30,h=t.getPointAtLength(0)[i]>t.getPointAtLength(s)[i]?-1:1,v=0,m=0,_=s,T,M,C;v0?_=T:m=T,v++}return M}});var I_=de(Wy=>{"use strict";var Tc={};Wy.throttle=function(t,r,i){var a=Tc[t],s=Date.now();if(!a){for(var l in Tc)Tc[l].tsa.ts+r){u();return}a.timer=setTimeout(function(){u(),a.timer=null},r)};Wy.done=function(e){var t=Tc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};Wy.clear=function(e){if(e)V9(Tc[e]),delete Tc[e];else for(var t in Tc)Wy.clear(t)};function V9(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var G9=de((jge,H9)=>{"use strict";H9.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Z9=de((Jge,R_)=>{"use strict";R_.exports=Mw;R_.exports.isMobile=Mw;R_.exports.default=Mw;var tQ=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,rQ=/CrOS/,aQ=/android|ipad|playbook|silk/i;function Mw(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=tQ.test(t)&&!rQ.test(t)||!!e.tablet&&aQ.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var W9=de((Kge,Y9)=>{"use strict";var iQ=La(),nQ=Z9();Y9.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=oQ(),typeof r!="string")return!0;var i=nQ({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),s=1;s-1;u--){var h=a[u];if(h.slice(0,8)==="Version/"){var v=h.slice(8).split(".")[0];if(iQ(v)&&(v=+v),v>=13)return!0}}}return i};function oQ(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var j9=de((Qge,X9)=>{"use strict";var sQ=Va();X9.exports=function(t,r,i){var a=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(l){return l[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",i),a.order();var s=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(l){l[0][s]=sQ.select(this)}),a}});var K9=de(($ge,J9)=>{"use strict";var lQ=la();J9.exports=function(t,r){for(var i=t._context.locale,a=0;a<2;a++){for(var s=t._context.locales,l=0;l<2;l++){var u=(s[i]||{}).dictionary;if(u){var h=u[r];if(h)return h}s=lQ.localeRegistry}var v=i.split("-")[0];if(v===i)break;i=v}return r}});var $9=de((e1e,Q9)=>{"use strict";Q9.exports=function(t){for(var r={},i=[],a=0,s=0;s{"use strict";ek.exports=function(t){for(var r=cQ(t)?fQ:uQ,i=[],a=0;a{"use strict";rk.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),a=i>1?(i*t+i*r)/i:t+r,s=String(a).length;if(s>16){var l=String(r).length,u=String(t).length;if(s>=u+l){var h=parseFloat(a).toPrecision(12);h.indexOf("e+")===-1&&(a=+h)}}return a}});var nk=de((a1e,ik)=>{"use strict";var hQ=La(),vQ=Zi().BADNUM,dQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;ik.exports=function(t){return typeof t=="string"&&(t=t.replace(dQ,"")),hQ(t)?Number(t):vQ}});var Bt=de((i1e,gk)=>{"use strict";var Xy=Va(),pQ=x0().utcFormat,mQ=J3().format,ck=La(),hk=Zi(),vk=hk.FP_SAFE,yQ=-vk,ok=hk.BADNUM,tt=gk.exports={};tt.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var sk={};tt.warnBadFormat=function(e){var t=String(e);sk[t]||(sk[t]=1,tt.warn('encountered bad format: "'+t+'"'))};tt.noFormat=function(e){return String(e)};tt.numberFormat=function(e){var t;try{t=mQ(tt.adjustFormat(e))}catch(r){return tt.warnBadFormat(e),tt.noFormat}return t};tt.nestedProperty=Py();tt.keyedContainer=Q7();tt.relativeAttr=e8();tt.isPlainObject=gc();tt.toLogRange=h_();tt.relinkPrivateKeys=i8();var Fh=Fs();tt.isArrayBuffer=Fh.isArrayBuffer;tt.isTypedArray=Fh.isTypedArray;tt.isArrayOrTypedArray=Fh.isArrayOrTypedArray;tt.isArray1D=Fh.isArray1D;tt.ensureArray=Fh.ensureArray;tt.concat=Fh.concat;tt.maxRowLength=Fh.maxRowLength;tt.minRowLength=Fh.minRowLength;var dk=w0();tt.mod=dk.mod;tt.modHalf=dk.modHalf;var qh=T8();tt.valObjectMeta=qh.valObjectMeta;tt.coerce=qh.coerce;tt.coerce2=qh.coerce2;tt.coerceFont=qh.coerceFont;tt.coercePattern=qh.coercePattern;tt.coerceHoverinfo=qh.coerceHoverinfo;tt.coerceSelectionMarkerOpacity=qh.coerceSelectionMarkerOpacity;tt.validate=qh.validate;var nl=E9();tt.dateTime2ms=nl.dateTime2ms;tt.isDateTime=nl.isDateTime;tt.ms2DateTime=nl.ms2DateTime;tt.ms2DateTimeLocal=nl.ms2DateTimeLocal;tt.cleanDate=nl.cleanDate;tt.isJSDate=nl.isJSDate;tt.formatDate=nl.formatDate;tt.incrementMonth=nl.incrementMonth;tt.dateTick0=nl.dateTick0;tt.dfltRange=nl.dfltRange;tt.findExactDates=nl.findExactDates;tt.MIN_MS=nl.MIN_MS;tt.MAX_MS=nl.MAX_MS;var pd=_w();tt.findBin=pd.findBin;tt.sorterAsc=pd.sorterAsc;tt.sorterDes=pd.sorterDes;tt.distinctVals=pd.distinctVals;tt.roundUp=pd.roundUp;tt.sort=pd.sort;tt.findIndexOfMin=pd.findIndexOfMin;tt.sortObjectKeys=D_();var Ac=P9();tt.aggNums=Ac.aggNums;tt.len=Ac.len;tt.mean=Ac.mean;tt.geometricMean=Ac.geometricMean;tt.median=Ac.median;tt.midRange=Ac.midRange;tt.variance=Ac.variance;tt.stdev=Ac.stdev;tt.interp=Ac.interp;var Ru=x_();tt.init2dArray=Ru.init2dArray;tt.transposeRagged=Ru.transposeRagged;tt.dot=Ru.dot;tt.translationMatrix=Ru.translationMatrix;tt.rotationMatrix=Ru.rotationMatrix;tt.rotationXYMatrix=Ru.rotationXYMatrix;tt.apply3DTransform=Ru.apply3DTransform;tt.apply2DTransform=Ru.apply2DTransform;tt.apply2DTransform2=Ru.apply2DTransform2;tt.convertCssMatrix=Ru.convertCssMatrix;tt.inverseTransformMatrix=Ru.inverseTransformMatrix;var Ef=q9();tt.deg2rad=Ef.deg2rad;tt.rad2deg=Ef.rad2deg;tt.angleDelta=Ef.angleDelta;tt.angleDist=Ef.angleDist;tt.isFullCircle=Ef.isFullCircle;tt.isAngleInsideSector=Ef.isAngleInsideSector;tt.isPtInsideSector=Ef.isPtInsideSector;tt.pathArc=Ef.pathArc;tt.pathSector=Ef.pathSector;tt.pathAnnulus=Ef.pathAnnulus;var I0=N9();tt.isLeftAnchor=I0.isLeftAnchor;tt.isCenterAnchor=I0.isCenterAnchor;tt.isRightAnchor=I0.isRightAnchor;tt.isTopAnchor=I0.isTopAnchor;tt.isMiddleAnchor=I0.isMiddleAnchor;tt.isBottomAnchor=I0.isBottomAnchor;var R0=U9();tt.segmentsIntersect=R0.segmentsIntersect;tt.segmentDistance=R0.segmentDistance;tt.getTextLocation=R0.getTextLocation;tt.clearLocationCache=R0.clearLocationCache;tt.getVisibleSegment=R0.getVisibleSegment;tt.findPointOnPath=R0.findPointOnPath;var N_=mn();tt.extendFlat=N_.extendFlat;tt.extendDeep=N_.extendDeep;tt.extendDeepAll=N_.extendDeepAll;tt.extendDeepNoArrays=N_.extendDeepNoArrays;var Sw=Lh();tt.log=Sw.log;tt.warn=Sw.warn;tt.error=Sw.error;var gQ=A0();tt.counterRegex=gQ.counter;var kw=I_();tt.throttle=kw.throttle;tt.throttleDone=kw.done;tt.clearThrottle=kw.clear;var Fu=Uy();tt.getGraphDiv=Fu.getGraphDiv;tt.isPlotDiv=Fu.isPlotDiv;tt.removeElement=Fu.removeElement;tt.addStyleRule=Fu.addStyleRule;tt.addRelatedStyleRule=Fu.addRelatedStyleRule;tt.deleteRelatedStyleRule=Fu.deleteRelatedStyleRule;tt.setStyleOnHover=Fu.setStyleOnHover;tt.getFullTransformMatrix=Fu.getFullTransformMatrix;tt.getElementTransformMatrix=Fu.getElementTransformMatrix;tt.getElementAndAncestors=Fu.getElementAndAncestors;tt.equalDomRects=Fu.equalDomRects;tt.clearResponsive=G9();tt.preserveDrawingBuffer=W9();tt.makeTraceGroups=j9();tt._=K9();tt.notifier=sw();tt.filterUnique=$9();tt.filterVisible=tk();tt.pushUnique=fw();tt.increment=ak();tt.cleanNumber=nk();tt.ensureNumber=function(t){return ck(t)?(t=Number(t),t>vk||t=t?!1:ck(e)&&e>=0&&e%1===0};tt.noop=__();tt.identity=L_();tt.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};tt.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};tt.simpleMap=function(e,t,r,i,a){for(var s=e.length,l=new Array(s),u=0;u=Math.pow(2,r)?a>10?(tt.warn("randstr failed uniqueness"),l):e(t,r,i,(a||0)+1):l};tt.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};tt.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,a=2*t-1,s=new Array(a),l=new Array(r),u,h,v,m;for(u=0;u=i&&(v-=i*Math.floor(v/i)),v<0?v=-1-v:v>=r&&(v=i-1-v),m+=e[v]*s[h];l[u]=m}return l};tt.syncOrAsync=function(e,t,r){var i,a;function s(){return tt.syncOrAsync(e,t,r)}for(;e.length;)if(a=e.splice(0,1)[0],i=a(t),i&&i.then)return i.then(s);return r&&r(t)};tt.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};tt.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,s,l;for(s=0;s0?a:0})};tt.fillArray=function(e,t,r,i){if(i=i||tt.identity,tt.isArrayOrTypedArray(e))for(var a=0;abQ.test(window.navigator.userAgent);var wQ=/Firefox\/(\d+)\.\d+/;tt.getFirefoxVersion=function(){var e=wQ.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};tt.isD3Selection=function(e){return e instanceof Xy.selection};tt.ensureSingle=function(e,t,r,i){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var s=e.append(t);return r&&s.classed(r,!0),i&&s.call(i),s};tt.ensureSingleById=function(e,t,r,i){var a=e.select(t+"#"+r);if(a.size())return a;var s=e.append(t).attr("id",r);return i&&s.call(i),s};tt.objectFromPath=function(e,t){for(var r=e.split("."),i,a=i={},s=0;s1?a+l[1]:"";if(s&&(l.length>1||u.length>4||r))for(;i.test(u);)u=u.replace(i,"$1"+s+"$2");return u+h};tt.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var yk=/^\w*$/;tt.templateString=function(e,t){var r={};return e.replace(tt.TEMPLATE_STRING_REGEX,function(i,a){var s;return yk.test(a)?s=t[a]:(r[a]=r[a]||tt.nestedProperty(t,a).get,s=r[a](!0)),s!==void 0?s:""})};var MQ={max:10,count:0,name:"hovertemplate"};tt.hovertemplateString=e=>Cw(a_(sd({},e),{opts:MQ}));var SQ={max:10,count:0,name:"texttemplate"};tt.texttemplateString=e=>Cw(a_(sd({},e),{opts:SQ}));var kQ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function CQ(e){var t=e.match(kQ);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var EQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};tt.texttemplateStringForShapes=e=>Cw(a_(sd({},e),{opts:EQ}));var lk=/^[:|\|]/;function Cw({data:e=[],locale:t,fallback:r,labels:i={},opts:a,template:s}){return s.replace(tt.TEMPLATE_STRING_REGEX,(l,u,h)=>{let v=["xother","yother"].includes(u),m=["_xother","_yother"].includes(u),_=["_xother_","_yother_"].includes(u),T=["xother_","yother_"].includes(u),M=v||m||T||_;(m||_)&&(u=u.substring(1)),(T||_)&&(u=u.substring(0,u.length-1));let C=null,E=null;if(a.parseMultDiv){var L=CQ(u);u=L.key,C=L.op,E=L.number}let I;if(M){if(i[u]===void 0)return"";I=i[u]}else for(let N of e)if(N){if(N.hasOwnProperty(u)){I=N[u];break}if(yk.test(u)||(I=tt.nestedProperty(N,u).get(!0)),I!==void 0)break}if(I===void 0){let{count:N,max:H,name:U}=a,W=r===!1?l:r;return N=q_&&l<=uk,v=u>=q_&&u<=uk;if(h&&(i=10*i+l-q_),v&&(a=10*a+u-q_),!h||!v){if(i!==a)return i-a;if(l!==u)return l-u}}return a-i};var z0=2e9;tt.seedPseudoRandom=function(){z0=2e9};tt.pseudoRandom=function(){var e=z0;return z0=(69069*z0+1)%4294967296,Math.abs(z0-e)<429496729?tt.pseudoRandom():z0/4294967296};tt.fillText=function(e,t,r){var i=Array.isArray(r)?function(l){r.push(l)}:function(l){r.text=l},a=tt.extractOption(e,t,"htx","hovertext");if(tt.isValidTextValue(a))return i(a);var s=tt.extractOption(e,t,"tx","text");if(tt.isValidTextValue(s))return i(s)};tt.isValidTextValue=function(e){return e||e===0};tt.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(v=1):v=0,tt.strTranslate(a-v*(r+l),s-v*(i+u))+tt.strScale(v)+(h?"rotate("+h+(t?"":" "+r+" "+i)+")":"")};tt.setTransormAndDisplay=function(e,t){e.attr("transform",tt.getTextTransform(t)),e.style("display",t.scale?null:"none")};tt.ensureUniformFontSize=function(e,t){var r=tt.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};tt.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};tt.bigFont=function(e){return Math.round(1.2*e)};var fk=tt.getFirefoxVersion(),LQ=fk!==null&&fk<86;tt.getPositionFromD3Event=function(){return LQ?[Xy.event.layerX,Xy.event.layerY]:[Xy.event.offsetX,Xy.event.offsetY]}});var bk=de(()=>{"use strict";var DQ=Bt(),_k={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#fff;border-color:#e0e2e5;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#f3f3f3;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Ew in _k)xk=Ew.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),DQ.addStyleRule(xk,_k[Ew]);var xk,Ew});var Lw=de((l1e,wk)=>{wk.exports=!0});var Pw=de((u1e,Tk)=>{"use strict";var PQ=Lw(),Dw;typeof window.matchMedia=="function"?Dw=!window.matchMedia("(hover: none)").matches:Dw=PQ;Tk.exports=Dw});var U_=de((f1e,zw)=>{"use strict";var F0=typeof Reflect=="object"?Reflect:null,Ak=F0&&typeof F0.apply=="function"?F0.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},B_;F0&&typeof F0.ownKeys=="function"?B_=F0.ownKeys:Object.getOwnPropertySymbols?B_=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:B_=function(t){return Object.getOwnPropertyNames(t)};function zQ(e){console&&console.warn&&console.warn(e)}var Sk=Number.isNaN||function(t){return t!==t};function Yi(){Yi.init.call(this)}zw.exports=Yi;zw.exports.once=qQ;Yi.EventEmitter=Yi;Yi.prototype._events=void 0;Yi.prototype._eventsCount=0;Yi.prototype._maxListeners=void 0;var Mk=10;function O_(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Yi,"defaultMaxListeners",{enumerable:!0,get:function(){return Mk},set:function(e){if(typeof e!="number"||e<0||Sk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Mk=e}});Yi.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Yi.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Sk(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function kk(e){return e._maxListeners===void 0?Yi.defaultMaxListeners:e._maxListeners}Yi.prototype.getMaxListeners=function(){return kk(this)};Yi.prototype.emit=function(t){for(var r=[],i=1;i0&&(l=r[0]),l instanceof Error)throw l;var u=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw u.context=l,u}var h=s[t];if(h===void 0)return!1;if(typeof h=="function")Ak(h,this,r);else for(var v=h.length,m=Pk(h,v),i=0;i0&&l.length>a&&!l.warned){l.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=l.length,zQ(u)}return e}Yi.prototype.addListener=function(t,r){return Ck(this,t,r,!1)};Yi.prototype.on=Yi.prototype.addListener;Yi.prototype.prependListener=function(t,r){return Ck(this,t,r,!0)};function IQ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ek(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=IQ.bind(i);return a.listener=r,i.wrapFn=a,a}Yi.prototype.once=function(t,r){return O_(r),this.on(t,Ek(this,t,r)),this};Yi.prototype.prependOnceListener=function(t,r){return O_(r),this.prependListener(t,Ek(this,t,r)),this};Yi.prototype.removeListener=function(t,r){var i,a,s,l,u;if(O_(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(s=-1,l=i.length-1;l>=0;l--)if(i[l]===r||i[l].listener===r){u=i[l].listener,s=l;break}if(s<0)return this;s===0?i.shift():RQ(i,s),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,u||r)}return this};Yi.prototype.off=Yi.prototype.removeListener;Yi.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var s=Object.keys(i),l;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function Lk(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?FQ(a):Pk(a,a.length)}Yi.prototype.listeners=function(t){return Lk(this,t,!0)};Yi.prototype.rawListeners=function(t){return Lk(this,t,!1)};Yi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Dk.call(e,t)};Yi.prototype.listenerCount=Dk;function Dk(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Yi.prototype.eventNames=function(){return this._eventsCount>0?B_(this._events):[]};function Pk(e,t){for(var r=new Array(t),i=0;i{"use strict";var Iw=U_().EventEmitter,BQ={init:function(e){if(e._ev instanceof Iw)return e;var t=new Iw,r=new Iw;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,a){t.emit(i,a),r.emit(i,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,a=e._ev;if(!a)return;var s=a._events[t];if(!s)return;function l(h){if(h.listener){if(a.removeListener(t,h.listener),!h.fired)return h.fired=!0,h.listener.apply(a,[r])}else return h.apply(a,[r])}s=Array.isArray(s)?s:[s];var u;for(u=0;u{"use strict";var Rk=Bt(),OQ=cd().dfltConfig;function UQ(e,t){for(var r=[],i,a=0;aOQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Mc.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Mc.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Mc.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";Nk.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var B0=de(Xn=>{"use strict";var Zl=la(),Jy=Bt(),H_=ys(),Fw=C0(),VQ=Rw(),HQ=Vy(),GQ=cd().configAttributes,Bk=il(),qu=Jy.extendDeepAll,q0=Jy.isPlainObject,ZQ=Jy.isArrayOrTypedArray,G_=Jy.nestedProperty,YQ=Jy.valObjectMeta,qw="_isSubplotObj",Z_="_isLinkedToArray",WQ="_arrayAttrRegexps",Uk="_deprecated",Nw=[qw,Z_,WQ,Uk];Xn.IS_SUBPLOT_OBJ=qw;Xn.IS_LINKED_TO_ARRAY=Z_;Xn.DEPRECATED=Uk;Xn.UNDERSCORE_ATTRS=Nw;Xn.get=function(){var e={};return Zl.allTypes.forEach(function(t){e[t]=jQ(t)}),{defs:{valObjects:YQ,metaKeys:Nw.concat(["description","role","editType","impliedEdits"]),editType:{traces:Bk.traces,layout:Bk.layout},impliedEdits:{}},traces:e,layout:JQ(),frames:KQ(),animation:N0(HQ),config:N0(GQ)}};Xn.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(s){var l=e[s];if(Nw.indexOf(s)===-1){var u=(i?i+".":"")+s;t(l,s,e,a,u),!Xn.isValObject(l)&&q0(l)&&s!=="impliedEdits"&&Xn.crawl(l,t,a+1,u)}})};Xn.isValObject=function(e){return e&&e.valType!==void 0};Xn.findArrayAttributes=function(e){var t=[],r=[],i=[],a,s;function l(h,v,m,_){r=r.slice(0,_).concat([v]),i=i.slice(0,_).concat([h&&h._isLinkedToArray]);var T=h&&(h.valType==="data_array"||h.arrayOk===!0)&&!(r[_-1]==="colorbar"&&(v==="ticktext"||v==="tickvals"));T&&u(a,0,"")}function u(h,v,m){var _=h[r[v]],T=m+r[v];if(v===r.length-1)ZQ(_)&&t.push(s+T);else if(i[v]){if(Array.isArray(_))for(var M=0;M<_.length;M++)q0(_[M])&&u(_[M],v+1,T+"["+M+"].")}else q0(_)&&u(_,v+1,T+".")}return a=e,s="",Xn.crawl(H_,l),e._module&&e._module.attributes&&Xn.crawl(e._module.attributes,l),t};Xn.getTraceValObject=function(e,t){var r=t[0],i=1,a,s,l=e._module;if(l||(l=(Zl.modules[e.type||H_.type.dflt]||{})._module),!l)return!1;if(a=l.attributes,s=a&&a[r],!s){var u=l.basePlotModule;u&&u.attributes&&(s=u.attributes[r])}return s||(s=H_[r]),Vk(s,t,i)};Xn.getLayoutValObject=function(e,t){var r=XQ(e,t[0]);return Vk(r,t,1)};function XQ(e,t){var r,i,a,s,l=e._basePlotModules;if(l){var u;for(r=0;r=s.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var l=t[r];if(!V_(l))return!1;e=s[a][l]}else e=s[a]}else e=s}}return e}function V_(e){return e===Math.round(e)&&e>=0}function jQ(e){var t,r;t=Zl.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var a=qu({},H_),s=qu({},t.attributes);Xn.crawl(s,function(h,v,m,_,T){G_(a,T).set(void 0),h===void 0&&G_(s,T).set(void 0)}),qu(i,a),Zl.traceIs(e,"noOpacity")&&delete i.opacity,Zl.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),Zl.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,qu(i,s),r.attributes&&qu(i,r.attributes),i.type=e;var l={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:N0(i)};if(t.layoutAttributes){var u={};qu(u,t.layoutAttributes),l.layoutAttributes=N0(u)}return t.animatable||Xn.crawl(l,function(h){Xn.isValObject(h)&&"anim"in h&&delete h.anim}),l}function JQ(){var e={},t,r;qu(e,Fw);for(t in Zl.subplotsRegistry)if(r=Zl.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var O0=Bt(),r$=ys(),Nh="templateitemname",Bw={name:{valType:"string",editType:"none"}};Bw[Nh]={valType:"string",editType:"calc"};md.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Bw.name,t[Nh]=Bw[Nh],t};md.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function a(s){r=O0.coerce(s,{},r$,"type");var l={type:r,_template:null};if(r in t){i=e[r];var u=t[r]%i.length;t[r]++,l._template=i[u]}return l}return{newTrace:a}};md.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);O0.isPlainObject(a)||(a=null);var s=e[t]={_template:a};return s};md.arrayTemplater=function(e,t,r){var i=e._template,a=i&&i[Gk(t)],s=i&&i[t];(!Array.isArray(s)||!s.length)&&(s=[]);var l={};function u(v){var m={name:v.name,_input:v},_=m[Nh]=v[Nh];if(!Hk(_))return m._template=a,m;for(var T=0;T=i&&(r._input||{})._templateitemname;s&&(a=i);var l=t+"["+a+"]",u;function h(){u={},s&&(u[l]={},u[l][Nh]=s)}h();function v(M,C){u[M]=C}function m(M,C){s?O0.nestedProperty(u[l],M).set(C):u[l+"."+M]=C}function _(){var M=u;return h(),M}function T(M,C){M&&m(M,C);var E=_();for(var L in E)O0.nestedProperty(e,L).set(E[L])}return{modifyBase:v,modifyItem:m,getUpdateObj:_,applyUpdate:T}}});var eo=de((m1e,Zk)=>{"use strict";var Ky=A0().counter;Zk.exports={idRegex:{x:Ky("x","( domain)?"),y:Ky("y","( domain)?")},attrRegex:Ky("[xy]axis"),xAxisMatch:Ky("xaxis"),yAxisMatch:Ky("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var jn=de(Os=>{"use strict";var a$=la(),Ow=eo();Os.id2name=function(t){if(!(typeof t!="string"||!t.match(Ow.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Os.name2id=function(t){if(t.match(Ow.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Os.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Ow.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(a&&!i)){var s=t.split(" ")[0].slice(1).replace(/^0+/,"");return s==="1"&&(s=""),t.charAt(0)+s+(a&&i?" domain":"")}};Os.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=Os.listIds(e,t),s=new Array(a.length),l;for(l=0;li?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Os.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Yk(e,t){if(t&&t.length){for(var r=0;r{"use strict";function i$(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function n$(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Wk.exports={clearOutlineControllers:i$,clearOutline:n$}});var Y_=de((_1e,Xk)=>{"use strict";Xk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var j_=de(X_=>{"use strict";var W_=la(),x1e=eo().SUBPLOT_PATTERN;X_.getSubplotCalcData=function(e,t,r){var i=W_.subplotsRegistry[t];if(!i)return[];for(var a=i.attr,s=[],l=0;l{"use strict";var o$=la(),U0=Bt();yd.manageCommandObserver=function(e,t,r,i){var a={},s=!0;t&&t._commandObserver&&(a=t._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var l=yd.hasSimpleAPICommandBindings(e,r,a.lookupTable);if(t&&t._commandObserver){if(l)return a;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,a}if(l){jk(e,l,a.cache),a.check=function(){if(s){var m=jk(e,l,a.cache);return m.changed&&i&&a.lookupTable[m.value]!==void 0&&(a.disable(),Promise.resolve(i({value:m.value,type:l.type,prop:l.prop,traces:l.traces,index:a.lookupTable[m.value]})).then(a.enable,a.enable)),m.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+a;U0.isPlainObject(s)?Uw(s,t,l,i+1):t(l,a,s)}})}});var to=de((T1e,cC)=>{"use strict";var l$=Va(),u$=x0().timeFormatLocale,f$=J3().formatLocale,Qy=La(),c$=K3(),h$=Dy().version,ei=la(),nC=B0(),v$=Pi(),Lr=Bt(),oC=Ba(),$k=Zi().BADNUM,Us=jn(),d$=Bh().clearOutline,p$=Y_(),Vw=Vy(),m$=Rw(),y$=j_().getModuleCalcData,eC=Lr.relinkPrivateKeys,gd=Lr._,_r=cC.exports={};Lr.extendFlat(_r,ei);_r.attributes=ys();_r.attributes.type.values=_r.allTypes;_r.fontAttrs=qo();_r.layoutAttributes=C0();var K_=Qk();_r.executeAPICommand=K_.executeAPICommand;_r.computeAPICommandBindings=K_.computeAPICommandBindings;_r.manageCommandObserver=K_.manageCommandObserver;_r.hasSimpleAPICommandBindings=K_.hasSimpleAPICommandBindings;_r.redrawText=function(e){return e=Lr.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ei.getComponentMethod("annotations","draw")(e),ei.getComponentMethod("legend","draw")(e),ei.getComponentMethod("colorbar","draw")(e),t(_r.previousPromises(e)))},300)})};_r.resize=function(e){e=Lr.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Lr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Lr.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var s=e.changed;e.autoplay=!0,ei.call("relayout",e,{autosize:!0}).then(function(){e.changed=s,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};_r.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};_r.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Lr.ensureSingle(t._paper,"text","js-plot-link-container",function(h){h.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:oC.defaultLine,"pointer-events":"all"}).each(function(){var v=l$.select(this);v.append("tspan").classed("js-link-to-tool",!0),v.append("tspan").classed("js-link-spacer",!0),v.append("tspan").classed("js-sourcelinks",!0)})}),i=r.node(),a={y:t._paper.attr("height")-9};document.body.contains(i)&&i.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),r.attr(a);var s=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),u=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&g$(e,s),l.text(s.text()&&u.text()?" - ":"")}};function g$(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){_r.sendDataToCloud(e)});else{var i=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+i[2].split(".")[0]+"/"+i[1]+a})}}_r.sendDataToCloud=function(e,t){e.emit("plotly_beforeexport");let r=new URL(t).origin;var i=_r.graphJson(e,!1,"keepdata","object");i.version=h$;var a=new URL(t);a.searchParams.set("origin",window.location.origin);var s=window.open(a.href,"_blank");if(!s){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var l=function(u){u.origin===r&&u.data&&u.data.type==="CHART_AUTH_SUCCESS"&&(s.postMessage({type:"chart",chart:i},r),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var _$=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],x$=["year","month","dayMonth","dayMonthYear"];_r.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var a=e._fullLayout={},s=e.layout||{},l=e._fullData||[],u=e._fullData=[],h=e.data||[],v=e.calcdata||[],m=e._context||{},_;e._transitionData||_r.createTransitionData(e),a._dfltTitle={plot:gd(e,"Click to enter Plot title"),subtitle:gd(e,"Click to enter Plot subtitle"),x:gd(e,"Click to enter X axis title"),y:gd(e,"Click to enter Y axis title"),colorbar:gd(e,"Click to enter Colorscale title"),annotation:gd(e,"new text")},a._traceWord=gd(e,"trace");var T=tC(e,_$);if(a._mapboxAccessToken=m.mapboxAccessToken,i._initialAutoSizeIsDone){var M=i.width,C=i.height;_r.supplyLayoutGlobalDefaults(s,a,T),s.width||(a.width=M),s.height||(a.height=C),_r.sanitizeMargins(a)}else{_r.supplyLayoutGlobalDefaults(s,a,T);var E=!s.width||!s.height,L=a.autosize,I=m.autosizable,O=E&&(L||I);O?_r.plotAutoSize(e,s,a):E&&_r.sanitizeMargins(a),!L&&E&&(s.width=a.width,s.height=a.height)}a._d3locale=T$(T,a.separators),a._extraFormat=tC(e,x$),a._initialAutoSizeIsDone=!0,a._dataLength=h.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var q=a._subplots=w$(),z=a._splomAxes={x:{},y:{}},N=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=b$(l,h),_r.supplyDataDefaults(h,u,s,a);var H=Object.keys(z.x),U=Object.keys(z.y);if(H.length>1&&U.length>1){for(ei.getComponentMethod("grid","sizeDefaults")(s,a),_=0;_15&&U.length>15&&a.shapes.length===0&&a.images.length===0,_r.linkSubplots(u,a,l,i),_r.cleanPlot(u,a,l,i);var oe=!!(i._has&&i._has("cartesian")),he=!!(a._has&&a._has("cartesian")),fe=oe,Te=he;fe&&!Te?i._bgLayer.remove():Te&&!fe&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&d$({_fullLayout:i}),A$(u,a),eC(a,i),ei.getComponentMethod("colorscale","crossTraceDefaults")(u,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var ke=a._tracePreGUI,Se={},Ae;for(Ae in ke)Se[Ae]="old";for(_=0;_0){var m=1-2*s;l=Math.round(m*l),u=Math.round(m*u)}}var _=_r.layoutAttributes.width.min,T=_r.layoutAttributes.height.min;l<_&&(l=_),u1,C=!r.height&&Math.abs(i.height-u)>1;(C||M)&&(M&&(i.width=l),C&&(i.height=u)),t._initialAutoSize||(t._initialAutoSize={width:l,height:u}),_r.sanitizeMargins(i)};_r.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ei.componentsRegistry,s=t._basePlotModules,l,u,h,v=ei.subplotsRegistry.cartesian;for(l in a)h=a[l],h.includeBasePlot&&h.includeBasePlot(e,t);s.length||s.push(v),t._has("cartesian")&&(ei.getComponentMethod("grid","contentDefaults")(e,t),v.finalizeSubplots(e,t));for(var m in t._subplots)t._subplots[m].sort(Lr.subplotSort);for(u=0;u1&&(r.l/=L,r.r/=L)}if(T){var I=(r.t+r.b)/T;I>1&&(r.t/=I,r.b/=I)}var O=r.xl!==void 0?r.xl:r.x,q=r.xr!==void 0?r.xr:r.x,z=r.yt!==void 0?r.yt:r.y,N=r.yb!==void 0?r.yb:r.y;M[t]={l:{val:O,size:r.l+E},r:{val:q,size:r.r+E},b:{val:N,size:r.b+E},t:{val:z,size:r.t+E}},C[t]=1}if(!i._replotting)return _r.doAutoMargin(e)}};function S$(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Us.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}_r.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),sC(t);var a=t._size,s=t.margin,l={t:0,b:0,l:0,r:0},u=Lr.extendFlat({},a),h=s.l,v=s.r,m=s.t,_=s.b,T=t._pushmargin,M=t._pushmarginIds,C=t.minreducedwidth,E=t.minreducedheight;if(s.autoexpand!==!1){for(var L in T)M[L]||delete T[L];var I=e._fullLayout._reservedMargin;for(var O in I)for(var q in I[O]){var z=I[O][q];l[q]=Math.max(l[q],z)}T.base={l:{val:0,size:h},r:{val:1,size:v},t:{val:1,size:m},b:{val:0,size:_}};for(var N in l){var H=0;for(var U in T)U!=="base"&&Qy(T[U][N].size)&&(H=T[U][N].size>H?T[U][N].size:H);var W=Math.max(0,s[N]-H);l[N]=Math.max(0,l[N]-W)}for(var J in T){var ee=T[J].l||{},ie=T[J].b||{},oe=ee.val,he=ee.size,fe=ie.val,Te=ie.size,ke=r-l.r-l.l,Se=i-l.t-l.b;for(var Ae in T){if(Qy(he)&&T[Ae].r){var me=T[Ae].r.val,Ce=T[Ae].r.size;if(me>oe){var Me=(he*me+(Ce-ke)*oe)/(me-oe),Xe=(Ce*(1-oe)+(he-ke)*(1-me))/(me-oe);Me+Xe>h+v&&(h=Me,v=Xe)}}if(Qy(Te)&&T[Ae].t){var it=T[Ae].t.val,nt=T[Ae].t.size;if(it>fe){var gt=(Te*it+(nt-Se)*fe)/(it-fe),Ge=(nt*(1-fe)+(Te-Se)*(1-it))/(it-fe);gt+Ge>_+m&&(_=gt,m=Ge)}}}}}var Ct=Lr.constrain(r-s.l-s.r,lC,C),lt=Lr.constrain(i-s.t-s.b,uC,E),mt=Math.max(0,r-Ct),Ot=Math.max(0,i-lt);if(mt){var ft=(h+v)/mt;ft>1&&(h/=ft,v/=ft)}if(Ot){var pe=(_+m)/Ot;pe>1&&(_/=pe,m/=pe)}if(a.l=Math.round(h)+l.l,a.r=Math.round(v)+l.r,a.t=Math.round(m)+l.t,a.b=Math.round(_)+l.b,a.p=Math.round(s.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(i)-a.t-a.b,!t._replotting&&(_r.didMarginChange(u,a)||S$(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var De=3*(1+Object.keys(M).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};_r.graphJson=function(e,t,r,i,a,s){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&_r.supplyDefaults(e);var l=a?e._fullData:e.data,u=a?e._fullLayout:e.layout,h=(e._transitionData||{})._frames;function v(T,M){if(typeof T=="function")return M?"_function_":null;if(Lr.isPlainObject(T)){var C={},E;return Object.keys(T).sort().forEach(function(q){if(["_","["].indexOf(q.charAt(0))===-1){if(typeof T[q]=="function"){M&&(C[q]="_function");return}if(r==="keepdata"){if(q.slice(-3)==="src")return}else if(r==="keepstream"){if(E=T[q+"src"],typeof E=="string"&&E.indexOf(":")>0&&!Lr.isPlainObject(T.stream))return}else if(r!=="keepall"&&(E=T[q+"src"],typeof E=="string"&&E.indexOf(":")>0))return;C[q]=v(T[q],M)}}),C}var L=Array.isArray(T),I=Lr.isTypedArray(T);if((L||I)&&T.dtype&&T.shape){var O=T.bdata;return v({dtype:T.dtype,shape:T.shape,bdata:Lr.isArrayBuffer(O)?c$.encode(O):O},M)}return L?T.map(function(q){return v(q,M)}):I?Lr.simpleMap(T,Lr.identity):Lr.isJSDate(T)?Lr.ms2DateTimeLocal(+T):T}var m={data:(l||[]).map(function(T){var M=v(T);return t&&delete M.fit,M})};if(!t&&(m.layout=v(u),a)){var _=u._size;m.layout.computed={margin:{b:_.b,l:_.l,r:_.r,t:_.t}}}return h&&(m.frames=v(h)),s&&(m.config=v(e._context,!0)),i==="object"?m:JSON.stringify(m)};_r.modifyFrames=function(e,t){var r,i,a,s=e._transitionData._frames,l=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return ei.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var T=0,M=0;function C(){return T++,function(){M++,!i&&M===T&&u(_)}}r.runFn(C),setTimeout(C())})}function u(_){if(e._transitionData)return s(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ei.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(_)}function h(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var v=[_r.previousPromises,h,r.prepareFn,_r.rehover,_r.reselect,l],m=Lr.syncOrAsync(v,e);return(!m||!m.then)&&(m=Promise.resolve()),m.then(function(){return e})}_r.doCalcdata=function(e,t){var r=Us.list(e),i=e._fullData,a=e._fullLayout,s,l,u,h,v=new Array(i.length),m=(e.calcdata||[]).slice();for(e.calcdata=v,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},u=0;u=0;h--)if(N[h].enabled){s._indexToPoints=N[h]._indexToPoints;break}l&&l.calc&&(z=l.calc(e,s))}(!Array.isArray(z)||!z[0])&&(z=[{x:$k,y:$k}]),z[0].t||(z[0].t={}),z[0].trace=s,v[O]=z}}for(aC(r,i,a),u=0;u{"use strict";_d.xmlns="http://www.w3.org/2000/xmlns/";_d.svg="http://www.w3.org/2000/svg";_d.xlink="http://www.w3.org/1999/xlink";_d.svgAttrs={xmlns:_d.svg,"xmlns:xlink":_d.xlink}});var No=de((M1e,hC)=>{"use strict";hC.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ro=de(Yl=>{"use strict";var On=Va(),Sc=Bt(),L$=Sc.strTranslate,Hw=Oh(),D$=No().LINE_SPACING,P$=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yl.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&i.match(P$),s=On.select(e.node().parentNode);if(s.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function u(){s.empty()||(l=e.attr("class")+"-math",s.select("svg."+l).remove()),e.text("").style("white-space","pre");var h=Z$(e.node(),i);h&&e.style("pointer-events","all"),Yl.positionText(e),r&&r.call(e)}return a?(t&&t._promises||[]).push(new Promise(function(h){e.style("display","none");var v=parseInt(e.node().style.fontSize,10),m={fontSize:v};F$(a[2],m,function(_,T,M){s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove();var C=_&&_.select("svg");if(!C||!C.node()){u(),h();return}var E=s.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});E.node().appendChild(C.node()),T&&T.node()&&C.node().insertBefore(T.node().cloneNode(!0),C.node().firstChild);var L=M.width,I=M.height;C.attr({class:l,height:I,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var O=e.node().style.fill||"black",q=C.select("g");q.attr({fill:O,stroke:O});var z=q.node().getBoundingClientRect(),N=z.width,H=z.height;(N>L||H>I)&&(C.style("overflow","hidden"),z=C.node().getBoundingClientRect(),N=z.width,H=z.height);var U=+e.attr("x"),W=+e.attr("y"),J=v||e.node().getBoundingClientRect().height,ee=-J/4;if(l[0]==="y")E.attr({transform:"rotate("+[-90,U,W]+")"+L$(-N/2,ee-H/2)});else if(l[0]==="l")W=ee-H/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)U=0,W=ee;else{var ie=e.attr("text-anchor");U=U-N*(ie==="middle"?.5:ie==="end"?1:0),W=W+ee-H/2}C.attr({x:U,y:W}),r&&r.call(e,E),h(E)})})):u(),e};var z$=/(<|<|<)/g,I$=/(>|>|>)/g;function R$(e){return e.replace(z$,"\\lt ").replace(I$,"\\gt ")}var vC=[["$","$"],["\\(","\\)"]];function F$(e,t,r){var i=parseInt((MathJax.version||"").split(".")[0]);if(i!==2&&i!==3){Sc.warn("No MathJax version:",MathJax.version);return}var a,s,l,u,h=function(){return s=Sc.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:vC},displayAlign:"left"})},v=function(){s=Sc.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=vC},m=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},_=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},T=function(){var O="math-output-"+Sc.randstr({},64);u=On.select("body").append("div").attr({id:O}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(R$(e));var q=u.node();return i===2?MathJax.Hub.Typeset(q):MathJax.typeset([q])},M=function(){var O=u.select(i===2?".MathJax_SVG":".MathJax"),q=!O.empty()&&u.select("svg").node();if(!q)Sc.log("There was an error in the tex syntax.",e),r();else{var z=q.getBoundingClientRect(),N;i===2?N=On.select("body").select("#MathJax_SVG_glyphs"):N=O.select("defs"),r(O,N,z)}u.remove()},C=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},E=function(){a!=="svg"&&(MathJax.config.startup.output=a)},L=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(s)},I=function(){MathJax.config=s};i===2?MathJax.Hub.Queue(h,m,T,M,C,L):i===3&&(v(),_(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){T(),M(),E(),I()}))}var yC={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},q$={sub:"0.3em",sup:"-0.6em"},N$={sub:"-0.21em",sup:"0.42em"},dC="\u200B",pC=["http:","https:","mailto:","",void 0,":"],gC=Yl.NEWLINES=/(\r\n?|\n)/g,Zw=/(<[^<>]*>)/,Yw=/<(\/?)([^ >]*)(\s+(.*))?>/i,B$=//i;Yl.BR_TAG_ALL=//gi;var _C=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,xC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,bC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,O$=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function xd(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&Q_(i)}var U$=/(^|;)\s*color:/;Yl.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],a="...",s=a.length,l=e.split(Zw),u=[],h="",v=0,m=0;ms?u.push(_.slice(0,Math.max(0,E-s))+a):u.push(_.slice(0,E));break}h=""}}return u.join("")};var V$={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},H$=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Q_(e){return e.replace(H$,function(t,r){var i;return r.charAt(0)==="#"?i=G$(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=V$[r],i||t})}Yl.convertEntities=Q_;function G$(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function Z$(e,t){t=t.replace(gC," ");var r=!1,i=[],a,s=-1;function l(){s++;var H=document.createElementNS(Hw.svg,"tspan");On.select(H).attr({class:"line",dy:s*D$+"em"}),e.appendChild(H),a=H;var U=i;if(i=[{node:H}],U.length>1)for(var W=1;W.",t);return}var U=i.pop();H!==U.type&&Sc.log("Start tag <"+U.type+"> doesnt match end tag <"+H+">. Pretending it did match.",t),a=i[i.length-1].node}var m=B$.test(t);m?l():(a=e,i=[{node:e}]);for(var _=t.split(Zw),T=0;T<_.length;T++){var M=_[T],C=M.match(Yw),E=C&&C[2].toLowerCase(),L=yC[E];if(E==="br")l();else if(L===void 0)h(a,Q_(M));else if(C[1])v(E);else{var I=C[4],O={type:E},q=xd(I,_C);if(q?(q=q.replace(U$,"$1 fill:"),L&&(q+=";"+L)):L&&(q=L),q&&(O.style=q),E==="a"){r=!0;var z=xd(I,xC);if(z){var N=wC(z);N&&(O.href=N,O.target=xd(I,bC)||"_blank",O.popup=xd(I,O$))}}u(O)}}return r}function wC(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),i=document.createElement("a");r.href=e,i.href=t;var a=r.protocol,s=i.protocol;return pC.indexOf(a)!==-1&&pC.indexOf(s)!==-1?t:""}Yl.sanitizeHTML=function(t){t=t.replace(gC," ");for(var r=document.createElement("p"),i=r,a=[],s=t.split(Zw),l=0;l{"use strict";var Y$=Va(),e2=Sf(),eg=La(),$_=Bt(),TC=Ba(),W$=ud().isValid;function X$(e,t,r){var i=t?$_.nestedProperty(e,t).get()||{}:e,a=i[r||"color"];a&&a._inputArray&&(a=a._inputArray);var s=!1;if($_.isArrayOrTypedArray(a)){for(var l=0;l=0;i--,a++){var s=e[i];r[a]=[1-s[0],s[1]]}return r}function EC(e,t){t=t||{};for(var r=e.domain,i=e.range,a=i.length,s=new Array(a),l=0;l{"use strict";var DC=dw(),J$=DC.FORMAT_LINK,K$=DC.DATE_FORMAT_LINK;function Q$(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Ww:PC)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Ww(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+J$+"."].join(" ")}function PC(e,t){return Ww(e,t)+[" And for dates see: "+K$+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}zC.exports={axisHoverFormat:Q$,descriptionOnlyNumbers:Ww,descriptionWithDates:PC}});var Nu=de((L1e,JC)=>{"use strict";var IC=qo(),V0=kf(),jC=_c().dash,Jw=mn().extendFlat,RC=Pi().templatedArray,E1e=Cf().templateFormatStringDescription,FC=Xw().descriptionWithDates,$$=Zi().ONEDAY,Df=eo(),eee=Df.HOUR_PATTERN,tee=Df.WEEKDAY_PATTERN,jw={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},ree=Jw({},jw,{values:jw.values.slice().concat(["sync"])});function qC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var NC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},BC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},OC={valType:"data_array",editType:"ticks"},UC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function VC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function HC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var GC={valType:"color",dflt:V0.defaultLine,editType:"ticks"},ZC={valType:"color",dflt:V0.lightLine,editType:"ticks"};function YC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var WC=Jw({},jC,{editType:"ticks"}),XC={valType:"boolean",editType:"ticks"};JC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:V0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:IC({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Df.idRegex.x.toString(),Df.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Df.idRegex.x.toString(),Df.idRegex.y.toString()],editType:"calc"},rangebreaks:RC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[tee,eee,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:$$},editType:"calc"}),tickmode:ree,nticks:qC(),tick0:NC,dtick:BC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:OC,ticktext:{valType:"data_array",editType:"ticks"},ticks:UC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:VC(),tickwidth:HC(),tickcolor:GC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Jw({},jC,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:IC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:FC("tick label")},tickformatstops:RC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:FC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:V0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:XC,gridcolor:ZC,gridwidth:YC(),griddash:WC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:V0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:V0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Df.idRegex.x.toString(),Df.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Df.idRegex.x.toString(),Df.idRegex.y.toString()],editType:"plot"},minor:{tickmode:jw,nticks:qC("minor"),tick0:NC,dtick:BC,tickvals:OC,ticks:UC,ticklen:VC("minor"),tickwidth:HC("minor"),tickcolor:GC,gridcolor:ZC,gridwidth:YC("minor"),griddash:WC,showgrid:XC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var t2=de((D1e,$C)=>{"use strict";var Wi=Nu(),KC=qo(),QC=mn().extendFlat,aee=il().overrideAll;$C.exports=aee({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Wi.linecolor,outlinewidth:Wi.linewidth,bordercolor:Wi.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Wi.minor.tickmode,nticks:Wi.nticks,tick0:Wi.tick0,dtick:Wi.dtick,tickvals:Wi.tickvals,ticktext:Wi.ticktext,ticks:QC({},Wi.ticks,{dflt:""}),ticklabeloverflow:QC({},Wi.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Wi.ticklen,tickwidth:Wi.tickwidth,tickcolor:Wi.tickcolor,ticklabelstep:Wi.ticklabelstep,showticklabels:Wi.showticklabels,labelalias:Wi.labelalias,tickfont:KC({}),tickangle:Wi.tickangle,tickformat:Wi.tickformat,tickformatstops:Wi.tickformatstops,tickprefix:Wi.tickprefix,showtickprefix:Wi.showtickprefix,ticksuffix:Wi.ticksuffix,showticksuffix:Wi.showticksuffix,separatethousands:Wi.separatethousands,exponentformat:Wi.exponentformat,minexponent:Wi.minexponent,showexponent:Wi.showexponent,title:{text:{valType:"string"},font:KC({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var kc=de((z1e,tE)=>{"use strict";var iee=t2(),nee=A0().counter,oee=D_(),eE=ud().scales,P1e=oee(eE);function r2(e){return"`"+e+"`"}tE.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",a="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,s="noScale"in r?r.noScale:t==="marker.line",l="showScaleDflt"in r?r.showScaleDflt:i==="z",u=typeof r.colorscaleDflt=="string"?eE[r.colorscaleDflt]:null,h=r.editTypeOverride||"",v=t?t+".":"",m,_;"colorAttr"in r?(m=r.colorAttr,_=r.colorAttr):(m={z:"z",c:"color"}[i],_="in "+r2(v+m));var T=a?" Has an effect only if "+_+" is set to a numerical array.":"",M=i+"auto",C=i+"min",E=i+"max",L=i+"mid",I=r2(v+M),O=r2(v+C),q=r2(v+E),z=O+" and "+q,N={};N[C]=N[E]=void 0;var H={};H[M]=!1;var U={};return m==="color"&&(U.color={valType:"color",arrayOk:!0,editType:h||"style"},r.anim&&(U.color.anim=!0)),U[M]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:N},U[C]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},U[E]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},U[L]={valType:"number",dflt:null,editType:"calc",impliedEdits:N},U.colorscale={valType:"colorscale",editType:"calc",dflt:u,impliedEdits:{autocolorscale:!1}},U.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},U.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(U.showscale={valType:"boolean",dflt:l,editType:"calc"},U.colorbar=iee),r.noColorAxis||(U.coloraxis={valType:"subplotid",regex:nee("coloraxis"),dflt:null,editType:"calc"}),U}});var Qw=de((I1e,rE)=>{"use strict";var see=mn().extendFlat,lee=kc(),Kw=ud().scales;rE.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Kw.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Kw.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Kw.RdBu,editType:"calc"}},coloraxis:see({_isSubplotObj:!0,editType:"calc"},lee("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var $w=de((R1e,aE)=>{"use strict";var uee=Bt();aE.exports=function(t){return uee.isPlainObject(t.colorbar)}});var r5=de(t5=>{"use strict";var e5=La(),iE=Bt(),nE=Zi(),fee=nE.ONEDAY,cee=nE.ONEWEEK;t5.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",s=i?fee:1;if(!e)return s;if(e5(e))return e=Number(e),e<=0?s:a?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return s;var l=e.charAt(0),u=e.slice(1);return u=e5(u)?Number(u):0,u<=0||!(i&&l==="M"&&u===Math.round(u)||r&&l==="L"||r&&l==="D"&&(u===1||u===2))?s:e};t5.tick0=function(e,t,r,i){if(t==="date")return iE.cleanDate(e,iE.dateTick0(r,i%cee===0?1:0));if(!(i==="D1"||i==="D2"))return e5(e)?Number(e):0}});var a5=de((q1e,sE)=>{"use strict";var oE=r5(),hee=Bt().isArrayOrTypedArray,vee=Fs().isTypedArraySpec,dee=Fs().decodeTypedArraySpec;sE.exports=function(t,r,i,a,s){s||(s={});var l=s.isMinor,u=l?t.minor||{}:t,h=l?r.minor:r,v=l?"minor.":"";function m(O){var q=u[O];return vee(q)&&(q=dee(q)),q!==void 0?q:(h._template||{})[O]}var _=m("tick0"),T=m("dtick"),M=m("tickvals"),C=hee(M)?"array":T?"linear":"auto",E=i(v+"tickmode",C);if(E==="auto"||E==="sync")i(v+"nticks");else if(E==="linear"){var L=h.dtick=oE.dtick(T,a);h.tick0=oE.tick0(_,a,r.calendar,L)}else if(a!=="multicategory"){var I=i(v+"tickvals");I===void 0?h.tickmode="auto":l||i("ticktext")}}});var n5=de((N1e,uE)=>{"use strict";var i5=Bt(),lE=Nu();uE.exports=function(t,r,i,a){var s=a.isMinor,l=s?t.minor||{}:t,u=s?r.minor:r,h=s?lE.minor:lE,v=s?"minor.":"",m=i5.coerce2(l,u,h,"ticklen",s?(r.ticklen||5)*.6:void 0),_=i5.coerce2(l,u,h,"tickwidth",s?r.tickwidth||1:void 0),T=i5.coerce2(l,u,h,"tickcolor",(s?r.tickcolor:void 0)||u.color),M=i(v+"ticks",!s&&a.outerTicks||m||_||T?"outside":"");M||(delete u.ticklen,delete u.tickwidth,delete u.tickcolor)}});var o5=de((B1e,fE)=>{"use strict";fE.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(s){return t[s]!==void 0}),a=function(s){return t[s]===t[i[0]]};if(i.every(a)||i.length===1)return t[i[0]]}});var Wl=de((O1e,cE)=>{"use strict";var a2=Bt(),pee=Pi();cE.exports=function(t,r,i){var a=i.name,s=i.inclusionAttr||"visible",l=r[a],u=a2.isArrayOrTypedArray(t[a])?t[a]:[],h=r[a]=[],v=pee.arrayTemplater(r,a,s),m,_;for(m=0;m{"use strict";var s5=Bt(),mee=Ba().contrast,hE=Nu(),yee=o5(),gee=Wl();vE.exports=function(t,r,i,a,s){s||(s={});var l=i("labelalias");s5.isPlainObject(l)||delete r.labelalias;var u=yee(t),h=i("showticklabels");if(h){s.noTicklabelshift||i("ticklabelshift"),s.noTicklabelstandoff||i("ticklabelstandoff");var v=s.font||{},m=r.color,_=r.ticklabelposition||"",T=_.indexOf("inside")!==-1?mee(s.bgColor):m&&m!==hE.color.dflt?m:v.color;if(s5.coerceFont(i,"tickfont",v,{overrideDflt:{color:T}}),!s.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&i("ticklabelstep"),!s.noAng){var M=i("tickangle");!s.noAutotickangles&&M==="auto"&&i("autotickangles")}if(a!=="category"){var C=i("tickformat");gee(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:_ee}),r.tickformatstops.length||delete r.tickformatstops,!s.noExp&&!C&&a!=="date"&&(i("showexponent",u),i("exponentformat"),i("minexponent"),i("separatethousands"))}!s.noMinorloglabels&&a==="log"&&i("minorloglabels")}};function _ee(e,t){function r(a,s){return s5.coerce(e,t,hE.tickformatstops,a,s)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var u5=de((V1e,dE)=>{"use strict";var xee=o5();dE.exports=function(t,r,i,a,s){s||(s={});var l=s.tickSuffixDflt,u=xee(t),h=i("tickprefix");h&&i("showtickprefix",u);var v=i("ticksuffix",l);v&&i("showticksuffix",u)}});var f5=de((H1e,pE)=>{"use strict";var Uh=Bt(),bee=Pi(),wee=a5(),Tee=n5(),Aee=l5(),Mee=u5(),See=t2();pE.exports=function(t,r,i){var a=bee.newContainer(r,"colorbar"),s=t.colorbar||{};function l(ie,oe){return Uh.coerce(s,a,See,ie,oe)}var u=i.margin||{t:0,b:0,l:0,r:0},h=i.width-u.l-u.r,v=i.height-u.t-u.b,m=l("orientation"),_=m==="v",T=l("thicknessmode");l("thickness",T==="fraction"?30/(_?h:v):30);var M=l("lenmode");l("len",M==="fraction"?1:_?v:h);var C=l("yref"),E=l("xref"),L=C==="paper",I=E==="paper",O,q,z,N="left";_?(z="middle",N=I?"left":"right",O=I?1.02:1,q=.5):(z=L?"bottom":"top",N="center",O=.5,q=L?1.02:1),Uh.coerce(s,a,{x:{valType:"number",min:I?-2:0,max:I?3:1,dflt:O}},"x"),Uh.coerce(s,a,{y:{valType:"number",min:L?-2:0,max:L?3:1,dflt:q}},"y"),l("xanchor",N),l("xpad"),l("yanchor",z),l("ypad"),Uh.noneOrAll(s,a,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var H=Uh.coerce(s,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:_?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",H.indexOf("inside")!==-1?"hide past domain":"hide past div"),wee(s,a,l,"linear");var U=i.font,W={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:U};H.indexOf("inside")!==-1&&(W.bgColor="black"),Mee(s,a,l,"linear",W),Aee(s,a,l,"linear",W),Tee(s,a,l,"linear",W),l("title.text",i._dfltTitle.colorbar);var J=a.showticklabels?a.tickfont:U,ee=Uh.extendFlat({},U,{family:J.family,size:Uh.bigFont(J.size)});Uh.coerceFont(l,"title.font",ee),l("title.side",_?"top":"right")}});var bd=de((G1e,gE)=>{"use strict";var mE=La(),h5=Bt(),kee=$w(),Cee=f5(),yE=ud().isValid,Eee=la().traceIs;function c5(e,t){var r=t.slice(0,t.length-1);return t?h5.nestedProperty(e,r).get()||{}:e}gE.exports=function e(t,r,i,a,s){var l=s.prefix,u=s.cLetter,h="_module"in r,v=c5(t,l),m=c5(r,l),_=c5(r._template||{},l)||{},T=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,a,s)};if(h){var M=i._colorAxes||{},C=a(l+"coloraxis");if(C){var E=Eee(r,"contour")&&h5.nestedProperty(r,"contours.coloring").get()||"heatmap",L=M[C];L?(L[2].push(T),L[0]!==E&&(L[0]=!1,h5.warn(["Ignoring coloraxis:",C,"setting","as it is linked to incompatible colorscales."].join(" ")))):M[C]=[E,r,[T]];return}}var I=v[u+"min"],O=v[u+"max"],q=mE(I)&&mE(O)&&I{"use strict";var _E=Bt(),Lee=Pi(),xE=Qw(),Dee=bd();bE.exports=function(t,r){function i(_,T){return _E.coerce(t,r,xE,_,T)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,s,l;function u(_,T){return _E.coerce(s,l,xE.coloraxis,_,T)}for(var h in a){var v=a[h];if(v[0])s=t[h]||{},l=Lee.newContainer(r,h,"coloraxis"),l._name=h,Dee(s,l,r,u,{prefix:"",cLetter:"c"});else{for(var m=0;m{"use strict";var Pee=Bt(),zee=Lf().hasColorscale,Iee=Lf().extractOpts;TE.exports=function(t,r){function i(m,_){var T=m["_"+_];T!==void 0&&(m[_]=T)}function a(m,_){var T=_.container?Pee.nestedProperty(m,_.container).get():m;if(T)if(T.coloraxis)T._colorAx=r[T.coloraxis];else{var M=Iee(T),C=M.auto;(C||M.min===void 0)&&i(T,_.min),(C||M.max===void 0)&&i(T,_.max),M.autocolorscale&&i(T,"colorscale")}}for(var s=0;s{"use strict";var ME=La(),v5=Bt(),Ree=Lf().extractOpts;SE.exports=function(t,r,i){var a=t._fullLayout,s=i.vals,l=i.containerStr,u=l?v5.nestedProperty(r,l).get():r,h=Ree(u),v=h.auto!==!1,m=h.min,_=h.max,T=h.mid,M=function(){return v5.aggNums(Math.min,null,s)},C=function(){return v5.aggNums(Math.max,null,s)};if(m===void 0?m=M():v&&(u._colorAx&&ME(m)?m=Math.min(m,M()):m=M()),_===void 0?_=C():v&&(u._colorAx&&ME(_)?_=Math.max(_,C()):_=C()),v&&T!==void 0&&(_-T>T-m?m=T-(_-T):_-T=0?E=a.colorscale.sequential:E=a.colorscale.sequentialminus,h._sync("colorscale",E)}}});var G0=de((X1e,kE)=>{"use strict";var i2=ud(),H0=Lf();kE.exports={moduleType:"component",name:"colorscale",attributes:kc(),layoutAttributes:Qw(),supplyLayoutDefaults:wE(),handleDefaults:bd(),crossTraceDefaults:AE(),calc:tg(),scales:i2.scales,defaultScale:i2.defaultScale,getScale:i2.get,isValidScale:i2.isValid,hasColorscale:H0.hasColorscale,extractOpts:H0.extractOpts,extractScale:H0.extractScale,flipScale:H0.flipScale,makeColorScaleFunc:H0.makeColorScaleFunc,makeColorScaleFuncFromTrace:H0.makeColorScaleFuncFromTrace}});var rs=de((j1e,EE)=>{"use strict";var CE=Bt(),Fee=Fs().isTypedArraySpec;EE.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return CE.isPlainObject(t)&&(CE.isArrayOrTypedArray(t.size)||Fee(t.size))}}});var d5=de((J1e,LE)=>{"use strict";var qee=La();LE.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,s=i.sizemin||0,l=i.sizemode==="area"?function(u){return Math.sqrt(u/a)}:function(u){return u/a};return function(u){var h=l(u/r);return qee(h)&&h>0?Math.max(h,s):0}}});var Cc=de(Bo=>{"use strict";var n2=Bt();Bo.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Bo.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index{zE.exports=Vee;var p5={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Uee=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Vee(e){var t=[];return e.replace(Uee,function(r,i,a){var s=i.toLowerCase();for(a=Gee(a),s=="m"&&a.length>2&&(t.push([i].concat(a.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(a.length==p5[s])return a.unshift(i),t.push(a);if(a.length{"use strict";var Zee=m5(),lr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ha="M0,0Z",IE=Math.sqrt(2),Vh=Math.sqrt(3),y5=Math.PI,g5=Math.cos,_5=Math.sin;BE.exports={circle:{n:0,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?da(t,r,a):a}},square:{n:1,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.4,2),a=lr(e*1.2,2);return da(t,r,"M"+a+","+i+"H"+i+"V"+a+"H-"+i+"V"+i+"H-"+a+"V-"+i+"H-"+i+"V-"+a+"H"+i+"V-"+i+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.8/IE,2),a="l"+i+","+i,s="l"+i+",-"+i,l="l-"+i+",-"+i,u="l-"+i+","+i;return da(t,r,"M0,"+i+a+s+l+s+l+u+l+u+a+u+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2/Vh,2),a=lr(e/2,2),s=lr(e,2);return da(t,r,"M-"+i+","+a+"H"+i+"L0,-"+s+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2/Vh,2),a=lr(e/2,2),s=lr(e,2);return da(t,r,"M-"+i+",-"+a+"H"+i+"L0,"+s+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2/Vh,2),a=lr(e/2,2),s=lr(e,2);return da(t,r,"M"+a+",-"+i+"V"+i+"L-"+s+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2/Vh,2),a=lr(e/2,2),s=lr(e,2);return da(t,r,"M-"+a+",-"+i+"V"+i+"L"+s+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.6,2),a=lr(e*1.2,2);return da(t,r,"M-"+a+",-"+i+"H"+i+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.6,2),a=lr(e*1.2,2);return da(t,r,"M"+i+",-"+a+"V"+i+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.6,2),a=lr(e*1.2,2);return da(t,r,"M"+a+","+i+"H-"+i+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.6,2),a=lr(e*1.2,2);return da(t,r,"M-"+i+","+a+"V-"+i+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.951,2),a=lr(e*.588,2),s=lr(-e,2),l=lr(e*-.309,2),u=lr(e*.809,2);return da(t,r,"M"+i+","+l+"L"+a+","+u+"H-"+a+"L-"+i+","+l+"L0,"+s+"Z")}},hexagon:{n:14,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e/2,2),s=lr(e*Vh/2,2);return da(t,r,"M"+s+",-"+a+"V"+a+"L0,"+i+"L-"+s+","+a+"V-"+a+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e/2,2),s=lr(e*Vh/2,2);return da(t,r,"M-"+a+","+s+"H"+a+"L"+i+",0L"+a+",-"+s+"H-"+a+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.924,2),a=lr(e*.383,2);return da(t,r,"M-"+a+",-"+i+"H"+a+"L"+i+",-"+a+"V"+a+"L"+a+","+i+"H-"+a+"L-"+i+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(va(t))return ha;var i=e*1.4,a=lr(i*.225,2),s=lr(i*.951,2),l=lr(i*.363,2),u=lr(i*.588,2),h=lr(-i,2),v=lr(i*-.309,2),m=lr(i*.118,2),_=lr(i*.809,2),T=lr(i*.382,2);return da(t,r,"M"+a+","+v+"H"+s+"L"+l+","+m+"L"+u+","+_+"L0,"+T+"L-"+u+","+_+"L-"+l+","+m+"L-"+s+","+v+"H-"+a+"L0,"+h+"Z")}},hexagram:{n:18,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.66,2),a=lr(e*.38,2),s=lr(e*.76,2);return da(t,r,"M-"+s+",0l-"+a+",-"+i+"h"+s+"l"+a+",-"+i+"l"+a+","+i+"h"+s+"l-"+a+","+i+"l"+a+","+i+"h-"+s+"l-"+a+","+i+"l-"+a+",-"+i+"h-"+s+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(va(t))return ha;var i=lr(e*Vh*.8,2),a=lr(e*.8,2),s=lr(e*1.6,2),l=lr(e*4,2),u="A "+l+","+l+" 0 0 1 ";return da(t,r,"M-"+i+","+a+u+i+","+a+u+"0,-"+s+u+"-"+i+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(va(t))return ha;var i=lr(e*Vh*.8,2),a=lr(e*.8,2),s=lr(e*1.6,2),l=lr(e*4,2),u="A "+l+","+l+" 0 0 1 ";return da(t,r,"M"+i+",-"+a+u+"-"+i+",-"+a+u+"0,"+s+u+i+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.1,2),a=lr(e*2,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",-"+i+s+"-"+i+","+i+s+i+","+i+s+i+",-"+i+s+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2),a=lr(e*1.9,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",0"+s+"0,"+i+s+i+",0"+s+"0,-"+i+s+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(va(t))return ha;var i=lr(e*.7,2),a=lr(e*1.4,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2),a=lr(e*.7,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e/IE,2);return da(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.3,2),a=lr(e*.65,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*.85,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(va(t))return ha;var i=lr(e/2,2),a=lr(e,2);return da(t,r,"M"+i+","+a+"V-"+a+"M"+(i-a)+",-"+a+"V"+a+"M"+a+","+i+"H-"+a+"M-"+a+","+(i-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*1.6,2),s=lr(e*.8,2);return da(t,r,"M-"+i+","+s+"L0,0M"+i+","+s+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*1.6,2),s=lr(e*.8,2);return da(t,r,"M-"+i+",-"+s+"L0,0M"+i+",-"+s+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*1.6,2),s=lr(e*.8,2);return da(t,r,"M"+s+","+i+"L0,0M"+s+",-"+i+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.2,2),a=lr(e*1.6,2),s=lr(e*.8,2);return da(t,r,"M-"+s+","+i+"L0,0M-"+s+",-"+i+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2);return da(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(va(t))return ha;var i=lr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e*2,2);return da(t,r,"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e*2,2);return da(t,r,"M0,0L-"+i+",-"+a+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2,2),a=lr(e,2);return da(t,r,"M0,0L"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2,2),a=lr(e,2);return da(t,r,"M0,0L-"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(va(t))return ha;var i=lr(e,2),a=lr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+a+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2,2),a=lr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(va(t))return ha;var i=lr(e*2,2),a=lr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L-"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(va(t))return ha;var i=y5/2.5,a=2*e*g5(i),s=2*e*_5(i);return da(t,r,"M0,0L"+-a+","+s+"L"+a+","+s+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(va(t))return ha;var i=y5/4,a=2*e*g5(i),s=2*e*_5(i);return da(t,r,"M0,0L"+-a+","+s+"A "+2*e+","+2*e+" 0 0 1 "+a+","+s+"Z")},backoff:.4,noDot:!0}};function va(e){return e===null}var RE,FE,qE,NE;function da(e,t,r){if((!e||e%360===0)&&!t)return r;if(qE===e&&NE===t&&RE===r)return FE;qE=e,NE=t,RE=r;function i(L,I){var O=g5(L),q=_5(L),z=I[0],N=I[1]+(t||0);return[z*O-N*q,z*q+N*O]}for(var a=e/180*y5,s=0,l=0,u=Zee(r),h="",v=0;v{"use strict";var ao=Va(),gi=Bt(),Yee=gi.numberFormat,Md=La(),M5=Sf(),s2=la(),Mo=Ba(),Wee=G0(),ag=gi.strTranslate,l2=ro(),Xee=Oh(),jee=No(),Jee=jee.LINE_SPACING,JE=y_().DESELECTDIM,Kee=rs(),Qee=d5(),$ee=Cc().appendArrayPointValue,xr=oL.exports={};xr.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,s=t.color,l=t.size,u=t.family,h=t.shadow,v=t.lineposition,m=t.textcase;u&&e.style("font-family",u),l+1&&e.style("font-size",l+"px"),s&&e.call(Mo.fill,s),a&&e.style("font-weight",a),i&&e.style("font-style",i),r&&e.style("font-variant",r),m&&e.style("text-transform",x5(tte(m))),h&&e.style("text-shadow",h==="auto"?l2.makeTextShadow(Mo.contrast(s)):x5(h)),v&&e.style("text-decoration-line",x5(rte(v)))};function x5(e){return e==="none"?void 0:e}var ete={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function tte(e){return ete[e]}function rte(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}xr.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};xr.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};xr.setRect=function(e,t,r,i,a){e.call(xr.setPosition,t,r).call(xr.setSize,i,a)};xr.translatePoint=function(e,t,r,i){var a=r.c2p(e.x),s=i.c2p(e.y);if(Md(a)&&Md(s)&&t.node())t.node().nodeName==="text"?t.attr("x",a).attr("y",s):t.attr("transform",ag(a,s));else return!1;return!0};xr.translatePoints=function(e,t,r){e.each(function(i){var a=ao.select(this);xr.translatePoint(i,a,t,r)})};xr.hideOutsideRangePoint=function(e,t,r,i,a,s){t.attr("display",r.isPtWithinRange(e,a)&&i.isPtWithinRange(e,s)?null:"none")};xr.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(a){var s=a[0].trace,l=s.xcalendar,u=s.ycalendar,h=s2.traceIs(s,"bar-like")?".bartext":".point,.textpoint";e.selectAll(h).each(function(v){xr.hideOutsideRangePoint(v,ao.select(this),r,i,l,u)})})}};xr.crispRound=function(e,t,r){return!t||!Md(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};xr.singleLineStyle=function(e,t,r,i,a){t.style("fill","none");var s=(((e||[])[0]||{}).trace||{}).line||{},l=r||s.width||0,u=a||s.dash||"";Mo.stroke(t,i||s.color),xr.dashLine(t,u,l)};xr.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(a){var s=(((a||[])[0]||{}).trace||{}).line||{},l=t||s.width||0,u=i||s.dash||"";ao.select(this).call(Mo.stroke,r||s.color).call(xr.dashLine,u,l)})};xr.dashLine=function(e,t,r){r=+r||0,t=xr.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};xr.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function KE(e,t,r,i){var a=t.fillpattern,s=t.fillgradient,l=xr.getPatternAttr,u=a&&(l(a.shape,0,"")||l(a.path,0,""));if(u){var h=l(a.bgcolor,0,null),v=l(a.fgcolor,0,null),m=a.fgopacity,_=l(a.size,0,8),T=l(a.solidity,0,.3),M=t.uid;xr.pattern(e,"point",r,M,u,_,T,void 0,a.fillmode,h,v,m)}else if(s&&s.type!=="none"){var C=s.type,E="scatterfill-"+t.uid;if(i&&(E="legendfill-"+t.uid),!i&&(s.start!==void 0||s.stop!==void 0)){var L,I;C==="horizontal"?(L={x:s.start,y:0},I={x:s.stop,y:0}):C==="vertical"&&(L={x:0,y:s.start},I={x:0,y:s.stop}),L.x=t._xA.c2p(L.x===void 0?t._extremes.x.min[0].val:L.x,!0),L.y=t._yA.c2p(L.y===void 0?t._extremes.y.min[0].val:L.y,!0),I.x=t._xA.c2p(I.x===void 0?t._extremes.x.max[0].val:I.x,!0),I.y=t._yA.c2p(I.y===void 0?t._extremes.y.max[0].val:I.y,!0),e.call(eL,r,E,"linear",s.colorscale,"fill",L,I,!0,!1)}else C==="horizontal"&&(C=C+"reversed"),e.call(xr.gradient,r,E,C,s.colorscale,"fill")}else t.fillcolor&&e.call(Mo.fill,t.fillcolor)}xr.singleFillStyle=function(e,t){var r=ao.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};KE(e,a,t,!1)};xr.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var a=ao.select(this);i[0].trace&&KE(a,i[0].trace,t,r)})};var UE=OE();xr.symbolNames=[];xr.symbolFuncs=[];xr.symbolBackOffs=[];xr.symbolNeedLines={};xr.symbolNoDot={};xr.symbolNoFill={};xr.symbolList=[];Object.keys(UE).forEach(function(e){var t=UE[e],r=t.n;xr.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),xr.symbolNames[r]=e,xr.symbolFuncs[r]=t.f,xr.symbolBackOffs[r]=t.backoff||0,t.needLine&&(xr.symbolNeedLines[r]=!0),t.noDot?xr.symbolNoDot[r]=!0:xr.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(xr.symbolNoFill[r]=!0)});var ate=xr.symbolNames.length,ite="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";xr.symbolNumber=function(e){if(Md(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=xr.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=ate||e>=400?0:Math.floor(Math.max(e,0))};function QE(e,t,r,i){var a=e%100;return xr.symbolFuncs[a](t,r,i)+(e>=200?ite:"")}var VE=Yee("~f"),$E={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};xr.gradient=function(e,t,r,i,a,s){var l=$E[i];return eL(e,t,r,l.type,a,s,l.start,l.stop,!1,l.reversed)};function eL(e,t,r,i,a,s,l,u,h,v){var m=a.length,_;i==="linear"?_={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:u.x,y2:u.y,gradientUnits:h?"userSpaceOnUse":"objectBoundingBox"},reversed:v}:i==="radial"&&(_={node:"radialGradient",reversed:v});for(var T=new Array(m),M=0;M=0&&e.i===void 0&&(e.i=s.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),i.ms2mrc){var h;e.ms==="various"||l.size==="various"?h=3:h=i.ms2mrc(e.ms),e.mrc=h,i.selectedSizeFn&&(h=e.mrc=i.selectedSizeFn(e));var v=xr.symbolNumber(e.mx||l.symbol)||0;e.om=v%200>=100;var m=C5(e,r),_=k5(e,r);t.attr("d",QE(v,h,m,_))}var T=!1,M,C,E;if(e.so)E=u.outlierwidth,C=u.outliercolor,M=l.outliercolor;else{var L=(u||{}).width;E=(e.mlw+1||L+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?C=e.mlcc=i.lineScale(e.mlc):gi.isArrayOrTypedArray(u.color)?C=Mo.defaultLine:C=u.color,gi.isArrayOrTypedArray(l.color)&&(M=Mo.defaultLine,T=!0),"mc"in e?M=e.mcc=i.markerScale(e.mc):M=l.color||l.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(M=i.selectedColorFn(e))}let I=e.mld||(u||{}).dash;if(I&&xr.dashLine(t,I,E),e.om)t.call(Mo.stroke,M).style({"stroke-width":(E||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:E)+"px");var O=l.gradient,q=e.mgt;q?T=!0:q=O&&O.type,gi.isArrayOrTypedArray(q)&&(q=q[0],$E[q]||(q=0));var z=l.pattern,N=xr.getPatternAttr,H=z&&(N(z.shape,e.i,"")||N(z.path,e.i,""));if(q&&q!=="none"){var U=e.mgc;U?T=!0:U=O.color;var W=r.uid;T&&(W+="-"+e.i),xr.gradient(t,a,W,q,[[0,U],[1,M]],"fill")}else if(H){var J=!1,ee=z.fgcolor;!ee&&s&&s.color&&(ee=s.color,J=!0);var ie=N(ee,e.i,s&&s.color||null),oe=N(z.bgcolor,e.i,null),he=z.fgopacity,fe=N(z.size,e.i,8),Te=N(z.solidity,e.i,.3);J=J||e.mcc||gi.isArrayOrTypedArray(z.shape)||gi.isArrayOrTypedArray(z.path)||gi.isArrayOrTypedArray(z.bgcolor)||gi.isArrayOrTypedArray(z.fgcolor)||gi.isArrayOrTypedArray(z.size)||gi.isArrayOrTypedArray(z.solidity);var ke=r.uid;J&&(ke+="-"+e.i),xr.pattern(t,"point",a,ke,H,fe,Te,e.mcc,z.fillmode,oe,ie,he)}else gi.isArrayOrTypedArray(M)?Mo.fill(t,M[e.i]):Mo.fill(t,M);E&&Mo.stroke(t,C)}};xr.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=xr.tryColorscale(r,""),t.lineScale=xr.tryColorscale(r,"line"),s2.traceIs(e,"symbols")&&(t.ms2mrc=Kee.isBubble(e)?Qee(e):function(){return(r.size||6)/2}),e.selectedpoints&&gi.extendFlat(t,xr.makeSelectedPointStyleFns(e)),t};xr.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.marker||{},s=r.marker||{},l=i.marker||{},u=a.opacity,h=s.opacity,v=l.opacity,m=h!==void 0,_=v!==void 0;(gi.isArrayOrTypedArray(u)||m||_)&&(t.selectedOpacityFn=function(z){var N=z.mo===void 0?a.opacity:z.mo;return z.selected?m?h:N:_?v:JE*N});var T=a.color,M=s.color,C=l.color;(M||C)&&(t.selectedColorFn=function(z){var N=z.mcc||T;return z.selected?M||N:C||N});var E=a.size,L=s.size,I=l.size,O=L!==void 0,q=I!==void 0;return s2.traceIs(e,"symbols")&&(O||q)&&(t.selectedSizeFn=function(z){var N=z.mrc||E/2;return z.selected?O?L/2:N:q?I/2:N}),t};xr.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.textfont||{},s=r.textfont||{},l=i.textfont||{},u=a.color,h=s.color,v=l.color;return t.selectedTextColorFn=function(m){var _=m.tc||u;return m.selected?h||_:v||(h?_:Mo.addOpacity(_,JE))},t};xr.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=xr.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];r.selectedOpacityFn&&a.push(function(s,l){s.style("opacity",r.selectedOpacityFn(l))}),r.selectedColorFn&&a.push(function(s,l){Mo.fill(s,r.selectedColorFn(l))}),r.selectedSizeFn&&a.push(function(s,l){var u=l.mx||i.symbol||0,h=r.selectedSizeFn(l);s.attr("d",QE(xr.symbolNumber(u),h,C5(l,t),k5(l,t))),l.mrc2=h}),a.length&&e.each(function(s){for(var l=ao.select(this),u=0;u0?r:0}xr.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var a=xr.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}var s=t.texttemplate,l=r._fullLayout;e.each(function(u){var h=ao.select(this),v=s?gi.extractOption(u,t,"txt","texttemplate"):gi.extractOption(u,t,"tx","text");if(!v&&v!==0){h.remove();return}if(s){var m=t._module.formatLabels,_=m?m(u,t,l):{},T={};$ee(T,t,u.i),v=gi.texttemplateString({data:[T,u,t._meta],fallback:t.texttemplatefallback,labels:_,locale:l._d3locale,template:v})}var M=u.tp||t.textposition,C=rL(u,t),E=i?i(u):u.tc||t.textfont.color;h.call(xr.font,{family:u.tf||t.textfont.family,weight:u.tw||t.textfont.weight,style:u.ty||t.textfont.style,variant:u.tv||t.textfont.variant,textcase:u.tC||t.textfont.textcase,lineposition:u.tE||t.textfont.lineposition,shadow:u.tS||t.textfont.shadow,size:C,color:E}).text(v).call(l2.convertToTspans,r).call(tL,M,C,u.mrc)})}};xr.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=xr.makeSelectedTextStyleFns(t);e.each(function(i){var a=ao.select(this),s=r.selectedTextColorFn(i),l=i.tp||t.textposition,u=rL(i,t);Mo.fill(a,s);var h=s2.traceIs(t,"bar-like");tL(a,l,u,i.mrc2||i.mrc,h)})}};var HE=.5;xr.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],a;for(a=1;a=h||z>=m&&z<=h)&&(N<=_&&N>=v||N>=_&&N<=v)&&(e=[z,N])}return e}xr.applyBackoff=nL;xr.makeTester=function(){var e=gi.ensureSingleById(ao.select("body"),"svg","js-plotly-tester",function(r){r.attr(Xee.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=gi.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});xr.tester=e,xr.testref=t};xr.savedBBoxes={};var w5=0,ste=1e4;xr.bBox=function(e,t,r){r||(r=GE(e));var i;if(r){if(i=xr.savedBBoxes[r],i)return gi.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=GE(a),r){var s=+a.getAttribute("x")||0,l=+a.getAttribute("y")||0,u=a.getAttribute("transform");if(!u){var h=xr.bBox(a,!1,r);return s&&(h.left+=s,h.right+=s),l&&(h.top+=l,h.bottom+=l),h}if(r+="~"+s+"~"+l+"~"+u,i=xr.savedBBoxes[r],i)return gi.extendFlat({},i)}}var v,m;t?v=e:(m=xr.tester.node(),v=e.cloneNode(!0),m.appendChild(v)),ao.select(v).attr("transform",null).call(l2.positionText,0,0);var _=v.getBoundingClientRect(),T=xr.testref.node().getBoundingClientRect();t||m.removeChild(v);var M={height:_.height,width:_.width,left:_.left-T.left,top:_.top-T.top,right:_.right-T.left,bottom:_.bottom-T.top};return w5>=ste&&(xr.savedBBoxes={},w5=0),r&&(xr.savedBBoxes[r]=M),w5++,gi.extendFlat({},M)};function GE(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}xr.setClipUrl=function(e,t,r){e.attr("clip-path",S5(t,r))};function S5(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}xr.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,u){return[l,u].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};xr.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||0,r=r||0,l=l.replace(i,"").trim(),l+=ag(t,r),l=l.trim(),e[s]("transform",l),l};xr.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,u){return[l,u].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};xr.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||1,r=r||1,l=l.replace(i,"").trim(),l+="scale("+t+","+r+")",l=l.trim(),e[s]("transform",l),l};var lte=/\s*sc.*/;xr.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(lte,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var ute=/translate\([^)]*\)\s*$/;xr.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,a=ao.select(this),s=a.select("text");if(s.node()){var l=parseFloat(s.attr("x")||0),u=parseFloat(s.attr("y")||0),h=(a.attr("transform")||"").match(ute);t===1&&r===1?i=[]:i=[ag(l,u),"scale("+t+","+r+")",ag(-l,-u)],h&&i.push(h),a.attr("transform",i.join(""))}})};function k5(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}xr.getMarkerStandoff=k5;var rg=Math.atan2,wd=Math.cos,Y0=Math.sin;function ZE(e,t){var r=t[0],i=t[1];return[r*wd(e)-i*Y0(e),r*Y0(e)+i*wd(e)]}var YE,WE,XE,jE,T5,A5;function C5(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||gi.isArrayOrTypedArray(r))&&(r=0));var i,a,s=t.marker.angleref;if(s==="previous"||s==="north"){if(t._geo){var l=t._geo.project(e.lonlat);i=l[0],a=l[1]}else{var u=t._xA,h=t._yA;if(u&&h)i=u.c2p(e.x),a=h.c2p(e.y);else return 90}if(t._geo){var v=e.lonlat[0],m=e.lonlat[1],_=t._geo.project([v,m+1e-5]),T=t._geo.project([v+1e-5,m]),M=rg(T[1]-a,T[0]-i),C=rg(_[1]-a,_[0]-i),E;if(s==="north")E=r/180*Math.PI;else if(s==="previous"){var L=v/180*Math.PI,I=m/180*Math.PI,O=YE/180*Math.PI,q=WE/180*Math.PI,z=O-L,N=wd(q)*Y0(z),H=Y0(q)*wd(I)-wd(q)*Y0(I)*wd(z);E=-rg(N,H)-Math.PI,YE=v,WE=m}var U=ZE(M,[wd(E),0]),W=ZE(C,[Y0(E),0]);r=rg(U[1]+W[1],U[0]+W[0])/Math.PI*180,s==="previous"&&!(A5===t.uid&&e.i===T5+1)&&(r=null)}if(s==="previous"&&!t._geo)if(A5===t.uid&&e.i===T5+1&&Md(i)&&Md(a)){var J=i-XE,ee=a-jE,ie=t.line&&t.line.shape||"",oe=ie.slice(ie.length-1);oe==="h"&&(ee=0),oe==="v"&&(J=0),r+=rg(ee,J)/Math.PI*180+90}else r=null}return XE=i,jE=a,T5=e.i,A5=t.uid,r}xr.getMarkerAngle=C5});var ig=de((t_e,fL)=>{"use strict";var W0=Va(),fte=La(),cte=to(),E5=la(),Sd=Bt(),sL=Sd.strTranslate,u2=_i(),f2=Ba(),X0=ro(),lL=y_(),hte=No().OPPOSITE_SIDE,uL=/ [XY][0-9]* /,L5=1.6,D5=1.6;function vte(e,t,r){var i=e._fullLayout,a=r.propContainer,s=r.propName,l=r.placeholder,u=r.traceIndex,h=r.avoid||{},v=r.attributes,m=r.transform,_=r.containerGroup,T=1,M=a.title,C=(M&&M.text?M.text:"").trim(),E=!1,L=M&&M.font?M.font:{},I=L.family,O=L.size,q=L.color,z=L.weight,N=L.style,H=L.variant,U=L.textcase,W=L.lineposition,J=L.shadow,ee=r.subtitlePropName,ie=!!ee,oe=r.subtitlePlaceholder,he=(a.title||{}).subtitle||{text:"",font:{}},fe=(he.text||"").trim(),Te=!1,ke=1,Se=he.font,Ae=Se.family,me=Se.size,Ce=Se.color,Me=Se.weight,Xe=Se.style,it=Se.variant,nt=Se.textcase,gt=Se.lineposition,Ge=Se.shadow,Ct;s==="title.text"?Ct="titleText":s.indexOf("axis")!==-1?Ct="axisTitleText":s.indexOf("colorbar")!==-1&&(Ct="colorbarTitleText");var lt=e._context.edits[Ct];function mt(qt,Dt){return qt===void 0||Dt===void 0?!1:qt.replace(uL," % ")===Dt.replace(uL," % ")}C===""?T=0:mt(C,l)&&(lt||(C=""),T=.2,E=!0),ie&&(fe===""?ke=0:mt(fe,oe)&&(lt||(fe=""),ke=.2,Te=!0)),r._meta?C=Sd.templateString(C,r._meta):i._meta&&(C=Sd.templateString(C,i._meta));var Ot=C||fe||lt,ft;_||(_=Sd.ensureSingle(i._infolayer,"g","g-"+t),ft=i._hColorbarMoveTitle);var pe=_.selectAll("text."+t).data(Ot?[0]:[]);pe.enter().append("text"),pe.text(C).attr("class",t),pe.exit().remove();var De=null,ye=t+"-subtitle",Oe=fe||lt;if(ie&&(De=_.selectAll("text."+ye).data(Oe?[0]:[]),De.enter().append("text"),De.text(fe).attr("class",ye),De.exit().remove()),!Ot)return _;function at(qt,Dt){Sd.syncOrAsync([Je,Pt],{title:qt,subtitle:Dt})}function Je(qt){var Dt=qt.title,At=qt.subtitle,Ut;!m&&ft&&(m={}),m?(Ut="",m.rotate&&(Ut+="rotate("+[m.rotate,v.x,v.y]+")"),(m.offset||ft)&&(Ut+=sL(0,(m.offset||0)-(ft||0)))):Ut=null,Dt.attr("transform",Ut);function Wt(vt){if(vt){var pt=W0.select(vt.node().parentNode).select("."+ye);if(!pt.empty()){var Nt=vt.node().getBBox();if(Nt.height){var er=Nt.y+Nt.height+L5*me;pt.attr("y",er)}}}}if(Dt.style("opacity",T*f2.opacity(q)).call(u2.font,{color:f2.rgb(q),size:W0.round(O,2),family:I,weight:z,style:N,variant:H,textcase:U,shadow:J,lineposition:W}).attr(v).call(X0.convertToTspans,e,Wt),At&&!At.empty()){var Be=_.select("."+t+"-math-group"),ut=Dt.node().getBBox(),sr=Be.node()?Be.node().getBBox():void 0,Pr=sr?sr.y+sr.height+L5*me:ut.y+ut.height+D5*me,Lt=Sd.extendFlat({},v,{y:Pr});At.attr("transform",Ut),At.style("opacity",ke*f2.opacity(Ce)).call(u2.font,{color:f2.rgb(Ce),size:W0.round(me,2),family:Ae,weight:Me,style:Xe,variant:it,textcase:nt,shadow:Ge,lineposition:gt}).attr(Lt).call(X0.convertToTspans,e)}return cte.previousPromises(e)}function Pt(qt){var Dt=qt.title,At=W0.select(Dt.node().parentNode);if(h&&h.selection&&h.side&&C){At.attr("transform",null);var Ut=hte[h.side],Wt=h.side==="left"||h.side==="top"?-1:1,Be=fte(h.pad)?h.pad:2,ut=u2.bBox(At.node()),sr={t:0,b:0,l:0,r:0},Pr=e._fullLayout._reservedMargin;for(var Lt in Pr)for(var vt in Pr[Lt]){var pt=Pr[Lt][vt];sr[vt]=Math.max(sr[vt],pt)}var Nt={left:sr.l,top:sr.t,right:i.width-sr.r,bottom:i.height-sr.b},er=h.maxShift||Wt*(Nt[h.side]-ut[h.side]),Ht=0;if(er<0)Ht=er;else{var Gt=h.offsetLeft||0,hr=h.offsetTop||0;ut.left-=Gt,ut.right-=Gt,ut.top-=hr,ut.bottom-=hr,h.selection.each(function(){var mr=u2.bBox(this);Sd.bBoxIntersect(ut,mr,Be)&&(Ht=Math.max(Ht,Wt*(mr[h.side]-ut[Ut])+Be))}),Ht=Math.min(er,Ht),a._titleScoot=Math.abs(Ht)}if(Ht>0||er<0){var yr={left:[-Ht,0],right:[Ht,0],top:[0,-Ht],bottom:[0,Ht]}[h.side];At.attr("transform",sL(yr[0],yr[1]))}}}pe.call(at,De);function xt(qt,Dt){qt.text(Dt).on("mouseover.opacity",function(){W0.select(this).transition().duration(lL.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){W0.select(this).transition().duration(lL.HIDE_PLACEHOLDER).style("opacity",0)})}if(lt&&(C?pe.on(".opacity",null):(xt(pe,l),E=!0),pe.call(X0.makeEditable,{gd:e}).on("edit",function(qt){u!==void 0?E5.call("_guiRestyle",e,s,qt,u):E5.call("_guiRelayout",e,s,qt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(at)}).on("input",function(qt){this.text(qt||" ").call(X0.positionText,v.x,v.y)}),ie)){if(ie&&!C){var bt=pe.node().getBBox(),Vt=bt.y+bt.height+D5*me;De.attr("y",Vt)}fe?De.on(".opacity",null):(xt(De,oe),Te=!0),De.call(X0.makeEditable,{gd:e}).on("edit",function(qt){E5.call("_guiRelayout",e,"title.subtitle.text",qt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(at)}).on("input",function(qt){this.text(qt||" ").call(X0.positionText,De.attr("x"),De.attr("y"))})}return pe.classed("js-placeholder",E),De&&!De.empty()&&De.classed("js-placeholder",Te),_}fL.exports={draw:vte,SUBTITLE_PADDING_EM:D5,SUBTITLE_PADDING_MATHJAX_EM:L5}});var g2=de((r_e,pL)=>{"use strict";var dte=Va(),pte=x0().utcFormat,zi=Bt(),mte=zi.numberFormat,Pf=La(),Hh=zi.cleanNumber,yte=zi.ms2DateTime,cL=zi.dateTime2ms,zf=zi.ensureNumber,hL=zi.isArrayOrTypedArray,Gh=Zi(),c2=Gh.FP_SAFE,Bu=Gh.BADNUM,gte=Gh.LOG_CLIP,_te=Gh.ONEWEEK,h2=Gh.ONEDAY,v2=Gh.ONEHOUR,vL=Gh.ONEMIN,dL=Gh.ONESEC,d2=jn(),y2=eo(),p2=y2.HOUR_PATTERN,m2=y2.WEEKDAY_PATTERN;function ng(e){return Math.pow(10,e)}function P5(e){return e!=null}pL.exports=function(t,r){r=r||{};var i=t._id||"x",a=i.charAt(0);function s(z,N){if(z>0)return Math.log(z)/Math.LN10;if(z<=0&&N&&t.range&&t.range.length===2){var H=t.range[0],U=t.range[1];return .5*(H+U-2*gte*Math.abs(H-U))}else return Bu}function l(z,N,H,U){if((U||{}).msUTC&&Pf(z))return+z;var W=cL(z,H||t.calendar);if(W===Bu)if(Pf(z)){z=+z;var J=Math.floor(zi.mod(z+.05,1)*10),ee=Math.round(z-J/10);W=cL(new Date(ee))+J/10}else return Bu;return W}function u(z,N,H){return yte(z,N,H||t.calendar)}function h(z){return t._categories[Math.round(z)]}function v(z){if(P5(z)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[z]!==void 0)return t._categoriesMap[z];t._categories.push(typeof z=="number"?String(z):z);var N=t._categories.length-1;return t._categoriesMap[z]=N,N}return Bu}function m(z,N){for(var H=new Array(N),U=0;Ut.range[1]&&(H=!H);for(var U=H?-1:1,W=U*z,J=0,ee=0;eeoe)J=ee+1;else{J=W<(ie+oe)/2?ee:ee+1;break}}var he=t._B[J]||0;return isFinite(he)?C(z,t._m2,he):0},I=function(z){var N=t._rangebreaks.length;if(!N)return E(z,t._m,t._b);for(var H=0,U=0;Ut._rangebreaks[U].pmax&&(H=U+1);return E(z,t._m2,t._B[H])}}t.c2l=t.type==="log"?s:zf,t.l2c=t.type==="log"?ng:zf,t.l2p=L,t.p2l=I,t.c2p=t.type==="log"?function(z,N){return L(s(z,N))}:L,t.p2c=t.type==="log"?function(z){return ng(I(z))}:I,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=Hh,t.c2d=t.c2r=t.l2d=t.l2r=zf,t.d2p=t.r2p=function(z){return t.l2p(Hh(z))},t.p2d=t.p2r=I,t.cleanPos=zf):t.type==="log"?(t.d2r=t.d2l=function(z,N){return s(Hh(z),N)},t.r2d=t.r2c=function(z){return ng(Hh(z))},t.d2c=t.r2l=Hh,t.c2d=t.l2r=zf,t.c2r=s,t.l2d=ng,t.d2p=function(z,N){return t.l2p(t.d2r(z,N))},t.p2d=function(z){return ng(I(z))},t.r2p=function(z){return t.l2p(Hh(z))},t.p2r=I,t.cleanPos=zf):t.type==="date"?(t.d2r=t.r2d=zi.identity,t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=u,t.d2p=t.r2p=function(z,N,H){return t.l2p(l(z,0,H))},t.p2d=t.p2r=function(z,N,H){return u(I(z),N,H)},t.cleanPos=function(z){return zi.cleanDate(z,Bu,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=v,t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var N=M(z);return N!==void 0?N:t.fraction2r(.5)},t.l2r=t.c2r=zf,t.r2l=M,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return typeof z=="string"&&z!==""?z:zf(z)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var N=T(z);return N!==void 0?N:t.fraction2r(.5)},t.r2c_just_indices=_,t.l2r=t.c2r=zf,t.r2l=T,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return Array.isArray(z)||typeof z=="string"&&z!==""?z:zf(z)},t.setupMultiCategory=function(z){var N=t._traceIndices,H,U,W=t._matchGroup;if(W&&t._categories.length===0){for(var J in W)if(J!==i){var ee=r[d2.id2name(J)];N=N.concat(ee._traceIndices)}}var ie=[[0,{}],[0,{}]],oe=[];for(H=0;Hee[1]&&(U[J?0:1]=H,W[1]=ee[1]),W[0]>=W[1])if(N!==void 0){var ie=ee[0]+1;H!==void 0&&(ie=Math.min(ie,ee[1])),U[J?0:1]=t.l2r(ie)}else H!==void 0&&(U[J?1:0]=t.l2r(ee[1]-1))}},t.cleanRange=function(z,N){t._cleanRange(z,N),t.limitRange(z)},t._cleanRange=function(z,N){N||(N={}),z||(z="range");var H=zi.nestedProperty(t,z).get(),U,W;if(t.type==="date"?W=zi.dfltRange(t.calendar):a==="y"?W=y2.DFLTRANGEY:t._name==="realaxis"?W=[0,1]:W=N.dfltRange||y2.DFLTRANGEX,W=W.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(W[0]=0),!H||H.length!==2){zi.nestedProperty(t,z).set(W);return}var J=H[0]===null,ee=H[1]===null;for(t.type==="date"&&!t.autorange&&(H[0]=zi.cleanDate(H[0],Bu,t.calendar),H[1]=zi.cleanDate(H[1],Bu,t.calendar)),U=0;U<2;U++)if(t.type==="date"){if(!zi.isDateTime(H[U],t.calendar)){t[z]=W;break}if(t.r2l(H[0])===t.r2l(H[1])){var ie=zi.constrain(t.r2l(H[0]),zi.MIN_MS+1e3,zi.MAX_MS-1e3);H[0]=t.l2r(ie-1e3),H[1]=t.l2r(ie+1e3);break}}else{if(!Pf(H[U]))if(!(J||ee)&&Pf(H[1-U]))H[U]=H[1-U]*(U?10:.1);else{t[z]=W;break}if(H[U]<-c2?H[U]=-c2:H[U]>c2&&(H[U]=c2),H[0]===H[1]){var oe=Math.max(1,Math.abs(H[0]*1e-6));H[0]-=oe,H[1]+=oe}}},t.setScale=function(z){var N=r._size;if(t.overlaying){var H=d2.getFromId({_fullLayout:r},t.overlaying);t.domain=H.domain}var U=z&&t._r?"_r":"range",W=t.calendar;t.cleanRange(U);var J=t.r2l(t[U][0],W),ee=t.r2l(t[U][1],W),ie=a==="y";if(ie?(t._offset=N.t+(1-t.domain[1])*N.h,t._length=N.h*(t.domain[1]-t.domain[0]),t._m=t._length/(J-ee),t._b=-t._m*ee):(t._offset=N.l+t.domain[0]*N.w,t._length=N.w*(t.domain[1]-t.domain[0]),t._m=t._length/(ee-J),t._b=-t._m*J),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var oe,he;if(t._rangebreaks=t.locateBreaks(Math.min(J,ee),Math.max(J,ee)),t._rangebreaks.length){for(oe=0;oeee&&(fe=!fe),fe&&t._rangebreaks.reverse();var Te=fe?-1:1;for(t._m2=Te*t._length/(Math.abs(ee-J)-t._lBreaks),t._B.push(-t._m2*(ie?ee:J)),oe=0;oeW&&(W+=7,JW&&(W+=24,J=U&&J=U&&z=Ge.min&&(XeGe.max&&(Ge.max=it),nt=!1)}nt&&ee.push({min:Xe,max:it})}};for(H=0;H{"use strict";var mL=La(),z5=Bt(),xte=Zi().BADNUM,_2=z5.isArrayOrTypedArray,bte=z5.isDateTime,wte=z5.cleanNumber,yL=Math.round;_L.exports=function(t,r,i){var a=t,s=i.noMultiCategory;if(_2(a)&&!a.length)return"-";if(!s&&kte(a))return"multicategory";if(s&&Array.isArray(a[0])){for(var l=[],u=0;us*2}function gL(e){return Math.max(1,(e-1)/1e3)}function Ste(e,t){for(var r=e.length,i=gL(r),a=0,s=0,l={},u=0;ua*2}function kte(e){return _2(e[0])&&_2(e[1])}});var og=de((i_e,kL)=>{"use strict";var Cte=Va(),TL=La(),Zh=Bt(),x2=Zi().FP_SAFE,Ete=la(),Lte=_i(),AL=jn(),Dte=AL.getFromId,Pte=AL.isLinked;kL.exports={applyAutorangeOptions:SL,getAutoRange:R5,makePadFn:F5,doAutoRange:Ite,findExtremes:Rte,concatExtremes:B5};function R5(e,t){var r,i,a=[],s=e._fullLayout,l=F5(s,t,0),u=F5(s,t,1),h=B5(e,t),v=h.min,m=h.max;if(v.length===0||m.length===0)return Zh.simpleMap(t.range,t.r2l);var _=v[0].val,T=m[0].val;for(r=1;r0&&(ee=q-l(H)-u(U),ee>z?ie/ee>N&&(W=H,J=U,N=ie/ee):ie/q>N&&(W={val:H.val,nopad:1},J={val:U.val,nopad:1},N=ie/q));function oe(Se,Ae){return Math.max(Se,u(Ae))}if(_===T){var he=_-1,fe=_+1;if(I)if(_===0)a=[0,1];else{var Te=(_>0?m:v).reduce(oe,0),ke=_/(1-Math.min(.5,Te/q));a=_>0?[0,ke]:[ke,0]}else O?a=[Math.max(0,he),Math.max(1,fe)]:a=[he,fe]}else I?(W.val>=0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:0,nopad:1})):O&&(W.val-N*l(W)<0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:1,nopad:1})),N=(J.val-W.val-xL(t,H.val,U.val))/(q-l(W)-u(J)),a=[W.val-N*l(W),J.val+N*u(J)];return a=SL(a,t),t.limitRange&&t.limitRange(),C&&a.reverse(),Zh.simpleMap(a,t.l2r||Number)}function xL(e,t,r){var i=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),s=0;s0?r.ppadplus:r.ppadminus)||r.ppad||0),H=z((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),U=z(r.vpadplus||r.vpad),W=z(r.vpadminus||r.vpad);if(!v){if(O=1/0,q=-1/0,h)for(_=0;_0&&(O=T),T>q&&T-x2&&(O=T),T>q&&T=ie;_--)ee(_);return{min:i,max:a,opts:r}}function q5(e,t,r,i){ML(e,t,r,i,Fte)}function N5(e,t,r,i){ML(e,t,r,i,qte)}function ML(e,t,r,i,a){for(var s=i.tozero,l=i.extrapad,u=!0,h=0;h=r&&(v.extrapad||!l)){u=!1;break}else a(t,v.val)&&v.pad<=r&&(l||!v.extrapad)&&(e.splice(h,1),h--)}if(u){var m=s&&t===0;e.push({val:t,pad:m?0:r,extrapad:m?!1:l})}}function wL(e){return TL(e)&&Math.abs(e)=t}function Nte(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&b2(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&b2(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Bte(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&b2(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&b2(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function b2(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=h&&(s=h,r=h),l<=h&&(l=h,i=h)}}return r=Nte(r,t),i=Bte(i,t),[r,i]}});var Xi=de((o_e,JL)=>{"use strict";var Xl=Va(),Un=La(),j0=to(),lg=la(),Jr=Bt(),J0=Jr.strTranslate,kd=ro(),Ote=ig(),ug=Ba(),ol=_i(),Ute=Nu(),CL=r5(),n_e=eo(),So=Zi(),Vte=So.ONEMAXYEAR,A2=So.ONEAVGYEAR,M2=So.ONEMINYEAR,Hte=So.ONEMAXQUARTER,H5=So.ONEAVGQUARTER,S2=So.ONEMINQUARTER,Gte=So.ONEMAXMONTH,K0=So.ONEAVGMONTH,k2=So.ONEMINMONTH,sl=So.ONEWEEK,as=So.ONEDAY,Yh=as/2,Rf=So.ONEHOUR,fg=So.ONEMIN,C2=So.ONESEC,Zte=So.ONEMILLI,Yte=So.ONEMICROSEC,Cd=So.MINUS_SIGN,L2=So.BADNUM,G5={K:"zeroline"},Z5={K:"gridline",L:"path"},Y5={K:"minor-gridline",L:"path"},BL={K:"tick",L:"path"},EL={K:"tick",L:"text"},LL={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},D2=No(),sg=D2.MID_SHIFT,Ed=D2.CAP_SHIFT,cg=D2.LINE_SPACING,Wte=D2.OPPOSITE_SIDE,E2=3,$t=JL.exports={};$t.setConvert=g2();var Xte=I5(),Ff=jn(),jte=Ff.idSort,Jte=Ff.isLinked;$t.id2name=Ff.id2name;$t.name2id=Ff.name2id;$t.cleanId=Ff.cleanId;$t.list=Ff.list;$t.listIds=Ff.listIds;$t.getFromId=Ff.getFromId;$t.getFromTrace=Ff.getFromTrace;var OL=og();$t.getAutoRange=OL.getAutoRange;$t.findExtremes=OL.findExtremes;var Kte=1e-4;function J5(e){var t=(e[1]-e[0])*Kte;return[e[0]-t,e[1]+t]}$t.coerceRef=function(e,t,r,i,a,s){var l=i.charAt(i.length-1),u=r._fullLayout._subplots[l+"axis"],h=i+"ref",v={};return a||(a=u[0]||(typeof s=="string"?s:s[0])),s||(s=a),u=u.concat(u.map(function(m){return m+" domain"})),v[h]={valType:"enumerated",values:u.concat(s?typeof s=="string"?[s]:s:[]),dflt:a},Jr.coerce(e,t,v,h)};$t.coerceRefArray=function(e,t,r,i,a,s,l){let u=i.charAt(i.length-1);var h=r._fullLayout._subplots[u+"axis"];let v=i+"ref";var m=e[v];a||(a=h[0]||(typeof s=="string"?s:s[0])),h=h.concat(h.map(T=>T+" domain")),h=h.concat(s||[]),m.length>l?(Jr.warn("Array attribute "+v+" has more entries than expected, truncating to "+l),m=m.slice(0,l)):m.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};$t.saveRangeInitial=function(e,t){for(var r=$t.list(e,"",!0),i=!1,a=0;a_*.3||v(i)||v(a))){var T=r.dtick/2;e+=e+Tl){var u=Number(r.slice(1));s.exactYears>l&&u%12===0?e=$t.tickIncrement(e,"M6","reverse")+as*1.5:s.exactMonths>l?e=$t.tickIncrement(e,"M1","reverse")+as*15.5:e-=Yh;var h=$t.tickIncrement(e,r);if(h<=i)return h}return e}$t.prepMinorTicks=function(e,t,r){var _,T;if(!((_=t.minor)!=null&&_.dtick)){delete e.dtick;var i=t.dtick&&Un(t._tmin),a;if(i){var s=$t.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,s*.99+t._tmin*.01]}else{var l=Jr.simpleMap(t.range,t.r2l);a=[l[0],.8*l[0]+.2*l[1]]}if(e.range=Jr.simpleMap(a,t.l2r),e._isMinor=!0,$t.prepTicks(e,r),i){var u=Un(t.dtick),h=Un(e.dtick),v=u?t.dtick:+t.dtick.substring(1),m=h?e.dtick:+e.dtick.substring(1);u&&h?O5(v,m)?v===2*sl&&m===2*as&&(e.dtick=sl):v===2*sl&&m===3*as?e.dtick=sl:v===sl&&!(t._input.minor||{}).nticks?e.dtick=as:zL(v/m,2.5)?e.dtick=v/2:e.dtick=v:String(t.dtick).charAt(0)==="M"?h?e.dtick="M1":O5(v,m)?v>=12&&m===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?O5(v,m)||(e.dtick=zL(v/m,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((T=t.minor)==null?void 0:T._tick0Init)===void 0&&(e.tick0=t.tick0)};function O5(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function zL(e,t){return Math.abs(e/t-1)<.001}$t.prepTicks=function(e,t){var r=Jr.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,a;i||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Jr.bigFont(e.tickfont.size||12):15,i=e._length/a):(a=e._id.charAt(0)==="y"?40:80,i=Jr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,$t.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(s=i-1,l=i):(s=i,l=i);var u=e[s].value,h=e[l].value,v=Math.abs(h-u),m=r||v,_=0;m>=M2?v>=M2&&v<=Vte?_=v:_=A2:r===H5&&m>=S2?v>=S2&&v<=Hte?_=v:_=H5:m>=k2?v>=k2&&v<=Gte?_=v:_=K0:r===sl&&m>=sl?_=sl:m>=as?_=as:r===Yh&&m>=Yh?_=Yh:r===Rf&&m>=Rf&&(_=Rf);var T;_>=v&&(_=v,T=!0);var M=a+_;if(t.rangebreaks&&_>0){for(var C=84,E=0,L=0;Lsl&&(_=v)}(_>0||i===0)&&(e[i].periodX=a+_/2)}}$t.calcTicks=function(t,r){for(var i=t.type,a=t.calendar,s=t.ticklabelstep,l=t.ticklabelmode==="period",u=t.range[0]>t.range[1],h=!t.ticklabelindex||Jr.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],v=Jr.simpleMap(t.range,t.r2l,void 0,void 0,r),m=v[1]=(z?0:1);N--){var H=!N;N?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):z&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var U=N?t:Jr.extendFlat({},t,z?t.minor:{minor:{}});if(H?$t.prepMinorTicks(U,t,r):$t.prepTicks(U,r),U.tickmode==="array"){N?(L=[],C=IL(t,!H)):(I=[],E=IL(t,!H));continue}if(U.tickmode==="sync"){L=[],C=are(t);continue}var W=J5(v),J=W[0],ee=W[1],ie=Un(U.dtick),oe=i==="log"&&!(ie||U.dtick.charAt(0)==="L"),he=$t.tickFirst(U,r);if(N){if(t._tmin=he,he=ee:Te<=ee;Te=$t.tickIncrement(Te,Ae,m,a)){if(N&&ke++,U.rangebreaks&&!m){if(Te=T)break}if(L.length>M||Te===fe)break;fe=Te;var me={value:Te};N?(oe&&Te!==(Te|0)&&(me.simpleLabel=!0),s>1&&ke%s&&(me.skipLabel=!0),L.push(me)):(me.minor=!0,I.push(me))}}if(!I||I.length<3)h=!1;else{var Ce=(I[2].value-I[1].value)*(u?-1:1);Cre(Ce,t.tickformat)||(h=!1,I=I.slice(1))}if(!h)O=L;else{var Me=L.concat(I);l&&L.length&&(Me=Me.slice(1)),Me=Me.sort(function(qt,Dt){return qt.value-Dt.value}).filter(function(qt,Dt,At){return Dt===0||qt.value!==At[Dt-1].value});var Xe=Me.map(function(qt,Dt){return qt.minor===void 0&&!qt.skipLabel?Dt:null}).filter(function(qt){return qt!==null});Xe.forEach(function(qt){h.map(function(Dt){var At=qt+Dt;At>=0&&At-1;ft--){if(L[ft].drop){L.splice(ft,1);continue}L[ft].value=V5(L[ft].value,t);var Oe=t.c2p(L[ft].value);(pe?ye>Oe-De:yeT||Ut<_)&&(Ut>T&&(At.periodX=T),Ut<_&&(At.periodX=_),Je(At))),At}var xt;for(ft=0;fta&&TA2)t/=A2,i=a(10),e.dtick="M"+12*If(t,i,w2);else if(s>K0)t/=K0,e.dtick="M"+If(t,1,RL);else if(s>as){if(e.dtick=If(t,as,e._hasDayOfWeekBreaks?[1,2,7,14]:ire),!r){var l=$t.getTickFormat(e),u=e.ticklabelmode==="period";u&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=Jr.dateTick0(e.calendar,2):e.tick0=Jr.dateTick0(e.calendar,1),u&&(e._dowTick0=e.tick0)}}else s>Rf?e.dtick=If(t,Rf,RL):s>fg?e.dtick=If(t,fg,FL):s>C2?e.dtick=If(t,C2,FL):(i=a(10),e.dtick=If(t,i,w2))}else if(e.type==="log"){e.tick0=0;var h=Jr.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(h[1]-h[0])<1){var v=1.5*Math.abs((h[1]-h[0])/t);t=Math.abs(Math.pow(10,h[1])-Math.pow(10,h[0]))/v,i=a(10),e.dtick="L"+If(t,i,w2)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):e4(e)?(e.tick0=0,i=1,e.dtick=If(t,i,nre)):(e.tick0=0,i=a(10),e.dtick=If(t,i,w2));if(e.dtick===0&&(e.dtick=1),!Un(e.dtick)&&typeof e.dtick!="string"){var m=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(m)}};function GL(e){var t=e.dtick;if(e._tickexponent=0,!Un(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),a=i.length;if(String(t).charAt(0)==="M")a>10||i.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=as&&a<=10||t>=as*15)e._tickround="d";else if(t>=fg&&a<=16||t>=Rf)e._tickround="M";else if(t>=C2&&a<=19||t>=fg)e._tickround="S";else{var s=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,s)-20,e._tickround<0&&(e._tickround=4)}}else if(Un(t)||t.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Un(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var u=Math.max(Math.abs(l[0]),Math.abs(l[1])),h=Math.floor(Math.log(u)/Math.LN10+.01),v=e.minexponent===void 0?3:e.minexponent;Math.abs(h)>v&&(Q0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!K5(h)||Q0(e.exponentformat)&&e.exponentformat==="SI extended"&&!Q5(h)?e._tickexponent=3*Math.round((h-1)/3):e._tickexponent=h)}else e._tickround=null}$t.tickIncrement=function(e,t,r,i){var a=r?-1:1;if(Un(t))return Jr.increment(e,a*t);var s=t.charAt(0),l=a*Number(t.slice(1));if(s==="M")return Jr.incrementMonth(e,l,i);if(s==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(s==="D"){var u=t==="D2"?HL:VL,h=e+a*.01,v=Jr.roundUp(Jr.mod(h,1),u,r);return Math.floor(h)+Math.log(Xl.round(Math.pow(10,v),1))/Math.LN10}throw"unrecognized dtick "+String(t)};$t.tickFirst=function(e,t){var r=e.r2l||Number,i=Jr.simpleMap(e.range,r,void 0,void 0,t),a=i[1]=0&&I<=e._length?L:null};if(s&&Jr.isArrayOrTypedArray(e.ticktext)){var _=Jr.simpleMap(e.range,e.r2l),T=(Math.abs(_[1]-_[0])-(e._lBreaks||0))/1e4;for(v=0;v"+u;else{var v=vg(e),m=e._trueSide||e.side;(!v&&m==="top"||v&&m==="bottom")&&(l+="
")}t.text=l}function sre(e,t,r,i,a){var s=e.dtick,l=t.x,u=e.tickformat,h=typeof s=="string"&&s.charAt(0);if(a==="never"&&(a=""),i&&h!=="L"&&(s="L3",h="L"),u||h==="L")t.text=hg(Math.pow(10,l),e,a,i);else if(Un(s)||h==="D"&&(e.minorloglabels==="complete"||Jr.mod(l+.01,1)<.1)){var v;e.minorloglabels==="complete"&&!(Jr.mod(l+.01,1)<.1)&&(v=!0,t.fontSize*=.75);var m=Math.pow(10,l).toExponential(0),_=m.split("e"),T=+_[1],M=Math.abs(T),C=e.exponentformat;C==="power"||Q0(C)&&C!=="SI extended"&&K5(T)||Q0(C)&&C==="SI extended"&&Q5(T)?(t.text=_[0],M>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),T!==0&&T!==1&&(t.text+=""+(T>0?"":Cd)+M+""),t.fontSize*=1.25):(C==="e"||C==="E")&&M>2?t.text=_[0]+C+(T>0?"+":Cd)+M:(t.text=hg(Math.pow(10,l),e,"","fakehover"),s==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(h==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Jr.mod(l,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(s);if(e.dtick==="D1"){var E=String(t.text).charAt(0);(E==="0"||E==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}function lre(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function ure(e,t,r){var i=Math.round(t.x),a=e._categories[i]||[],s=a[1]===void 0?"":String(a[1]),l=a[0]===void 0?"":String(a[0]);r?t.text=l+" - "+s:(t.text=s,t.text2=l)}function fre(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=hg(t.x,e,a,i)}function cre(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var s=t.x/180;if(s===0)t.text="0";else{var l=hre(s);if(l[1]>=100)t.text=hg(Jr.deg2rad(t.x),e,a,i);else{var u=t.x<0;l[1]===1?l[0]===1?t.text="\u03C0":t.text=l[0]+"\u03C0":t.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),u&&(t.text=Cd+t.text)}}}else t.text=hg(t.x,e,a,i)}function hre(e){function t(u,h){return Math.abs(u-h)<=1e-6}function r(u,h){return t(h,0)?u:r(h,u%h)}function i(u){for(var h=1;!t(Math.round(u*h)/h,u);)h*=10;return h}var a=i(e),s=e*a,l=Math.abs(r(s,a));return[Math.round(s/l),Math.round(a/l)]}var YL=["f","p","n","\u03BC","m","","k","M","G","T"],vre=["q","r","y","z","a",...YL,"P","E","Z","Y","R","Q"],Q0=e=>["SI","SI extended","B"].includes(e);function K5(e){return e>14||e<-15}function Q5(e){return e>32||e<-30}function dre(e,t){return Q0(t)?!!(t==="SI extended"&&Q5(e)||t!=="SI extended"&&K5(e)):!1}function hg(e,t,r,i){var a=e<0,s=t._tickround,l=r||t.exponentformat||"B",u=t._tickexponent,h=$t.getTickFormat(t),v=t.separatethousands;if(i){var m={exponentformat:l,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Un(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};GL(m),s=(Number(m._tickround)||0)+4,u=m._tickexponent,t.hoverformat&&(h=t.hoverformat)}if(h)return t._numFormat(h)(e).replace(/-/g,Cd);var _=Math.pow(10,-s)/2;if(l==="none"&&(u=0),e=Math.abs(e),e<_)e="0",a=!1;else{if(e+=_,u&&(e*=Math.pow(10,-u),s+=u),s===0)e=String(Math.floor(e));else if(s<0){e=String(Math.round(e)),e=e.slice(0,Math.max(0,e.length+s));for(var T=s;T<0;T++)e+="0"}else{e=String(e);var M=e.indexOf(".")+1;M&&(e=e.slice(0,M+s).replace(/\.?0+$/,""))}e=Jr.numSeparate(e,t._separators,v)}if(u&&l!=="hide"){dre(u,l)&&(l="power");var C;u<0?C=Cd+-u:l!=="power"?C="+"+u:C=String(u),l==="e"||l==="E"?e+=l+C:l==="power"?e+="\xD710"+C+"":l==="B"&&u===9?e+="B":Q0(l)&&(e+=l==="SI extended"?vre[u/3+10]:YL[u/3+5])}return a?Cd+e:e}$t.getTickFormat=function(e){var t;function r(h){return typeof h!="string"?h:Number(h.replace("M",""))*K0}function i(h,v){var m=["L","D"];if(typeof h==typeof v){if(typeof h=="number")return h-v;var _=m.indexOf(h.charAt(0)),T=m.indexOf(v.charAt(0));return _===T?Number(h.replace(/(L|D)/g,""))-Number(v.replace(/(L|D)/g,"")):_-T}else return typeof h=="number"?1:-1}function a(h,v,m){var _=m||function(C){return C},T=v[0],M=v[1];return(!T&&typeof T!="number"||_(T)<=_(h))&&(!M&&typeof M!="number"||_(M)>=_(h))}function s(h,v){var m=v[0]===null,_=v[1]===null,T=i(h,v[0])>=0,M=i(h,v[1])<=0;return(m||T)&&(_||M)}var l,u;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&a.unshift(a.splice(m,1).shift())}});var u={false:{left:0,right:0}};return Jr.syncOrAsync(a.map(function(h){return function(){if(h){var v=$t.getFromId(e,h);r||(r={}),r.axShifts=u,r.overlayingShiftedAx=l;var m=$t.drawOne(e,v,r);return v._shiftPusher&&j5(v,v._fullDepth||0,u,!0),v._r=v.range.slice(),v._rl=Jr.simpleMap(v._r,v.r2l),m}}}))};$t.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},a=r.overlayingShiftedAx||[],s,l,u;t.setScale();var h=e._fullLayout,v=t._id,m=v.charAt(0),_=$t.counterLetter(v),T=h._plots[t._mainSubplot],M=t.zerolinelayer==="above traces";if(!T)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var C=t.linewidth/2||0;t.ticks==="inside"&&(C+=t.ticklen),j5(t,C,i,!0),j5(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=kre(t,i));var E=T[m+"axislayer"],L=t._mainLinePosition,I=L+=t._shift,O=t._mainMirrorPosition,q=t._vals=$t.calcTicks(t),z=[t.mirror,I,O].join("_");for(s=0;s0?At.bottom-qt:0,Dt))));var ut=0,sr=0;if(t._shiftPusher&&(ut=Math.max(Dt,At.height>0?bt==="l"?qt-At.left:At.right-qt:0),t.title.text!==h._dfltTitle[m]&&(sr=(t._titleStandoff||0)+(t._titleScoot||0),bt==="l"&&(sr+=NL(t))),t._fullDepth=Math.max(ut,sr)),t.automargin){Ut={x:0,y:0,r:0,l:0,t:0,b:0};var Pr=[0,1],Lt=typeof t._shift=="number"?t._shift:0;if(m==="x"){if(bt==="b"?Ut[bt]=t._depth:(Ut[bt]=t._depth=Math.max(At.width>0?qt-At.top:0,Dt),Pr.reverse()),At.width>0){var vt=At.right-(t._offset+t._length);vt>0&&(Ut.xr=1,Ut.r=vt);var pt=t._offset-At.left;pt>0&&(Ut.xl=0,Ut.l=pt)}}else if(bt==="l"?(t._depth=Math.max(At.height>0?qt-At.left:0,Dt),Ut[bt]=t._depth-Lt):(t._depth=Math.max(At.height>0?At.right-qt:0,Dt),Ut[bt]=t._depth+Lt,Pr.reverse()),At.height>0){var Nt=At.bottom-(t._offset+t._length);Nt>0&&(Ut.yb=0,Ut.b=Nt);var er=t._offset-At.top;er>0&&(Ut.yt=1,Ut.t=er)}Ut[_]=t.anchor==="free"?t.position:t._anchorAxis.domain[Pr[0]],t.title.text!==h._dfltTitle[m]&&(Ut[bt]+=NL(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Wt={x:0,y:0,r:0,l:0,t:0,b:0},Wt[Vt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Wt[Vt]+=Dt),t.mirror===!0||t.mirror==="ticks"?Wt[_]=t._anchorAxis.domain[Pr[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Wt[_]=[t._counterDomainMin,t._counterDomainMax][Pr[1]]))}xt&&(Be=lg.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(qL(Ut,t.automargin),qL(Wt,t.automargin)),j0.autoMargin(e,$5(t),Ut),j0.autoMargin(e,XL(t),Wt),j0.autoMargin(e,jL(t),Be)}),Jr.syncOrAsync(Je)}};function qL(e,t){if(e){var r=Object.keys(LL).reduce(function(i,a){return t.indexOf(a)!==-1&&LL[a].forEach(function(s){i[s]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function pre(e,t){var r=[],i,a=function(s,l){var u=s.xbnd[l];u!==null&&r.push(Jr.extendFlat({},s,{x:u}))};if(t.length){for(i=0;ie.range[1],u=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,h=!u;if(r){var v=l?-1:1;r=r*v}if(i){var m=e.side,_=u&&(m==="top"||m==="left")||h&&(m==="bottom"||m==="right")?1:-1;i=i*_}return e._id.charAt(0)==="x"?function(T){return J0(a+e._offset+e.l2p(W5(T))+r,s+i)}:function(T){return J0(s+i,a+e._offset+e.l2p(W5(T))+r)}};function W5(e){return e.periodX!==void 0?e.periodX:e.x}function _re(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(C){return t.indexOf(C)!==-1},a=i("top"),s=i("left"),l=i("right"),u=i("bottom"),h=i("inside"),v=r!=="boundaries"&&(u||s||a||l);if(!v&&!h)return[0,0];var m=e.side,_=v?(e.tickwidth||0)/2:0,T=E2,M=e.tickfont?e.tickfont.size:12;return(u||a)&&(_+=M*Ed,T+=(e.linewidth||0)/2),(s||l)&&(_+=(e.linewidth||0)/2,T+=E2),h&&m==="top"&&(T-=M*(1-Ed)),(s||a)&&(_=-_),(m==="bottom"||m==="right")&&(T=-T),[v?_:0,h?T:0]}$t.makeTickPath=function(e,t,r,i){i||(i={});var a=i.minor;if(a&&!e.minor)return"";var s=i.len!==void 0?i.len:a?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),u=(e.linewidth||1)/2;return l==="x"?"M0,"+(t+u*r)+"v"+s*r:"M"+(t+u*r)+",0h"+s*r};$t.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",s=function(he){return i.indexOf(he)!==-1},l=s("top"),u=s("left"),h=s("right"),v=s("bottom"),m=a!=="boundaries"&&(v||u||l||h),_=s("inside"),T=i==="inside"&&e.ticks==="inside"||!_&&e.ticks==="outside"&&a!=="boundaries",M=0,C=0,E=T?e.ticklen:0;if(_?E*=-1:m&&(E=0),T&&(M+=E,r)){var L=Jr.deg2rad(r);M=E*Math.cos(L)+1,C=E*Math.sin(L)}e.showticklabels&&(T||e.showline)&&(M+=.2*e.tickfont.size),M+=(e.linewidth||1)/2*(_?-1:1);var I={labelStandoff:M,labelShift:C},O,q,z,N,H=0,U=e.side,W=e._id.charAt(0),J=e.tickangle,ee;if(W==="x")ee=!_&&U==="bottom"||_&&U==="top",N=ee?1:-1,_&&(N*=-1),O=C*N,q=t+M*N,z=ee?1:-.2,Math.abs(J)===90&&(_?z+=sg:J===-90&&U==="bottom"?z=Ed:J===90&&U==="top"?z=sg:z=.5,H=sg/2*(J/90)),I.xFn=function(he){return he.dx+O+H*he.fontSize},I.yFn=function(he){return he.dy+q+he.fontSize*z},I.anchorFn=function(he,fe){if(m){if(u)return"end";if(h)return"start"}return!Un(fe)||fe===0||fe===180?"middle":fe*N<0!==_?"end":"start"},I.heightFn=function(he,fe,Te){return fe<-60||fe>60?-.5*Te:e.side==="top"!==_?-Te:0};else if(W==="y"){if(ee=!_&&U==="left"||_&&U==="right",N=ee?1:-1,_&&(N*=-1),O=M,q=C*N,z=0,!_&&Math.abs(J)===90&&(J===-90&&U==="left"||J===90&&U==="right"?z=Ed:z=.5),_){var ie=Un(J)?+J:0;if(ie!==0){var oe=Jr.deg2rad(ie);H=Math.abs(Math.sin(oe))*Ed*N,z=0}}I.xFn=function(he){return he.dx+t-(O+he.fontSize*z)*N+H*he.fontSize},I.yFn=function(he){return he.dy+q+he.fontSize*sg},I.anchorFn=function(he,fe){return Un(fe)&&Math.abs(fe)===90?"middle":ee?"end":"start"},I.heightFn=function(he,fe,Te){return e.side==="right"&&(fe*=-1),fe<-30?-Te:fe<30?-.5*Te:0}}return I};function P2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}$t.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(t.ticks?r.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),s=r.layer.selectAll("path."+i).data(a,P2);s.exit().remove(),s.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(l){return ug.stroke(Xl.select(this),l.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(l){return ol.crispRound(e,l.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),z2(t,[BL]),s.attr("transform",r.transFn)};$t.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",a=t.minor&&t.minor.showgrid,s=a?r.vals.filter(function(I){return I.minor}):[],l=t.showgrid?r.vals.filter(function(I){return!I.minor}):[],u=r.counterAxis;if(u&&$t.shouldShowZeroLine(e,t,u))for(var h=t.tickmode==="array",v=0;v=0;C--){var E=C?T:M;if(E){var L=E.selectAll("path."+i).data(C?l:s,P2);L.exit().remove(),L.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),L.attr("transform",r.transFn).attr("d",r.path).each(function(I){return ug.stroke(Xl.select(this),I.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(I){return ol.dashStyle(I.minor?t.minor.griddash:t.griddash,I.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(I){return(I.minor?_:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&L.attr("d",r.path)}}z2(t,[Z5,Y5])}};$t.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",a=$t.shouldShowZeroLine(e,t,r.counterAxis),s=r.layer.selectAll("path."+i).data(a?[{x:0,id:t._id}]:[]);s.exit().remove(),s.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(l,u){return jte(l.id,u.id)})}),s.attr("transform",r.transFn).attr("d",r.path).call(ug.stroke,t.zerolinecolor||ug.defaultLine).style("stroke-width",ol.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),z2(t,[G5])};$t.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,a=t._id,s=t.zerolinelayer==="above traces",l=r.cls||a+"tick",u=r.vals.filter(function(me){return me.text}),h=r.labelFns,v=r.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[l],_=r.layer.selectAll("g."+l).data(t.showticklabels?u:[],P2),T=[];_.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(me){var Ce=Xl.select(this),Me=e._promises.length;Ce.call(kd.positionText,h.xFn(me),h.yFn(me)).call(ol.font,{family:me.font,size:me.fontSize,color:me.fontColor,weight:me.fontWeight,style:me.fontStyle,variant:me.fontVariant,textcase:me.fontTextcase,lineposition:me.fontLineposition,shadow:me.fontShadow}).text(me.text).call(kd.convertToTspans,e),e._promises[Me]?T.push(e._promises.pop().then(function(){M(Ce,v)})):M(Ce,v)}),z2(t,[EL]),_.exit().remove(),r.repositionOnUpdate&&_.each(function(me){Xl.select(this).select("text").call(kd.positionText,h.xFn(me),h.yFn(me))});function M(me,Ce){me.each(function(Me){var Xe=Xl.select(this),it=Xe.select(".text-math-group"),nt=h.anchorFn(Me,Ce),gt=r.transFn.call(Xe.node(),Me)+(Un(Ce)&&+Ce!=0?" rotate("+Ce+","+h.xFn(Me)+","+(h.yFn(Me)-Me.fontSize/2)+")":""),Ge=kd.lineCount(Xe),Ct=cg*Me.fontSize,lt=h.heightFn(Me,Un(Ce)?+Ce:0,(Ge-1)*Ct);if(lt&&(gt+=J0(0,lt)),it.empty()){var mt=Xe.select("text");mt.attr({transform:gt,"text-anchor":nt}),mt.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Ot=ol.bBox(it.node()).width,ft=Ot*{end:-.5,start:.5}[nt];it.attr("transform",gt+J0(ft,0))}})}t._adjustTickLabelsOverflow=function(){var me=t.ticklabeloverflow;if(!(!me||me==="allow")){var Ce=me.indexOf("hide")!==-1,Me=t._id.charAt(0)==="x",Xe=0,it=Me?e._fullLayout.width:e._fullLayout.height;if(me.indexOf("domain")!==-1){var nt=Jr.simpleMap(t.range,t.r2l);Xe=t.l2p(nt[0])+t._offset,it=t.l2p(nt[1])+t._offset}var gt=Math.min(Xe,it),Ge=Math.max(Xe,it),Ct=t.side,lt=1/0,mt=-1/0;_.each(function(De){var ye=Xl.select(this),Oe=ye.select(".text-math-group");if(Oe.empty()){var at=ol.bBox(ye.node()),Je=0;Me?(at.right>Ge||at.leftGe||at.top+(t.tickangle?0:De.fontSize/4)t["_visibleLabelMin_"+nt._id]?ye.style("display","none"):Ge.K==="tick"&&!gt&&ye.node().style.display!=="none"&&ye.style("display",null)})})})})},M(_,m+1?m:v);function C(){return T.length&&Promise.all(T)}var E=null;function L(){if(M(_,v),u.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){E=t.autotickangles[0];var me=0,Ce=[],Me,Xe=1;_.each(function(Ut){me=Math.max(me,Ut.fontSize);var Wt=t.l2p(Ut.x),Be=X5(this),ut=ol.bBox(Be.node());Xe=Math.max(Xe,kd.lineCount(Be)),Ce.push({top:0,bottom:10,height:10,left:Wt-ut.width/2,right:Wt+ut.width/2+2,width:ut.width+2})});var it=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,nt=u.length,gt=Math.abs((u[nt-1].x-u[0].x)*t._m)/(nt-1),Ge=it?gt/2:gt,Ct=it?t.ticklen:me*1.25*Xe,lt=Math.sqrt(Math.pow(Ge,2)+Math.pow(Ct,2)),mt=Ge/lt,Ot=t.autotickangles.map(function(Ut){return Ut*Math.PI/180}),ft=Ot.find(function(Ut){return Math.abs(Math.cos(Ut))<=mt});ft===void 0&&(ft=Ot.reduce(function(Ut,Wt){return Math.abs(Math.cos(Ut))ke*Te&&(oe=Te,J[W]=ee[W]=he[W])}var Se=Math.abs(oe-ie);Se-N>0?(Se-=N,N*=1+N/Se):N=0,t._id.charAt(0)!=="y"&&(N=-N),J[U]=q.p2r(q.r2p(ee[U])+H*N),q.autorange==="min"||q.autorange==="max reversed"?(J[0]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0):(q.autorange==="max"||q.autorange==="min reversed")&&(J[1]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[q._name+".range"]=J}var Ae=Jr.syncOrAsync(I);return Ae&&Ae.then&&e._promises.push(Ae),Ae};function xre(e,t,r){var i=t._id+"divider",a=r.vals,s=r.layer.selectAll("path."+i).data(a,P2);s.exit().remove(),s.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(ug.stroke,t.dividercolor).style("stroke-width",ol.crispRound(e,t.dividerwidth,1)+"px"),s.attr("transform",r.transFn).attr("d",r.path)}$t.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),a=t.side,s;if(t.anchor!=="free"?s=t._anchorAxis:i==="x"?s={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(s={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),a==="top"||a==="left")return s._offset;if(a==="bottom"||a==="right")return s._offset+s._length};function NL(e){var t=e.title.font.size,r=(e.title.text.match(kd.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Ed+r*cg):r?t*(r+1)*cg:t}function bre(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),s=t.title.font.size,l,u=(t.title.text.match(kd.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?l=t._depth+t.title.standoff+s*Ed:(t.side==="top"||t.side==="left")&&(l=t._depth+t.title.standoff+s*(sg+u*cg));else{var h=vg(t);if(t.type==="multicategory")l=t._depth;else{var v=1.5*s;h&&(v=.5*s,t.ticks==="outside"&&(v+=t.ticklen)),l=10+v+(t.linewidth?t.linewidth-1:0)}h||(a==="x"?l+=t.side==="top"?s*(t.showticklabels?1:0):s*(t.showticklabels?1.5:.5):l+=t.side==="right"?s*(t.showticklabels?1:.5):s*(t.showticklabels?.5:0))}var m=$t.getPxPosition(e,t),_,T,M;a==="x"?(T=t._offset+t._length/2,M=t.side==="top"?m-l:m+l):(M=t._offset+t._length/2,T=t.side==="right"?m+l:m-l,_={rotate:"-90",offset:0});var C;if(t.type!=="multicategory"){var E=t._selections[t._id+"tick"];if(C={selection:E,side:t.side},E&&E.node()&&E.node().parentNode){var L=ol.getTranslate(E.node().parentNode);C.offsetLeft=L.x,C.offsetTop=L.y}t.title.hasOwnProperty("standoff")&&(C.pad=0)}return t._titleStandoff=l,Ote.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:C,transform:_,attributes:{x:T,y:M,"text-anchor":"middle"}})}$t.shouldShowZeroLine=function(e,t,r){var i=Jr.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===L2)&&(WL(t,0)||!wre(e,t,r,i)||Tre(e,t))};$t.clipEnds=function(e,t){return t.filter(function(r){return WL(e,r.x)})};function WL(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=Yte:/%L/.test(t)?e>=Zte:/%[SX]/.test(t)?e>=C2:/%M/.test(t)?e>=fg:/%[HI]/.test(t)?e>=Rf:/%p/.test(t)?e>=Yh:/%[Aadejuwx]/.test(t)?e>=as:/%[UVW]/.test(t)?e>=sl:/%[Bbm]/.test(t)?e>=k2:/%[q]/.test(t)?e>=S2:/%[Yy]/.test(t)?e>=M2:!0}});var QL=de((s_e,KL)=>{"use strict";KL.exports=function(t,r,i){var a,s;if(i){var l=r==="reversed"||r==="min reversed"||r==="max reversed";a=i[l?1:0],s=i[l?0:1]}var u=t("autorangeoptions.minallowed",s===null?a:void 0),h=t("autorangeoptions.maxallowed",a===null?s:void 0);u===void 0&&t("autorangeoptions.clipmin"),h===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var t4=de((l_e,$L)=>{"use strict";var Ere=QL();$L.exports=function(t,r,i,a){var s=r._template||{},l=r.type||s.type||"-";i("minallowed"),i("maxallowed");var u=i("range");if(!u){var h;!a.noInsiderange&&l!=="log"&&(h=i("insiderange"),h&&(h[0]===null||h[1]===null)&&(r.insiderange=!1,h=void 0),h&&(u=i("range",h)))}var v=r.getAutorangeDflt(u,a),m=i("autorange",v),_;u&&(u[0]===null&&u[1]===null||(u[0]===null||u[1]===null)&&(m==="reversed"||m===!0)||u[0]!==null&&(m==="min"||m==="max reversed")||u[1]!==null&&(m==="max"||m==="min reversed"))&&(u=void 0,delete r.range,r.autorange=!0,_=!0),_||(v=r.getAutorangeDflt(u,a),m=i("autorange",v)),m&&(Ere(i,m,u),(l==="linear"||l==="-")&&i("rangemode")),r.cleanRange()}});var tD=de((u_e,eD)=>{var Lre={left:0,top:0};eD.exports=Dre;function Dre(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,a=e.clientY||0,s=Pre(t);return r[0]=i-s.left,r[1]=a-s.top,r}function Pre(e){return e===window||e===document||e===document.body?Lre:e.getBoundingClientRect()}});var r4=de((f_e,rD)=>{"use strict";var zre=Lw();function Ire(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}rD.exports=zre&&Ire()});var iD=de((c_e,aD)=>{"use strict";aD.exports=function(t,r,i,a,s){var l=(t-i)/(a-i),u=l+r/(a-i),h=(l+u)/2;return s==="left"||s==="bottom"?l:s==="center"||s==="middle"?h:s==="right"||s==="top"?u:l<2/3-h?l:u>4/3-h?u:h}});var sD=de((h_e,oD)=>{"use strict";var nD=Bt(),Rre=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];oD.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=nD.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=nD.constrain(Math.floor(r*3),0,2),Rre[r][t]}});var uD=de((v_e,lD)=>{"use strict";var Fre=jy(),qre=I_(),Nre=Uy().getGraphDiv,Bre=qy(),a4=lD.exports={};a4.wrapped=function(e,t,r){e=Nre(e),e._fullLayout&&qre.clear(e._fullLayout._uid+Bre.HOVERID),a4.raw(e,t,r)};a4.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Fre.triggerHandler(t,"plotly_beforehover",r)===!1)&&(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&a&&t.emit("plotly_unhover",{event:r,points:a}))}});var jl=de((d_e,vD)=>{"use strict";var Ore=tD(),i4=Pw(),Ure=r4(),Vre=Bt().removeElement,Hre=eo(),Ld=vD.exports={};Ld.align=iD();Ld.getCursor=sD();var cD=uD();Ld.unhover=cD.wrapped;Ld.unhoverRaw=cD.raw;Ld.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,s=t.element,l,u,h,v,m,_,T,M;r._mouseDownTime||(r._mouseDownTime=0),s.style.pointerEvents="all",s.onmousedown=L,Ure?(s._ontouchstart&&s.removeEventListener("touchstart",s._ontouchstart),s._ontouchstart=L,s.addEventListener("touchstart",L,{passive:!1})):s.ontouchstart=L;function C(q,z,N){return Math.abs(q)a&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var z;_.target===T?z=_:(z={target:T,srcElement:T,toElement:T},Object.keys(_).concat(Object.keys(_.__proto__)).forEach(N=>{var H=_[N];!z[N]&&typeof H!="function"&&(z[N]=H)})),t.clickFn&&t.clickFn(i,z),M||T.dispatchEvent(new MouseEvent("click",q))}r._dragging=!1,r._dragged=!1}};function hD(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Ld.coverSlip=hD;function fD(e){return Ore(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Wh=de((p_e,dD)=>{"use strict";dD.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var yD=de((m_e,mD)=>{"use strict";var n4=Wh(),dg="data-savedcursor",pD="!!";mD.exports=function(t,r){var i=t.attr(dg);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),s=0;s{"use strict";var o4=qo(),Gre=kf();gD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Gre.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:o4({editType:"legend"}),grouptitlefont:o4({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:o4({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var mg=de(pg=>{"use strict";pg.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};pg.isVertical=function(t){return t.orientation!=="h"};pg.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};pg.getId=function(t){return t._id||"legend"}});var u4=de((__e,_D)=>{"use strict";var I2=la(),ll=Bt(),Zre=Pi(),Yre=ys(),Wre=s4(),Xre=C0(),l4=mg();function jre(e,t,r,i,a){var s=t[e]||{},l=Zre.newContainer(r,e);function u(me,Ce){return ll.coerce(s,l,Wre,me,Ce)}var h=ll.coerceFont(u,"font",r.font);u("bgcolor",r.paper_bgcolor),u("bordercolor");var v=u("visible");if(!v)return;var m,_=function(me,Ce){var Me=m._input,Xe=m;return ll.coerce(Me,Xe,Yre,me,Ce)},T=r.font||{},M=ll.coerceFont(u,"grouptitlefont",T,{overrideDflt:{size:Math.round(T.size*1.1)}}),C=0,E=!1,L="normal",I=(r.shapes||[]).filter(function(me){return me.showlegend});function O(me){return I2.traceIs(me,"pie-like")&&me._length!=null&&(Array.isArray(me.legend)||Array.isArray(me.showlegend))}i.filter(O).forEach(function(me){me.visible&&C++;for(var Ce=0;Ceme.legend.length)for(var Xe=me.legend.length;Xe(e==="legend"?1:0));if(H===!1&&(r[e]=void 0),!(H===!1&&!s.uirevision)&&(u("uirevision",r.uirevision),H!==!1)){u("borderwidth");var U=u("orientation"),W=u("yref"),J=u("xref"),ee=U==="h",ie=W==="paper",oe=J==="paper",he,fe,Te,ke="left";ee?(he=0,I2.getComponentMethod("rangeslider","isVisible")(t.xaxis)?ie?(fe=1.1,Te="bottom"):(fe=1,Te="top"):ie?(fe=-.1,Te="top"):(fe=0,Te="bottom")):(fe=1,Te="auto",oe?he=1.02:(he=1,ke="right")),ll.coerce(s,l,{x:{valType:"number",editType:"legend",min:oe?-2:0,max:oe?3:1,dflt:he}},"x"),ll.coerce(s,l,{y:{valType:"number",editType:"legend",min:ie?-2:0,max:ie?3:1,dflt:fe}},"y"),u("traceorder",L),l4.isGrouped(r[e])&&u("tracegroupgap"),u("entrywidth"),u("entrywidthmode"),u("indentation"),u("itemsizing"),u("itemwidth"),u("itemclick"),u("itemdoubleclick"),u("groupclick"),u("xanchor",ke),u("yanchor",Te),u("maxheight"),u("valign"),ll.noneOrAll(s,l,["x","y"]);var Se=u("title.text");if(Se){u("title.side",ee?"left":"top");var Ae=ll.extendFlat({},h,{size:ll.bigFont(h.size)});ll.coerceFont(u,"title.font",Ae);let me=a>1;u("titleclick",me?"toggle":!1),u("titledoubleclick",me?"toggleothers":!1)}}}_D.exports=function(t,r,i){var a,s=i.slice(),l=r.shapes;if(l)for(a=0;a{"use strict";var Xh=la(),f4=Bt(),Jre=f4.pushUnique,Kre=mg(),xD=!0;c4.handleItemClick=function(t,r,i,a){var s=r._fullLayout;if(r._dragged||r._editing)return;var l=t.data()[0][0];if(l.groupTitle&&l.noClick)return;var u=i.groupclick;a==="toggle"&&i.itemdoubleclick==="toggleothers"&&xD&&r.data&&r._context.showTips&&(f4.notifier(f4._(r,"Double-click on legend to isolate one trace"),"long",r),xD=!1);var h=u==="togglegroup",v=s.hiddenlabels?s.hiddenlabels.slice():[],m=r._fullData;let _=(s.shapes||[]).filter(xt=>xt.showlegend||xt.legendgroup);var T=m.concat(_),M=l.trace;M._isShape&&(M=M._fullInput);var C=M.legendgroup,E,L,I,O,q,z,N={},H=[],U=[],W=[];function J(xt,bt){var Vt=H.indexOf(xt),qt=N.visible;return qt||(qt=N.visible=[]),H.indexOf(xt)===-1&&(H.push(xt),Vt=H.length-1),qt[Vt]=bt,Vt}var ee=(s.shapes||[]).map(function(xt){return xt._input}),ie=!1;function oe(xt,bt){ee[xt].visible=bt,ie=!0}function he(xt,bt){if(!(l.groupTitle&&!h)){var Vt=xt._fullInput||xt,qt=Vt._isShape,Dt=Vt.index;Dt===void 0&&(Dt=Vt._index);var At=Vt.visible===!1?!1:bt;qt?oe(Dt,At):J(Dt,At)}}var fe=M.legend,Te=M._fullInput,ke=Te&&Te._isShape;if(!ke&&Xh.traceIs(M,"pie-like")){var Se=l.label,Ae=v.indexOf(Se);if(a==="toggle")Ae===-1?v.push(Se):v.splice(Ae,1);else if(a==="toggleothers"){var me=Ae!==-1,Ce=[];for(E=0;EI.showlegend||I.legendgroup),h=s.concat(u);function v(I){return(I.legend||"legend")===l}var m,_;if(i==="toggle")m=!h.some(function(O){return v(O)&&O.visible===!0}),_=!1;else{let I=h.some(function(O){return!v(O)&&O.visible===!0&&O.showlegend!==!1});m=!0,_=!I}let T={visible:[]},M=[],C=(a.shapes||[]).map(function(I){return I._input});for(var E=!1,L=0;L{"use strict";bD.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var AD=de((w_e,TD)=>{"use strict";var{isArrayOrTypedArray:d4}=Fs(),wD=la(),p4=mg();TD.exports=function(t,r,i){var a=r._inHover,s=p4.isGrouped(r),l=p4.isReversed(r),u={},h=[],v=!1,m={},_=0,T=0,M,C;function E(Ce,Me,Xe){if(r.visible!==!1&&!(i&&Ce!==r._id))if(Me===""||!p4.isGrouped(r)){var it="~~i"+_;h.push(it),u[it]=[Xe],_++}else h.indexOf(Me)===-1?(h.push(Me),v=!0,u[Me]=[Xe]):u[Me].push(Xe)}for(M=0;Mhe&&(ie=he)}J[M][0]._groupMinRank=ie,J[M][0]._preGroupSort=M}var fe=function(Ce,Me){return Ce[0]._groupMinRank-Me[0]._groupMinRank||Ce[0]._preGroupSort-Me[0]._preGroupSort},Te=function(Ce,Me){var Xe=d4(Ce.trace.legendrank)?Ce.trace.legendrank[Ce.i]:Ce.trace.legendrank,it=d4(Me.trace.legendrank)?Me.trace.legendrank[Me.i]:Me.trace.legendrank;return Xe-it||Ce._preSort-Me._preSort};for(J.forEach(function(Ce,Me){Ce[0]._preGroupSort=Me}),J.sort(fe),M=0;M{"use strict";var R2=Bt();function MD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Dd.formatPiePercent=function(t,r){var i=MD((t*100).toPrecision(3));return R2.numSeparate(i,r)+"%"};Dd.formatPieValue=function(t,r){var i=MD(t.toPrecision(10));return R2.numSeparate(i,r)};Dd.getFirstFilled=function(t,r){if(R2.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var Qre=_i(),$re=Ba();SD.exports=function(t,r,i,a){var s=i.marker.pattern;s&&s.shape?Qre.pointStyle(t,i,a,r):$re.fill(t,r.color)}});var DD=de((M_e,LD)=>{"use strict";var CD=Ba(),ED=m4().castOption,eae=kD();LD.exports=function(t,r,i,a){var s=i.marker.line,l=ED(s.color,r.pts)||CD.defaultLine,u=ED(s.width,r.pts)||0;t.call(eae,r,i,a).style("stroke-width",u).call(CD.stroke,l)}});var x4=de((S_e,qD)=>{"use strict";var is=Va(),y4=la(),Oo=Bt(),PD=Oo.strTranslate,ul=_i(),Jl=Ba(),g4=Lf().extractOpts,F2=rs(),tae=DD(),rae=m4().castOption,aae=v4(),zD=12,ID=5,Pd=2,iae=10,$0=5;qD.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var s=i.itemsizing==="constant",l=i.itemwidth,u=(l+aae.itemGap*2)/2,h=PD(u,0),v=function(U,W,J,ee){var ie;if(U+1)ie=U;else if(W&&W.width>0)ie=W.width;else return 0;return s?ee:Math.min(ie,J)};t.each(function(U){var W=is.select(this),J=Oo.ensureSingle(W,"g","layers");J.style("opacity",U[0].trace.opacity);var ee=i.indentation,ie=i.valign,oe=U[0].lineHeight,he=U[0].height;if(ie==="middle"&&ee===0||!oe||!he)J.attr("transform",null);else{var fe={top:1,bottom:-1}[ie],Te=fe*(.5*(oe-he+3))||0,ke=i.indentation;J.attr("transform",PD(ke,Te))}var Se=J.selectAll("g.legendfill").data([U]);Se.enter().append("g").classed("legendfill",!0);var Ae=J.selectAll("g.legendlines").data([U]);Ae.enter().append("g").classed("legendlines",!0);var me=J.selectAll("g.legendsymbols").data([U]);me.enter().append("g").classed("legendsymbols",!0),me.selectAll("g.legendpoints").data([U]).enter().append("g").classed("legendpoints",!0)}).each(H).each(T).each(C).each(M).each(L).each(z).each(q).each(m).each(_).each(I).each(O);function m(U){var W=RD(U),J=W.showFill,ee=W.showLine,ie=W.showGradientLine,oe=W.showGradientFill,he=W.anyFill,fe=W.anyLine,Te=U[0],ke=Te.trace,Se,Ae,me=g4(ke),Ce=me.colorscale,Me=me.reversescale,Xe=function(mt){if(mt.size())if(J)ul.fillGroupStyle(mt,r,!0);else{var Ot="legendfill-"+ke.uid;ul.gradient(mt,r,Ot,_4(Me),Ce,"fill")}},it=function(mt){if(mt.size()){var Ot="legendline-"+ke.uid;ul.lineGroupStyle(mt),ul.gradient(mt,r,Ot,_4(Me),Ce,"stroke")}},nt=F2.hasMarkers(ke)||!he?"M5,0":fe?"M5,-2":"M5,-3",gt=is.select(this),Ge=gt.select(".legendfill").selectAll("path").data(J||oe?[U]:[]);if(Ge.enter().append("path").classed("js-fill",!0),Ge.exit().remove(),Ge.attr("d",nt+"h"+l+"v6h-"+l+"z").call(Xe),ee||ie){var Ct=v(void 0,ke.line,iae,ID);Ae=Oo.minExtend(ke,{line:{width:Ct}}),Se=[Oo.minExtend(Te,{trace:Ae})]}var lt=gt.select(".legendlines").selectAll("path").data(ee||ie?[Se]:[]);lt.enter().append("path").classed("js-line",!0),lt.exit().remove(),lt.attr("d",nt+(ie?"l"+l+",0.0001":"h"+l)).call(ee?ul.lineGroupStyle:it)}function _(U){var W=RD(U),J=W.anyFill,ee=W.anyLine,ie=W.showLine,oe=W.showMarker,he=U[0],fe=he.trace,Te=!oe&&!ee&&!J&&F2.hasText(fe),ke,Se;function Ae(Ge,Ct,lt,mt){var Ot=Oo.nestedProperty(fe,Ge).get(),ft=Oo.isArrayOrTypedArray(Ot)&&Ct?Ct(Ot):Ot;if(s&&ft&&mt!==void 0&&(ft=mt),lt){if(ftlt[1])return lt[1]}return ft}function me(Ge){return he._distinct&&he.index&&Ge[he.index]?Ge[he.index]:Ge[0]}if(oe||Te||ie){var Ce={},Me={};if(oe){Ce.mc=Ae("marker.color",me),Ce.mx=Ae("marker.symbol",me),Ce.mo=Ae("marker.opacity",Oo.mean,[.2,1]),Ce.mlc=Ae("marker.line.color",me),Ce.mlw=Ae("marker.line.width",Oo.mean,[0,5],Pd),Ce.mld=fe._isShape?"solid":Ae("marker.line.dash",me),Me.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Xe=Ae("marker.size",Oo.mean,[2,16],zD);Ce.ms=Xe,Me.marker.size=Xe}ie&&(Me.line={width:Ae("line.width",me,[0,10],ID)}),Te&&(Ce.tx="Aa",Ce.tp=Ae("textposition",me),Ce.ts=10,Ce.tc=Ae("textfont.color",me),Ce.tf=Ae("textfont.family",me),Ce.tw=Ae("textfont.weight",me),Ce.ty=Ae("textfont.style",me),Ce.tv=Ae("textfont.variant",me),Ce.tC=Ae("textfont.textcase",me),Ce.tE=Ae("textfont.lineposition",me),Ce.tS=Ae("textfont.shadow",me)),ke=[Oo.minExtend(he,Ce)],Se=Oo.minExtend(fe,Me),Se.selectedpoints=null,Se.texttemplate=null}var it=is.select(this).select("g.legendpoints"),nt=it.selectAll("path.scatterpts").data(oe?ke:[]);nt.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",h),nt.exit().remove(),nt.call(ul.pointStyle,Se,r),oe&&(ke[0].mrc=3);var gt=it.selectAll("g.pointtext").data(Te?ke:[]);gt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",h),gt.exit().remove(),gt.selectAll("text").call(ul.textPointStyle,Se,r)}function T(U){var W=U[0].trace,J=W.type==="waterfall";if(U[0]._distinct&&J){var ee=U[0].trace[U[0].dir].marker;return U[0].mc=ee.color,U[0].mlw=ee.line.width,U[0].mlc=ee.line.color,E(U,this,"waterfall")}var ie=[];W.visible&&J&&(ie=U[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var oe=is.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ie);oe.enter().append("path").classed("legendwaterfall",!0).attr("transform",h).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(he){var fe=is.select(this),Te=W[he[0]].marker,ke=v(void 0,Te.line,$0,Pd);fe.attr("d",he[1]).style("stroke-width",ke+"px").call(Jl.fill,Te.color),ke&&fe.call(Jl.stroke,Te.line.color)})}function M(U){E(U,this)}function C(U){E(U,this,"funnel")}function E(U,W,J){var ee=U[0].trace,ie=ee.marker||{},oe=ie.line||{},he=ie.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",fe=J?ee.visible&&ee.type===J:y4.traceIs(ee,"bar"),Te=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(fe?[U]:[]);Te.enter().append("path").classed("legend"+J,!0).attr("d",he).attr("transform",h),Te.exit().remove(),Te.each(function(ke){var Se=is.select(this),Ae=ke[0],me=v(Ae.mlw,ie.line,$0,Pd);Se.style("stroke-width",me+"px");var Ce=Ae.mcc;if(!i._inHover&&"mc"in Ae){var Me=g4(ie),Xe=Me.mid;Xe===void 0&&(Xe=(Me.max+Me.min)/2),Ce=ul.tryColorscale(ie,"")(Xe)}var it=Ce||Ae.mc||ie.color,nt=ie.pattern,gt=ul.getPatternAttr,Ge=nt&&(gt(nt.shape,0,"")||gt(nt.path,0,""));if(Ge){var Ct=gt(nt.bgcolor,0,null),lt=gt(nt.fgcolor,0,null),mt=nt.fgopacity,Ot=FD(nt.size,8,10),ft=FD(nt.solidity,.5,1),pe="legend-"+ee.uid;Se.call(ul.pattern,"legend",r,pe,Ge,Ot,ft,Ce,nt.fillmode,Ct,lt,mt)}else Se.call(Jl.fill,it);me&&Jl.stroke(Se,Ae.mlc||oe.color)})}function L(U){var W=U[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendbox").data(W.visible&&y4.traceIs(W,"box-violin")?[U]:[]);J.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),J.exit().remove(),J.each(function(){var ee=is.select(this);if((W.boxpoints==="all"||W.points==="all")&&Jl.opacity(W.fillcolor)===0&&Jl.opacity((W.line||{}).color)===0){var ie=Oo.minExtend(W,{marker:{size:s?zD:Oo.constrain(W.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});J.call(ul.pointStyle,ie,r)}else{var oe=v(void 0,W.line,$0,Pd);ee.style("stroke-width",oe+"px").call(Jl.fill,W.fillcolor),oe&&Jl.stroke(ee,W.line.color)}})}function I(U){var W=U[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(W.visible&&W.type==="candlestick"?[U,U]:[]);J.enter().append("path").classed("legendcandle",!0).attr("d",function(ee,ie){return ie?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(ee,ie){var oe=is.select(this),he=W[ie?"increasing":"decreasing"],fe=v(void 0,he.line,$0,Pd);oe.style("stroke-width",fe+"px").call(Jl.fill,he.fillcolor),fe&&Jl.stroke(oe,he.line.color)})}function O(U){var W=U[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(W.visible&&W.type==="ohlc"?[U,U]:[]);J.enter().append("path").classed("legendohlc",!0).attr("d",function(ee,ie){return ie?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(ee,ie){var oe=is.select(this),he=W[ie?"increasing":"decreasing"],fe=v(void 0,he.line,$0,Pd);oe.style("fill","none").call(ul.dashLine,he.line.dash,fe),fe&&Jl.stroke(oe,he.line.color)})}function q(U){N(U,this,"pie")}function z(U){N(U,this,"funnelarea")}function N(U,W,J){var ee=U[0],ie=ee.trace,oe=J?ie.visible&&ie.type===J:y4.traceIs(ie,J),he=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(oe?[U]:[]);if(he.enter().append("path").classed("legend"+J,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),he.exit().remove(),he.size()){var fe=ie.marker||{},Te=v(rae(fe.line.width,ee.pts),fe.line,$0,Pd),ke="pieLike",Se=Oo.minExtend(ie,{marker:{line:{width:Te}}},ke),Ae=Oo.minExtend(ee,{trace:Se},ke);tae(he,Ae,Se,r)}}function H(U){var W=U[0].trace,J,ee=[];if(W.visible)switch(W.type){case"histogram2d":case"heatmap":ee=[["M-15,-2V4H15V-2Z"]],J=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":ee=[["M-6,-6V6H6V-6Z"]],J=!0;break;case"densitymapbox":case"densitymap":ee=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],J="radial";break;case"cone":ee=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],J=!1;break;case"streamtube":ee=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],J=!1;break;case"surface":ee=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],J=!0;break;case"mesh3d":ee=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!1;break;case"volume":ee=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!0;break;case"isosurface":ee=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],J=!1;break}var ie=is.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(ee);ie.enter().append("path").classed("legend3dandfriends",!0).attr("transform",h).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(oe,he){var fe=is.select(this),Te=g4(W),ke=Te.colorscale,Se=Te.reversescale,Ae=function(Xe){if(Xe.size()){var it="legendfill-"+W.uid;ul.gradient(Xe,r,it,_4(Se,J==="radial"),ke,"fill")}},me;if(ke){if(!J){var Me=ke.length;me=he===0?ke[Se?Me-1:0][1]:he===1?ke[Se?0:Me-1][1]:ke[Math.floor((Me-1)/2)][1]}}else{var Ce=W.vertexcolor||W.facecolor||W.color;me=Oo.isArrayOrTypedArray(Ce)?Ce[he]||Ce[0]:Ce}fe.attr("d",oe[0]),me?fe.call(Jl.fill,me):fe.call(Ae)})}};function _4(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function RD(e){var t=e[0].trace,r=t.contours,i=F2.hasLines(t),a=F2.hasMarkers(t),s=t.visible&&t.fill&&t.fill!=="none",l=!1,u=!1;if(r){var h=r.coloring;h==="lines"?l=!0:i=h==="none"||h==="heatmap"||r.showlines,r.type==="constraint"?s=r._operation!=="=":(h==="fill"||h==="heatmap")&&(u=!0)}return{showMarker:a,showLine:i,showFill:s,showGradientLine:l,showGradientFill:u,anyLine:i||l,anyFill:s||u}}function FD(e,t,r){return e&&Oo.isArrayOrTypedArray(e)?t:e>r?r:e}});var A4=de((k_e,YD)=>{"use strict";var gs=Va(),Dn=Bt(),w4=to(),zd=la(),B2=jy(),b4=jl(),Pn=_i(),yg=Ba(),Id=ro(),ND=h4().handleItemClick,BD=h4().handleTitleClick,Vn=v4(),T4=No(),GD=T4.LINE_SPACING,tm=T4.FROM_TL,OD=T4.FROM_BR,UD=AD(),nae=x4(),rm=mg(),em=1,oae=/^legend[0-9]*$/;YD.exports=function(t,r){if(r)VD(t,r);else{var i=t._fullLayout,a=i._legends,s=i._infolayer.selectAll('[class^="legend"]');s.each(function(){var v=gs.select(this),m=v.attr("class"),_=m.split(" ")[0];_.match(oae)&&a.indexOf(_)===-1&&v.remove()});for(var l=0;l1)}var C=i.hiddenlabels||[];if(!u&&(!i.showlegend||!h.length))return l.selectAll("."+a).remove(),i._topdefs.select("#"+s).remove(),w4.autoMargin(e,a);var E=Dn.ensureSingle(l,"g",a,function(W){u||W.attr("pointer-events","all")}),L=Dn.ensureSingleById(i._topdefs,"clipPath",s,function(W){W.append("rect")}),I=Dn.ensureSingle(E,"rect","bg",function(W){W.attr("shape-rendering","crispEdges")});I.call(yg.stroke,r.bordercolor).call(yg.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var O=Dn.ensureSingle(E,"g","scrollbox"),q=r.title;r._titleWidth=0,r._titleHeight=0;var z;q.text?(z=Dn.ensureSingle(O,"text",a+"titletext"),z.attr("text-anchor","start").call(Pn.font,q.font).text(q.text),N2(z,O,e,r,em),!u&&(r.titleclick||r.titledoubleclick)&&fae(O,e,r,a)):(O.selectAll("."+a+"titletext").remove(),O.selectAll("."+a+"titletoggle").remove());var N=Dn.ensureSingle(E,"rect","scrollbar",function(W){W.attr(Vn.scrollBarEnterAttrs).call(yg.fill,Vn.scrollBarColor)}),H=O.selectAll("g.groups").data(h);H.enter().append("g").attr("class","groups"),H.exit().remove();var U=H.selectAll("g.traces").data(Dn.identity);U.enter().append("g").attr("class","traces"),U.exit().remove(),U.style("opacity",function(W){let J=W[0],ee=J.trace;if(J.groupTitle){let ie=ee.legendgroup,oe=(i.shapes||[]).filter(function(fe){return fe.showlegend});return e._fullData.concat(oe).some(function(fe){return fe.legendgroup===ie&&(fe.legend||"legend")===a&&fe.visible===!0})?1:.5}return zd.traceIs(ee,"pie-like")?C.indexOf(W[0].label)!==-1?.5:1:ee.visible==="legendonly"?.5:1}).each(function(){gs.select(this).call(lae,e,r)}).call(nae,e,r).each(function(W){u||W[0].groupTitle&&r.groupclick==="toggleitem"||gs.select(this).call(uae,e,a)}),Dn.syncOrAsync([w4.previousPromises,function(){return vae(e,H,U,r,O)},function(){var W=i._size,J=r.borderwidth,ee=r.xref==="paper",ie=r.yref==="paper";if(q.text){let Oe=(i.shapes||[]).filter(function(Je){return Je.showlegend}),at=e._fullData.concat(Oe).some(function(Je){let Pt=Je.legend||"legend";var xt=Array.isArray(Pt)?Pt.includes(a):Pt===a;return xt&&Je.visible===!0});z.style("opacity",at?1:.5)}if(!u){var oe,he;ee?oe=W.l+W.w*r.x-tm[O2(r)]*r._width:oe=i.width*r.x-tm[O2(r)]*r._width,ie?he=W.t+W.h*(1-r.y)-tm[U2(r)]*r._effHeight:he=i.height*(1-r.y)-tm[U2(r)]*r._effHeight;var fe=dae(e,a,oe,he);if(fe)return;if(i.margin.autoexpand){var Te=oe,ke=he;oe=ee?Dn.constrain(oe,0,i.width-r._width):Te,he=ie?Dn.constrain(he,0,i.height-r._effHeight):ke,oe!==Te&&Dn.log("Constrain "+a+".x to make legend fit inside graph"),he!==ke&&Dn.log("Constrain "+a+".y to make legend fit inside graph")}Pn.setTranslate(E,oe,he)}if(N.on(".drag",null),E.on("wheel",null),u||r._height<=r._maxHeight||e._context.staticPlot){var Se=r._effHeight;u&&(Se=r._height),I.attr({width:r._width-J,height:Se-J,x:J/2,y:J/2}),Pn.setTranslate(O,0,0),L.select("rect").attr({width:r._width-2*J,height:Se-2*J,x:J,y:J}),Pn.setClipUrl(O,s,e),Pn.setRect(N,0,0,0,0),delete r._scrollY}else{var Ae=Math.max(Vn.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),me=r._effHeight-Ae-2*Vn.scrollBarMargin,Ce=r._height-r._effHeight,Me=me/Ce,Xe=Math.min(r._scrollY||0,Ce);I.attr({width:r._width-2*J+Vn.scrollBarWidth+Vn.scrollBarMargin,height:r._effHeight-J,x:J/2,y:J/2}),L.select("rect").attr({width:r._width-2*J+Vn.scrollBarWidth+Vn.scrollBarMargin,height:r._effHeight-2*J,x:J,y:J+Xe}),Pn.setClipUrl(O,s,e),Ot(Xe,Ae,Me),E.on("wheel",function(){Xe=Dn.constrain(r._scrollY+gs.event.deltaY/Ce*me,0,Ce),Ot(Xe,Ae,Me),Xe!==0&&Xe!==Ce&&gs.event.preventDefault()});var it,nt,gt,Ge=function(Oe,at,Je){var Pt=(Je-at)/Me+Oe;return Dn.constrain(Pt,0,Ce)},Ct=function(Oe,at,Je){var Pt=(at-Je)/Me+Oe;return Dn.constrain(Pt,0,Ce)},lt=gs.behavior.drag().on("dragstart",function(){var Oe=gs.event.sourceEvent;Oe.type==="touchstart"?it=Oe.changedTouches[0].clientY:it=Oe.clientY,gt=Xe}).on("drag",function(){var Oe=gs.event.sourceEvent;Oe.buttons===2||Oe.ctrlKey||(Oe.type==="touchmove"?nt=Oe.changedTouches[0].clientY:nt=Oe.clientY,Xe=Ge(gt,it,nt),Ot(Xe,Ae,Me))});N.call(lt);var mt=gs.behavior.drag().on("dragstart",function(){var Oe=gs.event.sourceEvent;Oe.type==="touchstart"&&(it=Oe.changedTouches[0].clientY,gt=Xe)}).on("drag",function(){var Oe=gs.event.sourceEvent;Oe.type==="touchmove"&&(nt=Oe.changedTouches[0].clientY,Xe=Ct(gt,it,nt),Ot(Xe,Ae,Me))});O.call(mt)}function Ot(Oe,at,Je){r._scrollY=e._fullLayout[a]._scrollY=Oe,Pn.setTranslate(O,0,-Oe),Pn.setRect(N,r._width,Vn.scrollBarMargin+Oe*Je,Vn.scrollBarWidth,at),L.select("rect").attr("y",J+Oe)}if(e._context.edits.legendPosition){var ft,pe,De,ye;E.classed("cursor-move",!0),b4.init({element:E.node(),gd:e,prepFn:function(Oe){if(Oe.target!==N.node()){var at=Pn.getTranslate(E);De=at.x,ye=at.y}},moveFn:function(Oe,at){if(De!==void 0&&ye!==void 0){var Je=De+Oe,Pt=ye+at;Pn.setTranslate(E,Je,Pt),ft=b4.align(Je,r._width,W.l,W.l+W.w,r.xanchor),pe=b4.align(Pt+r._height,-r._height,W.t+W.h,W.t,r.yanchor)}},doneFn:function(){if(ft!==void 0&&pe!==void 0){var Oe={};Oe[a+".x"]=ft,Oe[a+".y"]=pe,zd.call("_guiRelayout",e,Oe)}},clickFn:function(Oe,at){var Je=l.selectAll("g.traces").filter(function(){var Pt=this.getBoundingClientRect();return at.clientX>=Pt.left&&at.clientX<=Pt.right&&at.clientY>=Pt.top&&at.clientY<=Pt.bottom});Je.size()>0&&ZD(e,r,Je,Oe,at)}})}}],e)}}function q2(e,t,r){var i=e[0],a=i.width,s=t.entrywidthmode,l=i.trace.legendwidth||t.entrywidth;return s==="fraction"?t._maxWidth*l:r+(l||a)}function ZD(e,t,r,i,a){var s=e._fullLayout,l=r.data()[0][0].trace,u=t.itemclick,h=t.itemdoubleclick,v={event:a,node:r.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:s};l._group&&(v.group=l._group),zd.traceIs(l,"pie-like")&&(v.label=r.datum()[0].label);var m=B2.triggerHandler(e,"plotly_legendclick",v);if(i===1){if(m===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&u&&ND(r,e,t,u)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var _=B2.triggerHandler(e,"plotly_legenddoubleclick",v);_!==!1&&m!==!1&&h&&ND(r,e,t,h)}}function lae(e,t,r){var i=rm.getId(r),a=e.data()[0][0],s=a.trace,l=zd.traceIs(s,"pie-like"),u=!r._inHover&&t._context.edits.legendText&&!l,h=r._maxNameLength,v,m;a.groupTitle?(v=a.groupTitle.text,m=a.groupTitle.font):(m=r.font,r.entries?v=a.text:(v=l?a.label:s.name,s._meta&&(v=Dn.templateString(v,s._meta))));var _=Dn.ensureSingle(e,"text",i+"text");_.attr("text-anchor","start").call(Pn.font,m).text(u?HD(v,h):v);var T=r.indentation+r.itemwidth+Vn.itemGap*2;Id.positionText(_,T,0),u?_.call(Id.makeEditable,{gd:t,text:v}).call(N2,e,t,r).on("edit",function(M){this.text(HD(M,h)).call(N2,e,t,r);var C=a.trace._fullInput||{},E={};return E.name=M,C._isShape?zd.call("_guiRelayout",t,"shapes["+s.index+"].name",E.name):zd.call("_guiRestyle",t,E,s.index)}):N2(_,e,t,r)}function HD(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function uae(e,t,r){var i=t._context.doubleClickDelay,a,s=1,l=Dn.ensureSingle(e,"rect",r+"toggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(yg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimei&&(s=Math.max(s-1,1)),ZD(t,u,e,s,gs.event)}}))}function fae(e,t,r,i){if(t._fullData.some(function(v){let m=v.legend||"legend";return(Array.isArray(m)?m.includes(i):m===i)&&zd.traceIs(v,"pie-like")}))return;let s=t._context.doubleClickDelay;var l,u=1;let h=Dn.ensureSingle(e,"rect",i+"titletoggle",function(v){t._context.staticPlot||v.style("cursor","pointer").attr("pointer-events","all"),v.call(yg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(h.on("mousedown",function(){l=new Date().getTime(),l-t._legendMouseDownTimes&&(u=Math.max(u-1,1));let v={event:gs.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(u===1&&r.titleclick){if(B2.triggerHandler(t,"plotly_legendtitleclick",v)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&BD(t,r,r.titleclick)},s)}else u===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,B2.triggerHandler(t,"plotly_legendtitledoubleclick",v)!==!1&&r.titledoubleclick&&BD(t,r,r.titledoubleclick))}))}function N2(e,t,r,i,a){i._inHover&&e.attr("data-notex",!0),Id.convertToTspans(e,r,function(){cae(t,r,i,a)})}function cae(e,t,r,i){var a=e.data()[0][0],s=a&&a.trace.showlegend;if(Array.isArray(s)&&(s=s[a.i]!==!1),!r._inHover&&a&&!s){e.remove();return}var l=e.select("g[class*=math-group]"),u=l.node(),h=rm.getId(r);r||(r=t._fullLayout[h]);var v=r.borderwidth,m;i===em?m=r.title.font:a.groupTitle?m=a.groupTitle.font:m=r.font;var _=m.size*GD,T,M;if(u){var C=Pn.bBox(u);T=C.height,M=C.width,i===em?Pn.setTranslate(l,v,v+T*.75):Pn.setTranslate(l,0,T*.25)}else{var E="."+h+(i===em?"title":"")+"text",L=e.select(E),I=Id.lineCount(L),O=L.node();if(T=_*I,M=O?Pn.bBox(O).width:0,i===em)r.title.side==="left"&&(M+=Vn.itemGap*2),Id.positionText(L,v+Vn.titlePad,v+_);else{var q=Vn.itemGap*2+r.indentation+r.itemwidth;a.groupTitle&&(q=Vn.itemGap,M-=r.indentation+r.itemwidth),Id.positionText(L,q,-_*((I-1)/2-.3))}}i===em?(r._titleWidth=M,r._titleHeight=T):(a.lineHeight=_,a.height=Math.max(T,16)+3,a.width=M)}function hae(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function vae(e,t,r,i,a){var s=e._fullLayout,l=rm.getId(i);i||(i=s[l]);var u=s._size,h=rm.isVertical(i),v=rm.isGrouped(i),m=i.entrywidthmode==="fraction",_=i.borderwidth,T=2*_,M=Vn.itemGap,C=i.indentation+i.itemwidth+M*2,E=2*(_+M),L=U2(i),I=i.y<0||i.y===0&&L==="top",O=i.y>1||i.y===1&&L==="bottom",q=i.tracegroupgap,z={};let{orientation:N,yref:H}=i,{maxheight:U}=i,W=I||O||N!=="v"||H!=="paper";U||(U=W?.5:1);let J=W?s.height:u.h;i._maxHeight=Math.max(U>1?U:U*J,30);var ee=0;i._width=0,i._height=0;var ie=hae(i);if(h)r.each(function(Oe){var at=Oe[0].height;Pn.setTranslate(this,_+ie[0],_+ie[1]+i._height+at/2+M),i._height+=at,i._width=Math.max(i._width,Oe[0].width)}),ee=C+i._width,i._width+=M+C+T,i._height+=E,v&&(t.each(function(Oe,at){Pn.setTranslate(this,0,at*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var oe=O2(i),he=i.x<0||i.x===0&&oe==="right",fe=i.x>1||i.x===1&&oe==="left",Te=O||I,ke=s.width/2;i._maxWidth=Math.max(he?Te&&oe==="left"?u.l+u.w:ke:fe?Te&&oe==="right"?u.r+u.w:ke:u.w,2*C);var Se=0,Ae=0;r.each(function(Oe){var at=q2(Oe,i,C);Se=Math.max(Se,at),Ae+=at}),ee=null;var me=0;if(v){var Ce=0,Me=0,Xe=0;t.each(function(){var Oe=0,at=0;gs.select(this).selectAll("g.traces").each(function(Pt){var xt=q2(Pt,i,C),bt=Pt[0].height;Pn.setTranslate(this,ie[0],ie[1]+_+M+bt/2+at),at+=bt,Oe=Math.max(Oe,xt),z[Pt[0].trace.legendgroup]=Oe});var Je=Oe+M;Me>0&&Je+_+Me>i._maxWidth?(me=Math.max(me,Me),Me=0,Xe+=Ce+q,Ce=at):Ce=Math.max(Ce,at),Pn.setTranslate(this,Me,Xe),Me+=Je}),i._width=Math.max(me,Me)+_,i._height=Xe+Ce+E}else{var it=r.size(),nt=Ae+T+(it-1)*M=i._maxWidth&&(me=Math.max(me,lt),Ge=0,Ct+=gt,i._height+=gt,gt=0),Pn.setTranslate(this,ie[0]+_+Ge,ie[1]+_+Ct+at/2+M),lt=Ge+Je+M,Ge+=Pt,gt=Math.max(gt,at)}),nt?(i._width=Ge+T,i._height=gt+E):(i._width=Math.max(me,lt)+T,i._height+=gt+E)}}i._width=Math.ceil(Math.max(i._width+ie[0],i._titleWidth+2*(_+Vn.titlePad))),i._height=Math.ceil(Math.max(i._height+ie[1],i._titleHeight+2*(_+Vn.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var mt=e._context.edits,Ot=mt.legendText||mt.legendPosition;r.each(function(Oe){var at=gs.select(this).select("."+l+"toggle"),Je=Oe[0].height,Pt=Oe[0].trace.legendgroup,xt=q2(Oe,i,C);v&&Pt!==""&&(xt=z[Pt]);var bt=Ot?C:ee||xt;!h&&!m&&(bt+=M/2),Pn.setRect(at,0,-Je/2,bt,Je)});var ft=a.select("."+l+"titletext");ft.node()&&sae(ft,i,_);var pe=a.select("."+l+"titletoggle");if(pe.size()&&ft.node()){var De=ft.attr("x")||0,ye=Vn.titlePad;Pn.setRect(pe,De-ye,_,i._titleWidth+2*ye,i._titleHeight+2*ye)}}function dae(e,t,r,i){var a=e._fullLayout,s=a[t],l=O2(s),u=U2(s),h=s.xref==="paper",v=s.yref==="paper";e._fullLayout._reservedMargin[t]={};var m=s.y<.5?"b":"t",_=s.x<.5?"l":"r",T={r:a.width-r,l:r+s._width,b:a.height-i,t:i+s._effHeight};if(h&&v)return w4.autoMargin(e,t,{x:s.x,y:s.y,l:s._width*tm[l],r:s._width*OD[l],b:s._effHeight*OD[u],t:s._effHeight*tm[u]});h?e._fullLayout._reservedMargin[t][m]=T[m]:v||s.orientation==="v"?e._fullLayout._reservedMargin[t][_]=T[_]:e._fullLayout._reservedMargin[t][m]=T[m]}function O2(e){return Dn.isRightAnchor(e)?"right":Dn.isCenterAnchor(e)?"center":"left"}function U2(e){return Dn.isBottomAnchor(e)?"bottom":Dn.isMiddleAnchor(e)?"middle":"top"}});var C4=de(k4=>{"use strict";var Rd=Va(),Ec=La(),WD=Sf(),cn=Bt(),pae=cn.pushUnique,M4=cn.strTranslate,mae=cn.strRotate,yae=jy(),Kl=ro(),gae=yD(),qf=_i(),io=Ba(),V2=jl(),Nf=Xi(),_ae=eo().zindexSeparator,im=la(),Ou=Cc(),Fd=qy(),xae=u4(),bae=A4(),tP=Fd.YANGLE,S4=Math.PI*tP/180,wae=1/Math.sin(S4),Tae=Math.cos(S4),Aae=Math.sin(S4),ji=Fd.HOVERARROWSIZE,Ia=Fd.HOVERTEXTPAD,XD={box:!0,ohlc:!0,violin:!0,candlestick:!0},Mae={scatter:!0,scattergl:!0,splom:!0};function jD(e,t){return e.distance-t.distance}k4.hover=function(t,r,i,a){t=cn.getGraphDiv(t);var s=r.target;cn.throttle(t._fullLayout._uid+Fd.HOVERID,Fd.HOVERMINTIME,function(){Sae(t,r,i,a,s)})};k4.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,s=oP(a),l=sP(a),u=t.map(function(L){var I=L._x0||L.x0||L.x||0,O=L._x1||L.x1||L.x||0,q=L._y0||L.y0||L.y||0,z=L._y1||L.y1||L.y||0,N=L.eventData;if(N){var H=Math.min(I,O),U=Math.max(I,O),W=Math.min(q,z),J=Math.max(q,z),ee=L.trace;if(im.traceIs(ee,"gl3d")){var ie=a._fullLayout[ee.scene]._scene.container,oe=ie.offsetLeft,he=ie.offsetTop;H+=oe,U+=oe,W+=he,J+=he}N.bbox={x0:H+l,x1:U+l,y0:W+s,y1:J+s},N.xPixel=(I+O)/2,N.yPixel=(q+z)/2,r.inOut_bbox&&r.inOut_bbox.push(N.bbox)}else N=!1;return{color:L.color||io.defaultLine,x0:L.x0||L.x||0,x1:L.x1||L.x||0,y0:L.y0||L.y||0,y1:L.y1||L.y||0,xLabel:L.xLabel,yLabel:L.yLabel,zLabel:L.zLabel,text:L.text,name:L.name,idealAlign:L.idealAlign,borderColor:L.borderColor,fontFamily:L.fontFamily,fontSize:L.fontSize,fontColor:L.fontColor,fontWeight:L.fontWeight,fontStyle:L.fontStyle,fontVariant:L.fontVariant,nameLength:L.nameLength,textAlign:L.textAlign,trace:L.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:L.hovertemplate||!1,hovertemplateLabels:L.hovertemplateLabels||!1,eventData:N}}),h=!1,v=aP(u,{gd:a,hovermode:"closest",rotateLabels:h,bgColor:r.bgColor||io.background,container:Rd.select(r.container),outerContainer:r.outerContainer||r.container}),m=v.hoverLabels,_=5,T=0,M=0;m.sort(function(L,I){return L.y0-I.y0}).each(function(L,I){var O=L.y0-L.by/2;O-_U[0]._length||ye<0||ye>W[0]._length)return V2.unhoverRaw(e,t)}if(t.pointerX=De+U[0]._offset,t.pointerY=ye+W[0]._offset,"xval"in t?ke=Ou.flat(s,t.xval):ke=Ou.p2c(U,De),"yval"in t?Se=Ou.flat(s,t.yval):Se=Ou.p2c(W,ye),!Ec(ke[0])||!Ec(Se[0]))return cn.warn("Fx.hover failed",t,e),V2.unhoverRaw(e,t)}u.clickanywhere&&(e._hoverXVals=ke,e._hoverYVals=Se,e._hoverXAxes=U,e._hoverYAxes=W);var Je=1/0;function Pt(ir,ii){for(me=0;melt&&(fe.splice(0,lt),Je=fe[0].distance),_&&he!==0&&fe.length===0){Ct.distance=he,Ct.index=!1;var ue=Me._module.hoverPoints(Ct,gt,Ge,"closest",{hoverLayer:u._hoverlayer});if(ue&&(ue=ue.filter(function(Mt){return Mt.spikeDistance<=he})),ue&&ue.length){var Le,Ne=ue.filter(function(Mt){return Mt.xa.showspikes&&Mt.xa.spikesnap!=="hovered data"});if(Ne.length){var rt=Ne[0];Ec(rt.x0)&&Ec(rt.y0)&&(Le=bt(rt),(!mt.vLinePoint||mt.vLinePoint.spikeDistance>Le.spikeDistance)&&(mt.vLinePoint=Le))}var Ye=ue.filter(function(Mt){return Mt.ya.showspikes&&Mt.ya.spikesnap!=="hovered data"});if(Ye.length){var yt=Ye[0];Ec(yt.x0)&&Ec(yt.y0)&&(Le=bt(yt),(!mt.hLinePoint||mt.hLinePoint.spikeDistance>Le.spikeDistance)&&(mt.hLinePoint=Le))}}}}}Pt();function xt(ir,ii,Wr){for(var le=null,te=1/0,se,ue=0;ueir.trace.index===pt.trace.index):fe=[pt];var Nt=fe.length,er=eP("x",pt,u),Ht=eP("y",pt,u);Pt(er,Ht);var Gt=[],hr={},yr=0,mr=function(ir){var ii=XD[ir.trace.type]?rP(ir):ir.trace.index;if(!hr[ii])yr++,hr[ii]=yr,Gt.push(ir);else{var Wr=hr[ii]-1,le=Gt[Wr];Wr>0&&Math.abs(ir.distance)Nt-1;Et--)mr(fe[Et]);fe=Gt,At()}var Fe=e._hoverdata,Ue=[],wt=oP(e),Tt=sP(e);for(let ir of fe){var vr=Ou.makeEventData(ir,ir.trace,ir.cd);if(ir.hovertemplate!==!1){var Mr=!1;ir.cd[ir.index]&&ir.cd[ir.index].ht&&(Mr=ir.cd[ir.index].ht),ir.hovertemplate=Mr||ir.trace.hovertemplate||!1}if(ir.xa&&ir.ya){var Tr=ir.x0+ir.xa._offset,Gr=ir.x1+ir.xa._offset,pa=ir.y0+ir.ya._offset,Aa=ir.y1+ir.ya._offset,ai=Math.min(Tr,Gr),bi=Math.max(Tr,Gr),hi=Math.min(pa,Aa),Hi=Math.max(pa,Aa);vr.bbox={x0:ai+Tt,x1:bi+Tt,y0:hi+wt,y1:Hi+wt},vr.xPixel=(Tr+Gr)/2,vr.yPixel=(pa+Aa)/2}ir.eventData=[vr],Ue.push(vr)}e._hoverdata=Ue;var Ii=T==="y"&&(Te.length>1||fe.length>1)||T==="closest"&&Ot&&fe.length>1,_n=io.combine(u.plot_bgcolor||io.background,u.paper_bgcolor),an=aP(fe,{gd:e,hovermode:T,rotateLabels:Ii,bgColor:_n,container:u._hoverlayer,outerContainer:u._paper.node(),commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance}),Gi=an.hoverLabels;if(Ou.isUnifiedHover(T)||(Cae(Gi,Ii,u,an.commonLabelBoundingBox),nP(Gi,Ii,u._invScaleX,u._invScaleY)),a&&a.tagName){var ma=im.getComponentMethod("annotations","hasClickToShow")(e,Ue);gae(Rd.select(a),ma?"pointer":"")}var nn=Dae(e,t,Fe);if(!a||i||!nn&&!u.hoveranywhere)return;Fe&&nn&&e.emit("plotly_unhover",{event:t,points:Fe}),Bi(e._hoverdata);function Bi(ir){e.emit("plotly_hover",{event:t,points:ir,xaxes:U,yaxes:W,xvals:ke,yvals:Se})}}function rP(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var kae=/([\s\S]*)<\/extra>/;function aP(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,s=t.rotateLabels,l=t.bgColor,u=t.container,h=t.outerContainer,v=t.commonLabelOpts||{};if(e.length===0)return[[]];var m=t.fontFamily||Fd.HOVERFONT,_=t.fontSize||Fd.HOVERFONTSIZE,T=t.fontWeight||i.font.weight,M=t.fontStyle||i.font.style,C=t.fontVariant||i.font.variant,E=t.fontTextcase||i.font.textcase,L=t.fontLineposition||i.font.lineposition,I=t.fontShadow||i.font.shadow,O=e[0],q=O.xa,z=O.ya,N=a.charAt(0),H=N+"Label",U=O[H];if(U===void 0&&q.type==="multicategory")for(var W=0;Wi.width-Ue&&(wt=i.width-Ue),vt.attr("d","M"+(mr-wt)+",0L"+(mr-wt+ji)+","+Fe+ji+"H"+Ue+"v"+Fe+(Ia*2+yr.height)+"H"+-Ue+"V"+Fe+ji+"H"+(mr-wt-ji)+"Z"),mr=wt,me.minX=mr-Ue,me.maxX=mr+Ue,q.side==="top"?(me.minY=Et-(Ia*2+yr.height),me.maxY=Et-Ia):(me.minY=Et+Ia,me.maxY=Et+(Ia*2+yr.height))}else{var Tt,vr,Mr;z.side==="right"?(Tt="start",vr=1,Mr="",mr=q._offset+q._length):(Tt="end",vr=-1,Mr="-",mr=q._offset),Et=z._offset+(O.y0+O.y1)/2,pt.attr("text-anchor",Tt),vt.attr("d","M0,0L"+Mr+ji+","+ji+"V"+(Ia+yr.height/2)+"h"+Mr+(Ia*2+yr.width)+"V-"+(Ia+yr.height/2)+"H"+Mr+ji+"V-"+ji+"Z"),me.minY=Et-(Ia+yr.height/2),me.maxY=Et+(Ia+yr.height/2),z.side==="right"?(me.minX=mr+ji,me.maxX=mr+ji+(Ia*2+yr.width)):(me.minX=mr-ji-(Ia*2+yr.width),me.maxX=mr-ji);var Tr=yr.height/2,Gr=ee-yr.top-Tr,pa="clip"+i._uid+"commonlabel"+z._id,Aa;if(mrvt.hoverinfo!=="none");if(Lt.length===0)return[];var Ce=i.hoverlabel,Me=Ce.font,Xe=Lt[0],it=((a==="x unified"?Xe.xa:Xe.ya).unifiedhovertitle||{}).text,nt=it?cn.hovertemplateString({data:a==="x unified"?[{xa:Xe.xa,x:Xe.xVal}]:[{ya:Xe.ya,y:Xe.yVal}],fallback:Xe.trace.hovertemplatefallback,locale:i._d3locale,template:it}):U,gt={showlegend:!0,legend:{title:{text:nt,font:Me},font:Me,bgcolor:Ce.bgcolor,bordercolor:Ce.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},Ge={font:Me};xae(gt,Ge,r._fullData);var Ct=Ge.legend;Ct.entries=[];for(var lt=0;lt=0?ut=At:Ut+at=0?ut=Ut:Wt+at=0?sr=qt:Dt+Je=0?sr=Dt:Be+Je=0,(Lt.idealAlign==="top"||!hi)&&Hi?(Mr-=Gr/2,Lt.anchor="end"):hi?(Mr+=Gr/2,Lt.anchor="start"):Lt.anchor="middle",Lt.crossPos=Mr;else{if(Lt.pos=Mr,hi=vr+Tr/2+bi<=ie,Hi=vr-Tr/2-bi>=0,(Lt.idealAlign==="left"||!hi)&&Hi)vr-=Tr/2,Lt.anchor="end";else if(hi)vr+=Tr/2,Lt.anchor="start";else{Lt.anchor="middle";var Ii=bi/2,_n=vr+Ii-ie,an=vr-Ii;_n>0&&(vr-=_n),an<0&&(vr+=-an)}Lt.crossPos=vr}Et.attr("text-anchor",Lt.anchor),Ue&&Fe.attr("text-anchor",Lt.anchor),vt.attr("transform",M4(vr,Mr)+(s?mae(tP):""))}),{hoverLabels:Pr,commonLabelBoundingBox:me}}function JD(e,t,r,i,a,s){var _,T;var l="",u="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=cn.templateString(e.name,e.trace._meta)),l=$D(e.name,e.nameLength));var h=r.charAt(0),v=h==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(u+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(u+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(u+=(u?"z: ":"")+e.zLabel)):t&&e[h+"Label"]===a?u=e[v+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(u=e.yLabel):e.yLabel===void 0?u=e.xLabel:u="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(u+=(u?"
":"")+e.text),e.extraText!==void 0&&(u+=(u?"
":"")+e.extraText),s&&u===""&&!e.hovertemplate&&(l===""&&s.remove(),u=l),(T=(_=e.trace)==null?void 0:_.hoverlabel)!=null&&T.split&&(e.hovertemplate="");let{hovertemplate:m=!1}=e;if(m){let M=e.hovertemplateLabels||e;e[h+"Label"]!==a&&(M[h+"other"]=M[h+"Val"],M[h+"otherLabel"]=M[h+"Label"]),u=cn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:M,locale:i._d3locale,template:m}),u=u.replace(kae,(C,E)=>(l=$D(E,e.nameLength),""))}return[u,l]}function Cae(e,t,r,i){var a=t?"xa":"ya",s=t?"ya":"xa",l=0,u=1,h=e.size(),v=new Array(h),m=0,_=i.minX,T=i.maxX,M=i.minY,C=i.maxY,E=function(ke){return ke*r._invScaleX},L=function(ke){return ke*r._invScaleY};e.each(function(ke){var Se=ke[a],Ae=ke[s],me=Se._id.charAt(0)==="x",Ce=Se.range;m===0&&Ce&&Ce[0]>Ce[1]!==me&&(u=-1);var Me=0,Xe=me?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var it=iP(ke,t),nt=ke.anchor,gt=nt==="end"?-1:1,Ge,Ct;if(nt==="middle")Ge=ke.crossPos+(me?L(it.y-ke.by/2):E(ke.bx/2+ke.tx2width/2)),Ct=Ge+(me?L(ke.by):E(ke.bx));else if(me)Ge=ke.crossPos+L(ji+it.y)-L(ke.by/2-ji),Ct=Ge+L(ke.by);else{var lt=E(gt*ji+it.x),mt=lt+E(gt*ke.bx);Ge=ke.crossPos+Math.min(lt,mt),Ct=ke.crossPos+Math.max(lt,mt)}me?M!==void 0&&C!==void 0&&Math.min(Ct,C)-Math.max(Ge,M)>1&&(Ae.side==="left"?(Me=Ae._mainLinePosition,Xe=r.width):Xe=Ae._mainLinePosition):_!==void 0&&T!==void 0&&Math.min(Ct,T)-Math.max(Ge,_)>1&&(Ae.side==="top"?(Me=Ae._mainLinePosition,Xe=r.height):Xe=Ae._mainLinePosition)}v[m++]=[{datum:ke,traceIndex:ke.trace.index,dp:0,pos:ke.pos,posref:ke.posref,size:ke.by*(me?wae:1)/2,pmin:Me,pmax:Xe}]}),v.sort(function(ke,Se){return ke[0].posref-Se[0].posref||u*(Se[0].traceIndex-ke[0].traceIndex)});var I,O,q,z,N,H,U;function W(ke){var Se=ke[0],Ae=ke[ke.length-1];if(O=Se.pmin-Se.pos-Se.dp+Se.size,q=Ae.pos+Ae.dp+Ae.size-Se.pmax,O>.01){for(N=ke.length-1;N>=0;N--)ke[N].dp+=O;I=!1}if(!(q<.01)){if(O<-.01){for(N=ke.length-1;N>=0;N--)ke[N].dp-=q;I=!1}if(I){var me=0;for(z=0;zSe.pmax&&me++;for(z=ke.length-1;z>=0&&!(me<=0);z--)H=ke[z],H.pos>Se.pmax-1&&(H.del=!0,me--);for(z=0;z=0;N--)ke[N].dp-=q;for(z=ke.length-1;z>=0&&!(me<=0);z--)H=ke[z],H.pos+H.dp+H.size>Se.pmax&&(H.del=!0,me--)}}}for(;!I&&l<=h;){for(l++,I=!0,z=0;z.01){for(N=ee.length-1;N>=0;N--)ee[N].dp+=O;for(J.push.apply(J,ee),v.splice(z+1,1),U=0,N=J.length-1;N>=0;N--)U+=J[N].dp;for(q=U/J.length,N=J.length-1;N>=0;N--)J[N].dp-=q;I=!1}else z++}v.forEach(W)}for(z=v.length-1;z>=0;z--){var he=v[z];for(N=he.length-1;N>=0;N--){var fe=he[N],Te=fe.datum;Te.offset=fe.dp,Te.del=fe.del}}}function iP(e,t){var r=0,i=e.offset;return t&&(i*=-Aae,r=e.offset*Tae),{x:r,y:i}}function Eae(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ji+Ia),i=r+t*(e.txwidth+Ia),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+Ia),{alignShift:t,textShiftX:r,text2ShiftX:i}}function nP(e,t,r,i){var a=function(l){return l*r},s=function(l){return l*i};e.each(function(l){var u=Rd.select(this);if(l.del)return u.remove();var h=u.select("text.nums"),v=l.anchor,m=v==="end"?-1:1,_=Eae(l),T=iP(l,t),M=T.x,C=T.y,E=v==="middle",L="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,I;E?I="M-"+a(l.bx/2+l.tx2width/2)+","+s(C-l.by/2)+"h"+a(l.bx)+"v"+s(l.by)+"h-"+a(l.bx)+"Z":L?I="M0,0L"+a(m*ji+M)+","+s(ji+C)+"v"+s(l.by/2-ji)+"h"+a(m*l.bx)+"v-"+s(l.by)+"H"+a(m*ji+M)+"V"+s(C-ji)+"Z":I="M"+a(m*ji+M)+","+s(C-l.by/2)+"h"+a(m*l.bx)+"v"+s(l.by)+"h"+a(-m*l.bx)+"Z",u.select("path").attr("d",I);var O=M+_.textShiftX,q=C+l.ty0-l.by/2+Ia,z=l.textAlign||"auto";z!=="auto"&&(z==="left"&&v!=="start"?(h.attr("text-anchor","start"),O=E?-l.bx/2-l.tx2width/2+Ia:-l.bx-Ia):z==="right"&&v!=="end"&&(h.attr("text-anchor","end"),O=E?l.bx/2-l.tx2width/2-Ia:l.bx+Ia)),h.call(Kl.positionText,a(O),s(q)),l.tx2width&&(u.select("text.name").call(Kl.positionText,a(_.text2ShiftX+_.alignShift*Ia+M),s(C+l.ty0-l.by/2+Ia)),u.select("rect").call(qf.setRect,a(_.text2ShiftX+(_.alignShift-1)*l.tx2width/2+M),s(C-l.by/2-1),a(l.tx2width),s(l.by+2)))})}function Lae(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],s=e.cd[r]||{};function l(T){return T||Ec(T)&&T===0}var u=Array.isArray(r)?function(T,M){var C=cn.castOption(a,r,T);return l(C)?C:cn.extractOption({},i,"",M)}:function(T,M){return cn.extractOption(s,i,T,M)};function h(T,M,C){var E=u(M,C);l(E)&&(e[T]=E)}if(h("hoverinfo","hi","hoverinfo"),h("bgcolor","hbg","hoverlabel.bgcolor"),h("borderColor","hbc","hoverlabel.bordercolor"),h("fontFamily","htf","hoverlabel.font.family"),h("fontSize","hts","hoverlabel.font.size"),h("fontColor","htc","hoverlabel.font.color"),h("fontWeight","htw","hoverlabel.font.weight"),h("fontStyle","hty","hoverlabel.font.style"),h("fontVariant","htv","hoverlabel.font.variant"),h("nameLength","hnl","hoverlabel.namelength"),h("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=cn.constrain(e.x0,0,e.xa._length),e.x1=cn.constrain(e.x1,0,e.xa._length),e.y0=cn.constrain(e.y0,0,e.ya._length),e.y1=cn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Nf.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Nf.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var v=Nf.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+v+" / -"+Nf.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+v,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var m=Nf.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+m+" / -"+Nf.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+m,t==="y"&&(e.distance+=1)}var _=e.hoverinfo||e.trace.hoverinfo;return _&&_!=="all"&&(_=Array.isArray(_)?_:_.split("+"),_.indexOf("x")===-1&&(e.xLabel=void 0),_.indexOf("y")===-1&&(e.yLabel=void 0),_.indexOf("z")===-1&&(e.zLabel=void 0),_.indexOf("text")===-1&&(e.text=void 0),_.indexOf("name")===-1&&(e.name=void 0)),e}function KD(e,t,r){var i=r.container,a=r.fullLayout,s=a._size,l=r.event,u=!!t.hLinePoint,h=!!t.vLinePoint,v,m;if(i.selectAll(".spikeline").remove(),!!(h||u)){var _=io.combine(a.plot_bgcolor,a.paper_bgcolor);if(u){var T=t.hLinePoint,M,C;v=T&&T.xa,m=T&&T.ya;var E=m.spikesnap;E==="cursor"?(M=l.pointerX,C=l.pointerY):(M=v._offset+T.x,C=m._offset+T.y);var L=WD.readability(T.color,_)<1.5?io.contrast(_):T.color,I=m.spikemode,O=m.spikethickness,q=m.spikecolor||L,z=Nf.getPxPosition(e,m),N,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(N=z,H=M),I.indexOf("across")!==-1){var U=m._counterDomainMin,W=m._counterDomainMax;m.anchor==="free"&&(U=Math.min(U,m.position),W=Math.max(W,m.position)),N=s.l+U*s.w,H=s.l+W*s.w}i.insert("line",":first-child").attr({x1:N,x2:H,y1:C,y2:C,"stroke-width":O,stroke:q,"stroke-dasharray":qf.dashStyle(m.spikedash,O)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:N,x2:H,y1:C,y2:C,"stroke-width":O+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:z+(m.side!=="right"?O:-O),cy:C,r:O,fill:q}).classed("spikeline",!0)}if(h){var J=t.vLinePoint,ee,ie;v=J&&J.xa,m=J&&J.ya;var oe=v.spikesnap;oe==="cursor"?(ee=l.pointerX,ie=l.pointerY):(ee=v._offset+J.x,ie=m._offset+J.y);var he=WD.readability(J.color,_)<1.5?io.contrast(_):J.color,fe=v.spikemode,Te=v.spikethickness,ke=v.spikecolor||he,Se=Nf.getPxPosition(e,v),Ae,me;if(fe.indexOf("toaxis")!==-1||fe.indexOf("across")!==-1){if(fe.indexOf("toaxis")!==-1&&(Ae=Se,me=ie),fe.indexOf("across")!==-1){var Ce=v._counterDomainMin,Me=v._counterDomainMax;v.anchor==="free"&&(Ce=Math.min(Ce,v.position),Me=Math.max(Me,v.position)),Ae=s.t+(1-Me)*s.h,me=s.t+(1-Ce)*s.h}i.insert("line",":first-child").attr({x1:ee,x2:ee,y1:Ae,y2:me,"stroke-width":Te,stroke:ke,"stroke-dasharray":qf.dashStyle(v.spikedash,Te)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:ee,x2:ee,y1:Ae,y2:me,"stroke-width":Te+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}fe.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:ee,cy:Se-(v.side!=="top"?Te:-Te),r:Te,fill:ke}).classed("spikeline",!0)}}}function Dae(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var a=r[i],s=e._hoverdata[i];if(a.curveNumber!==s.curveNumber||String(a.pointNumber)!==String(s.pointNumber)||String(a.pointNumbers)!==String(s.pointNumbers)||a.binNumber!==s.binNumber)return!0}return!1}function QD(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function $D(e,t){return Kl.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Pae(e,t){for(var r=t.charAt(0),i=[],a=[],s=[],l=0;le.offsetTop+e.clientTop,sP=e=>e.offsetLeft+e.clientLeft;function am(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),a=i.left,s=i.top,l=a+i.width,u=s+i.height,h=cn.apply3DTransform(r._invTransform)(a,s),v=cn.apply3DTransform(r._invTransform)(l,u),m=h[0],_=h[1],T=v[0],M=v[1];return{x:m,y:_,width:T-m,height:M-_,top:Math.min(_,M),left:Math.min(m,T),right:Math.max(m,T),bottom:Math.max(_,M)}}});var H2=de((E_e,lP)=>{"use strict";var zae=Bt(),Iae=Ba(),Rae=Cc().isUnifiedHover;lP.exports=function(t,r,i,a){a=a||{};var s=r.legend;function l(u){a.font[u]||(a.font[u]=s?r.legend.font[u]:r.font[u])}r&&Rae(r.hovermode)&&(a.font||(a.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(a.bgcolor||(a.bgcolor=Iae.combine(r.legend.bgcolor,r.paper_bgcolor)),a.bordercolor||(a.bordercolor=r.legend.bordercolor)):a.bgcolor||(a.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",a.bgcolor),i("hoverlabel.bordercolor",a.bordercolor),i("hoverlabel.namelength",a.namelength),i("hoverlabel.showarrow",a.showarrow),zae.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var fP=de((L_e,uP)=>{"use strict";var Fae=Bt(),qae=H2(),Nae=T0();uP.exports=function(t,r){function i(a,s){return Fae.coerce(t,r,Nae,a,s)}qae(t,r,i)}});var vP=de((D_e,hP)=>{"use strict";var cP=Bt(),Bae=d_(),Oae=H2();hP.exports=function(t,r,i,a){function s(u,h){return cP.coerce(t,r,Bae,u,h)}var l=cP.extendFlat({},a.hoverlabel);r.hovertemplate&&(l.namelength=-1),Oae(t,r,s,l)}});var E4=de((P_e,dP)=>{"use strict";var Uae=Bt(),Vae=T0();dP.exports=function(t,r){function i(a,s){return r[a]!==void 0?r[a]:Uae.coerce(t,r,Vae,a,s)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var yP=de((z_e,mP)=>{"use strict";var pP=Bt(),Hae=T0(),Gae=E4(),Zae=H2();mP.exports=function(t,r){function i(m,_){return pP.coerce(t,r,Hae,m,_)}var a=Gae(t,r);a&&(i("hoverdistance"),i("spikedistance"),a.indexOf("unified")!==-1&&i("hoversort"));var s=i("dragmode");s==="select"&&i("selectdirection");var l=r._has("mapbox"),u=r._has("map"),h=r._has("geo"),v=r._basePlotModules.length;r.dragmode==="zoom"&&((l||u||h)&&v===1||(l||u)&&h&&v===2)&&(r.dragmode="pan"),Zae(t,r,i),pP.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var xP=de((I_e,_P)=>{"use strict";var L4=Bt(),gP=la();_P.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(v){return function(m){return L4.coerceHoverinfo({hoverinfo:m},{_module:v._module},i)}}for(var s=0;s{"use strict";var Wae=la(),Xae=C4().hover;bP.exports=function(t,r,i){var a=Wae.getComponentMethod("annotations","onClick")(t,t._hoverdata),s=t._fullLayout;i!==void 0&&Xae(t,r,i,!0);function l(){var h,v,m,_;var u={points:t._hoverdata,event:r};(h=u.xaxes)!=null||(u.xaxes=t._hoverXAxes),(v=u.yaxes)!=null||(u.yaxes=t._hoverYAxes),(m=u.xvals)!=null||(u.xvals=t._hoverXVals),(_=u.yvals)!=null||(u.yvals=t._hoverYVals),t.emit("plotly_click",u)}(t._hoverdata||s.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),a&&a.then?a.then(l):l(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Uu=de((F_e,MP)=>{"use strict";var jae=Va(),G2=Bt(),Jae=jl(),gg=Cc(),TP=T0(),AP=C4();MP.exports={moduleType:"component",name:"fx",constants:qy(),schema:{layout:TP},attributes:d_(),layoutAttributes:TP,supplyLayoutGlobalDefaults:fP(),supplyDefaults:vP(),supplyLayoutDefaults:yP(),calc:xP(),getDistanceFunction:gg.getDistanceFunction,getClosest:gg.getClosest,inbox:gg.inbox,quadrature:gg.quadrature,appendArrayPointValue:gg.appendArrayPointValue,castHoverOption:Qae,castHoverinfo:$ae,hover:AP.hover,unhover:Jae.unhover,loneHover:AP.loneHover,loneUnhover:Kae,click:wP()};function Kae(e){var t=G2.isD3Selection(e)?e:jae.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Qae(e,t,r){return G2.castOption(e,t,"hoverlabel."+r)}function $ae(e,t,r){function i(a){return G2.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return G2.castOption(e,r,"hoverinfo",i)}});var qd=de(Lc=>{"use strict";Lc.selectMode=function(e){return e==="lasso"||e==="select"};Lc.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Lc.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Lc.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Lc.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Lc.selectingOrDrawing=function(e){return Lc.freeMode(e)||Lc.rectMode(e)}});var Z2=de((N_e,SP)=>{"use strict";SP.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var Y2=de((B_e,kP)=>{"use strict";kP.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var X2=de((O_e,CP)=>{"use strict";var W2=32;CP.exports={CIRCLE_SIDES:W2,i000:0,i090:W2/4,i180:W2/2,i270:W2/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var j2=de((U_e,LP)=>{"use strict";var eie=Bt().strTranslate;function EP(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function tie(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function rie(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return EP(e,r[t])}}function aie(e){return eie(e.xaxis._offset,e.yaxis._offset)}LP.exports={p2r:EP,r2p:tie,axValue:rie,getTransform:aie}});var jh=de(Dc=>{"use strict";var iie=m5(),zP=X2(),nm=zP.CIRCLE_SIDES,D4=zP.SQRT2,IP=j2(),DP=IP.p2r,PP=IP.r2p,nie=[0,3,4,5,6,1,2],oie=[0,3,4,1,2];Dc.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&h{"use strict";var RP=jn(),OP=qd(),sie=OP.drawMode,lie=OP.openMode,om=X2(),FP=om.i000,qP=om.i090,NP=om.i180,BP=om.i270,uie=om.cos45,fie=om.sin45,UP=j2(),K2=UP.p2r,Jh=UP.r2p,cie=Bh(),hie=cie.clearOutline,Q2=jh(),vie=Q2.readPaths,die=Q2.writePaths,pie=Q2.ellipseOver,mie=Q2.fixDatesForPaths;function yie(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,a=t.isActiveShape,s=t.dragmode,l=(i.layout||{}).shapes||[];if(!sie(s)&&a!==void 0){var u=i._fullLayout._activeShapeIndex;if(u{"use strict";var gie=qd(),_ie=gie.selectMode,xie=Bh(),bie=xie.clearOutline,P4=jh(),wie=P4.readPaths,Tie=P4.writePaths,Aie=P4.fixDatesForPaths;GP.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var a=i.getAttribute("d"),s=r.gd,l=s._fullLayout.newselection,u=r.plotinfo,h=u.xaxis,v=u.yaxis,m=r.isActiveSelection,_=r.dragmode,T=(s.layout||{}).selections||[];if(!_ie(_)&&m!==void 0){var M=s._fullLayout._activeSelectionIndex;if(M{"use strict";ZP.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Qh=de(vo=>{"use strict";var Of=xg(),YP=Bt(),Kh=Xi();vo.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};vo.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};vo.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};vo.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};vo.extractPathCoords=function(e,t,r){var i=[],a=e.match(Of.segmentRE);return a.forEach(function(s){var l=t[s.charAt(0)].drawn;if(l!==void 0){var u=s.slice(1).match(Of.paramRE);if(!(!u||u.length{let u=l.charAt(0),h=a[u].drawn!==void 0;return s+(h?1:0)},0)};vo.getDataToPixel=function(e,t,r,i,a){var s=e._fullLayout._size,l;if(t)if(a==="domain")l=function(h){return t._length*(i?1-h:h)+t._offset};else{var u=vo.shapePositionToRange(t);l=function(h){var v=Bf(t,r);return t._offset+t.r2p(u(h,!0))+v},t.type==="date"&&(l=vo.decodeDate(l))}else i?l=function(h){return s.t+s.h*(1-h)}:l=function(h){return s.l+s.w*h};return l};vo.getPixelToData=function(e,t,r,i){var a=e._fullLayout._size,s;if(t)if(i==="domain")s=function(u){var h=(u-t._offset)/t._length;return r?1-h:h};else{var l=vo.rangeToShapePosition(t);s=function(u){return l(t.p2r(u-t._offset))}}else r?s=function(u){return 1-(u-a.t)/a.h}:s=function(u){return(u-a.l)/a.w};return s};vo.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};vo.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},i=e._fullLayout._plots[r.xref+r.yref],a=!!i;return a?i._hadPlotinfo=!0:(i={},r.xref&&r.xref!=="paper"&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(i.yaxis=e._fullLayout[r.yref+"axis"])),i.xsizemode=r.xsizemode,i.ysizemode=r.ysizemode,i.xanchor=r.xanchor,i.yanchor=r.yanchor,{options:r,plotinfo:i}};vo.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},i=e._fullLayout._plots[r.xref+r.yref],a=!!i;return a?i._hadPlotinfo=!0:(i={},r.xref&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(i.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:i}};vo.getPathString=function(e,t){let r=t.type,i=Kh.getRefType(t.xref),a=Kh.getRefType(t.yref),s=e._fullLayout._size;var l,u,h,v,m,_,T,M,C,E,L,I;function O(ee,ie,oe,he){var fe;if(ee)if(ie==="domain")he?fe=function(Te){return ee._offset+ee._length*(1-Te)}:fe=function(Te){return ee._offset+ee._length*Te};else{let Te=vo.shapePositionToRange(ee);fe=function(ke){return ee._offset+ee.r2p(Te(ke,!0))},oe==="path"&&ee.type==="date"&&(fe=vo.decodeDate(fe))}else he?fe=function(Te){return s.t+s.h*(1-Te)}:fe=function(Te){return s.l+s.w*Te};return fe}if(i==="array"?(T=[],l=t.xref.map(function(ee){return Kh.getFromId(e,ee)}),T=t.xref.map(function(ee,ie){return O(l[ie],Kh.getRefType(ee),r,!1)})):(l=Kh.getFromId(e,t.xref),T=O(l,i,r,!1)),a==="array"?(M=[],u=t.yref.map(function(ee){return Kh.getFromId(e,ee)}),M=t.yref.map(function(ee,ie){return O(u[ie],Kh.getRefType(ee),r,!0)})):(u=Kh.getFromId(e,t.yref),M=O(u,a,r,!0)),r==="path")return Mie(t,T,M);if(i==="array")h=Bf(l[0],t.x0shift),v=Bf(l[1],t.x1shift),C=T[0](t.x0)+h,E=T[1](t.x1)+v;else if(h=Bf(l,t.x0shift),v=Bf(l,t.x1shift),t.xsizemode==="pixel"){let ee=T(t.xanchor);C=ee+t.x0+h,E=ee+t.x1+v}else C=T(t.x0)+h,E=T(t.x1)+v;if(a==="array")m=Bf(u[0],t.y0shift),_=Bf(u[1],t.y1shift),L=M[0](t.y0)+m,I=M[1](t.y1)+_;else if(m=Bf(u,t.y0shift),_=Bf(u,t.y1shift),t.ysizemode==="pixel"){let ee=M(t.yanchor);L=ee-t.y0+m,I=ee-t.y1+_}else L=M(t.y0)+m,I=M(t.y1)+_;if(r==="line")return"M"+C+","+L+"L"+E+","+I;if(r==="rect")return"M"+C+","+L+"H"+E+"V"+I+"H"+C+"Z";var q=(C+E)/2,z=(L+I)/2,N=Math.abs(q-C),H=Math.abs(z-L),U="A"+N+","+H,W=q+N+","+z,J=q+","+(z-H);return"M"+W+U+" 0 1,1 "+J+U+" 0 0,1 "+W+"Z"};function Mie(e,t,r){let i=e.path,a=e.xsizemode,s=e.ysizemode,l=e.xanchor,u=e.yanchor,h=Array.isArray(e.xref),v=Array.isArray(e.yref);var m=0,_=0;return i.replace(Of.segmentRE,function(T){var M=0,C=T.charAt(0),E=Of.paramIsX[C],L=Of.paramIsY[C],I=Of.numParams[C];let O=E.drawn!==void 0,q=L.drawn!==void 0,z=h?t[m]:t,N=v?r[_]:r;var H=T.slice(1).replace(Of.paramRE,function(U){return E[M]?a==="pixel"?U=z(l)+Number(U):U=z(U):L[M]&&(s==="pixel"?U=N(u)-Number(U):U=N(U)),M++,M>I&&(U="X"),U});return M>I&&(H=H.replace(/[\s,]*X.*/,""),YP.log("Ignoring extra params in segment "+T)),O&&m++,q&&_++,C+H})}vo.getPixelShift=Bf;function Bf(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var I4=de((W_e,jP)=>{"use strict";var Sie=Bt(),Uf=Xi(),WP=ro(),XP=_i(),kie=jh().readPaths,Nd=Qh(),Cie=Nd.getPathString,bg=T_(),Eie=No().FROM_TL;jP.exports=function(t,r,i,a){if(a.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var s;if(i.label.texttemplate){var l={};if(i.type!=="path"){var u=Uf.getFromId(t,i.xref),h=Uf.getFromId(t,i.yref);let Me=Array.isArray(i.xref),Xe=Array.isArray(i.yref);for(var v in bg){var m=typeof bg[v]=="function",_=!Me||bg.simpleXVariables.includes(v),T=!Xe||bg.simpleYVariables.includes(v);if(m&&_&&T){var M=bg[v](i,u,h);M!==void 0&&(l[v]=M)}}}s=Sie.texttemplateStringForShapes({data:[l],fallback:i.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:i.label.texttemplate})}else s=i.label.text;var C={"data-index":r},E=i.label.font,L={"data-notex":1},I=a.append("g").attr(C).classed("shape-label",!0),O=I.append("text").attr(L).classed("shape-label-text",!0).text(s),q,z,N,H;if(i.path){var U=Cie(t,i),W=kie(U,t);q=1/0,N=1/0,z=-1/0,H=-1/0;for(var J=0;JNd.getDataToPixel(t,Oe,ye,!1,at)(De),pe=(De,ye,Oe,at)=>Nd.getDataToPixel(t,Oe,ye,!0,at)(De);if(i.xsizemode==="pixel"){let De=ft(i.xanchor,void 0,it,Ct),ye=Nd.getPixelShift(it,i.x0shift),Oe=Nd.getPixelShift(it,i.x1shift);q=De+i.x0+ye,z=De+i.x1+Oe}else q=ft(i.x0,i.x0shift,it,Ct),z=ft(i.x1,i.x1shift,nt,lt);if(i.ysizemode==="pixel"){let De=pe(i.yanchor,void 0,gt,mt),ye=Nd.getPixelShift(gt,i.y0shift),Oe=Nd.getPixelShift(gt,i.y1shift);N=De-i.y0+ye,H=De-i.y1+Oe}else N=pe(i.y0,i.y0shift,gt,mt),H=pe(i.y1,i.y1shift,Ge,Ot)}var Te=i.label.textangle;Te==="auto"&&(i.type==="line"?Te=Lie(q,N,z,H):Te=0),O.call(function(Me){return Me.call(XP.font,E).attr({}),WP.convertToTspans(Me,t),Me});var ke=XP.bBox(O.node()),Se=Die(q,N,z,H,i,Te,ke),Ae=Se.textx,me=Se.texty,Ce=Se.xanchor;O.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Ce],y:me,x:Ae,transform:"rotate("+Te+","+Ae+","+me+")"}).call(WP.positionText,Ae,me)}};function Lie(e,t,r,i){var a,s;return s=Math.abs(r-e),r>=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,s)}function Die(e,t,r,i,a,s,l){var u=a.label.textposition,h=a.label.textangle,v=a.label.padding,m=a.type,_=Math.PI/180*s,T=Math.sin(_),M=Math.cos(_),C=a.label.xanchor,E=a.label.yanchor,L,I,O,q;if(m==="line"){u==="start"?(L=e,I=t):u==="end"?(L=r,I=i):(L=(e+r)/2,I=(t+i)/2),C==="auto"&&(u==="start"?h==="auto"?r>e?C="left":re?C="right":re?C="right":re?C="left":r{"use strict";var Pie=Bt(),zie=Pie.strTranslate,JP=jl(),$P=qd(),Iie=$P.drawMode,ez=$P.selectMode,tz=la(),KP=Ba(),tx=X2(),Rie=tx.i000,Fie=tx.i090,qie=tx.i180,Nie=tx.i270,Bie=Bh(),rz=Bie.clearOutlineControllers,F4=jh(),ex=F4.pointsOnRectangle,R4=F4.pointsOnEllipse,Oie=F4.writePaths,Uie=$2().newShapes,Vie=$2().createShapeObj,Hie=z4(),Gie=I4();az.exports=function e(t,r,i,a){a||(a=0);var s=i.gd;function l(){e(t,r,i,a++),(R4(t[0])||i.hasText)&&u({redrawing:!0})}function u(Se){var Ae={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,Ae=Uie(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,Ae=Hie(r,i),s._fullLayout._reselect=!0),Object.keys(Ae).length&&tz.call((Se||{}).redrawing?"relayout":"_guiRelayout",s,Ae)}var h=s._fullLayout,v=h._zoomlayer,m=i.dragmode,_=Iie(m),T=ez(m);(_||T)&&(s._fullLayout._outlining=!0),rz(s),r.attr("d",Oie(t));var M,C,E,L,I;if(!a&&(i.isActiveShape||i.isActiveSelection)){I=Zie([],t);var O=v.append("g").attr("class","outline-controllers");ee(O),ke()}if(_&&i.hasText){var q=v.select(".label-temp"),z=Vie(r,i,i.dragmode);Gie(s,"label-temp",z,q)}function N(Se){E=+Se.srcElement.getAttribute("data-i"),L=+Se.srcElement.getAttribute("data-j"),M[E][L].moveFn=H}function H(Se,Ae){if(t.length){var me=I[E][L][1],Ce=I[E][L][2],Me=t[E],Xe=Me.length;if(ex(Me)){var it=Se,nt=Ae;if(i.isActiveSelection){var gt=QP(Me,L);gt[1]===Me[L][1]?nt=0:it=0}for(var Ge=0;Ge1&&!(Se.length===2&&Se[1][0]==="Z")&&(L===0&&(Se[0][0]="M"),t[E]=Se,l(),u())}}function J(Se,Ae){if(Se===2){E=+Ae.srcElement.getAttribute("data-i"),L=+Ae.srcElement.getAttribute("data-j");var me=t[E];!ex(me)&&!R4(me)&&W()}}function ee(Se){M=[];for(var Ae=0;Ae{"use strict";var Wie=Va(),uz=la(),N4=Bt(),Bd=Xi(),Xie=jh().readPaths,jie=rx(),ix=I4(),fz=Bh().clearOutlineControllers,q4=Ba(),nx=_i(),Jie=Pi().arrayEditor,iz=jl(),nz=Uu(),oz=Wh(),Od=xg(),Vs=Qh(),B4=Vs.getPathString;vz.exports={draw:O4,drawOne:cz,eraseActiveShape:tne,drawLabel:ix};function O4(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=a(s);l&&nz.hover(e,l,r.id)}}),i.addEventListener("click",s=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=a(s);l&&nz.click(e,l,r.id)}})}function hz(e,t,r){let i=r.xref,a=r.yref;if(Array.isArray(i)||Array.isArray(a)){let s="clip"+t._fullLayout._uid+"shape"+r._index,l=Qie(t,i,a);N4.ensureSingleById(t._fullLayout._clips,"clipPath",s,function(u){u.append("rect")}).select("rect").attr(l),nx.setClipUrl(e,s,t)}else{let s=(i+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");nx.setClipUrl(e,s?"clip"+t._fullLayout._uid+s:null,t)}}function Qie(e,t,r){let i=e._fullLayout._size;function a(u,h){let v=(Array.isArray(u)?u:[u]).map(T=>Bd.getFromId(e,T)).filter(Boolean);if(!v.length)return h?[i.t,i.t+i.h]:[i.l,i.l+i.w];let m=v.map(function(T){return T._offset}),_=v.map(function(T){return T._offset+T._length});return[Math.min(...m),Math.max(..._)]}let s=a(t,!1),l=a(r,!0);return{x:s[0],y:l[0],width:s[1]-s[0],height:l[1]-l[0]}}function $ie(e,t,r,i,a,s){var l=10,u=10,h=r.xsizemode==="pixel",v=r.ysizemode==="pixel",m=r.type==="line",_=r.type==="path",T=s.modifyItem,M,C,E,L,I,O,q,z,N,H,U,W,J,ee,ie,oe=Wie.select(t.node().parentNode),he=Bd.getFromId(e,r.xref),fe=Bd.getRefType(r.xref),Te=Bd.getFromId(e,r.yref),ke=Bd.getRefType(r.yref),Se=r.x0shift,Ae=r.x1shift,me=r.y0shift,Ce=r.y1shift,Me=function(xt,bt){var Vt=Vs.getDataToPixel(e,he,bt,!1,fe);return Vt(xt)},Xe=function(xt,bt){var Vt=Vs.getDataToPixel(e,Te,bt,!0,ke);return Vt(xt)},it=Vs.getPixelToData(e,he,!1,fe),nt=Vs.getPixelToData(e,Te,!0,ke),gt=lt(),Ge={element:gt.node(),gd:e,prepFn:ft,doneFn:pe,clickFn:De},Ct;iz.init(Ge),gt.node().onmousemove=Ot;function lt(){return m?mt():t}function mt(){var xt=10,bt=Math.max(r.line.width,xt),Vt=a.append("g").attr("data-index",i).attr("drag-helper",!0);Vt.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":bt,"stroke-opacity":"0"});var qt={"fill-opacity":"0"},Dt=Math.max(bt/2,xt);return Vt.append("circle").attr({"data-line-point":"start-point",cx:h?Me(r.xanchor)+r.x0:Me(r.x0,Se),cy:v?Xe(r.yanchor)-r.y0:Xe(r.y0,me),r:Dt}).style(qt).classed("cursor-grab",!0),Vt.append("circle").attr({"data-line-point":"end-point",cx:h?Me(r.xanchor)+r.x1:Me(r.x1,Ae),cy:v?Xe(r.yanchor)-r.y1:Xe(r.y1,Ce),r:Dt}).style(qt).classed("cursor-grab",!0),Vt}function Ot(xt){if(ax(e)){Ct=null;return}if(m)xt.target.tagName==="path"?Ct="move":Ct=xt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var bt=Ge.element.getBoundingClientRect(),Vt=bt.right-bt.left,qt=bt.bottom-bt.top,Dt=xt.clientX-bt.left,At=xt.clientY-bt.top,Ut=!_&&Vt>l&&qt>u&&!xt.shiftKey?iz.getCursor(Dt/Vt,1-At/qt):"move";oz(t,Ut),Ct=Ut.split("-")[0]}}function ft(xt){ax(e)||(h&&(I=Me(r.xanchor)),v&&(O=Xe(r.yanchor)),r.type==="path"?ie=r.path:(M=h?r.x0:Me(r.x0),C=v?r.y0:Xe(r.y0),E=h?r.x1:Me(r.x1),L=v?r.y1:Xe(r.y1)),ML?(q=C,U="y0",z=L,W="y1"):(q=L,U="y1",z=C,W="y0"),Ot(xt),at(a,r),Pt(t,r,e),Ge.moveFn=Ct==="move"?ye:Oe,Ge.altKey=xt.altKey)}function pe(){ax(e)||(oz(t),Je(a),hz(t,e,r),uz.call("_guiRelayout",e,s.getUpdateObj()))}function De(){ax(e)||Je(a)}function ye(xt,bt){if(r.type==="path"){var Vt=function(At){return At},qt=Vt,Dt=Vt;h?T("xanchor",r.xanchor=it(I+xt)):(qt=function(Ut){return it(Me(Ut)+xt)},he&&he.type==="date"&&(qt=Vs.encodeDate(qt))),v?T("yanchor",r.yanchor=nt(O+bt)):(Dt=function(Ut){return nt(Xe(Ut)+bt)},Te&&Te.type==="date"&&(Dt=Vs.encodeDate(Dt))),T("path",r.path=sz(ie,qt,Dt))}else h?T("xanchor",r.xanchor=it(I+xt)):(T("x0",r.x0=it(M+xt)),T("x1",r.x1=it(E+xt))),v?T("yanchor",r.yanchor=nt(O+bt)):(T("y0",r.y0=nt(C+bt)),T("y1",r.y1=nt(L+bt)));t.attr("d",B4(e,r)),at(a,r),ix(e,i,r,oe)}function Oe(xt,bt){if(_){var Vt=function(Gt){return Gt},qt=Vt,Dt=Vt;h?T("xanchor",r.xanchor=it(I+xt)):(qt=function(hr){return it(Me(hr)+xt)},he&&he.type==="date"&&(qt=Vs.encodeDate(qt))),v?T("yanchor",r.yanchor=nt(O+bt)):(Dt=function(hr){return nt(Xe(hr)+bt)},Te&&Te.type==="date"&&(Dt=Vs.encodeDate(Dt))),T("path",r.path=sz(ie,qt,Dt))}else if(m){if(Ct==="resize-over-start-point"){var At=M+xt,Ut=v?C-bt:C+bt;T("x0",r.x0=h?At:it(At)),T("y0",r.y0=v?Ut:nt(Ut))}else if(Ct==="resize-over-end-point"){var Wt=E+xt,Be=v?L-bt:L+bt;T("x1",r.x1=h?Wt:it(Wt)),T("y1",r.y1=v?Be:nt(Be))}}else{var ut=function(Gt){return Ct.indexOf(Gt)!==-1},sr=ut("n"),Pr=ut("s"),Lt=ut("w"),vt=ut("e"),pt=sr?q+bt:q,Nt=Pr?z+bt:z,er=Lt?N+xt:N,Ht=vt?H+xt:H;v&&(sr&&(pt=q-bt),Pr&&(Nt=z-bt)),(!v&&Nt-pt>u||v&&pt-Nt>u)&&(T(U,r[U]=v?pt:nt(pt)),T(W,r[W]=v?Nt:nt(Nt))),Ht-er>l&&(T(J,r[J]=h?er:it(er)),T(ee,r[ee]=h?Ht:it(Ht)))}t.attr("d",B4(e,r)),at(a,r),ix(e,i,r,oe)}function at(xt,bt){(h||v)&&Vt();function Vt(){var qt=bt.type!=="path",Dt=xt.selectAll(".visual-cue").data([0]),At=1;Dt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":At}).classed("visual-cue",!0);var Ut=Me(h?bt.xanchor:N4.midRange(qt?[bt.x0,bt.x1]:Vs.extractPathCoords(bt.path,Od.paramIsX))),Wt=Xe(v?bt.yanchor:N4.midRange(qt?[bt.y0,bt.y1]:Vs.extractPathCoords(bt.path,Od.paramIsY)));if(Ut=Vs.roundPositionForSharpStrokeRendering(Ut,At),Wt=Vs.roundPositionForSharpStrokeRendering(Wt,At),h&&v){var Be="M"+(Ut-1-At)+","+(Wt-1-At)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Dt.attr("d",Be)}else if(h){var ut="M"+(Ut-1-At)+","+(Wt-9-At)+"v18 h2 v-18 Z";Dt.attr("d",ut)}else{var sr="M"+(Ut-9-At)+","+(Wt-1-At)+"h18 v2 h-18 Z";Dt.attr("d",sr)}}}function Je(xt){xt.selectAll(".visual-cue").remove()}function Pt(xt,bt,Vt){var qt=bt.xref,Dt=bt.yref,At=Bd.getFromId(Vt,qt),Ut=Bd.getFromId(Vt,Dt),Wt="";qt!=="paper"&&!At.autorange&&(Wt+=qt),Dt!=="paper"&&!Ut.autorange&&(Wt+=Dt),nx.setClipUrl(xt,Wt?"clip"+Vt._fullLayout._uid+Wt:null,Vt)}}function sz(e,t,r){return e.replace(Od.segmentRE,function(i){var a=0,s=i.charAt(0),l=Od.paramIsX[s],u=Od.paramIsY[s],h=Od.numParams[s],v=i.slice(1).replace(Od.paramRE,function(m){return a>=h||(l[a]?m=t(m):u[a]&&(m=r(m)),a++),m});return s+v})}function ene(e,t){if(ox(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){lz(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=lz,O4(e)}}}function lz(e){if(ox(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(fz(e),delete e._fullLayout._activeShapeIndex,O4(e))}}function tne(e){if(ox(e)){fz(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var dz=Va(),lx=Bt()._;pz.exports=function(t,r,i){var a=dz.select(t._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();var s=a.append("div").classed("plotly-cloud-dialog",!0),l=s.append("div").classed("plotly-cloud-dialog-box",!0);l.append("div").classed("plotly-cloud-dialog-title",!0).text(lx(t,"Share with Plotly Cloud")),l.append("div").classed("plotly-cloud-dialog-message",!0).text(lx(t,"This chart and its data will be sent to")+" "+r+".");var u=l.append("div").classed("plotly-cloud-dialog-buttons",!0);function h(){s.remove(),document.removeEventListener("keydown",v)}function v(m){(m.key==="Escape"||m.keyCode===27)&&h()}document.addEventListener("keydown",v),s.on("click",function(){dz.event.target===s.node()&&h()}),u.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(lx(t,"Cancel")).on("click",h),u.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(lx(t,"Share")).on("click",function(){h(),i()})}});var H4=de((K_e,Az)=>{"use strict";var Ql=la(),rne=to(),yz=jn(),Ka=Y2(),ane=sx().eraseActiveShape,ine=mz(),ux=Bt(),Ra=ux._,Ha=Az.exports={};Ha.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Ra(e,"Download plot as a PNG"):Ra(e,"Download plot")},icon:Ka.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};ux.notifier(Ra(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),Ql.call("downloadImage",e,r).then(function(i){ux.notifier(Ra(e,"Snapshot succeeded")+" - "+i,"long",e)}).catch(function(){ux.notifier(Ra(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Ha.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Ra(e,"Share with Plotly Cloud")},icon:Ka.cloudupload,click:function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!t){console.error("No destination URL provided (plotlyServerURL is not set)");return}try{new URL(t)}catch(r){console.error("Invalid plotlyServerURL: "+t);return}ine(e,t,function(){rne.sendDataToCloud(e,t)})}};Ha.sendDataToCloud=Ha.sendChartToCloud;Ha.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ra(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ka.zoombox,click:ns};Ha.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ra(e,"Pan")},attr:"dragmode",val:"pan",icon:Ka.pan,click:ns};Ha.select2d={name:"select2d",_cat:"select",title:function(e){return Ra(e,"Box Select")},attr:"dragmode",val:"select",icon:Ka.selectbox,click:ns};Ha.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ra(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ka.lasso,click:ns};Ha.drawclosedpath={name:"drawclosedpath",title:function(e){return Ra(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ka.drawclosedpath,click:ns};Ha.drawopenpath={name:"drawopenpath",title:function(e){return Ra(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ka.drawopenpath,click:ns};Ha.drawline={name:"drawline",title:function(e){return Ra(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ka.drawline,click:ns};Ha.drawrect={name:"drawrect",title:function(e){return Ra(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ka.drawrect,click:ns};Ha.drawcircle={name:"drawcircle",title:function(e){return Ra(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ka.drawcircle,click:ns};Ha.eraseshape={name:"eraseshape",title:function(e){return Ra(e,"Erase active shape")},icon:Ka.eraseshape,click:ane};Ha.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ra(e,"Zoom in")},attr:"zoom",val:"in",icon:Ka.zoom_plus,click:ns};Ha.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ra(e,"Zoom out")},attr:"zoom",val:"out",icon:Ka.zoom_minus,click:ns};Ha.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ra(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ka.autoscale,click:ns};Ha.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ra(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ka.home,click:ns};Ha.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ra(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ka.tooltip_basic,gravity:"ne",click:ns};Ha.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ra(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ka.tooltip_compare,gravity:"ne",click:ns};function ns(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,s=e._fullLayout,l={},u=yz.list(e,null,!0),h=s._cartesianSpikesEnabled,v,m;if(i==="zoom"){var _=a==="in"?.5:2,T=(1+_)/2,M=(1-_)/2,C,E;for(m=0;m{"use strict";var Mz=H4(),sne=Object.keys(Mz),Sz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],kz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Sz),lm=[],lne=function(e){if(kz.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();lm.indexOf(t)===-1&&lm.push(t),lm.indexOf(r)===-1&&lm.push(r)}};sne.forEach(function(e){lne(Mz[e])});lm.sort();Cz.exports={DRAW_MODES:Sz,backButtons:kz,foreButtons:lm}});var Z4=de((e2e,Ez)=>{"use strict";var $_e=G4();Ez.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Dz=de((t2e,Lz)=>{"use strict";var une=Bt(),wg=Ba(),fne=Pi(),cne=Z4();Lz.exports=function(t,r){var i=t.modebar||{},a=fne.newContainer(r,"modebar");function s(u,h){return une.coerce(i,a,cne,u,h)}s("orientation"),s("bgcolor",wg.addOpacity(r.paper_bgcolor,.5));var l=wg.contrast(wg.rgb(r.modebar.bgcolor));s("color",wg.addOpacity(l,.3)),s("activecolor",wg.addOpacity(l,.7)),s("uirevision",r.uirevision),s("add"),s("remove")}});var Rz=de((r2e,Iz)=>{"use strict";var Y4=Va(),hne=La(),cx=Bt(),Pz=Y2(),vne=Dy().version,dne=new DOMParser;function zz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Vf=zz.prototype;Vf.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,a="modebar-"+i._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var s=i.modebar,l="#"+a+" .modebar-group";document.querySelectorAll(l).forEach(function(_){_.style.backgroundColor=s.bgcolor});var u=!this.hasButtons(t),h=this.hasLogo!==r.displaylogo,v=this.locale!==r.locale;if(this.locale=r.locale,(u||h||v)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var m=this.getLogo();r.watermark&&(m.className=m.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(m,this.element.childNodes[0]):this.element.appendChild(m),this.hasLogo=!0}this.updateActiveButton(),cx.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+s.activecolor,"fill: "+s.color,this.element)};Vf.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(a){var s=a.name;if(!s)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(s)!==-1)throw new Error("button name '"+s+"' is taken");t.buttonsNames.push(s);var l=t.createButton(a);t.buttonElements.push(l),i.appendChild(l)}),t.element.appendChild(i)})};Vf.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Vf.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),r.setAttribute("data-val",a));var s=e.click;if(typeof s!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(u){e.click(t.graphInfo,u),t.updateActiveButton(u.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Y4.select(r).classed("active",!0);var l=e.icon;return typeof l=="function"?r.appendChild(l()):r.appendChild(this.createIcon(l||Pz.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Vf.createIcon=function(e){var t=hne(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var a=document.createElementNS(r,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(a)}if(e.svg){var s=dne.parseFromString(e.svg,"application/xml");i=s.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};Vf.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var a=i.getAttribute("data-val")||!0,s=i.getAttribute("data-attr"),l=i.getAttribute("data-toggle")==="true",u=Y4.select(i),h=function(_,T){var M=t.modebar,C=_.querySelector(".icon path");C&&(T||_.matches(":hover")?C.style.fill=M.activecolor:C.style.fill=M.color)};if(l){if(s===r){var v=!u.classed("active");u.classed("active",v),h(i,v)}}else{var m=s===null?s:cx.nestedProperty(t,s).get();u.classed("active",m===a),h(i,m===a)}})};Vf.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var yne=jn(),Fz=rs(),W4=la(),gne=Cc().isUnifiedHover,_ne=Rz(),hx=H4(),xne=G4().DRAW_MODES,bne=Bt().extendDeep;qz.exports=function(t){var r=t._fullLayout,i=t._context,a=r._modeBar;if(!i.displayModeBar&&!i.watermark){a&&(a.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var s=i.modeBarButtons,l;Array.isArray(s)&&s.length?l=kne(s):!i.displayModeBar&&i.watermark?l=[]:l=wne(t),a?a.update(t,l):r._modeBar=_ne(t,l)};function wne(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a(Ae,me){if(typeof me=="string"){if(me.toLowerCase()===Ae.toLowerCase())return!0}else{var Ce=me.name,Me=me._cat||me.name;if(Ce===Ae||Me===Ae.toLowerCase())return!0}return!1}var s=t.modebar.add;typeof s=="string"&&(s=[s]);var l=t.modebar.remove;typeof l=="string"&&(l=[l]);var u=i.modeBarButtonsToAdd.concat(s.filter(function(Ae){for(var me=0;me1?(ee=["toggleHover"],ie=["resetViews"]):_?(J=["zoomInGeo","zoomOutGeo"],ee=["hoverClosestGeo"],ie=["resetGeo"]):m?(ee=["hoverClosest3d"],ie=["resetCameraDefault3d","resetCameraLastSave3d"]):E?(J=["zoomInMapbox","zoomOutMapbox"],ee=["toggleHover"],ie=["resetViewMapbox"]):L?(J=["zoomInMap","zoomOutMap"],ee=["toggleHover"],ie=["resetViewMap"]):T?ee=["hoverClosestPie"]:q?(ee=["hoverClosestCartesian","hoverCompareCartesian"],ie=["resetViewSankey"]):ee=["toggleHover"],v&&ee.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Mne(r)||N)&&(ee=[]),v&&!z&&(J=["zoomIn2d","zoomOut2d","autoScale2d"],ie[0]!=="resetViews"&&(ie=["resetScale2d"])),m?oe=["zoom3d","pan3d","orbitRotation","tableRotation"]:v&&!z||C?oe=["zoom2d","pan2d"]:E||L||_?oe=["pan2d"]:I&&(oe=["zoom2d"]),Ane(r)&&oe.push("select2d","lasso2d");var he=[],fe=function(Ae){he.indexOf(Ae)===-1&&ee.indexOf(Ae)!==-1&&he.push(Ae)};if(Array.isArray(u)){for(var Te=[],ke=0;ke{"use strict";Bz.exports={moduleType:"component",name:"modebar",layoutAttributes:Z4(),supplyLayoutDefaults:Dz(),manage:Nz()}});var j4=de((n2e,Oz)=>{"use strict";var Cne=No().FROM_BL;Oz.exports=function(t,r,i){i===void 0&&(i=Cne[t.constraintoward||"center"]);var a=[t.r2l(t.range[0]),t.r2l(t.range[1])],s=a[0]+(a[1]-a[0])*i;t.range=t._input.range=[t.l2r(s+(a[0]-s)*r),t.l2r(s+(a[1]-s)*r)],t.setScale()}});var Ag=de(Tg=>{"use strict";var Ud=Bt(),J4=og(),Vu=jn().id2name,Ene=Nu(),Uz=j4(),Lne=g2(),Dne=Zi().ALMOST_EQUAL,Pne=No().FROM_BL;Tg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,s=t._axisConstraintGroups=[],l=t._axisMatchGroups=[],u,h,v,m,_,T,M,C;for(u=0;us?r.slice(s):i.slice(a))+l}function Ine(e,t){for(var r=t._size,i=r.h/r.w,a={},s=Object.keys(e),l=0;lDne*C&&!O)){for(s=0;soe&&Ceee&&(ee=Ce);var Xe=(ee-J)/(2*ie);_/=Xe,J=h.l2r(J),ee=h.l2r(ee),h.range=h._input.range=H{"use strict";var dx=Va(),os=la(),fl=to(),$l=Bt(),$4=ro(),e6=Z2(),Mg=Ba(),um=_i(),Zz=ig(),Jz=X4(),Sg=Xi(),Pc=No(),Kz=Ag(),Rne=Kz.enforce,Fne=Kz.clean,Yz=og().doAutoRange,Qz="start",qne="middle",$z="end",Nne=eo().zindexSeparator;no.layoutStyles=function(e){return $l.syncOrAsync([fl.doAutoMargin,One],e)};function Bne(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&s[0]t[0])return!0}return!1}function One(e){var t=e._fullLayout,r=t._size,i=r.p,a=Sg.list(e,"",!0),s,l,u,h,v,m;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(um.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),no.drawMainTitle(e),Jz.manage(e),!t._has("cartesian"))return fl.previousPromises(e);function _(ft,pe,De){var ye=ft._lw/2;if(ft._id.charAt(0)==="x"){if(pe){if(De==="top")return pe._offset-i-ye}else return r.t+r.h*(1-(ft.position||0))+ye%1;return pe._offset+pe._length+i+ye}if(pe){if(De==="right")return pe._offset+pe._length+i+ye}else return r.l+r.w*(ft.position||0)+ye%1;return pe._offset-i-ye}for(s=0;s0){Gne(e,s,v,h),u.attr({x:l,y:s,"text-anchor":i,dy:jz(t.yanchor)}).call($4.positionText,l,s);var m=(t.text.match($4.BR_TAG_ALL)||[]).length;if(m){var _=Pc.LINE_SPACING*m+Pc.MID_SHIFT;t.y===0&&(_=-_),u.selectAll(".line").each(function(){var L=+this.getAttribute("dy").slice(0,-2)-_+"em";this.setAttribute("dy",L)})}var T=dx.select(e).selectAll(".gtitle-subtitle");if(T.node()){var M=u.node().getBBox(),C=M.y+M.height,E=C+Zz.SUBTITLE_PADDING_EM*t.subtitle.font.size;T.attr({x:l,y:E,"text-anchor":i,dy:jz(t.yanchor)}).call($4.positionText,l,E)}}}};function Une(e,t,r,i,a){var s=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=$l.isTopAnchor(t)?i:i-a,u=r==="b"?s-l:l;return $l.isTopAnchor(t)&&r==="t"||$l.isBottomAnchor(t)&&r==="b"?!1:u.5?"t":"b",l=e._fullLayout.margin[s],u=0;return t.yref==="paper"?u=r+t.pad.t+t.pad.b:t.yref==="container"&&(u=Vne(s,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),u>l?u:0}function Gne(e,t,r,i){var a="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",u={x:s.x,y:s.y,t:0,b:0},h={};s.yref==="paper"&&Une(e,s,l,t,i)?u[l]=r:s.yref==="container"&&(h[l]=r,e._fullLayout._reservedMargin[a]=h),fl.allowAutoMargin(e,a),fl.autoMargin(e,a,u)}function Zne(e,t){var r=e.title,i=e._size,a=0;return t===Qz?a=r.pad.l:t===$z&&(a=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+a:e.width*r.x+a}function Yne(e,t){var r=e.title,i=e._size,a=0;return t==="0em"||!t?a=-r.pad.b:t===Pc.CAP_SHIFT+"em"&&(a=r.pad.t),r.y==="auto"?i.t/2:r.yref==="paper"?i.t+i.h-i.h*r.y+a:e.height-e.height*r.y+a}function jz(e){return e==="top"?Pc.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Pc.MID_SHIFT+"em"}function Wne(e){var t=e.title,r=qne;return $l.isRightAnchor(t)?r=$z:$l.isLeftAnchor(t)&&(r=Qz),r}function Xne(e){var t=e.title,r="0em";return $l.isTopAnchor(t)?r=Pc.CAP_SHIFT+"em":$l.isMiddleAnchor(t)&&(r=Pc.MID_SHIFT+"em"),r}no.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var jne=jh().readPaths,Jne=rx(),eI=Bh().clearOutlineControllers,t6=Ba(),tI=_i(),Kne=Pi().arrayEditor,rI=Qh(),Qne=rI.getPathString;iI.exports={draw:mx,drawOne:aI,activateLastSelection:toe};function mx(e){var t=e._fullLayout;eI(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var a=0;a=0;L--){var I=l.append("path").attr(h).style("opacity",L?.1:v).call(t6.stroke,_).call(t6.fill,m).call(tI.dashLine,L?"solid":M,L?4+T:T);if($ne(I,e,i),C){var O=Kne(e.layout,"selections",i);I.style({cursor:"move"});var q={element:I.node(),plotinfo:a,gd:e,editHelpers:O,isActiveSelection:!0},z=jne(u,e);Jne(z,I,q)}else I.style("pointer-events",L?"all":"none");E[L]=I}var N=E[0],H=E[1];H.node().addEventListener("click",function(){return eoe(e,N)})}}function $ne(e,t,r){var i=r.xref+r.yref;tI.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function eoe(e,t){if(yx(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){r6(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=r6,mx(e)}}}function toe(e){if(yx(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=r6,mx(e)}}function r6(e){if(yx(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(eI(e),delete e._fullLayout._activeSelectionIndex,mx(e))}}});var oI=de((u2e,nI)=>{function roe(){var e,t=0,r=!1;function i(a,s){return e.list.push({type:a,data:s?JSON.parse(JSON.stringify(s)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,s){return i("check",{seg1:a,seg2:s})},segmentChop:function(a,s){return i("div_seg",{seg:a,pt:s}),i("chop",{seg:a,pt:s})},statusRemove:function(a){return i("pop_seg",{seg:a})},segmentUpdate:function(a){return i("seg_update",{seg:a})},segmentNew:function(a,s){return i("new_seg",{seg:a,primary:s})},segmentRemove:function(a){return i("rem_seg",{seg:a})},tempStatus:function(a,s,l){return i("temp_status",{seg:a,above:s,below:l})},rewind:function(a){return i("rewind",{seg:a})},status:function(a,s,l){return i("status",{seg:a,above:s,below:l})},vert:function(a){return a===r?e:(r=a,i("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),i("log",{txt:a})},reset:function(){return i("reset")},selected:function(a){return i("selected",{segs:a})},chainStart:function(a){return i("chain_start",{seg:a})},chainRemoveHead:function(a,s){return i("chain_rem_head",{index:a,pt:s})},chainRemoveTail:function(a,s){return i("chain_rem_tail",{index:a,pt:s})},chainNew:function(a,s){return i("chain_new",{pt1:a,pt2:s})},chainMatch:function(a){return i("chain_match",{index:a})},chainClose:function(a){return i("chain_close",{index:a})},chainAddHead:function(a,s){return i("chain_add_head",{index:a,pt:s})},chainAddTail:function(a,s){return i("chain_add_tail",{index:a,pt:s})},chainConnect:function(a,s){return i("chain_con",{index1:a,index2:s})},chainReverse:function(a){return i("chain_rev",{index:a})},chainJoin:function(a,s){return i("chain_join",{index1:a,index2:s})},done:function(){return i("done")}},e}nI.exports=roe});var lI=de((f2e,sI)=>{function aoe(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,a){var s=i[0],l=i[1],u=a[0],h=a[1],v=r[0],m=r[1];return(u-s)*(m-l)-(h-l)*(v-s)>=-e},pointBetween:function(r,i,a){var s=r[1]-i[1],l=a[0]-i[0],u=r[0]-i[0],h=a[1]-i[1],v=u*l+s*h;if(v-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=u-s>e&&(l-m)*(s-_)/(u-_)+m-a>e&&(h=!h),l=m,u=_}return h}};return t}sI.exports=aoe});var fI=de((c2e,uI)=>{var ioe={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,a=e.root.next;a!==null;){if(r(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}i=a,a=a.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(a){return a.prev=r,a.next=i,r.next=a,i!==null&&(i.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};uI.exports=ioe});var hI=de((h2e,cI)=>{var kg=fI();function noe(e,t,r){function i(C,E){return{id:r?r.segmentId():-1,start:C,end:E,myFill:{above:null,below:null},otherFill:null}}function a(C,E,L){return{id:r?r.segmentId():-1,start:C,end:E,myFill:{above:L.myFill.above,below:L.myFill.below},otherFill:null}}var s=kg.create();function l(C,E,L,I,O,q){var z=t.pointsCompare(E,O);return z!==0?z:t.pointsSame(L,q)?0:C!==I?C?1:-1:t.pointAboveOrOnLine(L,I?O:q,I?q:O)?1:-1}function u(C,E){s.insertBefore(C,function(L){var I=l(C.isStart,C.pt,E,L.isStart,L.pt,L.other.pt);return I<0})}function h(C,E){var L=kg.node({isStart:!0,pt:C.start,seg:C,primary:E,other:null,status:null});return u(L,C.end),L}function v(C,E,L){var I=kg.node({isStart:!1,pt:E.end,seg:E,primary:L,other:C,status:null});C.other=I,u(I,C.pt)}function m(C,E){var L=h(C,E);return v(L,C,E),L}function _(C,E){r&&r.segmentChop(C.seg,E),C.other.remove(),C.seg.end=E,C.other.pt=E,u(C.other,C.pt)}function T(C,E){var L=a(E,C.seg.end,C.seg);return _(C,E),m(L,C.primary)}function M(C,E){var L=kg.create();function I(Te,ke){var Se=Te.seg.start,Ae=Te.seg.end,me=ke.seg.start,Ce=ke.seg.end;return t.pointsCollinear(Se,me,Ce)?t.pointsCollinear(Ae,me,Ce)||t.pointAboveOrOnLine(Ae,me,Ce)?1:-1:t.pointAboveOrOnLine(Se,me,Ce)?1:-1}function O(Te){return L.findTransition(function(ke){var Se=I(Te,ke.ev);return Se>0})}function q(Te,ke){var Se=Te.seg,Ae=ke.seg,me=Se.start,Ce=Se.end,Me=Ae.start,Xe=Ae.end;r&&r.checkIntersection(Se,Ae);var it=t.linesIntersect(me,Ce,Me,Xe);if(it===!1){if(!t.pointsCollinear(me,Ce,Me)||t.pointsSame(me,Xe)||t.pointsSame(Ce,Me))return!1;var nt=t.pointsSame(me,Me),gt=t.pointsSame(Ce,Xe);if(nt&>)return ke;var Ge=!nt&&t.pointBetween(me,Me,Xe),Ct=!gt&&t.pointBetween(Ce,Me,Xe);if(nt)return Ct?T(ke,Ce):T(Te,Xe),ke;Ge&&(gt||(Ct?T(ke,Ce):T(Te,Xe)),T(ke,me))}else it.alongA===0&&(it.alongB===-1?T(Te,Me):it.alongB===0?T(Te,it.pt):it.alongB===1&&T(Te,Xe)),it.alongB===0&&(it.alongA===-1?T(ke,me):it.alongA===0?T(ke,it.pt):it.alongA===1&&T(ke,Ce));return!1}for(var z=[];!s.isEmpty();){var N=s.getHead();if(r&&r.vert(N.pt[0]),N.isStart){let Te=function(){if(U){var ke=q(N,U);if(ke)return ke}return W?q(N,W):!1};var fe=Te;r&&r.segmentNew(N.seg,N.primary);var H=O(N),U=H.before?H.before.ev:null,W=H.after?H.after.ev:null;r&&r.tempStatus(N.seg,U?U.seg:!1,W?W.seg:!1);var J=Te();if(J){if(e){var ee;N.seg.myFill.below===null?ee=!0:ee=N.seg.myFill.above!==N.seg.myFill.below,ee&&(J.seg.myFill.above=!J.seg.myFill.above)}else J.seg.otherFill=N.seg.myFill;r&&r.segmentUpdate(J.seg),N.other.remove(),N.remove()}if(s.getHead()!==N){r&&r.rewind(N.seg);continue}if(e){var ee;N.seg.myFill.below===null?ee=!0:ee=N.seg.myFill.above!==N.seg.myFill.below,W?N.seg.myFill.below=W.seg.myFill.above:N.seg.myFill.below=C,ee?N.seg.myFill.above=!N.seg.myFill.below:N.seg.myFill.above=N.seg.myFill.below}else if(N.seg.otherFill===null){var ie;W?N.primary===W.primary?ie=W.seg.otherFill.above:ie=W.seg.myFill.above:ie=N.primary?E:C,N.seg.otherFill={above:ie,below:ie}}r&&r.status(N.seg,U?U.seg:!1,W?W.seg:!1),N.other.status=H.insert(kg.node({ev:N}))}else{var oe=N.status;if(oe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(L.exists(oe.prev)&&L.exists(oe.next)&&q(oe.prev.ev,oe.next.ev),r&&r.statusRemove(oe.ev.seg),oe.remove(),!N.primary){var he=N.seg.myFill;N.seg.myFill=N.seg.otherFill,N.seg.otherFill=he}z.push(N.seg)}s.getHead().remove()}return r&&r.done(),z}return e?{addRegion:function(C){for(var E,L=C[C.length-1],I=0;I{function ooe(e,t,r){var i=[],a=[];return e.forEach(function(s){var l=s.start,u=s.end;if(t.pointsSame(l,u)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(s);var h={index:0,matches_head:!1,matches_pt1:!1},v={index:0,matches_head:!1,matches_pt1:!1},m=h;function _(fe,Te,ke){return m.index=fe,m.matches_head=Te,m.matches_pt1=ke,m===h?(m=v,!1):(m=null,!0)}for(var T=0;T{function Cg(e,t,r){var i=[];return e.forEach(function(a){var s=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);t[s]!==0&&i.push({id:r?r.segmentId():-1,start:a.start,end:a.end,myFill:{above:t[s]===1,below:t[s]===2},otherFill:null})}),r&&r.selected(i),i}var soe={union:function(e,t){return Cg(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Cg(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Cg(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Cg(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Cg(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};pI.exports=soe});var gI=de((p2e,yI)=>{var loe={toPolygon:function(e,t){function r(s){if(s.length<=0)return e.segments({inverted:!1,regions:[]});function l(v){var m=v.slice(0,v.length-1);return e.segments({inverted:!1,regions:[m]})}for(var u=l(s[0]),h=1;h{var uoe=oI(),foe=lI(),_I=hI(),coe=dI(),Eg=mI(),xI=gI(),eu=!1,Lg=foe(),Hs;Hs={buildLog:function(e){return e===!0?eu=uoe():e===!1&&(eu=!1),eu===!1?!1:eu.list},epsilon:function(e){return Lg.epsilon(e)},segments:function(e){var t=_I(!0,Lg,eu);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=_I(!1,Lg,eu);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Eg.union(e.combined,eu),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Eg.intersect(e.combined,eu),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Eg.difference(e.combined,eu),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Eg.differenceRev(e.combined,eu),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Eg.xor(e.combined,eu),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:coe(e.segments,Lg,eu),inverted:e.inverted}},polygonFromGeoJSON:function(e){return xI.toPolygon(Hs,e)},polygonToGeoJSON:function(e){return xI.fromPolygon(Hs,Lg,e)},union:function(e,t){return Dg(e,t,Hs.selectUnion)},intersect:function(e,t){return Dg(e,t,Hs.selectIntersect)},difference:function(e,t){return Dg(e,t,Hs.selectDifference)},differenceRev:function(e,t){return Dg(e,t,Hs.selectDifferenceRev)},xor:function(e,t){return Dg(e,t,Hs.selectXor)}};function Dg(e,t,r){var i=Hs.segments(e),a=Hs.segments(t),s=Hs.combine(i,a),l=r(s);return Hs.polygon(l)}typeof window=="object"&&(window.PolyBool=Hs);bI.exports=Hs});var AI=de((y2e,TI)=>{TI.exports=function(t,r,i,a){var s=t[0],l=t[1],u=!1;i===void 0&&(i=0),a===void 0&&(a=r.length);for(var h=a-i,v=0,m=h-1;vl!=C>l&&s<(M-_)*(l-T)/(C-T)+_;E&&(u=!u)}return u}});var xx=de((g2e,MI)=>{"use strict";var i6=x_().dot,gx=Zi().BADNUM,_x=MI.exports={};_x.tester=function(t){var r=t.slice(),i=r[0][0],a=i,s=r[0][1],l=s,u;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),u=1;ua||I===gx||Il||E&&v(C))}function _(C,E){var L=C[0],I=C[1];if(L===gx||La||I===gx||Il)return!1;var O=r.length,q=r[0][0],z=r[0][1],N=0,H,U,W,J,ee;for(H=1;HMath.max(U,q)||I>Math.max(W,z)))if(Iu||Math.abs(i6(_,v))>a)return!0;return!1};_x.filter=function(t,r){var i=[t[0]],a=0,s=0;function l(h){t.push(h);var v=i.length,m=a;i.splice(s+1);for(var _=m+1;_1){var u=t.pop();l(u)}return{addPt:l,raw:t,filtered:i}}});var kI=de((_2e,SI)=>{"use strict";SI.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var jI=de((x2e,XI)=>{"use strict";var CI=wI(),hoe=AI(),Ig=la(),voe=_i().dashStyle,Pg=Ba(),doe=Uu(),poe=Cc().makeEventData,Bg=qd(),moe=Bg.freeMode,yoe=Bg.rectMode,Rg=Bg.drawMode,l6=Bg.openMode,u6=Bg.selectMode,EI=Qh(),LI=xg(),RI=rx(),FI=Bh().clearOutline,qI=jh(),n6=qI.handleEllipse,goe=qI.readPaths,_oe=$2().newShapes,xoe=z4(),boe=a6().activateLastSelection,wx=Bt(),woe=wx.sorterAsc,NI=xx(),zg=I_(),tu=jn().getFromId,Toe=Z2(),Aoe=px().redrawReglTraces,Tx=kI(),Hf=Tx.MINSELECT,Moe=NI.filter,f6=NI.tester,c6=j2(),DI=c6.p2r,Soe=c6.axValue,koe=c6.getTransform;function h6(e){return e.subplot!==void 0}function Coe(e,t,r,i,a){var s=!h6(i),l=moe(a),u=yoe(a),h=l6(a),v=Rg(a),m=u6(a),_=a==="drawline",T=a==="drawcircle",M=_||T,C=i.gd,E=C._fullLayout,L=m&&E.newselection.mode==="immediate"&&s,I=E._zoomlayer,O=i.element.getBoundingClientRect(),q=i.plotinfo,z=koe(q),N=t-O.left,H=r-O.top;E._calcInverseTransform(C);var U=wx.apply3DTransform(E._invTransform)(N,H);N=U[0],H=U[1];var W=E._invScaleX,J=E._invScaleY,ee=N,ie=H,oe="M"+N+","+H,he=i.xaxes[0],fe=i.yaxes[0],Te=he._length,ke=fe._length,Se=e.altKey&&!(Rg(a)&&h),Ae,me,Ce,Me,Xe,it,nt;OI(e,C,i),l&&(Ae=Moe([[N,H]],Tx.BENDPX));var gt=I.selectAll("path.select-outline-"+q.id).data([1]),Ge=v?E.newshape:E.newselection;v&&(i.hasText=Ge.label.text||Ge.label.texttemplate);var Ct=v&&!h?Ge.fillcolor:"rgba(0,0,0,0)",lt=Ge.line.color||(s?Pg.contrast(C._fullLayout.plot_bgcolor):"#7f7f7f");gt.enter().append("path").attr("class","select-outline select-outline-"+q.id).style({opacity:v?Ge.opacity/2:1,"stroke-dasharray":voe(Ge.line.dash,Ge.line.width),"stroke-width":Ge.line.width+"px","shape-rendering":"crispEdges"}).call(Pg.stroke,lt).call(Pg.fill,Ct).attr("fill-rule","evenodd").classed("cursor-move",!!v).attr("transform",z).attr("d",oe+"Z");var mt=I.append("path").attr("class","zoombox-corners").style({fill:Pg.background,stroke:Pg.defaultLine,"stroke-width":1}).attr("transform",z).attr("d","M0,0Z");if(v&&i.hasText){var Ot=I.select(".label-temp");Ot.empty()&&(Ot=I.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ft=E._uid+Tx.SELECTID,pe=[],De=Ax(C,i.xaxes,i.yaxes,i.subplot);L&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(s){var Oe=he._id,at=fe._id;ZI(C,Oe,at,De);for(var Je=(C.layout||{}).selections||[],Pt=[],xt=!1,bt=0;bt=0){C._fullLayout._deactivateShape(C);return}if(!v){var Je=E.clickmode;zg.done(ft).then(function(){if(zg.clear(ft),Oe===2){for(gt.remove(),Xe=0;Xe-1&&BI(at,C,i.xaxes,i.yaxes,i.subplot,i,gt),Je==="event"&&Ng(C,void 0);doe.click(C,at,q.id)}).catch(wx.error)}},i.doneFn=function(){mt.remove(),zg.done(ft).then(function(){zg.clear(ft),!L&&Me&&i.selectionDefs&&(Me.subtract=Se,i.selectionDefs.push(Me),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,Ce)),(L||v)&&Fg(i,L),i.doneFnCompleted&&i.doneFnCompleted(pe),m&&Ng(C,nt)}).catch(wx.error)}}function BI(e,t,r,i,a,s,l){var u=t._hoverdata,h=t._fullLayout,v=h.clickmode,m=v.indexOf("event")>-1,_=[],T,M,C,E,L,I,O,q,z,N;if(zoe(u)){OI(e,t,s),T=Ax(t,r,i,a);var H=Ioe(u,T),U=H.pointNumbers.length>0;if(U?Roe(T,H):Foe(T)&&(O=zI(H))){for(l&&l.remove(),N=0;N=0}function Poe(e){return e._fullLayout._activeSelectionIndex>=0}function Fg(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;Doe(a)&&a._fullLayout._deactivateShape(a),Poe(a)&&a._fullLayout._deactivateSelection(a);var s=a._fullLayout,l=s._zoomlayer,u=Rg(r),h=u6(r);if(u||h){var v=l.selectAll(".select-outline-"+i.id);if(v&&a._fullLayout._outlining){var m;u&&(m=_oe(v,e)),m&&Ig.call("_guiRelayout",a,{shapes:m});var _;h&&!h6(e)&&(_=xoe(v,e)),_&&(a._fullLayout._noEmitSelectedAtStart=!0,Ig.call("_guiRelayout",a,{selections:_}).then(function(){t&&boe(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function PI(e){return e._id}function Ax(e,t,r,i){if(!e.calcdata)return[];var a=[],s=t.map(PI),l=r.map(PI),u,h,v;for(v=0;v0,s=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(s)>-1:!1}function Roe(e,t){var r=[],i,a,s,l;for(l=0;l0&&r.push(i);if(r.length===1&&(s=r[0]===t.searchInfo,s&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(l=0;l1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function qg(e,t,r){var i;for(i=0;i-1&&t;if(!l&&t){var Oe=II(e,!0);if(Oe.length){var at=Oe[0].xref,Je=Oe[0].yref;if(at&&Je){var Pt=YI(Oe),xt=WI([tu(e,at,"x"),tu(e,Je,"y")]);xt(pe,Pt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ye&&Ng(e,pe),T._reselect=!1}if(!l&&T._deselect){var bt=T._deselect;u=bt.xref,h=bt.yref,Boe(u,h,m)||ZI(e,u,h,i),ye&&(pe.points.length?Ng(e,pe):p6(e)),T._deselect=!1}return{eventData:pe,selectionTesters:r}}function Noe(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";JI.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Og=de((w2e,KI)=>{"use strict";KI.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var fm=de((A2e,eR)=>{"use strict";var QI=m6(),$I=qo(),Mx=eo(),Goe=Pi().templatedArray,T2e=Og();eR.exports=Goe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:$I({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:QI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:QI.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Mx.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Mx.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Mx.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Mx.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:$I({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sx=de((M2e,tR)=>{"use strict";tR.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var kx=de((S2e,rR)=>{"use strict";rR.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var zc=de((k2e,fR)=>{"use strict";var aR=Xw().axisHoverFormat,{hovertemplateAttrs:Zoe,texttemplateAttrs:Yoe,templatefallbackAttrs:iR}=Cf(),nR=kc(),Woe=qo(),oR=_c().dash,Xoe=_c().pattern,joe=_i(),Joe=Sx(),Ug=mn().extendFlat,Koe=kx();function sR(e){return{valType:"any",dflt:0,editType:"calc"}}function lR(e){return{valType:"any",editType:"calc"}}function uR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}fR.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:sR("x"),yperiod:sR("y"),xperiod0:lR("x0"),yperiod0:lR("y0"),xperiodalignment:uR("x"),yperiodalignment:uR("y"),xhoverformat:aR("x"),yhoverformat:aR("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Yoe(),texttemplatefallback:iR({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Zoe({},{keys:Joe.eventDataKeys}),hovertemplatefallback:iR(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Ug({},oR,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Koe(!0),fillgradient:Ug({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Xoe,marker:Ug({symbol:{valType:"enumerated",values:joe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Ug({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Ug({},oR,{arrayOk:!0}),editType:"calc"},nR("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},nR("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Woe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var y6=de((E2e,vR)=>{"use strict";var cR=fm(),hR=zc().line,Qoe=_c().dash,Cx=mn().extendFlat,$oe=il().overrideAll,ese=Pi().templatedArray,C2e=Og();vR.exports=$oe(ese("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Cx({},cR.xref,{}),yref:Cx({},cR.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:hR.color,width:Cx({},hR.width,{min:1,dflt:1}),dash:Cx({},Qoe,{dflt:"dot"})}}),"arraydraw","from-root")});var yR=de((L2e,mR)=>{"use strict";var dR=Bt(),Ex=Xi(),tse=Wl(),rse=y6(),pR=Qh();mR.exports=function(t,r){tse(t,r,{name:"selections",handleItemDefaults:ase});for(var i=r.selections,a=0;a{"use strict";gR.exports=function(t,r,i){i("newselection.mode");var a=i("newselection.line.width");a&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var Vg=de((P2e,wR)=>{"use strict";var ise=la(),xR=Bt(),bR=jn();wR.exports=function(t){return function(i,a){var s=i[t];if(Array.isArray(s))for(var l=ise.subplotsRegistry.cartesian,u=l.idRegex,h=a._subplots,v=h.xaxis,m=h.yaxis,_=h.cartesian,T=a._has("cartesian"),M=0;M{"use strict";var TR=a6(),Hg=jI();AR.exports={moduleType:"component",name:"selections",layoutAttributes:y6(),supplyLayoutDefaults:yR(),supplyDrawNewSelectionDefaults:_R(),includeBasePlot:Vg()("selections"),draw:TR.draw,drawOne:TR.drawOne,reselect:Hg.reselect,prepSelect:Hg.prepSelect,clearOutline:Hg.clearOutline,clearSelectionsCache:Hg.clearSelectionsCache,selectOnClick:Hg.selectOnClick}});var ZR=de((I2e,GR)=>{"use strict";var w6=Va(),ru=Bt(),MR=ru.numberFormat,nse=Sf(),ose=r4(),Lx=la(),IR=ru.strTranslate,sse=ro(),SR=Ba(),ev=_i(),lse=Uu(),kR=Xi(),use=Wh(),fse=jl(),RR=qd(),Dx=RR.selectingOrDrawing,cse=RR.freeMode,hse=No().FROM_TL,vse=Z2(),dse=px().redrawReglTraces,pse=to(),_6=jn().getFromId,mse=Gf().prepSelect,yse=Gf().clearOutline,gse=Gf().selectOnClick,g6=j4(),T6=eo(),CR=T6.MINDRAG,_s=T6.MINZOOM,ER=!0;function _se(e,t,r,i,a,s,l,u){var h=e._fullLayout._zoomlayer,v=l+u==="nsew",m=(l+u).length===1,_,T,M,C,E,L,I,O,q,z,N,H,U,W,J,ee,ie,oe,he,fe,Te,ke,Se;r+=t.yaxis._shift;function Ae(){if(_=t.xaxis,T=t.yaxis,q=_._length,z=T._length,I=_._offset,O=T._offset,M={},M[_._id]=_,C={},C[T._id]=T,l&&u)for(var vt=t.overlays,pt=0;pt=0){Nt._fullLayout._deactivateShape(Nt);return}var er=Nt._fullLayout.clickmode;if(b6(Nt),vt===2&&!m&&Wt(),v)er.indexOf("select")>-1&&gse(pt,Nt,E,L,t.id,Me),er.indexOf("event")>-1&&lse.click(Nt,pt,t.id);else if(vt===1&&m){var Ht=l?T:_,Gt=l==="s"||u==="w"?0:1,hr=Ht._name+".range["+Gt+"]",yr=xse(Ht,Gt),mr="left",Et="middle";if(Ht.fixedrange)return;l?(Et=l==="n"?"top":"bottom",Ht.side==="right"&&(mr="right")):u==="e"&&(mr="right"),Nt._context.showAxisRangeEntryBoxes&&w6.select(Ce).call(sse.makeEditable,{gd:Nt,immediate:!0,background:Nt._fullLayout.paper_bgcolor,text:String(yr),fill:Ht.tickfont?Ht.tickfont.color:"#444",horizontalAlign:mr,verticalAlign:Et}).on("edit",function(Fe){var Ue=Ht.d2r(Fe);Ue!==void 0&&Lx.call("_guiRelayout",Nt,hr,Ue)})}}fse.init(Me);var nt,gt,Ge,Ct,lt,mt,Ot,ft,pe,De;function ye(vt,pt,Nt){var er=Ce.getBoundingClientRect();nt=pt-er.left,gt=Nt-er.top,e._fullLayout._calcInverseTransform(e);var Ht=ru.apply3DTransform(e._fullLayout._invTransform)(nt,gt);nt=Ht[0],gt=Ht[1],Ge={l:nt,r:nt,w:0,t:gt,b:gt,h:0},Ct=e._hmpixcount?e._hmlumcount/e._hmpixcount:nse(e._fullLayout.plot_bgcolor).getLuminance(),lt="M0,0H"+q+"V"+z+"H0V0",mt=!1,Ot="xy",De=!1,ft=NR(h,Ct,I,O,lt),pe=BR(h,I,O)}function Oe(vt,pt){if(e._transitioningWithDuration)return!1;var Nt=Math.max(0,Math.min(q,ke*vt+nt)),er=Math.max(0,Math.min(z,Se*pt+gt)),Ht=Math.abs(Nt-nt),Gt=Math.abs(er-gt);Ge.l=Math.min(nt,Nt),Ge.r=Math.max(nt,Nt),Ge.t=Math.min(gt,er),Ge.b=Math.max(gt,er);function hr(){Ot="",Ge.r=Ge.l,Ge.t=Ge.b,pe.attr("d","M0,0Z")}if(N.isSubplotConstrained)Ht>_s||Gt>_s?(Ot="xy",Ht/q>Gt/z?(Gt=Ht*z/q,gt>er?Ge.t=gt-Gt:Ge.b=gt+Gt):(Ht=Gt*q/z,nt>Nt?Ge.l=nt-Ht:Ge.r=nt+Ht),pe.attr("d",Px(Ge))):hr();else if(H.isSubplotConstrained)if(Ht>_s||Gt>_s){Ot="xy";var yr=Math.min(Ge.l/q,(z-Ge.b)/z),mr=Math.max(Ge.r/q,(z-Ge.t)/z);Ge.l=yr*q,Ge.r=mr*q,Ge.b=(1-yr)*z,Ge.t=(1-mr)*z,pe.attr("d",Px(Ge))}else hr();else!W||Gt0){var Fe;if(H.isSubplotConstrained||!U&&W.length===1){for(Fe=0;Fe1&&(hr.maxallowed!==void 0&&ee===(hr.range[0]1&&(yr.maxallowed!==void 0&&ie===(yr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function wse(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function NR(e,t,r,i,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",IR(r,i)).attr("d",a+"Z")}function BR(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:SR.background,stroke:SR.defaultLine,"stroke-width":1,opacity:0}).attr("transform",IR(t,r)).attr("d","M0,0Z")}function OR(e,t,r,i,a,s){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),UR(e,t,a,s)}function UR(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function b6(e){w6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function VR(e){ER&&e.data&&e._context.showTips&&(ru.notifier(ru._(e,"Double-click to zoom back out"),"long",e),ER=!1)}function Tse(e,t){return"M"+(e.l-.5)+","+(t-_s-.5)+"h-3v"+(2*_s+1)+"h3ZM"+(e.r+.5)+","+(t-_s-.5)+"h3v"+(2*_s+1)+"h-3Z"}function Ase(e,t){return"M"+(t-_s-.5)+","+(e.t-.5)+"v-3h"+(2*_s+1)+"v3ZM"+(t-_s-.5)+","+(e.b+.5)+"v3h"+(2*_s+1)+"v-3Z"}function Px(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,_s)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function PR(e,t,r,i,a){for(var s=!1,l={},u={},h,v,m,_,T=(a||{}).xaHash,M=(a||{}).yaHash,C=0;C{"use strict";var Mse=Va(),zx=Uu(),Sse=jl(),kse=Wh(),Hu=ZR().makeDragBox,oo=eo().DRAGGERSIZE;Ix.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Mse.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(s,l){if((r._plots[s].mainplot&&!0)===(r._plots[l].mainplot&&!0)){var u=s.split("y"),h=l.split("y");return u[0]===h[0]?Number(u[1]||1)-Number(h[1]||1):Number(u[0]||1)-Number(h[0]||1)}return r._plots[s].mainplot?1:-1});i.forEach(function(s){var l=r._plots[s],u=l.xaxis,h=l.yaxis;if(!l.mainplot){var v=Hu(t,l,u._offset,h._offset,u._length,h._length,"ns","ew");v.onmousemove=function(T){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===s&&t._fullLayout._plots[s]&&zx.hover(t,T,s)},zx.hover(t,T,s),t._fullLayout._lasthover=v,t._fullLayout._hoversubplot=s},v.onmouseout=function(T){t._dragging||(t._fullLayout._hoversubplot=null,Sse.unhover(t,T))},t._context.showAxisDragHandles&&(Hu(t,l,u._offset-oo,h._offset-oo,oo,oo,"n","w"),Hu(t,l,u._offset+u._length,h._offset-oo,oo,oo,"n","e"),Hu(t,l,u._offset-oo,h._offset+h._length,oo,oo,"s","w"),Hu(t,l,u._offset+u._length,h._offset+h._length,oo,oo,"s","e"))}if(t._context.showAxisDragHandles){if(s===u._mainSubplot){var m=u._mainLinePosition;u.side==="top"&&(m-=oo),Hu(t,l,u._offset+u._length*.1,m,u._length*.8,oo,"","ew"),Hu(t,l,u._offset,m,u._length*.1,oo,"","w"),Hu(t,l,u._offset+u._length*.9,m,u._length*.1,oo,"","e")}if(s===h._mainSubplot){var _=h._mainLinePosition;h.side!=="right"&&(_-=oo),Hu(t,l,_,h._offset+h._length*.1,oo,h._length*.8,"ns",""),Hu(t,l,_,h._offset+h._length*.9,oo,h._length*.1,"s",""),Hu(t,l,_,h._offset,oo,h._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(s){s.target=t._fullLayout._lasthover,zx.hover(t,s,r._hoversubplot)},a.onclick=function(s){s.target=t._fullLayout._lasthover,zx.click(t,s)},a.onmousedown=function(s){t._fullLayout._lasthover.onmousedown(s)},Ix.updateFx(t)}};Ix.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";kse(t._draggers,r)}});var XR=de((F2e,WR)=>{"use strict";var YR=la();WR.exports=function(t){for(var r=YR.layoutArrayContainers,i=YR.layoutArrayRegexes,a=t.split("[")[0],s,l,u=0;u{"use strict";var Cse=gc(),M6=__(),Gg=Lh(),Ese=_w().sorterAsc,S6=la();Zg.containerArrayMatch=XR();var Lse=Zg.isAddVal=function(t){return t==="add"||Cse(t)},jR=Zg.isRemoveVal=function(t){return t===null||t==="remove"};Zg.applyContainerArrayChanges=function(t,r,i,a,s){var l=r.astr,u=S6.getComponentMethod(l,"supplyLayoutDefaults"),h=S6.getComponentMethod(l,"draw"),v=S6.getComponentMethod(l,"drawOne"),m=a.replot||a.recalc||u===M6||h===M6,_=t.layout,T=t._fullLayout;if(i[""]){Object.keys(i).length>1&&Gg.warn("Full array edits are incompatible with other edits",l);var M=i[""][""];if(jR(M))r.set(null);else if(Array.isArray(M))r.set(M);else return Gg.warn("Unrecognized full array edit value",l,M),!0;return m?!1:(u(_,T),h(t),!0)}var C=Object.keys(i).map(Number).sort(Ese),E=r.get(),L=E||[],I=s(T,l).get(),O=[],q=-1,z=L.length,N,H,U,W,J,ee,ie,oe;for(N=0;NL.length-(ie?0:1)){Gg.warn("index out of range",l,U);continue}if(ee!==void 0)J.length>1&&Gg.warn("Insertion & removal are incompatible with edits to the same index.",l,U),jR(ee)?O.push(U):ie?(ee==="add"&&(ee={}),L.splice(U,0,ee),I&&I.splice(U,0,{})):Gg.warn("Unrecognized full object edit value",l,U,ee),q===-1&&(q=U);else for(H=0;H=0;N--)L.splice(O[N],1),I&&I.splice(O[N],1);if(L.length?E||r.set(L):r.set(null),m)return!1;if(u(_,T),v!==M6){var he;if(q===-1)he=C;else{for(z=Math.max(L.length,z),he=[],N=0;N=q));N++)he.push(U);for(N=q;N{"use strict";var eF=La(),tF=la(),ss=Bt(),Yg=to(),rF=jn(),aF=Ba(),Wg=rF.cleanId,Dse=rF.getFromTrace,k6=tF.traceIs,Pse=["x","y","z"];au.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ss.log("Clearing previous rejected promises from queue."),e._promises=[]};au.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(Yg.subplotsRegistry.cartesian||{}).attrRegex,a=(Yg.subplotsRegistry.polar||{}).attrRegex,s=(Yg.subplotsRegistry.ternary||{}).attrRegex,l=(Yg.subplotsRegistry.gl3d||{}).attrRegex,u=Object.keys(e);for(t=0;t3?(L.x=1.02,L.xanchor="left"):L.x<-2&&(L.x=-.02,L.xanchor="right"),L.y>3?(L.y=1.02,L.yanchor="bottom"):L.y<-2&&(L.y=-.02,L.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),aF.clean(e),e.template&&e.template.layout&&au.cleanLayout(e.template.layout),e};function cm(e,t,r=!1){var i=e[t],a=t.charAt(0);r&&Array.isArray(i)||i&&i!=="paper"&&(e[t]=Wg(i,a,!0))}au.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}au.hasParent=function(e,t){for(var r=$R(t);r;){if(r in e)return!0;r=$R(r)}return!1};au.clearAxisTypes=function(e,t,r){for(var i=0;i{let r=(...i)=>i.every(a=>ss.isPlainObject(a))||i.every(a=>Array.isArray(a));if([e,t].every(i=>Array.isArray(i))){if(e.length!==t.length)return!1;for(let i=0;iss.isPlainObject(i))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){if(i.startsWith("_"))continue;let a=e[i],s=t[i];if(a!==s&&!(r(a,s)?C6(a,s):!1))return!1}return!0}return!1};au.collectionsAreEqual=C6});var I6=de(Ga=>{"use strict";var Nx=Va(),Rse=La(),Fse=Pw(),br=Bt(),qi=br.nestedProperty,D6=jy(),xs=qk(),iu=la(),Zx=B0(),ra=to(),ls=Xi(),qse=t4(),Nse=Nu(),E6=_i(),Bse=Ba(),Ose=A6().initInteractions,Use=Oh(),Vse=Gf().clearOutline,uF=cd().dfltConfig,Fx=JR(),zn=iF(),ci=px(),tv=il(),Hse=eo().AX_NAME_PATTERN,L6=0,nF=5;function Gse(e,t,r,i){var a;if(e=br.getGraphDiv(e),D6.init(e),br.isPlainObject(t)){var s=t;t=s.data,r=s.layout,i=s.config,a=s.frames}var l=D6.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(l===!1)return Promise.reject();!t&&!r&&!br.isPlotDiv(e)&&br.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function u(){if(a)return Ga.addFrames(e,a)}cF(e,i),r||(r={}),Nx.select(e).classed("js-plotly-plot",!0),E6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var h=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(zn.cleanData(t),h?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||h)&&(e.layout=zn.cleanLayout(r)),ra.supplyDefaults(e);var v=e._fullLayout,m=v._has("cartesian");v._replotting=!0,(h||v._shouldCreateBgLayer)&&(vle(e),v._shouldCreateBgLayer&&delete v._shouldCreateBgLayer),E6.initGradients(e),E6.initPatterns(e),h&&ls.saveShowSpikeInitial(e);var _=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;_&&ra.doCalcdata(e);for(var T=0;T=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,i+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function hF(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Ox(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Ox(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function jse(e,t,r){var i,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&m<_.length?_.splice(0,_.length-m):[];return[_,T]}var s=vF(e,t,r,i,a),l=Ga.redraw(e),u=[e,s.update,r,s.maxPoints];return xs.add(e,Ga.prependTraces,u,pF,arguments),l}function mF(e,t,r,i){e=br.getGraphDiv(e);function a(h,v,m){var _,T;if(br.isTypedArray(h))if(m<=0){var M=new h.constructor(0),C=dF(v,h);m<0?(_=C,T=M):(_=M,T=C)}else if(_=new h.constructor(m),T=new h.constructor(h.length+v.length-m),m===v.length)_.set(v),T.set(h);else if(m=0&&m<_.length?_.splice(m,_.length):[];return[_,T]}var s=vF(e,t,r,i,a),l=Ga.redraw(e),u=[e,s.update,r,s.maxPoints];return xs.add(e,Ga.extendTraces,u,mF,arguments),l}function yF(e,t,r){e=br.getGraphDiv(e);var i=[],a=Ga.deleteTraces,s=yF,l=[e,i],u=[e,t],h,v;for(jse(e,t,r),Array.isArray(t)||(t=[t]),t=t.map(function(m){return br.extendFlat({},m)}),zn.cleanData(t),h=0;h0&&typeof W.parts[ie]!="string";)ie--;var oe=W.parts[ie],he=W.parts[ie-1]+"."+oe,fe=W.parts.slice(0,ie).join("."),Te=qi(e.layout,fe).get(),ke=qi(i,fe).get(),Se=W.get();if(J!==void 0){I[U]=J,O[U]=oe==="reverse"?J:Ic(Se);var Ae=Zx.getLayoutValObject(i,W.parts);if(Ae&&Ae.impliedEdits&&J!==null)for(var me in Ae.impliedEdits)q(br.relativeAttr(U,me),Ae.impliedEdits[me]);if(["width","height"].indexOf(U)!==-1)if(J){q("autosize",null);var Ce=U==="height"?"width":"height";q(Ce,i[Ce])}else i[U]=e._initialAutoSize[U];else if(U==="autosize")q("width",J?null:i.width),q("height",J?null:i.height);else if(he.match(bF))H(he),qi(i,fe+"._inputRange").set(null);else if(he.match(wF)){H(he),qi(i,fe+"._inputRange").set(null);var Me=qi(i,fe).get();Me._inputDomain&&(Me._input.domain=Me._inputDomain.slice())}else he.match($se)&&qi(i,fe+"._inputDomain").set(null);if(oe==="type"){N=Te;var Xe=ke.type==="linear"&&J==="log",it=ke.type==="log"&&J==="linear";if(Xe||it){if(!N||!N.range)q(fe+".autorange",!0);else if(ke.autorange)Xe&&(N.range=N.range[1]>N.range[0]?[1,2]:[2,1]);else{var nt=N.range[0],gt=N.range[1];Xe?(nt<=0&><=0&&q(fe+".autorange",!0),nt<=0?nt=gt/1e6:gt<=0&&(gt=nt/1e6),q(fe+".range[0]",Math.log(nt)/Math.LN10),q(fe+".range[1]",Math.log(gt)/Math.LN10)):(q(fe+".range[0]",Math.pow(10,nt)),q(fe+".range[1]",Math.pow(10,gt)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[W.parts[0]]&&W.parts[1]==="radialaxis"&&delete i[W.parts[0]]._subplot.viewInitial["radialaxis.range"],iu.getComponentMethod("annotations","convertCoords")(e,ke,J,q),iu.getComponentMethod("images","convertCoords")(e,ke,J,q)}else q(fe+".autorange",!0),q(fe+".range",null);qi(i,fe+"._inputRange").set(null)}else if(oe.match(Hse)){var Ge=qi(i,U).get(),Ct=(J||{}).type;(!Ct||Ct==="-")&&(Ct="linear"),iu.getComponentMethod("annotations","convertCoords")(e,Ge,Ct,q),iu.getComponentMethod("images","convertCoords")(e,Ge,Ct,q)}var lt=Fx.containerArrayMatch(U);if(lt){m=lt.array,_=lt.index;var mt=lt.property,Ot=Ae||{editType:"calc"};_!==""&&mt===""&&(Fx.isAddVal(J)?O[U]=null:Fx.isRemoveVal(J)?O[U]=(qi(r,m).get()||[])[_]:br.warn("unrecognized full object value",t)),tv.update(L,Ot),v[m]||(v[m]={});var ft=v[m][_];ft||(ft=v[m][_]={}),ft[mt]=J,delete t[U]}else oe==="reverse"?(Te.range?Te.range.reverse():(q(fe+".autorange",!0),Te.range=[1,0]),ke.autorange?L.calc=!0:L.plot=!0):(U==="dragmode"&&(J===!1&&Se!==!1||J!==!1&&Se===!1)||i._has("scatter-like")&&i._has("regl")&&U==="dragmode"&&(J==="lasso"||J==="select")&&!(Se==="lasso"||Se==="select")?L.plot=!0:Ae?tv.update(L,Ae):L.calc=!0,W.set(J))}}for(m in v){var pe=Fx.applyContainerArrayChanges(e,s(r,m),v[m],L,s);pe||(L.plot=!0)}for(var De in z){N=ls.getFromId(e,De);var ye=N&&N._constraintGroup;if(ye){L.calc=!0;for(var Oe in ye)z[Oe]||(ls.getFromId(e,Oe)._constraintShrinkable=!0)}}(AF(e)||t.height||t.width)&&(L.plot=!0);var at=i.shapes;for(_=0;_1;)if(i.pop(),r=qi(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function rle(e,t){for(var r=0;r[fe,e._ev.listeners(fe)]);s=Ga.newPlot(e,t,r,i).then(()=>{for(let[fe,Te]of he)Te.forEach(ke=>e.on(fe,ke));return Ga.react(e,t,r,i)})}else{e.data=t||[],zn.cleanData(e.data),e.layout=r||{},zn.cleanLayout(e.layout),ile(e.data,e.layout,u,h),ra.supplyDefaults(e,{skipUpdateCalc:!0});var _=e._fullData,T=e._fullLayout,M=T.datarevision===void 0,C=T.transition,E=sle(e,h,T,M,C),L=E.newDataRevision,I=ole(e,u,_,M,C,L);if(AF(e)&&(E.layoutReplot=!0),I.calc||E.calc){e.calcdata=void 0;for(var O=Object.getOwnPropertyNames(T),q=0;q(m||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function ole(e,t,r,i,a,s){var l=t.length===r.length;if(!a&&!l)return{fullReplot:!0,calc:!0};var u=tv.traceFlags();u.arrays={},u.nChanges=0,u.nChangesAnim=0;var h,v;function m(M){var C=Zx.getTraceValObject(v,M);return!v._module.animatable&&C.anim&&(C.anim=!1),C}var _={getValObject:m,flags:u,immutable:i,transition:a,newDataRevision:s,gd:e},T={};for(h=0;h=a.length?a[0]:a[v]:a}function u(v){return Array.isArray(s)?v>=s.length?s[0]:s[v]:s}function h(v,m){var _=0;return function(){if(v&&++_===m)return v()}}return new Promise(function(v,m){function _(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var oe=i._frameQueue.pop();oe.onInterrupt&&oe.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function T(oe){if(oe.length!==0){for(var he=0;hei._timeToNext&&C()};oe()}var L=0;function I(oe){return Array.isArray(a)?L>=a.length?oe.transitionOpts=a[L]:oe.transitionOpts=a[0]:oe.transitionOpts=a,L++,oe}var O,q,z=[],N=t==null,H=Array.isArray(t),U=!N&&!H&&br.isPlainObject(t);if(U)z.push({type:"object",data:I(br.extendFlat({},t))});else if(N||["string","number"].indexOf(typeof t)!==-1)for(O=0;O0&&eeee)&&ie.push(q);z=ie}}z.length>0?T(z):(e.emit("plotly_animated"),v())})}function ule(e,t,r){if(e=br.getGraphDiv(e),t==null)return Promise.resolve();if(!br.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,a,s,l,u=e._transitionData._frames,h=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var v=u.length+t.length*2,m=[],_={};for(i=t.length-1;i>=0;i--)if(br.isPlainObject(t[i])){var T=t[i].name,M=(h[T]||_[T]||{}).name,C=t[i].name,E=h[M]||_[M];M&&C&&typeof C=="number"&&E&&L6W.index?-1:U.index=0;i--){if(a=m[i].frame,typeof a.name=="number"&&br.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;h[a.name="frame "+e._transitionData._counter++];);if(h[a.name]){for(s=0;s=0;r--)i=t[r],s.push({type:"delete",index:i}),l.unshift({type:"insert",index:i,value:a[i]});var u=ra.modifyFrames,h=ra.modifyFrames,v=[e,l],m=[e,s];return xs&&xs.add(e,u,v,h,m),ra.modifyFrames(e,s)}function cle(e){e=br.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ra.cleanPlot([],{},r,t),ra.purge(e),D6.purge(e),t._container&&t._container.remove(),delete e._context,e}function hle(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!br.equalDomRects(r,t._lastBBox)){var i=t._invTransform=br.inverseTransformMatrix(br.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function vle(e){var t=Nx.select(e),r=e._fullLayout;if(r._calcInverseTransform=hle,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};Nx.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=br.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(Use.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var a=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=a.append("g").classed("imagelayer",!0),r._shapeLowerLayer=a.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var s=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=s.append("g").classed("imagelayer",!0),r._shapeUpperLayer=s.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ga.animate=lle;Ga.addFrames=ule;Ga.deleteFrames=fle;Ga.addTraces=yF;Ga.deleteTraces=gF;Ga.extendTraces=pF;Ga.moveTraces=P6;Ga.prependTraces=mF;Ga.newPlot=Xse;Ga._doPlot=Gse;Ga.purge=cle;Ga.react=nle;Ga.redraw=Wse;Ga.relayout=Xg;Ga.restyle=Ux;Ga.setPlotConfig=Zse;Ga.update=Hx;Ga._guiRelayout=z6(Xg);Ga._guiRestyle=z6(Ux);Ga._guiUpdate=z6(Hx);Ga._storeDirectGUIEdit=Qse});var Vd=de(Zf=>{"use strict";var dle=la();Zf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Zf.getRedrawFunc=function(e){return function(){dle.getComponentMethod("colorbar","draw")(e)}};Zf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Zf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var MF=window.URL||window.webkitURL;Zf.createObjectURL=function(e){return MF.createObjectURL(e)};Zf.revokeObjectURL=function(e){return MF.revokeObjectURL(e)};Zf.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=ple(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Zf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function ple(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var F6=Va(),U2e=Bt(),mle=_i(),yle=Ba(),V2e=Oh(),R6=/"/g,Hd="TOBESTRIPPED",gle=new RegExp(`("${Hd})|(${Hd}")|("${Hd})|(${Hd}")`,"g"),_le=["&","&","&",""",""",""","'","'","'"],xle=["<","<","<"],ble=[">",">",">"];function wle(e){let t=F6.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let a=i.toLowerCase();return _le.includes(a)?i:xle.includes(a)?"<":ble.includes(a)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function Tle(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}SF.exports=function(t,r,i){var a=t._fullLayout,s=a._paper,l=a._toppaper,u=a.width,h=a.height,v;s.insert("rect",":first-child").call(mle.setRect,0,0,u,h).call(yle.fill,a.paper_bgcolor);var m=a._basePlotModules||[];for(v=0;v{"use strict";var Ale=Bt(),Mle=U_().EventEmitter,Jg=Vd();function Sle(e){var t=e.emitter||new Mle,r=new Promise(function(i,a){var s=window.Image,l=e.svg,u=e.format||"png",h=e.canvas,v=e.scale||1,m=e.width||300,_=e.height||150,T=v*m,M=v*_,C=h.getContext("2d",{willReadFrequently:!0}),E=new s,L,I;u==="svg"||Ale.isSafari()?I=Jg.encodeSVG(l):(L=Jg.createBlob(l,"svg"),I=Jg.createObjectURL(L)),h.width=T,h.height=M,E.onload=function(){var O;switch(L=null,Jg.revokeObjectURL(I),u!=="svg"&&C.drawImage(E,0,0,T,M),u){case"jpeg":O=h.toDataURL("image/jpeg");break;case"png":O=h.toDataURL("image/png");break;case"webp":O=h.toDataURL("image/webp");break;case"svg":O=I;break;default:var q="Image format is not jpeg, png, svg or webp.";if(a(new Error(q)),!e.promise)return t.emit("error",q)}i(O),e.promise||t.emit("success",O)},E.onerror=function(O){if(L=null,Jg.revokeObjectURL(I),a(O),!e.promise)return t.emit("error",O)},E.src=I});return e.promise?r:t}kF.exports=Sle});var N6=de((Z2e,LF)=>{"use strict";var CF=La(),EF=I6(),kle=to(),Yf=Bt(),Kg=Vd(),Cle=Wx(),Ele=Xx(),Lle=Dy().version,q6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Dle(e,t){t=t||{};var r,i,a,s;Yf.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},s={}):(e=Yf.getGraphDiv(e),r=Yf.extendDeep([],e.data),i=Yf.extendDeep({},e.layout),a=e._context,s=e._fullLayout||{});function l(H){return!(H in t)||Yf.validate(t[H],q6[H])}if(!l("width")&&t.width!==null||!l("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Yf.join2(q6.format.values,", "," or ")+".");var u={};function h(H,U){return Yf.coerce(t,u,q6,H,U)}var v=h("format"),m=h("width"),_=h("height"),T=h("scale"),M=h("setBackground"),C=h("imageDataOnly"),E=document.createElement("div");E.style.position="absolute",E.style.left="-5000px",document.body.appendChild(E);var L=Yf.extendFlat({},i);m?L.width=m:t.width===null&&CF(s.width)&&(L.width=s.width),_?L.height=_:t.height===null&&CF(s.height)&&(L.height=s.height);var I=Yf.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:M}),O=Kg.getRedrawFunc(E);function q(){return new Promise(function(H){setTimeout(H,Kg.getDelay(E._fullLayout))})}function z(){return new Promise(function(H,U){var W=Cle(E,v,T),J=E._fullLayout.width,ee=E._fullLayout.height;function ie(){EF.purge(E),document.body.removeChild(E)}if(v==="full-json"){var oe=kle.graphJson(E,!1,"keepdata","object",!0,!0);return oe.version=Lle,oe=JSON.stringify(oe),ie(),H(C?oe:Kg.encodeJSON(oe))}if(ie(),v==="svg")return H(C?W:Kg.encodeSVG(W));var he=document.createElement("canvas");he.id=Yf.randstr(),Ele({format:v,width:J,height:ee,scale:T,canvas:he,svg:W,promise:!0}).then(H).catch(U)})}function N(H){return C?H.replace(Kg.IMAGE_URL_PREFIX,""):H}return new Promise(function(H,U){EF.newPlot(E,r,L,I).then(O).then(q).then(z).then(function(W){H(N(W))}).catch(function(W){U(W)})})}LF.exports=Dle});var zF=de((Y2e,PF)=>{"use strict";var nu=Bt(),Ple=to(),zle=B0(),Ile=cd().dfltConfig,Gu=nu.isPlainObject,Zd=Array.isArray,B6=nu.isArrayOrTypedArray;PF.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=zle.get(),a=[],s={_context:nu.extendFlat({},Ile)},l,u;Zd(t)?(s.data=nu.extendDeep([],t),l=t):(s.data=[],l=[],a.push(so("array","data"))),Gu(r)?(s.layout=nu.extendDeep({},r),u=r):(s.layout={},u={},arguments.length>1&&a.push(so("object","layout"))),Ple.supplyDefaults(s);for(var h=s._fullData,v=l.length,m=0;m_.length&&i.push(so("unused",a,v.concat(_.length)));var I=_.length,O=Array.isArray(L);O&&(I=Math.min(I,L.length));var q,z,N,H,U;if(T.dimensions===2)for(z=0;z_[z].length&&i.push(so("unused",a,v.concat(z,_[z].length)));var W=_[z].length;for(q=0;q<(O?Math.min(W,L[z].length):W);q++)N=O?L[z][q]:L,H=m[z][q],U=_[z][q],nu.validate(H,N)?U!==H&&U!==+H&&i.push(so("dynamic",a,v.concat(z,q),H,U)):i.push(so("value",a,v.concat(z,q),H))}else i.push(so("array",a,v.concat(z),m[z]));else for(z=0;z{"use strict";var Ule=Bt(),Jx=Vd();function Vle(e,t,r){var i=document.createElement("a"),a="download"in i,s=new Promise(function(l,u){var h,v;if(a)return h=Jx.createBlob(e,r),v=Jx.createObjectURL(h),i.href=v,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),Jx.revokeObjectURL(v),h=null,l(t);if(Ule.isSafari()){var m=r==="svg"?",":";base64,";return Jx.octetStream(m+encodeURIComponent(e)),l(t)}u(new Error("download error"))});return s}IF.exports=Vle});var O6=de((j2e,qF)=>{"use strict";var FF=Bt(),Hle=N6(),Gle=RF(),X2e=Vd();function Zle(e,t){var r;return FF.isPlainObject(e)||(r=FF.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,a){r&&r._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var s=Hle(e,t),l=t.filename||e.fn||"newplot";l+="."+t.format.replace("-","."),s.then(function(u){return r&&(r._snapshotInProgress=!1),Gle(u,l,t.format)}).then(function(u){i(u)}).catch(function(u){r&&(r._snapshotInProgress=!1),a(u)})})}qF.exports=Zle});var VF=de(U6=>{"use strict";var Gs=Bt(),Zs=Gs.isPlainObject,NF=B0(),BF=to(),Yle=ys(),OF=Pi(),UF=cd().dfltConfig;U6.makeTemplate=function(e){e=Gs.isPlainObject(e)?e:Gs.getGraphDiv(e),e=Gs.extendDeep({_context:UF},{data:e.data,layout:e.layout}),BF.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(M){var C={};Qg(M,C,Xle.bind(null,M));var E=Gs.coerce(M,{},Yle,"type"),L=i.data[E];L||(L=i.data[E]=[]),L.push(C)}),Qg(r,i.layout,Wle.bind(null,r)),delete i.layout.template;var a=r.template;if(Zs(a)){var s=a.layout,l,u,h,v,m,_;Zs(s)&&Kx(s,i.layout);var T=a.data;if(Zs(T)){for(u in i.data)if(h=T[u],Array.isArray(h)){for(m=i.data[u],_=m.length,v=h.length,l=0;l<_;l++)Kx(h[l%v],m[l]);for(l=_;lI?l.push({code:"unused",traceType:M,templateCount:L,dataCount:I}):I>L&&l.push({code:"reused",traceType:M,templateCount:L,dataCount:I})}}function O(q,z){for(var N in q)if(N.charAt(0)!=="_"){var H=q[N],U=ou(q,N,z);Zs(H)?(Array.isArray(q)&&H._template===!1&&H.templateitemname&&l.push({code:"missing",path:U,templateitemname:H.templateitemname}),O(H,U)):Array.isArray(H)&&jle(H)&&O(H,U)}}if(O({data:h,layout:u},""),l.length)return l.map(Jle)};function jle(e){for(var t=0;t{"use strict";var Jn=I6();Ji._doPlot=Jn._doPlot;Ji.newPlot=Jn.newPlot;Ji.restyle=Jn.restyle;Ji.relayout=Jn.relayout;Ji.redraw=Jn.redraw;Ji.update=Jn.update;Ji._guiRestyle=Jn._guiRestyle;Ji._guiRelayout=Jn._guiRelayout;Ji._guiUpdate=Jn._guiUpdate;Ji._storeDirectGUIEdit=Jn._storeDirectGUIEdit;Ji.react=Jn.react;Ji.extendTraces=Jn.extendTraces;Ji.prependTraces=Jn.prependTraces;Ji.addTraces=Jn.addTraces;Ji.deleteTraces=Jn.deleteTraces;Ji.moveTraces=Jn.moveTraces;Ji.purge=Jn.purge;Ji.addFrames=Jn.addFrames;Ji.deleteFrames=Jn.deleteFrames;Ji.animate=Jn.animate;Ji.setPlotConfig=Jn.setPlotConfig;var Kle=Uy().getGraphDiv,Qle=sx().eraseActiveShape;Ji.deleteActiveShape=function(e){return Qle(Kle(e))};Ji.toImage=N6();Ji.validate=zF();Ji.downloadImage=O6();var HF=VF();Ji.makeTemplate=HF.makeTemplate;Ji.validateTemplate=HF.validateTemplate});var YF=de((Q2e,ZF)=>{"use strict";var V6=Bt(),$le=la();ZF.exports=function(t,r,i,a){var s=a("x"),l=a("y"),u,h=$le.getComponentMethod("calendars","handleTraceDefaults");if(h(t,r,["x","y"],i),s){var v=V6.minRowLength(s);l?u=Math.min(v,V6.minRowLength(l)):(u=v,a("y0"),a("dy"))}else{if(!l)return 0;u=V6.minRowLength(l),a("x0"),a("dx")}return r._length=u,u}});var JF=de(($2e,jF)=>{"use strict";var WF=Bt().dateTick0,eue=Zi(),tue=eue.ONEWEEK;function XF(e,t){return e%tue===0?WF(t,1):WF(t,0)}jF.exports=function(t,r,i,a,s){if(s||(s={x:!0,y:!0}),s.x){var l=a("xperiod");l&&(a("xperiod0",XF(l,r.xcalendar)),a("xperiodalignment"))}if(s.y){var u=a("yperiod");u&&(a("yperiod0",XF(u,r.ycalendar)),a("yperiodalignment"))}}});var $F=de((exe,QF)=>{"use strict";var KF=["orientation","groupnorm","stackgaps"];QF.exports=function(t,r,i,a){var s=i._scatterStackOpts,l=a("stackgroup");if(l){var u=r.xaxis+r.yaxis,h=s[u];h||(h=s[u]={});var v=h[l],m=!1;v?v.traces.push(r):(v=h[l]={traceIndices:[],traces:[r]},m=!0);for(var _={orientation:r.x&&!r.y?"h":"v"},T=0;T{"use strict";var eq=Ba(),tq=Lf().hasColorscale,rq=bd(),rue=rs();aq.exports=function(t,r,i,a,s,l={}){var u=rue.isBubble(t),h=(t.line||{}).color,v;if(h&&(i=h),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),l.noAngle||(s("marker.angle"),l.noAngleRef||s("marker.angleref"),l.noStandOff||s("marker.standoff")),s("marker.color",i),tq(t,"marker")&&rq(t,r,a,s,{prefix:"marker.",cLetter:"c"}),l.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),l.noLine||(h&&!Array.isArray(h)&&r.marker.color!==h?v=h:u?v=eq.background:v=eq.defaultLine,s("marker.line.color",v),tq(t,"marker.line")&&rq(t,r,a,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0),l.noLineDash||s("marker.line.dash")),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),l.gradient){var m=s("marker.gradient.type");m!=="none"&&s("marker.gradient.color")}}});var G6=de((rxe,iq)=>{"use strict";var aue=Bt().isArrayOrTypedArray,iue=Lf().hasColorscale,nue=bd();iq.exports=function(t,r,i,a,s,l){l||(l={});var u=(t.marker||{}).color;if(u&&u._inputArray&&(u=u._inputArray),s("line.color",i),iue(t,"line"))nue(t,r,a,s,{prefix:"line.",cLetter:"c"});else{var h=(aue(u)?!1:u)||i;s("line.color",h)}s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}});var oq=de((axe,nq)=>{"use strict";nq.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var Z6=de((ixe,sq)=>{"use strict";var oue=Bt();sq.exports=function(e,t,r,i,a){a=a||{},i("textposition"),oue.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var Y6=de((nxe,uq)=>{"use strict";var $x=Ba(),lq=Bt().isArrayOrTypedArray;function sue(e){for(var t=$x.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var fq=Bt(),lue=la(),uue=zc(),fue=Sx(),hm=rs(),cue=YF(),hue=JF(),vue=$F(),due=H6(),pue=G6(),cq=oq(),mue=Z6(),yue=Y6(),gue=Bt().coercePattern;hq.exports=function(t,r,i,a){function s(M,C){return fq.coerce(t,r,uue,M,C)}var l=cue(t,r,a,s);if(l||(r.visible=!1),!!r.visible){hue(t,r,a,s),s("xhoverformat"),s("yhoverformat"),s("zorder");var u=vue(t,r,a,s);a.scattermode==="group"&&r.orientation===void 0&&s("orientation","v");var h=!u&&l{"use strict";var _ue=Ag().getAxisGroup;dq.exports=function(t,r,i,a,s){var l=r.orientation,u=r[{v:"x",h:"y"}[l]+"axis"],h=_ue(i,u)+l,v=i._alignmentOpts||{},m=a("alignmentgroup"),_=v[h];_||(_=v[h]={});var T=_[m];T?T.traces.push(r):T=_[m]={traces:[r],alignmentIndex:Object.keys(_).length,offsetGroups:{}};var M=a("offsetgroup")||"",C=T.offsetGroups,E=C[M];r._offsetIndex=0,(s!=="group"||M)&&(E||(E=C[M]={offsetIndex:Object.keys(C).length}),r._offsetIndex=E.offsetIndex)}});var yq=de((lxe,mq)=>{"use strict";var xue=Bt(),bue=pq(),wue=zc();mq.exports=function(t,r){var i,a,s,l=r.scattermode;function u(T){return xue.coerce(a._input,a,wue,T)}if(r.scattermode==="group")for(s=0;s=0;m--){var _=t[m];if(_.type==="scatter"&&_.xaxis===h.xaxis&&_.yaxis===h.yaxis){_.opacity=void 0;break}}}}}});var _q=de((uxe,gq)=>{"use strict";var Tue=Bt(),Aue=Y_();gq.exports=function(e,t){function r(a,s){return Tue.coerce(e,t,Aue,a,s)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var wq=de((fxe,bq)=>{"use strict";var Mue=La(),xq=Bt(),Sue=xq.dateTime2ms,eb=xq.incrementMonth,kue=Zi(),Cue=kue.ONEAVGMONTH;bq.exports=function(t,r,i,a){if(r.type!=="date")return{vals:a};var s=t[i+"periodalignment"];if(!s)return{vals:a};var l=t[i+"period"],u;if(Mue(l)){if(l=+l,l<=0)return{vals:a}}else if(typeof l=="string"&&l.charAt(0)==="M"){var h=+l.substring(1);if(h>0&&Math.round(h)===h)u=h;else return{vals:a}}for(var v=r.calendar,m=s==="start",_=s==="end",T=t[i+"period0"],M=Sue(T,v)||0,C=[],E=[],L=[],I=a.length,O=0;Oq;)H=eb(H,-u,v);for(;H<=q;)H=eb(H,u,v);N=eb(H,-u,v)}else{for(z=Math.round((q-M)/l),H=M+z*l;H>q;)H-=l;for(;H<=q;)H+=l;N=H-l}C[O]=m?N:_?H:(N+H)/2,E[O]=N,L[O]=H}return{vals:C,starts:E,ends:L}}});var j6=de((cxe,Aq)=>{"use strict";var W6=Lf().hasColorscale,X6=tg(),Tq=rs();Aq.exports=function(t,r){Tq.hasLines(r)&&W6(r,"line")&&X6(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),Tq.hasMarkers(r)&&(W6(r,"marker")&&X6(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),W6(r,"marker.line")&&X6(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var $g=de((hxe,Mq)=>{"use strict";var hn=Bt();Mq.exports=function(t,r){for(var i=0;i{"use strict";var Sq=Bt();kq.exports=function(t,r){Sq.isArrayOrTypedArray(r.selectedpoints)&&Sq.tagSelected(t,r)}});var eT=de((dxe,Iq)=>{"use strict";var Cq=La(),K6=Bt(),e1=Xi(),Eq=wq(),J6=Zi().BADNUM,Q6=rs(),Eue=j6(),Lue=$g(),Due=tb();function Pue(e,t){var r=e._fullLayout,i=t._xA=e1.getFromId(e,t.xaxis||"x","x"),a=t._yA=e1.getFromId(e,t.yaxis||"y","y"),s=i.makeCalcdata(t,"x"),l=a.makeCalcdata(t,"y"),u=Eq(t,i,"x",s),h=Eq(t,a,"y",l),v=u.vals,m=h.vals,_=t._length,T=new Array(_),M=t.ids,C=$6(t,r,i,a),E=!1,L,I,O,q,z,N;Pq(r,t);var H="x",U="y",W;if(C)K6.pushUnique(C.traceIndices,t.index),L=C.orientation==="v",L?(U="s",W="x"):(H="s",W="y"),z=C.stackgaps==="interpolate";else{var J=Dq(t,_);Lq(e,t,i,a,v,m,J)}var ee=!!t.xperiodalignment,ie=!!t.yperiodalignment;for(I=0;I<_;I++){var oe=T[I]={},he=Cq(v[I]),fe=Cq(m[I]);he&&fe?(oe[H]=v[I],oe[U]=m[I],ee&&(oe.orig_x=s[I],oe.xEnd=u.ends[I],oe.xStart=u.starts[I]),ie&&(oe.orig_y=l[I],oe.yEnd=h.ends[I],oe.yStart=h.starts[I])):C&&(L?he:fe)?(oe[W]=L?v[I]:m[I],oe.gap=!0,z?(oe.s=J6,E=!0):oe.s=0):oe[H]=oe[U]=J6,M&&(oe.id=String(M[I]))}if(Lue(T,t),Eue(e,t),Due(T,t),C){for(I=0;II&&T[q].gap;)q--;for(N=T[q].s,O=T.length-1;O>q;O--)T[O].s=N;for(;I{"use strict";Rq.exports=rb;var zue=Bt().distinctVals;function rb(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),a=[],s=0;s{"use strict";qq.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Hq=de((yxe,Vq)=>{"use strict";var su=La(),{isArrayOrTypedArray:Rc}=Bt(),{BADNUM:vm}=Zi(),Iue=la(),t1=Xi(),{getAxisGroup:Rue}=Ag(),ab=Fq(),{TEXTPAD:Fue}=Nq(),{LINE_SPACING:que}=No(),{BR_TAG_ALL:Nue}=ro();function Bue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,u=[],h=[],v=0;vh+l||!su(u))}for(var m=0;mi(s))):i(e.text);let a=e.outsidetextfont.size*que*r+Fue;return{ppadplus:t.some(s=>s.s<0)?a:0,ppadminus:t.some(s=>s.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function jue(e,t,r,i){for(var a=dm(i),s=0;s{"use strict";var Gq=eT(),Zq=Hq().setGroupPositions;function Kue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,u=[],h=[],v=0;vJ[m]&&m{"use strict";var $ue=_i(),Kq=Zi(),r1=Kq.BADNUM,Qq=Kq.LOG_CLIP,Xq=Qq+.5,jq=Qq-.5,ib=Bt(),efe=ib.segmentsIntersect,Jq=ib.constrain,sT=Sx();$q.exports=function(t,r){var i=r.trace||{},a=r.xaxis,s=r.yaxis,l=a.type==="log",u=s.type==="log",h=a._length,v=s._length,m=r.backoff,_=i.marker,T=r.connectGaps,M=r.baseTolerance,C=r.shape,E=C==="linear",L=i.fill&&i.fill!=="none",I=[],O=sT.minTolerance,q=t.length,z=new Array(q),N=0,H,U,W,J,ee,ie,oe,he,fe,Te,ke,Se,Ae,me,Ce,Me;function Xe(Et){var Fe=t[Et];if(!Fe)return!1;var Ue=r.linearized?a.l2p(Fe.x):a.c2p(Fe.x),wt=r.linearized?s.l2p(Fe.y):s.c2p(Fe.y);if(Ue===r1){if(l&&(Ue=a.c2p(Fe.x,!0)),Ue===r1)return!1;u&&wt===r1&&(Ue*=Math.abs(a._m*v*(a._m>0?Xq:jq)/(s._m*h*(s._m>0?Xq:jq)))),Ue*=1e3}if(wt===r1){if(u&&(wt=s.c2p(Fe.y,!0)),wt===r1)return!1;wt*=1e3}return[Ue,wt]}function it(Et,Fe,Ue,wt){var Tt=Ue-Et,vr=wt-Fe,Mr=.5-Et,Tr=.5-Fe,Gr=Tt*Tt+vr*vr,pa=Tt*Mr+vr*Tr;if(pa>0&&pa1||Math.abs(Mr.y-Ue[0][1])>1)&&(Mr=[Mr.x,Mr.y],wt&&Ct(Mr,Et)Ot||Et[1]pe)return[Jq(Et[0],mt,Ot),Jq(Et[1],ft,pe)]}function qt(Et,Fe){if(Et[0]===Fe[0]&&(Et[0]===mt||Et[0]===Ot)||Et[1]===Fe[1]&&(Et[1]===ft||Et[1]===pe))return!0}function Dt(Et,Fe){var Ue=[],wt=Vt(Et),Tt=Vt(Fe);return wt&&Tt&&qt(wt,Tt)||(wt&&Ue.push(wt),Tt&&Ue.push(Tt)),Ue}function At(Et,Fe,Ue){return function(wt,Tt){var vr=Vt(wt),Mr=Vt(Tt),Tr=[];if(vr&&Mr&&qt(vr,Mr))return Tr;vr&&Tr.push(vr),Mr&&Tr.push(Mr);var Gr=2*ib.constrain((wt[Et]+Tt[Et])/2,Fe,Ue)-((vr||wt)[Et]+(Mr||Tt)[Et]);if(Gr){var pa;vr&&Mr?pa=Gr>0==vr[Et]>Mr[Et]?vr:Mr:pa=vr||Mr,pa[Et]+=Gr}return Tr}}var Ut;C==="linear"||C==="spline"?Ut=bt:C==="hv"||C==="vh"?Ut=Dt:C==="hvh"?Ut=At(0,mt,Ot):C==="vhv"&&(Ut=At(1,ft,pe));function Wt(Et,Fe){var Ue=Fe[0]-Et[0],wt=(Fe[1]-Et[1])/Ue,Tt=(Et[1]*Fe[0]-Fe[1]*Et[0])/Ue;return Tt>0?[wt>0?mt:Ot,pe]:[wt>0?Ot:mt,ft]}function Be(Et){var Fe=Et[0],Ue=Et[1],wt=Fe===z[N-1][0],Tt=Ue===z[N-1][1];if(!(wt&&Tt))if(N>1){var vr=Fe===z[N-2][0],Mr=Ue===z[N-2][1];wt&&(Fe===mt||Fe===Ot)&&vr?Mr?N--:z[N-1]=Et:Tt&&(Ue===ft||Ue===pe)&&Mr?vr?N--:z[N-1]=Et:z[N++]=Et}else z[N++]=Et}function ut(Et){z[N-1][0]!==Et[0]&&z[N-1][1]!==Et[1]&&Be([at,Je]),Be(Et),Pt=null,at=Je=0}var sr=ib.isArrayOrTypedArray(_);function Pr(Et){if(Et&&m&&(Et.i=H,Et.d=t,Et.trace=i,Et.marker=sr?_[Et.i]:_,Et.backoff=m),nt=Et[0]/h,gt=Et[1]/v,ye=Et[0]Ot?Ot:0,Oe=Et[1]pe?pe:0,ye||Oe){if(!N)z[N++]=[ye||Et[0],Oe||Et[1]];else if(Pt){var Fe=Ut(Pt,Et);Fe.length>1&&(ut(Fe[0]),z[N++]=Fe[1])}else xt=Ut(z[N-1],Et)[0],z[N++]=xt;var Ue=z[N-1];ye&&Oe&&(Ue[0]!==ye||Ue[1]!==Oe)?(Pt&&(at!==ye&&Je!==Oe?Be(at&&Je?Wt(Pt,Et):[at||ye,Je||Oe]):at&&Je&&Be([at,Je])),Be([ye,Oe])):at-ye&&Je-Oe&&Be([ye||at,Oe||Je]),Pt=Et,at=ye,Je=Oe}else Pt&&ut(Ut(Pt,Et)[0]),z[N++]=Et}for(H=0;HGe(ie,Lt))break;W=ie,Ae=fe[0]*he[0]+fe[1]*he[1],Ae>ke?(ke=Ae,J=ie,oe=!1):Ae=t.length||!ie)break;Pr(ie),U=ie}}Pt&&Be([at||Pt[0],Je||Pt[1]]),I.push(z.slice(0,N))}var vt=C.slice(C.length-1);if(m&&vt!=="h"&&vt!=="v"){for(var pt=!1,Nt=-1,er=[],Ht=0;Ht{"use strict";var tN={tonextx:1,tonexty:1,tonext:1};rN.exports=function(t,r,i){var a,s,l,u,h,v={},m=!1,_=-1,T=0,M=-1;for(s=0;s=0?h=M:(h=M=T,T++),h<_&&(m=!0),a._groupIndex=_=h;var C=i.slice();m&&C.sort(function(L,I){var O=L[0].trace,q=I[0].trace;return O._groupIndex-q._groupIndex||O.index-q.index});var E={};for(s=0;s{"use strict";var Zu=Va(),tfe=la(),a1=Bt(),pm=a1.ensureSingle,nN=a1.identity,yn=_i(),mm=rs(),rfe=eN(),afe=aN(),nb=xx().tester;oN.exports=function(t,r,i,a,s,l){var u,h,v=!s,m=!!s&&s.duration>0,_=afe(t,r,i);if(u=a.selectAll("g.trace").data(_,function(M){return M[0].trace.uid}),u.enter().append("g").attr("class",function(M){return"trace scatter trace"+M[0].trace.uid}).style("stroke-miterlimit",2),u.order(),ife(t,u,r),m){l&&(h=l());var T=Zu.transition().duration(s.duration).ease(s.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()});T.each(function(){a.selectAll("g.trace").each(function(M,C){iN(t,C,r,M,_,this,s)})})}else u.each(function(M,C){iN(t,C,r,M,_,this,s)});v&&u.exit().remove(),a.selectAll("path:not([d])").remove()};function ife(e,t,r){t.each(function(i){var a=pm(Zu.select(this),"g","fills");yn.setClipUrl(a,r.layerClipId,e);var s=i[0].trace;s._ownFill=null,s._nextFill=null;var l=[];s._ownfill&&l.push("_ownFill"),s._nexttrace&&l.push("_nextFill");var u=a.selectAll("g").data(l,nN);u.enter().append("g"),u.exit().remove(),u.order().each(function(h){s[h]=pm(Zu.select(this),"path","js-fill")})})}function iN(e,t,r,i,a,s,l){var u=e._context.staticPlot,h;nfe(e,t,r,i,a);var v=!!l&&l.duration>0;function m(At){return v?At.transition():At}var _=r.xaxis,T=r.yaxis,M=i[0].trace,C=M.line,E=Zu.select(s),L=pm(E,"g","errorbars"),I=pm(E,"g","lines"),O=pm(E,"g","points"),q=pm(E,"g","text");if(tfe.getComponentMethod("errorbars","plot")(e,L,r,l),M.visible!==!0)return;m(E).style("opacity",M.opacity);var z,N,H=M.fill.charAt(M.fill.length-1);H!=="x"&&H!=="y"&&(H="");var U,W;H==="y"?(U=1,W=T.c2p(0,!0)):H==="x"&&(U=0,W=_.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=E;var J="",ee=[],ie=M._prevtrace,oe=null,he=null;ie&&(J=ie._prevRevpath||"",N=ie._nextFill,ee=ie._ownPolygons,oe=ie._fillsegments,he=ie._fillElement);var fe,Te,ke="",Se="",Ae,me,Ce,Me,Xe,it,nt=[];M._polygons=[];var gt=[],Ge=[],Ct=a1.noop;if(z=M._ownFill,mm.hasLines(M)||M.fill!=="none"){N&&N.datum(i),["hv","vh","hvh","vhv"].indexOf(C.shape)!==-1?(Ae=yn.steps(C.shape),me=yn.steps(C.shape.split("").reverse().join(""))):C.shape==="spline"?Ae=me=function(At){var Ut=At[At.length-1];return At.length>1&&At[0][0]===Ut[0]&&At[0][1]===Ut[1]?yn.smoothclosed(At.slice(1),C.smoothing):yn.smoothopen(At,C.smoothing)}:Ae=me=function(At){return"M"+At.join("L")},Ce=function(At){return me(At.reverse())},Ge=rfe(i,{xaxis:_,yaxis:T,trace:M,connectGaps:M.connectgaps,baseTolerance:Math.max(C.width||1,3)/4,shape:C.shape,backoff:C.backoff,simplify:C.simplify,fill:M.fill}),gt=new Array(Ge.length);var lt=0;for(h=0;h=u[0]&&E.x<=u[1]&&E.y>=h[0]&&E.y<=h[1]}),T=Math.ceil(_.length/m),M=0;a.forEach(function(E,L){var I=E[0].trace;mm.hasMarkers(I)&&I.marker.maxdisplayed>0&&L{"use strict";lN.exports={container:"marker",min:"cmin",max:"cmax"}});var fN=de((Txe,uN)=>{"use strict";var ob=Xi();uN.exports=function(t,r,i){var a={},s={_fullLayout:i},l=ob.getFromTrace(s,r,"x"),u=ob.getFromTrace(s,r,"y"),h=t.orig_x;h===void 0&&(h=t.x);var v=t.orig_y;return v===void 0&&(v=t.y),a.xLabel=ob.tickText(l,l.c2l(h),!0).text,a.yLabel=ob.tickText(u,u.c2l(v),!0).text,a}});var hT=de((Axe,cN)=>{"use strict";var uT=Va(),ym=_i(),ofe=la();function sfe(e){var t=uT.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=uT.select(this),a=r.trace||r[0].trace;fT(i,a,e)}),t.selectAll("g.text").each(function(r){var i=uT.select(this),a=r.trace||r[0].trace;cT(i,a,e)}),t.selectAll("g.trace path.js-line").call(ym.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(ym.fillGroupStyle,e,!1),ofe.getComponentMethod("errorbars","style")(t)}function fT(e,t,r){ym.pointStyle(e.selectAll("path.point"),t,r)}function cT(e,t,r){ym.textPointStyle(e.selectAll("text"),t,r)}function lfe(e,t,r){var i=t[0].trace;i.selectedpoints?(ym.selectedPointStyle(r.selectAll("path.point"),i),ym.selectedTextStyle(r.selectAll("text"),i)):(fT(r,i,e),cT(r,i,e))}cN.exports={style:sfe,stylePoints:fT,styleText:cT,styleOnSelect:lfe}});var vT=de((Mxe,hN)=>{"use strict";var gm=Ba(),ufe=rs();hN.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&gm.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var s=r.mcc||(t.marker||{}).color,l=r.mlcc||((t.marker||{}).line||{}).color;return a=s&&gm.opacity(s)?s:l&&gm.opacity(l)&&(r.mlw||((t.marker||{}).line||{}).width)?l:"",a?gm.opacity(a)<.3?gm.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&gm.opacity(i)&&ufe.hasLines(t)&&t.line.width?i:t.fillcolor)}});var pN=de((Sxe,dN)=>{"use strict";var sb=Bt(),vN=Uu(),ffe=la(),cfe=vT(),dT=Ba(),hfe=sb.fillText;dN.exports=function(t,r,i,a){var s=t.cd,l=s[0].trace,u=t.xa,h=t.ya,v=u.c2p(r),m=h.c2p(i),_=[v,m],T=l.hoveron||"",M=l.mode.indexOf("markers")!==-1?3:.5,C=!!l.xperiodalignment,E=!!l.yperiodalignment;if(T.indexOf("points")!==-1){var L=function(Se){if(C){var Ae=u.c2p(Se.xStart),me=u.c2p(Se.xEnd);return v>=Math.min(Ae,me)&&v<=Math.max(Ae,me)?0:1/0}var Ce=Math.max(3,Se.mrc||0),Me=1-1/Ce,Xe=Math.abs(u.c2p(Se.x)-v);return Xe=Math.min(Ae,me)&&m<=Math.max(Ae,me)?0:1/0}var Ce=Math.max(3,Se.mrc||0),Me=1-1/Ce,Xe=Math.abs(h.c2p(Se.y)-m);return Xent!=pe>=nt&&(mt=Ct[Ge-1][0],Ot=Ct[Ge][0],pe-ft&&(lt=mt+(Ot-mt)*(nt-ft)/(pe-ft),Ce=Math.min(Ce,lt),Me=Math.max(Me,lt)));return Ce=Math.max(Ce,0),Me=Math.min(Me,u._length),{x0:Ce,x1:Me,y0:nt,y1:nt}}if(T.indexOf("fills")!==-1&&l._fillElement){var fe=oe(l._fillElement)&&!oe(l._fillExclusionElement);if(fe){var Te=he(l._polygons);Te===null&&(Te={x0:_[0],x1:_[0],y0:_[1],y1:_[1]});var ke=dT.defaultLine;return dT.opacity(l.fillcolor)?ke=l.fillcolor:dT.opacity((l.line||{}).color)&&(ke=l.line.color),sb.extendFlat(t,{distance:t.maxHoverDistance,x0:Te.x0,x1:Te.x1,y0:Te.y0,y1:Te.y1,color:ke,hovertemplate:!1}),delete t.index,l.text&&!sb.isArrayOrTypedArray(l.text)?t.text=String(l.text):t.text=l.name,[t]}}}});var gN=de((kxe,yN)=>{"use strict";var mN=rs();yN.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],u=i[0].trace,h,v,m,_,T=!mN.hasMarkers(u)&&!mN.hasText(u);if(T)return[];if(r===!1)for(h=0;h{"use strict";_N.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var AN=de((Exe,TN)=>{"use strict";var i1=la().traceIs,pT=I5();TN.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var s=i("type",(a.splomStash||{}).type);s==="-"&&(vfe(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function vfe(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var s=dfe(t,r,i);if(s){if(s.type==="histogram"&&i==={v:"y",h:"x"}[s.orientation||"v"]){e.type="linear";return}var l=i+"calendar",u=s[l],h={noMultiCategory:!i1(s,"cartesian")||i1(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&i==={h:"x",v:"y"}[s.orientation||"v"]&&(h.noMultiCategory=!0),h.autotypenumbers=e.autotypenumbers,wN(s,i)){var v=bN(s),m=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(wN(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function bN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function wN(e,t){var r=bN(e),i=i1(e,"box-violin"),a=i1(e._fullInput||{},"candlestick");return i&&!a&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var SN=de((Lxe,MN)=>{"use strict";var pfe=Fs().isTypedArraySpec;function mfe(e,t){var r=t.dataAttr||e._id.charAt(0),i={},a,s,l;if(t.axData)a=t.axData;else for(a=[],s=0;s0||pfe(s),u;l&&(u="array");var h=i("categoryorder",u),v;h==="array"&&(v=i("categoryarray")),!l&&h==="array"&&(h=r.categoryorder="trace"),h==="trace"?r._initialCategories=[]:h==="array"?r._initialCategories=v.slice():(v=mfe(r,a).sort(),h==="category ascending"?r._initialCategories=v:h==="category descending"&&(r._initialCategories=v.reverse()))}}});var EN=de((Dxe,CN)=>{"use strict";var kN=Sf().mix,yfe=kf(),gfe=Bt();CN.exports=function(t,r,i,a){a=a||{};var s=a.dfltColor;function l(W,J){return gfe.coerce2(t,r,a.attributes,W,J)}var u=l("linecolor",s),h=l("linewidth"),v=i("showline",a.showLine||!!u||!!h);v||(delete r.linecolor,delete r.linewidth);var m=kN(s,a.bgColor,a.blend||yfe.lightFraction).toRgbString(),_=l("gridcolor",m),T=l("gridwidth"),M=l("griddash"),C=i("showgrid",a.showGrid||!!_||!!T||!!M);if(C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),a.hasMinor){var E=kN(r.gridcolor,a.bgColor,67).toRgbString(),L=l("minor.gridcolor",E),I=l("minor.gridwidth",r.gridwidth||1),O=l("minor.griddash",r.griddash||"solid"),q=i("minor.showgrid",!!L||!!I||!!O);q||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!a.noZeroLine){var z=l("zerolinelayer"),N=l("zerolinecolor",s),H=l("zerolinewidth"),U=i("zeroline",a.showGrid||!!N||!!H);U||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var yT=de((Pxe,RN)=>{"use strict";var LN=La(),_fe=la(),n1=Bt(),xfe=Pi(),bfe=Wl(),mT=Nu(),DN=a5(),PN=n5(),wfe=l5(),Tfe=u5(),Afe=SN(),Mfe=EN(),Sfe=t4(),zN=g2(),lb=eo().WEEKDAY_PATTERN,kfe=eo().HOUR_PATTERN;RN.exports=function(t,r,i,a,s){var l=a.letter,u=a.font||{},h=a.splomStash||{},v=i("visible",!a.visibleDflt),m=r._template||{},_=r.type||m.type||"-",T;if(_==="date"){var M=_fe.getComponentMethod("calendars","handleDefaults");M(t,r,"calendar",a.calendar),a.noTicklabelmode||(T=i("ticklabelmode"))}!a.noTicklabelindex&&(_==="date"||_==="linear")&&i("ticklabelindex");var C="";(!a.noTicklabelposition||_==="multicategory")&&(C=n1.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:T==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||i("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":_==="category"||_==="multicategory"?"allow":"hide past div"),zN(r,s),Sfe(t,r,i,a),Afe(t,r,i,a),a.noHover||(_!=="category"&&i("hoverformat"),a.noUnifiedhovertitle||i("unifiedhovertitle.text"));var E=i("color"),L=E!==mT.color.dflt?E:u.color,I=h.label||s._dfltTitle[l];if(Tfe(t,r,i,_,a),!v)return r;i("title.text",I),n1.coerceFont(i,"title.font",u,{overrideDflt:{size:n1.bigFont(u.size),color:L}}),DN(t,r,i,_);var O=a.hasMinor;if(O&&(xfe.newContainer(r,"minor"),DN(t,r,i,_,{isMinor:!0})),wfe(t,r,i,_,a),PN(t,r,i,a),O){var q=a.isMinor;a.isMinor=!0,PN(t,r,i,a),a.isMinor=q}Mfe(t,r,i,{dfltColor:E,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:O,attributes:mT}),O&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var z=_==="multicategory";if(!a.noTickson&&(_==="category"||z)&&(r.ticks||r.showgrid)&&(z?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),z){var N=i("showdividers");N&&(i("dividercolor"),i("dividerwidth"))}if(_==="date")if(bfe(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Cfe}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var H=0;H=2){var l="",u,h;if(s.length===2){for(u=0;u<2;u++)if(h=IN(s[u]),h){l=lb;break}}var v=i("pattern",l);if(v===lb)for(u=0;u<2;u++)h=IN(s[u]),h&&(t.bounds[u]=s[u]=h-1);if(v)for(u=0;u<2;u++)switch(h=s[u],v){case lb:if(!LN(h)){t.enabled=!1;return}if(h=+h,h!==Math.floor(h)||h<0||h>=7){t.enabled=!1;return}t.bounds[u]=s[u]=h;break;case kfe:if(!LN(h)){t.enabled=!1;return}if(h=+h,h<0||h>24){t.enabled=!1;return}t.bounds[u]=s[u]=h;break}if(r.autorange===!1){var m=r.range;if(m[0]m[1]){t.enabled=!1;return}}else if(s[0]>m[0]&&s[1]{"use strict";var Lfe=La(),ub=Bt();FN.exports=function(t,r,i,a){var s=a.counterAxes||[],l=a.overlayableAxes||[],u=a.letter,h=a.grid,v=a.overlayingDomain,m,_,T,M,C,E;h&&(_=h._domains[u][h._axisMap[r._id]],m=h._anchors[r._id],_&&(T=h[u+"side"].split(" ")[0],M=h.domain[u][T==="right"||T==="top"?1:0])),_=_||[0,1],m=m||(Lfe(t.position)?"free":s[0]||"free"),T=T||(u==="x"?"bottom":"left"),M=M||0,C=0,E=!1;var L=ub.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(s),dflt:m}},"anchor"),I=ub.coerce(t,r,{side:{valType:"enumerated",values:u==="x"?["bottom","top"]:["left","right"],dflt:T}},"side");if(L==="free"){if(u==="y"){var O=i("autoshift");O&&(M=I==="left"?v[0]:v[1],E=r.automargin?r.automargin:!0,C=I==="left"?-3:3),i("shift",C)}i("position",M)}i("automargin",E);var q=!1;if(l.length&&(q=ub.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!q){var z=i("domain",_);z[0]>z[1]-1/4096&&(r.domain=_),ub.noneOrAll(t.domain,r.domain,_),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var ZN=de((Ixe,GN)=>{"use strict";var Yd=Bt(),qN=Ba(),Dfe=Cc().isUnifiedHover,Pfe=E4(),NN=Pi(),zfe=C0(),BN=Nu(),Ife=AN(),ON=yT(),Rfe=Ag(),UN=gT(),xT=jn(),Wf=xT.id2name,VN=xT.name2id,Ffe=eo().AX_ID_PATTERN,HN=la(),fb=HN.traceIs,_T=HN.getComponentMethod;function cb(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}GN.exports=function(t,r,i){var a=r.autotypenumbers,s={},l={},u={},h={},v={},m={},_={},T={},M={},C={},E,L;for(E=0;E{"use strict";var qfe=Va(),YN=la(),hb=Bt(),cl=_i(),vb=Xi();WN.exports=function(t,r,i,a){var s=t._fullLayout;if(r.length===0){vb.redrawComponents(t);return}function l(L){var I=L.xaxis,O=L.yaxis;s._defs.select("#"+L.clipId+"> rect").call(cl.setTranslate,0,0).call(cl.setScale,1,1),L.plot.call(cl.setTranslate,I._offset,O._offset).call(cl.setScale,1,1);var q=L.plot.selectAll(".scatterlayer .trace");q.selectAll(".point").call(cl.setPointGroupScale,1,1),q.selectAll(".textpoint").call(cl.setTextPointsScale,1,1),q.call(cl.hideOutsideRangePoints,L)}function u(L,I){var O=L.plotinfo,q=O.xaxis,z=O.yaxis,N=q._length,H=z._length,U=!!L.xr1,W=!!L.yr1,J=[];if(U){var ee=hb.simpleMap(L.xr0,q.r2l),ie=hb.simpleMap(L.xr1,q.r2l),oe=ee[1]-ee[0],he=ie[1]-ie[0];J[0]=(ee[0]*(1-I)+I*ie[0]-ee[0])/(ee[1]-ee[0])*N,J[2]=N*(1-I+I*he/oe),q.range[0]=q.l2r(ee[0]*(1-I)+I*ie[0]),q.range[1]=q.l2r(ee[1]*(1-I)+I*ie[1])}else J[0]=0,J[2]=N;if(W){var fe=hb.simpleMap(L.yr0,z.r2l),Te=hb.simpleMap(L.yr1,z.r2l),ke=fe[1]-fe[0],Se=Te[1]-Te[0];J[1]=(fe[1]*(1-I)+I*Te[1]-fe[1])/(fe[0]-fe[1])*H,J[3]=H*(1-I+I*Se/ke),z.range[0]=q.l2r(fe[0]*(1-I)+I*Te[0]),z.range[1]=z.l2r(fe[1]*(1-I)+I*Te[1])}else J[1]=0,J[3]=H;vb.drawOne(t,q,{skipTitle:!0}),vb.drawOne(t,z,{skipTitle:!0}),vb.redrawComponents(t,[q._id,z._id]);var Ae=U?N/J[2]:1,me=W?H/J[3]:1,Ce=U?J[0]:0,Me=W?J[1]:0,Xe=U?J[0]/J[2]*N:0,it=W?J[1]/J[3]*H:0,nt=q._offset-Xe,gt=z._offset-it;O.clipRect.call(cl.setTranslate,Ce,Me).call(cl.setScale,1/Ae,1/me),O.plot.call(cl.setTranslate,nt,gt).call(cl.setScale,Ae,me),cl.setPointGroupScale(O.zoomScalePts,1/Ae,1/me),cl.setTextPointsScale(O.zoomScaleTxt,1/Ae,1/me)}var h;a&&(h=a());function v(){for(var L={},I=0;Ii.duration?(v(),M=window.cancelAnimationFrame(E)):M=window.requestAnimationFrame(E)}return _=Date.now(),M=window.requestAnimationFrame(E),Promise.resolve()}});var bT=de(Uo=>{"use strict";var pb=Va(),jN=la(),Wd=Bt(),Nfe=to(),Bfe=_i(),JN=j_().getModuleCalcData,rv=jn(),Yu=eo(),Ofe=Oh(),ri=Wd.ensureSingle;function db(e,t,r){return Wd.ensureSingle(e,t,r,function(i){i.datum(r)})}var Xd=Yu.zindexSeparator;Uo.name="cartesian";Uo.attr=["xaxis","yaxis"];Uo.idRoot=["x","y"];Uo.idRegex=Yu.idRegex;Uo.attrRegex=Yu.attrRegex;Uo.attributes=xN();Uo.layoutAttributes=Nu();Uo.supplyLayoutDefaults=ZN();Uo.transitionAxes=XN();Uo.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,s=r.cartesian,l=s,u={},h={},v,m,_;for(v=0;v0){var M=T.id;if(M.indexOf(Xd)!==-1)continue;M+=Xd+(v+1),T=Wd.extendFlat({},T,{id:M,plot:a._cartesianlayer.selectAll(".subplot").select("."+M)})}for(var C=[],E,L=0;L1&&(N+=Xd+z),q.push(u+N),l=0;l1,_=t.mainplotinfo;if(!t.mainplot||m)if(v)t.xlines=ri(i,"path","xlines-above"),t.ylines=ri(i,"path","ylines-above"),t.xaxislayer=ri(i,"g","xaxislayer-above"),t.yaxislayer=ri(i,"g","yaxislayer-above");else{if(!l){var T=ri(i,"g","layer-subplot");t.shapelayer=ri(T,"g","shapelayer"),t.imagelayer=ri(T,"g","imagelayer"),_&&m?(t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer):(t.minorGridlayer=ri(i,"g","minor-gridlayer"),t.gridlayer=ri(i,"g","gridlayer"),t.zerolinelayer=ri(i,"g","zerolinelayer"));var M=ri(i,"g","layer-between");t.shapelayerBetween=ri(M,"g","shapelayer"),t.imagelayerBetween=ri(M,"g","imagelayer"),ri(i,"path","xlines-below"),ri(i,"path","ylines-below"),t.overlinesBelow=ri(i,"g","overlines-below"),ri(i,"g","xaxislayer-below"),ri(i,"g","yaxislayer-below"),t.overaxesBelow=ri(i,"g","overaxes-below")}t.overplot=ri(i,"g","overplot"),t.plot=ri(t.overplot,"g",a),_&&m?t.zerolinelayerAbove=_.zerolinelayerAbove:t.zerolinelayerAbove=ri(i,"g","zerolinelayer-above"),l||(t.xlines=ri(i,"path","xlines-above"),t.ylines=ri(i,"path","ylines-above"),t.overlinesAbove=ri(i,"g","overlines-above"),ri(i,"g","xaxislayer-above"),ri(i,"g","yaxislayer-above"),t.overaxesAbove=ri(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+u),t.ylines=i.select(".ylines-"+h),t.xaxislayer=i.select(".xaxislayer-"+u),t.yaxislayer=i.select(".yaxislayer-"+h))}else{var C=_.plotgroup,E=a+"-x",L=a+"-y";t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer,t.zerolinelayerAbove=_.zerolinelayerAbove,ri(_.overlinesBelow,"path",E),ri(_.overlinesBelow,"path",L),ri(_.overaxesBelow,"g",E),ri(_.overaxesBelow,"g",L),t.plot=ri(_.overplot,"g",a),ri(_.overlinesAbove,"path",E),ri(_.overlinesAbove,"path",L),ri(_.overaxesAbove,"g",E),ri(_.overaxesAbove,"g",L),t.xlines=C.select(".overlines-"+u).select("."+E),t.ylines=C.select(".overlines-"+h).select("."+L),t.xaxislayer=C.select(".overaxes-"+u).select("."+E),t.yaxislayer=C.select(".overaxes-"+h).select("."+L)}l||(v||(db(t.minorGridlayer,"g",t.xaxis._id),db(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(I){return I[0]}).sort(rv.idSort),db(t.gridlayer,"g",t.xaxis._id),db(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(I){return I[0]}).sort(rv.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function $N(e,t){if(e){var r={};e.each(function(h){var v=h[0],m=pb.select(this);m.remove(),eB(v,t),r[v]=!0});for(var i in t._plots)for(var a=t._plots[i],s=a.overlays||[],l=0;l{"use strict";var mb=rs();tB.exports={hasLines:mb.hasLines,hasMarkers:mb.hasMarkers,hasText:mb.hasText,isBubble:mb.isBubble,attributes:zc(),layoutAttributes:Y_(),supplyDefaults:vq(),crossTraceDefaults:yq(),supplyLayoutDefaults:_q(),calc:eT().calc,crossTraceCalc:Wq(),arraysToCalcdata:$g(),plot:sN(),colorbar:lT(),formatLabels:fN(),style:hT().style,styleOnSelect:hT().styleOnSelect,hoverPoints:pN(),selectPoints:gN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:bT(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var nB=de((Nxe,iB)=>{"use strict";var Vfe=Va(),Hfe=Ba(),aB=m6(),wT=Bt(),Gfe=wT.strScale,Zfe=wT.strRotate,Yfe=wT.strTranslate;iB.exports=function(t,r,i){var a=t.node(),s=aB[i.arrowhead||0],l=aB[i.startarrowhead||0],u=(i.arrowwidth||1)*(i.arrowsize||1),h=(i.arrowwidth||1)*(i.startarrowsize||1),v=r.indexOf("start")>=0,m=r.indexOf("end")>=0,_=s.backoff*u+i.standoff,T=l.backoff*h+i.startstandoff,M,C,E,L;if(a.nodeName==="line"){M={x:+t.attr("x1"),y:+t.attr("y1")},C={x:+t.attr("x2"),y:+t.attr("y2")};var I=M.x-C.x,O=M.y-C.y;if(E=Math.atan2(O,I),L=E+Math.PI,_&&T&&_+T>Math.sqrt(I*I+O*O)){fe();return}if(_){if(_*_>I*I+O*O){fe();return}var q=_*Math.cos(E),z=_*Math.sin(E);C.x+=q,C.y+=z,t.attr({x2:C.x,y2:C.y})}if(T){if(T*T>I*I+O*O){fe();return}var N=T*Math.cos(E),H=T*Math.sin(E);M.x-=N,M.y-=H,t.attr({x1:M.x,y1:M.y})}}else if(a.nodeName==="path"){var U=a.getTotalLength(),W="";if(U<_+T){fe();return}var J=a.getPointAtLength(0),ee=a.getPointAtLength(.1);E=Math.atan2(J.y-ee.y,J.x-ee.x),M=a.getPointAtLength(Math.min(T,U)),W="0px,"+T+"px,";var ie=a.getPointAtLength(U),oe=a.getPointAtLength(U-.1);L=Math.atan2(ie.y-oe.y,ie.x-oe.x),C=a.getPointAtLength(Math.max(0,U-_));var he=W?T+_:_;W+=U-he+"px,"+U+"px",t.style("stroke-dasharray",W)}function fe(){t.style("stroke-dasharray","0px,100px")}function Te(ke,Se,Ae,me){ke.path&&(ke.noRotate&&(Ae=0),Vfe.select(a.parentNode).append("path").attr({class:t.attr("class"),d:ke.path,transform:Yfe(Se.x,Se.y)+Zfe(Ae*180/Math.PI)+Gfe(me)}).style({fill:Hfe.rgb(i.arrowcolor),"stroke-width":0}))}v&&Te(l,M,E,h),m&&Te(s,C,L,u)}});var yb=de((Bxe,fB)=>{"use strict";var oB=Va(),TT=la(),Wfe=to(),iv=Bt(),AT=iv.strTranslate,s1=Xi(),jd=Ba(),Fc=_i(),sB=Uu(),MT=ro(),ST=Wh(),o1=jl(),Xfe=Pi().arrayEditor,jfe=nB();fB.exports={draw:Jfe,drawOne:lB,drawRaw:uB};function Jfe(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Tt="right":Tt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Tt]}for(var ft=!1,pe=["x","y"],De=0;De1)&&(at===Oe?(Lt=Je.r2fraction(t["a"+ye]),(Lt<0||Lt>1)&&(ft=!0)):ft=!0),Ut=Je._offset+Je.r2p(t[ye]),ut=.5}else{var vt=Pr==="domain";ye==="x"?(Be=t[ye],Ut=vt?Je._offset+Je._length*Be:Ut=u.l+u.w*Be):(Be=1-t[ye],Ut=vt?Je._offset+Je._length*Be:Ut=u.t+u.h*Be),ut=t.showarrow?.5:Be}if(t.showarrow){At.head=Ut;var pt=t["a"+ye];if(sr=xt*Ot(.5,t.xanchor)-bt*Ot(.5,t.yanchor),at===Oe){var Nt=s1.getRefType(at);Nt==="domain"?(ye==="y"&&(pt=1-pt),At.tail=Je._offset+Je._length*pt):Nt==="paper"?ye==="y"?(pt=1-pt,At.tail=u.t+u.h*pt):At.tail=u.l+u.w*pt:At.tail=Je._offset+Je.r2p(pt),Wt=sr}else At.tail=Ut+pt,Wt=sr+pt;At.text=At.tail+sr;var er=l[ye==="x"?"width":"height"];if(Oe==="paper"&&(At.head=iv.constrain(At.head,1,er-1)),at==="pixel"){var Ht=-Math.max(At.tail-3,At.text),Gt=Math.min(At.tail+3,At.text)-er;Ht>0?(At.tail+=Ht,At.text+=Ht):Gt>0&&(At.tail-=Gt,At.text-=Gt)}At.tail+=Dt,At.head+=Dt}else sr=Vt*Ot(ut,qt),Wt=sr,At.text=Ut+sr;At.text+=Dt,sr+=Dt,Wt+=Dt,t["_"+ye+"padplus"]=Vt/2+Wt,t["_"+ye+"padminus"]=Vt/2-Wt,t["_"+ye+"size"]=Vt,t["_"+ye+"shift"]=sr}if(ft){U.remove();return}var hr=0,yr=0;if(t.align!=="left"&&(hr=(Ge-nt)*(t.align==="center"?.5:1)),t.valign!=="top"&&(yr=(Ct-gt)*(t.valign==="middle"?.5:1)),Xe)Me.select("svg").attr({x:ee+hr-1,y:ee+yr}).call(Fc.setClipUrl,oe?E:null,e);else{var mr=ee+yr-it.top,Et=ee+hr-it.left;ke.call(MT.positionText,Et,mr).call(Fc.setClipUrl,oe?E:null,e)}he.select("rect").call(Fc.setRect,ee,ee,Ge,Ct),ie.call(Fc.setRect,W/2,W/2,lt-W,mt-W),U.call(Fc.setTranslate,Math.round(L.x.text-lt/2),Math.round(L.y.text-mt/2)),q.attr({transform:"rotate("+I+","+L.x.text+","+L.y.text+")"});var Fe=function(wt,Tt){O.selectAll(".annotation-arrow-g").remove();var vr=L.x.head,Mr=L.y.head,Tr=L.x.tail+wt,Gr=L.y.tail+Tt,pa=L.x.text+wt,Aa=L.y.text+Tt,ai=iv.rotationXYMatrix(I,pa,Aa),bi=iv.apply2DTransform(ai),hi=iv.apply2DTransform2(ai),Hi=+ie.attr("width"),Ii=+ie.attr("height"),_n=pa-.5*Hi,an=_n+Hi,Gi=Aa-.5*Ii,ma=Gi+Ii,nn=[[_n,Gi,_n,ma],[_n,ma,an,ma],[an,ma,an,Gi],[an,Gi,_n,Gi]].map(hi);if(!nn.reduce(function(Ye,yt){return Ye^!!iv.segmentsIntersect(vr,Mr,vr+1e6,Mr+1e6,yt[0],yt[1],yt[2],yt[3])},!1)){nn.forEach(function(Ye){var yt=iv.segmentsIntersect(Tr,Gr,vr,Mr,Ye[0],Ye[1],Ye[2],Ye[3]);yt&&(Tr=yt.x,Gr=yt.y)});var Bi=t.arrowwidth,ir=t.arrowcolor,ii=t.arrowside,Wr=O.append("g").style({opacity:jd.opacity(ir)}).classed("annotation-arrow-g",!0),le=Wr.append("path").attr("d","M"+Tr+","+Gr+"L"+vr+","+Mr).style("stroke-width",Bi+"px").call(jd.stroke,jd.rgb(ir));if(jfe(le,ii,t),h.annotationPosition&&le.node().parentNode&&!i){var te=vr,se=Mr;if(t.standoff){var ue=Math.sqrt(Math.pow(vr-Tr,2)+Math.pow(Mr-Gr,2));te+=t.standoff*(Tr-vr)/ue,se+=t.standoff*(Gr-Mr)/ue}var Le=Wr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Tr-te)+","+(Gr-se),transform:AT(te,se)}).style("stroke-width",Bi+6+"px").call(jd.stroke,"rgba(0,0,0,0)").call(jd.fill,"rgba(0,0,0,0)"),Ne,rt;o1.init({element:Le.node(),gd:e,prepFn:function(){var Ye=Fc.getTranslate(U);Ne=Ye.x,rt=Ye.y,a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0)},moveFn:function(Ye,yt){var Mt=bi(Ne,rt),Rt=Mt[0]+Ye,tr=Mt[1]+yt;U.call(Fc.setTranslate,Rt,tr),M("x",av(a,Ye,"x",u,t)),M("y",av(s,yt,"y",u,t)),t.axref===t.xref&&M("ax",av(a,Ye,"ax",u,t)),t.ayref===t.yref&&M("ay",av(s,yt,"ay",u,t)),Wr.attr("transform",AT(Ye,yt)),q.attr({transform:"rotate("+I+","+Rt+","+tr+")"})},doneFn:function(){TT.call("_guiRelayout",e,C());var Ye=document.querySelector(".js-notes-box-panel");Ye&&Ye.redraw(Ye.selectedObj)}})}}};if(t.showarrow&&Fe(0,0),z){var Ue;o1.init({element:U.node(),gd:e,prepFn:function(){Ue=q.attr("transform")},moveFn:function(wt,Tt){var vr="pointer";if(t.showarrow)t.axref===t.xref?M("ax",av(a,wt,"ax",u,t)):M("ax",t.ax+wt),t.ayref===t.yref?M("ay",av(s,Tt,"ay",u.w,t)):M("ay",t.ay+Tt),Fe(wt,Tt);else{if(i)return;var Mr,Tr;if(a)Mr=av(a,wt,"x",u,t);else{var Gr=t._xsize/u.w,pa=t.x+(t._xshift-t.xshift)/u.w-Gr/2;Mr=o1.align(pa+wt/u.w,Gr,0,1,t.xanchor)}if(s)Tr=av(s,Tt,"y",u,t);else{var Aa=t._ysize/u.h,ai=t.y-(t._yshift+t.yshift)/u.h-Aa/2;Tr=o1.align(ai-Tt/u.h,Aa,0,1,t.yanchor)}M("x",Mr),M("y",Tr),(!a||!s)&&(vr=o1.getCursor(a?.5:Mr,s?.5:Tr,t.xanchor,t.yanchor))}q.attr({transform:AT(wt,Tt)+Ue}),ST(U,vr)},clickFn:function(wt,Tt){t.captureevents&&e.emit("plotly_clickannotation",H(Tt))},doneFn:function(){ST(U),TT.call("_guiRelayout",e,C());var wt=document.querySelector(".js-notes-box-panel");wt&&wt.redraw(wt.selectedObj)}})}}h.annotationText?ke.call(MT.makeEditable,{delegate:U,gd:e}).call(Se).on("edit",function(me){t.text=me,this.call(Se),M("text",me),a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0),TT.call("_guiRelayout",e,C())}):ke.call(Se)}});var mB=de((Oxe,pB)=>{"use strict";var cB=Bt(),Kfe=la(),hB=Pi().arrayEditor;pB.exports={hasClickToShow:Qfe,onClick:$fe};function Qfe(e,t){var r=dB(e,t);return r.on.length>0||r.explicitOff.length>0}function $fe(e,t){var r=dB(e,t),i=r.on,a=r.off.concat(r.explicitOff),s={},l=e._fullLayout.annotations,u,h;if(i.length||a.length){for(u=0;u{"use strict";var kT=Bt(),_m=Ba();yB.exports=function(t,r,i,a){a("opacity");var s=a("bgcolor"),l=a("bordercolor"),u=_m.opacity(l);a("borderpad");var h=a("borderwidth"),v=a("showarrow");a("text",v?" ":i._dfltTitle.annotation),a("textangle"),kT.coerceFont(a,"font",i.font),a("width"),a("align");var m=a("height");if(m&&a("valign"),v){var _=a("arrowside"),T,M;_.indexOf("end")!==-1&&(T=a("arrowhead"),M=a("arrowsize")),_.indexOf("start")!==-1&&(a("startarrowhead",T),a("startarrowsize",M)),a("arrowcolor",u?r.bordercolor:_m.defaultLine),a("arrowwidth",(u&&h||1)*2),a("standoff"),a("startstandoff")}var C=a("hovertext"),E=i.hoverlabel||{};if(C){var L=a("hoverlabel.bgcolor",E.bgcolor||(_m.opacity(s)?_m.rgb(s):_m.defaultLine)),I=a("hoverlabel.bordercolor",E.bordercolor||_m.contrast(L)),O=kT.extendFlat({},E.font);O.color||(O.color=I),kT.coerceFont(a,"hoverlabel.font",O)}a("captureevents",!!C)}});var _B=de((Vxe,gB)=>{"use strict";var ET=Bt(),Jd=Xi(),ece=Wl(),tce=CT(),rce=fm();gB.exports=function(t,r){ece(t,r,{name:"annotations",handleItemDefaults:ace})};function ace(e,t,r){function i(q,z){return ET.coerce(e,t,rce,q,z)}var a=i("visible"),s=i("clicktoshow");if(a||s){tce(e,t,r,i);for(var l=t.showarrow,u=["x","y"],h=[-10,-30],v={_fullLayout:r},m=0;m<2;m++){var _=u[m],T=Jd.coerceRef(e,t,v,_,"","paper");if(T!=="paper"){var M=Jd.getFromId(v,T);M._annIndices.push(t._index)}if(Jd.coercePosition(t,v,i,T,_,.5),l){var C="a"+_,E=Jd.coerceRef(e,t,v,C,"pixel",["pixel","paper"]);E!=="pixel"&&E!==T&&(E=t[C]="pixel");var L=E==="pixel"?h[m]:.4;Jd.coercePosition(t,v,i,E,C,L)}i(_+"anchor"),i(_+"shift")}if(ET.noneOrAll(e,t,["x","y"]),l&&ET.noneOrAll(e,t,["ax","ay"]),s){var I=i("xclick"),O=i("yclick");t._xclick=I===void 0?t.x:Jd.cleanPosition(I,v,t.xref),t._yclick=O===void 0?t.y:Jd.cleanPosition(O,v,t.yref)}}}});var wB=de((Hxe,bB)=>{"use strict";var LT=Bt(),Kd=Xi(),ice=yb().draw;bB.exports=function(t){var r=t._fullLayout,i=LT.filterVisible(r.annotations);if(i.length&&t._fullData.length)return LT.syncOrAsync([ice,nce],t)};function nce(e){var t=e._fullLayout;LT.filterVisible(t.annotations).forEach(function(r){var i=Kd.getFromId(e,r.xref),a=Kd.getFromId(e,r.yref),s=Kd.getRefType(r.xref),l=Kd.getRefType(r.yref);r._extremes={},s==="range"&&xB(r,i),l==="range"&&xB(r,a)})}function xB(e,t){var r=t._id,i=r.charAt(0),a=e[i],s=e["a"+i],l=e[i+"ref"],u=e["a"+i+"ref"],h=e["_"+i+"padplus"],v=e["_"+i+"padminus"],m={x:1,y:-1}[i]*e[i+"shift"],_=3*e.arrowsize*e.arrowwidth||0,T=_+m,M=_-m,C=3*e.startarrowsize*e.arrowwidth||0,E=C+m,L=C-m,I;if(u===l){var O=Kd.findExtremes(t,[t.r2c(a)],{ppadplus:T,ppadminus:M}),q=Kd.findExtremes(t,[t.r2c(s)],{ppadplus:Math.max(h,E),ppadminus:Math.max(v,L)});I={min:[O.min[0],q.min[0]],max:[O.max[0],q.max[0]]}}else E=s?E+s:E,L=s?L-s:L,I=Kd.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(h,T,E),ppadminus:Math.max(v,M,L)});e._extremes[r]=I}});var AB=de((Gxe,TB)=>{"use strict";var oce=La(),sce=h_();TB.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(!(s||l))return;var u=t._fullLayout.annotations,h=r._id.charAt(0),v,m;function _(M){var C=v[M],E=null;s?E=sce(C,r.range):E=Math.pow(10,C),oce(E)||(E=null),a(m+M,E)}for(var T=0;T{"use strict";var DT=yb(),MB=mB();SB.exports={moduleType:"component",name:"annotations",layoutAttributes:fm(),supplyLayoutDefaults:_B(),includeBasePlot:Vg()("annotations"),calcAutorange:wB(),draw:DT.draw,drawOne:DT.drawOne,drawRaw:DT.drawRaw,hasClickToShow:MB.hasClickToShow,onClick:MB.onClick,convertCoords:AB()}});var gb=de((Yxe,CB)=>{"use strict";var Ni=fm(),lce=il().overrideAll,uce=Pi().templatedArray;CB.exports=lce(uce("annotation",{visible:Ni.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ni.xanchor,xshift:Ni.xshift,yanchor:Ni.yanchor,yshift:Ni.yshift,text:Ni.text,textangle:Ni.textangle,font:Ni.font,width:Ni.width,height:Ni.height,opacity:Ni.opacity,align:Ni.align,valign:Ni.valign,bgcolor:Ni.bgcolor,bordercolor:Ni.bordercolor,borderpad:Ni.borderpad,borderwidth:Ni.borderwidth,showarrow:Ni.showarrow,arrowcolor:Ni.arrowcolor,arrowhead:Ni.arrowhead,startarrowhead:Ni.startarrowhead,arrowside:Ni.arrowside,arrowsize:Ni.arrowsize,startarrowsize:Ni.startarrowsize,arrowwidth:Ni.arrowwidth,standoff:Ni.standoff,startstandoff:Ni.startstandoff,hovertext:Ni.hovertext,hoverlabel:Ni.hoverlabel,captureevents:Ni.captureevents}),"calc","from-root")});var LB=de((Wxe,EB)=>{"use strict";var PT=Bt(),fce=Xi(),cce=Wl(),hce=CT(),vce=gb();EB.exports=function(t,r,i){cce(t,r,{name:"annotations",handleItemDefaults:dce,fullLayout:i.fullLayout})};function dce(e,t,r,i){function a(u,h){return PT.coerce(e,t,vce,u,h)}function s(u){var h=u+"axis",v={_fullLayout:{}};return v._fullLayout[h]=r[h],fce.coercePosition(t,v,a,u,u,.5)}var l=a("visible");l&&(hce(e,t,i.fullLayout,a),s("x"),s("y"),s("z"),PT.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",a("ax",-10),a("ay",-30),PT.noneOrAll(e,t,["ax","ay"])))}});var IB=de((Xxe,zB)=>{"use strict";var DB=Bt(),PB=Xi();zB.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function zT(e,t){var r=[0,0,0,0],i,a;for(i=0;i<4;++i)for(a=0;a<4;++a)r[a]+=e[4*i+a]*t[i];return r}function mce(e,t){var r=zT(e.projection,zT(e.view,zT(e.model,[t[0],t[1],t[2],1])));return r}RB.exports=mce});var NB=de((Jxe,qB)=>{"use strict";var yce=yb().drawRaw,gce=FB(),_ce=["x","y","z"];qB.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,s=0;s1){u=!0;break}}u?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=gce(t.glplot.cameraParams,[r.xaxis.r2l(l.x)*i[0],r.yaxis.r2l(l.y)*i[1],r.zaxis.r2l(l.z)*i[2]]),yce(t.graphDiv,l,s,t.id,l._xa,l._ya))}}});var UB=de((Kxe,OB)=>{"use strict";var xce=la(),BB=Bt();OB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:gb()}}},layoutAttributes:gb(),handleDefaults:LB(),includeBasePlot:bce,convert:IB(),draw:NB()};function bce(e,t){var r=xce.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),s=0;s{"use strict";var Qxe=eo(),VB=qo(),HB=zc().line,wce=_c().dash,Wu=mn().extendFlat,Tce=Pi().templatedArray,$xe=Og(),xm=ys(),GB=fm(),{shapeTexttemplateAttrs:Ace,templatefallbackAttrs:Mce}=Cf(),Sce=T_();ZB.exports=Tce("shape",{visible:Wu({},xm.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Wu({},xm.legend,{editType:"calc+arraydraw"}),legendgroup:Wu({},xm.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Wu({},xm.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:VB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Wu({},xm.legendrank,{editType:"calc+arraydraw"}),legendwidth:Wu({},xm.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Wu({},GB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Wu({},GB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Wu({},HB.color,{editType:"arraydraw"}),width:Wu({},HB.width,{editType:"calc+arraydraw"}),dash:Wu({},wce,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Ace({},{keys:Object.keys(Sce)}),texttemplatefallback:Mce({editType:"arraydraw"}),font:VB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var WB=de((tbe,YB)=>{"use strict";var bm=Bt(),hl=Xi(),kce=Wl(),Cce=IT(),l1=Qh();YB.exports=function(t,r){kce(t,r,{name:"shapes",handleItemDefaults:Lce})};function Ece(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Lce(e,t,r){function i(q,z){return bm.coerce(e,t,Cce,q,z)}t._isShape=!0;var a=i("visible");if(!a)return;var s=i("showlegend");i("legend"),i("legendgroup"),s&&(i("legendwidth"),i("legendgrouptitle.text"),bm.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var l=i("path"),u=l?"path":"rect",h=i("type",u),v=h!=="path";v&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var m=i("line.width");m&&(i("line.color"),i("line.dash"));var _=i("xsizemode"),T=i("ysizemode");let M=[.25,.75],C=[0,10];["x","y"].forEach(q=>{var z=q+"anchor",N=q==="x"?_:T,H={_fullLayout:r},U,W,J,ee;let ie=q+"ref",oe=e[ie];if(Array.isArray(oe)&&oe.length>0){let he=l1.countDefiningCoords(h,l,q);ee=hl.coerceRefArray(e,t,H,q,void 0,"paper",he),t["_"+q+"refArray"]=!0}else ee=hl.coerceRef(e,t,H,q,void 0,"paper");if(Array.isArray(ee))ee.forEach(function(he){hl.getRefType(he)==="range"&&(U=hl.getFromId(H,he),U&&U._shapeIndices.indexOf(t._index)===-1&&U._shapeIndices.push(t._index))}),v&&[0,1].forEach(function(he){let fe=ee[he];hl.getRefType(fe)==="range"?(U=hl.getFromId(H,fe),W=l1.shapePositionToRange(U),J=l1.rangeToShapePosition(U),(U.type==="category"||U.type==="multicategory")&&i(q+he+"shift")):W=J=bm.identity;let ke=q+he,Se=e[ke];if(e[ke]=W(e[ke],!0),N==="pixel"?i(ke,C[he]):hl.coercePosition(t,H,i,fe,ke,M[he]),t[ke]=J(t[ke]),e[ke]=Se,he===0&&N==="pixel"){let Ae=e[z];e[z]=W(e[z],!0),hl.coercePosition(t,H,i,fe,z,.25),t[z]=J(t[z]),e[z]=Ae}});else{if(hl.getRefType(ee)==="range"?(U=hl.getFromId(H,ee),U._shapeIndices.push(t._index),J=l1.rangeToShapePosition(U),W=l1.shapePositionToRange(U),v&&(U.type==="category"||U.type==="multicategory")&&(i(q+"0shift"),i(q+"1shift"))):W=J=bm.identity,v){let fe=q+"0",Te=q+"1",ke=e[fe],Se=e[Te];e[fe]=W(e[fe],!0),e[Te]=W(e[Te],!0),N==="pixel"?(i(fe,C[0]),i(Te,C[1])):(hl.coercePosition(t,H,i,ee,fe,M[0]),hl.coercePosition(t,H,i,ee,Te,M[1])),t[fe]=J(t[fe]),t[Te]=J(t[Te]),e[fe]=ke,e[Te]=Se}if(N==="pixel"){let fe=e[z];e[z]=W(e[z],!0),hl.coercePosition(t,H,i,ee,z,.25),t[z]=J(t[z]),e[z]=fe}}}),v&&bm.noneOrAll(e,t,["x0","x1","y0","y1"]);var E=h==="line",L,I;if(v&&(L=i("label.texttemplate"),i("label.texttemplatefallback")),L||(I=i("label.text")),I||L){i("label.textangle");var O=i("label.textposition",E?"middle":"middle center");i("label.xanchor"),i("label.yanchor",Ece(E,O)),i("label.padding"),bm.coerceFont(i,"label.font",r.font)}}});var JB=de((rbe,jB)=>{"use strict";var Dce=Ba(),XB=Bt();function Pce(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}jB.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),XB.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var a=i("newshape.line.width");if(a){var s=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",Dce.contrast(s)),i("newshape.line.dash")}var l=t.dragmode==="drawline",u=i("newshape.label.text"),h=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),u||h){i("newshape.label.textangle");var v=i("newshape.label.textposition",l?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",Pce(l,v)),i("newshape.label.padding"),XB.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var aO=de((abe,rO)=>{"use strict";var RT=Bt(),lu=Xi(),Xf=xg(),FT=Qh();rO.exports=function(t){var r=t._fullLayout,i=RT.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var a=0;a{l=lu.getFromId(t,_),s._extremes[l._id]=lu.findExtremes(l,T,QB(s))})}else s.xref!=="paper"&&h!=="domain"&&(l=lu.getFromId(t,s.xref),u=eO(l,s,Xf.paramIsX),u&&(s._extremes[l._id]=lu.findExtremes(l,u,QB(s))));if(v==="array"){let m=KB(t,s,"y");Object.entries(m).forEach(([_,T])=>{l=lu.getFromId(t,_),s._extremes[l._id]=lu.findExtremes(l,T,$B(s))})}else s.yref!=="paper"&&v!=="domain"&&(l=lu.getFromId(t,s.yref),u=eO(l,s,Xf.paramIsY),u&&(s._extremes[l._id]=lu.findExtremes(l,u,$B(s))))}};function KB(e,t,r){let i=t[r+"ref"],a=r==="x"?Xf.paramIsX:Xf.paramIsY;function s(_,T){_==="paper"||lu.getRefType(_)==="domain"||(l[_]||(l[_]=[]),l[_].push(T))}let l={};if(t.type==="path"&&t.path){let _=t.path.match(Xf.segmentRE)||[];for(var u=0,h=0;h<_.length;h++){let T=_[h],M=T.charAt(0),C=a[M].drawn;if(C===void 0)continue;let E=T.slice(1).match(Xf.paramRE);E&&E.length>C&&(s(i[u],E[C]),u++)}}else s(i[0],t[r+"0"]),s(i[1],t[r+"1"]);let v={};for(let _ in l){let T=lu.getFromId(e,_);if(T){var m=T.type==="category"||T.type==="multicategory"?T.r2c:T.d2c;T.type==="date"&&(m=FT.decodeDate(m)),v[T._id]=l[_].map(m)}}return v}function QB(e){return tO(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function $B(e){return tO(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function tO(e,t,r,i,a,s){var l=e/2,u=s;if(t==="pixel"){var h=a?FT.extractPathCoords(a,s?Xf.paramIsY:Xf.paramIsX):[r,i],v=RT.aggNums(Math.max,null,h),m=RT.aggNums(Math.min,null,h),_=m<0?Math.abs(m)+l:l,T=v>0?v+l:l;return{ppad:l,ppadplus:u?_:T,ppadminus:u?T:_}}else return{ppad:l}}function eO(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",s,l,u=0,h=0,v=a?e.r2c:e.d2c,m=t[i+"sizemode"]==="scaled";if(m?(s=t[i+"0"],l=t[i+"1"],a&&(u=t[i+"0shift"],h=t[i+"1shift"])):(s=t[i+"anchor"],l=t[i+"anchor"]),s!==void 0)return[v(s)+u,v(l)+h];if(t.path){var _=1/0,T=-1/0,M=t.path.match(Xf.segmentRE),C,E,L,I,O;for(e.type==="date"&&(v=FT.decodeDate(v)),C=0;CT&&(T=O)));if(T>=_)return[_,T]}}});var oO=de((ibe,nO)=>{"use strict";var iO=sx();nO.exports={moduleType:"component",name:"shapes",layoutAttributes:IT(),supplyLayoutDefaults:WB(),supplyDrawNewShapeDefaults:JB(),includeBasePlot:Vg()("shapes"),calcAutorange:aO(),draw:iO.draw,drawOne:iO.drawOne}});var qT=de((obe,lO)=>{"use strict";var sO=eo(),zce=Pi().templatedArray,nbe=Og();lO.exports=zce("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",sO.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",sO.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var fO=de((sbe,uO)=>{"use strict";var Ice=Bt(),NT=Xi(),Rce=Wl(),Fce=qT(),qce="images";uO.exports=function(t,r){var i={name:qce,handleItemDefaults:Nce};Rce(t,r,i)};function Nce(e,t,r){function i(T,M){return Ice.coerce(e,t,Fce,T,M)}var a=i("source"),s=i("visible",!!a);if(!s)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var l={_fullLayout:r},u=["x","y"],h=0;h<2;h++){var v=u[h],m=NT.coerceRef(e,t,l,v,"paper",void 0);if(m!=="paper"){var _=NT.getFromId(l,m);_._imgIndices.push(t._index)}NT.coercePosition(t,l,i,m,v,0)}return t}});var dO=de((lbe,vO)=>{"use strict";var cO=Va(),Bce=_i(),wm=Xi(),hO=jn(),Oce=Oh();vO.exports=function(t){var r=t._fullLayout,i=[],a={},s=[],l,u;for(u=0;u{"use strict";var pO=La(),Uce=h_();mO.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(s||l){for(var u=t._fullLayout.images,h=r._id.charAt(0),v,m,_=0;_{"use strict";gO.exports={moduleType:"component",name:"images",layoutAttributes:qT(),supplyLayoutDefaults:fO(),includeBasePlot:Vg()("images"),draw:dO(),convertCoords:yO()}});var _b=de((cbe,xO)=>{"use strict";xO.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var BT=de((hbe,wO)=>{"use strict";var Vce=qo(),Hce=kf(),Gce=mn().extendFlat,Zce=il().overrideAll,Yce=A_(),bO=Pi().templatedArray,Wce=bO("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});wO.exports=Zce(bO("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Wce,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Gce(Yce({editType:"arraydraw"}),{}),font:Vce({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Hce.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var SO=de((vbe,MO)=>{"use strict";var xb=Bt(),TO=Wl(),AO=BT(),Xce=_b(),jce=Xce.name,Jce=AO.buttons;MO.exports=function(t,r){var i={name:jce,handleItemDefaults:Kce};TO(t,r,i)};function Kce(e,t,r){function i(l,u){return xb.coerce(e,t,AO,l,u)}var a=TO(e,t,{name:"buttons",handleItemDefaults:Qce}),s=i("visible",a.length>0);s&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),xb.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),xb.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function Qce(e,t){function r(a,s){return xb.coerce(e,t,Jce,a,s)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var EO=de((dbe,CO)=>{"use strict";CO.exports=rn;var Xu=Va(),kO=Ba(),Tm=_i(),bb=Bt();function rn(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}rn.barWidth=2;rn.barLength=20;rn.barRadius=2;rn.barPad=1;rn.barColor="#808BA4";rn.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,s=a.width,l=a.height;this.position=t;var u=this.position.l,h=this.position.w,v=this.position.t,m=this.position.h,_=this.position.direction,T=_==="down",M=_==="left",C=_==="right",E=_==="up",L=h,I=m,O,q,z,N;!T&&!M&&!C&&!E&&(this.position.direction="down",T=!0);var H=T||E;H?(O=u,q=O+L,T?(z=v,N=Math.min(z+I,l),I=N-z):(N=v+I,z=Math.max(N-I,0),I=N-z)):(z=v,N=z+I,M?(q=u+L,O=Math.max(q-L,0),L=q-O):(O=u,q=Math.min(O+L,s),L=q-O)),this._box={l:O,t:z,w:L,h:I};var U=h>L,W=rn.barLength+2*rn.barPad,J=rn.barWidth+2*rn.barPad,ee=u,ie=v+m;ie+J>l&&(ie=l-J);var oe=this.container.selectAll("rect.scrollbar-horizontal").data(U?[0]:[]);oe.exit().on(".drag",null).remove(),oe.enter().append("rect").classed("scrollbar-horizontal",!0).call(kO.fill,rn.barColor),U?(this.hbar=oe.attr({rx:rn.barRadius,ry:rn.barRadius,x:ee,y:ie,width:W,height:J}),this._hbarXMin=ee+W/2,this._hbarTranslateMax=L-W):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var he=m>I,fe=rn.barWidth+2*rn.barPad,Te=rn.barLength+2*rn.barPad,ke=u+h,Se=v;ke+fe>s&&(ke=s-fe);var Ae=this.container.selectAll("rect.scrollbar-vertical").data(he?[0]:[]);Ae.exit().on(".drag",null).remove(),Ae.enter().append("rect").classed("scrollbar-vertical",!0).call(kO.fill,rn.barColor),he?(this.vbar=Ae.attr({rx:rn.barRadius,ry:rn.barRadius,x:ke,y:Se,width:fe,height:Te}),this._vbarYMin=Se+Te/2,this._vbarTranslateMax=I-Te):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var me=this.id,Ce=O-.5,Me=he?q+fe+.5:q+.5,Xe=z-.5,it=U?N+J+.5:N+.5,nt=a._topdefs.selectAll("#"+me).data(U||he?[0]:[]);if(nt.exit().remove(),nt.enter().append("clipPath").attr("id",me).append("rect"),U||he?(this._clipRect=nt.select("rect").attr({x:Math.floor(Ce),y:Math.floor(Xe),width:Math.ceil(Me)-Math.floor(Ce),height:Math.ceil(it)-Math.floor(Xe)}),this.container.call(Tm.setClipUrl,me,this.gd),this.bg.attr({x:u,y:v,width:h,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tm.setClipUrl,null),delete this._clipRect),U||he){var gt=Xu.behavior.drag().on("dragstart",function(){Xu.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(gt);var Ge=Xu.behavior.drag().on("dragstart",function(){Xu.event.sourceEvent.preventDefault(),Xu.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));U&&this.hbar.on(".drag",null).call(Ge),he&&this.vbar.on(".drag",null).call(Ge)}this.setTranslate(r,i)};rn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tm.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};rn.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Xu.event.dx),this.vbar&&(r-=Xu.event.dy),this.setTranslate(t,r)};rn.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Xu.event.deltaY),this.vbar&&(r+=Xu.event.deltaY),this.setTranslate(t,r)};rn.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,s=bb.constrain(Xu.event.x,i,a),l=(s-i)/(a-i),u=this.position.w-this._box.w;t=l*u}if(this.vbar){var h=r+this._vbarYMin,v=h+this._vbarTranslateMax,m=bb.constrain(Xu.event.y,h,v),_=(m-h)/(v-h),T=this.position.h-this._box.h;r=_*T}this.setTranslate(t,r)};rn.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=bb.constrain(t||0,0,i),r=bb.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(Tm.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var s=t/i;this.hbar.call(Tm.setTranslate,t+s*this._hbarTranslateMax,r)}if(this.vbar){var l=r/a;this.vbar.call(Tm.setTranslate,t,r+l*this._vbarTranslateMax)}}});var BO=de((pbe,NO)=>{"use strict";var Am=Va(),u1=to(),f1=Ba(),Mm=_i(),vl=Bt(),wb=ro(),$ce=Pi().arrayEditor,DO=No().LINE_SPACING,aa=_b(),ehe=EO();NO.exports=function(t){var r=t._fullLayout,i=vl.filterVisible(r[aa.name]);function a(T){u1.autoMargin(t,FO(T))}var s=r._menulayer.selectAll("g."+aa.containerClassName).data(i.length>0?[0]:[]);if(s.enter().append("g").classed(aa.containerClassName,!0).style("cursor","pointer"),s.exit().each(function(){Am.select(this).selectAll("g."+aa.headerGroupClassName).each(a)}).remove(),i.length!==0){var l=s.selectAll("g."+aa.headerGroupClassName).data(i,the);l.enter().append("g").classed(aa.headerGroupClassName,!0);for(var u=vl.ensureSingle(s,"g",aa.dropdownButtonGroupClassName,function(T){T.style("pointer-events","all")}),h=0;h{"use strict";var lhe=_b();OO.exports={moduleType:"component",name:lhe.name,layoutAttributes:BT(),supplyLayoutDefaults:SO(),draw:BO()}});var h1=de((ybe,VO)=>{"use strict";VO.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var HT=de((gbe,ZO)=>{"use strict";var HO=qo(),uhe=A_(),fhe=mn().extendDeepAll,che=il().overrideAll,hhe=Vy(),GO=Pi().templatedArray,Qd=h1(),vhe=GO("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});ZO.exports=che(GO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:vhe,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:fhe(uhe({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:hhe.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:HO({})},font:HO({}),activebgcolor:{valType:"color",dflt:Qd.gripBgActiveColor},bgcolor:{valType:"color",dflt:Qd.railBgColor},bordercolor:{valType:"color",dflt:Qd.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Qd.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Qd.tickLength},tickcolor:{valType:"color",dflt:Qd.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Qd.minorTickLength}}),"arraydraw","from-root")});var jO=de((_be,XO)=>{"use strict";var Sm=Bt(),YO=Wl(),WO=HT(),dhe=h1(),phe=dhe.name,mhe=WO.steps;XO.exports=function(t,r){YO(t,r,{name:phe,handleItemDefaults:yhe})};function yhe(e,t,r){function i(_,T){return Sm.coerce(e,t,WO,_,T)}for(var a=YO(e,t,{name:"steps",handleItemDefaults:ghe}),s=0,l=0;l{"use strict";var ju=Va(),Tb=to(),nv=Ba(),Ju=_i(),dl=Bt(),_he=dl.strTranslate,v1=ro(),xhe=Pi().arrayEditor,xa=h1(),YT=No(),QO=YT.LINE_SPACING,GT=YT.FROM_TL,ZT=YT.FROM_BR;iU.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=bhe(i,t),s=i._infolayer.selectAll("g."+xa.containerClassName).data(a.length>0?[0]:[]);s.enter().append("g").classed(xa.containerClassName,!0).style("cursor",r?null:"ew-resize");function l(m){m._commandObserver&&(m._commandObserver.remove(),delete m._commandObserver),Tb.autoMargin(t,$O(m))}if(s.exit().each(function(){ju.select(this).selectAll("g."+xa.groupClassName).each(l)}).remove(),a.length!==0){var u=s.selectAll("g."+xa.groupClassName).data(a,whe);u.enter().append("g").classed(xa.groupClassName,!0),u.exit().each(l).remove();for(var h=0;h0&&(u=u.transition().duration(t.transition.duration).ease(t.transition.easing)),u.attr("transform",_he(l-xa.gripWidth*.5,t._dims.currentValueTotalHeight))}}function WT(e,t){var r=e._dims;return r.inputAreaStart+xa.stepInset+(r.inputAreaLength-2*xa.stepInset)*Math.min(1,Math.max(0,t))}function KO(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-xa.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*xa.stepInset-2*r.inputAreaStart)))}function Ehe(e,t,r){var i=r._dims,a=dl.ensureSingle(e,"rect",xa.railTouchRectClass,function(s){s.call(rU,t,e,r).style("pointer-events","all")});a.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,xa.tickOffset+r.ticklen+i.labelHeight)}).call(nv.fill,r.bgcolor).attr("opacity",0),Ju.setTranslate(a,0,i.currentValueTotalHeight)}function Lhe(e,t){var r=t._dims,i=r.inputAreaLength-xa.railInset*2,a=dl.ensureSingle(e,"rect",xa.railRectClass);a.attr({width:i,height:xa.railWidth,rx:xa.railRadius,ry:xa.railRadius,"shape-rendering":"crispEdges"}).call(nv.stroke,t.bordercolor).call(nv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Ju.setTranslate(a,xa.railInset,(r.inputAreaWidth-xa.railWidth)*.5+r.currentValueTotalHeight)}});var sU=de((bbe,oU)=>{"use strict";var Dhe=h1();oU.exports={moduleType:"component",name:Dhe.name,layoutAttributes:HT(),supplyLayoutDefaults:jO(),draw:nU()}});var Mb=de((wbe,uU)=>{"use strict";var lU=kf();uU.exports={bgcolor:{valType:"color",dflt:lU.background,editType:"plot"},bordercolor:{valType:"color",dflt:lU.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var XT=de((Tbe,fU)=>{"use strict";fU.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Sb=de((Abe,cU)=>{"use strict";cU.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var dU=de(Cb=>{"use strict";var Phe=jn(),zhe=ro(),hU=Sb(),Ihe=No().LINE_SPACING,kb=hU.name;function vU(e){var t=e&&e[kb];return t&&t.visible}Cb.isVisible=vU;Cb.makeData=function(e){for(var t=Phe.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var Eb=Bt(),pU=Pi(),mU=jn(),Rhe=Mb(),Fhe=XT();yU.exports=function(t,r,i){var a=t[i],s=r[i];if(!(a.rangeslider||r._requestRangeslider[s._id]))return;Eb.isPlainObject(a.rangeslider)||(a.rangeslider={});var l=a.rangeslider,u=pU.newContainer(s,"rangeslider");function h(N,H){return Eb.coerce(l,u,Rhe,N,H)}var v,m;function _(N,H){return Eb.coerce(v,m,Fhe,N,H)}var T=h("visible");if(T){h("bgcolor",r.plot_bgcolor),h("bordercolor"),h("borderwidth"),h("thickness"),h("autorange",!s.isValidRange(l.range)),h("range");var M=r._subplots;if(M)for(var C=M.cartesian.filter(function(N){return N.slice(0,Math.max(0,N.indexOf("y")))===mU.name2id(i)}).map(function(N){return N.slice(N.indexOf("y"),N.length)}),E=Eb.simpleMap(C,mU.id2name),L=0;L{"use strict";var qhe=jn().list,Nhe=og().getAutoRange,Bhe=Sb();_U.exports=function(t){for(var r=qhe(t,"x",!0),i=0;i{"use strict";var Lb=Va(),Ohe=la(),Uhe=to(),gn=Bt(),Db=gn.strTranslate,wU=_i(),ov=Ba(),Vhe=ig(),Hhe=bT(),jT=jn(),Ghe=jl(),Zhe=Wh(),Pa=Sb();TU.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=Ae.max)ke=ie[Se+1];else if(Te=Ae.pmax)ke=ie[Se+1];else if(Te0?e.touches[0].clientX:0}function Yhe(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+Pa.slideBoxClassName).node(),s=e.select("rect."+Pa.grabAreaMinClassName).node(),l=e.select("rect."+Pa.grabAreaMaxClassName).node();function u(){var h=Lb.event,v=h.target,m=bU(h),_=m-e.node().getBoundingClientRect().left,T=i.d2p(r._rl[0]),M=i.d2p(r._rl[1]),C=Ghe.coverSlip();this.addEventListener("touchmove",E),this.addEventListener("touchend",L),C.addEventListener("mousemove",E),C.addEventListener("mouseup",L);function E(I){var O=bU(I),q=+O-m,z,N,H;switch(v){case a:if(H="ew-resize",T+q>r._length||M+q<0)return;z=T+q,N=M+q;break;case s:if(H="col-resize",T+q>r._length)return;z=T+q,N=M;break;case l:if(H="col-resize",M+q<0)return;z=T,N=M+q;break;default:H="ew-resize",z=_,N=_+q;break}if(N{"use strict";var rve=Bt(),ave=Mb(),ive=XT(),JT=dU();MU.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:rve.extendFlat({},ave,{yaxis:ive})}}},layoutAttributes:Mb(),handleDefaults:gU(),calcAutorange:xU(),draw:AU(),isVisible:JT.isVisible,makeData:JT.makeData,autoMarginOpts:JT.autoMarginOpts}});var Pb=de((Lbe,CU)=>{"use strict";var nve=qo(),kU=kf(),ove=Pi().templatedArray,sve=ove("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});CU.exports={visible:{valType:"boolean",editType:"plot"},buttons:sve,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:nve({editType:"plot"}),bgcolor:{valType:"color",dflt:kU.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:kU.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var KT=de((Dbe,EU)=>{"use strict";EU.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var PU=de((Pbe,DU)=>{"use strict";var zb=Bt(),lve=Ba(),uve=Pi(),fve=Wl(),LU=Pb(),QT=KT();DU.exports=function(t,r,i,a,s){var l=t.rangeselector||{},u=uve.newContainer(r,"rangeselector");function h(M,C){return zb.coerce(l,u,LU,M,C)}var v=fve(l,u,{name:"buttons",handleItemDefaults:cve,calendar:s}),m=h("visible",v.length>0);if(m){var _=hve(r,i,a);h("x",_[0]),h("y",_[1]),zb.noneOrAll(t,r,["x","y"]),h("xanchor"),h("yanchor"),zb.coerceFont(h,"font",i.font);var T=h("bgcolor");h("activecolor",lve.contrast(T,QT.lightAmount,QT.darkAmount)),h("bordercolor"),h("borderwidth")}};function cve(e,t,r,i){var a=i.calendar;function s(h,v){return zb.coerce(e,t,LU.buttons,h,v)}var l=s("visible");if(l){var u=s("step");u!=="all"&&(a&&a!=="gregorian"&&(u==="month"||u==="year")?t.stepmode="backward":s("stepmode"),s("count")),s("label")}}function hve(e,t,r){for(var i=r.filter(function(u){return t[u].anchor===e._id}),a=0,s=0;s{"use strict";var vve=j3(),dve=Bt().titleCase;zU.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var s=pve(t,r);a[i+".range[0]"]=s[0],a[i+".range[1]"]=s[1]}return a};function pve(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,s=vve["utc"+dve(a)],l=t.count,u;switch(t.stepmode){case"backward":u=e.l2r(+s.offset(i,-l));break;case"todate":var h=s.offset(i,-l);u=e.l2r(+s.ceil(h));break}var v=r[1];return[u,v]}});var VU=de((Ibe,UU)=>{"use strict";var Rb=Va(),mve=la(),yve=to(),RU=Ba(),OU=_i(),qc=Bt(),FU=qc.strTranslate,Ib=ro(),gve=jn(),tA=No(),qU=tA.LINE_SPACING,NU=tA.FROM_TL,BU=tA.FROM_BR,eA=KT(),_ve=IU();UU.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(xve(t),bve);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var s=Rb.select(this),l=a,u=l.rangeselector,h=s.selectAll("g.button").data(qc.filterVisible(u.buttons));h.enter().append("g").classed("button",!0),h.exit().remove(),h.each(function(v){var m=Rb.select(this),_=_ve(l,v);v._isActive=wve(l,v,_),m.call($T,u,v),m.call(Ave,u,v,t),m.on("click",function(){t._dragged||mve.call("_guiRelayout",t,_)}),m.on("mouseover",function(){v._isHovered=!0,m.call($T,u,v)}),m.on("mouseout",function(){v._isHovered=!1,m.call($T,u,v)})}),Sve(t,h,u,l._name,s)})};function xve(e){for(var t=gve.list(e,"x",!0),r=[],i=0;i{"use strict";HU.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Pb()}}},layoutAttributes:Pb(),handleDefaults:PU(),draw:VU()}});var Fb=de(rA=>{"use strict";var ZU=mn().extendFlat;rA.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",s=t.description?" "+t.description:"",l={x:ZU({},r,{}),y:ZU({},r,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};rA.defaults=function(e,t,r,i){var a=i&&i.x||[0,1],s=i&&i.y||[0,1],l=t.grid;if(l){var u=r("domain.column");u!==void 0&&(u{"use strict";var kve=Bt(),Cve=A0().counter,Eve=Fb().attributes,YU=eo().idRegex,Lve=Pi(),aA={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Cve("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[YU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[YU.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Eve({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function qb(e,t,r){var i=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(a.length)return a}function Dve(e,t){var r=e.grid||{},i=qb(t,r,"x"),a=qb(t,r,"y");if(!e.grid&&!i&&!a)return;var s=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),l=Array.isArray(i),u=Array.isArray(a),h=l&&i!==r.xaxes&&u&&a!==r.yaxes,v,m;s?(v=r.subplots.length,m=r.subplots[0].length):(u&&(v=a.length),l&&(m=i.length));var _=Lve.newContainer(t,"grid");function T(H,U){return kve.coerce(r,_,aA,H,U)}var M=T("rows",v),C=T("columns",m);if(!(M*C>1)){delete t.grid;return}if(!s&&!l&&!u){var E=T("pattern")==="independent";E&&(s=!0)}_._hasSubplotGrid=s;var L=T("roworder"),I=L==="top to bottom",O=s?.2:.1,q=s?.3:.1,z,N;h&&t._splomGridDflt&&(z=t._splomGridDflt.xside,N=t._splomGridDflt.yside),_._domains={x:WU("x",T,O,z,C),y:WU("y",T,q,N,M,I)}}function WU(e,t,r,i,a,s){var l=t(e+"gap",r),u=t("domain."+e);t(e+"side",i);for(var h=new Array(a),v=u[0],m=(u[1]-v)/(a-l),_=m*(1-l),T=0;T{"use strict";KU.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var eV=de((Bbe,$U)=>{"use strict";var QU=La(),zve=la(),Ive=Bt(),Rve=Pi(),Fve=iA();$U.exports=function(e,t,r,i){var a="error_"+i.axis,s=Rve.newContainer(t,a),l=e[a]||{};function u(C,E){return Ive.coerce(l,s,Fve,C,E)}var h=l.array!==void 0||l.value!==void 0||l.type==="sqrt",v=u("visible",h);if(v!==!1){var m=u("type","array"in l?"data":"percent"),_=!0;m!=="sqrt"&&(_=u("symmetric",!((m==="data"?"arrayminus":"valueminus")in l))),m==="data"?(u("array"),u("traceref"),_||(u("arrayminus"),u("tracerefminus"))):(m==="percent"||m==="constant")&&(u("value"),_||u("valueminus"));var T="copy_"+i.inherit+"style";if(i.inherit){var M=t["error_"+i.inherit];(M||{}).visible&&u(T,!(l.color||QU(l.thickness)||QU(l.width)))}(!i.inherit||!s[T])&&(u("color",r),u("thickness"),u("width",zve.traceIs(t,"gl3d")?0:4))}}});var nA=de((Obe,rV)=>{"use strict";rV.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var a=t.array||[];if(i)return function(v,m){var _=+a[m];return[_,_]};var s=t.arrayminus||[];return function(v,m){var _=+a[m],T=+s[m];return!isNaN(_)||!isNaN(T)?[T||0,_||0]:[NaN,NaN]}}else{var l=tV(r,t.value),u=tV(r,t.valueminus);return i||t.valueminus===void 0?function(v){var m=l(v);return[m,m]}:function(v){return[u(v),l(v)]}}};function tV(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var nV=de((Ube,iV)=>{"use strict";var oA=La(),qve=la(),sA=Xi(),Nve=Bt(),Bve=nA();iV.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var oV=Va(),sv=La(),Ove=_i(),Uve=rs();sV.exports=function(t,r,i,a){var s,l=i.xaxis,u=i.yaxis,h=a&&a.duration>0,v=t._context.staticPlot;r.each(function(m){var _=m[0].trace,T=_.error_x||{},M=_.error_y||{},C;_.ids&&(C=function(O){return O.id});var E=Uve.hasMarkers(_)&&_.marker.maxdisplayed>0;!M.visible&&!T.visible&&(m=[]);var L=oV.select(this).selectAll("g.errorbar").data(m,C);if(L.exit().remove(),!!m.length){T.visible||L.selectAll("path.xerror").remove(),M.visible||L.selectAll("path.yerror").remove(),L.style("opacity",1);var I=L.enter().append("g").classed("errorbar",!0);h&&I.style("opacity",0).transition().duration(a.duration).style("opacity",1),Ove.setClipUrl(L,i.layerClipId,t),L.each(function(O){var q=oV.select(this),z=Vve(O,l,u);if(!(E&&!O.vis)){var N,H=q.select("path.yerror");if(M.visible&&sv(z.x)&&sv(z.yh)&&sv(z.ys)){var U=M.width;N="M"+(z.x-U)+","+z.yh+"h"+2*U+"m-"+U+",0V"+z.ys,z.noYS||(N+="m-"+U+",0h"+2*U),s=!H.size(),s?H=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0):h&&(H=H.transition().duration(a.duration).ease(a.easing)),H.attr("d",N)}else H.remove();var W=q.select("path.xerror");if(T.visible&&sv(z.y)&&sv(z.xh)&&sv(z.xs)){var J=(T.copy_ystyle?M:T).width;N="M"+z.xh+","+(z.y-J)+"v"+2*J+"m0,-"+J+"H"+z.xs,z.noXS||(N+="m0,-"+J+"v"+2*J),s=!W.size(),s?W=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0):h&&(W=W.transition().duration(a.duration).ease(a.easing)),W.attr("d",N)}else W.remove()}})}})};function Vve(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),sv(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),sv(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var cV=de((Hbe,fV)=>{"use strict";var Hve=Va(),uV=Ba();fV.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},s=i.error_x||{},l=Hve.select(this);l.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(uV.stroke,a.color),s.copy_ystyle&&(s=a),l.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(uV.stroke,s.color)})}});var dV=de((Gbe,vV)=>{"use strict";var d1=Bt(),hV=il().overrideAll,p1=iA(),$d={error_x:d1.extendFlat({},p1),error_y:d1.extendFlat({},p1)};delete $d.error_x.copy_zstyle;delete $d.error_y.copy_zstyle;delete $d.error_y.copy_ystyle;var m1={error_x:d1.extendFlat({},p1),error_y:d1.extendFlat({},p1),error_z:d1.extendFlat({},p1)};delete m1.error_x.copy_ystyle;delete m1.error_y.copy_ystyle;delete m1.error_z.copy_ystyle;delete m1.error_z.copy_zstyle;vV.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$d,bar:$d,histogram:$d,scatter3d:hV(m1,"calc","nested"),scattergl:hV($d,"calc","nested")}},supplyDefaults:eV(),calc:nV(),makeComputeError:nA(),plot:lV(),style:cV(),hoverInfo:Gve};function Gve(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var mV=de((Zbe,pV)=>{"use strict";pV.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var TV=de((Ybe,wV)=>{"use strict";var lv=Va(),lA=Sf(),Bb=to(),yV=la(),Nc=Xi(),Nb=jl(),uu=Bt(),Qu=uu.strTranslate,bV=mn().extendFlat,uA=Wh(),Ku=_i(),fA=Ba(),Zve=ig(),Yve=ro(),Wve=Lf().flipScale,Xve=yT(),jve=gT(),Jve=Nu(),cA=No(),gV=cA.LINE_SPACING,_V=cA.FROM_TL,xV=cA.FROM_BR,Ki=mV().cn;function Kve(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Ki.colorbar).data(Qve(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Ki.colorbar,!0),r.each(function(i){var a=lv.select(this);uu.ensureSingle(a,"rect",Ki.cbbg),uu.ensureSingle(a,"g",Ki.cbfills),uu.ensureSingle(a,"g",Ki.cblines),uu.ensureSingle(a,"g",Ki.cbaxis,function(l){l.classed(Ki.crisp,!0)}),uu.ensureSingle(a,"g",Ki.cbtitleunshift,function(l){l.append("g").classed(Ki.cbtitle,!0)}),uu.ensureSingle(a,"rect",Ki.cboutline);var s=$ve(a,i,e);s&&s.then&&(e._promises||[]).push(s),e._context.edits.colorbarPosition&&ede(a,i,e)}),r.exit().each(function(i){Bb.autoMargin(e,i._id)}).remove(),r.order()}function Qve(e){var t=e._fullLayout,r=e.calcdata,i=[],a,s,l,u;function h(q){return bV(q,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function v(){typeof u.calc=="function"?u.calc(e,l,a):(a._fillgradient=s.reversescale?Wve(s.colorscale):s.colorscale,a._zrange=[s[u.min],s[u.max]])}for(var m=0;m1){var De=Math.pow(10,Math.floor(Math.log(pe)/Math.LN10));Ot*=De*uu.roundUp(pe/De,[2,5,10]),(Math.abs(oe.start)/oe.size+1e-6)%1<2e-6&&(lt.tick0=0)}lt.dtick=Ot}lt.domain=i?[Ge+C/z.h,Ge+me-C/z.h]:[Ge+M/z.w,Ge+me-M/z.w],lt.setScale(),e.attr("transform",Qu(Math.round(z.l),Math.round(z.t)));var ye=e.select("."+Ki.cbtitleunshift).attr("transform",Qu(-Math.round(z.l),-Math.round(z.t))),Oe=lt.ticklabelposition,at=lt.title.font.size,Je=e.select("."+Ki.cbaxis),Pt,xt=0,bt=0;function Vt(Wt,Be){var ut={propContainer:lt,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:q._dfltTitle.colorbar,containerGroup:e.select("."+Ki.cbtitle)},sr=Wt.charAt(0)==="h"?Wt.slice(1):"h"+Wt;e.selectAll("."+sr+",."+sr+"-math-group").remove(),Zve.draw(r,Wt,bV(ut,Be||{}))}function qt(){if(i&&mt||!i&&!mt){var Wt,Be;W==="top"&&(Wt=M+z.l+Ce*E,Be=C+z.t+Me*(1-Ge-me)+3+at*.75),W==="bottom"&&(Wt=M+z.l+Ce*E,Be=C+z.t+Me*(1-Ge)-3-at*.25),W==="right"&&(Be=C+z.t+Me*L+3+at*.75,Wt=M+z.l+Ce*Ge),Vt(lt._id+"title",{attributes:{x:Wt,y:Be,"text-anchor":i?"start":"middle"}})}}function Dt(){if(i&&!mt||!i&&mt){var Wt=lt.position||0,Be=lt._offset+lt._length/2,ut,sr;if(W==="right")sr=Be,ut=z.l+Ce*Wt+10+at*(lt.showticklabels?1:.5);else if(ut=Be,W==="bottom"&&(sr=z.t+Me*Wt+10+(Oe.indexOf("inside")===-1?lt.tickfont.size:0)+(lt.ticks!=="inside"&&t.ticklen||0)),W==="top"){var Pr=U.text.split("
").length;sr=z.t+Me*Wt+10-ke-gV*at*Pr}Vt((i?"h":"v")+lt._id+"title",{avoid:{selection:lv.select(r).selectAll("g."+lt._id+"tick"),side:W,offsetTop:i?0:z.t,offsetLeft:i?z.l:0,maxShift:i?q.width:q.height},attributes:{x:ut,y:sr,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function At(){if(!i&&!mt||i&&mt){var Wt=e.select("."+Ki.cbtitle),Be=Wt.select("text"),ut=[-h/2,h/2],sr=Wt.select(".h"+lt._id+"title-math-group").node(),Pr=15.6;Be.node()&&(Pr=parseInt(Be.node().style.fontSize,10)*gV);var Lt;if(sr?(Lt=Ku.bBox(sr),bt=Lt.width,xt=Lt.height,xt>Pr&&(ut[1]-=(xt-Pr)/2)):Be.node()&&!Be.classed(Ki.jsPlaceholder)&&(Lt=Ku.bBox(Be.node()),bt=Lt.width,xt=Lt.height),i){if(xt){if(xt+=5,W==="top")lt.domain[1]-=xt/z.h,ut[1]*=-1;else{lt.domain[0]+=xt/z.h;var vt=Yve.lineCount(Be);ut[1]+=(1-vt)*Pr}Wt.attr("transform",Qu(ut[0],ut[1])),lt.setScale()}}else bt&&(W==="right"&&(lt.domain[0]+=(bt+at/2)/z.w),Wt.attr("transform",Qu(ut[0],ut[1])),lt.setScale())}e.selectAll("."+Ki.cbfills+",."+Ki.cblines).attr("transform",i?Qu(0,Math.round(z.h*(1-lt.domain[1]))):Qu(Math.round(z.w*lt.domain[0]),0)),Je.attr("transform",i?Qu(0,Math.round(-z.t)):Qu(Math.round(-z.l),0));var pt=e.select("."+Ki.cbfills).selectAll("rect."+Ki.cbfill).attr("style","").data(fe);pt.enter().append("rect").classed(Ki.cbfill,!0).attr("style",""),pt.exit().remove();var Nt=J.map(lt.c2p).map(Math.round).sort(function(yr,mr){return yr-mr});pt.each(function(yr,mr){var Et=[mr===0?J[0]:(fe[mr]+fe[mr-1])/2,mr===fe.length-1?J[1]:(fe[mr]+fe[mr+1])/2].map(lt.c2p).map(Math.round);i&&(Et[1]=uu.constrain(Et[1]+(Et[1]>Et[0])?1:-1,Nt[0],Nt[1]));var Fe=lv.select(this).attr(i?"x":"y",Xe).attr(i?"y":"x",lv.min(Et)).attr(i?"width":"height",Math.max(ke,2)).attr(i?"height":"width",Math.max(lv.max(Et)-lv.min(Et),2));if(t._fillgradient)Ku.gradient(Fe,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Ue=ie(yr).replace("e-","");Fe.attr("fill",lA(Ue).toHexString())}});var er=e.select("."+Ki.cblines).selectAll("path."+Ki.cbline).data(H.color&&H.width?Te:[]);er.enter().append("path").classed(Ki.cbline,!0),er.exit().remove(),er.each(function(yr){var mr=Xe,Et=Math.round(lt.c2p(yr))+H.width/2%1;lv.select(this).attr("d","M"+(i?mr+","+Et:Et+","+mr)+(i?"h":"v")+ke).call(Ku.lineGroupStyle,H.width,ee(yr),H.dash)}),Je.selectAll("g."+lt._id+"tick,path").remove();var Ht=Xe+ke+(h||0)/2-(t.ticks==="outside"?1:0),Gt=Nc.calcTicks(lt),hr=Nc.getTickSigns(lt)[2];return Nc.drawTicks(r,lt,{vals:lt.ticks==="inside"?Nc.clipEnds(lt,Gt):Gt,layer:Je,path:Nc.makeTickPath(lt,Ht,hr),transFn:Nc.makeTransTickFn(lt)}),Nc.drawLabels(r,lt,{vals:Gt,layer:Je,transFn:Nc.makeTransTickLabelFn(lt),labelFns:Nc.makeLabelFns(lt,Ht)})}function Ut(){var Wt,Be=ke+h/2;Oe.indexOf("inside")===-1&&(Wt=Ku.bBox(Je.node()),Be+=i?Wt.width:Wt.height),Pt=ye.select("text");var ut=0,sr=i&&W==="top",Pr=!i&&W==="right",Lt=0;if(Pt.node()&&!Pt.classed(Ki.jsPlaceholder)){var vt,pt=ye.select(".h"+lt._id+"title-math-group").node();pt&&(i&&mt||!i&&!mt)?(Wt=Ku.bBox(pt),ut=Wt.width,vt=Wt.height):(Wt=Ku.bBox(ye.node()),ut=Wt.right-z.l-(i?Xe:Ct),vt=Wt.bottom-z.t-(i?Ct:Xe),!i&&W==="top"&&(Be+=Wt.height,Lt=Wt.height)),Pr&&(Pt.attr("transform",Qu(ut/2+at/2,0)),ut*=2),Be=Math.max(Be,i?ut:vt)}var Nt=(i?M:C)*2+Be+v+h/2,er=0;!i&&U.text&&T==="bottom"&&L<=0&&(er=Nt/2,Nt+=er,Lt+=er),q._hColorbarMoveTitle=er,q._hColorbarMoveCBTitle=Lt;var Ht=v+h,Gt=(i?Xe:Ct)-Ht/2-(i?M:0),hr=(i?Ct:Xe)-(i?Ae:C+Lt-er);e.select("."+Ki.cbbg).attr("x",Gt).attr("y",hr).attr(i?"width":"height",Math.max(Nt-er,2)).attr(i?"height":"width",Math.max(Ae+Ht,2)).call(fA.fill,m).call(fA.stroke,t.bordercolor).style("stroke-width",v);var yr=Pr?Math.max(ut-10,0):0;e.selectAll("."+Ki.cboutline).attr("x",(i?Xe:Ct+M)+yr).attr("y",(i?Ct+C-Ae:Xe)+(sr?xt:0)).attr(i?"width":"height",Math.max(ke,2)).attr(i?"height":"width",Math.max(Ae-(i?2*C+xt:2*M+yr),2)).call(fA.stroke,t.outlinecolor).style({fill:"none","stroke-width":h});var mr=i?it*Nt:0,Et=i?0:(1-nt)*Nt-Lt;if(mr=O?z.l-mr:-mr,Et=I?z.t-Et:-Et,e.attr("transform",Qu(mr,Et)),!i&&(v||lA(m).getAlpha()&&!lA.equals(q.paper_bgcolor,m))){var Fe=Je.selectAll("text"),Ue=Fe[0].length,wt=e.select("."+Ki.cbbg).node(),Tt=Ku.bBox(wt),vr=Ku.getTranslate(e),Mr=2;Fe.each(function(_n,an){var Gi=0,ma=Ue-1;if(an===Gi||an===ma){var nn=Ku.bBox(this),Bi=Ku.getTranslate(this),ir;if(an===ma){var ii=nn.right+Bi.x,Wr=Tt.right+vr.x+Ct-v-Mr+E;ir=Wr-ii,ir>0&&(ir=0)}else if(an===Gi){var le=nn.left+Bi.x,te=Tt.left+vr.x+Ct+v+Mr;ir=te-le,ir<0&&(ir=0)}ir&&(Ue<3?this.setAttribute("transform","translate("+ir+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Tr={},Gr=_V[_],pa=xV[_],Aa=_V[T],ai=xV[T],bi=Nt-ke;i?(s==="pixels"?(Tr.y=L,Tr.t=Ae*Aa,Tr.b=Ae*ai):(Tr.t=Tr.b=0,Tr.yt=L+a*Aa,Tr.yb=L-a*ai),u==="pixels"?(Tr.x=E,Tr.l=Nt*Gr,Tr.r=Nt*pa):(Tr.l=bi*Gr,Tr.r=bi*pa,Tr.xl=E-l*Gr,Tr.xr=E+l*pa)):(s==="pixels"?(Tr.x=E,Tr.l=Ae*Gr,Tr.r=Ae*pa):(Tr.l=Tr.r=0,Tr.xl=E+a*Gr,Tr.xr=E-a*pa),u==="pixels"?(Tr.y=1-L,Tr.t=Nt*Aa,Tr.b=Nt*ai):(Tr.t=bi*Aa,Tr.b=bi*ai,Tr.yt=L-l*Aa,Tr.yb=L+l*ai));var hi=t.y<.5?"b":"t",Hi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Ii={r:q.width-Gt-mr,l:Gt+Tr.r,b:q.height-hr-Et,t:hr+Tr.b};O&&I?Bb.autoMargin(r,t._id,Tr):O?r._fullLayout._reservedMargin[t._id][hi]=Ii[hi]:I||i?r._fullLayout._reservedMargin[t._id][Hi]=Ii[Hi]:r._fullLayout._reservedMargin[t._id][hi]=Ii[hi]}return uu.syncOrAsync([Bb.previousPromises,qt,At,Dt,Bb.previousPromises,Ut],r)}function ede(e,t,r){var i=t.orientation==="v",a=r._fullLayout,s=a._size,l,u,h;Nb.init({element:e.node(),gd:r,prepFn:function(){l=e.attr("transform"),uA(e)},moveFn:function(v,m){e.attr("transform",l+Qu(v,m)),u=Nb.align((i?t._uFrac:t._vFrac)+v/s.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),h=Nb.align((i?t._vFrac:1-t._uFrac)-m/s.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var _=Nb.getCursor(u,h,t.xanchor,t.yanchor);uA(e,_)},doneFn:function(){if(uA(e),u!==void 0&&h!==void 0){var v={};v[t._propPrefix+"x"]=u,v[t._propPrefix+"y"]=h,t._traceIndex!==void 0?yV.call("_guiRestyle",r,v,t._traceIndex):yV.call("_guiRelayout",r,v)}}})}function tde(e,t,r){var i=t._levels,a=[],s=[],l,u,h=i.end+i.size/100,v=i.size,m=1.001*r[0]-.001*r[1],_=1.001*r[1]-.001*r[0];for(u=0;u<1e5&&(l=i.start+u*v,!(v>0?l>=h:l<=h));u++)l>m&&l<_&&a.push(l);if(t._fillgradient)s=[0];else if(typeof t._fillcolor=="function"){var T=t._filllevels;if(T)for(h=T.end+T.size/100,v=T.size,u=0;u<1e5&&(l=T.start+u*v,!(v>0?l>=h:l<=h));u++)l>r[0]&&l{"use strict";AV.exports={moduleType:"component",name:"colorbar",attributes:t2(),supplyDefaults:f5(),draw:TV().draw,hasColorbar:$w()}});var kV=de((Xbe,SV)=>{"use strict";SV.exports={moduleType:"component",name:"legend",layoutAttributes:s4(),supplyLayoutDefaults:u4(),draw:A4(),style:x4()}});var EV=de((jbe,CV)=>{"use strict";CV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var DV=de((Jbe,LV)=>{"use strict";LV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var vA=de((Kbe,RV)=>{"use strict";var ade=la(),IV=Bt(),hA=IV.extendFlat,PV=IV.extendDeep;function zV(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function ide(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}RV.exports=function(t,r){var i,a=t.data,s=t.layout,l=PV([],a),u=PV({},s,zV(r.tileClass)),h=t._context||{};if(r.width&&(u.width=r.width),r.height&&(u.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){u.annotations=[];var v=Object.keys(u);for(i=0;i{"use strict";var nde=U_().EventEmitter,ode=la(),sde=Bt(),FV=Vd(),lde=vA(),ude=Wx(),fde=Xx();function cde(e,t){var r=new nde,i=lde(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function s(){var u=FV.getDelay(a._fullLayout);setTimeout(function(){var h=ude(a),v=document.createElement("canvas");v.id=sde.randstr(),r=fde({format:t.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:v,emitter:r,svg:h}),r.clean=function(){a&&document.body.removeChild(a)}},u)}var l=FV.getRedrawFunc(a);return ode.call("_doPlot",a,i.data,i.layout,i.config).then(l).then(s).catch(function(u){r.emit("error",u)}),r}qV.exports=cde});var UV=de(($be,OV)=>{"use strict";var BV=Vd(),hde={getDelay:BV.getDelay,getRedrawFunc:BV.getRedrawFunc,clone:vA(),toSVG:Wx(),svgToImg:Xx(),toImage:NV(),downloadImage:O6()};OV.exports=hde});var HV=de(Bc=>{"use strict";Bc.version=Dy().version;P7();bk();var vde=la(),y1=Bc.register=vde.register,pA=GF(),VV=Object.keys(pA);for(Ob=0;Ob{"use strict";GV.exports=HV()});var mA=de((a3e,JV)=>{"use strict";var{hovertemplateAttrs:dde,texttemplateAttrs:pde,templatefallbackAttrs:YV}=Cf(),mde=kx(),jf=zc(),yde=ys(),WV=kc(),gde=_c().dash,ep=mn().extendFlat,_de=il().overrideAll,fu=jf.marker,XV=jf.line,jV=fu.line,r3e=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");JV.exports=_de({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:ep({},jf.mode,{dflt:"markers"}),text:ep({},jf.text,{}),texttemplate:pde({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:YV({editType:"plot"}),hovertext:ep({},jf.hovertext,{}),textfont:jf.textfont,textposition:jf.textposition,line:{color:XV.color,width:XV.width,dash:gde},connectgaps:jf.connectgaps,marker:ep({symbol:fu.symbol,opacity:fu.opacity,angle:fu.angle,angleref:ep({},fu.angleref,{values:["previous","up","north"]}),standoff:fu.standoff,size:fu.size,sizeref:fu.sizeref,sizemin:fu.sizemin,sizemode:fu.sizemode,colorbar:fu.colorbar,line:ep({width:jV.width,dash:jV.dash},WV("marker.line")),gradient:fu.gradient},WV("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:mde(),selected:jf.selected,unselected:jf.unselected,hoverinfo:ep({},yde.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:dde(),hovertemplatefallback:YV()},"calc","nested")});var Oc=de((i3e,aH)=>{"use strict";var xde=D_(),KV="1.13.4",tH='\xA9 OpenStreetMap contributors',QV=['\xA9 Carto',tH].join(" "),$V=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),bde=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),rH={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:tH,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:QV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:QV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:$V,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:$V,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:bde,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},eH=xde(rH);aH.exports={requiredVersion:KV,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:rH,styleValuesNonMapbox:eH,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+KV+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",JV.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",eH.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var y1=pe((Gbe,aH)=>{"use strict";var eH=Ot(),tH=Ba().defaultLine,cde=Ib().attributes,hde=qo(),vde=zc().textposition,dde=il().overrideAll,pde=Pi().templatedArray,dA=Oc(),rH=hde({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});rH.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var mde=aH.exports=dde({_arrayAttrRegexps:[eH.counterRegex("mapbox",".layers",!0)],domain:cde({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:dA.styleValuesMapbox.concat(dA.styleValuesNonMapbox),dflt:dA.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:pde("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:tH},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:tH}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:rH,textposition:eH.extendFlat({},vde,{arrayOk:!1})}})},"plot","from-root");mde.uirevision={valType:"any",editType:"none"}});var Ob=pe((Zbe,sH)=>{"use strict";var{hovertemplateAttrs:yde,texttemplateAttrs:gde,templatefallbackAttrs:iH}=Cf(),_de=Mx(),g1=vA(),km=zc(),nH=y1(),xde=ys(),bde=kc(),ep=mn().extendFlat,wde=il().overrideAll,Tde=y1(),oH=g1.line,Cm=g1.marker;sH.exports=wde({lon:g1.lon,lat:g1.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ep({},Tde.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ep({},Cm.opacity,{dflt:1})},mode:ep({},km.mode,{dflt:"markers"}),text:ep({},km.text,{}),texttemplate:gde({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:iH({editType:"plot"}),hovertext:ep({},km.hovertext,{}),line:{color:oH.color,width:oH.width},connectgaps:km.connectgaps,marker:ep({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:Cm.opacity,size:Cm.size,sizeref:Cm.sizeref,sizemin:Cm.sizemin,sizemode:Cm.sizemode},bde("marker")),fill:g1.fill,fillcolor:_de(),textfont:nH.layers.symbol.textfont,textposition:nH.layers.symbol.textposition,below:{valType:"string"},selected:{marker:km.selected.marker},unselected:{marker:km.unselected.marker},hoverinfo:ep({},xde.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:yde(),hovertemplatefallback:iH()},"calc","nested")});var pA=pe((Ybe,lH)=>{"use strict";var Ade=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];lH.exports={isSupportedFont:function(e){return Ade.indexOf(e)!==-1}}});var cH=pe((Wbe,fH)=>{"use strict";var _1=Ot(),mA=rs(),Mde=O6(),Sde=U6(),kde=V6(),Cde=H6(),uH=Ob(),Ede=pA().isSupportedFont;fH.exports=function(t,r,i,a){function s(I,O){return _1.coerce(t,r,uH,I,O)}function l(I,O){return _1.coerce2(t,r,uH,I,O)}var u=Lde(t,r,s);if(!u){r.visible=!1;return}if(s("text"),s("texttemplate"),s("texttemplatefallback"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),s("mode"),s("below"),mA.hasMarkers(r)){Mde(t,r,i,a,s,{noLine:!0,noAngle:!0}),s("marker.allowoverlap"),s("marker.angle");var h=r.marker;h.symbol!=="circle"&&(_1.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),_1.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}mA.hasLines(r)&&(Sde(t,r,i,a,s,{noDash:!0}),s("connectgaps"));var v=l("cluster.maxzoom"),m=l("cluster.step"),_=l("cluster.color",r.marker&&r.marker.color||i),T=l("cluster.size"),M=l("cluster.opacity"),C=v!==!1||m!==!1||_!==!1||T!==!1||M!==!1,E=s("cluster.enabled",C);if(E||mA.hasText(r)){var L=a.font.family;kde(t,r,a,s,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Ede(L)?L:"Open Sans Regular",weight:a.font.weight,style:a.font.style,size:a.font.size,color:a.font.color}})}s("fill"),r.fill!=="none"&&Cde(t,r,i,s),_1.coerceSelectionMarkerOpacity(r,s)};function Lde(e,t,r){var i=r("lon")||[],a=r("lat")||[],s=Math.min(i.length,a.length);return t._length=s,s}});var yA=pe((Xbe,vH)=>{"use strict";var hH=Xi();vH.exports=function(t,r,i){var a={},s=i[r.subplot]._subplot,l=s.mockAxis,u=t.lonlat;return a.lonLabel=hH.tickText(l,l.c2l(u[0]),!0).text,a.latLabel=hH.tickText(l,l.c2l(u[1]),!0).text,a}});var gH=pe((jbe,yH)=>{"use strict";var gA=La(),dH=Zi().BADNUM,Dde=Y6(),Pde=Qg(),zde=$x(),Ide=Ot().isArrayOrTypedArray,pH=Ot()._;function mH(e){return e&&typeof e=="string"}yH.exports=function(t,r){var i=Ide(r.locations),a=i?r.locations.length:r._length,s=new Array(a),l;r.geojson?l=function(T){return mH(T)||gA(T)}:l=mH;for(var u=0;u{"use strict";var Rde=Zi().BADNUM;x1.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],a=[],s=0;s0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i};x1.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};x1.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var _H=Ot();xH.exports=function(t,r){var i=t.split(" "),a=i[0],s=i[1],l=_H.isArrayOrTypedArray(r)?_H.mean(r):r,u=.5+l/100,h=1.5+l/100,v=["",""],m=[0,0];switch(a){case"top":v[0]="top",m[1]=-h;break;case"bottom":v[0]="bottom",m[1]=h;break}switch(s){case"left":v[1]="right",m[0]=-u;break;case"right":v[1]="left",m[0]=u;break}var _;return v[0]&&v[1]?_=v.join("-"):v[0]?_=v[0]:v[1]?_=v[1]:_="center",{anchor:_,offset:m}}});var SH=pe((Qbe,MH)=>{"use strict";var TH=La(),ko=Ot(),Fde=Zi().BADNUM,Hb=Ub(),bH=H0(),qde=_i(),Nde=c5(),Gb=rs(),Bde=pA().isSupportedFont,Ode=_A(),Ude=Cc().appendArrayPointValue,Vde=ro().NEWLINES,Hde=ro().BR_TAG_ALL;MH.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,s=i.fill!=="none",l=Gb.hasLines(i),u=Gb.hasMarkers(i),h=Gb.hasText(i),v=u&&i.marker.symbol==="circle",m=u&&i.marker.symbol!=="circle",_=i.cluster&&i.cluster.enabled,T=Vb("fill"),M=Vb("line"),C=Vb("circle"),E=Vb("symbol"),L={fill:T,line:M,circle:C,symbol:E};if(!a)return L;var I;if((s||l)&&(I=Hb.calcTraceToLineCoords(r)),s&&(T.geojson=Hb.makePolygon(I),T.layout.visibility="visible",ko.extendFlat(T.paint,{"fill-color":i.fillcolor})),l&&(M.geojson=Hb.makeLine(I),M.layout.visibility="visible",ko.extendFlat(M.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),v){var O=Gde(r);C.geojson=O.geojson,C.layout.visibility="visible",_&&(C.filter=["!",["has","point_count"]],L.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":bA(i.cluster.color,i.cluster.step),"circle-radius":bA(i.cluster.size,i.cluster.step),"circle-opacity":bA(i.cluster.opacity,i.cluster.step)}},L.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":wH(i),"text-size":12}}),ko.extendFlat(C.paint,{"circle-color":O.mcc,"circle-radius":O.mrc,"circle-opacity":O.mo})}if(v&&_&&(C.filter=["!",["has","point_count"]]),(m||h)&&(E.geojson=Zde(r,t),ko.extendFlat(E.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),m&&(ko.extendFlat(E.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&ko.extendFlat(E.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),E.layout["icon-allow-overlap"]=i.marker.allowoverlap,ko.extendFlat(E.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color})),h)){var q=(i.marker||{}).size,z=Ode(i.textposition,q);ko.extendFlat(E.layout,{"text-size":i.textfont.size,"text-anchor":z.anchor,"text-offset":z.offset,"text-font":wH(i)}),ko.extendFlat(E.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return L};function Vb(e){return{type:e,geojson:Hb.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function Gde(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,a=ko.isArrayOrTypedArray(r.color),s=ko.isArrayOrTypedArray(r.size),l=ko.isArrayOrTypedArray(r.opacity),u;function h(q){return t.opacity*q}function v(q){return q/2}var m;a&&(bH.hasColorscale(t,"marker")?m=bH.makeColorScaleFuncFromTrace(r):m=ko.identity);var _;s&&(_=Nde(t));var T;l&&(T=function(q){var z=TH(q)?+ko.constrain(q,0,1):0;return h(z)});var M=[];for(u=0;u850?u+=" Black":a>750?u+=" Extra Bold":a>650?u+=" Bold":a>550?u+=" Semi Bold":a>450?u+=" Medium":a>350?u+=" Regular":a>250?u+=" Light":a>150?u+=" Extra Light":u+=" Thin"):s.slice(0,2).join(" ")==="Open Sans"?(u="Open Sans",a>750?u+=" Extrabold":a>650?u+=" Bold":a>550?u+=" Semibold":a>350?u+=" Regular":u+=" Light"):s.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(u="Klokantech Noto Sans",s[3]==="CJK"&&(u+=" CJK"),u+=a>500?" Bold":" Regular")),l&&(u+=" Italic"),u==="Open Sans Regular Italic"?u="Open Sans Italic":u==="Open Sans Regular Bold"?u="Open Sans Bold":u==="Open Sans Regular Bold Italic"?u="Open Sans Bold Italic":u==="Klokantech Noto Sans Regular Italic"&&(u="Klokantech Noto Sans Italic"),Bde(u)||(u=r);var h=u.split(", ");return h}});var LH=pe(($be,EH)=>{"use strict";var Yde=Ot(),kH=SH(),Em=Oc().traceLayerPrefix,cu={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function CH(e,t,r,i){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:Em+t+"-fill",line:Em+t+"-line",circle:Em+t+"-circle",symbol:Em+t+"-symbol",cluster:Em+t+"-cluster",clusterCount:Em+t+"-cluster-count"},this.below=null}var b1=CH.prototype;b1.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&Yde.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[e]);a?a.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};b1.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};b1.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var a=this.layerIds[e],s,l=this.subplot.getMapLayers(),u=0;u=0;N--){var H=z[N];a.removeLayer(v.layerIds[H])}q||a.removeSource(v.sourceIds.circle)}function T(q){for(var z=cu.nonCluster,N=0;N=0;N--){var H=z[N];a.removeLayer(v.layerIds[H]),q||a.removeSource(v.sourceIds[H])}}function C(q){h?_(q):M(q)}function E(q){u?m(q):T(q)}function L(){for(var q=u?cu.cluster:cu.nonCluster,z=0;z=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};EH.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,s=i.visible!==!0,l=new CH(t,i.uid,a,s),u=kH(t.gd,r),h=l.below=t.belowLookup["trace-"+i.uid],v,m,_;if(a)for(l.addSource("circle",u.circle,i.cluster),v=0;v{"use strict";var Wde=Uu(),wA=Ot(),Xde=fT(),jde=wA.fillText,Jde=Zi().BADNUM,Kde=Oc().traceLayerPrefix;function Qde(e,t,r){var i=e.cd,a=i[0].trace,s=e.xa,l=e.ya,u=e.subplot,h=[],v=Kde+a.uid+"-circle",m=a.cluster&&a.cluster.enabled;if(m){var _=u.map.queryRenderedFeatures(null,{layers:[v]});h=_.map(function(W){return W.id})}var T=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),M=T*360,C=t-M;function E(W){var J=W.lonlat;if(J[0]===Jde||m&&h.indexOf(W.i+1)===-1)return 1/0;var ee=wA.modHalf(J[0],360),ie=J[1],oe=u.project([ee,ie]),he=oe.x-s.c2p([C,ie]),fe=oe.y-l.c2p([ee,r]),Te=Math.max(3,W.mrc||0);return Math.max(Math.sqrt(he*he+fe*fe)-Te,1-3/Te)}if(Wde.getClosest(i,E,e),e.index!==!1){var L=i[e.index],I=L.lonlat,O=[wA.modHalf(I[0],360)+M,I[1]],q=s.c2p(O),z=l.c2p(O),N=L.mrc||1;e.x0=q-N,e.x1=q+N,e.y0=z-N,e.y1=z+N;var H={};H[a.subplot]={_subplot:u};var U=a._module.formatLabels(L,a,H);return e.lonLabel=U.lonLabel,e.latLabel=U.latLabel,e.color=Xde(a,L),e.extraText=DH(a,L,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function DH(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i.split("+"),s=a.indexOf("all")!==-1,l=a.indexOf("lon")!==-1,u=a.indexOf("lat")!==-1,h=t.lonlat,v=[];function m(_){return _+"\xB0"}return s||l&&u?v.push("("+m(h[1])+", "+m(h[0])+")"):l?v.push(r.lon+m(h[0])):u&&v.push(r.lat+m(h[1])),(s||a.indexOf("text")!==-1)&&jde(t,e,v),v.join("
")}PH.exports={hoverPoints:Qde,getExtraText:DH}});var IH=pe((t3e,zH)=>{"use strict";zH.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var FH=pe((r3e,RH)=>{"use strict";var $de=Ot(),epe=rs(),tpe=Zi().BADNUM;RH.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],u=i[0].trace,h;if(!epe.hasMarkers(u))return[];if(r===!1)for(h=0;h{(function(e,t){typeof TA=="object"&&typeof AA!="undefined"?AA.exports=t():(e=e||self,e.mapboxgl=t())})(TA,function(){"use strict";var e,t,r;function i(a,s){if(!e)e=s;else if(!t)t=s;else{var l="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",u={};e(u),r=s(u),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([l],{type:"text/javascript"})))}}return i(["exports"],function(a){"use strict";function s(n,o){return o={exports:{}},n(o,o.exports),o.exports}var l="1.13.4",u=h;function h(n,o,f,p){this.cx=3*n,this.bx=3*(f-n)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*o,this.by=3*(p-o)-this.cy,this.ay=1-this.cy-this.by,this.p1x=n,this.p1y=p,this.p2x=f,this.p2y=p}h.prototype.sampleCurveX=function(n){return((this.ax*n+this.bx)*n+this.cx)*n},h.prototype.sampleCurveY=function(n){return((this.ay*n+this.by)*n+this.cy)*n},h.prototype.sampleCurveDerivativeX=function(n){return(3*this.ax*n+2*this.bx)*n+this.cx},h.prototype.solveCurveX=function(n,o){typeof o=="undefined"&&(o=1e-6);var f,p,x,A,k;for(x=n,k=0;k<8;k++){if(A=this.sampleCurveX(x)-n,Math.abs(A)p)return p;for(;fA?f=x:p=x,x=(p-f)*.5+f}return x},h.prototype.solve=function(n,o){return this.sampleCurveY(this.solveCurveX(n,o))};var v=m;function m(n,o){this.x=n,this.y=o}m.prototype={clone:function(){return new m(this.x,this.y)},add:function(n){return this.clone()._add(n)},sub:function(n){return this.clone()._sub(n)},multByPoint:function(n){return this.clone()._multByPoint(n)},divByPoint:function(n){return this.clone()._divByPoint(n)},mult:function(n){return this.clone()._mult(n)},div:function(n){return this.clone()._div(n)},rotate:function(n){return this.clone()._rotate(n)},rotateAround:function(n,o){return this.clone()._rotateAround(n,o)},matMult:function(n){return this.clone()._matMult(n)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(n){return this.x===n.x&&this.y===n.y},dist:function(n){return Math.sqrt(this.distSqr(n))},distSqr:function(n){var o=n.x-this.x,f=n.y-this.y;return o*o+f*f},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith:function(n){return this.angleWithSep(n.x,n.y)},angleWithSep:function(n,o){return Math.atan2(this.x*o-this.y*n,this.x*n+this.y*o)},_matMult:function(n){var o=n[0]*this.x+n[1]*this.y,f=n[2]*this.x+n[3]*this.y;return this.x=o,this.y=f,this},_add:function(n){return this.x+=n.x,this.y+=n.y,this},_sub:function(n){return this.x-=n.x,this.y-=n.y,this},_mult:function(n){return this.x*=n,this.y*=n,this},_div:function(n){return this.x/=n,this.y/=n,this},_multByPoint:function(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint:function(n){return this.x/=n.x,this.y/=n.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var n=this.y;return this.y=this.x,this.x=-n,this},_rotate:function(n){var o=Math.cos(n),f=Math.sin(n),p=o*this.x-f*this.y,x=f*this.x+o*this.y;return this.x=p,this.y=x,this},_rotateAround:function(n,o){var f=Math.cos(n),p=Math.sin(n),x=o.x+f*(this.x-o.x)-p*(this.y-o.y),A=o.y+p*(this.x-o.x)+f*(this.y-o.y);return this.x=x,this.y=A,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},m.convert=function(n){return n instanceof m?n:Array.isArray(n)?new m(n[0],n[1]):n};var _=typeof self!="undefined"?self:{};function T(n,o){if(Array.isArray(n)){if(!Array.isArray(o)||n.length!==o.length)return!1;for(var f=0;f=1)return 1;var o=n*n,f=o*n;return 4*(n<.5?f:3*(n-o)+f-.75)}function E(n,o,f,p){var x=new u(n,o,f,p);return function(A){return x.solve(A)}}var L=E(.25,.1,.25,1);function I(n,o,f){return Math.min(f,Math.max(o,n))}function O(n,o,f){var p=f-o,x=((n-o)%p+p)%p+o;return x===o?f:x}function q(n,o,f){if(!n.length)return f(null,[]);var p=n.length,x=new Array(n.length),A=null;n.forEach(function(k,F){o(k,function(Y,j){Y&&(A=Y),x[F]=j,--p===0&&f(A,x)})})}function z(n){var o=[];for(var f in n)o.push(n[f]);return o}function N(n,o){var f=[];for(var p in n)p in o||f.push(p);return f}function H(n){for(var o=[],f=arguments.length-1;f-- >0;)o[f]=arguments[f+1];for(var p=0,x=o;p>o/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,n)}return n()}function ie(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function oe(n){return n?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n):!1}function he(n,o){n.forEach(function(f){o[f]&&(o[f]=o[f].bind(o))})}function fe(n,o){return n.indexOf(o,n.length-o.length)!==-1}function Te(n,o,f){var p={};for(var x in n)p[x]=o.call(f||this,n[x],x,n);return p}function ke(n,o,f){var p={};for(var x in n)o.call(f||this,n[x],x,n)&&(p[x]=n[x]);return p}function Se(n){return Array.isArray(n)?n.map(Se):typeof n=="object"&&n?Te(n,Se):n}function Ae(n,o){for(var f=0;f=0)return!0;return!1}var me={};function Ce(n){me[n]||(typeof console!="undefined"&&console.warn(n),me[n]=!0)}function Me(n,o,f){return(f.y-n.y)*(o.x-n.x)>(o.y-n.y)*(f.x-n.x)}function We(n){for(var o=0,f=0,p=n.length,x=p-1,A=void 0,k=void 0;f@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,f={};if(n.replace(o,function(x,A,k,F){var Y=k||F;return f[A]=Y?Y.toLowerCase():!0,""}),f["max-age"]){var p=parseInt(f["max-age"],10);isNaN(p)?delete f["max-age"]:f["max-age"]=p}return f}var Xe=null;function kt(n){if(Xe==null){var o=n.navigator?n.navigator.userAgent:null;Xe=!!n.safari||!!(o&&(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return Xe}function lt(n){try{var o=_[n];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(f){return!1}}function mt(n){return _.btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(o,f){return String.fromCharCode(+("0x"+f))}))}function Bt(n){return decodeURIComponent(_.atob(n).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var ft=_.performance&&_.performance.now?_.performance.now.bind(_.performance):Date.now.bind(Date),de=_.requestAnimationFrame||_.mozRequestAnimationFrame||_.webkitRequestAnimationFrame||_.msRequestAnimationFrame,De=_.cancelAnimationFrame||_.mozCancelAnimationFrame||_.webkitCancelAnimationFrame||_.msCancelAnimationFrame,ye,Oe,at={now:ft,frame:function(o){var f=de(o);return{cancel:function(){return De(f)}}},getImageData:function(o,f){f===void 0&&(f=0);var p=_.document.createElement("canvas"),x=p.getContext("2d");if(!x)throw new Error("failed to create canvas 2d context");return p.width=o.width,p.height=o.height,x.drawImage(o,0,0,o.width,o.height),x.getImageData(-f,-f,o.width+2*f,o.height+2*f)},resolveURL:function(o){return ye||(ye=_.document.createElement("a")),ye.href=o,ye.href},hardwareConcurrency:_.navigator&&_.navigator.hardwareConcurrency||4,get devicePixelRatio(){return _.devicePixelRatio},get prefersReducedMotion(){return _.matchMedia?(Oe==null&&(Oe=_.matchMedia("(prefers-reduced-motion: reduce)")),Oe.matches):!1}},Je={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Pt={supported:!1,testSupport:Dt},xt,bt=!1,Vt,qt=!1;_.document&&(Vt=_.document.createElement("img"),Vt.onload=function(){xt&&At(xt),xt=null,qt=!0},Vt.onerror=function(){bt=!0,xt=null},Vt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Dt(n){bt||!Vt||(qt?At(n):xt=n)}function At(n){var o=n.createTexture();n.bindTexture(n.TEXTURE_2D,o);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,Vt),n.isContextLost())return;Pt.supported=!0}catch(f){}n.deleteTexture(o),bt=!0}var Ut="01";function Wt(){for(var n="1",o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",f="",p=0;p<10;p++)f+=o[Math.floor(Math.random()*62)];var x=12*60*60*1e3,A=[n,Ut,f].join(""),k=Date.now()+x;return{token:A,tokenExpiresAt:k}}var Be=function(o,f){this._transformRequestFn=o,this._customAccessToken=f,this._createSkuToken()};Be.prototype._createSkuToken=function(){var o=Wt();this._skuToken=o.token,this._skuTokenExpiresAt=o.tokenExpiresAt},Be.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Be.prototype.transformRequest=function(o,f){return this._transformRequestFn?this._transformRequestFn(o,f)||{url:o}:{url:o}},Be.prototype.normalizeStyleURL=function(o,f){if(!ut(o))return o;var p=Nt(o);return p.path="/styles/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||f)},Be.prototype.normalizeGlyphsURL=function(o,f){if(!ut(o))return o;var p=Nt(o);return p.path="/fonts/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||f)},Be.prototype.normalizeSourceURL=function(o,f){if(!ut(o))return o;var p=Nt(o);return p.path="/v4/"+p.authority+".json",p.params.push("secure"),this._makeAPIURL(p,this._customAccessToken||f)},Be.prototype.normalizeSpriteURL=function(o,f,p,x){var A=Nt(o);return ut(o)?(A.path="/styles/v1"+A.path+"/sprite"+f+p,this._makeAPIURL(A,this._customAccessToken||x)):(A.path+=""+f+p,er(A))},Be.prototype.normalizeTileURL=function(o,f){if(this._isSkuTokenExpired()&&this._createSkuToken(),o&&!ut(o))return o;var p=Nt(o),x=/(\.(png|jpg)\d*)(?=$)/,A=/^.+\/v4\//,k=at.devicePixelRatio>=2||f===512?"@2x":"",F=Pt.supported?".webp":"$1";p.path=p.path.replace(x,""+k+F),p.path=p.path.replace(A,"/"),p.path="/v4"+p.path;var Y=this._customAccessToken||vt(p.params)||Je.ACCESS_TOKEN;return Je.REQUIRE_ACCESS_TOKEN&&Y&&this._skuToken&&p.params.push("sku="+this._skuToken),this._makeAPIURL(p,Y)},Be.prototype.canonicalizeTileURL=function(o,f){var p="/v4/",x=/\.[\w]+$/,A=Nt(o);if(!A.path.match(/(^\/v4\/)/)||!A.path.match(x))return o;var k="mapbox://tiles/";k+=A.path.replace(p,"");var F=A.params;return f&&(F=F.filter(function(Y){return!Y.match(/^access_token=/)})),F.length&&(k+="?"+F.join("&")),k},Be.prototype.canonicalizeTileset=function(o,f){for(var p=f?ut(f):!1,x=[],A=0,k=o.tiles||[];A=0&&o.params.splice(A,1)}if(x.path!=="/"&&(o.path=""+x.path+o.path),!Je.REQUIRE_ACCESS_TOKEN)return er(o);if(f=f||Je.ACCESS_TOKEN,!f)throw new Error("An API access token is required to use Mapbox GL. "+p);if(f[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+p);return o.params=o.params.filter(function(k){return k.indexOf("access_token")===-1}),o.params.push("access_token="+f),er(o)};function ut(n){return n.indexOf("mapbox:")===0}var sr=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Pr(n){return sr.test(n)}function Lt(n){return n.indexOf("sku=")>0&&Pr(n)}function vt(n){for(var o=0,f=n;o=1&&_.localStorage.setItem(f,JSON.stringify(this.eventData))}catch(x){Ce("Unable to write to LocalStorage")}},hr.prototype.processRequests=function(o){},hr.prototype.postEvent=function(o,f,p,x){var A=this;if(Je.EVENTS_URL){var k=Nt(Je.EVENTS_URL);k.params.push("access_token="+(x||Je.ACCESS_TOKEN||""));var F={event:this.type,created:new Date(o).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:l,skuId:Ut,userId:this.anonId},Y=f?H(F,f):F,j={url:er(k),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Y])};this.pendingRequest=Ze(j,function(Q){A.pendingRequest=null,p(Q),A.saveEventData(),A.processRequests(x)})}},hr.prototype.queueRequest=function(o,f){this.queue.push(o),this.processRequests(f)};var yr=function(n){function o(){n.call(this,"map.load"),this.success={},this.skuToken=""}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postMapLoadEvent=function(p,x,A,k){this.skuToken=A,(Je.EVENTS_URL&&k||Je.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(F){return ut(F)||Pr(F)}))&&this.queueRequest({id:x,timestamp:Date.now()},k)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){var A=this.queue.shift(),k=A.id,F=A.timestamp;k&&this.success[k]||(this.anonId||this.fetchEventData(),oe(this.anonId)||(this.anonId=ee()),this.postEvent(F,{skuToken:this.skuToken},function(Y){Y||k&&(x.success[k]=!0)},p))}},o}(hr),mr=function(n){function o(f){n.call(this,"appUserTurnstile"),this._customAccessToken=f}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postTurnstileEvent=function(p,x){Je.EVENTS_URL&&Je.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(A){return ut(A)||Pr(A)})&&this.queueRequest(Date.now(),x)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var A=Gt(Je.ACCESS_TOKEN),k=A?A.u:Je.ACCESS_TOKEN,F=k!==this.eventData.tokenU;oe(this.anonId)||(this.anonId=ee(),F=!0);var Y=this.queue.shift();if(this.eventData.lastSuccess){var j=new Date(this.eventData.lastSuccess),Q=new Date(Y),ne=(Y-this.eventData.lastSuccess)/(24*60*60*1e3);F=F||ne>=1||ne<-1||j.getDate()!==Q.getDate()}else F=!0;if(!F)return this.processRequests();this.postEvent(Y,{"enabled.telemetry":!1},function(_e){_e||(x.eventData.lastSuccess=Y,x.eventData.tokenU=k)},p)}},o}(hr),Ct=new mr,Fe=Ct.postTurnstileEvent.bind(Ct),Ue=new yr,wt=Ue.postMapLoadEvent.bind(Ue),Tt="mapbox-tiles",vr=500,Mr=50,Tr=1e3*60*7,Gr;function pa(){_.caches&&!Gr&&(Gr=_.caches.open(Tt))}var Aa;function ai(n,o){if(Aa===void 0)try{new Response(new ReadableStream),Aa=!0}catch(f){Aa=!1}Aa?o(n.body):n.blob().then(o)}function bi(n,o,f){if(pa(),!!Gr){var p={status:o.status,statusText:o.statusText,headers:new _.Headers};o.headers.forEach(function(k,F){return p.headers.set(F,k)});var x=gt(o.headers.get("Cache-Control")||"");if(!x["no-store"]){x["max-age"]&&p.headers.set("Expires",new Date(f+x["max-age"]*1e3).toUTCString());var A=new Date(p.headers.get("Expires")).getTime()-f;ADate.now()&&!f["no-cache"]}var _n=1/0;function an(n){_n++,_n>Mr&&(n.getActor().send("enforceCacheSizeLimit",vr),_n=0)}function Gi(n){pa(),Gr&&Gr.then(function(o){o.keys().then(function(f){for(var p=0;p=200&&f.status<300||f.status===0)&&f.response!==null){var x=f.response;if(n.type==="json")try{x=JSON.parse(f.response)}catch(A){return o(A)}o(null,x,f.getResponseHeader("Cache-Control"),f.getResponseHeader("Expires"))}else o(new Xr(f.statusText,f.status,n.url))},f.send(n.body),{cancel:function(){return f.abort()}}}var Le=function(n,o){if(!te(n.url)){if(_.fetch&&_.Request&&_.AbortController&&_.Request.prototype.hasOwnProperty("signal"))return se(n,o);if(nt()&&self.worker&&self.worker.actor){var f=!0;return self.worker.actor.send("getResource",n,o,void 0,f)}}return ue(n,o)},Ne=function(n,o){return Le(H(n,{type:"json"}),o)},rt=function(n,o){return Le(H(n,{type:"arrayBuffer"}),o)},Ze=function(n,o){return Le(H(n,{method:"POST"}),o)};function yt(n){var o=_.document.createElement("a");return o.href=n,o.protocol===_.document.location.protocol&&o.host===_.document.location.host}var Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Rt(n,o,f,p){var x=new _.Image,A=_.URL;x.onload=function(){o(null,x),A.revokeObjectURL(x.src),x.onload=null,_.requestAnimationFrame(function(){x.src=Et})},x.onerror=function(){return o(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var k=new _.Blob([new Uint8Array(n)],{type:"image/png"});x.cacheControl=f,x.expires=p,x.src=n.byteLength?A.createObjectURL(k):Et}function tr(n,o){var f=new _.Blob([new Uint8Array(n)],{type:"image/png"});_.createImageBitmap(f).then(function(p){o(null,p)}).catch(function(p){o(new Error("Could not load image because of "+p.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Xt,Sr,Zr=function(){Xt=[],Sr=0};Zr();var Or=function(n,o){if(Pt.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Sr>=Je.MAX_PARALLEL_IMAGE_REQUESTS){var f={requestParameters:n,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return Xt.push(f),f}Sr++;var p=!1,x=function(){if(!p)for(p=!0,Sr--;Xt.length&&Sr0||this._oneTimeListeners&&this._oneTimeListeners[o]&&this._oneTimeListeners[o].length>0||this._eventedParent&&this._eventedParent.listens(o)},gr.prototype.setEventedParent=function(o,f){return this._eventedParent=o,this._eventedParentData=f,this};var ea=8,ga={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},nr={"*":{type:"source"}},wi=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Ca={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},oi={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fa={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},In={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Co={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},bs={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Ha={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Kn=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],du={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Oi={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pl={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},fp={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Gc={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Zc={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},xv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},bv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pu={type:"array",value:"*"},ml={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},cp={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},ef={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Qf={type:"array",value:"*",minimum:1},Qi={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Go=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],yo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},yl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Zo={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},mu={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},hp={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},wv={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},tf={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Tv={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Av={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},lo={"*":{type:"string"}},jt={$version:ea,$root:ga,sources:nr,source:wi,source_vector:Ca,source_raster:oi,source_raster_dem:fa,source_geojson:In,source_video:Co,source_image:bs,layer:Ha,layout:Kn,layout_background:du,layout_fill:Oi,layout_circle:pl,layout_heatmap:fp,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:Gc,layout_symbol:Zc,layout_raster:xv,layout_hillshade:bv,filter:pu,filter_operator:ml,geometry_type:cp,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:ef,expression:Qf,light:Qi,paint:Go,paint_fill:yo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:yl,paint_circle:Zo,paint_heatmap:mu,paint_symbol:hp,paint_raster:wv,paint_hillshade:tf,paint_background:Tv,transition:Av,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:lo},Ur=function(o,f,p,x){this.message=(o?o+": ":"")+p,x&&(this.identifier=x),f!=null&&f.__line__&&(this.line=f.__line__)};function vp(n){var o=n.key,f=n.value;return f?[new Ur(o,f,"constants have been deprecated as of v8")]:[]}function yu(n){for(var o=[],f=arguments.length-1;f-- >0;)o[f]=arguments[f+1];for(var p=0,x=o;p":n.itemType.kind==="value"?"array":"array<"+o+">"}else return n.kind}var As=[af,Er,ba,wa,Ts,fs,_l,go(Ma),xl];function cs(n,o){if(o.kind==="error")return null;if(n.kind==="array"){if(o.kind==="array"&&(o.N===0&&o.itemType.kind==="value"||!cs(n.itemType,o.itemType))&&(typeof n.N!="number"||n.N===o.N))return null}else{if(n.kind===o.kind)return null;if(n.kind==="value")for(var f=0,p=As;f255?255:j}function x(j){return j<0?0:j>1?1:j}function A(j){return j[j.length-1]==="%"?p(parseFloat(j)/100*255):p(parseInt(j))}function k(j){return j[j.length-1]==="%"?x(parseFloat(j)/100):x(parseFloat(j))}function F(j,Q,ne){return ne<0?ne+=1:ne>1&&(ne-=1),ne*6<1?j+(Q-j)*ne*6:ne*2<1?Q:ne*3<2?j+(Q-j)*(2/3-ne)*6:j}function Y(j){var Q=j.replace(/ /g,"").toLowerCase();if(Q in f)return f[Q].slice();if(Q[0]==="#"){if(Q.length===4){var ne=parseInt(Q.substr(1),16);return ne>=0&&ne<=4095?[(ne&3840)>>4|(ne&3840)>>8,ne&240|(ne&240)>>4,ne&15|(ne&15)<<4,1]:null}else if(Q.length===7){var ne=parseInt(Q.substr(1),16);return ne>=0&&ne<=16777215?[(ne&16711680)>>16,(ne&65280)>>8,ne&255,1]:null}return null}var _e=Q.indexOf("("),ve=Q.indexOf(")");if(_e!==-1&&ve+1===Q.length){var Ee=Q.substr(0,_e),qe=Q.substr(_e+1,ve-(_e+1)).split(","),ct=1;switch(Ee){case"rgba":if(qe.length!==4)return null;ct=k(qe.pop());case"rgb":return qe.length!==3?null:[A(qe[0]),A(qe[1]),A(qe[2]),ct];case"hsla":if(qe.length!==4)return null;ct=k(qe.pop());case"hsl":if(qe.length!==3)return null;var et=(parseFloat(qe[0])%360+360)%360/360,St=k(qe[1]),_t=k(qe[2]),Mt=_t<=.5?_t*(St+1):_t+St-_t*St,It=_t*2-Mt;return[p(F(It,Mt,et+1/3)*255),p(F(It,Mt,et)*255),p(F(It,Mt,et-1/3)*255),ct];default:return null}}return null}try{o.parseCSSColor=Y}catch(j){}}),$f=zm.parseCSSColor,ni=function(o,f,p,x){x===void 0&&(x=1),this.r=o,this.g=f,this.b=p,this.a=x};ni.parse=function(o){if(o){if(o instanceof ni)return o;if(typeof o=="string"){var f=$f(o);if(f)return new ni(f[0]/255*f[3],f[1]/255*f[3],f[2]/255*f[3],f[3])}}},ni.prototype.toString=function(){var o=this.toArray(),f=o[0],p=o[1],x=o[2],A=o[3];return"rgba("+Math.round(f)+","+Math.round(p)+","+Math.round(x)+","+A+")"},ni.prototype.toArray=function(){var o=this,f=o.r,p=o.g,x=o.b,A=o.a;return A===0?[0,0,0,0]:[f*255/A,p*255/A,x*255/A,A]},ni.black=new ni(0,0,0,1),ni.white=new ni(1,1,1,1),ni.transparent=new ni(0,0,0,0),ni.red=new ni(1,0,0,1);var ec=function(o,f,p){o?this.sensitivity=f?"variant":"case":this.sensitivity=f?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ec.prototype.compare=function(o,f){return this.collator.compare(o,f)},ec.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Mv=function(o,f,p,x,A){this.text=o,this.image=f,this.scale=p,this.fontStack=x,this.textColor=A},xn=function(o){this.sections=o};xn.fromString=function(o){return new xn([new Mv(o,null,null,null,null)])},xn.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(o){return o.text.length!==0||o.image&&o.image.name.length!==0})},xn.factory=function(o){return o instanceof xn?o:xn.fromString(o)},xn.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(o){return o.text}).join("")},xn.prototype.serialize=function(){for(var o=["format"],f=0,p=this.sections;f=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof f=="number"&&f>=0&&f<=255)){var x=typeof p=="number"?[n,o,f,p]:[n,o,f];return"Invalid rgba value ["+x.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof p=="undefined"||typeof p=="number"&&p>=0&&p<=1?null:"Invalid rgba value ["+[n,o,f,p].join(", ")+"]: 'a' must be between 0 and 1."}function nf(n){if(n===null)return!0;if(typeof n=="string")return!0;if(typeof n=="boolean")return!0;if(typeof n=="number")return!0;if(n instanceof ni)return!0;if(n instanceof ec)return!0;if(n instanceof xn)return!0;if(n instanceof Rn)return!0;if(Array.isArray(n)){for(var o=0,f=n;o2){var F=o[1];if(typeof F!="string"||!(F in tc)||F==="object")return f.error('The item type argument of "array" must be one of string, number, boolean',1);k=tc[F],p++}else k=Ma;var Y;if(o.length>3){if(o[2]!==null&&(typeof o[2]!="number"||o[2]<0||o[2]!==Math.floor(o[2])))return f.error('The length argument to "array" must be a positive integer literal',2);Y=o[2],p++}x=go(k,Y)}else x=tc[A];for(var j=[];p1)&&f.push(x)}}return f.concat(this.args.map(function(A){return A.serialize()}))};var Wo=function(o){this.type=fs,this.sections=o};Wo.parse=function(o,f){if(o.length<2)return f.error("Expected at least one argument.");var p=o[1];if(!Array.isArray(p)&&typeof p=="object")return f.error("First argument must be an image or text section.");for(var x=[],A=!1,k=1;k<=o.length-1;++k){var F=o[k];if(A&&typeof F=="object"&&!Array.isArray(F)){A=!1;var Y=null;if(F["font-scale"]&&(Y=f.parse(F["font-scale"],1,Er),!Y))return null;var j=null;if(F["text-font"]&&(j=f.parse(F["text-font"],1,go(ba)),!j))return null;var Q=null;if(F["text-color"]&&(Q=f.parse(F["text-color"],1,Ts),!Q))return null;var ne=x[x.length-1];ne.scale=Y,ne.font=j,ne.textColor=Q}else{var _e=f.parse(o[k],1,Ma);if(!_e)return null;var ve=_e.type.kind;if(ve!=="string"&&ve!=="value"&&ve!=="null"&&ve!=="resolvedImage")return f.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");A=!0,x.push({content:_e,scale:null,font:null,textColor:null})}}return new Wo(x)},Wo.prototype.evaluate=function(o){var f=function(p){var x=p.content.evaluate(o);return sn(x)===xl?new Mv("",x,null,null,null):new Mv(Eo(x),null,p.scale?p.scale.evaluate(o):null,p.font?p.font.evaluate(o).join(","):null,p.textColor?p.textColor.evaluate(o):null)};return new xn(this.sections.map(f))},Wo.prototype.eachChild=function(o){for(var f=0,p=this.sections;f-1),p},js.prototype.eachChild=function(o){o(this.input)},js.prototype.outputDefined=function(){return!1},js.prototype.serialize=function(){return["image",this.input.serialize()]};var Im={"to-boolean":wa,"to-color":Ts,"to-number":Er,"to-string":ba},Xo=function(o,f){this.type=o,this.args=f};Xo.parse=function(o,f){if(o.length<2)return f.error("Expected at least one argument.");var p=o[0];if((p==="to-boolean"||p==="to-string")&&o.length!==2)return f.error("Expected one argument.");for(var x=Im[p],A=[],k=1;k4?p="Invalid rbga value "+JSON.stringify(f)+": expected an array containing either three or four numeric values.":p=dp(f[0],f[1],f[2],f[3]),!p))return new ni(f[0]/255,f[1]/255,f[2]/255,f[3])}throw new vn(p||"Could not parse color from value '"+(typeof f=="string"?f:String(JSON.stringify(f)))+"'")}else if(this.type.kind==="number"){for(var Y=null,j=0,Q=this.args;j=o[2]||n[1]<=o[1]||n[3]>=o[3])}function Bm(n,o){var f=qm(n[0]),p=Nm(n[1]),x=Math.pow(2,o.z);return[Math.round(f*x*wl),Math.round(p*x*wl)]}function Om(n,o,f){var p=n[0]-o[0],x=n[1]-o[1],A=n[0]-f[0],k=n[1]-f[1];return p*k-A*x===0&&p*A<=0&&x*k<=0}function Um(n,o,f){return o[1]>n[1]!=f[1]>n[1]&&n[0]<(f[0]-o[0])*(n[1]-o[1])/(f[1]-o[1])+o[0]}function kv(n,o){for(var f=!1,p=0,x=o.length;p0&&ne<0||Q<0&&ne>0}function pp(n,o,f,p){var x=[o[0]-n[0],o[1]-n[1]],A=[p[0]-f[0],p[1]-f[1]];return Hm(A,x)===0?!1:!!(Cv(n,o,f,p)&&Cv(f,p,n,o))}function mp(n,o,f){for(var p=0,x=f;pf[2]){var x=p*.5,A=n[0]-f[0]>x?-p:f[0]-n[0]>x?p:0;A===0&&(A=n[0]-f[2]>x?-p:f[2]-n[0]>x?p:0),n[0]+=A}Sv(o,n)}function Zm(n){n[0]=n[1]=1/0,n[2]=n[3]=-1/0}function gp(n,o,f,p){for(var x=Math.pow(2,p.z)*wl,A=[p.x*wl,p.y*wl],k=[],F=0,Y=n;F=0)return!1;var f=!0;return n.eachChild(function(p){f&&!jc(p,o)&&(f=!1)}),f}var Al=function(o,f){this.type=f.type,this.name=o,this.boundExpression=f};Al.parse=function(o,f){if(o.length!==2||typeof o[1]!="string")return f.error("'var' expression requires exactly one string literal argument.");var p=o[1];return f.scope.has(p)?new Al(p,f.scope.get(p)):f.error('Unknown variable "'+p+'". Make sure "'+p+'" has been bound in an enclosing "let" expression before using it.',1)},Al.prototype.evaluate=function(o){return this.boundExpression.evaluate(o)},Al.prototype.eachChild=function(){},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["var",this.name]};var Ml=function(o,f,p,x,A){f===void 0&&(f=[]),x===void 0&&(x=new rf),A===void 0&&(A=[]),this.registry=o,this.path=f,this.key=f.map(function(k){return"["+k+"]"}).join(""),this.scope=x,this.errors=A,this.expectedType=p};Ml.prototype.parse=function(o,f,p,x,A){return A===void 0&&(A={}),f?this.concat(f,p,x)._parse(o,A):this._parse(o,A)},Ml.prototype._parse=function(o,f){(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number")&&(o=["literal",o]);function p(Q,ne,_e){return _e==="assert"?new ln(ne,[Q]):_e==="coerce"?new Xo(ne,[Q]):Q}if(Array.isArray(o)){if(o.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var x=o[0];if(typeof x!="string")return this.error("Expression name must be a string, but found "+typeof x+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var A=this.registry[x];if(A){var k=A.parse(o,this);if(!k)return null;if(this.expectedType){var F=this.expectedType,Y=k.type;if((F.kind==="string"||F.kind==="number"||F.kind==="boolean"||F.kind==="object"||F.kind==="array")&&Y.kind==="value")k=p(k,F,f.typeAnnotation||"assert");else if((F.kind==="color"||F.kind==="formatted"||F.kind==="resolvedImage")&&(Y.kind==="value"||Y.kind==="string"))k=p(k,F,f.typeAnnotation||"coerce");else if(this.checkSubtype(F,Y))return null}if(!(k instanceof Yo)&&k.type.kind!=="resolvedImage"&&Dv(k)){var j=new Js;try{k=new Yo(k.type,k.evaluate(j))}catch(Q){return this.error(Q.message),null}}return k}return this.error('Unknown expression "'+x+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof o=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof o=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof o+" instead.")},Ml.prototype.concat=function(o,f,p){var x=typeof o=="number"?this.path.concat(o):this.path,A=p?this.scope.concat(p):this.scope;return new Ml(this.registry,x,f||null,A,this.errors)},Ml.prototype.error=function(o){for(var f=[],p=arguments.length-1;p-- >0;)f[p]=arguments[p+1];var x=""+this.key+f.map(function(A){return"["+A+"]"}).join("");this.errors.push(new ws(x,o))},Ml.prototype.checkSubtype=function(o,f){var p=cs(o,f);return p&&this.error(p),p};function Dv(n){if(n instanceof Al)return Dv(n.boundExpression);if(n instanceof Fn&&n.name==="error")return!1;if(n instanceof bl)return!1;if(n instanceof hs)return!1;var o=n instanceof Xo||n instanceof ln,f=!0;return n.eachChild(function(p){o?f=f&&Dv(p):f=f&&p instanceof Yo}),f?Xc(n)&&jc(n,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Jc(n,o){for(var f=n.length-1,p=0,x=f,A=0,k,F;p<=x;)if(A=Math.floor((p+x)/2),k=n[A],F=n[A+1],k<=o){if(A===f||oo)x=A-1;else throw new vn("Input is not a number.");return 0}var Ms=function(o,f,p){this.type=o,this.input=f,this.labels=[],this.outputs=[];for(var x=0,A=p;x=F)return f.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',j);var ne=f.parse(Y,Q,A);if(!ne)return null;A=A||ne.type,x.push([F,ne])}return new Ms(A,p,x)},Ms.prototype.evaluate=function(o){var f=this.labels,p=this.outputs;if(f.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=f[0])return p[0].evaluate(o);var A=f.length;if(x>=f[A-1])return p[A-1].evaluate(o);var k=Jc(f,x);return p[k].evaluate(o)},Ms.prototype.eachChild=function(o){o(this.input);for(var f=0,p=this.outputs;f0&&o.push(this.labels[f]),o.push(this.outputs[f].serialize());return o};function dn(n,o,f){return n*(1-f)+o*f}function Wm(n,o,f){return new ni(dn(n.r,o.r,f),dn(n.g,o.g,f),dn(n.b,o.b,f),dn(n.a,o.a,f))}function Xm(n,o,f){return n.map(function(p,x){return dn(p,o[x],f)})}var Sl=Object.freeze({__proto__:null,number:dn,color:Wm,array:Xm}),of=.95047,vs=1,bp=1.08883,wp=4/29,sf=6/29,Tp=3*sf*sf,Ap=sf*sf*sf,jm=Math.PI/180,Jm=180/Math.PI;function Pv(n){return n>Ap?Math.pow(n,1/3):n/Tp+wp}function zv(n){return n>sf?n*n*n:Tp*(n-wp)}function Iv(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function rc(n){return n/=255,n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Kc(n){var o=rc(n.r),f=rc(n.g),p=rc(n.b),x=Pv((.4124564*o+.3575761*f+.1804375*p)/of),A=Pv((.2126729*o+.7151522*f+.072175*p)/vs),k=Pv((.0193339*o+.119192*f+.9503041*p)/bp);return{l:116*A-16,a:500*(x-A),b:200*(A-k),alpha:n.a}}function Mp(n){var o=(n.l+16)/116,f=isNaN(n.a)?o:o+n.a/500,p=isNaN(n.b)?o:o-n.b/200;return o=vs*zv(o),f=of*zv(f),p=bp*zv(p),new ni(Iv(3.2404542*f-1.5371385*o-.4985314*p),Iv(-.969266*f+1.8760108*o+.041556*p),Iv(.0556434*f-.2040259*o+1.0572252*p),n.alpha)}function Ri(n,o,f){return{l:dn(n.l,o.l,f),a:dn(n.a,o.a,f),b:dn(n.b,o.b,f),alpha:dn(n.alpha,o.alpha,f)}}function Km(n){var o=Kc(n),f=o.l,p=o.a,x=o.b,A=Math.atan2(x,p)*Jm;return{h:A<0?A+360:A,c:Math.sqrt(p*p+x*x),l:f,alpha:n.a}}function Qc(n){var o=n.h*jm,f=n.c,p=n.l;return Mp({l:p,a:Math.cos(o)*f,b:Math.sin(o)*f,alpha:n.alpha})}function Rv(n,o,f){var p=o-n;return n+f*(p>180||p<-180?p-360*Math.round(p/360):p)}function Sp(n,o,f){return{h:Rv(n.h,o.h,f),c:dn(n.c,o.c,f),l:dn(n.l,o.l,f),alpha:dn(n.alpha,o.alpha,f)}}var lf={forward:Kc,reverse:Mp,interpolate:Ri},bu={forward:Km,reverse:Qc,interpolate:Sp},Fv=Object.freeze({__proto__:null,lab:lf,hcl:bu}),bn=function(o,f,p,x,A){this.type=o,this.operator=f,this.interpolation=p,this.input=x,this.labels=[],this.outputs=[];for(var k=0,F=A;k1}))return f.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);x={name:"cubic-bezier",controlPoints:Y}}else return f.error("Unknown interpolation type "+String(x[0]),1,0);if(o.length-1<4)return f.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if((o.length-1)%2!==0)return f.error("Expected an even number of arguments.");if(A=f.parse(A,2,Er),!A)return null;var j=[],Q=null;p==="interpolate-hcl"||p==="interpolate-lab"?Q=Ts:f.expectedType&&f.expectedType.kind!=="value"&&(Q=f.expectedType);for(var ne=0;ne=_e)return f.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Ee);var ct=f.parse(ve,qe,Q);if(!ct)return null;Q=Q||ct.type,j.push([_e,ct])}return Q.kind!=="number"&&Q.kind!=="color"&&!(Q.kind==="array"&&Q.itemType.kind==="number"&&typeof Q.N=="number")?f.error("Type "+ki(Q)+" is not interpolatable."):new bn(Q,p,x,A,j)},bn.prototype.evaluate=function(o){var f=this.labels,p=this.outputs;if(f.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=f[0])return p[0].evaluate(o);var A=f.length;if(x>=f[A-1])return p[A-1].evaluate(o);var k=Jc(f,x),F=f[k],Y=f[k+1],j=bn.interpolationFactor(this.interpolation,x,F,Y),Q=p[k].evaluate(o),ne=p[k+1].evaluate(o);return this.operator==="interpolate"?Sl[this.type.kind.toLowerCase()](Q,ne,j):this.operator==="interpolate-hcl"?bu.reverse(bu.interpolate(bu.forward(Q),bu.forward(ne),j)):lf.reverse(lf.interpolate(lf.forward(Q),lf.forward(ne),j))},bn.prototype.eachChild=function(o){o(this.input);for(var f=0,p=this.outputs;f=p.length)throw new vn("Array index out of bounds: "+f+" > "+(p.length-1)+".");if(f!==Math.floor(f))throw new vn("Array index must be an integer, but found "+f+" instead.");return p[f]},Cl.prototype.eachChild=function(o){o(this.index),o(this.input)},Cl.prototype.outputDefined=function(){return!1},Cl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var El=function(o,f){this.type=wa,this.needle=o,this.haystack=f};El.parse=function(o,f){if(o.length!==3)return f.error("Expected 2 arguments, but found "+(o.length-1)+" instead.");var p=f.parse(o[1],1,Ma),x=f.parse(o[2],2,Ma);return!p||!x?null:Yc(p.type,[wa,ba,Er,af,Ma])?new El(p,x):f.error("Expected first argument to be of type boolean, string, number or null, but found "+ki(p.type)+" instead")},El.prototype.evaluate=function(o){var f=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!p)return!1;if(!_u(f,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+ki(sn(f))+" instead.");if(!_u(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+ki(sn(p))+" instead.");return p.indexOf(f)>=0},El.prototype.eachChild=function(o){o(this.needle),o(this.haystack)},El.prototype.outputDefined=function(){return!0},El.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Qs=function(o,f,p){this.type=Er,this.needle=o,this.haystack=f,this.fromIndex=p};Qs.parse=function(o,f){if(o.length<=2||o.length>=5)return f.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=f.parse(o[1],1,Ma),x=f.parse(o[2],2,Ma);if(!p||!x)return null;if(!Yc(p.type,[wa,ba,Er,af,Ma]))return f.error("Expected first argument to be of type boolean, string, number or null, but found "+ki(p.type)+" instead");if(o.length===4){var A=f.parse(o[3],3,Er);return A?new Qs(p,x,A):null}else return new Qs(p,x)},Qs.prototype.evaluate=function(o){var f=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!_u(f,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+ki(sn(f))+" instead.");if(!_u(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+ki(sn(p))+" instead.");if(this.fromIndex){var x=this.fromIndex.evaluate(o);return p.indexOf(f,x)}return p.indexOf(f)},Qs.prototype.eachChild=function(o){o(this.needle),o(this.haystack),this.fromIndex&&o(this.fromIndex)},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var o=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),o]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Ss=function(o,f,p,x,A,k){this.inputType=o,this.type=f,this.input=p,this.cases=x,this.outputs=A,this.otherwise=k};Ss.parse=function(o,f){if(o.length<5)return f.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if(o.length%2!==1)return f.error("Expected an even number of arguments.");var p,x;f.expectedType&&f.expectedType.kind!=="value"&&(x=f.expectedType);for(var A={},k=[],F=2;FNumber.MAX_SAFE_INTEGER)return Q.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof ve=="number"&&Math.floor(ve)!==ve)return Q.error("Numeric branch labels must be integer values.");if(!p)p=sn(ve);else if(Q.checkSubtype(p,sn(ve)))return null;if(typeof A[String(ve)]!="undefined")return Q.error("Branch labels must be unique.");A[String(ve)]=k.length}var Ee=f.parse(j,F,x);if(!Ee)return null;x=x||Ee.type,k.push(Ee)}var qe=f.parse(o[1],1,Ma);if(!qe)return null;var ct=f.parse(o[o.length-1],o.length-1,x);return!ct||qe.type.kind!=="value"&&f.concat(1).checkSubtype(p,qe.type)?null:new Ss(p,x,qe,A,k,ct)},Ss.prototype.evaluate=function(o){var f=this.input.evaluate(o),p=sn(f)===this.inputType&&this.outputs[this.cases[f]]||this.otherwise;return p.evaluate(o)},Ss.prototype.eachChild=function(o){o(this.input),this.outputs.forEach(o),o(this.otherwise)},Ss.prototype.outputDefined=function(){return this.outputs.every(function(o){return o.outputDefined()})&&this.otherwise.outputDefined()},Ss.prototype.serialize=function(){for(var o=this,f=["match",this.input.serialize()],p=Object.keys(this.cases).sort(),x=[],A={},k=0,F=p;k=5)return f.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=f.parse(o[1],1,Ma),x=f.parse(o[2],2,Er);if(!p||!x)return null;if(!Yc(p.type,[go(Ma),ba,Ma]))return f.error("Expected first argument to be of type array or string, but found "+ki(p.type)+" instead");if(o.length===4){var A=f.parse(o[3],3,Er);return A?new Ll(p.type,p,x,A):null}else return new Ll(p.type,p,x)},Ll.prototype.evaluate=function(o){var f=this.input.evaluate(o),p=this.beginIndex.evaluate(o);if(!_u(f,["string","array"]))throw new vn("Expected first argument to be of type array or string, but found "+ki(sn(f))+" instead.");if(this.endIndex){var x=this.endIndex.evaluate(o);return f.slice(p,x)}return f.slice(p)},Ll.prototype.eachChild=function(o){o(this.input),o(this.beginIndex),this.endIndex&&o(this.endIndex)},Ll.prototype.outputDefined=function(){return!1},Ll.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var o=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),o]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function kp(n,o){return n==="=="||n==="!="?o.kind==="boolean"||o.kind==="string"||o.kind==="number"||o.kind==="null"||o.kind==="value":o.kind==="string"||o.kind==="number"||o.kind==="value"}function Qm(n,o,f){return o===f}function $m(n,o,f){return o!==f}function ey(n,o,f){return of}function Ep(n,o,f){return o<=f}function qv(n,o,f){return o>=f}function Nv(n,o,f,p){return p.compare(o,f)===0}function ic(n,o,f,p){return!Nv(n,o,f,p)}function $c(n,o,f,p){return p.compare(o,f)<0}function Lp(n,o,f,p){return p.compare(o,f)>0}function Bv(n,o,f,p){return p.compare(o,f)<=0}function Dp(n,o,f,p){return p.compare(o,f)>=0}function uf(n,o,f){var p=n!=="=="&&n!=="!=";return function(){function x(A,k,F){this.type=wa,this.lhs=A,this.rhs=k,this.collator=F,this.hasUntypedArgument=A.type.kind==="value"||k.type.kind==="value"}return x.parse=function(k,F){if(k.length!==3&&k.length!==4)return F.error("Expected two or three arguments.");var Y=k[0],j=F.parse(k[1],1,Ma);if(!j)return null;if(!kp(Y,j.type))return F.concat(1).error('"'+Y+`" comparisons are not supported for type '`+ki(j.type)+"'.");var Q=F.parse(k[2],2,Ma);if(!Q)return null;if(!kp(Y,Q.type))return F.concat(2).error('"'+Y+`" comparisons are not supported for type '`+ki(Q.type)+"'.");if(j.type.kind!==Q.type.kind&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot compare types '"+ki(j.type)+"' and '"+ki(Q.type)+"'.");p&&(j.type.kind==="value"&&Q.type.kind!=="value"?j=new ln(Q.type,[j]):j.type.kind!=="value"&&Q.type.kind==="value"&&(Q=new ln(j.type,[Q])));var ne=null;if(k.length===4){if(j.type.kind!=="string"&&Q.type.kind!=="string"&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot use collator to compare non-string types.");if(ne=F.parse(k[3],3,gu),!ne)return null}return new x(j,Q,ne)},x.prototype.evaluate=function(k){var F=this.lhs.evaluate(k),Y=this.rhs.evaluate(k);if(p&&this.hasUntypedArgument){var j=sn(F),Q=sn(Y);if(j.kind!==Q.kind||!(j.kind==="string"||j.kind==="number"))throw new vn('Expected arguments for "'+n+'" to be (string, string) or (number, number), but found ('+j.kind+", "+Q.kind+") instead.")}if(this.collator&&!p&&this.hasUntypedArgument){var ne=sn(F),_e=sn(Y);if(ne.kind!=="string"||_e.kind!=="string")return o(k,F,Y)}return this.collator?f(k,F,Y,this.collator.evaluate(k)):o(k,F,Y)},x.prototype.eachChild=function(k){k(this.lhs),k(this.rhs),this.collator&&k(this.collator)},x.prototype.outputDefined=function(){return!0},x.prototype.serialize=function(){var k=[n];return this.eachChild(function(F){k.push(F.serialize())}),k},x}()}var ty=uf("==",Qm,Nv),Pp=uf("!=",$m,ic),zp=uf("<",ey,$c),Ip=uf(">",Cp,Lp),Ov=uf("<=",Ep,Bv),Uv=uf(">=",qv,Dp),wu=function(o,f,p,x,A){this.type=ba,this.number=o,this.locale=f,this.currency=p,this.minFractionDigits=x,this.maxFractionDigits=A};wu.parse=function(o,f){if(o.length!==3)return f.error("Expected two arguments.");var p=f.parse(o[1],1,Er);if(!p)return null;var x=o[2];if(typeof x!="object"||Array.isArray(x))return f.error("NumberFormat options argument must be an object.");var A=null;if(x.locale&&(A=f.parse(x.locale,1,ba),!A))return null;var k=null;if(x.currency&&(k=f.parse(x.currency,1,ba),!k))return null;var F=null;if(x["min-fraction-digits"]&&(F=f.parse(x["min-fraction-digits"],1,Er),!F))return null;var Y=null;return x["max-fraction-digits"]&&(Y=f.parse(x["max-fraction-digits"],1,Er),!Y)?null:new wu(p,A,k,F,Y)},wu.prototype.evaluate=function(o){return new Intl.NumberFormat(this.locale?this.locale.evaluate(o):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(o):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(o):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(o):void 0}).format(this.number.evaluate(o))},wu.prototype.eachChild=function(o){o(this.number),this.locale&&o(this.locale),this.currency&&o(this.currency),this.minFractionDigits&&o(this.minFractionDigits),this.maxFractionDigits&&o(this.maxFractionDigits)},wu.prototype.outputDefined=function(){return!1},wu.prototype.serialize=function(){var o={};return this.locale&&(o.locale=this.locale.serialize()),this.currency&&(o.currency=this.currency.serialize()),this.minFractionDigits&&(o["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(o["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),o]};var Dl=function(o){this.type=Er,this.input=o};Dl.parse=function(o,f){if(o.length!==2)return f.error("Expected 1 argument, but found "+(o.length-1)+" instead.");var p=f.parse(o[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?f.error("Expected argument of type string or array, but found "+ki(p.type)+" instead."):new Dl(p):null},Dl.prototype.evaluate=function(o){var f=this.input.evaluate(o);if(typeof f=="string")return f.length;if(Array.isArray(f))return f.length;throw new vn("Expected value to be of type string or array, but found "+ki(sn(f))+" instead.")},Dl.prototype.eachChild=function(o){o(this.input)},Dl.prototype.outputDefined=function(){return!1},Dl.prototype.serialize=function(){var o=["length"];return this.eachChild(function(f){o.push(f.serialize())}),o};var nc={"==":ty,"!=":Pp,">":Ip,"<":zp,">=":Uv,"<=":Ov,array:ln,at:Cl,boolean:ln,case:ks,coalesce:Ks,collator:bl,format:Wo,image:js,in:El,"index-of":Qs,interpolate:bn,"interpolate-hcl":bn,"interpolate-lab":bn,length:Dl,let:kl,literal:Yo,match:Ss,number:ln,"number-format":wu,object:ln,slice:Ll,step:Ms,string:ln,"to-boolean":Xo,"to-color":Xo,"to-number":Xo,"to-string":Xo,var:Al,within:hs};function Vv(n,o){var f=o[0],p=o[1],x=o[2],A=o[3];f=f.evaluate(n),p=p.evaluate(n),x=x.evaluate(n);var k=A?A.evaluate(n):1,F=dp(f,p,x,k);if(F)throw new vn(F);return new ni(f/255*k,p/255*k,x/255*k,k)}function eh(n,o){return n in o}function th(n,o){var f=o[n];return typeof f=="undefined"?null:f}function rh(n,o,f,p){for(;f<=p;){var x=f+p>>1;if(o[x]===n)return!0;o[x]>n?p=x-1:f=x+1}return!1}function Pl(n){return{type:n}}Fn.register(nc,{error:[Xs,[ba],function(n,o){var f=o[0];throw new vn(f.evaluate(n))}],typeof:[ba,[Ma],function(n,o){var f=o[0];return ki(sn(f.evaluate(n)))}],"to-rgba":[go(Er,4),[Ts],function(n,o){var f=o[0];return f.evaluate(n).toArray()}],rgb:[Ts,[Er,Er,Er],Vv],rgba:[Ts,[Er,Er,Er,Er],Vv],has:{type:wa,overloads:[[[ba],function(n,o){var f=o[0];return eh(f.evaluate(n),n.properties())}],[[ba,_l],function(n,o){var f=o[0],p=o[1];return eh(f.evaluate(n),p.evaluate(n))}]]},get:{type:Ma,overloads:[[[ba],function(n,o){var f=o[0];return th(f.evaluate(n),n.properties())}],[[ba,_l],function(n,o){var f=o[0],p=o[1];return th(f.evaluate(n),p.evaluate(n))}]]},"feature-state":[Ma,[ba],function(n,o){var f=o[0];return th(f.evaluate(n),n.featureState||{})}],properties:[_l,[],function(n){return n.properties()}],"geometry-type":[ba,[],function(n){return n.geometryType()}],id:[Ma,[],function(n){return n.id()}],zoom:[Er,[],function(n){return n.globals.zoom}],"heatmap-density":[Er,[],function(n){return n.globals.heatmapDensity||0}],"line-progress":[Er,[],function(n){return n.globals.lineProgress||0}],accumulated:[Ma,[],function(n){return n.globals.accumulated===void 0?null:n.globals.accumulated}],"+":[Er,Pl(Er),function(n,o){for(var f=0,p=0,x=o;p":[wa,[ba,Ma],function(n,o){var f=o[0],p=o[1],x=n.properties()[f.value],A=p.value;return typeof x==typeof A&&x>A}],"filter-id->":[wa,[Ma],function(n,o){var f=o[0],p=n.id(),x=f.value;return typeof p==typeof x&&p>x}],"filter-<=":[wa,[ba,Ma],function(n,o){var f=o[0],p=o[1],x=n.properties()[f.value],A=p.value;return typeof x==typeof A&&x<=A}],"filter-id-<=":[wa,[Ma],function(n,o){var f=o[0],p=n.id(),x=f.value;return typeof p==typeof x&&p<=x}],"filter->=":[wa,[ba,Ma],function(n,o){var f=o[0],p=o[1],x=n.properties()[f.value],A=p.value;return typeof x==typeof A&&x>=A}],"filter-id->=":[wa,[Ma],function(n,o){var f=o[0],p=n.id(),x=f.value;return typeof p==typeof x&&p>=x}],"filter-has":[wa,[Ma],function(n,o){var f=o[0];return f.value in n.properties()}],"filter-has-id":[wa,[],function(n){return n.id()!==null&&n.id()!==void 0}],"filter-type-in":[wa,[go(ba)],function(n,o){var f=o[0];return f.value.indexOf(n.geometryType())>=0}],"filter-id-in":[wa,[go(Ma)],function(n,o){var f=o[0];return f.value.indexOf(n.id())>=0}],"filter-in-small":[wa,[ba,go(Ma)],function(n,o){var f=o[0],p=o[1];return p.value.indexOf(n.properties()[f.value])>=0}],"filter-in-large":[wa,[ba,go(Ma)],function(n,o){var f=o[0],p=o[1];return rh(n.properties()[f.value],p.value,0,p.value.length-1)}],all:{type:wa,overloads:[[[wa,wa],function(n,o){var f=o[0],p=o[1];return f.evaluate(n)&&p.evaluate(n)}],[Pl(wa),function(n,o){for(var f=0,p=o;f-1}function ih(n){return!!n.expression&&n.expression.interpolated}function vi(n){return n instanceof Number?"number":n instanceof String?"string":n instanceof Boolean?"boolean":Array.isArray(n)?"array":n===null?"null":typeof n}function oc(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Fp(n){return n}function qp(n,o){var f=o.type==="color",p=n.stops&&typeof n.stops[0][0]=="object",x=p||n.property!==void 0,A=p||!x,k=n.type||(ih(o)?"exponential":"interval");if(f&&(n=yu({},n),n.stops&&(n.stops=n.stops.map(function(fr){return[fr[0],ni.parse(fr[1])]})),n.default?n.default=ni.parse(n.default):n.default=ni.parse(o.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!Fv[n.colorSpace])throw new Error("Unknown color space: "+n.colorSpace);var F,Y,j;if(k==="exponential")F=Hv;else if(k==="interval")F=Bp;else if(k==="categorical"){F=Np,Y=Object.create(null);for(var Q=0,ne=n.stops;Q=n.stops[p-1][0])return n.stops[p-1][1];var x=Jc(n.stops.map(function(A){return A[0]}),f);return n.stops[x][1]}function Hv(n,o,f){var p=n.base!==void 0?n.base:1;if(vi(f)!=="number")return zl(n.default,o.default);var x=n.stops.length;if(x===1||f<=n.stops[0][0])return n.stops[0][1];if(f>=n.stops[x-1][0])return n.stops[x-1][1];var A=Jc(n.stops.map(function(ne){return ne[0]}),f),k=ry(f,p,n.stops[A][0],n.stops[A+1][0]),F=n.stops[A][1],Y=n.stops[A+1][1],j=Sl[o.type]||Fp;if(n.colorSpace&&n.colorSpace!=="rgb"){var Q=Fv[n.colorSpace];j=function(ne,_e){return Q.reverse(Q.interpolate(Q.forward(ne),Q.forward(_e),k))}}return typeof F.evaluate=="function"?{evaluate:function(){for(var _e=[],ve=arguments.length;ve--;)_e[ve]=arguments[ve];var Ee=F.evaluate.apply(void 0,_e),qe=Y.evaluate.apply(void 0,_e);if(!(Ee===void 0||qe===void 0))return j(Ee,qe,k)}}:j(F,Y,k)}function Op(n,o,f){return o.type==="color"?f=ni.parse(f):o.type==="formatted"?f=xn.fromString(f.toString()):o.type==="resolvedImage"?f=Rn.fromString(f.toString()):vi(f)!==o.type&&(o.type!=="enum"||!o.values[f])&&(f=void 0),zl(f,n.default,o.default)}function ry(n,o,f,p){var x=p-f,A=n-f;return x===0?0:o===1?A/x:(Math.pow(o,A)-1)/(Math.pow(o,x)-1)}var Il=function(o,f){this.expression=o,this._warningHistory={},this._evaluator=new Js,this._defaultValue=f?iy(f):null,this._enumValues=f&&f.type==="enum"?f.values:null};Il.prototype.evaluateWithoutErrorHandling=function(o,f,p,x,A,k){return this._evaluator.globals=o,this._evaluator.feature=f,this._evaluator.featureState=p,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k,this.expression.evaluate(this._evaluator)},Il.prototype.evaluate=function(o,f,p,x,A,k){this._evaluator.globals=o,this._evaluator.feature=f||null,this._evaluator.featureState=p||null,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k||null;try{var F=this.expression.evaluate(this._evaluator);if(F==null||typeof F=="number"&&F!==F)return this._defaultValue;if(this._enumValues&&!(F in this._enumValues))throw new vn("Expected value to be one of "+Object.keys(this._enumValues).map(function(Y){return JSON.stringify(Y)}).join(", ")+", but found "+JSON.stringify(F)+" instead.");return F}catch(Y){return this._warningHistory[Y.message]||(this._warningHistory[Y.message]=!0,typeof console!="undefined"&&console.warn(Y.message)),this._defaultValue}};function Au(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in nc}function sc(n,o){var f=new Ml(nc,[],o?Gv(o):void 0),p=f.parse(n,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?ah(new Il(p,o)):Tu(f.errors)}var Cs=function(o,f){this.kind=o,this._styleExpression=f,this.isStateDependent=o!=="constant"&&!Tl(f.expression)};Cs.prototype.evaluateWithoutErrorHandling=function(o,f,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,f,p,x,A,k)},Cs.prototype.evaluate=function(o,f,p,x,A,k){return this._styleExpression.evaluate(o,f,p,x,A,k)};var Es=function(o,f,p,x){this.kind=o,this.zoomStops=p,this._styleExpression=f,this.isStateDependent=o!=="camera"&&!Tl(f.expression),this.interpolationType=x};Es.prototype.evaluateWithoutErrorHandling=function(o,f,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,f,p,x,A,k)},Es.prototype.evaluate=function(o,f,p,x,A,k){return this._styleExpression.evaluate(o,f,p,x,A,k)},Es.prototype.interpolationFactor=function(o,f,p){return this.interpolationType?bn.interpolationFactor(this.interpolationType,o,f,p):0};function jo(n,o){if(n=sc(n,o),n.result==="error")return n;var f=n.value.expression,p=Xc(f);if(!p&&!ff(o))return Tu([new ws("","data expressions not supported")]);var x=jc(f,["zoom"]);if(!x&&!Rp(o))return Tu([new ws("","zoom expressions not supported")]);var A=hf(f);if(!A&&!x)return Tu([new ws("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(A instanceof ws)return Tu([A]);if(A instanceof bn&&!ih(o))return Tu([new ws("",'"interpolate" expressions cannot be used with this property')]);if(!A)return ah(p?new Cs("constant",n.value):new Cs("source",n.value));var k=A instanceof bn?A.interpolation:void 0;return ah(p?new Es("camera",n.value,A.labels,k):new Es("composite",n.value,A.labels,k))}var cf=function(o,f){this._parameters=o,this._specification=f,yu(this,qp(this._parameters,this._specification))};cf.deserialize=function(o){return new cf(o._parameters,o._specification)},cf.serialize=function(o){return{_parameters:o._parameters,_specification:o._specification}};function ay(n,o){if(oc(n))return new cf(n,o);if(Au(n)){var f=jo(n,o);if(f.result==="error")throw new Error(f.value.map(function(x){return x.key+": "+x.message}).join(", "));return f.value}else{var p=n;return typeof n=="string"&&o.type==="color"&&(p=ni.parse(n)),{kind:"constant",evaluate:function(){return p}}}}function hf(n){var o=null;if(n instanceof kl)o=hf(n.result);else if(n instanceof Ks)for(var f=0,p=n.args;fp.maximum?[new Ur(o,f,f+" is greater than the maximum value "+p.maximum)]:[]}function nh(n){var o=n.valueSpec,f=on(n.value.type),p,x={},A,k,F=f!=="categorical"&&n.value.property===void 0,Y=!F,j=vi(n.value.stops)==="array"&&vi(n.value.stops[0])==="array"&&vi(n.value.stops[0][0])==="object",Q=ds({key:n.key,value:n.value,valueSpec:n.styleSpec.function,style:n.style,styleSpec:n.styleSpec,objectElementValidators:{stops:ne,default:Ee}});return f==="identity"&&F&&Q.push(new Ur(n.key,n.value,'missing required property "property"')),f!=="identity"&&!n.value.stops&&Q.push(new Ur(n.key,n.value,'missing required property "stops"')),f==="exponential"&&n.valueSpec.expression&&!ih(n.valueSpec)&&Q.push(new Ur(n.key,n.value,"exponential functions not supported")),n.styleSpec.$version>=8&&(Y&&!ff(n.valueSpec)?Q.push(new Ur(n.key,n.value,"property functions not supported")):F&&!Rp(n.valueSpec)&&Q.push(new Ur(n.key,n.value,"zoom functions not supported"))),(f==="categorical"||j)&&n.value.property===void 0&&Q.push(new Ur(n.key,n.value,'"property" property is required')),Q;function ne(qe){if(f==="identity")return[new Ur(qe.key,qe.value,'identity function may not have a "stops" property')];var ct=[],et=qe.value;return ct=ct.concat(Zv({key:qe.key,value:et,valueSpec:qe.valueSpec,style:qe.style,styleSpec:qe.styleSpec,arrayElementValidator:_e})),vi(et)==="array"&&et.length===0&&ct.push(new Ur(qe.key,et,"array must have at least one stop")),ct}function _e(qe){var ct=[],et=qe.value,St=qe.key;if(vi(et)!=="array")return[new Ur(St,et,"array expected, "+vi(et)+" found")];if(et.length!==2)return[new Ur(St,et,"array length 2 expected, length "+et.length+" found")];if(j){if(vi(et[0])!=="object")return[new Ur(St,et,"object expected, "+vi(et[0])+" found")];if(et[0].zoom===void 0)return[new Ur(St,et,"object stop key must have zoom")];if(et[0].value===void 0)return[new Ur(St,et,"object stop key must have value")];if(k&&k>on(et[0].zoom))return[new Ur(St,et[0].zoom,"stop zoom values must appear in ascending order")];on(et[0].zoom)!==k&&(k=on(et[0].zoom),A=void 0,x={}),ct=ct.concat(ds({key:St+"[0]",value:et[0],valueSpec:{zoom:{}},style:qe.style,styleSpec:qe.styleSpec,objectElementValidators:{zoom:vf,value:ve}}))}else ct=ct.concat(ve({key:St+"[0]",value:et[0],valueSpec:{},style:qe.style,styleSpec:qe.styleSpec},et));return Au(gl(et[1]))?ct.concat([new Ur(St+"[1]",et[1],"expressions are not allowed in function stops.")]):ct.concat(si({key:St+"[1]",value:et[1],valueSpec:o,style:qe.style,styleSpec:qe.styleSpec}))}function ve(qe,ct){var et=vi(qe.value),St=on(qe.value),_t=qe.value!==null?qe.value:ct;if(!p)p=et;else if(et!==p)return[new Ur(qe.key,_t,et+" stop domain type must match previous stop domain type "+p)];if(et!=="number"&&et!=="string"&&et!=="boolean")return[new Ur(qe.key,_t,"stop domain value must be a number, string, or boolean")];if(et!=="number"&&f!=="categorical"){var Mt="number expected, "+et+" found";return ff(o)&&f===void 0&&(Mt+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ur(qe.key,_t,Mt)]}return f==="categorical"&&et==="number"&&(!isFinite(St)||Math.floor(St)!==St)?[new Ur(qe.key,_t,"integer expected, found "+St)]:f!=="categorical"&&et==="number"&&A!==void 0&&St=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(var o=0,f=n.slice(1);oo?1:0}function pf(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(var o=1;o"||o==="<="||o===">="?Yv(n[1],n[2],o):o==="any"?sy(n.slice(1)):o==="all"?["all"].concat(n.slice(1).map(mf)):o==="none"?["all"].concat(n.slice(1).map(mf).map(lc)):o==="in"?Vp(n[1],n.slice(2)):o==="!in"?lc(Vp(n[1],n.slice(2))):o==="has"?Wv(n[1]):o==="!has"?lc(Wv(n[1])):o==="within"?n:!0;return f}function Yv(n,o,f){switch(n){case"$type":return["filter-type-"+f,o];case"$id":return["filter-id-"+f,o];default:return["filter-"+f,n,o]}}function sy(n){return["any"].concat(n.map(mf))}function Vp(n,o){if(o.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",o]];case"$id":return["filter-id-in",["literal",o]];default:return o.length>200&&!o.some(function(f){return typeof f!=typeof o[0]})?["filter-in-large",n,["literal",o.sort(Rl)]]:["filter-in-small",n,["literal",o]]}}function Wv(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function lc(n){return["!",n]}function sh(n){return _o(gl(n.value))?Mu(yu({},n,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xv(n)}function Xv(n){var o=n.value,f=n.key;if(vi(o)!=="array")return[new Ur(f,o,"array expected, "+vi(o)+" found")];var p=n.styleSpec,x,A=[];if(o.length<1)return[new Ur(f,o,"filter array must have at least 1 element")];switch(A=A.concat(oh({key:f+"[0]",value:o[0],valueSpec:p.filter_operator,style:n.style,styleSpec:n.styleSpec})),on(o[0])){case"<":case"<=":case">":case">=":o.length>=2&&on(o[1])==="$type"&&A.push(new Ur(f,o,'"$type" cannot be use with operator "'+o[0]+'"'));case"==":case"!=":o.length!==3&&A.push(new Ur(f,o,'filter array for operator "'+o[0]+'" must have 3 elements'));case"in":case"!in":o.length>=2&&(x=vi(o[1]),x!=="string"&&A.push(new Ur(f+"[1]",o[1],"string expected, "+x+" found")));for(var k=2;k=Q[ve+0]&&p>=Q[ve+1])?(k[_e]=!0,A.push(j[_e])):k[_e]=!1}}},Ds.prototype._forEachCell=function(n,o,f,p,x,A,k,F){for(var Y=this._convertToCellCoord(n),j=this._convertToCellCoord(o),Q=this._convertToCellCoord(f),ne=this._convertToCellCoord(p),_e=Y;_e<=Q;_e++)for(var ve=j;ve<=ne;ve++){var Ee=this.d*ve+_e;if(!(F&&!F(this._convertFromCellCoord(_e),this._convertFromCellCoord(ve),this._convertFromCellCoord(_e+1),this._convertFromCellCoord(ve+1)))&&x.call(this,n,o,f,p,Ee,A,k,F))return}},Ds.prototype._convertFromCellCoord=function(n){return(n-this.padding)/this.scale},Ds.prototype._convertToCellCoord=function(n){return Math.max(0,Math.min(this.d-1,Math.floor(n*this.scale)+this.padding))},Ds.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var n=this.cells,o=ql+this.cells.length+1+1,f=0,p=0;p=0)){var ne=n[Q];j[Q]=Nl[Y].shallow.indexOf(Q)>=0?ne:V(ne,o)}n instanceof Error&&(j.message=n.message)}if(j.$name)throw new Error("$name property is reserved for worker serialization logic.");return Y!=="Object"&&(j.$name=Y),j}throw new Error("can't serialize object of type "+typeof n)}function Z(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||P(n)||B(n)||ArrayBuffer.isView(n)||n instanceof hh)return n;if(Array.isArray(n))return n.map(Z);if(typeof n=="object"){var o=n.$name||"Object",f=Nl[o],p=f.klass;if(!p)throw new Error("can't deserialize unregistered class "+o);if(p.deserialize)return p.deserialize(n);for(var x=Object.create(p.prototype),A=0,k=Object.keys(n);A=0?Y:Z(Y)}}return x}throw new Error("can't deserialize object of type "+typeof n)}var $=function(){this.first=!0};$.prototype.update=function(o,f){var p=Math.floor(o);return this.first?(this.first=!1,this.lastIntegerZoom=p,this.lastIntegerZoomTime=0,this.lastZoom=o,this.lastFloorZoom=p,!0):(this.lastFloorZoom>p?(this.lastIntegerZoom=p+1,this.lastIntegerZoomTime=f):this.lastFloorZoom=128&&n<=255},Arabic:function(n){return n>=1536&&n<=1791},"Arabic Supplement":function(n){return n>=1872&&n<=1919},"Arabic Extended-A":function(n){return n>=2208&&n<=2303},"Hangul Jamo":function(n){return n>=4352&&n<=4607},"Unified Canadian Aboriginal Syllabics":function(n){return n>=5120&&n<=5759},Khmer:function(n){return n>=6016&&n<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(n){return n>=6320&&n<=6399},"General Punctuation":function(n){return n>=8192&&n<=8303},"Letterlike Symbols":function(n){return n>=8448&&n<=8527},"Number Forms":function(n){return n>=8528&&n<=8591},"Miscellaneous Technical":function(n){return n>=8960&&n<=9215},"Control Pictures":function(n){return n>=9216&&n<=9279},"Optical Character Recognition":function(n){return n>=9280&&n<=9311},"Enclosed Alphanumerics":function(n){return n>=9312&&n<=9471},"Geometric Shapes":function(n){return n>=9632&&n<=9727},"Miscellaneous Symbols":function(n){return n>=9728&&n<=9983},"Miscellaneous Symbols and Arrows":function(n){return n>=11008&&n<=11263},"CJK Radicals Supplement":function(n){return n>=11904&&n<=12031},"Kangxi Radicals":function(n){return n>=12032&&n<=12255},"Ideographic Description Characters":function(n){return n>=12272&&n<=12287},"CJK Symbols and Punctuation":function(n){return n>=12288&&n<=12351},Hiragana:function(n){return n>=12352&&n<=12447},Katakana:function(n){return n>=12448&&n<=12543},Bopomofo:function(n){return n>=12544&&n<=12591},"Hangul Compatibility Jamo":function(n){return n>=12592&&n<=12687},Kanbun:function(n){return n>=12688&&n<=12703},"Bopomofo Extended":function(n){return n>=12704&&n<=12735},"CJK Strokes":function(n){return n>=12736&&n<=12783},"Katakana Phonetic Extensions":function(n){return n>=12784&&n<=12799},"Enclosed CJK Letters and Months":function(n){return n>=12800&&n<=13055},"CJK Compatibility":function(n){return n>=13056&&n<=13311},"CJK Unified Ideographs Extension A":function(n){return n>=13312&&n<=19903},"Yijing Hexagram Symbols":function(n){return n>=19904&&n<=19967},"CJK Unified Ideographs":function(n){return n>=19968&&n<=40959},"Yi Syllables":function(n){return n>=40960&&n<=42127},"Yi Radicals":function(n){return n>=42128&&n<=42191},"Hangul Jamo Extended-A":function(n){return n>=43360&&n<=43391},"Hangul Syllables":function(n){return n>=44032&&n<=55215},"Hangul Jamo Extended-B":function(n){return n>=55216&&n<=55295},"Private Use Area":function(n){return n>=57344&&n<=63743},"CJK Compatibility Ideographs":function(n){return n>=63744&&n<=64255},"Arabic Presentation Forms-A":function(n){return n>=64336&&n<=65023},"Vertical Forms":function(n){return n>=65040&&n<=65055},"CJK Compatibility Forms":function(n){return n>=65072&&n<=65103},"Small Form Variants":function(n){return n>=65104&&n<=65135},"Arabic Presentation Forms-B":function(n){return n>=65136&&n<=65279},"Halfwidth and Fullwidth Forms":function(n){return n>=65280&&n<=65519}};function ae(n){for(var o=0,f=n;o=65097&&n<=65103)||X["CJK Compatibility Ideographs"](n)||X["CJK Compatibility"](n)||X["CJK Radicals Supplement"](n)||X["CJK Strokes"](n)||X["CJK Symbols and Punctuation"](n)&&!(n>=12296&&n<=12305)&&!(n>=12308&&n<=12319)&&n!==12336||X["CJK Unified Ideographs Extension A"](n)||X["CJK Unified Ideographs"](n)||X["Enclosed CJK Letters and Months"](n)||X["Hangul Compatibility Jamo"](n)||X["Hangul Jamo Extended-A"](n)||X["Hangul Jamo Extended-B"](n)||X["Hangul Jamo"](n)||X["Hangul Syllables"](n)||X.Hiragana(n)||X["Ideographic Description Characters"](n)||X.Kanbun(n)||X["Kangxi Radicals"](n)||X["Katakana Phonetic Extensions"](n)||X.Katakana(n)&&n!==12540||X["Halfwidth and Fullwidth Forms"](n)&&n!==65288&&n!==65289&&n!==65293&&!(n>=65306&&n<=65310)&&n!==65339&&n!==65341&&n!==65343&&!(n>=65371&&n<=65503)&&n!==65507&&!(n>=65512&&n<=65519)||X["Small Form Variants"](n)&&!(n>=65112&&n<=65118)&&!(n>=65123&&n<=65126)||X["Unified Canadian Aboriginal Syllabics"](n)||X["Unified Canadian Aboriginal Syllabics Extended"](n)||X["Vertical Forms"](n)||X["Yijing Hexagram Symbols"](n)||X["Yi Syllables"](n)||X["Yi Radicals"](n))}function $e(n){return!!(X["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||X["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||X["Letterlike Symbols"](n)||X["Number Forms"](n)||X["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||X["Control Pictures"](n)&&n!==9251||X["Optical Character Recognition"](n)||X["Enclosed Alphanumerics"](n)||X["Geometric Shapes"](n)||X["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||X["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||X["CJK Symbols and Punctuation"](n)||X.Katakana(n)||X["Private Use Area"](n)||X["CJK Compatibility Forms"](n)||X["Small Form Variants"](n)||X["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}function st(n){return!(Pe(n)||$e(n))}function Ie(n){return X.Arabic(n)||X["Arabic Supplement"](n)||X["Arabic Extended-A"](n)||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function He(n){return n>=1424&&n<=2303||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Qe(n,o){return!(!o&&He(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||X.Khmer(n))}function ht(n){for(var o=0,f=n;o-1&&(or=je.error),Zt&&Zt(n)};function zr(){Rr.fire(new ti("pluginStateChange",{pluginStatus:or,pluginURL:cr}))}var Rr=new gr,ta=function(){return or},Vr=function(n){return n({pluginStatus:or,pluginURL:cr}),Rr.on("pluginStateChange",n),n},Qr=function(n,o,f){if(f===void 0&&(f=!1),or===je.deferred||or===je.loading||or===je.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");cr=at.resolveURL(n),or=je.deferred,Zt=o,zr(),f||qa()},qa=function(){if(or!==je.deferred||!cr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");or=je.loading,zr(),cr&&rt({url:cr},function(n){n?ur(n):(or=je.loaded,zr())})},$a={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return or===je.loaded||$a.applyArabicShaping!=null},isLoading:function(){return or===je.loading},setState:function(o){or=o.pluginStatus,cr=o.pluginURL},isParsed:function(){return $a.applyArabicShaping!=null&&$a.processBidirectionalText!=null&&$a.processStyledBidirectionalText!=null},getPluginURL:function(){return cr}},Ka=function(){!$a.isLoading()&&!$a.isLoaded()&&ta()==="deferred"&&qa()},Jt=function(o,f){this.zoom=o,f?(this.now=f.now,this.fadeDuration=f.fadeDuration,this.zoomHistory=f.zoomHistory,this.transition=f.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $,this.transition={})};Jt.prototype.isSupportedScript=function(o){return ot(o,$a.isLoaded())},Jt.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Jt.prototype.getCrossfadeParameters=function(){var o=this.zoom,f=o-Math.floor(o),p=this.crossFadingFactor();return o>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:f+(1-f)*p}:{fromScale:.5,toScale:1,t:1-(1-p)*f}};var Kr=function(o,f){this.property=o,this.value=f,this.expression=ay(f===void 0?o.specification.default:f,o.specification)};Kr.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Kr.prototype.possiblyEvaluate=function(o,f,p){return this.property.possiblyEvaluate(this,o,f,p)};var oa=function(o){this.property=o,this.value=new Kr(o,void 0)};oa.prototype.transitioned=function(o,f){return new Ei(this.property,this.value,f,H({},o.transition,this.transition),o.now)},oa.prototype.untransitioned=function(){return new Ei(this.property,this.value,null,{},0)};var sa=function(o){this._properties=o,this._values=Object.create(o.defaultTransitionablePropertyValues)};sa.prototype.getValue=function(o){return Se(this._values[o].value.value)},sa.prototype.setValue=function(o,f){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].value=new Kr(this._values[o].property,f===null?void 0:Se(f))},sa.prototype.getTransition=function(o){return Se(this._values[o].transition)},sa.prototype.setTransition=function(o,f){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].transition=Se(f)||void 0},sa.prototype.serialize=function(){for(var o={},f=0,p=Object.keys(this._values);fthis.end)return this.prior=null,A;if(this.value.isDataDriven())return this.prior=null,A;if(xk.zoomHistory.lastIntegerZoom?{from:p,to:x}:{from:A,to:x}},o.prototype.interpolate=function(p){return p},o}(Hr),Ti=function(o){this.specification=o};Ti.prototype.possiblyEvaluate=function(o,f,p,x){if(o.value!==void 0)if(o.expression.kind==="constant"){var A=o.expression.evaluate(f,null,{},p,x);return this._calculate(A,A,A,f)}else return this._calculate(o.expression.evaluate(new Jt(Math.floor(f.zoom-1),f)),o.expression.evaluate(new Jt(Math.floor(f.zoom),f)),o.expression.evaluate(new Jt(Math.floor(f.zoom+1),f)),f)},Ti.prototype._calculate=function(o,f,p,x){var A=x.zoom;return A>x.zoomHistory.lastIntegerZoom?{from:o,to:f}:{from:p,to:f}},Ti.prototype.interpolate=function(o){return o};var fo=function(o){this.specification=o};fo.prototype.possiblyEvaluate=function(o,f,p,x){return!!o.expression.evaluate(f,null,{},p,x)},fo.prototype.interpolate=function(){return!1};var qn=function(o){this.properties=o,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var f in o){var p=o[f];p.specification.overridable&&this.overridableProperties.push(f);var x=this.defaultPropertyValues[f]=new Kr(p,void 0),A=this.defaultTransitionablePropertyValues[f]=new oa(p);this.defaultTransitioningPropertyValues[f]=A.untransitioned(),this.defaultPossiblyEvaluatedValues[f]=x.possiblyEvaluate({})}};y("DataDrivenProperty",Hr),y("DataConstantProperty",Ar),y("CrossFadedDataDrivenProperty",Fi),y("CrossFadedProperty",Ti),y("ColorRampProperty",fo);var pn="-transition",di=function(n){function o(f,p){if(n.call(this),this.id=f.id,this.type=f.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},f.type!=="custom"&&(f=f,this.metadata=f.metadata,this.minzoom=f.minzoom,this.maxzoom=f.maxzoom,f.type!=="background"&&(this.source=f.source,this.sourceLayer=f["source-layer"],this.filter=f.filter),p.layout&&(this._unevaluatedLayout=new $i(p.layout)),p.paint)){this._transitionablePaint=new sa(p.paint);for(var x in f.paint)this.setPaintProperty(x,f.paint[x],{validate:!1});for(var A in f.layout)this.setLayoutProperty(A,f.layout[A],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new wn(p.paint)}}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},o.prototype.getLayoutProperty=function(p){return p==="visibility"?this.visibility:this._unevaluatedLayout.getValue(p)},o.prototype.setLayoutProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".layout."+p;if(this._validate(Fl,k,p,x,A))return}if(p==="visibility"){this.visibility=x;return}this._unevaluatedLayout.setValue(p,x)},o.prototype.getPaintProperty=function(p){return fe(p,pn)?this._transitionablePaint.getTransition(p.slice(0,-pn.length)):this._transitionablePaint.getValue(p)},o.prototype.setPaintProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".paint."+p;if(this._validate(ch,k,p,x,A))return!1}if(fe(p,pn))return this._transitionablePaint.setTransition(p.slice(0,-pn.length),x||void 0),!1;var F=this._transitionablePaint._values[p],Y=F.property.specification["property-type"]==="cross-faded-data-driven",j=F.value.isDataDriven(),Q=F.value;this._transitionablePaint.setValue(p,x),this._handleSpecialPaintPropertyUpdate(p);var ne=this._transitionablePaint._values[p].value,_e=ne.isDataDriven();return _e||j||Y||this._handleOverridablePaintPropertyUpdate(p,Q,ne)},o.prototype._handleSpecialPaintPropertyUpdate=function(p){},o.prototype._handleOverridablePaintPropertyUpdate=function(p,x,A){return!1},o.prototype.isHidden=function(p){return this.minzoom&&p=this.maxzoom?!0:this.visibility==="none"},o.prototype.updateTransitions=function(p){this._transitioningPaint=this._transitionablePaint.transitioned(p,this._transitioningPaint)},o.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},o.prototype.recalculate=function(p,x){p.getCrossfadeParameters&&(this._crossfadeParameters=p.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(p,void 0,x)),this.paint=this._transitioningPaint.possiblyEvaluate(p,void 0,x)},o.prototype.serialize=function(){var p={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(p.layout=p.layout||{},p.layout.visibility=this.visibility),ke(p,function(x,A){return x!==void 0&&!(A==="layout"&&!Object.keys(x).length)&&!(A==="paint"&&!Object.keys(x).length)})},o.prototype._validate=function(p,x,A,k,F){return F===void 0&&(F={}),F&&F.validate===!1?!1:uc(this,p.call(Qa,{key:x,layerType:this.type,objectKey:A,value:k,styleSpec:jt,style:{glyphs:!0,sprite:!0}}))},o.prototype.is3D=function(){return!1},o.prototype.isTileClipped=function(){return!1},o.prototype.hasOffscreenPass=function(){return!1},o.prototype.resize=function(){},o.prototype.isStateDependent=function(){for(var p in this.paint._values){var x=this.paint.get(p);if(!(!(x instanceof xi)||!ff(x.property.specification))&&(x.value.kind==="source"||x.value.kind==="composite")&&x.value.isStateDependent)return!0}return!1},o}(gr),Jo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},co=function(o,f){this._structArray=o,this._pos1=f*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},fi=128,bf=5,Ta=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Ta.serialize=function(o,f){return o._trim(),f&&(o.isTransferred=!0,f.push(o.arrayBuffer)),{length:o.length,arrayBuffer:o.arrayBuffer}},Ta.deserialize=function(o){var f=Object.create(this.prototype);return f.arrayBuffer=o.arrayBuffer,f.length=o.length,f.capacity=o.arrayBuffer.byteLength/f.bytesPerElement,f._refreshViews(),f},Ta.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ta.prototype.clear=function(){this.length=0},Ta.prototype.resize=function(o){this.reserve(o),this.length=o},Ta.prototype.reserve=function(o){if(o>this.capacity){this.capacity=Math.max(o,Math.floor(this.capacity*bf),fi),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var f=this.uint8;this._refreshViews(),f&&this.uint8.set(f)}},Ta.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function li(n,o){o===void 0&&(o=1);var f=0,p=0,x=n.map(function(k){var F=Bl(k.type),Y=f=Kv(f,Math.max(o,F)),j=k.components||1;return p=Math.max(p,F),f+=F*j,{name:k.name,type:k.type,components:j,offset:Y}}),A=Kv(f,Math.max(p,o));return{members:x,size:A,alignment:o}}function Bl(n){return Jo[n].BYTES_PER_ELEMENT}function Kv(n,o){return Math.ceil(n/o)*o}var fc=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.int16[k+0]=x,this.int16[k+1]=A,p},o}(Ta);fc.prototype.bytesPerElement=4,y("StructArrayLayout2i4",fc);var ly=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.int16[Y+0]=x,this.int16[Y+1]=A,this.int16[Y+2]=k,this.int16[Y+3]=F,p},o}(Ta);ly.prototype.bytesPerElement=8,y("StructArrayLayout4i8",ly);var wf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Ta);wf.prototype.bytesPerElement=12,y("StructArrayLayout2i4i12",wf);var vh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*4,ne=p*8;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.uint8[ne+4]=k,this.uint8[ne+5]=F,this.uint8[ne+6]=Y,this.uint8[ne+7]=j,p},o}(Ta);vh.prototype.bytesPerElement=8,y("StructArrayLayout2i4ub8",vh);var dh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.float32[k+0]=x,this.float32[k+1]=A,p},o}(Ta);dh.prototype.bytesPerElement=8,y("StructArrayLayout2f8",dh);var Lo=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,_e){var ve=this.length;return this.resize(ve+1),this.emplace(ve,p,x,A,k,F,Y,j,Q,ne,_e)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e,ve){var Ee=p*10;return this.uint16[Ee+0]=x,this.uint16[Ee+1]=A,this.uint16[Ee+2]=k,this.uint16[Ee+3]=F,this.uint16[Ee+4]=Y,this.uint16[Ee+5]=j,this.uint16[Ee+6]=Q,this.uint16[Ee+7]=ne,this.uint16[Ee+8]=_e,this.uint16[Ee+9]=ve,p},o}(Ta);Lo.prototype.bytesPerElement=20,y("StructArrayLayout10ui20",Lo);var Tf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee){var qe=this.length;return this.resize(qe+1),this.emplace(qe,p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe){var ct=p*12;return this.int16[ct+0]=x,this.int16[ct+1]=A,this.int16[ct+2]=k,this.int16[ct+3]=F,this.uint16[ct+4]=Y,this.uint16[ct+5]=j,this.uint16[ct+6]=Q,this.uint16[ct+7]=ne,this.int16[ct+8]=_e,this.int16[ct+9]=ve,this.int16[ct+10]=Ee,this.int16[ct+11]=qe,p},o}(Ta);Tf.prototype.bytesPerElement=24,y("StructArrayLayout4i4ui4i24",Tf);var uy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.float32[F+0]=x,this.float32[F+1]=A,this.float32[F+2]=k,p},o}(Ta);uy.prototype.bytesPerElement=12,y("StructArrayLayout3f12",uy);var fy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint32[A+0]=x,p},o}(Ta);fy.prototype.bytesPerElement=4,y("StructArrayLayout1ul4",fy);var Qv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne){var _e=this.length;return this.resize(_e+1),this.emplace(_e,p,x,A,k,F,Y,j,Q,ne)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e){var ve=p*10,Ee=p*5;return this.int16[ve+0]=x,this.int16[ve+1]=A,this.int16[ve+2]=k,this.int16[ve+3]=F,this.int16[ve+4]=Y,this.int16[ve+5]=j,this.uint32[Ee+3]=Q,this.uint16[ve+8]=ne,this.uint16[ve+9]=_e,p},o}(Ta);Qv.prototype.bytesPerElement=20,y("StructArrayLayout6i1ul2ui20",Qv);var Wp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Ta);Wp.prototype.bytesPerElement=12,y("StructArrayLayout2i2i2i12",Wp);var ku=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F){var Y=this.length;return this.resize(Y+1),this.emplace(Y,p,x,A,k,F)},o.prototype.emplace=function(p,x,A,k,F,Y){var j=p*4,Q=p*8;return this.float32[j+0]=x,this.float32[j+1]=A,this.float32[j+2]=k,this.int16[Q+6]=F,this.int16[Q+7]=Y,p},o}(Ta);ku.prototype.bytesPerElement=16,y("StructArrayLayout2f1f2i16",ku);var Ko=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*12,j=p*3;return this.uint8[Y+0]=x,this.uint8[Y+1]=A,this.float32[j+1]=k,this.float32[j+2]=F,p},o}(Ta);Ko.prototype.bytesPerElement=12,y("StructArrayLayout2ub2f12",Ko);var Cu=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.uint16[F+0]=x,this.uint16[F+1]=A,this.uint16[F+2]=k,p},o}(Ta);Cu.prototype.bytesPerElement=6,y("StructArrayLayout3ui6",Cu);var $v=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,St,_t){var Mt=this.length;return this.resize(Mt+1),this.emplace(Mt,p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,St,_t)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,St,_t,Mt){var It=p*24,Kt=p*12,pr=p*48;return this.int16[It+0]=x,this.int16[It+1]=A,this.uint16[It+2]=k,this.uint16[It+3]=F,this.uint32[Kt+2]=Y,this.uint32[Kt+3]=j,this.uint32[Kt+4]=Q,this.uint16[It+10]=ne,this.uint16[It+11]=_e,this.uint16[It+12]=ve,this.float32[Kt+7]=Ee,this.float32[Kt+8]=qe,this.uint8[pr+36]=ct,this.uint8[pr+37]=et,this.uint8[pr+38]=St,this.uint32[Kt+10]=_t,this.int16[It+22]=Mt,p},o}(Ta);$v.prototype.bytesPerElement=48,y("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",$v);var Xp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,St,_t,Mt,It,Kt,pr,fr,Fr,Cr,Ir,$r,qr,Br){var ya=this.length;return this.resize(ya+1),this.emplace(ya,p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,St,_t,Mt,It,Kt,pr,fr,Fr,Cr,Ir,$r,qr,Br)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,St,_t,Mt,It,Kt,pr,fr,Fr,Cr,Ir,$r,qr,Br,ya){var jr=p*34,Za=p*17;return this.int16[jr+0]=x,this.int16[jr+1]=A,this.int16[jr+2]=k,this.int16[jr+3]=F,this.int16[jr+4]=Y,this.int16[jr+5]=j,this.int16[jr+6]=Q,this.int16[jr+7]=ne,this.uint16[jr+8]=_e,this.uint16[jr+9]=ve,this.uint16[jr+10]=Ee,this.uint16[jr+11]=qe,this.uint16[jr+12]=ct,this.uint16[jr+13]=et,this.uint16[jr+14]=St,this.uint16[jr+15]=_t,this.uint16[jr+16]=Mt,this.uint16[jr+17]=It,this.uint16[jr+18]=Kt,this.uint16[jr+19]=pr,this.uint16[jr+20]=fr,this.uint16[jr+21]=Fr,this.uint16[jr+22]=Cr,this.uint32[Za+12]=Ir,this.float32[Za+13]=$r,this.float32[Za+14]=qr,this.float32[Za+15]=Br,this.float32[Za+16]=ya,p},o}(Ta);Xp.prototype.bytesPerElement=68,y("StructArrayLayout8i15ui1ul4f68",Xp);var ph=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.float32[A+0]=x,p},o}(Ta);ph.prototype.bytesPerElement=4,y("StructArrayLayout1f4",ph);var cy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.int16[F+0]=x,this.int16[F+1]=A,this.int16[F+2]=k,p},o}(Ta);cy.prototype.bytesPerElement=6,y("StructArrayLayout3i6",cy);var Af=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*2,Y=p*4;return this.uint32[F+0]=x,this.uint16[Y+2]=A,this.uint16[Y+3]=k,p},o}(Ta);Af.prototype.bytesPerElement=8,y("StructArrayLayout1ul2ui8",Af);var ed=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.uint16[k+0]=x,this.uint16[k+1]=A,p},o}(Ta);ed.prototype.bytesPerElement=4,y("StructArrayLayout2ui4",ed);var mh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint16[A+0]=x,p},o}(Ta);mh.prototype.bytesPerElement=2,y("StructArrayLayout1ui2",mh);var cc=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.float32[Y+0]=x,this.float32[Y+1]=A,this.float32[Y+2]=k,this.float32[Y+3]=F,p},o}(Ta);cc.prototype.bytesPerElement=16,y("StructArrayLayout4f16",cc);var C1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var f={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return f.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},f.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},f.x1.get=function(){return this._structArray.int16[this._pos2+2]},f.y1.get=function(){return this._structArray.int16[this._pos2+3]},f.x2.get=function(){return this._structArray.int16[this._pos2+4]},f.y2.get=function(){return this._structArray.int16[this._pos2+5]},f.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},f.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},f.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},f.anchorPoint.get=function(){return new v(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,f),o}(co);C1.prototype.size=20;var hy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new C1(this,p)},o}(Qv);y("CollisionBoxArray",hy);var hc=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var f={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return f.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},f.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},f.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},f.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},f.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},f.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},f.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},f.segment.get=function(){return this._structArray.uint16[this._pos2+10]},f.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},f.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},f.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},f.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},f.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},f.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},f.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},f.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},f.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},f.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},f.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},f.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,f),o}(co);hc.prototype.size=48;var vy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new hc(this,p)},o}($v);y("PlacedSymbolArray",vy);var yh=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var f={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return f.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},f.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},f.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},f.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},f.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},f.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},f.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},f.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},f.key.get=function(){return this._structArray.uint16[this._pos2+8]},f.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},f.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},f.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},f.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},f.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},f.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},f.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},f.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},f.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},f.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},f.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},f.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},f.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},f.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},f.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},f.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},f.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},f.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},f.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},f.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,f),o}(co);yh.prototype.size=68;var E1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new yh(this,p)},o}(Xp);y("SymbolInstanceArray",E1);var L1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getoffsetX=function(p){return this.float32[p*1+0]},o}(ph);y("GlyphOffsetArray",L1);var $s=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getx=function(p){return this.int16[p*3+0]},o.prototype.gety=function(p){return this.int16[p*3+1]},o.prototype.gettileUnitDistanceFromAnchor=function(p){return this.int16[p*3+2]},o}(cy);y("SymbolLineVertexArray",$s);var D1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var f={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return f.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},f.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},f.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,f),o}(co);D1.prototype.size=8;var P1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new D1(this,p)},o}(Af);y("FeatureIndexArray",P1);var m3=li([{name:"a_pos",components:2,type:"Int16"}],4),z1=m3.members,Tn=function(o){o===void 0&&(o=[]),this.segments=o};Tn.prototype.prepareSegment=function(o,f,p,x){var A=this.segments[this.segments.length-1];return o>Tn.MAX_VERTEX_ARRAY_LENGTH&&Ce("Max vertices per segment is "+Tn.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+o),(!A||A.vertexLength+o>Tn.MAX_VERTEX_ARRAY_LENGTH||A.sortKey!==x)&&(A={vertexOffset:f.length,primitiveOffset:p.length,vertexLength:0,primitiveLength:0},x!==void 0&&(A.sortKey=x),this.segments.push(A)),A},Tn.prototype.get=function(){return this.segments},Tn.prototype.destroy=function(){for(var o=0,f=this.segments;o>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q,k=k<<13|k>>>19,F=(k&65535)*5+(((k>>>16)*5&65535)<<16)&4294967295,k=(F&65535)+27492+(((F>>>16)+58964&65535)<<16);switch(Q=0,x){case 3:Q^=(f.charCodeAt(ne+2)&255)<<16;case 2:Q^=(f.charCodeAt(ne+1)&255)<<8;case 1:Q^=f.charCodeAt(ne)&255,Q=(Q&65535)*Y+(((Q>>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q}return k^=f.length,k^=k>>>16,k=(k&65535)*2246822507+(((k>>>16)*2246822507&65535)<<16)&4294967295,k^=k>>>13,k=(k&65535)*3266489909+(((k>>>16)*3266489909&65535)<<16)&4294967295,k^=k>>>16,k>>>0}n.exports=o}),d=s(function(n){function o(f,p){for(var x=f.length,A=p^x,k=0,F;x>=4;)F=f.charCodeAt(k)&255|(f.charCodeAt(++k)&255)<<8|(f.charCodeAt(++k)&255)<<16|(f.charCodeAt(++k)&255)<<24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),F^=F>>>24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)^F,x-=4,++k;switch(x){case 3:A^=(f.charCodeAt(k+2)&255)<<16;case 2:A^=(f.charCodeAt(k+1)&255)<<8;case 1:A^=f.charCodeAt(k)&255,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)}return A^=A>>>13,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16),A^=A>>>15,A>>>0}n.exports=o}),w=b,D=b,R=d;w.murmur3=D,w.murmur2=R;var G=function(){this.ids=[],this.positions=[],this.indexed=!1};G.prototype.add=function(o,f,p,x){this.ids.push(re(o)),this.positions.push(f,p,x)},G.prototype.getPositions=function(o){for(var f=re(o),p=0,x=this.ids.length-1;p>1;this.ids[A]>=f?x=A:p=A+1}for(var k=[];this.ids[p]===f;){var F=this.positions[3*p],Y=this.positions[3*p+1],j=this.positions[3*p+2];k.push({index:F,start:Y,end:j}),p++}return k},G.serialize=function(o,f){var p=new Float64Array(o.ids),x=new Uint32Array(o.positions);return ce(p,x,0,p.length-1),f&&f.push(p.buffer,x.buffer),{ids:p,positions:x}},G.deserialize=function(o){var f=new G;return f.ids=o.ids,f.positions=o.positions,f.indexed=!0,f};var K=Math.pow(2,53)-1;function re(n){var o=+n;return!isNaN(o)&&o<=K?o:w(String(n))}function ce(n,o,f,p){for(;f>1],A=f-1,k=p+1;;){do A++;while(n[A]x);if(A>=k)break;we(n,A,k),we(o,3*A,3*k),we(o,3*A+1,3*k+1),we(o,3*A+2,3*k+2)}k-fk.x+1||Yk.y+1)&&Ce("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return f}function Ai(n,o){return{type:n.type,id:n.id,properties:n.properties,geometry:o?Oa(n):[]}}function Ea(n,o,f,p,x){n.emplaceBack(o*2+(p+1)/2,f*2+(x+1)/2)}var pi=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(f){return f.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new fc,this.indexArray=new Cu,this.segments=new Tn,this.programConfigurations=new kr(o.layers,o.zoom),this.stateDependentLayerIds=this.layers.filter(function(f){return f.isStateDependent()}).map(function(f){return f.id})};pi.prototype.populate=function(o,f,p){var x=this.layers[0],A=[],k=null;x.type==="circle"&&(k=x.layout.get("circle-sort-key"));for(var F=0,Y=o;F=Nr||_e<0||_e>=Nr)){var ve=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,o.sortKey),Ee=ve.vertexLength;Ea(this.layoutVertexArray,ne,_e,-1,-1),Ea(this.layoutVertexArray,ne,_e,1,-1),Ea(this.layoutVertexArray,ne,_e,1,1),Ea(this.layoutVertexArray,ne,_e,-1,1),this.indexArray.emplaceBack(Ee,Ee+1,Ee+2),this.indexArray.emplaceBack(Ee,Ee+3,Ee+2),ve.vertexLength+=4,ve.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,o,p,{},x)},y("CircleBucket",pi,{omit:["layers"]});function na(n,o){for(var f=0;f=3){for(var A=0;A1){if(zs(n,o))return!0;for(var p=0;p1?n.distSqr(f):n.distSqr(f.sub(o)._mult(x)._add(o))}function Ul(n,o){for(var f=!1,p,x,A,k=0;ko.y!=A.y>o.y&&o.x<(A.x-x.x)*(o.y-x.y)/(A.y-x.y)+x.x&&(f=!f)}return f}function Do(n,o){for(var f=!1,p=0,x=n.length-1;po.y!=k.y>o.y&&o.x<(k.x-A.x)*(o.y-A.y)/(k.y-A.y)+A.x&&(f=!f)}return f}function Vl(n,o,f,p,x){for(var A=0,k=n;A=F.x&&x>=F.y)return!0}var Y=[new v(o,f),new v(o,x),new v(p,x),new v(p,f)];if(n.length>2)for(var j=0,Q=Y;jx.x&&o.x>x.x||n.yx.y&&o.y>x.y)return!1;var A=Me(n,o,f[0]);return A!==Me(n,o,f[1])||A!==Me(n,o,f[2])||A!==Me(n,o,f[3])}function Po(n,o,f){var p=o.paint.get(n).value;return p.kind==="constant"?p.value:f.programConfigurations.get(o.id).getMaxValue(n)}function tl(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Eu(n,o,f,p,x){if(!o[0]&&!o[1])return n;var A=v.convert(o)._mult(x);f==="viewport"&&A._rotate(-p);for(var k=[],F=0;F0&&(A=1/Math.sqrt(A)),n[0]=o[0]*A,n[1]=o[1]*A,n[2]=o[2]*A,n}function mY(n,o){return n[0]*o[0]+n[1]*o[1]+n[2]*o[2]}function yY(n,o,f){var p=o[0],x=o[1],A=o[2],k=f[0],F=f[1],Y=f[2];return n[0]=x*Y-A*F,n[1]=A*k-p*Y,n[2]=p*F-x*k,n}function gY(n,o,f){var p=o[0],x=o[1],A=o[2];return n[0]=p*f[0]+x*f[3]+A*f[6],n[1]=p*f[1]+x*f[4]+A*f[7],n[2]=p*f[2]+x*f[5]+A*f[8],n}var _Y=x3,Yme=function(){var n=rd();return function(o,f,p,x,A,k){var F,Y;for(f||(f=3),p||(p=0),x?Y=Math.min(x*f+p,o.length):Y=o.length,F=p;Fn.width||x.height>n.height||f.x>n.width-x.width||f.y>n.height-x.height)throw new RangeError("out of range source coordinates for image copy");if(x.width>o.width||x.height>o.height||p.x>o.width-x.width||p.y>o.height-x.height)throw new RangeError("out of range destination coordinates for image copy");for(var k=n.data,F=o.data,Y=0;Y80*f){F=j=n[0],Y=Q=n[1];for(var Ee=f;Eej&&(j=ne),_e>Q&&(Q=_e);ve=Math.max(j-F,Q-Y),ve=ve!==0?1/ve:0}return my(A,k,f,F,Y,ve),k}function bM(n,o,f,p,x){var A,k;if(x===k3(n,o,f,p)>0)for(A=o;A=o;A-=p)k=AM(A,n[A],n[A+1],k);return k&&F1(k,k.next)&&(gy(k),k=k.next),k}function wh(n,o){if(!n)return n;o||(o=n);var f=n,p;do if(p=!1,!f.steiner&&(F1(f,f.next)||An(f.prev,f,f.next)===0)){if(gy(f),f=o=f.prev,f===f.next)break;p=!0}else f=f.next;while(p||f!==o);return o}function my(n,o,f,p,x,A,k){if(n){!k&&A&&YY(n,p,x,A);for(var F=n,Y,j;n.prev!==n.next;){if(Y=n.prev,j=n.next,A?NY(n,p,x,A):qY(n)){o.push(Y.i/f),o.push(n.i/f),o.push(j.i/f),gy(n),n=j.next,F=j.next;continue}if(n=j,n===F){k?k===1?(n=BY(wh(n),o,f),my(n,o,f,p,x,A,2)):k===2&&OY(n,o,f,p,x,A):my(wh(n),o,f,p,x,A,1);break}}}}function qY(n){var o=n.prev,f=n,p=n.next;if(An(o,f,p)>=0)return!1;for(var x=n.next.next;x!==n.prev;){if(r0(o.x,o.y,f.x,f.y,p.x,p.y,x.x,x.y)&&An(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function NY(n,o,f,p){var x=n.prev,A=n,k=n.next;if(An(x,A,k)>=0)return!1;for(var F=x.xA.x?x.x>k.x?x.x:k.x:A.x>k.x?A.x:k.x,Q=x.y>A.y?x.y>k.y?x.y:k.y:A.y>k.y?A.y:k.y,ne=M3(F,Y,o,f,p),_e=M3(j,Q,o,f,p),ve=n.prevZ,Ee=n.nextZ;ve&&ve.z>=ne&&Ee&&Ee.z<=_e;){if(ve!==n.prev&&ve!==n.next&&r0(x.x,x.y,A.x,A.y,k.x,k.y,ve.x,ve.y)&&An(ve.prev,ve,ve.next)>=0||(ve=ve.prevZ,Ee!==n.prev&&Ee!==n.next&&r0(x.x,x.y,A.x,A.y,k.x,k.y,Ee.x,Ee.y)&&An(Ee.prev,Ee,Ee.next)>=0))return!1;Ee=Ee.nextZ}for(;ve&&ve.z>=ne;){if(ve!==n.prev&&ve!==n.next&&r0(x.x,x.y,A.x,A.y,k.x,k.y,ve.x,ve.y)&&An(ve.prev,ve,ve.next)>=0)return!1;ve=ve.prevZ}for(;Ee&&Ee.z<=_e;){if(Ee!==n.prev&&Ee!==n.next&&r0(x.x,x.y,A.x,A.y,k.x,k.y,Ee.x,Ee.y)&&An(Ee.prev,Ee,Ee.next)>=0)return!1;Ee=Ee.nextZ}return!0}function BY(n,o,f){var p=n;do{var x=p.prev,A=p.next.next;!F1(x,A)&&wM(x,p,p.next,A)&&yy(x,A)&&yy(A,x)&&(o.push(x.i/f),o.push(p.i/f),o.push(A.i/f),gy(p),gy(p.next),p=n=A),p=p.next}while(p!==n);return wh(p)}function OY(n,o,f,p,x,A){var k=n;do{for(var F=k.next.next;F!==k.prev;){if(k.i!==F.i&&jY(k,F)){var Y=TM(k,F);k=wh(k,k.next),Y=wh(Y,Y.next),my(k,o,f,p,x,A),my(Y,o,f,p,x,A);return}F=F.next}k=k.next}while(k!==n)}function UY(n,o,f,p){var x=[],A,k,F,Y,j;for(A=0,k=o.length;A=f.next.y&&f.next.y!==f.y){var F=f.x+(x-f.y)*(f.next.x-f.x)/(f.next.y-f.y);if(F<=p&&F>A){if(A=F,F===p){if(x===f.y)return f;if(x===f.next.y)return f.next}k=f.x=f.x&&f.x>=j&&p!==f.x&&r0(xk.x||f.x===k.x&&ZY(k,f)))&&(k=f,ne=_e)),f=f.next;while(f!==Y);return k}function ZY(n,o){return An(n.prev,n,o.prev)<0&&An(o.next,n,n.next)<0}function YY(n,o,f,p){var x=n;do x.z===null&&(x.z=M3(x.x,x.y,o,f,p)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==n);x.prevZ.nextZ=null,x.prevZ=null,WY(x)}function WY(n){var o,f,p,x,A,k,F,Y,j=1;do{for(f=n,n=null,A=null,k=0;f;){for(k++,p=f,F=0,o=0;o0||Y>0&&p;)F!==0&&(Y===0||!p||f.z<=p.z)?(x=f,f=f.nextZ,F--):(x=p,p=p.nextZ,Y--),A?A.nextZ=x:n=x,x.prevZ=A,A=x;f=p}A.nextZ=null,j*=2}while(k>1);return n}function M3(n,o,f,p,x){return n=32767*(n-f)*x,o=32767*(o-p)*x,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n|o<<1}function XY(n){var o=n,f=n;do(o.x=0&&(n-k)*(p-F)-(f-k)*(o-F)>=0&&(f-k)*(A-F)-(x-k)*(p-F)>=0}function jY(n,o){return n.next.i!==o.i&&n.prev.i!==o.i&&!JY(n,o)&&(yy(n,o)&&yy(o,n)&&KY(n,o)&&(An(n.prev,n,o.prev)||An(n,o.prev,o))||F1(n,o)&&An(n.prev,n,n.next)>0&&An(o.prev,o,o.next)>0)}function An(n,o,f){return(o.y-n.y)*(f.x-o.x)-(o.x-n.x)*(f.y-o.y)}function F1(n,o){return n.x===o.x&&n.y===o.y}function wM(n,o,f,p){var x=N1(An(n,o,f)),A=N1(An(n,o,p)),k=N1(An(f,p,n)),F=N1(An(f,p,o));return!!(x!==A&&k!==F||x===0&&q1(n,f,o)||A===0&&q1(n,p,o)||k===0&&q1(f,n,p)||F===0&&q1(f,o,p))}function q1(n,o,f){return o.x<=Math.max(n.x,f.x)&&o.x>=Math.min(n.x,f.x)&&o.y<=Math.max(n.y,f.y)&&o.y>=Math.min(n.y,f.y)}function N1(n){return n>0?1:n<0?-1:0}function JY(n,o){var f=n;do{if(f.i!==n.i&&f.next.i!==n.i&&f.i!==o.i&&f.next.i!==o.i&&wM(f,f.next,n,o))return!0;f=f.next}while(f!==n);return!1}function yy(n,o){return An(n.prev,n,n.next)<0?An(n,o,n.next)>=0&&An(n,n.prev,o)>=0:An(n,o,n.prev)<0||An(n,n.next,o)<0}function KY(n,o){var f=n,p=!1,x=(n.x+o.x)/2,A=(n.y+o.y)/2;do f.y>A!=f.next.y>A&&f.next.y!==f.y&&x<(f.next.x-f.x)*(A-f.y)/(f.next.y-f.y)+f.x&&(p=!p),f=f.next;while(f!==n);return p}function TM(n,o){var f=new S3(n.i,n.x,n.y),p=new S3(o.i,o.x,o.y),x=n.next,A=o.prev;return n.next=o,o.prev=n,f.next=x,x.prev=f,p.next=f,f.prev=p,A.next=p,p.prev=A,p}function AM(n,o,f,p){var x=new S3(n,o,f);return p?(x.next=p.next,x.prev=p,p.next.prev=x,p.next=x):(x.prev=x,x.next=x),x}function gy(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function S3(n,o,f){this.i=n,this.x=o,this.y=f,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}R1.deviation=function(n,o,f,p){var x=o&&o.length,A=x?o[0]*f:n.length,k=Math.abs(k3(n,0,A,f));if(x)for(var F=0,Y=o.length;F0&&(p+=n[x-1].length,f.holes.push(p))}return f},A3.default=FY;function QY(n,o,f,p,x){MM(n,o,f||0,p||n.length-1,x||$Y)}function MM(n,o,f,p,x){for(;p>f;){if(p-f>600){var A=p-f+1,k=o-f+1,F=Math.log(A),Y=.5*Math.exp(2*F/3),j=.5*Math.sqrt(F*Y*(A-Y)/A)*(k-A/2<0?-1:1),Q=Math.max(f,Math.floor(o-k*Y/A+j)),ne=Math.min(p,Math.floor(o+(A-k)*Y/A+j));MM(n,o,Q,ne,x)}var _e=n[o],ve=f,Ee=p;for(_y(n,f,o),x(n[p],_e)>0&&_y(n,f,p);ve0;)Ee--}x(n[f],_e)===0?_y(n,f,Ee):(Ee++,_y(n,Ee,p)),Ee<=o&&(f=Ee+1),o<=Ee&&(p=Ee-1)}}function _y(n,o,f){var p=n[o];n[o]=n[f],n[f]=p}function $Y(n,o){return no?1:0}function C3(n,o){var f=n.length;if(f<=1)return[n];for(var p=[],x,A,k=0;k1)for(var Y=0;Y>3}if(p--,f===1||f===2)x+=n.readSVarint(),A+=n.readSVarint(),f===1&&(F&&k.push(F),F=[]),F.push(new v(x,A));else if(f===7)F&&F.push(F[0].clone());else throw new Error("unknown command "+f)}return F&&k.push(F),k},a0.prototype.bbox=function(){var n=this._pbf;n.pos=this._geometry;for(var o=n.readVarint()+n.pos,f=1,p=0,x=0,A=0,k=1/0,F=-1/0,Y=1/0,j=-1/0;n.pos>3}if(p--,f===1||f===2)x+=n.readSVarint(),A+=n.readSVarint(),xF&&(F=x),Aj&&(j=A);else if(f!==7)throw new Error("unknown command "+f)}return[k,Y,F,j]},a0.prototype.toGeoJSON=function(n,o,f){var p=this.extent*Math.pow(2,f),x=this.extent*n,A=this.extent*o,k=this.loadGeometry(),F=a0.types[this.type],Y,j;function Q(ve){for(var Ee=0;Ee>3;o=p===1?n.readString():p===2?n.readFloat():p===3?n.readDouble():p===4?n.readVarint64():p===5?n.readVarint():p===6?n.readSVarint():p===7?n.readBoolean():null}return o}CM.prototype.feature=function(n){if(n<0||n>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[n];var o=this._pbf.readVarint()+this._pbf.pos;return new SM(this._pbf,o,this.extent,this._keys,this._values)};var dW=pW;function pW(n,o){this.layers=n.readFields(mW,{},o)}function mW(n,o,f){if(n===3){var p=new kM(f,f.readVarint()+f.pos);p.length&&(o[p.name]=p)}}var yW=dW,gW=SM,_W=kM,i0={VectorTile:yW,VectorTileFeature:gW,VectorTileLayer:_W},xW=i0.VectorTileFeature.types,bW=500,D3=Math.pow(2,13);function xy(n,o,f,p,x,A,k,F){n.emplaceBack(o,f,Math.floor(p*D3)*2+k,x*D3*2,A*D3*2,Math.round(F))}var Du=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(f){return f.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new wf,this.indexArray=new Cu,this.programConfigurations=new kr(o.layers,o.zoom),this.segments=new Tn,this.stateDependentLayerIds=this.layers.filter(function(f){return f.isStateDependent()}).map(function(f){return f.id})};Du.prototype.populate=function(o,f,p){this.features=[],this.hasPattern=E3("fill-extrusion",this.layers,f);for(var x=0,A=o;x=1){var Mt=ct[St-1];if(!wW(_t,Mt)){ve.vertexLength+4>Tn.MAX_VERTEX_ARRAY_LENGTH&&(ve=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var It=_t.sub(Mt)._perp()._unit(),Kt=Mt.dist(_t);et+Kt>32768&&(et=0),xy(this.layoutVertexArray,_t.x,_t.y,It.x,It.y,0,0,et),xy(this.layoutVertexArray,_t.x,_t.y,It.x,It.y,0,1,et),et+=Kt,xy(this.layoutVertexArray,Mt.x,Mt.y,It.x,It.y,0,0,et),xy(this.layoutVertexArray,Mt.x,Mt.y,It.x,It.y,0,1,et);var pr=ve.vertexLength;this.indexArray.emplaceBack(pr,pr+2,pr+1),this.indexArray.emplaceBack(pr+1,pr+2,pr+3),ve.vertexLength+=4,ve.primitiveLength+=2}}}}if(ve.vertexLength+j>Tn.MAX_VERTEX_ARRAY_LENGTH&&(ve=this.segments.prepareSegment(j,this.layoutVertexArray,this.indexArray)),xW[o.type]==="Polygon"){for(var fr=[],Fr=[],Cr=ve.vertexLength,Ir=0,$r=Y;Ir<$r.length;Ir+=1){var qr=$r[Ir];if(qr.length!==0){qr!==Y[0]&&Fr.push(fr.length/2);for(var Br=0;BrNr)||n.y===o.y&&(n.y<0||n.y>Nr)}function TW(n){return n.every(function(o){return o.x<0})||n.every(function(o){return o.x>Nr})||n.every(function(o){return o.y<0})||n.every(function(o){return o.y>Nr})}var AW=new qn({"fill-extrusion-opacity":new Ar(jt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Hr(jt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ar(jt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ar(jt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Fi(jt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Hr(jt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Hr(jt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ar(jt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),MW={paint:AW},SW=function(n){function o(f){n.call(this,f,MW)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.createBucket=function(p){return new Du(p)},o.prototype.queryRadius=function(){return tl(this.paint.get("fill-extrusion-translate"))},o.prototype.is3D=function(){return!0},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j,Q){var ne=Eu(p,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Y.angle,j),_e=this.paint.get("fill-extrusion-height").evaluate(x,A),ve=this.paint.get("fill-extrusion-base").evaluate(x,A),Ee=EW(ne,Q,Y,0),qe=CW(k,ve,_e,Q),ct=qe[0],et=qe[1];return kW(ct,et,Ee)},o}(di);function by(n,o){return n.x*o.x+n.y*o.y}function EM(n,o){if(n.length===1){for(var f=0,p=o[f++],x;!x||p.equals(x);)if(x=o[f++],!x)return 1/0;for(;f=2&&o[j-1].equals(o[j-2]);)j--;for(var Q=0;Q0;if(fr&&St>Q){var Cr=ve.dist(Ee);if(Cr>2*ne){var Ir=ve.sub(ve.sub(Ee)._mult(ne/Cr)._round());this.updateDistance(Ee,Ir),this.addCurrentVertex(Ir,ct,0,0,_e),Ee=Ir}}var $r=Ee&&qe,qr=$r?p:Y?"butt":x;if($r&&qr==="round"&&(KtA&&(qr="bevel"),qr==="bevel"&&(Kt>2&&(qr="flipbevel"),Kt100)_t=et.mult(-1);else{var Br=Kt*ct.add(et).mag()/ct.sub(et).mag();_t._perp()._mult(Br*(Fr?-1:1))}this.addCurrentVertex(ve,_t,0,0,_e),this.addCurrentVertex(ve,_t.mult(-1),0,0,_e)}else if(qr==="bevel"||qr==="fakeround"){var ya=-Math.sqrt(Kt*Kt-1),jr=Fr?ya:0,Za=Fr?0:ya;if(Ee&&this.addCurrentVertex(ve,ct,jr,Za,_e),qr==="fakeround")for(var yi=Math.round(pr*180/Math.PI/qW),Ya=1;Ya2*ne){var kn=ve.add(qe.sub(ve)._mult(ne/Yn)._round());this.updateDistance(ve,kn),this.addCurrentVertex(kn,et,0,0,_e),ve=kn}}}}},zo.prototype.addCurrentVertex=function(o,f,p,x,A,k){k===void 0&&(k=!1);var F=f.x+f.y*p,Y=f.y-f.x*p,j=-f.x+f.y*x,Q=-f.y-f.x*x;this.addHalfVertex(o,F,Y,k,!1,p,A),this.addHalfVertex(o,j,Q,k,!0,-x,A),this.distance>PM/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(o,f,p,x,A,k))},zo.prototype.addHalfVertex=function(o,f,p,x,A,k,F){var Y=o.x,j=o.y,Q=this.lineClips?this.scaledDistance*(PM-1):this.scaledDistance,ne=Q*DM;if(this.layoutVertexArray.emplaceBack((Y<<1)+(x?1:0),(j<<1)+(A?1:0),Math.round(LM*f)+128,Math.round(LM*p)+128,(k===0?0:k<0?-1:1)+1|(ne&63)<<2,ne>>6),this.lineClips){var _e=this.scaledDistance-this.lineClips.start,ve=this.lineClips.end-this.lineClips.start,Ee=_e/ve;this.layoutVertexArray2.emplaceBack(Ee,this.lineClipsArray.length)}var qe=F.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qe),F.primitiveLength++),A?this.e2=qe:this.e1=qe},zo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},zo.prototype.updateDistance=function(o,f){this.distance+=o.dist(f),this.updateScaledDistance()},y("LineBucket",zo,{omit:["layers","patternFeatures"]});var BW=new qn({"line-cap":new Ar(jt.layout_line["line-cap"]),"line-join":new Hr(jt.layout_line["line-join"]),"line-miter-limit":new Ar(jt.layout_line["line-miter-limit"]),"line-round-limit":new Ar(jt.layout_line["line-round-limit"]),"line-sort-key":new Hr(jt.layout_line["line-sort-key"])}),OW=new qn({"line-opacity":new Hr(jt.paint_line["line-opacity"]),"line-color":new Hr(jt.paint_line["line-color"]),"line-translate":new Ar(jt.paint_line["line-translate"]),"line-translate-anchor":new Ar(jt.paint_line["line-translate-anchor"]),"line-width":new Hr(jt.paint_line["line-width"]),"line-gap-width":new Hr(jt.paint_line["line-gap-width"]),"line-offset":new Hr(jt.paint_line["line-offset"]),"line-blur":new Hr(jt.paint_line["line-blur"]),"line-dasharray":new Ti(jt.paint_line["line-dasharray"]),"line-pattern":new Fi(jt.paint_line["line-pattern"]),"line-gradient":new fo(jt.paint_line["line-gradient"])}),zM={paint:OW,layout:BW},UW=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.possiblyEvaluate=function(p,x){return x=new Jt(Math.floor(x.zoom),{now:x.now,fadeDuration:x.fadeDuration,zoomHistory:x.zoomHistory,transition:x.transition}),n.prototype.possiblyEvaluate.call(this,p,x)},o.prototype.evaluate=function(p,x,A,k){return x=H({},x,{zoom:Math.floor(x.zoom)}),n.prototype.evaluate.call(this,p,x,A,k)},o}(Hr),IM=new UW(zM.paint.properties["line-width"].specification);IM.useIntegerZoom=!0;var VW=function(n){function o(f){n.call(this,f,zM),this.gradientVersion=0}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._handleSpecialPaintPropertyUpdate=function(p){if(p==="line-gradient"){var x=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=x._styleExpression.expression instanceof Ms,this.gradientVersion=(this.gradientVersion+1)%M}},o.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},o.prototype.recalculate=function(p,x){n.prototype.recalculate.call(this,p,x),this.paint._values["line-floorwidth"]=IM.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,p)},o.prototype.createBucket=function(p){return new zo(p)},o.prototype.queryRadius=function(p){var x=p,A=RM(Po("line-width",this,x),Po("line-gap-width",this,x)),k=Po("line-offset",this,x);return A/2+Math.abs(k)+tl(this.paint.get("line-translate"))},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j){var Q=Eu(p,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Y.angle,j),ne=j/2*RM(this.paint.get("line-width").evaluate(x,A),this.paint.get("line-gap-width").evaluate(x,A)),_e=this.paint.get("line-offset").evaluate(x,A);return _e&&(k=HW(k,_e*j)),Nn(Q,k,ne)},o.prototype.isTileClipped=function(){return!0},o}(di);function RM(n,o){return o>0?o+2*n:n}function HW(n,o){for(var f=[],p=new v(0,0),x=0;x":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function KW(n){for(var o="",f=0;f>1,Q=-7,ne=f?x-1:0,_e=f?-1:1,ve=n[o+ne];for(ne+=_e,A=ve&(1<<-Q)-1,ve>>=-Q,Q+=F;Q>0;A=A*256+n[o+ne],ne+=_e,Q-=8);for(k=A&(1<<-Q)-1,A>>=-Q,Q+=p;Q>0;k=k*256+n[o+ne],ne+=_e,Q-=8);if(A===0)A=1-j;else{if(A===Y)return k?NaN:(ve?-1:1)*(1/0);k=k+Math.pow(2,p),A=A-j}return(ve?-1:1)*k*Math.pow(2,A-p)},$W=function(n,o,f,p,x,A){var k,F,Y,j=A*8-x-1,Q=(1<>1,_e=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,ve=p?0:A-1,Ee=p?1:-1,qe=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(F=isNaN(o)?1:0,k=Q):(k=Math.floor(Math.log(o)/Math.LN2),o*(Y=Math.pow(2,-k))<1&&(k--,Y*=2),k+ne>=1?o+=_e/Y:o+=_e*Math.pow(2,1-ne),o*Y>=2&&(k++,Y/=2),k+ne>=Q?(F=0,k=Q):k+ne>=1?(F=(o*Y-1)*Math.pow(2,x),k=k+ne):(F=o*Math.pow(2,ne-1)*Math.pow(2,x),k=0));x>=8;n[f+ve]=F&255,ve+=Ee,F/=256,x-=8);for(k=k<0;n[f+ve]=k&255,ve+=Ee,k/=256,j-=8);n[f+ve-Ee]|=qe*128},B1={read:QW,write:$W},O1=Li;function Li(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}Li.Varint=0,Li.Fixed64=1,Li.Bytes=2,Li.Fixed32=5;var P3=65536*65536,qM=1/P3,eX=12,NM=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");Li.prototype={destroy:function(){this.buf=null},readFields:function(n,o,f){for(f=f||this.length;this.pos>3,A=this.pos;this.type=p&7,n(x,o,this),this.pos===A&&this.skip(p)}return o},readMessage:function(n,o){return this.readFields(n,o,this.readVarint()+this.pos)},readFixed32:function(){var n=U1(this.buf,this.pos);return this.pos+=4,n},readSFixed32:function(){var n=OM(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=U1(this.buf,this.pos)+U1(this.buf,this.pos+4)*P3;return this.pos+=8,n},readSFixed64:function(){var n=U1(this.buf,this.pos)+OM(this.buf,this.pos+4)*P3;return this.pos+=8,n},readFloat:function(){var n=B1.read(this.buf,this.pos,!0,23,4);return this.pos+=4,n},readDouble:function(){var n=B1.read(this.buf,this.pos,!0,52,8);return this.pos+=8,n},readVarint:function(n){var o=this.buf,f,p;return p=o[this.pos++],f=p&127,p<128||(p=o[this.pos++],f|=(p&127)<<7,p<128)||(p=o[this.pos++],f|=(p&127)<<14,p<128)||(p=o[this.pos++],f|=(p&127)<<21,p<128)?f:(p=o[this.pos],f|=(p&15)<<28,tX(f,n,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var n=this.readVarint();return n%2===1?(n+1)/-2:n/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var n=this.readVarint()+this.pos,o=this.pos;return this.pos=n,n-o>=eX&&NM?pX(this.buf,o,n):dX(this.buf,o,n)},readBytes:function(){var n=this.readVarint()+this.pos,o=this.buf.subarray(this.pos,n);return this.pos=n,o},readPackedVarint:function(n,o){if(this.type!==Li.Bytes)return n.push(this.readVarint(o));var f=dc(this);for(n=n||[];this.pos127;);else if(o===Li.Bytes)this.pos=this.readVarint()+this.pos;else if(o===Li.Fixed32)this.pos+=4;else if(o===Li.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+o)},writeTag:function(n,o){this.writeVarint(n<<3|o)},realloc:function(n){for(var o=this.length||16;o268435455||n<0){rX(n,this);return}this.realloc(4),this.buf[this.pos++]=n&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=n>>>7&127)))},writeSVarint:function(n){this.writeVarint(n<0?-n*2-1:n*2)},writeBoolean:function(n){this.writeVarint(!!n)},writeString:function(n){n=String(n),this.realloc(n.length*4),this.pos++;var o=this.pos;this.pos=mX(this.buf,n,this.pos);var f=this.pos-o;f>=128&&BM(o,f,this),this.pos=o-1,this.writeVarint(f),this.pos+=f},writeFloat:function(n){this.realloc(4),B1.write(this.buf,n,this.pos,!0,23,4),this.pos+=4},writeDouble:function(n){this.realloc(8),B1.write(this.buf,n,this.pos,!0,52,8),this.pos+=8},writeBytes:function(n){var o=n.length;this.writeVarint(o),this.realloc(o);for(var f=0;f=128&&BM(f,p,this),this.pos=f-1,this.writeVarint(p),this.pos+=p},writeMessage:function(n,o,f){this.writeTag(n,Li.Bytes),this.writeRawMessage(o,f)},writePackedVarint:function(n,o){o.length&&this.writeMessage(n,nX,o)},writePackedSVarint:function(n,o){o.length&&this.writeMessage(n,oX,o)},writePackedBoolean:function(n,o){o.length&&this.writeMessage(n,uX,o)},writePackedFloat:function(n,o){o.length&&this.writeMessage(n,sX,o)},writePackedDouble:function(n,o){o.length&&this.writeMessage(n,lX,o)},writePackedFixed32:function(n,o){o.length&&this.writeMessage(n,fX,o)},writePackedSFixed32:function(n,o){o.length&&this.writeMessage(n,cX,o)},writePackedFixed64:function(n,o){o.length&&this.writeMessage(n,hX,o)},writePackedSFixed64:function(n,o){o.length&&this.writeMessage(n,vX,o)},writeBytesField:function(n,o){this.writeTag(n,Li.Bytes),this.writeBytes(o)},writeFixed32Field:function(n,o){this.writeTag(n,Li.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(n,o){this.writeTag(n,Li.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(n,o){this.writeTag(n,Li.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(n,o){this.writeTag(n,Li.Fixed64),this.writeSFixed64(o)},writeVarintField:function(n,o){this.writeTag(n,Li.Varint),this.writeVarint(o)},writeSVarintField:function(n,o){this.writeTag(n,Li.Varint),this.writeSVarint(o)},writeStringField:function(n,o){this.writeTag(n,Li.Bytes),this.writeString(o)},writeFloatField:function(n,o){this.writeTag(n,Li.Fixed32),this.writeFloat(o)},writeDoubleField:function(n,o){this.writeTag(n,Li.Fixed64),this.writeDouble(o)},writeBooleanField:function(n,o){this.writeVarintField(n,!!o)}};function tX(n,o,f){var p=f.buf,x,A;if(A=p[f.pos++],x=(A&112)>>4,A<128||(A=p[f.pos++],x|=(A&127)<<3,A<128)||(A=p[f.pos++],x|=(A&127)<<10,A<128)||(A=p[f.pos++],x|=(A&127)<<17,A<128)||(A=p[f.pos++],x|=(A&127)<<24,A<128)||(A=p[f.pos++],x|=(A&1)<<31,A<128))return n0(n,x,o);throw new Error("Expected varint not more than 10 bytes")}function dc(n){return n.type===Li.Bytes?n.readVarint()+n.pos:n.pos+1}function n0(n,o,f){return f?o*4294967296+(n>>>0):(o>>>0)*4294967296+(n>>>0)}function rX(n,o){var f,p;if(n>=0?(f=n%4294967296|0,p=n/4294967296|0):(f=~(-n%4294967296),p=~(-n/4294967296),f^4294967295?f=f+1|0:(f=0,p=p+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),aX(f,p,o),iX(p,o)}function aX(n,o,f){f.buf[f.pos++]=n&127|128,n>>>=7,f.buf[f.pos++]=n&127|128,n>>>=7,f.buf[f.pos++]=n&127|128,n>>>=7,f.buf[f.pos++]=n&127|128,n>>>=7,f.buf[f.pos]=n&127}function iX(n,o){var f=(n&7)<<4;o.buf[o.pos++]|=f|((n>>>=3)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127)))))}function BM(n,o,f){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(Math.LN2*7));f.realloc(p);for(var x=f.pos-1;x>=n;x--)f.buf[x+p]=f.buf[x]}function nX(n,o){for(var f=0;f>>8,n[f+2]=o>>>16,n[f+3]=o>>>24}function OM(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16)+(n[o+3]<<24)}function dX(n,o,f){for(var p="",x=o;x239?4:A>223?3:A>191?2:1;if(x+F>f)break;var Y,j,Q;F===1?A<128&&(k=A):F===2?(Y=n[x+1],(Y&192)===128&&(k=(A&31)<<6|Y&63,k<=127&&(k=null))):F===3?(Y=n[x+1],j=n[x+2],(Y&192)===128&&(j&192)===128&&(k=(A&15)<<12|(Y&63)<<6|j&63,(k<=2047||k>=55296&&k<=57343)&&(k=null))):F===4&&(Y=n[x+1],j=n[x+2],Q=n[x+3],(Y&192)===128&&(j&192)===128&&(Q&192)===128&&(k=(A&15)<<18|(Y&63)<<12|(j&63)<<6|Q&63,(k<=65535||k>=1114112)&&(k=null))),k===null?(k=65533,F=1):k>65535&&(k-=65536,p+=String.fromCharCode(k>>>10&1023|55296),k=56320|k&1023),p+=String.fromCharCode(k),x+=F}return p}function pX(n,o,f){return NM.decode(n.subarray(o,f))}function mX(n,o,f){for(var p=0,x,A;p55295&&x<57344)if(A)if(x<56320){n[f++]=239,n[f++]=191,n[f++]=189,A=x;continue}else x=A-55296<<10|x-56320|65536,A=null;else{x>56319||p+1===o.length?(n[f++]=239,n[f++]=191,n[f++]=189):A=x;continue}else A&&(n[f++]=239,n[f++]=191,n[f++]=189,A=null);x<128?n[f++]=x:(x<2048?n[f++]=x>>6|192:(x<65536?n[f++]=x>>12|224:(n[f++]=x>>18|240,n[f++]=x>>12&63|128),n[f++]=x>>6&63|128),n[f++]=x&63|128)}return f}var z3=3;function yX(n,o,f){n===1&&f.readMessage(gX,o)}function gX(n,o,f){if(n===3){var p=f.readMessage(_X,{}),x=p.id,A=p.bitmap,k=p.width,F=p.height,Y=p.left,j=p.top,Q=p.advance;o.push({id:x,bitmap:new ad({width:k+2*z3,height:F+2*z3},A),metrics:{width:k,height:F,left:Y,top:j,advance:Q}})}}function _X(n,o,f){n===1?o.id=f.readVarint():n===2?o.bitmap=f.readBytes():n===3?o.width=f.readVarint():n===4?o.height=f.readVarint():n===5?o.left=f.readSVarint():n===6?o.top=f.readSVarint():n===7&&(o.advance=f.readVarint())}function xX(n){return new O1(n).readFields(yX,[])}var UM=z3;function VM(n){for(var o=0,f=0,p=0,x=n;p=0;ve--){var Ee=F[ve];if(!(_e.w>Ee.w||_e.h>Ee.h)){if(_e.x=Ee.x,_e.y=Ee.y,j=Math.max(j,_e.y+_e.h),Y=Math.max(Y,_e.x+_e.w),_e.w===Ee.w&&_e.h===Ee.h){var qe=F.pop();ve=0&&x>=o&&Mf[this.text.charCodeAt(x)];x--)p--;this.text=this.text.substring(o,p),this.sectionIndex=this.sectionIndex.slice(o,p)},wo.prototype.substring=function(o,f){var p=new wo;return p.text=this.text.substring(o,f),p.sectionIndex=this.sectionIndex.slice(o,f),p.sections=this.sections,p},wo.prototype.toString=function(){return this.text},wo.prototype.getMaxScale=function(){var o=this;return this.sectionIndex.reduce(function(f,p){return Math.max(f,o.sections[p].scale)},0)},wo.prototype.addTextSection=function(o,f){this.text+=o.text,this.sections.push(s0.forText(o.scale,o.fontStack||f));for(var p=this.sections.length-1,x=0;x=GM?null:++this.imageSectionID:(this.imageSectionID=HM,this.imageSectionID)};function wX(n,o){for(var f=[],p=n.text,x=0,A=0,k=o;A=0,Q=0,ne=0;ne0&&kn>Fr&&(Fr=kn)}else{var Wa=f[Ir.fontStack],Ua=Wa&&Wa[qr];if(Ua&&Ua.rect)jr=Ua.rect,ya=Ua.metrics;else{var Mi=o[Ir.fontStack],Di=Mi&&Mi[qr];if(!Di)continue;ya=Di.metrics}Br=(It-Ir.scale)*Qn}Ya?(n.verticalizable=!0,fr.push({glyph:qr,imageName:Za,x:_e,y:ve+Br,vertical:Ya,scale:Ir.scale,fontStack:Ir.fontStack,sectionIndex:$r,metrics:ya,rect:jr}),_e+=yi*Ir.scale+j):(fr.push({glyph:qr,imageName:Za,x:_e,y:ve+Br,vertical:Ya,scale:Ir.scale,fontStack:Ir.fontStack,sectionIndex:$r,metrics:ya,rect:jr}),_e+=ya.advance*Ir.scale+j)}if(fr.length!==0){var To=_e-j;Ee=Math.max(To,Ee),SX(fr,0,fr.length-1,ct,Fr)}_e=0;var Ao=A*It+Fr;pr.lineOffset=Math.max(Fr,Kt),ve+=Ao,qe=Math.max(Ao,qe),++et}var Wn=ve-My,Io=R3(k),Ro=Io.horizontalAlign,Bn=Io.verticalAlign;kX(n.positionedLines,ct,Ro,Bn,Ee,qe,A,Wn,x.length),n.top+=-Bn*Wn,n.bottom=n.top+Wn,n.left+=-Ro*Ee,n.right=n.left+Ee}function SX(n,o,f,p,x){if(!(!p&&!x))for(var A=n[f],k=A.metrics.advance*A.scale,F=(n[f].x+k)*p,Y=o;Y<=f;Y++)n[Y].x-=F,n[Y].y+=x}function kX(n,o,f,p,x,A,k,F,Y){var j=(o-f)*x,Q=0;A!==k?Q=-F*p-My:Q=(-p*Y+.5)*k;for(var ne=0,_e=n;ne<_e.length;ne+=1)for(var ve=_e[ne],Ee=0,qe=ve.positionedGlyphs;Ee-f/2;){if(k--,k<0)return!1;F-=n[k].dist(A),A=n[k]}F+=n[k].dist(n[k+1]),k++;for(var Y=[],j=0;Fp;)j-=Y.shift().angleDelta;if(j>x)return!1;k++,F+=ne.dist(_e)}return!0}function $M(n){for(var o=0,f=0;fj){var Ee=(j-Y)/ve,qe=dn(ne.x,_e.x,Ee),ct=dn(ne.y,_e.y,Ee),et=new l0(qe,ct,_e.angleTo(ne),Q);return et._round(),!k||QM(n,et,F,k,o)?et:void 0}Y+=ve}}function DX(n,o,f,p,x,A,k,F,Y){var j=e7(p,A,k),Q=t7(p,x),ne=Q*k,_e=n[0].x===0||n[0].x===Y||n[0].y===0||n[0].y===Y;o-ne=0&&Mt=0&&It=0&&_e+j<=Q){var Kt=new l0(Mt,It,St,Ee);Kt._round(),(!p||QM(n,Kt,A,p,x))&&ve.push(Kt)}}ne+=et}return!F&&!ve.length&&!k&&(ve=r7(n,ne/2,f,p,x,A,k,!0,Y)),ve}function a7(n,o,f,p,x){for(var A=[],k=0;k=p&&ne.x>=p)&&(Q.x>=p?Q=new v(p,Q.y+(ne.y-Q.y)*((p-Q.x)/(ne.x-Q.x)))._round():ne.x>=p&&(ne=new v(p,Q.y+(ne.y-Q.y)*((p-Q.x)/(ne.x-Q.x)))._round()),!(Q.y>=x&&ne.y>=x)&&(Q.y>=x?Q=new v(Q.x+(ne.x-Q.x)*((x-Q.y)/(ne.y-Q.y)),x)._round():ne.y>=x&&(ne=new v(Q.x+(ne.x-Q.x)*((x-Q.y)/(ne.y-Q.y)),x)._round()),(!Y||!Q.equals(Y[Y.length-1]))&&(Y=[Q],A.push(Y)),Y.push(ne)))))}return A}var u0=ps;function i7(n,o,f,p){var x=[],A=n.image,k=A.pixelRatio,F=A.paddedRect.w-2*u0,Y=A.paddedRect.h-2*u0,j=n.right-n.left,Q=n.bottom-n.top,ne=A.stretchX||[[0,F]],_e=A.stretchY||[[0,Y]],ve=function(Wa,Ua){return Wa+Ua[1]-Ua[0]},Ee=ne.reduce(ve,0),qe=_e.reduce(ve,0),ct=F-Ee,et=Y-qe,St=0,_t=Ee,Mt=0,It=qe,Kt=0,pr=ct,fr=0,Fr=et;if(A.content&&p){var Cr=A.content;St=G1(ne,0,Cr[0]),Mt=G1(_e,0,Cr[1]),_t=G1(ne,Cr[0],Cr[2]),It=G1(_e,Cr[1],Cr[3]),Kt=Cr[0]-St,fr=Cr[1]-Mt,pr=Cr[2]-Cr[0]-_t,Fr=Cr[3]-Cr[1]-It}var Ir=function(Wa,Ua,Mi,Di){var tn=Z1(Wa.stretch-St,_t,j,n.left),fn=Y1(Wa.fixed-Kt,pr,Wa.stretch,Ee),Yn=Z1(Ua.stretch-Mt,It,Q,n.top),kn=Y1(Ua.fixed-fr,Fr,Ua.stretch,qe),To=Z1(Mi.stretch-St,_t,j,n.left),Ao=Y1(Mi.fixed-Kt,pr,Mi.stretch,Ee),Wn=Z1(Di.stretch-Mt,It,Q,n.top),Io=Y1(Di.fixed-fr,Fr,Di.stretch,qe),Ro=new v(tn,Yn),Bn=new v(To,Yn),Fo=new v(To,Wn),Rs=new v(tn,Wn),yc=new v(fn/k,kn/k),Mh=new v(Ao/k,Io/k),Sh=o*Math.PI/180;if(Sh){var kh=Math.sin(Sh),y0=Math.cos(Sh),Hl=[y0,-kh,kh,y0];Ro._matMult(Hl),Bn._matMult(Hl),Rs._matMult(Hl),Fo._matMult(Hl)}var Q1=Wa.stretch+Wa.fixed,G3=Mi.stretch+Mi.fixed,$1=Ua.stretch+Ua.fixed,Z3=Di.stretch+Di.fixed,al={x:A.paddedRect.x+u0+Q1,y:A.paddedRect.y+u0+$1,w:G3-Q1,h:Z3-$1},g0=pr/k/j,e_=Fr/k/Q;return{tl:Ro,tr:Bn,bl:Rs,br:Fo,tex:al,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:yc,pixelOffsetBR:Mh,minFontScaleX:g0,minFontScaleY:e_,isSDF:f}};if(!p||!A.stretchX&&!A.stretchY)x.push(Ir({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:F+1},{fixed:0,stretch:Y+1}));else for(var $r=n7(ne,ct,Ee),qr=n7(_e,et,qe),Br=0;Br<$r.length-1;Br++)for(var ya=$r[Br],jr=$r[Br+1],Za=0;Za0&&(Ee=Math.max(10,Ee),this.circleDiameter=Ee)}else{var qe=k.top*F-Y,ct=k.bottom*F+Y,et=k.left*F-Y,St=k.right*F+Y,_t=k.collisionPadding;if(_t&&(et-=_t[0]*F,qe-=_t[1]*F,St+=_t[2]*F,ct+=_t[3]*F),Q){var Mt=new v(et,qe),It=new v(St,qe),Kt=new v(et,ct),pr=new v(St,ct),fr=Q*Math.PI/180;Mt._rotate(fr),It._rotate(fr),Kt._rotate(fr),pr._rotate(fr),et=Math.min(Mt.x,It.x,Kt.x,pr.x),St=Math.max(Mt.x,It.x,Kt.x,pr.x),qe=Math.min(Mt.y,It.y,Kt.y,pr.y),ct=Math.max(Mt.y,It.y,Kt.y,pr.y)}o.emplaceBack(f.x,f.y,et,qe,St,ct,p,x,A)}this.boxEndIndex=o.length},f0=function(o,f){if(o===void 0&&(o=[]),f===void 0&&(f=zX),this.data=o,this.length=this.data.length,this.compare=f,this.length>0)for(var p=(this.length>>1)-1;p>=0;p--)this._down(p)};f0.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},f0.prototype.pop=function(){if(this.length!==0){var o=this.data[0],f=this.data.pop();return this.length--,this.length>0&&(this.data[0]=f,this._down(0)),o}},f0.prototype.peek=function(){return this.data[0]},f0.prototype._up=function(o){for(var f=this,p=f.data,x=f.compare,A=p[o];o>0;){var k=o-1>>1,F=p[k];if(x(A,F)>=0)break;p[o]=F,o=k}p[o]=A},f0.prototype._down=function(o){for(var f=this,p=f.data,x=f.compare,A=this.length>>1,k=p[o];o=0)break;p[o]=Y,o=F}p[o]=k};function zX(n,o){return no?1:0}function IX(n,o,f){o===void 0&&(o=1),f===void 0&&(f=!1);for(var p=1/0,x=1/0,A=-1/0,k=-1/0,F=n[0],Y=0;YA)&&(A=j.x),(!Y||j.y>k)&&(k=j.y)}var Q=A-p,ne=k-x,_e=Math.min(Q,ne),ve=_e/2,Ee=new f0([],RX);if(_e===0)return new v(p,x);for(var qe=p;qeet.d||!et.d)&&(et=_t,f&&console.log("found best %d after %d probes",Math.round(1e4*_t.d)/1e4,St)),!(_t.max-et.d<=o)&&(ve=_t.h/2,Ee.push(new c0(_t.p.x-ve,_t.p.y-ve,ve,n)),Ee.push(new c0(_t.p.x+ve,_t.p.y-ve,ve,n)),Ee.push(new c0(_t.p.x-ve,_t.p.y+ve,ve,n)),Ee.push(new c0(_t.p.x+ve,_t.p.y+ve,ve,n)),St+=4)}return f&&(console.log("num probes: "+St),console.log("best distance: "+et.d)),et.p}function RX(n,o){return o.max-n.max}function c0(n,o,f,p){this.p=new v(n,o),this.h=f,this.d=FX(this.p,p),this.max=this.d+this.h*Math.SQRT2}function FX(n,o){for(var f=!1,p=1/0,x=0;xn.y!=Q.y>n.y&&n.x<(Q.x-j.x)*(n.y-j.y)/(Q.y-j.y)+j.x&&(f=!f),p=Math.min(p,vc(n,j,Q))}return(f?1:-1)*Math.sqrt(p)}function qX(n){for(var o=0,f=0,p=0,x=n[0],A=0,k=x.length,F=k-1;A=Nr||Hl.y<0||Hl.y>=Nr||OX(n,Hl,y0,f,p,x,qr,n.layers[0],n.collisionBoxArray,o.index,o.sourceLayerIndex,n.index,et,It,fr,Y,_t,Kt,Fr,ve,o,A,j,Q,k)};if(Cr==="line")for(var ya=0,jr=a7(o.geometry,0,0,Nr,Nr);ya1){var Yn=LX(fn,pr,f.vertical||Ee,p,qe,St);Yn&&Br(fn,Yn)}}else if(o.type==="Polygon")for(var kn=0,To=C3(o.geometry,0);knTh&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+Sy+'. Reduce your "text-size".')):ct.kind==="composite"&&(et=[Pu*ve.compositeTextSizes[0].evaluate(k,{},Ee),Pu*ve.compositeTextSizes[1].evaluate(k,{},Ee)],(et[0]>Th||et[1]>Th)&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+Sy+'. Reduce your "text-size".')),n.addSymbols(n.text,qe,et,F,A,k,j,o,Y.lineStartIndex,Y.lineLength,_e,Ee);for(var St=0,_t=Q;St<_t.length;St+=1){var Mt=_t[St];ne[Mt]=n.text.placedSymbolArray.length-1}return qe.length*4}function l7(n){for(var o in n)return n[o];return null}function OX(n,o,f,p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,St,_t,Mt,It,Kt,pr,fr){var Fr,Cr=n.addToLineVertexArray(o,f),Ir,$r,qr,Br,ya=0,jr=0,Za=0,yi=0,Ya=-1,Wa=-1,Ua={},Mi=w(""),Di=0,tn=0;if(F._unevaluatedLayout.getValue("text-radial-offset")===void 0?(Fr=F.layout.get("text-offset").evaluate(Mt,{},pr).map(function(Ey){return Ey*Qn}),Di=Fr[0],tn=Fr[1]):(Di=F.layout.get("text-radial-offset").evaluate(Mt,{},pr)*Qn,tn=q3),n.allowVerticalPlacement&&p.vertical){var fn=F.layout.get("text-rotate").evaluate(Mt,{},pr),Yn=fn+90,kn=p.vertical;qr=new W1(Y,o,j,Q,ne,kn,_e,ve,Ee,Yn),k&&(Br=new W1(Y,o,j,Q,ne,k,ct,et,Ee,Yn))}if(x){var To=F.layout.get("icon-rotate").evaluate(Mt,{}),Ao=F.layout.get("icon-text-fit")!=="none",Wn=i7(x,To,Kt,Ao),Io=k?i7(k,To,Kt,Ao):void 0;$r=new W1(Y,o,j,Q,ne,x,ct,et,!1,To),ya=Wn.length*4;var Ro=n.iconSizeData,Bn=null;Ro.kind==="source"?(Bn=[Pu*F.layout.get("icon-size").evaluate(Mt,{})],Bn[0]>Th&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+Sy+'. Reduce your "icon-size".')):Ro.kind==="composite"&&(Bn=[Pu*It.compositeIconSizes[0].evaluate(Mt,{},pr),Pu*It.compositeIconSizes[1].evaluate(Mt,{},pr)],(Bn[0]>Th||Bn[1]>Th)&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+Sy+'. Reduce your "icon-size".')),n.addSymbols(n.icon,Wn,Bn,_t,St,Mt,!1,o,Cr.lineStartIndex,Cr.lineLength,-1,pr),Ya=n.icon.placedSymbolArray.length-1,Io&&(jr=Io.length*4,n.addSymbols(n.icon,Io,Bn,_t,St,Mt,Is.vertical,o,Cr.lineStartIndex,Cr.lineLength,-1,pr),Wa=n.icon.placedSymbolArray.length-1)}for(var Fo in p.horizontal){var Rs=p.horizontal[Fo];if(!Ir){Mi=w(Rs.text);var yc=F.layout.get("text-rotate").evaluate(Mt,{},pr);Ir=new W1(Y,o,j,Q,ne,Rs,_e,ve,Ee,yc)}var Mh=Rs.positionedLines.length===1;if(Za+=s7(n,o,Rs,A,F,Ee,Mt,qe,Cr,p.vertical?Is.horizontal:Is.horizontalOnly,Mh?Object.keys(p.horizontal):[Fo],Ua,Ya,It,pr),Mh)break}p.vertical&&(yi+=s7(n,o,p.vertical,A,F,Ee,Mt,qe,Cr,Is.vertical,["vertical"],Ua,Wa,It,pr));var Sh=Ir?Ir.boxStartIndex:n.collisionBoxArray.length,kh=Ir?Ir.boxEndIndex:n.collisionBoxArray.length,y0=qr?qr.boxStartIndex:n.collisionBoxArray.length,Hl=qr?qr.boxEndIndex:n.collisionBoxArray.length,Q1=$r?$r.boxStartIndex:n.collisionBoxArray.length,G3=$r?$r.boxEndIndex:n.collisionBoxArray.length,$1=Br?Br.boxStartIndex:n.collisionBoxArray.length,Z3=Br?Br.boxEndIndex:n.collisionBoxArray.length,al=-1,g0=function(Ey,A7){return Ey&&Ey.circleDiameter?Math.max(Ey.circleDiameter,A7):A7};al=g0(Ir,al),al=g0(qr,al),al=g0($r,al),al=g0(Br,al);var e_=al>-1?1:0;e_&&(al*=fr/Qn),n.glyphOffsetArray.length>=mi.MAX_GLYPHS&&Ce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Mt.sortKey!==void 0&&n.addToSortKeyRanges(n.symbolInstances.length,Mt.sortKey),n.symbolInstances.emplaceBack(o.x,o.y,Ua.right>=0?Ua.right:-1,Ua.center>=0?Ua.center:-1,Ua.left>=0?Ua.left:-1,Ua.vertical||-1,Ya,Wa,Mi,Sh,kh,y0,Hl,Q1,G3,$1,Z3,j,Za,yi,ya,jr,e_,0,_e,Di,tn,al)}function UX(n,o,f,p){var x=n.compareText;if(!(o in x))x[o]=[];else for(var A=x[o],k=A.length-1;k>=0;k--)if(p.dist(A[k])0)&&(k.value.kind!=="constant"||k.value.value.length>0),Q=Y.value.kind!=="constant"||!!Y.value.value||Object.keys(Y.parameters).length>0,ne=A.get("symbol-sort-key");if(this.features=[],!(!j&&!Q)){for(var _e=f.iconDependencies,ve=f.glyphDependencies,Ee=f.availableImages,qe=new Jt(this.zoom),ct=0,et=o;ct=0;for(var yi=0,Ya=Fr.sections;yi=0;Y--)k[Y]={x:f[Y].x,y:f[Y].y,tileUnitDistanceFromAnchor:A},Y>0&&(A+=f[Y-1].dist(f[Y]));for(var j=0;j0},mi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},mi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},mi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},mi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},mi.prototype.addIndicesForPlacedSymbol=function(o,f){for(var p=o.placedSymbolArray.get(f),x=p.vertexStartIndex+p.numGlyphs*4,A=p.vertexStartIndex;A1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(o),this.sortedAngle=o,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var p=0,x=this.symbolInstanceIndexes;p=0&&j.indexOf(F)===Y&&f.addIndicesForPlacedSymbol(f.text,F)}),k.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,k.verticalPlacedTextSymbolIndex),k.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.placedIconSymbolIndex),k.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},y("SymbolBucket",mi,{omit:["layers","collisionBoxArray","features","compareText"]}),mi.MAX_GLYPHS=65535,mi.addDynamicAttributes=B3;function ZX(n,o){return o.replace(/{([^{}]+)}/g,function(f,p){return p in n?String(n[p]):""})}var YX=new qn({"symbol-placement":new Ar(jt.layout_symbol["symbol-placement"]),"symbol-spacing":new Ar(jt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ar(jt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Hr(jt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ar(jt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ar(jt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ar(jt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ar(jt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ar(jt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Hr(jt.layout_symbol["icon-size"]),"icon-text-fit":new Ar(jt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ar(jt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Hr(jt.layout_symbol["icon-image"]),"icon-rotate":new Hr(jt.layout_symbol["icon-rotate"]),"icon-padding":new Ar(jt.layout_symbol["icon-padding"]),"icon-keep-upright":new Ar(jt.layout_symbol["icon-keep-upright"]),"icon-offset":new Hr(jt.layout_symbol["icon-offset"]),"icon-anchor":new Hr(jt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ar(jt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ar(jt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ar(jt.layout_symbol["text-rotation-alignment"]),"text-field":new Hr(jt.layout_symbol["text-field"]),"text-font":new Hr(jt.layout_symbol["text-font"]),"text-size":new Hr(jt.layout_symbol["text-size"]),"text-max-width":new Hr(jt.layout_symbol["text-max-width"]),"text-line-height":new Ar(jt.layout_symbol["text-line-height"]),"text-letter-spacing":new Hr(jt.layout_symbol["text-letter-spacing"]),"text-justify":new Hr(jt.layout_symbol["text-justify"]),"text-radial-offset":new Hr(jt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ar(jt.layout_symbol["text-variable-anchor"]),"text-anchor":new Hr(jt.layout_symbol["text-anchor"]),"text-max-angle":new Ar(jt.layout_symbol["text-max-angle"]),"text-writing-mode":new Ar(jt.layout_symbol["text-writing-mode"]),"text-rotate":new Hr(jt.layout_symbol["text-rotate"]),"text-padding":new Ar(jt.layout_symbol["text-padding"]),"text-keep-upright":new Ar(jt.layout_symbol["text-keep-upright"]),"text-transform":new Hr(jt.layout_symbol["text-transform"]),"text-offset":new Hr(jt.layout_symbol["text-offset"]),"text-allow-overlap":new Ar(jt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ar(jt.layout_symbol["text-ignore-placement"]),"text-optional":new Ar(jt.layout_symbol["text-optional"])}),WX=new qn({"icon-opacity":new Hr(jt.paint_symbol["icon-opacity"]),"icon-color":new Hr(jt.paint_symbol["icon-color"]),"icon-halo-color":new Hr(jt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Hr(jt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Hr(jt.paint_symbol["icon-halo-blur"]),"icon-translate":new Ar(jt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ar(jt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Hr(jt.paint_symbol["text-opacity"]),"text-color":new Hr(jt.paint_symbol["text-color"],{runtimeType:Ts,getOverride:function(n){return n.textColor},hasOverride:function(n){return!!n.textColor}}),"text-halo-color":new Hr(jt.paint_symbol["text-halo-color"]),"text-halo-width":new Hr(jt.paint_symbol["text-halo-width"]),"text-halo-blur":new Hr(jt.paint_symbol["text-halo-blur"]),"text-translate":new Ar(jt.paint_symbol["text-translate"]),"text-translate-anchor":new Ar(jt.paint_symbol["text-translate-anchor"])}),O3={paint:WX,layout:YX},d0=function(o){this.type=o.property.overrides?o.property.overrides.runtimeType:af,this.defaultValue=o};d0.prototype.evaluate=function(o){if(o.formattedSection){var f=this.defaultValue.property.overrides;if(f&&f.hasOverride(o.formattedSection))return f.getOverride(o.formattedSection)}return o.feature&&o.featureState?this.defaultValue.evaluate(o.feature,o.featureState):this.defaultValue.property.specification.default},d0.prototype.eachChild=function(o){if(!this.defaultValue.isConstant()){var f=this.defaultValue.value;o(f._styleExpression.expression)}},d0.prototype.outputDefined=function(){return!1},d0.prototype.serialize=function(){return null},y("FormatSectionOverride",d0,{omit:["defaultValue"]});var XX=function(n){function o(f){n.call(this,f,O3)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.recalculate=function(p,x){if(n.prototype.recalculate.call(this,p,x),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var A=this.layout.get("text-writing-mode");if(A){for(var k=[],F=0,Y=A;F",targetMapId:x,sourceMapId:k.mapId})}}},p0.prototype.receive=function(o){var f=o.data,p=f.id;if(p&&!(f.targetMapId&&this.mapId!==f.targetMapId))if(f.type===""){delete this.tasks[p];var x=this.cancelCallbacks[p];delete this.cancelCallbacks[p],x&&x()}else nt()||f.mustQueue?(this.tasks[p]=f,this.taskQueue.push(p),this.invoker.trigger()):this.processTask(p,f)},p0.prototype.process=function(){if(this.taskQueue.length){var o=this.taskQueue.shift(),f=this.tasks[o];delete this.tasks[o],this.taskQueue.length&&this.invoker.trigger(),f&&this.processTask(o,f)}},p0.prototype.processTask=function(o,f){var p=this;if(f.type===""){var x=this.callbacks[o];delete this.callbacks[o],x&&(f.error?x(Z(f.error)):x(null,Z(f.data)))}else{var A=!1,k=kt(this.globalScope)?void 0:[],F=f.hasCallback?function(_e,ve){A=!0,delete p.cancelCallbacks[o],p.target.postMessage({id:o,type:"",sourceMapId:p.mapId,error:_e?V(_e):null,data:V(ve,k)},k)}:function(_e){A=!0},Y=null,j=Z(f.data);if(this.parent[f.type])Y=this.parent[f.type](f.sourceMapId,j,F);else if(this.parent.getWorkerSource){var Q=f.type.split("."),ne=this.parent.getWorkerSource(f.sourceMapId,Q[0],j.source);Y=ne[Q[1]](j,F)}else F(new Error("Could not find function "+f.type));!A&&Y&&Y.cancel&&(this.cancelCallbacks[o]=Y.cancel)}},p0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function nj(n,o,f){o=Math.pow(2,f)-o-1;var p=v7(n*256,o*256,f),x=v7((n+1)*256,(o+1)*256,f);return p[0]+","+p[1]+","+x[0]+","+x[1]}function v7(n,o,f){var p=2*Math.PI*6378137/256/Math.pow(2,f),x=n*p-2*Math.PI*6378137/2,A=o*p-2*Math.PI*6378137/2;return[x,A]}var Mn=function(o,f){o&&(f?this.setSouthWest(o).setNorthEast(f):o.length===4?this.setSouthWest([o[0],o[1]]).setNorthEast([o[2],o[3]]):this.setSouthWest(o[0]).setNorthEast(o[1]))};Mn.prototype.setNorthEast=function(o){return this._ne=o instanceof Vi?new Vi(o.lng,o.lat):Vi.convert(o),this},Mn.prototype.setSouthWest=function(o){return this._sw=o instanceof Vi?new Vi(o.lng,o.lat):Vi.convert(o),this},Mn.prototype.extend=function(o){var f=this._sw,p=this._ne,x,A;if(o instanceof Vi)x=o,A=o;else if(o instanceof Mn){if(x=o._sw,A=o._ne,!x||!A)return this}else{if(Array.isArray(o))if(o.length===4||o.every(Array.isArray)){var k=o;return this.extend(Mn.convert(k))}else{var F=o;return this.extend(Vi.convert(F))}return this}return!f&&!p?(this._sw=new Vi(x.lng,x.lat),this._ne=new Vi(A.lng,A.lat)):(f.lng=Math.min(x.lng,f.lng),f.lat=Math.min(x.lat,f.lat),p.lng=Math.max(A.lng,p.lng),p.lat=Math.max(A.lat,p.lat)),this},Mn.prototype.getCenter=function(){return new Vi((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Mn.prototype.getSouthWest=function(){return this._sw},Mn.prototype.getNorthEast=function(){return this._ne},Mn.prototype.getNorthWest=function(){return new Vi(this.getWest(),this.getNorth())},Mn.prototype.getSouthEast=function(){return new Vi(this.getEast(),this.getSouth())},Mn.prototype.getWest=function(){return this._sw.lng},Mn.prototype.getSouth=function(){return this._sw.lat},Mn.prototype.getEast=function(){return this._ne.lng},Mn.prototype.getNorth=function(){return this._ne.lat},Mn.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Mn.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Mn.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Mn.prototype.contains=function(o){var f=Vi.convert(o),p=f.lng,x=f.lat,A=this._sw.lat<=x&&x<=this._ne.lat,k=this._sw.lng<=p&&p<=this._ne.lng;return this._sw.lng>this._ne.lng&&(k=this._sw.lng>=p&&p>=this._ne.lng),A&&k},Mn.convert=function(o){return!o||o instanceof Mn?o:new Mn(o)};var d7=63710088e-1,Vi=function(o,f){if(isNaN(o)||isNaN(f))throw new Error("Invalid LngLat object: ("+o+", "+f+")");if(this.lng=+o,this.lat=+f,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Vi.prototype.wrap=function(){return new Vi(O(this.lng,-180,180),this.lat)},Vi.prototype.toArray=function(){return[this.lng,this.lat]},Vi.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Vi.prototype.distanceTo=function(o){var f=Math.PI/180,p=this.lat*f,x=o.lat*f,A=Math.sin(p)*Math.sin(x)+Math.cos(p)*Math.cos(x)*Math.cos((o.lng-this.lng)*f),k=d7*Math.acos(Math.min(A,1));return k},Vi.prototype.toBounds=function(o){o===void 0&&(o=0);var f=40075017,p=360*o/f,x=p/Math.cos(Math.PI/180*this.lat);return new Mn(new Vi(this.lng-x,this.lat-p),new Vi(this.lng+x,this.lat+p))},Vi.convert=function(o){if(o instanceof Vi)return o;if(Array.isArray(o)&&(o.length===2||o.length===3))return new Vi(Number(o[0]),Number(o[1]));if(!Array.isArray(o)&&typeof o=="object"&&o!==null)return new Vi(Number("lng"in o?o.lng:o.lon),Number(o.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var p7=2*Math.PI*d7;function m7(n){return p7*Math.cos(n*Math.PI/180)}function y7(n){return(180+n)/360}function g7(n){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360}function _7(n,o){return n/m7(o)}function oj(n){return n*360-180}function V3(n){var o=180-n*360;return 360/Math.PI*Math.atan(Math.exp(o*Math.PI/180))-90}function sj(n,o){return n*m7(V3(o))}function lj(n){return 1/Math.cos(n*Math.PI/180)}var nd=function(o,f,p){p===void 0&&(p=0),this.x=+o,this.y=+f,this.z=+p};nd.fromLngLat=function(o,f){f===void 0&&(f=0);var p=Vi.convert(o);return new nd(y7(p.lng),g7(p.lat),_7(f,p.lat))},nd.prototype.toLngLat=function(){return new Vi(oj(this.x),V3(this.y))},nd.prototype.toAltitude=function(){return sj(this.z,this.y)},nd.prototype.meterInMercatorCoordinateUnits=function(){return 1/p7*lj(V3(this.y))};var od=function(o,f,p){this.z=o,this.x=f,this.y=p,this.key=Cy(0,o,o,f,p)};od.prototype.equals=function(o){return this.z===o.z&&this.x===o.x&&this.y===o.y},od.prototype.url=function(o,f){var p=nj(this.x,this.y,this.z),x=uj(this.z,this.x,this.y);return o[(this.x+this.y)%o.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(f==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",x).replace("{bbox-epsg-3857}",p)},od.prototype.getTilePoint=function(o){var f=Math.pow(2,this.z);return new v((o.x*f-this.x)*Nr,(o.y*f-this.y)*Nr)},od.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var x7=function(o,f){this.wrap=o,this.canonical=f,this.key=Cy(o,f.z,f.z,f.x,f.y)},Sn=function(o,f,p,x,A){this.overscaledZ=o,this.wrap=f,this.canonical=new od(p,+x,+A),this.key=Cy(f,o,p,x,A)};Sn.prototype.equals=function(o){return this.overscaledZ===o.overscaledZ&&this.wrap===o.wrap&&this.canonical.equals(o.canonical)},Sn.prototype.scaledTo=function(o){var f=this.canonical.z-o;return o>this.canonical.z?new Sn(o,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Sn(o,this.wrap,o,this.canonical.x>>f,this.canonical.y>>f)},Sn.prototype.calculateScaledKey=function(o,f){var p=this.canonical.z-o;return o>this.canonical.z?Cy(this.wrap*+f,o,this.canonical.z,this.canonical.x,this.canonical.y):Cy(this.wrap*+f,o,o,this.canonical.x>>p,this.canonical.y>>p)},Sn.prototype.isChildOf=function(o){if(o.wrap!==this.wrap)return!1;var f=this.canonical.z-o.canonical.z;return o.overscaledZ===0||o.overscaledZ>f&&o.canonical.y===this.canonical.y>>f},Sn.prototype.children=function(o){if(this.overscaledZ>=o)return[new Sn(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var f=this.canonical.z+1,p=this.canonical.x*2,x=this.canonical.y*2;return[new Sn(f,this.wrap,f,p,x),new Sn(f,this.wrap,f,p+1,x),new Sn(f,this.wrap,f,p,x+1),new Sn(f,this.wrap,f,p+1,x+1)]},Sn.prototype.isLessThan=function(o){return this.wrapo.wrap?!1:this.overscaledZo.overscaledZ?!1:this.canonical.xo.canonical.x?!1:this.canonical.y0;A--)x=1<=this.dim+1||f<-1||f>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(f+1)*this.stride+(o+1)},pc.prototype._unpackMapbox=function(o,f,p){return(o*256*256+f*256+p)/10-1e4},pc.prototype._unpackTerrarium=function(o,f,p){return o*256+f+p/256-32768},pc.prototype.getPixels=function(){return new ts({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},pc.prototype.backfillBorder=function(o,f,p){if(this.dim!==o.dim)throw new Error("dem dimension mismatch");var x=f*this.dim,A=f*this.dim+this.dim,k=p*this.dim,F=p*this.dim+this.dim;switch(f){case-1:x=A-1;break;case 1:A=x+1;break}switch(p){case-1:k=F-1;break;case 1:F=k+1;break}for(var Y=-f*this.dim,j=-p*this.dim,Q=k;Q=0&&ne[3]>=0&&Y.insert(F,ne[0],ne[1],ne[2],ne[3])}},mc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new i0.VectorTile(new O1(this.rawTileData)).layers,this.sourceLayerCoder=new J1(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},mc.prototype.query=function(o,f,p,x){var A=this;this.loadVTLayers();for(var k=o.params||{},F=Nr/o.tileSize/o.scale,Y=df(k.filter),j=o.queryGeometry,Q=o.queryPadding*F,ne=w7(j),_e=this.grid.query(ne.minX-Q,ne.minY-Q,ne.maxX+Q,ne.maxY+Q),ve=w7(o.cameraQueryGeometry),Ee=this.grid3D.query(ve.minX-Q,ve.minY-Q,ve.maxX+Q,ve.maxY+Q,function(Kt,pr,fr,Fr){return Vl(o.cameraQueryGeometry,Kt-Q,pr-Q,fr+Q,Fr+Q)}),qe=0,ct=Ee;qex)A=!1;else if(!f)A=!0;else if(this.expirationTime=ea.maxzoom)&&ea.visibility!=="none"){T(gr,this.zoom,ue);var ga=Et[ea.id]=ea.createBucket({index:yt.bucketLayerIDs.length,layers:gr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Zr,sourceID:this.source});ga.populate(Or,Rt,this.tileID.canonical),yt.bucketLayerIDs.push(gr.map(function(Ha){return Ha.id}))}}}}var nr,wi,Ca,oi,fa=a.mapObject(Rt.glyphDependencies,function(Ha){return Object.keys(Ha).map(Number)});Object.keys(fa).length?Le.send("getGlyphs",{uid:this.uid,stacks:fa},function(Ha,Kn){nr||(nr=Ha,wi=Kn,bs.call(rt))}):wi={};var In=Object.keys(Rt.iconDependencies);In.length?Le.send("getImages",{icons:In,source:this.source,tileID:this.tileID,type:"icons"},function(Ha,Kn){nr||(nr=Ha,Ca=Kn,bs.call(rt))}):Ca={};var Co=Object.keys(Rt.patternDependencies);Co.length?Le.send("getImages",{icons:Co,source:this.source,tileID:this.tileID,type:"patterns"},function(Ha,Kn){nr||(nr=Ha,oi=Kn,bs.call(rt))}):oi={},bs.call(this);function bs(){if(nr)return Ne(nr);if(wi&&Ca&&oi){var Ha=new m(wi),Kn=new a.ImageAtlas(Ca,oi);for(var du in Et){var Oi=Et[du];Oi instanceof a.SymbolBucket?(T(Oi.layers,this.zoom,ue),a.performSymbolLayout(Oi,wi,Ha.positions,Ca,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Oi.hasPattern&&(Oi instanceof a.LineBucket||Oi instanceof a.FillBucket||Oi instanceof a.FillExtrusionBucket)&&(T(Oi.layers,this.zoom,ue),Oi.addFeatures(Rt,this.tileID.canonical,Kn.patternPositions))}this.status="done",Ne(null,{buckets:a.values(Et).filter(function(pl){return!pl.isEmpty()}),featureIndex:yt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ha.image,imageAtlas:Kn,glyphMap:this.returnDependencies?wi:null,iconMap:this.returnDependencies?Ca:null,glyphPositions:this.returnDependencies?Ha.positions:null})}}};function T(le,te,se){for(var ue=new a.EvaluationParameters(te),Le=0,Ne=le;Le=0!=!!te&&le.reverse()}var N=a.vectorTile.VectorTileFeature.prototype.toGeoJSON,H=function(te){this._feature=te,this.extent=a.EXTENT,this.type=te.type,this.properties=te.tags,"id"in te&&!isNaN(te.id)&&(this.id=parseInt(te.id,10))};H.prototype.loadGeometry=function(){if(this._feature.type===1){for(var te=[],se=0,ue=this._feature.geometry;se>31}function nt(le,te){for(var se=le.loadGeometry(),ue=le.type,Le=0,Ne=0,rt=se.length,Ze=0;Ze>1;kt(le,te,rt,ue,Le,Ne%2),Xe(le,te,se,ue,rt-1,Ne+1),Xe(le,te,se,rt+1,Le,Ne+1)}}function kt(le,te,se,ue,Le,Ne){for(;Le>ue;){if(Le-ue>600){var rt=Le-ue+1,Ze=se-ue+1,yt=Math.log(rt),Et=.5*Math.exp(2*yt/3),Rt=.5*Math.sqrt(yt*Et*(rt-Et)/rt)*(Ze-rt/2<0?-1:1),tr=Math.max(ue,Math.floor(se-Ze*Et/rt+Rt)),Xt=Math.min(Le,Math.floor(se+(rt-Ze)*Et/rt+Rt));kt(le,te,se,tr,Xt,Ne)}var Sr=te[2*se+Ne],Zr=ue,Or=Le;for(lt(le,te,ue,se),te[2*Le+Ne]>Sr&<(le,te,ue,Le);ZrSr;)Or--}te[2*ue+Ne]===Sr?lt(le,te,ue,Or):(Or++,lt(le,te,Or,Le)),Or<=se&&(ue=Or+1),se<=Or&&(Le=Or-1)}}function lt(le,te,se,ue){mt(le,se,ue),mt(te,2*se,2*ue),mt(te,2*se+1,2*ue+1)}function mt(le,te,se){var ue=le[te];le[te]=le[se],le[se]=ue}function Bt(le,te,se,ue,Le,Ne,rt){for(var Ze=[0,le.length-1,0],yt=[],Et,Rt;Ze.length;){var tr=Ze.pop(),Xt=Ze.pop(),Sr=Ze.pop();if(Xt-Sr<=rt){for(var Zr=Sr;Zr<=Xt;Zr++)Et=te[2*Zr],Rt=te[2*Zr+1],Et>=se&&Et<=Le&&Rt>=ue&&Rt<=Ne&&yt.push(le[Zr]);continue}var Or=Math.floor((Sr+Xt)/2);Et=te[2*Or],Rt=te[2*Or+1],Et>=se&&Et<=Le&&Rt>=ue&&Rt<=Ne&&yt.push(le[Or]);var ca=(tr+1)%2;(tr===0?se<=Et:ue<=Rt)&&(Ze.push(Sr),Ze.push(Or-1),Ze.push(ca)),(tr===0?Le>=Et:Ne>=Rt)&&(Ze.push(Or+1),Ze.push(Xt),Ze.push(ca))}return yt}function ft(le,te,se,ue,Le,Ne){for(var rt=[0,le.length-1,0],Ze=[],yt=Le*Le;rt.length;){var Et=rt.pop(),Rt=rt.pop(),tr=rt.pop();if(Rt-tr<=Ne){for(var Xt=tr;Xt<=Rt;Xt++)de(te[2*Xt],te[2*Xt+1],se,ue)<=yt&&Ze.push(le[Xt]);continue}var Sr=Math.floor((tr+Rt)/2),Zr=te[2*Sr],Or=te[2*Sr+1];de(Zr,Or,se,ue)<=yt&&Ze.push(le[Sr]);var ca=(Et+1)%2;(Et===0?se-Le<=Zr:ue-Le<=Or)&&(rt.push(tr),rt.push(Sr-1),rt.push(ca)),(Et===0?se+Le>=Zr:ue+Le>=Or)&&(rt.push(Sr+1),rt.push(Rt),rt.push(ca))}return Ze}function de(le,te,se,ue){var Le=le-se,Ne=te-ue;return Le*Le+Ne*Ne}var De=function(le){return le[0]},ye=function(le){return le[1]},Oe=function(te,se,ue,Le,Ne){se===void 0&&(se=De),ue===void 0&&(ue=ye),Le===void 0&&(Le=64),Ne===void 0&&(Ne=Float64Array),this.nodeSize=Le,this.points=te;for(var rt=te.length<65536?Uint16Array:Uint32Array,Ze=this.ids=new rt(te.length),yt=this.coords=new Ne(te.length*2),Et=0;Et=Le;Rt--){var tr=+Date.now();yt=this._cluster(yt,Rt),this.trees[Rt]=new Oe(yt,Be,ut,rt,Float32Array),ue&&console.log("z%d: %d clusters in %dms",Rt,yt.length,+Date.now()-tr)}return ue&&console.timeEnd("total time"),this},Je.prototype.getClusters=function(te,se){var ue=((te[0]+180)%360+360)%360-180,Le=Math.max(-90,Math.min(90,te[1])),Ne=te[2]===180?180:((te[2]+180)%360+360)%360-180,rt=Math.max(-90,Math.min(90,te[3]));if(te[2]-te[0]>=360)ue=-180,Ne=180;else if(ue>Ne){var Ze=this.getClusters([ue,Le,180,rt],se),yt=this.getClusters([-180,Le,Ne,rt],se);return Ze.concat(yt)}for(var Et=this.trees[this._limitZoom(se)],Rt=Et.range(qt(ue),Dt(rt),qt(Ne),Dt(Le)),tr=[],Xt=0,Sr=Rt;Xtse&&(Or+=ti.numPoints||1)}if(Or>=yt){for(var Yr=tr.x*Zr,gr=tr.y*Zr,ea=Ze&&Zr>1?this._map(tr,!0):null,ga=(Rt<<5)+(se+1)+this.points.length,nr=0,wi=Sr;nr1)for(var In=0,Co=Sr;In>5},Je.prototype._getOriginZoom=function(te){return(te-this.points.length)%32},Je.prototype._map=function(te,se){if(te.numPoints)return se?Wt({},te.properties):te.properties;var ue=this.points[te.index].properties,Le=this.options.map(ue);return se&&Le===ue?Wt({},Le):Le};function Pt(le,te,se,ue,Le){return{x:le,y:te,zoom:1/0,id:se,parentId:-1,numPoints:ue,properties:Le}}function xt(le,te){var se=le.geometry.coordinates,ue=se[0],Le=se[1];return{x:qt(ue),y:Dt(Le),zoom:1/0,index:te,parentId:-1}}function bt(le){return{type:"Feature",id:le.id,properties:Vt(le),geometry:{type:"Point",coordinates:[At(le.x),Ut(le.y)]}}}function Vt(le){var te=le.numPoints,se=te>=1e4?Math.round(te/1e3)+"k":te>=1e3?Math.round(te/100)/10+"k":te;return Wt(Wt({},le.properties),{cluster:!0,cluster_id:le.id,point_count:te,point_count_abbreviated:se})}function qt(le){return le/360+.5}function Dt(le){var te=Math.sin(le*Math.PI/180),se=.5-.25*Math.log((1+te)/(1-te))/Math.PI;return se<0?0:se>1?1:se}function At(le){return(le-.5)*360}function Ut(le){var te=(180-le*360)*Math.PI/180;return 360*Math.atan(Math.exp(te))/Math.PI-90}function Wt(le,te){for(var se in te)le[se]=te[se];return le}function Be(le){return le.x}function ut(le){return le.y}function sr(le,te,se,ue){for(var Le=ue,Ne=se-te>>1,rt=se-te,Ze,yt=le[te],Et=le[te+1],Rt=le[se],tr=le[se+1],Xt=te+3;XtLe)Ze=Xt,Le=Sr;else if(Sr===Le){var Zr=Math.abs(Xt-Ne);Zrue&&(Ze-te>3&&sr(le,te,Ze,ue),le[Ze+2]=Le,se-Ze>3&&sr(le,Ze,se,ue))}function Pr(le,te,se,ue,Le,Ne){var rt=Le-se,Ze=Ne-ue;if(rt!==0||Ze!==0){var yt=((le-se)*rt+(te-ue)*Ze)/(rt*rt+Ze*Ze);yt>1?(se=Le,ue=Ne):yt>0&&(se+=rt*yt,ue+=Ze*yt)}return rt=le-se,Ze=te-ue,rt*rt+Ze*Ze}function Lt(le,te,se,ue){var Le={id:typeof le=="undefined"?null:le,type:te,geometry:se,tags:ue,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return vt(Le),Le}function vt(le){var te=le.geometry,se=le.type;if(se==="Point"||se==="MultiPoint"||se==="LineString")pt(le,te);else if(se==="Polygon"||se==="MultiLineString")for(var ue=0;ue0&&(ue?rt+=(Le*Et-yt*Ne)/2:rt+=Math.sqrt(Math.pow(yt-Le,2)+Math.pow(Et-Ne,2))),Le=yt,Ne=Et}var Rt=te.length-3;te[2]=1,sr(te,0,Rt,se),te[Rt+2]=1,te.size=Math.abs(rt),te.start=0,te.end=te.size}function hr(le,te,se,ue){for(var Le=0;Le1?1:se}function Ct(le,te,se,ue,Le,Ne,rt,Ze){if(se/=te,ue/=te,Ne>=se&&rt=ue)return null;for(var yt=[],Et=0;Et=se&&Zr=ue)continue;var Or=[];if(Xt==="Point"||Xt==="MultiPoint")Fe(tr,Or,se,ue,Le);else if(Xt==="LineString")Ue(tr,Or,se,ue,Le,!1,Ze.lineMetrics);else if(Xt==="MultiLineString")Tt(tr,Or,se,ue,Le,!1);else if(Xt==="Polygon")Tt(tr,Or,se,ue,Le,!0);else if(Xt==="MultiPolygon")for(var ca=0;ca=se&&rt<=ue&&(te.push(le[Ne]),te.push(le[Ne+1]),te.push(le[Ne+2]))}}function Ue(le,te,se,ue,Le,Ne,rt){for(var Ze=wt(le),yt=Le===0?Mr:Tr,Et=le.start,Rt,tr,Xt=0;Xtse&&(tr=yt(Ze,Sr,Zr,ca,ua,se),rt&&(Ze.start=Et+Rt*tr)):Fa>ue?ti=se&&(tr=yt(Ze,Sr,Zr,ca,ua,se),Yr=!0),ti>ue&&Fa<=ue&&(tr=yt(Ze,Sr,Zr,ca,ua,ue),Yr=!0),!Ne&&Yr&&(rt&&(Ze.end=Et+Rt*tr),te.push(Ze),Ze=wt(le)),rt&&(Et+=Rt)}var gr=le.length-3;Sr=le[gr],Zr=le[gr+1],Or=le[gr+2],Fa=Le===0?Sr:Zr,Fa>=se&&Fa<=ue&&vr(Ze,Sr,Zr,Or),gr=Ze.length-3,Ne&&gr>=3&&(Ze[gr]!==Ze[0]||Ze[gr+1]!==Ze[1])&&vr(Ze,Ze[0],Ze[1],Ze[2]),Ze.length&&te.push(Ze)}function wt(le){var te=[];return te.size=le.size,te.start=le.start,te.end=le.end,te}function Tt(le,te,se,ue,Le,Ne){for(var rt=0;rtrt.maxX&&(rt.maxX=Rt),tr>rt.maxY&&(rt.maxY=tr)}return rt}function Hi(le,te,se,ue){var Le=te.geometry,Ne=te.type,rt=[];if(Ne==="Point"||Ne==="MultiPoint")for(var Ze=0;Ze0&&te.size<(Le?rt:ue)){se.numPoints+=te.length/3;return}for(var Ze=[],yt=0;ytrt)&&(se.numSimplified++,Ze.push(te[yt]),Ze.push(te[yt+1])),se.numPoints++;Le&&_n(Ze,Ne),le.push(Ze)}function _n(le,te){for(var se=0,ue=0,Le=le.length,Ne=Le-2;ue0===te)for(ue=0,Le=le.length;ue24)throw new Error("maxZoom should be in the 0-24 range");if(te.promoteId&&te.generateId)throw new Error("promoteId and generateId cannot be used together.");var ue=Nt(le,te);this.tiles={},this.tileCoords=[],se&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",te.indexMaxZoom,te.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ue=Gr(ue,te),ue.length&&this.splitTile(ue,0,0,0),se&&(ue.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Gi.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Gi.prototype.splitTile=function(le,te,se,ue,Le,Ne,rt){for(var Ze=[le,te,se,ue],yt=this.options,Et=yt.debug;Ze.length;){ue=Ze.pop(),se=Ze.pop(),te=Ze.pop(),le=Ze.pop();var Rt=1<1&&console.time("creation"),Xt=this.tiles[tr]=hi(le,te,se,ue,yt),this.tileCoords.push({z:te,x:se,y:ue}),Et)){Et>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",te,se,ue,Xt.numFeatures,Xt.numPoints,Xt.numSimplified),console.timeEnd("creation"));var Sr="z"+te;this.stats[Sr]=(this.stats[Sr]||0)+1,this.total++}if(Xt.source=le,Le){if(te===yt.maxZoom||te===Le)continue;var Zr=1<1&&console.time("clipping");var Or=.5*yt.buffer/yt.extent,ca=.5-Or,ua=.5+Or,Fa=1+Or,ti,Yr,gr,ea,ga,nr;ti=Yr=gr=ea=null,ga=Ct(le,Rt,se-Or,se+ua,0,Xt.minX,Xt.maxX,yt),nr=Ct(le,Rt,se+ca,se+Fa,0,Xt.minX,Xt.maxX,yt),le=null,ga&&(ti=Ct(ga,Rt,ue-Or,ue+ua,1,Xt.minY,Xt.maxY,yt),Yr=Ct(ga,Rt,ue+ca,ue+Fa,1,Xt.minY,Xt.maxY,yt),ga=null),nr&&(gr=Ct(nr,Rt,ue-Or,ue+ua,1,Xt.minY,Xt.maxY,yt),ea=Ct(nr,Rt,ue+ca,ue+Fa,1,Xt.minY,Xt.maxY,yt),nr=null),Et>1&&console.timeEnd("clipping"),Ze.push(ti||[],te+1,se*2,ue*2),Ze.push(Yr||[],te+1,se*2,ue*2+1),Ze.push(gr||[],te+1,se*2+1,ue*2),Ze.push(ea||[],te+1,se*2+1,ue*2+1)}}},Gi.prototype.getTile=function(le,te,se){var ue=this.options,Le=ue.extent,Ne=ue.debug;if(le<0||le>24)return null;var rt=1<1&&console.log("drilling down to z%d-%d-%d",le,te,se);for(var yt=le,Et=te,Rt=se,tr;!tr&&yt>0;)yt--,Et=Math.floor(Et/2),Rt=Math.floor(Rt/2),tr=this.tiles[ma(yt,Et,Rt)];return!tr||!tr.source?null:(Ne>1&&console.log("found parent tile z%d-%d-%d",yt,Et,Rt),Ne>1&&console.time("drilling down"),this.splitTile(tr.source,yt,Et,Rt,le,te,se),Ne>1&&console.timeEnd("drilling down"),this.tiles[Ze]?ai(this.tiles[Ze],Le):null)};function ma(le,te,se){return((1<=0?0:g.button},l.remove=function(g){g.parentNode&&g.parentNode.removeChild(g)};function E(g,c,b){var d,w,D,R=a.browser.devicePixelRatio>1?"@2x":"",G=a.getJSON(c.transformRequest(c.normalizeSpriteURL(g,R,".json"),a.ResourceType.SpriteJSON),function(ce,we){G=null,D||(D=ce,d=we,re())}),K=a.getImage(c.transformRequest(c.normalizeSpriteURL(g,R,".png"),a.ResourceType.SpriteImage),function(ce,we){K=null,D||(D=ce,w=we,re())});function re(){if(D)b(D);else if(d&&w){var ce=a.browser.getImageData(w),we={};for(var be in d){var Re=d[be],Ye=Re.width,Ge=Re.height,Ve=Re.x,Ke=Re.y,dt=Re.sdf,zt=Re.pixelRatio,Ft=Re.stretchX,Qt=Re.stretchY,rr=Re.content,Yt=new a.RGBAImage({width:Ye,height:Ge});a.RGBAImage.copy(ce,Yt,{x:Ve,y:Ke},{x:0,y:0},{width:Ye,height:Ge}),we[be]={data:Yt,pixelRatio:zt,sdf:dt,stretchX:Ft,stretchY:Qt,content:rr}}b(null,we)}}return{cancel:function(){G&&(G.cancel(),G=null),K&&(K.cancel(),K=null)}}}function L(g){var c=g.userImage;if(c&&c.render){var b=c.render();if(b)return g.data.replace(new Uint8Array(c.data.buffer)),!0}return!1}var I=1,O=function(g){function c(){g.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.RGBAImage({width:1,height:1}),this.dirty=!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.isLoaded=function(){return this.loaded},c.prototype.setLoaded=function(d){if(this.loaded!==d&&(this.loaded=d,d)){for(var w=0,D=this.requestors;w=0?1.2:1))}U.prototype.draw=function(g){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(g,this.buffer,this.middle);for(var c=this.ctx.getImageData(0,0,this.size,this.size),b=new Uint8ClampedArray(this.size*this.size),d=0;d65535){ce(new Error("glyphs > 65535 not supported"));return}if(Re.ranges[Ge]){ce(null,{stack:we,id:be,glyph:Ye});return}var Ve=Re.requests[Ge];Ve||(Ve=Re.requests[Ge]=[],ee.loadGlyphRange(we,Ge,d.url,d.requestManager,function(Ke,dt){if(dt){for(var zt in dt)d._doesCharSupportLocalGlyph(+zt)||(Re.glyphs[+zt]=dt[+zt]);Re.ranges[Ge]=!0}for(var Ft=0,Qt=Ve;Ft1&&(re=c[++K]);var we=Math.abs(ce-re.left),be=Math.abs(ce-re.right),Re=Math.min(we,be),Ye=void 0,Ge=D/d*(w+1);if(re.isDash){var Ve=w-Math.abs(Ge);Ye=Math.sqrt(Re*Re+Ve*Ve)}else Ye=w-Math.sqrt(Re*Re+Ge*Ge);this.data[G+ce]=Math.max(0,Math.min(255,Ye+128))}},Te.prototype.addRegularDash=function(c){for(var b=c.length-1;b>=0;--b){var d=c[b],w=c[b+1];d.zeroLength?c.splice(b,1):w&&w.isDash===d.isDash&&(w.left=d.left,c.splice(b,1))}var D=c[0],R=c[c.length-1];D.isDash===R.isDash&&(D.left=R.left-this.width,R.right=D.right+this.width);for(var G=this.width*this.nextRow,K=0,re=c[K],ce=0;ce1&&(re=c[++K]);var we=Math.abs(ce-re.left),be=Math.abs(ce-re.right),Re=Math.min(we,be),Ye=re.isDash?Re:-Re;this.data[G+ce]=Math.max(0,Math.min(255,Ye+128))}},Te.prototype.addDash=function(c,b){var d=b?7:0,w=2*d+1;if(this.nextRow+w>this.height)return a.warnOnce("LineAtlas out of space"),null;for(var D=0,R=0;R=d.minX&&c.x=d.minY&&c.y0&&(ce[new a.OverscaledTileID(d.overscaledZ,G,w.z,R,w.y-1).key]={backfilled:!1},ce[new a.OverscaledTileID(d.overscaledZ,d.wrap,w.z,w.x,w.y-1).key]={backfilled:!1},ce[new a.OverscaledTileID(d.overscaledZ,re,w.z,K,w.y-1).key]={backfilled:!1}),w.y+10&&(D.resourceTiming=d._resourceTiming,d._resourceTiming=[]),d.fire(new a.Event("data",D))})},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setData=function(d){var w=this;return this._data=d,this.fire(new a.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(D){if(D){w.fire(new a.ErrorEvent(D));return}var R={dataType:"source",sourceDataType:"content"};w._collectResourceTiming&&w._resourceTiming&&w._resourceTiming.length>0&&(R.resourceTiming=w._resourceTiming,w._resourceTiming=[]),w.fire(new a.Event("data",R))}),this},c.prototype.getClusterExpansionZoom=function(d,w){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:d,source:this.id},w),this},c.prototype.getClusterChildren=function(d,w){return this.actor.send("geojson.getClusterChildren",{clusterId:d,source:this.id},w),this},c.prototype.getClusterLeaves=function(d,w,D,R){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:d,limit:w,offset:D},R),this},c.prototype._updateWorkerData=function(d){var w=this;this._loaded=!1;var D=a.extend({},this.workerOptions),R=this._data;typeof R=="string"?(D.request=this.map._requestManager.transformRequest(a.browser.resolveURL(R),a.ResourceType.Source),D.request.collectResourceTiming=this._collectResourceTiming):D.data=JSON.stringify(R),this.actor.send(this.type+".loadData",D,function(G,K){w._removed||K&&K.abandoned||(w._loaded=!0,K&&K.resourceTiming&&K.resourceTiming[w.id]&&(w._resourceTiming=K.resourceTiming[w.id].slice(0)),w.actor.send(w.type+".coalesce",{source:D.source},null),d(G))})},c.prototype.loaded=function(){return this._loaded},c.prototype.loadTile=function(d,w){var D=this,R=d.actor?"reloadTile":"loadTile";d.actor=this.actor;var G={type:this.type,uid:d.uid,tileID:d.tileID,zoom:d.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};d.request=this.actor.send(R,G,function(K,re){return delete d.request,d.unloadVectorData(),d.aborted?w(null):K?w(K):(d.loadVectorData(re,D.map.painter,R==="reloadTile"),w(null))})},c.prototype.abortTile=function(d){d.request&&(d.request.cancel(),delete d.request),d.aborted=!0},c.prototype.unloadTile=function(d){d.unloadVectorData(),this.actor.send("removeTile",{uid:d.uid,type:this.type,source:this.id})},c.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},c.prototype.serialize=function(){return a.extend({},this._options,{type:this.type,data:this._data})},c.prototype.hasTransition=function(){return!1},c}(a.Evented),it=a.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),nt=function(g){function c(b,d,w,D){g.call(this),this.id=b,this.dispatcher=w,this.coordinates=d.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(D),this.options=d}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(d,w){var D=this;this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this.url=this.options.url,a.getImage(this.map._requestManager.transformRequest(this.url,a.ResourceType.Image),function(R,G){D._loaded=!0,R?D.fire(new a.ErrorEvent(R)):G&&(D.image=G,d&&(D.coordinates=d),w&&w(),D._finishLoading())})},c.prototype.loaded=function(){return this._loaded},c.prototype.updateImage=function(d){var w=this;return!this.image||!d.url?this:(this.options.url=d.url,this.load(d.coordinates,function(){w.texture=null}),this)},c.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})))},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setCoordinates=function(d){var w=this;this.coordinates=d;var D=d.map(a.MercatorCoordinate.fromLngLat);this.tileID=gt(D),this.minzoom=this.maxzoom=this.tileID.z;var R=D.map(function(G){return w.tileID.getTilePoint(G)._round()});return this._boundsArray=new a.StructArrayLayout4i8,this._boundsArray.emplaceBack(R[0].x,R[0].y,0,0),this._boundsArray.emplaceBack(R[1].x,R[1].y,a.EXTENT,0),this._boundsArray.emplaceBack(R[3].x,R[3].y,0,a.EXTENT),this._boundsArray.emplaceBack(R[2].x,R[2].y,a.EXTENT,a.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})),this},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,it.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new a.Texture(d,this.image,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var D in this.tiles){var R=this.tiles[D];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.loadTile=function(d,w){this.tileID&&this.tileID.equals(d.tileID.canonical)?(this.tiles[String(d.tileID.wrap)]=d,d.buckets={},w(null)):(d.state="errored",w(null))},c.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return!1},c}(a.Evented);function gt(g){for(var c=1/0,b=1/0,d=-1/0,w=-1/0,D=0,R=g;Dw.end(0)?this.fire(new a.ErrorEvent(new a.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+w.start(0)+" and "+w.end(0)+"-second mark."))):this.video.currentTime=d}},c.prototype.getVideo=function(){return this.video},c.prototype.onAdd=function(d){this.map||(this.map=d,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,it.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE),w.texSubImage2D(w.TEXTURE_2D,0,0,0,w.RGBA,w.UNSIGNED_BYTE,this.video)):(this.texture=new a.Texture(d,this.video,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var D in this.tiles){var R=this.tiles[D];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this.video&&!this.video.paused},c}(nt),kt=function(g){function c(b,d,w,D){g.call(this,b,d,w,D),d.coordinates?(!Array.isArray(d.coordinates)||d.coordinates.length!==4||d.coordinates.some(function(R){return!Array.isArray(R)||R.length!==2||R.some(function(G){return typeof G!="number"})}))&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "coordinates"'))),d.animate&&typeof d.animate!="boolean"&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'optional "animate" property must be a boolean value'))),d.canvas?typeof d.canvas!="string"&&!(d.canvas instanceof a.window.HTMLCanvasElement)&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "canvas"'))),this.options=d,this.animate=d.animate!==void 0?d.animate:!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof a.window.HTMLCanvasElement?this.options.canvas:a.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new a.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},c.prototype.getCanvas=function(){return this.canvas},c.prototype.onAdd=function(d){this.map=d,this.load(),this.canvas&&this.animate&&this.play()},c.prototype.onRemove=function(){this.pause()},c.prototype.prepare=function(){var d=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,d=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,d=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var w=this.map.painter.context,D=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,it.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(d||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a.Texture(w,this.canvas,D.RGBA,{premultiply:!0});for(var R in this.tiles){var G=this.tiles[R];G.state!=="loaded"&&(G.state="loaded",G.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this._playing},c.prototype._hasInvalidDimensions=function(){for(var d=0,w=[this.canvas.width,this.canvas.height];dthis.max){var G=this._getAndRemoveByKey(this.order[0]);G&&this.onRemove(G)}return this},xt.prototype.has=function(c){return c.wrapped().key in this.data},xt.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},xt.prototype._getAndRemoveByKey=function(c){var b=this.data[c].shift();return b.timeout&&clearTimeout(b.timeout),this.data[c].length===0&&delete this.data[c],this.order.splice(this.order.indexOf(c),1),b.value},xt.prototype.getByKey=function(c){var b=this.data[c];return b?b[0].value:null},xt.prototype.get=function(c){if(!this.has(c))return null;var b=this.data[c.wrapped().key][0];return b.value},xt.prototype.remove=function(c,b){if(!this.has(c))return this;var d=c.wrapped().key,w=b===void 0?0:this.data[d].indexOf(b),D=this.data[d][w];return this.data[d].splice(w,1),D.timeout&&clearTimeout(D.timeout),this.data[d].length===0&&delete this.data[d],this.onRemove(D.value),this.order.splice(this.order.indexOf(d),1),this},xt.prototype.setMaxSize=function(c){for(this.max=c;this.order.length>this.max;){var b=this._getAndRemoveByKey(this.order[0]);b&&this.onRemove(b)}return this},xt.prototype.filter=function(c){var b=[];for(var d in this.data)for(var w=0,D=this.data[d];w1||(Math.abs(we)>1&&(Math.abs(we+Re)===1?we+=Re:Math.abs(we-Re)===1&&(we-=Re)),!(!ce.dem||!re.dem)&&(re.dem.backfillBorder(ce.dem,we,be),re.neighboringTiles&&re.neighboringTiles[Ye]&&(re.neighboringTiles[Ye].backfilled=!0)))}},c.prototype.getTile=function(d){return this.getTileByID(d.key)},c.prototype.getTileByID=function(d){return this._tiles[d]},c.prototype._retainLoadedChildren=function(d,w,D,R){for(var G in this._tiles){var K=this._tiles[G];if(!(R[G]||!K.hasData()||K.tileID.overscaledZ<=w||K.tileID.overscaledZ>D)){for(var re=K.tileID;K&&K.tileID.overscaledZ>w+1;){var ce=K.tileID.scaledTo(K.tileID.overscaledZ-1);K=this._tiles[ce.key],K&&K.hasData()&&(re=ce)}for(var we=re;we.overscaledZ>w;)if(we=we.scaledTo(we.overscaledZ-1),d[we.key]){R[re.key]=re;break}}}},c.prototype.findLoadedParent=function(d,w){if(d.key in this._loadedParentTiles){var D=this._loadedParentTiles[d.key];return D&&D.tileID.overscaledZ>=w?D:null}for(var R=d.overscaledZ-1;R>=w;R--){var G=d.scaledTo(R),K=this._getLoadedTile(G);if(K)return K}},c.prototype._getLoadedTile=function(d){var w=this._tiles[d.key];if(w&&w.hasData())return w;var D=this._cache.getByKey(d.wrapped().key);return D},c.prototype.updateCacheSize=function(d){var w=Math.ceil(d.width/this._source.tileSize)+1,D=Math.ceil(d.height/this._source.tileSize)+1,R=w*D,G=5,K=Math.floor(R*G),re=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,K):K;this._cache.setMaxSize(re)},c.prototype.handleWrapJump=function(d){var w=this._prevLng===void 0?d:this._prevLng,D=d-w,R=D/360,G=Math.round(R);if(this._prevLng=d,G){var K={};for(var re in this._tiles){var ce=this._tiles[re];ce.tileID=ce.tileID.unwrapTo(ce.tileID.wrap+G),K[ce.tileID.key]=ce}this._tiles=K;for(var we in this._timers)clearTimeout(this._timers[we]),delete this._timers[we];for(var be in this._tiles){var Re=this._tiles[be];this._setTileReloadTimer(be,Re)}}},c.prototype.update=function(d){var w=this;if(this.transform=d,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(d),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var D;this.used?this._source.tileID?D=d.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(wr){return new a.OverscaledTileID(wr.canonical.z,wr.wrap,wr.canonical.z,wr.canonical.x,wr.canonical.y)}):(D=d.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(D=D.filter(function(wr){return w._source.hasTile(wr)}))):D=[];var R=d.coveringZoomLevel(this._source),G=Math.max(R-c.maxOverzooming,this._source.minzoom),K=Math.max(R+c.maxUnderzooming,this._source.minzoom),re=this._updateRetainedTiles(D,R);if(yt(this._source.type)){for(var ce={},we={},be=Object.keys(re),Re=0,Ye=be;Rethis._source.maxzoom){var dt=Ve.children(this._source.maxzoom)[0],zt=this.getTile(dt);if(zt&&zt.hasData()){D[dt.key]=dt;continue}}else{var Ft=Ve.children(this._source.maxzoom);if(D[Ft[0].key]&&D[Ft[1].key]&&D[Ft[2].key]&&D[Ft[3].key])continue}for(var Qt=Ke.wasRequested(),rr=Ve.overscaledZ-1;rr>=G;--rr){var Yt=Ve.scaledTo(rr);if(R[Yt.key]||(R[Yt.key]=!0,Ke=this.getTile(Yt),!Ke&&Qt&&(Ke=this._addTile(Yt)),Ke&&(D[Yt.key]=Yt,Qt=Ke.wasRequested(),Ke.hasData())))break}}}return D},c.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var d in this._tiles){for(var w=[],D=void 0,R=this._tiles[d].tileID;R.overscaledZ>0;){if(R.key in this._loadedParentTiles){D=this._loadedParentTiles[R.key];break}w.push(R.key);var G=R.scaledTo(R.overscaledZ-1);if(D=this._getLoadedTile(G),D)break;R=G}for(var K=0,re=w;K0)&&(w.hasData()&&w.state!=="reloading"?this._cache.add(w.tileID,w,w.getExpiryTimeout()):(w.aborted=!0,this._abortTile(w),this._unloadTile(w))))},c.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var d in this._tiles)this._removeTile(d);this._cache.reset()},c.prototype.tilesIn=function(d,w,D){var R=this,G=[],K=this.transform;if(!K)return G;for(var re=D?K.getCameraQueryGeometry(d):d,ce=d.map(function(rr){return K.pointCoordinate(rr)}),we=re.map(function(rr){return K.pointCoordinate(rr)}),be=this.getIds(),Re=1/0,Ye=1/0,Ge=-1/0,Ve=-1/0,Ke=0,dt=we;Ke=0&&Dr[1].y+wr>=0){var kr=ce.map(function(Ia){return ar.getTilePoint(Ia)}),Wr=we.map(function(Ia){return ar.getTilePoint(Ia)});G.push({tile:Yt,tileID:ar,queryGeometry:kr,cameraQueryGeometry:Wr,scale:dr})}}},Qt=0;Qt=a.browser.now())return!0}return!1},c.prototype.setFeatureState=function(d,w,D){d=d||"_geojsonTileLayer",this._state.updateState(d,w,D)},c.prototype.removeFeatureState=function(d,w,D){d=d||"_geojsonTileLayer",this._state.removeFeatureState(d,w,D)},c.prototype.getFeatureState=function(d,w){return d=d||"_geojsonTileLayer",this._state.getState(d,w)},c.prototype.setDependencies=function(d,w,D){var R=this._tiles[d];R&&R.setDependencies(w,D)},c.prototype.reloadTilesForDependencies=function(d,w){for(var D in this._tiles){var R=this._tiles[D];R.hasDependency(d,w)&&this._reloadTile(D,"reloading")}this._cache.filter(function(G){return!G.hasDependency(d,w)})},c}(a.Evented);rt.maxOverzooming=10,rt.maxUnderzooming=3;function Ze(g,c){var b=Math.abs(g.wrap*2)-+(g.wrap<0),d=Math.abs(c.wrap*2)-+(c.wrap<0);return g.overscaledZ-c.overscaledZ||d-b||c.canonical.y-g.canonical.y||c.canonical.x-g.canonical.x}function yt(g){return g==="raster"||g==="image"||g==="video"}function Et(){return new a.window.Worker(Tn.workerUrl)}var Rt="mapboxgl_preloaded_worker_pool",tr=function(){this.active={}};tr.prototype.acquire=function(c){if(!this.workers)for(this.workers=[];this.workers.length0?(w-R)/G:0;return this.points[D].mult(1-K).add(this.points[b].mult(K))};var Ha=function(c,b,d){var w=this.boxCells=[],D=this.circleCells=[];this.xCellCount=Math.ceil(c/d),this.yCellCount=Math.ceil(b/d);for(var R=0;Rthis.width||w<0||b>this.height)return D?!1:[];var G=[];if(c<=0&&b<=0&&this.width<=d&&this.height<=w){if(D)return!0;for(var K=0;K0:G}},Ha.prototype._queryCircle=function(c,b,d,w,D){var R=c-d,G=c+d,K=b-d,re=b+d;if(G<0||R>this.width||re<0||K>this.height)return w?!1:[];var ce=[],we={hitTest:w,circle:{x:c,y:b,radius:d},seenUids:{box:{},circle:{}}};return this._forEachCell(R,K,G,re,this._queryCellCircle,ce,we,D),w?ce.length>0:ce},Ha.prototype.query=function(c,b,d,w,D){return this._query(c,b,d,w,!1,D)},Ha.prototype.hitTest=function(c,b,d,w,D){return this._query(c,b,d,w,!0,D)},Ha.prototype.hitTestCircle=function(c,b,d,w){return this._queryCircle(c,b,d,!0,w)},Ha.prototype._queryCell=function(c,b,d,w,D,R,G,K){var re=G.seenUids,ce=this.boxCells[D];if(ce!==null)for(var we=this.bboxes,be=0,Re=ce;be=we[Ge+0]&&w>=we[Ge+1]&&(!K||K(this.boxKeys[Ye]))){if(G.hitTest)return R.push(!0),!0;R.push({key:this.boxKeys[Ye],x1:we[Ge],y1:we[Ge+1],x2:we[Ge+2],y2:we[Ge+3]})}}}var Ve=this.circleCells[D];if(Ve!==null)for(var Ke=this.circles,dt=0,zt=Ve;dtG*G+K*K},Ha.prototype._circleAndRectCollide=function(c,b,d,w,D,R,G){var K=(R-w)/2,re=Math.abs(c-(w+K));if(re>K+d)return!1;var ce=(G-D)/2,we=Math.abs(b-(D+ce));if(we>ce+d)return!1;if(re<=K||we<=ce)return!0;var be=re-K,Re=we-ce;return be*be+Re*Re<=d*d};function Kn(g,c,b,d,w){var D=a.create();return c?(a.scale(D,D,[1/w,1/w,1]),b||a.rotateZ(D,D,d.angle)):a.multiply(D,d.labelPlaneMatrix,g),D}function du(g,c,b,d,w){if(c){var D=a.clone(g);return a.scale(D,D,[w,w,1]),b||a.rotateZ(D,D,-d.angle),D}else return d.glCoordMatrix}function Oi(g,c){var b=[g.x,g.y,0,1];Qf(b,b,c);var d=b[3];return{point:new a.Point(b[0]/d,b[1]/d),signedDistanceFromCamera:d}}function pl(g,c){return .5+.5*(g/c)}function fp(g,c){var b=g[0]/g[3],d=g[1]/g[3],w=b>=-c[0]&&b<=c[0]&&d>=-c[1]&&d<=c[1];return w}function Gc(g,c,b,d,w,D,R,G){var K=d?g.textSizeData:g.iconSizeData,re=a.evaluateSizeForZoom(K,b.transform.zoom),ce=[256/b.width*2+1,256/b.height*2+1],we=d?g.text.dynamicLayoutVertexArray:g.icon.dynamicLayoutVertexArray;we.clear();for(var be=g.lineVertexArray,Re=d?g.text.placedSymbolArray:g.icon.placedSymbolArray,Ye=b.transform.width/b.transform.height,Ge=!1,Ve=0;VeD)return{useVertical:!0}}return(g===a.WritingMode.vertical?c.yb.x)?{needsFlipping:!0}:null}function bv(g,c,b,d,w,D,R,G,K,re,ce,we,be,Re){var Ye=c/24,Ge=g.lineOffsetX*Ye,Ve=g.lineOffsetY*Ye,Ke;if(g.numGlyphs>1){var dt=g.glyphStartIndex+g.numGlyphs,zt=g.lineStartIndex,Ft=g.lineStartIndex+g.lineLength,Qt=Zc(Ye,G,Ge,Ve,b,ce,we,g,K,D,be);if(!Qt)return{notEnoughRoom:!0};var rr=Oi(Qt.first.point,R).point,Yt=Oi(Qt.last.point,R).point;if(d&&!b){var ar=xv(g.writingMode,rr,Yt,Re);if(ar)return ar}Ke=[Qt.first];for(var dr=g.glyphStartIndex+1;dr0?Wr.point:pu(we,kr,wr,1,w),_a=xv(g.writingMode,wr,Ia,Re);if(_a)return _a}var Nr=ml(Ye*G.getoffsetX(g.glyphStartIndex),Ge,Ve,b,ce,we,g.segment,g.lineStartIndex,g.lineStartIndex+g.lineLength,K,D,be);if(!Nr)return{notEnoughRoom:!0};Ke=[Nr]}for(var Sa=0,ia=Ke;Sa0?1:-1,Ye=0;d&&(Re*=-1,Ye=Math.PI),Re<0&&(Ye+=Math.PI);for(var Ge=Re>0?G+R:G+R+1,Ve=w,Ke=w,dt=0,zt=0,Ft=Math.abs(be),Qt=[];dt+zt<=Ft;){if(Ge+=Re,Ge=K)return null;if(Ke=Ve,Qt.push(Ve),Ve=we[Ge],Ve===void 0){var rr=new a.Point(re.getx(Ge),re.gety(Ge)),Yt=Oi(rr,ce);if(Yt.signedDistanceFromCamera>0)Ve=we[Ge]=Yt.point;else{var ar=Ge-Re,dr=dt===0?D:new a.Point(re.getx(ar),re.gety(ar));Ve=pu(dr,rr,Ke,Ft-dt+1,ce)}}dt+=zt,zt=Ke.dist(Ve)}var wr=(Ft-dt)/zt,Dr=Ve.sub(Ke),kr=Dr.mult(wr)._add(Ke);kr._add(Dr._unit()._perp()._mult(b*Re));var Wr=Ye+Math.atan2(Ve.y-Ke.y,Ve.x-Ke.x);return Qt.push(kr),{point:kr,angle:Wr,path:Qt}}var cp=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ef(g,c){for(var b=0;b=1;Ga--)ia.push(Nr.path[Ga]);for(var Oa=1;Oa0){for(var na=ia[0].clone(),Na=ia[0].clone(),en=1;en=Wr.x&&Na.x<=Ia.x&&na.y>=Wr.y&&Na.y<=Ia.y?pi=[ia]:Na.xIa.x||Na.yIa.y?pi=[]:pi=a.clipLine([ia],Wr.x,Wr.y,Ia.x,Ia.y)}for(var Nn=0,Ps=pi;Nn=this.screenRightBoundary||wthis.screenBottomBoundary},Go.prototype.isInsideGrid=function(c,b,d,w){return d>=0&&c=0&&b0){var Ft;return this.prevPlacement&&this.prevPlacement.variableOffsets[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID].text&&(Ft=this.prevPlacement.variableOffsets[be.crossTileID].anchor),this.variableOffsets[be.crossTileID]={textOffset:Ve,width:d,height:w,anchor:c,textBoxScale:D,prevAnchor:Ft},this.markUsedJustification(Re,c,be,Ye),Re.allowVerticalPlacement&&(this.markUsedOrientation(Re,Ye,be),this.placedOrientations[be.crossTileID]=Ye),{shift:Ke,placedGlyphBoxes:dt}}},lo.prototype.placeLayerBucketPart=function(c,b,d){var w=this,D=c.parameters,R=D.bucket,G=D.layout,K=D.posMatrix,re=D.textLabelPlaneMatrix,ce=D.labelToScreenMatrix,we=D.textPixelRatio,be=D.holdingForFade,Re=D.collisionBoxArray,Ye=D.partiallyEvaluatedTextSize,Ge=D.collisionGroup,Ve=G.get("text-optional"),Ke=G.get("icon-optional"),dt=G.get("text-allow-overlap"),zt=G.get("icon-allow-overlap"),Ft=G.get("text-rotation-alignment")==="map",Qt=G.get("text-pitch-alignment")==="map",rr=G.get("icon-text-fit")!=="none",Yt=G.get("symbol-z-order")==="viewport-y",ar=dt&&(zt||!R.hasIconData()||Ke),dr=zt&&(dt||!R.hasTextData()||Ve);!R.collisionArrays&&Re&&R.deserializeCollisionBoxes(Re);var wr=function(Nr,Sa){if(!b[Nr.crossTileID]){if(be){w.placements[Nr.crossTileID]=new mu(!1,!1,!1);return}var ia=!1,Ga=!1,Oa=!0,Ai=null,Ea={box:null,offscreen:null},pi={box:null,offscreen:null},na=null,Na=null,en=null,Nn=0,Ps=0,zs=0;Sa.textFeatureIndex?Nn=Sa.textFeatureIndex:Nr.useRuntimeCollisionCircles&&(Nn=Nr.featureIndex),Sa.verticalTextFeatureIndex&&(Ps=Sa.verticalTextFeatureIndex);var el=Sa.textBox;if(el){var Ol=function(un){var $o=a.WritingMode.horizontal;if(R.allowVerticalPlacement&&!un&&w.prevPlacement){var es=w.prevPlacement.placedOrientations[Nr.crossTileID];es&&(w.placedOrientations[Nr.crossTileID]=es,$o=es,w.markUsedOrientation(R,$o,Nr))}return $o},vc=function(un,$o){if(R.allowVerticalPlacement&&Nr.numVerticalGlyphVertices>0&&Sa.verticalTextBox)for(var es=0,e0=R.writingModes;es0&&(Qo=Qo.filter(function(un){return un!==Po.anchor}),Qo.unshift(Po.anchor))}var tl=function(un,$o,es){for(var e0=un.x2-un.x1,dy=un.y2-un.y1,y3=Nr.textBoxScale,g3=rr&&!zt?$o:null,rd={box:[],offscreen:!1},_3=dt?Qo.length*2:Qo.length,t0=0;t0<_3;++t0){var x3=Qo[t0%Qo.length],b3=t0>=Qo.length,py=w.attemptAnchorPlacement(x3,un,e0,dy,y3,Ft,Qt,we,K,Ge,b3,Nr,R,es,g3);if(py&&(rd=py.placedGlyphBoxes,rd&&rd.box&&rd.box.length)){ia=!0,Ai=py.shift;break}}return rd},Eu=function(){return tl(el,Sa.iconBox,a.WritingMode.horizontal)},rl=function(){var un=Sa.verticalTextBox,$o=Ea&&Ea.box&&Ea.box.length;return R.allowVerticalPlacement&&!$o&&Nr.numVerticalGlyphVertices>0&&un?tl(un,Sa.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}};vc(Eu,rl),Ea&&(ia=Ea.box,Oa=Ea.offscreen);var jp=Ol(Ea&&Ea.box);if(!ia&&w.prevPlacement){var gh=w.prevPlacement.variableOffsets[Nr.crossTileID];gh&&(w.variableOffsets[Nr.crossTileID]=gh,w.markUsedJustification(R,gh.anchor,Nr,jp))}}else{var Ul=function(un,$o){var es=w.collisionIndex.placeCollisionBox(un,dt,we,K,Ge.predicate);return es&&es.box&&es.box.length&&(w.markUsedOrientation(R,$o,Nr),w.placedOrientations[Nr.crossTileID]=$o),es},Do=function(){return Ul(el,a.WritingMode.horizontal)},Vl=function(){var un=Sa.verticalTextBox;return R.allowVerticalPlacement&&Nr.numVerticalGlyphVertices>0&&un?Ul(un,a.WritingMode.vertical):{box:null,offscreen:null}};vc(Do,Vl),Ol(Ea&&Ea.box&&Ea.box.length)}}if(na=Ea,ia=na&&na.box&&na.box.length>0,Oa=na&&na.offscreen,Nr.useRuntimeCollisionCircles){var Gn=R.text.placedSymbolArray.get(Nr.centerJustifiedTextSymbolIndex),Jp=a.evaluateSizeForFeature(R.textSizeData,Ye,Gn),td=G.get("text-padding"),bo=Nr.collisionCircleDiameter;Na=w.collisionIndex.placeCollisionCircles(dt,Gn,R.lineVertexArray,R.glyphOffsetArray,Jp,K,re,ce,d,Qt,Ge.predicate,bo,td),ia=dt||Na.circles.length>0&&!Na.collisionDetected,Oa=Oa&&Na.offscreen}if(Sa.iconFeatureIndex&&(zs=Sa.iconFeatureIndex),Sa.iconBox){var _h=function(un){var $o=rr&&Ai?Av(un,Ai.x,Ai.y,Ft,Qt,w.transform.angle):un;return w.collisionIndex.placeCollisionBox($o,zt,we,K,Ge.predicate)};pi&&pi.box&&pi.box.length&&Sa.verticalIconBox?(en=_h(Sa.verticalIconBox),Ga=en.box.length>0):(en=_h(Sa.iconBox),Ga=en.box.length>0),Oa=Oa&&en.offscreen}var Kp=Ve||Nr.numHorizontalGlyphVertices===0&&Nr.numVerticalGlyphVertices===0,Qp=Ke||Nr.numIconVertices===0;if(!Kp&&!Qp?Ga=ia=Ga&&ia:Qp?Kp||(Ga=Ga&&ia):ia=Ga&&ia,ia&&na&&na.box&&(pi&&pi.box&&Ps?w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Ps,Ge.ID):w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Nn,Ge.ID)),Ga&&en&&w.collisionIndex.insertCollisionBox(en.box,G.get("icon-ignore-placement"),R.bucketInstanceId,zs,Ge.ID),Na&&(ia&&w.collisionIndex.insertCollisionCircles(Na.circles,G.get("text-ignore-placement"),R.bucketInstanceId,Nn,Ge.ID),d)){var $p=R.bucketInstanceId,xh=w.collisionCircleArrays[$p];xh===void 0&&(xh=w.collisionCircleArrays[$p]=new hp);for(var bh=0;bh=0;--kr){var Wr=Dr[kr];wr(R.symbolInstances.get(Wr),R.collisionArrays[Wr])}else for(var Ia=c.symbolInstanceStart;Ia=0&&(R>=0&&ce!==R?c.text.placedSymbolArray.get(ce).crossTileID=0:c.text.placedSymbolArray.get(ce).crossTileID=d.crossTileID)}},lo.prototype.markUsedOrientation=function(c,b,d){for(var w=b===a.WritingMode.horizontal||b===a.WritingMode.horizontalOnly?b:0,D=b===a.WritingMode.vertical?b:0,R=[d.leftJustifiedTextSymbolIndex,d.centerJustifiedTextSymbolIndex,d.rightJustifiedTextSymbolIndex],G=0,K=R;G0||Qt>0,wr=zt.numIconVertices>0,Dr=w.placedOrientations[zt.crossTileID],kr=Dr===a.WritingMode.vertical,Wr=Dr===a.WritingMode.horizontal||Dr===a.WritingMode.horizontalOnly;if(dr){var Ia=af(ar.text),_a=kr?Er:Ia;Ye(c.text,Ft,_a);var Nr=Wr?Er:Ia;Ye(c.text,Qt,Nr);var Sa=ar.text.isHidden();[zt.rightJustifiedTextSymbolIndex,zt.centerJustifiedTextSymbolIndex,zt.leftJustifiedTextSymbolIndex].forEach(function(zs){zs>=0&&(c.text.placedSymbolArray.get(zs).hidden=Sa||kr?1:0)}),zt.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(zt.verticalPlacedTextSymbolIndex).hidden=Sa||Wr?1:0);var ia=w.variableOffsets[zt.crossTileID];ia&&w.markUsedJustification(c,ia.anchor,zt,Dr);var Ga=w.placedOrientations[zt.crossTileID];Ga&&(w.markUsedJustification(c,"left",zt,Ga),w.markUsedOrientation(c,Ga,zt))}if(wr){var Oa=af(ar.icon),Ai=!(be&&zt.verticalPlacedIconSymbolIndex&&kr);if(zt.placedIconSymbolIndex>=0){var Ea=Ai?Oa:Er;Ye(c.icon,zt.numIconVertices,Ea),c.icon.placedSymbolArray.get(zt.placedIconSymbolIndex).hidden=ar.icon.isHidden()}if(zt.verticalPlacedIconSymbolIndex>=0){var pi=Ai?Er:Oa;Ye(c.icon,zt.numVerticalIconVertices,pi),c.icon.placedSymbolArray.get(zt.verticalPlacedIconSymbolIndex).hidden=ar.icon.isHidden()}}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var na=c.collisionArrays[dt];if(na){var Na=new a.Point(0,0);if(na.textBox||na.verticalTextBox){var en=!0;if(re){var Nn=w.variableOffsets[rr];Nn?(Na=Tv(Nn.anchor,Nn.width,Nn.height,Nn.textOffset,Nn.textBoxScale),ce&&Na._rotate(we?w.transform.angle:-w.transform.angle)):en=!1}na.textBox&&jt(c.textCollisionBox.collisionVertexArray,ar.text.placed,!en||kr,Na.x,Na.y),na.verticalTextBox&&jt(c.textCollisionBox.collisionVertexArray,ar.text.placed,!en||Wr,Na.x,Na.y)}var Ps=!!(!Wr&&na.verticalIconBox);na.iconBox&&jt(c.iconCollisionBox.collisionVertexArray,ar.icon.placed,Ps,be?Na.x:0,be?Na.y:0),na.verticalIconBox&&jt(c.iconCollisionBox.collisionVertexArray,ar.icon.placed,!Ps,be?Na.x:0,be?Na.y:0)}}},Ve=0;Vec},lo.prototype.setStale=function(){this.stale=!0};function jt(g,c,b,d,w){g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0)}var Ur=Math.pow(2,25),vp=Math.pow(2,24),yu=Math.pow(2,17),on=Math.pow(2,16),gl=Math.pow(2,9),ws=Math.pow(2,8),rf=Math.pow(2,1);function af(g){if(g.opacity===0&&!g.placed)return 0;if(g.opacity===1&&g.placed)return 4294967295;var c=g.placed?1:0,b=Math.floor(g.opacity*127);return b*Ur+c*vp+b*yu+c*on+b*gl+c*ws+b*rf+c}var Er=0,ba=function(c){this._sortAcrossTiles=c.layout.get("symbol-z-order")!=="viewport-y"&&c.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ba.prototype.continuePlacement=function(c,b,d,w,D){for(var R=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var G=c[this._currentPlacementIndex],K=b[G],re=this.placement.collisionIndex.transform.zoom;if(K.type==="symbol"&&(!K.minzoom||K.minzoom<=re)&&(!K.maxzoom||K.maxzoom>re)){this._inProgressLayer||(this._inProgressLayer=new ba(K));var ce=this._inProgressLayer.continuePlacement(d[K.source],this.placement,this._showCollisionBoxes,K,R);if(ce)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},wa.prototype.commit=function(c){return this.placement.commit(c),this.placement};var Ts=512/a.EXTENT/2,_l=function(c,b,d){this.tileID=c,this.indexedSymbolInstances={},this.bucketInstanceId=d;for(var w=0;wc.overscaledZ)for(var re in K){var ce=K[re];ce.tileID.isChildOf(c)&&ce.findMatches(b.symbolInstances,c,R)}else{var we=c.scaledTo(Number(G)),be=K[we.key];be&&be.findMatches(b.symbolInstances,c,R)}}for(var Re=0;Re0)throw new Error("Unimplemented: "+R.map(function(G){return G.command}).join(", ")+".");return D.forEach(function(G){G.command!=="setTransition"&&w[G.command].apply(w,G.args)}),this.stylesheet=d,!0},c.prototype.addImage=function(d,w){if(this.getImage(d))return this.fire(new a.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(d,w),this._afterImageUpdated(d)},c.prototype.updateImage=function(d,w){this.imageManager.updateImage(d,w)},c.prototype.getImage=function(d){return this.imageManager.getImage(d)},c.prototype.removeImage=function(d){if(!this.getImage(d))return this.fire(new a.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(d),this._afterImageUpdated(d)},c.prototype._afterImageUpdated=function(d){this._availableImages=this.imageManager.listImages(),this._changedImages[d]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.Event("data",{dataType:"style"}))},c.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},c.prototype.addSource=function(d,w,D){var R=this;if(D===void 0&&(D={}),this._checkLoaded(),this.sourceCaches[d]!==void 0)throw new Error("There is already a source with this ID");if(!w.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(w).join(", ")+".");var G=["vector","raster","geojson","video","image"],K=G.indexOf(w.type)>=0;if(!(K&&this._validate(a.validateStyle.source,"sources."+d,w,null,D))){this.map&&this.map._collectResourceTiming&&(w.collectResourceTiming=!0);var re=this.sourceCaches[d]=new rt(d,w,this.dispatcher);re.style=this,re.setEventedParent(this,function(){return{isSourceLoaded:R.loaded(),source:re.serialize(),sourceId:d}}),re.onAdd(this.map),this._changed=!0}},c.prototype.removeSource=function(d){if(this._checkLoaded(),this.sourceCaches[d]===void 0)throw new Error("There is no source with this ID");for(var w in this._layers)if(this._layers[w].source===d)return this.fire(new a.ErrorEvent(new Error('Source "'+d+'" cannot be removed while layer "'+w+'" is using it.')));var D=this.sourceCaches[d];delete this.sourceCaches[d],delete this._updatedSources[d],D.fire(new a.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:d})),D.setEventedParent(null),D.clearTiles(),D.onRemove&&D.onRemove(this.map),this._changed=!0},c.prototype.setGeoJSONSourceData=function(d,w){this._checkLoaded();var D=this.sourceCaches[d].getSource();D.setData(w),this._changed=!0},c.prototype.getSource=function(d){return this.sourceCaches[d]&&this.sourceCaches[d].getSource()},c.prototype.addLayer=function(d,w,D){D===void 0&&(D={}),this._checkLoaded();var R=d.id;if(this.getLayer(R)){this.fire(new a.ErrorEvent(new Error('Layer with id "'+R+'" already exists on this map')));return}var G;if(d.type==="custom"){if(fs(this,a.validateCustomStyleLayer(d)))return;G=a.createStyleLayer(d)}else{if(typeof d.source=="object"&&(this.addSource(R,d.source),d=a.clone$1(d),d=a.extend(d,{source:R})),this._validate(a.validateStyle.layer,"layers."+R,d,{arrayIndex:-1},D))return;G=a.createStyleLayer(d),this._validateLayer(G),G.setEventedParent(this,{layer:{id:R}}),this._serializedLayers[G.id]=G.serialize()}var K=w?this._order.indexOf(w):this._order.length;if(w&&K===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}if(this._order.splice(K,0,R),this._layerOrderChanged=!0,this._layers[R]=G,this._removedLayers[R]&&G.source&&G.type!=="custom"){var re=this._removedLayers[R];delete this._removedLayers[R],re.type!==G.type?this._updatedSources[G.source]="clear":(this._updatedSources[G.source]="reload",this.sourceCaches[G.source].pause())}this._updateLayer(G),G.onAdd&&G.onAdd(this.map)},c.prototype.moveLayer=function(d,w){this._checkLoaded(),this._changed=!0;var D=this._layers[d];if(!D){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be moved.")));return}if(d!==w){var R=this._order.indexOf(d);this._order.splice(R,1);var G=w?this._order.indexOf(w):this._order.length;if(w&&G===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}this._order.splice(G,0,d),this._layerOrderChanged=!0}},c.prototype.removeLayer=function(d){this._checkLoaded();var w=this._layers[d];if(!w){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be removed.")));return}w.setEventedParent(null);var D=this._order.indexOf(d);this._order.splice(D,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[d]=w,delete this._layers[d],delete this._serializedLayers[d],delete this._updatedLayers[d],delete this._updatedPaintProps[d],w.onRemove&&w.onRemove(this.map)},c.prototype.getLayer=function(d){return this._layers[d]},c.prototype.hasLayer=function(d){return d in this._layers},c.prototype.setLayerZoomRange=function(d,w,D){this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot have zoom extent.")));return}R.minzoom===w&&R.maxzoom===D||(w!=null&&(R.minzoom=w),D!=null&&(R.maxzoom=D),this._updateLayer(R))},c.prototype.setFilter=function(d,w,D){D===void 0&&(D={}),this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be filtered.")));return}if(!a.deepEqual(R.filter,w)){if(w==null){R.filter=void 0,this._updateLayer(R);return}this._validate(a.validateStyle.filter,"layers."+R.id+".filter",w,null,D)||(R.filter=a.clone$1(w),this._updateLayer(R))}},c.prototype.getFilter=function(d){return a.clone$1(this.getLayer(d).filter)},c.prototype.setLayoutProperty=function(d,w,D,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}a.deepEqual(G.getLayoutProperty(w),D)||(G.setLayoutProperty(w,D,R),this._updateLayer(G))},c.prototype.getLayoutProperty=function(d,w){var D=this.getLayer(d);if(!D){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style.")));return}return D.getLayoutProperty(w)},c.prototype.setPaintProperty=function(d,w,D,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}if(!a.deepEqual(G.getPaintProperty(w),D)){var K=G.setPaintProperty(w,D,R);K&&this._updateLayer(G),this._changed=!0,this._updatedPaintProps[d]=!0}},c.prototype.getPaintProperty=function(d,w){return this.getLayer(d).getPaintProperty(w)},c.prototype.setFeatureState=function(d,w){this._checkLoaded();var D=d.source,R=d.sourceLayer,G=this.sourceCaches[D];if(G===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+D+"' does not exist in the map's style.")));return}var K=G.getSource().type;if(K==="geojson"&&R){this.fire(new a.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(K==="vector"&&!R){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),G.setFeatureState(R,d.id,w)},c.prototype.removeFeatureState=function(d,w){this._checkLoaded();var D=d.source,R=this.sourceCaches[D];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+D+"' does not exist in the map's style.")));return}var G=R.getSource().type,K=G==="vector"?d.sourceLayer:void 0;if(G==="vector"&&!K){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(w&&typeof d.id!="string"&&typeof d.id!="number"){this.fire(new a.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}R.removeFeatureState(K,d.id,w)},c.prototype.getFeatureState=function(d){this._checkLoaded();var w=d.source,D=d.sourceLayer,R=this.sourceCaches[w];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+w+"' does not exist in the map's style.")));return}var G=R.getSource().type;if(G==="vector"&&!D){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),R.getFeatureState(D,d.id)},c.prototype.getTransition=function(){return a.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},c.prototype.serialize=function(){return a.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:a.mapObject(this.sourceCaches,function(d){return d.serialize()}),layers:this._serializeLayers(this._order)},function(d){return d!==void 0})},c.prototype._updateLayer=function(d){this._updatedLayers[d.id]=!0,d.source&&!this._updatedSources[d.source]&&this.sourceCaches[d.source].getSource().type!=="raster"&&(this._updatedSources[d.source]="reload",this.sourceCaches[d.source].pause()),this._changed=!0},c.prototype._flattenAndSortRenderedFeatures=function(d){for(var w=this,D=function(Wr){return w._layers[Wr].type==="fill-extrusion"},R={},G=[],K=this._order.length-1;K>=0;K--){var re=this._order[K];if(D(re)){R[re]=K;for(var ce=0,we=d;ce=0;dt--){var zt=this._order[dt];if(D(zt))for(var Ft=G.length-1;Ft>=0;Ft--){var Qt=G[Ft].feature;if(R[Qt.layer.id] .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var g1=de((n3e,sH)=>{"use strict";var iH=Bt(),nH=Ba().defaultLine,wde=Fb().attributes,Tde=qo(),Ade=zc().textposition,Mde=il().overrideAll,Sde=Pi().templatedArray,yA=Oc(),oH=Tde({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});oH.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var kde=sH.exports=Mde({_arrayAttrRegexps:[iH.counterRegex("mapbox",".layers",!0)],domain:wde({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:yA.styleValuesMapbox.concat(yA.styleValuesNonMapbox),dflt:yA.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Sde("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:nH},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:nH}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:oH,textposition:iH.extendFlat({},Ade,{arrayOk:!1})}})},"plot","from-root");kde.uirevision={valType:"any",editType:"none"}});var Vb=de((o3e,cH)=>{"use strict";var{hovertemplateAttrs:Cde,texttemplateAttrs:Ede,templatefallbackAttrs:lH}=Cf(),Lde=kx(),_1=mA(),Cm=zc(),uH=g1(),Dde=ys(),Pde=kc(),tp=mn().extendFlat,zde=il().overrideAll,Ide=g1(),fH=_1.line,Em=_1.marker;cH.exports=zde({lon:_1.lon,lat:_1.lat,cluster:{enabled:{valType:"boolean"},maxzoom:tp({},Ide.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:tp({},Em.opacity,{dflt:1})},mode:tp({},Cm.mode,{dflt:"markers"}),text:tp({},Cm.text,{}),texttemplate:Ede({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:lH({editType:"plot"}),hovertext:tp({},Cm.hovertext,{}),line:{color:fH.color,width:fH.width},connectgaps:Cm.connectgaps,marker:tp({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:Em.opacity,size:Em.size,sizeref:Em.sizeref,sizemin:Em.sizemin,sizemode:Em.sizemode},Pde("marker")),fill:_1.fill,fillcolor:Lde(),textfont:uH.layers.symbol.textfont,textposition:uH.layers.symbol.textposition,below:{valType:"string"},selected:{marker:Cm.selected.marker},unselected:{marker:Cm.unselected.marker},hoverinfo:tp({},Dde.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Cde(),hovertemplatefallback:lH()},"calc","nested")});var gA=de((s3e,hH)=>{"use strict";var Rde=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];hH.exports={isSupportedFont:function(e){return Rde.indexOf(e)!==-1}}});var pH=de((l3e,dH)=>{"use strict";var x1=Bt(),_A=rs(),Fde=H6(),qde=G6(),Nde=Z6(),Bde=Y6(),vH=Vb(),Ode=gA().isSupportedFont;dH.exports=function(t,r,i,a){function s(I,O){return x1.coerce(t,r,vH,I,O)}function l(I,O){return x1.coerce2(t,r,vH,I,O)}var u=Ude(t,r,s);if(!u){r.visible=!1;return}if(s("text"),s("texttemplate"),s("texttemplatefallback"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),s("mode"),s("below"),_A.hasMarkers(r)){Fde(t,r,i,a,s,{noLine:!0,noAngle:!0}),s("marker.allowoverlap"),s("marker.angle");var h=r.marker;h.symbol!=="circle"&&(x1.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),x1.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}_A.hasLines(r)&&(qde(t,r,i,a,s,{noDash:!0}),s("connectgaps"));var v=l("cluster.maxzoom"),m=l("cluster.step"),_=l("cluster.color",r.marker&&r.marker.color||i),T=l("cluster.size"),M=l("cluster.opacity"),C=v!==!1||m!==!1||_!==!1||T!==!1||M!==!1,E=s("cluster.enabled",C);if(E||_A.hasText(r)){var L=a.font.family;Nde(t,r,a,s,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Ode(L)?L:"Open Sans Regular",weight:a.font.weight,style:a.font.style,size:a.font.size,color:a.font.color}})}s("fill"),r.fill!=="none"&&Bde(t,r,i,s),x1.coerceSelectionMarkerOpacity(r,s)};function Ude(e,t,r){var i=r("lon")||[],a=r("lat")||[],s=Math.min(i.length,a.length);return t._length=s,s}});var xA=de((u3e,yH)=>{"use strict";var mH=Xi();yH.exports=function(t,r,i){var a={},s=i[r.subplot]._subplot,l=s.mockAxis,u=t.lonlat;return a.lonLabel=mH.tickText(l,l.c2l(u[0]),!0).text,a.latLabel=mH.tickText(l,l.c2l(u[1]),!0).text,a}});var wH=de((f3e,bH)=>{"use strict";var bA=La(),gH=Zi().BADNUM,Vde=j6(),Hde=$g(),Gde=tb(),Zde=Bt().isArrayOrTypedArray,_H=Bt()._;function xH(e){return e&&typeof e=="string"}bH.exports=function(t,r){var i=Zde(r.locations),a=i?r.locations.length:r._length,s=new Array(a),l;r.geojson?l=function(T){return xH(T)||bA(T)}:l=xH;for(var u=0;u{"use strict";var Yde=Zi().BADNUM;b1.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],a=[],s=0;s0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i};b1.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};b1.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var TH=Bt();AH.exports=function(t,r){var i=t.split(" "),a=i[0],s=i[1],l=TH.isArrayOrTypedArray(r)?TH.mean(r):r,u=.5+l/100,h=1.5+l/100,v=["",""],m=[0,0];switch(a){case"top":v[0]="top",m[1]=-h;break;case"bottom":v[0]="bottom",m[1]=h;break}switch(s){case"left":v[1]="right",m[0]=-u;break;case"right":v[1]="left",m[0]=u;break}var _;return v[0]&&v[1]?_=v.join("-"):v[0]?_=v[0]:v[1]?_=v[1]:_="center",{anchor:_,offset:m}}});var LH=de((v3e,EH)=>{"use strict";var kH=La(),ko=Bt(),Wde=Zi().BADNUM,Zb=Hb(),MH=G0(),Xde=_i(),jde=d5(),Yb=rs(),Jde=gA().isSupportedFont,Kde=wA(),Qde=Cc().appendArrayPointValue,$de=ro().NEWLINES,epe=ro().BR_TAG_ALL;EH.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,s=i.fill!=="none",l=Yb.hasLines(i),u=Yb.hasMarkers(i),h=Yb.hasText(i),v=u&&i.marker.symbol==="circle",m=u&&i.marker.symbol!=="circle",_=i.cluster&&i.cluster.enabled,T=Gb("fill"),M=Gb("line"),C=Gb("circle"),E=Gb("symbol"),L={fill:T,line:M,circle:C,symbol:E};if(!a)return L;var I;if((s||l)&&(I=Zb.calcTraceToLineCoords(r)),s&&(T.geojson=Zb.makePolygon(I),T.layout.visibility="visible",ko.extendFlat(T.paint,{"fill-color":i.fillcolor})),l&&(M.geojson=Zb.makeLine(I),M.layout.visibility="visible",ko.extendFlat(M.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),v){var O=tpe(r);C.geojson=O.geojson,C.layout.visibility="visible",_&&(C.filter=["!",["has","point_count"]],L.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":AA(i.cluster.color,i.cluster.step),"circle-radius":AA(i.cluster.size,i.cluster.step),"circle-opacity":AA(i.cluster.opacity,i.cluster.step)}},L.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":SH(i),"text-size":12}}),ko.extendFlat(C.paint,{"circle-color":O.mcc,"circle-radius":O.mrc,"circle-opacity":O.mo})}if(v&&_&&(C.filter=["!",["has","point_count"]]),(m||h)&&(E.geojson=rpe(r,t),ko.extendFlat(E.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),m&&(ko.extendFlat(E.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&ko.extendFlat(E.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),E.layout["icon-allow-overlap"]=i.marker.allowoverlap,ko.extendFlat(E.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color})),h)){var q=(i.marker||{}).size,z=Kde(i.textposition,q);ko.extendFlat(E.layout,{"text-size":i.textfont.size,"text-anchor":z.anchor,"text-offset":z.offset,"text-font":SH(i)}),ko.extendFlat(E.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return L};function Gb(e){return{type:e,geojson:Zb.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function tpe(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,a=ko.isArrayOrTypedArray(r.color),s=ko.isArrayOrTypedArray(r.size),l=ko.isArrayOrTypedArray(r.opacity),u;function h(q){return t.opacity*q}function v(q){return q/2}var m;a&&(MH.hasColorscale(t,"marker")?m=MH.makeColorScaleFuncFromTrace(r):m=ko.identity);var _;s&&(_=jde(t));var T;l&&(T=function(q){var z=kH(q)?+ko.constrain(q,0,1):0;return h(z)});var M=[];for(u=0;u850?u+=" Black":a>750?u+=" Extra Bold":a>650?u+=" Bold":a>550?u+=" Semi Bold":a>450?u+=" Medium":a>350?u+=" Regular":a>250?u+=" Light":a>150?u+=" Extra Light":u+=" Thin"):s.slice(0,2).join(" ")==="Open Sans"?(u="Open Sans",a>750?u+=" Extrabold":a>650?u+=" Bold":a>550?u+=" Semibold":a>350?u+=" Regular":u+=" Light"):s.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(u="Klokantech Noto Sans",s[3]==="CJK"&&(u+=" CJK"),u+=a>500?" Bold":" Regular")),l&&(u+=" Italic"),u==="Open Sans Regular Italic"?u="Open Sans Italic":u==="Open Sans Regular Bold"?u="Open Sans Bold":u==="Open Sans Regular Bold Italic"?u="Open Sans Bold Italic":u==="Klokantech Noto Sans Regular Italic"&&(u="Klokantech Noto Sans Italic"),Jde(u)||(u=r);var h=u.split(", ");return h}});var IH=de((d3e,zH)=>{"use strict";var ape=Bt(),DH=LH(),Lm=Oc().traceLayerPrefix,cu={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function PH(e,t,r,i){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:Lm+t+"-fill",line:Lm+t+"-line",circle:Lm+t+"-circle",symbol:Lm+t+"-symbol",cluster:Lm+t+"-cluster",clusterCount:Lm+t+"-cluster-count"},this.below=null}var w1=PH.prototype;w1.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&ape.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[e]);a?a.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};w1.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};w1.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var a=this.layerIds[e],s,l=this.subplot.getMapLayers(),u=0;u=0;N--){var H=z[N];a.removeLayer(v.layerIds[H])}q||a.removeSource(v.sourceIds.circle)}function T(q){for(var z=cu.nonCluster,N=0;N=0;N--){var H=z[N];a.removeLayer(v.layerIds[H]),q||a.removeSource(v.sourceIds[H])}}function C(q){h?_(q):M(q)}function E(q){u?m(q):T(q)}function L(){for(var q=u?cu.cluster:cu.nonCluster,z=0;z=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};zH.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,s=i.visible!==!0,l=new PH(t,i.uid,a,s),u=DH(t.gd,r),h=l.below=t.belowLookup["trace-"+i.uid],v,m,_;if(a)for(l.addSource("circle",u.circle,i.cluster),v=0;v{"use strict";var ipe=Uu(),MA=Bt(),npe=vT(),ope=MA.fillText,spe=Zi().BADNUM,lpe=Oc().traceLayerPrefix;function upe(e,t,r){var i=e.cd,a=i[0].trace,s=e.xa,l=e.ya,u=e.subplot,h=[],v=lpe+a.uid+"-circle",m=a.cluster&&a.cluster.enabled;if(m){var _=u.map.queryRenderedFeatures(null,{layers:[v]});h=_.map(function(W){return W.id})}var T=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),M=T*360,C=t-M;function E(W){var J=W.lonlat;if(J[0]===spe||m&&h.indexOf(W.i+1)===-1)return 1/0;var ee=MA.modHalf(J[0],360),ie=J[1],oe=u.project([ee,ie]),he=oe.x-s.c2p([C,ie]),fe=oe.y-l.c2p([ee,r]),Te=Math.max(3,W.mrc||0);return Math.max(Math.sqrt(he*he+fe*fe)-Te,1-3/Te)}if(ipe.getClosest(i,E,e),e.index!==!1){var L=i[e.index],I=L.lonlat,O=[MA.modHalf(I[0],360)+M,I[1]],q=s.c2p(O),z=l.c2p(O),N=L.mrc||1;e.x0=q-N,e.x1=q+N,e.y0=z-N,e.y1=z+N;var H={};H[a.subplot]={_subplot:u};var U=a._module.formatLabels(L,a,H);return e.lonLabel=U.lonLabel,e.latLabel=U.latLabel,e.color=npe(a,L),e.extraText=RH(a,L,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function RH(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i.split("+"),s=a.indexOf("all")!==-1,l=a.indexOf("lon")!==-1,u=a.indexOf("lat")!==-1,h=t.lonlat,v=[];function m(_){return _+"\xB0"}return s||l&&u?v.push("("+m(h[1])+", "+m(h[0])+")"):l?v.push(r.lon+m(h[0])):u&&v.push(r.lat+m(h[1])),(s||a.indexOf("text")!==-1)&&ope(t,e,v),v.join("
")}FH.exports={hoverPoints:upe,getExtraText:RH}});var NH=de((m3e,qH)=>{"use strict";qH.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var OH=de((y3e,BH)=>{"use strict";var fpe=Bt(),cpe=rs(),hpe=Zi().BADNUM;BH.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],u=i[0].trace,h;if(!cpe.hasMarkers(u))return[];if(r===!1)for(h=0;h{(function(e,t){typeof SA=="object"&&typeof kA!="undefined"?kA.exports=t():(e=e||self,e.mapboxgl=t())})(SA,(function(){"use strict";var e,t,r;function i(a,s){if(!e)e=s;else if(!t)t=s;else{var l="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",u={};e(u),r=s(u),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([l],{type:"text/javascript"})))}}return i(["exports"],function(a){"use strict";function s(n,o){return o={exports:{}},n(o,o.exports),o.exports}var l="1.13.4",u=h;function h(n,o,f,p){this.cx=3*n,this.bx=3*(f-n)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*o,this.by=3*(p-o)-this.cy,this.ay=1-this.cy-this.by,this.p1x=n,this.p1y=p,this.p2x=f,this.p2y=p}h.prototype.sampleCurveX=function(n){return((this.ax*n+this.bx)*n+this.cx)*n},h.prototype.sampleCurveY=function(n){return((this.ay*n+this.by)*n+this.cy)*n},h.prototype.sampleCurveDerivativeX=function(n){return(3*this.ax*n+2*this.bx)*n+this.cx},h.prototype.solveCurveX=function(n,o){typeof o=="undefined"&&(o=1e-6);var f,p,x,A,k;for(x=n,k=0;k<8;k++){if(A=this.sampleCurveX(x)-n,Math.abs(A)p)return p;for(;fA?f=x:p=x,x=(p-f)*.5+f}return x},h.prototype.solve=function(n,o){return this.sampleCurveY(this.solveCurveX(n,o))};var v=m;function m(n,o){this.x=n,this.y=o}m.prototype={clone:function(){return new m(this.x,this.y)},add:function(n){return this.clone()._add(n)},sub:function(n){return this.clone()._sub(n)},multByPoint:function(n){return this.clone()._multByPoint(n)},divByPoint:function(n){return this.clone()._divByPoint(n)},mult:function(n){return this.clone()._mult(n)},div:function(n){return this.clone()._div(n)},rotate:function(n){return this.clone()._rotate(n)},rotateAround:function(n,o){return this.clone()._rotateAround(n,o)},matMult:function(n){return this.clone()._matMult(n)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(n){return this.x===n.x&&this.y===n.y},dist:function(n){return Math.sqrt(this.distSqr(n))},distSqr:function(n){var o=n.x-this.x,f=n.y-this.y;return o*o+f*f},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith:function(n){return this.angleWithSep(n.x,n.y)},angleWithSep:function(n,o){return Math.atan2(this.x*o-this.y*n,this.x*n+this.y*o)},_matMult:function(n){var o=n[0]*this.x+n[1]*this.y,f=n[2]*this.x+n[3]*this.y;return this.x=o,this.y=f,this},_add:function(n){return this.x+=n.x,this.y+=n.y,this},_sub:function(n){return this.x-=n.x,this.y-=n.y,this},_mult:function(n){return this.x*=n,this.y*=n,this},_div:function(n){return this.x/=n,this.y/=n,this},_multByPoint:function(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint:function(n){return this.x/=n.x,this.y/=n.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var n=this.y;return this.y=this.x,this.x=-n,this},_rotate:function(n){var o=Math.cos(n),f=Math.sin(n),p=o*this.x-f*this.y,x=f*this.x+o*this.y;return this.x=p,this.y=x,this},_rotateAround:function(n,o){var f=Math.cos(n),p=Math.sin(n),x=o.x+f*(this.x-o.x)-p*(this.y-o.y),A=o.y+p*(this.x-o.x)+f*(this.y-o.y);return this.x=x,this.y=A,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},m.convert=function(n){return n instanceof m?n:Array.isArray(n)?new m(n[0],n[1]):n};var _=typeof self!="undefined"?self:{};function T(n,o){if(Array.isArray(n)){if(!Array.isArray(o)||n.length!==o.length)return!1;for(var f=0;f=1)return 1;var o=n*n,f=o*n;return 4*(n<.5?f:3*(n-o)+f-.75)}function E(n,o,f,p){var x=new u(n,o,f,p);return function(A){return x.solve(A)}}var L=E(.25,.1,.25,1);function I(n,o,f){return Math.min(f,Math.max(o,n))}function O(n,o,f){var p=f-o,x=((n-o)%p+p)%p+o;return x===o?f:x}function q(n,o,f){if(!n.length)return f(null,[]);var p=n.length,x=new Array(n.length),A=null;n.forEach(function(k,F){o(k,function(Y,j){Y&&(A=Y),x[F]=j,--p===0&&f(A,x)})})}function z(n){var o=[];for(var f in n)o.push(n[f]);return o}function N(n,o){var f=[];for(var p in n)p in o||f.push(p);return f}function H(n){for(var o=[],f=arguments.length-1;f-- >0;)o[f]=arguments[f+1];for(var p=0,x=o;p>o/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,n)}return n()}function ie(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function oe(n){return n?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n):!1}function he(n,o){n.forEach(function(f){o[f]&&(o[f]=o[f].bind(o))})}function fe(n,o){return n.indexOf(o,n.length-o.length)!==-1}function Te(n,o,f){var p={};for(var x in n)p[x]=o.call(f||this,n[x],x,n);return p}function ke(n,o,f){var p={};for(var x in n)o.call(f||this,n[x],x,n)&&(p[x]=n[x]);return p}function Se(n){return Array.isArray(n)?n.map(Se):typeof n=="object"&&n?Te(n,Se):n}function Ae(n,o){for(var f=0;f=0)return!0;return!1}var me={};function Ce(n){me[n]||(typeof console!="undefined"&&console.warn(n),me[n]=!0)}function Me(n,o,f){return(f.y-n.y)*(o.x-n.x)>(o.y-n.y)*(f.x-n.x)}function Xe(n){for(var o=0,f=0,p=n.length,x=p-1,A=void 0,k=void 0;f@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,f={};if(n.replace(o,function(x,A,k,F){var Y=k||F;return f[A]=Y?Y.toLowerCase():!0,""}),f["max-age"]){var p=parseInt(f["max-age"],10);isNaN(p)?delete f["max-age"]:f["max-age"]=p}return f}var Ge=null;function Ct(n){if(Ge==null){var o=n.navigator?n.navigator.userAgent:null;Ge=!!n.safari||!!(o&&(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return Ge}function lt(n){try{var o=_[n];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(f){return!1}}function mt(n){return _.btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(o,f){return String.fromCharCode(+("0x"+f))}))}function Ot(n){return decodeURIComponent(_.atob(n).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var ft=_.performance&&_.performance.now?_.performance.now.bind(_.performance):Date.now.bind(Date),pe=_.requestAnimationFrame||_.mozRequestAnimationFrame||_.webkitRequestAnimationFrame||_.msRequestAnimationFrame,De=_.cancelAnimationFrame||_.mozCancelAnimationFrame||_.webkitCancelAnimationFrame||_.msCancelAnimationFrame,ye,Oe,at={now:ft,frame:function(o){var f=pe(o);return{cancel:function(){return De(f)}}},getImageData:function(o,f){f===void 0&&(f=0);var p=_.document.createElement("canvas"),x=p.getContext("2d");if(!x)throw new Error("failed to create canvas 2d context");return p.width=o.width,p.height=o.height,x.drawImage(o,0,0,o.width,o.height),x.getImageData(-f,-f,o.width+2*f,o.height+2*f)},resolveURL:function(o){return ye||(ye=_.document.createElement("a")),ye.href=o,ye.href},hardwareConcurrency:_.navigator&&_.navigator.hardwareConcurrency||4,get devicePixelRatio(){return _.devicePixelRatio},get prefersReducedMotion(){return _.matchMedia?(Oe==null&&(Oe=_.matchMedia("(prefers-reduced-motion: reduce)")),Oe.matches):!1}},Je={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Pt={supported:!1,testSupport:Dt},xt,bt=!1,Vt,qt=!1;_.document&&(Vt=_.document.createElement("img"),Vt.onload=function(){xt&&At(xt),xt=null,qt=!0},Vt.onerror=function(){bt=!0,xt=null},Vt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Dt(n){bt||!Vt||(qt?At(n):xt=n)}function At(n){var o=n.createTexture();n.bindTexture(n.TEXTURE_2D,o);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,Vt),n.isContextLost())return;Pt.supported=!0}catch(f){}n.deleteTexture(o),bt=!0}var Ut="01";function Wt(){for(var n="1",o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",f="",p=0;p<10;p++)f+=o[Math.floor(Math.random()*62)];var x=720*60*1e3,A=[n,Ut,f].join(""),k=Date.now()+x;return{token:A,tokenExpiresAt:k}}var Be=function(o,f){this._transformRequestFn=o,this._customAccessToken=f,this._createSkuToken()};Be.prototype._createSkuToken=function(){var o=Wt();this._skuToken=o.token,this._skuTokenExpiresAt=o.tokenExpiresAt},Be.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Be.prototype.transformRequest=function(o,f){return this._transformRequestFn?this._transformRequestFn(o,f)||{url:o}:{url:o}},Be.prototype.normalizeStyleURL=function(o,f){if(!ut(o))return o;var p=Nt(o);return p.path="/styles/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||f)},Be.prototype.normalizeGlyphsURL=function(o,f){if(!ut(o))return o;var p=Nt(o);return p.path="/fonts/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||f)},Be.prototype.normalizeSourceURL=function(o,f){if(!ut(o))return o;var p=Nt(o);return p.path="/v4/"+p.authority+".json",p.params.push("secure"),this._makeAPIURL(p,this._customAccessToken||f)},Be.prototype.normalizeSpriteURL=function(o,f,p,x){var A=Nt(o);return ut(o)?(A.path="/styles/v1"+A.path+"/sprite"+f+p,this._makeAPIURL(A,this._customAccessToken||x)):(A.path+=""+f+p,er(A))},Be.prototype.normalizeTileURL=function(o,f){if(this._isSkuTokenExpired()&&this._createSkuToken(),o&&!ut(o))return o;var p=Nt(o),x=/(\.(png|jpg)\d*)(?=$)/,A=/^.+\/v4\//,k=at.devicePixelRatio>=2||f===512?"@2x":"",F=Pt.supported?".webp":"$1";p.path=p.path.replace(x,""+k+F),p.path=p.path.replace(A,"/"),p.path="/v4"+p.path;var Y=this._customAccessToken||vt(p.params)||Je.ACCESS_TOKEN;return Je.REQUIRE_ACCESS_TOKEN&&Y&&this._skuToken&&p.params.push("sku="+this._skuToken),this._makeAPIURL(p,Y)},Be.prototype.canonicalizeTileURL=function(o,f){var p="/v4/",x=/\.[\w]+$/,A=Nt(o);if(!A.path.match(/(^\/v4\/)/)||!A.path.match(x))return o;var k="mapbox://tiles/";k+=A.path.replace(p,"");var F=A.params;return f&&(F=F.filter(function(Y){return!Y.match(/^access_token=/)})),F.length&&(k+="?"+F.join("&")),k},Be.prototype.canonicalizeTileset=function(o,f){for(var p=f?ut(f):!1,x=[],A=0,k=o.tiles||[];A=0&&o.params.splice(A,1)}if(x.path!=="/"&&(o.path=""+x.path+o.path),!Je.REQUIRE_ACCESS_TOKEN)return er(o);if(f=f||Je.ACCESS_TOKEN,!f)throw new Error("An API access token is required to use Mapbox GL. "+p);if(f[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+p);return o.params=o.params.filter(function(k){return k.indexOf("access_token")===-1}),o.params.push("access_token="+f),er(o)};function ut(n){return n.indexOf("mapbox:")===0}var sr=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Pr(n){return sr.test(n)}function Lt(n){return n.indexOf("sku=")>0&&Pr(n)}function vt(n){for(var o=0,f=n;o=1&&_.localStorage.setItem(f,JSON.stringify(this.eventData))}catch(x){Ce("Unable to write to LocalStorage")}},hr.prototype.processRequests=function(o){},hr.prototype.postEvent=function(o,f,p,x){var A=this;if(Je.EVENTS_URL){var k=Nt(Je.EVENTS_URL);k.params.push("access_token="+(x||Je.ACCESS_TOKEN||""));var F={event:this.type,created:new Date(o).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:l,skuId:Ut,userId:this.anonId},Y=f?H(F,f):F,j={url:er(k),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Y])};this.pendingRequest=Ye(j,function(Q){A.pendingRequest=null,p(Q),A.saveEventData(),A.processRequests(x)})}},hr.prototype.queueRequest=function(o,f){this.queue.push(o),this.processRequests(f)};var yr=(function(n){function o(){n.call(this,"map.load"),this.success={},this.skuToken=""}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postMapLoadEvent=function(p,x,A,k){this.skuToken=A,(Je.EVENTS_URL&&k||Je.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(F){return ut(F)||Pr(F)}))&&this.queueRequest({id:x,timestamp:Date.now()},k)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){var A=this.queue.shift(),k=A.id,F=A.timestamp;k&&this.success[k]||(this.anonId||this.fetchEventData(),oe(this.anonId)||(this.anonId=ee()),this.postEvent(F,{skuToken:this.skuToken},function(Y){Y||k&&(x.success[k]=!0)},p))}},o})(hr),mr=(function(n){function o(f){n.call(this,"appUserTurnstile"),this._customAccessToken=f}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postTurnstileEvent=function(p,x){Je.EVENTS_URL&&Je.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(A){return ut(A)||Pr(A)})&&this.queueRequest(Date.now(),x)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var A=Gt(Je.ACCESS_TOKEN),k=A?A.u:Je.ACCESS_TOKEN,F=k!==this.eventData.tokenU;oe(this.anonId)||(this.anonId=ee(),F=!0);var Y=this.queue.shift();if(this.eventData.lastSuccess){var j=new Date(this.eventData.lastSuccess),Q=new Date(Y),ne=(Y-this.eventData.lastSuccess)/(1440*60*1e3);F=F||ne>=1||ne<-1||j.getDate()!==Q.getDate()}else F=!0;if(!F)return this.processRequests();this.postEvent(Y,{"enabled.telemetry":!1},function(_e){_e||(x.eventData.lastSuccess=Y,x.eventData.tokenU=k)},p)}},o})(hr),Et=new mr,Fe=Et.postTurnstileEvent.bind(Et),Ue=new yr,wt=Ue.postMapLoadEvent.bind(Ue),Tt="mapbox-tiles",vr=500,Mr=50,Tr=1e3*60*7,Gr;function pa(){_.caches&&!Gr&&(Gr=_.caches.open(Tt))}var Aa;function ai(n,o){if(Aa===void 0)try{new Response(new ReadableStream),Aa=!0}catch(f){Aa=!1}Aa?o(n.body):n.blob().then(o)}function bi(n,o,f){if(pa(),!!Gr){var p={status:o.status,statusText:o.statusText,headers:new _.Headers};o.headers.forEach(function(k,F){return p.headers.set(F,k)});var x=gt(o.headers.get("Cache-Control")||"");if(!x["no-store"]){x["max-age"]&&p.headers.set("Expires",new Date(f+x["max-age"]*1e3).toUTCString());var A=new Date(p.headers.get("Expires")).getTime()-f;ADate.now()&&!f["no-cache"]}var _n=1/0;function an(n){_n++,_n>Mr&&(n.getActor().send("enforceCacheSizeLimit",vr),_n=0)}function Gi(n){pa(),Gr&&Gr.then(function(o){o.keys().then(function(f){for(var p=0;p=200&&f.status<300||f.status===0)&&f.response!==null){var x=f.response;if(n.type==="json")try{x=JSON.parse(f.response)}catch(A){return o(A)}o(null,x,f.getResponseHeader("Cache-Control"),f.getResponseHeader("Expires"))}else o(new Wr(f.statusText,f.status,n.url))},f.send(n.body),{cancel:function(){return f.abort()}}}var Le=function(n,o){if(!te(n.url)){if(_.fetch&&_.Request&&_.AbortController&&_.Request.prototype.hasOwnProperty("signal"))return se(n,o);if(nt()&&self.worker&&self.worker.actor){var f=!0;return self.worker.actor.send("getResource",n,o,void 0,f)}}return ue(n,o)},Ne=function(n,o){return Le(H(n,{type:"json"}),o)},rt=function(n,o){return Le(H(n,{type:"arrayBuffer"}),o)},Ye=function(n,o){return Le(H(n,{method:"POST"}),o)};function yt(n){var o=_.document.createElement("a");return o.href=n,o.protocol===_.document.location.protocol&&o.host===_.document.location.host}var Mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Rt(n,o,f,p){var x=new _.Image,A=_.URL;x.onload=function(){o(null,x),A.revokeObjectURL(x.src),x.onload=null,_.requestAnimationFrame(function(){x.src=Mt})},x.onerror=function(){return o(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var k=new _.Blob([new Uint8Array(n)],{type:"image/png"});x.cacheControl=f,x.expires=p,x.src=n.byteLength?A.createObjectURL(k):Mt}function tr(n,o){var f=new _.Blob([new Uint8Array(n)],{type:"image/png"});_.createImageBitmap(f).then(function(p){o(null,p)}).catch(function(p){o(new Error("Could not load image because of "+p.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Xt,Sr,Zr=function(){Xt=[],Sr=0};Zr();var Or=function(n,o){if(Pt.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Sr>=Je.MAX_PARALLEL_IMAGE_REQUESTS){var f={requestParameters:n,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return Xt.push(f),f}Sr++;var p=!1,x=function(){if(!p)for(p=!0,Sr--;Xt.length&&Sr0||this._oneTimeListeners&&this._oneTimeListeners[o]&&this._oneTimeListeners[o].length>0||this._eventedParent&&this._eventedParent.listens(o)},gr.prototype.setEventedParent=function(o,f){return this._eventedParent=o,this._eventedParentData=f,this};var ea=8,ga={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},nr={"*":{type:"source"}},wi=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Ca={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},oi={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fa={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},In={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Co={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},bs={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Za={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Kn=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],du={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Oi={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pl={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},cp={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Gc={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Zc={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},xv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},bv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pu={type:"array",value:"*"},ml={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},hp={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},ef={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Qf={type:"array",value:"*",minimum:1},Qi={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Go=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],yo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},yl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Zo={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},mu={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},vp={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},wv={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},tf={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Tv={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Av={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},lo={"*":{type:"string"}},jt={$version:ea,$root:ga,sources:nr,source:wi,source_vector:Ca,source_raster:oi,source_raster_dem:fa,source_geojson:In,source_video:Co,source_image:bs,layer:Za,layout:Kn,layout_background:du,layout_fill:Oi,layout_circle:pl,layout_heatmap:cp,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:Gc,layout_symbol:Zc,layout_raster:xv,layout_hillshade:bv,filter:pu,filter_operator:ml,geometry_type:hp,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:ef,expression:Qf,light:Qi,paint:Go,paint_fill:yo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:yl,paint_circle:Zo,paint_heatmap:mu,paint_symbol:vp,paint_raster:wv,paint_hillshade:tf,paint_background:Tv,transition:Av,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:lo},Ur=function(o,f,p,x){this.message=(o?o+": ":"")+p,x&&(this.identifier=x),f!=null&&f.__line__&&(this.line=f.__line__)};function dp(n){var o=n.key,f=n.value;return f?[new Ur(o,f,"constants have been deprecated as of v8")]:[]}function yu(n){for(var o=[],f=arguments.length-1;f-- >0;)o[f]=arguments[f+1];for(var p=0,x=o;p":n.itemType.kind==="value"?"array":"array<"+o+">"}else return n.kind}var As=[af,Er,ba,wa,Ts,fs,_l,go(Ma),xl];function cs(n,o){if(o.kind==="error")return null;if(n.kind==="array"){if(o.kind==="array"&&(o.N===0&&o.itemType.kind==="value"||!cs(n.itemType,o.itemType))&&(typeof n.N!="number"||n.N===o.N))return null}else{if(n.kind===o.kind)return null;if(n.kind==="value")for(var f=0,p=As;f255?255:j}function x(j){return j<0?0:j>1?1:j}function A(j){return j[j.length-1]==="%"?p(parseFloat(j)/100*255):p(parseInt(j))}function k(j){return j[j.length-1]==="%"?x(parseFloat(j)/100):x(parseFloat(j))}function F(j,Q,ne){return ne<0?ne+=1:ne>1&&(ne-=1),ne*6<1?j+(Q-j)*ne*6:ne*2<1?Q:ne*3<2?j+(Q-j)*(2/3-ne)*6:j}function Y(j){var Q=j.replace(/ /g,"").toLowerCase();if(Q in f)return f[Q].slice();if(Q[0]==="#"){if(Q.length===4){var ne=parseInt(Q.substr(1),16);return ne>=0&&ne<=4095?[(ne&3840)>>4|(ne&3840)>>8,ne&240|(ne&240)>>4,ne&15|(ne&15)<<4,1]:null}else if(Q.length===7){var ne=parseInt(Q.substr(1),16);return ne>=0&&ne<=16777215?[(ne&16711680)>>16,(ne&65280)>>8,ne&255,1]:null}return null}var _e=Q.indexOf("("),ve=Q.indexOf(")");if(_e!==-1&&ve+1===Q.length){var Ee=Q.substr(0,_e),qe=Q.substr(_e+1,ve-(_e+1)).split(","),ct=1;switch(Ee){case"rgba":if(qe.length!==4)return null;ct=k(qe.pop());case"rgb":return qe.length!==3?null:[A(qe[0]),A(qe[1]),A(qe[2]),ct];case"hsla":if(qe.length!==4)return null;ct=k(qe.pop());case"hsl":if(qe.length!==3)return null;var et=(parseFloat(qe[0])%360+360)%360/360,kt=k(qe[1]),_t=k(qe[2]),St=_t<=.5?_t*(kt+1):_t+kt-_t*kt,It=_t*2-St;return[p(F(It,St,et+1/3)*255),p(F(It,St,et)*255),p(F(It,St,et-1/3)*255),ct];default:return null}}return null}try{o.parseCSSColor=Y}catch(j){}}),$f=Im.parseCSSColor,ni=function(o,f,p,x){x===void 0&&(x=1),this.r=o,this.g=f,this.b=p,this.a=x};ni.parse=function(o){if(o){if(o instanceof ni)return o;if(typeof o=="string"){var f=$f(o);if(f)return new ni(f[0]/255*f[3],f[1]/255*f[3],f[2]/255*f[3],f[3])}}},ni.prototype.toString=function(){var o=this.toArray(),f=o[0],p=o[1],x=o[2],A=o[3];return"rgba("+Math.round(f)+","+Math.round(p)+","+Math.round(x)+","+A+")"},ni.prototype.toArray=function(){var o=this,f=o.r,p=o.g,x=o.b,A=o.a;return A===0?[0,0,0,0]:[f*255/A,p*255/A,x*255/A,A]},ni.black=new ni(0,0,0,1),ni.white=new ni(1,1,1,1),ni.transparent=new ni(0,0,0,0),ni.red=new ni(1,0,0,1);var ec=function(o,f,p){o?this.sensitivity=f?"variant":"case":this.sensitivity=f?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ec.prototype.compare=function(o,f){return this.collator.compare(o,f)},ec.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Mv=function(o,f,p,x,A){this.text=o,this.image=f,this.scale=p,this.fontStack=x,this.textColor=A},xn=function(o){this.sections=o};xn.fromString=function(o){return new xn([new Mv(o,null,null,null,null)])},xn.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(o){return o.text.length!==0||o.image&&o.image.name.length!==0})},xn.factory=function(o){return o instanceof xn?o:xn.fromString(o)},xn.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(o){return o.text}).join("")},xn.prototype.serialize=function(){for(var o=["format"],f=0,p=this.sections;f=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof f=="number"&&f>=0&&f<=255)){var x=typeof p=="number"?[n,o,f,p]:[n,o,f];return"Invalid rgba value ["+x.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof p=="undefined"||typeof p=="number"&&p>=0&&p<=1?null:"Invalid rgba value ["+[n,o,f,p].join(", ")+"]: 'a' must be between 0 and 1."}function nf(n){if(n===null)return!0;if(typeof n=="string")return!0;if(typeof n=="boolean")return!0;if(typeof n=="number")return!0;if(n instanceof ni)return!0;if(n instanceof ec)return!0;if(n instanceof xn)return!0;if(n instanceof Rn)return!0;if(Array.isArray(n)){for(var o=0,f=n;o2){var F=o[1];if(typeof F!="string"||!(F in tc)||F==="object")return f.error('The item type argument of "array" must be one of string, number, boolean',1);k=tc[F],p++}else k=Ma;var Y;if(o.length>3){if(o[2]!==null&&(typeof o[2]!="number"||o[2]<0||o[2]!==Math.floor(o[2])))return f.error('The length argument to "array" must be a positive integer literal',2);Y=o[2],p++}x=go(k,Y)}else x=tc[A];for(var j=[];p1)&&f.push(x)}}return f.concat(this.args.map(function(A){return A.serialize()}))};var Wo=function(o){this.type=fs,this.sections=o};Wo.parse=function(o,f){if(o.length<2)return f.error("Expected at least one argument.");var p=o[1];if(!Array.isArray(p)&&typeof p=="object")return f.error("First argument must be an image or text section.");for(var x=[],A=!1,k=1;k<=o.length-1;++k){var F=o[k];if(A&&typeof F=="object"&&!Array.isArray(F)){A=!1;var Y=null;if(F["font-scale"]&&(Y=f.parse(F["font-scale"],1,Er),!Y))return null;var j=null;if(F["text-font"]&&(j=f.parse(F["text-font"],1,go(ba)),!j))return null;var Q=null;if(F["text-color"]&&(Q=f.parse(F["text-color"],1,Ts),!Q))return null;var ne=x[x.length-1];ne.scale=Y,ne.font=j,ne.textColor=Q}else{var _e=f.parse(o[k],1,Ma);if(!_e)return null;var ve=_e.type.kind;if(ve!=="string"&&ve!=="value"&&ve!=="null"&&ve!=="resolvedImage")return f.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");A=!0,x.push({content:_e,scale:null,font:null,textColor:null})}}return new Wo(x)},Wo.prototype.evaluate=function(o){var f=function(p){var x=p.content.evaluate(o);return sn(x)===xl?new Mv("",x,null,null,null):new Mv(Eo(x),null,p.scale?p.scale.evaluate(o):null,p.font?p.font.evaluate(o).join(","):null,p.textColor?p.textColor.evaluate(o):null)};return new xn(this.sections.map(f))},Wo.prototype.eachChild=function(o){for(var f=0,p=this.sections;f-1),p},js.prototype.eachChild=function(o){o(this.input)},js.prototype.outputDefined=function(){return!1},js.prototype.serialize=function(){return["image",this.input.serialize()]};var Rm={"to-boolean":wa,"to-color":Ts,"to-number":Er,"to-string":ba},Xo=function(o,f){this.type=o,this.args=f};Xo.parse=function(o,f){if(o.length<2)return f.error("Expected at least one argument.");var p=o[0];if((p==="to-boolean"||p==="to-string")&&o.length!==2)return f.error("Expected one argument.");for(var x=Rm[p],A=[],k=1;k4?p="Invalid rbga value "+JSON.stringify(f)+": expected an array containing either three or four numeric values.":p=pp(f[0],f[1],f[2],f[3]),!p))return new ni(f[0]/255,f[1]/255,f[2]/255,f[3])}throw new vn(p||"Could not parse color from value '"+(typeof f=="string"?f:String(JSON.stringify(f)))+"'")}else if(this.type.kind==="number"){for(var Y=null,j=0,Q=this.args;j=o[2]||n[1]<=o[1]||n[3]>=o[3])}function Om(n,o){var f=Nm(n[0]),p=Bm(n[1]),x=Math.pow(2,o.z);return[Math.round(f*x*wl),Math.round(p*x*wl)]}function Um(n,o,f){var p=n[0]-o[0],x=n[1]-o[1],A=n[0]-f[0],k=n[1]-f[1];return p*k-A*x===0&&p*A<=0&&x*k<=0}function Vm(n,o,f){return o[1]>n[1]!=f[1]>n[1]&&n[0]<(f[0]-o[0])*(n[1]-o[1])/(f[1]-o[1])+o[0]}function kv(n,o){for(var f=!1,p=0,x=o.length;p0&&ne<0||Q<0&&ne>0}function mp(n,o,f,p){var x=[o[0]-n[0],o[1]-n[1]],A=[p[0]-f[0],p[1]-f[1]];return Gm(A,x)===0?!1:!!(Cv(n,o,f,p)&&Cv(f,p,n,o))}function yp(n,o,f){for(var p=0,x=f;pf[2]){var x=p*.5,A=n[0]-f[0]>x?-p:f[0]-n[0]>x?p:0;A===0&&(A=n[0]-f[2]>x?-p:f[2]-n[0]>x?p:0),n[0]+=A}Sv(o,n)}function Ym(n){n[0]=n[1]=1/0,n[2]=n[3]=-1/0}function _p(n,o,f,p){for(var x=Math.pow(2,p.z)*wl,A=[p.x*wl,p.y*wl],k=[],F=0,Y=n;F=0)return!1;var f=!0;return n.eachChild(function(p){f&&!jc(p,o)&&(f=!1)}),f}var Al=function(o,f){this.type=f.type,this.name=o,this.boundExpression=f};Al.parse=function(o,f){if(o.length!==2||typeof o[1]!="string")return f.error("'var' expression requires exactly one string literal argument.");var p=o[1];return f.scope.has(p)?new Al(p,f.scope.get(p)):f.error('Unknown variable "'+p+'". Make sure "'+p+'" has been bound in an enclosing "let" expression before using it.',1)},Al.prototype.evaluate=function(o){return this.boundExpression.evaluate(o)},Al.prototype.eachChild=function(){},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["var",this.name]};var Ml=function(o,f,p,x,A){f===void 0&&(f=[]),x===void 0&&(x=new rf),A===void 0&&(A=[]),this.registry=o,this.path=f,this.key=f.map(function(k){return"["+k+"]"}).join(""),this.scope=x,this.errors=A,this.expectedType=p};Ml.prototype.parse=function(o,f,p,x,A){return A===void 0&&(A={}),f?this.concat(f,p,x)._parse(o,A):this._parse(o,A)},Ml.prototype._parse=function(o,f){(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number")&&(o=["literal",o]);function p(Q,ne,_e){return _e==="assert"?new ln(ne,[Q]):_e==="coerce"?new Xo(ne,[Q]):Q}if(Array.isArray(o)){if(o.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var x=o[0];if(typeof x!="string")return this.error("Expression name must be a string, but found "+typeof x+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var A=this.registry[x];if(A){var k=A.parse(o,this);if(!k)return null;if(this.expectedType){var F=this.expectedType,Y=k.type;if((F.kind==="string"||F.kind==="number"||F.kind==="boolean"||F.kind==="object"||F.kind==="array")&&Y.kind==="value")k=p(k,F,f.typeAnnotation||"assert");else if((F.kind==="color"||F.kind==="formatted"||F.kind==="resolvedImage")&&(Y.kind==="value"||Y.kind==="string"))k=p(k,F,f.typeAnnotation||"coerce");else if(this.checkSubtype(F,Y))return null}if(!(k instanceof Yo)&&k.type.kind!=="resolvedImage"&&Dv(k)){var j=new Js;try{k=new Yo(k.type,k.evaluate(j))}catch(Q){return this.error(Q.message),null}}return k}return this.error('Unknown expression "'+x+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof o=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof o=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof o+" instead.")},Ml.prototype.concat=function(o,f,p){var x=typeof o=="number"?this.path.concat(o):this.path,A=p?this.scope.concat(p):this.scope;return new Ml(this.registry,x,f||null,A,this.errors)},Ml.prototype.error=function(o){for(var f=[],p=arguments.length-1;p-- >0;)f[p]=arguments[p+1];var x=""+this.key+f.map(function(A){return"["+A+"]"}).join("");this.errors.push(new ws(x,o))},Ml.prototype.checkSubtype=function(o,f){var p=cs(o,f);return p&&this.error(p),p};function Dv(n){if(n instanceof Al)return Dv(n.boundExpression);if(n instanceof Fn&&n.name==="error")return!1;if(n instanceof bl)return!1;if(n instanceof hs)return!1;var o=n instanceof Xo||n instanceof ln,f=!0;return n.eachChild(function(p){o?f=f&&Dv(p):f=f&&p instanceof Yo}),f?Xc(n)&&jc(n,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Jc(n,o){for(var f=n.length-1,p=0,x=f,A=0,k,F;p<=x;)if(A=Math.floor((p+x)/2),k=n[A],F=n[A+1],k<=o){if(A===f||oo)x=A-1;else throw new vn("Input is not a number.");return 0}var Ms=function(o,f,p){this.type=o,this.input=f,this.labels=[],this.outputs=[];for(var x=0,A=p;x=F)return f.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',j);var ne=f.parse(Y,Q,A);if(!ne)return null;A=A||ne.type,x.push([F,ne])}return new Ms(A,p,x)},Ms.prototype.evaluate=function(o){var f=this.labels,p=this.outputs;if(f.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=f[0])return p[0].evaluate(o);var A=f.length;if(x>=f[A-1])return p[A-1].evaluate(o);var k=Jc(f,x);return p[k].evaluate(o)},Ms.prototype.eachChild=function(o){o(this.input);for(var f=0,p=this.outputs;f0&&o.push(this.labels[f]),o.push(this.outputs[f].serialize());return o};function dn(n,o,f){return n*(1-f)+o*f}function Xm(n,o,f){return new ni(dn(n.r,o.r,f),dn(n.g,o.g,f),dn(n.b,o.b,f),dn(n.a,o.a,f))}function jm(n,o,f){return n.map(function(p,x){return dn(p,o[x],f)})}var Sl=Object.freeze({__proto__:null,number:dn,color:Xm,array:jm}),of=.95047,vs=1,wp=1.08883,Tp=4/29,sf=6/29,Ap=3*sf*sf,Mp=sf*sf*sf,Jm=Math.PI/180,Km=180/Math.PI;function Pv(n){return n>Mp?Math.pow(n,1/3):n/Ap+Tp}function zv(n){return n>sf?n*n*n:Ap*(n-Tp)}function Iv(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function rc(n){return n/=255,n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Kc(n){var o=rc(n.r),f=rc(n.g),p=rc(n.b),x=Pv((.4124564*o+.3575761*f+.1804375*p)/of),A=Pv((.2126729*o+.7151522*f+.072175*p)/vs),k=Pv((.0193339*o+.119192*f+.9503041*p)/wp);return{l:116*A-16,a:500*(x-A),b:200*(A-k),alpha:n.a}}function Sp(n){var o=(n.l+16)/116,f=isNaN(n.a)?o:o+n.a/500,p=isNaN(n.b)?o:o-n.b/200;return o=vs*zv(o),f=of*zv(f),p=wp*zv(p),new ni(Iv(3.2404542*f-1.5371385*o-.4985314*p),Iv(-.969266*f+1.8760108*o+.041556*p),Iv(.0556434*f-.2040259*o+1.0572252*p),n.alpha)}function Ri(n,o,f){return{l:dn(n.l,o.l,f),a:dn(n.a,o.a,f),b:dn(n.b,o.b,f),alpha:dn(n.alpha,o.alpha,f)}}function Qm(n){var o=Kc(n),f=o.l,p=o.a,x=o.b,A=Math.atan2(x,p)*Km;return{h:A<0?A+360:A,c:Math.sqrt(p*p+x*x),l:f,alpha:n.a}}function Qc(n){var o=n.h*Jm,f=n.c,p=n.l;return Sp({l:p,a:Math.cos(o)*f,b:Math.sin(o)*f,alpha:n.alpha})}function Rv(n,o,f){var p=o-n;return n+f*(p>180||p<-180?p-360*Math.round(p/360):p)}function kp(n,o,f){return{h:Rv(n.h,o.h,f),c:dn(n.c,o.c,f),l:dn(n.l,o.l,f),alpha:dn(n.alpha,o.alpha,f)}}var lf={forward:Kc,reverse:Sp,interpolate:Ri},bu={forward:Qm,reverse:Qc,interpolate:kp},Fv=Object.freeze({__proto__:null,lab:lf,hcl:bu}),bn=function(o,f,p,x,A){this.type=o,this.operator=f,this.interpolation=p,this.input=x,this.labels=[],this.outputs=[];for(var k=0,F=A;k1}))return f.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);x={name:"cubic-bezier",controlPoints:Y}}else return f.error("Unknown interpolation type "+String(x[0]),1,0);if(o.length-1<4)return f.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if((o.length-1)%2!==0)return f.error("Expected an even number of arguments.");if(A=f.parse(A,2,Er),!A)return null;var j=[],Q=null;p==="interpolate-hcl"||p==="interpolate-lab"?Q=Ts:f.expectedType&&f.expectedType.kind!=="value"&&(Q=f.expectedType);for(var ne=0;ne=_e)return f.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Ee);var ct=f.parse(ve,qe,Q);if(!ct)return null;Q=Q||ct.type,j.push([_e,ct])}return Q.kind!=="number"&&Q.kind!=="color"&&!(Q.kind==="array"&&Q.itemType.kind==="number"&&typeof Q.N=="number")?f.error("Type "+ki(Q)+" is not interpolatable."):new bn(Q,p,x,A,j)},bn.prototype.evaluate=function(o){var f=this.labels,p=this.outputs;if(f.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=f[0])return p[0].evaluate(o);var A=f.length;if(x>=f[A-1])return p[A-1].evaluate(o);var k=Jc(f,x),F=f[k],Y=f[k+1],j=bn.interpolationFactor(this.interpolation,x,F,Y),Q=p[k].evaluate(o),ne=p[k+1].evaluate(o);return this.operator==="interpolate"?Sl[this.type.kind.toLowerCase()](Q,ne,j):this.operator==="interpolate-hcl"?bu.reverse(bu.interpolate(bu.forward(Q),bu.forward(ne),j)):lf.reverse(lf.interpolate(lf.forward(Q),lf.forward(ne),j))},bn.prototype.eachChild=function(o){o(this.input);for(var f=0,p=this.outputs;f=p.length)throw new vn("Array index out of bounds: "+f+" > "+(p.length-1)+".");if(f!==Math.floor(f))throw new vn("Array index must be an integer, but found "+f+" instead.");return p[f]},Cl.prototype.eachChild=function(o){o(this.index),o(this.input)},Cl.prototype.outputDefined=function(){return!1},Cl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var El=function(o,f){this.type=wa,this.needle=o,this.haystack=f};El.parse=function(o,f){if(o.length!==3)return f.error("Expected 2 arguments, but found "+(o.length-1)+" instead.");var p=f.parse(o[1],1,Ma),x=f.parse(o[2],2,Ma);return!p||!x?null:Yc(p.type,[wa,ba,Er,af,Ma])?new El(p,x):f.error("Expected first argument to be of type boolean, string, number or null, but found "+ki(p.type)+" instead")},El.prototype.evaluate=function(o){var f=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!p)return!1;if(!_u(f,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+ki(sn(f))+" instead.");if(!_u(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+ki(sn(p))+" instead.");return p.indexOf(f)>=0},El.prototype.eachChild=function(o){o(this.needle),o(this.haystack)},El.prototype.outputDefined=function(){return!0},El.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Qs=function(o,f,p){this.type=Er,this.needle=o,this.haystack=f,this.fromIndex=p};Qs.parse=function(o,f){if(o.length<=2||o.length>=5)return f.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=f.parse(o[1],1,Ma),x=f.parse(o[2],2,Ma);if(!p||!x)return null;if(!Yc(p.type,[wa,ba,Er,af,Ma]))return f.error("Expected first argument to be of type boolean, string, number or null, but found "+ki(p.type)+" instead");if(o.length===4){var A=f.parse(o[3],3,Er);return A?new Qs(p,x,A):null}else return new Qs(p,x)},Qs.prototype.evaluate=function(o){var f=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!_u(f,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+ki(sn(f))+" instead.");if(!_u(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+ki(sn(p))+" instead.");if(this.fromIndex){var x=this.fromIndex.evaluate(o);return p.indexOf(f,x)}return p.indexOf(f)},Qs.prototype.eachChild=function(o){o(this.needle),o(this.haystack),this.fromIndex&&o(this.fromIndex)},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var o=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),o]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Ss=function(o,f,p,x,A,k){this.inputType=o,this.type=f,this.input=p,this.cases=x,this.outputs=A,this.otherwise=k};Ss.parse=function(o,f){if(o.length<5)return f.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if(o.length%2!==1)return f.error("Expected an even number of arguments.");var p,x;f.expectedType&&f.expectedType.kind!=="value"&&(x=f.expectedType);for(var A={},k=[],F=2;FNumber.MAX_SAFE_INTEGER)return Q.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof ve=="number"&&Math.floor(ve)!==ve)return Q.error("Numeric branch labels must be integer values.");if(!p)p=sn(ve);else if(Q.checkSubtype(p,sn(ve)))return null;if(typeof A[String(ve)]!="undefined")return Q.error("Branch labels must be unique.");A[String(ve)]=k.length}var Ee=f.parse(j,F,x);if(!Ee)return null;x=x||Ee.type,k.push(Ee)}var qe=f.parse(o[1],1,Ma);if(!qe)return null;var ct=f.parse(o[o.length-1],o.length-1,x);return!ct||qe.type.kind!=="value"&&f.concat(1).checkSubtype(p,qe.type)?null:new Ss(p,x,qe,A,k,ct)},Ss.prototype.evaluate=function(o){var f=this.input.evaluate(o),p=sn(f)===this.inputType&&this.outputs[this.cases[f]]||this.otherwise;return p.evaluate(o)},Ss.prototype.eachChild=function(o){o(this.input),this.outputs.forEach(o),o(this.otherwise)},Ss.prototype.outputDefined=function(){return this.outputs.every(function(o){return o.outputDefined()})&&this.otherwise.outputDefined()},Ss.prototype.serialize=function(){for(var o=this,f=["match",this.input.serialize()],p=Object.keys(this.cases).sort(),x=[],A={},k=0,F=p;k=5)return f.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=f.parse(o[1],1,Ma),x=f.parse(o[2],2,Er);if(!p||!x)return null;if(!Yc(p.type,[go(Ma),ba,Ma]))return f.error("Expected first argument to be of type array or string, but found "+ki(p.type)+" instead");if(o.length===4){var A=f.parse(o[3],3,Er);return A?new Ll(p.type,p,x,A):null}else return new Ll(p.type,p,x)},Ll.prototype.evaluate=function(o){var f=this.input.evaluate(o),p=this.beginIndex.evaluate(o);if(!_u(f,["string","array"]))throw new vn("Expected first argument to be of type array or string, but found "+ki(sn(f))+" instead.");if(this.endIndex){var x=this.endIndex.evaluate(o);return f.slice(p,x)}return f.slice(p)},Ll.prototype.eachChild=function(o){o(this.input),o(this.beginIndex),this.endIndex&&o(this.endIndex)},Ll.prototype.outputDefined=function(){return!1},Ll.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var o=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),o]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Cp(n,o){return n==="=="||n==="!="?o.kind==="boolean"||o.kind==="string"||o.kind==="number"||o.kind==="null"||o.kind==="value":o.kind==="string"||o.kind==="number"||o.kind==="value"}function $m(n,o,f){return o===f}function ey(n,o,f){return o!==f}function ty(n,o,f){return of}function Lp(n,o,f){return o<=f}function qv(n,o,f){return o>=f}function Nv(n,o,f,p){return p.compare(o,f)===0}function ic(n,o,f,p){return!Nv(n,o,f,p)}function $c(n,o,f,p){return p.compare(o,f)<0}function Dp(n,o,f,p){return p.compare(o,f)>0}function Bv(n,o,f,p){return p.compare(o,f)<=0}function Pp(n,o,f,p){return p.compare(o,f)>=0}function uf(n,o,f){var p=n!=="=="&&n!=="!=";return(function(){function x(A,k,F){this.type=wa,this.lhs=A,this.rhs=k,this.collator=F,this.hasUntypedArgument=A.type.kind==="value"||k.type.kind==="value"}return x.parse=function(k,F){if(k.length!==3&&k.length!==4)return F.error("Expected two or three arguments.");var Y=k[0],j=F.parse(k[1],1,Ma);if(!j)return null;if(!Cp(Y,j.type))return F.concat(1).error('"'+Y+`" comparisons are not supported for type '`+ki(j.type)+"'.");var Q=F.parse(k[2],2,Ma);if(!Q)return null;if(!Cp(Y,Q.type))return F.concat(2).error('"'+Y+`" comparisons are not supported for type '`+ki(Q.type)+"'.");if(j.type.kind!==Q.type.kind&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot compare types '"+ki(j.type)+"' and '"+ki(Q.type)+"'.");p&&(j.type.kind==="value"&&Q.type.kind!=="value"?j=new ln(Q.type,[j]):j.type.kind!=="value"&&Q.type.kind==="value"&&(Q=new ln(j.type,[Q])));var ne=null;if(k.length===4){if(j.type.kind!=="string"&&Q.type.kind!=="string"&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot use collator to compare non-string types.");if(ne=F.parse(k[3],3,gu),!ne)return null}return new x(j,Q,ne)},x.prototype.evaluate=function(k){var F=this.lhs.evaluate(k),Y=this.rhs.evaluate(k);if(p&&this.hasUntypedArgument){var j=sn(F),Q=sn(Y);if(j.kind!==Q.kind||!(j.kind==="string"||j.kind==="number"))throw new vn('Expected arguments for "'+n+'" to be (string, string) or (number, number), but found ('+j.kind+", "+Q.kind+") instead.")}if(this.collator&&!p&&this.hasUntypedArgument){var ne=sn(F),_e=sn(Y);if(ne.kind!=="string"||_e.kind!=="string")return o(k,F,Y)}return this.collator?f(k,F,Y,this.collator.evaluate(k)):o(k,F,Y)},x.prototype.eachChild=function(k){k(this.lhs),k(this.rhs),this.collator&&k(this.collator)},x.prototype.outputDefined=function(){return!0},x.prototype.serialize=function(){var k=[n];return this.eachChild(function(F){k.push(F.serialize())}),k},x})()}var ry=uf("==",$m,Nv),zp=uf("!=",ey,ic),Ip=uf("<",ty,$c),Rp=uf(">",Ep,Dp),Ov=uf("<=",Lp,Bv),Uv=uf(">=",qv,Pp),wu=function(o,f,p,x,A){this.type=ba,this.number=o,this.locale=f,this.currency=p,this.minFractionDigits=x,this.maxFractionDigits=A};wu.parse=function(o,f){if(o.length!==3)return f.error("Expected two arguments.");var p=f.parse(o[1],1,Er);if(!p)return null;var x=o[2];if(typeof x!="object"||Array.isArray(x))return f.error("NumberFormat options argument must be an object.");var A=null;if(x.locale&&(A=f.parse(x.locale,1,ba),!A))return null;var k=null;if(x.currency&&(k=f.parse(x.currency,1,ba),!k))return null;var F=null;if(x["min-fraction-digits"]&&(F=f.parse(x["min-fraction-digits"],1,Er),!F))return null;var Y=null;return x["max-fraction-digits"]&&(Y=f.parse(x["max-fraction-digits"],1,Er),!Y)?null:new wu(p,A,k,F,Y)},wu.prototype.evaluate=function(o){return new Intl.NumberFormat(this.locale?this.locale.evaluate(o):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(o):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(o):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(o):void 0}).format(this.number.evaluate(o))},wu.prototype.eachChild=function(o){o(this.number),this.locale&&o(this.locale),this.currency&&o(this.currency),this.minFractionDigits&&o(this.minFractionDigits),this.maxFractionDigits&&o(this.maxFractionDigits)},wu.prototype.outputDefined=function(){return!1},wu.prototype.serialize=function(){var o={};return this.locale&&(o.locale=this.locale.serialize()),this.currency&&(o.currency=this.currency.serialize()),this.minFractionDigits&&(o["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(o["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),o]};var Dl=function(o){this.type=Er,this.input=o};Dl.parse=function(o,f){if(o.length!==2)return f.error("Expected 1 argument, but found "+(o.length-1)+" instead.");var p=f.parse(o[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?f.error("Expected argument of type string or array, but found "+ki(p.type)+" instead."):new Dl(p):null},Dl.prototype.evaluate=function(o){var f=this.input.evaluate(o);if(typeof f=="string")return f.length;if(Array.isArray(f))return f.length;throw new vn("Expected value to be of type string or array, but found "+ki(sn(f))+" instead.")},Dl.prototype.eachChild=function(o){o(this.input)},Dl.prototype.outputDefined=function(){return!1},Dl.prototype.serialize=function(){var o=["length"];return this.eachChild(function(f){o.push(f.serialize())}),o};var nc={"==":ry,"!=":zp,">":Rp,"<":Ip,">=":Uv,"<=":Ov,array:ln,at:Cl,boolean:ln,case:ks,coalesce:Ks,collator:bl,format:Wo,image:js,in:El,"index-of":Qs,interpolate:bn,"interpolate-hcl":bn,"interpolate-lab":bn,length:Dl,let:kl,literal:Yo,match:Ss,number:ln,"number-format":wu,object:ln,slice:Ll,step:Ms,string:ln,"to-boolean":Xo,"to-color":Xo,"to-number":Xo,"to-string":Xo,var:Al,within:hs};function Vv(n,o){var f=o[0],p=o[1],x=o[2],A=o[3];f=f.evaluate(n),p=p.evaluate(n),x=x.evaluate(n);var k=A?A.evaluate(n):1,F=pp(f,p,x,k);if(F)throw new vn(F);return new ni(f/255*k,p/255*k,x/255*k,k)}function eh(n,o){return n in o}function th(n,o){var f=o[n];return typeof f=="undefined"?null:f}function rh(n,o,f,p){for(;f<=p;){var x=f+p>>1;if(o[x]===n)return!0;o[x]>n?p=x-1:f=x+1}return!1}function Pl(n){return{type:n}}Fn.register(nc,{error:[Xs,[ba],function(n,o){var f=o[0];throw new vn(f.evaluate(n))}],typeof:[ba,[Ma],function(n,o){var f=o[0];return ki(sn(f.evaluate(n)))}],"to-rgba":[go(Er,4),[Ts],function(n,o){var f=o[0];return f.evaluate(n).toArray()}],rgb:[Ts,[Er,Er,Er],Vv],rgba:[Ts,[Er,Er,Er,Er],Vv],has:{type:wa,overloads:[[[ba],function(n,o){var f=o[0];return eh(f.evaluate(n),n.properties())}],[[ba,_l],function(n,o){var f=o[0],p=o[1];return eh(f.evaluate(n),p.evaluate(n))}]]},get:{type:Ma,overloads:[[[ba],function(n,o){var f=o[0];return th(f.evaluate(n),n.properties())}],[[ba,_l],function(n,o){var f=o[0],p=o[1];return th(f.evaluate(n),p.evaluate(n))}]]},"feature-state":[Ma,[ba],function(n,o){var f=o[0];return th(f.evaluate(n),n.featureState||{})}],properties:[_l,[],function(n){return n.properties()}],"geometry-type":[ba,[],function(n){return n.geometryType()}],id:[Ma,[],function(n){return n.id()}],zoom:[Er,[],function(n){return n.globals.zoom}],"heatmap-density":[Er,[],function(n){return n.globals.heatmapDensity||0}],"line-progress":[Er,[],function(n){return n.globals.lineProgress||0}],accumulated:[Ma,[],function(n){return n.globals.accumulated===void 0?null:n.globals.accumulated}],"+":[Er,Pl(Er),function(n,o){for(var f=0,p=0,x=o;p":[wa,[ba,Ma],function(n,o){var f=o[0],p=o[1],x=n.properties()[f.value],A=p.value;return typeof x==typeof A&&x>A}],"filter-id->":[wa,[Ma],function(n,o){var f=o[0],p=n.id(),x=f.value;return typeof p==typeof x&&p>x}],"filter-<=":[wa,[ba,Ma],function(n,o){var f=o[0],p=o[1],x=n.properties()[f.value],A=p.value;return typeof x==typeof A&&x<=A}],"filter-id-<=":[wa,[Ma],function(n,o){var f=o[0],p=n.id(),x=f.value;return typeof p==typeof x&&p<=x}],"filter->=":[wa,[ba,Ma],function(n,o){var f=o[0],p=o[1],x=n.properties()[f.value],A=p.value;return typeof x==typeof A&&x>=A}],"filter-id->=":[wa,[Ma],function(n,o){var f=o[0],p=n.id(),x=f.value;return typeof p==typeof x&&p>=x}],"filter-has":[wa,[Ma],function(n,o){var f=o[0];return f.value in n.properties()}],"filter-has-id":[wa,[],function(n){return n.id()!==null&&n.id()!==void 0}],"filter-type-in":[wa,[go(ba)],function(n,o){var f=o[0];return f.value.indexOf(n.geometryType())>=0}],"filter-id-in":[wa,[go(Ma)],function(n,o){var f=o[0];return f.value.indexOf(n.id())>=0}],"filter-in-small":[wa,[ba,go(Ma)],function(n,o){var f=o[0],p=o[1];return p.value.indexOf(n.properties()[f.value])>=0}],"filter-in-large":[wa,[ba,go(Ma)],function(n,o){var f=o[0],p=o[1];return rh(n.properties()[f.value],p.value,0,p.value.length-1)}],all:{type:wa,overloads:[[[wa,wa],function(n,o){var f=o[0],p=o[1];return f.evaluate(n)&&p.evaluate(n)}],[Pl(wa),function(n,o){for(var f=0,p=o;f-1}function ih(n){return!!n.expression&&n.expression.interpolated}function vi(n){return n instanceof Number?"number":n instanceof String?"string":n instanceof Boolean?"boolean":Array.isArray(n)?"array":n===null?"null":typeof n}function oc(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function qp(n){return n}function Np(n,o){var f=o.type==="color",p=n.stops&&typeof n.stops[0][0]=="object",x=p||n.property!==void 0,A=p||!x,k=n.type||(ih(o)?"exponential":"interval");if(f&&(n=yu({},n),n.stops&&(n.stops=n.stops.map(function(fr){return[fr[0],ni.parse(fr[1])]})),n.default?n.default=ni.parse(n.default):n.default=ni.parse(o.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!Fv[n.colorSpace])throw new Error("Unknown color space: "+n.colorSpace);var F,Y,j;if(k==="exponential")F=Hv;else if(k==="interval")F=Op;else if(k==="categorical"){F=Bp,Y=Object.create(null);for(var Q=0,ne=n.stops;Q=n.stops[p-1][0])return n.stops[p-1][1];var x=Jc(n.stops.map(function(A){return A[0]}),f);return n.stops[x][1]}function Hv(n,o,f){var p=n.base!==void 0?n.base:1;if(vi(f)!=="number")return zl(n.default,o.default);var x=n.stops.length;if(x===1||f<=n.stops[0][0])return n.stops[0][1];if(f>=n.stops[x-1][0])return n.stops[x-1][1];var A=Jc(n.stops.map(function(ne){return ne[0]}),f),k=ay(f,p,n.stops[A][0],n.stops[A+1][0]),F=n.stops[A][1],Y=n.stops[A+1][1],j=Sl[o.type]||qp;if(n.colorSpace&&n.colorSpace!=="rgb"){var Q=Fv[n.colorSpace];j=function(ne,_e){return Q.reverse(Q.interpolate(Q.forward(ne),Q.forward(_e),k))}}return typeof F.evaluate=="function"?{evaluate:function(){for(var _e=[],ve=arguments.length;ve--;)_e[ve]=arguments[ve];var Ee=F.evaluate.apply(void 0,_e),qe=Y.evaluate.apply(void 0,_e);if(!(Ee===void 0||qe===void 0))return j(Ee,qe,k)}}:j(F,Y,k)}function Up(n,o,f){return o.type==="color"?f=ni.parse(f):o.type==="formatted"?f=xn.fromString(f.toString()):o.type==="resolvedImage"?f=Rn.fromString(f.toString()):vi(f)!==o.type&&(o.type!=="enum"||!o.values[f])&&(f=void 0),zl(f,n.default,o.default)}function ay(n,o,f,p){var x=p-f,A=n-f;return x===0?0:o===1?A/x:(Math.pow(o,A)-1)/(Math.pow(o,x)-1)}var Il=function(o,f){this.expression=o,this._warningHistory={},this._evaluator=new Js,this._defaultValue=f?ny(f):null,this._enumValues=f&&f.type==="enum"?f.values:null};Il.prototype.evaluateWithoutErrorHandling=function(o,f,p,x,A,k){return this._evaluator.globals=o,this._evaluator.feature=f,this._evaluator.featureState=p,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k,this.expression.evaluate(this._evaluator)},Il.prototype.evaluate=function(o,f,p,x,A,k){this._evaluator.globals=o,this._evaluator.feature=f||null,this._evaluator.featureState=p||null,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k||null;try{var F=this.expression.evaluate(this._evaluator);if(F==null||typeof F=="number"&&F!==F)return this._defaultValue;if(this._enumValues&&!(F in this._enumValues))throw new vn("Expected value to be one of "+Object.keys(this._enumValues).map(function(Y){return JSON.stringify(Y)}).join(", ")+", but found "+JSON.stringify(F)+" instead.");return F}catch(Y){return this._warningHistory[Y.message]||(this._warningHistory[Y.message]=!0,typeof console!="undefined"&&console.warn(Y.message)),this._defaultValue}};function Au(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in nc}function sc(n,o){var f=new Ml(nc,[],o?Gv(o):void 0),p=f.parse(n,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?ah(new Il(p,o)):Tu(f.errors)}var Cs=function(o,f){this.kind=o,this._styleExpression=f,this.isStateDependent=o!=="constant"&&!Tl(f.expression)};Cs.prototype.evaluateWithoutErrorHandling=function(o,f,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,f,p,x,A,k)},Cs.prototype.evaluate=function(o,f,p,x,A,k){return this._styleExpression.evaluate(o,f,p,x,A,k)};var Es=function(o,f,p,x){this.kind=o,this.zoomStops=p,this._styleExpression=f,this.isStateDependent=o!=="camera"&&!Tl(f.expression),this.interpolationType=x};Es.prototype.evaluateWithoutErrorHandling=function(o,f,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,f,p,x,A,k)},Es.prototype.evaluate=function(o,f,p,x,A,k){return this._styleExpression.evaluate(o,f,p,x,A,k)},Es.prototype.interpolationFactor=function(o,f,p){return this.interpolationType?bn.interpolationFactor(this.interpolationType,o,f,p):0};function jo(n,o){if(n=sc(n,o),n.result==="error")return n;var f=n.value.expression,p=Xc(f);if(!p&&!ff(o))return Tu([new ws("","data expressions not supported")]);var x=jc(f,["zoom"]);if(!x&&!Fp(o))return Tu([new ws("","zoom expressions not supported")]);var A=hf(f);if(!A&&!x)return Tu([new ws("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(A instanceof ws)return Tu([A]);if(A instanceof bn&&!ih(o))return Tu([new ws("",'"interpolate" expressions cannot be used with this property')]);if(!A)return ah(p?new Cs("constant",n.value):new Cs("source",n.value));var k=A instanceof bn?A.interpolation:void 0;return ah(p?new Es("camera",n.value,A.labels,k):new Es("composite",n.value,A.labels,k))}var cf=function(o,f){this._parameters=o,this._specification=f,yu(this,Np(this._parameters,this._specification))};cf.deserialize=function(o){return new cf(o._parameters,o._specification)},cf.serialize=function(o){return{_parameters:o._parameters,_specification:o._specification}};function iy(n,o){if(oc(n))return new cf(n,o);if(Au(n)){var f=jo(n,o);if(f.result==="error")throw new Error(f.value.map(function(x){return x.key+": "+x.message}).join(", "));return f.value}else{var p=n;return typeof n=="string"&&o.type==="color"&&(p=ni.parse(n)),{kind:"constant",evaluate:function(){return p}}}}function hf(n){var o=null;if(n instanceof kl)o=hf(n.result);else if(n instanceof Ks)for(var f=0,p=n.args;fp.maximum?[new Ur(o,f,f+" is greater than the maximum value "+p.maximum)]:[]}function nh(n){var o=n.valueSpec,f=on(n.value.type),p,x={},A,k,F=f!=="categorical"&&n.value.property===void 0,Y=!F,j=vi(n.value.stops)==="array"&&vi(n.value.stops[0])==="array"&&vi(n.value.stops[0][0])==="object",Q=ds({key:n.key,value:n.value,valueSpec:n.styleSpec.function,style:n.style,styleSpec:n.styleSpec,objectElementValidators:{stops:ne,default:Ee}});return f==="identity"&&F&&Q.push(new Ur(n.key,n.value,'missing required property "property"')),f!=="identity"&&!n.value.stops&&Q.push(new Ur(n.key,n.value,'missing required property "stops"')),f==="exponential"&&n.valueSpec.expression&&!ih(n.valueSpec)&&Q.push(new Ur(n.key,n.value,"exponential functions not supported")),n.styleSpec.$version>=8&&(Y&&!ff(n.valueSpec)?Q.push(new Ur(n.key,n.value,"property functions not supported")):F&&!Fp(n.valueSpec)&&Q.push(new Ur(n.key,n.value,"zoom functions not supported"))),(f==="categorical"||j)&&n.value.property===void 0&&Q.push(new Ur(n.key,n.value,'"property" property is required')),Q;function ne(qe){if(f==="identity")return[new Ur(qe.key,qe.value,'identity function may not have a "stops" property')];var ct=[],et=qe.value;return ct=ct.concat(Zv({key:qe.key,value:et,valueSpec:qe.valueSpec,style:qe.style,styleSpec:qe.styleSpec,arrayElementValidator:_e})),vi(et)==="array"&&et.length===0&&ct.push(new Ur(qe.key,et,"array must have at least one stop")),ct}function _e(qe){var ct=[],et=qe.value,kt=qe.key;if(vi(et)!=="array")return[new Ur(kt,et,"array expected, "+vi(et)+" found")];if(et.length!==2)return[new Ur(kt,et,"array length 2 expected, length "+et.length+" found")];if(j){if(vi(et[0])!=="object")return[new Ur(kt,et,"object expected, "+vi(et[0])+" found")];if(et[0].zoom===void 0)return[new Ur(kt,et,"object stop key must have zoom")];if(et[0].value===void 0)return[new Ur(kt,et,"object stop key must have value")];if(k&&k>on(et[0].zoom))return[new Ur(kt,et[0].zoom,"stop zoom values must appear in ascending order")];on(et[0].zoom)!==k&&(k=on(et[0].zoom),A=void 0,x={}),ct=ct.concat(ds({key:kt+"[0]",value:et[0],valueSpec:{zoom:{}},style:qe.style,styleSpec:qe.styleSpec,objectElementValidators:{zoom:vf,value:ve}}))}else ct=ct.concat(ve({key:kt+"[0]",value:et[0],valueSpec:{},style:qe.style,styleSpec:qe.styleSpec},et));return Au(gl(et[1]))?ct.concat([new Ur(kt+"[1]",et[1],"expressions are not allowed in function stops.")]):ct.concat(si({key:kt+"[1]",value:et[1],valueSpec:o,style:qe.style,styleSpec:qe.styleSpec}))}function ve(qe,ct){var et=vi(qe.value),kt=on(qe.value),_t=qe.value!==null?qe.value:ct;if(!p)p=et;else if(et!==p)return[new Ur(qe.key,_t,et+" stop domain type must match previous stop domain type "+p)];if(et!=="number"&&et!=="string"&&et!=="boolean")return[new Ur(qe.key,_t,"stop domain value must be a number, string, or boolean")];if(et!=="number"&&f!=="categorical"){var St="number expected, "+et+" found";return ff(o)&&f===void 0&&(St+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ur(qe.key,_t,St)]}return f==="categorical"&&et==="number"&&(!isFinite(kt)||Math.floor(kt)!==kt)?[new Ur(qe.key,_t,"integer expected, found "+kt)]:f!=="categorical"&&et==="number"&&A!==void 0&&kt=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(var o=0,f=n.slice(1);oo?1:0}function pf(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(var o=1;o"||o==="<="||o===">="?Yv(n[1],n[2],o):o==="any"?ly(n.slice(1)):o==="all"?["all"].concat(n.slice(1).map(mf)):o==="none"?["all"].concat(n.slice(1).map(mf).map(lc)):o==="in"?Hp(n[1],n.slice(2)):o==="!in"?lc(Hp(n[1],n.slice(2))):o==="has"?Wv(n[1]):o==="!has"?lc(Wv(n[1])):o==="within"?n:!0;return f}function Yv(n,o,f){switch(n){case"$type":return["filter-type-"+f,o];case"$id":return["filter-id-"+f,o];default:return["filter-"+f,n,o]}}function ly(n){return["any"].concat(n.map(mf))}function Hp(n,o){if(o.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",o]];case"$id":return["filter-id-in",["literal",o]];default:return o.length>200&&!o.some(function(f){return typeof f!=typeof o[0]})?["filter-in-large",n,["literal",o.sort(Rl)]]:["filter-in-small",n,["literal",o]]}}function Wv(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function lc(n){return["!",n]}function sh(n){return _o(gl(n.value))?Mu(yu({},n,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xv(n)}function Xv(n){var o=n.value,f=n.key;if(vi(o)!=="array")return[new Ur(f,o,"array expected, "+vi(o)+" found")];var p=n.styleSpec,x,A=[];if(o.length<1)return[new Ur(f,o,"filter array must have at least 1 element")];switch(A=A.concat(oh({key:f+"[0]",value:o[0],valueSpec:p.filter_operator,style:n.style,styleSpec:n.styleSpec})),on(o[0])){case"<":case"<=":case">":case">=":o.length>=2&&on(o[1])==="$type"&&A.push(new Ur(f,o,'"$type" cannot be use with operator "'+o[0]+'"'));case"==":case"!=":o.length!==3&&A.push(new Ur(f,o,'filter array for operator "'+o[0]+'" must have 3 elements'));case"in":case"!in":o.length>=2&&(x=vi(o[1]),x!=="string"&&A.push(new Ur(f+"[1]",o[1],"string expected, "+x+" found")));for(var k=2;k=Q[ve+0]&&p>=Q[ve+1])?(k[_e]=!0,A.push(j[_e])):k[_e]=!1}}},Ds.prototype._forEachCell=function(n,o,f,p,x,A,k,F){for(var Y=this._convertToCellCoord(n),j=this._convertToCellCoord(o),Q=this._convertToCellCoord(f),ne=this._convertToCellCoord(p),_e=Y;_e<=Q;_e++)for(var ve=j;ve<=ne;ve++){var Ee=this.d*ve+_e;if(!(F&&!F(this._convertFromCellCoord(_e),this._convertFromCellCoord(ve),this._convertFromCellCoord(_e+1),this._convertFromCellCoord(ve+1)))&&x.call(this,n,o,f,p,Ee,A,k,F))return}},Ds.prototype._convertFromCellCoord=function(n){return(n-this.padding)/this.scale},Ds.prototype._convertToCellCoord=function(n){return Math.max(0,Math.min(this.d-1,Math.floor(n*this.scale)+this.padding))},Ds.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var n=this.cells,o=ql+this.cells.length+1+1,f=0,p=0;p=0)){var ne=n[Q];j[Q]=Nl[Y].shallow.indexOf(Q)>=0?ne:V(ne,o)}n instanceof Error&&(j.message=n.message)}if(j.$name)throw new Error("$name property is reserved for worker serialization logic.");return Y!=="Object"&&(j.$name=Y),j}throw new Error("can't serialize object of type "+typeof n)}function Z(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||P(n)||B(n)||ArrayBuffer.isView(n)||n instanceof hh)return n;if(Array.isArray(n))return n.map(Z);if(typeof n=="object"){var o=n.$name||"Object",f=Nl[o],p=f.klass;if(!p)throw new Error("can't deserialize unregistered class "+o);if(p.deserialize)return p.deserialize(n);for(var x=Object.create(p.prototype),A=0,k=Object.keys(n);A=0?Y:Z(Y)}}return x}throw new Error("can't deserialize object of type "+typeof n)}var $=function(){this.first=!0};$.prototype.update=function(o,f){var p=Math.floor(o);return this.first?(this.first=!1,this.lastIntegerZoom=p,this.lastIntegerZoomTime=0,this.lastZoom=o,this.lastFloorZoom=p,!0):(this.lastFloorZoom>p?(this.lastIntegerZoom=p+1,this.lastIntegerZoomTime=f):this.lastFloorZoom=128&&n<=255},Arabic:function(n){return n>=1536&&n<=1791},"Arabic Supplement":function(n){return n>=1872&&n<=1919},"Arabic Extended-A":function(n){return n>=2208&&n<=2303},"Hangul Jamo":function(n){return n>=4352&&n<=4607},"Unified Canadian Aboriginal Syllabics":function(n){return n>=5120&&n<=5759},Khmer:function(n){return n>=6016&&n<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(n){return n>=6320&&n<=6399},"General Punctuation":function(n){return n>=8192&&n<=8303},"Letterlike Symbols":function(n){return n>=8448&&n<=8527},"Number Forms":function(n){return n>=8528&&n<=8591},"Miscellaneous Technical":function(n){return n>=8960&&n<=9215},"Control Pictures":function(n){return n>=9216&&n<=9279},"Optical Character Recognition":function(n){return n>=9280&&n<=9311},"Enclosed Alphanumerics":function(n){return n>=9312&&n<=9471},"Geometric Shapes":function(n){return n>=9632&&n<=9727},"Miscellaneous Symbols":function(n){return n>=9728&&n<=9983},"Miscellaneous Symbols and Arrows":function(n){return n>=11008&&n<=11263},"CJK Radicals Supplement":function(n){return n>=11904&&n<=12031},"Kangxi Radicals":function(n){return n>=12032&&n<=12255},"Ideographic Description Characters":function(n){return n>=12272&&n<=12287},"CJK Symbols and Punctuation":function(n){return n>=12288&&n<=12351},Hiragana:function(n){return n>=12352&&n<=12447},Katakana:function(n){return n>=12448&&n<=12543},Bopomofo:function(n){return n>=12544&&n<=12591},"Hangul Compatibility Jamo":function(n){return n>=12592&&n<=12687},Kanbun:function(n){return n>=12688&&n<=12703},"Bopomofo Extended":function(n){return n>=12704&&n<=12735},"CJK Strokes":function(n){return n>=12736&&n<=12783},"Katakana Phonetic Extensions":function(n){return n>=12784&&n<=12799},"Enclosed CJK Letters and Months":function(n){return n>=12800&&n<=13055},"CJK Compatibility":function(n){return n>=13056&&n<=13311},"CJK Unified Ideographs Extension A":function(n){return n>=13312&&n<=19903},"Yijing Hexagram Symbols":function(n){return n>=19904&&n<=19967},"CJK Unified Ideographs":function(n){return n>=19968&&n<=40959},"Yi Syllables":function(n){return n>=40960&&n<=42127},"Yi Radicals":function(n){return n>=42128&&n<=42191},"Hangul Jamo Extended-A":function(n){return n>=43360&&n<=43391},"Hangul Syllables":function(n){return n>=44032&&n<=55215},"Hangul Jamo Extended-B":function(n){return n>=55216&&n<=55295},"Private Use Area":function(n){return n>=57344&&n<=63743},"CJK Compatibility Ideographs":function(n){return n>=63744&&n<=64255},"Arabic Presentation Forms-A":function(n){return n>=64336&&n<=65023},"Vertical Forms":function(n){return n>=65040&&n<=65055},"CJK Compatibility Forms":function(n){return n>=65072&&n<=65103},"Small Form Variants":function(n){return n>=65104&&n<=65135},"Arabic Presentation Forms-B":function(n){return n>=65136&&n<=65279},"Halfwidth and Fullwidth Forms":function(n){return n>=65280&&n<=65519}};function ae(n){for(var o=0,f=n;o=65097&&n<=65103)||X["CJK Compatibility Ideographs"](n)||X["CJK Compatibility"](n)||X["CJK Radicals Supplement"](n)||X["CJK Strokes"](n)||X["CJK Symbols and Punctuation"](n)&&!(n>=12296&&n<=12305)&&!(n>=12308&&n<=12319)&&n!==12336||X["CJK Unified Ideographs Extension A"](n)||X["CJK Unified Ideographs"](n)||X["Enclosed CJK Letters and Months"](n)||X["Hangul Compatibility Jamo"](n)||X["Hangul Jamo Extended-A"](n)||X["Hangul Jamo Extended-B"](n)||X["Hangul Jamo"](n)||X["Hangul Syllables"](n)||X.Hiragana(n)||X["Ideographic Description Characters"](n)||X.Kanbun(n)||X["Kangxi Radicals"](n)||X["Katakana Phonetic Extensions"](n)||X.Katakana(n)&&n!==12540||X["Halfwidth and Fullwidth Forms"](n)&&n!==65288&&n!==65289&&n!==65293&&!(n>=65306&&n<=65310)&&n!==65339&&n!==65341&&n!==65343&&!(n>=65371&&n<=65503)&&n!==65507&&!(n>=65512&&n<=65519)||X["Small Form Variants"](n)&&!(n>=65112&&n<=65118)&&!(n>=65123&&n<=65126)||X["Unified Canadian Aboriginal Syllabics"](n)||X["Unified Canadian Aboriginal Syllabics Extended"](n)||X["Vertical Forms"](n)||X["Yijing Hexagram Symbols"](n)||X["Yi Syllables"](n)||X["Yi Radicals"](n))}function $e(n){return!!(X["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||X["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||X["Letterlike Symbols"](n)||X["Number Forms"](n)||X["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||X["Control Pictures"](n)&&n!==9251||X["Optical Character Recognition"](n)||X["Enclosed Alphanumerics"](n)||X["Geometric Shapes"](n)||X["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||X["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||X["CJK Symbols and Punctuation"](n)||X.Katakana(n)||X["Private Use Area"](n)||X["CJK Compatibility Forms"](n)||X["Small Form Variants"](n)||X["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}function st(n){return!(Pe(n)||$e(n))}function Ie(n){return X.Arabic(n)||X["Arabic Supplement"](n)||X["Arabic Extended-A"](n)||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function He(n){return n>=1424&&n<=2303||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Qe(n,o){return!(!o&&He(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||X.Khmer(n))}function ht(n){for(var o=0,f=n;o-1&&(or=je.error),Zt&&Zt(n)};function zr(){Rr.fire(new ti("pluginStateChange",{pluginStatus:or,pluginURL:cr}))}var Rr=new gr,ta=function(){return or},Vr=function(n){return n({pluginStatus:or,pluginURL:cr}),Rr.on("pluginStateChange",n),n},Qr=function(n,o,f){if(f===void 0&&(f=!1),or===je.deferred||or===je.loading||or===je.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");cr=at.resolveURL(n),or=je.deferred,Zt=o,zr(),f||qa()},qa=function(){if(or!==je.deferred||!cr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");or=je.loading,zr(),cr&&rt({url:cr},function(n){n?ur(n):(or=je.loaded,zr())})},$a={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return or===je.loaded||$a.applyArabicShaping!=null},isLoading:function(){return or===je.loading},setState:function(o){or=o.pluginStatus,cr=o.pluginURL},isParsed:function(){return $a.applyArabicShaping!=null&&$a.processBidirectionalText!=null&&$a.processStyledBidirectionalText!=null},getPluginURL:function(){return cr}},Ja=function(){!$a.isLoading()&&!$a.isLoaded()&&ta()==="deferred"&&qa()},Jt=function(o,f){this.zoom=o,f?(this.now=f.now,this.fadeDuration=f.fadeDuration,this.zoomHistory=f.zoomHistory,this.transition=f.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $,this.transition={})};Jt.prototype.isSupportedScript=function(o){return ot(o,$a.isLoaded())},Jt.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Jt.prototype.getCrossfadeParameters=function(){var o=this.zoom,f=o-Math.floor(o),p=this.crossFadingFactor();return o>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:f+(1-f)*p}:{fromScale:.5,toScale:1,t:1-(1-p)*f}};var Kr=function(o,f){this.property=o,this.value=f,this.expression=iy(f===void 0?o.specification.default:f,o.specification)};Kr.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Kr.prototype.possiblyEvaluate=function(o,f,p){return this.property.possiblyEvaluate(this,o,f,p)};var oa=function(o){this.property=o,this.value=new Kr(o,void 0)};oa.prototype.transitioned=function(o,f){return new Ei(this.property,this.value,f,H({},o.transition,this.transition),o.now)},oa.prototype.untransitioned=function(){return new Ei(this.property,this.value,null,{},0)};var sa=function(o){this._properties=o,this._values=Object.create(o.defaultTransitionablePropertyValues)};sa.prototype.getValue=function(o){return Se(this._values[o].value.value)},sa.prototype.setValue=function(o,f){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].value=new Kr(this._values[o].property,f===null?void 0:Se(f))},sa.prototype.getTransition=function(o){return Se(this._values[o].transition)},sa.prototype.setTransition=function(o,f){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].transition=Se(f)||void 0},sa.prototype.serialize=function(){for(var o={},f=0,p=Object.keys(this._values);fthis.end)return this.prior=null,A;if(this.value.isDataDriven())return this.prior=null,A;if(xk.zoomHistory.lastIntegerZoom?{from:p,to:x}:{from:A,to:x}},o.prototype.interpolate=function(p){return p},o})(Hr),Ti=function(o){this.specification=o};Ti.prototype.possiblyEvaluate=function(o,f,p,x){if(o.value!==void 0)if(o.expression.kind==="constant"){var A=o.expression.evaluate(f,null,{},p,x);return this._calculate(A,A,A,f)}else return this._calculate(o.expression.evaluate(new Jt(Math.floor(f.zoom-1),f)),o.expression.evaluate(new Jt(Math.floor(f.zoom),f)),o.expression.evaluate(new Jt(Math.floor(f.zoom+1),f)),f)},Ti.prototype._calculate=function(o,f,p,x){var A=x.zoom;return A>x.zoomHistory.lastIntegerZoom?{from:o,to:f}:{from:p,to:f}},Ti.prototype.interpolate=function(o){return o};var fo=function(o){this.specification=o};fo.prototype.possiblyEvaluate=function(o,f,p,x){return!!o.expression.evaluate(f,null,{},p,x)},fo.prototype.interpolate=function(){return!1};var qn=function(o){this.properties=o,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var f in o){var p=o[f];p.specification.overridable&&this.overridableProperties.push(f);var x=this.defaultPropertyValues[f]=new Kr(p,void 0),A=this.defaultTransitionablePropertyValues[f]=new oa(p);this.defaultTransitioningPropertyValues[f]=A.untransitioned(),this.defaultPossiblyEvaluatedValues[f]=x.possiblyEvaluate({})}};y("DataDrivenProperty",Hr),y("DataConstantProperty",Ar),y("CrossFadedDataDrivenProperty",Fi),y("CrossFadedProperty",Ti),y("ColorRampProperty",fo);var pn="-transition",di=(function(n){function o(f,p){if(n.call(this),this.id=f.id,this.type=f.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},f.type!=="custom"&&(f=f,this.metadata=f.metadata,this.minzoom=f.minzoom,this.maxzoom=f.maxzoom,f.type!=="background"&&(this.source=f.source,this.sourceLayer=f["source-layer"],this.filter=f.filter),p.layout&&(this._unevaluatedLayout=new $i(p.layout)),p.paint)){this._transitionablePaint=new sa(p.paint);for(var x in f.paint)this.setPaintProperty(x,f.paint[x],{validate:!1});for(var A in f.layout)this.setLayoutProperty(A,f.layout[A],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new wn(p.paint)}}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},o.prototype.getLayoutProperty=function(p){return p==="visibility"?this.visibility:this._unevaluatedLayout.getValue(p)},o.prototype.setLayoutProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".layout."+p;if(this._validate(Fl,k,p,x,A))return}if(p==="visibility"){this.visibility=x;return}this._unevaluatedLayout.setValue(p,x)},o.prototype.getPaintProperty=function(p){return fe(p,pn)?this._transitionablePaint.getTransition(p.slice(0,-pn.length)):this._transitionablePaint.getValue(p)},o.prototype.setPaintProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".paint."+p;if(this._validate(ch,k,p,x,A))return!1}if(fe(p,pn))return this._transitionablePaint.setTransition(p.slice(0,-pn.length),x||void 0),!1;var F=this._transitionablePaint._values[p],Y=F.property.specification["property-type"]==="cross-faded-data-driven",j=F.value.isDataDriven(),Q=F.value;this._transitionablePaint.setValue(p,x),this._handleSpecialPaintPropertyUpdate(p);var ne=this._transitionablePaint._values[p].value,_e=ne.isDataDriven();return _e||j||Y||this._handleOverridablePaintPropertyUpdate(p,Q,ne)},o.prototype._handleSpecialPaintPropertyUpdate=function(p){},o.prototype._handleOverridablePaintPropertyUpdate=function(p,x,A){return!1},o.prototype.isHidden=function(p){return this.minzoom&&p=this.maxzoom?!0:this.visibility==="none"},o.prototype.updateTransitions=function(p){this._transitioningPaint=this._transitionablePaint.transitioned(p,this._transitioningPaint)},o.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},o.prototype.recalculate=function(p,x){p.getCrossfadeParameters&&(this._crossfadeParameters=p.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(p,void 0,x)),this.paint=this._transitioningPaint.possiblyEvaluate(p,void 0,x)},o.prototype.serialize=function(){var p={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(p.layout=p.layout||{},p.layout.visibility=this.visibility),ke(p,function(x,A){return x!==void 0&&!(A==="layout"&&!Object.keys(x).length)&&!(A==="paint"&&!Object.keys(x).length)})},o.prototype._validate=function(p,x,A,k,F){return F===void 0&&(F={}),F&&F.validate===!1?!1:uc(this,p.call(Qa,{key:x,layerType:this.type,objectKey:A,value:k,styleSpec:jt,style:{glyphs:!0,sprite:!0}}))},o.prototype.is3D=function(){return!1},o.prototype.isTileClipped=function(){return!1},o.prototype.hasOffscreenPass=function(){return!1},o.prototype.resize=function(){},o.prototype.isStateDependent=function(){for(var p in this.paint._values){var x=this.paint.get(p);if(!(!(x instanceof xi)||!ff(x.property.specification))&&(x.value.kind==="source"||x.value.kind==="composite")&&x.value.isStateDependent)return!0}return!1},o})(gr),Jo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},co=function(o,f){this._structArray=o,this._pos1=f*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},fi=128,bf=5,Ta=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Ta.serialize=function(o,f){return o._trim(),f&&(o.isTransferred=!0,f.push(o.arrayBuffer)),{length:o.length,arrayBuffer:o.arrayBuffer}},Ta.deserialize=function(o){var f=Object.create(this.prototype);return f.arrayBuffer=o.arrayBuffer,f.length=o.length,f.capacity=o.arrayBuffer.byteLength/f.bytesPerElement,f._refreshViews(),f},Ta.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ta.prototype.clear=function(){this.length=0},Ta.prototype.resize=function(o){this.reserve(o),this.length=o},Ta.prototype.reserve=function(o){if(o>this.capacity){this.capacity=Math.max(o,Math.floor(this.capacity*bf),fi),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var f=this.uint8;this._refreshViews(),f&&this.uint8.set(f)}},Ta.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function li(n,o){o===void 0&&(o=1);var f=0,p=0,x=n.map(function(k){var F=Bl(k.type),Y=f=Kv(f,Math.max(o,F)),j=k.components||1;return p=Math.max(p,F),f+=F*j,{name:k.name,type:k.type,components:j,offset:Y}}),A=Kv(f,Math.max(p,o));return{members:x,size:A,alignment:o}}function Bl(n){return Jo[n].BYTES_PER_ELEMENT}function Kv(n,o){return Math.ceil(n/o)*o}var fc=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.int16[k+0]=x,this.int16[k+1]=A,p},o})(Ta);fc.prototype.bytesPerElement=4,y("StructArrayLayout2i4",fc);var uy=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.int16[Y+0]=x,this.int16[Y+1]=A,this.int16[Y+2]=k,this.int16[Y+3]=F,p},o})(Ta);uy.prototype.bytesPerElement=8,y("StructArrayLayout4i8",uy);var wf=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o})(Ta);wf.prototype.bytesPerElement=12,y("StructArrayLayout2i4i12",wf);var vh=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*4,ne=p*8;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.uint8[ne+4]=k,this.uint8[ne+5]=F,this.uint8[ne+6]=Y,this.uint8[ne+7]=j,p},o})(Ta);vh.prototype.bytesPerElement=8,y("StructArrayLayout2i4ub8",vh);var dh=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.float32[k+0]=x,this.float32[k+1]=A,p},o})(Ta);dh.prototype.bytesPerElement=8,y("StructArrayLayout2f8",dh);var Lo=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,_e){var ve=this.length;return this.resize(ve+1),this.emplace(ve,p,x,A,k,F,Y,j,Q,ne,_e)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e,ve){var Ee=p*10;return this.uint16[Ee+0]=x,this.uint16[Ee+1]=A,this.uint16[Ee+2]=k,this.uint16[Ee+3]=F,this.uint16[Ee+4]=Y,this.uint16[Ee+5]=j,this.uint16[Ee+6]=Q,this.uint16[Ee+7]=ne,this.uint16[Ee+8]=_e,this.uint16[Ee+9]=ve,p},o})(Ta);Lo.prototype.bytesPerElement=20,y("StructArrayLayout10ui20",Lo);var Tf=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee){var qe=this.length;return this.resize(qe+1),this.emplace(qe,p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe){var ct=p*12;return this.int16[ct+0]=x,this.int16[ct+1]=A,this.int16[ct+2]=k,this.int16[ct+3]=F,this.uint16[ct+4]=Y,this.uint16[ct+5]=j,this.uint16[ct+6]=Q,this.uint16[ct+7]=ne,this.int16[ct+8]=_e,this.int16[ct+9]=ve,this.int16[ct+10]=Ee,this.int16[ct+11]=qe,p},o})(Ta);Tf.prototype.bytesPerElement=24,y("StructArrayLayout4i4ui4i24",Tf);var fy=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.float32[F+0]=x,this.float32[F+1]=A,this.float32[F+2]=k,p},o})(Ta);fy.prototype.bytesPerElement=12,y("StructArrayLayout3f12",fy);var cy=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint32[A+0]=x,p},o})(Ta);cy.prototype.bytesPerElement=4,y("StructArrayLayout1ul4",cy);var Qv=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne){var _e=this.length;return this.resize(_e+1),this.emplace(_e,p,x,A,k,F,Y,j,Q,ne)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e){var ve=p*10,Ee=p*5;return this.int16[ve+0]=x,this.int16[ve+1]=A,this.int16[ve+2]=k,this.int16[ve+3]=F,this.int16[ve+4]=Y,this.int16[ve+5]=j,this.uint32[Ee+3]=Q,this.uint16[ve+8]=ne,this.uint16[ve+9]=_e,p},o})(Ta);Qv.prototype.bytesPerElement=20,y("StructArrayLayout6i1ul2ui20",Qv);var Xp=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o})(Ta);Xp.prototype.bytesPerElement=12,y("StructArrayLayout2i2i2i12",Xp);var ku=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F){var Y=this.length;return this.resize(Y+1),this.emplace(Y,p,x,A,k,F)},o.prototype.emplace=function(p,x,A,k,F,Y){var j=p*4,Q=p*8;return this.float32[j+0]=x,this.float32[j+1]=A,this.float32[j+2]=k,this.int16[Q+6]=F,this.int16[Q+7]=Y,p},o})(Ta);ku.prototype.bytesPerElement=16,y("StructArrayLayout2f1f2i16",ku);var Ko=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*12,j=p*3;return this.uint8[Y+0]=x,this.uint8[Y+1]=A,this.float32[j+1]=k,this.float32[j+2]=F,p},o})(Ta);Ko.prototype.bytesPerElement=12,y("StructArrayLayout2ub2f12",Ko);var Cu=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.uint16[F+0]=x,this.uint16[F+1]=A,this.uint16[F+2]=k,p},o})(Ta);Cu.prototype.bytesPerElement=6,y("StructArrayLayout3ui6",Cu);var $v=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,kt,_t){var St=this.length;return this.resize(St+1),this.emplace(St,p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,kt,_t)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,kt,_t,St){var It=p*24,Kt=p*12,pr=p*48;return this.int16[It+0]=x,this.int16[It+1]=A,this.uint16[It+2]=k,this.uint16[It+3]=F,this.uint32[Kt+2]=Y,this.uint32[Kt+3]=j,this.uint32[Kt+4]=Q,this.uint16[It+10]=ne,this.uint16[It+11]=_e,this.uint16[It+12]=ve,this.float32[Kt+7]=Ee,this.float32[Kt+8]=qe,this.uint8[pr+36]=ct,this.uint8[pr+37]=et,this.uint8[pr+38]=kt,this.uint32[Kt+10]=_t,this.int16[It+22]=St,p},o})(Ta);$v.prototype.bytesPerElement=48,y("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",$v);var jp=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,kt,_t,St,It,Kt,pr,fr,Fr,Cr,Ir,$r,qr,Br){var ya=this.length;return this.resize(ya+1),this.emplace(ya,p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,kt,_t,St,It,Kt,pr,fr,Fr,Cr,Ir,$r,qr,Br)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,kt,_t,St,It,Kt,pr,fr,Fr,Cr,Ir,$r,qr,Br,ya){var jr=p*34,Wa=p*17;return this.int16[jr+0]=x,this.int16[jr+1]=A,this.int16[jr+2]=k,this.int16[jr+3]=F,this.int16[jr+4]=Y,this.int16[jr+5]=j,this.int16[jr+6]=Q,this.int16[jr+7]=ne,this.uint16[jr+8]=_e,this.uint16[jr+9]=ve,this.uint16[jr+10]=Ee,this.uint16[jr+11]=qe,this.uint16[jr+12]=ct,this.uint16[jr+13]=et,this.uint16[jr+14]=kt,this.uint16[jr+15]=_t,this.uint16[jr+16]=St,this.uint16[jr+17]=It,this.uint16[jr+18]=Kt,this.uint16[jr+19]=pr,this.uint16[jr+20]=fr,this.uint16[jr+21]=Fr,this.uint16[jr+22]=Cr,this.uint32[Wa+12]=Ir,this.float32[Wa+13]=$r,this.float32[Wa+14]=qr,this.float32[Wa+15]=Br,this.float32[Wa+16]=ya,p},o})(Ta);jp.prototype.bytesPerElement=68,y("StructArrayLayout8i15ui1ul4f68",jp);var ph=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.float32[A+0]=x,p},o})(Ta);ph.prototype.bytesPerElement=4,y("StructArrayLayout1f4",ph);var hy=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.int16[F+0]=x,this.int16[F+1]=A,this.int16[F+2]=k,p},o})(Ta);hy.prototype.bytesPerElement=6,y("StructArrayLayout3i6",hy);var Af=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*2,Y=p*4;return this.uint32[F+0]=x,this.uint16[Y+2]=A,this.uint16[Y+3]=k,p},o})(Ta);Af.prototype.bytesPerElement=8,y("StructArrayLayout1ul2ui8",Af);var ed=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.uint16[k+0]=x,this.uint16[k+1]=A,p},o})(Ta);ed.prototype.bytesPerElement=4,y("StructArrayLayout2ui4",ed);var mh=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint16[A+0]=x,p},o})(Ta);mh.prototype.bytesPerElement=2,y("StructArrayLayout1ui2",mh);var cc=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.float32[Y+0]=x,this.float32[Y+1]=A,this.float32[Y+2]=k,this.float32[Y+3]=F,p},o})(Ta);cc.prototype.bytesPerElement=16,y("StructArrayLayout4f16",cc);var L1=(function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var f={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return f.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},f.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},f.x1.get=function(){return this._structArray.int16[this._pos2+2]},f.y1.get=function(){return this._structArray.int16[this._pos2+3]},f.x2.get=function(){return this._structArray.int16[this._pos2+4]},f.y2.get=function(){return this._structArray.int16[this._pos2+5]},f.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},f.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},f.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},f.anchorPoint.get=function(){return new v(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,f),o})(co);L1.prototype.size=20;var vy=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new L1(this,p)},o})(Qv);y("CollisionBoxArray",vy);var hc=(function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var f={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return f.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},f.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},f.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},f.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},f.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},f.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},f.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},f.segment.get=function(){return this._structArray.uint16[this._pos2+10]},f.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},f.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},f.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},f.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},f.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},f.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},f.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},f.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},f.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},f.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},f.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},f.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,f),o})(co);hc.prototype.size=48;var dy=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new hc(this,p)},o})($v);y("PlacedSymbolArray",dy);var yh=(function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var f={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return f.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},f.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},f.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},f.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},f.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},f.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},f.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},f.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},f.key.get=function(){return this._structArray.uint16[this._pos2+8]},f.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},f.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},f.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},f.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},f.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},f.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},f.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},f.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},f.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},f.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},f.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},f.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},f.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},f.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},f.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},f.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},f.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},f.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},f.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},f.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,f),o})(co);yh.prototype.size=68;var D1=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new yh(this,p)},o})(jp);y("SymbolInstanceArray",D1);var P1=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getoffsetX=function(p){return this.float32[p*1+0]},o})(ph);y("GlyphOffsetArray",P1);var $s=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getx=function(p){return this.int16[p*3+0]},o.prototype.gety=function(p){return this.int16[p*3+1]},o.prototype.gettileUnitDistanceFromAnchor=function(p){return this.int16[p*3+2]},o})(hy);y("SymbolLineVertexArray",$s);var z1=(function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var f={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return f.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},f.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},f.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,f),o})(co);z1.prototype.size=8;var I1=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new z1(this,p)},o})(Af);y("FeatureIndexArray",I1);var _3=li([{name:"a_pos",components:2,type:"Int16"}],4),R1=_3.members,Tn=function(o){o===void 0&&(o=[]),this.segments=o};Tn.prototype.prepareSegment=function(o,f,p,x){var A=this.segments[this.segments.length-1];return o>Tn.MAX_VERTEX_ARRAY_LENGTH&&Ce("Max vertices per segment is "+Tn.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+o),(!A||A.vertexLength+o>Tn.MAX_VERTEX_ARRAY_LENGTH||A.sortKey!==x)&&(A={vertexOffset:f.length,primitiveOffset:p.length,vertexLength:0,primitiveLength:0},x!==void 0&&(A.sortKey=x),this.segments.push(A)),A},Tn.prototype.get=function(){return this.segments},Tn.prototype.destroy=function(){for(var o=0,f=this.segments;o>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q,k=k<<13|k>>>19,F=(k&65535)*5+(((k>>>16)*5&65535)<<16)&4294967295,k=(F&65535)+27492+(((F>>>16)+58964&65535)<<16);switch(Q=0,x){case 3:Q^=(f.charCodeAt(ne+2)&255)<<16;case 2:Q^=(f.charCodeAt(ne+1)&255)<<8;case 1:Q^=f.charCodeAt(ne)&255,Q=(Q&65535)*Y+(((Q>>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q}return k^=f.length,k^=k>>>16,k=(k&65535)*2246822507+(((k>>>16)*2246822507&65535)<<16)&4294967295,k^=k>>>13,k=(k&65535)*3266489909+(((k>>>16)*3266489909&65535)<<16)&4294967295,k^=k>>>16,k>>>0}n.exports=o}),d=s(function(n){function o(f,p){for(var x=f.length,A=p^x,k=0,F;x>=4;)F=f.charCodeAt(k)&255|(f.charCodeAt(++k)&255)<<8|(f.charCodeAt(++k)&255)<<16|(f.charCodeAt(++k)&255)<<24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),F^=F>>>24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)^F,x-=4,++k;switch(x){case 3:A^=(f.charCodeAt(k+2)&255)<<16;case 2:A^=(f.charCodeAt(k+1)&255)<<8;case 1:A^=f.charCodeAt(k)&255,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)}return A^=A>>>13,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16),A^=A>>>15,A>>>0}n.exports=o}),w=b,D=b,R=d;w.murmur3=D,w.murmur2=R;var G=function(){this.ids=[],this.positions=[],this.indexed=!1};G.prototype.add=function(o,f,p,x){this.ids.push(re(o)),this.positions.push(f,p,x)},G.prototype.getPositions=function(o){for(var f=re(o),p=0,x=this.ids.length-1;p>1;this.ids[A]>=f?x=A:p=A+1}for(var k=[];this.ids[p]===f;){var F=this.positions[3*p],Y=this.positions[3*p+1],j=this.positions[3*p+2];k.push({index:F,start:Y,end:j}),p++}return k},G.serialize=function(o,f){var p=new Float64Array(o.ids),x=new Uint32Array(o.positions);return ce(p,x,0,p.length-1),f&&f.push(p.buffer,x.buffer),{ids:p,positions:x}},G.deserialize=function(o){var f=new G;return f.ids=o.ids,f.positions=o.positions,f.indexed=!0,f};var K=Math.pow(2,53)-1;function re(n){var o=+n;return!isNaN(o)&&o<=K?o:w(String(n))}function ce(n,o,f,p){for(;f>1],A=f-1,k=p+1;;){do A++;while(n[A]x);if(A>=k)break;we(n,A,k),we(o,3*A,3*k),we(o,3*A+1,3*k+1),we(o,3*A+2,3*k+2)}k-fk.x+1||Yk.y+1)&&Ce("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return f}function Ai(n,o){return{type:n.type,id:n.id,properties:n.properties,geometry:o?Oa(n):[]}}function Ea(n,o,f,p,x){n.emplaceBack(o*2+(p+1)/2,f*2+(x+1)/2)}var pi=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(f){return f.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new fc,this.indexArray=new Cu,this.segments=new Tn,this.programConfigurations=new kr(o.layers,o.zoom),this.stateDependentLayerIds=this.layers.filter(function(f){return f.isStateDependent()}).map(function(f){return f.id})};pi.prototype.populate=function(o,f,p){var x=this.layers[0],A=[],k=null;x.type==="circle"&&(k=x.layout.get("circle-sort-key"));for(var F=0,Y=o;F=Nr||_e<0||_e>=Nr)){var ve=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,o.sortKey),Ee=ve.vertexLength;Ea(this.layoutVertexArray,ne,_e,-1,-1),Ea(this.layoutVertexArray,ne,_e,1,-1),Ea(this.layoutVertexArray,ne,_e,1,1),Ea(this.layoutVertexArray,ne,_e,-1,1),this.indexArray.emplaceBack(Ee,Ee+1,Ee+2),this.indexArray.emplaceBack(Ee,Ee+3,Ee+2),ve.vertexLength+=4,ve.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,o,p,{},x)},y("CircleBucket",pi,{omit:["layers"]});function na(n,o){for(var f=0;f=3){for(var A=0;A1){if(zs(n,o))return!0;for(var p=0;p1?n.distSqr(f):n.distSqr(f.sub(o)._mult(x)._add(o))}function Ul(n,o){for(var f=!1,p,x,A,k=0;ko.y!=A.y>o.y&&o.x<(A.x-x.x)*(o.y-x.y)/(A.y-x.y)+x.x&&(f=!f)}return f}function Do(n,o){for(var f=!1,p=0,x=n.length-1;po.y!=k.y>o.y&&o.x<(k.x-A.x)*(o.y-A.y)/(k.y-A.y)+A.x&&(f=!f)}return f}function Vl(n,o,f,p,x){for(var A=0,k=n;A=F.x&&x>=F.y)return!0}var Y=[new v(o,f),new v(o,x),new v(p,x),new v(p,f)];if(n.length>2)for(var j=0,Q=Y;jx.x&&o.x>x.x||n.yx.y&&o.y>x.y)return!1;var A=Me(n,o,f[0]);return A!==Me(n,o,f[1])||A!==Me(n,o,f[2])||A!==Me(n,o,f[3])}function Po(n,o,f){var p=o.paint.get(n).value;return p.kind==="constant"?p.value:f.programConfigurations.get(o.id).getMaxValue(n)}function tl(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Eu(n,o,f,p,x){if(!o[0]&&!o[1])return n;var A=v.convert(o)._mult(x);f==="viewport"&&A._rotate(-p);for(var k=[],F=0;F0&&(A=1/Math.sqrt(A)),n[0]=o[0]*A,n[1]=o[1]*A,n[2]=o[2]*A,n}function xY(n,o){return n[0]*o[0]+n[1]*o[1]+n[2]*o[2]}function bY(n,o,f){var p=o[0],x=o[1],A=o[2],k=f[0],F=f[1],Y=f[2];return n[0]=x*Y-A*F,n[1]=A*k-p*Y,n[2]=p*F-x*k,n}function wY(n,o,f){var p=o[0],x=o[1],A=o[2];return n[0]=p*f[0]+x*f[3]+A*f[6],n[1]=p*f[1]+x*f[4]+A*f[7],n[2]=p*f[2]+x*f[5]+A*f[8],n}var TY=T3,oye=(function(){var n=rd();return function(o,f,p,x,A,k){var F,Y;for(f||(f=3),p||(p=0),x?Y=Math.min(x*f+p,o.length):Y=o.length,F=p;Fn.width||x.height>n.height||f.x>n.width-x.width||f.y>n.height-x.height)throw new RangeError("out of range source coordinates for image copy");if(x.width>o.width||x.height>o.height||p.x>o.width-x.width||p.y>o.height-x.height)throw new RangeError("out of range destination coordinates for image copy");for(var k=n.data,F=o.data,Y=0;Y80*f){F=j=n[0],Y=Q=n[1];for(var Ee=f;Eej&&(j=ne),_e>Q&&(Q=_e);ve=Math.max(j-F,Q-Y),ve=ve!==0?1/ve:0}return yy(A,k,f,F,Y,ve),k}function AM(n,o,f,p,x){var A,k;if(x===L3(n,o,f,p)>0)for(A=o;A=o;A-=p)k=kM(A,n[A],n[A+1],k);return k&&N1(k,k.next)&&(_y(k),k=k.next),k}function wh(n,o){if(!n)return n;o||(o=n);var f=n,p;do if(p=!1,!f.steiner&&(N1(f,f.next)||An(f.prev,f,f.next)===0)){if(_y(f),f=o=f.prev,f===f.next)break;p=!0}else f=f.next;while(p||f!==o);return o}function yy(n,o,f,p,x,A,k){if(n){!k&&A&&JY(n,p,x,A);for(var F=n,Y,j;n.prev!==n.next;){if(Y=n.prev,j=n.next,A?VY(n,p,x,A):UY(n)){o.push(Y.i/f),o.push(n.i/f),o.push(j.i/f),_y(n),n=j.next,F=j.next;continue}if(n=j,n===F){k?k===1?(n=HY(wh(n),o,f),yy(n,o,f,p,x,A,2)):k===2&&GY(n,o,f,p,x,A):yy(wh(n),o,f,p,x,A,1);break}}}}function UY(n){var o=n.prev,f=n,p=n.next;if(An(o,f,p)>=0)return!1;for(var x=n.next.next;x!==n.prev;){if(a0(o.x,o.y,f.x,f.y,p.x,p.y,x.x,x.y)&&An(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function VY(n,o,f,p){var x=n.prev,A=n,k=n.next;if(An(x,A,k)>=0)return!1;for(var F=x.xA.x?x.x>k.x?x.x:k.x:A.x>k.x?A.x:k.x,Q=x.y>A.y?x.y>k.y?x.y:k.y:A.y>k.y?A.y:k.y,ne=C3(F,Y,o,f,p),_e=C3(j,Q,o,f,p),ve=n.prevZ,Ee=n.nextZ;ve&&ve.z>=ne&&Ee&&Ee.z<=_e;){if(ve!==n.prev&&ve!==n.next&&a0(x.x,x.y,A.x,A.y,k.x,k.y,ve.x,ve.y)&&An(ve.prev,ve,ve.next)>=0||(ve=ve.prevZ,Ee!==n.prev&&Ee!==n.next&&a0(x.x,x.y,A.x,A.y,k.x,k.y,Ee.x,Ee.y)&&An(Ee.prev,Ee,Ee.next)>=0))return!1;Ee=Ee.nextZ}for(;ve&&ve.z>=ne;){if(ve!==n.prev&&ve!==n.next&&a0(x.x,x.y,A.x,A.y,k.x,k.y,ve.x,ve.y)&&An(ve.prev,ve,ve.next)>=0)return!1;ve=ve.prevZ}for(;Ee&&Ee.z<=_e;){if(Ee!==n.prev&&Ee!==n.next&&a0(x.x,x.y,A.x,A.y,k.x,k.y,Ee.x,Ee.y)&&An(Ee.prev,Ee,Ee.next)>=0)return!1;Ee=Ee.nextZ}return!0}function HY(n,o,f){var p=n;do{var x=p.prev,A=p.next.next;!N1(x,A)&&MM(x,p,p.next,A)&&gy(x,A)&&gy(A,x)&&(o.push(x.i/f),o.push(p.i/f),o.push(A.i/f),_y(p),_y(p.next),p=n=A),p=p.next}while(p!==n);return wh(p)}function GY(n,o,f,p,x,A){var k=n;do{for(var F=k.next.next;F!==k.prev;){if(k.i!==F.i&&$Y(k,F)){var Y=SM(k,F);k=wh(k,k.next),Y=wh(Y,Y.next),yy(k,o,f,p,x,A),yy(Y,o,f,p,x,A);return}F=F.next}k=k.next}while(k!==n)}function ZY(n,o,f,p){var x=[],A,k,F,Y,j;for(A=0,k=o.length;A=f.next.y&&f.next.y!==f.y){var F=f.x+(x-f.y)*(f.next.x-f.x)/(f.next.y-f.y);if(F<=p&&F>A){if(A=F,F===p){if(x===f.y)return f;if(x===f.next.y)return f.next}k=f.x=f.x&&f.x>=j&&p!==f.x&&a0(xk.x||f.x===k.x&&jY(k,f)))&&(k=f,ne=_e)),f=f.next;while(f!==Y);return k}function jY(n,o){return An(n.prev,n,o.prev)<0&&An(o.next,n,n.next)<0}function JY(n,o,f,p){var x=n;do x.z===null&&(x.z=C3(x.x,x.y,o,f,p)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==n);x.prevZ.nextZ=null,x.prevZ=null,KY(x)}function KY(n){var o,f,p,x,A,k,F,Y,j=1;do{for(f=n,n=null,A=null,k=0;f;){for(k++,p=f,F=0,o=0;o0||Y>0&&p;)F!==0&&(Y===0||!p||f.z<=p.z)?(x=f,f=f.nextZ,F--):(x=p,p=p.nextZ,Y--),A?A.nextZ=x:n=x,x.prevZ=A,A=x;f=p}A.nextZ=null,j*=2}while(k>1);return n}function C3(n,o,f,p,x){return n=32767*(n-f)*x,o=32767*(o-p)*x,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n|o<<1}function QY(n){var o=n,f=n;do(o.x=0&&(n-k)*(p-F)-(f-k)*(o-F)>=0&&(f-k)*(A-F)-(x-k)*(p-F)>=0}function $Y(n,o){return n.next.i!==o.i&&n.prev.i!==o.i&&!eW(n,o)&&(gy(n,o)&&gy(o,n)&&tW(n,o)&&(An(n.prev,n,o.prev)||An(n,o.prev,o))||N1(n,o)&&An(n.prev,n,n.next)>0&&An(o.prev,o,o.next)>0)}function An(n,o,f){return(o.y-n.y)*(f.x-o.x)-(o.x-n.x)*(f.y-o.y)}function N1(n,o){return n.x===o.x&&n.y===o.y}function MM(n,o,f,p){var x=O1(An(n,o,f)),A=O1(An(n,o,p)),k=O1(An(f,p,n)),F=O1(An(f,p,o));return!!(x!==A&&k!==F||x===0&&B1(n,f,o)||A===0&&B1(n,p,o)||k===0&&B1(f,n,p)||F===0&&B1(f,o,p))}function B1(n,o,f){return o.x<=Math.max(n.x,f.x)&&o.x>=Math.min(n.x,f.x)&&o.y<=Math.max(n.y,f.y)&&o.y>=Math.min(n.y,f.y)}function O1(n){return n>0?1:n<0?-1:0}function eW(n,o){var f=n;do{if(f.i!==n.i&&f.next.i!==n.i&&f.i!==o.i&&f.next.i!==o.i&&MM(f,f.next,n,o))return!0;f=f.next}while(f!==n);return!1}function gy(n,o){return An(n.prev,n,n.next)<0?An(n,o,n.next)>=0&&An(n,n.prev,o)>=0:An(n,o,n.prev)<0||An(n,n.next,o)<0}function tW(n,o){var f=n,p=!1,x=(n.x+o.x)/2,A=(n.y+o.y)/2;do f.y>A!=f.next.y>A&&f.next.y!==f.y&&x<(f.next.x-f.x)*(A-f.y)/(f.next.y-f.y)+f.x&&(p=!p),f=f.next;while(f!==n);return p}function SM(n,o){var f=new E3(n.i,n.x,n.y),p=new E3(o.i,o.x,o.y),x=n.next,A=o.prev;return n.next=o,o.prev=n,f.next=x,x.prev=f,p.next=f,f.prev=p,A.next=p,p.prev=A,p}function kM(n,o,f,p){var x=new E3(n,o,f);return p?(x.next=p.next,x.prev=p,p.next.prev=x,p.next=x):(x.prev=x,x.next=x),x}function _y(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function E3(n,o,f){this.i=n,this.x=o,this.y=f,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}q1.deviation=function(n,o,f,p){var x=o&&o.length,A=x?o[0]*f:n.length,k=Math.abs(L3(n,0,A,f));if(x)for(var F=0,Y=o.length;F0&&(p+=n[x-1].length,f.holes.push(p))}return f},k3.default=OY;function rW(n,o,f,p,x){CM(n,o,f||0,p||n.length-1,x||aW)}function CM(n,o,f,p,x){for(;p>f;){if(p-f>600){var A=p-f+1,k=o-f+1,F=Math.log(A),Y=.5*Math.exp(2*F/3),j=.5*Math.sqrt(F*Y*(A-Y)/A)*(k-A/2<0?-1:1),Q=Math.max(f,Math.floor(o-k*Y/A+j)),ne=Math.min(p,Math.floor(o+(A-k)*Y/A+j));CM(n,o,Q,ne,x)}var _e=n[o],ve=f,Ee=p;for(xy(n,f,o),x(n[p],_e)>0&&xy(n,f,p);ve0;)Ee--}x(n[f],_e)===0?xy(n,f,Ee):(Ee++,xy(n,Ee,p)),Ee<=o&&(f=Ee+1),o<=Ee&&(p=Ee-1)}}function xy(n,o,f){var p=n[o];n[o]=n[f],n[f]=p}function aW(n,o){return no?1:0}function D3(n,o){var f=n.length;if(f<=1)return[n];for(var p=[],x,A,k=0;k1)for(var Y=0;Y>3}if(p--,f===1||f===2)x+=n.readSVarint(),A+=n.readSVarint(),f===1&&(F&&k.push(F),F=[]),F.push(new v(x,A));else if(f===7)F&&F.push(F[0].clone());else throw new Error("unknown command "+f)}return F&&k.push(F),k},i0.prototype.bbox=function(){var n=this._pbf;n.pos=this._geometry;for(var o=n.readVarint()+n.pos,f=1,p=0,x=0,A=0,k=1/0,F=-1/0,Y=1/0,j=-1/0;n.pos>3}if(p--,f===1||f===2)x+=n.readSVarint(),A+=n.readSVarint(),xF&&(F=x),Aj&&(j=A);else if(f!==7)throw new Error("unknown command "+f)}return[k,Y,F,j]},i0.prototype.toGeoJSON=function(n,o,f){var p=this.extent*Math.pow(2,f),x=this.extent*n,A=this.extent*o,k=this.loadGeometry(),F=i0.types[this.type],Y,j;function Q(ve){for(var Ee=0;Ee>3;o=p===1?n.readString():p===2?n.readFloat():p===3?n.readDouble():p===4?n.readVarint64():p===5?n.readVarint():p===6?n.readSVarint():p===7?n.readBoolean():null}return o}DM.prototype.feature=function(n){if(n<0||n>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[n];var o=this._pbf.readVarint()+this._pbf.pos;return new EM(this._pbf,o,this.extent,this._keys,this._values)};var gW=_W;function _W(n,o){this.layers=n.readFields(xW,{},o)}function xW(n,o,f){if(n===3){var p=new LM(f,f.readVarint()+f.pos);p.length&&(o[p.name]=p)}}var bW=gW,wW=EM,TW=LM,n0={VectorTile:bW,VectorTileFeature:wW,VectorTileLayer:TW},AW=n0.VectorTileFeature.types,MW=500,I3=Math.pow(2,13);function by(n,o,f,p,x,A,k,F){n.emplaceBack(o,f,Math.floor(p*I3)*2+k,x*I3*2,A*I3*2,Math.round(F))}var Du=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(f){return f.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new wf,this.indexArray=new Cu,this.programConfigurations=new kr(o.layers,o.zoom),this.segments=new Tn,this.stateDependentLayerIds=this.layers.filter(function(f){return f.isStateDependent()}).map(function(f){return f.id})};Du.prototype.populate=function(o,f,p){this.features=[],this.hasPattern=P3("fill-extrusion",this.layers,f);for(var x=0,A=o;x=1){var St=ct[kt-1];if(!SW(_t,St)){ve.vertexLength+4>Tn.MAX_VERTEX_ARRAY_LENGTH&&(ve=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var It=_t.sub(St)._perp()._unit(),Kt=St.dist(_t);et+Kt>32768&&(et=0),by(this.layoutVertexArray,_t.x,_t.y,It.x,It.y,0,0,et),by(this.layoutVertexArray,_t.x,_t.y,It.x,It.y,0,1,et),et+=Kt,by(this.layoutVertexArray,St.x,St.y,It.x,It.y,0,0,et),by(this.layoutVertexArray,St.x,St.y,It.x,It.y,0,1,et);var pr=ve.vertexLength;this.indexArray.emplaceBack(pr,pr+2,pr+1),this.indexArray.emplaceBack(pr+1,pr+2,pr+3),ve.vertexLength+=4,ve.primitiveLength+=2}}}}if(ve.vertexLength+j>Tn.MAX_VERTEX_ARRAY_LENGTH&&(ve=this.segments.prepareSegment(j,this.layoutVertexArray,this.indexArray)),AW[o.type]==="Polygon"){for(var fr=[],Fr=[],Cr=ve.vertexLength,Ir=0,$r=Y;Ir<$r.length;Ir+=1){var qr=$r[Ir];if(qr.length!==0){qr!==Y[0]&&Fr.push(fr.length/2);for(var Br=0;BrNr)||n.y===o.y&&(n.y<0||n.y>Nr)}function kW(n){return n.every(function(o){return o.x<0})||n.every(function(o){return o.x>Nr})||n.every(function(o){return o.y<0})||n.every(function(o){return o.y>Nr})}var CW=new qn({"fill-extrusion-opacity":new Ar(jt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Hr(jt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ar(jt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ar(jt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Fi(jt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Hr(jt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Hr(jt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ar(jt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),EW={paint:CW},LW=(function(n){function o(f){n.call(this,f,EW)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.createBucket=function(p){return new Du(p)},o.prototype.queryRadius=function(){return tl(this.paint.get("fill-extrusion-translate"))},o.prototype.is3D=function(){return!0},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j,Q){var ne=Eu(p,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Y.angle,j),_e=this.paint.get("fill-extrusion-height").evaluate(x,A),ve=this.paint.get("fill-extrusion-base").evaluate(x,A),Ee=zW(ne,Q,Y,0),qe=PW(k,ve,_e,Q),ct=qe[0],et=qe[1];return DW(ct,et,Ee)},o})(di);function wy(n,o){return n.x*o.x+n.y*o.y}function PM(n,o){if(n.length===1){for(var f=0,p=o[f++],x;!x||p.equals(x);)if(x=o[f++],!x)return 1/0;for(;f=2&&o[j-1].equals(o[j-2]);)j--;for(var Q=0;Q0;if(fr&&kt>Q){var Cr=ve.dist(Ee);if(Cr>2*ne){var Ir=ve.sub(ve.sub(Ee)._mult(ne/Cr)._round());this.updateDistance(Ee,Ir),this.addCurrentVertex(Ir,ct,0,0,_e),Ee=Ir}}var $r=Ee&&qe,qr=$r?p:Y?"butt":x;if($r&&qr==="round"&&(KtA&&(qr="bevel"),qr==="bevel"&&(Kt>2&&(qr="flipbevel"),Kt100)_t=et.mult(-1);else{var Br=Kt*ct.add(et).mag()/ct.sub(et).mag();_t._perp()._mult(Br*(Fr?-1:1))}this.addCurrentVertex(ve,_t,0,0,_e),this.addCurrentVertex(ve,_t.mult(-1),0,0,_e)}else if(qr==="bevel"||qr==="fakeround"){var ya=-Math.sqrt(Kt*Kt-1),jr=Fr?ya:0,Wa=Fr?0:ya;if(Ee&&this.addCurrentVertex(ve,ct,jr,Wa,_e),qr==="fakeround")for(var yi=Math.round(pr*180/Math.PI/UW),Xa=1;Xa2*ne){var kn=ve.add(qe.sub(ve)._mult(ne/Yn)._round());this.updateDistance(ve,kn),this.addCurrentVertex(kn,et,0,0,_e),ve=kn}}}}},zo.prototype.addCurrentVertex=function(o,f,p,x,A,k){k===void 0&&(k=!1);var F=f.x+f.y*p,Y=f.y-f.x*p,j=-f.x+f.y*x,Q=-f.y-f.x*x;this.addHalfVertex(o,F,Y,k,!1,p,A),this.addHalfVertex(o,j,Q,k,!0,-x,A),this.distance>RM/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(o,f,p,x,A,k))},zo.prototype.addHalfVertex=function(o,f,p,x,A,k,F){var Y=o.x,j=o.y,Q=this.lineClips?this.scaledDistance*(RM-1):this.scaledDistance,ne=Q*IM;if(this.layoutVertexArray.emplaceBack((Y<<1)+(x?1:0),(j<<1)+(A?1:0),Math.round(zM*f)+128,Math.round(zM*p)+128,(k===0?0:k<0?-1:1)+1|(ne&63)<<2,ne>>6),this.lineClips){var _e=this.scaledDistance-this.lineClips.start,ve=this.lineClips.end-this.lineClips.start,Ee=_e/ve;this.layoutVertexArray2.emplaceBack(Ee,this.lineClipsArray.length)}var qe=F.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qe),F.primitiveLength++),A?this.e2=qe:this.e1=qe},zo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},zo.prototype.updateDistance=function(o,f){this.distance+=o.dist(f),this.updateScaledDistance()},y("LineBucket",zo,{omit:["layers","patternFeatures"]});var HW=new qn({"line-cap":new Ar(jt.layout_line["line-cap"]),"line-join":new Hr(jt.layout_line["line-join"]),"line-miter-limit":new Ar(jt.layout_line["line-miter-limit"]),"line-round-limit":new Ar(jt.layout_line["line-round-limit"]),"line-sort-key":new Hr(jt.layout_line["line-sort-key"])}),GW=new qn({"line-opacity":new Hr(jt.paint_line["line-opacity"]),"line-color":new Hr(jt.paint_line["line-color"]),"line-translate":new Ar(jt.paint_line["line-translate"]),"line-translate-anchor":new Ar(jt.paint_line["line-translate-anchor"]),"line-width":new Hr(jt.paint_line["line-width"]),"line-gap-width":new Hr(jt.paint_line["line-gap-width"]),"line-offset":new Hr(jt.paint_line["line-offset"]),"line-blur":new Hr(jt.paint_line["line-blur"]),"line-dasharray":new Ti(jt.paint_line["line-dasharray"]),"line-pattern":new Fi(jt.paint_line["line-pattern"]),"line-gradient":new fo(jt.paint_line["line-gradient"])}),FM={paint:GW,layout:HW},ZW=(function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.possiblyEvaluate=function(p,x){return x=new Jt(Math.floor(x.zoom),{now:x.now,fadeDuration:x.fadeDuration,zoomHistory:x.zoomHistory,transition:x.transition}),n.prototype.possiblyEvaluate.call(this,p,x)},o.prototype.evaluate=function(p,x,A,k){return x=H({},x,{zoom:Math.floor(x.zoom)}),n.prototype.evaluate.call(this,p,x,A,k)},o})(Hr),qM=new ZW(FM.paint.properties["line-width"].specification);qM.useIntegerZoom=!0;var YW=(function(n){function o(f){n.call(this,f,FM),this.gradientVersion=0}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._handleSpecialPaintPropertyUpdate=function(p){if(p==="line-gradient"){var x=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=x._styleExpression.expression instanceof Ms,this.gradientVersion=(this.gradientVersion+1)%M}},o.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},o.prototype.recalculate=function(p,x){n.prototype.recalculate.call(this,p,x),this.paint._values["line-floorwidth"]=qM.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,p)},o.prototype.createBucket=function(p){return new zo(p)},o.prototype.queryRadius=function(p){var x=p,A=NM(Po("line-width",this,x),Po("line-gap-width",this,x)),k=Po("line-offset",this,x);return A/2+Math.abs(k)+tl(this.paint.get("line-translate"))},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j){var Q=Eu(p,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Y.angle,j),ne=j/2*NM(this.paint.get("line-width").evaluate(x,A),this.paint.get("line-gap-width").evaluate(x,A)),_e=this.paint.get("line-offset").evaluate(x,A);return _e&&(k=WW(k,_e*j)),Nn(Q,k,ne)},o.prototype.isTileClipped=function(){return!0},o})(di);function NM(n,o){return o>0?o+2*n:n}function WW(n,o){for(var f=[],p=new v(0,0),x=0;x":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function tX(n){for(var o="",f=0;f>1,Q=-7,ne=f?x-1:0,_e=f?-1:1,ve=n[o+ne];for(ne+=_e,A=ve&(1<<-Q)-1,ve>>=-Q,Q+=F;Q>0;A=A*256+n[o+ne],ne+=_e,Q-=8);for(k=A&(1<<-Q)-1,A>>=-Q,Q+=p;Q>0;k=k*256+n[o+ne],ne+=_e,Q-=8);if(A===0)A=1-j;else{if(A===Y)return k?NaN:(ve?-1:1)*(1/0);k=k+Math.pow(2,p),A=A-j}return(ve?-1:1)*k*Math.pow(2,A-p)},aX=function(n,o,f,p,x,A){var k,F,Y,j=A*8-x-1,Q=(1<>1,_e=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,ve=p?0:A-1,Ee=p?1:-1,qe=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(F=isNaN(o)?1:0,k=Q):(k=Math.floor(Math.log(o)/Math.LN2),o*(Y=Math.pow(2,-k))<1&&(k--,Y*=2),k+ne>=1?o+=_e/Y:o+=_e*Math.pow(2,1-ne),o*Y>=2&&(k++,Y/=2),k+ne>=Q?(F=0,k=Q):k+ne>=1?(F=(o*Y-1)*Math.pow(2,x),k=k+ne):(F=o*Math.pow(2,ne-1)*Math.pow(2,x),k=0));x>=8;n[f+ve]=F&255,ve+=Ee,F/=256,x-=8);for(k=k<0;n[f+ve]=k&255,ve+=Ee,k/=256,j-=8);n[f+ve-Ee]|=qe*128},U1={read:rX,write:aX},V1=Li;function Li(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}Li.Varint=0,Li.Fixed64=1,Li.Bytes=2,Li.Fixed32=5;var R3=65536*65536,OM=1/R3,iX=12,UM=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");Li.prototype={destroy:function(){this.buf=null},readFields:function(n,o,f){for(f=f||this.length;this.pos>3,A=this.pos;this.type=p&7,n(x,o,this),this.pos===A&&this.skip(p)}return o},readMessage:function(n,o){return this.readFields(n,o,this.readVarint()+this.pos)},readFixed32:function(){var n=H1(this.buf,this.pos);return this.pos+=4,n},readSFixed32:function(){var n=HM(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=H1(this.buf,this.pos)+H1(this.buf,this.pos+4)*R3;return this.pos+=8,n},readSFixed64:function(){var n=H1(this.buf,this.pos)+HM(this.buf,this.pos+4)*R3;return this.pos+=8,n},readFloat:function(){var n=U1.read(this.buf,this.pos,!0,23,4);return this.pos+=4,n},readDouble:function(){var n=U1.read(this.buf,this.pos,!0,52,8);return this.pos+=8,n},readVarint:function(n){var o=this.buf,f,p;return p=o[this.pos++],f=p&127,p<128||(p=o[this.pos++],f|=(p&127)<<7,p<128)||(p=o[this.pos++],f|=(p&127)<<14,p<128)||(p=o[this.pos++],f|=(p&127)<<21,p<128)?f:(p=o[this.pos],f|=(p&15)<<28,nX(f,n,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var n=this.readVarint();return n%2===1?(n+1)/-2:n/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var n=this.readVarint()+this.pos,o=this.pos;return this.pos=n,n-o>=iX&&UM?_X(this.buf,o,n):gX(this.buf,o,n)},readBytes:function(){var n=this.readVarint()+this.pos,o=this.buf.subarray(this.pos,n);return this.pos=n,o},readPackedVarint:function(n,o){if(this.type!==Li.Bytes)return n.push(this.readVarint(o));var f=dc(this);for(n=n||[];this.pos127;);else if(o===Li.Bytes)this.pos=this.readVarint()+this.pos;else if(o===Li.Fixed32)this.pos+=4;else if(o===Li.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+o)},writeTag:function(n,o){this.writeVarint(n<<3|o)},realloc:function(n){for(var o=this.length||16;o268435455||n<0){oX(n,this);return}this.realloc(4),this.buf[this.pos++]=n&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=n>>>7&127)))},writeSVarint:function(n){this.writeVarint(n<0?-n*2-1:n*2)},writeBoolean:function(n){this.writeVarint(!!n)},writeString:function(n){n=String(n),this.realloc(n.length*4),this.pos++;var o=this.pos;this.pos=xX(this.buf,n,this.pos);var f=this.pos-o;f>=128&&VM(o,f,this),this.pos=o-1,this.writeVarint(f),this.pos+=f},writeFloat:function(n){this.realloc(4),U1.write(this.buf,n,this.pos,!0,23,4),this.pos+=4},writeDouble:function(n){this.realloc(8),U1.write(this.buf,n,this.pos,!0,52,8),this.pos+=8},writeBytes:function(n){var o=n.length;this.writeVarint(o),this.realloc(o);for(var f=0;f=128&&VM(f,p,this),this.pos=f-1,this.writeVarint(p),this.pos+=p},writeMessage:function(n,o,f){this.writeTag(n,Li.Bytes),this.writeRawMessage(o,f)},writePackedVarint:function(n,o){o.length&&this.writeMessage(n,uX,o)},writePackedSVarint:function(n,o){o.length&&this.writeMessage(n,fX,o)},writePackedBoolean:function(n,o){o.length&&this.writeMessage(n,vX,o)},writePackedFloat:function(n,o){o.length&&this.writeMessage(n,cX,o)},writePackedDouble:function(n,o){o.length&&this.writeMessage(n,hX,o)},writePackedFixed32:function(n,o){o.length&&this.writeMessage(n,dX,o)},writePackedSFixed32:function(n,o){o.length&&this.writeMessage(n,pX,o)},writePackedFixed64:function(n,o){o.length&&this.writeMessage(n,mX,o)},writePackedSFixed64:function(n,o){o.length&&this.writeMessage(n,yX,o)},writeBytesField:function(n,o){this.writeTag(n,Li.Bytes),this.writeBytes(o)},writeFixed32Field:function(n,o){this.writeTag(n,Li.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(n,o){this.writeTag(n,Li.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(n,o){this.writeTag(n,Li.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(n,o){this.writeTag(n,Li.Fixed64),this.writeSFixed64(o)},writeVarintField:function(n,o){this.writeTag(n,Li.Varint),this.writeVarint(o)},writeSVarintField:function(n,o){this.writeTag(n,Li.Varint),this.writeSVarint(o)},writeStringField:function(n,o){this.writeTag(n,Li.Bytes),this.writeString(o)},writeFloatField:function(n,o){this.writeTag(n,Li.Fixed32),this.writeFloat(o)},writeDoubleField:function(n,o){this.writeTag(n,Li.Fixed64),this.writeDouble(o)},writeBooleanField:function(n,o){this.writeVarintField(n,!!o)}};function nX(n,o,f){var p=f.buf,x,A;if(A=p[f.pos++],x=(A&112)>>4,A<128||(A=p[f.pos++],x|=(A&127)<<3,A<128)||(A=p[f.pos++],x|=(A&127)<<10,A<128)||(A=p[f.pos++],x|=(A&127)<<17,A<128)||(A=p[f.pos++],x|=(A&127)<<24,A<128)||(A=p[f.pos++],x|=(A&1)<<31,A<128))return o0(n,x,o);throw new Error("Expected varint not more than 10 bytes")}function dc(n){return n.type===Li.Bytes?n.readVarint()+n.pos:n.pos+1}function o0(n,o,f){return f?o*4294967296+(n>>>0):(o>>>0)*4294967296+(n>>>0)}function oX(n,o){var f,p;if(n>=0?(f=n%4294967296|0,p=n/4294967296|0):(f=~(-n%4294967296),p=~(-n/4294967296),f^4294967295?f=f+1|0:(f=0,p=p+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),sX(f,p,o),lX(p,o)}function sX(n,o,f){f.buf[f.pos++]=n&127|128,n>>>=7,f.buf[f.pos++]=n&127|128,n>>>=7,f.buf[f.pos++]=n&127|128,n>>>=7,f.buf[f.pos++]=n&127|128,n>>>=7,f.buf[f.pos]=n&127}function lX(n,o){var f=(n&7)<<4;o.buf[o.pos++]|=f|((n>>>=3)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127)))))}function VM(n,o,f){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(Math.LN2*7));f.realloc(p);for(var x=f.pos-1;x>=n;x--)f.buf[x+p]=f.buf[x]}function uX(n,o){for(var f=0;f>>8,n[f+2]=o>>>16,n[f+3]=o>>>24}function HM(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16)+(n[o+3]<<24)}function gX(n,o,f){for(var p="",x=o;x239?4:A>223?3:A>191?2:1;if(x+F>f)break;var Y,j,Q;F===1?A<128&&(k=A):F===2?(Y=n[x+1],(Y&192)===128&&(k=(A&31)<<6|Y&63,k<=127&&(k=null))):F===3?(Y=n[x+1],j=n[x+2],(Y&192)===128&&(j&192)===128&&(k=(A&15)<<12|(Y&63)<<6|j&63,(k<=2047||k>=55296&&k<=57343)&&(k=null))):F===4&&(Y=n[x+1],j=n[x+2],Q=n[x+3],(Y&192)===128&&(j&192)===128&&(Q&192)===128&&(k=(A&15)<<18|(Y&63)<<12|(j&63)<<6|Q&63,(k<=65535||k>=1114112)&&(k=null))),k===null?(k=65533,F=1):k>65535&&(k-=65536,p+=String.fromCharCode(k>>>10&1023|55296),k=56320|k&1023),p+=String.fromCharCode(k),x+=F}return p}function _X(n,o,f){return UM.decode(n.subarray(o,f))}function xX(n,o,f){for(var p=0,x,A;p55295&&x<57344)if(A)if(x<56320){n[f++]=239,n[f++]=191,n[f++]=189,A=x;continue}else x=A-55296<<10|x-56320|65536,A=null;else{x>56319||p+1===o.length?(n[f++]=239,n[f++]=191,n[f++]=189):A=x;continue}else A&&(n[f++]=239,n[f++]=191,n[f++]=189,A=null);x<128?n[f++]=x:(x<2048?n[f++]=x>>6|192:(x<65536?n[f++]=x>>12|224:(n[f++]=x>>18|240,n[f++]=x>>12&63|128),n[f++]=x>>6&63|128),n[f++]=x&63|128)}return f}var F3=3;function bX(n,o,f){n===1&&f.readMessage(wX,o)}function wX(n,o,f){if(n===3){var p=f.readMessage(TX,{}),x=p.id,A=p.bitmap,k=p.width,F=p.height,Y=p.left,j=p.top,Q=p.advance;o.push({id:x,bitmap:new ad({width:k+2*F3,height:F+2*F3},A),metrics:{width:k,height:F,left:Y,top:j,advance:Q}})}}function TX(n,o,f){n===1?o.id=f.readVarint():n===2?o.bitmap=f.readBytes():n===3?o.width=f.readVarint():n===4?o.height=f.readVarint():n===5?o.left=f.readSVarint():n===6?o.top=f.readSVarint():n===7&&(o.advance=f.readVarint())}function AX(n){return new V1(n).readFields(bX,[])}var GM=F3;function ZM(n){for(var o=0,f=0,p=0,x=n;p=0;ve--){var Ee=F[ve];if(!(_e.w>Ee.w||_e.h>Ee.h)){if(_e.x=Ee.x,_e.y=Ee.y,j=Math.max(j,_e.y+_e.h),Y=Math.max(Y,_e.x+_e.w),_e.w===Ee.w&&_e.h===Ee.h){var qe=F.pop();ve=0&&x>=o&&Mf[this.text.charCodeAt(x)];x--)p--;this.text=this.text.substring(o,p),this.sectionIndex=this.sectionIndex.slice(o,p)},wo.prototype.substring=function(o,f){var p=new wo;return p.text=this.text.substring(o,f),p.sectionIndex=this.sectionIndex.slice(o,f),p.sections=this.sections,p},wo.prototype.toString=function(){return this.text},wo.prototype.getMaxScale=function(){var o=this;return this.sectionIndex.reduce(function(f,p){return Math.max(f,o.sections[p].scale)},0)},wo.prototype.addTextSection=function(o,f){this.text+=o.text,this.sections.push(l0.forText(o.scale,o.fontStack||f));for(var p=this.sections.length-1,x=0;x=WM?null:++this.imageSectionID:(this.imageSectionID=YM,this.imageSectionID)};function SX(n,o){for(var f=[],p=n.text,x=0,A=0,k=o;A=0,Q=0,ne=0;ne0&&kn>Fr&&(Fr=kn)}else{var ja=f[Ir.fontStack],Ua=ja&&ja[qr];if(Ua&&Ua.rect)jr=Ua.rect,ya=Ua.metrics;else{var Mi=o[Ir.fontStack],Di=Mi&&Mi[qr];if(!Di)continue;ya=Di.metrics}Br=(It-Ir.scale)*Qn}Xa?(n.verticalizable=!0,fr.push({glyph:qr,imageName:Wa,x:_e,y:ve+Br,vertical:Xa,scale:Ir.scale,fontStack:Ir.fontStack,sectionIndex:$r,metrics:ya,rect:jr}),_e+=yi*Ir.scale+j):(fr.push({glyph:qr,imageName:Wa,x:_e,y:ve+Br,vertical:Xa,scale:Ir.scale,fontStack:Ir.fontStack,sectionIndex:$r,metrics:ya,rect:jr}),_e+=ya.advance*Ir.scale+j)}if(fr.length!==0){var To=_e-j;Ee=Math.max(To,Ee),LX(fr,0,fr.length-1,ct,Fr)}_e=0;var Ao=A*It+Fr;pr.lineOffset=Math.max(Fr,Kt),ve+=Ao,qe=Math.max(Ao,qe),++et}var Wn=ve-Sy,Io=N3(k),Ro=Io.horizontalAlign,Bn=Io.verticalAlign;DX(n.positionedLines,ct,Ro,Bn,Ee,qe,A,Wn,x.length),n.top+=-Bn*Wn,n.bottom=n.top+Wn,n.left+=-Ro*Ee,n.right=n.left+Ee}function LX(n,o,f,p,x){if(!(!p&&!x))for(var A=n[f],k=A.metrics.advance*A.scale,F=(n[f].x+k)*p,Y=o;Y<=f;Y++)n[Y].x-=F,n[Y].y+=x}function DX(n,o,f,p,x,A,k,F,Y){var j=(o-f)*x,Q=0;A!==k?Q=-F*p-Sy:Q=(-p*Y+.5)*k;for(var ne=0,_e=n;ne<_e.length;ne+=1)for(var ve=_e[ne],Ee=0,qe=ve.positionedGlyphs;Ee-f/2;){if(k--,k<0)return!1;F-=n[k].dist(A),A=n[k]}F+=n[k].dist(n[k+1]),k++;for(var Y=[],j=0;Fp;)j-=Y.shift().angleDelta;if(j>x)return!1;k++,F+=ne.dist(_e)}return!0}function r7(n){for(var o=0,f=0;fj){var Ee=(j-Y)/ve,qe=dn(ne.x,_e.x,Ee),ct=dn(ne.y,_e.y,Ee),et=new u0(qe,ct,_e.angleTo(ne),Q);return et._round(),!k||t7(n,et,F,k,o)?et:void 0}Y+=ve}}function RX(n,o,f,p,x,A,k,F,Y){var j=a7(p,A,k),Q=i7(p,x),ne=Q*k,_e=n[0].x===0||n[0].x===Y||n[0].y===0||n[0].y===Y;o-ne=0&&St=0&&It=0&&_e+j<=Q){var Kt=new u0(St,It,kt,Ee);Kt._round(),(!p||t7(n,Kt,A,p,x))&&ve.push(Kt)}}ne+=et}return!F&&!ve.length&&!k&&(ve=n7(n,ne/2,f,p,x,A,k,!0,Y)),ve}function o7(n,o,f,p,x){for(var A=[],k=0;k=p&&ne.x>=p)&&(Q.x>=p?Q=new v(p,Q.y+(ne.y-Q.y)*((p-Q.x)/(ne.x-Q.x)))._round():ne.x>=p&&(ne=new v(p,Q.y+(ne.y-Q.y)*((p-Q.x)/(ne.x-Q.x)))._round()),!(Q.y>=x&&ne.y>=x)&&(Q.y>=x?Q=new v(Q.x+(ne.x-Q.x)*((x-Q.y)/(ne.y-Q.y)),x)._round():ne.y>=x&&(ne=new v(Q.x+(ne.x-Q.x)*((x-Q.y)/(ne.y-Q.y)),x)._round()),(!Y||!Q.equals(Y[Y.length-1]))&&(Y=[Q],A.push(Y)),Y.push(ne)))))}return A}var f0=ps;function s7(n,o,f,p){var x=[],A=n.image,k=A.pixelRatio,F=A.paddedRect.w-2*f0,Y=A.paddedRect.h-2*f0,j=n.right-n.left,Q=n.bottom-n.top,ne=A.stretchX||[[0,F]],_e=A.stretchY||[[0,Y]],ve=function(ja,Ua){return ja+Ua[1]-Ua[0]},Ee=ne.reduce(ve,0),qe=_e.reduce(ve,0),ct=F-Ee,et=Y-qe,kt=0,_t=Ee,St=0,It=qe,Kt=0,pr=ct,fr=0,Fr=et;if(A.content&&p){var Cr=A.content;kt=Y1(ne,0,Cr[0]),St=Y1(_e,0,Cr[1]),_t=Y1(ne,Cr[0],Cr[2]),It=Y1(_e,Cr[1],Cr[3]),Kt=Cr[0]-kt,fr=Cr[1]-St,pr=Cr[2]-Cr[0]-_t,Fr=Cr[3]-Cr[1]-It}var Ir=function(ja,Ua,Mi,Di){var tn=W1(ja.stretch-kt,_t,j,n.left),fn=X1(ja.fixed-Kt,pr,ja.stretch,Ee),Yn=W1(Ua.stretch-St,It,Q,n.top),kn=X1(Ua.fixed-fr,Fr,Ua.stretch,qe),To=W1(Mi.stretch-kt,_t,j,n.left),Ao=X1(Mi.fixed-Kt,pr,Mi.stretch,Ee),Wn=W1(Di.stretch-St,It,Q,n.top),Io=X1(Di.fixed-fr,Fr,Di.stretch,qe),Ro=new v(tn,Yn),Bn=new v(To,Yn),Fo=new v(To,Wn),Rs=new v(tn,Wn),yc=new v(fn/k,kn/k),Mh=new v(Ao/k,Io/k),Sh=o*Math.PI/180;if(Sh){var kh=Math.sin(Sh),g0=Math.cos(Sh),Hl=[g0,-kh,kh,g0];Ro._matMult(Hl),Bn._matMult(Hl),Rs._matMult(Hl),Fo._matMult(Hl)}var e_=ja.stretch+ja.fixed,W3=Mi.stretch+Mi.fixed,t_=Ua.stretch+Ua.fixed,X3=Di.stretch+Di.fixed,al={x:A.paddedRect.x+f0+e_,y:A.paddedRect.y+f0+t_,w:W3-e_,h:X3-t_},_0=pr/k/j,r_=Fr/k/Q;return{tl:Ro,tr:Bn,bl:Rs,br:Fo,tex:al,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:yc,pixelOffsetBR:Mh,minFontScaleX:_0,minFontScaleY:r_,isSDF:f}};if(!p||!A.stretchX&&!A.stretchY)x.push(Ir({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:F+1},{fixed:0,stretch:Y+1}));else for(var $r=l7(ne,ct,Ee),qr=l7(_e,et,qe),Br=0;Br<$r.length-1;Br++)for(var ya=$r[Br],jr=$r[Br+1],Wa=0;Wa0&&(Ee=Math.max(10,Ee),this.circleDiameter=Ee)}else{var qe=k.top*F-Y,ct=k.bottom*F+Y,et=k.left*F-Y,kt=k.right*F+Y,_t=k.collisionPadding;if(_t&&(et-=_t[0]*F,qe-=_t[1]*F,kt+=_t[2]*F,ct+=_t[3]*F),Q){var St=new v(et,qe),It=new v(kt,qe),Kt=new v(et,ct),pr=new v(kt,ct),fr=Q*Math.PI/180;St._rotate(fr),It._rotate(fr),Kt._rotate(fr),pr._rotate(fr),et=Math.min(St.x,It.x,Kt.x,pr.x),kt=Math.max(St.x,It.x,Kt.x,pr.x),qe=Math.min(St.y,It.y,Kt.y,pr.y),ct=Math.max(St.y,It.y,Kt.y,pr.y)}o.emplaceBack(f.x,f.y,et,qe,kt,ct,p,x,A)}this.boxEndIndex=o.length},c0=function(o,f){if(o===void 0&&(o=[]),f===void 0&&(f=qX),this.data=o,this.length=this.data.length,this.compare=f,this.length>0)for(var p=(this.length>>1)-1;p>=0;p--)this._down(p)};c0.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},c0.prototype.pop=function(){if(this.length!==0){var o=this.data[0],f=this.data.pop();return this.length--,this.length>0&&(this.data[0]=f,this._down(0)),o}},c0.prototype.peek=function(){return this.data[0]},c0.prototype._up=function(o){for(var f=this,p=f.data,x=f.compare,A=p[o];o>0;){var k=o-1>>1,F=p[k];if(x(A,F)>=0)break;p[o]=F,o=k}p[o]=A},c0.prototype._down=function(o){for(var f=this,p=f.data,x=f.compare,A=this.length>>1,k=p[o];o=0)break;p[o]=Y,o=F}p[o]=k};function qX(n,o){return no?1:0}function NX(n,o,f){o===void 0&&(o=1),f===void 0&&(f=!1);for(var p=1/0,x=1/0,A=-1/0,k=-1/0,F=n[0],Y=0;YA)&&(A=j.x),(!Y||j.y>k)&&(k=j.y)}var Q=A-p,ne=k-x,_e=Math.min(Q,ne),ve=_e/2,Ee=new c0([],BX);if(_e===0)return new v(p,x);for(var qe=p;qeet.d||!et.d)&&(et=_t,f&&console.log("found best %d after %d probes",Math.round(1e4*_t.d)/1e4,kt)),!(_t.max-et.d<=o)&&(ve=_t.h/2,Ee.push(new h0(_t.p.x-ve,_t.p.y-ve,ve,n)),Ee.push(new h0(_t.p.x+ve,_t.p.y-ve,ve,n)),Ee.push(new h0(_t.p.x-ve,_t.p.y+ve,ve,n)),Ee.push(new h0(_t.p.x+ve,_t.p.y+ve,ve,n)),kt+=4)}return f&&(console.log("num probes: "+kt),console.log("best distance: "+et.d)),et.p}function BX(n,o){return o.max-n.max}function h0(n,o,f,p){this.p=new v(n,o),this.h=f,this.d=OX(this.p,p),this.max=this.d+this.h*Math.SQRT2}function OX(n,o){for(var f=!1,p=1/0,x=0;xn.y!=Q.y>n.y&&n.x<(Q.x-j.x)*(n.y-j.y)/(Q.y-j.y)+j.x&&(f=!f),p=Math.min(p,vc(n,j,Q))}return(f?1:-1)*Math.sqrt(p)}function UX(n){for(var o=0,f=0,p=0,x=n[0],A=0,k=x.length,F=k-1;A=Nr||Hl.y<0||Hl.y>=Nr||GX(n,Hl,g0,f,p,x,qr,n.layers[0],n.collisionBoxArray,o.index,o.sourceLayerIndex,n.index,et,It,fr,Y,_t,Kt,Fr,ve,o,A,j,Q,k)};if(Cr==="line")for(var ya=0,jr=o7(o.geometry,0,0,Nr,Nr);ya1){var Yn=IX(fn,pr,f.vertical||Ee,p,qe,kt);Yn&&Br(fn,Yn)}}else if(o.type==="Polygon")for(var kn=0,To=D3(o.geometry,0);knTh&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+ky+'. Reduce your "text-size".')):ct.kind==="composite"&&(et=[Pu*ve.compositeTextSizes[0].evaluate(k,{},Ee),Pu*ve.compositeTextSizes[1].evaluate(k,{},Ee)],(et[0]>Th||et[1]>Th)&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+ky+'. Reduce your "text-size".')),n.addSymbols(n.text,qe,et,F,A,k,j,o,Y.lineStartIndex,Y.lineLength,_e,Ee);for(var kt=0,_t=Q;kt<_t.length;kt+=1){var St=_t[kt];ne[St]=n.text.placedSymbolArray.length-1}return qe.length*4}function c7(n){for(var o in n)return n[o];return null}function GX(n,o,f,p,x,A,k,F,Y,j,Q,ne,_e,ve,Ee,qe,ct,et,kt,_t,St,It,Kt,pr,fr){var Fr,Cr=n.addToLineVertexArray(o,f),Ir,$r,qr,Br,ya=0,jr=0,Wa=0,yi=0,Xa=-1,ja=-1,Ua={},Mi=w(""),Di=0,tn=0;if(F._unevaluatedLayout.getValue("text-radial-offset")===void 0?(Fr=F.layout.get("text-offset").evaluate(St,{},pr).map(function(Ly){return Ly*Qn}),Di=Fr[0],tn=Fr[1]):(Di=F.layout.get("text-radial-offset").evaluate(St,{},pr)*Qn,tn=O3),n.allowVerticalPlacement&&p.vertical){var fn=F.layout.get("text-rotate").evaluate(St,{},pr),Yn=fn+90,kn=p.vertical;qr=new j1(Y,o,j,Q,ne,kn,_e,ve,Ee,Yn),k&&(Br=new j1(Y,o,j,Q,ne,k,ct,et,Ee,Yn))}if(x){var To=F.layout.get("icon-rotate").evaluate(St,{}),Ao=F.layout.get("icon-text-fit")!=="none",Wn=s7(x,To,Kt,Ao),Io=k?s7(k,To,Kt,Ao):void 0;$r=new j1(Y,o,j,Q,ne,x,ct,et,!1,To),ya=Wn.length*4;var Ro=n.iconSizeData,Bn=null;Ro.kind==="source"?(Bn=[Pu*F.layout.get("icon-size").evaluate(St,{})],Bn[0]>Th&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+ky+'. Reduce your "icon-size".')):Ro.kind==="composite"&&(Bn=[Pu*It.compositeIconSizes[0].evaluate(St,{},pr),Pu*It.compositeIconSizes[1].evaluate(St,{},pr)],(Bn[0]>Th||Bn[1]>Th)&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+ky+'. Reduce your "icon-size".')),n.addSymbols(n.icon,Wn,Bn,_t,kt,St,!1,o,Cr.lineStartIndex,Cr.lineLength,-1,pr),Xa=n.icon.placedSymbolArray.length-1,Io&&(jr=Io.length*4,n.addSymbols(n.icon,Io,Bn,_t,kt,St,Is.vertical,o,Cr.lineStartIndex,Cr.lineLength,-1,pr),ja=n.icon.placedSymbolArray.length-1)}for(var Fo in p.horizontal){var Rs=p.horizontal[Fo];if(!Ir){Mi=w(Rs.text);var yc=F.layout.get("text-rotate").evaluate(St,{},pr);Ir=new j1(Y,o,j,Q,ne,Rs,_e,ve,Ee,yc)}var Mh=Rs.positionedLines.length===1;if(Wa+=f7(n,o,Rs,A,F,Ee,St,qe,Cr,p.vertical?Is.horizontal:Is.horizontalOnly,Mh?Object.keys(p.horizontal):[Fo],Ua,Xa,It,pr),Mh)break}p.vertical&&(yi+=f7(n,o,p.vertical,A,F,Ee,St,qe,Cr,Is.vertical,["vertical"],Ua,ja,It,pr));var Sh=Ir?Ir.boxStartIndex:n.collisionBoxArray.length,kh=Ir?Ir.boxEndIndex:n.collisionBoxArray.length,g0=qr?qr.boxStartIndex:n.collisionBoxArray.length,Hl=qr?qr.boxEndIndex:n.collisionBoxArray.length,e_=$r?$r.boxStartIndex:n.collisionBoxArray.length,W3=$r?$r.boxEndIndex:n.collisionBoxArray.length,t_=Br?Br.boxStartIndex:n.collisionBoxArray.length,X3=Br?Br.boxEndIndex:n.collisionBoxArray.length,al=-1,_0=function(Ly,k7){return Ly&&Ly.circleDiameter?Math.max(Ly.circleDiameter,k7):k7};al=_0(Ir,al),al=_0(qr,al),al=_0($r,al),al=_0(Br,al);var r_=al>-1?1:0;r_&&(al*=fr/Qn),n.glyphOffsetArray.length>=mi.MAX_GLYPHS&&Ce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),St.sortKey!==void 0&&n.addToSortKeyRanges(n.symbolInstances.length,St.sortKey),n.symbolInstances.emplaceBack(o.x,o.y,Ua.right>=0?Ua.right:-1,Ua.center>=0?Ua.center:-1,Ua.left>=0?Ua.left:-1,Ua.vertical||-1,Xa,ja,Mi,Sh,kh,g0,Hl,e_,W3,t_,X3,j,Wa,yi,ya,jr,r_,0,_e,Di,tn,al)}function ZX(n,o,f,p){var x=n.compareText;if(!(o in x))x[o]=[];else for(var A=x[o],k=A.length-1;k>=0;k--)if(p.dist(A[k])0)&&(k.value.kind!=="constant"||k.value.value.length>0),Q=Y.value.kind!=="constant"||!!Y.value.value||Object.keys(Y.parameters).length>0,ne=A.get("symbol-sort-key");if(this.features=[],!(!j&&!Q)){for(var _e=f.iconDependencies,ve=f.glyphDependencies,Ee=f.availableImages,qe=new Jt(this.zoom),ct=0,et=o;ct=0;for(var yi=0,Xa=Fr.sections;yi=0;Y--)k[Y]={x:f[Y].x,y:f[Y].y,tileUnitDistanceFromAnchor:A},Y>0&&(A+=f[Y-1].dist(f[Y]));for(var j=0;j0},mi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},mi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},mi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},mi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},mi.prototype.addIndicesForPlacedSymbol=function(o,f){for(var p=o.placedSymbolArray.get(f),x=p.vertexStartIndex+p.numGlyphs*4,A=p.vertexStartIndex;A1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(o),this.sortedAngle=o,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var p=0,x=this.symbolInstanceIndexes;p=0&&j.indexOf(F)===Y&&f.addIndicesForPlacedSymbol(f.text,F)}),k.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,k.verticalPlacedTextSymbolIndex),k.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.placedIconSymbolIndex),k.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},y("SymbolBucket",mi,{omit:["layers","collisionBoxArray","features","compareText"]}),mi.MAX_GLYPHS=65535,mi.addDynamicAttributes=V3;function jX(n,o){return o.replace(/{([^{}]+)}/g,function(f,p){return p in n?String(n[p]):""})}var JX=new qn({"symbol-placement":new Ar(jt.layout_symbol["symbol-placement"]),"symbol-spacing":new Ar(jt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ar(jt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Hr(jt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ar(jt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ar(jt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ar(jt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ar(jt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ar(jt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Hr(jt.layout_symbol["icon-size"]),"icon-text-fit":new Ar(jt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ar(jt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Hr(jt.layout_symbol["icon-image"]),"icon-rotate":new Hr(jt.layout_symbol["icon-rotate"]),"icon-padding":new Ar(jt.layout_symbol["icon-padding"]),"icon-keep-upright":new Ar(jt.layout_symbol["icon-keep-upright"]),"icon-offset":new Hr(jt.layout_symbol["icon-offset"]),"icon-anchor":new Hr(jt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ar(jt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ar(jt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ar(jt.layout_symbol["text-rotation-alignment"]),"text-field":new Hr(jt.layout_symbol["text-field"]),"text-font":new Hr(jt.layout_symbol["text-font"]),"text-size":new Hr(jt.layout_symbol["text-size"]),"text-max-width":new Hr(jt.layout_symbol["text-max-width"]),"text-line-height":new Ar(jt.layout_symbol["text-line-height"]),"text-letter-spacing":new Hr(jt.layout_symbol["text-letter-spacing"]),"text-justify":new Hr(jt.layout_symbol["text-justify"]),"text-radial-offset":new Hr(jt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ar(jt.layout_symbol["text-variable-anchor"]),"text-anchor":new Hr(jt.layout_symbol["text-anchor"]),"text-max-angle":new Ar(jt.layout_symbol["text-max-angle"]),"text-writing-mode":new Ar(jt.layout_symbol["text-writing-mode"]),"text-rotate":new Hr(jt.layout_symbol["text-rotate"]),"text-padding":new Ar(jt.layout_symbol["text-padding"]),"text-keep-upright":new Ar(jt.layout_symbol["text-keep-upright"]),"text-transform":new Hr(jt.layout_symbol["text-transform"]),"text-offset":new Hr(jt.layout_symbol["text-offset"]),"text-allow-overlap":new Ar(jt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ar(jt.layout_symbol["text-ignore-placement"]),"text-optional":new Ar(jt.layout_symbol["text-optional"])}),KX=new qn({"icon-opacity":new Hr(jt.paint_symbol["icon-opacity"]),"icon-color":new Hr(jt.paint_symbol["icon-color"]),"icon-halo-color":new Hr(jt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Hr(jt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Hr(jt.paint_symbol["icon-halo-blur"]),"icon-translate":new Ar(jt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ar(jt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Hr(jt.paint_symbol["text-opacity"]),"text-color":new Hr(jt.paint_symbol["text-color"],{runtimeType:Ts,getOverride:function(n){return n.textColor},hasOverride:function(n){return!!n.textColor}}),"text-halo-color":new Hr(jt.paint_symbol["text-halo-color"]),"text-halo-width":new Hr(jt.paint_symbol["text-halo-width"]),"text-halo-blur":new Hr(jt.paint_symbol["text-halo-blur"]),"text-translate":new Ar(jt.paint_symbol["text-translate"]),"text-translate-anchor":new Ar(jt.paint_symbol["text-translate-anchor"])}),H3={paint:KX,layout:JX},p0=function(o){this.type=o.property.overrides?o.property.overrides.runtimeType:af,this.defaultValue=o};p0.prototype.evaluate=function(o){if(o.formattedSection){var f=this.defaultValue.property.overrides;if(f&&f.hasOverride(o.formattedSection))return f.getOverride(o.formattedSection)}return o.feature&&o.featureState?this.defaultValue.evaluate(o.feature,o.featureState):this.defaultValue.property.specification.default},p0.prototype.eachChild=function(o){if(!this.defaultValue.isConstant()){var f=this.defaultValue.value;o(f._styleExpression.expression)}},p0.prototype.outputDefined=function(){return!1},p0.prototype.serialize=function(){return null},y("FormatSectionOverride",p0,{omit:["defaultValue"]});var QX=(function(n){function o(f){n.call(this,f,H3)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.recalculate=function(p,x){if(n.prototype.recalculate.call(this,p,x),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var A=this.layout.get("text-writing-mode");if(A){for(var k=[],F=0,Y=A;F",targetMapId:x,sourceMapId:k.mapId})}}},m0.prototype.receive=function(o){var f=o.data,p=f.id;if(p&&!(f.targetMapId&&this.mapId!==f.targetMapId))if(f.type===""){delete this.tasks[p];var x=this.cancelCallbacks[p];delete this.cancelCallbacks[p],x&&x()}else nt()||f.mustQueue?(this.tasks[p]=f,this.taskQueue.push(p),this.invoker.trigger()):this.processTask(p,f)},m0.prototype.process=function(){if(this.taskQueue.length){var o=this.taskQueue.shift(),f=this.tasks[o];delete this.tasks[o],this.taskQueue.length&&this.invoker.trigger(),f&&this.processTask(o,f)}},m0.prototype.processTask=function(o,f){var p=this;if(f.type===""){var x=this.callbacks[o];delete this.callbacks[o],x&&(f.error?x(Z(f.error)):x(null,Z(f.data)))}else{var A=!1,k=Ct(this.globalScope)?void 0:[],F=f.hasCallback?function(_e,ve){A=!0,delete p.cancelCallbacks[o],p.target.postMessage({id:o,type:"",sourceMapId:p.mapId,error:_e?V(_e):null,data:V(ve,k)},k)}:function(_e){A=!0},Y=null,j=Z(f.data);if(this.parent[f.type])Y=this.parent[f.type](f.sourceMapId,j,F);else if(this.parent.getWorkerSource){var Q=f.type.split("."),ne=this.parent.getWorkerSource(f.sourceMapId,Q[0],j.source);Y=ne[Q[1]](j,F)}else F(new Error("Could not find function "+f.type));!A&&Y&&Y.cancel&&(this.cancelCallbacks[o]=Y.cancel)}},m0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function uj(n,o,f){o=Math.pow(2,f)-o-1;var p=m7(n*256,o*256,f),x=m7((n+1)*256,(o+1)*256,f);return p[0]+","+p[1]+","+x[0]+","+x[1]}function m7(n,o,f){var p=2*Math.PI*6378137/256/Math.pow(2,f),x=n*p-2*Math.PI*6378137/2,A=o*p-2*Math.PI*6378137/2;return[x,A]}var Mn=function(o,f){o&&(f?this.setSouthWest(o).setNorthEast(f):o.length===4?this.setSouthWest([o[0],o[1]]).setNorthEast([o[2],o[3]]):this.setSouthWest(o[0]).setNorthEast(o[1]))};Mn.prototype.setNorthEast=function(o){return this._ne=o instanceof Vi?new Vi(o.lng,o.lat):Vi.convert(o),this},Mn.prototype.setSouthWest=function(o){return this._sw=o instanceof Vi?new Vi(o.lng,o.lat):Vi.convert(o),this},Mn.prototype.extend=function(o){var f=this._sw,p=this._ne,x,A;if(o instanceof Vi)x=o,A=o;else if(o instanceof Mn){if(x=o._sw,A=o._ne,!x||!A)return this}else{if(Array.isArray(o))if(o.length===4||o.every(Array.isArray)){var k=o;return this.extend(Mn.convert(k))}else{var F=o;return this.extend(Vi.convert(F))}return this}return!f&&!p?(this._sw=new Vi(x.lng,x.lat),this._ne=new Vi(A.lng,A.lat)):(f.lng=Math.min(x.lng,f.lng),f.lat=Math.min(x.lat,f.lat),p.lng=Math.max(A.lng,p.lng),p.lat=Math.max(A.lat,p.lat)),this},Mn.prototype.getCenter=function(){return new Vi((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Mn.prototype.getSouthWest=function(){return this._sw},Mn.prototype.getNorthEast=function(){return this._ne},Mn.prototype.getNorthWest=function(){return new Vi(this.getWest(),this.getNorth())},Mn.prototype.getSouthEast=function(){return new Vi(this.getEast(),this.getSouth())},Mn.prototype.getWest=function(){return this._sw.lng},Mn.prototype.getSouth=function(){return this._sw.lat},Mn.prototype.getEast=function(){return this._ne.lng},Mn.prototype.getNorth=function(){return this._ne.lat},Mn.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Mn.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Mn.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Mn.prototype.contains=function(o){var f=Vi.convert(o),p=f.lng,x=f.lat,A=this._sw.lat<=x&&x<=this._ne.lat,k=this._sw.lng<=p&&p<=this._ne.lng;return this._sw.lng>this._ne.lng&&(k=this._sw.lng>=p&&p>=this._ne.lng),A&&k},Mn.convert=function(o){return!o||o instanceof Mn?o:new Mn(o)};var y7=63710088e-1,Vi=function(o,f){if(isNaN(o)||isNaN(f))throw new Error("Invalid LngLat object: ("+o+", "+f+")");if(this.lng=+o,this.lat=+f,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Vi.prototype.wrap=function(){return new Vi(O(this.lng,-180,180),this.lat)},Vi.prototype.toArray=function(){return[this.lng,this.lat]},Vi.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Vi.prototype.distanceTo=function(o){var f=Math.PI/180,p=this.lat*f,x=o.lat*f,A=Math.sin(p)*Math.sin(x)+Math.cos(p)*Math.cos(x)*Math.cos((o.lng-this.lng)*f),k=y7*Math.acos(Math.min(A,1));return k},Vi.prototype.toBounds=function(o){o===void 0&&(o=0);var f=40075017,p=360*o/f,x=p/Math.cos(Math.PI/180*this.lat);return new Mn(new Vi(this.lng-x,this.lat-p),new Vi(this.lng+x,this.lat+p))},Vi.convert=function(o){if(o instanceof Vi)return o;if(Array.isArray(o)&&(o.length===2||o.length===3))return new Vi(Number(o[0]),Number(o[1]));if(!Array.isArray(o)&&typeof o=="object"&&o!==null)return new Vi(Number("lng"in o?o.lng:o.lon),Number(o.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var g7=2*Math.PI*y7;function _7(n){return g7*Math.cos(n*Math.PI/180)}function x7(n){return(180+n)/360}function b7(n){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360}function w7(n,o){return n/_7(o)}function fj(n){return n*360-180}function Z3(n){var o=180-n*360;return 360/Math.PI*Math.atan(Math.exp(o*Math.PI/180))-90}function cj(n,o){return n*_7(Z3(o))}function hj(n){return 1/Math.cos(n*Math.PI/180)}var nd=function(o,f,p){p===void 0&&(p=0),this.x=+o,this.y=+f,this.z=+p};nd.fromLngLat=function(o,f){f===void 0&&(f=0);var p=Vi.convert(o);return new nd(x7(p.lng),b7(p.lat),w7(f,p.lat))},nd.prototype.toLngLat=function(){return new Vi(fj(this.x),Z3(this.y))},nd.prototype.toAltitude=function(){return cj(this.z,this.y)},nd.prototype.meterInMercatorCoordinateUnits=function(){return 1/g7*hj(Z3(this.y))};var od=function(o,f,p){this.z=o,this.x=f,this.y=p,this.key=Ey(0,o,o,f,p)};od.prototype.equals=function(o){return this.z===o.z&&this.x===o.x&&this.y===o.y},od.prototype.url=function(o,f){var p=uj(this.x,this.y,this.z),x=vj(this.z,this.x,this.y);return o[(this.x+this.y)%o.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(f==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",x).replace("{bbox-epsg-3857}",p)},od.prototype.getTilePoint=function(o){var f=Math.pow(2,this.z);return new v((o.x*f-this.x)*Nr,(o.y*f-this.y)*Nr)},od.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var T7=function(o,f){this.wrap=o,this.canonical=f,this.key=Ey(o,f.z,f.z,f.x,f.y)},Sn=function(o,f,p,x,A){this.overscaledZ=o,this.wrap=f,this.canonical=new od(p,+x,+A),this.key=Ey(f,o,p,x,A)};Sn.prototype.equals=function(o){return this.overscaledZ===o.overscaledZ&&this.wrap===o.wrap&&this.canonical.equals(o.canonical)},Sn.prototype.scaledTo=function(o){var f=this.canonical.z-o;return o>this.canonical.z?new Sn(o,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Sn(o,this.wrap,o,this.canonical.x>>f,this.canonical.y>>f)},Sn.prototype.calculateScaledKey=function(o,f){var p=this.canonical.z-o;return o>this.canonical.z?Ey(this.wrap*+f,o,this.canonical.z,this.canonical.x,this.canonical.y):Ey(this.wrap*+f,o,o,this.canonical.x>>p,this.canonical.y>>p)},Sn.prototype.isChildOf=function(o){if(o.wrap!==this.wrap)return!1;var f=this.canonical.z-o.canonical.z;return o.overscaledZ===0||o.overscaledZ>f&&o.canonical.y===this.canonical.y>>f},Sn.prototype.children=function(o){if(this.overscaledZ>=o)return[new Sn(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var f=this.canonical.z+1,p=this.canonical.x*2,x=this.canonical.y*2;return[new Sn(f,this.wrap,f,p,x),new Sn(f,this.wrap,f,p+1,x),new Sn(f,this.wrap,f,p,x+1),new Sn(f,this.wrap,f,p+1,x+1)]},Sn.prototype.isLessThan=function(o){return this.wrapo.wrap?!1:this.overscaledZo.overscaledZ?!1:this.canonical.xo.canonical.x?!1:this.canonical.y0;A--)x=1<=this.dim+1||f<-1||f>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(f+1)*this.stride+(o+1)},pc.prototype._unpackMapbox=function(o,f,p){return(o*256*256+f*256+p)/10-1e4},pc.prototype._unpackTerrarium=function(o,f,p){return o*256+f+p/256-32768},pc.prototype.getPixels=function(){return new ts({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},pc.prototype.backfillBorder=function(o,f,p){if(this.dim!==o.dim)throw new Error("dem dimension mismatch");var x=f*this.dim,A=f*this.dim+this.dim,k=p*this.dim,F=p*this.dim+this.dim;switch(f){case-1:x=A-1;break;case 1:A=x+1;break}switch(p){case-1:k=F-1;break;case 1:F=k+1;break}for(var Y=-f*this.dim,j=-p*this.dim,Q=k;Q=0&&ne[3]>=0&&Y.insert(F,ne[0],ne[1],ne[2],ne[3])}},mc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new n0.VectorTile(new V1(this.rawTileData)).layers,this.sourceLayerCoder=new Q1(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},mc.prototype.query=function(o,f,p,x){var A=this;this.loadVTLayers();for(var k=o.params||{},F=Nr/o.tileSize/o.scale,Y=df(k.filter),j=o.queryGeometry,Q=o.queryPadding*F,ne=M7(j),_e=this.grid.query(ne.minX-Q,ne.minY-Q,ne.maxX+Q,ne.maxY+Q),ve=M7(o.cameraQueryGeometry),Ee=this.grid3D.query(ve.minX-Q,ve.minY-Q,ve.maxX+Q,ve.maxY+Q,function(Kt,pr,fr,Fr){return Vl(o.cameraQueryGeometry,Kt-Q,pr-Q,fr+Q,Fr+Q)}),qe=0,ct=Ee;qex)A=!1;else if(!f)A=!0;else if(this.expirationTime=ea.maxzoom)&&ea.visibility!=="none"){T(gr,this.zoom,ue);var ga=Mt[ea.id]=ea.createBucket({index:yt.bucketLayerIDs.length,layers:gr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Zr,sourceID:this.source});ga.populate(Or,Rt,this.tileID.canonical),yt.bucketLayerIDs.push(gr.map(function(Za){return Za.id}))}}}}var nr,wi,Ca,oi,fa=a.mapObject(Rt.glyphDependencies,function(Za){return Object.keys(Za).map(Number)});Object.keys(fa).length?Le.send("getGlyphs",{uid:this.uid,stacks:fa},function(Za,Kn){nr||(nr=Za,wi=Kn,bs.call(rt))}):wi={};var In=Object.keys(Rt.iconDependencies);In.length?Le.send("getImages",{icons:In,source:this.source,tileID:this.tileID,type:"icons"},function(Za,Kn){nr||(nr=Za,Ca=Kn,bs.call(rt))}):Ca={};var Co=Object.keys(Rt.patternDependencies);Co.length?Le.send("getImages",{icons:Co,source:this.source,tileID:this.tileID,type:"patterns"},function(Za,Kn){nr||(nr=Za,oi=Kn,bs.call(rt))}):oi={},bs.call(this);function bs(){if(nr)return Ne(nr);if(wi&&Ca&&oi){var Za=new m(wi),Kn=new a.ImageAtlas(Ca,oi);for(var du in Mt){var Oi=Mt[du];Oi instanceof a.SymbolBucket?(T(Oi.layers,this.zoom,ue),a.performSymbolLayout(Oi,wi,Za.positions,Ca,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Oi.hasPattern&&(Oi instanceof a.LineBucket||Oi instanceof a.FillBucket||Oi instanceof a.FillExtrusionBucket)&&(T(Oi.layers,this.zoom,ue),Oi.addFeatures(Rt,this.tileID.canonical,Kn.patternPositions))}this.status="done",Ne(null,{buckets:a.values(Mt).filter(function(pl){return!pl.isEmpty()}),featureIndex:yt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Za.image,imageAtlas:Kn,glyphMap:this.returnDependencies?wi:null,iconMap:this.returnDependencies?Ca:null,glyphPositions:this.returnDependencies?Za.positions:null})}}};function T(le,te,se){for(var ue=new a.EvaluationParameters(te),Le=0,Ne=le;Le=0!=!!te&&le.reverse()}var N=a.vectorTile.VectorTileFeature.prototype.toGeoJSON,H=function(te){this._feature=te,this.extent=a.EXTENT,this.type=te.type,this.properties=te.tags,"id"in te&&!isNaN(te.id)&&(this.id=parseInt(te.id,10))};H.prototype.loadGeometry=function(){if(this._feature.type===1){for(var te=[],se=0,ue=this._feature.geometry;se>31}function nt(le,te){for(var se=le.loadGeometry(),ue=le.type,Le=0,Ne=0,rt=se.length,Ye=0;Ye>1;Ct(le,te,rt,ue,Le,Ne%2),Ge(le,te,se,ue,rt-1,Ne+1),Ge(le,te,se,rt+1,Le,Ne+1)}}function Ct(le,te,se,ue,Le,Ne){for(;Le>ue;){if(Le-ue>600){var rt=Le-ue+1,Ye=se-ue+1,yt=Math.log(rt),Mt=.5*Math.exp(2*yt/3),Rt=.5*Math.sqrt(yt*Mt*(rt-Mt)/rt)*(Ye-rt/2<0?-1:1),tr=Math.max(ue,Math.floor(se-Ye*Mt/rt+Rt)),Xt=Math.min(Le,Math.floor(se+(rt-Ye)*Mt/rt+Rt));Ct(le,te,se,tr,Xt,Ne)}var Sr=te[2*se+Ne],Zr=ue,Or=Le;for(lt(le,te,ue,se),te[2*Le+Ne]>Sr&<(le,te,ue,Le);ZrSr;)Or--}te[2*ue+Ne]===Sr?lt(le,te,ue,Or):(Or++,lt(le,te,Or,Le)),Or<=se&&(ue=Or+1),se<=Or&&(Le=Or-1)}}function lt(le,te,se,ue){mt(le,se,ue),mt(te,2*se,2*ue),mt(te,2*se+1,2*ue+1)}function mt(le,te,se){var ue=le[te];le[te]=le[se],le[se]=ue}function Ot(le,te,se,ue,Le,Ne,rt){for(var Ye=[0,le.length-1,0],yt=[],Mt,Rt;Ye.length;){var tr=Ye.pop(),Xt=Ye.pop(),Sr=Ye.pop();if(Xt-Sr<=rt){for(var Zr=Sr;Zr<=Xt;Zr++)Mt=te[2*Zr],Rt=te[2*Zr+1],Mt>=se&&Mt<=Le&&Rt>=ue&&Rt<=Ne&&yt.push(le[Zr]);continue}var Or=Math.floor((Sr+Xt)/2);Mt=te[2*Or],Rt=te[2*Or+1],Mt>=se&&Mt<=Le&&Rt>=ue&&Rt<=Ne&&yt.push(le[Or]);var ca=(tr+1)%2;(tr===0?se<=Mt:ue<=Rt)&&(Ye.push(Sr),Ye.push(Or-1),Ye.push(ca)),(tr===0?Le>=Mt:Ne>=Rt)&&(Ye.push(Or+1),Ye.push(Xt),Ye.push(ca))}return yt}function ft(le,te,se,ue,Le,Ne){for(var rt=[0,le.length-1,0],Ye=[],yt=Le*Le;rt.length;){var Mt=rt.pop(),Rt=rt.pop(),tr=rt.pop();if(Rt-tr<=Ne){for(var Xt=tr;Xt<=Rt;Xt++)pe(te[2*Xt],te[2*Xt+1],se,ue)<=yt&&Ye.push(le[Xt]);continue}var Sr=Math.floor((tr+Rt)/2),Zr=te[2*Sr],Or=te[2*Sr+1];pe(Zr,Or,se,ue)<=yt&&Ye.push(le[Sr]);var ca=(Mt+1)%2;(Mt===0?se-Le<=Zr:ue-Le<=Or)&&(rt.push(tr),rt.push(Sr-1),rt.push(ca)),(Mt===0?se+Le>=Zr:ue+Le>=Or)&&(rt.push(Sr+1),rt.push(Rt),rt.push(ca))}return Ye}function pe(le,te,se,ue){var Le=le-se,Ne=te-ue;return Le*Le+Ne*Ne}var De=function(le){return le[0]},ye=function(le){return le[1]},Oe=function(te,se,ue,Le,Ne){se===void 0&&(se=De),ue===void 0&&(ue=ye),Le===void 0&&(Le=64),Ne===void 0&&(Ne=Float64Array),this.nodeSize=Le,this.points=te;for(var rt=te.length<65536?Uint16Array:Uint32Array,Ye=this.ids=new rt(te.length),yt=this.coords=new Ne(te.length*2),Mt=0;Mt=Le;Rt--){var tr=+Date.now();yt=this._cluster(yt,Rt),this.trees[Rt]=new Oe(yt,Be,ut,rt,Float32Array),ue&&console.log("z%d: %d clusters in %dms",Rt,yt.length,+Date.now()-tr)}return ue&&console.timeEnd("total time"),this},Je.prototype.getClusters=function(te,se){var ue=((te[0]+180)%360+360)%360-180,Le=Math.max(-90,Math.min(90,te[1])),Ne=te[2]===180?180:((te[2]+180)%360+360)%360-180,rt=Math.max(-90,Math.min(90,te[3]));if(te[2]-te[0]>=360)ue=-180,Ne=180;else if(ue>Ne){var Ye=this.getClusters([ue,Le,180,rt],se),yt=this.getClusters([-180,Le,Ne,rt],se);return Ye.concat(yt)}for(var Mt=this.trees[this._limitZoom(se)],Rt=Mt.range(qt(ue),Dt(rt),qt(Ne),Dt(Le)),tr=[],Xt=0,Sr=Rt;Xtse&&(Or+=ti.numPoints||1)}if(Or>=yt){for(var Yr=tr.x*Zr,gr=tr.y*Zr,ea=Ye&&Zr>1?this._map(tr,!0):null,ga=(Rt<<5)+(se+1)+this.points.length,nr=0,wi=Sr;nr1)for(var In=0,Co=Sr;In>5},Je.prototype._getOriginZoom=function(te){return(te-this.points.length)%32},Je.prototype._map=function(te,se){if(te.numPoints)return se?Wt({},te.properties):te.properties;var ue=this.points[te.index].properties,Le=this.options.map(ue);return se&&Le===ue?Wt({},Le):Le};function Pt(le,te,se,ue,Le){return{x:le,y:te,zoom:1/0,id:se,parentId:-1,numPoints:ue,properties:Le}}function xt(le,te){var se=le.geometry.coordinates,ue=se[0],Le=se[1];return{x:qt(ue),y:Dt(Le),zoom:1/0,index:te,parentId:-1}}function bt(le){return{type:"Feature",id:le.id,properties:Vt(le),geometry:{type:"Point",coordinates:[At(le.x),Ut(le.y)]}}}function Vt(le){var te=le.numPoints,se=te>=1e4?Math.round(te/1e3)+"k":te>=1e3?Math.round(te/100)/10+"k":te;return Wt(Wt({},le.properties),{cluster:!0,cluster_id:le.id,point_count:te,point_count_abbreviated:se})}function qt(le){return le/360+.5}function Dt(le){var te=Math.sin(le*Math.PI/180),se=.5-.25*Math.log((1+te)/(1-te))/Math.PI;return se<0?0:se>1?1:se}function At(le){return(le-.5)*360}function Ut(le){var te=(180-le*360)*Math.PI/180;return 360*Math.atan(Math.exp(te))/Math.PI-90}function Wt(le,te){for(var se in te)le[se]=te[se];return le}function Be(le){return le.x}function ut(le){return le.y}function sr(le,te,se,ue){for(var Le=ue,Ne=se-te>>1,rt=se-te,Ye,yt=le[te],Mt=le[te+1],Rt=le[se],tr=le[se+1],Xt=te+3;XtLe)Ye=Xt,Le=Sr;else if(Sr===Le){var Zr=Math.abs(Xt-Ne);Zrue&&(Ye-te>3&&sr(le,te,Ye,ue),le[Ye+2]=Le,se-Ye>3&&sr(le,Ye,se,ue))}function Pr(le,te,se,ue,Le,Ne){var rt=Le-se,Ye=Ne-ue;if(rt!==0||Ye!==0){var yt=((le-se)*rt+(te-ue)*Ye)/(rt*rt+Ye*Ye);yt>1?(se=Le,ue=Ne):yt>0&&(se+=rt*yt,ue+=Ye*yt)}return rt=le-se,Ye=te-ue,rt*rt+Ye*Ye}function Lt(le,te,se,ue){var Le={id:typeof le=="undefined"?null:le,type:te,geometry:se,tags:ue,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return vt(Le),Le}function vt(le){var te=le.geometry,se=le.type;if(se==="Point"||se==="MultiPoint"||se==="LineString")pt(le,te);else if(se==="Polygon"||se==="MultiLineString")for(var ue=0;ue0&&(ue?rt+=(Le*Mt-yt*Ne)/2:rt+=Math.sqrt(Math.pow(yt-Le,2)+Math.pow(Mt-Ne,2))),Le=yt,Ne=Mt}var Rt=te.length-3;te[2]=1,sr(te,0,Rt,se),te[Rt+2]=1,te.size=Math.abs(rt),te.start=0,te.end=te.size}function hr(le,te,se,ue){for(var Le=0;Le1?1:se}function Et(le,te,se,ue,Le,Ne,rt,Ye){if(se/=te,ue/=te,Ne>=se&&rt=ue)return null;for(var yt=[],Mt=0;Mt=se&&Zr=ue)continue;var Or=[];if(Xt==="Point"||Xt==="MultiPoint")Fe(tr,Or,se,ue,Le);else if(Xt==="LineString")Ue(tr,Or,se,ue,Le,!1,Ye.lineMetrics);else if(Xt==="MultiLineString")Tt(tr,Or,se,ue,Le,!1);else if(Xt==="Polygon")Tt(tr,Or,se,ue,Le,!0);else if(Xt==="MultiPolygon")for(var ca=0;ca=se&&rt<=ue&&(te.push(le[Ne]),te.push(le[Ne+1]),te.push(le[Ne+2]))}}function Ue(le,te,se,ue,Le,Ne,rt){for(var Ye=wt(le),yt=Le===0?Mr:Tr,Mt=le.start,Rt,tr,Xt=0;Xtse&&(tr=yt(Ye,Sr,Zr,ca,ua,se),rt&&(Ye.start=Mt+Rt*tr)):Fa>ue?ti=se&&(tr=yt(Ye,Sr,Zr,ca,ua,se),Yr=!0),ti>ue&&Fa<=ue&&(tr=yt(Ye,Sr,Zr,ca,ua,ue),Yr=!0),!Ne&&Yr&&(rt&&(Ye.end=Mt+Rt*tr),te.push(Ye),Ye=wt(le)),rt&&(Mt+=Rt)}var gr=le.length-3;Sr=le[gr],Zr=le[gr+1],Or=le[gr+2],Fa=Le===0?Sr:Zr,Fa>=se&&Fa<=ue&&vr(Ye,Sr,Zr,Or),gr=Ye.length-3,Ne&&gr>=3&&(Ye[gr]!==Ye[0]||Ye[gr+1]!==Ye[1])&&vr(Ye,Ye[0],Ye[1],Ye[2]),Ye.length&&te.push(Ye)}function wt(le){var te=[];return te.size=le.size,te.start=le.start,te.end=le.end,te}function Tt(le,te,se,ue,Le,Ne){for(var rt=0;rtrt.maxX&&(rt.maxX=Rt),tr>rt.maxY&&(rt.maxY=tr)}return rt}function Hi(le,te,se,ue){var Le=te.geometry,Ne=te.type,rt=[];if(Ne==="Point"||Ne==="MultiPoint")for(var Ye=0;Ye0&&te.size<(Le?rt:ue)){se.numPoints+=te.length/3;return}for(var Ye=[],yt=0;ytrt)&&(se.numSimplified++,Ye.push(te[yt]),Ye.push(te[yt+1])),se.numPoints++;Le&&_n(Ye,Ne),le.push(Ye)}function _n(le,te){for(var se=0,ue=0,Le=le.length,Ne=Le-2;ue0===te)for(ue=0,Le=le.length;ue24)throw new Error("maxZoom should be in the 0-24 range");if(te.promoteId&&te.generateId)throw new Error("promoteId and generateId cannot be used together.");var ue=Nt(le,te);this.tiles={},this.tileCoords=[],se&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",te.indexMaxZoom,te.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ue=Gr(ue,te),ue.length&&this.splitTile(ue,0,0,0),se&&(ue.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Gi.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Gi.prototype.splitTile=function(le,te,se,ue,Le,Ne,rt){for(var Ye=[le,te,se,ue],yt=this.options,Mt=yt.debug;Ye.length;){ue=Ye.pop(),se=Ye.pop(),te=Ye.pop(),le=Ye.pop();var Rt=1<1&&console.time("creation"),Xt=this.tiles[tr]=hi(le,te,se,ue,yt),this.tileCoords.push({z:te,x:se,y:ue}),Mt)){Mt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",te,se,ue,Xt.numFeatures,Xt.numPoints,Xt.numSimplified),console.timeEnd("creation"));var Sr="z"+te;this.stats[Sr]=(this.stats[Sr]||0)+1,this.total++}if(Xt.source=le,Le){if(te===yt.maxZoom||te===Le)continue;var Zr=1<1&&console.time("clipping");var Or=.5*yt.buffer/yt.extent,ca=.5-Or,ua=.5+Or,Fa=1+Or,ti,Yr,gr,ea,ga,nr;ti=Yr=gr=ea=null,ga=Et(le,Rt,se-Or,se+ua,0,Xt.minX,Xt.maxX,yt),nr=Et(le,Rt,se+ca,se+Fa,0,Xt.minX,Xt.maxX,yt),le=null,ga&&(ti=Et(ga,Rt,ue-Or,ue+ua,1,Xt.minY,Xt.maxY,yt),Yr=Et(ga,Rt,ue+ca,ue+Fa,1,Xt.minY,Xt.maxY,yt),ga=null),nr&&(gr=Et(nr,Rt,ue-Or,ue+ua,1,Xt.minY,Xt.maxY,yt),ea=Et(nr,Rt,ue+ca,ue+Fa,1,Xt.minY,Xt.maxY,yt),nr=null),Mt>1&&console.timeEnd("clipping"),Ye.push(ti||[],te+1,se*2,ue*2),Ye.push(Yr||[],te+1,se*2,ue*2+1),Ye.push(gr||[],te+1,se*2+1,ue*2),Ye.push(ea||[],te+1,se*2+1,ue*2+1)}}},Gi.prototype.getTile=function(le,te,se){var ue=this.options,Le=ue.extent,Ne=ue.debug;if(le<0||le>24)return null;var rt=1<1&&console.log("drilling down to z%d-%d-%d",le,te,se);for(var yt=le,Mt=te,Rt=se,tr;!tr&&yt>0;)yt--,Mt=Math.floor(Mt/2),Rt=Math.floor(Rt/2),tr=this.tiles[ma(yt,Mt,Rt)];return!tr||!tr.source?null:(Ne>1&&console.log("found parent tile z%d-%d-%d",yt,Mt,Rt),Ne>1&&console.time("drilling down"),this.splitTile(tr.source,yt,Mt,Rt,le,te,se),Ne>1&&console.timeEnd("drilling down"),this.tiles[Ye]?ai(this.tiles[Ye],Le):null)};function ma(le,te,se){return((1<=0?0:g.button},l.remove=function(g){g.parentNode&&g.parentNode.removeChild(g)};function E(g,c,b){var d,w,D,R=a.browser.devicePixelRatio>1?"@2x":"",G=a.getJSON(c.transformRequest(c.normalizeSpriteURL(g,R,".json"),a.ResourceType.SpriteJSON),function(ce,we){G=null,D||(D=ce,d=we,re())}),K=a.getImage(c.transformRequest(c.normalizeSpriteURL(g,R,".png"),a.ResourceType.SpriteImage),function(ce,we){K=null,D||(D=ce,w=we,re())});function re(){if(D)b(D);else if(d&&w){var ce=a.browser.getImageData(w),we={};for(var be in d){var Re=d[be],We=Re.width,Ze=Re.height,Ve=Re.x,Ke=Re.y,dt=Re.sdf,zt=Re.pixelRatio,Ft=Re.stretchX,Qt=Re.stretchY,rr=Re.content,Yt=new a.RGBAImage({width:We,height:Ze});a.RGBAImage.copy(ce,Yt,{x:Ve,y:Ke},{x:0,y:0},{width:We,height:Ze}),we[be]={data:Yt,pixelRatio:zt,sdf:dt,stretchX:Ft,stretchY:Qt,content:rr}}b(null,we)}}return{cancel:function(){G&&(G.cancel(),G=null),K&&(K.cancel(),K=null)}}}function L(g){var c=g.userImage;if(c&&c.render){var b=c.render();if(b)return g.data.replace(new Uint8Array(c.data.buffer)),!0}return!1}var I=1,O=(function(g){function c(){g.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.RGBAImage({width:1,height:1}),this.dirty=!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.isLoaded=function(){return this.loaded},c.prototype.setLoaded=function(d){if(this.loaded!==d&&(this.loaded=d,d)){for(var w=0,D=this.requestors;w=0?1.2:1))}U.prototype.draw=function(g){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(g,this.buffer,this.middle);for(var c=this.ctx.getImageData(0,0,this.size,this.size),b=new Uint8ClampedArray(this.size*this.size),d=0;d65535){ce(new Error("glyphs > 65535 not supported"));return}if(Re.ranges[Ze]){ce(null,{stack:we,id:be,glyph:We});return}var Ve=Re.requests[Ze];Ve||(Ve=Re.requests[Ze]=[],ee.loadGlyphRange(we,Ze,d.url,d.requestManager,function(Ke,dt){if(dt){for(var zt in dt)d._doesCharSupportLocalGlyph(+zt)||(Re.glyphs[+zt]=dt[+zt]);Re.ranges[Ze]=!0}for(var Ft=0,Qt=Ve;Ft1&&(re=c[++K]);var we=Math.abs(ce-re.left),be=Math.abs(ce-re.right),Re=Math.min(we,be),We=void 0,Ze=D/d*(w+1);if(re.isDash){var Ve=w-Math.abs(Ze);We=Math.sqrt(Re*Re+Ve*Ve)}else We=w-Math.sqrt(Re*Re+Ze*Ze);this.data[G+ce]=Math.max(0,Math.min(255,We+128))}},Te.prototype.addRegularDash=function(c){for(var b=c.length-1;b>=0;--b){var d=c[b],w=c[b+1];d.zeroLength?c.splice(b,1):w&&w.isDash===d.isDash&&(w.left=d.left,c.splice(b,1))}var D=c[0],R=c[c.length-1];D.isDash===R.isDash&&(D.left=R.left-this.width,R.right=D.right+this.width);for(var G=this.width*this.nextRow,K=0,re=c[K],ce=0;ce1&&(re=c[++K]);var we=Math.abs(ce-re.left),be=Math.abs(ce-re.right),Re=Math.min(we,be),We=re.isDash?Re:-Re;this.data[G+ce]=Math.max(0,Math.min(255,We+128))}},Te.prototype.addDash=function(c,b){var d=b?7:0,w=2*d+1;if(this.nextRow+w>this.height)return a.warnOnce("LineAtlas out of space"),null;for(var D=0,R=0;R=d.minX&&c.x=d.minY&&c.y0&&(ce[new a.OverscaledTileID(d.overscaledZ,G,w.z,R,w.y-1).key]={backfilled:!1},ce[new a.OverscaledTileID(d.overscaledZ,d.wrap,w.z,w.x,w.y-1).key]={backfilled:!1},ce[new a.OverscaledTileID(d.overscaledZ,re,w.z,K,w.y-1).key]={backfilled:!1}),w.y+10&&(D.resourceTiming=d._resourceTiming,d._resourceTiming=[]),d.fire(new a.Event("data",D))})},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setData=function(d){var w=this;return this._data=d,this.fire(new a.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(D){if(D){w.fire(new a.ErrorEvent(D));return}var R={dataType:"source",sourceDataType:"content"};w._collectResourceTiming&&w._resourceTiming&&w._resourceTiming.length>0&&(R.resourceTiming=w._resourceTiming,w._resourceTiming=[]),w.fire(new a.Event("data",R))}),this},c.prototype.getClusterExpansionZoom=function(d,w){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:d,source:this.id},w),this},c.prototype.getClusterChildren=function(d,w){return this.actor.send("geojson.getClusterChildren",{clusterId:d,source:this.id},w),this},c.prototype.getClusterLeaves=function(d,w,D,R){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:d,limit:w,offset:D},R),this},c.prototype._updateWorkerData=function(d){var w=this;this._loaded=!1;var D=a.extend({},this.workerOptions),R=this._data;typeof R=="string"?(D.request=this.map._requestManager.transformRequest(a.browser.resolveURL(R),a.ResourceType.Source),D.request.collectResourceTiming=this._collectResourceTiming):D.data=JSON.stringify(R),this.actor.send(this.type+".loadData",D,function(G,K){w._removed||K&&K.abandoned||(w._loaded=!0,K&&K.resourceTiming&&K.resourceTiming[w.id]&&(w._resourceTiming=K.resourceTiming[w.id].slice(0)),w.actor.send(w.type+".coalesce",{source:D.source},null),d(G))})},c.prototype.loaded=function(){return this._loaded},c.prototype.loadTile=function(d,w){var D=this,R=d.actor?"reloadTile":"loadTile";d.actor=this.actor;var G={type:this.type,uid:d.uid,tileID:d.tileID,zoom:d.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};d.request=this.actor.send(R,G,function(K,re){return delete d.request,d.unloadVectorData(),d.aborted?w(null):K?w(K):(d.loadVectorData(re,D.map.painter,R==="reloadTile"),w(null))})},c.prototype.abortTile=function(d){d.request&&(d.request.cancel(),delete d.request),d.aborted=!0},c.prototype.unloadTile=function(d){d.unloadVectorData(),this.actor.send("removeTile",{uid:d.uid,type:this.type,source:this.id})},c.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},c.prototype.serialize=function(){return a.extend({},this._options,{type:this.type,data:this._data})},c.prototype.hasTransition=function(){return!1},c})(a.Evented),it=a.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),nt=(function(g){function c(b,d,w,D){g.call(this),this.id=b,this.dispatcher=w,this.coordinates=d.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(D),this.options=d}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(d,w){var D=this;this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this.url=this.options.url,a.getImage(this.map._requestManager.transformRequest(this.url,a.ResourceType.Image),function(R,G){D._loaded=!0,R?D.fire(new a.ErrorEvent(R)):G&&(D.image=G,d&&(D.coordinates=d),w&&w(),D._finishLoading())})},c.prototype.loaded=function(){return this._loaded},c.prototype.updateImage=function(d){var w=this;return!this.image||!d.url?this:(this.options.url=d.url,this.load(d.coordinates,function(){w.texture=null}),this)},c.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})))},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setCoordinates=function(d){var w=this;this.coordinates=d;var D=d.map(a.MercatorCoordinate.fromLngLat);this.tileID=gt(D),this.minzoom=this.maxzoom=this.tileID.z;var R=D.map(function(G){return w.tileID.getTilePoint(G)._round()});return this._boundsArray=new a.StructArrayLayout4i8,this._boundsArray.emplaceBack(R[0].x,R[0].y,0,0),this._boundsArray.emplaceBack(R[1].x,R[1].y,a.EXTENT,0),this._boundsArray.emplaceBack(R[3].x,R[3].y,0,a.EXTENT),this._boundsArray.emplaceBack(R[2].x,R[2].y,a.EXTENT,a.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})),this},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,it.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new a.Texture(d,this.image,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var D in this.tiles){var R=this.tiles[D];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.loadTile=function(d,w){this.tileID&&this.tileID.equals(d.tileID.canonical)?(this.tiles[String(d.tileID.wrap)]=d,d.buckets={},w(null)):(d.state="errored",w(null))},c.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return!1},c})(a.Evented);function gt(g){for(var c=1/0,b=1/0,d=-1/0,w=-1/0,D=0,R=g;Dw.end(0)?this.fire(new a.ErrorEvent(new a.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+w.start(0)+" and "+w.end(0)+"-second mark."))):this.video.currentTime=d}},c.prototype.getVideo=function(){return this.video},c.prototype.onAdd=function(d){this.map||(this.map=d,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,it.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE),w.texSubImage2D(w.TEXTURE_2D,0,0,0,w.RGBA,w.UNSIGNED_BYTE,this.video)):(this.texture=new a.Texture(d,this.video,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var D in this.tiles){var R=this.tiles[D];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this.video&&!this.video.paused},c})(nt),Ct=(function(g){function c(b,d,w,D){g.call(this,b,d,w,D),d.coordinates?(!Array.isArray(d.coordinates)||d.coordinates.length!==4||d.coordinates.some(function(R){return!Array.isArray(R)||R.length!==2||R.some(function(G){return typeof G!="number"})}))&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "coordinates"'))),d.animate&&typeof d.animate!="boolean"&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'optional "animate" property must be a boolean value'))),d.canvas?typeof d.canvas!="string"&&!(d.canvas instanceof a.window.HTMLCanvasElement)&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "canvas"'))),this.options=d,this.animate=d.animate!==void 0?d.animate:!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof a.window.HTMLCanvasElement?this.options.canvas:a.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new a.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},c.prototype.getCanvas=function(){return this.canvas},c.prototype.onAdd=function(d){this.map=d,this.load(),this.canvas&&this.animate&&this.play()},c.prototype.onRemove=function(){this.pause()},c.prototype.prepare=function(){var d=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,d=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,d=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var w=this.map.painter.context,D=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,it.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(d||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a.Texture(w,this.canvas,D.RGBA,{premultiply:!0});for(var R in this.tiles){var G=this.tiles[R];G.state!=="loaded"&&(G.state="loaded",G.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this._playing},c.prototype._hasInvalidDimensions=function(){for(var d=0,w=[this.canvas.width,this.canvas.height];dthis.max){var G=this._getAndRemoveByKey(this.order[0]);G&&this.onRemove(G)}return this},xt.prototype.has=function(c){return c.wrapped().key in this.data},xt.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},xt.prototype._getAndRemoveByKey=function(c){var b=this.data[c].shift();return b.timeout&&clearTimeout(b.timeout),this.data[c].length===0&&delete this.data[c],this.order.splice(this.order.indexOf(c),1),b.value},xt.prototype.getByKey=function(c){var b=this.data[c];return b?b[0].value:null},xt.prototype.get=function(c){if(!this.has(c))return null;var b=this.data[c.wrapped().key][0];return b.value},xt.prototype.remove=function(c,b){if(!this.has(c))return this;var d=c.wrapped().key,w=b===void 0?0:this.data[d].indexOf(b),D=this.data[d][w];return this.data[d].splice(w,1),D.timeout&&clearTimeout(D.timeout),this.data[d].length===0&&delete this.data[d],this.onRemove(D.value),this.order.splice(this.order.indexOf(d),1),this},xt.prototype.setMaxSize=function(c){for(this.max=c;this.order.length>this.max;){var b=this._getAndRemoveByKey(this.order[0]);b&&this.onRemove(b)}return this},xt.prototype.filter=function(c){var b=[];for(var d in this.data)for(var w=0,D=this.data[d];w1||(Math.abs(we)>1&&(Math.abs(we+Re)===1?we+=Re:Math.abs(we-Re)===1&&(we-=Re)),!(!ce.dem||!re.dem)&&(re.dem.backfillBorder(ce.dem,we,be),re.neighboringTiles&&re.neighboringTiles[We]&&(re.neighboringTiles[We].backfilled=!0)))}},c.prototype.getTile=function(d){return this.getTileByID(d.key)},c.prototype.getTileByID=function(d){return this._tiles[d]},c.prototype._retainLoadedChildren=function(d,w,D,R){for(var G in this._tiles){var K=this._tiles[G];if(!(R[G]||!K.hasData()||K.tileID.overscaledZ<=w||K.tileID.overscaledZ>D)){for(var re=K.tileID;K&&K.tileID.overscaledZ>w+1;){var ce=K.tileID.scaledTo(K.tileID.overscaledZ-1);K=this._tiles[ce.key],K&&K.hasData()&&(re=ce)}for(var we=re;we.overscaledZ>w;)if(we=we.scaledTo(we.overscaledZ-1),d[we.key]){R[re.key]=re;break}}}},c.prototype.findLoadedParent=function(d,w){if(d.key in this._loadedParentTiles){var D=this._loadedParentTiles[d.key];return D&&D.tileID.overscaledZ>=w?D:null}for(var R=d.overscaledZ-1;R>=w;R--){var G=d.scaledTo(R),K=this._getLoadedTile(G);if(K)return K}},c.prototype._getLoadedTile=function(d){var w=this._tiles[d.key];if(w&&w.hasData())return w;var D=this._cache.getByKey(d.wrapped().key);return D},c.prototype.updateCacheSize=function(d){var w=Math.ceil(d.width/this._source.tileSize)+1,D=Math.ceil(d.height/this._source.tileSize)+1,R=w*D,G=5,K=Math.floor(R*G),re=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,K):K;this._cache.setMaxSize(re)},c.prototype.handleWrapJump=function(d){var w=this._prevLng===void 0?d:this._prevLng,D=d-w,R=D/360,G=Math.round(R);if(this._prevLng=d,G){var K={};for(var re in this._tiles){var ce=this._tiles[re];ce.tileID=ce.tileID.unwrapTo(ce.tileID.wrap+G),K[ce.tileID.key]=ce}this._tiles=K;for(var we in this._timers)clearTimeout(this._timers[we]),delete this._timers[we];for(var be in this._tiles){var Re=this._tiles[be];this._setTileReloadTimer(be,Re)}}},c.prototype.update=function(d){var w=this;if(this.transform=d,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(d),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var D;this.used?this._source.tileID?D=d.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(wr){return new a.OverscaledTileID(wr.canonical.z,wr.wrap,wr.canonical.z,wr.canonical.x,wr.canonical.y)}):(D=d.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(D=D.filter(function(wr){return w._source.hasTile(wr)}))):D=[];var R=d.coveringZoomLevel(this._source),G=Math.max(R-c.maxOverzooming,this._source.minzoom),K=Math.max(R+c.maxUnderzooming,this._source.minzoom),re=this._updateRetainedTiles(D,R);if(yt(this._source.type)){for(var ce={},we={},be=Object.keys(re),Re=0,We=be;Rethis._source.maxzoom){var dt=Ve.children(this._source.maxzoom)[0],zt=this.getTile(dt);if(zt&&zt.hasData()){D[dt.key]=dt;continue}}else{var Ft=Ve.children(this._source.maxzoom);if(D[Ft[0].key]&&D[Ft[1].key]&&D[Ft[2].key]&&D[Ft[3].key])continue}for(var Qt=Ke.wasRequested(),rr=Ve.overscaledZ-1;rr>=G;--rr){var Yt=Ve.scaledTo(rr);if(R[Yt.key]||(R[Yt.key]=!0,Ke=this.getTile(Yt),!Ke&&Qt&&(Ke=this._addTile(Yt)),Ke&&(D[Yt.key]=Yt,Qt=Ke.wasRequested(),Ke.hasData())))break}}}return D},c.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var d in this._tiles){for(var w=[],D=void 0,R=this._tiles[d].tileID;R.overscaledZ>0;){if(R.key in this._loadedParentTiles){D=this._loadedParentTiles[R.key];break}w.push(R.key);var G=R.scaledTo(R.overscaledZ-1);if(D=this._getLoadedTile(G),D)break;R=G}for(var K=0,re=w;K0)&&(w.hasData()&&w.state!=="reloading"?this._cache.add(w.tileID,w,w.getExpiryTimeout()):(w.aborted=!0,this._abortTile(w),this._unloadTile(w))))},c.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var d in this._tiles)this._removeTile(d);this._cache.reset()},c.prototype.tilesIn=function(d,w,D){var R=this,G=[],K=this.transform;if(!K)return G;for(var re=D?K.getCameraQueryGeometry(d):d,ce=d.map(function(rr){return K.pointCoordinate(rr)}),we=re.map(function(rr){return K.pointCoordinate(rr)}),be=this.getIds(),Re=1/0,We=1/0,Ze=-1/0,Ve=-1/0,Ke=0,dt=we;Ke=0&&Dr[1].y+wr>=0){var kr=ce.map(function(za){return ar.getTilePoint(za)}),Xr=we.map(function(za){return ar.getTilePoint(za)});G.push({tile:Yt,tileID:ar,queryGeometry:kr,cameraQueryGeometry:Xr,scale:dr})}}},Qt=0;Qt=a.browser.now())return!0}return!1},c.prototype.setFeatureState=function(d,w,D){d=d||"_geojsonTileLayer",this._state.updateState(d,w,D)},c.prototype.removeFeatureState=function(d,w,D){d=d||"_geojsonTileLayer",this._state.removeFeatureState(d,w,D)},c.prototype.getFeatureState=function(d,w){return d=d||"_geojsonTileLayer",this._state.getState(d,w)},c.prototype.setDependencies=function(d,w,D){var R=this._tiles[d];R&&R.setDependencies(w,D)},c.prototype.reloadTilesForDependencies=function(d,w){for(var D in this._tiles){var R=this._tiles[D];R.hasDependency(d,w)&&this._reloadTile(D,"reloading")}this._cache.filter(function(G){return!G.hasDependency(d,w)})},c})(a.Evented);rt.maxOverzooming=10,rt.maxUnderzooming=3;function Ye(g,c){var b=Math.abs(g.wrap*2)-+(g.wrap<0),d=Math.abs(c.wrap*2)-+(c.wrap<0);return g.overscaledZ-c.overscaledZ||d-b||c.canonical.y-g.canonical.y||c.canonical.x-g.canonical.x}function yt(g){return g==="raster"||g==="image"||g==="video"}function Mt(){return new a.window.Worker(Tn.workerUrl)}var Rt="mapboxgl_preloaded_worker_pool",tr=function(){this.active={}};tr.prototype.acquire=function(c){if(!this.workers)for(this.workers=[];this.workers.length0?(w-R)/G:0;return this.points[D].mult(1-K).add(this.points[b].mult(K))};var Za=function(c,b,d){var w=this.boxCells=[],D=this.circleCells=[];this.xCellCount=Math.ceil(c/d),this.yCellCount=Math.ceil(b/d);for(var R=0;Rthis.width||w<0||b>this.height)return D?!1:[];var G=[];if(c<=0&&b<=0&&this.width<=d&&this.height<=w){if(D)return!0;for(var K=0;K0:G}},Za.prototype._queryCircle=function(c,b,d,w,D){var R=c-d,G=c+d,K=b-d,re=b+d;if(G<0||R>this.width||re<0||K>this.height)return w?!1:[];var ce=[],we={hitTest:w,circle:{x:c,y:b,radius:d},seenUids:{box:{},circle:{}}};return this._forEachCell(R,K,G,re,this._queryCellCircle,ce,we,D),w?ce.length>0:ce},Za.prototype.query=function(c,b,d,w,D){return this._query(c,b,d,w,!1,D)},Za.prototype.hitTest=function(c,b,d,w,D){return this._query(c,b,d,w,!0,D)},Za.prototype.hitTestCircle=function(c,b,d,w){return this._queryCircle(c,b,d,!0,w)},Za.prototype._queryCell=function(c,b,d,w,D,R,G,K){var re=G.seenUids,ce=this.boxCells[D];if(ce!==null)for(var we=this.bboxes,be=0,Re=ce;be=we[Ze+0]&&w>=we[Ze+1]&&(!K||K(this.boxKeys[We]))){if(G.hitTest)return R.push(!0),!0;R.push({key:this.boxKeys[We],x1:we[Ze],y1:we[Ze+1],x2:we[Ze+2],y2:we[Ze+3]})}}}var Ve=this.circleCells[D];if(Ve!==null)for(var Ke=this.circles,dt=0,zt=Ve;dtG*G+K*K},Za.prototype._circleAndRectCollide=function(c,b,d,w,D,R,G){var K=(R-w)/2,re=Math.abs(c-(w+K));if(re>K+d)return!1;var ce=(G-D)/2,we=Math.abs(b-(D+ce));if(we>ce+d)return!1;if(re<=K||we<=ce)return!0;var be=re-K,Re=we-ce;return be*be+Re*Re<=d*d};function Kn(g,c,b,d,w){var D=a.create();return c?(a.scale(D,D,[1/w,1/w,1]),b||a.rotateZ(D,D,d.angle)):a.multiply(D,d.labelPlaneMatrix,g),D}function du(g,c,b,d,w){if(c){var D=a.clone(g);return a.scale(D,D,[w,w,1]),b||a.rotateZ(D,D,-d.angle),D}else return d.glCoordMatrix}function Oi(g,c){var b=[g.x,g.y,0,1];Qf(b,b,c);var d=b[3];return{point:new a.Point(b[0]/d,b[1]/d),signedDistanceFromCamera:d}}function pl(g,c){return .5+.5*(g/c)}function cp(g,c){var b=g[0]/g[3],d=g[1]/g[3],w=b>=-c[0]&&b<=c[0]&&d>=-c[1]&&d<=c[1];return w}function Gc(g,c,b,d,w,D,R,G){var K=d?g.textSizeData:g.iconSizeData,re=a.evaluateSizeForZoom(K,b.transform.zoom),ce=[256/b.width*2+1,256/b.height*2+1],we=d?g.text.dynamicLayoutVertexArray:g.icon.dynamicLayoutVertexArray;we.clear();for(var be=g.lineVertexArray,Re=d?g.text.placedSymbolArray:g.icon.placedSymbolArray,We=b.transform.width/b.transform.height,Ze=!1,Ve=0;VeD)return{useVertical:!0}}return(g===a.WritingMode.vertical?c.yb.x)?{needsFlipping:!0}:null}function bv(g,c,b,d,w,D,R,G,K,re,ce,we,be,Re){var We=c/24,Ze=g.lineOffsetX*We,Ve=g.lineOffsetY*We,Ke;if(g.numGlyphs>1){var dt=g.glyphStartIndex+g.numGlyphs,zt=g.lineStartIndex,Ft=g.lineStartIndex+g.lineLength,Qt=Zc(We,G,Ze,Ve,b,ce,we,g,K,D,be);if(!Qt)return{notEnoughRoom:!0};var rr=Oi(Qt.first.point,R).point,Yt=Oi(Qt.last.point,R).point;if(d&&!b){var ar=xv(g.writingMode,rr,Yt,Re);if(ar)return ar}Ke=[Qt.first];for(var dr=g.glyphStartIndex+1;dr0?Xr.point:pu(we,kr,wr,1,w),_a=xv(g.writingMode,wr,za,Re);if(_a)return _a}var Nr=ml(We*G.getoffsetX(g.glyphStartIndex),Ze,Ve,b,ce,we,g.segment,g.lineStartIndex,g.lineStartIndex+g.lineLength,K,D,be);if(!Nr)return{notEnoughRoom:!0};Ke=[Nr]}for(var Sa=0,ia=Ke;Sa0?1:-1,We=0;d&&(Re*=-1,We=Math.PI),Re<0&&(We+=Math.PI);for(var Ze=Re>0?G+R:G+R+1,Ve=w,Ke=w,dt=0,zt=0,Ft=Math.abs(be),Qt=[];dt+zt<=Ft;){if(Ze+=Re,Ze=K)return null;if(Ke=Ve,Qt.push(Ve),Ve=we[Ze],Ve===void 0){var rr=new a.Point(re.getx(Ze),re.gety(Ze)),Yt=Oi(rr,ce);if(Yt.signedDistanceFromCamera>0)Ve=we[Ze]=Yt.point;else{var ar=Ze-Re,dr=dt===0?D:new a.Point(re.getx(ar),re.gety(ar));Ve=pu(dr,rr,Ke,Ft-dt+1,ce)}}dt+=zt,zt=Ke.dist(Ve)}var wr=(Ft-dt)/zt,Dr=Ve.sub(Ke),kr=Dr.mult(wr)._add(Ke);kr._add(Dr._unit()._perp()._mult(b*Re));var Xr=We+Math.atan2(Ve.y-Ke.y,Ve.x-Ke.x);return Qt.push(kr),{point:kr,angle:Xr,path:Qt}}var hp=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ef(g,c){for(var b=0;b=1;Ya--)ia.push(Nr.path[Ya]);for(var Oa=1;Oa0){for(var na=ia[0].clone(),Na=ia[0].clone(),en=1;en=Xr.x&&Na.x<=za.x&&na.y>=Xr.y&&Na.y<=za.y?pi=[ia]:Na.xza.x||Na.yza.y?pi=[]:pi=a.clipLine([ia],Xr.x,Xr.y,za.x,za.y)}for(var Nn=0,Ps=pi;Nn=this.screenRightBoundary||wthis.screenBottomBoundary},Go.prototype.isInsideGrid=function(c,b,d,w){return d>=0&&c=0&&b0){var Ft;return this.prevPlacement&&this.prevPlacement.variableOffsets[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID].text&&(Ft=this.prevPlacement.variableOffsets[be.crossTileID].anchor),this.variableOffsets[be.crossTileID]={textOffset:Ve,width:d,height:w,anchor:c,textBoxScale:D,prevAnchor:Ft},this.markUsedJustification(Re,c,be,We),Re.allowVerticalPlacement&&(this.markUsedOrientation(Re,We,be),this.placedOrientations[be.crossTileID]=We),{shift:Ke,placedGlyphBoxes:dt}}},lo.prototype.placeLayerBucketPart=function(c,b,d){var w=this,D=c.parameters,R=D.bucket,G=D.layout,K=D.posMatrix,re=D.textLabelPlaneMatrix,ce=D.labelToScreenMatrix,we=D.textPixelRatio,be=D.holdingForFade,Re=D.collisionBoxArray,We=D.partiallyEvaluatedTextSize,Ze=D.collisionGroup,Ve=G.get("text-optional"),Ke=G.get("icon-optional"),dt=G.get("text-allow-overlap"),zt=G.get("icon-allow-overlap"),Ft=G.get("text-rotation-alignment")==="map",Qt=G.get("text-pitch-alignment")==="map",rr=G.get("icon-text-fit")!=="none",Yt=G.get("symbol-z-order")==="viewport-y",ar=dt&&(zt||!R.hasIconData()||Ke),dr=zt&&(dt||!R.hasTextData()||Ve);!R.collisionArrays&&Re&&R.deserializeCollisionBoxes(Re);var wr=function(Nr,Sa){if(!b[Nr.crossTileID]){if(be){w.placements[Nr.crossTileID]=new mu(!1,!1,!1);return}var ia=!1,Ya=!1,Oa=!0,Ai=null,Ea={box:null,offscreen:null},pi={box:null,offscreen:null},na=null,Na=null,en=null,Nn=0,Ps=0,zs=0;Sa.textFeatureIndex?Nn=Sa.textFeatureIndex:Nr.useRuntimeCollisionCircles&&(Nn=Nr.featureIndex),Sa.verticalTextFeatureIndex&&(Ps=Sa.verticalTextFeatureIndex);var el=Sa.textBox;if(el){var Ol=function(un){var $o=a.WritingMode.horizontal;if(R.allowVerticalPlacement&&!un&&w.prevPlacement){var es=w.prevPlacement.placedOrientations[Nr.crossTileID];es&&(w.placedOrientations[Nr.crossTileID]=es,$o=es,w.markUsedOrientation(R,$o,Nr))}return $o},vc=function(un,$o){if(R.allowVerticalPlacement&&Nr.numVerticalGlyphVertices>0&&Sa.verticalTextBox)for(var es=0,t0=R.writingModes;es0&&(Qo=Qo.filter(function(un){return un!==Po.anchor}),Qo.unshift(Po.anchor))}var tl=function(un,$o,es){for(var t0=un.x2-un.x1,py=un.y2-un.y1,x3=Nr.textBoxScale,b3=rr&&!zt?$o:null,rd={box:[],offscreen:!1},w3=dt?Qo.length*2:Qo.length,r0=0;r0=Qo.length,my=w.attemptAnchorPlacement(T3,un,t0,py,x3,Ft,Qt,we,K,Ze,A3,Nr,R,es,b3);if(my&&(rd=my.placedGlyphBoxes,rd&&rd.box&&rd.box.length)){ia=!0,Ai=my.shift;break}}return rd},Eu=function(){return tl(el,Sa.iconBox,a.WritingMode.horizontal)},rl=function(){var un=Sa.verticalTextBox,$o=Ea&&Ea.box&&Ea.box.length;return R.allowVerticalPlacement&&!$o&&Nr.numVerticalGlyphVertices>0&&un?tl(un,Sa.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}};vc(Eu,rl),Ea&&(ia=Ea.box,Oa=Ea.offscreen);var Jp=Ol(Ea&&Ea.box);if(!ia&&w.prevPlacement){var gh=w.prevPlacement.variableOffsets[Nr.crossTileID];gh&&(w.variableOffsets[Nr.crossTileID]=gh,w.markUsedJustification(R,gh.anchor,Nr,Jp))}}else{var Ul=function(un,$o){var es=w.collisionIndex.placeCollisionBox(un,dt,we,K,Ze.predicate);return es&&es.box&&es.box.length&&(w.markUsedOrientation(R,$o,Nr),w.placedOrientations[Nr.crossTileID]=$o),es},Do=function(){return Ul(el,a.WritingMode.horizontal)},Vl=function(){var un=Sa.verticalTextBox;return R.allowVerticalPlacement&&Nr.numVerticalGlyphVertices>0&&un?Ul(un,a.WritingMode.vertical):{box:null,offscreen:null}};vc(Do,Vl),Ol(Ea&&Ea.box&&Ea.box.length)}}if(na=Ea,ia=na&&na.box&&na.box.length>0,Oa=na&&na.offscreen,Nr.useRuntimeCollisionCircles){var Gn=R.text.placedSymbolArray.get(Nr.centerJustifiedTextSymbolIndex),Kp=a.evaluateSizeForFeature(R.textSizeData,We,Gn),td=G.get("text-padding"),bo=Nr.collisionCircleDiameter;Na=w.collisionIndex.placeCollisionCircles(dt,Gn,R.lineVertexArray,R.glyphOffsetArray,Kp,K,re,ce,d,Qt,Ze.predicate,bo,td),ia=dt||Na.circles.length>0&&!Na.collisionDetected,Oa=Oa&&Na.offscreen}if(Sa.iconFeatureIndex&&(zs=Sa.iconFeatureIndex),Sa.iconBox){var _h=function(un){var $o=rr&&Ai?Av(un,Ai.x,Ai.y,Ft,Qt,w.transform.angle):un;return w.collisionIndex.placeCollisionBox($o,zt,we,K,Ze.predicate)};pi&&pi.box&&pi.box.length&&Sa.verticalIconBox?(en=_h(Sa.verticalIconBox),Ya=en.box.length>0):(en=_h(Sa.iconBox),Ya=en.box.length>0),Oa=Oa&&en.offscreen}var Qp=Ve||Nr.numHorizontalGlyphVertices===0&&Nr.numVerticalGlyphVertices===0,$p=Ke||Nr.numIconVertices===0;if(!Qp&&!$p?Ya=ia=Ya&&ia:$p?Qp||(Ya=Ya&&ia):ia=Ya&&ia,ia&&na&&na.box&&(pi&&pi.box&&Ps?w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Ps,Ze.ID):w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Nn,Ze.ID)),Ya&&en&&w.collisionIndex.insertCollisionBox(en.box,G.get("icon-ignore-placement"),R.bucketInstanceId,zs,Ze.ID),Na&&(ia&&w.collisionIndex.insertCollisionCircles(Na.circles,G.get("text-ignore-placement"),R.bucketInstanceId,Nn,Ze.ID),d)){var e0=R.bucketInstanceId,xh=w.collisionCircleArrays[e0];xh===void 0&&(xh=w.collisionCircleArrays[e0]=new vp);for(var bh=0;bh=0;--kr){var Xr=Dr[kr];wr(R.symbolInstances.get(Xr),R.collisionArrays[Xr])}else for(var za=c.symbolInstanceStart;za=0&&(R>=0&&ce!==R?c.text.placedSymbolArray.get(ce).crossTileID=0:c.text.placedSymbolArray.get(ce).crossTileID=d.crossTileID)}},lo.prototype.markUsedOrientation=function(c,b,d){for(var w=b===a.WritingMode.horizontal||b===a.WritingMode.horizontalOnly?b:0,D=b===a.WritingMode.vertical?b:0,R=[d.leftJustifiedTextSymbolIndex,d.centerJustifiedTextSymbolIndex,d.rightJustifiedTextSymbolIndex],G=0,K=R;G0||Qt>0,wr=zt.numIconVertices>0,Dr=w.placedOrientations[zt.crossTileID],kr=Dr===a.WritingMode.vertical,Xr=Dr===a.WritingMode.horizontal||Dr===a.WritingMode.horizontalOnly;if(dr){var za=af(ar.text),_a=kr?Er:za;We(c.text,Ft,_a);var Nr=Xr?Er:za;We(c.text,Qt,Nr);var Sa=ar.text.isHidden();[zt.rightJustifiedTextSymbolIndex,zt.centerJustifiedTextSymbolIndex,zt.leftJustifiedTextSymbolIndex].forEach(function(zs){zs>=0&&(c.text.placedSymbolArray.get(zs).hidden=Sa||kr?1:0)}),zt.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(zt.verticalPlacedTextSymbolIndex).hidden=Sa||Xr?1:0);var ia=w.variableOffsets[zt.crossTileID];ia&&w.markUsedJustification(c,ia.anchor,zt,Dr);var Ya=w.placedOrientations[zt.crossTileID];Ya&&(w.markUsedJustification(c,"left",zt,Ya),w.markUsedOrientation(c,Ya,zt))}if(wr){var Oa=af(ar.icon),Ai=!(be&&zt.verticalPlacedIconSymbolIndex&&kr);if(zt.placedIconSymbolIndex>=0){var Ea=Ai?Oa:Er;We(c.icon,zt.numIconVertices,Ea),c.icon.placedSymbolArray.get(zt.placedIconSymbolIndex).hidden=ar.icon.isHidden()}if(zt.verticalPlacedIconSymbolIndex>=0){var pi=Ai?Er:Oa;We(c.icon,zt.numVerticalIconVertices,pi),c.icon.placedSymbolArray.get(zt.verticalPlacedIconSymbolIndex).hidden=ar.icon.isHidden()}}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var na=c.collisionArrays[dt];if(na){var Na=new a.Point(0,0);if(na.textBox||na.verticalTextBox){var en=!0;if(re){var Nn=w.variableOffsets[rr];Nn?(Na=Tv(Nn.anchor,Nn.width,Nn.height,Nn.textOffset,Nn.textBoxScale),ce&&Na._rotate(we?w.transform.angle:-w.transform.angle)):en=!1}na.textBox&&jt(c.textCollisionBox.collisionVertexArray,ar.text.placed,!en||kr,Na.x,Na.y),na.verticalTextBox&&jt(c.textCollisionBox.collisionVertexArray,ar.text.placed,!en||Xr,Na.x,Na.y)}var Ps=!!(!Xr&&na.verticalIconBox);na.iconBox&&jt(c.iconCollisionBox.collisionVertexArray,ar.icon.placed,Ps,be?Na.x:0,be?Na.y:0),na.verticalIconBox&&jt(c.iconCollisionBox.collisionVertexArray,ar.icon.placed,!Ps,be?Na.x:0,be?Na.y:0)}}},Ve=0;Vec},lo.prototype.setStale=function(){this.stale=!0};function jt(g,c,b,d,w){g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0)}var Ur=Math.pow(2,25),dp=Math.pow(2,24),yu=Math.pow(2,17),on=Math.pow(2,16),gl=Math.pow(2,9),ws=Math.pow(2,8),rf=Math.pow(2,1);function af(g){if(g.opacity===0&&!g.placed)return 0;if(g.opacity===1&&g.placed)return 4294967295;var c=g.placed?1:0,b=Math.floor(g.opacity*127);return b*Ur+c*dp+b*yu+c*on+b*gl+c*ws+b*rf+c}var Er=0,ba=function(c){this._sortAcrossTiles=c.layout.get("symbol-z-order")!=="viewport-y"&&c.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ba.prototype.continuePlacement=function(c,b,d,w,D){for(var R=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var G=c[this._currentPlacementIndex],K=b[G],re=this.placement.collisionIndex.transform.zoom;if(K.type==="symbol"&&(!K.minzoom||K.minzoom<=re)&&(!K.maxzoom||K.maxzoom>re)){this._inProgressLayer||(this._inProgressLayer=new ba(K));var ce=this._inProgressLayer.continuePlacement(d[K.source],this.placement,this._showCollisionBoxes,K,R);if(ce)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},wa.prototype.commit=function(c){return this.placement.commit(c),this.placement};var Ts=512/a.EXTENT/2,_l=function(c,b,d){this.tileID=c,this.indexedSymbolInstances={},this.bucketInstanceId=d;for(var w=0;wc.overscaledZ)for(var re in K){var ce=K[re];ce.tileID.isChildOf(c)&&ce.findMatches(b.symbolInstances,c,R)}else{var we=c.scaledTo(Number(G)),be=K[we.key];be&&be.findMatches(b.symbolInstances,c,R)}}for(var Re=0;Re0)throw new Error("Unimplemented: "+R.map(function(G){return G.command}).join(", ")+".");return D.forEach(function(G){G.command!=="setTransition"&&w[G.command].apply(w,G.args)}),this.stylesheet=d,!0},c.prototype.addImage=function(d,w){if(this.getImage(d))return this.fire(new a.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(d,w),this._afterImageUpdated(d)},c.prototype.updateImage=function(d,w){this.imageManager.updateImage(d,w)},c.prototype.getImage=function(d){return this.imageManager.getImage(d)},c.prototype.removeImage=function(d){if(!this.getImage(d))return this.fire(new a.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(d),this._afterImageUpdated(d)},c.prototype._afterImageUpdated=function(d){this._availableImages=this.imageManager.listImages(),this._changedImages[d]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.Event("data",{dataType:"style"}))},c.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},c.prototype.addSource=function(d,w,D){var R=this;if(D===void 0&&(D={}),this._checkLoaded(),this.sourceCaches[d]!==void 0)throw new Error("There is already a source with this ID");if(!w.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(w).join(", ")+".");var G=["vector","raster","geojson","video","image"],K=G.indexOf(w.type)>=0;if(!(K&&this._validate(a.validateStyle.source,"sources."+d,w,null,D))){this.map&&this.map._collectResourceTiming&&(w.collectResourceTiming=!0);var re=this.sourceCaches[d]=new rt(d,w,this.dispatcher);re.style=this,re.setEventedParent(this,function(){return{isSourceLoaded:R.loaded(),source:re.serialize(),sourceId:d}}),re.onAdd(this.map),this._changed=!0}},c.prototype.removeSource=function(d){if(this._checkLoaded(),this.sourceCaches[d]===void 0)throw new Error("There is no source with this ID");for(var w in this._layers)if(this._layers[w].source===d)return this.fire(new a.ErrorEvent(new Error('Source "'+d+'" cannot be removed while layer "'+w+'" is using it.')));var D=this.sourceCaches[d];delete this.sourceCaches[d],delete this._updatedSources[d],D.fire(new a.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:d})),D.setEventedParent(null),D.clearTiles(),D.onRemove&&D.onRemove(this.map),this._changed=!0},c.prototype.setGeoJSONSourceData=function(d,w){this._checkLoaded();var D=this.sourceCaches[d].getSource();D.setData(w),this._changed=!0},c.prototype.getSource=function(d){return this.sourceCaches[d]&&this.sourceCaches[d].getSource()},c.prototype.addLayer=function(d,w,D){D===void 0&&(D={}),this._checkLoaded();var R=d.id;if(this.getLayer(R)){this.fire(new a.ErrorEvent(new Error('Layer with id "'+R+'" already exists on this map')));return}var G;if(d.type==="custom"){if(fs(this,a.validateCustomStyleLayer(d)))return;G=a.createStyleLayer(d)}else{if(typeof d.source=="object"&&(this.addSource(R,d.source),d=a.clone$1(d),d=a.extend(d,{source:R})),this._validate(a.validateStyle.layer,"layers."+R,d,{arrayIndex:-1},D))return;G=a.createStyleLayer(d),this._validateLayer(G),G.setEventedParent(this,{layer:{id:R}}),this._serializedLayers[G.id]=G.serialize()}var K=w?this._order.indexOf(w):this._order.length;if(w&&K===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}if(this._order.splice(K,0,R),this._layerOrderChanged=!0,this._layers[R]=G,this._removedLayers[R]&&G.source&&G.type!=="custom"){var re=this._removedLayers[R];delete this._removedLayers[R],re.type!==G.type?this._updatedSources[G.source]="clear":(this._updatedSources[G.source]="reload",this.sourceCaches[G.source].pause())}this._updateLayer(G),G.onAdd&&G.onAdd(this.map)},c.prototype.moveLayer=function(d,w){this._checkLoaded(),this._changed=!0;var D=this._layers[d];if(!D){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be moved.")));return}if(d!==w){var R=this._order.indexOf(d);this._order.splice(R,1);var G=w?this._order.indexOf(w):this._order.length;if(w&&G===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}this._order.splice(G,0,d),this._layerOrderChanged=!0}},c.prototype.removeLayer=function(d){this._checkLoaded();var w=this._layers[d];if(!w){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be removed.")));return}w.setEventedParent(null);var D=this._order.indexOf(d);this._order.splice(D,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[d]=w,delete this._layers[d],delete this._serializedLayers[d],delete this._updatedLayers[d],delete this._updatedPaintProps[d],w.onRemove&&w.onRemove(this.map)},c.prototype.getLayer=function(d){return this._layers[d]},c.prototype.hasLayer=function(d){return d in this._layers},c.prototype.setLayerZoomRange=function(d,w,D){this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot have zoom extent.")));return}R.minzoom===w&&R.maxzoom===D||(w!=null&&(R.minzoom=w),D!=null&&(R.maxzoom=D),this._updateLayer(R))},c.prototype.setFilter=function(d,w,D){D===void 0&&(D={}),this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be filtered.")));return}if(!a.deepEqual(R.filter,w)){if(w==null){R.filter=void 0,this._updateLayer(R);return}this._validate(a.validateStyle.filter,"layers."+R.id+".filter",w,null,D)||(R.filter=a.clone$1(w),this._updateLayer(R))}},c.prototype.getFilter=function(d){return a.clone$1(this.getLayer(d).filter)},c.prototype.setLayoutProperty=function(d,w,D,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}a.deepEqual(G.getLayoutProperty(w),D)||(G.setLayoutProperty(w,D,R),this._updateLayer(G))},c.prototype.getLayoutProperty=function(d,w){var D=this.getLayer(d);if(!D){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style.")));return}return D.getLayoutProperty(w)},c.prototype.setPaintProperty=function(d,w,D,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}if(!a.deepEqual(G.getPaintProperty(w),D)){var K=G.setPaintProperty(w,D,R);K&&this._updateLayer(G),this._changed=!0,this._updatedPaintProps[d]=!0}},c.prototype.getPaintProperty=function(d,w){return this.getLayer(d).getPaintProperty(w)},c.prototype.setFeatureState=function(d,w){this._checkLoaded();var D=d.source,R=d.sourceLayer,G=this.sourceCaches[D];if(G===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+D+"' does not exist in the map's style.")));return}var K=G.getSource().type;if(K==="geojson"&&R){this.fire(new a.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(K==="vector"&&!R){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),G.setFeatureState(R,d.id,w)},c.prototype.removeFeatureState=function(d,w){this._checkLoaded();var D=d.source,R=this.sourceCaches[D];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+D+"' does not exist in the map's style.")));return}var G=R.getSource().type,K=G==="vector"?d.sourceLayer:void 0;if(G==="vector"&&!K){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(w&&typeof d.id!="string"&&typeof d.id!="number"){this.fire(new a.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}R.removeFeatureState(K,d.id,w)},c.prototype.getFeatureState=function(d){this._checkLoaded();var w=d.source,D=d.sourceLayer,R=this.sourceCaches[w];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+w+"' does not exist in the map's style.")));return}var G=R.getSource().type;if(G==="vector"&&!D){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),R.getFeatureState(D,d.id)},c.prototype.getTransition=function(){return a.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},c.prototype.serialize=function(){return a.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:a.mapObject(this.sourceCaches,function(d){return d.serialize()}),layers:this._serializeLayers(this._order)},function(d){return d!==void 0})},c.prototype._updateLayer=function(d){this._updatedLayers[d.id]=!0,d.source&&!this._updatedSources[d.source]&&this.sourceCaches[d.source].getSource().type!=="raster"&&(this._updatedSources[d.source]="reload",this.sourceCaches[d.source].pause()),this._changed=!0},c.prototype._flattenAndSortRenderedFeatures=function(d){for(var w=this,D=function(Xr){return w._layers[Xr].type==="fill-extrusion"},R={},G=[],K=this._order.length-1;K>=0;K--){var re=this._order[K];if(D(re)){R[re]=K;for(var ce=0,we=d;ce=0;dt--){var zt=this._order[dt];if(D(zt))for(var Ft=G.length-1;Ft>=0;Ft--){var Qt=G[Ft].feature;if(R[Qt.layer.id] 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 ? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Om=`#ifdef GL_ES +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Um=`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Um="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",kv=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +}`,Vm="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",kv=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; #define PI 3.141592653589793 void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Vm="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Hm=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,Hm="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Gm=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -280,7 +280,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,pp=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,mp=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { @@ -290,7 +290,7 @@ float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_rati #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,mp=` +}`,yp=` #define scale 0.015873016 attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur @@ -322,7 +322,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Gm=` +}`,Zm=` #define scale 0.015873016 #define LINE_DISTANCE_SCALE 2.0 attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; @@ -382,11 +382,11 @@ void main() { #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`,yp=`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`,gp=`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Zm="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",gp=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,Ym="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",_p=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -394,13 +394,13 @@ lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)* #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,_p=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; +}`,xp=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,xp=`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,bp=`#define SDF_PX 8.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color @@ -417,7 +417,7 @@ float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scal #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Ym=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +}`,Wm=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity @@ -468,7 +468,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Tl=Ri(Yc,_u),jc=Ri(zm,$f),Al=Ri(ni,ec),Ml=Ri(Mv,xn),Dv=Ri(Rn,dp),Jc=Ri(nf,sn),Ms=Ri(Eo,Yo),dn=Ri(vn,tc),Wm=Ri(ln,Wo),Xm=Ri(js,Im),Sl=Ri(Xo,Rm),of=Ri(Js,Fn),vs=Ri(Fm,bl),bp=Ri(wl,Sv),wp=Ri(qm,Nm),sf=Ri(Wc,Bm),Tp=Ri(Om,Um),Ap=Ri(kv,Vm),jm=Ri(Hm,Cv),Jm=Ri(pp,mp),Pv=Ri(Ev,Gm),zv=Ri(Lv,xu),Iv=Ri(yp,Zm),rc=Ri(gp,_p),Kc=Ri(xp,Ym),Mp=Ri(hs,Xc);function Ri(g,c){var b=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,d=c.match(/attribute ([\w]+) ([\w]+)/g),w=g.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),D=c.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=D?D.concat(w):w,G={};return g=g.replace(b,function(K,re,ce,we,be){return G[be]=!0,re==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Tl=Ri(Yc,_u),jc=Ri(Im,$f),Al=Ri(ni,ec),Ml=Ri(Mv,xn),Dv=Ri(Rn,pp),Jc=Ri(nf,sn),Ms=Ri(Eo,Yo),dn=Ri(vn,tc),Xm=Ri(ln,Wo),jm=Ri(js,Rm),Sl=Ri(Xo,Fm),of=Ri(Js,Fn),vs=Ri(qm,bl),wp=Ri(wl,Sv),Tp=Ri(Nm,Bm),sf=Ri(Wc,Om),Ap=Ri(Um,Vm),Mp=Ri(kv,Hm),Jm=Ri(Gm,Cv),Km=Ri(mp,yp),Pv=Ri(Ev,Zm),zv=Ri(Lv,xu),Iv=Ri(gp,Ym),rc=Ri(_p,xp),Kc=Ri(bp,Wm),Sp=Ri(hs,Xc);function Ri(g,c){var b=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,d=c.match(/attribute ([\w]+) ([\w]+)/g),w=g.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),D=c.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=D?D.concat(w):w,G={};return g=g.replace(b,function(K,re,ce,we,be){return G[be]=!0,re==="define"?` #ifndef HAS_UNIFORM_u_`+be+` varying `+ce+" "+we+" "+be+`; #else @@ -478,7 +478,7 @@ uniform `+ce+" "+we+" u_"+be+`; #ifdef HAS_UNIFORM_u_`+be+` `+ce+" "+we+" "+be+" = u_"+be+`; #endif -`}),c=c.replace(b,function(K,re,ce,we,be){var Re=we==="float"?"vec2":"vec4",Ye=be.match(/color/)?"color":Re;return G[be]?re==="define"?` +`}),c=c.replace(b,function(K,re,ce,we,be){var Re=we==="float"?"vec2":"vec4",We=be.match(/color/)?"color":Re;return G[be]?re==="define"?` #ifndef HAS_UNIFORM_u_`+be+` uniform lowp float u_`+be+`_t; attribute `+ce+" "+Re+" a_"+be+`; @@ -486,7 +486,7 @@ varying `+ce+" "+we+" "+be+`; #else uniform `+ce+" "+we+" u_"+be+`; #endif -`:Ye==="vec4"?` +`:We==="vec4"?` #ifndef HAS_UNIFORM_u_`+be+` `+be+" = a_"+be+`; #else @@ -494,7 +494,7 @@ uniform `+ce+" "+we+" u_"+be+`; #endif `:` #ifndef HAS_UNIFORM_u_`+be+` - `+be+" = unpack_mix_"+Ye+"(a_"+be+", u_"+be+`_t); + `+be+" = unpack_mix_"+We+"(a_"+be+", u_"+be+`_t); #else `+ce+" "+we+" "+be+" = u_"+be+`; #endif @@ -505,7 +505,7 @@ attribute `+ce+" "+Re+" a_"+be+`; #else uniform `+ce+" "+we+" u_"+be+`; #endif -`:Ye==="vec4"?` +`:We==="vec4"?` #ifndef HAS_UNIFORM_u_`+be+` `+ce+" "+we+" "+be+" = a_"+be+`; #else @@ -513,13 +513,13 @@ uniform `+ce+" "+we+" u_"+be+`; #endif `:` #ifndef HAS_UNIFORM_u_`+be+` - `+ce+" "+we+" "+be+" = unpack_mix_"+Ye+"(a_"+be+", u_"+be+`_t); + `+ce+" "+we+" "+be+" = unpack_mix_"+We+"(a_"+be+", u_"+be+`_t); #else `+ce+" "+we+" "+be+" = u_"+be+`; #endif -`}),{fragmentSource:g,vertexSource:c,staticAttributes:d,staticUniforms:R}}var Km=Object.freeze({__proto__:null,prelude:Tl,background:jc,backgroundPattern:Al,circle:Ml,clippingMask:Dv,heatmap:Jc,heatmapTexture:Ms,collisionBox:dn,collisionCircle:Wm,debug:Xm,fill:Sl,fillOutline:of,fillOutlinePattern:vs,fillPattern:bp,fillExtrusion:wp,fillExtrusionPattern:sf,hillshadePrepare:Tp,hillshade:Ap,line:jm,lineGradient:Jm,linePattern:Pv,lineSDF:zv,raster:Iv,symbolIcon:rc,symbolSDF:Kc,symbolTextAndIcon:Mp}),Qc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Qc.prototype.bind=function(c,b,d,w,D,R,G,K){this.context=c;for(var re=this.boundPaintVertexBuffers.length!==w.length,ce=0;!re&&ce>16,G>>16],u_pixel_coord_lower:[R&65535,G&65535]}}function bu(g,c,b,d){var w=b.imageManager.getPattern(g.from.toString()),D=b.imageManager.getPattern(g.to.toString()),R=b.imageManager.getPixelSize(),G=R.width,K=R.height,re=Math.pow(2,d.tileID.overscaledZ),ce=d.tileSize*Math.pow(2,b.transform.tileZoom)/re,we=ce*(d.tileID.canonical.x+d.tileID.wrap*re),be=ce*d.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:w.tl,u_pattern_br_a:w.br,u_pattern_tl_b:D.tl,u_pattern_br_b:D.br,u_texsize:[G,K],u_mix:c.t,u_pattern_size_a:w.displaySize,u_pattern_size_b:D.displaySize,u_scale_a:c.fromScale,u_scale_b:c.toScale,u_tile_units_to_pixels:1/yo(d,1,b.transform.tileZoom),u_pixel_coord_upper:[we>>16,be>>16],u_pixel_coord_lower:[we&65535,be&65535]}}var Fv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_opacity:new a.Uniform1f(g,c.u_opacity)}},bn=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_height_factor:new a.Uniform1f(g,c.u_height_factor),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade),u_opacity:new a.Uniform1f(g,c.u_opacity)}},ac=function(g,c,b,d){var w=c.style.light,D=w.properties.get("position"),R=[D.x,D.y,D.z],G=a.create$1();w.properties.get("anchor")==="viewport"&&a.fromRotation(G,-c.transform.angle),a.transformMat3(R,R,G);var K=w.properties.get("color");return{u_matrix:g,u_lightpos:R,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[K.r,K.g,K.b],u_vertical_gradient:+b,u_opacity:d}},Ks=function(g,c,b,d,w,D,R){return a.extend(ac(g,c,b,d),lf(D,c,R),{u_height_factor:-Math.pow(2,w.overscaledZ)/R.tileSize/8})},kl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Cl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},El=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world)}},Qs=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Ss=function(g){return{u_matrix:g}},ks=function(g,c,b,d){return a.extend(Ss(g),lf(b,c,d))},Ll=function(g,c){return{u_matrix:g,u_world:c}},kp=function(g,c,b,d,w){return a.extend(ks(g,c,b,d),{u_world:w})},Qm=function(g,c){return{u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_scale_with_map:new a.Uniform1i(g,c.u_scale_with_map),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},$m=function(g,c,b,d){var w=g.transform,D,R;if(d.paint.get("circle-pitch-alignment")==="map"){var G=yo(b,1,w.zoom);D=!0,R=[G,G]}else D=!1,R=w.pixelsToGLUnits;return{u_camera_to_center_distance:w.cameraToCenterDistance,u_scale_with_map:+(d.paint.get("circle-pitch-scale")==="map"),u_matrix:g.translatePosMatrix(c.posMatrix,b,d.paint.get("circle-translate"),d.paint.get("circle-translate-anchor")),u_pitch_with_map:+D,u_device_pixel_ratio:a.browser.devicePixelRatio,u_extrude_scale:R}},ey=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pixels_to_tile_units:new a.Uniform1f(g,c.u_pixels_to_tile_units),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_overscale_factor:new a.Uniform1f(g,c.u_overscale_factor)}},Cp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_inv_matrix:new a.UniformMatrix4f(g,c.u_inv_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_viewport_size:new a.Uniform2f(g,c.u_viewport_size)}},Ep=function(g,c,b){var d=yo(b,1,c.zoom),w=Math.pow(2,c.zoom-b.tileID.overscaledZ),D=b.tileID.overscaleFactor();return{u_matrix:g,u_camera_to_center_distance:c.cameraToCenterDistance,u_pixels_to_tile_units:d,u_extrude_scale:[c.pixelsToGLUnits[0]/(d*w),c.pixelsToGLUnits[1]/(d*w)],u_overscale_factor:D}},qv=function(g,c,b){return{u_matrix:g,u_inv_matrix:c,u_camera_to_center_distance:b.cameraToCenterDistance,u_viewport_size:[b.width,b.height]}},Nv=function(g,c){return{u_color:new a.UniformColor(g,c.u_color),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_overlay:new a.Uniform1i(g,c.u_overlay),u_overlay_scale:new a.Uniform1f(g,c.u_overlay_scale)}},ic=function(g,c,b){return b===void 0&&(b=1),{u_matrix:g,u_color:c,u_overlay:0,u_overlay_scale:b}},$c=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Lp=function(g){return{u_matrix:g}},Bv=function(g,c){return{u_extrude_scale:new a.Uniform1f(g,c.u_extrude_scale),u_intensity:new a.Uniform1f(g,c.u_intensity),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Dp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_color_ramp:new a.Uniform1i(g,c.u_color_ramp),u_opacity:new a.Uniform1f(g,c.u_opacity)}},uf=function(g,c,b,d){return{u_matrix:g,u_extrude_scale:yo(c,1,b),u_intensity:d}},ty=function(g,c,b,d){var w=a.create();a.ortho(w,0,g.width,g.height,0,0,1);var D=g.context.gl;return{u_matrix:w,u_world:[D.drawingBufferWidth,D.drawingBufferHeight],u_image:b,u_color_ramp:d,u_opacity:c.paint.get("heatmap-opacity")}},Pp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_latrange:new a.Uniform2f(g,c.u_latrange),u_light:new a.Uniform2f(g,c.u_light),u_shadow:new a.UniformColor(g,c.u_shadow),u_highlight:new a.UniformColor(g,c.u_highlight),u_accent:new a.UniformColor(g,c.u_accent)}},zp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_dimension:new a.Uniform2f(g,c.u_dimension),u_zoom:new a.Uniform1f(g,c.u_zoom),u_unpack:new a.Uniform4f(g,c.u_unpack)}},Ip=function(g,c,b){var d=b.paint.get("hillshade-shadow-color"),w=b.paint.get("hillshade-highlight-color"),D=b.paint.get("hillshade-accent-color"),R=b.paint.get("hillshade-illumination-direction")*(Math.PI/180);b.paint.get("hillshade-illumination-anchor")==="viewport"&&(R-=g.transform.angle);var G=!g.options.moving;return{u_matrix:g.transform.calculatePosMatrix(c.tileID.toUnwrapped(),G),u_image:0,u_latrange:Uv(g,c.tileID),u_light:[b.paint.get("hillshade-exaggeration"),R],u_shadow:d,u_highlight:w,u_accent:D}},Ov=function(g,c){var b=c.stride,d=a.create();return a.ortho(d,0,a.EXTENT,-a.EXTENT,0,0,1),a.translate(d,d,[0,-a.EXTENT,0]),{u_matrix:d,u_image:1,u_dimension:[b,b],u_zoom:g.overscaledZ,u_unpack:c.getUnpackVector()}};function Uv(g,c){var b=Math.pow(2,c.canonical.z),d=c.canonical.y;return[new a.MercatorCoordinate(0,d/b).toLngLat().lat,new a.MercatorCoordinate(0,(d+1)/b).toLngLat().lat]}var wu=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels)}},Dl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_image:new a.Uniform1i(g,c.u_image),u_image_height:new a.Uniform1f(g,c.u_image_height)}},nc=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_texsize:new a.Uniform2f(g,c.u_texsize),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_image:new a.Uniform1i(g,c.u_image),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Vv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_patternscale_a:new a.Uniform2f(g,c.u_patternscale_a),u_patternscale_b:new a.Uniform2f(g,c.u_patternscale_b),u_sdfgamma:new a.Uniform1f(g,c.u_sdfgamma),u_image:new a.Uniform1i(g,c.u_image),u_tex_y_a:new a.Uniform1f(g,c.u_tex_y_a),u_tex_y_b:new a.Uniform1f(g,c.u_tex_y_b),u_mix:new a.Uniform1f(g,c.u_mix)}},eh=function(g,c,b){var d=g.transform;return{u_matrix:Tu(g,c,b),u_ratio:1/yo(c,1,d.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_units_to_pixels:[1/d.pixelsToGLUnits[0],1/d.pixelsToGLUnits[1]]}},th=function(g,c,b,d){return a.extend(eh(g,c,b),{u_image:0,u_image_height:d})},rh=function(g,c,b,d){var w=g.transform,D=ah(c,w);return{u_matrix:Tu(g,c,b),u_texsize:c.imageAtlasTexture.size,u_ratio:1/yo(c,1,w.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_image:0,u_scale:[D,d.fromScale,d.toScale],u_fade:d.t,u_units_to_pixels:[1/w.pixelsToGLUnits[0],1/w.pixelsToGLUnits[1]]}},Pl=function(g,c,b,d,w){var D=g.transform,R=g.lineAtlas,G=ah(c,D),K=b.layout.get("line-cap")==="round",re=R.getDash(d.from,K),ce=R.getDash(d.to,K),we=re.width*w.fromScale,be=ce.width*w.toScale;return a.extend(eh(g,c,b),{u_patternscale_a:[G/we,-re.height/2],u_patternscale_b:[G/be,-ce.height/2],u_sdfgamma:R.width/(Math.min(we,be)*256*a.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:re.y,u_tex_y_b:ce.y,u_mix:w.t})};function ah(g,c){return 1/yo(g,1,c.tileZoom)}function Tu(g,c,b){return g.translatePosMatrix(c.tileID.posMatrix,c,b.paint.get("line-translate"),b.paint.get("line-translate-anchor"))}var ff=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_tl_parent:new a.Uniform2f(g,c.u_tl_parent),u_scale_parent:new a.Uniform1f(g,c.u_scale_parent),u_buffer_scale:new a.Uniform1f(g,c.u_buffer_scale),u_fade_t:new a.Uniform1f(g,c.u_fade_t),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image0:new a.Uniform1i(g,c.u_image0),u_image1:new a.Uniform1i(g,c.u_image1),u_brightness_low:new a.Uniform1f(g,c.u_brightness_low),u_brightness_high:new a.Uniform1f(g,c.u_brightness_high),u_saturation_factor:new a.Uniform1f(g,c.u_saturation_factor),u_contrast_factor:new a.Uniform1f(g,c.u_contrast_factor),u_spin_weights:new a.Uniform3f(g,c.u_spin_weights)}},Rp=function(g,c,b,d,w){return{u_matrix:g,u_tl_parent:c,u_scale_parent:b,u_buffer_scale:1,u_fade_t:d.mix,u_opacity:d.opacity*w.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:w.paint.get("raster-brightness-min"),u_brightness_high:w.paint.get("raster-brightness-max"),u_saturation_factor:oc(w.paint.get("raster-saturation")),u_contrast_factor:vi(w.paint.get("raster-contrast")),u_spin_weights:ih(w.paint.get("raster-hue-rotate"))}};function ih(g){g*=Math.PI/180;var c=Math.sin(g),b=Math.cos(g);return[(2*b+1)/3,(-Math.sqrt(3)*c-b+1)/3,(Math.sqrt(3)*c-b+1)/3]}function vi(g){return g>0?1/(1-g):1+g}function oc(g){return g>0?1-1/(1.001-g):-g}var Fp=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture)}},qp=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},zl=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texsize_icon:new a.Uniform2f(g,c.u_texsize_icon),u_texture:new a.Uniform1i(g,c.u_texture),u_texture_icon:new a.Uniform1i(g,c.u_texture_icon),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},Np=function(g,c,b,d,w,D,R,G,K,re){var ce=w.transform;return{u_is_size_zoom_constant:+(g==="constant"||g==="source"),u_is_size_feature_constant:+(g==="constant"||g==="camera"),u_size_t:c?c.uSizeT:0,u_size:c?c.uSize:0,u_camera_to_center_distance:ce.cameraToCenterDistance,u_pitch:ce.pitch/360*2*Math.PI,u_rotate_symbol:+b,u_aspect_ratio:ce.width/ce.height,u_fade_change:w.options.fadeDuration?w.symbolFadeChange:1,u_matrix:D,u_label_plane_matrix:R,u_coord_matrix:G,u_is_text:+K,u_pitch_with_map:+d,u_texsize:re,u_texture:0}},Bp=function(g,c,b,d,w,D,R,G,K,re,ce){var we=w.transform;return a.extend(Np(g,c,b,d,w,D,R,G,K,re),{u_gamma_scale:d?Math.cos(we._pitch)*we.cameraToCenterDistance:1,u_device_pixel_ratio:a.browser.devicePixelRatio,u_is_halo:+ce})},Hv=function(g,c,b,d,w,D,R,G,K,re){return a.extend(Bp(g,c,b,d,w,D,R,G,!0,K,!0),{u_texsize_icon:re,u_texture_icon:1})},Op=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_color:new a.UniformColor(g,c.u_color)}},ry=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image:new a.Uniform1i(g,c.u_image),u_pattern_tl_a:new a.Uniform2f(g,c.u_pattern_tl_a),u_pattern_br_a:new a.Uniform2f(g,c.u_pattern_br_a),u_pattern_tl_b:new a.Uniform2f(g,c.u_pattern_tl_b),u_pattern_br_b:new a.Uniform2f(g,c.u_pattern_br_b),u_texsize:new a.Uniform2f(g,c.u_texsize),u_mix:new a.Uniform1f(g,c.u_mix),u_pattern_size_a:new a.Uniform2f(g,c.u_pattern_size_a),u_pattern_size_b:new a.Uniform2f(g,c.u_pattern_size_b),u_scale_a:new a.Uniform1f(g,c.u_scale_a),u_scale_b:new a.Uniform1f(g,c.u_scale_b),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_tile_units_to_pixels:new a.Uniform1f(g,c.u_tile_units_to_pixels)}},Il=function(g,c,b){return{u_matrix:g,u_opacity:c,u_color:b}},Au=function(g,c,b,d,w,D){return a.extend(bu(d,D,b,w),{u_matrix:g,u_opacity:c})},sc={fillExtrusion:Fv,fillExtrusionPattern:bn,fill:kl,fillPattern:Cl,fillOutline:El,fillOutlinePattern:Qs,circle:Qm,collisionBox:ey,collisionCircle:Cp,debug:Nv,clippingMask:$c,heatmap:Bv,heatmapTexture:Dp,hillshade:Pp,hillshadePrepare:zp,line:wu,lineGradient:Dl,linePattern:nc,lineSDF:Vv,raster:ff,symbolIcon:Fp,symbolSDF:qp,symbolTextAndIcon:zl,background:Op,backgroundPattern:ry},Cs;function Es(g,c,b,d,w,D,R){for(var G=g.context,K=G.gl,re=g.useProgram("collisionBox"),ce=[],we=0,be=0,Re=0;Re0){var Ft=a.create(),Qt=Ke;a.mul(Ft,Ve.placementInvProjMatrix,g.transform.glCoordMatrix),a.mul(Ft,Ft,Ve.placementViewportMatrix),ce.push({circleArray:zt,circleOffset:be,transform:Qt,invTransform:Ft}),we+=zt.length/4,be=we}dt&&re.draw(G,K.LINES,ma.disabled,ir.disabled,g.colorModeForRenderPass(),Le.disabled,Ep(Ke,g.transform,Ge),b.id,dt.layoutVertexBuffer,dt.indexBuffer,dt.segments,null,g.transform.zoom,null,null,dt.collisionVertexBuffer)}}if(!(!R||!ce.length)){var rr=g.useProgram("collisionCircle"),Yt=new a.StructArrayLayout2f1f2i16;Yt.resize(we*4),Yt._trim();for(var ar=0,dr=0,wr=ce;dr=0&&(Ye[Ve.associatedIconIndex]={shiftedAnchor:Wr,angle:Ia})}}if(ce){Re.clear();for(var Nr=g.icon.placedSymbolArray,Sa=0;Sa0){var R=a.browser.now(),G=(R-g.timeAdded)/D,K=c?(R-c.timeAdded)/D:-1,re=b.getSource(),ce=w.coveringZoomLevel({tileSize:re.tileSize,roundZoom:re.roundZoom}),we=!c||Math.abs(c.tileID.overscaledZ-ce)>Math.abs(g.tileID.overscaledZ-ce),be=we&&g.refreshedUponExpiration?1:a.clamp(we?G:1-K,0,1);return g.refreshedUponExpiration&&G>=1&&(g.refreshedUponExpiration=!1),c?{opacity:1,mix:1-be}:{opacity:be,mix:0}}else return{opacity:1,mix:0}}function lc(g,c,b){var d=b.paint.get("background-color"),w=b.paint.get("background-opacity");if(w!==0){var D=g.context,R=D.gl,G=g.transform,K=G.tileSize,re=b.paint.get("background-pattern");if(!g.isPatternMissing(re)){var ce=!re&&d.a===1&&w===1&&g.opaquePassEnabledForLayer()?"opaque":"translucent";if(g.renderPass===ce){var we=ir.disabled,be=g.depthModeForSublayer(0,ce==="opaque"?ma.ReadWrite:ma.ReadOnly),Re=g.colorModeForRenderPass(),Ye=g.useProgram(re?"backgroundPattern":"background"),Ge=G.coveringTiles({tileSize:K});re&&(D.activeTexture.set(R.TEXTURE0),g.imageManager.bind(g.context));for(var Ve=b.getCrossfadeParameters(),Ke=0,dt=Ge;Ke "+b.overscaledZ);var Ke=Ve+" "+Re+"kb";Yp(g,Ke),R.draw(d,w.TRIANGLES,G,K,te.alphaBlended,Le.disabled,ic(D,a.Color.transparent,Ge),ce,g.debugBuffer,g.quadTriangleIndexBuffer,g.debugSegments)}function Yp(g,c){g.initDebugOverlayCanvas();var b=g.debugOverlayCanvas,d=g.context.gl,w=g.debugOverlayCanvas.getContext("2d");w.clearRect(0,0,b.width,b.height),w.shadowColor="white",w.shadowBlur=2,w.lineWidth=1.5,w.strokeStyle="white",w.textBaseline="top",w.font="bold 36px Open Sans, sans-serif",w.fillText(c,5,5),w.strokeText(c,5,5),g.debugOverlayTexture.update(b),g.debugOverlayTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE)}function gf(g,c,b){var d=g.context,w=b.implementation;if(g.renderPass==="offscreen"){var D=w.prerender;D&&(g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),D.call(w,d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState())}else if(g.renderPass==="translucent"){g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),d.setStencilMode(ir.disabled);var R=w.renderingMode==="3d"?new ma(g.context.gl.LEQUAL,ma.ReadWrite,g.depthRangeFor3D):g.depthModeForSublayer(0,ma.ReadOnly);d.setDepthMode(R),w.render(d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState(),d.bindFramebuffer.set(null)}}var si={symbol:ay,circle:nh,heatmap:Mu,line:_o,fill:Up,"fill-extrusion":Rl,hillshade:mf,raster:Vp,background:lc,debug:Jv,custom:gf},Ci=function(c,b){this.context=new Ne(c),this.transform=b,this._tileTextures={},this.setup(),this.numSublayers=rt.maxUnderzooming+rt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new gu,this.gpuTimers={}};Ci.prototype.resize=function(c,b){if(this.width=c*a.browser.devicePixelRatio,this.height=b*a.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var d=0,w=this.style._order;d256&&this.clearStencil(),d.setColorMode(te.disabled),d.setDepthMode(ma.disabled);var D=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var R=0,G=b;R256&&this.clearStencil();var c=this.nextStencilID++,b=this.context.gl;return new ir({func:b.NOTEQUAL,mask:255},c,255,b.KEEP,b.KEEP,b.REPLACE)},Ci.prototype.stencilModeForClipping=function(c){var b=this.context.gl;return new ir({func:b.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,b.KEEP,b.KEEP,b.REPLACE)},Ci.prototype.stencilConfigForOverlap=function(c){var b,d=this.context.gl,w=c.sort(function(re,ce){return ce.overscaledZ-re.overscaledZ}),D=w[w.length-1].overscaledZ,R=w[0].overscaledZ-D+1;if(R>1){this.currentStencilSource=void 0,this.nextStencilID+R>256&&this.clearStencil();for(var G={},K=0;K=0;this.currentLayer--){var Ft=this.style._layers[w[this.currentLayer]],Qt=D[Ft.source],rr=K[Ft.source];this._renderTileClippingMasks(Ft,rr),this.renderLayer(this,Qt,Ft,rr)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?b.pop():null},Ci.prototype.isPatternMissing=function(c){if(!c)return!1;if(!c.from||!c.to)return!0;var b=this.imageManager.getPattern(c.from.toString()),d=this.imageManager.getPattern(c.to.toString());return!b||!d},Ci.prototype.useProgram=function(c,b){this.cache=this.cache||{};var d=""+c+(b?b.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[d]||(this.cache[d]=new Sp(this.context,c,Km[c],b,sc[c],this._showOverdrawInspector)),this.cache[d]},Ci.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ci.prototype.setBaseState=function(){var c=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(c.FUNC_ADD)},Ci.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=a.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var c=this.context.gl;this.debugOverlayTexture=new a.Texture(this.context,this.debugOverlayCanvas,c.RGBA)}},Ci.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var uo=function(c,b){this.points=c,this.planes=b};uo.fromInvProjectionMatrix=function(c,b,d){var w=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],D=Math.pow(2,d),R=w.map(function(re){return a.transformMat4([],re,c)}).map(function(re){return a.scale$1([],re,1/re[3]/b*D)}),G=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],K=G.map(function(re){var ce=a.sub([],R[re[0]],R[re[1]]),we=a.sub([],R[re[2]],R[re[1]]),be=a.normalize([],a.cross([],ce,we)),Re=-a.dot(be,R[re[1]]);return be.concat(Re)});return new uo(R,K)};var Ls=function(c,b){this.min=c,this.max=b,this.center=a.scale$2([],a.add([],this.min,this.max),.5)};Ls.prototype.quadrant=function(c){for(var b=[c%2===0,c<2],d=a.clone$2(this.min),w=a.clone$2(this.max),D=0;D=0;if(R===0)return 0;R!==b.length&&(d=!1)}if(d)return 2;for(var K=0;K<3;K++){for(var re=Number.MAX_VALUE,ce=-Number.MAX_VALUE,we=0;wethis.max[K]-this.min[K])return 0}return 1};var xo=function(c,b,d,w){if(c===void 0&&(c=0),b===void 0&&(b=0),d===void 0&&(d=0),w===void 0&&(w=0),isNaN(c)||c<0||isNaN(b)||b<0||isNaN(d)||d<0||isNaN(w)||w<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=c,this.bottom=b,this.left=d,this.right=w};xo.prototype.interpolate=function(c,b,d){return b.top!=null&&c.top!=null&&(this.top=a.number(c.top,b.top,d)),b.bottom!=null&&c.bottom!=null&&(this.bottom=a.number(c.bottom,b.bottom,d)),b.left!=null&&c.left!=null&&(this.left=a.number(c.left,b.left,d)),b.right!=null&&c.right!=null&&(this.right=a.number(c.right,b.right,d)),this},xo.prototype.getCenter=function(c,b){var d=a.clamp((this.left+c-this.right)/2,0,c),w=a.clamp((this.top+b-this.bottom)/2,0,b);return new a.Point(d,w)},xo.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},xo.prototype.clone=function(){return new xo(this.top,this.bottom,this.left,this.right)},xo.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Qa=function(c,b,d,w,D){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=D===void 0?!0:D,this._minZoom=c||0,this._maxZoom=b||22,this._minPitch=d==null?0:d,this._maxPitch=w==null?60:w,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new xo,this._posMatrixCache={},this._alignedPosMatrixCache={}},ui={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Qa.prototype.clone=function(){var c=new Qa(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return c.tileSize=this.tileSize,c.latRange=this.latRange,c.width=this.width,c.height=this.height,c._center=this._center,c.zoom=this.zoom,c.angle=this.angle,c._fov=this._fov,c._pitch=this._pitch,c._unmodified=this._unmodified,c._edgeInsets=this._edgeInsets.clone(),c._calcMatrices(),c},ui.minZoom.get=function(){return this._minZoom},ui.minZoom.set=function(g){this._minZoom!==g&&(this._minZoom=g,this.zoom=Math.max(this.zoom,g))},ui.maxZoom.get=function(){return this._maxZoom},ui.maxZoom.set=function(g){this._maxZoom!==g&&(this._maxZoom=g,this.zoom=Math.min(this.zoom,g))},ui.minPitch.get=function(){return this._minPitch},ui.minPitch.set=function(g){this._minPitch!==g&&(this._minPitch=g,this.pitch=Math.max(this.pitch,g))},ui.maxPitch.get=function(){return this._maxPitch},ui.maxPitch.set=function(g){this._maxPitch!==g&&(this._maxPitch=g,this.pitch=Math.min(this.pitch,g))},ui.renderWorldCopies.get=function(){return this._renderWorldCopies},ui.renderWorldCopies.set=function(g){g===void 0?g=!0:g===null&&(g=!1),this._renderWorldCopies=g},ui.worldSize.get=function(){return this.tileSize*this.scale},ui.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},ui.size.get=function(){return new a.Point(this.width,this.height)},ui.bearing.get=function(){return-this.angle/Math.PI*180},ui.bearing.set=function(g){var c=-a.wrap(g,-180,180)*Math.PI/180;this.angle!==c&&(this._unmodified=!1,this.angle=c,this._calcMatrices(),this.rotationMatrix=a.create$2(),a.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},ui.pitch.get=function(){return this._pitch/Math.PI*180},ui.pitch.set=function(g){var c=a.clamp(g,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==c&&(this._unmodified=!1,this._pitch=c,this._calcMatrices())},ui.fov.get=function(){return this._fov/Math.PI*180},ui.fov.set=function(g){g=Math.max(.01,Math.min(60,g)),this._fov!==g&&(this._unmodified=!1,this._fov=g/180*Math.PI,this._calcMatrices())},ui.zoom.get=function(){return this._zoom},ui.zoom.set=function(g){var c=Math.min(Math.max(g,this.minZoom),this.maxZoom);this._zoom!==c&&(this._unmodified=!1,this._zoom=c,this.scale=this.zoomScale(c),this.tileZoom=Math.floor(c),this.zoomFraction=c-this.tileZoom,this._constrain(),this._calcMatrices())},ui.center.get=function(){return this._center},ui.center.set=function(g){g.lat===this._center.lat&&g.lng===this._center.lng||(this._unmodified=!1,this._center=g,this._constrain(),this._calcMatrices())},ui.padding.get=function(){return this._edgeInsets.toJSON()},ui.padding.set=function(g){this._edgeInsets.equals(g)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,g,1),this._calcMatrices())},ui.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Qa.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},Qa.prototype.interpolatePadding=function(c,b,d){this._unmodified=!1,this._edgeInsets.interpolate(c,b,d),this._constrain(),this._calcMatrices()},Qa.prototype.coveringZoomLevel=function(c){var b=(c.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/c.tileSize));return Math.max(0,b)},Qa.prototype.getVisibleUnwrappedCoordinates=function(c){var b=[new a.UnwrappedTileID(0,c)];if(this._renderWorldCopies)for(var d=this.pointCoordinate(new a.Point(0,0)),w=this.pointCoordinate(new a.Point(this.width,0)),D=this.pointCoordinate(new a.Point(this.width,this.height)),R=this.pointCoordinate(new a.Point(0,this.height)),G=Math.floor(Math.min(d.x,w.x,D.x,R.x)),K=Math.floor(Math.max(d.x,w.x,D.x,R.x)),re=1,ce=G-re;ce<=K+re;ce++)ce!==0&&b.push(new a.UnwrappedTileID(ce,c));return b},Qa.prototype.coveringTiles=function(c){var b=this.coveringZoomLevel(c),d=b;if(c.minzoom!==void 0&&bc.maxzoom&&(b=c.maxzoom);var w=a.MercatorCoordinate.fromLngLat(this.center),D=Math.pow(2,b),R=[D*w.x,D*w.y,0],G=uo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,b),K=c.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(K=b);var re=3,ce=function(kr){return{aabb:new Ls([kr*D,0,0],[(kr+1)*D,D,0]),zoom:0,x:0,y:0,wrap:kr,fullyVisible:!1}},we=[],be=[],Re=b,Ye=c.reparseOverscaled?d:b;if(this._renderWorldCopies)for(var Ge=1;Ge<=3;Ge++)we.push(ce(-Ge)),we.push(ce(Ge));for(we.push(ce(0));we.length>0;){var Ve=we.pop(),Ke=Ve.x,dt=Ve.y,zt=Ve.fullyVisible;if(!zt){var Ft=Ve.aabb.intersects(G);if(Ft===0)continue;zt=Ft===2}var Qt=Ve.aabb.distanceX(R),rr=Ve.aabb.distanceY(R),Yt=Math.max(Math.abs(Qt),Math.abs(rr)),ar=re+(1<ar&&Ve.zoom>=K){be.push({tileID:new a.OverscaledTileID(Ve.zoom===Re?Ye:Ve.zoom,Ve.wrap,Ve.zoom,Ke,dt),distanceSq:a.sqrLen([R[0]-.5-Ke,R[1]-.5-dt])});continue}for(var dr=0;dr<4;dr++){var wr=(Ke<<1)+dr%2,Dr=(dt<<1)+(dr>>1);we.push({aabb:Ve.aabb.quadrant(dr),zoom:Ve.zoom+1,x:wr,y:Dr,wrap:Ve.wrap,fullyVisible:zt})}}return be.sort(function(kr,Wr){return kr.distanceSq-Wr.distanceSq}).map(function(kr){return kr.tileID})},Qa.prototype.resize=function(c,b){this.width=c,this.height=b,this.pixelsToGLUnits=[2/c,-2/b],this._constrain(),this._calcMatrices()},ui.unmodified.get=function(){return this._unmodified},Qa.prototype.zoomScale=function(c){return Math.pow(2,c)},Qa.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},Qa.prototype.project=function(c){var b=a.clamp(c.lat,-this.maxValidLatitude,this.maxValidLatitude);return new a.Point(a.mercatorXfromLng(c.lng)*this.worldSize,a.mercatorYfromLat(b)*this.worldSize)},Qa.prototype.unproject=function(c){return new a.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},ui.point.get=function(){return this.project(this.center)},Qa.prototype.setLocationAtPoint=function(c,b){var d=this.pointCoordinate(b),w=this.pointCoordinate(this.centerPoint),D=this.locationCoordinate(c),R=new a.MercatorCoordinate(D.x-(d.x-w.x),D.y-(d.y-w.y));this.center=this.coordinateLocation(R),this._renderWorldCopies&&(this.center=this.center.wrap())},Qa.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},Qa.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},Qa.prototype.locationCoordinate=function(c){return a.MercatorCoordinate.fromLngLat(c)},Qa.prototype.coordinateLocation=function(c){return c.toLngLat()},Qa.prototype.pointCoordinate=function(c){var b=0,d=[c.x,c.y,0,1],w=[c.x,c.y,1,1];a.transformMat4(d,d,this.pixelMatrixInverse),a.transformMat4(w,w,this.pixelMatrixInverse);var D=d[3],R=w[3],G=d[0]/D,K=w[0]/R,re=d[1]/D,ce=w[1]/R,we=d[2]/D,be=w[2]/R,Re=we===be?0:(b-we)/(be-we);return new a.MercatorCoordinate(a.number(G,K,Re)/this.worldSize,a.number(re,ce,Re)/this.worldSize)},Qa.prototype.coordinatePoint=function(c){var b=[c.x*this.worldSize,c.y*this.worldSize,0,1];return a.transformMat4(b,b,this.pixelMatrix),new a.Point(b[0]/b[3],b[1]/b[3])},Qa.prototype.getBounds=function(){return new a.LngLatBounds().extend(this.pointLocation(new a.Point(0,0))).extend(this.pointLocation(new a.Point(this.width,0))).extend(this.pointLocation(new a.Point(this.width,this.height))).extend(this.pointLocation(new a.Point(0,this.height)))},Qa.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new a.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},Qa.prototype.setMaxBounds=function(c){c?(this.lngRange=[c.getWest(),c.getEast()],this.latRange=[c.getSouth(),c.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Qa.prototype.calculatePosMatrix=function(c,b){b===void 0&&(b=!1);var d=c.key,w=b?this._alignedPosMatrixCache:this._posMatrixCache;if(w[d])return w[d];var D=c.canonical,R=this.worldSize/this.zoomScale(D.z),G=D.x+Math.pow(2,D.z)*c.wrap,K=a.identity(new Float64Array(16));return a.translate(K,K,[G*R,D.y*R,0]),a.scale(K,K,[R/a.EXTENT,R/a.EXTENT,1]),a.multiply(K,b?this.alignedProjMatrix:this.projMatrix,K),w[d]=new Float32Array(K),w[d]},Qa.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Qa.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var c=-90,b=90,d=-180,w=180,D,R,G,K,re=this.size,ce=this._unmodified;if(this.latRange){var we=this.latRange;c=a.mercatorYfromLat(we[1])*this.worldSize,b=a.mercatorYfromLat(we[0])*this.worldSize,D=b-cb&&(K=b-Ve)}if(this.lngRange){var Ke=Re.x,dt=re.x/2;Ke-dtw&&(G=w-dt)}(G!==void 0||K!==void 0)&&(this.center=this.unproject(new a.Point(G!==void 0?G:Re.x,K!==void 0?K:Re.y))),this._unmodified=ce,this._constraining=!1}},Qa.prototype._calcMatrices=function(){if(this.height){var c=this._fov/2,b=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(c)*this.height;var d=Math.PI/2+this._pitch,w=this._fov*(.5+b.y/this.height),D=Math.sin(w)*this.cameraToCenterDistance/Math.sin(a.clamp(Math.PI-d-w,.01,Math.PI-.01)),R=this.point,G=R.x,K=R.y,re=Math.cos(Math.PI/2-this._pitch)*D+this.cameraToCenterDistance,ce=re*1.01,we=this.height/50,be=new Float64Array(16);a.perspective(be,this._fov,this.width/this.height,we,ce),be[8]=-b.x*2/this.width,be[9]=b.y*2/this.height,a.scale(be,be,[1,-1,1]),a.translate(be,be,[0,0,-this.cameraToCenterDistance]),a.rotateX(be,be,this._pitch),a.rotateZ(be,be,this.angle),a.translate(be,be,[-G,-K,0]),this.mercatorMatrix=a.scale([],be,[this.worldSize,this.worldSize,this.worldSize]),a.scale(be,be,[1,1,a.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=be,this.invProjMatrix=a.invert([],this.projMatrix);var Re=this.width%2/2,Ye=this.height%2/2,Ge=Math.cos(this.angle),Ve=Math.sin(this.angle),Ke=G-Math.round(G)+Ge*Re+Ve*Ye,dt=K-Math.round(K)+Ge*Ye+Ve*Re,zt=new Float64Array(be);if(a.translate(zt,zt,[Ke>.5?Ke-1:Ke,dt>.5?dt-1:dt,0]),this.alignedProjMatrix=zt,be=a.create(),a.scale(be,be,[this.width/2,-this.height/2,1]),a.translate(be,be,[1,-1,0]),this.labelPlaneMatrix=be,be=a.create(),a.scale(be,be,[1,-1,1]),a.translate(be,be,[-1,-1,0]),a.scale(be,be,[2/this.width,2/this.height,1]),this.glCoordMatrix=be,this.pixelMatrix=a.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),be=a.invert(new Float64Array(16),this.pixelMatrix),!be)throw new Error("failed to invert matrix");this.pixelMatrixInverse=be,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Qa.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var c=this.pointCoordinate(new a.Point(0,0)),b=[c.x*this.worldSize,c.y*this.worldSize,0,1],d=a.transformMat4(b,b,this.pixelMatrix);return d[3]/this.cameraToCenterDistance},Qa.prototype.getCameraPoint=function(){var c=this._pitch,b=Math.tan(c)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.Point(0,b))},Qa.prototype.getCameraQueryGeometry=function(c){var b=this.getCameraPoint();if(c.length===1)return[c[0],b];for(var d=b.x,w=b.y,D=b.x,R=b.y,G=0,K=c;G=3&&!c.some(function(d){return isNaN(d)})){var b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:b,pitch:+(c[4]||0)}),!0}return!1},Fl.prototype._updateHashUnthrottled=function(){var c=a.window.location.href.replace(/(#.+)?$/,this.getHashString());try{a.window.history.replaceState(a.window.history.state,null,c)}catch(b){}};var uc={linearity:.3,easing:a.bezier(0,0,.3,1)},_f=a.extend({deceleration:2500,maxSpeed:1400},uc),ql=a.extend({deceleration:20,maxSpeed:1400},uc),Ds=a.extend({deceleration:1e3,maxSpeed:360},uc),hh=a.extend({deceleration:1e3,maxSpeed:90},uc),xf=function(c){this._map=c,this.clear()};xf.prototype.clear=function(){this._inertiaBuffer=[]},xf.prototype.record=function(c){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.browser.now(),settings:c})},xf.prototype._drainInertiaBuffer=function(){for(var c=this._inertiaBuffer,b=a.browser.now(),d=160;c.length>0&&b-c[0].time>d;)c.shift()},xf.prototype._onMoveEnd=function(c){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var b={zoom:0,bearing:0,pitch:0,pan:new a.Point(0,0),pinchAround:void 0,around:void 0},d=0,w=this._inertiaBuffer;d=this._clickTolerance||this._map.fire(new S(c.type,this._map,c))},V.prototype.dblclick=function(c){return this._firePreventable(new S(c.type,this._map,c))},V.prototype.mouseover=function(c){this._map.fire(new S(c.type,this._map,c))},V.prototype.mouseout=function(c){this._map.fire(new S(c.type,this._map,c))},V.prototype.touchstart=function(c){return this._firePreventable(new P(c.type,this._map,c))},V.prototype.touchmove=function(c){this._map.fire(new P(c.type,this._map,c))},V.prototype.touchend=function(c){this._map.fire(new P(c.type,this._map,c))},V.prototype.touchcancel=function(c){this._map.fire(new P(c.type,this._map,c))},V.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},V.prototype.isEnabled=function(){return!0},V.prototype.isActive=function(){return!1},V.prototype.enable=function(){},V.prototype.disable=function(){};var Z=function(c){this._map=c};Z.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Z.prototype.mousemove=function(c){this._map.fire(new S(c.type,this._map,c))},Z.prototype.mousedown=function(){this._delayContextMenu=!0},Z.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new S("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Z.prototype.contextmenu=function(c){this._delayContextMenu?this._contextMenuEvent=c:this._map.fire(new S(c.type,this._map,c)),this._map.listens("contextmenu")&&c.preventDefault()},Z.prototype.isEnabled=function(){return!0},Z.prototype.isActive=function(){return!1},Z.prototype.enable=function(){},Z.prototype.disable=function(){};var $=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._container=c.getContainer(),this._clickTolerance=b.clickTolerance||1};$.prototype.isEnabled=function(){return!!this._enabled},$.prototype.isActive=function(){return!!this._active},$.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},$.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},$.prototype.mousedown=function(c,b){this.isEnabled()&&c.shiftKey&&c.button===0&&(l.disableDrag(),this._startPos=this._lastPos=b,this._active=!0)},$.prototype.mousemoveWindow=function(c,b){if(this._active){var d=b;if(!(this._lastPos.equals(d)||!this._box&&d.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=c.timeStamp),d.length===this.numTouches&&(this.centroid=ae(b),this.touches=X(d,b)))},Pe.prototype.touchmove=function(c,b,d){if(!(this.aborted||!this.centroid)){var w=X(d,b);for(var D in this.touches){var R=this.touches[D],G=w[D];(!G||G.dist(R)>ze)&&(this.aborted=!0)}}},Pe.prototype.touchend=function(c,b,d){if((!this.centroid||c.timeStamp-this.startTime>xe)&&(this.aborted=!0),d.length===0){var w=!this.aborted&&this.centroid;if(this.reset(),w)return w}};var $e=function(c){this.singleTap=new Pe(c),this.numTaps=c.numTaps,this.reset()};$e.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},$e.prototype.touchstart=function(c,b,d){this.singleTap.touchstart(c,b,d)},$e.prototype.touchmove=function(c,b,d){this.singleTap.touchmove(c,b,d)},$e.prototype.touchend=function(c,b,d){var w=this.singleTap.touchend(c,b,d);if(w){var D=c.timeStamp-this.lastTime0&&(this._active=!0);var w=X(d,b),D=new a.Point(0,0),R=new a.Point(0,0),G=0;for(var K in w){var re=w[K],ce=this._touches[K];ce&&(D._add(re),R._add(re.sub(ce)),G++,w[K]=re)}if(this._touches=w,!(GMath.abs(g.x)}var Jt=100,Kr=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.reset=function(){g.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},c.prototype._start=function(d){this._lastPoints=d,Ka(d[0].sub(d[1]))&&(this._valid=!1)},c.prototype._move=function(d,w,D){var R=d[0].sub(this._lastPoints[0]),G=d[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(R,G,D.timeStamp),!!this._valid){this._lastPoints=d,this._active=!0;var K=(R.y+G.y)/2,re=-.5;return{pitchDelta:K*re}}},c.prototype.gestureBeginsVertically=function(d,w,D){if(this._valid!==void 0)return this._valid;var R=2,G=d.mag()>=R,K=w.mag()>=R;if(!(!G&&!K)){if(!G||!K)return this._firstMove===void 0&&(this._firstMove=D),D-this._firstMove0==w.y>0;return Ka(d)&&Ka(w)&&re}},c}(ur),oa={panStep:100,bearingStep:15,pitchStep:10},sa=function(){var c=oa;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};sa.prototype.reset=function(){this._active=!1},sa.prototype.keydown=function(c){var b=this;if(!(c.altKey||c.ctrlKey||c.metaKey)){var d=0,w=0,D=0,R=0,G=0;switch(c.keyCode){case 61:case 107:case 171:case 187:d=1;break;case 189:case 109:case 173:d=-1;break;case 37:c.shiftKey?w=-1:(c.preventDefault(),R=-1);break;case 39:c.shiftKey?w=1:(c.preventDefault(),R=1);break;case 38:c.shiftKey?D=1:(c.preventDefault(),G=-1);break;case 40:c.shiftKey?D=-1:(c.preventDefault(),G=1);break;default:return}return this._rotationDisabled&&(w=0,D=0),{cameraAnimation:function(K){var re=K.getZoom();K.easeTo({duration:300,easeId:"keyboardHandler",easing:Ei,zoom:d?Math.round(re)+d*(c.shiftKey?2:1):re,bearing:K.getBearing()+w*b._bearingStep,pitch:K.getPitch()+D*b._pitchStep,offset:[-R*b._panStep,-G*b._panStep],center:K.getCenter()},{originalEvent:c})}}}},sa.prototype.enable=function(){this._enabled=!0},sa.prototype.disable=function(){this._enabled=!1,this.reset()},sa.prototype.isEnabled=function(){return this._enabled},sa.prototype.isActive=function(){return this._active},sa.prototype.disableRotation=function(){this._rotationDisabled=!0},sa.prototype.enableRotation=function(){this._rotationDisabled=!1};function Ei(g){return g*(2-g)}var Ui=4.000244140625,$i=1/100,xi=1/450,wn=2,Ar=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._handler=b,this._delta=0,this._defaultZoomRate=$i,this._wheelZoomRate=xi,a.bindAll(["_onTimeout"],this)};Ar.prototype.setZoomRate=function(c){this._defaultZoomRate=c},Ar.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},Ar.prototype.isEnabled=function(){return!!this._enabled},Ar.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Ar.prototype.isZooming=function(){return!!this._zooming},Ar.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},Ar.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ar.prototype.wheel=function(c){if(this.isEnabled()){var b=c.deltaMode===a.window.WheelEvent.DOM_DELTA_LINE?c.deltaY*40:c.deltaY,d=a.browser.now(),w=d-(this._lastWheelEventTime||0);this._lastWheelEventTime=d,b!==0&&b%Ui===0?this._type="wheel":b!==0&&Math.abs(b)<4?this._type="trackpad":w>400?(this._type=null,this._lastValue=b,this._timeout=setTimeout(this._onTimeout,40,c)):this._type||(this._type=Math.abs(w*b)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,b+=this._lastValue)),c.shiftKey&&b&&(b=b/4),this._type&&(this._lastWheelEvent=c,this._delta-=b,this._active||this._start(c)),c.preventDefault()}},Ar.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},Ar.prototype._start=function(c){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var b=l.mousePos(this._el,c);this._around=a.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(b)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Ar.prototype.renderFrame=function(){var c=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var b=this._map.transform;if(this._delta!==0){var d=this._type==="wheel"&&Math.abs(this._delta)>Ui?this._wheelZoomRate:this._defaultZoomRate,w=wn/(1+Math.exp(-Math.abs(this._delta*d)));this._delta<0&&w!==0&&(w=1/w);var D=typeof this._targetZoom=="number"?b.zoomScale(this._targetZoom):b.scale;this._targetZoom=Math.min(b.maxZoom,Math.max(b.minZoom,b.scaleZoom(D*w))),this._type==="wheel"&&(this._startZoom=b.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var R=typeof this._targetZoom=="number"?this._targetZoom:b.zoom,G=this._startZoom,K=this._easing,re=!1,ce;if(this._type==="wheel"&&G&&K){var we=Math.min((a.browser.now()-this._lastWheelEventTime)/200,1),be=K(we);ce=a.number(G,R,be),we<1?this._frameId||(this._frameId=!0):re=!0}else ce=R,re=!0;return this._active=!0,re&&(this._active=!1,this._finishTimeout=setTimeout(function(){c._zooming=!1,c._handler._triggerRenderFrame(),delete c._targetZoom,delete c._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!re,zoomDelta:ce-b.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Ar.prototype._smoothOutEasing=function(c){var b=a.ease;if(this._prevEase){var d=this._prevEase,w=(a.browser.now()-d.start)/d.duration,D=d.easing(w+.01)-d.easing(w),R=.27/Math.sqrt(D*D+1e-4)*.01,G=Math.sqrt(.27*.27-R*R);b=a.bezier(R,G,.25,1)}return this._prevEase={start:a.browser.now(),duration:c,easing:b},b},Ar.prototype.reset=function(){this._active=!1};var Hr=function(c,b){this._clickZoom=c,this._tapZoom=b};Hr.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Hr.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Hr.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Hr.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Fi=function(){this.reset()};Fi.prototype.reset=function(){this._active=!1},Fi.prototype.dblclick=function(c,b){return c.preventDefault(),{cameraAnimation:function(d){d.easeTo({duration:300,zoom:d.getZoom()+(c.shiftKey?-1:1),around:d.unproject(b)},{originalEvent:c})}}},Fi.prototype.enable=function(){this._enabled=!0},Fi.prototype.disable=function(){this._enabled=!1,this.reset()},Fi.prototype.isEnabled=function(){return this._enabled},Fi.prototype.isActive=function(){return this._active};var Ti=function(){this._tap=new $e({numTouches:1,numTaps:1}),this.reset()};Ti.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ti.prototype.touchstart=function(c,b,d){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>ge&&this.reset(),this._tapTime?d.length>0&&(this._swipePoint=b[0],this._swipeTouch=d[0].identifier):this._tap.touchstart(c,b,d))},Ti.prototype.touchmove=function(c,b,d){if(!this._tapTime)this._tap.touchmove(c,b,d);else if(this._swipePoint){if(d[0].identifier!==this._swipeTouch)return;var w=b[0],D=w.y-this._swipePoint.y;return this._swipePoint=w,c.preventDefault(),this._active=!0,{zoomDelta:D/128}}},Ti.prototype.touchend=function(c,b,d){if(this._tapTime)this._swipePoint&&d.length===0&&this.reset();else{var w=this._tap.touchend(c,b,d);w&&(this._tapTime=c.timeStamp)}},Ti.prototype.touchcancel=function(){this.reset()},Ti.prototype.enable=function(){this._enabled=!0},Ti.prototype.disable=function(){this._enabled=!1,this.reset()},Ti.prototype.isEnabled=function(){return this._enabled},Ti.prototype.isActive=function(){return this._active};var fo=function(c,b,d){this._el=c,this._mousePan=b,this._touchPan=d};fo.prototype.enable=function(c){this._inertiaOptions=c||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},fo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},fo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},fo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var qn=function(c,b,d){this._pitchWithRotate=c.pitchWithRotate,this._mouseRotate=b,this._mousePitch=d};qn.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},qn.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},qn.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},qn.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var pn=function(c,b,d,w){this._el=c,this._touchZoom=b,this._touchRotate=d,this._tapDragZoom=w,this._rotationDisabled=!1,this._enabled=!0};pn.prototype.enable=function(c){this._touchZoom.enable(c),this._rotationDisabled||this._touchRotate.enable(c),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},pn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},pn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},pn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},pn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},pn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var di=function(g){return g.zoom||g.drag||g.pitch||g.rotate},Jo=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c}(a.Event);function co(g){return g.panDelta&&g.panDelta.mag()||g.zoomDelta||g.bearingDelta||g.pitchDelta}var fi=function(c,b){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new xf(c),this._bearingSnap=b.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(b),a.bindAll(["handleEvent","handleWindowEvent"],this);var d=this._el;this._listeners=[[d,"touchstart",{passive:!0}],[d,"touchmove",{passive:!1}],[d,"touchend",void 0],[d,"touchcancel",void 0],[d,"mousedown",void 0],[d,"mousemove",void 0],[d,"mouseup",void 0],[a.window.document,"mousemove",{capture:!0}],[a.window.document,"mouseup",void 0],[d,"mouseover",void 0],[d,"mouseout",void 0],[d,"dblclick",void 0],[d,"click",void 0],[d,"keydown",{capture:!1}],[d,"keyup",void 0],[d,"wheel",{passive:!1}],[d,"contextmenu",void 0],[a.window,"blur",void 0]];for(var w=0,D=this._listeners;wG?Math.min(2,Qt):Math.max(.5,Qt),kr=Math.pow(Dr,1-dr),Wr=R.unproject(zt.add(Ft.mult(dr*kr)).mult(wr));R.setLocationAtPoint(R.renderWorldCopies?Wr.wrap():Wr,Ve)}D._fireMoveEvents(w)},function(dr){D._afterEase(w,dr)},d),this},c.prototype._prepareEase=function(d,w,D){D===void 0&&(D={}),this._moving=!0,!w&&!D.moving&&this.fire(new a.Event("movestart",d)),this._zooming&&!D.zooming&&this.fire(new a.Event("zoomstart",d)),this._rotating&&!D.rotating&&this.fire(new a.Event("rotatestart",d)),this._pitching&&!D.pitching&&this.fire(new a.Event("pitchstart",d))},c.prototype._fireMoveEvents=function(d){this.fire(new a.Event("move",d)),this._zooming&&this.fire(new a.Event("zoom",d)),this._rotating&&this.fire(new a.Event("rotate",d)),this._pitching&&this.fire(new a.Event("pitch",d))},c.prototype._afterEase=function(d,w){if(!(this._easeId&&w&&this._easeId===w)){delete this._easeId;var D=this._zooming,R=this._rotating,G=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,D&&this.fire(new a.Event("zoomend",d)),R&&this.fire(new a.Event("rotateend",d)),G&&this.fire(new a.Event("pitchend",d)),this.fire(new a.Event("moveend",d))}},c.prototype.flyTo=function(d,w){var D=this;if(!d.essential&&a.browser.prefersReducedMotion){var R=a.pick(d,["center","zoom","bearing","pitch","around"]);return this.jumpTo(R,w)}this.stop(),d=a.extend({offset:[0,0],speed:1.2,curve:1.42,easing:a.ease},d);var G=this.transform,K=this.getZoom(),re=this.getBearing(),ce=this.getPitch(),we=this.getPadding(),be="zoom"in d?a.clamp(+d.zoom,G.minZoom,G.maxZoom):K,Re="bearing"in d?this._normalizeBearing(d.bearing,re):re,Ye="pitch"in d?+d.pitch:ce,Ge="padding"in d?d.padding:G.padding,Ve=G.zoomScale(be-K),Ke=a.Point.convert(d.offset),dt=G.centerPoint.add(Ke),zt=G.pointLocation(dt),Ft=a.LngLat.convert(d.center||zt);this._normalizeCenter(Ft);var Qt=G.project(zt),rr=G.project(Ft).sub(Qt),Yt=d.curve,ar=Math.max(G.width,G.height),dr=ar/Ve,wr=rr.mag();if("minZoom"in d){var Dr=a.clamp(Math.min(d.minZoom,K,be),G.minZoom,G.maxZoom),kr=ar/G.zoomScale(Dr-K);Yt=Math.sqrt(kr/wr*2)}var Wr=Yt*Yt;function Ia(na){var Na=(dr*dr-ar*ar+(na?-1:1)*Wr*Wr*wr*wr)/(2*(na?dr:ar)*Wr*wr);return Math.log(Math.sqrt(Na*Na+1)-Na)}function _a(na){return(Math.exp(na)-Math.exp(-na))/2}function Nr(na){return(Math.exp(na)+Math.exp(-na))/2}function Sa(na){return _a(na)/Nr(na)}var ia=Ia(0),Ga=function(na){return Nr(ia)/Nr(ia+Yt*na)},Oa=function(na){return ar*((Nr(ia)*Sa(ia+Yt*na)-_a(ia))/Wr)/wr},Ai=(Ia(1)-ia)/Yt;if(Math.abs(wr)<1e-6||!isFinite(Ai)){if(Math.abs(ar-dr)<1e-6)return this.easeTo(d,w);var Ea=drd.maxDuration&&(d.duration=0),this._zooming=!0,this._rotating=re!==Re,this._pitching=Ye!==ce,this._padding=!G.isPaddingEqual(Ge),this._prepareEase(w,!1),this._ease(function(na){var Na=na*Ai,en=1/Ga(Na);G.zoom=na===1?be:K+G.scaleZoom(en),D._rotating&&(G.bearing=a.number(re,Re,na)),D._pitching&&(G.pitch=a.number(ce,Ye,na)),D._padding&&(G.interpolatePadding(we,Ge,na),dt=G.centerPoint.add(Ke));var Nn=na===1?Ft:G.unproject(Qt.add(rr.mult(Oa(Na))).mult(en));G.setLocationAtPoint(G.renderWorldCopies?Nn.wrap():Nn,dt),D._fireMoveEvents(w)},function(){return D._afterEase(w)},d),this},c.prototype.isEasing=function(){return!!this._easeFrameId},c.prototype.stop=function(){return this._stop()},c.prototype._stop=function(d,w){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var D=this._onEaseEnd;delete this._onEaseEnd,D.call(this,w)}if(!d){var R=this.handlers;R&&R.stop(!1)}return this},c.prototype._ease=function(d,w,D){D.animate===!1||D.duration===0?(d(1),w()):(this._easeStart=a.browser.now(),this._easeOptions=D,this._onEaseFrame=d,this._onEaseEnd=w,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},c.prototype._renderFrameCallback=function(){var d=Math.min((a.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(d)),d<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},c.prototype._normalizeBearing=function(d,w){d=a.wrap(d,-180,180);var D=Math.abs(d-w);return Math.abs(d-360-w)180?-360:D<-180?360:0}},c}(a.Evented),Ta=function(c){c===void 0&&(c={}),this.options=c,a.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Ta.prototype.getDefaultPosition=function(){return"bottom-right"},Ta.prototype.onAdd=function(c){var b=this.options&&this.options.compact;return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=l.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=l.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),b&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),b===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Ta.prototype.onRemove=function(){l.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Ta.prototype._setElementTitle=function(c,b){var d=this._map._getUIString("AttributionControl."+b);c.title=d,c.setAttribute("aria-label",d)},Ta.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Ta.prototype._updateEditLink=function(){var c=this._editLink;c||(c=this._editLink=this._container.querySelector(".mapbox-improve-map"));var b=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||a.config.ACCESS_TOKEN}];if(c){var d=b.reduce(function(w,D,R){return D.value&&(w+=D.key+"="+D.value+(R=0)return!1;return!0});var G=c.join(" | ");G!==this._attribHTML&&(this._attribHTML=G,c.length?(this._innerContainer.innerHTML=G,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Ta.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var li=function(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)};li.prototype.onAdd=function(c){this._map=c,this._container=l.create("div","mapboxgl-ctrl");var b=l.create("a","mapboxgl-ctrl-logo");return b.target="_blank",b.rel="noopener nofollow",b.href="https://www.mapbox.com/",b.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),b.setAttribute("rel","noopener nofollow"),this._container.appendChild(b),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},li.prototype.onRemove=function(){l.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},li.prototype.getDefaultPosition=function(){return"bottom-left"},li.prototype._updateLogo=function(c){(!c||c.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},li.prototype._logoRequired=function(){if(this._map.style){var c=this._map.style.sourceCaches;for(var b in c){var d=c[b].getSource();if(d.mapbox_logo)return!0}return!1}},li.prototype._updateCompact=function(){var c=this._container.children;if(c.length){var b=c[0];this._map.getCanvasContainer().offsetWidth<250?b.classList.add("mapboxgl-compact"):b.classList.remove("mapboxgl-compact")}};var Bl=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Bl.prototype.add=function(c){var b=++this._id,d=this._queue;return d.push({callback:c,id:b,cancelled:!1}),b},Bl.prototype.remove=function(c){for(var b=this._currentlyRunning,d=b?this._queue.concat(b):this._queue,w=0,D=d;wd.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(d.minPitch!=null&&d.maxPitch!=null&&d.minPitch>d.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(d.minPitch!=null&&d.minPitchTf)throw new Error("maxPitch must be less than or equal to "+Tf);var D=new Qa(d.minZoom,d.maxZoom,d.minPitch,d.maxPitch,d.renderWorldCopies);if(g.call(this,D,d),this._interactive=d.interactive,this._maxTileCacheSize=d.maxTileCacheSize,this._failIfMajorPerformanceCaveat=d.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=d.preserveDrawingBuffer,this._antialias=d.antialias,this._trackResize=d.trackResize,this._bearingSnap=d.bearingSnap,this._refreshExpiredTiles=d.refreshExpiredTiles,this._fadeDuration=d.fadeDuration,this._crossSourceCollisions=d.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=d.collectResourceTiming,this._renderTaskQueue=new Bl,this._controls=[],this._mapId=a.uniqueId(),this._locale=a.extend({},Kv,d.locale),this._clickTolerance=d.clickTolerance,this._requestManager=new a.RequestManager(d.transformRequest,d.accessToken),typeof d.container=="string"){if(this._container=a.window.document.getElementById(d.container),!this._container)throw new Error("Container '"+d.container+"' not found.")}else if(d.container instanceof ly)this._container=d.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(d.maxBounds&&this.setMaxBounds(d.maxBounds),a.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return w._update(!1)}),this.on("moveend",function(){return w._update(!1)}),this.on("zoom",function(){return w._update(!0)}),typeof a.window!="undefined"&&(a.window.addEventListener("online",this._onWindowOnline,!1),a.window.addEventListener("resize",this._onWindowResize,!1),a.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new fi(this,d);var R=typeof d.hash=="string"&&d.hash||void 0;this._hash=d.hash&&new Fl(R).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:d.center,zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),d.bounds&&(this.resize(),this.fitBounds(d.bounds,a.extend({},d.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=d.localIdeographFontFamily,d.style&&this.setStyle(d.style,{localIdeographFontFamily:d.localIdeographFontFamily}),d.attributionControl&&this.addControl(new Ta({customAttribution:d.customAttribution})),this.addControl(new li,d.logoPosition),this.on("style.load",function(){w.transform.unmodified&&w.jumpTo(w.style.stylesheet)}),this.on("data",function(G){w._update(G.dataType==="style"),w.fire(new a.Event(G.dataType+"data",G))}),this.on("dataloading",function(G){w.fire(new a.Event(G.dataType+"dataloading",G))})}g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c;var b={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return c.prototype._getMapId=function(){return this._mapId},c.prototype.addControl=function(w,D){if(D===void 0&&(w.getDefaultPosition?D=w.getDefaultPosition():D="top-right"),!w||!w.onAdd)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var R=w.onAdd(this);this._controls.push(w);var G=this._controlPositions[D];return D.indexOf("bottom")!==-1?G.insertBefore(R,G.firstChild):G.appendChild(R),this},c.prototype.removeControl=function(w){if(!w||!w.onRemove)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var D=this._controls.indexOf(w);return D>-1&&this._controls.splice(D,1),w.onRemove(this),this},c.prototype.hasControl=function(w){return this._controls.indexOf(w)>-1},c.prototype.resize=function(w){var D=this._containerDimensions(),R=D[0],G=D[1];this._resizeCanvas(R,G),this.transform.resize(R,G),this.painter.resize(R,G);var K=!this._moving;return K&&(this.stop(),this.fire(new a.Event("movestart",w)).fire(new a.Event("move",w))),this.fire(new a.Event("resize",w)),K&&this.fire(new a.Event("moveend",w)),this},c.prototype.getBounds=function(){return this.transform.getBounds()},c.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},c.prototype.setMaxBounds=function(w){return this.transform.setMaxBounds(a.LngLatBounds.convert(w)),this._update()},c.prototype.setMinZoom=function(w){if(w=w==null?vh:w,w>=vh&&w<=this.transform.maxZoom)return this.transform.minZoom=w,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=w,this._update(),this.getZoom()>w&&this.setZoom(w),this;throw new Error("maxZoom must be greater than the current minZoom")},c.prototype.getMaxZoom=function(){return this.transform.maxZoom},c.prototype.setMinPitch=function(w){if(w=w==null?Lo:w,w=Lo&&w<=this.transform.maxPitch)return this.transform.minPitch=w,this._update(),this.getPitch()Tf)throw new Error("maxPitch must be less than or equal to "+Tf);if(w>=this.transform.minPitch)return this.transform.maxPitch=w,this._update(),this.getPitch()>w&&this.setPitch(w),this;throw new Error("maxPitch must be greater than the current minPitch")},c.prototype.getMaxPitch=function(){return this.transform.maxPitch},c.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},c.prototype.setRenderWorldCopies=function(w){return this.transform.renderWorldCopies=w,this._update()},c.prototype.project=function(w){return this.transform.locationPoint(a.LngLat.convert(w))},c.prototype.unproject=function(w){return this.transform.pointLocation(a.Point.convert(w))},c.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},c.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},c.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},c.prototype._createDelegatedListener=function(w,D,R){var G=this,K;if(w==="mouseenter"||w==="mouseover"){var re=!1,ce=function(Ve){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Ve.point,{layers:[D]}):[];Ke.length?re||(re=!0,R.call(G,new S(w,G,Ve.originalEvent,{features:Ke}))):re=!1},we=function(){re=!1};return{layer:D,listener:R,delegates:{mousemove:ce,mouseout:we}}}else if(w==="mouseleave"||w==="mouseout"){var be=!1,Re=function(Ve){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Ve.point,{layers:[D]}):[];Ke.length?be=!0:be&&(be=!1,R.call(G,new S(w,G,Ve.originalEvent)))},Ye=function(Ve){be&&(be=!1,R.call(G,new S(w,G,Ve.originalEvent)))};return{layer:D,listener:R,delegates:{mousemove:Re,mouseout:Ye}}}else{var Ge=function(Ve){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Ve.point,{layers:[D]}):[];Ke.length&&(Ve.features=Ke,R.call(G,Ve),delete Ve.features)};return{layer:D,listener:R,delegates:(K={},K[w]=Ge,K)}}},c.prototype.on=function(w,D,R){if(R===void 0)return g.prototype.on.call(this,w,D);var G=this._createDelegatedListener(w,D,R);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[w]=this._delegatedListeners[w]||[],this._delegatedListeners[w].push(G);for(var K in G.delegates)this.on(K,G.delegates[K]);return this},c.prototype.once=function(w,D,R){if(R===void 0)return g.prototype.once.call(this,w,D);var G=this._createDelegatedListener(w,D,R);for(var K in G.delegates)this.once(K,G.delegates[K]);return this},c.prototype.off=function(w,D,R){var G=this;if(R===void 0)return g.prototype.off.call(this,w,D);var K=function(re){for(var ce=re[w],we=0;we180;){var R=b.locationPoint(g);if(R.x>=0&&R.y>=0&&R.x<=b.width&&R.y<=b.height)break;g.lng>b.center.lng?g.lng-=360:g.lng+=360}return g}var $v={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Xp(g,c,b){var d=g.classList;for(var w in $v)d.remove("mapboxgl-"+b+"-anchor-"+w);d.add("mapboxgl-"+b+"-anchor-"+c)}var ph=function(g){function c(b,d){if(g.call(this),(b instanceof a.window.HTMLElement||d)&&(b=a.extend({element:b},d)),a.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=b&&b.anchor||"center",this._color=b&&b.color||"#3FB1CE",this._scale=b&&b.scale||1,this._draggable=b&&b.draggable||!1,this._clickTolerance=b&&b.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=b&&b.rotation||0,this._rotationAlignment=b&&b.rotationAlignment||"auto",this._pitchAlignment=b&&b.pitchAlignment&&b.pitchAlignment!=="auto"?b.pitchAlignment:this._rotationAlignment,!b||!b.element){this._defaultMarker=!0,this._element=l.create("div"),this._element.setAttribute("aria-label","Map marker");var w=l.createNS("http://www.w3.org/2000/svg","svg"),D=41,R=27;w.setAttributeNS(null,"display","block"),w.setAttributeNS(null,"height",D+"px"),w.setAttributeNS(null,"width",R+"px"),w.setAttributeNS(null,"viewBox","0 0 "+R+" "+D);var G=l.createNS("http://www.w3.org/2000/svg","g");G.setAttributeNS(null,"stroke","none"),G.setAttributeNS(null,"stroke-width","1"),G.setAttributeNS(null,"fill","none"),G.setAttributeNS(null,"fill-rule","evenodd");var K=l.createNS("http://www.w3.org/2000/svg","g");K.setAttributeNS(null,"fill-rule","nonzero");var re=l.createNS("http://www.w3.org/2000/svg","g");re.setAttributeNS(null,"transform","translate(3.0, 29.0)"),re.setAttributeNS(null,"fill","#000000");for(var ce=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],we=0,be=ce;we=w}this._isDragging&&(this._pos=d.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.Event("dragstart"))),this.fire(new a.Event("drag")))},c.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.Event("dragend")),this._state="inactive"},c.prototype._addDragHandler=function(d){this._element.contains(d.originalEvent.target)&&(d.preventDefault(),this._positionDelta=d.point.sub(this._pos).add(this._offset),this._pointerdownPos=d.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},c.prototype.setDraggable=function(d){return this._draggable=!!d,this._map&&(d?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},c.prototype.isDraggable=function(){return this._draggable},c.prototype.setRotation=function(d){return this._rotation=d||0,this._update(),this},c.prototype.getRotation=function(){return this._rotation},c.prototype.setRotationAlignment=function(d){return this._rotationAlignment=d||"auto",this._update(),this},c.prototype.getRotationAlignment=function(){return this._rotationAlignment},c.prototype.setPitchAlignment=function(d){return this._pitchAlignment=d&&d!=="auto"?d:this._rotationAlignment,this._update(),this},c.prototype.getPitchAlignment=function(){return this._pitchAlignment},c}(a.Evented),cy={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Af;function ed(g){Af!==void 0?g(Af):a.window.navigator.permissions!==void 0?a.window.navigator.permissions.query({name:"geolocation"}).then(function(c){Af=c.state!=="denied",g(Af)}):(Af=!!a.window.navigator.geolocation,g(Af))}var mh=0,cc=!1,C1=function(g){function c(b){g.call(this),this.options=a.extend({},cy,b),a.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.onAdd=function(d){return this._map=d,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),ed(this._setupUI),this._container},c.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),l.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,mh=0,cc=!1},c.prototype._isOutOfMapMaxBounds=function(d){var w=this._map.getMaxBounds(),D=d.coords;return w&&(D.longitudew.getEast()||D.latitudew.getNorth())},c.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},c.prototype._onSuccess=function(d){if(this._map){if(this._isOutOfMapMaxBounds(d)){this._setErrorState(),this.fire(new a.Event("outofmaxbounds",d)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=d,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(d),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(d),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("geolocate",d)),this._finish()}},c.prototype._updateCamera=function(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude),D=d.coords.accuracy,R=this._map.getBearing(),G=a.extend({bearing:R},this.options.fitBoundsOptions);this._map.fitBounds(w.toBounds(D),G,{geolocateSource:!0})},c.prototype._updateMarker=function(d){if(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude);this._accuracyCircleMarker.setLngLat(w).addTo(this._map),this._userLocationDotMarker.setLngLat(w).addTo(this._map),this._accuracy=d.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},c.prototype._updateCircleRadius=function(){var d=this._map._container.clientHeight/2,w=this._map.unproject([0,d]),D=this._map.unproject([1,d]),R=w.distanceTo(D),G=Math.ceil(2*this._accuracy/R);this._circleElement.style.width=G+"px",this._circleElement.style.height=G+"px"},c.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},c.prototype._onError=function(d){if(this._map){if(this.options.trackUserLocation)if(d.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var w=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(d.code===3&&cc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("error",d)),this._finish()}},c.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},c.prototype._setupUI=function(d){var w=this;if(this._container.addEventListener("contextmenu",function(G){return G.preventDefault()}),this._geolocateButton=l.create("button","mapboxgl-ctrl-geolocate",this._container),l.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",d===!1){a.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var D=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=D,this._geolocateButton.setAttribute("aria-label",D)}else{var R=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=R,this._geolocateButton.setAttribute("aria-label",R)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=l.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ph(this._dotElement),this._circleElement=l.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ph({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(G){var K=G.originalEvent&&G.originalEvent.type==="resize";!G.geolocateSource&&w._watchState==="ACTIVE_LOCK"&&!K&&(w._watchState="BACKGROUND",w._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),w._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),w.fire(new a.Event("trackuserlocationend")))})},c.prototype.trigger=function(){if(!this._setup)return a.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":mh--,cc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),mh++;var d;mh>1?(d={maximumAge:6e5,timeout:0},cc=!0):(d=this.options.positionOptions,cc=!1),this._geolocationWatchID=a.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,d)}}else a.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},c.prototype._clearWatch=function(){a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},c}(a.Evented),hy={maxWidth:100,unit:"metric"},hc=function(c){this.options=a.extend({},hy,c),a.bindAll(["_onMove","setUnit"],this)};hc.prototype.getDefaultPosition=function(){return"bottom-left"},hc.prototype._onMove=function(){vy(this._map,this._container,this.options)},hc.prototype.onAdd=function(c){return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",c.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},hc.prototype.onRemove=function(){l.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},hc.prototype.setUnit=function(c){this.options.unit=c,vy(this._map,this._container,this.options)};function vy(g,c,b){var d=b&&b.maxWidth||100,w=g._container.clientHeight/2,D=g.unproject([0,w]),R=g.unproject([d,w]),G=D.distanceTo(R);if(b&&b.unit==="imperial"){var K=3.2808*G;if(K>5280){var re=K/5280;yh(c,d,re,g._getUIString("ScaleControl.Miles"))}else yh(c,d,K,g._getUIString("ScaleControl.Feet"))}else if(b&&b.unit==="nautical"){var ce=G/1852;yh(c,d,ce,g._getUIString("ScaleControl.NauticalMiles"))}else G>=1e3?yh(c,d,G/1e3,g._getUIString("ScaleControl.Kilometers")):yh(c,d,G,g._getUIString("ScaleControl.Meters"))}function yh(g,c,b,d){var w=L1(b),D=w/b;g.style.width=c*D+"px",g.innerHTML=w+" "+d}function E1(g){var c=Math.pow(10,Math.ceil(-Math.log(g)/Math.LN10));return Math.round(g*c)/c}function L1(g){var c=Math.pow(10,(""+Math.floor(g)).length-1),b=g/c;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:b>=1?1:E1(b),c*b}var $s=function(c){this._fullscreen=!1,c&&c.container&&(c.container instanceof a.window.HTMLElement?this._container=c.container:a.warnOnce("Full screen control 'container' must be a DOM element.")),a.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in a.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in a.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in a.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in a.window.document&&(this._fullscreenchange="MSFullscreenChange")};$s.prototype.onAdd=function(c){return this._map=c,this._container||(this._container=this._map.getContainer()),this._controlContainer=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},$s.prototype.onRemove=function(){l.remove(this._controlContainer),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},$s.prototype._checkFullscreenSupport=function(){return!!(a.window.document.fullscreenEnabled||a.window.document.mozFullScreenEnabled||a.window.document.msFullscreenEnabled||a.window.document.webkitFullscreenEnabled)},$s.prototype._setupUI=function(){var c=this._fullscreenButton=l.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);l.create("span","mapboxgl-ctrl-icon",c).setAttribute("aria-hidden",!0),c.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),a.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},$s.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},$s.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},$s.prototype._isFullscreen=function(){return this._fullscreen},$s.prototype._changeIcon=function(){var c=a.window.document.fullscreenElement||a.window.document.mozFullScreenElement||a.window.document.webkitFullscreenElement||a.window.document.msFullscreenElement;c===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},$s.prototype._onClickFullscreen=function(){this._isFullscreen()?a.window.document.exitFullscreen?a.window.document.exitFullscreen():a.window.document.mozCancelFullScreen?a.window.document.mozCancelFullScreen():a.window.document.msExitFullscreen?a.window.document.msExitFullscreen():a.window.document.webkitCancelFullScreen&&a.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var D1={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},P1=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),m3=function(g){function c(b){g.call(this),this.options=a.extend(Object.create(D1),b),a.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.addTo=function(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new a.Event("open")),this},c.prototype.isOpen=function(){return!!this._map},c.prototype.remove=function(){return this._content&&l.remove(this._content),this._container&&(l.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new a.Event("close")),this},c.prototype.getLngLat=function(){return this._lngLat},c.prototype.setLngLat=function(d){return this._lngLat=a.LngLat.convert(d),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},c.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},c.prototype.getElement=function(){return this._container},c.prototype.setText=function(d){return this.setDOMContent(a.window.document.createTextNode(d))},c.prototype.setHTML=function(d){var w=a.window.document.createDocumentFragment(),D=a.window.document.createElement("body"),R;for(D.innerHTML=d;R=D.firstChild,!!R;)w.appendChild(R);return this.setDOMContent(w)},c.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},c.prototype.setMaxWidth=function(d){return this.options.maxWidth=d,this._update(),this},c.prototype.setDOMContent=function(d){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=l.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(d),this._createCloseButton(),this._update(),this._focusFirstElement(),this},c.prototype.addClassName=function(d){this._container&&this._container.classList.add(d)},c.prototype.removeClassName=function(d){this._container&&this._container.classList.remove(d)},c.prototype.setOffset=function(d){return this.options.offset=d,this._update(),this},c.prototype.toggleClassName=function(d){if(this._container)return this._container.classList.toggle(d)},c.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=l.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},c.prototype._onMouseUp=function(d){this._update(d.point)},c.prototype._onMouseMove=function(d){this._update(d.point)},c.prototype._onDrag=function(d){this._update(d.point)},c.prototype._update=function(d){var w=this,D=this._lngLat||this._trackPointer;if(!(!this._map||!D||!this._content)&&(this._container||(this._container=l.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=l.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Re){return w._container.classList.add(Re)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Cu(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!d))){var R=this._pos=this._trackPointer&&d?d:this._map.project(this._lngLat),G=this.options.anchor,K=z1(this.options.offset);if(!G){var re=this._container.offsetWidth,ce=this._container.offsetHeight,we;R.y+K.bottom.ythis._map.transform.height-ce?we=["bottom"]:we=[],R.xthis._map.transform.width-re/2&&we.push("right"),we.length===0?G="bottom":G=we.join("-")}var be=R.add(K[G]).round();l.setTransform(this._container,$v[G]+" translate("+be.x+"px,"+be.y+"px)"),Xp(this._container,G,"popup")}},c.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var d=this._container.querySelector(P1);d&&d.focus()}},c.prototype._onClose=function(){this.remove()},c}(a.Evented);function z1(g){if(g)if(typeof g=="number"){var c=Math.round(Math.sqrt(.5*Math.pow(g,2)));return{center:new a.Point(0,0),top:new a.Point(0,g),"top-left":new a.Point(c,c),"top-right":new a.Point(-c,c),bottom:new a.Point(0,-g),"bottom-left":new a.Point(c,-c),"bottom-right":new a.Point(-c,-c),left:new a.Point(g,0),right:new a.Point(-g,0)}}else if(g instanceof a.Point||Array.isArray(g)){var b=a.Point.convert(g);return{center:b,top:b,"top-left":b,"top-right":b,bottom:b,"bottom-left":b,"bottom-right":b,left:b,right:b}}else return{center:a.Point.convert(g.center||[0,0]),top:a.Point.convert(g.top||[0,0]),"top-left":a.Point.convert(g["top-left"]||[0,0]),"top-right":a.Point.convert(g["top-right"]||[0,0]),bottom:a.Point.convert(g.bottom||[0,0]),"bottom-left":a.Point.convert(g["bottom-left"]||[0,0]),"bottom-right":a.Point.convert(g["bottom-right"]||[0,0]),left:a.Point.convert(g.left||[0,0]),right:a.Point.convert(g.right||[0,0])};else return z1(new a.Point(0,0))}var Tn={version:a.version,supported:s,setRTLTextPlugin:a.setRTLTextPlugin,getRTLTextPluginStatus:a.getRTLTextPluginStatus,Map:fy,NavigationControl:ku,GeolocateControl:C1,AttributionControl:Ta,ScaleControl:hc,FullscreenControl:$s,Popup:m3,Marker:ph,Style:As,LngLat:a.LngLat,LngLatBounds:a.LngLatBounds,Point:a.Point,MercatorCoordinate:a.MercatorCoordinate,Evented:a.Evented,config:a.config,prewarm:Or,clearPrewarmedResources:ca,get accessToken(){return a.config.ACCESS_TOKEN},set accessToken(g){a.config.ACCESS_TOKEN=g},get baseApiUrl(){return a.config.API_URL},set baseApiUrl(g){a.config.API_URL=g},get workerCount(){return tr.workerCount},set workerCount(g){tr.workerCount=g},get maxParallelImageRequests(){return a.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){a.config.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage:function(c){a.clearTileCache(c)},workerUrl:""};return Tn}),r})});var NH=pe((a3e,qH)=>{qH.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var jb=pe(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var Ys=63710088e-1,kA={centimeters:Ys*100,centimetres:Ys*100,degrees:360/(2*Math.PI),feet:Ys*3.28084,inches:Ys*39.37,kilometers:Ys/1e3,kilometres:Ys/1e3,meters:Ys,metres:Ys,miles:Ys/1609.344,millimeters:Ys*1e3,millimetres:Ys*1e3,nauticalmiles:Ys/1852,radians:1,yards:Ys*1.0936},SA={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function uv(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function rpe(e,t,r={}){switch(e){case"Point":return CA(t).geometry;case"LineString":return LA(t).geometry;case"Polygon":return EA(t).geometry;case"MultiPoint":return OH(t).geometry;case"MultiLineString":return BH(t).geometry;case"MultiPolygon":return UH(t).geometry;default:throw new Error(e+" is invalid")}}function CA(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Wb(e[0])||!Wb(e[1]))throw new Error("coordinates must contain numbers");return uv({type:"Point",coordinates:e},t,r)}function ape(e,t,r={}){return Xb(e.map(i=>CA(i,t)),r)}function EA(e,t,r={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let s=0;sEA(i,t)),r)}function LA(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return uv({type:"LineString",coordinates:e},t,r)}function npe(e,t,r={}){return Xb(e.map(i=>LA(i,t)),r)}function Xb(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function BH(e,t,r={}){return uv({type:"MultiLineString",coordinates:e},t,r)}function OH(e,t,r={}){return uv({type:"MultiPoint",coordinates:e},t,r)}function UH(e,t,r={}){return uv({type:"MultiPolygon",coordinates:e},t,r)}function ope(e,t,r={}){return uv({type:"GeometryCollection",geometries:e},t,r)}function spe(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function VH(e,t="kilometers"){let r=kA[t];if(!r)throw new Error(t+" units is invalid");return e*r}function DA(e,t="kilometers"){let r=kA[t];if(!r)throw new Error(t+" units is invalid");return e/r}function lpe(e,t){return HH(DA(e,t))}function upe(e){let t=e%360;return t<0&&(t+=360),t}function fpe(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function HH(e){return e%(2*Math.PI)*180/Math.PI}function cpe(e){return e%360*Math.PI/180}function hpe(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return VH(DA(e,t),r)}function vpe(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=SA[t];if(!i)throw new Error("invalid original units");let a=SA[r];if(!a)throw new Error("invalid final units");return e/i*a}function Wb(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function dpe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ppe(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!Wb(t))throw new Error("bbox must only contain numbers")})}function mpe(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Si.areaFactors=SA;Si.azimuthToBearing=fpe;Si.bearingToAzimuth=upe;Si.convertArea=vpe;Si.convertLength=hpe;Si.degreesToRadians=cpe;Si.earthRadius=Ys;Si.factors=kA;Si.feature=uv;Si.featureCollection=Xb;Si.geometry=rpe;Si.geometryCollection=ope;Si.isNumber=Wb;Si.isObject=dpe;Si.lengthToDegrees=lpe;Si.lengthToRadians=DA;Si.lineString=LA;Si.lineStrings=npe;Si.multiLineString=BH;Si.multiPoint=OH;Si.multiPolygon=UH;Si.point=CA;Si.points=ape;Si.polygon=EA;Si.polygons=ipe;Si.radiansToDegrees=HH;Si.radiansToLength=VH;Si.round=spe;Si.validateBBox=ppe;Si.validateId=mpe});var Kb=pe(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var us=jb();function w1(e,t,r){if(e!==null)for(var i,a,s,l,u,h,v,m=0,_=0,T,M=e.type,C=M==="FeatureCollection",E=M==="Feature",L=C?e.features.length:1,I=0;Ih||C>v||E>m){u=_,h=i,v=C,m=E,s=0;return}var L=us.lineString.call(void 0,[u,_],r.properties);if(t(L,i,a,E,s)===!1)return!1;s++,u=_})===!1)return!1}}})}function Tpe(e,t,r){var i=r,a=!1;return YH(e,function(s,l,u,h,v){a===!1&&r===void 0?i=s:i=t(i,s,l,u,h,v),a=!0}),i}function WH(e,t){if(!e)throw new Error("geojson is required");Jb(e,function(r,i,a){if(r.geometry!==null){var s=r.geometry.type,l=r.geometry.coordinates;switch(s){case"LineString":if(t(r,i,a,0,0)===!1)return!1;break;case"Polygon":for(var u=0;u{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0});var XH=jb(),kpe=Kb();function KH(e){return kpe.geomReduce.call(void 0,e,(t,r)=>t+Cpe(r),0)}function Cpe(e){let t=0,r;switch(e.type){case"Polygon":return jH(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(JH(e[0]));for(let r=1;r=t?(i+2)%t:i+2],u=a[0]*zA,h=s[1]*zA,v=l[0]*zA;r+=(v-u)*Math.sin(h),i++}return r*Epe}var Lpe=KH;Qb.area=KH;Qb.default=Lpe});var eG=pe($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});var Dpe=jb(),Ppe=Kb();function $H(e,t={}){let r=0,i=0,a=0;return Ppe.coordEach.call(void 0,e,function(s){r+=s[0],i+=s[1],a++},!0),Dpe.point.call(void 0,[r/a,i/a],t.properties)}var zpe=$H;$b.centroid=$H;$b.default=zpe});var rG=pe(e3=>{"use strict";Object.defineProperty(e3,"__esModule",{value:!0});var Ipe=Kb();function tG(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return Ipe.coordEach.call(void 0,e,i=>{r[0]>i[0]&&(r[0]=i[0]),r[1]>i[1]&&(r[1]=i[1]),r[2]{"use strict";var aG={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},Fpe=new Set(Object.values(aG));iG.exports={usaLocationAbbreviations:Fpe,usaLocationList:aG}});var IA=pe((f3e,uG)=>{"use strict";var qpe=Xa(),sG=NH(),{area:Npe}=QH(),{centroid:Bpe}=eG(),{bbox:Ope}=rG(),Upe=E_(),tp=Lh(),Vpe=gc(),Hpe=Ly(),t3=gx(),{usaLocationAbbreviations:Gpe,usaLocationList:Zpe}=nG(),oG=Object.keys(sG),Ype={"ISO-3":Upe,"USA-states":Xpe,"country names":Wpe};function Wpe(e){for(var t=0;t0&&m[_+1][0]<0)return _;return null}switch(i==="RUS"||i==="FJI"?s=function(m){var _;if(v(m)===null)_=m;else for(_=new Array(m.length),h=0;h_?T[M++]=[m[h][0]+360,m[h][1]]:h===_?(T[M++]=m[h],T[M++]=[m[h][0],-90]):T[M++]=m[h];var C=t3.tester(T);C.pts.pop(),a.push(C)}:s=function(m){a.push(t3.tester(m))},t.type){case"MultiPolygon":for(l=0;l0?C.properties.ct=Qpe(C):C.properties.ct=[NaN,NaN],T.fIn=m,T.fOut=C,a.push(C)}else tp.log(["Location",T.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete i[_]}switch(r.type){case"FeatureCollection":var h=r.features;for(s=0;sa&&(a=u,r=l)}else r=t;return Bpe(r).geometry.coordinates}function $pe(e){var t=window.PlotlyGeoAssets||{},r=[];function i(h){return new Promise(function(v,m){qpe.json(h,function(_,T){if(_){delete t[h];var M=_.status===404?'GeoJSON at URL "'+h+'" does not exist.':"Unexpected error while fetching from "+h;return m(new Error(M))}return t[h]=T,v(T)})})}function a(h){return new Promise(function(v,m){var _=0,T=setInterval(function(){if(t[h]&&t[h]!=="pending")return clearInterval(T),v(t[h]);if(_>100)return clearInterval(T),m("Unexpected error while fetching from "+h);_++},50)})}for(var s=0;s{"use strict";var rp=Ot(),t0e=ro().sanitizeHTML,r0e=_A(),fG=Oc();function cG(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=fG.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var hu=cG.prototype;hu.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=r3(t)};hu.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};hu.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};hu.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};hu.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};hu.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};hu.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!r3(e)){var r=a0e(e);t.addSource(this.idSource,r)}};hu.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function hG(e){var t={},r={};switch(e.type){case"circle":rp.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":rp.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":rp.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=r0e(i.textposition,i.iconsize);rp.extendFlat(t,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":a.anchor,"text-offset":a.offset,"symbol-placement":i.placement}),rp.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":rp.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function a0e(e){var t=e.sourcetype,r=e.source,i={type:t},a;return t==="geojson"?a="data":t==="vector"?a=typeof r=="string"?"url":"tiles":t==="raster"?(a="tiles",i.tileSize=256):t==="image"&&(a="url",i.coordinates=e.coordinates),i[a]=r,e.sourceattribution&&(i.attribution=t0e(e.sourceattribution)),i}vG.exports=function(t,r,i){var a=new cG(t,r);return a.update(i),a}});var TG=pe((h3e,wG)=>{"use strict";var RA=MA(),FA=Ot(),gG=IA(),pG=la(),i0e=Xi(),n0e=jl(),a3=Uu(),_G=qd(),o0e=_G.drawMode,s0e=_G.selectMode,l0e=Gf().prepSelect,u0e=Gf().clearOutline,f0e=Gf().clearSelectionsCache,c0e=Gf().selectOnClick,fv=Oc(),h0e=dG();function xG(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Hn=xG.prototype;Hn.plot=function(e,t,r){var i=this,a=t[i.id];i.map&&a.accesstoken!==i.accessToken&&(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]);var s;i.map?s=new Promise(function(l,u){i.updateMap(e,t,l,u)}):s=new Promise(function(l,u){i.createMap(e,t,l,u)}),r.push(s)};Hn.createMap=function(e,t,r,i){var a=this,s=t[a.id],l=a.styleObj=bG(s.style,t);a.accessToken=s.accesstoken;var u=s.bounds,h=u?[[u.west,u.south],[u.east,u.north]]:null,v=a.map=new RA.Map({container:a.div,style:l.style,center:qA(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:h,interactive:!a.isStatic,preserveDrawingBuffer:a.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new RA.AttributionControl({compact:!0}));v._canvas.style.left="0px",v._canvas.style.top="0px",a.rejectOnError(i),a.isStatic||a.initFx(e,t);var m=[];m.push(new Promise(function(_){v.once("load",_)})),m=m.concat(gG.fetchTraceGeoData(e)),Promise.all(m).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Hn.updateMap=function(e,t,r,i){var a=this,s=a.map,l=t[this.id];a.rejectOnError(i);var u=[],h=bG(l.style,t);JSON.stringify(a.styleObj)!==JSON.stringify(h)&&(a.styleObj=h,s.setStyle(h.style),a.traceHash={},u.push(new Promise(function(v){s.once("styledata",v)}))),u=u.concat(gG.fetchTraceGeoData(e)),Promise.all(u).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Hn.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,a,s,l=this.belowLookup={},u=!1;for(a=0;a1)for(a=0;a-1&&c0e(h.originalEvent,i,[r.xaxis],[r.yaxis],r.id,u),v.indexOf("event")>-1&&a3.click(i,h.originalEvent)}}};Hn.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function a(h){var v=t.map.unproject(h);return[v.lng,v.lat]}var s=e.dragmode,l;l=function(h,v){if(v.isRect){var m=h.range={};m[t.id]=[a([v.xmin,v.ymin]),a([v.xmax,v.ymax])]}else{var _=h.lassoPoints={};_[t.id]=v.map(a)}};var u=t.dragOptions;t.dragOptions=FA.extendDeep(u||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:l},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),s0e(s)||o0e(s)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(h,v,m){l0e(h,v,m,t.dragOptions,s)},n0e.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Hn.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Hn.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,a;if(r.length!==i.length){for(a=0;a{"use strict";var v0e=Ot(),d0e=Pi(),p0e=Ib().defaults;AG.exports=function(t,r,i,a){var s=a.type,l=a.attributes,u=a.handleDefaults,h=a.partition||"x",v=r._subplots[s],m=v.length,_=m&&v[0].replace(/\d+$/,""),T,M;function C(O,q){return v0e.coerce(T,M,l,O,q)}for(var E=0;E{"use strict";var NA=Ot(),m0e=MG(),y0e=Wl(),SG=y1();kG.exports=function(t,r,i){m0e(t,r,i,{type:"mapbox",attributes:SG,handleDefaults:g0e,partition:"y",accessToken:r._mapboxAccessToken})};function g0e(e,t,r,i){r("accesstoken",i.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var a=r("bounds.west"),s=r("bounds.east"),l=r("bounds.south"),u=r("bounds.north");(a===void 0||s===void 0||l===void 0||u===void 0)&&delete t.bounds,y0e(e,t,{name:"layers",handleItemDefaults:_0e}),t._input=e}function _0e(e,t){function r(h,v){return NA.coerce(e,t,SG.layers,h,v)}var i=r("visible");if(i){var a=r("sourcetype"),s=a==="raster"||a==="image";r("source"),r("sourceattribution"),a==="vector"&&r("sourcelayer"),a==="image"&&r("coordinates");var l;s&&(l="raster");var u=r("type",l);s&&u!=="raster"&&(u=t.type="raster",NA.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),u==="circle"&&r("circle.radius"),u==="line"&&(r("line.width"),r("line.dash")),u==="fill"&&r("fill.outlinecolor"),u==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),NA.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var i3=pe(Ws=>{"use strict";var EG=MA(),$u=Ot(),BA=$u.strTranslate,x0e=$u.strScale,b0e=X_().getSubplotCalcData,w0e=Oh(),T0e=Xa(),LG=_i(),A0e=ro(),M0e=TG(),cv="mapbox",Jf=Ws.constants=Oc();Ws.name=cv;Ws.attr="subplot";Ws.idRoot=cv;Ws.idRegex=Ws.attrRegex=$u.counterRegex(cv);var S0e=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Ws.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Ws.layoutAttributes=y1();Ws.supplyLayoutDefaults=CG();var DG=!0;Ws.plot=function(t){DG&&(DG=!1,$u.warn(S0e));var r=t._fullLayout,i=t.calcdata,a=r._subplots[cv];if(EG.version!==Jf.requiredVersion)throw new Error(Jf.wrongVersionErrorMsg);var s=k0e(t,a);EG.accessToken=s;for(var l=0;lI/2){var O=M.split("|").join("
");E.text(O).attr("data-unformatted",O).call(A0e.convertToTspans,e),L=LG.bBox(E.node())}E.attr("transform",BA(-3,-L.height+8)),C.insert("rect",".static-attribution").attr({x:-L.width-6,y:-L.height-3,width:L.width+6,height:L.height+3,fill:"rgba(255, 255, 255, 0.75)"});var q=1;L.width+6>I&&(q=I/(L.width+6));var z=[i.l+i.w*l.x[1],i.t+i.h*(1-l.y[0])];C.attr("transform",BA(z[0],z[1])+x0e(q))}};function k0e(e,t){var r=e._fullLayout,i=e._context;if(i.mapboxAccessToken==="")return"";for(var a=[],s=[],l=!1,u=!1,h=0;h1&&$u.warn(Jf.multipleTokensErrorMsg),a[0]):(s.length&&$u.log(["Listed mapbox access token(s)",s.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function PG(e){return typeof e=="string"&&(Jf.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Ws.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[cv],i=0;i{"use strict";var m3e=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");zG.exports={attributes:Ob(),supplyDefaults:cH(),colorbar:nT(),formatLabels:yA(),calc:gH(),plot:LH(),hoverPoints:Yb().hoverPoints,eventData:IH(),selectPoints:FH(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:i3(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var FG=pe((g3e,RG)=>{"use strict";RG.exports=IG()});var OA=pe((_3e,BG)=>{"use strict";var{hovertemplateAttrs:C0e,templatefallbackAttrs:E0e}=Cf(),vv=vA(),L0e=kc(),qG=ys(),D0e=kf().defaultLine,hv=mn().extendFlat,NG=vv.marker.line;BG.exports=hv({locations:{valType:"data_array",editType:"calc"},locationmode:vv.locationmode,z:{valType:"data_array",editType:"calc"},geojson:hv({},vv.geojson,{}),featureidkey:vv.featureidkey,text:hv({},vv.text,{}),hovertext:hv({},vv.hovertext,{}),marker:{line:{color:hv({},NG.color,{dflt:D0e}),width:hv({},NG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:vv.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:vv.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:hv({},qG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:C0e(),hovertemplatefallback:E0e(),showlegend:hv({},qG.showlegend,{dflt:!1})},L0e("",{cLetter:"z",editTypeOverride:"calc"}))});var UA=pe((x3e,OG)=>{"use strict";var Uc=OA(),P0e=kc(),{hovertemplateAttrs:z0e,templatefallbackAttrs:I0e}=Cf(),R0e=ys(),dv=mn().extendFlat;OG.exports=dv({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:dv({},Uc.featureidkey,{}),below:{valType:"string",editType:"plot"},text:Uc.text,hovertext:Uc.hovertext,marker:{line:{color:dv({},Uc.marker.line.color,{editType:"plot"}),width:dv({},Uc.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:dv({},Uc.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:dv({},Uc.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:dv({},Uc.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:Uc.hoverinfo,hovertemplate:z0e({},{keys:["properties"]}),hovertemplatefallback:I0e(),showlegend:dv({},R0e.showlegend,{dflt:!1})},P0e("",{cLetter:"z",editTypeOverride:"calc"}))});var VG=pe((b3e,UG)=>{"use strict";var T1=Ot(),F0e=bd(),q0e=UA();UG.exports=function(t,r,i,a){function s(m,_){return T1.coerce(t,r,q0e,m,_)}var l=s("locations"),u=s("z"),h=s("geojson");if(!T1.isArrayOrTypedArray(l)||!l.length||!T1.isArrayOrTypedArray(u)||!u.length||!(typeof h=="string"&&h!==""||T1.isPlainObject(h))){r.visible=!1;return}s("featureidkey"),r._length=Math.min(l.length,u.length),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback");var v=s("marker.line.width");v&&s("marker.line.color"),s("marker.opacity"),F0e(t,r,a,s,{prefix:"",cLetter:"z"}),T1.coerceSelectionMarkerOpacity(r,s)}});var VA=pe((w3e,HG)=>{"use strict";HG.exports={min:"zmin",max:"zmax"}});var WG=pe((T3e,YG)=>{"use strict";var GG=La(),N0e=Zi().BADNUM,B0e=$y(),O0e=Qg(),U0e=$x();function ZG(e){return e&&typeof e=="string"}YG.exports=function(t,r){var i=r._length,a=new Array(i),s;r.geojson?s=function(m){return ZG(m)||GG(m)}:s=ZG;for(var l=0;l{"use strict";var V0e=La(),Vc=Ot(),H0e=H0(),G0e=_i(),Z0e=Ub().makeBlank,XG=IA();function Y0e(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},a={layout:{visibility:"none"},paint:{}},s=t._opts={fill:i,line:a,geojson:Z0e()};if(!r)return s;var l=XG.extractTraceFeature(e);if(!l)return s;var u=H0e.makeColorScaleFuncFromTrace(t),h=t.marker,v=h.line||{},m;Vc.isArrayOrTypedArray(h.opacity)&&(m=function(O){var q=O.mo;return V0e(q)?+Vc.constrain(q,0,1):0});var _;Vc.isArrayOrTypedArray(v.color)&&(_=function(O){return O.mlc});var T;Vc.isArrayOrTypedArray(v.width)&&(T=function(O){return O.mlw});for(var M=0;M{"use strict";var QG=HA().convert,W0e=HA().convertOnSelect,KG=Oc().traceLayerPrefix;function $G(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",KG+t+"-fill"],["line",KG+t+"-line"]],this.below=null}var Lm=$G.prototype;Lm.update=function(e){this._update(QG(e)),e[0].trace._glTrace=this};Lm.updateOnSelect=function(e){this._update(W0e(e))};Lm._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};Lm.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};eZ.exports=function(t,r){var i=r[0].trace,a=new $G(t,i.uid),s=a.sourceId,l=QG(r),u=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,u),r[0].trace._glTrace=a,a}});var aZ=pe((S3e,rZ)=>{"use strict";var X0e=Xi(),j0e=OA(),J0e=Ot().fillText;rZ.exports=function(t,r,i){var a=t.cd,s=a[0].trace,l=t.subplot,u,h,v,m,_=[r,i],T=[r+360,i];for(h=0;h")}}});var nZ=pe((k3e,iZ)=>{"use strict";iZ.exports=function(t,r,i,a,s){t.location=r.location,t.z=r.z;var l=a[s];return l.fIn&&l.fIn.properties&&(t.properties=l.fIn.properties),t.ct=l.ct,t}});var sZ=pe((C3e,oZ)=>{"use strict";oZ.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],u,h,v,m,_;if(r===!1)for(u=0;u{"use strict";var E3e=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");lZ.exports={attributes:UA(),supplyDefaults:VG(),colorbar:VA(),calc:WG(),plot:tZ(),hoverPoints:aZ(),eventData:nZ(),selectPoints:sZ(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var a=r[i].id;if(typeof a=="string"&&a.indexOf("water")===0){for(var s=i+1;s{"use strict";fZ.exports=uZ()});var ZA=pe((P3e,vZ)=>{"use strict";var Q0e=kc(),{hovertemplateAttrs:$0e,templatefallbackAttrs:eme}=Cf(),hZ=ys(),n3=Ob(),GA=mn().extendFlat;vZ.exports=GA({lon:n3.lon,lat:n3.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:n3.text,hovertext:n3.hovertext,hoverinfo:GA({},hZ.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:$0e(),hovertemplatefallback:eme(),showlegend:GA({},hZ.showlegend,{dflt:!1})},Q0e("",{cLetter:"z",editTypeOverride:"calc"}))});var pZ=pe((z3e,dZ)=>{"use strict";var tme=Ot(),rme=bd(),ame=ZA();dZ.exports=function(t,r,i,a){function s(v,m){return tme.coerce(t,r,ame,v,m)}var l=s("lon")||[],u=s("lat")||[],h=Math.min(l.length,u.length);if(!h){r.visible=!1;return}r._length=h,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),rme(t,r,a,s,{prefix:"",cLetter:"z"})}});var gZ=pe((I3e,yZ)=>{"use strict";var YA=La(),ime=Ot().isArrayOrTypedArray,WA=Zi().BADNUM,nme=$y(),mZ=Ot()._;yZ.exports=function(t,r){for(var i=r._length,a=new Array(i),s=r.z,l=ime(s)&&s.length,u=0;u{"use strict";var ome=La(),XA=Ot(),_Z=Ba(),xZ=H0(),bZ=Zi().BADNUM,sme=Ub().makeBlank;wZ.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,a={layout:{visibility:"none"},paint:{}},s=r._opts={heatmap:a,geojson:sme()};if(!i)return s;var l=[],u,h=r.z,v=r.radius,m=XA.isArrayOrTypedArray(h)&&h.length,_=XA.isArrayOrTypedArray(v);for(u=0;u0?+v[u]:0),l.push({type:"Feature",geometry:{type:"Point",coordinates:M},properties:C})}}var L=xZ.extractOpts(r),I=L.reversescale?xZ.flipScale(L.colorscale):L.colorscale,O=I[0][1],q=_Z.opacity(O)<1?O:_Z.addOpacity(O,0),z=["interpolate",["linear"],["heatmap-density"],0,q];for(u=1;u{"use strict";var AZ=TZ(),lme=Oc().traceLayerPrefix;function MZ(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",lme+t+"-heatmap"]],this.below=null}var o3=MZ.prototype;o3.update=function(e){var t=this.subplot,r=this.layerList,i=AZ(e),a=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var s=0;s=0;r--)e.removeLayer(t[r][1])};o3.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};SZ.exports=function(t,r){var i=r[0].trace,a=new MZ(t,i.uid),s=a.sourceId,l=AZ(r),u=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,u),a}});var EZ=pe((q3e,CZ)=>{"use strict";var ume=Xi(),fme=Yb().hoverPoints,cme=Yb().getExtraText;CZ.exports=function(t,r,i){var a=fme(t,r,i);if(a){var s=a[0],l=s.cd,u=l[0].trace,h=l[s.index];if(delete s.color,"z"in h){var v=s.subplot.mockAxis;s.z=h.z,s.zLabel=ume.tickText(v,v.c2l(h.z),"hover").text}return s.extraText=cme(u,h,l[0].t.labels),[s]}}});var DZ=pe((N3e,LZ)=>{"use strict";LZ.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var zZ=pe((O3e,PZ)=>{"use strict";var B3e=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");PZ.exports={attributes:ZA(),supplyDefaults:pZ(),colorbar:VA(),formatLabels:yA(),calc:gZ(),plot:kZ(),hoverPoints:EZ(),eventData:DZ(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";IZ.exports=zZ()});var Vo=pe((V3e,qZ)=>{"use strict";var FZ=Object.getOwnPropertySymbols,hme=Object.prototype.hasOwnProperty,vme=Object.prototype.propertyIsEnumerable;function dme(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function pme(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(s){a[s]=s}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(s){return!1}}qZ.exports=pme()?Object.assign:function(e,t){for(var r,i=dme(e),a,s=1;s{var l3=Vo();function NZ(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}l3(NZ.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,a){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,a):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",a=0;r>0;){var s=r%10;i=(s===0?"":e[s]+t[a])+i,a++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function jA(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function s3(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}l3(jA.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(ka.local.differentCalendars||ka.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+s3(Math.abs(this.year()),4)+"-"+s3(this.month(),2)+"-"+s3(this.day(),2)}});function JA(){this.shortYearCutoff="+10"}l3(JA.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new jA(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+s3(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),a=e.calendar().fromJD(i);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var s=e.year()+(r==="y"?t:0),l=e.monthOfYear()+(r==="m"?t:0),a=e.day(),u=function(m){for(;l_-1+m.minMonth;)s++,l-=_,_=m.monthsInYear(s)};r==="y"?(e.month()!==this.fromMonthOfYear(s,l)&&(l=this.newDate(s,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(s)),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l)))):r==="m"&&(u(this),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l))));var h=[s,this.fromMonthOfYear(s,l),a];return this._validateLevel--,h}catch(v){throw this._validateLevel--,v}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],s=r<0?-1:1;t=this._add(e,r*a[0]+s*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),a=r==="m"?t:e.month(),s=r==="d"?t:e.day();return(r==="y"||r==="m")&&(s=Math.min(s,this.daysInMonth(i,a))),e.date(i,a,s)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var a=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),v=a-(h>2.5?4716:4715);return v<=0&&v--,this.newDate(v,h,u)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),a=new Date(i.year(),i.month()-1,i.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var ka=BZ.exports=new NZ;ka.cdate=jA;ka.baseCalendar=JA;ka.calendars.gregorian=KA});var OZ=pe(()=>{var QA=Vo(),mo=Ho();QA(mo.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});mo.local=mo.regionalOptions[""];QA(mo.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});QA(mo.baseCalendar.prototype,{UNIX_EPOCH:mo.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:mo.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw mo.local.invalidFormat||mo.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,s=r.monthNumbers||this.local.monthNumbers,l=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,h=r.calculateWeek||this.local.calculateWeek,v=function(z,N){for(var H=1;q+H1},m=function(z,N,H,U){var W=""+N;if(v(z,U))for(;W.length1},O=function(oe,he){var fe=I(oe,he),Te=[2,3,fe?4:2,fe?4:2,10,11,20]["oyYJ@!".indexOf(oe)+1],ke=new RegExp("^-?\\d{1,"+Te+"}"),Se=t.substring(W).match(ke);if(!Se)throw(mo.local.missingNumberAt||mo.regionalOptions[""].missingNumberAt).replace(/\{0\}/,W);return W+=Se[0].length,parseInt(Se[0],10)},q=this,z=function(){if(typeof u=="function"){I("m");var oe=u.call(q,t.substring(W));return W+=oe.length,oe}return O("m")},N=function(oe,he,fe,Te){for(var ke=I(oe,Te)?fe:he,Se=0;Se-1){T=1,M=C;for(var ie=this.daysInMonth(_,T);M>ie;ie=this.daysInMonth(_,T))T++,M-=ie}return m>-1?this.fromJD(m):this.newDate(_,T,M)},determineDate:function(e,t,r,i,a){r&&typeof r!="object"&&(a=i,i=r,r=null),typeof i!="string"&&(a=i,i="");var s=this,l=function(u){try{return s.parseDate(i,u,a)}catch(_){}u=u.toLowerCase();for(var h=(u.match(/^c/)&&r?r.newDate():null)||s.today(),v=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,m=v.exec(u);m;)h.add(parseInt(m[1],10),m[2]||"d"),m=v.exec(u);return h};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:s.today().add(e,"d"):s.newDate(e),e}})});var UZ=pe(()=>{var pv=Ho(),mme=Vo(),$A=pv.instance();function u3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u3.prototype=new pv.baseCalendar;mme(u3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(gme);return r?r[0]:""}var i=this._validateYear(e),a=e.month(),s=""+this.toChineseMonth(i,a);return t&&s.length<2&&(s="0"+s),this.isIntercalaryMonth(i,a)&&(s+="i"),s},monthNames:function(e){if(typeof e=="string"){var t=e.match(_me);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(xme);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var a=t[t.length-1];i=a==="i"||a==="I"}var s=this.toMonthIndex(e,r,i);return s},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),a=r&&t!==i;if(a||t<1||t>12)throw pv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s;return i?!r&&t<=i?s=t-1:s=t:s=t-1,s},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw pv.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,pv.local.invalidyear),a=yv[i-yv[0]],s=a>>9&4095,l=a>>5&15,u=a&31,h;h=$A.newDate(s,l,u),h.add(4-(h.dayOfWeek()||7),"d");var v=this.toJD(e,t,r)-h.toJD();return 1+Math.floor(v/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=mv[e-mv[0]],i=r>>13,a=i?12:11;if(t>a)throw pv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s=r&1<<12-t?30:29;return s},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,s,r,pv.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var a=this.isIntercalaryMonth(e,t),s=this.toChineseMonth(e,t),l=wme(e,s,r,a);return $A.toJD(l.year,l.month,l.day)},fromJD:function(e){var t=$A.fromJD(e),r=bme(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(yme),r=this._validateYear(+t[1]),i=+t[2],a=!!t[3],s=this.toMonthIndex(r,i,a),l=+t[4];return this.newDate(r,s,l)},add:function(e,t,r){var i=e.year(),a=e.month(),s=this.isIntercalaryMonth(i,a),l=this.toChineseMonth(i,a),u=Object.getPrototypeOf(u3.prototype).add.call(this,e,t,r);if(r==="y"){var h=u.year(),v=u.month(),m=this.isIntercalaryMonth(h,l),_=s&&m?this.toMonthIndex(h,l,!0):this.toMonthIndex(h,l,!1);_!==v&&u.month(_)}return u}});var yme=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,gme=/^\d?\d[iI]?/m,_me=/^闰?十?[一二三四五六七八九]?月/m,xme=/^闰?十?[一二三四五六七八九]?/m;pv.calendars.chinese=u3;var mv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],yv=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function bme(e,t,r,i){var a,s;if(typeof e=="object")a=e,s=t||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var u=typeof t=="number"&&t>=1&&t<=12;if(!u)throw new Error("Solar month outside range 1 - 12");var h=typeof r=="number"&&r>=1&&r<=31;if(!h)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},s=i||{}}var v=yv[a.year-yv[0]],m=a.year<<9|a.month<<5|a.day;s.year=m>=v?a.year:a.year-1,v=yv[s.year-yv[0]];var _=v>>9&4095,T=v>>5&15,M=v&31,C,E=new Date(_,T-1,M),L=new Date(a.year,a.month-1,a.day);C=Math.round((L-E)/(24*3600*1e3));var I=mv[s.year-mv[0]],O;for(O=0;O<13;O++){var q=I&1<<12-O?30:29;if(C>13;return!z||O=1888&&e<=2111;if(!u)throw new Error("Lunar year outside range 1888-2111");var h=typeof t=="number"&&t>=1&&t<=12;if(!h)throw new Error("Lunar month outside range 1 - 12");var v=typeof r=="number"&&r>=1&&r<=30;if(!v)throw new Error("Lunar day outside range 1 - 30");var m;typeof i=="object"?(m=!1,s=i):(m=!!i,s=a||{}),l={year:e,month:t,day:r,isIntercalary:m}}var _;_=l.day-1;var T=mv[l.year-mv[0]],M=T>>13,C;M&&(l.month>M||l.isIntercalary)?C=l.month:C=l.month-1;for(var E=0;E>9&4095,q=I>>5&15,z=I&31,N=new Date(O,q-1,z+_);return s.year=N.getFullYear(),s.month=1+N.getMonth(),s.day=N.getDate(),s}});var VZ=pe(()=>{var ap=Ho(),Tme=Vo();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new ap.baseCalendar;Tme(eM.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,ap.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ap.local.invalidYear||ap.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,ap.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,ap.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});ap.calendars.coptic=eM});var HZ=pe(()=>{var Hc=Ho(),Ame=Vo();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new Hc.baseCalendar;Ame(tM.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hc.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Hc.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Hc.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Hc.local.invalidDate);return{century:Mme[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,Hc.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var Mme={20:"Fruitbat",21:"Anchovy"};Hc.calendars.discworld=tM});var GZ=pe(()=>{var ip=Ho(),Sme=Vo();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new ip.baseCalendar;Sme(rM.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,ip.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ip.local.invalidYear||ip.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,ip.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,ip.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});ip.calendars.ethiopian=rM});var ZZ=pe(()=>{var gv=Ho(),kme=Vo();function aM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}aM.prototype=new gv.baseCalendar;kme(aM.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,gv.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,f3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,gv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,gv.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,gv.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&f3(this.daysInYear(e),10)===5?30:t===9&&f3(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,gv.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,gv.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=e<=0?e+1:e,s=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)s+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function f3(e,t){return e-t*Math.floor(e/t)}gv.calendars.hebrew=aM});var YZ=pe(()=>{var A1=Ho(),Cme=Vo();function iM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}iM.prototype=new A1.baseCalendar;Cme(iM.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,A1.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,A1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,A1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});A1.calendars.islamic=iM});var WZ=pe(()=>{var M1=Ho(),Eme=Vo();function nM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}nM.prototype=new M1.baseCalendar;Eme(nM.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,M1.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,M1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,M1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),a=Math.floor(365.25*i),s=Math.floor((r-a)/30.6001),l=s-Math.floor(s<14?1:13),u=i-Math.floor(l>2?4716:4715),h=r-a-Math.floor(30.6001*s);return u<=0&&u--,this.newDate(u,l,h)}});M1.calendars.julian=nM});var jZ=pe(()=>{var vu=Ho(),Lme=Vo();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new vu.baseCalendar;Lme(sM.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,vu.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,vu.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vu.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,vu.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vu.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,vu.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,vu.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,vu.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,vu.local.invalidDate),a=i.toJD(),s=this._toHaab(a),l=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[s[0]-1],haabMonth:s[0],haabDay:s[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=oM(e+8+17*20,365);return[Math.floor(t/20)+1,oM(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[XZ(e+20,20),XZ(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,vu.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function oM(e,t){return e-t*Math.floor(e/t)}function XZ(e,t){return oM(e-1,t)+1}vu.calendars.mayan=sM});var KZ=pe(()=>{var np=Ho(),Dme=Vo();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new np.baseCalendar;var JZ=np.instance("gregorian");Dme(lM.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,np.local.invalidYear||np.regionalOptions[""].invalidYear);return JZ.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,np.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,np.local.invalidMonth),a=i.year();a<0&&a++;for(var s=i.day(),l=1;l=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});np.calendars.nanakshahi=lM});var QZ=pe(()=>{var op=Ho(),Pme=Vo();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new op.baseCalendar;Pme(uM.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,op.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,op.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,op.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=op.instance(),s=0,l=t,u=e;this._createMissingCalendarData(e);var h=e-(l>9||l===9&&r>=this.NEPALI_CALENDAR_DATA[u][0]?56:57);for(t!==9&&(s=r,l--);l!==9;)l<=0&&(l=12,u--),s+=this.NEPALI_CALENDAR_DATA[u][l],l--;return t===9?(s+=r-this.NEPALI_CALENDAR_DATA[u][0],s<0&&(s+=a.daysInYear(h))):s+=this.NEPALI_CALENDAR_DATA[u][9]-this.NEPALI_CALENDAR_DATA[u][0],a.newDate(h,1,1).add(s,"d").toJD()},fromJD:function(e){var t=op.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),s=i+56;this._createMissingCalendarData(s);for(var l=9,u=this.NEPALI_CALENDAR_DATA[s][0],h=this.NEPALI_CALENDAR_DATA[s][l]-u+1;a>h;)l++,l>12&&(l=1,s++),h+=this.NEPALI_CALENDAR_DATA[s][l];var v=this.NEPALI_CALENDAR_DATA[s][l]-(h-a);return this.newDate(s,l,v)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Dm=Ho(),zme=Vo();function h3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function c3(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,a=r*(t+1),s=i-Math.floor(i),l=a-Math.floor(a);return s>l}h3.prototype=new Dm.baseCalendar;zme(h3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Dm.local.invalidYear);return c3(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Dm.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Dm.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=0;if(e>0)for(var s=1;s0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,c3(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,a=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),s=e-this.toJD(r,a,1)+1;return this.newDate(r,a,s)}});Dm.calendars.persian=h3;Dm.calendars.jalali=h3});var eY=pe(()=>{var sp=Ho(),Ime=Vo(),v3=sp.instance();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new sp.baseCalendar;Ime(fM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,sp.local.invalidYear),r=this._t2gYear(t.year());return v3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,sp.local.invalidYear),a=this._t2gYear(i.year());return v3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,sp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,sp.local.invalidDate),a=this._t2gYear(i.year());return v3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=v3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});sp.calendars.taiwan=fM});var tY=pe(()=>{var lp=Ho(),Rme=Vo(),d3=lp.instance();function cM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cM.prototype=new lp.baseCalendar;Rme(cM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,lp.local.invalidYear),r=this._t2gYear(t.year());return d3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,lp.local.invalidYear),a=this._t2gYear(i.year());return d3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,lp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,lp.local.invalidDate),a=this._t2gYear(i.year());return d3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=d3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});lp.calendars.thai=cM});var rY=pe(()=>{var up=Ho(),Fme=Vo();function hM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hM.prototype=new up.baseCalendar;Fme(hM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,up.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,up.local.invalidMonth),i=r.toJD()-24e5+.5,a=0,s=0;s<_v.length;s++){if(_v[s]>i)return _v[a]-_v[a-1];a++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,up.local.invalidDate),a=12*(i.year()-1)+i.month()-15292,s=i.day()+_v[a-1]-1;return s+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;i<_v.length&&!(_v[i]>t);i++)r++;var a=r+15292,s=Math.floor((a-1)/12),l=s+1,u=a-12*s,h=t-_v[r-1]+1;return this.newDate(l,u,h)},isValid:function(e,t,r){var i=up.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var a=up.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});up.calendars.ummalqura=hM;var _v=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var iY=pe((xwe,aY)=>{"use strict";aY.exports=Ho();OZ();UZ();VZ();HZ();GZ();ZZ();YZ();WZ();jZ();KZ();QZ();$Z();eY();tY();rY()});var cY=pe((bwe,fY)=>{"use strict";var oY=iY(),S1=Ot(),sY=Zi(),qme=sY.EPOCHJD,Nme=sY.ONEDAY,pM={valType:"enumerated",values:S1.sortObjectKeys(oY.calendars),editType:"calc",dflt:"gregorian"},lY=function(e,t,r,i){var a={};return a[r]=pM,S1.coerce(e,t,a,r,i)},Bme=function(e,t,r,i){for(var a=0;a{"use strict";hY.exports=cY()});var Zme=pe((Twe,pY)=>{var dY=UV();dY.register([FG(),cZ(),RZ(),vY()]);pY.exports=dY});return Zme();})(); +`),Qt=G.createShader(G.FRAGMENT_SHADER);if(G.isContextLost()){this.failedToCreate=!0;return}G.shaderSource(Qt,zt),G.compileShader(Qt),G.attachShader(this.program,Qt);var rr=G.createShader(G.VERTEX_SHADER);if(G.isContextLost()){this.failedToCreate=!0;return}G.shaderSource(rr,Ft),G.compileShader(rr),G.attachShader(this.program,rr),this.attributes={};var Yt={};this.numAttributes=ce.length;for(var ar=0;ar>16,G>>16],u_pixel_coord_lower:[R&65535,G&65535]}}function bu(g,c,b,d){var w=b.imageManager.getPattern(g.from.toString()),D=b.imageManager.getPattern(g.to.toString()),R=b.imageManager.getPixelSize(),G=R.width,K=R.height,re=Math.pow(2,d.tileID.overscaledZ),ce=d.tileSize*Math.pow(2,b.transform.tileZoom)/re,we=ce*(d.tileID.canonical.x+d.tileID.wrap*re),be=ce*d.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:w.tl,u_pattern_br_a:w.br,u_pattern_tl_b:D.tl,u_pattern_br_b:D.br,u_texsize:[G,K],u_mix:c.t,u_pattern_size_a:w.displaySize,u_pattern_size_b:D.displaySize,u_scale_a:c.fromScale,u_scale_b:c.toScale,u_tile_units_to_pixels:1/yo(d,1,b.transform.tileZoom),u_pixel_coord_upper:[we>>16,be>>16],u_pixel_coord_lower:[we&65535,be&65535]}}var Fv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_opacity:new a.Uniform1f(g,c.u_opacity)}},bn=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_height_factor:new a.Uniform1f(g,c.u_height_factor),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade),u_opacity:new a.Uniform1f(g,c.u_opacity)}},ac=function(g,c,b,d){var w=c.style.light,D=w.properties.get("position"),R=[D.x,D.y,D.z],G=a.create$1();w.properties.get("anchor")==="viewport"&&a.fromRotation(G,-c.transform.angle),a.transformMat3(R,R,G);var K=w.properties.get("color");return{u_matrix:g,u_lightpos:R,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[K.r,K.g,K.b],u_vertical_gradient:+b,u_opacity:d}},Ks=function(g,c,b,d,w,D,R){return a.extend(ac(g,c,b,d),lf(D,c,R),{u_height_factor:-Math.pow(2,w.overscaledZ)/R.tileSize/8})},kl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Cl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},El=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world)}},Qs=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Ss=function(g){return{u_matrix:g}},ks=function(g,c,b,d){return a.extend(Ss(g),lf(b,c,d))},Ll=function(g,c){return{u_matrix:g,u_world:c}},Cp=function(g,c,b,d,w){return a.extend(ks(g,c,b,d),{u_world:w})},$m=function(g,c){return{u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_scale_with_map:new a.Uniform1i(g,c.u_scale_with_map),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},ey=function(g,c,b,d){var w=g.transform,D,R;if(d.paint.get("circle-pitch-alignment")==="map"){var G=yo(b,1,w.zoom);D=!0,R=[G,G]}else D=!1,R=w.pixelsToGLUnits;return{u_camera_to_center_distance:w.cameraToCenterDistance,u_scale_with_map:+(d.paint.get("circle-pitch-scale")==="map"),u_matrix:g.translatePosMatrix(c.posMatrix,b,d.paint.get("circle-translate"),d.paint.get("circle-translate-anchor")),u_pitch_with_map:+D,u_device_pixel_ratio:a.browser.devicePixelRatio,u_extrude_scale:R}},ty=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pixels_to_tile_units:new a.Uniform1f(g,c.u_pixels_to_tile_units),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_overscale_factor:new a.Uniform1f(g,c.u_overscale_factor)}},Ep=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_inv_matrix:new a.UniformMatrix4f(g,c.u_inv_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_viewport_size:new a.Uniform2f(g,c.u_viewport_size)}},Lp=function(g,c,b){var d=yo(b,1,c.zoom),w=Math.pow(2,c.zoom-b.tileID.overscaledZ),D=b.tileID.overscaleFactor();return{u_matrix:g,u_camera_to_center_distance:c.cameraToCenterDistance,u_pixels_to_tile_units:d,u_extrude_scale:[c.pixelsToGLUnits[0]/(d*w),c.pixelsToGLUnits[1]/(d*w)],u_overscale_factor:D}},qv=function(g,c,b){return{u_matrix:g,u_inv_matrix:c,u_camera_to_center_distance:b.cameraToCenterDistance,u_viewport_size:[b.width,b.height]}},Nv=function(g,c){return{u_color:new a.UniformColor(g,c.u_color),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_overlay:new a.Uniform1i(g,c.u_overlay),u_overlay_scale:new a.Uniform1f(g,c.u_overlay_scale)}},ic=function(g,c,b){return b===void 0&&(b=1),{u_matrix:g,u_color:c,u_overlay:0,u_overlay_scale:b}},$c=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Dp=function(g){return{u_matrix:g}},Bv=function(g,c){return{u_extrude_scale:new a.Uniform1f(g,c.u_extrude_scale),u_intensity:new a.Uniform1f(g,c.u_intensity),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Pp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_color_ramp:new a.Uniform1i(g,c.u_color_ramp),u_opacity:new a.Uniform1f(g,c.u_opacity)}},uf=function(g,c,b,d){return{u_matrix:g,u_extrude_scale:yo(c,1,b),u_intensity:d}},ry=function(g,c,b,d){var w=a.create();a.ortho(w,0,g.width,g.height,0,0,1);var D=g.context.gl;return{u_matrix:w,u_world:[D.drawingBufferWidth,D.drawingBufferHeight],u_image:b,u_color_ramp:d,u_opacity:c.paint.get("heatmap-opacity")}},zp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_latrange:new a.Uniform2f(g,c.u_latrange),u_light:new a.Uniform2f(g,c.u_light),u_shadow:new a.UniformColor(g,c.u_shadow),u_highlight:new a.UniformColor(g,c.u_highlight),u_accent:new a.UniformColor(g,c.u_accent)}},Ip=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_dimension:new a.Uniform2f(g,c.u_dimension),u_zoom:new a.Uniform1f(g,c.u_zoom),u_unpack:new a.Uniform4f(g,c.u_unpack)}},Rp=function(g,c,b){var d=b.paint.get("hillshade-shadow-color"),w=b.paint.get("hillshade-highlight-color"),D=b.paint.get("hillshade-accent-color"),R=b.paint.get("hillshade-illumination-direction")*(Math.PI/180);b.paint.get("hillshade-illumination-anchor")==="viewport"&&(R-=g.transform.angle);var G=!g.options.moving;return{u_matrix:g.transform.calculatePosMatrix(c.tileID.toUnwrapped(),G),u_image:0,u_latrange:Uv(g,c.tileID),u_light:[b.paint.get("hillshade-exaggeration"),R],u_shadow:d,u_highlight:w,u_accent:D}},Ov=function(g,c){var b=c.stride,d=a.create();return a.ortho(d,0,a.EXTENT,-a.EXTENT,0,0,1),a.translate(d,d,[0,-a.EXTENT,0]),{u_matrix:d,u_image:1,u_dimension:[b,b],u_zoom:g.overscaledZ,u_unpack:c.getUnpackVector()}};function Uv(g,c){var b=Math.pow(2,c.canonical.z),d=c.canonical.y;return[new a.MercatorCoordinate(0,d/b).toLngLat().lat,new a.MercatorCoordinate(0,(d+1)/b).toLngLat().lat]}var wu=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels)}},Dl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_image:new a.Uniform1i(g,c.u_image),u_image_height:new a.Uniform1f(g,c.u_image_height)}},nc=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_texsize:new a.Uniform2f(g,c.u_texsize),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_image:new a.Uniform1i(g,c.u_image),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Vv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_patternscale_a:new a.Uniform2f(g,c.u_patternscale_a),u_patternscale_b:new a.Uniform2f(g,c.u_patternscale_b),u_sdfgamma:new a.Uniform1f(g,c.u_sdfgamma),u_image:new a.Uniform1i(g,c.u_image),u_tex_y_a:new a.Uniform1f(g,c.u_tex_y_a),u_tex_y_b:new a.Uniform1f(g,c.u_tex_y_b),u_mix:new a.Uniform1f(g,c.u_mix)}},eh=function(g,c,b){var d=g.transform;return{u_matrix:Tu(g,c,b),u_ratio:1/yo(c,1,d.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_units_to_pixels:[1/d.pixelsToGLUnits[0],1/d.pixelsToGLUnits[1]]}},th=function(g,c,b,d){return a.extend(eh(g,c,b),{u_image:0,u_image_height:d})},rh=function(g,c,b,d){var w=g.transform,D=ah(c,w);return{u_matrix:Tu(g,c,b),u_texsize:c.imageAtlasTexture.size,u_ratio:1/yo(c,1,w.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_image:0,u_scale:[D,d.fromScale,d.toScale],u_fade:d.t,u_units_to_pixels:[1/w.pixelsToGLUnits[0],1/w.pixelsToGLUnits[1]]}},Pl=function(g,c,b,d,w){var D=g.transform,R=g.lineAtlas,G=ah(c,D),K=b.layout.get("line-cap")==="round",re=R.getDash(d.from,K),ce=R.getDash(d.to,K),we=re.width*w.fromScale,be=ce.width*w.toScale;return a.extend(eh(g,c,b),{u_patternscale_a:[G/we,-re.height/2],u_patternscale_b:[G/be,-ce.height/2],u_sdfgamma:R.width/(Math.min(we,be)*256*a.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:re.y,u_tex_y_b:ce.y,u_mix:w.t})};function ah(g,c){return 1/yo(g,1,c.tileZoom)}function Tu(g,c,b){return g.translatePosMatrix(c.tileID.posMatrix,c,b.paint.get("line-translate"),b.paint.get("line-translate-anchor"))}var ff=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_tl_parent:new a.Uniform2f(g,c.u_tl_parent),u_scale_parent:new a.Uniform1f(g,c.u_scale_parent),u_buffer_scale:new a.Uniform1f(g,c.u_buffer_scale),u_fade_t:new a.Uniform1f(g,c.u_fade_t),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image0:new a.Uniform1i(g,c.u_image0),u_image1:new a.Uniform1i(g,c.u_image1),u_brightness_low:new a.Uniform1f(g,c.u_brightness_low),u_brightness_high:new a.Uniform1f(g,c.u_brightness_high),u_saturation_factor:new a.Uniform1f(g,c.u_saturation_factor),u_contrast_factor:new a.Uniform1f(g,c.u_contrast_factor),u_spin_weights:new a.Uniform3f(g,c.u_spin_weights)}},Fp=function(g,c,b,d,w){return{u_matrix:g,u_tl_parent:c,u_scale_parent:b,u_buffer_scale:1,u_fade_t:d.mix,u_opacity:d.opacity*w.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:w.paint.get("raster-brightness-min"),u_brightness_high:w.paint.get("raster-brightness-max"),u_saturation_factor:oc(w.paint.get("raster-saturation")),u_contrast_factor:vi(w.paint.get("raster-contrast")),u_spin_weights:ih(w.paint.get("raster-hue-rotate"))}};function ih(g){g*=Math.PI/180;var c=Math.sin(g),b=Math.cos(g);return[(2*b+1)/3,(-Math.sqrt(3)*c-b+1)/3,(Math.sqrt(3)*c-b+1)/3]}function vi(g){return g>0?1/(1-g):1+g}function oc(g){return g>0?1-1/(1.001-g):-g}var qp=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture)}},Np=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},zl=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texsize_icon:new a.Uniform2f(g,c.u_texsize_icon),u_texture:new a.Uniform1i(g,c.u_texture),u_texture_icon:new a.Uniform1i(g,c.u_texture_icon),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},Bp=function(g,c,b,d,w,D,R,G,K,re){var ce=w.transform;return{u_is_size_zoom_constant:+(g==="constant"||g==="source"),u_is_size_feature_constant:+(g==="constant"||g==="camera"),u_size_t:c?c.uSizeT:0,u_size:c?c.uSize:0,u_camera_to_center_distance:ce.cameraToCenterDistance,u_pitch:ce.pitch/360*2*Math.PI,u_rotate_symbol:+b,u_aspect_ratio:ce.width/ce.height,u_fade_change:w.options.fadeDuration?w.symbolFadeChange:1,u_matrix:D,u_label_plane_matrix:R,u_coord_matrix:G,u_is_text:+K,u_pitch_with_map:+d,u_texsize:re,u_texture:0}},Op=function(g,c,b,d,w,D,R,G,K,re,ce){var we=w.transform;return a.extend(Bp(g,c,b,d,w,D,R,G,K,re),{u_gamma_scale:d?Math.cos(we._pitch)*we.cameraToCenterDistance:1,u_device_pixel_ratio:a.browser.devicePixelRatio,u_is_halo:+ce})},Hv=function(g,c,b,d,w,D,R,G,K,re){return a.extend(Op(g,c,b,d,w,D,R,G,!0,K,!0),{u_texsize_icon:re,u_texture_icon:1})},Up=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_color:new a.UniformColor(g,c.u_color)}},ay=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image:new a.Uniform1i(g,c.u_image),u_pattern_tl_a:new a.Uniform2f(g,c.u_pattern_tl_a),u_pattern_br_a:new a.Uniform2f(g,c.u_pattern_br_a),u_pattern_tl_b:new a.Uniform2f(g,c.u_pattern_tl_b),u_pattern_br_b:new a.Uniform2f(g,c.u_pattern_br_b),u_texsize:new a.Uniform2f(g,c.u_texsize),u_mix:new a.Uniform1f(g,c.u_mix),u_pattern_size_a:new a.Uniform2f(g,c.u_pattern_size_a),u_pattern_size_b:new a.Uniform2f(g,c.u_pattern_size_b),u_scale_a:new a.Uniform1f(g,c.u_scale_a),u_scale_b:new a.Uniform1f(g,c.u_scale_b),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_tile_units_to_pixels:new a.Uniform1f(g,c.u_tile_units_to_pixels)}},Il=function(g,c,b){return{u_matrix:g,u_opacity:c,u_color:b}},Au=function(g,c,b,d,w,D){return a.extend(bu(d,D,b,w),{u_matrix:g,u_opacity:c})},sc={fillExtrusion:Fv,fillExtrusionPattern:bn,fill:kl,fillPattern:Cl,fillOutline:El,fillOutlinePattern:Qs,circle:$m,collisionBox:ty,collisionCircle:Ep,debug:Nv,clippingMask:$c,heatmap:Bv,heatmapTexture:Pp,hillshade:zp,hillshadePrepare:Ip,line:wu,lineGradient:Dl,linePattern:nc,lineSDF:Vv,raster:ff,symbolIcon:qp,symbolSDF:Np,symbolTextAndIcon:zl,background:Up,backgroundPattern:ay},Cs;function Es(g,c,b,d,w,D,R){for(var G=g.context,K=G.gl,re=g.useProgram("collisionBox"),ce=[],we=0,be=0,Re=0;Re0){var Ft=a.create(),Qt=Ke;a.mul(Ft,Ve.placementInvProjMatrix,g.transform.glCoordMatrix),a.mul(Ft,Ft,Ve.placementViewportMatrix),ce.push({circleArray:zt,circleOffset:be,transform:Qt,invTransform:Ft}),we+=zt.length/4,be=we}dt&&re.draw(G,K.LINES,ma.disabled,ir.disabled,g.colorModeForRenderPass(),Le.disabled,Lp(Ke,g.transform,Ze),b.id,dt.layoutVertexBuffer,dt.indexBuffer,dt.segments,null,g.transform.zoom,null,null,dt.collisionVertexBuffer)}}if(!(!R||!ce.length)){var rr=g.useProgram("collisionCircle"),Yt=new a.StructArrayLayout2f1f2i16;Yt.resize(we*4),Yt._trim();for(var ar=0,dr=0,wr=ce;dr=0&&(We[Ve.associatedIconIndex]={shiftedAnchor:Xr,angle:za})}}if(ce){Re.clear();for(var Nr=g.icon.placedSymbolArray,Sa=0;Sa0){var R=a.browser.now(),G=(R-g.timeAdded)/D,K=c?(R-c.timeAdded)/D:-1,re=b.getSource(),ce=w.coveringZoomLevel({tileSize:re.tileSize,roundZoom:re.roundZoom}),we=!c||Math.abs(c.tileID.overscaledZ-ce)>Math.abs(g.tileID.overscaledZ-ce),be=we&&g.refreshedUponExpiration?1:a.clamp(we?G:1-K,0,1);return g.refreshedUponExpiration&&G>=1&&(g.refreshedUponExpiration=!1),c?{opacity:1,mix:1-be}:{opacity:be,mix:0}}else return{opacity:1,mix:0}}function lc(g,c,b){var d=b.paint.get("background-color"),w=b.paint.get("background-opacity");if(w!==0){var D=g.context,R=D.gl,G=g.transform,K=G.tileSize,re=b.paint.get("background-pattern");if(!g.isPatternMissing(re)){var ce=!re&&d.a===1&&w===1&&g.opaquePassEnabledForLayer()?"opaque":"translucent";if(g.renderPass===ce){var we=ir.disabled,be=g.depthModeForSublayer(0,ce==="opaque"?ma.ReadWrite:ma.ReadOnly),Re=g.colorModeForRenderPass(),We=g.useProgram(re?"backgroundPattern":"background"),Ze=G.coveringTiles({tileSize:K});re&&(D.activeTexture.set(R.TEXTURE0),g.imageManager.bind(g.context));for(var Ve=b.getCrossfadeParameters(),Ke=0,dt=Ze;Ke "+b.overscaledZ);var Ke=Ve+" "+Re+"kb";Wp(g,Ke),R.draw(d,w.TRIANGLES,G,K,te.alphaBlended,Le.disabled,ic(D,a.Color.transparent,Ze),ce,g.debugBuffer,g.quadTriangleIndexBuffer,g.debugSegments)}function Wp(g,c){g.initDebugOverlayCanvas();var b=g.debugOverlayCanvas,d=g.context.gl,w=g.debugOverlayCanvas.getContext("2d");w.clearRect(0,0,b.width,b.height),w.shadowColor="white",w.shadowBlur=2,w.lineWidth=1.5,w.strokeStyle="white",w.textBaseline="top",w.font="bold 36px Open Sans, sans-serif",w.fillText(c,5,5),w.strokeText(c,5,5),g.debugOverlayTexture.update(b),g.debugOverlayTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE)}function gf(g,c,b){var d=g.context,w=b.implementation;if(g.renderPass==="offscreen"){var D=w.prerender;D&&(g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),D.call(w,d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState())}else if(g.renderPass==="translucent"){g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),d.setStencilMode(ir.disabled);var R=w.renderingMode==="3d"?new ma(g.context.gl.LEQUAL,ma.ReadWrite,g.depthRangeFor3D):g.depthModeForSublayer(0,ma.ReadOnly);d.setDepthMode(R),w.render(d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState(),d.bindFramebuffer.set(null)}}var si={symbol:iy,circle:nh,heatmap:Mu,line:_o,fill:Vp,"fill-extrusion":Rl,hillshade:mf,raster:Hp,background:lc,debug:Jv,custom:gf},Ci=function(c,b){this.context=new Ne(c),this.transform=b,this._tileTextures={},this.setup(),this.numSublayers=rt.maxUnderzooming+rt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new gu,this.gpuTimers={}};Ci.prototype.resize=function(c,b){if(this.width=c*a.browser.devicePixelRatio,this.height=b*a.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var d=0,w=this.style._order;d256&&this.clearStencil(),d.setColorMode(te.disabled),d.setDepthMode(ma.disabled);var D=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var R=0,G=b;R256&&this.clearStencil();var c=this.nextStencilID++,b=this.context.gl;return new ir({func:b.NOTEQUAL,mask:255},c,255,b.KEEP,b.KEEP,b.REPLACE)},Ci.prototype.stencilModeForClipping=function(c){var b=this.context.gl;return new ir({func:b.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,b.KEEP,b.KEEP,b.REPLACE)},Ci.prototype.stencilConfigForOverlap=function(c){var b,d=this.context.gl,w=c.sort(function(re,ce){return ce.overscaledZ-re.overscaledZ}),D=w[w.length-1].overscaledZ,R=w[0].overscaledZ-D+1;if(R>1){this.currentStencilSource=void 0,this.nextStencilID+R>256&&this.clearStencil();for(var G={},K=0;K=0;this.currentLayer--){var Ft=this.style._layers[w[this.currentLayer]],Qt=D[Ft.source],rr=K[Ft.source];this._renderTileClippingMasks(Ft,rr),this.renderLayer(this,Qt,Ft,rr)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?b.pop():null},Ci.prototype.isPatternMissing=function(c){if(!c)return!1;if(!c.from||!c.to)return!0;var b=this.imageManager.getPattern(c.from.toString()),d=this.imageManager.getPattern(c.to.toString());return!b||!d},Ci.prototype.useProgram=function(c,b){this.cache=this.cache||{};var d=""+c+(b?b.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[d]||(this.cache[d]=new kp(this.context,c,Qm[c],b,sc[c],this._showOverdrawInspector)),this.cache[d]},Ci.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ci.prototype.setBaseState=function(){var c=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(c.FUNC_ADD)},Ci.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=a.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var c=this.context.gl;this.debugOverlayTexture=new a.Texture(this.context,this.debugOverlayCanvas,c.RGBA)}},Ci.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var uo=function(c,b){this.points=c,this.planes=b};uo.fromInvProjectionMatrix=function(c,b,d){var w=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],D=Math.pow(2,d),R=w.map(function(re){return a.transformMat4([],re,c)}).map(function(re){return a.scale$1([],re,1/re[3]/b*D)}),G=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],K=G.map(function(re){var ce=a.sub([],R[re[0]],R[re[1]]),we=a.sub([],R[re[2]],R[re[1]]),be=a.normalize([],a.cross([],ce,we)),Re=-a.dot(be,R[re[1]]);return be.concat(Re)});return new uo(R,K)};var Ls=function(c,b){this.min=c,this.max=b,this.center=a.scale$2([],a.add([],this.min,this.max),.5)};Ls.prototype.quadrant=function(c){for(var b=[c%2===0,c<2],d=a.clone$2(this.min),w=a.clone$2(this.max),D=0;D=0;if(R===0)return 0;R!==b.length&&(d=!1)}if(d)return 2;for(var K=0;K<3;K++){for(var re=Number.MAX_VALUE,ce=-Number.MAX_VALUE,we=0;wethis.max[K]-this.min[K])return 0}return 1};var xo=function(c,b,d,w){if(c===void 0&&(c=0),b===void 0&&(b=0),d===void 0&&(d=0),w===void 0&&(w=0),isNaN(c)||c<0||isNaN(b)||b<0||isNaN(d)||d<0||isNaN(w)||w<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=c,this.bottom=b,this.left=d,this.right=w};xo.prototype.interpolate=function(c,b,d){return b.top!=null&&c.top!=null&&(this.top=a.number(c.top,b.top,d)),b.bottom!=null&&c.bottom!=null&&(this.bottom=a.number(c.bottom,b.bottom,d)),b.left!=null&&c.left!=null&&(this.left=a.number(c.left,b.left,d)),b.right!=null&&c.right!=null&&(this.right=a.number(c.right,b.right,d)),this},xo.prototype.getCenter=function(c,b){var d=a.clamp((this.left+c-this.right)/2,0,c),w=a.clamp((this.top+b-this.bottom)/2,0,b);return new a.Point(d,w)},xo.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},xo.prototype.clone=function(){return new xo(this.top,this.bottom,this.left,this.right)},xo.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Qa=function(c,b,d,w,D){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=D===void 0?!0:D,this._minZoom=c||0,this._maxZoom=b||22,this._minPitch=d==null?0:d,this._maxPitch=w==null?60:w,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new xo,this._posMatrixCache={},this._alignedPosMatrixCache={}},ui={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Qa.prototype.clone=function(){var c=new Qa(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return c.tileSize=this.tileSize,c.latRange=this.latRange,c.width=this.width,c.height=this.height,c._center=this._center,c.zoom=this.zoom,c.angle=this.angle,c._fov=this._fov,c._pitch=this._pitch,c._unmodified=this._unmodified,c._edgeInsets=this._edgeInsets.clone(),c._calcMatrices(),c},ui.minZoom.get=function(){return this._minZoom},ui.minZoom.set=function(g){this._minZoom!==g&&(this._minZoom=g,this.zoom=Math.max(this.zoom,g))},ui.maxZoom.get=function(){return this._maxZoom},ui.maxZoom.set=function(g){this._maxZoom!==g&&(this._maxZoom=g,this.zoom=Math.min(this.zoom,g))},ui.minPitch.get=function(){return this._minPitch},ui.minPitch.set=function(g){this._minPitch!==g&&(this._minPitch=g,this.pitch=Math.max(this.pitch,g))},ui.maxPitch.get=function(){return this._maxPitch},ui.maxPitch.set=function(g){this._maxPitch!==g&&(this._maxPitch=g,this.pitch=Math.min(this.pitch,g))},ui.renderWorldCopies.get=function(){return this._renderWorldCopies},ui.renderWorldCopies.set=function(g){g===void 0?g=!0:g===null&&(g=!1),this._renderWorldCopies=g},ui.worldSize.get=function(){return this.tileSize*this.scale},ui.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},ui.size.get=function(){return new a.Point(this.width,this.height)},ui.bearing.get=function(){return-this.angle/Math.PI*180},ui.bearing.set=function(g){var c=-a.wrap(g,-180,180)*Math.PI/180;this.angle!==c&&(this._unmodified=!1,this.angle=c,this._calcMatrices(),this.rotationMatrix=a.create$2(),a.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},ui.pitch.get=function(){return this._pitch/Math.PI*180},ui.pitch.set=function(g){var c=a.clamp(g,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==c&&(this._unmodified=!1,this._pitch=c,this._calcMatrices())},ui.fov.get=function(){return this._fov/Math.PI*180},ui.fov.set=function(g){g=Math.max(.01,Math.min(60,g)),this._fov!==g&&(this._unmodified=!1,this._fov=g/180*Math.PI,this._calcMatrices())},ui.zoom.get=function(){return this._zoom},ui.zoom.set=function(g){var c=Math.min(Math.max(g,this.minZoom),this.maxZoom);this._zoom!==c&&(this._unmodified=!1,this._zoom=c,this.scale=this.zoomScale(c),this.tileZoom=Math.floor(c),this.zoomFraction=c-this.tileZoom,this._constrain(),this._calcMatrices())},ui.center.get=function(){return this._center},ui.center.set=function(g){g.lat===this._center.lat&&g.lng===this._center.lng||(this._unmodified=!1,this._center=g,this._constrain(),this._calcMatrices())},ui.padding.get=function(){return this._edgeInsets.toJSON()},ui.padding.set=function(g){this._edgeInsets.equals(g)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,g,1),this._calcMatrices())},ui.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Qa.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},Qa.prototype.interpolatePadding=function(c,b,d){this._unmodified=!1,this._edgeInsets.interpolate(c,b,d),this._constrain(),this._calcMatrices()},Qa.prototype.coveringZoomLevel=function(c){var b=(c.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/c.tileSize));return Math.max(0,b)},Qa.prototype.getVisibleUnwrappedCoordinates=function(c){var b=[new a.UnwrappedTileID(0,c)];if(this._renderWorldCopies)for(var d=this.pointCoordinate(new a.Point(0,0)),w=this.pointCoordinate(new a.Point(this.width,0)),D=this.pointCoordinate(new a.Point(this.width,this.height)),R=this.pointCoordinate(new a.Point(0,this.height)),G=Math.floor(Math.min(d.x,w.x,D.x,R.x)),K=Math.floor(Math.max(d.x,w.x,D.x,R.x)),re=1,ce=G-re;ce<=K+re;ce++)ce!==0&&b.push(new a.UnwrappedTileID(ce,c));return b},Qa.prototype.coveringTiles=function(c){var b=this.coveringZoomLevel(c),d=b;if(c.minzoom!==void 0&&bc.maxzoom&&(b=c.maxzoom);var w=a.MercatorCoordinate.fromLngLat(this.center),D=Math.pow(2,b),R=[D*w.x,D*w.y,0],G=uo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,b),K=c.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(K=b);var re=3,ce=function(kr){return{aabb:new Ls([kr*D,0,0],[(kr+1)*D,D,0]),zoom:0,x:0,y:0,wrap:kr,fullyVisible:!1}},we=[],be=[],Re=b,We=c.reparseOverscaled?d:b;if(this._renderWorldCopies)for(var Ze=1;Ze<=3;Ze++)we.push(ce(-Ze)),we.push(ce(Ze));for(we.push(ce(0));we.length>0;){var Ve=we.pop(),Ke=Ve.x,dt=Ve.y,zt=Ve.fullyVisible;if(!zt){var Ft=Ve.aabb.intersects(G);if(Ft===0)continue;zt=Ft===2}var Qt=Ve.aabb.distanceX(R),rr=Ve.aabb.distanceY(R),Yt=Math.max(Math.abs(Qt),Math.abs(rr)),ar=re+(1<ar&&Ve.zoom>=K){be.push({tileID:new a.OverscaledTileID(Ve.zoom===Re?We:Ve.zoom,Ve.wrap,Ve.zoom,Ke,dt),distanceSq:a.sqrLen([R[0]-.5-Ke,R[1]-.5-dt])});continue}for(var dr=0;dr<4;dr++){var wr=(Ke<<1)+dr%2,Dr=(dt<<1)+(dr>>1);we.push({aabb:Ve.aabb.quadrant(dr),zoom:Ve.zoom+1,x:wr,y:Dr,wrap:Ve.wrap,fullyVisible:zt})}}return be.sort(function(kr,Xr){return kr.distanceSq-Xr.distanceSq}).map(function(kr){return kr.tileID})},Qa.prototype.resize=function(c,b){this.width=c,this.height=b,this.pixelsToGLUnits=[2/c,-2/b],this._constrain(),this._calcMatrices()},ui.unmodified.get=function(){return this._unmodified},Qa.prototype.zoomScale=function(c){return Math.pow(2,c)},Qa.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},Qa.prototype.project=function(c){var b=a.clamp(c.lat,-this.maxValidLatitude,this.maxValidLatitude);return new a.Point(a.mercatorXfromLng(c.lng)*this.worldSize,a.mercatorYfromLat(b)*this.worldSize)},Qa.prototype.unproject=function(c){return new a.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},ui.point.get=function(){return this.project(this.center)},Qa.prototype.setLocationAtPoint=function(c,b){var d=this.pointCoordinate(b),w=this.pointCoordinate(this.centerPoint),D=this.locationCoordinate(c),R=new a.MercatorCoordinate(D.x-(d.x-w.x),D.y-(d.y-w.y));this.center=this.coordinateLocation(R),this._renderWorldCopies&&(this.center=this.center.wrap())},Qa.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},Qa.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},Qa.prototype.locationCoordinate=function(c){return a.MercatorCoordinate.fromLngLat(c)},Qa.prototype.coordinateLocation=function(c){return c.toLngLat()},Qa.prototype.pointCoordinate=function(c){var b=0,d=[c.x,c.y,0,1],w=[c.x,c.y,1,1];a.transformMat4(d,d,this.pixelMatrixInverse),a.transformMat4(w,w,this.pixelMatrixInverse);var D=d[3],R=w[3],G=d[0]/D,K=w[0]/R,re=d[1]/D,ce=w[1]/R,we=d[2]/D,be=w[2]/R,Re=we===be?0:(b-we)/(be-we);return new a.MercatorCoordinate(a.number(G,K,Re)/this.worldSize,a.number(re,ce,Re)/this.worldSize)},Qa.prototype.coordinatePoint=function(c){var b=[c.x*this.worldSize,c.y*this.worldSize,0,1];return a.transformMat4(b,b,this.pixelMatrix),new a.Point(b[0]/b[3],b[1]/b[3])},Qa.prototype.getBounds=function(){return new a.LngLatBounds().extend(this.pointLocation(new a.Point(0,0))).extend(this.pointLocation(new a.Point(this.width,0))).extend(this.pointLocation(new a.Point(this.width,this.height))).extend(this.pointLocation(new a.Point(0,this.height)))},Qa.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new a.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},Qa.prototype.setMaxBounds=function(c){c?(this.lngRange=[c.getWest(),c.getEast()],this.latRange=[c.getSouth(),c.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Qa.prototype.calculatePosMatrix=function(c,b){b===void 0&&(b=!1);var d=c.key,w=b?this._alignedPosMatrixCache:this._posMatrixCache;if(w[d])return w[d];var D=c.canonical,R=this.worldSize/this.zoomScale(D.z),G=D.x+Math.pow(2,D.z)*c.wrap,K=a.identity(new Float64Array(16));return a.translate(K,K,[G*R,D.y*R,0]),a.scale(K,K,[R/a.EXTENT,R/a.EXTENT,1]),a.multiply(K,b?this.alignedProjMatrix:this.projMatrix,K),w[d]=new Float32Array(K),w[d]},Qa.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Qa.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var c=-90,b=90,d=-180,w=180,D,R,G,K,re=this.size,ce=this._unmodified;if(this.latRange){var we=this.latRange;c=a.mercatorYfromLat(we[1])*this.worldSize,b=a.mercatorYfromLat(we[0])*this.worldSize,D=b-cb&&(K=b-Ve)}if(this.lngRange){var Ke=Re.x,dt=re.x/2;Ke-dtw&&(G=w-dt)}(G!==void 0||K!==void 0)&&(this.center=this.unproject(new a.Point(G!==void 0?G:Re.x,K!==void 0?K:Re.y))),this._unmodified=ce,this._constraining=!1}},Qa.prototype._calcMatrices=function(){if(this.height){var c=this._fov/2,b=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(c)*this.height;var d=Math.PI/2+this._pitch,w=this._fov*(.5+b.y/this.height),D=Math.sin(w)*this.cameraToCenterDistance/Math.sin(a.clamp(Math.PI-d-w,.01,Math.PI-.01)),R=this.point,G=R.x,K=R.y,re=Math.cos(Math.PI/2-this._pitch)*D+this.cameraToCenterDistance,ce=re*1.01,we=this.height/50,be=new Float64Array(16);a.perspective(be,this._fov,this.width/this.height,we,ce),be[8]=-b.x*2/this.width,be[9]=b.y*2/this.height,a.scale(be,be,[1,-1,1]),a.translate(be,be,[0,0,-this.cameraToCenterDistance]),a.rotateX(be,be,this._pitch),a.rotateZ(be,be,this.angle),a.translate(be,be,[-G,-K,0]),this.mercatorMatrix=a.scale([],be,[this.worldSize,this.worldSize,this.worldSize]),a.scale(be,be,[1,1,a.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=be,this.invProjMatrix=a.invert([],this.projMatrix);var Re=this.width%2/2,We=this.height%2/2,Ze=Math.cos(this.angle),Ve=Math.sin(this.angle),Ke=G-Math.round(G)+Ze*Re+Ve*We,dt=K-Math.round(K)+Ze*We+Ve*Re,zt=new Float64Array(be);if(a.translate(zt,zt,[Ke>.5?Ke-1:Ke,dt>.5?dt-1:dt,0]),this.alignedProjMatrix=zt,be=a.create(),a.scale(be,be,[this.width/2,-this.height/2,1]),a.translate(be,be,[1,-1,0]),this.labelPlaneMatrix=be,be=a.create(),a.scale(be,be,[1,-1,1]),a.translate(be,be,[-1,-1,0]),a.scale(be,be,[2/this.width,2/this.height,1]),this.glCoordMatrix=be,this.pixelMatrix=a.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),be=a.invert(new Float64Array(16),this.pixelMatrix),!be)throw new Error("failed to invert matrix");this.pixelMatrixInverse=be,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Qa.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var c=this.pointCoordinate(new a.Point(0,0)),b=[c.x*this.worldSize,c.y*this.worldSize,0,1],d=a.transformMat4(b,b,this.pixelMatrix);return d[3]/this.cameraToCenterDistance},Qa.prototype.getCameraPoint=function(){var c=this._pitch,b=Math.tan(c)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.Point(0,b))},Qa.prototype.getCameraQueryGeometry=function(c){var b=this.getCameraPoint();if(c.length===1)return[c[0],b];for(var d=b.x,w=b.y,D=b.x,R=b.y,G=0,K=c;G=3&&!c.some(function(d){return isNaN(d)})){var b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:b,pitch:+(c[4]||0)}),!0}return!1},Fl.prototype._updateHashUnthrottled=function(){var c=a.window.location.href.replace(/(#.+)?$/,this.getHashString());try{a.window.history.replaceState(a.window.history.state,null,c)}catch(b){}};var uc={linearity:.3,easing:a.bezier(0,0,.3,1)},_f=a.extend({deceleration:2500,maxSpeed:1400},uc),ql=a.extend({deceleration:20,maxSpeed:1400},uc),Ds=a.extend({deceleration:1e3,maxSpeed:360},uc),hh=a.extend({deceleration:1e3,maxSpeed:90},uc),xf=function(c){this._map=c,this.clear()};xf.prototype.clear=function(){this._inertiaBuffer=[]},xf.prototype.record=function(c){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.browser.now(),settings:c})},xf.prototype._drainInertiaBuffer=function(){for(var c=this._inertiaBuffer,b=a.browser.now(),d=160;c.length>0&&b-c[0].time>d;)c.shift()},xf.prototype._onMoveEnd=function(c){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var b={zoom:0,bearing:0,pitch:0,pan:new a.Point(0,0),pinchAround:void 0,around:void 0},d=0,w=this._inertiaBuffer;d=this._clickTolerance||this._map.fire(new S(c.type,this._map,c))},V.prototype.dblclick=function(c){return this._firePreventable(new S(c.type,this._map,c))},V.prototype.mouseover=function(c){this._map.fire(new S(c.type,this._map,c))},V.prototype.mouseout=function(c){this._map.fire(new S(c.type,this._map,c))},V.prototype.touchstart=function(c){return this._firePreventable(new P(c.type,this._map,c))},V.prototype.touchmove=function(c){this._map.fire(new P(c.type,this._map,c))},V.prototype.touchend=function(c){this._map.fire(new P(c.type,this._map,c))},V.prototype.touchcancel=function(c){this._map.fire(new P(c.type,this._map,c))},V.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},V.prototype.isEnabled=function(){return!0},V.prototype.isActive=function(){return!1},V.prototype.enable=function(){},V.prototype.disable=function(){};var Z=function(c){this._map=c};Z.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Z.prototype.mousemove=function(c){this._map.fire(new S(c.type,this._map,c))},Z.prototype.mousedown=function(){this._delayContextMenu=!0},Z.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new S("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Z.prototype.contextmenu=function(c){this._delayContextMenu?this._contextMenuEvent=c:this._map.fire(new S(c.type,this._map,c)),this._map.listens("contextmenu")&&c.preventDefault()},Z.prototype.isEnabled=function(){return!0},Z.prototype.isActive=function(){return!1},Z.prototype.enable=function(){},Z.prototype.disable=function(){};var $=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._container=c.getContainer(),this._clickTolerance=b.clickTolerance||1};$.prototype.isEnabled=function(){return!!this._enabled},$.prototype.isActive=function(){return!!this._active},$.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},$.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},$.prototype.mousedown=function(c,b){this.isEnabled()&&c.shiftKey&&c.button===0&&(l.disableDrag(),this._startPos=this._lastPos=b,this._active=!0)},$.prototype.mousemoveWindow=function(c,b){if(this._active){var d=b;if(!(this._lastPos.equals(d)||!this._box&&d.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=c.timeStamp),d.length===this.numTouches&&(this.centroid=ae(b),this.touches=X(d,b)))},Pe.prototype.touchmove=function(c,b,d){if(!(this.aborted||!this.centroid)){var w=X(d,b);for(var D in this.touches){var R=this.touches[D],G=w[D];(!G||G.dist(R)>ze)&&(this.aborted=!0)}}},Pe.prototype.touchend=function(c,b,d){if((!this.centroid||c.timeStamp-this.startTime>xe)&&(this.aborted=!0),d.length===0){var w=!this.aborted&&this.centroid;if(this.reset(),w)return w}};var $e=function(c){this.singleTap=new Pe(c),this.numTaps=c.numTaps,this.reset()};$e.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},$e.prototype.touchstart=function(c,b,d){this.singleTap.touchstart(c,b,d)},$e.prototype.touchmove=function(c,b,d){this.singleTap.touchmove(c,b,d)},$e.prototype.touchend=function(c,b,d){var w=this.singleTap.touchend(c,b,d);if(w){var D=c.timeStamp-this.lastTime0&&(this._active=!0);var w=X(d,b),D=new a.Point(0,0),R=new a.Point(0,0),G=0;for(var K in w){var re=w[K],ce=this._touches[K];ce&&(D._add(re),R._add(re.sub(ce)),G++,w[K]=re)}if(this._touches=w,!(GMath.abs(g.x)}var Jt=100,Kr=(function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.reset=function(){g.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},c.prototype._start=function(d){this._lastPoints=d,Ja(d[0].sub(d[1]))&&(this._valid=!1)},c.prototype._move=function(d,w,D){var R=d[0].sub(this._lastPoints[0]),G=d[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(R,G,D.timeStamp),!!this._valid){this._lastPoints=d,this._active=!0;var K=(R.y+G.y)/2,re=-.5;return{pitchDelta:K*re}}},c.prototype.gestureBeginsVertically=function(d,w,D){if(this._valid!==void 0)return this._valid;var R=2,G=d.mag()>=R,K=w.mag()>=R;if(!(!G&&!K)){if(!G||!K)return this._firstMove===void 0&&(this._firstMove=D),D-this._firstMove0==w.y>0;return Ja(d)&&Ja(w)&&re}},c})(ur),oa={panStep:100,bearingStep:15,pitchStep:10},sa=function(){var c=oa;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};sa.prototype.reset=function(){this._active=!1},sa.prototype.keydown=function(c){var b=this;if(!(c.altKey||c.ctrlKey||c.metaKey)){var d=0,w=0,D=0,R=0,G=0;switch(c.keyCode){case 61:case 107:case 171:case 187:d=1;break;case 189:case 109:case 173:d=-1;break;case 37:c.shiftKey?w=-1:(c.preventDefault(),R=-1);break;case 39:c.shiftKey?w=1:(c.preventDefault(),R=1);break;case 38:c.shiftKey?D=1:(c.preventDefault(),G=-1);break;case 40:c.shiftKey?D=-1:(c.preventDefault(),G=1);break;default:return}return this._rotationDisabled&&(w=0,D=0),{cameraAnimation:function(K){var re=K.getZoom();K.easeTo({duration:300,easeId:"keyboardHandler",easing:Ei,zoom:d?Math.round(re)+d*(c.shiftKey?2:1):re,bearing:K.getBearing()+w*b._bearingStep,pitch:K.getPitch()+D*b._pitchStep,offset:[-R*b._panStep,-G*b._panStep],center:K.getCenter()},{originalEvent:c})}}}},sa.prototype.enable=function(){this._enabled=!0},sa.prototype.disable=function(){this._enabled=!1,this.reset()},sa.prototype.isEnabled=function(){return this._enabled},sa.prototype.isActive=function(){return this._active},sa.prototype.disableRotation=function(){this._rotationDisabled=!0},sa.prototype.enableRotation=function(){this._rotationDisabled=!1};function Ei(g){return g*(2-g)}var Ui=4.000244140625,$i=1/100,xi=1/450,wn=2,Ar=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._handler=b,this._delta=0,this._defaultZoomRate=$i,this._wheelZoomRate=xi,a.bindAll(["_onTimeout"],this)};Ar.prototype.setZoomRate=function(c){this._defaultZoomRate=c},Ar.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},Ar.prototype.isEnabled=function(){return!!this._enabled},Ar.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Ar.prototype.isZooming=function(){return!!this._zooming},Ar.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},Ar.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ar.prototype.wheel=function(c){if(this.isEnabled()){var b=c.deltaMode===a.window.WheelEvent.DOM_DELTA_LINE?c.deltaY*40:c.deltaY,d=a.browser.now(),w=d-(this._lastWheelEventTime||0);this._lastWheelEventTime=d,b!==0&&b%Ui===0?this._type="wheel":b!==0&&Math.abs(b)<4?this._type="trackpad":w>400?(this._type=null,this._lastValue=b,this._timeout=setTimeout(this._onTimeout,40,c)):this._type||(this._type=Math.abs(w*b)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,b+=this._lastValue)),c.shiftKey&&b&&(b=b/4),this._type&&(this._lastWheelEvent=c,this._delta-=b,this._active||this._start(c)),c.preventDefault()}},Ar.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},Ar.prototype._start=function(c){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var b=l.mousePos(this._el,c);this._around=a.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(b)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Ar.prototype.renderFrame=function(){var c=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var b=this._map.transform;if(this._delta!==0){var d=this._type==="wheel"&&Math.abs(this._delta)>Ui?this._wheelZoomRate:this._defaultZoomRate,w=wn/(1+Math.exp(-Math.abs(this._delta*d)));this._delta<0&&w!==0&&(w=1/w);var D=typeof this._targetZoom=="number"?b.zoomScale(this._targetZoom):b.scale;this._targetZoom=Math.min(b.maxZoom,Math.max(b.minZoom,b.scaleZoom(D*w))),this._type==="wheel"&&(this._startZoom=b.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var R=typeof this._targetZoom=="number"?this._targetZoom:b.zoom,G=this._startZoom,K=this._easing,re=!1,ce;if(this._type==="wheel"&&G&&K){var we=Math.min((a.browser.now()-this._lastWheelEventTime)/200,1),be=K(we);ce=a.number(G,R,be),we<1?this._frameId||(this._frameId=!0):re=!0}else ce=R,re=!0;return this._active=!0,re&&(this._active=!1,this._finishTimeout=setTimeout(function(){c._zooming=!1,c._handler._triggerRenderFrame(),delete c._targetZoom,delete c._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!re,zoomDelta:ce-b.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Ar.prototype._smoothOutEasing=function(c){var b=a.ease;if(this._prevEase){var d=this._prevEase,w=(a.browser.now()-d.start)/d.duration,D=d.easing(w+.01)-d.easing(w),R=.27/Math.sqrt(D*D+1e-4)*.01,G=Math.sqrt(.27*.27-R*R);b=a.bezier(R,G,.25,1)}return this._prevEase={start:a.browser.now(),duration:c,easing:b},b},Ar.prototype.reset=function(){this._active=!1};var Hr=function(c,b){this._clickZoom=c,this._tapZoom=b};Hr.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Hr.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Hr.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Hr.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Fi=function(){this.reset()};Fi.prototype.reset=function(){this._active=!1},Fi.prototype.dblclick=function(c,b){return c.preventDefault(),{cameraAnimation:function(d){d.easeTo({duration:300,zoom:d.getZoom()+(c.shiftKey?-1:1),around:d.unproject(b)},{originalEvent:c})}}},Fi.prototype.enable=function(){this._enabled=!0},Fi.prototype.disable=function(){this._enabled=!1,this.reset()},Fi.prototype.isEnabled=function(){return this._enabled},Fi.prototype.isActive=function(){return this._active};var Ti=function(){this._tap=new $e({numTouches:1,numTaps:1}),this.reset()};Ti.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ti.prototype.touchstart=function(c,b,d){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>ge&&this.reset(),this._tapTime?d.length>0&&(this._swipePoint=b[0],this._swipeTouch=d[0].identifier):this._tap.touchstart(c,b,d))},Ti.prototype.touchmove=function(c,b,d){if(!this._tapTime)this._tap.touchmove(c,b,d);else if(this._swipePoint){if(d[0].identifier!==this._swipeTouch)return;var w=b[0],D=w.y-this._swipePoint.y;return this._swipePoint=w,c.preventDefault(),this._active=!0,{zoomDelta:D/128}}},Ti.prototype.touchend=function(c,b,d){if(this._tapTime)this._swipePoint&&d.length===0&&this.reset();else{var w=this._tap.touchend(c,b,d);w&&(this._tapTime=c.timeStamp)}},Ti.prototype.touchcancel=function(){this.reset()},Ti.prototype.enable=function(){this._enabled=!0},Ti.prototype.disable=function(){this._enabled=!1,this.reset()},Ti.prototype.isEnabled=function(){return this._enabled},Ti.prototype.isActive=function(){return this._active};var fo=function(c,b,d){this._el=c,this._mousePan=b,this._touchPan=d};fo.prototype.enable=function(c){this._inertiaOptions=c||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},fo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},fo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},fo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var qn=function(c,b,d){this._pitchWithRotate=c.pitchWithRotate,this._mouseRotate=b,this._mousePitch=d};qn.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},qn.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},qn.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},qn.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var pn=function(c,b,d,w){this._el=c,this._touchZoom=b,this._touchRotate=d,this._tapDragZoom=w,this._rotationDisabled=!1,this._enabled=!0};pn.prototype.enable=function(c){this._touchZoom.enable(c),this._rotationDisabled||this._touchRotate.enable(c),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},pn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},pn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},pn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},pn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},pn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var di=function(g){return g.zoom||g.drag||g.pitch||g.rotate},Jo=(function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c})(a.Event);function co(g){return g.panDelta&&g.panDelta.mag()||g.zoomDelta||g.bearingDelta||g.pitchDelta}var fi=function(c,b){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new xf(c),this._bearingSnap=b.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(b),a.bindAll(["handleEvent","handleWindowEvent"],this);var d=this._el;this._listeners=[[d,"touchstart",{passive:!0}],[d,"touchmove",{passive:!1}],[d,"touchend",void 0],[d,"touchcancel",void 0],[d,"mousedown",void 0],[d,"mousemove",void 0],[d,"mouseup",void 0],[a.window.document,"mousemove",{capture:!0}],[a.window.document,"mouseup",void 0],[d,"mouseover",void 0],[d,"mouseout",void 0],[d,"dblclick",void 0],[d,"click",void 0],[d,"keydown",{capture:!1}],[d,"keyup",void 0],[d,"wheel",{passive:!1}],[d,"contextmenu",void 0],[a.window,"blur",void 0]];for(var w=0,D=this._listeners;wG?Math.min(2,Qt):Math.max(.5,Qt),kr=Math.pow(Dr,1-dr),Xr=R.unproject(zt.add(Ft.mult(dr*kr)).mult(wr));R.setLocationAtPoint(R.renderWorldCopies?Xr.wrap():Xr,Ve)}D._fireMoveEvents(w)},function(dr){D._afterEase(w,dr)},d),this},c.prototype._prepareEase=function(d,w,D){D===void 0&&(D={}),this._moving=!0,!w&&!D.moving&&this.fire(new a.Event("movestart",d)),this._zooming&&!D.zooming&&this.fire(new a.Event("zoomstart",d)),this._rotating&&!D.rotating&&this.fire(new a.Event("rotatestart",d)),this._pitching&&!D.pitching&&this.fire(new a.Event("pitchstart",d))},c.prototype._fireMoveEvents=function(d){this.fire(new a.Event("move",d)),this._zooming&&this.fire(new a.Event("zoom",d)),this._rotating&&this.fire(new a.Event("rotate",d)),this._pitching&&this.fire(new a.Event("pitch",d))},c.prototype._afterEase=function(d,w){if(!(this._easeId&&w&&this._easeId===w)){delete this._easeId;var D=this._zooming,R=this._rotating,G=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,D&&this.fire(new a.Event("zoomend",d)),R&&this.fire(new a.Event("rotateend",d)),G&&this.fire(new a.Event("pitchend",d)),this.fire(new a.Event("moveend",d))}},c.prototype.flyTo=function(d,w){var D=this;if(!d.essential&&a.browser.prefersReducedMotion){var R=a.pick(d,["center","zoom","bearing","pitch","around"]);return this.jumpTo(R,w)}this.stop(),d=a.extend({offset:[0,0],speed:1.2,curve:1.42,easing:a.ease},d);var G=this.transform,K=this.getZoom(),re=this.getBearing(),ce=this.getPitch(),we=this.getPadding(),be="zoom"in d?a.clamp(+d.zoom,G.minZoom,G.maxZoom):K,Re="bearing"in d?this._normalizeBearing(d.bearing,re):re,We="pitch"in d?+d.pitch:ce,Ze="padding"in d?d.padding:G.padding,Ve=G.zoomScale(be-K),Ke=a.Point.convert(d.offset),dt=G.centerPoint.add(Ke),zt=G.pointLocation(dt),Ft=a.LngLat.convert(d.center||zt);this._normalizeCenter(Ft);var Qt=G.project(zt),rr=G.project(Ft).sub(Qt),Yt=d.curve,ar=Math.max(G.width,G.height),dr=ar/Ve,wr=rr.mag();if("minZoom"in d){var Dr=a.clamp(Math.min(d.minZoom,K,be),G.minZoom,G.maxZoom),kr=ar/G.zoomScale(Dr-K);Yt=Math.sqrt(kr/wr*2)}var Xr=Yt*Yt;function za(na){var Na=(dr*dr-ar*ar+(na?-1:1)*Xr*Xr*wr*wr)/(2*(na?dr:ar)*Xr*wr);return Math.log(Math.sqrt(Na*Na+1)-Na)}function _a(na){return(Math.exp(na)-Math.exp(-na))/2}function Nr(na){return(Math.exp(na)+Math.exp(-na))/2}function Sa(na){return _a(na)/Nr(na)}var ia=za(0),Ya=function(na){return Nr(ia)/Nr(ia+Yt*na)},Oa=function(na){return ar*((Nr(ia)*Sa(ia+Yt*na)-_a(ia))/Xr)/wr},Ai=(za(1)-ia)/Yt;if(Math.abs(wr)<1e-6||!isFinite(Ai)){if(Math.abs(ar-dr)<1e-6)return this.easeTo(d,w);var Ea=drd.maxDuration&&(d.duration=0),this._zooming=!0,this._rotating=re!==Re,this._pitching=We!==ce,this._padding=!G.isPaddingEqual(Ze),this._prepareEase(w,!1),this._ease(function(na){var Na=na*Ai,en=1/Ya(Na);G.zoom=na===1?be:K+G.scaleZoom(en),D._rotating&&(G.bearing=a.number(re,Re,na)),D._pitching&&(G.pitch=a.number(ce,We,na)),D._padding&&(G.interpolatePadding(we,Ze,na),dt=G.centerPoint.add(Ke));var Nn=na===1?Ft:G.unproject(Qt.add(rr.mult(Oa(Na))).mult(en));G.setLocationAtPoint(G.renderWorldCopies?Nn.wrap():Nn,dt),D._fireMoveEvents(w)},function(){return D._afterEase(w)},d),this},c.prototype.isEasing=function(){return!!this._easeFrameId},c.prototype.stop=function(){return this._stop()},c.prototype._stop=function(d,w){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var D=this._onEaseEnd;delete this._onEaseEnd,D.call(this,w)}if(!d){var R=this.handlers;R&&R.stop(!1)}return this},c.prototype._ease=function(d,w,D){D.animate===!1||D.duration===0?(d(1),w()):(this._easeStart=a.browser.now(),this._easeOptions=D,this._onEaseFrame=d,this._onEaseEnd=w,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},c.prototype._renderFrameCallback=function(){var d=Math.min((a.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(d)),d<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},c.prototype._normalizeBearing=function(d,w){d=a.wrap(d,-180,180);var D=Math.abs(d-w);return Math.abs(d-360-w)180?-360:D<-180?360:0}},c})(a.Evented),Ta=function(c){c===void 0&&(c={}),this.options=c,a.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Ta.prototype.getDefaultPosition=function(){return"bottom-right"},Ta.prototype.onAdd=function(c){var b=this.options&&this.options.compact;return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=l.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=l.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),b&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),b===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Ta.prototype.onRemove=function(){l.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Ta.prototype._setElementTitle=function(c,b){var d=this._map._getUIString("AttributionControl."+b);c.title=d,c.setAttribute("aria-label",d)},Ta.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Ta.prototype._updateEditLink=function(){var c=this._editLink;c||(c=this._editLink=this._container.querySelector(".mapbox-improve-map"));var b=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||a.config.ACCESS_TOKEN}];if(c){var d=b.reduce(function(w,D,R){return D.value&&(w+=D.key+"="+D.value+(R=0)return!1;return!0});var G=c.join(" | ");G!==this._attribHTML&&(this._attribHTML=G,c.length?(this._innerContainer.innerHTML=G,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Ta.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var li=function(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)};li.prototype.onAdd=function(c){this._map=c,this._container=l.create("div","mapboxgl-ctrl");var b=l.create("a","mapboxgl-ctrl-logo");return b.target="_blank",b.rel="noopener nofollow",b.href="https://www.mapbox.com/",b.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),b.setAttribute("rel","noopener nofollow"),this._container.appendChild(b),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},li.prototype.onRemove=function(){l.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},li.prototype.getDefaultPosition=function(){return"bottom-left"},li.prototype._updateLogo=function(c){(!c||c.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},li.prototype._logoRequired=function(){if(this._map.style){var c=this._map.style.sourceCaches;for(var b in c){var d=c[b].getSource();if(d.mapbox_logo)return!0}return!1}},li.prototype._updateCompact=function(){var c=this._container.children;if(c.length){var b=c[0];this._map.getCanvasContainer().offsetWidth<250?b.classList.add("mapboxgl-compact"):b.classList.remove("mapboxgl-compact")}};var Bl=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Bl.prototype.add=function(c){var b=++this._id,d=this._queue;return d.push({callback:c,id:b,cancelled:!1}),b},Bl.prototype.remove=function(c){for(var b=this._currentlyRunning,d=b?this._queue.concat(b):this._queue,w=0,D=d;wd.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(d.minPitch!=null&&d.maxPitch!=null&&d.minPitch>d.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(d.minPitch!=null&&d.minPitchTf)throw new Error("maxPitch must be less than or equal to "+Tf);var D=new Qa(d.minZoom,d.maxZoom,d.minPitch,d.maxPitch,d.renderWorldCopies);if(g.call(this,D,d),this._interactive=d.interactive,this._maxTileCacheSize=d.maxTileCacheSize,this._failIfMajorPerformanceCaveat=d.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=d.preserveDrawingBuffer,this._antialias=d.antialias,this._trackResize=d.trackResize,this._bearingSnap=d.bearingSnap,this._refreshExpiredTiles=d.refreshExpiredTiles,this._fadeDuration=d.fadeDuration,this._crossSourceCollisions=d.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=d.collectResourceTiming,this._renderTaskQueue=new Bl,this._controls=[],this._mapId=a.uniqueId(),this._locale=a.extend({},Kv,d.locale),this._clickTolerance=d.clickTolerance,this._requestManager=new a.RequestManager(d.transformRequest,d.accessToken),typeof d.container=="string"){if(this._container=a.window.document.getElementById(d.container),!this._container)throw new Error("Container '"+d.container+"' not found.")}else if(d.container instanceof uy)this._container=d.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(d.maxBounds&&this.setMaxBounds(d.maxBounds),a.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return w._update(!1)}),this.on("moveend",function(){return w._update(!1)}),this.on("zoom",function(){return w._update(!0)}),typeof a.window!="undefined"&&(a.window.addEventListener("online",this._onWindowOnline,!1),a.window.addEventListener("resize",this._onWindowResize,!1),a.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new fi(this,d);var R=typeof d.hash=="string"&&d.hash||void 0;this._hash=d.hash&&new Fl(R).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:d.center,zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),d.bounds&&(this.resize(),this.fitBounds(d.bounds,a.extend({},d.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=d.localIdeographFontFamily,d.style&&this.setStyle(d.style,{localIdeographFontFamily:d.localIdeographFontFamily}),d.attributionControl&&this.addControl(new Ta({customAttribution:d.customAttribution})),this.addControl(new li,d.logoPosition),this.on("style.load",function(){w.transform.unmodified&&w.jumpTo(w.style.stylesheet)}),this.on("data",function(G){w._update(G.dataType==="style"),w.fire(new a.Event(G.dataType+"data",G))}),this.on("dataloading",function(G){w.fire(new a.Event(G.dataType+"dataloading",G))})}g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c;var b={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return c.prototype._getMapId=function(){return this._mapId},c.prototype.addControl=function(w,D){if(D===void 0&&(w.getDefaultPosition?D=w.getDefaultPosition():D="top-right"),!w||!w.onAdd)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var R=w.onAdd(this);this._controls.push(w);var G=this._controlPositions[D];return D.indexOf("bottom")!==-1?G.insertBefore(R,G.firstChild):G.appendChild(R),this},c.prototype.removeControl=function(w){if(!w||!w.onRemove)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var D=this._controls.indexOf(w);return D>-1&&this._controls.splice(D,1),w.onRemove(this),this},c.prototype.hasControl=function(w){return this._controls.indexOf(w)>-1},c.prototype.resize=function(w){var D=this._containerDimensions(),R=D[0],G=D[1];this._resizeCanvas(R,G),this.transform.resize(R,G),this.painter.resize(R,G);var K=!this._moving;return K&&(this.stop(),this.fire(new a.Event("movestart",w)).fire(new a.Event("move",w))),this.fire(new a.Event("resize",w)),K&&this.fire(new a.Event("moveend",w)),this},c.prototype.getBounds=function(){return this.transform.getBounds()},c.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},c.prototype.setMaxBounds=function(w){return this.transform.setMaxBounds(a.LngLatBounds.convert(w)),this._update()},c.prototype.setMinZoom=function(w){if(w=w==null?vh:w,w>=vh&&w<=this.transform.maxZoom)return this.transform.minZoom=w,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=w,this._update(),this.getZoom()>w&&this.setZoom(w),this;throw new Error("maxZoom must be greater than the current minZoom")},c.prototype.getMaxZoom=function(){return this.transform.maxZoom},c.prototype.setMinPitch=function(w){if(w=w==null?Lo:w,w=Lo&&w<=this.transform.maxPitch)return this.transform.minPitch=w,this._update(),this.getPitch()Tf)throw new Error("maxPitch must be less than or equal to "+Tf);if(w>=this.transform.minPitch)return this.transform.maxPitch=w,this._update(),this.getPitch()>w&&this.setPitch(w),this;throw new Error("maxPitch must be greater than the current minPitch")},c.prototype.getMaxPitch=function(){return this.transform.maxPitch},c.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},c.prototype.setRenderWorldCopies=function(w){return this.transform.renderWorldCopies=w,this._update()},c.prototype.project=function(w){return this.transform.locationPoint(a.LngLat.convert(w))},c.prototype.unproject=function(w){return this.transform.pointLocation(a.Point.convert(w))},c.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},c.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},c.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},c.prototype._createDelegatedListener=function(w,D,R){var G=this,K;if(w==="mouseenter"||w==="mouseover"){var re=!1,ce=function(Ve){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Ve.point,{layers:[D]}):[];Ke.length?re||(re=!0,R.call(G,new S(w,G,Ve.originalEvent,{features:Ke}))):re=!1},we=function(){re=!1};return{layer:D,listener:R,delegates:{mousemove:ce,mouseout:we}}}else if(w==="mouseleave"||w==="mouseout"){var be=!1,Re=function(Ve){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Ve.point,{layers:[D]}):[];Ke.length?be=!0:be&&(be=!1,R.call(G,new S(w,G,Ve.originalEvent)))},We=function(Ve){be&&(be=!1,R.call(G,new S(w,G,Ve.originalEvent)))};return{layer:D,listener:R,delegates:{mousemove:Re,mouseout:We}}}else{var Ze=function(Ve){var Ke=G.getLayer(D)?G.queryRenderedFeatures(Ve.point,{layers:[D]}):[];Ke.length&&(Ve.features=Ke,R.call(G,Ve),delete Ve.features)};return{layer:D,listener:R,delegates:(K={},K[w]=Ze,K)}}},c.prototype.on=function(w,D,R){if(R===void 0)return g.prototype.on.call(this,w,D);var G=this._createDelegatedListener(w,D,R);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[w]=this._delegatedListeners[w]||[],this._delegatedListeners[w].push(G);for(var K in G.delegates)this.on(K,G.delegates[K]);return this},c.prototype.once=function(w,D,R){if(R===void 0)return g.prototype.once.call(this,w,D);var G=this._createDelegatedListener(w,D,R);for(var K in G.delegates)this.once(K,G.delegates[K]);return this},c.prototype.off=function(w,D,R){var G=this;if(R===void 0)return g.prototype.off.call(this,w,D);var K=function(re){for(var ce=re[w],we=0;we180;){var R=b.locationPoint(g);if(R.x>=0&&R.y>=0&&R.x<=b.width&&R.y<=b.height)break;g.lng>b.center.lng?g.lng-=360:g.lng+=360}return g}var $v={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function jp(g,c,b){var d=g.classList;for(var w in $v)d.remove("mapboxgl-"+b+"-anchor-"+w);d.add("mapboxgl-"+b+"-anchor-"+c)}var ph=(function(g){function c(b,d){if(g.call(this),(b instanceof a.window.HTMLElement||d)&&(b=a.extend({element:b},d)),a.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=b&&b.anchor||"center",this._color=b&&b.color||"#3FB1CE",this._scale=b&&b.scale||1,this._draggable=b&&b.draggable||!1,this._clickTolerance=b&&b.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=b&&b.rotation||0,this._rotationAlignment=b&&b.rotationAlignment||"auto",this._pitchAlignment=b&&b.pitchAlignment&&b.pitchAlignment!=="auto"?b.pitchAlignment:this._rotationAlignment,!b||!b.element){this._defaultMarker=!0,this._element=l.create("div"),this._element.setAttribute("aria-label","Map marker");var w=l.createNS("http://www.w3.org/2000/svg","svg"),D=41,R=27;w.setAttributeNS(null,"display","block"),w.setAttributeNS(null,"height",D+"px"),w.setAttributeNS(null,"width",R+"px"),w.setAttributeNS(null,"viewBox","0 0 "+R+" "+D);var G=l.createNS("http://www.w3.org/2000/svg","g");G.setAttributeNS(null,"stroke","none"),G.setAttributeNS(null,"stroke-width","1"),G.setAttributeNS(null,"fill","none"),G.setAttributeNS(null,"fill-rule","evenodd");var K=l.createNS("http://www.w3.org/2000/svg","g");K.setAttributeNS(null,"fill-rule","nonzero");var re=l.createNS("http://www.w3.org/2000/svg","g");re.setAttributeNS(null,"transform","translate(3.0, 29.0)"),re.setAttributeNS(null,"fill","#000000");for(var ce=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],we=0,be=ce;we=w}this._isDragging&&(this._pos=d.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.Event("dragstart"))),this.fire(new a.Event("drag")))},c.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.Event("dragend")),this._state="inactive"},c.prototype._addDragHandler=function(d){this._element.contains(d.originalEvent.target)&&(d.preventDefault(),this._positionDelta=d.point.sub(this._pos).add(this._offset),this._pointerdownPos=d.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},c.prototype.setDraggable=function(d){return this._draggable=!!d,this._map&&(d?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},c.prototype.isDraggable=function(){return this._draggable},c.prototype.setRotation=function(d){return this._rotation=d||0,this._update(),this},c.prototype.getRotation=function(){return this._rotation},c.prototype.setRotationAlignment=function(d){return this._rotationAlignment=d||"auto",this._update(),this},c.prototype.getRotationAlignment=function(){return this._rotationAlignment},c.prototype.setPitchAlignment=function(d){return this._pitchAlignment=d&&d!=="auto"?d:this._rotationAlignment,this._update(),this},c.prototype.getPitchAlignment=function(){return this._pitchAlignment},c})(a.Evented),hy={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Af;function ed(g){Af!==void 0?g(Af):a.window.navigator.permissions!==void 0?a.window.navigator.permissions.query({name:"geolocation"}).then(function(c){Af=c.state!=="denied",g(Af)}):(Af=!!a.window.navigator.geolocation,g(Af))}var mh=0,cc=!1,L1=(function(g){function c(b){g.call(this),this.options=a.extend({},hy,b),a.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.onAdd=function(d){return this._map=d,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),ed(this._setupUI),this._container},c.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),l.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,mh=0,cc=!1},c.prototype._isOutOfMapMaxBounds=function(d){var w=this._map.getMaxBounds(),D=d.coords;return w&&(D.longitudew.getEast()||D.latitudew.getNorth())},c.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},c.prototype._onSuccess=function(d){if(this._map){if(this._isOutOfMapMaxBounds(d)){this._setErrorState(),this.fire(new a.Event("outofmaxbounds",d)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=d,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(d),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(d),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("geolocate",d)),this._finish()}},c.prototype._updateCamera=function(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude),D=d.coords.accuracy,R=this._map.getBearing(),G=a.extend({bearing:R},this.options.fitBoundsOptions);this._map.fitBounds(w.toBounds(D),G,{geolocateSource:!0})},c.prototype._updateMarker=function(d){if(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude);this._accuracyCircleMarker.setLngLat(w).addTo(this._map),this._userLocationDotMarker.setLngLat(w).addTo(this._map),this._accuracy=d.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},c.prototype._updateCircleRadius=function(){var d=this._map._container.clientHeight/2,w=this._map.unproject([0,d]),D=this._map.unproject([1,d]),R=w.distanceTo(D),G=Math.ceil(2*this._accuracy/R);this._circleElement.style.width=G+"px",this._circleElement.style.height=G+"px"},c.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},c.prototype._onError=function(d){if(this._map){if(this.options.trackUserLocation)if(d.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var w=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(d.code===3&&cc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("error",d)),this._finish()}},c.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},c.prototype._setupUI=function(d){var w=this;if(this._container.addEventListener("contextmenu",function(G){return G.preventDefault()}),this._geolocateButton=l.create("button","mapboxgl-ctrl-geolocate",this._container),l.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",d===!1){a.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var D=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=D,this._geolocateButton.setAttribute("aria-label",D)}else{var R=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=R,this._geolocateButton.setAttribute("aria-label",R)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=l.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ph(this._dotElement),this._circleElement=l.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ph({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(G){var K=G.originalEvent&&G.originalEvent.type==="resize";!G.geolocateSource&&w._watchState==="ACTIVE_LOCK"&&!K&&(w._watchState="BACKGROUND",w._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),w._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),w.fire(new a.Event("trackuserlocationend")))})},c.prototype.trigger=function(){if(!this._setup)return a.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":mh--,cc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),mh++;var d;mh>1?(d={maximumAge:6e5,timeout:0},cc=!0):(d=this.options.positionOptions,cc=!1),this._geolocationWatchID=a.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,d)}}else a.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},c.prototype._clearWatch=function(){a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},c})(a.Evented),vy={maxWidth:100,unit:"metric"},hc=function(c){this.options=a.extend({},vy,c),a.bindAll(["_onMove","setUnit"],this)};hc.prototype.getDefaultPosition=function(){return"bottom-left"},hc.prototype._onMove=function(){dy(this._map,this._container,this.options)},hc.prototype.onAdd=function(c){return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",c.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},hc.prototype.onRemove=function(){l.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},hc.prototype.setUnit=function(c){this.options.unit=c,dy(this._map,this._container,this.options)};function dy(g,c,b){var d=b&&b.maxWidth||100,w=g._container.clientHeight/2,D=g.unproject([0,w]),R=g.unproject([d,w]),G=D.distanceTo(R);if(b&&b.unit==="imperial"){var K=3.2808*G;if(K>5280){var re=K/5280;yh(c,d,re,g._getUIString("ScaleControl.Miles"))}else yh(c,d,K,g._getUIString("ScaleControl.Feet"))}else if(b&&b.unit==="nautical"){var ce=G/1852;yh(c,d,ce,g._getUIString("ScaleControl.NauticalMiles"))}else G>=1e3?yh(c,d,G/1e3,g._getUIString("ScaleControl.Kilometers")):yh(c,d,G,g._getUIString("ScaleControl.Meters"))}function yh(g,c,b,d){var w=P1(b),D=w/b;g.style.width=c*D+"px",g.innerHTML=w+" "+d}function D1(g){var c=Math.pow(10,Math.ceil(-Math.log(g)/Math.LN10));return Math.round(g*c)/c}function P1(g){var c=Math.pow(10,(""+Math.floor(g)).length-1),b=g/c;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:b>=1?1:D1(b),c*b}var $s=function(c){this._fullscreen=!1,c&&c.container&&(c.container instanceof a.window.HTMLElement?this._container=c.container:a.warnOnce("Full screen control 'container' must be a DOM element.")),a.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in a.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in a.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in a.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in a.window.document&&(this._fullscreenchange="MSFullscreenChange")};$s.prototype.onAdd=function(c){return this._map=c,this._container||(this._container=this._map.getContainer()),this._controlContainer=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},$s.prototype.onRemove=function(){l.remove(this._controlContainer),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},$s.prototype._checkFullscreenSupport=function(){return!!(a.window.document.fullscreenEnabled||a.window.document.mozFullScreenEnabled||a.window.document.msFullscreenEnabled||a.window.document.webkitFullscreenEnabled)},$s.prototype._setupUI=function(){var c=this._fullscreenButton=l.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);l.create("span","mapboxgl-ctrl-icon",c).setAttribute("aria-hidden",!0),c.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),a.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},$s.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},$s.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},$s.prototype._isFullscreen=function(){return this._fullscreen},$s.prototype._changeIcon=function(){var c=a.window.document.fullscreenElement||a.window.document.mozFullScreenElement||a.window.document.webkitFullscreenElement||a.window.document.msFullscreenElement;c===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},$s.prototype._onClickFullscreen=function(){this._isFullscreen()?a.window.document.exitFullscreen?a.window.document.exitFullscreen():a.window.document.mozCancelFullScreen?a.window.document.mozCancelFullScreen():a.window.document.msExitFullscreen?a.window.document.msExitFullscreen():a.window.document.webkitCancelFullScreen&&a.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var z1={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},I1=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),_3=(function(g){function c(b){g.call(this),this.options=a.extend(Object.create(z1),b),a.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.addTo=function(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new a.Event("open")),this},c.prototype.isOpen=function(){return!!this._map},c.prototype.remove=function(){return this._content&&l.remove(this._content),this._container&&(l.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new a.Event("close")),this},c.prototype.getLngLat=function(){return this._lngLat},c.prototype.setLngLat=function(d){return this._lngLat=a.LngLat.convert(d),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},c.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},c.prototype.getElement=function(){return this._container},c.prototype.setText=function(d){return this.setDOMContent(a.window.document.createTextNode(d))},c.prototype.setHTML=function(d){var w=a.window.document.createDocumentFragment(),D=a.window.document.createElement("body"),R;for(D.innerHTML=d;R=D.firstChild,!!R;)w.appendChild(R);return this.setDOMContent(w)},c.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},c.prototype.setMaxWidth=function(d){return this.options.maxWidth=d,this._update(),this},c.prototype.setDOMContent=function(d){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=l.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(d),this._createCloseButton(),this._update(),this._focusFirstElement(),this},c.prototype.addClassName=function(d){this._container&&this._container.classList.add(d)},c.prototype.removeClassName=function(d){this._container&&this._container.classList.remove(d)},c.prototype.setOffset=function(d){return this.options.offset=d,this._update(),this},c.prototype.toggleClassName=function(d){if(this._container)return this._container.classList.toggle(d)},c.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=l.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},c.prototype._onMouseUp=function(d){this._update(d.point)},c.prototype._onMouseMove=function(d){this._update(d.point)},c.prototype._onDrag=function(d){this._update(d.point)},c.prototype._update=function(d){var w=this,D=this._lngLat||this._trackPointer;if(!(!this._map||!D||!this._content)&&(this._container||(this._container=l.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=l.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Re){return w._container.classList.add(Re)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Cu(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!d))){var R=this._pos=this._trackPointer&&d?d:this._map.project(this._lngLat),G=this.options.anchor,K=R1(this.options.offset);if(!G){var re=this._container.offsetWidth,ce=this._container.offsetHeight,we;R.y+K.bottom.ythis._map.transform.height-ce?we=["bottom"]:we=[],R.xthis._map.transform.width-re/2&&we.push("right"),we.length===0?G="bottom":G=we.join("-")}var be=R.add(K[G]).round();l.setTransform(this._container,$v[G]+" translate("+be.x+"px,"+be.y+"px)"),jp(this._container,G,"popup")}},c.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var d=this._container.querySelector(I1);d&&d.focus()}},c.prototype._onClose=function(){this.remove()},c})(a.Evented);function R1(g){if(g)if(typeof g=="number"){var c=Math.round(Math.sqrt(.5*Math.pow(g,2)));return{center:new a.Point(0,0),top:new a.Point(0,g),"top-left":new a.Point(c,c),"top-right":new a.Point(-c,c),bottom:new a.Point(0,-g),"bottom-left":new a.Point(c,-c),"bottom-right":new a.Point(-c,-c),left:new a.Point(g,0),right:new a.Point(-g,0)}}else if(g instanceof a.Point||Array.isArray(g)){var b=a.Point.convert(g);return{center:b,top:b,"top-left":b,"top-right":b,bottom:b,"bottom-left":b,"bottom-right":b,left:b,right:b}}else return{center:a.Point.convert(g.center||[0,0]),top:a.Point.convert(g.top||[0,0]),"top-left":a.Point.convert(g["top-left"]||[0,0]),"top-right":a.Point.convert(g["top-right"]||[0,0]),bottom:a.Point.convert(g.bottom||[0,0]),"bottom-left":a.Point.convert(g["bottom-left"]||[0,0]),"bottom-right":a.Point.convert(g["bottom-right"]||[0,0]),left:a.Point.convert(g.left||[0,0]),right:a.Point.convert(g.right||[0,0])};else return R1(new a.Point(0,0))}var Tn={version:a.version,supported:s,setRTLTextPlugin:a.setRTLTextPlugin,getRTLTextPluginStatus:a.getRTLTextPluginStatus,Map:cy,NavigationControl:ku,GeolocateControl:L1,AttributionControl:Ta,ScaleControl:hc,FullscreenControl:$s,Popup:_3,Marker:ph,Style:As,LngLat:a.LngLat,LngLatBounds:a.LngLatBounds,Point:a.Point,MercatorCoordinate:a.MercatorCoordinate,Evented:a.Evented,config:a.config,prewarm:Or,clearPrewarmedResources:ca,get accessToken(){return a.config.ACCESS_TOKEN},set accessToken(g){a.config.ACCESS_TOKEN=g},get baseApiUrl(){return a.config.API_URL},set baseApiUrl(g){a.config.API_URL=g},get workerCount(){return tr.workerCount},set workerCount(g){tr.workerCount=g},get maxParallelImageRequests(){return a.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){a.config.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage:function(c){a.clearTileCache(c)},workerUrl:""};return Tn}),r}))});var VH=de((g3e,UH)=>{UH.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var Kb=de(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var Ys=63710088e-1,LA={centimeters:Ys*100,centimetres:Ys*100,degrees:360/(2*Math.PI),feet:Ys*3.28084,inches:Ys*39.37,kilometers:Ys/1e3,kilometres:Ys/1e3,meters:Ys,metres:Ys,miles:Ys/1609.344,millimeters:Ys*1e3,millimetres:Ys*1e3,nauticalmiles:Ys/1852,radians:1,yards:Ys*1.0936},EA={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function uv(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function vpe(e,t,r={}){switch(e){case"Point":return DA(t).geometry;case"LineString":return zA(t).geometry;case"Polygon":return PA(t).geometry;case"MultiPoint":return GH(t).geometry;case"MultiLineString":return HH(t).geometry;case"MultiPolygon":return ZH(t).geometry;default:throw new Error(e+" is invalid")}}function DA(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!jb(e[0])||!jb(e[1]))throw new Error("coordinates must contain numbers");return uv({type:"Point",coordinates:e},t,r)}function dpe(e,t,r={}){return Jb(e.map(i=>DA(i,t)),r)}function PA(e,t,r={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let s=0;sPA(i,t)),r)}function zA(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return uv({type:"LineString",coordinates:e},t,r)}function mpe(e,t,r={}){return Jb(e.map(i=>zA(i,t)),r)}function Jb(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function HH(e,t,r={}){return uv({type:"MultiLineString",coordinates:e},t,r)}function GH(e,t,r={}){return uv({type:"MultiPoint",coordinates:e},t,r)}function ZH(e,t,r={}){return uv({type:"MultiPolygon",coordinates:e},t,r)}function ype(e,t,r={}){return uv({type:"GeometryCollection",geometries:e},t,r)}function gpe(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function YH(e,t="kilometers"){let r=LA[t];if(!r)throw new Error(t+" units is invalid");return e*r}function IA(e,t="kilometers"){let r=LA[t];if(!r)throw new Error(t+" units is invalid");return e/r}function _pe(e,t){return WH(IA(e,t))}function xpe(e){let t=e%360;return t<0&&(t+=360),t}function bpe(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function WH(e){return e%(2*Math.PI)*180/Math.PI}function wpe(e){return e%360*Math.PI/180}function Tpe(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return YH(IA(e,t),r)}function Ape(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=EA[t];if(!i)throw new Error("invalid original units");let a=EA[r];if(!a)throw new Error("invalid final units");return e/i*a}function jb(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Mpe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Spe(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!jb(t))throw new Error("bbox must only contain numbers")})}function kpe(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Si.areaFactors=EA;Si.azimuthToBearing=bpe;Si.bearingToAzimuth=xpe;Si.convertArea=Ape;Si.convertLength=Tpe;Si.degreesToRadians=wpe;Si.earthRadius=Ys;Si.factors=LA;Si.feature=uv;Si.featureCollection=Jb;Si.geometry=vpe;Si.geometryCollection=ype;Si.isNumber=jb;Si.isObject=Mpe;Si.lengthToDegrees=_pe;Si.lengthToRadians=IA;Si.lineString=zA;Si.lineStrings=mpe;Si.multiLineString=HH;Si.multiPoint=GH;Si.multiPolygon=ZH;Si.point=DA;Si.points=dpe;Si.polygon=PA;Si.polygons=ppe;Si.radiansToDegrees=WH;Si.radiansToLength=YH;Si.round=gpe;Si.validateBBox=Spe;Si.validateId=kpe});var $b=de(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var us=Kb();function T1(e,t,r){if(e!==null)for(var i,a,s,l,u,h,v,m=0,_=0,T,M=e.type,C=M==="FeatureCollection",E=M==="Feature",L=C?e.features.length:1,I=0;Ih||C>v||E>m){u=_,h=i,v=C,m=E,s=0;return}var L=us.lineString.call(void 0,[u,_],r.properties);if(t(L,i,a,E,s)===!1)return!1;s++,u=_})===!1)return!1}}})}function Ipe(e,t,r){var i=r,a=!1;return JH(e,function(s,l,u,h,v){a===!1&&r===void 0?i=s:i=t(i,s,l,u,h,v),a=!0}),i}function KH(e,t){if(!e)throw new Error("geojson is required");Qb(e,function(r,i,a){if(r.geometry!==null){var s=r.geometry.type,l=r.geometry.coordinates;switch(s){case"LineString":if(t(r,i,a,0,0)===!1)return!1;break;case"Polygon":for(var u=0;u{"use strict";Object.defineProperty(e3,"__esModule",{value:!0});var QH=Kb(),Npe=$b();function tG(e){return Npe.geomReduce.call(void 0,e,(t,r)=>t+Bpe(r),0)}function Bpe(e){let t=0,r;switch(e.type){case"Polygon":return $H(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(eG(e[0]));for(let r=1;r=t?(i+2)%t:i+2],u=a[0]*FA,h=s[1]*FA,v=l[0]*FA;r+=(v-u)*Math.sin(h),i++}return r*Ope}var Upe=tG;e3.area=tG;e3.default=Upe});var iG=de(t3=>{"use strict";Object.defineProperty(t3,"__esModule",{value:!0});var Vpe=Kb(),Hpe=$b();function aG(e,t={}){let r=0,i=0,a=0;return Hpe.coordEach.call(void 0,e,function(s){r+=s[0],i+=s[1],a++},!0),Vpe.point.call(void 0,[r/a,i/a],t.properties)}var Gpe=aG;t3.centroid=aG;t3.default=Gpe});var oG=de(r3=>{"use strict";Object.defineProperty(r3,"__esModule",{value:!0});var Zpe=$b();function nG(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return Zpe.coordEach.call(void 0,e,i=>{r[0]>i[0]&&(r[0]=i[0]),r[1]>i[1]&&(r[1]=i[1]),r[2]{"use strict";var sG={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},Wpe=new Set(Object.values(sG));lG.exports={usaLocationAbbreviations:Wpe,usaLocationList:sG}});var i3=de((M3e,vG)=>{"use strict";var Xpe=Va(),cG=VH(),{area:jpe}=rG(),{centroid:Jpe}=iG(),{bbox:Kpe}=oG(),Qpe=L_(),rp=Lh(),$pe=gc(),e0e=Py(),a3=xx(),{usaLocationAbbreviations:t0e,usaLocationList:r0e}=uG(),fG=Object.keys(cG),a0e={"ISO-3":Qpe,"USA-states":n0e,"country names":i0e};function i0e(e){for(var t=0;t0&&e[t+1][0]<0)return t;return null}function s0e(e){var t=e.geometry,r=t.coordinates,i=e.id,a=[],s,l,u,h;switch(i==="RUS"||i==="FJI"?s=function(v){var m;if(qA(v)===null)m=v;else for(m=new Array(v.length),h=0;hm?_[T++]=[v[h][0]+A1,v[h][1]]:h===m?(_[T++]=v[h],_[T++]=[v[h][0],-90]):_[T++]=v[h];var M=a3.tester(_);M.pts.pop(),a.push(M)}:s=function(v){a.push(a3.tester(v))},t.type){case"MultiPolygon":for(l=0;l0?C.properties.ct=u0e(C):C.properties.ct=[NaN,NaN],T.fIn=m,T.fOut=C,a.push(C)}else rp.log(["Location",T.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete i[_]}switch(r.type){case"FeatureCollection":var h=r.features;for(s=0;sa&&(a=u,r=l)}else r=t;return Jpe(r).geometry.coordinates}function f0e(e){var t=window.PlotlyGeoAssets||{},r=[];function i(h){return new Promise(function(v,m){Xpe.json(h,function(_,T){if(_){delete t[h];var M=_.status===404?'GeoJSON at URL "'+h+'" does not exist.':"Unexpected error while fetching from "+h;return m(new Error(M))}return t[h]=T,v(T)})})}function a(h){return new Promise(function(v,m){var _=0,T=setInterval(function(){if(t[h]&&t[h]!=="pending")return clearInterval(T),v(t[h]);if(_>100)return clearInterval(T),m("Unexpected error while fetching from "+h);_++},50)})}for(var s=0;su-h);if(t.length<2)return null;let r=t.length,i=t[r-1]-t[0];if(i>=360)return null;let a=-1/0,s=-1;for(let u=0;ua&&(a=h,s=u)}let l=360-i;return a<=l?null:[t[s+1],t[s]+A1]}function v0e([e,t]){return[e,e>0&&t<0?t+A1:t]}vG.exports={locationToFeature:o0e,feature2polygons:s0e,getTraceGeojson:hG,extractTraceFeature:l0e,fetchTraceGeoData:f0e,computeBbox:c0e,doesCrossAntiMeridian:qA,getFitboundsLonRange:h0e,unwrapLonRange:v0e,ANTIMERIDIAN_LON_SHIFT:A1}});var gG=de((S3e,yG)=>{"use strict";var ap=Bt(),d0e=ro().sanitizeHTML,p0e=wA(),dG=Oc();function pG(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=dG.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var hu=pG.prototype;hu.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=n3(t)};hu.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};hu.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};hu.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};hu.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};hu.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};hu.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!n3(e)){var r=m0e(e);t.addSource(this.idSource,r)}};hu.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function mG(e){var t={},r={};switch(e.type){case"circle":ap.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":ap.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":ap.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=p0e(i.textposition,i.iconsize);ap.extendFlat(t,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":a.anchor,"text-offset":a.offset,"symbol-placement":i.placement}),ap.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":ap.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function m0e(e){var t=e.sourcetype,r=e.source,i={type:t},a;return t==="geojson"?a="data":t==="vector"?a=typeof r=="string"?"url":"tiles":t==="raster"?(a="tiles",i.tileSize=256):t==="image"&&(a="url",i.coordinates=e.coordinates),i[a]=r,e.sourceattribution&&(i.attribution=d0e(e.sourceattribution)),i}yG.exports=function(t,r,i){var a=new pG(t,r);return a.update(i),a}});var kG=de((k3e,SG)=>{"use strict";var NA=CA(),BA=Bt(),wG=i3(),_G=la(),y0e=Xi(),g0e=jl(),o3=Uu(),TG=qd(),_0e=TG.drawMode,x0e=TG.selectMode,b0e=Gf().prepSelect,w0e=Gf().clearOutline,T0e=Gf().clearSelectionsCache,A0e=Gf().selectOnClick,fv=Oc(),M0e=gG();function AG(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Hn=AG.prototype;Hn.plot=function(e,t,r){var i=this,a=t[i.id];i.map&&a.accesstoken!==i.accessToken&&(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]);var s;i.map?s=new Promise(function(l,u){i.updateMap(e,t,l,u)}):s=new Promise(function(l,u){i.createMap(e,t,l,u)}),r.push(s)};Hn.createMap=function(e,t,r,i){var a=this,s=t[a.id],l=a.styleObj=MG(s.style,t);a.accessToken=s.accesstoken;var u=s.bounds,h=u?[[u.west,u.south],[u.east,u.north]]:null,v=a.map=new NA.Map({container:a.div,style:l.style,center:OA(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:h,interactive:!a.isStatic,preserveDrawingBuffer:a.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new NA.AttributionControl({compact:!0}));v._canvas.style.left="0px",v._canvas.style.top="0px",a.rejectOnError(i),a.isStatic||a.initFx(e,t);var m=[];m.push(new Promise(function(_){v.once("load",_)})),m=m.concat(wG.fetchTraceGeoData(e)),Promise.all(m).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Hn.updateMap=function(e,t,r,i){var a=this,s=a.map,l=t[this.id];a.rejectOnError(i);var u=[],h=MG(l.style,t);JSON.stringify(a.styleObj)!==JSON.stringify(h)&&(a.styleObj=h,s.setStyle(h.style),a.traceHash={},u.push(new Promise(function(v){s.once("styledata",v)}))),u=u.concat(wG.fetchTraceGeoData(e)),Promise.all(u).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Hn.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,a,s,l=this.belowLookup={},u=!1;for(a=0;a1)for(a=0;a-1&&A0e(h.originalEvent,i,[r.xaxis],[r.yaxis],r.id,u),v.indexOf("event")>-1&&o3.click(i,h.originalEvent)}}};Hn.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function a(h){var v=t.map.unproject(h);return[v.lng,v.lat]}var s=e.dragmode,l;l=function(h,v){if(v.isRect){var m=h.range={};m[t.id]=[a([v.xmin,v.ymin]),a([v.xmax,v.ymax])]}else{var _=h.lassoPoints={};_[t.id]=v.map(a)}};var u=t.dragOptions;t.dragOptions=BA.extendDeep(u||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:l},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),x0e(s)||_0e(s)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(h,v,m){b0e(h,v,m,t.dragOptions,s)},g0e.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Hn.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Hn.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,a;if(r.length!==i.length){for(a=0;a{"use strict";var S0e=Bt(),k0e=Pi(),C0e=Fb().defaults;CG.exports=function(t,r,i,a){var s=a.type,l=a.attributes,u=a.handleDefaults,h=a.partition||"x",v=r._subplots[s],m=v.length,_=m&&v[0].replace(/\d+$/,""),T,M;function C(O,q){return S0e.coerce(T,M,l,O,q)}for(var E=0;E{"use strict";var UA=Bt(),E0e=EG(),L0e=Wl(),LG=g1();DG.exports=function(t,r,i){E0e(t,r,i,{type:"mapbox",attributes:LG,handleDefaults:D0e,partition:"y",accessToken:r._mapboxAccessToken})};function D0e(e,t,r,i){r("accesstoken",i.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var a=r("bounds.west"),s=r("bounds.east"),l=r("bounds.south"),u=r("bounds.north");(a===void 0||s===void 0||l===void 0||u===void 0)&&delete t.bounds,L0e(e,t,{name:"layers",handleItemDefaults:P0e}),t._input=e}function P0e(e,t){function r(h,v){return UA.coerce(e,t,LG.layers,h,v)}var i=r("visible");if(i){var a=r("sourcetype"),s=a==="raster"||a==="image";r("source"),r("sourceattribution"),a==="vector"&&r("sourcelayer"),a==="image"&&r("coordinates");var l;s&&(l="raster");var u=r("type",l);s&&u!=="raster"&&(u=t.type="raster",UA.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),u==="circle"&&r("circle.radius"),u==="line"&&(r("line.width"),r("line.dash")),u==="fill"&&r("fill.outlinecolor"),u==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),UA.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var s3=de(Ws=>{"use strict";var zG=CA(),$u=Bt(),VA=$u.strTranslate,z0e=$u.strScale,I0e=j_().getSubplotCalcData,R0e=Oh(),F0e=Va(),IG=_i(),q0e=ro(),N0e=kG(),cv="mapbox",Jf=Ws.constants=Oc();Ws.name=cv;Ws.attr="subplot";Ws.idRoot=cv;Ws.idRegex=Ws.attrRegex=$u.counterRegex(cv);var B0e=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Ws.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Ws.layoutAttributes=g1();Ws.supplyLayoutDefaults=PG();var RG=!0;Ws.plot=function(t){RG&&(RG=!1,$u.warn(B0e));var r=t._fullLayout,i=t.calcdata,a=r._subplots[cv];if(zG.version!==Jf.requiredVersion)throw new Error(Jf.wrongVersionErrorMsg);var s=O0e(t,a);zG.accessToken=s;for(var l=0;lI/2){var O=M.split("|").join("
");E.text(O).attr("data-unformatted",O).call(q0e.convertToTspans,e),L=IG.bBox(E.node())}E.attr("transform",VA(-3,-L.height+8)),C.insert("rect",".static-attribution").attr({x:-L.width-6,y:-L.height-3,width:L.width+6,height:L.height+3,fill:"rgba(255, 255, 255, 0.75)"});var q=1;L.width+6>I&&(q=I/(L.width+6));var z=[i.l+i.w*l.x[1],i.t+i.h*(1-l.y[0])];C.attr("transform",VA(z[0],z[1])+z0e(q))}};function O0e(e,t){var r=e._fullLayout,i=e._context;if(i.mapboxAccessToken==="")return"";for(var a=[],s=[],l=!1,u=!1,h=0;h1&&$u.warn(Jf.multipleTokensErrorMsg),a[0]):(s.length&&$u.log(["Listed mapbox access token(s)",s.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function FG(e){return typeof e=="string"&&(Jf.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Ws.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[cv],i=0;i{"use strict";var D3e=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");qG.exports={attributes:Vb(),supplyDefaults:pH(),colorbar:lT(),formatLabels:xA(),calc:wH(),plot:IH(),hoverPoints:Xb().hoverPoints,eventData:NH(),selectPoints:OH(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:s3(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var OG=de((z3e,BG)=>{"use strict";BG.exports=NG()});var HA=de((I3e,HG)=>{"use strict";var{hovertemplateAttrs:U0e,templatefallbackAttrs:V0e}=Cf(),vv=mA(),H0e=kc(),UG=ys(),G0e=kf().defaultLine,hv=mn().extendFlat,VG=vv.marker.line;HG.exports=hv({locations:{valType:"data_array",editType:"calc"},locationmode:vv.locationmode,z:{valType:"data_array",editType:"calc"},geojson:hv({},vv.geojson,{}),featureidkey:vv.featureidkey,text:hv({},vv.text,{}),hovertext:hv({},vv.hovertext,{}),marker:{line:{color:hv({},VG.color,{dflt:G0e}),width:hv({},VG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:vv.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:vv.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:hv({},UG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:U0e(),hovertemplatefallback:V0e(),showlegend:hv({},UG.showlegend,{dflt:!1})},H0e("",{cLetter:"z",editTypeOverride:"calc"}))});var GA=de((R3e,GG)=>{"use strict";var Uc=HA(),Z0e=kc(),{hovertemplateAttrs:Y0e,templatefallbackAttrs:W0e}=Cf(),X0e=ys(),dv=mn().extendFlat;GG.exports=dv({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:dv({},Uc.featureidkey,{}),below:{valType:"string",editType:"plot"},text:Uc.text,hovertext:Uc.hovertext,marker:{line:{color:dv({},Uc.marker.line.color,{editType:"plot"}),width:dv({},Uc.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:dv({},Uc.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:dv({},Uc.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:dv({},Uc.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:Uc.hoverinfo,hovertemplate:Y0e({},{keys:["properties"]}),hovertemplatefallback:W0e(),showlegend:dv({},X0e.showlegend,{dflt:!1})},Z0e("",{cLetter:"z",editTypeOverride:"calc"}))});var YG=de((F3e,ZG)=>{"use strict";var M1=Bt(),j0e=bd(),J0e=GA();ZG.exports=function(t,r,i,a){function s(m,_){return M1.coerce(t,r,J0e,m,_)}var l=s("locations"),u=s("z"),h=s("geojson");if(!M1.isArrayOrTypedArray(l)||!l.length||!M1.isArrayOrTypedArray(u)||!u.length||!(typeof h=="string"&&h!==""||M1.isPlainObject(h))){r.visible=!1;return}s("featureidkey"),r._length=Math.min(l.length,u.length),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback");var v=s("marker.line.width");v&&s("marker.line.color"),s("marker.opacity"),j0e(t,r,a,s,{prefix:"",cLetter:"z"}),M1.coerceSelectionMarkerOpacity(r,s)}});var ZA=de((q3e,WG)=>{"use strict";WG.exports={min:"zmin",max:"zmax"}});var KG=de((N3e,JG)=>{"use strict";var XG=La(),K0e=Zi().BADNUM,Q0e=tg(),$0e=$g(),eme=tb();function jG(e){return e&&typeof e=="string"}JG.exports=function(t,r){var i=r._length,a=new Array(i),s;r.geojson?s=function(m){return jG(m)||XG(m)}:s=jG;for(var l=0;l{"use strict";var tme=La(),Vc=Bt(),rme=G0(),ame=_i(),ime=Hb().makeBlank,QG=i3();function nme(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},a={layout:{visibility:"none"},paint:{}},s=t._opts={fill:i,line:a,geojson:ime()};if(!r)return s;var l=QG.extractTraceFeature(e);if(!l)return s;var u=rme.makeColorScaleFuncFromTrace(t),h=t.marker,v=h.line||{},m;Vc.isArrayOrTypedArray(h.opacity)&&(m=function(O){var q=O.mo;return tme(q)?+Vc.constrain(q,0,1):0});var _;Vc.isArrayOrTypedArray(v.color)&&(_=function(O){return O.mlc});var T;Vc.isArrayOrTypedArray(v.width)&&(T=function(O){return O.mlw});for(var M=0;M{"use strict";var rZ=YA().convert,ome=YA().convertOnSelect,tZ=Oc().traceLayerPrefix;function aZ(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",tZ+t+"-fill"],["line",tZ+t+"-line"]],this.below=null}var Dm=aZ.prototype;Dm.update=function(e){this._update(rZ(e)),e[0].trace._glTrace=this};Dm.updateOnSelect=function(e){this._update(ome(e))};Dm._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};Dm.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};iZ.exports=function(t,r){var i=r[0].trace,a=new aZ(t,i.uid),s=a.sourceId,l=rZ(r),u=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,u),r[0].trace._glTrace=a,a}});var sZ=de((U3e,oZ)=>{"use strict";var sme=Xi(),lme=HA(),ume=Bt().fillText,{ANTIMERIDIAN_LON_SHIFT:fme}=i3();oZ.exports=function(t,r,i){var a=t.cd,s=a[0].trace,l=t.subplot,u,h,v,m,_=[r,i];let T=[r+fme,i];for(h=0;h")}}});var uZ=de((V3e,lZ)=>{"use strict";lZ.exports=function(t,r,i,a,s){t.location=r.location,t.z=r.z;var l=a[s];return l.fIn&&l.fIn.properties&&(t.properties=l.fIn.properties),t.ct=l.ct,t}});var cZ=de((H3e,fZ)=>{"use strict";fZ.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],u,h,v,m,_;if(r===!1)for(u=0;u{"use strict";var G3e=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");hZ.exports={attributes:GA(),supplyDefaults:YG(),colorbar:ZA(),calc:KG(),plot:nZ(),hoverPoints:sZ(),eventData:uZ(),selectPoints:cZ(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var a=r[i].id;if(typeof a=="string"&&a.indexOf("water")===0){for(var s=i+1;s{"use strict";dZ.exports=vZ()});var XA=de((W3e,yZ)=>{"use strict";var hme=kc(),{hovertemplateAttrs:vme,templatefallbackAttrs:dme}=Cf(),mZ=ys(),l3=Vb(),WA=mn().extendFlat;yZ.exports=WA({lon:l3.lon,lat:l3.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:l3.text,hovertext:l3.hovertext,hoverinfo:WA({},mZ.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:vme(),hovertemplatefallback:dme(),showlegend:WA({},mZ.showlegend,{dflt:!1})},hme("",{cLetter:"z",editTypeOverride:"calc"}))});var _Z=de((X3e,gZ)=>{"use strict";var pme=Bt(),mme=bd(),yme=XA();gZ.exports=function(t,r,i,a){function s(v,m){return pme.coerce(t,r,yme,v,m)}var l=s("lon")||[],u=s("lat")||[],h=Math.min(l.length,u.length);if(!h){r.visible=!1;return}r._length=h,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),s("hovertemplatefallback"),mme(t,r,a,s,{prefix:"",cLetter:"z"})}});var wZ=de((j3e,bZ)=>{"use strict";var jA=La(),gme=Bt().isArrayOrTypedArray,JA=Zi().BADNUM,_me=tg(),xZ=Bt()._;bZ.exports=function(t,r){for(var i=r._length,a=new Array(i),s=r.z,l=gme(s)&&s.length,u=0;u{"use strict";var xme=La(),KA=Bt(),TZ=Ba(),AZ=G0(),MZ=Zi().BADNUM,bme=Hb().makeBlank;SZ.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,a={layout:{visibility:"none"},paint:{}},s=r._opts={heatmap:a,geojson:bme()};if(!i)return s;var l=[],u,h=r.z,v=r.radius,m=KA.isArrayOrTypedArray(h)&&h.length,_=KA.isArrayOrTypedArray(v);for(u=0;u0?+v[u]:0),l.push({type:"Feature",geometry:{type:"Point",coordinates:M},properties:C})}}var L=AZ.extractOpts(r),I=L.reversescale?AZ.flipScale(L.colorscale):L.colorscale,O=I[0][1],q=TZ.opacity(O)<1?O:TZ.addOpacity(O,0),z=["interpolate",["linear"],["heatmap-density"],0,q];for(u=1;u{"use strict";var CZ=kZ(),wme=Oc().traceLayerPrefix;function EZ(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",wme+t+"-heatmap"]],this.below=null}var u3=EZ.prototype;u3.update=function(e){var t=this.subplot,r=this.layerList,i=CZ(e),a=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var s=0;s=0;r--)e.removeLayer(t[r][1])};u3.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};LZ.exports=function(t,r){var i=r[0].trace,a=new EZ(t,i.uid),s=a.sourceId,l=CZ(r),u=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,u),a}});var zZ=de((Q3e,PZ)=>{"use strict";var Tme=Xi(),Ame=Xb().hoverPoints,Mme=Xb().getExtraText;PZ.exports=function(t,r,i){var a=Ame(t,r,i);if(a){var s=a[0],l=s.cd,u=l[0].trace,h=l[s.index];if(delete s.color,"z"in h){var v=s.subplot.mockAxis;s.z=h.z,s.zLabel=Tme.tickText(v,v.c2l(h.z),"hover").text}return s.extraText=Mme(u,h,l[0].t.labels),[s]}}});var RZ=de(($3e,IZ)=>{"use strict";IZ.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var qZ=de((twe,FZ)=>{"use strict";var ewe=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");FZ.exports={attributes:XA(),supplyDefaults:_Z(),colorbar:ZA(),formatLabels:xA(),calc:wZ(),plot:DZ(),hoverPoints:zZ(),eventData:RZ(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";NZ.exports=qZ()});var Vo=de((awe,UZ)=>{"use strict";var OZ=Object.getOwnPropertySymbols,Sme=Object.prototype.hasOwnProperty,kme=Object.prototype.propertyIsEnumerable;function Cme(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Eme(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(s){a[s]=s}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(s){return!1}}UZ.exports=Eme()?Object.assign:function(e,t){for(var r,i=Cme(e),a,s=1;s{var c3=Vo();function VZ(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}c3(VZ.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,a){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,a):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",a=0;r>0;){var s=r%10;i=(s===0?"":e[s]+t[a])+i,a++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function QA(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function f3(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}c3(QA.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(ka.local.differentCalendars||ka.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+f3(Math.abs(this.year()),4)+"-"+f3(this.month(),2)+"-"+f3(this.day(),2)}});function $A(){this.shortYearCutoff="+10"}c3($A.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new QA(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+f3(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),a=e.calendar().fromJD(i);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var s=e.year()+(r==="y"?t:0),l=e.monthOfYear()+(r==="m"?t:0),a=e.day(),u=function(m){for(;l_-1+m.minMonth;)s++,l-=_,_=m.monthsInYear(s)};r==="y"?(e.month()!==this.fromMonthOfYear(s,l)&&(l=this.newDate(s,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(s)),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l)))):r==="m"&&(u(this),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l))));var h=[s,this.fromMonthOfYear(s,l),a];return this._validateLevel--,h}catch(v){throw this._validateLevel--,v}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],s=r<0?-1:1;t=this._add(e,r*a[0]+s*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),a=r==="m"?t:e.month(),s=r==="d"?t:e.day();return(r==="y"||r==="m")&&(s=Math.min(s,this.daysInMonth(i,a))),e.date(i,a,s)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var a=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),v=a-(h>2.5?4716:4715);return v<=0&&v--,this.newDate(v,h,u)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),a=new Date(i.year(),i.month()-1,i.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var ka=HZ.exports=new VZ;ka.cdate=QA;ka.baseCalendar=$A;ka.calendars.gregorian=eM});var GZ=de(()=>{var tM=Vo(),mo=Ho();tM(mo.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});mo.local=mo.regionalOptions[""];tM(mo.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});tM(mo.baseCalendar.prototype,{UNIX_EPOCH:mo.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:mo.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw mo.local.invalidFormat||mo.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,s=r.monthNumbers||this.local.monthNumbers,l=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,h=r.calculateWeek||this.local.calculateWeek,v=function(z,N){for(var H=1;q+H1},m=function(z,N,H,U){var W=""+N;if(v(z,U))for(;W.length1},O=function(oe,he){var fe=I(oe,he),Te=[2,3,fe?4:2,fe?4:2,10,11,20]["oyYJ@!".indexOf(oe)+1],ke=new RegExp("^-?\\d{1,"+Te+"}"),Se=t.substring(W).match(ke);if(!Se)throw(mo.local.missingNumberAt||mo.regionalOptions[""].missingNumberAt).replace(/\{0\}/,W);return W+=Se[0].length,parseInt(Se[0],10)},q=this,z=function(){if(typeof u=="function"){I("m");var oe=u.call(q,t.substring(W));return W+=oe.length,oe}return O("m")},N=function(oe,he,fe,Te){for(var ke=I(oe,Te)?fe:he,Se=0;Se-1){T=1,M=C;for(var ie=this.daysInMonth(_,T);M>ie;ie=this.daysInMonth(_,T))T++,M-=ie}return m>-1?this.fromJD(m):this.newDate(_,T,M)},determineDate:function(e,t,r,i,a){r&&typeof r!="object"&&(a=i,i=r,r=null),typeof i!="string"&&(a=i,i="");var s=this,l=function(u){try{return s.parseDate(i,u,a)}catch(_){}u=u.toLowerCase();for(var h=(u.match(/^c/)&&r?r.newDate():null)||s.today(),v=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,m=v.exec(u);m;)h.add(parseInt(m[1],10),m[2]||"d"),m=v.exec(u);return h};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:s.today().add(e,"d"):s.newDate(e),e}})});var ZZ=de(()=>{var pv=Ho(),Lme=Vo(),rM=pv.instance();function h3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h3.prototype=new pv.baseCalendar;Lme(h3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(Pme);return r?r[0]:""}var i=this._validateYear(e),a=e.month(),s=""+this.toChineseMonth(i,a);return t&&s.length<2&&(s="0"+s),this.isIntercalaryMonth(i,a)&&(s+="i"),s},monthNames:function(e){if(typeof e=="string"){var t=e.match(zme);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(Ime);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var a=t[t.length-1];i=a==="i"||a==="I"}var s=this.toMonthIndex(e,r,i);return s},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),a=r&&t!==i;if(a||t<1||t>12)throw pv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s;return i?!r&&t<=i?s=t-1:s=t:s=t-1,s},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw pv.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,pv.local.invalidyear),a=yv[i-yv[0]],s=a>>9&4095,l=a>>5&15,u=a&31,h;h=rM.newDate(s,l,u),h.add(4-(h.dayOfWeek()||7),"d");var v=this.toJD(e,t,r)-h.toJD();return 1+Math.floor(v/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=mv[e-mv[0]],i=r>>13,a=i?12:11;if(t>a)throw pv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s=r&1<<12-t?30:29;return s},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,s,r,pv.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var a=this.isIntercalaryMonth(e,t),s=this.toChineseMonth(e,t),l=Fme(e,s,r,a);return rM.toJD(l.year,l.month,l.day)},fromJD:function(e){var t=rM.fromJD(e),r=Rme(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(Dme),r=this._validateYear(+t[1]),i=+t[2],a=!!t[3],s=this.toMonthIndex(r,i,a),l=+t[4];return this.newDate(r,s,l)},add:function(e,t,r){var i=e.year(),a=e.month(),s=this.isIntercalaryMonth(i,a),l=this.toChineseMonth(i,a),u=Object.getPrototypeOf(h3.prototype).add.call(this,e,t,r);if(r==="y"){var h=u.year(),v=u.month(),m=this.isIntercalaryMonth(h,l),_=s&&m?this.toMonthIndex(h,l,!0):this.toMonthIndex(h,l,!1);_!==v&&u.month(_)}return u}});var Dme=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Pme=/^\d?\d[iI]?/m,zme=/^闰?十?[一二三四五六七八九]?月/m,Ime=/^闰?十?[一二三四五六七八九]?/m;pv.calendars.chinese=h3;var mv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],yv=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Rme(e,t,r,i){var a,s;if(typeof e=="object")a=e,s=t||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var u=typeof t=="number"&&t>=1&&t<=12;if(!u)throw new Error("Solar month outside range 1 - 12");var h=typeof r=="number"&&r>=1&&r<=31;if(!h)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},s=i||{}}var v=yv[a.year-yv[0]],m=a.year<<9|a.month<<5|a.day;s.year=m>=v?a.year:a.year-1,v=yv[s.year-yv[0]];var _=v>>9&4095,T=v>>5&15,M=v&31,C,E=new Date(_,T-1,M),L=new Date(a.year,a.month-1,a.day);C=Math.round((L-E)/(24*3600*1e3));var I=mv[s.year-mv[0]],O;for(O=0;O<13;O++){var q=I&1<<12-O?30:29;if(C>13;return!z||O=1888&&e<=2111;if(!u)throw new Error("Lunar year outside range 1888-2111");var h=typeof t=="number"&&t>=1&&t<=12;if(!h)throw new Error("Lunar month outside range 1 - 12");var v=typeof r=="number"&&r>=1&&r<=30;if(!v)throw new Error("Lunar day outside range 1 - 30");var m;typeof i=="object"?(m=!1,s=i):(m=!!i,s=a||{}),l={year:e,month:t,day:r,isIntercalary:m}}var _;_=l.day-1;var T=mv[l.year-mv[0]],M=T>>13,C;M&&(l.month>M||l.isIntercalary)?C=l.month:C=l.month-1;for(var E=0;E>9&4095,q=I>>5&15,z=I&31,N=new Date(O,q-1,z+_);return s.year=N.getFullYear(),s.month=1+N.getMonth(),s.day=N.getDate(),s}});var YZ=de(()=>{var ip=Ho(),qme=Vo();function aM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}aM.prototype=new ip.baseCalendar;qme(aM.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,ip.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ip.local.invalidYear||ip.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,ip.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,ip.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});ip.calendars.coptic=aM});var WZ=de(()=>{var Hc=Ho(),Nme=Vo();function iM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}iM.prototype=new Hc.baseCalendar;Nme(iM.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hc.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Hc.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Hc.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Hc.local.invalidDate);return{century:Bme[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,Hc.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var Bme={20:"Fruitbat",21:"Anchovy"};Hc.calendars.discworld=iM});var XZ=de(()=>{var np=Ho(),Ome=Vo();function nM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}nM.prototype=new np.baseCalendar;Ome(nM.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,np.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,np.local.invalidYear||np.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,np.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,np.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});np.calendars.ethiopian=nM});var jZ=de(()=>{var gv=Ho(),Ume=Vo();function oM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}oM.prototype=new gv.baseCalendar;Ume(oM.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,gv.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,v3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,gv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,gv.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,gv.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&v3(this.daysInYear(e),10)===5?30:t===9&&v3(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,gv.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,gv.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=e<=0?e+1:e,s=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)s+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function v3(e,t){return e-t*Math.floor(e/t)}gv.calendars.hebrew=oM});var JZ=de(()=>{var S1=Ho(),Vme=Vo();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new S1.baseCalendar;Vme(sM.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,S1.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,S1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,S1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});S1.calendars.islamic=sM});var KZ=de(()=>{var k1=Ho(),Hme=Vo();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new k1.baseCalendar;Hme(lM.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,k1.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,k1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,k1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),a=Math.floor(365.25*i),s=Math.floor((r-a)/30.6001),l=s-Math.floor(s<14?1:13),u=i-Math.floor(l>2?4716:4715),h=r-a-Math.floor(30.6001*s);return u<=0&&u--,this.newDate(u,l,h)}});k1.calendars.julian=lM});var $Z=de(()=>{var vu=Ho(),Gme=Vo();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new vu.baseCalendar;Gme(fM.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,vu.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,vu.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vu.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,vu.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vu.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,vu.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,vu.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,vu.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,vu.local.invalidDate),a=i.toJD(),s=this._toHaab(a),l=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[s[0]-1],haabMonth:s[0],haabDay:s[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=uM(e+8+340,365);return[Math.floor(t/20)+1,uM(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[QZ(e+20,20),QZ(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,vu.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function uM(e,t){return e-t*Math.floor(e/t)}function QZ(e,t){return uM(e-1,t)+1}vu.calendars.mayan=fM});var tY=de(()=>{var op=Ho(),Zme=Vo();function cM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cM.prototype=new op.baseCalendar;var eY=op.instance("gregorian");Zme(cM.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,op.local.invalidYear||op.regionalOptions[""].invalidYear);return eY.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,op.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,op.local.invalidMonth),a=i.year();a<0&&a++;for(var s=i.day(),l=1;l=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});op.calendars.nanakshahi=cM});var rY=de(()=>{var sp=Ho(),Yme=Vo();function hM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hM.prototype=new sp.baseCalendar;Yme(hM.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,sp.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,sp.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,sp.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=sp.instance(),s=0,l=t,u=e;this._createMissingCalendarData(e);var h=e-(l>9||l===9&&r>=this.NEPALI_CALENDAR_DATA[u][0]?56:57);for(t!==9&&(s=r,l--);l!==9;)l<=0&&(l=12,u--),s+=this.NEPALI_CALENDAR_DATA[u][l],l--;return t===9?(s+=r-this.NEPALI_CALENDAR_DATA[u][0],s<0&&(s+=a.daysInYear(h))):s+=this.NEPALI_CALENDAR_DATA[u][9]-this.NEPALI_CALENDAR_DATA[u][0],a.newDate(h,1,1).add(s,"d").toJD()},fromJD:function(e){var t=sp.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),s=i+56;this._createMissingCalendarData(s);for(var l=9,u=this.NEPALI_CALENDAR_DATA[s][0],h=this.NEPALI_CALENDAR_DATA[s][l]-u+1;a>h;)l++,l>12&&(l=1,s++),h+=this.NEPALI_CALENDAR_DATA[s][l];var v=this.NEPALI_CALENDAR_DATA[s][l]-(h-a);return this.newDate(s,l,v)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Pm=Ho(),Wme=Vo();function p3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function d3(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,a=r*(t+1),s=i-Math.floor(i),l=a-Math.floor(a);return s>l}p3.prototype=new Pm.baseCalendar;Wme(p3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Pm.local.invalidYear);return d3(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Pm.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Pm.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=0;if(e>0)for(var s=1;s0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,d3(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,a=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),s=e-this.toJD(r,a,1)+1;return this.newDate(r,a,s)}});Pm.calendars.persian=p3;Pm.calendars.jalali=p3});var iY=de(()=>{var lp=Ho(),Xme=Vo(),m3=lp.instance();function vM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vM.prototype=new lp.baseCalendar;Xme(vM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,lp.local.invalidYear),r=this._t2gYear(t.year());return m3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,lp.local.invalidYear),a=this._t2gYear(i.year());return m3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,lp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,lp.local.invalidDate),a=this._t2gYear(i.year());return m3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=m3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});lp.calendars.taiwan=vM});var nY=de(()=>{var up=Ho(),jme=Vo(),y3=up.instance();function dM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dM.prototype=new up.baseCalendar;jme(dM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,up.local.invalidYear),r=this._t2gYear(t.year());return y3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,up.local.invalidYear),a=this._t2gYear(i.year());return y3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,up.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,up.local.invalidDate),a=this._t2gYear(i.year());return y3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=y3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});up.calendars.thai=dM});var oY=de(()=>{var fp=Ho(),Jme=Vo();function pM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pM.prototype=new fp.baseCalendar;Jme(pM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fp.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,fp.local.invalidMonth),i=r.toJD()-24e5+.5,a=0,s=0;s<_v.length;s++){if(_v[s]>i)return _v[a]-_v[a-1];a++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,fp.local.invalidDate),a=12*(i.year()-1)+i.month()-15292,s=i.day()+_v[a-1]-1;return s+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;i<_v.length&&!(_v[i]>t);i++)r++;var a=r+15292,s=Math.floor((a-1)/12),l=s+1,u=a-12*s,h=t-_v[r-1]+1;return this.newDate(l,u,h)},isValid:function(e,t,r){var i=fp.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var a=fp.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});fp.calendars.ummalqura=pM;var _v=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var lY=de((Rwe,sY)=>{"use strict";sY.exports=Ho();GZ();ZZ();YZ();WZ();XZ();jZ();JZ();KZ();$Z();tY();rY();aY();iY();nY();oY()});var pY=de((Fwe,dY)=>{"use strict";var fY=lY(),C1=Bt(),cY=Zi(),Kme=cY.EPOCHJD,Qme=cY.ONEDAY,gM={valType:"enumerated",values:C1.sortObjectKeys(fY.calendars),editType:"calc",dflt:"gregorian"},hY=function(e,t,r,i){var a={};return a[r]=gM,C1.coerce(e,t,a,r,i)},$me=function(e,t,r,i){for(var a=0;a{"use strict";mY.exports=pY()});var nye=de((Nwe,_Y)=>{var gY=ZV();gY.register([OG(),pZ(),BZ(),yY()]);_Y.exports=gY});return nye();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-strict.js b/dist/plotly-strict.js index b1eff0433a6..b8cd9e7bd30 100644 --- a/dist/plotly-strict.js +++ b/dist/plotly-strict.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict) v3.6.0 +* plotly.js (strict) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -49,11 +49,20 @@ var Plotly = (() => { } return target; }; - var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + var __esm = (fn, res, err) => function __init() { + if (err) throw err[0]; + try { + return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + } catch (e) { + throw err = [e], e; + } }; var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; var __export = (target, all) => { for (var name2 in all) @@ -81,7 +90,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -117,7 +126,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -144,7 +153,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8170,7 +8179,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8410,7 +8419,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8527,7 +8536,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8572,7 +8581,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9975,7 +9984,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9994,7 +10003,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color2) { return !!matchers.CSS_UNIT.exec(color2); } @@ -13817,9 +13826,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -16072,6 +16081,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -17784,6 +17804,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -17912,24 +17933,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -32829,7 +32857,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -34631,6 +34669,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -36846,6 +36890,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -36855,6 +36933,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -36885,26 +36964,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.disk, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.pencil, - click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -38043,8 +38126,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -46072,6 +46161,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -47083,19 +47173,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); @@ -73655,7 +73744,7 @@ var Plotly = (() => { function numberIsNaN(obj) { return obj !== obj; } - var hexSliceLookupTable = function() { + var hexSliceLookupTable = (function() { const alphabet = "0123456789abcdef"; const table = new Array(256); for (let i = 0; i < 16; ++i) { @@ -73665,7 +73754,7 @@ var Plotly = (() => { } } return table; - }(); + })(); function defineBigIntMethod(fn) { return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn; } @@ -73687,7 +73776,7 @@ var Plotly = (() => { return true; } var obj = {}; - var sym = Symbol("test"); + var sym = /* @__PURE__ */ Symbol("test"); var symObj = Object(sym); if (typeof sym === "string") { return false; @@ -73933,7 +74022,7 @@ var Plotly = (() => { if (typeof origSymbol("foo") !== "symbol") { return false; } - if (typeof Symbol("bar") !== "symbol") { + if (typeof /* @__PURE__ */ Symbol("bar") !== "symbol") { return false; } return hasSymbolSham(); @@ -74190,7 +74279,7 @@ var Plotly = (() => { var throwTypeError = function() { throw new $TypeError(); }; - var ThrowTypeError = $gOPD ? function() { + var ThrowTypeError = $gOPD ? (function() { try { arguments.callee; return throwTypeError; @@ -74201,7 +74290,7 @@ var Plotly = (() => { return throwTypeError; } } - }() : throwTypeError; + })() : throwTypeError; var hasSymbols = require_has_symbols()(); var getProto = require_get_proto(); var $ObjectGPO = require_Object_getPrototypeOf(); @@ -74683,9 +74772,9 @@ var Plotly = (() => { } return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]"; }; - var supportsStandardArguments = function() { + var supportsStandardArguments = (function() { return isStandardArguments(arguments); - }(); + })(); isStandardArguments.isLegacyArguments = isLegacyArguments; module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments; } @@ -75812,7 +75901,7 @@ var Plotly = (() => { function hasOwnProperty2(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } - var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0; + var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0; exports.promisify = function promisify(original) { if (typeof original !== "function") throw new TypeError('The "original" argument must be of type Function'); @@ -75978,7 +76067,7 @@ var Plotly = (() => { function copyBuffer(src, target, offset) { Buffer2.prototype.copy.call(src, target, offset); } - module.exports = /* @__PURE__ */ function() { + module.exports = /* @__PURE__ */ (function() { function BufferList() { _classCallCheck(this, BufferList); this.head = null; @@ -76142,7 +76231,7 @@ var Plotly = (() => { } }]); return BufferList; - }(); + })(); } }); @@ -76256,13 +76345,13 @@ var Plotly = (() => { return message(arg1, arg2, arg3); } } - var NodeError = /* @__PURE__ */ function(_Base) { + var NodeError = /* @__PURE__ */ (function(_Base) { _inheritsLoose(NodeError2, _Base); function NodeError2(arg1, arg2, arg3) { return _Base.call(this, getMessage(arg1, arg2, arg3)) || this; } return NodeError2; - }(Base); + })(Base); NodeError.prototype.name = Base.name; NodeError.prototype.code = code; codes[code] = NodeError; @@ -77371,13 +77460,13 @@ var Plotly = (() => { return obj; } var finished = require_end_of_stream(); - var kLastResolve = Symbol("lastResolve"); - var kLastReject = Symbol("lastReject"); - var kError = Symbol("error"); - var kEnded = Symbol("ended"); - var kLastPromise = Symbol("lastPromise"); - var kHandlePromise = Symbol("handlePromise"); - var kStream = Symbol("stream"); + var kLastResolve = /* @__PURE__ */ Symbol("lastResolve"); + var kLastReject = /* @__PURE__ */ Symbol("lastReject"); + var kError = /* @__PURE__ */ Symbol("error"); + var kEnded = /* @__PURE__ */ Symbol("ended"); + var kLastPromise = /* @__PURE__ */ Symbol("lastPromise"); + var kHandlePromise = /* @__PURE__ */ Symbol("handlePromise"); + var kStream = /* @__PURE__ */ Symbol("stream"); function createIterResult(value, done) { return { value, @@ -78149,11 +78238,11 @@ var Plotly = (() => { }); for (var i in stream) { if (this[i] === void 0 && typeof stream[i] === "function") { - this[i] = /* @__PURE__ */ function methodWrap(method) { + this[i] = /* @__PURE__ */ (function methodWrap(method) { return function methodWrapReturnFunction() { return stream[method].apply(stream, arguments); }; - }(i); + })(i); } } for (var n = 0; n < kProxyEvents.length; n++) { @@ -79011,7 +79100,7 @@ var Plotly = (() => { function hasOwnProperty2(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } - var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0; + var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0; exports.promisify = function promisify(original) { if (typeof original !== "function") throw new TypeError('The "original" argument must be of type Function'); @@ -79230,7 +79319,7 @@ var Plotly = (() => { return message(arg1, arg2, arg3); } } - var NodeError = /* @__PURE__ */ function(_Base) { + var NodeError = /* @__PURE__ */ (function(_Base) { _inherits(NodeError2, _Base); var _super = _createSuper(NodeError2); function NodeError2(arg1, arg2, arg3) { @@ -79241,7 +79330,7 @@ var Plotly = (() => { return _this; } return _createClass(NodeError2); - }(Base); + })(Base); codes[code] = NodeError; } function oneOf(expected, thing) { @@ -79733,7 +79822,7 @@ var Plotly = (() => { } return "".concat(msg).concat(skipped ? skippedMsg : "", "\n").concat(res).concat(other).concat(end).concat(indicator); } - var AssertionError = /* @__PURE__ */ function(_Error, _inspect$custom) { + var AssertionError = /* @__PURE__ */ (function(_Error, _inspect$custom) { _inherits(AssertionError2, _Error); var _super = _createSuper(AssertionError2); function AssertionError2(options) { @@ -79845,7 +79934,7 @@ var Plotly = (() => { } }]); return AssertionError2; - }(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); + })(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); module.exports = AssertionError; } }); @@ -79917,7 +80006,7 @@ var Plotly = (() => { $webkitStorageInfo: true, $window: true }; - hasAutomationEqualityBug = function() { + hasAutomationEqualityBug = (function() { if (typeof window === "undefined") { return false; } @@ -79935,7 +80024,7 @@ var Plotly = (() => { } } return false; - }(); + })(); equalsConstructorPrototypeIfNotBuggy = function(o) { if (typeof window === "undefined" || !hasAutomationEqualityBug) { return equalsConstructorPrototype(o); @@ -80011,10 +80100,10 @@ var Plotly = (() => { var originalKeys = Object.keys; keysShim.shim = function shimObjectKeys() { if (Object.keys) { - var keysWorksWithArguments = function() { + var keysWorksWithArguments = (function() { var args = Object.keys(arguments); return args && args.length === arguments.length; - }(1, 2); + })(1, 2); if (!keysWorksWithArguments) { Object.keys = function keys(object) { if (isArgs(object)) { @@ -80164,7 +80253,7 @@ var Plotly = (() => { "node_modules/define-properties/index.js"(exports, module) { "use strict"; var keys = require_object_keys(); - var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol"; + var hasSymbols = typeof Symbol === "function" && typeof /* @__PURE__ */ Symbol("foo") === "symbol"; var toStr = Object.prototype.toString; var concat = Array.prototype.concat; var origDefineProperty = Object.defineProperty; @@ -85707,7 +85796,7 @@ var Plotly = (() => { } return rows; } - var squarify = function custom(ratio) { + var squarify = (function custom(ratio) { function squarify2(parent, x0, y0, x1, y1) { squarifyRatio(ratio, parent, x0, y0, x1, y1); } @@ -85715,7 +85804,7 @@ var Plotly = (() => { return custom((x = +x) > 1 ? x : 1); }; return squarify2; - }(phi); + })(phi); function index$1() { var tile = squarify, round = false, dx = 1, dy = 1, paddingStack = [0], paddingInner = constantZero, paddingTop = constantZero, paddingRight = constantZero, paddingBottom = constantZero, paddingLeft = constantZero; function treemap(root) { @@ -85813,7 +85902,7 @@ var Plotly = (() => { function sliceDice(parent, x0, y0, x1, y1) { (parent.depth & 1 ? treemapSlice : treemapDice)(parent, x0, y0, x1, y1); } - var resquarify = function custom(ratio) { + var resquarify = (function custom(ratio) { function resquarify2(parent, x0, y0, x1, y1) { if ((rows = parent._squarify) && rows.ratio === ratio) { var rows, row, nodes, i, j = -1, n, m = rows.length, value = parent.value; @@ -85833,7 +85922,7 @@ var Plotly = (() => { return custom((x = +x) > 1 ? x : 1); }; return resquarify2; - }(phi); + })(phi); exports2.cluster = cluster; exports2.hierarchy = hierarchy; exports2.pack = index; @@ -86751,7 +86840,7 @@ var Plotly = (() => { init_basis(); init_basisClosed(); init_color2(); - rgb_default = function rgbGamma(y) { + rgb_default = (function rgbGamma(y) { var color2 = gamma(y); function rgb2(start, end) { var r = color2((start = rgb(start)).r, (end = rgb(end)).r), g = color2(start.g, end.g), b = color2(start.b, end.b), opacity = nogamma(start.opacity, end.opacity); @@ -86765,7 +86854,7 @@ var Plotly = (() => { } rgb2.gamma = rgbGamma; return rgb2; - }(1); + })(1); rgbBasis = rgbSpline(basis_default); rgbBasisClosed = rgbSpline(basisClosed_default); } @@ -87085,7 +87174,7 @@ var Plotly = (() => { var init_zoom = __esm({ "node_modules/d3-interpolate/src/zoom.js"() { epsilon2 = 1e-12; - zoom_default = function zoomRho(rho, rho2, rho4) { + zoom_default = (function zoomRho(rho, rho2, rho4) { function zoom(p0, p1) { var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S; if (d2 < epsilon2) { @@ -87117,7 +87206,7 @@ var Plotly = (() => { return zoomRho(_1, _2, _4); }; return zoom; - }(Math.SQRT2, 2, 4); + })(Math.SQRT2, 2, 4); } }); @@ -87187,7 +87276,7 @@ var Plotly = (() => { // node_modules/d3-interpolate/src/cubehelix.js function cubehelix2(hue2) { - return function cubehelixGamma(y) { + return (function cubehelixGamma(y) { y = +y; function cubehelix3(start, end) { var h = hue2((start = cubehelix(start)).h, (end = cubehelix(end)).h), s = nogamma(start.s, end.s), l = nogamma(start.l, end.l), opacity = nogamma(start.opacity, end.opacity); @@ -87201,7 +87290,7 @@ var Plotly = (() => { } cubehelix3.gamma = cubehelixGamma; return cubehelix3; - }(1); + })(1); } var cubehelix_default, cubehelixLong; var init_cubehelix2 = __esm({ @@ -90647,7 +90736,7 @@ var Plotly = (() => { /***/ 1964: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { alpha_shape: __webpack_require__2(3502), convex_hull: __webpack_require__2(7352), @@ -90663,12 +90752,12 @@ var Plotly = (() => { ndarray: __webpack_require__2(9618), ndarray_linear_interpolate: __webpack_require__2(4317) }; - } + }) ), /***/ 4793: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var __webpack_unused_export__; function _typeof(o) { @@ -91989,7 +92078,7 @@ var Plotly = (() => { function numberIsNaN(obj) { return obj !== obj; } - var hexSliceLookupTable = function() { + var hexSliceLookupTable = (function() { var alphabet = "0123456789abcdef"; var table = new Array(256); for (var i = 0; i < 16; ++i) { @@ -91999,13 +92088,13 @@ var Plotly = (() => { } } return table; - }(); - } + })(); + }) ), /***/ 9216: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = isMobile; module2.exports.isMobile = isMobile; @@ -92027,12 +92116,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 6296: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createViewController; var createTurntable = __webpack_require__2(7261); @@ -92169,12 +92258,12 @@ var Plotly = (() => { matrix }, mode); } - } + }) ), /***/ 7169: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var weakMap = typeof WeakMap === "undefined" ? __webpack_require__2(1538) : WeakMap; var createBuffer = __webpack_require__2(2762); @@ -92200,12 +92289,12 @@ var Plotly = (() => { triangleVAO.unbind(); } module2.exports = createABigTriangle; - } + }) ), /***/ 1085: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var padLeft = __webpack_require__2(1371); module2.exports = addLineNumbers; function addLineNumbers(string, start, delim) { @@ -92220,12 +92309,12 @@ var Plotly = (() => { return prefix + delim + line; }).join("\n"); } - } + }) ), /***/ 3952: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = affineHull; var orient = __webpack_require__2(3250); @@ -92273,12 +92362,12 @@ var Plotly = (() => { } return index; } - } + }) ), /***/ 5995: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = alphaComplex; var delaunay = __webpack_require__2(7642); @@ -92292,33 +92381,33 @@ var Plotly = (() => { return circumradius(simplex) * alpha < 1; }); } - } + }) ), /***/ 3502: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = alphaShape; var ac = __webpack_require__2(5995); var bnd = __webpack_require__2(9127); function alphaShape(alpha, points) { return bnd(ac(alpha, points)); } - } + }) ), /***/ 6468: ( /***/ - function(module2) { + (function(module2) { module2.exports = function _atob(str) { return atob(str); }; - } + }) ), /***/ 2642: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = barycentric; var solve = __webpack_require__2(727); @@ -92359,12 +92448,12 @@ var Plotly = (() => { } return y; } - } + }) ), /***/ 7507: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.byteLength = byteLength; exports2.toByteArray = toByteArray; @@ -92458,12 +92547,12 @@ var Plotly = (() => { } return parts.join(""); } - } + }) ), /***/ 3865: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = add; @@ -92473,35 +92562,35 @@ var Plotly = (() => { a[1].mul(b[1]) ); } - } + }) ), /***/ 1318: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = cmp; function cmp(a, b) { return a[0].mul(b[1]).cmp(b[0].mul(a[1])); } - } + }) ), /***/ 8697: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = div; function div(a, b) { return rationalize(a[0].mul(b[1]), a[1].mul(b[0])); } - } + }) ), /***/ 7842: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isRat = __webpack_require__2(6330); var isBN = __webpack_require__2(1533); @@ -92559,36 +92648,36 @@ var Plotly = (() => { } return rationalize(a, b); } - } + }) ), /***/ 6330: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isBN = __webpack_require__2(1533); module2.exports = isRat; function isRat(x) { return Array.isArray(x) && x.length === 2 && isBN(x[0]) && isBN(x[1]); } - } + }) ), /***/ 5716: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = sign; function sign(x) { return x.cmp(new BN(0)); } - } + }) ), /***/ 1369: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var sign = __webpack_require__2(5716); module2.exports = bn2num; @@ -92608,12 +92697,12 @@ var Plotly = (() => { } return sign(b) * out; } - } + }) ), /***/ 4025: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var db = __webpack_require__2(2361); var ctz = __webpack_require__2(8828).countTrailingZeros; @@ -92629,24 +92718,24 @@ var Plotly = (() => { } return h + 32; } - } + }) ), /***/ 1533: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = isBN; function isBN(x) { return x && typeof x === "object" && Boolean(x.words); } - } + }) ), /***/ 2651: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); var db = __webpack_require__2(2361); @@ -92659,12 +92748,12 @@ var Plotly = (() => { return new BN(x * Math.pow(2, 52 - e)).ushln(e - 52); } } - } + }) ), /***/ 869: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var num2bn = __webpack_require__2(2651); var sign = __webpack_require__2(5716); @@ -92688,60 +92777,60 @@ var Plotly = (() => { } return [numer, denom]; } - } + }) ), /***/ 6768: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = str2BN; function str2BN(x) { return new BN(x); } - } + }) ), /***/ 6504: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = mul; function mul(a, b) { return rationalize(a[0].mul(b[0]), a[1].mul(b[1])); } - } + }) ), /***/ 7721: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnsign = __webpack_require__2(5716); module2.exports = sign; function sign(x) { return bnsign(x[0]) * bnsign(x[1]); } - } + }) ), /***/ 5572: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = sub; function sub(a, b) { return rationalize(a[0].mul(b[1]).sub(a[1].mul(b[0])), a[1].mul(b[1])); } - } + }) ), /***/ 946: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bn2num = __webpack_require__2(1369); var ctz = __webpack_require__2(4025); @@ -92774,12 +92863,12 @@ var Plotly = (() => { return sgn * y * Math.pow(2, 1023 - ybits); } } - } + }) ), /***/ 2478: ( /***/ - function(module2) { + (function(module2) { "use strict"; function ge(a, y, c, l, h) { var i = h + 1; @@ -92880,12 +92969,12 @@ var Plotly = (() => { return norm(a, y, c, l, h, eq); } }; - } + }) ), /***/ 8828: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; "use restrict"; var INT_BITS = 32; @@ -93035,12 +93124,12 @@ var Plotly = (() => { var t = v | v - 1; return t + 1 | (~t & -~t) - 1 >>> countTrailingZeros(v) + 1; }; - } + }) ), /***/ 6859: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2 = __webpack_require__2.nmd(module2); (function(module3, exports2) { "use strict"; @@ -95847,12 +95936,12 @@ var Plotly = (() => { return res._forceRed(this); }; })(module2, this); - } + }) ), /***/ 6204: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = boundary; function boundary(cells) { @@ -95885,12 +95974,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 6867: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boxIntersectWrapper; var pool = __webpack_require__2(1888); @@ -96019,12 +96108,12 @@ var Plotly = (() => { throw new Error("box-intersect: Invalid arguments"); } } - } + }) ), /***/ 2455: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; function full() { function bruteForceRedFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) { @@ -96155,12 +96244,12 @@ var Plotly = (() => { } exports2.partial = bruteForcePlanner(false); exports2.full = bruteForcePlanner(true); - } + }) ), /***/ 7150: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boxIntersectIter; var pool = __webpack_require__2(1888); @@ -96770,12 +96859,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 3545: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = findMedian; var genPartition = __webpack_require__2(8105); @@ -96900,12 +96989,12 @@ var Plotly = (() => { boxes[elemSize * mid + axis] ); } - } + }) ), /***/ 8105: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = genPartition; var P2F = { @@ -97025,12 +97114,12 @@ var Plotly = (() => { } return m; } - } + }) ), /***/ 4192: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = wrapper; var INSERT_SORT_CUTOFF = 32; @@ -97236,12 +97325,12 @@ var Plotly = (() => { quickSort(less, great, data); } } - } + }) ), /***/ 855: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = { init: sqInit, @@ -97580,12 +97669,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 2538: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var monotoneTriangulate = __webpack_require__2(8902); var makeIndex = __webpack_require__2(5542); @@ -97645,12 +97734,12 @@ var Plotly = (() => { return cells; } } - } + }) ), /***/ 2272: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var inCircle = __webpack_require__2(2646)[4]; var bsearch = __webpack_require__2(2478); @@ -97731,12 +97820,12 @@ var Plotly = (() => { testFlip(points, triangulation, stack, b, x, y); } } - } + }) ), /***/ 5023: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); module2.exports = classifyFaces; @@ -97753,7 +97842,7 @@ var Plotly = (() => { function compareCell(a, b) { return a[0] - b[0] || a[1] - b[1] || a[2] - b[2]; } - proto.locate = /* @__PURE__ */ function() { + proto.locate = /* @__PURE__ */ (function() { var key = [0, 0, 0]; return function(a, b, c) { var x = a, y = b, z = c; @@ -97776,7 +97865,7 @@ var Plotly = (() => { key[2] = z; return bsearch.eq(this.cells, key, compareCell); }; - }(); + })(); function indexCells(triangulation, infinity) { var cells = triangulation.cells(); var nc = cells.length; @@ -97896,12 +97985,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 8902: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); var orient = __webpack_require__2(3250)[3]; @@ -98065,12 +98154,12 @@ var Plotly = (() => { } return cells; } - } + }) ), /***/ 5542: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); module2.exports = createTriangulation; @@ -98089,7 +98178,7 @@ var Plotly = (() => { } } } - proto.isConstraint = /* @__PURE__ */ function() { + proto.isConstraint = /* @__PURE__ */ (function() { var e = [0, 0]; function compareLex(a, b) { return a[0] - b[0] || a[1] - b[1]; @@ -98099,7 +98188,7 @@ var Plotly = (() => { e[1] = Math.max(i, j); return bsearch.eq(this.edges, e, compareLex) >= 0; }; - }(); + })(); proto.removeTriangle = function(i, j, k) { var stars = this.stars; removePair(stars[i], j, k); @@ -98162,12 +98251,12 @@ var Plotly = (() => { } return new Triangulation(stars, edges); } - } + }) ), /***/ 2419: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = orientation; function orientation(s) { @@ -98183,12 +98272,12 @@ var Plotly = (() => { } return p; } - } + }) ), /***/ 3628: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var dup = __webpack_require__2(1338); var solve = __webpack_require__2(727); @@ -98248,12 +98337,12 @@ var Plotly = (() => { } circumcenter.barycenetric = barycentricCircumcenter; module2.exports = circumcenter; - } + }) ), /***/ 6037: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = circumradius; var circumcenter = __webpack_require__2(3628); function circumradius(points) { @@ -98267,12 +98356,12 @@ var Plotly = (() => { } return Math.sqrt(avgDist / points.length); } - } + }) ), /***/ 332: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = cleanPSLG; var UnionFind = __webpack_require__2(1755); @@ -98573,12 +98662,12 @@ var Plotly = (() => { } return modified; } - } + }) ), /***/ 3637: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = solveIntersection; var ratMul = __webpack_require__2(6504); @@ -98605,12 +98694,12 @@ var Plotly = (() => { var r = rvAdd(a, s); return r; } - } + }) ), /***/ 3642: ( /***/ - function(module2) { + (function(module2) { module2.exports = { "jet": [{ "index": 0, "rgb": [0, 0, 131] }, { "index": 0.125, "rgb": [0, 60, 170] }, { "index": 0.375, "rgb": [5, 255, 255] }, { "index": 0.625, "rgb": [255, 255, 0] }, { "index": 0.875, "rgb": [250, 0, 0] }, { "index": 1, "rgb": [128, 0, 0] }], "hsv": [{ "index": 0, "rgb": [255, 0, 0] }, { "index": 0.169, "rgb": [253, 255, 2] }, { "index": 0.173, "rgb": [247, 255, 2] }, { "index": 0.337, "rgb": [0, 252, 4] }, { "index": 0.341, "rgb": [0, 252, 10] }, { "index": 0.506, "rgb": [1, 249, 255] }, { "index": 0.671, "rgb": [2, 0, 253] }, { "index": 0.675, "rgb": [8, 0, 253] }, { "index": 0.839, "rgb": [255, 0, 251] }, { "index": 0.843, "rgb": [255, 0, 245] }, { "index": 1, "rgb": [255, 0, 6] }], @@ -98657,12 +98746,12 @@ var Plotly = (() => { "velocity-green": [{ "index": 0, "rgb": [23, 35, 19] }, { "index": 0.13, "rgb": [24, 64, 38] }, { "index": 0.25, "rgb": [11, 95, 45] }, { "index": 0.38, "rgb": [39, 123, 35] }, { "index": 0.5, "rgb": [95, 146, 12] }, { "index": 0.63, "rgb": [152, 165, 18] }, { "index": 0.75, "rgb": [201, 186, 69] }, { "index": 0.88, "rgb": [233, 216, 137] }, { "index": 1, "rgb": [255, 253, 205] }], "cubehelix": [{ "index": 0, "rgb": [0, 0, 0] }, { "index": 0.07, "rgb": [22, 5, 59] }, { "index": 0.13, "rgb": [60, 4, 105] }, { "index": 0.2, "rgb": [109, 1, 135] }, { "index": 0.27, "rgb": [161, 0, 147] }, { "index": 0.33, "rgb": [210, 2, 142] }, { "index": 0.4, "rgb": [251, 11, 123] }, { "index": 0.47, "rgb": [255, 29, 97] }, { "index": 0.53, "rgb": [255, 54, 69] }, { "index": 0.6, "rgb": [255, 85, 46] }, { "index": 0.67, "rgb": [255, 120, 34] }, { "index": 0.73, "rgb": [255, 157, 37] }, { "index": 0.8, "rgb": [241, 191, 57] }, { "index": 0.87, "rgb": [224, 220, 93] }, { "index": 0.93, "rgb": [218, 241, 142] }, { "index": 1, "rgb": [227, 253, 198] }] }; - } + }) ), /***/ 6729: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var colorScale = __webpack_require__2(3642); var lerp = __webpack_require__2(395); @@ -98757,12 +98846,12 @@ var Plotly = (() => { function rgbaStr(rgba3) { return "rgba(" + rgba3.join(",") + ")"; } - } + }) ), /***/ 3140: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = compareAngle; var orient = __webpack_require__2(3250); @@ -98842,12 +98931,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 8572: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function signum(x) { if (x < 0) { @@ -98858,12 +98947,12 @@ var Plotly = (() => { } return 0; }; - } + }) ), /***/ 8507: ( /***/ - function(module2) { + (function(module2) { module2.exports = compareCells; var min = Math.min; function compareInt(a, b) { @@ -98904,12 +98993,12 @@ var Plotly = (() => { return 0; } } - } + }) ), /***/ 3788: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compareCells = __webpack_require__2(8507); var parity = __webpack_require__2(2419); @@ -98917,12 +99006,12 @@ var Plotly = (() => { function compareOrientedCells(a, b) { return compareCells(a, b) || parity(a) - parity(b); } - } + }) ), /***/ 7352: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var convexHull1d = __webpack_require__2(5721); var convexHull2d = __webpack_require__2(4750); @@ -98945,12 +99034,12 @@ var Plotly = (() => { } return convexHullnd(points, d); } - } + }) ), /***/ 5721: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = convexHull1d; function convexHull1d(points) { @@ -98972,12 +99061,12 @@ var Plotly = (() => { return [[lo]]; } } - } + }) ), /***/ 4750: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = convexHull2D; var monotoneHull = __webpack_require__2(3090); @@ -98996,12 +99085,12 @@ var Plotly = (() => { } return edges; } - } + }) ), /***/ 2690: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = convexHullnD; var ich = __webpack_require__2(8954); @@ -99055,12 +99144,12 @@ var Plotly = (() => { return invPermute(nhull, ah); } } - } + }) ), /***/ 4769: ( /***/ - function(module2) { + (function(module2) { "use strict"; function dcubicHermite(p0, v0, p1, v1, t, f) { var dh00 = 6 * t * t - 6 * t, dh10 = 3 * t * t - 4 * t + 1, dh01 = -6 * t * t + 6 * t, dh11 = 3 * t * t - 2 * t; @@ -99090,12 +99179,12 @@ var Plotly = (() => { } module2.exports = cubicHermite; module2.exports.derivative = dcubicHermite; - } + }) ), /***/ 7642: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ch = __webpack_require__2(8954); var uniq = __webpack_require__2(1682); @@ -99231,12 +99320,12 @@ var Plotly = (() => { } return hull; } - } + }) ), /***/ 2361: ( /***/ - function(module2) { + (function(module2) { var hasTypedArrays = false; if (typeof Float64Array !== "undefined") { var DOUBLE_VIEW = new Float64Array(1), UINT_VIEW = new Uint32Array(DOUBLE_VIEW.buffer); @@ -99328,12 +99417,12 @@ var Plotly = (() => { var hi = module2.exports.hi(n); return !(hi & 2146435072); }; - } + }) ), /***/ 1338: ( /***/ - function(module2) { + (function(module2) { "use strict"; function dupe_array(count, value, i) { var c = count[i] | 0; @@ -99379,12 +99468,12 @@ var Plotly = (() => { return []; } module2.exports = dupe; - } + }) ), /***/ 3134: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = edgeToAdjacency; var uniq = __webpack_require__2(1682); @@ -99415,12 +99504,12 @@ var Plotly = (() => { } return adj; } - } + }) ), /***/ 5033: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = extractPlanes; function extractPlanes(M, zNear, zFar) { @@ -99435,12 +99524,12 @@ var Plotly = (() => { [zf * M[12] - M[8], zf * M[13] - M[9], zf * M[14] - M[10], zf * M[15] - M[11]] ]; } - } + }) ), /***/ 9215: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createFilteredVector; var cubicHermite = __webpack_require__2(4769); @@ -99715,12 +99804,12 @@ var Plotly = (() => { return new FilteredVector(initState, initVelocity, initTime); } } - } + }) ), /***/ 3840: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = createRBTree; var RED = 0; @@ -100600,12 +100689,12 @@ var Plotly = (() => { function createRBTree(compare) { return new RedBlackTree(compare || defaultCompare, null); } - } + }) ), /***/ 3837: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createAxes; var createText = __webpack_require__2(4935); @@ -101173,12 +101262,12 @@ var Plotly = (() => { axes.update(options); return axes; } - } + }) ), /***/ 5304: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createBackgroundCube; var createBuffer = __webpack_require__2(2762); @@ -101284,12 +101373,12 @@ var Plotly = (() => { shader.attributes.normal.location = 1; return new BackgroundCube(gl2, buffer, vao, shader); } - } + }) ), /***/ 6429: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = getCubeEdges; var bits = __webpack_require__2(8828); @@ -101495,12 +101584,12 @@ var Plotly = (() => { } return CUBE_RESULT; } - } + }) ), /***/ 501: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createLines; var createBuffer = __webpack_require__2(2762); @@ -101716,12 +101805,12 @@ var Plotly = (() => { shader.attributes.position.location = 0; return new Lines(gl2, vertBuf, vao, shader, tickCount, tickOffset, gridCount, gridOffset); } - } + }) ), /***/ 1879: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -101747,12 +101836,12 @@ var Plotly = (() => { { name: "normal", type: "vec3" } ]); }; - } + }) ), /***/ 4935: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createTextSprites; var createBuffer = __webpack_require__2(2762); @@ -101938,12 +102027,12 @@ var Plotly = (() => { result.update(bounds, labels, labelFont, ticks, tickFont); return result; } - } + }) ), /***/ 6444: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.create = defaultTicks; exports2.equal = ticksEqual; @@ -102012,12 +102101,12 @@ var Plotly = (() => { } return true; } - } + }) ), /***/ 5445: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = axesProperties; var getPlanes = __webpack_require__2(5033); @@ -102140,12 +102229,12 @@ var Plotly = (() => { } return ranges; } - } + }) ), /***/ 2762: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); var ops = __webpack_require__2(5298); @@ -102286,12 +102375,12 @@ var Plotly = (() => { return result; } module2.exports = createBuffer; - } + }) ), /***/ 6405: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vec3 = __webpack_require__2(2931); module2.exports = function(vectorfield, bounds) { @@ -102403,12 +102492,12 @@ var Plotly = (() => { traceType: "cone" }); }; - } + }) ), /***/ 9060: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createShader = __webpack_require__2(9405); var createBuffer = __webpack_require__2(2762); @@ -102889,12 +102978,12 @@ var Plotly = (() => { return mesh; } module2.exports = createVectorMesh; - } + }) ), /***/ 614: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]); @@ -102919,12 +103008,12 @@ var Plotly = (() => { { name: "vector", type: "vec3" } ] }; - } + }) ), /***/ 737: ( /***/ - function(module2) { + (function(module2) { module2.exports = { 0: "NONE", 1: "ONE", @@ -103223,22 +103312,22 @@ var Plotly = (() => { 37443: "UNPACK_COLORSPACE_CONVERSION_WEBGL", 37444: "BROWSER_DEFAULT_WEBGL" }; - } + }) ), /***/ 5171: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var gl10 = __webpack_require__2(737); module2.exports = function lookupConstant(number) { return gl10[number]; }; - } + }) ), /***/ 9165: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createErrorBars; var createBuffer = __webpack_require__2(2762); @@ -103316,7 +103405,7 @@ var Plotly = (() => { bounds[1][i] = Math.max(bounds[1][i], point[i]); } } - var FACE_TABLE = function() { + var FACE_TABLE = (function() { var table = new Array(3); for (var d = 0; d < 3; ++d) { var row = []; @@ -103331,7 +103420,7 @@ var Plotly = (() => { table[d] = row; } return table; - }(); + })(); function emitFace(verts, x, c, d) { var offsets = FACE_TABLE[d]; for (var i = 0; i < offsets.length; ++i) { @@ -103512,12 +103601,12 @@ var Plotly = (() => { result.update(options); return result; } - } + }) ), /***/ 3436: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -103530,12 +103619,12 @@ var Plotly = (() => { { name: "offset", type: "vec3" } ]); }; - } + }) ), /***/ 2260: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createTexture = __webpack_require__2(7766); module2.exports = createFBO; @@ -103918,12 +104007,12 @@ var Plotly = (() => { WEBGL_draw_buffers ); } - } + }) ), /***/ 2992: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var sprintf = __webpack_require__2(3387).sprintf; var glConstants = __webpack_require__2(5171); var shaderName = __webpack_require__2(1848); @@ -103965,12 +104054,12 @@ var Plotly = (() => { short: shortForm.trim() }; } - } + }) ), /***/ 7319: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); var vertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n vec4 startPoint = project(position);\n vec4 endPoint = project(nextPosition);\n\n vec2 A = startPoint.xy / startPoint.w;\n vec2 B = endPoint.xy / endPoint.w;\n\n float clipAngle = atan(\n (B.y - A.y) * screenShape.y,\n (B.x - A.x) * screenShape.x\n );\n\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n sin(clipAngle),\n -cos(clipAngle)\n ) / screenShape;\n\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n worldPosition = position;\n pixelArcLength = arcLength;\n fragColor = color;\n}\n"]); @@ -103989,12 +104078,12 @@ var Plotly = (() => { exports2.createPickShader = function(gl2) { return createShader(gl2, vertSrc, pickFrag, null, ATTRIBUTES); }; - } + }) ), /***/ 5714: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createLinePlot; var createBuffer = __webpack_require__2(2762); @@ -104419,12 +104508,12 @@ var Plotly = (() => { linePlot.update(options); return linePlot; } - } + }) ), /***/ 1903: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(16); @@ -104447,12 +104536,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6864: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(16); @@ -104475,24 +104564,24 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 9921: ( /***/ - function(module2) { + (function(module2) { module2.exports = determinant; function determinant(a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15], b00 = a00 * a11 - a01 * a10, b01 = a00 * a12 - a02 * a10, b02 = a00 * a13 - a03 * a10, b03 = a01 * a12 - a02 * a11, b04 = a01 * a13 - a03 * a11, b05 = a02 * a13 - a03 * a12, b06 = a20 * a31 - a21 * a30, b07 = a20 * a32 - a22 * a30, b08 = a20 * a33 - a23 * a30, b09 = a21 * a32 - a22 * a31, b10 = a21 * a33 - a23 * a31, b11 = a22 * a33 - a23 * a32; return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; } ; - } + }) ), /***/ 7399: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromQuat; function fromQuat(out, q) { var x = q[0], y = q[1], z = q[2], w = q[3], x2 = x + x, y2 = y + y, z2 = z + z, xx = x * x2, yx = y * x2, yy = y * y2, zx = z * x2, zy = z * y2, zz = z * z2, wx = w * x2, wy = w * y2, wz = w * z2; @@ -104515,12 +104604,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6743: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromRotationTranslation; function fromRotationTranslation(out, q, v) { var x = q[0], y = q[1], z = q[2], w = q[3], x2 = x + x, y2 = y + y, z2 = z + z, xx = x * x2, xy = x * y2, xz = x * z2, yy = y * y2, yz = y * z2, zz = z * z2, wx = w * x2, wy = w * y2, wz = w * z2; @@ -104543,12 +104632,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7894: ( /***/ - function(module2) { + (function(module2) { module2.exports = identity2; function identity2(out) { out[0] = 1; @@ -104570,12 +104659,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7608: ( /***/ - function(module2) { + (function(module2) { module2.exports = invert; function invert(out, a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15], b00 = a00 * a11 - a01 * a10, b01 = a00 * a12 - a02 * a10, b02 = a00 * a13 - a03 * a10, b03 = a01 * a12 - a02 * a11, b04 = a01 * a13 - a03 * a11, b05 = a02 * a13 - a03 * a12, b06 = a20 * a31 - a21 * a30, b07 = a20 * a32 - a22 * a30, b08 = a20 * a33 - a23 * a30, b09 = a21 * a32 - a22 * a31, b10 = a21 * a33 - a23 * a31, b11 = a22 * a33 - a23 * a32, det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; @@ -104602,12 +104691,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6582: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var identity2 = __webpack_require__2(7894); module2.exports = lookAt; function lookAt(out, eye, center, up) { @@ -104669,12 +104758,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6760: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; @@ -104710,12 +104799,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 4040: ( /***/ - function(module2) { + (function(module2) { module2.exports = ortho; function ortho(out, left, right, bottom, top, near, far) { var lr = 1 / (left - right), bt = 1 / (bottom - top), nf = 1 / (near - far); @@ -104738,12 +104827,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 4772: ( /***/ - function(module2) { + (function(module2) { module2.exports = perspective; function perspective(out, fovy, aspect, near, far) { var f = 1 / Math.tan(fovy / 2), nf = 1 / (near - far); @@ -104766,12 +104855,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6079: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotate; function rotate(out, a, rad, axis) { var x = axis[0], y = axis[1], z = axis[2], len = Math.sqrt(x * x + y * y + z * z), s, c, t, a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23, b00, b01, b02, b10, b11, b12, b20, b21, b22; @@ -104827,12 +104916,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 5567: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateX; function rotateX(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; @@ -104857,12 +104946,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 2408: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateY; function rotateY(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; @@ -104887,12 +104976,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7089: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateZ; function rotateZ(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7]; @@ -104917,12 +105006,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 2504: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, v) { var x = v[0], y = v[1], z = v[2]; @@ -104945,12 +105034,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7656: ( /***/ - function(module2) { + (function(module2) { module2.exports = translate; function translate(out, a, v) { var x = v[0], y = v[1], z = v[2], a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23; @@ -104992,12 +105081,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 5665: ( /***/ - function(module2) { + (function(module2) { module2.exports = transpose; function transpose(out, a) { if (out === a) { @@ -105035,12 +105124,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7626: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var barycentric = __webpack_require__2(2642); var closestPointToTriangle = __webpack_require__2(9346); @@ -105132,12 +105221,12 @@ var Plotly = (() => { } return [closestIndex, interpolate(simplex, weights), weights]; } - } + }) ), /***/ 840: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]); @@ -105203,12 +105292,12 @@ var Plotly = (() => { { name: "position", type: "vec3" } ] }; - } + }) ), /***/ 7201: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DEFAULT_VERTEX_NORMALS_EPSILON = 1e-6; var DEFAULT_FACE_NORMALS_EPSILON = 1e-6; @@ -106184,12 +106273,12 @@ var Plotly = (() => { return mesh; } module2.exports = createSimplicialMesh; - } + }) ), /***/ 4437: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createCamera; var now = __webpack_require__2(3025); @@ -106429,12 +106518,12 @@ var Plotly = (() => { camera.enableMouseListeners(); return camera; } - } + }) ), /***/ 799: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); var vertSrc = glslify(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]); @@ -106442,12 +106531,12 @@ var Plotly = (() => { module2.exports = function(gl2) { return createShader(gl2, vertSrc, fragSrc, null, [{ name: "position", type: "vec2" }]); }; - } + }) ), /***/ 4100: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createCamera = __webpack_require__2(4437); var createAxes = __webpack_require__2(3837); @@ -107143,12 +107232,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 783: ( /***/ - function(module2) { + (function(module2) { module2.exports = slerp; function slerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2], aw = a[3], bx = b[0], by = b[1], bz = b[2], bw = b[3]; @@ -107176,22 +107265,22 @@ var Plotly = (() => { out[3] = scale0 * aw + scale1 * bw; return out; } - } + }) ), /***/ 5964: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function(a) { return !a && a !== 0 ? "" : a.toString(); }; - } + }) ), /***/ 9366: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vectorizeText = __webpack_require__2(4359); module2.exports = getGlyph; @@ -107255,12 +107344,12 @@ var Plotly = (() => { } return fontCache[symbol] = [triSymbol, lineSymbol, bounds]; } - } + }) ), /***/ 1283: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var createShaderWrapper = __webpack_require__2(9405); var glslify = __webpack_require__2(3236); var perspectiveVertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]); @@ -107326,12 +107415,12 @@ var Plotly = (() => { exports2.createPickProject = function(gl2) { return createShader(gl2, pickProject); }; - } + }) ), /***/ 8418: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isAllBlank = __webpack_require__2(5219); var createBuffer = __webpack_require__2(2762); @@ -108062,12 +108151,12 @@ var Plotly = (() => { pointCloud.update(options); return pointCloud; } - } + }) ), /***/ 3589: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSelectBuffer; var createFBO = __webpack_require__2(2260); @@ -108228,12 +108317,12 @@ var Plotly = (() => { var buffer = pool.mallocUint8(width * height * 4); return new SelectBuffer(gl2, fbo, buffer); } - } + }) ), /***/ 9405: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createUniformWrapper = __webpack_require__2(3327); var createAttributeWrapper = __webpack_require__2(8731); @@ -108417,12 +108506,12 @@ var Plotly = (() => { return shader; } module2.exports = createShader; - } + }) ), /***/ 8866: ( /***/ - function(module2) { + (function(module2) { function GLError(rawError, shortMessage, longMessage) { this.shortMessage = shortMessage || ""; this.longMessage = longMessage || ""; @@ -108434,12 +108523,12 @@ var Plotly = (() => { GLError.prototype.name = "GLError"; GLError.prototype.constructor = GLError; module2.exports = GLError; - } + }) ), /***/ 8731: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createAttributeWrapper; var GLError = __webpack_require__2(8866); @@ -108670,12 +108759,12 @@ var Plotly = (() => { } return obj; } - } + }) ), /***/ 3327: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var coallesceUniforms = __webpack_require__2(216); var GLError = __webpack_require__2(8866); @@ -108864,12 +108953,12 @@ var Plotly = (() => { configurable: true }; } - } + }) ), /***/ 216: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = makeReflectTypes; function makeReflectTypes(uniforms, useIndex) { @@ -108920,12 +109009,12 @@ var Plotly = (() => { } return obj; } - } + }) ), /***/ 2145: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.uniforms = runtimeUniforms; exports2.attributes = runtimeAttributes; @@ -108998,12 +109087,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 5091: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; exports2.shader = getShaderReference; exports2.program = createProgram; @@ -109123,12 +109212,12 @@ var Plotly = (() => { function createProgram(gl2, vref, fref, attribs, locations) { return getCache(gl2).getProgram(vref, fref, attribs, locations); } - } + }) ), /***/ 1493: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -109141,12 +109230,12 @@ var Plotly = (() => { { name: "weight", type: "float" } ]); }; - } + }) ), /***/ 4449: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createBuffer = __webpack_require__2(2762); var createVAO = __webpack_require__2(8116); @@ -109318,12 +109407,12 @@ var Plotly = (() => { spikes.update(options); return spikes; } - } + }) ), /***/ 6740: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]); @@ -109348,12 +109437,12 @@ var Plotly = (() => { { name: "vector", type: "vec4" } ] }; - } + }) ), /***/ 7815: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vec3 = __webpack_require__2(2931); var vec4 = __webpack_require__2(9970); @@ -109787,12 +109876,12 @@ var Plotly = (() => { traceType: "streamtube" }); }; - } + }) ), /***/ 990: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var createShader = __webpack_require__2(9405); var glslify = __webpack_require__2(3236); var vertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 localCoordinate = vec3(uv.zw, f.x);\n worldCoordinate = objectOffset + localCoordinate;\n mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));\n vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0);\n vec4 clipPosition = projection * (view * worldPosition);\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n"]); @@ -109839,12 +109928,12 @@ var Plotly = (() => { shader.attributes.f.location = 1; return shader; }; - } + }) ), /***/ 9499: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSurfacePlot; var bits = __webpack_require__2(8828); @@ -110977,12 +111066,12 @@ var Plotly = (() => { surface.update(nparams); return surface; } - } + }) ), /***/ 7766: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ndarray = __webpack_require__2(9618); var ops = __webpack_require__2(5298); @@ -111500,12 +111589,12 @@ var Plotly = (() => { } throw new Error("gl-texture2d: Invalid arguments for texture2d constructor"); } - } + }) ), /***/ 1433: ( /***/ - function(module2) { + (function(module2) { "use strict"; function doBind(gl2, elements, attributes) { if (elements) { @@ -111558,12 +111647,12 @@ var Plotly = (() => { } } module2.exports = doBind; - } + }) ), /***/ 870: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bindAttribs = __webpack_require__2(1433); function VAOEmulated(gl2) { @@ -111597,12 +111686,12 @@ var Plotly = (() => { return new VAOEmulated(gl2); } module2.exports = createVAOEmulated; - } + }) ), /***/ 7518: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bindAttribs = __webpack_require__2(1433); function VertexAttribute(location2, dimension, a, b, c, d) { @@ -111679,12 +111768,12 @@ var Plotly = (() => { return new VAONative(gl2, ext, ext.createVertexArrayOES()); } module2.exports = createVAONative; - } + }) ), /***/ 8116: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createVAONative = __webpack_require__2(7518); var createVAOEmulated = __webpack_require__2(870); @@ -111705,12 +111794,12 @@ var Plotly = (() => { return vao; } module2.exports = createVAO; - } + }) ), /***/ 5632: ( /***/ - function(module2) { + (function(module2) { module2.exports = add; function add(out, a, b) { out[0] = a[0] + b[0]; @@ -111718,12 +111807,12 @@ var Plotly = (() => { out[2] = a[2] + b[2]; return out; } - } + }) ), /***/ 8192: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = angle; var fromValues = __webpack_require__2(2825); var normalize = __webpack_require__2(3536); @@ -111740,12 +111829,12 @@ var Plotly = (() => { return Math.acos(cosine); } } - } + }) ), /***/ 9226: ( /***/ - function(module2) { + (function(module2) { module2.exports = ceil; function ceil(out, a) { out[0] = Math.ceil(a[0]); @@ -111753,12 +111842,12 @@ var Plotly = (() => { out[2] = Math.ceil(a[2]); return out; } - } + }) ), /***/ 3126: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(3); @@ -111767,12 +111856,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 3990: ( /***/ - function(module2) { + (function(module2) { module2.exports = copy; function copy(out, a) { out[0] = a[0]; @@ -111780,12 +111869,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 1091: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(3); @@ -111794,12 +111883,12 @@ var Plotly = (() => { out[2] = 0; return out; } - } + }) ), /***/ 5911: ( /***/ - function(module2) { + (function(module2) { module2.exports = cross; function cross(out, a, b) { var ax = a[0], ay = a[1], az = a[2], bx = b[0], by = b[1], bz = b[2]; @@ -111808,37 +111897,37 @@ var Plotly = (() => { out[2] = ax * by - ay * bx; return out; } - } + }) ), /***/ 5455: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(7056); - } + }) ), /***/ 7056: ( /***/ - function(module2) { + (function(module2) { module2.exports = distance; function distance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2]; return Math.sqrt(x * x + y * y + z * z); } - } + }) ), /***/ 4008: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(6690); - } + }) ), /***/ 6690: ( /***/ - function(module2) { + (function(module2) { module2.exports = divide; function divide(out, a, b) { out[0] = a[0] / b[0]; @@ -111846,29 +111935,29 @@ var Plotly = (() => { out[2] = a[2] / b[2]; return out; } - } + }) ), /***/ 244: ( /***/ - function(module2) { + (function(module2) { module2.exports = dot; function dot(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; } - } + }) ), /***/ 2613: ( /***/ - function(module2) { + (function(module2) { module2.exports = 1e-6; - } + }) ), /***/ 9922: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = equals; var EPSILON = __webpack_require__2(2613); function equals(a, b) { @@ -111880,22 +111969,22 @@ var Plotly = (() => { var b2 = b[2]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1, Math.abs(a2), Math.abs(b2)); } - } + }) ), /***/ 9265: ( /***/ - function(module2) { + (function(module2) { module2.exports = exactEquals; function exactEquals(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]; } - } + }) ), /***/ 2681: ( /***/ - function(module2) { + (function(module2) { module2.exports = floor; function floor(out, a) { out[0] = Math.floor(a[0]); @@ -111903,12 +111992,12 @@ var Plotly = (() => { out[2] = Math.floor(a[2]); return out; } - } + }) ), /***/ 5137: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = forEach; var vec = __webpack_require__2(1091)(); function forEach(a, stride, offset, count, fn, arg) { @@ -111935,12 +112024,12 @@ var Plotly = (() => { } return a; } - } + }) ), /***/ 2825: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromValues; function fromValues(x, y, z) { var out = new Float32Array(3); @@ -111949,12 +112038,12 @@ var Plotly = (() => { out[2] = z; return out; } - } + }) ), /***/ 2931: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { EPSILON: __webpack_require__2(2613), create: __webpack_require__2(1091), @@ -112002,12 +112091,12 @@ var Plotly = (() => { rotateZ: __webpack_require__2(8692), forEach: __webpack_require__2(5137) }; - } + }) ), /***/ 811: ( /***/ - function(module2) { + (function(module2) { module2.exports = inverse; function inverse(out, a) { out[0] = 1 / a[0]; @@ -112015,30 +112104,30 @@ var Plotly = (() => { out[2] = 1 / a[2]; return out; } - } + }) ), /***/ 868: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(1387); - } + }) ), /***/ 1387: ( /***/ - function(module2) { + (function(module2) { module2.exports = length; function length(a) { var x = a[0], y = a[1], z = a[2]; return Math.sqrt(x * x + y * y + z * z); } - } + }) ), /***/ 6658: ( /***/ - function(module2) { + (function(module2) { module2.exports = lerp; function lerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2]; @@ -112047,12 +112136,12 @@ var Plotly = (() => { out[2] = az + t * (b[2] - az); return out; } - } + }) ), /***/ 7417: ( /***/ - function(module2) { + (function(module2) { module2.exports = max; function max(out, a, b) { out[0] = Math.max(a[0], b[0]); @@ -112060,12 +112149,12 @@ var Plotly = (() => { out[2] = Math.max(a[2], b[2]); return out; } - } + }) ), /***/ 8107: ( /***/ - function(module2) { + (function(module2) { module2.exports = min; function min(out, a, b) { out[0] = Math.min(a[0], b[0]); @@ -112073,19 +112162,19 @@ var Plotly = (() => { out[2] = Math.min(a[2], b[2]); return out; } - } + }) ), /***/ 4505: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(5847); - } + }) ), /***/ 5847: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { out[0] = a[0] * b[0]; @@ -112093,12 +112182,12 @@ var Plotly = (() => { out[2] = a[2] * b[2]; return out; } - } + }) ), /***/ 5093: ( /***/ - function(module2) { + (function(module2) { module2.exports = negate; function negate(out, a) { out[0] = -a[0]; @@ -112106,12 +112195,12 @@ var Plotly = (() => { out[2] = -a[2]; return out; } - } + }) ), /***/ 3536: ( /***/ - function(module2) { + (function(module2) { module2.exports = normalize; function normalize(out, a) { var x = a[0], y = a[1], z = a[2]; @@ -112124,12 +112213,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 7636: ( /***/ - function(module2) { + (function(module2) { module2.exports = random; function random(out, scale) { scale = scale || 1; @@ -112141,12 +112230,12 @@ var Plotly = (() => { out[2] = z * scale; return out; } - } + }) ), /***/ 6894: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateX; function rotateX(out, a, b, c) { var by = b[1]; @@ -112160,12 +112249,12 @@ var Plotly = (() => { out[2] = bz + py * sc + pz * cc; return out; } - } + }) ), /***/ 109: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateY; function rotateY(out, a, b, c) { var bx = b[0]; @@ -112179,12 +112268,12 @@ var Plotly = (() => { out[2] = bz + pz * cc - px * sc; return out; } - } + }) ), /***/ 8692: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateZ; function rotateZ(out, a, b, c) { var bx = b[0]; @@ -112198,12 +112287,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 2447: ( /***/ - function(module2) { + (function(module2) { module2.exports = round; function round(out, a) { out[0] = Math.round(a[0]); @@ -112211,12 +112300,12 @@ var Plotly = (() => { out[2] = Math.round(a[2]); return out; } - } + }) ), /***/ 6621: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, b) { out[0] = a[0] * b; @@ -112224,12 +112313,12 @@ var Plotly = (() => { out[2] = a[2] * b; return out; } - } + }) ), /***/ 8489: ( /***/ - function(module2) { + (function(module2) { module2.exports = scaleAndAdd; function scaleAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; @@ -112237,12 +112326,12 @@ var Plotly = (() => { out[2] = a[2] + b[2] * scale; return out; } - } + }) ), /***/ 1463: ( /***/ - function(module2) { + (function(module2) { module2.exports = set; function set(out, x, y, z) { out[0] = x; @@ -112250,55 +112339,55 @@ var Plotly = (() => { out[2] = z; return out; } - } + }) ), /***/ 6141: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(2953); - } + }) ), /***/ 5486: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(3066); - } + }) ), /***/ 2953: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredDistance; function squaredDistance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2]; return x * x + y * y + z * z; } - } + }) ), /***/ 3066: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredLength; function squaredLength(a) { var x = a[0], y = a[1], z = a[2]; return x * x + y * y + z * z; } - } + }) ), /***/ 2229: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(6843); - } + }) ), /***/ 6843: ( /***/ - function(module2) { + (function(module2) { module2.exports = subtract; function subtract(out, a, b) { out[0] = a[0] - b[0]; @@ -112306,12 +112395,12 @@ var Plotly = (() => { out[2] = a[2] - b[2]; return out; } - } + }) ), /***/ 492: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat3; function transformMat3(out, a, m) { var x = a[0], y = a[1], z = a[2]; @@ -112320,12 +112409,12 @@ var Plotly = (() => { out[2] = x * m[2] + y * m[5] + z * m[8]; return out; } - } + }) ), /***/ 5673: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat4; function transformMat4(out, a, m) { var x = a[0], y = a[1], z = a[2], w = m[3] * x + m[7] * y + m[11] * z + m[15]; @@ -112335,12 +112424,12 @@ var Plotly = (() => { out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w; return out; } - } + }) ), /***/ 264: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformQuat; function transformQuat(out, a, q) { var x = a[0], y = a[1], z = a[2], qx = q[0], qy = q[1], qz = q[2], qw = q[3], ix = qw * x + qy * z - qz * y, iy = qw * y + qz * x - qx * z, iz = qw * z + qx * y - qy * x, iw = -qx * x - qy * y - qz * z; @@ -112349,12 +112438,12 @@ var Plotly = (() => { out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx; return out; } - } + }) ), /***/ 4361: ( /***/ - function(module2) { + (function(module2) { module2.exports = add; function add(out, a, b) { out[0] = a[0] + b[0]; @@ -112363,12 +112452,12 @@ var Plotly = (() => { out[3] = a[3] + b[3]; return out; } - } + }) ), /***/ 2335: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(4); @@ -112378,12 +112467,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 2933: ( /***/ - function(module2) { + (function(module2) { module2.exports = copy; function copy(out, a) { out[0] = a[0]; @@ -112392,12 +112481,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 7536: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(4); @@ -112407,23 +112496,23 @@ var Plotly = (() => { out[3] = 0; return out; } - } + }) ), /***/ 4691: ( /***/ - function(module2) { + (function(module2) { module2.exports = distance; function distance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2], w = b[3] - a[3]; return Math.sqrt(x * x + y * y + z * z + w * w); } - } + }) ), /***/ 1373: ( /***/ - function(module2) { + (function(module2) { module2.exports = divide; function divide(out, a, b) { out[0] = a[0] / b[0]; @@ -112432,22 +112521,22 @@ var Plotly = (() => { out[3] = a[3] / b[3]; return out; } - } + }) ), /***/ 3750: ( /***/ - function(module2) { + (function(module2) { module2.exports = dot; function dot(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]; } - } + }) ), /***/ 3390: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromValues; function fromValues(x, y, z, w) { var out = new Float32Array(4); @@ -112457,12 +112546,12 @@ var Plotly = (() => { out[3] = w; return out; } - } + }) ), /***/ 9970: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { create: __webpack_require__2(7536), clone: __webpack_require__2(2335), @@ -112490,12 +112579,12 @@ var Plotly = (() => { transformMat4: __webpack_require__2(5352), transformQuat: __webpack_require__2(4041) }; - } + }) ), /***/ 4494: ( /***/ - function(module2) { + (function(module2) { module2.exports = inverse; function inverse(out, a) { out[0] = 1 / a[0]; @@ -112504,23 +112593,23 @@ var Plotly = (() => { out[3] = 1 / a[3]; return out; } - } + }) ), /***/ 6808: ( /***/ - function(module2) { + (function(module2) { module2.exports = length; function length(a) { var x = a[0], y = a[1], z = a[2], w = a[3]; return Math.sqrt(x * x + y * y + z * z + w * w); } - } + }) ), /***/ 2573: ( /***/ - function(module2) { + (function(module2) { module2.exports = lerp; function lerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2], aw = a[3]; @@ -112530,12 +112619,12 @@ var Plotly = (() => { out[3] = aw + t * (b[3] - aw); return out; } - } + }) ), /***/ 160: ( /***/ - function(module2) { + (function(module2) { module2.exports = max; function max(out, a, b) { out[0] = Math.max(a[0], b[0]); @@ -112544,12 +112633,12 @@ var Plotly = (() => { out[3] = Math.max(a[3], b[3]); return out; } - } + }) ), /***/ 2334: ( /***/ - function(module2) { + (function(module2) { module2.exports = min; function min(out, a, b) { out[0] = Math.min(a[0], b[0]); @@ -112558,12 +112647,12 @@ var Plotly = (() => { out[3] = Math.min(a[3], b[3]); return out; } - } + }) ), /***/ 3576: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { out[0] = a[0] * b[0]; @@ -112572,12 +112661,12 @@ var Plotly = (() => { out[3] = a[3] * b[3]; return out; } - } + }) ), /***/ 1498: ( /***/ - function(module2) { + (function(module2) { module2.exports = negate; function negate(out, a) { out[0] = -a[0]; @@ -112586,12 +112675,12 @@ var Plotly = (() => { out[3] = -a[3]; return out; } - } + }) ), /***/ 5177: ( /***/ - function(module2) { + (function(module2) { module2.exports = normalize; function normalize(out, a) { var x = a[0], y = a[1], z = a[2], w = a[3]; @@ -112605,12 +112694,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 9131: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var vecNormalize = __webpack_require__2(5177); var vecScale = __webpack_require__2(9288); module2.exports = random; @@ -112624,12 +112713,12 @@ var Plotly = (() => { vecScale(out, out, scale); return out; } - } + }) ), /***/ 9288: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, b) { out[0] = a[0] * b; @@ -112638,12 +112727,12 @@ var Plotly = (() => { out[3] = a[3] * b; return out; } - } + }) ), /***/ 4844: ( /***/ - function(module2) { + (function(module2) { module2.exports = scaleAndAdd; function scaleAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; @@ -112652,12 +112741,12 @@ var Plotly = (() => { out[3] = a[3] + b[3] * scale; return out; } - } + }) ), /***/ 4578: ( /***/ - function(module2) { + (function(module2) { module2.exports = set; function set(out, x, y, z, w) { out[0] = x; @@ -112666,34 +112755,34 @@ var Plotly = (() => { out[3] = w; return out; } - } + }) ), /***/ 7960: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredDistance; function squaredDistance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2], w = b[3] - a[3]; return x * x + y * y + z * z + w * w; } - } + }) ), /***/ 483: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredLength; function squaredLength(a) { var x = a[0], y = a[1], z = a[2], w = a[3]; return x * x + y * y + z * z + w * w; } - } + }) ), /***/ 6860: ( /***/ - function(module2) { + (function(module2) { module2.exports = subtract; function subtract(out, a, b) { out[0] = a[0] - b[0]; @@ -112702,12 +112791,12 @@ var Plotly = (() => { out[3] = a[3] - b[3]; return out; } - } + }) ), /***/ 5352: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat4; function transformMat4(out, a, m) { var x = a[0], y = a[1], z = a[2], w = a[3]; @@ -112717,12 +112806,12 @@ var Plotly = (() => { out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; return out; } - } + }) ), /***/ 4041: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformQuat; function transformQuat(out, a, q) { var x = a[0], y = a[1], z = a[2], qx = q[0], qy = q[1], qz = q[2], qw = q[3], ix = qw * x + qy * z - qz * y, iy = qw * y + qz * x - qx * z, iz = qw * z + qx * y - qy * x, iw = -qx * x - qy * y - qz * z; @@ -112732,12 +112821,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 1848: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var tokenize = __webpack_require__2(4905); var atob2 = __webpack_require__2(6468); module2.exports = getName; @@ -112754,12 +112843,12 @@ var Plotly = (() => { return (b64 ? atob2(name2) : name2).trim(); } } - } + }) ), /***/ 5874: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = tokenize; var literals100 = __webpack_require__2(620), operators = __webpack_require__2(7827), builtins100 = __webpack_require__2(6852), literals300es = __webpack_require__2(7932), builtins300es = __webpack_require__2(3508); var NORMAL = 999, TOKEN = 9999, BLOCK_COMMENT = 0, LINE_COMMENT = 1, PREPROCESSOR = 2, OPERATOR = 3, INTEGER = 4, FLOAT = 5, IDENT = 6, BUILTIN = 7, KEYWORD = 8, WHITESPACE = 9, EOF = 10, HEX = 11; @@ -113068,12 +113157,12 @@ var Plotly = (() => { return i + 1; } } - } + }) ), /***/ 3508: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var v100 = __webpack_require__2(6852); v100 = v100.slice().filter(function(b) { return !/^(gl\_|texture)/.test(b); @@ -113136,12 +113225,12 @@ var Plotly = (() => { "textureProjGrad", "textureProjGradOffset" ]); - } + }) ), /***/ 6852: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ // Keep this list sorted "abs", @@ -113292,12 +113381,12 @@ var Plotly = (() => { "texture2DProjGradEXT", "textureCubeGradEXT" ]; - } + }) ), /***/ 7932: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var v100 = __webpack_require__2(620); module2.exports = v100.slice().concat([ "layout", @@ -113384,12 +113473,12 @@ var Plotly = (() => { "isampler2DMSArray", "usampler2DMSArray" ]); - } + }) ), /***/ 620: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ // current "precision", @@ -113482,12 +113571,12 @@ var Plotly = (() => { "namespace", "using" ]; - } + }) ), /***/ 7827: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ "<<=", ">>=", @@ -113535,12 +113624,12 @@ var Plotly = (() => { "{", "}" ]; - } + }) ), /***/ 4905: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var tokenize = __webpack_require__2(5874); module2.exports = tokenizeString; function tokenizeString(str, opt) { @@ -113550,12 +113639,12 @@ var Plotly = (() => { tokens = tokens.concat(generator(null)); return tokens; } - } + }) ), /***/ 3236: ( /***/ - function(module2) { + (function(module2) { module2.exports = function(strings) { if (typeof strings === "string") strings = [strings]; var exprs = [].slice.call(arguments, 1); @@ -113566,12 +113655,12 @@ var Plotly = (() => { parts.push(strings[i]); return parts.join(""); }; - } + }) ), /***/ 7520: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isBrowser = __webpack_require__2(9507); function detect() { @@ -113590,12 +113679,12 @@ var Plotly = (() => { return supported; } module2.exports = isBrowser && detect(); - } + }) ), /***/ 3778: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { exports2.read = function(buffer, offset, isLE, mLen, nBytes) { var e, m; var eLen = nBytes * 8 - mLen - 1; @@ -113673,12 +113762,12 @@ var Plotly = (() => { } buffer[offset + i - d] |= s * 128; }; - } + }) ), /***/ 8954: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = incrementalConvexHull; var orient = __webpack_require__2(3250); @@ -114030,12 +114119,12 @@ var Plotly = (() => { } return triangles.boundary(); } - } + }) ), /***/ 3352: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bounds = __webpack_require__2(2478); var NOT_FOUND = 0; @@ -114385,19 +114474,19 @@ var Plotly = (() => { } return new IntervalTree(createIntervalTree(intervals)); } - } + }) ), /***/ 9507: ( /***/ - function(module2) { + (function(module2) { module2.exports = true; - } + }) ), /***/ 7163: ( /***/ - function(module2) { + (function(module2) { module2.exports = function(obj) { return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer); }; @@ -114407,12 +114496,12 @@ var Plotly = (() => { function isSlowBuffer(obj) { return typeof obj.readFloatLE === "function" && typeof obj.slice === "function" && isBuffer(obj.slice(0, 0)); } - } + }) ), /***/ 5219: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function(str) { var l = str.length, a; @@ -114424,22 +114513,22 @@ var Plotly = (() => { } return true; }; - } + }) ), /***/ 395: ( /***/ - function(module2) { + (function(module2) { function lerp(v0, v1, t) { return v0 * (1 - t) + v1 * t; } module2.exports = lerp; - } + }) ), /***/ 2652: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var normalize = __webpack_require__2(4335); var create = __webpack_require__2(6864); var clone = __webpack_require__2(1903); @@ -114550,12 +114639,12 @@ var Plotly = (() => { out[1] = a[1] * scale1 + b[1] * scale2; out[2] = a[2] * scale1 + b[2] * scale2; } - } + }) ), /***/ 4335: ( /***/ - function(module2) { + (function(module2) { module2.exports = function normalize(out, mat) { var m44 = mat[15]; if (m44 === 0) @@ -114565,12 +114654,12 @@ var Plotly = (() => { out[i] = mat[i] * scale; return true; }; - } + }) ), /***/ 7442: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var lerp = __webpack_require__2(6658); var recompose = __webpack_require__2(7182); var decompose = __webpack_require__2(2652); @@ -114610,12 +114699,12 @@ var Plotly = (() => { function vec4() { return [0, 0, 0, 1]; } - } + }) ), /***/ 7182: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var mat4 = { identity: __webpack_require__2(7894), translate: __webpack_require__2(7656), @@ -114651,12 +114740,12 @@ var Plotly = (() => { mat4.scale(matrix, matrix, scale); return matrix; }; - } + }) ), /***/ 1811: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); var m4interp = __webpack_require__2(7442); @@ -114846,12 +114935,12 @@ var Plotly = (() => { ]; return new MatrixCameraController(matrix); } - } + }) ), /***/ 3090: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = monotoneConvexHull2D; var orient = __webpack_require__2(3250)[3]; @@ -114914,12 +115003,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 351: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = mouseListen; var mouse = __webpack_require__2(4687); @@ -115091,12 +115180,12 @@ var Plotly = (() => { }); return result; } - } + }) ), /***/ 24: ( /***/ - function(module2) { + (function(module2) { var rootPosition = { left: 0, top: 0 }; module2.exports = mouseEventOffset; function mouseEventOffset(ev, target, out) { @@ -115118,12 +115207,12 @@ var Plotly = (() => { return element.getBoundingClientRect(); } } - } + }) ), /***/ 4687: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; function mouseButtons(ev) { if (typeof ev === "object") { @@ -115180,12 +115269,12 @@ var Plotly = (() => { return 0; } exports2.y = mouseRelativeY; - } + }) ), /***/ 8512: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toPX = __webpack_require__2(665); module2.exports = mouseWheelListen; @@ -115223,12 +115312,12 @@ var Plotly = (() => { element.addEventListener("wheel", listener); return listener; } - } + }) ), /***/ 2640: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); module2.exports = createSurfaceExtractor; @@ -115537,12 +115626,12 @@ var Plotly = (() => { typesig ); } - } + }) ), /***/ 6199: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var dup = __webpack_require__2(1338); var CACHED_CWiseOp = { @@ -115753,12 +115842,12 @@ var Plotly = (() => { var cached = generateGradient(bc); return cached(out, inp); }; - } + }) ), /***/ 4317: ( /***/ - function(module2) { + (function(module2) { "use strict"; function interp1d(arr, x) { var ix = Math.floor(x), fx = x - ix, s0 = 0 <= ix && ix < arr.shape[0], s1 = 0 <= ix + 1 && ix + 1 < arr.shape[0], w0 = s0 ? +arr.get(ix) : 0, w1 = s1 ? +arr.get(ix + 1) : 0; @@ -115823,12 +115912,12 @@ var Plotly = (() => { module2.exports.d1 = interp1d; module2.exports.d2 = interp2d; module2.exports.d3 = interp3d; - } + }) ), /***/ 5298: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; var CACHED_CWiseOp = { "float64,2,1,0": function() { @@ -116176,12 +116265,12 @@ var Plotly = (() => { exports2.assign = makeOp({ funcName: "assign" }); - } + }) ), /***/ 9994: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ndarray = __webpack_require__2(9618); var do_convert = __webpack_require__2(8277); @@ -116201,12 +116290,12 @@ var Plotly = (() => { do_convert(result, arr); return result; }; - } + }) ), /***/ 8277: ( /***/ - function(module2) { + (function(module2) { "use strict"; function CwiseOp() { return function(SS, a0, t02, p0, Y0) { @@ -116267,12 +116356,12 @@ var Plotly = (() => { module2.exports = compileCwise({ funcName: "convert" }); - } + }) ), /***/ 7640: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); function getMallocFree(dtype) { @@ -116950,12 +117039,12 @@ var Plotly = (() => { return result(insertionSort, quickSort); } module2.exports = compileSort; - } + }) ), /***/ 446: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compile = __webpack_require__2(7640); var CACHE = {}; @@ -116972,12 +117061,12 @@ var Plotly = (() => { return array; } module2.exports = sort; - } + }) ), /***/ 9618: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var isBuffer = __webpack_require__2(7163); var hasTypedArrays = typeof Float64Array !== "undefined"; function compare1st(a, b) { @@ -117812,12 +117901,12 @@ var Plotly = (() => { return ctor(data, shape, stride, offset); } module2.exports = wrappedNDArrayCtor; - } + }) ), /***/ 1278: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var doubleBits = __webpack_require__2(2361); var SMALLEST_DENORM = Math.pow(2, -1074); @@ -117856,12 +117945,12 @@ var Plotly = (() => { } return doubleBits.pack(lo, hi); } - } + }) ), /***/ 8406: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { var DEFAULT_NORMALS_EPSILON = 1e-6; var DEFAULT_FACE_EPSILON = 1e-6; exports2.vertexNormals = function(faces, positions, specifiedEpsilon) { @@ -117959,12 +118048,12 @@ var Plotly = (() => { } return normals; }; - } + }) ), /***/ 4081: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = quatFromFrame; function quatFromFrame(out, rx, ry, rz, ux, uy, uz, fx, fy, fz) { @@ -117997,12 +118086,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 9977: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createOrbitController; var filterVector = __webpack_require__2(9215); @@ -118352,24 +118441,24 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 1371: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var repeat = __webpack_require__2(3233); module2.exports = function padLeft(str, num, ch) { ch = typeof ch !== "undefined" ? ch + "" : " "; return repeat(ch, num) + str; }; - } + }) ), /***/ 3202: ( /***/ - function(module2) { + (function(module2) { module2.exports = function parseUnit(str, out) { if (!out) out = [0, ""]; @@ -118379,12 +118468,12 @@ var Plotly = (() => { out[1] = str.match(/[\d.\-\+]*\s*(.*)/)[1] || ""; return out; }; - } + }) ), /***/ 3088: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = planarDual; var compareAngle = __webpack_require__2(3140); @@ -118498,12 +118587,12 @@ var Plotly = (() => { } return cycles; } - } + }) ), /***/ 5609: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = trimLeaves; var e2a = __webpack_require__2(3134); @@ -118551,12 +118640,12 @@ var Plotly = (() => { } return [nedges, npositions]; } - } + }) ), /***/ 2095: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = planarGraphToPolyline; var e2a = __webpack_require__2(3134); @@ -118733,12 +118822,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 5085: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = preprocessPolygon; var orient = __webpack_require__2(3250)[3]; var makeSlabs = __webpack_require__2(4209); @@ -118874,12 +118963,12 @@ var Plotly = (() => { ); } } - } + }) ), /***/ 9346: ( /***/ - function(module2) { + (function(module2) { "use strict"; var diff = new Float64Array(4); var edge0 = new Float64Array(4); @@ -119053,19 +119142,19 @@ var Plotly = (() => { return sqrDistance; } module2.exports = closestPoint2d; - } + }) ), /***/ 8648: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(783); - } + }) ), /***/ 2653: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnadd = __webpack_require__2(3865); module2.exports = add; @@ -119077,12 +119166,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 5838: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = float2rat; var rat = __webpack_require__2(7842); @@ -119093,12 +119182,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 8987: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rat = __webpack_require__2(7842); var mul = __webpack_require__2(6504); @@ -119112,12 +119201,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 544: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnsub = __webpack_require__2(5572); module2.exports = sub; @@ -119129,12 +119218,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 5771: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compareCell = __webpack_require__2(8507); var compareOrientedCell = __webpack_require__2(3788); @@ -119162,12 +119251,12 @@ var Plotly = (() => { cells.length = ptr; return cells; } - } + }) ), /***/ 3233: ( /***/ - function(module2) { + (function(module2) { "use strict"; var res = ""; var cache; @@ -119196,23 +119285,23 @@ var Plotly = (() => { res = res.substr(0, max); return res; } - } + }) ), /***/ 3025: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2.g.performance && __webpack_require__2.g.performance.now ? function now() { return performance.now(); } : Date.now || function now() { return +/* @__PURE__ */ new Date(); }; - } + }) ), /***/ 7004: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = compressExpansion; function compressExpansion(e) { @@ -119245,12 +119334,12 @@ var Plotly = (() => { e.length = top; return e; } - } + }) ), /***/ 2962: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -119320,12 +119409,12 @@ var Plotly = (() => { } } generateDispatch(); - } + }) ), /***/ 1944: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -119337,12 +119426,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 2646: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -119531,12 +119620,12 @@ var Plotly = (() => { } } generateInSphereTest(); - } + }) ), /***/ 727: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var determinant = __webpack_require__2(2962); var NUM_EXPAND = 6; @@ -119613,12 +119702,12 @@ var Plotly = (() => { } } generateDispatch(); - } + }) ), /***/ 3250: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -119758,12 +119847,12 @@ var Plotly = (() => { } } generateOrientationProc(); - } + }) ), /***/ 5382: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var robustSum = __webpack_require__2(8210); var robustScale = __webpack_require__2(3012); @@ -119790,12 +119879,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 3012: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var twoSum = __webpack_require__2(9362); @@ -119843,12 +119932,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 1125: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = segmentsIntersect; var orient = __webpack_require__2(3250)[3]; @@ -119884,12 +119973,12 @@ var Plotly = (() => { } return true; } - } + }) ), /***/ 8545: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = robustSubtract; function scalarScalar(a, b) { @@ -120042,12 +120131,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 8210: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = linearExpansionSum; function scalarScalar(a, b) { @@ -120200,12 +120289,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 9127: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boundary; var bnd = __webpack_require__2(6204); @@ -120213,12 +120302,12 @@ var Plotly = (() => { function boundary(cells) { return reduce(bnd(cells)); } - } + }) ), /***/ 7765: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = extractContour; var ndarray = __webpack_require__2(9618); @@ -120352,12 +120441,12 @@ var Plotly = (() => { vertexWeights: uweights }; } - } + }) ), /***/ 1570: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = getPolygonizer; var allFns = [ @@ -120630,12 +120719,12 @@ var Plotly = (() => { function getPolygonizer(d) { return allFns[d](); } - } + }) ), /***/ 6803: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var __webpack_unused_export__; "use restrict"; @@ -120928,12 +121017,12 @@ var Plotly = (() => { return connectedComponents_sparse(cells); } __webpack_unused_export__ = connectedComponents; - } + }) ), /***/ 3105: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; "use restrict"; var INT_BITS = 32; @@ -121083,12 +121172,12 @@ var Plotly = (() => { var t = v | v - 1; return t + 1 | (~t & -~t) - 1 >>> countTrailingZeros(v) + 1; }; - } + }) ), /***/ 2014: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; "use restrict"; var bits = __webpack_require__2(3105), UnionFind = __webpack_require__2(4623); @@ -121380,12 +121469,12 @@ var Plotly = (() => { return connectedComponents_sparse(cells); } exports2.connectedComponents = connectedComponents; - } + }) ), /***/ 4623: ( /***/ - function(module2) { + (function(module2) { "use strict"; "use restrict"; module2.exports = UnionFind; @@ -121430,12 +121519,12 @@ var Plotly = (() => { ++ranks[xr]; } }; - } + }) ), /***/ 5878: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = simplifyPolygon; var orient = __webpack_require__2(3250); @@ -121660,12 +121749,12 @@ var Plotly = (() => { edges: ncells }; } - } + }) ), /***/ 1303: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = orderSegments; var orient = __webpack_require__2(3250); @@ -121757,12 +121846,12 @@ var Plotly = (() => { } return ar[0] - br[0]; } - } + }) ), /***/ 4209: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSlabDecomposition; var bounds = __webpack_require__2(2478); @@ -121984,12 +122073,12 @@ var Plotly = (() => { } return new SlabDecomposition(slabs, lines, horizontal); } - } + }) ), /***/ 5202: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var robustDot = __webpack_require__2(1944); var robustSum = __webpack_require__2(8210); @@ -122072,14 +122161,14 @@ var Plotly = (() => { } return neg; } - } + }) ), /***/ 3387: ( /***/ - function(module2, exports2, __webpack_require__2) { + (function(module2, exports2, __webpack_require__2) { var __WEBPACK_AMD_DEFINE_RESULT__; - !function() { + !(function() { "use strict"; var re = { not_string: /[^s]/, @@ -122267,21 +122356,21 @@ var Plotly = (() => { window["sprintf"] = sprintf; window["vsprintf"] = vsprintf; if (true) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = function() { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return { "sprintf": sprintf, "vsprintf": vsprintf }; - }.call(exports2, __webpack_require__2, exports2, module2), __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + }).call(exports2, __webpack_require__2, exports2, module2), __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } - }(); - } + })(); + }) ), /***/ 3711: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = surfaceNets; var generateContourExtractor = __webpack_require__2(2640); @@ -122400,12 +122489,12 @@ var Plotly = (() => { } return proc(array, level); } - } + }) ), /***/ 665: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var parseUnit = __webpack_require__2(3202); module2.exports = toPX; @@ -122459,12 +122548,12 @@ var Plotly = (() => { } return 1; } - } + }) ), /***/ 7261: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createTurntableController; var filterVector = __webpack_require__2(9215); @@ -122952,12 +123041,12 @@ var Plotly = (() => { phi ); } - } + }) ), /***/ 5250: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = twoProduct; var SPLITTER = +(Math.pow(2, 27) + 1); @@ -122982,12 +123071,12 @@ var Plotly = (() => { } return [y, x]; } - } + }) ), /***/ 9362: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = fastTwoSum; function fastTwoSum(a, b, result) { @@ -123003,12 +123092,12 @@ var Plotly = (() => { } return [ar + br, x]; } - } + }) ), /***/ 1888: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var bits = __webpack_require__2(8828); var dup = __webpack_require__2(1338); @@ -123215,12 +123304,12 @@ var Plotly = (() => { BUFFER[i].length = 0; } }; - } + }) ), /***/ 1755: ( /***/ - function(module2) { + (function(module2) { "use strict"; "use restrict"; module2.exports = UnionFind; @@ -123272,12 +123361,12 @@ var Plotly = (() => { ++ranks[xr]; } }; - } + }) ), /***/ 1682: ( /***/ - function(module2) { + (function(module2) { "use strict"; function unique_pred(list, compare) { var ptr = 1, len = list.length, a = list[0], b = list[0]; @@ -123327,12 +123416,12 @@ var Plotly = (() => { return unique_eq(list); } module2.exports = unique; - } + }) ), /***/ 4359: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createText; var vectorizeText = __webpack_require__2(7718); @@ -123355,12 +123444,12 @@ var Plotly = (() => { options ); } - } + }) ), /***/ 7718: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = vectorizeText; module2.exports.processPixels = processPixels; var surfaceNets = __webpack_require__2(3711); @@ -123718,12 +123807,12 @@ var Plotly = (() => { var pixels = getPixels(canvas, context, str, size, lineSpacing, styletags); return processPixels(pixels, options, size); } - } + }) ), /***/ 1538: ( /***/ - function(module2) { + (function(module2) { (function WeakMapModule() { "use strict"; if (typeof ses !== "undefined" && ses.ok && !ses.ok()) { @@ -124052,12 +124141,12 @@ var Plotly = (() => { module2.exports = OurWeakMap; } })(); - } + }) ), /***/ 236: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var hiddenStore = __webpack_require__2(8284); module2.exports = createStore; function createStore() { @@ -124070,12 +124159,12 @@ var Plotly = (() => { return store && store.identity === key ? store : hiddenStore(obj, key); }; } - } + }) ), /***/ 8284: ( /***/ - function(module2) { + (function(module2) { module2.exports = hiddenStore; function hiddenStore(obj, key) { var store = { identity: key }; @@ -124088,12 +124177,12 @@ var Plotly = (() => { }); return store; } - } + }) ), /***/ 606: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var createStore = __webpack_require__2(236); module2.exports = weakMap; function weakMap() { @@ -124115,12 +124204,12 @@ var Plotly = (() => { } }; } - } + }) ), /***/ 3349: ( /***/ - function(module2) { + (function(module2) { "use strict"; function CWiseOp() { return function(SS, a0, t02, p0, Y0, Y1) { @@ -124165,12 +124254,12 @@ var Plotly = (() => { module2.exports = compileCwise({ funcName: "zeroCrossings" }); - } + }) ), /***/ 781: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = findZeroCrossings; var core = __webpack_require__2(3349); @@ -124180,13 +124269,13 @@ var Plotly = (() => { core(array.hi(array.shape[0] - 1), cross, level); return cross; } - } + }) ), /***/ 7790: ( /***/ - function() { - } + (function() { + }) ) /******/ }; @@ -124209,23 +124298,23 @@ var Plotly = (() => { module2.loaded = true; return module2.exports; } - !function() { - __webpack_require__.g = function() { + !(function() { + __webpack_require__.g = (function() { if (typeof globalThis === "object") return globalThis; try { return this || new Function("return this")(); } catch (e) { if (typeof window === "object") return window; } - }(); - }(); - !function() { + })(); + })(); + !(function() { __webpack_require__.nmd = function(module2) { module2.paths = []; if (!module2.children) module2.children = []; return module2; }; - }(); + })(); var __webpack_exports__ = __webpack_require__(1964); module.exports = __webpack_exports__; })(); @@ -133931,34 +134020,35 @@ var Plotly = (() => { } return false; } + var ANTIMERIDIAN_LON_SHIFT = 360; + function doesCrossAntiMeridian(pts) { + for (let l = 0; l < pts.length - 1; l++) { + if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; + } + return null; + } function feature2polygons(feature) { var geometry = feature.geometry; var coords = geometry.coordinates; var loc = feature.id; var polygons = []; var appendPolygon, j, k, m; - function doesCrossAntiMerdian(pts) { - for (var l = 0; l < pts.length - 1; l++) { - if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; - } - return null; - } if (loc === "RUS" || loc === "FJI") { appendPolygon = function(_pts) { var pts; - if (doesCrossAntiMerdian(_pts) === null) { + if (doesCrossAntiMeridian(_pts) === null) { pts = _pts; } else { pts = new Array(_pts.length); for (m = 0; m < _pts.length; m++) { - pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + 360 : _pts[m][0], _pts[m][1]]; + pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + ANTIMERIDIAN_LON_SHIFT : _pts[m][0], _pts[m][1]]; } } polygons.push(polygon.tester(pts)); }; } else if (loc === "ATA") { appendPolygon = function(pts) { - var crossAntiMeridianIndex = doesCrossAntiMerdian(pts); + var crossAntiMeridianIndex = doesCrossAntiMeridian(pts); if (crossAntiMeridianIndex === null) { return polygons.push(polygon.tester(pts)); } @@ -133966,7 +134056,7 @@ var Plotly = (() => { var si = 0; for (m = 0; m < pts.length; m++) { if (m > crossAntiMeridianIndex) { - stitch[si++] = [pts[m][0] + 360, pts[m][1]]; + stitch[si++] = [pts[m][0] + ANTIMERIDIAN_LON_SHIFT, pts[m][1]]; } else if (m === crossAntiMeridianIndex) { stitch[si++] = pts[m]; stitch[si++] = [pts[m][0], -90]; @@ -134156,13 +134246,39 @@ var Plotly = (() => { function computeBbox(d) { return turfBbox(d); } + function getFitboundsLonRange(lons) { + const sorted = lons.filter(isFinite).sort((a, b) => a - b); + if (sorted.length < 2) return null; + const n = sorted.length; + const naiveSpan = sorted[n - 1] - sorted[0]; + if (naiveSpan >= 360) return null; + let maxGap = -Infinity; + let gapStart = -1; + for (let i = 0; i < n - 1; i++) { + const gap = sorted[i + 1] - sorted[i]; + if (gap > maxGap) { + maxGap = gap; + gapStart = i; + } + } + const antimeridianGap = 360 - naiveSpan; + if (maxGap <= antimeridianGap) return null; + return [sorted[gapStart + 1], sorted[gapStart] + ANTIMERIDIAN_LON_SHIFT]; + } + function unwrapLonRange([lon0, lon1]) { + return [lon0, lon0 > 0 && lon1 < 0 ? lon1 + ANTIMERIDIAN_LON_SHIFT : lon1]; + } module.exports = { locationToFeature, feature2polygons, getTraceGeojson, extractTraceFeature, fetchTraceGeoData, - computeBbox + computeBbox, + doesCrossAntiMeridian, + getFitboundsLonRange, + unwrapLonRange, + ANTIMERIDIAN_LON_SHIFT }; } }); @@ -134430,7 +134546,7 @@ var Plotly = (() => { "node_modules/d3-array/dist/d3-array.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : factory(global2.d3 = global2.d3 || {}); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function ascending(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; @@ -134841,7 +134957,7 @@ var Plotly = (() => { exports2.variance = variance; exports2.zip = zip; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -134850,7 +134966,7 @@ var Plotly = (() => { "node_modules/d3-geo/dist/d3-geo.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array()) : typeof define === "function" && false ? define(["exports", "d3-array"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}, global2.d3)); - })(exports, function(exports2, d3Array) { + })(exports, (function(exports2, d3Array) { "use strict"; function adder() { return new Adder(); @@ -137159,7 +137275,7 @@ var Plotly = (() => { exports2.geoTransverseMercator = transverseMercator; exports2.geoTransverseMercatorRaw = transverseMercatorRaw; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -137168,7 +137284,7 @@ var Plotly = (() => { "node_modules/d3-geo-projection/dist/d3-geo-projection.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_geo(), require_d3_array()) : typeof define === "function" && false ? define(["exports", "d3-geo", "d3-array"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3); - })(exports, function(exports2, d3Geo, d3Array) { + })(exports, (function(exports2, d3Geo, d3Array) { "use strict"; var abs = Math.abs; var atan = Math.atan; @@ -140545,7 +140661,7 @@ var Plotly = (() => { exports2.geoWinkel3 = winkel3; exports2.geoWinkel3Raw = winkel3Raw; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -140928,6 +141044,7 @@ var Plotly = (() => { var createGeoZoom = require_zoom(); var constants = require_constants22(); var geoUtils = require_geo_location_utils(); + var { getFitboundsLonRange, unwrapLonRange } = geoUtils; var topojsonUtils = require_topojson_utils(); var topojsonFeature = require_topojson_client().feature; function Geo(opts) { @@ -141065,6 +141182,7 @@ var Plotly = (() => { this._render(); }; proto.updateProjection = function(geoCalcData, fullLayout) { + var _a; var gd = this.graphDiv; var geoLayout = fullLayout[this.id]; var gs = fullLayout._size; @@ -141091,6 +141209,31 @@ var Plotly = (() => { axLat._length = extent[1][1] - extent[0][1]; axLon.range = getAutoRange(gd, axLon); axLat.range = getAutoRange(gd, axLat); + if (!this.hasChoropleth && geoLayout.fitbounds === "locations") { + var lons = []; + var hasLocationData = false; + for (var i = 0; i < geoCalcData.length; i++) { + var calcTrace = geoCalcData[i]; + var fitTrace = calcTrace[0].trace; + if (fitTrace.visible !== true) continue; + if ((_a = fitTrace.locations) == null ? void 0 : _a.length) { + hasLocationData = true; + break; + } + for (var j = 0; j < calcTrace.length; j++) { + var lonlat = calcTrace[j].lonlat; + if (lonlat) lons.push(lonlat[0]); + } + } + if (!hasLocationData) { + var fitLonRange = getFitboundsLonRange(lons); + if (fitLonRange) { + var lonDataSpan = Lib.aggNums(Math.max, null, lons) - Lib.aggNums(Math.min, null, lons); + var lonPad = lonDataSpan > 0 ? (axLon.range[1] - axLon.range[0] - lonDataSpan) / 2 * (fitLonRange[1] - fitLonRange[0]) / lonDataSpan : 0; + axLon.range = [fitLonRange[0] - lonPad, fitLonRange[1] + lonPad]; + } + } + } var midLon = (axLon.range[0] + axLon.range[1]) / 2; var midLat = (axLat.range[0] + axLat.range[1]) / 2; if (geoLayout._isScoped) { @@ -141500,11 +141643,9 @@ var Plotly = (() => { } function makeRangeBox(lon, lat) { var clipPad = constants.clipPad; - var lon0 = lon[0] + clipPad; - var lon1 = lon[1] - clipPad; + const [lon0, lon1] = unwrapLonRange([lon[0] + clipPad, lon[1] - clipPad]); var lat0 = lat[0] + clipPad; var lat1 = lat[1] - clipPad; - if (lon0 > 0 && lon1 < 0) lon1 += 360; var dlon4 = (lon1 - lon0) / 4; return { type: "Polygon", @@ -141741,6 +141882,7 @@ var Plotly = (() => { var Lib = require_lib(); var handleSubplotDefaults = require_subplot_defaults(); var getSubplotData = require_get_data().getSubplotData; + var { unwrapLonRange } = require_geo_location_utils(); var constants = require_constants22(); var layoutAttributes = require_layout_attributes18(); var axesNames = constants.axesNames; @@ -141823,9 +141965,7 @@ var Plotly = (() => { } var lonRange = geoLayoutOut.lonaxis.range; var latRange = geoLayoutOut.lataxis.range; - var lon0 = lonRange[0]; - var lon1 = lonRange[1]; - if (lon0 > 0 && lon1 < 0) lon1 += 360; + const [lon0, lon1] = unwrapLonRange(lonRange); var centerLon = (lon0 + lon1) / 2; var projLon; if (!isAlbersUsa) { @@ -142291,13 +142431,14 @@ var Plotly = (() => { var Axes = require_axes(); var attributes = require_attributes49(); var fillText = require_lib().fillText; + var { ANTIMERIDIAN_LON_SHIFT } = require_geo_location_utils(); module.exports = function hoverPoints(pointData, xval, yval) { var cd = pointData.cd; var trace = cd[0].trace; var geo = pointData.subplot; var pt, i, j, isInside; var xy = [xval, yval]; - var altXy = [xval + 360, yval]; + const altXy = [xval + ANTIMERIDIAN_LON_SHIFT, yval]; for (i = 0; i < cd.length; i++) { pt = cd[i]; isInside = false; @@ -143489,7 +143630,7 @@ var Plotly = (() => { Object.defineProperty(exports, "__esModule", { value: true }); - var _slicedToArray = /* @__PURE__ */ function() { + var _slicedToArray = /* @__PURE__ */ (function() { function sliceIterator(arr, i) { var _arr = []; var _n = true; @@ -143521,7 +143662,7 @@ var Plotly = (() => { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; - }(); + })(); var TAU = Math.PI * 2; var mapToEllipse = function mapToEllipse2(_ref, rx, ry, cosphi, sinphi, centerx, centery) { var x = _ref.x, y = _ref.y; @@ -146717,7 +146858,7 @@ var Plotly = (() => { if (!require_is_implemented2()()) { shim = require_shim3(); } - module.exports = function() { + module.exports = (function() { var nullObject, polyProps, desc; if (!shim) return create; if (shim.level !== 1) return create; @@ -146746,7 +146887,7 @@ var Plotly = (() => { return function(prototype, props) { return create(prototype === null ? nullObject : prototype, props); }; - }(); + })(); } }); @@ -146765,7 +146906,7 @@ var Plotly = (() => { if (prototype === null || isObject(prototype)) return obj; throw new TypeError("Prototype must be null or an object"); }; - module.exports = function(status) { + module.exports = (function(status) { var fn, set; if (!status) return null; if (status.level === 2) { @@ -146799,8 +146940,8 @@ var Plotly = (() => { writable: false, value: status.level }); - }( - function() { + })( + (function() { var tmpObj1 = /* @__PURE__ */ Object.create(null), tmpObj2 = {}, set, desc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__"); if (desc) { try { @@ -146816,7 +146957,7 @@ var Plotly = (() => { tmpObj1.__proto__ = tmpObj2; if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 1 }; return false; - }() + })() ); require_create2(); } @@ -147144,9 +147285,9 @@ var Plotly = (() => { "node_modules/es5-ext/function/is-arguments.js"(exports, module) { "use strict"; var objToString = Object.prototype.toString; - var id = objToString.call(/* @__PURE__ */ function() { + var id = objToString.call(/* @__PURE__ */ (function() { return arguments; - }()); + })()); module.exports = function(value) { return objToString.call(value) === id; }; @@ -147185,7 +147326,7 @@ var Plotly = (() => { if (typeof window === "object" && window) return window; throw new Error("Unable to resolve global `this`"); }; - module.exports = function() { + module.exports = (function() { if (this) return this; try { Object.defineProperty(Object.prototype, "__global__", { @@ -147203,7 +147344,7 @@ var Plotly = (() => { } finally { delete Object.prototype.__global__; } - }(); + })(); } }); @@ -148183,10 +148324,10 @@ var Plotly = (() => { var require_is_native_implemented = __commonJS({ "node_modules/es6-weak-map/is-native-implemented.js"(exports, module) { "use strict"; - module.exports = function() { + module.exports = (function() { if (typeof WeakMap !== "function") return false; return Object.prototype.toString.call(/* @__PURE__ */ new WeakMap()) === "[object WeakMap]"; - }(); + })(); } }); @@ -150135,7 +150276,7 @@ void main() { "node_modules/regl/dist/regl.unchecked.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : global2.createREGL = factory(); - })(exports, function() { + })(exports, (function() { "use strict"; var extend2 = function(base, opts) { var keys = Object.keys(opts); @@ -157688,7 +157829,7 @@ void main() { return { next: nextState, current: currentState, - procs: function() { + procs: (function() { var env = createREGLEnvironment(); var poll = env.proc("poll"); var refresh = env.proc("refresh"); @@ -157871,7 +158012,7 @@ void main() { refresh(block); }); return env.compile(); - }(), + })(), compile: compileCommand }; } @@ -158503,7 +158644,7 @@ void main() { return regl; } return wrapREGL; - }); + })); } }); @@ -159962,7 +160103,7 @@ void main() { "node_modules/@plotly/regl/dist/regl.unchecked.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : global2.createREGL = factory(); - })(exports, function() { + })(exports, (function() { "use strict"; var extend2 = function(base, opts) { var keys = Object.keys(opts); @@ -167515,7 +167656,7 @@ void main() { return { next: nextState, current: currentState, - procs: function() { + procs: (function() { var env = createREGLEnvironment(); var poll = env.proc("poll"); var refresh = env.proc("refresh"); @@ -167698,7 +167839,7 @@ void main() { refresh(block); }); return env.compile(); - }(), + })(), compile: compileCommand }; } @@ -168330,7 +168471,7 @@ void main() { return regl; } return wrapREGL; - }); + })); } }); @@ -168490,7 +168631,9 @@ void main() { scene.line2d.update(scene.lineOptions); } if (scene.error2d) { - var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []); + var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []).map(function(errorOptions) { + return errorOptions || { positions: [], errors: [] }; + }); scene.error2d.update(errorBatch); } if (scene.scatter2d) { @@ -169232,12 +169375,12 @@ void main() { } }); - // src/generated/regl-codegen/cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81 - var require_cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81 = __commonJS({ - "src/generated/regl-codegen/cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81"(exports, module) { - module.exports = function anonymous(g0, g48, g115, g125, g127, g133, g135, g196) { + // src/generated/regl-codegen/49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210 + var require_e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210 = __commonJS({ + "src/generated/regl-codegen/49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210"(exports, module) { + module.exports = function anonymous(g0, g48, g92, g93, g99, g100, g103, g119, g137, g141, g147, g149, g151, g155, g159, g163, g167, g184, g186, g188, g190, g192, g194, g196, g198, g200, g202, g204, g206, g217, g219, g227, g231, g234, g237, g240, g243, g246, g249, g252, g255, g257, g259, g275, g302, g315, g317, g353, g354, g355, g356) { "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v112, v193; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50; v1 = g0.gl; v2 = g0.context; v3 = g0.strings; @@ -169358,571 +169501,1290 @@ void main() { "cw": 2304, "ccw": 2305 }; - v112 = {}; - v193 = {}; + v49 = {}; + v49.stride = 8; + v49.offset = 8; + v50 = {}; + v50.stride = 8; + v50.offset = 8; return { "draw": function(a0) { - var v49, v50, v51, v52, v53, v54, v101, v102, v103, v104, v105, v106, v107, v108, v109, v110, v111, v113, v114; - v49 = v14.angle_instanced_arrays; - v50 = a0["framebuffer"]; - v51 = v13.getFramebuffer(v50); + var v51, v52, v85, v86, v87, v88, v89, v90, v91, v94, v95, v96, v97, v98, v101, v102, v104, v105, v106, v107, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v120, v121, v122, v123, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v138, v139, v140, v142, v143, v144, v145, v146, v148, v150, v152, v153, v154, v156, v157, v158, v160, v161, v162, v164, v165, v166, v168, v169, v170, v171, v172; + v51 = v14.angle_instanced_arrays; v52 = v13.next; - v13.next = v51; - v53 = v2.framebufferWidth; - v2.framebufferWidth = v51 ? v51.width : v2.drawingBufferWidth; - v54 = v2.framebufferHeight; - v2.framebufferHeight = v51 ? v51.height : v2.drawingBufferHeight; - if (v51 !== v13.cur) { - if (v51) { - v1.bindFramebuffer(36160, v51.framebuffer); + if (v52 !== v13.cur) { + if (v52) { + v1.bindFramebuffer(36160, v52.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v51; + v13.cur = v52; } if (v5.dirty) { - var v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97, v98, v99, v100; - v55 = v4.dither; - if (v55 !== v5.dither) { - if (v55) { + var v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84; + v53 = v4.dither; + if (v53 !== v5.dither) { + if (v53) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v55; - } - v56 = v4.blend_enable; - if (v56 !== v5.blend_enable) { - if (v56) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = v56; - } - v57 = v17[0]; - v58 = v17[1]; - v59 = v17[2]; - v60 = v17[3]; - if (v57 !== v18[0] || v58 !== v18[1] || v59 !== v18[2] || v60 !== v18[3]) { - v1.blendColor(v57, v58, v59, v60); - v18[0] = v57; - v18[1] = v58; - v18[2] = v59; - v18[3] = v60; - } - v61 = v19[0]; - v62 = v19[1]; - if (v61 !== v20[0] || v62 !== v20[1]) { - v1.blendEquationSeparate(v61, v62); - v20[0] = v61; - v20[1] = v62; - } - v63 = v21[0]; - v64 = v21[1]; - v65 = v21[2]; - v66 = v21[3]; - if (v63 !== v22[0] || v64 !== v22[1] || v65 !== v22[2] || v66 !== v22[3]) { - v1.blendFuncSeparate(v63, v64, v65, v66); - v22[0] = v63; - v22[1] = v64; - v22[2] = v65; - v22[3] = v66; - } - v67 = v4.depth_enable; - if (v67 !== v5.depth_enable) { - if (v67) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v67; + v5.dither = v53; } - v68 = v4.depth_func; - if (v68 !== v5.depth_func) { - v1.depthFunc(v68); - v5.depth_func = v68; + v54 = v4.depth_func; + if (v54 !== v5.depth_func) { + v1.depthFunc(v54); + v5.depth_func = v54; } - v69 = v23[0]; - v70 = v23[1]; - if (v69 !== v24[0] || v70 !== v24[1]) { - v1.depthRange(v69, v70); - v24[0] = v69; - v24[1] = v70; + v55 = v23[0]; + v56 = v23[1]; + if (v55 !== v24[0] || v56 !== v24[1]) { + v1.depthRange(v55, v56); + v24[0] = v55; + v24[1] = v56; } - v71 = v4.depth_mask; - if (v71 !== v5.depth_mask) { - v1.depthMask(v71); - v5.depth_mask = v71; + v57 = v4.depth_mask; + if (v57 !== v5.depth_mask) { + v1.depthMask(v57); + v5.depth_mask = v57; } - v72 = v25[0]; - v73 = v25[1]; - v74 = v25[2]; - v75 = v25[3]; - if (v72 !== v26[0] || v73 !== v26[1] || v74 !== v26[2] || v75 !== v26[3]) { - v1.colorMask(v72, v73, v74, v75); - v26[0] = v72; - v26[1] = v73; - v26[2] = v74; - v26[3] = v75; + v58 = v25[0]; + v59 = v25[1]; + v60 = v25[2]; + v61 = v25[3]; + if (v58 !== v26[0] || v59 !== v26[1] || v60 !== v26[2] || v61 !== v26[3]) { + v1.colorMask(v58, v59, v60, v61); + v26[0] = v58; + v26[1] = v59; + v26[2] = v60; + v26[3] = v61; } - v76 = v4.cull_enable; - if (v76 !== v5.cull_enable) { - if (v76) { + v62 = v4.cull_enable; + if (v62 !== v5.cull_enable) { + if (v62) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v76; + v5.cull_enable = v62; } - v77 = v4.cull_face; - if (v77 !== v5.cull_face) { - v1.cullFace(v77); - v5.cull_face = v77; + v63 = v4.cull_face; + if (v63 !== v5.cull_face) { + v1.cullFace(v63); + v5.cull_face = v63; } - v78 = v4.frontFace; - if (v78 !== v5.frontFace) { - v1.frontFace(v78); - v5.frontFace = v78; + v64 = v4.frontFace; + if (v64 !== v5.frontFace) { + v1.frontFace(v64); + v5.frontFace = v64; } - v79 = v4.lineWidth; - if (v79 !== v5.lineWidth) { - v1.lineWidth(v79); - v5.lineWidth = v79; + v65 = v4.lineWidth; + if (v65 !== v5.lineWidth) { + v1.lineWidth(v65); + v5.lineWidth = v65; } - v80 = v4.polygonOffset_enable; - if (v80 !== v5.polygonOffset_enable) { - if (v80) { + v66 = v4.polygonOffset_enable; + if (v66 !== v5.polygonOffset_enable) { + if (v66) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v80; + v5.polygonOffset_enable = v66; } - v81 = v27[0]; - v82 = v27[1]; - if (v81 !== v28[0] || v82 !== v28[1]) { - v1.polygonOffset(v81, v82); - v28[0] = v81; - v28[1] = v82; + v67 = v27[0]; + v68 = v27[1]; + if (v67 !== v28[0] || v68 !== v28[1]) { + v1.polygonOffset(v67, v68); + v28[0] = v67; + v28[1] = v68; } - v83 = v4.sample_alpha; - if (v83 !== v5.sample_alpha) { - if (v83) { + v69 = v4.sample_alpha; + if (v69 !== v5.sample_alpha) { + if (v69) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v83; + v5.sample_alpha = v69; } - v84 = v4.sample_enable; - if (v84 !== v5.sample_enable) { - if (v84) { + v70 = v4.sample_enable; + if (v70 !== v5.sample_enable) { + if (v70) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v84; - } - v85 = v29[0]; - v86 = v29[1]; - if (v85 !== v30[0] || v86 !== v30[1]) { - v1.sampleCoverage(v85, v86); - v30[0] = v85; - v30[1] = v86; - } - v87 = v4.stencil_enable; - if (v87 !== v5.stencil_enable) { - if (v87) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = v87; + v5.sample_enable = v70; } - v88 = v4.stencil_mask; - if (v88 !== v5.stencil_mask) { - v1.stencilMask(v88); - v5.stencil_mask = v88; + v71 = v29[0]; + v72 = v29[1]; + if (v71 !== v30[0] || v72 !== v30[1]) { + v1.sampleCoverage(v71, v72); + v30[0] = v71; + v30[1] = v72; } - v89 = v31[0]; - v90 = v31[1]; - v91 = v31[2]; - if (v89 !== v32[0] || v90 !== v32[1] || v91 !== v32[2]) { - v1.stencilFunc(v89, v90, v91); - v32[0] = v89; - v32[1] = v90; - v32[2] = v91; + v73 = v4.stencil_mask; + if (v73 !== v5.stencil_mask) { + v1.stencilMask(v73); + v5.stencil_mask = v73; } - v92 = v33[0]; - v93 = v33[1]; - v94 = v33[2]; - v95 = v33[3]; - if (v92 !== v34[0] || v93 !== v34[1] || v94 !== v34[2] || v95 !== v34[3]) { - v1.stencilOpSeparate(v92, v93, v94, v95); - v34[0] = v92; - v34[1] = v93; - v34[2] = v94; - v34[3] = v95; + v74 = v31[0]; + v75 = v31[1]; + v76 = v31[2]; + if (v74 !== v32[0] || v75 !== v32[1] || v76 !== v32[2]) { + v1.stencilFunc(v74, v75, v76); + v32[0] = v74; + v32[1] = v75; + v32[2] = v76; } - v96 = v35[0]; - v97 = v35[1]; - v98 = v35[2]; - v99 = v35[3]; - if (v96 !== v36[0] || v97 !== v36[1] || v98 !== v36[2] || v99 !== v36[3]) { - v1.stencilOpSeparate(v96, v97, v98, v99); - v36[0] = v96; - v36[1] = v97; - v36[2] = v98; - v36[3] = v99; + v77 = v33[0]; + v78 = v33[1]; + v79 = v33[2]; + v80 = v33[3]; + if (v77 !== v34[0] || v78 !== v34[1] || v79 !== v34[2] || v80 !== v34[3]) { + v1.stencilOpSeparate(v77, v78, v79, v80); + v34[0] = v77; + v34[1] = v78; + v34[2] = v79; + v34[3] = v80; } - v100 = v4.scissor_enable; - if (v100 !== v5.scissor_enable) { - if (v100) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v100; + v81 = v35[0]; + v82 = v35[1]; + v83 = v35[2]; + v84 = v35[3]; + if (v81 !== v36[0] || v82 !== v36[1] || v83 !== v36[2] || v84 !== v36[3]) { + v1.stencilOpSeparate(v81, v82, v83, v84); + v36[0] = v81; + v36[1] = v82; + v36[2] = v83; + v36[3] = v84; } } - v101 = v2.framebufferWidth; - v102 = v2.framebufferHeight; - v103 = v2.viewportWidth; - v2.viewportWidth = v101; - v104 = v2.viewportHeight; - v2.viewportHeight = v102; - v1.viewport(0, 0, v101, v102); - v40[0] = 0; - v40[1] = 0; - v40[2] = v101; - v40[3] = v102; - v105 = v2.framebufferWidth; - v106 = v2.framebufferHeight; - v1.scissor(0, 0, v105, v106); - v38[0] = 0; - v38[1] = 0; - v38[2] = v105; - v38[3] = v106; - v107 = v5.profile; - if (v107) { - v108 = performance.now(); - g48.count++; + v85 = a0["viewport"]; + v86 = v85.x | 0; + v87 = v85.y | 0; + v88 = "width" in v85 ? v85.width | 0 : v2.framebufferWidth - v86; + v89 = "height" in v85 ? v85.height | 0 : v2.framebufferHeight - v87; + v90 = v2.viewportWidth; + v2.viewportWidth = v88; + v91 = v2.viewportHeight; + v2.viewportHeight = v89; + v1.viewport(v86, v87, v88, v89); + v40[0] = v86; + v40[1] = v87; + v40[2] = v88; + v40[3] = v89; + v1.blendColor(0, 0, 0, 0); + v18[0] = 0; + v18[1] = 0; + v18[2] = 0; + v18[3] = 0; + if (g92) { + v1.enable(3042); + } else { + v1.disable(3042); } - v109 = v9.frag; - v110 = v9.vert; - v111 = v9.program(v110, v109); - v1.useProgram(v111.program); - v11.setVAO(null); - v113 = v111.id; - v114 = v112[v113]; - if (v114) { - v114.call(this, a0); + v5.blend_enable = g92; + v1.blendEquationSeparate(32774, 32774); + v20[0] = 32774; + v20[1] = 32774; + v1.blendFuncSeparate(770, 771, 773, 1); + v22[0] = 770; + v22[1] = 771; + v22[2] = 773; + v22[3] = 1; + if (g93) { + v1.enable(2929); } else { - v114 = v112[v113] = g115(v111); - v114.call(this, a0); + v1.disable(2929); } - v5.dirty = true; - v11.setVAO(null); - v13.next = v52; - v2.framebufferWidth = v53; - v2.framebufferHeight = v54; - v2.viewportWidth = v103; - v2.viewportHeight = v104; - if (v107) { - g48.cpuTime += performance.now() - v108; + v5.depth_enable = g93; + v94 = a0["viewport"]; + v95 = v94.x | 0; + v96 = v94.y | 0; + v97 = "width" in v94 ? v94.width | 0 : v2.framebufferWidth - v95; + v98 = "height" in v94 ? v94.height | 0 : v2.framebufferHeight - v96; + v1.scissor(v95, v96, v97, v98); + v38[0] = v95; + v38[1] = v96; + v38[2] = v97; + v38[3] = v98; + if (g99) { + v1.enable(3089); + } else { + v1.disable(3089); } - }, - "scope": function(a0, a1, a2) { - var v116, v117, v118, v119, v120, v121, v122, v123, v124, v126, v128, v129, v130, v131, v132, v134, v136, v137, v138, v139, v140; - v116 = a0["framebuffer"]; - v117 = v13.getFramebuffer(v116); - v118 = v13.next; - v13.next = v117; - v119 = v2.framebufferWidth; - v2.framebufferWidth = v117 ? v117.width : v2.drawingBufferWidth; - v120 = v2.framebufferHeight; - v2.framebufferHeight = v117 ? v117.height : v2.drawingBufferHeight; - v121 = v2.framebufferWidth; - v122 = v2.framebufferHeight; - v123 = v2.viewportWidth; - v2.viewportWidth = v121; - v124 = v2.viewportHeight; - v2.viewportHeight = v122; - v126 = v39[0]; - v39[0] = g125; - v128 = v39[1]; - v39[1] = g127; - v129 = v39[2]; - v39[2] = v121; - v130 = v39[3]; - v39[3] = v122; - v131 = v2.framebufferWidth; - v132 = v2.framebufferHeight; - v134 = v37[0]; - v37[0] = g133; - v136 = v37[1]; - v37[1] = g135; - v137 = v37[2]; - v37[2] = v131; - v138 = v37[3]; - v37[3] = v132; - v139 = v5.profile; - if (v139) { - v140 = performance.now(); - g48.count++; + v5.scissor_enable = g99; + if (g100) { + v1.enable(2960); + } else { + v1.disable(2960); } - v5.dirty = true; - a1(v2, a0, a2); - v13.next = v118; - v2.framebufferWidth = v119; - v2.framebufferHeight = v120; - v2.viewportWidth = v123; - v2.viewportHeight = v124; - v39[0] = v126; - v39[1] = v128; - v39[2] = v129; - v39[3] = v130; - v37[0] = v134; - v37[1] = v136; - v37[2] = v137; - v37[3] = v138; - if (v139) { - g48.cpuTime += performance.now() - v140; + v5.stencil_enable = g100; + v101 = v5.profile; + if (v101) { + v102 = performance.now(); + g48.count++; } - v5.dirty = true; - }, - "batch": function(a0, a1) { - var v141, v188, v189, v190, v191, v192, v194, v195; - v141 = v14.angle_instanced_arrays; - if (v5.dirty) { - var v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v177, v178, v179, v180, v181, v182, v183, v184, v185, v186, v187; - v142 = v4.dither; - if (v142 !== v5.dither) { - if (v142) { - v1.enable(3024); + v1.useProgram(g103.program); + v104 = v14.angle_instanced_arrays; + v11.setVAO(null); + v105 = a0["positionBuffer"]; + v49.buffer = v105; + v106 = false; + v107 = 1; + v108 = 0; + v109 = 0; + v110 = 0; + v111 = 0; + v112 = null; + v113 = 0; + v114 = false; + v115 = 5126; + v116 = 0; + v117 = 0; + v118 = 0; + if (v16(v49)) { + v106 = true; + v112 = v8.createStream(34962, v49); + v115 = v112.dtype; + } else { + v112 = v8.getBuffer(v49); + if (v112) { + v115 = v112.dtype; + } else if ("constant" in v49) { + v107 = 2; + if (typeof v49.constant === "number") { + v108 = v49.constant; + v109 = v110 = v111 = 0; } else { - v1.disable(3024); + v108 = v49.constant.length > 0 ? v49.constant[0] : 0; + v109 = v49.constant.length > 1 ? v49.constant[1] : 0; + v110 = v49.constant.length > 2 ? v49.constant[2] : 0; + v111 = v49.constant.length > 3 ? v49.constant[3] : 0; } - v5.dither = v142; - } - v143 = v4.blend_enable; - if (v143 !== v5.blend_enable) { - if (v143) { - v1.enable(3042); + } else { + if (v16(v49.buffer)) { + v112 = v8.createStream(34962, v49.buffer); } else { - v1.disable(3042); + v112 = v8.getBuffer(v49.buffer); } - v5.blend_enable = v143; - } - v144 = v17[0]; - v145 = v17[1]; - v146 = v17[2]; - v147 = v17[3]; - if (v144 !== v18[0] || v145 !== v18[1] || v146 !== v18[2] || v147 !== v18[3]) { - v1.blendColor(v144, v145, v146, v147); - v18[0] = v144; - v18[1] = v145; - v18[2] = v146; - v18[3] = v147; - } - v148 = v19[0]; - v149 = v19[1]; - if (v148 !== v20[0] || v149 !== v20[1]) { - v1.blendEquationSeparate(v148, v149); - v20[0] = v148; - v20[1] = v149; - } - v150 = v21[0]; - v151 = v21[1]; - v152 = v21[2]; - v153 = v21[3]; - if (v150 !== v22[0] || v151 !== v22[1] || v152 !== v22[2] || v153 !== v22[3]) { - v1.blendFuncSeparate(v150, v151, v152, v153); - v22[0] = v150; - v22[1] = v151; - v22[2] = v152; - v22[3] = v153; + v115 = "type" in v49 ? v46[v49.type] : v112.dtype; + v114 = !!v49.normalized; + v113 = v49.size | 0; + v116 = v49.offset | 0; + v117 = v49.stride | 0; + v118 = v49.divisor | 0; } - v154 = v4.depth_enable; - if (v154 !== v5.depth_enable) { - if (v154) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v154; + } + v120 = g119.location; + v121 = v10[v120]; + if (v107 === 1) { + if (!v121.buffer) { + v1.enableVertexAttribArray(v120); } - v155 = v4.depth_func; - if (v155 !== v5.depth_func) { - v1.depthFunc(v155); - v5.depth_func = v155; + v122 = v113 || 2; + if (v121.type !== v115 || v121.size !== v122 || v121.buffer !== v112 || v121.normalized !== v114 || v121.offset !== v116 || v121.stride !== v117) { + v1.bindBuffer(34962, v112.buffer); + v1.vertexAttribPointer(v120, v122, v115, v114, v117, v116); + v121.type = v115; + v121.size = v122; + v121.buffer = v112; + v121.normalized = v114; + v121.offset = v116; + v121.stride = v117; } - v156 = v23[0]; - v157 = v23[1]; - if (v156 !== v24[0] || v157 !== v24[1]) { - v1.depthRange(v156, v157); - v24[0] = v156; - v24[1] = v157; + if (v121.divisor !== v118) { + v104.vertexAttribDivisorANGLE(v120, v118); + v121.divisor = v118; } - v158 = v4.depth_mask; - if (v158 !== v5.depth_mask) { - v1.depthMask(v158); - v5.depth_mask = v158; + } else { + if (v121.buffer) { + v1.disableVertexAttribArray(v120); + v121.buffer = null; } - v159 = v25[0]; - v160 = v25[1]; - v161 = v25[2]; - v162 = v25[3]; - if (v159 !== v26[0] || v160 !== v26[1] || v161 !== v26[2] || v162 !== v26[3]) { - v1.colorMask(v159, v160, v161, v162); - v26[0] = v159; - v26[1] = v160; - v26[2] = v161; - v26[3] = v162; + if (v121.x !== v108 || v121.y !== v109 || v121.z !== v110 || v121.w !== v111) { + v1.vertexAttrib4f(v120, v108, v109, v110, v111); + v121.x = v108; + v121.y = v109; + v121.z = v110; + v121.w = v111; } - v163 = v4.cull_enable; - if (v163 !== v5.cull_enable) { - if (v163) { - v1.enable(2884); + } + v123 = a0["positionFractBuffer"]; + v50.buffer = v123; + v124 = false; + v125 = 1; + v126 = 0; + v127 = 0; + v128 = 0; + v129 = 0; + v130 = null; + v131 = 0; + v132 = false; + v133 = 5126; + v134 = 0; + v135 = 0; + v136 = 0; + if (v16(v50)) { + v124 = true; + v130 = v8.createStream(34962, v50); + v133 = v130.dtype; + } else { + v130 = v8.getBuffer(v50); + if (v130) { + v133 = v130.dtype; + } else if ("constant" in v50) { + v125 = 2; + if (typeof v50.constant === "number") { + v126 = v50.constant; + v127 = v128 = v129 = 0; } else { - v1.disable(2884); + v126 = v50.constant.length > 0 ? v50.constant[0] : 0; + v127 = v50.constant.length > 1 ? v50.constant[1] : 0; + v128 = v50.constant.length > 2 ? v50.constant[2] : 0; + v129 = v50.constant.length > 3 ? v50.constant[3] : 0; } - v5.cull_enable = v163; + } else { + if (v16(v50.buffer)) { + v130 = v8.createStream(34962, v50.buffer); + } else { + v130 = v8.getBuffer(v50.buffer); + } + v133 = "type" in v50 ? v46[v50.type] : v130.dtype; + v132 = !!v50.normalized; + v131 = v50.size | 0; + v134 = v50.offset | 0; + v135 = v50.stride | 0; + v136 = v50.divisor | 0; } - v164 = v4.cull_face; - if (v164 !== v5.cull_face) { - v1.cullFace(v164); - v5.cull_face = v164; + } + v138 = g137.location; + v139 = v10[v138]; + if (v125 === 1) { + if (!v139.buffer) { + v1.enableVertexAttribArray(v138); } - v165 = v4.frontFace; - if (v165 !== v5.frontFace) { - v1.frontFace(v165); - v5.frontFace = v165; + v140 = v131 || 2; + if (v139.type !== v133 || v139.size !== v140 || v139.buffer !== v130 || v139.normalized !== v132 || v139.offset !== v134 || v139.stride !== v135) { + v1.bindBuffer(34962, v130.buffer); + v1.vertexAttribPointer(v138, v140, v133, v132, v135, v134); + v139.type = v133; + v139.size = v140; + v139.buffer = v130; + v139.normalized = v132; + v139.offset = v134; + v139.stride = v135; } - v166 = v4.lineWidth; - if (v166 !== v5.lineWidth) { - v1.lineWidth(v166); - v5.lineWidth = v166; + if (v139.divisor !== v136) { + v104.vertexAttribDivisorANGLE(v138, v136); + v139.divisor = v136; } - v167 = v4.polygonOffset_enable; - if (v167 !== v5.polygonOffset_enable) { - if (v167) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v167; + } else { + if (v139.buffer) { + v1.disableVertexAttribArray(v138); + v139.buffer = null; } - v168 = v27[0]; - v169 = v27[1]; - if (v168 !== v28[0] || v169 !== v28[1]) { - v1.polygonOffset(v168, v169); - v28[0] = v168; - v28[1] = v169; + if (v139.x !== v126 || v139.y !== v127 || v139.z !== v128 || v139.w !== v129) { + v1.vertexAttrib4f(v138, v126, v127, v128, v129); + v139.x = v126; + v139.y = v127; + v139.z = v128; + v139.w = v129; } - v170 = v4.sample_alpha; - if (v170 !== v5.sample_alpha) { - if (v170) { - v1.enable(32926); + } + v142 = a0["fill"]; + v143 = v142[0]; + v144 = v142[1]; + v145 = v142[2]; + v146 = v142[3]; + v1.uniform4f(g141.location, v143, v144, v145, v146); + v148 = a0["id"]; + v1.uniform1f(g147.location, v148); + v150 = a0["opacity"]; + v1.uniform1f(g149.location, v150); + v152 = a0["scale"]; + v153 = v152[0]; + v154 = v152[1]; + v1.uniform2f(g151.location, v153, v154); + v156 = a0["scaleFract"]; + v157 = v156[0]; + v158 = v156[1]; + v1.uniform2f(g155.location, v157, v158); + v160 = a0["translate"]; + v161 = v160[0]; + v162 = v160[1]; + v1.uniform2f(g159.location, v161, v162); + v164 = a0["translateFract"]; + v165 = v164[0]; + v166 = v164[1]; + v1.uniform2f(g163.location, v165, v166); + v168 = g167.call(this, v2, a0, 0); + v169 = null; + v170 = v16(v168); + if (v170) { + v169 = v7.createStream(v168); + } else { + v169 = v7.getElements(v168); + } + if (v169) v1.bindBuffer(34963, v169.buffer.buffer); + v171 = v169 ? v169.vertCount : -1; + if (v171) { + v172 = v6.instances; + if (v172 > 0) { + if (v169) { + v104.drawElementsInstancedANGLE(4, v171, v169.type, 0 << (v169.type - 5121 >> 1), v172); } else { - v1.disable(32926); + v104.drawArraysInstancedANGLE(4, 0, v171, v172); } - v5.sample_alpha = v170; - } - v171 = v4.sample_enable; - if (v171 !== v5.sample_enable) { - if (v171) { - v1.enable(32928); + } else if (v172 < 0) { + if (v169) { + v1.drawElements(4, v171, v169.type, 0 << (v169.type - 5121 >> 1)); } else { - v1.disable(32928); + v1.drawArrays(4, 0, v171); } - v5.sample_enable = v171; - } - v172 = v29[0]; - v173 = v29[1]; - if (v172 !== v30[0] || v173 !== v30[1]) { - v1.sampleCoverage(v172, v173); - v30[0] = v172; - v30[1] = v173; } - v174 = v4.stencil_enable; - if (v174 !== v5.stencil_enable) { - if (v174) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = v174; + v5.dirty = true; + v11.setVAO(null); + v2.viewportWidth = v90; + v2.viewportHeight = v91; + if (v101) { + g48.cpuTime += performance.now() - v102; } - v175 = v4.stencil_mask; - if (v175 !== v5.stencil_mask) { - v1.stencilMask(v175); - v5.stencil_mask = v175; + if (v106) { + v8.destroyStream(v112); } - v176 = v31[0]; - v177 = v31[1]; - v178 = v31[2]; - if (v176 !== v32[0] || v177 !== v32[1] || v178 !== v32[2]) { - v1.stencilFunc(v176, v177, v178); - v32[0] = v176; - v32[1] = v177; - v32[2] = v178; + if (v124) { + v8.destroyStream(v130); } - v179 = v33[0]; - v180 = v33[1]; - v181 = v33[2]; - v182 = v33[3]; - if (v179 !== v34[0] || v180 !== v34[1] || v181 !== v34[2] || v182 !== v34[3]) { - v1.stencilOpSeparate(v179, v180, v181, v182); - v34[0] = v179; - v34[1] = v180; - v34[2] = v181; - v34[3] = v182; + if (v170) { + v7.destroyStream(v169); } - v183 = v35[0]; - v184 = v35[1]; - v185 = v35[2]; - v186 = v35[3]; - if (v183 !== v36[0] || v184 !== v36[1] || v185 !== v36[2] || v186 !== v36[3]) { - v1.stencilOpSeparate(v183, v184, v185, v186); - v36[0] = v183; - v36[1] = v184; - v36[2] = v185; - v36[3] = v186; + } + }, + "scope": function(a0, a1, a2) { + var v173, v174, v175, v176, v177, v178, v179, v180, v181, v182, v183, v185, v187, v189, v191, v193, v195, v197, v199, v201, v203, v205, v207, v208, v209, v210, v211, v212, v213, v214, v215, v216, v218, v220, v221, v222, v223, v224, v225, v226, v228, v229, v230, v232, v233, v235, v236, v238, v239, v241, v242, v244, v245, v247, v248, v250, v251, v253, v254, v256, v258, v260, v261, v262, v263, v264, v265, v266, v267, v268, v269, v270, v271, v272, v273, v274, v276, v277, v278, v279, v280, v281, v282, v283, v284, v285, v286, v287, v288, v289, v290, v291, v292, v293, v294, v295, v296, v297, v298, v299, v300, v301, v303, v304, v305, v306, v307, v308, v309, v310, v311, v312, v313, v314, v316, v318; + v173 = a0["viewport"]; + v174 = v173.x | 0; + v175 = v173.y | 0; + v176 = "width" in v173 ? v173.width | 0 : v2.framebufferWidth - v174; + v177 = "height" in v173 ? v173.height | 0 : v2.framebufferHeight - v175; + v178 = v2.viewportWidth; + v2.viewportWidth = v176; + v179 = v2.viewportHeight; + v2.viewportHeight = v177; + v180 = v39[0]; + v39[0] = v174; + v181 = v39[1]; + v39[1] = v175; + v182 = v39[2]; + v39[2] = v176; + v183 = v39[3]; + v39[3] = v177; + v185 = v17[0]; + v17[0] = g184; + v187 = v17[1]; + v17[1] = g186; + v189 = v17[2]; + v17[2] = g188; + v191 = v17[3]; + v17[3] = g190; + v193 = v4.blend_enable; + v4.blend_enable = g192; + v195 = v19[0]; + v19[0] = g194; + v197 = v19[1]; + v19[1] = g196; + v199 = v21[0]; + v21[0] = g198; + v201 = v21[1]; + v21[1] = g200; + v203 = v21[2]; + v21[2] = g202; + v205 = v21[3]; + v21[3] = g204; + v207 = v4.depth_enable; + v4.depth_enable = g206; + v208 = a0["viewport"]; + v209 = v208.x | 0; + v210 = v208.y | 0; + v211 = "width" in v208 ? v208.width | 0 : v2.framebufferWidth - v209; + v212 = "height" in v208 ? v208.height | 0 : v2.framebufferHeight - v210; + v213 = v37[0]; + v37[0] = v209; + v214 = v37[1]; + v37[1] = v210; + v215 = v37[2]; + v37[2] = v211; + v216 = v37[3]; + v37[3] = v212; + v218 = v4.scissor_enable; + v4.scissor_enable = g217; + v220 = v4.stencil_enable; + v4.stencil_enable = g219; + v221 = v5.profile; + if (v221) { + v222 = performance.now(); + g48.count++; + } + v223 = g167.call(this, v2, a0, a2); + v224 = null; + v225 = v16(v223); + if (v225) { + v224 = v7.createStream(v223); + } else { + v224 = v7.getElements(v223); + } + v226 = v6.elements; + v6.elements = v224; + v228 = v6.offset; + v6.offset = g227; + v229 = v224 ? v224.vertCount : -1; + v230 = v6.count; + v6.count = v229; + v232 = v6.primitive; + v6.primitive = g231; + v233 = a0["scale"]; + v235 = v12[g234]; + v12[g234] = v233; + v236 = a0["fill"]; + v238 = v12[g237]; + v12[g237] = v236; + v239 = a0["scaleFract"]; + v241 = v12[g240]; + v12[g240] = v239; + v242 = a0["translateFract"]; + v244 = v12[g243]; + v12[g243] = v242; + v245 = a0["translate"]; + v247 = v12[g246]; + v12[g246] = v245; + v248 = a0["opacity"]; + v250 = v12[g249]; + v12[g249] = v248; + v251 = v2["pixelRatio"]; + v253 = v12[g252]; + v12[g252] = v251; + v254 = a0["id"]; + v256 = v12[g255]; + v12[g255] = v254; + v258 = g257.call(this, v2, a0, a2); + v260 = v12[g259]; + v12[g259] = v258; + v261 = a0["positionBuffer"]; + v49.buffer = v261; + v262 = false; + v263 = 1; + v264 = 0; + v265 = 0; + v266 = 0; + v267 = 0; + v268 = null; + v269 = 0; + v270 = false; + v271 = 5126; + v272 = 0; + v273 = 0; + v274 = 0; + if (v16(v49)) { + v262 = true; + v268 = v8.createStream(34962, v49); + v271 = v268.dtype; + } else { + v268 = v8.getBuffer(v49); + if (v268) { + v271 = v268.dtype; + } else if ("constant" in v49) { + v263 = 2; + if (typeof v49.constant === "number") { + v264 = v49.constant; + v265 = v266 = v267 = 0; + } else { + v264 = v49.constant.length > 0 ? v49.constant[0] : 0; + v265 = v49.constant.length > 1 ? v49.constant[1] : 0; + v266 = v49.constant.length > 2 ? v49.constant[2] : 0; + v267 = v49.constant.length > 3 ? v49.constant[3] : 0; + } + } else { + if (v16(v49.buffer)) { + v268 = v8.createStream(34962, v49.buffer); + } else { + v268 = v8.getBuffer(v49.buffer); + } + v271 = "type" in v49 ? v46[v49.type] : v268.dtype; + v270 = !!v49.normalized; + v269 = v49.size | 0; + v272 = v49.offset | 0; + v273 = v49.stride | 0; + v274 = v49.divisor | 0; } - v187 = v4.scissor_enable; - if (v187 !== v5.scissor_enable) { - if (v187) { - v1.enable(3089); + } + v276 = g275.state; + g275.state = v263; + v277 = g275.x; + g275.x = v264; + v278 = g275.y; + g275.y = v265; + v279 = g275.z; + g275.z = v266; + v280 = g275.w; + g275.w = v267; + v281 = g275.buffer; + g275.buffer = v268; + v282 = g275.size; + g275.size = v269; + v283 = g275.normalized; + g275.normalized = v270; + v284 = g275.type; + g275.type = v271; + v285 = g275.offset; + g275.offset = v272; + v286 = g275.stride; + g275.stride = v273; + v287 = g275.divisor; + g275.divisor = v274; + v288 = a0["positionFractBuffer"]; + v50.buffer = v288; + v289 = false; + v290 = 1; + v291 = 0; + v292 = 0; + v293 = 0; + v294 = 0; + v295 = null; + v296 = 0; + v297 = false; + v298 = 5126; + v299 = 0; + v300 = 0; + v301 = 0; + if (v16(v50)) { + v289 = true; + v295 = v8.createStream(34962, v50); + v298 = v295.dtype; + } else { + v295 = v8.getBuffer(v50); + if (v295) { + v298 = v295.dtype; + } else if ("constant" in v50) { + v290 = 2; + if (typeof v50.constant === "number") { + v291 = v50.constant; + v292 = v293 = v294 = 0; } else { - v1.disable(3089); + v291 = v50.constant.length > 0 ? v50.constant[0] : 0; + v292 = v50.constant.length > 1 ? v50.constant[1] : 0; + v293 = v50.constant.length > 2 ? v50.constant[2] : 0; + v294 = v50.constant.length > 3 ? v50.constant[3] : 0; } - v5.scissor_enable = v187; + } else { + if (v16(v50.buffer)) { + v295 = v8.createStream(34962, v50.buffer); + } else { + v295 = v8.getBuffer(v50.buffer); + } + v298 = "type" in v50 ? v46[v50.type] : v295.dtype; + v297 = !!v50.normalized; + v296 = v50.size | 0; + v299 = v50.offset | 0; + v300 = v50.stride | 0; + v301 = v50.divisor | 0; } } - v188 = v5.profile; - if (v188) { - v189 = performance.now(); + v303 = g302.state; + g302.state = v290; + v304 = g302.x; + g302.x = v291; + v305 = g302.y; + g302.y = v292; + v306 = g302.z; + g302.z = v293; + v307 = g302.w; + g302.w = v294; + v308 = g302.buffer; + g302.buffer = v295; + v309 = g302.size; + g302.size = v296; + v310 = g302.normalized; + g302.normalized = v297; + v311 = g302.type; + g302.type = v298; + v312 = g302.offset; + g302.offset = v299; + v313 = g302.stride; + g302.stride = v300; + v314 = g302.divisor; + g302.divisor = v301; + v316 = v9.vert; + v9.vert = g315; + v318 = v9.frag; + v9.frag = g317; + v5.dirty = true; + a1(v2, a0, a2); + v2.viewportWidth = v178; + v2.viewportHeight = v179; + v39[0] = v180; + v39[1] = v181; + v39[2] = v182; + v39[3] = v183; + v17[0] = v185; + v17[1] = v187; + v17[2] = v189; + v17[3] = v191; + v4.blend_enable = v193; + v19[0] = v195; + v19[1] = v197; + v21[0] = v199; + v21[1] = v201; + v21[2] = v203; + v21[3] = v205; + v4.depth_enable = v207; + v37[0] = v213; + v37[1] = v214; + v37[2] = v215; + v37[3] = v216; + v4.scissor_enable = v218; + v4.stencil_enable = v220; + if (v221) { + g48.cpuTime += performance.now() - v222; + } + if (v225) { + v7.destroyStream(v224); + } + v6.elements = v226; + v6.offset = v228; + v6.count = v230; + v6.primitive = v232; + v12[g234] = v235; + v12[g237] = v238; + v12[g240] = v241; + v12[g243] = v244; + v12[g246] = v247; + v12[g249] = v250; + v12[g252] = v253; + v12[g255] = v256; + v12[g259] = v260; + if (v262) { + v8.destroyStream(v268); + } + g275.state = v276; + g275.x = v277; + g275.y = v278; + g275.z = v279; + g275.w = v280; + g275.buffer = v281; + g275.size = v282; + g275.normalized = v283; + g275.type = v284; + g275.offset = v285; + g275.stride = v286; + g275.divisor = v287; + if (v289) { + v8.destroyStream(v295); + } + g302.state = v303; + g302.x = v304; + g302.y = v305; + g302.z = v306; + g302.w = v307; + g302.buffer = v308; + g302.size = v309; + g302.normalized = v310; + g302.type = v311; + g302.offset = v312; + g302.stride = v313; + g302.divisor = v314; + v9.vert = v316; + v9.frag = v318; + v5.dirty = true; + }, + "batch": function(a0, a1) { + var v319, v320, v357, v358, v359, v360, v361; + v319 = v14.angle_instanced_arrays; + v320 = v13.next; + if (v320 !== v13.cur) { + if (v320) { + v1.bindFramebuffer(36160, v320.framebuffer); + } else { + v1.bindFramebuffer(36160, null); + } + v13.cur = v320; + } + if (v5.dirty) { + var v321, v322, v323, v324, v325, v326, v327, v328, v329, v330, v331, v332, v333, v334, v335, v336, v337, v338, v339, v340, v341, v342, v343, v344, v345, v346, v347, v348, v349, v350, v351, v352; + v321 = v4.dither; + if (v321 !== v5.dither) { + if (v321) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v321; + } + v322 = v4.depth_func; + if (v322 !== v5.depth_func) { + v1.depthFunc(v322); + v5.depth_func = v322; + } + v323 = v23[0]; + v324 = v23[1]; + if (v323 !== v24[0] || v324 !== v24[1]) { + v1.depthRange(v323, v324); + v24[0] = v323; + v24[1] = v324; + } + v325 = v4.depth_mask; + if (v325 !== v5.depth_mask) { + v1.depthMask(v325); + v5.depth_mask = v325; + } + v326 = v25[0]; + v327 = v25[1]; + v328 = v25[2]; + v329 = v25[3]; + if (v326 !== v26[0] || v327 !== v26[1] || v328 !== v26[2] || v329 !== v26[3]) { + v1.colorMask(v326, v327, v328, v329); + v26[0] = v326; + v26[1] = v327; + v26[2] = v328; + v26[3] = v329; + } + v330 = v4.cull_enable; + if (v330 !== v5.cull_enable) { + if (v330) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v330; + } + v331 = v4.cull_face; + if (v331 !== v5.cull_face) { + v1.cullFace(v331); + v5.cull_face = v331; + } + v332 = v4.frontFace; + if (v332 !== v5.frontFace) { + v1.frontFace(v332); + v5.frontFace = v332; + } + v333 = v4.lineWidth; + if (v333 !== v5.lineWidth) { + v1.lineWidth(v333); + v5.lineWidth = v333; + } + v334 = v4.polygonOffset_enable; + if (v334 !== v5.polygonOffset_enable) { + if (v334) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v334; + } + v335 = v27[0]; + v336 = v27[1]; + if (v335 !== v28[0] || v336 !== v28[1]) { + v1.polygonOffset(v335, v336); + v28[0] = v335; + v28[1] = v336; + } + v337 = v4.sample_alpha; + if (v337 !== v5.sample_alpha) { + if (v337) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v337; + } + v338 = v4.sample_enable; + if (v338 !== v5.sample_enable) { + if (v338) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v338; + } + v339 = v29[0]; + v340 = v29[1]; + if (v339 !== v30[0] || v340 !== v30[1]) { + v1.sampleCoverage(v339, v340); + v30[0] = v339; + v30[1] = v340; + } + v341 = v4.stencil_mask; + if (v341 !== v5.stencil_mask) { + v1.stencilMask(v341); + v5.stencil_mask = v341; + } + v342 = v31[0]; + v343 = v31[1]; + v344 = v31[2]; + if (v342 !== v32[0] || v343 !== v32[1] || v344 !== v32[2]) { + v1.stencilFunc(v342, v343, v344); + v32[0] = v342; + v32[1] = v343; + v32[2] = v344; + } + v345 = v33[0]; + v346 = v33[1]; + v347 = v33[2]; + v348 = v33[3]; + if (v345 !== v34[0] || v346 !== v34[1] || v347 !== v34[2] || v348 !== v34[3]) { + v1.stencilOpSeparate(v345, v346, v347, v348); + v34[0] = v345; + v34[1] = v346; + v34[2] = v347; + v34[3] = v348; + } + v349 = v35[0]; + v350 = v35[1]; + v351 = v35[2]; + v352 = v35[3]; + if (v349 !== v36[0] || v350 !== v36[1] || v351 !== v36[2] || v352 !== v36[3]) { + v1.stencilOpSeparate(v349, v350, v351, v352); + v36[0] = v349; + v36[1] = v350; + v36[2] = v351; + v36[3] = v352; + } + } + v1.blendColor(0, 0, 0, 0); + v18[0] = 0; + v18[1] = 0; + v18[2] = 0; + v18[3] = 0; + if (g353) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = g353; + v1.blendEquationSeparate(32774, 32774); + v20[0] = 32774; + v20[1] = 32774; + v1.blendFuncSeparate(770, 771, 773, 1); + v22[0] = 770; + v22[1] = 771; + v22[2] = 773; + v22[3] = 1; + if (g354) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = g354; + if (g355) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = g355; + if (g356) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = g356; + v357 = v5.profile; + if (v357) { + v358 = performance.now(); g48.count += a1; } - v190 = v9.frag; - v191 = v9.vert; - v192 = v9.program(v191, v190); - v1.useProgram(v192.program); + v1.useProgram(g103.program); + v359 = v14.angle_instanced_arrays; + var v445; v11.setVAO(null); - v194 = v192.id; - v195 = v193[v194]; - if (v195) { - v195.call(this, a0, a1); - } else { - v195 = v193[v194] = g196(v192); - v195.call(this, a0, a1); + v445 = v6.instances; + for (v360 = 0; v360 < a1; ++v360) { + v361 = a0[v360]; + var v362, v363, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v375, v376, v377, v378, v379, v380, v381, v382, v383, v384, v385, v386, v387, v388, v389, v390, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v409, v410, v411, v412, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v437, v438, v439, v440, v441, v442, v443, v444; + v362 = v361["viewport"]; + v363 = v362.x | 0; + v364 = v362.y | 0; + v365 = "width" in v362 ? v362.width | 0 : v2.framebufferWidth - v363; + v366 = "height" in v362 ? v362.height | 0 : v2.framebufferHeight - v364; + v367 = v2.viewportWidth; + v2.viewportWidth = v365; + v368 = v2.viewportHeight; + v2.viewportHeight = v366; + v1.viewport(v363, v364, v365, v366); + v40[0] = v363; + v40[1] = v364; + v40[2] = v365; + v40[3] = v366; + v369 = v361["viewport"]; + v370 = v369.x | 0; + v371 = v369.y | 0; + v372 = "width" in v369 ? v369.width | 0 : v2.framebufferWidth - v370; + v373 = "height" in v369 ? v369.height | 0 : v2.framebufferHeight - v371; + v1.scissor(v370, v371, v372, v373); + v38[0] = v370; + v38[1] = v371; + v38[2] = v372; + v38[3] = v373; + v374 = v361["positionBuffer"]; + v49.buffer = v374; + v375 = false; + v376 = 1; + v377 = 0; + v378 = 0; + v379 = 0; + v380 = 0; + v381 = null; + v382 = 0; + v383 = false; + v384 = 5126; + v385 = 0; + v386 = 0; + v387 = 0; + if (v16(v49)) { + v375 = true; + v381 = v8.createStream(34962, v49); + v384 = v381.dtype; + } else { + v381 = v8.getBuffer(v49); + if (v381) { + v384 = v381.dtype; + } else if ("constant" in v49) { + v376 = 2; + if (typeof v49.constant === "number") { + v377 = v49.constant; + v378 = v379 = v380 = 0; + } else { + v377 = v49.constant.length > 0 ? v49.constant[0] : 0; + v378 = v49.constant.length > 1 ? v49.constant[1] : 0; + v379 = v49.constant.length > 2 ? v49.constant[2] : 0; + v380 = v49.constant.length > 3 ? v49.constant[3] : 0; + } + } else { + if (v16(v49.buffer)) { + v381 = v8.createStream(34962, v49.buffer); + } else { + v381 = v8.getBuffer(v49.buffer); + } + v384 = "type" in v49 ? v46[v49.type] : v381.dtype; + v383 = !!v49.normalized; + v382 = v49.size | 0; + v385 = v49.offset | 0; + v386 = v49.stride | 0; + v387 = v49.divisor | 0; + } + } + v388 = g119.location; + v389 = v10[v388]; + if (v376 === 1) { + if (!v389.buffer) { + v1.enableVertexAttribArray(v388); + } + v390 = v382 || 2; + if (v389.type !== v384 || v389.size !== v390 || v389.buffer !== v381 || v389.normalized !== v383 || v389.offset !== v385 || v389.stride !== v386) { + v1.bindBuffer(34962, v381.buffer); + v1.vertexAttribPointer(v388, v390, v384, v383, v386, v385); + v389.type = v384; + v389.size = v390; + v389.buffer = v381; + v389.normalized = v383; + v389.offset = v385; + v389.stride = v386; + } + if (v389.divisor !== v387) { + v359.vertexAttribDivisorANGLE(v388, v387); + v389.divisor = v387; + } + } else { + if (v389.buffer) { + v1.disableVertexAttribArray(v388); + v389.buffer = null; + } + if (v389.x !== v377 || v389.y !== v378 || v389.z !== v379 || v389.w !== v380) { + v1.vertexAttrib4f(v388, v377, v378, v379, v380); + v389.x = v377; + v389.y = v378; + v389.z = v379; + v389.w = v380; + } + } + v391 = v361["positionFractBuffer"]; + v50.buffer = v391; + v392 = false; + v393 = 1; + v394 = 0; + v395 = 0; + v396 = 0; + v397 = 0; + v398 = null; + v399 = 0; + v400 = false; + v401 = 5126; + v402 = 0; + v403 = 0; + v404 = 0; + if (v16(v50)) { + v392 = true; + v398 = v8.createStream(34962, v50); + v401 = v398.dtype; + } else { + v398 = v8.getBuffer(v50); + if (v398) { + v401 = v398.dtype; + } else if ("constant" in v50) { + v393 = 2; + if (typeof v50.constant === "number") { + v394 = v50.constant; + v395 = v396 = v397 = 0; + } else { + v394 = v50.constant.length > 0 ? v50.constant[0] : 0; + v395 = v50.constant.length > 1 ? v50.constant[1] : 0; + v396 = v50.constant.length > 2 ? v50.constant[2] : 0; + v397 = v50.constant.length > 3 ? v50.constant[3] : 0; + } + } else { + if (v16(v50.buffer)) { + v398 = v8.createStream(34962, v50.buffer); + } else { + v398 = v8.getBuffer(v50.buffer); + } + v401 = "type" in v50 ? v46[v50.type] : v398.dtype; + v400 = !!v50.normalized; + v399 = v50.size | 0; + v402 = v50.offset | 0; + v403 = v50.stride | 0; + v404 = v50.divisor | 0; + } + } + v405 = g137.location; + v406 = v10[v405]; + if (v393 === 1) { + if (!v406.buffer) { + v1.enableVertexAttribArray(v405); + } + v407 = v399 || 2; + if (v406.type !== v401 || v406.size !== v407 || v406.buffer !== v398 || v406.normalized !== v400 || v406.offset !== v402 || v406.stride !== v403) { + v1.bindBuffer(34962, v398.buffer); + v1.vertexAttribPointer(v405, v407, v401, v400, v403, v402); + v406.type = v401; + v406.size = v407; + v406.buffer = v398; + v406.normalized = v400; + v406.offset = v402; + v406.stride = v403; + } + if (v406.divisor !== v404) { + v359.vertexAttribDivisorANGLE(v405, v404); + v406.divisor = v404; + } + } else { + if (v406.buffer) { + v1.disableVertexAttribArray(v405); + v406.buffer = null; + } + if (v406.x !== v394 || v406.y !== v395 || v406.z !== v396 || v406.w !== v397) { + v1.vertexAttrib4f(v405, v394, v395, v396, v397); + v406.x = v394; + v406.y = v395; + v406.z = v396; + v406.w = v397; + } + } + v408 = v361["fill"]; + v409 = v408[0]; + v411 = v408[1]; + v413 = v408[2]; + v415 = v408[3]; + if (!v360 || v410 !== v409 || v412 !== v411 || v414 !== v413 || v416 !== v415) { + v410 = v409; + v412 = v411; + v414 = v413; + v416 = v415; + v1.uniform4f(g141.location, v409, v411, v413, v415); + } + v417 = v361["id"]; + if (!v360 || v418 !== v417) { + v418 = v417; + v1.uniform1f(g147.location, v417); + } + v419 = v361["opacity"]; + if (!v360 || v420 !== v419) { + v420 = v419; + v1.uniform1f(g149.location, v419); + } + v421 = v361["scale"]; + v422 = v421[0]; + v424 = v421[1]; + if (!v360 || v423 !== v422 || v425 !== v424) { + v423 = v422; + v425 = v424; + v1.uniform2f(g151.location, v422, v424); + } + v426 = v361["scaleFract"]; + v427 = v426[0]; + v429 = v426[1]; + if (!v360 || v428 !== v427 || v430 !== v429) { + v428 = v427; + v430 = v429; + v1.uniform2f(g155.location, v427, v429); + } + v431 = v361["translate"]; + v432 = v431[0]; + v434 = v431[1]; + if (!v360 || v433 !== v432 || v435 !== v434) { + v433 = v432; + v435 = v434; + v1.uniform2f(g159.location, v432, v434); + } + v436 = v361["translateFract"]; + v437 = v436[0]; + v439 = v436[1]; + if (!v360 || v438 !== v437 || v440 !== v439) { + v438 = v437; + v440 = v439; + v1.uniform2f(g163.location, v437, v439); + } + v441 = g167.call(this, v2, v361, v360); + v442 = null; + v443 = v16(v441); + if (v443) { + v442 = v7.createStream(v441); + } else { + v442 = v7.getElements(v441); + } + if (v442) v1.bindBuffer(34963, v442.buffer.buffer); + v444 = v442 ? v442.vertCount : -1; + if (v444) { + if (v445 > 0) { + if (v442) { + v359.drawElementsInstancedANGLE(4, v444, v442.type, 0 << (v442.type - 5121 >> 1), v445); + } else { + v359.drawArraysInstancedANGLE(4, 0, v444, v445); + } + } else if (v445 < 0) { + if (v442) { + v1.drawElements(4, v444, v442.type, 0 << (v442.type - 5121 >> 1)); + } else { + v1.drawArrays(4, 0, v444); + } + } + v2.viewportWidth = v367; + v2.viewportHeight = v368; + if (v375) { + v8.destroyStream(v381); + } + if (v392) { + v8.destroyStream(v398); + } + if (v443) { + v7.destroyStream(v442); + } + } } v5.dirty = true; v11.setVAO(null); - if (v188) { - g48.cpuTime += performance.now() - v189; + if (v357) { + g48.cpuTime += performance.now() - v358; } } }; @@ -169930,12 +170792,12 @@ void main() { } }); - // src/generated/regl-codegen/8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623 - var require_fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623 = __commonJS({ - "src/generated/regl-codegen/8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623"(exports, module) { - module.exports = function anonymous(g0, g48, g113, g180) { + // src/generated/regl-codegen/6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923 + var require_a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923 = __commonJS({ + "src/generated/regl-codegen/6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923"(exports, module) { + module.exports = function anonymous(g0, g48, g50, g52, g54, g56, g99, g100, g106, g109, g111, g112, g115, g130, g134, g137, g152, g156, g159, g174, g178, g193, g197, g199, g201, g203, g207, g211, g215, g219, g220, g240, g242, g244, g246, g248, g250, g252, g254, g256, g258, g260, g262, g273, g277, g281, g284, g287, g290, g293, g296, g299, g302, g305, g308, g310, g323, g336, g363, g390, g417, g444, g457, g459, g496, g497, g498) { "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v110, v177; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v51, v53, v55; v1 = g0.gl; v2 = g0.context; v3 = g0.strings; @@ -170056,879 +170918,206 @@ void main() { "cw": 2304, "ccw": 2305 }; - v110 = {}; - v177 = {}; + v49 = {}; + v49.buffer = g50; + v49.divisor = 1; + v51 = {}; + v51.buffer = g52; + v51.divisor = 1; + v53 = {}; + v53.buffer = g54; + v53.divisor = 1; + v55 = {}; + v55.buffer = g56; + v55.divisor = 1; return { "draw": function(a0) { - var v49, v50, v105, v106, v107, v108, v109, v111, v112; - v49 = v14.angle_instanced_arrays; - v50 = v13.next; - if (v50 !== v13.cur) { - if (v50) { - v1.bindFramebuffer(36160, v50.framebuffer); + var v57, v58, v92, v93, v94, v95, v96, v97, v98, v101, v102, v103, v104, v105, v107, v108, v110, v113, v114, v116, v117, v118, v119, v120, v121, v122, v123, v124, v125, v126, v127, v128, v129, v131, v132, v133, v135, v136, v138, v139, v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v153, v154, v155, v157, v158, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v175, v176, v177, v179, v180, v181, v182, v183, v184, v185, v186, v187, v188, v189, v190, v191, v192, v194, v195, v196, v198, v200, v202, v204, v205, v206, v208, v209, v210, v212, v213, v214, v216, v217, v218, v221, v222, v223, v224, v225, v226, v227, v228; + v57 = v14.angle_instanced_arrays; + v58 = v13.next; + if (v58 !== v13.cur) { + if (v58) { + v1.bindFramebuffer(36160, v58.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v50; + v13.cur = v58; } if (v5.dirty) { - var v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97, v98, v99, v100, v101, v102, v103, v104; - v51 = v4.dither; - if (v51 !== v5.dither) { - if (v51) { + var v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91; + v59 = v4.dither; + if (v59 !== v5.dither) { + if (v59) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v51; - } - v52 = v4.blend_enable; - if (v52 !== v5.blend_enable) { - if (v52) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = v52; - } - v53 = v17[0]; - v54 = v17[1]; - v55 = v17[2]; - v56 = v17[3]; - if (v53 !== v18[0] || v54 !== v18[1] || v55 !== v18[2] || v56 !== v18[3]) { - v1.blendColor(v53, v54, v55, v56); - v18[0] = v53; - v18[1] = v54; - v18[2] = v55; - v18[3] = v56; - } - v57 = v19[0]; - v58 = v19[1]; - if (v57 !== v20[0] || v58 !== v20[1]) { - v1.blendEquationSeparate(v57, v58); - v20[0] = v57; - v20[1] = v58; - } - v59 = v21[0]; - v60 = v21[1]; - v61 = v21[2]; - v62 = v21[3]; - if (v59 !== v22[0] || v60 !== v22[1] || v61 !== v22[2] || v62 !== v22[3]) { - v1.blendFuncSeparate(v59, v60, v61, v62); - v22[0] = v59; - v22[1] = v60; - v22[2] = v61; - v22[3] = v62; - } - v63 = v4.depth_enable; - if (v63 !== v5.depth_enable) { - if (v63) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v63; + v5.dither = v59; } - v64 = v4.depth_func; - if (v64 !== v5.depth_func) { - v1.depthFunc(v64); - v5.depth_func = v64; + v60 = v4.depth_func; + if (v60 !== v5.depth_func) { + v1.depthFunc(v60); + v5.depth_func = v60; } - v65 = v23[0]; - v66 = v23[1]; - if (v65 !== v24[0] || v66 !== v24[1]) { - v1.depthRange(v65, v66); - v24[0] = v65; - v24[1] = v66; + v61 = v23[0]; + v62 = v23[1]; + if (v61 !== v24[0] || v62 !== v24[1]) { + v1.depthRange(v61, v62); + v24[0] = v61; + v24[1] = v62; } - v67 = v4.depth_mask; - if (v67 !== v5.depth_mask) { - v1.depthMask(v67); - v5.depth_mask = v67; + v63 = v4.depth_mask; + if (v63 !== v5.depth_mask) { + v1.depthMask(v63); + v5.depth_mask = v63; } - v68 = v25[0]; - v69 = v25[1]; - v70 = v25[2]; - v71 = v25[3]; - if (v68 !== v26[0] || v69 !== v26[1] || v70 !== v26[2] || v71 !== v26[3]) { - v1.colorMask(v68, v69, v70, v71); - v26[0] = v68; - v26[1] = v69; - v26[2] = v70; - v26[3] = v71; + v64 = v25[0]; + v65 = v25[1]; + v66 = v25[2]; + v67 = v25[3]; + if (v64 !== v26[0] || v65 !== v26[1] || v66 !== v26[2] || v67 !== v26[3]) { + v1.colorMask(v64, v65, v66, v67); + v26[0] = v64; + v26[1] = v65; + v26[2] = v66; + v26[3] = v67; } - v72 = v4.cull_enable; - if (v72 !== v5.cull_enable) { - if (v72) { + v68 = v4.cull_enable; + if (v68 !== v5.cull_enable) { + if (v68) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v72; + v5.cull_enable = v68; } - v73 = v4.cull_face; - if (v73 !== v5.cull_face) { - v1.cullFace(v73); - v5.cull_face = v73; + v69 = v4.cull_face; + if (v69 !== v5.cull_face) { + v1.cullFace(v69); + v5.cull_face = v69; } - v74 = v4.frontFace; - if (v74 !== v5.frontFace) { - v1.frontFace(v74); - v5.frontFace = v74; + v70 = v4.frontFace; + if (v70 !== v5.frontFace) { + v1.frontFace(v70); + v5.frontFace = v70; } - v75 = v4.lineWidth; - if (v75 !== v5.lineWidth) { - v1.lineWidth(v75); - v5.lineWidth = v75; + v71 = v4.lineWidth; + if (v71 !== v5.lineWidth) { + v1.lineWidth(v71); + v5.lineWidth = v71; } - v76 = v4.polygonOffset_enable; - if (v76 !== v5.polygonOffset_enable) { - if (v76) { + v72 = v4.polygonOffset_enable; + if (v72 !== v5.polygonOffset_enable) { + if (v72) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v76; + v5.polygonOffset_enable = v72; } - v77 = v27[0]; - v78 = v27[1]; - if (v77 !== v28[0] || v78 !== v28[1]) { - v1.polygonOffset(v77, v78); - v28[0] = v77; - v28[1] = v78; - } - v79 = v4.sample_alpha; - if (v79 !== v5.sample_alpha) { - if (v79) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v79; - } - v80 = v4.sample_enable; - if (v80 !== v5.sample_enable) { - if (v80) { - v1.enable(32928); - } else { - v1.disable(32928); - } - v5.sample_enable = v80; - } - v81 = v29[0]; - v82 = v29[1]; - if (v81 !== v30[0] || v82 !== v30[1]) { - v1.sampleCoverage(v81, v82); - v30[0] = v81; - v30[1] = v82; - } - v83 = v4.stencil_enable; - if (v83 !== v5.stencil_enable) { - if (v83) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = v83; - } - v84 = v4.stencil_mask; - if (v84 !== v5.stencil_mask) { - v1.stencilMask(v84); - v5.stencil_mask = v84; - } - v85 = v31[0]; - v86 = v31[1]; - v87 = v31[2]; - if (v85 !== v32[0] || v86 !== v32[1] || v87 !== v32[2]) { - v1.stencilFunc(v85, v86, v87); - v32[0] = v85; - v32[1] = v86; - v32[2] = v87; - } - v88 = v33[0]; - v89 = v33[1]; - v90 = v33[2]; - v91 = v33[3]; - if (v88 !== v34[0] || v89 !== v34[1] || v90 !== v34[2] || v91 !== v34[3]) { - v1.stencilOpSeparate(v88, v89, v90, v91); - v34[0] = v88; - v34[1] = v89; - v34[2] = v90; - v34[3] = v91; - } - v92 = v35[0]; - v93 = v35[1]; - v94 = v35[2]; - v95 = v35[3]; - if (v92 !== v36[0] || v93 !== v36[1] || v94 !== v36[2] || v95 !== v36[3]) { - v1.stencilOpSeparate(v92, v93, v94, v95); - v36[0] = v92; - v36[1] = v93; - v36[2] = v94; - v36[3] = v95; - } - v96 = v4.scissor_enable; - if (v96 !== v5.scissor_enable) { - if (v96) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v96; - } - v97 = v37[0]; - v98 = v37[1]; - v99 = v37[2]; - v100 = v37[3]; - if (v97 !== v38[0] || v98 !== v38[1] || v99 !== v38[2] || v100 !== v38[3]) { - v1.scissor(v97, v98, v99, v100); - v38[0] = v97; - v38[1] = v98; - v38[2] = v99; - v38[3] = v100; - } - v101 = v39[0]; - v102 = v39[1]; - v103 = v39[2]; - v104 = v39[3]; - if (v101 !== v40[0] || v102 !== v40[1] || v103 !== v40[2] || v104 !== v40[3]) { - v1.viewport(v101, v102, v103, v104); - v40[0] = v101; - v40[1] = v102; - v40[2] = v103; - v40[3] = v104; - } - v5.dirty = false; - } - v105 = v5.profile; - if (v105) { - v106 = performance.now(); - g48.count++; - } - v107 = v9.frag; - v108 = v9.vert; - v109 = v9.program(v108, v107); - v1.useProgram(v109.program); - v11.setVAO(null); - v111 = v109.id; - v112 = v110[v111]; - if (v112) { - v112.call(this, a0); - } else { - v112 = v110[v111] = g113(v109); - v112.call(this, a0); - } - v11.setVAO(null); - if (v105) { - g48.cpuTime += performance.now() - v106; - } - }, - "scope": function(a0, a1, a2) { - var v114, v115; - v114 = v5.profile; - if (v114) { - v115 = performance.now(); - g48.count++; - } - a1(v2, a0, a2); - if (v114) { - g48.cpuTime += performance.now() - v115; - } - }, - "batch": function(a0, a1) { - var v116, v117, v172, v173, v174, v175, v176, v178, v179; - v116 = v14.angle_instanced_arrays; - v117 = v13.next; - if (v117 !== v13.cur) { - if (v117) { - v1.bindFramebuffer(36160, v117.framebuffer); - } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v117; - } - if (v5.dirty) { - var v118, v119, v120, v121, v122, v123, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v139, v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171; - v118 = v4.dither; - if (v118 !== v5.dither) { - if (v118) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v118; - } - v119 = v4.blend_enable; - if (v119 !== v5.blend_enable) { - if (v119) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = v119; - } - v120 = v17[0]; - v121 = v17[1]; - v122 = v17[2]; - v123 = v17[3]; - if (v120 !== v18[0] || v121 !== v18[1] || v122 !== v18[2] || v123 !== v18[3]) { - v1.blendColor(v120, v121, v122, v123); - v18[0] = v120; - v18[1] = v121; - v18[2] = v122; - v18[3] = v123; - } - v124 = v19[0]; - v125 = v19[1]; - if (v124 !== v20[0] || v125 !== v20[1]) { - v1.blendEquationSeparate(v124, v125); - v20[0] = v124; - v20[1] = v125; - } - v126 = v21[0]; - v127 = v21[1]; - v128 = v21[2]; - v129 = v21[3]; - if (v126 !== v22[0] || v127 !== v22[1] || v128 !== v22[2] || v129 !== v22[3]) { - v1.blendFuncSeparate(v126, v127, v128, v129); - v22[0] = v126; - v22[1] = v127; - v22[2] = v128; - v22[3] = v129; - } - v130 = v4.depth_enable; - if (v130 !== v5.depth_enable) { - if (v130) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v130; - } - v131 = v4.depth_func; - if (v131 !== v5.depth_func) { - v1.depthFunc(v131); - v5.depth_func = v131; - } - v132 = v23[0]; - v133 = v23[1]; - if (v132 !== v24[0] || v133 !== v24[1]) { - v1.depthRange(v132, v133); - v24[0] = v132; - v24[1] = v133; - } - v134 = v4.depth_mask; - if (v134 !== v5.depth_mask) { - v1.depthMask(v134); - v5.depth_mask = v134; - } - v135 = v25[0]; - v136 = v25[1]; - v137 = v25[2]; - v138 = v25[3]; - if (v135 !== v26[0] || v136 !== v26[1] || v137 !== v26[2] || v138 !== v26[3]) { - v1.colorMask(v135, v136, v137, v138); - v26[0] = v135; - v26[1] = v136; - v26[2] = v137; - v26[3] = v138; - } - v139 = v4.cull_enable; - if (v139 !== v5.cull_enable) { - if (v139) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v139; - } - v140 = v4.cull_face; - if (v140 !== v5.cull_face) { - v1.cullFace(v140); - v5.cull_face = v140; - } - v141 = v4.frontFace; - if (v141 !== v5.frontFace) { - v1.frontFace(v141); - v5.frontFace = v141; - } - v142 = v4.lineWidth; - if (v142 !== v5.lineWidth) { - v1.lineWidth(v142); - v5.lineWidth = v142; - } - v143 = v4.polygonOffset_enable; - if (v143 !== v5.polygonOffset_enable) { - if (v143) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v143; - } - v144 = v27[0]; - v145 = v27[1]; - if (v144 !== v28[0] || v145 !== v28[1]) { - v1.polygonOffset(v144, v145); - v28[0] = v144; - v28[1] = v145; + v73 = v27[0]; + v74 = v27[1]; + if (v73 !== v28[0] || v74 !== v28[1]) { + v1.polygonOffset(v73, v74); + v28[0] = v73; + v28[1] = v74; } - v146 = v4.sample_alpha; - if (v146 !== v5.sample_alpha) { - if (v146) { + v75 = v4.sample_alpha; + if (v75 !== v5.sample_alpha) { + if (v75) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v146; + v5.sample_alpha = v75; } - v147 = v4.sample_enable; - if (v147 !== v5.sample_enable) { - if (v147) { + v76 = v4.sample_enable; + if (v76 !== v5.sample_enable) { + if (v76) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v147; + v5.sample_enable = v76; } - v148 = v29[0]; - v149 = v29[1]; - if (v148 !== v30[0] || v149 !== v30[1]) { - v1.sampleCoverage(v148, v149); - v30[0] = v148; - v30[1] = v149; + v77 = v29[0]; + v78 = v29[1]; + if (v77 !== v30[0] || v78 !== v30[1]) { + v1.sampleCoverage(v77, v78); + v30[0] = v77; + v30[1] = v78; } - v150 = v4.stencil_enable; - if (v150 !== v5.stencil_enable) { - if (v150) { + v79 = v4.stencil_enable; + if (v79 !== v5.stencil_enable) { + if (v79) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = v150; - } - v151 = v4.stencil_mask; - if (v151 !== v5.stencil_mask) { - v1.stencilMask(v151); - v5.stencil_mask = v151; - } - v152 = v31[0]; - v153 = v31[1]; - v154 = v31[2]; - if (v152 !== v32[0] || v153 !== v32[1] || v154 !== v32[2]) { - v1.stencilFunc(v152, v153, v154); - v32[0] = v152; - v32[1] = v153; - v32[2] = v154; - } - v155 = v33[0]; - v156 = v33[1]; - v157 = v33[2]; - v158 = v33[3]; - if (v155 !== v34[0] || v156 !== v34[1] || v157 !== v34[2] || v158 !== v34[3]) { - v1.stencilOpSeparate(v155, v156, v157, v158); - v34[0] = v155; - v34[1] = v156; - v34[2] = v157; - v34[3] = v158; - } - v159 = v35[0]; - v160 = v35[1]; - v161 = v35[2]; - v162 = v35[3]; - if (v159 !== v36[0] || v160 !== v36[1] || v161 !== v36[2] || v162 !== v36[3]) { - v1.stencilOpSeparate(v159, v160, v161, v162); - v36[0] = v159; - v36[1] = v160; - v36[2] = v161; - v36[3] = v162; - } - v163 = v4.scissor_enable; - if (v163 !== v5.scissor_enable) { - if (v163) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v163; - } - v164 = v37[0]; - v165 = v37[1]; - v166 = v37[2]; - v167 = v37[3]; - if (v164 !== v38[0] || v165 !== v38[1] || v166 !== v38[2] || v167 !== v38[3]) { - v1.scissor(v164, v165, v166, v167); - v38[0] = v164; - v38[1] = v165; - v38[2] = v166; - v38[3] = v167; - } - v168 = v39[0]; - v169 = v39[1]; - v170 = v39[2]; - v171 = v39[3]; - if (v168 !== v40[0] || v169 !== v40[1] || v170 !== v40[2] || v171 !== v40[3]) { - v1.viewport(v168, v169, v170, v171); - v40[0] = v168; - v40[1] = v169; - v40[2] = v170; - v40[3] = v171; - } - v5.dirty = false; - } - v172 = v5.profile; - if (v172) { - v173 = performance.now(); - g48.count += a1; - } - v174 = v9.frag; - v175 = v9.vert; - v176 = v9.program(v175, v174); - v1.useProgram(v176.program); - v11.setVAO(null); - v178 = v176.id; - v179 = v177[v178]; - if (v179) { - v179.call(this, a0, a1); - } else { - v179 = v177[v178] = g180(v176); - v179.call(this, a0, a1); - } - v11.setVAO(null); - if (v172) { - g48.cpuTime += performance.now() - v173; - } - } - }; - }; - } - }); - - // src/generated/regl-codegen/fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7 - var require_fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7 = __commonJS({ - "src/generated/regl-codegen/fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7"(exports, module) { - module.exports = function anonymous(g0, g48, g95, g96, g103, g104, g107, g123, g141, g159, g177, g195, g199, g200, g203, g206, g208, g211, g213, g215, g219, g223, g225, g229, g233, g234, g253, g255, g257, g259, g261, g263, g265, g267, g269, g271, g273, g286, g288, g292, g294, g298, g300, g302, g305, g308, g311, g314, g317, g320, g323, g326, g329, g332, g335, g338, g341, g343, g356, g383, g410, g437, g464, g491, g504, g506, g542, g543, g544) { - "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50, v51, v52, v53; - v1 = g0.gl; - v2 = g0.context; - v3 = g0.strings; - v4 = g0.next; - v5 = g0.current; - v6 = g0.draw; - v7 = g0.elements; - v8 = g0.buffer; - v9 = g0.shader; - v10 = g0.attributes; - v11 = g0.vao; - v12 = g0.uniforms; - v13 = g0.framebuffer; - v14 = g0.extensions; - v15 = g0.timer; - v16 = g0.isBufferArgs; - v17 = v4.blend_color; - v18 = v5.blend_color; - v19 = v4.blend_equation; - v20 = v5.blend_equation; - v21 = v4.blend_func; - v22 = v5.blend_func; - v23 = v4.depth_range; - v24 = v5.depth_range; - v25 = v4.colorMask; - v26 = v5.colorMask; - v27 = v4.polygonOffset_offset; - v28 = v5.polygonOffset_offset; - v29 = v4.sample_coverage; - v30 = v5.sample_coverage; - v31 = v4.stencil_func; - v32 = v5.stencil_func; - v33 = v4.stencil_opFront; - v34 = v5.stencil_opFront; - v35 = v4.stencil_opBack; - v36 = v5.stencil_opBack; - v37 = v4.scissor_box; - v38 = v5.scissor_box; - v39 = v4.viewport; - v40 = v5.viewport; - v41 = { - "points": 0, - "point": 0, - "lines": 1, - "line": 1, - "triangles": 4, - "triangle": 4, - "line loop": 2, - "line strip": 3, - "triangle strip": 5, - "triangle fan": 6 - }; - v42 = { - "never": 512, - "less": 513, - "<": 513, - "equal": 514, - "=": 514, - "==": 514, - "===": 514, - "lequal": 515, - "<=": 515, - "greater": 516, - ">": 516, - "notequal": 517, - "!=": 517, - "!==": 517, - "gequal": 518, - ">=": 518, - "always": 519 - }; - v43 = { - "0": 0, - "1": 1, - "zero": 0, - "one": 1, - "src color": 768, - "one minus src color": 769, - "src alpha": 770, - "one minus src alpha": 771, - "dst color": 774, - "one minus dst color": 775, - "dst alpha": 772, - "one minus dst alpha": 773, - "constant color": 32769, - "one minus constant color": 32770, - "constant alpha": 32771, - "one minus constant alpha": 32772, - "src alpha saturate": 776 - }; - v44 = { - "add": 32774, - "subtract": 32778, - "reverse subtract": 32779 - }; - v45 = { - "0": 0, - "zero": 0, - "keep": 7680, - "replace": 7681, - "increment": 7682, - "decrement": 7683, - "increment wrap": 34055, - "decrement wrap": 34056, - "invert": 5386 - }; - v46 = { - "int8": 5120, - "int16": 5122, - "int32": 5124, - "uint8": 5121, - "uint16": 5123, - "uint32": 5125, - "float": 5126, - "float32": 5126 - }; - v47 = { - "cw": 2304, - "ccw": 2305 - }; - v49 = {}; - v49.stride = 8; - v49.offset = 8; - v49.divisor = 1; - v50 = {}; - v50.stride = 8; - v50.offset = 16; - v50.divisor = 1; - v51 = {}; - v51.stride = 8; - v51.offset = 8; - v51.divisor = 1; - v52 = {}; - v52.stride = 8; - v52.offset = 16; - v52.divisor = 1; - v53 = {}; - v53.stride = 4; - v53.offset = 0; - v53.divisor = 1; - return { - "draw": function(a0) { - var v54, v55, v88, v89, v90, v91, v92, v93, v94, v97, v98, v99, v100, v101, v102, v105, v106, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v120, v121, v122, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v139, v140, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v178, v179, v180, v181, v182, v183, v184, v185, v186, v187, v188, v189, v190, v191, v192, v193, v194, v196, v197, v198, v201, v202, v204, v205, v207, v209, v210, v212, v214, v216, v217, v218, v220, v221, v222, v224, v226, v227, v228, v230, v231, v232, v235, v236, v237, v238, v239, v240, v241; - v54 = v14.angle_instanced_arrays; - v55 = v13.next; - if (v55 !== v13.cur) { - if (v55) { - v1.bindFramebuffer(36160, v55.framebuffer); - } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v55; - } - if (v5.dirty) { - var v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87; - v56 = v4.dither; - if (v56 !== v5.dither) { - if (v56) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v56; - } - v57 = v4.depth_func; - if (v57 !== v5.depth_func) { - v1.depthFunc(v57); - v5.depth_func = v57; - } - v58 = v23[0]; - v59 = v23[1]; - if (v58 !== v24[0] || v59 !== v24[1]) { - v1.depthRange(v58, v59); - v24[0] = v58; - v24[1] = v59; - } - v60 = v4.depth_mask; - if (v60 !== v5.depth_mask) { - v1.depthMask(v60); - v5.depth_mask = v60; - } - v61 = v25[0]; - v62 = v25[1]; - v63 = v25[2]; - v64 = v25[3]; - if (v61 !== v26[0] || v62 !== v26[1] || v63 !== v26[2] || v64 !== v26[3]) { - v1.colorMask(v61, v62, v63, v64); - v26[0] = v61; - v26[1] = v62; - v26[2] = v63; - v26[3] = v64; - } - v65 = v4.cull_enable; - if (v65 !== v5.cull_enable) { - if (v65) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v65; - } - v66 = v4.cull_face; - if (v66 !== v5.cull_face) { - v1.cullFace(v66); - v5.cull_face = v66; - } - v67 = v4.frontFace; - if (v67 !== v5.frontFace) { - v1.frontFace(v67); - v5.frontFace = v67; - } - v68 = v4.lineWidth; - if (v68 !== v5.lineWidth) { - v1.lineWidth(v68); - v5.lineWidth = v68; - } - v69 = v4.polygonOffset_enable; - if (v69 !== v5.polygonOffset_enable) { - if (v69) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v69; - } - v70 = v27[0]; - v71 = v27[1]; - if (v70 !== v28[0] || v71 !== v28[1]) { - v1.polygonOffset(v70, v71); - v28[0] = v70; - v28[1] = v71; - } - v72 = v4.sample_alpha; - if (v72 !== v5.sample_alpha) { - if (v72) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v72; - } - v73 = v4.sample_enable; - if (v73 !== v5.sample_enable) { - if (v73) { - v1.enable(32928); - } else { - v1.disable(32928); - } - v5.sample_enable = v73; - } - v74 = v29[0]; - v75 = v29[1]; - if (v74 !== v30[0] || v75 !== v30[1]) { - v1.sampleCoverage(v74, v75); - v30[0] = v74; - v30[1] = v75; - } - v76 = v4.stencil_mask; - if (v76 !== v5.stencil_mask) { - v1.stencilMask(v76); - v5.stencil_mask = v76; + v5.stencil_enable = v79; } - v77 = v31[0]; - v78 = v31[1]; - v79 = v31[2]; - if (v77 !== v32[0] || v78 !== v32[1] || v79 !== v32[2]) { - v1.stencilFunc(v77, v78, v79); - v32[0] = v77; - v32[1] = v78; - v32[2] = v79; + v80 = v4.stencil_mask; + if (v80 !== v5.stencil_mask) { + v1.stencilMask(v80); + v5.stencil_mask = v80; } - v80 = v33[0]; - v81 = v33[1]; - v82 = v33[2]; - v83 = v33[3]; - if (v80 !== v34[0] || v81 !== v34[1] || v82 !== v34[2] || v83 !== v34[3]) { - v1.stencilOpSeparate(v80, v81, v82, v83); - v34[0] = v80; - v34[1] = v81; - v34[2] = v82; - v34[3] = v83; + v81 = v31[0]; + v82 = v31[1]; + v83 = v31[2]; + if (v81 !== v32[0] || v82 !== v32[1] || v83 !== v32[2]) { + v1.stencilFunc(v81, v82, v83); + v32[0] = v81; + v32[1] = v82; + v32[2] = v83; } - v84 = v35[0]; - v85 = v35[1]; - v86 = v35[2]; - v87 = v35[3]; - if (v84 !== v36[0] || v85 !== v36[1] || v86 !== v36[2] || v87 !== v36[3]) { + v84 = v33[0]; + v85 = v33[1]; + v86 = v33[2]; + v87 = v33[3]; + if (v84 !== v34[0] || v85 !== v34[1] || v86 !== v34[2] || v87 !== v34[3]) { v1.stencilOpSeparate(v84, v85, v86, v87); - v36[0] = v84; - v36[1] = v85; - v36[2] = v86; - v36[3] = v87; + v34[0] = v84; + v34[1] = v85; + v34[2] = v86; + v34[3] = v87; + } + v88 = v35[0]; + v89 = v35[1]; + v90 = v35[2]; + v91 = v35[3]; + if (v88 !== v36[0] || v89 !== v36[1] || v90 !== v36[2] || v91 !== v36[3]) { + v1.stencilOpSeparate(v88, v89, v90, v91); + v36[0] = v88; + v36[1] = v89; + v36[2] = v90; + v36[3] = v91; } } - v88 = a0["viewport"]; - v89 = v88.x | 0; - v90 = v88.y | 0; - v91 = "width" in v88 ? v88.width | 0 : v2.framebufferWidth - v89; - v92 = "height" in v88 ? v88.height | 0 : v2.framebufferHeight - v90; - v93 = v2.viewportWidth; - v2.viewportWidth = v91; - v94 = v2.viewportHeight; - v2.viewportHeight = v92; - v1.viewport(v89, v90, v91, v92); - v40[0] = v89; - v40[1] = v90; - v40[2] = v91; - v40[3] = v92; + v92 = a0["viewport"]; + v93 = v92.x | 0; + v94 = v92.y | 0; + v95 = "width" in v92 ? v92.width | 0 : v2.framebufferWidth - v93; + v96 = "height" in v92 ? v92.height | 0 : v2.framebufferHeight - v94; + v97 = v2.viewportWidth; + v2.viewportWidth = v95; + v98 = v2.viewportHeight; + v2.viewportHeight = v96; + v1.viewport(v93, v94, v95, v96); + v40[0] = v93; + v40[1] = v94; + v40[2] = v95; + v40[3] = v96; v1.blendColor(0, 0, 0, 0); v18[0] = 0; v18[1] = 0; v18[2] = 0; v18[3] = 0; - if (g95) { + if (g99) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g95; + v5.blend_enable = g99; v1.blendEquationSeparate(32774, 32774); v20[0] = 32774; v20[1] = 32774; @@ -170937,1402 +171126,1252 @@ void main() { v22[1] = 771; v22[2] = 773; v22[3] = 1; - v97 = g96.call(this, v2, a0, 0); - if (v97) { + if (g100) { v1.enable(2929); } else { v1.disable(2929); } - v5.depth_enable = v97; - v98 = a0["viewport"]; - v99 = v98.x | 0; - v100 = v98.y | 0; - v101 = "width" in v98 ? v98.width | 0 : v2.framebufferWidth - v99; - v102 = "height" in v98 ? v98.height | 0 : v2.framebufferHeight - v100; - v1.scissor(v99, v100, v101, v102); - v38[0] = v99; - v38[1] = v100; - v38[2] = v101; - v38[3] = v102; - if (g103) { + v5.depth_enable = g100; + v101 = a0["viewport"]; + v102 = v101.x | 0; + v103 = v101.y | 0; + v104 = "width" in v101 ? v101.width | 0 : v2.framebufferWidth - v102; + v105 = "height" in v101 ? v101.height | 0 : v2.framebufferHeight - v103; + v1.scissor(v102, v103, v104, v105); + v38[0] = v102; + v38[1] = v103; + v38[2] = v104; + v38[3] = v105; + if (g106) { v1.enable(3089); } else { v1.disable(3089); } - v5.scissor_enable = g103; - if (g104) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = g104; - v105 = v5.profile; - if (v105) { - v106 = performance.now(); + v5.scissor_enable = g106; + v107 = v5.profile; + if (v107) { + v108 = performance.now(); g48.count++; } - v1.useProgram(g107.program); - v108 = v14.angle_instanced_arrays; + v1.useProgram(g109.program); + v110 = v14.angle_instanced_arrays; v11.setVAO(null); - v109 = a0["positionBuffer"]; - v49.buffer = v109; - v110 = false; - v111 = 1; - v112 = 0; - v113 = 0; - v114 = 0; - v115 = 0; - v116 = null; - v117 = 0; - v118 = false; - v119 = 5126; + v113 = g112.location; + v114 = v10[v113]; + if (!v114.buffer) { + v1.enableVertexAttribArray(v113); + } + if (v114.type !== 5126 || v114.size !== 2 || v114.buffer !== g111 || v114.normalized !== false || v114.offset !== 16 || v114.stride !== 24) { + v1.bindBuffer(34962, g111.buffer); + v1.vertexAttribPointer(v113, 2, 5126, false, 24, 16); + v114.type = 5126; + v114.size = 2; + v114.buffer = g111; + v114.normalized = false; + v114.offset = 16; + v114.stride = 24; + } + if (v114.divisor !== 0) { + v110.vertexAttribDivisorANGLE(v113, 0); + v114.divisor = 0; + } + v116 = g115.call(this, v2, a0, 0); + v49.offset = v116; + v117 = false; + v118 = 1; + v119 = 0; v120 = 0; v121 = 0; v122 = 0; + v123 = null; + v124 = 0; + v125 = false; + v126 = 5126; + v127 = 0; + v128 = 0; + v129 = 0; if (v16(v49)) { - v110 = true; - v116 = v8.createStream(34962, v49); - v119 = v116.dtype; + v117 = true; + v123 = v8.createStream(34962, v49); + v126 = v123.dtype; } else { - v116 = v8.getBuffer(v49); - if (v116) { - v119 = v116.dtype; + v123 = v8.getBuffer(v49); + if (v123) { + v126 = v123.dtype; } else if ("constant" in v49) { - v111 = 2; + v118 = 2; if (typeof v49.constant === "number") { - v112 = v49.constant; - v113 = v114 = v115 = 0; + v119 = v49.constant; + v120 = v121 = v122 = 0; } else { - v112 = v49.constant.length > 0 ? v49.constant[0] : 0; - v113 = v49.constant.length > 1 ? v49.constant[1] : 0; - v114 = v49.constant.length > 2 ? v49.constant[2] : 0; - v115 = v49.constant.length > 3 ? v49.constant[3] : 0; + v119 = v49.constant.length > 0 ? v49.constant[0] : 0; + v120 = v49.constant.length > 1 ? v49.constant[1] : 0; + v121 = v49.constant.length > 2 ? v49.constant[2] : 0; + v122 = v49.constant.length > 3 ? v49.constant[3] : 0; } } else { if (v16(v49.buffer)) { - v116 = v8.createStream(34962, v49.buffer); + v123 = v8.createStream(34962, v49.buffer); } else { - v116 = v8.getBuffer(v49.buffer); + v123 = v8.getBuffer(v49.buffer); } - v119 = "type" in v49 ? v46[v49.type] : v116.dtype; - v118 = !!v49.normalized; - v117 = v49.size | 0; - v120 = v49.offset | 0; - v121 = v49.stride | 0; - v122 = v49.divisor | 0; + v126 = "type" in v49 ? v46[v49.type] : v123.dtype; + v125 = !!v49.normalized; + v124 = v49.size | 0; + v127 = v49.offset | 0; + v128 = v49.stride | 0; + v129 = v49.divisor | 0; } } - v124 = g123.location; - v125 = v10[v124]; - if (v111 === 1) { - if (!v125.buffer) { - v1.enableVertexAttribArray(v124); + v131 = g130.location; + v132 = v10[v131]; + if (v118 === 1) { + if (!v132.buffer) { + v1.enableVertexAttribArray(v131); } - v126 = v117 || 2; - if (v125.type !== v119 || v125.size !== v126 || v125.buffer !== v116 || v125.normalized !== v118 || v125.offset !== v120 || v125.stride !== v121) { - v1.bindBuffer(34962, v116.buffer); - v1.vertexAttribPointer(v124, v126, v119, v118, v121, v120); - v125.type = v119; - v125.size = v126; - v125.buffer = v116; - v125.normalized = v118; - v125.offset = v120; - v125.stride = v121; + v133 = v124 || 4; + if (v132.type !== v126 || v132.size !== v133 || v132.buffer !== v123 || v132.normalized !== v125 || v132.offset !== v127 || v132.stride !== v128) { + v1.bindBuffer(34962, v123.buffer); + v1.vertexAttribPointer(v131, v133, v126, v125, v128, v127); + v132.type = v126; + v132.size = v133; + v132.buffer = v123; + v132.normalized = v125; + v132.offset = v127; + v132.stride = v128; } - if (v125.divisor !== v122) { - v108.vertexAttribDivisorANGLE(v124, v122); - v125.divisor = v122; + if (v132.divisor !== v129) { + v110.vertexAttribDivisorANGLE(v131, v129); + v132.divisor = v129; } } else { - if (v125.buffer) { - v1.disableVertexAttribArray(v124); - v125.buffer = null; + if (v132.buffer) { + v1.disableVertexAttribArray(v131); + v132.buffer = null; } - if (v125.x !== v112 || v125.y !== v113 || v125.z !== v114 || v125.w !== v115) { - v1.vertexAttrib4f(v124, v112, v113, v114, v115); - v125.x = v112; - v125.y = v113; - v125.z = v114; - v125.w = v115; + if (v132.x !== v119 || v132.y !== v120 || v132.z !== v121 || v132.w !== v122) { + v1.vertexAttrib4f(v131, v119, v120, v121, v122); + v132.x = v119; + v132.y = v120; + v132.z = v121; + v132.w = v122; } } - v127 = a0["positionFractBuffer"]; - v51.buffer = v127; - v128 = false; - v129 = 1; - v130 = 0; - v131 = 0; - v132 = 0; - v133 = 0; - v134 = null; - v135 = 0; - v136 = false; - v137 = 5126; - v138 = 0; - v139 = 0; - v140 = 0; - if (v16(v51)) { - v128 = true; - v134 = v8.createStream(34962, v51); - v137 = v134.dtype; - } else { - v134 = v8.getBuffer(v51); - if (v134) { - v137 = v134.dtype; - } else if ("constant" in v51) { - v129 = 2; - if (typeof v51.constant === "number") { - v130 = v51.constant; - v131 = v132 = v133 = 0; - } else { - v130 = v51.constant.length > 0 ? v51.constant[0] : 0; - v131 = v51.constant.length > 1 ? v51.constant[1] : 0; - v132 = v51.constant.length > 2 ? v51.constant[2] : 0; - v133 = v51.constant.length > 3 ? v51.constant[3] : 0; - } - } else { - if (v16(v51.buffer)) { - v134 = v8.createStream(34962, v51.buffer); - } else { - v134 = v8.getBuffer(v51.buffer); - } - v137 = "type" in v51 ? v46[v51.type] : v134.dtype; - v136 = !!v51.normalized; - v135 = v51.size | 0; - v138 = v51.offset | 0; - v139 = v51.stride | 0; - v140 = v51.divisor | 0; - } + v135 = g134.location; + v136 = v10[v135]; + if (!v136.buffer) { + v1.enableVertexAttribArray(v135); } - v142 = g141.location; - v143 = v10[v142]; - if (v129 === 1) { - if (!v143.buffer) { - v1.enableVertexAttribArray(v142); - } - v144 = v135 || 2; - if (v143.type !== v137 || v143.size !== v144 || v143.buffer !== v134 || v143.normalized !== v136 || v143.offset !== v138 || v143.stride !== v139) { - v1.bindBuffer(34962, v134.buffer); - v1.vertexAttribPointer(v142, v144, v137, v136, v139, v138); - v143.type = v137; - v143.size = v144; - v143.buffer = v134; - v143.normalized = v136; - v143.offset = v138; - v143.stride = v139; - } - if (v143.divisor !== v140) { - v108.vertexAttribDivisorANGLE(v142, v140); - v143.divisor = v140; - } - } else { - if (v143.buffer) { - v1.disableVertexAttribArray(v142); - v143.buffer = null; - } - if (v143.x !== v130 || v143.y !== v131 || v143.z !== v132 || v143.w !== v133) { - v1.vertexAttrib4f(v142, v130, v131, v132, v133); - v143.x = v130; - v143.y = v131; - v143.z = v132; - v143.w = v133; - } + if (v136.type !== 5126 || v136.size !== 2 || v136.buffer !== g111 || v136.normalized !== false || v136.offset !== 0 || v136.stride !== 24) { + v1.bindBuffer(34962, g111.buffer); + v1.vertexAttribPointer(v135, 2, 5126, false, 24, 0); + v136.type = 5126; + v136.size = 2; + v136.buffer = g111; + v136.normalized = false; + v136.offset = 0; + v136.stride = 24; } - v145 = a0["positionBuffer"]; - v50.buffer = v145; - v146 = false; - v147 = 1; - v148 = 0; + if (v136.divisor !== 0) { + v110.vertexAttribDivisorANGLE(v135, 0); + v136.divisor = 0; + } + v138 = g137.call(this, v2, a0, 0); + v55.offset = v138; + v139 = false; + v140 = 1; + v141 = 0; + v142 = 0; + v143 = 0; + v144 = 0; + v145 = null; + v146 = 0; + v147 = false; + v148 = 5126; v149 = 0; v150 = 0; v151 = 0; - v152 = null; - v153 = 0; - v154 = false; - v155 = 5126; - v156 = 0; - v157 = 0; - v158 = 0; - if (v16(v50)) { - v146 = true; - v152 = v8.createStream(34962, v50); - v155 = v152.dtype; + if (v16(v55)) { + v139 = true; + v145 = v8.createStream(34962, v55); + v148 = v145.dtype; } else { - v152 = v8.getBuffer(v50); - if (v152) { - v155 = v152.dtype; - } else if ("constant" in v50) { - v147 = 2; - if (typeof v50.constant === "number") { - v148 = v50.constant; - v149 = v150 = v151 = 0; + v145 = v8.getBuffer(v55); + if (v145) { + v148 = v145.dtype; + } else if ("constant" in v55) { + v140 = 2; + if (typeof v55.constant === "number") { + v141 = v55.constant; + v142 = v143 = v144 = 0; } else { - v148 = v50.constant.length > 0 ? v50.constant[0] : 0; - v149 = v50.constant.length > 1 ? v50.constant[1] : 0; - v150 = v50.constant.length > 2 ? v50.constant[2] : 0; - v151 = v50.constant.length > 3 ? v50.constant[3] : 0; + v141 = v55.constant.length > 0 ? v55.constant[0] : 0; + v142 = v55.constant.length > 1 ? v55.constant[1] : 0; + v143 = v55.constant.length > 2 ? v55.constant[2] : 0; + v144 = v55.constant.length > 3 ? v55.constant[3] : 0; } } else { - if (v16(v50.buffer)) { - v152 = v8.createStream(34962, v50.buffer); + if (v16(v55.buffer)) { + v145 = v8.createStream(34962, v55.buffer); } else { - v152 = v8.getBuffer(v50.buffer); + v145 = v8.getBuffer(v55.buffer); } - v155 = "type" in v50 ? v46[v50.type] : v152.dtype; - v154 = !!v50.normalized; - v153 = v50.size | 0; - v156 = v50.offset | 0; - v157 = v50.stride | 0; - v158 = v50.divisor | 0; + v148 = "type" in v55 ? v46[v55.type] : v145.dtype; + v147 = !!v55.normalized; + v146 = v55.size | 0; + v149 = v55.offset | 0; + v150 = v55.stride | 0; + v151 = v55.divisor | 0; } } - v160 = g159.location; - v161 = v10[v160]; - if (v147 === 1) { - if (!v161.buffer) { - v1.enableVertexAttribArray(v160); + v153 = g152.location; + v154 = v10[v153]; + if (v140 === 1) { + if (!v154.buffer) { + v1.enableVertexAttribArray(v153); } - v162 = v153 || 2; - if (v161.type !== v155 || v161.size !== v162 || v161.buffer !== v152 || v161.normalized !== v154 || v161.offset !== v156 || v161.stride !== v157) { - v1.bindBuffer(34962, v152.buffer); - v1.vertexAttribPointer(v160, v162, v155, v154, v157, v156); - v161.type = v155; - v161.size = v162; - v161.buffer = v152; - v161.normalized = v154; - v161.offset = v156; - v161.stride = v157; + v155 = v146 || 4; + if (v154.type !== v148 || v154.size !== v155 || v154.buffer !== v145 || v154.normalized !== v147 || v154.offset !== v149 || v154.stride !== v150) { + v1.bindBuffer(34962, v145.buffer); + v1.vertexAttribPointer(v153, v155, v148, v147, v150, v149); + v154.type = v148; + v154.size = v155; + v154.buffer = v145; + v154.normalized = v147; + v154.offset = v149; + v154.stride = v150; } - if (v161.divisor !== v158) { - v108.vertexAttribDivisorANGLE(v160, v158); - v161.divisor = v158; + if (v154.divisor !== v151) { + v110.vertexAttribDivisorANGLE(v153, v151); + v154.divisor = v151; } } else { - if (v161.buffer) { - v1.disableVertexAttribArray(v160); - v161.buffer = null; + if (v154.buffer) { + v1.disableVertexAttribArray(v153); + v154.buffer = null; } - if (v161.x !== v148 || v161.y !== v149 || v161.z !== v150 || v161.w !== v151) { - v1.vertexAttrib4f(v160, v148, v149, v150, v151); - v161.x = v148; - v161.y = v149; - v161.z = v150; - v161.w = v151; + if (v154.x !== v141 || v154.y !== v142 || v154.z !== v143 || v154.w !== v144) { + v1.vertexAttrib4f(v153, v141, v142, v143, v144); + v154.x = v141; + v154.y = v142; + v154.z = v143; + v154.w = v144; } } - v163 = a0["positionFractBuffer"]; - v52.buffer = v163; - v164 = false; - v165 = 1; + v157 = g156.location; + v158 = v10[v157]; + if (!v158.buffer) { + v1.enableVertexAttribArray(v157); + } + if (v158.type !== 5126 || v158.size !== 2 || v158.buffer !== g111 || v158.normalized !== false || v158.offset !== 8 || v158.stride !== 24) { + v1.bindBuffer(34962, g111.buffer); + v1.vertexAttribPointer(v157, 2, 5126, false, 24, 8); + v158.type = 5126; + v158.size = 2; + v158.buffer = g111; + v158.normalized = false; + v158.offset = 8; + v158.stride = 24; + } + if (v158.divisor !== 0) { + v110.vertexAttribDivisorANGLE(v157, 0); + v158.divisor = 0; + } + v160 = g159.call(this, v2, a0, 0); + v51.offset = v160; + v161 = false; + v162 = 1; + v163 = 0; + v164 = 0; + v165 = 0; v166 = 0; - v167 = 0; + v167 = null; v168 = 0; - v169 = 0; - v170 = null; + v169 = false; + v170 = 5126; v171 = 0; - v172 = false; - v173 = 5126; - v174 = 0; - v175 = 0; - v176 = 0; - if (v16(v52)) { - v164 = true; - v170 = v8.createStream(34962, v52); - v173 = v170.dtype; + v172 = 0; + v173 = 0; + if (v16(v51)) { + v161 = true; + v167 = v8.createStream(34962, v51); + v170 = v167.dtype; } else { - v170 = v8.getBuffer(v52); - if (v170) { - v173 = v170.dtype; - } else if ("constant" in v52) { - v165 = 2; - if (typeof v52.constant === "number") { - v166 = v52.constant; - v167 = v168 = v169 = 0; + v167 = v8.getBuffer(v51); + if (v167) { + v170 = v167.dtype; + } else if ("constant" in v51) { + v162 = 2; + if (typeof v51.constant === "number") { + v163 = v51.constant; + v164 = v165 = v166 = 0; } else { - v166 = v52.constant.length > 0 ? v52.constant[0] : 0; - v167 = v52.constant.length > 1 ? v52.constant[1] : 0; - v168 = v52.constant.length > 2 ? v52.constant[2] : 0; - v169 = v52.constant.length > 3 ? v52.constant[3] : 0; + v163 = v51.constant.length > 0 ? v51.constant[0] : 0; + v164 = v51.constant.length > 1 ? v51.constant[1] : 0; + v165 = v51.constant.length > 2 ? v51.constant[2] : 0; + v166 = v51.constant.length > 3 ? v51.constant[3] : 0; } } else { - if (v16(v52.buffer)) { - v170 = v8.createStream(34962, v52.buffer); + if (v16(v51.buffer)) { + v167 = v8.createStream(34962, v51.buffer); } else { - v170 = v8.getBuffer(v52.buffer); + v167 = v8.getBuffer(v51.buffer); } - v173 = "type" in v52 ? v46[v52.type] : v170.dtype; - v172 = !!v52.normalized; - v171 = v52.size | 0; - v174 = v52.offset | 0; - v175 = v52.stride | 0; - v176 = v52.divisor | 0; + v170 = "type" in v51 ? v46[v51.type] : v167.dtype; + v169 = !!v51.normalized; + v168 = v51.size | 0; + v171 = v51.offset | 0; + v172 = v51.stride | 0; + v173 = v51.divisor | 0; } } - v178 = g177.location; - v179 = v10[v178]; - if (v165 === 1) { - if (!v179.buffer) { - v1.enableVertexAttribArray(v178); + v175 = g174.location; + v176 = v10[v175]; + if (v162 === 1) { + if (!v176.buffer) { + v1.enableVertexAttribArray(v175); } - v180 = v171 || 2; - if (v179.type !== v173 || v179.size !== v180 || v179.buffer !== v170 || v179.normalized !== v172 || v179.offset !== v174 || v179.stride !== v175) { - v1.bindBuffer(34962, v170.buffer); - v1.vertexAttribPointer(v178, v180, v173, v172, v175, v174); - v179.type = v173; - v179.size = v180; - v179.buffer = v170; - v179.normalized = v172; - v179.offset = v174; - v179.stride = v175; + v177 = v168 || 2; + if (v176.type !== v170 || v176.size !== v177 || v176.buffer !== v167 || v176.normalized !== v169 || v176.offset !== v171 || v176.stride !== v172) { + v1.bindBuffer(34962, v167.buffer); + v1.vertexAttribPointer(v175, v177, v170, v169, v172, v171); + v176.type = v170; + v176.size = v177; + v176.buffer = v167; + v176.normalized = v169; + v176.offset = v171; + v176.stride = v172; } - if (v179.divisor !== v176) { - v108.vertexAttribDivisorANGLE(v178, v176); - v179.divisor = v176; + if (v176.divisor !== v173) { + v110.vertexAttribDivisorANGLE(v175, v173); + v176.divisor = v173; } } else { - if (v179.buffer) { - v1.disableVertexAttribArray(v178); - v179.buffer = null; + if (v176.buffer) { + v1.disableVertexAttribArray(v175); + v176.buffer = null; } - if (v179.x !== v166 || v179.y !== v167 || v179.z !== v168 || v179.w !== v169) { - v1.vertexAttrib4f(v178, v166, v167, v168, v169); - v179.x = v166; - v179.y = v167; - v179.z = v168; - v179.w = v169; + if (v176.x !== v163 || v176.y !== v164 || v176.z !== v165 || v176.w !== v166) { + v1.vertexAttrib4f(v175, v163, v164, v165, v166); + v176.x = v163; + v176.y = v164; + v176.z = v165; + v176.w = v166; } } - v181 = a0["colorBuffer"]; - v53.buffer = v181; - v182 = false; - v183 = 1; + v179 = g178.call(this, v2, a0, 0); + v53.offset = v179; + v180 = false; + v181 = 1; + v182 = 0; + v183 = 0; v184 = 0; v185 = 0; - v186 = 0; + v186 = null; v187 = 0; - v188 = null; - v189 = 0; - v190 = false; - v191 = 5126; + v188 = false; + v189 = 5126; + v190 = 0; + v191 = 0; v192 = 0; - v193 = 0; - v194 = 0; if (v16(v53)) { - v182 = true; - v188 = v8.createStream(34962, v53); - v191 = v188.dtype; + v180 = true; + v186 = v8.createStream(34962, v53); + v189 = v186.dtype; } else { - v188 = v8.getBuffer(v53); - if (v188) { - v191 = v188.dtype; + v186 = v8.getBuffer(v53); + if (v186) { + v189 = v186.dtype; } else if ("constant" in v53) { - v183 = 2; + v181 = 2; if (typeof v53.constant === "number") { - v184 = v53.constant; - v185 = v186 = v187 = 0; + v182 = v53.constant; + v183 = v184 = v185 = 0; } else { - v184 = v53.constant.length > 0 ? v53.constant[0] : 0; - v185 = v53.constant.length > 1 ? v53.constant[1] : 0; - v186 = v53.constant.length > 2 ? v53.constant[2] : 0; - v187 = v53.constant.length > 3 ? v53.constant[3] : 0; + v182 = v53.constant.length > 0 ? v53.constant[0] : 0; + v183 = v53.constant.length > 1 ? v53.constant[1] : 0; + v184 = v53.constant.length > 2 ? v53.constant[2] : 0; + v185 = v53.constant.length > 3 ? v53.constant[3] : 0; } } else { if (v16(v53.buffer)) { - v188 = v8.createStream(34962, v53.buffer); + v186 = v8.createStream(34962, v53.buffer); } else { - v188 = v8.getBuffer(v53.buffer); + v186 = v8.getBuffer(v53.buffer); } - v191 = "type" in v53 ? v46[v53.type] : v188.dtype; - v190 = !!v53.normalized; - v189 = v53.size | 0; - v192 = v53.offset | 0; - v193 = v53.stride | 0; - v194 = v53.divisor | 0; + v189 = "type" in v53 ? v46[v53.type] : v186.dtype; + v188 = !!v53.normalized; + v187 = v53.size | 0; + v190 = v53.offset | 0; + v191 = v53.stride | 0; + v192 = v53.divisor | 0; } } - v196 = g195.location; - v197 = v10[v196]; - if (v183 === 1) { - if (!v197.buffer) { - v1.enableVertexAttribArray(v196); + v194 = g193.location; + v195 = v10[v194]; + if (v181 === 1) { + if (!v195.buffer) { + v1.enableVertexAttribArray(v194); } - v198 = v189 || 4; - if (v197.type !== v191 || v197.size !== v198 || v197.buffer !== v188 || v197.normalized !== v190 || v197.offset !== v192 || v197.stride !== v193) { - v1.bindBuffer(34962, v188.buffer); - v1.vertexAttribPointer(v196, v198, v191, v190, v193, v192); - v197.type = v191; - v197.size = v198; - v197.buffer = v188; - v197.normalized = v190; - v197.offset = v192; - v197.stride = v193; + v196 = v187 || 2; + if (v195.type !== v189 || v195.size !== v196 || v195.buffer !== v186 || v195.normalized !== v188 || v195.offset !== v190 || v195.stride !== v191) { + v1.bindBuffer(34962, v186.buffer); + v1.vertexAttribPointer(v194, v196, v189, v188, v191, v190); + v195.type = v189; + v195.size = v196; + v195.buffer = v186; + v195.normalized = v188; + v195.offset = v190; + v195.stride = v191; } - if (v197.divisor !== v194) { - v108.vertexAttribDivisorANGLE(v196, v194); - v197.divisor = v194; + if (v195.divisor !== v192) { + v110.vertexAttribDivisorANGLE(v194, v192); + v195.divisor = v192; } } else { - if (v197.buffer) { - v1.disableVertexAttribArray(v196); - v197.buffer = null; + if (v195.buffer) { + v1.disableVertexAttribArray(v194); + v195.buffer = null; } - if (v197.x !== v184 || v197.y !== v185 || v197.z !== v186 || v197.w !== v187) { - v1.vertexAttrib4f(v196, v184, v185, v186, v187); - v197.x = v184; - v197.y = v185; - v197.z = v186; - v197.w = v187; + if (v195.x !== v182 || v195.y !== v183 || v195.z !== v184 || v195.w !== v185) { + v1.vertexAttrib4f(v194, v182, v183, v184, v185); + v195.x = v182; + v195.y = v183; + v195.z = v184; + v195.w = v185; } } - v201 = g200.location; - v202 = v10[v201]; - if (!v202.buffer) { - v1.enableVertexAttribArray(v201); - } - if (v202.type !== 5126 || v202.size !== 1 || v202.buffer !== g199 || v202.normalized !== false || v202.offset !== 0 || v202.stride !== 8) { - v1.bindBuffer(34962, g199.buffer); - v1.vertexAttribPointer(v201, 1, 5126, false, 8, 0); - v202.type = 5126; - v202.size = 1; - v202.buffer = g199; - v202.normalized = false; - v202.offset = 0; - v202.stride = 8; - } - if (v202.divisor !== 0) { - v108.vertexAttribDivisorANGLE(v201, 0); - v202.divisor = 0; - } - v204 = g203.location; - v205 = v10[v204]; - if (!v205.buffer) { - v1.enableVertexAttribArray(v204); - } - if (v205.type !== 5126 || v205.size !== 1 || v205.buffer !== g199 || v205.normalized !== false || v205.offset !== 4 || v205.stride !== 8) { - v1.bindBuffer(34962, g199.buffer); - v1.vertexAttribPointer(v204, 1, 5126, false, 8, 4); - v205.type = 5126; - v205.size = 1; - v205.buffer = g199; - v205.normalized = false; - v205.offset = 4; - v205.stride = 8; - } - if (v205.divisor !== 0) { - v108.vertexAttribDivisorANGLE(v204, 0); - v205.divisor = 0; - } - v207 = a0["dashLength"]; - v1.uniform1f(g206.location, v207); - v209 = a0["dashTexture"]; - if (v209 && v209._reglType === "framebuffer") { - v209 = v209.color[0]; - } - v210 = v209._texture; - v1.uniform1i(g208.location, v210.bind()); - v212 = a0["depth"]; - v1.uniform1f(g211.location, v212); - v214 = a0["opacity"]; - v1.uniform1f(g213.location, v214); - v216 = a0["scale"]; + v198 = a0["capSize"]; + v1.uniform1f(g197.location, v198); + v200 = a0["lineWidth"]; + v1.uniform1f(g199.location, v200); + v202 = a0["opacity"]; + v1.uniform1f(g201.location, v202); + v204 = a0["scale"]; + v205 = v204[0]; + v206 = v204[1]; + v1.uniform2f(g203.location, v205, v206); + v208 = a0["scaleFract"]; + v209 = v208[0]; + v210 = v208[1]; + v1.uniform2f(g207.location, v209, v210); + v212 = a0["translate"]; + v213 = v212[0]; + v214 = v212[1]; + v1.uniform2f(g211.location, v213, v214); + v216 = a0["translateFract"]; v217 = v216[0]; v218 = v216[1]; v1.uniform2f(g215.location, v217, v218); - v220 = a0["scaleFract"]; - v221 = v220[0]; - v222 = v220[1]; - v1.uniform2f(g219.location, v221, v222); - v224 = a0["thickness"]; - v1.uniform1f(g223.location, v224); - v226 = a0["translate"]; - v227 = v226[0]; - v228 = v226[1]; - v1.uniform2f(g225.location, v227, v228); - v230 = a0["translateFract"]; - v231 = v230[0]; - v232 = v230[1]; - v1.uniform2f(g229.location, v231, v232); - v235 = g234.call(this, v2, a0, 0); - v236 = v235[0]; - v237 = v235[1]; - v238 = v235[2]; - v239 = v235[3]; - v1.uniform4f(g233.location, v236, v237, v238, v239); - v240 = v6.elements; - if (v240) { - v1.bindBuffer(34963, v240.buffer.buffer); + v221 = g220.call(this, v2, a0, 0); + v222 = v221[0]; + v223 = v221[1]; + v224 = v221[2]; + v225 = v221[3]; + v1.uniform4f(g219.location, v222, v223, v224, v225); + v226 = v6.elements; + if (v226) { + v1.bindBuffer(34963, v226.buffer.buffer); } else if (v11.currentVAO) { - v240 = v7.getElements(v11.currentVAO.elements); - if (v240) v1.bindBuffer(34963, v240.buffer.buffer); + v226 = v7.getElements(v11.currentVAO.elements); + if (v226) v1.bindBuffer(34963, v226.buffer.buffer); } - v241 = a0["count"]; - if (v241 > 0) { - if (v240) { - v108.drawElementsInstancedANGLE(5, 4, v240.type, 0 << (v240.type - 5121 >> 1), v241); + v227 = v6.offset; + v228 = a0["count"]; + if (v228 > 0) { + if (v226) { + v110.drawElementsInstancedANGLE(4, 36, v226.type, v227 << (v226.type - 5121 >> 1), v228); } else { - v108.drawArraysInstancedANGLE(5, 0, 4, v241); + v110.drawArraysInstancedANGLE(4, v227, 36, v228); } - } else if (v241 < 0) { - if (v240) { - v1.drawElements(5, 4, v240.type, 0 << (v240.type - 5121 >> 1)); + } else if (v228 < 0) { + if (v226) { + v1.drawElements(4, 36, v226.type, v227 << (v226.type - 5121 >> 1)); } else { - v1.drawArrays(5, 0, 4); + v1.drawArrays(4, v227, 36); } } v5.dirty = true; v11.setVAO(null); - v2.viewportWidth = v93; - v2.viewportHeight = v94; - if (v105) { - g48.cpuTime += performance.now() - v106; - } - if (v110) { - v8.destroyStream(v116); + v2.viewportWidth = v97; + v2.viewportHeight = v98; + if (v107) { + g48.cpuTime += performance.now() - v108; } - if (v128) { - v8.destroyStream(v134); + if (v117) { + v8.destroyStream(v123); } - if (v146) { - v8.destroyStream(v152); + if (v139) { + v8.destroyStream(v145); } - if (v164) { - v8.destroyStream(v170); + if (v161) { + v8.destroyStream(v167); } - if (v182) { - v8.destroyStream(v188); + if (v180) { + v8.destroyStream(v186); } - v210.unbind(); }, "scope": function(a0, a1, a2) { - var v242, v243, v244, v245, v246, v247, v248, v249, v250, v251, v252, v254, v256, v258, v260, v262, v264, v266, v268, v270, v272, v274, v275, v276, v277, v278, v279, v280, v281, v282, v283, v284, v285, v287, v289, v290, v291, v293, v295, v296, v297, v299, v301, v303, v304, v306, v307, v309, v310, v312, v313, v315, v316, v318, v319, v321, v322, v324, v325, v327, v328, v330, v331, v333, v334, v336, v337, v339, v340, v342, v344, v345, v346, v347, v348, v349, v350, v351, v352, v353, v354, v355, v357, v358, v359, v360, v361, v362, v363, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v375, v376, v377, v378, v379, v380, v381, v382, v384, v385, v386, v387, v388, v389, v390, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v409, v411, v412, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v438, v439, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v457, v458, v459, v460, v461, v462, v463, v465, v466, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v490, v492, v493, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v505, v507; - v242 = a0["viewport"]; - v243 = v242.x | 0; - v244 = v242.y | 0; - v245 = "width" in v242 ? v242.width | 0 : v2.framebufferWidth - v243; - v246 = "height" in v242 ? v242.height | 0 : v2.framebufferHeight - v244; - v247 = v2.viewportWidth; - v2.viewportWidth = v245; - v248 = v2.viewportHeight; - v2.viewportHeight = v246; - v249 = v39[0]; - v39[0] = v243; - v250 = v39[1]; - v39[1] = v244; - v251 = v39[2]; - v39[2] = v245; - v252 = v39[3]; - v39[3] = v246; - v254 = v17[0]; - v17[0] = g253; - v256 = v17[1]; - v17[1] = g255; - v258 = v17[2]; - v17[2] = g257; - v260 = v17[3]; - v17[3] = g259; - v262 = v4.blend_enable; - v4.blend_enable = g261; - v264 = v19[0]; - v19[0] = g263; - v266 = v19[1]; - v19[1] = g265; - v268 = v21[0]; - v21[0] = g267; - v270 = v21[1]; - v21[1] = g269; - v272 = v21[2]; - v21[2] = g271; - v274 = v21[3]; - v21[3] = g273; - v275 = g96.call(this, v2, a0, a2); - v276 = v4.depth_enable; - v4.depth_enable = v275; - v277 = a0["viewport"]; - v278 = v277.x | 0; - v279 = v277.y | 0; - v280 = "width" in v277 ? v277.width | 0 : v2.framebufferWidth - v278; - v281 = "height" in v277 ? v277.height | 0 : v2.framebufferHeight - v279; - v282 = v37[0]; - v37[0] = v278; - v283 = v37[1]; - v37[1] = v279; - v284 = v37[2]; - v37[2] = v280; - v285 = v37[3]; - v37[3] = v281; - v287 = v4.scissor_enable; - v4.scissor_enable = g286; - v289 = v4.stencil_enable; - v4.stencil_enable = g288; - v290 = v5.profile; - if (v290) { - v291 = performance.now(); + var v229, v230, v231, v232, v233, v234, v235, v236, v237, v238, v239, v241, v243, v245, v247, v249, v251, v253, v255, v257, v259, v261, v263, v264, v265, v266, v267, v268, v269, v270, v271, v272, v274, v275, v276, v278, v279, v280, v282, v283, v285, v286, v288, v289, v291, v292, v294, v295, v297, v298, v300, v301, v303, v304, v306, v307, v309, v311, v312, v313, v314, v315, v316, v317, v318, v319, v320, v321, v322, v324, v325, v326, v327, v328, v329, v330, v331, v332, v333, v334, v335, v337, v338, v339, v340, v341, v342, v343, v344, v345, v346, v347, v348, v349, v350, v351, v352, v353, v354, v355, v356, v357, v358, v359, v360, v361, v362, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v375, v376, v377, v378, v379, v380, v381, v382, v383, v384, v385, v386, v387, v388, v389, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v409, v410, v411, v412, v413, v414, v415, v416, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v437, v438, v439, v440, v441, v442, v443, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v458, v460; + v229 = a0["viewport"]; + v230 = v229.x | 0; + v231 = v229.y | 0; + v232 = "width" in v229 ? v229.width | 0 : v2.framebufferWidth - v230; + v233 = "height" in v229 ? v229.height | 0 : v2.framebufferHeight - v231; + v234 = v2.viewportWidth; + v2.viewportWidth = v232; + v235 = v2.viewportHeight; + v2.viewportHeight = v233; + v236 = v39[0]; + v39[0] = v230; + v237 = v39[1]; + v39[1] = v231; + v238 = v39[2]; + v39[2] = v232; + v239 = v39[3]; + v39[3] = v233; + v241 = v17[0]; + v17[0] = g240; + v243 = v17[1]; + v17[1] = g242; + v245 = v17[2]; + v17[2] = g244; + v247 = v17[3]; + v17[3] = g246; + v249 = v4.blend_enable; + v4.blend_enable = g248; + v251 = v19[0]; + v19[0] = g250; + v253 = v19[1]; + v19[1] = g252; + v255 = v21[0]; + v21[0] = g254; + v257 = v21[1]; + v21[1] = g256; + v259 = v21[2]; + v21[2] = g258; + v261 = v21[3]; + v21[3] = g260; + v263 = v4.depth_enable; + v4.depth_enable = g262; + v264 = a0["viewport"]; + v265 = v264.x | 0; + v266 = v264.y | 0; + v267 = "width" in v264 ? v264.width | 0 : v2.framebufferWidth - v265; + v268 = "height" in v264 ? v264.height | 0 : v2.framebufferHeight - v266; + v269 = v37[0]; + v37[0] = v265; + v270 = v37[1]; + v37[1] = v266; + v271 = v37[2]; + v37[2] = v267; + v272 = v37[3]; + v37[3] = v268; + v274 = v4.scissor_enable; + v4.scissor_enable = g273; + v275 = v5.profile; + if (v275) { + v276 = performance.now(); g48.count++; } - v293 = v6.offset; - v6.offset = g292; - v295 = v6.count; - v6.count = g294; - v296 = a0["count"]; - v297 = v6.instances; - v6.instances = v296; - v299 = v6.primitive; - v6.primitive = g298; - v301 = g300.call(this, v2, a0, a2); + v278 = v6.count; + v6.count = g277; + v279 = a0["count"]; + v280 = v6.instances; + v6.instances = v279; + v282 = v6.primitive; + v6.primitive = g281; + v283 = a0["range"]; + v285 = v12[g284]; + v12[g284] = v283; + v286 = a0["lineWidth"]; + v288 = v12[g287]; + v12[g287] = v286; + v289 = a0["capSize"]; + v291 = v12[g290]; + v12[g290] = v289; + v292 = a0["opacity"]; + v294 = v12[g293]; + v12[g293] = v292; + v295 = a0["scale"]; + v297 = v12[g296]; + v12[g296] = v295; + v298 = a0["translate"]; + v300 = v12[g299]; + v12[g299] = v298; + v301 = a0["scaleFract"]; v303 = v12[g302]; v12[g302] = v301; - v304 = a0["miterLimit"]; + v304 = a0["translateFract"]; v306 = v12[g305]; v12[g305] = v304; - v307 = a0["scale"]; + v307 = g220.call(this, v2, a0, a2); v309 = v12[g308]; v12[g308] = v307; - v310 = a0["scaleFract"]; - v312 = v12[g311]; - v12[g311] = v310; - v313 = a0["translateFract"]; - v315 = v12[g314]; - v12[g314] = v313; - v316 = a0["translate"]; - v318 = v12[g317]; - v12[g317] = v316; - v319 = a0["thickness"]; - v321 = v12[g320]; - v12[g320] = v319; - v322 = a0["dashTexture"]; - v324 = v12[g323]; - v12[g323] = v322; - v325 = a0["opacity"]; - v327 = v12[g326]; - v12[g326] = v325; - v328 = v2["pixelRatio"]; - v330 = v12[g329]; - v12[g329] = v328; - v331 = a0["id"]; - v333 = v12[g332]; - v12[g332] = v331; - v334 = a0["dashLength"]; - v336 = v12[g335]; - v12[g335] = v334; - v337 = g234.call(this, v2, a0, a2); - v339 = v12[g338]; - v12[g338] = v337; - v340 = a0["depth"]; - v342 = v12[g341]; - v12[g341] = v340; - v344 = g343.state; - g343.state = 1; - v345 = g343.x; - g343.x = 0; - v346 = g343.y; - g343.y = 0; - v347 = g343.z; - g343.z = 0; - v348 = g343.w; - g343.w = 0; - v349 = g343.buffer; - g343.buffer = g199; - v350 = g343.size; - g343.size = 0; - v351 = g343.normalized; - g343.normalized = false; - v352 = g343.type; - g343.type = 5126; - v353 = g343.offset; - g343.offset = 0; - v354 = g343.stride; - g343.stride = 8; - v355 = g343.divisor; - g343.divisor = 0; - v357 = g356.state; - g356.state = 1; - v358 = g356.x; - g356.x = 0; - v359 = g356.y; - g356.y = 0; - v360 = g356.z; - g356.z = 0; - v361 = g356.w; - g356.w = 0; - v362 = g356.buffer; - g356.buffer = g199; - v363 = g356.size; - g356.size = 0; - v364 = g356.normalized; - g356.normalized = false; - v365 = g356.type; - g356.type = 5126; - v366 = g356.offset; - g356.offset = 4; - v367 = g356.stride; - g356.stride = 8; - v368 = g356.divisor; - g356.divisor = 0; - v369 = a0["positionBuffer"]; - v49.buffer = v369; - v370 = false; - v371 = 1; - v372 = 0; - v373 = 0; - v374 = 0; - v375 = 0; - v376 = null; - v377 = 0; - v378 = false; - v379 = 5126; - v380 = 0; - v381 = 0; - v382 = 0; + v311 = g310.state; + g310.state = 1; + v312 = g310.x; + g310.x = 0; + v313 = g310.y; + g310.y = 0; + v314 = g310.z; + g310.z = 0; + v315 = g310.w; + g310.w = 0; + v316 = g310.buffer; + g310.buffer = g111; + v317 = g310.size; + g310.size = 0; + v318 = g310.normalized; + g310.normalized = false; + v319 = g310.type; + g310.type = 5126; + v320 = g310.offset; + g310.offset = 0; + v321 = g310.stride; + g310.stride = 24; + v322 = g310.divisor; + g310.divisor = 0; + v324 = g323.state; + g323.state = 1; + v325 = g323.x; + g323.x = 0; + v326 = g323.y; + g323.y = 0; + v327 = g323.z; + g323.z = 0; + v328 = g323.w; + g323.w = 0; + v329 = g323.buffer; + g323.buffer = g111; + v330 = g323.size; + g323.size = 0; + v331 = g323.normalized; + g323.normalized = false; + v332 = g323.type; + g323.type = 5126; + v333 = g323.offset; + g323.offset = 8; + v334 = g323.stride; + g323.stride = 24; + v335 = g323.divisor; + g323.divisor = 0; + v337 = g336.state; + g336.state = 1; + v338 = g336.x; + g336.x = 0; + v339 = g336.y; + g336.y = 0; + v340 = g336.z; + g336.z = 0; + v341 = g336.w; + g336.w = 0; + v342 = g336.buffer; + g336.buffer = g111; + v343 = g336.size; + g336.size = 0; + v344 = g336.normalized; + g336.normalized = false; + v345 = g336.type; + g336.type = 5126; + v346 = g336.offset; + g336.offset = 16; + v347 = g336.stride; + g336.stride = 24; + v348 = g336.divisor; + g336.divisor = 0; + v349 = g115.call(this, v2, a0, a2); + v49.offset = v349; + v350 = false; + v351 = 1; + v352 = 0; + v353 = 0; + v354 = 0; + v355 = 0; + v356 = null; + v357 = 0; + v358 = false; + v359 = 5126; + v360 = 0; + v361 = 0; + v362 = 0; if (v16(v49)) { - v370 = true; - v376 = v8.createStream(34962, v49); - v379 = v376.dtype; + v350 = true; + v356 = v8.createStream(34962, v49); + v359 = v356.dtype; } else { - v376 = v8.getBuffer(v49); - if (v376) { - v379 = v376.dtype; + v356 = v8.getBuffer(v49); + if (v356) { + v359 = v356.dtype; } else if ("constant" in v49) { - v371 = 2; + v351 = 2; if (typeof v49.constant === "number") { - v372 = v49.constant; - v373 = v374 = v375 = 0; + v352 = v49.constant; + v353 = v354 = v355 = 0; } else { - v372 = v49.constant.length > 0 ? v49.constant[0] : 0; - v373 = v49.constant.length > 1 ? v49.constant[1] : 0; - v374 = v49.constant.length > 2 ? v49.constant[2] : 0; - v375 = v49.constant.length > 3 ? v49.constant[3] : 0; + v352 = v49.constant.length > 0 ? v49.constant[0] : 0; + v353 = v49.constant.length > 1 ? v49.constant[1] : 0; + v354 = v49.constant.length > 2 ? v49.constant[2] : 0; + v355 = v49.constant.length > 3 ? v49.constant[3] : 0; } } else { if (v16(v49.buffer)) { - v376 = v8.createStream(34962, v49.buffer); + v356 = v8.createStream(34962, v49.buffer); } else { - v376 = v8.getBuffer(v49.buffer); + v356 = v8.getBuffer(v49.buffer); } - v379 = "type" in v49 ? v46[v49.type] : v376.dtype; - v378 = !!v49.normalized; - v377 = v49.size | 0; - v380 = v49.offset | 0; - v381 = v49.stride | 0; - v382 = v49.divisor | 0; + v359 = "type" in v49 ? v46[v49.type] : v356.dtype; + v358 = !!v49.normalized; + v357 = v49.size | 0; + v360 = v49.offset | 0; + v361 = v49.stride | 0; + v362 = v49.divisor | 0; } } - v384 = g383.state; - g383.state = v371; - v385 = g383.x; - g383.x = v372; - v386 = g383.y; - g383.y = v373; - v387 = g383.z; - g383.z = v374; - v388 = g383.w; - g383.w = v375; - v389 = g383.buffer; - g383.buffer = v376; - v390 = g383.size; - g383.size = v377; - v391 = g383.normalized; - g383.normalized = v378; - v392 = g383.type; - g383.type = v379; - v393 = g383.offset; - g383.offset = v380; - v394 = g383.stride; - g383.stride = v381; - v395 = g383.divisor; - g383.divisor = v382; - v396 = a0["positionBuffer"]; - v50.buffer = v396; - v397 = false; - v398 = 1; - v399 = 0; - v400 = 0; - v401 = 0; - v402 = 0; - v403 = null; - v404 = 0; - v405 = false; - v406 = 5126; - v407 = 0; - v408 = 0; - v409 = 0; - if (v16(v50)) { - v397 = true; - v403 = v8.createStream(34962, v50); - v406 = v403.dtype; - } else { - v403 = v8.getBuffer(v50); - if (v403) { - v406 = v403.dtype; - } else if ("constant" in v50) { - v398 = 2; - if (typeof v50.constant === "number") { - v399 = v50.constant; - v400 = v401 = v402 = 0; - } else { - v399 = v50.constant.length > 0 ? v50.constant[0] : 0; - v400 = v50.constant.length > 1 ? v50.constant[1] : 0; - v401 = v50.constant.length > 2 ? v50.constant[2] : 0; - v402 = v50.constant.length > 3 ? v50.constant[3] : 0; - } - } else { - if (v16(v50.buffer)) { - v403 = v8.createStream(34962, v50.buffer); - } else { - v403 = v8.getBuffer(v50.buffer); - } - v406 = "type" in v50 ? v46[v50.type] : v403.dtype; - v405 = !!v50.normalized; - v404 = v50.size | 0; - v407 = v50.offset | 0; - v408 = v50.stride | 0; - v409 = v50.divisor | 0; - } - } - v411 = g410.state; - g410.state = v398; - v412 = g410.x; - g410.x = v399; - v413 = g410.y; - g410.y = v400; - v414 = g410.z; - g410.z = v401; - v415 = g410.w; - g410.w = v402; - v416 = g410.buffer; - g410.buffer = v403; - v417 = g410.size; - g410.size = v404; - v418 = g410.normalized; - g410.normalized = v405; - v419 = g410.type; - g410.type = v406; - v420 = g410.offset; - g410.offset = v407; - v421 = g410.stride; - g410.stride = v408; - v422 = g410.divisor; - g410.divisor = v409; - v423 = a0["positionFractBuffer"]; - v51.buffer = v423; - v424 = false; - v425 = 1; - v426 = 0; - v427 = 0; - v428 = 0; - v429 = 0; - v430 = null; - v431 = 0; - v432 = false; - v433 = 5126; - v434 = 0; - v435 = 0; - v436 = 0; + v364 = g363.state; + g363.state = v351; + v365 = g363.x; + g363.x = v352; + v366 = g363.y; + g363.y = v353; + v367 = g363.z; + g363.z = v354; + v368 = g363.w; + g363.w = v355; + v369 = g363.buffer; + g363.buffer = v356; + v370 = g363.size; + g363.size = v357; + v371 = g363.normalized; + g363.normalized = v358; + v372 = g363.type; + g363.type = v359; + v373 = g363.offset; + g363.offset = v360; + v374 = g363.stride; + g363.stride = v361; + v375 = g363.divisor; + g363.divisor = v362; + v376 = g159.call(this, v2, a0, a2); + v51.offset = v376; + v377 = false; + v378 = 1; + v379 = 0; + v380 = 0; + v381 = 0; + v382 = 0; + v383 = null; + v384 = 0; + v385 = false; + v386 = 5126; + v387 = 0; + v388 = 0; + v389 = 0; if (v16(v51)) { - v424 = true; - v430 = v8.createStream(34962, v51); - v433 = v430.dtype; + v377 = true; + v383 = v8.createStream(34962, v51); + v386 = v383.dtype; } else { - v430 = v8.getBuffer(v51); - if (v430) { - v433 = v430.dtype; + v383 = v8.getBuffer(v51); + if (v383) { + v386 = v383.dtype; } else if ("constant" in v51) { - v425 = 2; + v378 = 2; if (typeof v51.constant === "number") { - v426 = v51.constant; - v427 = v428 = v429 = 0; + v379 = v51.constant; + v380 = v381 = v382 = 0; } else { - v426 = v51.constant.length > 0 ? v51.constant[0] : 0; - v427 = v51.constant.length > 1 ? v51.constant[1] : 0; - v428 = v51.constant.length > 2 ? v51.constant[2] : 0; - v429 = v51.constant.length > 3 ? v51.constant[3] : 0; + v379 = v51.constant.length > 0 ? v51.constant[0] : 0; + v380 = v51.constant.length > 1 ? v51.constant[1] : 0; + v381 = v51.constant.length > 2 ? v51.constant[2] : 0; + v382 = v51.constant.length > 3 ? v51.constant[3] : 0; } } else { if (v16(v51.buffer)) { - v430 = v8.createStream(34962, v51.buffer); + v383 = v8.createStream(34962, v51.buffer); } else { - v430 = v8.getBuffer(v51.buffer); + v383 = v8.getBuffer(v51.buffer); } - v433 = "type" in v51 ? v46[v51.type] : v430.dtype; - v432 = !!v51.normalized; - v431 = v51.size | 0; - v434 = v51.offset | 0; - v435 = v51.stride | 0; - v436 = v51.divisor | 0; + v386 = "type" in v51 ? v46[v51.type] : v383.dtype; + v385 = !!v51.normalized; + v384 = v51.size | 0; + v387 = v51.offset | 0; + v388 = v51.stride | 0; + v389 = v51.divisor | 0; } } - v438 = g437.state; - g437.state = v425; - v439 = g437.x; - g437.x = v426; - v440 = g437.y; - g437.y = v427; - v441 = g437.z; - g437.z = v428; - v442 = g437.w; - g437.w = v429; - v443 = g437.buffer; - g437.buffer = v430; - v444 = g437.size; - g437.size = v431; - v445 = g437.normalized; - g437.normalized = v432; - v446 = g437.type; - g437.type = v433; - v447 = g437.offset; - g437.offset = v434; - v448 = g437.stride; - g437.stride = v435; - v449 = g437.divisor; - g437.divisor = v436; - v450 = a0["positionFractBuffer"]; - v52.buffer = v450; - v451 = false; - v452 = 1; - v453 = 0; - v454 = 0; - v455 = 0; - v456 = 0; - v457 = null; - v458 = 0; - v459 = false; - v460 = 5126; - v461 = 0; - v462 = 0; - v463 = 0; - if (v16(v52)) { - v451 = true; - v457 = v8.createStream(34962, v52); - v460 = v457.dtype; + v391 = g390.state; + g390.state = v378; + v392 = g390.x; + g390.x = v379; + v393 = g390.y; + g390.y = v380; + v394 = g390.z; + g390.z = v381; + v395 = g390.w; + g390.w = v382; + v396 = g390.buffer; + g390.buffer = v383; + v397 = g390.size; + g390.size = v384; + v398 = g390.normalized; + g390.normalized = v385; + v399 = g390.type; + g390.type = v386; + v400 = g390.offset; + g390.offset = v387; + v401 = g390.stride; + g390.stride = v388; + v402 = g390.divisor; + g390.divisor = v389; + v403 = g178.call(this, v2, a0, a2); + v53.offset = v403; + v404 = false; + v405 = 1; + v406 = 0; + v407 = 0; + v408 = 0; + v409 = 0; + v410 = null; + v411 = 0; + v412 = false; + v413 = 5126; + v414 = 0; + v415 = 0; + v416 = 0; + if (v16(v53)) { + v404 = true; + v410 = v8.createStream(34962, v53); + v413 = v410.dtype; } else { - v457 = v8.getBuffer(v52); - if (v457) { - v460 = v457.dtype; - } else if ("constant" in v52) { - v452 = 2; - if (typeof v52.constant === "number") { - v453 = v52.constant; - v454 = v455 = v456 = 0; + v410 = v8.getBuffer(v53); + if (v410) { + v413 = v410.dtype; + } else if ("constant" in v53) { + v405 = 2; + if (typeof v53.constant === "number") { + v406 = v53.constant; + v407 = v408 = v409 = 0; } else { - v453 = v52.constant.length > 0 ? v52.constant[0] : 0; - v454 = v52.constant.length > 1 ? v52.constant[1] : 0; - v455 = v52.constant.length > 2 ? v52.constant[2] : 0; - v456 = v52.constant.length > 3 ? v52.constant[3] : 0; + v406 = v53.constant.length > 0 ? v53.constant[0] : 0; + v407 = v53.constant.length > 1 ? v53.constant[1] : 0; + v408 = v53.constant.length > 2 ? v53.constant[2] : 0; + v409 = v53.constant.length > 3 ? v53.constant[3] : 0; } } else { - if (v16(v52.buffer)) { - v457 = v8.createStream(34962, v52.buffer); + if (v16(v53.buffer)) { + v410 = v8.createStream(34962, v53.buffer); } else { - v457 = v8.getBuffer(v52.buffer); + v410 = v8.getBuffer(v53.buffer); } - v460 = "type" in v52 ? v46[v52.type] : v457.dtype; - v459 = !!v52.normalized; - v458 = v52.size | 0; - v461 = v52.offset | 0; - v462 = v52.stride | 0; - v463 = v52.divisor | 0; + v413 = "type" in v53 ? v46[v53.type] : v410.dtype; + v412 = !!v53.normalized; + v411 = v53.size | 0; + v414 = v53.offset | 0; + v415 = v53.stride | 0; + v416 = v53.divisor | 0; } } - v465 = g464.state; - g464.state = v452; - v466 = g464.x; - g464.x = v453; - v467 = g464.y; - g464.y = v454; - v468 = g464.z; - g464.z = v455; - v469 = g464.w; - g464.w = v456; - v470 = g464.buffer; - g464.buffer = v457; - v471 = g464.size; - g464.size = v458; - v472 = g464.normalized; - g464.normalized = v459; - v473 = g464.type; - g464.type = v460; - v474 = g464.offset; - g464.offset = v461; - v475 = g464.stride; - g464.stride = v462; - v476 = g464.divisor; - g464.divisor = v463; - v477 = a0["colorBuffer"]; - v53.buffer = v477; - v478 = false; - v479 = 1; - v480 = 0; - v481 = 0; - v482 = 0; - v483 = 0; - v484 = null; - v485 = 0; - v486 = false; - v487 = 5126; - v488 = 0; - v489 = 0; - v490 = 0; - if (v16(v53)) { - v478 = true; - v484 = v8.createStream(34962, v53); - v487 = v484.dtype; + v418 = g417.state; + g417.state = v405; + v419 = g417.x; + g417.x = v406; + v420 = g417.y; + g417.y = v407; + v421 = g417.z; + g417.z = v408; + v422 = g417.w; + g417.w = v409; + v423 = g417.buffer; + g417.buffer = v410; + v424 = g417.size; + g417.size = v411; + v425 = g417.normalized; + g417.normalized = v412; + v426 = g417.type; + g417.type = v413; + v427 = g417.offset; + g417.offset = v414; + v428 = g417.stride; + g417.stride = v415; + v429 = g417.divisor; + g417.divisor = v416; + v430 = g137.call(this, v2, a0, a2); + v55.offset = v430; + v431 = false; + v432 = 1; + v433 = 0; + v434 = 0; + v435 = 0; + v436 = 0; + v437 = null; + v438 = 0; + v439 = false; + v440 = 5126; + v441 = 0; + v442 = 0; + v443 = 0; + if (v16(v55)) { + v431 = true; + v437 = v8.createStream(34962, v55); + v440 = v437.dtype; } else { - v484 = v8.getBuffer(v53); - if (v484) { - v487 = v484.dtype; - } else if ("constant" in v53) { - v479 = 2; - if (typeof v53.constant === "number") { - v480 = v53.constant; - v481 = v482 = v483 = 0; + v437 = v8.getBuffer(v55); + if (v437) { + v440 = v437.dtype; + } else if ("constant" in v55) { + v432 = 2; + if (typeof v55.constant === "number") { + v433 = v55.constant; + v434 = v435 = v436 = 0; } else { - v480 = v53.constant.length > 0 ? v53.constant[0] : 0; - v481 = v53.constant.length > 1 ? v53.constant[1] : 0; - v482 = v53.constant.length > 2 ? v53.constant[2] : 0; - v483 = v53.constant.length > 3 ? v53.constant[3] : 0; + v433 = v55.constant.length > 0 ? v55.constant[0] : 0; + v434 = v55.constant.length > 1 ? v55.constant[1] : 0; + v435 = v55.constant.length > 2 ? v55.constant[2] : 0; + v436 = v55.constant.length > 3 ? v55.constant[3] : 0; } } else { - if (v16(v53.buffer)) { - v484 = v8.createStream(34962, v53.buffer); + if (v16(v55.buffer)) { + v437 = v8.createStream(34962, v55.buffer); } else { - v484 = v8.getBuffer(v53.buffer); + v437 = v8.getBuffer(v55.buffer); } - v487 = "type" in v53 ? v46[v53.type] : v484.dtype; - v486 = !!v53.normalized; - v485 = v53.size | 0; - v488 = v53.offset | 0; - v489 = v53.stride | 0; - v490 = v53.divisor | 0; + v440 = "type" in v55 ? v46[v55.type] : v437.dtype; + v439 = !!v55.normalized; + v438 = v55.size | 0; + v441 = v55.offset | 0; + v442 = v55.stride | 0; + v443 = v55.divisor | 0; } } - v492 = g491.state; - g491.state = v479; - v493 = g491.x; - g491.x = v480; - v494 = g491.y; - g491.y = v481; - v495 = g491.z; - g491.z = v482; - v496 = g491.w; - g491.w = v483; - v497 = g491.buffer; - g491.buffer = v484; - v498 = g491.size; - g491.size = v485; - v499 = g491.normalized; - g491.normalized = v486; - v500 = g491.type; - g491.type = v487; - v501 = g491.offset; - g491.offset = v488; - v502 = g491.stride; - g491.stride = v489; - v503 = g491.divisor; - g491.divisor = v490; - v505 = v9.vert; - v9.vert = g504; - v507 = v9.frag; - v9.frag = g506; + v445 = g444.state; + g444.state = v432; + v446 = g444.x; + g444.x = v433; + v447 = g444.y; + g444.y = v434; + v448 = g444.z; + g444.z = v435; + v449 = g444.w; + g444.w = v436; + v450 = g444.buffer; + g444.buffer = v437; + v451 = g444.size; + g444.size = v438; + v452 = g444.normalized; + g444.normalized = v439; + v453 = g444.type; + g444.type = v440; + v454 = g444.offset; + g444.offset = v441; + v455 = g444.stride; + g444.stride = v442; + v456 = g444.divisor; + g444.divisor = v443; + v458 = v9.vert; + v9.vert = g457; + v460 = v9.frag; + v9.frag = g459; v5.dirty = true; a1(v2, a0, a2); - v2.viewportWidth = v247; - v2.viewportHeight = v248; - v39[0] = v249; - v39[1] = v250; - v39[2] = v251; - v39[3] = v252; - v17[0] = v254; - v17[1] = v256; - v17[2] = v258; - v17[3] = v260; - v4.blend_enable = v262; - v19[0] = v264; - v19[1] = v266; - v21[0] = v268; - v21[1] = v270; - v21[2] = v272; - v21[3] = v274; - v4.depth_enable = v276; - v37[0] = v282; - v37[1] = v283; - v37[2] = v284; - v37[3] = v285; - v4.scissor_enable = v287; - v4.stencil_enable = v289; - if (v290) { - g48.cpuTime += performance.now() - v291; + v2.viewportWidth = v234; + v2.viewportHeight = v235; + v39[0] = v236; + v39[1] = v237; + v39[2] = v238; + v39[3] = v239; + v17[0] = v241; + v17[1] = v243; + v17[2] = v245; + v17[3] = v247; + v4.blend_enable = v249; + v19[0] = v251; + v19[1] = v253; + v21[0] = v255; + v21[1] = v257; + v21[2] = v259; + v21[3] = v261; + v4.depth_enable = v263; + v37[0] = v269; + v37[1] = v270; + v37[2] = v271; + v37[3] = v272; + v4.scissor_enable = v274; + if (v275) { + g48.cpuTime += performance.now() - v276; } - v6.offset = v293; - v6.count = v295; - v6.instances = v297; - v6.primitive = v299; + v6.count = v278; + v6.instances = v280; + v6.primitive = v282; + v12[g284] = v285; + v12[g287] = v288; + v12[g290] = v291; + v12[g293] = v294; + v12[g296] = v297; + v12[g299] = v300; v12[g302] = v303; v12[g305] = v306; v12[g308] = v309; - v12[g311] = v312; - v12[g314] = v315; - v12[g317] = v318; - v12[g320] = v321; - v12[g323] = v324; - v12[g326] = v327; - v12[g329] = v330; - v12[g332] = v333; - v12[g335] = v336; - v12[g338] = v339; - v12[g341] = v342; - g343.state = v344; - g343.x = v345; - g343.y = v346; - g343.z = v347; - g343.w = v348; - g343.buffer = v349; - g343.size = v350; - g343.normalized = v351; - g343.type = v352; - g343.offset = v353; - g343.stride = v354; - g343.divisor = v355; - g356.state = v357; - g356.x = v358; - g356.y = v359; - g356.z = v360; - g356.w = v361; - g356.buffer = v362; - g356.size = v363; - g356.normalized = v364; - g356.type = v365; - g356.offset = v366; - g356.stride = v367; - g356.divisor = v368; - if (v370) { - v8.destroyStream(v376); - } - g383.state = v384; - g383.x = v385; - g383.y = v386; - g383.z = v387; - g383.w = v388; - g383.buffer = v389; - g383.size = v390; - g383.normalized = v391; - g383.type = v392; - g383.offset = v393; - g383.stride = v394; - g383.divisor = v395; - if (v397) { - v8.destroyStream(v403); + g310.state = v311; + g310.x = v312; + g310.y = v313; + g310.z = v314; + g310.w = v315; + g310.buffer = v316; + g310.size = v317; + g310.normalized = v318; + g310.type = v319; + g310.offset = v320; + g310.stride = v321; + g310.divisor = v322; + g323.state = v324; + g323.x = v325; + g323.y = v326; + g323.z = v327; + g323.w = v328; + g323.buffer = v329; + g323.size = v330; + g323.normalized = v331; + g323.type = v332; + g323.offset = v333; + g323.stride = v334; + g323.divisor = v335; + g336.state = v337; + g336.x = v338; + g336.y = v339; + g336.z = v340; + g336.w = v341; + g336.buffer = v342; + g336.size = v343; + g336.normalized = v344; + g336.type = v345; + g336.offset = v346; + g336.stride = v347; + g336.divisor = v348; + if (v350) { + v8.destroyStream(v356); } - g410.state = v411; - g410.x = v412; - g410.y = v413; - g410.z = v414; - g410.w = v415; - g410.buffer = v416; - g410.size = v417; - g410.normalized = v418; - g410.type = v419; - g410.offset = v420; - g410.stride = v421; - g410.divisor = v422; - if (v424) { - v8.destroyStream(v430); + g363.state = v364; + g363.x = v365; + g363.y = v366; + g363.z = v367; + g363.w = v368; + g363.buffer = v369; + g363.size = v370; + g363.normalized = v371; + g363.type = v372; + g363.offset = v373; + g363.stride = v374; + g363.divisor = v375; + if (v377) { + v8.destroyStream(v383); } - g437.state = v438; - g437.x = v439; - g437.y = v440; - g437.z = v441; - g437.w = v442; - g437.buffer = v443; - g437.size = v444; - g437.normalized = v445; - g437.type = v446; - g437.offset = v447; - g437.stride = v448; - g437.divisor = v449; - if (v451) { - v8.destroyStream(v457); + g390.state = v391; + g390.x = v392; + g390.y = v393; + g390.z = v394; + g390.w = v395; + g390.buffer = v396; + g390.size = v397; + g390.normalized = v398; + g390.type = v399; + g390.offset = v400; + g390.stride = v401; + g390.divisor = v402; + if (v404) { + v8.destroyStream(v410); } - g464.state = v465; - g464.x = v466; - g464.y = v467; - g464.z = v468; - g464.w = v469; - g464.buffer = v470; - g464.size = v471; - g464.normalized = v472; - g464.type = v473; - g464.offset = v474; - g464.stride = v475; - g464.divisor = v476; - if (v478) { - v8.destroyStream(v484); + g417.state = v418; + g417.x = v419; + g417.y = v420; + g417.z = v421; + g417.w = v422; + g417.buffer = v423; + g417.size = v424; + g417.normalized = v425; + g417.type = v426; + g417.offset = v427; + g417.stride = v428; + g417.divisor = v429; + if (v431) { + v8.destroyStream(v437); } - g491.state = v492; - g491.x = v493; - g491.y = v494; - g491.z = v495; - g491.w = v496; - g491.buffer = v497; - g491.size = v498; - g491.normalized = v499; - g491.type = v500; - g491.offset = v501; - g491.stride = v502; - g491.divisor = v503; - v9.vert = v505; - v9.frag = v507; + g444.state = v445; + g444.x = v446; + g444.y = v447; + g444.z = v448; + g444.w = v449; + g444.buffer = v450; + g444.size = v451; + g444.normalized = v452; + g444.type = v453; + g444.offset = v454; + g444.stride = v455; + g444.divisor = v456; + v9.vert = v458; + v9.frag = v460; v5.dirty = true; }, "batch": function(a0, a1) { - var v508, v509, v545, v546, v547, v548, v549; - v508 = v14.angle_instanced_arrays; - v509 = v13.next; - if (v509 !== v13.cur) { - if (v509) { - v1.bindFramebuffer(36160, v509.framebuffer); + var v461, v462, v499, v500, v501, v502, v503; + v461 = v14.angle_instanced_arrays; + v462 = v13.next; + if (v462 !== v13.cur) { + if (v462) { + v1.bindFramebuffer(36160, v462.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v509; + v13.cur = v462; } if (v5.dirty) { - var v510, v511, v512, v513, v514, v515, v516, v517, v518, v519, v520, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541; - v510 = v4.dither; - if (v510 !== v5.dither) { - if (v510) { + var v463, v464, v465, v466, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v490, v491, v492, v493, v494, v495; + v463 = v4.dither; + if (v463 !== v5.dither) { + if (v463) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v510; + v5.dither = v463; } - v511 = v4.depth_func; - if (v511 !== v5.depth_func) { - v1.depthFunc(v511); - v5.depth_func = v511; + v464 = v4.depth_func; + if (v464 !== v5.depth_func) { + v1.depthFunc(v464); + v5.depth_func = v464; } - v512 = v23[0]; - v513 = v23[1]; - if (v512 !== v24[0] || v513 !== v24[1]) { - v1.depthRange(v512, v513); - v24[0] = v512; - v24[1] = v513; + v465 = v23[0]; + v466 = v23[1]; + if (v465 !== v24[0] || v466 !== v24[1]) { + v1.depthRange(v465, v466); + v24[0] = v465; + v24[1] = v466; } - v514 = v4.depth_mask; - if (v514 !== v5.depth_mask) { - v1.depthMask(v514); - v5.depth_mask = v514; + v467 = v4.depth_mask; + if (v467 !== v5.depth_mask) { + v1.depthMask(v467); + v5.depth_mask = v467; } - v515 = v25[0]; - v516 = v25[1]; - v517 = v25[2]; - v518 = v25[3]; - if (v515 !== v26[0] || v516 !== v26[1] || v517 !== v26[2] || v518 !== v26[3]) { - v1.colorMask(v515, v516, v517, v518); - v26[0] = v515; - v26[1] = v516; - v26[2] = v517; - v26[3] = v518; + v468 = v25[0]; + v469 = v25[1]; + v470 = v25[2]; + v471 = v25[3]; + if (v468 !== v26[0] || v469 !== v26[1] || v470 !== v26[2] || v471 !== v26[3]) { + v1.colorMask(v468, v469, v470, v471); + v26[0] = v468; + v26[1] = v469; + v26[2] = v470; + v26[3] = v471; } - v519 = v4.cull_enable; - if (v519 !== v5.cull_enable) { - if (v519) { + v472 = v4.cull_enable; + if (v472 !== v5.cull_enable) { + if (v472) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v519; + v5.cull_enable = v472; } - v520 = v4.cull_face; - if (v520 !== v5.cull_face) { - v1.cullFace(v520); - v5.cull_face = v520; + v473 = v4.cull_face; + if (v473 !== v5.cull_face) { + v1.cullFace(v473); + v5.cull_face = v473; } - v521 = v4.frontFace; - if (v521 !== v5.frontFace) { - v1.frontFace(v521); - v5.frontFace = v521; + v474 = v4.frontFace; + if (v474 !== v5.frontFace) { + v1.frontFace(v474); + v5.frontFace = v474; } - v522 = v4.lineWidth; - if (v522 !== v5.lineWidth) { - v1.lineWidth(v522); - v5.lineWidth = v522; + v475 = v4.lineWidth; + if (v475 !== v5.lineWidth) { + v1.lineWidth(v475); + v5.lineWidth = v475; } - v523 = v4.polygonOffset_enable; - if (v523 !== v5.polygonOffset_enable) { - if (v523) { + v476 = v4.polygonOffset_enable; + if (v476 !== v5.polygonOffset_enable) { + if (v476) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v523; + v5.polygonOffset_enable = v476; } - v524 = v27[0]; - v525 = v27[1]; - if (v524 !== v28[0] || v525 !== v28[1]) { - v1.polygonOffset(v524, v525); - v28[0] = v524; - v28[1] = v525; + v477 = v27[0]; + v478 = v27[1]; + if (v477 !== v28[0] || v478 !== v28[1]) { + v1.polygonOffset(v477, v478); + v28[0] = v477; + v28[1] = v478; } - v526 = v4.sample_alpha; - if (v526 !== v5.sample_alpha) { - if (v526) { + v479 = v4.sample_alpha; + if (v479 !== v5.sample_alpha) { + if (v479) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v526; + v5.sample_alpha = v479; } - v527 = v4.sample_enable; - if (v527 !== v5.sample_enable) { - if (v527) { + v480 = v4.sample_enable; + if (v480 !== v5.sample_enable) { + if (v480) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v527; + v5.sample_enable = v480; } - v528 = v29[0]; - v529 = v29[1]; - if (v528 !== v30[0] || v529 !== v30[1]) { - v1.sampleCoverage(v528, v529); - v30[0] = v528; - v30[1] = v529; + v481 = v29[0]; + v482 = v29[1]; + if (v481 !== v30[0] || v482 !== v30[1]) { + v1.sampleCoverage(v481, v482); + v30[0] = v481; + v30[1] = v482; } - v530 = v4.stencil_mask; - if (v530 !== v5.stencil_mask) { - v1.stencilMask(v530); - v5.stencil_mask = v530; + v483 = v4.stencil_enable; + if (v483 !== v5.stencil_enable) { + if (v483) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v483; } - v531 = v31[0]; - v532 = v31[1]; - v533 = v31[2]; - if (v531 !== v32[0] || v532 !== v32[1] || v533 !== v32[2]) { - v1.stencilFunc(v531, v532, v533); - v32[0] = v531; - v32[1] = v532; - v32[2] = v533; + v484 = v4.stencil_mask; + if (v484 !== v5.stencil_mask) { + v1.stencilMask(v484); + v5.stencil_mask = v484; } - v534 = v33[0]; - v535 = v33[1]; - v536 = v33[2]; - v537 = v33[3]; - if (v534 !== v34[0] || v535 !== v34[1] || v536 !== v34[2] || v537 !== v34[3]) { - v1.stencilOpSeparate(v534, v535, v536, v537); - v34[0] = v534; - v34[1] = v535; - v34[2] = v536; - v34[3] = v537; + v485 = v31[0]; + v486 = v31[1]; + v487 = v31[2]; + if (v485 !== v32[0] || v486 !== v32[1] || v487 !== v32[2]) { + v1.stencilFunc(v485, v486, v487); + v32[0] = v485; + v32[1] = v486; + v32[2] = v487; } - v538 = v35[0]; - v539 = v35[1]; - v540 = v35[2]; - v541 = v35[3]; - if (v538 !== v36[0] || v539 !== v36[1] || v540 !== v36[2] || v541 !== v36[3]) { - v1.stencilOpSeparate(v538, v539, v540, v541); - v36[0] = v538; - v36[1] = v539; - v36[2] = v540; - v36[3] = v541; + v488 = v33[0]; + v489 = v33[1]; + v490 = v33[2]; + v491 = v33[3]; + if (v488 !== v34[0] || v489 !== v34[1] || v490 !== v34[2] || v491 !== v34[3]) { + v1.stencilOpSeparate(v488, v489, v490, v491); + v34[0] = v488; + v34[1] = v489; + v34[2] = v490; + v34[3] = v491; + } + v492 = v35[0]; + v493 = v35[1]; + v494 = v35[2]; + v495 = v35[3]; + if (v492 !== v36[0] || v493 !== v36[1] || v494 !== v36[2] || v495 !== v36[3]) { + v1.stencilOpSeparate(v492, v493, v494, v495); + v36[0] = v492; + v36[1] = v493; + v36[2] = v494; + v36[3] = v495; } } v1.blendColor(0, 0, 0, 0); @@ -172340,12 +172379,12 @@ void main() { v18[1] = 0; v18[2] = 0; v18[3] = 0; - if (g542) { + if (g496) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g542; + v5.blend_enable = g496; v1.blendEquationSeparate(32774, 32774); v20[0] = 32774; v20[1] = 32774; @@ -172354,623 +172393,539 @@ void main() { v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g543) { - v1.enable(3089); + if (g497) { + v1.enable(2929); } else { - v1.disable(3089); + v1.disable(2929); } - v5.scissor_enable = g543; - if (g544) { - v1.enable(2960); + v5.depth_enable = g497; + if (g498) { + v1.enable(3089); } else { - v1.disable(2960); + v1.disable(3089); } - v5.stencil_enable = g544; - v545 = v5.profile; - if (v545) { - v546 = performance.now(); + v5.scissor_enable = g498; + v499 = v5.profile; + if (v499) { + v500 = performance.now(); g48.count += a1; } - v1.useProgram(g107.program); - v547 = v14.angle_instanced_arrays; - var v563, v564, v565, v566, v691; + v1.useProgram(g109.program); + v501 = v14.angle_instanced_arrays; + var v516, v517, v518, v519, v520, v521, v625, v626; v11.setVAO(null); - v563 = g200.location; - v564 = v10[v563]; - if (!v564.buffer) { - v1.enableVertexAttribArray(v563); - } - if (v564.type !== 5126 || v564.size !== 1 || v564.buffer !== g199 || v564.normalized !== false || v564.offset !== 0 || v564.stride !== 8) { - v1.bindBuffer(34962, g199.buffer); - v1.vertexAttribPointer(v563, 1, 5126, false, 8, 0); - v564.type = 5126; - v564.size = 1; - v564.buffer = g199; - v564.normalized = false; - v564.offset = 0; - v564.stride = 8; - } - if (v564.divisor !== 0) { - v547.vertexAttribDivisorANGLE(v563, 0); - v564.divisor = 0; + v516 = g112.location; + v517 = v10[v516]; + if (!v517.buffer) { + v1.enableVertexAttribArray(v516); } - v565 = g203.location; - v566 = v10[v565]; - if (!v566.buffer) { - v1.enableVertexAttribArray(v565); + if (v517.type !== 5126 || v517.size !== 2 || v517.buffer !== g111 || v517.normalized !== false || v517.offset !== 16 || v517.stride !== 24) { + v1.bindBuffer(34962, g111.buffer); + v1.vertexAttribPointer(v516, 2, 5126, false, 24, 16); + v517.type = 5126; + v517.size = 2; + v517.buffer = g111; + v517.normalized = false; + v517.offset = 16; + v517.stride = 24; } - if (v566.type !== 5126 || v566.size !== 1 || v566.buffer !== g199 || v566.normalized !== false || v566.offset !== 4 || v566.stride !== 8) { - v1.bindBuffer(34962, g199.buffer); - v1.vertexAttribPointer(v565, 1, 5126, false, 8, 4); - v566.type = 5126; - v566.size = 1; - v566.buffer = g199; - v566.normalized = false; - v566.offset = 4; - v566.stride = 8; + if (v517.divisor !== 0) { + v501.vertexAttribDivisorANGLE(v516, 0); + v517.divisor = 0; } - if (v566.divisor !== 0) { - v547.vertexAttribDivisorANGLE(v565, 0); - v566.divisor = 0; + v518 = g134.location; + v519 = v10[v518]; + if (!v519.buffer) { + v1.enableVertexAttribArray(v518); } - v691 = v6.elements; - if (v691) { - v1.bindBuffer(34963, v691.buffer.buffer); + if (v519.type !== 5126 || v519.size !== 2 || v519.buffer !== g111 || v519.normalized !== false || v519.offset !== 0 || v519.stride !== 24) { + v1.bindBuffer(34962, g111.buffer); + v1.vertexAttribPointer(v518, 2, 5126, false, 24, 0); + v519.type = 5126; + v519.size = 2; + v519.buffer = g111; + v519.normalized = false; + v519.offset = 0; + v519.stride = 24; + } + if (v519.divisor !== 0) { + v501.vertexAttribDivisorANGLE(v518, 0); + v519.divisor = 0; + } + v520 = g156.location; + v521 = v10[v520]; + if (!v521.buffer) { + v1.enableVertexAttribArray(v520); + } + if (v521.type !== 5126 || v521.size !== 2 || v521.buffer !== g111 || v521.normalized !== false || v521.offset !== 8 || v521.stride !== 24) { + v1.bindBuffer(34962, g111.buffer); + v1.vertexAttribPointer(v520, 2, 5126, false, 24, 8); + v521.type = 5126; + v521.size = 2; + v521.buffer = g111; + v521.normalized = false; + v521.offset = 8; + v521.stride = 24; + } + if (v521.divisor !== 0) { + v501.vertexAttribDivisorANGLE(v520, 0); + v521.divisor = 0; + } + v625 = v6.elements; + if (v625) { + v1.bindBuffer(34963, v625.buffer.buffer); } else if (v11.currentVAO) { - v691 = v7.getElements(v11.currentVAO.elements); - if (v691) v1.bindBuffer(34963, v691.buffer.buffer); + v625 = v7.getElements(v11.currentVAO.elements); + if (v625) v1.bindBuffer(34963, v625.buffer.buffer); } - for (v548 = 0; v548 < a1; ++v548) { - v549 = a0[v548]; - var v550, v551, v552, v553, v554, v555, v556, v557, v558, v559, v560, v561, v562, v567, v568, v569, v570, v571, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v595, v596, v597, v598, v599, v600, v601, v602, v603, v604, v605, v606, v607, v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v625, v626, v627, v628, v629, v630, v631, v632, v633, v634, v635, v636, v637, v638, v639, v640, v641, v642, v643, v644, v645, v646, v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677, v678, v679, v680, v681, v682, v683, v684, v685, v686, v687, v688, v689, v690, v692; - v550 = v549["viewport"]; - v551 = v550.x | 0; - v552 = v550.y | 0; - v553 = "width" in v550 ? v550.width | 0 : v2.framebufferWidth - v551; - v554 = "height" in v550 ? v550.height | 0 : v2.framebufferHeight - v552; - v555 = v2.viewportWidth; - v2.viewportWidth = v553; - v556 = v2.viewportHeight; - v2.viewportHeight = v554; - v1.viewport(v551, v552, v553, v554); - v40[0] = v551; - v40[1] = v552; - v40[2] = v553; - v40[3] = v554; - v557 = g96.call(this, v2, v549, v548); - if (v557) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v557; - v558 = v549["viewport"]; - v559 = v558.x | 0; - v560 = v558.y | 0; - v561 = "width" in v558 ? v558.width | 0 : v2.framebufferWidth - v559; - v562 = "height" in v558 ? v558.height | 0 : v2.framebufferHeight - v560; - v1.scissor(v559, v560, v561, v562); - v38[0] = v559; - v38[1] = v560; - v38[2] = v561; - v38[3] = v562; - v567 = v549["positionBuffer"]; - v49.buffer = v567; - v568 = false; - v569 = 1; - v570 = 0; - v571 = 0; - v572 = 0; - v573 = 0; - v574 = null; - v575 = 0; - v576 = false; - v577 = 5126; - v578 = 0; - v579 = 0; - v580 = 0; + v626 = v6.offset; + for (v502 = 0; v502 < a1; ++v502) { + v503 = a0[v502]; + var v504, v505, v506, v507, v508, v509, v510, v511, v512, v513, v514, v515, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541, v542, v543, v544, v545, v546, v547, v548, v549, v550, v551, v552, v553, v554, v555, v556, v557, v558, v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v571, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v595, v596, v597, v598, v599, v600, v601, v602, v603, v604, v605, v606, v607, v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v627; + v504 = v503["viewport"]; + v505 = v504.x | 0; + v506 = v504.y | 0; + v507 = "width" in v504 ? v504.width | 0 : v2.framebufferWidth - v505; + v508 = "height" in v504 ? v504.height | 0 : v2.framebufferHeight - v506; + v509 = v2.viewportWidth; + v2.viewportWidth = v507; + v510 = v2.viewportHeight; + v2.viewportHeight = v508; + v1.viewport(v505, v506, v507, v508); + v40[0] = v505; + v40[1] = v506; + v40[2] = v507; + v40[3] = v508; + v511 = v503["viewport"]; + v512 = v511.x | 0; + v513 = v511.y | 0; + v514 = "width" in v511 ? v511.width | 0 : v2.framebufferWidth - v512; + v515 = "height" in v511 ? v511.height | 0 : v2.framebufferHeight - v513; + v1.scissor(v512, v513, v514, v515); + v38[0] = v512; + v38[1] = v513; + v38[2] = v514; + v38[3] = v515; + v522 = g115.call(this, v2, v503, v502); + v49.offset = v522; + v523 = false; + v524 = 1; + v525 = 0; + v526 = 0; + v527 = 0; + v528 = 0; + v529 = null; + v530 = 0; + v531 = false; + v532 = 5126; + v533 = 0; + v534 = 0; + v535 = 0; if (v16(v49)) { - v568 = true; - v574 = v8.createStream(34962, v49); - v577 = v574.dtype; + v523 = true; + v529 = v8.createStream(34962, v49); + v532 = v529.dtype; } else { - v574 = v8.getBuffer(v49); - if (v574) { - v577 = v574.dtype; + v529 = v8.getBuffer(v49); + if (v529) { + v532 = v529.dtype; } else if ("constant" in v49) { - v569 = 2; + v524 = 2; if (typeof v49.constant === "number") { - v570 = v49.constant; - v571 = v572 = v573 = 0; + v525 = v49.constant; + v526 = v527 = v528 = 0; } else { - v570 = v49.constant.length > 0 ? v49.constant[0] : 0; - v571 = v49.constant.length > 1 ? v49.constant[1] : 0; - v572 = v49.constant.length > 2 ? v49.constant[2] : 0; - v573 = v49.constant.length > 3 ? v49.constant[3] : 0; + v525 = v49.constant.length > 0 ? v49.constant[0] : 0; + v526 = v49.constant.length > 1 ? v49.constant[1] : 0; + v527 = v49.constant.length > 2 ? v49.constant[2] : 0; + v528 = v49.constant.length > 3 ? v49.constant[3] : 0; } } else { if (v16(v49.buffer)) { - v574 = v8.createStream(34962, v49.buffer); - } else { - v574 = v8.getBuffer(v49.buffer); - } - v577 = "type" in v49 ? v46[v49.type] : v574.dtype; - v576 = !!v49.normalized; - v575 = v49.size | 0; - v578 = v49.offset | 0; - v579 = v49.stride | 0; - v580 = v49.divisor | 0; - } - } - v581 = g123.location; - v582 = v10[v581]; - if (v569 === 1) { - if (!v582.buffer) { - v1.enableVertexAttribArray(v581); - } - v583 = v575 || 2; - if (v582.type !== v577 || v582.size !== v583 || v582.buffer !== v574 || v582.normalized !== v576 || v582.offset !== v578 || v582.stride !== v579) { - v1.bindBuffer(34962, v574.buffer); - v1.vertexAttribPointer(v581, v583, v577, v576, v579, v578); - v582.type = v577; - v582.size = v583; - v582.buffer = v574; - v582.normalized = v576; - v582.offset = v578; - v582.stride = v579; - } - if (v582.divisor !== v580) { - v547.vertexAttribDivisorANGLE(v581, v580); - v582.divisor = v580; - } - } else { - if (v582.buffer) { - v1.disableVertexAttribArray(v581); - v582.buffer = null; - } - if (v582.x !== v570 || v582.y !== v571 || v582.z !== v572 || v582.w !== v573) { - v1.vertexAttrib4f(v581, v570, v571, v572, v573); - v582.x = v570; - v582.y = v571; - v582.z = v572; - v582.w = v573; - } - } - v584 = v549["positionFractBuffer"]; - v51.buffer = v584; - v585 = false; - v586 = 1; - v587 = 0; - v588 = 0; - v589 = 0; - v590 = 0; - v591 = null; - v592 = 0; - v593 = false; - v594 = 5126; - v595 = 0; - v596 = 0; - v597 = 0; - if (v16(v51)) { - v585 = true; - v591 = v8.createStream(34962, v51); - v594 = v591.dtype; - } else { - v591 = v8.getBuffer(v51); - if (v591) { - v594 = v591.dtype; - } else if ("constant" in v51) { - v586 = 2; - if (typeof v51.constant === "number") { - v587 = v51.constant; - v588 = v589 = v590 = 0; - } else { - v587 = v51.constant.length > 0 ? v51.constant[0] : 0; - v588 = v51.constant.length > 1 ? v51.constant[1] : 0; - v589 = v51.constant.length > 2 ? v51.constant[2] : 0; - v590 = v51.constant.length > 3 ? v51.constant[3] : 0; - } - } else { - if (v16(v51.buffer)) { - v591 = v8.createStream(34962, v51.buffer); + v529 = v8.createStream(34962, v49.buffer); } else { - v591 = v8.getBuffer(v51.buffer); + v529 = v8.getBuffer(v49.buffer); } - v594 = "type" in v51 ? v46[v51.type] : v591.dtype; - v593 = !!v51.normalized; - v592 = v51.size | 0; - v595 = v51.offset | 0; - v596 = v51.stride | 0; - v597 = v51.divisor | 0; + v532 = "type" in v49 ? v46[v49.type] : v529.dtype; + v531 = !!v49.normalized; + v530 = v49.size | 0; + v533 = v49.offset | 0; + v534 = v49.stride | 0; + v535 = v49.divisor | 0; } } - v598 = g141.location; - v599 = v10[v598]; - if (v586 === 1) { - if (!v599.buffer) { - v1.enableVertexAttribArray(v598); + v536 = g130.location; + v537 = v10[v536]; + if (v524 === 1) { + if (!v537.buffer) { + v1.enableVertexAttribArray(v536); } - v600 = v592 || 2; - if (v599.type !== v594 || v599.size !== v600 || v599.buffer !== v591 || v599.normalized !== v593 || v599.offset !== v595 || v599.stride !== v596) { - v1.bindBuffer(34962, v591.buffer); - v1.vertexAttribPointer(v598, v600, v594, v593, v596, v595); - v599.type = v594; - v599.size = v600; - v599.buffer = v591; - v599.normalized = v593; - v599.offset = v595; - v599.stride = v596; + v538 = v530 || 4; + if (v537.type !== v532 || v537.size !== v538 || v537.buffer !== v529 || v537.normalized !== v531 || v537.offset !== v533 || v537.stride !== v534) { + v1.bindBuffer(34962, v529.buffer); + v1.vertexAttribPointer(v536, v538, v532, v531, v534, v533); + v537.type = v532; + v537.size = v538; + v537.buffer = v529; + v537.normalized = v531; + v537.offset = v533; + v537.stride = v534; } - if (v599.divisor !== v597) { - v547.vertexAttribDivisorANGLE(v598, v597); - v599.divisor = v597; + if (v537.divisor !== v535) { + v501.vertexAttribDivisorANGLE(v536, v535); + v537.divisor = v535; } } else { - if (v599.buffer) { - v1.disableVertexAttribArray(v598); - v599.buffer = null; + if (v537.buffer) { + v1.disableVertexAttribArray(v536); + v537.buffer = null; } - if (v599.x !== v587 || v599.y !== v588 || v599.z !== v589 || v599.w !== v590) { - v1.vertexAttrib4f(v598, v587, v588, v589, v590); - v599.x = v587; - v599.y = v588; - v599.z = v589; - v599.w = v590; + if (v537.x !== v525 || v537.y !== v526 || v537.z !== v527 || v537.w !== v528) { + v1.vertexAttrib4f(v536, v525, v526, v527, v528); + v537.x = v525; + v537.y = v526; + v537.z = v527; + v537.w = v528; } } - v601 = v549["positionBuffer"]; - v50.buffer = v601; - v602 = false; - v603 = 1; - v604 = 0; - v605 = 0; - v606 = 0; - v607 = 0; - v608 = null; - v609 = 0; - v610 = false; - v611 = 5126; - v612 = 0; - v613 = 0; - v614 = 0; - if (v16(v50)) { - v602 = true; - v608 = v8.createStream(34962, v50); - v611 = v608.dtype; + v539 = g137.call(this, v2, v503, v502); + v55.offset = v539; + v540 = false; + v541 = 1; + v542 = 0; + v543 = 0; + v544 = 0; + v545 = 0; + v546 = null; + v547 = 0; + v548 = false; + v549 = 5126; + v550 = 0; + v551 = 0; + v552 = 0; + if (v16(v55)) { + v540 = true; + v546 = v8.createStream(34962, v55); + v549 = v546.dtype; } else { - v608 = v8.getBuffer(v50); - if (v608) { - v611 = v608.dtype; - } else if ("constant" in v50) { - v603 = 2; - if (typeof v50.constant === "number") { - v604 = v50.constant; - v605 = v606 = v607 = 0; + v546 = v8.getBuffer(v55); + if (v546) { + v549 = v546.dtype; + } else if ("constant" in v55) { + v541 = 2; + if (typeof v55.constant === "number") { + v542 = v55.constant; + v543 = v544 = v545 = 0; } else { - v604 = v50.constant.length > 0 ? v50.constant[0] : 0; - v605 = v50.constant.length > 1 ? v50.constant[1] : 0; - v606 = v50.constant.length > 2 ? v50.constant[2] : 0; - v607 = v50.constant.length > 3 ? v50.constant[3] : 0; + v542 = v55.constant.length > 0 ? v55.constant[0] : 0; + v543 = v55.constant.length > 1 ? v55.constant[1] : 0; + v544 = v55.constant.length > 2 ? v55.constant[2] : 0; + v545 = v55.constant.length > 3 ? v55.constant[3] : 0; } } else { - if (v16(v50.buffer)) { - v608 = v8.createStream(34962, v50.buffer); + if (v16(v55.buffer)) { + v546 = v8.createStream(34962, v55.buffer); } else { - v608 = v8.getBuffer(v50.buffer); + v546 = v8.getBuffer(v55.buffer); } - v611 = "type" in v50 ? v46[v50.type] : v608.dtype; - v610 = !!v50.normalized; - v609 = v50.size | 0; - v612 = v50.offset | 0; - v613 = v50.stride | 0; - v614 = v50.divisor | 0; + v549 = "type" in v55 ? v46[v55.type] : v546.dtype; + v548 = !!v55.normalized; + v547 = v55.size | 0; + v550 = v55.offset | 0; + v551 = v55.stride | 0; + v552 = v55.divisor | 0; } } - v615 = g159.location; - v616 = v10[v615]; - if (v603 === 1) { - if (!v616.buffer) { - v1.enableVertexAttribArray(v615); + v553 = g152.location; + v554 = v10[v553]; + if (v541 === 1) { + if (!v554.buffer) { + v1.enableVertexAttribArray(v553); } - v617 = v609 || 2; - if (v616.type !== v611 || v616.size !== v617 || v616.buffer !== v608 || v616.normalized !== v610 || v616.offset !== v612 || v616.stride !== v613) { - v1.bindBuffer(34962, v608.buffer); - v1.vertexAttribPointer(v615, v617, v611, v610, v613, v612); - v616.type = v611; - v616.size = v617; - v616.buffer = v608; - v616.normalized = v610; - v616.offset = v612; - v616.stride = v613; + v555 = v547 || 4; + if (v554.type !== v549 || v554.size !== v555 || v554.buffer !== v546 || v554.normalized !== v548 || v554.offset !== v550 || v554.stride !== v551) { + v1.bindBuffer(34962, v546.buffer); + v1.vertexAttribPointer(v553, v555, v549, v548, v551, v550); + v554.type = v549; + v554.size = v555; + v554.buffer = v546; + v554.normalized = v548; + v554.offset = v550; + v554.stride = v551; } - if (v616.divisor !== v614) { - v547.vertexAttribDivisorANGLE(v615, v614); - v616.divisor = v614; + if (v554.divisor !== v552) { + v501.vertexAttribDivisorANGLE(v553, v552); + v554.divisor = v552; } } else { - if (v616.buffer) { - v1.disableVertexAttribArray(v615); - v616.buffer = null; + if (v554.buffer) { + v1.disableVertexAttribArray(v553); + v554.buffer = null; } - if (v616.x !== v604 || v616.y !== v605 || v616.z !== v606 || v616.w !== v607) { - v1.vertexAttrib4f(v615, v604, v605, v606, v607); - v616.x = v604; - v616.y = v605; - v616.z = v606; - v616.w = v607; + if (v554.x !== v542 || v554.y !== v543 || v554.z !== v544 || v554.w !== v545) { + v1.vertexAttrib4f(v553, v542, v543, v544, v545); + v554.x = v542; + v554.y = v543; + v554.z = v544; + v554.w = v545; } } - v618 = v549["positionFractBuffer"]; - v52.buffer = v618; - v619 = false; - v620 = 1; - v621 = 0; - v622 = 0; - v623 = 0; - v624 = 0; - v625 = null; - v626 = 0; - v627 = false; - v628 = 5126; - v629 = 0; - v630 = 0; - v631 = 0; - if (v16(v52)) { - v619 = true; - v625 = v8.createStream(34962, v52); - v628 = v625.dtype; + v556 = g159.call(this, v2, v503, v502); + v51.offset = v556; + v557 = false; + v558 = 1; + v559 = 0; + v560 = 0; + v561 = 0; + v562 = 0; + v563 = null; + v564 = 0; + v565 = false; + v566 = 5126; + v567 = 0; + v568 = 0; + v569 = 0; + if (v16(v51)) { + v557 = true; + v563 = v8.createStream(34962, v51); + v566 = v563.dtype; } else { - v625 = v8.getBuffer(v52); - if (v625) { - v628 = v625.dtype; - } else if ("constant" in v52) { - v620 = 2; - if (typeof v52.constant === "number") { - v621 = v52.constant; - v622 = v623 = v624 = 0; + v563 = v8.getBuffer(v51); + if (v563) { + v566 = v563.dtype; + } else if ("constant" in v51) { + v558 = 2; + if (typeof v51.constant === "number") { + v559 = v51.constant; + v560 = v561 = v562 = 0; } else { - v621 = v52.constant.length > 0 ? v52.constant[0] : 0; - v622 = v52.constant.length > 1 ? v52.constant[1] : 0; - v623 = v52.constant.length > 2 ? v52.constant[2] : 0; - v624 = v52.constant.length > 3 ? v52.constant[3] : 0; + v559 = v51.constant.length > 0 ? v51.constant[0] : 0; + v560 = v51.constant.length > 1 ? v51.constant[1] : 0; + v561 = v51.constant.length > 2 ? v51.constant[2] : 0; + v562 = v51.constant.length > 3 ? v51.constant[3] : 0; } } else { - if (v16(v52.buffer)) { - v625 = v8.createStream(34962, v52.buffer); + if (v16(v51.buffer)) { + v563 = v8.createStream(34962, v51.buffer); } else { - v625 = v8.getBuffer(v52.buffer); + v563 = v8.getBuffer(v51.buffer); } - v628 = "type" in v52 ? v46[v52.type] : v625.dtype; - v627 = !!v52.normalized; - v626 = v52.size | 0; - v629 = v52.offset | 0; - v630 = v52.stride | 0; - v631 = v52.divisor | 0; + v566 = "type" in v51 ? v46[v51.type] : v563.dtype; + v565 = !!v51.normalized; + v564 = v51.size | 0; + v567 = v51.offset | 0; + v568 = v51.stride | 0; + v569 = v51.divisor | 0; } } - v632 = g177.location; - v633 = v10[v632]; - if (v620 === 1) { - if (!v633.buffer) { - v1.enableVertexAttribArray(v632); + v570 = g174.location; + v571 = v10[v570]; + if (v558 === 1) { + if (!v571.buffer) { + v1.enableVertexAttribArray(v570); } - v634 = v626 || 2; - if (v633.type !== v628 || v633.size !== v634 || v633.buffer !== v625 || v633.normalized !== v627 || v633.offset !== v629 || v633.stride !== v630) { - v1.bindBuffer(34962, v625.buffer); - v1.vertexAttribPointer(v632, v634, v628, v627, v630, v629); - v633.type = v628; - v633.size = v634; - v633.buffer = v625; - v633.normalized = v627; - v633.offset = v629; - v633.stride = v630; + v572 = v564 || 2; + if (v571.type !== v566 || v571.size !== v572 || v571.buffer !== v563 || v571.normalized !== v565 || v571.offset !== v567 || v571.stride !== v568) { + v1.bindBuffer(34962, v563.buffer); + v1.vertexAttribPointer(v570, v572, v566, v565, v568, v567); + v571.type = v566; + v571.size = v572; + v571.buffer = v563; + v571.normalized = v565; + v571.offset = v567; + v571.stride = v568; } - if (v633.divisor !== v631) { - v547.vertexAttribDivisorANGLE(v632, v631); - v633.divisor = v631; + if (v571.divisor !== v569) { + v501.vertexAttribDivisorANGLE(v570, v569); + v571.divisor = v569; } } else { - if (v633.buffer) { - v1.disableVertexAttribArray(v632); - v633.buffer = null; + if (v571.buffer) { + v1.disableVertexAttribArray(v570); + v571.buffer = null; } - if (v633.x !== v621 || v633.y !== v622 || v633.z !== v623 || v633.w !== v624) { - v1.vertexAttrib4f(v632, v621, v622, v623, v624); - v633.x = v621; - v633.y = v622; - v633.z = v623; - v633.w = v624; + if (v571.x !== v559 || v571.y !== v560 || v571.z !== v561 || v571.w !== v562) { + v1.vertexAttrib4f(v570, v559, v560, v561, v562); + v571.x = v559; + v571.y = v560; + v571.z = v561; + v571.w = v562; } } - v635 = v549["colorBuffer"]; - v53.buffer = v635; - v636 = false; - v637 = 1; - v638 = 0; - v639 = 0; - v640 = 0; - v641 = 0; - v642 = null; - v643 = 0; - v644 = false; - v645 = 5126; - v646 = 0; - v647 = 0; - v648 = 0; + v573 = g178.call(this, v2, v503, v502); + v53.offset = v573; + v574 = false; + v575 = 1; + v576 = 0; + v577 = 0; + v578 = 0; + v579 = 0; + v580 = null; + v581 = 0; + v582 = false; + v583 = 5126; + v584 = 0; + v585 = 0; + v586 = 0; if (v16(v53)) { - v636 = true; - v642 = v8.createStream(34962, v53); - v645 = v642.dtype; + v574 = true; + v580 = v8.createStream(34962, v53); + v583 = v580.dtype; } else { - v642 = v8.getBuffer(v53); - if (v642) { - v645 = v642.dtype; + v580 = v8.getBuffer(v53); + if (v580) { + v583 = v580.dtype; } else if ("constant" in v53) { - v637 = 2; + v575 = 2; if (typeof v53.constant === "number") { - v638 = v53.constant; - v639 = v640 = v641 = 0; + v576 = v53.constant; + v577 = v578 = v579 = 0; } else { - v638 = v53.constant.length > 0 ? v53.constant[0] : 0; - v639 = v53.constant.length > 1 ? v53.constant[1] : 0; - v640 = v53.constant.length > 2 ? v53.constant[2] : 0; - v641 = v53.constant.length > 3 ? v53.constant[3] : 0; + v576 = v53.constant.length > 0 ? v53.constant[0] : 0; + v577 = v53.constant.length > 1 ? v53.constant[1] : 0; + v578 = v53.constant.length > 2 ? v53.constant[2] : 0; + v579 = v53.constant.length > 3 ? v53.constant[3] : 0; } } else { if (v16(v53.buffer)) { - v642 = v8.createStream(34962, v53.buffer); + v580 = v8.createStream(34962, v53.buffer); } else { - v642 = v8.getBuffer(v53.buffer); + v580 = v8.getBuffer(v53.buffer); } - v645 = "type" in v53 ? v46[v53.type] : v642.dtype; - v644 = !!v53.normalized; - v643 = v53.size | 0; - v646 = v53.offset | 0; - v647 = v53.stride | 0; - v648 = v53.divisor | 0; + v583 = "type" in v53 ? v46[v53.type] : v580.dtype; + v582 = !!v53.normalized; + v581 = v53.size | 0; + v584 = v53.offset | 0; + v585 = v53.stride | 0; + v586 = v53.divisor | 0; } } - v649 = g195.location; - v650 = v10[v649]; - if (v637 === 1) { - if (!v650.buffer) { - v1.enableVertexAttribArray(v649); + v587 = g193.location; + v588 = v10[v587]; + if (v575 === 1) { + if (!v588.buffer) { + v1.enableVertexAttribArray(v587); } - v651 = v643 || 4; - if (v650.type !== v645 || v650.size !== v651 || v650.buffer !== v642 || v650.normalized !== v644 || v650.offset !== v646 || v650.stride !== v647) { - v1.bindBuffer(34962, v642.buffer); - v1.vertexAttribPointer(v649, v651, v645, v644, v647, v646); - v650.type = v645; - v650.size = v651; - v650.buffer = v642; - v650.normalized = v644; - v650.offset = v646; - v650.stride = v647; + v589 = v581 || 2; + if (v588.type !== v583 || v588.size !== v589 || v588.buffer !== v580 || v588.normalized !== v582 || v588.offset !== v584 || v588.stride !== v585) { + v1.bindBuffer(34962, v580.buffer); + v1.vertexAttribPointer(v587, v589, v583, v582, v585, v584); + v588.type = v583; + v588.size = v589; + v588.buffer = v580; + v588.normalized = v582; + v588.offset = v584; + v588.stride = v585; } - if (v650.divisor !== v648) { - v547.vertexAttribDivisorANGLE(v649, v648); - v650.divisor = v648; + if (v588.divisor !== v586) { + v501.vertexAttribDivisorANGLE(v587, v586); + v588.divisor = v586; } } else { - if (v650.buffer) { - v1.disableVertexAttribArray(v649); - v650.buffer = null; + if (v588.buffer) { + v1.disableVertexAttribArray(v587); + v588.buffer = null; } - if (v650.x !== v638 || v650.y !== v639 || v650.z !== v640 || v650.w !== v641) { - v1.vertexAttrib4f(v649, v638, v639, v640, v641); - v650.x = v638; - v650.y = v639; - v650.z = v640; - v650.w = v641; + if (v588.x !== v576 || v588.y !== v577 || v588.z !== v578 || v588.w !== v579) { + v1.vertexAttrib4f(v587, v576, v577, v578, v579); + v588.x = v576; + v588.y = v577; + v588.z = v578; + v588.w = v579; } } - v652 = v549["dashLength"]; - if (!v548 || v653 !== v652) { - v653 = v652; - v1.uniform1f(g206.location, v652); - } - v654 = v549["dashTexture"]; - if (v654 && v654._reglType === "framebuffer") { - v654 = v654.color[0]; - } - v655 = v654._texture; - v1.uniform1i(g208.location, v655.bind()); - v656 = v549["depth"]; - if (!v548 || v657 !== v656) { - v657 = v656; - v1.uniform1f(g211.location, v656); + v590 = v503["capSize"]; + if (!v502 || v591 !== v590) { + v591 = v590; + v1.uniform1f(g197.location, v590); } - v658 = v549["opacity"]; - if (!v548 || v659 !== v658) { - v659 = v658; - v1.uniform1f(g213.location, v658); + v592 = v503["lineWidth"]; + if (!v502 || v593 !== v592) { + v593 = v592; + v1.uniform1f(g199.location, v592); } - v660 = v549["scale"]; - v661 = v660[0]; - v663 = v660[1]; - if (!v548 || v662 !== v661 || v664 !== v663) { - v662 = v661; - v664 = v663; - v1.uniform2f(g215.location, v661, v663); + v594 = v503["opacity"]; + if (!v502 || v595 !== v594) { + v595 = v594; + v1.uniform1f(g201.location, v594); } - v665 = v549["scaleFract"]; - v666 = v665[0]; - v668 = v665[1]; - if (!v548 || v667 !== v666 || v669 !== v668) { - v667 = v666; - v669 = v668; - v1.uniform2f(g219.location, v666, v668); + v596 = v503["scale"]; + v597 = v596[0]; + v599 = v596[1]; + if (!v502 || v598 !== v597 || v600 !== v599) { + v598 = v597; + v600 = v599; + v1.uniform2f(g203.location, v597, v599); } - v670 = v549["thickness"]; - if (!v548 || v671 !== v670) { - v671 = v670; - v1.uniform1f(g223.location, v670); + v601 = v503["scaleFract"]; + v602 = v601[0]; + v604 = v601[1]; + if (!v502 || v603 !== v602 || v605 !== v604) { + v603 = v602; + v605 = v604; + v1.uniform2f(g207.location, v602, v604); } - v672 = v549["translate"]; - v673 = v672[0]; - v675 = v672[1]; - if (!v548 || v674 !== v673 || v676 !== v675) { - v674 = v673; - v676 = v675; - v1.uniform2f(g225.location, v673, v675); + v606 = v503["translate"]; + v607 = v606[0]; + v609 = v606[1]; + if (!v502 || v608 !== v607 || v610 !== v609) { + v608 = v607; + v610 = v609; + v1.uniform2f(g211.location, v607, v609); } - v677 = v549["translateFract"]; - v678 = v677[0]; - v680 = v677[1]; - if (!v548 || v679 !== v678 || v681 !== v680) { - v679 = v678; - v681 = v680; - v1.uniform2f(g229.location, v678, v680); + v611 = v503["translateFract"]; + v612 = v611[0]; + v614 = v611[1]; + if (!v502 || v613 !== v612 || v615 !== v614) { + v613 = v612; + v615 = v614; + v1.uniform2f(g215.location, v612, v614); } - v682 = g234.call(this, v2, v549, v548); - v683 = v682[0]; - v685 = v682[1]; - v687 = v682[2]; - v689 = v682[3]; - if (!v548 || v684 !== v683 || v686 !== v685 || v688 !== v687 || v690 !== v689) { - v684 = v683; - v686 = v685; - v688 = v687; - v690 = v689; - v1.uniform4f(g233.location, v683, v685, v687, v689); + v616 = g220.call(this, v2, v503, v502); + v617 = v616[0]; + v619 = v616[1]; + v621 = v616[2]; + v623 = v616[3]; + if (!v502 || v618 !== v617 || v620 !== v619 || v622 !== v621 || v624 !== v623) { + v618 = v617; + v620 = v619; + v622 = v621; + v624 = v623; + v1.uniform4f(g219.location, v617, v619, v621, v623); } - v692 = v549["count"]; - if (v692 > 0) { - if (v691) { - v547.drawElementsInstancedANGLE(5, 4, v691.type, 0 << (v691.type - 5121 >> 1), v692); + v627 = v503["count"]; + if (v627 > 0) { + if (v625) { + v501.drawElementsInstancedANGLE(4, 36, v625.type, v626 << (v625.type - 5121 >> 1), v627); } else { - v547.drawArraysInstancedANGLE(5, 0, 4, v692); + v501.drawArraysInstancedANGLE(4, v626, 36, v627); } - } else if (v692 < 0) { - if (v691) { - v1.drawElements(5, 4, v691.type, 0 << (v691.type - 5121 >> 1)); + } else if (v627 < 0) { + if (v625) { + v1.drawElements(4, 36, v625.type, v626 << (v625.type - 5121 >> 1)); } else { - v1.drawArrays(5, 0, 4); + v1.drawArrays(4, v626, 36); } } - v2.viewportWidth = v555; - v2.viewportHeight = v556; - if (v568) { - v8.destroyStream(v574); - } - if (v585) { - v8.destroyStream(v591); + v2.viewportWidth = v509; + v2.viewportHeight = v510; + if (v523) { + v8.destroyStream(v529); } - if (v602) { - v8.destroyStream(v608); + if (v540) { + v8.destroyStream(v546); } - if (v619) { - v8.destroyStream(v625); + if (v557) { + v8.destroyStream(v563); } - if (v636) { - v8.destroyStream(v642); + if (v574) { + v8.destroyStream(v580); } - v655.unbind(); } v5.dirty = true; v11.setVAO(null); - if (v545) { - g48.cpuTime += performance.now() - v546; + if (v499) { + g48.cpuTime += performance.now() - v500; } } }; @@ -172978,12 +172933,12 @@ void main() { } }); - // src/generated/regl-codegen/db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d - var require_db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d = __commonJS({ - "src/generated/regl-codegen/db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d"(exports, module) { - module.exports = function anonymous(g0, g48, g94, g95, g96, g97, g104, g105, g108, g124, g142, g160, g178, g182, g183, g186, g203, g221, g225, g227, g230, g232, g234, g235, g237, g239, g243, g245, g249, g250, g269, g271, g273, g275, g277, g279, g281, g283, g285, g287, g289, g291, g293, g306, g308, g312, g314, g318, g321, g324, g327, g330, g333, g336, g339, g342, g345, g348, g351, g354, g357, g360, g362, g375, g402, g429, g456, g483, g510, g537, g550, g552, g586, g587, g588, g589, g590) { + // src/generated/regl-codegen/8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034 + var require_aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034 = __commonJS({ + "src/generated/regl-codegen/8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034"(exports, module) { + module.exports = function anonymous(g0, g48, g99, g100, g101, g104, g120, g138, g156, g174, g178, g180, g181, g184, g185, g189, g190, g194, g196, g197, g199, g205, g206, g208, g210, g214, g218, g222, g243, g245, g247, g249, g251, g253, g255, g257, g259, g261, g263, g271, g274, g277, g280, g283, g286, g289, g292, g295, g298, g301, g304, g307, g310, g326, g353, g380, g407, g420, g422, g472, g473, g474) { "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50, v51, v52, v53, v54; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50; v1 = g0.gl; v2 = g0.context; v3 = g0.strings; @@ -173105,80 +173060,83 @@ void main() { "ccw": 2305 }; v49 = {}; - v49.stride = 4; - v49.offset = 0; - v49.divisor = 1; + v49.offset = 4; + v49.stride = 8; v50 = {}; - v50.stride = 4; - v50.offset = 4; - v50.divisor = 1; - v51 = {}; - v51.stride = 8; - v51.offset = 0; - v51.divisor = 1; - v52 = {}; - v52.stride = 8; - v52.offset = 8; - v52.divisor = 1; - v53 = {}; - v53.stride = 8; - v53.offset = 16; - v53.divisor = 1; - v54 = {}; - v54.stride = 8; - v54.offset = 24; - v54.divisor = 1; + v50.offset = 0; + v50.stride = 8; return { "draw": function(a0) { - var v55, v56, v87, v88, v89, v90, v91, v92, v93, v98, v99, v100, v101, v102, v103, v106, v107, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v120, v121, v122, v123, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v139, v140, v141, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v177, v179, v180, v181, v184, v185, v187, v188, v189, v190, v191, v192, v193, v194, v195, v196, v197, v198, v199, v200, v201, v202, v204, v205, v206, v207, v208, v209, v210, v211, v212, v213, v214, v215, v216, v217, v218, v219, v220, v222, v223, v224, v226, v228, v229, v231, v233, v236, v238, v240, v241, v242, v244, v246, v247, v248, v251, v252, v253, v254, v255, v256, v257; - v55 = v14.angle_instanced_arrays; - v56 = v13.next; - if (v56 !== v13.cur) { - if (v56) { - v1.bindFramebuffer(36160, v56.framebuffer); + var v51, v52, v92, v93, v94, v95, v96, v97, v98, v102, v103, v105, v106, v107, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v121, v122, v123, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v139, v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v175, v176, v177, v179, v182, v183, v186, v187, v188, v191, v192, v193, v195, v198, v200, v201, v202, v203, v204, v207, v209, v211, v212, v213, v215, v216, v217, v219, v220, v221, v223, v224, v225, v226, v227, v228, v229, v230, v231; + v51 = v14.angle_instanced_arrays; + v52 = v13.next; + if (v52 !== v13.cur) { + if (v52) { + v1.bindFramebuffer(36160, v52.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v56; + v13.cur = v52; } if (v5.dirty) { - var v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86; - v57 = v4.dither; - if (v57 !== v5.dither) { - if (v57) { + var v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91; + v53 = v4.dither; + if (v53 !== v5.dither) { + if (v53) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v57; + v5.dither = v53; } - v58 = v4.depth_func; - if (v58 !== v5.depth_func) { - v1.depthFunc(v58); - v5.depth_func = v58; + v54 = v19[0]; + v55 = v19[1]; + if (v54 !== v20[0] || v55 !== v20[1]) { + v1.blendEquationSeparate(v54, v55); + v20[0] = v54; + v20[1] = v55; } - v59 = v23[0]; - v60 = v23[1]; - if (v59 !== v24[0] || v60 !== v24[1]) { - v1.depthRange(v59, v60); - v24[0] = v59; - v24[1] = v60; + v56 = v4.depth_func; + if (v56 !== v5.depth_func) { + v1.depthFunc(v56); + v5.depth_func = v56; } - v61 = v4.depth_mask; - if (v61 !== v5.depth_mask) { - v1.depthMask(v61); - v5.depth_mask = v61; + v57 = v23[0]; + v58 = v23[1]; + if (v57 !== v24[0] || v58 !== v24[1]) { + v1.depthRange(v57, v58); + v24[0] = v57; + v24[1] = v58; } - v62 = v25[0]; - v63 = v25[1]; - v64 = v25[2]; - v65 = v25[3]; - if (v62 !== v26[0] || v63 !== v26[1] || v64 !== v26[2] || v65 !== v26[3]) { - v1.colorMask(v62, v63, v64, v65); - v26[0] = v62; - v26[1] = v63; - v26[2] = v64; - v26[3] = v65; + v59 = v4.depth_mask; + if (v59 !== v5.depth_mask) { + v1.depthMask(v59); + v5.depth_mask = v59; + } + v60 = v25[0]; + v61 = v25[1]; + v62 = v25[2]; + v63 = v25[3]; + if (v60 !== v26[0] || v61 !== v26[1] || v62 !== v26[2] || v63 !== v26[3]) { + v1.colorMask(v60, v61, v62, v63); + v26[0] = v60; + v26[1] = v61; + v26[2] = v62; + v26[3] = v63; + } + v64 = v4.cull_enable; + if (v64 !== v5.cull_enable) { + if (v64) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v64; + } + v65 = v4.cull_face; + if (v65 !== v5.cull_face) { + v1.cullFace(v65); + v5.cull_face = v65; } v66 = v4.frontFace; if (v66 !== v5.frontFace) { @@ -173267,2329 +173225,1668 @@ void main() { v36[2] = v85; v36[3] = v86; } + v87 = v4.scissor_enable; + if (v87 !== v5.scissor_enable) { + if (v87) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v87; + } + v88 = v37[0]; + v89 = v37[1]; + v90 = v37[2]; + v91 = v37[3]; + if (v88 !== v38[0] || v89 !== v38[1] || v90 !== v38[2] || v91 !== v38[3]) { + v1.scissor(v88, v89, v90, v91); + v38[0] = v88; + v38[1] = v89; + v38[2] = v90; + v38[3] = v91; + } } - v87 = a0["viewport"]; - v88 = v87.x | 0; - v89 = v87.y | 0; - v90 = "width" in v87 ? v87.width | 0 : v2.framebufferWidth - v88; - v91 = "height" in v87 ? v87.height | 0 : v2.framebufferHeight - v89; - v92 = v2.viewportWidth; - v2.viewportWidth = v90; - v93 = v2.viewportHeight; - v2.viewportHeight = v91; - v1.viewport(v88, v89, v90, v91); - v40[0] = v88; - v40[1] = v89; - v40[2] = v90; - v40[3] = v91; - v1.blendColor(0, 0, 0, 0); + v92 = this["viewport"]; + v93 = v92.x | 0; + v94 = v92.y | 0; + v95 = "width" in v92 ? v92.width | 0 : v2.framebufferWidth - v93; + v96 = "height" in v92 ? v92.height | 0 : v2.framebufferHeight - v94; + v97 = v2.viewportWidth; + v2.viewportWidth = v95; + v98 = v2.viewportHeight; + v2.viewportHeight = v96; + v1.viewport(v93, v94, v95, v96); + v40[0] = v93; + v40[1] = v94; + v40[2] = v95; + v40[3] = v96; + v1.blendColor(0, 0, 0, 1); v18[0] = 0; v18[1] = 0; v18[2] = 0; - v18[3] = 0; - if (g94) { + v18[3] = 1; + if (g99) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g94; - v1.blendEquationSeparate(32774, 32774); - v20[0] = 32774; - v20[1] = 32774; + v5.blend_enable = g99; v1.blendFuncSeparate(770, 771, 773, 1); v22[0] = 770; v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g95) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = g95; - v1.cullFace(g96); - v5.cull_face = g96; - v98 = g97.call(this, v2, a0, 0); - if (v98) { + if (g100) { v1.enable(2929); } else { v1.disable(2929); } - v5.depth_enable = v98; - v99 = a0["viewport"]; - v100 = v99.x | 0; - v101 = v99.y | 0; - v102 = "width" in v99 ? v99.width | 0 : v2.framebufferWidth - v100; - v103 = "height" in v99 ? v99.height | 0 : v2.framebufferHeight - v101; - v1.scissor(v100, v101, v102, v103); - v38[0] = v100; - v38[1] = v101; - v38[2] = v102; - v38[3] = v103; - if (g104) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = g104; - if (g105) { + v5.depth_enable = g100; + if (g101) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = g105; - v106 = v5.profile; - if (v106) { - v107 = performance.now(); + v5.stencil_enable = g101; + v102 = v5.profile; + if (v102) { + v103 = performance.now(); g48.count++; } - v1.useProgram(g108.program); - v109 = v14.angle_instanced_arrays; + v1.useProgram(g104.program); + v105 = v14.angle_instanced_arrays; v11.setVAO(null); - v110 = a0["colorBuffer"]; - v49.buffer = v110; - v111 = false; - v112 = 1; - v113 = 0; + v106 = this["charBuffer"]; + v107 = false; + v108 = 1; + v109 = 0; + v110 = 0; + v111 = 0; + v112 = 0; + v113 = null; v114 = 0; - v115 = 0; - v116 = 0; - v117 = null; + v115 = false; + v116 = 5126; + v117 = 0; v118 = 0; - v119 = false; - v120 = 5126; - v121 = 0; - v122 = 0; - v123 = 0; - if (v16(v49)) { - v111 = true; - v117 = v8.createStream(34962, v49); - v120 = v117.dtype; + v119 = 0; + if (v16(v106)) { + v107 = true; + v113 = v8.createStream(34962, v106); + v116 = v113.dtype; } else { - v117 = v8.getBuffer(v49); - if (v117) { - v120 = v117.dtype; - } else if ("constant" in v49) { - v112 = 2; - if (typeof v49.constant === "number") { - v113 = v49.constant; - v114 = v115 = v116 = 0; + v113 = v8.getBuffer(v106); + if (v113) { + v116 = v113.dtype; + } else if ("constant" in v106) { + v108 = 2; + if (typeof v106.constant === "number") { + v109 = v106.constant; + v110 = v111 = v112 = 0; } else { - v113 = v49.constant.length > 0 ? v49.constant[0] : 0; - v114 = v49.constant.length > 1 ? v49.constant[1] : 0; - v115 = v49.constant.length > 2 ? v49.constant[2] : 0; - v116 = v49.constant.length > 3 ? v49.constant[3] : 0; + v109 = v106.constant.length > 0 ? v106.constant[0] : 0; + v110 = v106.constant.length > 1 ? v106.constant[1] : 0; + v111 = v106.constant.length > 2 ? v106.constant[2] : 0; + v112 = v106.constant.length > 3 ? v106.constant[3] : 0; } } else { - if (v16(v49.buffer)) { - v117 = v8.createStream(34962, v49.buffer); + if (v16(v106.buffer)) { + v113 = v8.createStream(34962, v106.buffer); } else { - v117 = v8.getBuffer(v49.buffer); + v113 = v8.getBuffer(v106.buffer); } - v120 = "type" in v49 ? v46[v49.type] : v117.dtype; - v119 = !!v49.normalized; - v118 = v49.size | 0; - v121 = v49.offset | 0; - v122 = v49.stride | 0; - v123 = v49.divisor | 0; + v116 = "type" in v106 ? v46[v106.type] : v113.dtype; + v115 = !!v106.normalized; + v114 = v106.size | 0; + v117 = v106.offset | 0; + v118 = v106.stride | 0; + v119 = v106.divisor | 0; } } - v125 = g124.location; - v126 = v10[v125]; - if (v112 === 1) { - if (!v126.buffer) { - v1.enableVertexAttribArray(v125); + v121 = g120.location; + v122 = v10[v121]; + if (v108 === 1) { + if (!v122.buffer) { + v1.enableVertexAttribArray(v121); } - v127 = v118 || 4; - if (v126.type !== v120 || v126.size !== v127 || v126.buffer !== v117 || v126.normalized !== v119 || v126.offset !== v121 || v126.stride !== v122) { - v1.bindBuffer(34962, v117.buffer); - v1.vertexAttribPointer(v125, v127, v120, v119, v122, v121); - v126.type = v120; - v126.size = v127; - v126.buffer = v117; - v126.normalized = v119; - v126.offset = v121; - v126.stride = v122; + v123 = v114 || 1; + if (v122.type !== v116 || v122.size !== v123 || v122.buffer !== v113 || v122.normalized !== v115 || v122.offset !== v117 || v122.stride !== v118) { + v1.bindBuffer(34962, v113.buffer); + v1.vertexAttribPointer(v121, v123, v116, v115, v118, v117); + v122.type = v116; + v122.size = v123; + v122.buffer = v113; + v122.normalized = v115; + v122.offset = v117; + v122.stride = v118; } - if (v126.divisor !== v123) { - v109.vertexAttribDivisorANGLE(v125, v123); - v126.divisor = v123; + if (v122.divisor !== v119) { + v105.vertexAttribDivisorANGLE(v121, v119); + v122.divisor = v119; } } else { - if (v126.buffer) { - v1.disableVertexAttribArray(v125); - v126.buffer = null; + if (v122.buffer) { + v1.disableVertexAttribArray(v121); + v122.buffer = null; } - if (v126.x !== v113 || v126.y !== v114 || v126.z !== v115 || v126.w !== v116) { - v1.vertexAttrib4f(v125, v113, v114, v115, v116); - v126.x = v113; - v126.y = v114; - v126.z = v115; - v126.w = v116; + if (v122.x !== v109 || v122.y !== v110 || v122.z !== v111 || v122.w !== v112) { + v1.vertexAttrib4f(v121, v109, v110, v111, v112); + v122.x = v109; + v122.y = v110; + v122.z = v111; + v122.w = v112; } } - v128 = a0["positionBuffer"]; - v52.buffer = v128; - v129 = false; - v130 = 1; - v131 = 0; + v124 = this["sizeBuffer"]; + v49.buffer = v124; + v125 = false; + v126 = 1; + v127 = 0; + v128 = 0; + v129 = 0; + v130 = 0; + v131 = null; v132 = 0; - v133 = 0; - v134 = 0; - v135 = null; + v133 = false; + v134 = 5126; + v135 = 0; v136 = 0; - v137 = false; - v138 = 5126; - v139 = 0; - v140 = 0; - v141 = 0; - if (v16(v52)) { - v129 = true; - v135 = v8.createStream(34962, v52); - v138 = v135.dtype; + v137 = 0; + if (v16(v49)) { + v125 = true; + v131 = v8.createStream(34962, v49); + v134 = v131.dtype; } else { - v135 = v8.getBuffer(v52); - if (v135) { - v138 = v135.dtype; - } else if ("constant" in v52) { - v130 = 2; - if (typeof v52.constant === "number") { - v131 = v52.constant; - v132 = v133 = v134 = 0; + v131 = v8.getBuffer(v49); + if (v131) { + v134 = v131.dtype; + } else if ("constant" in v49) { + v126 = 2; + if (typeof v49.constant === "number") { + v127 = v49.constant; + v128 = v129 = v130 = 0; } else { - v131 = v52.constant.length > 0 ? v52.constant[0] : 0; - v132 = v52.constant.length > 1 ? v52.constant[1] : 0; - v133 = v52.constant.length > 2 ? v52.constant[2] : 0; - v134 = v52.constant.length > 3 ? v52.constant[3] : 0; + v127 = v49.constant.length > 0 ? v49.constant[0] : 0; + v128 = v49.constant.length > 1 ? v49.constant[1] : 0; + v129 = v49.constant.length > 2 ? v49.constant[2] : 0; + v130 = v49.constant.length > 3 ? v49.constant[3] : 0; } } else { - if (v16(v52.buffer)) { - v135 = v8.createStream(34962, v52.buffer); + if (v16(v49.buffer)) { + v131 = v8.createStream(34962, v49.buffer); } else { - v135 = v8.getBuffer(v52.buffer); + v131 = v8.getBuffer(v49.buffer); } - v138 = "type" in v52 ? v46[v52.type] : v135.dtype; - v137 = !!v52.normalized; - v136 = v52.size | 0; - v139 = v52.offset | 0; - v140 = v52.stride | 0; - v141 = v52.divisor | 0; + v134 = "type" in v49 ? v46[v49.type] : v131.dtype; + v133 = !!v49.normalized; + v132 = v49.size | 0; + v135 = v49.offset | 0; + v136 = v49.stride | 0; + v137 = v49.divisor | 0; } } - v143 = g142.location; - v144 = v10[v143]; - if (v130 === 1) { - if (!v144.buffer) { - v1.enableVertexAttribArray(v143); + v139 = g138.location; + v140 = v10[v139]; + if (v126 === 1) { + if (!v140.buffer) { + v1.enableVertexAttribArray(v139); } - v145 = v136 || 2; - if (v144.type !== v138 || v144.size !== v145 || v144.buffer !== v135 || v144.normalized !== v137 || v144.offset !== v139 || v144.stride !== v140) { - v1.bindBuffer(34962, v135.buffer); - v1.vertexAttribPointer(v143, v145, v138, v137, v140, v139); - v144.type = v138; - v144.size = v145; - v144.buffer = v135; - v144.normalized = v137; - v144.offset = v139; - v144.stride = v140; + v141 = v132 || 1; + if (v140.type !== v134 || v140.size !== v141 || v140.buffer !== v131 || v140.normalized !== v133 || v140.offset !== v135 || v140.stride !== v136) { + v1.bindBuffer(34962, v131.buffer); + v1.vertexAttribPointer(v139, v141, v134, v133, v136, v135); + v140.type = v134; + v140.size = v141; + v140.buffer = v131; + v140.normalized = v133; + v140.offset = v135; + v140.stride = v136; } - if (v144.divisor !== v141) { - v109.vertexAttribDivisorANGLE(v143, v141); - v144.divisor = v141; + if (v140.divisor !== v137) { + v105.vertexAttribDivisorANGLE(v139, v137); + v140.divisor = v137; } } else { - if (v144.buffer) { - v1.disableVertexAttribArray(v143); - v144.buffer = null; + if (v140.buffer) { + v1.disableVertexAttribArray(v139); + v140.buffer = null; } - if (v144.x !== v131 || v144.y !== v132 || v144.z !== v133 || v144.w !== v134) { - v1.vertexAttrib4f(v143, v131, v132, v133, v134); - v144.x = v131; - v144.y = v132; - v144.z = v133; - v144.w = v134; + if (v140.x !== v127 || v140.y !== v128 || v140.z !== v129 || v140.w !== v130) { + v1.vertexAttrib4f(v139, v127, v128, v129, v130); + v140.x = v127; + v140.y = v128; + v140.z = v129; + v140.w = v130; } } - v146 = a0["colorBuffer"]; - v50.buffer = v146; - v147 = false; - v148 = 1; - v149 = 0; + v142 = this["position"]; + v143 = false; + v144 = 1; + v145 = 0; + v146 = 0; + v147 = 0; + v148 = 0; + v149 = null; v150 = 0; - v151 = 0; - v152 = 0; - v153 = null; + v151 = false; + v152 = 5126; + v153 = 0; v154 = 0; - v155 = false; - v156 = 5126; - v157 = 0; - v158 = 0; - v159 = 0; - if (v16(v50)) { - v147 = true; - v153 = v8.createStream(34962, v50); - v156 = v153.dtype; + v155 = 0; + if (v16(v142)) { + v143 = true; + v149 = v8.createStream(34962, v142); + v152 = v149.dtype; } else { - v153 = v8.getBuffer(v50); - if (v153) { - v156 = v153.dtype; - } else if ("constant" in v50) { - v148 = 2; - if (typeof v50.constant === "number") { - v149 = v50.constant; - v150 = v151 = v152 = 0; + v149 = v8.getBuffer(v142); + if (v149) { + v152 = v149.dtype; + } else if ("constant" in v142) { + v144 = 2; + if (typeof v142.constant === "number") { + v145 = v142.constant; + v146 = v147 = v148 = 0; } else { - v149 = v50.constant.length > 0 ? v50.constant[0] : 0; - v150 = v50.constant.length > 1 ? v50.constant[1] : 0; - v151 = v50.constant.length > 2 ? v50.constant[2] : 0; - v152 = v50.constant.length > 3 ? v50.constant[3] : 0; + v145 = v142.constant.length > 0 ? v142.constant[0] : 0; + v146 = v142.constant.length > 1 ? v142.constant[1] : 0; + v147 = v142.constant.length > 2 ? v142.constant[2] : 0; + v148 = v142.constant.length > 3 ? v142.constant[3] : 0; } } else { - if (v16(v50.buffer)) { - v153 = v8.createStream(34962, v50.buffer); + if (v16(v142.buffer)) { + v149 = v8.createStream(34962, v142.buffer); } else { - v153 = v8.getBuffer(v50.buffer); + v149 = v8.getBuffer(v142.buffer); } - v156 = "type" in v50 ? v46[v50.type] : v153.dtype; - v155 = !!v50.normalized; - v154 = v50.size | 0; - v157 = v50.offset | 0; - v158 = v50.stride | 0; - v159 = v50.divisor | 0; + v152 = "type" in v142 ? v46[v142.type] : v149.dtype; + v151 = !!v142.normalized; + v150 = v142.size | 0; + v153 = v142.offset | 0; + v154 = v142.stride | 0; + v155 = v142.divisor | 0; } } - v161 = g160.location; - v162 = v10[v161]; - if (v148 === 1) { - if (!v162.buffer) { - v1.enableVertexAttribArray(v161); + v157 = g156.location; + v158 = v10[v157]; + if (v144 === 1) { + if (!v158.buffer) { + v1.enableVertexAttribArray(v157); } - v163 = v154 || 4; - if (v162.type !== v156 || v162.size !== v163 || v162.buffer !== v153 || v162.normalized !== v155 || v162.offset !== v157 || v162.stride !== v158) { - v1.bindBuffer(34962, v153.buffer); - v1.vertexAttribPointer(v161, v163, v156, v155, v158, v157); - v162.type = v156; - v162.size = v163; - v162.buffer = v153; - v162.normalized = v155; - v162.offset = v157; - v162.stride = v158; + v159 = v150 || 2; + if (v158.type !== v152 || v158.size !== v159 || v158.buffer !== v149 || v158.normalized !== v151 || v158.offset !== v153 || v158.stride !== v154) { + v1.bindBuffer(34962, v149.buffer); + v1.vertexAttribPointer(v157, v159, v152, v151, v154, v153); + v158.type = v152; + v158.size = v159; + v158.buffer = v149; + v158.normalized = v151; + v158.offset = v153; + v158.stride = v154; } - if (v162.divisor !== v159) { - v109.vertexAttribDivisorANGLE(v161, v159); - v162.divisor = v159; + if (v158.divisor !== v155) { + v105.vertexAttribDivisorANGLE(v157, v155); + v158.divisor = v155; } } else { - if (v162.buffer) { - v1.disableVertexAttribArray(v161); - v162.buffer = null; + if (v158.buffer) { + v1.disableVertexAttribArray(v157); + v158.buffer = null; } - if (v162.x !== v149 || v162.y !== v150 || v162.z !== v151 || v162.w !== v152) { - v1.vertexAttrib4f(v161, v149, v150, v151, v152); - v162.x = v149; - v162.y = v150; - v162.z = v151; - v162.w = v152; + if (v158.x !== v145 || v158.y !== v146 || v158.z !== v147 || v158.w !== v148) { + v1.vertexAttrib4f(v157, v145, v146, v147, v148); + v158.x = v145; + v158.y = v146; + v158.z = v147; + v158.w = v148; } } - v164 = a0["positionBuffer"]; - v53.buffer = v164; - v165 = false; - v166 = 1; - v167 = 0; + v160 = this["sizeBuffer"]; + v50.buffer = v160; + v161 = false; + v162 = 1; + v163 = 0; + v164 = 0; + v165 = 0; + v166 = 0; + v167 = null; v168 = 0; - v169 = 0; - v170 = 0; - v171 = null; + v169 = false; + v170 = 5126; + v171 = 0; v172 = 0; - v173 = false; - v174 = 5126; - v175 = 0; - v176 = 0; - v177 = 0; - if (v16(v53)) { - v165 = true; - v171 = v8.createStream(34962, v53); - v174 = v171.dtype; + v173 = 0; + if (v16(v50)) { + v161 = true; + v167 = v8.createStream(34962, v50); + v170 = v167.dtype; } else { - v171 = v8.getBuffer(v53); - if (v171) { - v174 = v171.dtype; - } else if ("constant" in v53) { - v166 = 2; - if (typeof v53.constant === "number") { - v167 = v53.constant; - v168 = v169 = v170 = 0; + v167 = v8.getBuffer(v50); + if (v167) { + v170 = v167.dtype; + } else if ("constant" in v50) { + v162 = 2; + if (typeof v50.constant === "number") { + v163 = v50.constant; + v164 = v165 = v166 = 0; } else { - v167 = v53.constant.length > 0 ? v53.constant[0] : 0; - v168 = v53.constant.length > 1 ? v53.constant[1] : 0; - v169 = v53.constant.length > 2 ? v53.constant[2] : 0; - v170 = v53.constant.length > 3 ? v53.constant[3] : 0; + v163 = v50.constant.length > 0 ? v50.constant[0] : 0; + v164 = v50.constant.length > 1 ? v50.constant[1] : 0; + v165 = v50.constant.length > 2 ? v50.constant[2] : 0; + v166 = v50.constant.length > 3 ? v50.constant[3] : 0; } } else { - if (v16(v53.buffer)) { - v171 = v8.createStream(34962, v53.buffer); + if (v16(v50.buffer)) { + v167 = v8.createStream(34962, v50.buffer); } else { - v171 = v8.getBuffer(v53.buffer); + v167 = v8.getBuffer(v50.buffer); } - v174 = "type" in v53 ? v46[v53.type] : v171.dtype; - v173 = !!v53.normalized; - v172 = v53.size | 0; - v175 = v53.offset | 0; - v176 = v53.stride | 0; - v177 = v53.divisor | 0; + v170 = "type" in v50 ? v46[v50.type] : v167.dtype; + v169 = !!v50.normalized; + v168 = v50.size | 0; + v171 = v50.offset | 0; + v172 = v50.stride | 0; + v173 = v50.divisor | 0; } } - v179 = g178.location; - v180 = v10[v179]; - if (v166 === 1) { - if (!v180.buffer) { - v1.enableVertexAttribArray(v179); + v175 = g174.location; + v176 = v10[v175]; + if (v162 === 1) { + if (!v176.buffer) { + v1.enableVertexAttribArray(v175); } - v181 = v172 || 2; - if (v180.type !== v174 || v180.size !== v181 || v180.buffer !== v171 || v180.normalized !== v173 || v180.offset !== v175 || v180.stride !== v176) { - v1.bindBuffer(34962, v171.buffer); - v1.vertexAttribPointer(v179, v181, v174, v173, v176, v175); - v180.type = v174; - v180.size = v181; - v180.buffer = v171; - v180.normalized = v173; - v180.offset = v175; - v180.stride = v176; + v177 = v168 || 1; + if (v176.type !== v170 || v176.size !== v177 || v176.buffer !== v167 || v176.normalized !== v169 || v176.offset !== v171 || v176.stride !== v172) { + v1.bindBuffer(34962, v167.buffer); + v1.vertexAttribPointer(v175, v177, v170, v169, v172, v171); + v176.type = v170; + v176.size = v177; + v176.buffer = v167; + v176.normalized = v169; + v176.offset = v171; + v176.stride = v172; } - if (v180.divisor !== v177) { - v109.vertexAttribDivisorANGLE(v179, v177); - v180.divisor = v177; + if (v176.divisor !== v173) { + v105.vertexAttribDivisorANGLE(v175, v173); + v176.divisor = v173; } } else { - if (v180.buffer) { - v1.disableVertexAttribArray(v179); - v180.buffer = null; + if (v176.buffer) { + v1.disableVertexAttribArray(v175); + v176.buffer = null; } - if (v180.x !== v167 || v180.y !== v168 || v180.z !== v169 || v180.w !== v170) { - v1.vertexAttrib4f(v179, v167, v168, v169, v170); - v180.x = v167; - v180.y = v168; - v180.z = v169; - v180.w = v170; + if (v176.x !== v163 || v176.y !== v164 || v176.z !== v165 || v176.w !== v166) { + v1.vertexAttrib4f(v175, v163, v164, v165, v166); + v176.x = v163; + v176.y = v164; + v176.z = v165; + v176.w = v166; } } - v184 = g183.location; - v185 = v10[v184]; - if (!v185.buffer) { - v1.enableVertexAttribArray(v184); - } - if (v185.type !== 5126 || v185.size !== 1 || v185.buffer !== g182 || v185.normalized !== false || v185.offset !== 0 || v185.stride !== 8) { - v1.bindBuffer(34962, g182.buffer); - v1.vertexAttribPointer(v184, 1, 5126, false, 8, 0); - v185.type = 5126; - v185.size = 1; - v185.buffer = g182; - v185.normalized = false; - v185.offset = 0; - v185.stride = 8; - } - if (v185.divisor !== 0) { - v109.vertexAttribDivisorANGLE(v184, 0); - v185.divisor = 0; - } - v187 = g186.location; - v188 = v10[v187]; - if (!v188.buffer) { - v1.enableVertexAttribArray(v187); - } - if (v188.type !== 5126 || v188.size !== 1 || v188.buffer !== g182 || v188.normalized !== false || v188.offset !== 4 || v188.stride !== 8) { - v1.bindBuffer(34962, g182.buffer); - v1.vertexAttribPointer(v187, 1, 5126, false, 8, 4); - v188.type = 5126; - v188.size = 1; - v188.buffer = g182; - v188.normalized = false; - v188.offset = 4; - v188.stride = 8; + v179 = a0["align"]; + v1.uniform1f(g178.location, v179); + v182 = g181.call(this, v2, a0, 0); + if (v182 && v182._reglType === "framebuffer") { + v182 = v182.color[0]; } - if (v188.divisor !== 0) { - v109.vertexAttribDivisorANGLE(v187, 0); - v188.divisor = 0; + v183 = v182._texture; + v1.uniform1i(g180.location, v183.bind()); + v186 = g185.call(this, v2, a0, 0); + v187 = v186[0]; + v188 = v186[1]; + v1.uniform2f(g184.location, v187, v188); + v191 = g190.call(this, v2, a0, 0); + v192 = v191[0]; + v193 = v191[1]; + v1.uniform2f(g189.location, v192, v193); + v195 = a0["baseline"]; + v1.uniform1f(g194.location, v195); + v198 = g197.call(this, v2, a0, 0); + v1.uniform1f(g196.location, v198); + v200 = a0["color"]; + v201 = v200[0]; + v202 = v200[1]; + v203 = v200[2]; + v204 = v200[3]; + v1.uniform4f(g199.location, v201, v202, v203, v204); + v207 = g206.call(this, v2, a0, 0); + v1.uniform1f(g205.location, v207); + v209 = a0["opacity"]; + v1.uniform1f(g208.location, v209); + v211 = a0["positionOffset"]; + v212 = v211[0]; + v213 = v211[1]; + v1.uniform2f(g210.location, v212, v213); + v215 = this["scale"]; + v216 = v215[0]; + v217 = v215[1]; + v1.uniform2f(g214.location, v216, v217); + v219 = this["translate"]; + v220 = v219[0]; + v221 = v219[1]; + v1.uniform2f(g218.location, v220, v221); + v223 = this["viewportArray"]; + v224 = v223[0]; + v225 = v223[1]; + v226 = v223[2]; + v227 = v223[3]; + v1.uniform4f(g222.location, v224, v225, v226, v227); + v228 = v6.elements; + if (v228) { + v1.bindBuffer(34963, v228.buffer.buffer); + } else if (v11.currentVAO) { + v228 = v7.getElements(v11.currentVAO.elements); + if (v228) v1.bindBuffer(34963, v228.buffer.buffer); } - v189 = a0["positionBuffer"]; - v54.buffer = v189; - v190 = false; - v191 = 1; - v192 = 0; - v193 = 0; - v194 = 0; - v195 = 0; - v196 = null; - v197 = 0; - v198 = false; - v199 = 5126; - v200 = 0; - v201 = 0; - v202 = 0; - if (v16(v54)) { - v190 = true; - v196 = v8.createStream(34962, v54); - v199 = v196.dtype; - } else { - v196 = v8.getBuffer(v54); - if (v196) { - v199 = v196.dtype; - } else if ("constant" in v54) { - v191 = 2; - if (typeof v54.constant === "number") { - v192 = v54.constant; - v193 = v194 = v195 = 0; + v229 = a0["offset"]; + v230 = a0["count"]; + if (v230) { + v231 = v6.instances; + if (v231 > 0) { + if (v228) { + v105.drawElementsInstancedANGLE(0, v230, v228.type, v229 << (v228.type - 5121 >> 1), v231); } else { - v192 = v54.constant.length > 0 ? v54.constant[0] : 0; - v193 = v54.constant.length > 1 ? v54.constant[1] : 0; - v194 = v54.constant.length > 2 ? v54.constant[2] : 0; - v195 = v54.constant.length > 3 ? v54.constant[3] : 0; + v105.drawArraysInstancedANGLE(0, v229, v230, v231); } - } else { - if (v16(v54.buffer)) { - v196 = v8.createStream(34962, v54.buffer); + } else if (v231 < 0) { + if (v228) { + v1.drawElements(0, v230, v228.type, v229 << (v228.type - 5121 >> 1)); } else { - v196 = v8.getBuffer(v54.buffer); + v1.drawArrays(0, v229, v230); } - v199 = "type" in v54 ? v46[v54.type] : v196.dtype; - v198 = !!v54.normalized; - v197 = v54.size | 0; - v200 = v54.offset | 0; - v201 = v54.stride | 0; - v202 = v54.divisor | 0; } - } - v204 = g203.location; - v205 = v10[v204]; - if (v191 === 1) { - if (!v205.buffer) { - v1.enableVertexAttribArray(v204); + v5.dirty = true; + v11.setVAO(null); + v2.viewportWidth = v97; + v2.viewportHeight = v98; + if (v102) { + g48.cpuTime += performance.now() - v103; } - v206 = v197 || 2; - if (v205.type !== v199 || v205.size !== v206 || v205.buffer !== v196 || v205.normalized !== v198 || v205.offset !== v200 || v205.stride !== v201) { - v1.bindBuffer(34962, v196.buffer); - v1.vertexAttribPointer(v204, v206, v199, v198, v201, v200); - v205.type = v199; - v205.size = v206; - v205.buffer = v196; - v205.normalized = v198; - v205.offset = v200; - v205.stride = v201; + if (v107) { + v8.destroyStream(v113); } - if (v205.divisor !== v202) { - v109.vertexAttribDivisorANGLE(v204, v202); - v205.divisor = v202; + if (v125) { + v8.destroyStream(v131); } - } else { - if (v205.buffer) { - v1.disableVertexAttribArray(v204); - v205.buffer = null; + if (v143) { + v8.destroyStream(v149); } - if (v205.x !== v192 || v205.y !== v193 || v205.z !== v194 || v205.w !== v195) { - v1.vertexAttrib4f(v204, v192, v193, v194, v195); - v205.x = v192; - v205.y = v193; - v205.z = v194; - v205.w = v195; + if (v161) { + v8.destroyStream(v167); } + v183.unbind(); } - v207 = a0["positionBuffer"]; - v51.buffer = v207; - v208 = false; - v209 = 1; - v210 = 0; - v211 = 0; - v212 = 0; - v213 = 0; - v214 = null; - v215 = 0; - v216 = false; - v217 = 5126; - v218 = 0; - v219 = 0; - v220 = 0; - if (v16(v51)) { - v208 = true; - v214 = v8.createStream(34962, v51); - v217 = v214.dtype; + }, + "scope": function(a0, a1, a2) { + var v232, v233, v234, v235, v236, v237, v238, v239, v240, v241, v242, v244, v246, v248, v250, v252, v254, v256, v258, v260, v262, v264, v265, v266, v267, v268, v269, v270, v272, v273, v275, v276, v278, v279, v281, v282, v284, v285, v287, v288, v290, v291, v293, v294, v296, v297, v299, v300, v302, v303, v305, v306, v308, v309, v311, v312, v313, v314, v315, v316, v317, v318, v319, v320, v321, v322, v323, v324, v325, v327, v328, v329, v330, v331, v332, v333, v334, v335, v336, v337, v338, v339, v340, v341, v342, v343, v344, v345, v346, v347, v348, v349, v350, v351, v352, v354, v355, v356, v357, v358, v359, v360, v361, v362, v363, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v375, v376, v377, v378, v379, v381, v382, v383, v384, v385, v386, v387, v388, v389, v390, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v408, v409, v410, v411, v412, v413, v414, v415, v416, v417, v418, v419, v421, v423; + v232 = this["viewport"]; + v233 = v232.x | 0; + v234 = v232.y | 0; + v235 = "width" in v232 ? v232.width | 0 : v2.framebufferWidth - v233; + v236 = "height" in v232 ? v232.height | 0 : v2.framebufferHeight - v234; + v237 = v2.viewportWidth; + v2.viewportWidth = v235; + v238 = v2.viewportHeight; + v2.viewportHeight = v236; + v239 = v39[0]; + v39[0] = v233; + v240 = v39[1]; + v39[1] = v234; + v241 = v39[2]; + v39[2] = v235; + v242 = v39[3]; + v39[3] = v236; + v244 = v17[0]; + v17[0] = g243; + v246 = v17[1]; + v17[1] = g245; + v248 = v17[2]; + v17[2] = g247; + v250 = v17[3]; + v17[3] = g249; + v252 = v4.blend_enable; + v4.blend_enable = g251; + v254 = v21[0]; + v21[0] = g253; + v256 = v21[1]; + v21[1] = g255; + v258 = v21[2]; + v21[2] = g257; + v260 = v21[3]; + v21[3] = g259; + v262 = v4.depth_enable; + v4.depth_enable = g261; + v264 = v4.stencil_enable; + v4.stencil_enable = g263; + v265 = v5.profile; + if (v265) { + v266 = performance.now(); + g48.count++; + } + v267 = a0["offset"]; + v268 = v6.offset; + v6.offset = v267; + v269 = a0["count"]; + v270 = v6.count; + v6.count = v269; + v272 = v6.primitive; + v6.primitive = g271; + v273 = g190.call(this, v2, a0, a2); + v275 = v12[g274]; + v12[g274] = v273; + v276 = g185.call(this, v2, a0, a2); + v278 = v12[g277]; + v12[g277] = v276; + v279 = g181.call(this, v2, a0, a2); + v281 = v12[g280]; + v12[g280] = v279; + v282 = g197.call(this, v2, a0, a2); + v284 = v12[g283]; + v12[g283] = v282; + v285 = g206.call(this, v2, a0, a2); + v287 = v12[g286]; + v12[g286] = v285; + v288 = a0["color"]; + v290 = v12[g289]; + v12[g289] = v288; + v291 = a0["opacity"]; + v293 = v12[g292]; + v12[g292] = v291; + v294 = this["viewportArray"]; + v296 = v12[g295]; + v12[g295] = v294; + v297 = this["scale"]; + v299 = v12[g298]; + v12[g298] = v297; + v300 = a0["align"]; + v302 = v12[g301]; + v12[g301] = v300; + v303 = a0["baseline"]; + v305 = v12[g304]; + v12[g304] = v303; + v306 = this["translate"]; + v308 = v12[g307]; + v12[g307] = v306; + v309 = a0["positionOffset"]; + v311 = v12[g310]; + v12[g310] = v309; + v312 = this["charBuffer"]; + v313 = false; + v314 = 1; + v315 = 0; + v316 = 0; + v317 = 0; + v318 = 0; + v319 = null; + v320 = 0; + v321 = false; + v322 = 5126; + v323 = 0; + v324 = 0; + v325 = 0; + if (v16(v312)) { + v313 = true; + v319 = v8.createStream(34962, v312); + v322 = v319.dtype; } else { - v214 = v8.getBuffer(v51); - if (v214) { - v217 = v214.dtype; - } else if ("constant" in v51) { - v209 = 2; - if (typeof v51.constant === "number") { - v210 = v51.constant; - v211 = v212 = v213 = 0; + v319 = v8.getBuffer(v312); + if (v319) { + v322 = v319.dtype; + } else if ("constant" in v312) { + v314 = 2; + if (typeof v312.constant === "number") { + v315 = v312.constant; + v316 = v317 = v318 = 0; } else { - v210 = v51.constant.length > 0 ? v51.constant[0] : 0; - v211 = v51.constant.length > 1 ? v51.constant[1] : 0; - v212 = v51.constant.length > 2 ? v51.constant[2] : 0; - v213 = v51.constant.length > 3 ? v51.constant[3] : 0; + v315 = v312.constant.length > 0 ? v312.constant[0] : 0; + v316 = v312.constant.length > 1 ? v312.constant[1] : 0; + v317 = v312.constant.length > 2 ? v312.constant[2] : 0; + v318 = v312.constant.length > 3 ? v312.constant[3] : 0; } } else { - if (v16(v51.buffer)) { - v214 = v8.createStream(34962, v51.buffer); + if (v16(v312.buffer)) { + v319 = v8.createStream(34962, v312.buffer); } else { - v214 = v8.getBuffer(v51.buffer); + v319 = v8.getBuffer(v312.buffer); } - v217 = "type" in v51 ? v46[v51.type] : v214.dtype; - v216 = !!v51.normalized; - v215 = v51.size | 0; - v218 = v51.offset | 0; - v219 = v51.stride | 0; - v220 = v51.divisor | 0; + v322 = "type" in v312 ? v46[v312.type] : v319.dtype; + v321 = !!v312.normalized; + v320 = v312.size | 0; + v323 = v312.offset | 0; + v324 = v312.stride | 0; + v325 = v312.divisor | 0; } } - v222 = g221.location; - v223 = v10[v222]; - if (v209 === 1) { - if (!v223.buffer) { - v1.enableVertexAttribArray(v222); - } - v224 = v215 || 2; - if (v223.type !== v217 || v223.size !== v224 || v223.buffer !== v214 || v223.normalized !== v216 || v223.offset !== v218 || v223.stride !== v219) { - v1.bindBuffer(34962, v214.buffer); - v1.vertexAttribPointer(v222, v224, v217, v216, v219, v218); - v223.type = v217; - v223.size = v224; - v223.buffer = v214; - v223.normalized = v216; - v223.offset = v218; - v223.stride = v219; - } - if (v223.divisor !== v220) { - v109.vertexAttribDivisorANGLE(v222, v220); - v223.divisor = v220; - } + v327 = g326.state; + g326.state = v314; + v328 = g326.x; + g326.x = v315; + v329 = g326.y; + g326.y = v316; + v330 = g326.z; + g326.z = v317; + v331 = g326.w; + g326.w = v318; + v332 = g326.buffer; + g326.buffer = v319; + v333 = g326.size; + g326.size = v320; + v334 = g326.normalized; + g326.normalized = v321; + v335 = g326.type; + g326.type = v322; + v336 = g326.offset; + g326.offset = v323; + v337 = g326.stride; + g326.stride = v324; + v338 = g326.divisor; + g326.divisor = v325; + v339 = this["position"]; + v340 = false; + v341 = 1; + v342 = 0; + v343 = 0; + v344 = 0; + v345 = 0; + v346 = null; + v347 = 0; + v348 = false; + v349 = 5126; + v350 = 0; + v351 = 0; + v352 = 0; + if (v16(v339)) { + v340 = true; + v346 = v8.createStream(34962, v339); + v349 = v346.dtype; } else { - if (v223.buffer) { - v1.disableVertexAttribArray(v222); - v223.buffer = null; - } - if (v223.x !== v210 || v223.y !== v211 || v223.z !== v212 || v223.w !== v213) { - v1.vertexAttrib4f(v222, v210, v211, v212, v213); - v223.x = v210; - v223.y = v211; - v223.z = v212; - v223.w = v213; - } - } - v226 = a0["dashLength"]; - v1.uniform1f(g225.location, v226); - v228 = a0["dashTexture"]; - if (v228 && v228._reglType === "framebuffer") { - v228 = v228.color[0]; - } - v229 = v228._texture; - v1.uniform1i(g227.location, v229.bind()); - v231 = a0["depth"]; - v1.uniform1f(g230.location, v231); - v233 = a0["miterLimit"]; - v1.uniform1f(g232.location, v233); - v236 = g235.call(this, v2, a0, 0); - v1.uniform1f(g234.location, v236); - v238 = a0["opacity"]; - v1.uniform1f(g237.location, v238); - v240 = a0["scale"]; - v241 = v240[0]; - v242 = v240[1]; - v1.uniform2f(g239.location, v241, v242); - v244 = a0["thickness"]; - v1.uniform1f(g243.location, v244); - v246 = a0["translate"]; - v247 = v246[0]; - v248 = v246[1]; - v1.uniform2f(g245.location, v247, v248); - v251 = g250.call(this, v2, a0, 0); - v252 = v251[0]; - v253 = v251[1]; - v254 = v251[2]; - v255 = v251[3]; - v1.uniform4f(g249.location, v252, v253, v254, v255); - v256 = v6.elements; - if (v256) { - v1.bindBuffer(34963, v256.buffer.buffer); - } else if (v11.currentVAO) { - v256 = v7.getElements(v11.currentVAO.elements); - if (v256) v1.bindBuffer(34963, v256.buffer.buffer); - } - v257 = a0["count"]; - if (v257 > 0) { - if (v256) { - v109.drawElementsInstancedANGLE(5, 4, v256.type, 0 << (v256.type - 5121 >> 1), v257); - } else { - v109.drawArraysInstancedANGLE(5, 0, 4, v257); - } - } else if (v257 < 0) { - if (v256) { - v1.drawElements(5, 4, v256.type, 0 << (v256.type - 5121 >> 1)); + v346 = v8.getBuffer(v339); + if (v346) { + v349 = v346.dtype; + } else if ("constant" in v339) { + v341 = 2; + if (typeof v339.constant === "number") { + v342 = v339.constant; + v343 = v344 = v345 = 0; + } else { + v342 = v339.constant.length > 0 ? v339.constant[0] : 0; + v343 = v339.constant.length > 1 ? v339.constant[1] : 0; + v344 = v339.constant.length > 2 ? v339.constant[2] : 0; + v345 = v339.constant.length > 3 ? v339.constant[3] : 0; + } } else { - v1.drawArrays(5, 0, 4); + if (v16(v339.buffer)) { + v346 = v8.createStream(34962, v339.buffer); + } else { + v346 = v8.getBuffer(v339.buffer); + } + v349 = "type" in v339 ? v46[v339.type] : v346.dtype; + v348 = !!v339.normalized; + v347 = v339.size | 0; + v350 = v339.offset | 0; + v351 = v339.stride | 0; + v352 = v339.divisor | 0; } } - v5.dirty = true; - v11.setVAO(null); - v2.viewportWidth = v92; - v2.viewportHeight = v93; - if (v106) { - g48.cpuTime += performance.now() - v107; - } - if (v111) { - v8.destroyStream(v117); - } - if (v129) { - v8.destroyStream(v135); - } - if (v147) { - v8.destroyStream(v153); - } - if (v165) { - v8.destroyStream(v171); - } - if (v190) { - v8.destroyStream(v196); - } - if (v208) { - v8.destroyStream(v214); - } - v229.unbind(); - }, - "scope": function(a0, a1, a2) { - var v258, v259, v260, v261, v262, v263, v264, v265, v266, v267, v268, v270, v272, v274, v276, v278, v280, v282, v284, v286, v288, v290, v292, v294, v295, v296, v297, v298, v299, v300, v301, v302, v303, v304, v305, v307, v309, v310, v311, v313, v315, v316, v317, v319, v320, v322, v323, v325, v326, v328, v329, v331, v332, v334, v335, v337, v338, v340, v341, v343, v344, v346, v347, v349, v350, v352, v353, v355, v356, v358, v359, v361, v363, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v376, v377, v378, v379, v380, v381, v382, v383, v384, v385, v386, v387, v388, v389, v390, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v403, v404, v405, v406, v407, v408, v409, v410, v411, v412, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v430, v431, v432, v433, v434, v435, v436, v437, v438, v439, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v457, v458, v459, v460, v461, v462, v463, v464, v465, v466, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v484, v485, v486, v487, v488, v489, v490, v491, v492, v493, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v504, v505, v506, v507, v508, v509, v511, v512, v513, v514, v515, v516, v517, v518, v519, v520, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v538, v539, v540, v541, v542, v543, v544, v545, v546, v547, v548, v549, v551, v553; - v258 = a0["viewport"]; - v259 = v258.x | 0; - v260 = v258.y | 0; - v261 = "width" in v258 ? v258.width | 0 : v2.framebufferWidth - v259; - v262 = "height" in v258 ? v258.height | 0 : v2.framebufferHeight - v260; - v263 = v2.viewportWidth; - v2.viewportWidth = v261; - v264 = v2.viewportHeight; - v2.viewportHeight = v262; - v265 = v39[0]; - v39[0] = v259; - v266 = v39[1]; - v39[1] = v260; - v267 = v39[2]; - v39[2] = v261; - v268 = v39[3]; - v39[3] = v262; - v270 = v17[0]; - v17[0] = g269; - v272 = v17[1]; - v17[1] = g271; - v274 = v17[2]; - v17[2] = g273; - v276 = v17[3]; - v17[3] = g275; - v278 = v4.blend_enable; - v4.blend_enable = g277; - v280 = v19[0]; - v19[0] = g279; - v282 = v19[1]; - v19[1] = g281; - v284 = v21[0]; - v21[0] = g283; - v286 = v21[1]; - v21[1] = g285; - v288 = v21[2]; - v21[2] = g287; - v290 = v21[3]; - v21[3] = g289; - v292 = v4.cull_enable; - v4.cull_enable = g291; - v294 = v4.cull_face; - v4.cull_face = g293; - v295 = g97.call(this, v2, a0, a2); - v296 = v4.depth_enable; - v4.depth_enable = v295; - v297 = a0["viewport"]; - v298 = v297.x | 0; - v299 = v297.y | 0; - v300 = "width" in v297 ? v297.width | 0 : v2.framebufferWidth - v298; - v301 = "height" in v297 ? v297.height | 0 : v2.framebufferHeight - v299; - v302 = v37[0]; - v37[0] = v298; - v303 = v37[1]; - v37[1] = v299; - v304 = v37[2]; - v37[2] = v300; - v305 = v37[3]; - v37[3] = v301; - v307 = v4.scissor_enable; - v4.scissor_enable = g306; - v309 = v4.stencil_enable; - v4.stencil_enable = g308; - v310 = v5.profile; - if (v310) { - v311 = performance.now(); - g48.count++; - } - v313 = v6.offset; - v6.offset = g312; - v315 = v6.count; - v6.count = g314; - v316 = a0["count"]; - v317 = v6.instances; - v6.instances = v316; - v319 = v6.primitive; - v6.primitive = g318; - v320 = g235.call(this, v2, a0, a2); - v322 = v12[g321]; - v12[g321] = v320; - v323 = a0["miterLimit"]; - v325 = v12[g324]; - v12[g324] = v323; - v326 = a0["scale"]; - v328 = v12[g327]; - v12[g327] = v326; - v329 = a0["scaleFract"]; - v331 = v12[g330]; - v12[g330] = v329; - v332 = a0["translateFract"]; - v334 = v12[g333]; - v12[g333] = v332; - v335 = a0["translate"]; - v337 = v12[g336]; - v12[g336] = v335; - v338 = a0["thickness"]; - v340 = v12[g339]; - v12[g339] = v338; - v341 = a0["dashTexture"]; - v343 = v12[g342]; - v12[g342] = v341; - v344 = a0["opacity"]; - v346 = v12[g345]; - v12[g345] = v344; - v347 = v2["pixelRatio"]; - v349 = v12[g348]; - v12[g348] = v347; - v350 = a0["id"]; - v352 = v12[g351]; - v12[g351] = v350; - v353 = a0["dashLength"]; - v355 = v12[g354]; - v12[g354] = v353; - v356 = g250.call(this, v2, a0, a2); - v358 = v12[g357]; - v12[g357] = v356; - v359 = a0["depth"]; - v361 = v12[g360]; - v12[g360] = v359; - v363 = g362.state; - g362.state = 1; - v364 = g362.x; - g362.x = 0; - v365 = g362.y; - g362.y = 0; - v366 = g362.z; - g362.z = 0; - v367 = g362.w; - g362.w = 0; - v368 = g362.buffer; - g362.buffer = g182; - v369 = g362.size; - g362.size = 0; - v370 = g362.normalized; - g362.normalized = false; - v371 = g362.type; - g362.type = 5126; - v372 = g362.offset; - g362.offset = 0; - v373 = g362.stride; - g362.stride = 8; - v374 = g362.divisor; - g362.divisor = 0; - v376 = g375.state; - g375.state = 1; - v377 = g375.x; - g375.x = 0; - v378 = g375.y; - g375.y = 0; - v379 = g375.z; - g375.z = 0; - v380 = g375.w; - g375.w = 0; - v381 = g375.buffer; - g375.buffer = g182; - v382 = g375.size; - g375.size = 0; - v383 = g375.normalized; - g375.normalized = false; - v384 = g375.type; - g375.type = 5126; - v385 = g375.offset; - g375.offset = 4; - v386 = g375.stride; - g375.stride = 8; - v387 = g375.divisor; - g375.divisor = 0; - v388 = a0["colorBuffer"]; - v49.buffer = v388; - v389 = false; - v390 = 1; - v391 = 0; - v392 = 0; - v393 = 0; - v394 = 0; - v395 = null; - v396 = 0; - v397 = false; - v398 = 5126; - v399 = 0; - v400 = 0; - v401 = 0; + v354 = g353.state; + g353.state = v341; + v355 = g353.x; + g353.x = v342; + v356 = g353.y; + g353.y = v343; + v357 = g353.z; + g353.z = v344; + v358 = g353.w; + g353.w = v345; + v359 = g353.buffer; + g353.buffer = v346; + v360 = g353.size; + g353.size = v347; + v361 = g353.normalized; + g353.normalized = v348; + v362 = g353.type; + g353.type = v349; + v363 = g353.offset; + g353.offset = v350; + v364 = g353.stride; + g353.stride = v351; + v365 = g353.divisor; + g353.divisor = v352; + v366 = this["sizeBuffer"]; + v49.buffer = v366; + v367 = false; + v368 = 1; + v369 = 0; + v370 = 0; + v371 = 0; + v372 = 0; + v373 = null; + v374 = 0; + v375 = false; + v376 = 5126; + v377 = 0; + v378 = 0; + v379 = 0; if (v16(v49)) { - v389 = true; - v395 = v8.createStream(34962, v49); - v398 = v395.dtype; + v367 = true; + v373 = v8.createStream(34962, v49); + v376 = v373.dtype; } else { - v395 = v8.getBuffer(v49); - if (v395) { - v398 = v395.dtype; + v373 = v8.getBuffer(v49); + if (v373) { + v376 = v373.dtype; } else if ("constant" in v49) { - v390 = 2; + v368 = 2; if (typeof v49.constant === "number") { - v391 = v49.constant; - v392 = v393 = v394 = 0; + v369 = v49.constant; + v370 = v371 = v372 = 0; } else { - v391 = v49.constant.length > 0 ? v49.constant[0] : 0; - v392 = v49.constant.length > 1 ? v49.constant[1] : 0; - v393 = v49.constant.length > 2 ? v49.constant[2] : 0; - v394 = v49.constant.length > 3 ? v49.constant[3] : 0; + v369 = v49.constant.length > 0 ? v49.constant[0] : 0; + v370 = v49.constant.length > 1 ? v49.constant[1] : 0; + v371 = v49.constant.length > 2 ? v49.constant[2] : 0; + v372 = v49.constant.length > 3 ? v49.constant[3] : 0; } } else { if (v16(v49.buffer)) { - v395 = v8.createStream(34962, v49.buffer); + v373 = v8.createStream(34962, v49.buffer); } else { - v395 = v8.getBuffer(v49.buffer); + v373 = v8.getBuffer(v49.buffer); } - v398 = "type" in v49 ? v46[v49.type] : v395.dtype; - v397 = !!v49.normalized; - v396 = v49.size | 0; - v399 = v49.offset | 0; - v400 = v49.stride | 0; - v401 = v49.divisor | 0; + v376 = "type" in v49 ? v46[v49.type] : v373.dtype; + v375 = !!v49.normalized; + v374 = v49.size | 0; + v377 = v49.offset | 0; + v378 = v49.stride | 0; + v379 = v49.divisor | 0; } } - v403 = g402.state; - g402.state = v390; - v404 = g402.x; - g402.x = v391; - v405 = g402.y; - g402.y = v392; - v406 = g402.z; - g402.z = v393; - v407 = g402.w; - g402.w = v394; - v408 = g402.buffer; - g402.buffer = v395; - v409 = g402.size; - g402.size = v396; - v410 = g402.normalized; - g402.normalized = v397; - v411 = g402.type; - g402.type = v398; - v412 = g402.offset; - g402.offset = v399; - v413 = g402.stride; - g402.stride = v400; - v414 = g402.divisor; - g402.divisor = v401; - v415 = a0["colorBuffer"]; - v50.buffer = v415; - v416 = false; - v417 = 1; - v418 = 0; - v419 = 0; - v420 = 0; - v421 = 0; - v422 = null; - v423 = 0; - v424 = false; - v425 = 5126; - v426 = 0; - v427 = 0; - v428 = 0; + v381 = g380.state; + g380.state = v368; + v382 = g380.x; + g380.x = v369; + v383 = g380.y; + g380.y = v370; + v384 = g380.z; + g380.z = v371; + v385 = g380.w; + g380.w = v372; + v386 = g380.buffer; + g380.buffer = v373; + v387 = g380.size; + g380.size = v374; + v388 = g380.normalized; + g380.normalized = v375; + v389 = g380.type; + g380.type = v376; + v390 = g380.offset; + g380.offset = v377; + v391 = g380.stride; + g380.stride = v378; + v392 = g380.divisor; + g380.divisor = v379; + v393 = this["sizeBuffer"]; + v50.buffer = v393; + v394 = false; + v395 = 1; + v396 = 0; + v397 = 0; + v398 = 0; + v399 = 0; + v400 = null; + v401 = 0; + v402 = false; + v403 = 5126; + v404 = 0; + v405 = 0; + v406 = 0; if (v16(v50)) { - v416 = true; - v422 = v8.createStream(34962, v50); - v425 = v422.dtype; + v394 = true; + v400 = v8.createStream(34962, v50); + v403 = v400.dtype; } else { - v422 = v8.getBuffer(v50); - if (v422) { - v425 = v422.dtype; + v400 = v8.getBuffer(v50); + if (v400) { + v403 = v400.dtype; } else if ("constant" in v50) { - v417 = 2; + v395 = 2; if (typeof v50.constant === "number") { - v418 = v50.constant; - v419 = v420 = v421 = 0; + v396 = v50.constant; + v397 = v398 = v399 = 0; } else { - v418 = v50.constant.length > 0 ? v50.constant[0] : 0; - v419 = v50.constant.length > 1 ? v50.constant[1] : 0; - v420 = v50.constant.length > 2 ? v50.constant[2] : 0; - v421 = v50.constant.length > 3 ? v50.constant[3] : 0; + v396 = v50.constant.length > 0 ? v50.constant[0] : 0; + v397 = v50.constant.length > 1 ? v50.constant[1] : 0; + v398 = v50.constant.length > 2 ? v50.constant[2] : 0; + v399 = v50.constant.length > 3 ? v50.constant[3] : 0; } } else { if (v16(v50.buffer)) { - v422 = v8.createStream(34962, v50.buffer); + v400 = v8.createStream(34962, v50.buffer); } else { - v422 = v8.getBuffer(v50.buffer); + v400 = v8.getBuffer(v50.buffer); } - v425 = "type" in v50 ? v46[v50.type] : v422.dtype; - v424 = !!v50.normalized; - v423 = v50.size | 0; - v426 = v50.offset | 0; - v427 = v50.stride | 0; - v428 = v50.divisor | 0; + v403 = "type" in v50 ? v46[v50.type] : v400.dtype; + v402 = !!v50.normalized; + v401 = v50.size | 0; + v404 = v50.offset | 0; + v405 = v50.stride | 0; + v406 = v50.divisor | 0; } } - v430 = g429.state; - g429.state = v417; - v431 = g429.x; - g429.x = v418; - v432 = g429.y; - g429.y = v419; - v433 = g429.z; - g429.z = v420; - v434 = g429.w; - g429.w = v421; - v435 = g429.buffer; - g429.buffer = v422; - v436 = g429.size; - g429.size = v423; - v437 = g429.normalized; - g429.normalized = v424; - v438 = g429.type; - g429.type = v425; - v439 = g429.offset; - g429.offset = v426; - v440 = g429.stride; - g429.stride = v427; - v441 = g429.divisor; - g429.divisor = v428; - v442 = a0["positionBuffer"]; - v51.buffer = v442; - v443 = false; - v444 = 1; - v445 = 0; - v446 = 0; - v447 = 0; - v448 = 0; - v449 = null; - v450 = 0; - v451 = false; - v452 = 5126; - v453 = 0; - v454 = 0; - v455 = 0; - if (v16(v51)) { - v443 = true; - v449 = v8.createStream(34962, v51); - v452 = v449.dtype; - } else { - v449 = v8.getBuffer(v51); - if (v449) { - v452 = v449.dtype; - } else if ("constant" in v51) { - v444 = 2; - if (typeof v51.constant === "number") { - v445 = v51.constant; - v446 = v447 = v448 = 0; - } else { - v445 = v51.constant.length > 0 ? v51.constant[0] : 0; - v446 = v51.constant.length > 1 ? v51.constant[1] : 0; - v447 = v51.constant.length > 2 ? v51.constant[2] : 0; - v448 = v51.constant.length > 3 ? v51.constant[3] : 0; - } + v408 = g407.state; + g407.state = v395; + v409 = g407.x; + g407.x = v396; + v410 = g407.y; + g407.y = v397; + v411 = g407.z; + g407.z = v398; + v412 = g407.w; + g407.w = v399; + v413 = g407.buffer; + g407.buffer = v400; + v414 = g407.size; + g407.size = v401; + v415 = g407.normalized; + g407.normalized = v402; + v416 = g407.type; + g407.type = v403; + v417 = g407.offset; + g407.offset = v404; + v418 = g407.stride; + g407.stride = v405; + v419 = g407.divisor; + g407.divisor = v406; + v421 = v9.vert; + v9.vert = g420; + v423 = v9.frag; + v9.frag = g422; + v5.dirty = true; + a1(v2, a0, a2); + v2.viewportWidth = v237; + v2.viewportHeight = v238; + v39[0] = v239; + v39[1] = v240; + v39[2] = v241; + v39[3] = v242; + v17[0] = v244; + v17[1] = v246; + v17[2] = v248; + v17[3] = v250; + v4.blend_enable = v252; + v21[0] = v254; + v21[1] = v256; + v21[2] = v258; + v21[3] = v260; + v4.depth_enable = v262; + v4.stencil_enable = v264; + if (v265) { + g48.cpuTime += performance.now() - v266; + } + v6.offset = v268; + v6.count = v270; + v6.primitive = v272; + v12[g274] = v275; + v12[g277] = v278; + v12[g280] = v281; + v12[g283] = v284; + v12[g286] = v287; + v12[g289] = v290; + v12[g292] = v293; + v12[g295] = v296; + v12[g298] = v299; + v12[g301] = v302; + v12[g304] = v305; + v12[g307] = v308; + v12[g310] = v311; + if (v313) { + v8.destroyStream(v319); + } + g326.state = v327; + g326.x = v328; + g326.y = v329; + g326.z = v330; + g326.w = v331; + g326.buffer = v332; + g326.size = v333; + g326.normalized = v334; + g326.type = v335; + g326.offset = v336; + g326.stride = v337; + g326.divisor = v338; + if (v340) { + v8.destroyStream(v346); + } + g353.state = v354; + g353.x = v355; + g353.y = v356; + g353.z = v357; + g353.w = v358; + g353.buffer = v359; + g353.size = v360; + g353.normalized = v361; + g353.type = v362; + g353.offset = v363; + g353.stride = v364; + g353.divisor = v365; + if (v367) { + v8.destroyStream(v373); + } + g380.state = v381; + g380.x = v382; + g380.y = v383; + g380.z = v384; + g380.w = v385; + g380.buffer = v386; + g380.size = v387; + g380.normalized = v388; + g380.type = v389; + g380.offset = v390; + g380.stride = v391; + g380.divisor = v392; + if (v394) { + v8.destroyStream(v400); + } + g407.state = v408; + g407.x = v409; + g407.y = v410; + g407.z = v411; + g407.w = v412; + g407.buffer = v413; + g407.size = v414; + g407.normalized = v415; + g407.type = v416; + g407.offset = v417; + g407.stride = v418; + g407.divisor = v419; + v9.vert = v421; + v9.frag = v423; + v5.dirty = true; + }, + "batch": function(a0, a1) { + var v424, v425, v465, v466, v467, v468, v469, v470, v471, v475, v476, v477, v478, v479; + v424 = v14.angle_instanced_arrays; + v425 = v13.next; + if (v425 !== v13.cur) { + if (v425) { + v1.bindFramebuffer(36160, v425.framebuffer); } else { - if (v16(v51.buffer)) { - v449 = v8.createStream(34962, v51.buffer); - } else { - v449 = v8.getBuffer(v51.buffer); - } - v452 = "type" in v51 ? v46[v51.type] : v449.dtype; - v451 = !!v51.normalized; - v450 = v51.size | 0; - v453 = v51.offset | 0; - v454 = v51.stride | 0; - v455 = v51.divisor | 0; + v1.bindFramebuffer(36160, null); } + v13.cur = v425; } - v457 = g456.state; - g456.state = v444; - v458 = g456.x; - g456.x = v445; - v459 = g456.y; - g456.y = v446; - v460 = g456.z; - g456.z = v447; - v461 = g456.w; - g456.w = v448; - v462 = g456.buffer; - g456.buffer = v449; - v463 = g456.size; - g456.size = v450; - v464 = g456.normalized; - g456.normalized = v451; - v465 = g456.type; - g456.type = v452; - v466 = g456.offset; - g456.offset = v453; - v467 = g456.stride; - g456.stride = v454; - v468 = g456.divisor; - g456.divisor = v455; - v469 = a0["positionBuffer"]; - v52.buffer = v469; - v470 = false; - v471 = 1; - v472 = 0; - v473 = 0; - v474 = 0; - v475 = 0; - v476 = null; - v477 = 0; - v478 = false; - v479 = 5126; - v480 = 0; - v481 = 0; - v482 = 0; - if (v16(v52)) { - v470 = true; - v476 = v8.createStream(34962, v52); - v479 = v476.dtype; - } else { - v476 = v8.getBuffer(v52); - if (v476) { - v479 = v476.dtype; - } else if ("constant" in v52) { - v471 = 2; - if (typeof v52.constant === "number") { - v472 = v52.constant; - v473 = v474 = v475 = 0; - } else { - v472 = v52.constant.length > 0 ? v52.constant[0] : 0; - v473 = v52.constant.length > 1 ? v52.constant[1] : 0; - v474 = v52.constant.length > 2 ? v52.constant[2] : 0; - v475 = v52.constant.length > 3 ? v52.constant[3] : 0; - } - } else { - if (v16(v52.buffer)) { - v476 = v8.createStream(34962, v52.buffer); + if (v5.dirty) { + var v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v437, v438, v439, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v457, v458, v459, v460, v461, v462, v463, v464; + v426 = v4.dither; + if (v426 !== v5.dither) { + if (v426) { + v1.enable(3024); } else { - v476 = v8.getBuffer(v52.buffer); + v1.disable(3024); } - v479 = "type" in v52 ? v46[v52.type] : v476.dtype; - v478 = !!v52.normalized; - v477 = v52.size | 0; - v480 = v52.offset | 0; - v481 = v52.stride | 0; - v482 = v52.divisor | 0; + v5.dither = v426; } - } - v484 = g483.state; - g483.state = v471; - v485 = g483.x; - g483.x = v472; - v486 = g483.y; - g483.y = v473; - v487 = g483.z; - g483.z = v474; - v488 = g483.w; - g483.w = v475; - v489 = g483.buffer; - g483.buffer = v476; - v490 = g483.size; - g483.size = v477; - v491 = g483.normalized; - g483.normalized = v478; - v492 = g483.type; - g483.type = v479; - v493 = g483.offset; - g483.offset = v480; - v494 = g483.stride; - g483.stride = v481; - v495 = g483.divisor; - g483.divisor = v482; - v496 = a0["positionBuffer"]; - v53.buffer = v496; - v497 = false; - v498 = 1; - v499 = 0; - v500 = 0; - v501 = 0; - v502 = 0; - v503 = null; - v504 = 0; - v505 = false; - v506 = 5126; - v507 = 0; - v508 = 0; - v509 = 0; - if (v16(v53)) { - v497 = true; - v503 = v8.createStream(34962, v53); - v506 = v503.dtype; - } else { - v503 = v8.getBuffer(v53); - if (v503) { - v506 = v503.dtype; - } else if ("constant" in v53) { - v498 = 2; - if (typeof v53.constant === "number") { - v499 = v53.constant; - v500 = v501 = v502 = 0; + v427 = v19[0]; + v428 = v19[1]; + if (v427 !== v20[0] || v428 !== v20[1]) { + v1.blendEquationSeparate(v427, v428); + v20[0] = v427; + v20[1] = v428; + } + v429 = v4.depth_func; + if (v429 !== v5.depth_func) { + v1.depthFunc(v429); + v5.depth_func = v429; + } + v430 = v23[0]; + v431 = v23[1]; + if (v430 !== v24[0] || v431 !== v24[1]) { + v1.depthRange(v430, v431); + v24[0] = v430; + v24[1] = v431; + } + v432 = v4.depth_mask; + if (v432 !== v5.depth_mask) { + v1.depthMask(v432); + v5.depth_mask = v432; + } + v433 = v25[0]; + v434 = v25[1]; + v435 = v25[2]; + v436 = v25[3]; + if (v433 !== v26[0] || v434 !== v26[1] || v435 !== v26[2] || v436 !== v26[3]) { + v1.colorMask(v433, v434, v435, v436); + v26[0] = v433; + v26[1] = v434; + v26[2] = v435; + v26[3] = v436; + } + v437 = v4.cull_enable; + if (v437 !== v5.cull_enable) { + if (v437) { + v1.enable(2884); } else { - v499 = v53.constant.length > 0 ? v53.constant[0] : 0; - v500 = v53.constant.length > 1 ? v53.constant[1] : 0; - v501 = v53.constant.length > 2 ? v53.constant[2] : 0; - v502 = v53.constant.length > 3 ? v53.constant[3] : 0; + v1.disable(2884); } - } else { - if (v16(v53.buffer)) { - v503 = v8.createStream(34962, v53.buffer); + v5.cull_enable = v437; + } + v438 = v4.cull_face; + if (v438 !== v5.cull_face) { + v1.cullFace(v438); + v5.cull_face = v438; + } + v439 = v4.frontFace; + if (v439 !== v5.frontFace) { + v1.frontFace(v439); + v5.frontFace = v439; + } + v440 = v4.lineWidth; + if (v440 !== v5.lineWidth) { + v1.lineWidth(v440); + v5.lineWidth = v440; + } + v441 = v4.polygonOffset_enable; + if (v441 !== v5.polygonOffset_enable) { + if (v441) { + v1.enable(32823); } else { - v503 = v8.getBuffer(v53.buffer); + v1.disable(32823); } - v506 = "type" in v53 ? v46[v53.type] : v503.dtype; - v505 = !!v53.normalized; - v504 = v53.size | 0; - v507 = v53.offset | 0; - v508 = v53.stride | 0; - v509 = v53.divisor | 0; + v5.polygonOffset_enable = v441; } - } - v511 = g510.state; - g510.state = v498; - v512 = g510.x; - g510.x = v499; - v513 = g510.y; - g510.y = v500; - v514 = g510.z; - g510.z = v501; - v515 = g510.w; - g510.w = v502; - v516 = g510.buffer; - g510.buffer = v503; - v517 = g510.size; - g510.size = v504; - v518 = g510.normalized; - g510.normalized = v505; - v519 = g510.type; - g510.type = v506; - v520 = g510.offset; - g510.offset = v507; - v521 = g510.stride; - g510.stride = v508; - v522 = g510.divisor; - g510.divisor = v509; - v523 = a0["positionBuffer"]; - v54.buffer = v523; - v524 = false; - v525 = 1; - v526 = 0; - v527 = 0; - v528 = 0; - v529 = 0; - v530 = null; - v531 = 0; - v532 = false; - v533 = 5126; - v534 = 0; - v535 = 0; - v536 = 0; - if (v16(v54)) { - v524 = true; - v530 = v8.createStream(34962, v54); - v533 = v530.dtype; - } else { - v530 = v8.getBuffer(v54); - if (v530) { - v533 = v530.dtype; - } else if ("constant" in v54) { - v525 = 2; - if (typeof v54.constant === "number") { - v526 = v54.constant; - v527 = v528 = v529 = 0; + v442 = v27[0]; + v443 = v27[1]; + if (v442 !== v28[0] || v443 !== v28[1]) { + v1.polygonOffset(v442, v443); + v28[0] = v442; + v28[1] = v443; + } + v444 = v4.sample_alpha; + if (v444 !== v5.sample_alpha) { + if (v444) { + v1.enable(32926); } else { - v526 = v54.constant.length > 0 ? v54.constant[0] : 0; - v527 = v54.constant.length > 1 ? v54.constant[1] : 0; - v528 = v54.constant.length > 2 ? v54.constant[2] : 0; - v529 = v54.constant.length > 3 ? v54.constant[3] : 0; + v1.disable(32926); } - } else { - if (v16(v54.buffer)) { - v530 = v8.createStream(34962, v54.buffer); + v5.sample_alpha = v444; + } + v445 = v4.sample_enable; + if (v445 !== v5.sample_enable) { + if (v445) { + v1.enable(32928); } else { - v530 = v8.getBuffer(v54.buffer); + v1.disable(32928); } - v533 = "type" in v54 ? v46[v54.type] : v530.dtype; - v532 = !!v54.normalized; - v531 = v54.size | 0; - v534 = v54.offset | 0; - v535 = v54.stride | 0; - v536 = v54.divisor | 0; + v5.sample_enable = v445; } - } - v538 = g537.state; - g537.state = v525; - v539 = g537.x; - g537.x = v526; - v540 = g537.y; - g537.y = v527; - v541 = g537.z; - g537.z = v528; - v542 = g537.w; - g537.w = v529; - v543 = g537.buffer; - g537.buffer = v530; - v544 = g537.size; - g537.size = v531; - v545 = g537.normalized; - g537.normalized = v532; - v546 = g537.type; - g537.type = v533; - v547 = g537.offset; - g537.offset = v534; - v548 = g537.stride; - g537.stride = v535; - v549 = g537.divisor; - g537.divisor = v536; - v551 = v9.vert; - v9.vert = g550; - v553 = v9.frag; - v9.frag = g552; - v5.dirty = true; - a1(v2, a0, a2); - v2.viewportWidth = v263; - v2.viewportHeight = v264; - v39[0] = v265; - v39[1] = v266; - v39[2] = v267; - v39[3] = v268; - v17[0] = v270; - v17[1] = v272; - v17[2] = v274; - v17[3] = v276; - v4.blend_enable = v278; - v19[0] = v280; - v19[1] = v282; - v21[0] = v284; - v21[1] = v286; - v21[2] = v288; - v21[3] = v290; - v4.cull_enable = v292; - v4.cull_face = v294; - v4.depth_enable = v296; - v37[0] = v302; - v37[1] = v303; - v37[2] = v304; - v37[3] = v305; - v4.scissor_enable = v307; - v4.stencil_enable = v309; - if (v310) { - g48.cpuTime += performance.now() - v311; - } - v6.offset = v313; - v6.count = v315; - v6.instances = v317; - v6.primitive = v319; - v12[g321] = v322; - v12[g324] = v325; - v12[g327] = v328; - v12[g330] = v331; - v12[g333] = v334; - v12[g336] = v337; - v12[g339] = v340; - v12[g342] = v343; - v12[g345] = v346; - v12[g348] = v349; - v12[g351] = v352; - v12[g354] = v355; - v12[g357] = v358; - v12[g360] = v361; - g362.state = v363; - g362.x = v364; - g362.y = v365; - g362.z = v366; - g362.w = v367; - g362.buffer = v368; - g362.size = v369; - g362.normalized = v370; - g362.type = v371; - g362.offset = v372; - g362.stride = v373; - g362.divisor = v374; - g375.state = v376; - g375.x = v377; - g375.y = v378; - g375.z = v379; - g375.w = v380; - g375.buffer = v381; - g375.size = v382; - g375.normalized = v383; - g375.type = v384; - g375.offset = v385; - g375.stride = v386; - g375.divisor = v387; - if (v389) { - v8.destroyStream(v395); - } - g402.state = v403; - g402.x = v404; - g402.y = v405; - g402.z = v406; - g402.w = v407; - g402.buffer = v408; - g402.size = v409; - g402.normalized = v410; - g402.type = v411; - g402.offset = v412; - g402.stride = v413; - g402.divisor = v414; - if (v416) { - v8.destroyStream(v422); - } - g429.state = v430; - g429.x = v431; - g429.y = v432; - g429.z = v433; - g429.w = v434; - g429.buffer = v435; - g429.size = v436; - g429.normalized = v437; - g429.type = v438; - g429.offset = v439; - g429.stride = v440; - g429.divisor = v441; - if (v443) { - v8.destroyStream(v449); - } - g456.state = v457; - g456.x = v458; - g456.y = v459; - g456.z = v460; - g456.w = v461; - g456.buffer = v462; - g456.size = v463; - g456.normalized = v464; - g456.type = v465; - g456.offset = v466; - g456.stride = v467; - g456.divisor = v468; - if (v470) { - v8.destroyStream(v476); - } - g483.state = v484; - g483.x = v485; - g483.y = v486; - g483.z = v487; - g483.w = v488; - g483.buffer = v489; - g483.size = v490; - g483.normalized = v491; - g483.type = v492; - g483.offset = v493; - g483.stride = v494; - g483.divisor = v495; - if (v497) { - v8.destroyStream(v503); - } - g510.state = v511; - g510.x = v512; - g510.y = v513; - g510.z = v514; - g510.w = v515; - g510.buffer = v516; - g510.size = v517; - g510.normalized = v518; - g510.type = v519; - g510.offset = v520; - g510.stride = v521; - g510.divisor = v522; - if (v524) { - v8.destroyStream(v530); - } - g537.state = v538; - g537.x = v539; - g537.y = v540; - g537.z = v541; - g537.w = v542; - g537.buffer = v543; - g537.size = v544; - g537.normalized = v545; - g537.type = v546; - g537.offset = v547; - g537.stride = v548; - g537.divisor = v549; - v9.vert = v551; - v9.frag = v553; - v5.dirty = true; - }, - "batch": function(a0, a1) { - var v554, v555, v591, v592, v593, v594, v595; - v554 = v14.angle_instanced_arrays; - v555 = v13.next; - if (v555 !== v13.cur) { - if (v555) { - v1.bindFramebuffer(36160, v555.framebuffer); - } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v555; - } - if (v5.dirty) { - var v556, v557, v558, v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v571, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585; - v556 = v4.dither; - if (v556 !== v5.dither) { - if (v556) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v556; - } - v557 = v4.depth_func; - if (v557 !== v5.depth_func) { - v1.depthFunc(v557); - v5.depth_func = v557; - } - v558 = v23[0]; - v559 = v23[1]; - if (v558 !== v24[0] || v559 !== v24[1]) { - v1.depthRange(v558, v559); - v24[0] = v558; - v24[1] = v559; - } - v560 = v4.depth_mask; - if (v560 !== v5.depth_mask) { - v1.depthMask(v560); - v5.depth_mask = v560; - } - v561 = v25[0]; - v562 = v25[1]; - v563 = v25[2]; - v564 = v25[3]; - if (v561 !== v26[0] || v562 !== v26[1] || v563 !== v26[2] || v564 !== v26[3]) { - v1.colorMask(v561, v562, v563, v564); - v26[0] = v561; - v26[1] = v562; - v26[2] = v563; - v26[3] = v564; - } - v565 = v4.frontFace; - if (v565 !== v5.frontFace) { - v1.frontFace(v565); - v5.frontFace = v565; + v446 = v29[0]; + v447 = v29[1]; + if (v446 !== v30[0] || v447 !== v30[1]) { + v1.sampleCoverage(v446, v447); + v30[0] = v446; + v30[1] = v447; } - v566 = v4.lineWidth; - if (v566 !== v5.lineWidth) { - v1.lineWidth(v566); - v5.lineWidth = v566; + v448 = v4.stencil_mask; + if (v448 !== v5.stencil_mask) { + v1.stencilMask(v448); + v5.stencil_mask = v448; } - v567 = v4.polygonOffset_enable; - if (v567 !== v5.polygonOffset_enable) { - if (v567) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v567; + v449 = v31[0]; + v450 = v31[1]; + v451 = v31[2]; + if (v449 !== v32[0] || v450 !== v32[1] || v451 !== v32[2]) { + v1.stencilFunc(v449, v450, v451); + v32[0] = v449; + v32[1] = v450; + v32[2] = v451; } - v568 = v27[0]; - v569 = v27[1]; - if (v568 !== v28[0] || v569 !== v28[1]) { - v1.polygonOffset(v568, v569); - v28[0] = v568; - v28[1] = v569; + v452 = v33[0]; + v453 = v33[1]; + v454 = v33[2]; + v455 = v33[3]; + if (v452 !== v34[0] || v453 !== v34[1] || v454 !== v34[2] || v455 !== v34[3]) { + v1.stencilOpSeparate(v452, v453, v454, v455); + v34[0] = v452; + v34[1] = v453; + v34[2] = v454; + v34[3] = v455; } - v570 = v4.sample_alpha; - if (v570 !== v5.sample_alpha) { - if (v570) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v570; + v456 = v35[0]; + v457 = v35[1]; + v458 = v35[2]; + v459 = v35[3]; + if (v456 !== v36[0] || v457 !== v36[1] || v458 !== v36[2] || v459 !== v36[3]) { + v1.stencilOpSeparate(v456, v457, v458, v459); + v36[0] = v456; + v36[1] = v457; + v36[2] = v458; + v36[3] = v459; } - v571 = v4.sample_enable; - if (v571 !== v5.sample_enable) { - if (v571) { - v1.enable(32928); + v460 = v4.scissor_enable; + if (v460 !== v5.scissor_enable) { + if (v460) { + v1.enable(3089); } else { - v1.disable(32928); + v1.disable(3089); } - v5.sample_enable = v571; - } - v572 = v29[0]; - v573 = v29[1]; - if (v572 !== v30[0] || v573 !== v30[1]) { - v1.sampleCoverage(v572, v573); - v30[0] = v572; - v30[1] = v573; - } - v574 = v4.stencil_mask; - if (v574 !== v5.stencil_mask) { - v1.stencilMask(v574); - v5.stencil_mask = v574; - } - v575 = v31[0]; - v576 = v31[1]; - v577 = v31[2]; - if (v575 !== v32[0] || v576 !== v32[1] || v577 !== v32[2]) { - v1.stencilFunc(v575, v576, v577); - v32[0] = v575; - v32[1] = v576; - v32[2] = v577; - } - v578 = v33[0]; - v579 = v33[1]; - v580 = v33[2]; - v581 = v33[3]; - if (v578 !== v34[0] || v579 !== v34[1] || v580 !== v34[2] || v581 !== v34[3]) { - v1.stencilOpSeparate(v578, v579, v580, v581); - v34[0] = v578; - v34[1] = v579; - v34[2] = v580; - v34[3] = v581; + v5.scissor_enable = v460; } - v582 = v35[0]; - v583 = v35[1]; - v584 = v35[2]; - v585 = v35[3]; - if (v582 !== v36[0] || v583 !== v36[1] || v584 !== v36[2] || v585 !== v36[3]) { - v1.stencilOpSeparate(v582, v583, v584, v585); - v36[0] = v582; - v36[1] = v583; - v36[2] = v584; - v36[3] = v585; + v461 = v37[0]; + v462 = v37[1]; + v463 = v37[2]; + v464 = v37[3]; + if (v461 !== v38[0] || v462 !== v38[1] || v463 !== v38[2] || v464 !== v38[3]) { + v1.scissor(v461, v462, v463, v464); + v38[0] = v461; + v38[1] = v462; + v38[2] = v463; + v38[3] = v464; } } - v1.blendColor(0, 0, 0, 0); + v465 = this["viewport"]; + v466 = v465.x | 0; + v467 = v465.y | 0; + v468 = "width" in v465 ? v465.width | 0 : v2.framebufferWidth - v466; + v469 = "height" in v465 ? v465.height | 0 : v2.framebufferHeight - v467; + v470 = v2.viewportWidth; + v2.viewportWidth = v468; + v471 = v2.viewportHeight; + v2.viewportHeight = v469; + v1.viewport(v466, v467, v468, v469); + v40[0] = v466; + v40[1] = v467; + v40[2] = v468; + v40[3] = v469; + v1.blendColor(0, 0, 0, 1); v18[0] = 0; v18[1] = 0; v18[2] = 0; - v18[3] = 0; - if (g586) { + v18[3] = 1; + if (g472) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g586; - v1.blendEquationSeparate(32774, 32774); - v20[0] = 32774; - v20[1] = 32774; + v5.blend_enable = g472; v1.blendFuncSeparate(770, 771, 773, 1); v22[0] = 770; v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g587) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = g587; - v1.cullFace(g588); - v5.cull_face = g588; - if (g589) { - v1.enable(3089); + if (g473) { + v1.enable(2929); } else { - v1.disable(3089); + v1.disable(2929); } - v5.scissor_enable = g589; - if (g590) { + v5.depth_enable = g473; + if (g474) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = g590; - v591 = v5.profile; - if (v591) { - v592 = performance.now(); + v5.stencil_enable = g474; + v475 = v5.profile; + if (v475) { + v476 = performance.now(); g48.count += a1; } - v1.useProgram(g108.program); - v593 = v14.angle_instanced_arrays; - var v609, v610, v611, v612, v748; + v1.useProgram(g104.program); + v477 = v14.angle_instanced_arrays; + var v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v490, v491, v492, v493, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v504, v505, v506, v507, v508, v509, v510, v511, v512, v513, v514, v515, v516, v517, v518, v519, v520, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541, v542, v543, v544, v545, v546, v547, v548, v549, v550, v551, v552, v553, v554, v555, v556, v557, v558, v595, v598; v11.setVAO(null); - v609 = g183.location; - v610 = v10[v609]; - if (!v610.buffer) { - v1.enableVertexAttribArray(v609); - } - if (v610.type !== 5126 || v610.size !== 1 || v610.buffer !== g182 || v610.normalized !== false || v610.offset !== 0 || v610.stride !== 8) { - v1.bindBuffer(34962, g182.buffer); - v1.vertexAttribPointer(v609, 1, 5126, false, 8, 0); - v610.type = 5126; - v610.size = 1; - v610.buffer = g182; - v610.normalized = false; - v610.offset = 0; - v610.stride = 8; - } - if (v610.divisor !== 0) { - v593.vertexAttribDivisorANGLE(v609, 0); - v610.divisor = 0; - } - v611 = g186.location; - v612 = v10[v611]; - if (!v612.buffer) { - v1.enableVertexAttribArray(v611); - } - if (v612.type !== 5126 || v612.size !== 1 || v612.buffer !== g182 || v612.normalized !== false || v612.offset !== 4 || v612.stride !== 8) { - v1.bindBuffer(34962, g182.buffer); - v1.vertexAttribPointer(v611, 1, 5126, false, 8, 4); - v612.type = 5126; - v612.size = 1; - v612.buffer = g182; - v612.normalized = false; - v612.offset = 4; - v612.stride = 8; - } - if (v612.divisor !== 0) { - v593.vertexAttribDivisorANGLE(v611, 0); - v612.divisor = 0; - } - v748 = v6.elements; - if (v748) { - v1.bindBuffer(34963, v748.buffer.buffer); - } else if (v11.currentVAO) { - v748 = v7.getElements(v11.currentVAO.elements); - if (v748) v1.bindBuffer(34963, v748.buffer.buffer); - } - for (v594 = 0; v594 < a1; ++v594) { - v595 = a0[v594]; - var v596, v597, v598, v599, v600, v601, v602, v603, v604, v605, v606, v607, v608, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v625, v626, v627, v628, v629, v630, v631, v632, v633, v634, v635, v636, v637, v638, v639, v640, v641, v642, v643, v644, v645, v646, v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677, v678, v679, v680, v681, v682, v683, v684, v685, v686, v687, v688, v689, v690, v691, v692, v693, v694, v695, v696, v697, v698, v699, v700, v701, v702, v703, v704, v705, v706, v707, v708, v709, v710, v711, v712, v713, v714, v715, v716, v717, v718, v719, v720, v721, v722, v723, v724, v725, v726, v727, v728, v729, v730, v731, v732, v733, v734, v735, v736, v737, v738, v739, v740, v741, v742, v743, v744, v745, v746, v747, v749; - v596 = v595["viewport"]; - v597 = v596.x | 0; - v598 = v596.y | 0; - v599 = "width" in v596 ? v596.width | 0 : v2.framebufferWidth - v597; - v600 = "height" in v596 ? v596.height | 0 : v2.framebufferHeight - v598; - v601 = v2.viewportWidth; - v2.viewportWidth = v599; - v602 = v2.viewportHeight; - v2.viewportHeight = v600; - v1.viewport(v597, v598, v599, v600); - v40[0] = v597; - v40[1] = v598; - v40[2] = v599; - v40[3] = v600; - v603 = g97.call(this, v2, v595, v594); - if (v603) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v603; - v604 = v595["viewport"]; - v605 = v604.x | 0; - v606 = v604.y | 0; - v607 = "width" in v604 ? v604.width | 0 : v2.framebufferWidth - v605; - v608 = "height" in v604 ? v604.height | 0 : v2.framebufferHeight - v606; - v1.scissor(v605, v606, v607, v608); - v38[0] = v605; - v38[1] = v606; - v38[2] = v607; - v38[3] = v608; - v613 = v595["colorBuffer"]; - v49.buffer = v613; - v614 = false; - v615 = 1; - v616 = 0; - v617 = 0; - v618 = 0; - v619 = 0; - v620 = null; - v621 = 0; - v622 = false; - v623 = 5126; - v624 = 0; - v625 = 0; - v626 = 0; - if (v16(v49)) { - v614 = true; - v620 = v8.createStream(34962, v49); - v623 = v620.dtype; - } else { - v620 = v8.getBuffer(v49); - if (v620) { - v623 = v620.dtype; - } else if ("constant" in v49) { - v615 = 2; - if (typeof v49.constant === "number") { - v616 = v49.constant; - v617 = v618 = v619 = 0; - } else { - v616 = v49.constant.length > 0 ? v49.constant[0] : 0; - v617 = v49.constant.length > 1 ? v49.constant[1] : 0; - v618 = v49.constant.length > 2 ? v49.constant[2] : 0; - v619 = v49.constant.length > 3 ? v49.constant[3] : 0; - } + v480 = this["charBuffer"]; + v481 = false; + v482 = 1; + v483 = 0; + v484 = 0; + v485 = 0; + v486 = 0; + v487 = null; + v488 = 0; + v489 = false; + v490 = 5126; + v491 = 0; + v492 = 0; + v493 = 0; + if (v16(v480)) { + v481 = true; + v487 = v8.createStream(34962, v480); + v490 = v487.dtype; + } else { + v487 = v8.getBuffer(v480); + if (v487) { + v490 = v487.dtype; + } else if ("constant" in v480) { + v482 = 2; + if (typeof v480.constant === "number") { + v483 = v480.constant; + v484 = v485 = v486 = 0; } else { - if (v16(v49.buffer)) { - v620 = v8.createStream(34962, v49.buffer); - } else { - v620 = v8.getBuffer(v49.buffer); - } - v623 = "type" in v49 ? v46[v49.type] : v620.dtype; - v622 = !!v49.normalized; - v621 = v49.size | 0; - v624 = v49.offset | 0; - v625 = v49.stride | 0; - v626 = v49.divisor | 0; - } - } - v627 = g124.location; - v628 = v10[v627]; - if (v615 === 1) { - if (!v628.buffer) { - v1.enableVertexAttribArray(v627); - } - v629 = v621 || 4; - if (v628.type !== v623 || v628.size !== v629 || v628.buffer !== v620 || v628.normalized !== v622 || v628.offset !== v624 || v628.stride !== v625) { - v1.bindBuffer(34962, v620.buffer); - v1.vertexAttribPointer(v627, v629, v623, v622, v625, v624); - v628.type = v623; - v628.size = v629; - v628.buffer = v620; - v628.normalized = v622; - v628.offset = v624; - v628.stride = v625; - } - if (v628.divisor !== v626) { - v593.vertexAttribDivisorANGLE(v627, v626); - v628.divisor = v626; - } - } else { - if (v628.buffer) { - v1.disableVertexAttribArray(v627); - v628.buffer = null; - } - if (v628.x !== v616 || v628.y !== v617 || v628.z !== v618 || v628.w !== v619) { - v1.vertexAttrib4f(v627, v616, v617, v618, v619); - v628.x = v616; - v628.y = v617; - v628.z = v618; - v628.w = v619; + v483 = v480.constant.length > 0 ? v480.constant[0] : 0; + v484 = v480.constant.length > 1 ? v480.constant[1] : 0; + v485 = v480.constant.length > 2 ? v480.constant[2] : 0; + v486 = v480.constant.length > 3 ? v480.constant[3] : 0; } - } - v630 = v595["positionBuffer"]; - v52.buffer = v630; - v631 = false; - v632 = 1; - v633 = 0; - v634 = 0; - v635 = 0; - v636 = 0; - v637 = null; - v638 = 0; - v639 = false; - v640 = 5126; - v641 = 0; - v642 = 0; - v643 = 0; - if (v16(v52)) { - v631 = true; - v637 = v8.createStream(34962, v52); - v640 = v637.dtype; } else { - v637 = v8.getBuffer(v52); - if (v637) { - v640 = v637.dtype; - } else if ("constant" in v52) { - v632 = 2; - if (typeof v52.constant === "number") { - v633 = v52.constant; - v634 = v635 = v636 = 0; - } else { - v633 = v52.constant.length > 0 ? v52.constant[0] : 0; - v634 = v52.constant.length > 1 ? v52.constant[1] : 0; - v635 = v52.constant.length > 2 ? v52.constant[2] : 0; - v636 = v52.constant.length > 3 ? v52.constant[3] : 0; - } + if (v16(v480.buffer)) { + v487 = v8.createStream(34962, v480.buffer); } else { - if (v16(v52.buffer)) { - v637 = v8.createStream(34962, v52.buffer); - } else { - v637 = v8.getBuffer(v52.buffer); - } - v640 = "type" in v52 ? v46[v52.type] : v637.dtype; - v639 = !!v52.normalized; - v638 = v52.size | 0; - v641 = v52.offset | 0; - v642 = v52.stride | 0; - v643 = v52.divisor | 0; + v487 = v8.getBuffer(v480.buffer); } + v490 = "type" in v480 ? v46[v480.type] : v487.dtype; + v489 = !!v480.normalized; + v488 = v480.size | 0; + v491 = v480.offset | 0; + v492 = v480.stride | 0; + v493 = v480.divisor | 0; } - v644 = g142.location; - v645 = v10[v644]; - if (v632 === 1) { - if (!v645.buffer) { - v1.enableVertexAttribArray(v644); - } - v646 = v638 || 2; - if (v645.type !== v640 || v645.size !== v646 || v645.buffer !== v637 || v645.normalized !== v639 || v645.offset !== v641 || v645.stride !== v642) { - v1.bindBuffer(34962, v637.buffer); - v1.vertexAttribPointer(v644, v646, v640, v639, v642, v641); - v645.type = v640; - v645.size = v646; - v645.buffer = v637; - v645.normalized = v639; - v645.offset = v641; - v645.stride = v642; - } - if (v645.divisor !== v643) { - v593.vertexAttribDivisorANGLE(v644, v643); - v645.divisor = v643; - } - } else { - if (v645.buffer) { - v1.disableVertexAttribArray(v644); - v645.buffer = null; - } - if (v645.x !== v633 || v645.y !== v634 || v645.z !== v635 || v645.w !== v636) { - v1.vertexAttrib4f(v644, v633, v634, v635, v636); - v645.x = v633; - v645.y = v634; - v645.z = v635; - v645.w = v636; - } + } + v494 = g120.location; + v495 = v10[v494]; + if (v482 === 1) { + if (!v495.buffer) { + v1.enableVertexAttribArray(v494); } - v647 = v595["colorBuffer"]; - v50.buffer = v647; - v648 = false; - v649 = 1; - v650 = 0; - v651 = 0; - v652 = 0; - v653 = 0; - v654 = null; - v655 = 0; - v656 = false; - v657 = 5126; - v658 = 0; - v659 = 0; - v660 = 0; - if (v16(v50)) { - v648 = true; - v654 = v8.createStream(34962, v50); - v657 = v654.dtype; + v496 = v488 || 1; + if (v495.type !== v490 || v495.size !== v496 || v495.buffer !== v487 || v495.normalized !== v489 || v495.offset !== v491 || v495.stride !== v492) { + v1.bindBuffer(34962, v487.buffer); + v1.vertexAttribPointer(v494, v496, v490, v489, v492, v491); + v495.type = v490; + v495.size = v496; + v495.buffer = v487; + v495.normalized = v489; + v495.offset = v491; + v495.stride = v492; + } + if (v495.divisor !== v493) { + v477.vertexAttribDivisorANGLE(v494, v493); + v495.divisor = v493; + } + } else { + if (v495.buffer) { + v1.disableVertexAttribArray(v494); + v495.buffer = null; + } + if (v495.x !== v483 || v495.y !== v484 || v495.z !== v485 || v495.w !== v486) { + v1.vertexAttrib4f(v494, v483, v484, v485, v486); + v495.x = v483; + v495.y = v484; + v495.z = v485; + v495.w = v486; + } + } + v497 = this["sizeBuffer"]; + v49.buffer = v497; + v498 = false; + v499 = 1; + v500 = 0; + v501 = 0; + v502 = 0; + v503 = 0; + v504 = null; + v505 = 0; + v506 = false; + v507 = 5126; + v508 = 0; + v509 = 0; + v510 = 0; + if (v16(v49)) { + v498 = true; + v504 = v8.createStream(34962, v49); + v507 = v504.dtype; + } else { + v504 = v8.getBuffer(v49); + if (v504) { + v507 = v504.dtype; + } else if ("constant" in v49) { + v499 = 2; + if (typeof v49.constant === "number") { + v500 = v49.constant; + v501 = v502 = v503 = 0; + } else { + v500 = v49.constant.length > 0 ? v49.constant[0] : 0; + v501 = v49.constant.length > 1 ? v49.constant[1] : 0; + v502 = v49.constant.length > 2 ? v49.constant[2] : 0; + v503 = v49.constant.length > 3 ? v49.constant[3] : 0; + } } else { - v654 = v8.getBuffer(v50); - if (v654) { - v657 = v654.dtype; - } else if ("constant" in v50) { - v649 = 2; - if (typeof v50.constant === "number") { - v650 = v50.constant; - v651 = v652 = v653 = 0; - } else { - v650 = v50.constant.length > 0 ? v50.constant[0] : 0; - v651 = v50.constant.length > 1 ? v50.constant[1] : 0; - v652 = v50.constant.length > 2 ? v50.constant[2] : 0; - v653 = v50.constant.length > 3 ? v50.constant[3] : 0; - } + if (v16(v49.buffer)) { + v504 = v8.createStream(34962, v49.buffer); } else { - if (v16(v50.buffer)) { - v654 = v8.createStream(34962, v50.buffer); - } else { - v654 = v8.getBuffer(v50.buffer); - } - v657 = "type" in v50 ? v46[v50.type] : v654.dtype; - v656 = !!v50.normalized; - v655 = v50.size | 0; - v658 = v50.offset | 0; - v659 = v50.stride | 0; - v660 = v50.divisor | 0; + v504 = v8.getBuffer(v49.buffer); } + v507 = "type" in v49 ? v46[v49.type] : v504.dtype; + v506 = !!v49.normalized; + v505 = v49.size | 0; + v508 = v49.offset | 0; + v509 = v49.stride | 0; + v510 = v49.divisor | 0; } - v661 = g160.location; - v662 = v10[v661]; - if (v649 === 1) { - if (!v662.buffer) { - v1.enableVertexAttribArray(v661); - } - v663 = v655 || 4; - if (v662.type !== v657 || v662.size !== v663 || v662.buffer !== v654 || v662.normalized !== v656 || v662.offset !== v658 || v662.stride !== v659) { - v1.bindBuffer(34962, v654.buffer); - v1.vertexAttribPointer(v661, v663, v657, v656, v659, v658); - v662.type = v657; - v662.size = v663; - v662.buffer = v654; - v662.normalized = v656; - v662.offset = v658; - v662.stride = v659; - } - if (v662.divisor !== v660) { - v593.vertexAttribDivisorANGLE(v661, v660); - v662.divisor = v660; + } + v511 = g138.location; + v512 = v10[v511]; + if (v499 === 1) { + if (!v512.buffer) { + v1.enableVertexAttribArray(v511); + } + v513 = v505 || 1; + if (v512.type !== v507 || v512.size !== v513 || v512.buffer !== v504 || v512.normalized !== v506 || v512.offset !== v508 || v512.stride !== v509) { + v1.bindBuffer(34962, v504.buffer); + v1.vertexAttribPointer(v511, v513, v507, v506, v509, v508); + v512.type = v507; + v512.size = v513; + v512.buffer = v504; + v512.normalized = v506; + v512.offset = v508; + v512.stride = v509; + } + if (v512.divisor !== v510) { + v477.vertexAttribDivisorANGLE(v511, v510); + v512.divisor = v510; + } + } else { + if (v512.buffer) { + v1.disableVertexAttribArray(v511); + v512.buffer = null; + } + if (v512.x !== v500 || v512.y !== v501 || v512.z !== v502 || v512.w !== v503) { + v1.vertexAttrib4f(v511, v500, v501, v502, v503); + v512.x = v500; + v512.y = v501; + v512.z = v502; + v512.w = v503; + } + } + v514 = this["position"]; + v515 = false; + v516 = 1; + v517 = 0; + v518 = 0; + v519 = 0; + v520 = 0; + v521 = null; + v522 = 0; + v523 = false; + v524 = 5126; + v525 = 0; + v526 = 0; + v527 = 0; + if (v16(v514)) { + v515 = true; + v521 = v8.createStream(34962, v514); + v524 = v521.dtype; + } else { + v521 = v8.getBuffer(v514); + if (v521) { + v524 = v521.dtype; + } else if ("constant" in v514) { + v516 = 2; + if (typeof v514.constant === "number") { + v517 = v514.constant; + v518 = v519 = v520 = 0; + } else { + v517 = v514.constant.length > 0 ? v514.constant[0] : 0; + v518 = v514.constant.length > 1 ? v514.constant[1] : 0; + v519 = v514.constant.length > 2 ? v514.constant[2] : 0; + v520 = v514.constant.length > 3 ? v514.constant[3] : 0; } } else { - if (v662.buffer) { - v1.disableVertexAttribArray(v661); - v662.buffer = null; - } - if (v662.x !== v650 || v662.y !== v651 || v662.z !== v652 || v662.w !== v653) { - v1.vertexAttrib4f(v661, v650, v651, v652, v653); - v662.x = v650; - v662.y = v651; - v662.z = v652; - v662.w = v653; + if (v16(v514.buffer)) { + v521 = v8.createStream(34962, v514.buffer); + } else { + v521 = v8.getBuffer(v514.buffer); } + v524 = "type" in v514 ? v46[v514.type] : v521.dtype; + v523 = !!v514.normalized; + v522 = v514.size | 0; + v525 = v514.offset | 0; + v526 = v514.stride | 0; + v527 = v514.divisor | 0; } - v664 = v595["positionBuffer"]; - v53.buffer = v664; - v665 = false; - v666 = 1; - v667 = 0; - v668 = 0; - v669 = 0; - v670 = 0; - v671 = null; - v672 = 0; - v673 = false; - v674 = 5126; - v675 = 0; - v676 = 0; - v677 = 0; - if (v16(v53)) { - v665 = true; - v671 = v8.createStream(34962, v53); - v674 = v671.dtype; + } + v528 = g156.location; + v529 = v10[v528]; + if (v516 === 1) { + if (!v529.buffer) { + v1.enableVertexAttribArray(v528); + } + v530 = v522 || 2; + if (v529.type !== v524 || v529.size !== v530 || v529.buffer !== v521 || v529.normalized !== v523 || v529.offset !== v525 || v529.stride !== v526) { + v1.bindBuffer(34962, v521.buffer); + v1.vertexAttribPointer(v528, v530, v524, v523, v526, v525); + v529.type = v524; + v529.size = v530; + v529.buffer = v521; + v529.normalized = v523; + v529.offset = v525; + v529.stride = v526; + } + if (v529.divisor !== v527) { + v477.vertexAttribDivisorANGLE(v528, v527); + v529.divisor = v527; + } + } else { + if (v529.buffer) { + v1.disableVertexAttribArray(v528); + v529.buffer = null; + } + if (v529.x !== v517 || v529.y !== v518 || v529.z !== v519 || v529.w !== v520) { + v1.vertexAttrib4f(v528, v517, v518, v519, v520); + v529.x = v517; + v529.y = v518; + v529.z = v519; + v529.w = v520; + } + } + v531 = this["sizeBuffer"]; + v50.buffer = v531; + v532 = false; + v533 = 1; + v534 = 0; + v535 = 0; + v536 = 0; + v537 = 0; + v538 = null; + v539 = 0; + v540 = false; + v541 = 5126; + v542 = 0; + v543 = 0; + v544 = 0; + if (v16(v50)) { + v532 = true; + v538 = v8.createStream(34962, v50); + v541 = v538.dtype; + } else { + v538 = v8.getBuffer(v50); + if (v538) { + v541 = v538.dtype; + } else if ("constant" in v50) { + v533 = 2; + if (typeof v50.constant === "number") { + v534 = v50.constant; + v535 = v536 = v537 = 0; + } else { + v534 = v50.constant.length > 0 ? v50.constant[0] : 0; + v535 = v50.constant.length > 1 ? v50.constant[1] : 0; + v536 = v50.constant.length > 2 ? v50.constant[2] : 0; + v537 = v50.constant.length > 3 ? v50.constant[3] : 0; + } } else { - v671 = v8.getBuffer(v53); - if (v671) { - v674 = v671.dtype; - } else if ("constant" in v53) { - v666 = 2; - if (typeof v53.constant === "number") { - v667 = v53.constant; - v668 = v669 = v670 = 0; - } else { - v667 = v53.constant.length > 0 ? v53.constant[0] : 0; - v668 = v53.constant.length > 1 ? v53.constant[1] : 0; - v669 = v53.constant.length > 2 ? v53.constant[2] : 0; - v670 = v53.constant.length > 3 ? v53.constant[3] : 0; - } + if (v16(v50.buffer)) { + v538 = v8.createStream(34962, v50.buffer); } else { - if (v16(v53.buffer)) { - v671 = v8.createStream(34962, v53.buffer); - } else { - v671 = v8.getBuffer(v53.buffer); - } - v674 = "type" in v53 ? v46[v53.type] : v671.dtype; - v673 = !!v53.normalized; - v672 = v53.size | 0; - v675 = v53.offset | 0; - v676 = v53.stride | 0; - v677 = v53.divisor | 0; + v538 = v8.getBuffer(v50.buffer); } + v541 = "type" in v50 ? v46[v50.type] : v538.dtype; + v540 = !!v50.normalized; + v539 = v50.size | 0; + v542 = v50.offset | 0; + v543 = v50.stride | 0; + v544 = v50.divisor | 0; } - v678 = g178.location; - v679 = v10[v678]; - if (v666 === 1) { - if (!v679.buffer) { - v1.enableVertexAttribArray(v678); - } - v680 = v672 || 2; - if (v679.type !== v674 || v679.size !== v680 || v679.buffer !== v671 || v679.normalized !== v673 || v679.offset !== v675 || v679.stride !== v676) { - v1.bindBuffer(34962, v671.buffer); - v1.vertexAttribPointer(v678, v680, v674, v673, v676, v675); - v679.type = v674; - v679.size = v680; - v679.buffer = v671; - v679.normalized = v673; - v679.offset = v675; - v679.stride = v676; - } - if (v679.divisor !== v677) { - v593.vertexAttribDivisorANGLE(v678, v677); - v679.divisor = v677; - } - } else { - if (v679.buffer) { - v1.disableVertexAttribArray(v678); - v679.buffer = null; - } - if (v679.x !== v667 || v679.y !== v668 || v679.z !== v669 || v679.w !== v670) { - v1.vertexAttrib4f(v678, v667, v668, v669, v670); - v679.x = v667; - v679.y = v668; - v679.z = v669; - v679.w = v670; - } - } - v681 = v595["positionBuffer"]; - v54.buffer = v681; - v682 = false; - v683 = 1; - v684 = 0; - v685 = 0; - v686 = 0; - v687 = 0; - v688 = null; - v689 = 0; - v690 = false; - v691 = 5126; - v692 = 0; - v693 = 0; - v694 = 0; - if (v16(v54)) { - v682 = true; - v688 = v8.createStream(34962, v54); - v691 = v688.dtype; - } else { - v688 = v8.getBuffer(v54); - if (v688) { - v691 = v688.dtype; - } else if ("constant" in v54) { - v683 = 2; - if (typeof v54.constant === "number") { - v684 = v54.constant; - v685 = v686 = v687 = 0; - } else { - v684 = v54.constant.length > 0 ? v54.constant[0] : 0; - v685 = v54.constant.length > 1 ? v54.constant[1] : 0; - v686 = v54.constant.length > 2 ? v54.constant[2] : 0; - v687 = v54.constant.length > 3 ? v54.constant[3] : 0; - } - } else { - if (v16(v54.buffer)) { - v688 = v8.createStream(34962, v54.buffer); - } else { - v688 = v8.getBuffer(v54.buffer); - } - v691 = "type" in v54 ? v46[v54.type] : v688.dtype; - v690 = !!v54.normalized; - v689 = v54.size | 0; - v692 = v54.offset | 0; - v693 = v54.stride | 0; - v694 = v54.divisor | 0; - } - } - v695 = g203.location; - v696 = v10[v695]; - if (v683 === 1) { - if (!v696.buffer) { - v1.enableVertexAttribArray(v695); - } - v697 = v689 || 2; - if (v696.type !== v691 || v696.size !== v697 || v696.buffer !== v688 || v696.normalized !== v690 || v696.offset !== v692 || v696.stride !== v693) { - v1.bindBuffer(34962, v688.buffer); - v1.vertexAttribPointer(v695, v697, v691, v690, v693, v692); - v696.type = v691; - v696.size = v697; - v696.buffer = v688; - v696.normalized = v690; - v696.offset = v692; - v696.stride = v693; - } - if (v696.divisor !== v694) { - v593.vertexAttribDivisorANGLE(v695, v694); - v696.divisor = v694; - } - } else { - if (v696.buffer) { - v1.disableVertexAttribArray(v695); - v696.buffer = null; - } - if (v696.x !== v684 || v696.y !== v685 || v696.z !== v686 || v696.w !== v687) { - v1.vertexAttrib4f(v695, v684, v685, v686, v687); - v696.x = v684; - v696.y = v685; - v696.z = v686; - v696.w = v687; - } - } - v698 = v595["positionBuffer"]; - v51.buffer = v698; - v699 = false; - v700 = 1; - v701 = 0; - v702 = 0; - v703 = 0; - v704 = 0; - v705 = null; - v706 = 0; - v707 = false; - v708 = 5126; - v709 = 0; - v710 = 0; - v711 = 0; - if (v16(v51)) { - v699 = true; - v705 = v8.createStream(34962, v51); - v708 = v705.dtype; - } else { - v705 = v8.getBuffer(v51); - if (v705) { - v708 = v705.dtype; - } else if ("constant" in v51) { - v700 = 2; - if (typeof v51.constant === "number") { - v701 = v51.constant; - v702 = v703 = v704 = 0; - } else { - v701 = v51.constant.length > 0 ? v51.constant[0] : 0; - v702 = v51.constant.length > 1 ? v51.constant[1] : 0; - v703 = v51.constant.length > 2 ? v51.constant[2] : 0; - v704 = v51.constant.length > 3 ? v51.constant[3] : 0; - } - } else { - if (v16(v51.buffer)) { - v705 = v8.createStream(34962, v51.buffer); - } else { - v705 = v8.getBuffer(v51.buffer); - } - v708 = "type" in v51 ? v46[v51.type] : v705.dtype; - v707 = !!v51.normalized; - v706 = v51.size | 0; - v709 = v51.offset | 0; - v710 = v51.stride | 0; - v711 = v51.divisor | 0; - } - } - v712 = g221.location; - v713 = v10[v712]; - if (v700 === 1) { - if (!v713.buffer) { - v1.enableVertexAttribArray(v712); - } - v714 = v706 || 2; - if (v713.type !== v708 || v713.size !== v714 || v713.buffer !== v705 || v713.normalized !== v707 || v713.offset !== v709 || v713.stride !== v710) { - v1.bindBuffer(34962, v705.buffer); - v1.vertexAttribPointer(v712, v714, v708, v707, v710, v709); - v713.type = v708; - v713.size = v714; - v713.buffer = v705; - v713.normalized = v707; - v713.offset = v709; - v713.stride = v710; - } - if (v713.divisor !== v711) { - v593.vertexAttribDivisorANGLE(v712, v711); - v713.divisor = v711; - } - } else { - if (v713.buffer) { - v1.disableVertexAttribArray(v712); - v713.buffer = null; - } - if (v713.x !== v701 || v713.y !== v702 || v713.z !== v703 || v713.w !== v704) { - v1.vertexAttrib4f(v712, v701, v702, v703, v704); - v713.x = v701; - v713.y = v702; - v713.z = v703; - v713.w = v704; - } - } - v715 = v595["dashLength"]; - if (!v594 || v716 !== v715) { - v716 = v715; - v1.uniform1f(g225.location, v715); - } - v717 = v595["dashTexture"]; - if (v717 && v717._reglType === "framebuffer") { - v717 = v717.color[0]; + } + v545 = g174.location; + v546 = v10[v545]; + if (v533 === 1) { + if (!v546.buffer) { + v1.enableVertexAttribArray(v545); } - v718 = v717._texture; - v1.uniform1i(g227.location, v718.bind()); - v719 = v595["depth"]; - if (!v594 || v720 !== v719) { - v720 = v719; - v1.uniform1f(g230.location, v719); + v547 = v539 || 1; + if (v546.type !== v541 || v546.size !== v547 || v546.buffer !== v538 || v546.normalized !== v540 || v546.offset !== v542 || v546.stride !== v543) { + v1.bindBuffer(34962, v538.buffer); + v1.vertexAttribPointer(v545, v547, v541, v540, v543, v542); + v546.type = v541; + v546.size = v547; + v546.buffer = v538; + v546.normalized = v540; + v546.offset = v542; + v546.stride = v543; } - v721 = v595["miterLimit"]; - if (!v594 || v722 !== v721) { - v722 = v721; - v1.uniform1f(g232.location, v721); + if (v546.divisor !== v544) { + v477.vertexAttribDivisorANGLE(v545, v544); + v546.divisor = v544; } - v723 = g235.call(this, v2, v595, v594); - if (!v594 || v724 !== v723) { - v724 = v723; - v1.uniform1f(g234.location, v723); + } else { + if (v546.buffer) { + v1.disableVertexAttribArray(v545); + v546.buffer = null; } - v725 = v595["opacity"]; - if (!v594 || v726 !== v725) { - v726 = v725; - v1.uniform1f(g237.location, v725); + if (v546.x !== v534 || v546.y !== v535 || v546.z !== v536 || v546.w !== v537) { + v1.vertexAttrib4f(v545, v534, v535, v536, v537); + v546.x = v534; + v546.y = v535; + v546.z = v536; + v546.w = v537; } - v727 = v595["scale"]; - v728 = v727[0]; - v730 = v727[1]; - if (!v594 || v729 !== v728 || v731 !== v730) { - v729 = v728; - v731 = v730; - v1.uniform2f(g239.location, v728, v730); + } + v548 = this["scale"]; + v549 = v548[0]; + v550 = v548[1]; + v1.uniform2f(g214.location, v549, v550); + v551 = this["translate"]; + v552 = v551[0]; + v553 = v551[1]; + v1.uniform2f(g218.location, v552, v553); + v554 = this["viewportArray"]; + v555 = v554[0]; + v556 = v554[1]; + v557 = v554[2]; + v558 = v554[3]; + v1.uniform4f(g222.location, v555, v556, v557, v558); + v595 = v6.elements; + if (v595) { + v1.bindBuffer(34963, v595.buffer.buffer); + } else if (v11.currentVAO) { + v595 = v7.getElements(v11.currentVAO.elements); + if (v595) v1.bindBuffer(34963, v595.buffer.buffer); + } + v598 = v6.instances; + for (v478 = 0; v478 < a1; ++v478) { + v479 = a0[v478]; + var v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v571, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v596, v597; + v559 = v479["align"]; + if (!v478 || v560 !== v559) { + v560 = v559; + v1.uniform1f(g178.location, v559); } - v732 = v595["thickness"]; - if (!v594 || v733 !== v732) { - v733 = v732; - v1.uniform1f(g243.location, v732); + v561 = g181.call(this, v2, v479, v478); + if (v561 && v561._reglType === "framebuffer") { + v561 = v561.color[0]; } - v734 = v595["translate"]; - v735 = v734[0]; - v737 = v734[1]; - if (!v594 || v736 !== v735 || v738 !== v737) { - v736 = v735; - v738 = v737; - v1.uniform2f(g245.location, v735, v737); + v562 = v561._texture; + v1.uniform1i(g180.location, v562.bind()); + v563 = g185.call(this, v2, v479, v478); + v564 = v563[0]; + v566 = v563[1]; + if (!v478 || v565 !== v564 || v567 !== v566) { + v565 = v564; + v567 = v566; + v1.uniform2f(g184.location, v564, v566); } - v739 = g250.call(this, v2, v595, v594); - v740 = v739[0]; - v742 = v739[1]; - v744 = v739[2]; - v746 = v739[3]; - if (!v594 || v741 !== v740 || v743 !== v742 || v745 !== v744 || v747 !== v746) { - v741 = v740; - v743 = v742; - v745 = v744; - v747 = v746; - v1.uniform4f(g249.location, v740, v742, v744, v746); + v568 = g190.call(this, v2, v479, v478); + v569 = v568[0]; + v571 = v568[1]; + if (!v478 || v570 !== v569 || v572 !== v571) { + v570 = v569; + v572 = v571; + v1.uniform2f(g189.location, v569, v571); } - v749 = v595["count"]; - if (v749 > 0) { - if (v748) { - v593.drawElementsInstancedANGLE(5, 4, v748.type, 0 << (v748.type - 5121 >> 1), v749); - } else { - v593.drawArraysInstancedANGLE(5, 0, 4, v749); - } - } else if (v749 < 0) { - if (v748) { - v1.drawElements(5, 4, v748.type, 0 << (v748.type - 5121 >> 1)); - } else { - v1.drawArrays(5, 0, 4); - } + v573 = v479["baseline"]; + if (!v478 || v574 !== v573) { + v574 = v573; + v1.uniform1f(g194.location, v573); } - v2.viewportWidth = v601; - v2.viewportHeight = v602; - if (v614) { - v8.destroyStream(v620); + v575 = g197.call(this, v2, v479, v478); + if (!v478 || v576 !== v575) { + v576 = v575; + v1.uniform1f(g196.location, v575); } - if (v631) { - v8.destroyStream(v637); + v577 = v479["color"]; + v578 = v577[0]; + v580 = v577[1]; + v582 = v577[2]; + v584 = v577[3]; + if (!v478 || v579 !== v578 || v581 !== v580 || v583 !== v582 || v585 !== v584) { + v579 = v578; + v581 = v580; + v583 = v582; + v585 = v584; + v1.uniform4f(g199.location, v578, v580, v582, v584); } - if (v648) { - v8.destroyStream(v654); + v586 = g206.call(this, v2, v479, v478); + if (!v478 || v587 !== v586) { + v587 = v586; + v1.uniform1f(g205.location, v586); } - if (v665) { - v8.destroyStream(v671); + v588 = v479["opacity"]; + if (!v478 || v589 !== v588) { + v589 = v588; + v1.uniform1f(g208.location, v588); } - if (v682) { - v8.destroyStream(v688); + v590 = v479["positionOffset"]; + v591 = v590[0]; + v593 = v590[1]; + if (!v478 || v592 !== v591 || v594 !== v593) { + v592 = v591; + v594 = v593; + v1.uniform2f(g210.location, v591, v593); } - if (v699) { - v8.destroyStream(v705); + v596 = v479["offset"]; + v597 = v479["count"]; + if (v597) { + if (v598 > 0) { + if (v595) { + v477.drawElementsInstancedANGLE(0, v597, v595.type, v596 << (v595.type - 5121 >> 1), v598); + } else { + v477.drawArraysInstancedANGLE(0, v596, v597, v598); + } + } else if (v598 < 0) { + if (v595) { + v1.drawElements(0, v597, v595.type, v596 << (v595.type - 5121 >> 1)); + } else { + v1.drawArrays(0, v596, v597); + } + } + v562.unbind(); } - v718.unbind(); + } + if (v481) { + v8.destroyStream(v487); + } + if (v498) { + v8.destroyStream(v504); + } + if (v515) { + v8.destroyStream(v521); + } + if (v532) { + v8.destroyStream(v538); } v5.dirty = true; v11.setVAO(null); - if (v591) { - g48.cpuTime += performance.now() - v592; + v2.viewportWidth = v470; + v2.viewportHeight = v471; + if (v475) { + g48.cpuTime += performance.now() - v476; } } }; @@ -175597,12 +174894,12 @@ void main() { } }); - // src/generated/regl-codegen/49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210 - var require_e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210 = __commonJS({ - "src/generated/regl-codegen/49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210"(exports, module) { - module.exports = function anonymous(g0, g48, g92, g93, g99, g100, g103, g119, g137, g141, g147, g149, g151, g155, g159, g163, g167, g184, g186, g188, g190, g192, g194, g196, g198, g200, g202, g204, g206, g217, g219, g227, g231, g234, g237, g240, g243, g246, g249, g252, g255, g257, g259, g275, g302, g315, g317, g353, g354, g355, g356) { + // src/generated/regl-codegen/8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623 + var require_fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623 = __commonJS({ + "src/generated/regl-codegen/8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623"(exports, module) { + module.exports = function anonymous(g0, g48, g113, g180) { "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v110, v177; v1 = g0.gl; v2 = g0.context; v3 = g0.strings; @@ -175723,1649 +175020,906 @@ void main() { "cw": 2304, "ccw": 2305 }; - v49 = {}; - v49.stride = 8; - v49.offset = 8; - v50 = {}; - v50.stride = 8; - v50.offset = 8; + v110 = {}; + v177 = {}; return { "draw": function(a0) { - var v51, v52, v85, v86, v87, v88, v89, v90, v91, v94, v95, v96, v97, v98, v101, v102, v104, v105, v106, v107, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v120, v121, v122, v123, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v138, v139, v140, v142, v143, v144, v145, v146, v148, v150, v152, v153, v154, v156, v157, v158, v160, v161, v162, v164, v165, v166, v168, v169, v170, v171, v172; - v51 = v14.angle_instanced_arrays; - v52 = v13.next; - if (v52 !== v13.cur) { - if (v52) { - v1.bindFramebuffer(36160, v52.framebuffer); + var v49, v50, v105, v106, v107, v108, v109, v111, v112; + v49 = v14.angle_instanced_arrays; + v50 = v13.next; + if (v50 !== v13.cur) { + if (v50) { + v1.bindFramebuffer(36160, v50.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v52; + v13.cur = v50; } if (v5.dirty) { - var v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84; - v53 = v4.dither; - if (v53 !== v5.dither) { - if (v53) { + var v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97, v98, v99, v100, v101, v102, v103, v104; + v51 = v4.dither; + if (v51 !== v5.dither) { + if (v51) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v53; + v5.dither = v51; } - v54 = v4.depth_func; - if (v54 !== v5.depth_func) { - v1.depthFunc(v54); - v5.depth_func = v54; + v52 = v4.blend_enable; + if (v52 !== v5.blend_enable) { + if (v52) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v52; } - v55 = v23[0]; - v56 = v23[1]; - if (v55 !== v24[0] || v56 !== v24[1]) { - v1.depthRange(v55, v56); - v24[0] = v55; - v24[1] = v56; + v53 = v17[0]; + v54 = v17[1]; + v55 = v17[2]; + v56 = v17[3]; + if (v53 !== v18[0] || v54 !== v18[1] || v55 !== v18[2] || v56 !== v18[3]) { + v1.blendColor(v53, v54, v55, v56); + v18[0] = v53; + v18[1] = v54; + v18[2] = v55; + v18[3] = v56; } - v57 = v4.depth_mask; - if (v57 !== v5.depth_mask) { - v1.depthMask(v57); - v5.depth_mask = v57; + v57 = v19[0]; + v58 = v19[1]; + if (v57 !== v20[0] || v58 !== v20[1]) { + v1.blendEquationSeparate(v57, v58); + v20[0] = v57; + v20[1] = v58; } - v58 = v25[0]; - v59 = v25[1]; - v60 = v25[2]; - v61 = v25[3]; - if (v58 !== v26[0] || v59 !== v26[1] || v60 !== v26[2] || v61 !== v26[3]) { - v1.colorMask(v58, v59, v60, v61); - v26[0] = v58; - v26[1] = v59; - v26[2] = v60; - v26[3] = v61; + v59 = v21[0]; + v60 = v21[1]; + v61 = v21[2]; + v62 = v21[3]; + if (v59 !== v22[0] || v60 !== v22[1] || v61 !== v22[2] || v62 !== v22[3]) { + v1.blendFuncSeparate(v59, v60, v61, v62); + v22[0] = v59; + v22[1] = v60; + v22[2] = v61; + v22[3] = v62; } - v62 = v4.cull_enable; - if (v62 !== v5.cull_enable) { - if (v62) { + v63 = v4.depth_enable; + if (v63 !== v5.depth_enable) { + if (v63) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v63; + } + v64 = v4.depth_func; + if (v64 !== v5.depth_func) { + v1.depthFunc(v64); + v5.depth_func = v64; + } + v65 = v23[0]; + v66 = v23[1]; + if (v65 !== v24[0] || v66 !== v24[1]) { + v1.depthRange(v65, v66); + v24[0] = v65; + v24[1] = v66; + } + v67 = v4.depth_mask; + if (v67 !== v5.depth_mask) { + v1.depthMask(v67); + v5.depth_mask = v67; + } + v68 = v25[0]; + v69 = v25[1]; + v70 = v25[2]; + v71 = v25[3]; + if (v68 !== v26[0] || v69 !== v26[1] || v70 !== v26[2] || v71 !== v26[3]) { + v1.colorMask(v68, v69, v70, v71); + v26[0] = v68; + v26[1] = v69; + v26[2] = v70; + v26[3] = v71; + } + v72 = v4.cull_enable; + if (v72 !== v5.cull_enable) { + if (v72) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v62; + v5.cull_enable = v72; } - v63 = v4.cull_face; - if (v63 !== v5.cull_face) { - v1.cullFace(v63); - v5.cull_face = v63; + v73 = v4.cull_face; + if (v73 !== v5.cull_face) { + v1.cullFace(v73); + v5.cull_face = v73; } - v64 = v4.frontFace; - if (v64 !== v5.frontFace) { - v1.frontFace(v64); - v5.frontFace = v64; + v74 = v4.frontFace; + if (v74 !== v5.frontFace) { + v1.frontFace(v74); + v5.frontFace = v74; } - v65 = v4.lineWidth; - if (v65 !== v5.lineWidth) { - v1.lineWidth(v65); - v5.lineWidth = v65; + v75 = v4.lineWidth; + if (v75 !== v5.lineWidth) { + v1.lineWidth(v75); + v5.lineWidth = v75; } - v66 = v4.polygonOffset_enable; - if (v66 !== v5.polygonOffset_enable) { - if (v66) { + v76 = v4.polygonOffset_enable; + if (v76 !== v5.polygonOffset_enable) { + if (v76) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v66; + v5.polygonOffset_enable = v76; } - v67 = v27[0]; - v68 = v27[1]; - if (v67 !== v28[0] || v68 !== v28[1]) { - v1.polygonOffset(v67, v68); - v28[0] = v67; - v28[1] = v68; + v77 = v27[0]; + v78 = v27[1]; + if (v77 !== v28[0] || v78 !== v28[1]) { + v1.polygonOffset(v77, v78); + v28[0] = v77; + v28[1] = v78; } - v69 = v4.sample_alpha; - if (v69 !== v5.sample_alpha) { - if (v69) { + v79 = v4.sample_alpha; + if (v79 !== v5.sample_alpha) { + if (v79) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v69; + v5.sample_alpha = v79; } - v70 = v4.sample_enable; - if (v70 !== v5.sample_enable) { - if (v70) { + v80 = v4.sample_enable; + if (v80 !== v5.sample_enable) { + if (v80) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v70; + v5.sample_enable = v80; } - v71 = v29[0]; - v72 = v29[1]; - if (v71 !== v30[0] || v72 !== v30[1]) { - v1.sampleCoverage(v71, v72); - v30[0] = v71; - v30[1] = v72; + v81 = v29[0]; + v82 = v29[1]; + if (v81 !== v30[0] || v82 !== v30[1]) { + v1.sampleCoverage(v81, v82); + v30[0] = v81; + v30[1] = v82; } - v73 = v4.stencil_mask; - if (v73 !== v5.stencil_mask) { - v1.stencilMask(v73); - v5.stencil_mask = v73; + v83 = v4.stencil_enable; + if (v83 !== v5.stencil_enable) { + if (v83) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v83; } - v74 = v31[0]; - v75 = v31[1]; - v76 = v31[2]; - if (v74 !== v32[0] || v75 !== v32[1] || v76 !== v32[2]) { - v1.stencilFunc(v74, v75, v76); - v32[0] = v74; - v32[1] = v75; - v32[2] = v76; + v84 = v4.stencil_mask; + if (v84 !== v5.stencil_mask) { + v1.stencilMask(v84); + v5.stencil_mask = v84; } - v77 = v33[0]; - v78 = v33[1]; - v79 = v33[2]; - v80 = v33[3]; - if (v77 !== v34[0] || v78 !== v34[1] || v79 !== v34[2] || v80 !== v34[3]) { - v1.stencilOpSeparate(v77, v78, v79, v80); - v34[0] = v77; - v34[1] = v78; - v34[2] = v79; - v34[3] = v80; + v85 = v31[0]; + v86 = v31[1]; + v87 = v31[2]; + if (v85 !== v32[0] || v86 !== v32[1] || v87 !== v32[2]) { + v1.stencilFunc(v85, v86, v87); + v32[0] = v85; + v32[1] = v86; + v32[2] = v87; } - v81 = v35[0]; - v82 = v35[1]; - v83 = v35[2]; - v84 = v35[3]; - if (v81 !== v36[0] || v82 !== v36[1] || v83 !== v36[2] || v84 !== v36[3]) { - v1.stencilOpSeparate(v81, v82, v83, v84); - v36[0] = v81; - v36[1] = v82; - v36[2] = v83; - v36[3] = v84; + v88 = v33[0]; + v89 = v33[1]; + v90 = v33[2]; + v91 = v33[3]; + if (v88 !== v34[0] || v89 !== v34[1] || v90 !== v34[2] || v91 !== v34[3]) { + v1.stencilOpSeparate(v88, v89, v90, v91); + v34[0] = v88; + v34[1] = v89; + v34[2] = v90; + v34[3] = v91; } + v92 = v35[0]; + v93 = v35[1]; + v94 = v35[2]; + v95 = v35[3]; + if (v92 !== v36[0] || v93 !== v36[1] || v94 !== v36[2] || v95 !== v36[3]) { + v1.stencilOpSeparate(v92, v93, v94, v95); + v36[0] = v92; + v36[1] = v93; + v36[2] = v94; + v36[3] = v95; + } + v96 = v4.scissor_enable; + if (v96 !== v5.scissor_enable) { + if (v96) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v96; + } + v97 = v37[0]; + v98 = v37[1]; + v99 = v37[2]; + v100 = v37[3]; + if (v97 !== v38[0] || v98 !== v38[1] || v99 !== v38[2] || v100 !== v38[3]) { + v1.scissor(v97, v98, v99, v100); + v38[0] = v97; + v38[1] = v98; + v38[2] = v99; + v38[3] = v100; + } + v101 = v39[0]; + v102 = v39[1]; + v103 = v39[2]; + v104 = v39[3]; + if (v101 !== v40[0] || v102 !== v40[1] || v103 !== v40[2] || v104 !== v40[3]) { + v1.viewport(v101, v102, v103, v104); + v40[0] = v101; + v40[1] = v102; + v40[2] = v103; + v40[3] = v104; + } + v5.dirty = false; } - v85 = a0["viewport"]; - v86 = v85.x | 0; - v87 = v85.y | 0; - v88 = "width" in v85 ? v85.width | 0 : v2.framebufferWidth - v86; - v89 = "height" in v85 ? v85.height | 0 : v2.framebufferHeight - v87; - v90 = v2.viewportWidth; - v2.viewportWidth = v88; - v91 = v2.viewportHeight; - v2.viewportHeight = v89; - v1.viewport(v86, v87, v88, v89); - v40[0] = v86; - v40[1] = v87; - v40[2] = v88; - v40[3] = v89; - v1.blendColor(0, 0, 0, 0); - v18[0] = 0; - v18[1] = 0; - v18[2] = 0; - v18[3] = 0; - if (g92) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = g92; - v1.blendEquationSeparate(32774, 32774); - v20[0] = 32774; - v20[1] = 32774; - v1.blendFuncSeparate(770, 771, 773, 1); - v22[0] = 770; - v22[1] = 771; - v22[2] = 773; - v22[3] = 1; - if (g93) { - v1.enable(2929); - } else { - v1.disable(2929); + v105 = v5.profile; + if (v105) { + v106 = performance.now(); + g48.count++; } - v5.depth_enable = g93; - v94 = a0["viewport"]; - v95 = v94.x | 0; - v96 = v94.y | 0; - v97 = "width" in v94 ? v94.width | 0 : v2.framebufferWidth - v95; - v98 = "height" in v94 ? v94.height | 0 : v2.framebufferHeight - v96; - v1.scissor(v95, v96, v97, v98); - v38[0] = v95; - v38[1] = v96; - v38[2] = v97; - v38[3] = v98; - if (g99) { - v1.enable(3089); + v107 = v9.frag; + v108 = v9.vert; + v109 = v9.program(v108, v107); + v1.useProgram(v109.program); + v11.setVAO(null); + v111 = v109.id; + v112 = v110[v111]; + if (v112) { + v112.call(this, a0); } else { - v1.disable(3089); + v112 = v110[v111] = g113(v109); + v112.call(this, a0); } - v5.scissor_enable = g99; - if (g100) { - v1.enable(2960); - } else { - v1.disable(2960); + v11.setVAO(null); + if (v105) { + g48.cpuTime += performance.now() - v106; } - v5.stencil_enable = g100; - v101 = v5.profile; - if (v101) { - v102 = performance.now(); + }, + "scope": function(a0, a1, a2) { + var v114, v115; + v114 = v5.profile; + if (v114) { + v115 = performance.now(); g48.count++; } - v1.useProgram(g103.program); - v104 = v14.angle_instanced_arrays; - v11.setVAO(null); - v105 = a0["positionBuffer"]; - v49.buffer = v105; - v106 = false; - v107 = 1; - v108 = 0; - v109 = 0; - v110 = 0; - v111 = 0; - v112 = null; - v113 = 0; - v114 = false; - v115 = 5126; - v116 = 0; - v117 = 0; - v118 = 0; - if (v16(v49)) { - v106 = true; - v112 = v8.createStream(34962, v49); - v115 = v112.dtype; - } else { - v112 = v8.getBuffer(v49); - if (v112) { - v115 = v112.dtype; - } else if ("constant" in v49) { - v107 = 2; - if (typeof v49.constant === "number") { - v108 = v49.constant; - v109 = v110 = v111 = 0; - } else { - v108 = v49.constant.length > 0 ? v49.constant[0] : 0; - v109 = v49.constant.length > 1 ? v49.constant[1] : 0; - v110 = v49.constant.length > 2 ? v49.constant[2] : 0; - v111 = v49.constant.length > 3 ? v49.constant[3] : 0; - } + a1(v2, a0, a2); + if (v114) { + g48.cpuTime += performance.now() - v115; + } + }, + "batch": function(a0, a1) { + var v116, v117, v172, v173, v174, v175, v176, v178, v179; + v116 = v14.angle_instanced_arrays; + v117 = v13.next; + if (v117 !== v13.cur) { + if (v117) { + v1.bindFramebuffer(36160, v117.framebuffer); } else { - if (v16(v49.buffer)) { - v112 = v8.createStream(34962, v49.buffer); - } else { - v112 = v8.getBuffer(v49.buffer); - } - v115 = "type" in v49 ? v46[v49.type] : v112.dtype; - v114 = !!v49.normalized; - v113 = v49.size | 0; - v116 = v49.offset | 0; - v117 = v49.stride | 0; - v118 = v49.divisor | 0; + v1.bindFramebuffer(36160, null); } + v13.cur = v117; } - v120 = g119.location; - v121 = v10[v120]; - if (v107 === 1) { - if (!v121.buffer) { - v1.enableVertexAttribArray(v120); + if (v5.dirty) { + var v118, v119, v120, v121, v122, v123, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v139, v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171; + v118 = v4.dither; + if (v118 !== v5.dither) { + if (v118) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v118; } - v122 = v113 || 2; - if (v121.type !== v115 || v121.size !== v122 || v121.buffer !== v112 || v121.normalized !== v114 || v121.offset !== v116 || v121.stride !== v117) { - v1.bindBuffer(34962, v112.buffer); - v1.vertexAttribPointer(v120, v122, v115, v114, v117, v116); - v121.type = v115; - v121.size = v122; - v121.buffer = v112; - v121.normalized = v114; - v121.offset = v116; - v121.stride = v117; + v119 = v4.blend_enable; + if (v119 !== v5.blend_enable) { + if (v119) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v119; } - if (v121.divisor !== v118) { - v104.vertexAttribDivisorANGLE(v120, v118); - v121.divisor = v118; + v120 = v17[0]; + v121 = v17[1]; + v122 = v17[2]; + v123 = v17[3]; + if (v120 !== v18[0] || v121 !== v18[1] || v122 !== v18[2] || v123 !== v18[3]) { + v1.blendColor(v120, v121, v122, v123); + v18[0] = v120; + v18[1] = v121; + v18[2] = v122; + v18[3] = v123; } - } else { - if (v121.buffer) { - v1.disableVertexAttribArray(v120); - v121.buffer = null; + v124 = v19[0]; + v125 = v19[1]; + if (v124 !== v20[0] || v125 !== v20[1]) { + v1.blendEquationSeparate(v124, v125); + v20[0] = v124; + v20[1] = v125; } - if (v121.x !== v108 || v121.y !== v109 || v121.z !== v110 || v121.w !== v111) { - v1.vertexAttrib4f(v120, v108, v109, v110, v111); - v121.x = v108; - v121.y = v109; - v121.z = v110; - v121.w = v111; + v126 = v21[0]; + v127 = v21[1]; + v128 = v21[2]; + v129 = v21[3]; + if (v126 !== v22[0] || v127 !== v22[1] || v128 !== v22[2] || v129 !== v22[3]) { + v1.blendFuncSeparate(v126, v127, v128, v129); + v22[0] = v126; + v22[1] = v127; + v22[2] = v128; + v22[3] = v129; } - } - v123 = a0["positionFractBuffer"]; - v50.buffer = v123; - v124 = false; - v125 = 1; - v126 = 0; - v127 = 0; - v128 = 0; - v129 = 0; - v130 = null; - v131 = 0; - v132 = false; - v133 = 5126; - v134 = 0; - v135 = 0; - v136 = 0; - if (v16(v50)) { - v124 = true; - v130 = v8.createStream(34962, v50); - v133 = v130.dtype; - } else { - v130 = v8.getBuffer(v50); - if (v130) { - v133 = v130.dtype; - } else if ("constant" in v50) { - v125 = 2; - if (typeof v50.constant === "number") { - v126 = v50.constant; - v127 = v128 = v129 = 0; - } else { - v126 = v50.constant.length > 0 ? v50.constant[0] : 0; - v127 = v50.constant.length > 1 ? v50.constant[1] : 0; - v128 = v50.constant.length > 2 ? v50.constant[2] : 0; - v129 = v50.constant.length > 3 ? v50.constant[3] : 0; - } - } else { - if (v16(v50.buffer)) { - v130 = v8.createStream(34962, v50.buffer); + v130 = v4.depth_enable; + if (v130 !== v5.depth_enable) { + if (v130) { + v1.enable(2929); } else { - v130 = v8.getBuffer(v50.buffer); + v1.disable(2929); } - v133 = "type" in v50 ? v46[v50.type] : v130.dtype; - v132 = !!v50.normalized; - v131 = v50.size | 0; - v134 = v50.offset | 0; - v135 = v50.stride | 0; - v136 = v50.divisor | 0; + v5.depth_enable = v130; } - } - v138 = g137.location; - v139 = v10[v138]; - if (v125 === 1) { - if (!v139.buffer) { - v1.enableVertexAttribArray(v138); - } - v140 = v131 || 2; - if (v139.type !== v133 || v139.size !== v140 || v139.buffer !== v130 || v139.normalized !== v132 || v139.offset !== v134 || v139.stride !== v135) { - v1.bindBuffer(34962, v130.buffer); - v1.vertexAttribPointer(v138, v140, v133, v132, v135, v134); - v139.type = v133; - v139.size = v140; - v139.buffer = v130; - v139.normalized = v132; - v139.offset = v134; - v139.stride = v135; + v131 = v4.depth_func; + if (v131 !== v5.depth_func) { + v1.depthFunc(v131); + v5.depth_func = v131; } - if (v139.divisor !== v136) { - v104.vertexAttribDivisorANGLE(v138, v136); - v139.divisor = v136; + v132 = v23[0]; + v133 = v23[1]; + if (v132 !== v24[0] || v133 !== v24[1]) { + v1.depthRange(v132, v133); + v24[0] = v132; + v24[1] = v133; } - } else { - if (v139.buffer) { - v1.disableVertexAttribArray(v138); - v139.buffer = null; + v134 = v4.depth_mask; + if (v134 !== v5.depth_mask) { + v1.depthMask(v134); + v5.depth_mask = v134; } - if (v139.x !== v126 || v139.y !== v127 || v139.z !== v128 || v139.w !== v129) { - v1.vertexAttrib4f(v138, v126, v127, v128, v129); - v139.x = v126; - v139.y = v127; - v139.z = v128; - v139.w = v129; + v135 = v25[0]; + v136 = v25[1]; + v137 = v25[2]; + v138 = v25[3]; + if (v135 !== v26[0] || v136 !== v26[1] || v137 !== v26[2] || v138 !== v26[3]) { + v1.colorMask(v135, v136, v137, v138); + v26[0] = v135; + v26[1] = v136; + v26[2] = v137; + v26[3] = v138; } - } - v142 = a0["fill"]; - v143 = v142[0]; - v144 = v142[1]; - v145 = v142[2]; - v146 = v142[3]; - v1.uniform4f(g141.location, v143, v144, v145, v146); - v148 = a0["id"]; - v1.uniform1f(g147.location, v148); - v150 = a0["opacity"]; - v1.uniform1f(g149.location, v150); - v152 = a0["scale"]; - v153 = v152[0]; - v154 = v152[1]; - v1.uniform2f(g151.location, v153, v154); - v156 = a0["scaleFract"]; - v157 = v156[0]; - v158 = v156[1]; - v1.uniform2f(g155.location, v157, v158); - v160 = a0["translate"]; - v161 = v160[0]; - v162 = v160[1]; - v1.uniform2f(g159.location, v161, v162); - v164 = a0["translateFract"]; - v165 = v164[0]; - v166 = v164[1]; - v1.uniform2f(g163.location, v165, v166); - v168 = g167.call(this, v2, a0, 0); - v169 = null; - v170 = v16(v168); - if (v170) { - v169 = v7.createStream(v168); - } else { - v169 = v7.getElements(v168); - } - if (v169) v1.bindBuffer(34963, v169.buffer.buffer); - v171 = v169 ? v169.vertCount : -1; - if (v171) { - v172 = v6.instances; - if (v172 > 0) { - if (v169) { - v104.drawElementsInstancedANGLE(4, v171, v169.type, 0 << (v169.type - 5121 >> 1), v172); - } else { - v104.drawArraysInstancedANGLE(4, 0, v171, v172); - } - } else if (v172 < 0) { - if (v169) { - v1.drawElements(4, v171, v169.type, 0 << (v169.type - 5121 >> 1)); + v139 = v4.cull_enable; + if (v139 !== v5.cull_enable) { + if (v139) { + v1.enable(2884); } else { - v1.drawArrays(4, 0, v171); + v1.disable(2884); } + v5.cull_enable = v139; } - v5.dirty = true; - v11.setVAO(null); - v2.viewportWidth = v90; - v2.viewportHeight = v91; - if (v101) { - g48.cpuTime += performance.now() - v102; + v140 = v4.cull_face; + if (v140 !== v5.cull_face) { + v1.cullFace(v140); + v5.cull_face = v140; } - if (v106) { - v8.destroyStream(v112); + v141 = v4.frontFace; + if (v141 !== v5.frontFace) { + v1.frontFace(v141); + v5.frontFace = v141; } - if (v124) { - v8.destroyStream(v130); + v142 = v4.lineWidth; + if (v142 !== v5.lineWidth) { + v1.lineWidth(v142); + v5.lineWidth = v142; } - if (v170) { - v7.destroyStream(v169); + v143 = v4.polygonOffset_enable; + if (v143 !== v5.polygonOffset_enable) { + if (v143) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v143; } - } - }, - "scope": function(a0, a1, a2) { - var v173, v174, v175, v176, v177, v178, v179, v180, v181, v182, v183, v185, v187, v189, v191, v193, v195, v197, v199, v201, v203, v205, v207, v208, v209, v210, v211, v212, v213, v214, v215, v216, v218, v220, v221, v222, v223, v224, v225, v226, v228, v229, v230, v232, v233, v235, v236, v238, v239, v241, v242, v244, v245, v247, v248, v250, v251, v253, v254, v256, v258, v260, v261, v262, v263, v264, v265, v266, v267, v268, v269, v270, v271, v272, v273, v274, v276, v277, v278, v279, v280, v281, v282, v283, v284, v285, v286, v287, v288, v289, v290, v291, v292, v293, v294, v295, v296, v297, v298, v299, v300, v301, v303, v304, v305, v306, v307, v308, v309, v310, v311, v312, v313, v314, v316, v318; - v173 = a0["viewport"]; - v174 = v173.x | 0; - v175 = v173.y | 0; - v176 = "width" in v173 ? v173.width | 0 : v2.framebufferWidth - v174; - v177 = "height" in v173 ? v173.height | 0 : v2.framebufferHeight - v175; - v178 = v2.viewportWidth; - v2.viewportWidth = v176; - v179 = v2.viewportHeight; - v2.viewportHeight = v177; - v180 = v39[0]; - v39[0] = v174; - v181 = v39[1]; - v39[1] = v175; - v182 = v39[2]; - v39[2] = v176; - v183 = v39[3]; - v39[3] = v177; - v185 = v17[0]; - v17[0] = g184; - v187 = v17[1]; - v17[1] = g186; - v189 = v17[2]; - v17[2] = g188; - v191 = v17[3]; - v17[3] = g190; - v193 = v4.blend_enable; - v4.blend_enable = g192; - v195 = v19[0]; - v19[0] = g194; - v197 = v19[1]; - v19[1] = g196; - v199 = v21[0]; - v21[0] = g198; - v201 = v21[1]; - v21[1] = g200; - v203 = v21[2]; - v21[2] = g202; - v205 = v21[3]; - v21[3] = g204; - v207 = v4.depth_enable; - v4.depth_enable = g206; - v208 = a0["viewport"]; - v209 = v208.x | 0; - v210 = v208.y | 0; - v211 = "width" in v208 ? v208.width | 0 : v2.framebufferWidth - v209; - v212 = "height" in v208 ? v208.height | 0 : v2.framebufferHeight - v210; - v213 = v37[0]; - v37[0] = v209; - v214 = v37[1]; - v37[1] = v210; - v215 = v37[2]; - v37[2] = v211; - v216 = v37[3]; - v37[3] = v212; - v218 = v4.scissor_enable; - v4.scissor_enable = g217; - v220 = v4.stencil_enable; - v4.stencil_enable = g219; - v221 = v5.profile; - if (v221) { - v222 = performance.now(); - g48.count++; - } - v223 = g167.call(this, v2, a0, a2); - v224 = null; - v225 = v16(v223); - if (v225) { - v224 = v7.createStream(v223); - } else { - v224 = v7.getElements(v223); - } - v226 = v6.elements; - v6.elements = v224; - v228 = v6.offset; - v6.offset = g227; - v229 = v224 ? v224.vertCount : -1; - v230 = v6.count; - v6.count = v229; - v232 = v6.primitive; - v6.primitive = g231; - v233 = a0["scale"]; - v235 = v12[g234]; - v12[g234] = v233; - v236 = a0["fill"]; - v238 = v12[g237]; - v12[g237] = v236; - v239 = a0["scaleFract"]; - v241 = v12[g240]; - v12[g240] = v239; - v242 = a0["translateFract"]; - v244 = v12[g243]; - v12[g243] = v242; - v245 = a0["translate"]; - v247 = v12[g246]; - v12[g246] = v245; - v248 = a0["opacity"]; - v250 = v12[g249]; - v12[g249] = v248; - v251 = v2["pixelRatio"]; - v253 = v12[g252]; - v12[g252] = v251; - v254 = a0["id"]; - v256 = v12[g255]; - v12[g255] = v254; - v258 = g257.call(this, v2, a0, a2); - v260 = v12[g259]; - v12[g259] = v258; - v261 = a0["positionBuffer"]; - v49.buffer = v261; - v262 = false; - v263 = 1; - v264 = 0; - v265 = 0; - v266 = 0; - v267 = 0; - v268 = null; - v269 = 0; - v270 = false; - v271 = 5126; - v272 = 0; - v273 = 0; - v274 = 0; - if (v16(v49)) { - v262 = true; - v268 = v8.createStream(34962, v49); - v271 = v268.dtype; - } else { - v268 = v8.getBuffer(v49); - if (v268) { - v271 = v268.dtype; - } else if ("constant" in v49) { - v263 = 2; - if (typeof v49.constant === "number") { - v264 = v49.constant; - v265 = v266 = v267 = 0; + v144 = v27[0]; + v145 = v27[1]; + if (v144 !== v28[0] || v145 !== v28[1]) { + v1.polygonOffset(v144, v145); + v28[0] = v144; + v28[1] = v145; + } + v146 = v4.sample_alpha; + if (v146 !== v5.sample_alpha) { + if (v146) { + v1.enable(32926); } else { - v264 = v49.constant.length > 0 ? v49.constant[0] : 0; - v265 = v49.constant.length > 1 ? v49.constant[1] : 0; - v266 = v49.constant.length > 2 ? v49.constant[2] : 0; - v267 = v49.constant.length > 3 ? v49.constant[3] : 0; + v1.disable(32926); } - } else { - if (v16(v49.buffer)) { - v268 = v8.createStream(34962, v49.buffer); + v5.sample_alpha = v146; + } + v147 = v4.sample_enable; + if (v147 !== v5.sample_enable) { + if (v147) { + v1.enable(32928); } else { - v268 = v8.getBuffer(v49.buffer); + v1.disable(32928); } - v271 = "type" in v49 ? v46[v49.type] : v268.dtype; - v270 = !!v49.normalized; - v269 = v49.size | 0; - v272 = v49.offset | 0; - v273 = v49.stride | 0; - v274 = v49.divisor | 0; + v5.sample_enable = v147; } - } - v276 = g275.state; - g275.state = v263; - v277 = g275.x; - g275.x = v264; - v278 = g275.y; - g275.y = v265; - v279 = g275.z; - g275.z = v266; - v280 = g275.w; - g275.w = v267; - v281 = g275.buffer; - g275.buffer = v268; - v282 = g275.size; - g275.size = v269; - v283 = g275.normalized; - g275.normalized = v270; - v284 = g275.type; - g275.type = v271; - v285 = g275.offset; - g275.offset = v272; - v286 = g275.stride; - g275.stride = v273; - v287 = g275.divisor; - g275.divisor = v274; - v288 = a0["positionFractBuffer"]; - v50.buffer = v288; - v289 = false; - v290 = 1; - v291 = 0; - v292 = 0; - v293 = 0; - v294 = 0; - v295 = null; - v296 = 0; - v297 = false; - v298 = 5126; - v299 = 0; - v300 = 0; - v301 = 0; - if (v16(v50)) { - v289 = true; - v295 = v8.createStream(34962, v50); - v298 = v295.dtype; - } else { - v295 = v8.getBuffer(v50); - if (v295) { - v298 = v295.dtype; - } else if ("constant" in v50) { - v290 = 2; - if (typeof v50.constant === "number") { - v291 = v50.constant; - v292 = v293 = v294 = 0; + v148 = v29[0]; + v149 = v29[1]; + if (v148 !== v30[0] || v149 !== v30[1]) { + v1.sampleCoverage(v148, v149); + v30[0] = v148; + v30[1] = v149; + } + v150 = v4.stencil_enable; + if (v150 !== v5.stencil_enable) { + if (v150) { + v1.enable(2960); } else { - v291 = v50.constant.length > 0 ? v50.constant[0] : 0; - v292 = v50.constant.length > 1 ? v50.constant[1] : 0; - v293 = v50.constant.length > 2 ? v50.constant[2] : 0; - v294 = v50.constant.length > 3 ? v50.constant[3] : 0; + v1.disable(2960); } - } else { - if (v16(v50.buffer)) { - v295 = v8.createStream(34962, v50.buffer); + v5.stencil_enable = v150; + } + v151 = v4.stencil_mask; + if (v151 !== v5.stencil_mask) { + v1.stencilMask(v151); + v5.stencil_mask = v151; + } + v152 = v31[0]; + v153 = v31[1]; + v154 = v31[2]; + if (v152 !== v32[0] || v153 !== v32[1] || v154 !== v32[2]) { + v1.stencilFunc(v152, v153, v154); + v32[0] = v152; + v32[1] = v153; + v32[2] = v154; + } + v155 = v33[0]; + v156 = v33[1]; + v157 = v33[2]; + v158 = v33[3]; + if (v155 !== v34[0] || v156 !== v34[1] || v157 !== v34[2] || v158 !== v34[3]) { + v1.stencilOpSeparate(v155, v156, v157, v158); + v34[0] = v155; + v34[1] = v156; + v34[2] = v157; + v34[3] = v158; + } + v159 = v35[0]; + v160 = v35[1]; + v161 = v35[2]; + v162 = v35[3]; + if (v159 !== v36[0] || v160 !== v36[1] || v161 !== v36[2] || v162 !== v36[3]) { + v1.stencilOpSeparate(v159, v160, v161, v162); + v36[0] = v159; + v36[1] = v160; + v36[2] = v161; + v36[3] = v162; + } + v163 = v4.scissor_enable; + if (v163 !== v5.scissor_enable) { + if (v163) { + v1.enable(3089); } else { - v295 = v8.getBuffer(v50.buffer); + v1.disable(3089); } - v298 = "type" in v50 ? v46[v50.type] : v295.dtype; - v297 = !!v50.normalized; - v296 = v50.size | 0; - v299 = v50.offset | 0; - v300 = v50.stride | 0; - v301 = v50.divisor | 0; + v5.scissor_enable = v163; } + v164 = v37[0]; + v165 = v37[1]; + v166 = v37[2]; + v167 = v37[3]; + if (v164 !== v38[0] || v165 !== v38[1] || v166 !== v38[2] || v167 !== v38[3]) { + v1.scissor(v164, v165, v166, v167); + v38[0] = v164; + v38[1] = v165; + v38[2] = v166; + v38[3] = v167; + } + v168 = v39[0]; + v169 = v39[1]; + v170 = v39[2]; + v171 = v39[3]; + if (v168 !== v40[0] || v169 !== v40[1] || v170 !== v40[2] || v171 !== v40[3]) { + v1.viewport(v168, v169, v170, v171); + v40[0] = v168; + v40[1] = v169; + v40[2] = v170; + v40[3] = v171; + } + v5.dirty = false; } - v303 = g302.state; - g302.state = v290; - v304 = g302.x; - g302.x = v291; - v305 = g302.y; - g302.y = v292; - v306 = g302.z; - g302.z = v293; - v307 = g302.w; - g302.w = v294; - v308 = g302.buffer; - g302.buffer = v295; - v309 = g302.size; - g302.size = v296; - v310 = g302.normalized; - g302.normalized = v297; - v311 = g302.type; - g302.type = v298; - v312 = g302.offset; - g302.offset = v299; - v313 = g302.stride; - g302.stride = v300; - v314 = g302.divisor; - g302.divisor = v301; - v316 = v9.vert; - v9.vert = g315; - v318 = v9.frag; - v9.frag = g317; - v5.dirty = true; - a1(v2, a0, a2); - v2.viewportWidth = v178; - v2.viewportHeight = v179; - v39[0] = v180; - v39[1] = v181; - v39[2] = v182; - v39[3] = v183; - v17[0] = v185; - v17[1] = v187; - v17[2] = v189; - v17[3] = v191; - v4.blend_enable = v193; - v19[0] = v195; - v19[1] = v197; - v21[0] = v199; - v21[1] = v201; - v21[2] = v203; - v21[3] = v205; - v4.depth_enable = v207; - v37[0] = v213; - v37[1] = v214; - v37[2] = v215; - v37[3] = v216; - v4.scissor_enable = v218; - v4.stencil_enable = v220; - if (v221) { - g48.cpuTime += performance.now() - v222; - } - if (v225) { - v7.destroyStream(v224); + v172 = v5.profile; + if (v172) { + v173 = performance.now(); + g48.count += a1; } - v6.elements = v226; - v6.offset = v228; - v6.count = v230; - v6.primitive = v232; - v12[g234] = v235; - v12[g237] = v238; - v12[g240] = v241; - v12[g243] = v244; - v12[g246] = v247; - v12[g249] = v250; - v12[g252] = v253; - v12[g255] = v256; - v12[g259] = v260; - if (v262) { - v8.destroyStream(v268); + v174 = v9.frag; + v175 = v9.vert; + v176 = v9.program(v175, v174); + v1.useProgram(v176.program); + v11.setVAO(null); + v178 = v176.id; + v179 = v177[v178]; + if (v179) { + v179.call(this, a0, a1); + } else { + v179 = v177[v178] = g180(v176); + v179.call(this, a0, a1); } - g275.state = v276; - g275.x = v277; - g275.y = v278; - g275.z = v279; - g275.w = v280; - g275.buffer = v281; - g275.size = v282; - g275.normalized = v283; - g275.type = v284; - g275.offset = v285; - g275.stride = v286; - g275.divisor = v287; - if (v289) { - v8.destroyStream(v295); + v11.setVAO(null); + if (v172) { + g48.cpuTime += performance.now() - v173; } - g302.state = v303; - g302.x = v304; - g302.y = v305; - g302.z = v306; - g302.w = v307; - g302.buffer = v308; - g302.size = v309; - g302.normalized = v310; - g302.type = v311; - g302.offset = v312; - g302.stride = v313; - g302.divisor = v314; - v9.vert = v316; - v9.frag = v318; - v5.dirty = true; - }, - "batch": function(a0, a1) { - var v319, v320, v357, v358, v359, v360, v361; - v319 = v14.angle_instanced_arrays; - v320 = v13.next; - if (v320 !== v13.cur) { - if (v320) { - v1.bindFramebuffer(36160, v320.framebuffer); + } + }; + }; + } + }); + + // src/generated/regl-codegen/bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019 + var require_bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019 = __commonJS({ + "src/generated/regl-codegen/bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019"(exports, module) { + module.exports = function anonymous(g0, g48, g92, g93, g99, g100, g103, g105, g120, g124, g139, g143, g158, g162, g177, g181, g196, g200, g215, g219, g234, g238, g253, g257, g272, g276, g277, g279, g280, g284, g285, g286, g288, g292, g296, g300, g321, g323, g325, g327, g329, g331, g333, g335, g337, g339, g350, g352, g364, g366, g368, g369, g372, g375, g378, g381, g384, g387, g390, g393, g409, g436, g463, g490, g517, g544, g571, g598, g625, g638, g640, g678, g679, g680, g681) { + "use strict"; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47; + v1 = g0.gl; + v2 = g0.context; + v3 = g0.strings; + v4 = g0.next; + v5 = g0.current; + v6 = g0.draw; + v7 = g0.elements; + v8 = g0.buffer; + v9 = g0.shader; + v10 = g0.attributes; + v11 = g0.vao; + v12 = g0.uniforms; + v13 = g0.framebuffer; + v14 = g0.extensions; + v15 = g0.timer; + v16 = g0.isBufferArgs; + v17 = v4.blend_color; + v18 = v5.blend_color; + v19 = v4.blend_equation; + v20 = v5.blend_equation; + v21 = v4.blend_func; + v22 = v5.blend_func; + v23 = v4.depth_range; + v24 = v5.depth_range; + v25 = v4.colorMask; + v26 = v5.colorMask; + v27 = v4.polygonOffset_offset; + v28 = v5.polygonOffset_offset; + v29 = v4.sample_coverage; + v30 = v5.sample_coverage; + v31 = v4.stencil_func; + v32 = v5.stencil_func; + v33 = v4.stencil_opFront; + v34 = v5.stencil_opFront; + v35 = v4.stencil_opBack; + v36 = v5.stencil_opBack; + v37 = v4.scissor_box; + v38 = v5.scissor_box; + v39 = v4.viewport; + v40 = v5.viewport; + v41 = { + "points": 0, + "point": 0, + "lines": 1, + "line": 1, + "triangles": 4, + "triangle": 4, + "line loop": 2, + "line strip": 3, + "triangle strip": 5, + "triangle fan": 6 + }; + v42 = { + "never": 512, + "less": 513, + "<": 513, + "equal": 514, + "=": 514, + "==": 514, + "===": 514, + "lequal": 515, + "<=": 515, + "greater": 516, + ">": 516, + "notequal": 517, + "!=": 517, + "!==": 517, + "gequal": 518, + ">=": 518, + "always": 519 + }; + v43 = { + "0": 0, + "1": 1, + "zero": 0, + "one": 1, + "src color": 768, + "one minus src color": 769, + "src alpha": 770, + "one minus src alpha": 771, + "dst color": 774, + "one minus dst color": 775, + "dst alpha": 772, + "one minus dst alpha": 773, + "constant color": 32769, + "one minus constant color": 32770, + "constant alpha": 32771, + "one minus constant alpha": 32772, + "src alpha saturate": 776 + }; + v44 = { + "add": 32774, + "subtract": 32778, + "reverse subtract": 32779 + }; + v45 = { + "0": 0, + "zero": 0, + "keep": 7680, + "replace": 7681, + "increment": 7682, + "decrement": 7683, + "increment wrap": 34055, + "decrement wrap": 34056, + "invert": 5386 + }; + v46 = { + "int8": 5120, + "int16": 5122, + "int32": 5124, + "uint8": 5121, + "uint16": 5123, + "uint32": 5125, + "float": 5126, + "float32": 5126 + }; + v47 = { + "cw": 2304, + "ccw": 2305 + }; + return { + "draw": function(a0) { + var v49, v50, v85, v86, v87, v88, v89, v90, v91, v94, v95, v96, v97, v98, v101, v102, v104, v106, v107, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v121, v122, v123, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v140, v141, v142, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v159, v160, v161, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v178, v179, v180, v182, v183, v184, v185, v186, v187, v188, v189, v190, v191, v192, v193, v194, v195, v197, v198, v199, v201, v202, v203, v204, v205, v206, v207, v208, v209, v210, v211, v212, v213, v214, v216, v217, v218, v220, v221, v222, v223, v224, v225, v226, v227, v228, v229, v230, v231, v232, v233, v235, v236, v237, v239, v240, v241, v242, v243, v244, v245, v246, v247, v248, v249, v250, v251, v252, v254, v255, v256, v258, v259, v260, v261, v262, v263, v264, v265, v266, v267, v268, v269, v270, v271, v273, v274, v275, v278, v281, v282, v283, v287, v289, v290, v291, v293, v294, v295, v297, v298, v299, v301, v302, v303, v304, v305, v306, v307, v308, v309; + v49 = v14.angle_instanced_arrays; + v50 = v13.next; + if (v50 !== v13.cur) { + if (v50) { + v1.bindFramebuffer(36160, v50.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v320; + v13.cur = v50; } if (v5.dirty) { - var v321, v322, v323, v324, v325, v326, v327, v328, v329, v330, v331, v332, v333, v334, v335, v336, v337, v338, v339, v340, v341, v342, v343, v344, v345, v346, v347, v348, v349, v350, v351, v352; - v321 = v4.dither; - if (v321 !== v5.dither) { - if (v321) { + var v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84; + v51 = v4.dither; + if (v51 !== v5.dither) { + if (v51) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v321; + v5.dither = v51; } - v322 = v4.depth_func; - if (v322 !== v5.depth_func) { - v1.depthFunc(v322); - v5.depth_func = v322; + v52 = v19[0]; + v53 = v19[1]; + if (v52 !== v20[0] || v53 !== v20[1]) { + v1.blendEquationSeparate(v52, v53); + v20[0] = v52; + v20[1] = v53; } - v323 = v23[0]; - v324 = v23[1]; - if (v323 !== v24[0] || v324 !== v24[1]) { - v1.depthRange(v323, v324); - v24[0] = v323; - v24[1] = v324; + v54 = v4.depth_func; + if (v54 !== v5.depth_func) { + v1.depthFunc(v54); + v5.depth_func = v54; } - v325 = v4.depth_mask; - if (v325 !== v5.depth_mask) { - v1.depthMask(v325); - v5.depth_mask = v325; + v55 = v23[0]; + v56 = v23[1]; + if (v55 !== v24[0] || v56 !== v24[1]) { + v1.depthRange(v55, v56); + v24[0] = v55; + v24[1] = v56; } - v326 = v25[0]; - v327 = v25[1]; - v328 = v25[2]; - v329 = v25[3]; - if (v326 !== v26[0] || v327 !== v26[1] || v328 !== v26[2] || v329 !== v26[3]) { - v1.colorMask(v326, v327, v328, v329); - v26[0] = v326; - v26[1] = v327; - v26[2] = v328; - v26[3] = v329; + v57 = v4.depth_mask; + if (v57 !== v5.depth_mask) { + v1.depthMask(v57); + v5.depth_mask = v57; } - v330 = v4.cull_enable; - if (v330 !== v5.cull_enable) { - if (v330) { + v58 = v25[0]; + v59 = v25[1]; + v60 = v25[2]; + v61 = v25[3]; + if (v58 !== v26[0] || v59 !== v26[1] || v60 !== v26[2] || v61 !== v26[3]) { + v1.colorMask(v58, v59, v60, v61); + v26[0] = v58; + v26[1] = v59; + v26[2] = v60; + v26[3] = v61; + } + v62 = v4.cull_enable; + if (v62 !== v5.cull_enable) { + if (v62) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v330; + v5.cull_enable = v62; } - v331 = v4.cull_face; - if (v331 !== v5.cull_face) { - v1.cullFace(v331); - v5.cull_face = v331; + v63 = v4.cull_face; + if (v63 !== v5.cull_face) { + v1.cullFace(v63); + v5.cull_face = v63; } - v332 = v4.frontFace; - if (v332 !== v5.frontFace) { - v1.frontFace(v332); - v5.frontFace = v332; + v64 = v4.frontFace; + if (v64 !== v5.frontFace) { + v1.frontFace(v64); + v5.frontFace = v64; } - v333 = v4.lineWidth; - if (v333 !== v5.lineWidth) { - v1.lineWidth(v333); - v5.lineWidth = v333; + v65 = v4.lineWidth; + if (v65 !== v5.lineWidth) { + v1.lineWidth(v65); + v5.lineWidth = v65; } - v334 = v4.polygonOffset_enable; - if (v334 !== v5.polygonOffset_enable) { - if (v334) { + v66 = v4.polygonOffset_enable; + if (v66 !== v5.polygonOffset_enable) { + if (v66) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v334; + v5.polygonOffset_enable = v66; } - v335 = v27[0]; - v336 = v27[1]; - if (v335 !== v28[0] || v336 !== v28[1]) { - v1.polygonOffset(v335, v336); - v28[0] = v335; - v28[1] = v336; + v67 = v27[0]; + v68 = v27[1]; + if (v67 !== v28[0] || v68 !== v28[1]) { + v1.polygonOffset(v67, v68); + v28[0] = v67; + v28[1] = v68; } - v337 = v4.sample_alpha; - if (v337 !== v5.sample_alpha) { - if (v337) { + v69 = v4.sample_alpha; + if (v69 !== v5.sample_alpha) { + if (v69) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v337; + v5.sample_alpha = v69; } - v338 = v4.sample_enable; - if (v338 !== v5.sample_enable) { - if (v338) { + v70 = v4.sample_enable; + if (v70 !== v5.sample_enable) { + if (v70) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v338; + v5.sample_enable = v70; } - v339 = v29[0]; - v340 = v29[1]; - if (v339 !== v30[0] || v340 !== v30[1]) { - v1.sampleCoverage(v339, v340); - v30[0] = v339; - v30[1] = v340; + v71 = v29[0]; + v72 = v29[1]; + if (v71 !== v30[0] || v72 !== v30[1]) { + v1.sampleCoverage(v71, v72); + v30[0] = v71; + v30[1] = v72; } - v341 = v4.stencil_mask; - if (v341 !== v5.stencil_mask) { - v1.stencilMask(v341); - v5.stencil_mask = v341; + v73 = v4.stencil_mask; + if (v73 !== v5.stencil_mask) { + v1.stencilMask(v73); + v5.stencil_mask = v73; } - v342 = v31[0]; - v343 = v31[1]; - v344 = v31[2]; - if (v342 !== v32[0] || v343 !== v32[1] || v344 !== v32[2]) { - v1.stencilFunc(v342, v343, v344); - v32[0] = v342; - v32[1] = v343; - v32[2] = v344; + v74 = v31[0]; + v75 = v31[1]; + v76 = v31[2]; + if (v74 !== v32[0] || v75 !== v32[1] || v76 !== v32[2]) { + v1.stencilFunc(v74, v75, v76); + v32[0] = v74; + v32[1] = v75; + v32[2] = v76; } - v345 = v33[0]; - v346 = v33[1]; - v347 = v33[2]; - v348 = v33[3]; - if (v345 !== v34[0] || v346 !== v34[1] || v347 !== v34[2] || v348 !== v34[3]) { - v1.stencilOpSeparate(v345, v346, v347, v348); - v34[0] = v345; - v34[1] = v346; - v34[2] = v347; - v34[3] = v348; + v77 = v33[0]; + v78 = v33[1]; + v79 = v33[2]; + v80 = v33[3]; + if (v77 !== v34[0] || v78 !== v34[1] || v79 !== v34[2] || v80 !== v34[3]) { + v1.stencilOpSeparate(v77, v78, v79, v80); + v34[0] = v77; + v34[1] = v78; + v34[2] = v79; + v34[3] = v80; } - v349 = v35[0]; - v350 = v35[1]; - v351 = v35[2]; - v352 = v35[3]; - if (v349 !== v36[0] || v350 !== v36[1] || v351 !== v36[2] || v352 !== v36[3]) { - v1.stencilOpSeparate(v349, v350, v351, v352); - v36[0] = v349; - v36[1] = v350; - v36[2] = v351; - v36[3] = v352; + v81 = v35[0]; + v82 = v35[1]; + v83 = v35[2]; + v84 = v35[3]; + if (v81 !== v36[0] || v82 !== v36[1] || v83 !== v36[2] || v84 !== v36[3]) { + v1.stencilOpSeparate(v81, v82, v83, v84); + v36[0] = v81; + v36[1] = v82; + v36[2] = v83; + v36[3] = v84; } } - v1.blendColor(0, 0, 0, 0); + v85 = a0["viewport"]; + v86 = v85.x | 0; + v87 = v85.y | 0; + v88 = "width" in v85 ? v85.width | 0 : v2.framebufferWidth - v86; + v89 = "height" in v85 ? v85.height | 0 : v2.framebufferHeight - v87; + v90 = v2.viewportWidth; + v2.viewportWidth = v88; + v91 = v2.viewportHeight; + v2.viewportHeight = v89; + v1.viewport(v86, v87, v88, v89); + v40[0] = v86; + v40[1] = v87; + v40[2] = v88; + v40[3] = v89; + v1.blendColor(0, 0, 0, 1); v18[0] = 0; v18[1] = 0; v18[2] = 0; - v18[3] = 0; - if (g353) { + v18[3] = 1; + if (g92) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g353; - v1.blendEquationSeparate(32774, 32774); - v20[0] = 32774; - v20[1] = 32774; + v5.blend_enable = g92; v1.blendFuncSeparate(770, 771, 773, 1); v22[0] = 770; v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g354) { + if (g93) { v1.enable(2929); } else { v1.disable(2929); } - v5.depth_enable = g354; - if (g355) { + v5.depth_enable = g93; + v94 = a0["viewport"]; + v95 = v94.x | 0; + v96 = v94.y | 0; + v97 = "width" in v94 ? v94.width | 0 : v2.framebufferWidth - v95; + v98 = "height" in v94 ? v94.height | 0 : v2.framebufferHeight - v96; + v1.scissor(v95, v96, v97, v98); + v38[0] = v95; + v38[1] = v96; + v38[2] = v97; + v38[3] = v98; + if (g99) { v1.enable(3089); } else { v1.disable(3089); } - v5.scissor_enable = g355; - if (g356) { + v5.scissor_enable = g99; + if (g100) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = g356; - v357 = v5.profile; - if (v357) { - v358 = performance.now(); - g48.count += a1; + v5.stencil_enable = g100; + v101 = v5.profile; + if (v101) { + v102 = performance.now(); + g48.count++; } v1.useProgram(g103.program); - v359 = v14.angle_instanced_arrays; - var v445; - v11.setVAO(null); - v445 = v6.instances; - for (v360 = 0; v360 < a1; ++v360) { - v361 = a0[v360]; - var v362, v363, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v375, v376, v377, v378, v379, v380, v381, v382, v383, v384, v385, v386, v387, v388, v389, v390, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v409, v410, v411, v412, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v437, v438, v439, v440, v441, v442, v443, v444; - v362 = v361["viewport"]; - v363 = v362.x | 0; - v364 = v362.y | 0; - v365 = "width" in v362 ? v362.width | 0 : v2.framebufferWidth - v363; - v366 = "height" in v362 ? v362.height | 0 : v2.framebufferHeight - v364; - v367 = v2.viewportWidth; - v2.viewportWidth = v365; - v368 = v2.viewportHeight; - v2.viewportHeight = v366; - v1.viewport(v363, v364, v365, v366); - v40[0] = v363; - v40[1] = v364; - v40[2] = v365; - v40[3] = v366; - v369 = v361["viewport"]; - v370 = v369.x | 0; - v371 = v369.y | 0; - v372 = "width" in v369 ? v369.width | 0 : v2.framebufferWidth - v370; - v373 = "height" in v369 ? v369.height | 0 : v2.framebufferHeight - v371; - v1.scissor(v370, v371, v372, v373); - v38[0] = v370; - v38[1] = v371; - v38[2] = v372; - v38[3] = v373; - v374 = v361["positionBuffer"]; - v49.buffer = v374; - v375 = false; - v376 = 1; - v377 = 0; - v378 = 0; - v379 = 0; - v380 = 0; - v381 = null; - v382 = 0; - v383 = false; - v384 = 5126; - v385 = 0; - v386 = 0; - v387 = 0; - if (v16(v49)) { - v375 = true; - v381 = v8.createStream(34962, v49); - v384 = v381.dtype; - } else { - v381 = v8.getBuffer(v49); - if (v381) { - v384 = v381.dtype; - } else if ("constant" in v49) { - v376 = 2; - if (typeof v49.constant === "number") { - v377 = v49.constant; - v378 = v379 = v380 = 0; - } else { - v377 = v49.constant.length > 0 ? v49.constant[0] : 0; - v378 = v49.constant.length > 1 ? v49.constant[1] : 0; - v379 = v49.constant.length > 2 ? v49.constant[2] : 0; - v380 = v49.constant.length > 3 ? v49.constant[3] : 0; - } - } else { - if (v16(v49.buffer)) { - v381 = v8.createStream(34962, v49.buffer); - } else { - v381 = v8.getBuffer(v49.buffer); - } - v384 = "type" in v49 ? v46[v49.type] : v381.dtype; - v383 = !!v49.normalized; - v382 = v49.size | 0; - v385 = v49.offset | 0; - v386 = v49.stride | 0; - v387 = v49.divisor | 0; - } - } - v388 = g119.location; - v389 = v10[v388]; - if (v376 === 1) { - if (!v389.buffer) { - v1.enableVertexAttribArray(v388); - } - v390 = v382 || 2; - if (v389.type !== v384 || v389.size !== v390 || v389.buffer !== v381 || v389.normalized !== v383 || v389.offset !== v385 || v389.stride !== v386) { - v1.bindBuffer(34962, v381.buffer); - v1.vertexAttribPointer(v388, v390, v384, v383, v386, v385); - v389.type = v384; - v389.size = v390; - v389.buffer = v381; - v389.normalized = v383; - v389.offset = v385; - v389.stride = v386; - } - if (v389.divisor !== v387) { - v359.vertexAttribDivisorANGLE(v388, v387); - v389.divisor = v387; - } - } else { - if (v389.buffer) { - v1.disableVertexAttribArray(v388); - v389.buffer = null; - } - if (v389.x !== v377 || v389.y !== v378 || v389.z !== v379 || v389.w !== v380) { - v1.vertexAttrib4f(v388, v377, v378, v379, v380); - v389.x = v377; - v389.y = v378; - v389.z = v379; - v389.w = v380; - } - } - v391 = v361["positionFractBuffer"]; - v50.buffer = v391; - v392 = false; - v393 = 1; - v394 = 0; - v395 = 0; - v396 = 0; - v397 = 0; - v398 = null; - v399 = 0; - v400 = false; - v401 = 5126; - v402 = 0; - v403 = 0; - v404 = 0; - if (v16(v50)) { - v392 = true; - v398 = v8.createStream(34962, v50); - v401 = v398.dtype; - } else { - v398 = v8.getBuffer(v50); - if (v398) { - v401 = v398.dtype; - } else if ("constant" in v50) { - v393 = 2; - if (typeof v50.constant === "number") { - v394 = v50.constant; - v395 = v396 = v397 = 0; - } else { - v394 = v50.constant.length > 0 ? v50.constant[0] : 0; - v395 = v50.constant.length > 1 ? v50.constant[1] : 0; - v396 = v50.constant.length > 2 ? v50.constant[2] : 0; - v397 = v50.constant.length > 3 ? v50.constant[3] : 0; - } - } else { - if (v16(v50.buffer)) { - v398 = v8.createStream(34962, v50.buffer); - } else { - v398 = v8.getBuffer(v50.buffer); - } - v401 = "type" in v50 ? v46[v50.type] : v398.dtype; - v400 = !!v50.normalized; - v399 = v50.size | 0; - v402 = v50.offset | 0; - v403 = v50.stride | 0; - v404 = v50.divisor | 0; - } - } - v405 = g137.location; - v406 = v10[v405]; - if (v393 === 1) { - if (!v406.buffer) { - v1.enableVertexAttribArray(v405); - } - v407 = v399 || 2; - if (v406.type !== v401 || v406.size !== v407 || v406.buffer !== v398 || v406.normalized !== v400 || v406.offset !== v402 || v406.stride !== v403) { - v1.bindBuffer(34962, v398.buffer); - v1.vertexAttribPointer(v405, v407, v401, v400, v403, v402); - v406.type = v401; - v406.size = v407; - v406.buffer = v398; - v406.normalized = v400; - v406.offset = v402; - v406.stride = v403; - } - if (v406.divisor !== v404) { - v359.vertexAttribDivisorANGLE(v405, v404); - v406.divisor = v404; - } - } else { - if (v406.buffer) { - v1.disableVertexAttribArray(v405); - v406.buffer = null; - } - if (v406.x !== v394 || v406.y !== v395 || v406.z !== v396 || v406.w !== v397) { - v1.vertexAttrib4f(v405, v394, v395, v396, v397); - v406.x = v394; - v406.y = v395; - v406.z = v396; - v406.w = v397; - } - } - v408 = v361["fill"]; - v409 = v408[0]; - v411 = v408[1]; - v413 = v408[2]; - v415 = v408[3]; - if (!v360 || v410 !== v409 || v412 !== v411 || v414 !== v413 || v416 !== v415) { - v410 = v409; - v412 = v411; - v414 = v413; - v416 = v415; - v1.uniform4f(g141.location, v409, v411, v413, v415); - } - v417 = v361["id"]; - if (!v360 || v418 !== v417) { - v418 = v417; - v1.uniform1f(g147.location, v417); - } - v419 = v361["opacity"]; - if (!v360 || v420 !== v419) { - v420 = v419; - v1.uniform1f(g149.location, v419); - } - v421 = v361["scale"]; - v422 = v421[0]; - v424 = v421[1]; - if (!v360 || v423 !== v422 || v425 !== v424) { - v423 = v422; - v425 = v424; - v1.uniform2f(g151.location, v422, v424); - } - v426 = v361["scaleFract"]; - v427 = v426[0]; - v429 = v426[1]; - if (!v360 || v428 !== v427 || v430 !== v429) { - v428 = v427; - v430 = v429; - v1.uniform2f(g155.location, v427, v429); - } - v431 = v361["translate"]; - v432 = v431[0]; - v434 = v431[1]; - if (!v360 || v433 !== v432 || v435 !== v434) { - v433 = v432; - v435 = v434; - v1.uniform2f(g159.location, v432, v434); - } - v436 = v361["translateFract"]; - v437 = v436[0]; - v439 = v436[1]; - if (!v360 || v438 !== v437 || v440 !== v439) { - v438 = v437; - v440 = v439; - v1.uniform2f(g163.location, v437, v439); - } - v441 = g167.call(this, v2, v361, v360); - v442 = null; - v443 = v16(v441); - if (v443) { - v442 = v7.createStream(v441); - } else { - v442 = v7.getElements(v441); - } - if (v442) v1.bindBuffer(34963, v442.buffer.buffer); - v444 = v442 ? v442.vertCount : -1; - if (v444) { - if (v445 > 0) { - if (v442) { - v359.drawElementsInstancedANGLE(4, v444, v442.type, 0 << (v442.type - 5121 >> 1), v445); - } else { - v359.drawArraysInstancedANGLE(4, 0, v444, v445); - } - } else if (v445 < 0) { - if (v442) { - v1.drawElements(4, v444, v442.type, 0 << (v442.type - 5121 >> 1)); - } else { - v1.drawArrays(4, 0, v444); - } - } - v2.viewportWidth = v367; - v2.viewportHeight = v368; - if (v375) { - v8.destroyStream(v381); - } - if (v392) { - v8.destroyStream(v398); - } - if (v443) { - v7.destroyStream(v442); - } - } - } - v5.dirty = true; - v11.setVAO(null); - if (v357) { - g48.cpuTime += performance.now() - v358; - } - } - }; - }; - } - }); - - // src/generated/regl-codegen/dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5 - var require_dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5 = __commonJS({ - "src/generated/regl-codegen/dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5"(exports, module) { - module.exports = function anonymous(g0, g48, g92, g93, g99, g100, g103, g105, g120, g124, g139, g143, g158, g162, g177, g181, g196, g200, g215, g219, g234, g238, g253, g257, g272, g276, g277, g280, g282, g283, g287, g288, g289, g291, g295, g299, g303, g324, g326, g328, g330, g332, g334, g336, g338, g340, g342, g353, g355, g367, g369, g371, g372, g375, g378, g381, g384, g387, g390, g393, g396, g412, g439, g466, g493, g520, g547, g574, g601, g628, g641, g643, g681, g682, g683, g684) { - "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47; - v1 = g0.gl; - v2 = g0.context; - v3 = g0.strings; - v4 = g0.next; - v5 = g0.current; - v6 = g0.draw; - v7 = g0.elements; - v8 = g0.buffer; - v9 = g0.shader; - v10 = g0.attributes; - v11 = g0.vao; - v12 = g0.uniforms; - v13 = g0.framebuffer; - v14 = g0.extensions; - v15 = g0.timer; - v16 = g0.isBufferArgs; - v17 = v4.blend_color; - v18 = v5.blend_color; - v19 = v4.blend_equation; - v20 = v5.blend_equation; - v21 = v4.blend_func; - v22 = v5.blend_func; - v23 = v4.depth_range; - v24 = v5.depth_range; - v25 = v4.colorMask; - v26 = v5.colorMask; - v27 = v4.polygonOffset_offset; - v28 = v5.polygonOffset_offset; - v29 = v4.sample_coverage; - v30 = v5.sample_coverage; - v31 = v4.stencil_func; - v32 = v5.stencil_func; - v33 = v4.stencil_opFront; - v34 = v5.stencil_opFront; - v35 = v4.stencil_opBack; - v36 = v5.stencil_opBack; - v37 = v4.scissor_box; - v38 = v5.scissor_box; - v39 = v4.viewport; - v40 = v5.viewport; - v41 = { - "points": 0, - "point": 0, - "lines": 1, - "line": 1, - "triangles": 4, - "triangle": 4, - "line loop": 2, - "line strip": 3, - "triangle strip": 5, - "triangle fan": 6 - }; - v42 = { - "never": 512, - "less": 513, - "<": 513, - "equal": 514, - "=": 514, - "==": 514, - "===": 514, - "lequal": 515, - "<=": 515, - "greater": 516, - ">": 516, - "notequal": 517, - "!=": 517, - "!==": 517, - "gequal": 518, - ">=": 518, - "always": 519 - }; - v43 = { - "0": 0, - "1": 1, - "zero": 0, - "one": 1, - "src color": 768, - "one minus src color": 769, - "src alpha": 770, - "one minus src alpha": 771, - "dst color": 774, - "one minus dst color": 775, - "dst alpha": 772, - "one minus dst alpha": 773, - "constant color": 32769, - "one minus constant color": 32770, - "constant alpha": 32771, - "one minus constant alpha": 32772, - "src alpha saturate": 776 - }; - v44 = { - "add": 32774, - "subtract": 32778, - "reverse subtract": 32779 - }; - v45 = { - "0": 0, - "zero": 0, - "keep": 7680, - "replace": 7681, - "increment": 7682, - "decrement": 7683, - "increment wrap": 34055, - "decrement wrap": 34056, - "invert": 5386 - }; - v46 = { - "int8": 5120, - "int16": 5122, - "int32": 5124, - "uint8": 5121, - "uint16": 5123, - "uint32": 5125, - "float": 5126, - "float32": 5126 - }; - v47 = { - "cw": 2304, - "ccw": 2305 - }; - return { - "draw": function(a0) { - var v49, v50, v85, v86, v87, v88, v89, v90, v91, v94, v95, v96, v97, v98, v101, v102, v104, v106, v107, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v121, v122, v123, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v140, v141, v142, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v159, v160, v161, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v178, v179, v180, v182, v183, v184, v185, v186, v187, v188, v189, v190, v191, v192, v193, v194, v195, v197, v198, v199, v201, v202, v203, v204, v205, v206, v207, v208, v209, v210, v211, v212, v213, v214, v216, v217, v218, v220, v221, v222, v223, v224, v225, v226, v227, v228, v229, v230, v231, v232, v233, v235, v236, v237, v239, v240, v241, v242, v243, v244, v245, v246, v247, v248, v249, v250, v251, v252, v254, v255, v256, v258, v259, v260, v261, v262, v263, v264, v265, v266, v267, v268, v269, v270, v271, v273, v274, v275, v278, v279, v281, v284, v285, v286, v290, v292, v293, v294, v296, v297, v298, v300, v301, v302, v304, v305, v306, v307, v308, v309, v310, v311, v312; - v49 = v14.angle_instanced_arrays; - v50 = v13.next; - if (v50 !== v13.cur) { - if (v50) { - v1.bindFramebuffer(36160, v50.framebuffer); - } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v50; - } - if (v5.dirty) { - var v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84; - v51 = v4.dither; - if (v51 !== v5.dither) { - if (v51) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v51; - } - v52 = v19[0]; - v53 = v19[1]; - if (v52 !== v20[0] || v53 !== v20[1]) { - v1.blendEquationSeparate(v52, v53); - v20[0] = v52; - v20[1] = v53; - } - v54 = v4.depth_func; - if (v54 !== v5.depth_func) { - v1.depthFunc(v54); - v5.depth_func = v54; - } - v55 = v23[0]; - v56 = v23[1]; - if (v55 !== v24[0] || v56 !== v24[1]) { - v1.depthRange(v55, v56); - v24[0] = v55; - v24[1] = v56; - } - v57 = v4.depth_mask; - if (v57 !== v5.depth_mask) { - v1.depthMask(v57); - v5.depth_mask = v57; - } - v58 = v25[0]; - v59 = v25[1]; - v60 = v25[2]; - v61 = v25[3]; - if (v58 !== v26[0] || v59 !== v26[1] || v60 !== v26[2] || v61 !== v26[3]) { - v1.colorMask(v58, v59, v60, v61); - v26[0] = v58; - v26[1] = v59; - v26[2] = v60; - v26[3] = v61; - } - v62 = v4.cull_enable; - if (v62 !== v5.cull_enable) { - if (v62) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v62; - } - v63 = v4.cull_face; - if (v63 !== v5.cull_face) { - v1.cullFace(v63); - v5.cull_face = v63; - } - v64 = v4.frontFace; - if (v64 !== v5.frontFace) { - v1.frontFace(v64); - v5.frontFace = v64; - } - v65 = v4.lineWidth; - if (v65 !== v5.lineWidth) { - v1.lineWidth(v65); - v5.lineWidth = v65; - } - v66 = v4.polygonOffset_enable; - if (v66 !== v5.polygonOffset_enable) { - if (v66) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v66; - } - v67 = v27[0]; - v68 = v27[1]; - if (v67 !== v28[0] || v68 !== v28[1]) { - v1.polygonOffset(v67, v68); - v28[0] = v67; - v28[1] = v68; - } - v69 = v4.sample_alpha; - if (v69 !== v5.sample_alpha) { - if (v69) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v69; - } - v70 = v4.sample_enable; - if (v70 !== v5.sample_enable) { - if (v70) { - v1.enable(32928); - } else { - v1.disable(32928); - } - v5.sample_enable = v70; - } - v71 = v29[0]; - v72 = v29[1]; - if (v71 !== v30[0] || v72 !== v30[1]) { - v1.sampleCoverage(v71, v72); - v30[0] = v71; - v30[1] = v72; - } - v73 = v4.stencil_mask; - if (v73 !== v5.stencil_mask) { - v1.stencilMask(v73); - v5.stencil_mask = v73; - } - v74 = v31[0]; - v75 = v31[1]; - v76 = v31[2]; - if (v74 !== v32[0] || v75 !== v32[1] || v76 !== v32[2]) { - v1.stencilFunc(v74, v75, v76); - v32[0] = v74; - v32[1] = v75; - v32[2] = v76; - } - v77 = v33[0]; - v78 = v33[1]; - v79 = v33[2]; - v80 = v33[3]; - if (v77 !== v34[0] || v78 !== v34[1] || v79 !== v34[2] || v80 !== v34[3]) { - v1.stencilOpSeparate(v77, v78, v79, v80); - v34[0] = v77; - v34[1] = v78; - v34[2] = v79; - v34[3] = v80; - } - v81 = v35[0]; - v82 = v35[1]; - v83 = v35[2]; - v84 = v35[3]; - if (v81 !== v36[0] || v82 !== v36[1] || v83 !== v36[2] || v84 !== v36[3]) { - v1.stencilOpSeparate(v81, v82, v83, v84); - v36[0] = v81; - v36[1] = v82; - v36[2] = v83; - v36[3] = v84; - } - } - v85 = a0["viewport"]; - v86 = v85.x | 0; - v87 = v85.y | 0; - v88 = "width" in v85 ? v85.width | 0 : v2.framebufferWidth - v86; - v89 = "height" in v85 ? v85.height | 0 : v2.framebufferHeight - v87; - v90 = v2.viewportWidth; - v2.viewportWidth = v88; - v91 = v2.viewportHeight; - v2.viewportHeight = v89; - v1.viewport(v86, v87, v88, v89); - v40[0] = v86; - v40[1] = v87; - v40[2] = v88; - v40[3] = v89; - v1.blendColor(0, 0, 0, 1); - v18[0] = 0; - v18[1] = 0; - v18[2] = 0; - v18[3] = 1; - if (g92) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = g92; - v1.blendFuncSeparate(770, 771, 773, 1); - v22[0] = 770; - v22[1] = 771; - v22[2] = 773; - v22[3] = 1; - if (g93) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = g93; - v94 = a0["viewport"]; - v95 = v94.x | 0; - v96 = v94.y | 0; - v97 = "width" in v94 ? v94.width | 0 : v2.framebufferWidth - v95; - v98 = "height" in v94 ? v94.height | 0 : v2.framebufferHeight - v96; - v1.scissor(v95, v96, v97, v98); - v38[0] = v95; - v38[1] = v96; - v38[2] = v97; - v38[3] = v98; - if (g99) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = g99; - if (g100) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = g100; - v101 = v5.profile; - if (v101) { - v102 = performance.now(); - g48.count++; - } - v1.useProgram(g103.program); - v104 = v14.angle_instanced_arrays; + v104 = v14.angle_instanced_arrays; v11.setVAO(null); v106 = g105.call(this, v2, a0, 0); v107 = false; @@ -178097,61 +176651,55 @@ void main() { } } v1.uniform1i(g276.location, false); - v278 = a0["markerTexture"]; - if (v278 && v278._reglType === "framebuffer") { - v278 = v278.color[0]; - } - v279 = v278._texture; - v1.uniform1i(g277.location, v279.bind()); - v281 = a0["opacity"]; - v1.uniform1f(g280.location, v281); - v284 = g283.call(this, v2, a0, 0); - v285 = v284[0]; - v286 = v284[1]; - v1.uniform2f(g282.location, v285, v286); - v1.uniform1i(g287.location, g288.bind()); - v290 = v2["pixelRatio"]; - v1.uniform1f(g289.location, v290); - v292 = a0["scale"]; - v293 = v292[0]; - v294 = v292[1]; - v1.uniform2f(g291.location, v293, v294); - v296 = a0["scaleFract"]; - v297 = v296[0]; - v298 = v296[1]; - v1.uniform2f(g295.location, v297, v298); - v300 = a0["translate"]; - v301 = v300[0]; - v302 = v300[1]; - v1.uniform2f(g299.location, v301, v302); - v304 = a0["translateFract"]; - v305 = v304[0]; - v306 = v304[1]; - v1.uniform2f(g303.location, v305, v306); - v307 = a0["elements"]; - v308 = null; - v309 = v16(v307); - if (v309) { - v308 = v7.createStream(v307); + v278 = a0["opacity"]; + v1.uniform1f(g277.location, v278); + v281 = g280.call(this, v2, a0, 0); + v282 = v281[0]; + v283 = v281[1]; + v1.uniform2f(g279.location, v282, v283); + v1.uniform1i(g284.location, g285.bind()); + v287 = v2["pixelRatio"]; + v1.uniform1f(g286.location, v287); + v289 = a0["scale"]; + v290 = v289[0]; + v291 = v289[1]; + v1.uniform2f(g288.location, v290, v291); + v293 = a0["scaleFract"]; + v294 = v293[0]; + v295 = v293[1]; + v1.uniform2f(g292.location, v294, v295); + v297 = a0["translate"]; + v298 = v297[0]; + v299 = v297[1]; + v1.uniform2f(g296.location, v298, v299); + v301 = a0["translateFract"]; + v302 = v301[0]; + v303 = v301[1]; + v1.uniform2f(g300.location, v302, v303); + v304 = a0["elements"]; + v305 = null; + v306 = v16(v304); + if (v306) { + v305 = v7.createStream(v304); } else { - v308 = v7.getElements(v307); + v305 = v7.getElements(v304); } - if (v308) v1.bindBuffer(34963, v308.buffer.buffer); - v310 = a0["offset"]; - v311 = a0["count"]; - if (v311) { - v312 = v6.instances; - if (v312 > 0) { - if (v308) { - v104.drawElementsInstancedANGLE(0, v311, v308.type, v310 << (v308.type - 5121 >> 1), v312); + if (v305) v1.bindBuffer(34963, v305.buffer.buffer); + v307 = a0["offset"]; + v308 = a0["count"]; + if (v308) { + v309 = v6.instances; + if (v309 > 0) { + if (v305) { + v104.drawElementsInstancedANGLE(0, v308, v305.type, v307 << (v305.type - 5121 >> 1), v309); } else { - v104.drawArraysInstancedANGLE(0, v310, v311, v312); + v104.drawArraysInstancedANGLE(0, v307, v308, v309); } - } else if (v312 < 0) { - if (v308) { - v1.drawElements(0, v311, v308.type, v310 << (v308.type - 5121 >> 1)); + } else if (v309 < 0) { + if (v305) { + v1.drawElements(0, v308, v305.type, v307 << (v305.type - 5121 >> 1)); } else { - v1.drawArrays(0, v310, v311); + v1.drawArrays(0, v307, v308); } } v5.dirty = true; @@ -178188,797 +176736,797 @@ void main() { if (v259) { v8.destroyStream(v265); } - v279.unbind(); - g288.unbind(); - if (v309) { - v7.destroyStream(v308); + g285.unbind(); + if (v306) { + v7.destroyStream(v305); } } }, "scope": function(a0, a1, a2) { - var v313, v314, v315, v316, v317, v318, v319, v320, v321, v322, v323, v325, v327, v329, v331, v333, v335, v337, v339, v341, v343, v344, v345, v346, v347, v348, v349, v350, v351, v352, v354, v356, v357, v358, v359, v360, v361, v362, v363, v364, v365, v366, v368, v370, v373, v374, v376, v377, v379, v380, v382, v383, v385, v386, v388, v389, v391, v392, v394, v395, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v409, v410, v411, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v437, v438, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v457, v458, v459, v460, v461, v462, v463, v464, v465, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v490, v491, v492, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v504, v505, v506, v507, v508, v509, v510, v511, v512, v513, v514, v515, v516, v517, v518, v519, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541, v542, v543, v544, v545, v546, v548, v549, v550, v551, v552, v553, v554, v555, v556, v557, v558, v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v571, v572, v573, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v595, v596, v597, v598, v599, v600, v602, v603, v604, v605, v606, v607, v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v625, v626, v627, v629, v630, v631, v632, v633, v634, v635, v636, v637, v638, v639, v640, v642, v644; - v313 = a0["viewport"]; - v314 = v313.x | 0; - v315 = v313.y | 0; - v316 = "width" in v313 ? v313.width | 0 : v2.framebufferWidth - v314; - v317 = "height" in v313 ? v313.height | 0 : v2.framebufferHeight - v315; - v318 = v2.viewportWidth; - v2.viewportWidth = v316; - v319 = v2.viewportHeight; - v2.viewportHeight = v317; - v320 = v39[0]; - v39[0] = v314; - v321 = v39[1]; - v39[1] = v315; - v322 = v39[2]; - v39[2] = v316; - v323 = v39[3]; - v39[3] = v317; - v325 = v17[0]; - v17[0] = g324; - v327 = v17[1]; - v17[1] = g326; - v329 = v17[2]; - v17[2] = g328; - v331 = v17[3]; - v17[3] = g330; - v333 = v4.blend_enable; - v4.blend_enable = g332; - v335 = v21[0]; - v21[0] = g334; - v337 = v21[1]; - v21[1] = g336; - v339 = v21[2]; - v21[2] = g338; - v341 = v21[3]; - v21[3] = g340; - v343 = v4.depth_enable; - v4.depth_enable = g342; - v344 = a0["viewport"]; - v345 = v344.x | 0; - v346 = v344.y | 0; - v347 = "width" in v344 ? v344.width | 0 : v2.framebufferWidth - v345; - v348 = "height" in v344 ? v344.height | 0 : v2.framebufferHeight - v346; - v349 = v37[0]; - v37[0] = v345; - v350 = v37[1]; - v37[1] = v346; - v351 = v37[2]; - v37[2] = v347; - v352 = v37[3]; - v37[3] = v348; - v354 = v4.scissor_enable; - v4.scissor_enable = g353; - v356 = v4.stencil_enable; - v4.stencil_enable = g355; - v357 = v5.profile; - if (v357) { - v358 = performance.now(); + var v310, v311, v312, v313, v314, v315, v316, v317, v318, v319, v320, v322, v324, v326, v328, v330, v332, v334, v336, v338, v340, v341, v342, v343, v344, v345, v346, v347, v348, v349, v351, v353, v354, v355, v356, v357, v358, v359, v360, v361, v362, v363, v365, v367, v370, v371, v373, v374, v376, v377, v379, v380, v382, v383, v385, v386, v388, v389, v391, v392, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v410, v411, v412, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v437, v438, v439, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v457, v458, v459, v460, v461, v462, v464, v465, v466, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v491, v492, v493, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v504, v505, v506, v507, v508, v509, v510, v511, v512, v513, v514, v515, v516, v518, v519, v520, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541, v542, v543, v545, v546, v547, v548, v549, v550, v551, v552, v553, v554, v555, v556, v557, v558, v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v595, v596, v597, v599, v600, v601, v602, v603, v604, v605, v606, v607, v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v626, v627, v628, v629, v630, v631, v632, v633, v634, v635, v636, v637, v639, v641; + v310 = a0["viewport"]; + v311 = v310.x | 0; + v312 = v310.y | 0; + v313 = "width" in v310 ? v310.width | 0 : v2.framebufferWidth - v311; + v314 = "height" in v310 ? v310.height | 0 : v2.framebufferHeight - v312; + v315 = v2.viewportWidth; + v2.viewportWidth = v313; + v316 = v2.viewportHeight; + v2.viewportHeight = v314; + v317 = v39[0]; + v39[0] = v311; + v318 = v39[1]; + v39[1] = v312; + v319 = v39[2]; + v39[2] = v313; + v320 = v39[3]; + v39[3] = v314; + v322 = v17[0]; + v17[0] = g321; + v324 = v17[1]; + v17[1] = g323; + v326 = v17[2]; + v17[2] = g325; + v328 = v17[3]; + v17[3] = g327; + v330 = v4.blend_enable; + v4.blend_enable = g329; + v332 = v21[0]; + v21[0] = g331; + v334 = v21[1]; + v21[1] = g333; + v336 = v21[2]; + v21[2] = g335; + v338 = v21[3]; + v21[3] = g337; + v340 = v4.depth_enable; + v4.depth_enable = g339; + v341 = a0["viewport"]; + v342 = v341.x | 0; + v343 = v341.y | 0; + v344 = "width" in v341 ? v341.width | 0 : v2.framebufferWidth - v342; + v345 = "height" in v341 ? v341.height | 0 : v2.framebufferHeight - v343; + v346 = v37[0]; + v37[0] = v342; + v347 = v37[1]; + v37[1] = v343; + v348 = v37[2]; + v37[2] = v344; + v349 = v37[3]; + v37[3] = v345; + v351 = v4.scissor_enable; + v4.scissor_enable = g350; + v353 = v4.stencil_enable; + v4.stencil_enable = g352; + v354 = v5.profile; + if (v354) { + v355 = performance.now(); g48.count++; } - v359 = a0["elements"]; - v360 = null; - v361 = v16(v359); - if (v361) { - v360 = v7.createStream(v359); + v356 = a0["elements"]; + v357 = null; + v358 = v16(v356); + if (v358) { + v357 = v7.createStream(v356); } else { - v360 = v7.getElements(v359); + v357 = v7.getElements(v356); } - v362 = v6.elements; - v6.elements = v360; - v363 = a0["offset"]; - v364 = v6.offset; - v6.offset = v363; - v365 = a0["count"]; - v366 = v6.count; - v6.count = v365; - v368 = v6.primitive; - v6.primitive = g367; + v359 = v6.elements; + v6.elements = v357; + v360 = a0["offset"]; + v361 = v6.offset; + v6.offset = v360; + v362 = a0["count"]; + v363 = v6.count; + v6.count = v362; + v365 = v6.primitive; + v6.primitive = g364; + v367 = v12[g366]; + v12[g366] = false; v370 = v12[g369]; - v12[g369] = false; + v12[g369] = g368; + v371 = a0["opacity"]; v373 = v12[g372]; - v12[g372] = g371; - v374 = a0["opacity"]; + v12[g372] = v371; + v374 = g280.call(this, v2, a0, a2); v376 = v12[g375]; v12[g375] = v374; - v377 = g283.call(this, v2, a0, a2); + v377 = v2["pixelRatio"]; v379 = v12[g378]; v12[g378] = v377; - v380 = v2["pixelRatio"]; + v380 = a0["scale"]; v382 = v12[g381]; v12[g381] = v380; - v383 = a0["scale"]; + v383 = a0["scaleFract"]; v385 = v12[g384]; v12[g384] = v383; - v386 = a0["scaleFract"]; + v386 = a0["translate"]; v388 = v12[g387]; v12[g387] = v386; - v389 = a0["translate"]; + v389 = a0["translateFract"]; v391 = v12[g390]; v12[g390] = v389; - v392 = a0["translateFract"]; + v392 = a0["markerTexture"]; v394 = v12[g393]; v12[g393] = v392; - v395 = a0["markerTexture"]; - v397 = v12[g396]; - v12[g396] = v395; - v398 = g200.call(this, v2, a0, a2); - v399 = false; - v400 = 1; + v395 = g200.call(this, v2, a0, a2); + v396 = false; + v397 = 1; + v398 = 0; + v399 = 0; + v400 = 0; v401 = 0; - v402 = 0; + v402 = null; v403 = 0; - v404 = 0; - v405 = null; + v404 = false; + v405 = 5126; v406 = 0; - v407 = false; - v408 = 5126; - v409 = 0; - v410 = 0; - v411 = 0; - if (v16(v398)) { - v399 = true; - v405 = v8.createStream(34962, v398); - v408 = v405.dtype; + v407 = 0; + v408 = 0; + if (v16(v395)) { + v396 = true; + v402 = v8.createStream(34962, v395); + v405 = v402.dtype; } else { - v405 = v8.getBuffer(v398); - if (v405) { - v408 = v405.dtype; - } else if ("constant" in v398) { - v400 = 2; - if (typeof v398.constant === "number") { - v401 = v398.constant; - v402 = v403 = v404 = 0; + v402 = v8.getBuffer(v395); + if (v402) { + v405 = v402.dtype; + } else if ("constant" in v395) { + v397 = 2; + if (typeof v395.constant === "number") { + v398 = v395.constant; + v399 = v400 = v401 = 0; } else { - v401 = v398.constant.length > 0 ? v398.constant[0] : 0; - v402 = v398.constant.length > 1 ? v398.constant[1] : 0; - v403 = v398.constant.length > 2 ? v398.constant[2] : 0; - v404 = v398.constant.length > 3 ? v398.constant[3] : 0; + v398 = v395.constant.length > 0 ? v395.constant[0] : 0; + v399 = v395.constant.length > 1 ? v395.constant[1] : 0; + v400 = v395.constant.length > 2 ? v395.constant[2] : 0; + v401 = v395.constant.length > 3 ? v395.constant[3] : 0; } } else { - if (v16(v398.buffer)) { - v405 = v8.createStream(34962, v398.buffer); + if (v16(v395.buffer)) { + v402 = v8.createStream(34962, v395.buffer); } else { - v405 = v8.getBuffer(v398.buffer); + v402 = v8.getBuffer(v395.buffer); } - v408 = "type" in v398 ? v46[v398.type] : v405.dtype; - v407 = !!v398.normalized; - v406 = v398.size | 0; - v409 = v398.offset | 0; - v410 = v398.stride | 0; - v411 = v398.divisor | 0; + v405 = "type" in v395 ? v46[v395.type] : v402.dtype; + v404 = !!v395.normalized; + v403 = v395.size | 0; + v406 = v395.offset | 0; + v407 = v395.stride | 0; + v408 = v395.divisor | 0; } } - v413 = g412.state; - g412.state = v400; - v414 = g412.x; - g412.x = v401; - v415 = g412.y; - g412.y = v402; - v416 = g412.z; - g412.z = v403; - v417 = g412.w; - g412.w = v404; - v418 = g412.buffer; - g412.buffer = v405; - v419 = g412.size; - g412.size = v406; - v420 = g412.normalized; - g412.normalized = v407; - v421 = g412.type; - g412.type = v408; - v422 = g412.offset; - g412.offset = v409; - v423 = g412.stride; - g412.stride = v410; - v424 = g412.divisor; - g412.divisor = v411; - v425 = g238.call(this, v2, a0, a2); - v426 = false; - v427 = 1; + v410 = g409.state; + g409.state = v397; + v411 = g409.x; + g409.x = v398; + v412 = g409.y; + g409.y = v399; + v413 = g409.z; + g409.z = v400; + v414 = g409.w; + g409.w = v401; + v415 = g409.buffer; + g409.buffer = v402; + v416 = g409.size; + g409.size = v403; + v417 = g409.normalized; + g409.normalized = v404; + v418 = g409.type; + g409.type = v405; + v419 = g409.offset; + g409.offset = v406; + v420 = g409.stride; + g409.stride = v407; + v421 = g409.divisor; + g409.divisor = v408; + v422 = g238.call(this, v2, a0, a2); + v423 = false; + v424 = 1; + v425 = 0; + v426 = 0; + v427 = 0; v428 = 0; - v429 = 0; + v429 = null; v430 = 0; - v431 = 0; - v432 = null; + v431 = false; + v432 = 5126; v433 = 0; - v434 = false; - v435 = 5126; - v436 = 0; - v437 = 0; - v438 = 0; - if (v16(v425)) { - v426 = true; - v432 = v8.createStream(34962, v425); - v435 = v432.dtype; + v434 = 0; + v435 = 0; + if (v16(v422)) { + v423 = true; + v429 = v8.createStream(34962, v422); + v432 = v429.dtype; } else { - v432 = v8.getBuffer(v425); - if (v432) { - v435 = v432.dtype; - } else if ("constant" in v425) { - v427 = 2; - if (typeof v425.constant === "number") { - v428 = v425.constant; - v429 = v430 = v431 = 0; + v429 = v8.getBuffer(v422); + if (v429) { + v432 = v429.dtype; + } else if ("constant" in v422) { + v424 = 2; + if (typeof v422.constant === "number") { + v425 = v422.constant; + v426 = v427 = v428 = 0; } else { - v428 = v425.constant.length > 0 ? v425.constant[0] : 0; - v429 = v425.constant.length > 1 ? v425.constant[1] : 0; - v430 = v425.constant.length > 2 ? v425.constant[2] : 0; - v431 = v425.constant.length > 3 ? v425.constant[3] : 0; + v425 = v422.constant.length > 0 ? v422.constant[0] : 0; + v426 = v422.constant.length > 1 ? v422.constant[1] : 0; + v427 = v422.constant.length > 2 ? v422.constant[2] : 0; + v428 = v422.constant.length > 3 ? v422.constant[3] : 0; } } else { - if (v16(v425.buffer)) { - v432 = v8.createStream(34962, v425.buffer); + if (v16(v422.buffer)) { + v429 = v8.createStream(34962, v422.buffer); } else { - v432 = v8.getBuffer(v425.buffer); + v429 = v8.getBuffer(v422.buffer); } - v435 = "type" in v425 ? v46[v425.type] : v432.dtype; - v434 = !!v425.normalized; - v433 = v425.size | 0; - v436 = v425.offset | 0; - v437 = v425.stride | 0; - v438 = v425.divisor | 0; + v432 = "type" in v422 ? v46[v422.type] : v429.dtype; + v431 = !!v422.normalized; + v430 = v422.size | 0; + v433 = v422.offset | 0; + v434 = v422.stride | 0; + v435 = v422.divisor | 0; } } - v440 = g439.state; - g439.state = v427; - v441 = g439.x; - g439.x = v428; - v442 = g439.y; - g439.y = v429; - v443 = g439.z; - g439.z = v430; - v444 = g439.w; - g439.w = v431; - v445 = g439.buffer; - g439.buffer = v432; - v446 = g439.size; - g439.size = v433; - v447 = g439.normalized; - g439.normalized = v434; - v448 = g439.type; - g439.type = v435; - v449 = g439.offset; - g439.offset = v436; - v450 = g439.stride; - g439.stride = v437; - v451 = g439.divisor; - g439.divisor = v438; - v452 = g219.call(this, v2, a0, a2); - v453 = false; - v454 = 1; + v437 = g436.state; + g436.state = v424; + v438 = g436.x; + g436.x = v425; + v439 = g436.y; + g436.y = v426; + v440 = g436.z; + g436.z = v427; + v441 = g436.w; + g436.w = v428; + v442 = g436.buffer; + g436.buffer = v429; + v443 = g436.size; + g436.size = v430; + v444 = g436.normalized; + g436.normalized = v431; + v445 = g436.type; + g436.type = v432; + v446 = g436.offset; + g436.offset = v433; + v447 = g436.stride; + g436.stride = v434; + v448 = g436.divisor; + g436.divisor = v435; + v449 = g219.call(this, v2, a0, a2); + v450 = false; + v451 = 1; + v452 = 0; + v453 = 0; + v454 = 0; v455 = 0; - v456 = 0; + v456 = null; v457 = 0; - v458 = 0; - v459 = null; + v458 = false; + v459 = 5126; v460 = 0; - v461 = false; - v462 = 5126; - v463 = 0; - v464 = 0; - v465 = 0; - if (v16(v452)) { - v453 = true; - v459 = v8.createStream(34962, v452); - v462 = v459.dtype; + v461 = 0; + v462 = 0; + if (v16(v449)) { + v450 = true; + v456 = v8.createStream(34962, v449); + v459 = v456.dtype; } else { - v459 = v8.getBuffer(v452); - if (v459) { - v462 = v459.dtype; - } else if ("constant" in v452) { - v454 = 2; - if (typeof v452.constant === "number") { - v455 = v452.constant; - v456 = v457 = v458 = 0; + v456 = v8.getBuffer(v449); + if (v456) { + v459 = v456.dtype; + } else if ("constant" in v449) { + v451 = 2; + if (typeof v449.constant === "number") { + v452 = v449.constant; + v453 = v454 = v455 = 0; } else { - v455 = v452.constant.length > 0 ? v452.constant[0] : 0; - v456 = v452.constant.length > 1 ? v452.constant[1] : 0; - v457 = v452.constant.length > 2 ? v452.constant[2] : 0; - v458 = v452.constant.length > 3 ? v452.constant[3] : 0; + v452 = v449.constant.length > 0 ? v449.constant[0] : 0; + v453 = v449.constant.length > 1 ? v449.constant[1] : 0; + v454 = v449.constant.length > 2 ? v449.constant[2] : 0; + v455 = v449.constant.length > 3 ? v449.constant[3] : 0; } } else { - if (v16(v452.buffer)) { - v459 = v8.createStream(34962, v452.buffer); + if (v16(v449.buffer)) { + v456 = v8.createStream(34962, v449.buffer); } else { - v459 = v8.getBuffer(v452.buffer); + v456 = v8.getBuffer(v449.buffer); } - v462 = "type" in v452 ? v46[v452.type] : v459.dtype; - v461 = !!v452.normalized; - v460 = v452.size | 0; - v463 = v452.offset | 0; - v464 = v452.stride | 0; - v465 = v452.divisor | 0; + v459 = "type" in v449 ? v46[v449.type] : v456.dtype; + v458 = !!v449.normalized; + v457 = v449.size | 0; + v460 = v449.offset | 0; + v461 = v449.stride | 0; + v462 = v449.divisor | 0; } } - v467 = g466.state; - g466.state = v454; - v468 = g466.x; - g466.x = v455; - v469 = g466.y; - g466.y = v456; - v470 = g466.z; - g466.z = v457; - v471 = g466.w; - g466.w = v458; - v472 = g466.buffer; - g466.buffer = v459; - v473 = g466.size; - g466.size = v460; - v474 = g466.normalized; - g466.normalized = v461; - v475 = g466.type; - g466.type = v462; - v476 = g466.offset; - g466.offset = v463; - v477 = g466.stride; - g466.stride = v464; - v478 = g466.divisor; - g466.divisor = v465; - v479 = g257.call(this, v2, a0, a2); - v480 = false; - v481 = 1; + v464 = g463.state; + g463.state = v451; + v465 = g463.x; + g463.x = v452; + v466 = g463.y; + g463.y = v453; + v467 = g463.z; + g463.z = v454; + v468 = g463.w; + g463.w = v455; + v469 = g463.buffer; + g463.buffer = v456; + v470 = g463.size; + g463.size = v457; + v471 = g463.normalized; + g463.normalized = v458; + v472 = g463.type; + g463.type = v459; + v473 = g463.offset; + g463.offset = v460; + v474 = g463.stride; + g463.stride = v461; + v475 = g463.divisor; + g463.divisor = v462; + v476 = g257.call(this, v2, a0, a2); + v477 = false; + v478 = 1; + v479 = 0; + v480 = 0; + v481 = 0; v482 = 0; - v483 = 0; + v483 = null; v484 = 0; - v485 = 0; - v486 = null; + v485 = false; + v486 = 5126; v487 = 0; - v488 = false; - v489 = 5126; - v490 = 0; - v491 = 0; - v492 = 0; - if (v16(v479)) { - v480 = true; - v486 = v8.createStream(34962, v479); - v489 = v486.dtype; + v488 = 0; + v489 = 0; + if (v16(v476)) { + v477 = true; + v483 = v8.createStream(34962, v476); + v486 = v483.dtype; } else { - v486 = v8.getBuffer(v479); - if (v486) { - v489 = v486.dtype; - } else if ("constant" in v479) { - v481 = 2; - if (typeof v479.constant === "number") { - v482 = v479.constant; - v483 = v484 = v485 = 0; + v483 = v8.getBuffer(v476); + if (v483) { + v486 = v483.dtype; + } else if ("constant" in v476) { + v478 = 2; + if (typeof v476.constant === "number") { + v479 = v476.constant; + v480 = v481 = v482 = 0; } else { - v482 = v479.constant.length > 0 ? v479.constant[0] : 0; - v483 = v479.constant.length > 1 ? v479.constant[1] : 0; - v484 = v479.constant.length > 2 ? v479.constant[2] : 0; - v485 = v479.constant.length > 3 ? v479.constant[3] : 0; + v479 = v476.constant.length > 0 ? v476.constant[0] : 0; + v480 = v476.constant.length > 1 ? v476.constant[1] : 0; + v481 = v476.constant.length > 2 ? v476.constant[2] : 0; + v482 = v476.constant.length > 3 ? v476.constant[3] : 0; } } else { - if (v16(v479.buffer)) { - v486 = v8.createStream(34962, v479.buffer); + if (v16(v476.buffer)) { + v483 = v8.createStream(34962, v476.buffer); } else { - v486 = v8.getBuffer(v479.buffer); + v483 = v8.getBuffer(v476.buffer); } - v489 = "type" in v479 ? v46[v479.type] : v486.dtype; - v488 = !!v479.normalized; - v487 = v479.size | 0; - v490 = v479.offset | 0; - v491 = v479.stride | 0; - v492 = v479.divisor | 0; + v486 = "type" in v476 ? v46[v476.type] : v483.dtype; + v485 = !!v476.normalized; + v484 = v476.size | 0; + v487 = v476.offset | 0; + v488 = v476.stride | 0; + v489 = v476.divisor | 0; } } - v494 = g493.state; - g493.state = v481; - v495 = g493.x; - g493.x = v482; - v496 = g493.y; - g493.y = v483; - v497 = g493.z; - g493.z = v484; - v498 = g493.w; - g493.w = v485; - v499 = g493.buffer; - g493.buffer = v486; - v500 = g493.size; - g493.size = v487; - v501 = g493.normalized; - g493.normalized = v488; - v502 = g493.type; - g493.type = v489; - v503 = g493.offset; - g493.offset = v490; - v504 = g493.stride; - g493.stride = v491; - v505 = g493.divisor; - g493.divisor = v492; - v506 = g181.call(this, v2, a0, a2); - v507 = false; - v508 = 1; + v491 = g490.state; + g490.state = v478; + v492 = g490.x; + g490.x = v479; + v493 = g490.y; + g490.y = v480; + v494 = g490.z; + g490.z = v481; + v495 = g490.w; + g490.w = v482; + v496 = g490.buffer; + g490.buffer = v483; + v497 = g490.size; + g490.size = v484; + v498 = g490.normalized; + g490.normalized = v485; + v499 = g490.type; + g490.type = v486; + v500 = g490.offset; + g490.offset = v487; + v501 = g490.stride; + g490.stride = v488; + v502 = g490.divisor; + g490.divisor = v489; + v503 = g181.call(this, v2, a0, a2); + v504 = false; + v505 = 1; + v506 = 0; + v507 = 0; + v508 = 0; v509 = 0; - v510 = 0; + v510 = null; v511 = 0; - v512 = 0; - v513 = null; + v512 = false; + v513 = 5126; v514 = 0; - v515 = false; - v516 = 5126; - v517 = 0; - v518 = 0; - v519 = 0; - if (v16(v506)) { - v507 = true; - v513 = v8.createStream(34962, v506); - v516 = v513.dtype; + v515 = 0; + v516 = 0; + if (v16(v503)) { + v504 = true; + v510 = v8.createStream(34962, v503); + v513 = v510.dtype; } else { - v513 = v8.getBuffer(v506); - if (v513) { - v516 = v513.dtype; - } else if ("constant" in v506) { - v508 = 2; - if (typeof v506.constant === "number") { - v509 = v506.constant; - v510 = v511 = v512 = 0; + v510 = v8.getBuffer(v503); + if (v510) { + v513 = v510.dtype; + } else if ("constant" in v503) { + v505 = 2; + if (typeof v503.constant === "number") { + v506 = v503.constant; + v507 = v508 = v509 = 0; } else { - v509 = v506.constant.length > 0 ? v506.constant[0] : 0; - v510 = v506.constant.length > 1 ? v506.constant[1] : 0; - v511 = v506.constant.length > 2 ? v506.constant[2] : 0; - v512 = v506.constant.length > 3 ? v506.constant[3] : 0; + v506 = v503.constant.length > 0 ? v503.constant[0] : 0; + v507 = v503.constant.length > 1 ? v503.constant[1] : 0; + v508 = v503.constant.length > 2 ? v503.constant[2] : 0; + v509 = v503.constant.length > 3 ? v503.constant[3] : 0; } } else { - if (v16(v506.buffer)) { - v513 = v8.createStream(34962, v506.buffer); + if (v16(v503.buffer)) { + v510 = v8.createStream(34962, v503.buffer); } else { - v513 = v8.getBuffer(v506.buffer); + v510 = v8.getBuffer(v503.buffer); } - v516 = "type" in v506 ? v46[v506.type] : v513.dtype; - v515 = !!v506.normalized; - v514 = v506.size | 0; - v517 = v506.offset | 0; - v518 = v506.stride | 0; - v519 = v506.divisor | 0; + v513 = "type" in v503 ? v46[v503.type] : v510.dtype; + v512 = !!v503.normalized; + v511 = v503.size | 0; + v514 = v503.offset | 0; + v515 = v503.stride | 0; + v516 = v503.divisor | 0; } } - v521 = g520.state; - g520.state = v508; - v522 = g520.x; - g520.x = v509; - v523 = g520.y; - g520.y = v510; - v524 = g520.z; - g520.z = v511; - v525 = g520.w; - g520.w = v512; - v526 = g520.buffer; - g520.buffer = v513; - v527 = g520.size; - g520.size = v514; - v528 = g520.normalized; - g520.normalized = v515; - v529 = g520.type; - g520.type = v516; - v530 = g520.offset; - g520.offset = v517; - v531 = g520.stride; - g520.stride = v518; - v532 = g520.divisor; - g520.divisor = v519; - v533 = g124.call(this, v2, a0, a2); - v534 = false; - v535 = 1; + v518 = g517.state; + g517.state = v505; + v519 = g517.x; + g517.x = v506; + v520 = g517.y; + g517.y = v507; + v521 = g517.z; + g517.z = v508; + v522 = g517.w; + g517.w = v509; + v523 = g517.buffer; + g517.buffer = v510; + v524 = g517.size; + g517.size = v511; + v525 = g517.normalized; + g517.normalized = v512; + v526 = g517.type; + g517.type = v513; + v527 = g517.offset; + g517.offset = v514; + v528 = g517.stride; + g517.stride = v515; + v529 = g517.divisor; + g517.divisor = v516; + v530 = g124.call(this, v2, a0, a2); + v531 = false; + v532 = 1; + v533 = 0; + v534 = 0; + v535 = 0; v536 = 0; - v537 = 0; + v537 = null; v538 = 0; - v539 = 0; - v540 = null; + v539 = false; + v540 = 5126; v541 = 0; - v542 = false; - v543 = 5126; - v544 = 0; - v545 = 0; - v546 = 0; - if (v16(v533)) { - v534 = true; - v540 = v8.createStream(34962, v533); - v543 = v540.dtype; + v542 = 0; + v543 = 0; + if (v16(v530)) { + v531 = true; + v537 = v8.createStream(34962, v530); + v540 = v537.dtype; } else { - v540 = v8.getBuffer(v533); - if (v540) { - v543 = v540.dtype; - } else if ("constant" in v533) { - v535 = 2; - if (typeof v533.constant === "number") { - v536 = v533.constant; - v537 = v538 = v539 = 0; + v537 = v8.getBuffer(v530); + if (v537) { + v540 = v537.dtype; + } else if ("constant" in v530) { + v532 = 2; + if (typeof v530.constant === "number") { + v533 = v530.constant; + v534 = v535 = v536 = 0; } else { - v536 = v533.constant.length > 0 ? v533.constant[0] : 0; - v537 = v533.constant.length > 1 ? v533.constant[1] : 0; - v538 = v533.constant.length > 2 ? v533.constant[2] : 0; - v539 = v533.constant.length > 3 ? v533.constant[3] : 0; + v533 = v530.constant.length > 0 ? v530.constant[0] : 0; + v534 = v530.constant.length > 1 ? v530.constant[1] : 0; + v535 = v530.constant.length > 2 ? v530.constant[2] : 0; + v536 = v530.constant.length > 3 ? v530.constant[3] : 0; } } else { - if (v16(v533.buffer)) { - v540 = v8.createStream(34962, v533.buffer); + if (v16(v530.buffer)) { + v537 = v8.createStream(34962, v530.buffer); } else { - v540 = v8.getBuffer(v533.buffer); + v537 = v8.getBuffer(v530.buffer); } - v543 = "type" in v533 ? v46[v533.type] : v540.dtype; - v542 = !!v533.normalized; - v541 = v533.size | 0; - v544 = v533.offset | 0; - v545 = v533.stride | 0; - v546 = v533.divisor | 0; + v540 = "type" in v530 ? v46[v530.type] : v537.dtype; + v539 = !!v530.normalized; + v538 = v530.size | 0; + v541 = v530.offset | 0; + v542 = v530.stride | 0; + v543 = v530.divisor | 0; } } - v548 = g547.state; - g547.state = v535; - v549 = g547.x; - g547.x = v536; - v550 = g547.y; - g547.y = v537; - v551 = g547.z; - g547.z = v538; - v552 = g547.w; - g547.w = v539; - v553 = g547.buffer; - g547.buffer = v540; - v554 = g547.size; - g547.size = v541; - v555 = g547.normalized; - g547.normalized = v542; - v556 = g547.type; - g547.type = v543; - v557 = g547.offset; - g547.offset = v544; - v558 = g547.stride; - g547.stride = v545; - v559 = g547.divisor; - g547.divisor = v546; - v560 = g143.call(this, v2, a0, a2); - v561 = false; - v562 = 1; + v545 = g544.state; + g544.state = v532; + v546 = g544.x; + g544.x = v533; + v547 = g544.y; + g544.y = v534; + v548 = g544.z; + g544.z = v535; + v549 = g544.w; + g544.w = v536; + v550 = g544.buffer; + g544.buffer = v537; + v551 = g544.size; + g544.size = v538; + v552 = g544.normalized; + g544.normalized = v539; + v553 = g544.type; + g544.type = v540; + v554 = g544.offset; + g544.offset = v541; + v555 = g544.stride; + g544.stride = v542; + v556 = g544.divisor; + g544.divisor = v543; + v557 = g143.call(this, v2, a0, a2); + v558 = false; + v559 = 1; + v560 = 0; + v561 = 0; + v562 = 0; v563 = 0; - v564 = 0; + v564 = null; v565 = 0; - v566 = 0; - v567 = null; + v566 = false; + v567 = 5126; v568 = 0; - v569 = false; - v570 = 5126; - v571 = 0; - v572 = 0; - v573 = 0; - if (v16(v560)) { - v561 = true; - v567 = v8.createStream(34962, v560); - v570 = v567.dtype; + v569 = 0; + v570 = 0; + if (v16(v557)) { + v558 = true; + v564 = v8.createStream(34962, v557); + v567 = v564.dtype; } else { - v567 = v8.getBuffer(v560); - if (v567) { - v570 = v567.dtype; - } else if ("constant" in v560) { - v562 = 2; - if (typeof v560.constant === "number") { - v563 = v560.constant; - v564 = v565 = v566 = 0; + v564 = v8.getBuffer(v557); + if (v564) { + v567 = v564.dtype; + } else if ("constant" in v557) { + v559 = 2; + if (typeof v557.constant === "number") { + v560 = v557.constant; + v561 = v562 = v563 = 0; } else { - v563 = v560.constant.length > 0 ? v560.constant[0] : 0; - v564 = v560.constant.length > 1 ? v560.constant[1] : 0; - v565 = v560.constant.length > 2 ? v560.constant[2] : 0; - v566 = v560.constant.length > 3 ? v560.constant[3] : 0; + v560 = v557.constant.length > 0 ? v557.constant[0] : 0; + v561 = v557.constant.length > 1 ? v557.constant[1] : 0; + v562 = v557.constant.length > 2 ? v557.constant[2] : 0; + v563 = v557.constant.length > 3 ? v557.constant[3] : 0; } } else { - if (v16(v560.buffer)) { - v567 = v8.createStream(34962, v560.buffer); + if (v16(v557.buffer)) { + v564 = v8.createStream(34962, v557.buffer); } else { - v567 = v8.getBuffer(v560.buffer); + v564 = v8.getBuffer(v557.buffer); } - v570 = "type" in v560 ? v46[v560.type] : v567.dtype; - v569 = !!v560.normalized; - v568 = v560.size | 0; - v571 = v560.offset | 0; - v572 = v560.stride | 0; - v573 = v560.divisor | 0; + v567 = "type" in v557 ? v46[v557.type] : v564.dtype; + v566 = !!v557.normalized; + v565 = v557.size | 0; + v568 = v557.offset | 0; + v569 = v557.stride | 0; + v570 = v557.divisor | 0; } } - v575 = g574.state; - g574.state = v562; - v576 = g574.x; - g574.x = v563; - v577 = g574.y; - g574.y = v564; - v578 = g574.z; - g574.z = v565; - v579 = g574.w; - g574.w = v566; - v580 = g574.buffer; - g574.buffer = v567; - v581 = g574.size; - g574.size = v568; - v582 = g574.normalized; - g574.normalized = v569; - v583 = g574.type; - g574.type = v570; - v584 = g574.offset; - g574.offset = v571; - v585 = g574.stride; - g574.stride = v572; - v586 = g574.divisor; - g574.divisor = v573; - v587 = g105.call(this, v2, a0, a2); - v588 = false; - v589 = 1; + v572 = g571.state; + g571.state = v559; + v573 = g571.x; + g571.x = v560; + v574 = g571.y; + g571.y = v561; + v575 = g571.z; + g571.z = v562; + v576 = g571.w; + g571.w = v563; + v577 = g571.buffer; + g571.buffer = v564; + v578 = g571.size; + g571.size = v565; + v579 = g571.normalized; + g571.normalized = v566; + v580 = g571.type; + g571.type = v567; + v581 = g571.offset; + g571.offset = v568; + v582 = g571.stride; + g571.stride = v569; + v583 = g571.divisor; + g571.divisor = v570; + v584 = g105.call(this, v2, a0, a2); + v585 = false; + v586 = 1; + v587 = 0; + v588 = 0; + v589 = 0; v590 = 0; - v591 = 0; + v591 = null; v592 = 0; - v593 = 0; - v594 = null; + v593 = false; + v594 = 5126; v595 = 0; - v596 = false; - v597 = 5126; - v598 = 0; - v599 = 0; - v600 = 0; - if (v16(v587)) { - v588 = true; - v594 = v8.createStream(34962, v587); - v597 = v594.dtype; + v596 = 0; + v597 = 0; + if (v16(v584)) { + v585 = true; + v591 = v8.createStream(34962, v584); + v594 = v591.dtype; } else { - v594 = v8.getBuffer(v587); - if (v594) { - v597 = v594.dtype; - } else if ("constant" in v587) { - v589 = 2; - if (typeof v587.constant === "number") { - v590 = v587.constant; - v591 = v592 = v593 = 0; + v591 = v8.getBuffer(v584); + if (v591) { + v594 = v591.dtype; + } else if ("constant" in v584) { + v586 = 2; + if (typeof v584.constant === "number") { + v587 = v584.constant; + v588 = v589 = v590 = 0; } else { - v590 = v587.constant.length > 0 ? v587.constant[0] : 0; - v591 = v587.constant.length > 1 ? v587.constant[1] : 0; - v592 = v587.constant.length > 2 ? v587.constant[2] : 0; - v593 = v587.constant.length > 3 ? v587.constant[3] : 0; + v587 = v584.constant.length > 0 ? v584.constant[0] : 0; + v588 = v584.constant.length > 1 ? v584.constant[1] : 0; + v589 = v584.constant.length > 2 ? v584.constant[2] : 0; + v590 = v584.constant.length > 3 ? v584.constant[3] : 0; } } else { - if (v16(v587.buffer)) { - v594 = v8.createStream(34962, v587.buffer); + if (v16(v584.buffer)) { + v591 = v8.createStream(34962, v584.buffer); } else { - v594 = v8.getBuffer(v587.buffer); + v591 = v8.getBuffer(v584.buffer); } - v597 = "type" in v587 ? v46[v587.type] : v594.dtype; - v596 = !!v587.normalized; - v595 = v587.size | 0; - v598 = v587.offset | 0; - v599 = v587.stride | 0; - v600 = v587.divisor | 0; + v594 = "type" in v584 ? v46[v584.type] : v591.dtype; + v593 = !!v584.normalized; + v592 = v584.size | 0; + v595 = v584.offset | 0; + v596 = v584.stride | 0; + v597 = v584.divisor | 0; } } - v602 = g601.state; - g601.state = v589; - v603 = g601.x; - g601.x = v590; - v604 = g601.y; - g601.y = v591; - v605 = g601.z; - g601.z = v592; - v606 = g601.w; - g601.w = v593; - v607 = g601.buffer; - g601.buffer = v594; - v608 = g601.size; - g601.size = v595; - v609 = g601.normalized; - g601.normalized = v596; - v610 = g601.type; - g601.type = v597; - v611 = g601.offset; - g601.offset = v598; - v612 = g601.stride; - g601.stride = v599; - v613 = g601.divisor; - g601.divisor = v600; - v614 = g162.call(this, v2, a0, a2); - v615 = false; - v616 = 1; + v599 = g598.state; + g598.state = v586; + v600 = g598.x; + g598.x = v587; + v601 = g598.y; + g598.y = v588; + v602 = g598.z; + g598.z = v589; + v603 = g598.w; + g598.w = v590; + v604 = g598.buffer; + g598.buffer = v591; + v605 = g598.size; + g598.size = v592; + v606 = g598.normalized; + g598.normalized = v593; + v607 = g598.type; + g598.type = v594; + v608 = g598.offset; + g598.offset = v595; + v609 = g598.stride; + g598.stride = v596; + v610 = g598.divisor; + g598.divisor = v597; + v611 = g162.call(this, v2, a0, a2); + v612 = false; + v613 = 1; + v614 = 0; + v615 = 0; + v616 = 0; v617 = 0; - v618 = 0; + v618 = null; v619 = 0; - v620 = 0; - v621 = null; + v620 = false; + v621 = 5126; v622 = 0; - v623 = false; - v624 = 5126; - v625 = 0; - v626 = 0; - v627 = 0; - if (v16(v614)) { - v615 = true; - v621 = v8.createStream(34962, v614); - v624 = v621.dtype; + v623 = 0; + v624 = 0; + if (v16(v611)) { + v612 = true; + v618 = v8.createStream(34962, v611); + v621 = v618.dtype; } else { - v621 = v8.getBuffer(v614); - if (v621) { - v624 = v621.dtype; - } else if ("constant" in v614) { - v616 = 2; - if (typeof v614.constant === "number") { - v617 = v614.constant; - v618 = v619 = v620 = 0; + v618 = v8.getBuffer(v611); + if (v618) { + v621 = v618.dtype; + } else if ("constant" in v611) { + v613 = 2; + if (typeof v611.constant === "number") { + v614 = v611.constant; + v615 = v616 = v617 = 0; } else { - v617 = v614.constant.length > 0 ? v614.constant[0] : 0; - v618 = v614.constant.length > 1 ? v614.constant[1] : 0; - v619 = v614.constant.length > 2 ? v614.constant[2] : 0; - v620 = v614.constant.length > 3 ? v614.constant[3] : 0; + v614 = v611.constant.length > 0 ? v611.constant[0] : 0; + v615 = v611.constant.length > 1 ? v611.constant[1] : 0; + v616 = v611.constant.length > 2 ? v611.constant[2] : 0; + v617 = v611.constant.length > 3 ? v611.constant[3] : 0; } } else { - if (v16(v614.buffer)) { - v621 = v8.createStream(34962, v614.buffer); + if (v16(v611.buffer)) { + v618 = v8.createStream(34962, v611.buffer); } else { - v621 = v8.getBuffer(v614.buffer); + v618 = v8.getBuffer(v611.buffer); } - v624 = "type" in v614 ? v46[v614.type] : v621.dtype; - v623 = !!v614.normalized; - v622 = v614.size | 0; - v625 = v614.offset | 0; - v626 = v614.stride | 0; - v627 = v614.divisor | 0; + v621 = "type" in v611 ? v46[v611.type] : v618.dtype; + v620 = !!v611.normalized; + v619 = v611.size | 0; + v622 = v611.offset | 0; + v623 = v611.stride | 0; + v624 = v611.divisor | 0; } } - v629 = g628.state; - g628.state = v616; - v630 = g628.x; - g628.x = v617; - v631 = g628.y; - g628.y = v618; - v632 = g628.z; - g628.z = v619; - v633 = g628.w; - g628.w = v620; - v634 = g628.buffer; - g628.buffer = v621; - v635 = g628.size; - g628.size = v622; - v636 = g628.normalized; - g628.normalized = v623; - v637 = g628.type; - g628.type = v624; - v638 = g628.offset; - g628.offset = v625; - v639 = g628.stride; - g628.stride = v626; - v640 = g628.divisor; - g628.divisor = v627; - v642 = v9.vert; - v9.vert = g641; - v644 = v9.frag; - v9.frag = g643; + v626 = g625.state; + g625.state = v613; + v627 = g625.x; + g625.x = v614; + v628 = g625.y; + g625.y = v615; + v629 = g625.z; + g625.z = v616; + v630 = g625.w; + g625.w = v617; + v631 = g625.buffer; + g625.buffer = v618; + v632 = g625.size; + g625.size = v619; + v633 = g625.normalized; + g625.normalized = v620; + v634 = g625.type; + g625.type = v621; + v635 = g625.offset; + g625.offset = v622; + v636 = g625.stride; + g625.stride = v623; + v637 = g625.divisor; + g625.divisor = v624; + v639 = v9.vert; + v9.vert = g638; + v641 = v9.frag; + v9.frag = g640; v5.dirty = true; a1(v2, a0, a2); - v2.viewportWidth = v318; - v2.viewportHeight = v319; - v39[0] = v320; - v39[1] = v321; - v39[2] = v322; - v39[3] = v323; - v17[0] = v325; - v17[1] = v327; - v17[2] = v329; - v17[3] = v331; - v4.blend_enable = v333; - v21[0] = v335; - v21[1] = v337; - v21[2] = v339; - v21[3] = v341; - v4.depth_enable = v343; - v37[0] = v349; - v37[1] = v350; - v37[2] = v351; - v37[3] = v352; - v4.scissor_enable = v354; - v4.stencil_enable = v356; - if (v357) { - g48.cpuTime += performance.now() - v358; + v2.viewportWidth = v315; + v2.viewportHeight = v316; + v39[0] = v317; + v39[1] = v318; + v39[2] = v319; + v39[3] = v320; + v17[0] = v322; + v17[1] = v324; + v17[2] = v326; + v17[3] = v328; + v4.blend_enable = v330; + v21[0] = v332; + v21[1] = v334; + v21[2] = v336; + v21[3] = v338; + v4.depth_enable = v340; + v37[0] = v346; + v37[1] = v347; + v37[2] = v348; + v37[3] = v349; + v4.scissor_enable = v351; + v4.stencil_enable = v353; + if (v354) { + g48.cpuTime += performance.now() - v355; } - if (v361) { - v7.destroyStream(v360); + if (v358) { + v7.destroyStream(v357); } - v6.elements = v362; - v6.offset = v364; - v6.count = v366; - v6.primitive = v368; + v6.elements = v359; + v6.offset = v361; + v6.count = v363; + v6.primitive = v365; + v12[g366] = v367; v12[g369] = v370; v12[g372] = v373; v12[g375] = v376; @@ -178988,304 +177536,303 @@ void main() { v12[g387] = v388; v12[g390] = v391; v12[g393] = v394; - v12[g396] = v397; - if (v399) { - v8.destroyStream(v405); + if (v396) { + v8.destroyStream(v402); } - g412.state = v413; - g412.x = v414; - g412.y = v415; - g412.z = v416; - g412.w = v417; - g412.buffer = v418; - g412.size = v419; - g412.normalized = v420; - g412.type = v421; - g412.offset = v422; - g412.stride = v423; - g412.divisor = v424; - if (v426) { - v8.destroyStream(v432); + g409.state = v410; + g409.x = v411; + g409.y = v412; + g409.z = v413; + g409.w = v414; + g409.buffer = v415; + g409.size = v416; + g409.normalized = v417; + g409.type = v418; + g409.offset = v419; + g409.stride = v420; + g409.divisor = v421; + if (v423) { + v8.destroyStream(v429); } - g439.state = v440; - g439.x = v441; - g439.y = v442; - g439.z = v443; - g439.w = v444; - g439.buffer = v445; - g439.size = v446; - g439.normalized = v447; - g439.type = v448; - g439.offset = v449; - g439.stride = v450; - g439.divisor = v451; - if (v453) { - v8.destroyStream(v459); + g436.state = v437; + g436.x = v438; + g436.y = v439; + g436.z = v440; + g436.w = v441; + g436.buffer = v442; + g436.size = v443; + g436.normalized = v444; + g436.type = v445; + g436.offset = v446; + g436.stride = v447; + g436.divisor = v448; + if (v450) { + v8.destroyStream(v456); } - g466.state = v467; - g466.x = v468; - g466.y = v469; - g466.z = v470; - g466.w = v471; - g466.buffer = v472; - g466.size = v473; - g466.normalized = v474; - g466.type = v475; - g466.offset = v476; - g466.stride = v477; - g466.divisor = v478; - if (v480) { - v8.destroyStream(v486); + g463.state = v464; + g463.x = v465; + g463.y = v466; + g463.z = v467; + g463.w = v468; + g463.buffer = v469; + g463.size = v470; + g463.normalized = v471; + g463.type = v472; + g463.offset = v473; + g463.stride = v474; + g463.divisor = v475; + if (v477) { + v8.destroyStream(v483); } - g493.state = v494; - g493.x = v495; - g493.y = v496; - g493.z = v497; - g493.w = v498; - g493.buffer = v499; - g493.size = v500; - g493.normalized = v501; - g493.type = v502; - g493.offset = v503; - g493.stride = v504; - g493.divisor = v505; - if (v507) { - v8.destroyStream(v513); + g490.state = v491; + g490.x = v492; + g490.y = v493; + g490.z = v494; + g490.w = v495; + g490.buffer = v496; + g490.size = v497; + g490.normalized = v498; + g490.type = v499; + g490.offset = v500; + g490.stride = v501; + g490.divisor = v502; + if (v504) { + v8.destroyStream(v510); } - g520.state = v521; - g520.x = v522; - g520.y = v523; - g520.z = v524; - g520.w = v525; - g520.buffer = v526; - g520.size = v527; - g520.normalized = v528; - g520.type = v529; - g520.offset = v530; - g520.stride = v531; - g520.divisor = v532; - if (v534) { - v8.destroyStream(v540); + g517.state = v518; + g517.x = v519; + g517.y = v520; + g517.z = v521; + g517.w = v522; + g517.buffer = v523; + g517.size = v524; + g517.normalized = v525; + g517.type = v526; + g517.offset = v527; + g517.stride = v528; + g517.divisor = v529; + if (v531) { + v8.destroyStream(v537); } - g547.state = v548; - g547.x = v549; - g547.y = v550; - g547.z = v551; - g547.w = v552; - g547.buffer = v553; - g547.size = v554; - g547.normalized = v555; - g547.type = v556; - g547.offset = v557; - g547.stride = v558; - g547.divisor = v559; - if (v561) { - v8.destroyStream(v567); + g544.state = v545; + g544.x = v546; + g544.y = v547; + g544.z = v548; + g544.w = v549; + g544.buffer = v550; + g544.size = v551; + g544.normalized = v552; + g544.type = v553; + g544.offset = v554; + g544.stride = v555; + g544.divisor = v556; + if (v558) { + v8.destroyStream(v564); } - g574.state = v575; - g574.x = v576; - g574.y = v577; - g574.z = v578; - g574.w = v579; - g574.buffer = v580; - g574.size = v581; - g574.normalized = v582; - g574.type = v583; - g574.offset = v584; - g574.stride = v585; - g574.divisor = v586; - if (v588) { - v8.destroyStream(v594); + g571.state = v572; + g571.x = v573; + g571.y = v574; + g571.z = v575; + g571.w = v576; + g571.buffer = v577; + g571.size = v578; + g571.normalized = v579; + g571.type = v580; + g571.offset = v581; + g571.stride = v582; + g571.divisor = v583; + if (v585) { + v8.destroyStream(v591); } - g601.state = v602; - g601.x = v603; - g601.y = v604; - g601.z = v605; - g601.w = v606; - g601.buffer = v607; - g601.size = v608; - g601.normalized = v609; - g601.type = v610; - g601.offset = v611; - g601.stride = v612; - g601.divisor = v613; - if (v615) { - v8.destroyStream(v621); + g598.state = v599; + g598.x = v600; + g598.y = v601; + g598.z = v602; + g598.w = v603; + g598.buffer = v604; + g598.size = v605; + g598.normalized = v606; + g598.type = v607; + g598.offset = v608; + g598.stride = v609; + g598.divisor = v610; + if (v612) { + v8.destroyStream(v618); } - g628.state = v629; - g628.x = v630; - g628.y = v631; - g628.z = v632; - g628.w = v633; - g628.buffer = v634; - g628.size = v635; - g628.normalized = v636; - g628.type = v637; - g628.offset = v638; - g628.stride = v639; - g628.divisor = v640; - v9.vert = v642; - v9.frag = v644; + g625.state = v626; + g625.x = v627; + g625.y = v628; + g625.z = v629; + g625.w = v630; + g625.buffer = v631; + g625.size = v632; + g625.normalized = v633; + g625.type = v634; + g625.offset = v635; + g625.stride = v636; + g625.divisor = v637; + v9.vert = v639; + v9.frag = v641; v5.dirty = true; }, "batch": function(a0, a1) { - var v645, v646, v685, v686, v687, v688, v689; - v645 = v14.angle_instanced_arrays; - v646 = v13.next; - if (v646 !== v13.cur) { - if (v646) { - v1.bindFramebuffer(36160, v646.framebuffer); + var v642, v643, v682, v683, v684, v685, v686; + v642 = v14.angle_instanced_arrays; + v643 = v13.next; + if (v643 !== v13.cur) { + if (v643) { + v1.bindFramebuffer(36160, v643.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v646; + v13.cur = v643; } if (v5.dirty) { - var v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677, v678, v679, v680; - v647 = v4.dither; - if (v647 !== v5.dither) { - if (v647) { + var v644, v645, v646, v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677; + v644 = v4.dither; + if (v644 !== v5.dither) { + if (v644) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v647; + v5.dither = v644; } - v648 = v19[0]; - v649 = v19[1]; - if (v648 !== v20[0] || v649 !== v20[1]) { - v1.blendEquationSeparate(v648, v649); - v20[0] = v648; - v20[1] = v649; + v645 = v19[0]; + v646 = v19[1]; + if (v645 !== v20[0] || v646 !== v20[1]) { + v1.blendEquationSeparate(v645, v646); + v20[0] = v645; + v20[1] = v646; } - v650 = v4.depth_func; - if (v650 !== v5.depth_func) { - v1.depthFunc(v650); - v5.depth_func = v650; + v647 = v4.depth_func; + if (v647 !== v5.depth_func) { + v1.depthFunc(v647); + v5.depth_func = v647; } - v651 = v23[0]; - v652 = v23[1]; - if (v651 !== v24[0] || v652 !== v24[1]) { - v1.depthRange(v651, v652); - v24[0] = v651; - v24[1] = v652; + v648 = v23[0]; + v649 = v23[1]; + if (v648 !== v24[0] || v649 !== v24[1]) { + v1.depthRange(v648, v649); + v24[0] = v648; + v24[1] = v649; } - v653 = v4.depth_mask; - if (v653 !== v5.depth_mask) { - v1.depthMask(v653); - v5.depth_mask = v653; + v650 = v4.depth_mask; + if (v650 !== v5.depth_mask) { + v1.depthMask(v650); + v5.depth_mask = v650; } - v654 = v25[0]; - v655 = v25[1]; - v656 = v25[2]; - v657 = v25[3]; - if (v654 !== v26[0] || v655 !== v26[1] || v656 !== v26[2] || v657 !== v26[3]) { - v1.colorMask(v654, v655, v656, v657); - v26[0] = v654; - v26[1] = v655; - v26[2] = v656; - v26[3] = v657; + v651 = v25[0]; + v652 = v25[1]; + v653 = v25[2]; + v654 = v25[3]; + if (v651 !== v26[0] || v652 !== v26[1] || v653 !== v26[2] || v654 !== v26[3]) { + v1.colorMask(v651, v652, v653, v654); + v26[0] = v651; + v26[1] = v652; + v26[2] = v653; + v26[3] = v654; } - v658 = v4.cull_enable; - if (v658 !== v5.cull_enable) { - if (v658) { + v655 = v4.cull_enable; + if (v655 !== v5.cull_enable) { + if (v655) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v658; + v5.cull_enable = v655; } - v659 = v4.cull_face; - if (v659 !== v5.cull_face) { - v1.cullFace(v659); - v5.cull_face = v659; + v656 = v4.cull_face; + if (v656 !== v5.cull_face) { + v1.cullFace(v656); + v5.cull_face = v656; } - v660 = v4.frontFace; - if (v660 !== v5.frontFace) { - v1.frontFace(v660); - v5.frontFace = v660; + v657 = v4.frontFace; + if (v657 !== v5.frontFace) { + v1.frontFace(v657); + v5.frontFace = v657; } - v661 = v4.lineWidth; - if (v661 !== v5.lineWidth) { - v1.lineWidth(v661); - v5.lineWidth = v661; + v658 = v4.lineWidth; + if (v658 !== v5.lineWidth) { + v1.lineWidth(v658); + v5.lineWidth = v658; } - v662 = v4.polygonOffset_enable; - if (v662 !== v5.polygonOffset_enable) { - if (v662) { + v659 = v4.polygonOffset_enable; + if (v659 !== v5.polygonOffset_enable) { + if (v659) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v662; + v5.polygonOffset_enable = v659; } - v663 = v27[0]; - v664 = v27[1]; - if (v663 !== v28[0] || v664 !== v28[1]) { - v1.polygonOffset(v663, v664); - v28[0] = v663; - v28[1] = v664; + v660 = v27[0]; + v661 = v27[1]; + if (v660 !== v28[0] || v661 !== v28[1]) { + v1.polygonOffset(v660, v661); + v28[0] = v660; + v28[1] = v661; } - v665 = v4.sample_alpha; - if (v665 !== v5.sample_alpha) { - if (v665) { + v662 = v4.sample_alpha; + if (v662 !== v5.sample_alpha) { + if (v662) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v665; + v5.sample_alpha = v662; } - v666 = v4.sample_enable; - if (v666 !== v5.sample_enable) { - if (v666) { + v663 = v4.sample_enable; + if (v663 !== v5.sample_enable) { + if (v663) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v666; + v5.sample_enable = v663; } - v667 = v29[0]; - v668 = v29[1]; - if (v667 !== v30[0] || v668 !== v30[1]) { - v1.sampleCoverage(v667, v668); - v30[0] = v667; - v30[1] = v668; + v664 = v29[0]; + v665 = v29[1]; + if (v664 !== v30[0] || v665 !== v30[1]) { + v1.sampleCoverage(v664, v665); + v30[0] = v664; + v30[1] = v665; } - v669 = v4.stencil_mask; - if (v669 !== v5.stencil_mask) { - v1.stencilMask(v669); - v5.stencil_mask = v669; + v666 = v4.stencil_mask; + if (v666 !== v5.stencil_mask) { + v1.stencilMask(v666); + v5.stencil_mask = v666; } - v670 = v31[0]; - v671 = v31[1]; - v672 = v31[2]; - if (v670 !== v32[0] || v671 !== v32[1] || v672 !== v32[2]) { - v1.stencilFunc(v670, v671, v672); - v32[0] = v670; - v32[1] = v671; - v32[2] = v672; + v667 = v31[0]; + v668 = v31[1]; + v669 = v31[2]; + if (v667 !== v32[0] || v668 !== v32[1] || v669 !== v32[2]) { + v1.stencilFunc(v667, v668, v669); + v32[0] = v667; + v32[1] = v668; + v32[2] = v669; } - v673 = v33[0]; - v674 = v33[1]; - v675 = v33[2]; - v676 = v33[3]; - if (v673 !== v34[0] || v674 !== v34[1] || v675 !== v34[2] || v676 !== v34[3]) { - v1.stencilOpSeparate(v673, v674, v675, v676); - v34[0] = v673; - v34[1] = v674; - v34[2] = v675; - v34[3] = v676; + v670 = v33[0]; + v671 = v33[1]; + v672 = v33[2]; + v673 = v33[3]; + if (v670 !== v34[0] || v671 !== v34[1] || v672 !== v34[2] || v673 !== v34[3]) { + v1.stencilOpSeparate(v670, v671, v672, v673); + v34[0] = v670; + v34[1] = v671; + v34[2] = v672; + v34[3] = v673; } - v677 = v35[0]; - v678 = v35[1]; - v679 = v35[2]; - v680 = v35[3]; - if (v677 !== v36[0] || v678 !== v36[1] || v679 !== v36[2] || v680 !== v36[3]) { - v1.stencilOpSeparate(v677, v678, v679, v680); - v36[0] = v677; - v36[1] = v678; - v36[2] = v679; - v36[3] = v680; + v674 = v35[0]; + v675 = v35[1]; + v676 = v35[2]; + v677 = v35[3]; + if (v674 !== v36[0] || v675 !== v36[1] || v676 !== v36[2] || v677 !== v36[3]) { + v1.stencilOpSeparate(v674, v675, v676, v677); + v36[0] = v674; + v36[1] = v675; + v36[2] = v676; + v36[3] = v677; } } v1.blendColor(0, 0, 0, 1); @@ -179293,924 +177840,917 @@ void main() { v18[1] = 0; v18[2] = 0; v18[3] = 1; - if (g681) { + if (g678) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g681; + v5.blend_enable = g678; v1.blendFuncSeparate(770, 771, 773, 1); v22[0] = 770; v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g682) { + if (g679) { v1.enable(2929); } else { v1.disable(2929); } - v5.depth_enable = g682; - if (g683) { + v5.depth_enable = g679; + if (g680) { v1.enable(3089); } else { v1.disable(3089); } - v5.scissor_enable = g683; - if (g684) { + v5.scissor_enable = g680; + if (g681) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = g684; - v685 = v5.profile; - if (v685) { - v686 = performance.now(); + v5.stencil_enable = g681; + v682 = v5.profile; + if (v682) { + v683 = performance.now(); g48.count += a1; } v1.useProgram(g103.program); - v687 = v14.angle_instanced_arrays; - var v891; + v684 = v14.angle_instanced_arrays; + var v886; v11.setVAO(null); v1.uniform1i(g276.location, false); - v1.uniform1i(g287.location, g288.bind()); - v891 = v6.instances; - for (v688 = 0; v688 < a1; ++v688) { - v689 = a0[v688]; - var v690, v691, v692, v693, v694, v695, v696, v697, v698, v699, v700, v701, v702, v703, v704, v705, v706, v707, v708, v709, v710, v711, v712, v713, v714, v715, v716, v717, v718, v719, v720, v721, v722, v723, v724, v725, v726, v727, v728, v729, v730, v731, v732, v733, v734, v735, v736, v737, v738, v739, v740, v741, v742, v743, v744, v745, v746, v747, v748, v749, v750, v751, v752, v753, v754, v755, v756, v757, v758, v759, v760, v761, v762, v763, v764, v765, v766, v767, v768, v769, v770, v771, v772, v773, v774, v775, v776, v777, v778, v779, v780, v781, v782, v783, v784, v785, v786, v787, v788, v789, v790, v791, v792, v793, v794, v795, v796, v797, v798, v799, v800, v801, v802, v803, v804, v805, v806, v807, v808, v809, v810, v811, v812, v813, v814, v815, v816, v817, v818, v819, v820, v821, v822, v823, v824, v825, v826, v827, v828, v829, v830, v831, v832, v833, v834, v835, v836, v837, v838, v839, v840, v841, v842, v843, v844, v845, v846, v847, v848, v849, v850, v851, v852, v853, v854, v855, v856, v857, v858, v859, v860, v861, v862, v863, v864, v865, v866, v867, v868, v869, v870, v871, v872, v873, v874, v875, v876, v877, v878, v879, v880, v881, v882, v883, v884, v885, v886, v887, v888, v889, v890; - v690 = v689["viewport"]; - v691 = v690.x | 0; - v692 = v690.y | 0; - v693 = "width" in v690 ? v690.width | 0 : v2.framebufferWidth - v691; - v694 = "height" in v690 ? v690.height | 0 : v2.framebufferHeight - v692; - v695 = v2.viewportWidth; - v2.viewportWidth = v693; - v696 = v2.viewportHeight; - v2.viewportHeight = v694; - v1.viewport(v691, v692, v693, v694); - v40[0] = v691; - v40[1] = v692; - v40[2] = v693; - v40[3] = v694; - v697 = v689["viewport"]; - v698 = v697.x | 0; - v699 = v697.y | 0; - v700 = "width" in v697 ? v697.width | 0 : v2.framebufferWidth - v698; - v701 = "height" in v697 ? v697.height | 0 : v2.framebufferHeight - v699; - v1.scissor(v698, v699, v700, v701); - v38[0] = v698; - v38[1] = v699; - v38[2] = v700; - v38[3] = v701; - v702 = g105.call(this, v2, v689, v688); - v703 = false; - v704 = 1; + v1.uniform1i(g284.location, g285.bind()); + v886 = v6.instances; + for (v685 = 0; v685 < a1; ++v685) { + v686 = a0[v685]; + var v687, v688, v689, v690, v691, v692, v693, v694, v695, v696, v697, v698, v699, v700, v701, v702, v703, v704, v705, v706, v707, v708, v709, v710, v711, v712, v713, v714, v715, v716, v717, v718, v719, v720, v721, v722, v723, v724, v725, v726, v727, v728, v729, v730, v731, v732, v733, v734, v735, v736, v737, v738, v739, v740, v741, v742, v743, v744, v745, v746, v747, v748, v749, v750, v751, v752, v753, v754, v755, v756, v757, v758, v759, v760, v761, v762, v763, v764, v765, v766, v767, v768, v769, v770, v771, v772, v773, v774, v775, v776, v777, v778, v779, v780, v781, v782, v783, v784, v785, v786, v787, v788, v789, v790, v791, v792, v793, v794, v795, v796, v797, v798, v799, v800, v801, v802, v803, v804, v805, v806, v807, v808, v809, v810, v811, v812, v813, v814, v815, v816, v817, v818, v819, v820, v821, v822, v823, v824, v825, v826, v827, v828, v829, v830, v831, v832, v833, v834, v835, v836, v837, v838, v839, v840, v841, v842, v843, v844, v845, v846, v847, v848, v849, v850, v851, v852, v853, v854, v855, v856, v857, v858, v859, v860, v861, v862, v863, v864, v865, v866, v867, v868, v869, v870, v871, v872, v873, v874, v875, v876, v877, v878, v879, v880, v881, v882, v883, v884, v885; + v687 = v686["viewport"]; + v688 = v687.x | 0; + v689 = v687.y | 0; + v690 = "width" in v687 ? v687.width | 0 : v2.framebufferWidth - v688; + v691 = "height" in v687 ? v687.height | 0 : v2.framebufferHeight - v689; + v692 = v2.viewportWidth; + v2.viewportWidth = v690; + v693 = v2.viewportHeight; + v2.viewportHeight = v691; + v1.viewport(v688, v689, v690, v691); + v40[0] = v688; + v40[1] = v689; + v40[2] = v690; + v40[3] = v691; + v694 = v686["viewport"]; + v695 = v694.x | 0; + v696 = v694.y | 0; + v697 = "width" in v694 ? v694.width | 0 : v2.framebufferWidth - v695; + v698 = "height" in v694 ? v694.height | 0 : v2.framebufferHeight - v696; + v1.scissor(v695, v696, v697, v698); + v38[0] = v695; + v38[1] = v696; + v38[2] = v697; + v38[3] = v698; + v699 = g105.call(this, v2, v686, v685); + v700 = false; + v701 = 1; + v702 = 0; + v703 = 0; + v704 = 0; v705 = 0; - v706 = 0; + v706 = null; v707 = 0; - v708 = 0; - v709 = null; + v708 = false; + v709 = 5126; v710 = 0; - v711 = false; - v712 = 5126; - v713 = 0; - v714 = 0; - v715 = 0; - if (v16(v702)) { - v703 = true; - v709 = v8.createStream(34962, v702); - v712 = v709.dtype; + v711 = 0; + v712 = 0; + if (v16(v699)) { + v700 = true; + v706 = v8.createStream(34962, v699); + v709 = v706.dtype; } else { - v709 = v8.getBuffer(v702); - if (v709) { - v712 = v709.dtype; - } else if ("constant" in v702) { - v704 = 2; - if (typeof v702.constant === "number") { - v705 = v702.constant; - v706 = v707 = v708 = 0; + v706 = v8.getBuffer(v699); + if (v706) { + v709 = v706.dtype; + } else if ("constant" in v699) { + v701 = 2; + if (typeof v699.constant === "number") { + v702 = v699.constant; + v703 = v704 = v705 = 0; } else { - v705 = v702.constant.length > 0 ? v702.constant[0] : 0; - v706 = v702.constant.length > 1 ? v702.constant[1] : 0; - v707 = v702.constant.length > 2 ? v702.constant[2] : 0; - v708 = v702.constant.length > 3 ? v702.constant[3] : 0; + v702 = v699.constant.length > 0 ? v699.constant[0] : 0; + v703 = v699.constant.length > 1 ? v699.constant[1] : 0; + v704 = v699.constant.length > 2 ? v699.constant[2] : 0; + v705 = v699.constant.length > 3 ? v699.constant[3] : 0; } } else { - if (v16(v702.buffer)) { - v709 = v8.createStream(34962, v702.buffer); + if (v16(v699.buffer)) { + v706 = v8.createStream(34962, v699.buffer); } else { - v709 = v8.getBuffer(v702.buffer); + v706 = v8.getBuffer(v699.buffer); } - v712 = "type" in v702 ? v46[v702.type] : v709.dtype; - v711 = !!v702.normalized; - v710 = v702.size | 0; - v713 = v702.offset | 0; - v714 = v702.stride | 0; - v715 = v702.divisor | 0; + v709 = "type" in v699 ? v46[v699.type] : v706.dtype; + v708 = !!v699.normalized; + v707 = v699.size | 0; + v710 = v699.offset | 0; + v711 = v699.stride | 0; + v712 = v699.divisor | 0; } } - v716 = g120.location; - v717 = v10[v716]; - if (v704 === 1) { - if (!v717.buffer) { - v1.enableVertexAttribArray(v716); + v713 = g120.location; + v714 = v10[v713]; + if (v701 === 1) { + if (!v714.buffer) { + v1.enableVertexAttribArray(v713); } - v718 = v710 || 4; - if (v717.type !== v712 || v717.size !== v718 || v717.buffer !== v709 || v717.normalized !== v711 || v717.offset !== v713 || v717.stride !== v714) { - v1.bindBuffer(34962, v709.buffer); - v1.vertexAttribPointer(v716, v718, v712, v711, v714, v713); - v717.type = v712; - v717.size = v718; - v717.buffer = v709; - v717.normalized = v711; - v717.offset = v713; - v717.stride = v714; + v715 = v707 || 4; + if (v714.type !== v709 || v714.size !== v715 || v714.buffer !== v706 || v714.normalized !== v708 || v714.offset !== v710 || v714.stride !== v711) { + v1.bindBuffer(34962, v706.buffer); + v1.vertexAttribPointer(v713, v715, v709, v708, v711, v710); + v714.type = v709; + v714.size = v715; + v714.buffer = v706; + v714.normalized = v708; + v714.offset = v710; + v714.stride = v711; } - if (v717.divisor !== v715) { - v687.vertexAttribDivisorANGLE(v716, v715); - v717.divisor = v715; + if (v714.divisor !== v712) { + v684.vertexAttribDivisorANGLE(v713, v712); + v714.divisor = v712; } } else { - if (v717.buffer) { - v1.disableVertexAttribArray(v716); - v717.buffer = null; + if (v714.buffer) { + v1.disableVertexAttribArray(v713); + v714.buffer = null; } - if (v717.x !== v705 || v717.y !== v706 || v717.z !== v707 || v717.w !== v708) { - v1.vertexAttrib4f(v716, v705, v706, v707, v708); - v717.x = v705; - v717.y = v706; - v717.z = v707; - v717.w = v708; + if (v714.x !== v702 || v714.y !== v703 || v714.z !== v704 || v714.w !== v705) { + v1.vertexAttrib4f(v713, v702, v703, v704, v705); + v714.x = v702; + v714.y = v703; + v714.z = v704; + v714.w = v705; } } - v719 = g124.call(this, v2, v689, v688); - v720 = false; - v721 = 1; + v716 = g124.call(this, v2, v686, v685); + v717 = false; + v718 = 1; + v719 = 0; + v720 = 0; + v721 = 0; v722 = 0; - v723 = 0; + v723 = null; v724 = 0; - v725 = 0; - v726 = null; + v725 = false; + v726 = 5126; v727 = 0; - v728 = false; - v729 = 5126; - v730 = 0; - v731 = 0; - v732 = 0; - if (v16(v719)) { - v720 = true; - v726 = v8.createStream(34962, v719); - v729 = v726.dtype; + v728 = 0; + v729 = 0; + if (v16(v716)) { + v717 = true; + v723 = v8.createStream(34962, v716); + v726 = v723.dtype; } else { - v726 = v8.getBuffer(v719); - if (v726) { - v729 = v726.dtype; - } else if ("constant" in v719) { - v721 = 2; - if (typeof v719.constant === "number") { - v722 = v719.constant; - v723 = v724 = v725 = 0; + v723 = v8.getBuffer(v716); + if (v723) { + v726 = v723.dtype; + } else if ("constant" in v716) { + v718 = 2; + if (typeof v716.constant === "number") { + v719 = v716.constant; + v720 = v721 = v722 = 0; } else { - v722 = v719.constant.length > 0 ? v719.constant[0] : 0; - v723 = v719.constant.length > 1 ? v719.constant[1] : 0; - v724 = v719.constant.length > 2 ? v719.constant[2] : 0; - v725 = v719.constant.length > 3 ? v719.constant[3] : 0; + v719 = v716.constant.length > 0 ? v716.constant[0] : 0; + v720 = v716.constant.length > 1 ? v716.constant[1] : 0; + v721 = v716.constant.length > 2 ? v716.constant[2] : 0; + v722 = v716.constant.length > 3 ? v716.constant[3] : 0; } } else { - if (v16(v719.buffer)) { - v726 = v8.createStream(34962, v719.buffer); + if (v16(v716.buffer)) { + v723 = v8.createStream(34962, v716.buffer); } else { - v726 = v8.getBuffer(v719.buffer); + v723 = v8.getBuffer(v716.buffer); } - v729 = "type" in v719 ? v46[v719.type] : v726.dtype; - v728 = !!v719.normalized; - v727 = v719.size | 0; - v730 = v719.offset | 0; - v731 = v719.stride | 0; - v732 = v719.divisor | 0; + v726 = "type" in v716 ? v46[v716.type] : v723.dtype; + v725 = !!v716.normalized; + v724 = v716.size | 0; + v727 = v716.offset | 0; + v728 = v716.stride | 0; + v729 = v716.divisor | 0; } } - v733 = g139.location; - v734 = v10[v733]; - if (v721 === 1) { - if (!v734.buffer) { - v1.enableVertexAttribArray(v733); + v730 = g139.location; + v731 = v10[v730]; + if (v718 === 1) { + if (!v731.buffer) { + v1.enableVertexAttribArray(v730); } - v735 = v727 || 1; - if (v734.type !== v729 || v734.size !== v735 || v734.buffer !== v726 || v734.normalized !== v728 || v734.offset !== v730 || v734.stride !== v731) { - v1.bindBuffer(34962, v726.buffer); - v1.vertexAttribPointer(v733, v735, v729, v728, v731, v730); - v734.type = v729; - v734.size = v735; - v734.buffer = v726; - v734.normalized = v728; - v734.offset = v730; - v734.stride = v731; + v732 = v724 || 1; + if (v731.type !== v726 || v731.size !== v732 || v731.buffer !== v723 || v731.normalized !== v725 || v731.offset !== v727 || v731.stride !== v728) { + v1.bindBuffer(34962, v723.buffer); + v1.vertexAttribPointer(v730, v732, v726, v725, v728, v727); + v731.type = v726; + v731.size = v732; + v731.buffer = v723; + v731.normalized = v725; + v731.offset = v727; + v731.stride = v728; } - if (v734.divisor !== v732) { - v687.vertexAttribDivisorANGLE(v733, v732); - v734.divisor = v732; + if (v731.divisor !== v729) { + v684.vertexAttribDivisorANGLE(v730, v729); + v731.divisor = v729; } } else { - if (v734.buffer) { - v1.disableVertexAttribArray(v733); - v734.buffer = null; + if (v731.buffer) { + v1.disableVertexAttribArray(v730); + v731.buffer = null; } - if (v734.x !== v722 || v734.y !== v723 || v734.z !== v724 || v734.w !== v725) { - v1.vertexAttrib4f(v733, v722, v723, v724, v725); - v734.x = v722; - v734.y = v723; - v734.z = v724; - v734.w = v725; + if (v731.x !== v719 || v731.y !== v720 || v731.z !== v721 || v731.w !== v722) { + v1.vertexAttrib4f(v730, v719, v720, v721, v722); + v731.x = v719; + v731.y = v720; + v731.z = v721; + v731.w = v722; } } - v736 = g143.call(this, v2, v689, v688); - v737 = false; - v738 = 1; + v733 = g143.call(this, v2, v686, v685); + v734 = false; + v735 = 1; + v736 = 0; + v737 = 0; + v738 = 0; v739 = 0; - v740 = 0; + v740 = null; v741 = 0; - v742 = 0; - v743 = null; + v742 = false; + v743 = 5126; v744 = 0; - v745 = false; - v746 = 5126; - v747 = 0; - v748 = 0; - v749 = 0; - if (v16(v736)) { - v737 = true; - v743 = v8.createStream(34962, v736); - v746 = v743.dtype; + v745 = 0; + v746 = 0; + if (v16(v733)) { + v734 = true; + v740 = v8.createStream(34962, v733); + v743 = v740.dtype; } else { - v743 = v8.getBuffer(v736); - if (v743) { - v746 = v743.dtype; - } else if ("constant" in v736) { - v738 = 2; - if (typeof v736.constant === "number") { - v739 = v736.constant; - v740 = v741 = v742 = 0; + v740 = v8.getBuffer(v733); + if (v740) { + v743 = v740.dtype; + } else if ("constant" in v733) { + v735 = 2; + if (typeof v733.constant === "number") { + v736 = v733.constant; + v737 = v738 = v739 = 0; } else { - v739 = v736.constant.length > 0 ? v736.constant[0] : 0; - v740 = v736.constant.length > 1 ? v736.constant[1] : 0; - v741 = v736.constant.length > 2 ? v736.constant[2] : 0; - v742 = v736.constant.length > 3 ? v736.constant[3] : 0; + v736 = v733.constant.length > 0 ? v733.constant[0] : 0; + v737 = v733.constant.length > 1 ? v733.constant[1] : 0; + v738 = v733.constant.length > 2 ? v733.constant[2] : 0; + v739 = v733.constant.length > 3 ? v733.constant[3] : 0; } } else { - if (v16(v736.buffer)) { - v743 = v8.createStream(34962, v736.buffer); + if (v16(v733.buffer)) { + v740 = v8.createStream(34962, v733.buffer); } else { - v743 = v8.getBuffer(v736.buffer); + v740 = v8.getBuffer(v733.buffer); } - v746 = "type" in v736 ? v46[v736.type] : v743.dtype; - v745 = !!v736.normalized; - v744 = v736.size | 0; - v747 = v736.offset | 0; - v748 = v736.stride | 0; - v749 = v736.divisor | 0; + v743 = "type" in v733 ? v46[v733.type] : v740.dtype; + v742 = !!v733.normalized; + v741 = v733.size | 0; + v744 = v733.offset | 0; + v745 = v733.stride | 0; + v746 = v733.divisor | 0; } } - v750 = g158.location; - v751 = v10[v750]; - if (v738 === 1) { - if (!v751.buffer) { - v1.enableVertexAttribArray(v750); + v747 = g158.location; + v748 = v10[v747]; + if (v735 === 1) { + if (!v748.buffer) { + v1.enableVertexAttribArray(v747); } - v752 = v744 || 4; - if (v751.type !== v746 || v751.size !== v752 || v751.buffer !== v743 || v751.normalized !== v745 || v751.offset !== v747 || v751.stride !== v748) { - v1.bindBuffer(34962, v743.buffer); - v1.vertexAttribPointer(v750, v752, v746, v745, v748, v747); - v751.type = v746; - v751.size = v752; - v751.buffer = v743; - v751.normalized = v745; - v751.offset = v747; - v751.stride = v748; + v749 = v741 || 4; + if (v748.type !== v743 || v748.size !== v749 || v748.buffer !== v740 || v748.normalized !== v742 || v748.offset !== v744 || v748.stride !== v745) { + v1.bindBuffer(34962, v740.buffer); + v1.vertexAttribPointer(v747, v749, v743, v742, v745, v744); + v748.type = v743; + v748.size = v749; + v748.buffer = v740; + v748.normalized = v742; + v748.offset = v744; + v748.stride = v745; } - if (v751.divisor !== v749) { - v687.vertexAttribDivisorANGLE(v750, v749); - v751.divisor = v749; + if (v748.divisor !== v746) { + v684.vertexAttribDivisorANGLE(v747, v746); + v748.divisor = v746; } } else { - if (v751.buffer) { - v1.disableVertexAttribArray(v750); - v751.buffer = null; + if (v748.buffer) { + v1.disableVertexAttribArray(v747); + v748.buffer = null; } - if (v751.x !== v739 || v751.y !== v740 || v751.z !== v741 || v751.w !== v742) { - v1.vertexAttrib4f(v750, v739, v740, v741, v742); - v751.x = v739; - v751.y = v740; - v751.z = v741; - v751.w = v742; + if (v748.x !== v736 || v748.y !== v737 || v748.z !== v738 || v748.w !== v739) { + v1.vertexAttrib4f(v747, v736, v737, v738, v739); + v748.x = v736; + v748.y = v737; + v748.z = v738; + v748.w = v739; } } - v753 = g162.call(this, v2, v689, v688); - v754 = false; - v755 = 1; + v750 = g162.call(this, v2, v686, v685); + v751 = false; + v752 = 1; + v753 = 0; + v754 = 0; + v755 = 0; v756 = 0; - v757 = 0; + v757 = null; v758 = 0; - v759 = 0; - v760 = null; + v759 = false; + v760 = 5126; v761 = 0; - v762 = false; - v763 = 5126; - v764 = 0; - v765 = 0; - v766 = 0; - if (v16(v753)) { - v754 = true; - v760 = v8.createStream(34962, v753); - v763 = v760.dtype; + v762 = 0; + v763 = 0; + if (v16(v750)) { + v751 = true; + v757 = v8.createStream(34962, v750); + v760 = v757.dtype; } else { - v760 = v8.getBuffer(v753); - if (v760) { - v763 = v760.dtype; - } else if ("constant" in v753) { - v755 = 2; - if (typeof v753.constant === "number") { - v756 = v753.constant; - v757 = v758 = v759 = 0; + v757 = v8.getBuffer(v750); + if (v757) { + v760 = v757.dtype; + } else if ("constant" in v750) { + v752 = 2; + if (typeof v750.constant === "number") { + v753 = v750.constant; + v754 = v755 = v756 = 0; } else { - v756 = v753.constant.length > 0 ? v753.constant[0] : 0; - v757 = v753.constant.length > 1 ? v753.constant[1] : 0; - v758 = v753.constant.length > 2 ? v753.constant[2] : 0; - v759 = v753.constant.length > 3 ? v753.constant[3] : 0; + v753 = v750.constant.length > 0 ? v750.constant[0] : 0; + v754 = v750.constant.length > 1 ? v750.constant[1] : 0; + v755 = v750.constant.length > 2 ? v750.constant[2] : 0; + v756 = v750.constant.length > 3 ? v750.constant[3] : 0; } } else { - if (v16(v753.buffer)) { - v760 = v8.createStream(34962, v753.buffer); + if (v16(v750.buffer)) { + v757 = v8.createStream(34962, v750.buffer); } else { - v760 = v8.getBuffer(v753.buffer); + v757 = v8.getBuffer(v750.buffer); } - v763 = "type" in v753 ? v46[v753.type] : v760.dtype; - v762 = !!v753.normalized; - v761 = v753.size | 0; - v764 = v753.offset | 0; - v765 = v753.stride | 0; - v766 = v753.divisor | 0; + v760 = "type" in v750 ? v46[v750.type] : v757.dtype; + v759 = !!v750.normalized; + v758 = v750.size | 0; + v761 = v750.offset | 0; + v762 = v750.stride | 0; + v763 = v750.divisor | 0; } } - v767 = g177.location; - v768 = v10[v767]; - if (v755 === 1) { - if (!v768.buffer) { - v1.enableVertexAttribArray(v767); + v764 = g177.location; + v765 = v10[v764]; + if (v752 === 1) { + if (!v765.buffer) { + v1.enableVertexAttribArray(v764); } - v769 = v761 || 1; - if (v768.type !== v763 || v768.size !== v769 || v768.buffer !== v760 || v768.normalized !== v762 || v768.offset !== v764 || v768.stride !== v765) { - v1.bindBuffer(34962, v760.buffer); - v1.vertexAttribPointer(v767, v769, v763, v762, v765, v764); - v768.type = v763; - v768.size = v769; - v768.buffer = v760; - v768.normalized = v762; - v768.offset = v764; - v768.stride = v765; + v766 = v758 || 1; + if (v765.type !== v760 || v765.size !== v766 || v765.buffer !== v757 || v765.normalized !== v759 || v765.offset !== v761 || v765.stride !== v762) { + v1.bindBuffer(34962, v757.buffer); + v1.vertexAttribPointer(v764, v766, v760, v759, v762, v761); + v765.type = v760; + v765.size = v766; + v765.buffer = v757; + v765.normalized = v759; + v765.offset = v761; + v765.stride = v762; } - if (v768.divisor !== v766) { - v687.vertexAttribDivisorANGLE(v767, v766); - v768.divisor = v766; + if (v765.divisor !== v763) { + v684.vertexAttribDivisorANGLE(v764, v763); + v765.divisor = v763; } } else { - if (v768.buffer) { - v1.disableVertexAttribArray(v767); - v768.buffer = null; + if (v765.buffer) { + v1.disableVertexAttribArray(v764); + v765.buffer = null; } - if (v768.x !== v756 || v768.y !== v757 || v768.z !== v758 || v768.w !== v759) { - v1.vertexAttrib4f(v767, v756, v757, v758, v759); - v768.x = v756; - v768.y = v757; - v768.z = v758; - v768.w = v759; + if (v765.x !== v753 || v765.y !== v754 || v765.z !== v755 || v765.w !== v756) { + v1.vertexAttrib4f(v764, v753, v754, v755, v756); + v765.x = v753; + v765.y = v754; + v765.z = v755; + v765.w = v756; } } - v770 = g181.call(this, v2, v689, v688); - v771 = false; - v772 = 1; + v767 = g181.call(this, v2, v686, v685); + v768 = false; + v769 = 1; + v770 = 0; + v771 = 0; + v772 = 0; v773 = 0; - v774 = 0; + v774 = null; v775 = 0; - v776 = 0; - v777 = null; + v776 = false; + v777 = 5126; v778 = 0; - v779 = false; - v780 = 5126; - v781 = 0; - v782 = 0; - v783 = 0; - if (v16(v770)) { - v771 = true; - v777 = v8.createStream(34962, v770); - v780 = v777.dtype; + v779 = 0; + v780 = 0; + if (v16(v767)) { + v768 = true; + v774 = v8.createStream(34962, v767); + v777 = v774.dtype; } else { - v777 = v8.getBuffer(v770); - if (v777) { - v780 = v777.dtype; - } else if ("constant" in v770) { - v772 = 2; - if (typeof v770.constant === "number") { - v773 = v770.constant; - v774 = v775 = v776 = 0; + v774 = v8.getBuffer(v767); + if (v774) { + v777 = v774.dtype; + } else if ("constant" in v767) { + v769 = 2; + if (typeof v767.constant === "number") { + v770 = v767.constant; + v771 = v772 = v773 = 0; } else { - v773 = v770.constant.length > 0 ? v770.constant[0] : 0; - v774 = v770.constant.length > 1 ? v770.constant[1] : 0; - v775 = v770.constant.length > 2 ? v770.constant[2] : 0; - v776 = v770.constant.length > 3 ? v770.constant[3] : 0; + v770 = v767.constant.length > 0 ? v767.constant[0] : 0; + v771 = v767.constant.length > 1 ? v767.constant[1] : 0; + v772 = v767.constant.length > 2 ? v767.constant[2] : 0; + v773 = v767.constant.length > 3 ? v767.constant[3] : 0; } } else { - if (v16(v770.buffer)) { - v777 = v8.createStream(34962, v770.buffer); + if (v16(v767.buffer)) { + v774 = v8.createStream(34962, v767.buffer); } else { - v777 = v8.getBuffer(v770.buffer); + v774 = v8.getBuffer(v767.buffer); } - v780 = "type" in v770 ? v46[v770.type] : v777.dtype; - v779 = !!v770.normalized; - v778 = v770.size | 0; - v781 = v770.offset | 0; - v782 = v770.stride | 0; - v783 = v770.divisor | 0; + v777 = "type" in v767 ? v46[v767.type] : v774.dtype; + v776 = !!v767.normalized; + v775 = v767.size | 0; + v778 = v767.offset | 0; + v779 = v767.stride | 0; + v780 = v767.divisor | 0; } } - v784 = g196.location; - v785 = v10[v784]; - if (v772 === 1) { - if (!v785.buffer) { - v1.enableVertexAttribArray(v784); + v781 = g196.location; + v782 = v10[v781]; + if (v769 === 1) { + if (!v782.buffer) { + v1.enableVertexAttribArray(v781); } - v786 = v778 || 1; - if (v785.type !== v780 || v785.size !== v786 || v785.buffer !== v777 || v785.normalized !== v779 || v785.offset !== v781 || v785.stride !== v782) { - v1.bindBuffer(34962, v777.buffer); - v1.vertexAttribPointer(v784, v786, v780, v779, v782, v781); - v785.type = v780; - v785.size = v786; - v785.buffer = v777; - v785.normalized = v779; - v785.offset = v781; - v785.stride = v782; + v783 = v775 || 1; + if (v782.type !== v777 || v782.size !== v783 || v782.buffer !== v774 || v782.normalized !== v776 || v782.offset !== v778 || v782.stride !== v779) { + v1.bindBuffer(34962, v774.buffer); + v1.vertexAttribPointer(v781, v783, v777, v776, v779, v778); + v782.type = v777; + v782.size = v783; + v782.buffer = v774; + v782.normalized = v776; + v782.offset = v778; + v782.stride = v779; } - if (v785.divisor !== v783) { - v687.vertexAttribDivisorANGLE(v784, v783); - v785.divisor = v783; + if (v782.divisor !== v780) { + v684.vertexAttribDivisorANGLE(v781, v780); + v782.divisor = v780; } } else { - if (v785.buffer) { - v1.disableVertexAttribArray(v784); - v785.buffer = null; + if (v782.buffer) { + v1.disableVertexAttribArray(v781); + v782.buffer = null; } - if (v785.x !== v773 || v785.y !== v774 || v785.z !== v775 || v785.w !== v776) { - v1.vertexAttrib4f(v784, v773, v774, v775, v776); - v785.x = v773; - v785.y = v774; - v785.z = v775; - v785.w = v776; + if (v782.x !== v770 || v782.y !== v771 || v782.z !== v772 || v782.w !== v773) { + v1.vertexAttrib4f(v781, v770, v771, v772, v773); + v782.x = v770; + v782.y = v771; + v782.z = v772; + v782.w = v773; } } - v787 = g200.call(this, v2, v689, v688); - v788 = false; - v789 = 1; + v784 = g200.call(this, v2, v686, v685); + v785 = false; + v786 = 1; + v787 = 0; + v788 = 0; + v789 = 0; v790 = 0; - v791 = 0; + v791 = null; v792 = 0; - v793 = 0; - v794 = null; + v793 = false; + v794 = 5126; v795 = 0; - v796 = false; - v797 = 5126; - v798 = 0; - v799 = 0; - v800 = 0; - if (v16(v787)) { - v788 = true; - v794 = v8.createStream(34962, v787); - v797 = v794.dtype; + v796 = 0; + v797 = 0; + if (v16(v784)) { + v785 = true; + v791 = v8.createStream(34962, v784); + v794 = v791.dtype; } else { - v794 = v8.getBuffer(v787); - if (v794) { - v797 = v794.dtype; - } else if ("constant" in v787) { - v789 = 2; - if (typeof v787.constant === "number") { - v790 = v787.constant; - v791 = v792 = v793 = 0; + v791 = v8.getBuffer(v784); + if (v791) { + v794 = v791.dtype; + } else if ("constant" in v784) { + v786 = 2; + if (typeof v784.constant === "number") { + v787 = v784.constant; + v788 = v789 = v790 = 0; } else { - v790 = v787.constant.length > 0 ? v787.constant[0] : 0; - v791 = v787.constant.length > 1 ? v787.constant[1] : 0; - v792 = v787.constant.length > 2 ? v787.constant[2] : 0; - v793 = v787.constant.length > 3 ? v787.constant[3] : 0; + v787 = v784.constant.length > 0 ? v784.constant[0] : 0; + v788 = v784.constant.length > 1 ? v784.constant[1] : 0; + v789 = v784.constant.length > 2 ? v784.constant[2] : 0; + v790 = v784.constant.length > 3 ? v784.constant[3] : 0; } } else { - if (v16(v787.buffer)) { - v794 = v8.createStream(34962, v787.buffer); + if (v16(v784.buffer)) { + v791 = v8.createStream(34962, v784.buffer); } else { - v794 = v8.getBuffer(v787.buffer); + v791 = v8.getBuffer(v784.buffer); } - v797 = "type" in v787 ? v46[v787.type] : v794.dtype; - v796 = !!v787.normalized; - v795 = v787.size | 0; - v798 = v787.offset | 0; - v799 = v787.stride | 0; - v800 = v787.divisor | 0; + v794 = "type" in v784 ? v46[v784.type] : v791.dtype; + v793 = !!v784.normalized; + v792 = v784.size | 0; + v795 = v784.offset | 0; + v796 = v784.stride | 0; + v797 = v784.divisor | 0; } } - v801 = g215.location; - v802 = v10[v801]; - if (v789 === 1) { - if (!v802.buffer) { - v1.enableVertexAttribArray(v801); + v798 = g215.location; + v799 = v10[v798]; + if (v786 === 1) { + if (!v799.buffer) { + v1.enableVertexAttribArray(v798); } - v803 = v795 || 1; - if (v802.type !== v797 || v802.size !== v803 || v802.buffer !== v794 || v802.normalized !== v796 || v802.offset !== v798 || v802.stride !== v799) { - v1.bindBuffer(34962, v794.buffer); - v1.vertexAttribPointer(v801, v803, v797, v796, v799, v798); - v802.type = v797; - v802.size = v803; - v802.buffer = v794; - v802.normalized = v796; - v802.offset = v798; - v802.stride = v799; + v800 = v792 || 1; + if (v799.type !== v794 || v799.size !== v800 || v799.buffer !== v791 || v799.normalized !== v793 || v799.offset !== v795 || v799.stride !== v796) { + v1.bindBuffer(34962, v791.buffer); + v1.vertexAttribPointer(v798, v800, v794, v793, v796, v795); + v799.type = v794; + v799.size = v800; + v799.buffer = v791; + v799.normalized = v793; + v799.offset = v795; + v799.stride = v796; } - if (v802.divisor !== v800) { - v687.vertexAttribDivisorANGLE(v801, v800); - v802.divisor = v800; + if (v799.divisor !== v797) { + v684.vertexAttribDivisorANGLE(v798, v797); + v799.divisor = v797; } } else { - if (v802.buffer) { - v1.disableVertexAttribArray(v801); - v802.buffer = null; + if (v799.buffer) { + v1.disableVertexAttribArray(v798); + v799.buffer = null; } - if (v802.x !== v790 || v802.y !== v791 || v802.z !== v792 || v802.w !== v793) { - v1.vertexAttrib4f(v801, v790, v791, v792, v793); - v802.x = v790; - v802.y = v791; - v802.z = v792; - v802.w = v793; + if (v799.x !== v787 || v799.y !== v788 || v799.z !== v789 || v799.w !== v790) { + v1.vertexAttrib4f(v798, v787, v788, v789, v790); + v799.x = v787; + v799.y = v788; + v799.z = v789; + v799.w = v790; } } - v804 = g219.call(this, v2, v689, v688); - v805 = false; - v806 = 1; + v801 = g219.call(this, v2, v686, v685); + v802 = false; + v803 = 1; + v804 = 0; + v805 = 0; + v806 = 0; v807 = 0; - v808 = 0; + v808 = null; v809 = 0; - v810 = 0; - v811 = null; + v810 = false; + v811 = 5126; v812 = 0; - v813 = false; - v814 = 5126; - v815 = 0; - v816 = 0; - v817 = 0; - if (v16(v804)) { - v805 = true; - v811 = v8.createStream(34962, v804); - v814 = v811.dtype; + v813 = 0; + v814 = 0; + if (v16(v801)) { + v802 = true; + v808 = v8.createStream(34962, v801); + v811 = v808.dtype; } else { - v811 = v8.getBuffer(v804); - if (v811) { - v814 = v811.dtype; - } else if ("constant" in v804) { - v806 = 2; - if (typeof v804.constant === "number") { - v807 = v804.constant; - v808 = v809 = v810 = 0; + v808 = v8.getBuffer(v801); + if (v808) { + v811 = v808.dtype; + } else if ("constant" in v801) { + v803 = 2; + if (typeof v801.constant === "number") { + v804 = v801.constant; + v805 = v806 = v807 = 0; } else { - v807 = v804.constant.length > 0 ? v804.constant[0] : 0; - v808 = v804.constant.length > 1 ? v804.constant[1] : 0; - v809 = v804.constant.length > 2 ? v804.constant[2] : 0; - v810 = v804.constant.length > 3 ? v804.constant[3] : 0; + v804 = v801.constant.length > 0 ? v801.constant[0] : 0; + v805 = v801.constant.length > 1 ? v801.constant[1] : 0; + v806 = v801.constant.length > 2 ? v801.constant[2] : 0; + v807 = v801.constant.length > 3 ? v801.constant[3] : 0; } } else { - if (v16(v804.buffer)) { - v811 = v8.createStream(34962, v804.buffer); + if (v16(v801.buffer)) { + v808 = v8.createStream(34962, v801.buffer); } else { - v811 = v8.getBuffer(v804.buffer); + v808 = v8.getBuffer(v801.buffer); } - v814 = "type" in v804 ? v46[v804.type] : v811.dtype; - v813 = !!v804.normalized; - v812 = v804.size | 0; - v815 = v804.offset | 0; - v816 = v804.stride | 0; - v817 = v804.divisor | 0; + v811 = "type" in v801 ? v46[v801.type] : v808.dtype; + v810 = !!v801.normalized; + v809 = v801.size | 0; + v812 = v801.offset | 0; + v813 = v801.stride | 0; + v814 = v801.divisor | 0; } } - v818 = g234.location; - v819 = v10[v818]; - if (v806 === 1) { - if (!v819.buffer) { - v1.enableVertexAttribArray(v818); + v815 = g234.location; + v816 = v10[v815]; + if (v803 === 1) { + if (!v816.buffer) { + v1.enableVertexAttribArray(v815); } - v820 = v812 || 1; - if (v819.type !== v814 || v819.size !== v820 || v819.buffer !== v811 || v819.normalized !== v813 || v819.offset !== v815 || v819.stride !== v816) { - v1.bindBuffer(34962, v811.buffer); - v1.vertexAttribPointer(v818, v820, v814, v813, v816, v815); - v819.type = v814; - v819.size = v820; - v819.buffer = v811; - v819.normalized = v813; - v819.offset = v815; - v819.stride = v816; + v817 = v809 || 1; + if (v816.type !== v811 || v816.size !== v817 || v816.buffer !== v808 || v816.normalized !== v810 || v816.offset !== v812 || v816.stride !== v813) { + v1.bindBuffer(34962, v808.buffer); + v1.vertexAttribPointer(v815, v817, v811, v810, v813, v812); + v816.type = v811; + v816.size = v817; + v816.buffer = v808; + v816.normalized = v810; + v816.offset = v812; + v816.stride = v813; } - if (v819.divisor !== v817) { - v687.vertexAttribDivisorANGLE(v818, v817); - v819.divisor = v817; + if (v816.divisor !== v814) { + v684.vertexAttribDivisorANGLE(v815, v814); + v816.divisor = v814; } } else { - if (v819.buffer) { - v1.disableVertexAttribArray(v818); - v819.buffer = null; + if (v816.buffer) { + v1.disableVertexAttribArray(v815); + v816.buffer = null; } - if (v819.x !== v807 || v819.y !== v808 || v819.z !== v809 || v819.w !== v810) { - v1.vertexAttrib4f(v818, v807, v808, v809, v810); - v819.x = v807; - v819.y = v808; - v819.z = v809; - v819.w = v810; + if (v816.x !== v804 || v816.y !== v805 || v816.z !== v806 || v816.w !== v807) { + v1.vertexAttrib4f(v815, v804, v805, v806, v807); + v816.x = v804; + v816.y = v805; + v816.z = v806; + v816.w = v807; } } - v821 = g238.call(this, v2, v689, v688); - v822 = false; - v823 = 1; + v818 = g238.call(this, v2, v686, v685); + v819 = false; + v820 = 1; + v821 = 0; + v822 = 0; + v823 = 0; v824 = 0; - v825 = 0; + v825 = null; v826 = 0; - v827 = 0; - v828 = null; + v827 = false; + v828 = 5126; v829 = 0; - v830 = false; - v831 = 5126; - v832 = 0; - v833 = 0; - v834 = 0; - if (v16(v821)) { - v822 = true; - v828 = v8.createStream(34962, v821); - v831 = v828.dtype; + v830 = 0; + v831 = 0; + if (v16(v818)) { + v819 = true; + v825 = v8.createStream(34962, v818); + v828 = v825.dtype; } else { - v828 = v8.getBuffer(v821); - if (v828) { - v831 = v828.dtype; - } else if ("constant" in v821) { - v823 = 2; - if (typeof v821.constant === "number") { - v824 = v821.constant; - v825 = v826 = v827 = 0; + v825 = v8.getBuffer(v818); + if (v825) { + v828 = v825.dtype; + } else if ("constant" in v818) { + v820 = 2; + if (typeof v818.constant === "number") { + v821 = v818.constant; + v822 = v823 = v824 = 0; } else { - v824 = v821.constant.length > 0 ? v821.constant[0] : 0; - v825 = v821.constant.length > 1 ? v821.constant[1] : 0; - v826 = v821.constant.length > 2 ? v821.constant[2] : 0; - v827 = v821.constant.length > 3 ? v821.constant[3] : 0; + v821 = v818.constant.length > 0 ? v818.constant[0] : 0; + v822 = v818.constant.length > 1 ? v818.constant[1] : 0; + v823 = v818.constant.length > 2 ? v818.constant[2] : 0; + v824 = v818.constant.length > 3 ? v818.constant[3] : 0; } } else { - if (v16(v821.buffer)) { - v828 = v8.createStream(34962, v821.buffer); + if (v16(v818.buffer)) { + v825 = v8.createStream(34962, v818.buffer); } else { - v828 = v8.getBuffer(v821.buffer); + v825 = v8.getBuffer(v818.buffer); } - v831 = "type" in v821 ? v46[v821.type] : v828.dtype; - v830 = !!v821.normalized; - v829 = v821.size | 0; - v832 = v821.offset | 0; - v833 = v821.stride | 0; - v834 = v821.divisor | 0; + v828 = "type" in v818 ? v46[v818.type] : v825.dtype; + v827 = !!v818.normalized; + v826 = v818.size | 0; + v829 = v818.offset | 0; + v830 = v818.stride | 0; + v831 = v818.divisor | 0; } } - v835 = g253.location; - v836 = v10[v835]; - if (v823 === 1) { - if (!v836.buffer) { - v1.enableVertexAttribArray(v835); + v832 = g253.location; + v833 = v10[v832]; + if (v820 === 1) { + if (!v833.buffer) { + v1.enableVertexAttribArray(v832); } - v837 = v829 || 1; - if (v836.type !== v831 || v836.size !== v837 || v836.buffer !== v828 || v836.normalized !== v830 || v836.offset !== v832 || v836.stride !== v833) { - v1.bindBuffer(34962, v828.buffer); - v1.vertexAttribPointer(v835, v837, v831, v830, v833, v832); - v836.type = v831; - v836.size = v837; - v836.buffer = v828; - v836.normalized = v830; - v836.offset = v832; - v836.stride = v833; + v834 = v826 || 1; + if (v833.type !== v828 || v833.size !== v834 || v833.buffer !== v825 || v833.normalized !== v827 || v833.offset !== v829 || v833.stride !== v830) { + v1.bindBuffer(34962, v825.buffer); + v1.vertexAttribPointer(v832, v834, v828, v827, v830, v829); + v833.type = v828; + v833.size = v834; + v833.buffer = v825; + v833.normalized = v827; + v833.offset = v829; + v833.stride = v830; } - if (v836.divisor !== v834) { - v687.vertexAttribDivisorANGLE(v835, v834); - v836.divisor = v834; + if (v833.divisor !== v831) { + v684.vertexAttribDivisorANGLE(v832, v831); + v833.divisor = v831; } } else { - if (v836.buffer) { - v1.disableVertexAttribArray(v835); - v836.buffer = null; + if (v833.buffer) { + v1.disableVertexAttribArray(v832); + v833.buffer = null; } - if (v836.x !== v824 || v836.y !== v825 || v836.z !== v826 || v836.w !== v827) { - v1.vertexAttrib4f(v835, v824, v825, v826, v827); - v836.x = v824; - v836.y = v825; - v836.z = v826; - v836.w = v827; + if (v833.x !== v821 || v833.y !== v822 || v833.z !== v823 || v833.w !== v824) { + v1.vertexAttrib4f(v832, v821, v822, v823, v824); + v833.x = v821; + v833.y = v822; + v833.z = v823; + v833.w = v824; } } - v838 = g257.call(this, v2, v689, v688); - v839 = false; - v840 = 1; + v835 = g257.call(this, v2, v686, v685); + v836 = false; + v837 = 1; + v838 = 0; + v839 = 0; + v840 = 0; v841 = 0; - v842 = 0; + v842 = null; v843 = 0; - v844 = 0; - v845 = null; + v844 = false; + v845 = 5126; v846 = 0; - v847 = false; - v848 = 5126; - v849 = 0; - v850 = 0; - v851 = 0; - if (v16(v838)) { - v839 = true; - v845 = v8.createStream(34962, v838); - v848 = v845.dtype; + v847 = 0; + v848 = 0; + if (v16(v835)) { + v836 = true; + v842 = v8.createStream(34962, v835); + v845 = v842.dtype; } else { - v845 = v8.getBuffer(v838); - if (v845) { - v848 = v845.dtype; - } else if ("constant" in v838) { - v840 = 2; - if (typeof v838.constant === "number") { - v841 = v838.constant; - v842 = v843 = v844 = 0; + v842 = v8.getBuffer(v835); + if (v842) { + v845 = v842.dtype; + } else if ("constant" in v835) { + v837 = 2; + if (typeof v835.constant === "number") { + v838 = v835.constant; + v839 = v840 = v841 = 0; } else { - v841 = v838.constant.length > 0 ? v838.constant[0] : 0; - v842 = v838.constant.length > 1 ? v838.constant[1] : 0; - v843 = v838.constant.length > 2 ? v838.constant[2] : 0; - v844 = v838.constant.length > 3 ? v838.constant[3] : 0; + v838 = v835.constant.length > 0 ? v835.constant[0] : 0; + v839 = v835.constant.length > 1 ? v835.constant[1] : 0; + v840 = v835.constant.length > 2 ? v835.constant[2] : 0; + v841 = v835.constant.length > 3 ? v835.constant[3] : 0; } } else { - if (v16(v838.buffer)) { - v845 = v8.createStream(34962, v838.buffer); + if (v16(v835.buffer)) { + v842 = v8.createStream(34962, v835.buffer); } else { - v845 = v8.getBuffer(v838.buffer); + v842 = v8.getBuffer(v835.buffer); } - v848 = "type" in v838 ? v46[v838.type] : v845.dtype; - v847 = !!v838.normalized; - v846 = v838.size | 0; - v849 = v838.offset | 0; - v850 = v838.stride | 0; - v851 = v838.divisor | 0; + v845 = "type" in v835 ? v46[v835.type] : v842.dtype; + v844 = !!v835.normalized; + v843 = v835.size | 0; + v846 = v835.offset | 0; + v847 = v835.stride | 0; + v848 = v835.divisor | 0; } } - v852 = g272.location; - v853 = v10[v852]; - if (v840 === 1) { - if (!v853.buffer) { - v1.enableVertexAttribArray(v852); + v849 = g272.location; + v850 = v10[v849]; + if (v837 === 1) { + if (!v850.buffer) { + v1.enableVertexAttribArray(v849); } - v854 = v846 || 1; - if (v853.type !== v848 || v853.size !== v854 || v853.buffer !== v845 || v853.normalized !== v847 || v853.offset !== v849 || v853.stride !== v850) { - v1.bindBuffer(34962, v845.buffer); - v1.vertexAttribPointer(v852, v854, v848, v847, v850, v849); - v853.type = v848; - v853.size = v854; - v853.buffer = v845; - v853.normalized = v847; - v853.offset = v849; - v853.stride = v850; + v851 = v843 || 1; + if (v850.type !== v845 || v850.size !== v851 || v850.buffer !== v842 || v850.normalized !== v844 || v850.offset !== v846 || v850.stride !== v847) { + v1.bindBuffer(34962, v842.buffer); + v1.vertexAttribPointer(v849, v851, v845, v844, v847, v846); + v850.type = v845; + v850.size = v851; + v850.buffer = v842; + v850.normalized = v844; + v850.offset = v846; + v850.stride = v847; } - if (v853.divisor !== v851) { - v687.vertexAttribDivisorANGLE(v852, v851); - v853.divisor = v851; + if (v850.divisor !== v848) { + v684.vertexAttribDivisorANGLE(v849, v848); + v850.divisor = v848; } } else { - if (v853.buffer) { - v1.disableVertexAttribArray(v852); - v853.buffer = null; + if (v850.buffer) { + v1.disableVertexAttribArray(v849); + v850.buffer = null; } - if (v853.x !== v841 || v853.y !== v842 || v853.z !== v843 || v853.w !== v844) { - v1.vertexAttrib4f(v852, v841, v842, v843, v844); - v853.x = v841; - v853.y = v842; - v853.z = v843; - v853.w = v844; + if (v850.x !== v838 || v850.y !== v839 || v850.z !== v840 || v850.w !== v841) { + v1.vertexAttrib4f(v849, v838, v839, v840, v841); + v850.x = v838; + v850.y = v839; + v850.z = v840; + v850.w = v841; } } - v855 = v689["markerTexture"]; - if (v855 && v855._reglType === "framebuffer") { - v855 = v855.color[0]; + v852 = v686["opacity"]; + if (!v685 || v853 !== v852) { + v853 = v852; + v1.uniform1f(g277.location, v852); } - v856 = v855._texture; - v1.uniform1i(g277.location, v856.bind()); - v857 = v689["opacity"]; - if (!v688 || v858 !== v857) { + v854 = g280.call(this, v2, v686, v685); + v855 = v854[0]; + v857 = v854[1]; + if (!v685 || v856 !== v855 || v858 !== v857) { + v856 = v855; v858 = v857; - v1.uniform1f(g280.location, v857); + v1.uniform2f(g279.location, v855, v857); } - v859 = g283.call(this, v2, v689, v688); - v860 = v859[0]; - v862 = v859[1]; - if (!v688 || v861 !== v860 || v863 !== v862) { - v861 = v860; - v863 = v862; - v1.uniform2f(g282.location, v860, v862); + v859 = v2["pixelRatio"]; + if (!v685 || v860 !== v859) { + v860 = v859; + v1.uniform1f(g286.location, v859); } - v864 = v2["pixelRatio"]; - if (!v688 || v865 !== v864) { + v861 = v686["scale"]; + v862 = v861[0]; + v864 = v861[1]; + if (!v685 || v863 !== v862 || v865 !== v864) { + v863 = v862; v865 = v864; - v1.uniform1f(g289.location, v864); + v1.uniform2f(g288.location, v862, v864); } - v866 = v689["scale"]; + v866 = v686["scaleFract"]; v867 = v866[0]; v869 = v866[1]; - if (!v688 || v868 !== v867 || v870 !== v869) { + if (!v685 || v868 !== v867 || v870 !== v869) { v868 = v867; v870 = v869; - v1.uniform2f(g291.location, v867, v869); + v1.uniform2f(g292.location, v867, v869); } - v871 = v689["scaleFract"]; + v871 = v686["translate"]; v872 = v871[0]; v874 = v871[1]; - if (!v688 || v873 !== v872 || v875 !== v874) { + if (!v685 || v873 !== v872 || v875 !== v874) { v873 = v872; v875 = v874; - v1.uniform2f(g295.location, v872, v874); + v1.uniform2f(g296.location, v872, v874); } - v876 = v689["translate"]; + v876 = v686["translateFract"]; v877 = v876[0]; v879 = v876[1]; - if (!v688 || v878 !== v877 || v880 !== v879) { + if (!v685 || v878 !== v877 || v880 !== v879) { v878 = v877; v880 = v879; - v1.uniform2f(g299.location, v877, v879); - } - v881 = v689["translateFract"]; - v882 = v881[0]; - v884 = v881[1]; - if (!v688 || v883 !== v882 || v885 !== v884) { - v883 = v882; - v885 = v884; - v1.uniform2f(g303.location, v882, v884); + v1.uniform2f(g300.location, v877, v879); } - v886 = v689["elements"]; - v887 = null; - v888 = v16(v886); - if (v888) { - v887 = v7.createStream(v886); + v881 = v686["elements"]; + v882 = null; + v883 = v16(v881); + if (v883) { + v882 = v7.createStream(v881); } else { - v887 = v7.getElements(v886); + v882 = v7.getElements(v881); } - if (v887) v1.bindBuffer(34963, v887.buffer.buffer); - v889 = v689["offset"]; - v890 = v689["count"]; - if (v890) { - if (v891 > 0) { - if (v887) { - v687.drawElementsInstancedANGLE(0, v890, v887.type, v889 << (v887.type - 5121 >> 1), v891); + if (v882) v1.bindBuffer(34963, v882.buffer.buffer); + v884 = v686["offset"]; + v885 = v686["count"]; + if (v885) { + if (v886 > 0) { + if (v882) { + v684.drawElementsInstancedANGLE(0, v885, v882.type, v884 << (v882.type - 5121 >> 1), v886); } else { - v687.drawArraysInstancedANGLE(0, v889, v890, v891); + v684.drawArraysInstancedANGLE(0, v884, v885, v886); } - } else if (v891 < 0) { - if (v887) { - v1.drawElements(0, v890, v887.type, v889 << (v887.type - 5121 >> 1)); + } else if (v886 < 0) { + if (v882) { + v1.drawElements(0, v885, v882.type, v884 << (v882.type - 5121 >> 1)); } else { - v1.drawArrays(0, v889, v890); + v1.drawArrays(0, v884, v885); } } - v2.viewportWidth = v695; - v2.viewportHeight = v696; - if (v703) { - v8.destroyStream(v709); + v2.viewportWidth = v692; + v2.viewportHeight = v693; + if (v700) { + v8.destroyStream(v706); } - if (v720) { - v8.destroyStream(v726); + if (v717) { + v8.destroyStream(v723); } - if (v737) { - v8.destroyStream(v743); + if (v734) { + v8.destroyStream(v740); } - if (v754) { - v8.destroyStream(v760); + if (v751) { + v8.destroyStream(v757); } - if (v771) { - v8.destroyStream(v777); + if (v768) { + v8.destroyStream(v774); } - if (v788) { - v8.destroyStream(v794); + if (v785) { + v8.destroyStream(v791); } - if (v805) { - v8.destroyStream(v811); + if (v802) { + v8.destroyStream(v808); } - if (v822) { - v8.destroyStream(v828); + if (v819) { + v8.destroyStream(v825); } - if (v839) { - v8.destroyStream(v845); + if (v836) { + v8.destroyStream(v842); } - v856.unbind(); - if (v888) { - v7.destroyStream(v887); + if (v883) { + v7.destroyStream(v882); } } } - g288.unbind(); + g285.unbind(); v5.dirty = true; v11.setVAO(null); - if (v685) { - g48.cpuTime += performance.now() - v686; + if (v682) { + g48.cpuTime += performance.now() - v683; } } }; @@ -180218,12 +178758,12 @@ void main() { } }); - // src/generated/regl-codegen/bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019 - var require_bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019 = __commonJS({ - "src/generated/regl-codegen/bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019"(exports, module) { - module.exports = function anonymous(g0, g48, g92, g93, g99, g100, g103, g105, g120, g124, g139, g143, g158, g162, g177, g181, g196, g200, g215, g219, g234, g238, g253, g257, g272, g276, g277, g279, g280, g284, g285, g286, g288, g292, g296, g300, g321, g323, g325, g327, g329, g331, g333, g335, g337, g339, g350, g352, g364, g366, g368, g369, g372, g375, g378, g381, g384, g387, g390, g393, g409, g436, g463, g490, g517, g544, g571, g598, g625, g638, g640, g678, g679, g680, g681) { + // src/generated/regl-codegen/cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81 + var require_cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81 = __commonJS({ + "src/generated/regl-codegen/cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81"(exports, module) { + module.exports = function anonymous(g0, g48, g115, g125, g127, g133, g135, g196) { "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v112, v193; v1 = g0.gl; v2 = g0.context; v3 = g0.strings; @@ -180344,3063 +178884,3190 @@ void main() { "cw": 2304, "ccw": 2305 }; + v112 = {}; + v193 = {}; return { "draw": function(a0) { - var v49, v50, v85, v86, v87, v88, v89, v90, v91, v94, v95, v96, v97, v98, v101, v102, v104, v106, v107, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v121, v122, v123, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v140, v141, v142, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v159, v160, v161, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v178, v179, v180, v182, v183, v184, v185, v186, v187, v188, v189, v190, v191, v192, v193, v194, v195, v197, v198, v199, v201, v202, v203, v204, v205, v206, v207, v208, v209, v210, v211, v212, v213, v214, v216, v217, v218, v220, v221, v222, v223, v224, v225, v226, v227, v228, v229, v230, v231, v232, v233, v235, v236, v237, v239, v240, v241, v242, v243, v244, v245, v246, v247, v248, v249, v250, v251, v252, v254, v255, v256, v258, v259, v260, v261, v262, v263, v264, v265, v266, v267, v268, v269, v270, v271, v273, v274, v275, v278, v281, v282, v283, v287, v289, v290, v291, v293, v294, v295, v297, v298, v299, v301, v302, v303, v304, v305, v306, v307, v308, v309; + var v49, v50, v51, v52, v53, v54, v101, v102, v103, v104, v105, v106, v107, v108, v109, v110, v111, v113, v114; v49 = v14.angle_instanced_arrays; - v50 = v13.next; - if (v50 !== v13.cur) { - if (v50) { - v1.bindFramebuffer(36160, v50.framebuffer); + v50 = a0["framebuffer"]; + v51 = v13.getFramebuffer(v50); + v52 = v13.next; + v13.next = v51; + v53 = v2.framebufferWidth; + v2.framebufferWidth = v51 ? v51.width : v2.drawingBufferWidth; + v54 = v2.framebufferHeight; + v2.framebufferHeight = v51 ? v51.height : v2.drawingBufferHeight; + if (v51 !== v13.cur) { + if (v51) { + v1.bindFramebuffer(36160, v51.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v50; + v13.cur = v51; } if (v5.dirty) { - var v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84; - v51 = v4.dither; - if (v51 !== v5.dither) { - if (v51) { + var v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97, v98, v99, v100; + v55 = v4.dither; + if (v55 !== v5.dither) { + if (v55) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v51; + v5.dither = v55; } - v52 = v19[0]; - v53 = v19[1]; - if (v52 !== v20[0] || v53 !== v20[1]) { - v1.blendEquationSeparate(v52, v53); - v20[0] = v52; - v20[1] = v53; + v56 = v4.blend_enable; + if (v56 !== v5.blend_enable) { + if (v56) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v56; } - v54 = v4.depth_func; - if (v54 !== v5.depth_func) { - v1.depthFunc(v54); - v5.depth_func = v54; + v57 = v17[0]; + v58 = v17[1]; + v59 = v17[2]; + v60 = v17[3]; + if (v57 !== v18[0] || v58 !== v18[1] || v59 !== v18[2] || v60 !== v18[3]) { + v1.blendColor(v57, v58, v59, v60); + v18[0] = v57; + v18[1] = v58; + v18[2] = v59; + v18[3] = v60; } - v55 = v23[0]; - v56 = v23[1]; - if (v55 !== v24[0] || v56 !== v24[1]) { - v1.depthRange(v55, v56); - v24[0] = v55; - v24[1] = v56; + v61 = v19[0]; + v62 = v19[1]; + if (v61 !== v20[0] || v62 !== v20[1]) { + v1.blendEquationSeparate(v61, v62); + v20[0] = v61; + v20[1] = v62; } - v57 = v4.depth_mask; - if (v57 !== v5.depth_mask) { - v1.depthMask(v57); - v5.depth_mask = v57; + v63 = v21[0]; + v64 = v21[1]; + v65 = v21[2]; + v66 = v21[3]; + if (v63 !== v22[0] || v64 !== v22[1] || v65 !== v22[2] || v66 !== v22[3]) { + v1.blendFuncSeparate(v63, v64, v65, v66); + v22[0] = v63; + v22[1] = v64; + v22[2] = v65; + v22[3] = v66; } - v58 = v25[0]; - v59 = v25[1]; - v60 = v25[2]; - v61 = v25[3]; - if (v58 !== v26[0] || v59 !== v26[1] || v60 !== v26[2] || v61 !== v26[3]) { - v1.colorMask(v58, v59, v60, v61); - v26[0] = v58; - v26[1] = v59; - v26[2] = v60; - v26[3] = v61; + v67 = v4.depth_enable; + if (v67 !== v5.depth_enable) { + if (v67) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v67; } - v62 = v4.cull_enable; - if (v62 !== v5.cull_enable) { - if (v62) { + v68 = v4.depth_func; + if (v68 !== v5.depth_func) { + v1.depthFunc(v68); + v5.depth_func = v68; + } + v69 = v23[0]; + v70 = v23[1]; + if (v69 !== v24[0] || v70 !== v24[1]) { + v1.depthRange(v69, v70); + v24[0] = v69; + v24[1] = v70; + } + v71 = v4.depth_mask; + if (v71 !== v5.depth_mask) { + v1.depthMask(v71); + v5.depth_mask = v71; + } + v72 = v25[0]; + v73 = v25[1]; + v74 = v25[2]; + v75 = v25[3]; + if (v72 !== v26[0] || v73 !== v26[1] || v74 !== v26[2] || v75 !== v26[3]) { + v1.colorMask(v72, v73, v74, v75); + v26[0] = v72; + v26[1] = v73; + v26[2] = v74; + v26[3] = v75; + } + v76 = v4.cull_enable; + if (v76 !== v5.cull_enable) { + if (v76) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v62; + v5.cull_enable = v76; } - v63 = v4.cull_face; - if (v63 !== v5.cull_face) { - v1.cullFace(v63); - v5.cull_face = v63; + v77 = v4.cull_face; + if (v77 !== v5.cull_face) { + v1.cullFace(v77); + v5.cull_face = v77; } - v64 = v4.frontFace; - if (v64 !== v5.frontFace) { - v1.frontFace(v64); - v5.frontFace = v64; + v78 = v4.frontFace; + if (v78 !== v5.frontFace) { + v1.frontFace(v78); + v5.frontFace = v78; } - v65 = v4.lineWidth; - if (v65 !== v5.lineWidth) { - v1.lineWidth(v65); - v5.lineWidth = v65; + v79 = v4.lineWidth; + if (v79 !== v5.lineWidth) { + v1.lineWidth(v79); + v5.lineWidth = v79; } - v66 = v4.polygonOffset_enable; - if (v66 !== v5.polygonOffset_enable) { - if (v66) { + v80 = v4.polygonOffset_enable; + if (v80 !== v5.polygonOffset_enable) { + if (v80) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v66; + v5.polygonOffset_enable = v80; } - v67 = v27[0]; - v68 = v27[1]; - if (v67 !== v28[0] || v68 !== v28[1]) { - v1.polygonOffset(v67, v68); - v28[0] = v67; - v28[1] = v68; + v81 = v27[0]; + v82 = v27[1]; + if (v81 !== v28[0] || v82 !== v28[1]) { + v1.polygonOffset(v81, v82); + v28[0] = v81; + v28[1] = v82; } - v69 = v4.sample_alpha; - if (v69 !== v5.sample_alpha) { - if (v69) { + v83 = v4.sample_alpha; + if (v83 !== v5.sample_alpha) { + if (v83) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v69; + v5.sample_alpha = v83; } - v70 = v4.sample_enable; - if (v70 !== v5.sample_enable) { - if (v70) { + v84 = v4.sample_enable; + if (v84 !== v5.sample_enable) { + if (v84) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v70; + v5.sample_enable = v84; } - v71 = v29[0]; - v72 = v29[1]; - if (v71 !== v30[0] || v72 !== v30[1]) { - v1.sampleCoverage(v71, v72); - v30[0] = v71; - v30[1] = v72; + v85 = v29[0]; + v86 = v29[1]; + if (v85 !== v30[0] || v86 !== v30[1]) { + v1.sampleCoverage(v85, v86); + v30[0] = v85; + v30[1] = v86; } - v73 = v4.stencil_mask; - if (v73 !== v5.stencil_mask) { - v1.stencilMask(v73); - v5.stencil_mask = v73; + v87 = v4.stencil_enable; + if (v87 !== v5.stencil_enable) { + if (v87) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v87; } - v74 = v31[0]; - v75 = v31[1]; - v76 = v31[2]; - if (v74 !== v32[0] || v75 !== v32[1] || v76 !== v32[2]) { - v1.stencilFunc(v74, v75, v76); - v32[0] = v74; - v32[1] = v75; - v32[2] = v76; + v88 = v4.stencil_mask; + if (v88 !== v5.stencil_mask) { + v1.stencilMask(v88); + v5.stencil_mask = v88; } - v77 = v33[0]; - v78 = v33[1]; - v79 = v33[2]; - v80 = v33[3]; - if (v77 !== v34[0] || v78 !== v34[1] || v79 !== v34[2] || v80 !== v34[3]) { - v1.stencilOpSeparate(v77, v78, v79, v80); - v34[0] = v77; - v34[1] = v78; - v34[2] = v79; - v34[3] = v80; + v89 = v31[0]; + v90 = v31[1]; + v91 = v31[2]; + if (v89 !== v32[0] || v90 !== v32[1] || v91 !== v32[2]) { + v1.stencilFunc(v89, v90, v91); + v32[0] = v89; + v32[1] = v90; + v32[2] = v91; } - v81 = v35[0]; - v82 = v35[1]; - v83 = v35[2]; - v84 = v35[3]; - if (v81 !== v36[0] || v82 !== v36[1] || v83 !== v36[2] || v84 !== v36[3]) { - v1.stencilOpSeparate(v81, v82, v83, v84); - v36[0] = v81; - v36[1] = v82; - v36[2] = v83; - v36[3] = v84; + v92 = v33[0]; + v93 = v33[1]; + v94 = v33[2]; + v95 = v33[3]; + if (v92 !== v34[0] || v93 !== v34[1] || v94 !== v34[2] || v95 !== v34[3]) { + v1.stencilOpSeparate(v92, v93, v94, v95); + v34[0] = v92; + v34[1] = v93; + v34[2] = v94; + v34[3] = v95; + } + v96 = v35[0]; + v97 = v35[1]; + v98 = v35[2]; + v99 = v35[3]; + if (v96 !== v36[0] || v97 !== v36[1] || v98 !== v36[2] || v99 !== v36[3]) { + v1.stencilOpSeparate(v96, v97, v98, v99); + v36[0] = v96; + v36[1] = v97; + v36[2] = v98; + v36[3] = v99; + } + v100 = v4.scissor_enable; + if (v100 !== v5.scissor_enable) { + if (v100) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v100; } } - v85 = a0["viewport"]; - v86 = v85.x | 0; - v87 = v85.y | 0; - v88 = "width" in v85 ? v85.width | 0 : v2.framebufferWidth - v86; - v89 = "height" in v85 ? v85.height | 0 : v2.framebufferHeight - v87; - v90 = v2.viewportWidth; - v2.viewportWidth = v88; - v91 = v2.viewportHeight; - v2.viewportHeight = v89; - v1.viewport(v86, v87, v88, v89); - v40[0] = v86; - v40[1] = v87; - v40[2] = v88; - v40[3] = v89; - v1.blendColor(0, 0, 0, 1); + v101 = v2.framebufferWidth; + v102 = v2.framebufferHeight; + v103 = v2.viewportWidth; + v2.viewportWidth = v101; + v104 = v2.viewportHeight; + v2.viewportHeight = v102; + v1.viewport(0, 0, v101, v102); + v40[0] = 0; + v40[1] = 0; + v40[2] = v101; + v40[3] = v102; + v105 = v2.framebufferWidth; + v106 = v2.framebufferHeight; + v1.scissor(0, 0, v105, v106); + v38[0] = 0; + v38[1] = 0; + v38[2] = v105; + v38[3] = v106; + v107 = v5.profile; + if (v107) { + v108 = performance.now(); + g48.count++; + } + v109 = v9.frag; + v110 = v9.vert; + v111 = v9.program(v110, v109); + v1.useProgram(v111.program); + v11.setVAO(null); + v113 = v111.id; + v114 = v112[v113]; + if (v114) { + v114.call(this, a0); + } else { + v114 = v112[v113] = g115(v111); + v114.call(this, a0); + } + v5.dirty = true; + v11.setVAO(null); + v13.next = v52; + v2.framebufferWidth = v53; + v2.framebufferHeight = v54; + v2.viewportWidth = v103; + v2.viewportHeight = v104; + if (v107) { + g48.cpuTime += performance.now() - v108; + } + }, + "scope": function(a0, a1, a2) { + var v116, v117, v118, v119, v120, v121, v122, v123, v124, v126, v128, v129, v130, v131, v132, v134, v136, v137, v138, v139, v140; + v116 = a0["framebuffer"]; + v117 = v13.getFramebuffer(v116); + v118 = v13.next; + v13.next = v117; + v119 = v2.framebufferWidth; + v2.framebufferWidth = v117 ? v117.width : v2.drawingBufferWidth; + v120 = v2.framebufferHeight; + v2.framebufferHeight = v117 ? v117.height : v2.drawingBufferHeight; + v121 = v2.framebufferWidth; + v122 = v2.framebufferHeight; + v123 = v2.viewportWidth; + v2.viewportWidth = v121; + v124 = v2.viewportHeight; + v2.viewportHeight = v122; + v126 = v39[0]; + v39[0] = g125; + v128 = v39[1]; + v39[1] = g127; + v129 = v39[2]; + v39[2] = v121; + v130 = v39[3]; + v39[3] = v122; + v131 = v2.framebufferWidth; + v132 = v2.framebufferHeight; + v134 = v37[0]; + v37[0] = g133; + v136 = v37[1]; + v37[1] = g135; + v137 = v37[2]; + v37[2] = v131; + v138 = v37[3]; + v37[3] = v132; + v139 = v5.profile; + if (v139) { + v140 = performance.now(); + g48.count++; + } + v5.dirty = true; + a1(v2, a0, a2); + v13.next = v118; + v2.framebufferWidth = v119; + v2.framebufferHeight = v120; + v2.viewportWidth = v123; + v2.viewportHeight = v124; + v39[0] = v126; + v39[1] = v128; + v39[2] = v129; + v39[3] = v130; + v37[0] = v134; + v37[1] = v136; + v37[2] = v137; + v37[3] = v138; + if (v139) { + g48.cpuTime += performance.now() - v140; + } + v5.dirty = true; + }, + "batch": function(a0, a1) { + var v141, v188, v189, v190, v191, v192, v194, v195; + v141 = v14.angle_instanced_arrays; + if (v5.dirty) { + var v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v177, v178, v179, v180, v181, v182, v183, v184, v185, v186, v187; + v142 = v4.dither; + if (v142 !== v5.dither) { + if (v142) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v142; + } + v143 = v4.blend_enable; + if (v143 !== v5.blend_enable) { + if (v143) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v143; + } + v144 = v17[0]; + v145 = v17[1]; + v146 = v17[2]; + v147 = v17[3]; + if (v144 !== v18[0] || v145 !== v18[1] || v146 !== v18[2] || v147 !== v18[3]) { + v1.blendColor(v144, v145, v146, v147); + v18[0] = v144; + v18[1] = v145; + v18[2] = v146; + v18[3] = v147; + } + v148 = v19[0]; + v149 = v19[1]; + if (v148 !== v20[0] || v149 !== v20[1]) { + v1.blendEquationSeparate(v148, v149); + v20[0] = v148; + v20[1] = v149; + } + v150 = v21[0]; + v151 = v21[1]; + v152 = v21[2]; + v153 = v21[3]; + if (v150 !== v22[0] || v151 !== v22[1] || v152 !== v22[2] || v153 !== v22[3]) { + v1.blendFuncSeparate(v150, v151, v152, v153); + v22[0] = v150; + v22[1] = v151; + v22[2] = v152; + v22[3] = v153; + } + v154 = v4.depth_enable; + if (v154 !== v5.depth_enable) { + if (v154) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v154; + } + v155 = v4.depth_func; + if (v155 !== v5.depth_func) { + v1.depthFunc(v155); + v5.depth_func = v155; + } + v156 = v23[0]; + v157 = v23[1]; + if (v156 !== v24[0] || v157 !== v24[1]) { + v1.depthRange(v156, v157); + v24[0] = v156; + v24[1] = v157; + } + v158 = v4.depth_mask; + if (v158 !== v5.depth_mask) { + v1.depthMask(v158); + v5.depth_mask = v158; + } + v159 = v25[0]; + v160 = v25[1]; + v161 = v25[2]; + v162 = v25[3]; + if (v159 !== v26[0] || v160 !== v26[1] || v161 !== v26[2] || v162 !== v26[3]) { + v1.colorMask(v159, v160, v161, v162); + v26[0] = v159; + v26[1] = v160; + v26[2] = v161; + v26[3] = v162; + } + v163 = v4.cull_enable; + if (v163 !== v5.cull_enable) { + if (v163) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v163; + } + v164 = v4.cull_face; + if (v164 !== v5.cull_face) { + v1.cullFace(v164); + v5.cull_face = v164; + } + v165 = v4.frontFace; + if (v165 !== v5.frontFace) { + v1.frontFace(v165); + v5.frontFace = v165; + } + v166 = v4.lineWidth; + if (v166 !== v5.lineWidth) { + v1.lineWidth(v166); + v5.lineWidth = v166; + } + v167 = v4.polygonOffset_enable; + if (v167 !== v5.polygonOffset_enable) { + if (v167) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v167; + } + v168 = v27[0]; + v169 = v27[1]; + if (v168 !== v28[0] || v169 !== v28[1]) { + v1.polygonOffset(v168, v169); + v28[0] = v168; + v28[1] = v169; + } + v170 = v4.sample_alpha; + if (v170 !== v5.sample_alpha) { + if (v170) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v170; + } + v171 = v4.sample_enable; + if (v171 !== v5.sample_enable) { + if (v171) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v171; + } + v172 = v29[0]; + v173 = v29[1]; + if (v172 !== v30[0] || v173 !== v30[1]) { + v1.sampleCoverage(v172, v173); + v30[0] = v172; + v30[1] = v173; + } + v174 = v4.stencil_enable; + if (v174 !== v5.stencil_enable) { + if (v174) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v174; + } + v175 = v4.stencil_mask; + if (v175 !== v5.stencil_mask) { + v1.stencilMask(v175); + v5.stencil_mask = v175; + } + v176 = v31[0]; + v177 = v31[1]; + v178 = v31[2]; + if (v176 !== v32[0] || v177 !== v32[1] || v178 !== v32[2]) { + v1.stencilFunc(v176, v177, v178); + v32[0] = v176; + v32[1] = v177; + v32[2] = v178; + } + v179 = v33[0]; + v180 = v33[1]; + v181 = v33[2]; + v182 = v33[3]; + if (v179 !== v34[0] || v180 !== v34[1] || v181 !== v34[2] || v182 !== v34[3]) { + v1.stencilOpSeparate(v179, v180, v181, v182); + v34[0] = v179; + v34[1] = v180; + v34[2] = v181; + v34[3] = v182; + } + v183 = v35[0]; + v184 = v35[1]; + v185 = v35[2]; + v186 = v35[3]; + if (v183 !== v36[0] || v184 !== v36[1] || v185 !== v36[2] || v186 !== v36[3]) { + v1.stencilOpSeparate(v183, v184, v185, v186); + v36[0] = v183; + v36[1] = v184; + v36[2] = v185; + v36[3] = v186; + } + v187 = v4.scissor_enable; + if (v187 !== v5.scissor_enable) { + if (v187) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v187; + } + } + v188 = v5.profile; + if (v188) { + v189 = performance.now(); + g48.count += a1; + } + v190 = v9.frag; + v191 = v9.vert; + v192 = v9.program(v191, v190); + v1.useProgram(v192.program); + v11.setVAO(null); + v194 = v192.id; + v195 = v193[v194]; + if (v195) { + v195.call(this, a0, a1); + } else { + v195 = v193[v194] = g196(v192); + v195.call(this, a0, a1); + } + v5.dirty = true; + v11.setVAO(null); + if (v188) { + g48.cpuTime += performance.now() - v189; + } + } + }; + }; + } + }); + + // src/generated/regl-codegen/db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d + var require_db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d = __commonJS({ + "src/generated/regl-codegen/db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d"(exports, module) { + module.exports = function anonymous(g0, g48, g94, g95, g96, g97, g104, g105, g108, g124, g142, g160, g178, g182, g183, g186, g203, g221, g225, g227, g230, g232, g234, g235, g237, g239, g243, g245, g249, g250, g269, g271, g273, g275, g277, g279, g281, g283, g285, g287, g289, g291, g293, g306, g308, g312, g314, g318, g321, g324, g327, g330, g333, g336, g339, g342, g345, g348, g351, g354, g357, g360, g362, g375, g402, g429, g456, g483, g510, g537, g550, g552, g586, g587, g588, g589, g590) { + "use strict"; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50, v51, v52, v53, v54; + v1 = g0.gl; + v2 = g0.context; + v3 = g0.strings; + v4 = g0.next; + v5 = g0.current; + v6 = g0.draw; + v7 = g0.elements; + v8 = g0.buffer; + v9 = g0.shader; + v10 = g0.attributes; + v11 = g0.vao; + v12 = g0.uniforms; + v13 = g0.framebuffer; + v14 = g0.extensions; + v15 = g0.timer; + v16 = g0.isBufferArgs; + v17 = v4.blend_color; + v18 = v5.blend_color; + v19 = v4.blend_equation; + v20 = v5.blend_equation; + v21 = v4.blend_func; + v22 = v5.blend_func; + v23 = v4.depth_range; + v24 = v5.depth_range; + v25 = v4.colorMask; + v26 = v5.colorMask; + v27 = v4.polygonOffset_offset; + v28 = v5.polygonOffset_offset; + v29 = v4.sample_coverage; + v30 = v5.sample_coverage; + v31 = v4.stencil_func; + v32 = v5.stencil_func; + v33 = v4.stencil_opFront; + v34 = v5.stencil_opFront; + v35 = v4.stencil_opBack; + v36 = v5.stencil_opBack; + v37 = v4.scissor_box; + v38 = v5.scissor_box; + v39 = v4.viewport; + v40 = v5.viewport; + v41 = { + "points": 0, + "point": 0, + "lines": 1, + "line": 1, + "triangles": 4, + "triangle": 4, + "line loop": 2, + "line strip": 3, + "triangle strip": 5, + "triangle fan": 6 + }; + v42 = { + "never": 512, + "less": 513, + "<": 513, + "equal": 514, + "=": 514, + "==": 514, + "===": 514, + "lequal": 515, + "<=": 515, + "greater": 516, + ">": 516, + "notequal": 517, + "!=": 517, + "!==": 517, + "gequal": 518, + ">=": 518, + "always": 519 + }; + v43 = { + "0": 0, + "1": 1, + "zero": 0, + "one": 1, + "src color": 768, + "one minus src color": 769, + "src alpha": 770, + "one minus src alpha": 771, + "dst color": 774, + "one minus dst color": 775, + "dst alpha": 772, + "one minus dst alpha": 773, + "constant color": 32769, + "one minus constant color": 32770, + "constant alpha": 32771, + "one minus constant alpha": 32772, + "src alpha saturate": 776 + }; + v44 = { + "add": 32774, + "subtract": 32778, + "reverse subtract": 32779 + }; + v45 = { + "0": 0, + "zero": 0, + "keep": 7680, + "replace": 7681, + "increment": 7682, + "decrement": 7683, + "increment wrap": 34055, + "decrement wrap": 34056, + "invert": 5386 + }; + v46 = { + "int8": 5120, + "int16": 5122, + "int32": 5124, + "uint8": 5121, + "uint16": 5123, + "uint32": 5125, + "float": 5126, + "float32": 5126 + }; + v47 = { + "cw": 2304, + "ccw": 2305 + }; + v49 = {}; + v49.stride = 4; + v49.offset = 0; + v49.divisor = 1; + v50 = {}; + v50.stride = 4; + v50.offset = 4; + v50.divisor = 1; + v51 = {}; + v51.stride = 8; + v51.offset = 0; + v51.divisor = 1; + v52 = {}; + v52.stride = 8; + v52.offset = 8; + v52.divisor = 1; + v53 = {}; + v53.stride = 8; + v53.offset = 16; + v53.divisor = 1; + v54 = {}; + v54.stride = 8; + v54.offset = 24; + v54.divisor = 1; + return { + "draw": function(a0) { + var v55, v56, v87, v88, v89, v90, v91, v92, v93, v98, v99, v100, v101, v102, v103, v106, v107, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v120, v121, v122, v123, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v139, v140, v141, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v177, v179, v180, v181, v184, v185, v187, v188, v189, v190, v191, v192, v193, v194, v195, v196, v197, v198, v199, v200, v201, v202, v204, v205, v206, v207, v208, v209, v210, v211, v212, v213, v214, v215, v216, v217, v218, v219, v220, v222, v223, v224, v226, v228, v229, v231, v233, v236, v238, v240, v241, v242, v244, v246, v247, v248, v251, v252, v253, v254, v255, v256, v257; + v55 = v14.angle_instanced_arrays; + v56 = v13.next; + if (v56 !== v13.cur) { + if (v56) { + v1.bindFramebuffer(36160, v56.framebuffer); + } else { + v1.bindFramebuffer(36160, null); + } + v13.cur = v56; + } + if (v5.dirty) { + var v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86; + v57 = v4.dither; + if (v57 !== v5.dither) { + if (v57) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v57; + } + v58 = v4.depth_func; + if (v58 !== v5.depth_func) { + v1.depthFunc(v58); + v5.depth_func = v58; + } + v59 = v23[0]; + v60 = v23[1]; + if (v59 !== v24[0] || v60 !== v24[1]) { + v1.depthRange(v59, v60); + v24[0] = v59; + v24[1] = v60; + } + v61 = v4.depth_mask; + if (v61 !== v5.depth_mask) { + v1.depthMask(v61); + v5.depth_mask = v61; + } + v62 = v25[0]; + v63 = v25[1]; + v64 = v25[2]; + v65 = v25[3]; + if (v62 !== v26[0] || v63 !== v26[1] || v64 !== v26[2] || v65 !== v26[3]) { + v1.colorMask(v62, v63, v64, v65); + v26[0] = v62; + v26[1] = v63; + v26[2] = v64; + v26[3] = v65; + } + v66 = v4.frontFace; + if (v66 !== v5.frontFace) { + v1.frontFace(v66); + v5.frontFace = v66; + } + v67 = v4.lineWidth; + if (v67 !== v5.lineWidth) { + v1.lineWidth(v67); + v5.lineWidth = v67; + } + v68 = v4.polygonOffset_enable; + if (v68 !== v5.polygonOffset_enable) { + if (v68) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v68; + } + v69 = v27[0]; + v70 = v27[1]; + if (v69 !== v28[0] || v70 !== v28[1]) { + v1.polygonOffset(v69, v70); + v28[0] = v69; + v28[1] = v70; + } + v71 = v4.sample_alpha; + if (v71 !== v5.sample_alpha) { + if (v71) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v71; + } + v72 = v4.sample_enable; + if (v72 !== v5.sample_enable) { + if (v72) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v72; + } + v73 = v29[0]; + v74 = v29[1]; + if (v73 !== v30[0] || v74 !== v30[1]) { + v1.sampleCoverage(v73, v74); + v30[0] = v73; + v30[1] = v74; + } + v75 = v4.stencil_mask; + if (v75 !== v5.stencil_mask) { + v1.stencilMask(v75); + v5.stencil_mask = v75; + } + v76 = v31[0]; + v77 = v31[1]; + v78 = v31[2]; + if (v76 !== v32[0] || v77 !== v32[1] || v78 !== v32[2]) { + v1.stencilFunc(v76, v77, v78); + v32[0] = v76; + v32[1] = v77; + v32[2] = v78; + } + v79 = v33[0]; + v80 = v33[1]; + v81 = v33[2]; + v82 = v33[3]; + if (v79 !== v34[0] || v80 !== v34[1] || v81 !== v34[2] || v82 !== v34[3]) { + v1.stencilOpSeparate(v79, v80, v81, v82); + v34[0] = v79; + v34[1] = v80; + v34[2] = v81; + v34[3] = v82; + } + v83 = v35[0]; + v84 = v35[1]; + v85 = v35[2]; + v86 = v35[3]; + if (v83 !== v36[0] || v84 !== v36[1] || v85 !== v36[2] || v86 !== v36[3]) { + v1.stencilOpSeparate(v83, v84, v85, v86); + v36[0] = v83; + v36[1] = v84; + v36[2] = v85; + v36[3] = v86; + } + } + v87 = a0["viewport"]; + v88 = v87.x | 0; + v89 = v87.y | 0; + v90 = "width" in v87 ? v87.width | 0 : v2.framebufferWidth - v88; + v91 = "height" in v87 ? v87.height | 0 : v2.framebufferHeight - v89; + v92 = v2.viewportWidth; + v2.viewportWidth = v90; + v93 = v2.viewportHeight; + v2.viewportHeight = v91; + v1.viewport(v88, v89, v90, v91); + v40[0] = v88; + v40[1] = v89; + v40[2] = v90; + v40[3] = v91; + v1.blendColor(0, 0, 0, 0); v18[0] = 0; v18[1] = 0; v18[2] = 0; - v18[3] = 1; - if (g92) { + v18[3] = 0; + if (g94) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g92; + v5.blend_enable = g94; + v1.blendEquationSeparate(32774, 32774); + v20[0] = 32774; + v20[1] = 32774; v1.blendFuncSeparate(770, 771, 773, 1); v22[0] = 770; v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g93) { + if (g95) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = g95; + v1.cullFace(g96); + v5.cull_face = g96; + v98 = g97.call(this, v2, a0, 0); + if (v98) { v1.enable(2929); } else { v1.disable(2929); } - v5.depth_enable = g93; - v94 = a0["viewport"]; - v95 = v94.x | 0; - v96 = v94.y | 0; - v97 = "width" in v94 ? v94.width | 0 : v2.framebufferWidth - v95; - v98 = "height" in v94 ? v94.height | 0 : v2.framebufferHeight - v96; - v1.scissor(v95, v96, v97, v98); - v38[0] = v95; - v38[1] = v96; - v38[2] = v97; - v38[3] = v98; - if (g99) { + v5.depth_enable = v98; + v99 = a0["viewport"]; + v100 = v99.x | 0; + v101 = v99.y | 0; + v102 = "width" in v99 ? v99.width | 0 : v2.framebufferWidth - v100; + v103 = "height" in v99 ? v99.height | 0 : v2.framebufferHeight - v101; + v1.scissor(v100, v101, v102, v103); + v38[0] = v100; + v38[1] = v101; + v38[2] = v102; + v38[3] = v103; + if (g104) { v1.enable(3089); } else { v1.disable(3089); } - v5.scissor_enable = g99; - if (g100) { + v5.scissor_enable = g104; + if (g105) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = g100; - v101 = v5.profile; - if (v101) { - v102 = performance.now(); + v5.stencil_enable = g105; + v106 = v5.profile; + if (v106) { + v107 = performance.now(); g48.count++; } - v1.useProgram(g103.program); - v104 = v14.angle_instanced_arrays; + v1.useProgram(g108.program); + v109 = v14.angle_instanced_arrays; v11.setVAO(null); - v106 = g105.call(this, v2, a0, 0); - v107 = false; - v108 = 1; - v109 = 0; - v110 = 0; - v111 = 0; - v112 = 0; - v113 = null; + v110 = a0["colorBuffer"]; + v49.buffer = v110; + v111 = false; + v112 = 1; + v113 = 0; v114 = 0; - v115 = false; - v116 = 5126; - v117 = 0; + v115 = 0; + v116 = 0; + v117 = null; v118 = 0; - v119 = 0; - if (v16(v106)) { - v107 = true; - v113 = v8.createStream(34962, v106); - v116 = v113.dtype; + v119 = false; + v120 = 5126; + v121 = 0; + v122 = 0; + v123 = 0; + if (v16(v49)) { + v111 = true; + v117 = v8.createStream(34962, v49); + v120 = v117.dtype; } else { - v113 = v8.getBuffer(v106); - if (v113) { - v116 = v113.dtype; - } else if ("constant" in v106) { - v108 = 2; - if (typeof v106.constant === "number") { - v109 = v106.constant; - v110 = v111 = v112 = 0; + v117 = v8.getBuffer(v49); + if (v117) { + v120 = v117.dtype; + } else if ("constant" in v49) { + v112 = 2; + if (typeof v49.constant === "number") { + v113 = v49.constant; + v114 = v115 = v116 = 0; } else { - v109 = v106.constant.length > 0 ? v106.constant[0] : 0; - v110 = v106.constant.length > 1 ? v106.constant[1] : 0; - v111 = v106.constant.length > 2 ? v106.constant[2] : 0; - v112 = v106.constant.length > 3 ? v106.constant[3] : 0; + v113 = v49.constant.length > 0 ? v49.constant[0] : 0; + v114 = v49.constant.length > 1 ? v49.constant[1] : 0; + v115 = v49.constant.length > 2 ? v49.constant[2] : 0; + v116 = v49.constant.length > 3 ? v49.constant[3] : 0; } } else { - if (v16(v106.buffer)) { - v113 = v8.createStream(34962, v106.buffer); + if (v16(v49.buffer)) { + v117 = v8.createStream(34962, v49.buffer); } else { - v113 = v8.getBuffer(v106.buffer); + v117 = v8.getBuffer(v49.buffer); } - v116 = "type" in v106 ? v46[v106.type] : v113.dtype; - v115 = !!v106.normalized; - v114 = v106.size | 0; - v117 = v106.offset | 0; - v118 = v106.stride | 0; - v119 = v106.divisor | 0; + v120 = "type" in v49 ? v46[v49.type] : v117.dtype; + v119 = !!v49.normalized; + v118 = v49.size | 0; + v121 = v49.offset | 0; + v122 = v49.stride | 0; + v123 = v49.divisor | 0; } } - v121 = g120.location; - v122 = v10[v121]; - if (v108 === 1) { - if (!v122.buffer) { - v1.enableVertexAttribArray(v121); + v125 = g124.location; + v126 = v10[v125]; + if (v112 === 1) { + if (!v126.buffer) { + v1.enableVertexAttribArray(v125); } - v123 = v114 || 4; - if (v122.type !== v116 || v122.size !== v123 || v122.buffer !== v113 || v122.normalized !== v115 || v122.offset !== v117 || v122.stride !== v118) { - v1.bindBuffer(34962, v113.buffer); - v1.vertexAttribPointer(v121, v123, v116, v115, v118, v117); - v122.type = v116; - v122.size = v123; - v122.buffer = v113; - v122.normalized = v115; - v122.offset = v117; - v122.stride = v118; + v127 = v118 || 4; + if (v126.type !== v120 || v126.size !== v127 || v126.buffer !== v117 || v126.normalized !== v119 || v126.offset !== v121 || v126.stride !== v122) { + v1.bindBuffer(34962, v117.buffer); + v1.vertexAttribPointer(v125, v127, v120, v119, v122, v121); + v126.type = v120; + v126.size = v127; + v126.buffer = v117; + v126.normalized = v119; + v126.offset = v121; + v126.stride = v122; } - if (v122.divisor !== v119) { - v104.vertexAttribDivisorANGLE(v121, v119); - v122.divisor = v119; + if (v126.divisor !== v123) { + v109.vertexAttribDivisorANGLE(v125, v123); + v126.divisor = v123; } } else { - if (v122.buffer) { - v1.disableVertexAttribArray(v121); - v122.buffer = null; + if (v126.buffer) { + v1.disableVertexAttribArray(v125); + v126.buffer = null; } - if (v122.x !== v109 || v122.y !== v110 || v122.z !== v111 || v122.w !== v112) { - v1.vertexAttrib4f(v121, v109, v110, v111, v112); - v122.x = v109; - v122.y = v110; - v122.z = v111; - v122.w = v112; + if (v126.x !== v113 || v126.y !== v114 || v126.z !== v115 || v126.w !== v116) { + v1.vertexAttrib4f(v125, v113, v114, v115, v116); + v126.x = v113; + v126.y = v114; + v126.z = v115; + v126.w = v116; } } - v125 = g124.call(this, v2, a0, 0); - v126 = false; - v127 = 1; - v128 = 0; - v129 = 0; - v130 = 0; + v128 = a0["positionBuffer"]; + v52.buffer = v128; + v129 = false; + v130 = 1; v131 = 0; - v132 = null; + v132 = 0; v133 = 0; - v134 = false; - v135 = 5126; + v134 = 0; + v135 = null; v136 = 0; - v137 = 0; - v138 = 0; - if (v16(v125)) { - v126 = true; - v132 = v8.createStream(34962, v125); - v135 = v132.dtype; + v137 = false; + v138 = 5126; + v139 = 0; + v140 = 0; + v141 = 0; + if (v16(v52)) { + v129 = true; + v135 = v8.createStream(34962, v52); + v138 = v135.dtype; } else { - v132 = v8.getBuffer(v125); - if (v132) { - v135 = v132.dtype; - } else if ("constant" in v125) { - v127 = 2; - if (typeof v125.constant === "number") { - v128 = v125.constant; - v129 = v130 = v131 = 0; + v135 = v8.getBuffer(v52); + if (v135) { + v138 = v135.dtype; + } else if ("constant" in v52) { + v130 = 2; + if (typeof v52.constant === "number") { + v131 = v52.constant; + v132 = v133 = v134 = 0; } else { - v128 = v125.constant.length > 0 ? v125.constant[0] : 0; - v129 = v125.constant.length > 1 ? v125.constant[1] : 0; - v130 = v125.constant.length > 2 ? v125.constant[2] : 0; - v131 = v125.constant.length > 3 ? v125.constant[3] : 0; + v131 = v52.constant.length > 0 ? v52.constant[0] : 0; + v132 = v52.constant.length > 1 ? v52.constant[1] : 0; + v133 = v52.constant.length > 2 ? v52.constant[2] : 0; + v134 = v52.constant.length > 3 ? v52.constant[3] : 0; } } else { - if (v16(v125.buffer)) { - v132 = v8.createStream(34962, v125.buffer); + if (v16(v52.buffer)) { + v135 = v8.createStream(34962, v52.buffer); } else { - v132 = v8.getBuffer(v125.buffer); + v135 = v8.getBuffer(v52.buffer); } - v135 = "type" in v125 ? v46[v125.type] : v132.dtype; - v134 = !!v125.normalized; - v133 = v125.size | 0; - v136 = v125.offset | 0; - v137 = v125.stride | 0; - v138 = v125.divisor | 0; - } + v138 = "type" in v52 ? v46[v52.type] : v135.dtype; + v137 = !!v52.normalized; + v136 = v52.size | 0; + v139 = v52.offset | 0; + v140 = v52.stride | 0; + v141 = v52.divisor | 0; + } } - v140 = g139.location; - v141 = v10[v140]; - if (v127 === 1) { - if (!v141.buffer) { - v1.enableVertexAttribArray(v140); + v143 = g142.location; + v144 = v10[v143]; + if (v130 === 1) { + if (!v144.buffer) { + v1.enableVertexAttribArray(v143); } - v142 = v133 || 1; - if (v141.type !== v135 || v141.size !== v142 || v141.buffer !== v132 || v141.normalized !== v134 || v141.offset !== v136 || v141.stride !== v137) { - v1.bindBuffer(34962, v132.buffer); - v1.vertexAttribPointer(v140, v142, v135, v134, v137, v136); - v141.type = v135; - v141.size = v142; - v141.buffer = v132; - v141.normalized = v134; - v141.offset = v136; - v141.stride = v137; + v145 = v136 || 2; + if (v144.type !== v138 || v144.size !== v145 || v144.buffer !== v135 || v144.normalized !== v137 || v144.offset !== v139 || v144.stride !== v140) { + v1.bindBuffer(34962, v135.buffer); + v1.vertexAttribPointer(v143, v145, v138, v137, v140, v139); + v144.type = v138; + v144.size = v145; + v144.buffer = v135; + v144.normalized = v137; + v144.offset = v139; + v144.stride = v140; } - if (v141.divisor !== v138) { - v104.vertexAttribDivisorANGLE(v140, v138); - v141.divisor = v138; + if (v144.divisor !== v141) { + v109.vertexAttribDivisorANGLE(v143, v141); + v144.divisor = v141; } } else { - if (v141.buffer) { - v1.disableVertexAttribArray(v140); - v141.buffer = null; + if (v144.buffer) { + v1.disableVertexAttribArray(v143); + v144.buffer = null; } - if (v141.x !== v128 || v141.y !== v129 || v141.z !== v130 || v141.w !== v131) { - v1.vertexAttrib4f(v140, v128, v129, v130, v131); - v141.x = v128; - v141.y = v129; - v141.z = v130; - v141.w = v131; + if (v144.x !== v131 || v144.y !== v132 || v144.z !== v133 || v144.w !== v134) { + v1.vertexAttrib4f(v143, v131, v132, v133, v134); + v144.x = v131; + v144.y = v132; + v144.z = v133; + v144.w = v134; } } - v144 = g143.call(this, v2, a0, 0); - v145 = false; - v146 = 1; - v147 = 0; - v148 = 0; + v146 = a0["colorBuffer"]; + v50.buffer = v146; + v147 = false; + v148 = 1; v149 = 0; v150 = 0; - v151 = null; + v151 = 0; v152 = 0; - v153 = false; - v154 = 5126; - v155 = 0; - v156 = 0; + v153 = null; + v154 = 0; + v155 = false; + v156 = 5126; v157 = 0; - if (v16(v144)) { - v145 = true; - v151 = v8.createStream(34962, v144); - v154 = v151.dtype; + v158 = 0; + v159 = 0; + if (v16(v50)) { + v147 = true; + v153 = v8.createStream(34962, v50); + v156 = v153.dtype; } else { - v151 = v8.getBuffer(v144); - if (v151) { - v154 = v151.dtype; - } else if ("constant" in v144) { - v146 = 2; - if (typeof v144.constant === "number") { - v147 = v144.constant; - v148 = v149 = v150 = 0; + v153 = v8.getBuffer(v50); + if (v153) { + v156 = v153.dtype; + } else if ("constant" in v50) { + v148 = 2; + if (typeof v50.constant === "number") { + v149 = v50.constant; + v150 = v151 = v152 = 0; } else { - v147 = v144.constant.length > 0 ? v144.constant[0] : 0; - v148 = v144.constant.length > 1 ? v144.constant[1] : 0; - v149 = v144.constant.length > 2 ? v144.constant[2] : 0; - v150 = v144.constant.length > 3 ? v144.constant[3] : 0; + v149 = v50.constant.length > 0 ? v50.constant[0] : 0; + v150 = v50.constant.length > 1 ? v50.constant[1] : 0; + v151 = v50.constant.length > 2 ? v50.constant[2] : 0; + v152 = v50.constant.length > 3 ? v50.constant[3] : 0; } } else { - if (v16(v144.buffer)) { - v151 = v8.createStream(34962, v144.buffer); + if (v16(v50.buffer)) { + v153 = v8.createStream(34962, v50.buffer); } else { - v151 = v8.getBuffer(v144.buffer); + v153 = v8.getBuffer(v50.buffer); } - v154 = "type" in v144 ? v46[v144.type] : v151.dtype; - v153 = !!v144.normalized; - v152 = v144.size | 0; - v155 = v144.offset | 0; - v156 = v144.stride | 0; - v157 = v144.divisor | 0; + v156 = "type" in v50 ? v46[v50.type] : v153.dtype; + v155 = !!v50.normalized; + v154 = v50.size | 0; + v157 = v50.offset | 0; + v158 = v50.stride | 0; + v159 = v50.divisor | 0; } } - v159 = g158.location; - v160 = v10[v159]; - if (v146 === 1) { - if (!v160.buffer) { - v1.enableVertexAttribArray(v159); + v161 = g160.location; + v162 = v10[v161]; + if (v148 === 1) { + if (!v162.buffer) { + v1.enableVertexAttribArray(v161); } - v161 = v152 || 4; - if (v160.type !== v154 || v160.size !== v161 || v160.buffer !== v151 || v160.normalized !== v153 || v160.offset !== v155 || v160.stride !== v156) { - v1.bindBuffer(34962, v151.buffer); - v1.vertexAttribPointer(v159, v161, v154, v153, v156, v155); - v160.type = v154; - v160.size = v161; - v160.buffer = v151; - v160.normalized = v153; - v160.offset = v155; - v160.stride = v156; + v163 = v154 || 4; + if (v162.type !== v156 || v162.size !== v163 || v162.buffer !== v153 || v162.normalized !== v155 || v162.offset !== v157 || v162.stride !== v158) { + v1.bindBuffer(34962, v153.buffer); + v1.vertexAttribPointer(v161, v163, v156, v155, v158, v157); + v162.type = v156; + v162.size = v163; + v162.buffer = v153; + v162.normalized = v155; + v162.offset = v157; + v162.stride = v158; } - if (v160.divisor !== v157) { - v104.vertexAttribDivisorANGLE(v159, v157); - v160.divisor = v157; + if (v162.divisor !== v159) { + v109.vertexAttribDivisorANGLE(v161, v159); + v162.divisor = v159; } } else { - if (v160.buffer) { - v1.disableVertexAttribArray(v159); - v160.buffer = null; + if (v162.buffer) { + v1.disableVertexAttribArray(v161); + v162.buffer = null; } - if (v160.x !== v147 || v160.y !== v148 || v160.z !== v149 || v160.w !== v150) { - v1.vertexAttrib4f(v159, v147, v148, v149, v150); - v160.x = v147; - v160.y = v148; - v160.z = v149; - v160.w = v150; + if (v162.x !== v149 || v162.y !== v150 || v162.z !== v151 || v162.w !== v152) { + v1.vertexAttrib4f(v161, v149, v150, v151, v152); + v162.x = v149; + v162.y = v150; + v162.z = v151; + v162.w = v152; } } - v163 = g162.call(this, v2, a0, 0); - v164 = false; - v165 = 1; - v166 = 0; + v164 = a0["positionBuffer"]; + v53.buffer = v164; + v165 = false; + v166 = 1; v167 = 0; v168 = 0; v169 = 0; - v170 = null; - v171 = 0; - v172 = false; - v173 = 5126; - v174 = 0; + v170 = 0; + v171 = null; + v172 = 0; + v173 = false; + v174 = 5126; v175 = 0; v176 = 0; - if (v16(v163)) { - v164 = true; - v170 = v8.createStream(34962, v163); - v173 = v170.dtype; + v177 = 0; + if (v16(v53)) { + v165 = true; + v171 = v8.createStream(34962, v53); + v174 = v171.dtype; } else { - v170 = v8.getBuffer(v163); - if (v170) { - v173 = v170.dtype; - } else if ("constant" in v163) { - v165 = 2; - if (typeof v163.constant === "number") { - v166 = v163.constant; - v167 = v168 = v169 = 0; + v171 = v8.getBuffer(v53); + if (v171) { + v174 = v171.dtype; + } else if ("constant" in v53) { + v166 = 2; + if (typeof v53.constant === "number") { + v167 = v53.constant; + v168 = v169 = v170 = 0; } else { - v166 = v163.constant.length > 0 ? v163.constant[0] : 0; - v167 = v163.constant.length > 1 ? v163.constant[1] : 0; - v168 = v163.constant.length > 2 ? v163.constant[2] : 0; - v169 = v163.constant.length > 3 ? v163.constant[3] : 0; + v167 = v53.constant.length > 0 ? v53.constant[0] : 0; + v168 = v53.constant.length > 1 ? v53.constant[1] : 0; + v169 = v53.constant.length > 2 ? v53.constant[2] : 0; + v170 = v53.constant.length > 3 ? v53.constant[3] : 0; } } else { - if (v16(v163.buffer)) { - v170 = v8.createStream(34962, v163.buffer); + if (v16(v53.buffer)) { + v171 = v8.createStream(34962, v53.buffer); } else { - v170 = v8.getBuffer(v163.buffer); + v171 = v8.getBuffer(v53.buffer); } - v173 = "type" in v163 ? v46[v163.type] : v170.dtype; - v172 = !!v163.normalized; - v171 = v163.size | 0; - v174 = v163.offset | 0; - v175 = v163.stride | 0; - v176 = v163.divisor | 0; + v174 = "type" in v53 ? v46[v53.type] : v171.dtype; + v173 = !!v53.normalized; + v172 = v53.size | 0; + v175 = v53.offset | 0; + v176 = v53.stride | 0; + v177 = v53.divisor | 0; } } - v178 = g177.location; - v179 = v10[v178]; - if (v165 === 1) { - if (!v179.buffer) { - v1.enableVertexAttribArray(v178); + v179 = g178.location; + v180 = v10[v179]; + if (v166 === 1) { + if (!v180.buffer) { + v1.enableVertexAttribArray(v179); } - v180 = v171 || 1; - if (v179.type !== v173 || v179.size !== v180 || v179.buffer !== v170 || v179.normalized !== v172 || v179.offset !== v174 || v179.stride !== v175) { - v1.bindBuffer(34962, v170.buffer); - v1.vertexAttribPointer(v178, v180, v173, v172, v175, v174); - v179.type = v173; - v179.size = v180; - v179.buffer = v170; - v179.normalized = v172; - v179.offset = v174; - v179.stride = v175; + v181 = v172 || 2; + if (v180.type !== v174 || v180.size !== v181 || v180.buffer !== v171 || v180.normalized !== v173 || v180.offset !== v175 || v180.stride !== v176) { + v1.bindBuffer(34962, v171.buffer); + v1.vertexAttribPointer(v179, v181, v174, v173, v176, v175); + v180.type = v174; + v180.size = v181; + v180.buffer = v171; + v180.normalized = v173; + v180.offset = v175; + v180.stride = v176; } - if (v179.divisor !== v176) { - v104.vertexAttribDivisorANGLE(v178, v176); - v179.divisor = v176; + if (v180.divisor !== v177) { + v109.vertexAttribDivisorANGLE(v179, v177); + v180.divisor = v177; } } else { - if (v179.buffer) { - v1.disableVertexAttribArray(v178); - v179.buffer = null; + if (v180.buffer) { + v1.disableVertexAttribArray(v179); + v180.buffer = null; } - if (v179.x !== v166 || v179.y !== v167 || v179.z !== v168 || v179.w !== v169) { - v1.vertexAttrib4f(v178, v166, v167, v168, v169); - v179.x = v166; - v179.y = v167; - v179.z = v168; - v179.w = v169; + if (v180.x !== v167 || v180.y !== v168 || v180.z !== v169 || v180.w !== v170) { + v1.vertexAttrib4f(v179, v167, v168, v169, v170); + v180.x = v167; + v180.y = v168; + v180.z = v169; + v180.w = v170; } } - v182 = g181.call(this, v2, a0, 0); - v183 = false; - v184 = 1; - v185 = 0; - v186 = 0; - v187 = 0; - v188 = 0; - v189 = null; - v190 = 0; - v191 = false; - v192 = 5126; + v184 = g183.location; + v185 = v10[v184]; + if (!v185.buffer) { + v1.enableVertexAttribArray(v184); + } + if (v185.type !== 5126 || v185.size !== 1 || v185.buffer !== g182 || v185.normalized !== false || v185.offset !== 0 || v185.stride !== 8) { + v1.bindBuffer(34962, g182.buffer); + v1.vertexAttribPointer(v184, 1, 5126, false, 8, 0); + v185.type = 5126; + v185.size = 1; + v185.buffer = g182; + v185.normalized = false; + v185.offset = 0; + v185.stride = 8; + } + if (v185.divisor !== 0) { + v109.vertexAttribDivisorANGLE(v184, 0); + v185.divisor = 0; + } + v187 = g186.location; + v188 = v10[v187]; + if (!v188.buffer) { + v1.enableVertexAttribArray(v187); + } + if (v188.type !== 5126 || v188.size !== 1 || v188.buffer !== g182 || v188.normalized !== false || v188.offset !== 4 || v188.stride !== 8) { + v1.bindBuffer(34962, g182.buffer); + v1.vertexAttribPointer(v187, 1, 5126, false, 8, 4); + v188.type = 5126; + v188.size = 1; + v188.buffer = g182; + v188.normalized = false; + v188.offset = 4; + v188.stride = 8; + } + if (v188.divisor !== 0) { + v109.vertexAttribDivisorANGLE(v187, 0); + v188.divisor = 0; + } + v189 = a0["positionBuffer"]; + v54.buffer = v189; + v190 = false; + v191 = 1; + v192 = 0; v193 = 0; v194 = 0; v195 = 0; - if (v16(v182)) { - v183 = true; - v189 = v8.createStream(34962, v182); - v192 = v189.dtype; + v196 = null; + v197 = 0; + v198 = false; + v199 = 5126; + v200 = 0; + v201 = 0; + v202 = 0; + if (v16(v54)) { + v190 = true; + v196 = v8.createStream(34962, v54); + v199 = v196.dtype; } else { - v189 = v8.getBuffer(v182); - if (v189) { - v192 = v189.dtype; - } else if ("constant" in v182) { - v184 = 2; - if (typeof v182.constant === "number") { - v185 = v182.constant; - v186 = v187 = v188 = 0; + v196 = v8.getBuffer(v54); + if (v196) { + v199 = v196.dtype; + } else if ("constant" in v54) { + v191 = 2; + if (typeof v54.constant === "number") { + v192 = v54.constant; + v193 = v194 = v195 = 0; } else { - v185 = v182.constant.length > 0 ? v182.constant[0] : 0; - v186 = v182.constant.length > 1 ? v182.constant[1] : 0; - v187 = v182.constant.length > 2 ? v182.constant[2] : 0; - v188 = v182.constant.length > 3 ? v182.constant[3] : 0; + v192 = v54.constant.length > 0 ? v54.constant[0] : 0; + v193 = v54.constant.length > 1 ? v54.constant[1] : 0; + v194 = v54.constant.length > 2 ? v54.constant[2] : 0; + v195 = v54.constant.length > 3 ? v54.constant[3] : 0; } } else { - if (v16(v182.buffer)) { - v189 = v8.createStream(34962, v182.buffer); + if (v16(v54.buffer)) { + v196 = v8.createStream(34962, v54.buffer); } else { - v189 = v8.getBuffer(v182.buffer); + v196 = v8.getBuffer(v54.buffer); } - v192 = "type" in v182 ? v46[v182.type] : v189.dtype; - v191 = !!v182.normalized; - v190 = v182.size | 0; - v193 = v182.offset | 0; - v194 = v182.stride | 0; - v195 = v182.divisor | 0; + v199 = "type" in v54 ? v46[v54.type] : v196.dtype; + v198 = !!v54.normalized; + v197 = v54.size | 0; + v200 = v54.offset | 0; + v201 = v54.stride | 0; + v202 = v54.divisor | 0; } } - v197 = g196.location; - v198 = v10[v197]; - if (v184 === 1) { - if (!v198.buffer) { - v1.enableVertexAttribArray(v197); + v204 = g203.location; + v205 = v10[v204]; + if (v191 === 1) { + if (!v205.buffer) { + v1.enableVertexAttribArray(v204); } - v199 = v190 || 1; - if (v198.type !== v192 || v198.size !== v199 || v198.buffer !== v189 || v198.normalized !== v191 || v198.offset !== v193 || v198.stride !== v194) { - v1.bindBuffer(34962, v189.buffer); - v1.vertexAttribPointer(v197, v199, v192, v191, v194, v193); - v198.type = v192; - v198.size = v199; - v198.buffer = v189; - v198.normalized = v191; - v198.offset = v193; - v198.stride = v194; + v206 = v197 || 2; + if (v205.type !== v199 || v205.size !== v206 || v205.buffer !== v196 || v205.normalized !== v198 || v205.offset !== v200 || v205.stride !== v201) { + v1.bindBuffer(34962, v196.buffer); + v1.vertexAttribPointer(v204, v206, v199, v198, v201, v200); + v205.type = v199; + v205.size = v206; + v205.buffer = v196; + v205.normalized = v198; + v205.offset = v200; + v205.stride = v201; } - if (v198.divisor !== v195) { - v104.vertexAttribDivisorANGLE(v197, v195); - v198.divisor = v195; + if (v205.divisor !== v202) { + v109.vertexAttribDivisorANGLE(v204, v202); + v205.divisor = v202; } } else { - if (v198.buffer) { - v1.disableVertexAttribArray(v197); - v198.buffer = null; + if (v205.buffer) { + v1.disableVertexAttribArray(v204); + v205.buffer = null; } - if (v198.x !== v185 || v198.y !== v186 || v198.z !== v187 || v198.w !== v188) { - v1.vertexAttrib4f(v197, v185, v186, v187, v188); - v198.x = v185; - v198.y = v186; - v198.z = v187; - v198.w = v188; + if (v205.x !== v192 || v205.y !== v193 || v205.z !== v194 || v205.w !== v195) { + v1.vertexAttrib4f(v204, v192, v193, v194, v195); + v205.x = v192; + v205.y = v193; + v205.z = v194; + v205.w = v195; } } - v201 = g200.call(this, v2, a0, 0); - v202 = false; - v203 = 1; - v204 = 0; - v205 = 0; - v206 = 0; - v207 = 0; - v208 = null; - v209 = 0; - v210 = false; - v211 = 5126; + v207 = a0["positionBuffer"]; + v51.buffer = v207; + v208 = false; + v209 = 1; + v210 = 0; + v211 = 0; v212 = 0; v213 = 0; - v214 = 0; - if (v16(v201)) { - v202 = true; - v208 = v8.createStream(34962, v201); - v211 = v208.dtype; + v214 = null; + v215 = 0; + v216 = false; + v217 = 5126; + v218 = 0; + v219 = 0; + v220 = 0; + if (v16(v51)) { + v208 = true; + v214 = v8.createStream(34962, v51); + v217 = v214.dtype; } else { - v208 = v8.getBuffer(v201); - if (v208) { - v211 = v208.dtype; - } else if ("constant" in v201) { - v203 = 2; - if (typeof v201.constant === "number") { - v204 = v201.constant; - v205 = v206 = v207 = 0; + v214 = v8.getBuffer(v51); + if (v214) { + v217 = v214.dtype; + } else if ("constant" in v51) { + v209 = 2; + if (typeof v51.constant === "number") { + v210 = v51.constant; + v211 = v212 = v213 = 0; } else { - v204 = v201.constant.length > 0 ? v201.constant[0] : 0; - v205 = v201.constant.length > 1 ? v201.constant[1] : 0; - v206 = v201.constant.length > 2 ? v201.constant[2] : 0; - v207 = v201.constant.length > 3 ? v201.constant[3] : 0; + v210 = v51.constant.length > 0 ? v51.constant[0] : 0; + v211 = v51.constant.length > 1 ? v51.constant[1] : 0; + v212 = v51.constant.length > 2 ? v51.constant[2] : 0; + v213 = v51.constant.length > 3 ? v51.constant[3] : 0; } } else { - if (v16(v201.buffer)) { - v208 = v8.createStream(34962, v201.buffer); + if (v16(v51.buffer)) { + v214 = v8.createStream(34962, v51.buffer); } else { - v208 = v8.getBuffer(v201.buffer); + v214 = v8.getBuffer(v51.buffer); } - v211 = "type" in v201 ? v46[v201.type] : v208.dtype; - v210 = !!v201.normalized; - v209 = v201.size | 0; - v212 = v201.offset | 0; - v213 = v201.stride | 0; - v214 = v201.divisor | 0; + v217 = "type" in v51 ? v46[v51.type] : v214.dtype; + v216 = !!v51.normalized; + v215 = v51.size | 0; + v218 = v51.offset | 0; + v219 = v51.stride | 0; + v220 = v51.divisor | 0; } } - v216 = g215.location; - v217 = v10[v216]; - if (v203 === 1) { - if (!v217.buffer) { - v1.enableVertexAttribArray(v216); + v222 = g221.location; + v223 = v10[v222]; + if (v209 === 1) { + if (!v223.buffer) { + v1.enableVertexAttribArray(v222); } - v218 = v209 || 1; - if (v217.type !== v211 || v217.size !== v218 || v217.buffer !== v208 || v217.normalized !== v210 || v217.offset !== v212 || v217.stride !== v213) { - v1.bindBuffer(34962, v208.buffer); - v1.vertexAttribPointer(v216, v218, v211, v210, v213, v212); - v217.type = v211; - v217.size = v218; - v217.buffer = v208; - v217.normalized = v210; - v217.offset = v212; - v217.stride = v213; + v224 = v215 || 2; + if (v223.type !== v217 || v223.size !== v224 || v223.buffer !== v214 || v223.normalized !== v216 || v223.offset !== v218 || v223.stride !== v219) { + v1.bindBuffer(34962, v214.buffer); + v1.vertexAttribPointer(v222, v224, v217, v216, v219, v218); + v223.type = v217; + v223.size = v224; + v223.buffer = v214; + v223.normalized = v216; + v223.offset = v218; + v223.stride = v219; } - if (v217.divisor !== v214) { - v104.vertexAttribDivisorANGLE(v216, v214); - v217.divisor = v214; + if (v223.divisor !== v220) { + v109.vertexAttribDivisorANGLE(v222, v220); + v223.divisor = v220; } } else { - if (v217.buffer) { - v1.disableVertexAttribArray(v216); - v217.buffer = null; + if (v223.buffer) { + v1.disableVertexAttribArray(v222); + v223.buffer = null; } - if (v217.x !== v204 || v217.y !== v205 || v217.z !== v206 || v217.w !== v207) { - v1.vertexAttrib4f(v216, v204, v205, v206, v207); - v217.x = v204; - v217.y = v205; - v217.z = v206; - v217.w = v207; + if (v223.x !== v210 || v223.y !== v211 || v223.z !== v212 || v223.w !== v213) { + v1.vertexAttrib4f(v222, v210, v211, v212, v213); + v223.x = v210; + v223.y = v211; + v223.z = v212; + v223.w = v213; } } - v220 = g219.call(this, v2, a0, 0); - v221 = false; - v222 = 1; - v223 = 0; - v224 = 0; - v225 = 0; - v226 = 0; - v227 = null; - v228 = 0; - v229 = false; - v230 = 5126; - v231 = 0; - v232 = 0; - v233 = 0; - if (v16(v220)) { - v221 = true; - v227 = v8.createStream(34962, v220); - v230 = v227.dtype; - } else { - v227 = v8.getBuffer(v220); - if (v227) { - v230 = v227.dtype; - } else if ("constant" in v220) { - v222 = 2; - if (typeof v220.constant === "number") { - v223 = v220.constant; - v224 = v225 = v226 = 0; - } else { - v223 = v220.constant.length > 0 ? v220.constant[0] : 0; - v224 = v220.constant.length > 1 ? v220.constant[1] : 0; - v225 = v220.constant.length > 2 ? v220.constant[2] : 0; - v226 = v220.constant.length > 3 ? v220.constant[3] : 0; - } - } else { - if (v16(v220.buffer)) { - v227 = v8.createStream(34962, v220.buffer); - } else { - v227 = v8.getBuffer(v220.buffer); - } - v230 = "type" in v220 ? v46[v220.type] : v227.dtype; - v229 = !!v220.normalized; - v228 = v220.size | 0; - v231 = v220.offset | 0; - v232 = v220.stride | 0; - v233 = v220.divisor | 0; - } + v226 = a0["dashLength"]; + v1.uniform1f(g225.location, v226); + v228 = a0["dashTexture"]; + if (v228 && v228._reglType === "framebuffer") { + v228 = v228.color[0]; } - v235 = g234.location; - v236 = v10[v235]; - if (v222 === 1) { - if (!v236.buffer) { - v1.enableVertexAttribArray(v235); - } - v237 = v228 || 1; - if (v236.type !== v230 || v236.size !== v237 || v236.buffer !== v227 || v236.normalized !== v229 || v236.offset !== v231 || v236.stride !== v232) { - v1.bindBuffer(34962, v227.buffer); - v1.vertexAttribPointer(v235, v237, v230, v229, v232, v231); - v236.type = v230; - v236.size = v237; - v236.buffer = v227; - v236.normalized = v229; - v236.offset = v231; - v236.stride = v232; - } - if (v236.divisor !== v233) { - v104.vertexAttribDivisorANGLE(v235, v233); - v236.divisor = v233; - } - } else { - if (v236.buffer) { - v1.disableVertexAttribArray(v235); - v236.buffer = null; - } - if (v236.x !== v223 || v236.y !== v224 || v236.z !== v225 || v236.w !== v226) { - v1.vertexAttrib4f(v235, v223, v224, v225, v226); - v236.x = v223; - v236.y = v224; - v236.z = v225; - v236.w = v226; - } + v229 = v228._texture; + v1.uniform1i(g227.location, v229.bind()); + v231 = a0["depth"]; + v1.uniform1f(g230.location, v231); + v233 = a0["miterLimit"]; + v1.uniform1f(g232.location, v233); + v236 = g235.call(this, v2, a0, 0); + v1.uniform1f(g234.location, v236); + v238 = a0["opacity"]; + v1.uniform1f(g237.location, v238); + v240 = a0["scale"]; + v241 = v240[0]; + v242 = v240[1]; + v1.uniform2f(g239.location, v241, v242); + v244 = a0["thickness"]; + v1.uniform1f(g243.location, v244); + v246 = a0["translate"]; + v247 = v246[0]; + v248 = v246[1]; + v1.uniform2f(g245.location, v247, v248); + v251 = g250.call(this, v2, a0, 0); + v252 = v251[0]; + v253 = v251[1]; + v254 = v251[2]; + v255 = v251[3]; + v1.uniform4f(g249.location, v252, v253, v254, v255); + v256 = v6.elements; + if (v256) { + v1.bindBuffer(34963, v256.buffer.buffer); + } else if (v11.currentVAO) { + v256 = v7.getElements(v11.currentVAO.elements); + if (v256) v1.bindBuffer(34963, v256.buffer.buffer); } - v239 = g238.call(this, v2, a0, 0); - v240 = false; - v241 = 1; - v242 = 0; - v243 = 0; - v244 = 0; - v245 = 0; - v246 = null; - v247 = 0; - v248 = false; - v249 = 5126; - v250 = 0; - v251 = 0; - v252 = 0; - if (v16(v239)) { - v240 = true; - v246 = v8.createStream(34962, v239); - v249 = v246.dtype; - } else { - v246 = v8.getBuffer(v239); - if (v246) { - v249 = v246.dtype; - } else if ("constant" in v239) { - v241 = 2; - if (typeof v239.constant === "number") { - v242 = v239.constant; - v243 = v244 = v245 = 0; - } else { - v242 = v239.constant.length > 0 ? v239.constant[0] : 0; - v243 = v239.constant.length > 1 ? v239.constant[1] : 0; - v244 = v239.constant.length > 2 ? v239.constant[2] : 0; - v245 = v239.constant.length > 3 ? v239.constant[3] : 0; - } + v257 = a0["count"]; + if (v257 > 0) { + if (v256) { + v109.drawElementsInstancedANGLE(5, 4, v256.type, 0 << (v256.type - 5121 >> 1), v257); } else { - if (v16(v239.buffer)) { - v246 = v8.createStream(34962, v239.buffer); - } else { - v246 = v8.getBuffer(v239.buffer); - } - v249 = "type" in v239 ? v46[v239.type] : v246.dtype; - v248 = !!v239.normalized; - v247 = v239.size | 0; - v250 = v239.offset | 0; - v251 = v239.stride | 0; - v252 = v239.divisor | 0; - } - } - v254 = g253.location; - v255 = v10[v254]; - if (v241 === 1) { - if (!v255.buffer) { - v1.enableVertexAttribArray(v254); - } - v256 = v247 || 1; - if (v255.type !== v249 || v255.size !== v256 || v255.buffer !== v246 || v255.normalized !== v248 || v255.offset !== v250 || v255.stride !== v251) { - v1.bindBuffer(34962, v246.buffer); - v1.vertexAttribPointer(v254, v256, v249, v248, v251, v250); - v255.type = v249; - v255.size = v256; - v255.buffer = v246; - v255.normalized = v248; - v255.offset = v250; - v255.stride = v251; - } - if (v255.divisor !== v252) { - v104.vertexAttribDivisorANGLE(v254, v252); - v255.divisor = v252; - } - } else { - if (v255.buffer) { - v1.disableVertexAttribArray(v254); - v255.buffer = null; - } - if (v255.x !== v242 || v255.y !== v243 || v255.z !== v244 || v255.w !== v245) { - v1.vertexAttrib4f(v254, v242, v243, v244, v245); - v255.x = v242; - v255.y = v243; - v255.z = v244; - v255.w = v245; + v109.drawArraysInstancedANGLE(5, 0, 4, v257); } - } - v258 = g257.call(this, v2, a0, 0); - v259 = false; - v260 = 1; - v261 = 0; - v262 = 0; - v263 = 0; - v264 = 0; - v265 = null; - v266 = 0; - v267 = false; - v268 = 5126; - v269 = 0; - v270 = 0; - v271 = 0; - if (v16(v258)) { - v259 = true; - v265 = v8.createStream(34962, v258); - v268 = v265.dtype; - } else { - v265 = v8.getBuffer(v258); - if (v265) { - v268 = v265.dtype; - } else if ("constant" in v258) { - v260 = 2; - if (typeof v258.constant === "number") { - v261 = v258.constant; - v262 = v263 = v264 = 0; - } else { - v261 = v258.constant.length > 0 ? v258.constant[0] : 0; - v262 = v258.constant.length > 1 ? v258.constant[1] : 0; - v263 = v258.constant.length > 2 ? v258.constant[2] : 0; - v264 = v258.constant.length > 3 ? v258.constant[3] : 0; - } + } else if (v257 < 0) { + if (v256) { + v1.drawElements(5, 4, v256.type, 0 << (v256.type - 5121 >> 1)); } else { - if (v16(v258.buffer)) { - v265 = v8.createStream(34962, v258.buffer); - } else { - v265 = v8.getBuffer(v258.buffer); - } - v268 = "type" in v258 ? v46[v258.type] : v265.dtype; - v267 = !!v258.normalized; - v266 = v258.size | 0; - v269 = v258.offset | 0; - v270 = v258.stride | 0; - v271 = v258.divisor | 0; + v1.drawArrays(5, 0, 4); } } - v273 = g272.location; - v274 = v10[v273]; - if (v260 === 1) { - if (!v274.buffer) { - v1.enableVertexAttribArray(v273); - } - v275 = v266 || 1; - if (v274.type !== v268 || v274.size !== v275 || v274.buffer !== v265 || v274.normalized !== v267 || v274.offset !== v269 || v274.stride !== v270) { - v1.bindBuffer(34962, v265.buffer); - v1.vertexAttribPointer(v273, v275, v268, v267, v270, v269); - v274.type = v268; - v274.size = v275; - v274.buffer = v265; - v274.normalized = v267; - v274.offset = v269; - v274.stride = v270; - } - if (v274.divisor !== v271) { - v104.vertexAttribDivisorANGLE(v273, v271); - v274.divisor = v271; - } - } else { - if (v274.buffer) { - v1.disableVertexAttribArray(v273); - v274.buffer = null; - } - if (v274.x !== v261 || v274.y !== v262 || v274.z !== v263 || v274.w !== v264) { - v1.vertexAttrib4f(v273, v261, v262, v263, v264); - v274.x = v261; - v274.y = v262; - v274.z = v263; - v274.w = v264; - } + v5.dirty = true; + v11.setVAO(null); + v2.viewportWidth = v92; + v2.viewportHeight = v93; + if (v106) { + g48.cpuTime += performance.now() - v107; } - v1.uniform1i(g276.location, false); - v278 = a0["opacity"]; - v1.uniform1f(g277.location, v278); - v281 = g280.call(this, v2, a0, 0); - v282 = v281[0]; - v283 = v281[1]; - v1.uniform2f(g279.location, v282, v283); - v1.uniform1i(g284.location, g285.bind()); - v287 = v2["pixelRatio"]; - v1.uniform1f(g286.location, v287); - v289 = a0["scale"]; - v290 = v289[0]; - v291 = v289[1]; - v1.uniform2f(g288.location, v290, v291); - v293 = a0["scaleFract"]; - v294 = v293[0]; - v295 = v293[1]; - v1.uniform2f(g292.location, v294, v295); - v297 = a0["translate"]; - v298 = v297[0]; - v299 = v297[1]; - v1.uniform2f(g296.location, v298, v299); - v301 = a0["translateFract"]; - v302 = v301[0]; - v303 = v301[1]; - v1.uniform2f(g300.location, v302, v303); - v304 = a0["elements"]; - v305 = null; - v306 = v16(v304); - if (v306) { - v305 = v7.createStream(v304); - } else { - v305 = v7.getElements(v304); + if (v111) { + v8.destroyStream(v117); } - if (v305) v1.bindBuffer(34963, v305.buffer.buffer); - v307 = a0["offset"]; - v308 = a0["count"]; - if (v308) { - v309 = v6.instances; - if (v309 > 0) { - if (v305) { - v104.drawElementsInstancedANGLE(0, v308, v305.type, v307 << (v305.type - 5121 >> 1), v309); - } else { - v104.drawArraysInstancedANGLE(0, v307, v308, v309); - } - } else if (v309 < 0) { - if (v305) { - v1.drawElements(0, v308, v305.type, v307 << (v305.type - 5121 >> 1)); - } else { - v1.drawArrays(0, v307, v308); - } - } - v5.dirty = true; - v11.setVAO(null); - v2.viewportWidth = v90; - v2.viewportHeight = v91; - if (v101) { - g48.cpuTime += performance.now() - v102; - } - if (v107) { - v8.destroyStream(v113); - } - if (v126) { - v8.destroyStream(v132); - } - if (v145) { - v8.destroyStream(v151); - } - if (v164) { - v8.destroyStream(v170); - } - if (v183) { - v8.destroyStream(v189); - } - if (v202) { - v8.destroyStream(v208); - } - if (v221) { - v8.destroyStream(v227); - } - if (v240) { - v8.destroyStream(v246); - } - if (v259) { - v8.destroyStream(v265); - } - g285.unbind(); - if (v306) { - v7.destroyStream(v305); - } + if (v129) { + v8.destroyStream(v135); + } + if (v147) { + v8.destroyStream(v153); + } + if (v165) { + v8.destroyStream(v171); + } + if (v190) { + v8.destroyStream(v196); } + if (v208) { + v8.destroyStream(v214); + } + v229.unbind(); }, "scope": function(a0, a1, a2) { - var v310, v311, v312, v313, v314, v315, v316, v317, v318, v319, v320, v322, v324, v326, v328, v330, v332, v334, v336, v338, v340, v341, v342, v343, v344, v345, v346, v347, v348, v349, v351, v353, v354, v355, v356, v357, v358, v359, v360, v361, v362, v363, v365, v367, v370, v371, v373, v374, v376, v377, v379, v380, v382, v383, v385, v386, v388, v389, v391, v392, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v410, v411, v412, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v437, v438, v439, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v457, v458, v459, v460, v461, v462, v464, v465, v466, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v491, v492, v493, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v504, v505, v506, v507, v508, v509, v510, v511, v512, v513, v514, v515, v516, v518, v519, v520, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541, v542, v543, v545, v546, v547, v548, v549, v550, v551, v552, v553, v554, v555, v556, v557, v558, v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v595, v596, v597, v599, v600, v601, v602, v603, v604, v605, v606, v607, v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v626, v627, v628, v629, v630, v631, v632, v633, v634, v635, v636, v637, v639, v641; - v310 = a0["viewport"]; - v311 = v310.x | 0; - v312 = v310.y | 0; - v313 = "width" in v310 ? v310.width | 0 : v2.framebufferWidth - v311; - v314 = "height" in v310 ? v310.height | 0 : v2.framebufferHeight - v312; - v315 = v2.viewportWidth; - v2.viewportWidth = v313; - v316 = v2.viewportHeight; - v2.viewportHeight = v314; - v317 = v39[0]; - v39[0] = v311; - v318 = v39[1]; - v39[1] = v312; - v319 = v39[2]; - v39[2] = v313; - v320 = v39[3]; - v39[3] = v314; - v322 = v17[0]; - v17[0] = g321; - v324 = v17[1]; - v17[1] = g323; - v326 = v17[2]; - v17[2] = g325; - v328 = v17[3]; - v17[3] = g327; - v330 = v4.blend_enable; - v4.blend_enable = g329; - v332 = v21[0]; - v21[0] = g331; - v334 = v21[1]; - v21[1] = g333; - v336 = v21[2]; - v21[2] = g335; - v338 = v21[3]; - v21[3] = g337; - v340 = v4.depth_enable; - v4.depth_enable = g339; - v341 = a0["viewport"]; - v342 = v341.x | 0; - v343 = v341.y | 0; - v344 = "width" in v341 ? v341.width | 0 : v2.framebufferWidth - v342; - v345 = "height" in v341 ? v341.height | 0 : v2.framebufferHeight - v343; - v346 = v37[0]; - v37[0] = v342; - v347 = v37[1]; - v37[1] = v343; - v348 = v37[2]; - v37[2] = v344; - v349 = v37[3]; - v37[3] = v345; - v351 = v4.scissor_enable; - v4.scissor_enable = g350; - v353 = v4.stencil_enable; - v4.stencil_enable = g352; - v354 = v5.profile; - if (v354) { - v355 = performance.now(); + var v258, v259, v260, v261, v262, v263, v264, v265, v266, v267, v268, v270, v272, v274, v276, v278, v280, v282, v284, v286, v288, v290, v292, v294, v295, v296, v297, v298, v299, v300, v301, v302, v303, v304, v305, v307, v309, v310, v311, v313, v315, v316, v317, v319, v320, v322, v323, v325, v326, v328, v329, v331, v332, v334, v335, v337, v338, v340, v341, v343, v344, v346, v347, v349, v350, v352, v353, v355, v356, v358, v359, v361, v363, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v376, v377, v378, v379, v380, v381, v382, v383, v384, v385, v386, v387, v388, v389, v390, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v403, v404, v405, v406, v407, v408, v409, v410, v411, v412, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v430, v431, v432, v433, v434, v435, v436, v437, v438, v439, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v457, v458, v459, v460, v461, v462, v463, v464, v465, v466, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v484, v485, v486, v487, v488, v489, v490, v491, v492, v493, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v504, v505, v506, v507, v508, v509, v511, v512, v513, v514, v515, v516, v517, v518, v519, v520, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v538, v539, v540, v541, v542, v543, v544, v545, v546, v547, v548, v549, v551, v553; + v258 = a0["viewport"]; + v259 = v258.x | 0; + v260 = v258.y | 0; + v261 = "width" in v258 ? v258.width | 0 : v2.framebufferWidth - v259; + v262 = "height" in v258 ? v258.height | 0 : v2.framebufferHeight - v260; + v263 = v2.viewportWidth; + v2.viewportWidth = v261; + v264 = v2.viewportHeight; + v2.viewportHeight = v262; + v265 = v39[0]; + v39[0] = v259; + v266 = v39[1]; + v39[1] = v260; + v267 = v39[2]; + v39[2] = v261; + v268 = v39[3]; + v39[3] = v262; + v270 = v17[0]; + v17[0] = g269; + v272 = v17[1]; + v17[1] = g271; + v274 = v17[2]; + v17[2] = g273; + v276 = v17[3]; + v17[3] = g275; + v278 = v4.blend_enable; + v4.blend_enable = g277; + v280 = v19[0]; + v19[0] = g279; + v282 = v19[1]; + v19[1] = g281; + v284 = v21[0]; + v21[0] = g283; + v286 = v21[1]; + v21[1] = g285; + v288 = v21[2]; + v21[2] = g287; + v290 = v21[3]; + v21[3] = g289; + v292 = v4.cull_enable; + v4.cull_enable = g291; + v294 = v4.cull_face; + v4.cull_face = g293; + v295 = g97.call(this, v2, a0, a2); + v296 = v4.depth_enable; + v4.depth_enable = v295; + v297 = a0["viewport"]; + v298 = v297.x | 0; + v299 = v297.y | 0; + v300 = "width" in v297 ? v297.width | 0 : v2.framebufferWidth - v298; + v301 = "height" in v297 ? v297.height | 0 : v2.framebufferHeight - v299; + v302 = v37[0]; + v37[0] = v298; + v303 = v37[1]; + v37[1] = v299; + v304 = v37[2]; + v37[2] = v300; + v305 = v37[3]; + v37[3] = v301; + v307 = v4.scissor_enable; + v4.scissor_enable = g306; + v309 = v4.stencil_enable; + v4.stencil_enable = g308; + v310 = v5.profile; + if (v310) { + v311 = performance.now(); g48.count++; } - v356 = a0["elements"]; - v357 = null; - v358 = v16(v356); - if (v358) { - v357 = v7.createStream(v356); - } else { - v357 = v7.getElements(v356); - } - v359 = v6.elements; - v6.elements = v357; - v360 = a0["offset"]; - v361 = v6.offset; - v6.offset = v360; - v362 = a0["count"]; - v363 = v6.count; - v6.count = v362; - v365 = v6.primitive; - v6.primitive = g364; - v367 = v12[g366]; - v12[g366] = false; - v370 = v12[g369]; - v12[g369] = g368; - v371 = a0["opacity"]; - v373 = v12[g372]; - v12[g372] = v371; - v374 = g280.call(this, v2, a0, a2); - v376 = v12[g375]; - v12[g375] = v374; - v377 = v2["pixelRatio"]; - v379 = v12[g378]; - v12[g378] = v377; - v380 = a0["scale"]; - v382 = v12[g381]; - v12[g381] = v380; - v383 = a0["scaleFract"]; - v385 = v12[g384]; - v12[g384] = v383; - v386 = a0["translate"]; - v388 = v12[g387]; - v12[g387] = v386; - v389 = a0["translateFract"]; - v391 = v12[g390]; - v12[g390] = v389; - v392 = a0["markerTexture"]; - v394 = v12[g393]; - v12[g393] = v392; - v395 = g200.call(this, v2, a0, a2); - v396 = false; - v397 = 1; - v398 = 0; + v313 = v6.offset; + v6.offset = g312; + v315 = v6.count; + v6.count = g314; + v316 = a0["count"]; + v317 = v6.instances; + v6.instances = v316; + v319 = v6.primitive; + v6.primitive = g318; + v320 = g235.call(this, v2, a0, a2); + v322 = v12[g321]; + v12[g321] = v320; + v323 = a0["miterLimit"]; + v325 = v12[g324]; + v12[g324] = v323; + v326 = a0["scale"]; + v328 = v12[g327]; + v12[g327] = v326; + v329 = a0["scaleFract"]; + v331 = v12[g330]; + v12[g330] = v329; + v332 = a0["translateFract"]; + v334 = v12[g333]; + v12[g333] = v332; + v335 = a0["translate"]; + v337 = v12[g336]; + v12[g336] = v335; + v338 = a0["thickness"]; + v340 = v12[g339]; + v12[g339] = v338; + v341 = a0["dashTexture"]; + v343 = v12[g342]; + v12[g342] = v341; + v344 = a0["opacity"]; + v346 = v12[g345]; + v12[g345] = v344; + v347 = v2["pixelRatio"]; + v349 = v12[g348]; + v12[g348] = v347; + v350 = a0["id"]; + v352 = v12[g351]; + v12[g351] = v350; + v353 = a0["dashLength"]; + v355 = v12[g354]; + v12[g354] = v353; + v356 = g250.call(this, v2, a0, a2); + v358 = v12[g357]; + v12[g357] = v356; + v359 = a0["depth"]; + v361 = v12[g360]; + v12[g360] = v359; + v363 = g362.state; + g362.state = 1; + v364 = g362.x; + g362.x = 0; + v365 = g362.y; + g362.y = 0; + v366 = g362.z; + g362.z = 0; + v367 = g362.w; + g362.w = 0; + v368 = g362.buffer; + g362.buffer = g182; + v369 = g362.size; + g362.size = 0; + v370 = g362.normalized; + g362.normalized = false; + v371 = g362.type; + g362.type = 5126; + v372 = g362.offset; + g362.offset = 0; + v373 = g362.stride; + g362.stride = 8; + v374 = g362.divisor; + g362.divisor = 0; + v376 = g375.state; + g375.state = 1; + v377 = g375.x; + g375.x = 0; + v378 = g375.y; + g375.y = 0; + v379 = g375.z; + g375.z = 0; + v380 = g375.w; + g375.w = 0; + v381 = g375.buffer; + g375.buffer = g182; + v382 = g375.size; + g375.size = 0; + v383 = g375.normalized; + g375.normalized = false; + v384 = g375.type; + g375.type = 5126; + v385 = g375.offset; + g375.offset = 4; + v386 = g375.stride; + g375.stride = 8; + v387 = g375.divisor; + g375.divisor = 0; + v388 = a0["colorBuffer"]; + v49.buffer = v388; + v389 = false; + v390 = 1; + v391 = 0; + v392 = 0; + v393 = 0; + v394 = 0; + v395 = null; + v396 = 0; + v397 = false; + v398 = 5126; v399 = 0; v400 = 0; v401 = 0; - v402 = null; - v403 = 0; - v404 = false; - v405 = 5126; - v406 = 0; - v407 = 0; - v408 = 0; - if (v16(v395)) { - v396 = true; - v402 = v8.createStream(34962, v395); - v405 = v402.dtype; + if (v16(v49)) { + v389 = true; + v395 = v8.createStream(34962, v49); + v398 = v395.dtype; } else { - v402 = v8.getBuffer(v395); - if (v402) { - v405 = v402.dtype; - } else if ("constant" in v395) { - v397 = 2; - if (typeof v395.constant === "number") { - v398 = v395.constant; - v399 = v400 = v401 = 0; + v395 = v8.getBuffer(v49); + if (v395) { + v398 = v395.dtype; + } else if ("constant" in v49) { + v390 = 2; + if (typeof v49.constant === "number") { + v391 = v49.constant; + v392 = v393 = v394 = 0; } else { - v398 = v395.constant.length > 0 ? v395.constant[0] : 0; - v399 = v395.constant.length > 1 ? v395.constant[1] : 0; - v400 = v395.constant.length > 2 ? v395.constant[2] : 0; - v401 = v395.constant.length > 3 ? v395.constant[3] : 0; + v391 = v49.constant.length > 0 ? v49.constant[0] : 0; + v392 = v49.constant.length > 1 ? v49.constant[1] : 0; + v393 = v49.constant.length > 2 ? v49.constant[2] : 0; + v394 = v49.constant.length > 3 ? v49.constant[3] : 0; } } else { - if (v16(v395.buffer)) { - v402 = v8.createStream(34962, v395.buffer); + if (v16(v49.buffer)) { + v395 = v8.createStream(34962, v49.buffer); } else { - v402 = v8.getBuffer(v395.buffer); + v395 = v8.getBuffer(v49.buffer); } - v405 = "type" in v395 ? v46[v395.type] : v402.dtype; - v404 = !!v395.normalized; - v403 = v395.size | 0; - v406 = v395.offset | 0; - v407 = v395.stride | 0; - v408 = v395.divisor | 0; + v398 = "type" in v49 ? v46[v49.type] : v395.dtype; + v397 = !!v49.normalized; + v396 = v49.size | 0; + v399 = v49.offset | 0; + v400 = v49.stride | 0; + v401 = v49.divisor | 0; } } - v410 = g409.state; - g409.state = v397; - v411 = g409.x; - g409.x = v398; - v412 = g409.y; - g409.y = v399; - v413 = g409.z; - g409.z = v400; - v414 = g409.w; - g409.w = v401; - v415 = g409.buffer; - g409.buffer = v402; - v416 = g409.size; - g409.size = v403; - v417 = g409.normalized; - g409.normalized = v404; - v418 = g409.type; - g409.type = v405; - v419 = g409.offset; - g409.offset = v406; - v420 = g409.stride; - g409.stride = v407; - v421 = g409.divisor; - g409.divisor = v408; - v422 = g238.call(this, v2, a0, a2); - v423 = false; - v424 = 1; - v425 = 0; + v403 = g402.state; + g402.state = v390; + v404 = g402.x; + g402.x = v391; + v405 = g402.y; + g402.y = v392; + v406 = g402.z; + g402.z = v393; + v407 = g402.w; + g402.w = v394; + v408 = g402.buffer; + g402.buffer = v395; + v409 = g402.size; + g402.size = v396; + v410 = g402.normalized; + g402.normalized = v397; + v411 = g402.type; + g402.type = v398; + v412 = g402.offset; + g402.offset = v399; + v413 = g402.stride; + g402.stride = v400; + v414 = g402.divisor; + g402.divisor = v401; + v415 = a0["colorBuffer"]; + v50.buffer = v415; + v416 = false; + v417 = 1; + v418 = 0; + v419 = 0; + v420 = 0; + v421 = 0; + v422 = null; + v423 = 0; + v424 = false; + v425 = 5126; v426 = 0; v427 = 0; v428 = 0; - v429 = null; - v430 = 0; - v431 = false; - v432 = 5126; - v433 = 0; - v434 = 0; - v435 = 0; - if (v16(v422)) { - v423 = true; - v429 = v8.createStream(34962, v422); - v432 = v429.dtype; + if (v16(v50)) { + v416 = true; + v422 = v8.createStream(34962, v50); + v425 = v422.dtype; } else { - v429 = v8.getBuffer(v422); - if (v429) { - v432 = v429.dtype; - } else if ("constant" in v422) { - v424 = 2; - if (typeof v422.constant === "number") { - v425 = v422.constant; - v426 = v427 = v428 = 0; + v422 = v8.getBuffer(v50); + if (v422) { + v425 = v422.dtype; + } else if ("constant" in v50) { + v417 = 2; + if (typeof v50.constant === "number") { + v418 = v50.constant; + v419 = v420 = v421 = 0; } else { - v425 = v422.constant.length > 0 ? v422.constant[0] : 0; - v426 = v422.constant.length > 1 ? v422.constant[1] : 0; - v427 = v422.constant.length > 2 ? v422.constant[2] : 0; - v428 = v422.constant.length > 3 ? v422.constant[3] : 0; + v418 = v50.constant.length > 0 ? v50.constant[0] : 0; + v419 = v50.constant.length > 1 ? v50.constant[1] : 0; + v420 = v50.constant.length > 2 ? v50.constant[2] : 0; + v421 = v50.constant.length > 3 ? v50.constant[3] : 0; } } else { - if (v16(v422.buffer)) { - v429 = v8.createStream(34962, v422.buffer); + if (v16(v50.buffer)) { + v422 = v8.createStream(34962, v50.buffer); } else { - v429 = v8.getBuffer(v422.buffer); + v422 = v8.getBuffer(v50.buffer); } - v432 = "type" in v422 ? v46[v422.type] : v429.dtype; - v431 = !!v422.normalized; - v430 = v422.size | 0; - v433 = v422.offset | 0; - v434 = v422.stride | 0; - v435 = v422.divisor | 0; + v425 = "type" in v50 ? v46[v50.type] : v422.dtype; + v424 = !!v50.normalized; + v423 = v50.size | 0; + v426 = v50.offset | 0; + v427 = v50.stride | 0; + v428 = v50.divisor | 0; } } - v437 = g436.state; - g436.state = v424; - v438 = g436.x; - g436.x = v425; - v439 = g436.y; - g436.y = v426; - v440 = g436.z; - g436.z = v427; - v441 = g436.w; - g436.w = v428; - v442 = g436.buffer; - g436.buffer = v429; - v443 = g436.size; - g436.size = v430; - v444 = g436.normalized; - g436.normalized = v431; - v445 = g436.type; - g436.type = v432; - v446 = g436.offset; - g436.offset = v433; - v447 = g436.stride; - g436.stride = v434; - v448 = g436.divisor; - g436.divisor = v435; - v449 = g219.call(this, v2, a0, a2); - v450 = false; - v451 = 1; - v452 = 0; + v430 = g429.state; + g429.state = v417; + v431 = g429.x; + g429.x = v418; + v432 = g429.y; + g429.y = v419; + v433 = g429.z; + g429.z = v420; + v434 = g429.w; + g429.w = v421; + v435 = g429.buffer; + g429.buffer = v422; + v436 = g429.size; + g429.size = v423; + v437 = g429.normalized; + g429.normalized = v424; + v438 = g429.type; + g429.type = v425; + v439 = g429.offset; + g429.offset = v426; + v440 = g429.stride; + g429.stride = v427; + v441 = g429.divisor; + g429.divisor = v428; + v442 = a0["positionBuffer"]; + v51.buffer = v442; + v443 = false; + v444 = 1; + v445 = 0; + v446 = 0; + v447 = 0; + v448 = 0; + v449 = null; + v450 = 0; + v451 = false; + v452 = 5126; v453 = 0; v454 = 0; v455 = 0; - v456 = null; - v457 = 0; - v458 = false; - v459 = 5126; - v460 = 0; - v461 = 0; - v462 = 0; - if (v16(v449)) { - v450 = true; - v456 = v8.createStream(34962, v449); - v459 = v456.dtype; + if (v16(v51)) { + v443 = true; + v449 = v8.createStream(34962, v51); + v452 = v449.dtype; } else { - v456 = v8.getBuffer(v449); - if (v456) { - v459 = v456.dtype; - } else if ("constant" in v449) { - v451 = 2; - if (typeof v449.constant === "number") { - v452 = v449.constant; - v453 = v454 = v455 = 0; + v449 = v8.getBuffer(v51); + if (v449) { + v452 = v449.dtype; + } else if ("constant" in v51) { + v444 = 2; + if (typeof v51.constant === "number") { + v445 = v51.constant; + v446 = v447 = v448 = 0; } else { - v452 = v449.constant.length > 0 ? v449.constant[0] : 0; - v453 = v449.constant.length > 1 ? v449.constant[1] : 0; - v454 = v449.constant.length > 2 ? v449.constant[2] : 0; - v455 = v449.constant.length > 3 ? v449.constant[3] : 0; + v445 = v51.constant.length > 0 ? v51.constant[0] : 0; + v446 = v51.constant.length > 1 ? v51.constant[1] : 0; + v447 = v51.constant.length > 2 ? v51.constant[2] : 0; + v448 = v51.constant.length > 3 ? v51.constant[3] : 0; } } else { - if (v16(v449.buffer)) { - v456 = v8.createStream(34962, v449.buffer); + if (v16(v51.buffer)) { + v449 = v8.createStream(34962, v51.buffer); } else { - v456 = v8.getBuffer(v449.buffer); + v449 = v8.getBuffer(v51.buffer); } - v459 = "type" in v449 ? v46[v449.type] : v456.dtype; - v458 = !!v449.normalized; - v457 = v449.size | 0; - v460 = v449.offset | 0; - v461 = v449.stride | 0; - v462 = v449.divisor | 0; + v452 = "type" in v51 ? v46[v51.type] : v449.dtype; + v451 = !!v51.normalized; + v450 = v51.size | 0; + v453 = v51.offset | 0; + v454 = v51.stride | 0; + v455 = v51.divisor | 0; } } - v464 = g463.state; - g463.state = v451; - v465 = g463.x; - g463.x = v452; - v466 = g463.y; - g463.y = v453; - v467 = g463.z; - g463.z = v454; - v468 = g463.w; - g463.w = v455; - v469 = g463.buffer; - g463.buffer = v456; - v470 = g463.size; - g463.size = v457; - v471 = g463.normalized; - g463.normalized = v458; - v472 = g463.type; - g463.type = v459; - v473 = g463.offset; - g463.offset = v460; - v474 = g463.stride; - g463.stride = v461; - v475 = g463.divisor; - g463.divisor = v462; - v476 = g257.call(this, v2, a0, a2); - v477 = false; - v478 = 1; - v479 = 0; + v457 = g456.state; + g456.state = v444; + v458 = g456.x; + g456.x = v445; + v459 = g456.y; + g456.y = v446; + v460 = g456.z; + g456.z = v447; + v461 = g456.w; + g456.w = v448; + v462 = g456.buffer; + g456.buffer = v449; + v463 = g456.size; + g456.size = v450; + v464 = g456.normalized; + g456.normalized = v451; + v465 = g456.type; + g456.type = v452; + v466 = g456.offset; + g456.offset = v453; + v467 = g456.stride; + g456.stride = v454; + v468 = g456.divisor; + g456.divisor = v455; + v469 = a0["positionBuffer"]; + v52.buffer = v469; + v470 = false; + v471 = 1; + v472 = 0; + v473 = 0; + v474 = 0; + v475 = 0; + v476 = null; + v477 = 0; + v478 = false; + v479 = 5126; v480 = 0; v481 = 0; v482 = 0; - v483 = null; - v484 = 0; - v485 = false; - v486 = 5126; - v487 = 0; - v488 = 0; - v489 = 0; - if (v16(v476)) { - v477 = true; - v483 = v8.createStream(34962, v476); - v486 = v483.dtype; + if (v16(v52)) { + v470 = true; + v476 = v8.createStream(34962, v52); + v479 = v476.dtype; } else { - v483 = v8.getBuffer(v476); - if (v483) { - v486 = v483.dtype; - } else if ("constant" in v476) { - v478 = 2; - if (typeof v476.constant === "number") { - v479 = v476.constant; - v480 = v481 = v482 = 0; + v476 = v8.getBuffer(v52); + if (v476) { + v479 = v476.dtype; + } else if ("constant" in v52) { + v471 = 2; + if (typeof v52.constant === "number") { + v472 = v52.constant; + v473 = v474 = v475 = 0; } else { - v479 = v476.constant.length > 0 ? v476.constant[0] : 0; - v480 = v476.constant.length > 1 ? v476.constant[1] : 0; - v481 = v476.constant.length > 2 ? v476.constant[2] : 0; - v482 = v476.constant.length > 3 ? v476.constant[3] : 0; + v472 = v52.constant.length > 0 ? v52.constant[0] : 0; + v473 = v52.constant.length > 1 ? v52.constant[1] : 0; + v474 = v52.constant.length > 2 ? v52.constant[2] : 0; + v475 = v52.constant.length > 3 ? v52.constant[3] : 0; } } else { - if (v16(v476.buffer)) { - v483 = v8.createStream(34962, v476.buffer); + if (v16(v52.buffer)) { + v476 = v8.createStream(34962, v52.buffer); } else { - v483 = v8.getBuffer(v476.buffer); + v476 = v8.getBuffer(v52.buffer); } - v486 = "type" in v476 ? v46[v476.type] : v483.dtype; - v485 = !!v476.normalized; - v484 = v476.size | 0; - v487 = v476.offset | 0; - v488 = v476.stride | 0; - v489 = v476.divisor | 0; + v479 = "type" in v52 ? v46[v52.type] : v476.dtype; + v478 = !!v52.normalized; + v477 = v52.size | 0; + v480 = v52.offset | 0; + v481 = v52.stride | 0; + v482 = v52.divisor | 0; } } - v491 = g490.state; - g490.state = v478; - v492 = g490.x; - g490.x = v479; - v493 = g490.y; - g490.y = v480; - v494 = g490.z; - g490.z = v481; - v495 = g490.w; - g490.w = v482; - v496 = g490.buffer; - g490.buffer = v483; - v497 = g490.size; - g490.size = v484; - v498 = g490.normalized; - g490.normalized = v485; - v499 = g490.type; - g490.type = v486; - v500 = g490.offset; - g490.offset = v487; - v501 = g490.stride; - g490.stride = v488; - v502 = g490.divisor; - g490.divisor = v489; - v503 = g181.call(this, v2, a0, a2); - v504 = false; - v505 = 1; - v506 = 0; + v484 = g483.state; + g483.state = v471; + v485 = g483.x; + g483.x = v472; + v486 = g483.y; + g483.y = v473; + v487 = g483.z; + g483.z = v474; + v488 = g483.w; + g483.w = v475; + v489 = g483.buffer; + g483.buffer = v476; + v490 = g483.size; + g483.size = v477; + v491 = g483.normalized; + g483.normalized = v478; + v492 = g483.type; + g483.type = v479; + v493 = g483.offset; + g483.offset = v480; + v494 = g483.stride; + g483.stride = v481; + v495 = g483.divisor; + g483.divisor = v482; + v496 = a0["positionBuffer"]; + v53.buffer = v496; + v497 = false; + v498 = 1; + v499 = 0; + v500 = 0; + v501 = 0; + v502 = 0; + v503 = null; + v504 = 0; + v505 = false; + v506 = 5126; v507 = 0; v508 = 0; v509 = 0; - v510 = null; - v511 = 0; - v512 = false; - v513 = 5126; - v514 = 0; - v515 = 0; - v516 = 0; - if (v16(v503)) { - v504 = true; - v510 = v8.createStream(34962, v503); - v513 = v510.dtype; + if (v16(v53)) { + v497 = true; + v503 = v8.createStream(34962, v53); + v506 = v503.dtype; } else { - v510 = v8.getBuffer(v503); - if (v510) { - v513 = v510.dtype; - } else if ("constant" in v503) { - v505 = 2; - if (typeof v503.constant === "number") { - v506 = v503.constant; - v507 = v508 = v509 = 0; + v503 = v8.getBuffer(v53); + if (v503) { + v506 = v503.dtype; + } else if ("constant" in v53) { + v498 = 2; + if (typeof v53.constant === "number") { + v499 = v53.constant; + v500 = v501 = v502 = 0; } else { - v506 = v503.constant.length > 0 ? v503.constant[0] : 0; - v507 = v503.constant.length > 1 ? v503.constant[1] : 0; - v508 = v503.constant.length > 2 ? v503.constant[2] : 0; - v509 = v503.constant.length > 3 ? v503.constant[3] : 0; + v499 = v53.constant.length > 0 ? v53.constant[0] : 0; + v500 = v53.constant.length > 1 ? v53.constant[1] : 0; + v501 = v53.constant.length > 2 ? v53.constant[2] : 0; + v502 = v53.constant.length > 3 ? v53.constant[3] : 0; } } else { - if (v16(v503.buffer)) { - v510 = v8.createStream(34962, v503.buffer); + if (v16(v53.buffer)) { + v503 = v8.createStream(34962, v53.buffer); } else { - v510 = v8.getBuffer(v503.buffer); + v503 = v8.getBuffer(v53.buffer); } - v513 = "type" in v503 ? v46[v503.type] : v510.dtype; - v512 = !!v503.normalized; - v511 = v503.size | 0; - v514 = v503.offset | 0; - v515 = v503.stride | 0; - v516 = v503.divisor | 0; + v506 = "type" in v53 ? v46[v53.type] : v503.dtype; + v505 = !!v53.normalized; + v504 = v53.size | 0; + v507 = v53.offset | 0; + v508 = v53.stride | 0; + v509 = v53.divisor | 0; } } - v518 = g517.state; - g517.state = v505; - v519 = g517.x; - g517.x = v506; - v520 = g517.y; - g517.y = v507; - v521 = g517.z; - g517.z = v508; - v522 = g517.w; - g517.w = v509; - v523 = g517.buffer; - g517.buffer = v510; - v524 = g517.size; - g517.size = v511; - v525 = g517.normalized; - g517.normalized = v512; - v526 = g517.type; - g517.type = v513; - v527 = g517.offset; - g517.offset = v514; - v528 = g517.stride; - g517.stride = v515; - v529 = g517.divisor; - g517.divisor = v516; - v530 = g124.call(this, v2, a0, a2); - v531 = false; - v532 = 1; - v533 = 0; + v511 = g510.state; + g510.state = v498; + v512 = g510.x; + g510.x = v499; + v513 = g510.y; + g510.y = v500; + v514 = g510.z; + g510.z = v501; + v515 = g510.w; + g510.w = v502; + v516 = g510.buffer; + g510.buffer = v503; + v517 = g510.size; + g510.size = v504; + v518 = g510.normalized; + g510.normalized = v505; + v519 = g510.type; + g510.type = v506; + v520 = g510.offset; + g510.offset = v507; + v521 = g510.stride; + g510.stride = v508; + v522 = g510.divisor; + g510.divisor = v509; + v523 = a0["positionBuffer"]; + v54.buffer = v523; + v524 = false; + v525 = 1; + v526 = 0; + v527 = 0; + v528 = 0; + v529 = 0; + v530 = null; + v531 = 0; + v532 = false; + v533 = 5126; v534 = 0; v535 = 0; v536 = 0; - v537 = null; - v538 = 0; - v539 = false; - v540 = 5126; - v541 = 0; - v542 = 0; - v543 = 0; - if (v16(v530)) { - v531 = true; - v537 = v8.createStream(34962, v530); - v540 = v537.dtype; - } else { - v537 = v8.getBuffer(v530); - if (v537) { - v540 = v537.dtype; - } else if ("constant" in v530) { - v532 = 2; - if (typeof v530.constant === "number") { - v533 = v530.constant; - v534 = v535 = v536 = 0; - } else { - v533 = v530.constant.length > 0 ? v530.constant[0] : 0; - v534 = v530.constant.length > 1 ? v530.constant[1] : 0; - v535 = v530.constant.length > 2 ? v530.constant[2] : 0; - v536 = v530.constant.length > 3 ? v530.constant[3] : 0; - } - } else { - if (v16(v530.buffer)) { - v537 = v8.createStream(34962, v530.buffer); - } else { - v537 = v8.getBuffer(v530.buffer); - } - v540 = "type" in v530 ? v46[v530.type] : v537.dtype; - v539 = !!v530.normalized; - v538 = v530.size | 0; - v541 = v530.offset | 0; - v542 = v530.stride | 0; - v543 = v530.divisor | 0; - } - } - v545 = g544.state; - g544.state = v532; - v546 = g544.x; - g544.x = v533; - v547 = g544.y; - g544.y = v534; - v548 = g544.z; - g544.z = v535; - v549 = g544.w; - g544.w = v536; - v550 = g544.buffer; - g544.buffer = v537; - v551 = g544.size; - g544.size = v538; - v552 = g544.normalized; - g544.normalized = v539; - v553 = g544.type; - g544.type = v540; - v554 = g544.offset; - g544.offset = v541; - v555 = g544.stride; - g544.stride = v542; - v556 = g544.divisor; - g544.divisor = v543; - v557 = g143.call(this, v2, a0, a2); - v558 = false; - v559 = 1; - v560 = 0; - v561 = 0; - v562 = 0; - v563 = 0; - v564 = null; - v565 = 0; - v566 = false; - v567 = 5126; - v568 = 0; - v569 = 0; - v570 = 0; - if (v16(v557)) { - v558 = true; - v564 = v8.createStream(34962, v557); - v567 = v564.dtype; + if (v16(v54)) { + v524 = true; + v530 = v8.createStream(34962, v54); + v533 = v530.dtype; } else { - v564 = v8.getBuffer(v557); - if (v564) { - v567 = v564.dtype; - } else if ("constant" in v557) { - v559 = 2; - if (typeof v557.constant === "number") { - v560 = v557.constant; - v561 = v562 = v563 = 0; + v530 = v8.getBuffer(v54); + if (v530) { + v533 = v530.dtype; + } else if ("constant" in v54) { + v525 = 2; + if (typeof v54.constant === "number") { + v526 = v54.constant; + v527 = v528 = v529 = 0; } else { - v560 = v557.constant.length > 0 ? v557.constant[0] : 0; - v561 = v557.constant.length > 1 ? v557.constant[1] : 0; - v562 = v557.constant.length > 2 ? v557.constant[2] : 0; - v563 = v557.constant.length > 3 ? v557.constant[3] : 0; + v526 = v54.constant.length > 0 ? v54.constant[0] : 0; + v527 = v54.constant.length > 1 ? v54.constant[1] : 0; + v528 = v54.constant.length > 2 ? v54.constant[2] : 0; + v529 = v54.constant.length > 3 ? v54.constant[3] : 0; } } else { - if (v16(v557.buffer)) { - v564 = v8.createStream(34962, v557.buffer); + if (v16(v54.buffer)) { + v530 = v8.createStream(34962, v54.buffer); } else { - v564 = v8.getBuffer(v557.buffer); + v530 = v8.getBuffer(v54.buffer); } - v567 = "type" in v557 ? v46[v557.type] : v564.dtype; - v566 = !!v557.normalized; - v565 = v557.size | 0; - v568 = v557.offset | 0; - v569 = v557.stride | 0; - v570 = v557.divisor | 0; + v533 = "type" in v54 ? v46[v54.type] : v530.dtype; + v532 = !!v54.normalized; + v531 = v54.size | 0; + v534 = v54.offset | 0; + v535 = v54.stride | 0; + v536 = v54.divisor | 0; } } - v572 = g571.state; - g571.state = v559; - v573 = g571.x; - g571.x = v560; - v574 = g571.y; - g571.y = v561; - v575 = g571.z; - g571.z = v562; - v576 = g571.w; - g571.w = v563; - v577 = g571.buffer; - g571.buffer = v564; - v578 = g571.size; - g571.size = v565; - v579 = g571.normalized; - g571.normalized = v566; - v580 = g571.type; - g571.type = v567; - v581 = g571.offset; - g571.offset = v568; - v582 = g571.stride; - g571.stride = v569; - v583 = g571.divisor; - g571.divisor = v570; - v584 = g105.call(this, v2, a0, a2); - v585 = false; - v586 = 1; - v587 = 0; - v588 = 0; - v589 = 0; - v590 = 0; - v591 = null; - v592 = 0; - v593 = false; - v594 = 5126; - v595 = 0; - v596 = 0; - v597 = 0; - if (v16(v584)) { - v585 = true; - v591 = v8.createStream(34962, v584); - v594 = v591.dtype; - } else { - v591 = v8.getBuffer(v584); - if (v591) { - v594 = v591.dtype; - } else if ("constant" in v584) { - v586 = 2; - if (typeof v584.constant === "number") { - v587 = v584.constant; - v588 = v589 = v590 = 0; - } else { - v587 = v584.constant.length > 0 ? v584.constant[0] : 0; - v588 = v584.constant.length > 1 ? v584.constant[1] : 0; - v589 = v584.constant.length > 2 ? v584.constant[2] : 0; - v590 = v584.constant.length > 3 ? v584.constant[3] : 0; - } - } else { - if (v16(v584.buffer)) { - v591 = v8.createStream(34962, v584.buffer); - } else { - v591 = v8.getBuffer(v584.buffer); - } - v594 = "type" in v584 ? v46[v584.type] : v591.dtype; - v593 = !!v584.normalized; - v592 = v584.size | 0; - v595 = v584.offset | 0; - v596 = v584.stride | 0; - v597 = v584.divisor | 0; - } - } - v599 = g598.state; - g598.state = v586; - v600 = g598.x; - g598.x = v587; - v601 = g598.y; - g598.y = v588; - v602 = g598.z; - g598.z = v589; - v603 = g598.w; - g598.w = v590; - v604 = g598.buffer; - g598.buffer = v591; - v605 = g598.size; - g598.size = v592; - v606 = g598.normalized; - g598.normalized = v593; - v607 = g598.type; - g598.type = v594; - v608 = g598.offset; - g598.offset = v595; - v609 = g598.stride; - g598.stride = v596; - v610 = g598.divisor; - g598.divisor = v597; - v611 = g162.call(this, v2, a0, a2); - v612 = false; - v613 = 1; - v614 = 0; - v615 = 0; - v616 = 0; - v617 = 0; - v618 = null; - v619 = 0; - v620 = false; - v621 = 5126; - v622 = 0; - v623 = 0; - v624 = 0; - if (v16(v611)) { - v612 = true; - v618 = v8.createStream(34962, v611); - v621 = v618.dtype; - } else { - v618 = v8.getBuffer(v611); - if (v618) { - v621 = v618.dtype; - } else if ("constant" in v611) { - v613 = 2; - if (typeof v611.constant === "number") { - v614 = v611.constant; - v615 = v616 = v617 = 0; - } else { - v614 = v611.constant.length > 0 ? v611.constant[0] : 0; - v615 = v611.constant.length > 1 ? v611.constant[1] : 0; - v616 = v611.constant.length > 2 ? v611.constant[2] : 0; - v617 = v611.constant.length > 3 ? v611.constant[3] : 0; - } - } else { - if (v16(v611.buffer)) { - v618 = v8.createStream(34962, v611.buffer); - } else { - v618 = v8.getBuffer(v611.buffer); - } - v621 = "type" in v611 ? v46[v611.type] : v618.dtype; - v620 = !!v611.normalized; - v619 = v611.size | 0; - v622 = v611.offset | 0; - v623 = v611.stride | 0; - v624 = v611.divisor | 0; - } - } - v626 = g625.state; - g625.state = v613; - v627 = g625.x; - g625.x = v614; - v628 = g625.y; - g625.y = v615; - v629 = g625.z; - g625.z = v616; - v630 = g625.w; - g625.w = v617; - v631 = g625.buffer; - g625.buffer = v618; - v632 = g625.size; - g625.size = v619; - v633 = g625.normalized; - g625.normalized = v620; - v634 = g625.type; - g625.type = v621; - v635 = g625.offset; - g625.offset = v622; - v636 = g625.stride; - g625.stride = v623; - v637 = g625.divisor; - g625.divisor = v624; - v639 = v9.vert; - v9.vert = g638; - v641 = v9.frag; - v9.frag = g640; + v538 = g537.state; + g537.state = v525; + v539 = g537.x; + g537.x = v526; + v540 = g537.y; + g537.y = v527; + v541 = g537.z; + g537.z = v528; + v542 = g537.w; + g537.w = v529; + v543 = g537.buffer; + g537.buffer = v530; + v544 = g537.size; + g537.size = v531; + v545 = g537.normalized; + g537.normalized = v532; + v546 = g537.type; + g537.type = v533; + v547 = g537.offset; + g537.offset = v534; + v548 = g537.stride; + g537.stride = v535; + v549 = g537.divisor; + g537.divisor = v536; + v551 = v9.vert; + v9.vert = g550; + v553 = v9.frag; + v9.frag = g552; v5.dirty = true; a1(v2, a0, a2); - v2.viewportWidth = v315; - v2.viewportHeight = v316; - v39[0] = v317; - v39[1] = v318; - v39[2] = v319; - v39[3] = v320; - v17[0] = v322; - v17[1] = v324; - v17[2] = v326; - v17[3] = v328; - v4.blend_enable = v330; - v21[0] = v332; - v21[1] = v334; - v21[2] = v336; - v21[3] = v338; - v4.depth_enable = v340; - v37[0] = v346; - v37[1] = v347; - v37[2] = v348; - v37[3] = v349; - v4.scissor_enable = v351; - v4.stencil_enable = v353; - if (v354) { - g48.cpuTime += performance.now() - v355; - } - if (v358) { - v7.destroyStream(v357); - } - v6.elements = v359; - v6.offset = v361; - v6.count = v363; - v6.primitive = v365; - v12[g366] = v367; - v12[g369] = v370; - v12[g372] = v373; - v12[g375] = v376; - v12[g378] = v379; - v12[g381] = v382; - v12[g384] = v385; - v12[g387] = v388; - v12[g390] = v391; - v12[g393] = v394; - if (v396) { - v8.destroyStream(v402); - } - g409.state = v410; - g409.x = v411; - g409.y = v412; - g409.z = v413; - g409.w = v414; - g409.buffer = v415; - g409.size = v416; - g409.normalized = v417; - g409.type = v418; - g409.offset = v419; - g409.stride = v420; - g409.divisor = v421; - if (v423) { - v8.destroyStream(v429); - } - g436.state = v437; - g436.x = v438; - g436.y = v439; - g436.z = v440; - g436.w = v441; - g436.buffer = v442; - g436.size = v443; - g436.normalized = v444; - g436.type = v445; - g436.offset = v446; - g436.stride = v447; - g436.divisor = v448; - if (v450) { - v8.destroyStream(v456); + v2.viewportWidth = v263; + v2.viewportHeight = v264; + v39[0] = v265; + v39[1] = v266; + v39[2] = v267; + v39[3] = v268; + v17[0] = v270; + v17[1] = v272; + v17[2] = v274; + v17[3] = v276; + v4.blend_enable = v278; + v19[0] = v280; + v19[1] = v282; + v21[0] = v284; + v21[1] = v286; + v21[2] = v288; + v21[3] = v290; + v4.cull_enable = v292; + v4.cull_face = v294; + v4.depth_enable = v296; + v37[0] = v302; + v37[1] = v303; + v37[2] = v304; + v37[3] = v305; + v4.scissor_enable = v307; + v4.stencil_enable = v309; + if (v310) { + g48.cpuTime += performance.now() - v311; } - g463.state = v464; - g463.x = v465; - g463.y = v466; - g463.z = v467; - g463.w = v468; - g463.buffer = v469; - g463.size = v470; - g463.normalized = v471; - g463.type = v472; - g463.offset = v473; - g463.stride = v474; - g463.divisor = v475; - if (v477) { - v8.destroyStream(v483); + v6.offset = v313; + v6.count = v315; + v6.instances = v317; + v6.primitive = v319; + v12[g321] = v322; + v12[g324] = v325; + v12[g327] = v328; + v12[g330] = v331; + v12[g333] = v334; + v12[g336] = v337; + v12[g339] = v340; + v12[g342] = v343; + v12[g345] = v346; + v12[g348] = v349; + v12[g351] = v352; + v12[g354] = v355; + v12[g357] = v358; + v12[g360] = v361; + g362.state = v363; + g362.x = v364; + g362.y = v365; + g362.z = v366; + g362.w = v367; + g362.buffer = v368; + g362.size = v369; + g362.normalized = v370; + g362.type = v371; + g362.offset = v372; + g362.stride = v373; + g362.divisor = v374; + g375.state = v376; + g375.x = v377; + g375.y = v378; + g375.z = v379; + g375.w = v380; + g375.buffer = v381; + g375.size = v382; + g375.normalized = v383; + g375.type = v384; + g375.offset = v385; + g375.stride = v386; + g375.divisor = v387; + if (v389) { + v8.destroyStream(v395); } - g490.state = v491; - g490.x = v492; - g490.y = v493; - g490.z = v494; - g490.w = v495; - g490.buffer = v496; - g490.size = v497; - g490.normalized = v498; - g490.type = v499; - g490.offset = v500; - g490.stride = v501; - g490.divisor = v502; - if (v504) { - v8.destroyStream(v510); + g402.state = v403; + g402.x = v404; + g402.y = v405; + g402.z = v406; + g402.w = v407; + g402.buffer = v408; + g402.size = v409; + g402.normalized = v410; + g402.type = v411; + g402.offset = v412; + g402.stride = v413; + g402.divisor = v414; + if (v416) { + v8.destroyStream(v422); } - g517.state = v518; - g517.x = v519; - g517.y = v520; - g517.z = v521; - g517.w = v522; - g517.buffer = v523; - g517.size = v524; - g517.normalized = v525; - g517.type = v526; - g517.offset = v527; - g517.stride = v528; - g517.divisor = v529; - if (v531) { - v8.destroyStream(v537); + g429.state = v430; + g429.x = v431; + g429.y = v432; + g429.z = v433; + g429.w = v434; + g429.buffer = v435; + g429.size = v436; + g429.normalized = v437; + g429.type = v438; + g429.offset = v439; + g429.stride = v440; + g429.divisor = v441; + if (v443) { + v8.destroyStream(v449); } - g544.state = v545; - g544.x = v546; - g544.y = v547; - g544.z = v548; - g544.w = v549; - g544.buffer = v550; - g544.size = v551; - g544.normalized = v552; - g544.type = v553; - g544.offset = v554; - g544.stride = v555; - g544.divisor = v556; - if (v558) { - v8.destroyStream(v564); + g456.state = v457; + g456.x = v458; + g456.y = v459; + g456.z = v460; + g456.w = v461; + g456.buffer = v462; + g456.size = v463; + g456.normalized = v464; + g456.type = v465; + g456.offset = v466; + g456.stride = v467; + g456.divisor = v468; + if (v470) { + v8.destroyStream(v476); } - g571.state = v572; - g571.x = v573; - g571.y = v574; - g571.z = v575; - g571.w = v576; - g571.buffer = v577; - g571.size = v578; - g571.normalized = v579; - g571.type = v580; - g571.offset = v581; - g571.stride = v582; - g571.divisor = v583; - if (v585) { - v8.destroyStream(v591); + g483.state = v484; + g483.x = v485; + g483.y = v486; + g483.z = v487; + g483.w = v488; + g483.buffer = v489; + g483.size = v490; + g483.normalized = v491; + g483.type = v492; + g483.offset = v493; + g483.stride = v494; + g483.divisor = v495; + if (v497) { + v8.destroyStream(v503); } - g598.state = v599; - g598.x = v600; - g598.y = v601; - g598.z = v602; - g598.w = v603; - g598.buffer = v604; - g598.size = v605; - g598.normalized = v606; - g598.type = v607; - g598.offset = v608; - g598.stride = v609; - g598.divisor = v610; - if (v612) { - v8.destroyStream(v618); + g510.state = v511; + g510.x = v512; + g510.y = v513; + g510.z = v514; + g510.w = v515; + g510.buffer = v516; + g510.size = v517; + g510.normalized = v518; + g510.type = v519; + g510.offset = v520; + g510.stride = v521; + g510.divisor = v522; + if (v524) { + v8.destroyStream(v530); } - g625.state = v626; - g625.x = v627; - g625.y = v628; - g625.z = v629; - g625.w = v630; - g625.buffer = v631; - g625.size = v632; - g625.normalized = v633; - g625.type = v634; - g625.offset = v635; - g625.stride = v636; - g625.divisor = v637; - v9.vert = v639; - v9.frag = v641; + g537.state = v538; + g537.x = v539; + g537.y = v540; + g537.z = v541; + g537.w = v542; + g537.buffer = v543; + g537.size = v544; + g537.normalized = v545; + g537.type = v546; + g537.offset = v547; + g537.stride = v548; + g537.divisor = v549; + v9.vert = v551; + v9.frag = v553; v5.dirty = true; }, "batch": function(a0, a1) { - var v642, v643, v682, v683, v684, v685, v686; - v642 = v14.angle_instanced_arrays; - v643 = v13.next; - if (v643 !== v13.cur) { - if (v643) { - v1.bindFramebuffer(36160, v643.framebuffer); + var v554, v555, v591, v592, v593, v594, v595; + v554 = v14.angle_instanced_arrays; + v555 = v13.next; + if (v555 !== v13.cur) { + if (v555) { + v1.bindFramebuffer(36160, v555.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v643; + v13.cur = v555; } if (v5.dirty) { - var v644, v645, v646, v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677; - v644 = v4.dither; - if (v644 !== v5.dither) { - if (v644) { + var v556, v557, v558, v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v571, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585; + v556 = v4.dither; + if (v556 !== v5.dither) { + if (v556) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v644; - } - v645 = v19[0]; - v646 = v19[1]; - if (v645 !== v20[0] || v646 !== v20[1]) { - v1.blendEquationSeparate(v645, v646); - v20[0] = v645; - v20[1] = v646; - } - v647 = v4.depth_func; - if (v647 !== v5.depth_func) { - v1.depthFunc(v647); - v5.depth_func = v647; - } - v648 = v23[0]; - v649 = v23[1]; - if (v648 !== v24[0] || v649 !== v24[1]) { - v1.depthRange(v648, v649); - v24[0] = v648; - v24[1] = v649; + v5.dither = v556; } - v650 = v4.depth_mask; - if (v650 !== v5.depth_mask) { - v1.depthMask(v650); - v5.depth_mask = v650; + v557 = v4.depth_func; + if (v557 !== v5.depth_func) { + v1.depthFunc(v557); + v5.depth_func = v557; } - v651 = v25[0]; - v652 = v25[1]; - v653 = v25[2]; - v654 = v25[3]; - if (v651 !== v26[0] || v652 !== v26[1] || v653 !== v26[2] || v654 !== v26[3]) { - v1.colorMask(v651, v652, v653, v654); - v26[0] = v651; - v26[1] = v652; - v26[2] = v653; - v26[3] = v654; + v558 = v23[0]; + v559 = v23[1]; + if (v558 !== v24[0] || v559 !== v24[1]) { + v1.depthRange(v558, v559); + v24[0] = v558; + v24[1] = v559; } - v655 = v4.cull_enable; - if (v655 !== v5.cull_enable) { - if (v655) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v655; + v560 = v4.depth_mask; + if (v560 !== v5.depth_mask) { + v1.depthMask(v560); + v5.depth_mask = v560; } - v656 = v4.cull_face; - if (v656 !== v5.cull_face) { - v1.cullFace(v656); - v5.cull_face = v656; + v561 = v25[0]; + v562 = v25[1]; + v563 = v25[2]; + v564 = v25[3]; + if (v561 !== v26[0] || v562 !== v26[1] || v563 !== v26[2] || v564 !== v26[3]) { + v1.colorMask(v561, v562, v563, v564); + v26[0] = v561; + v26[1] = v562; + v26[2] = v563; + v26[3] = v564; } - v657 = v4.frontFace; - if (v657 !== v5.frontFace) { - v1.frontFace(v657); - v5.frontFace = v657; + v565 = v4.frontFace; + if (v565 !== v5.frontFace) { + v1.frontFace(v565); + v5.frontFace = v565; } - v658 = v4.lineWidth; - if (v658 !== v5.lineWidth) { - v1.lineWidth(v658); - v5.lineWidth = v658; + v566 = v4.lineWidth; + if (v566 !== v5.lineWidth) { + v1.lineWidth(v566); + v5.lineWidth = v566; } - v659 = v4.polygonOffset_enable; - if (v659 !== v5.polygonOffset_enable) { - if (v659) { + v567 = v4.polygonOffset_enable; + if (v567 !== v5.polygonOffset_enable) { + if (v567) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v659; + v5.polygonOffset_enable = v567; } - v660 = v27[0]; - v661 = v27[1]; - if (v660 !== v28[0] || v661 !== v28[1]) { - v1.polygonOffset(v660, v661); - v28[0] = v660; - v28[1] = v661; + v568 = v27[0]; + v569 = v27[1]; + if (v568 !== v28[0] || v569 !== v28[1]) { + v1.polygonOffset(v568, v569); + v28[0] = v568; + v28[1] = v569; } - v662 = v4.sample_alpha; - if (v662 !== v5.sample_alpha) { - if (v662) { + v570 = v4.sample_alpha; + if (v570 !== v5.sample_alpha) { + if (v570) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v662; + v5.sample_alpha = v570; } - v663 = v4.sample_enable; - if (v663 !== v5.sample_enable) { - if (v663) { + v571 = v4.sample_enable; + if (v571 !== v5.sample_enable) { + if (v571) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v663; + v5.sample_enable = v571; } - v664 = v29[0]; - v665 = v29[1]; - if (v664 !== v30[0] || v665 !== v30[1]) { - v1.sampleCoverage(v664, v665); - v30[0] = v664; - v30[1] = v665; + v572 = v29[0]; + v573 = v29[1]; + if (v572 !== v30[0] || v573 !== v30[1]) { + v1.sampleCoverage(v572, v573); + v30[0] = v572; + v30[1] = v573; } - v666 = v4.stencil_mask; - if (v666 !== v5.stencil_mask) { - v1.stencilMask(v666); - v5.stencil_mask = v666; + v574 = v4.stencil_mask; + if (v574 !== v5.stencil_mask) { + v1.stencilMask(v574); + v5.stencil_mask = v574; } - v667 = v31[0]; - v668 = v31[1]; - v669 = v31[2]; - if (v667 !== v32[0] || v668 !== v32[1] || v669 !== v32[2]) { - v1.stencilFunc(v667, v668, v669); - v32[0] = v667; - v32[1] = v668; - v32[2] = v669; + v575 = v31[0]; + v576 = v31[1]; + v577 = v31[2]; + if (v575 !== v32[0] || v576 !== v32[1] || v577 !== v32[2]) { + v1.stencilFunc(v575, v576, v577); + v32[0] = v575; + v32[1] = v576; + v32[2] = v577; } - v670 = v33[0]; - v671 = v33[1]; - v672 = v33[2]; - v673 = v33[3]; - if (v670 !== v34[0] || v671 !== v34[1] || v672 !== v34[2] || v673 !== v34[3]) { - v1.stencilOpSeparate(v670, v671, v672, v673); - v34[0] = v670; - v34[1] = v671; - v34[2] = v672; - v34[3] = v673; + v578 = v33[0]; + v579 = v33[1]; + v580 = v33[2]; + v581 = v33[3]; + if (v578 !== v34[0] || v579 !== v34[1] || v580 !== v34[2] || v581 !== v34[3]) { + v1.stencilOpSeparate(v578, v579, v580, v581); + v34[0] = v578; + v34[1] = v579; + v34[2] = v580; + v34[3] = v581; } - v674 = v35[0]; - v675 = v35[1]; - v676 = v35[2]; - v677 = v35[3]; - if (v674 !== v36[0] || v675 !== v36[1] || v676 !== v36[2] || v677 !== v36[3]) { - v1.stencilOpSeparate(v674, v675, v676, v677); - v36[0] = v674; - v36[1] = v675; - v36[2] = v676; - v36[3] = v677; + v582 = v35[0]; + v583 = v35[1]; + v584 = v35[2]; + v585 = v35[3]; + if (v582 !== v36[0] || v583 !== v36[1] || v584 !== v36[2] || v585 !== v36[3]) { + v1.stencilOpSeparate(v582, v583, v584, v585); + v36[0] = v582; + v36[1] = v583; + v36[2] = v584; + v36[3] = v585; } } - v1.blendColor(0, 0, 0, 1); + v1.blendColor(0, 0, 0, 0); v18[0] = 0; v18[1] = 0; v18[2] = 0; - v18[3] = 1; - if (g678) { + v18[3] = 0; + if (g586) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g678; + v5.blend_enable = g586; + v1.blendEquationSeparate(32774, 32774); + v20[0] = 32774; + v20[1] = 32774; v1.blendFuncSeparate(770, 771, 773, 1); v22[0] = 770; v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g679) { - v1.enable(2929); + if (g587) { + v1.enable(2884); } else { - v1.disable(2929); + v1.disable(2884); } - v5.depth_enable = g679; - if (g680) { + v5.cull_enable = g587; + v1.cullFace(g588); + v5.cull_face = g588; + if (g589) { v1.enable(3089); } else { v1.disable(3089); } - v5.scissor_enable = g680; - if (g681) { + v5.scissor_enable = g589; + if (g590) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = g681; - v682 = v5.profile; - if (v682) { - v683 = performance.now(); + v5.stencil_enable = g590; + v591 = v5.profile; + if (v591) { + v592 = performance.now(); g48.count += a1; } - v1.useProgram(g103.program); - v684 = v14.angle_instanced_arrays; - var v886; + v1.useProgram(g108.program); + v593 = v14.angle_instanced_arrays; + var v609, v610, v611, v612, v748; v11.setVAO(null); - v1.uniform1i(g276.location, false); - v1.uniform1i(g284.location, g285.bind()); - v886 = v6.instances; - for (v685 = 0; v685 < a1; ++v685) { - v686 = a0[v685]; - var v687, v688, v689, v690, v691, v692, v693, v694, v695, v696, v697, v698, v699, v700, v701, v702, v703, v704, v705, v706, v707, v708, v709, v710, v711, v712, v713, v714, v715, v716, v717, v718, v719, v720, v721, v722, v723, v724, v725, v726, v727, v728, v729, v730, v731, v732, v733, v734, v735, v736, v737, v738, v739, v740, v741, v742, v743, v744, v745, v746, v747, v748, v749, v750, v751, v752, v753, v754, v755, v756, v757, v758, v759, v760, v761, v762, v763, v764, v765, v766, v767, v768, v769, v770, v771, v772, v773, v774, v775, v776, v777, v778, v779, v780, v781, v782, v783, v784, v785, v786, v787, v788, v789, v790, v791, v792, v793, v794, v795, v796, v797, v798, v799, v800, v801, v802, v803, v804, v805, v806, v807, v808, v809, v810, v811, v812, v813, v814, v815, v816, v817, v818, v819, v820, v821, v822, v823, v824, v825, v826, v827, v828, v829, v830, v831, v832, v833, v834, v835, v836, v837, v838, v839, v840, v841, v842, v843, v844, v845, v846, v847, v848, v849, v850, v851, v852, v853, v854, v855, v856, v857, v858, v859, v860, v861, v862, v863, v864, v865, v866, v867, v868, v869, v870, v871, v872, v873, v874, v875, v876, v877, v878, v879, v880, v881, v882, v883, v884, v885; - v687 = v686["viewport"]; - v688 = v687.x | 0; - v689 = v687.y | 0; - v690 = "width" in v687 ? v687.width | 0 : v2.framebufferWidth - v688; - v691 = "height" in v687 ? v687.height | 0 : v2.framebufferHeight - v689; - v692 = v2.viewportWidth; - v2.viewportWidth = v690; - v693 = v2.viewportHeight; - v2.viewportHeight = v691; - v1.viewport(v688, v689, v690, v691); - v40[0] = v688; - v40[1] = v689; - v40[2] = v690; - v40[3] = v691; - v694 = v686["viewport"]; - v695 = v694.x | 0; - v696 = v694.y | 0; - v697 = "width" in v694 ? v694.width | 0 : v2.framebufferWidth - v695; - v698 = "height" in v694 ? v694.height | 0 : v2.framebufferHeight - v696; - v1.scissor(v695, v696, v697, v698); - v38[0] = v695; - v38[1] = v696; - v38[2] = v697; - v38[3] = v698; - v699 = g105.call(this, v2, v686, v685); - v700 = false; - v701 = 1; - v702 = 0; - v703 = 0; - v704 = 0; - v705 = 0; - v706 = null; - v707 = 0; - v708 = false; - v709 = 5126; - v710 = 0; - v711 = 0; - v712 = 0; - if (v16(v699)) { - v700 = true; - v706 = v8.createStream(34962, v699); - v709 = v706.dtype; + v609 = g183.location; + v610 = v10[v609]; + if (!v610.buffer) { + v1.enableVertexAttribArray(v609); + } + if (v610.type !== 5126 || v610.size !== 1 || v610.buffer !== g182 || v610.normalized !== false || v610.offset !== 0 || v610.stride !== 8) { + v1.bindBuffer(34962, g182.buffer); + v1.vertexAttribPointer(v609, 1, 5126, false, 8, 0); + v610.type = 5126; + v610.size = 1; + v610.buffer = g182; + v610.normalized = false; + v610.offset = 0; + v610.stride = 8; + } + if (v610.divisor !== 0) { + v593.vertexAttribDivisorANGLE(v609, 0); + v610.divisor = 0; + } + v611 = g186.location; + v612 = v10[v611]; + if (!v612.buffer) { + v1.enableVertexAttribArray(v611); + } + if (v612.type !== 5126 || v612.size !== 1 || v612.buffer !== g182 || v612.normalized !== false || v612.offset !== 4 || v612.stride !== 8) { + v1.bindBuffer(34962, g182.buffer); + v1.vertexAttribPointer(v611, 1, 5126, false, 8, 4); + v612.type = 5126; + v612.size = 1; + v612.buffer = g182; + v612.normalized = false; + v612.offset = 4; + v612.stride = 8; + } + if (v612.divisor !== 0) { + v593.vertexAttribDivisorANGLE(v611, 0); + v612.divisor = 0; + } + v748 = v6.elements; + if (v748) { + v1.bindBuffer(34963, v748.buffer.buffer); + } else if (v11.currentVAO) { + v748 = v7.getElements(v11.currentVAO.elements); + if (v748) v1.bindBuffer(34963, v748.buffer.buffer); + } + for (v594 = 0; v594 < a1; ++v594) { + v595 = a0[v594]; + var v596, v597, v598, v599, v600, v601, v602, v603, v604, v605, v606, v607, v608, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v625, v626, v627, v628, v629, v630, v631, v632, v633, v634, v635, v636, v637, v638, v639, v640, v641, v642, v643, v644, v645, v646, v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677, v678, v679, v680, v681, v682, v683, v684, v685, v686, v687, v688, v689, v690, v691, v692, v693, v694, v695, v696, v697, v698, v699, v700, v701, v702, v703, v704, v705, v706, v707, v708, v709, v710, v711, v712, v713, v714, v715, v716, v717, v718, v719, v720, v721, v722, v723, v724, v725, v726, v727, v728, v729, v730, v731, v732, v733, v734, v735, v736, v737, v738, v739, v740, v741, v742, v743, v744, v745, v746, v747, v749; + v596 = v595["viewport"]; + v597 = v596.x | 0; + v598 = v596.y | 0; + v599 = "width" in v596 ? v596.width | 0 : v2.framebufferWidth - v597; + v600 = "height" in v596 ? v596.height | 0 : v2.framebufferHeight - v598; + v601 = v2.viewportWidth; + v2.viewportWidth = v599; + v602 = v2.viewportHeight; + v2.viewportHeight = v600; + v1.viewport(v597, v598, v599, v600); + v40[0] = v597; + v40[1] = v598; + v40[2] = v599; + v40[3] = v600; + v603 = g97.call(this, v2, v595, v594); + if (v603) { + v1.enable(2929); } else { - v706 = v8.getBuffer(v699); - if (v706) { - v709 = v706.dtype; - } else if ("constant" in v699) { - v701 = 2; - if (typeof v699.constant === "number") { - v702 = v699.constant; - v703 = v704 = v705 = 0; + v1.disable(2929); + } + v5.depth_enable = v603; + v604 = v595["viewport"]; + v605 = v604.x | 0; + v606 = v604.y | 0; + v607 = "width" in v604 ? v604.width | 0 : v2.framebufferWidth - v605; + v608 = "height" in v604 ? v604.height | 0 : v2.framebufferHeight - v606; + v1.scissor(v605, v606, v607, v608); + v38[0] = v605; + v38[1] = v606; + v38[2] = v607; + v38[3] = v608; + v613 = v595["colorBuffer"]; + v49.buffer = v613; + v614 = false; + v615 = 1; + v616 = 0; + v617 = 0; + v618 = 0; + v619 = 0; + v620 = null; + v621 = 0; + v622 = false; + v623 = 5126; + v624 = 0; + v625 = 0; + v626 = 0; + if (v16(v49)) { + v614 = true; + v620 = v8.createStream(34962, v49); + v623 = v620.dtype; + } else { + v620 = v8.getBuffer(v49); + if (v620) { + v623 = v620.dtype; + } else if ("constant" in v49) { + v615 = 2; + if (typeof v49.constant === "number") { + v616 = v49.constant; + v617 = v618 = v619 = 0; } else { - v702 = v699.constant.length > 0 ? v699.constant[0] : 0; - v703 = v699.constant.length > 1 ? v699.constant[1] : 0; - v704 = v699.constant.length > 2 ? v699.constant[2] : 0; - v705 = v699.constant.length > 3 ? v699.constant[3] : 0; + v616 = v49.constant.length > 0 ? v49.constant[0] : 0; + v617 = v49.constant.length > 1 ? v49.constant[1] : 0; + v618 = v49.constant.length > 2 ? v49.constant[2] : 0; + v619 = v49.constant.length > 3 ? v49.constant[3] : 0; } } else { - if (v16(v699.buffer)) { - v706 = v8.createStream(34962, v699.buffer); + if (v16(v49.buffer)) { + v620 = v8.createStream(34962, v49.buffer); } else { - v706 = v8.getBuffer(v699.buffer); + v620 = v8.getBuffer(v49.buffer); } - v709 = "type" in v699 ? v46[v699.type] : v706.dtype; - v708 = !!v699.normalized; - v707 = v699.size | 0; - v710 = v699.offset | 0; - v711 = v699.stride | 0; - v712 = v699.divisor | 0; + v623 = "type" in v49 ? v46[v49.type] : v620.dtype; + v622 = !!v49.normalized; + v621 = v49.size | 0; + v624 = v49.offset | 0; + v625 = v49.stride | 0; + v626 = v49.divisor | 0; } } - v713 = g120.location; - v714 = v10[v713]; - if (v701 === 1) { - if (!v714.buffer) { - v1.enableVertexAttribArray(v713); + v627 = g124.location; + v628 = v10[v627]; + if (v615 === 1) { + if (!v628.buffer) { + v1.enableVertexAttribArray(v627); } - v715 = v707 || 4; - if (v714.type !== v709 || v714.size !== v715 || v714.buffer !== v706 || v714.normalized !== v708 || v714.offset !== v710 || v714.stride !== v711) { - v1.bindBuffer(34962, v706.buffer); - v1.vertexAttribPointer(v713, v715, v709, v708, v711, v710); - v714.type = v709; - v714.size = v715; - v714.buffer = v706; - v714.normalized = v708; - v714.offset = v710; - v714.stride = v711; + v629 = v621 || 4; + if (v628.type !== v623 || v628.size !== v629 || v628.buffer !== v620 || v628.normalized !== v622 || v628.offset !== v624 || v628.stride !== v625) { + v1.bindBuffer(34962, v620.buffer); + v1.vertexAttribPointer(v627, v629, v623, v622, v625, v624); + v628.type = v623; + v628.size = v629; + v628.buffer = v620; + v628.normalized = v622; + v628.offset = v624; + v628.stride = v625; } - if (v714.divisor !== v712) { - v684.vertexAttribDivisorANGLE(v713, v712); - v714.divisor = v712; + if (v628.divisor !== v626) { + v593.vertexAttribDivisorANGLE(v627, v626); + v628.divisor = v626; } } else { - if (v714.buffer) { - v1.disableVertexAttribArray(v713); - v714.buffer = null; + if (v628.buffer) { + v1.disableVertexAttribArray(v627); + v628.buffer = null; } - if (v714.x !== v702 || v714.y !== v703 || v714.z !== v704 || v714.w !== v705) { - v1.vertexAttrib4f(v713, v702, v703, v704, v705); - v714.x = v702; - v714.y = v703; - v714.z = v704; - v714.w = v705; + if (v628.x !== v616 || v628.y !== v617 || v628.z !== v618 || v628.w !== v619) { + v1.vertexAttrib4f(v627, v616, v617, v618, v619); + v628.x = v616; + v628.y = v617; + v628.z = v618; + v628.w = v619; } } - v716 = g124.call(this, v2, v686, v685); - v717 = false; - v718 = 1; - v719 = 0; - v720 = 0; - v721 = 0; - v722 = 0; - v723 = null; - v724 = 0; - v725 = false; - v726 = 5126; - v727 = 0; - v728 = 0; - v729 = 0; - if (v16(v716)) { - v717 = true; - v723 = v8.createStream(34962, v716); - v726 = v723.dtype; - } else { - v723 = v8.getBuffer(v716); - if (v723) { - v726 = v723.dtype; - } else if ("constant" in v716) { - v718 = 2; - if (typeof v716.constant === "number") { - v719 = v716.constant; - v720 = v721 = v722 = 0; + v630 = v595["positionBuffer"]; + v52.buffer = v630; + v631 = false; + v632 = 1; + v633 = 0; + v634 = 0; + v635 = 0; + v636 = 0; + v637 = null; + v638 = 0; + v639 = false; + v640 = 5126; + v641 = 0; + v642 = 0; + v643 = 0; + if (v16(v52)) { + v631 = true; + v637 = v8.createStream(34962, v52); + v640 = v637.dtype; + } else { + v637 = v8.getBuffer(v52); + if (v637) { + v640 = v637.dtype; + } else if ("constant" in v52) { + v632 = 2; + if (typeof v52.constant === "number") { + v633 = v52.constant; + v634 = v635 = v636 = 0; } else { - v719 = v716.constant.length > 0 ? v716.constant[0] : 0; - v720 = v716.constant.length > 1 ? v716.constant[1] : 0; - v721 = v716.constant.length > 2 ? v716.constant[2] : 0; - v722 = v716.constant.length > 3 ? v716.constant[3] : 0; + v633 = v52.constant.length > 0 ? v52.constant[0] : 0; + v634 = v52.constant.length > 1 ? v52.constant[1] : 0; + v635 = v52.constant.length > 2 ? v52.constant[2] : 0; + v636 = v52.constant.length > 3 ? v52.constant[3] : 0; } } else { - if (v16(v716.buffer)) { - v723 = v8.createStream(34962, v716.buffer); + if (v16(v52.buffer)) { + v637 = v8.createStream(34962, v52.buffer); } else { - v723 = v8.getBuffer(v716.buffer); + v637 = v8.getBuffer(v52.buffer); } - v726 = "type" in v716 ? v46[v716.type] : v723.dtype; - v725 = !!v716.normalized; - v724 = v716.size | 0; - v727 = v716.offset | 0; - v728 = v716.stride | 0; - v729 = v716.divisor | 0; + v640 = "type" in v52 ? v46[v52.type] : v637.dtype; + v639 = !!v52.normalized; + v638 = v52.size | 0; + v641 = v52.offset | 0; + v642 = v52.stride | 0; + v643 = v52.divisor | 0; } } - v730 = g139.location; - v731 = v10[v730]; - if (v718 === 1) { - if (!v731.buffer) { - v1.enableVertexAttribArray(v730); + v644 = g142.location; + v645 = v10[v644]; + if (v632 === 1) { + if (!v645.buffer) { + v1.enableVertexAttribArray(v644); } - v732 = v724 || 1; - if (v731.type !== v726 || v731.size !== v732 || v731.buffer !== v723 || v731.normalized !== v725 || v731.offset !== v727 || v731.stride !== v728) { - v1.bindBuffer(34962, v723.buffer); - v1.vertexAttribPointer(v730, v732, v726, v725, v728, v727); - v731.type = v726; - v731.size = v732; - v731.buffer = v723; - v731.normalized = v725; - v731.offset = v727; - v731.stride = v728; + v646 = v638 || 2; + if (v645.type !== v640 || v645.size !== v646 || v645.buffer !== v637 || v645.normalized !== v639 || v645.offset !== v641 || v645.stride !== v642) { + v1.bindBuffer(34962, v637.buffer); + v1.vertexAttribPointer(v644, v646, v640, v639, v642, v641); + v645.type = v640; + v645.size = v646; + v645.buffer = v637; + v645.normalized = v639; + v645.offset = v641; + v645.stride = v642; } - if (v731.divisor !== v729) { - v684.vertexAttribDivisorANGLE(v730, v729); - v731.divisor = v729; + if (v645.divisor !== v643) { + v593.vertexAttribDivisorANGLE(v644, v643); + v645.divisor = v643; } } else { - if (v731.buffer) { - v1.disableVertexAttribArray(v730); - v731.buffer = null; + if (v645.buffer) { + v1.disableVertexAttribArray(v644); + v645.buffer = null; } - if (v731.x !== v719 || v731.y !== v720 || v731.z !== v721 || v731.w !== v722) { - v1.vertexAttrib4f(v730, v719, v720, v721, v722); - v731.x = v719; - v731.y = v720; - v731.z = v721; - v731.w = v722; + if (v645.x !== v633 || v645.y !== v634 || v645.z !== v635 || v645.w !== v636) { + v1.vertexAttrib4f(v644, v633, v634, v635, v636); + v645.x = v633; + v645.y = v634; + v645.z = v635; + v645.w = v636; } } - v733 = g143.call(this, v2, v686, v685); - v734 = false; - v735 = 1; - v736 = 0; - v737 = 0; - v738 = 0; - v739 = 0; - v740 = null; - v741 = 0; - v742 = false; - v743 = 5126; - v744 = 0; - v745 = 0; - v746 = 0; - if (v16(v733)) { - v734 = true; - v740 = v8.createStream(34962, v733); - v743 = v740.dtype; + v647 = v595["colorBuffer"]; + v50.buffer = v647; + v648 = false; + v649 = 1; + v650 = 0; + v651 = 0; + v652 = 0; + v653 = 0; + v654 = null; + v655 = 0; + v656 = false; + v657 = 5126; + v658 = 0; + v659 = 0; + v660 = 0; + if (v16(v50)) { + v648 = true; + v654 = v8.createStream(34962, v50); + v657 = v654.dtype; } else { - v740 = v8.getBuffer(v733); - if (v740) { - v743 = v740.dtype; - } else if ("constant" in v733) { - v735 = 2; - if (typeof v733.constant === "number") { - v736 = v733.constant; - v737 = v738 = v739 = 0; + v654 = v8.getBuffer(v50); + if (v654) { + v657 = v654.dtype; + } else if ("constant" in v50) { + v649 = 2; + if (typeof v50.constant === "number") { + v650 = v50.constant; + v651 = v652 = v653 = 0; } else { - v736 = v733.constant.length > 0 ? v733.constant[0] : 0; - v737 = v733.constant.length > 1 ? v733.constant[1] : 0; - v738 = v733.constant.length > 2 ? v733.constant[2] : 0; - v739 = v733.constant.length > 3 ? v733.constant[3] : 0; + v650 = v50.constant.length > 0 ? v50.constant[0] : 0; + v651 = v50.constant.length > 1 ? v50.constant[1] : 0; + v652 = v50.constant.length > 2 ? v50.constant[2] : 0; + v653 = v50.constant.length > 3 ? v50.constant[3] : 0; } } else { - if (v16(v733.buffer)) { - v740 = v8.createStream(34962, v733.buffer); + if (v16(v50.buffer)) { + v654 = v8.createStream(34962, v50.buffer); } else { - v740 = v8.getBuffer(v733.buffer); + v654 = v8.getBuffer(v50.buffer); } - v743 = "type" in v733 ? v46[v733.type] : v740.dtype; - v742 = !!v733.normalized; - v741 = v733.size | 0; - v744 = v733.offset | 0; - v745 = v733.stride | 0; - v746 = v733.divisor | 0; + v657 = "type" in v50 ? v46[v50.type] : v654.dtype; + v656 = !!v50.normalized; + v655 = v50.size | 0; + v658 = v50.offset | 0; + v659 = v50.stride | 0; + v660 = v50.divisor | 0; } } - v747 = g158.location; - v748 = v10[v747]; - if (v735 === 1) { - if (!v748.buffer) { - v1.enableVertexAttribArray(v747); + v661 = g160.location; + v662 = v10[v661]; + if (v649 === 1) { + if (!v662.buffer) { + v1.enableVertexAttribArray(v661); } - v749 = v741 || 4; - if (v748.type !== v743 || v748.size !== v749 || v748.buffer !== v740 || v748.normalized !== v742 || v748.offset !== v744 || v748.stride !== v745) { - v1.bindBuffer(34962, v740.buffer); - v1.vertexAttribPointer(v747, v749, v743, v742, v745, v744); - v748.type = v743; - v748.size = v749; - v748.buffer = v740; - v748.normalized = v742; - v748.offset = v744; - v748.stride = v745; + v663 = v655 || 4; + if (v662.type !== v657 || v662.size !== v663 || v662.buffer !== v654 || v662.normalized !== v656 || v662.offset !== v658 || v662.stride !== v659) { + v1.bindBuffer(34962, v654.buffer); + v1.vertexAttribPointer(v661, v663, v657, v656, v659, v658); + v662.type = v657; + v662.size = v663; + v662.buffer = v654; + v662.normalized = v656; + v662.offset = v658; + v662.stride = v659; } - if (v748.divisor !== v746) { - v684.vertexAttribDivisorANGLE(v747, v746); - v748.divisor = v746; + if (v662.divisor !== v660) { + v593.vertexAttribDivisorANGLE(v661, v660); + v662.divisor = v660; } } else { - if (v748.buffer) { - v1.disableVertexAttribArray(v747); - v748.buffer = null; + if (v662.buffer) { + v1.disableVertexAttribArray(v661); + v662.buffer = null; } - if (v748.x !== v736 || v748.y !== v737 || v748.z !== v738 || v748.w !== v739) { - v1.vertexAttrib4f(v747, v736, v737, v738, v739); - v748.x = v736; - v748.y = v737; - v748.z = v738; - v748.w = v739; + if (v662.x !== v650 || v662.y !== v651 || v662.z !== v652 || v662.w !== v653) { + v1.vertexAttrib4f(v661, v650, v651, v652, v653); + v662.x = v650; + v662.y = v651; + v662.z = v652; + v662.w = v653; } } - v750 = g162.call(this, v2, v686, v685); - v751 = false; - v752 = 1; - v753 = 0; - v754 = 0; - v755 = 0; - v756 = 0; - v757 = null; - v758 = 0; - v759 = false; - v760 = 5126; - v761 = 0; - v762 = 0; - v763 = 0; - if (v16(v750)) { - v751 = true; - v757 = v8.createStream(34962, v750); - v760 = v757.dtype; + v664 = v595["positionBuffer"]; + v53.buffer = v664; + v665 = false; + v666 = 1; + v667 = 0; + v668 = 0; + v669 = 0; + v670 = 0; + v671 = null; + v672 = 0; + v673 = false; + v674 = 5126; + v675 = 0; + v676 = 0; + v677 = 0; + if (v16(v53)) { + v665 = true; + v671 = v8.createStream(34962, v53); + v674 = v671.dtype; } else { - v757 = v8.getBuffer(v750); - if (v757) { - v760 = v757.dtype; - } else if ("constant" in v750) { - v752 = 2; - if (typeof v750.constant === "number") { - v753 = v750.constant; - v754 = v755 = v756 = 0; + v671 = v8.getBuffer(v53); + if (v671) { + v674 = v671.dtype; + } else if ("constant" in v53) { + v666 = 2; + if (typeof v53.constant === "number") { + v667 = v53.constant; + v668 = v669 = v670 = 0; } else { - v753 = v750.constant.length > 0 ? v750.constant[0] : 0; - v754 = v750.constant.length > 1 ? v750.constant[1] : 0; - v755 = v750.constant.length > 2 ? v750.constant[2] : 0; - v756 = v750.constant.length > 3 ? v750.constant[3] : 0; + v667 = v53.constant.length > 0 ? v53.constant[0] : 0; + v668 = v53.constant.length > 1 ? v53.constant[1] : 0; + v669 = v53.constant.length > 2 ? v53.constant[2] : 0; + v670 = v53.constant.length > 3 ? v53.constant[3] : 0; } } else { - if (v16(v750.buffer)) { - v757 = v8.createStream(34962, v750.buffer); + if (v16(v53.buffer)) { + v671 = v8.createStream(34962, v53.buffer); } else { - v757 = v8.getBuffer(v750.buffer); + v671 = v8.getBuffer(v53.buffer); } - v760 = "type" in v750 ? v46[v750.type] : v757.dtype; - v759 = !!v750.normalized; - v758 = v750.size | 0; - v761 = v750.offset | 0; - v762 = v750.stride | 0; - v763 = v750.divisor | 0; + v674 = "type" in v53 ? v46[v53.type] : v671.dtype; + v673 = !!v53.normalized; + v672 = v53.size | 0; + v675 = v53.offset | 0; + v676 = v53.stride | 0; + v677 = v53.divisor | 0; } } - v764 = g177.location; - v765 = v10[v764]; - if (v752 === 1) { - if (!v765.buffer) { - v1.enableVertexAttribArray(v764); + v678 = g178.location; + v679 = v10[v678]; + if (v666 === 1) { + if (!v679.buffer) { + v1.enableVertexAttribArray(v678); } - v766 = v758 || 1; - if (v765.type !== v760 || v765.size !== v766 || v765.buffer !== v757 || v765.normalized !== v759 || v765.offset !== v761 || v765.stride !== v762) { - v1.bindBuffer(34962, v757.buffer); - v1.vertexAttribPointer(v764, v766, v760, v759, v762, v761); - v765.type = v760; - v765.size = v766; - v765.buffer = v757; - v765.normalized = v759; - v765.offset = v761; - v765.stride = v762; + v680 = v672 || 2; + if (v679.type !== v674 || v679.size !== v680 || v679.buffer !== v671 || v679.normalized !== v673 || v679.offset !== v675 || v679.stride !== v676) { + v1.bindBuffer(34962, v671.buffer); + v1.vertexAttribPointer(v678, v680, v674, v673, v676, v675); + v679.type = v674; + v679.size = v680; + v679.buffer = v671; + v679.normalized = v673; + v679.offset = v675; + v679.stride = v676; } - if (v765.divisor !== v763) { - v684.vertexAttribDivisorANGLE(v764, v763); - v765.divisor = v763; + if (v679.divisor !== v677) { + v593.vertexAttribDivisorANGLE(v678, v677); + v679.divisor = v677; } } else { - if (v765.buffer) { - v1.disableVertexAttribArray(v764); - v765.buffer = null; + if (v679.buffer) { + v1.disableVertexAttribArray(v678); + v679.buffer = null; } - if (v765.x !== v753 || v765.y !== v754 || v765.z !== v755 || v765.w !== v756) { - v1.vertexAttrib4f(v764, v753, v754, v755, v756); - v765.x = v753; - v765.y = v754; - v765.z = v755; - v765.w = v756; + if (v679.x !== v667 || v679.y !== v668 || v679.z !== v669 || v679.w !== v670) { + v1.vertexAttrib4f(v678, v667, v668, v669, v670); + v679.x = v667; + v679.y = v668; + v679.z = v669; + v679.w = v670; } } - v767 = g181.call(this, v2, v686, v685); - v768 = false; - v769 = 1; - v770 = 0; - v771 = 0; - v772 = 0; - v773 = 0; - v774 = null; - v775 = 0; - v776 = false; - v777 = 5126; - v778 = 0; - v779 = 0; - v780 = 0; - if (v16(v767)) { - v768 = true; - v774 = v8.createStream(34962, v767); - v777 = v774.dtype; + v681 = v595["positionBuffer"]; + v54.buffer = v681; + v682 = false; + v683 = 1; + v684 = 0; + v685 = 0; + v686 = 0; + v687 = 0; + v688 = null; + v689 = 0; + v690 = false; + v691 = 5126; + v692 = 0; + v693 = 0; + v694 = 0; + if (v16(v54)) { + v682 = true; + v688 = v8.createStream(34962, v54); + v691 = v688.dtype; } else { - v774 = v8.getBuffer(v767); - if (v774) { - v777 = v774.dtype; - } else if ("constant" in v767) { - v769 = 2; - if (typeof v767.constant === "number") { - v770 = v767.constant; - v771 = v772 = v773 = 0; + v688 = v8.getBuffer(v54); + if (v688) { + v691 = v688.dtype; + } else if ("constant" in v54) { + v683 = 2; + if (typeof v54.constant === "number") { + v684 = v54.constant; + v685 = v686 = v687 = 0; } else { - v770 = v767.constant.length > 0 ? v767.constant[0] : 0; - v771 = v767.constant.length > 1 ? v767.constant[1] : 0; - v772 = v767.constant.length > 2 ? v767.constant[2] : 0; - v773 = v767.constant.length > 3 ? v767.constant[3] : 0; + v684 = v54.constant.length > 0 ? v54.constant[0] : 0; + v685 = v54.constant.length > 1 ? v54.constant[1] : 0; + v686 = v54.constant.length > 2 ? v54.constant[2] : 0; + v687 = v54.constant.length > 3 ? v54.constant[3] : 0; } } else { - if (v16(v767.buffer)) { - v774 = v8.createStream(34962, v767.buffer); + if (v16(v54.buffer)) { + v688 = v8.createStream(34962, v54.buffer); } else { - v774 = v8.getBuffer(v767.buffer); + v688 = v8.getBuffer(v54.buffer); } - v777 = "type" in v767 ? v46[v767.type] : v774.dtype; - v776 = !!v767.normalized; - v775 = v767.size | 0; - v778 = v767.offset | 0; - v779 = v767.stride | 0; - v780 = v767.divisor | 0; + v691 = "type" in v54 ? v46[v54.type] : v688.dtype; + v690 = !!v54.normalized; + v689 = v54.size | 0; + v692 = v54.offset | 0; + v693 = v54.stride | 0; + v694 = v54.divisor | 0; } } - v781 = g196.location; - v782 = v10[v781]; - if (v769 === 1) { - if (!v782.buffer) { - v1.enableVertexAttribArray(v781); + v695 = g203.location; + v696 = v10[v695]; + if (v683 === 1) { + if (!v696.buffer) { + v1.enableVertexAttribArray(v695); } - v783 = v775 || 1; - if (v782.type !== v777 || v782.size !== v783 || v782.buffer !== v774 || v782.normalized !== v776 || v782.offset !== v778 || v782.stride !== v779) { - v1.bindBuffer(34962, v774.buffer); - v1.vertexAttribPointer(v781, v783, v777, v776, v779, v778); - v782.type = v777; - v782.size = v783; - v782.buffer = v774; - v782.normalized = v776; - v782.offset = v778; - v782.stride = v779; + v697 = v689 || 2; + if (v696.type !== v691 || v696.size !== v697 || v696.buffer !== v688 || v696.normalized !== v690 || v696.offset !== v692 || v696.stride !== v693) { + v1.bindBuffer(34962, v688.buffer); + v1.vertexAttribPointer(v695, v697, v691, v690, v693, v692); + v696.type = v691; + v696.size = v697; + v696.buffer = v688; + v696.normalized = v690; + v696.offset = v692; + v696.stride = v693; } - if (v782.divisor !== v780) { - v684.vertexAttribDivisorANGLE(v781, v780); - v782.divisor = v780; + if (v696.divisor !== v694) { + v593.vertexAttribDivisorANGLE(v695, v694); + v696.divisor = v694; } } else { - if (v782.buffer) { - v1.disableVertexAttribArray(v781); - v782.buffer = null; + if (v696.buffer) { + v1.disableVertexAttribArray(v695); + v696.buffer = null; } - if (v782.x !== v770 || v782.y !== v771 || v782.z !== v772 || v782.w !== v773) { - v1.vertexAttrib4f(v781, v770, v771, v772, v773); - v782.x = v770; - v782.y = v771; - v782.z = v772; - v782.w = v773; + if (v696.x !== v684 || v696.y !== v685 || v696.z !== v686 || v696.w !== v687) { + v1.vertexAttrib4f(v695, v684, v685, v686, v687); + v696.x = v684; + v696.y = v685; + v696.z = v686; + v696.w = v687; } } - v784 = g200.call(this, v2, v686, v685); - v785 = false; - v786 = 1; - v787 = 0; - v788 = 0; - v789 = 0; - v790 = 0; - v791 = null; - v792 = 0; - v793 = false; - v794 = 5126; - v795 = 0; - v796 = 0; - v797 = 0; - if (v16(v784)) { - v785 = true; - v791 = v8.createStream(34962, v784); - v794 = v791.dtype; + v698 = v595["positionBuffer"]; + v51.buffer = v698; + v699 = false; + v700 = 1; + v701 = 0; + v702 = 0; + v703 = 0; + v704 = 0; + v705 = null; + v706 = 0; + v707 = false; + v708 = 5126; + v709 = 0; + v710 = 0; + v711 = 0; + if (v16(v51)) { + v699 = true; + v705 = v8.createStream(34962, v51); + v708 = v705.dtype; } else { - v791 = v8.getBuffer(v784); - if (v791) { - v794 = v791.dtype; - } else if ("constant" in v784) { - v786 = 2; - if (typeof v784.constant === "number") { - v787 = v784.constant; - v788 = v789 = v790 = 0; + v705 = v8.getBuffer(v51); + if (v705) { + v708 = v705.dtype; + } else if ("constant" in v51) { + v700 = 2; + if (typeof v51.constant === "number") { + v701 = v51.constant; + v702 = v703 = v704 = 0; } else { - v787 = v784.constant.length > 0 ? v784.constant[0] : 0; - v788 = v784.constant.length > 1 ? v784.constant[1] : 0; - v789 = v784.constant.length > 2 ? v784.constant[2] : 0; - v790 = v784.constant.length > 3 ? v784.constant[3] : 0; + v701 = v51.constant.length > 0 ? v51.constant[0] : 0; + v702 = v51.constant.length > 1 ? v51.constant[1] : 0; + v703 = v51.constant.length > 2 ? v51.constant[2] : 0; + v704 = v51.constant.length > 3 ? v51.constant[3] : 0; } } else { - if (v16(v784.buffer)) { - v791 = v8.createStream(34962, v784.buffer); + if (v16(v51.buffer)) { + v705 = v8.createStream(34962, v51.buffer); } else { - v791 = v8.getBuffer(v784.buffer); + v705 = v8.getBuffer(v51.buffer); } - v794 = "type" in v784 ? v46[v784.type] : v791.dtype; - v793 = !!v784.normalized; - v792 = v784.size | 0; - v795 = v784.offset | 0; - v796 = v784.stride | 0; - v797 = v784.divisor | 0; + v708 = "type" in v51 ? v46[v51.type] : v705.dtype; + v707 = !!v51.normalized; + v706 = v51.size | 0; + v709 = v51.offset | 0; + v710 = v51.stride | 0; + v711 = v51.divisor | 0; } } - v798 = g215.location; - v799 = v10[v798]; - if (v786 === 1) { - if (!v799.buffer) { - v1.enableVertexAttribArray(v798); + v712 = g221.location; + v713 = v10[v712]; + if (v700 === 1) { + if (!v713.buffer) { + v1.enableVertexAttribArray(v712); } - v800 = v792 || 1; - if (v799.type !== v794 || v799.size !== v800 || v799.buffer !== v791 || v799.normalized !== v793 || v799.offset !== v795 || v799.stride !== v796) { - v1.bindBuffer(34962, v791.buffer); - v1.vertexAttribPointer(v798, v800, v794, v793, v796, v795); - v799.type = v794; - v799.size = v800; - v799.buffer = v791; - v799.normalized = v793; - v799.offset = v795; - v799.stride = v796; + v714 = v706 || 2; + if (v713.type !== v708 || v713.size !== v714 || v713.buffer !== v705 || v713.normalized !== v707 || v713.offset !== v709 || v713.stride !== v710) { + v1.bindBuffer(34962, v705.buffer); + v1.vertexAttribPointer(v712, v714, v708, v707, v710, v709); + v713.type = v708; + v713.size = v714; + v713.buffer = v705; + v713.normalized = v707; + v713.offset = v709; + v713.stride = v710; } - if (v799.divisor !== v797) { - v684.vertexAttribDivisorANGLE(v798, v797); - v799.divisor = v797; + if (v713.divisor !== v711) { + v593.vertexAttribDivisorANGLE(v712, v711); + v713.divisor = v711; } } else { - if (v799.buffer) { - v1.disableVertexAttribArray(v798); - v799.buffer = null; + if (v713.buffer) { + v1.disableVertexAttribArray(v712); + v713.buffer = null; } - if (v799.x !== v787 || v799.y !== v788 || v799.z !== v789 || v799.w !== v790) { - v1.vertexAttrib4f(v798, v787, v788, v789, v790); - v799.x = v787; - v799.y = v788; - v799.z = v789; - v799.w = v790; + if (v713.x !== v701 || v713.y !== v702 || v713.z !== v703 || v713.w !== v704) { + v1.vertexAttrib4f(v712, v701, v702, v703, v704); + v713.x = v701; + v713.y = v702; + v713.z = v703; + v713.w = v704; } } - v801 = g219.call(this, v2, v686, v685); - v802 = false; - v803 = 1; - v804 = 0; - v805 = 0; - v806 = 0; - v807 = 0; - v808 = null; - v809 = 0; - v810 = false; - v811 = 5126; - v812 = 0; - v813 = 0; - v814 = 0; - if (v16(v801)) { - v802 = true; - v808 = v8.createStream(34962, v801); - v811 = v808.dtype; - } else { - v808 = v8.getBuffer(v801); - if (v808) { - v811 = v808.dtype; - } else if ("constant" in v801) { - v803 = 2; - if (typeof v801.constant === "number") { - v804 = v801.constant; - v805 = v806 = v807 = 0; - } else { - v804 = v801.constant.length > 0 ? v801.constant[0] : 0; - v805 = v801.constant.length > 1 ? v801.constant[1] : 0; - v806 = v801.constant.length > 2 ? v801.constant[2] : 0; - v807 = v801.constant.length > 3 ? v801.constant[3] : 0; - } - } else { - if (v16(v801.buffer)) { - v808 = v8.createStream(34962, v801.buffer); - } else { - v808 = v8.getBuffer(v801.buffer); - } - v811 = "type" in v801 ? v46[v801.type] : v808.dtype; - v810 = !!v801.normalized; - v809 = v801.size | 0; - v812 = v801.offset | 0; - v813 = v801.stride | 0; - v814 = v801.divisor | 0; - } + v715 = v595["dashLength"]; + if (!v594 || v716 !== v715) { + v716 = v715; + v1.uniform1f(g225.location, v715); } - v815 = g234.location; - v816 = v10[v815]; - if (v803 === 1) { - if (!v816.buffer) { - v1.enableVertexAttribArray(v815); - } - v817 = v809 || 1; - if (v816.type !== v811 || v816.size !== v817 || v816.buffer !== v808 || v816.normalized !== v810 || v816.offset !== v812 || v816.stride !== v813) { - v1.bindBuffer(34962, v808.buffer); - v1.vertexAttribPointer(v815, v817, v811, v810, v813, v812); - v816.type = v811; - v816.size = v817; - v816.buffer = v808; - v816.normalized = v810; - v816.offset = v812; - v816.stride = v813; - } - if (v816.divisor !== v814) { - v684.vertexAttribDivisorANGLE(v815, v814); - v816.divisor = v814; - } - } else { - if (v816.buffer) { - v1.disableVertexAttribArray(v815); - v816.buffer = null; - } - if (v816.x !== v804 || v816.y !== v805 || v816.z !== v806 || v816.w !== v807) { - v1.vertexAttrib4f(v815, v804, v805, v806, v807); - v816.x = v804; - v816.y = v805; - v816.z = v806; - v816.w = v807; - } + v717 = v595["dashTexture"]; + if (v717 && v717._reglType === "framebuffer") { + v717 = v717.color[0]; } - v818 = g238.call(this, v2, v686, v685); - v819 = false; - v820 = 1; - v821 = 0; - v822 = 0; - v823 = 0; - v824 = 0; - v825 = null; - v826 = 0; - v827 = false; - v828 = 5126; - v829 = 0; - v830 = 0; - v831 = 0; - if (v16(v818)) { - v819 = true; - v825 = v8.createStream(34962, v818); - v828 = v825.dtype; - } else { - v825 = v8.getBuffer(v818); - if (v825) { - v828 = v825.dtype; - } else if ("constant" in v818) { - v820 = 2; - if (typeof v818.constant === "number") { - v821 = v818.constant; - v822 = v823 = v824 = 0; - } else { - v821 = v818.constant.length > 0 ? v818.constant[0] : 0; - v822 = v818.constant.length > 1 ? v818.constant[1] : 0; - v823 = v818.constant.length > 2 ? v818.constant[2] : 0; - v824 = v818.constant.length > 3 ? v818.constant[3] : 0; - } - } else { - if (v16(v818.buffer)) { - v825 = v8.createStream(34962, v818.buffer); - } else { - v825 = v8.getBuffer(v818.buffer); - } - v828 = "type" in v818 ? v46[v818.type] : v825.dtype; - v827 = !!v818.normalized; - v826 = v818.size | 0; - v829 = v818.offset | 0; - v830 = v818.stride | 0; - v831 = v818.divisor | 0; - } + v718 = v717._texture; + v1.uniform1i(g227.location, v718.bind()); + v719 = v595["depth"]; + if (!v594 || v720 !== v719) { + v720 = v719; + v1.uniform1f(g230.location, v719); } - v832 = g253.location; - v833 = v10[v832]; - if (v820 === 1) { - if (!v833.buffer) { - v1.enableVertexAttribArray(v832); - } - v834 = v826 || 1; - if (v833.type !== v828 || v833.size !== v834 || v833.buffer !== v825 || v833.normalized !== v827 || v833.offset !== v829 || v833.stride !== v830) { - v1.bindBuffer(34962, v825.buffer); - v1.vertexAttribPointer(v832, v834, v828, v827, v830, v829); - v833.type = v828; - v833.size = v834; - v833.buffer = v825; - v833.normalized = v827; - v833.offset = v829; - v833.stride = v830; - } - if (v833.divisor !== v831) { - v684.vertexAttribDivisorANGLE(v832, v831); - v833.divisor = v831; - } - } else { - if (v833.buffer) { - v1.disableVertexAttribArray(v832); - v833.buffer = null; - } - if (v833.x !== v821 || v833.y !== v822 || v833.z !== v823 || v833.w !== v824) { - v1.vertexAttrib4f(v832, v821, v822, v823, v824); - v833.x = v821; - v833.y = v822; - v833.z = v823; - v833.w = v824; - } + v721 = v595["miterLimit"]; + if (!v594 || v722 !== v721) { + v722 = v721; + v1.uniform1f(g232.location, v721); } - v835 = g257.call(this, v2, v686, v685); - v836 = false; - v837 = 1; - v838 = 0; - v839 = 0; - v840 = 0; - v841 = 0; - v842 = null; - v843 = 0; - v844 = false; - v845 = 5126; - v846 = 0; - v847 = 0; - v848 = 0; - if (v16(v835)) { - v836 = true; - v842 = v8.createStream(34962, v835); - v845 = v842.dtype; - } else { - v842 = v8.getBuffer(v835); - if (v842) { - v845 = v842.dtype; - } else if ("constant" in v835) { - v837 = 2; - if (typeof v835.constant === "number") { - v838 = v835.constant; - v839 = v840 = v841 = 0; - } else { - v838 = v835.constant.length > 0 ? v835.constant[0] : 0; - v839 = v835.constant.length > 1 ? v835.constant[1] : 0; - v840 = v835.constant.length > 2 ? v835.constant[2] : 0; - v841 = v835.constant.length > 3 ? v835.constant[3] : 0; - } - } else { - if (v16(v835.buffer)) { - v842 = v8.createStream(34962, v835.buffer); - } else { - v842 = v8.getBuffer(v835.buffer); - } - v845 = "type" in v835 ? v46[v835.type] : v842.dtype; - v844 = !!v835.normalized; - v843 = v835.size | 0; - v846 = v835.offset | 0; - v847 = v835.stride | 0; - v848 = v835.divisor | 0; - } + v723 = g235.call(this, v2, v595, v594); + if (!v594 || v724 !== v723) { + v724 = v723; + v1.uniform1f(g234.location, v723); } - v849 = g272.location; - v850 = v10[v849]; - if (v837 === 1) { - if (!v850.buffer) { - v1.enableVertexAttribArray(v849); - } - v851 = v843 || 1; - if (v850.type !== v845 || v850.size !== v851 || v850.buffer !== v842 || v850.normalized !== v844 || v850.offset !== v846 || v850.stride !== v847) { - v1.bindBuffer(34962, v842.buffer); - v1.vertexAttribPointer(v849, v851, v845, v844, v847, v846); - v850.type = v845; - v850.size = v851; - v850.buffer = v842; - v850.normalized = v844; - v850.offset = v846; - v850.stride = v847; - } - if (v850.divisor !== v848) { - v684.vertexAttribDivisorANGLE(v849, v848); - v850.divisor = v848; - } - } else { - if (v850.buffer) { - v1.disableVertexAttribArray(v849); - v850.buffer = null; - } - if (v850.x !== v838 || v850.y !== v839 || v850.z !== v840 || v850.w !== v841) { - v1.vertexAttrib4f(v849, v838, v839, v840, v841); - v850.x = v838; - v850.y = v839; - v850.z = v840; - v850.w = v841; - } + v725 = v595["opacity"]; + if (!v594 || v726 !== v725) { + v726 = v725; + v1.uniform1f(g237.location, v725); } - v852 = v686["opacity"]; - if (!v685 || v853 !== v852) { - v853 = v852; - v1.uniform1f(g277.location, v852); + v727 = v595["scale"]; + v728 = v727[0]; + v730 = v727[1]; + if (!v594 || v729 !== v728 || v731 !== v730) { + v729 = v728; + v731 = v730; + v1.uniform2f(g239.location, v728, v730); } - v854 = g280.call(this, v2, v686, v685); - v855 = v854[0]; - v857 = v854[1]; - if (!v685 || v856 !== v855 || v858 !== v857) { - v856 = v855; - v858 = v857; - v1.uniform2f(g279.location, v855, v857); + v732 = v595["thickness"]; + if (!v594 || v733 !== v732) { + v733 = v732; + v1.uniform1f(g243.location, v732); } - v859 = v2["pixelRatio"]; - if (!v685 || v860 !== v859) { - v860 = v859; - v1.uniform1f(g286.location, v859); + v734 = v595["translate"]; + v735 = v734[0]; + v737 = v734[1]; + if (!v594 || v736 !== v735 || v738 !== v737) { + v736 = v735; + v738 = v737; + v1.uniform2f(g245.location, v735, v737); } - v861 = v686["scale"]; - v862 = v861[0]; - v864 = v861[1]; - if (!v685 || v863 !== v862 || v865 !== v864) { - v863 = v862; - v865 = v864; - v1.uniform2f(g288.location, v862, v864); + v739 = g250.call(this, v2, v595, v594); + v740 = v739[0]; + v742 = v739[1]; + v744 = v739[2]; + v746 = v739[3]; + if (!v594 || v741 !== v740 || v743 !== v742 || v745 !== v744 || v747 !== v746) { + v741 = v740; + v743 = v742; + v745 = v744; + v747 = v746; + v1.uniform4f(g249.location, v740, v742, v744, v746); } - v866 = v686["scaleFract"]; - v867 = v866[0]; - v869 = v866[1]; - if (!v685 || v868 !== v867 || v870 !== v869) { - v868 = v867; - v870 = v869; - v1.uniform2f(g292.location, v867, v869); + v749 = v595["count"]; + if (v749 > 0) { + if (v748) { + v593.drawElementsInstancedANGLE(5, 4, v748.type, 0 << (v748.type - 5121 >> 1), v749); + } else { + v593.drawArraysInstancedANGLE(5, 0, 4, v749); + } + } else if (v749 < 0) { + if (v748) { + v1.drawElements(5, 4, v748.type, 0 << (v748.type - 5121 >> 1)); + } else { + v1.drawArrays(5, 0, 4); + } } - v871 = v686["translate"]; - v872 = v871[0]; - v874 = v871[1]; - if (!v685 || v873 !== v872 || v875 !== v874) { - v873 = v872; - v875 = v874; - v1.uniform2f(g296.location, v872, v874); + v2.viewportWidth = v601; + v2.viewportHeight = v602; + if (v614) { + v8.destroyStream(v620); } - v876 = v686["translateFract"]; - v877 = v876[0]; - v879 = v876[1]; - if (!v685 || v878 !== v877 || v880 !== v879) { - v878 = v877; - v880 = v879; - v1.uniform2f(g300.location, v877, v879); + if (v631) { + v8.destroyStream(v637); } - v881 = v686["elements"]; - v882 = null; - v883 = v16(v881); - if (v883) { - v882 = v7.createStream(v881); - } else { - v882 = v7.getElements(v881); + if (v648) { + v8.destroyStream(v654); } - if (v882) v1.bindBuffer(34963, v882.buffer.buffer); - v884 = v686["offset"]; - v885 = v686["count"]; - if (v885) { - if (v886 > 0) { - if (v882) { - v684.drawElementsInstancedANGLE(0, v885, v882.type, v884 << (v882.type - 5121 >> 1), v886); - } else { - v684.drawArraysInstancedANGLE(0, v884, v885, v886); - } - } else if (v886 < 0) { - if (v882) { - v1.drawElements(0, v885, v882.type, v884 << (v882.type - 5121 >> 1)); - } else { - v1.drawArrays(0, v884, v885); - } - } - v2.viewportWidth = v692; - v2.viewportHeight = v693; - if (v700) { - v8.destroyStream(v706); - } - if (v717) { - v8.destroyStream(v723); - } - if (v734) { - v8.destroyStream(v740); - } - if (v751) { - v8.destroyStream(v757); - } - if (v768) { - v8.destroyStream(v774); - } - if (v785) { - v8.destroyStream(v791); - } - if (v802) { - v8.destroyStream(v808); - } - if (v819) { - v8.destroyStream(v825); - } - if (v836) { - v8.destroyStream(v842); - } - if (v883) { - v7.destroyStream(v882); - } + if (v665) { + v8.destroyStream(v671); + } + if (v682) { + v8.destroyStream(v688); } + if (v699) { + v8.destroyStream(v705); + } + v718.unbind(); } - g285.unbind(); v5.dirty = true; v11.setVAO(null); - if (v682) { - g48.cpuTime += performance.now() - v683; + if (v591) { + g48.cpuTime += performance.now() - v592; } } }; @@ -183408,12 +182075,12 @@ void main() { } }); - // src/generated/regl-codegen/6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923 - var require_a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923 = __commonJS({ - "src/generated/regl-codegen/6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923"(exports, module) { - module.exports = function anonymous(g0, g48, g50, g52, g54, g56, g99, g100, g106, g109, g111, g112, g115, g130, g134, g137, g152, g156, g159, g174, g178, g193, g197, g199, g201, g203, g207, g211, g215, g219, g220, g240, g242, g244, g246, g248, g250, g252, g254, g256, g258, g260, g262, g273, g277, g281, g284, g287, g290, g293, g296, g299, g302, g305, g308, g310, g323, g336, g363, g390, g417, g444, g457, g459, g496, g497, g498) { + // src/generated/regl-codegen/dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5 + var require_dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5 = __commonJS({ + "src/generated/regl-codegen/dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5"(exports, module) { + module.exports = function anonymous(g0, g48, g92, g93, g99, g100, g103, g105, g120, g124, g139, g143, g158, g162, g177, g181, g196, g200, g215, g219, g234, g238, g253, g257, g272, g276, g277, g280, g282, g283, g287, g288, g289, g291, g295, g299, g303, g324, g326, g328, g330, g332, g334, g336, g338, g340, g342, g353, g355, g367, g369, g371, g372, g375, g378, g381, g384, g387, g390, g393, g396, g412, g439, g466, g493, g520, g547, g574, g601, g628, g641, g643, g681, g682, g683, g684) { "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v51, v53, v55; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47; v1 = g0.gl; v2 = g0.context; v3 = g0.strings; @@ -183534,10275 +182201,10551 @@ void main() { "cw": 2304, "ccw": 2305 }; - v49 = {}; - v49.buffer = g50; - v49.divisor = 1; - v51 = {}; - v51.buffer = g52; - v51.divisor = 1; - v53 = {}; - v53.buffer = g54; - v53.divisor = 1; - v55 = {}; - v55.buffer = g56; - v55.divisor = 1; return { "draw": function(a0) { - var v57, v58, v92, v93, v94, v95, v96, v97, v98, v101, v102, v103, v104, v105, v107, v108, v110, v113, v114, v116, v117, v118, v119, v120, v121, v122, v123, v124, v125, v126, v127, v128, v129, v131, v132, v133, v135, v136, v138, v139, v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v153, v154, v155, v157, v158, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v175, v176, v177, v179, v180, v181, v182, v183, v184, v185, v186, v187, v188, v189, v190, v191, v192, v194, v195, v196, v198, v200, v202, v204, v205, v206, v208, v209, v210, v212, v213, v214, v216, v217, v218, v221, v222, v223, v224, v225, v226, v227, v228; - v57 = v14.angle_instanced_arrays; - v58 = v13.next; - if (v58 !== v13.cur) { - if (v58) { - v1.bindFramebuffer(36160, v58.framebuffer); + var v49, v50, v85, v86, v87, v88, v89, v90, v91, v94, v95, v96, v97, v98, v101, v102, v104, v106, v107, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v121, v122, v123, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v140, v141, v142, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v159, v160, v161, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v178, v179, v180, v182, v183, v184, v185, v186, v187, v188, v189, v190, v191, v192, v193, v194, v195, v197, v198, v199, v201, v202, v203, v204, v205, v206, v207, v208, v209, v210, v211, v212, v213, v214, v216, v217, v218, v220, v221, v222, v223, v224, v225, v226, v227, v228, v229, v230, v231, v232, v233, v235, v236, v237, v239, v240, v241, v242, v243, v244, v245, v246, v247, v248, v249, v250, v251, v252, v254, v255, v256, v258, v259, v260, v261, v262, v263, v264, v265, v266, v267, v268, v269, v270, v271, v273, v274, v275, v278, v279, v281, v284, v285, v286, v290, v292, v293, v294, v296, v297, v298, v300, v301, v302, v304, v305, v306, v307, v308, v309, v310, v311, v312; + v49 = v14.angle_instanced_arrays; + v50 = v13.next; + if (v50 !== v13.cur) { + if (v50) { + v1.bindFramebuffer(36160, v50.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v58; + v13.cur = v50; } if (v5.dirty) { - var v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91; - v59 = v4.dither; - if (v59 !== v5.dither) { - if (v59) { + var v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84; + v51 = v4.dither; + if (v51 !== v5.dither) { + if (v51) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v59; + v5.dither = v51; } - v60 = v4.depth_func; - if (v60 !== v5.depth_func) { - v1.depthFunc(v60); - v5.depth_func = v60; + v52 = v19[0]; + v53 = v19[1]; + if (v52 !== v20[0] || v53 !== v20[1]) { + v1.blendEquationSeparate(v52, v53); + v20[0] = v52; + v20[1] = v53; } - v61 = v23[0]; - v62 = v23[1]; - if (v61 !== v24[0] || v62 !== v24[1]) { - v1.depthRange(v61, v62); - v24[0] = v61; - v24[1] = v62; + v54 = v4.depth_func; + if (v54 !== v5.depth_func) { + v1.depthFunc(v54); + v5.depth_func = v54; } - v63 = v4.depth_mask; - if (v63 !== v5.depth_mask) { - v1.depthMask(v63); - v5.depth_mask = v63; + v55 = v23[0]; + v56 = v23[1]; + if (v55 !== v24[0] || v56 !== v24[1]) { + v1.depthRange(v55, v56); + v24[0] = v55; + v24[1] = v56; } - v64 = v25[0]; - v65 = v25[1]; - v66 = v25[2]; - v67 = v25[3]; - if (v64 !== v26[0] || v65 !== v26[1] || v66 !== v26[2] || v67 !== v26[3]) { - v1.colorMask(v64, v65, v66, v67); - v26[0] = v64; - v26[1] = v65; - v26[2] = v66; - v26[3] = v67; + v57 = v4.depth_mask; + if (v57 !== v5.depth_mask) { + v1.depthMask(v57); + v5.depth_mask = v57; } - v68 = v4.cull_enable; - if (v68 !== v5.cull_enable) { - if (v68) { + v58 = v25[0]; + v59 = v25[1]; + v60 = v25[2]; + v61 = v25[3]; + if (v58 !== v26[0] || v59 !== v26[1] || v60 !== v26[2] || v61 !== v26[3]) { + v1.colorMask(v58, v59, v60, v61); + v26[0] = v58; + v26[1] = v59; + v26[2] = v60; + v26[3] = v61; + } + v62 = v4.cull_enable; + if (v62 !== v5.cull_enable) { + if (v62) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v68; + v5.cull_enable = v62; } - v69 = v4.cull_face; - if (v69 !== v5.cull_face) { - v1.cullFace(v69); - v5.cull_face = v69; + v63 = v4.cull_face; + if (v63 !== v5.cull_face) { + v1.cullFace(v63); + v5.cull_face = v63; } - v70 = v4.frontFace; - if (v70 !== v5.frontFace) { - v1.frontFace(v70); - v5.frontFace = v70; + v64 = v4.frontFace; + if (v64 !== v5.frontFace) { + v1.frontFace(v64); + v5.frontFace = v64; } - v71 = v4.lineWidth; - if (v71 !== v5.lineWidth) { - v1.lineWidth(v71); - v5.lineWidth = v71; + v65 = v4.lineWidth; + if (v65 !== v5.lineWidth) { + v1.lineWidth(v65); + v5.lineWidth = v65; } - v72 = v4.polygonOffset_enable; - if (v72 !== v5.polygonOffset_enable) { - if (v72) { + v66 = v4.polygonOffset_enable; + if (v66 !== v5.polygonOffset_enable) { + if (v66) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v72; + v5.polygonOffset_enable = v66; } - v73 = v27[0]; - v74 = v27[1]; - if (v73 !== v28[0] || v74 !== v28[1]) { - v1.polygonOffset(v73, v74); - v28[0] = v73; - v28[1] = v74; + v67 = v27[0]; + v68 = v27[1]; + if (v67 !== v28[0] || v68 !== v28[1]) { + v1.polygonOffset(v67, v68); + v28[0] = v67; + v28[1] = v68; } - v75 = v4.sample_alpha; - if (v75 !== v5.sample_alpha) { - if (v75) { + v69 = v4.sample_alpha; + if (v69 !== v5.sample_alpha) { + if (v69) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v75; + v5.sample_alpha = v69; } - v76 = v4.sample_enable; - if (v76 !== v5.sample_enable) { - if (v76) { + v70 = v4.sample_enable; + if (v70 !== v5.sample_enable) { + if (v70) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v76; - } - v77 = v29[0]; - v78 = v29[1]; - if (v77 !== v30[0] || v78 !== v30[1]) { - v1.sampleCoverage(v77, v78); - v30[0] = v77; - v30[1] = v78; + v5.sample_enable = v70; } - v79 = v4.stencil_enable; - if (v79 !== v5.stencil_enable) { - if (v79) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = v79; + v71 = v29[0]; + v72 = v29[1]; + if (v71 !== v30[0] || v72 !== v30[1]) { + v1.sampleCoverage(v71, v72); + v30[0] = v71; + v30[1] = v72; } - v80 = v4.stencil_mask; - if (v80 !== v5.stencil_mask) { - v1.stencilMask(v80); - v5.stencil_mask = v80; + v73 = v4.stencil_mask; + if (v73 !== v5.stencil_mask) { + v1.stencilMask(v73); + v5.stencil_mask = v73; } - v81 = v31[0]; - v82 = v31[1]; - v83 = v31[2]; - if (v81 !== v32[0] || v82 !== v32[1] || v83 !== v32[2]) { - v1.stencilFunc(v81, v82, v83); - v32[0] = v81; - v32[1] = v82; - v32[2] = v83; + v74 = v31[0]; + v75 = v31[1]; + v76 = v31[2]; + if (v74 !== v32[0] || v75 !== v32[1] || v76 !== v32[2]) { + v1.stencilFunc(v74, v75, v76); + v32[0] = v74; + v32[1] = v75; + v32[2] = v76; } - v84 = v33[0]; - v85 = v33[1]; - v86 = v33[2]; - v87 = v33[3]; - if (v84 !== v34[0] || v85 !== v34[1] || v86 !== v34[2] || v87 !== v34[3]) { - v1.stencilOpSeparate(v84, v85, v86, v87); - v34[0] = v84; - v34[1] = v85; - v34[2] = v86; - v34[3] = v87; + v77 = v33[0]; + v78 = v33[1]; + v79 = v33[2]; + v80 = v33[3]; + if (v77 !== v34[0] || v78 !== v34[1] || v79 !== v34[2] || v80 !== v34[3]) { + v1.stencilOpSeparate(v77, v78, v79, v80); + v34[0] = v77; + v34[1] = v78; + v34[2] = v79; + v34[3] = v80; } - v88 = v35[0]; - v89 = v35[1]; - v90 = v35[2]; - v91 = v35[3]; - if (v88 !== v36[0] || v89 !== v36[1] || v90 !== v36[2] || v91 !== v36[3]) { - v1.stencilOpSeparate(v88, v89, v90, v91); - v36[0] = v88; - v36[1] = v89; - v36[2] = v90; - v36[3] = v91; + v81 = v35[0]; + v82 = v35[1]; + v83 = v35[2]; + v84 = v35[3]; + if (v81 !== v36[0] || v82 !== v36[1] || v83 !== v36[2] || v84 !== v36[3]) { + v1.stencilOpSeparate(v81, v82, v83, v84); + v36[0] = v81; + v36[1] = v82; + v36[2] = v83; + v36[3] = v84; } } - v92 = a0["viewport"]; - v93 = v92.x | 0; - v94 = v92.y | 0; - v95 = "width" in v92 ? v92.width | 0 : v2.framebufferWidth - v93; - v96 = "height" in v92 ? v92.height | 0 : v2.framebufferHeight - v94; - v97 = v2.viewportWidth; - v2.viewportWidth = v95; - v98 = v2.viewportHeight; - v2.viewportHeight = v96; - v1.viewport(v93, v94, v95, v96); - v40[0] = v93; - v40[1] = v94; - v40[2] = v95; - v40[3] = v96; - v1.blendColor(0, 0, 0, 0); + v85 = a0["viewport"]; + v86 = v85.x | 0; + v87 = v85.y | 0; + v88 = "width" in v85 ? v85.width | 0 : v2.framebufferWidth - v86; + v89 = "height" in v85 ? v85.height | 0 : v2.framebufferHeight - v87; + v90 = v2.viewportWidth; + v2.viewportWidth = v88; + v91 = v2.viewportHeight; + v2.viewportHeight = v89; + v1.viewport(v86, v87, v88, v89); + v40[0] = v86; + v40[1] = v87; + v40[2] = v88; + v40[3] = v89; + v1.blendColor(0, 0, 0, 1); v18[0] = 0; v18[1] = 0; v18[2] = 0; - v18[3] = 0; - if (g99) { + v18[3] = 1; + if (g92) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g99; - v1.blendEquationSeparate(32774, 32774); - v20[0] = 32774; - v20[1] = 32774; + v5.blend_enable = g92; v1.blendFuncSeparate(770, 771, 773, 1); v22[0] = 770; v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g100) { + if (g93) { v1.enable(2929); } else { v1.disable(2929); } - v5.depth_enable = g100; - v101 = a0["viewport"]; - v102 = v101.x | 0; - v103 = v101.y | 0; - v104 = "width" in v101 ? v101.width | 0 : v2.framebufferWidth - v102; - v105 = "height" in v101 ? v101.height | 0 : v2.framebufferHeight - v103; - v1.scissor(v102, v103, v104, v105); - v38[0] = v102; - v38[1] = v103; - v38[2] = v104; - v38[3] = v105; - if (g106) { + v5.depth_enable = g93; + v94 = a0["viewport"]; + v95 = v94.x | 0; + v96 = v94.y | 0; + v97 = "width" in v94 ? v94.width | 0 : v2.framebufferWidth - v95; + v98 = "height" in v94 ? v94.height | 0 : v2.framebufferHeight - v96; + v1.scissor(v95, v96, v97, v98); + v38[0] = v95; + v38[1] = v96; + v38[2] = v97; + v38[3] = v98; + if (g99) { v1.enable(3089); } else { v1.disable(3089); } - v5.scissor_enable = g106; - v107 = v5.profile; - if (v107) { - v108 = performance.now(); + v5.scissor_enable = g99; + if (g100) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = g100; + v101 = v5.profile; + if (v101) { + v102 = performance.now(); g48.count++; } - v1.useProgram(g109.program); - v110 = v14.angle_instanced_arrays; + v1.useProgram(g103.program); + v104 = v14.angle_instanced_arrays; v11.setVAO(null); - v113 = g112.location; - v114 = v10[v113]; - if (!v114.buffer) { - v1.enableVertexAttribArray(v113); - } - if (v114.type !== 5126 || v114.size !== 2 || v114.buffer !== g111 || v114.normalized !== false || v114.offset !== 16 || v114.stride !== 24) { - v1.bindBuffer(34962, g111.buffer); - v1.vertexAttribPointer(v113, 2, 5126, false, 24, 16); - v114.type = 5126; - v114.size = 2; - v114.buffer = g111; - v114.normalized = false; - v114.offset = 16; - v114.stride = 24; + v106 = g105.call(this, v2, a0, 0); + v107 = false; + v108 = 1; + v109 = 0; + v110 = 0; + v111 = 0; + v112 = 0; + v113 = null; + v114 = 0; + v115 = false; + v116 = 5126; + v117 = 0; + v118 = 0; + v119 = 0; + if (v16(v106)) { + v107 = true; + v113 = v8.createStream(34962, v106); + v116 = v113.dtype; + } else { + v113 = v8.getBuffer(v106); + if (v113) { + v116 = v113.dtype; + } else if ("constant" in v106) { + v108 = 2; + if (typeof v106.constant === "number") { + v109 = v106.constant; + v110 = v111 = v112 = 0; + } else { + v109 = v106.constant.length > 0 ? v106.constant[0] : 0; + v110 = v106.constant.length > 1 ? v106.constant[1] : 0; + v111 = v106.constant.length > 2 ? v106.constant[2] : 0; + v112 = v106.constant.length > 3 ? v106.constant[3] : 0; + } + } else { + if (v16(v106.buffer)) { + v113 = v8.createStream(34962, v106.buffer); + } else { + v113 = v8.getBuffer(v106.buffer); + } + v116 = "type" in v106 ? v46[v106.type] : v113.dtype; + v115 = !!v106.normalized; + v114 = v106.size | 0; + v117 = v106.offset | 0; + v118 = v106.stride | 0; + v119 = v106.divisor | 0; + } } - if (v114.divisor !== 0) { - v110.vertexAttribDivisorANGLE(v113, 0); - v114.divisor = 0; + v121 = g120.location; + v122 = v10[v121]; + if (v108 === 1) { + if (!v122.buffer) { + v1.enableVertexAttribArray(v121); + } + v123 = v114 || 4; + if (v122.type !== v116 || v122.size !== v123 || v122.buffer !== v113 || v122.normalized !== v115 || v122.offset !== v117 || v122.stride !== v118) { + v1.bindBuffer(34962, v113.buffer); + v1.vertexAttribPointer(v121, v123, v116, v115, v118, v117); + v122.type = v116; + v122.size = v123; + v122.buffer = v113; + v122.normalized = v115; + v122.offset = v117; + v122.stride = v118; + } + if (v122.divisor !== v119) { + v104.vertexAttribDivisorANGLE(v121, v119); + v122.divisor = v119; + } + } else { + if (v122.buffer) { + v1.disableVertexAttribArray(v121); + v122.buffer = null; + } + if (v122.x !== v109 || v122.y !== v110 || v122.z !== v111 || v122.w !== v112) { + v1.vertexAttrib4f(v121, v109, v110, v111, v112); + v122.x = v109; + v122.y = v110; + v122.z = v111; + v122.w = v112; + } } - v116 = g115.call(this, v2, a0, 0); - v49.offset = v116; - v117 = false; - v118 = 1; - v119 = 0; - v120 = 0; - v121 = 0; - v122 = 0; - v123 = null; - v124 = 0; - v125 = false; - v126 = 5126; - v127 = 0; + v125 = g124.call(this, v2, a0, 0); + v126 = false; + v127 = 1; v128 = 0; v129 = 0; - if (v16(v49)) { - v117 = true; - v123 = v8.createStream(34962, v49); - v126 = v123.dtype; + v130 = 0; + v131 = 0; + v132 = null; + v133 = 0; + v134 = false; + v135 = 5126; + v136 = 0; + v137 = 0; + v138 = 0; + if (v16(v125)) { + v126 = true; + v132 = v8.createStream(34962, v125); + v135 = v132.dtype; } else { - v123 = v8.getBuffer(v49); - if (v123) { - v126 = v123.dtype; - } else if ("constant" in v49) { - v118 = 2; - if (typeof v49.constant === "number") { - v119 = v49.constant; - v120 = v121 = v122 = 0; + v132 = v8.getBuffer(v125); + if (v132) { + v135 = v132.dtype; + } else if ("constant" in v125) { + v127 = 2; + if (typeof v125.constant === "number") { + v128 = v125.constant; + v129 = v130 = v131 = 0; } else { - v119 = v49.constant.length > 0 ? v49.constant[0] : 0; - v120 = v49.constant.length > 1 ? v49.constant[1] : 0; - v121 = v49.constant.length > 2 ? v49.constant[2] : 0; - v122 = v49.constant.length > 3 ? v49.constant[3] : 0; + v128 = v125.constant.length > 0 ? v125.constant[0] : 0; + v129 = v125.constant.length > 1 ? v125.constant[1] : 0; + v130 = v125.constant.length > 2 ? v125.constant[2] : 0; + v131 = v125.constant.length > 3 ? v125.constant[3] : 0; } } else { - if (v16(v49.buffer)) { - v123 = v8.createStream(34962, v49.buffer); + if (v16(v125.buffer)) { + v132 = v8.createStream(34962, v125.buffer); } else { - v123 = v8.getBuffer(v49.buffer); + v132 = v8.getBuffer(v125.buffer); } - v126 = "type" in v49 ? v46[v49.type] : v123.dtype; - v125 = !!v49.normalized; - v124 = v49.size | 0; - v127 = v49.offset | 0; - v128 = v49.stride | 0; - v129 = v49.divisor | 0; + v135 = "type" in v125 ? v46[v125.type] : v132.dtype; + v134 = !!v125.normalized; + v133 = v125.size | 0; + v136 = v125.offset | 0; + v137 = v125.stride | 0; + v138 = v125.divisor | 0; } } - v131 = g130.location; - v132 = v10[v131]; - if (v118 === 1) { - if (!v132.buffer) { - v1.enableVertexAttribArray(v131); + v140 = g139.location; + v141 = v10[v140]; + if (v127 === 1) { + if (!v141.buffer) { + v1.enableVertexAttribArray(v140); } - v133 = v124 || 4; - if (v132.type !== v126 || v132.size !== v133 || v132.buffer !== v123 || v132.normalized !== v125 || v132.offset !== v127 || v132.stride !== v128) { - v1.bindBuffer(34962, v123.buffer); - v1.vertexAttribPointer(v131, v133, v126, v125, v128, v127); - v132.type = v126; - v132.size = v133; - v132.buffer = v123; - v132.normalized = v125; - v132.offset = v127; - v132.stride = v128; + v142 = v133 || 1; + if (v141.type !== v135 || v141.size !== v142 || v141.buffer !== v132 || v141.normalized !== v134 || v141.offset !== v136 || v141.stride !== v137) { + v1.bindBuffer(34962, v132.buffer); + v1.vertexAttribPointer(v140, v142, v135, v134, v137, v136); + v141.type = v135; + v141.size = v142; + v141.buffer = v132; + v141.normalized = v134; + v141.offset = v136; + v141.stride = v137; } - if (v132.divisor !== v129) { - v110.vertexAttribDivisorANGLE(v131, v129); - v132.divisor = v129; + if (v141.divisor !== v138) { + v104.vertexAttribDivisorANGLE(v140, v138); + v141.divisor = v138; } } else { - if (v132.buffer) { - v1.disableVertexAttribArray(v131); - v132.buffer = null; + if (v141.buffer) { + v1.disableVertexAttribArray(v140); + v141.buffer = null; } - if (v132.x !== v119 || v132.y !== v120 || v132.z !== v121 || v132.w !== v122) { - v1.vertexAttrib4f(v131, v119, v120, v121, v122); - v132.x = v119; - v132.y = v120; - v132.z = v121; - v132.w = v122; + if (v141.x !== v128 || v141.y !== v129 || v141.z !== v130 || v141.w !== v131) { + v1.vertexAttrib4f(v140, v128, v129, v130, v131); + v141.x = v128; + v141.y = v129; + v141.z = v130; + v141.w = v131; } } - v135 = g134.location; - v136 = v10[v135]; - if (!v136.buffer) { - v1.enableVertexAttribArray(v135); - } - if (v136.type !== 5126 || v136.size !== 2 || v136.buffer !== g111 || v136.normalized !== false || v136.offset !== 0 || v136.stride !== 24) { - v1.bindBuffer(34962, g111.buffer); - v1.vertexAttribPointer(v135, 2, 5126, false, 24, 0); - v136.type = 5126; - v136.size = 2; - v136.buffer = g111; - v136.normalized = false; - v136.offset = 0; - v136.stride = 24; - } - if (v136.divisor !== 0) { - v110.vertexAttribDivisorANGLE(v135, 0); - v136.divisor = 0; - } - v138 = g137.call(this, v2, a0, 0); - v55.offset = v138; - v139 = false; - v140 = 1; - v141 = 0; - v142 = 0; - v143 = 0; - v144 = 0; - v145 = null; - v146 = 0; - v147 = false; - v148 = 5126; + v144 = g143.call(this, v2, a0, 0); + v145 = false; + v146 = 1; + v147 = 0; + v148 = 0; v149 = 0; v150 = 0; - v151 = 0; - if (v16(v55)) { - v139 = true; - v145 = v8.createStream(34962, v55); - v148 = v145.dtype; + v151 = null; + v152 = 0; + v153 = false; + v154 = 5126; + v155 = 0; + v156 = 0; + v157 = 0; + if (v16(v144)) { + v145 = true; + v151 = v8.createStream(34962, v144); + v154 = v151.dtype; } else { - v145 = v8.getBuffer(v55); - if (v145) { - v148 = v145.dtype; - } else if ("constant" in v55) { - v140 = 2; - if (typeof v55.constant === "number") { - v141 = v55.constant; - v142 = v143 = v144 = 0; + v151 = v8.getBuffer(v144); + if (v151) { + v154 = v151.dtype; + } else if ("constant" in v144) { + v146 = 2; + if (typeof v144.constant === "number") { + v147 = v144.constant; + v148 = v149 = v150 = 0; } else { - v141 = v55.constant.length > 0 ? v55.constant[0] : 0; - v142 = v55.constant.length > 1 ? v55.constant[1] : 0; - v143 = v55.constant.length > 2 ? v55.constant[2] : 0; - v144 = v55.constant.length > 3 ? v55.constant[3] : 0; + v147 = v144.constant.length > 0 ? v144.constant[0] : 0; + v148 = v144.constant.length > 1 ? v144.constant[1] : 0; + v149 = v144.constant.length > 2 ? v144.constant[2] : 0; + v150 = v144.constant.length > 3 ? v144.constant[3] : 0; } } else { - if (v16(v55.buffer)) { - v145 = v8.createStream(34962, v55.buffer); + if (v16(v144.buffer)) { + v151 = v8.createStream(34962, v144.buffer); } else { - v145 = v8.getBuffer(v55.buffer); + v151 = v8.getBuffer(v144.buffer); } - v148 = "type" in v55 ? v46[v55.type] : v145.dtype; - v147 = !!v55.normalized; - v146 = v55.size | 0; - v149 = v55.offset | 0; - v150 = v55.stride | 0; - v151 = v55.divisor | 0; + v154 = "type" in v144 ? v46[v144.type] : v151.dtype; + v153 = !!v144.normalized; + v152 = v144.size | 0; + v155 = v144.offset | 0; + v156 = v144.stride | 0; + v157 = v144.divisor | 0; } } - v153 = g152.location; - v154 = v10[v153]; - if (v140 === 1) { - if (!v154.buffer) { - v1.enableVertexAttribArray(v153); + v159 = g158.location; + v160 = v10[v159]; + if (v146 === 1) { + if (!v160.buffer) { + v1.enableVertexAttribArray(v159); } - v155 = v146 || 4; - if (v154.type !== v148 || v154.size !== v155 || v154.buffer !== v145 || v154.normalized !== v147 || v154.offset !== v149 || v154.stride !== v150) { - v1.bindBuffer(34962, v145.buffer); - v1.vertexAttribPointer(v153, v155, v148, v147, v150, v149); - v154.type = v148; - v154.size = v155; - v154.buffer = v145; - v154.normalized = v147; - v154.offset = v149; - v154.stride = v150; + v161 = v152 || 4; + if (v160.type !== v154 || v160.size !== v161 || v160.buffer !== v151 || v160.normalized !== v153 || v160.offset !== v155 || v160.stride !== v156) { + v1.bindBuffer(34962, v151.buffer); + v1.vertexAttribPointer(v159, v161, v154, v153, v156, v155); + v160.type = v154; + v160.size = v161; + v160.buffer = v151; + v160.normalized = v153; + v160.offset = v155; + v160.stride = v156; } - if (v154.divisor !== v151) { - v110.vertexAttribDivisorANGLE(v153, v151); - v154.divisor = v151; + if (v160.divisor !== v157) { + v104.vertexAttribDivisorANGLE(v159, v157); + v160.divisor = v157; } } else { - if (v154.buffer) { - v1.disableVertexAttribArray(v153); - v154.buffer = null; + if (v160.buffer) { + v1.disableVertexAttribArray(v159); + v160.buffer = null; } - if (v154.x !== v141 || v154.y !== v142 || v154.z !== v143 || v154.w !== v144) { - v1.vertexAttrib4f(v153, v141, v142, v143, v144); - v154.x = v141; - v154.y = v142; - v154.z = v143; - v154.w = v144; + if (v160.x !== v147 || v160.y !== v148 || v160.z !== v149 || v160.w !== v150) { + v1.vertexAttrib4f(v159, v147, v148, v149, v150); + v160.x = v147; + v160.y = v148; + v160.z = v149; + v160.w = v150; } } - v157 = g156.location; - v158 = v10[v157]; - if (!v158.buffer) { - v1.enableVertexAttribArray(v157); - } - if (v158.type !== 5126 || v158.size !== 2 || v158.buffer !== g111 || v158.normalized !== false || v158.offset !== 8 || v158.stride !== 24) { - v1.bindBuffer(34962, g111.buffer); - v1.vertexAttribPointer(v157, 2, 5126, false, 24, 8); - v158.type = 5126; - v158.size = 2; - v158.buffer = g111; - v158.normalized = false; - v158.offset = 8; - v158.stride = 24; - } - if (v158.divisor !== 0) { - v110.vertexAttribDivisorANGLE(v157, 0); - v158.divisor = 0; - } - v160 = g159.call(this, v2, a0, 0); - v51.offset = v160; - v161 = false; - v162 = 1; - v163 = 0; - v164 = 0; - v165 = 0; + v163 = g162.call(this, v2, a0, 0); + v164 = false; + v165 = 1; v166 = 0; - v167 = null; + v167 = 0; v168 = 0; - v169 = false; - v170 = 5126; + v169 = 0; + v170 = null; v171 = 0; - v172 = 0; - v173 = 0; - if (v16(v51)) { - v161 = true; - v167 = v8.createStream(34962, v51); - v170 = v167.dtype; + v172 = false; + v173 = 5126; + v174 = 0; + v175 = 0; + v176 = 0; + if (v16(v163)) { + v164 = true; + v170 = v8.createStream(34962, v163); + v173 = v170.dtype; } else { - v167 = v8.getBuffer(v51); - if (v167) { - v170 = v167.dtype; - } else if ("constant" in v51) { - v162 = 2; - if (typeof v51.constant === "number") { - v163 = v51.constant; - v164 = v165 = v166 = 0; + v170 = v8.getBuffer(v163); + if (v170) { + v173 = v170.dtype; + } else if ("constant" in v163) { + v165 = 2; + if (typeof v163.constant === "number") { + v166 = v163.constant; + v167 = v168 = v169 = 0; } else { - v163 = v51.constant.length > 0 ? v51.constant[0] : 0; - v164 = v51.constant.length > 1 ? v51.constant[1] : 0; - v165 = v51.constant.length > 2 ? v51.constant[2] : 0; - v166 = v51.constant.length > 3 ? v51.constant[3] : 0; + v166 = v163.constant.length > 0 ? v163.constant[0] : 0; + v167 = v163.constant.length > 1 ? v163.constant[1] : 0; + v168 = v163.constant.length > 2 ? v163.constant[2] : 0; + v169 = v163.constant.length > 3 ? v163.constant[3] : 0; } } else { - if (v16(v51.buffer)) { - v167 = v8.createStream(34962, v51.buffer); + if (v16(v163.buffer)) { + v170 = v8.createStream(34962, v163.buffer); } else { - v167 = v8.getBuffer(v51.buffer); + v170 = v8.getBuffer(v163.buffer); } - v170 = "type" in v51 ? v46[v51.type] : v167.dtype; - v169 = !!v51.normalized; - v168 = v51.size | 0; - v171 = v51.offset | 0; - v172 = v51.stride | 0; - v173 = v51.divisor | 0; + v173 = "type" in v163 ? v46[v163.type] : v170.dtype; + v172 = !!v163.normalized; + v171 = v163.size | 0; + v174 = v163.offset | 0; + v175 = v163.stride | 0; + v176 = v163.divisor | 0; } } - v175 = g174.location; - v176 = v10[v175]; - if (v162 === 1) { - if (!v176.buffer) { - v1.enableVertexAttribArray(v175); + v178 = g177.location; + v179 = v10[v178]; + if (v165 === 1) { + if (!v179.buffer) { + v1.enableVertexAttribArray(v178); } - v177 = v168 || 2; - if (v176.type !== v170 || v176.size !== v177 || v176.buffer !== v167 || v176.normalized !== v169 || v176.offset !== v171 || v176.stride !== v172) { - v1.bindBuffer(34962, v167.buffer); - v1.vertexAttribPointer(v175, v177, v170, v169, v172, v171); - v176.type = v170; - v176.size = v177; - v176.buffer = v167; - v176.normalized = v169; - v176.offset = v171; - v176.stride = v172; + v180 = v171 || 1; + if (v179.type !== v173 || v179.size !== v180 || v179.buffer !== v170 || v179.normalized !== v172 || v179.offset !== v174 || v179.stride !== v175) { + v1.bindBuffer(34962, v170.buffer); + v1.vertexAttribPointer(v178, v180, v173, v172, v175, v174); + v179.type = v173; + v179.size = v180; + v179.buffer = v170; + v179.normalized = v172; + v179.offset = v174; + v179.stride = v175; } - if (v176.divisor !== v173) { - v110.vertexAttribDivisorANGLE(v175, v173); - v176.divisor = v173; + if (v179.divisor !== v176) { + v104.vertexAttribDivisorANGLE(v178, v176); + v179.divisor = v176; } } else { - if (v176.buffer) { - v1.disableVertexAttribArray(v175); - v176.buffer = null; + if (v179.buffer) { + v1.disableVertexAttribArray(v178); + v179.buffer = null; } - if (v176.x !== v163 || v176.y !== v164 || v176.z !== v165 || v176.w !== v166) { - v1.vertexAttrib4f(v175, v163, v164, v165, v166); - v176.x = v163; - v176.y = v164; - v176.z = v165; - v176.w = v166; + if (v179.x !== v166 || v179.y !== v167 || v179.z !== v168 || v179.w !== v169) { + v1.vertexAttrib4f(v178, v166, v167, v168, v169); + v179.x = v166; + v179.y = v167; + v179.z = v168; + v179.w = v169; } } - v179 = g178.call(this, v2, a0, 0); - v53.offset = v179; - v180 = false; - v181 = 1; - v182 = 0; - v183 = 0; - v184 = 0; + v182 = g181.call(this, v2, a0, 0); + v183 = false; + v184 = 1; v185 = 0; - v186 = null; + v186 = 0; v187 = 0; - v188 = false; - v189 = 5126; + v188 = 0; + v189 = null; v190 = 0; - v191 = 0; - v192 = 0; - if (v16(v53)) { - v180 = true; - v186 = v8.createStream(34962, v53); - v189 = v186.dtype; + v191 = false; + v192 = 5126; + v193 = 0; + v194 = 0; + v195 = 0; + if (v16(v182)) { + v183 = true; + v189 = v8.createStream(34962, v182); + v192 = v189.dtype; } else { - v186 = v8.getBuffer(v53); - if (v186) { - v189 = v186.dtype; - } else if ("constant" in v53) { - v181 = 2; - if (typeof v53.constant === "number") { - v182 = v53.constant; - v183 = v184 = v185 = 0; + v189 = v8.getBuffer(v182); + if (v189) { + v192 = v189.dtype; + } else if ("constant" in v182) { + v184 = 2; + if (typeof v182.constant === "number") { + v185 = v182.constant; + v186 = v187 = v188 = 0; } else { - v182 = v53.constant.length > 0 ? v53.constant[0] : 0; - v183 = v53.constant.length > 1 ? v53.constant[1] : 0; - v184 = v53.constant.length > 2 ? v53.constant[2] : 0; - v185 = v53.constant.length > 3 ? v53.constant[3] : 0; + v185 = v182.constant.length > 0 ? v182.constant[0] : 0; + v186 = v182.constant.length > 1 ? v182.constant[1] : 0; + v187 = v182.constant.length > 2 ? v182.constant[2] : 0; + v188 = v182.constant.length > 3 ? v182.constant[3] : 0; } } else { - if (v16(v53.buffer)) { - v186 = v8.createStream(34962, v53.buffer); + if (v16(v182.buffer)) { + v189 = v8.createStream(34962, v182.buffer); } else { - v186 = v8.getBuffer(v53.buffer); + v189 = v8.getBuffer(v182.buffer); } - v189 = "type" in v53 ? v46[v53.type] : v186.dtype; - v188 = !!v53.normalized; - v187 = v53.size | 0; - v190 = v53.offset | 0; - v191 = v53.stride | 0; - v192 = v53.divisor | 0; + v192 = "type" in v182 ? v46[v182.type] : v189.dtype; + v191 = !!v182.normalized; + v190 = v182.size | 0; + v193 = v182.offset | 0; + v194 = v182.stride | 0; + v195 = v182.divisor | 0; } } - v194 = g193.location; - v195 = v10[v194]; - if (v181 === 1) { - if (!v195.buffer) { - v1.enableVertexAttribArray(v194); + v197 = g196.location; + v198 = v10[v197]; + if (v184 === 1) { + if (!v198.buffer) { + v1.enableVertexAttribArray(v197); } - v196 = v187 || 2; - if (v195.type !== v189 || v195.size !== v196 || v195.buffer !== v186 || v195.normalized !== v188 || v195.offset !== v190 || v195.stride !== v191) { - v1.bindBuffer(34962, v186.buffer); - v1.vertexAttribPointer(v194, v196, v189, v188, v191, v190); - v195.type = v189; - v195.size = v196; - v195.buffer = v186; - v195.normalized = v188; - v195.offset = v190; - v195.stride = v191; + v199 = v190 || 1; + if (v198.type !== v192 || v198.size !== v199 || v198.buffer !== v189 || v198.normalized !== v191 || v198.offset !== v193 || v198.stride !== v194) { + v1.bindBuffer(34962, v189.buffer); + v1.vertexAttribPointer(v197, v199, v192, v191, v194, v193); + v198.type = v192; + v198.size = v199; + v198.buffer = v189; + v198.normalized = v191; + v198.offset = v193; + v198.stride = v194; } - if (v195.divisor !== v192) { - v110.vertexAttribDivisorANGLE(v194, v192); - v195.divisor = v192; + if (v198.divisor !== v195) { + v104.vertexAttribDivisorANGLE(v197, v195); + v198.divisor = v195; } } else { - if (v195.buffer) { - v1.disableVertexAttribArray(v194); - v195.buffer = null; + if (v198.buffer) { + v1.disableVertexAttribArray(v197); + v198.buffer = null; } - if (v195.x !== v182 || v195.y !== v183 || v195.z !== v184 || v195.w !== v185) { - v1.vertexAttrib4f(v194, v182, v183, v184, v185); - v195.x = v182; - v195.y = v183; - v195.z = v184; - v195.w = v185; + if (v198.x !== v185 || v198.y !== v186 || v198.z !== v187 || v198.w !== v188) { + v1.vertexAttrib4f(v197, v185, v186, v187, v188); + v198.x = v185; + v198.y = v186; + v198.z = v187; + v198.w = v188; } } - v198 = a0["capSize"]; - v1.uniform1f(g197.location, v198); - v200 = a0["lineWidth"]; - v1.uniform1f(g199.location, v200); - v202 = a0["opacity"]; - v1.uniform1f(g201.location, v202); - v204 = a0["scale"]; - v205 = v204[0]; - v206 = v204[1]; - v1.uniform2f(g203.location, v205, v206); - v208 = a0["scaleFract"]; - v209 = v208[0]; - v210 = v208[1]; - v1.uniform2f(g207.location, v209, v210); - v212 = a0["translate"]; - v213 = v212[0]; - v214 = v212[1]; - v1.uniform2f(g211.location, v213, v214); - v216 = a0["translateFract"]; - v217 = v216[0]; - v218 = v216[1]; - v1.uniform2f(g215.location, v217, v218); - v221 = g220.call(this, v2, a0, 0); - v222 = v221[0]; - v223 = v221[1]; - v224 = v221[2]; - v225 = v221[3]; - v1.uniform4f(g219.location, v222, v223, v224, v225); - v226 = v6.elements; - if (v226) { - v1.bindBuffer(34963, v226.buffer.buffer); - } else if (v11.currentVAO) { - v226 = v7.getElements(v11.currentVAO.elements); - if (v226) v1.bindBuffer(34963, v226.buffer.buffer); - } - v227 = v6.offset; - v228 = a0["count"]; - if (v228 > 0) { - if (v226) { - v110.drawElementsInstancedANGLE(4, 36, v226.type, v227 << (v226.type - 5121 >> 1), v228); - } else { - v110.drawArraysInstancedANGLE(4, v227, 36, v228); - } - } else if (v228 < 0) { - if (v226) { - v1.drawElements(4, 36, v226.type, v227 << (v226.type - 5121 >> 1)); - } else { - v1.drawArrays(4, v227, 36); - } - } - v5.dirty = true; - v11.setVAO(null); - v2.viewportWidth = v97; - v2.viewportHeight = v98; - if (v107) { - g48.cpuTime += performance.now() - v108; - } - if (v117) { - v8.destroyStream(v123); - } - if (v139) { - v8.destroyStream(v145); - } - if (v161) { - v8.destroyStream(v167); - } - if (v180) { - v8.destroyStream(v186); - } - }, - "scope": function(a0, a1, a2) { - var v229, v230, v231, v232, v233, v234, v235, v236, v237, v238, v239, v241, v243, v245, v247, v249, v251, v253, v255, v257, v259, v261, v263, v264, v265, v266, v267, v268, v269, v270, v271, v272, v274, v275, v276, v278, v279, v280, v282, v283, v285, v286, v288, v289, v291, v292, v294, v295, v297, v298, v300, v301, v303, v304, v306, v307, v309, v311, v312, v313, v314, v315, v316, v317, v318, v319, v320, v321, v322, v324, v325, v326, v327, v328, v329, v330, v331, v332, v333, v334, v335, v337, v338, v339, v340, v341, v342, v343, v344, v345, v346, v347, v348, v349, v350, v351, v352, v353, v354, v355, v356, v357, v358, v359, v360, v361, v362, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v375, v376, v377, v378, v379, v380, v381, v382, v383, v384, v385, v386, v387, v388, v389, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v409, v410, v411, v412, v413, v414, v415, v416, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v437, v438, v439, v440, v441, v442, v443, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v458, v460; - v229 = a0["viewport"]; - v230 = v229.x | 0; - v231 = v229.y | 0; - v232 = "width" in v229 ? v229.width | 0 : v2.framebufferWidth - v230; - v233 = "height" in v229 ? v229.height | 0 : v2.framebufferHeight - v231; - v234 = v2.viewportWidth; - v2.viewportWidth = v232; - v235 = v2.viewportHeight; - v2.viewportHeight = v233; - v236 = v39[0]; - v39[0] = v230; - v237 = v39[1]; - v39[1] = v231; - v238 = v39[2]; - v39[2] = v232; - v239 = v39[3]; - v39[3] = v233; - v241 = v17[0]; - v17[0] = g240; - v243 = v17[1]; - v17[1] = g242; - v245 = v17[2]; - v17[2] = g244; - v247 = v17[3]; - v17[3] = g246; - v249 = v4.blend_enable; - v4.blend_enable = g248; - v251 = v19[0]; - v19[0] = g250; - v253 = v19[1]; - v19[1] = g252; - v255 = v21[0]; - v21[0] = g254; - v257 = v21[1]; - v21[1] = g256; - v259 = v21[2]; - v21[2] = g258; - v261 = v21[3]; - v21[3] = g260; - v263 = v4.depth_enable; - v4.depth_enable = g262; - v264 = a0["viewport"]; - v265 = v264.x | 0; - v266 = v264.y | 0; - v267 = "width" in v264 ? v264.width | 0 : v2.framebufferWidth - v265; - v268 = "height" in v264 ? v264.height | 0 : v2.framebufferHeight - v266; - v269 = v37[0]; - v37[0] = v265; - v270 = v37[1]; - v37[1] = v266; - v271 = v37[2]; - v37[2] = v267; - v272 = v37[3]; - v37[3] = v268; - v274 = v4.scissor_enable; - v4.scissor_enable = g273; - v275 = v5.profile; - if (v275) { - v276 = performance.now(); - g48.count++; - } - v278 = v6.count; - v6.count = g277; - v279 = a0["count"]; - v280 = v6.instances; - v6.instances = v279; - v282 = v6.primitive; - v6.primitive = g281; - v283 = a0["range"]; - v285 = v12[g284]; - v12[g284] = v283; - v286 = a0["lineWidth"]; - v288 = v12[g287]; - v12[g287] = v286; - v289 = a0["capSize"]; - v291 = v12[g290]; - v12[g290] = v289; - v292 = a0["opacity"]; - v294 = v12[g293]; - v12[g293] = v292; - v295 = a0["scale"]; - v297 = v12[g296]; - v12[g296] = v295; - v298 = a0["translate"]; - v300 = v12[g299]; - v12[g299] = v298; - v301 = a0["scaleFract"]; - v303 = v12[g302]; - v12[g302] = v301; - v304 = a0["translateFract"]; - v306 = v12[g305]; - v12[g305] = v304; - v307 = g220.call(this, v2, a0, a2); - v309 = v12[g308]; - v12[g308] = v307; - v311 = g310.state; - g310.state = 1; - v312 = g310.x; - g310.x = 0; - v313 = g310.y; - g310.y = 0; - v314 = g310.z; - g310.z = 0; - v315 = g310.w; - g310.w = 0; - v316 = g310.buffer; - g310.buffer = g111; - v317 = g310.size; - g310.size = 0; - v318 = g310.normalized; - g310.normalized = false; - v319 = g310.type; - g310.type = 5126; - v320 = g310.offset; - g310.offset = 0; - v321 = g310.stride; - g310.stride = 24; - v322 = g310.divisor; - g310.divisor = 0; - v324 = g323.state; - g323.state = 1; - v325 = g323.x; - g323.x = 0; - v326 = g323.y; - g323.y = 0; - v327 = g323.z; - g323.z = 0; - v328 = g323.w; - g323.w = 0; - v329 = g323.buffer; - g323.buffer = g111; - v330 = g323.size; - g323.size = 0; - v331 = g323.normalized; - g323.normalized = false; - v332 = g323.type; - g323.type = 5126; - v333 = g323.offset; - g323.offset = 8; - v334 = g323.stride; - g323.stride = 24; - v335 = g323.divisor; - g323.divisor = 0; - v337 = g336.state; - g336.state = 1; - v338 = g336.x; - g336.x = 0; - v339 = g336.y; - g336.y = 0; - v340 = g336.z; - g336.z = 0; - v341 = g336.w; - g336.w = 0; - v342 = g336.buffer; - g336.buffer = g111; - v343 = g336.size; - g336.size = 0; - v344 = g336.normalized; - g336.normalized = false; - v345 = g336.type; - g336.type = 5126; - v346 = g336.offset; - g336.offset = 16; - v347 = g336.stride; - g336.stride = 24; - v348 = g336.divisor; - g336.divisor = 0; - v349 = g115.call(this, v2, a0, a2); - v49.offset = v349; - v350 = false; - v351 = 1; - v352 = 0; - v353 = 0; - v354 = 0; - v355 = 0; - v356 = null; - v357 = 0; - v358 = false; - v359 = 5126; - v360 = 0; - v361 = 0; - v362 = 0; - if (v16(v49)) { - v350 = true; - v356 = v8.createStream(34962, v49); - v359 = v356.dtype; + v201 = g200.call(this, v2, a0, 0); + v202 = false; + v203 = 1; + v204 = 0; + v205 = 0; + v206 = 0; + v207 = 0; + v208 = null; + v209 = 0; + v210 = false; + v211 = 5126; + v212 = 0; + v213 = 0; + v214 = 0; + if (v16(v201)) { + v202 = true; + v208 = v8.createStream(34962, v201); + v211 = v208.dtype; } else { - v356 = v8.getBuffer(v49); - if (v356) { - v359 = v356.dtype; - } else if ("constant" in v49) { - v351 = 2; - if (typeof v49.constant === "number") { - v352 = v49.constant; - v353 = v354 = v355 = 0; + v208 = v8.getBuffer(v201); + if (v208) { + v211 = v208.dtype; + } else if ("constant" in v201) { + v203 = 2; + if (typeof v201.constant === "number") { + v204 = v201.constant; + v205 = v206 = v207 = 0; } else { - v352 = v49.constant.length > 0 ? v49.constant[0] : 0; - v353 = v49.constant.length > 1 ? v49.constant[1] : 0; - v354 = v49.constant.length > 2 ? v49.constant[2] : 0; - v355 = v49.constant.length > 3 ? v49.constant[3] : 0; + v204 = v201.constant.length > 0 ? v201.constant[0] : 0; + v205 = v201.constant.length > 1 ? v201.constant[1] : 0; + v206 = v201.constant.length > 2 ? v201.constant[2] : 0; + v207 = v201.constant.length > 3 ? v201.constant[3] : 0; } } else { - if (v16(v49.buffer)) { - v356 = v8.createStream(34962, v49.buffer); + if (v16(v201.buffer)) { + v208 = v8.createStream(34962, v201.buffer); } else { - v356 = v8.getBuffer(v49.buffer); + v208 = v8.getBuffer(v201.buffer); } - v359 = "type" in v49 ? v46[v49.type] : v356.dtype; - v358 = !!v49.normalized; - v357 = v49.size | 0; - v360 = v49.offset | 0; - v361 = v49.stride | 0; - v362 = v49.divisor | 0; + v211 = "type" in v201 ? v46[v201.type] : v208.dtype; + v210 = !!v201.normalized; + v209 = v201.size | 0; + v212 = v201.offset | 0; + v213 = v201.stride | 0; + v214 = v201.divisor | 0; } } - v364 = g363.state; - g363.state = v351; - v365 = g363.x; - g363.x = v352; - v366 = g363.y; - g363.y = v353; - v367 = g363.z; - g363.z = v354; - v368 = g363.w; - g363.w = v355; - v369 = g363.buffer; - g363.buffer = v356; - v370 = g363.size; - g363.size = v357; - v371 = g363.normalized; - g363.normalized = v358; - v372 = g363.type; - g363.type = v359; - v373 = g363.offset; - g363.offset = v360; - v374 = g363.stride; - g363.stride = v361; - v375 = g363.divisor; - g363.divisor = v362; - v376 = g159.call(this, v2, a0, a2); - v51.offset = v376; - v377 = false; - v378 = 1; - v379 = 0; - v380 = 0; - v381 = 0; - v382 = 0; - v383 = null; - v384 = 0; - v385 = false; - v386 = 5126; - v387 = 0; - v388 = 0; - v389 = 0; - if (v16(v51)) { - v377 = true; - v383 = v8.createStream(34962, v51); - v386 = v383.dtype; + v216 = g215.location; + v217 = v10[v216]; + if (v203 === 1) { + if (!v217.buffer) { + v1.enableVertexAttribArray(v216); + } + v218 = v209 || 1; + if (v217.type !== v211 || v217.size !== v218 || v217.buffer !== v208 || v217.normalized !== v210 || v217.offset !== v212 || v217.stride !== v213) { + v1.bindBuffer(34962, v208.buffer); + v1.vertexAttribPointer(v216, v218, v211, v210, v213, v212); + v217.type = v211; + v217.size = v218; + v217.buffer = v208; + v217.normalized = v210; + v217.offset = v212; + v217.stride = v213; + } + if (v217.divisor !== v214) { + v104.vertexAttribDivisorANGLE(v216, v214); + v217.divisor = v214; + } } else { - v383 = v8.getBuffer(v51); - if (v383) { - v386 = v383.dtype; - } else if ("constant" in v51) { - v378 = 2; - if (typeof v51.constant === "number") { - v379 = v51.constant; - v380 = v381 = v382 = 0; - } else { - v379 = v51.constant.length > 0 ? v51.constant[0] : 0; - v380 = v51.constant.length > 1 ? v51.constant[1] : 0; - v381 = v51.constant.length > 2 ? v51.constant[2] : 0; - v382 = v51.constant.length > 3 ? v51.constant[3] : 0; - } - } else { - if (v16(v51.buffer)) { - v383 = v8.createStream(34962, v51.buffer); - } else { - v383 = v8.getBuffer(v51.buffer); - } - v386 = "type" in v51 ? v46[v51.type] : v383.dtype; - v385 = !!v51.normalized; - v384 = v51.size | 0; - v387 = v51.offset | 0; - v388 = v51.stride | 0; - v389 = v51.divisor | 0; + if (v217.buffer) { + v1.disableVertexAttribArray(v216); + v217.buffer = null; + } + if (v217.x !== v204 || v217.y !== v205 || v217.z !== v206 || v217.w !== v207) { + v1.vertexAttrib4f(v216, v204, v205, v206, v207); + v217.x = v204; + v217.y = v205; + v217.z = v206; + v217.w = v207; } } - v391 = g390.state; - g390.state = v378; - v392 = g390.x; - g390.x = v379; - v393 = g390.y; - g390.y = v380; - v394 = g390.z; - g390.z = v381; - v395 = g390.w; - g390.w = v382; - v396 = g390.buffer; - g390.buffer = v383; - v397 = g390.size; - g390.size = v384; - v398 = g390.normalized; - g390.normalized = v385; - v399 = g390.type; - g390.type = v386; - v400 = g390.offset; - g390.offset = v387; - v401 = g390.stride; - g390.stride = v388; - v402 = g390.divisor; - g390.divisor = v389; - v403 = g178.call(this, v2, a0, a2); - v53.offset = v403; - v404 = false; - v405 = 1; - v406 = 0; - v407 = 0; - v408 = 0; - v409 = 0; - v410 = null; - v411 = 0; - v412 = false; - v413 = 5126; - v414 = 0; - v415 = 0; - v416 = 0; - if (v16(v53)) { - v404 = true; - v410 = v8.createStream(34962, v53); - v413 = v410.dtype; + v220 = g219.call(this, v2, a0, 0); + v221 = false; + v222 = 1; + v223 = 0; + v224 = 0; + v225 = 0; + v226 = 0; + v227 = null; + v228 = 0; + v229 = false; + v230 = 5126; + v231 = 0; + v232 = 0; + v233 = 0; + if (v16(v220)) { + v221 = true; + v227 = v8.createStream(34962, v220); + v230 = v227.dtype; } else { - v410 = v8.getBuffer(v53); - if (v410) { - v413 = v410.dtype; - } else if ("constant" in v53) { - v405 = 2; - if (typeof v53.constant === "number") { - v406 = v53.constant; - v407 = v408 = v409 = 0; + v227 = v8.getBuffer(v220); + if (v227) { + v230 = v227.dtype; + } else if ("constant" in v220) { + v222 = 2; + if (typeof v220.constant === "number") { + v223 = v220.constant; + v224 = v225 = v226 = 0; } else { - v406 = v53.constant.length > 0 ? v53.constant[0] : 0; - v407 = v53.constant.length > 1 ? v53.constant[1] : 0; - v408 = v53.constant.length > 2 ? v53.constant[2] : 0; - v409 = v53.constant.length > 3 ? v53.constant[3] : 0; + v223 = v220.constant.length > 0 ? v220.constant[0] : 0; + v224 = v220.constant.length > 1 ? v220.constant[1] : 0; + v225 = v220.constant.length > 2 ? v220.constant[2] : 0; + v226 = v220.constant.length > 3 ? v220.constant[3] : 0; } } else { - if (v16(v53.buffer)) { - v410 = v8.createStream(34962, v53.buffer); + if (v16(v220.buffer)) { + v227 = v8.createStream(34962, v220.buffer); } else { - v410 = v8.getBuffer(v53.buffer); + v227 = v8.getBuffer(v220.buffer); } - v413 = "type" in v53 ? v46[v53.type] : v410.dtype; - v412 = !!v53.normalized; - v411 = v53.size | 0; - v414 = v53.offset | 0; - v415 = v53.stride | 0; - v416 = v53.divisor | 0; + v230 = "type" in v220 ? v46[v220.type] : v227.dtype; + v229 = !!v220.normalized; + v228 = v220.size | 0; + v231 = v220.offset | 0; + v232 = v220.stride | 0; + v233 = v220.divisor | 0; } } - v418 = g417.state; - g417.state = v405; - v419 = g417.x; - g417.x = v406; - v420 = g417.y; - g417.y = v407; - v421 = g417.z; - g417.z = v408; - v422 = g417.w; - g417.w = v409; - v423 = g417.buffer; - g417.buffer = v410; - v424 = g417.size; - g417.size = v411; - v425 = g417.normalized; - g417.normalized = v412; - v426 = g417.type; - g417.type = v413; - v427 = g417.offset; - g417.offset = v414; - v428 = g417.stride; - g417.stride = v415; - v429 = g417.divisor; - g417.divisor = v416; - v430 = g137.call(this, v2, a0, a2); - v55.offset = v430; - v431 = false; - v432 = 1; - v433 = 0; - v434 = 0; - v435 = 0; - v436 = 0; - v437 = null; - v438 = 0; - v439 = false; - v440 = 5126; - v441 = 0; - v442 = 0; - v443 = 0; - if (v16(v55)) { - v431 = true; - v437 = v8.createStream(34962, v55); - v440 = v437.dtype; + v235 = g234.location; + v236 = v10[v235]; + if (v222 === 1) { + if (!v236.buffer) { + v1.enableVertexAttribArray(v235); + } + v237 = v228 || 1; + if (v236.type !== v230 || v236.size !== v237 || v236.buffer !== v227 || v236.normalized !== v229 || v236.offset !== v231 || v236.stride !== v232) { + v1.bindBuffer(34962, v227.buffer); + v1.vertexAttribPointer(v235, v237, v230, v229, v232, v231); + v236.type = v230; + v236.size = v237; + v236.buffer = v227; + v236.normalized = v229; + v236.offset = v231; + v236.stride = v232; + } + if (v236.divisor !== v233) { + v104.vertexAttribDivisorANGLE(v235, v233); + v236.divisor = v233; + } } else { - v437 = v8.getBuffer(v55); - if (v437) { - v440 = v437.dtype; - } else if ("constant" in v55) { - v432 = 2; - if (typeof v55.constant === "number") { - v433 = v55.constant; - v434 = v435 = v436 = 0; + if (v236.buffer) { + v1.disableVertexAttribArray(v235); + v236.buffer = null; + } + if (v236.x !== v223 || v236.y !== v224 || v236.z !== v225 || v236.w !== v226) { + v1.vertexAttrib4f(v235, v223, v224, v225, v226); + v236.x = v223; + v236.y = v224; + v236.z = v225; + v236.w = v226; + } + } + v239 = g238.call(this, v2, a0, 0); + v240 = false; + v241 = 1; + v242 = 0; + v243 = 0; + v244 = 0; + v245 = 0; + v246 = null; + v247 = 0; + v248 = false; + v249 = 5126; + v250 = 0; + v251 = 0; + v252 = 0; + if (v16(v239)) { + v240 = true; + v246 = v8.createStream(34962, v239); + v249 = v246.dtype; + } else { + v246 = v8.getBuffer(v239); + if (v246) { + v249 = v246.dtype; + } else if ("constant" in v239) { + v241 = 2; + if (typeof v239.constant === "number") { + v242 = v239.constant; + v243 = v244 = v245 = 0; } else { - v433 = v55.constant.length > 0 ? v55.constant[0] : 0; - v434 = v55.constant.length > 1 ? v55.constant[1] : 0; - v435 = v55.constant.length > 2 ? v55.constant[2] : 0; - v436 = v55.constant.length > 3 ? v55.constant[3] : 0; + v242 = v239.constant.length > 0 ? v239.constant[0] : 0; + v243 = v239.constant.length > 1 ? v239.constant[1] : 0; + v244 = v239.constant.length > 2 ? v239.constant[2] : 0; + v245 = v239.constant.length > 3 ? v239.constant[3] : 0; } } else { - if (v16(v55.buffer)) { - v437 = v8.createStream(34962, v55.buffer); + if (v16(v239.buffer)) { + v246 = v8.createStream(34962, v239.buffer); } else { - v437 = v8.getBuffer(v55.buffer); + v246 = v8.getBuffer(v239.buffer); } - v440 = "type" in v55 ? v46[v55.type] : v437.dtype; - v439 = !!v55.normalized; - v438 = v55.size | 0; - v441 = v55.offset | 0; - v442 = v55.stride | 0; - v443 = v55.divisor | 0; - } - } - v445 = g444.state; - g444.state = v432; - v446 = g444.x; - g444.x = v433; - v447 = g444.y; - g444.y = v434; - v448 = g444.z; - g444.z = v435; - v449 = g444.w; - g444.w = v436; - v450 = g444.buffer; - g444.buffer = v437; - v451 = g444.size; - g444.size = v438; - v452 = g444.normalized; - g444.normalized = v439; - v453 = g444.type; - g444.type = v440; - v454 = g444.offset; - g444.offset = v441; - v455 = g444.stride; - g444.stride = v442; - v456 = g444.divisor; - g444.divisor = v443; - v458 = v9.vert; - v9.vert = g457; - v460 = v9.frag; - v9.frag = g459; - v5.dirty = true; - a1(v2, a0, a2); - v2.viewportWidth = v234; - v2.viewportHeight = v235; - v39[0] = v236; - v39[1] = v237; - v39[2] = v238; - v39[3] = v239; - v17[0] = v241; - v17[1] = v243; - v17[2] = v245; - v17[3] = v247; - v4.blend_enable = v249; - v19[0] = v251; - v19[1] = v253; - v21[0] = v255; - v21[1] = v257; - v21[2] = v259; - v21[3] = v261; - v4.depth_enable = v263; - v37[0] = v269; - v37[1] = v270; - v37[2] = v271; - v37[3] = v272; - v4.scissor_enable = v274; - if (v275) { - g48.cpuTime += performance.now() - v276; - } - v6.count = v278; - v6.instances = v280; - v6.primitive = v282; - v12[g284] = v285; - v12[g287] = v288; - v12[g290] = v291; - v12[g293] = v294; - v12[g296] = v297; - v12[g299] = v300; - v12[g302] = v303; - v12[g305] = v306; - v12[g308] = v309; - g310.state = v311; - g310.x = v312; - g310.y = v313; - g310.z = v314; - g310.w = v315; - g310.buffer = v316; - g310.size = v317; - g310.normalized = v318; - g310.type = v319; - g310.offset = v320; - g310.stride = v321; - g310.divisor = v322; - g323.state = v324; - g323.x = v325; - g323.y = v326; - g323.z = v327; - g323.w = v328; - g323.buffer = v329; - g323.size = v330; - g323.normalized = v331; - g323.type = v332; - g323.offset = v333; - g323.stride = v334; - g323.divisor = v335; - g336.state = v337; - g336.x = v338; - g336.y = v339; - g336.z = v340; - g336.w = v341; - g336.buffer = v342; - g336.size = v343; - g336.normalized = v344; - g336.type = v345; - g336.offset = v346; - g336.stride = v347; - g336.divisor = v348; - if (v350) { - v8.destroyStream(v356); - } - g363.state = v364; - g363.x = v365; - g363.y = v366; - g363.z = v367; - g363.w = v368; - g363.buffer = v369; - g363.size = v370; - g363.normalized = v371; - g363.type = v372; - g363.offset = v373; - g363.stride = v374; - g363.divisor = v375; - if (v377) { - v8.destroyStream(v383); - } - g390.state = v391; - g390.x = v392; - g390.y = v393; - g390.z = v394; - g390.w = v395; - g390.buffer = v396; - g390.size = v397; - g390.normalized = v398; - g390.type = v399; - g390.offset = v400; - g390.stride = v401; - g390.divisor = v402; - if (v404) { - v8.destroyStream(v410); - } - g417.state = v418; - g417.x = v419; - g417.y = v420; - g417.z = v421; - g417.w = v422; - g417.buffer = v423; - g417.size = v424; - g417.normalized = v425; - g417.type = v426; - g417.offset = v427; - g417.stride = v428; - g417.divisor = v429; - if (v431) { - v8.destroyStream(v437); - } - g444.state = v445; - g444.x = v446; - g444.y = v447; - g444.z = v448; - g444.w = v449; - g444.buffer = v450; - g444.size = v451; - g444.normalized = v452; - g444.type = v453; - g444.offset = v454; - g444.stride = v455; - g444.divisor = v456; - v9.vert = v458; - v9.frag = v460; - v5.dirty = true; - }, - "batch": function(a0, a1) { - var v461, v462, v499, v500, v501, v502, v503; - v461 = v14.angle_instanced_arrays; - v462 = v13.next; - if (v462 !== v13.cur) { - if (v462) { - v1.bindFramebuffer(36160, v462.framebuffer); - } else { - v1.bindFramebuffer(36160, null); + v249 = "type" in v239 ? v46[v239.type] : v246.dtype; + v248 = !!v239.normalized; + v247 = v239.size | 0; + v250 = v239.offset | 0; + v251 = v239.stride | 0; + v252 = v239.divisor | 0; } - v13.cur = v462; } - if (v5.dirty) { - var v463, v464, v465, v466, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v490, v491, v492, v493, v494, v495; - v463 = v4.dither; - if (v463 !== v5.dither) { - if (v463) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v463; + v254 = g253.location; + v255 = v10[v254]; + if (v241 === 1) { + if (!v255.buffer) { + v1.enableVertexAttribArray(v254); } - v464 = v4.depth_func; - if (v464 !== v5.depth_func) { - v1.depthFunc(v464); - v5.depth_func = v464; + v256 = v247 || 1; + if (v255.type !== v249 || v255.size !== v256 || v255.buffer !== v246 || v255.normalized !== v248 || v255.offset !== v250 || v255.stride !== v251) { + v1.bindBuffer(34962, v246.buffer); + v1.vertexAttribPointer(v254, v256, v249, v248, v251, v250); + v255.type = v249; + v255.size = v256; + v255.buffer = v246; + v255.normalized = v248; + v255.offset = v250; + v255.stride = v251; } - v465 = v23[0]; - v466 = v23[1]; - if (v465 !== v24[0] || v466 !== v24[1]) { - v1.depthRange(v465, v466); - v24[0] = v465; - v24[1] = v466; + if (v255.divisor !== v252) { + v104.vertexAttribDivisorANGLE(v254, v252); + v255.divisor = v252; } - v467 = v4.depth_mask; - if (v467 !== v5.depth_mask) { - v1.depthMask(v467); - v5.depth_mask = v467; + } else { + if (v255.buffer) { + v1.disableVertexAttribArray(v254); + v255.buffer = null; } - v468 = v25[0]; - v469 = v25[1]; - v470 = v25[2]; - v471 = v25[3]; - if (v468 !== v26[0] || v469 !== v26[1] || v470 !== v26[2] || v471 !== v26[3]) { - v1.colorMask(v468, v469, v470, v471); - v26[0] = v468; - v26[1] = v469; - v26[2] = v470; - v26[3] = v471; + if (v255.x !== v242 || v255.y !== v243 || v255.z !== v244 || v255.w !== v245) { + v1.vertexAttrib4f(v254, v242, v243, v244, v245); + v255.x = v242; + v255.y = v243; + v255.z = v244; + v255.w = v245; } - v472 = v4.cull_enable; - if (v472 !== v5.cull_enable) { - if (v472) { - v1.enable(2884); + } + v258 = g257.call(this, v2, a0, 0); + v259 = false; + v260 = 1; + v261 = 0; + v262 = 0; + v263 = 0; + v264 = 0; + v265 = null; + v266 = 0; + v267 = false; + v268 = 5126; + v269 = 0; + v270 = 0; + v271 = 0; + if (v16(v258)) { + v259 = true; + v265 = v8.createStream(34962, v258); + v268 = v265.dtype; + } else { + v265 = v8.getBuffer(v258); + if (v265) { + v268 = v265.dtype; + } else if ("constant" in v258) { + v260 = 2; + if (typeof v258.constant === "number") { + v261 = v258.constant; + v262 = v263 = v264 = 0; } else { - v1.disable(2884); + v261 = v258.constant.length > 0 ? v258.constant[0] : 0; + v262 = v258.constant.length > 1 ? v258.constant[1] : 0; + v263 = v258.constant.length > 2 ? v258.constant[2] : 0; + v264 = v258.constant.length > 3 ? v258.constant[3] : 0; } - v5.cull_enable = v472; - } - v473 = v4.cull_face; - if (v473 !== v5.cull_face) { - v1.cullFace(v473); - v5.cull_face = v473; - } - v474 = v4.frontFace; - if (v474 !== v5.frontFace) { - v1.frontFace(v474); - v5.frontFace = v474; - } - v475 = v4.lineWidth; - if (v475 !== v5.lineWidth) { - v1.lineWidth(v475); - v5.lineWidth = v475; - } - v476 = v4.polygonOffset_enable; - if (v476 !== v5.polygonOffset_enable) { - if (v476) { - v1.enable(32823); + } else { + if (v16(v258.buffer)) { + v265 = v8.createStream(34962, v258.buffer); } else { - v1.disable(32823); + v265 = v8.getBuffer(v258.buffer); } - v5.polygonOffset_enable = v476; + v268 = "type" in v258 ? v46[v258.type] : v265.dtype; + v267 = !!v258.normalized; + v266 = v258.size | 0; + v269 = v258.offset | 0; + v270 = v258.stride | 0; + v271 = v258.divisor | 0; } - v477 = v27[0]; - v478 = v27[1]; - if (v477 !== v28[0] || v478 !== v28[1]) { - v1.polygonOffset(v477, v478); - v28[0] = v477; - v28[1] = v478; + } + v273 = g272.location; + v274 = v10[v273]; + if (v260 === 1) { + if (!v274.buffer) { + v1.enableVertexAttribArray(v273); } - v479 = v4.sample_alpha; - if (v479 !== v5.sample_alpha) { - if (v479) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v479; + v275 = v266 || 1; + if (v274.type !== v268 || v274.size !== v275 || v274.buffer !== v265 || v274.normalized !== v267 || v274.offset !== v269 || v274.stride !== v270) { + v1.bindBuffer(34962, v265.buffer); + v1.vertexAttribPointer(v273, v275, v268, v267, v270, v269); + v274.type = v268; + v274.size = v275; + v274.buffer = v265; + v274.normalized = v267; + v274.offset = v269; + v274.stride = v270; } - v480 = v4.sample_enable; - if (v480 !== v5.sample_enable) { - if (v480) { - v1.enable(32928); - } else { - v1.disable(32928); - } - v5.sample_enable = v480; + if (v274.divisor !== v271) { + v104.vertexAttribDivisorANGLE(v273, v271); + v274.divisor = v271; } - v481 = v29[0]; - v482 = v29[1]; - if (v481 !== v30[0] || v482 !== v30[1]) { - v1.sampleCoverage(v481, v482); - v30[0] = v481; - v30[1] = v482; + } else { + if (v274.buffer) { + v1.disableVertexAttribArray(v273); + v274.buffer = null; } - v483 = v4.stencil_enable; - if (v483 !== v5.stencil_enable) { - if (v483) { - v1.enable(2960); + if (v274.x !== v261 || v274.y !== v262 || v274.z !== v263 || v274.w !== v264) { + v1.vertexAttrib4f(v273, v261, v262, v263, v264); + v274.x = v261; + v274.y = v262; + v274.z = v263; + v274.w = v264; + } + } + v1.uniform1i(g276.location, false); + v278 = a0["markerTexture"]; + if (v278 && v278._reglType === "framebuffer") { + v278 = v278.color[0]; + } + v279 = v278._texture; + v1.uniform1i(g277.location, v279.bind()); + v281 = a0["opacity"]; + v1.uniform1f(g280.location, v281); + v284 = g283.call(this, v2, a0, 0); + v285 = v284[0]; + v286 = v284[1]; + v1.uniform2f(g282.location, v285, v286); + v1.uniform1i(g287.location, g288.bind()); + v290 = v2["pixelRatio"]; + v1.uniform1f(g289.location, v290); + v292 = a0["scale"]; + v293 = v292[0]; + v294 = v292[1]; + v1.uniform2f(g291.location, v293, v294); + v296 = a0["scaleFract"]; + v297 = v296[0]; + v298 = v296[1]; + v1.uniform2f(g295.location, v297, v298); + v300 = a0["translate"]; + v301 = v300[0]; + v302 = v300[1]; + v1.uniform2f(g299.location, v301, v302); + v304 = a0["translateFract"]; + v305 = v304[0]; + v306 = v304[1]; + v1.uniform2f(g303.location, v305, v306); + v307 = a0["elements"]; + v308 = null; + v309 = v16(v307); + if (v309) { + v308 = v7.createStream(v307); + } else { + v308 = v7.getElements(v307); + } + if (v308) v1.bindBuffer(34963, v308.buffer.buffer); + v310 = a0["offset"]; + v311 = a0["count"]; + if (v311) { + v312 = v6.instances; + if (v312 > 0) { + if (v308) { + v104.drawElementsInstancedANGLE(0, v311, v308.type, v310 << (v308.type - 5121 >> 1), v312); } else { - v1.disable(2960); + v104.drawArraysInstancedANGLE(0, v310, v311, v312); + } + } else if (v312 < 0) { + if (v308) { + v1.drawElements(0, v311, v308.type, v310 << (v308.type - 5121 >> 1)); + } else { + v1.drawArrays(0, v310, v311); } - v5.stencil_enable = v483; } - v484 = v4.stencil_mask; - if (v484 !== v5.stencil_mask) { - v1.stencilMask(v484); - v5.stencil_mask = v484; + v5.dirty = true; + v11.setVAO(null); + v2.viewportWidth = v90; + v2.viewportHeight = v91; + if (v101) { + g48.cpuTime += performance.now() - v102; } - v485 = v31[0]; - v486 = v31[1]; - v487 = v31[2]; - if (v485 !== v32[0] || v486 !== v32[1] || v487 !== v32[2]) { - v1.stencilFunc(v485, v486, v487); - v32[0] = v485; - v32[1] = v486; - v32[2] = v487; + if (v107) { + v8.destroyStream(v113); } - v488 = v33[0]; - v489 = v33[1]; - v490 = v33[2]; - v491 = v33[3]; - if (v488 !== v34[0] || v489 !== v34[1] || v490 !== v34[2] || v491 !== v34[3]) { - v1.stencilOpSeparate(v488, v489, v490, v491); - v34[0] = v488; - v34[1] = v489; - v34[2] = v490; - v34[3] = v491; + if (v126) { + v8.destroyStream(v132); } - v492 = v35[0]; - v493 = v35[1]; - v494 = v35[2]; - v495 = v35[3]; - if (v492 !== v36[0] || v493 !== v36[1] || v494 !== v36[2] || v495 !== v36[3]) { - v1.stencilOpSeparate(v492, v493, v494, v495); - v36[0] = v492; - v36[1] = v493; - v36[2] = v494; - v36[3] = v495; + if (v145) { + v8.destroyStream(v151); + } + if (v164) { + v8.destroyStream(v170); + } + if (v183) { + v8.destroyStream(v189); + } + if (v202) { + v8.destroyStream(v208); + } + if (v221) { + v8.destroyStream(v227); + } + if (v240) { + v8.destroyStream(v246); + } + if (v259) { + v8.destroyStream(v265); + } + v279.unbind(); + g288.unbind(); + if (v309) { + v7.destroyStream(v308); } } - v1.blendColor(0, 0, 0, 0); - v18[0] = 0; - v18[1] = 0; - v18[2] = 0; - v18[3] = 0; - if (g496) { - v1.enable(3042); - } else { - v1.disable(3042); + }, + "scope": function(a0, a1, a2) { + var v313, v314, v315, v316, v317, v318, v319, v320, v321, v322, v323, v325, v327, v329, v331, v333, v335, v337, v339, v341, v343, v344, v345, v346, v347, v348, v349, v350, v351, v352, v354, v356, v357, v358, v359, v360, v361, v362, v363, v364, v365, v366, v368, v370, v373, v374, v376, v377, v379, v380, v382, v383, v385, v386, v388, v389, v391, v392, v394, v395, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v409, v410, v411, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v437, v438, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v457, v458, v459, v460, v461, v462, v463, v464, v465, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v490, v491, v492, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v504, v505, v506, v507, v508, v509, v510, v511, v512, v513, v514, v515, v516, v517, v518, v519, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541, v542, v543, v544, v545, v546, v548, v549, v550, v551, v552, v553, v554, v555, v556, v557, v558, v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v571, v572, v573, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v595, v596, v597, v598, v599, v600, v602, v603, v604, v605, v606, v607, v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v625, v626, v627, v629, v630, v631, v632, v633, v634, v635, v636, v637, v638, v639, v640, v642, v644; + v313 = a0["viewport"]; + v314 = v313.x | 0; + v315 = v313.y | 0; + v316 = "width" in v313 ? v313.width | 0 : v2.framebufferWidth - v314; + v317 = "height" in v313 ? v313.height | 0 : v2.framebufferHeight - v315; + v318 = v2.viewportWidth; + v2.viewportWidth = v316; + v319 = v2.viewportHeight; + v2.viewportHeight = v317; + v320 = v39[0]; + v39[0] = v314; + v321 = v39[1]; + v39[1] = v315; + v322 = v39[2]; + v39[2] = v316; + v323 = v39[3]; + v39[3] = v317; + v325 = v17[0]; + v17[0] = g324; + v327 = v17[1]; + v17[1] = g326; + v329 = v17[2]; + v17[2] = g328; + v331 = v17[3]; + v17[3] = g330; + v333 = v4.blend_enable; + v4.blend_enable = g332; + v335 = v21[0]; + v21[0] = g334; + v337 = v21[1]; + v21[1] = g336; + v339 = v21[2]; + v21[2] = g338; + v341 = v21[3]; + v21[3] = g340; + v343 = v4.depth_enable; + v4.depth_enable = g342; + v344 = a0["viewport"]; + v345 = v344.x | 0; + v346 = v344.y | 0; + v347 = "width" in v344 ? v344.width | 0 : v2.framebufferWidth - v345; + v348 = "height" in v344 ? v344.height | 0 : v2.framebufferHeight - v346; + v349 = v37[0]; + v37[0] = v345; + v350 = v37[1]; + v37[1] = v346; + v351 = v37[2]; + v37[2] = v347; + v352 = v37[3]; + v37[3] = v348; + v354 = v4.scissor_enable; + v4.scissor_enable = g353; + v356 = v4.stencil_enable; + v4.stencil_enable = g355; + v357 = v5.profile; + if (v357) { + v358 = performance.now(); + g48.count++; } - v5.blend_enable = g496; - v1.blendEquationSeparate(32774, 32774); - v20[0] = 32774; - v20[1] = 32774; - v1.blendFuncSeparate(770, 771, 773, 1); - v22[0] = 770; - v22[1] = 771; - v22[2] = 773; - v22[3] = 1; - if (g497) { - v1.enable(2929); + v359 = a0["elements"]; + v360 = null; + v361 = v16(v359); + if (v361) { + v360 = v7.createStream(v359); } else { - v1.disable(2929); + v360 = v7.getElements(v359); } - v5.depth_enable = g497; - if (g498) { - v1.enable(3089); + v362 = v6.elements; + v6.elements = v360; + v363 = a0["offset"]; + v364 = v6.offset; + v6.offset = v363; + v365 = a0["count"]; + v366 = v6.count; + v6.count = v365; + v368 = v6.primitive; + v6.primitive = g367; + v370 = v12[g369]; + v12[g369] = false; + v373 = v12[g372]; + v12[g372] = g371; + v374 = a0["opacity"]; + v376 = v12[g375]; + v12[g375] = v374; + v377 = g283.call(this, v2, a0, a2); + v379 = v12[g378]; + v12[g378] = v377; + v380 = v2["pixelRatio"]; + v382 = v12[g381]; + v12[g381] = v380; + v383 = a0["scale"]; + v385 = v12[g384]; + v12[g384] = v383; + v386 = a0["scaleFract"]; + v388 = v12[g387]; + v12[g387] = v386; + v389 = a0["translate"]; + v391 = v12[g390]; + v12[g390] = v389; + v392 = a0["translateFract"]; + v394 = v12[g393]; + v12[g393] = v392; + v395 = a0["markerTexture"]; + v397 = v12[g396]; + v12[g396] = v395; + v398 = g200.call(this, v2, a0, a2); + v399 = false; + v400 = 1; + v401 = 0; + v402 = 0; + v403 = 0; + v404 = 0; + v405 = null; + v406 = 0; + v407 = false; + v408 = 5126; + v409 = 0; + v410 = 0; + v411 = 0; + if (v16(v398)) { + v399 = true; + v405 = v8.createStream(34962, v398); + v408 = v405.dtype; } else { - v1.disable(3089); - } - v5.scissor_enable = g498; - v499 = v5.profile; - if (v499) { - v500 = performance.now(); - g48.count += a1; - } - v1.useProgram(g109.program); - v501 = v14.angle_instanced_arrays; - var v516, v517, v518, v519, v520, v521, v625, v626; - v11.setVAO(null); - v516 = g112.location; - v517 = v10[v516]; - if (!v517.buffer) { - v1.enableVertexAttribArray(v516); - } - if (v517.type !== 5126 || v517.size !== 2 || v517.buffer !== g111 || v517.normalized !== false || v517.offset !== 16 || v517.stride !== 24) { - v1.bindBuffer(34962, g111.buffer); - v1.vertexAttribPointer(v516, 2, 5126, false, 24, 16); - v517.type = 5126; - v517.size = 2; - v517.buffer = g111; - v517.normalized = false; - v517.offset = 16; - v517.stride = 24; - } - if (v517.divisor !== 0) { - v501.vertexAttribDivisorANGLE(v516, 0); - v517.divisor = 0; - } - v518 = g134.location; - v519 = v10[v518]; - if (!v519.buffer) { - v1.enableVertexAttribArray(v518); - } - if (v519.type !== 5126 || v519.size !== 2 || v519.buffer !== g111 || v519.normalized !== false || v519.offset !== 0 || v519.stride !== 24) { - v1.bindBuffer(34962, g111.buffer); - v1.vertexAttribPointer(v518, 2, 5126, false, 24, 0); - v519.type = 5126; - v519.size = 2; - v519.buffer = g111; - v519.normalized = false; - v519.offset = 0; - v519.stride = 24; - } - if (v519.divisor !== 0) { - v501.vertexAttribDivisorANGLE(v518, 0); - v519.divisor = 0; - } - v520 = g156.location; - v521 = v10[v520]; - if (!v521.buffer) { - v1.enableVertexAttribArray(v520); - } - if (v521.type !== 5126 || v521.size !== 2 || v521.buffer !== g111 || v521.normalized !== false || v521.offset !== 8 || v521.stride !== 24) { - v1.bindBuffer(34962, g111.buffer); - v1.vertexAttribPointer(v520, 2, 5126, false, 24, 8); - v521.type = 5126; - v521.size = 2; - v521.buffer = g111; - v521.normalized = false; - v521.offset = 8; - v521.stride = 24; - } - if (v521.divisor !== 0) { - v501.vertexAttribDivisorANGLE(v520, 0); - v521.divisor = 0; - } - v625 = v6.elements; - if (v625) { - v1.bindBuffer(34963, v625.buffer.buffer); - } else if (v11.currentVAO) { - v625 = v7.getElements(v11.currentVAO.elements); - if (v625) v1.bindBuffer(34963, v625.buffer.buffer); - } - v626 = v6.offset; - for (v502 = 0; v502 < a1; ++v502) { - v503 = a0[v502]; - var v504, v505, v506, v507, v508, v509, v510, v511, v512, v513, v514, v515, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541, v542, v543, v544, v545, v546, v547, v548, v549, v550, v551, v552, v553, v554, v555, v556, v557, v558, v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v571, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v595, v596, v597, v598, v599, v600, v601, v602, v603, v604, v605, v606, v607, v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v627; - v504 = v503["viewport"]; - v505 = v504.x | 0; - v506 = v504.y | 0; - v507 = "width" in v504 ? v504.width | 0 : v2.framebufferWidth - v505; - v508 = "height" in v504 ? v504.height | 0 : v2.framebufferHeight - v506; - v509 = v2.viewportWidth; - v2.viewportWidth = v507; - v510 = v2.viewportHeight; - v2.viewportHeight = v508; - v1.viewport(v505, v506, v507, v508); - v40[0] = v505; - v40[1] = v506; - v40[2] = v507; - v40[3] = v508; - v511 = v503["viewport"]; - v512 = v511.x | 0; - v513 = v511.y | 0; - v514 = "width" in v511 ? v511.width | 0 : v2.framebufferWidth - v512; - v515 = "height" in v511 ? v511.height | 0 : v2.framebufferHeight - v513; - v1.scissor(v512, v513, v514, v515); - v38[0] = v512; - v38[1] = v513; - v38[2] = v514; - v38[3] = v515; - v522 = g115.call(this, v2, v503, v502); - v49.offset = v522; - v523 = false; - v524 = 1; - v525 = 0; - v526 = 0; - v527 = 0; - v528 = 0; - v529 = null; - v530 = 0; - v531 = false; - v532 = 5126; - v533 = 0; - v534 = 0; - v535 = 0; - if (v16(v49)) { - v523 = true; - v529 = v8.createStream(34962, v49); - v532 = v529.dtype; - } else { - v529 = v8.getBuffer(v49); - if (v529) { - v532 = v529.dtype; - } else if ("constant" in v49) { - v524 = 2; - if (typeof v49.constant === "number") { - v525 = v49.constant; - v526 = v527 = v528 = 0; - } else { - v525 = v49.constant.length > 0 ? v49.constant[0] : 0; - v526 = v49.constant.length > 1 ? v49.constant[1] : 0; - v527 = v49.constant.length > 2 ? v49.constant[2] : 0; - v528 = v49.constant.length > 3 ? v49.constant[3] : 0; - } + v405 = v8.getBuffer(v398); + if (v405) { + v408 = v405.dtype; + } else if ("constant" in v398) { + v400 = 2; + if (typeof v398.constant === "number") { + v401 = v398.constant; + v402 = v403 = v404 = 0; } else { - if (v16(v49.buffer)) { - v529 = v8.createStream(34962, v49.buffer); - } else { - v529 = v8.getBuffer(v49.buffer); - } - v532 = "type" in v49 ? v46[v49.type] : v529.dtype; - v531 = !!v49.normalized; - v530 = v49.size | 0; - v533 = v49.offset | 0; - v534 = v49.stride | 0; - v535 = v49.divisor | 0; - } - } - v536 = g130.location; - v537 = v10[v536]; - if (v524 === 1) { - if (!v537.buffer) { - v1.enableVertexAttribArray(v536); - } - v538 = v530 || 4; - if (v537.type !== v532 || v537.size !== v538 || v537.buffer !== v529 || v537.normalized !== v531 || v537.offset !== v533 || v537.stride !== v534) { - v1.bindBuffer(34962, v529.buffer); - v1.vertexAttribPointer(v536, v538, v532, v531, v534, v533); - v537.type = v532; - v537.size = v538; - v537.buffer = v529; - v537.normalized = v531; - v537.offset = v533; - v537.stride = v534; - } - if (v537.divisor !== v535) { - v501.vertexAttribDivisorANGLE(v536, v535); - v537.divisor = v535; + v401 = v398.constant.length > 0 ? v398.constant[0] : 0; + v402 = v398.constant.length > 1 ? v398.constant[1] : 0; + v403 = v398.constant.length > 2 ? v398.constant[2] : 0; + v404 = v398.constant.length > 3 ? v398.constant[3] : 0; } } else { - if (v537.buffer) { - v1.disableVertexAttribArray(v536); - v537.buffer = null; - } - if (v537.x !== v525 || v537.y !== v526 || v537.z !== v527 || v537.w !== v528) { - v1.vertexAttrib4f(v536, v525, v526, v527, v528); - v537.x = v525; - v537.y = v526; - v537.z = v527; - v537.w = v528; + if (v16(v398.buffer)) { + v405 = v8.createStream(34962, v398.buffer); + } else { + v405 = v8.getBuffer(v398.buffer); } + v408 = "type" in v398 ? v46[v398.type] : v405.dtype; + v407 = !!v398.normalized; + v406 = v398.size | 0; + v409 = v398.offset | 0; + v410 = v398.stride | 0; + v411 = v398.divisor | 0; } - v539 = g137.call(this, v2, v503, v502); - v55.offset = v539; - v540 = false; - v541 = 1; - v542 = 0; - v543 = 0; - v544 = 0; - v545 = 0; - v546 = null; - v547 = 0; - v548 = false; - v549 = 5126; - v550 = 0; - v551 = 0; - v552 = 0; - if (v16(v55)) { - v540 = true; - v546 = v8.createStream(34962, v55); - v549 = v546.dtype; + } + v413 = g412.state; + g412.state = v400; + v414 = g412.x; + g412.x = v401; + v415 = g412.y; + g412.y = v402; + v416 = g412.z; + g412.z = v403; + v417 = g412.w; + g412.w = v404; + v418 = g412.buffer; + g412.buffer = v405; + v419 = g412.size; + g412.size = v406; + v420 = g412.normalized; + g412.normalized = v407; + v421 = g412.type; + g412.type = v408; + v422 = g412.offset; + g412.offset = v409; + v423 = g412.stride; + g412.stride = v410; + v424 = g412.divisor; + g412.divisor = v411; + v425 = g238.call(this, v2, a0, a2); + v426 = false; + v427 = 1; + v428 = 0; + v429 = 0; + v430 = 0; + v431 = 0; + v432 = null; + v433 = 0; + v434 = false; + v435 = 5126; + v436 = 0; + v437 = 0; + v438 = 0; + if (v16(v425)) { + v426 = true; + v432 = v8.createStream(34962, v425); + v435 = v432.dtype; + } else { + v432 = v8.getBuffer(v425); + if (v432) { + v435 = v432.dtype; + } else if ("constant" in v425) { + v427 = 2; + if (typeof v425.constant === "number") { + v428 = v425.constant; + v429 = v430 = v431 = 0; + } else { + v428 = v425.constant.length > 0 ? v425.constant[0] : 0; + v429 = v425.constant.length > 1 ? v425.constant[1] : 0; + v430 = v425.constant.length > 2 ? v425.constant[2] : 0; + v431 = v425.constant.length > 3 ? v425.constant[3] : 0; + } } else { - v546 = v8.getBuffer(v55); - if (v546) { - v549 = v546.dtype; - } else if ("constant" in v55) { - v541 = 2; - if (typeof v55.constant === "number") { - v542 = v55.constant; - v543 = v544 = v545 = 0; - } else { - v542 = v55.constant.length > 0 ? v55.constant[0] : 0; - v543 = v55.constant.length > 1 ? v55.constant[1] : 0; - v544 = v55.constant.length > 2 ? v55.constant[2] : 0; - v545 = v55.constant.length > 3 ? v55.constant[3] : 0; - } + if (v16(v425.buffer)) { + v432 = v8.createStream(34962, v425.buffer); } else { - if (v16(v55.buffer)) { - v546 = v8.createStream(34962, v55.buffer); - } else { - v546 = v8.getBuffer(v55.buffer); - } - v549 = "type" in v55 ? v46[v55.type] : v546.dtype; - v548 = !!v55.normalized; - v547 = v55.size | 0; - v550 = v55.offset | 0; - v551 = v55.stride | 0; - v552 = v55.divisor | 0; + v432 = v8.getBuffer(v425.buffer); } + v435 = "type" in v425 ? v46[v425.type] : v432.dtype; + v434 = !!v425.normalized; + v433 = v425.size | 0; + v436 = v425.offset | 0; + v437 = v425.stride | 0; + v438 = v425.divisor | 0; } - v553 = g152.location; - v554 = v10[v553]; - if (v541 === 1) { - if (!v554.buffer) { - v1.enableVertexAttribArray(v553); - } - v555 = v547 || 4; - if (v554.type !== v549 || v554.size !== v555 || v554.buffer !== v546 || v554.normalized !== v548 || v554.offset !== v550 || v554.stride !== v551) { - v1.bindBuffer(34962, v546.buffer); - v1.vertexAttribPointer(v553, v555, v549, v548, v551, v550); - v554.type = v549; - v554.size = v555; - v554.buffer = v546; - v554.normalized = v548; - v554.offset = v550; - v554.stride = v551; - } - if (v554.divisor !== v552) { - v501.vertexAttribDivisorANGLE(v553, v552); - v554.divisor = v552; + } + v440 = g439.state; + g439.state = v427; + v441 = g439.x; + g439.x = v428; + v442 = g439.y; + g439.y = v429; + v443 = g439.z; + g439.z = v430; + v444 = g439.w; + g439.w = v431; + v445 = g439.buffer; + g439.buffer = v432; + v446 = g439.size; + g439.size = v433; + v447 = g439.normalized; + g439.normalized = v434; + v448 = g439.type; + g439.type = v435; + v449 = g439.offset; + g439.offset = v436; + v450 = g439.stride; + g439.stride = v437; + v451 = g439.divisor; + g439.divisor = v438; + v452 = g219.call(this, v2, a0, a2); + v453 = false; + v454 = 1; + v455 = 0; + v456 = 0; + v457 = 0; + v458 = 0; + v459 = null; + v460 = 0; + v461 = false; + v462 = 5126; + v463 = 0; + v464 = 0; + v465 = 0; + if (v16(v452)) { + v453 = true; + v459 = v8.createStream(34962, v452); + v462 = v459.dtype; + } else { + v459 = v8.getBuffer(v452); + if (v459) { + v462 = v459.dtype; + } else if ("constant" in v452) { + v454 = 2; + if (typeof v452.constant === "number") { + v455 = v452.constant; + v456 = v457 = v458 = 0; + } else { + v455 = v452.constant.length > 0 ? v452.constant[0] : 0; + v456 = v452.constant.length > 1 ? v452.constant[1] : 0; + v457 = v452.constant.length > 2 ? v452.constant[2] : 0; + v458 = v452.constant.length > 3 ? v452.constant[3] : 0; } } else { - if (v554.buffer) { - v1.disableVertexAttribArray(v553); - v554.buffer = null; - } - if (v554.x !== v542 || v554.y !== v543 || v554.z !== v544 || v554.w !== v545) { - v1.vertexAttrib4f(v553, v542, v543, v544, v545); - v554.x = v542; - v554.y = v543; - v554.z = v544; - v554.w = v545; + if (v16(v452.buffer)) { + v459 = v8.createStream(34962, v452.buffer); + } else { + v459 = v8.getBuffer(v452.buffer); } + v462 = "type" in v452 ? v46[v452.type] : v459.dtype; + v461 = !!v452.normalized; + v460 = v452.size | 0; + v463 = v452.offset | 0; + v464 = v452.stride | 0; + v465 = v452.divisor | 0; } - v556 = g159.call(this, v2, v503, v502); - v51.offset = v556; - v557 = false; - v558 = 1; - v559 = 0; - v560 = 0; - v561 = 0; - v562 = 0; - v563 = null; - v564 = 0; - v565 = false; - v566 = 5126; - v567 = 0; - v568 = 0; - v569 = 0; - if (v16(v51)) { - v557 = true; - v563 = v8.createStream(34962, v51); - v566 = v563.dtype; + } + v467 = g466.state; + g466.state = v454; + v468 = g466.x; + g466.x = v455; + v469 = g466.y; + g466.y = v456; + v470 = g466.z; + g466.z = v457; + v471 = g466.w; + g466.w = v458; + v472 = g466.buffer; + g466.buffer = v459; + v473 = g466.size; + g466.size = v460; + v474 = g466.normalized; + g466.normalized = v461; + v475 = g466.type; + g466.type = v462; + v476 = g466.offset; + g466.offset = v463; + v477 = g466.stride; + g466.stride = v464; + v478 = g466.divisor; + g466.divisor = v465; + v479 = g257.call(this, v2, a0, a2); + v480 = false; + v481 = 1; + v482 = 0; + v483 = 0; + v484 = 0; + v485 = 0; + v486 = null; + v487 = 0; + v488 = false; + v489 = 5126; + v490 = 0; + v491 = 0; + v492 = 0; + if (v16(v479)) { + v480 = true; + v486 = v8.createStream(34962, v479); + v489 = v486.dtype; + } else { + v486 = v8.getBuffer(v479); + if (v486) { + v489 = v486.dtype; + } else if ("constant" in v479) { + v481 = 2; + if (typeof v479.constant === "number") { + v482 = v479.constant; + v483 = v484 = v485 = 0; + } else { + v482 = v479.constant.length > 0 ? v479.constant[0] : 0; + v483 = v479.constant.length > 1 ? v479.constant[1] : 0; + v484 = v479.constant.length > 2 ? v479.constant[2] : 0; + v485 = v479.constant.length > 3 ? v479.constant[3] : 0; + } } else { - v563 = v8.getBuffer(v51); - if (v563) { - v566 = v563.dtype; - } else if ("constant" in v51) { - v558 = 2; - if (typeof v51.constant === "number") { - v559 = v51.constant; - v560 = v561 = v562 = 0; - } else { - v559 = v51.constant.length > 0 ? v51.constant[0] : 0; - v560 = v51.constant.length > 1 ? v51.constant[1] : 0; - v561 = v51.constant.length > 2 ? v51.constant[2] : 0; - v562 = v51.constant.length > 3 ? v51.constant[3] : 0; - } + if (v16(v479.buffer)) { + v486 = v8.createStream(34962, v479.buffer); } else { - if (v16(v51.buffer)) { - v563 = v8.createStream(34962, v51.buffer); - } else { - v563 = v8.getBuffer(v51.buffer); - } - v566 = "type" in v51 ? v46[v51.type] : v563.dtype; - v565 = !!v51.normalized; - v564 = v51.size | 0; - v567 = v51.offset | 0; - v568 = v51.stride | 0; - v569 = v51.divisor | 0; + v486 = v8.getBuffer(v479.buffer); } + v489 = "type" in v479 ? v46[v479.type] : v486.dtype; + v488 = !!v479.normalized; + v487 = v479.size | 0; + v490 = v479.offset | 0; + v491 = v479.stride | 0; + v492 = v479.divisor | 0; } - v570 = g174.location; - v571 = v10[v570]; - if (v558 === 1) { - if (!v571.buffer) { - v1.enableVertexAttribArray(v570); - } - v572 = v564 || 2; - if (v571.type !== v566 || v571.size !== v572 || v571.buffer !== v563 || v571.normalized !== v565 || v571.offset !== v567 || v571.stride !== v568) { - v1.bindBuffer(34962, v563.buffer); - v1.vertexAttribPointer(v570, v572, v566, v565, v568, v567); - v571.type = v566; - v571.size = v572; - v571.buffer = v563; - v571.normalized = v565; - v571.offset = v567; - v571.stride = v568; - } - if (v571.divisor !== v569) { - v501.vertexAttribDivisorANGLE(v570, v569); - v571.divisor = v569; + } + v494 = g493.state; + g493.state = v481; + v495 = g493.x; + g493.x = v482; + v496 = g493.y; + g493.y = v483; + v497 = g493.z; + g493.z = v484; + v498 = g493.w; + g493.w = v485; + v499 = g493.buffer; + g493.buffer = v486; + v500 = g493.size; + g493.size = v487; + v501 = g493.normalized; + g493.normalized = v488; + v502 = g493.type; + g493.type = v489; + v503 = g493.offset; + g493.offset = v490; + v504 = g493.stride; + g493.stride = v491; + v505 = g493.divisor; + g493.divisor = v492; + v506 = g181.call(this, v2, a0, a2); + v507 = false; + v508 = 1; + v509 = 0; + v510 = 0; + v511 = 0; + v512 = 0; + v513 = null; + v514 = 0; + v515 = false; + v516 = 5126; + v517 = 0; + v518 = 0; + v519 = 0; + if (v16(v506)) { + v507 = true; + v513 = v8.createStream(34962, v506); + v516 = v513.dtype; + } else { + v513 = v8.getBuffer(v506); + if (v513) { + v516 = v513.dtype; + } else if ("constant" in v506) { + v508 = 2; + if (typeof v506.constant === "number") { + v509 = v506.constant; + v510 = v511 = v512 = 0; + } else { + v509 = v506.constant.length > 0 ? v506.constant[0] : 0; + v510 = v506.constant.length > 1 ? v506.constant[1] : 0; + v511 = v506.constant.length > 2 ? v506.constant[2] : 0; + v512 = v506.constant.length > 3 ? v506.constant[3] : 0; } } else { - if (v571.buffer) { - v1.disableVertexAttribArray(v570); - v571.buffer = null; - } - if (v571.x !== v559 || v571.y !== v560 || v571.z !== v561 || v571.w !== v562) { - v1.vertexAttrib4f(v570, v559, v560, v561, v562); - v571.x = v559; - v571.y = v560; - v571.z = v561; - v571.w = v562; + if (v16(v506.buffer)) { + v513 = v8.createStream(34962, v506.buffer); + } else { + v513 = v8.getBuffer(v506.buffer); } + v516 = "type" in v506 ? v46[v506.type] : v513.dtype; + v515 = !!v506.normalized; + v514 = v506.size | 0; + v517 = v506.offset | 0; + v518 = v506.stride | 0; + v519 = v506.divisor | 0; } - v573 = g178.call(this, v2, v503, v502); - v53.offset = v573; - v574 = false; - v575 = 1; - v576 = 0; - v577 = 0; - v578 = 0; - v579 = 0; - v580 = null; - v581 = 0; - v582 = false; - v583 = 5126; - v584 = 0; - v585 = 0; - v586 = 0; - if (v16(v53)) { - v574 = true; - v580 = v8.createStream(34962, v53); - v583 = v580.dtype; + } + v521 = g520.state; + g520.state = v508; + v522 = g520.x; + g520.x = v509; + v523 = g520.y; + g520.y = v510; + v524 = g520.z; + g520.z = v511; + v525 = g520.w; + g520.w = v512; + v526 = g520.buffer; + g520.buffer = v513; + v527 = g520.size; + g520.size = v514; + v528 = g520.normalized; + g520.normalized = v515; + v529 = g520.type; + g520.type = v516; + v530 = g520.offset; + g520.offset = v517; + v531 = g520.stride; + g520.stride = v518; + v532 = g520.divisor; + g520.divisor = v519; + v533 = g124.call(this, v2, a0, a2); + v534 = false; + v535 = 1; + v536 = 0; + v537 = 0; + v538 = 0; + v539 = 0; + v540 = null; + v541 = 0; + v542 = false; + v543 = 5126; + v544 = 0; + v545 = 0; + v546 = 0; + if (v16(v533)) { + v534 = true; + v540 = v8.createStream(34962, v533); + v543 = v540.dtype; + } else { + v540 = v8.getBuffer(v533); + if (v540) { + v543 = v540.dtype; + } else if ("constant" in v533) { + v535 = 2; + if (typeof v533.constant === "number") { + v536 = v533.constant; + v537 = v538 = v539 = 0; + } else { + v536 = v533.constant.length > 0 ? v533.constant[0] : 0; + v537 = v533.constant.length > 1 ? v533.constant[1] : 0; + v538 = v533.constant.length > 2 ? v533.constant[2] : 0; + v539 = v533.constant.length > 3 ? v533.constant[3] : 0; + } } else { - v580 = v8.getBuffer(v53); - if (v580) { - v583 = v580.dtype; - } else if ("constant" in v53) { - v575 = 2; - if (typeof v53.constant === "number") { - v576 = v53.constant; - v577 = v578 = v579 = 0; - } else { - v576 = v53.constant.length > 0 ? v53.constant[0] : 0; - v577 = v53.constant.length > 1 ? v53.constant[1] : 0; - v578 = v53.constant.length > 2 ? v53.constant[2] : 0; - v579 = v53.constant.length > 3 ? v53.constant[3] : 0; - } + if (v16(v533.buffer)) { + v540 = v8.createStream(34962, v533.buffer); } else { - if (v16(v53.buffer)) { - v580 = v8.createStream(34962, v53.buffer); - } else { - v580 = v8.getBuffer(v53.buffer); - } - v583 = "type" in v53 ? v46[v53.type] : v580.dtype; - v582 = !!v53.normalized; - v581 = v53.size | 0; - v584 = v53.offset | 0; - v585 = v53.stride | 0; - v586 = v53.divisor | 0; + v540 = v8.getBuffer(v533.buffer); } + v543 = "type" in v533 ? v46[v533.type] : v540.dtype; + v542 = !!v533.normalized; + v541 = v533.size | 0; + v544 = v533.offset | 0; + v545 = v533.stride | 0; + v546 = v533.divisor | 0; } - v587 = g193.location; - v588 = v10[v587]; - if (v575 === 1) { - if (!v588.buffer) { - v1.enableVertexAttribArray(v587); - } - v589 = v581 || 2; - if (v588.type !== v583 || v588.size !== v589 || v588.buffer !== v580 || v588.normalized !== v582 || v588.offset !== v584 || v588.stride !== v585) { - v1.bindBuffer(34962, v580.buffer); - v1.vertexAttribPointer(v587, v589, v583, v582, v585, v584); - v588.type = v583; - v588.size = v589; - v588.buffer = v580; - v588.normalized = v582; - v588.offset = v584; - v588.stride = v585; - } - if (v588.divisor !== v586) { - v501.vertexAttribDivisorANGLE(v587, v586); - v588.divisor = v586; + } + v548 = g547.state; + g547.state = v535; + v549 = g547.x; + g547.x = v536; + v550 = g547.y; + g547.y = v537; + v551 = g547.z; + g547.z = v538; + v552 = g547.w; + g547.w = v539; + v553 = g547.buffer; + g547.buffer = v540; + v554 = g547.size; + g547.size = v541; + v555 = g547.normalized; + g547.normalized = v542; + v556 = g547.type; + g547.type = v543; + v557 = g547.offset; + g547.offset = v544; + v558 = g547.stride; + g547.stride = v545; + v559 = g547.divisor; + g547.divisor = v546; + v560 = g143.call(this, v2, a0, a2); + v561 = false; + v562 = 1; + v563 = 0; + v564 = 0; + v565 = 0; + v566 = 0; + v567 = null; + v568 = 0; + v569 = false; + v570 = 5126; + v571 = 0; + v572 = 0; + v573 = 0; + if (v16(v560)) { + v561 = true; + v567 = v8.createStream(34962, v560); + v570 = v567.dtype; + } else { + v567 = v8.getBuffer(v560); + if (v567) { + v570 = v567.dtype; + } else if ("constant" in v560) { + v562 = 2; + if (typeof v560.constant === "number") { + v563 = v560.constant; + v564 = v565 = v566 = 0; + } else { + v563 = v560.constant.length > 0 ? v560.constant[0] : 0; + v564 = v560.constant.length > 1 ? v560.constant[1] : 0; + v565 = v560.constant.length > 2 ? v560.constant[2] : 0; + v566 = v560.constant.length > 3 ? v560.constant[3] : 0; } } else { - if (v588.buffer) { - v1.disableVertexAttribArray(v587); - v588.buffer = null; - } - if (v588.x !== v576 || v588.y !== v577 || v588.z !== v578 || v588.w !== v579) { - v1.vertexAttrib4f(v587, v576, v577, v578, v579); - v588.x = v576; - v588.y = v577; - v588.z = v578; - v588.w = v579; + if (v16(v560.buffer)) { + v567 = v8.createStream(34962, v560.buffer); + } else { + v567 = v8.getBuffer(v560.buffer); } + v570 = "type" in v560 ? v46[v560.type] : v567.dtype; + v569 = !!v560.normalized; + v568 = v560.size | 0; + v571 = v560.offset | 0; + v572 = v560.stride | 0; + v573 = v560.divisor | 0; } - v590 = v503["capSize"]; - if (!v502 || v591 !== v590) { - v591 = v590; - v1.uniform1f(g197.location, v590); - } - v592 = v503["lineWidth"]; - if (!v502 || v593 !== v592) { - v593 = v592; - v1.uniform1f(g199.location, v592); - } - v594 = v503["opacity"]; - if (!v502 || v595 !== v594) { - v595 = v594; - v1.uniform1f(g201.location, v594); - } - v596 = v503["scale"]; - v597 = v596[0]; - v599 = v596[1]; - if (!v502 || v598 !== v597 || v600 !== v599) { - v598 = v597; - v600 = v599; - v1.uniform2f(g203.location, v597, v599); - } - v601 = v503["scaleFract"]; - v602 = v601[0]; - v604 = v601[1]; - if (!v502 || v603 !== v602 || v605 !== v604) { - v603 = v602; - v605 = v604; - v1.uniform2f(g207.location, v602, v604); - } - v606 = v503["translate"]; - v607 = v606[0]; - v609 = v606[1]; - if (!v502 || v608 !== v607 || v610 !== v609) { - v608 = v607; - v610 = v609; - v1.uniform2f(g211.location, v607, v609); - } - v611 = v503["translateFract"]; - v612 = v611[0]; - v614 = v611[1]; - if (!v502 || v613 !== v612 || v615 !== v614) { - v613 = v612; - v615 = v614; - v1.uniform2f(g215.location, v612, v614); - } - v616 = g220.call(this, v2, v503, v502); - v617 = v616[0]; - v619 = v616[1]; - v621 = v616[2]; - v623 = v616[3]; - if (!v502 || v618 !== v617 || v620 !== v619 || v622 !== v621 || v624 !== v623) { - v618 = v617; - v620 = v619; - v622 = v621; - v624 = v623; - v1.uniform4f(g219.location, v617, v619, v621, v623); - } - v627 = v503["count"]; - if (v627 > 0) { - if (v625) { - v501.drawElementsInstancedANGLE(4, 36, v625.type, v626 << (v625.type - 5121 >> 1), v627); + } + v575 = g574.state; + g574.state = v562; + v576 = g574.x; + g574.x = v563; + v577 = g574.y; + g574.y = v564; + v578 = g574.z; + g574.z = v565; + v579 = g574.w; + g574.w = v566; + v580 = g574.buffer; + g574.buffer = v567; + v581 = g574.size; + g574.size = v568; + v582 = g574.normalized; + g574.normalized = v569; + v583 = g574.type; + g574.type = v570; + v584 = g574.offset; + g574.offset = v571; + v585 = g574.stride; + g574.stride = v572; + v586 = g574.divisor; + g574.divisor = v573; + v587 = g105.call(this, v2, a0, a2); + v588 = false; + v589 = 1; + v590 = 0; + v591 = 0; + v592 = 0; + v593 = 0; + v594 = null; + v595 = 0; + v596 = false; + v597 = 5126; + v598 = 0; + v599 = 0; + v600 = 0; + if (v16(v587)) { + v588 = true; + v594 = v8.createStream(34962, v587); + v597 = v594.dtype; + } else { + v594 = v8.getBuffer(v587); + if (v594) { + v597 = v594.dtype; + } else if ("constant" in v587) { + v589 = 2; + if (typeof v587.constant === "number") { + v590 = v587.constant; + v591 = v592 = v593 = 0; } else { - v501.drawArraysInstancedANGLE(4, v626, 36, v627); + v590 = v587.constant.length > 0 ? v587.constant[0] : 0; + v591 = v587.constant.length > 1 ? v587.constant[1] : 0; + v592 = v587.constant.length > 2 ? v587.constant[2] : 0; + v593 = v587.constant.length > 3 ? v587.constant[3] : 0; } - } else if (v627 < 0) { - if (v625) { - v1.drawElements(4, 36, v625.type, v626 << (v625.type - 5121 >> 1)); + } else { + if (v16(v587.buffer)) { + v594 = v8.createStream(34962, v587.buffer); } else { - v1.drawArrays(4, v626, 36); + v594 = v8.getBuffer(v587.buffer); } + v597 = "type" in v587 ? v46[v587.type] : v594.dtype; + v596 = !!v587.normalized; + v595 = v587.size | 0; + v598 = v587.offset | 0; + v599 = v587.stride | 0; + v600 = v587.divisor | 0; } - v2.viewportWidth = v509; - v2.viewportHeight = v510; - if (v523) { - v8.destroyStream(v529); - } - if (v540) { - v8.destroyStream(v546); - } - if (v557) { - v8.destroyStream(v563); - } - if (v574) { - v8.destroyStream(v580); + } + v602 = g601.state; + g601.state = v589; + v603 = g601.x; + g601.x = v590; + v604 = g601.y; + g601.y = v591; + v605 = g601.z; + g601.z = v592; + v606 = g601.w; + g601.w = v593; + v607 = g601.buffer; + g601.buffer = v594; + v608 = g601.size; + g601.size = v595; + v609 = g601.normalized; + g601.normalized = v596; + v610 = g601.type; + g601.type = v597; + v611 = g601.offset; + g601.offset = v598; + v612 = g601.stride; + g601.stride = v599; + v613 = g601.divisor; + g601.divisor = v600; + v614 = g162.call(this, v2, a0, a2); + v615 = false; + v616 = 1; + v617 = 0; + v618 = 0; + v619 = 0; + v620 = 0; + v621 = null; + v622 = 0; + v623 = false; + v624 = 5126; + v625 = 0; + v626 = 0; + v627 = 0; + if (v16(v614)) { + v615 = true; + v621 = v8.createStream(34962, v614); + v624 = v621.dtype; + } else { + v621 = v8.getBuffer(v614); + if (v621) { + v624 = v621.dtype; + } else if ("constant" in v614) { + v616 = 2; + if (typeof v614.constant === "number") { + v617 = v614.constant; + v618 = v619 = v620 = 0; + } else { + v617 = v614.constant.length > 0 ? v614.constant[0] : 0; + v618 = v614.constant.length > 1 ? v614.constant[1] : 0; + v619 = v614.constant.length > 2 ? v614.constant[2] : 0; + v620 = v614.constant.length > 3 ? v614.constant[3] : 0; + } + } else { + if (v16(v614.buffer)) { + v621 = v8.createStream(34962, v614.buffer); + } else { + v621 = v8.getBuffer(v614.buffer); + } + v624 = "type" in v614 ? v46[v614.type] : v621.dtype; + v623 = !!v614.normalized; + v622 = v614.size | 0; + v625 = v614.offset | 0; + v626 = v614.stride | 0; + v627 = v614.divisor | 0; } } + v629 = g628.state; + g628.state = v616; + v630 = g628.x; + g628.x = v617; + v631 = g628.y; + g628.y = v618; + v632 = g628.z; + g628.z = v619; + v633 = g628.w; + g628.w = v620; + v634 = g628.buffer; + g628.buffer = v621; + v635 = g628.size; + g628.size = v622; + v636 = g628.normalized; + g628.normalized = v623; + v637 = g628.type; + g628.type = v624; + v638 = g628.offset; + g628.offset = v625; + v639 = g628.stride; + g628.stride = v626; + v640 = g628.divisor; + g628.divisor = v627; + v642 = v9.vert; + v9.vert = g641; + v644 = v9.frag; + v9.frag = g643; v5.dirty = true; - v11.setVAO(null); - if (v499) { - g48.cpuTime += performance.now() - v500; + a1(v2, a0, a2); + v2.viewportWidth = v318; + v2.viewportHeight = v319; + v39[0] = v320; + v39[1] = v321; + v39[2] = v322; + v39[3] = v323; + v17[0] = v325; + v17[1] = v327; + v17[2] = v329; + v17[3] = v331; + v4.blend_enable = v333; + v21[0] = v335; + v21[1] = v337; + v21[2] = v339; + v21[3] = v341; + v4.depth_enable = v343; + v37[0] = v349; + v37[1] = v350; + v37[2] = v351; + v37[3] = v352; + v4.scissor_enable = v354; + v4.stencil_enable = v356; + if (v357) { + g48.cpuTime += performance.now() - v358; } - } - }; - }; - } - }); - - // src/generated/regl-codegen/8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034 - var require_aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034 = __commonJS({ - "src/generated/regl-codegen/8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034"(exports, module) { - module.exports = function anonymous(g0, g48, g99, g100, g101, g104, g120, g138, g156, g174, g178, g180, g181, g184, g185, g189, g190, g194, g196, g197, g199, g205, g206, g208, g210, g214, g218, g222, g243, g245, g247, g249, g251, g253, g255, g257, g259, g261, g263, g271, g274, g277, g280, g283, g286, g289, g292, g295, g298, g301, g304, g307, g310, g326, g353, g380, g407, g420, g422, g472, g473, g474) { - "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50; - v1 = g0.gl; - v2 = g0.context; - v3 = g0.strings; - v4 = g0.next; - v5 = g0.current; - v6 = g0.draw; - v7 = g0.elements; - v8 = g0.buffer; - v9 = g0.shader; - v10 = g0.attributes; - v11 = g0.vao; - v12 = g0.uniforms; - v13 = g0.framebuffer; - v14 = g0.extensions; - v15 = g0.timer; - v16 = g0.isBufferArgs; - v17 = v4.blend_color; - v18 = v5.blend_color; - v19 = v4.blend_equation; - v20 = v5.blend_equation; - v21 = v4.blend_func; - v22 = v5.blend_func; - v23 = v4.depth_range; - v24 = v5.depth_range; - v25 = v4.colorMask; - v26 = v5.colorMask; - v27 = v4.polygonOffset_offset; - v28 = v5.polygonOffset_offset; - v29 = v4.sample_coverage; - v30 = v5.sample_coverage; - v31 = v4.stencil_func; - v32 = v5.stencil_func; - v33 = v4.stencil_opFront; - v34 = v5.stencil_opFront; - v35 = v4.stencil_opBack; - v36 = v5.stencil_opBack; - v37 = v4.scissor_box; - v38 = v5.scissor_box; - v39 = v4.viewport; - v40 = v5.viewport; - v41 = { - "points": 0, - "point": 0, - "lines": 1, - "line": 1, - "triangles": 4, - "triangle": 4, - "line loop": 2, - "line strip": 3, - "triangle strip": 5, - "triangle fan": 6 - }; - v42 = { - "never": 512, - "less": 513, - "<": 513, - "equal": 514, - "=": 514, - "==": 514, - "===": 514, - "lequal": 515, - "<=": 515, - "greater": 516, - ">": 516, - "notequal": 517, - "!=": 517, - "!==": 517, - "gequal": 518, - ">=": 518, - "always": 519 - }; - v43 = { - "0": 0, - "1": 1, - "zero": 0, - "one": 1, - "src color": 768, - "one minus src color": 769, - "src alpha": 770, - "one minus src alpha": 771, - "dst color": 774, - "one minus dst color": 775, - "dst alpha": 772, - "one minus dst alpha": 773, - "constant color": 32769, - "one minus constant color": 32770, - "constant alpha": 32771, - "one minus constant alpha": 32772, - "src alpha saturate": 776 - }; - v44 = { - "add": 32774, - "subtract": 32778, - "reverse subtract": 32779 - }; - v45 = { - "0": 0, - "zero": 0, - "keep": 7680, - "replace": 7681, - "increment": 7682, - "decrement": 7683, - "increment wrap": 34055, - "decrement wrap": 34056, - "invert": 5386 - }; - v46 = { - "int8": 5120, - "int16": 5122, - "int32": 5124, - "uint8": 5121, - "uint16": 5123, - "uint32": 5125, - "float": 5126, - "float32": 5126 - }; - v47 = { - "cw": 2304, - "ccw": 2305 - }; - v49 = {}; - v49.offset = 4; - v49.stride = 8; - v50 = {}; - v50.offset = 0; - v50.stride = 8; - return { - "draw": function(a0) { - var v51, v52, v92, v93, v94, v95, v96, v97, v98, v102, v103, v105, v106, v107, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v121, v122, v123, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v139, v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v175, v176, v177, v179, v182, v183, v186, v187, v188, v191, v192, v193, v195, v198, v200, v201, v202, v203, v204, v207, v209, v211, v212, v213, v215, v216, v217, v219, v220, v221, v223, v224, v225, v226, v227, v228, v229, v230, v231; - v51 = v14.angle_instanced_arrays; - v52 = v13.next; - if (v52 !== v13.cur) { - if (v52) { - v1.bindFramebuffer(36160, v52.framebuffer); + if (v361) { + v7.destroyStream(v360); + } + v6.elements = v362; + v6.offset = v364; + v6.count = v366; + v6.primitive = v368; + v12[g369] = v370; + v12[g372] = v373; + v12[g375] = v376; + v12[g378] = v379; + v12[g381] = v382; + v12[g384] = v385; + v12[g387] = v388; + v12[g390] = v391; + v12[g393] = v394; + v12[g396] = v397; + if (v399) { + v8.destroyStream(v405); + } + g412.state = v413; + g412.x = v414; + g412.y = v415; + g412.z = v416; + g412.w = v417; + g412.buffer = v418; + g412.size = v419; + g412.normalized = v420; + g412.type = v421; + g412.offset = v422; + g412.stride = v423; + g412.divisor = v424; + if (v426) { + v8.destroyStream(v432); + } + g439.state = v440; + g439.x = v441; + g439.y = v442; + g439.z = v443; + g439.w = v444; + g439.buffer = v445; + g439.size = v446; + g439.normalized = v447; + g439.type = v448; + g439.offset = v449; + g439.stride = v450; + g439.divisor = v451; + if (v453) { + v8.destroyStream(v459); + } + g466.state = v467; + g466.x = v468; + g466.y = v469; + g466.z = v470; + g466.w = v471; + g466.buffer = v472; + g466.size = v473; + g466.normalized = v474; + g466.type = v475; + g466.offset = v476; + g466.stride = v477; + g466.divisor = v478; + if (v480) { + v8.destroyStream(v486); + } + g493.state = v494; + g493.x = v495; + g493.y = v496; + g493.z = v497; + g493.w = v498; + g493.buffer = v499; + g493.size = v500; + g493.normalized = v501; + g493.type = v502; + g493.offset = v503; + g493.stride = v504; + g493.divisor = v505; + if (v507) { + v8.destroyStream(v513); + } + g520.state = v521; + g520.x = v522; + g520.y = v523; + g520.z = v524; + g520.w = v525; + g520.buffer = v526; + g520.size = v527; + g520.normalized = v528; + g520.type = v529; + g520.offset = v530; + g520.stride = v531; + g520.divisor = v532; + if (v534) { + v8.destroyStream(v540); + } + g547.state = v548; + g547.x = v549; + g547.y = v550; + g547.z = v551; + g547.w = v552; + g547.buffer = v553; + g547.size = v554; + g547.normalized = v555; + g547.type = v556; + g547.offset = v557; + g547.stride = v558; + g547.divisor = v559; + if (v561) { + v8.destroyStream(v567); + } + g574.state = v575; + g574.x = v576; + g574.y = v577; + g574.z = v578; + g574.w = v579; + g574.buffer = v580; + g574.size = v581; + g574.normalized = v582; + g574.type = v583; + g574.offset = v584; + g574.stride = v585; + g574.divisor = v586; + if (v588) { + v8.destroyStream(v594); + } + g601.state = v602; + g601.x = v603; + g601.y = v604; + g601.z = v605; + g601.w = v606; + g601.buffer = v607; + g601.size = v608; + g601.normalized = v609; + g601.type = v610; + g601.offset = v611; + g601.stride = v612; + g601.divisor = v613; + if (v615) { + v8.destroyStream(v621); + } + g628.state = v629; + g628.x = v630; + g628.y = v631; + g628.z = v632; + g628.w = v633; + g628.buffer = v634; + g628.size = v635; + g628.normalized = v636; + g628.type = v637; + g628.offset = v638; + g628.stride = v639; + g628.divisor = v640; + v9.vert = v642; + v9.frag = v644; + v5.dirty = true; + }, + "batch": function(a0, a1) { + var v645, v646, v685, v686, v687, v688, v689; + v645 = v14.angle_instanced_arrays; + v646 = v13.next; + if (v646 !== v13.cur) { + if (v646) { + v1.bindFramebuffer(36160, v646.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v52; + v13.cur = v646; } if (v5.dirty) { - var v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91; - v53 = v4.dither; - if (v53 !== v5.dither) { - if (v53) { + var v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677, v678, v679, v680; + v647 = v4.dither; + if (v647 !== v5.dither) { + if (v647) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v53; + v5.dither = v647; } - v54 = v19[0]; - v55 = v19[1]; - if (v54 !== v20[0] || v55 !== v20[1]) { - v1.blendEquationSeparate(v54, v55); - v20[0] = v54; - v20[1] = v55; + v648 = v19[0]; + v649 = v19[1]; + if (v648 !== v20[0] || v649 !== v20[1]) { + v1.blendEquationSeparate(v648, v649); + v20[0] = v648; + v20[1] = v649; } - v56 = v4.depth_func; - if (v56 !== v5.depth_func) { - v1.depthFunc(v56); - v5.depth_func = v56; + v650 = v4.depth_func; + if (v650 !== v5.depth_func) { + v1.depthFunc(v650); + v5.depth_func = v650; } - v57 = v23[0]; - v58 = v23[1]; - if (v57 !== v24[0] || v58 !== v24[1]) { - v1.depthRange(v57, v58); - v24[0] = v57; - v24[1] = v58; + v651 = v23[0]; + v652 = v23[1]; + if (v651 !== v24[0] || v652 !== v24[1]) { + v1.depthRange(v651, v652); + v24[0] = v651; + v24[1] = v652; } - v59 = v4.depth_mask; - if (v59 !== v5.depth_mask) { - v1.depthMask(v59); - v5.depth_mask = v59; + v653 = v4.depth_mask; + if (v653 !== v5.depth_mask) { + v1.depthMask(v653); + v5.depth_mask = v653; } - v60 = v25[0]; - v61 = v25[1]; - v62 = v25[2]; - v63 = v25[3]; - if (v60 !== v26[0] || v61 !== v26[1] || v62 !== v26[2] || v63 !== v26[3]) { - v1.colorMask(v60, v61, v62, v63); - v26[0] = v60; - v26[1] = v61; - v26[2] = v62; - v26[3] = v63; + v654 = v25[0]; + v655 = v25[1]; + v656 = v25[2]; + v657 = v25[3]; + if (v654 !== v26[0] || v655 !== v26[1] || v656 !== v26[2] || v657 !== v26[3]) { + v1.colorMask(v654, v655, v656, v657); + v26[0] = v654; + v26[1] = v655; + v26[2] = v656; + v26[3] = v657; } - v64 = v4.cull_enable; - if (v64 !== v5.cull_enable) { - if (v64) { + v658 = v4.cull_enable; + if (v658 !== v5.cull_enable) { + if (v658) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v64; + v5.cull_enable = v658; } - v65 = v4.cull_face; - if (v65 !== v5.cull_face) { - v1.cullFace(v65); - v5.cull_face = v65; + v659 = v4.cull_face; + if (v659 !== v5.cull_face) { + v1.cullFace(v659); + v5.cull_face = v659; } - v66 = v4.frontFace; - if (v66 !== v5.frontFace) { - v1.frontFace(v66); - v5.frontFace = v66; + v660 = v4.frontFace; + if (v660 !== v5.frontFace) { + v1.frontFace(v660); + v5.frontFace = v660; } - v67 = v4.lineWidth; - if (v67 !== v5.lineWidth) { - v1.lineWidth(v67); - v5.lineWidth = v67; + v661 = v4.lineWidth; + if (v661 !== v5.lineWidth) { + v1.lineWidth(v661); + v5.lineWidth = v661; } - v68 = v4.polygonOffset_enable; - if (v68 !== v5.polygonOffset_enable) { - if (v68) { + v662 = v4.polygonOffset_enable; + if (v662 !== v5.polygonOffset_enable) { + if (v662) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v68; + v5.polygonOffset_enable = v662; } - v69 = v27[0]; - v70 = v27[1]; - if (v69 !== v28[0] || v70 !== v28[1]) { - v1.polygonOffset(v69, v70); - v28[0] = v69; - v28[1] = v70; + v663 = v27[0]; + v664 = v27[1]; + if (v663 !== v28[0] || v664 !== v28[1]) { + v1.polygonOffset(v663, v664); + v28[0] = v663; + v28[1] = v664; } - v71 = v4.sample_alpha; - if (v71 !== v5.sample_alpha) { - if (v71) { + v665 = v4.sample_alpha; + if (v665 !== v5.sample_alpha) { + if (v665) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v71; + v5.sample_alpha = v665; } - v72 = v4.sample_enable; - if (v72 !== v5.sample_enable) { - if (v72) { + v666 = v4.sample_enable; + if (v666 !== v5.sample_enable) { + if (v666) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v72; - } - v73 = v29[0]; - v74 = v29[1]; - if (v73 !== v30[0] || v74 !== v30[1]) { - v1.sampleCoverage(v73, v74); - v30[0] = v73; - v30[1] = v74; - } - v75 = v4.stencil_mask; - if (v75 !== v5.stencil_mask) { - v1.stencilMask(v75); - v5.stencil_mask = v75; + v5.sample_enable = v666; } - v76 = v31[0]; - v77 = v31[1]; - v78 = v31[2]; - if (v76 !== v32[0] || v77 !== v32[1] || v78 !== v32[2]) { - v1.stencilFunc(v76, v77, v78); - v32[0] = v76; - v32[1] = v77; - v32[2] = v78; + v667 = v29[0]; + v668 = v29[1]; + if (v667 !== v30[0] || v668 !== v30[1]) { + v1.sampleCoverage(v667, v668); + v30[0] = v667; + v30[1] = v668; } - v79 = v33[0]; - v80 = v33[1]; - v81 = v33[2]; - v82 = v33[3]; - if (v79 !== v34[0] || v80 !== v34[1] || v81 !== v34[2] || v82 !== v34[3]) { - v1.stencilOpSeparate(v79, v80, v81, v82); - v34[0] = v79; - v34[1] = v80; - v34[2] = v81; - v34[3] = v82; + v669 = v4.stencil_mask; + if (v669 !== v5.stencil_mask) { + v1.stencilMask(v669); + v5.stencil_mask = v669; } - v83 = v35[0]; - v84 = v35[1]; - v85 = v35[2]; - v86 = v35[3]; - if (v83 !== v36[0] || v84 !== v36[1] || v85 !== v36[2] || v86 !== v36[3]) { - v1.stencilOpSeparate(v83, v84, v85, v86); - v36[0] = v83; - v36[1] = v84; - v36[2] = v85; - v36[3] = v86; + v670 = v31[0]; + v671 = v31[1]; + v672 = v31[2]; + if (v670 !== v32[0] || v671 !== v32[1] || v672 !== v32[2]) { + v1.stencilFunc(v670, v671, v672); + v32[0] = v670; + v32[1] = v671; + v32[2] = v672; } - v87 = v4.scissor_enable; - if (v87 !== v5.scissor_enable) { - if (v87) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v87; + v673 = v33[0]; + v674 = v33[1]; + v675 = v33[2]; + v676 = v33[3]; + if (v673 !== v34[0] || v674 !== v34[1] || v675 !== v34[2] || v676 !== v34[3]) { + v1.stencilOpSeparate(v673, v674, v675, v676); + v34[0] = v673; + v34[1] = v674; + v34[2] = v675; + v34[3] = v676; } - v88 = v37[0]; - v89 = v37[1]; - v90 = v37[2]; - v91 = v37[3]; - if (v88 !== v38[0] || v89 !== v38[1] || v90 !== v38[2] || v91 !== v38[3]) { - v1.scissor(v88, v89, v90, v91); - v38[0] = v88; - v38[1] = v89; - v38[2] = v90; - v38[3] = v91; + v677 = v35[0]; + v678 = v35[1]; + v679 = v35[2]; + v680 = v35[3]; + if (v677 !== v36[0] || v678 !== v36[1] || v679 !== v36[2] || v680 !== v36[3]) { + v1.stencilOpSeparate(v677, v678, v679, v680); + v36[0] = v677; + v36[1] = v678; + v36[2] = v679; + v36[3] = v680; } } - v92 = this["viewport"]; - v93 = v92.x | 0; - v94 = v92.y | 0; - v95 = "width" in v92 ? v92.width | 0 : v2.framebufferWidth - v93; - v96 = "height" in v92 ? v92.height | 0 : v2.framebufferHeight - v94; - v97 = v2.viewportWidth; - v2.viewportWidth = v95; - v98 = v2.viewportHeight; - v2.viewportHeight = v96; - v1.viewport(v93, v94, v95, v96); - v40[0] = v93; - v40[1] = v94; - v40[2] = v95; - v40[3] = v96; v1.blendColor(0, 0, 0, 1); v18[0] = 0; v18[1] = 0; v18[2] = 0; v18[3] = 1; - if (g99) { + if (g681) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g99; + v5.blend_enable = g681; v1.blendFuncSeparate(770, 771, 773, 1); v22[0] = 770; v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g100) { + if (g682) { v1.enable(2929); } else { v1.disable(2929); } - v5.depth_enable = g100; - if (g101) { + v5.depth_enable = g682; + if (g683) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = g683; + if (g684) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = g101; - v102 = v5.profile; - if (v102) { - v103 = performance.now(); - g48.count++; + v5.stencil_enable = g684; + v685 = v5.profile; + if (v685) { + v686 = performance.now(); + g48.count += a1; } - v1.useProgram(g104.program); - v105 = v14.angle_instanced_arrays; + v1.useProgram(g103.program); + v687 = v14.angle_instanced_arrays; + var v891; v11.setVAO(null); - v106 = this["charBuffer"]; - v107 = false; - v108 = 1; - v109 = 0; - v110 = 0; - v111 = 0; - v112 = 0; - v113 = null; - v114 = 0; - v115 = false; - v116 = 5126; - v117 = 0; - v118 = 0; - v119 = 0; - if (v16(v106)) { - v107 = true; - v113 = v8.createStream(34962, v106); - v116 = v113.dtype; - } else { - v113 = v8.getBuffer(v106); - if (v113) { - v116 = v113.dtype; - } else if ("constant" in v106) { - v108 = 2; - if (typeof v106.constant === "number") { - v109 = v106.constant; - v110 = v111 = v112 = 0; - } else { - v109 = v106.constant.length > 0 ? v106.constant[0] : 0; - v110 = v106.constant.length > 1 ? v106.constant[1] : 0; - v111 = v106.constant.length > 2 ? v106.constant[2] : 0; - v112 = v106.constant.length > 3 ? v106.constant[3] : 0; - } - } else { - if (v16(v106.buffer)) { - v113 = v8.createStream(34962, v106.buffer); - } else { - v113 = v8.getBuffer(v106.buffer); - } - v116 = "type" in v106 ? v46[v106.type] : v113.dtype; - v115 = !!v106.normalized; - v114 = v106.size | 0; - v117 = v106.offset | 0; - v118 = v106.stride | 0; - v119 = v106.divisor | 0; - } - } - v121 = g120.location; - v122 = v10[v121]; - if (v108 === 1) { - if (!v122.buffer) { - v1.enableVertexAttribArray(v121); - } - v123 = v114 || 1; - if (v122.type !== v116 || v122.size !== v123 || v122.buffer !== v113 || v122.normalized !== v115 || v122.offset !== v117 || v122.stride !== v118) { - v1.bindBuffer(34962, v113.buffer); - v1.vertexAttribPointer(v121, v123, v116, v115, v118, v117); - v122.type = v116; - v122.size = v123; - v122.buffer = v113; - v122.normalized = v115; - v122.offset = v117; - v122.stride = v118; - } - if (v122.divisor !== v119) { - v105.vertexAttribDivisorANGLE(v121, v119); - v122.divisor = v119; - } - } else { - if (v122.buffer) { - v1.disableVertexAttribArray(v121); - v122.buffer = null; - } - if (v122.x !== v109 || v122.y !== v110 || v122.z !== v111 || v122.w !== v112) { - v1.vertexAttrib4f(v121, v109, v110, v111, v112); - v122.x = v109; - v122.y = v110; - v122.z = v111; - v122.w = v112; - } - } - v124 = this["sizeBuffer"]; - v49.buffer = v124; - v125 = false; - v126 = 1; - v127 = 0; - v128 = 0; - v129 = 0; - v130 = 0; - v131 = null; - v132 = 0; - v133 = false; - v134 = 5126; - v135 = 0; - v136 = 0; - v137 = 0; - if (v16(v49)) { - v125 = true; - v131 = v8.createStream(34962, v49); - v134 = v131.dtype; - } else { - v131 = v8.getBuffer(v49); - if (v131) { - v134 = v131.dtype; - } else if ("constant" in v49) { - v126 = 2; - if (typeof v49.constant === "number") { - v127 = v49.constant; - v128 = v129 = v130 = 0; + v1.uniform1i(g276.location, false); + v1.uniform1i(g287.location, g288.bind()); + v891 = v6.instances; + for (v688 = 0; v688 < a1; ++v688) { + v689 = a0[v688]; + var v690, v691, v692, v693, v694, v695, v696, v697, v698, v699, v700, v701, v702, v703, v704, v705, v706, v707, v708, v709, v710, v711, v712, v713, v714, v715, v716, v717, v718, v719, v720, v721, v722, v723, v724, v725, v726, v727, v728, v729, v730, v731, v732, v733, v734, v735, v736, v737, v738, v739, v740, v741, v742, v743, v744, v745, v746, v747, v748, v749, v750, v751, v752, v753, v754, v755, v756, v757, v758, v759, v760, v761, v762, v763, v764, v765, v766, v767, v768, v769, v770, v771, v772, v773, v774, v775, v776, v777, v778, v779, v780, v781, v782, v783, v784, v785, v786, v787, v788, v789, v790, v791, v792, v793, v794, v795, v796, v797, v798, v799, v800, v801, v802, v803, v804, v805, v806, v807, v808, v809, v810, v811, v812, v813, v814, v815, v816, v817, v818, v819, v820, v821, v822, v823, v824, v825, v826, v827, v828, v829, v830, v831, v832, v833, v834, v835, v836, v837, v838, v839, v840, v841, v842, v843, v844, v845, v846, v847, v848, v849, v850, v851, v852, v853, v854, v855, v856, v857, v858, v859, v860, v861, v862, v863, v864, v865, v866, v867, v868, v869, v870, v871, v872, v873, v874, v875, v876, v877, v878, v879, v880, v881, v882, v883, v884, v885, v886, v887, v888, v889, v890; + v690 = v689["viewport"]; + v691 = v690.x | 0; + v692 = v690.y | 0; + v693 = "width" in v690 ? v690.width | 0 : v2.framebufferWidth - v691; + v694 = "height" in v690 ? v690.height | 0 : v2.framebufferHeight - v692; + v695 = v2.viewportWidth; + v2.viewportWidth = v693; + v696 = v2.viewportHeight; + v2.viewportHeight = v694; + v1.viewport(v691, v692, v693, v694); + v40[0] = v691; + v40[1] = v692; + v40[2] = v693; + v40[3] = v694; + v697 = v689["viewport"]; + v698 = v697.x | 0; + v699 = v697.y | 0; + v700 = "width" in v697 ? v697.width | 0 : v2.framebufferWidth - v698; + v701 = "height" in v697 ? v697.height | 0 : v2.framebufferHeight - v699; + v1.scissor(v698, v699, v700, v701); + v38[0] = v698; + v38[1] = v699; + v38[2] = v700; + v38[3] = v701; + v702 = g105.call(this, v2, v689, v688); + v703 = false; + v704 = 1; + v705 = 0; + v706 = 0; + v707 = 0; + v708 = 0; + v709 = null; + v710 = 0; + v711 = false; + v712 = 5126; + v713 = 0; + v714 = 0; + v715 = 0; + if (v16(v702)) { + v703 = true; + v709 = v8.createStream(34962, v702); + v712 = v709.dtype; + } else { + v709 = v8.getBuffer(v702); + if (v709) { + v712 = v709.dtype; + } else if ("constant" in v702) { + v704 = 2; + if (typeof v702.constant === "number") { + v705 = v702.constant; + v706 = v707 = v708 = 0; + } else { + v705 = v702.constant.length > 0 ? v702.constant[0] : 0; + v706 = v702.constant.length > 1 ? v702.constant[1] : 0; + v707 = v702.constant.length > 2 ? v702.constant[2] : 0; + v708 = v702.constant.length > 3 ? v702.constant[3] : 0; + } } else { - v127 = v49.constant.length > 0 ? v49.constant[0] : 0; - v128 = v49.constant.length > 1 ? v49.constant[1] : 0; - v129 = v49.constant.length > 2 ? v49.constant[2] : 0; - v130 = v49.constant.length > 3 ? v49.constant[3] : 0; + if (v16(v702.buffer)) { + v709 = v8.createStream(34962, v702.buffer); + } else { + v709 = v8.getBuffer(v702.buffer); + } + v712 = "type" in v702 ? v46[v702.type] : v709.dtype; + v711 = !!v702.normalized; + v710 = v702.size | 0; + v713 = v702.offset | 0; + v714 = v702.stride | 0; + v715 = v702.divisor | 0; + } + } + v716 = g120.location; + v717 = v10[v716]; + if (v704 === 1) { + if (!v717.buffer) { + v1.enableVertexAttribArray(v716); + } + v718 = v710 || 4; + if (v717.type !== v712 || v717.size !== v718 || v717.buffer !== v709 || v717.normalized !== v711 || v717.offset !== v713 || v717.stride !== v714) { + v1.bindBuffer(34962, v709.buffer); + v1.vertexAttribPointer(v716, v718, v712, v711, v714, v713); + v717.type = v712; + v717.size = v718; + v717.buffer = v709; + v717.normalized = v711; + v717.offset = v713; + v717.stride = v714; + } + if (v717.divisor !== v715) { + v687.vertexAttribDivisorANGLE(v716, v715); + v717.divisor = v715; } } else { - if (v16(v49.buffer)) { - v131 = v8.createStream(34962, v49.buffer); + if (v717.buffer) { + v1.disableVertexAttribArray(v716); + v717.buffer = null; + } + if (v717.x !== v705 || v717.y !== v706 || v717.z !== v707 || v717.w !== v708) { + v1.vertexAttrib4f(v716, v705, v706, v707, v708); + v717.x = v705; + v717.y = v706; + v717.z = v707; + v717.w = v708; + } + } + v719 = g124.call(this, v2, v689, v688); + v720 = false; + v721 = 1; + v722 = 0; + v723 = 0; + v724 = 0; + v725 = 0; + v726 = null; + v727 = 0; + v728 = false; + v729 = 5126; + v730 = 0; + v731 = 0; + v732 = 0; + if (v16(v719)) { + v720 = true; + v726 = v8.createStream(34962, v719); + v729 = v726.dtype; + } else { + v726 = v8.getBuffer(v719); + if (v726) { + v729 = v726.dtype; + } else if ("constant" in v719) { + v721 = 2; + if (typeof v719.constant === "number") { + v722 = v719.constant; + v723 = v724 = v725 = 0; + } else { + v722 = v719.constant.length > 0 ? v719.constant[0] : 0; + v723 = v719.constant.length > 1 ? v719.constant[1] : 0; + v724 = v719.constant.length > 2 ? v719.constant[2] : 0; + v725 = v719.constant.length > 3 ? v719.constant[3] : 0; + } } else { - v131 = v8.getBuffer(v49.buffer); + if (v16(v719.buffer)) { + v726 = v8.createStream(34962, v719.buffer); + } else { + v726 = v8.getBuffer(v719.buffer); + } + v729 = "type" in v719 ? v46[v719.type] : v726.dtype; + v728 = !!v719.normalized; + v727 = v719.size | 0; + v730 = v719.offset | 0; + v731 = v719.stride | 0; + v732 = v719.divisor | 0; } - v134 = "type" in v49 ? v46[v49.type] : v131.dtype; - v133 = !!v49.normalized; - v132 = v49.size | 0; - v135 = v49.offset | 0; - v136 = v49.stride | 0; - v137 = v49.divisor | 0; } - } - v139 = g138.location; - v140 = v10[v139]; - if (v126 === 1) { - if (!v140.buffer) { - v1.enableVertexAttribArray(v139); + v733 = g139.location; + v734 = v10[v733]; + if (v721 === 1) { + if (!v734.buffer) { + v1.enableVertexAttribArray(v733); + } + v735 = v727 || 1; + if (v734.type !== v729 || v734.size !== v735 || v734.buffer !== v726 || v734.normalized !== v728 || v734.offset !== v730 || v734.stride !== v731) { + v1.bindBuffer(34962, v726.buffer); + v1.vertexAttribPointer(v733, v735, v729, v728, v731, v730); + v734.type = v729; + v734.size = v735; + v734.buffer = v726; + v734.normalized = v728; + v734.offset = v730; + v734.stride = v731; + } + if (v734.divisor !== v732) { + v687.vertexAttribDivisorANGLE(v733, v732); + v734.divisor = v732; + } + } else { + if (v734.buffer) { + v1.disableVertexAttribArray(v733); + v734.buffer = null; + } + if (v734.x !== v722 || v734.y !== v723 || v734.z !== v724 || v734.w !== v725) { + v1.vertexAttrib4f(v733, v722, v723, v724, v725); + v734.x = v722; + v734.y = v723; + v734.z = v724; + v734.w = v725; + } } - v141 = v132 || 1; - if (v140.type !== v134 || v140.size !== v141 || v140.buffer !== v131 || v140.normalized !== v133 || v140.offset !== v135 || v140.stride !== v136) { - v1.bindBuffer(34962, v131.buffer); - v1.vertexAttribPointer(v139, v141, v134, v133, v136, v135); - v140.type = v134; - v140.size = v141; - v140.buffer = v131; - v140.normalized = v133; - v140.offset = v135; - v140.stride = v136; + v736 = g143.call(this, v2, v689, v688); + v737 = false; + v738 = 1; + v739 = 0; + v740 = 0; + v741 = 0; + v742 = 0; + v743 = null; + v744 = 0; + v745 = false; + v746 = 5126; + v747 = 0; + v748 = 0; + v749 = 0; + if (v16(v736)) { + v737 = true; + v743 = v8.createStream(34962, v736); + v746 = v743.dtype; + } else { + v743 = v8.getBuffer(v736); + if (v743) { + v746 = v743.dtype; + } else if ("constant" in v736) { + v738 = 2; + if (typeof v736.constant === "number") { + v739 = v736.constant; + v740 = v741 = v742 = 0; + } else { + v739 = v736.constant.length > 0 ? v736.constant[0] : 0; + v740 = v736.constant.length > 1 ? v736.constant[1] : 0; + v741 = v736.constant.length > 2 ? v736.constant[2] : 0; + v742 = v736.constant.length > 3 ? v736.constant[3] : 0; + } + } else { + if (v16(v736.buffer)) { + v743 = v8.createStream(34962, v736.buffer); + } else { + v743 = v8.getBuffer(v736.buffer); + } + v746 = "type" in v736 ? v46[v736.type] : v743.dtype; + v745 = !!v736.normalized; + v744 = v736.size | 0; + v747 = v736.offset | 0; + v748 = v736.stride | 0; + v749 = v736.divisor | 0; + } } - if (v140.divisor !== v137) { - v105.vertexAttribDivisorANGLE(v139, v137); - v140.divisor = v137; + v750 = g158.location; + v751 = v10[v750]; + if (v738 === 1) { + if (!v751.buffer) { + v1.enableVertexAttribArray(v750); + } + v752 = v744 || 4; + if (v751.type !== v746 || v751.size !== v752 || v751.buffer !== v743 || v751.normalized !== v745 || v751.offset !== v747 || v751.stride !== v748) { + v1.bindBuffer(34962, v743.buffer); + v1.vertexAttribPointer(v750, v752, v746, v745, v748, v747); + v751.type = v746; + v751.size = v752; + v751.buffer = v743; + v751.normalized = v745; + v751.offset = v747; + v751.stride = v748; + } + if (v751.divisor !== v749) { + v687.vertexAttribDivisorANGLE(v750, v749); + v751.divisor = v749; + } + } else { + if (v751.buffer) { + v1.disableVertexAttribArray(v750); + v751.buffer = null; + } + if (v751.x !== v739 || v751.y !== v740 || v751.z !== v741 || v751.w !== v742) { + v1.vertexAttrib4f(v750, v739, v740, v741, v742); + v751.x = v739; + v751.y = v740; + v751.z = v741; + v751.w = v742; + } } - } else { - if (v140.buffer) { - v1.disableVertexAttribArray(v139); - v140.buffer = null; + v753 = g162.call(this, v2, v689, v688); + v754 = false; + v755 = 1; + v756 = 0; + v757 = 0; + v758 = 0; + v759 = 0; + v760 = null; + v761 = 0; + v762 = false; + v763 = 5126; + v764 = 0; + v765 = 0; + v766 = 0; + if (v16(v753)) { + v754 = true; + v760 = v8.createStream(34962, v753); + v763 = v760.dtype; + } else { + v760 = v8.getBuffer(v753); + if (v760) { + v763 = v760.dtype; + } else if ("constant" in v753) { + v755 = 2; + if (typeof v753.constant === "number") { + v756 = v753.constant; + v757 = v758 = v759 = 0; + } else { + v756 = v753.constant.length > 0 ? v753.constant[0] : 0; + v757 = v753.constant.length > 1 ? v753.constant[1] : 0; + v758 = v753.constant.length > 2 ? v753.constant[2] : 0; + v759 = v753.constant.length > 3 ? v753.constant[3] : 0; + } + } else { + if (v16(v753.buffer)) { + v760 = v8.createStream(34962, v753.buffer); + } else { + v760 = v8.getBuffer(v753.buffer); + } + v763 = "type" in v753 ? v46[v753.type] : v760.dtype; + v762 = !!v753.normalized; + v761 = v753.size | 0; + v764 = v753.offset | 0; + v765 = v753.stride | 0; + v766 = v753.divisor | 0; + } } - if (v140.x !== v127 || v140.y !== v128 || v140.z !== v129 || v140.w !== v130) { - v1.vertexAttrib4f(v139, v127, v128, v129, v130); - v140.x = v127; - v140.y = v128; - v140.z = v129; - v140.w = v130; + v767 = g177.location; + v768 = v10[v767]; + if (v755 === 1) { + if (!v768.buffer) { + v1.enableVertexAttribArray(v767); + } + v769 = v761 || 1; + if (v768.type !== v763 || v768.size !== v769 || v768.buffer !== v760 || v768.normalized !== v762 || v768.offset !== v764 || v768.stride !== v765) { + v1.bindBuffer(34962, v760.buffer); + v1.vertexAttribPointer(v767, v769, v763, v762, v765, v764); + v768.type = v763; + v768.size = v769; + v768.buffer = v760; + v768.normalized = v762; + v768.offset = v764; + v768.stride = v765; + } + if (v768.divisor !== v766) { + v687.vertexAttribDivisorANGLE(v767, v766); + v768.divisor = v766; + } + } else { + if (v768.buffer) { + v1.disableVertexAttribArray(v767); + v768.buffer = null; + } + if (v768.x !== v756 || v768.y !== v757 || v768.z !== v758 || v768.w !== v759) { + v1.vertexAttrib4f(v767, v756, v757, v758, v759); + v768.x = v756; + v768.y = v757; + v768.z = v758; + v768.w = v759; + } } - } - v142 = this["position"]; - v143 = false; - v144 = 1; - v145 = 0; - v146 = 0; - v147 = 0; - v148 = 0; - v149 = null; - v150 = 0; - v151 = false; - v152 = 5126; - v153 = 0; - v154 = 0; - v155 = 0; - if (v16(v142)) { - v143 = true; - v149 = v8.createStream(34962, v142); - v152 = v149.dtype; - } else { - v149 = v8.getBuffer(v142); - if (v149) { - v152 = v149.dtype; - } else if ("constant" in v142) { - v144 = 2; - if (typeof v142.constant === "number") { - v145 = v142.constant; - v146 = v147 = v148 = 0; + v770 = g181.call(this, v2, v689, v688); + v771 = false; + v772 = 1; + v773 = 0; + v774 = 0; + v775 = 0; + v776 = 0; + v777 = null; + v778 = 0; + v779 = false; + v780 = 5126; + v781 = 0; + v782 = 0; + v783 = 0; + if (v16(v770)) { + v771 = true; + v777 = v8.createStream(34962, v770); + v780 = v777.dtype; + } else { + v777 = v8.getBuffer(v770); + if (v777) { + v780 = v777.dtype; + } else if ("constant" in v770) { + v772 = 2; + if (typeof v770.constant === "number") { + v773 = v770.constant; + v774 = v775 = v776 = 0; + } else { + v773 = v770.constant.length > 0 ? v770.constant[0] : 0; + v774 = v770.constant.length > 1 ? v770.constant[1] : 0; + v775 = v770.constant.length > 2 ? v770.constant[2] : 0; + v776 = v770.constant.length > 3 ? v770.constant[3] : 0; + } } else { - v145 = v142.constant.length > 0 ? v142.constant[0] : 0; - v146 = v142.constant.length > 1 ? v142.constant[1] : 0; - v147 = v142.constant.length > 2 ? v142.constant[2] : 0; - v148 = v142.constant.length > 3 ? v142.constant[3] : 0; + if (v16(v770.buffer)) { + v777 = v8.createStream(34962, v770.buffer); + } else { + v777 = v8.getBuffer(v770.buffer); + } + v780 = "type" in v770 ? v46[v770.type] : v777.dtype; + v779 = !!v770.normalized; + v778 = v770.size | 0; + v781 = v770.offset | 0; + v782 = v770.stride | 0; + v783 = v770.divisor | 0; + } + } + v784 = g196.location; + v785 = v10[v784]; + if (v772 === 1) { + if (!v785.buffer) { + v1.enableVertexAttribArray(v784); + } + v786 = v778 || 1; + if (v785.type !== v780 || v785.size !== v786 || v785.buffer !== v777 || v785.normalized !== v779 || v785.offset !== v781 || v785.stride !== v782) { + v1.bindBuffer(34962, v777.buffer); + v1.vertexAttribPointer(v784, v786, v780, v779, v782, v781); + v785.type = v780; + v785.size = v786; + v785.buffer = v777; + v785.normalized = v779; + v785.offset = v781; + v785.stride = v782; + } + if (v785.divisor !== v783) { + v687.vertexAttribDivisorANGLE(v784, v783); + v785.divisor = v783; } } else { - if (v16(v142.buffer)) { - v149 = v8.createStream(34962, v142.buffer); + if (v785.buffer) { + v1.disableVertexAttribArray(v784); + v785.buffer = null; + } + if (v785.x !== v773 || v785.y !== v774 || v785.z !== v775 || v785.w !== v776) { + v1.vertexAttrib4f(v784, v773, v774, v775, v776); + v785.x = v773; + v785.y = v774; + v785.z = v775; + v785.w = v776; + } + } + v787 = g200.call(this, v2, v689, v688); + v788 = false; + v789 = 1; + v790 = 0; + v791 = 0; + v792 = 0; + v793 = 0; + v794 = null; + v795 = 0; + v796 = false; + v797 = 5126; + v798 = 0; + v799 = 0; + v800 = 0; + if (v16(v787)) { + v788 = true; + v794 = v8.createStream(34962, v787); + v797 = v794.dtype; + } else { + v794 = v8.getBuffer(v787); + if (v794) { + v797 = v794.dtype; + } else if ("constant" in v787) { + v789 = 2; + if (typeof v787.constant === "number") { + v790 = v787.constant; + v791 = v792 = v793 = 0; + } else { + v790 = v787.constant.length > 0 ? v787.constant[0] : 0; + v791 = v787.constant.length > 1 ? v787.constant[1] : 0; + v792 = v787.constant.length > 2 ? v787.constant[2] : 0; + v793 = v787.constant.length > 3 ? v787.constant[3] : 0; + } } else { - v149 = v8.getBuffer(v142.buffer); + if (v16(v787.buffer)) { + v794 = v8.createStream(34962, v787.buffer); + } else { + v794 = v8.getBuffer(v787.buffer); + } + v797 = "type" in v787 ? v46[v787.type] : v794.dtype; + v796 = !!v787.normalized; + v795 = v787.size | 0; + v798 = v787.offset | 0; + v799 = v787.stride | 0; + v800 = v787.divisor | 0; } - v152 = "type" in v142 ? v46[v142.type] : v149.dtype; - v151 = !!v142.normalized; - v150 = v142.size | 0; - v153 = v142.offset | 0; - v154 = v142.stride | 0; - v155 = v142.divisor | 0; } - } - v157 = g156.location; - v158 = v10[v157]; - if (v144 === 1) { - if (!v158.buffer) { - v1.enableVertexAttribArray(v157); + v801 = g215.location; + v802 = v10[v801]; + if (v789 === 1) { + if (!v802.buffer) { + v1.enableVertexAttribArray(v801); + } + v803 = v795 || 1; + if (v802.type !== v797 || v802.size !== v803 || v802.buffer !== v794 || v802.normalized !== v796 || v802.offset !== v798 || v802.stride !== v799) { + v1.bindBuffer(34962, v794.buffer); + v1.vertexAttribPointer(v801, v803, v797, v796, v799, v798); + v802.type = v797; + v802.size = v803; + v802.buffer = v794; + v802.normalized = v796; + v802.offset = v798; + v802.stride = v799; + } + if (v802.divisor !== v800) { + v687.vertexAttribDivisorANGLE(v801, v800); + v802.divisor = v800; + } + } else { + if (v802.buffer) { + v1.disableVertexAttribArray(v801); + v802.buffer = null; + } + if (v802.x !== v790 || v802.y !== v791 || v802.z !== v792 || v802.w !== v793) { + v1.vertexAttrib4f(v801, v790, v791, v792, v793); + v802.x = v790; + v802.y = v791; + v802.z = v792; + v802.w = v793; + } } - v159 = v150 || 2; - if (v158.type !== v152 || v158.size !== v159 || v158.buffer !== v149 || v158.normalized !== v151 || v158.offset !== v153 || v158.stride !== v154) { - v1.bindBuffer(34962, v149.buffer); - v1.vertexAttribPointer(v157, v159, v152, v151, v154, v153); - v158.type = v152; - v158.size = v159; - v158.buffer = v149; - v158.normalized = v151; - v158.offset = v153; - v158.stride = v154; + v804 = g219.call(this, v2, v689, v688); + v805 = false; + v806 = 1; + v807 = 0; + v808 = 0; + v809 = 0; + v810 = 0; + v811 = null; + v812 = 0; + v813 = false; + v814 = 5126; + v815 = 0; + v816 = 0; + v817 = 0; + if (v16(v804)) { + v805 = true; + v811 = v8.createStream(34962, v804); + v814 = v811.dtype; + } else { + v811 = v8.getBuffer(v804); + if (v811) { + v814 = v811.dtype; + } else if ("constant" in v804) { + v806 = 2; + if (typeof v804.constant === "number") { + v807 = v804.constant; + v808 = v809 = v810 = 0; + } else { + v807 = v804.constant.length > 0 ? v804.constant[0] : 0; + v808 = v804.constant.length > 1 ? v804.constant[1] : 0; + v809 = v804.constant.length > 2 ? v804.constant[2] : 0; + v810 = v804.constant.length > 3 ? v804.constant[3] : 0; + } + } else { + if (v16(v804.buffer)) { + v811 = v8.createStream(34962, v804.buffer); + } else { + v811 = v8.getBuffer(v804.buffer); + } + v814 = "type" in v804 ? v46[v804.type] : v811.dtype; + v813 = !!v804.normalized; + v812 = v804.size | 0; + v815 = v804.offset | 0; + v816 = v804.stride | 0; + v817 = v804.divisor | 0; + } } - if (v158.divisor !== v155) { - v105.vertexAttribDivisorANGLE(v157, v155); - v158.divisor = v155; + v818 = g234.location; + v819 = v10[v818]; + if (v806 === 1) { + if (!v819.buffer) { + v1.enableVertexAttribArray(v818); + } + v820 = v812 || 1; + if (v819.type !== v814 || v819.size !== v820 || v819.buffer !== v811 || v819.normalized !== v813 || v819.offset !== v815 || v819.stride !== v816) { + v1.bindBuffer(34962, v811.buffer); + v1.vertexAttribPointer(v818, v820, v814, v813, v816, v815); + v819.type = v814; + v819.size = v820; + v819.buffer = v811; + v819.normalized = v813; + v819.offset = v815; + v819.stride = v816; + } + if (v819.divisor !== v817) { + v687.vertexAttribDivisorANGLE(v818, v817); + v819.divisor = v817; + } + } else { + if (v819.buffer) { + v1.disableVertexAttribArray(v818); + v819.buffer = null; + } + if (v819.x !== v807 || v819.y !== v808 || v819.z !== v809 || v819.w !== v810) { + v1.vertexAttrib4f(v818, v807, v808, v809, v810); + v819.x = v807; + v819.y = v808; + v819.z = v809; + v819.w = v810; + } } - } else { - if (v158.buffer) { - v1.disableVertexAttribArray(v157); - v158.buffer = null; + v821 = g238.call(this, v2, v689, v688); + v822 = false; + v823 = 1; + v824 = 0; + v825 = 0; + v826 = 0; + v827 = 0; + v828 = null; + v829 = 0; + v830 = false; + v831 = 5126; + v832 = 0; + v833 = 0; + v834 = 0; + if (v16(v821)) { + v822 = true; + v828 = v8.createStream(34962, v821); + v831 = v828.dtype; + } else { + v828 = v8.getBuffer(v821); + if (v828) { + v831 = v828.dtype; + } else if ("constant" in v821) { + v823 = 2; + if (typeof v821.constant === "number") { + v824 = v821.constant; + v825 = v826 = v827 = 0; + } else { + v824 = v821.constant.length > 0 ? v821.constant[0] : 0; + v825 = v821.constant.length > 1 ? v821.constant[1] : 0; + v826 = v821.constant.length > 2 ? v821.constant[2] : 0; + v827 = v821.constant.length > 3 ? v821.constant[3] : 0; + } + } else { + if (v16(v821.buffer)) { + v828 = v8.createStream(34962, v821.buffer); + } else { + v828 = v8.getBuffer(v821.buffer); + } + v831 = "type" in v821 ? v46[v821.type] : v828.dtype; + v830 = !!v821.normalized; + v829 = v821.size | 0; + v832 = v821.offset | 0; + v833 = v821.stride | 0; + v834 = v821.divisor | 0; + } } - if (v158.x !== v145 || v158.y !== v146 || v158.z !== v147 || v158.w !== v148) { - v1.vertexAttrib4f(v157, v145, v146, v147, v148); - v158.x = v145; - v158.y = v146; - v158.z = v147; - v158.w = v148; + v835 = g253.location; + v836 = v10[v835]; + if (v823 === 1) { + if (!v836.buffer) { + v1.enableVertexAttribArray(v835); + } + v837 = v829 || 1; + if (v836.type !== v831 || v836.size !== v837 || v836.buffer !== v828 || v836.normalized !== v830 || v836.offset !== v832 || v836.stride !== v833) { + v1.bindBuffer(34962, v828.buffer); + v1.vertexAttribPointer(v835, v837, v831, v830, v833, v832); + v836.type = v831; + v836.size = v837; + v836.buffer = v828; + v836.normalized = v830; + v836.offset = v832; + v836.stride = v833; + } + if (v836.divisor !== v834) { + v687.vertexAttribDivisorANGLE(v835, v834); + v836.divisor = v834; + } + } else { + if (v836.buffer) { + v1.disableVertexAttribArray(v835); + v836.buffer = null; + } + if (v836.x !== v824 || v836.y !== v825 || v836.z !== v826 || v836.w !== v827) { + v1.vertexAttrib4f(v835, v824, v825, v826, v827); + v836.x = v824; + v836.y = v825; + v836.z = v826; + v836.w = v827; + } } - } - v160 = this["sizeBuffer"]; - v50.buffer = v160; - v161 = false; - v162 = 1; - v163 = 0; - v164 = 0; - v165 = 0; - v166 = 0; - v167 = null; - v168 = 0; - v169 = false; - v170 = 5126; - v171 = 0; - v172 = 0; - v173 = 0; - if (v16(v50)) { - v161 = true; - v167 = v8.createStream(34962, v50); - v170 = v167.dtype; - } else { - v167 = v8.getBuffer(v50); - if (v167) { - v170 = v167.dtype; - } else if ("constant" in v50) { - v162 = 2; - if (typeof v50.constant === "number") { - v163 = v50.constant; - v164 = v165 = v166 = 0; + v838 = g257.call(this, v2, v689, v688); + v839 = false; + v840 = 1; + v841 = 0; + v842 = 0; + v843 = 0; + v844 = 0; + v845 = null; + v846 = 0; + v847 = false; + v848 = 5126; + v849 = 0; + v850 = 0; + v851 = 0; + if (v16(v838)) { + v839 = true; + v845 = v8.createStream(34962, v838); + v848 = v845.dtype; + } else { + v845 = v8.getBuffer(v838); + if (v845) { + v848 = v845.dtype; + } else if ("constant" in v838) { + v840 = 2; + if (typeof v838.constant === "number") { + v841 = v838.constant; + v842 = v843 = v844 = 0; + } else { + v841 = v838.constant.length > 0 ? v838.constant[0] : 0; + v842 = v838.constant.length > 1 ? v838.constant[1] : 0; + v843 = v838.constant.length > 2 ? v838.constant[2] : 0; + v844 = v838.constant.length > 3 ? v838.constant[3] : 0; + } } else { - v163 = v50.constant.length > 0 ? v50.constant[0] : 0; - v164 = v50.constant.length > 1 ? v50.constant[1] : 0; - v165 = v50.constant.length > 2 ? v50.constant[2] : 0; - v166 = v50.constant.length > 3 ? v50.constant[3] : 0; + if (v16(v838.buffer)) { + v845 = v8.createStream(34962, v838.buffer); + } else { + v845 = v8.getBuffer(v838.buffer); + } + v848 = "type" in v838 ? v46[v838.type] : v845.dtype; + v847 = !!v838.normalized; + v846 = v838.size | 0; + v849 = v838.offset | 0; + v850 = v838.stride | 0; + v851 = v838.divisor | 0; + } + } + v852 = g272.location; + v853 = v10[v852]; + if (v840 === 1) { + if (!v853.buffer) { + v1.enableVertexAttribArray(v852); + } + v854 = v846 || 1; + if (v853.type !== v848 || v853.size !== v854 || v853.buffer !== v845 || v853.normalized !== v847 || v853.offset !== v849 || v853.stride !== v850) { + v1.bindBuffer(34962, v845.buffer); + v1.vertexAttribPointer(v852, v854, v848, v847, v850, v849); + v853.type = v848; + v853.size = v854; + v853.buffer = v845; + v853.normalized = v847; + v853.offset = v849; + v853.stride = v850; + } + if (v853.divisor !== v851) { + v687.vertexAttribDivisorANGLE(v852, v851); + v853.divisor = v851; } } else { - if (v16(v50.buffer)) { - v167 = v8.createStream(34962, v50.buffer); - } else { - v167 = v8.getBuffer(v50.buffer); + if (v853.buffer) { + v1.disableVertexAttribArray(v852); + v853.buffer = null; + } + if (v853.x !== v841 || v853.y !== v842 || v853.z !== v843 || v853.w !== v844) { + v1.vertexAttrib4f(v852, v841, v842, v843, v844); + v853.x = v841; + v853.y = v842; + v853.z = v843; + v853.w = v844; } - v170 = "type" in v50 ? v46[v50.type] : v167.dtype; - v169 = !!v50.normalized; - v168 = v50.size | 0; - v171 = v50.offset | 0; - v172 = v50.stride | 0; - v173 = v50.divisor | 0; } - } - v175 = g174.location; - v176 = v10[v175]; - if (v162 === 1) { - if (!v176.buffer) { - v1.enableVertexAttribArray(v175); + v855 = v689["markerTexture"]; + if (v855 && v855._reglType === "framebuffer") { + v855 = v855.color[0]; } - v177 = v168 || 1; - if (v176.type !== v170 || v176.size !== v177 || v176.buffer !== v167 || v176.normalized !== v169 || v176.offset !== v171 || v176.stride !== v172) { - v1.bindBuffer(34962, v167.buffer); - v1.vertexAttribPointer(v175, v177, v170, v169, v172, v171); - v176.type = v170; - v176.size = v177; - v176.buffer = v167; - v176.normalized = v169; - v176.offset = v171; - v176.stride = v172; + v856 = v855._texture; + v1.uniform1i(g277.location, v856.bind()); + v857 = v689["opacity"]; + if (!v688 || v858 !== v857) { + v858 = v857; + v1.uniform1f(g280.location, v857); } - if (v176.divisor !== v173) { - v105.vertexAttribDivisorANGLE(v175, v173); - v176.divisor = v173; + v859 = g283.call(this, v2, v689, v688); + v860 = v859[0]; + v862 = v859[1]; + if (!v688 || v861 !== v860 || v863 !== v862) { + v861 = v860; + v863 = v862; + v1.uniform2f(g282.location, v860, v862); } - } else { - if (v176.buffer) { - v1.disableVertexAttribArray(v175); - v176.buffer = null; + v864 = v2["pixelRatio"]; + if (!v688 || v865 !== v864) { + v865 = v864; + v1.uniform1f(g289.location, v864); } - if (v176.x !== v163 || v176.y !== v164 || v176.z !== v165 || v176.w !== v166) { - v1.vertexAttrib4f(v175, v163, v164, v165, v166); - v176.x = v163; - v176.y = v164; - v176.z = v165; - v176.w = v166; + v866 = v689["scale"]; + v867 = v866[0]; + v869 = v866[1]; + if (!v688 || v868 !== v867 || v870 !== v869) { + v868 = v867; + v870 = v869; + v1.uniform2f(g291.location, v867, v869); } - } - v179 = a0["align"]; - v1.uniform1f(g178.location, v179); - v182 = g181.call(this, v2, a0, 0); - if (v182 && v182._reglType === "framebuffer") { - v182 = v182.color[0]; - } - v183 = v182._texture; - v1.uniform1i(g180.location, v183.bind()); - v186 = g185.call(this, v2, a0, 0); - v187 = v186[0]; - v188 = v186[1]; - v1.uniform2f(g184.location, v187, v188); - v191 = g190.call(this, v2, a0, 0); - v192 = v191[0]; - v193 = v191[1]; - v1.uniform2f(g189.location, v192, v193); - v195 = a0["baseline"]; - v1.uniform1f(g194.location, v195); - v198 = g197.call(this, v2, a0, 0); - v1.uniform1f(g196.location, v198); - v200 = a0["color"]; - v201 = v200[0]; - v202 = v200[1]; - v203 = v200[2]; - v204 = v200[3]; - v1.uniform4f(g199.location, v201, v202, v203, v204); - v207 = g206.call(this, v2, a0, 0); - v1.uniform1f(g205.location, v207); - v209 = a0["opacity"]; - v1.uniform1f(g208.location, v209); - v211 = a0["positionOffset"]; - v212 = v211[0]; - v213 = v211[1]; - v1.uniform2f(g210.location, v212, v213); - v215 = this["scale"]; - v216 = v215[0]; - v217 = v215[1]; - v1.uniform2f(g214.location, v216, v217); - v219 = this["translate"]; - v220 = v219[0]; - v221 = v219[1]; - v1.uniform2f(g218.location, v220, v221); - v223 = this["viewportArray"]; - v224 = v223[0]; - v225 = v223[1]; - v226 = v223[2]; - v227 = v223[3]; - v1.uniform4f(g222.location, v224, v225, v226, v227); - v228 = v6.elements; - if (v228) { - v1.bindBuffer(34963, v228.buffer.buffer); - } else if (v11.currentVAO) { - v228 = v7.getElements(v11.currentVAO.elements); - if (v228) v1.bindBuffer(34963, v228.buffer.buffer); - } - v229 = a0["offset"]; - v230 = a0["count"]; - if (v230) { - v231 = v6.instances; - if (v231 > 0) { - if (v228) { - v105.drawElementsInstancedANGLE(0, v230, v228.type, v229 << (v228.type - 5121 >> 1), v231); - } else { - v105.drawArraysInstancedANGLE(0, v229, v230, v231); - } - } else if (v231 < 0) { - if (v228) { - v1.drawElements(0, v230, v228.type, v229 << (v228.type - 5121 >> 1)); - } else { - v1.drawArrays(0, v229, v230); - } - } - v5.dirty = true; - v11.setVAO(null); - v2.viewportWidth = v97; - v2.viewportHeight = v98; - if (v102) { - g48.cpuTime += performance.now() - v103; - } - if (v107) { - v8.destroyStream(v113); + v871 = v689["scaleFract"]; + v872 = v871[0]; + v874 = v871[1]; + if (!v688 || v873 !== v872 || v875 !== v874) { + v873 = v872; + v875 = v874; + v1.uniform2f(g295.location, v872, v874); } - if (v125) { - v8.destroyStream(v131); + v876 = v689["translate"]; + v877 = v876[0]; + v879 = v876[1]; + if (!v688 || v878 !== v877 || v880 !== v879) { + v878 = v877; + v880 = v879; + v1.uniform2f(g299.location, v877, v879); } - if (v143) { - v8.destroyStream(v149); + v881 = v689["translateFract"]; + v882 = v881[0]; + v884 = v881[1]; + if (!v688 || v883 !== v882 || v885 !== v884) { + v883 = v882; + v885 = v884; + v1.uniform2f(g303.location, v882, v884); } - if (v161) { - v8.destroyStream(v167); + v886 = v689["elements"]; + v887 = null; + v888 = v16(v886); + if (v888) { + v887 = v7.createStream(v886); + } else { + v887 = v7.getElements(v886); } - v183.unbind(); - } - }, - "scope": function(a0, a1, a2) { - var v232, v233, v234, v235, v236, v237, v238, v239, v240, v241, v242, v244, v246, v248, v250, v252, v254, v256, v258, v260, v262, v264, v265, v266, v267, v268, v269, v270, v272, v273, v275, v276, v278, v279, v281, v282, v284, v285, v287, v288, v290, v291, v293, v294, v296, v297, v299, v300, v302, v303, v305, v306, v308, v309, v311, v312, v313, v314, v315, v316, v317, v318, v319, v320, v321, v322, v323, v324, v325, v327, v328, v329, v330, v331, v332, v333, v334, v335, v336, v337, v338, v339, v340, v341, v342, v343, v344, v345, v346, v347, v348, v349, v350, v351, v352, v354, v355, v356, v357, v358, v359, v360, v361, v362, v363, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v375, v376, v377, v378, v379, v381, v382, v383, v384, v385, v386, v387, v388, v389, v390, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v408, v409, v410, v411, v412, v413, v414, v415, v416, v417, v418, v419, v421, v423; - v232 = this["viewport"]; - v233 = v232.x | 0; - v234 = v232.y | 0; - v235 = "width" in v232 ? v232.width | 0 : v2.framebufferWidth - v233; - v236 = "height" in v232 ? v232.height | 0 : v2.framebufferHeight - v234; - v237 = v2.viewportWidth; - v2.viewportWidth = v235; - v238 = v2.viewportHeight; - v2.viewportHeight = v236; - v239 = v39[0]; - v39[0] = v233; - v240 = v39[1]; - v39[1] = v234; - v241 = v39[2]; - v39[2] = v235; - v242 = v39[3]; - v39[3] = v236; - v244 = v17[0]; - v17[0] = g243; - v246 = v17[1]; - v17[1] = g245; - v248 = v17[2]; - v17[2] = g247; - v250 = v17[3]; - v17[3] = g249; - v252 = v4.blend_enable; - v4.blend_enable = g251; - v254 = v21[0]; - v21[0] = g253; - v256 = v21[1]; - v21[1] = g255; - v258 = v21[2]; - v21[2] = g257; - v260 = v21[3]; - v21[3] = g259; - v262 = v4.depth_enable; - v4.depth_enable = g261; - v264 = v4.stencil_enable; - v4.stencil_enable = g263; - v265 = v5.profile; - if (v265) { - v266 = performance.now(); - g48.count++; - } - v267 = a0["offset"]; - v268 = v6.offset; - v6.offset = v267; - v269 = a0["count"]; - v270 = v6.count; - v6.count = v269; - v272 = v6.primitive; - v6.primitive = g271; - v273 = g190.call(this, v2, a0, a2); - v275 = v12[g274]; - v12[g274] = v273; - v276 = g185.call(this, v2, a0, a2); - v278 = v12[g277]; - v12[g277] = v276; - v279 = g181.call(this, v2, a0, a2); - v281 = v12[g280]; - v12[g280] = v279; - v282 = g197.call(this, v2, a0, a2); - v284 = v12[g283]; - v12[g283] = v282; - v285 = g206.call(this, v2, a0, a2); - v287 = v12[g286]; - v12[g286] = v285; - v288 = a0["color"]; - v290 = v12[g289]; - v12[g289] = v288; - v291 = a0["opacity"]; - v293 = v12[g292]; - v12[g292] = v291; - v294 = this["viewportArray"]; - v296 = v12[g295]; - v12[g295] = v294; - v297 = this["scale"]; - v299 = v12[g298]; - v12[g298] = v297; - v300 = a0["align"]; - v302 = v12[g301]; - v12[g301] = v300; - v303 = a0["baseline"]; - v305 = v12[g304]; - v12[g304] = v303; - v306 = this["translate"]; - v308 = v12[g307]; - v12[g307] = v306; - v309 = a0["positionOffset"]; - v311 = v12[g310]; - v12[g310] = v309; - v312 = this["charBuffer"]; - v313 = false; - v314 = 1; - v315 = 0; - v316 = 0; - v317 = 0; - v318 = 0; - v319 = null; - v320 = 0; - v321 = false; - v322 = 5126; - v323 = 0; - v324 = 0; - v325 = 0; - if (v16(v312)) { - v313 = true; - v319 = v8.createStream(34962, v312); - v322 = v319.dtype; - } else { - v319 = v8.getBuffer(v312); - if (v319) { - v322 = v319.dtype; - } else if ("constant" in v312) { - v314 = 2; - if (typeof v312.constant === "number") { - v315 = v312.constant; - v316 = v317 = v318 = 0; - } else { - v315 = v312.constant.length > 0 ? v312.constant[0] : 0; - v316 = v312.constant.length > 1 ? v312.constant[1] : 0; - v317 = v312.constant.length > 2 ? v312.constant[2] : 0; - v318 = v312.constant.length > 3 ? v312.constant[3] : 0; + if (v887) v1.bindBuffer(34963, v887.buffer.buffer); + v889 = v689["offset"]; + v890 = v689["count"]; + if (v890) { + if (v891 > 0) { + if (v887) { + v687.drawElementsInstancedANGLE(0, v890, v887.type, v889 << (v887.type - 5121 >> 1), v891); + } else { + v687.drawArraysInstancedANGLE(0, v889, v890, v891); + } + } else if (v891 < 0) { + if (v887) { + v1.drawElements(0, v890, v887.type, v889 << (v887.type - 5121 >> 1)); + } else { + v1.drawArrays(0, v889, v890); + } } - } else { - if (v16(v312.buffer)) { - v319 = v8.createStream(34962, v312.buffer); - } else { - v319 = v8.getBuffer(v312.buffer); + v2.viewportWidth = v695; + v2.viewportHeight = v696; + if (v703) { + v8.destroyStream(v709); } - v322 = "type" in v312 ? v46[v312.type] : v319.dtype; - v321 = !!v312.normalized; - v320 = v312.size | 0; - v323 = v312.offset | 0; - v324 = v312.stride | 0; - v325 = v312.divisor | 0; - } - } - v327 = g326.state; - g326.state = v314; - v328 = g326.x; - g326.x = v315; - v329 = g326.y; - g326.y = v316; - v330 = g326.z; - g326.z = v317; - v331 = g326.w; - g326.w = v318; - v332 = g326.buffer; - g326.buffer = v319; - v333 = g326.size; - g326.size = v320; - v334 = g326.normalized; - g326.normalized = v321; - v335 = g326.type; - g326.type = v322; - v336 = g326.offset; - g326.offset = v323; - v337 = g326.stride; - g326.stride = v324; - v338 = g326.divisor; - g326.divisor = v325; - v339 = this["position"]; - v340 = false; - v341 = 1; - v342 = 0; - v343 = 0; - v344 = 0; - v345 = 0; - v346 = null; - v347 = 0; - v348 = false; - v349 = 5126; - v350 = 0; - v351 = 0; - v352 = 0; - if (v16(v339)) { - v340 = true; - v346 = v8.createStream(34962, v339); - v349 = v346.dtype; - } else { - v346 = v8.getBuffer(v339); - if (v346) { - v349 = v346.dtype; - } else if ("constant" in v339) { - v341 = 2; - if (typeof v339.constant === "number") { - v342 = v339.constant; - v343 = v344 = v345 = 0; - } else { - v342 = v339.constant.length > 0 ? v339.constant[0] : 0; - v343 = v339.constant.length > 1 ? v339.constant[1] : 0; - v344 = v339.constant.length > 2 ? v339.constant[2] : 0; - v345 = v339.constant.length > 3 ? v339.constant[3] : 0; + if (v720) { + v8.destroyStream(v726); } - } else { - if (v16(v339.buffer)) { - v346 = v8.createStream(34962, v339.buffer); - } else { - v346 = v8.getBuffer(v339.buffer); + if (v737) { + v8.destroyStream(v743); } - v349 = "type" in v339 ? v46[v339.type] : v346.dtype; - v348 = !!v339.normalized; - v347 = v339.size | 0; - v350 = v339.offset | 0; - v351 = v339.stride | 0; - v352 = v339.divisor | 0; - } - } - v354 = g353.state; - g353.state = v341; - v355 = g353.x; - g353.x = v342; - v356 = g353.y; - g353.y = v343; - v357 = g353.z; - g353.z = v344; - v358 = g353.w; - g353.w = v345; - v359 = g353.buffer; - g353.buffer = v346; - v360 = g353.size; - g353.size = v347; - v361 = g353.normalized; - g353.normalized = v348; - v362 = g353.type; - g353.type = v349; - v363 = g353.offset; - g353.offset = v350; - v364 = g353.stride; - g353.stride = v351; - v365 = g353.divisor; - g353.divisor = v352; - v366 = this["sizeBuffer"]; - v49.buffer = v366; - v367 = false; - v368 = 1; - v369 = 0; - v370 = 0; - v371 = 0; - v372 = 0; - v373 = null; - v374 = 0; - v375 = false; - v376 = 5126; - v377 = 0; - v378 = 0; - v379 = 0; - if (v16(v49)) { - v367 = true; - v373 = v8.createStream(34962, v49); - v376 = v373.dtype; - } else { - v373 = v8.getBuffer(v49); - if (v373) { - v376 = v373.dtype; - } else if ("constant" in v49) { - v368 = 2; - if (typeof v49.constant === "number") { - v369 = v49.constant; - v370 = v371 = v372 = 0; - } else { - v369 = v49.constant.length > 0 ? v49.constant[0] : 0; - v370 = v49.constant.length > 1 ? v49.constant[1] : 0; - v371 = v49.constant.length > 2 ? v49.constant[2] : 0; - v372 = v49.constant.length > 3 ? v49.constant[3] : 0; + if (v754) { + v8.destroyStream(v760); } - } else { - if (v16(v49.buffer)) { - v373 = v8.createStream(34962, v49.buffer); - } else { - v373 = v8.getBuffer(v49.buffer); + if (v771) { + v8.destroyStream(v777); } - v376 = "type" in v49 ? v46[v49.type] : v373.dtype; - v375 = !!v49.normalized; - v374 = v49.size | 0; - v377 = v49.offset | 0; - v378 = v49.stride | 0; - v379 = v49.divisor | 0; - } - } - v381 = g380.state; - g380.state = v368; - v382 = g380.x; - g380.x = v369; - v383 = g380.y; - g380.y = v370; - v384 = g380.z; - g380.z = v371; - v385 = g380.w; - g380.w = v372; - v386 = g380.buffer; - g380.buffer = v373; - v387 = g380.size; - g380.size = v374; - v388 = g380.normalized; - g380.normalized = v375; - v389 = g380.type; - g380.type = v376; - v390 = g380.offset; - g380.offset = v377; - v391 = g380.stride; - g380.stride = v378; - v392 = g380.divisor; - g380.divisor = v379; - v393 = this["sizeBuffer"]; - v50.buffer = v393; - v394 = false; - v395 = 1; - v396 = 0; - v397 = 0; - v398 = 0; - v399 = 0; - v400 = null; - v401 = 0; - v402 = false; - v403 = 5126; - v404 = 0; - v405 = 0; - v406 = 0; - if (v16(v50)) { - v394 = true; - v400 = v8.createStream(34962, v50); - v403 = v400.dtype; - } else { - v400 = v8.getBuffer(v50); - if (v400) { - v403 = v400.dtype; - } else if ("constant" in v50) { - v395 = 2; - if (typeof v50.constant === "number") { - v396 = v50.constant; - v397 = v398 = v399 = 0; - } else { - v396 = v50.constant.length > 0 ? v50.constant[0] : 0; - v397 = v50.constant.length > 1 ? v50.constant[1] : 0; - v398 = v50.constant.length > 2 ? v50.constant[2] : 0; - v399 = v50.constant.length > 3 ? v50.constant[3] : 0; + if (v788) { + v8.destroyStream(v794); } - } else { - if (v16(v50.buffer)) { - v400 = v8.createStream(34962, v50.buffer); - } else { - v400 = v8.getBuffer(v50.buffer); + if (v805) { + v8.destroyStream(v811); + } + if (v822) { + v8.destroyStream(v828); + } + if (v839) { + v8.destroyStream(v845); + } + v856.unbind(); + if (v888) { + v7.destroyStream(v887); } - v403 = "type" in v50 ? v46[v50.type] : v400.dtype; - v402 = !!v50.normalized; - v401 = v50.size | 0; - v404 = v50.offset | 0; - v405 = v50.stride | 0; - v406 = v50.divisor | 0; } } - v408 = g407.state; - g407.state = v395; - v409 = g407.x; - g407.x = v396; - v410 = g407.y; - g407.y = v397; - v411 = g407.z; - g407.z = v398; - v412 = g407.w; - g407.w = v399; - v413 = g407.buffer; - g407.buffer = v400; - v414 = g407.size; - g407.size = v401; - v415 = g407.normalized; - g407.normalized = v402; - v416 = g407.type; - g407.type = v403; - v417 = g407.offset; - g407.offset = v404; - v418 = g407.stride; - g407.stride = v405; - v419 = g407.divisor; - g407.divisor = v406; - v421 = v9.vert; - v9.vert = g420; - v423 = v9.frag; - v9.frag = g422; + g288.unbind(); v5.dirty = true; - a1(v2, a0, a2); - v2.viewportWidth = v237; - v2.viewportHeight = v238; - v39[0] = v239; - v39[1] = v240; - v39[2] = v241; - v39[3] = v242; - v17[0] = v244; - v17[1] = v246; - v17[2] = v248; - v17[3] = v250; - v4.blend_enable = v252; - v21[0] = v254; - v21[1] = v256; - v21[2] = v258; - v21[3] = v260; - v4.depth_enable = v262; - v4.stencil_enable = v264; - if (v265) { - g48.cpuTime += performance.now() - v266; - } - v6.offset = v268; - v6.count = v270; - v6.primitive = v272; - v12[g274] = v275; - v12[g277] = v278; - v12[g280] = v281; - v12[g283] = v284; - v12[g286] = v287; - v12[g289] = v290; - v12[g292] = v293; - v12[g295] = v296; - v12[g298] = v299; - v12[g301] = v302; - v12[g304] = v305; - v12[g307] = v308; - v12[g310] = v311; - if (v313) { - v8.destroyStream(v319); - } - g326.state = v327; - g326.x = v328; - g326.y = v329; - g326.z = v330; - g326.w = v331; - g326.buffer = v332; - g326.size = v333; - g326.normalized = v334; - g326.type = v335; - g326.offset = v336; - g326.stride = v337; - g326.divisor = v338; - if (v340) { - v8.destroyStream(v346); - } - g353.state = v354; - g353.x = v355; - g353.y = v356; - g353.z = v357; - g353.w = v358; - g353.buffer = v359; - g353.size = v360; - g353.normalized = v361; - g353.type = v362; - g353.offset = v363; - g353.stride = v364; - g353.divisor = v365; - if (v367) { - v8.destroyStream(v373); - } - g380.state = v381; - g380.x = v382; - g380.y = v383; - g380.z = v384; - g380.w = v385; - g380.buffer = v386; - g380.size = v387; - g380.normalized = v388; - g380.type = v389; - g380.offset = v390; - g380.stride = v391; - g380.divisor = v392; - if (v394) { - v8.destroyStream(v400); + v11.setVAO(null); + if (v685) { + g48.cpuTime += performance.now() - v686; } - g407.state = v408; - g407.x = v409; - g407.y = v410; - g407.z = v411; - g407.w = v412; - g407.buffer = v413; - g407.size = v414; - g407.normalized = v415; - g407.type = v416; - g407.offset = v417; - g407.stride = v418; - g407.divisor = v419; - v9.vert = v421; - v9.frag = v423; - v5.dirty = true; - }, - "batch": function(a0, a1) { - var v424, v425, v465, v466, v467, v468, v469, v470, v471, v475, v476, v477, v478, v479; - v424 = v14.angle_instanced_arrays; - v425 = v13.next; - if (v425 !== v13.cur) { - if (v425) { - v1.bindFramebuffer(36160, v425.framebuffer); + } + }; + }; + } + }); + + // src/generated/regl-codegen/fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7 + var require_fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7 = __commonJS({ + "src/generated/regl-codegen/fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7"(exports, module) { + module.exports = function anonymous(g0, g48, g95, g96, g103, g104, g107, g123, g141, g159, g177, g195, g199, g200, g203, g206, g208, g211, g213, g215, g219, g223, g225, g229, g233, g234, g253, g255, g257, g259, g261, g263, g265, g267, g269, g271, g273, g286, g288, g292, g294, g298, g300, g302, g305, g308, g311, g314, g317, g320, g323, g326, g329, g332, g335, g338, g341, g343, g356, g383, g410, g437, g464, g491, g504, g506, g542, g543, g544) { + "use strict"; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50, v51, v52, v53; + v1 = g0.gl; + v2 = g0.context; + v3 = g0.strings; + v4 = g0.next; + v5 = g0.current; + v6 = g0.draw; + v7 = g0.elements; + v8 = g0.buffer; + v9 = g0.shader; + v10 = g0.attributes; + v11 = g0.vao; + v12 = g0.uniforms; + v13 = g0.framebuffer; + v14 = g0.extensions; + v15 = g0.timer; + v16 = g0.isBufferArgs; + v17 = v4.blend_color; + v18 = v5.blend_color; + v19 = v4.blend_equation; + v20 = v5.blend_equation; + v21 = v4.blend_func; + v22 = v5.blend_func; + v23 = v4.depth_range; + v24 = v5.depth_range; + v25 = v4.colorMask; + v26 = v5.colorMask; + v27 = v4.polygonOffset_offset; + v28 = v5.polygonOffset_offset; + v29 = v4.sample_coverage; + v30 = v5.sample_coverage; + v31 = v4.stencil_func; + v32 = v5.stencil_func; + v33 = v4.stencil_opFront; + v34 = v5.stencil_opFront; + v35 = v4.stencil_opBack; + v36 = v5.stencil_opBack; + v37 = v4.scissor_box; + v38 = v5.scissor_box; + v39 = v4.viewport; + v40 = v5.viewport; + v41 = { + "points": 0, + "point": 0, + "lines": 1, + "line": 1, + "triangles": 4, + "triangle": 4, + "line loop": 2, + "line strip": 3, + "triangle strip": 5, + "triangle fan": 6 + }; + v42 = { + "never": 512, + "less": 513, + "<": 513, + "equal": 514, + "=": 514, + "==": 514, + "===": 514, + "lequal": 515, + "<=": 515, + "greater": 516, + ">": 516, + "notequal": 517, + "!=": 517, + "!==": 517, + "gequal": 518, + ">=": 518, + "always": 519 + }; + v43 = { + "0": 0, + "1": 1, + "zero": 0, + "one": 1, + "src color": 768, + "one minus src color": 769, + "src alpha": 770, + "one minus src alpha": 771, + "dst color": 774, + "one minus dst color": 775, + "dst alpha": 772, + "one minus dst alpha": 773, + "constant color": 32769, + "one minus constant color": 32770, + "constant alpha": 32771, + "one minus constant alpha": 32772, + "src alpha saturate": 776 + }; + v44 = { + "add": 32774, + "subtract": 32778, + "reverse subtract": 32779 + }; + v45 = { + "0": 0, + "zero": 0, + "keep": 7680, + "replace": 7681, + "increment": 7682, + "decrement": 7683, + "increment wrap": 34055, + "decrement wrap": 34056, + "invert": 5386 + }; + v46 = { + "int8": 5120, + "int16": 5122, + "int32": 5124, + "uint8": 5121, + "uint16": 5123, + "uint32": 5125, + "float": 5126, + "float32": 5126 + }; + v47 = { + "cw": 2304, + "ccw": 2305 + }; + v49 = {}; + v49.stride = 8; + v49.offset = 8; + v49.divisor = 1; + v50 = {}; + v50.stride = 8; + v50.offset = 16; + v50.divisor = 1; + v51 = {}; + v51.stride = 8; + v51.offset = 8; + v51.divisor = 1; + v52 = {}; + v52.stride = 8; + v52.offset = 16; + v52.divisor = 1; + v53 = {}; + v53.stride = 4; + v53.offset = 0; + v53.divisor = 1; + return { + "draw": function(a0) { + var v54, v55, v88, v89, v90, v91, v92, v93, v94, v97, v98, v99, v100, v101, v102, v105, v106, v108, v109, v110, v111, v112, v113, v114, v115, v116, v117, v118, v119, v120, v121, v122, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v139, v140, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v178, v179, v180, v181, v182, v183, v184, v185, v186, v187, v188, v189, v190, v191, v192, v193, v194, v196, v197, v198, v201, v202, v204, v205, v207, v209, v210, v212, v214, v216, v217, v218, v220, v221, v222, v224, v226, v227, v228, v230, v231, v232, v235, v236, v237, v238, v239, v240, v241; + v54 = v14.angle_instanced_arrays; + v55 = v13.next; + if (v55 !== v13.cur) { + if (v55) { + v1.bindFramebuffer(36160, v55.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v425; + v13.cur = v55; } if (v5.dirty) { - var v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v437, v438, v439, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v457, v458, v459, v460, v461, v462, v463, v464; - v426 = v4.dither; - if (v426 !== v5.dither) { - if (v426) { + var v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87; + v56 = v4.dither; + if (v56 !== v5.dither) { + if (v56) { v1.enable(3024); } else { v1.disable(3024); } - v5.dither = v426; - } - v427 = v19[0]; - v428 = v19[1]; - if (v427 !== v20[0] || v428 !== v20[1]) { - v1.blendEquationSeparate(v427, v428); - v20[0] = v427; - v20[1] = v428; + v5.dither = v56; } - v429 = v4.depth_func; - if (v429 !== v5.depth_func) { - v1.depthFunc(v429); - v5.depth_func = v429; + v57 = v4.depth_func; + if (v57 !== v5.depth_func) { + v1.depthFunc(v57); + v5.depth_func = v57; } - v430 = v23[0]; - v431 = v23[1]; - if (v430 !== v24[0] || v431 !== v24[1]) { - v1.depthRange(v430, v431); - v24[0] = v430; - v24[1] = v431; + v58 = v23[0]; + v59 = v23[1]; + if (v58 !== v24[0] || v59 !== v24[1]) { + v1.depthRange(v58, v59); + v24[0] = v58; + v24[1] = v59; } - v432 = v4.depth_mask; - if (v432 !== v5.depth_mask) { - v1.depthMask(v432); - v5.depth_mask = v432; + v60 = v4.depth_mask; + if (v60 !== v5.depth_mask) { + v1.depthMask(v60); + v5.depth_mask = v60; } - v433 = v25[0]; - v434 = v25[1]; - v435 = v25[2]; - v436 = v25[3]; - if (v433 !== v26[0] || v434 !== v26[1] || v435 !== v26[2] || v436 !== v26[3]) { - v1.colorMask(v433, v434, v435, v436); - v26[0] = v433; - v26[1] = v434; - v26[2] = v435; - v26[3] = v436; + v61 = v25[0]; + v62 = v25[1]; + v63 = v25[2]; + v64 = v25[3]; + if (v61 !== v26[0] || v62 !== v26[1] || v63 !== v26[2] || v64 !== v26[3]) { + v1.colorMask(v61, v62, v63, v64); + v26[0] = v61; + v26[1] = v62; + v26[2] = v63; + v26[3] = v64; } - v437 = v4.cull_enable; - if (v437 !== v5.cull_enable) { - if (v437) { + v65 = v4.cull_enable; + if (v65 !== v5.cull_enable) { + if (v65) { v1.enable(2884); } else { v1.disable(2884); } - v5.cull_enable = v437; + v5.cull_enable = v65; } - v438 = v4.cull_face; - if (v438 !== v5.cull_face) { - v1.cullFace(v438); - v5.cull_face = v438; + v66 = v4.cull_face; + if (v66 !== v5.cull_face) { + v1.cullFace(v66); + v5.cull_face = v66; } - v439 = v4.frontFace; - if (v439 !== v5.frontFace) { - v1.frontFace(v439); - v5.frontFace = v439; + v67 = v4.frontFace; + if (v67 !== v5.frontFace) { + v1.frontFace(v67); + v5.frontFace = v67; } - v440 = v4.lineWidth; - if (v440 !== v5.lineWidth) { - v1.lineWidth(v440); - v5.lineWidth = v440; + v68 = v4.lineWidth; + if (v68 !== v5.lineWidth) { + v1.lineWidth(v68); + v5.lineWidth = v68; } - v441 = v4.polygonOffset_enable; - if (v441 !== v5.polygonOffset_enable) { - if (v441) { + v69 = v4.polygonOffset_enable; + if (v69 !== v5.polygonOffset_enable) { + if (v69) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v441; + v5.polygonOffset_enable = v69; } - v442 = v27[0]; - v443 = v27[1]; - if (v442 !== v28[0] || v443 !== v28[1]) { - v1.polygonOffset(v442, v443); - v28[0] = v442; - v28[1] = v443; + v70 = v27[0]; + v71 = v27[1]; + if (v70 !== v28[0] || v71 !== v28[1]) { + v1.polygonOffset(v70, v71); + v28[0] = v70; + v28[1] = v71; } - v444 = v4.sample_alpha; - if (v444 !== v5.sample_alpha) { - if (v444) { + v72 = v4.sample_alpha; + if (v72 !== v5.sample_alpha) { + if (v72) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v444; + v5.sample_alpha = v72; } - v445 = v4.sample_enable; - if (v445 !== v5.sample_enable) { - if (v445) { + v73 = v4.sample_enable; + if (v73 !== v5.sample_enable) { + if (v73) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v445; - } - v446 = v29[0]; - v447 = v29[1]; - if (v446 !== v30[0] || v447 !== v30[1]) { - v1.sampleCoverage(v446, v447); - v30[0] = v446; - v30[1] = v447; - } - v448 = v4.stencil_mask; - if (v448 !== v5.stencil_mask) { - v1.stencilMask(v448); - v5.stencil_mask = v448; + v5.sample_enable = v73; } - v449 = v31[0]; - v450 = v31[1]; - v451 = v31[2]; - if (v449 !== v32[0] || v450 !== v32[1] || v451 !== v32[2]) { - v1.stencilFunc(v449, v450, v451); - v32[0] = v449; - v32[1] = v450; - v32[2] = v451; + v74 = v29[0]; + v75 = v29[1]; + if (v74 !== v30[0] || v75 !== v30[1]) { + v1.sampleCoverage(v74, v75); + v30[0] = v74; + v30[1] = v75; } - v452 = v33[0]; - v453 = v33[1]; - v454 = v33[2]; - v455 = v33[3]; - if (v452 !== v34[0] || v453 !== v34[1] || v454 !== v34[2] || v455 !== v34[3]) { - v1.stencilOpSeparate(v452, v453, v454, v455); - v34[0] = v452; - v34[1] = v453; - v34[2] = v454; - v34[3] = v455; + v76 = v4.stencil_mask; + if (v76 !== v5.stencil_mask) { + v1.stencilMask(v76); + v5.stencil_mask = v76; } - v456 = v35[0]; - v457 = v35[1]; - v458 = v35[2]; - v459 = v35[3]; - if (v456 !== v36[0] || v457 !== v36[1] || v458 !== v36[2] || v459 !== v36[3]) { - v1.stencilOpSeparate(v456, v457, v458, v459); - v36[0] = v456; - v36[1] = v457; - v36[2] = v458; - v36[3] = v459; + v77 = v31[0]; + v78 = v31[1]; + v79 = v31[2]; + if (v77 !== v32[0] || v78 !== v32[1] || v79 !== v32[2]) { + v1.stencilFunc(v77, v78, v79); + v32[0] = v77; + v32[1] = v78; + v32[2] = v79; } - v460 = v4.scissor_enable; - if (v460 !== v5.scissor_enable) { - if (v460) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v460; + v80 = v33[0]; + v81 = v33[1]; + v82 = v33[2]; + v83 = v33[3]; + if (v80 !== v34[0] || v81 !== v34[1] || v82 !== v34[2] || v83 !== v34[3]) { + v1.stencilOpSeparate(v80, v81, v82, v83); + v34[0] = v80; + v34[1] = v81; + v34[2] = v82; + v34[3] = v83; } - v461 = v37[0]; - v462 = v37[1]; - v463 = v37[2]; - v464 = v37[3]; - if (v461 !== v38[0] || v462 !== v38[1] || v463 !== v38[2] || v464 !== v38[3]) { - v1.scissor(v461, v462, v463, v464); - v38[0] = v461; - v38[1] = v462; - v38[2] = v463; - v38[3] = v464; + v84 = v35[0]; + v85 = v35[1]; + v86 = v35[2]; + v87 = v35[3]; + if (v84 !== v36[0] || v85 !== v36[1] || v86 !== v36[2] || v87 !== v36[3]) { + v1.stencilOpSeparate(v84, v85, v86, v87); + v36[0] = v84; + v36[1] = v85; + v36[2] = v86; + v36[3] = v87; } } - v465 = this["viewport"]; - v466 = v465.x | 0; - v467 = v465.y | 0; - v468 = "width" in v465 ? v465.width | 0 : v2.framebufferWidth - v466; - v469 = "height" in v465 ? v465.height | 0 : v2.framebufferHeight - v467; - v470 = v2.viewportWidth; - v2.viewportWidth = v468; - v471 = v2.viewportHeight; - v2.viewportHeight = v469; - v1.viewport(v466, v467, v468, v469); - v40[0] = v466; - v40[1] = v467; - v40[2] = v468; - v40[3] = v469; - v1.blendColor(0, 0, 0, 1); + v88 = a0["viewport"]; + v89 = v88.x | 0; + v90 = v88.y | 0; + v91 = "width" in v88 ? v88.width | 0 : v2.framebufferWidth - v89; + v92 = "height" in v88 ? v88.height | 0 : v2.framebufferHeight - v90; + v93 = v2.viewportWidth; + v2.viewportWidth = v91; + v94 = v2.viewportHeight; + v2.viewportHeight = v92; + v1.viewport(v89, v90, v91, v92); + v40[0] = v89; + v40[1] = v90; + v40[2] = v91; + v40[3] = v92; + v1.blendColor(0, 0, 0, 0); v18[0] = 0; v18[1] = 0; v18[2] = 0; - v18[3] = 1; - if (g472) { + v18[3] = 0; + if (g95) { v1.enable(3042); } else { v1.disable(3042); } - v5.blend_enable = g472; - v1.blendFuncSeparate(770, 771, 773, 1); - v22[0] = 770; - v22[1] = 771; + v5.blend_enable = g95; + v1.blendEquationSeparate(32774, 32774); + v20[0] = 32774; + v20[1] = 32774; + v1.blendFuncSeparate(770, 771, 773, 1); + v22[0] = 770; + v22[1] = 771; v22[2] = 773; v22[3] = 1; - if (g473) { + v97 = g96.call(this, v2, a0, 0); + if (v97) { v1.enable(2929); } else { v1.disable(2929); } - v5.depth_enable = g473; - if (g474) { + v5.depth_enable = v97; + v98 = a0["viewport"]; + v99 = v98.x | 0; + v100 = v98.y | 0; + v101 = "width" in v98 ? v98.width | 0 : v2.framebufferWidth - v99; + v102 = "height" in v98 ? v98.height | 0 : v2.framebufferHeight - v100; + v1.scissor(v99, v100, v101, v102); + v38[0] = v99; + v38[1] = v100; + v38[2] = v101; + v38[3] = v102; + if (g103) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = g103; + if (g104) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = g474; - v475 = v5.profile; - if (v475) { - v476 = performance.now(); - g48.count += a1; + v5.stencil_enable = g104; + v105 = v5.profile; + if (v105) { + v106 = performance.now(); + g48.count++; } - v1.useProgram(g104.program); - v477 = v14.angle_instanced_arrays; - var v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v490, v491, v492, v493, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v504, v505, v506, v507, v508, v509, v510, v511, v512, v513, v514, v515, v516, v517, v518, v519, v520, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541, v542, v543, v544, v545, v546, v547, v548, v549, v550, v551, v552, v553, v554, v555, v556, v557, v558, v595, v598; + v1.useProgram(g107.program); + v108 = v14.angle_instanced_arrays; v11.setVAO(null); - v480 = this["charBuffer"]; - v481 = false; - v482 = 1; - v483 = 0; - v484 = 0; - v485 = 0; - v486 = 0; - v487 = null; - v488 = 0; - v489 = false; - v490 = 5126; - v491 = 0; - v492 = 0; - v493 = 0; - if (v16(v480)) { - v481 = true; - v487 = v8.createStream(34962, v480); - v490 = v487.dtype; + v109 = a0["positionBuffer"]; + v49.buffer = v109; + v110 = false; + v111 = 1; + v112 = 0; + v113 = 0; + v114 = 0; + v115 = 0; + v116 = null; + v117 = 0; + v118 = false; + v119 = 5126; + v120 = 0; + v121 = 0; + v122 = 0; + if (v16(v49)) { + v110 = true; + v116 = v8.createStream(34962, v49); + v119 = v116.dtype; } else { - v487 = v8.getBuffer(v480); - if (v487) { - v490 = v487.dtype; - } else if ("constant" in v480) { - v482 = 2; - if (typeof v480.constant === "number") { - v483 = v480.constant; - v484 = v485 = v486 = 0; + v116 = v8.getBuffer(v49); + if (v116) { + v119 = v116.dtype; + } else if ("constant" in v49) { + v111 = 2; + if (typeof v49.constant === "number") { + v112 = v49.constant; + v113 = v114 = v115 = 0; } else { - v483 = v480.constant.length > 0 ? v480.constant[0] : 0; - v484 = v480.constant.length > 1 ? v480.constant[1] : 0; - v485 = v480.constant.length > 2 ? v480.constant[2] : 0; - v486 = v480.constant.length > 3 ? v480.constant[3] : 0; + v112 = v49.constant.length > 0 ? v49.constant[0] : 0; + v113 = v49.constant.length > 1 ? v49.constant[1] : 0; + v114 = v49.constant.length > 2 ? v49.constant[2] : 0; + v115 = v49.constant.length > 3 ? v49.constant[3] : 0; } } else { - if (v16(v480.buffer)) { - v487 = v8.createStream(34962, v480.buffer); + if (v16(v49.buffer)) { + v116 = v8.createStream(34962, v49.buffer); } else { - v487 = v8.getBuffer(v480.buffer); + v116 = v8.getBuffer(v49.buffer); } - v490 = "type" in v480 ? v46[v480.type] : v487.dtype; - v489 = !!v480.normalized; - v488 = v480.size | 0; - v491 = v480.offset | 0; - v492 = v480.stride | 0; - v493 = v480.divisor | 0; + v119 = "type" in v49 ? v46[v49.type] : v116.dtype; + v118 = !!v49.normalized; + v117 = v49.size | 0; + v120 = v49.offset | 0; + v121 = v49.stride | 0; + v122 = v49.divisor | 0; } } - v494 = g120.location; - v495 = v10[v494]; - if (v482 === 1) { - if (!v495.buffer) { - v1.enableVertexAttribArray(v494); + v124 = g123.location; + v125 = v10[v124]; + if (v111 === 1) { + if (!v125.buffer) { + v1.enableVertexAttribArray(v124); } - v496 = v488 || 1; - if (v495.type !== v490 || v495.size !== v496 || v495.buffer !== v487 || v495.normalized !== v489 || v495.offset !== v491 || v495.stride !== v492) { - v1.bindBuffer(34962, v487.buffer); - v1.vertexAttribPointer(v494, v496, v490, v489, v492, v491); - v495.type = v490; - v495.size = v496; - v495.buffer = v487; - v495.normalized = v489; - v495.offset = v491; - v495.stride = v492; + v126 = v117 || 2; + if (v125.type !== v119 || v125.size !== v126 || v125.buffer !== v116 || v125.normalized !== v118 || v125.offset !== v120 || v125.stride !== v121) { + v1.bindBuffer(34962, v116.buffer); + v1.vertexAttribPointer(v124, v126, v119, v118, v121, v120); + v125.type = v119; + v125.size = v126; + v125.buffer = v116; + v125.normalized = v118; + v125.offset = v120; + v125.stride = v121; } - if (v495.divisor !== v493) { - v477.vertexAttribDivisorANGLE(v494, v493); - v495.divisor = v493; + if (v125.divisor !== v122) { + v108.vertexAttribDivisorANGLE(v124, v122); + v125.divisor = v122; } } else { - if (v495.buffer) { - v1.disableVertexAttribArray(v494); - v495.buffer = null; + if (v125.buffer) { + v1.disableVertexAttribArray(v124); + v125.buffer = null; } - if (v495.x !== v483 || v495.y !== v484 || v495.z !== v485 || v495.w !== v486) { - v1.vertexAttrib4f(v494, v483, v484, v485, v486); - v495.x = v483; - v495.y = v484; - v495.z = v485; - v495.w = v486; + if (v125.x !== v112 || v125.y !== v113 || v125.z !== v114 || v125.w !== v115) { + v1.vertexAttrib4f(v124, v112, v113, v114, v115); + v125.x = v112; + v125.y = v113; + v125.z = v114; + v125.w = v115; } } - v497 = this["sizeBuffer"]; - v49.buffer = v497; - v498 = false; - v499 = 1; - v500 = 0; - v501 = 0; - v502 = 0; - v503 = 0; - v504 = null; - v505 = 0; - v506 = false; - v507 = 5126; - v508 = 0; - v509 = 0; - v510 = 0; - if (v16(v49)) { - v498 = true; - v504 = v8.createStream(34962, v49); - v507 = v504.dtype; + v127 = a0["positionFractBuffer"]; + v51.buffer = v127; + v128 = false; + v129 = 1; + v130 = 0; + v131 = 0; + v132 = 0; + v133 = 0; + v134 = null; + v135 = 0; + v136 = false; + v137 = 5126; + v138 = 0; + v139 = 0; + v140 = 0; + if (v16(v51)) { + v128 = true; + v134 = v8.createStream(34962, v51); + v137 = v134.dtype; } else { - v504 = v8.getBuffer(v49); - if (v504) { - v507 = v504.dtype; - } else if ("constant" in v49) { - v499 = 2; - if (typeof v49.constant === "number") { - v500 = v49.constant; - v501 = v502 = v503 = 0; + v134 = v8.getBuffer(v51); + if (v134) { + v137 = v134.dtype; + } else if ("constant" in v51) { + v129 = 2; + if (typeof v51.constant === "number") { + v130 = v51.constant; + v131 = v132 = v133 = 0; } else { - v500 = v49.constant.length > 0 ? v49.constant[0] : 0; - v501 = v49.constant.length > 1 ? v49.constant[1] : 0; - v502 = v49.constant.length > 2 ? v49.constant[2] : 0; - v503 = v49.constant.length > 3 ? v49.constant[3] : 0; + v130 = v51.constant.length > 0 ? v51.constant[0] : 0; + v131 = v51.constant.length > 1 ? v51.constant[1] : 0; + v132 = v51.constant.length > 2 ? v51.constant[2] : 0; + v133 = v51.constant.length > 3 ? v51.constant[3] : 0; } } else { - if (v16(v49.buffer)) { - v504 = v8.createStream(34962, v49.buffer); + if (v16(v51.buffer)) { + v134 = v8.createStream(34962, v51.buffer); } else { - v504 = v8.getBuffer(v49.buffer); + v134 = v8.getBuffer(v51.buffer); } - v507 = "type" in v49 ? v46[v49.type] : v504.dtype; - v506 = !!v49.normalized; - v505 = v49.size | 0; - v508 = v49.offset | 0; - v509 = v49.stride | 0; - v510 = v49.divisor | 0; + v137 = "type" in v51 ? v46[v51.type] : v134.dtype; + v136 = !!v51.normalized; + v135 = v51.size | 0; + v138 = v51.offset | 0; + v139 = v51.stride | 0; + v140 = v51.divisor | 0; } } - v511 = g138.location; - v512 = v10[v511]; - if (v499 === 1) { - if (!v512.buffer) { - v1.enableVertexAttribArray(v511); + v142 = g141.location; + v143 = v10[v142]; + if (v129 === 1) { + if (!v143.buffer) { + v1.enableVertexAttribArray(v142); } - v513 = v505 || 1; - if (v512.type !== v507 || v512.size !== v513 || v512.buffer !== v504 || v512.normalized !== v506 || v512.offset !== v508 || v512.stride !== v509) { - v1.bindBuffer(34962, v504.buffer); - v1.vertexAttribPointer(v511, v513, v507, v506, v509, v508); - v512.type = v507; - v512.size = v513; - v512.buffer = v504; - v512.normalized = v506; - v512.offset = v508; - v512.stride = v509; + v144 = v135 || 2; + if (v143.type !== v137 || v143.size !== v144 || v143.buffer !== v134 || v143.normalized !== v136 || v143.offset !== v138 || v143.stride !== v139) { + v1.bindBuffer(34962, v134.buffer); + v1.vertexAttribPointer(v142, v144, v137, v136, v139, v138); + v143.type = v137; + v143.size = v144; + v143.buffer = v134; + v143.normalized = v136; + v143.offset = v138; + v143.stride = v139; } - if (v512.divisor !== v510) { - v477.vertexAttribDivisorANGLE(v511, v510); - v512.divisor = v510; + if (v143.divisor !== v140) { + v108.vertexAttribDivisorANGLE(v142, v140); + v143.divisor = v140; } } else { - if (v512.buffer) { - v1.disableVertexAttribArray(v511); - v512.buffer = null; + if (v143.buffer) { + v1.disableVertexAttribArray(v142); + v143.buffer = null; } - if (v512.x !== v500 || v512.y !== v501 || v512.z !== v502 || v512.w !== v503) { - v1.vertexAttrib4f(v511, v500, v501, v502, v503); - v512.x = v500; - v512.y = v501; - v512.z = v502; - v512.w = v503; + if (v143.x !== v130 || v143.y !== v131 || v143.z !== v132 || v143.w !== v133) { + v1.vertexAttrib4f(v142, v130, v131, v132, v133); + v143.x = v130; + v143.y = v131; + v143.z = v132; + v143.w = v133; } } - v514 = this["position"]; - v515 = false; - v516 = 1; - v517 = 0; - v518 = 0; - v519 = 0; - v520 = 0; - v521 = null; - v522 = 0; - v523 = false; - v524 = 5126; - v525 = 0; - v526 = 0; - v527 = 0; - if (v16(v514)) { - v515 = true; - v521 = v8.createStream(34962, v514); - v524 = v521.dtype; + v145 = a0["positionBuffer"]; + v50.buffer = v145; + v146 = false; + v147 = 1; + v148 = 0; + v149 = 0; + v150 = 0; + v151 = 0; + v152 = null; + v153 = 0; + v154 = false; + v155 = 5126; + v156 = 0; + v157 = 0; + v158 = 0; + if (v16(v50)) { + v146 = true; + v152 = v8.createStream(34962, v50); + v155 = v152.dtype; } else { - v521 = v8.getBuffer(v514); - if (v521) { - v524 = v521.dtype; - } else if ("constant" in v514) { - v516 = 2; - if (typeof v514.constant === "number") { - v517 = v514.constant; - v518 = v519 = v520 = 0; + v152 = v8.getBuffer(v50); + if (v152) { + v155 = v152.dtype; + } else if ("constant" in v50) { + v147 = 2; + if (typeof v50.constant === "number") { + v148 = v50.constant; + v149 = v150 = v151 = 0; } else { - v517 = v514.constant.length > 0 ? v514.constant[0] : 0; - v518 = v514.constant.length > 1 ? v514.constant[1] : 0; - v519 = v514.constant.length > 2 ? v514.constant[2] : 0; - v520 = v514.constant.length > 3 ? v514.constant[3] : 0; + v148 = v50.constant.length > 0 ? v50.constant[0] : 0; + v149 = v50.constant.length > 1 ? v50.constant[1] : 0; + v150 = v50.constant.length > 2 ? v50.constant[2] : 0; + v151 = v50.constant.length > 3 ? v50.constant[3] : 0; } } else { - if (v16(v514.buffer)) { - v521 = v8.createStream(34962, v514.buffer); + if (v16(v50.buffer)) { + v152 = v8.createStream(34962, v50.buffer); } else { - v521 = v8.getBuffer(v514.buffer); + v152 = v8.getBuffer(v50.buffer); } - v524 = "type" in v514 ? v46[v514.type] : v521.dtype; - v523 = !!v514.normalized; - v522 = v514.size | 0; - v525 = v514.offset | 0; - v526 = v514.stride | 0; - v527 = v514.divisor | 0; + v155 = "type" in v50 ? v46[v50.type] : v152.dtype; + v154 = !!v50.normalized; + v153 = v50.size | 0; + v156 = v50.offset | 0; + v157 = v50.stride | 0; + v158 = v50.divisor | 0; } } - v528 = g156.location; - v529 = v10[v528]; - if (v516 === 1) { - if (!v529.buffer) { - v1.enableVertexAttribArray(v528); + v160 = g159.location; + v161 = v10[v160]; + if (v147 === 1) { + if (!v161.buffer) { + v1.enableVertexAttribArray(v160); } - v530 = v522 || 2; - if (v529.type !== v524 || v529.size !== v530 || v529.buffer !== v521 || v529.normalized !== v523 || v529.offset !== v525 || v529.stride !== v526) { - v1.bindBuffer(34962, v521.buffer); - v1.vertexAttribPointer(v528, v530, v524, v523, v526, v525); - v529.type = v524; - v529.size = v530; - v529.buffer = v521; - v529.normalized = v523; - v529.offset = v525; - v529.stride = v526; + v162 = v153 || 2; + if (v161.type !== v155 || v161.size !== v162 || v161.buffer !== v152 || v161.normalized !== v154 || v161.offset !== v156 || v161.stride !== v157) { + v1.bindBuffer(34962, v152.buffer); + v1.vertexAttribPointer(v160, v162, v155, v154, v157, v156); + v161.type = v155; + v161.size = v162; + v161.buffer = v152; + v161.normalized = v154; + v161.offset = v156; + v161.stride = v157; } - if (v529.divisor !== v527) { - v477.vertexAttribDivisorANGLE(v528, v527); - v529.divisor = v527; + if (v161.divisor !== v158) { + v108.vertexAttribDivisorANGLE(v160, v158); + v161.divisor = v158; } } else { - if (v529.buffer) { - v1.disableVertexAttribArray(v528); - v529.buffer = null; + if (v161.buffer) { + v1.disableVertexAttribArray(v160); + v161.buffer = null; } - if (v529.x !== v517 || v529.y !== v518 || v529.z !== v519 || v529.w !== v520) { - v1.vertexAttrib4f(v528, v517, v518, v519, v520); - v529.x = v517; - v529.y = v518; - v529.z = v519; - v529.w = v520; + if (v161.x !== v148 || v161.y !== v149 || v161.z !== v150 || v161.w !== v151) { + v1.vertexAttrib4f(v160, v148, v149, v150, v151); + v161.x = v148; + v161.y = v149; + v161.z = v150; + v161.w = v151; } } - v531 = this["sizeBuffer"]; - v50.buffer = v531; - v532 = false; - v533 = 1; - v534 = 0; - v535 = 0; - v536 = 0; - v537 = 0; - v538 = null; - v539 = 0; - v540 = false; - v541 = 5126; - v542 = 0; - v543 = 0; - v544 = 0; - if (v16(v50)) { - v532 = true; - v538 = v8.createStream(34962, v50); - v541 = v538.dtype; + v163 = a0["positionFractBuffer"]; + v52.buffer = v163; + v164 = false; + v165 = 1; + v166 = 0; + v167 = 0; + v168 = 0; + v169 = 0; + v170 = null; + v171 = 0; + v172 = false; + v173 = 5126; + v174 = 0; + v175 = 0; + v176 = 0; + if (v16(v52)) { + v164 = true; + v170 = v8.createStream(34962, v52); + v173 = v170.dtype; } else { - v538 = v8.getBuffer(v50); - if (v538) { - v541 = v538.dtype; - } else if ("constant" in v50) { - v533 = 2; - if (typeof v50.constant === "number") { - v534 = v50.constant; - v535 = v536 = v537 = 0; + v170 = v8.getBuffer(v52); + if (v170) { + v173 = v170.dtype; + } else if ("constant" in v52) { + v165 = 2; + if (typeof v52.constant === "number") { + v166 = v52.constant; + v167 = v168 = v169 = 0; } else { - v534 = v50.constant.length > 0 ? v50.constant[0] : 0; - v535 = v50.constant.length > 1 ? v50.constant[1] : 0; - v536 = v50.constant.length > 2 ? v50.constant[2] : 0; - v537 = v50.constant.length > 3 ? v50.constant[3] : 0; + v166 = v52.constant.length > 0 ? v52.constant[0] : 0; + v167 = v52.constant.length > 1 ? v52.constant[1] : 0; + v168 = v52.constant.length > 2 ? v52.constant[2] : 0; + v169 = v52.constant.length > 3 ? v52.constant[3] : 0; } } else { - if (v16(v50.buffer)) { - v538 = v8.createStream(34962, v50.buffer); + if (v16(v52.buffer)) { + v170 = v8.createStream(34962, v52.buffer); } else { - v538 = v8.getBuffer(v50.buffer); + v170 = v8.getBuffer(v52.buffer); } - v541 = "type" in v50 ? v46[v50.type] : v538.dtype; - v540 = !!v50.normalized; - v539 = v50.size | 0; - v542 = v50.offset | 0; - v543 = v50.stride | 0; - v544 = v50.divisor | 0; + v173 = "type" in v52 ? v46[v52.type] : v170.dtype; + v172 = !!v52.normalized; + v171 = v52.size | 0; + v174 = v52.offset | 0; + v175 = v52.stride | 0; + v176 = v52.divisor | 0; } } - v545 = g174.location; - v546 = v10[v545]; - if (v533 === 1) { - if (!v546.buffer) { - v1.enableVertexAttribArray(v545); + v178 = g177.location; + v179 = v10[v178]; + if (v165 === 1) { + if (!v179.buffer) { + v1.enableVertexAttribArray(v178); } - v547 = v539 || 1; - if (v546.type !== v541 || v546.size !== v547 || v546.buffer !== v538 || v546.normalized !== v540 || v546.offset !== v542 || v546.stride !== v543) { - v1.bindBuffer(34962, v538.buffer); - v1.vertexAttribPointer(v545, v547, v541, v540, v543, v542); - v546.type = v541; - v546.size = v547; - v546.buffer = v538; - v546.normalized = v540; - v546.offset = v542; - v546.stride = v543; + v180 = v171 || 2; + if (v179.type !== v173 || v179.size !== v180 || v179.buffer !== v170 || v179.normalized !== v172 || v179.offset !== v174 || v179.stride !== v175) { + v1.bindBuffer(34962, v170.buffer); + v1.vertexAttribPointer(v178, v180, v173, v172, v175, v174); + v179.type = v173; + v179.size = v180; + v179.buffer = v170; + v179.normalized = v172; + v179.offset = v174; + v179.stride = v175; } - if (v546.divisor !== v544) { - v477.vertexAttribDivisorANGLE(v545, v544); - v546.divisor = v544; + if (v179.divisor !== v176) { + v108.vertexAttribDivisorANGLE(v178, v176); + v179.divisor = v176; } } else { - if (v546.buffer) { - v1.disableVertexAttribArray(v545); - v546.buffer = null; + if (v179.buffer) { + v1.disableVertexAttribArray(v178); + v179.buffer = null; } - if (v546.x !== v534 || v546.y !== v535 || v546.z !== v536 || v546.w !== v537) { - v1.vertexAttrib4f(v545, v534, v535, v536, v537); - v546.x = v534; - v546.y = v535; - v546.z = v536; - v546.w = v537; + if (v179.x !== v166 || v179.y !== v167 || v179.z !== v168 || v179.w !== v169) { + v1.vertexAttrib4f(v178, v166, v167, v168, v169); + v179.x = v166; + v179.y = v167; + v179.z = v168; + v179.w = v169; } } - v548 = this["scale"]; - v549 = v548[0]; - v550 = v548[1]; - v1.uniform2f(g214.location, v549, v550); - v551 = this["translate"]; - v552 = v551[0]; - v553 = v551[1]; - v1.uniform2f(g218.location, v552, v553); - v554 = this["viewportArray"]; - v555 = v554[0]; - v556 = v554[1]; - v557 = v554[2]; - v558 = v554[3]; - v1.uniform4f(g222.location, v555, v556, v557, v558); - v595 = v6.elements; - if (v595) { - v1.bindBuffer(34963, v595.buffer.buffer); - } else if (v11.currentVAO) { - v595 = v7.getElements(v11.currentVAO.elements); - if (v595) v1.bindBuffer(34963, v595.buffer.buffer); - } - v598 = v6.instances; - for (v478 = 0; v478 < a1; ++v478) { - v479 = a0[v478]; - var v559, v560, v561, v562, v563, v564, v565, v566, v567, v568, v569, v570, v571, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v596, v597; - v559 = v479["align"]; - if (!v478 || v560 !== v559) { - v560 = v559; - v1.uniform1f(g178.location, v559); - } - v561 = g181.call(this, v2, v479, v478); - if (v561 && v561._reglType === "framebuffer") { - v561 = v561.color[0]; - } - v562 = v561._texture; - v1.uniform1i(g180.location, v562.bind()); - v563 = g185.call(this, v2, v479, v478); - v564 = v563[0]; - v566 = v563[1]; - if (!v478 || v565 !== v564 || v567 !== v566) { - v565 = v564; - v567 = v566; - v1.uniform2f(g184.location, v564, v566); - } - v568 = g190.call(this, v2, v479, v478); - v569 = v568[0]; - v571 = v568[1]; - if (!v478 || v570 !== v569 || v572 !== v571) { - v570 = v569; - v572 = v571; - v1.uniform2f(g189.location, v569, v571); - } - v573 = v479["baseline"]; - if (!v478 || v574 !== v573) { - v574 = v573; - v1.uniform1f(g194.location, v573); - } - v575 = g197.call(this, v2, v479, v478); - if (!v478 || v576 !== v575) { - v576 = v575; - v1.uniform1f(g196.location, v575); + v181 = a0["colorBuffer"]; + v53.buffer = v181; + v182 = false; + v183 = 1; + v184 = 0; + v185 = 0; + v186 = 0; + v187 = 0; + v188 = null; + v189 = 0; + v190 = false; + v191 = 5126; + v192 = 0; + v193 = 0; + v194 = 0; + if (v16(v53)) { + v182 = true; + v188 = v8.createStream(34962, v53); + v191 = v188.dtype; + } else { + v188 = v8.getBuffer(v53); + if (v188) { + v191 = v188.dtype; + } else if ("constant" in v53) { + v183 = 2; + if (typeof v53.constant === "number") { + v184 = v53.constant; + v185 = v186 = v187 = 0; + } else { + v184 = v53.constant.length > 0 ? v53.constant[0] : 0; + v185 = v53.constant.length > 1 ? v53.constant[1] : 0; + v186 = v53.constant.length > 2 ? v53.constant[2] : 0; + v187 = v53.constant.length > 3 ? v53.constant[3] : 0; + } + } else { + if (v16(v53.buffer)) { + v188 = v8.createStream(34962, v53.buffer); + } else { + v188 = v8.getBuffer(v53.buffer); + } + v191 = "type" in v53 ? v46[v53.type] : v188.dtype; + v190 = !!v53.normalized; + v189 = v53.size | 0; + v192 = v53.offset | 0; + v193 = v53.stride | 0; + v194 = v53.divisor | 0; } - v577 = v479["color"]; - v578 = v577[0]; - v580 = v577[1]; - v582 = v577[2]; - v584 = v577[3]; - if (!v478 || v579 !== v578 || v581 !== v580 || v583 !== v582 || v585 !== v584) { - v579 = v578; - v581 = v580; - v583 = v582; - v585 = v584; - v1.uniform4f(g199.location, v578, v580, v582, v584); + } + v196 = g195.location; + v197 = v10[v196]; + if (v183 === 1) { + if (!v197.buffer) { + v1.enableVertexAttribArray(v196); } - v586 = g206.call(this, v2, v479, v478); - if (!v478 || v587 !== v586) { - v587 = v586; - v1.uniform1f(g205.location, v586); + v198 = v189 || 4; + if (v197.type !== v191 || v197.size !== v198 || v197.buffer !== v188 || v197.normalized !== v190 || v197.offset !== v192 || v197.stride !== v193) { + v1.bindBuffer(34962, v188.buffer); + v1.vertexAttribPointer(v196, v198, v191, v190, v193, v192); + v197.type = v191; + v197.size = v198; + v197.buffer = v188; + v197.normalized = v190; + v197.offset = v192; + v197.stride = v193; } - v588 = v479["opacity"]; - if (!v478 || v589 !== v588) { - v589 = v588; - v1.uniform1f(g208.location, v588); + if (v197.divisor !== v194) { + v108.vertexAttribDivisorANGLE(v196, v194); + v197.divisor = v194; } - v590 = v479["positionOffset"]; - v591 = v590[0]; - v593 = v590[1]; - if (!v478 || v592 !== v591 || v594 !== v593) { - v592 = v591; - v594 = v593; - v1.uniform2f(g210.location, v591, v593); + } else { + if (v197.buffer) { + v1.disableVertexAttribArray(v196); + v197.buffer = null; } - v596 = v479["offset"]; - v597 = v479["count"]; - if (v597) { - if (v598 > 0) { - if (v595) { - v477.drawElementsInstancedANGLE(0, v597, v595.type, v596 << (v595.type - 5121 >> 1), v598); - } else { - v477.drawArraysInstancedANGLE(0, v596, v597, v598); - } - } else if (v598 < 0) { - if (v595) { - v1.drawElements(0, v597, v595.type, v596 << (v595.type - 5121 >> 1)); - } else { - v1.drawArrays(0, v596, v597); - } - } - v562.unbind(); + if (v197.x !== v184 || v197.y !== v185 || v197.z !== v186 || v197.w !== v187) { + v1.vertexAttrib4f(v196, v184, v185, v186, v187); + v197.x = v184; + v197.y = v185; + v197.z = v186; + v197.w = v187; } } - if (v481) { - v8.destroyStream(v487); + v201 = g200.location; + v202 = v10[v201]; + if (!v202.buffer) { + v1.enableVertexAttribArray(v201); } - if (v498) { - v8.destroyStream(v504); + if (v202.type !== 5126 || v202.size !== 1 || v202.buffer !== g199 || v202.normalized !== false || v202.offset !== 0 || v202.stride !== 8) { + v1.bindBuffer(34962, g199.buffer); + v1.vertexAttribPointer(v201, 1, 5126, false, 8, 0); + v202.type = 5126; + v202.size = 1; + v202.buffer = g199; + v202.normalized = false; + v202.offset = 0; + v202.stride = 8; } - if (v515) { - v8.destroyStream(v521); + if (v202.divisor !== 0) { + v108.vertexAttribDivisorANGLE(v201, 0); + v202.divisor = 0; } - if (v532) { - v8.destroyStream(v538); + v204 = g203.location; + v205 = v10[v204]; + if (!v205.buffer) { + v1.enableVertexAttribArray(v204); + } + if (v205.type !== 5126 || v205.size !== 1 || v205.buffer !== g199 || v205.normalized !== false || v205.offset !== 4 || v205.stride !== 8) { + v1.bindBuffer(34962, g199.buffer); + v1.vertexAttribPointer(v204, 1, 5126, false, 8, 4); + v205.type = 5126; + v205.size = 1; + v205.buffer = g199; + v205.normalized = false; + v205.offset = 4; + v205.stride = 8; + } + if (v205.divisor !== 0) { + v108.vertexAttribDivisorANGLE(v204, 0); + v205.divisor = 0; + } + v207 = a0["dashLength"]; + v1.uniform1f(g206.location, v207); + v209 = a0["dashTexture"]; + if (v209 && v209._reglType === "framebuffer") { + v209 = v209.color[0]; + } + v210 = v209._texture; + v1.uniform1i(g208.location, v210.bind()); + v212 = a0["depth"]; + v1.uniform1f(g211.location, v212); + v214 = a0["opacity"]; + v1.uniform1f(g213.location, v214); + v216 = a0["scale"]; + v217 = v216[0]; + v218 = v216[1]; + v1.uniform2f(g215.location, v217, v218); + v220 = a0["scaleFract"]; + v221 = v220[0]; + v222 = v220[1]; + v1.uniform2f(g219.location, v221, v222); + v224 = a0["thickness"]; + v1.uniform1f(g223.location, v224); + v226 = a0["translate"]; + v227 = v226[0]; + v228 = v226[1]; + v1.uniform2f(g225.location, v227, v228); + v230 = a0["translateFract"]; + v231 = v230[0]; + v232 = v230[1]; + v1.uniform2f(g229.location, v231, v232); + v235 = g234.call(this, v2, a0, 0); + v236 = v235[0]; + v237 = v235[1]; + v238 = v235[2]; + v239 = v235[3]; + v1.uniform4f(g233.location, v236, v237, v238, v239); + v240 = v6.elements; + if (v240) { + v1.bindBuffer(34963, v240.buffer.buffer); + } else if (v11.currentVAO) { + v240 = v7.getElements(v11.currentVAO.elements); + if (v240) v1.bindBuffer(34963, v240.buffer.buffer); + } + v241 = a0["count"]; + if (v241 > 0) { + if (v240) { + v108.drawElementsInstancedANGLE(5, 4, v240.type, 0 << (v240.type - 5121 >> 1), v241); + } else { + v108.drawArraysInstancedANGLE(5, 0, 4, v241); + } + } else if (v241 < 0) { + if (v240) { + v1.drawElements(5, 4, v240.type, 0 << (v240.type - 5121 >> 1)); + } else { + v1.drawArrays(5, 0, 4); + } } v5.dirty = true; v11.setVAO(null); - v2.viewportWidth = v470; - v2.viewportHeight = v471; - if (v475) { - g48.cpuTime += performance.now() - v476; + v2.viewportWidth = v93; + v2.viewportHeight = v94; + if (v105) { + g48.cpuTime += performance.now() - v106; } - } - }; - }; - } - }); - - // src/traces/scattergl/regl_precompiled.js - var require_regl_precompiled = __commonJS({ - "src/traces/scattergl/regl_precompiled.js"(exports, module) { - "use strict"; - var v0 = require_e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b(); - var v1 = require_cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81(); - var v2 = require_fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623(); - var v3 = require_fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7(); - var v4 = require_db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d(); - var v5 = require_e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210(); - var v6 = require_dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5(); - var v7 = require_bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019(); - var v8 = require_a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923(); - var v9 = require_aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034(); - module.exports = { - "3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b": v0, - "cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81": v1, - "8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623": v2, - "fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7": v3, - "db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d": v4, - "49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210": v5, - "dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5": v6, - "bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019": v7, - "6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923": v8, - "8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034": v9 - }; - } - }); - - // src/traces/scattergl/plot_strict.js - var require_plot_strict = __commonJS({ - "src/traces/scattergl/plot_strict.js"(exports, module) { - "use strict"; - var plot = require_plot19(); - var reglPrecompiled = require_regl_precompiled(); - Object.assign(plot.reglPrecompiled, reglPrecompiled); - module.exports = plot; - } - }); - - // src/traces/scattergl/strict.js - var require_strict = __commonJS({ - "src/traces/scattergl/strict.js"(exports, module) { - "use strict"; - var index = require_base_index(); - index.plot = require_plot_strict(); - module.exports = index; - } - }); - - // src/traces/splom/attributes.js - var require_attributes51 = __commonJS({ - "src/traces/splom/attributes.js"(exports, module) { - "use strict"; - var scatterAttrs = require_attributes12(); - var colorScaleAttrs = require_attributes8(); - var axisHoverFormat = require_axis_format_attributes().axisHoverFormat; - var { hovertemplateAttrs, templatefallbackAttrs } = require_template_attributes(); - var scatterGlAttrs = require_attributes50(); - var cartesianIdRegex = require_constants2().idRegex; - var templatedArray = require_plot_template().templatedArray; - var extendFlat = require_extend().extendFlat; - var scatterMarkerAttrs = scatterAttrs.marker; - var scatterMarkerLineAttrs = scatterMarkerAttrs.line; - var markerLineAttrs = extendFlat(colorScaleAttrs("marker.line", { editTypeOverride: "calc" }), { - width: extendFlat({}, scatterMarkerLineAttrs.width, { editType: "calc" }), - editType: "calc" - }); - var markerAttrs = extendFlat(colorScaleAttrs("marker"), { - symbol: scatterMarkerAttrs.symbol, - angle: scatterMarkerAttrs.angle, - size: extendFlat({}, scatterMarkerAttrs.size, { editType: "markerSize" }), - sizeref: scatterMarkerAttrs.sizeref, - sizemin: scatterMarkerAttrs.sizemin, - sizemode: scatterMarkerAttrs.sizemode, - opacity: scatterMarkerAttrs.opacity, - colorbar: scatterMarkerAttrs.colorbar, - line: markerLineAttrs, - editType: "calc" - }); - markerAttrs.color.editType = markerAttrs.cmin.editType = markerAttrs.cmax.editType = "style"; - function makeAxesValObject(axLetter) { - return { - valType: "info_array", - freeLength: true, - editType: "calc", - items: { - valType: "subplotid", - regex: cartesianIdRegex[axLetter], - editType: "plot" - } - }; - } - module.exports = { - dimensions: templatedArray("dimension", { - visible: { - valType: "boolean", - dflt: true, - editType: "calc" - }, - label: { - valType: "string", - editType: "calc" - }, - values: { - valType: "data_array", - editType: "calc+clearAxisTypes" - }, - axis: { - type: { - valType: "enumerated", - values: ["linear", "log", "date", "category"], - editType: "calc+clearAxisTypes" - }, - // TODO make 'true' the default in v3? - matches: { - valType: "boolean", - dflt: false, - editType: "calc" - }, - editType: "calc+clearAxisTypes" - }, - // TODO should add an attribute to pin down x only vars and y only vars - // like https://seaborn.pydata.org/generated/seaborn.pairplot.html - // x_vars and y_vars - // maybe more axis defaulting option e.g. `showgrid: false` - editType: "calc+clearAxisTypes" - }), - // mode: {}, (only 'markers' for now) - text: extendFlat({}, scatterGlAttrs.text, {}), - hovertext: extendFlat({}, scatterGlAttrs.hovertext, {}), - hovertemplate: hovertemplateAttrs(), - hovertemplatefallback: templatefallbackAttrs(), - xhoverformat: axisHoverFormat("x"), - yhoverformat: axisHoverFormat("y"), - marker: markerAttrs, - xaxes: makeAxesValObject("x"), - yaxes: makeAxesValObject("y"), - diagonal: { - visible: { - valType: "boolean", - dflt: true, - editType: "calc" + if (v110) { + v8.destroyStream(v116); + } + if (v128) { + v8.destroyStream(v134); + } + if (v146) { + v8.destroyStream(v152); + } + if (v164) { + v8.destroyStream(v170); + } + if (v182) { + v8.destroyStream(v188); + } + v210.unbind(); }, - // type: 'scattergl' | 'histogram' | 'box' | 'violin' - // ... - // more options - editType: "calc" - }, - showupperhalf: { - valType: "boolean", - dflt: true, - editType: "calc" - }, - showlowerhalf: { - valType: "boolean", - dflt: true, - editType: "calc" - }, - selected: { - marker: scatterGlAttrs.selected.marker, - editType: "calc" - }, - unselected: { - marker: scatterGlAttrs.unselected.marker, - editType: "calc" - }, - opacity: scatterGlAttrs.opacity - }; - } - }); - - // src/traces/parcoords/merge_length.js - var require_merge_length = __commonJS({ - "src/traces/parcoords/merge_length.js"(exports, module) { - "use strict"; - module.exports = function(traceOut, dimensions, dataAttr, len) { - if (!len) len = Infinity; - var i, dimi; - for (i = 0; i < dimensions.length; i++) { - dimi = dimensions[i]; - if (dimi.visible) len = Math.min(len, dimi[dataAttr].length); - } - if (len === Infinity) len = 0; - traceOut._length = len; - for (i = 0; i < dimensions.length; i++) { - dimi = dimensions[i]; - if (dimi.visible) dimi._length = len; - } - return len; - }; - } - }); - - // src/traces/splom/defaults.js - var require_defaults47 = __commonJS({ - "src/traces/splom/defaults.js"(exports, module) { - "use strict"; - var Lib = require_lib(); - var handleArrayContainerDefaults = require_array_container_defaults(); - var attributes = require_attributes51(); - var subTypes = require_subtypes(); - var handleMarkerDefaults = require_marker_defaults(); - var mergeLength = require_merge_length(); - var isOpenSymbol = require_helpers16().isOpenSymbol; - module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) { - function coerce(attr, dflt) { - return Lib.coerce(traceIn, traceOut, attributes, attr, dflt); - } - var dimensions = handleArrayContainerDefaults(traceIn, traceOut, { - name: "dimensions", - handleItemDefaults: dimensionDefaults - }); - var showDiag = coerce("diagonal.visible"); - var showUpper = coerce("showupperhalf"); - var showLower = coerce("showlowerhalf"); - var dimLength = mergeLength(traceOut, dimensions, "values"); - if (!dimLength || !showDiag && !showUpper && !showLower) { - traceOut.visible = false; - return; - } - coerce("text"); - coerce("hovertext"); - coerce("hovertemplate"); - coerce("hovertemplatefallback"); - coerce("xhoverformat"); - coerce("yhoverformat"); - handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, { - noAngleRef: true, - noLineDash: true, - noStandOff: true - }); - var isOpen = isOpenSymbol(traceOut.marker.symbol); - var isBubble = subTypes.isBubble(traceOut); - coerce("marker.line.width", isOpen || isBubble ? 1 : 0); - handleAxisDefaults(traceIn, traceOut, layout, coerce); - Lib.coerceSelectionMarkerOpacity(traceOut, coerce); - }; - function dimensionDefaults(dimIn, dimOut) { - function coerce(attr, dflt) { - return Lib.coerce(dimIn, dimOut, attributes.dimensions, attr, dflt); - } - coerce("label"); - var values = coerce("values"); - if (!(values && values.length)) dimOut.visible = false; - else coerce("visible"); - coerce("axis.type"); - coerce("axis.matches"); - } - function handleAxisDefaults(traceIn, traceOut, layout, coerce) { - var dimensions = traceOut.dimensions; - var dimLength = dimensions.length; - var showUpper = traceOut.showupperhalf; - var showLower = traceOut.showlowerhalf; - var showDiag = traceOut.diagonal.visible; - var i, j; - var xAxesDflt = new Array(dimLength); - var yAxesDflt = new Array(dimLength); - for (i = 0; i < dimLength; i++) { - var suffix = i ? i + 1 : ""; - xAxesDflt[i] = "x" + suffix; - yAxesDflt[i] = "y" + suffix; - } - var xaxes = coerce("xaxes", xAxesDflt); - var yaxes = coerce("yaxes", yAxesDflt); - var diag = traceOut._diag = new Array(dimLength); - traceOut._xaxes = {}; - traceOut._yaxes = {}; - var xList = []; - var yList = []; - function fillAxisStashes(axId, counterAxId, dim2, list) { - if (!axId) return; - var axLetter = axId.charAt(0); - var stash = layout._splomAxes[axLetter]; - traceOut["_" + axLetter + "axes"][axId] = 1; - list.push(axId); - if (!(axId in stash)) { - var s = stash[axId] = {}; - if (dim2) { - s.label = dim2.label || ""; - if (dim2.visible && dim2.axis) { - if (dim2.axis.type) s.type = dim2.axis.type; - if (dim2.axis.matches) s.matches = counterAxId; - } - } - } - } - var mustShiftX = !showDiag && !showLower; - var mustShiftY = !showDiag && !showUpper; - traceOut._axesDim = {}; - for (i = 0; i < dimLength; i++) { - var dim = dimensions[i]; - var i0 = i === 0; - var iN = i === dimLength - 1; - var xaId = i0 && mustShiftX || iN && mustShiftY ? void 0 : xaxes[i]; - var yaId = i0 && mustShiftY || iN && mustShiftX ? void 0 : yaxes[i]; - fillAxisStashes(xaId, yaId, dim, xList); - fillAxisStashes(yaId, xaId, dim, yList); - diag[i] = [xaId, yaId]; - traceOut._axesDim[xaId] = i; - traceOut._axesDim[yaId] = i; - } - for (i = 0; i < xList.length; i++) { - for (j = 0; j < yList.length; j++) { - var id = xList[i] + yList[j]; - if (i > j && showUpper) { - layout._splomSubplots[id] = 1; - } else if (i < j && showLower) { - layout._splomSubplots[id] = 1; - } else if (i === j && (showDiag || !showLower || !showUpper)) { - layout._splomSubplots[id] = 1; + "scope": function(a0, a1, a2) { + var v242, v243, v244, v245, v246, v247, v248, v249, v250, v251, v252, v254, v256, v258, v260, v262, v264, v266, v268, v270, v272, v274, v275, v276, v277, v278, v279, v280, v281, v282, v283, v284, v285, v287, v289, v290, v291, v293, v295, v296, v297, v299, v301, v303, v304, v306, v307, v309, v310, v312, v313, v315, v316, v318, v319, v321, v322, v324, v325, v327, v328, v330, v331, v333, v334, v336, v337, v339, v340, v342, v344, v345, v346, v347, v348, v349, v350, v351, v352, v353, v354, v355, v357, v358, v359, v360, v361, v362, v363, v364, v365, v366, v367, v368, v369, v370, v371, v372, v373, v374, v375, v376, v377, v378, v379, v380, v381, v382, v384, v385, v386, v387, v388, v389, v390, v391, v392, v393, v394, v395, v396, v397, v398, v399, v400, v401, v402, v403, v404, v405, v406, v407, v408, v409, v411, v412, v413, v414, v415, v416, v417, v418, v419, v420, v421, v422, v423, v424, v425, v426, v427, v428, v429, v430, v431, v432, v433, v434, v435, v436, v438, v439, v440, v441, v442, v443, v444, v445, v446, v447, v448, v449, v450, v451, v452, v453, v454, v455, v456, v457, v458, v459, v460, v461, v462, v463, v465, v466, v467, v468, v469, v470, v471, v472, v473, v474, v475, v476, v477, v478, v479, v480, v481, v482, v483, v484, v485, v486, v487, v488, v489, v490, v492, v493, v494, v495, v496, v497, v498, v499, v500, v501, v502, v503, v505, v507; + v242 = a0["viewport"]; + v243 = v242.x | 0; + v244 = v242.y | 0; + v245 = "width" in v242 ? v242.width | 0 : v2.framebufferWidth - v243; + v246 = "height" in v242 ? v242.height | 0 : v2.framebufferHeight - v244; + v247 = v2.viewportWidth; + v2.viewportWidth = v245; + v248 = v2.viewportHeight; + v2.viewportHeight = v246; + v249 = v39[0]; + v39[0] = v243; + v250 = v39[1]; + v39[1] = v244; + v251 = v39[2]; + v39[2] = v245; + v252 = v39[3]; + v39[3] = v246; + v254 = v17[0]; + v17[0] = g253; + v256 = v17[1]; + v17[1] = g255; + v258 = v17[2]; + v17[2] = g257; + v260 = v17[3]; + v17[3] = g259; + v262 = v4.blend_enable; + v4.blend_enable = g261; + v264 = v19[0]; + v19[0] = g263; + v266 = v19[1]; + v19[1] = g265; + v268 = v21[0]; + v21[0] = g267; + v270 = v21[1]; + v21[1] = g269; + v272 = v21[2]; + v21[2] = g271; + v274 = v21[3]; + v21[3] = g273; + v275 = g96.call(this, v2, a0, a2); + v276 = v4.depth_enable; + v4.depth_enable = v275; + v277 = a0["viewport"]; + v278 = v277.x | 0; + v279 = v277.y | 0; + v280 = "width" in v277 ? v277.width | 0 : v2.framebufferWidth - v278; + v281 = "height" in v277 ? v277.height | 0 : v2.framebufferHeight - v279; + v282 = v37[0]; + v37[0] = v278; + v283 = v37[1]; + v37[1] = v279; + v284 = v37[2]; + v37[2] = v280; + v285 = v37[3]; + v37[3] = v281; + v287 = v4.scissor_enable; + v4.scissor_enable = g286; + v289 = v4.stencil_enable; + v4.stencil_enable = g288; + v290 = v5.profile; + if (v290) { + v291 = performance.now(); + g48.count++; } - } - } - if (!showLower || !showDiag && showUpper && showLower) { - layout._splomGridDflt.xside = "bottom"; - layout._splomGridDflt.yside = "left"; - } - } - } - }); - - // src/traces/splom/scene_update.js - var require_scene_update2 = __commonJS({ - "src/traces/splom/scene_update.js"(exports, module) { - "use strict"; - var Lib = require_lib(); - module.exports = function sceneUpdate(gd, trace) { - var fullLayout = gd._fullLayout; - var uid = trace.uid; - var splomScenes = fullLayout._splomScenes; - if (!splomScenes) splomScenes = fullLayout._splomScenes = {}; - var reset = { - dirty: true, - selectBatch: [], - unselectBatch: [] - }; - var first = { - matrix: false, - selectBatch: [], - unselectBatch: [] - }; - var scene = splomScenes[trace.uid]; - if (!scene) { - scene = splomScenes[uid] = Lib.extendFlat({}, reset, first); - scene.draw = function draw() { - if (scene.matrix && scene.matrix.draw) { - if (scene.selectBatch.length || scene.unselectBatch.length) { - scene.matrix.draw(scene.unselectBatch, scene.selectBatch); + v293 = v6.offset; + v6.offset = g292; + v295 = v6.count; + v6.count = g294; + v296 = a0["count"]; + v297 = v6.instances; + v6.instances = v296; + v299 = v6.primitive; + v6.primitive = g298; + v301 = g300.call(this, v2, a0, a2); + v303 = v12[g302]; + v12[g302] = v301; + v304 = a0["miterLimit"]; + v306 = v12[g305]; + v12[g305] = v304; + v307 = a0["scale"]; + v309 = v12[g308]; + v12[g308] = v307; + v310 = a0["scaleFract"]; + v312 = v12[g311]; + v12[g311] = v310; + v313 = a0["translateFract"]; + v315 = v12[g314]; + v12[g314] = v313; + v316 = a0["translate"]; + v318 = v12[g317]; + v12[g317] = v316; + v319 = a0["thickness"]; + v321 = v12[g320]; + v12[g320] = v319; + v322 = a0["dashTexture"]; + v324 = v12[g323]; + v12[g323] = v322; + v325 = a0["opacity"]; + v327 = v12[g326]; + v12[g326] = v325; + v328 = v2["pixelRatio"]; + v330 = v12[g329]; + v12[g329] = v328; + v331 = a0["id"]; + v333 = v12[g332]; + v12[g332] = v331; + v334 = a0["dashLength"]; + v336 = v12[g335]; + v12[g335] = v334; + v337 = g234.call(this, v2, a0, a2); + v339 = v12[g338]; + v12[g338] = v337; + v340 = a0["depth"]; + v342 = v12[g341]; + v12[g341] = v340; + v344 = g343.state; + g343.state = 1; + v345 = g343.x; + g343.x = 0; + v346 = g343.y; + g343.y = 0; + v347 = g343.z; + g343.z = 0; + v348 = g343.w; + g343.w = 0; + v349 = g343.buffer; + g343.buffer = g199; + v350 = g343.size; + g343.size = 0; + v351 = g343.normalized; + g343.normalized = false; + v352 = g343.type; + g343.type = 5126; + v353 = g343.offset; + g343.offset = 0; + v354 = g343.stride; + g343.stride = 8; + v355 = g343.divisor; + g343.divisor = 0; + v357 = g356.state; + g356.state = 1; + v358 = g356.x; + g356.x = 0; + v359 = g356.y; + g356.y = 0; + v360 = g356.z; + g356.z = 0; + v361 = g356.w; + g356.w = 0; + v362 = g356.buffer; + g356.buffer = g199; + v363 = g356.size; + g356.size = 0; + v364 = g356.normalized; + g356.normalized = false; + v365 = g356.type; + g356.type = 5126; + v366 = g356.offset; + g356.offset = 4; + v367 = g356.stride; + g356.stride = 8; + v368 = g356.divisor; + g356.divisor = 0; + v369 = a0["positionBuffer"]; + v49.buffer = v369; + v370 = false; + v371 = 1; + v372 = 0; + v373 = 0; + v374 = 0; + v375 = 0; + v376 = null; + v377 = 0; + v378 = false; + v379 = 5126; + v380 = 0; + v381 = 0; + v382 = 0; + if (v16(v49)) { + v370 = true; + v376 = v8.createStream(34962, v49); + v379 = v376.dtype; + } else { + v376 = v8.getBuffer(v49); + if (v376) { + v379 = v376.dtype; + } else if ("constant" in v49) { + v371 = 2; + if (typeof v49.constant === "number") { + v372 = v49.constant; + v373 = v374 = v375 = 0; + } else { + v372 = v49.constant.length > 0 ? v49.constant[0] : 0; + v373 = v49.constant.length > 1 ? v49.constant[1] : 0; + v374 = v49.constant.length > 2 ? v49.constant[2] : 0; + v375 = v49.constant.length > 3 ? v49.constant[3] : 0; + } } else { - scene.matrix.draw(); + if (v16(v49.buffer)) { + v376 = v8.createStream(34962, v49.buffer); + } else { + v376 = v8.getBuffer(v49.buffer); + } + v379 = "type" in v49 ? v46[v49.type] : v376.dtype; + v378 = !!v49.normalized; + v377 = v49.size | 0; + v380 = v49.offset | 0; + v381 = v49.stride | 0; + v382 = v49.divisor | 0; } } - scene.dirty = false; - }; - scene.destroy = function destroy() { - if (scene.matrix && scene.matrix.destroy) { - scene.matrix.destroy(); - } - scene.matrixOptions = null; - scene.selectBatch = null; - scene.unselectBatch = null; - scene = null; - }; - } - if (!scene.dirty) { - Lib.extendFlat(scene, reset); - } - return scene; - }; - } - }); - - // src/traces/splom/calc.js - var require_calc30 = __commonJS({ - "src/traces/splom/calc.js"(exports, module) { - "use strict"; - var Lib = require_lib(); - var AxisIDs = require_axis_ids(); - var calcMarkerSize = require_calc3().calcMarkerSize; - var calcAxisExpansion = require_calc3().calcAxisExpansion; - var calcColorscale = require_colorscale_calc(); - var convertMarkerSelection = require_convert10().markerSelection; - var convertMarkerStyle = require_convert10().markerStyle; - var sceneUpdate = require_scene_update2(); - var BADNUM = require_numerical().BADNUM; - var TOO_MANY_POINTS = require_constants23().TOO_MANY_POINTS; - module.exports = function calc(gd, trace) { - var dimensions = trace.dimensions; - var commonLength = trace._length; - var opts = {}; - var cdata = opts.cdata = []; - var ldata = opts.data = []; - var visibleDims = trace._visibleDims = []; - var i, k, dim, xa, ya; - function makeCalcdata(ax, dim2) { - var ccol = ax.makeCalcdata({ - v: dim2.values, - vcalendar: trace.calendar - }, "v"); - for (var j = 0; j < ccol.length; j++) { - ccol[j] = ccol[j] === BADNUM ? NaN : ccol[j]; - } - cdata.push(ccol); - ldata.push(ax.type === "log" ? Lib.simpleMap(ccol, ax.c2l) : ccol); - } - for (i = 0; i < dimensions.length; i++) { - dim = dimensions[i]; - if (dim.visible) { - xa = AxisIDs.getFromId(gd, trace._diag[i][0]); - ya = AxisIDs.getFromId(gd, trace._diag[i][1]); - if (xa && ya && xa.type !== ya.type) { - Lib.log("Skipping splom dimension " + i + " with conflicting axis types"); - continue; - } - if (xa) { - makeCalcdata(xa, dim); - if (ya && ya.type === "category") { - ya._categories = xa._categories.slice(); - } + v384 = g383.state; + g383.state = v371; + v385 = g383.x; + g383.x = v372; + v386 = g383.y; + g383.y = v373; + v387 = g383.z; + g383.z = v374; + v388 = g383.w; + g383.w = v375; + v389 = g383.buffer; + g383.buffer = v376; + v390 = g383.size; + g383.size = v377; + v391 = g383.normalized; + g383.normalized = v378; + v392 = g383.type; + g383.type = v379; + v393 = g383.offset; + g383.offset = v380; + v394 = g383.stride; + g383.stride = v381; + v395 = g383.divisor; + g383.divisor = v382; + v396 = a0["positionBuffer"]; + v50.buffer = v396; + v397 = false; + v398 = 1; + v399 = 0; + v400 = 0; + v401 = 0; + v402 = 0; + v403 = null; + v404 = 0; + v405 = false; + v406 = 5126; + v407 = 0; + v408 = 0; + v409 = 0; + if (v16(v50)) { + v397 = true; + v403 = v8.createStream(34962, v50); + v406 = v403.dtype; } else { - makeCalcdata(ya, dim); - } - visibleDims.push(i); - } - } - calcColorscale(gd, trace); - Lib.extendFlat(opts, convertMarkerStyle(gd, trace)); - var visibleLength = cdata.length; - var hasTooManyPoints = visibleLength * commonLength > TOO_MANY_POINTS; - var ppad; - if (hasTooManyPoints) { - ppad = opts.sizeAvg || Math.max(opts.size, 3); - } else { - ppad = calcMarkerSize(trace, commonLength); - } - for (k = 0; k < visibleDims.length; k++) { - i = visibleDims[k]; - dim = dimensions[i]; - xa = AxisIDs.getFromId(gd, trace._diag[i][0]) || {}; - ya = AxisIDs.getFromId(gd, trace._diag[i][1]) || {}; - calcAxisExpansion(gd, trace, xa, ya, cdata[k], cdata[k], ppad); - } - var scene = sceneUpdate(gd, trace); - if (!scene.matrix) scene.matrix = true; - scene.matrixOptions = opts; - scene.selectedOptions = convertMarkerSelection(gd, trace, trace.selected); - scene.unselectedOptions = convertMarkerSelection(gd, trace, trace.unselected); - return [{ x: false, y: false, t: {}, trace }]; - }; - } - }); - - // node_modules/performance-now/lib/performance-now.js - var require_performance_now = __commonJS({ - "node_modules/performance-now/lib/performance-now.js"(exports, module) { - (function() { - var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime; - if (typeof performance !== "undefined" && performance !== null && performance.now) { - module.exports = function() { - return performance.now(); - }; - } else if (typeof process !== "undefined" && process !== null && process.hrtime) { - module.exports = function() { - return (getNanoSeconds() - nodeLoadTime) / 1e6; - }; - hrtime = process.hrtime; - getNanoSeconds = function() { - var hr; - hr = hrtime(); - return hr[0] * 1e9 + hr[1]; - }; - moduleLoadTime = getNanoSeconds(); - upTime = process.uptime() * 1e9; - nodeLoadTime = moduleLoadTime - upTime; - } else if (Date.now) { - module.exports = function() { - return Date.now() - loadTime; - }; - loadTime = Date.now(); - } else { - module.exports = function() { - return (/* @__PURE__ */ new Date()).getTime() - loadTime; - }; - loadTime = (/* @__PURE__ */ new Date()).getTime(); - } - }).call(exports); - } - }); - - // node_modules/raf/index.js - var require_raf = __commonJS({ - "node_modules/raf/index.js"(exports, module) { - var now = require_performance_now(); - var root = typeof window === "undefined" ? window : window; - var vendors = ["moz", "webkit"]; - var suffix = "AnimationFrame"; - var raf = root["request" + suffix]; - var caf = root["cancel" + suffix] || root["cancelRequest" + suffix]; - for (i = 0; !raf && i < vendors.length; i++) { - raf = root[vendors[i] + "Request" + suffix]; - caf = root[vendors[i] + "Cancel" + suffix] || root[vendors[i] + "CancelRequest" + suffix]; - } - var i; - if (!raf || !caf) { - last = 0, id = 0, queue = [], frameDuration = 1e3 / 60; - raf = function(callback) { - if (queue.length === 0) { - var _now = now(), next = Math.max(0, frameDuration - (_now - last)); - last = next + _now; - setTimeout(function() { - var cp = queue.slice(0); - queue.length = 0; - for (var i2 = 0; i2 < cp.length; i2++) { - if (!cp[i2].cancelled) { - try { - cp[i2].callback(last); - } catch (e) { - setTimeout(function() { - throw e; - }, 0); - } + v403 = v8.getBuffer(v50); + if (v403) { + v406 = v403.dtype; + } else if ("constant" in v50) { + v398 = 2; + if (typeof v50.constant === "number") { + v399 = v50.constant; + v400 = v401 = v402 = 0; + } else { + v399 = v50.constant.length > 0 ? v50.constant[0] : 0; + v400 = v50.constant.length > 1 ? v50.constant[1] : 0; + v401 = v50.constant.length > 2 ? v50.constant[2] : 0; + v402 = v50.constant.length > 3 ? v50.constant[3] : 0; } - } - }, Math.round(next)); - } - queue.push({ - handle: ++id, - callback, - cancelled: false - }); - return id; - }; - caf = function(handle) { - for (var i2 = 0; i2 < queue.length; i2++) { - if (queue[i2].handle === handle) { - queue[i2].cancelled = true; - } - } - }; - } - var last; - var id; - var queue; - var frameDuration; - module.exports = function(fn) { - return raf.call(root, fn); - }; - module.exports.cancel = function() { - caf.apply(root, arguments); - }; - module.exports.polyfill = function(object) { - if (!object) { - object = root; - } - object.requestAnimationFrame = raf; - object.cancelAnimationFrame = caf; - }; - } - }); - - // node_modules/array-range/index.js - var require_array_range = __commonJS({ - "node_modules/array-range/index.js"(exports, module) { - module.exports = function newArray(start, end) { - var n0 = typeof start === "number", n1 = typeof end === "number"; - if (n0 && !n1) { - end = start; - start = 0; - } else if (!n0 && !n1) { - start = 0; - end = 0; - } - start = start | 0; - end = end | 0; - var len = end - start; - if (len < 0) - throw new Error("array length must be positive"); - var a = new Array(len); - for (var i = 0, c = start; i < len; i++, c++) - a[i] = c; - return a; - }; - } - }); - - // node_modules/regl-splom/index.js - var require_regl_splom = __commonJS({ - "node_modules/regl-splom/index.js"(exports, module) { - "use strict"; - var createScatter = require_bundle(); - var pick = require_pick_by_alias(); - var getBounds = require_array_bounds(); - var raf = require_raf(); - var arrRange = require_array_range(); - var rect = require_parse_rect(); - var flatten = require_flatten_vertex_data(); - module.exports = SPLOM; - function SPLOM(regl, options) { - if (!(this instanceof SPLOM)) return new SPLOM(regl, options); - this.traces = []; - this.passes = {}; - this.regl = regl; - this.scatter = createScatter(regl); - this.canvas = this.scatter.canvas; - } - SPLOM.prototype.render = function(...args) { - if (args.length) { - this.update(...args); - } - if (this.regl.attributes.preserveDrawingBuffer) return this.draw(); - if (this.dirty) { - if (this.planned == null) { - this.planned = raf(() => { - this.draw(); - this.dirty = true; - this.planned = null; - }); - } - } else { - this.draw(); - this.dirty = true; - raf(() => { - this.dirty = false; - }); - } - return this; - }; - SPLOM.prototype.update = function(...args) { - if (!args.length) return; - for (let i = 0; i < args.length; i++) { - this.updateItem(i, args[i]); - } - this.traces = this.traces.filter(Boolean); - let passes = []; - let offset = 0; - for (let i = 0; i < this.traces.length; i++) { - let trace = this.traces[i]; - let tracePasses = this.traces[i].passes; - for (let j = 0; j < tracePasses.length; j++) { - passes.push(this.passes[tracePasses[j]]); - } - trace.passOffset = offset; - offset += trace.passes.length; - } - this.scatter.update(...passes); - return this; - }; - SPLOM.prototype.updateItem = function(i, options) { - let { regl } = this; - if (options === null) { - this.traces[i] = null; - return this; - } - if (!options) return this; - let o = pick(options, { - data: "data items columns rows values dimensions samples x", - snap: "snap cluster", - size: "sizes size radius", - color: "colors color fill fill-color fillColor", - opacity: "opacity alpha transparency opaque", - borderSize: "borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline", - borderColor: "borderColors borderColor bordercolor stroke stroke-color strokeColor", - marker: "markers marker shape", - range: "range ranges databox dataBox", - viewport: "viewport viewBox viewbox", - domain: "domain domains area areas", - padding: "pad padding paddings pads margin margins", - transpose: "transpose transposed", - diagonal: "diagonal diag showDiagonal", - upper: "upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf", - lower: "lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower" - }); - let trace = this.traces[i] || (this.traces[i] = { - id: i, - buffer: regl.buffer({ - usage: "dynamic", - type: "float", - data: new Uint8Array() - }), - color: "black", - marker: null, - size: 12, - borderColor: "transparent", - borderSize: 1, - viewport: rect([regl._gl.drawingBufferWidth, regl._gl.drawingBufferHeight]), - padding: [0, 0, 0, 0], - opacity: 1, - diagonal: true, - upper: true, - lower: true - }); - if (o.color != null) { - trace.color = o.color; - } - if (o.size != null) { - trace.size = o.size; - } - if (o.marker != null) { - trace.marker = o.marker; - } - if (o.borderColor != null) { - trace.borderColor = o.borderColor; - } - if (o.borderSize != null) { - trace.borderSize = o.borderSize; - } - if (o.opacity != null) { - trace.opacity = o.opacity; - } - if (o.viewport) { - trace.viewport = rect(o.viewport); - } - if (o.diagonal != null) trace.diagonal = o.diagonal; - if (o.upper != null) trace.upper = o.upper; - if (o.lower != null) trace.lower = o.lower; - if (o.data) { - trace.buffer(flatten(o.data)); - trace.columns = o.data.length; - trace.count = o.data[0].length; - trace.bounds = []; - for (let i2 = 0; i2 < trace.columns; i2++) { - trace.bounds[i2] = getBounds(o.data[i2], 1); - } - } - let multirange; - if (o.range) { - trace.range = o.range; - multirange = trace.range && typeof trace.range[0] !== "number"; - } - if (o.domain) { - trace.domain = o.domain; - } - let multipadding = false; - if (o.padding != null) { - if (Array.isArray(o.padding) && o.padding.length === trace.columns && typeof o.padding[o.padding.length - 1] === "number") { - trace.padding = o.padding.map(getPad); - multipadding = true; - } else { - trace.padding = getPad(o.padding); - } - } - let m = trace.columns; - let n = trace.count; - let w = trace.viewport.width; - let h = trace.viewport.height; - let left = trace.viewport.x; - let top = trace.viewport.y; - let iw = w / m; - let ih = h / m; - trace.passes = []; - for (let i2 = 0; i2 < m; i2++) { - for (let j = 0; j < m; j++) { - if (!trace.diagonal && j === i2) continue; - if (!trace.upper && i2 > j) continue; - if (!trace.lower && i2 < j) continue; - let key = passId(trace.id, i2, j); - let pass = this.passes[key] || (this.passes[key] = {}); - if (o.data) { - if (o.transpose) { - pass.positions = { - x: { buffer: trace.buffer, offset: j, count: n, stride: m }, - y: { buffer: trace.buffer, offset: i2, count: n, stride: m } - }; } else { - pass.positions = { - x: { buffer: trace.buffer, offset: j * n, count: n }, - y: { buffer: trace.buffer, offset: i2 * n, count: n } - }; + if (v16(v50.buffer)) { + v403 = v8.createStream(34962, v50.buffer); + } else { + v403 = v8.getBuffer(v50.buffer); + } + v406 = "type" in v50 ? v46[v50.type] : v403.dtype; + v405 = !!v50.normalized; + v404 = v50.size | 0; + v407 = v50.offset | 0; + v408 = v50.stride | 0; + v409 = v50.divisor | 0; } - pass.bounds = getBox(trace.bounds, i2, j); } - if (o.domain || o.viewport || o.data) { - let pad = multipadding ? getBox(trace.padding, i2, j) : trace.padding; - if (trace.domain) { - let [lox, loy, hix, hiy] = getBox(trace.domain, i2, j); - pass.viewport = [ - left + lox * w + pad[0], - top + loy * h + pad[1], - left + hix * w - pad[2], - top + hiy * h - pad[3] - ]; + v411 = g410.state; + g410.state = v398; + v412 = g410.x; + g410.x = v399; + v413 = g410.y; + g410.y = v400; + v414 = g410.z; + g410.z = v401; + v415 = g410.w; + g410.w = v402; + v416 = g410.buffer; + g410.buffer = v403; + v417 = g410.size; + g410.size = v404; + v418 = g410.normalized; + g410.normalized = v405; + v419 = g410.type; + g410.type = v406; + v420 = g410.offset; + g410.offset = v407; + v421 = g410.stride; + g410.stride = v408; + v422 = g410.divisor; + g410.divisor = v409; + v423 = a0["positionFractBuffer"]; + v51.buffer = v423; + v424 = false; + v425 = 1; + v426 = 0; + v427 = 0; + v428 = 0; + v429 = 0; + v430 = null; + v431 = 0; + v432 = false; + v433 = 5126; + v434 = 0; + v435 = 0; + v436 = 0; + if (v16(v51)) { + v424 = true; + v430 = v8.createStream(34962, v51); + v433 = v430.dtype; + } else { + v430 = v8.getBuffer(v51); + if (v430) { + v433 = v430.dtype; + } else if ("constant" in v51) { + v425 = 2; + if (typeof v51.constant === "number") { + v426 = v51.constant; + v427 = v428 = v429 = 0; + } else { + v426 = v51.constant.length > 0 ? v51.constant[0] : 0; + v427 = v51.constant.length > 1 ? v51.constant[1] : 0; + v428 = v51.constant.length > 2 ? v51.constant[2] : 0; + v429 = v51.constant.length > 3 ? v51.constant[3] : 0; + } } else { - pass.viewport = [ - left + j * iw + iw * pad[0], - top + i2 * ih + ih * pad[1], - left + (j + 1) * iw - iw * pad[2], - top + (i2 + 1) * ih - ih * pad[3] - ]; + if (v16(v51.buffer)) { + v430 = v8.createStream(34962, v51.buffer); + } else { + v430 = v8.getBuffer(v51.buffer); + } + v433 = "type" in v51 ? v46[v51.type] : v430.dtype; + v432 = !!v51.normalized; + v431 = v51.size | 0; + v434 = v51.offset | 0; + v435 = v51.stride | 0; + v436 = v51.divisor | 0; } } - if (o.color) pass.color = trace.color; - if (o.size) pass.size = trace.size; - if (o.marker) pass.marker = trace.marker; - if (o.borderSize) pass.borderSize = trace.borderSize; - if (o.borderColor) pass.borderColor = trace.borderColor; - if (o.opacity) pass.opacity = trace.opacity; - if (o.range) { - pass.range = multirange ? getBox(trace.range, i2, j) : trace.range || pass.bounds; - } - trace.passes.push(key); - } - } - return this; - }; - SPLOM.prototype.draw = function(...args) { - if (!args.length) { - this.scatter.draw(); - } else { - let idx = []; - for (let i = 0; i < args.length; i++) { - if (typeof args[i] === "number") { - let { passes, passOffset } = this.traces[args[i]]; - idx.push(...arrRange(passOffset, passOffset + passes.length)); - } else if (args[i].length) { - let els = args[i]; - let { passes, passOffset } = this.traces[i]; - passes = passes.map((passId2, i2) => { - idx[passOffset + i2] = els; - }); - } - } - this.scatter.draw(...idx); - } - return this; - }; - SPLOM.prototype.destroy = function() { - this.traces.forEach((trace) => { - if (trace.buffer && trace.buffer.destroy) trace.buffer.destroy(); - }); - this.traces = null; - this.passes = null; - this.scatter.destroy(); - return this; - }; - function passId(trace, i, j) { - let id = trace.id != null ? trace.id : trace; - let n = i; - let m = j; - let key = id << 16 | (n & 255) << 8 | m & 255; - return key; - } - function getBox(items, i, j) { - let ilox, iloy, ihix, ihiy, jlox, jloy, jhix, jhiy; - let iitem = items[i], jitem = items[j]; - if (iitem.length > 2) { - ilox = iitem[0]; - ihix = iitem[2]; - iloy = iitem[1]; - ihiy = iitem[3]; - } else if (iitem.length) { - ilox = iloy = iitem[0]; - ihix = ihiy = iitem[1]; - } else { - ilox = iitem.x; - iloy = iitem.y; - ihix = iitem.x + iitem.width; - ihiy = iitem.y + iitem.height; - } - if (jitem.length > 2) { - jlox = jitem[0]; - jhix = jitem[2]; - jloy = jitem[1]; - jhiy = jitem[3]; - } else if (jitem.length) { - jlox = jloy = jitem[0]; - jhix = jhiy = jitem[1]; - } else { - jlox = jitem.x; - jloy = jitem.y; - jhix = jitem.x + jitem.width; - jhiy = jitem.y + jitem.height; - } - return [jlox, iloy, jhix, ihiy]; - } - function getPad(arg) { - if (typeof arg === "number") return [arg, arg, arg, arg]; - else if (arg.length === 2) return [arg[0], arg[1], arg[0], arg[1]]; - else { - let box = rect(arg); - return [box.x, box.y, box.x + box.width, box.y + box.height]; - } - } - } - }); - - // src/traces/splom/plot.js - var require_plot20 = __commonJS({ - "src/traces/splom/plot.js"(exports, module) { - "use strict"; - var createMatrix = require_regl_splom(); - var Lib = require_lib(); - var AxisIDs = require_axis_ids(); - var selectMode = require_helpers5().selectMode; - module.exports = function plot(gd, _, splomCalcData) { - if (!splomCalcData.length) return; - for (var i = 0; i < splomCalcData.length; i++) { - plotOne(gd, splomCalcData[i][0]); - } - }; - function plotOne(gd, cd0) { - var fullLayout = gd._fullLayout; - var gs = fullLayout._size; - var trace = cd0.trace; - var stash = cd0.t; - var scene = fullLayout._splomScenes[trace.uid]; - var matrixOpts = scene.matrixOptions; - var cdata = matrixOpts.cdata; - var regl = fullLayout._glcanvas.data()[0].regl; - var dragmode = fullLayout.dragmode; - var xa, ya; - var i, j, k; - if (cdata.length === 0) return; - matrixOpts.lower = trace.showupperhalf; - matrixOpts.upper = trace.showlowerhalf; - matrixOpts.diagonal = trace.diagonal.visible; - var visibleDims = trace._visibleDims; - var visibleLength = cdata.length; - var viewOpts = scene.viewOpts = {}; - viewOpts.ranges = new Array(visibleLength); - viewOpts.domains = new Array(visibleLength); - for (k = 0; k < visibleDims.length; k++) { - i = visibleDims[k]; - var rng = viewOpts.ranges[k] = new Array(4); - var dmn = viewOpts.domains[k] = new Array(4); - xa = AxisIDs.getFromId(gd, trace._diag[i][0]); - if (xa) { - rng[0] = xa._rl[0]; - rng[2] = xa._rl[1]; - dmn[0] = xa.domain[0]; - dmn[2] = xa.domain[1]; - } - ya = AxisIDs.getFromId(gd, trace._diag[i][1]); - if (ya) { - rng[1] = ya._rl[0]; - rng[3] = ya._rl[1]; - dmn[1] = ya.domain[0]; - dmn[3] = ya.domain[1]; - } - } - var plotGlPixelRatio = gd._context.plotGlPixelRatio; - var l = gs.l * plotGlPixelRatio; - var b = gs.b * plotGlPixelRatio; - var w = gs.w * plotGlPixelRatio; - var h = gs.h * plotGlPixelRatio; - viewOpts.viewport = [l, b, w + l, h + b]; - if (scene.matrix === true) { - scene.matrix = createMatrix(regl); - } - var clickSelectEnabled = fullLayout.clickmode.indexOf("select") > -1; - var isSelectMode = selectMode(dragmode) || !!trace.selectedpoints || clickSelectEnabled; - var needsBaseUpdate = true; - if (isSelectMode) { - var commonLength = trace._length; - if (trace.selectedpoints) { - scene.selectBatch = trace.selectedpoints; - var selPts = trace.selectedpoints; - var selDict = {}; - for (i = 0; i < selPts.length; i++) { - selDict[selPts[i]] = true; + v438 = g437.state; + g437.state = v425; + v439 = g437.x; + g437.x = v426; + v440 = g437.y; + g437.y = v427; + v441 = g437.z; + g437.z = v428; + v442 = g437.w; + g437.w = v429; + v443 = g437.buffer; + g437.buffer = v430; + v444 = g437.size; + g437.size = v431; + v445 = g437.normalized; + g437.normalized = v432; + v446 = g437.type; + g437.type = v433; + v447 = g437.offset; + g437.offset = v434; + v448 = g437.stride; + g437.stride = v435; + v449 = g437.divisor; + g437.divisor = v436; + v450 = a0["positionFractBuffer"]; + v52.buffer = v450; + v451 = false; + v452 = 1; + v453 = 0; + v454 = 0; + v455 = 0; + v456 = 0; + v457 = null; + v458 = 0; + v459 = false; + v460 = 5126; + v461 = 0; + v462 = 0; + v463 = 0; + if (v16(v52)) { + v451 = true; + v457 = v8.createStream(34962, v52); + v460 = v457.dtype; + } else { + v457 = v8.getBuffer(v52); + if (v457) { + v460 = v457.dtype; + } else if ("constant" in v52) { + v452 = 2; + if (typeof v52.constant === "number") { + v453 = v52.constant; + v454 = v455 = v456 = 0; + } else { + v453 = v52.constant.length > 0 ? v52.constant[0] : 0; + v454 = v52.constant.length > 1 ? v52.constant[1] : 0; + v455 = v52.constant.length > 2 ? v52.constant[2] : 0; + v456 = v52.constant.length > 3 ? v52.constant[3] : 0; + } + } else { + if (v16(v52.buffer)) { + v457 = v8.createStream(34962, v52.buffer); + } else { + v457 = v8.getBuffer(v52.buffer); + } + v460 = "type" in v52 ? v46[v52.type] : v457.dtype; + v459 = !!v52.normalized; + v458 = v52.size | 0; + v461 = v52.offset | 0; + v462 = v52.stride | 0; + v463 = v52.divisor | 0; + } } - var unselPts = []; - for (i = 0; i < commonLength; i++) { - if (!selDict[i]) unselPts.push(i); + v465 = g464.state; + g464.state = v452; + v466 = g464.x; + g464.x = v453; + v467 = g464.y; + g464.y = v454; + v468 = g464.z; + g464.z = v455; + v469 = g464.w; + g464.w = v456; + v470 = g464.buffer; + g464.buffer = v457; + v471 = g464.size; + g464.size = v458; + v472 = g464.normalized; + g464.normalized = v459; + v473 = g464.type; + g464.type = v460; + v474 = g464.offset; + g464.offset = v461; + v475 = g464.stride; + g464.stride = v462; + v476 = g464.divisor; + g464.divisor = v463; + v477 = a0["colorBuffer"]; + v53.buffer = v477; + v478 = false; + v479 = 1; + v480 = 0; + v481 = 0; + v482 = 0; + v483 = 0; + v484 = null; + v485 = 0; + v486 = false; + v487 = 5126; + v488 = 0; + v489 = 0; + v490 = 0; + if (v16(v53)) { + v478 = true; + v484 = v8.createStream(34962, v53); + v487 = v484.dtype; + } else { + v484 = v8.getBuffer(v53); + if (v484) { + v487 = v484.dtype; + } else if ("constant" in v53) { + v479 = 2; + if (typeof v53.constant === "number") { + v480 = v53.constant; + v481 = v482 = v483 = 0; + } else { + v480 = v53.constant.length > 0 ? v53.constant[0] : 0; + v481 = v53.constant.length > 1 ? v53.constant[1] : 0; + v482 = v53.constant.length > 2 ? v53.constant[2] : 0; + v483 = v53.constant.length > 3 ? v53.constant[3] : 0; + } + } else { + if (v16(v53.buffer)) { + v484 = v8.createStream(34962, v53.buffer); + } else { + v484 = v8.getBuffer(v53.buffer); + } + v487 = "type" in v53 ? v46[v53.type] : v484.dtype; + v486 = !!v53.normalized; + v485 = v53.size | 0; + v488 = v53.offset | 0; + v489 = v53.stride | 0; + v490 = v53.divisor | 0; + } } - scene.unselectBatch = unselPts; - } - var xpx = stash.xpx = new Array(visibleLength); - var ypx = stash.ypx = new Array(visibleLength); - for (k = 0; k < visibleDims.length; k++) { - i = visibleDims[k]; - xa = AxisIDs.getFromId(gd, trace._diag[i][0]); - if (xa) { - xpx[k] = new Array(commonLength); - for (j = 0; j < commonLength; j++) { - xpx[k][j] = xa.c2p(cdata[k][j]); + v492 = g491.state; + g491.state = v479; + v493 = g491.x; + g491.x = v480; + v494 = g491.y; + g491.y = v481; + v495 = g491.z; + g491.z = v482; + v496 = g491.w; + g491.w = v483; + v497 = g491.buffer; + g491.buffer = v484; + v498 = g491.size; + g491.size = v485; + v499 = g491.normalized; + g491.normalized = v486; + v500 = g491.type; + g491.type = v487; + v501 = g491.offset; + g491.offset = v488; + v502 = g491.stride; + g491.stride = v489; + v503 = g491.divisor; + g491.divisor = v490; + v505 = v9.vert; + v9.vert = g504; + v507 = v9.frag; + v9.frag = g506; + v5.dirty = true; + a1(v2, a0, a2); + v2.viewportWidth = v247; + v2.viewportHeight = v248; + v39[0] = v249; + v39[1] = v250; + v39[2] = v251; + v39[3] = v252; + v17[0] = v254; + v17[1] = v256; + v17[2] = v258; + v17[3] = v260; + v4.blend_enable = v262; + v19[0] = v264; + v19[1] = v266; + v21[0] = v268; + v21[1] = v270; + v21[2] = v272; + v21[3] = v274; + v4.depth_enable = v276; + v37[0] = v282; + v37[1] = v283; + v37[2] = v284; + v37[3] = v285; + v4.scissor_enable = v287; + v4.stencil_enable = v289; + if (v290) { + g48.cpuTime += performance.now() - v291; + } + v6.offset = v293; + v6.count = v295; + v6.instances = v297; + v6.primitive = v299; + v12[g302] = v303; + v12[g305] = v306; + v12[g308] = v309; + v12[g311] = v312; + v12[g314] = v315; + v12[g317] = v318; + v12[g320] = v321; + v12[g323] = v324; + v12[g326] = v327; + v12[g329] = v330; + v12[g332] = v333; + v12[g335] = v336; + v12[g338] = v339; + v12[g341] = v342; + g343.state = v344; + g343.x = v345; + g343.y = v346; + g343.z = v347; + g343.w = v348; + g343.buffer = v349; + g343.size = v350; + g343.normalized = v351; + g343.type = v352; + g343.offset = v353; + g343.stride = v354; + g343.divisor = v355; + g356.state = v357; + g356.x = v358; + g356.y = v359; + g356.z = v360; + g356.w = v361; + g356.buffer = v362; + g356.size = v363; + g356.normalized = v364; + g356.type = v365; + g356.offset = v366; + g356.stride = v367; + g356.divisor = v368; + if (v370) { + v8.destroyStream(v376); + } + g383.state = v384; + g383.x = v385; + g383.y = v386; + g383.z = v387; + g383.w = v388; + g383.buffer = v389; + g383.size = v390; + g383.normalized = v391; + g383.type = v392; + g383.offset = v393; + g383.stride = v394; + g383.divisor = v395; + if (v397) { + v8.destroyStream(v403); + } + g410.state = v411; + g410.x = v412; + g410.y = v413; + g410.z = v414; + g410.w = v415; + g410.buffer = v416; + g410.size = v417; + g410.normalized = v418; + g410.type = v419; + g410.offset = v420; + g410.stride = v421; + g410.divisor = v422; + if (v424) { + v8.destroyStream(v430); + } + g437.state = v438; + g437.x = v439; + g437.y = v440; + g437.z = v441; + g437.w = v442; + g437.buffer = v443; + g437.size = v444; + g437.normalized = v445; + g437.type = v446; + g437.offset = v447; + g437.stride = v448; + g437.divisor = v449; + if (v451) { + v8.destroyStream(v457); + } + g464.state = v465; + g464.x = v466; + g464.y = v467; + g464.z = v468; + g464.w = v469; + g464.buffer = v470; + g464.size = v471; + g464.normalized = v472; + g464.type = v473; + g464.offset = v474; + g464.stride = v475; + g464.divisor = v476; + if (v478) { + v8.destroyStream(v484); + } + g491.state = v492; + g491.x = v493; + g491.y = v494; + g491.z = v495; + g491.w = v496; + g491.buffer = v497; + g491.size = v498; + g491.normalized = v499; + g491.type = v500; + g491.offset = v501; + g491.stride = v502; + g491.divisor = v503; + v9.vert = v505; + v9.frag = v507; + v5.dirty = true; + }, + "batch": function(a0, a1) { + var v508, v509, v545, v546, v547, v548, v549; + v508 = v14.angle_instanced_arrays; + v509 = v13.next; + if (v509 !== v13.cur) { + if (v509) { + v1.bindFramebuffer(36160, v509.framebuffer); + } else { + v1.bindFramebuffer(36160, null); } + v13.cur = v509; } - ya = AxisIDs.getFromId(gd, trace._diag[i][1]); - if (ya) { - ypx[k] = new Array(commonLength); - for (j = 0; j < commonLength; j++) { - ypx[k][j] = ya.c2p(cdata[k][j]); + if (v5.dirty) { + var v510, v511, v512, v513, v514, v515, v516, v517, v518, v519, v520, v521, v522, v523, v524, v525, v526, v527, v528, v529, v530, v531, v532, v533, v534, v535, v536, v537, v538, v539, v540, v541; + v510 = v4.dither; + if (v510 !== v5.dither) { + if (v510) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v510; + } + v511 = v4.depth_func; + if (v511 !== v5.depth_func) { + v1.depthFunc(v511); + v5.depth_func = v511; + } + v512 = v23[0]; + v513 = v23[1]; + if (v512 !== v24[0] || v513 !== v24[1]) { + v1.depthRange(v512, v513); + v24[0] = v512; + v24[1] = v513; + } + v514 = v4.depth_mask; + if (v514 !== v5.depth_mask) { + v1.depthMask(v514); + v5.depth_mask = v514; + } + v515 = v25[0]; + v516 = v25[1]; + v517 = v25[2]; + v518 = v25[3]; + if (v515 !== v26[0] || v516 !== v26[1] || v517 !== v26[2] || v518 !== v26[3]) { + v1.colorMask(v515, v516, v517, v518); + v26[0] = v515; + v26[1] = v516; + v26[2] = v517; + v26[3] = v518; + } + v519 = v4.cull_enable; + if (v519 !== v5.cull_enable) { + if (v519) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v519; + } + v520 = v4.cull_face; + if (v520 !== v5.cull_face) { + v1.cullFace(v520); + v5.cull_face = v520; + } + v521 = v4.frontFace; + if (v521 !== v5.frontFace) { + v1.frontFace(v521); + v5.frontFace = v521; + } + v522 = v4.lineWidth; + if (v522 !== v5.lineWidth) { + v1.lineWidth(v522); + v5.lineWidth = v522; + } + v523 = v4.polygonOffset_enable; + if (v523 !== v5.polygonOffset_enable) { + if (v523) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v523; + } + v524 = v27[0]; + v525 = v27[1]; + if (v524 !== v28[0] || v525 !== v28[1]) { + v1.polygonOffset(v524, v525); + v28[0] = v524; + v28[1] = v525; + } + v526 = v4.sample_alpha; + if (v526 !== v5.sample_alpha) { + if (v526) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v526; + } + v527 = v4.sample_enable; + if (v527 !== v5.sample_enable) { + if (v527) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v527; + } + v528 = v29[0]; + v529 = v29[1]; + if (v528 !== v30[0] || v529 !== v30[1]) { + v1.sampleCoverage(v528, v529); + v30[0] = v528; + v30[1] = v529; + } + v530 = v4.stencil_mask; + if (v530 !== v5.stencil_mask) { + v1.stencilMask(v530); + v5.stencil_mask = v530; + } + v531 = v31[0]; + v532 = v31[1]; + v533 = v31[2]; + if (v531 !== v32[0] || v532 !== v32[1] || v533 !== v32[2]) { + v1.stencilFunc(v531, v532, v533); + v32[0] = v531; + v32[1] = v532; + v32[2] = v533; + } + v534 = v33[0]; + v535 = v33[1]; + v536 = v33[2]; + v537 = v33[3]; + if (v534 !== v34[0] || v535 !== v34[1] || v536 !== v34[2] || v537 !== v34[3]) { + v1.stencilOpSeparate(v534, v535, v536, v537); + v34[0] = v534; + v34[1] = v535; + v34[2] = v536; + v34[3] = v537; + } + v538 = v35[0]; + v539 = v35[1]; + v540 = v35[2]; + v541 = v35[3]; + if (v538 !== v36[0] || v539 !== v36[1] || v540 !== v36[2] || v541 !== v36[3]) { + v1.stencilOpSeparate(v538, v539, v540, v541); + v36[0] = v538; + v36[1] = v539; + v36[2] = v540; + v36[3] = v541; } } - } - if (scene.selectBatch.length || scene.unselectBatch.length) { - var unselOpts = Lib.extendFlat({}, matrixOpts, scene.unselectedOptions, viewOpts); - var selOpts = Lib.extendFlat({}, matrixOpts, scene.selectedOptions, viewOpts); - scene.matrix.update(unselOpts, selOpts); - needsBaseUpdate = false; - } - } else { - stash.xpx = stash.ypx = null; - } - if (needsBaseUpdate) { - var opts = Lib.extendFlat({}, matrixOpts, viewOpts); - scene.matrix.update(opts, null); - } - } - } - }); - - // src/traces/splom/helpers.js - var require_helpers17 = __commonJS({ - "src/traces/splom/helpers.js"(exports) { - "use strict"; - exports.getDimIndex = function getDimIndex(trace, ax) { - var axId = ax._id; - var axLetter = axId.charAt(0); - var ind = { x: 0, y: 1 }[axLetter]; - var visibleDims = trace._visibleDims; - for (var k = 0; k < visibleDims.length; k++) { - var i = visibleDims[k]; - if (trace._diag[i][ind] === axId) return k; - } - return false; - }; - } - }); - - // src/traces/splom/hover.js - var require_hover17 = __commonJS({ - "src/traces/splom/hover.js"(exports, module) { - "use strict"; - var helpers = require_helpers17(); - var calcHover = require_hover16().calcHover; - var getFromId = require_axes().getFromId; - var extendFlat = require_extend().extendFlat; - function hoverPoints(pointData, xval, yval, hovermode, opts) { - if (!opts) opts = {}; - var hovermodeHasX = (hovermode || "").charAt(0) === "x"; - var hovermodeHasY = (hovermode || "").charAt(0) === "y"; - var points = _hoverPoints(pointData, xval, yval); - if ((hovermodeHasX || hovermodeHasY) && opts.hoversubplots === "axis" && points[0]) { - var subplotsWith = (hovermodeHasX ? pointData.xa : pointData.ya)._subplotsWith; - var gd = opts.gd; - var _pointData = extendFlat({}, pointData); - for (var i = 0; i < subplotsWith.length; i++) { - var spId = subplotsWith[i]; - if (spId === pointData.xa._id + pointData.ya._id) continue; - if (hovermodeHasY) { - _pointData.xa = getFromId(gd, spId, "x"); + v1.blendColor(0, 0, 0, 0); + v18[0] = 0; + v18[1] = 0; + v18[2] = 0; + v18[3] = 0; + if (g542) { + v1.enable(3042); } else { - _pointData.ya = getFromId(gd, spId, "y"); + v1.disable(3042); } - var axisHoversubplots = hovermodeHasX || hovermodeHasY; - var newPoints = _hoverPoints(_pointData, xval, yval, axisHoversubplots); - points = points.concat(newPoints); - } - } - return points; - } - function _hoverPoints(pointData, xval, yval, axisHoversubplots) { - var cd = pointData.cd; - var trace = cd[0].trace; - var scene = pointData.scene; - var cdata = scene.matrixOptions.cdata; - var xa = pointData.xa; - var ya = pointData.ya; - var xpx = xa.c2p(xval); - var ypx = ya.c2p(yval); - var maxDistance = pointData.distance; - var xi = helpers.getDimIndex(trace, xa); - var yi = helpers.getDimIndex(trace, ya); - if (xi === false || yi === false) return [pointData]; - var x = cdata[xi]; - var y = cdata[yi]; - var id, dxy; - var minDist = maxDistance; - for (var i = 0; i < x.length; i++) { - if (axisHoversubplots && i !== pointData.index) continue; - var ptx = x[i]; - var pty = y[i]; - var dx = xa.c2p(ptx) - xpx; - var dy = ya.c2p(pty) - ypx; - var dist = Math.sqrt(dx * dx + dy * dy); - if (axisHoversubplots || dist < minDist) { - minDist = dxy = dist; - id = i; - } - } - pointData.index = id; - pointData.distance = minDist; - pointData.dxy = dxy; - if (id === void 0) return [pointData]; - return [calcHover(pointData, x, y, trace)]; - } - module.exports = { - hoverPoints - }; - } - }); - - // src/traces/splom/select.js - var require_select8 = __commonJS({ - "src/traces/splom/select.js"(exports, module) { - "use strict"; - var Lib = require_lib(); - var pushUnique = Lib.pushUnique; - var subTypes = require_subtypes(); - var helpers = require_helpers17(); - module.exports = function select(searchInfo, selectionTester) { - var cd = searchInfo.cd; - var trace = cd[0].trace; - var stash = cd[0].t; - var scene = searchInfo.scene; - var cdata = scene.matrixOptions.cdata; - var xa = searchInfo.xaxis; - var ya = searchInfo.yaxis; - var selection = []; - if (!scene) return selection; - var hasOnlyLines = !subTypes.hasMarkers(trace) && !subTypes.hasText(trace); - if (trace.visible !== true || hasOnlyLines) return selection; - var xi = helpers.getDimIndex(trace, xa); - var yi = helpers.getDimIndex(trace, ya); - if (xi === false || yi === false) return selection; - var xpx = stash.xpx[xi]; - var ypx = stash.ypx[yi]; - var x = cdata[xi]; - var y = cdata[yi]; - var els = (searchInfo.scene.selectBatch || []).slice(); - var unels = []; - if (selectionTester !== false && !selectionTester.degenerate) { - for (var i = 0; i < x.length; i++) { - if (selectionTester.contains([xpx[i], ypx[i]], null, i, searchInfo)) { - selection.push({ - pointNumber: i, - x: x[i], - y: y[i] - }); - pushUnique(els, i); - } else if (els.indexOf(i) !== -1) { - pushUnique(els, i); + v5.blend_enable = g542; + v1.blendEquationSeparate(32774, 32774); + v20[0] = 32774; + v20[1] = 32774; + v1.blendFuncSeparate(770, 771, 773, 1); + v22[0] = 770; + v22[1] = 771; + v22[2] = 773; + v22[3] = 1; + if (g543) { + v1.enable(3089); } else { - unels.push(i); + v1.disable(3089); } - } - } - var matrixOpts = scene.matrixOptions; - if (!els.length && !unels.length) { - scene.matrix.update(matrixOpts, null); - } else if (!scene.selectBatch.length && !scene.unselectBatch.length) { - scene.matrix.update( - scene.unselectedOptions, - Lib.extendFlat({}, matrixOpts, scene.selectedOptions, scene.viewOpts) - ); - } - scene.selectBatch = els; - scene.unselectBatch = unels; - return selection; - }; - } - }); - - // src/traces/splom/edit_style.js - var require_edit_style2 = __commonJS({ - "src/traces/splom/edit_style.js"(exports, module) { - "use strict"; - var Lib = require_lib(); - var calcColorscale = require_colorscale_calc(); - var convertMarkerStyle = require_convert10().markerStyle; - module.exports = function editStyle(gd, cd0) { - var trace = cd0.trace; - var scene = gd._fullLayout._splomScenes[trace.uid]; - if (scene) { - calcColorscale(gd, trace); - Lib.extendFlat(scene.matrixOptions, convertMarkerStyle(gd, trace)); - var opts = Lib.extendFlat({}, scene.matrixOptions, scene.viewOpts); - scene.matrix.update(opts, null); - } - }; - } - }); - - // src/traces/splom/base_index.js - var require_base_index2 = __commonJS({ - "src/traces/splom/base_index.js"(exports, module) { - "use strict"; - var Registry = require_registry(); - var Grid = require_grid(); - module.exports = { - moduleType: "trace", - name: "splom", - categories: ["gl", "regl", "cartesian", "symbols", "showLegend", "scatter-like"], - attributes: require_attributes51(), - supplyDefaults: require_defaults47(), - colorbar: require_marker_colorbar(), - calc: require_calc30(), - plot: require_plot20(), - hoverPoints: require_hover17().hoverPoints, - selectPoints: require_select8(), - editStyle: require_edit_style2(), - meta: {} - }; - Registry.register(Grid); - } - }); - - // src/traces/splom/base_plot.js - var require_base_plot6 = __commonJS({ - "src/traces/splom/base_plot.js"(exports, module) { - "use strict"; - var createLine = require_regl_line2d(); - var Registry = require_registry(); - var prepareRegl = require_prepare_regl(); - var getModuleCalcData = require_get_data().getModuleCalcData; - var Cartesian = require_cartesian(); - var getFromId = require_axis_ids().getFromId; - var shouldShowZeroLine = require_axes().shouldShowZeroLine; - var SPLOM = "splom"; - var reglPrecompiled = {}; - function plot(gd) { - var fullLayout = gd._fullLayout; - var _module = Registry.getModule(SPLOM); - var splomCalcData = getModuleCalcData(gd.calcdata, _module)[0]; - var success = prepareRegl(gd, ["ANGLE_instanced_arrays", "OES_element_index_uint"], reglPrecompiled); - if (!success) return; - if (fullLayout._hasOnlyLargeSploms) { - updateGrid(gd); - } - _module.plot(gd, {}, splomCalcData); - } - function drag(gd) { - var cd = gd.calcdata; - var fullLayout = gd._fullLayout; - if (fullLayout._hasOnlyLargeSploms) { - updateGrid(gd); - } - for (var i = 0; i < cd.length; i++) { - var cd0 = cd[i][0]; - var trace = cd0.trace; - var scene = fullLayout._splomScenes[trace.uid]; - if (trace.type === "splom" && scene && scene.matrix) { - dragOne(gd, trace, scene); - } - } - } - function dragOne(gd, trace, scene) { - var visibleLength = scene.matrixOptions.data.length; - var visibleDims = trace._visibleDims; - var ranges = scene.viewOpts.ranges = new Array(visibleLength); - for (var k = 0; k < visibleDims.length; k++) { - var i = visibleDims[k]; - var rng = ranges[k] = new Array(4); - var xa = getFromId(gd, trace._diag[i][0]); - if (xa) { - rng[0] = xa.r2l(xa.range[0]); - rng[2] = xa.r2l(xa.range[1]); - } - var ya = getFromId(gd, trace._diag[i][1]); - if (ya) { - rng[1] = ya.r2l(ya.range[0]); - rng[3] = ya.r2l(ya.range[1]); - } - } - if (scene.selectBatch.length || scene.unselectBatch.length) { - scene.matrix.update({ ranges }, { ranges }); - } else { - scene.matrix.update({ ranges }); - } - } - function updateGrid(gd) { - var fullLayout = gd._fullLayout; - var regl = fullLayout._glcanvas.data()[0].regl; - var splomGrid = fullLayout._splomGrid; - if (!splomGrid) { - splomGrid = fullLayout._splomGrid = createLine(regl); - } - splomGrid.update(makeGridData(gd)); - } - function makeGridData(gd) { - var plotGlPixelRatio = gd._context.plotGlPixelRatio; - var fullLayout = gd._fullLayout; - var gs = fullLayout._size; - var fullView = [ - 0, - 0, - fullLayout.width * plotGlPixelRatio, - fullLayout.height * plotGlPixelRatio - ]; - var lookup = {}; - var k; - function push(prefix, ax, x0, x1, y0, y1) { - x0 *= plotGlPixelRatio; - x1 *= plotGlPixelRatio; - y0 *= plotGlPixelRatio; - y1 *= plotGlPixelRatio; - var lcolor = ax[prefix + "color"]; - var lwidth = ax[prefix + "width"]; - var key = String(lcolor + lwidth); - if (key in lookup) { - lookup[key].data.push(NaN, NaN, x0, x1, y0, y1); - } else { - lookup[key] = { - data: [x0, x1, y0, y1], - join: "rect", - thickness: lwidth * plotGlPixelRatio, - color: lcolor, - viewport: fullView, - range: fullView, - overlay: false - }; - } - } - for (k in fullLayout._splomSubplots) { - var sp = fullLayout._plots[k]; - var xa = sp.xaxis; - var ya = sp.yaxis; - var xVals = xa._gridVals; - var yVals = ya._gridVals; - var xOffset = xa._offset; - var xLength = xa._length; - var yLength = ya._length; - var yOffset = gs.b + ya.domain[0] * gs.h; - var ym = -ya._m; - var yb = -ym * ya.r2l(ya.range[0], ya.calendar); - var x, y; - if (xa.showgrid) { - for (k = 0; k < xVals.length; k++) { - x = xOffset + xa.l2p(xVals[k].x); - push("grid", xa, x, yOffset, x, yOffset + yLength); + v5.scissor_enable = g543; + if (g544) { + v1.enable(2960); + } else { + v1.disable(2960); } - } - if (ya.showgrid) { - for (k = 0; k < yVals.length; k++) { - y = yOffset + yb + ym * yVals[k].x; - push("grid", ya, xOffset, y, xOffset + xLength, y); + v5.stencil_enable = g544; + v545 = v5.profile; + if (v545) { + v546 = performance.now(); + g48.count += a1; } - } - if (shouldShowZeroLine(gd, xa, ya)) { - x = xOffset + xa.l2p(0); - push("zeroline", xa, x, yOffset, x, yOffset + yLength); - } - if (shouldShowZeroLine(gd, ya, xa)) { - y = yOffset + yb + 0; - push("zeroline", ya, xOffset, y, xOffset + xLength, y); - } - } - var gridBatches = []; - for (k in lookup) { - gridBatches.push(lookup[k]); - } - return gridBatches; - } - function clean(newFullData, newFullLayout, oldFullData, oldFullLayout) { - var lookup = {}; - var i; - if (oldFullLayout._splomScenes) { - for (i = 0; i < newFullData.length; i++) { - var newTrace = newFullData[i]; - if (newTrace.type === "splom") { - lookup[newTrace.uid] = 1; + v1.useProgram(g107.program); + v547 = v14.angle_instanced_arrays; + var v563, v564, v565, v566, v691; + v11.setVAO(null); + v563 = g200.location; + v564 = v10[v563]; + if (!v564.buffer) { + v1.enableVertexAttribArray(v563); } - } - for (i = 0; i < oldFullData.length; i++) { - var oldTrace = oldFullData[i]; - if (!lookup[oldTrace.uid]) { - var scene = oldFullLayout._splomScenes[oldTrace.uid]; - if (scene && scene.destroy) scene.destroy(); - oldFullLayout._splomScenes[oldTrace.uid] = null; - delete oldFullLayout._splomScenes[oldTrace.uid]; + if (v564.type !== 5126 || v564.size !== 1 || v564.buffer !== g199 || v564.normalized !== false || v564.offset !== 0 || v564.stride !== 8) { + v1.bindBuffer(34962, g199.buffer); + v1.vertexAttribPointer(v563, 1, 5126, false, 8, 0); + v564.type = 5126; + v564.size = 1; + v564.buffer = g199; + v564.normalized = false; + v564.offset = 0; + v564.stride = 8; } - } - } - if (Object.keys(oldFullLayout._splomScenes || {}).length === 0) { - delete oldFullLayout._splomScenes; - } - if (oldFullLayout._splomGrid && (!newFullLayout._hasOnlyLargeSploms && oldFullLayout._hasOnlyLargeSploms)) { - oldFullLayout._splomGrid.destroy(); - oldFullLayout._splomGrid = null; - delete oldFullLayout._splomGrid; - } - Cartesian.clean(newFullData, newFullLayout, oldFullData, oldFullLayout); - } - module.exports = { - name: SPLOM, - attr: Cartesian.attr, - attrRegex: Cartesian.attrRegex, - layoutAttributes: Cartesian.layoutAttributes, - supplyLayoutDefaults: Cartesian.supplyLayoutDefaults, - drawFramework: Cartesian.drawFramework, - plot, - drag, - updateGrid, - clean, - updateFx: Cartesian.updateFx, - toSVG: Cartesian.toSVG, - reglPrecompiled + if (v564.divisor !== 0) { + v547.vertexAttribDivisorANGLE(v563, 0); + v564.divisor = 0; + } + v565 = g203.location; + v566 = v10[v565]; + if (!v566.buffer) { + v1.enableVertexAttribArray(v565); + } + if (v566.type !== 5126 || v566.size !== 1 || v566.buffer !== g199 || v566.normalized !== false || v566.offset !== 4 || v566.stride !== 8) { + v1.bindBuffer(34962, g199.buffer); + v1.vertexAttribPointer(v565, 1, 5126, false, 8, 4); + v566.type = 5126; + v566.size = 1; + v566.buffer = g199; + v566.normalized = false; + v566.offset = 4; + v566.stride = 8; + } + if (v566.divisor !== 0) { + v547.vertexAttribDivisorANGLE(v565, 0); + v566.divisor = 0; + } + v691 = v6.elements; + if (v691) { + v1.bindBuffer(34963, v691.buffer.buffer); + } else if (v11.currentVAO) { + v691 = v7.getElements(v11.currentVAO.elements); + if (v691) v1.bindBuffer(34963, v691.buffer.buffer); + } + for (v548 = 0; v548 < a1; ++v548) { + v549 = a0[v548]; + var v550, v551, v552, v553, v554, v555, v556, v557, v558, v559, v560, v561, v562, v567, v568, v569, v570, v571, v572, v573, v574, v575, v576, v577, v578, v579, v580, v581, v582, v583, v584, v585, v586, v587, v588, v589, v590, v591, v592, v593, v594, v595, v596, v597, v598, v599, v600, v601, v602, v603, v604, v605, v606, v607, v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v625, v626, v627, v628, v629, v630, v631, v632, v633, v634, v635, v636, v637, v638, v639, v640, v641, v642, v643, v644, v645, v646, v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677, v678, v679, v680, v681, v682, v683, v684, v685, v686, v687, v688, v689, v690, v692; + v550 = v549["viewport"]; + v551 = v550.x | 0; + v552 = v550.y | 0; + v553 = "width" in v550 ? v550.width | 0 : v2.framebufferWidth - v551; + v554 = "height" in v550 ? v550.height | 0 : v2.framebufferHeight - v552; + v555 = v2.viewportWidth; + v2.viewportWidth = v553; + v556 = v2.viewportHeight; + v2.viewportHeight = v554; + v1.viewport(v551, v552, v553, v554); + v40[0] = v551; + v40[1] = v552; + v40[2] = v553; + v40[3] = v554; + v557 = g96.call(this, v2, v549, v548); + if (v557) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v557; + v558 = v549["viewport"]; + v559 = v558.x | 0; + v560 = v558.y | 0; + v561 = "width" in v558 ? v558.width | 0 : v2.framebufferWidth - v559; + v562 = "height" in v558 ? v558.height | 0 : v2.framebufferHeight - v560; + v1.scissor(v559, v560, v561, v562); + v38[0] = v559; + v38[1] = v560; + v38[2] = v561; + v38[3] = v562; + v567 = v549["positionBuffer"]; + v49.buffer = v567; + v568 = false; + v569 = 1; + v570 = 0; + v571 = 0; + v572 = 0; + v573 = 0; + v574 = null; + v575 = 0; + v576 = false; + v577 = 5126; + v578 = 0; + v579 = 0; + v580 = 0; + if (v16(v49)) { + v568 = true; + v574 = v8.createStream(34962, v49); + v577 = v574.dtype; + } else { + v574 = v8.getBuffer(v49); + if (v574) { + v577 = v574.dtype; + } else if ("constant" in v49) { + v569 = 2; + if (typeof v49.constant === "number") { + v570 = v49.constant; + v571 = v572 = v573 = 0; + } else { + v570 = v49.constant.length > 0 ? v49.constant[0] : 0; + v571 = v49.constant.length > 1 ? v49.constant[1] : 0; + v572 = v49.constant.length > 2 ? v49.constant[2] : 0; + v573 = v49.constant.length > 3 ? v49.constant[3] : 0; + } + } else { + if (v16(v49.buffer)) { + v574 = v8.createStream(34962, v49.buffer); + } else { + v574 = v8.getBuffer(v49.buffer); + } + v577 = "type" in v49 ? v46[v49.type] : v574.dtype; + v576 = !!v49.normalized; + v575 = v49.size | 0; + v578 = v49.offset | 0; + v579 = v49.stride | 0; + v580 = v49.divisor | 0; + } + } + v581 = g123.location; + v582 = v10[v581]; + if (v569 === 1) { + if (!v582.buffer) { + v1.enableVertexAttribArray(v581); + } + v583 = v575 || 2; + if (v582.type !== v577 || v582.size !== v583 || v582.buffer !== v574 || v582.normalized !== v576 || v582.offset !== v578 || v582.stride !== v579) { + v1.bindBuffer(34962, v574.buffer); + v1.vertexAttribPointer(v581, v583, v577, v576, v579, v578); + v582.type = v577; + v582.size = v583; + v582.buffer = v574; + v582.normalized = v576; + v582.offset = v578; + v582.stride = v579; + } + if (v582.divisor !== v580) { + v547.vertexAttribDivisorANGLE(v581, v580); + v582.divisor = v580; + } + } else { + if (v582.buffer) { + v1.disableVertexAttribArray(v581); + v582.buffer = null; + } + if (v582.x !== v570 || v582.y !== v571 || v582.z !== v572 || v582.w !== v573) { + v1.vertexAttrib4f(v581, v570, v571, v572, v573); + v582.x = v570; + v582.y = v571; + v582.z = v572; + v582.w = v573; + } + } + v584 = v549["positionFractBuffer"]; + v51.buffer = v584; + v585 = false; + v586 = 1; + v587 = 0; + v588 = 0; + v589 = 0; + v590 = 0; + v591 = null; + v592 = 0; + v593 = false; + v594 = 5126; + v595 = 0; + v596 = 0; + v597 = 0; + if (v16(v51)) { + v585 = true; + v591 = v8.createStream(34962, v51); + v594 = v591.dtype; + } else { + v591 = v8.getBuffer(v51); + if (v591) { + v594 = v591.dtype; + } else if ("constant" in v51) { + v586 = 2; + if (typeof v51.constant === "number") { + v587 = v51.constant; + v588 = v589 = v590 = 0; + } else { + v587 = v51.constant.length > 0 ? v51.constant[0] : 0; + v588 = v51.constant.length > 1 ? v51.constant[1] : 0; + v589 = v51.constant.length > 2 ? v51.constant[2] : 0; + v590 = v51.constant.length > 3 ? v51.constant[3] : 0; + } + } else { + if (v16(v51.buffer)) { + v591 = v8.createStream(34962, v51.buffer); + } else { + v591 = v8.getBuffer(v51.buffer); + } + v594 = "type" in v51 ? v46[v51.type] : v591.dtype; + v593 = !!v51.normalized; + v592 = v51.size | 0; + v595 = v51.offset | 0; + v596 = v51.stride | 0; + v597 = v51.divisor | 0; + } + } + v598 = g141.location; + v599 = v10[v598]; + if (v586 === 1) { + if (!v599.buffer) { + v1.enableVertexAttribArray(v598); + } + v600 = v592 || 2; + if (v599.type !== v594 || v599.size !== v600 || v599.buffer !== v591 || v599.normalized !== v593 || v599.offset !== v595 || v599.stride !== v596) { + v1.bindBuffer(34962, v591.buffer); + v1.vertexAttribPointer(v598, v600, v594, v593, v596, v595); + v599.type = v594; + v599.size = v600; + v599.buffer = v591; + v599.normalized = v593; + v599.offset = v595; + v599.stride = v596; + } + if (v599.divisor !== v597) { + v547.vertexAttribDivisorANGLE(v598, v597); + v599.divisor = v597; + } + } else { + if (v599.buffer) { + v1.disableVertexAttribArray(v598); + v599.buffer = null; + } + if (v599.x !== v587 || v599.y !== v588 || v599.z !== v589 || v599.w !== v590) { + v1.vertexAttrib4f(v598, v587, v588, v589, v590); + v599.x = v587; + v599.y = v588; + v599.z = v589; + v599.w = v590; + } + } + v601 = v549["positionBuffer"]; + v50.buffer = v601; + v602 = false; + v603 = 1; + v604 = 0; + v605 = 0; + v606 = 0; + v607 = 0; + v608 = null; + v609 = 0; + v610 = false; + v611 = 5126; + v612 = 0; + v613 = 0; + v614 = 0; + if (v16(v50)) { + v602 = true; + v608 = v8.createStream(34962, v50); + v611 = v608.dtype; + } else { + v608 = v8.getBuffer(v50); + if (v608) { + v611 = v608.dtype; + } else if ("constant" in v50) { + v603 = 2; + if (typeof v50.constant === "number") { + v604 = v50.constant; + v605 = v606 = v607 = 0; + } else { + v604 = v50.constant.length > 0 ? v50.constant[0] : 0; + v605 = v50.constant.length > 1 ? v50.constant[1] : 0; + v606 = v50.constant.length > 2 ? v50.constant[2] : 0; + v607 = v50.constant.length > 3 ? v50.constant[3] : 0; + } + } else { + if (v16(v50.buffer)) { + v608 = v8.createStream(34962, v50.buffer); + } else { + v608 = v8.getBuffer(v50.buffer); + } + v611 = "type" in v50 ? v46[v50.type] : v608.dtype; + v610 = !!v50.normalized; + v609 = v50.size | 0; + v612 = v50.offset | 0; + v613 = v50.stride | 0; + v614 = v50.divisor | 0; + } + } + v615 = g159.location; + v616 = v10[v615]; + if (v603 === 1) { + if (!v616.buffer) { + v1.enableVertexAttribArray(v615); + } + v617 = v609 || 2; + if (v616.type !== v611 || v616.size !== v617 || v616.buffer !== v608 || v616.normalized !== v610 || v616.offset !== v612 || v616.stride !== v613) { + v1.bindBuffer(34962, v608.buffer); + v1.vertexAttribPointer(v615, v617, v611, v610, v613, v612); + v616.type = v611; + v616.size = v617; + v616.buffer = v608; + v616.normalized = v610; + v616.offset = v612; + v616.stride = v613; + } + if (v616.divisor !== v614) { + v547.vertexAttribDivisorANGLE(v615, v614); + v616.divisor = v614; + } + } else { + if (v616.buffer) { + v1.disableVertexAttribArray(v615); + v616.buffer = null; + } + if (v616.x !== v604 || v616.y !== v605 || v616.z !== v606 || v616.w !== v607) { + v1.vertexAttrib4f(v615, v604, v605, v606, v607); + v616.x = v604; + v616.y = v605; + v616.z = v606; + v616.w = v607; + } + } + v618 = v549["positionFractBuffer"]; + v52.buffer = v618; + v619 = false; + v620 = 1; + v621 = 0; + v622 = 0; + v623 = 0; + v624 = 0; + v625 = null; + v626 = 0; + v627 = false; + v628 = 5126; + v629 = 0; + v630 = 0; + v631 = 0; + if (v16(v52)) { + v619 = true; + v625 = v8.createStream(34962, v52); + v628 = v625.dtype; + } else { + v625 = v8.getBuffer(v52); + if (v625) { + v628 = v625.dtype; + } else if ("constant" in v52) { + v620 = 2; + if (typeof v52.constant === "number") { + v621 = v52.constant; + v622 = v623 = v624 = 0; + } else { + v621 = v52.constant.length > 0 ? v52.constant[0] : 0; + v622 = v52.constant.length > 1 ? v52.constant[1] : 0; + v623 = v52.constant.length > 2 ? v52.constant[2] : 0; + v624 = v52.constant.length > 3 ? v52.constant[3] : 0; + } + } else { + if (v16(v52.buffer)) { + v625 = v8.createStream(34962, v52.buffer); + } else { + v625 = v8.getBuffer(v52.buffer); + } + v628 = "type" in v52 ? v46[v52.type] : v625.dtype; + v627 = !!v52.normalized; + v626 = v52.size | 0; + v629 = v52.offset | 0; + v630 = v52.stride | 0; + v631 = v52.divisor | 0; + } + } + v632 = g177.location; + v633 = v10[v632]; + if (v620 === 1) { + if (!v633.buffer) { + v1.enableVertexAttribArray(v632); + } + v634 = v626 || 2; + if (v633.type !== v628 || v633.size !== v634 || v633.buffer !== v625 || v633.normalized !== v627 || v633.offset !== v629 || v633.stride !== v630) { + v1.bindBuffer(34962, v625.buffer); + v1.vertexAttribPointer(v632, v634, v628, v627, v630, v629); + v633.type = v628; + v633.size = v634; + v633.buffer = v625; + v633.normalized = v627; + v633.offset = v629; + v633.stride = v630; + } + if (v633.divisor !== v631) { + v547.vertexAttribDivisorANGLE(v632, v631); + v633.divisor = v631; + } + } else { + if (v633.buffer) { + v1.disableVertexAttribArray(v632); + v633.buffer = null; + } + if (v633.x !== v621 || v633.y !== v622 || v633.z !== v623 || v633.w !== v624) { + v1.vertexAttrib4f(v632, v621, v622, v623, v624); + v633.x = v621; + v633.y = v622; + v633.z = v623; + v633.w = v624; + } + } + v635 = v549["colorBuffer"]; + v53.buffer = v635; + v636 = false; + v637 = 1; + v638 = 0; + v639 = 0; + v640 = 0; + v641 = 0; + v642 = null; + v643 = 0; + v644 = false; + v645 = 5126; + v646 = 0; + v647 = 0; + v648 = 0; + if (v16(v53)) { + v636 = true; + v642 = v8.createStream(34962, v53); + v645 = v642.dtype; + } else { + v642 = v8.getBuffer(v53); + if (v642) { + v645 = v642.dtype; + } else if ("constant" in v53) { + v637 = 2; + if (typeof v53.constant === "number") { + v638 = v53.constant; + v639 = v640 = v641 = 0; + } else { + v638 = v53.constant.length > 0 ? v53.constant[0] : 0; + v639 = v53.constant.length > 1 ? v53.constant[1] : 0; + v640 = v53.constant.length > 2 ? v53.constant[2] : 0; + v641 = v53.constant.length > 3 ? v53.constant[3] : 0; + } + } else { + if (v16(v53.buffer)) { + v642 = v8.createStream(34962, v53.buffer); + } else { + v642 = v8.getBuffer(v53.buffer); + } + v645 = "type" in v53 ? v46[v53.type] : v642.dtype; + v644 = !!v53.normalized; + v643 = v53.size | 0; + v646 = v53.offset | 0; + v647 = v53.stride | 0; + v648 = v53.divisor | 0; + } + } + v649 = g195.location; + v650 = v10[v649]; + if (v637 === 1) { + if (!v650.buffer) { + v1.enableVertexAttribArray(v649); + } + v651 = v643 || 4; + if (v650.type !== v645 || v650.size !== v651 || v650.buffer !== v642 || v650.normalized !== v644 || v650.offset !== v646 || v650.stride !== v647) { + v1.bindBuffer(34962, v642.buffer); + v1.vertexAttribPointer(v649, v651, v645, v644, v647, v646); + v650.type = v645; + v650.size = v651; + v650.buffer = v642; + v650.normalized = v644; + v650.offset = v646; + v650.stride = v647; + } + if (v650.divisor !== v648) { + v547.vertexAttribDivisorANGLE(v649, v648); + v650.divisor = v648; + } + } else { + if (v650.buffer) { + v1.disableVertexAttribArray(v649); + v650.buffer = null; + } + if (v650.x !== v638 || v650.y !== v639 || v650.z !== v640 || v650.w !== v641) { + v1.vertexAttrib4f(v649, v638, v639, v640, v641); + v650.x = v638; + v650.y = v639; + v650.z = v640; + v650.w = v641; + } + } + v652 = v549["dashLength"]; + if (!v548 || v653 !== v652) { + v653 = v652; + v1.uniform1f(g206.location, v652); + } + v654 = v549["dashTexture"]; + if (v654 && v654._reglType === "framebuffer") { + v654 = v654.color[0]; + } + v655 = v654._texture; + v1.uniform1i(g208.location, v655.bind()); + v656 = v549["depth"]; + if (!v548 || v657 !== v656) { + v657 = v656; + v1.uniform1f(g211.location, v656); + } + v658 = v549["opacity"]; + if (!v548 || v659 !== v658) { + v659 = v658; + v1.uniform1f(g213.location, v658); + } + v660 = v549["scale"]; + v661 = v660[0]; + v663 = v660[1]; + if (!v548 || v662 !== v661 || v664 !== v663) { + v662 = v661; + v664 = v663; + v1.uniform2f(g215.location, v661, v663); + } + v665 = v549["scaleFract"]; + v666 = v665[0]; + v668 = v665[1]; + if (!v548 || v667 !== v666 || v669 !== v668) { + v667 = v666; + v669 = v668; + v1.uniform2f(g219.location, v666, v668); + } + v670 = v549["thickness"]; + if (!v548 || v671 !== v670) { + v671 = v670; + v1.uniform1f(g223.location, v670); + } + v672 = v549["translate"]; + v673 = v672[0]; + v675 = v672[1]; + if (!v548 || v674 !== v673 || v676 !== v675) { + v674 = v673; + v676 = v675; + v1.uniform2f(g225.location, v673, v675); + } + v677 = v549["translateFract"]; + v678 = v677[0]; + v680 = v677[1]; + if (!v548 || v679 !== v678 || v681 !== v680) { + v679 = v678; + v681 = v680; + v1.uniform2f(g229.location, v678, v680); + } + v682 = g234.call(this, v2, v549, v548); + v683 = v682[0]; + v685 = v682[1]; + v687 = v682[2]; + v689 = v682[3]; + if (!v548 || v684 !== v683 || v686 !== v685 || v688 !== v687 || v690 !== v689) { + v684 = v683; + v686 = v685; + v688 = v687; + v690 = v689; + v1.uniform4f(g233.location, v683, v685, v687, v689); + } + v692 = v549["count"]; + if (v692 > 0) { + if (v691) { + v547.drawElementsInstancedANGLE(5, 4, v691.type, 0 << (v691.type - 5121 >> 1), v692); + } else { + v547.drawArraysInstancedANGLE(5, 0, 4, v692); + } + } else if (v692 < 0) { + if (v691) { + v1.drawElements(5, 4, v691.type, 0 << (v691.type - 5121 >> 1)); + } else { + v1.drawArrays(5, 0, 4); + } + } + v2.viewportWidth = v555; + v2.viewportHeight = v556; + if (v568) { + v8.destroyStream(v574); + } + if (v585) { + v8.destroyStream(v591); + } + if (v602) { + v8.destroyStream(v608); + } + if (v619) { + v8.destroyStream(v625); + } + if (v636) { + v8.destroyStream(v642); + } + v655.unbind(); + } + v5.dirty = true; + v11.setVAO(null); + if (v545) { + g48.cpuTime += performance.now() - v546; + } + } + }; }; } }); - // src/traces/splom/regl_precompiled.js - var require_regl_precompiled2 = __commonJS({ - "src/traces/splom/regl_precompiled.js"(exports, module) { + // src/traces/scattergl/regl_precompiled.js + var require_regl_precompiled = __commonJS({ + "src/traces/scattergl/regl_precompiled.js"(exports, module) { "use strict"; var v0 = require_e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b(); - var v1 = require_cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81(); - var v2 = require_fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623(); - var v3 = require_dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5(); - var v4 = require_bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019(); - var v5 = require_fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7(); - var v6 = require_db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d(); - var v7 = require_e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210(); - var v8 = require_a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923(); - var v9 = require_aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034(); + var v1 = require_e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210(); + var v2 = require_a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923(); + var v3 = require_aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034(); + var v4 = require_fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623(); + var v5 = require_bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019(); + var v6 = require_cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81(); + var v7 = require_db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d(); + var v8 = require_dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5(); + var v9 = require_fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7(); module.exports = { "3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b": v0, - "cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81": v1, - "8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623": v2, - "dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5": v3, - "bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019": v4, - "fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7": v5, - "db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d": v6, - "49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210": v7, - "6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923": v8, - "8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034": v9 + "49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210": v1, + "6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923": v2, + "8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034": v3, + "8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623": v4, + "bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019": v5, + "cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81": v6, + "db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d": v7, + "dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5": v8, + "fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7": v9 }; } }); - // src/traces/splom/base_plot_strict.js - var require_base_plot_strict = __commonJS({ - "src/traces/splom/base_plot_strict.js"(exports, module) { + // src/traces/scattergl/plot_strict.js + var require_plot_strict = __commonJS({ + "src/traces/scattergl/plot_strict.js"(exports, module) { "use strict"; - var basePlot = require_base_plot6(); - var reglPrecompiled = require_regl_precompiled2(); - Object.assign(basePlot.reglPrecompiled, reglPrecompiled); - module.exports = basePlot; + var plot = require_plot19(); + var reglPrecompiled = require_regl_precompiled(); + Object.assign(plot.reglPrecompiled, reglPrecompiled); + module.exports = plot; } }); - // src/traces/splom/strict.js - var require_strict2 = __commonJS({ - "src/traces/splom/strict.js"(exports, module) { + // src/traces/scattergl/strict.js + var require_strict = __commonJS({ + "src/traces/scattergl/strict.js"(exports, module) { "use strict"; - var index = require_base_index2(); - index.basePlotModule = require_base_plot_strict(), module.exports = index; + var index = require_base_index(); + index.plot = require_plot_strict(); + module.exports = index; } }); - // src/traces/parcoords/attributes.js - var require_attributes52 = __commonJS({ - "src/traces/parcoords/attributes.js"(exports, module) { + // src/traces/splom/attributes.js + var require_attributes51 = __commonJS({ + "src/traces/splom/attributes.js"(exports, module) { "use strict"; + var scatterAttrs = require_attributes12(); var colorScaleAttrs = require_attributes8(); - var axesAttrs = require_layout_attributes4(); - var fontAttrs = require_font_attributes(); - var domainAttrs = require_domain().attributes; - var extendFlat = require_extend().extendFlat; + var axisHoverFormat = require_axis_format_attributes().axisHoverFormat; + var { hovertemplateAttrs, templatefallbackAttrs } = require_template_attributes(); + var scatterGlAttrs = require_attributes50(); + var cartesianIdRegex = require_constants2().idRegex; var templatedArray = require_plot_template().templatedArray; + var extendFlat = require_extend().extendFlat; + var scatterMarkerAttrs = scatterAttrs.marker; + var scatterMarkerLineAttrs = scatterMarkerAttrs.line; + var markerLineAttrs = extendFlat(colorScaleAttrs("marker.line", { editTypeOverride: "calc" }), { + width: extendFlat({}, scatterMarkerLineAttrs.width, { editType: "calc" }), + editType: "calc" + }); + var markerAttrs = extendFlat(colorScaleAttrs("marker"), { + symbol: scatterMarkerAttrs.symbol, + angle: scatterMarkerAttrs.angle, + size: extendFlat({}, scatterMarkerAttrs.size, { editType: "markerSize" }), + sizeref: scatterMarkerAttrs.sizeref, + sizemin: scatterMarkerAttrs.sizemin, + sizemode: scatterMarkerAttrs.sizemode, + opacity: scatterMarkerAttrs.opacity, + colorbar: scatterMarkerAttrs.colorbar, + line: markerLineAttrs, + editType: "calc" + }); + markerAttrs.color.editType = markerAttrs.cmin.editType = markerAttrs.cmax.editType = "style"; + function makeAxesValObject(axLetter) { + return { + valType: "info_array", + freeLength: true, + editType: "calc", + items: { + valType: "subplotid", + regex: cartesianIdRegex[axLetter], + editType: "plot" + } + }; + } module.exports = { - domain: domainAttrs({ name: "parcoords", trace: true, editType: "plot" }), - labelangle: { - valType: "angle", - dflt: 0, - editType: "plot" - }, - labelside: { - valType: "enumerated", - values: ["top", "bottom"], - dflt: "top", - editType: "plot" - }, - labelfont: fontAttrs({ - editType: "plot" - }), - tickfont: fontAttrs({ - autoShadowDflt: true, - editType: "plot" - }), - rangefont: fontAttrs({ - editType: "plot" - }), dimensions: templatedArray("dimension", { - label: { - valType: "string", - editType: "plot" - }, - // TODO: better way to determine ordinal vs continuous axes, - // so users can use tickvals/ticktext with a continuous axis. - tickvals: extendFlat({}, axesAttrs.tickvals, { - editType: "plot" - }), - ticktext: extendFlat({}, axesAttrs.ticktext, { - editType: "plot" - }), - tickformat: extendFlat({}, axesAttrs.tickformat, { - editType: "plot" - }), visible: { valType: "boolean", dflt: true, - editType: "plot" - }, - range: { - valType: "info_array", - items: [ - { valType: "number", editType: "plot" }, - { valType: "number", editType: "plot" } - ], - editType: "plot" - }, - constraintrange: { - valType: "info_array", - freeLength: true, - dimensions: "1-2", - items: [ - { valType: "any", editType: "plot" }, - { valType: "any", editType: "plot" } - ], - editType: "plot" + editType: "calc" }, - multiselect: { - valType: "boolean", - dflt: true, - editType: "plot" + label: { + valType: "string", + editType: "calc" }, values: { valType: "data_array", - editType: "calc" + editType: "calc+clearAxisTypes" }, - editType: "calc" - }), - line: extendFlat( - { editType: "calc" }, - colorScaleAttrs("line", { - // the default autocolorscale isn't quite usable for parcoords due to context ambiguity around 0 (grey, off-white) - // autocolorscale therefore defaults to false too, to avoid being overridden by the blue-white-red autocolor palette - colorscaleDflt: "Viridis", - autoColorDflt: false, - editTypeOverride: "calc" - }) - ), - unselected: { - line: { - color: { - valType: "color", - dflt: "#7f7f7f", - editType: "plot" + axis: { + type: { + valType: "enumerated", + values: ["linear", "log", "date", "category"], + editType: "calc+clearAxisTypes" }, - opacity: { - valType: "number", - min: 0, - max: 1, - dflt: "auto", - editType: "plot" + // TODO make 'true' the default in v3? + matches: { + valType: "boolean", + dflt: false, + editType: "calc" }, - editType: "plot" + editType: "calc+clearAxisTypes" }, - editType: "plot" - } - }; - } - }); - - // src/traces/parcoords/constants.js - var require_constants24 = __commonJS({ - "src/traces/parcoords/constants.js"(exports, module) { - "use strict"; - module.exports = { - maxDimensionCount: 60, - // this cannot be increased without WebGL code refactoring - overdrag: 45, - verticalPadding: 2, - // otherwise, horizontal lines on top or bottom are of lower width - tickDistance: 50, - canvasPixelRatio: 1, - blockLineCount: 5e3, - layers: ["contextLineLayer", "focusLineLayer", "pickLineLayer"], - axisTitleOffset: 28, - axisExtentOffset: 10, - bar: { - width: 4, - // Visible width of the filter bar - captureWidth: 10, - // Mouse-sensitive width for interaction (Fitts law) - fillColor: "magenta", - // Color of the filter bar fill - fillOpacity: 1, - // Filter bar fill opacity - snapDuration: 150, - // tween duration in ms for brush snap for ordinal axes - snapRatio: 0.25, - // ratio of bar extension relative to the distance between two adjacent ordinal values - snapClose: 0.01, - // fraction of inter-value distance to snap to the closer one, even if you're not over it - strokeOpacity: 1, - // Filter bar side stroke opacity - strokeWidth: 1, - // Filter bar side stroke width in pixels - handleHeight: 8, - // Height of the filter bar vertical resize areas on top and bottom - handleOpacity: 1, - // Opacity of the filter bar vertical resize areas on top and bottom - handleOverlap: 0 - // A larger than 0 value causes overlaps with the filter bar, represented as pixels + // TODO should add an attribute to pin down x only vars and y only vars + // like https://seaborn.pydata.org/generated/seaborn.pairplot.html + // x_vars and y_vars + // maybe more axis defaulting option e.g. `showgrid: false` + editType: "calc+clearAxisTypes" + }), + // mode: {}, (only 'markers' for now) + text: extendFlat({}, scatterGlAttrs.text, {}), + hovertext: extendFlat({}, scatterGlAttrs.hovertext, {}), + hovertemplate: hovertemplateAttrs(), + hovertemplatefallback: templatefallbackAttrs(), + xhoverformat: axisHoverFormat("x"), + yhoverformat: axisHoverFormat("y"), + marker: markerAttrs, + xaxes: makeAxesValObject("x"), + yaxes: makeAxesValObject("y"), + diagonal: { + visible: { + valType: "boolean", + dflt: true, + editType: "calc" + }, + // type: 'scattergl' | 'histogram' | 'box' | 'violin' + // ... + // more options + editType: "calc" }, - cn: { - axisExtentText: "axis-extent-text", - parcoordsLineLayers: "parcoords-line-layers", - parcoordsLineLayer: "parcoords-lines", - parcoords: "parcoords", - parcoordsControlView: "parcoords-control-view", - yAxis: "y-axis", - axisOverlays: "axis-overlays", - axis: "axis", - axisHeading: "axis-heading", - axisTitle: "axis-title", - axisExtent: "axis-extent", - axisExtentTop: "axis-extent-top", - axisExtentTopText: "axis-extent-top-text", - axisExtentBottom: "axis-extent-bottom", - axisExtentBottomText: "axis-extent-bottom-text", - axisBrush: "axis-brush" + showupperhalf: { + valType: "boolean", + dflt: true, + editType: "calc" }, - id: { - filterBarPattern: "filter-bar-pattern" - } + showlowerhalf: { + valType: "boolean", + dflt: true, + editType: "calc" + }, + selected: { + marker: scatterGlAttrs.selected.marker, + editType: "calc" + }, + unselected: { + marker: scatterGlAttrs.unselected.marker, + editType: "calc" + }, + opacity: scatterGlAttrs.opacity }; } }); - // src/lib/gup.js - var require_gup = __commonJS({ - "src/lib/gup.js"(exports, module) { + // src/traces/parcoords/merge_length.js + var require_merge_length = __commonJS({ + "src/traces/parcoords/merge_length.js"(exports, module) { "use strict"; - var identity2 = require_identity2(); - function wrap(d) { - return [d]; - } - module.exports = { - // The D3 data binding concept and the General Update Pattern promotes the idea of - // traversing into the scenegraph by using the `.data(fun, keyFun)` call. - // The `fun` is most often a `repeat`, ie. the elements beneath a `` element need - // access to the same data, or a `descend`, which fans a scenegraph node into a bunch of - // of elements, e.g. points, lines, rows, requiring an array as input. - // The role of the `keyFun` is to identify what elements are being entered/exited/updated, - // otherwise D3 reverts to using a plain index which would screw up `transition`s. - keyFun: function(d) { - return d.key; - }, - repeat: wrap, - descend: identity2, - // Plotly.js uses a convention of storing the actual contents of the `calcData` as the - // element zero of a container array. These helpers are just used for clarity as a - // newcomer to the codebase may not know what the `[0]` is, and whether there can be further - // elements (not atm). - wrap, - unwrap: function(d) { - return d[0]; + module.exports = function(traceOut, dimensions, dataAttr, len) { + if (!len) len = Infinity; + var i, dimi; + for (i = 0; i < dimensions.length; i++) { + dimi = dimensions[i]; + if (dimi.visible) len = Math.min(len, dimi[dataAttr].length); + } + if (len === Infinity) len = 0; + traceOut._length = len; + for (i = 0; i < dimensions.length; i++) { + dimi = dimensions[i]; + if (dimi.visible) dimi._length = len; } + return len; }; } }); - // src/traces/parcoords/axisbrush.js - var require_axisbrush = __commonJS({ - "src/traces/parcoords/axisbrush.js"(exports, module) { + // src/traces/splom/defaults.js + var require_defaults47 = __commonJS({ + "src/traces/splom/defaults.js"(exports, module) { "use strict"; - var c = require_constants24(); - var d3 = require_d3(); - var keyFun = require_gup().keyFun; - var repeat = require_gup().repeat; - var sortAsc = require_lib().sorterAsc; - var strTranslate = require_lib().strTranslate; - var snapRatio = c.bar.snapRatio; - function snapOvershoot(v, vAdjacent) { - return v * (1 - snapRatio) + vAdjacent * snapRatio; - } - var snapClose = c.bar.snapClose; - function closeToCovering(v, vAdjacent) { - return v * (1 - snapClose) + vAdjacent * snapClose; - } - function ordinalScaleSnap(isHigh, a, v, existingRanges) { - if (overlappingExisting(v, existingRanges)) return v; - var dir = isHigh ? -1 : 1; - var first = 0; - var last = a.length - 1; - if (dir < 0) { - var tmp = first; - first = last; - last = tmp; + var Lib = require_lib(); + var handleArrayContainerDefaults = require_array_container_defaults(); + var attributes = require_attributes51(); + var subTypes = require_subtypes(); + var handleMarkerDefaults = require_marker_defaults(); + var mergeLength = require_merge_length(); + var isOpenSymbol = require_helpers16().isOpenSymbol; + module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) { + function coerce(attr, dflt) { + return Lib.coerce(traceIn, traceOut, attributes, attr, dflt); } - var aHere = a[first]; - var aPrev = aHere; - for (var i = first; dir * i < dir * last; i += dir) { - var nextI = i + dir; - var aNext = a[nextI]; - if (dir * v < dir * closeToCovering(aHere, aNext)) return snapOvershoot(aHere, aPrev); - if (dir * v < dir * aNext || nextI === last) return snapOvershoot(aNext, aHere); - aPrev = aHere; - aHere = aNext; + var dimensions = handleArrayContainerDefaults(traceIn, traceOut, { + name: "dimensions", + handleItemDefaults: dimensionDefaults + }); + var showDiag = coerce("diagonal.visible"); + var showUpper = coerce("showupperhalf"); + var showLower = coerce("showlowerhalf"); + var dimLength = mergeLength(traceOut, dimensions, "values"); + if (!dimLength || !showDiag && !showUpper && !showLower) { + traceOut.visible = false; + return; } - } - function overlappingExisting(v, existingRanges) { - for (var i = 0; i < existingRanges.length; i++) { - if (v >= existingRanges[i][0] && v <= existingRanges[i][1]) return true; + coerce("text"); + coerce("hovertext"); + coerce("hovertemplate"); + coerce("hovertemplatefallback"); + coerce("xhoverformat"); + coerce("yhoverformat"); + handleMarkerDefaults(traceIn, traceOut, defaultColor, layout, coerce, { + noAngleRef: true, + noLineDash: true, + noStandOff: true + }); + var isOpen = isOpenSymbol(traceOut.marker.symbol); + var isBubble = subTypes.isBubble(traceOut); + coerce("marker.line.width", isOpen || isBubble ? 1 : 0); + handleAxisDefaults(traceIn, traceOut, layout, coerce); + Lib.coerceSelectionMarkerOpacity(traceOut, coerce); + }; + function dimensionDefaults(dimIn, dimOut) { + function coerce(attr, dflt) { + return Lib.coerce(dimIn, dimOut, attributes.dimensions, attr, dflt); } - return false; - } - function barHorizontalSetup(selection) { - selection.attr("x", -c.bar.captureWidth / 2).attr("width", c.bar.captureWidth); - } - function backgroundBarHorizontalSetup(selection) { - selection.attr("visibility", "visible").style("visibility", "visible").attr("fill", "yellow").attr("opacity", 0); + coerce("label"); + var values = coerce("values"); + if (!(values && values.length)) dimOut.visible = false; + else coerce("visible"); + coerce("axis.type"); + coerce("axis.matches"); } - function setHighlight(d) { - if (!d.brush.filterSpecified) { - return "0," + d.height; - } - var pixelRanges = unitToPx(d.brush.filter.getConsolidated(), d.height); - var dashArray = [0]; - var p, sectionHeight, iNext; - var currentGap = pixelRanges.length ? pixelRanges[0][0] : null; - for (var i = 0; i < pixelRanges.length; i++) { - p = pixelRanges[i]; - sectionHeight = p[1] - p[0]; - dashArray.push(currentGap); - dashArray.push(sectionHeight); - iNext = i + 1; - if (iNext < pixelRanges.length) { - currentGap = pixelRanges[iNext][0] - p[1]; - } + function handleAxisDefaults(traceIn, traceOut, layout, coerce) { + var dimensions = traceOut.dimensions; + var dimLength = dimensions.length; + var showUpper = traceOut.showupperhalf; + var showLower = traceOut.showlowerhalf; + var showDiag = traceOut.diagonal.visible; + var i, j; + var xAxesDflt = new Array(dimLength); + var yAxesDflt = new Array(dimLength); + for (i = 0; i < dimLength; i++) { + var suffix = i ? i + 1 : ""; + xAxesDflt[i] = "x" + suffix; + yAxesDflt[i] = "y" + suffix; } - dashArray.push(d.height); - return dashArray; - } - function unitToPx(unitRanges, height) { - return unitRanges.map(function(pr) { - return pr.map(function(v) { - return Math.max(0, v * height); - }).sort(sortAsc); - }); - } - function getRegion(fPix, y) { - var pad = c.bar.handleHeight; - if (y > fPix[1] + pad || y < fPix[0] - pad) return; - if (y >= 0.9 * fPix[1] + 0.1 * fPix[0]) return "n"; - if (y <= 0.9 * fPix[0] + 0.1 * fPix[1]) return "s"; - return "ns"; - } - function clearCursor() { - d3.select(document.body).style("cursor", null); - } - function styleHighlight(selection) { - selection.attr("stroke-dasharray", setHighlight); - } - function renderHighlight(root, tweenCallback) { - var bar = d3.select(root).selectAll(".highlight, .highlight-shadow"); - var barToStyle = tweenCallback ? bar.transition().duration(c.bar.snapDuration).each("end", tweenCallback) : bar; - styleHighlight(barToStyle); - } - function getInterval(d, y) { - var b = d.brush; - var active = b.filterSpecified; - var closestInterval = NaN; - var out = {}; - var i; - if (active) { - var height = d.height; - var intervals = b.filter.getConsolidated(); - var pixIntervals = unitToPx(intervals, height); - var hoveredInterval = NaN; - var previousInterval = NaN; - var nextInterval = NaN; - for (i = 0; i <= pixIntervals.length; i++) { - var p = pixIntervals[i]; - if (p && p[0] <= y && y <= p[1]) { - hoveredInterval = i; - break; - } else { - previousInterval = i ? i - 1 : NaN; - if (p && p[0] > y) { - nextInterval = i; - break; + var xaxes = coerce("xaxes", xAxesDflt); + var yaxes = coerce("yaxes", yAxesDflt); + var diag = traceOut._diag = new Array(dimLength); + traceOut._xaxes = {}; + traceOut._yaxes = {}; + var xList = []; + var yList = []; + function fillAxisStashes(axId, counterAxId, dim2, list) { + if (!axId) return; + var axLetter = axId.charAt(0); + var stash = layout._splomAxes[axLetter]; + traceOut["_" + axLetter + "axes"][axId] = 1; + list.push(axId); + if (!(axId in stash)) { + var s = stash[axId] = {}; + if (dim2) { + s.label = dim2.label || ""; + if (dim2.visible && dim2.axis) { + if (dim2.axis.type) s.type = dim2.axis.type; + if (dim2.axis.matches) s.matches = counterAxId; } } } - closestInterval = hoveredInterval; - if (isNaN(closestInterval)) { - if (isNaN(previousInterval) || isNaN(nextInterval)) { - closestInterval = isNaN(previousInterval) ? nextInterval : previousInterval; - } else { - closestInterval = y - pixIntervals[previousInterval][1] < pixIntervals[nextInterval][0] - y ? previousInterval : nextInterval; - } - } - if (!isNaN(closestInterval)) { - var fPix = pixIntervals[closestInterval]; - var region = getRegion(fPix, y); - if (region) { - out.interval = intervals[closestInterval]; - out.intervalPix = fPix; - out.region = region; - } - } } - if (d.ordinal && !out.region) { - var a = d.unitTickvals; - var unitLocation = d.unitToPaddedPx.invert(y); - for (i = 0; i < a.length; i++) { - var rangei = [ - a[Math.max(i - 1, 0)] * 0.25 + a[i] * 0.75, - a[Math.min(i + 1, a.length - 1)] * 0.25 + a[i] * 0.75 - ]; - if (unitLocation >= rangei[0] && unitLocation <= rangei[1]) { - out.clickableOrdinalRange = rangei; - break; - } - } - } - return out; - } - function dragstart(lThis, d) { - d3.event.sourceEvent.stopPropagation(); - var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding; - var unitLocation = d.unitToPaddedPx.invert(y); - var b = d.brush; - var interval = getInterval(d, y); - var unitRange = interval.interval; - var s = b.svgBrush; - s.wasDragged = false; - s.grabbingBar = interval.region === "ns"; - if (s.grabbingBar) { - var pixelRange = unitRange.map(d.unitToPaddedPx); - s.grabPoint = y - pixelRange[0] - c.verticalPadding; - s.barLength = pixelRange[1] - pixelRange[0]; - } - s.clickableOrdinalRange = interval.clickableOrdinalRange; - s.stayingIntervals = d.multiselect && b.filterSpecified ? b.filter.getConsolidated() : []; - if (unitRange) { - s.stayingIntervals = s.stayingIntervals.filter(function(int2) { - return int2[0] !== unitRange[0] && int2[1] !== unitRange[1]; - }); - } - s.startExtent = interval.region ? unitRange[interval.region === "s" ? 1 : 0] : unitLocation; - d.parent.inBrushDrag = true; - s.brushStartCallback(); - } - function drag(lThis, d) { - d3.event.sourceEvent.stopPropagation(); - var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding; - var s = d.brush.svgBrush; - s.wasDragged = true; - s._dragging = true; - if (s.grabbingBar) { - s.newExtent = [y - s.grabPoint, y + s.barLength - s.grabPoint].map(d.unitToPaddedPx.invert); - } else { - s.newExtent = [s.startExtent, d.unitToPaddedPx.invert(y)].sort(sortAsc); - } - d.brush.filterSpecified = true; - s.extent = s.stayingIntervals.concat([s.newExtent]); - s.brushCallback(d); - renderHighlight(lThis.parentNode); - } - function dragend(lThis, d) { - var brush = d.brush; - var filter = brush.filter; - var s = brush.svgBrush; - if (!s._dragging) { - mousemove(lThis, d); - drag(lThis, d); - d.brush.svgBrush.wasDragged = false; + var mustShiftX = !showDiag && !showLower; + var mustShiftY = !showDiag && !showUpper; + traceOut._axesDim = {}; + for (i = 0; i < dimLength; i++) { + var dim = dimensions[i]; + var i0 = i === 0; + var iN = i === dimLength - 1; + var xaId = i0 && mustShiftX || iN && mustShiftY ? void 0 : xaxes[i]; + var yaId = i0 && mustShiftY || iN && mustShiftX ? void 0 : yaxes[i]; + fillAxisStashes(xaId, yaId, dim, xList); + fillAxisStashes(yaId, xaId, dim, yList); + diag[i] = [xaId, yaId]; + traceOut._axesDim[xaId] = i; + traceOut._axesDim[yaId] = i; } - s._dragging = false; - var e = d3.event; - e.sourceEvent.stopPropagation(); - var grabbingBar = s.grabbingBar; - s.grabbingBar = false; - s.grabLocation = void 0; - d.parent.inBrushDrag = false; - clearCursor(); - if (!s.wasDragged) { - s.wasDragged = void 0; - if (s.clickableOrdinalRange) { - if (brush.filterSpecified && d.multiselect) { - s.extent.push(s.clickableOrdinalRange); - } else { - s.extent = [s.clickableOrdinalRange]; - brush.filterSpecified = true; - } - } else if (grabbingBar) { - s.extent = s.stayingIntervals; - if (s.extent.length === 0) { - brushClear(brush); + for (i = 0; i < xList.length; i++) { + for (j = 0; j < yList.length; j++) { + var id = xList[i] + yList[j]; + if (i > j && showUpper) { + layout._splomSubplots[id] = 1; + } else if (i < j && showLower) { + layout._splomSubplots[id] = 1; + } else if (i === j && (showDiag || !showLower || !showUpper)) { + layout._splomSubplots[id] = 1; } - } else { - brushClear(brush); - } - s.brushCallback(d); - renderHighlight(lThis.parentNode); - s.brushEndCallback(brush.filterSpecified ? filter.getConsolidated() : []); - return; - } - var mergeIntervals = function() { - filter.set(filter.getConsolidated()); - }; - if (d.ordinal) { - var a = d.unitTickvals; - if (a[a.length - 1] < a[0]) a.reverse(); - s.newExtent = [ - ordinalScaleSnap(0, a, s.newExtent[0], s.stayingIntervals), - ordinalScaleSnap(1, a, s.newExtent[1], s.stayingIntervals) - ]; - var hasNewExtent = s.newExtent[1] > s.newExtent[0]; - s.extent = s.stayingIntervals.concat(hasNewExtent ? [s.newExtent] : []); - if (!s.extent.length) { - brushClear(brush); - } - s.brushCallback(d); - if (hasNewExtent) { - renderHighlight(lThis.parentNode, mergeIntervals); - } else { - mergeIntervals(); - renderHighlight(lThis.parentNode); - } - } else { - mergeIntervals(); - } - s.brushEndCallback(brush.filterSpecified ? filter.getConsolidated() : []); - } - function mousemove(lThis, d) { - var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding; - var interval = getInterval(d, y); - var cursor = "crosshair"; - if (interval.clickableOrdinalRange) cursor = "pointer"; - else if (interval.region) cursor = interval.region + "-resize"; - d3.select(document.body).style("cursor", cursor); - } - function attachDragBehavior(selection) { - selection.on("mousemove", function(d) { - d3.event.preventDefault(); - if (!d.parent.inBrushDrag) mousemove(this, d); - }).on("mouseleave", function(d) { - if (!d.parent.inBrushDrag) clearCursor(); - }).call( - d3.behavior.drag().on("dragstart", function(d) { - dragstart(this, d); - }).on("drag", function(d) { - drag(this, d); - }).on("dragend", function(d) { - dragend(this, d); - }) - ); - } - function startAsc(a, b) { - return a[0] - b[0]; - } - function renderAxisBrush(axisBrush, paperColor, gd) { - var isStatic = gd._context.staticPlot; - var background = axisBrush.selectAll(".background").data(repeat); - background.enter().append("rect").classed("background", true).call(barHorizontalSetup).call(backgroundBarHorizontalSetup).style("pointer-events", isStatic ? "none" : "auto").attr("transform", strTranslate(0, c.verticalPadding)); - background.call(attachDragBehavior).attr("height", function(d) { - return d.height - c.verticalPadding; - }); - var highlightShadow = axisBrush.selectAll(".highlight-shadow").data(repeat); - highlightShadow.enter().append("line").classed("highlight-shadow", true).attr("x", -c.bar.width / 2).attr("stroke-width", c.bar.width + c.bar.strokeWidth).attr("stroke", paperColor).attr("opacity", c.bar.strokeOpacity).attr("stroke-linecap", "butt"); - highlightShadow.attr("y1", function(d) { - return d.height; - }).call(styleHighlight); - var highlight = axisBrush.selectAll(".highlight").data(repeat); - highlight.enter().append("line").classed("highlight", true).attr("x", -c.bar.width / 2).attr("stroke-width", c.bar.width - c.bar.strokeWidth).attr("stroke", c.bar.fillColor).attr("opacity", c.bar.fillOpacity).attr("stroke-linecap", "butt"); - highlight.attr("y1", function(d) { - return d.height; - }).call(styleHighlight); - } - function ensureAxisBrush(axisOverlays, paperColor, gd) { - var axisBrush = axisOverlays.selectAll("." + c.cn.axisBrush).data(repeat, keyFun); - axisBrush.enter().append("g").classed(c.cn.axisBrush, true); - renderAxisBrush(axisBrush, paperColor, gd); - } - function getBrushExtent(brush) { - return brush.svgBrush.extent.map(function(e) { - return e.slice(); - }); - } - function brushClear(brush) { - brush.filterSpecified = false; - brush.svgBrush.extent = [[-Infinity, Infinity]]; - } - function axisBrushMoved(callback) { - return function axisBrushMoved2(dimension) { - var brush = dimension.brush; - var extent = getBrushExtent(brush); - var newExtent = extent.slice(); - brush.filter.set(newExtent); - callback(); - }; - } - function dedupeRealRanges(intervals) { - var queue = intervals.slice(); - var result = []; - var currentInterval; - var current = queue.shift(); - while (current) { - currentInterval = current.slice(); - while ((current = queue.shift()) && current[0] <= /* right-open interval would need `<` */ - currentInterval[1]) { - currentInterval[1] = Math.max(currentInterval[1], current[1]); } - result.push(currentInterval); } - if (result.length === 1 && result[0][0] > result[0][1]) { - result = []; + if (!showLower || !showDiag && showUpper && showLower) { + layout._splomGridDflt.xside = "bottom"; + layout._splomGridDflt.yside = "left"; } - return result; } - function makeFilter() { - var filter = []; - var consolidated; - var bounds; - return { - set: function(a) { - filter = a.map(function(d) { - return d.slice().sort(sortAsc); - }).sort(startAsc); - if (filter.length === 1 && filter[0][0] === -Infinity && filter[0][1] === Infinity) { - filter = [[0, -1]]; - } - consolidated = dedupeRealRanges(filter); - bounds = filter.reduce(function(p, n) { - return [Math.min(p[0], n[0]), Math.max(p[1], n[1])]; - }, [Infinity, -Infinity]); - }, - get: function() { - return filter.slice(); - }, - getConsolidated: function() { - return consolidated; - }, - getBounds: function() { - return bounds; - } + } + }); + + // src/traces/splom/scene_update.js + var require_scene_update2 = __commonJS({ + "src/traces/splom/scene_update.js"(exports, module) { + "use strict"; + var Lib = require_lib(); + module.exports = function sceneUpdate(gd, trace) { + var fullLayout = gd._fullLayout; + var uid = trace.uid; + var splomScenes = fullLayout._splomScenes; + if (!splomScenes) splomScenes = fullLayout._splomScenes = {}; + var reset = { + dirty: true, + selectBatch: [], + unselectBatch: [] }; - } - function makeBrush(state, rangeSpecified, initialRange, brushStartCallback, brushCallback, brushEndCallback) { - var filter = makeFilter(); - filter.set(initialRange); - return { - filter, - filterSpecified: rangeSpecified, - // there's a difference between not filtering and filtering a non-proper subset - svgBrush: { - extent: [], - // this is where the svgBrush writes contents into - brushStartCallback, - brushCallback: axisBrushMoved(brushCallback), - brushEndCallback - } + var first = { + matrix: false, + selectBatch: [], + unselectBatch: [] }; - } - function cleanRanges(ranges, dimension) { - if (Array.isArray(ranges[0])) { - ranges = ranges.map(function(ri) { - return ri.sort(sortAsc); - }); - if (!dimension.multiselect) ranges = [ranges[0]]; - else ranges = dedupeRealRanges(ranges.sort(startAsc)); - } else ranges = [ranges.sort(sortAsc)]; - if (dimension.tickvals) { - var sortedTickVals = dimension.tickvals.slice().sort(sortAsc); - ranges = ranges.map(function(ri) { - var rSnapped = [ - ordinalScaleSnap(0, sortedTickVals, ri[0], []), - ordinalScaleSnap(1, sortedTickVals, ri[1], []) - ]; - if (rSnapped[1] > rSnapped[0]) return rSnapped; - }).filter(function(ri) { - return ri; - }); - if (!ranges.length) return; + var scene = splomScenes[trace.uid]; + if (!scene) { + scene = splomScenes[uid] = Lib.extendFlat({}, reset, first); + scene.draw = function draw() { + if (scene.matrix && scene.matrix.draw) { + if (scene.selectBatch.length || scene.unselectBatch.length) { + scene.matrix.draw(scene.unselectBatch, scene.selectBatch); + } else { + scene.matrix.draw(); + } + } + scene.dirty = false; + }; + scene.destroy = function destroy() { + if (scene.matrix && scene.matrix.destroy) { + scene.matrix.destroy(); + } + scene.matrixOptions = null; + scene.selectBatch = null; + scene.unselectBatch = null; + scene = null; + }; } - return ranges.length > 1 ? ranges : ranges[0]; - } - module.exports = { - makeBrush, - ensureAxisBrush, - cleanRanges + if (!scene.dirty) { + Lib.extendFlat(scene, reset); + } + return scene; }; } }); - // src/traces/parcoords/defaults.js - var require_defaults48 = __commonJS({ - "src/traces/parcoords/defaults.js"(exports, module) { + // src/traces/splom/calc.js + var require_calc30 = __commonJS({ + "src/traces/splom/calc.js"(exports, module) { "use strict"; var Lib = require_lib(); - var hasColorscale = require_helpers().hasColorscale; - var colorscaleDefaults = require_defaults2(); - var handleDomainDefaults = require_domain().defaults; - var handleArrayContainerDefaults = require_array_container_defaults(); - var Axes = require_axes(); - var attributes = require_attributes52(); - var axisBrush = require_axisbrush(); - var maxDimensionCount = require_constants24().maxDimensionCount; - var mergeLength = require_merge_length(); - function handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce) { - var lineColor = coerce("line.color", defaultColor); - if (hasColorscale(traceIn, "line") && Lib.isArrayOrTypedArray(lineColor)) { - if (lineColor.length) { - coerce("line.colorscale"); - colorscaleDefaults(traceIn, traceOut, layout, coerce, { prefix: "line.", cLetter: "c" }); - return lineColor.length; - } else { - traceOut.line.color = defaultColor; + var AxisIDs = require_axis_ids(); + var calcMarkerSize = require_calc3().calcMarkerSize; + var calcAxisExpansion = require_calc3().calcAxisExpansion; + var calcColorscale = require_colorscale_calc(); + var convertMarkerSelection = require_convert10().markerSelection; + var convertMarkerStyle = require_convert10().markerStyle; + var sceneUpdate = require_scene_update2(); + var BADNUM = require_numerical().BADNUM; + var TOO_MANY_POINTS = require_constants23().TOO_MANY_POINTS; + module.exports = function calc(gd, trace) { + var dimensions = trace.dimensions; + var commonLength = trace._length; + var opts = {}; + var cdata = opts.cdata = []; + var ldata = opts.data = []; + var visibleDims = trace._visibleDims = []; + var i, k, dim, xa, ya; + function makeCalcdata(ax, dim2) { + var ccol = ax.makeCalcdata({ + v: dim2.values, + vcalendar: trace.calendar + }, "v"); + for (var j = 0; j < ccol.length; j++) { + ccol[j] = ccol[j] === BADNUM ? NaN : ccol[j]; } + cdata.push(ccol); + ldata.push(ax.type === "log" ? Lib.simpleMap(ccol, ax.c2l) : ccol); } - return Infinity; - } - function dimensionDefaults(dimensionIn, dimensionOut, parentOut, opts) { - function coerce(attr, dflt) { - return Lib.coerce(dimensionIn, dimensionOut, attributes.dimensions, attr, dflt); - } - var values = coerce("values"); - var visible = coerce("visible"); - if (!(values && values.length)) { - visible = dimensionOut.visible = false; - } - if (visible) { - coerce("label"); - coerce("tickvals"); - coerce("ticktext"); - coerce("tickformat"); - var range = coerce("range"); - dimensionOut._ax = { - _id: "y", - type: "linear", - showexponent: "all", - exponentformat: "B", - range - }; - Axes.setConvert(dimensionOut._ax, opts.layout); - coerce("multiselect"); - var constraintRange = coerce("constraintrange"); - if (constraintRange) { - dimensionOut.constraintrange = axisBrush.cleanRanges(constraintRange, dimensionOut); + for (i = 0; i < dimensions.length; i++) { + dim = dimensions[i]; + if (dim.visible) { + xa = AxisIDs.getFromId(gd, trace._diag[i][0]); + ya = AxisIDs.getFromId(gd, trace._diag[i][1]); + if (xa && ya && xa.type !== ya.type) { + Lib.log("Skipping splom dimension " + i + " with conflicting axis types"); + continue; + } + if (xa) { + makeCalcdata(xa, dim); + if (ya && ya.type === "category") { + ya._categories = xa._categories.slice(); + } + } else { + makeCalcdata(ya, dim); + } + visibleDims.push(i); } } - } - module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) { - function coerce(attr, dflt) { - return Lib.coerce(traceIn, traceOut, attributes, attr, dflt); - } - var dimensionsIn = traceIn.dimensions; - if (Array.isArray(dimensionsIn) && dimensionsIn.length > maxDimensionCount) { - Lib.log("parcoords traces support up to " + maxDimensionCount + " dimensions at the moment"); - dimensionsIn.splice(maxDimensionCount); + calcColorscale(gd, trace); + Lib.extendFlat(opts, convertMarkerStyle(gd, trace)); + var visibleLength = cdata.length; + var hasTooManyPoints = visibleLength * commonLength > TOO_MANY_POINTS; + var ppad; + if (hasTooManyPoints) { + ppad = opts.sizeAvg || Math.max(opts.size, 3); + } else { + ppad = calcMarkerSize(trace, commonLength); } - var dimensions = handleArrayContainerDefaults(traceIn, traceOut, { - name: "dimensions", - layout, - handleItemDefaults: dimensionDefaults - }); - var len = handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce); - handleDomainDefaults(traceOut, layout, coerce); - if (!Array.isArray(dimensions) || !dimensions.length) { - traceOut.visible = false; + for (k = 0; k < visibleDims.length; k++) { + i = visibleDims[k]; + dim = dimensions[i]; + xa = AxisIDs.getFromId(gd, trace._diag[i][0]) || {}; + ya = AxisIDs.getFromId(gd, trace._diag[i][1]) || {}; + calcAxisExpansion(gd, trace, xa, ya, cdata[k], cdata[k], ppad); } - mergeLength(traceOut, dimensions, "values", len); - var fontDflt = Lib.extendFlat({}, layout.font, { - size: Math.round(layout.font.size / 1.2) - }); - Lib.coerceFont(coerce, "labelfont", fontDflt); - Lib.coerceFont(coerce, "tickfont", fontDflt, { autoShadowDflt: true }); - Lib.coerceFont(coerce, "rangefont", fontDflt); - coerce("labelangle"); - coerce("labelside"); - coerce("unselected.line.color"); - coerce("unselected.line.opacity"); + var scene = sceneUpdate(gd, trace); + if (!scene.matrix) scene.matrix = true; + scene.matrixOptions = opts; + scene.selectedOptions = convertMarkerSelection(gd, trace, trace.selected); + scene.unselectedOptions = convertMarkerSelection(gd, trace, trace.unselected); + return [{ x: false, y: false, t: {}, trace }]; }; } }); - // src/traces/parcoords/calc.js - var require_calc31 = __commonJS({ - "src/traces/parcoords/calc.js"(exports, module) { - "use strict"; - var isArrayOrTypedArray = require_lib().isArrayOrTypedArray; - var Colorscale = require_colorscale(); - var wrap = require_gup().wrap; - module.exports = function calc(gd, trace) { - var lineColor; - var cscale; - if (Colorscale.hasColorscale(trace, "line") && isArrayOrTypedArray(trace.line.color)) { - lineColor = trace.line.color; - cscale = Colorscale.extractOpts(trace.line).colorscale; - Colorscale.calc(gd, trace, { - vals: lineColor, - containerStr: "line", - cLetter: "c" - }); + // node_modules/performance-now/lib/performance-now.js + var require_performance_now = __commonJS({ + "node_modules/performance-now/lib/performance-now.js"(exports, module) { + (function() { + var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime; + if (typeof performance !== "undefined" && performance !== null && performance.now) { + module.exports = function() { + return performance.now(); + }; + } else if (typeof process !== "undefined" && process !== null && process.hrtime) { + module.exports = function() { + return (getNanoSeconds() - nodeLoadTime) / 1e6; + }; + hrtime = process.hrtime; + getNanoSeconds = function() { + var hr; + hr = hrtime(); + return hr[0] * 1e9 + hr[1]; + }; + moduleLoadTime = getNanoSeconds(); + upTime = process.uptime() * 1e9; + nodeLoadTime = moduleLoadTime - upTime; + } else if (Date.now) { + module.exports = function() { + return Date.now() - loadTime; + }; + loadTime = Date.now(); } else { - lineColor = constHalf(trace._length); - cscale = [[0, trace.line.color], [1, trace.line.color]]; - } - return wrap({ lineColor, cscale }); - }; - function constHalf(len) { - var out = new Array(len); - for (var i = 0; i < len; i++) { - out[i] = 0.5; + module.exports = function() { + return (/* @__PURE__ */ new Date()).getTime() - loadTime; + }; + loadTime = (/* @__PURE__ */ new Date()).getTime(); } - return out; - } + }).call(exports); } }); - // node_modules/color-parse/index.js - function parse(cstr) { - var _a, _b; - var m, parts = [], alpha = 1, space; - if (typeof cstr === "number") { - return { space: "rgb", values: [cstr >>> 16, (cstr & 65280) >>> 8, cstr & 255], alpha: 1 }; - } - if (typeof cstr === "number") return { space: "rgb", values: [cstr >>> 16, (cstr & 65280) >>> 8, cstr & 255], alpha: 1 }; - cstr = String(cstr).toLowerCase(); - if (import_color_name.default[cstr]) { - parts = import_color_name.default[cstr].slice(); - space = "rgb"; - } else if (cstr === "transparent") { - alpha = 0; - space = "rgb"; - parts = [0, 0, 0]; - } else if (cstr[0] === "#") { - var base = cstr.slice(1); - var size = base.length; - var isShort = size <= 4; - alpha = 1; - if (isShort) { - parts = [ - parseInt(base[0] + base[0], 16), - parseInt(base[1] + base[1], 16), - parseInt(base[2] + base[2], 16) - ]; - if (size === 4) { - alpha = parseInt(base[3] + base[3], 16) / 255; - } - } else { - parts = [ - parseInt(base[0] + base[1], 16), - parseInt(base[2] + base[3], 16), - parseInt(base[4] + base[5], 16) - ]; - if (size === 8) { - alpha = parseInt(base[6] + base[7], 16) / 255; - } + // node_modules/raf/index.js + var require_raf = __commonJS({ + "node_modules/raf/index.js"(exports, module) { + var now = require_performance_now(); + var root = typeof window === "undefined" ? window : window; + var vendors = ["moz", "webkit"]; + var suffix = "AnimationFrame"; + var raf = root["request" + suffix]; + var caf = root["cancel" + suffix] || root["cancelRequest" + suffix]; + for (i = 0; !raf && i < vendors.length; i++) { + raf = root[vendors[i] + "Request" + suffix]; + caf = root[vendors[i] + "Cancel" + suffix] || root[vendors[i] + "CancelRequest" + suffix]; } - if (!parts[0]) parts[0] = 0; - if (!parts[1]) parts[1] = 0; - if (!parts[2]) parts[2] = 0; - space = "rgb"; - } else if (m = /^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(cstr)) { - var name2 = m[1]; - space = name2.replace(/a$/, ""); - var dims = space === "cmyk" ? 4 : space === "gray" ? 1 : 3; - parts = m[2].trim().split(/\s*[,\/]\s*|\s+/); - if (space === "color") space = parts.shift(); - parts = parts.map(function(x, i) { - if (x[x.length - 1] === "%") { - x = parseFloat(x) / 100; - if (i === 3) return x; - if (space === "rgb") return x * 255; - if (space[0] === "h") return x * 100; - if (space[0] === "l" && !i) return x * 100; - if (space === "lab") return x * 125; - if (space === "lch") return i < 2 ? x * 150 : x * 360; - if (space[0] === "o" && !i) return x; - if (space === "oklab") return x * 0.4; - if (space === "oklch") return i < 2 ? x * 0.4 : x * 360; - return x; - } - if (space[i] === "h" || i === 2 && space[space.length - 1] === "h") { - if (baseHues[x] !== void 0) return baseHues[x]; - if (x.endsWith("deg")) return parseFloat(x); - if (x.endsWith("turn")) return parseFloat(x) * 360; - if (x.endsWith("grad")) return parseFloat(x) * 360 / 400; - if (x.endsWith("rad")) return parseFloat(x) * 180 / Math.PI; + var i; + if (!raf || !caf) { + last = 0, id = 0, queue = [], frameDuration = 1e3 / 60; + raf = function(callback) { + if (queue.length === 0) { + var _now = now(), next = Math.max(0, frameDuration - (_now - last)); + last = next + _now; + setTimeout(function() { + var cp = queue.slice(0); + queue.length = 0; + for (var i2 = 0; i2 < cp.length; i2++) { + if (!cp[i2].cancelled) { + try { + cp[i2].callback(last); + } catch (e) { + setTimeout(function() { + throw e; + }, 0); + } + } + } + }, Math.round(next)); + } + queue.push({ + handle: ++id, + callback, + cancelled: false + }); + return id; + }; + caf = function(handle) { + for (var i2 = 0; i2 < queue.length; i2++) { + if (queue[i2].handle === handle) { + queue[i2].cancelled = true; + } + } + }; + } + var last; + var id; + var queue; + var frameDuration; + module.exports = function(fn) { + return raf.call(root, fn); + }; + module.exports.cancel = function() { + caf.apply(root, arguments); + }; + module.exports.polyfill = function(object) { + if (!object) { + object = root; } - if (x === "none") return 0; - return parseFloat(x); - }); - alpha = parts.length > dims ? parts.pop() : 1; - } else if (/[0-9](?:\s|\/|,)/.test(cstr)) { - parts = cstr.match(/([0-9]+)/g).map(function(value) { - return parseFloat(value); - }); - space = ((_b = (_a = cstr.match(/([a-z])/ig)) == null ? void 0 : _a.join("")) == null ? void 0 : _b.toLowerCase()) || "rgb"; - } - return { - space, - values: parts, - alpha - }; - } - var import_color_name, color_parse_default, baseHues; - var init_color_parse = __esm({ - "node_modules/color-parse/index.js"() { - import_color_name = __toESM(require_color_name(), 1); - color_parse_default = parse; - baseHues = { - red: 0, - orange: 60, - yellow: 120, - green: 180, - blue: 240, - purple: 300 + object.requestAnimationFrame = raf; + object.cancelAnimationFrame = caf; }; } }); - // node_modules/color-space/rgb.js - var rgb_default2; - var init_rgb2 = __esm({ - "node_modules/color-space/rgb.js"() { - rgb_default2 = { - name: "rgb", - min: [0, 0, 0], - max: [255, 255, 255], - channel: ["red", "green", "blue"], - alias: ["RGB"] + // node_modules/array-range/index.js + var require_array_range = __commonJS({ + "node_modules/array-range/index.js"(exports, module) { + module.exports = function newArray(start, end) { + var n0 = typeof start === "number", n1 = typeof end === "number"; + if (n0 && !n1) { + end = start; + start = 0; + } else if (!n0 && !n1) { + start = 0; + end = 0; + } + start = start | 0; + end = end | 0; + var len = end - start; + if (len < 0) + throw new Error("array length must be positive"); + var a = new Array(len); + for (var i = 0, c = start; i < len; i++, c++) + a[i] = c; + return a; }; } }); - // node_modules/color-space/hsl.js - var hsl_default2; - var init_hsl2 = __esm({ - "node_modules/color-space/hsl.js"() { - init_rgb2(); - hsl_default2 = { - name: "hsl", - min: [0, 0, 0], - max: [360, 100, 100], - channel: ["hue", "saturation", "lightness"], - alias: ["HSL"], - rgb: function(hsl3) { - var h = hsl3[0] / 360, s = hsl3[1] / 100, l = hsl3[2] / 100, t12, t22, t32, rgb2, val, i = 0; - if (s === 0) return val = l * 255, [val, val, val]; - t22 = l < 0.5 ? l * (1 + s) : l + s - l * s; - t12 = 2 * l - t22; - rgb2 = [0, 0, 0]; - for (; i < 3; ) { - t32 = h + 1 / 3 * -(i - 1); - t32 < 0 ? t32++ : t32 > 1 && t32--; - val = 6 * t32 < 1 ? t12 + (t22 - t12) * 6 * t32 : 2 * t32 < 1 ? t22 : 3 * t32 < 2 ? t12 + (t22 - t12) * (2 / 3 - t32) * 6 : t12; - rgb2[i++] = val * 255; + // node_modules/regl-splom/index.js + var require_regl_splom = __commonJS({ + "node_modules/regl-splom/index.js"(exports, module) { + "use strict"; + var createScatter = require_bundle(); + var pick = require_pick_by_alias(); + var getBounds = require_array_bounds(); + var raf = require_raf(); + var arrRange = require_array_range(); + var rect = require_parse_rect(); + var flatten = require_flatten_vertex_data(); + module.exports = SPLOM; + function SPLOM(regl, options) { + if (!(this instanceof SPLOM)) return new SPLOM(regl, options); + this.traces = []; + this.passes = {}; + this.regl = regl; + this.scatter = createScatter(regl); + this.canvas = this.scatter.canvas; + } + SPLOM.prototype.render = function(...args) { + if (args.length) { + this.update(...args); + } + if (this.regl.attributes.preserveDrawingBuffer) return this.draw(); + if (this.dirty) { + if (this.planned == null) { + this.planned = raf(() => { + this.draw(); + this.dirty = true; + this.planned = null; + }); } - return rgb2; + } else { + this.draw(); + this.dirty = true; + raf(() => { + this.dirty = false; + }); } + return this; }; - rgb_default2.hsl = function(rgb2) { - var r = rgb2[0] / 255, g = rgb2[1] / 255, b = rgb2[2] / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), delta = max - min, h, s, l; - if (max === min) { - h = 0; - } else if (r === max) { - h = (g - b) / delta; - } else if (g === max) { - h = 2 + (b - r) / delta; - } else if (b === max) { - h = 4 + (r - g) / delta; - } - h = Math.min(h * 60, 360); - if (h < 0) { - h += 360; + SPLOM.prototype.update = function(...args) { + if (!args.length) return; + for (let i = 0; i < args.length; i++) { + this.updateItem(i, args[i]); } - l = (min + max) / 2; - if (max === min) { - s = 0; - } else if (l <= 0.5) { - s = delta / (max + min); - } else { - s = delta / (2 - max - min); + this.traces = this.traces.filter(Boolean); + let passes = []; + let offset = 0; + for (let i = 0; i < this.traces.length; i++) { + let trace = this.traces[i]; + let tracePasses = this.traces[i].passes; + for (let j = 0; j < tracePasses.length; j++) { + passes.push(this.passes[tracePasses[j]]); + } + trace.passOffset = offset; + offset += trace.passes.length; } - return [h, s * 100, l * 100]; - }; - } - }); - - // node_modules/color-rgba/index.js - var color_rgba_exports = {}; - __export(color_rgba_exports, { - default: () => rgba2 - }); - function rgba2(color2) { - if (Array.isArray(color2) && color2.raw) color2 = String.raw(...arguments); - if (color2 instanceof Number) color2 = +color2; - var values, i, l; - var parsed = color_parse_default(color2); - if (!parsed.space) return []; - const min = parsed.space[0] === "h" ? hsl_default2.min : rgb_default2.min; - const max = parsed.space[0] === "h" ? hsl_default2.max : rgb_default2.max; - values = Array(3); - values[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0]); - values[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1]); - values[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2]); - if (parsed.space[0] === "h") { - values = hsl_default2.rgb(values); - } - values.push(Math.min(Math.max(parsed.alpha, 0), 1)); - return values; - } - var init_color_rgba = __esm({ - "node_modules/color-rgba/index.js"() { - init_color_parse(); - init_rgb2(); - init_hsl2(); - } - }); - - // src/traces/parcoords/helpers.js - var require_helpers18 = __commonJS({ - "src/traces/parcoords/helpers.js"(exports) { - "use strict"; - var isTypedArray = require_lib().isTypedArray; - exports.convertTypedArray = function(a) { - return isTypedArray(a) ? Array.prototype.slice.call(a) : a; - }; - exports.isOrdinal = function(dimension) { - return !!dimension.tickvals; - }; - exports.isVisible = function(dimension) { - return dimension.visible || !("visible" in dimension); + this.scatter.update(...passes); + return this; }; - } - }); - - // src/traces/parcoords/lines.js - var require_lines = __commonJS({ - "src/traces/parcoords/lines.js"(exports, module) { - "use strict"; - var vertexShaderSource = [ - "precision highp float;", - "", - "varying vec4 fragColor;", - "", - "attribute vec4 p01_04, p05_08, p09_12, p13_16,", - " p17_20, p21_24, p25_28, p29_32,", - " p33_36, p37_40, p41_44, p45_48,", - " p49_52, p53_56, p57_60, colors;", - "", - "uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,", - " loA, hiA, loB, hiB, loC, hiC, loD, hiD;", - "", - "uniform vec2 resolution, viewBoxPos, viewBoxSize;", - "uniform float maskHeight;", - "uniform float drwLayer; // 0: context, 1: focus, 2: pick", - "uniform vec4 contextColor;", - "uniform sampler2D maskTexture, palette;", - "", - "bool isPick = (drwLayer > 1.5);", - "bool isContext = (drwLayer < 0.5);", - "", - "const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);", - "const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);", - "", - "float val(mat4 p, mat4 v) {", - " return dot(matrixCompMult(p, v) * UNITS, UNITS);", - "}", - "", - "float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {", - " float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);", - " float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);", - " return y1 * (1.0 - ratio) + y2 * ratio;", - "}", - "", - "int iMod(int a, int b) {", - " return a - b * (a / b);", - "}", - "", - "bool fOutside(float p, float lo, float hi) {", - " return (lo < hi) && (lo > p || p > hi);", - "}", - "", - "bool vOutside(vec4 p, vec4 lo, vec4 hi) {", - " return (", - " fOutside(p[0], lo[0], hi[0]) ||", - " fOutside(p[1], lo[1], hi[1]) ||", - " fOutside(p[2], lo[2], hi[2]) ||", - " fOutside(p[3], lo[3], hi[3])", - " );", - "}", - "", - "bool mOutside(mat4 p, mat4 lo, mat4 hi) {", - " return (", - " vOutside(p[0], lo[0], hi[0]) ||", - " vOutside(p[1], lo[1], hi[1]) ||", - " vOutside(p[2], lo[2], hi[2]) ||", - " vOutside(p[3], lo[3], hi[3])", - " );", - "}", - "", - "bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {", - " return mOutside(A, loA, hiA) ||", - " mOutside(B, loB, hiB) ||", - " mOutside(C, loC, hiC) ||", - " mOutside(D, loD, hiD);", - "}", - "", - "bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {", - " mat4 pnts[4];", - " pnts[0] = A;", - " pnts[1] = B;", - " pnts[2] = C;", - " pnts[3] = D;", - "", - " for(int i = 0; i < 4; ++i) {", - " for(int j = 0; j < 4; ++j) {", - " for(int k = 0; k < 4; ++k) {", - " if(0 == iMod(", - " int(255.0 * texture2D(maskTexture,", - " vec2(", - " (float(i * 2 + j / 2) + 0.5) / 8.0,", - " (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight", - " ))[3]", - " ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),", - " 2", - " )) return true;", - " }", - " }", - " }", - " return false;", - "}", - "", - "vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {", - " float x = 0.5 * sign(v) + 0.5;", - " float y = axisY(x, A, B, C, D);", - " float z = 1.0 - abs(v);", - "", - " z += isContext ? 0.0 : 2.0 * float(", - " outsideBoundingBox(A, B, C, D) ||", - " outsideRasterMask(A, B, C, D)", - " );", - "", - " return vec4(", - " 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,", - " z,", - " 1.0", - " );", - "}", - "", - "void main() {", - " mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);", - " mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);", - " mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);", - " mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);", - "", - " float v = colors[3];", - "", - " gl_Position = position(isContext, v, A, B, C, D);", - "", - " fragColor =", - " isContext ? vec4(contextColor) :", - " isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));", - "}" - ].join("\n"); - var fragmentShaderSource = [ - "precision highp float;", - "", - "varying vec4 fragColor;", - "", - "void main() {", - " gl_FragColor = fragColor;", - "}" - ].join("\n"); - var maxDim = require_constants24().maxDimensionCount; - var Lib = require_lib(); - var depthLimitEpsilon = 1e-6; - var maskHeight = 2048; - var dummyPixel = new Uint8Array(4); - var dataPixel = new Uint8Array(4); - var paletteTextureConfig = { - shape: [256, 1], - format: "rgba", - type: "uint8", - mag: "nearest", - min: "nearest" - }; - function ensureDraw(regl) { - regl.read({ - x: 0, - y: 0, - width: 1, - height: 1, - data: dummyPixel + SPLOM.prototype.updateItem = function(i, options) { + let { regl } = this; + if (options === null) { + this.traces[i] = null; + return this; + } + if (!options) return this; + let o = pick(options, { + data: "data items columns rows values dimensions samples x", + snap: "snap cluster", + size: "sizes size radius", + color: "colors color fill fill-color fillColor", + opacity: "opacity alpha transparency opaque", + borderSize: "borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline", + borderColor: "borderColors borderColor bordercolor stroke stroke-color strokeColor", + marker: "markers marker shape", + range: "range ranges databox dataBox", + viewport: "viewport viewBox viewbox", + domain: "domain domains area areas", + padding: "pad padding paddings pads margin margins", + transpose: "transpose transposed", + diagonal: "diagonal diag showDiagonal", + upper: "upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf", + lower: "lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower" }); - } - function clear(regl, x, y, width, height) { - var gl2 = regl._gl; - gl2.enable(gl2.SCISSOR_TEST); - gl2.scissor(x, y, width, height); - regl.clear({ color: [0, 0, 0, 0], depth: 1 }); - } - function renderBlock(regl, glAes, renderState, blockLineCount, sampleCount, item) { - var rafKey = item.key; - function render(blockNumber) { - var count = Math.min(blockLineCount, sampleCount - blockNumber * blockLineCount); - if (blockNumber === 0) { - window.cancelAnimationFrame(renderState.currentRafs[rafKey]); - delete renderState.currentRafs[rafKey]; - clear(regl, item.scissorX, item.scissorY, item.scissorWidth, item.viewBoxSize[1]); - } - if (renderState.clearOnly) { - return; - } - item.count = 2 * count; - item.offset = 2 * blockNumber * blockLineCount; - glAes(item); - if (blockNumber * blockLineCount + count < sampleCount) { - renderState.currentRafs[rafKey] = window.requestAnimationFrame(function() { - render(blockNumber + 1); - }); + let trace = this.traces[i] || (this.traces[i] = { + id: i, + buffer: regl.buffer({ + usage: "dynamic", + type: "float", + data: new Uint8Array() + }), + color: "black", + marker: null, + size: 12, + borderColor: "transparent", + borderSize: 1, + viewport: rect([regl._gl.drawingBufferWidth, regl._gl.drawingBufferHeight]), + padding: [0, 0, 0, 0], + opacity: 1, + diagonal: true, + upper: true, + lower: true + }); + if (o.color != null) { + trace.color = o.color; + } + if (o.size != null) { + trace.size = o.size; + } + if (o.marker != null) { + trace.marker = o.marker; + } + if (o.borderColor != null) { + trace.borderColor = o.borderColor; + } + if (o.borderSize != null) { + trace.borderSize = o.borderSize; + } + if (o.opacity != null) { + trace.opacity = o.opacity; + } + if (o.viewport) { + trace.viewport = rect(o.viewport); + } + if (o.diagonal != null) trace.diagonal = o.diagonal; + if (o.upper != null) trace.upper = o.upper; + if (o.lower != null) trace.lower = o.lower; + if (o.data) { + trace.buffer(flatten(o.data)); + trace.columns = o.data.length; + trace.count = o.data[0].length; + trace.bounds = []; + for (let i2 = 0; i2 < trace.columns; i2++) { + trace.bounds[i2] = getBounds(o.data[i2], 1); } - renderState.drawCompleted = false; } - if (!renderState.drawCompleted) { - ensureDraw(regl); - renderState.drawCompleted = true; + let multirange; + if (o.range) { + trace.range = o.range; + multirange = trace.range && typeof trace.range[0] !== "number"; } - render(0); - } - function adjustDepth(d) { - return Math.max(depthLimitEpsilon, Math.min(1 - depthLimitEpsilon, d)); - } - function palette(unitToColor, opacity) { - var result = new Array(256); - for (var i = 0; i < 256; i++) { - result[i] = unitToColor(i / 255).concat(opacity); + if (o.domain) { + trace.domain = o.domain; } - return result; - } - function calcPickColor(i, rgbIndex) { - return (i >>> 8 * rgbIndex) % 256 / 255; - } - function makePoints(sampleCount, dims, color2) { - var points = new Array(sampleCount * (maxDim + 4)); - var n = 0; - for (var i = 0; i < sampleCount; i++) { - for (var k = 0; k < maxDim; k++) { - points[n++] = k < dims.length ? dims[k].paddedUnitValues[i] : 0.5; + let multipadding = false; + if (o.padding != null) { + if (Array.isArray(o.padding) && o.padding.length === trace.columns && typeof o.padding[o.padding.length - 1] === "number") { + trace.padding = o.padding.map(getPad); + multipadding = true; + } else { + trace.padding = getPad(o.padding); } - points[n++] = calcPickColor(i, 2); - points[n++] = calcPickColor(i, 1); - points[n++] = calcPickColor(i, 0); - points[n++] = adjustDepth(color2[i]); } - return points; - } - function makeVecAttr(vecIndex, sampleCount, points) { - var pointPairs = new Array(sampleCount * 8); - var n = 0; - for (var i = 0; i < sampleCount; i++) { - for (var j = 0; j < 2; j++) { - for (var k = 0; k < 4; k++) { - var q = vecIndex * 4 + k; - var v = points[i * 64 + q]; - if (q === 63 && j === 0) { - v *= -1; + let m = trace.columns; + let n = trace.count; + let w = trace.viewport.width; + let h = trace.viewport.height; + let left = trace.viewport.x; + let top = trace.viewport.y; + let iw = w / m; + let ih = h / m; + trace.passes = []; + for (let i2 = 0; i2 < m; i2++) { + for (let j = 0; j < m; j++) { + if (!trace.diagonal && j === i2) continue; + if (!trace.upper && i2 > j) continue; + if (!trace.lower && i2 < j) continue; + let key = passId(trace.id, i2, j); + let pass = this.passes[key] || (this.passes[key] = {}); + if (o.data) { + if (o.transpose) { + pass.positions = { + x: { buffer: trace.buffer, offset: j, count: n, stride: m }, + y: { buffer: trace.buffer, offset: i2, count: n, stride: m } + }; + } else { + pass.positions = { + x: { buffer: trace.buffer, offset: j * n, count: n }, + y: { buffer: trace.buffer, offset: i2 * n, count: n } + }; } - pointPairs[n++] = v; + pass.bounds = getBox(trace.bounds, i2, j); + } + if (o.domain || o.viewport || o.data) { + let pad = multipadding ? getBox(trace.padding, i2, j) : trace.padding; + if (trace.domain) { + let [lox, loy, hix, hiy] = getBox(trace.domain, i2, j); + pass.viewport = [ + left + lox * w + pad[0], + top + loy * h + pad[1], + left + hix * w - pad[2], + top + hiy * h - pad[3] + ]; + } else { + pass.viewport = [ + left + j * iw + iw * pad[0], + top + i2 * ih + ih * pad[1], + left + (j + 1) * iw - iw * pad[2], + top + (i2 + 1) * ih - ih * pad[3] + ]; + } + } + if (o.color) pass.color = trace.color; + if (o.size) pass.size = trace.size; + if (o.marker) pass.marker = trace.marker; + if (o.borderSize) pass.borderSize = trace.borderSize; + if (o.borderColor) pass.borderColor = trace.borderColor; + if (o.opacity) pass.opacity = trace.opacity; + if (o.range) { + pass.range = multirange ? getBox(trace.range, i2, j) : trace.range || pass.bounds; } + trace.passes.push(key); } } - return pointPairs; - } - function pad2(num) { - var s = "0" + num; - return s.slice(-2); - } - function getAttrName(i) { - return i < maxDim ? "p" + pad2(i + 1) + "_" + pad2(i + 4) : "colors"; - } - function setAttributes(attributes, sampleCount, points) { - for (var i = 0; i <= maxDim; i += 4) { - attributes[getAttrName(i)](makeVecAttr(i / 4, sampleCount, points)); + return this; + }; + SPLOM.prototype.draw = function(...args) { + if (!args.length) { + this.scatter.draw(); + } else { + let idx = []; + for (let i = 0; i < args.length; i++) { + if (typeof args[i] === "number") { + let { passes, passOffset } = this.traces[args[i]]; + idx.push(...arrRange(passOffset, passOffset + passes.length)); + } else if (args[i].length) { + let els = args[i]; + let { passes, passOffset } = this.traces[i]; + passes = passes.map((passId2, i2) => { + idx[passOffset + i2] = els; + }); + } + } + this.scatter.draw(...idx); } + return this; + }; + SPLOM.prototype.destroy = function() { + this.traces.forEach((trace) => { + if (trace.buffer && trace.buffer.destroy) trace.buffer.destroy(); + }); + this.traces = null; + this.passes = null; + this.scatter.destroy(); + return this; + }; + function passId(trace, i, j) { + let id = trace.id != null ? trace.id : trace; + let n = i; + let m = j; + let key = id << 16 | (n & 255) << 8 | m & 255; + return key; } - function emptyAttributes(regl) { - var attributes = {}; - for (var i = 0; i <= maxDim; i += 4) { - attributes[getAttrName(i)] = regl.buffer({ usage: "dynamic", type: "float", data: new Uint8Array(0) }); + function getBox(items, i, j) { + let ilox, iloy, ihix, ihiy, jlox, jloy, jhix, jhiy; + let iitem = items[i], jitem = items[j]; + if (iitem.length > 2) { + ilox = iitem[0]; + ihix = iitem[2]; + iloy = iitem[1]; + ihiy = iitem[3]; + } else if (iitem.length) { + ilox = iloy = iitem[0]; + ihix = ihiy = iitem[1]; + } else { + ilox = iitem.x; + iloy = iitem.y; + ihix = iitem.x + iitem.width; + ihiy = iitem.y + iitem.height; } - return attributes; - } - function makeItem(model, leftmost, rightmost, itemNumber, i0, i1, x, y, panelSizeX, panelSizeY, crossfilterDimensionIndex, drwLayer, constraints, plotGlPixelRatio) { - var dims = [[], []]; - for (var k = 0; k < 64; k++) { - dims[0][k] = k === i0 ? 1 : 0; - dims[1][k] = k === i1 ? 1 : 0; + if (jitem.length > 2) { + jlox = jitem[0]; + jhix = jitem[2]; + jloy = jitem[1]; + jhiy = jitem[3]; + } else if (jitem.length) { + jlox = jloy = jitem[0]; + jhix = jhiy = jitem[1]; + } else { + jlox = jitem.x; + jloy = jitem.y; + jhix = jitem.x + jitem.width; + jhiy = jitem.y + jitem.height; } - x *= plotGlPixelRatio; - y *= plotGlPixelRatio; - panelSizeX *= plotGlPixelRatio; - panelSizeY *= plotGlPixelRatio; - var overdrag = model.lines.canvasOverdrag * plotGlPixelRatio; - var domain = model.domain; - var canvasWidth = model.canvasWidth * plotGlPixelRatio; - var canvasHeight = model.canvasHeight * plotGlPixelRatio; - var padL = model.pad.l * plotGlPixelRatio; - var padB = model.pad.b * plotGlPixelRatio; - var layoutHeight = model.layoutHeight * plotGlPixelRatio; - var layoutWidth = model.layoutWidth * plotGlPixelRatio; - var deselectedLinesColor = model.deselectedLines.color; - var deselectedLinesOpacity = model.deselectedLines.opacity; - var itemModel = Lib.extendFlat({ - key: crossfilterDimensionIndex, - resolution: [canvasWidth, canvasHeight], - viewBoxPos: [x + overdrag, y], - viewBoxSize: [panelSizeX, panelSizeY], - i0, - i1, - dim0A: dims[0].slice(0, 16), - dim0B: dims[0].slice(16, 32), - dim0C: dims[0].slice(32, 48), - dim0D: dims[0].slice(48, 64), - dim1A: dims[1].slice(0, 16), - dim1B: dims[1].slice(16, 32), - dim1C: dims[1].slice(32, 48), - dim1D: dims[1].slice(48, 64), - drwLayer, - contextColor: [ - deselectedLinesColor[0] / 255, - deselectedLinesColor[1] / 255, - deselectedLinesColor[2] / 255, - deselectedLinesOpacity !== "auto" ? deselectedLinesColor[3] * deselectedLinesOpacity : Math.max(1 / 255, Math.pow(1 / model.lines.color.length, 1 / 3)) - ], - scissorX: (itemNumber === leftmost ? 0 : x + overdrag) + (padL - overdrag) + layoutWidth * domain.x[0], - scissorWidth: (itemNumber === rightmost ? canvasWidth - x + overdrag : panelSizeX + 0.5) + (itemNumber === leftmost ? x + overdrag : 0), - scissorY: y + padB + layoutHeight * domain.y[0], - scissorHeight: panelSizeY, - viewportX: padL - overdrag + layoutWidth * domain.x[0], - viewportY: padB + layoutHeight * domain.y[0], - viewportWidth: canvasWidth, - viewportHeight: canvasHeight - }, constraints); - return itemModel; + return [jlox, iloy, jhix, ihiy]; } - function expandedPixelRange(bounds) { - var dh = maskHeight - 1; - var a = Math.max(0, Math.floor(bounds[0] * dh), 0); - var b = Math.min(dh, Math.ceil(bounds[1] * dh), dh); - return [ - Math.min(a, b), - Math.max(a, b) - ]; + function getPad(arg) { + if (typeof arg === "number") return [arg, arg, arg, arg]; + else if (arg.length === 2) return [arg[0], arg[1], arg[0], arg[1]]; + else { + let box = rect(arg); + return [box.x, box.y, box.x + box.width, box.y + box.height]; + } } - module.exports = function(canvasGL, d) { - var isContext = d.context; - var isPick = d.pick; - var regl = d.regl; - var gl2 = regl._gl; - var supportedLineWidth = gl2.getParameter(gl2.ALIASED_LINE_WIDTH_RANGE); - var plotGlPixelRatio = Math.max( - supportedLineWidth[0], - Math.min( - supportedLineWidth[1], - d.viewModel.plotGlPixelRatio - ) - ); - var renderState = { - currentRafs: {}, - drawCompleted: true, - clearOnly: false - }; - var model; - var vm; - var initialDims; - var sampleCount; - var attributes = emptyAttributes(regl); - var maskTexture; - var paletteTexture = regl.texture(paletteTextureConfig); - var prevAxisOrder = []; - update(d); - var glAes = regl({ - profile: false, - blend: { - enable: isContext, - func: { - srcRGB: "src alpha", - dstRGB: "one minus src alpha", - srcAlpha: 1, - dstAlpha: 1 - // 'one minus src alpha' - }, - equation: { - rgb: "add", - alpha: "add" - }, - color: [0, 0, 0, 0] - }, - depth: { - enable: !isContext, - mask: true, - func: "less", - range: [0, 1] - }, - // for polygons - cull: { - enable: true, - face: "back" - }, - scissor: { - enable: true, - box: { - x: regl.prop("scissorX"), - y: regl.prop("scissorY"), - width: regl.prop("scissorWidth"), - height: regl.prop("scissorHeight") - } - }, - viewport: { - x: regl.prop("viewportX"), - y: regl.prop("viewportY"), - width: regl.prop("viewportWidth"), - height: regl.prop("viewportHeight") - }, - dither: false, - vert: vertexShaderSource, - frag: fragmentShaderSource, - primitive: "lines", - lineWidth: plotGlPixelRatio, - attributes, - uniforms: { - resolution: regl.prop("resolution"), - viewBoxPos: regl.prop("viewBoxPos"), - viewBoxSize: regl.prop("viewBoxSize"), - dim0A: regl.prop("dim0A"), - dim1A: regl.prop("dim1A"), - dim0B: regl.prop("dim0B"), - dim1B: regl.prop("dim1B"), - dim0C: regl.prop("dim0C"), - dim1C: regl.prop("dim1C"), - dim0D: regl.prop("dim0D"), - dim1D: regl.prop("dim1D"), - loA: regl.prop("loA"), - hiA: regl.prop("hiA"), - loB: regl.prop("loB"), - hiB: regl.prop("hiB"), - loC: regl.prop("loC"), - hiC: regl.prop("hiC"), - loD: regl.prop("loD"), - hiD: regl.prop("hiD"), - palette: paletteTexture, - contextColor: regl.prop("contextColor"), - maskTexture: regl.prop("maskTexture"), - drwLayer: regl.prop("drwLayer"), - maskHeight: regl.prop("maskHeight") - }, - offset: regl.prop("offset"), - count: regl.prop("count") - }); - function update(dNew) { - model = dNew.model; - vm = dNew.viewModel; - initialDims = vm.dimensions.slice(); - sampleCount = initialDims[0] ? initialDims[0].values.length : 0; - var lines = model.lines; - var color2 = isPick ? lines.color.map(function(_, i) { - return i / lines.color.length; - }) : lines.color; - var points = makePoints(sampleCount, initialDims, color2); - setAttributes(attributes, sampleCount, points); - if (!isContext && !isPick) { - paletteTexture = regl.texture(Lib.extendFlat({ - data: palette(model.unitToColor, 255) - }, paletteTextureConfig)); - } + } + }); + + // src/traces/splom/plot.js + var require_plot20 = __commonJS({ + "src/traces/splom/plot.js"(exports, module) { + "use strict"; + var createMatrix = require_regl_splom(); + var Lib = require_lib(); + var AxisIDs = require_axis_ids(); + var selectMode = require_helpers5().selectMode; + module.exports = function plot(gd, _, splomCalcData) { + if (!splomCalcData.length) return; + for (var i = 0; i < splomCalcData.length; i++) { + plotOne(gd, splomCalcData[i][0]); } - function makeConstraints(isContext2) { - var i, j, k; - var limits = [[], []]; - for (k = 0; k < 64; k++) { - var p = !isContext2 && k < initialDims.length ? initialDims[k].brush.filter.getBounds() : [-Infinity, Infinity]; - limits[0][k] = p[0]; - limits[1][k] = p[1]; - } - var len = maskHeight * 8; - var mask = new Array(len); - for (i = 0; i < len; i++) { - mask[i] = 255; + }; + function plotOne(gd, cd0) { + var fullLayout = gd._fullLayout; + var gs = fullLayout._size; + var trace = cd0.trace; + var stash = cd0.t; + var scene = fullLayout._splomScenes[trace.uid]; + var matrixOpts = scene.matrixOptions; + var cdata = matrixOpts.cdata; + var regl = fullLayout._glcanvas.data()[0].regl; + var dragmode = fullLayout.dragmode; + var xa, ya; + var i, j, k; + if (cdata.length === 0) return; + matrixOpts.lower = trace.showupperhalf; + matrixOpts.upper = trace.showlowerhalf; + matrixOpts.diagonal = trace.diagonal.visible; + var visibleDims = trace._visibleDims; + var visibleLength = cdata.length; + var viewOpts = scene.viewOpts = {}; + viewOpts.ranges = new Array(visibleLength); + viewOpts.domains = new Array(visibleLength); + for (k = 0; k < visibleDims.length; k++) { + i = visibleDims[k]; + var rng = viewOpts.ranges[k] = new Array(4); + var dmn = viewOpts.domains[k] = new Array(4); + xa = AxisIDs.getFromId(gd, trace._diag[i][0]); + if (xa) { + rng[0] = xa._rl[0]; + rng[2] = xa._rl[1]; + dmn[0] = xa.domain[0]; + dmn[2] = xa.domain[1]; } - if (!isContext2) { - for (i = 0; i < initialDims.length; i++) { - var u = i % 8; - var v = (i - u) / 8; - var bitMask = Math.pow(2, u); - var dim = initialDims[i]; - var ranges = dim.brush.filter.get(); - if (ranges.length < 2) continue; - var prevEnd = expandedPixelRange(ranges[0])[1]; - for (j = 1; j < ranges.length; j++) { - var nextRange = expandedPixelRange(ranges[j]); - for (k = prevEnd + 1; k < nextRange[0]; k++) { - mask[k * 8 + v] &= ~bitMask; - } - prevEnd = Math.max(prevEnd, nextRange[1]); - } - } + ya = AxisIDs.getFromId(gd, trace._diag[i][1]); + if (ya) { + rng[1] = ya._rl[0]; + rng[3] = ya._rl[1]; + dmn[1] = ya.domain[0]; + dmn[3] = ya.domain[1]; } - var textureData = { - // 8 units x 8 bits = 64 bits, just sufficient for the almost 64 dimensions we support - shape: [8, maskHeight], - format: "alpha", - type: "uint8", - mag: "nearest", - min: "nearest", - data: mask - }; - if (maskTexture) maskTexture(textureData); - else maskTexture = regl.texture(textureData); - return { - maskTexture, - maskHeight, - loA: limits[0].slice(0, 16), - loB: limits[0].slice(16, 32), - loC: limits[0].slice(32, 48), - loD: limits[0].slice(48, 64), - hiA: limits[1].slice(0, 16), - hiB: limits[1].slice(16, 32), - hiC: limits[1].slice(32, 48), - hiD: limits[1].slice(48, 64) - }; } - function renderGLParcoords(panels, setChanged, clearOnly) { - var panelCount = panels.length; - var i; - var leftmost; - var rightmost; - var lowestX = Infinity; - var highestX = -Infinity; - for (i = 0; i < panelCount; i++) { - if (panels[i].dim0.canvasX < lowestX) { - lowestX = panels[i].dim0.canvasX; - leftmost = i; + var plotGlPixelRatio = gd._context.plotGlPixelRatio; + var l = gs.l * plotGlPixelRatio; + var b = gs.b * plotGlPixelRatio; + var w = gs.w * plotGlPixelRatio; + var h = gs.h * plotGlPixelRatio; + viewOpts.viewport = [l, b, w + l, h + b]; + if (scene.matrix === true) { + scene.matrix = createMatrix(regl); + } + var clickSelectEnabled = fullLayout.clickmode.indexOf("select") > -1; + var isSelectMode = selectMode(dragmode) || !!trace.selectedpoints || clickSelectEnabled; + var needsBaseUpdate = true; + if (isSelectMode) { + var commonLength = trace._length; + if (trace.selectedpoints) { + scene.selectBatch = trace.selectedpoints; + var selPts = trace.selectedpoints; + var selDict = {}; + for (i = 0; i < selPts.length; i++) { + selDict[selPts[i]] = true; } - if (panels[i].dim1.canvasX > highestX) { - highestX = panels[i].dim1.canvasX; - rightmost = i; + var unselPts = []; + for (i = 0; i < commonLength; i++) { + if (!selDict[i]) unselPts.push(i); } + scene.unselectBatch = unselPts; } - if (panelCount === 0) { - clear(regl, 0, 0, model.canvasWidth, model.canvasHeight); - } - var constraints = makeConstraints(isContext); - for (i = 0; i < panelCount; i++) { - var p = panels[i]; - var i0 = p.dim0.crossfilterDimensionIndex; - var i1 = p.dim1.crossfilterDimensionIndex; - var x = p.canvasX; - var y = p.canvasY; - var nextX = x + p.panelSizeX; - var plotGlPixelRatio2 = p.plotGlPixelRatio; - if (setChanged || !prevAxisOrder[i0] || prevAxisOrder[i0][0] !== x || prevAxisOrder[i0][1] !== nextX) { - prevAxisOrder[i0] = [x, nextX]; - var item = makeItem( - model, - leftmost, - rightmost, - i, - i0, - i1, - x, - y, - p.panelSizeX, - p.panelSizeY, - p.dim0.crossfilterDimensionIndex, - isContext ? 0 : isPick ? 2 : 1, - constraints, - plotGlPixelRatio2 - ); - renderState.clearOnly = clearOnly; - var blockLineCount = setChanged ? model.lines.blockLineCount : sampleCount; - renderBlock( - regl, - glAes, - renderState, - blockLineCount, - sampleCount, - item - ); + var xpx = stash.xpx = new Array(visibleLength); + var ypx = stash.ypx = new Array(visibleLength); + for (k = 0; k < visibleDims.length; k++) { + i = visibleDims[k]; + xa = AxisIDs.getFromId(gd, trace._diag[i][0]); + if (xa) { + xpx[k] = new Array(commonLength); + for (j = 0; j < commonLength; j++) { + xpx[k][j] = xa.c2p(cdata[k][j]); + } + } + ya = AxisIDs.getFromId(gd, trace._diag[i][1]); + if (ya) { + ypx[k] = new Array(commonLength); + for (j = 0; j < commonLength; j++) { + ypx[k][j] = ya.c2p(cdata[k][j]); + } } } + if (scene.selectBatch.length || scene.unselectBatch.length) { + var unselOpts = Lib.extendFlat({}, matrixOpts, scene.unselectedOptions, viewOpts); + var selOpts = Lib.extendFlat({}, matrixOpts, scene.selectedOptions, viewOpts); + scene.matrix.update(unselOpts, selOpts); + needsBaseUpdate = false; + } + } else { + stash.xpx = stash.ypx = null; } - function readPixel(canvasX, canvasY) { - regl.read({ - x: canvasX, - y: canvasY, - width: 1, - height: 1, - data: dataPixel - }); - return dataPixel; - } - function readPixels(canvasX, canvasY, width, height) { - var pixelArray = new Uint8Array(4 * width * height); - regl.read({ - x: canvasX, - y: canvasY, - width, - height, - data: pixelArray - }); - return pixelArray; + if (needsBaseUpdate) { + var opts = Lib.extendFlat({}, matrixOpts, viewOpts); + scene.matrix.update(opts, null); } - function destroy() { - canvasGL.style["pointer-events"] = "none"; - paletteTexture.destroy(); - if (maskTexture) maskTexture.destroy(); - for (var k in attributes) attributes[k].destroy(); + } + } + }); + + // src/traces/splom/helpers.js + var require_helpers17 = __commonJS({ + "src/traces/splom/helpers.js"(exports) { + "use strict"; + exports.getDimIndex = function getDimIndex(trace, ax) { + var axId = ax._id; + var axLetter = axId.charAt(0); + var ind = { x: 0, y: 1 }[axLetter]; + var visibleDims = trace._visibleDims; + for (var k = 0; k < visibleDims.length; k++) { + var i = visibleDims[k]; + if (trace._diag[i][ind] === axId) return k; } - return { - render: renderGLParcoords, - readPixel, - readPixels, - destroy, - update - }; + return false; }; } }); - // src/traces/parcoords/parcoords.js - var require_parcoords = __commonJS({ - "src/traces/parcoords/parcoords.js"(exports, module) { + // src/traces/splom/hover.js + var require_hover17 = __commonJS({ + "src/traces/splom/hover.js"(exports, module) { "use strict"; - var d3 = require_d3(); - var Lib = require_lib(); - var isArrayOrTypedArray = Lib.isArrayOrTypedArray; - var numberFormat = Lib.numberFormat; - var rgba3 = (init_color_rgba(), __toCommonJS(color_rgba_exports)).default; - var Axes = require_axes(); - var strRotate = Lib.strRotate; - var strTranslate = Lib.strTranslate; - var svgTextUtils = require_svg_text_utils(); - var Drawing = require_drawing(); - var Colorscale = require_colorscale(); - var gup = require_gup(); - var keyFun = gup.keyFun; - var repeat = gup.repeat; - var unwrap = gup.unwrap; - var helpers = require_helpers18(); - var c = require_constants24(); - var brush = require_axisbrush(); - var lineLayerMaker = require_lines(); - function findExtreme(fn, values, len) { - return Lib.aggNums(fn, null, values, len); - } - function findExtremes(values, len) { - return fixExtremes( - findExtreme(Math.min, values, len), - findExtreme(Math.max, values, len) - ); - } - function dimensionExtent(dimension) { - var range = dimension.range; - return range ? fixExtremes(range[0], range[1]) : findExtremes(dimension.values, dimension._length); - } - function fixExtremes(lo, hi) { - if (isNaN(lo) || !isFinite(lo)) { - lo = 0; - } - if (isNaN(hi) || !isFinite(hi)) { - hi = 0; - } - if (lo === hi) { - if (lo === 0) { - lo -= 1; - hi += 1; - } else { - lo *= 0.9; - hi *= 1.1; + var helpers = require_helpers17(); + var calcHover = require_hover16().calcHover; + var getFromId = require_axes().getFromId; + var extendFlat = require_extend().extendFlat; + function hoverPoints(pointData, xval, yval, hovermode, opts) { + if (!opts) opts = {}; + var hovermodeHasX = (hovermode || "").charAt(0) === "x"; + var hovermodeHasY = (hovermode || "").charAt(0) === "y"; + var points = _hoverPoints(pointData, xval, yval); + if ((hovermodeHasX || hovermodeHasY) && opts.hoversubplots === "axis" && points[0]) { + var subplotsWith = (hovermodeHasX ? pointData.xa : pointData.ya)._subplotsWith; + var gd = opts.gd; + var _pointData = extendFlat({}, pointData); + for (var i = 0; i < subplotsWith.length; i++) { + var spId = subplotsWith[i]; + if (spId === pointData.xa._id + pointData.ya._id) continue; + if (hovermodeHasY) { + _pointData.xa = getFromId(gd, spId, "x"); + } else { + _pointData.ya = getFromId(gd, spId, "y"); + } + var axisHoversubplots = hovermodeHasX || hovermodeHasY; + var newPoints = _hoverPoints(_pointData, xval, yval, axisHoversubplots); + points = points.concat(newPoints); } } - return [lo, hi]; + return points; } - function toText(formatter, texts) { - if (texts) { - return function(v, i) { - var text = texts[i]; - if (text === null || text === void 0) return formatter(v); - return text; - }; + function _hoverPoints(pointData, xval, yval, axisHoversubplots) { + var cd = pointData.cd; + var trace = cd[0].trace; + var scene = pointData.scene; + var cdata = scene.matrixOptions.cdata; + var xa = pointData.xa; + var ya = pointData.ya; + var xpx = xa.c2p(xval); + var ypx = ya.c2p(yval); + var maxDistance = pointData.distance; + var xi = helpers.getDimIndex(trace, xa); + var yi = helpers.getDimIndex(trace, ya); + if (xi === false || yi === false) return [pointData]; + var x = cdata[xi]; + var y = cdata[yi]; + var id, dxy; + var minDist = maxDistance; + for (var i = 0; i < x.length; i++) { + if (axisHoversubplots && i !== pointData.index) continue; + var ptx = x[i]; + var pty = y[i]; + var dx = xa.c2p(ptx) - xpx; + var dy = ya.c2p(pty) - ypx; + var dist = Math.sqrt(dx * dx + dy * dy); + if (axisHoversubplots || dist < minDist) { + minDist = dxy = dist; + id = i; + } } - return formatter; + pointData.index = id; + pointData.distance = minDist; + pointData.dxy = dxy; + if (id === void 0) return [pointData]; + return [calcHover(pointData, x, y, trace)]; } - function domainScale(height, padding, dimension, tickvals, ticktext) { - var extent = dimensionExtent(dimension); - if (tickvals) { - return d3.scale.ordinal().domain(tickvals.map(toText(numberFormat(dimension.tickformat), ticktext))).range( - tickvals.map(function(d) { - var unitVal = (d - extent[0]) / (extent[1] - extent[0]); - return height - padding + unitVal * (2 * padding - height); - }) + module.exports = { + hoverPoints + }; + } + }); + + // src/traces/splom/select.js + var require_select8 = __commonJS({ + "src/traces/splom/select.js"(exports, module) { + "use strict"; + var Lib = require_lib(); + var pushUnique = Lib.pushUnique; + var subTypes = require_subtypes(); + var helpers = require_helpers17(); + module.exports = function select(searchInfo, selectionTester) { + var cd = searchInfo.cd; + var trace = cd[0].trace; + var stash = cd[0].t; + var scene = searchInfo.scene; + var cdata = scene.matrixOptions.cdata; + var xa = searchInfo.xaxis; + var ya = searchInfo.yaxis; + var selection = []; + if (!scene) return selection; + var hasOnlyLines = !subTypes.hasMarkers(trace) && !subTypes.hasText(trace); + if (trace.visible !== true || hasOnlyLines) return selection; + var xi = helpers.getDimIndex(trace, xa); + var yi = helpers.getDimIndex(trace, ya); + if (xi === false || yi === false) return selection; + var xpx = stash.xpx[xi]; + var ypx = stash.ypx[yi]; + var x = cdata[xi]; + var y = cdata[yi]; + var els = (searchInfo.scene.selectBatch || []).slice(); + var unels = []; + if (selectionTester !== false && !selectionTester.degenerate) { + for (var i = 0; i < x.length; i++) { + if (selectionTester.contains([xpx[i], ypx[i]], null, i, searchInfo)) { + selection.push({ + pointNumber: i, + x: x[i], + y: y[i] + }); + pushUnique(els, i); + } else if (els.indexOf(i) !== -1) { + pushUnique(els, i); + } else { + unels.push(i); + } + } + } + var matrixOpts = scene.matrixOptions; + if (!els.length && !unels.length) { + scene.matrix.update(matrixOpts, null); + } else if (!scene.selectBatch.length && !scene.unselectBatch.length) { + scene.matrix.update( + scene.unselectedOptions, + Lib.extendFlat({}, matrixOpts, scene.selectedOptions, scene.viewOpts) ); } - return d3.scale.linear().domain(extent).range([height - padding, padding]); - } - function unitToPaddedPx(height, padding) { - return d3.scale.linear().range([padding, height - padding]); - } - function domainToPaddedUnitScale(dimension, padFraction) { - return d3.scale.linear().domain(dimensionExtent(dimension)).range([padFraction, 1 - padFraction]); - } - function ordinalScale(dimension) { - if (!dimension.tickvals) return; - var extent = dimensionExtent(dimension); - return d3.scale.ordinal().domain(dimension.tickvals).range(dimension.tickvals.map(function(d) { - return (d - extent[0]) / (extent[1] - extent[0]); - })); - } - function unitToColorScale(cscale) { - var colorStops = cscale.map(function(d) { - return d[0]; - }); - var colorTuples = cscale.map(function(d) { - var RGBA = rgba3(d[1]); - return d3.rgb("rgb(" + RGBA[0] + "," + RGBA[1] + "," + RGBA[2] + ")"); - }); - var prop = function(n) { - return function(o) { - return o[n]; - }; - }; - var polylinearUnitScales = "rgb".split("").map(function(key) { - return d3.scale.linear().clamp(true).domain(colorStops).range(colorTuples.map(prop(key))); - }); - return function(d) { - return polylinearUnitScales.map(function(s) { - return s(d); - }); - }; - } - function someFiltersActive(view) { - return view.dimensions.some(function(p) { - return p.brush.filterSpecified; - }); - } - function model(layout, d, i) { - var cd0 = unwrap(d); + scene.selectBatch = els; + scene.unselectBatch = unels; + return selection; + }; + } + }); + + // src/traces/splom/edit_style.js + var require_edit_style2 = __commonJS({ + "src/traces/splom/edit_style.js"(exports, module) { + "use strict"; + var Lib = require_lib(); + var calcColorscale = require_colorscale_calc(); + var convertMarkerStyle = require_convert10().markerStyle; + module.exports = function editStyle(gd, cd0) { var trace = cd0.trace; - var lineColor = helpers.convertTypedArray(cd0.lineColor); - var line = trace.line; - var deselectedLines = { - color: rgba3(trace.unselected.line.color), - opacity: trace.unselected.line.opacity - }; - var cOpts = Colorscale.extractOpts(line); - var cscale = cOpts.reversescale ? Colorscale.flipScale(cd0.cscale) : cd0.cscale; - var domain = trace.domain; - var dimensions = trace.dimensions; - var width = layout.width; - var labelAngle = trace.labelangle; - var labelSide = trace.labelside; - var labelFont = trace.labelfont; - var tickFont = trace.tickfont; - var rangeFont = trace.rangefont; - var lines = Lib.extendDeepNoArrays({}, line, { - color: lineColor.map(d3.scale.linear().domain( - dimensionExtent({ - values: lineColor, - range: [cOpts.min, cOpts.max], - _length: trace._length - }) - )), - blockLineCount: c.blockLineCount, - canvasOverdrag: c.overdrag * c.canvasPixelRatio - }); - var groupWidth = Math.floor(width * (domain.x[1] - domain.x[0])); - var groupHeight = Math.floor(layout.height * (domain.y[1] - domain.y[0])); - var pad = layout.margin || { l: 80, r: 80, t: 100, b: 80 }; - var rowContentWidth = groupWidth; - var rowHeight = groupHeight; - return { - key: i, - colCount: dimensions.filter(helpers.isVisible).length, - dimensions, - tickDistance: c.tickDistance, - unitToColor: unitToColorScale(cscale), - lines, - deselectedLines, - labelAngle, - labelSide, - labelFont, - tickFont, - rangeFont, - layoutWidth: width, - layoutHeight: layout.height, - domain, - translateX: domain.x[0] * width, - translateY: layout.height - domain.y[1] * layout.height, - pad, - canvasWidth: rowContentWidth * c.canvasPixelRatio + 2 * lines.canvasOverdrag, - canvasHeight: rowHeight * c.canvasPixelRatio, - width: rowContentWidth, - height: rowHeight, - canvasPixelRatio: c.canvasPixelRatio - }; + var scene = gd._fullLayout._splomScenes[trace.uid]; + if (scene) { + calcColorscale(gd, trace); + Lib.extendFlat(scene.matrixOptions, convertMarkerStyle(gd, trace)); + var opts = Lib.extendFlat({}, scene.matrixOptions, scene.viewOpts); + scene.matrix.update(opts, null); + } + }; + } + }); + + // src/traces/splom/base_index.js + var require_base_index2 = __commonJS({ + "src/traces/splom/base_index.js"(exports, module) { + "use strict"; + var Registry = require_registry(); + var Grid = require_grid(); + module.exports = { + moduleType: "trace", + name: "splom", + categories: ["gl", "regl", "cartesian", "symbols", "showLegend", "scatter-like"], + attributes: require_attributes51(), + supplyDefaults: require_defaults47(), + colorbar: require_marker_colorbar(), + calc: require_calc30(), + plot: require_plot20(), + hoverPoints: require_hover17().hoverPoints, + selectPoints: require_select8(), + editStyle: require_edit_style2(), + meta: {} + }; + Registry.register(Grid); + } + }); + + // src/traces/splom/base_plot.js + var require_base_plot6 = __commonJS({ + "src/traces/splom/base_plot.js"(exports, module) { + "use strict"; + var createLine = require_regl_line2d(); + var Registry = require_registry(); + var prepareRegl = require_prepare_regl(); + var getModuleCalcData = require_get_data().getModuleCalcData; + var Cartesian = require_cartesian(); + var getFromId = require_axis_ids().getFromId; + var shouldShowZeroLine = require_axes().shouldShowZeroLine; + var SPLOM = "splom"; + var reglPrecompiled = {}; + function plot(gd) { + var fullLayout = gd._fullLayout; + var _module = Registry.getModule(SPLOM); + var splomCalcData = getModuleCalcData(gd.calcdata, _module)[0]; + var success = prepareRegl(gd, ["ANGLE_instanced_arrays", "OES_element_index_uint"], reglPrecompiled); + if (!success) return; + if (fullLayout._hasOnlyLargeSploms) { + updateGrid(gd); + } + _module.plot(gd, {}, splomCalcData); } - function viewModel(state, callbacks, model2) { - var width = model2.width; - var height = model2.height; - var dimensions = model2.dimensions; - var canvasPixelRatio = model2.canvasPixelRatio; - var xScale = function(d) { - return width * d / Math.max(1, model2.colCount - 1); - }; - var unitPad = c.verticalPadding / height; - var _unitToPaddedPx = unitToPaddedPx(height, c.verticalPadding); - var vm = { - key: model2.key, - xScale, - model: model2, - inBrushDrag: false - // consider factoring it out and putting it in a centralized global-ish gesture state object - }; - var uniqueKeys = {}; - vm.dimensions = dimensions.filter(helpers.isVisible).map(function(dimension, i) { - var domainToPaddedUnit = domainToPaddedUnitScale(dimension, unitPad); - var foundKey = uniqueKeys[dimension.label]; - uniqueKeys[dimension.label] = (foundKey || 0) + 1; - var key = dimension.label + (foundKey ? "__" + foundKey : ""); - var specifiedConstraint = dimension.constraintrange; - var filterRangeSpecified = specifiedConstraint && specifiedConstraint.length; - if (filterRangeSpecified && !isArrayOrTypedArray(specifiedConstraint[0])) { - specifiedConstraint = [specifiedConstraint]; - } - var filterRange = filterRangeSpecified ? specifiedConstraint.map(function(d) { - return d.map(domainToPaddedUnit); - }) : [[-Infinity, Infinity]]; - var brushMove = function() { - var p = vm; - p.focusLayer && p.focusLayer.render(p.panels, true); - var filtersActive = someFiltersActive(p); - if (!state.contextShown() && filtersActive) { - p.contextLayer && p.contextLayer.render(p.panels, true); - state.contextShown(true); - } else if (state.contextShown() && !filtersActive) { - p.contextLayer && p.contextLayer.render(p.panels, true, true); - state.contextShown(false); - } - }; - var truncatedValues = dimension.values; - if (truncatedValues.length > dimension._length) { - truncatedValues = truncatedValues.slice(0, dimension._length); + function drag(gd) { + var cd = gd.calcdata; + var fullLayout = gd._fullLayout; + if (fullLayout._hasOnlyLargeSploms) { + updateGrid(gd); + } + for (var i = 0; i < cd.length; i++) { + var cd0 = cd[i][0]; + var trace = cd0.trace; + var scene = fullLayout._splomScenes[trace.uid]; + if (trace.type === "splom" && scene && scene.matrix) { + dragOne(gd, trace, scene); } - var tickvals = dimension.tickvals; - var ticktext; - function makeTickItem(v, i2) { - return { val: v, text: ticktext[i2] }; + } + } + function dragOne(gd, trace, scene) { + var visibleLength = scene.matrixOptions.data.length; + var visibleDims = trace._visibleDims; + var ranges = scene.viewOpts.ranges = new Array(visibleLength); + for (var k = 0; k < visibleDims.length; k++) { + var i = visibleDims[k]; + var rng = ranges[k] = new Array(4); + var xa = getFromId(gd, trace._diag[i][0]); + if (xa) { + rng[0] = xa.r2l(xa.range[0]); + rng[2] = xa.r2l(xa.range[1]); } - function sortTickItem(a, b) { - return a.val - b.val; + var ya = getFromId(gd, trace._diag[i][1]); + if (ya) { + rng[1] = ya.r2l(ya.range[0]); + rng[3] = ya.r2l(ya.range[1]); } - if (isArrayOrTypedArray(tickvals) && tickvals.length) { - if (Lib.isTypedArray(tickvals)) tickvals = Array.from(tickvals); - ticktext = dimension.ticktext; - if (!isArrayOrTypedArray(ticktext) || !ticktext.length) { - ticktext = tickvals.map(numberFormat(dimension.tickformat)); - } else if (ticktext.length > tickvals.length) { - ticktext = ticktext.slice(0, tickvals.length); - } else if (tickvals.length > ticktext.length) { - tickvals = tickvals.slice(0, ticktext.length); - } - for (var j = 1; j < tickvals.length; j++) { - if (tickvals[j] < tickvals[j - 1]) { - var tickItems = tickvals.map(makeTickItem).sort(sortTickItem); - for (var k = 0; k < tickvals.length; k++) { - tickvals[k] = tickItems[k].val; - ticktext[k] = tickItems[k].text; - } - break; - } - } - } else tickvals = void 0; - truncatedValues = helpers.convertTypedArray(truncatedValues); - return { - key, - label: dimension.label, - tickFormat: dimension.tickformat, - tickvals, - ticktext, - ordinal: helpers.isOrdinal(dimension), - multiselect: dimension.multiselect, - xIndex: i, - crossfilterDimensionIndex: i, - visibleIndex: dimension._index, - height, - values: truncatedValues, - paddedUnitValues: truncatedValues.map(domainToPaddedUnit), - unitTickvals: tickvals && tickvals.map(domainToPaddedUnit), - xScale, - x: xScale(i), - canvasX: xScale(i) * canvasPixelRatio, - unitToPaddedPx: _unitToPaddedPx, - domainScale: domainScale(height, c.verticalPadding, dimension, tickvals, ticktext), - ordinalScale: ordinalScale(dimension), - parent: vm, - model: model2, - brush: brush.makeBrush( - state, - filterRangeSpecified, - filterRange, - function() { - state.linePickActive(false); - }, - brushMove, - function(f) { - vm.focusLayer.render(vm.panels, true); - vm.pickLayer && vm.pickLayer.render(vm.panels, true); - state.linePickActive(true); - if (callbacks && callbacks.filterChanged) { - var invScale = domainToPaddedUnit.invert; - var newRanges = f.map(function(r) { - return r.map(invScale).sort(Lib.sorterAsc); - }).sort(function(a, b) { - return a[0] - b[0]; - }); - callbacks.filterChanged(vm.key, dimension._index, newRanges); - } - } - ) - }; - }); - return vm; + } + if (scene.selectBatch.length || scene.unselectBatch.length) { + scene.matrix.update({ ranges }, { ranges }); + } else { + scene.matrix.update({ ranges }); + } } - function styleExtentTexts(selection) { - selection.classed(c.cn.axisExtentText, true).attr("text-anchor", "middle").style("cursor", "default"); + function updateGrid(gd) { + var fullLayout = gd._fullLayout; + var regl = fullLayout._glcanvas.data()[0].regl; + var splomGrid = fullLayout._splomGrid; + if (!splomGrid) { + splomGrid = fullLayout._splomGrid = createLine(regl); + } + splomGrid.update(makeGridData(gd)); } - function parcoordsInteractionState() { - var linePickActive = true; - var contextShown = false; - return { - linePickActive: function(val) { - return arguments.length ? linePickActive = !!val : linePickActive; - }, - contextShown: function(val) { - return arguments.length ? contextShown = !!val : contextShown; + function makeGridData(gd) { + var plotGlPixelRatio = gd._context.plotGlPixelRatio; + var fullLayout = gd._fullLayout; + var gs = fullLayout._size; + var fullView = [ + 0, + 0, + fullLayout.width * plotGlPixelRatio, + fullLayout.height * plotGlPixelRatio + ]; + var lookup = {}; + var k; + function push(prefix, ax, x0, x1, y0, y1) { + x0 *= plotGlPixelRatio; + x1 *= plotGlPixelRatio; + y0 *= plotGlPixelRatio; + y1 *= plotGlPixelRatio; + var lcolor = ax[prefix + "color"]; + var lwidth = ax[prefix + "width"]; + var key = String(lcolor + lwidth); + if (key in lookup) { + lookup[key].data.push(NaN, NaN, x0, x1, y0, y1); + } else { + lookup[key] = { + data: [x0, x1, y0, y1], + join: "rect", + thickness: lwidth * plotGlPixelRatio, + color: lcolor, + viewport: fullView, + range: fullView, + overlay: false + }; } - }; - } - function calcTilt(angle, position) { - var dir = position === "top" ? 1 : -1; - var radians2 = angle * Math.PI / 180; - var dx = Math.sin(radians2); - var dy = Math.cos(radians2); - return { - dir, - dx, - dy, - degrees: angle - }; - } - function updatePanelLayout(yAxis, vm, plotGlPixelRatio) { - var panels = vm.panels || (vm.panels = []); - var data = yAxis.data(); - for (var i = 0; i < data.length - 1; i++) { - var p = panels[i] || (panels[i] = {}); - var dim0 = data[i]; - var dim1 = data[i + 1]; - p.dim0 = dim0; - p.dim1 = dim1; - p.canvasX = dim0.canvasX; - p.panelSizeX = dim1.canvasX - dim0.canvasX; - p.panelSizeY = vm.model.canvasHeight; - p.y = 0; - p.canvasY = 0; - p.plotGlPixelRatio = plotGlPixelRatio; } - } - function calcAllTicks(cd) { - for (var i = 0; i < cd.length; i++) { - for (var j = 0; j < cd[i].length; j++) { - var trace = cd[i][j].trace; - var dimensions = trace.dimensions; - for (var k = 0; k < dimensions.length; k++) { - var values = dimensions[k].values; - var dim = dimensions[k]._ax; - if (dim) { - if (!dim.range) { - dim.range = findExtremes(values, trace._length); - } else { - dim.range = fixExtremes(dim.range[0], dim.range[1]); - } - if (!dim.dtick) { - dim.dtick = 0.01 * (Math.abs(dim.range[1] - dim.range[0]) || 1); - } - dim.tickformat = dimensions[k].tickformat; - Axes.calcTicks(dim); - dim.cleanRange(); - } + for (k in fullLayout._splomSubplots) { + var sp = fullLayout._plots[k]; + var xa = sp.xaxis; + var ya = sp.yaxis; + var xVals = xa._gridVals; + var yVals = ya._gridVals; + var xOffset = xa._offset; + var xLength = xa._length; + var yLength = ya._length; + var yOffset = gs.b + ya.domain[0] * gs.h; + var ym = -ya._m; + var yb = -ym * ya.r2l(ya.range[0], ya.calendar); + var x, y; + if (xa.showgrid) { + for (k = 0; k < xVals.length; k++) { + x = xOffset + xa.l2p(xVals[k].x); + push("grid", xa, x, yOffset, x, yOffset + yLength); + } + } + if (ya.showgrid) { + for (k = 0; k < yVals.length; k++) { + y = yOffset + yb + ym * yVals[k].x; + push("grid", ya, xOffset, y, xOffset + xLength, y); } } + if (shouldShowZeroLine(gd, xa, ya)) { + x = xOffset + xa.l2p(0); + push("zeroline", xa, x, yOffset, x, yOffset + yLength); + } + if (shouldShowZeroLine(gd, ya, xa)) { + y = yOffset + yb + 0; + push("zeroline", ya, xOffset, y, xOffset + xLength, y); + } } + var gridBatches = []; + for (k in lookup) { + gridBatches.push(lookup[k]); + } + return gridBatches; } - function linearFormat(dim, v) { - return Axes.tickText(dim._ax, v, false).text; - } - function extremeText(d, isTop) { - if (d.ordinal) return ""; - var domain = d.domainScale.domain(); - var v = domain[isTop ? domain.length - 1 : 0]; - return linearFormat(d.model.dimensions[d.visibleIndex], v); - } - module.exports = function parcoords(gd, cdModule, layout, callbacks) { - var isStatic = gd._context.staticPlot; - var fullLayout = gd._fullLayout; - var svg = fullLayout._toppaper; - var glContainer = fullLayout._glcontainer; - var plotGlPixelRatio = gd._context.plotGlPixelRatio; - var paperColor = gd._fullLayout.paper_bgcolor; - calcAllTicks(cdModule); - var state = parcoordsInteractionState(); - var vm = cdModule.filter(function(d) { - return unwrap(d).trace.visible; - }).map(model.bind(0, layout)).map(viewModel.bind(0, state, callbacks)); - glContainer.each(function(d, i) { - return Lib.extendFlat(d, vm[i]); - }); - var glLayers = glContainer.selectAll(".gl-canvas").each(function(d) { - d.viewModel = vm[0]; - d.viewModel.plotGlPixelRatio = plotGlPixelRatio; - d.viewModel.paperColor = paperColor; - d.model = d.viewModel ? d.viewModel.model : null; - }); - var lastHovered = null; - var pickLayer = glLayers.filter(function(d) { - return d.pick; - }); - pickLayer.style("pointer-events", isStatic ? "none" : "auto").on("mousemove", function(d) { - if (state.linePickActive() && d.lineLayer && callbacks && callbacks.hover) { - var event = d3.event; - var cw = this.width; - var ch = this.height; - var pointer = d3.mouse(this); - var x = pointer[0]; - var y = pointer[1]; - if (x < 0 || y < 0 || x >= cw || y >= ch) { - return; - } - var pixel = d.lineLayer.readPixel(x, ch - 1 - y); - var found = pixel[3] !== 0; - var curveNumber = found ? pixel[2] + 256 * (pixel[1] + 256 * pixel[0]) : null; - var eventData = { - x, - y, - clientX: event.clientX, - clientY: event.clientY, - dataIndex: d.model.key, - curveNumber - }; - if (curveNumber !== lastHovered) { - if (found) { - callbacks.hover(eventData); - } else if (callbacks.unhover) { - callbacks.unhover(eventData); - } - lastHovered = curveNumber; + function clean(newFullData, newFullLayout, oldFullData, oldFullLayout) { + var lookup = {}; + var i; + if (oldFullLayout._splomScenes) { + for (i = 0; i < newFullData.length; i++) { + var newTrace = newFullData[i]; + if (newTrace.type === "splom") { + lookup[newTrace.uid] = 1; } } - }); - glLayers.style("opacity", function(d) { - return d.pick ? 0 : 1; - }); - svg.style("background", "rgba(255, 255, 255, 0)"); - var controlOverlay = svg.selectAll("." + c.cn.parcoords).data(vm, keyFun); - controlOverlay.exit().remove(); - controlOverlay.enter().append("g").classed(c.cn.parcoords, true).style("shape-rendering", "crispEdges").style("pointer-events", "none"); - controlOverlay.attr("transform", function(d) { - return strTranslate(d.model.translateX, d.model.translateY); - }); - var parcoordsControlView = controlOverlay.selectAll("." + c.cn.parcoordsControlView).data(repeat, keyFun); - parcoordsControlView.enter().append("g").classed(c.cn.parcoordsControlView, true); - parcoordsControlView.attr("transform", function(d) { - return strTranslate(d.model.pad.l, d.model.pad.t); - }); - var yAxis = parcoordsControlView.selectAll("." + c.cn.yAxis).data(function(p) { - return p.dimensions; - }, keyFun); - yAxis.enter().append("g").classed(c.cn.yAxis, true); - parcoordsControlView.each(function(p) { - updatePanelLayout(yAxis, p, plotGlPixelRatio); - }); - glLayers.each(function(d) { - if (d.viewModel) { - if (!d.lineLayer || callbacks) { - d.lineLayer = lineLayerMaker(this, d); - } else d.lineLayer.update(d); - if (d.key || d.key === 0) d.viewModel[d.key] = d.lineLayer; - var setChanged = !d.context || // don't update background - callbacks; - d.lineLayer.render(d.viewModel.panels, setChanged); - } - }); - yAxis.attr("transform", function(d) { - return strTranslate(d.xScale(d.xIndex), 0); - }); - yAxis.call( - d3.behavior.drag().origin(function(d) { - return d; - }).on("drag", function(d) { - var p = d.parent; - state.linePickActive(false); - d.x = Math.max(-c.overdrag, Math.min(d.model.width + c.overdrag, d3.event.x)); - d.canvasX = d.x * d.model.canvasPixelRatio; - yAxis.sort(function(a, b) { - return a.x - b.x; - }).each(function(e, i) { - e.xIndex = i; - e.x = d === e ? e.x : e.xScale(e.xIndex); - e.canvasX = e.x * e.model.canvasPixelRatio; - }); - updatePanelLayout(yAxis, p, plotGlPixelRatio); - yAxis.filter(function(e) { - return Math.abs(d.xIndex - e.xIndex) !== 0; - }).attr("transform", function(d2) { - return strTranslate(d2.xScale(d2.xIndex), 0); - }); - d3.select(this).attr("transform", strTranslate(d.x, 0)); - yAxis.each(function(e, i0, i1) { - if (i1 === d.parent.key) p.dimensions[i0] = e; - }); - p.contextLayer && p.contextLayer.render(p.panels, false, !someFiltersActive(p)); - p.focusLayer.render && p.focusLayer.render(p.panels); - }).on("dragend", function(d) { - var p = d.parent; - d.x = d.xScale(d.xIndex); - d.canvasX = d.x * d.model.canvasPixelRatio; - updatePanelLayout(yAxis, p, plotGlPixelRatio); - d3.select(this).attr("transform", function(d2) { - return strTranslate(d2.x, 0); - }); - p.contextLayer && p.contextLayer.render(p.panels, false, !someFiltersActive(p)); - p.focusLayer && p.focusLayer.render(p.panels); - p.pickLayer && p.pickLayer.render(p.panels, true); - state.linePickActive(true); - if (callbacks && callbacks.axesMoved) { - callbacks.axesMoved(p.key, p.dimensions.map(function(e) { - return e.crossfilterDimensionIndex; - })); + for (i = 0; i < oldFullData.length; i++) { + var oldTrace = oldFullData[i]; + if (!lookup[oldTrace.uid]) { + var scene = oldFullLayout._splomScenes[oldTrace.uid]; + if (scene && scene.destroy) scene.destroy(); + oldFullLayout._splomScenes[oldTrace.uid] = null; + delete oldFullLayout._splomScenes[oldTrace.uid]; } - }) - ); - yAxis.exit().remove(); - var axisOverlays = yAxis.selectAll("." + c.cn.axisOverlays).data(repeat, keyFun); - axisOverlays.enter().append("g").classed(c.cn.axisOverlays, true); - axisOverlays.selectAll("." + c.cn.axis).remove(); - var axis = axisOverlays.selectAll("." + c.cn.axis).data(repeat, keyFun); - axis.enter().append("g").classed(c.cn.axis, true); - axis.each(function(d) { - var wantedTickCount = d.model.height / d.model.tickDistance; - var scale = d.domainScale; - var sdom = scale.domain(); - d3.select(this).call(d3.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(wantedTickCount, d.tickFormat).tickValues(d.ordinal ? ( - // and this works for ordinal scales - sdom - ) : null).tickFormat(function(v) { - return helpers.isOrdinal(d) ? v : linearFormat(d.model.dimensions[d.visibleIndex], v); - }).scale(scale)); - Drawing.font(axis.selectAll("text"), d.model.tickFont); - }); - axis.selectAll(".domain, .tick>line").attr("fill", "none").attr("stroke", "black").attr("stroke-opacity", 0.25).attr("stroke-width", "1px"); - axis.selectAll("text").style("cursor", "default"); - var axisHeading = axisOverlays.selectAll("." + c.cn.axisHeading).data(repeat, keyFun); - axisHeading.enter().append("g").classed(c.cn.axisHeading, true); - var axisTitle = axisHeading.selectAll("." + c.cn.axisTitle).data(repeat, keyFun); - axisTitle.enter().append("text").classed(c.cn.axisTitle, true).attr("text-anchor", "middle").style("cursor", "ew-resize").style("pointer-events", isStatic ? "none" : "auto"); - axisTitle.text(function(d) { - return d.label; - }).each(function(d) { - var e = d3.select(this); - Drawing.font(e, d.model.labelFont); - svgTextUtils.convertToTspans(e, gd); - }).attr("transform", function(d) { - var tilt = calcTilt(d.model.labelAngle, d.model.labelSide); - var r = c.axisTitleOffset; - return (tilt.dir > 0 ? "" : strTranslate(0, 2 * r + d.model.height)) + strRotate(tilt.degrees) + strTranslate(-r * tilt.dx, -r * tilt.dy); - }).attr("text-anchor", function(d) { - var tilt = calcTilt(d.model.labelAngle, d.model.labelSide); - var adx = Math.abs(tilt.dx); - var ady = Math.abs(tilt.dy); - if (2 * adx > ady) { - return tilt.dir * tilt.dx < 0 ? "start" : "end"; - } else { - return "middle"; } - }); - var axisExtent = axisOverlays.selectAll("." + c.cn.axisExtent).data(repeat, keyFun); - axisExtent.enter().append("g").classed(c.cn.axisExtent, true); - var axisExtentTop = axisExtent.selectAll("." + c.cn.axisExtentTop).data(repeat, keyFun); - axisExtentTop.enter().append("g").classed(c.cn.axisExtentTop, true); - axisExtentTop.attr("transform", strTranslate(0, -c.axisExtentOffset)); - var axisExtentTopText = axisExtentTop.selectAll("." + c.cn.axisExtentTopText).data(repeat, keyFun); - axisExtentTopText.enter().append("text").classed(c.cn.axisExtentTopText, true).call(styleExtentTexts); - axisExtentTopText.text(function(d) { - return extremeText(d, true); - }).each(function(d) { - Drawing.font(d3.select(this), d.model.rangeFont); - }); - var axisExtentBottom = axisExtent.selectAll("." + c.cn.axisExtentBottom).data(repeat, keyFun); - axisExtentBottom.enter().append("g").classed(c.cn.axisExtentBottom, true); - axisExtentBottom.attr("transform", function(d) { - return strTranslate(0, d.model.height + c.axisExtentOffset); - }); - var axisExtentBottomText = axisExtentBottom.selectAll("." + c.cn.axisExtentBottomText).data(repeat, keyFun); - axisExtentBottomText.enter().append("text").classed(c.cn.axisExtentBottomText, true).attr("dy", "0.75em").call(styleExtentTexts); - axisExtentBottomText.text(function(d) { - return extremeText(d, false); - }).each(function(d) { - Drawing.font(d3.select(this), d.model.rangeFont); - }); - brush.ensureAxisBrush(axisOverlays, paperColor, gd); + } + if (Object.keys(oldFullLayout._splomScenes || {}).length === 0) { + delete oldFullLayout._splomScenes; + } + if (oldFullLayout._splomGrid && (!newFullLayout._hasOnlyLargeSploms && oldFullLayout._hasOnlyLargeSploms)) { + oldFullLayout._splomGrid.destroy(); + oldFullLayout._splomGrid = null; + delete oldFullLayout._splomGrid; + } + Cartesian.clean(newFullData, newFullLayout, oldFullData, oldFullLayout); + } + module.exports = { + name: SPLOM, + attr: Cartesian.attr, + attrRegex: Cartesian.attrRegex, + layoutAttributes: Cartesian.layoutAttributes, + supplyLayoutDefaults: Cartesian.supplyLayoutDefaults, + drawFramework: Cartesian.drawFramework, + plot, + drag, + updateGrid, + clean, + updateFx: Cartesian.updateFx, + toSVG: Cartesian.toSVG, + reglPrecompiled }; } }); - // src/traces/parcoords/plot.js - var require_plot21 = __commonJS({ - "src/traces/parcoords/plot.js"(exports, module) { + // src/traces/splom/regl_precompiled.js + var require_regl_precompiled2 = __commonJS({ + "src/traces/splom/regl_precompiled.js"(exports, module) { "use strict"; - var parcoords = require_parcoords(); - var prepareRegl = require_prepare_regl(); - var isVisible = require_helpers18().isVisible; - var reglPrecompiled = {}; - function newIndex(visibleIndices, orig, dim) { - var origIndex = orig.indexOf(dim); - var currentIndex = visibleIndices.indexOf(origIndex); - if (currentIndex === -1) { - currentIndex += orig.length; - } - return currentIndex; - } - function sorter(visibleIndices, orig) { - return function sorter2(d1, d2) { - return newIndex(visibleIndices, orig, d1) - newIndex(visibleIndices, orig, d2); - }; - } - var exports = module.exports = function plot(gd, cdModule) { - var fullLayout = gd._fullLayout; - var success = prepareRegl(gd, [], reglPrecompiled); - if (!success) return; - var currentDims = {}; - var initialDims = {}; - var fullIndices = {}; - var inputIndices = {}; - var size = fullLayout._size; - cdModule.forEach(function(d, i) { - var trace = d[0].trace; - fullIndices[i] = trace.index; - var iIn = inputIndices[i] = trace.index; - currentDims[i] = gd.data[iIn].dimensions; - initialDims[i] = gd.data[iIn].dimensions.slice(); - }); - var filterChanged = function(i, initialDimIndex, newRanges) { - var dim = initialDims[i][initialDimIndex]; - var newConstraints = newRanges.map(function(r) { - return r.slice(); - }); - var aStr = "dimensions[" + initialDimIndex + "].constraintrange"; - var preGUI = fullLayout._tracePreGUI[gd._fullData[fullIndices[i]]._fullInput.uid]; - if (preGUI[aStr] === void 0) { - var initialVal = dim.constraintrange; - preGUI[aStr] = initialVal || null; - } - var fullDimension = gd._fullData[fullIndices[i]].dimensions[initialDimIndex]; - if (!newConstraints.length) { - delete dim.constraintrange; - delete fullDimension.constraintrange; - newConstraints = null; - } else { - if (newConstraints.length === 1) newConstraints = newConstraints[0]; - dim.constraintrange = newConstraints; - fullDimension.constraintrange = newConstraints.slice(); - newConstraints = [newConstraints]; - } - var restyleData = {}; - restyleData[aStr] = newConstraints; - gd.emit("plotly_restyle", [restyleData, [inputIndices[i]]]); - }; - var hover = function(eventData) { - gd.emit("plotly_hover", eventData); - }; - var unhover = function(eventData) { - gd.emit("plotly_unhover", eventData); - }; - var axesMoved = function(i, visibleIndices) { - var orig = sorter(visibleIndices, initialDims[i].filter(isVisible)); - currentDims[i].sort(orig); - initialDims[i].filter(function(d) { - return !isVisible(d); - }).sort(function(d) { - return initialDims[i].indexOf(d); - }).forEach(function(d) { - currentDims[i].splice(currentDims[i].indexOf(d), 1); - currentDims[i].splice(initialDims[i].indexOf(d), 0, d); - }); - gd.emit("plotly_restyle", [{ dimensions: [currentDims[i]] }, [inputIndices[i]]]); - }; - parcoords( - gd, - cdModule, - { - // layout - width: size.w, - height: size.h, - margin: { - t: size.t, - r: size.r, - b: size.b, - l: size.l - } - }, - { - // callbacks - filterChanged, - hover, - unhover, - axesMoved - } - ); + var v0 = require_e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b(); + var v1 = require_e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210(); + var v2 = require_a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923(); + var v3 = require_aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034(); + var v4 = require_fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623(); + var v5 = require_bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019(); + var v6 = require_cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81(); + var v7 = require_db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d(); + var v8 = require_dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5(); + var v9 = require_fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7(); + module.exports = { + "3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b": v0, + "49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210": v1, + "6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923": v2, + "8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034": v3, + "8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623": v4, + "bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019": v5, + "cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81": v6, + "db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d": v7, + "dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5": v8, + "fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7": v9 }; - exports.reglPrecompiled = reglPrecompiled; } }); - // src/traces/parcoords/base_plot.js - var require_base_plot7 = __commonJS({ - "src/traces/parcoords/base_plot.js"(exports) { + // src/traces/splom/base_plot_strict.js + var require_base_plot_strict = __commonJS({ + "src/traces/splom/base_plot_strict.js"(exports, module) { "use strict"; - var d3 = require_d3(); - var getModuleCalcData = require_get_data().getModuleCalcData; - var parcoordsPlot = require_plot21(); - var xmlnsNamespaces = require_xmlns_namespaces(); - exports.name = "parcoords"; - exports.plot = function(gd) { - var calcData = getModuleCalcData(gd.calcdata, "parcoords")[0]; - if (calcData.length) parcoordsPlot(gd, calcData); - }; - exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) { - var hadParcoords = oldFullLayout._has && oldFullLayout._has("parcoords"); - var hasParcoords = newFullLayout._has && newFullLayout._has("parcoords"); - if (hadParcoords && !hasParcoords) { - oldFullLayout._paperdiv.selectAll(".parcoords").remove(); - oldFullLayout._glimages.selectAll("*").remove(); - } - }; - exports.toSVG = function(gd) { - var imageRoot = gd._fullLayout._glimages; - var root = d3.select(gd).selectAll(".svg-container"); - var canvases = root.filter(function(d, i) { - return i === root.size() - 1; - }).selectAll(".gl-canvas-context, .gl-canvas-focus"); - function canvasToImage() { - var canvas = this; - var imageData = canvas.toDataURL("image/png"); - var image = imageRoot.append("svg:image"); - image.attr({ - xmlns: xmlnsNamespaces.svg, - "xlink:href": imageData, - preserveAspectRatio: "none", - x: 0, - y: 0, - width: canvas.style.width, - height: canvas.style.height - }); - } - canvases.each(canvasToImage); - window.setTimeout(function() { - d3.selectAll("#filterBarPattern").attr("id", "filterBarPattern"); - }, 60); - }; + var basePlot = require_base_plot6(); + var reglPrecompiled = require_regl_precompiled2(); + Object.assign(basePlot.reglPrecompiled, reglPrecompiled); + module.exports = basePlot; } }); - // src/traces/parcoords/base_index.js - var require_base_index3 = __commonJS({ - "src/traces/parcoords/base_index.js"(exports, module) { + // src/traces/splom/strict.js + var require_strict2 = __commonJS({ + "src/traces/splom/strict.js"(exports, module) { "use strict"; - module.exports = { - attributes: require_attributes52(), - supplyDefaults: require_defaults48(), - calc: require_calc31(), - colorbar: { - container: "line", - min: "cmin", - max: "cmax" - }, - moduleType: "trace", - name: "parcoords", - basePlotModule: require_base_plot7(), - categories: ["gl", "regl", "noOpacity", "noHover"], - meta: {} - }; + var index = require_base_index2(); + index.basePlotModule = require_base_plot_strict(), module.exports = index; } }); - // src/generated/regl-codegen/453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45 - var require_a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45 = __commonJS({ - "src/generated/regl-codegen/453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45"(exports, module) { - module.exports = function anonymous(g0, g52) { - "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v62, v63, v64, v65, v66, v67, v70, v71, v74, v75, v82, v83, v84, v85, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97; - v1 = g0.gl; - v2 = g0.context; - v3 = g0.strings; - v4 = g0.next; - v5 = g0.current; - v6 = g0.draw; - v7 = g0.elements; - v8 = g0.buffer; - v9 = g0.shader; - v10 = g0.attributes; - v11 = g0.vao; - v12 = g0.uniforms; - v13 = g0.framebuffer; - v14 = g0.extensions; - v15 = g0.timer; - v16 = g0.isBufferArgs; - v17 = v4.blend_color; - v18 = v5.blend_color; - v19 = v4.blend_equation; - v20 = v5.blend_equation; - v21 = v4.blend_func; - v22 = v5.blend_func; - v23 = v4.depth_range; - v24 = v5.depth_range; - v25 = v4.colorMask; - v26 = v5.colorMask; - v27 = v4.polygonOffset_offset; - v28 = v5.polygonOffset_offset; - v29 = v4.sample_coverage; - v30 = v5.sample_coverage; - v31 = v4.stencil_func; - v32 = v5.stencil_func; - v33 = v4.stencil_opFront; - v34 = v5.stencil_opFront; - v35 = v4.stencil_opBack; - v36 = v5.stencil_opBack; - v37 = v4.scissor_box; - v38 = v5.scissor_box; - v39 = v4.viewport; - v40 = v5.viewport; - v41 = { - "points": 0, - "point": 0, - "lines": 1, - "line": 1, - "triangles": 4, - "triangle": 4, - "line loop": 2, - "line strip": 3, - "triangle strip": 5, - "triangle fan": 6 - }; - v42 = { - "never": 512, - "less": 513, - "<": 513, - "equal": 514, - "=": 514, - "==": 514, - "===": 514, - "lequal": 515, - "<=": 515, - "greater": 516, - ">": 516, - "notequal": 517, - "!=": 517, - "!==": 517, - "gequal": 518, - ">=": 518, - "always": 519 - }; - v43 = { - "0": 0, - "1": 1, - "zero": 0, - "one": 1, - "src color": 768, - "one minus src color": 769, - "src alpha": 770, - "one minus src alpha": 771, - "dst color": 774, - "one minus dst color": 775, - "dst alpha": 772, - "one minus dst alpha": 773, - "constant color": 32769, - "one minus constant color": 32770, - "constant alpha": 32771, - "one minus constant alpha": 32772, - "src alpha saturate": 776 - }; - v44 = { - "add": 32774, - "subtract": 32778, - "reverse subtract": 32779 - }; - v45 = { - "0": 0, - "zero": 0, - "keep": 7680, - "replace": 7681, - "increment": 7682, - "decrement": 7683, - "increment wrap": 34055, - "decrement wrap": 34056, - "invert": 5386 - }; - v46 = { - "int8": 5120, - "int16": 5122, - "int32": 5124, - "uint8": 5121, - "uint16": 5123, - "uint32": 5125, - "float": 5126, - "float32": 5126 - }; - v47 = { - "cw": 2304, - "ccw": 2305 - }; - v62 = v4.blend_color; - v63 = v5.blend_color; - v64 = v4.blend_equation; - v65 = v5.blend_equation; - v66 = v4.blend_func; - v67 = v5.blend_func; - v70 = v4.depth_range; - v71 = v5.depth_range; - v74 = v4.colorMask; - v75 = v5.colorMask; - v82 = v4.polygonOffset_offset; - v83 = v5.polygonOffset_offset; - v84 = v4.sample_coverage; - v85 = v5.sample_coverage; - v88 = v4.stencil_func; - v89 = v5.stencil_func; - v90 = v4.stencil_opFront; - v91 = v5.stencil_opFront; - v92 = v4.stencil_opBack; - v93 = v5.stencil_opBack; - v94 = v4.scissor_box; - v95 = v5.scissor_box; - v96 = v4.viewport; - v97 = v5.viewport; - return { - "poll": function() { - var v48; - var v53, v54, v55, v56, v57, v58, v59, v60, v61, v68, v69, v72, v73, v76, v77, v78, v79, v80, v81, v86, v87; - v5.dirty = false; - v53 = v4.dither; - v54 = v4.blend_enable; - v55 = v4.depth_enable; - v56 = v4.cull_enable; - v57 = v4.polygonOffset_enable; - v58 = v4.sample_alpha; - v59 = v4.sample_enable; - v60 = v4.stencil_enable; - v61 = v4.scissor_enable; - v68 = v4.depth_func; - v69 = v5.depth_func; - v72 = v4.depth_mask; - v73 = v5.depth_mask; - v76 = v4.cull_face; - v77 = v5.cull_face; - v78 = v4.frontFace; - v79 = v5.frontFace; - v80 = v4.lineWidth; - v81 = v5.lineWidth; - v86 = v4.stencil_mask; - v87 = v5.stencil_mask; - v48 = v13.next; - if (v48 !== v13.cur) { - if (v48) { - v1.bindFramebuffer(36160, v48.framebuffer); - } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v48; - } - if (v53 !== v5.dither) { - if (v53) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v53; - } - if (v54 !== v5.blend_enable) { - if (v54) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = v54; - } - if (v55 !== v5.depth_enable) { - if (v55) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v55; - } - if (v56 !== v5.cull_enable) { - if (v56) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v56; - } - if (v57 !== v5.polygonOffset_enable) { - if (v57) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v57; - } - if (v58 !== v5.sample_alpha) { - if (v58) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v58; - } - if (v59 !== v5.sample_enable) { - if (v59) { - v1.enable(32928); - } else { - v1.disable(32928); - } - v5.sample_enable = v59; - } - if (v60 !== v5.stencil_enable) { - if (v60) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = v60; - } - if (v61 !== v5.scissor_enable) { - if (v61) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v61; - } - if (v62[0] !== v63[0] || v62[1] !== v63[1] || v62[2] !== v63[2] || v62[3] !== v63[3]) { - v1.blendColor(v62[0], v62[1], v62[2], v62[3]); - v63[0] = v62[0]; - v63[1] = v62[1]; - v63[2] = v62[2]; - v63[3] = v62[3]; - } - if (v64[0] !== v65[0] || v64[1] !== v65[1]) { - v1.blendEquationSeparate(v64[0], v64[1]); - v65[0] = v64[0]; - v65[1] = v64[1]; - } - if (v66[0] !== v67[0] || v66[1] !== v67[1] || v66[2] !== v67[2] || v66[3] !== v67[3]) { - v1.blendFuncSeparate(v66[0], v66[1], v66[2], v66[3]); - v67[0] = v66[0]; - v67[1] = v66[1]; - v67[2] = v66[2]; - v67[3] = v66[3]; - } - if (v68 !== v69) { - v1.depthFunc(v68); - v5.depth_func = v68; - } - if (v70[0] !== v71[0] || v70[1] !== v71[1]) { - v1.depthRange(v70[0], v70[1]); - v71[0] = v70[0]; - v71[1] = v70[1]; - } - if (v72 !== v73) { - v1.depthMask(v72); - v5.depth_mask = v72; - } - if (v74[0] !== v75[0] || v74[1] !== v75[1] || v74[2] !== v75[2] || v74[3] !== v75[3]) { - v1.colorMask(v74[0], v74[1], v74[2], v74[3]); - v75[0] = v74[0]; - v75[1] = v74[1]; - v75[2] = v74[2]; - v75[3] = v74[3]; - } - if (v76 !== v77) { - v1.cullFace(v76); - v5.cull_face = v76; - } - if (v78 !== v79) { - v1.frontFace(v78); - v5.frontFace = v78; - } - if (v80 !== v81) { - v1.lineWidth(v80); - v5.lineWidth = v80; - } - if (v82[0] !== v83[0] || v82[1] !== v83[1]) { - v1.polygonOffset(v82[0], v82[1]); - v83[0] = v82[0]; - v83[1] = v82[1]; - } - if (v84[0] !== v85[0] || v84[1] !== v85[1]) { - v1.sampleCoverage(v84[0], v84[1]); - v85[0] = v84[0]; - v85[1] = v84[1]; - } - if (v86 !== v87) { - v1.stencilMask(v86); - v5.stencil_mask = v86; - } - if (v88[0] !== v89[0] || v88[1] !== v89[1] || v88[2] !== v89[2]) { - v1.stencilFunc(v88[0], v88[1], v88[2]); - v89[0] = v88[0]; - v89[1] = v88[1]; - v89[2] = v88[2]; - } - if (v90[0] !== v91[0] || v90[1] !== v91[1] || v90[2] !== v91[2] || v90[3] !== v91[3]) { - v1.stencilOpSeparate(v90[0], v90[1], v90[2], v90[3]); - v91[0] = v90[0]; - v91[1] = v90[1]; - v91[2] = v90[2]; - v91[3] = v90[3]; - } - if (v92[0] !== v93[0] || v92[1] !== v93[1] || v92[2] !== v93[2] || v92[3] !== v93[3]) { - v1.stencilOpSeparate(v92[0], v92[1], v92[2], v92[3]); - v93[0] = v92[0]; - v93[1] = v92[1]; - v93[2] = v92[2]; - v93[3] = v92[3]; - } - if (v94[0] !== v95[0] || v94[1] !== v95[1] || v94[2] !== v95[2] || v94[3] !== v95[3]) { - v1.scissor(v94[0], v94[1], v94[2], v94[3]); - v95[0] = v94[0]; - v95[1] = v94[1]; - v95[2] = v94[2]; - v95[3] = v94[3]; - } - if (v96[0] !== v97[0] || v96[1] !== v97[1] || v96[2] !== v97[2] || v96[3] !== v97[3]) { - v1.viewport(v96[0], v96[1], v96[2], v96[3]); - v97[0] = v96[0]; - v97[1] = v96[1]; - v97[2] = v96[2]; - v97[3] = v96[3]; - } + // src/traces/parcoords/attributes.js + var require_attributes52 = __commonJS({ + "src/traces/parcoords/attributes.js"(exports, module) { + "use strict"; + var colorScaleAttrs = require_attributes8(); + var axesAttrs = require_layout_attributes4(); + var fontAttrs = require_font_attributes(); + var domainAttrs = require_domain().attributes; + var extendFlat = require_extend().extendFlat; + var templatedArray = require_plot_template().templatedArray; + module.exports = { + domain: domainAttrs({ name: "parcoords", trace: true, editType: "plot" }), + labelangle: { + valType: "angle", + dflt: 0, + editType: "plot" + }, + labelside: { + valType: "enumerated", + values: ["top", "bottom"], + dflt: "top", + editType: "plot" + }, + labelfont: fontAttrs({ + editType: "plot" + }), + tickfont: fontAttrs({ + autoShadowDflt: true, + editType: "plot" + }), + rangefont: fontAttrs({ + editType: "plot" + }), + dimensions: templatedArray("dimension", { + label: { + valType: "string", + editType: "plot" }, - "refresh": function() { - var v49, v50, v51; - var v53, v54, v55, v56, v57, v58, v59, v60, v61, v68, v69, v72, v73, v76, v77, v78, v79, v80, v81, v86, v87; - v5.dirty = false; - v53 = v4.dither; - v54 = v4.blend_enable; - v55 = v4.depth_enable; - v56 = v4.cull_enable; - v57 = v4.polygonOffset_enable; - v58 = v4.sample_alpha; - v59 = v4.sample_enable; - v60 = v4.stencil_enable; - v61 = v4.scissor_enable; - v68 = v4.depth_func; - v69 = v5.depth_func; - v72 = v4.depth_mask; - v73 = v5.depth_mask; - v76 = v4.cull_face; - v77 = v5.cull_face; - v78 = v4.frontFace; - v79 = v5.frontFace; - v80 = v4.lineWidth; - v81 = v5.lineWidth; - v86 = v4.stencil_mask; - v87 = v5.stencil_mask; - v49 = v13.next; - if (v49) { - v1.bindFramebuffer(36160, v49.framebuffer); + // TODO: better way to determine ordinal vs continuous axes, + // so users can use tickvals/ticktext with a continuous axis. + tickvals: extendFlat({}, axesAttrs.tickvals, { + editType: "plot" + }), + ticktext: extendFlat({}, axesAttrs.ticktext, { + editType: "plot" + }), + tickformat: extendFlat({}, axesAttrs.tickformat, { + editType: "plot" + }), + visible: { + valType: "boolean", + dflt: true, + editType: "plot" + }, + range: { + valType: "info_array", + items: [ + { valType: "number", editType: "plot" }, + { valType: "number", editType: "plot" } + ], + editType: "plot" + }, + constraintrange: { + valType: "info_array", + freeLength: true, + dimensions: "1-2", + items: [ + { valType: "any", editType: "plot" }, + { valType: "any", editType: "plot" } + ], + editType: "plot" + }, + multiselect: { + valType: "boolean", + dflt: true, + editType: "plot" + }, + values: { + valType: "data_array", + editType: "calc" + }, + editType: "calc" + }), + line: extendFlat( + { editType: "calc" }, + colorScaleAttrs("line", { + // the default autocolorscale isn't quite usable for parcoords due to context ambiguity around 0 (grey, off-white) + // autocolorscale therefore defaults to false too, to avoid being overridden by the blue-white-red autocolor palette + colorscaleDflt: "Viridis", + autoColorDflt: false, + editTypeOverride: "calc" + }) + ), + unselected: { + line: { + color: { + valType: "color", + dflt: "#7f7f7f", + editType: "plot" + }, + opacity: { + valType: "number", + min: 0, + max: 1, + dflt: "auto", + editType: "plot" + }, + editType: "plot" + }, + editType: "plot" + } + }; + } + }); + + // src/traces/parcoords/constants.js + var require_constants24 = __commonJS({ + "src/traces/parcoords/constants.js"(exports, module) { + "use strict"; + module.exports = { + maxDimensionCount: 60, + // this cannot be increased without WebGL code refactoring + overdrag: 45, + verticalPadding: 2, + // otherwise, horizontal lines on top or bottom are of lower width + tickDistance: 50, + canvasPixelRatio: 1, + blockLineCount: 5e3, + layers: ["contextLineLayer", "focusLineLayer", "pickLineLayer"], + axisTitleOffset: 28, + axisExtentOffset: 10, + bar: { + width: 4, + // Visible width of the filter bar + captureWidth: 10, + // Mouse-sensitive width for interaction (Fitts law) + fillColor: "magenta", + // Color of the filter bar fill + fillOpacity: 1, + // Filter bar fill opacity + snapDuration: 150, + // tween duration in ms for brush snap for ordinal axes + snapRatio: 0.25, + // ratio of bar extension relative to the distance between two adjacent ordinal values + snapClose: 0.01, + // fraction of inter-value distance to snap to the closer one, even if you're not over it + strokeOpacity: 1, + // Filter bar side stroke opacity + strokeWidth: 1, + // Filter bar side stroke width in pixels + handleHeight: 8, + // Height of the filter bar vertical resize areas on top and bottom + handleOpacity: 1, + // Opacity of the filter bar vertical resize areas on top and bottom + handleOverlap: 0 + // A larger than 0 value causes overlaps with the filter bar, represented as pixels + }, + cn: { + axisExtentText: "axis-extent-text", + parcoordsLineLayers: "parcoords-line-layers", + parcoordsLineLayer: "parcoords-lines", + parcoords: "parcoords", + parcoordsControlView: "parcoords-control-view", + yAxis: "y-axis", + axisOverlays: "axis-overlays", + axis: "axis", + axisHeading: "axis-heading", + axisTitle: "axis-title", + axisExtent: "axis-extent", + axisExtentTop: "axis-extent-top", + axisExtentTopText: "axis-extent-top-text", + axisExtentBottom: "axis-extent-bottom", + axisExtentBottomText: "axis-extent-bottom-text", + axisBrush: "axis-brush" + }, + id: { + filterBarPattern: "filter-bar-pattern" + } + }; + } + }); + + // src/lib/gup.js + var require_gup = __commonJS({ + "src/lib/gup.js"(exports, module) { + "use strict"; + var identity2 = require_identity2(); + function wrap(d) { + return [d]; + } + module.exports = { + // The D3 data binding concept and the General Update Pattern promotes the idea of + // traversing into the scenegraph by using the `.data(fun, keyFun)` call. + // The `fun` is most often a `repeat`, ie. the elements beneath a `` element need + // access to the same data, or a `descend`, which fans a scenegraph node into a bunch of + // of elements, e.g. points, lines, rows, requiring an array as input. + // The role of the `keyFun` is to identify what elements are being entered/exited/updated, + // otherwise D3 reverts to using a plain index which would screw up `transition`s. + keyFun: function(d) { + return d.key; + }, + repeat: wrap, + descend: identity2, + // Plotly.js uses a convention of storing the actual contents of the `calcData` as the + // element zero of a container array. These helpers are just used for clarity as a + // newcomer to the codebase may not know what the `[0]` is, and whether there can be further + // elements (not atm). + wrap, + unwrap: function(d) { + return d[0]; + } + }; + } + }); + + // src/traces/parcoords/axisbrush.js + var require_axisbrush = __commonJS({ + "src/traces/parcoords/axisbrush.js"(exports, module) { + "use strict"; + var c = require_constants24(); + var d3 = require_d3(); + var keyFun = require_gup().keyFun; + var repeat = require_gup().repeat; + var sortAsc = require_lib().sorterAsc; + var strTranslate = require_lib().strTranslate; + var snapRatio = c.bar.snapRatio; + function snapOvershoot(v, vAdjacent) { + return v * (1 - snapRatio) + vAdjacent * snapRatio; + } + var snapClose = c.bar.snapClose; + function closeToCovering(v, vAdjacent) { + return v * (1 - snapClose) + vAdjacent * snapClose; + } + function ordinalScaleSnap(isHigh, a, v, existingRanges) { + if (overlappingExisting(v, existingRanges)) return v; + var dir = isHigh ? -1 : 1; + var first = 0; + var last = a.length - 1; + if (dir < 0) { + var tmp = first; + first = last; + last = tmp; + } + var aHere = a[first]; + var aPrev = aHere; + for (var i = first; dir * i < dir * last; i += dir) { + var nextI = i + dir; + var aNext = a[nextI]; + if (dir * v < dir * closeToCovering(aHere, aNext)) return snapOvershoot(aHere, aPrev); + if (dir * v < dir * aNext || nextI === last) return snapOvershoot(aNext, aHere); + aPrev = aHere; + aHere = aNext; + } + } + function overlappingExisting(v, existingRanges) { + for (var i = 0; i < existingRanges.length; i++) { + if (v >= existingRanges[i][0] && v <= existingRanges[i][1]) return true; + } + return false; + } + function barHorizontalSetup(selection) { + selection.attr("x", -c.bar.captureWidth / 2).attr("width", c.bar.captureWidth); + } + function backgroundBarHorizontalSetup(selection) { + selection.attr("visibility", "visible").style("visibility", "visible").attr("fill", "yellow").attr("opacity", 0); + } + function setHighlight(d) { + if (!d.brush.filterSpecified) { + return "0," + d.height; + } + var pixelRanges = unitToPx(d.brush.filter.getConsolidated(), d.height); + var dashArray = [0]; + var p, sectionHeight, iNext; + var currentGap = pixelRanges.length ? pixelRanges[0][0] : null; + for (var i = 0; i < pixelRanges.length; i++) { + p = pixelRanges[i]; + sectionHeight = p[1] - p[0]; + dashArray.push(currentGap); + dashArray.push(sectionHeight); + iNext = i + 1; + if (iNext < pixelRanges.length) { + currentGap = pixelRanges[iNext][0] - p[1]; + } + } + dashArray.push(d.height); + return dashArray; + } + function unitToPx(unitRanges, height) { + return unitRanges.map(function(pr) { + return pr.map(function(v) { + return Math.max(0, v * height); + }).sort(sortAsc); + }); + } + function getRegion(fPix, y) { + var pad = c.bar.handleHeight; + if (y > fPix[1] + pad || y < fPix[0] - pad) return; + if (y >= 0.9 * fPix[1] + 0.1 * fPix[0]) return "n"; + if (y <= 0.9 * fPix[0] + 0.1 * fPix[1]) return "s"; + return "ns"; + } + function clearCursor() { + d3.select(document.body).style("cursor", null); + } + function styleHighlight(selection) { + selection.attr("stroke-dasharray", setHighlight); + } + function renderHighlight(root, tweenCallback) { + var bar = d3.select(root).selectAll(".highlight, .highlight-shadow"); + var barToStyle = tweenCallback ? bar.transition().duration(c.bar.snapDuration).each("end", tweenCallback) : bar; + styleHighlight(barToStyle); + } + function getInterval(d, y) { + var b = d.brush; + var active = b.filterSpecified; + var closestInterval = NaN; + var out = {}; + var i; + if (active) { + var height = d.height; + var intervals = b.filter.getConsolidated(); + var pixIntervals = unitToPx(intervals, height); + var hoveredInterval = NaN; + var previousInterval = NaN; + var nextInterval = NaN; + for (i = 0; i <= pixIntervals.length; i++) { + var p = pixIntervals[i]; + if (p && p[0] <= y && y <= p[1]) { + hoveredInterval = i; + break; } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v49; - v50 = v10; - v51 = 0; - for (var i = 0; i < g52; ++i) { - v51 = v50[i]; - if (v51.buffer) { - v1.enableVertexAttribArray(i); - v1.bindBuffer(34962, v51.buffer.buffer); - v1.vertexAttribPointer(i, v51.size, v51.type, v51.normalized, v51.stride, v51.offset); - } else { - v1.disableVertexAttribArray(i); - v1.vertexAttrib4f(i, v51.x, v51.y, v51.z, v51.w); - v51.buffer = null; + previousInterval = i ? i - 1 : NaN; + if (p && p[0] > y) { + nextInterval = i; + break; } } - v11.currentVAO = null; - v11.setVAO(v11.targetVAO); - if (v53) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v53; - if (v54) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = v54; - if (v55) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v55; - if (v56) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v56; - if (v57) { - v1.enable(32823); + } + closestInterval = hoveredInterval; + if (isNaN(closestInterval)) { + if (isNaN(previousInterval) || isNaN(nextInterval)) { + closestInterval = isNaN(previousInterval) ? nextInterval : previousInterval; } else { - v1.disable(32823); + closestInterval = y - pixIntervals[previousInterval][1] < pixIntervals[nextInterval][0] - y ? previousInterval : nextInterval; } - v5.polygonOffset_enable = v57; - if (v58) { - v1.enable(32926); - } else { - v1.disable(32926); + } + if (!isNaN(closestInterval)) { + var fPix = pixIntervals[closestInterval]; + var region = getRegion(fPix, y); + if (region) { + out.interval = intervals[closestInterval]; + out.intervalPix = fPix; + out.region = region; } - v5.sample_alpha = v58; - if (v59) { - v1.enable(32928); - } else { - v1.disable(32928); + } + } + if (d.ordinal && !out.region) { + var a = d.unitTickvals; + var unitLocation = d.unitToPaddedPx.invert(y); + for (i = 0; i < a.length; i++) { + var rangei = [ + a[Math.max(i - 1, 0)] * 0.25 + a[i] * 0.75, + a[Math.min(i + 1, a.length - 1)] * 0.25 + a[i] * 0.75 + ]; + if (unitLocation >= rangei[0] && unitLocation <= rangei[1]) { + out.clickableOrdinalRange = rangei; + break; } - v5.sample_enable = v59; - if (v60) { - v1.enable(2960); + } + } + return out; + } + function dragstart(lThis, d) { + d3.event.sourceEvent.stopPropagation(); + var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding; + var unitLocation = d.unitToPaddedPx.invert(y); + var b = d.brush; + var interval = getInterval(d, y); + var unitRange = interval.interval; + var s = b.svgBrush; + s.wasDragged = false; + s.grabbingBar = interval.region === "ns"; + if (s.grabbingBar) { + var pixelRange = unitRange.map(d.unitToPaddedPx); + s.grabPoint = y - pixelRange[0] - c.verticalPadding; + s.barLength = pixelRange[1] - pixelRange[0]; + } + s.clickableOrdinalRange = interval.clickableOrdinalRange; + s.stayingIntervals = d.multiselect && b.filterSpecified ? b.filter.getConsolidated() : []; + if (unitRange) { + s.stayingIntervals = s.stayingIntervals.filter(function(int2) { + return int2[0] !== unitRange[0] && int2[1] !== unitRange[1]; + }); + } + s.startExtent = interval.region ? unitRange[interval.region === "s" ? 1 : 0] : unitLocation; + d.parent.inBrushDrag = true; + s.brushStartCallback(); + } + function drag(lThis, d) { + d3.event.sourceEvent.stopPropagation(); + var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding; + var s = d.brush.svgBrush; + s.wasDragged = true; + s._dragging = true; + if (s.grabbingBar) { + s.newExtent = [y - s.grabPoint, y + s.barLength - s.grabPoint].map(d.unitToPaddedPx.invert); + } else { + s.newExtent = [s.startExtent, d.unitToPaddedPx.invert(y)].sort(sortAsc); + } + d.brush.filterSpecified = true; + s.extent = s.stayingIntervals.concat([s.newExtent]); + s.brushCallback(d); + renderHighlight(lThis.parentNode); + } + function dragend(lThis, d) { + var brush = d.brush; + var filter = brush.filter; + var s = brush.svgBrush; + if (!s._dragging) { + mousemove(lThis, d); + drag(lThis, d); + d.brush.svgBrush.wasDragged = false; + } + s._dragging = false; + var e = d3.event; + e.sourceEvent.stopPropagation(); + var grabbingBar = s.grabbingBar; + s.grabbingBar = false; + s.grabLocation = void 0; + d.parent.inBrushDrag = false; + clearCursor(); + if (!s.wasDragged) { + s.wasDragged = void 0; + if (s.clickableOrdinalRange) { + if (brush.filterSpecified && d.multiselect) { + s.extent.push(s.clickableOrdinalRange); } else { - v1.disable(2960); + s.extent = [s.clickableOrdinalRange]; + brush.filterSpecified = true; } - v5.stencil_enable = v60; - if (v61) { - v1.enable(3089); - } else { - v1.disable(3089); + } else if (grabbingBar) { + s.extent = s.stayingIntervals; + if (s.extent.length === 0) { + brushClear(brush); } - v5.scissor_enable = v61; - v1.blendColor(v62[0], v62[1], v62[2], v62[3]); - v63[0] = v62[0]; - v63[1] = v62[1]; - v63[2] = v62[2]; - v63[3] = v62[3]; - v1.blendEquationSeparate(v64[0], v64[1]); - v65[0] = v64[0]; - v65[1] = v64[1]; - v1.blendFuncSeparate(v66[0], v66[1], v66[2], v66[3]); - v67[0] = v66[0]; - v67[1] = v66[1]; - v67[2] = v66[2]; - v67[3] = v66[3]; - v1.depthFunc(v68); - v5.depth_func = v68; - v1.depthRange(v70[0], v70[1]); - v71[0] = v70[0]; - v71[1] = v70[1]; - v1.depthMask(v72); - v5.depth_mask = v72; - v1.colorMask(v74[0], v74[1], v74[2], v74[3]); - v75[0] = v74[0]; - v75[1] = v74[1]; - v75[2] = v74[2]; - v75[3] = v74[3]; - v1.cullFace(v76); - v5.cull_face = v76; - v1.frontFace(v78); - v5.frontFace = v78; - v1.lineWidth(v80); - v5.lineWidth = v80; - v1.polygonOffset(v82[0], v82[1]); - v83[0] = v82[0]; - v83[1] = v82[1]; - v1.sampleCoverage(v84[0], v84[1]); - v85[0] = v84[0]; - v85[1] = v84[1]; - v1.stencilMask(v86); - v5.stencil_mask = v86; - v1.stencilFunc(v88[0], v88[1], v88[2]); - v89[0] = v88[0]; - v89[1] = v88[1]; - v89[2] = v88[2]; - v1.stencilOpSeparate(v90[0], v90[1], v90[2], v90[3]); - v91[0] = v90[0]; - v91[1] = v90[1]; - v91[2] = v90[2]; - v91[3] = v90[3]; - v1.stencilOpSeparate(v92[0], v92[1], v92[2], v92[3]); - v93[0] = v92[0]; - v93[1] = v92[1]; - v93[2] = v92[2]; - v93[3] = v92[3]; - v1.scissor(v94[0], v94[1], v94[2], v94[3]); - v95[0] = v94[0]; - v95[1] = v94[1]; - v95[2] = v94[2]; - v95[3] = v94[3]; - v1.viewport(v96[0], v96[1], v96[2], v96[3]); - v97[0] = v96[0]; - v97[1] = v96[1]; - v97[2] = v96[2]; - v97[3] = v96[3]; + } else { + brushClear(brush); } + s.brushCallback(d); + renderHighlight(lThis.parentNode); + s.brushEndCallback(brush.filterSpecified ? filter.getConsolidated() : []); + return; + } + var mergeIntervals = function() { + filter.set(filter.getConsolidated()); }; - }; - } - }); - - // src/generated/regl-codegen/30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0 - var require_f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0 = __commonJS({ - "src/generated/regl-codegen/30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0"(exports, module) { - module.exports = function anonymous(g0, g48, g114, g124, g126, g132, g134, g194) { - "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v111, v191; - v1 = g0.gl; - v2 = g0.context; - v3 = g0.strings; - v4 = g0.next; - v5 = g0.current; - v6 = g0.draw; - v7 = g0.elements; - v8 = g0.buffer; - v9 = g0.shader; - v10 = g0.attributes; - v11 = g0.vao; - v12 = g0.uniforms; - v13 = g0.framebuffer; - v14 = g0.extensions; - v15 = g0.timer; - v16 = g0.isBufferArgs; - v17 = v4.blend_color; - v18 = v5.blend_color; - v19 = v4.blend_equation; - v20 = v5.blend_equation; - v21 = v4.blend_func; - v22 = v5.blend_func; - v23 = v4.depth_range; - v24 = v5.depth_range; - v25 = v4.colorMask; - v26 = v5.colorMask; - v27 = v4.polygonOffset_offset; - v28 = v5.polygonOffset_offset; - v29 = v4.sample_coverage; - v30 = v5.sample_coverage; - v31 = v4.stencil_func; - v32 = v5.stencil_func; - v33 = v4.stencil_opFront; - v34 = v5.stencil_opFront; - v35 = v4.stencil_opBack; - v36 = v5.stencil_opBack; - v37 = v4.scissor_box; - v38 = v5.scissor_box; - v39 = v4.viewport; - v40 = v5.viewport; - v41 = { - "points": 0, - "point": 0, - "lines": 1, - "line": 1, - "triangles": 4, - "triangle": 4, - "line loop": 2, - "line strip": 3, - "triangle strip": 5, - "triangle fan": 6 - }; - v42 = { - "never": 512, - "less": 513, - "<": 513, - "equal": 514, - "=": 514, - "==": 514, - "===": 514, - "lequal": 515, - "<=": 515, - "greater": 516, - ">": 516, - "notequal": 517, - "!=": 517, - "!==": 517, - "gequal": 518, - ">=": 518, - "always": 519 - }; - v43 = { - "0": 0, - "1": 1, - "zero": 0, - "one": 1, - "src color": 768, - "one minus src color": 769, - "src alpha": 770, - "one minus src alpha": 771, - "dst color": 774, - "one minus dst color": 775, - "dst alpha": 772, - "one minus dst alpha": 773, - "constant color": 32769, - "one minus constant color": 32770, - "constant alpha": 32771, - "one minus constant alpha": 32772, - "src alpha saturate": 776 - }; - v44 = { - "add": 32774, - "subtract": 32778, - "reverse subtract": 32779 - }; - v45 = { - "0": 0, - "zero": 0, - "keep": 7680, - "replace": 7681, - "increment": 7682, - "decrement": 7683, - "increment wrap": 34055, - "decrement wrap": 34056, - "invert": 5386 - }; - v46 = { - "int8": 5120, - "int16": 5122, - "int32": 5124, - "uint8": 5121, - "uint16": 5123, - "uint32": 5125, - "float": 5126, - "float32": 5126 - }; - v47 = { - "cw": 2304, - "ccw": 2305 + if (d.ordinal) { + var a = d.unitTickvals; + if (a[a.length - 1] < a[0]) a.reverse(); + s.newExtent = [ + ordinalScaleSnap(0, a, s.newExtent[0], s.stayingIntervals), + ordinalScaleSnap(1, a, s.newExtent[1], s.stayingIntervals) + ]; + var hasNewExtent = s.newExtent[1] > s.newExtent[0]; + s.extent = s.stayingIntervals.concat(hasNewExtent ? [s.newExtent] : []); + if (!s.extent.length) { + brushClear(brush); + } + s.brushCallback(d); + if (hasNewExtent) { + renderHighlight(lThis.parentNode, mergeIntervals); + } else { + mergeIntervals(); + renderHighlight(lThis.parentNode); + } + } else { + mergeIntervals(); + } + s.brushEndCallback(brush.filterSpecified ? filter.getConsolidated() : []); + } + function mousemove(lThis, d) { + var y = d.height - d3.mouse(lThis)[1] - 2 * c.verticalPadding; + var interval = getInterval(d, y); + var cursor = "crosshair"; + if (interval.clickableOrdinalRange) cursor = "pointer"; + else if (interval.region) cursor = interval.region + "-resize"; + d3.select(document.body).style("cursor", cursor); + } + function attachDragBehavior(selection) { + selection.on("mousemove", function(d) { + d3.event.preventDefault(); + if (!d.parent.inBrushDrag) mousemove(this, d); + }).on("mouseleave", function(d) { + if (!d.parent.inBrushDrag) clearCursor(); + }).call( + d3.behavior.drag().on("dragstart", function(d) { + dragstart(this, d); + }).on("drag", function(d) { + drag(this, d); + }).on("dragend", function(d) { + dragend(this, d); + }) + ); + } + function startAsc(a, b) { + return a[0] - b[0]; + } + function renderAxisBrush(axisBrush, paperColor, gd) { + var isStatic = gd._context.staticPlot; + var background = axisBrush.selectAll(".background").data(repeat); + background.enter().append("rect").classed("background", true).call(barHorizontalSetup).call(backgroundBarHorizontalSetup).style("pointer-events", isStatic ? "none" : "auto").attr("transform", strTranslate(0, c.verticalPadding)); + background.call(attachDragBehavior).attr("height", function(d) { + return d.height - c.verticalPadding; + }); + var highlightShadow = axisBrush.selectAll(".highlight-shadow").data(repeat); + highlightShadow.enter().append("line").classed("highlight-shadow", true).attr("x", -c.bar.width / 2).attr("stroke-width", c.bar.width + c.bar.strokeWidth).attr("stroke", paperColor).attr("opacity", c.bar.strokeOpacity).attr("stroke-linecap", "butt"); + highlightShadow.attr("y1", function(d) { + return d.height; + }).call(styleHighlight); + var highlight = axisBrush.selectAll(".highlight").data(repeat); + highlight.enter().append("line").classed("highlight", true).attr("x", -c.bar.width / 2).attr("stroke-width", c.bar.width - c.bar.strokeWidth).attr("stroke", c.bar.fillColor).attr("opacity", c.bar.fillOpacity).attr("stroke-linecap", "butt"); + highlight.attr("y1", function(d) { + return d.height; + }).call(styleHighlight); + } + function ensureAxisBrush(axisOverlays, paperColor, gd) { + var axisBrush = axisOverlays.selectAll("." + c.cn.axisBrush).data(repeat, keyFun); + axisBrush.enter().append("g").classed(c.cn.axisBrush, true); + renderAxisBrush(axisBrush, paperColor, gd); + } + function getBrushExtent(brush) { + return brush.svgBrush.extent.map(function(e) { + return e.slice(); + }); + } + function brushClear(brush) { + brush.filterSpecified = false; + brush.svgBrush.extent = [[-Infinity, Infinity]]; + } + function axisBrushMoved(callback) { + return function axisBrushMoved2(dimension) { + var brush = dimension.brush; + var extent = getBrushExtent(brush); + var newExtent = extent.slice(); + brush.filter.set(newExtent); + callback(); }; - v111 = {}; - v191 = {}; + } + function dedupeRealRanges(intervals) { + var queue = intervals.slice(); + var result = []; + var currentInterval; + var current = queue.shift(); + while (current) { + currentInterval = current.slice(); + while ((current = queue.shift()) && current[0] <= /* right-open interval would need `<` */ + currentInterval[1]) { + currentInterval[1] = Math.max(currentInterval[1], current[1]); + } + result.push(currentInterval); + } + if (result.length === 1 && result[0][0] > result[0][1]) { + result = []; + } + return result; + } + function makeFilter() { + var filter = []; + var consolidated; + var bounds; return { - "draw": function(a0) { - var v49, v50, v51, v52, v53, v100, v101, v102, v103, v104, v105, v106, v107, v108, v109, v110, v112, v113; - v49 = a0["framebuffer"]; - v50 = v13.getFramebuffer(v49); - v51 = v13.next; - v13.next = v50; - v52 = v2.framebufferWidth; - v2.framebufferWidth = v50 ? v50.width : v2.drawingBufferWidth; - v53 = v2.framebufferHeight; - v2.framebufferHeight = v50 ? v50.height : v2.drawingBufferHeight; - if (v50 !== v13.cur) { - if (v50) { - v1.bindFramebuffer(36160, v50.framebuffer); - } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v50; - } - if (v5.dirty) { - var v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97, v98, v99; - v54 = v4.dither; - if (v54 !== v5.dither) { - if (v54) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v54; - } - v55 = v4.blend_enable; - if (v55 !== v5.blend_enable) { - if (v55) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = v55; - } - v56 = v17[0]; - v57 = v17[1]; - v58 = v17[2]; - v59 = v17[3]; - if (v56 !== v18[0] || v57 !== v18[1] || v58 !== v18[2] || v59 !== v18[3]) { - v1.blendColor(v56, v57, v58, v59); - v18[0] = v56; - v18[1] = v57; - v18[2] = v58; - v18[3] = v59; - } - v60 = v19[0]; - v61 = v19[1]; - if (v60 !== v20[0] || v61 !== v20[1]) { - v1.blendEquationSeparate(v60, v61); - v20[0] = v60; - v20[1] = v61; - } - v62 = v21[0]; - v63 = v21[1]; - v64 = v21[2]; - v65 = v21[3]; - if (v62 !== v22[0] || v63 !== v22[1] || v64 !== v22[2] || v65 !== v22[3]) { - v1.blendFuncSeparate(v62, v63, v64, v65); - v22[0] = v62; - v22[1] = v63; - v22[2] = v64; - v22[3] = v65; - } - v66 = v4.depth_enable; - if (v66 !== v5.depth_enable) { - if (v66) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v66; - } - v67 = v4.depth_func; - if (v67 !== v5.depth_func) { - v1.depthFunc(v67); - v5.depth_func = v67; - } - v68 = v23[0]; - v69 = v23[1]; - if (v68 !== v24[0] || v69 !== v24[1]) { - v1.depthRange(v68, v69); - v24[0] = v68; - v24[1] = v69; - } - v70 = v4.depth_mask; - if (v70 !== v5.depth_mask) { - v1.depthMask(v70); - v5.depth_mask = v70; - } - v71 = v25[0]; - v72 = v25[1]; - v73 = v25[2]; - v74 = v25[3]; - if (v71 !== v26[0] || v72 !== v26[1] || v73 !== v26[2] || v74 !== v26[3]) { - v1.colorMask(v71, v72, v73, v74); - v26[0] = v71; - v26[1] = v72; - v26[2] = v73; - v26[3] = v74; - } - v75 = v4.cull_enable; - if (v75 !== v5.cull_enable) { - if (v75) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v75; - } - v76 = v4.cull_face; - if (v76 !== v5.cull_face) { - v1.cullFace(v76); - v5.cull_face = v76; - } - v77 = v4.frontFace; - if (v77 !== v5.frontFace) { - v1.frontFace(v77); - v5.frontFace = v77; - } - v78 = v4.lineWidth; - if (v78 !== v5.lineWidth) { - v1.lineWidth(v78); - v5.lineWidth = v78; - } - v79 = v4.polygonOffset_enable; - if (v79 !== v5.polygonOffset_enable) { - if (v79) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v79; - } - v80 = v27[0]; - v81 = v27[1]; - if (v80 !== v28[0] || v81 !== v28[1]) { - v1.polygonOffset(v80, v81); - v28[0] = v80; - v28[1] = v81; - } - v82 = v4.sample_alpha; - if (v82 !== v5.sample_alpha) { - if (v82) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v82; - } - v83 = v4.sample_enable; - if (v83 !== v5.sample_enable) { - if (v83) { - v1.enable(32928); - } else { - v1.disable(32928); - } - v5.sample_enable = v83; - } - v84 = v29[0]; - v85 = v29[1]; - if (v84 !== v30[0] || v85 !== v30[1]) { - v1.sampleCoverage(v84, v85); - v30[0] = v84; - v30[1] = v85; - } - v86 = v4.stencil_enable; - if (v86 !== v5.stencil_enable) { - if (v86) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = v86; - } - v87 = v4.stencil_mask; - if (v87 !== v5.stencil_mask) { - v1.stencilMask(v87); - v5.stencil_mask = v87; - } - v88 = v31[0]; - v89 = v31[1]; - v90 = v31[2]; - if (v88 !== v32[0] || v89 !== v32[1] || v90 !== v32[2]) { - v1.stencilFunc(v88, v89, v90); - v32[0] = v88; - v32[1] = v89; - v32[2] = v90; - } - v91 = v33[0]; - v92 = v33[1]; - v93 = v33[2]; - v94 = v33[3]; - if (v91 !== v34[0] || v92 !== v34[1] || v93 !== v34[2] || v94 !== v34[3]) { - v1.stencilOpSeparate(v91, v92, v93, v94); - v34[0] = v91; - v34[1] = v92; - v34[2] = v93; - v34[3] = v94; - } - v95 = v35[0]; - v96 = v35[1]; - v97 = v35[2]; - v98 = v35[3]; - if (v95 !== v36[0] || v96 !== v36[1] || v97 !== v36[2] || v98 !== v36[3]) { - v1.stencilOpSeparate(v95, v96, v97, v98); - v36[0] = v95; - v36[1] = v96; - v36[2] = v97; - v36[3] = v98; - } - v99 = v4.scissor_enable; - if (v99 !== v5.scissor_enable) { - if (v99) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v99; - } - } - v100 = v2.framebufferWidth; - v101 = v2.framebufferHeight; - v102 = v2.viewportWidth; - v2.viewportWidth = v100; - v103 = v2.viewportHeight; - v2.viewportHeight = v101; - v1.viewport(0, 0, v100, v101); - v40[0] = 0; - v40[1] = 0; - v40[2] = v100; - v40[3] = v101; - v104 = v2.framebufferWidth; - v105 = v2.framebufferHeight; - v1.scissor(0, 0, v104, v105); - v38[0] = 0; - v38[1] = 0; - v38[2] = v104; - v38[3] = v105; - v106 = v5.profile; - if (v106) { - v107 = performance.now(); - g48.count++; - } - v108 = v9.frag; - v109 = v9.vert; - v110 = v9.program(v109, v108); - v1.useProgram(v110.program); - v11.setVAO(null); - v112 = v110.id; - v113 = v111[v112]; - if (v113) { - v113.call(this, a0); - } else { - v113 = v111[v112] = g114(v110); - v113.call(this, a0); - } - v5.dirty = true; - v11.setVAO(null); - v13.next = v51; - v2.framebufferWidth = v52; - v2.framebufferHeight = v53; - v2.viewportWidth = v102; - v2.viewportHeight = v103; - if (v106) { - g48.cpuTime += performance.now() - v107; + set: function(a) { + filter = a.map(function(d) { + return d.slice().sort(sortAsc); + }).sort(startAsc); + if (filter.length === 1 && filter[0][0] === -Infinity && filter[0][1] === Infinity) { + filter = [[0, -1]]; } + consolidated = dedupeRealRanges(filter); + bounds = filter.reduce(function(p, n) { + return [Math.min(p[0], n[0]), Math.max(p[1], n[1])]; + }, [Infinity, -Infinity]); }, - "scope": function(a0, a1, a2) { - var v115, v116, v117, v118, v119, v120, v121, v122, v123, v125, v127, v128, v129, v130, v131, v133, v135, v136, v137, v138, v139; - v115 = a0["framebuffer"]; - v116 = v13.getFramebuffer(v115); - v117 = v13.next; - v13.next = v116; - v118 = v2.framebufferWidth; - v2.framebufferWidth = v116 ? v116.width : v2.drawingBufferWidth; - v119 = v2.framebufferHeight; - v2.framebufferHeight = v116 ? v116.height : v2.drawingBufferHeight; - v120 = v2.framebufferWidth; - v121 = v2.framebufferHeight; - v122 = v2.viewportWidth; - v2.viewportWidth = v120; - v123 = v2.viewportHeight; - v2.viewportHeight = v121; - v125 = v39[0]; - v39[0] = g124; - v127 = v39[1]; - v39[1] = g126; - v128 = v39[2]; - v39[2] = v120; - v129 = v39[3]; - v39[3] = v121; - v130 = v2.framebufferWidth; - v131 = v2.framebufferHeight; - v133 = v37[0]; - v37[0] = g132; - v135 = v37[1]; - v37[1] = g134; - v136 = v37[2]; - v37[2] = v130; - v137 = v37[3]; - v37[3] = v131; - v138 = v5.profile; - if (v138) { - v139 = performance.now(); - g48.count++; - } - v5.dirty = true; - a1(v2, a0, a2); - v13.next = v117; - v2.framebufferWidth = v118; - v2.framebufferHeight = v119; - v2.viewportWidth = v122; - v2.viewportHeight = v123; - v39[0] = v125; - v39[1] = v127; - v39[2] = v128; - v39[3] = v129; - v37[0] = v133; - v37[1] = v135; - v37[2] = v136; - v37[3] = v137; - if (v138) { - g48.cpuTime += performance.now() - v139; - } - v5.dirty = true; + get: function() { + return filter.slice(); }, - "batch": function(a0, a1) { - var v186, v187, v188, v189, v190, v192, v193; - if (v5.dirty) { - var v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v177, v178, v179, v180, v181, v182, v183, v184, v185; - v140 = v4.dither; - if (v140 !== v5.dither) { - if (v140) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v140; - } - v141 = v4.blend_enable; - if (v141 !== v5.blend_enable) { - if (v141) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = v141; - } - v142 = v17[0]; - v143 = v17[1]; - v144 = v17[2]; - v145 = v17[3]; - if (v142 !== v18[0] || v143 !== v18[1] || v144 !== v18[2] || v145 !== v18[3]) { - v1.blendColor(v142, v143, v144, v145); - v18[0] = v142; - v18[1] = v143; - v18[2] = v144; - v18[3] = v145; - } - v146 = v19[0]; - v147 = v19[1]; - if (v146 !== v20[0] || v147 !== v20[1]) { - v1.blendEquationSeparate(v146, v147); - v20[0] = v146; - v20[1] = v147; - } - v148 = v21[0]; - v149 = v21[1]; - v150 = v21[2]; - v151 = v21[3]; - if (v148 !== v22[0] || v149 !== v22[1] || v150 !== v22[2] || v151 !== v22[3]) { - v1.blendFuncSeparate(v148, v149, v150, v151); - v22[0] = v148; - v22[1] = v149; - v22[2] = v150; - v22[3] = v151; - } - v152 = v4.depth_enable; - if (v152 !== v5.depth_enable) { - if (v152) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v152; - } - v153 = v4.depth_func; - if (v153 !== v5.depth_func) { - v1.depthFunc(v153); - v5.depth_func = v153; - } - v154 = v23[0]; - v155 = v23[1]; - if (v154 !== v24[0] || v155 !== v24[1]) { - v1.depthRange(v154, v155); - v24[0] = v154; - v24[1] = v155; - } - v156 = v4.depth_mask; - if (v156 !== v5.depth_mask) { - v1.depthMask(v156); - v5.depth_mask = v156; - } - v157 = v25[0]; - v158 = v25[1]; - v159 = v25[2]; - v160 = v25[3]; - if (v157 !== v26[0] || v158 !== v26[1] || v159 !== v26[2] || v160 !== v26[3]) { - v1.colorMask(v157, v158, v159, v160); - v26[0] = v157; - v26[1] = v158; - v26[2] = v159; - v26[3] = v160; - } - v161 = v4.cull_enable; - if (v161 !== v5.cull_enable) { - if (v161) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v161; - } - v162 = v4.cull_face; - if (v162 !== v5.cull_face) { - v1.cullFace(v162); - v5.cull_face = v162; - } - v163 = v4.frontFace; - if (v163 !== v5.frontFace) { - v1.frontFace(v163); - v5.frontFace = v163; - } - v164 = v4.lineWidth; - if (v164 !== v5.lineWidth) { - v1.lineWidth(v164); - v5.lineWidth = v164; - } - v165 = v4.polygonOffset_enable; - if (v165 !== v5.polygonOffset_enable) { - if (v165) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v165; - } - v166 = v27[0]; - v167 = v27[1]; - if (v166 !== v28[0] || v167 !== v28[1]) { - v1.polygonOffset(v166, v167); - v28[0] = v166; - v28[1] = v167; - } - v168 = v4.sample_alpha; - if (v168 !== v5.sample_alpha) { - if (v168) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v168; - } - v169 = v4.sample_enable; - if (v169 !== v5.sample_enable) { - if (v169) { - v1.enable(32928); - } else { - v1.disable(32928); - } - v5.sample_enable = v169; - } - v170 = v29[0]; - v171 = v29[1]; - if (v170 !== v30[0] || v171 !== v30[1]) { - v1.sampleCoverage(v170, v171); - v30[0] = v170; - v30[1] = v171; - } - v172 = v4.stencil_enable; - if (v172 !== v5.stencil_enable) { - if (v172) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = v172; - } - v173 = v4.stencil_mask; - if (v173 !== v5.stencil_mask) { - v1.stencilMask(v173); - v5.stencil_mask = v173; - } - v174 = v31[0]; - v175 = v31[1]; - v176 = v31[2]; - if (v174 !== v32[0] || v175 !== v32[1] || v176 !== v32[2]) { - v1.stencilFunc(v174, v175, v176); - v32[0] = v174; - v32[1] = v175; - v32[2] = v176; - } - v177 = v33[0]; - v178 = v33[1]; - v179 = v33[2]; - v180 = v33[3]; - if (v177 !== v34[0] || v178 !== v34[1] || v179 !== v34[2] || v180 !== v34[3]) { - v1.stencilOpSeparate(v177, v178, v179, v180); - v34[0] = v177; - v34[1] = v178; - v34[2] = v179; - v34[3] = v180; - } - v181 = v35[0]; - v182 = v35[1]; - v183 = v35[2]; - v184 = v35[3]; - if (v181 !== v36[0] || v182 !== v36[1] || v183 !== v36[2] || v184 !== v36[3]) { - v1.stencilOpSeparate(v181, v182, v183, v184); - v36[0] = v181; - v36[1] = v182; - v36[2] = v183; - v36[3] = v184; - } - v185 = v4.scissor_enable; - if (v185 !== v5.scissor_enable) { - if (v185) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v185; - } - } - v186 = v5.profile; - if (v186) { - v187 = performance.now(); - g48.count += a1; - } - v188 = v9.frag; - v189 = v9.vert; - v190 = v9.program(v189, v188); - v1.useProgram(v190.program); - v11.setVAO(null); - v192 = v190.id; - v193 = v191[v192]; - if (v193) { - v193.call(this, a0, a1); - } else { - v193 = v191[v192] = g194(v190); - v193.call(this, a0, a1); - } - v5.dirty = true; - v11.setVAO(null); - if (v186) { - g48.cpuTime += performance.now() - v187; - } + getConsolidated: function() { + return consolidated; + }, + getBounds: function() { + return bounds; + } + }; + } + function makeBrush(state, rangeSpecified, initialRange, brushStartCallback, brushCallback, brushEndCallback) { + var filter = makeFilter(); + filter.set(initialRange); + return { + filter, + filterSpecified: rangeSpecified, + // there's a difference between not filtering and filtering a non-proper subset + svgBrush: { + extent: [], + // this is where the svgBrush writes contents into + brushStartCallback, + brushCallback: axisBrushMoved(brushCallback), + brushEndCallback } }; + } + function cleanRanges(ranges, dimension) { + if (Array.isArray(ranges[0])) { + ranges = ranges.map(function(ri) { + return ri.sort(sortAsc); + }); + if (!dimension.multiselect) ranges = [ranges[0]]; + else ranges = dedupeRealRanges(ranges.sort(startAsc)); + } else ranges = [ranges.sort(sortAsc)]; + if (dimension.tickvals) { + var sortedTickVals = dimension.tickvals.slice().sort(sortAsc); + ranges = ranges.map(function(ri) { + var rSnapped = [ + ordinalScaleSnap(0, sortedTickVals, ri[0], []), + ordinalScaleSnap(1, sortedTickVals, ri[1], []) + ]; + if (rSnapped[1] > rSnapped[0]) return rSnapped; + }).filter(function(ri) { + return ri; + }); + if (!ranges.length) return; + } + return ranges.length > 1 ? ranges : ranges[0]; + } + module.exports = { + makeBrush, + ensureAxisBrush, + cleanRanges }; } }); - // src/generated/regl-codegen/a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470 - var require_a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470 = __commonJS({ - "src/generated/regl-codegen/a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470"(exports, module) { - module.exports = function anonymous(g0, g48, g112, g178) { - "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v109, v175; - v1 = g0.gl; - v2 = g0.context; - v3 = g0.strings; - v4 = g0.next; - v5 = g0.current; - v6 = g0.draw; - v7 = g0.elements; - v8 = g0.buffer; - v9 = g0.shader; - v10 = g0.attributes; - v11 = g0.vao; - v12 = g0.uniforms; - v13 = g0.framebuffer; - v14 = g0.extensions; - v15 = g0.timer; - v16 = g0.isBufferArgs; - v17 = v4.blend_color; - v18 = v5.blend_color; - v19 = v4.blend_equation; - v20 = v5.blend_equation; - v21 = v4.blend_func; - v22 = v5.blend_func; - v23 = v4.depth_range; - v24 = v5.depth_range; - v25 = v4.colorMask; - v26 = v5.colorMask; - v27 = v4.polygonOffset_offset; - v28 = v5.polygonOffset_offset; - v29 = v4.sample_coverage; - v30 = v5.sample_coverage; - v31 = v4.stencil_func; - v32 = v5.stencil_func; - v33 = v4.stencil_opFront; - v34 = v5.stencil_opFront; - v35 = v4.stencil_opBack; - v36 = v5.stencil_opBack; - v37 = v4.scissor_box; - v38 = v5.scissor_box; - v39 = v4.viewport; - v40 = v5.viewport; - v41 = { - "points": 0, - "point": 0, - "lines": 1, - "line": 1, - "triangles": 4, - "triangle": 4, - "line loop": 2, - "line strip": 3, - "triangle strip": 5, - "triangle fan": 6 - }; - v42 = { - "never": 512, - "less": 513, - "<": 513, - "equal": 514, - "=": 514, - "==": 514, - "===": 514, - "lequal": 515, - "<=": 515, - "greater": 516, - ">": 516, - "notequal": 517, - "!=": 517, - "!==": 517, - "gequal": 518, - ">=": 518, - "always": 519 - }; - v43 = { - "0": 0, - "1": 1, - "zero": 0, - "one": 1, - "src color": 768, - "one minus src color": 769, - "src alpha": 770, - "one minus src alpha": 771, - "dst color": 774, - "one minus dst color": 775, - "dst alpha": 772, - "one minus dst alpha": 773, - "constant color": 32769, - "one minus constant color": 32770, - "constant alpha": 32771, - "one minus constant alpha": 32772, - "src alpha saturate": 776 - }; - v44 = { - "add": 32774, - "subtract": 32778, - "reverse subtract": 32779 - }; - v45 = { - "0": 0, - "zero": 0, - "keep": 7680, - "replace": 7681, - "increment": 7682, - "decrement": 7683, - "increment wrap": 34055, - "decrement wrap": 34056, - "invert": 5386 - }; - v46 = { - "int8": 5120, - "int16": 5122, - "int32": 5124, - "uint8": 5121, - "uint16": 5123, - "uint32": 5125, - "float": 5126, - "float32": 5126 - }; - v47 = { - "cw": 2304, - "ccw": 2305 - }; - v109 = {}; - v175 = {}; - return { - "draw": function(a0) { - var v49, v104, v105, v106, v107, v108, v110, v111; - v49 = v13.next; - if (v49 !== v13.cur) { - if (v49) { - v1.bindFramebuffer(36160, v49.framebuffer); - } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v49; - } - if (v5.dirty) { - var v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97, v98, v99, v100, v101, v102, v103; - v50 = v4.dither; - if (v50 !== v5.dither) { - if (v50) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v50; - } - v51 = v4.blend_enable; - if (v51 !== v5.blend_enable) { - if (v51) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = v51; - } - v52 = v17[0]; - v53 = v17[1]; - v54 = v17[2]; - v55 = v17[3]; - if (v52 !== v18[0] || v53 !== v18[1] || v54 !== v18[2] || v55 !== v18[3]) { - v1.blendColor(v52, v53, v54, v55); - v18[0] = v52; - v18[1] = v53; - v18[2] = v54; - v18[3] = v55; - } - v56 = v19[0]; - v57 = v19[1]; - if (v56 !== v20[0] || v57 !== v20[1]) { - v1.blendEquationSeparate(v56, v57); - v20[0] = v56; - v20[1] = v57; - } - v58 = v21[0]; - v59 = v21[1]; - v60 = v21[2]; - v61 = v21[3]; - if (v58 !== v22[0] || v59 !== v22[1] || v60 !== v22[2] || v61 !== v22[3]) { - v1.blendFuncSeparate(v58, v59, v60, v61); - v22[0] = v58; - v22[1] = v59; - v22[2] = v60; - v22[3] = v61; - } - v62 = v4.depth_enable; - if (v62 !== v5.depth_enable) { - if (v62) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = v62; - } - v63 = v4.depth_func; - if (v63 !== v5.depth_func) { - v1.depthFunc(v63); - v5.depth_func = v63; - } - v64 = v23[0]; - v65 = v23[1]; - if (v64 !== v24[0] || v65 !== v24[1]) { - v1.depthRange(v64, v65); - v24[0] = v64; - v24[1] = v65; - } - v66 = v4.depth_mask; - if (v66 !== v5.depth_mask) { - v1.depthMask(v66); - v5.depth_mask = v66; - } - v67 = v25[0]; - v68 = v25[1]; - v69 = v25[2]; - v70 = v25[3]; - if (v67 !== v26[0] || v68 !== v26[1] || v69 !== v26[2] || v70 !== v26[3]) { - v1.colorMask(v67, v68, v69, v70); - v26[0] = v67; - v26[1] = v68; - v26[2] = v69; - v26[3] = v70; - } - v71 = v4.cull_enable; - if (v71 !== v5.cull_enable) { - if (v71) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v71; - } - v72 = v4.cull_face; - if (v72 !== v5.cull_face) { - v1.cullFace(v72); - v5.cull_face = v72; - } - v73 = v4.frontFace; - if (v73 !== v5.frontFace) { - v1.frontFace(v73); - v5.frontFace = v73; - } - v74 = v4.lineWidth; - if (v74 !== v5.lineWidth) { - v1.lineWidth(v74); - v5.lineWidth = v74; - } - v75 = v4.polygonOffset_enable; - if (v75 !== v5.polygonOffset_enable) { - if (v75) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v75; - } - v76 = v27[0]; - v77 = v27[1]; - if (v76 !== v28[0] || v77 !== v28[1]) { - v1.polygonOffset(v76, v77); - v28[0] = v76; - v28[1] = v77; - } - v78 = v4.sample_alpha; - if (v78 !== v5.sample_alpha) { - if (v78) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v78; - } - v79 = v4.sample_enable; - if (v79 !== v5.sample_enable) { - if (v79) { - v1.enable(32928); - } else { - v1.disable(32928); - } - v5.sample_enable = v79; - } - v80 = v29[0]; - v81 = v29[1]; - if (v80 !== v30[0] || v81 !== v30[1]) { - v1.sampleCoverage(v80, v81); - v30[0] = v80; - v30[1] = v81; - } - v82 = v4.stencil_enable; - if (v82 !== v5.stencil_enable) { - if (v82) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = v82; - } - v83 = v4.stencil_mask; - if (v83 !== v5.stencil_mask) { - v1.stencilMask(v83); - v5.stencil_mask = v83; - } - v84 = v31[0]; - v85 = v31[1]; - v86 = v31[2]; - if (v84 !== v32[0] || v85 !== v32[1] || v86 !== v32[2]) { - v1.stencilFunc(v84, v85, v86); - v32[0] = v84; - v32[1] = v85; - v32[2] = v86; - } - v87 = v33[0]; - v88 = v33[1]; - v89 = v33[2]; - v90 = v33[3]; - if (v87 !== v34[0] || v88 !== v34[1] || v89 !== v34[2] || v90 !== v34[3]) { - v1.stencilOpSeparate(v87, v88, v89, v90); - v34[0] = v87; - v34[1] = v88; - v34[2] = v89; - v34[3] = v90; - } - v91 = v35[0]; - v92 = v35[1]; - v93 = v35[2]; - v94 = v35[3]; - if (v91 !== v36[0] || v92 !== v36[1] || v93 !== v36[2] || v94 !== v36[3]) { - v1.stencilOpSeparate(v91, v92, v93, v94); - v36[0] = v91; - v36[1] = v92; - v36[2] = v93; - v36[3] = v94; - } - v95 = v4.scissor_enable; - if (v95 !== v5.scissor_enable) { - if (v95) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v95; - } - v96 = v37[0]; - v97 = v37[1]; - v98 = v37[2]; - v99 = v37[3]; - if (v96 !== v38[0] || v97 !== v38[1] || v98 !== v38[2] || v99 !== v38[3]) { - v1.scissor(v96, v97, v98, v99); - v38[0] = v96; - v38[1] = v97; - v38[2] = v98; - v38[3] = v99; - } - v100 = v39[0]; - v101 = v39[1]; - v102 = v39[2]; - v103 = v39[3]; - if (v100 !== v40[0] || v101 !== v40[1] || v102 !== v40[2] || v103 !== v40[3]) { - v1.viewport(v100, v101, v102, v103); - v40[0] = v100; - v40[1] = v101; - v40[2] = v102; - v40[3] = v103; + // src/traces/parcoords/defaults.js + var require_defaults48 = __commonJS({ + "src/traces/parcoords/defaults.js"(exports, module) { + "use strict"; + var Lib = require_lib(); + var hasColorscale = require_helpers().hasColorscale; + var colorscaleDefaults = require_defaults2(); + var handleDomainDefaults = require_domain().defaults; + var handleArrayContainerDefaults = require_array_container_defaults(); + var Axes = require_axes(); + var attributes = require_attributes52(); + var axisBrush = require_axisbrush(); + var maxDimensionCount = require_constants24().maxDimensionCount; + var mergeLength = require_merge_length(); + function handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce) { + var lineColor = coerce("line.color", defaultColor); + if (hasColorscale(traceIn, "line") && Lib.isArrayOrTypedArray(lineColor)) { + if (lineColor.length) { + coerce("line.colorscale"); + colorscaleDefaults(traceIn, traceOut, layout, coerce, { prefix: "line.", cLetter: "c" }); + return lineColor.length; + } else { + traceOut.line.color = defaultColor; + } + } + return Infinity; + } + function dimensionDefaults(dimensionIn, dimensionOut, parentOut, opts) { + function coerce(attr, dflt) { + return Lib.coerce(dimensionIn, dimensionOut, attributes.dimensions, attr, dflt); + } + var values = coerce("values"); + var visible = coerce("visible"); + if (!(values && values.length)) { + visible = dimensionOut.visible = false; + } + if (visible) { + coerce("label"); + coerce("tickvals"); + coerce("ticktext"); + coerce("tickformat"); + var range = coerce("range"); + dimensionOut._ax = { + _id: "y", + type: "linear", + showexponent: "all", + exponentformat: "B", + range + }; + Axes.setConvert(dimensionOut._ax, opts.layout); + coerce("multiselect"); + var constraintRange = coerce("constraintrange"); + if (constraintRange) { + dimensionOut.constraintrange = axisBrush.cleanRanges(constraintRange, dimensionOut); + } + } + } + module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout) { + function coerce(attr, dflt) { + return Lib.coerce(traceIn, traceOut, attributes, attr, dflt); + } + var dimensionsIn = traceIn.dimensions; + if (Array.isArray(dimensionsIn) && dimensionsIn.length > maxDimensionCount) { + Lib.log("parcoords traces support up to " + maxDimensionCount + " dimensions at the moment"); + dimensionsIn.splice(maxDimensionCount); + } + var dimensions = handleArrayContainerDefaults(traceIn, traceOut, { + name: "dimensions", + layout, + handleItemDefaults: dimensionDefaults + }); + var len = handleLineDefaults(traceIn, traceOut, defaultColor, layout, coerce); + handleDomainDefaults(traceOut, layout, coerce); + if (!Array.isArray(dimensions) || !dimensions.length) { + traceOut.visible = false; + } + mergeLength(traceOut, dimensions, "values", len); + var fontDflt = Lib.extendFlat({}, layout.font, { + size: Math.round(layout.font.size / 1.2) + }); + Lib.coerceFont(coerce, "labelfont", fontDflt); + Lib.coerceFont(coerce, "tickfont", fontDflt, { autoShadowDflt: true }); + Lib.coerceFont(coerce, "rangefont", fontDflt); + coerce("labelangle"); + coerce("labelside"); + coerce("unselected.line.color"); + coerce("unselected.line.opacity"); + }; + } + }); + + // src/traces/parcoords/calc.js + var require_calc31 = __commonJS({ + "src/traces/parcoords/calc.js"(exports, module) { + "use strict"; + var isArrayOrTypedArray = require_lib().isArrayOrTypedArray; + var Colorscale = require_colorscale(); + var wrap = require_gup().wrap; + module.exports = function calc(gd, trace) { + var lineColor; + var cscale; + if (Colorscale.hasColorscale(trace, "line") && isArrayOrTypedArray(trace.line.color)) { + lineColor = trace.line.color; + cscale = Colorscale.extractOpts(trace.line).colorscale; + Colorscale.calc(gd, trace, { + vals: lineColor, + containerStr: "line", + cLetter: "c" + }); + } else { + lineColor = constHalf(trace._length); + cscale = [[0, trace.line.color], [1, trace.line.color]]; + } + return wrap({ lineColor, cscale }); + }; + function constHalf(len) { + var out = new Array(len); + for (var i = 0; i < len; i++) { + out[i] = 0.5; + } + return out; + } + } + }); + + // node_modules/color-parse/index.js + function parse(cstr) { + var _a, _b; + var m, parts = [], alpha = 1, space; + if (typeof cstr === "number") { + return { space: "rgb", values: [cstr >>> 16, (cstr & 65280) >>> 8, cstr & 255], alpha: 1 }; + } + if (typeof cstr === "number") return { space: "rgb", values: [cstr >>> 16, (cstr & 65280) >>> 8, cstr & 255], alpha: 1 }; + cstr = String(cstr).toLowerCase(); + if (import_color_name.default[cstr]) { + parts = import_color_name.default[cstr].slice(); + space = "rgb"; + } else if (cstr === "transparent") { + alpha = 0; + space = "rgb"; + parts = [0, 0, 0]; + } else if (cstr[0] === "#") { + var base = cstr.slice(1); + var size = base.length; + var isShort = size <= 4; + alpha = 1; + if (isShort) { + parts = [ + parseInt(base[0] + base[0], 16), + parseInt(base[1] + base[1], 16), + parseInt(base[2] + base[2], 16) + ]; + if (size === 4) { + alpha = parseInt(base[3] + base[3], 16) / 255; + } + } else { + parts = [ + parseInt(base[0] + base[1], 16), + parseInt(base[2] + base[3], 16), + parseInt(base[4] + base[5], 16) + ]; + if (size === 8) { + alpha = parseInt(base[6] + base[7], 16) / 255; + } + } + if (!parts[0]) parts[0] = 0; + if (!parts[1]) parts[1] = 0; + if (!parts[2]) parts[2] = 0; + space = "rgb"; + } else if (m = /^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(cstr)) { + var name2 = m[1]; + space = name2.replace(/a$/, ""); + var dims = space === "cmyk" ? 4 : space === "gray" ? 1 : 3; + parts = m[2].trim().split(/\s*[,\/]\s*|\s+/); + if (space === "color") space = parts.shift(); + parts = parts.map(function(x, i) { + if (x[x.length - 1] === "%") { + x = parseFloat(x) / 100; + if (i === 3) return x; + if (space === "rgb") return x * 255; + if (space[0] === "h") return x * 100; + if (space[0] === "l" && !i) return x * 100; + if (space === "lab") return x * 125; + if (space === "lch") return i < 2 ? x * 150 : x * 360; + if (space[0] === "o" && !i) return x; + if (space === "oklab") return x * 0.4; + if (space === "oklch") return i < 2 ? x * 0.4 : x * 360; + return x; + } + if (space[i] === "h" || i === 2 && space[space.length - 1] === "h") { + if (baseHues[x] !== void 0) return baseHues[x]; + if (x.endsWith("deg")) return parseFloat(x); + if (x.endsWith("turn")) return parseFloat(x) * 360; + if (x.endsWith("grad")) return parseFloat(x) * 360 / 400; + if (x.endsWith("rad")) return parseFloat(x) * 180 / Math.PI; + } + if (x === "none") return 0; + return parseFloat(x); + }); + alpha = parts.length > dims ? parts.pop() : 1; + } else if (/[0-9](?:\s|\/|,)/.test(cstr)) { + parts = cstr.match(/([0-9]+)/g).map(function(value) { + return parseFloat(value); + }); + space = ((_b = (_a = cstr.match(/([a-z])/ig)) == null ? void 0 : _a.join("")) == null ? void 0 : _b.toLowerCase()) || "rgb"; + } + return { + space, + values: parts, + alpha + }; + } + var import_color_name, color_parse_default, baseHues; + var init_color_parse = __esm({ + "node_modules/color-parse/index.js"() { + import_color_name = __toESM(require_color_name(), 1); + color_parse_default = parse; + baseHues = { + red: 0, + orange: 60, + yellow: 120, + green: 180, + blue: 240, + purple: 300 + }; + } + }); + + // node_modules/color-space/rgb.js + var rgb_default2; + var init_rgb2 = __esm({ + "node_modules/color-space/rgb.js"() { + rgb_default2 = { + name: "rgb", + min: [0, 0, 0], + max: [255, 255, 255], + channel: ["red", "green", "blue"], + alias: ["RGB"] + }; + } + }); + + // node_modules/color-space/hsl.js + var hsl_default2; + var init_hsl2 = __esm({ + "node_modules/color-space/hsl.js"() { + init_rgb2(); + hsl_default2 = { + name: "hsl", + min: [0, 0, 0], + max: [360, 100, 100], + channel: ["hue", "saturation", "lightness"], + alias: ["HSL"], + rgb: function(hsl3) { + var h = hsl3[0] / 360, s = hsl3[1] / 100, l = hsl3[2] / 100, t12, t22, t32, rgb2, val, i = 0; + if (s === 0) return val = l * 255, [val, val, val]; + t22 = l < 0.5 ? l * (1 + s) : l + s - l * s; + t12 = 2 * l - t22; + rgb2 = [0, 0, 0]; + for (; i < 3; ) { + t32 = h + 1 / 3 * -(i - 1); + t32 < 0 ? t32++ : t32 > 1 && t32--; + val = 6 * t32 < 1 ? t12 + (t22 - t12) * 6 * t32 : 2 * t32 < 1 ? t22 : 3 * t32 < 2 ? t12 + (t22 - t12) * (2 / 3 - t32) * 6 : t12; + rgb2[i++] = val * 255; + } + return rgb2; + } + }; + rgb_default2.hsl = function(rgb2) { + var r = rgb2[0] / 255, g = rgb2[1] / 255, b = rgb2[2] / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), delta = max - min, h, s, l; + if (max === min) { + h = 0; + } else if (r === max) { + h = (g - b) / delta; + } else if (g === max) { + h = 2 + (b - r) / delta; + } else if (b === max) { + h = 4 + (r - g) / delta; + } + h = Math.min(h * 60, 360); + if (h < 0) { + h += 360; + } + l = (min + max) / 2; + if (max === min) { + s = 0; + } else if (l <= 0.5) { + s = delta / (max + min); + } else { + s = delta / (2 - max - min); + } + return [h, s * 100, l * 100]; + }; + } + }); + + // node_modules/color-rgba/index.js + var color_rgba_exports = {}; + __export(color_rgba_exports, { + default: () => rgba2 + }); + function rgba2(color2) { + if (Array.isArray(color2) && color2.raw) color2 = String.raw(...arguments); + if (color2 instanceof Number) color2 = +color2; + var values, i, l; + var parsed = color_parse_default(color2); + if (!parsed.space) return []; + const min = parsed.space[0] === "h" ? hsl_default2.min : rgb_default2.min; + const max = parsed.space[0] === "h" ? hsl_default2.max : rgb_default2.max; + values = Array(3); + values[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0]); + values[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1]); + values[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2]); + if (parsed.space[0] === "h") { + values = hsl_default2.rgb(values); + } + values.push(Math.min(Math.max(parsed.alpha, 0), 1)); + return values; + } + var init_color_rgba = __esm({ + "node_modules/color-rgba/index.js"() { + init_color_parse(); + init_rgb2(); + init_hsl2(); + } + }); + + // src/traces/parcoords/helpers.js + var require_helpers18 = __commonJS({ + "src/traces/parcoords/helpers.js"(exports) { + "use strict"; + var isTypedArray = require_lib().isTypedArray; + exports.convertTypedArray = function(a) { + return isTypedArray(a) ? Array.prototype.slice.call(a) : a; + }; + exports.isOrdinal = function(dimension) { + return !!dimension.tickvals; + }; + exports.isVisible = function(dimension) { + return dimension.visible || !("visible" in dimension); + }; + } + }); + + // src/traces/parcoords/lines.js + var require_lines = __commonJS({ + "src/traces/parcoords/lines.js"(exports, module) { + "use strict"; + var vertexShaderSource = [ + "precision highp float;", + "", + "varying vec4 fragColor;", + "", + "attribute vec4 p01_04, p05_08, p09_12, p13_16,", + " p17_20, p21_24, p25_28, p29_32,", + " p33_36, p37_40, p41_44, p45_48,", + " p49_52, p53_56, p57_60, colors;", + "", + "uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,", + " loA, hiA, loB, hiB, loC, hiC, loD, hiD;", + "", + "uniform vec2 resolution, viewBoxPos, viewBoxSize;", + "uniform float maskHeight;", + "uniform float drwLayer; // 0: context, 1: focus, 2: pick", + "uniform vec4 contextColor;", + "uniform sampler2D maskTexture, palette;", + "", + "bool isPick = (drwLayer > 1.5);", + "bool isContext = (drwLayer < 0.5);", + "", + "const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);", + "const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);", + "", + "float val(mat4 p, mat4 v) {", + " return dot(matrixCompMult(p, v) * UNITS, UNITS);", + "}", + "", + "float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {", + " float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);", + " float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);", + " return y1 * (1.0 - ratio) + y2 * ratio;", + "}", + "", + "int iMod(int a, int b) {", + " return a - b * (a / b);", + "}", + "", + "bool fOutside(float p, float lo, float hi) {", + " return (lo < hi) && (lo > p || p > hi);", + "}", + "", + "bool vOutside(vec4 p, vec4 lo, vec4 hi) {", + " return (", + " fOutside(p[0], lo[0], hi[0]) ||", + " fOutside(p[1], lo[1], hi[1]) ||", + " fOutside(p[2], lo[2], hi[2]) ||", + " fOutside(p[3], lo[3], hi[3])", + " );", + "}", + "", + "bool mOutside(mat4 p, mat4 lo, mat4 hi) {", + " return (", + " vOutside(p[0], lo[0], hi[0]) ||", + " vOutside(p[1], lo[1], hi[1]) ||", + " vOutside(p[2], lo[2], hi[2]) ||", + " vOutside(p[3], lo[3], hi[3])", + " );", + "}", + "", + "bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {", + " return mOutside(A, loA, hiA) ||", + " mOutside(B, loB, hiB) ||", + " mOutside(C, loC, hiC) ||", + " mOutside(D, loD, hiD);", + "}", + "", + "bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {", + " mat4 pnts[4];", + " pnts[0] = A;", + " pnts[1] = B;", + " pnts[2] = C;", + " pnts[3] = D;", + "", + " for(int i = 0; i < 4; ++i) {", + " for(int j = 0; j < 4; ++j) {", + " for(int k = 0; k < 4; ++k) {", + " if(0 == iMod(", + " int(255.0 * texture2D(maskTexture,", + " vec2(", + " (float(i * 2 + j / 2) + 0.5) / 8.0,", + " (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight", + " ))[3]", + " ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),", + " 2", + " )) return true;", + " }", + " }", + " }", + " return false;", + "}", + "", + "vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {", + " float x = 0.5 * sign(v) + 0.5;", + " float y = axisY(x, A, B, C, D);", + " float z = 1.0 - abs(v);", + "", + " z += isContext ? 0.0 : 2.0 * float(", + " outsideBoundingBox(A, B, C, D) ||", + " outsideRasterMask(A, B, C, D)", + " );", + "", + " return vec4(", + " 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,", + " z,", + " 1.0", + " );", + "}", + "", + "void main() {", + " mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);", + " mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);", + " mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);", + " mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);", + "", + " float v = colors[3];", + "", + " gl_Position = position(isContext, v, A, B, C, D);", + "", + " fragColor =", + " isContext ? vec4(contextColor) :", + " isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));", + "}" + ].join("\n"); + var fragmentShaderSource = [ + "precision highp float;", + "", + "varying vec4 fragColor;", + "", + "void main() {", + " gl_FragColor = fragColor;", + "}" + ].join("\n"); + var maxDim = require_constants24().maxDimensionCount; + var Lib = require_lib(); + var depthLimitEpsilon = 1e-6; + var maskHeight = 2048; + var dummyPixel = new Uint8Array(4); + var dataPixel = new Uint8Array(4); + var paletteTextureConfig = { + shape: [256, 1], + format: "rgba", + type: "uint8", + mag: "nearest", + min: "nearest" + }; + function ensureDraw(regl) { + regl.read({ + x: 0, + y: 0, + width: 1, + height: 1, + data: dummyPixel + }); + } + function clear(regl, x, y, width, height) { + var gl2 = regl._gl; + gl2.enable(gl2.SCISSOR_TEST); + gl2.scissor(x, y, width, height); + regl.clear({ color: [0, 0, 0, 0], depth: 1 }); + } + function renderBlock(regl, glAes, renderState, blockLineCount, sampleCount, item) { + var rafKey = item.key; + function render(blockNumber) { + var count = Math.min(blockLineCount, sampleCount - blockNumber * blockLineCount); + if (blockNumber === 0) { + window.cancelAnimationFrame(renderState.currentRafs[rafKey]); + delete renderState.currentRafs[rafKey]; + clear(regl, item.scissorX, item.scissorY, item.scissorWidth, item.viewBoxSize[1]); + } + if (renderState.clearOnly) { + return; + } + item.count = 2 * count; + item.offset = 2 * blockNumber * blockLineCount; + glAes(item); + if (blockNumber * blockLineCount + count < sampleCount) { + renderState.currentRafs[rafKey] = window.requestAnimationFrame(function() { + render(blockNumber + 1); + }); + } + renderState.drawCompleted = false; + } + if (!renderState.drawCompleted) { + ensureDraw(regl); + renderState.drawCompleted = true; + } + render(0); + } + function adjustDepth(d) { + return Math.max(depthLimitEpsilon, Math.min(1 - depthLimitEpsilon, d)); + } + function palette(unitToColor, opacity) { + var result = new Array(256); + for (var i = 0; i < 256; i++) { + result[i] = unitToColor(i / 255).concat(opacity); + } + return result; + } + function calcPickColor(i, rgbIndex) { + return (i >>> 8 * rgbIndex) % 256 / 255; + } + function makePoints(sampleCount, dims, color2) { + var points = new Array(sampleCount * (maxDim + 4)); + var n = 0; + for (var i = 0; i < sampleCount; i++) { + for (var k = 0; k < maxDim; k++) { + points[n++] = k < dims.length ? dims[k].paddedUnitValues[i] : 0.5; + } + points[n++] = calcPickColor(i, 2); + points[n++] = calcPickColor(i, 1); + points[n++] = calcPickColor(i, 0); + points[n++] = adjustDepth(color2[i]); + } + return points; + } + function makeVecAttr(vecIndex, sampleCount, points) { + var pointPairs = new Array(sampleCount * 8); + var n = 0; + for (var i = 0; i < sampleCount; i++) { + for (var j = 0; j < 2; j++) { + for (var k = 0; k < 4; k++) { + var q = vecIndex * 4 + k; + var v = points[i * 64 + q]; + if (q === 63 && j === 0) { + v *= -1; } - v5.dirty = false; - } - v104 = v5.profile; - if (v104) { - v105 = performance.now(); - g48.count++; - } - v106 = v9.frag; - v107 = v9.vert; - v108 = v9.program(v107, v106); - v1.useProgram(v108.program); - v11.setVAO(null); - v110 = v108.id; - v111 = v109[v110]; - if (v111) { - v111.call(this, a0); - } else { - v111 = v109[v110] = g112(v108); - v111.call(this, a0); - } - v11.setVAO(null); - if (v104) { - g48.cpuTime += performance.now() - v105; + pointPairs[n++] = v; } + } + } + return pointPairs; + } + function pad2(num) { + var s = "0" + num; + return s.slice(-2); + } + function getAttrName(i) { + return i < maxDim ? "p" + pad2(i + 1) + "_" + pad2(i + 4) : "colors"; + } + function setAttributes(attributes, sampleCount, points) { + for (var i = 0; i <= maxDim; i += 4) { + attributes[getAttrName(i)](makeVecAttr(i / 4, sampleCount, points)); + } + } + function emptyAttributes(regl) { + var attributes = {}; + for (var i = 0; i <= maxDim; i += 4) { + attributes[getAttrName(i)] = regl.buffer({ usage: "dynamic", type: "float", data: new Uint8Array(0) }); + } + return attributes; + } + function makeItem(model, leftmost, rightmost, itemNumber, i0, i1, x, y, panelSizeX, panelSizeY, crossfilterDimensionIndex, drwLayer, constraints, plotGlPixelRatio) { + var dims = [[], []]; + for (var k = 0; k < 64; k++) { + dims[0][k] = k === i0 ? 1 : 0; + dims[1][k] = k === i1 ? 1 : 0; + } + x *= plotGlPixelRatio; + y *= plotGlPixelRatio; + panelSizeX *= plotGlPixelRatio; + panelSizeY *= plotGlPixelRatio; + var overdrag = model.lines.canvasOverdrag * plotGlPixelRatio; + var domain = model.domain; + var canvasWidth = model.canvasWidth * plotGlPixelRatio; + var canvasHeight = model.canvasHeight * plotGlPixelRatio; + var padL = model.pad.l * plotGlPixelRatio; + var padB = model.pad.b * plotGlPixelRatio; + var layoutHeight = model.layoutHeight * plotGlPixelRatio; + var layoutWidth = model.layoutWidth * plotGlPixelRatio; + var deselectedLinesColor = model.deselectedLines.color; + var deselectedLinesOpacity = model.deselectedLines.opacity; + var itemModel = Lib.extendFlat({ + key: crossfilterDimensionIndex, + resolution: [canvasWidth, canvasHeight], + viewBoxPos: [x + overdrag, y], + viewBoxSize: [panelSizeX, panelSizeY], + i0, + i1, + dim0A: dims[0].slice(0, 16), + dim0B: dims[0].slice(16, 32), + dim0C: dims[0].slice(32, 48), + dim0D: dims[0].slice(48, 64), + dim1A: dims[1].slice(0, 16), + dim1B: dims[1].slice(16, 32), + dim1C: dims[1].slice(32, 48), + dim1D: dims[1].slice(48, 64), + drwLayer, + contextColor: [ + deselectedLinesColor[0] / 255, + deselectedLinesColor[1] / 255, + deselectedLinesColor[2] / 255, + deselectedLinesOpacity !== "auto" ? deselectedLinesColor[3] * deselectedLinesOpacity : Math.max(1 / 255, Math.pow(1 / model.lines.color.length, 1 / 3)) + ], + scissorX: (itemNumber === leftmost ? 0 : x + overdrag) + (padL - overdrag) + layoutWidth * domain.x[0], + scissorWidth: (itemNumber === rightmost ? canvasWidth - x + overdrag : panelSizeX + 0.5) + (itemNumber === leftmost ? x + overdrag : 0), + scissorY: y + padB + layoutHeight * domain.y[0], + scissorHeight: panelSizeY, + viewportX: padL - overdrag + layoutWidth * domain.x[0], + viewportY: padB + layoutHeight * domain.y[0], + viewportWidth: canvasWidth, + viewportHeight: canvasHeight + }, constraints); + return itemModel; + } + function expandedPixelRange(bounds) { + var dh = maskHeight - 1; + var a = Math.max(0, Math.floor(bounds[0] * dh), 0); + var b = Math.min(dh, Math.ceil(bounds[1] * dh), dh); + return [ + Math.min(a, b), + Math.max(a, b) + ]; + } + module.exports = function(canvasGL, d) { + var isContext = d.context; + var isPick = d.pick; + var regl = d.regl; + var gl2 = regl._gl; + var supportedLineWidth = gl2.getParameter(gl2.ALIASED_LINE_WIDTH_RANGE); + var plotGlPixelRatio = Math.max( + supportedLineWidth[0], + Math.min( + supportedLineWidth[1], + d.viewModel.plotGlPixelRatio + ) + ); + var renderState = { + currentRafs: {}, + drawCompleted: true, + clearOnly: false + }; + var model; + var vm; + var initialDims; + var sampleCount; + var attributes = emptyAttributes(regl); + var maskTexture; + var paletteTexture = regl.texture(paletteTextureConfig); + var prevAxisOrder = []; + update(d); + var glAes = regl({ + profile: false, + blend: { + enable: isContext, + func: { + srcRGB: "src alpha", + dstRGB: "one minus src alpha", + srcAlpha: 1, + dstAlpha: 1 + // 'one minus src alpha' + }, + equation: { + rgb: "add", + alpha: "add" + }, + color: [0, 0, 0, 0] }, - "scope": function(a0, a1, a2) { - var v113, v114; - v113 = v5.profile; - if (v113) { - v114 = performance.now(); - g48.count++; - } - a1(v2, a0, a2); - if (v113) { - g48.cpuTime += performance.now() - v114; - } + depth: { + enable: !isContext, + mask: true, + func: "less", + range: [0, 1] }, - "batch": function(a0, a1) { - var v115, v170, v171, v172, v173, v174, v176, v177; - v115 = v13.next; - if (v115 !== v13.cur) { - if (v115) { - v1.bindFramebuffer(36160, v115.framebuffer); - } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v115; + // for polygons + cull: { + enable: true, + face: "back" + }, + scissor: { + enable: true, + box: { + x: regl.prop("scissorX"), + y: regl.prop("scissorY"), + width: regl.prop("scissorWidth"), + height: regl.prop("scissorHeight") } - if (v5.dirty) { - var v116, v117, v118, v119, v120, v121, v122, v123, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v139, v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169; - v116 = v4.dither; - if (v116 !== v5.dither) { - if (v116) { - v1.enable(3024); - } else { - v1.disable(3024); - } - v5.dither = v116; - } - v117 = v4.blend_enable; - if (v117 !== v5.blend_enable) { - if (v117) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = v117; - } - v118 = v17[0]; - v119 = v17[1]; - v120 = v17[2]; - v121 = v17[3]; - if (v118 !== v18[0] || v119 !== v18[1] || v120 !== v18[2] || v121 !== v18[3]) { - v1.blendColor(v118, v119, v120, v121); - v18[0] = v118; - v18[1] = v119; - v18[2] = v120; - v18[3] = v121; - } - v122 = v19[0]; - v123 = v19[1]; - if (v122 !== v20[0] || v123 !== v20[1]) { - v1.blendEquationSeparate(v122, v123); - v20[0] = v122; - v20[1] = v123; - } - v124 = v21[0]; - v125 = v21[1]; - v126 = v21[2]; - v127 = v21[3]; - if (v124 !== v22[0] || v125 !== v22[1] || v126 !== v22[2] || v127 !== v22[3]) { - v1.blendFuncSeparate(v124, v125, v126, v127); - v22[0] = v124; - v22[1] = v125; - v22[2] = v126; - v22[3] = v127; - } - v128 = v4.depth_enable; - if (v128 !== v5.depth_enable) { - if (v128) { - v1.enable(2929); - } else { - v1.disable(2929); + }, + viewport: { + x: regl.prop("viewportX"), + y: regl.prop("viewportY"), + width: regl.prop("viewportWidth"), + height: regl.prop("viewportHeight") + }, + dither: false, + vert: vertexShaderSource, + frag: fragmentShaderSource, + primitive: "lines", + lineWidth: plotGlPixelRatio, + attributes, + uniforms: { + resolution: regl.prop("resolution"), + viewBoxPos: regl.prop("viewBoxPos"), + viewBoxSize: regl.prop("viewBoxSize"), + dim0A: regl.prop("dim0A"), + dim1A: regl.prop("dim1A"), + dim0B: regl.prop("dim0B"), + dim1B: regl.prop("dim1B"), + dim0C: regl.prop("dim0C"), + dim1C: regl.prop("dim1C"), + dim0D: regl.prop("dim0D"), + dim1D: regl.prop("dim1D"), + loA: regl.prop("loA"), + hiA: regl.prop("hiA"), + loB: regl.prop("loB"), + hiB: regl.prop("hiB"), + loC: regl.prop("loC"), + hiC: regl.prop("hiC"), + loD: regl.prop("loD"), + hiD: regl.prop("hiD"), + palette: paletteTexture, + contextColor: regl.prop("contextColor"), + maskTexture: regl.prop("maskTexture"), + drwLayer: regl.prop("drwLayer"), + maskHeight: regl.prop("maskHeight") + }, + offset: regl.prop("offset"), + count: regl.prop("count") + }); + function update(dNew) { + model = dNew.model; + vm = dNew.viewModel; + initialDims = vm.dimensions.slice(); + sampleCount = initialDims[0] ? initialDims[0].values.length : 0; + var lines = model.lines; + var color2 = isPick ? lines.color.map(function(_, i) { + return i / lines.color.length; + }) : lines.color; + var points = makePoints(sampleCount, initialDims, color2); + setAttributes(attributes, sampleCount, points); + if (!isContext && !isPick) { + paletteTexture = regl.texture(Lib.extendFlat({ + data: palette(model.unitToColor, 255) + }, paletteTextureConfig)); + } + } + function makeConstraints(isContext2) { + var i, j, k; + var limits = [[], []]; + for (k = 0; k < 64; k++) { + var p = !isContext2 && k < initialDims.length ? initialDims[k].brush.filter.getBounds() : [-Infinity, Infinity]; + limits[0][k] = p[0]; + limits[1][k] = p[1]; + } + var len = maskHeight * 8; + var mask = new Array(len); + for (i = 0; i < len; i++) { + mask[i] = 255; + } + if (!isContext2) { + for (i = 0; i < initialDims.length; i++) { + var u = i % 8; + var v = (i - u) / 8; + var bitMask = Math.pow(2, u); + var dim = initialDims[i]; + var ranges = dim.brush.filter.get(); + if (ranges.length < 2) continue; + var prevEnd = expandedPixelRange(ranges[0])[1]; + for (j = 1; j < ranges.length; j++) { + var nextRange = expandedPixelRange(ranges[j]); + for (k = prevEnd + 1; k < nextRange[0]; k++) { + mask[k * 8 + v] &= ~bitMask; } - v5.depth_enable = v128; - } - v129 = v4.depth_func; - if (v129 !== v5.depth_func) { - v1.depthFunc(v129); - v5.depth_func = v129; - } - v130 = v23[0]; - v131 = v23[1]; - if (v130 !== v24[0] || v131 !== v24[1]) { - v1.depthRange(v130, v131); - v24[0] = v130; - v24[1] = v131; - } - v132 = v4.depth_mask; - if (v132 !== v5.depth_mask) { - v1.depthMask(v132); - v5.depth_mask = v132; - } - v133 = v25[0]; - v134 = v25[1]; - v135 = v25[2]; - v136 = v25[3]; - if (v133 !== v26[0] || v134 !== v26[1] || v135 !== v26[2] || v136 !== v26[3]) { - v1.colorMask(v133, v134, v135, v136); - v26[0] = v133; - v26[1] = v134; - v26[2] = v135; - v26[3] = v136; + prevEnd = Math.max(prevEnd, nextRange[1]); } - v137 = v4.cull_enable; - if (v137 !== v5.cull_enable) { - if (v137) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = v137; - } - v138 = v4.cull_face; - if (v138 !== v5.cull_face) { - v1.cullFace(v138); - v5.cull_face = v138; - } - v139 = v4.frontFace; - if (v139 !== v5.frontFace) { - v1.frontFace(v139); - v5.frontFace = v139; - } - v140 = v4.lineWidth; - if (v140 !== v5.lineWidth) { - v1.lineWidth(v140); - v5.lineWidth = v140; - } - v141 = v4.polygonOffset_enable; - if (v141 !== v5.polygonOffset_enable) { - if (v141) { - v1.enable(32823); - } else { - v1.disable(32823); - } - v5.polygonOffset_enable = v141; - } - v142 = v27[0]; - v143 = v27[1]; - if (v142 !== v28[0] || v143 !== v28[1]) { - v1.polygonOffset(v142, v143); - v28[0] = v142; - v28[1] = v143; - } - v144 = v4.sample_alpha; - if (v144 !== v5.sample_alpha) { - if (v144) { - v1.enable(32926); - } else { - v1.disable(32926); - } - v5.sample_alpha = v144; - } - v145 = v4.sample_enable; - if (v145 !== v5.sample_enable) { - if (v145) { - v1.enable(32928); - } else { - v1.disable(32928); - } - v5.sample_enable = v145; - } - v146 = v29[0]; - v147 = v29[1]; - if (v146 !== v30[0] || v147 !== v30[1]) { - v1.sampleCoverage(v146, v147); - v30[0] = v146; - v30[1] = v147; - } - v148 = v4.stencil_enable; - if (v148 !== v5.stencil_enable) { - if (v148) { - v1.enable(2960); - } else { - v1.disable(2960); - } - v5.stencil_enable = v148; - } - v149 = v4.stencil_mask; - if (v149 !== v5.stencil_mask) { - v1.stencilMask(v149); - v5.stencil_mask = v149; - } - v150 = v31[0]; - v151 = v31[1]; - v152 = v31[2]; - if (v150 !== v32[0] || v151 !== v32[1] || v152 !== v32[2]) { - v1.stencilFunc(v150, v151, v152); - v32[0] = v150; - v32[1] = v151; - v32[2] = v152; - } - v153 = v33[0]; - v154 = v33[1]; - v155 = v33[2]; - v156 = v33[3]; - if (v153 !== v34[0] || v154 !== v34[1] || v155 !== v34[2] || v156 !== v34[3]) { - v1.stencilOpSeparate(v153, v154, v155, v156); - v34[0] = v153; - v34[1] = v154; - v34[2] = v155; - v34[3] = v156; - } - v157 = v35[0]; - v158 = v35[1]; - v159 = v35[2]; - v160 = v35[3]; - if (v157 !== v36[0] || v158 !== v36[1] || v159 !== v36[2] || v160 !== v36[3]) { - v1.stencilOpSeparate(v157, v158, v159, v160); - v36[0] = v157; - v36[1] = v158; - v36[2] = v159; - v36[3] = v160; - } - v161 = v4.scissor_enable; - if (v161 !== v5.scissor_enable) { - if (v161) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = v161; - } - v162 = v37[0]; - v163 = v37[1]; - v164 = v37[2]; - v165 = v37[3]; - if (v162 !== v38[0] || v163 !== v38[1] || v164 !== v38[2] || v165 !== v38[3]) { - v1.scissor(v162, v163, v164, v165); - v38[0] = v162; - v38[1] = v163; - v38[2] = v164; - v38[3] = v165; - } - v166 = v39[0]; - v167 = v39[1]; - v168 = v39[2]; - v169 = v39[3]; - if (v166 !== v40[0] || v167 !== v40[1] || v168 !== v40[2] || v169 !== v40[3]) { - v1.viewport(v166, v167, v168, v169); - v40[0] = v166; - v40[1] = v167; - v40[2] = v168; - v40[3] = v169; - } - v5.dirty = false; } - v170 = v5.profile; - if (v170) { - v171 = performance.now(); - g48.count += a1; + } + var textureData = { + // 8 units x 8 bits = 64 bits, just sufficient for the almost 64 dimensions we support + shape: [8, maskHeight], + format: "alpha", + type: "uint8", + mag: "nearest", + min: "nearest", + data: mask + }; + if (maskTexture) maskTexture(textureData); + else maskTexture = regl.texture(textureData); + return { + maskTexture, + maskHeight, + loA: limits[0].slice(0, 16), + loB: limits[0].slice(16, 32), + loC: limits[0].slice(32, 48), + loD: limits[0].slice(48, 64), + hiA: limits[1].slice(0, 16), + hiB: limits[1].slice(16, 32), + hiC: limits[1].slice(32, 48), + hiD: limits[1].slice(48, 64) + }; + } + function renderGLParcoords(panels, setChanged, clearOnly) { + var panelCount = panels.length; + var i; + var leftmost; + var rightmost; + var lowestX = Infinity; + var highestX = -Infinity; + for (i = 0; i < panelCount; i++) { + if (panels[i].dim0.canvasX < lowestX) { + lowestX = panels[i].dim0.canvasX; + leftmost = i; } - v172 = v9.frag; - v173 = v9.vert; - v174 = v9.program(v173, v172); - v1.useProgram(v174.program); - v11.setVAO(null); - v176 = v174.id; - v177 = v175[v176]; - if (v177) { - v177.call(this, a0, a1); - } else { - v177 = v175[v176] = g178(v174); - v177.call(this, a0, a1); + if (panels[i].dim1.canvasX > highestX) { + highestX = panels[i].dim1.canvasX; + rightmost = i; } - v11.setVAO(null); - if (v170) { - g48.cpuTime += performance.now() - v171; + } + if (panelCount === 0) { + clear(regl, 0, 0, model.canvasWidth, model.canvasHeight); + } + var constraints = makeConstraints(isContext); + for (i = 0; i < panelCount; i++) { + var p = panels[i]; + var i0 = p.dim0.crossfilterDimensionIndex; + var i1 = p.dim1.crossfilterDimensionIndex; + var x = p.canvasX; + var y = p.canvasY; + var nextX = x + p.panelSizeX; + var plotGlPixelRatio2 = p.plotGlPixelRatio; + if (setChanged || !prevAxisOrder[i0] || prevAxisOrder[i0][0] !== x || prevAxisOrder[i0][1] !== nextX) { + prevAxisOrder[i0] = [x, nextX]; + var item = makeItem( + model, + leftmost, + rightmost, + i, + i0, + i1, + x, + y, + p.panelSizeX, + p.panelSizeY, + p.dim0.crossfilterDimensionIndex, + isContext ? 0 : isPick ? 2 : 1, + constraints, + plotGlPixelRatio2 + ); + renderState.clearOnly = clearOnly; + var blockLineCount = setChanged ? model.lines.blockLineCount : sampleCount; + renderBlock( + regl, + glAes, + renderState, + blockLineCount, + sampleCount, + item + ); } } + } + function readPixel(canvasX, canvasY) { + regl.read({ + x: canvasX, + y: canvasY, + width: 1, + height: 1, + data: dataPixel + }); + return dataPixel; + } + function readPixels(canvasX, canvasY, width, height) { + var pixelArray = new Uint8Array(4 * width * height); + regl.read({ + x: canvasX, + y: canvasY, + width, + height, + data: pixelArray + }); + return pixelArray; + } + function destroy() { + canvasGL.style["pointer-events"] = "none"; + paletteTexture.destroy(); + if (maskTexture) maskTexture.destroy(); + for (var k in attributes) attributes[k].destroy(); + } + return { + render: renderGLParcoords, + readPixel, + readPixels, + destroy, + update }; }; } }); - // src/generated/regl-codegen/3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d - var require_fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d = __commonJS({ - "src/generated/regl-codegen/3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d"(exports, module) { - module.exports = function anonymous(g0, g48, g87, g88, g89, g90, g91, g92, g93, g94, g103, g105, g106, g107, g110, g111, g114, g115, g118, g119, g122, g123, g126, g127, g130, g131, g134, g135, g138, g139, g142, g143, g146, g147, g150, g151, g154, g155, g158, g159, g162, g163, g166, g167, g170, g176, g179, g182, g185, g188, g191, g194, g197, g200, g202, g205, g208, g211, g214, g217, g220, g223, g226, g228, g231, g232, g233, g237, g241, g262, g264, g266, g268, g270, g272, g274, g276, g278, g280, g282, g284, g286, g288, g290, g292, g294, g296, g298, g300, g314, g321, g323, g324, g327, g330, g333, g336, g339, g342, g345, g348, g351, g354, g357, g360, g363, g366, g369, g372, g375, g378, g381, g384, g387, g390, g393, g395, g408, g421, g434, g447, g460, g473, g486, g499, g512, g525, g538, g551, g564, g577, g590, g603, g605, g633, g634, g635, g636, g637, g638, g639, g640, g641) { - "use strict"; - var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50, v178, v181, v184, v187, v190, v193, v196, v199, v204, v207, v210, v213, v216, v219, v222, v225, v705, v707, v709, v711, v713, v715, v717, v719, v723, v725, v727, v729, v731, v733, v735, v737; - v1 = g0.gl; - v2 = g0.context; - v3 = g0.strings; - v4 = g0.next; - v5 = g0.current; - v6 = g0.draw; - v7 = g0.elements; - v8 = g0.buffer; - v9 = g0.shader; - v10 = g0.attributes; - v11 = g0.vao; - v12 = g0.uniforms; - v13 = g0.framebuffer; - v14 = g0.extensions; - v15 = g0.timer; - v16 = g0.isBufferArgs; - v17 = v4.blend_color; - v18 = v5.blend_color; - v19 = v4.blend_equation; - v20 = v5.blend_equation; - v21 = v4.blend_func; - v22 = v5.blend_func; - v23 = v4.depth_range; - v24 = v5.depth_range; - v25 = v4.colorMask; - v26 = v5.colorMask; - v27 = v4.polygonOffset_offset; - v28 = v5.polygonOffset_offset; - v29 = v4.sample_coverage; - v30 = v5.sample_coverage; - v31 = v4.stencil_func; - v32 = v5.stencil_func; - v33 = v4.stencil_opFront; - v34 = v5.stencil_opFront; - v35 = v4.stencil_opBack; - v36 = v5.stencil_opBack; - v37 = v4.scissor_box; - v38 = v5.scissor_box; - v39 = v4.viewport; - v40 = v5.viewport; - v41 = { - "points": 0, - "point": 0, - "lines": 1, - "line": 1, - "triangles": 4, - "triangle": 4, - "line loop": 2, - "line strip": 3, - "triangle strip": 5, - "triangle fan": 6 - }; - v42 = { - "never": 512, - "less": 513, - "<": 513, - "equal": 514, - "=": 514, - "==": 514, - "===": 514, - "lequal": 515, - "<=": 515, - "greater": 516, - ">": 516, - "notequal": 517, - "!=": 517, - "!==": 517, - "gequal": 518, - ">=": 518, - "always": 519 + // src/traces/parcoords/parcoords.js + var require_parcoords = __commonJS({ + "src/traces/parcoords/parcoords.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var Lib = require_lib(); + var isArrayOrTypedArray = Lib.isArrayOrTypedArray; + var numberFormat = Lib.numberFormat; + var rgba3 = (init_color_rgba(), __toCommonJS(color_rgba_exports)).default; + var Axes = require_axes(); + var strRotate = Lib.strRotate; + var strTranslate = Lib.strTranslate; + var svgTextUtils = require_svg_text_utils(); + var Drawing = require_drawing(); + var Colorscale = require_colorscale(); + var gup = require_gup(); + var keyFun = gup.keyFun; + var repeat = gup.repeat; + var unwrap = gup.unwrap; + var helpers = require_helpers18(); + var c = require_constants24(); + var brush = require_axisbrush(); + var lineLayerMaker = require_lines(); + function findExtreme(fn, values, len) { + return Lib.aggNums(fn, null, values, len); + } + function findExtremes(values, len) { + return fixExtremes( + findExtreme(Math.min, values, len), + findExtreme(Math.max, values, len) + ); + } + function dimensionExtent(dimension) { + var range = dimension.range; + return range ? fixExtremes(range[0], range[1]) : findExtremes(dimension.values, dimension._length); + } + function fixExtremes(lo, hi) { + if (isNaN(lo) || !isFinite(lo)) { + lo = 0; + } + if (isNaN(hi) || !isFinite(hi)) { + hi = 0; + } + if (lo === hi) { + if (lo === 0) { + lo -= 1; + hi += 1; + } else { + lo *= 0.9; + hi *= 1.1; + } + } + return [lo, hi]; + } + function toText(formatter, texts) { + if (texts) { + return function(v, i) { + var text = texts[i]; + if (text === null || text === void 0) return formatter(v); + return text; + }; + } + return formatter; + } + function domainScale(height, padding, dimension, tickvals, ticktext) { + var extent = dimensionExtent(dimension); + if (tickvals) { + return d3.scale.ordinal().domain(tickvals.map(toText(numberFormat(dimension.tickformat), ticktext))).range( + tickvals.map(function(d) { + var unitVal = (d - extent[0]) / (extent[1] - extent[0]); + return height - padding + unitVal * (2 * padding - height); + }) + ); + } + return d3.scale.linear().domain(extent).range([height - padding, padding]); + } + function unitToPaddedPx(height, padding) { + return d3.scale.linear().range([padding, height - padding]); + } + function domainToPaddedUnitScale(dimension, padFraction) { + return d3.scale.linear().domain(dimensionExtent(dimension)).range([padFraction, 1 - padFraction]); + } + function ordinalScale(dimension) { + if (!dimension.tickvals) return; + var extent = dimensionExtent(dimension); + return d3.scale.ordinal().domain(dimension.tickvals).range(dimension.tickvals.map(function(d) { + return (d - extent[0]) / (extent[1] - extent[0]); + })); + } + function unitToColorScale(cscale) { + var colorStops = cscale.map(function(d) { + return d[0]; + }); + var colorTuples = cscale.map(function(d) { + var RGBA = rgba3(d[1]); + return d3.rgb("rgb(" + RGBA[0] + "," + RGBA[1] + "," + RGBA[2] + ")"); + }); + var prop = function(n) { + return function(o) { + return o[n]; + }; }; - v43 = { - "0": 0, - "1": 1, - "zero": 0, - "one": 1, - "src color": 768, - "one minus src color": 769, - "src alpha": 770, - "one minus src alpha": 771, - "dst color": 774, - "one minus dst color": 775, - "dst alpha": 772, - "one minus dst alpha": 773, - "constant color": 32769, - "one minus constant color": 32770, - "constant alpha": 32771, - "one minus constant alpha": 32772, - "src alpha saturate": 776 + var polylinearUnitScales = "rgb".split("").map(function(key) { + return d3.scale.linear().clamp(true).domain(colorStops).range(colorTuples.map(prop(key))); + }); + return function(d) { + return polylinearUnitScales.map(function(s) { + return s(d); + }); }; - v44 = { - "add": 32774, - "subtract": 32778, - "reverse subtract": 32779 + } + function someFiltersActive(view) { + return view.dimensions.some(function(p) { + return p.brush.filterSpecified; + }); + } + function model(layout, d, i) { + var cd0 = unwrap(d); + var trace = cd0.trace; + var lineColor = helpers.convertTypedArray(cd0.lineColor); + var line = trace.line; + var deselectedLines = { + color: rgba3(trace.unselected.line.color), + opacity: trace.unselected.line.opacity }; - v45 = { - "0": 0, - "zero": 0, - "keep": 7680, - "replace": 7681, - "increment": 7682, - "decrement": 7683, - "increment wrap": 34055, - "decrement wrap": 34056, - "invert": 5386 + var cOpts = Colorscale.extractOpts(line); + var cscale = cOpts.reversescale ? Colorscale.flipScale(cd0.cscale) : cd0.cscale; + var domain = trace.domain; + var dimensions = trace.dimensions; + var width = layout.width; + var labelAngle = trace.labelangle; + var labelSide = trace.labelside; + var labelFont = trace.labelfont; + var tickFont = trace.tickfont; + var rangeFont = trace.rangefont; + var lines = Lib.extendDeepNoArrays({}, line, { + color: lineColor.map(d3.scale.linear().domain( + dimensionExtent({ + values: lineColor, + range: [cOpts.min, cOpts.max], + _length: trace._length + }) + )), + blockLineCount: c.blockLineCount, + canvasOverdrag: c.overdrag * c.canvasPixelRatio + }); + var groupWidth = Math.floor(width * (domain.x[1] - domain.x[0])); + var groupHeight = Math.floor(layout.height * (domain.y[1] - domain.y[0])); + var pad = layout.margin || { l: 80, r: 80, t: 100, b: 80 }; + var rowContentWidth = groupWidth; + var rowHeight = groupHeight; + return { + key: i, + colCount: dimensions.filter(helpers.isVisible).length, + dimensions, + tickDistance: c.tickDistance, + unitToColor: unitToColorScale(cscale), + lines, + deselectedLines, + labelAngle, + labelSide, + labelFont, + tickFont, + rangeFont, + layoutWidth: width, + layoutHeight: layout.height, + domain, + translateX: domain.x[0] * width, + translateY: layout.height - domain.y[1] * layout.height, + pad, + canvasWidth: rowContentWidth * c.canvasPixelRatio + 2 * lines.canvasOverdrag, + canvasHeight: rowHeight * c.canvasPixelRatio, + width: rowContentWidth, + height: rowHeight, + canvasPixelRatio: c.canvasPixelRatio }; - v46 = { - "int8": 5120, - "int16": 5122, - "int32": 5124, - "uint8": 5121, - "uint16": 5123, - "uint32": 5125, - "float": 5126, - "float32": 5126 + } + function viewModel(state, callbacks, model2) { + var width = model2.width; + var height = model2.height; + var dimensions = model2.dimensions; + var canvasPixelRatio = model2.canvasPixelRatio; + var xScale = function(d) { + return width * d / Math.max(1, model2.colCount - 1); }; - v47 = { - "cw": 2304, - "ccw": 2305 + var unitPad = c.verticalPadding / height; + var _unitToPaddedPx = unitToPaddedPx(height, c.verticalPadding); + var vm = { + key: model2.key, + xScale, + model: model2, + inBrushDrag: false + // consider factoring it out and putting it in a centralized global-ish gesture state object }; - v49 = {}; - v50 = {}; - v178 = new Float32Array(16); - v181 = new Float32Array(16); - v184 = new Float32Array(16); - v187 = new Float32Array(16); - v190 = new Float32Array(16); - v193 = new Float32Array(16); - v196 = new Float32Array(16); - v199 = new Float32Array(16); - v204 = new Float32Array(16); - v207 = new Float32Array(16); - v210 = new Float32Array(16); - v213 = new Float32Array(16); - v216 = new Float32Array(16); - v219 = new Float32Array(16); - v222 = new Float32Array(16); - v225 = new Float32Array(16); - v705 = new Float32Array(16); - v707 = new Float32Array(16); - v709 = new Float32Array(16); - v711 = new Float32Array(16); - v713 = new Float32Array(16); - v715 = new Float32Array(16); - v717 = new Float32Array(16); - v719 = new Float32Array(16); - v723 = new Float32Array(16); - v725 = new Float32Array(16); - v727 = new Float32Array(16); - v729 = new Float32Array(16); - v731 = new Float32Array(16); - v733 = new Float32Array(16); - v735 = new Float32Array(16); - v737 = new Float32Array(16); - return { - "draw": function(a0) { - var v51, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v95, v96, v97, v98, v99, v100, v101, v102, v104, v108, v109, v112, v113, v116, v117, v120, v121, v124, v125, v128, v129, v132, v133, v136, v137, v140, v141, v144, v145, v148, v149, v152, v153, v156, v157, v160, v161, v164, v165, v168, v169, v171, v172, v173, v174, v175, v177, v180, v183, v186, v189, v192, v195, v198, v201, v203, v206, v209, v212, v215, v218, v221, v224, v227, v229, v230, v234, v235, v236, v238, v239, v240, v242, v243, v244, v245, v246, v247; - v51 = v13.next; - if (v51 !== v13.cur) { - if (v51) { - v1.bindFramebuffer(36160, v51.framebuffer); - } else { - v1.bindFramebuffer(36160, null); - } - v13.cur = v51; + var uniqueKeys = {}; + vm.dimensions = dimensions.filter(helpers.isVisible).map(function(dimension, i) { + var domainToPaddedUnit = domainToPaddedUnitScale(dimension, unitPad); + var foundKey = uniqueKeys[dimension.label]; + uniqueKeys[dimension.label] = (foundKey || 0) + 1; + var key = dimension.label + (foundKey ? "__" + foundKey : ""); + var specifiedConstraint = dimension.constraintrange; + var filterRangeSpecified = specifiedConstraint && specifiedConstraint.length; + if (filterRangeSpecified && !isArrayOrTypedArray(specifiedConstraint[0])) { + specifiedConstraint = [specifiedConstraint]; + } + var filterRange = filterRangeSpecified ? specifiedConstraint.map(function(d) { + return d.map(domainToPaddedUnit); + }) : [[-Infinity, Infinity]]; + var brushMove = function() { + var p = vm; + p.focusLayer && p.focusLayer.render(p.panels, true); + var filtersActive = someFiltersActive(p); + if (!state.contextShown() && filtersActive) { + p.contextLayer && p.contextLayer.render(p.panels, true); + state.contextShown(true); + } else if (state.contextShown() && !filtersActive) { + p.contextLayer && p.contextLayer.render(p.panels, true, true); + state.contextShown(false); } - if (v5.dirty) { - var v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76; - v52 = v25[0]; - v53 = v25[1]; - v54 = v25[2]; - v55 = v25[3]; - if (v52 !== v26[0] || v53 !== v26[1] || v54 !== v26[2] || v55 !== v26[3]) { - v1.colorMask(v52, v53, v54, v55); - v26[0] = v52; - v26[1] = v53; - v26[2] = v54; - v26[3] = v55; - } - v56 = v4.frontFace; - if (v56 !== v5.frontFace) { - v1.frontFace(v56); - v5.frontFace = v56; - } - v57 = v4.polygonOffset_enable; - if (v57 !== v5.polygonOffset_enable) { - if (v57) { - v1.enable(32823); - } else { - v1.disable(32823); + }; + var truncatedValues = dimension.values; + if (truncatedValues.length > dimension._length) { + truncatedValues = truncatedValues.slice(0, dimension._length); + } + var tickvals = dimension.tickvals; + var ticktext; + function makeTickItem(v, i2) { + return { val: v, text: ticktext[i2] }; + } + function sortTickItem(a, b) { + return a.val - b.val; + } + if (isArrayOrTypedArray(tickvals) && tickvals.length) { + if (Lib.isTypedArray(tickvals)) tickvals = Array.from(tickvals); + ticktext = dimension.ticktext; + if (!isArrayOrTypedArray(ticktext) || !ticktext.length) { + ticktext = tickvals.map(numberFormat(dimension.tickformat)); + } else if (ticktext.length > tickvals.length) { + ticktext = ticktext.slice(0, tickvals.length); + } else if (tickvals.length > ticktext.length) { + tickvals = tickvals.slice(0, ticktext.length); + } + for (var j = 1; j < tickvals.length; j++) { + if (tickvals[j] < tickvals[j - 1]) { + var tickItems = tickvals.map(makeTickItem).sort(sortTickItem); + for (var k = 0; k < tickvals.length; k++) { + tickvals[k] = tickItems[k].val; + ticktext[k] = tickItems[k].text; } - v5.polygonOffset_enable = v57; - } - v58 = v27[0]; - v59 = v27[1]; - if (v58 !== v28[0] || v59 !== v28[1]) { - v1.polygonOffset(v58, v59); - v28[0] = v58; - v28[1] = v59; + break; } - v60 = v4.sample_alpha; - if (v60 !== v5.sample_alpha) { - if (v60) { - v1.enable(32926); - } else { - v1.disable(32926); + } + } else tickvals = void 0; + truncatedValues = helpers.convertTypedArray(truncatedValues); + return { + key, + label: dimension.label, + tickFormat: dimension.tickformat, + tickvals, + ticktext, + ordinal: helpers.isOrdinal(dimension), + multiselect: dimension.multiselect, + xIndex: i, + crossfilterDimensionIndex: i, + visibleIndex: dimension._index, + height, + values: truncatedValues, + paddedUnitValues: truncatedValues.map(domainToPaddedUnit), + unitTickvals: tickvals && tickvals.map(domainToPaddedUnit), + xScale, + x: xScale(i), + canvasX: xScale(i) * canvasPixelRatio, + unitToPaddedPx: _unitToPaddedPx, + domainScale: domainScale(height, c.verticalPadding, dimension, tickvals, ticktext), + ordinalScale: ordinalScale(dimension), + parent: vm, + model: model2, + brush: brush.makeBrush( + state, + filterRangeSpecified, + filterRange, + function() { + state.linePickActive(false); + }, + brushMove, + function(f) { + vm.focusLayer.render(vm.panels, true); + vm.pickLayer && vm.pickLayer.render(vm.panels, true); + state.linePickActive(true); + if (callbacks && callbacks.filterChanged) { + var invScale = domainToPaddedUnit.invert; + var newRanges = f.map(function(r) { + return r.map(invScale).sort(Lib.sorterAsc); + }).sort(function(a, b) { + return a[0] - b[0]; + }); + callbacks.filterChanged(vm.key, dimension._index, newRanges); } - v5.sample_alpha = v60; } - v61 = v4.sample_enable; - if (v61 !== v5.sample_enable) { - if (v61) { - v1.enable(32928); + ) + }; + }); + return vm; + } + function styleExtentTexts(selection) { + selection.classed(c.cn.axisExtentText, true).attr("text-anchor", "middle").style("cursor", "default"); + } + function parcoordsInteractionState() { + var linePickActive = true; + var contextShown = false; + return { + linePickActive: function(val) { + return arguments.length ? linePickActive = !!val : linePickActive; + }, + contextShown: function(val) { + return arguments.length ? contextShown = !!val : contextShown; + } + }; + } + function calcTilt(angle, position) { + var dir = position === "top" ? 1 : -1; + var radians2 = angle * Math.PI / 180; + var dx = Math.sin(radians2); + var dy = Math.cos(radians2); + return { + dir, + dx, + dy, + degrees: angle + }; + } + function updatePanelLayout(yAxis, vm, plotGlPixelRatio) { + var panels = vm.panels || (vm.panels = []); + var data = yAxis.data(); + for (var i = 0; i < data.length - 1; i++) { + var p = panels[i] || (panels[i] = {}); + var dim0 = data[i]; + var dim1 = data[i + 1]; + p.dim0 = dim0; + p.dim1 = dim1; + p.canvasX = dim0.canvasX; + p.panelSizeX = dim1.canvasX - dim0.canvasX; + p.panelSizeY = vm.model.canvasHeight; + p.y = 0; + p.canvasY = 0; + p.plotGlPixelRatio = plotGlPixelRatio; + } + } + function calcAllTicks(cd) { + for (var i = 0; i < cd.length; i++) { + for (var j = 0; j < cd[i].length; j++) { + var trace = cd[i][j].trace; + var dimensions = trace.dimensions; + for (var k = 0; k < dimensions.length; k++) { + var values = dimensions[k].values; + var dim = dimensions[k]._ax; + if (dim) { + if (!dim.range) { + dim.range = findExtremes(values, trace._length); } else { - v1.disable(32928); + dim.range = fixExtremes(dim.range[0], dim.range[1]); } - v5.sample_enable = v61; - } - v62 = v29[0]; - v63 = v29[1]; - if (v62 !== v30[0] || v63 !== v30[1]) { - v1.sampleCoverage(v62, v63); - v30[0] = v62; - v30[1] = v63; - } - v64 = v4.stencil_enable; - if (v64 !== v5.stencil_enable) { - if (v64) { - v1.enable(2960); - } else { - v1.disable(2960); + if (!dim.dtick) { + dim.dtick = 0.01 * (Math.abs(dim.range[1] - dim.range[0]) || 1); } - v5.stencil_enable = v64; - } - v65 = v4.stencil_mask; - if (v65 !== v5.stencil_mask) { - v1.stencilMask(v65); - v5.stencil_mask = v65; - } - v66 = v31[0]; - v67 = v31[1]; - v68 = v31[2]; - if (v66 !== v32[0] || v67 !== v32[1] || v68 !== v32[2]) { - v1.stencilFunc(v66, v67, v68); - v32[0] = v66; - v32[1] = v67; - v32[2] = v68; - } - v69 = v33[0]; - v70 = v33[1]; - v71 = v33[2]; - v72 = v33[3]; - if (v69 !== v34[0] || v70 !== v34[1] || v71 !== v34[2] || v72 !== v34[3]) { - v1.stencilOpSeparate(v69, v70, v71, v72); - v34[0] = v69; - v34[1] = v70; - v34[2] = v71; - v34[3] = v72; - } - v73 = v35[0]; - v74 = v35[1]; - v75 = v35[2]; - v76 = v35[3]; - if (v73 !== v36[0] || v74 !== v36[1] || v75 !== v36[2] || v76 !== v36[3]) { - v1.stencilOpSeparate(v73, v74, v75, v76); - v36[0] = v73; - v36[1] = v74; - v36[2] = v75; - v36[3] = v76; + dim.tickformat = dimensions[k].tickformat; + Axes.calcTicks(dim); + dim.cleanRange(); } } - v77 = a0["viewportX"]; - v49.x = v77; - v78 = a0["viewportY"]; - v49.y = v78; - v79 = a0["viewportWidth"]; - v49.width = v79; - v80 = a0["viewportHeight"]; - v49.height = v80; - v81 = v49.x | 0; - v82 = v49.y | 0; - v83 = "width" in v49 ? v49.width | 0 : v2.framebufferWidth - v81; - v84 = "height" in v49 ? v49.height | 0 : v2.framebufferHeight - v82; - v85 = v2.viewportWidth; - v2.viewportWidth = v83; - v86 = v2.viewportHeight; - v2.viewportHeight = v84; - v1.viewport(v81, v82, v83, v84); - v40[0] = v81; - v40[1] = v82; - v40[2] = v83; - v40[3] = v84; - v1.blendColor(0, 0, 0, 0); - v18[0] = 0; - v18[1] = 0; - v18[2] = 0; - v18[3] = 0; - if (g87) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = g87; - v1.blendEquationSeparate(32774, 32774); - v20[0] = 32774; - v20[1] = 32774; - v1.blendFuncSeparate(770, 771, 1, 1); - v22[0] = 770; - v22[1] = 771; - v22[2] = 1; - v22[3] = 1; - if (g88) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = g88; - v1.cullFace(g89); - v5.cull_face = g89; - if (g90) { - v1.enable(2929); - } else { - v1.disable(2929); + } + } + } + function linearFormat(dim, v) { + return Axes.tickText(dim._ax, v, false).text; + } + function extremeText(d, isTop) { + if (d.ordinal) return ""; + var domain = d.domainScale.domain(); + var v = domain[isTop ? domain.length - 1 : 0]; + return linearFormat(d.model.dimensions[d.visibleIndex], v); + } + module.exports = function parcoords(gd, cdModule, layout, callbacks) { + var isStatic = gd._context.staticPlot; + var fullLayout = gd._fullLayout; + var svg = fullLayout._toppaper; + var glContainer = fullLayout._glcontainer; + var plotGlPixelRatio = gd._context.plotGlPixelRatio; + var paperColor = gd._fullLayout.paper_bgcolor; + calcAllTicks(cdModule); + var state = parcoordsInteractionState(); + var vm = cdModule.filter(function(d) { + return unwrap(d).trace.visible; + }).map(model.bind(0, layout)).map(viewModel.bind(0, state, callbacks)); + glContainer.each(function(d, i) { + return Lib.extendFlat(d, vm[i]); + }); + var glLayers = glContainer.selectAll(".gl-canvas").each(function(d) { + d.viewModel = vm[0]; + d.viewModel.plotGlPixelRatio = plotGlPixelRatio; + d.viewModel.paperColor = paperColor; + d.model = d.viewModel ? d.viewModel.model : null; + }); + var lastHovered = null; + var pickLayer = glLayers.filter(function(d) { + return d.pick; + }); + pickLayer.style("pointer-events", isStatic ? "none" : "auto").on("mousemove", function(d) { + if (state.linePickActive() && d.lineLayer && callbacks && callbacks.hover) { + var event = d3.event; + var cw = this.width; + var ch = this.height; + var pointer = d3.mouse(this); + var x = pointer[0]; + var y = pointer[1]; + if (x < 0 || y < 0 || x >= cw || y >= ch) { + return; } - v5.depth_enable = g90; - v1.depthFunc(g91); - v5.depth_func = g91; - v1.depthMask(g92); - v5.depth_mask = g92; - v1.depthRange(0, 1); - v24[0] = 0; - v24[1] = 1; - if (g93) { - v1.enable(3024); - } else { - v1.disable(3024); + var pixel = d.lineLayer.readPixel(x, ch - 1 - y); + var found = pixel[3] !== 0; + var curveNumber = found ? pixel[2] + 256 * (pixel[1] + 256 * pixel[0]) : null; + var eventData = { + x, + y, + clientX: event.clientX, + clientY: event.clientY, + dataIndex: d.model.key, + curveNumber + }; + if (curveNumber !== lastHovered) { + if (found) { + callbacks.hover(eventData); + } else if (callbacks.unhover) { + callbacks.unhover(eventData); + } + lastHovered = curveNumber; } - v5.dither = g93; - v1.lineWidth(g94); - v5.lineWidth = g94; - v95 = a0["scissorX"]; - v50.x = v95; - v96 = a0["scissorY"]; - v50.y = v96; - v97 = a0["scissorWidth"]; - v50.width = v97; - v98 = a0["scissorHeight"]; - v50.height = v98; - v99 = v50.x | 0; - v100 = v50.y | 0; - v101 = "width" in v50 ? v50.width | 0 : v2.framebufferWidth - v99; - v102 = "height" in v50 ? v50.height | 0 : v2.framebufferHeight - v100; - v1.scissor(v99, v100, v101, v102); - v38[0] = v99; - v38[1] = v100; - v38[2] = v101; - v38[3] = v102; - if (g103) { - v1.enable(3089); - } else { - v1.disable(3089); - } - v5.scissor_enable = g103; - v104 = v5.profile; - v5.profile = false; - v1.useProgram(g105.program); - v11.setVAO(null); - v108 = g107.location; - v109 = v10[v108]; - if (!v109.buffer) { - v1.enableVertexAttribArray(v108); - } - if (v109.type !== g106.dtype || v109.size !== 4 || v109.buffer !== g106 || v109.normalized !== false || v109.offset !== 0 || v109.stride !== 0) { - v1.bindBuffer(34962, g106.buffer); - v1.vertexAttribPointer(v108, 4, g106.dtype, false, 0, 0); - v109.type = g106.dtype; - v109.size = 4; - v109.buffer = g106; - v109.normalized = false; - v109.offset = 0; - v109.stride = 0; - } - v112 = g111.location; - v113 = v10[v112]; - if (!v113.buffer) { - v1.enableVertexAttribArray(v112); - } - if (v113.type !== g110.dtype || v113.size !== 4 || v113.buffer !== g110 || v113.normalized !== false || v113.offset !== 0 || v113.stride !== 0) { - v1.bindBuffer(34962, g110.buffer); - v1.vertexAttribPointer(v112, 4, g110.dtype, false, 0, 0); - v113.type = g110.dtype; - v113.size = 4; - v113.buffer = g110; - v113.normalized = false; - v113.offset = 0; - v113.stride = 0; - } - v116 = g115.location; - v117 = v10[v116]; - if (!v117.buffer) { - v1.enableVertexAttribArray(v116); - } - if (v117.type !== g114.dtype || v117.size !== 4 || v117.buffer !== g114 || v117.normalized !== false || v117.offset !== 0 || v117.stride !== 0) { - v1.bindBuffer(34962, g114.buffer); - v1.vertexAttribPointer(v116, 4, g114.dtype, false, 0, 0); - v117.type = g114.dtype; - v117.size = 4; - v117.buffer = g114; - v117.normalized = false; - v117.offset = 0; - v117.stride = 0; - } - v120 = g119.location; - v121 = v10[v120]; - if (!v121.buffer) { - v1.enableVertexAttribArray(v120); - } - if (v121.type !== g118.dtype || v121.size !== 4 || v121.buffer !== g118 || v121.normalized !== false || v121.offset !== 0 || v121.stride !== 0) { - v1.bindBuffer(34962, g118.buffer); - v1.vertexAttribPointer(v120, 4, g118.dtype, false, 0, 0); - v121.type = g118.dtype; - v121.size = 4; - v121.buffer = g118; - v121.normalized = false; - v121.offset = 0; - v121.stride = 0; - } - v124 = g123.location; - v125 = v10[v124]; - if (!v125.buffer) { - v1.enableVertexAttribArray(v124); - } - if (v125.type !== g122.dtype || v125.size !== 4 || v125.buffer !== g122 || v125.normalized !== false || v125.offset !== 0 || v125.stride !== 0) { - v1.bindBuffer(34962, g122.buffer); - v1.vertexAttribPointer(v124, 4, g122.dtype, false, 0, 0); - v125.type = g122.dtype; - v125.size = 4; - v125.buffer = g122; - v125.normalized = false; - v125.offset = 0; - v125.stride = 0; - } - v128 = g127.location; - v129 = v10[v128]; - if (!v129.buffer) { - v1.enableVertexAttribArray(v128); - } - if (v129.type !== g126.dtype || v129.size !== 4 || v129.buffer !== g126 || v129.normalized !== false || v129.offset !== 0 || v129.stride !== 0) { - v1.bindBuffer(34962, g126.buffer); - v1.vertexAttribPointer(v128, 4, g126.dtype, false, 0, 0); - v129.type = g126.dtype; - v129.size = 4; - v129.buffer = g126; - v129.normalized = false; - v129.offset = 0; - v129.stride = 0; - } - v132 = g131.location; - v133 = v10[v132]; - if (!v133.buffer) { - v1.enableVertexAttribArray(v132); - } - if (v133.type !== g130.dtype || v133.size !== 4 || v133.buffer !== g130 || v133.normalized !== false || v133.offset !== 0 || v133.stride !== 0) { - v1.bindBuffer(34962, g130.buffer); - v1.vertexAttribPointer(v132, 4, g130.dtype, false, 0, 0); - v133.type = g130.dtype; - v133.size = 4; - v133.buffer = g130; - v133.normalized = false; - v133.offset = 0; - v133.stride = 0; - } - v136 = g135.location; - v137 = v10[v136]; - if (!v137.buffer) { - v1.enableVertexAttribArray(v136); - } - if (v137.type !== g134.dtype || v137.size !== 4 || v137.buffer !== g134 || v137.normalized !== false || v137.offset !== 0 || v137.stride !== 0) { - v1.bindBuffer(34962, g134.buffer); - v1.vertexAttribPointer(v136, 4, g134.dtype, false, 0, 0); - v137.type = g134.dtype; - v137.size = 4; - v137.buffer = g134; - v137.normalized = false; - v137.offset = 0; - v137.stride = 0; - } - v140 = g139.location; - v141 = v10[v140]; - if (!v141.buffer) { - v1.enableVertexAttribArray(v140); - } - if (v141.type !== g138.dtype || v141.size !== 4 || v141.buffer !== g138 || v141.normalized !== false || v141.offset !== 0 || v141.stride !== 0) { - v1.bindBuffer(34962, g138.buffer); - v1.vertexAttribPointer(v140, 4, g138.dtype, false, 0, 0); - v141.type = g138.dtype; - v141.size = 4; - v141.buffer = g138; - v141.normalized = false; - v141.offset = 0; - v141.stride = 0; - } - v144 = g143.location; - v145 = v10[v144]; - if (!v145.buffer) { - v1.enableVertexAttribArray(v144); - } - if (v145.type !== g142.dtype || v145.size !== 4 || v145.buffer !== g142 || v145.normalized !== false || v145.offset !== 0 || v145.stride !== 0) { - v1.bindBuffer(34962, g142.buffer); - v1.vertexAttribPointer(v144, 4, g142.dtype, false, 0, 0); - v145.type = g142.dtype; - v145.size = 4; - v145.buffer = g142; - v145.normalized = false; - v145.offset = 0; - v145.stride = 0; - } - v148 = g147.location; - v149 = v10[v148]; - if (!v149.buffer) { - v1.enableVertexAttribArray(v148); - } - if (v149.type !== g146.dtype || v149.size !== 4 || v149.buffer !== g146 || v149.normalized !== false || v149.offset !== 0 || v149.stride !== 0) { - v1.bindBuffer(34962, g146.buffer); - v1.vertexAttribPointer(v148, 4, g146.dtype, false, 0, 0); - v149.type = g146.dtype; - v149.size = 4; - v149.buffer = g146; - v149.normalized = false; - v149.offset = 0; - v149.stride = 0; + } + }); + glLayers.style("opacity", function(d) { + return d.pick ? 0 : 1; + }); + svg.style("background", "rgba(255, 255, 255, 0)"); + var controlOverlay = svg.selectAll("." + c.cn.parcoords).data(vm, keyFun); + controlOverlay.exit().remove(); + controlOverlay.enter().append("g").classed(c.cn.parcoords, true).style("shape-rendering", "crispEdges").style("pointer-events", "none"); + controlOverlay.attr("transform", function(d) { + return strTranslate(d.model.translateX, d.model.translateY); + }); + var parcoordsControlView = controlOverlay.selectAll("." + c.cn.parcoordsControlView).data(repeat, keyFun); + parcoordsControlView.enter().append("g").classed(c.cn.parcoordsControlView, true); + parcoordsControlView.attr("transform", function(d) { + return strTranslate(d.model.pad.l, d.model.pad.t); + }); + var yAxis = parcoordsControlView.selectAll("." + c.cn.yAxis).data(function(p) { + return p.dimensions; + }, keyFun); + yAxis.enter().append("g").classed(c.cn.yAxis, true); + parcoordsControlView.each(function(p) { + updatePanelLayout(yAxis, p, plotGlPixelRatio); + }); + glLayers.each(function(d) { + if (d.viewModel) { + if (!d.lineLayer || callbacks) { + d.lineLayer = lineLayerMaker(this, d); + } else d.lineLayer.update(d); + if (d.key || d.key === 0) d.viewModel[d.key] = d.lineLayer; + var setChanged = !d.context || // don't update background + callbacks; + d.lineLayer.render(d.viewModel.panels, setChanged); + } + }); + yAxis.attr("transform", function(d) { + return strTranslate(d.xScale(d.xIndex), 0); + }); + yAxis.call( + d3.behavior.drag().origin(function(d) { + return d; + }).on("drag", function(d) { + var p = d.parent; + state.linePickActive(false); + d.x = Math.max(-c.overdrag, Math.min(d.model.width + c.overdrag, d3.event.x)); + d.canvasX = d.x * d.model.canvasPixelRatio; + yAxis.sort(function(a, b) { + return a.x - b.x; + }).each(function(e, i) { + e.xIndex = i; + e.x = d === e ? e.x : e.xScale(e.xIndex); + e.canvasX = e.x * e.model.canvasPixelRatio; + }); + updatePanelLayout(yAxis, p, plotGlPixelRatio); + yAxis.filter(function(e) { + return Math.abs(d.xIndex - e.xIndex) !== 0; + }).attr("transform", function(d2) { + return strTranslate(d2.xScale(d2.xIndex), 0); + }); + d3.select(this).attr("transform", strTranslate(d.x, 0)); + yAxis.each(function(e, i0, i1) { + if (i1 === d.parent.key) p.dimensions[i0] = e; + }); + p.contextLayer && p.contextLayer.render(p.panels, false, !someFiltersActive(p)); + p.focusLayer.render && p.focusLayer.render(p.panels); + }).on("dragend", function(d) { + var p = d.parent; + d.x = d.xScale(d.xIndex); + d.canvasX = d.x * d.model.canvasPixelRatio; + updatePanelLayout(yAxis, p, plotGlPixelRatio); + d3.select(this).attr("transform", function(d2) { + return strTranslate(d2.x, 0); + }); + p.contextLayer && p.contextLayer.render(p.panels, false, !someFiltersActive(p)); + p.focusLayer && p.focusLayer.render(p.panels); + p.pickLayer && p.pickLayer.render(p.panels, true); + state.linePickActive(true); + if (callbacks && callbacks.axesMoved) { + callbacks.axesMoved(p.key, p.dimensions.map(function(e) { + return e.crossfilterDimensionIndex; + })); } - v152 = g151.location; - v153 = v10[v152]; - if (!v153.buffer) { - v1.enableVertexAttribArray(v152); + }) + ); + yAxis.exit().remove(); + var axisOverlays = yAxis.selectAll("." + c.cn.axisOverlays).data(repeat, keyFun); + axisOverlays.enter().append("g").classed(c.cn.axisOverlays, true); + axisOverlays.selectAll("." + c.cn.axis).remove(); + var axis = axisOverlays.selectAll("." + c.cn.axis).data(repeat, keyFun); + axis.enter().append("g").classed(c.cn.axis, true); + axis.each(function(d) { + var wantedTickCount = d.model.height / d.model.tickDistance; + var scale = d.domainScale; + var sdom = scale.domain(); + d3.select(this).call(d3.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(wantedTickCount, d.tickFormat).tickValues(d.ordinal ? ( + // and this works for ordinal scales + sdom + ) : null).tickFormat(function(v) { + return helpers.isOrdinal(d) ? v : linearFormat(d.model.dimensions[d.visibleIndex], v); + }).scale(scale)); + Drawing.font(axis.selectAll("text"), d.model.tickFont); + }); + axis.selectAll(".domain, .tick>line").attr("fill", "none").attr("stroke", "black").attr("stroke-opacity", 0.25).attr("stroke-width", "1px"); + axis.selectAll("text").style("cursor", "default"); + var axisHeading = axisOverlays.selectAll("." + c.cn.axisHeading).data(repeat, keyFun); + axisHeading.enter().append("g").classed(c.cn.axisHeading, true); + var axisTitle = axisHeading.selectAll("." + c.cn.axisTitle).data(repeat, keyFun); + axisTitle.enter().append("text").classed(c.cn.axisTitle, true).attr("text-anchor", "middle").style("cursor", "ew-resize").style("pointer-events", isStatic ? "none" : "auto"); + axisTitle.text(function(d) { + return d.label; + }).each(function(d) { + var e = d3.select(this); + Drawing.font(e, d.model.labelFont); + svgTextUtils.convertToTspans(e, gd); + }).attr("transform", function(d) { + var tilt = calcTilt(d.model.labelAngle, d.model.labelSide); + var r = c.axisTitleOffset; + return (tilt.dir > 0 ? "" : strTranslate(0, 2 * r + d.model.height)) + strRotate(tilt.degrees) + strTranslate(-r * tilt.dx, -r * tilt.dy); + }).attr("text-anchor", function(d) { + var tilt = calcTilt(d.model.labelAngle, d.model.labelSide); + var adx = Math.abs(tilt.dx); + var ady = Math.abs(tilt.dy); + if (2 * adx > ady) { + return tilt.dir * tilt.dx < 0 ? "start" : "end"; + } else { + return "middle"; + } + }); + var axisExtent = axisOverlays.selectAll("." + c.cn.axisExtent).data(repeat, keyFun); + axisExtent.enter().append("g").classed(c.cn.axisExtent, true); + var axisExtentTop = axisExtent.selectAll("." + c.cn.axisExtentTop).data(repeat, keyFun); + axisExtentTop.enter().append("g").classed(c.cn.axisExtentTop, true); + axisExtentTop.attr("transform", strTranslate(0, -c.axisExtentOffset)); + var axisExtentTopText = axisExtentTop.selectAll("." + c.cn.axisExtentTopText).data(repeat, keyFun); + axisExtentTopText.enter().append("text").classed(c.cn.axisExtentTopText, true).call(styleExtentTexts); + axisExtentTopText.text(function(d) { + return extremeText(d, true); + }).each(function(d) { + Drawing.font(d3.select(this), d.model.rangeFont); + }); + var axisExtentBottom = axisExtent.selectAll("." + c.cn.axisExtentBottom).data(repeat, keyFun); + axisExtentBottom.enter().append("g").classed(c.cn.axisExtentBottom, true); + axisExtentBottom.attr("transform", function(d) { + return strTranslate(0, d.model.height + c.axisExtentOffset); + }); + var axisExtentBottomText = axisExtentBottom.selectAll("." + c.cn.axisExtentBottomText).data(repeat, keyFun); + axisExtentBottomText.enter().append("text").classed(c.cn.axisExtentBottomText, true).attr("dy", "0.75em").call(styleExtentTexts); + axisExtentBottomText.text(function(d) { + return extremeText(d, false); + }).each(function(d) { + Drawing.font(d3.select(this), d.model.rangeFont); + }); + brush.ensureAxisBrush(axisOverlays, paperColor, gd); + }; + } + }); + + // src/traces/parcoords/plot.js + var require_plot21 = __commonJS({ + "src/traces/parcoords/plot.js"(exports, module) { + "use strict"; + var parcoords = require_parcoords(); + var prepareRegl = require_prepare_regl(); + var isVisible = require_helpers18().isVisible; + var reglPrecompiled = {}; + function newIndex(visibleIndices, orig, dim) { + var origIndex = orig.indexOf(dim); + var currentIndex = visibleIndices.indexOf(origIndex); + if (currentIndex === -1) { + currentIndex += orig.length; + } + return currentIndex; + } + function sorter(visibleIndices, orig) { + return function sorter2(d1, d2) { + return newIndex(visibleIndices, orig, d1) - newIndex(visibleIndices, orig, d2); + }; + } + var exports = module.exports = function plot(gd, cdModule) { + var fullLayout = gd._fullLayout; + var success = prepareRegl(gd, [], reglPrecompiled); + if (!success) return; + var currentDims = {}; + var initialDims = {}; + var fullIndices = {}; + var inputIndices = {}; + var size = fullLayout._size; + cdModule.forEach(function(d, i) { + var trace = d[0].trace; + fullIndices[i] = trace.index; + var iIn = inputIndices[i] = trace.index; + currentDims[i] = gd.data[iIn].dimensions; + initialDims[i] = gd.data[iIn].dimensions.slice(); + }); + var filterChanged = function(i, initialDimIndex, newRanges) { + var dim = initialDims[i][initialDimIndex]; + var newConstraints = newRanges.map(function(r) { + return r.slice(); + }); + var aStr = "dimensions[" + initialDimIndex + "].constraintrange"; + var preGUI = fullLayout._tracePreGUI[gd._fullData[fullIndices[i]]._fullInput.uid]; + if (preGUI[aStr] === void 0) { + var initialVal = dim.constraintrange; + preGUI[aStr] = initialVal || null; + } + var fullDimension = gd._fullData[fullIndices[i]].dimensions[initialDimIndex]; + if (!newConstraints.length) { + delete dim.constraintrange; + delete fullDimension.constraintrange; + newConstraints = null; + } else { + if (newConstraints.length === 1) newConstraints = newConstraints[0]; + dim.constraintrange = newConstraints; + fullDimension.constraintrange = newConstraints.slice(); + newConstraints = [newConstraints]; + } + var restyleData = {}; + restyleData[aStr] = newConstraints; + gd.emit("plotly_restyle", [restyleData, [inputIndices[i]]]); + }; + var hover = function(eventData) { + gd.emit("plotly_hover", eventData); + }; + var unhover = function(eventData) { + gd.emit("plotly_unhover", eventData); + }; + var axesMoved = function(i, visibleIndices) { + var orig = sorter(visibleIndices, initialDims[i].filter(isVisible)); + currentDims[i].sort(orig); + initialDims[i].filter(function(d) { + return !isVisible(d); + }).sort(function(d) { + return initialDims[i].indexOf(d); + }).forEach(function(d) { + currentDims[i].splice(currentDims[i].indexOf(d), 1); + currentDims[i].splice(initialDims[i].indexOf(d), 0, d); + }); + gd.emit("plotly_restyle", [{ dimensions: [currentDims[i]] }, [inputIndices[i]]]); + }; + parcoords( + gd, + cdModule, + { + // layout + width: size.w, + height: size.h, + margin: { + t: size.t, + r: size.r, + b: size.b, + l: size.l } - if (v153.type !== g150.dtype || v153.size !== 4 || v153.buffer !== g150 || v153.normalized !== false || v153.offset !== 0 || v153.stride !== 0) { - v1.bindBuffer(34962, g150.buffer); - v1.vertexAttribPointer(v152, 4, g150.dtype, false, 0, 0); - v153.type = g150.dtype; - v153.size = 4; - v153.buffer = g150; - v153.normalized = false; - v153.offset = 0; - v153.stride = 0; + }, + { + // callbacks + filterChanged, + hover, + unhover, + axesMoved + } + ); + }; + exports.reglPrecompiled = reglPrecompiled; + } + }); + + // src/traces/parcoords/base_plot.js + var require_base_plot7 = __commonJS({ + "src/traces/parcoords/base_plot.js"(exports) { + "use strict"; + var d3 = require_d3(); + var getModuleCalcData = require_get_data().getModuleCalcData; + var parcoordsPlot = require_plot21(); + var xmlnsNamespaces = require_xmlns_namespaces(); + exports.name = "parcoords"; + exports.plot = function(gd) { + var calcData = getModuleCalcData(gd.calcdata, "parcoords")[0]; + if (calcData.length) parcoordsPlot(gd, calcData); + }; + exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout) { + var hadParcoords = oldFullLayout._has && oldFullLayout._has("parcoords"); + var hasParcoords = newFullLayout._has && newFullLayout._has("parcoords"); + if (hadParcoords && !hasParcoords) { + oldFullLayout._paperdiv.selectAll(".parcoords").remove(); + oldFullLayout._glimages.selectAll("*").remove(); + } + }; + exports.toSVG = function(gd) { + var imageRoot = gd._fullLayout._glimages; + var root = d3.select(gd).selectAll(".svg-container"); + var canvases = root.filter(function(d, i) { + return i === root.size() - 1; + }).selectAll(".gl-canvas-context, .gl-canvas-focus"); + function canvasToImage() { + var canvas = this; + var imageData = canvas.toDataURL("image/png"); + var image = imageRoot.append("svg:image"); + image.attr({ + xmlns: xmlnsNamespaces.svg, + "xlink:href": imageData, + preserveAspectRatio: "none", + x: 0, + y: 0, + width: canvas.style.width, + height: canvas.style.height + }); + } + canvases.each(canvasToImage); + window.setTimeout(function() { + d3.selectAll("#filterBarPattern").attr("id", "filterBarPattern"); + }, 60); + }; + } + }); + + // src/traces/parcoords/base_index.js + var require_base_index3 = __commonJS({ + "src/traces/parcoords/base_index.js"(exports, module) { + "use strict"; + module.exports = { + attributes: require_attributes52(), + supplyDefaults: require_defaults48(), + calc: require_calc31(), + colorbar: { + container: "line", + min: "cmin", + max: "cmax" + }, + moduleType: "trace", + name: "parcoords", + basePlotModule: require_base_plot7(), + categories: ["gl", "regl", "noOpacity", "noHover"], + meta: {} + }; + } + }); + + // src/generated/regl-codegen/30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0 + var require_f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0 = __commonJS({ + "src/generated/regl-codegen/30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0"(exports, module) { + module.exports = function anonymous(g0, g48, g114, g124, g126, g132, g134, g194) { + "use strict"; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v111, v191; + v1 = g0.gl; + v2 = g0.context; + v3 = g0.strings; + v4 = g0.next; + v5 = g0.current; + v6 = g0.draw; + v7 = g0.elements; + v8 = g0.buffer; + v9 = g0.shader; + v10 = g0.attributes; + v11 = g0.vao; + v12 = g0.uniforms; + v13 = g0.framebuffer; + v14 = g0.extensions; + v15 = g0.timer; + v16 = g0.isBufferArgs; + v17 = v4.blend_color; + v18 = v5.blend_color; + v19 = v4.blend_equation; + v20 = v5.blend_equation; + v21 = v4.blend_func; + v22 = v5.blend_func; + v23 = v4.depth_range; + v24 = v5.depth_range; + v25 = v4.colorMask; + v26 = v5.colorMask; + v27 = v4.polygonOffset_offset; + v28 = v5.polygonOffset_offset; + v29 = v4.sample_coverage; + v30 = v5.sample_coverage; + v31 = v4.stencil_func; + v32 = v5.stencil_func; + v33 = v4.stencil_opFront; + v34 = v5.stencil_opFront; + v35 = v4.stencil_opBack; + v36 = v5.stencil_opBack; + v37 = v4.scissor_box; + v38 = v5.scissor_box; + v39 = v4.viewport; + v40 = v5.viewport; + v41 = { + "points": 0, + "point": 0, + "lines": 1, + "line": 1, + "triangles": 4, + "triangle": 4, + "line loop": 2, + "line strip": 3, + "triangle strip": 5, + "triangle fan": 6 + }; + v42 = { + "never": 512, + "less": 513, + "<": 513, + "equal": 514, + "=": 514, + "==": 514, + "===": 514, + "lequal": 515, + "<=": 515, + "greater": 516, + ">": 516, + "notequal": 517, + "!=": 517, + "!==": 517, + "gequal": 518, + ">=": 518, + "always": 519 + }; + v43 = { + "0": 0, + "1": 1, + "zero": 0, + "one": 1, + "src color": 768, + "one minus src color": 769, + "src alpha": 770, + "one minus src alpha": 771, + "dst color": 774, + "one minus dst color": 775, + "dst alpha": 772, + "one minus dst alpha": 773, + "constant color": 32769, + "one minus constant color": 32770, + "constant alpha": 32771, + "one minus constant alpha": 32772, + "src alpha saturate": 776 + }; + v44 = { + "add": 32774, + "subtract": 32778, + "reverse subtract": 32779 + }; + v45 = { + "0": 0, + "zero": 0, + "keep": 7680, + "replace": 7681, + "increment": 7682, + "decrement": 7683, + "increment wrap": 34055, + "decrement wrap": 34056, + "invert": 5386 + }; + v46 = { + "int8": 5120, + "int16": 5122, + "int32": 5124, + "uint8": 5121, + "uint16": 5123, + "uint32": 5125, + "float": 5126, + "float32": 5126 + }; + v47 = { + "cw": 2304, + "ccw": 2305 + }; + v111 = {}; + v191 = {}; + return { + "draw": function(a0) { + var v49, v50, v51, v52, v53, v100, v101, v102, v103, v104, v105, v106, v107, v108, v109, v110, v112, v113; + v49 = a0["framebuffer"]; + v50 = v13.getFramebuffer(v49); + v51 = v13.next; + v13.next = v50; + v52 = v2.framebufferWidth; + v2.framebufferWidth = v50 ? v50.width : v2.drawingBufferWidth; + v53 = v2.framebufferHeight; + v2.framebufferHeight = v50 ? v50.height : v2.drawingBufferHeight; + if (v50 !== v13.cur) { + if (v50) { + v1.bindFramebuffer(36160, v50.framebuffer); + } else { + v1.bindFramebuffer(36160, null); + } + v13.cur = v50; } - v156 = g155.location; - v157 = v10[v156]; - if (!v157.buffer) { - v1.enableVertexAttribArray(v156); + if (v5.dirty) { + var v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97, v98, v99; + v54 = v4.dither; + if (v54 !== v5.dither) { + if (v54) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v54; + } + v55 = v4.blend_enable; + if (v55 !== v5.blend_enable) { + if (v55) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v55; + } + v56 = v17[0]; + v57 = v17[1]; + v58 = v17[2]; + v59 = v17[3]; + if (v56 !== v18[0] || v57 !== v18[1] || v58 !== v18[2] || v59 !== v18[3]) { + v1.blendColor(v56, v57, v58, v59); + v18[0] = v56; + v18[1] = v57; + v18[2] = v58; + v18[3] = v59; + } + v60 = v19[0]; + v61 = v19[1]; + if (v60 !== v20[0] || v61 !== v20[1]) { + v1.blendEquationSeparate(v60, v61); + v20[0] = v60; + v20[1] = v61; + } + v62 = v21[0]; + v63 = v21[1]; + v64 = v21[2]; + v65 = v21[3]; + if (v62 !== v22[0] || v63 !== v22[1] || v64 !== v22[2] || v65 !== v22[3]) { + v1.blendFuncSeparate(v62, v63, v64, v65); + v22[0] = v62; + v22[1] = v63; + v22[2] = v64; + v22[3] = v65; + } + v66 = v4.depth_enable; + if (v66 !== v5.depth_enable) { + if (v66) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v66; + } + v67 = v4.depth_func; + if (v67 !== v5.depth_func) { + v1.depthFunc(v67); + v5.depth_func = v67; + } + v68 = v23[0]; + v69 = v23[1]; + if (v68 !== v24[0] || v69 !== v24[1]) { + v1.depthRange(v68, v69); + v24[0] = v68; + v24[1] = v69; + } + v70 = v4.depth_mask; + if (v70 !== v5.depth_mask) { + v1.depthMask(v70); + v5.depth_mask = v70; + } + v71 = v25[0]; + v72 = v25[1]; + v73 = v25[2]; + v74 = v25[3]; + if (v71 !== v26[0] || v72 !== v26[1] || v73 !== v26[2] || v74 !== v26[3]) { + v1.colorMask(v71, v72, v73, v74); + v26[0] = v71; + v26[1] = v72; + v26[2] = v73; + v26[3] = v74; + } + v75 = v4.cull_enable; + if (v75 !== v5.cull_enable) { + if (v75) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v75; + } + v76 = v4.cull_face; + if (v76 !== v5.cull_face) { + v1.cullFace(v76); + v5.cull_face = v76; + } + v77 = v4.frontFace; + if (v77 !== v5.frontFace) { + v1.frontFace(v77); + v5.frontFace = v77; + } + v78 = v4.lineWidth; + if (v78 !== v5.lineWidth) { + v1.lineWidth(v78); + v5.lineWidth = v78; + } + v79 = v4.polygonOffset_enable; + if (v79 !== v5.polygonOffset_enable) { + if (v79) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v79; + } + v80 = v27[0]; + v81 = v27[1]; + if (v80 !== v28[0] || v81 !== v28[1]) { + v1.polygonOffset(v80, v81); + v28[0] = v80; + v28[1] = v81; + } + v82 = v4.sample_alpha; + if (v82 !== v5.sample_alpha) { + if (v82) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v82; + } + v83 = v4.sample_enable; + if (v83 !== v5.sample_enable) { + if (v83) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v83; + } + v84 = v29[0]; + v85 = v29[1]; + if (v84 !== v30[0] || v85 !== v30[1]) { + v1.sampleCoverage(v84, v85); + v30[0] = v84; + v30[1] = v85; + } + v86 = v4.stencil_enable; + if (v86 !== v5.stencil_enable) { + if (v86) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v86; + } + v87 = v4.stencil_mask; + if (v87 !== v5.stencil_mask) { + v1.stencilMask(v87); + v5.stencil_mask = v87; + } + v88 = v31[0]; + v89 = v31[1]; + v90 = v31[2]; + if (v88 !== v32[0] || v89 !== v32[1] || v90 !== v32[2]) { + v1.stencilFunc(v88, v89, v90); + v32[0] = v88; + v32[1] = v89; + v32[2] = v90; + } + v91 = v33[0]; + v92 = v33[1]; + v93 = v33[2]; + v94 = v33[3]; + if (v91 !== v34[0] || v92 !== v34[1] || v93 !== v34[2] || v94 !== v34[3]) { + v1.stencilOpSeparate(v91, v92, v93, v94); + v34[0] = v91; + v34[1] = v92; + v34[2] = v93; + v34[3] = v94; + } + v95 = v35[0]; + v96 = v35[1]; + v97 = v35[2]; + v98 = v35[3]; + if (v95 !== v36[0] || v96 !== v36[1] || v97 !== v36[2] || v98 !== v36[3]) { + v1.stencilOpSeparate(v95, v96, v97, v98); + v36[0] = v95; + v36[1] = v96; + v36[2] = v97; + v36[3] = v98; + } + v99 = v4.scissor_enable; + if (v99 !== v5.scissor_enable) { + if (v99) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v99; + } } - if (v157.type !== g154.dtype || v157.size !== 4 || v157.buffer !== g154 || v157.normalized !== false || v157.offset !== 0 || v157.stride !== 0) { - v1.bindBuffer(34962, g154.buffer); - v1.vertexAttribPointer(v156, 4, g154.dtype, false, 0, 0); - v157.type = g154.dtype; - v157.size = 4; - v157.buffer = g154; - v157.normalized = false; - v157.offset = 0; - v157.stride = 0; + v100 = v2.framebufferWidth; + v101 = v2.framebufferHeight; + v102 = v2.viewportWidth; + v2.viewportWidth = v100; + v103 = v2.viewportHeight; + v2.viewportHeight = v101; + v1.viewport(0, 0, v100, v101); + v40[0] = 0; + v40[1] = 0; + v40[2] = v100; + v40[3] = v101; + v104 = v2.framebufferWidth; + v105 = v2.framebufferHeight; + v1.scissor(0, 0, v104, v105); + v38[0] = 0; + v38[1] = 0; + v38[2] = v104; + v38[3] = v105; + v106 = v5.profile; + if (v106) { + v107 = performance.now(); + g48.count++; } - v160 = g159.location; - v161 = v10[v160]; - if (!v161.buffer) { - v1.enableVertexAttribArray(v160); + v108 = v9.frag; + v109 = v9.vert; + v110 = v9.program(v109, v108); + v1.useProgram(v110.program); + v11.setVAO(null); + v112 = v110.id; + v113 = v111[v112]; + if (v113) { + v113.call(this, a0); + } else { + v113 = v111[v112] = g114(v110); + v113.call(this, a0); } - if (v161.type !== g158.dtype || v161.size !== 4 || v161.buffer !== g158 || v161.normalized !== false || v161.offset !== 0 || v161.stride !== 0) { - v1.bindBuffer(34962, g158.buffer); - v1.vertexAttribPointer(v160, 4, g158.dtype, false, 0, 0); - v161.type = g158.dtype; - v161.size = 4; - v161.buffer = g158; - v161.normalized = false; - v161.offset = 0; - v161.stride = 0; + v5.dirty = true; + v11.setVAO(null); + v13.next = v51; + v2.framebufferWidth = v52; + v2.framebufferHeight = v53; + v2.viewportWidth = v102; + v2.viewportHeight = v103; + if (v106) { + g48.cpuTime += performance.now() - v107; } - v164 = g163.location; - v165 = v10[v164]; - if (!v165.buffer) { - v1.enableVertexAttribArray(v164); + }, + "scope": function(a0, a1, a2) { + var v115, v116, v117, v118, v119, v120, v121, v122, v123, v125, v127, v128, v129, v130, v131, v133, v135, v136, v137, v138, v139; + v115 = a0["framebuffer"]; + v116 = v13.getFramebuffer(v115); + v117 = v13.next; + v13.next = v116; + v118 = v2.framebufferWidth; + v2.framebufferWidth = v116 ? v116.width : v2.drawingBufferWidth; + v119 = v2.framebufferHeight; + v2.framebufferHeight = v116 ? v116.height : v2.drawingBufferHeight; + v120 = v2.framebufferWidth; + v121 = v2.framebufferHeight; + v122 = v2.viewportWidth; + v2.viewportWidth = v120; + v123 = v2.viewportHeight; + v2.viewportHeight = v121; + v125 = v39[0]; + v39[0] = g124; + v127 = v39[1]; + v39[1] = g126; + v128 = v39[2]; + v39[2] = v120; + v129 = v39[3]; + v39[3] = v121; + v130 = v2.framebufferWidth; + v131 = v2.framebufferHeight; + v133 = v37[0]; + v37[0] = g132; + v135 = v37[1]; + v37[1] = g134; + v136 = v37[2]; + v37[2] = v130; + v137 = v37[3]; + v37[3] = v131; + v138 = v5.profile; + if (v138) { + v139 = performance.now(); + g48.count++; } - if (v165.type !== g162.dtype || v165.size !== 4 || v165.buffer !== g162 || v165.normalized !== false || v165.offset !== 0 || v165.stride !== 0) { - v1.bindBuffer(34962, g162.buffer); - v1.vertexAttribPointer(v164, 4, g162.dtype, false, 0, 0); - v165.type = g162.dtype; - v165.size = 4; - v165.buffer = g162; - v165.normalized = false; - v165.offset = 0; - v165.stride = 0; + v5.dirty = true; + a1(v2, a0, a2); + v13.next = v117; + v2.framebufferWidth = v118; + v2.framebufferHeight = v119; + v2.viewportWidth = v122; + v2.viewportHeight = v123; + v39[0] = v125; + v39[1] = v127; + v39[2] = v128; + v39[3] = v129; + v37[0] = v133; + v37[1] = v135; + v37[2] = v136; + v37[3] = v137; + if (v138) { + g48.cpuTime += performance.now() - v139; } - v168 = g167.location; - v169 = v10[v168]; - if (!v169.buffer) { - v1.enableVertexAttribArray(v168); + v5.dirty = true; + }, + "batch": function(a0, a1) { + var v186, v187, v188, v189, v190, v192, v193; + if (v5.dirty) { + var v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169, v170, v171, v172, v173, v174, v175, v176, v177, v178, v179, v180, v181, v182, v183, v184, v185; + v140 = v4.dither; + if (v140 !== v5.dither) { + if (v140) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v140; + } + v141 = v4.blend_enable; + if (v141 !== v5.blend_enable) { + if (v141) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v141; + } + v142 = v17[0]; + v143 = v17[1]; + v144 = v17[2]; + v145 = v17[3]; + if (v142 !== v18[0] || v143 !== v18[1] || v144 !== v18[2] || v145 !== v18[3]) { + v1.blendColor(v142, v143, v144, v145); + v18[0] = v142; + v18[1] = v143; + v18[2] = v144; + v18[3] = v145; + } + v146 = v19[0]; + v147 = v19[1]; + if (v146 !== v20[0] || v147 !== v20[1]) { + v1.blendEquationSeparate(v146, v147); + v20[0] = v146; + v20[1] = v147; + } + v148 = v21[0]; + v149 = v21[1]; + v150 = v21[2]; + v151 = v21[3]; + if (v148 !== v22[0] || v149 !== v22[1] || v150 !== v22[2] || v151 !== v22[3]) { + v1.blendFuncSeparate(v148, v149, v150, v151); + v22[0] = v148; + v22[1] = v149; + v22[2] = v150; + v22[3] = v151; + } + v152 = v4.depth_enable; + if (v152 !== v5.depth_enable) { + if (v152) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v152; + } + v153 = v4.depth_func; + if (v153 !== v5.depth_func) { + v1.depthFunc(v153); + v5.depth_func = v153; + } + v154 = v23[0]; + v155 = v23[1]; + if (v154 !== v24[0] || v155 !== v24[1]) { + v1.depthRange(v154, v155); + v24[0] = v154; + v24[1] = v155; + } + v156 = v4.depth_mask; + if (v156 !== v5.depth_mask) { + v1.depthMask(v156); + v5.depth_mask = v156; + } + v157 = v25[0]; + v158 = v25[1]; + v159 = v25[2]; + v160 = v25[3]; + if (v157 !== v26[0] || v158 !== v26[1] || v159 !== v26[2] || v160 !== v26[3]) { + v1.colorMask(v157, v158, v159, v160); + v26[0] = v157; + v26[1] = v158; + v26[2] = v159; + v26[3] = v160; + } + v161 = v4.cull_enable; + if (v161 !== v5.cull_enable) { + if (v161) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v161; + } + v162 = v4.cull_face; + if (v162 !== v5.cull_face) { + v1.cullFace(v162); + v5.cull_face = v162; + } + v163 = v4.frontFace; + if (v163 !== v5.frontFace) { + v1.frontFace(v163); + v5.frontFace = v163; + } + v164 = v4.lineWidth; + if (v164 !== v5.lineWidth) { + v1.lineWidth(v164); + v5.lineWidth = v164; + } + v165 = v4.polygonOffset_enable; + if (v165 !== v5.polygonOffset_enable) { + if (v165) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v165; + } + v166 = v27[0]; + v167 = v27[1]; + if (v166 !== v28[0] || v167 !== v28[1]) { + v1.polygonOffset(v166, v167); + v28[0] = v166; + v28[1] = v167; + } + v168 = v4.sample_alpha; + if (v168 !== v5.sample_alpha) { + if (v168) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v168; + } + v169 = v4.sample_enable; + if (v169 !== v5.sample_enable) { + if (v169) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v169; + } + v170 = v29[0]; + v171 = v29[1]; + if (v170 !== v30[0] || v171 !== v30[1]) { + v1.sampleCoverage(v170, v171); + v30[0] = v170; + v30[1] = v171; + } + v172 = v4.stencil_enable; + if (v172 !== v5.stencil_enable) { + if (v172) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v172; + } + v173 = v4.stencil_mask; + if (v173 !== v5.stencil_mask) { + v1.stencilMask(v173); + v5.stencil_mask = v173; + } + v174 = v31[0]; + v175 = v31[1]; + v176 = v31[2]; + if (v174 !== v32[0] || v175 !== v32[1] || v176 !== v32[2]) { + v1.stencilFunc(v174, v175, v176); + v32[0] = v174; + v32[1] = v175; + v32[2] = v176; + } + v177 = v33[0]; + v178 = v33[1]; + v179 = v33[2]; + v180 = v33[3]; + if (v177 !== v34[0] || v178 !== v34[1] || v179 !== v34[2] || v180 !== v34[3]) { + v1.stencilOpSeparate(v177, v178, v179, v180); + v34[0] = v177; + v34[1] = v178; + v34[2] = v179; + v34[3] = v180; + } + v181 = v35[0]; + v182 = v35[1]; + v183 = v35[2]; + v184 = v35[3]; + if (v181 !== v36[0] || v182 !== v36[1] || v183 !== v36[2] || v184 !== v36[3]) { + v1.stencilOpSeparate(v181, v182, v183, v184); + v36[0] = v181; + v36[1] = v182; + v36[2] = v183; + v36[3] = v184; + } + v185 = v4.scissor_enable; + if (v185 !== v5.scissor_enable) { + if (v185) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v185; + } + } + v186 = v5.profile; + if (v186) { + v187 = performance.now(); + g48.count += a1; + } + v188 = v9.frag; + v189 = v9.vert; + v190 = v9.program(v189, v188); + v1.useProgram(v190.program); + v11.setVAO(null); + v192 = v190.id; + v193 = v191[v192]; + if (v193) { + v193.call(this, a0, a1); + } else { + v193 = v191[v192] = g194(v190); + v193.call(this, a0, a1); + } + v5.dirty = true; + v11.setVAO(null); + if (v186) { + g48.cpuTime += performance.now() - v187; + } + } + }; + }; + } + }); + + // src/generated/regl-codegen/3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d + var require_fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d = __commonJS({ + "src/generated/regl-codegen/3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d"(exports, module) { + module.exports = function anonymous(g0, g48, g87, g88, g89, g90, g91, g92, g93, g94, g103, g105, g106, g107, g110, g111, g114, g115, g118, g119, g122, g123, g126, g127, g130, g131, g134, g135, g138, g139, g142, g143, g146, g147, g150, g151, g154, g155, g158, g159, g162, g163, g166, g167, g170, g176, g179, g182, g185, g188, g191, g194, g197, g200, g202, g205, g208, g211, g214, g217, g220, g223, g226, g228, g231, g232, g233, g237, g241, g262, g264, g266, g268, g270, g272, g274, g276, g278, g280, g282, g284, g286, g288, g290, g292, g294, g296, g298, g300, g314, g321, g323, g324, g327, g330, g333, g336, g339, g342, g345, g348, g351, g354, g357, g360, g363, g366, g369, g372, g375, g378, g381, g384, g387, g390, g393, g395, g408, g421, g434, g447, g460, g473, g486, g499, g512, g525, g538, g551, g564, g577, g590, g603, g605, g633, g634, g635, g636, g637, g638, g639, g640, g641) { + "use strict"; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v49, v50, v178, v181, v184, v187, v190, v193, v196, v199, v204, v207, v210, v213, v216, v219, v222, v225, v705, v707, v709, v711, v713, v715, v717, v719, v723, v725, v727, v729, v731, v733, v735, v737; + v1 = g0.gl; + v2 = g0.context; + v3 = g0.strings; + v4 = g0.next; + v5 = g0.current; + v6 = g0.draw; + v7 = g0.elements; + v8 = g0.buffer; + v9 = g0.shader; + v10 = g0.attributes; + v11 = g0.vao; + v12 = g0.uniforms; + v13 = g0.framebuffer; + v14 = g0.extensions; + v15 = g0.timer; + v16 = g0.isBufferArgs; + v17 = v4.blend_color; + v18 = v5.blend_color; + v19 = v4.blend_equation; + v20 = v5.blend_equation; + v21 = v4.blend_func; + v22 = v5.blend_func; + v23 = v4.depth_range; + v24 = v5.depth_range; + v25 = v4.colorMask; + v26 = v5.colorMask; + v27 = v4.polygonOffset_offset; + v28 = v5.polygonOffset_offset; + v29 = v4.sample_coverage; + v30 = v5.sample_coverage; + v31 = v4.stencil_func; + v32 = v5.stencil_func; + v33 = v4.stencil_opFront; + v34 = v5.stencil_opFront; + v35 = v4.stencil_opBack; + v36 = v5.stencil_opBack; + v37 = v4.scissor_box; + v38 = v5.scissor_box; + v39 = v4.viewport; + v40 = v5.viewport; + v41 = { + "points": 0, + "point": 0, + "lines": 1, + "line": 1, + "triangles": 4, + "triangle": 4, + "line loop": 2, + "line strip": 3, + "triangle strip": 5, + "triangle fan": 6 + }; + v42 = { + "never": 512, + "less": 513, + "<": 513, + "equal": 514, + "=": 514, + "==": 514, + "===": 514, + "lequal": 515, + "<=": 515, + "greater": 516, + ">": 516, + "notequal": 517, + "!=": 517, + "!==": 517, + "gequal": 518, + ">=": 518, + "always": 519 + }; + v43 = { + "0": 0, + "1": 1, + "zero": 0, + "one": 1, + "src color": 768, + "one minus src color": 769, + "src alpha": 770, + "one minus src alpha": 771, + "dst color": 774, + "one minus dst color": 775, + "dst alpha": 772, + "one minus dst alpha": 773, + "constant color": 32769, + "one minus constant color": 32770, + "constant alpha": 32771, + "one minus constant alpha": 32772, + "src alpha saturate": 776 + }; + v44 = { + "add": 32774, + "subtract": 32778, + "reverse subtract": 32779 + }; + v45 = { + "0": 0, + "zero": 0, + "keep": 7680, + "replace": 7681, + "increment": 7682, + "decrement": 7683, + "increment wrap": 34055, + "decrement wrap": 34056, + "invert": 5386 + }; + v46 = { + "int8": 5120, + "int16": 5122, + "int32": 5124, + "uint8": 5121, + "uint16": 5123, + "uint32": 5125, + "float": 5126, + "float32": 5126 + }; + v47 = { + "cw": 2304, + "ccw": 2305 + }; + v49 = {}; + v50 = {}; + v178 = new Float32Array(16); + v181 = new Float32Array(16); + v184 = new Float32Array(16); + v187 = new Float32Array(16); + v190 = new Float32Array(16); + v193 = new Float32Array(16); + v196 = new Float32Array(16); + v199 = new Float32Array(16); + v204 = new Float32Array(16); + v207 = new Float32Array(16); + v210 = new Float32Array(16); + v213 = new Float32Array(16); + v216 = new Float32Array(16); + v219 = new Float32Array(16); + v222 = new Float32Array(16); + v225 = new Float32Array(16); + v705 = new Float32Array(16); + v707 = new Float32Array(16); + v709 = new Float32Array(16); + v711 = new Float32Array(16); + v713 = new Float32Array(16); + v715 = new Float32Array(16); + v717 = new Float32Array(16); + v719 = new Float32Array(16); + v723 = new Float32Array(16); + v725 = new Float32Array(16); + v727 = new Float32Array(16); + v729 = new Float32Array(16); + v731 = new Float32Array(16); + v733 = new Float32Array(16); + v735 = new Float32Array(16); + v737 = new Float32Array(16); + return { + "draw": function(a0) { + var v51, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v95, v96, v97, v98, v99, v100, v101, v102, v104, v108, v109, v112, v113, v116, v117, v120, v121, v124, v125, v128, v129, v132, v133, v136, v137, v140, v141, v144, v145, v148, v149, v152, v153, v156, v157, v160, v161, v164, v165, v168, v169, v171, v172, v173, v174, v175, v177, v180, v183, v186, v189, v192, v195, v198, v201, v203, v206, v209, v212, v215, v218, v221, v224, v227, v229, v230, v234, v235, v236, v238, v239, v240, v242, v243, v244, v245, v246, v247; + v51 = v13.next; + if (v51 !== v13.cur) { + if (v51) { + v1.bindFramebuffer(36160, v51.framebuffer); + } else { + v1.bindFramebuffer(36160, null); + } + v13.cur = v51; + } + if (v5.dirty) { + var v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76; + v52 = v25[0]; + v53 = v25[1]; + v54 = v25[2]; + v55 = v25[3]; + if (v52 !== v26[0] || v53 !== v26[1] || v54 !== v26[2] || v55 !== v26[3]) { + v1.colorMask(v52, v53, v54, v55); + v26[0] = v52; + v26[1] = v53; + v26[2] = v54; + v26[3] = v55; + } + v56 = v4.frontFace; + if (v56 !== v5.frontFace) { + v1.frontFace(v56); + v5.frontFace = v56; + } + v57 = v4.polygonOffset_enable; + if (v57 !== v5.polygonOffset_enable) { + if (v57) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v57; + } + v58 = v27[0]; + v59 = v27[1]; + if (v58 !== v28[0] || v59 !== v28[1]) { + v1.polygonOffset(v58, v59); + v28[0] = v58; + v28[1] = v59; + } + v60 = v4.sample_alpha; + if (v60 !== v5.sample_alpha) { + if (v60) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v60; + } + v61 = v4.sample_enable; + if (v61 !== v5.sample_enable) { + if (v61) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v61; + } + v62 = v29[0]; + v63 = v29[1]; + if (v62 !== v30[0] || v63 !== v30[1]) { + v1.sampleCoverage(v62, v63); + v30[0] = v62; + v30[1] = v63; + } + v64 = v4.stencil_enable; + if (v64 !== v5.stencil_enable) { + if (v64) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v64; + } + v65 = v4.stencil_mask; + if (v65 !== v5.stencil_mask) { + v1.stencilMask(v65); + v5.stencil_mask = v65; + } + v66 = v31[0]; + v67 = v31[1]; + v68 = v31[2]; + if (v66 !== v32[0] || v67 !== v32[1] || v68 !== v32[2]) { + v1.stencilFunc(v66, v67, v68); + v32[0] = v66; + v32[1] = v67; + v32[2] = v68; + } + v69 = v33[0]; + v70 = v33[1]; + v71 = v33[2]; + v72 = v33[3]; + if (v69 !== v34[0] || v70 !== v34[1] || v71 !== v34[2] || v72 !== v34[3]) { + v1.stencilOpSeparate(v69, v70, v71, v72); + v34[0] = v69; + v34[1] = v70; + v34[2] = v71; + v34[3] = v72; + } + v73 = v35[0]; + v74 = v35[1]; + v75 = v35[2]; + v76 = v35[3]; + if (v73 !== v36[0] || v74 !== v36[1] || v75 !== v36[2] || v76 !== v36[3]) { + v1.stencilOpSeparate(v73, v74, v75, v76); + v36[0] = v73; + v36[1] = v74; + v36[2] = v75; + v36[3] = v76; + } + } + v77 = a0["viewportX"]; + v49.x = v77; + v78 = a0["viewportY"]; + v49.y = v78; + v79 = a0["viewportWidth"]; + v49.width = v79; + v80 = a0["viewportHeight"]; + v49.height = v80; + v81 = v49.x | 0; + v82 = v49.y | 0; + v83 = "width" in v49 ? v49.width | 0 : v2.framebufferWidth - v81; + v84 = "height" in v49 ? v49.height | 0 : v2.framebufferHeight - v82; + v85 = v2.viewportWidth; + v2.viewportWidth = v83; + v86 = v2.viewportHeight; + v2.viewportHeight = v84; + v1.viewport(v81, v82, v83, v84); + v40[0] = v81; + v40[1] = v82; + v40[2] = v83; + v40[3] = v84; + v1.blendColor(0, 0, 0, 0); + v18[0] = 0; + v18[1] = 0; + v18[2] = 0; + v18[3] = 0; + if (g87) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = g87; + v1.blendEquationSeparate(32774, 32774); + v20[0] = 32774; + v20[1] = 32774; + v1.blendFuncSeparate(770, 771, 1, 1); + v22[0] = 770; + v22[1] = 771; + v22[2] = 1; + v22[3] = 1; + if (g88) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = g88; + v1.cullFace(g89); + v5.cull_face = g89; + if (g90) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = g90; + v1.depthFunc(g91); + v5.depth_func = g91; + v1.depthMask(g92); + v5.depth_mask = g92; + v1.depthRange(0, 1); + v24[0] = 0; + v24[1] = 1; + if (g93) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = g93; + v1.lineWidth(g94); + v5.lineWidth = g94; + v95 = a0["scissorX"]; + v50.x = v95; + v96 = a0["scissorY"]; + v50.y = v96; + v97 = a0["scissorWidth"]; + v50.width = v97; + v98 = a0["scissorHeight"]; + v50.height = v98; + v99 = v50.x | 0; + v100 = v50.y | 0; + v101 = "width" in v50 ? v50.width | 0 : v2.framebufferWidth - v99; + v102 = "height" in v50 ? v50.height | 0 : v2.framebufferHeight - v100; + v1.scissor(v99, v100, v101, v102); + v38[0] = v99; + v38[1] = v100; + v38[2] = v101; + v38[3] = v102; + if (g103) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = g103; + v104 = v5.profile; + v5.profile = false; + v1.useProgram(g105.program); + v11.setVAO(null); + v108 = g107.location; + v109 = v10[v108]; + if (!v109.buffer) { + v1.enableVertexAttribArray(v108); + } + if (v109.type !== g106.dtype || v109.size !== 4 || v109.buffer !== g106 || v109.normalized !== false || v109.offset !== 0 || v109.stride !== 0) { + v1.bindBuffer(34962, g106.buffer); + v1.vertexAttribPointer(v108, 4, g106.dtype, false, 0, 0); + v109.type = g106.dtype; + v109.size = 4; + v109.buffer = g106; + v109.normalized = false; + v109.offset = 0; + v109.stride = 0; + } + v112 = g111.location; + v113 = v10[v112]; + if (!v113.buffer) { + v1.enableVertexAttribArray(v112); + } + if (v113.type !== g110.dtype || v113.size !== 4 || v113.buffer !== g110 || v113.normalized !== false || v113.offset !== 0 || v113.stride !== 0) { + v1.bindBuffer(34962, g110.buffer); + v1.vertexAttribPointer(v112, 4, g110.dtype, false, 0, 0); + v113.type = g110.dtype; + v113.size = 4; + v113.buffer = g110; + v113.normalized = false; + v113.offset = 0; + v113.stride = 0; + } + v116 = g115.location; + v117 = v10[v116]; + if (!v117.buffer) { + v1.enableVertexAttribArray(v116); + } + if (v117.type !== g114.dtype || v117.size !== 4 || v117.buffer !== g114 || v117.normalized !== false || v117.offset !== 0 || v117.stride !== 0) { + v1.bindBuffer(34962, g114.buffer); + v1.vertexAttribPointer(v116, 4, g114.dtype, false, 0, 0); + v117.type = g114.dtype; + v117.size = 4; + v117.buffer = g114; + v117.normalized = false; + v117.offset = 0; + v117.stride = 0; + } + v120 = g119.location; + v121 = v10[v120]; + if (!v121.buffer) { + v1.enableVertexAttribArray(v120); + } + if (v121.type !== g118.dtype || v121.size !== 4 || v121.buffer !== g118 || v121.normalized !== false || v121.offset !== 0 || v121.stride !== 0) { + v1.bindBuffer(34962, g118.buffer); + v1.vertexAttribPointer(v120, 4, g118.dtype, false, 0, 0); + v121.type = g118.dtype; + v121.size = 4; + v121.buffer = g118; + v121.normalized = false; + v121.offset = 0; + v121.stride = 0; + } + v124 = g123.location; + v125 = v10[v124]; + if (!v125.buffer) { + v1.enableVertexAttribArray(v124); + } + if (v125.type !== g122.dtype || v125.size !== 4 || v125.buffer !== g122 || v125.normalized !== false || v125.offset !== 0 || v125.stride !== 0) { + v1.bindBuffer(34962, g122.buffer); + v1.vertexAttribPointer(v124, 4, g122.dtype, false, 0, 0); + v125.type = g122.dtype; + v125.size = 4; + v125.buffer = g122; + v125.normalized = false; + v125.offset = 0; + v125.stride = 0; + } + v128 = g127.location; + v129 = v10[v128]; + if (!v129.buffer) { + v1.enableVertexAttribArray(v128); + } + if (v129.type !== g126.dtype || v129.size !== 4 || v129.buffer !== g126 || v129.normalized !== false || v129.offset !== 0 || v129.stride !== 0) { + v1.bindBuffer(34962, g126.buffer); + v1.vertexAttribPointer(v128, 4, g126.dtype, false, 0, 0); + v129.type = g126.dtype; + v129.size = 4; + v129.buffer = g126; + v129.normalized = false; + v129.offset = 0; + v129.stride = 0; + } + v132 = g131.location; + v133 = v10[v132]; + if (!v133.buffer) { + v1.enableVertexAttribArray(v132); + } + if (v133.type !== g130.dtype || v133.size !== 4 || v133.buffer !== g130 || v133.normalized !== false || v133.offset !== 0 || v133.stride !== 0) { + v1.bindBuffer(34962, g130.buffer); + v1.vertexAttribPointer(v132, 4, g130.dtype, false, 0, 0); + v133.type = g130.dtype; + v133.size = 4; + v133.buffer = g130; + v133.normalized = false; + v133.offset = 0; + v133.stride = 0; + } + v136 = g135.location; + v137 = v10[v136]; + if (!v137.buffer) { + v1.enableVertexAttribArray(v136); + } + if (v137.type !== g134.dtype || v137.size !== 4 || v137.buffer !== g134 || v137.normalized !== false || v137.offset !== 0 || v137.stride !== 0) { + v1.bindBuffer(34962, g134.buffer); + v1.vertexAttribPointer(v136, 4, g134.dtype, false, 0, 0); + v137.type = g134.dtype; + v137.size = 4; + v137.buffer = g134; + v137.normalized = false; + v137.offset = 0; + v137.stride = 0; + } + v140 = g139.location; + v141 = v10[v140]; + if (!v141.buffer) { + v1.enableVertexAttribArray(v140); + } + if (v141.type !== g138.dtype || v141.size !== 4 || v141.buffer !== g138 || v141.normalized !== false || v141.offset !== 0 || v141.stride !== 0) { + v1.bindBuffer(34962, g138.buffer); + v1.vertexAttribPointer(v140, 4, g138.dtype, false, 0, 0); + v141.type = g138.dtype; + v141.size = 4; + v141.buffer = g138; + v141.normalized = false; + v141.offset = 0; + v141.stride = 0; + } + v144 = g143.location; + v145 = v10[v144]; + if (!v145.buffer) { + v1.enableVertexAttribArray(v144); + } + if (v145.type !== g142.dtype || v145.size !== 4 || v145.buffer !== g142 || v145.normalized !== false || v145.offset !== 0 || v145.stride !== 0) { + v1.bindBuffer(34962, g142.buffer); + v1.vertexAttribPointer(v144, 4, g142.dtype, false, 0, 0); + v145.type = g142.dtype; + v145.size = 4; + v145.buffer = g142; + v145.normalized = false; + v145.offset = 0; + v145.stride = 0; + } + v148 = g147.location; + v149 = v10[v148]; + if (!v149.buffer) { + v1.enableVertexAttribArray(v148); + } + if (v149.type !== g146.dtype || v149.size !== 4 || v149.buffer !== g146 || v149.normalized !== false || v149.offset !== 0 || v149.stride !== 0) { + v1.bindBuffer(34962, g146.buffer); + v1.vertexAttribPointer(v148, 4, g146.dtype, false, 0, 0); + v149.type = g146.dtype; + v149.size = 4; + v149.buffer = g146; + v149.normalized = false; + v149.offset = 0; + v149.stride = 0; + } + v152 = g151.location; + v153 = v10[v152]; + if (!v153.buffer) { + v1.enableVertexAttribArray(v152); + } + if (v153.type !== g150.dtype || v153.size !== 4 || v153.buffer !== g150 || v153.normalized !== false || v153.offset !== 0 || v153.stride !== 0) { + v1.bindBuffer(34962, g150.buffer); + v1.vertexAttribPointer(v152, 4, g150.dtype, false, 0, 0); + v153.type = g150.dtype; + v153.size = 4; + v153.buffer = g150; + v153.normalized = false; + v153.offset = 0; + v153.stride = 0; + } + v156 = g155.location; + v157 = v10[v156]; + if (!v157.buffer) { + v1.enableVertexAttribArray(v156); + } + if (v157.type !== g154.dtype || v157.size !== 4 || v157.buffer !== g154 || v157.normalized !== false || v157.offset !== 0 || v157.stride !== 0) { + v1.bindBuffer(34962, g154.buffer); + v1.vertexAttribPointer(v156, 4, g154.dtype, false, 0, 0); + v157.type = g154.dtype; + v157.size = 4; + v157.buffer = g154; + v157.normalized = false; + v157.offset = 0; + v157.stride = 0; + } + v160 = g159.location; + v161 = v10[v160]; + if (!v161.buffer) { + v1.enableVertexAttribArray(v160); + } + if (v161.type !== g158.dtype || v161.size !== 4 || v161.buffer !== g158 || v161.normalized !== false || v161.offset !== 0 || v161.stride !== 0) { + v1.bindBuffer(34962, g158.buffer); + v1.vertexAttribPointer(v160, 4, g158.dtype, false, 0, 0); + v161.type = g158.dtype; + v161.size = 4; + v161.buffer = g158; + v161.normalized = false; + v161.offset = 0; + v161.stride = 0; + } + v164 = g163.location; + v165 = v10[v164]; + if (!v165.buffer) { + v1.enableVertexAttribArray(v164); + } + if (v165.type !== g162.dtype || v165.size !== 4 || v165.buffer !== g162 || v165.normalized !== false || v165.offset !== 0 || v165.stride !== 0) { + v1.bindBuffer(34962, g162.buffer); + v1.vertexAttribPointer(v164, 4, g162.dtype, false, 0, 0); + v165.type = g162.dtype; + v165.size = 4; + v165.buffer = g162; + v165.normalized = false; + v165.offset = 0; + v165.stride = 0; + } + v168 = g167.location; + v169 = v10[v168]; + if (!v169.buffer) { + v1.enableVertexAttribArray(v168); } if (v169.type !== g166.dtype || v169.size !== 4 || v169.buffer !== g166 || v169.normalized !== false || v169.offset !== 0 || v169.stride !== 0) { v1.bindBuffer(34962, g166.buffer); @@ -194714,570 +193657,1770 @@ void main() { v5.dirty = true; }, "batch": function(a0, a1) { - var v607, v642, v643, v644; - v607 = v13.next; - if (v607 !== v13.cur) { - if (v607) { - v1.bindFramebuffer(36160, v607.framebuffer); + var v607, v642, v643, v644; + v607 = v13.next; + if (v607 !== v13.cur) { + if (v607) { + v1.bindFramebuffer(36160, v607.framebuffer); + } else { + v1.bindFramebuffer(36160, null); + } + v13.cur = v607; + } + if (v5.dirty) { + var v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v625, v626, v627, v628, v629, v630, v631, v632; + v608 = v25[0]; + v609 = v25[1]; + v610 = v25[2]; + v611 = v25[3]; + if (v608 !== v26[0] || v609 !== v26[1] || v610 !== v26[2] || v611 !== v26[3]) { + v1.colorMask(v608, v609, v610, v611); + v26[0] = v608; + v26[1] = v609; + v26[2] = v610; + v26[3] = v611; + } + v612 = v4.frontFace; + if (v612 !== v5.frontFace) { + v1.frontFace(v612); + v5.frontFace = v612; + } + v613 = v4.polygonOffset_enable; + if (v613 !== v5.polygonOffset_enable) { + if (v613) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v613; + } + v614 = v27[0]; + v615 = v27[1]; + if (v614 !== v28[0] || v615 !== v28[1]) { + v1.polygonOffset(v614, v615); + v28[0] = v614; + v28[1] = v615; + } + v616 = v4.sample_alpha; + if (v616 !== v5.sample_alpha) { + if (v616) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v616; + } + v617 = v4.sample_enable; + if (v617 !== v5.sample_enable) { + if (v617) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v617; + } + v618 = v29[0]; + v619 = v29[1]; + if (v618 !== v30[0] || v619 !== v30[1]) { + v1.sampleCoverage(v618, v619); + v30[0] = v618; + v30[1] = v619; + } + v620 = v4.stencil_enable; + if (v620 !== v5.stencil_enable) { + if (v620) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v620; + } + v621 = v4.stencil_mask; + if (v621 !== v5.stencil_mask) { + v1.stencilMask(v621); + v5.stencil_mask = v621; + } + v622 = v31[0]; + v623 = v31[1]; + v624 = v31[2]; + if (v622 !== v32[0] || v623 !== v32[1] || v624 !== v32[2]) { + v1.stencilFunc(v622, v623, v624); + v32[0] = v622; + v32[1] = v623; + v32[2] = v624; + } + v625 = v33[0]; + v626 = v33[1]; + v627 = v33[2]; + v628 = v33[3]; + if (v625 !== v34[0] || v626 !== v34[1] || v627 !== v34[2] || v628 !== v34[3]) { + v1.stencilOpSeparate(v625, v626, v627, v628); + v34[0] = v625; + v34[1] = v626; + v34[2] = v627; + v34[3] = v628; + } + v629 = v35[0]; + v630 = v35[1]; + v631 = v35[2]; + v632 = v35[3]; + if (v629 !== v36[0] || v630 !== v36[1] || v631 !== v36[2] || v632 !== v36[3]) { + v1.stencilOpSeparate(v629, v630, v631, v632); + v36[0] = v629; + v36[1] = v630; + v36[2] = v631; + v36[3] = v632; + } + } + v1.blendColor(0, 0, 0, 0); + v18[0] = 0; + v18[1] = 0; + v18[2] = 0; + v18[3] = 0; + if (g633) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = g633; + v1.blendEquationSeparate(32774, 32774); + v20[0] = 32774; + v20[1] = 32774; + v1.blendFuncSeparate(770, 771, 1, 1); + v22[0] = 770; + v22[1] = 771; + v22[2] = 1; + v22[3] = 1; + if (g634) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = g634; + v1.cullFace(g635); + v5.cull_face = g635; + if (g636) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = g636; + v1.depthFunc(g637); + v5.depth_func = g637; + v1.depthMask(g638); + v5.depth_mask = g638; + v1.depthRange(0, 1); + v24[0] = 0; + v24[1] = 1; + if (g639) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = g639; + v1.lineWidth(g640); + v5.lineWidth = g640; + if (g641) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = g641; + v642 = v5.profile; + v5.profile = false; + v1.useProgram(g105.program); + var v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677, v678, v679, v680, v681, v682, v683, v684, v685, v686, v687, v688, v689, v690, v691, v692, v693, v694, v757; + v11.setVAO(null); + v663 = g107.location; + v664 = v10[v663]; + if (!v664.buffer) { + v1.enableVertexAttribArray(v663); + } + if (v664.type !== g106.dtype || v664.size !== 4 || v664.buffer !== g106 || v664.normalized !== false || v664.offset !== 0 || v664.stride !== 0) { + v1.bindBuffer(34962, g106.buffer); + v1.vertexAttribPointer(v663, 4, g106.dtype, false, 0, 0); + v664.type = g106.dtype; + v664.size = 4; + v664.buffer = g106; + v664.normalized = false; + v664.offset = 0; + v664.stride = 0; + } + v665 = g111.location; + v666 = v10[v665]; + if (!v666.buffer) { + v1.enableVertexAttribArray(v665); + } + if (v666.type !== g110.dtype || v666.size !== 4 || v666.buffer !== g110 || v666.normalized !== false || v666.offset !== 0 || v666.stride !== 0) { + v1.bindBuffer(34962, g110.buffer); + v1.vertexAttribPointer(v665, 4, g110.dtype, false, 0, 0); + v666.type = g110.dtype; + v666.size = 4; + v666.buffer = g110; + v666.normalized = false; + v666.offset = 0; + v666.stride = 0; + } + v667 = g115.location; + v668 = v10[v667]; + if (!v668.buffer) { + v1.enableVertexAttribArray(v667); + } + if (v668.type !== g114.dtype || v668.size !== 4 || v668.buffer !== g114 || v668.normalized !== false || v668.offset !== 0 || v668.stride !== 0) { + v1.bindBuffer(34962, g114.buffer); + v1.vertexAttribPointer(v667, 4, g114.dtype, false, 0, 0); + v668.type = g114.dtype; + v668.size = 4; + v668.buffer = g114; + v668.normalized = false; + v668.offset = 0; + v668.stride = 0; + } + v669 = g119.location; + v670 = v10[v669]; + if (!v670.buffer) { + v1.enableVertexAttribArray(v669); + } + if (v670.type !== g118.dtype || v670.size !== 4 || v670.buffer !== g118 || v670.normalized !== false || v670.offset !== 0 || v670.stride !== 0) { + v1.bindBuffer(34962, g118.buffer); + v1.vertexAttribPointer(v669, 4, g118.dtype, false, 0, 0); + v670.type = g118.dtype; + v670.size = 4; + v670.buffer = g118; + v670.normalized = false; + v670.offset = 0; + v670.stride = 0; + } + v671 = g123.location; + v672 = v10[v671]; + if (!v672.buffer) { + v1.enableVertexAttribArray(v671); + } + if (v672.type !== g122.dtype || v672.size !== 4 || v672.buffer !== g122 || v672.normalized !== false || v672.offset !== 0 || v672.stride !== 0) { + v1.bindBuffer(34962, g122.buffer); + v1.vertexAttribPointer(v671, 4, g122.dtype, false, 0, 0); + v672.type = g122.dtype; + v672.size = 4; + v672.buffer = g122; + v672.normalized = false; + v672.offset = 0; + v672.stride = 0; + } + v673 = g127.location; + v674 = v10[v673]; + if (!v674.buffer) { + v1.enableVertexAttribArray(v673); + } + if (v674.type !== g126.dtype || v674.size !== 4 || v674.buffer !== g126 || v674.normalized !== false || v674.offset !== 0 || v674.stride !== 0) { + v1.bindBuffer(34962, g126.buffer); + v1.vertexAttribPointer(v673, 4, g126.dtype, false, 0, 0); + v674.type = g126.dtype; + v674.size = 4; + v674.buffer = g126; + v674.normalized = false; + v674.offset = 0; + v674.stride = 0; + } + v675 = g131.location; + v676 = v10[v675]; + if (!v676.buffer) { + v1.enableVertexAttribArray(v675); + } + if (v676.type !== g130.dtype || v676.size !== 4 || v676.buffer !== g130 || v676.normalized !== false || v676.offset !== 0 || v676.stride !== 0) { + v1.bindBuffer(34962, g130.buffer); + v1.vertexAttribPointer(v675, 4, g130.dtype, false, 0, 0); + v676.type = g130.dtype; + v676.size = 4; + v676.buffer = g130; + v676.normalized = false; + v676.offset = 0; + v676.stride = 0; + } + v677 = g135.location; + v678 = v10[v677]; + if (!v678.buffer) { + v1.enableVertexAttribArray(v677); + } + if (v678.type !== g134.dtype || v678.size !== 4 || v678.buffer !== g134 || v678.normalized !== false || v678.offset !== 0 || v678.stride !== 0) { + v1.bindBuffer(34962, g134.buffer); + v1.vertexAttribPointer(v677, 4, g134.dtype, false, 0, 0); + v678.type = g134.dtype; + v678.size = 4; + v678.buffer = g134; + v678.normalized = false; + v678.offset = 0; + v678.stride = 0; + } + v679 = g139.location; + v680 = v10[v679]; + if (!v680.buffer) { + v1.enableVertexAttribArray(v679); + } + if (v680.type !== g138.dtype || v680.size !== 4 || v680.buffer !== g138 || v680.normalized !== false || v680.offset !== 0 || v680.stride !== 0) { + v1.bindBuffer(34962, g138.buffer); + v1.vertexAttribPointer(v679, 4, g138.dtype, false, 0, 0); + v680.type = g138.dtype; + v680.size = 4; + v680.buffer = g138; + v680.normalized = false; + v680.offset = 0; + v680.stride = 0; + } + v681 = g143.location; + v682 = v10[v681]; + if (!v682.buffer) { + v1.enableVertexAttribArray(v681); + } + if (v682.type !== g142.dtype || v682.size !== 4 || v682.buffer !== g142 || v682.normalized !== false || v682.offset !== 0 || v682.stride !== 0) { + v1.bindBuffer(34962, g142.buffer); + v1.vertexAttribPointer(v681, 4, g142.dtype, false, 0, 0); + v682.type = g142.dtype; + v682.size = 4; + v682.buffer = g142; + v682.normalized = false; + v682.offset = 0; + v682.stride = 0; + } + v683 = g147.location; + v684 = v10[v683]; + if (!v684.buffer) { + v1.enableVertexAttribArray(v683); + } + if (v684.type !== g146.dtype || v684.size !== 4 || v684.buffer !== g146 || v684.normalized !== false || v684.offset !== 0 || v684.stride !== 0) { + v1.bindBuffer(34962, g146.buffer); + v1.vertexAttribPointer(v683, 4, g146.dtype, false, 0, 0); + v684.type = g146.dtype; + v684.size = 4; + v684.buffer = g146; + v684.normalized = false; + v684.offset = 0; + v684.stride = 0; + } + v685 = g151.location; + v686 = v10[v685]; + if (!v686.buffer) { + v1.enableVertexAttribArray(v685); + } + if (v686.type !== g150.dtype || v686.size !== 4 || v686.buffer !== g150 || v686.normalized !== false || v686.offset !== 0 || v686.stride !== 0) { + v1.bindBuffer(34962, g150.buffer); + v1.vertexAttribPointer(v685, 4, g150.dtype, false, 0, 0); + v686.type = g150.dtype; + v686.size = 4; + v686.buffer = g150; + v686.normalized = false; + v686.offset = 0; + v686.stride = 0; + } + v687 = g155.location; + v688 = v10[v687]; + if (!v688.buffer) { + v1.enableVertexAttribArray(v687); + } + if (v688.type !== g154.dtype || v688.size !== 4 || v688.buffer !== g154 || v688.normalized !== false || v688.offset !== 0 || v688.stride !== 0) { + v1.bindBuffer(34962, g154.buffer); + v1.vertexAttribPointer(v687, 4, g154.dtype, false, 0, 0); + v688.type = g154.dtype; + v688.size = 4; + v688.buffer = g154; + v688.normalized = false; + v688.offset = 0; + v688.stride = 0; + } + v689 = g159.location; + v690 = v10[v689]; + if (!v690.buffer) { + v1.enableVertexAttribArray(v689); + } + if (v690.type !== g158.dtype || v690.size !== 4 || v690.buffer !== g158 || v690.normalized !== false || v690.offset !== 0 || v690.stride !== 0) { + v1.bindBuffer(34962, g158.buffer); + v1.vertexAttribPointer(v689, 4, g158.dtype, false, 0, 0); + v690.type = g158.dtype; + v690.size = 4; + v690.buffer = g158; + v690.normalized = false; + v690.offset = 0; + v690.stride = 0; + } + v691 = g163.location; + v692 = v10[v691]; + if (!v692.buffer) { + v1.enableVertexAttribArray(v691); + } + if (v692.type !== g162.dtype || v692.size !== 4 || v692.buffer !== g162 || v692.normalized !== false || v692.offset !== 0 || v692.stride !== 0) { + v1.bindBuffer(34962, g162.buffer); + v1.vertexAttribPointer(v691, 4, g162.dtype, false, 0, 0); + v692.type = g162.dtype; + v692.size = 4; + v692.buffer = g162; + v692.normalized = false; + v692.offset = 0; + v692.stride = 0; + } + v693 = g167.location; + v694 = v10[v693]; + if (!v694.buffer) { + v1.enableVertexAttribArray(v693); + } + if (v694.type !== g166.dtype || v694.size !== 4 || v694.buffer !== g166 || v694.normalized !== false || v694.offset !== 0 || v694.stride !== 0) { + v1.bindBuffer(34962, g166.buffer); + v1.vertexAttribPointer(v693, 4, g166.dtype, false, 0, 0); + v694.type = g166.dtype; + v694.size = 4; + v694.buffer = g166; + v694.normalized = false; + v694.offset = 0; + v694.stride = 0; + } + v1.uniform1i(g231.location, g232.bind()); + v757 = v6.elements; + if (v757) { + v1.bindBuffer(34963, v757.buffer.buffer); + } else if (v11.currentVAO) { + v757 = v7.getElements(v11.currentVAO.elements); + if (v757) v1.bindBuffer(34963, v757.buffer.buffer); + } + for (v643 = 0; v643 < a1; ++v643) { + v644 = a0[v643]; + var v645, v646, v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v695, v696, v697, v698, v699, v700, v701, v702, v703, v704, v706, v708, v710, v712, v714, v716, v718, v720, v721, v722, v724, v726, v728, v730, v732, v734, v736, v738, v739, v740, v741, v742, v743, v744, v745, v746, v747, v748, v749, v750, v751, v752, v753, v754, v755, v756, v758, v759; + v645 = v644["viewportX"]; + v49.x = v645; + v646 = v644["viewportY"]; + v49.y = v646; + v647 = v644["viewportWidth"]; + v49.width = v647; + v648 = v644["viewportHeight"]; + v49.height = v648; + v649 = v49.x | 0; + v650 = v49.y | 0; + v651 = "width" in v49 ? v49.width | 0 : v2.framebufferWidth - v649; + v652 = "height" in v49 ? v49.height | 0 : v2.framebufferHeight - v650; + v653 = v2.viewportWidth; + v2.viewportWidth = v651; + v654 = v2.viewportHeight; + v2.viewportHeight = v652; + v1.viewport(v649, v650, v651, v652); + v40[0] = v649; + v40[1] = v650; + v40[2] = v651; + v40[3] = v652; + v655 = v644["scissorX"]; + v50.x = v655; + v656 = v644["scissorY"]; + v50.y = v656; + v657 = v644["scissorWidth"]; + v50.width = v657; + v658 = v644["scissorHeight"]; + v50.height = v658; + v659 = v50.x | 0; + v660 = v50.y | 0; + v661 = "width" in v50 ? v50.width | 0 : v2.framebufferWidth - v659; + v662 = "height" in v50 ? v50.height | 0 : v2.framebufferHeight - v660; + v1.scissor(v659, v660, v661, v662); + v38[0] = v659; + v38[1] = v660; + v38[2] = v661; + v38[3] = v662; + v695 = v644["contextColor"]; + v696 = v695[0]; + v698 = v695[1]; + v700 = v695[2]; + v702 = v695[3]; + if (!v643 || v697 !== v696 || v699 !== v698 || v701 !== v700 || v703 !== v702) { + v697 = v696; + v699 = v698; + v701 = v700; + v703 = v702; + v1.uniform4f(g170.location, v696, v698, v700, v702); + } + v704 = v644["dim0A"]; + v1.uniformMatrix4fv(g176.location, false, Array.isArray(v704) || v704 instanceof Float32Array ? v704 : (v705[0] = v704[0], v705[1] = v704[1], v705[2] = v704[2], v705[3] = v704[3], v705[4] = v704[4], v705[5] = v704[5], v705[6] = v704[6], v705[7] = v704[7], v705[8] = v704[8], v705[9] = v704[9], v705[10] = v704[10], v705[11] = v704[11], v705[12] = v704[12], v705[13] = v704[13], v705[14] = v704[14], v705[15] = v704[15], v705)); + v706 = v644["dim0B"]; + v1.uniformMatrix4fv(g179.location, false, Array.isArray(v706) || v706 instanceof Float32Array ? v706 : (v707[0] = v706[0], v707[1] = v706[1], v707[2] = v706[2], v707[3] = v706[3], v707[4] = v706[4], v707[5] = v706[5], v707[6] = v706[6], v707[7] = v706[7], v707[8] = v706[8], v707[9] = v706[9], v707[10] = v706[10], v707[11] = v706[11], v707[12] = v706[12], v707[13] = v706[13], v707[14] = v706[14], v707[15] = v706[15], v707)); + v708 = v644["dim0C"]; + v1.uniformMatrix4fv(g182.location, false, Array.isArray(v708) || v708 instanceof Float32Array ? v708 : (v709[0] = v708[0], v709[1] = v708[1], v709[2] = v708[2], v709[3] = v708[3], v709[4] = v708[4], v709[5] = v708[5], v709[6] = v708[6], v709[7] = v708[7], v709[8] = v708[8], v709[9] = v708[9], v709[10] = v708[10], v709[11] = v708[11], v709[12] = v708[12], v709[13] = v708[13], v709[14] = v708[14], v709[15] = v708[15], v709)); + v710 = v644["dim0D"]; + v1.uniformMatrix4fv(g185.location, false, Array.isArray(v710) || v710 instanceof Float32Array ? v710 : (v711[0] = v710[0], v711[1] = v710[1], v711[2] = v710[2], v711[3] = v710[3], v711[4] = v710[4], v711[5] = v710[5], v711[6] = v710[6], v711[7] = v710[7], v711[8] = v710[8], v711[9] = v710[9], v711[10] = v710[10], v711[11] = v710[11], v711[12] = v710[12], v711[13] = v710[13], v711[14] = v710[14], v711[15] = v710[15], v711)); + v712 = v644["dim1A"]; + v1.uniformMatrix4fv(g188.location, false, Array.isArray(v712) || v712 instanceof Float32Array ? v712 : (v713[0] = v712[0], v713[1] = v712[1], v713[2] = v712[2], v713[3] = v712[3], v713[4] = v712[4], v713[5] = v712[5], v713[6] = v712[6], v713[7] = v712[7], v713[8] = v712[8], v713[9] = v712[9], v713[10] = v712[10], v713[11] = v712[11], v713[12] = v712[12], v713[13] = v712[13], v713[14] = v712[14], v713[15] = v712[15], v713)); + v714 = v644["dim1B"]; + v1.uniformMatrix4fv(g191.location, false, Array.isArray(v714) || v714 instanceof Float32Array ? v714 : (v715[0] = v714[0], v715[1] = v714[1], v715[2] = v714[2], v715[3] = v714[3], v715[4] = v714[4], v715[5] = v714[5], v715[6] = v714[6], v715[7] = v714[7], v715[8] = v714[8], v715[9] = v714[9], v715[10] = v714[10], v715[11] = v714[11], v715[12] = v714[12], v715[13] = v714[13], v715[14] = v714[14], v715[15] = v714[15], v715)); + v716 = v644["dim1C"]; + v1.uniformMatrix4fv(g194.location, false, Array.isArray(v716) || v716 instanceof Float32Array ? v716 : (v717[0] = v716[0], v717[1] = v716[1], v717[2] = v716[2], v717[3] = v716[3], v717[4] = v716[4], v717[5] = v716[5], v717[6] = v716[6], v717[7] = v716[7], v717[8] = v716[8], v717[9] = v716[9], v717[10] = v716[10], v717[11] = v716[11], v717[12] = v716[12], v717[13] = v716[13], v717[14] = v716[14], v717[15] = v716[15], v717)); + v718 = v644["dim1D"]; + v1.uniformMatrix4fv(g197.location, false, Array.isArray(v718) || v718 instanceof Float32Array ? v718 : (v719[0] = v718[0], v719[1] = v718[1], v719[2] = v718[2], v719[3] = v718[3], v719[4] = v718[4], v719[5] = v718[5], v719[6] = v718[6], v719[7] = v718[7], v719[8] = v718[8], v719[9] = v718[9], v719[10] = v718[10], v719[11] = v718[11], v719[12] = v718[12], v719[13] = v718[13], v719[14] = v718[14], v719[15] = v718[15], v719)); + v720 = v644["drwLayer"]; + if (!v643 || v721 !== v720) { + v721 = v720; + v1.uniform1f(g200.location, v720); + } + v722 = v644["hiA"]; + v1.uniformMatrix4fv(g202.location, false, Array.isArray(v722) || v722 instanceof Float32Array ? v722 : (v723[0] = v722[0], v723[1] = v722[1], v723[2] = v722[2], v723[3] = v722[3], v723[4] = v722[4], v723[5] = v722[5], v723[6] = v722[6], v723[7] = v722[7], v723[8] = v722[8], v723[9] = v722[9], v723[10] = v722[10], v723[11] = v722[11], v723[12] = v722[12], v723[13] = v722[13], v723[14] = v722[14], v723[15] = v722[15], v723)); + v724 = v644["hiB"]; + v1.uniformMatrix4fv(g205.location, false, Array.isArray(v724) || v724 instanceof Float32Array ? v724 : (v725[0] = v724[0], v725[1] = v724[1], v725[2] = v724[2], v725[3] = v724[3], v725[4] = v724[4], v725[5] = v724[5], v725[6] = v724[6], v725[7] = v724[7], v725[8] = v724[8], v725[9] = v724[9], v725[10] = v724[10], v725[11] = v724[11], v725[12] = v724[12], v725[13] = v724[13], v725[14] = v724[14], v725[15] = v724[15], v725)); + v726 = v644["hiC"]; + v1.uniformMatrix4fv(g208.location, false, Array.isArray(v726) || v726 instanceof Float32Array ? v726 : (v727[0] = v726[0], v727[1] = v726[1], v727[2] = v726[2], v727[3] = v726[3], v727[4] = v726[4], v727[5] = v726[5], v727[6] = v726[6], v727[7] = v726[7], v727[8] = v726[8], v727[9] = v726[9], v727[10] = v726[10], v727[11] = v726[11], v727[12] = v726[12], v727[13] = v726[13], v727[14] = v726[14], v727[15] = v726[15], v727)); + v728 = v644["hiD"]; + v1.uniformMatrix4fv(g211.location, false, Array.isArray(v728) || v728 instanceof Float32Array ? v728 : (v729[0] = v728[0], v729[1] = v728[1], v729[2] = v728[2], v729[3] = v728[3], v729[4] = v728[4], v729[5] = v728[5], v729[6] = v728[6], v729[7] = v728[7], v729[8] = v728[8], v729[9] = v728[9], v729[10] = v728[10], v729[11] = v728[11], v729[12] = v728[12], v729[13] = v728[13], v729[14] = v728[14], v729[15] = v728[15], v729)); + v730 = v644["loA"]; + v1.uniformMatrix4fv(g214.location, false, Array.isArray(v730) || v730 instanceof Float32Array ? v730 : (v731[0] = v730[0], v731[1] = v730[1], v731[2] = v730[2], v731[3] = v730[3], v731[4] = v730[4], v731[5] = v730[5], v731[6] = v730[6], v731[7] = v730[7], v731[8] = v730[8], v731[9] = v730[9], v731[10] = v730[10], v731[11] = v730[11], v731[12] = v730[12], v731[13] = v730[13], v731[14] = v730[14], v731[15] = v730[15], v731)); + v732 = v644["loB"]; + v1.uniformMatrix4fv(g217.location, false, Array.isArray(v732) || v732 instanceof Float32Array ? v732 : (v733[0] = v732[0], v733[1] = v732[1], v733[2] = v732[2], v733[3] = v732[3], v733[4] = v732[4], v733[5] = v732[5], v733[6] = v732[6], v733[7] = v732[7], v733[8] = v732[8], v733[9] = v732[9], v733[10] = v732[10], v733[11] = v732[11], v733[12] = v732[12], v733[13] = v732[13], v733[14] = v732[14], v733[15] = v732[15], v733)); + v734 = v644["loC"]; + v1.uniformMatrix4fv(g220.location, false, Array.isArray(v734) || v734 instanceof Float32Array ? v734 : (v735[0] = v734[0], v735[1] = v734[1], v735[2] = v734[2], v735[3] = v734[3], v735[4] = v734[4], v735[5] = v734[5], v735[6] = v734[6], v735[7] = v734[7], v735[8] = v734[8], v735[9] = v734[9], v735[10] = v734[10], v735[11] = v734[11], v735[12] = v734[12], v735[13] = v734[13], v735[14] = v734[14], v735[15] = v734[15], v735)); + v736 = v644["loD"]; + v1.uniformMatrix4fv(g223.location, false, Array.isArray(v736) || v736 instanceof Float32Array ? v736 : (v737[0] = v736[0], v737[1] = v736[1], v737[2] = v736[2], v737[3] = v736[3], v737[4] = v736[4], v737[5] = v736[5], v737[6] = v736[6], v737[7] = v736[7], v737[8] = v736[8], v737[9] = v736[9], v737[10] = v736[10], v737[11] = v736[11], v737[12] = v736[12], v737[13] = v736[13], v737[14] = v736[14], v737[15] = v736[15], v737)); + v738 = v644["maskHeight"]; + if (!v643 || v739 !== v738) { + v739 = v738; + v1.uniform1f(g226.location, v738); + } + v740 = v644["maskTexture"]; + if (v740 && v740._reglType === "framebuffer") { + v740 = v740.color[0]; + } + v741 = v740._texture; + v1.uniform1i(g228.location, v741.bind()); + v742 = v644["resolution"]; + v743 = v742[0]; + v745 = v742[1]; + if (!v643 || v744 !== v743 || v746 !== v745) { + v744 = v743; + v746 = v745; + v1.uniform2f(g233.location, v743, v745); + } + v747 = v644["viewBoxPos"]; + v748 = v747[0]; + v750 = v747[1]; + if (!v643 || v749 !== v748 || v751 !== v750) { + v749 = v748; + v751 = v750; + v1.uniform2f(g237.location, v748, v750); + } + v752 = v644["viewBoxSize"]; + v753 = v752[0]; + v755 = v752[1]; + if (!v643 || v754 !== v753 || v756 !== v755) { + v754 = v753; + v756 = v755; + v1.uniform2f(g241.location, v753, v755); + } + v758 = v644["offset"]; + v759 = v644["count"]; + if (v759) { + if (v757) { + v1.drawElements(1, v759, v757.type, v758 << (v757.type - 5121 >> 1)); + } else { + v1.drawArrays(1, v758, v759); + } + v2.viewportWidth = v653; + v2.viewportHeight = v654; + v741.unbind(); + } + } + g232.unbind(); + v5.dirty = true; + v11.setVAO(null); + v5.profile = v642; + } + }; + }; + } + }); + + // src/generated/regl-codegen/453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45 + var require_a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45 = __commonJS({ + "src/generated/regl-codegen/453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45"(exports, module) { + module.exports = function anonymous(g0, g52) { + "use strict"; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v62, v63, v64, v65, v66, v67, v70, v71, v74, v75, v82, v83, v84, v85, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97; + v1 = g0.gl; + v2 = g0.context; + v3 = g0.strings; + v4 = g0.next; + v5 = g0.current; + v6 = g0.draw; + v7 = g0.elements; + v8 = g0.buffer; + v9 = g0.shader; + v10 = g0.attributes; + v11 = g0.vao; + v12 = g0.uniforms; + v13 = g0.framebuffer; + v14 = g0.extensions; + v15 = g0.timer; + v16 = g0.isBufferArgs; + v17 = v4.blend_color; + v18 = v5.blend_color; + v19 = v4.blend_equation; + v20 = v5.blend_equation; + v21 = v4.blend_func; + v22 = v5.blend_func; + v23 = v4.depth_range; + v24 = v5.depth_range; + v25 = v4.colorMask; + v26 = v5.colorMask; + v27 = v4.polygonOffset_offset; + v28 = v5.polygonOffset_offset; + v29 = v4.sample_coverage; + v30 = v5.sample_coverage; + v31 = v4.stencil_func; + v32 = v5.stencil_func; + v33 = v4.stencil_opFront; + v34 = v5.stencil_opFront; + v35 = v4.stencil_opBack; + v36 = v5.stencil_opBack; + v37 = v4.scissor_box; + v38 = v5.scissor_box; + v39 = v4.viewport; + v40 = v5.viewport; + v41 = { + "points": 0, + "point": 0, + "lines": 1, + "line": 1, + "triangles": 4, + "triangle": 4, + "line loop": 2, + "line strip": 3, + "triangle strip": 5, + "triangle fan": 6 + }; + v42 = { + "never": 512, + "less": 513, + "<": 513, + "equal": 514, + "=": 514, + "==": 514, + "===": 514, + "lequal": 515, + "<=": 515, + "greater": 516, + ">": 516, + "notequal": 517, + "!=": 517, + "!==": 517, + "gequal": 518, + ">=": 518, + "always": 519 + }; + v43 = { + "0": 0, + "1": 1, + "zero": 0, + "one": 1, + "src color": 768, + "one minus src color": 769, + "src alpha": 770, + "one minus src alpha": 771, + "dst color": 774, + "one minus dst color": 775, + "dst alpha": 772, + "one minus dst alpha": 773, + "constant color": 32769, + "one minus constant color": 32770, + "constant alpha": 32771, + "one minus constant alpha": 32772, + "src alpha saturate": 776 + }; + v44 = { + "add": 32774, + "subtract": 32778, + "reverse subtract": 32779 + }; + v45 = { + "0": 0, + "zero": 0, + "keep": 7680, + "replace": 7681, + "increment": 7682, + "decrement": 7683, + "increment wrap": 34055, + "decrement wrap": 34056, + "invert": 5386 + }; + v46 = { + "int8": 5120, + "int16": 5122, + "int32": 5124, + "uint8": 5121, + "uint16": 5123, + "uint32": 5125, + "float": 5126, + "float32": 5126 + }; + v47 = { + "cw": 2304, + "ccw": 2305 + }; + v62 = v4.blend_color; + v63 = v5.blend_color; + v64 = v4.blend_equation; + v65 = v5.blend_equation; + v66 = v4.blend_func; + v67 = v5.blend_func; + v70 = v4.depth_range; + v71 = v5.depth_range; + v74 = v4.colorMask; + v75 = v5.colorMask; + v82 = v4.polygonOffset_offset; + v83 = v5.polygonOffset_offset; + v84 = v4.sample_coverage; + v85 = v5.sample_coverage; + v88 = v4.stencil_func; + v89 = v5.stencil_func; + v90 = v4.stencil_opFront; + v91 = v5.stencil_opFront; + v92 = v4.stencil_opBack; + v93 = v5.stencil_opBack; + v94 = v4.scissor_box; + v95 = v5.scissor_box; + v96 = v4.viewport; + v97 = v5.viewport; + return { + "poll": function() { + var v48; + var v53, v54, v55, v56, v57, v58, v59, v60, v61, v68, v69, v72, v73, v76, v77, v78, v79, v80, v81, v86, v87; + v5.dirty = false; + v53 = v4.dither; + v54 = v4.blend_enable; + v55 = v4.depth_enable; + v56 = v4.cull_enable; + v57 = v4.polygonOffset_enable; + v58 = v4.sample_alpha; + v59 = v4.sample_enable; + v60 = v4.stencil_enable; + v61 = v4.scissor_enable; + v68 = v4.depth_func; + v69 = v5.depth_func; + v72 = v4.depth_mask; + v73 = v5.depth_mask; + v76 = v4.cull_face; + v77 = v5.cull_face; + v78 = v4.frontFace; + v79 = v5.frontFace; + v80 = v4.lineWidth; + v81 = v5.lineWidth; + v86 = v4.stencil_mask; + v87 = v5.stencil_mask; + v48 = v13.next; + if (v48 !== v13.cur) { + if (v48) { + v1.bindFramebuffer(36160, v48.framebuffer); + } else { + v1.bindFramebuffer(36160, null); + } + v13.cur = v48; + } + if (v53 !== v5.dither) { + if (v53) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v53; + } + if (v54 !== v5.blend_enable) { + if (v54) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v54; + } + if (v55 !== v5.depth_enable) { + if (v55) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v55; + } + if (v56 !== v5.cull_enable) { + if (v56) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v56; + } + if (v57 !== v5.polygonOffset_enable) { + if (v57) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v57; + } + if (v58 !== v5.sample_alpha) { + if (v58) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v58; + } + if (v59 !== v5.sample_enable) { + if (v59) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v59; + } + if (v60 !== v5.stencil_enable) { + if (v60) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v60; + } + if (v61 !== v5.scissor_enable) { + if (v61) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v61; + } + if (v62[0] !== v63[0] || v62[1] !== v63[1] || v62[2] !== v63[2] || v62[3] !== v63[3]) { + v1.blendColor(v62[0], v62[1], v62[2], v62[3]); + v63[0] = v62[0]; + v63[1] = v62[1]; + v63[2] = v62[2]; + v63[3] = v62[3]; + } + if (v64[0] !== v65[0] || v64[1] !== v65[1]) { + v1.blendEquationSeparate(v64[0], v64[1]); + v65[0] = v64[0]; + v65[1] = v64[1]; + } + if (v66[0] !== v67[0] || v66[1] !== v67[1] || v66[2] !== v67[2] || v66[3] !== v67[3]) { + v1.blendFuncSeparate(v66[0], v66[1], v66[2], v66[3]); + v67[0] = v66[0]; + v67[1] = v66[1]; + v67[2] = v66[2]; + v67[3] = v66[3]; + } + if (v68 !== v69) { + v1.depthFunc(v68); + v5.depth_func = v68; + } + if (v70[0] !== v71[0] || v70[1] !== v71[1]) { + v1.depthRange(v70[0], v70[1]); + v71[0] = v70[0]; + v71[1] = v70[1]; + } + if (v72 !== v73) { + v1.depthMask(v72); + v5.depth_mask = v72; + } + if (v74[0] !== v75[0] || v74[1] !== v75[1] || v74[2] !== v75[2] || v74[3] !== v75[3]) { + v1.colorMask(v74[0], v74[1], v74[2], v74[3]); + v75[0] = v74[0]; + v75[1] = v74[1]; + v75[2] = v74[2]; + v75[3] = v74[3]; + } + if (v76 !== v77) { + v1.cullFace(v76); + v5.cull_face = v76; + } + if (v78 !== v79) { + v1.frontFace(v78); + v5.frontFace = v78; + } + if (v80 !== v81) { + v1.lineWidth(v80); + v5.lineWidth = v80; + } + if (v82[0] !== v83[0] || v82[1] !== v83[1]) { + v1.polygonOffset(v82[0], v82[1]); + v83[0] = v82[0]; + v83[1] = v82[1]; + } + if (v84[0] !== v85[0] || v84[1] !== v85[1]) { + v1.sampleCoverage(v84[0], v84[1]); + v85[0] = v84[0]; + v85[1] = v84[1]; + } + if (v86 !== v87) { + v1.stencilMask(v86); + v5.stencil_mask = v86; + } + if (v88[0] !== v89[0] || v88[1] !== v89[1] || v88[2] !== v89[2]) { + v1.stencilFunc(v88[0], v88[1], v88[2]); + v89[0] = v88[0]; + v89[1] = v88[1]; + v89[2] = v88[2]; + } + if (v90[0] !== v91[0] || v90[1] !== v91[1] || v90[2] !== v91[2] || v90[3] !== v91[3]) { + v1.stencilOpSeparate(v90[0], v90[1], v90[2], v90[3]); + v91[0] = v90[0]; + v91[1] = v90[1]; + v91[2] = v90[2]; + v91[3] = v90[3]; + } + if (v92[0] !== v93[0] || v92[1] !== v93[1] || v92[2] !== v93[2] || v92[3] !== v93[3]) { + v1.stencilOpSeparate(v92[0], v92[1], v92[2], v92[3]); + v93[0] = v92[0]; + v93[1] = v92[1]; + v93[2] = v92[2]; + v93[3] = v92[3]; + } + if (v94[0] !== v95[0] || v94[1] !== v95[1] || v94[2] !== v95[2] || v94[3] !== v95[3]) { + v1.scissor(v94[0], v94[1], v94[2], v94[3]); + v95[0] = v94[0]; + v95[1] = v94[1]; + v95[2] = v94[2]; + v95[3] = v94[3]; + } + if (v96[0] !== v97[0] || v96[1] !== v97[1] || v96[2] !== v97[2] || v96[3] !== v97[3]) { + v1.viewport(v96[0], v96[1], v96[2], v96[3]); + v97[0] = v96[0]; + v97[1] = v96[1]; + v97[2] = v96[2]; + v97[3] = v96[3]; + } + }, + "refresh": function() { + var v49, v50, v51; + var v53, v54, v55, v56, v57, v58, v59, v60, v61, v68, v69, v72, v73, v76, v77, v78, v79, v80, v81, v86, v87; + v5.dirty = false; + v53 = v4.dither; + v54 = v4.blend_enable; + v55 = v4.depth_enable; + v56 = v4.cull_enable; + v57 = v4.polygonOffset_enable; + v58 = v4.sample_alpha; + v59 = v4.sample_enable; + v60 = v4.stencil_enable; + v61 = v4.scissor_enable; + v68 = v4.depth_func; + v69 = v5.depth_func; + v72 = v4.depth_mask; + v73 = v5.depth_mask; + v76 = v4.cull_face; + v77 = v5.cull_face; + v78 = v4.frontFace; + v79 = v5.frontFace; + v80 = v4.lineWidth; + v81 = v5.lineWidth; + v86 = v4.stencil_mask; + v87 = v5.stencil_mask; + v49 = v13.next; + if (v49) { + v1.bindFramebuffer(36160, v49.framebuffer); + } else { + v1.bindFramebuffer(36160, null); + } + v13.cur = v49; + v50 = v10; + v51 = 0; + for (var i = 0; i < g52; ++i) { + v51 = v50[i]; + if (v51.buffer) { + v1.enableVertexAttribArray(i); + v1.bindBuffer(34962, v51.buffer.buffer); + v1.vertexAttribPointer(i, v51.size, v51.type, v51.normalized, v51.stride, v51.offset); + } else { + v1.disableVertexAttribArray(i); + v1.vertexAttrib4f(i, v51.x, v51.y, v51.z, v51.w); + v51.buffer = null; + } + } + v11.currentVAO = null; + v11.setVAO(v11.targetVAO); + if (v53) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v53; + if (v54) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v54; + if (v55) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v55; + if (v56) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v56; + if (v57) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v57; + if (v58) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v58; + if (v59) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v59; + if (v60) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v60; + if (v61) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v61; + v1.blendColor(v62[0], v62[1], v62[2], v62[3]); + v63[0] = v62[0]; + v63[1] = v62[1]; + v63[2] = v62[2]; + v63[3] = v62[3]; + v1.blendEquationSeparate(v64[0], v64[1]); + v65[0] = v64[0]; + v65[1] = v64[1]; + v1.blendFuncSeparate(v66[0], v66[1], v66[2], v66[3]); + v67[0] = v66[0]; + v67[1] = v66[1]; + v67[2] = v66[2]; + v67[3] = v66[3]; + v1.depthFunc(v68); + v5.depth_func = v68; + v1.depthRange(v70[0], v70[1]); + v71[0] = v70[0]; + v71[1] = v70[1]; + v1.depthMask(v72); + v5.depth_mask = v72; + v1.colorMask(v74[0], v74[1], v74[2], v74[3]); + v75[0] = v74[0]; + v75[1] = v74[1]; + v75[2] = v74[2]; + v75[3] = v74[3]; + v1.cullFace(v76); + v5.cull_face = v76; + v1.frontFace(v78); + v5.frontFace = v78; + v1.lineWidth(v80); + v5.lineWidth = v80; + v1.polygonOffset(v82[0], v82[1]); + v83[0] = v82[0]; + v83[1] = v82[1]; + v1.sampleCoverage(v84[0], v84[1]); + v85[0] = v84[0]; + v85[1] = v84[1]; + v1.stencilMask(v86); + v5.stencil_mask = v86; + v1.stencilFunc(v88[0], v88[1], v88[2]); + v89[0] = v88[0]; + v89[1] = v88[1]; + v89[2] = v88[2]; + v1.stencilOpSeparate(v90[0], v90[1], v90[2], v90[3]); + v91[0] = v90[0]; + v91[1] = v90[1]; + v91[2] = v90[2]; + v91[3] = v90[3]; + v1.stencilOpSeparate(v92[0], v92[1], v92[2], v92[3]); + v93[0] = v92[0]; + v93[1] = v92[1]; + v93[2] = v92[2]; + v93[3] = v92[3]; + v1.scissor(v94[0], v94[1], v94[2], v94[3]); + v95[0] = v94[0]; + v95[1] = v94[1]; + v95[2] = v94[2]; + v95[3] = v94[3]; + v1.viewport(v96[0], v96[1], v96[2], v96[3]); + v97[0] = v96[0]; + v97[1] = v96[1]; + v97[2] = v96[2]; + v97[3] = v96[3]; + } + }; + }; + } + }); + + // src/generated/regl-codegen/a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470 + var require_a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470 = __commonJS({ + "src/generated/regl-codegen/a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470"(exports, module) { + module.exports = function anonymous(g0, g48, g112, g178) { + "use strict"; + var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v40, v41, v42, v43, v44, v45, v46, v47, v109, v175; + v1 = g0.gl; + v2 = g0.context; + v3 = g0.strings; + v4 = g0.next; + v5 = g0.current; + v6 = g0.draw; + v7 = g0.elements; + v8 = g0.buffer; + v9 = g0.shader; + v10 = g0.attributes; + v11 = g0.vao; + v12 = g0.uniforms; + v13 = g0.framebuffer; + v14 = g0.extensions; + v15 = g0.timer; + v16 = g0.isBufferArgs; + v17 = v4.blend_color; + v18 = v5.blend_color; + v19 = v4.blend_equation; + v20 = v5.blend_equation; + v21 = v4.blend_func; + v22 = v5.blend_func; + v23 = v4.depth_range; + v24 = v5.depth_range; + v25 = v4.colorMask; + v26 = v5.colorMask; + v27 = v4.polygonOffset_offset; + v28 = v5.polygonOffset_offset; + v29 = v4.sample_coverage; + v30 = v5.sample_coverage; + v31 = v4.stencil_func; + v32 = v5.stencil_func; + v33 = v4.stencil_opFront; + v34 = v5.stencil_opFront; + v35 = v4.stencil_opBack; + v36 = v5.stencil_opBack; + v37 = v4.scissor_box; + v38 = v5.scissor_box; + v39 = v4.viewport; + v40 = v5.viewport; + v41 = { + "points": 0, + "point": 0, + "lines": 1, + "line": 1, + "triangles": 4, + "triangle": 4, + "line loop": 2, + "line strip": 3, + "triangle strip": 5, + "triangle fan": 6 + }; + v42 = { + "never": 512, + "less": 513, + "<": 513, + "equal": 514, + "=": 514, + "==": 514, + "===": 514, + "lequal": 515, + "<=": 515, + "greater": 516, + ">": 516, + "notequal": 517, + "!=": 517, + "!==": 517, + "gequal": 518, + ">=": 518, + "always": 519 + }; + v43 = { + "0": 0, + "1": 1, + "zero": 0, + "one": 1, + "src color": 768, + "one minus src color": 769, + "src alpha": 770, + "one minus src alpha": 771, + "dst color": 774, + "one minus dst color": 775, + "dst alpha": 772, + "one minus dst alpha": 773, + "constant color": 32769, + "one minus constant color": 32770, + "constant alpha": 32771, + "one minus constant alpha": 32772, + "src alpha saturate": 776 + }; + v44 = { + "add": 32774, + "subtract": 32778, + "reverse subtract": 32779 + }; + v45 = { + "0": 0, + "zero": 0, + "keep": 7680, + "replace": 7681, + "increment": 7682, + "decrement": 7683, + "increment wrap": 34055, + "decrement wrap": 34056, + "invert": 5386 + }; + v46 = { + "int8": 5120, + "int16": 5122, + "int32": 5124, + "uint8": 5121, + "uint16": 5123, + "uint32": 5125, + "float": 5126, + "float32": 5126 + }; + v47 = { + "cw": 2304, + "ccw": 2305 + }; + v109 = {}; + v175 = {}; + return { + "draw": function(a0) { + var v49, v104, v105, v106, v107, v108, v110, v111; + v49 = v13.next; + if (v49 !== v13.cur) { + if (v49) { + v1.bindFramebuffer(36160, v49.framebuffer); + } else { + v1.bindFramebuffer(36160, null); + } + v13.cur = v49; + } + if (v5.dirty) { + var v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v80, v81, v82, v83, v84, v85, v86, v87, v88, v89, v90, v91, v92, v93, v94, v95, v96, v97, v98, v99, v100, v101, v102, v103; + v50 = v4.dither; + if (v50 !== v5.dither) { + if (v50) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v50; + } + v51 = v4.blend_enable; + if (v51 !== v5.blend_enable) { + if (v51) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v51; + } + v52 = v17[0]; + v53 = v17[1]; + v54 = v17[2]; + v55 = v17[3]; + if (v52 !== v18[0] || v53 !== v18[1] || v54 !== v18[2] || v55 !== v18[3]) { + v1.blendColor(v52, v53, v54, v55); + v18[0] = v52; + v18[1] = v53; + v18[2] = v54; + v18[3] = v55; + } + v56 = v19[0]; + v57 = v19[1]; + if (v56 !== v20[0] || v57 !== v20[1]) { + v1.blendEquationSeparate(v56, v57); + v20[0] = v56; + v20[1] = v57; + } + v58 = v21[0]; + v59 = v21[1]; + v60 = v21[2]; + v61 = v21[3]; + if (v58 !== v22[0] || v59 !== v22[1] || v60 !== v22[2] || v61 !== v22[3]) { + v1.blendFuncSeparate(v58, v59, v60, v61); + v22[0] = v58; + v22[1] = v59; + v22[2] = v60; + v22[3] = v61; + } + v62 = v4.depth_enable; + if (v62 !== v5.depth_enable) { + if (v62) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v62; + } + v63 = v4.depth_func; + if (v63 !== v5.depth_func) { + v1.depthFunc(v63); + v5.depth_func = v63; + } + v64 = v23[0]; + v65 = v23[1]; + if (v64 !== v24[0] || v65 !== v24[1]) { + v1.depthRange(v64, v65); + v24[0] = v64; + v24[1] = v65; + } + v66 = v4.depth_mask; + if (v66 !== v5.depth_mask) { + v1.depthMask(v66); + v5.depth_mask = v66; + } + v67 = v25[0]; + v68 = v25[1]; + v69 = v25[2]; + v70 = v25[3]; + if (v67 !== v26[0] || v68 !== v26[1] || v69 !== v26[2] || v70 !== v26[3]) { + v1.colorMask(v67, v68, v69, v70); + v26[0] = v67; + v26[1] = v68; + v26[2] = v69; + v26[3] = v70; + } + v71 = v4.cull_enable; + if (v71 !== v5.cull_enable) { + if (v71) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v71; + } + v72 = v4.cull_face; + if (v72 !== v5.cull_face) { + v1.cullFace(v72); + v5.cull_face = v72; + } + v73 = v4.frontFace; + if (v73 !== v5.frontFace) { + v1.frontFace(v73); + v5.frontFace = v73; + } + v74 = v4.lineWidth; + if (v74 !== v5.lineWidth) { + v1.lineWidth(v74); + v5.lineWidth = v74; + } + v75 = v4.polygonOffset_enable; + if (v75 !== v5.polygonOffset_enable) { + if (v75) { + v1.enable(32823); + } else { + v1.disable(32823); + } + v5.polygonOffset_enable = v75; + } + v76 = v27[0]; + v77 = v27[1]; + if (v76 !== v28[0] || v77 !== v28[1]) { + v1.polygonOffset(v76, v77); + v28[0] = v76; + v28[1] = v77; + } + v78 = v4.sample_alpha; + if (v78 !== v5.sample_alpha) { + if (v78) { + v1.enable(32926); + } else { + v1.disable(32926); + } + v5.sample_alpha = v78; + } + v79 = v4.sample_enable; + if (v79 !== v5.sample_enable) { + if (v79) { + v1.enable(32928); + } else { + v1.disable(32928); + } + v5.sample_enable = v79; + } + v80 = v29[0]; + v81 = v29[1]; + if (v80 !== v30[0] || v81 !== v30[1]) { + v1.sampleCoverage(v80, v81); + v30[0] = v80; + v30[1] = v81; + } + v82 = v4.stencil_enable; + if (v82 !== v5.stencil_enable) { + if (v82) { + v1.enable(2960); + } else { + v1.disable(2960); + } + v5.stencil_enable = v82; + } + v83 = v4.stencil_mask; + if (v83 !== v5.stencil_mask) { + v1.stencilMask(v83); + v5.stencil_mask = v83; + } + v84 = v31[0]; + v85 = v31[1]; + v86 = v31[2]; + if (v84 !== v32[0] || v85 !== v32[1] || v86 !== v32[2]) { + v1.stencilFunc(v84, v85, v86); + v32[0] = v84; + v32[1] = v85; + v32[2] = v86; + } + v87 = v33[0]; + v88 = v33[1]; + v89 = v33[2]; + v90 = v33[3]; + if (v87 !== v34[0] || v88 !== v34[1] || v89 !== v34[2] || v90 !== v34[3]) { + v1.stencilOpSeparate(v87, v88, v89, v90); + v34[0] = v87; + v34[1] = v88; + v34[2] = v89; + v34[3] = v90; + } + v91 = v35[0]; + v92 = v35[1]; + v93 = v35[2]; + v94 = v35[3]; + if (v91 !== v36[0] || v92 !== v36[1] || v93 !== v36[2] || v94 !== v36[3]) { + v1.stencilOpSeparate(v91, v92, v93, v94); + v36[0] = v91; + v36[1] = v92; + v36[2] = v93; + v36[3] = v94; + } + v95 = v4.scissor_enable; + if (v95 !== v5.scissor_enable) { + if (v95) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v95; + } + v96 = v37[0]; + v97 = v37[1]; + v98 = v37[2]; + v99 = v37[3]; + if (v96 !== v38[0] || v97 !== v38[1] || v98 !== v38[2] || v99 !== v38[3]) { + v1.scissor(v96, v97, v98, v99); + v38[0] = v96; + v38[1] = v97; + v38[2] = v98; + v38[3] = v99; + } + v100 = v39[0]; + v101 = v39[1]; + v102 = v39[2]; + v103 = v39[3]; + if (v100 !== v40[0] || v101 !== v40[1] || v102 !== v40[2] || v103 !== v40[3]) { + v1.viewport(v100, v101, v102, v103); + v40[0] = v100; + v40[1] = v101; + v40[2] = v102; + v40[3] = v103; + } + v5.dirty = false; + } + v104 = v5.profile; + if (v104) { + v105 = performance.now(); + g48.count++; + } + v106 = v9.frag; + v107 = v9.vert; + v108 = v9.program(v107, v106); + v1.useProgram(v108.program); + v11.setVAO(null); + v110 = v108.id; + v111 = v109[v110]; + if (v111) { + v111.call(this, a0); + } else { + v111 = v109[v110] = g112(v108); + v111.call(this, a0); + } + v11.setVAO(null); + if (v104) { + g48.cpuTime += performance.now() - v105; + } + }, + "scope": function(a0, a1, a2) { + var v113, v114; + v113 = v5.profile; + if (v113) { + v114 = performance.now(); + g48.count++; + } + a1(v2, a0, a2); + if (v113) { + g48.cpuTime += performance.now() - v114; + } + }, + "batch": function(a0, a1) { + var v115, v170, v171, v172, v173, v174, v176, v177; + v115 = v13.next; + if (v115 !== v13.cur) { + if (v115) { + v1.bindFramebuffer(36160, v115.framebuffer); } else { v1.bindFramebuffer(36160, null); } - v13.cur = v607; + v13.cur = v115; } if (v5.dirty) { - var v608, v609, v610, v611, v612, v613, v614, v615, v616, v617, v618, v619, v620, v621, v622, v623, v624, v625, v626, v627, v628, v629, v630, v631, v632; - v608 = v25[0]; - v609 = v25[1]; - v610 = v25[2]; - v611 = v25[3]; - if (v608 !== v26[0] || v609 !== v26[1] || v610 !== v26[2] || v611 !== v26[3]) { - v1.colorMask(v608, v609, v610, v611); - v26[0] = v608; - v26[1] = v609; - v26[2] = v610; - v26[3] = v611; + var v116, v117, v118, v119, v120, v121, v122, v123, v124, v125, v126, v127, v128, v129, v130, v131, v132, v133, v134, v135, v136, v137, v138, v139, v140, v141, v142, v143, v144, v145, v146, v147, v148, v149, v150, v151, v152, v153, v154, v155, v156, v157, v158, v159, v160, v161, v162, v163, v164, v165, v166, v167, v168, v169; + v116 = v4.dither; + if (v116 !== v5.dither) { + if (v116) { + v1.enable(3024); + } else { + v1.disable(3024); + } + v5.dither = v116; } - v612 = v4.frontFace; - if (v612 !== v5.frontFace) { - v1.frontFace(v612); - v5.frontFace = v612; + v117 = v4.blend_enable; + if (v117 !== v5.blend_enable) { + if (v117) { + v1.enable(3042); + } else { + v1.disable(3042); + } + v5.blend_enable = v117; } - v613 = v4.polygonOffset_enable; - if (v613 !== v5.polygonOffset_enable) { - if (v613) { + v118 = v17[0]; + v119 = v17[1]; + v120 = v17[2]; + v121 = v17[3]; + if (v118 !== v18[0] || v119 !== v18[1] || v120 !== v18[2] || v121 !== v18[3]) { + v1.blendColor(v118, v119, v120, v121); + v18[0] = v118; + v18[1] = v119; + v18[2] = v120; + v18[3] = v121; + } + v122 = v19[0]; + v123 = v19[1]; + if (v122 !== v20[0] || v123 !== v20[1]) { + v1.blendEquationSeparate(v122, v123); + v20[0] = v122; + v20[1] = v123; + } + v124 = v21[0]; + v125 = v21[1]; + v126 = v21[2]; + v127 = v21[3]; + if (v124 !== v22[0] || v125 !== v22[1] || v126 !== v22[2] || v127 !== v22[3]) { + v1.blendFuncSeparate(v124, v125, v126, v127); + v22[0] = v124; + v22[1] = v125; + v22[2] = v126; + v22[3] = v127; + } + v128 = v4.depth_enable; + if (v128 !== v5.depth_enable) { + if (v128) { + v1.enable(2929); + } else { + v1.disable(2929); + } + v5.depth_enable = v128; + } + v129 = v4.depth_func; + if (v129 !== v5.depth_func) { + v1.depthFunc(v129); + v5.depth_func = v129; + } + v130 = v23[0]; + v131 = v23[1]; + if (v130 !== v24[0] || v131 !== v24[1]) { + v1.depthRange(v130, v131); + v24[0] = v130; + v24[1] = v131; + } + v132 = v4.depth_mask; + if (v132 !== v5.depth_mask) { + v1.depthMask(v132); + v5.depth_mask = v132; + } + v133 = v25[0]; + v134 = v25[1]; + v135 = v25[2]; + v136 = v25[3]; + if (v133 !== v26[0] || v134 !== v26[1] || v135 !== v26[2] || v136 !== v26[3]) { + v1.colorMask(v133, v134, v135, v136); + v26[0] = v133; + v26[1] = v134; + v26[2] = v135; + v26[3] = v136; + } + v137 = v4.cull_enable; + if (v137 !== v5.cull_enable) { + if (v137) { + v1.enable(2884); + } else { + v1.disable(2884); + } + v5.cull_enable = v137; + } + v138 = v4.cull_face; + if (v138 !== v5.cull_face) { + v1.cullFace(v138); + v5.cull_face = v138; + } + v139 = v4.frontFace; + if (v139 !== v5.frontFace) { + v1.frontFace(v139); + v5.frontFace = v139; + } + v140 = v4.lineWidth; + if (v140 !== v5.lineWidth) { + v1.lineWidth(v140); + v5.lineWidth = v140; + } + v141 = v4.polygonOffset_enable; + if (v141 !== v5.polygonOffset_enable) { + if (v141) { v1.enable(32823); } else { v1.disable(32823); } - v5.polygonOffset_enable = v613; + v5.polygonOffset_enable = v141; } - v614 = v27[0]; - v615 = v27[1]; - if (v614 !== v28[0] || v615 !== v28[1]) { - v1.polygonOffset(v614, v615); - v28[0] = v614; - v28[1] = v615; + v142 = v27[0]; + v143 = v27[1]; + if (v142 !== v28[0] || v143 !== v28[1]) { + v1.polygonOffset(v142, v143); + v28[0] = v142; + v28[1] = v143; } - v616 = v4.sample_alpha; - if (v616 !== v5.sample_alpha) { - if (v616) { + v144 = v4.sample_alpha; + if (v144 !== v5.sample_alpha) { + if (v144) { v1.enable(32926); } else { v1.disable(32926); } - v5.sample_alpha = v616; + v5.sample_alpha = v144; } - v617 = v4.sample_enable; - if (v617 !== v5.sample_enable) { - if (v617) { + v145 = v4.sample_enable; + if (v145 !== v5.sample_enable) { + if (v145) { v1.enable(32928); } else { v1.disable(32928); } - v5.sample_enable = v617; + v5.sample_enable = v145; } - v618 = v29[0]; - v619 = v29[1]; - if (v618 !== v30[0] || v619 !== v30[1]) { - v1.sampleCoverage(v618, v619); - v30[0] = v618; - v30[1] = v619; + v146 = v29[0]; + v147 = v29[1]; + if (v146 !== v30[0] || v147 !== v30[1]) { + v1.sampleCoverage(v146, v147); + v30[0] = v146; + v30[1] = v147; } - v620 = v4.stencil_enable; - if (v620 !== v5.stencil_enable) { - if (v620) { + v148 = v4.stencil_enable; + if (v148 !== v5.stencil_enable) { + if (v148) { v1.enable(2960); } else { v1.disable(2960); } - v5.stencil_enable = v620; + v5.stencil_enable = v148; } - v621 = v4.stencil_mask; - if (v621 !== v5.stencil_mask) { - v1.stencilMask(v621); - v5.stencil_mask = v621; + v149 = v4.stencil_mask; + if (v149 !== v5.stencil_mask) { + v1.stencilMask(v149); + v5.stencil_mask = v149; } - v622 = v31[0]; - v623 = v31[1]; - v624 = v31[2]; - if (v622 !== v32[0] || v623 !== v32[1] || v624 !== v32[2]) { - v1.stencilFunc(v622, v623, v624); - v32[0] = v622; - v32[1] = v623; - v32[2] = v624; + v150 = v31[0]; + v151 = v31[1]; + v152 = v31[2]; + if (v150 !== v32[0] || v151 !== v32[1] || v152 !== v32[2]) { + v1.stencilFunc(v150, v151, v152); + v32[0] = v150; + v32[1] = v151; + v32[2] = v152; } - v625 = v33[0]; - v626 = v33[1]; - v627 = v33[2]; - v628 = v33[3]; - if (v625 !== v34[0] || v626 !== v34[1] || v627 !== v34[2] || v628 !== v34[3]) { - v1.stencilOpSeparate(v625, v626, v627, v628); - v34[0] = v625; - v34[1] = v626; - v34[2] = v627; - v34[3] = v628; + v153 = v33[0]; + v154 = v33[1]; + v155 = v33[2]; + v156 = v33[3]; + if (v153 !== v34[0] || v154 !== v34[1] || v155 !== v34[2] || v156 !== v34[3]) { + v1.stencilOpSeparate(v153, v154, v155, v156); + v34[0] = v153; + v34[1] = v154; + v34[2] = v155; + v34[3] = v156; } - v629 = v35[0]; - v630 = v35[1]; - v631 = v35[2]; - v632 = v35[3]; - if (v629 !== v36[0] || v630 !== v36[1] || v631 !== v36[2] || v632 !== v36[3]) { - v1.stencilOpSeparate(v629, v630, v631, v632); - v36[0] = v629; - v36[1] = v630; - v36[2] = v631; - v36[3] = v632; + v157 = v35[0]; + v158 = v35[1]; + v159 = v35[2]; + v160 = v35[3]; + if (v157 !== v36[0] || v158 !== v36[1] || v159 !== v36[2] || v160 !== v36[3]) { + v1.stencilOpSeparate(v157, v158, v159, v160); + v36[0] = v157; + v36[1] = v158; + v36[2] = v159; + v36[3] = v160; } + v161 = v4.scissor_enable; + if (v161 !== v5.scissor_enable) { + if (v161) { + v1.enable(3089); + } else { + v1.disable(3089); + } + v5.scissor_enable = v161; + } + v162 = v37[0]; + v163 = v37[1]; + v164 = v37[2]; + v165 = v37[3]; + if (v162 !== v38[0] || v163 !== v38[1] || v164 !== v38[2] || v165 !== v38[3]) { + v1.scissor(v162, v163, v164, v165); + v38[0] = v162; + v38[1] = v163; + v38[2] = v164; + v38[3] = v165; + } + v166 = v39[0]; + v167 = v39[1]; + v168 = v39[2]; + v169 = v39[3]; + if (v166 !== v40[0] || v167 !== v40[1] || v168 !== v40[2] || v169 !== v40[3]) { + v1.viewport(v166, v167, v168, v169); + v40[0] = v166; + v40[1] = v167; + v40[2] = v168; + v40[3] = v169; + } + v5.dirty = false; } - v1.blendColor(0, 0, 0, 0); - v18[0] = 0; - v18[1] = 0; - v18[2] = 0; - v18[3] = 0; - if (g633) { - v1.enable(3042); - } else { - v1.disable(3042); - } - v5.blend_enable = g633; - v1.blendEquationSeparate(32774, 32774); - v20[0] = 32774; - v20[1] = 32774; - v1.blendFuncSeparate(770, 771, 1, 1); - v22[0] = 770; - v22[1] = 771; - v22[2] = 1; - v22[3] = 1; - if (g634) { - v1.enable(2884); - } else { - v1.disable(2884); - } - v5.cull_enable = g634; - v1.cullFace(g635); - v5.cull_face = g635; - if (g636) { - v1.enable(2929); - } else { - v1.disable(2929); - } - v5.depth_enable = g636; - v1.depthFunc(g637); - v5.depth_func = g637; - v1.depthMask(g638); - v5.depth_mask = g638; - v1.depthRange(0, 1); - v24[0] = 0; - v24[1] = 1; - if (g639) { - v1.enable(3024); - } else { - v1.disable(3024); + v170 = v5.profile; + if (v170) { + v171 = performance.now(); + g48.count += a1; } - v5.dither = g639; - v1.lineWidth(g640); - v5.lineWidth = g640; - if (g641) { - v1.enable(3089); + v172 = v9.frag; + v173 = v9.vert; + v174 = v9.program(v173, v172); + v1.useProgram(v174.program); + v11.setVAO(null); + v176 = v174.id; + v177 = v175[v176]; + if (v177) { + v177.call(this, a0, a1); } else { - v1.disable(3089); + v177 = v175[v176] = g178(v174); + v177.call(this, a0, a1); } - v5.scissor_enable = g641; - v642 = v5.profile; - v5.profile = false; - v1.useProgram(g105.program); - var v663, v664, v665, v666, v667, v668, v669, v670, v671, v672, v673, v674, v675, v676, v677, v678, v679, v680, v681, v682, v683, v684, v685, v686, v687, v688, v689, v690, v691, v692, v693, v694, v757; v11.setVAO(null); - v663 = g107.location; - v664 = v10[v663]; - if (!v664.buffer) { - v1.enableVertexAttribArray(v663); - } - if (v664.type !== g106.dtype || v664.size !== 4 || v664.buffer !== g106 || v664.normalized !== false || v664.offset !== 0 || v664.stride !== 0) { - v1.bindBuffer(34962, g106.buffer); - v1.vertexAttribPointer(v663, 4, g106.dtype, false, 0, 0); - v664.type = g106.dtype; - v664.size = 4; - v664.buffer = g106; - v664.normalized = false; - v664.offset = 0; - v664.stride = 0; - } - v665 = g111.location; - v666 = v10[v665]; - if (!v666.buffer) { - v1.enableVertexAttribArray(v665); - } - if (v666.type !== g110.dtype || v666.size !== 4 || v666.buffer !== g110 || v666.normalized !== false || v666.offset !== 0 || v666.stride !== 0) { - v1.bindBuffer(34962, g110.buffer); - v1.vertexAttribPointer(v665, 4, g110.dtype, false, 0, 0); - v666.type = g110.dtype; - v666.size = 4; - v666.buffer = g110; - v666.normalized = false; - v666.offset = 0; - v666.stride = 0; - } - v667 = g115.location; - v668 = v10[v667]; - if (!v668.buffer) { - v1.enableVertexAttribArray(v667); - } - if (v668.type !== g114.dtype || v668.size !== 4 || v668.buffer !== g114 || v668.normalized !== false || v668.offset !== 0 || v668.stride !== 0) { - v1.bindBuffer(34962, g114.buffer); - v1.vertexAttribPointer(v667, 4, g114.dtype, false, 0, 0); - v668.type = g114.dtype; - v668.size = 4; - v668.buffer = g114; - v668.normalized = false; - v668.offset = 0; - v668.stride = 0; - } - v669 = g119.location; - v670 = v10[v669]; - if (!v670.buffer) { - v1.enableVertexAttribArray(v669); - } - if (v670.type !== g118.dtype || v670.size !== 4 || v670.buffer !== g118 || v670.normalized !== false || v670.offset !== 0 || v670.stride !== 0) { - v1.bindBuffer(34962, g118.buffer); - v1.vertexAttribPointer(v669, 4, g118.dtype, false, 0, 0); - v670.type = g118.dtype; - v670.size = 4; - v670.buffer = g118; - v670.normalized = false; - v670.offset = 0; - v670.stride = 0; - } - v671 = g123.location; - v672 = v10[v671]; - if (!v672.buffer) { - v1.enableVertexAttribArray(v671); - } - if (v672.type !== g122.dtype || v672.size !== 4 || v672.buffer !== g122 || v672.normalized !== false || v672.offset !== 0 || v672.stride !== 0) { - v1.bindBuffer(34962, g122.buffer); - v1.vertexAttribPointer(v671, 4, g122.dtype, false, 0, 0); - v672.type = g122.dtype; - v672.size = 4; - v672.buffer = g122; - v672.normalized = false; - v672.offset = 0; - v672.stride = 0; - } - v673 = g127.location; - v674 = v10[v673]; - if (!v674.buffer) { - v1.enableVertexAttribArray(v673); - } - if (v674.type !== g126.dtype || v674.size !== 4 || v674.buffer !== g126 || v674.normalized !== false || v674.offset !== 0 || v674.stride !== 0) { - v1.bindBuffer(34962, g126.buffer); - v1.vertexAttribPointer(v673, 4, g126.dtype, false, 0, 0); - v674.type = g126.dtype; - v674.size = 4; - v674.buffer = g126; - v674.normalized = false; - v674.offset = 0; - v674.stride = 0; - } - v675 = g131.location; - v676 = v10[v675]; - if (!v676.buffer) { - v1.enableVertexAttribArray(v675); - } - if (v676.type !== g130.dtype || v676.size !== 4 || v676.buffer !== g130 || v676.normalized !== false || v676.offset !== 0 || v676.stride !== 0) { - v1.bindBuffer(34962, g130.buffer); - v1.vertexAttribPointer(v675, 4, g130.dtype, false, 0, 0); - v676.type = g130.dtype; - v676.size = 4; - v676.buffer = g130; - v676.normalized = false; - v676.offset = 0; - v676.stride = 0; - } - v677 = g135.location; - v678 = v10[v677]; - if (!v678.buffer) { - v1.enableVertexAttribArray(v677); - } - if (v678.type !== g134.dtype || v678.size !== 4 || v678.buffer !== g134 || v678.normalized !== false || v678.offset !== 0 || v678.stride !== 0) { - v1.bindBuffer(34962, g134.buffer); - v1.vertexAttribPointer(v677, 4, g134.dtype, false, 0, 0); - v678.type = g134.dtype; - v678.size = 4; - v678.buffer = g134; - v678.normalized = false; - v678.offset = 0; - v678.stride = 0; - } - v679 = g139.location; - v680 = v10[v679]; - if (!v680.buffer) { - v1.enableVertexAttribArray(v679); - } - if (v680.type !== g138.dtype || v680.size !== 4 || v680.buffer !== g138 || v680.normalized !== false || v680.offset !== 0 || v680.stride !== 0) { - v1.bindBuffer(34962, g138.buffer); - v1.vertexAttribPointer(v679, 4, g138.dtype, false, 0, 0); - v680.type = g138.dtype; - v680.size = 4; - v680.buffer = g138; - v680.normalized = false; - v680.offset = 0; - v680.stride = 0; - } - v681 = g143.location; - v682 = v10[v681]; - if (!v682.buffer) { - v1.enableVertexAttribArray(v681); - } - if (v682.type !== g142.dtype || v682.size !== 4 || v682.buffer !== g142 || v682.normalized !== false || v682.offset !== 0 || v682.stride !== 0) { - v1.bindBuffer(34962, g142.buffer); - v1.vertexAttribPointer(v681, 4, g142.dtype, false, 0, 0); - v682.type = g142.dtype; - v682.size = 4; - v682.buffer = g142; - v682.normalized = false; - v682.offset = 0; - v682.stride = 0; - } - v683 = g147.location; - v684 = v10[v683]; - if (!v684.buffer) { - v1.enableVertexAttribArray(v683); - } - if (v684.type !== g146.dtype || v684.size !== 4 || v684.buffer !== g146 || v684.normalized !== false || v684.offset !== 0 || v684.stride !== 0) { - v1.bindBuffer(34962, g146.buffer); - v1.vertexAttribPointer(v683, 4, g146.dtype, false, 0, 0); - v684.type = g146.dtype; - v684.size = 4; - v684.buffer = g146; - v684.normalized = false; - v684.offset = 0; - v684.stride = 0; - } - v685 = g151.location; - v686 = v10[v685]; - if (!v686.buffer) { - v1.enableVertexAttribArray(v685); - } - if (v686.type !== g150.dtype || v686.size !== 4 || v686.buffer !== g150 || v686.normalized !== false || v686.offset !== 0 || v686.stride !== 0) { - v1.bindBuffer(34962, g150.buffer); - v1.vertexAttribPointer(v685, 4, g150.dtype, false, 0, 0); - v686.type = g150.dtype; - v686.size = 4; - v686.buffer = g150; - v686.normalized = false; - v686.offset = 0; - v686.stride = 0; - } - v687 = g155.location; - v688 = v10[v687]; - if (!v688.buffer) { - v1.enableVertexAttribArray(v687); - } - if (v688.type !== g154.dtype || v688.size !== 4 || v688.buffer !== g154 || v688.normalized !== false || v688.offset !== 0 || v688.stride !== 0) { - v1.bindBuffer(34962, g154.buffer); - v1.vertexAttribPointer(v687, 4, g154.dtype, false, 0, 0); - v688.type = g154.dtype; - v688.size = 4; - v688.buffer = g154; - v688.normalized = false; - v688.offset = 0; - v688.stride = 0; - } - v689 = g159.location; - v690 = v10[v689]; - if (!v690.buffer) { - v1.enableVertexAttribArray(v689); - } - if (v690.type !== g158.dtype || v690.size !== 4 || v690.buffer !== g158 || v690.normalized !== false || v690.offset !== 0 || v690.stride !== 0) { - v1.bindBuffer(34962, g158.buffer); - v1.vertexAttribPointer(v689, 4, g158.dtype, false, 0, 0); - v690.type = g158.dtype; - v690.size = 4; - v690.buffer = g158; - v690.normalized = false; - v690.offset = 0; - v690.stride = 0; - } - v691 = g163.location; - v692 = v10[v691]; - if (!v692.buffer) { - v1.enableVertexAttribArray(v691); - } - if (v692.type !== g162.dtype || v692.size !== 4 || v692.buffer !== g162 || v692.normalized !== false || v692.offset !== 0 || v692.stride !== 0) { - v1.bindBuffer(34962, g162.buffer); - v1.vertexAttribPointer(v691, 4, g162.dtype, false, 0, 0); - v692.type = g162.dtype; - v692.size = 4; - v692.buffer = g162; - v692.normalized = false; - v692.offset = 0; - v692.stride = 0; - } - v693 = g167.location; - v694 = v10[v693]; - if (!v694.buffer) { - v1.enableVertexAttribArray(v693); - } - if (v694.type !== g166.dtype || v694.size !== 4 || v694.buffer !== g166 || v694.normalized !== false || v694.offset !== 0 || v694.stride !== 0) { - v1.bindBuffer(34962, g166.buffer); - v1.vertexAttribPointer(v693, 4, g166.dtype, false, 0, 0); - v694.type = g166.dtype; - v694.size = 4; - v694.buffer = g166; - v694.normalized = false; - v694.offset = 0; - v694.stride = 0; - } - v1.uniform1i(g231.location, g232.bind()); - v757 = v6.elements; - if (v757) { - v1.bindBuffer(34963, v757.buffer.buffer); - } else if (v11.currentVAO) { - v757 = v7.getElements(v11.currentVAO.elements); - if (v757) v1.bindBuffer(34963, v757.buffer.buffer); - } - for (v643 = 0; v643 < a1; ++v643) { - v644 = a0[v643]; - var v645, v646, v647, v648, v649, v650, v651, v652, v653, v654, v655, v656, v657, v658, v659, v660, v661, v662, v695, v696, v697, v698, v699, v700, v701, v702, v703, v704, v706, v708, v710, v712, v714, v716, v718, v720, v721, v722, v724, v726, v728, v730, v732, v734, v736, v738, v739, v740, v741, v742, v743, v744, v745, v746, v747, v748, v749, v750, v751, v752, v753, v754, v755, v756, v758, v759; - v645 = v644["viewportX"]; - v49.x = v645; - v646 = v644["viewportY"]; - v49.y = v646; - v647 = v644["viewportWidth"]; - v49.width = v647; - v648 = v644["viewportHeight"]; - v49.height = v648; - v649 = v49.x | 0; - v650 = v49.y | 0; - v651 = "width" in v49 ? v49.width | 0 : v2.framebufferWidth - v649; - v652 = "height" in v49 ? v49.height | 0 : v2.framebufferHeight - v650; - v653 = v2.viewportWidth; - v2.viewportWidth = v651; - v654 = v2.viewportHeight; - v2.viewportHeight = v652; - v1.viewport(v649, v650, v651, v652); - v40[0] = v649; - v40[1] = v650; - v40[2] = v651; - v40[3] = v652; - v655 = v644["scissorX"]; - v50.x = v655; - v656 = v644["scissorY"]; - v50.y = v656; - v657 = v644["scissorWidth"]; - v50.width = v657; - v658 = v644["scissorHeight"]; - v50.height = v658; - v659 = v50.x | 0; - v660 = v50.y | 0; - v661 = "width" in v50 ? v50.width | 0 : v2.framebufferWidth - v659; - v662 = "height" in v50 ? v50.height | 0 : v2.framebufferHeight - v660; - v1.scissor(v659, v660, v661, v662); - v38[0] = v659; - v38[1] = v660; - v38[2] = v661; - v38[3] = v662; - v695 = v644["contextColor"]; - v696 = v695[0]; - v698 = v695[1]; - v700 = v695[2]; - v702 = v695[3]; - if (!v643 || v697 !== v696 || v699 !== v698 || v701 !== v700 || v703 !== v702) { - v697 = v696; - v699 = v698; - v701 = v700; - v703 = v702; - v1.uniform4f(g170.location, v696, v698, v700, v702); - } - v704 = v644["dim0A"]; - v1.uniformMatrix4fv(g176.location, false, Array.isArray(v704) || v704 instanceof Float32Array ? v704 : (v705[0] = v704[0], v705[1] = v704[1], v705[2] = v704[2], v705[3] = v704[3], v705[4] = v704[4], v705[5] = v704[5], v705[6] = v704[6], v705[7] = v704[7], v705[8] = v704[8], v705[9] = v704[9], v705[10] = v704[10], v705[11] = v704[11], v705[12] = v704[12], v705[13] = v704[13], v705[14] = v704[14], v705[15] = v704[15], v705)); - v706 = v644["dim0B"]; - v1.uniformMatrix4fv(g179.location, false, Array.isArray(v706) || v706 instanceof Float32Array ? v706 : (v707[0] = v706[0], v707[1] = v706[1], v707[2] = v706[2], v707[3] = v706[3], v707[4] = v706[4], v707[5] = v706[5], v707[6] = v706[6], v707[7] = v706[7], v707[8] = v706[8], v707[9] = v706[9], v707[10] = v706[10], v707[11] = v706[11], v707[12] = v706[12], v707[13] = v706[13], v707[14] = v706[14], v707[15] = v706[15], v707)); - v708 = v644["dim0C"]; - v1.uniformMatrix4fv(g182.location, false, Array.isArray(v708) || v708 instanceof Float32Array ? v708 : (v709[0] = v708[0], v709[1] = v708[1], v709[2] = v708[2], v709[3] = v708[3], v709[4] = v708[4], v709[5] = v708[5], v709[6] = v708[6], v709[7] = v708[7], v709[8] = v708[8], v709[9] = v708[9], v709[10] = v708[10], v709[11] = v708[11], v709[12] = v708[12], v709[13] = v708[13], v709[14] = v708[14], v709[15] = v708[15], v709)); - v710 = v644["dim0D"]; - v1.uniformMatrix4fv(g185.location, false, Array.isArray(v710) || v710 instanceof Float32Array ? v710 : (v711[0] = v710[0], v711[1] = v710[1], v711[2] = v710[2], v711[3] = v710[3], v711[4] = v710[4], v711[5] = v710[5], v711[6] = v710[6], v711[7] = v710[7], v711[8] = v710[8], v711[9] = v710[9], v711[10] = v710[10], v711[11] = v710[11], v711[12] = v710[12], v711[13] = v710[13], v711[14] = v710[14], v711[15] = v710[15], v711)); - v712 = v644["dim1A"]; - v1.uniformMatrix4fv(g188.location, false, Array.isArray(v712) || v712 instanceof Float32Array ? v712 : (v713[0] = v712[0], v713[1] = v712[1], v713[2] = v712[2], v713[3] = v712[3], v713[4] = v712[4], v713[5] = v712[5], v713[6] = v712[6], v713[7] = v712[7], v713[8] = v712[8], v713[9] = v712[9], v713[10] = v712[10], v713[11] = v712[11], v713[12] = v712[12], v713[13] = v712[13], v713[14] = v712[14], v713[15] = v712[15], v713)); - v714 = v644["dim1B"]; - v1.uniformMatrix4fv(g191.location, false, Array.isArray(v714) || v714 instanceof Float32Array ? v714 : (v715[0] = v714[0], v715[1] = v714[1], v715[2] = v714[2], v715[3] = v714[3], v715[4] = v714[4], v715[5] = v714[5], v715[6] = v714[6], v715[7] = v714[7], v715[8] = v714[8], v715[9] = v714[9], v715[10] = v714[10], v715[11] = v714[11], v715[12] = v714[12], v715[13] = v714[13], v715[14] = v714[14], v715[15] = v714[15], v715)); - v716 = v644["dim1C"]; - v1.uniformMatrix4fv(g194.location, false, Array.isArray(v716) || v716 instanceof Float32Array ? v716 : (v717[0] = v716[0], v717[1] = v716[1], v717[2] = v716[2], v717[3] = v716[3], v717[4] = v716[4], v717[5] = v716[5], v717[6] = v716[6], v717[7] = v716[7], v717[8] = v716[8], v717[9] = v716[9], v717[10] = v716[10], v717[11] = v716[11], v717[12] = v716[12], v717[13] = v716[13], v717[14] = v716[14], v717[15] = v716[15], v717)); - v718 = v644["dim1D"]; - v1.uniformMatrix4fv(g197.location, false, Array.isArray(v718) || v718 instanceof Float32Array ? v718 : (v719[0] = v718[0], v719[1] = v718[1], v719[2] = v718[2], v719[3] = v718[3], v719[4] = v718[4], v719[5] = v718[5], v719[6] = v718[6], v719[7] = v718[7], v719[8] = v718[8], v719[9] = v718[9], v719[10] = v718[10], v719[11] = v718[11], v719[12] = v718[12], v719[13] = v718[13], v719[14] = v718[14], v719[15] = v718[15], v719)); - v720 = v644["drwLayer"]; - if (!v643 || v721 !== v720) { - v721 = v720; - v1.uniform1f(g200.location, v720); - } - v722 = v644["hiA"]; - v1.uniformMatrix4fv(g202.location, false, Array.isArray(v722) || v722 instanceof Float32Array ? v722 : (v723[0] = v722[0], v723[1] = v722[1], v723[2] = v722[2], v723[3] = v722[3], v723[4] = v722[4], v723[5] = v722[5], v723[6] = v722[6], v723[7] = v722[7], v723[8] = v722[8], v723[9] = v722[9], v723[10] = v722[10], v723[11] = v722[11], v723[12] = v722[12], v723[13] = v722[13], v723[14] = v722[14], v723[15] = v722[15], v723)); - v724 = v644["hiB"]; - v1.uniformMatrix4fv(g205.location, false, Array.isArray(v724) || v724 instanceof Float32Array ? v724 : (v725[0] = v724[0], v725[1] = v724[1], v725[2] = v724[2], v725[3] = v724[3], v725[4] = v724[4], v725[5] = v724[5], v725[6] = v724[6], v725[7] = v724[7], v725[8] = v724[8], v725[9] = v724[9], v725[10] = v724[10], v725[11] = v724[11], v725[12] = v724[12], v725[13] = v724[13], v725[14] = v724[14], v725[15] = v724[15], v725)); - v726 = v644["hiC"]; - v1.uniformMatrix4fv(g208.location, false, Array.isArray(v726) || v726 instanceof Float32Array ? v726 : (v727[0] = v726[0], v727[1] = v726[1], v727[2] = v726[2], v727[3] = v726[3], v727[4] = v726[4], v727[5] = v726[5], v727[6] = v726[6], v727[7] = v726[7], v727[8] = v726[8], v727[9] = v726[9], v727[10] = v726[10], v727[11] = v726[11], v727[12] = v726[12], v727[13] = v726[13], v727[14] = v726[14], v727[15] = v726[15], v727)); - v728 = v644["hiD"]; - v1.uniformMatrix4fv(g211.location, false, Array.isArray(v728) || v728 instanceof Float32Array ? v728 : (v729[0] = v728[0], v729[1] = v728[1], v729[2] = v728[2], v729[3] = v728[3], v729[4] = v728[4], v729[5] = v728[5], v729[6] = v728[6], v729[7] = v728[7], v729[8] = v728[8], v729[9] = v728[9], v729[10] = v728[10], v729[11] = v728[11], v729[12] = v728[12], v729[13] = v728[13], v729[14] = v728[14], v729[15] = v728[15], v729)); - v730 = v644["loA"]; - v1.uniformMatrix4fv(g214.location, false, Array.isArray(v730) || v730 instanceof Float32Array ? v730 : (v731[0] = v730[0], v731[1] = v730[1], v731[2] = v730[2], v731[3] = v730[3], v731[4] = v730[4], v731[5] = v730[5], v731[6] = v730[6], v731[7] = v730[7], v731[8] = v730[8], v731[9] = v730[9], v731[10] = v730[10], v731[11] = v730[11], v731[12] = v730[12], v731[13] = v730[13], v731[14] = v730[14], v731[15] = v730[15], v731)); - v732 = v644["loB"]; - v1.uniformMatrix4fv(g217.location, false, Array.isArray(v732) || v732 instanceof Float32Array ? v732 : (v733[0] = v732[0], v733[1] = v732[1], v733[2] = v732[2], v733[3] = v732[3], v733[4] = v732[4], v733[5] = v732[5], v733[6] = v732[6], v733[7] = v732[7], v733[8] = v732[8], v733[9] = v732[9], v733[10] = v732[10], v733[11] = v732[11], v733[12] = v732[12], v733[13] = v732[13], v733[14] = v732[14], v733[15] = v732[15], v733)); - v734 = v644["loC"]; - v1.uniformMatrix4fv(g220.location, false, Array.isArray(v734) || v734 instanceof Float32Array ? v734 : (v735[0] = v734[0], v735[1] = v734[1], v735[2] = v734[2], v735[3] = v734[3], v735[4] = v734[4], v735[5] = v734[5], v735[6] = v734[6], v735[7] = v734[7], v735[8] = v734[8], v735[9] = v734[9], v735[10] = v734[10], v735[11] = v734[11], v735[12] = v734[12], v735[13] = v734[13], v735[14] = v734[14], v735[15] = v734[15], v735)); - v736 = v644["loD"]; - v1.uniformMatrix4fv(g223.location, false, Array.isArray(v736) || v736 instanceof Float32Array ? v736 : (v737[0] = v736[0], v737[1] = v736[1], v737[2] = v736[2], v737[3] = v736[3], v737[4] = v736[4], v737[5] = v736[5], v737[6] = v736[6], v737[7] = v736[7], v737[8] = v736[8], v737[9] = v736[9], v737[10] = v736[10], v737[11] = v736[11], v737[12] = v736[12], v737[13] = v736[13], v737[14] = v736[14], v737[15] = v736[15], v737)); - v738 = v644["maskHeight"]; - if (!v643 || v739 !== v738) { - v739 = v738; - v1.uniform1f(g226.location, v738); - } - v740 = v644["maskTexture"]; - if (v740 && v740._reglType === "framebuffer") { - v740 = v740.color[0]; - } - v741 = v740._texture; - v1.uniform1i(g228.location, v741.bind()); - v742 = v644["resolution"]; - v743 = v742[0]; - v745 = v742[1]; - if (!v643 || v744 !== v743 || v746 !== v745) { - v744 = v743; - v746 = v745; - v1.uniform2f(g233.location, v743, v745); - } - v747 = v644["viewBoxPos"]; - v748 = v747[0]; - v750 = v747[1]; - if (!v643 || v749 !== v748 || v751 !== v750) { - v749 = v748; - v751 = v750; - v1.uniform2f(g237.location, v748, v750); - } - v752 = v644["viewBoxSize"]; - v753 = v752[0]; - v755 = v752[1]; - if (!v643 || v754 !== v753 || v756 !== v755) { - v754 = v753; - v756 = v755; - v1.uniform2f(g241.location, v753, v755); - } - v758 = v644["offset"]; - v759 = v644["count"]; - if (v759) { - if (v757) { - v1.drawElements(1, v759, v757.type, v758 << (v757.type - 5121 >> 1)); - } else { - v1.drawArrays(1, v758, v759); - } - v2.viewportWidth = v653; - v2.viewportHeight = v654; - v741.unbind(); - } + if (v170) { + g48.cpuTime += performance.now() - v171; } - g232.unbind(); - v5.dirty = true; - v11.setVAO(null); - v5.profile = v642; } }; }; @@ -195288,15 +195431,15 @@ void main() { var require_regl_precompiled3 = __commonJS({ "src/traces/parcoords/regl_precompiled.js"(exports, module) { "use strict"; - var v0 = require_a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45(); - var v1 = require_f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0(); - var v2 = require_a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470(); - var v3 = require_fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d(); + var v0 = require_f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0(); + var v1 = require_fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d(); + var v2 = require_a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45(); + var v3 = require_a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470(); module.exports = { - "453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45": v0, - "30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0": v1, - "a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470": v2, - "3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d": v3 + "30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0": v0, + "3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d": v1, + "453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45": v2, + "a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470": v3 }; } }); @@ -198513,7 +198656,7 @@ void main() { "node_modules/@plotly/mapbox-gl/dist/mapbox-gl-unminified.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : (global2 = global2 || self, global2.mapboxgl = factory()); - })(exports, function() { + })(exports, (function() { "use strict"; var shared, worker, mapboxgl; function define2(_, chunk) { @@ -199413,7 +199556,7 @@ void main() { this.queue.push(event); this.processRequests(customAccessToken); }; - var MapLoadEvent = function(TelemetryEvent2) { + var MapLoadEvent = (function(TelemetryEvent2) { function MapLoadEvent2() { TelemetryEvent2.call(this, "map.load"); this.success = {}; @@ -199460,8 +199603,8 @@ void main() { }, customAccessToken); }; return MapLoadEvent2; - }(TelemetryEvent); - var TurnstileEvent = function(TelemetryEvent2) { + })(TelemetryEvent); + var TurnstileEvent = (function(TelemetryEvent2) { function TurnstileEvent2(customAccessToken) { TelemetryEvent2.call(this, "appUserTurnstile"); this._customAccessToken = customAccessToken; @@ -199512,7 +199655,7 @@ void main() { }, customAccessToken); }; return TurnstileEvent2; - }(TelemetryEvent); + })(TelemetryEvent); var turnstileEvent_ = new TurnstileEvent(); var postTurnstileEvent = turnstileEvent_.postTurnstileEvent.bind(turnstileEvent_); var mapLoadEvent_ = new MapLoadEvent(); @@ -199662,7 +199805,7 @@ void main() { if (typeof Object.freeze == "function") { Object.freeze(ResourceType); } - var AJAXError = function(Error2) { + var AJAXError = (function(Error2) { function AJAXError2(message, status2, url) { if (status2 === 401 && isMapboxHTTPURL(url)) { message += ": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"; @@ -199681,7 +199824,7 @@ void main() { return this.name + ": " + this.message + " (" + this.status + "): " + this.url; }; return AJAXError2; - }(Error); + })(Error); var getReferrer = isWorker() ? function() { return self.worker && self.worker.referrer; } : function() { @@ -199958,7 +200101,7 @@ void main() { extend2(this, data); this.type = type; }; - var ErrorEvent = function(Event2) { + var ErrorEvent = (function(Event2) { function ErrorEvent2(error2, data) { if (data === void 0) data = {}; @@ -199969,7 +200112,7 @@ void main() { ErrorEvent2.prototype = Object.create(Event2 && Event2.prototype); ErrorEvent2.prototype.constructor = ErrorEvent2; return ErrorEvent2; - }(Event); + })(Event); var Evented = function Evented2() { }; Evented.prototype.on = function on(type, listener) { @@ -202878,7 +203021,7 @@ void main() { } return unbundle(value); } - var ParsingError = function(Error2) { + var ParsingError = (function(Error2) { function ParsingError2(key, message) { Error2.call(this, message); this.message = message; @@ -202889,7 +203032,7 @@ void main() { ParsingError2.prototype = Object.create(Error2 && Error2.prototype); ParsingError2.prototype.constructor = ParsingError2; return ParsingError2; - }(Error); + })(Error); var Scope = function Scope2(parent, bindings) { if (bindings === void 0) bindings = []; @@ -206470,7 +206613,7 @@ void main() { } function makeComparison(op, compareBasic, compareWithCollator) { var isOrderComparison = op !== "==" && op !== "!="; - return function() { + return (function() { function Comparison(lhs, rhs, collator) { this.type = BooleanType; this.lhs = lhs; @@ -206556,7 +206699,7 @@ void main() { return serialized; }; return Comparison; - }(); + })(); } var Equals = makeComparison("==", eq, eqCollate); var NotEquals = makeComparison("!=", neq, neqCollate); @@ -210128,7 +210271,7 @@ void main() { return value.evaluate(parameters, feature, featureState, canonical, availableImages); } }; - var CrossFadedDataDrivenProperty = function(DataDrivenProperty2) { + var CrossFadedDataDrivenProperty = (function(DataDrivenProperty2) { function CrossFadedDataDrivenProperty2() { DataDrivenProperty2.apply(this, arguments); } @@ -210185,7 +210328,7 @@ void main() { return a; }; return CrossFadedDataDrivenProperty2; - }(DataDrivenProperty); + })(DataDrivenProperty); var CrossFadedProperty = function CrossFadedProperty2(specification) { this.specification = specification; }; @@ -210245,7 +210388,7 @@ void main() { register("CrossFadedProperty", CrossFadedProperty); register("ColorRampProperty", ColorRampProperty); var TRANSITION_SUFFIX = "-transition"; - var StyleLayer = function(Evented2) { + var StyleLayer = (function(Evented2) { function StyleLayer2(layer2, properties2) { Evented2.call(this); this.id = layer2.id; @@ -210434,7 +210577,7 @@ void main() { return false; }; return StyleLayer2; - }(Evented); + })(Evented); var viewTypes = { "Int8": Int8Array, "Uint8": Uint8Array, @@ -210536,7 +210679,7 @@ void main() { function align(offset, size) { return Math.ceil(offset / size) * size; } - var StructArrayLayout2i4 = function(StructArray2) { + var StructArrayLayout2i4 = (function(StructArray2) { function StructArrayLayout2i42() { StructArray2.apply(this, arguments); } @@ -210560,10 +210703,10 @@ void main() { return i; }; return StructArrayLayout2i42; - }(StructArray); + })(StructArray); StructArrayLayout2i4.prototype.bytesPerElement = 4; register("StructArrayLayout2i4", StructArrayLayout2i4); - var StructArrayLayout4i8 = function(StructArray2) { + var StructArrayLayout4i8 = (function(StructArray2) { function StructArrayLayout4i82() { StructArray2.apply(this, arguments); } @@ -210589,10 +210732,10 @@ void main() { return i; }; return StructArrayLayout4i82; - }(StructArray); + })(StructArray); StructArrayLayout4i8.prototype.bytesPerElement = 8; register("StructArrayLayout4i8", StructArrayLayout4i8); - var StructArrayLayout2i4i12 = function(StructArray2) { + var StructArrayLayout2i4i12 = (function(StructArray2) { function StructArrayLayout2i4i122() { StructArray2.apply(this, arguments); } @@ -210620,10 +210763,10 @@ void main() { return i; }; return StructArrayLayout2i4i122; - }(StructArray); + })(StructArray); StructArrayLayout2i4i12.prototype.bytesPerElement = 12; register("StructArrayLayout2i4i12", StructArrayLayout2i4i12); - var StructArrayLayout2i4ub8 = function(StructArray2) { + var StructArrayLayout2i4ub8 = (function(StructArray2) { function StructArrayLayout2i4ub82() { StructArray2.apply(this, arguments); } @@ -210652,10 +210795,10 @@ void main() { return i; }; return StructArrayLayout2i4ub82; - }(StructArray); + })(StructArray); StructArrayLayout2i4ub8.prototype.bytesPerElement = 8; register("StructArrayLayout2i4ub8", StructArrayLayout2i4ub8); - var StructArrayLayout2f8 = function(StructArray2) { + var StructArrayLayout2f8 = (function(StructArray2) { function StructArrayLayout2f82() { StructArray2.apply(this, arguments); } @@ -210679,10 +210822,10 @@ void main() { return i; }; return StructArrayLayout2f82; - }(StructArray); + })(StructArray); StructArrayLayout2f8.prototype.bytesPerElement = 8; register("StructArrayLayout2f8", StructArrayLayout2f8); - var StructArrayLayout10ui20 = function(StructArray2) { + var StructArrayLayout10ui20 = (function(StructArray2) { function StructArrayLayout10ui202() { StructArray2.apply(this, arguments); } @@ -210714,10 +210857,10 @@ void main() { return i; }; return StructArrayLayout10ui202; - }(StructArray); + })(StructArray); StructArrayLayout10ui20.prototype.bytesPerElement = 20; register("StructArrayLayout10ui20", StructArrayLayout10ui20); - var StructArrayLayout4i4ui4i24 = function(StructArray2) { + var StructArrayLayout4i4ui4i24 = (function(StructArray2) { function StructArrayLayout4i4ui4i242() { StructArray2.apply(this, arguments); } @@ -210752,10 +210895,10 @@ void main() { return i; }; return StructArrayLayout4i4ui4i242; - }(StructArray); + })(StructArray); StructArrayLayout4i4ui4i24.prototype.bytesPerElement = 24; register("StructArrayLayout4i4ui4i24", StructArrayLayout4i4ui4i24); - var StructArrayLayout3f12 = function(StructArray2) { + var StructArrayLayout3f12 = (function(StructArray2) { function StructArrayLayout3f122() { StructArray2.apply(this, arguments); } @@ -210780,10 +210923,10 @@ void main() { return i; }; return StructArrayLayout3f122; - }(StructArray); + })(StructArray); StructArrayLayout3f12.prototype.bytesPerElement = 12; register("StructArrayLayout3f12", StructArrayLayout3f12); - var StructArrayLayout1ul4 = function(StructArray2) { + var StructArrayLayout1ul4 = (function(StructArray2) { function StructArrayLayout1ul42() { StructArray2.apply(this, arguments); } @@ -210806,10 +210949,10 @@ void main() { return i; }; return StructArrayLayout1ul42; - }(StructArray); + })(StructArray); StructArrayLayout1ul4.prototype.bytesPerElement = 4; register("StructArrayLayout1ul4", StructArrayLayout1ul4); - var StructArrayLayout6i1ul2ui20 = function(StructArray2) { + var StructArrayLayout6i1ul2ui20 = (function(StructArray2) { function StructArrayLayout6i1ul2ui202() { StructArray2.apply(this, arguments); } @@ -210843,10 +210986,10 @@ void main() { return i; }; return StructArrayLayout6i1ul2ui202; - }(StructArray); + })(StructArray); StructArrayLayout6i1ul2ui20.prototype.bytesPerElement = 20; register("StructArrayLayout6i1ul2ui20", StructArrayLayout6i1ul2ui20); - var StructArrayLayout2i2i2i12 = function(StructArray2) { + var StructArrayLayout2i2i2i12 = (function(StructArray2) { function StructArrayLayout2i2i2i122() { StructArray2.apply(this, arguments); } @@ -210874,10 +211017,10 @@ void main() { return i; }; return StructArrayLayout2i2i2i122; - }(StructArray); + })(StructArray); StructArrayLayout2i2i2i12.prototype.bytesPerElement = 12; register("StructArrayLayout2i2i2i12", StructArrayLayout2i2i2i12); - var StructArrayLayout2f1f2i16 = function(StructArray2) { + var StructArrayLayout2f1f2i16 = (function(StructArray2) { function StructArrayLayout2f1f2i162() { StructArray2.apply(this, arguments); } @@ -210906,10 +211049,10 @@ void main() { return i; }; return StructArrayLayout2f1f2i162; - }(StructArray); + })(StructArray); StructArrayLayout2f1f2i16.prototype.bytesPerElement = 16; register("StructArrayLayout2f1f2i16", StructArrayLayout2f1f2i16); - var StructArrayLayout2ub2f12 = function(StructArray2) { + var StructArrayLayout2ub2f12 = (function(StructArray2) { function StructArrayLayout2ub2f122() { StructArray2.apply(this, arguments); } @@ -210936,10 +211079,10 @@ void main() { return i; }; return StructArrayLayout2ub2f122; - }(StructArray); + })(StructArray); StructArrayLayout2ub2f12.prototype.bytesPerElement = 12; register("StructArrayLayout2ub2f12", StructArrayLayout2ub2f12); - var StructArrayLayout3ui6 = function(StructArray2) { + var StructArrayLayout3ui6 = (function(StructArray2) { function StructArrayLayout3ui62() { StructArray2.apply(this, arguments); } @@ -210964,10 +211107,10 @@ void main() { return i; }; return StructArrayLayout3ui62; - }(StructArray); + })(StructArray); StructArrayLayout3ui6.prototype.bytesPerElement = 6; register("StructArrayLayout3ui6", StructArrayLayout3ui6); - var StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 = function(StructArray2) { + var StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 = (function(StructArray2) { function StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482() { StructArray2.apply(this, arguments); } @@ -211011,10 +211154,10 @@ void main() { return i; }; return StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482; - }(StructArray); + })(StructArray); StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype.bytesPerElement = 48; register("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); - var StructArrayLayout8i15ui1ul4f68 = function(StructArray2) { + var StructArrayLayout8i15ui1ul4f68 = (function(StructArray2) { function StructArrayLayout8i15ui1ul4f682() { StructArray2.apply(this, arguments); } @@ -211068,10 +211211,10 @@ void main() { return i; }; return StructArrayLayout8i15ui1ul4f682; - }(StructArray); + })(StructArray); StructArrayLayout8i15ui1ul4f68.prototype.bytesPerElement = 68; register("StructArrayLayout8i15ui1ul4f68", StructArrayLayout8i15ui1ul4f68); - var StructArrayLayout1f4 = function(StructArray2) { + var StructArrayLayout1f4 = (function(StructArray2) { function StructArrayLayout1f42() { StructArray2.apply(this, arguments); } @@ -211094,10 +211237,10 @@ void main() { return i; }; return StructArrayLayout1f42; - }(StructArray); + })(StructArray); StructArrayLayout1f4.prototype.bytesPerElement = 4; register("StructArrayLayout1f4", StructArrayLayout1f4); - var StructArrayLayout3i6 = function(StructArray2) { + var StructArrayLayout3i6 = (function(StructArray2) { function StructArrayLayout3i62() { StructArray2.apply(this, arguments); } @@ -211122,10 +211265,10 @@ void main() { return i; }; return StructArrayLayout3i62; - }(StructArray); + })(StructArray); StructArrayLayout3i6.prototype.bytesPerElement = 6; register("StructArrayLayout3i6", StructArrayLayout3i6); - var StructArrayLayout1ul2ui8 = function(StructArray2) { + var StructArrayLayout1ul2ui8 = (function(StructArray2) { function StructArrayLayout1ul2ui82() { StructArray2.apply(this, arguments); } @@ -211152,10 +211295,10 @@ void main() { return i; }; return StructArrayLayout1ul2ui82; - }(StructArray); + })(StructArray); StructArrayLayout1ul2ui8.prototype.bytesPerElement = 8; register("StructArrayLayout1ul2ui8", StructArrayLayout1ul2ui8); - var StructArrayLayout2ui4 = function(StructArray2) { + var StructArrayLayout2ui4 = (function(StructArray2) { function StructArrayLayout2ui42() { StructArray2.apply(this, arguments); } @@ -211179,10 +211322,10 @@ void main() { return i; }; return StructArrayLayout2ui42; - }(StructArray); + })(StructArray); StructArrayLayout2ui4.prototype.bytesPerElement = 4; register("StructArrayLayout2ui4", StructArrayLayout2ui4); - var StructArrayLayout1ui2 = function(StructArray2) { + var StructArrayLayout1ui2 = (function(StructArray2) { function StructArrayLayout1ui22() { StructArray2.apply(this, arguments); } @@ -211205,10 +211348,10 @@ void main() { return i; }; return StructArrayLayout1ui22; - }(StructArray); + })(StructArray); StructArrayLayout1ui2.prototype.bytesPerElement = 2; register("StructArrayLayout1ui2", StructArrayLayout1ui2); - var StructArrayLayout4f16 = function(StructArray2) { + var StructArrayLayout4f16 = (function(StructArray2) { function StructArrayLayout4f162() { StructArray2.apply(this, arguments); } @@ -211234,10 +211377,10 @@ void main() { return i; }; return StructArrayLayout4f162; - }(StructArray); + })(StructArray); StructArrayLayout4f16.prototype.bytesPerElement = 16; register("StructArrayLayout4f16", StructArrayLayout4f16); - var CollisionBoxStruct = function(Struct2) { + var CollisionBoxStruct = (function(Struct2) { function CollisionBoxStruct2() { Struct2.apply(this, arguments); } @@ -211289,9 +211432,9 @@ void main() { }; Object.defineProperties(CollisionBoxStruct2.prototype, prototypeAccessors2); return CollisionBoxStruct2; - }(Struct); + })(Struct); CollisionBoxStruct.prototype.size = 20; - var CollisionBoxArray = function(StructArrayLayout6i1ul2ui202) { + var CollisionBoxArray = (function(StructArrayLayout6i1ul2ui202) { function CollisionBoxArray2() { StructArrayLayout6i1ul2ui202.apply(this, arguments); } @@ -211303,9 +211446,9 @@ void main() { return new CollisionBoxStruct(this, index); }; return CollisionBoxArray2; - }(StructArrayLayout6i1ul2ui20); + })(StructArrayLayout6i1ul2ui20); register("CollisionBoxArray", CollisionBoxArray); - var PlacedSymbolStruct = function(Struct2) { + var PlacedSymbolStruct = (function(Struct2) { function PlacedSymbolStruct2() { Struct2.apply(this, arguments); } @@ -211394,9 +211537,9 @@ void main() { }; Object.defineProperties(PlacedSymbolStruct2.prototype, prototypeAccessors$12); return PlacedSymbolStruct2; - }(Struct); + })(Struct); PlacedSymbolStruct.prototype.size = 48; - var PlacedSymbolArray = function(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482) { + var PlacedSymbolArray = (function(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482) { function PlacedSymbolArray2() { StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482.apply(this, arguments); } @@ -211408,9 +211551,9 @@ void main() { return new PlacedSymbolStruct(this, index); }; return PlacedSymbolArray2; - }(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); + })(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); register("PlacedSymbolArray", PlacedSymbolArray); - var SymbolInstanceStruct = function(Struct2) { + var SymbolInstanceStruct = (function(Struct2) { function SymbolInstanceStruct2() { Struct2.apply(this, arguments); } @@ -211537,9 +211680,9 @@ void main() { }; Object.defineProperties(SymbolInstanceStruct2.prototype, prototypeAccessors$2); return SymbolInstanceStruct2; - }(Struct); + })(Struct); SymbolInstanceStruct.prototype.size = 68; - var SymbolInstanceArray = function(StructArrayLayout8i15ui1ul4f682) { + var SymbolInstanceArray = (function(StructArrayLayout8i15ui1ul4f682) { function SymbolInstanceArray2() { StructArrayLayout8i15ui1ul4f682.apply(this, arguments); } @@ -211551,9 +211694,9 @@ void main() { return new SymbolInstanceStruct(this, index); }; return SymbolInstanceArray2; - }(StructArrayLayout8i15ui1ul4f68); + })(StructArrayLayout8i15ui1ul4f68); register("SymbolInstanceArray", SymbolInstanceArray); - var GlyphOffsetArray = function(StructArrayLayout1f42) { + var GlyphOffsetArray = (function(StructArrayLayout1f42) { function GlyphOffsetArray2() { StructArrayLayout1f42.apply(this, arguments); } @@ -211565,9 +211708,9 @@ void main() { return this.float32[index * 1 + 0]; }; return GlyphOffsetArray2; - }(StructArrayLayout1f4); + })(StructArrayLayout1f4); register("GlyphOffsetArray", GlyphOffsetArray); - var SymbolLineVertexArray = function(StructArrayLayout3i62) { + var SymbolLineVertexArray = (function(StructArrayLayout3i62) { function SymbolLineVertexArray2() { StructArrayLayout3i62.apply(this, arguments); } @@ -211585,9 +211728,9 @@ void main() { return this.int16[index * 3 + 2]; }; return SymbolLineVertexArray2; - }(StructArrayLayout3i6); + })(StructArrayLayout3i6); register("SymbolLineVertexArray", SymbolLineVertexArray); - var FeatureIndexStruct = function(Struct2) { + var FeatureIndexStruct = (function(Struct2) { function FeatureIndexStruct2() { Struct2.apply(this, arguments); } @@ -211611,9 +211754,9 @@ void main() { }; Object.defineProperties(FeatureIndexStruct2.prototype, prototypeAccessors$3); return FeatureIndexStruct2; - }(Struct); + })(Struct); FeatureIndexStruct.prototype.size = 8; - var FeatureIndexArray = function(StructArrayLayout1ul2ui82) { + var FeatureIndexArray = (function(StructArrayLayout1ul2ui82) { function FeatureIndexArray2() { StructArrayLayout1ul2ui82.apply(this, arguments); } @@ -211625,7 +211768,7 @@ void main() { return new FeatureIndexStruct(this, index); }; return FeatureIndexArray2; - }(StructArrayLayout1ul2ui8); + })(StructArrayLayout1ul2ui8); register("FeatureIndexArray", FeatureIndexArray); var layout$1 = createLayout([{ name: "a_pos", @@ -211888,7 +212031,7 @@ void main() { this.gl = context.gl; this.location = location2; }; - var Uniform1i = function(Uniform2) { + var Uniform1i = (function(Uniform2) { function Uniform1i2(context, location2) { Uniform2.call(this, context, location2); this.current = 0; @@ -211904,8 +212047,8 @@ void main() { } }; return Uniform1i2; - }(Uniform); - var Uniform1f = function(Uniform2) { + })(Uniform); + var Uniform1f = (function(Uniform2) { function Uniform1f2(context, location2) { Uniform2.call(this, context, location2); this.current = 0; @@ -211921,8 +212064,8 @@ void main() { } }; return Uniform1f2; - }(Uniform); - var Uniform2f = function(Uniform2) { + })(Uniform); + var Uniform2f = (function(Uniform2) { function Uniform2f2(context, location2) { Uniform2.call(this, context, location2); this.current = [ @@ -211941,8 +212084,8 @@ void main() { } }; return Uniform2f2; - }(Uniform); - var Uniform3f = function(Uniform2) { + })(Uniform); + var Uniform3f = (function(Uniform2) { function Uniform3f2(context, location2) { Uniform2.call(this, context, location2); this.current = [ @@ -211962,8 +212105,8 @@ void main() { } }; return Uniform3f2; - }(Uniform); - var Uniform4f = function(Uniform2) { + })(Uniform); + var Uniform4f = (function(Uniform2) { function Uniform4f2(context, location2) { Uniform2.call(this, context, location2); this.current = [ @@ -211984,8 +212127,8 @@ void main() { } }; return Uniform4f2; - }(Uniform); - var UniformColor = function(Uniform2) { + })(Uniform); + var UniformColor = (function(Uniform2) { function UniformColor2(context, location2) { Uniform2.call(this, context, location2); this.current = Color2.transparent; @@ -212001,9 +212144,9 @@ void main() { } }; return UniformColor2; - }(Uniform); + })(Uniform); var emptyMat4 = new Float32Array(16); - var UniformMatrix4f = function(Uniform2) { + var UniformMatrix4f = (function(Uniform2) { function UniformMatrix4f2(context, location2) { Uniform2.call(this, context, location2); this.current = emptyMat4; @@ -212027,7 +212170,7 @@ void main() { } }; return UniformMatrix4f2; - }(Uniform); + })(Uniform); function packColor(color3) { return [ packUint8ToFloat(255 * color3.r, 255 * color3.g), @@ -213361,7 +213504,7 @@ void main() { return out; } var sub = subtract; - var forEach = function() { + var forEach = (function() { var vec = create$3(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -213387,7 +213530,7 @@ void main() { } return a; }; - }(); + })(); function create$4() { var out = new ARRAY_TYPE(4); if (ARRAY_TYPE != Float32Array) { @@ -213416,7 +213559,7 @@ void main() { out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; return out; } - var forEach$1 = function() { + var forEach$1 = (function() { var vec = create$4(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -213444,7 +213587,7 @@ void main() { } return a; }; - }(); + })(); function create$5() { var out = new ARRAY_TYPE(2); if (ARRAY_TYPE != Float32Array) { @@ -213458,7 +213601,7 @@ void main() { return x * x + y * y; } var sqrLen = squaredLength; - var forEach$2 = function() { + var forEach$2 = (function() { var vec = create$5(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -213482,8 +213625,8 @@ void main() { } return a; }; - }(); - var CircleStyleLayer = function(StyleLayer2) { + })(); + var CircleStyleLayer = (function(StyleLayer2) { function CircleStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties); } @@ -213531,7 +213674,7 @@ void main() { return false; }; return CircleStyleLayer2; - }(StyleLayer); + })(StyleLayer); function projectPoint(p, pixelPosMatrix) { var point = transformMat4([], [ p.x, @@ -213546,7 +213689,7 @@ void main() { return projectPoint(p, pixelPosMatrix); }); } - var HeatmapBucket = function(CircleBucket2) { + var HeatmapBucket = (function(CircleBucket2) { function HeatmapBucket2() { CircleBucket2.apply(this, arguments); } @@ -213555,7 +213698,7 @@ void main() { HeatmapBucket2.prototype = Object.create(CircleBucket2 && CircleBucket2.prototype); HeatmapBucket2.prototype.constructor = HeatmapBucket2; return HeatmapBucket2; - }(CircleBucket); + })(CircleBucket); register("HeatmapBucket", HeatmapBucket, { omit: ["layers"] }); function createImage(image, ref, channels, data) { var width = ref.width; @@ -213701,7 +213844,7 @@ void main() { } return image; } - var HeatmapStyleLayer = function(StyleLayer2) { + var HeatmapStyleLayer = (function(StyleLayer2) { function HeatmapStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$1); this._updateColorRamp(); @@ -213743,7 +213886,7 @@ void main() { return this.paint.get("heatmap-opacity") !== 0 && this.visibility !== "none"; }; return HeatmapStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$3 = new Properties({ "hillshade-illumination-direction": new DataConstantProperty(spec["paint_hillshade"]["hillshade-illumination-direction"]), "hillshade-illumination-anchor": new DataConstantProperty(spec["paint_hillshade"]["hillshade-illumination-anchor"]), @@ -213753,7 +213896,7 @@ void main() { "hillshade-accent-color": new DataConstantProperty(spec["paint_hillshade"]["hillshade-accent-color"]) }); var properties$2 = { paint: paint$3 }; - var HillshadeStyleLayer = function(StyleLayer2) { + var HillshadeStyleLayer = (function(StyleLayer2) { function HillshadeStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$2); } @@ -213765,7 +213908,7 @@ void main() { return this.paint.get("hillshade-exaggeration") !== 0 && this.visibility !== "none"; }; return HillshadeStyleLayer2; - }(StyleLayer); + })(StyleLayer); var layout$3 = createLayout([{ name: "a_pos", components: 2, @@ -214587,7 +214730,7 @@ void main() { paint: paint$4, layout: layout$4 }; - var FillStyleLayer = function(StyleLayer2) { + var FillStyleLayer = (function(StyleLayer2) { function FillStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$3); } @@ -214616,7 +214759,7 @@ void main() { return true; }; return FillStyleLayer2; - }(StyleLayer); + })(StyleLayer); var layout$5 = createLayout([ { name: "a_pos", @@ -215090,7 +215233,7 @@ void main() { "fill-extrusion-vertical-gradient": new DataConstantProperty(spec["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) }); var properties$4 = { paint: paint$5 }; - var FillExtrusionStyleLayer = function(StyleLayer2) { + var FillExtrusionStyleLayer = (function(StyleLayer2) { function FillExtrusionStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$4); } @@ -215118,7 +215261,7 @@ void main() { return checkIntersection(projectedBase, projectedTop, projectedQueryGeometry); }; return FillExtrusionStyleLayer2; - }(StyleLayer); + })(StyleLayer); function dot$2(a, b) { return a.x * b.x + a.y * b.y; } @@ -215654,7 +215797,7 @@ void main() { paint: paint$6, layout: layout$6 }; - var LineFloorwidthProperty = function(DataDrivenProperty2) { + var LineFloorwidthProperty = (function(DataDrivenProperty2) { function LineFloorwidthProperty2() { DataDrivenProperty2.apply(this, arguments); } @@ -215676,10 +215819,10 @@ void main() { return DataDrivenProperty2.prototype.evaluate.call(this, value, globals, feature, featureState); }; return LineFloorwidthProperty2; - }(DataDrivenProperty); + })(DataDrivenProperty); var lineFloorwidthProperty = new LineFloorwidthProperty(properties$5.paint.properties["line-width"].specification); lineFloorwidthProperty.useIntegerZoom = true; - var LineStyleLayer = function(StyleLayer2) { + var LineStyleLayer = (function(StyleLayer2) { function LineStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$5); this.gradientVersion = 0; @@ -215724,7 +215867,7 @@ void main() { return true; }; return LineStyleLayer2; - }(StyleLayer); + })(StyleLayer); function getLineWidth(lineWidth, lineGapWidth) { if (lineGapWidth > 0) { return lineGapWidth + 2 * lineWidth; @@ -217872,7 +218015,7 @@ void main() { collisionPadding }; } - var Anchor = function(Point2) { + var Anchor = (function(Point2) { function Anchor2(x, y, angle, segment) { Point2.call(this, x, y); this.angle = angle; @@ -217888,7 +218031,7 @@ void main() { return new Anchor2(this.x, this.y, this.angle, this.segment); }; return Anchor2; - }(pointGeometry); + })(pointGeometry); register("Anchor", Anchor); var SIZE_PACK_FACTOR = 128; function getSizeData(tileZoom, value) { @@ -219781,7 +219924,7 @@ void main() { return null; }; register("FormatSectionOverride", FormatSectionOverride, { omit: ["defaultValue"] }); - var SymbolStyleLayer = function(StyleLayer2) { + var SymbolStyleLayer = (function(StyleLayer2) { function SymbolStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$6); } @@ -219906,14 +220049,14 @@ void main() { return hasOverrides; }; return SymbolStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$8 = new Properties({ "background-color": new DataConstantProperty(spec["paint_background"]["background-color"]), "background-pattern": new CrossFadedProperty(spec["paint_background"]["background-pattern"]), "background-opacity": new DataConstantProperty(spec["paint_background"]["background-opacity"]) }); var properties$7 = { paint: paint$8 }; - var BackgroundStyleLayer = function(StyleLayer2) { + var BackgroundStyleLayer = (function(StyleLayer2) { function BackgroundStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$7); } @@ -219922,7 +220065,7 @@ void main() { BackgroundStyleLayer2.prototype = Object.create(StyleLayer2 && StyleLayer2.prototype); BackgroundStyleLayer2.prototype.constructor = BackgroundStyleLayer2; return BackgroundStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$9 = new Properties({ "raster-opacity": new DataConstantProperty(spec["paint_raster"]["raster-opacity"]), "raster-hue-rotate": new DataConstantProperty(spec["paint_raster"]["raster-hue-rotate"]), @@ -219934,7 +220077,7 @@ void main() { "raster-fade-duration": new DataConstantProperty(spec["paint_raster"]["raster-fade-duration"]) }); var properties$8 = { paint: paint$9 }; - var RasterStyleLayer = function(StyleLayer2) { + var RasterStyleLayer = (function(StyleLayer2) { function RasterStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$8); } @@ -219943,7 +220086,7 @@ void main() { RasterStyleLayer2.prototype = Object.create(StyleLayer2 && StyleLayer2.prototype); RasterStyleLayer2.prototype.constructor = RasterStyleLayer2; return RasterStyleLayer2; - }(StyleLayer); + })(StyleLayer); function validateCustomStyleLayer(layerObject) { var errors = []; var id2 = layerObject.id; @@ -219958,7 +220101,7 @@ void main() { } return errors; } - var CustomStyleLayer = function(StyleLayer2) { + var CustomStyleLayer = (function(StyleLayer2) { function CustomStyleLayer2(implementation) { StyleLayer2.call(this, implementation, {}); this.implementation = implementation; @@ -219992,7 +220135,7 @@ void main() { } }; return CustomStyleLayer2; - }(StyleLayer); + })(StyleLayer); var subclasses = { circle: CircleStyleLayer, heatmap: HeatmapStyleLayer, @@ -223655,7 +223798,7 @@ void main() { rawData: pbf.buffer }); } - var GeoJSONWorkerSource = function(VectorTileWorkerSource2) { + var GeoJSONWorkerSource = (function(VectorTileWorkerSource2) { function GeoJSONWorkerSource2(actor, layerIndex, availableImages, loadGeoJSON) { VectorTileWorkerSource2.call(this, actor, layerIndex, availableImages, loadGeoJSONTile); if (loadGeoJSON) { @@ -223791,7 +223934,7 @@ void main() { } }; return GeoJSONWorkerSource2; - }(VectorTileWorkerSource); + })(VectorTileWorkerSource); function getSuperclusterOptions(ref) { var superclusterOptions = ref.superclusterOptions; var clusterProperties = ref.clusterProperties; @@ -224328,7 +224471,7 @@ void main() { return false; } var padding = 1; - var ImageManager = function(Evented) { + var ImageManager = (function(Evented) { function ImageManager2() { Evented.call(this); this.images = {}; @@ -224631,7 +224774,7 @@ void main() { } }; return ImageManager2; - }(performance2.Evented); + })(performance2.Evented); function loadGlyphRange(fontstack, range, urlTemplate, requestManager, callback) { var begin = range * 256; var end = begin + 255; @@ -224908,7 +225051,7 @@ void main() { "intensity": new performance2.DataConstantProperty(performance2.styleSpec.light.intensity) }); var TRANSITION_SUFFIX = "-transition"; - var Light = function(Evented) { + var Light = (function(Evented) { function Light2(lightOptions) { Evented.call(this); this._transitionable = new performance2.Transitionable(properties); @@ -224960,7 +225103,7 @@ void main() { }))); }; return Light2; - }(performance2.Evented); + })(performance2.Evented); var LineAtlas = function LineAtlas2(width, height) { this.width = width; this.height = height; @@ -225205,7 +225348,7 @@ void main() { var hit = tileID.x >= level.minX && tileID.x < level.maxX && tileID.y >= level.minY && tileID.y < level.maxY; return hit; }; - var VectorTileSource = function(Evented) { + var VectorTileSource = (function(Evented) { function VectorTileSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -225378,8 +225521,8 @@ void main() { return false; }; return VectorTileSource2; - }(performance2.Evented); - var RasterTileSource = function(Evented) { + })(performance2.Evented); + var RasterTileSource = (function(Evented) { function RasterTileSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -225501,8 +225644,8 @@ void main() { return false; }; return RasterTileSource2; - }(performance2.Evented); - var RasterDEMTileSource = function(RasterTileSource2) { + })(performance2.Evented); + var RasterDEMTileSource = (function(RasterTileSource2) { function RasterDEMTileSource2(id, options, dispatcher, eventedParent) { RasterTileSource2.call(this, id, options, dispatcher, eventedParent); this.type = "raster-dem"; @@ -225613,8 +225756,8 @@ void main() { } }; return RasterDEMTileSource2; - }(RasterTileSource); - var GeoJSONSource = function(Evented) { + })(RasterTileSource); + var GeoJSONSource = (function(Evented) { function GeoJSONSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -225824,7 +225967,7 @@ void main() { return false; }; return GeoJSONSource2; - }(performance2.Evented); + })(performance2.Evented); var rasterBoundsAttributes = performance2.createLayout([ { name: "a_pos", @@ -225837,7 +225980,7 @@ void main() { components: 2 } ]); - var ImageSource = function(Evented) { + var ImageSource = (function(Evented) { function ImageSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -225973,7 +226116,7 @@ void main() { return false; }; return ImageSource2; - }(performance2.Evented); + })(performance2.Evented); function getCoordinatesCenterTileID(coords) { var minX = Infinity; var minY = Infinity; @@ -225993,7 +226136,7 @@ void main() { var tilesAtZoom = Math.pow(2, zoom); return new performance2.CanonicalTileID(zoom, Math.floor((minX + maxX) / 2 * tilesAtZoom), Math.floor((minY + maxY) / 2 * tilesAtZoom)); } - var VideoSource = function(ImageSource2) { + var VideoSource = (function(ImageSource2) { function VideoSource2(id, options, dispatcher, eventedParent) { ImageSource2.call(this, id, options, dispatcher, eventedParent); this.roundZoom = true; @@ -226102,8 +226245,8 @@ void main() { return this.video && !this.video.paused; }; return VideoSource2; - }(ImageSource); - var CanvasSource = function(ImageSource2) { + })(ImageSource); + var CanvasSource = (function(ImageSource2) { function CanvasSource2(id, options, dispatcher, eventedParent) { ImageSource2.call(this, id, options, dispatcher, eventedParent); if (!options.coordinates) { @@ -226227,7 +226370,7 @@ void main() { return false; }; return CanvasSource2; - }(ImageSource); + })(ImageSource); var sourceTypes = { vector: VectorTileSource, raster: RasterTileSource, @@ -226630,7 +226773,7 @@ void main() { BaseValue.prototype.setDefault = function setDefault() { this.set(this.default); }; - var ClearColor = function(BaseValue2) { + var ClearColor = (function(BaseValue2) { function ClearColor2() { BaseValue2.apply(this, arguments); } @@ -226651,8 +226794,8 @@ void main() { this.dirty = false; }; return ClearColor2; - }(BaseValue); - var ClearDepth = function(BaseValue2) { + })(BaseValue); + var ClearDepth = (function(BaseValue2) { function ClearDepth2() { BaseValue2.apply(this, arguments); } @@ -226672,8 +226815,8 @@ void main() { this.dirty = false; }; return ClearDepth2; - }(BaseValue); - var ClearStencil = function(BaseValue2) { + })(BaseValue); + var ClearStencil = (function(BaseValue2) { function ClearStencil2() { BaseValue2.apply(this, arguments); } @@ -226693,8 +226836,8 @@ void main() { this.dirty = false; }; return ClearStencil2; - }(BaseValue); - var ColorMask = function(BaseValue2) { + })(BaseValue); + var ColorMask = (function(BaseValue2) { function ColorMask2() { BaseValue2.apply(this, arguments); } @@ -226720,8 +226863,8 @@ void main() { this.dirty = false; }; return ColorMask2; - }(BaseValue); - var DepthMask = function(BaseValue2) { + })(BaseValue); + var DepthMask = (function(BaseValue2) { function DepthMask2() { BaseValue2.apply(this, arguments); } @@ -226741,8 +226884,8 @@ void main() { this.dirty = false; }; return DepthMask2; - }(BaseValue); - var StencilMask = function(BaseValue2) { + })(BaseValue); + var StencilMask = (function(BaseValue2) { function StencilMask2() { BaseValue2.apply(this, arguments); } @@ -226762,8 +226905,8 @@ void main() { this.dirty = false; }; return StencilMask2; - }(BaseValue); - var StencilFunc = function(BaseValue2) { + })(BaseValue); + var StencilFunc = (function(BaseValue2) { function StencilFunc2() { BaseValue2.apply(this, arguments); } @@ -226788,8 +226931,8 @@ void main() { this.dirty = false; }; return StencilFunc2; - }(BaseValue); - var StencilOp = function(BaseValue2) { + })(BaseValue); + var StencilOp = (function(BaseValue2) { function StencilOp2() { BaseValue2.apply(this, arguments); } @@ -226815,8 +226958,8 @@ void main() { this.dirty = false; }; return StencilOp2; - }(BaseValue); - var StencilTest = function(BaseValue2) { + })(BaseValue); + var StencilTest = (function(BaseValue2) { function StencilTest2() { BaseValue2.apply(this, arguments); } @@ -226841,8 +226984,8 @@ void main() { this.dirty = false; }; return StencilTest2; - }(BaseValue); - var DepthRange = function(BaseValue2) { + })(BaseValue); + var DepthRange = (function(BaseValue2) { function DepthRange2() { BaseValue2.apply(this, arguments); } @@ -226866,8 +227009,8 @@ void main() { this.dirty = false; }; return DepthRange2; - }(BaseValue); - var DepthTest = function(BaseValue2) { + })(BaseValue); + var DepthTest = (function(BaseValue2) { function DepthTest2() { BaseValue2.apply(this, arguments); } @@ -226892,8 +227035,8 @@ void main() { this.dirty = false; }; return DepthTest2; - }(BaseValue); - var DepthFunc = function(BaseValue2) { + })(BaseValue); + var DepthFunc = (function(BaseValue2) { function DepthFunc2() { BaseValue2.apply(this, arguments); } @@ -226913,8 +227056,8 @@ void main() { this.dirty = false; }; return DepthFunc2; - }(BaseValue); - var Blend = function(BaseValue2) { + })(BaseValue); + var Blend = (function(BaseValue2) { function Blend2() { BaseValue2.apply(this, arguments); } @@ -226939,8 +227082,8 @@ void main() { this.dirty = false; }; return Blend2; - }(BaseValue); - var BlendFunc = function(BaseValue2) { + })(BaseValue); + var BlendFunc = (function(BaseValue2) { function BlendFunc2() { BaseValue2.apply(this, arguments); } @@ -226965,8 +227108,8 @@ void main() { this.dirty = false; }; return BlendFunc2; - }(BaseValue); - var BlendColor = function(BaseValue2) { + })(BaseValue); + var BlendColor = (function(BaseValue2) { function BlendColor2() { BaseValue2.apply(this, arguments); } @@ -226987,8 +227130,8 @@ void main() { this.dirty = false; }; return BlendColor2; - }(BaseValue); - var BlendEquation = function(BaseValue2) { + })(BaseValue); + var BlendEquation = (function(BaseValue2) { function BlendEquation2() { BaseValue2.apply(this, arguments); } @@ -227008,8 +227151,8 @@ void main() { this.dirty = false; }; return BlendEquation2; - }(BaseValue); - var CullFace = function(BaseValue2) { + })(BaseValue); + var CullFace = (function(BaseValue2) { function CullFace2() { BaseValue2.apply(this, arguments); } @@ -227034,8 +227177,8 @@ void main() { this.dirty = false; }; return CullFace2; - }(BaseValue); - var CullFaceSide = function(BaseValue2) { + })(BaseValue); + var CullFaceSide = (function(BaseValue2) { function CullFaceSide2() { BaseValue2.apply(this, arguments); } @@ -227055,8 +227198,8 @@ void main() { this.dirty = false; }; return CullFaceSide2; - }(BaseValue); - var FrontFace = function(BaseValue2) { + })(BaseValue); + var FrontFace = (function(BaseValue2) { function FrontFace2() { BaseValue2.apply(this, arguments); } @@ -227076,8 +227219,8 @@ void main() { this.dirty = false; }; return FrontFace2; - }(BaseValue); - var Program = function(BaseValue2) { + })(BaseValue); + var Program = (function(BaseValue2) { function Program2() { BaseValue2.apply(this, arguments); } @@ -227097,8 +227240,8 @@ void main() { this.dirty = false; }; return Program2; - }(BaseValue); - var ActiveTextureUnit = function(BaseValue2) { + })(BaseValue); + var ActiveTextureUnit = (function(BaseValue2) { function ActiveTextureUnit2() { BaseValue2.apply(this, arguments); } @@ -227118,8 +227261,8 @@ void main() { this.dirty = false; }; return ActiveTextureUnit2; - }(BaseValue); - var Viewport = function(BaseValue2) { + })(BaseValue); + var Viewport = (function(BaseValue2) { function Viewport2() { BaseValue2.apply(this, arguments); } @@ -227146,8 +227289,8 @@ void main() { this.dirty = false; }; return Viewport2; - }(BaseValue); - var BindFramebuffer = function(BaseValue2) { + })(BaseValue); + var BindFramebuffer = (function(BaseValue2) { function BindFramebuffer2() { BaseValue2.apply(this, arguments); } @@ -227168,8 +227311,8 @@ void main() { this.dirty = false; }; return BindFramebuffer2; - }(BaseValue); - var BindRenderbuffer = function(BaseValue2) { + })(BaseValue); + var BindRenderbuffer = (function(BaseValue2) { function BindRenderbuffer2() { BaseValue2.apply(this, arguments); } @@ -227190,8 +227333,8 @@ void main() { this.dirty = false; }; return BindRenderbuffer2; - }(BaseValue); - var BindTexture = function(BaseValue2) { + })(BaseValue); + var BindTexture = (function(BaseValue2) { function BindTexture2() { BaseValue2.apply(this, arguments); } @@ -227212,8 +227355,8 @@ void main() { this.dirty = false; }; return BindTexture2; - }(BaseValue); - var BindVertexBuffer = function(BaseValue2) { + })(BaseValue); + var BindVertexBuffer = (function(BaseValue2) { function BindVertexBuffer2() { BaseValue2.apply(this, arguments); } @@ -227234,8 +227377,8 @@ void main() { this.dirty = false; }; return BindVertexBuffer2; - }(BaseValue); - var BindElementBuffer = function(BaseValue2) { + })(BaseValue); + var BindElementBuffer = (function(BaseValue2) { function BindElementBuffer2() { BaseValue2.apply(this, arguments); } @@ -227253,8 +227396,8 @@ void main() { this.dirty = false; }; return BindElementBuffer2; - }(BaseValue); - var BindVertexArrayOES = function(BaseValue2) { + })(BaseValue); + var BindVertexArrayOES = (function(BaseValue2) { function BindVertexArrayOES2(context) { BaseValue2.call(this, context); this.vao = context.extVertexArrayObject; @@ -227275,8 +227418,8 @@ void main() { this.dirty = false; }; return BindVertexArrayOES2; - }(BaseValue); - var PixelStoreUnpack = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpack = (function(BaseValue2) { function PixelStoreUnpack2() { BaseValue2.apply(this, arguments); } @@ -227297,8 +227440,8 @@ void main() { this.dirty = false; }; return PixelStoreUnpack2; - }(BaseValue); - var PixelStoreUnpackPremultiplyAlpha = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpackPremultiplyAlpha = (function(BaseValue2) { function PixelStoreUnpackPremultiplyAlpha2() { BaseValue2.apply(this, arguments); } @@ -227319,8 +227462,8 @@ void main() { this.dirty = false; }; return PixelStoreUnpackPremultiplyAlpha2; - }(BaseValue); - var PixelStoreUnpackFlipY = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpackFlipY = (function(BaseValue2) { function PixelStoreUnpackFlipY2() { BaseValue2.apply(this, arguments); } @@ -227341,8 +227484,8 @@ void main() { this.dirty = false; }; return PixelStoreUnpackFlipY2; - }(BaseValue); - var FramebufferAttachment = function(BaseValue2) { + })(BaseValue); + var FramebufferAttachment = (function(BaseValue2) { function FramebufferAttachment2(context, parent) { BaseValue2.call(this, context); this.context = context; @@ -227356,8 +227499,8 @@ void main() { return null; }; return FramebufferAttachment2; - }(BaseValue); - var ColorAttachment = function(FramebufferAttachment2) { + })(BaseValue); + var ColorAttachment = (function(FramebufferAttachment2) { function ColorAttachment2() { FramebufferAttachment2.apply(this, arguments); } @@ -227379,8 +227522,8 @@ void main() { this.dirty = false; }; return ColorAttachment2; - }(FramebufferAttachment); - var DepthAttachment = function(FramebufferAttachment2) { + })(FramebufferAttachment); + var DepthAttachment = (function(FramebufferAttachment2) { function DepthAttachment2() { FramebufferAttachment2.apply(this, arguments); } @@ -227399,7 +227542,7 @@ void main() { this.dirty = false; }; return DepthAttachment2; - }(FramebufferAttachment); + })(FramebufferAttachment); var Framebuffer = function Framebuffer2(context, width, height, hasDepth) { this.context = context; this.width = width; @@ -227697,7 +227840,7 @@ void main() { this.bindVertexArrayOES.set(null); } }; - var SourceCache = function(Evented) { + var SourceCache = (function(Evented) { function SourceCache2(id, options, dispatcher) { var this$1 = this; Evented.call(this); @@ -228383,7 +228526,7 @@ void main() { }); }; return SourceCache2; - }(performance2.Evented); + })(performance2.Evented); SourceCache.maxOverzooming = 10; SourceCache.maxUnderzooming = 3; function compareTileId(a, b) { @@ -230702,7 +230845,7 @@ void main() { "setPitch" ]); var empty = emptyStyle(); - var Style = function(Evented) { + var Style = (function(Evented) { function Style2(map, options) { var this$1 = this; if (options === void 0) @@ -231673,7 +231816,7 @@ void main() { return performance2.makeRequest(params, callback); }; return Style2; - }(performance2.Evented); + })(performance2.Evented); Style.getSourceType = getType; Style.setSourceType = setType; Style.registerForPluginStateChange = performance2.registerForPluginStateChange; @@ -235381,7 +235524,7 @@ void main() { amount: speed * (duration / 2) }; } - var MapMouseEvent = function(Event) { + var MapMouseEvent = (function(Event) { function MapMouseEvent2(type, map, originalEvent, data) { if (data === void 0) data = {}; @@ -235408,8 +235551,8 @@ void main() { }; Object.defineProperties(MapMouseEvent2.prototype, prototypeAccessors2); return MapMouseEvent2; - }(performance2.Event); - var MapTouchEvent = function(Event) { + })(performance2.Event); + var MapTouchEvent = (function(Event) { function MapTouchEvent2(type, map, originalEvent) { var touches = type === "touchend" ? originalEvent.changedTouches : originalEvent.touches; var points = DOM.touchPos(map.getCanvasContainer(), touches); @@ -235442,8 +235585,8 @@ void main() { }; Object.defineProperties(MapTouchEvent2.prototype, prototypeAccessors$1); return MapTouchEvent2; - }(performance2.Event); - var MapWheelEvent = function(Event) { + })(performance2.Event); + var MapWheelEvent = (function(Event) { function MapWheelEvent2(type, map, originalEvent) { Event.call(this, type, { originalEvent }); this._defaultPrevented = false; @@ -235461,7 +235604,7 @@ void main() { }; Object.defineProperties(MapWheelEvent2.prototype, prototypeAccessors$2); return MapWheelEvent2; - }(performance2.Event); + })(performance2.Event); var MapEventHandler = function MapEventHandler2(map, options) { this._map = map; this._clickTolerance = options.clickTolerance; @@ -235919,7 +236062,7 @@ void main() { MouseHandler.prototype.isActive = function isActive() { return this._active; }; - var MousePanHandler = function(MouseHandler2) { + var MousePanHandler = (function(MouseHandler2) { function MousePanHandler2() { MouseHandler2.apply(this, arguments); } @@ -235943,8 +236086,8 @@ void main() { }; }; return MousePanHandler2; - }(MouseHandler); - var MouseRotateHandler = function(MouseHandler2) { + })(MouseHandler); + var MouseRotateHandler = (function(MouseHandler2) { function MouseRotateHandler2() { MouseHandler2.apply(this, arguments); } @@ -235967,8 +236110,8 @@ void main() { e.preventDefault(); }; return MouseRotateHandler2; - }(MouseHandler); - var MousePitchHandler = function(MouseHandler2) { + })(MouseHandler); + var MousePitchHandler = (function(MouseHandler2) { function MousePitchHandler2() { MouseHandler2.apply(this, arguments); } @@ -235991,7 +236134,7 @@ void main() { e.preventDefault(); }; return MousePitchHandler2; - }(MouseHandler); + })(MouseHandler); var TouchPanHandler = function TouchPanHandler2(options) { this._minTouches = 1; this._clickTolerance = options.clickTolerance || 1; @@ -236156,7 +236299,7 @@ void main() { function getZoomDelta(distance, lastDistance) { return Math.log(distance / lastDistance) / Math.LN2; } - var TouchZoomHandler = function(TwoTouchHandler2) { + var TouchZoomHandler = (function(TwoTouchHandler2) { function TouchZoomHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -236185,12 +236328,12 @@ void main() { }; }; return TouchZoomHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); var ROTATION_THRESHOLD = 25; function getBearingDelta(a, b) { return a.angleWith(b) * 180 / Math.PI; } - var TouchRotateHandler = function(TwoTouchHandler2) { + var TouchRotateHandler = (function(TwoTouchHandler2) { function TouchRotateHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -236228,12 +236371,12 @@ void main() { return Math.abs(bearingDeltaSinceStart) < threshold; }; return TouchRotateHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); function isVertical(vector) { return Math.abs(vector.y) > Math.abs(vector.x); } var ALLOWED_SINGLE_TOUCH_TIME = 100; - var TouchPitchHandler = function(TwoTouchHandler2) { + var TouchPitchHandler = (function(TwoTouchHandler2) { function TouchPitchHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -236290,7 +236433,7 @@ void main() { return isVertical(vectorA) && isVertical(vectorB) && isSameDirection; }; return TouchPitchHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); var defaultOptions = { panStep: 100, bearingStep: 15, @@ -236796,7 +236939,7 @@ void main() { var isMoving = function(p) { return p.zoom || p.drag || p.pitch || p.rotate; }; - var RenderFrameEvent = function(Event) { + var RenderFrameEvent = (function(Event) { function RenderFrameEvent2() { Event.apply(this, arguments); } @@ -236805,7 +236948,7 @@ void main() { RenderFrameEvent2.prototype = Object.create(Event && Event.prototype); RenderFrameEvent2.prototype.constructor = RenderFrameEvent2; return RenderFrameEvent2; - }(performance2.Event); + })(performance2.Event); function hasChange(result) { return result.panDelta && result.panDelta.mag() || result.zoomDelta || result.bearingDelta || result.pitchDelta; } @@ -237295,7 +237438,7 @@ void main() { this._frameId = this._requestFrame(); } }; - var Camera = function(Evented) { + var Camera = (function(Evented) { function Camera2(transform, options) { Evented.call(this); this._moving = false; @@ -237790,7 +237933,7 @@ void main() { center.lng += delta > 180 ? -360 : delta < -180 ? 360 : 0; }; return Camera2; - }(performance2.Evented); + })(performance2.Evented); var AttributionControl = function AttributionControl2(options) { if (options === void 0) options = {}; @@ -238122,7 +238265,7 @@ void main() { fadeDuration: 300, crossSourceCollisions: true }; - var Map2 = function(Camera2) { + var Map2 = (function(Camera2) { function Map3(options) { var this$1 = this; options = performance2.extend({}, defaultOptions$1, options); @@ -239160,7 +239303,7 @@ void main() { }; Object.defineProperties(Map3.prototype, prototypeAccessors2); return Map3; - }(Camera); + })(Camera); function removeNode(node) { if (node.parentNode) { node.parentNode.removeChild(node); @@ -239427,7 +239570,7 @@ void main() { } classList.add("mapboxgl-" + prefix + "-anchor-" + anchor); } - var Marker = function(Evented) { + var Marker = (function(Evented) { function Marker2(options, legacyOptions) { Evented.call(this); if (options instanceof performance2.window.HTMLElement || legacyOptions) { @@ -239829,7 +239972,7 @@ void main() { return this._pitchAlignment; }; return Marker2; - }(performance2.Evented); + })(performance2.Evented); var defaultOptions$3 = { positionOptions: { enableHighAccuracy: false, @@ -239857,7 +240000,7 @@ void main() { } var numberOfWatches = 0; var noTimeout = false; - var GeolocateControl = function(Evented) { + var GeolocateControl = (function(Evented) { function GeolocateControl2(options) { Evented.call(this); this.options = performance2.extend({}, defaultOptions$3, options); @@ -240184,7 +240327,7 @@ void main() { } }; return GeolocateControl2; - }(performance2.Evented); + })(performance2.Evented); var defaultOptions$4 = { maxWidth: 100, unit: "metric" @@ -240373,7 +240516,7 @@ void main() { "select:not([disabled])", "textarea:not([disabled])" ].join(", "); - var Popup = function(Evented) { + var Popup = (function(Evented) { function Popup2(options) { Evented.call(this); this.options = performance2.extend(Object.create(defaultOptions$5), options); @@ -240626,7 +240769,7 @@ void main() { this.remove(); }; return Popup2; - }(performance2.Evented); + })(performance2.Evented); function normalizeOffset(offset) { if (!offset) { return normalizeOffset(new performance2.Point(0, 0)); @@ -240751,7 +240894,7 @@ void main() { return exported; }); return mapboxgl; - }); + })); } }); @@ -246080,7 +246223,7 @@ void main() { "node_modules/maplibre-gl/dist/maplibre-gl.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, global2.maplibregl = factory()); - })(exports, function() { + })(exports, (function() { "use strict"; var maplibregl = {}; var modules = {}; @@ -246099,10 +246242,10 @@ void main() { return maplibregl; } ; - define2("shared", ["exports"], function(t) { + define2("shared", ["exports"], (function(t) { "use strict"; function e(t4, e2, r2, n2) { - return new (r2 || (r2 = Promise))(function(i2, s2) { + return new (r2 || (r2 = Promise))((function(i2, s2) { function a2(t5) { try { l2(n2.next(t5)); @@ -246119,12 +246262,12 @@ void main() { } function l2(t5) { var e3; - t5.done ? i2(t5.value) : (e3 = t5.value, e3 instanceof r2 ? e3 : new r2(function(t6) { + t5.done ? i2(t5.value) : (e3 = t5.value, e3 instanceof r2 ? e3 : new r2((function(t6) { t6(e3); - })).then(a2, o2); + }))).then(a2, o2); } l2((n2 = n2.apply(t4, e2 || [])).next()); - }); + })); } function r(t4) { return t4 && t4.__esModule && Object.prototype.hasOwnProperty.call(t4, "default") ? t4.default : t4; @@ -246302,17 +246445,17 @@ void main() { } const z = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="; function P(t4, r2, n2, i2, s2) { - return e(this, void 0, void 0, function* () { + return e(this, void 0, void 0, (function* () { if ("undefined" == typeof VideoFrame) throw new Error("VideoFrame not supported"); const e2 = new VideoFrame(t4, { timestamp: 0 }); try { const a2 = null == e2 ? void 0 : e2.format; if (!a2 || !a2.startsWith("BGR") && !a2.startsWith("RGB")) throw new Error(`Unrecognized format ${a2}`); const o2 = a2.startsWith("BGR"), l2 = new Uint8ClampedArray(i2 * s2 * 4); - if (yield e2.copyTo(l2, function(t5, e3, r3, n3, i3) { + if (yield e2.copyTo(l2, (function(t5, e3, r3, n3, i3) { const s3 = 4 * Math.max(-e3, 0), a3 = (Math.max(0, r3) - r3) * n3 * 4 + s3, o3 = 4 * n3, l3 = Math.max(0, e3), u2 = Math.max(0, r3); return { rect: { x: l3, y: u2, width: Math.min(t5.width, e3 + n3) - l3, height: Math.min(t5.height, r3 + i3) - u2 }, layout: [{ offset: a3, stride: o3 }] }; - }(t4, r2, n2, i2, s2)), o2) for (let t5 = 0; t5 < l2.length; t5 += 4) { + })(t4, r2, n2, i2, s2)), o2) for (let t5 = 0; t5 < l2.length; t5 += 4) { const e3 = l2[t5]; l2[t5] = l2[t5 + 2], l2[t5 + 2] = e3; } @@ -246320,7 +246463,7 @@ void main() { } finally { e2.close(); } - }); + })); } let C2, B2; const V = "AbortError"; @@ -246344,8 +246487,8 @@ void main() { if (k(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: t4, targetMapId: $ }, r2); } if (!(/^file:/.test(n2 = t4.url) || /^file:/.test(D2()) && !/^\w+:/.test(n2))) { - if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return function(t5, r3) { - return e(this, void 0, void 0, function* () { + if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return (function(t5, r3) { + return e(this, void 0, void 0, (function* () { const e2 = new Request(t5.url, { method: t5.method || "GET", body: t5.body, credentials: t5.credentials, headers: t5.headers, cache: t5.cache, referrer: D2(), signal: r3.signal }); "json" !== t5.type || e2.headers.has("Accept") || e2.headers.set("Accept", "application/json"); const n3 = yield fetch(e2); @@ -246358,13 +246501,13 @@ void main() { const s2 = yield i2; if (r3.signal.aborted) throw E2(); return { data: s2, cacheControl: n3.headers.get("Cache-Control"), expires: n3.headers.get("Expires") }; - }); - }(t4, r2); + })); + })(t4, r2); if (k(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: t4, mustQueue: true, targetMapId: $ }, r2); } var n2; - return function(t5, e2) { - return new Promise((r3, n3) => { + return (function(t5, e2) { + return new Promise(((r3, n3) => { var i2; const s2 = new XMLHttpRequest(); s2.open(t5.method || "GET", t5.url, true), "arrayBuffer" !== t5.type && "image" !== t5.type || (s2.responseType = "arraybuffer"); @@ -246384,11 +246527,11 @@ void main() { const e3 = new Blob([s2.response], { type: s2.getResponseHeader("Content-Type") }); n3(new L(s2.status, s2.statusText, t5.url, e3)); } - }, e2.signal.addEventListener("abort", () => { + }, e2.signal.addEventListener("abort", (() => { s2.abort(), n3(E2()); - }), s2.send(t5.body); - }); - }(t4, r2); + })), s2.send(t5.body); + })); + })(t4, r2); }; function j(t4) { if (!t4 || t4.indexOf("://") <= 0 || 0 === t4.indexOf("data:image/") || 0 === t4.indexOf("blob:")) return true; @@ -246422,7 +246565,7 @@ void main() { return U(t4, e2, this._listeners), U(t4, e2, this._oneTimeListeners), this; } once(t4, e2) { - return e2 ? (this._oneTimeListeners = this._oneTimeListeners || {}, R(t4, e2, this._oneTimeListeners), this) : new Promise((e3) => this.once(t4, e3)); + return e2 ? (this._oneTimeListeners = this._oneTimeListeners || {}, R(t4, e2, this._oneTimeListeners), this) : new Promise(((e3) => this.once(t4, e3))); } fire(t4, e2) { "string" == typeof t4 && (t4 = new q(t4, e2 || {})); @@ -246450,9 +246593,9 @@ void main() { function X(t4, e2) { const r2 = {}; for (const e3 in t4) "ref" !== e3 && (r2[e3] = t4[e3]); - return K2.forEach((t5) => { + return K2.forEach(((t5) => { t5 in e2 && (r2[t5] = e2[t5]); - }), r2; + })), r2; } function H(t4, e2) { if (Array.isArray(t4)) { @@ -246553,10 +246696,10 @@ void main() { return `Expected ${wt(t4)} but found ${wt(e2)} instead.`; } function St(t4, e2) { - return e2.some((e3) => e3.kind === t4.kind); + return e2.some(((e3) => e3.kind === t4.kind)); } function kt(t4, e2) { - return e2.some((e3) => "null" === e3 ? null === t4 : "array" === e3 ? Array.isArray(t4) : "object" === e3 ? t4 && !Array.isArray(t4) && "object" == typeof t4 : e3 === typeof t4); + return e2.some(((e3) => "null" === e3 ? null === t4 : "array" === e3 ? Array.isArray(t4) : "object" === e3 ? t4 && !Array.isArray(t4) && "object" == typeof t4 : e3 === typeof t4)); } function Mt(t4, e2) { return "array" === t4.kind && "array" === e2.kind ? t4.itemType.kind === e2.itemType.kind && "number" == typeof t4.N : t4.kind === e2.kind; @@ -246608,7 +246751,7 @@ void main() { static parse(t4) { if (t4 instanceof Kt) return t4; if ("string" != typeof t4) return; - const e2 = function(t5) { + const e2 = (function(t5) { if ("transparent" === (t5 = t5.toLowerCase().trim())) return [0, 0, 0, 0]; const e3 = Gt[t5]; if (e3) { @@ -246639,16 +246782,16 @@ void main() { const [t6, e4, n2, i2, s2, a2, o2, l2, u2] = r2, c2 = [n2 || " ", s2 || " ", o2].join(""); if (" " === c2 || " /" === c2 || ",," === c2 || ",,," === c2) { const t7 = [+e4, Nt(+i2, 0, 100), Nt(+a2, 0, 100), l2 ? qt(+l2, u2) : 1]; - if (Zt(t7)) return function([t8, e5, r3, n3]) { + if (Zt(t7)) return (function([t8, e5, r3, n3]) { function i3(n4) { const i4 = (n4 + t8 / 30) % 12, s3 = e5 * Math.min(r3, 1 - r3); return r3 - s3 * Math.max(-1, Math.min(i4 - 3, 9 - i4, 1)); } return t8 = Tt(t8), e5 /= 100, r3 /= 100, [i3(0), i3(8), i3(4), n3]; - }(t7); + })(t7); } } - }(t4); + })(t4); return e2 ? new Kt(...e2, false) : void 0; } get rgb() { @@ -246656,10 +246799,10 @@ void main() { return this.overwriteGetter("rgb", [t4 / i2, e2 / i2, r2 / i2, n2]); } get hcl() { - return this.overwriteGetter("hcl", function(t4) { + return this.overwriteGetter("hcl", (function(t4) { const [e2, r2, n2, i2] = $t(t4), s2 = Math.sqrt(r2 * r2 + n2 * n2); return [Math.round(1e4 * s2) ? Tt(Math.atan2(n2, r2) * Ft) : NaN, s2, e2, i2]; - }(this.rgb)); + })(this.rgb)); } get lab() { return this.overwriteGetter("lab", $t(this.rgb)); @@ -246669,7 +246812,7 @@ void main() { } toString() { const [t4, e2, r2, n2] = this.rgb; - return `rgba(${[t4, e2, r2].map((t5) => Math.round(255 * t5)).join(",")},${n2})`; + return `rgba(${[t4, e2, r2].map(((t5) => Math.round(255 * t5))).join(",")},${n2})`; } } Kt.black = new Kt(0, 0, 0, 1), Kt.white = new Kt(1, 1, 1, 1), Kt.transparent = new Kt(0, 0, 0, 0), Kt.red = new Kt(1, 0, 0, 1); @@ -246697,13 +246840,13 @@ void main() { return new Yt([new Ht(t4, null, null, null, null)]); } isEmpty() { - return 0 === this.sections.length || !this.sections.some((t4) => 0 !== t4.text.length || t4.image && 0 !== t4.image.name.length); + return 0 === this.sections.length || !this.sections.some(((t4) => 0 !== t4.text.length || t4.image && 0 !== t4.image.name.length)); } static factory(t4) { return t4 instanceof Yt ? t4 : Yt.fromString(t4); } toString() { - return 0 === this.sections.length ? "" : this.sections.map((t4) => t4.text).join(""); + return 0 === this.sections.length ? "" : this.sections.map(((t4) => t4.text)).join(""); } } class Jt { @@ -246883,7 +247026,7 @@ void main() { this.args.forEach(t4); } outputDefined() { - return this.args.every((t4) => t4.outputDefined()); + return this.args.every(((t4) => t4.outputDefined())); } } const ue = { "to-boolean": ht, "to-color": pt, "to-number": ut, "to-string": ct }; @@ -246958,7 +247101,7 @@ void main() { this.args.forEach(t4); } outputDefined() { - return this.args.every((t4) => t4.outputDefined()); + return this.args.every(((t4) => t4.outputDefined())); } } const he = ["Unknown", "Point", "LineString", "Polygon"]; @@ -246988,7 +247131,7 @@ void main() { } class fe { constructor(t4, e2, r2 = [], n2, i2 = new ot(), s2 = []) { - this.registry = t4, this.path = r2, this.key = r2.map((t5) => `[${t5}]`).join(""), this.scope = i2, this.errors = s2, this.expectedType = n2, this._isConstant = e2; + this.registry = t4, this.path = r2, this.key = r2.map(((t5) => `[${t5}]`)).join(""), this.scope = i2, this.errors = s2, this.expectedType = n2, this._isConstant = e2; } parse(t4, e2, r2, n2, i2 = {}) { return e2 ? this.concat(e2, r2, n2)._parse(t4, i2) : this._parse(t4, i2); @@ -247033,7 +247176,7 @@ void main() { return new fe(this.registry, this._isConstant, n2, e2 || null, i2, this.errors); } error(t4, ...e2) { - const r2 = `${this.key}${e2.map((t5) => `[${t5}]`).join("")}`; + const r2 = `${this.key}${e2.map(((t5) => `[${t5}]`)).join("")}`; this.errors.push(new at(r2, t4)); } checkSubtype(t4, e2) { @@ -247210,7 +247353,7 @@ void main() { t4(this.input), this.outputs.forEach(t4), t4(this.otherwise); } outputDefined() { - return this.outputs.every((t4) => t4.outputDefined()) && this.otherwise.outputDefined(); + return this.outputs.every(((t4) => t4.outputDefined())) && this.otherwise.outputDefined(); } } class be { @@ -247244,7 +247387,7 @@ void main() { t4(this.otherwise); } outputDefined() { - return this.branches.every(([t4, e2]) => e2.outputDefined()) && this.otherwise.outputDefined(); + return this.branches.every((([t4, e2]) => e2.outputDefined())) && this.otherwise.outputDefined(); } } class we { @@ -247324,7 +247467,7 @@ void main() { for (const e2 of this.outputs) t4(e2); } outputDefined() { - return this.outputs.every((t4) => t4.outputDefined()); + return this.outputs.every(((t4) => t4.outputDefined())); } } function Se(t4) { @@ -247361,7 +247504,7 @@ void main() { return t4 + r2 * (e2 - t4); } function Pe(t4, e2, r2) { - return t4.map((t5, n2) => ze(t5, e2[n2], r2)); + return t4.map(((t5, n2) => ze(t5, e2[n2], r2))); } const Ce = { number: ze, color: function(t4, e2, r2, n2 = "rgb") { switch (n2) { @@ -247377,9 +247520,9 @@ void main() { let t5 = o2 - n3; o2 > n3 && t5 > 180 ? t5 -= 360 : o2 < n3 && n3 - o2 > 180 && (t5 += 360), h2 = n3 + r2 * t5; } - const [f2, d2, y2, m2] = function([t5, e3, r3, n4]) { + const [f2, d2, y2, m2] = (function([t5, e3, r3, n4]) { return t5 = isNaN(t5) ? 0 : t5 * Et, Ot([r3, Math.cos(t5) * e3, Math.sin(t5) * e3, n4]); - }([h2, null != p2 ? p2 : ze(i2, l2, r2), ze(s2, u2, r2), ze(a2, c2, r2)]); + })([h2, null != p2 ? p2 : ze(i2, l2, r2), ze(s2, u2, r2), ze(a2, c2, r2)]); return new Kt(f2, d2, y2, m2, false); } case "lab": { @@ -247428,7 +247571,7 @@ void main() { if ("cubic-bezier" !== n2[0]) return e2.error(`Unknown interpolation type ${String(n2[0])}`, 1, 0); { const t5 = n2.slice(1); - if (4 !== t5.length || t5.some((t6) => "number" != typeof t6 || t6 < 0 || t6 > 1)) return e2.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.", 1); + if (4 !== t5.length || t5.some(((t6) => "number" != typeof t6 || t6 < 0 || t6 > 1))) return e2.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.", 1); n2 = { name: "cubic-bezier", controlPoints: t5 }; } } @@ -247470,7 +247613,7 @@ void main() { for (const e2 of this.outputs) t4(e2); } outputDefined() { - return this.outputs.every((t4) => t4.outputDefined()); + return this.outputs.every(((t4) => t4.outputDefined())); } } function Ve(t4, e2, r2, n2) { @@ -247493,7 +247636,7 @@ void main() { r2 = r2 || t5.type, i2.push(t5); } if (!r2) throw new Error("No output type"); - const s2 = n2 && i2.some((t5) => At(n2, t5.type)); + const s2 = n2 && i2.some(((t5) => At(n2, t5.type))); return new Ee(s2 ? dt : r2, i2); } evaluate(t4) { @@ -247505,7 +247648,7 @@ void main() { this.args.forEach(t4); } outputDefined() { - return this.args.every((t4) => t4.outputDefined()); + return this.args.every(((t4) => t4.outputDefined())); } } function Fe(t4, e2) { @@ -247558,29 +247701,29 @@ void main() { } }; } - const Le = $e("==", function(t4, e2, r2) { + const Le = $e("==", (function(t4, e2, r2) { return e2 === r2; - }, Te), De = $e("!=", function(t4, e2, r2) { + }), Te), De = $e("!=", (function(t4, e2, r2) { return e2 !== r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return !Te(0, e2, r2, n2); - }), Oe = $e("<", function(t4, e2, r2) { + })), Oe = $e("<", (function(t4, e2, r2) { return e2 < r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) < 0; - }), je = $e(">", function(t4, e2, r2) { + })), je = $e(">", (function(t4, e2, r2) { return e2 > r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) > 0; - }), Re = $e("<=", function(t4, e2, r2) { + })), Re = $e("<=", (function(t4, e2, r2) { return e2 <= r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) <= 0; - }), Ue = $e(">=", function(t4, e2, r2) { + })), Ue = $e(">=", (function(t4, e2, r2) { return e2 >= r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) >= 0; - }); + })); class qe { constructor(t4, e2, r2) { this.type = yt, this.locale = r2, this.caseSensitive = t4, this.diacriticSensitive = e2; @@ -247668,10 +247811,10 @@ void main() { return new Ze(n2); } evaluate(t4) { - return new Yt(this.sections.map((e2) => { + return new Yt(this.sections.map(((e2) => { const r2 = e2.content.evaluate(t4); return ne(r2) === xt ? new Ht("", r2, null, null, null) : new Ht(ie(r2), null, e2.scale ? e2.scale.evaluate(t4) : null, e2.font ? e2.font.evaluate(t4).join(",") : null, e2.textColor ? e2.textColor.evaluate(t4) : null); - })); + }))); } eachChild(t4) { for (const e2 of this.sections) t4(e2.content), e2.scale && t4(e2.scale), e2.font && t4(e2.font), e2.textColor && t4(e2.textColor); @@ -247853,7 +247996,7 @@ void main() { } evaluate(t4) { if (null != t4.geometry() && null != t4.canonicalID()) { - if ("Point" === t4.geometryType()) return function(t5, e2) { + if ("Point" === t4.geometryType()) return (function(t5, e2) { const r2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], i2 = t5.canonicalID(); if ("Polygon" === e2.type) { const s2 = or(e2.coordinates, n2, i2), a2 = cr(t5.geometry(), r2, n2, i2); @@ -247866,8 +248009,8 @@ void main() { for (const t6 of a2) if (!nr(t6, s2)) return false; } return true; - }(t4, this.geometries); - if ("LineString" === t4.geometryType()) return function(t5, e2) { + })(t4, this.geometries); + if ("LineString" === t4.geometryType()) return (function(t5, e2) { const r2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], i2 = t5.canonicalID(); if ("Polygon" === e2.type) { const s2 = or(e2.coordinates, n2, i2), a2 = hr(t5.geometry(), r2, n2, i2); @@ -247880,7 +248023,7 @@ void main() { for (const t6 of a2) if (!sr(t6, s2)) return false; } return true; - }(t4, this.geometries); + })(t4, this.geometries); } return false; } @@ -247891,7 +248034,7 @@ void main() { } } let fr = class { - constructor(t4 = [], e2 = (t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0) { + constructor(t4 = [], e2 = ((t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0)) { if (this.data = t4, this.length = this.data.length, this.compare = e2, this.length > 0) for (let t5 = (this.length >> 1) - 1; t5 >= 0; t5--) this._down(t5); } push(t4) { @@ -248169,7 +248312,7 @@ void main() { return a2; } function Zr(t4) { - return "MultiPolygon" === t4.type ? t4.coordinates.map((t5) => ({ type: "Polygon", coordinates: t5 })) : "MultiLineString" === t4.type ? t4.coordinates.map((t5) => ({ type: "LineString", coordinates: t5 })) : "MultiPoint" === t4.type ? t4.coordinates.map((t5) => ({ type: "Point", coordinates: t5 })) : [t4]; + return "MultiPolygon" === t4.type ? t4.coordinates.map(((t5) => ({ type: "Polygon", coordinates: t5 }))) : "MultiLineString" === t4.type ? t4.coordinates.map(((t5) => ({ type: "LineString", coordinates: t5 }))) : "MultiPoint" === t4.type ? t4.coordinates.map(((t5) => ({ type: "Point", coordinates: t5 }))) : [t4]; } class Gr { constructor(t4, e2) { @@ -248179,7 +248322,7 @@ void main() { if (2 !== t4.length) return e2.error(`'distance' expression requires exactly one argument, but found ${t4.length - 1} instead.`); if (re(t4[1])) { const e3 = t4[1]; - if ("FeatureCollection" === e3.type) return new Gr(e3, e3.features.map((t5) => Zr(t5.geometry)).flat()); + if ("FeatureCollection" === e3.type) return new Gr(e3, e3.features.map(((t5) => Zr(t5.geometry))).flat()); if ("Feature" === e3.type) return new Gr(e3, Zr(e3.geometry)); if ("type" in e3 && "coordinates" in e3) return new Gr(e3, Zr(e3)); } @@ -248187,8 +248330,8 @@ void main() { } evaluate(t4) { if (null != t4.geometry() && null != t4.canonicalID()) { - if ("Point" === t4.geometryType()) return function(t5, e2) { - const r2 = t5.geometry(), n2 = r2.flat().map((e3) => Ye([e3.x, e3.y], t5.canonical)); + if ("Point" === t4.geometryType()) return (function(t5, e2) { + const r2 = t5.geometry(), n2 = r2.flat().map(((e3) => Ye([e3.x, e3.y], t5.canonical))); if (0 === r2.length) return NaN; const i2 = new Sr(n2[0][1]); let s2 = 1 / 0; @@ -248206,9 +248349,9 @@ void main() { if (0 === s2) return s2; } return s2; - }(t4, this.geometries); - if ("LineString" === t4.geometryType()) return function(t5, e2) { - const r2 = t5.geometry(), n2 = r2.flat().map((e3) => Ye([e3.x, e3.y], t5.canonical)); + })(t4, this.geometries); + if ("LineString" === t4.geometryType()) return (function(t5, e2) { + const r2 = t5.geometry(), n2 = r2.flat().map(((e3) => Ye([e3.x, e3.y], t5.canonical))); if (0 === r2.length) return NaN; const i2 = new Sr(n2[0][1]); let s2 = 1 / 0; @@ -248226,11 +248369,11 @@ void main() { if (0 === s2) return s2; } return s2; - }(t4, this.geometries); - if ("Polygon" === t4.geometryType()) return function(t5, e2) { + })(t4, this.geometries); + if ("Polygon" === t4.geometryType()) return (function(t5, e2) { const r2 = t5.geometry(); if (0 === r2.length || 0 === r2[0].length) return NaN; - const n2 = xr(r2, 0).map((e3) => e3.map((e4) => e4.map((e5) => Ye([e5.x, e5.y], t5.canonical)))), i2 = new Sr(n2[0][0][0][1]); + const n2 = xr(r2, 0).map(((e3) => e3.map(((e4) => e4.map(((e5) => Ye([e5.x, e5.y], t5.canonical))))))), i2 = new Sr(n2[0][0][0][1]); let s2 = 1 / 0; for (const t6 of e2) for (const e3 of n2) { switch (t6.type) { @@ -248246,7 +248389,7 @@ void main() { if (0 === s2) return s2; } return s2; - }(t4, this.geometries); + })(t4, this.geometries); } return NaN; } @@ -248273,7 +248416,7 @@ void main() { static parse(t4, e2) { const r2 = t4[0], n2 = Xr.definitions[r2]; if (!n2) return e2.error(`Unknown expression "${r2}". If you wanted a literal array, use ["literal", [...]].`, 0); - const i2 = Array.isArray(n2) ? n2[0] : n2.type, s2 = Array.isArray(n2) ? [[n2[1], n2[2]]] : n2.overloads, a2 = s2.filter(([e3]) => !Array.isArray(e3) || e3.length === t4.length - 1); + const i2 = Array.isArray(n2) ? n2[0] : n2.type, s2 = Array.isArray(n2) ? [[n2[1], n2[2]]] : n2.overloads, a2 = s2.filter((([e3]) => !Array.isArray(e3) || e3.length === t4.length - 1)); let o2 = null; for (const [n3, s3] of a2) { o2 = new fe(e2.registry, Qr, e2.path, null, e2.scope); @@ -248298,10 +248441,10 @@ void main() { } if (1 === a2.length) e2.errors.push(...o2.errors); else { - const r3 = (a2.length ? a2 : s2).map(([t5]) => { + const r3 = (a2.length ? a2 : s2).map((([t5]) => { return e3 = t5, Array.isArray(e3) ? `(${e3.map(wt).join(", ")})` : `(${wt(e3.type)}...)`; var e3; - }).join(" | "), n3 = []; + })).join(" | "), n3 = []; for (let r4 = 1; r4 < t4.length; r4++) { const i3 = e2.parse(t4[r4], 1 + n3.length); if (!i3) return null; @@ -248340,9 +248483,9 @@ void main() { if (t4 instanceof Gr) return false; const e2 = t4 instanceof ce || t4 instanceof le; let r2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { r2 = e2 ? r2 && Qr(t5) : r2 && t5 instanceof se; - }), !!r2 && tn(t4) && rn(t4, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]); + })), !!r2 && tn(t4) && rn(t4, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]); } function tn(t4) { if (t4 instanceof Xr) { @@ -248355,23 +248498,23 @@ void main() { if (t4 instanceof pr) return false; if (t4 instanceof Gr) return false; let e2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { e2 && !tn(t5) && (e2 = false); - }), e2; + })), e2; } function en(t4) { if (t4 instanceof Xr && "feature-state" === t4.name) return false; let e2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { e2 && !en(t5) && (e2 = false); - }), e2; + })), e2; } function rn(t4, e2) { if (t4 instanceof Xr && e2.indexOf(t4.name) >= 0) return false; let r2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { r2 && !rn(t5, e2) && (r2 = false); - }), r2; + })), r2; } function nn(t4) { return { result: "success", value: t4 }; @@ -248401,7 +248544,7 @@ void main() { const r2 = "color" === e2.type, n2 = t4.stops && "object" == typeof t4.stops[0][0], i2 = n2 || !(n2 || void 0 !== t4.property), s2 = t4.type || (ln(e2) ? "exponential" : "interval"); if (r2 || "padding" === e2.type) { const n3 = r2 ? Kt.parse : Jt.parse; - (t4 = st({}, t4)).stops && (t4.stops = t4.stops.map((t5) => [t5[0], n3(t5[1])])), t4.default = n3(t4.default ? t4.default : e2.default); + (t4 = st({}, t4)).stops && (t4.stops = t4.stops.map(((t5) => [t5[0], n3(t5[1])]))), t4.default = n3(t4.default ? t4.default : e2.default); } if (t4.colorSpace && "rgb" !== (a2 = t4.colorSpace) && "hcl" !== a2 && "lab" !== a2) throw new Error(`Unknown color space: "${t4.colorSpace}"`); var a2; @@ -248425,11 +248568,11 @@ void main() { const i3 = []; for (const t5 of n3) i3.push([r3[t5].zoom, pn(r3[t5], e2)]); const s3 = { name: "linear" }; - return { kind: "composite", interpolationType: s3, interpolationFactor: Be.interpolationFactor.bind(void 0, s3), zoomStops: i3.map((t5) => t5[0]), evaluate: ({ zoom: r4 }, n4) => mn({ stops: i3, base: t4.base }, e2, r4).evaluate(r4, n4) }; + return { kind: "composite", interpolationType: s3, interpolationFactor: Be.interpolationFactor.bind(void 0, s3), zoomStops: i3.map(((t5) => t5[0])), evaluate: ({ zoom: r4 }, n4) => mn({ stops: i3, base: t4.base }, e2, r4).evaluate(r4, n4) }; } if (i2) { const r3 = "exponential" === s2 ? { name: "exponential", base: void 0 !== t4.base ? t4.base : 1 } : null; - return { kind: "camera", interpolationType: r3, interpolationFactor: Be.interpolationFactor.bind(void 0, r3), zoomStops: t4.stops.map((t5) => t5[0]), evaluate: ({ zoom: r4 }) => o2(t4, e2, r4, l2, u2) }; + return { kind: "camera", interpolationType: r3, interpolationFactor: Be.interpolationFactor.bind(void 0, r3), zoomStops: t4.stops.map(((t5) => t5[0])), evaluate: ({ zoom: r4 }) => o2(t4, e2, r4, l2, u2) }; } return { kind: "source", evaluate(r3, n3) { const i3 = n3 && n3.properties ? n3.properties[t4.property] : void 0; @@ -248448,7 +248591,7 @@ void main() { if (1 === n2) return t4.stops[0][1]; if (r2 <= t4.stops[0][0]) return t4.stops[0][1]; if (r2 >= t4.stops[n2 - 1][0]) return t4.stops[n2 - 1][1]; - const i2 = _e(t4.stops.map((t5) => t5[0]), r2); + const i2 = _e(t4.stops.map(((t5) => t5[0])), r2); return t4.stops[i2][1]; } function mn(t4, e2, r2) { @@ -248458,10 +248601,10 @@ void main() { if (1 === i2) return t4.stops[0][1]; if (r2 <= t4.stops[0][0]) return t4.stops[0][1]; if (r2 >= t4.stops[i2 - 1][0]) return t4.stops[i2 - 1][1]; - const s2 = _e(t4.stops.map((t5) => t5[0]), r2), a2 = function(t5, e3, r3, n3) { + const s2 = _e(t4.stops.map(((t5) => t5[0])), r2), a2 = (function(t5, e3, r3, n3) { const i3 = n3 - r3, s3 = t5 - r3; return 0 === i3 ? 0 : 1 === e3 ? s3 / i3 : (Math.pow(e3, s3) - 1) / (Math.pow(e3, i3) - 1); - }(r2, n2, t4.stops[s2][0], t4.stops[s2 + 1][0]), o2 = t4.stops[s2][1], l2 = t4.stops[s2 + 1][1], u2 = Ce[e2.type] || hn; + })(r2, n2, t4.stops[s2][0], t4.stops[s2 + 1][0]), o2 = t4.stops[s2][1], l2 = t4.stops[s2 + 1][1], u2 = Ce[e2.type] || hn; return "function" == typeof o2.evaluate ? { evaluate(...e3) { const r3 = o2.evaluate.apply(void 0, e3), n3 = l2.evaluate.apply(void 0, e3); if (void 0 !== r3 && void 0 !== n3) return u2(r3, n3, a2, t4.colorSpace); @@ -248499,7 +248642,7 @@ void main() { let r2 = 1; for (const n2 of e2) r2 *= n2.evaluate(t4); return r2; - }], "-": { type: ut, overloads: [[[ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) - r2.evaluate(t4)], [[ut], (t4, [e2]) => -e2.evaluate(t4)]] }, "/": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) / r2.evaluate(t4)], "%": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) % r2.evaluate(t4)], ln2: [ut, [], () => Math.LN2], pi: [ut, [], () => Math.PI], e: [ut, [], () => Math.E], "^": [ut, [ut, ut], (t4, [e2, r2]) => Math.pow(e2.evaluate(t4), r2.evaluate(t4))], sqrt: [ut, [ut], (t4, [e2]) => Math.sqrt(e2.evaluate(t4))], log10: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN10], ln: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4))], log2: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN2], sin: [ut, [ut], (t4, [e2]) => Math.sin(e2.evaluate(t4))], cos: [ut, [ut], (t4, [e2]) => Math.cos(e2.evaluate(t4))], tan: [ut, [ut], (t4, [e2]) => Math.tan(e2.evaluate(t4))], asin: [ut, [ut], (t4, [e2]) => Math.asin(e2.evaluate(t4))], acos: [ut, [ut], (t4, [e2]) => Math.acos(e2.evaluate(t4))], atan: [ut, [ut], (t4, [e2]) => Math.atan(e2.evaluate(t4))], min: [ut, Wr(ut), (t4, e2) => Math.min(...e2.map((e3) => e3.evaluate(t4)))], max: [ut, Wr(ut), (t4, e2) => Math.max(...e2.map((e3) => e3.evaluate(t4)))], abs: [ut, [ut], (t4, [e2]) => Math.abs(e2.evaluate(t4))], round: [ut, [ut], (t4, [e2]) => { + }], "-": { type: ut, overloads: [[[ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) - r2.evaluate(t4)], [[ut], (t4, [e2]) => -e2.evaluate(t4)]] }, "/": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) / r2.evaluate(t4)], "%": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) % r2.evaluate(t4)], ln2: [ut, [], () => Math.LN2], pi: [ut, [], () => Math.PI], e: [ut, [], () => Math.E], "^": [ut, [ut, ut], (t4, [e2, r2]) => Math.pow(e2.evaluate(t4), r2.evaluate(t4))], sqrt: [ut, [ut], (t4, [e2]) => Math.sqrt(e2.evaluate(t4))], log10: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN10], ln: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4))], log2: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN2], sin: [ut, [ut], (t4, [e2]) => Math.sin(e2.evaluate(t4))], cos: [ut, [ut], (t4, [e2]) => Math.cos(e2.evaluate(t4))], tan: [ut, [ut], (t4, [e2]) => Math.tan(e2.evaluate(t4))], asin: [ut, [ut], (t4, [e2]) => Math.asin(e2.evaluate(t4))], acos: [ut, [ut], (t4, [e2]) => Math.acos(e2.evaluate(t4))], atan: [ut, [ut], (t4, [e2]) => Math.atan(e2.evaluate(t4))], min: [ut, Wr(ut), (t4, e2) => Math.min(...e2.map(((e3) => e3.evaluate(t4))))], max: [ut, Wr(ut), (t4, e2) => Math.max(...e2.map(((e3) => e3.evaluate(t4))))], abs: [ut, [ut], (t4, [e2]) => Math.abs(e2.evaluate(t4))], round: [ut, [ut], (t4, [e2]) => { const r2 = e2.evaluate(t4); return r2 < 0 ? -Math.round(-r2) : Math.round(r2); }], floor: [ut, [ut], (t4, [e2]) => Math.floor(e2.evaluate(t4))], ceil: [ut, [ut], (t4, [e2]) => Math.ceil(e2.evaluate(t4))], "filter-==": [ht, [ct, dt], (t4, [e2, r2]) => t4.properties()[e2.value] === r2.value], "filter-id-==": [ht, [dt], (t4, [e2]) => t4.id() === e2.value], "filter-type-==": [ht, [ct], (t4, [e2]) => t4.geometryType() === e2.value], "filter-<": [ht, [ct, dt], (t4, [e2, r2]) => { @@ -248526,14 +248669,14 @@ void main() { }], "filter-id->=": [ht, [dt], (t4, [e2]) => { const r2 = t4.id(), n2 = e2.value; return typeof r2 == typeof n2 && r2 >= n2; - }], "filter-has": [ht, [dt], (t4, [e2]) => e2.value in t4.properties()], "filter-has-id": [ht, [], (t4) => null !== t4.id() && void 0 !== t4.id()], "filter-type-in": [ht, [bt(ct)], (t4, [e2]) => e2.value.indexOf(t4.geometryType()) >= 0], "filter-id-in": [ht, [bt(dt)], (t4, [e2]) => e2.value.indexOf(t4.id()) >= 0], "filter-in-small": [ht, [ct, bt(dt)], (t4, [e2, r2]) => r2.value.indexOf(t4.properties()[e2.value]) >= 0], "filter-in-large": [ht, [ct, bt(dt)], (t4, [e2, r2]) => function(t5, e3, r3, n2) { + }], "filter-has": [ht, [dt], (t4, [e2]) => e2.value in t4.properties()], "filter-has-id": [ht, [], (t4) => null !== t4.id() && void 0 !== t4.id()], "filter-type-in": [ht, [bt(ct)], (t4, [e2]) => e2.value.indexOf(t4.geometryType()) >= 0], "filter-id-in": [ht, [bt(dt)], (t4, [e2]) => e2.value.indexOf(t4.id()) >= 0], "filter-in-small": [ht, [ct, bt(dt)], (t4, [e2, r2]) => r2.value.indexOf(t4.properties()[e2.value]) >= 0], "filter-in-large": [ht, [ct, bt(dt)], (t4, [e2, r2]) => (function(t5, e3, r3, n2) { for (; r3 <= n2; ) { const i2 = r3 + n2 >> 1; if (e3[i2] === t5) return true; e3[i2] > t5 ? n2 = i2 - 1 : r3 = i2 + 1; } return false; - }(t4.properties()[e2.value], r2.value, 0, r2.value.length - 1)], all: { type: ht, overloads: [[[ht, ht], (t4, [e2, r2]) => e2.evaluate(t4) && r2.evaluate(t4)], [Wr(ht), (t4, e2) => { + })(t4.properties()[e2.value], r2.value, 0, r2.value.length - 1)], all: { type: ht, overloads: [[[ht, ht], (t4, [e2, r2]) => e2.evaluate(t4) && r2.evaluate(t4)], [Wr(ht), (t4, e2) => { for (const r2 of e2) if (!r2.evaluate(t4)) return false; return true; }]] }, any: { type: ht, overloads: [[[ht, ht], (t4, [e2, r2]) => e2.evaluate(t4) || r2.evaluate(t4)], [Wr(ht), (t4, e2) => { @@ -248542,7 +248685,7 @@ void main() { }]] }, "!": [ht, [ht], (t4, [e2]) => !e2.evaluate(t4)], "is-supported-script": [ht, [ct], (t4, [e2]) => { const r2 = t4.globals && t4.globals.isSupportedScript; return !r2 || r2(e2.evaluate(t4)); - }], upcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toUpperCase()], downcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toLowerCase()], concat: [ct, Wr(dt), (t4, e2) => e2.map((e3) => ie(e3.evaluate(t4))).join("")], "resolved-locale": [ct, [yt], (t4, [e2]) => e2.evaluate(t4).resolvedLocale()] }); + }], upcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toUpperCase()], downcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toLowerCase()], concat: [ct, Wr(dt), (t4, e2) => e2.map(((e3) => ie(e3.evaluate(t4)))).join("")], "resolved-locale": [ct, [yt], (t4, [e2]) => e2.evaluate(t4).resolvedLocale()] }); class xn { constructor(t4, e2) { var r2; @@ -248556,7 +248699,7 @@ void main() { try { const t5 = this.expression.evaluate(this._evaluator); if (null == t5 || "number" == typeof t5 && t5 != t5) return this._defaultValue; - if (this._enumValues && !(t5 in this._enumValues)) throw new ae(`Expected value to be one of ${Object.keys(this._enumValues).map((t6) => JSON.stringify(t6)).join(", ")}, but found ${JSON.stringify(t5)} instead.`); + if (this._enumValues && !(t5 in this._enumValues)) throw new ae(`Expected value to be one of ${Object.keys(this._enumValues).map(((t6) => JSON.stringify(t6))).join(", ")}, but found ${JSON.stringify(t5)} instead.`); return t5; } catch (t5) { return this._warningHistory[t5.message] || (this._warningHistory[t5.message] = true, "undefined" != typeof console && console.warn(t5.message)), this._defaultValue; @@ -248567,10 +248710,10 @@ void main() { return Array.isArray(t4) && t4.length > 0 && "string" == typeof t4[0] && t4[0] in Kr; } function bn(t4, e2) { - const r2 = new fe(Kr, Qr, [], e2 ? function(t5) { + const r2 = new fe(Kr, Qr, [], e2 ? (function(t5) { const e3 = { color: pt, string: ct, number: ut, enum: ct, boolean: ht, formatted: mt, padding: gt, resolvedImage: xt, variableAnchorOffsetCollection: vt }; return "array" === t5.type ? bt(e3[t5.value] || dt, t5.length) : e3[t5.type]; - }(e2) : void 0), n2 = r2.parse(t4, void 0, void 0, void 0, e2 && "string" === e2.type ? { typeAnnotation: "coerce" } : void 0); + })(e2) : void 0), n2 = r2.parse(t4, void 0, void 0, void 0, e2 && "string" === e2.type ? { typeAnnotation: "coerce" } : void 0); return n2 ? nn(new xn(n2, e2)) : sn(r2.errors); } class wn { @@ -248625,10 +248768,10 @@ void main() { else if (t4 instanceof Ee) { for (const r2 of t4.args) if (e2 = kn(r2), e2) break; } else (t4 instanceof Ae || t4 instanceof Be) && t4.input instanceof Xr && "zoom" === t4.input.name && (e2 = t4); - return e2 instanceof at || t4.eachChild((t5) => { + return e2 instanceof at || t4.eachChild(((t5) => { const r2 = kn(t5); r2 instanceof at ? e2 = r2 : !e2 && r2 ? e2 = new at("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : e2 && r2 && e2 !== r2 && (e2 = new at("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.')); - }), e2; + })), e2; } function Mn(t4) { if (true === t4 || false === t4) return true; @@ -248662,7 +248805,7 @@ void main() { if (null == t4) return { filter: () => true, needGeometry: false }; Mn(t4) || (t4 = Bn(t4)); const e2 = bn(t4, In); - if ("error" === e2.result) throw new Error(e2.value.map((t5) => `${t5.key}: ${t5.message}`).join(", ")); + if ("error" === e2.result) throw new Error(e2.value.map(((t5) => `${t5.key}: ${t5.message}`)).join(", ")); return { filter: (t5, r2, n2) => e2.value.evaluate(t5, r2, {}, n2), needGeometry: Cn(t4) }; } function Pn(t4, e2) { @@ -248698,7 +248841,7 @@ void main() { case "$id": return ["filter-id-in", ["literal", e2]]; default: - return e2.length > 200 && !e2.some((t5) => typeof t5 != typeof e2[0]) ? ["filter-in-large", t4, ["literal", e2.sort(Pn)]] : ["filter-in-small", t4, ["literal", e2]]; + return e2.length > 200 && !e2.some(((t5) => typeof t5 != typeof e2[0])) ? ["filter-in-large", t4, ["literal", e2.sort(Pn)]] : ["filter-in-small", t4, ["literal", e2]]; } } function Fn(t4) { @@ -248828,7 +248971,7 @@ void main() { } function Zn2(t4) { const e2 = ("property" === t4.expressionContext ? An : bn)(jn(t4.value), t4.valueSpec); - if ("error" === e2.result) return e2.value.map((e3) => new it(`${t4.key}${e3.key}`, t4.value, e3.message)); + if ("error" === e2.result) return e2.value.map(((e3) => new it(`${t4.key}${e3.key}`, t4.value, e3.message))); const r2 = e2.value.expression || e2.value._styleExpression.expression; if ("property" === t4.expressionContext && "text-font" === t4.propertyKey && !r2.outputDefined()) return [new it(t4.key, t4.value, `Invalid data expression for "${t4.propertyKey}". Output values must be contained as literals within the expression.`)]; if ("property" === t4.expressionContext && "layout" === t4.propertyType && !en(r2)) return [new it(t4.key, t4.value, '"feature-state" data expressions are not supported with layout properties.')]; @@ -248911,11 +249054,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } if ("ref" in r2) { let t5; - ["type", "source", "source-layer", "filter", "layout"].forEach((t6) => { + ["type", "source", "source-layer", "filter", "layout"].forEach(((t6) => { t6 in r2 && e2.push(new it(n2, r2[t6], `"${t6}" is prohibited for ref layers`)); - }), i2.layers.forEach((e3) => { + })), i2.layers.forEach(((e3) => { On(e3.id) === o2 && (t5 = e3); - }), t5 ? t5.ref ? e2.push(new it(n2, r2.ref, "ref cannot reference another ref layer")) : a2 = On(t5.type) : e2.push(new it(n2, r2.ref, `ref layer "${o2}" not found`)); + })), t5 ? t5.ref ? e2.push(new it(n2, r2.ref, "ref cannot reference another ref layer")) : a2 = On(t5.type) : e2.push(new it(n2, r2.ref, `ref layer "${o2}" not found`)); } else if ("background" !== a2) if (r2.source) { const t5 = i2.sources && i2.sources[r2.source], s3 = t5 && On(t5.type); t5 ? "vector" === s3 && "raster" === a2 ? e2.push(new it(n2, r2.source, `layer "${r2.id}" requires a raster source`)) : "raster-dem" !== s3 && "hillshade" === a2 ? e2.push(new it(n2, r2.source, `layer "${r2.id}" requires a raster-dem source`)) : "raster" === s3 && "raster" !== a2 ? e2.push(new it(n2, r2.source, `layer "${r2.id}" requires a vector source`)) : "vector" !== s3 || r2["source-layer"] ? "raster-dem" === s3 && "hillshade" !== a2 ? e2.push(new it(n2, r2.source, "raster-dem source can only be used with layer type 'hillshade'.")) : "line" !== a2 || !r2.paint || !r2.paint["line-gradient"] || "geojson" === s3 && t5.lineMetrics || e2.push(new it(n2, r2, `layer "${r2.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e2.push(new it(n2, r2, `layer "${r2.id}" must specify a "source-layer"`)) : e2.push(new it(n2, r2.source, `source "${r2.source}" not found`)); @@ -248944,7 +249087,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ case "raster": return o2 = Rn({ key: r2, value: e2, valueSpec: n2[`source_${a2.replace("-", "_")}`], style: t4.style, styleSpec: n2, objectElementValidators: ti, validateSpec: s2 }), o2; case "raster-dem": - return o2 = function(t5) { + return o2 = (function(t5) { var e3; const r3 = null !== (e3 = t5.sourceName) && void 0 !== e3 ? e3 : "", n3 = t5.value, i3 = t5.styleSpec, s3 = i3.source_raster_dem, a3 = t5.style; let o3 = []; @@ -248954,7 +249097,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const u2 = "custom" === On(n3.encoding), c2 = ["redFactor", "greenFactor", "blueFactor", "baseShift"], h2 = t5.value.encoding ? `"${t5.value.encoding}"` : "Default"; for (const e4 in n3) !u2 && c2.includes(e4) ? o3.push(new it(e4, n3[e4], `In "${r3}": "${e4}" is only valid when "encoding" is set to "custom". ${h2} encoding found`)) : s3[e4] ? o3 = o3.concat(t5.validateSpec({ key: e4, value: n3[e4], valueSpec: s3[e4], validateSpec: t5.validateSpec, style: a3, styleSpec: i3 })) : o3.push(new it(e4, n3[e4], `unknown property "${e4}"`)); return o3; - }({ sourceName: r2, value: e2, style: t4.style, styleSpec: n2, validateSpec: s2 }), o2; + })({ sourceName: r2, value: e2, style: t4.style, styleSpec: n2, validateSpec: s2 }), o2; case "geojson": if (o2 = Rn({ key: r2, value: e2, valueSpec: n2.source_geojson, style: i2, styleSpec: n2, validateSpec: s2, objectElementValidators: ti }), e2.cluster) for (const t5 in e2.clusterProperties) { const [n3, i3] = e2.clusterProperties[t5], a3 = "string" == typeof n3 ? [n3, ["accumulated"], ["get", t5]] : n3; @@ -249062,7 +249205,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }; } function hi(t4) { - return [].concat(t4).sort((t5, e2) => t5.line - e2.line); + return [].concat(t4).sort(((t5, e2) => t5.line - e2.line)); } function pi(t4) { return function(...e2) { @@ -249177,11 +249320,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4.$name || t4.constructor._classRegistryKey; } function Si(t4) { - return !function(t5) { + return !(function(t5) { if (null === t5 || "object" != typeof t5) return false; const e2 = Ai(t5); return !(!e2 || "Object" === e2); - }(t4) && (null == t4 || "boolean" == typeof t4 || "number" == typeof t4 || "string" == typeof t4 || t4 instanceof Boolean || t4 instanceof Number || t4 instanceof String || t4 instanceof Date || t4 instanceof RegExp || t4 instanceof Blob || t4 instanceof Error || _i(t4) || I(t4) || ArrayBuffer.isView(t4) || t4 instanceof ImageData); + })(t4) && (null == t4 || "boolean" == typeof t4 || "number" == typeof t4 || "string" == typeof t4 || t4 instanceof Boolean || t4 instanceof Number || t4 instanceof String || t4 instanceof Date || t4 instanceof RegExp || t4 instanceof Blob || t4 instanceof Error || _i(t4) || I(t4) || ArrayBuffer.isView(t4) || t4 instanceof ImageData); } function ki(t4, e2) { if (Si(t4)) return (_i(t4) || I(t4)) && e2 && e2.push(t4), ArrayBuffer.isView(t4) && e2 && e2.push(t4.buffer), t4 instanceof ImageData && e2 && e2.push(t4.data.buffer), t4; @@ -249245,13 +249388,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return true; } function Bi(t4) { - const e2 = t4.map((t5) => { + const e2 = t4.map(((t5) => { try { return new RegExp(`\\p{sc=${t5}}`, "u").source; } catch (t6) { return null; } - }).filter((t5) => t5); + })).filter(((t5) => t5)); return new RegExp(e2.join("|"), "u"); } const Vi = Bi(["Arab", "Dupl", "Mong", "Ougr", "Syrc"]); @@ -249263,9 +249406,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return !(746 !== t4 && 747 !== t4 && (t4 < 4352 || !(zi["CJK Compatibility Forms"](t4) && !(t4 >= 65097 && t4 <= 65103) || zi["CJK Compatibility"](t4) || zi["CJK Strokes"](t4) || !(!zi["CJK Symbols and Punctuation"](t4) || t4 >= 12296 && t4 <= 12305 || t4 >= 12308 && t4 <= 12319 || 12336 === t4) || zi["Enclosed CJK Letters and Months"](t4) || zi["Ideographic Description Characters"](t4) || zi.Kanbun(t4) || zi.Katakana(t4) && 12540 !== t4 || !(!zi["Halfwidth and Fullwidth Forms"](t4) || 65288 === t4 || 65289 === t4 || 65293 === t4 || t4 >= 65306 && t4 <= 65310 || 65339 === t4 || 65341 === t4 || 65343 === t4 || t4 >= 65371 && t4 <= 65503 || 65507 === t4 || t4 >= 65512 && t4 <= 65519) || !(!zi["Small Form Variants"](t4) || t4 >= 65112 && t4 <= 65118 || t4 >= 65123 && t4 <= 65126) || zi["Vertical Forms"](t4) || zi["Yijing Hexagram Symbols"](t4) || new RegExp("\\p{sc=Cans}", "u").test(String.fromCodePoint(t4)) || new RegExp("\\p{sc=Hang}", "u").test(String.fromCodePoint(t4)) || Fi.test(String.fromCodePoint(t4))))); } function $i(t4) { - return !(Ti(t4) || function(t5) { + return !(Ti(t4) || (function(t5) { return !!(zi["Latin-1 Supplement"](t5) && (167 === t5 || 169 === t5 || 174 === t5 || 177 === t5 || 188 === t5 || 189 === t5 || 190 === t5 || 215 === t5 || 247 === t5) || zi["General Punctuation"](t5) && (8214 === t5 || 8224 === t5 || 8225 === t5 || 8240 === t5 || 8241 === t5 || 8251 === t5 || 8252 === t5 || 8258 === t5 || 8263 === t5 || 8264 === t5 || 8265 === t5 || 8273 === t5) || zi["Letterlike Symbols"](t5) || zi["Number Forms"](t5) || zi["Miscellaneous Technical"](t5) && (t5 >= 8960 && t5 <= 8967 || t5 >= 8972 && t5 <= 8991 || t5 >= 8996 && t5 <= 9e3 || 9003 === t5 || t5 >= 9085 && t5 <= 9114 || t5 >= 9150 && t5 <= 9165 || 9167 === t5 || t5 >= 9169 && t5 <= 9179 || t5 >= 9186 && t5 <= 9215) || zi["Control Pictures"](t5) && 9251 !== t5 || zi["Optical Character Recognition"](t5) || zi["Enclosed Alphanumerics"](t5) || zi["Geometric Shapes"](t5) || zi["Miscellaneous Symbols"](t5) && !(t5 >= 9754 && t5 <= 9759) || zi["Miscellaneous Symbols and Arrows"](t5) && (t5 >= 11026 && t5 <= 11055 || t5 >= 11088 && t5 <= 11097 || t5 >= 11192 && t5 <= 11243) || zi["CJK Symbols and Punctuation"](t5) || zi.Katakana(t5) || zi["Private Use Area"](t5) || zi["CJK Compatibility Forms"](t5) || zi["Small Form Variants"](t5) || zi["Halfwidth and Fullwidth Forms"](t5) || 8734 === t5 || 8756 === t5 || 8757 === t5 || t5 >= 9984 && t5 <= 10087 || t5 >= 10102 && t5 <= 10131 || 65532 === t5 || 65533 === t5); - }(t4)); + })(t4)); } const Li = Bi(["Adlm", "Arab", "Armi", "Avst", "Chrs", "Cprt", "Egyp", "Elym", "Gara", "Hatr", "Hebr", "Hung", "Khar", "Lydi", "Mand", "Mani", "Mend", "Merc", "Mero", "Narb", "Nbat", "Nkoo", "Orkh", "Palm", "Phli", "Phlp", "Phnx", "Prti", "Rohg", "Samr", "Sarb", "Sogo", "Syrc", "Thaa", "Todr", "Yezi"]); function Di(t4) { @@ -249306,10 +249449,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.zoom = t4, e2 ? (this.now = e2.now, this.fadeDuration = e2.fadeDuration, this.zoomHistory = e2.zoomHistory, this.transition = e2.transition) : (this.now = 0, this.fadeDuration = 0, this.zoomHistory = new Ii(), this.transition = {}); } isSupportedScript(t4) { - return function(t5, e2) { + return (function(t5, e2) { for (const r2 of t5) if (!Oi(r2.charCodeAt(0), e2)) return false; return true; - }(t4, "loaded" === Ri.getRTLTextPluginStatus()); + })(t4, "loaded" === Ri.getRTLTextPluginStatus()); } crossFadingFactor() { return 0 === this.fadeDuration ? 1 : Math.min((this.now - this.zoomHistory.lastIntegerZoomTime) / this.fadeDuration, 1); @@ -249321,18 +249464,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class qi { constructor(t4, e2) { - this.property = t4, this.value = e2, this.expression = function(t5, e3) { + this.property = t4, this.value = e2, this.expression = (function(t5, e3) { if (cn(t5)) return new Sn(t5, e3); if (vn(t5)) { const r2 = An(t5, e3); - if ("error" === r2.result) throw new Error(r2.value.map((t6) => `${t6.key}: ${t6.message}`).join(", ")); + if ("error" === r2.result) throw new Error(r2.value.map(((t6) => `${t6.key}: ${t6.message}`)).join(", ")); return r2.value; } { let r2 = t5; return "color" === e3.type && "string" == typeof t5 ? r2 = Kt.parse(t5) : "padding" !== e3.type || "number" != typeof t5 && !Array.isArray(t5) ? "variableAnchorOffsetCollection" === e3.type && Array.isArray(t5) && (r2 = Qt.parse(t5)) : r2 = Jt.parse(t5), { kind: "constant", evaluate: () => r2 }; } - }(void 0 === e2 ? t4.specification.default : e2, t4.specification); + })(void 0 === e2 ? t4.specification.default : e2, t4.specification); } isDataDriven() { return "source" === this.expression.kind || "composite" === this.expression.kind; @@ -249401,12 +249544,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (n2 < this.begin) return s2.possiblyEvaluate(t4, e2, r2); { const a2 = (n2 - this.begin) / (this.end - this.begin); - return this.property.interpolate(s2.possiblyEvaluate(t4, e2, r2), i2, function(t5) { + return this.property.interpolate(s2.possiblyEvaluate(t4, e2, r2), i2, (function(t5) { if (t5 <= 0) return 0; if (t5 >= 1) return 1; const e3 = t5 * t5, r3 = e3 * t5; return 4 * (t5 < 0.5 ? r3 : 3 * (t5 - e3) + r3 - 0.75); - }(a2)); + })(a2)); } } return i2; @@ -249630,7 +249773,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } serialize() { const t4 = { id: this.id, type: this.type, source: this.source, "source-layer": this.sourceLayer, metadata: this.metadata, minzoom: this.minzoom, maxzoom: this.maxzoom, filter: this.filter, layout: this._unevaluatedLayout && this._unevaluatedLayout.serialize(), paint: this._transitionablePaint && this._transitionablePaint.serialize() }; - return this.visibility && (t4.layout = t4.layout || {}, t4.layout.visibility = this.visibility), b(t4, (t5, e2) => !(void 0 === t5 || "layout" === e2 && !Object.keys(t5).length || "paint" === e2 && !Object.keys(t5).length)); + return this.visibility && (t4.layout = t4.layout || {}, t4.layout.visibility = this.visibility), b(t4, ((t5, e2) => !(void 0 === t5 || "layout" === e2 && !Object.keys(t5).length || "paint" === e2 && !Object.keys(t5).length))); } _validate(t4, e2, r2, n2, i2 = {}) { return (!i2 || false !== i2.validate) && xi(this, t4.call(fi, { key: e2, layerType: this.type, objectKey: r2, value: n2, styleSpec: G, style: { glyphs: true, sprite: true } })); @@ -249693,10 +249836,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function ls(t4, e2 = 1) { let r2 = 0, n2 = 0; - return { members: t4.map((t5) => { + return { members: t4.map(((t5) => { const i2 = ss[t5.type].BYTES_PER_ELEMENT, s2 = r2 = us(r2, Math.max(e2, i2)), a2 = t5.components || 1; return n2 = Math.max(n2, i2), r2 += i2 * a2, { name: t5.name, type: t5.type, components: a2, offset: s2 }; - }), size: us(r2, Math.max(n2, e2)), alignment: e2 }; + })), size: us(r2, Math.max(n2, e2)), alignment: e2 }; } function us(t4, e2) { return Math.ceil(t4 / e2) * e2; @@ -250449,7 +250592,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Ia { constructor(t4, e2, r2) { - this.value = t4, this.uniformNames = e2.map((t5) => `u_${t5}`), this.type = r2; + this.value = t4, this.uniformNames = e2.map(((t5) => `u_${t5}`)), this.type = r2; } setUniform(t4, e2, r2) { t4.set(r2.constantOr(this.value)); @@ -250460,7 +250603,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class za { constructor(t4, e2) { - this.uniformNames = e2.map((t5) => `u_${t5}`), this.patternFrom = null, this.patternTo = null, this.pixelRatioFrom = 1, this.pixelRatioTo = 1; + this.uniformNames = e2.map(((t5) => `u_${t5}`)), this.patternFrom = null, this.patternTo = null, this.pixelRatioFrom = 1, this.pixelRatioTo = 1; } setConstantPatternPositions(t4, e2) { this.pixelRatioFrom = e2.pixelRatio, this.pixelRatioTo = t4.pixelRatio, this.patternFrom = e2.tlbr, this.patternTo = t4.tlbr; @@ -250475,7 +250618,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Pa { constructor(t4, e2, r2, n2) { - this.expression = t4, this.type = r2, this.maxValue = 0, this.paintVertexAttributes = e2.map((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 2 : 1, offset: 0 })), this.paintVertexArray = new n2(); + this.expression = t4, this.type = r2, this.maxValue = 0, this.paintVertexAttributes = e2.map(((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 2 : 1, offset: 0 }))), this.paintVertexArray = new n2(); } populatePaintArray(t4, e2, r2, n2, i2) { const s2 = this.paintVertexArray.length, a2 = this.expression.evaluate(new Ui(0), e2, {}, n2, [], i2); @@ -250503,7 +250646,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Ca { constructor(t4, e2, r2, n2, i2, s2) { - this.expression = t4, this.uniformNames = e2.map((t5) => `u_${t5}_t`), this.type = r2, this.useIntegerZoom = n2, this.zoom = i2, this.maxValue = 0, this.paintVertexAttributes = e2.map((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 4 : 2, offset: 0 })), this.paintVertexArray = new s2(); + this.expression = t4, this.uniformNames = e2.map(((t5) => `u_${t5}_t`)), this.type = r2, this.useIntegerZoom = n2, this.zoom = i2, this.maxValue = 0, this.paintVertexAttributes = e2.map(((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 4 : 2, offset: 0 }))), this.paintVertexArray = new s2(); } populatePaintArray(t4, e2, r2, n2, i2) { const s2 = this.expression.evaluate(new Ui(this.zoom), e2, {}, n2, [], i2), a2 = this.expression.evaluate(new Ui(this.zoom + 1), e2, {}, n2, [], i2), o2 = this.paintVertexArray.length; @@ -250616,7 +250759,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t4 = []; for (const e2 in this.binders) { const r2 = this.binders[e2]; - (r2 instanceof Ia || r2 instanceof za) && t4.push(...r2.uniformNames.map((t5) => `#define HAS_UNIFORM_${t5}`)); + (r2 instanceof Ia || r2 instanceof za) && t4.push(...r2.uniformNames.map(((t5) => `#define HAS_UNIFORM_${t5}`))); } return t4; } @@ -250681,7 +250824,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } class Ea { - constructor(t4, e2, r2 = () => true) { + constructor(t4, e2, r2 = (() => true)) { this.programConfigurations = {}; for (const n2 of t4) this.programConfigurations[n2.id] = new Va(n2, e2, r2); this.needsUpload = false, this._featureMap = new ga(), this._bufferOffset = 0; @@ -250710,9 +250853,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return { "text-opacity": ["opacity"], "icon-opacity": ["opacity"], "text-color": ["fill_color"], "icon-color": ["fill_color"], "text-halo-color": ["halo_color"], "icon-halo-color": ["halo_color"], "text-halo-blur": ["halo_blur"], "icon-halo-blur": ["halo_blur"], "text-halo-width": ["halo_width"], "icon-halo-width": ["halo_width"], "line-gap-width": ["gapwidth"], "line-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-extrusion-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"] }[t4] || [t4.replace(`${e2}-`, "").replace(/-/g, "_")]; } function Ta(t4, e2, r2) { - const n2 = { color: { source: ys, composite: Vs }, number: { source: Is, composite: ys } }, i2 = function(t5) { + const n2 = { color: { source: ys, composite: Vs }, number: { source: Is, composite: ys } }, i2 = (function(t5) { return { "line-pattern": { source: Js, composite: Js }, "fill-pattern": { source: Js, composite: Js }, "fill-extrusion-pattern": { source: Js, composite: Js } }[t5]; - }(t4); + })(t4); return i2 && i2[r2] || n2[e2][r2]; } wi("ConstantBinder", Ia), wi("CrossFadedConstantBinder", za), wi("SourceExpressionBinder", Pa), wi("CrossFadedCompositeBinder", Ba), wi("CompositeExpressionBinder", Ca), wi("ProgramConfiguration", Va, { omit: ["_buffers"] }), wi("ProgramConfigurationSet", Ea); @@ -250736,7 +250879,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Ua { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Gs(), this.indexArray = new na(), this.segments = new oa(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Gs(), this.indexArray = new na(), this.segments = new oa(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { const n2 = this.layers[0], i2 = []; @@ -250748,7 +250891,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const c2 = a2 ? s2.evaluate(u2, {}, r2) : void 0, h2 = { id: n3, properties: e3.properties, type: e3.type, sourceLayerIndex: l2, index: o2, geometry: t5 ? u2.geometry : Oa(e3), patterns: {}, sortKey: c2 }; i2.push(h2); } - a2 && i2.sort((t5, e3) => t5.sortKey - e3.sortKey); + a2 && i2.sort(((t5, e3) => t5.sortKey - e3.sortKey)); for (const n3 of i2) { const { geometry: i3, index: s3, sourceLayerIndex: a3 } = n3, o2 = t4[s3].feature; this.addFeature(n3, i3, s3, r2), e2.featureIndex.insert(o2, i3, s3, a3, this.index); @@ -250901,9 +251044,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return to("circle-radius", this, e2) + to("circle-stroke-width", this, e2) + eo(this.paint.get("circle-translate")); } queryIntersectsFeature(t4, e2, r2, n2, i2, s2, a2, o2) { - const l2 = ro(t4, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), s2.angle, a2), u2 = this.paint.get("circle-radius").evaluate(e2, r2) + this.paint.get("circle-stroke-width").evaluate(e2, r2), c2 = "map" === this.paint.get("circle-pitch-alignment"), h2 = c2 ? l2 : function(t5, e3) { - return t5.map((t6) => yo(t6, e3)); - }(l2, o2), p2 = c2 ? u2 * a2 : u2; + const l2 = ro(t4, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), s2.angle, a2), u2 = this.paint.get("circle-radius").evaluate(e2, r2) + this.paint.get("circle-stroke-width").evaluate(e2, r2), c2 = "map" === this.paint.get("circle-pitch-alignment"), h2 = c2 ? l2 : (function(t5, e3) { + return t5.map(((t6) => yo(t6, e3))); + })(l2, o2), p2 = c2 ? u2 * a2 : u2; for (const t5 of n2) for (const e3 of t5) { const t6 = c2 ? e3 : yo(e3, o2); let r3 = p2; @@ -251041,7 +251184,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = []; if (!s2 || s2.next === s2.prev) return a2; let o2, l2, u2; - if (n2 && (s2 = function(t5, e3, r3, n3) { + if (n2 && (s2 = (function(t5, e3, r3, n3) { const i3 = []; for (let r4 = 0, s3 = e3.length; r4 < s3; r4++) { const a3 = Eo(t5, e3[r4] * n3, r4 < s3 - 1 ? e3[r4 + 1] * n3 : t5.length, n3, false); @@ -251050,7 +251193,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i3.sort(jo); for (let t6 = 0; t6 < i3.length; t6++) r3 = Ro(i3[t6], r3); return r3; - }(t4, e2, s2, r2)), t4.length > 80 * r2) { + })(t4, e2, s2, r2)), t4.length > 80 * r2) { o2 = 1 / 0, l2 = 1 / 0; let e3 = -1 / 0, n3 = -1 / 0; for (let s3 = r2; s3 < i2; s3 += r2) { @@ -251063,11 +251206,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function Eo(t4, e2, r2, n2, i2) { let s2; - if (i2 === function(t5, e3, r3, n3) { + if (i2 === (function(t5, e3, r3, n3) { let i3 = 0; for (let s3 = e3, a2 = r3 - n3; s3 < r3; s3 += n3) i3 += (t5[a2] - t5[s3]) * (t5[s3 + 1] + t5[a2 + 1]), a2 = s3; return i3; - }(t4, e2, r2, n2) > 0) for (let i3 = e2; i3 < r2; i3 += n2) s2 = tl(i3 / n2 | 0, t4[i3], t4[i3 + 1], s2); + })(t4, e2, r2, n2) > 0) for (let i3 = e2; i3 < r2; i3 += n2) s2 = tl(i3 / n2 | 0, t4[i3], t4[i3 + 1], s2); else for (let i3 = r2 - n2; i3 >= e2; i3 -= n2) s2 = tl(i3 / n2 | 0, t4[i3], t4[i3 + 1], s2); return s2 && Xo(s2, s2.next) && (el(s2), s2 = s2.next), s2; } @@ -251086,12 +251229,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function To(t4, e2, r2, n2, i2, s2, a2) { if (!t4) return; - !a2 && s2 && function(t5, e3, r3, n3) { + !a2 && s2 && (function(t5, e3, r3, n3) { let i3 = t5; do { 0 === i3.z && (i3.z = qo(i3.x, i3.y, e3, r3, n3)), i3.prevZ = i3.prev, i3.nextZ = i3.next, i3 = i3.next; } while (i3 !== t5); - i3.prevZ.nextZ = null, i3.prevZ = null, function(t6) { + i3.prevZ.nextZ = null, i3.prevZ = null, (function(t6) { let e4, r4 = 1; do { let n4, i4 = t6; @@ -251107,8 +251250,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } s3.nextZ = null, r4 *= 2; } while (e4 > 1); - }(i3); - }(t4, n2, i2, s2); + })(i3); + })(t4, n2, i2, s2); let o2 = t4; for (; t4.prev !== t4.next; ) { const l2 = t4.prev, u2 = t4.next; @@ -251176,7 +251319,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4.x - e2.x; } function Ro(t4, e2) { - const r2 = function(t5, e3) { + const r2 = (function(t5, e3) { let r3 = e3; const n3 = t5.x, i2 = t5.y; let s2, a2 = -1 / 0; @@ -251199,7 +251342,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r3 = r3.next; } while (r3 !== o2); return s2; - }(t4, e2); + })(t4, e2); if (!r2) return e2; const n2 = Qo(r2, t4); return Fo(n2, n2.next), Fo(r2, r2.next); @@ -251221,21 +251364,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return (i2 - a2) * (e2 - o2) >= (t4 - a2) * (s2 - o2) && (t4 - a2) * (n2 - o2) >= (r2 - a2) * (e2 - o2) && (r2 - a2) * (s2 - o2) >= (i2 - a2) * (n2 - o2); } function Go(t4, e2) { - return t4.next.i !== e2.i && t4.prev.i !== e2.i && !function(t5, e3) { + return t4.next.i !== e2.i && t4.prev.i !== e2.i && !(function(t5, e3) { let r2 = t5; do { if (r2.i !== t5.i && r2.next.i !== t5.i && r2.i !== e3.i && r2.next.i !== e3.i && Ho(r2, r2.next, t5, e3)) return true; r2 = r2.next; } while (r2 !== t5); return false; - }(t4, e2) && (Wo(t4, e2) && Wo(e2, t4) && function(t5, e3) { + })(t4, e2) && (Wo(t4, e2) && Wo(e2, t4) && (function(t5, e3) { let r2 = t5, n2 = false; const i2 = (t5.x + e3.x) / 2, s2 = (t5.y + e3.y) / 2; do { r2.y > s2 != r2.next.y > s2 && r2.next.y !== r2.y && i2 < (r2.next.x - r2.x) * (s2 - r2.y) / (r2.next.y - r2.y) + r2.x && (n2 = !n2), r2 = r2.next; } while (r2 !== t5); return n2; - }(t4, e2) && (Ko(t4.prev, t4, e2.prev) || Ko(t4, e2.prev, e2)) || Xo(t4, e2) && Ko(t4.prev, t4, t4.next) > 0 && Ko(e2.prev, e2, e2.next) > 0); + })(t4, e2) && (Ko(t4.prev, t4, e2.prev) || Ko(t4, e2.prev, e2)) || Xo(t4, e2) && Ko(t4.prev, t4, t4.next) > 0 && Ko(e2.prev, e2, e2.next) > 0); } function Ko(t4, e2, r2) { return (e2.y - t4.y) * (r2.x - e2.x) - (e2.x - t4.x) * (r2.y - e2.y); @@ -251294,7 +251437,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class sl { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.layoutVertexArray = new Ks(), this.indexArray = new na(), this.indexArray2 = new ia(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.segments2 = new oa(), this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.layoutVertexArray = new Ks(), this.indexArray = new na(), this.indexArray2 = new ia(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.segments2 = new oa(), this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { this.hasPattern = nl("fill", this.layers, e2); @@ -251305,7 +251448,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const h2 = i2 ? n2.evaluate(c2, {}, r2, e2.availableImages) : void 0, p2 = { id: o2, properties: a2.properties, type: a2.type, sourceLayerIndex: u2, index: l2, geometry: t5 ? c2.geometry : Oa(a2), patterns: {}, sortKey: h2 }; s2.push(p2); } - i2 && s2.sort((t5, e3) => t5.sortKey - e3.sortKey); + i2 && s2.sort(((t5, e3) => t5.sortKey - e3.sortKey)); for (const n3 of s2) { const { geometry: i3, index: s3, sourceLayerIndex: a2 } = n3; if (this.hasPattern) { @@ -251388,12 +251531,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.properties = {}, this.extent = r2, this.type = 0, this._pbf = t4, this._geometry = -1, this._keys = n2, this._values = i2, t4.readFields(gl2, this, e2); } function gl2(t4, e2, r2) { - 1 == t4 ? e2.id = r2.readVarint() : 2 == t4 ? function(t5, e3) { + 1 == t4 ? e2.id = r2.readVarint() : 2 == t4 ? (function(t5, e3) { for (var r3 = t5.readVarint() + t5.pos; t5.pos < r3; ) { var n2 = e3._keys[t5.readVarint()], i2 = e3._values[t5.readVarint()]; e3.properties[n2] = i2; } - }(r2, e2) : 3 == t4 ? e2.type = r2.readVarint() : 4 == t4 && (e2._geometry = r2.pos); + })(r2, e2) : 3 == t4 ? e2.type = r2.readVarint() : 4 == t4 && (e2._geometry = r2.pos); } function xl(t4) { for (var e2, r2, n2 = 0, i2 = 0, s2 = t4.length, a2 = s2 - 1; i2 < s2; a2 = i2++) n2 += ((r2 = t4[a2]).x - (e2 = t4[i2]).x) * (e2.y + r2.y); @@ -251444,7 +251587,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (n2 = 0; n2 < l2.length; n2++) c2(l2[n2]); break; case 3: - for (l2 = function(t5) { + for (l2 = (function(t5) { var e3 = t5.length; if (e3 <= 1) return [t5]; for (var r3, n3, i3 = [], s3 = 0; s3 < e3; s3++) { @@ -251452,7 +251595,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ 0 !== a3 && (void 0 === n3 && (n3 = a3 < 0), n3 === a3 < 0 ? (r3 && i3.push(r3), r3 = [t5[s3]]) : r3.push(t5[s3])); } return r3 && i3.push(r3), i3; - }(l2), n2 = 0; n2 < l2.length; n2++) for (i2 = 0; i2 < l2[n2].length; i2++) c2(l2[n2][i2]); + })(l2), n2 = 0; n2 < l2.length; n2++) for (i2 = 0; i2 < l2[n2].length; i2++) c2(l2[n2][i2]); } 1 === l2.length ? l2 = l2[0] : u2 = "Multi" + u2; var p2 = { type: "Feature", geometry: { type: u2, coordinates: l2 }, properties: this.properties }; @@ -251463,13 +251606,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = t4, this._keys = [], this._values = [], this._features = [], t4.readFields(_l, this, e2), this.length = this._features.length; } function _l(t4, e2, r2) { - 15 === t4 ? e2.version = r2.readVarint() : 1 === t4 ? e2.name = r2.readString() : 5 === t4 ? e2.extent = r2.readVarint() : 2 === t4 ? e2._features.push(r2.pos) : 3 === t4 ? e2._keys.push(r2.readString()) : 4 === t4 && e2._values.push(function(t5) { + 15 === t4 ? e2.version = r2.readVarint() : 1 === t4 ? e2.name = r2.readString() : 5 === t4 ? e2.extent = r2.readVarint() : 2 === t4 ? e2._features.push(r2.pos) : 3 === t4 ? e2._keys.push(r2.readString()) : 4 === t4 && e2._values.push((function(t5) { for (var e3 = null, r3 = t5.readVarint() + t5.pos; t5.pos < r3; ) { var n2 = t5.readVarint() >> 3; e3 = 1 === n2 ? t5.readString() : 2 === n2 ? t5.readFloat() : 3 === n2 ? t5.readDouble() : 4 === n2 ? t5.readVarint64() : 5 === n2 ? t5.readVarint() : 6 === n2 ? t5.readSVarint() : 7 === n2 ? t5.readBoolean() : null; } return e3; - }(r2)); + })(r2)); } wl.prototype.feature = function(t4) { if (t4 < 0 || t4 >= this._features.length) throw new Error("feature index out of bounds"); @@ -251493,7 +251636,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class zl { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Xs(), this.centroidVertexArray = new Zs(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Xs(), this.centroidVertexArray = new Zs(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { this.features = [], this.hasPattern = nl("fill-extrusion", this.layers, e2); @@ -251573,7 +251716,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4.x === e2.x && (t4.x < 0 || t4.x > $a) || t4.y === e2.y && (t4.y < 0 || t4.y > $a); } function Cl(t4) { - return t4.every((t5) => t5.x < 0) || t4.every((t5) => t5.x > $a) || t4.every((t5) => t5.y < 0) || t4.every((t5) => t5.y > $a); + return t4.every(((t5) => t5.x < 0)) || t4.every(((t5) => t5.x > $a)) || t4.every(((t5) => t5.y < 0)) || t4.every(((t5) => t5.y > $a)); } let Bl; wi("FillExtrusionBucket", zl, { omit: ["layers", "features"] }); @@ -251594,14 +251737,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return true; } queryIntersectsFeature(t4, e2, r2, n2, i2, a2, o2, l2) { - const u2 = ro(t4, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), a2.angle, o2), c2 = this.paint.get("fill-extrusion-height").evaluate(e2, r2), h2 = this.paint.get("fill-extrusion-base").evaluate(e2, r2), p2 = function(t5, e3, r3, n3) { + const u2 = ro(t4, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), a2.angle, o2), c2 = this.paint.get("fill-extrusion-height").evaluate(e2, r2), h2 = this.paint.get("fill-extrusion-base").evaluate(e2, r2), p2 = (function(t5, e3, r3, n3) { const i3 = []; for (const r4 of t5) { const t6 = [r4.x, r4.y, 0, 1]; po(t6, t6, e3), i3.push(new s(t6[0] / t6[3], t6[1] / t6[3])); } return i3; - }(u2, l2), f2 = function(t5, e3, r3, n3) { + })(u2, l2), f2 = (function(t5, e3, r3, n3) { const i3 = [], a3 = [], o3 = n3[8] * e3, l3 = n3[9] * e3, u3 = n3[10] * e3, c3 = n3[11] * e3, h3 = n3[8] * r3, p3 = n3[9] * r3, f3 = n3[10] * r3, d2 = n3[11] * r3; for (const e4 of t5) { const t6 = [], r4 = []; @@ -251614,8 +251757,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i3.push(t6), a3.push(r4); } return [i3, a3]; - }(n2, h2, c2, l2); - return function(t5, e3, r3) { + })(n2, h2, c2, l2); + return (function(t5, e3, r3) { let n3 = 1 / 0; Za(r3, e3) && (n3 = Tl(r3, e3[0])); for (let i3 = 0; i3 < e3.length; i3++) { @@ -251626,7 +251769,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return n3 !== 1 / 0 && n3; - }(f2[0], f2[1], p2); + })(f2[0], f2[1], p2); } } function Fl(t4, e2) { @@ -251653,9 +251796,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const $l = ls([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: Ll } = $l, Dl = ls([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: Ol } = Dl, jl = fl.VectorTileFeature.types, Rl = Math.cos(Math.PI / 180 * 37.5), Ul = Math.pow(2, 14) / 0.5; class ql { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((t5) => { + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach(((t5) => { this.gradients[t5.id] = {}; - }), this.layoutVertexArray = new Hs(), this.layoutVertexArray2 = new Ys(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + })), this.layoutVertexArray = new Hs(), this.layoutVertexArray2 = new Ys(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { this.hasPattern = nl("line", this.layers, e2); @@ -251666,7 +251809,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const c2 = i2 ? n2.evaluate(u2, {}, r2) : void 0, h2 = { id: a2, properties: e3.properties, type: e3.type, sourceLayerIndex: l2, index: o2, geometry: t5 ? u2.geometry : Oa(e3), patterns: {}, sortKey: c2 }; s2.push(h2); } - i2 && s2.sort((t5, e3) => t5.sortKey - e3.sortKey); + i2 && s2.sort(((t5, e3) => t5.sortKey - e3.sortKey)); for (const n3 of s2) { const { geometry: i3, index: s3, sourceLayerIndex: a2 } = n3; if (this.hasPattern) { @@ -251811,9 +251954,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ _handleSpecialPaintPropertyUpdate(t4) { if ("line-gradient" === t4) { const t5 = this.gradientExpression(); - this.stepInterpolant = !!function(t6) { + this.stepInterpolant = !!(function(t6) { return void 0 !== t6._styleExpression; - }(t5) && t5._styleExpression.expression instanceof Ae, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER; + })(t5) && t5._styleExpression.expression instanceof Ae, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER; } } gradientExpression() { @@ -251831,7 +251974,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } queryIntersectsFeature(t4, e2, r2, n2, i2, a2, o2) { const l2 = ro(t4, this.paint.get("line-translate"), this.paint.get("line-translate-anchor"), a2.angle, o2), u2 = o2 / 2 * Yl(this.paint.get("line-width").evaluate(e2, r2), this.paint.get("line-gap-width").evaluate(e2, r2)), c2 = this.paint.get("line-offset").evaluate(e2, r2); - return c2 && (n2 = function(t5, e3) { + return c2 && (n2 = (function(t5, e3) { const r3 = []; for (let n3 = 0; n3 < t5.length; n3++) { const i3 = t5[n3], a3 = []; @@ -251842,7 +251985,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r3.push(a3); } return r3; - }(n2, c2 * o2)), function(t5, e3, r3) { + })(n2, c2 * o2)), (function(t5, e3, r3) { for (let n3 = 0; n3 < e3.length; n3++) { const i3 = e3[n3]; if (t5.length >= 3) { @@ -251851,7 +251994,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (Ga(t5, i3, r3)) return true; } return false; - }(l2, n2, u2); + })(l2, n2, u2); } isTileClipped() { return true; @@ -251866,12 +252009,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ ls([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]); const tu = ls([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), eu = ls([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4); function ru(t4, e2, r2) { - return t4.sections.forEach((t5) => { - t5.text = function(t6, e3, r3) { + return t4.sections.forEach(((t5) => { + t5.text = (function(t6, e3, r3) { const n2 = e3.layout.get("text-transform").evaluate(r3, {}); return "uppercase" === n2 ? t6 = t6.toLocaleUpperCase() : "lowercase" === n2 && (t6 = t6.toLocaleLowerCase()), Ri.applyArabicShaping && (t6 = Ri.applyArabicShaping(t6)), t6; - }(t5.text, e2, r2); - }), t4; + })(t5.text, e2, r2); + })), t4; } ls([{ name: "triangle", components: 3, type: "Uint16" }]), ls([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }]), ls([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", name: "textBoxScale" }, { type: "Float32", name: "collisionCircleDiameter" }, { type: "Uint16", name: "textAnchorOffsetStartIndex" }, { type: "Uint16", name: "textAnchorOffsetEndIndex" }]), ls([{ type: "Float32", name: "offsetX" }]), ls([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]), ls([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]); const nu = { "!": "\uFE15", "#": "\uFF03", $: "\uFF04", "%": "\uFF05", "&": "\uFF06", "(": "\uFE35", ")": "\uFE36", "*": "\uFF0A", "+": "\uFF0B", ",": "\uFE10", "-": "\uFE32", ".": "\u30FB", "/": "\uFF0F", ":": "\uFE13", ";": "\uFE14", "<": "\uFE3F", "=": "\uFF1D", ">": "\uFE40", "?": "\uFE16", "@": "\uFF20", "[": "\uFE47", "\\": "\uFF3C", "]": "\uFE48", "^": "\uFF3E", _: "\uFE33", "`": "\uFF40", "{": "\uFE37", "|": "\u2015", "}": "\uFE38", "~": "\uFF5E", "\xA2": "\uFFE0", "\xA3": "\uFFE1", "\xA5": "\uFFE5", "\xA6": "\uFFE4", "\xAC": "\uFFE2", "\xAF": "\uFFE3", "\u2013": "\uFE32", "\u2014": "\uFE31", "\u2018": "\uFE43", "\u2019": "\uFE44", "\u201C": "\uFE41", "\u201D": "\uFE42", "\u2026": "\uFE19", "\u2027": "\u30FB", "\u20A9": "\uFFE6", "\u3001": "\uFE11", "\u3002": "\uFE12", "\u3008": "\uFE3F", "\u3009": "\uFE40", "\u300A": "\uFE3D", "\u300B": "\uFE3E", "\u300C": "\uFE41", "\u300D": "\uFE42", "\u300E": "\uFE43", "\u300F": "\uFE44", "\u3010": "\uFE3B", "\u3011": "\uFE3C", "\u3014": "\uFE39", "\u3015": "\uFE3A", "\u3016": "\uFE17", "\u3017": "\uFE18", "\uFF01": "\uFE15", "\uFF08": "\uFE35", "\uFF09": "\uFE36", "\uFF0C": "\uFE10", "\uFF0D": "\uFE32", "\uFF0E": "\u30FB", "\uFF1A": "\uFE13", "\uFF1B": "\uFE14", "\uFF1C": "\uFE3F", "\uFF1E": "\uFE40", "\uFF1F": "\uFE16", "\uFF3B": "\uFE47", "\uFF3D": "\uFE48", "\uFF3F": "\uFE33", "\uFF5B": "\uFE37", "\uFF5C": "\u2015", "\uFF5D": "\uFE38", "\uFF5F": "\uFE35", "\uFF60": "\uFE36", "\uFF61": "\uFE12", "\uFF62": "\uFE41", "\uFF63": "\uFE42" }; @@ -251973,7 +252116,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.pos += 8, t4; }, readVarint: function(t4) { var e2, r2, n2 = this.buf; - return e2 = 127 & (r2 = n2[this.pos++]), r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 7, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 14, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 21, r2 < 128 ? e2 : function(t5, e3, r3) { + return e2 = 127 & (r2 = n2[this.pos++]), r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 7, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 14, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 21, r2 < 128 ? e2 : (function(t5, e3, r3) { var n3, i2, s2 = r3.buf; if (n3 = (112 & (i2 = s2[r3.pos++])) >> 4, i2 < 128) return fu(t5, n3, e3); if (n3 |= (127 & (i2 = s2[r3.pos++])) << 3, i2 < 128) return fu(t5, n3, e3); @@ -251982,7 +252125,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (n3 |= (127 & (i2 = s2[r3.pos++])) << 24, i2 < 128) return fu(t5, n3, e3); if (n3 |= (1 & (i2 = s2[r3.pos++])) << 31, i2 < 128) return fu(t5, n3, e3); throw new Error("Expected varint not more than 10 bytes"); - }(e2 |= (15 & (r2 = n2[this.pos])) << 28, t4, this)))); + })(e2 |= (15 & (r2 = n2[this.pos])) << 28, t4, this)))); }, readVarint64: function() { return this.readVarint(true); }, readSVarint: function() { @@ -251992,16 +252135,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return Boolean(this.readVarint()); }, readString: function() { var t4 = this.readVarint() + this.pos, e2 = this.pos; - return this.pos = t4, t4 - e2 >= 12 && hu ? function(t5, e3, r2) { + return this.pos = t4, t4 - e2 >= 12 && hu ? (function(t5, e3, r2) { return hu.decode(t5.subarray(e3, r2)); - }(this.buf, e2, t4) : function(t5, e3, r2) { + })(this.buf, e2, t4) : (function(t5, e3, r2) { for (var n2 = "", i2 = e3; i2 < r2; ) { var s2, a2, o2, l2 = t5[i2], u2 = null, c2 = l2 > 239 ? 4 : l2 > 223 ? 3 : l2 > 191 ? 2 : 1; if (i2 + c2 > r2) break; 1 === c2 ? l2 < 128 && (u2 = l2) : 2 === c2 ? 128 == (192 & (s2 = t5[i2 + 1])) && (u2 = (31 & l2) << 6 | 63 & s2) <= 127 && (u2 = null) : 3 === c2 ? (a2 = t5[i2 + 2], 128 == (192 & (s2 = t5[i2 + 1])) && 128 == (192 & a2) && ((u2 = (15 & l2) << 12 | (63 & s2) << 6 | 63 & a2) <= 2047 || u2 >= 55296 && u2 <= 57343) && (u2 = null)) : 4 === c2 && (a2 = t5[i2 + 2], o2 = t5[i2 + 3], 128 == (192 & (s2 = t5[i2 + 1])) && 128 == (192 & a2) && 128 == (192 & o2) && ((u2 = (15 & l2) << 18 | (63 & s2) << 12 | (63 & a2) << 6 | 63 & o2) <= 65535 || u2 >= 1114112) && (u2 = null)), null === u2 ? (u2 = 65533, c2 = 1) : u2 > 65535 && (u2 -= 65536, n2 += String.fromCharCode(u2 >>> 10 & 1023 | 55296), u2 = 56320 | 1023 & u2), n2 += String.fromCharCode(u2), i2 += c2; } return n2; - }(this.buf, e2, t4); + })(this.buf, e2, t4); }, readBytes: function() { var t4 = this.readVarint() + this.pos, e2 = this.buf.subarray(this.pos, t4); return this.pos = t4, e2; @@ -252078,16 +252221,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }, writeSFixed64: function(t4) { this.realloc(8), ku(this.buf, -1 & t4, this.pos), ku(this.buf, Math.floor(t4 * cu), this.pos + 4), this.pos += 8; }, writeVarint: function(t4) { - (t4 = +t4 || 0) > 268435455 || t4 < 0 ? function(t5, e2) { + (t4 = +t4 || 0) > 268435455 || t4 < 0 ? (function(t5, e2) { var r2, n2; if (t5 >= 0 ? (r2 = t5 % 4294967296 | 0, n2 = t5 / 4294967296 | 0) : (n2 = ~(-t5 / 4294967296), 4294967295 ^ (r2 = ~(-t5 % 4294967296)) ? r2 = r2 + 1 | 0 : (r2 = 0, n2 = n2 + 1 | 0)), t5 >= 18446744073709552e3 || t5 < -18446744073709552e3) throw new Error("Given varint doesn't fit into 10 bytes"); - e2.realloc(10), function(t6, e3, r3) { + e2.realloc(10), (function(t6, e3, r3) { r3.buf[r3.pos++] = 127 & t6 | 128, t6 >>>= 7, r3.buf[r3.pos++] = 127 & t6 | 128, t6 >>>= 7, r3.buf[r3.pos++] = 127 & t6 | 128, t6 >>>= 7, r3.buf[r3.pos++] = 127 & t6 | 128, r3.buf[r3.pos] = 127 & (t6 >>>= 7); - }(r2, 0, e2), function(t6, e3) { + })(r2, 0, e2), (function(t6, e3) { var r3 = (7 & t6) << 4; e3.buf[e3.pos++] |= r3 | ((t6 >>>= 3) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6))))); - }(n2, e2); - }(t4, this) : (this.realloc(4), this.buf[this.pos++] = 127 & t4 | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = t4 >>> 7 & 127)))); + })(n2, e2); + })(t4, this) : (this.realloc(4), this.buf[this.pos++] = 127 & t4 | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = t4 >>> 7 & 127)))); }, writeSVarint: function(t4) { this.writeVarint(t4 < 0 ? 2 * -t4 - 1 : 2 * t4); }, writeBoolean: function(t4) { @@ -252095,7 +252238,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }, writeString: function(t4) { t4 = String(t4), this.realloc(4 * t4.length), this.pos++; var e2 = this.pos; - this.pos = function(t5, e3, r3) { + this.pos = (function(t5, e3, r3) { for (var n2, i2, s2 = 0; s2 < e3.length; s2++) { if ((n2 = e3.charCodeAt(s2)) > 55295 && n2 < 57344) { if (!i2) { @@ -252111,7 +252254,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ n2 < 128 ? t5[r3++] = n2 : (n2 < 2048 ? t5[r3++] = n2 >> 6 | 192 : (n2 < 65536 ? t5[r3++] = n2 >> 12 | 224 : (t5[r3++] = n2 >> 18 | 240, t5[r3++] = n2 >> 12 & 63 | 128), t5[r3++] = n2 >> 6 & 63 | 128), t5[r3++] = 63 & n2 | 128); } return r3; - }(this.buf, t4, this.pos); + })(this.buf, t4, this.pos); var r2 = this.pos - e2; r2 >= 128 && du(e2, r2, this), this.pos = e2 - 1, this.writeVarint(r2), this.pos += r2; }, writeFloat: function(t4) { @@ -252189,7 +252332,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ function Eu(t4) { let e2 = 0, r2 = 0; for (const n3 of t4) e2 += n3.w * n3.h, r2 = Math.max(r2, n3.w); - t4.sort((t5, e3) => e3.h - t5.h); + t4.sort(((t5, e3) => e3.h - t5.h)); const n2 = [{ x: 0, y: 0, w: Math.max(Math.ceil(Math.sqrt(e2 / 0.95)), r2), h: 1 / 0 }]; let i2 = 0, s2 = 0; for (const e3 of t4) for (let t5 = n2.length - 1; t5 >= 0; t5--) { @@ -252298,14 +252441,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.text.charCodeAt(t4); } verticalizePunctuation() { - this.text = function(t4) { + this.text = (function(t4) { let e2 = ""; for (let r2 = 0; r2 < t4.length; r2++) { const n2 = t4.charCodeAt(r2 + 1) || null, i2 = t4.charCodeAt(r2 - 1) || null; e2 += n2 && $i(n2) && !nu[t4[r2 + 1]] || i2 && $i(i2) && !nu[t4[r2 - 1]] || !nu[t4[r2]] ? t4[r2] : nu[t4[r2]]; } return e2; - }(this.text); + })(this.text); } trim() { let t4 = 0; @@ -252322,7 +252465,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.text; } getMaxScale() { - return this.sectionIndex.reduce((t4, e2) => Math.max(t4, this.sections[e2].scale), 0); + return this.sectionIndex.reduce(((t4, e2) => Math.max(t4, this.sections[e2].scale)), 0); } addTextSection(t4, e2) { this.text += t4.text, this.sections.push(Ou.forText(t4.scale, t4.fontStack || e2)); @@ -252360,14 +252503,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t5 = new ju(); t5.text = e3[0], t5.sectionIndex = e3[1], t5.sections = m2.sections, g2.push(t5); } - } else g2 = function(t4, e3) { + } else g2 = (function(t4, e3) { const r3 = [], n3 = t4.text; let i3 = 0; for (const n4 of e3) r3.push(t4.substring(i3, n4)), i3 = n4; return i3 < n3.length && r3.push(t4.substring(i3, n3.length)), r3; - }(m2, Yu(m2, c2, a2, r2, i2, d2)); + })(m2, Yu(m2, c2, a2, r2, i2, d2)); const b2 = [], w2 = { positionedLines: b2, text: m2.toString(), top: h2[1], bottom: h2[1], left: h2[0], right: h2[0], writingMode: p2, iconsInText: false, verticalizable: false }; - return function(e3, r3, n3, i3, s3, a3, o3, l3, u3, c3, h3, p3) { + return (function(e3, r3, n3, i3, s3, a3, o3, l3, u3, c3, h3, p3) { let f3 = 0, d3 = Du, y3 = 0, m3 = 0; const g3 = "right" === l3 ? 1 : "left" === l3 ? 0 : 0.5; let x3 = 0; @@ -252417,10 +252560,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ c4 = s4 !== a4 ? -o4 * n4 - Du : (-n4 * l4 + 0.5) * a4; for (const e5 of t4) for (const t5 of e5.positionedGlyphs) t5.x += u4, t5.y += c4; })(e3.positionedLines, g3, w3, _2, y3, m3, a3, b3, s3.length), e3.top += -_2 * b3, e3.bottom = e3.top + b3, e3.left += -w3 * y3, e3.right = e3.left + y3; - }(w2, r2, n2, i2, g2, o2, l2, u2, p2, c2, f2, y2), !function(t4) { + })(w2, r2, n2, i2, g2, o2, l2, u2, p2, c2, f2, y2), !(function(t4) { for (const e3 of t4) if (0 !== e3.positionedGlyphs.length) return false; return true; - }(b2) && w2; + })(b2) && w2; } const Uu = { 9: true, 10: true, 11: true, 12: true, 13: true, 32: true }, qu = { 10: true, 32: true, 38: true, 41: true, 43: true, 45: true, 47: true, 173: true, 183: true, 8203: true, 8208: true, 8211: true, 8231: true }, Nu = { 40: true }; function Zu(t4, e2, r2, n2, i2, s2) { @@ -252454,14 +252597,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function Yu(t4, e2, r2, n2, i2, s2) { if (!t4) return []; - const a2 = [], o2 = function(t5, e3, r3, n3, i3, s3) { + const a2 = [], o2 = (function(t5, e3, r3, n3, i3, s3) { let a3 = 0; for (let r4 = 0; r4 < t5.length(); r4++) { const o3 = t5.getSection(r4); a3 += Zu(t5.getCharCode(r4), o3, n3, i3, e3, s3); } return a3 / Math.max(1, Math.ceil(a3 / r3)); - }(t4, e2, r2, n2, i2, s2), l2 = t4.text.indexOf("\u200B") >= 0; + })(t4, e2, r2, n2, i2, s2), l2 = t4.text.indexOf("\u200B") >= 0; let u2 = 0; for (let r3 = 0; r3 < t4.length(); r3++) { const h2 = t4.getSection(r3), p2 = t4.getCharCode(r3); @@ -252599,14 +252742,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ wi("CollisionBuffers", fc); class dc { constructor(e2) { - this.collisionBoxArray = e2.collisionBoxArray, this.zoom = e2.zoom, this.overscaling = e2.overscaling, this.layers = e2.layers, this.layerIds = this.layers.map((t4) => t4.id), this.index = e2.index, this.pixelRatio = e2.pixelRatio, this.sourceLayerIndex = e2.sourceLayerIndex, this.hasPattern = false, this.hasRTLText = false, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = lo([]), this.placementViewportMatrix = lo([]); + this.collisionBoxArray = e2.collisionBoxArray, this.zoom = e2.zoom, this.overscaling = e2.overscaling, this.layers = e2.layers, this.layerIds = this.layers.map(((t4) => t4.id)), this.index = e2.index, this.pixelRatio = e2.pixelRatio, this.sourceLayerIndex = e2.sourceLayerIndex, this.hasPattern = false, this.hasRTLText = false, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = lo([]), this.placementViewportMatrix = lo([]); const r2 = this.layers[0]._unevaluatedLayout._values; this.textSizeData = sc(this.zoom, r2["text-size"]), this.iconSizeData = sc(this.zoom, r2["icon-size"]); const n2 = this.layers[0].layout, i2 = n2.get("symbol-sort-key"), s2 = n2.get("symbol-z-order"); - this.canOverlap = "never" !== ac(n2, "text-overlap", "text-allow-overlap") || "never" !== ac(n2, "icon-overlap", "icon-allow-overlap") || n2.get("text-ignore-placement") || n2.get("icon-ignore-placement"), this.sortFeaturesByKey = "viewport-y" !== s2 && !i2.isConstant(), this.sortFeaturesByY = ("viewport-y" === s2 || "auto" === s2 && !this.sortFeaturesByKey) && this.canOverlap, "point" === n2.get("symbol-placement") && (this.writingModes = n2.get("text-writing-mode").map((e3) => t.ah[e3])), this.stateDependentLayerIds = this.layers.filter((t4) => t4.isStateDependent()).map((t4) => t4.id), this.sourceID = e2.sourceID; + this.canOverlap = "never" !== ac(n2, "text-overlap", "text-allow-overlap") || "never" !== ac(n2, "icon-overlap", "icon-allow-overlap") || n2.get("text-ignore-placement") || n2.get("icon-ignore-placement"), this.sortFeaturesByKey = "viewport-y" !== s2 && !i2.isConstant(), this.sortFeaturesByY = ("viewport-y" === s2 || "auto" === s2 && !this.sortFeaturesByKey) && this.canOverlap, "point" === n2.get("symbol-placement") && (this.writingModes = n2.get("text-writing-mode").map(((e3) => t.ah[e3]))), this.stateDependentLayerIds = this.layers.filter(((t4) => t4.isStateDependent())).map(((t4) => t4.id)), this.sourceID = e2.sourceID; } createArrays() { - this.text = new pc(new Ea(this.layers, this.zoom, (t4) => /^text/.test(t4))), this.icon = new pc(new Ea(this.layers, this.zoom, (t4) => /^icon/.test(t4))), this.glyphOffsetArray = new Os(), this.lineVertexArray = new js(), this.symbolInstances = new Ds(), this.textAnchorOffsets = new Us(); + this.text = new pc(new Ea(this.layers, this.zoom, ((t4) => /^text/.test(t4)))), this.icon = new pc(new Ea(this.layers, this.zoom, ((t4) => /^icon/.test(t4)))), this.glyphOffsetArray = new Os(), this.lineVertexArray = new js(), this.symbolInstances = new Ds(), this.textAnchorOffsets = new Us(); } calculateGlyphDependencies(t4, e2, r2, n2, i2) { for (let s2 = 0; s2 < t4.length; s2++) if (e2[t4.charCodeAt(s2)] = true, (r2 || n2) && i2) { @@ -252642,7 +252785,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } } - "line" === s2.get("symbol-placement") && (this.features = function(t4) { + "line" === s2.get("symbol-placement") && (this.features = (function(t4) { const e3 = {}, r3 = {}, n3 = []; let i3 = 0; function s3(e4) { @@ -252672,8 +252815,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ delete e3[f3], delete r3[d3], r3[l3(p3, n3[i4].geometry, true)] = i4, n3[t5].geometry = null; } else f3 in r3 ? a3(f3, d3, h3) : d3 in e3 ? o3(f3, d3, h3) : (s3(u3), e3[f3] = i3 - 1, r3[d3] = i3 - 1); } - return n3.filter((t5) => t5.geometry); - }(this.features)), this.sortFeaturesByKey && this.features.sort((t4, e3) => t4.sortKey - e3.sortKey); + return n3.filter(((t5) => t5.geometry)); + })(this.features)), this.sortFeaturesByKey && this.features.sort(((t4, e3) => t4.sortKey - e3.sortKey)); } update(t4, e2, r2) { this.stateDependentLayers.length && (this.text.programConfigurations.updatePaintArrays(t4, e2, this.layers, r2), this.icon.programConfigurations.updatePaintArrays(t4, e2, this.layers, r2)); @@ -252795,7 +252938,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = this.symbolInstances.get(t5); n2.push(0 | Math.round(e2 * a2.anchorX + r2 * a2.anchorY)), i2.push(a2.featureIndex); } - return s2.sort((t5, e3) => n2[t5] - n2[e3] || i2[e3] - i2[t5]), s2; + return s2.sort(((t5, e3) => n2[t5] - n2[e3] || i2[e3] - i2[t5])), s2; } addToSortKeyRanges(t4, e2) { const r2 = this.sortKeyRanges[this.sortKeyRanges.length - 1]; @@ -252806,9 +252949,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.symbolInstanceIndexes = this.getSortedSymbolIndexes(t4), this.sortedAngle = t4, this.text.indexArray.clear(), this.icon.indexArray.clear(), this.featureSortOrder = []; for (const t5 of this.symbolInstanceIndexes) { const e2 = this.symbolInstances.get(t5); - this.featureSortOrder.push(e2.featureIndex), [e2.rightJustifiedTextSymbolIndex, e2.centerJustifiedTextSymbolIndex, e2.leftJustifiedTextSymbolIndex].forEach((t6, e3, r2) => { + this.featureSortOrder.push(e2.featureIndex), [e2.rightJustifiedTextSymbolIndex, e2.centerJustifiedTextSymbolIndex, e2.leftJustifiedTextSymbolIndex].forEach(((t6, e3, r2) => { t6 >= 0 && r2.indexOf(t6) === e3 && this.addIndicesForPlacedSymbol(this.text, t6); - }), e2.verticalPlacedTextSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.text, e2.verticalPlacedTextSymbolIndex), e2.placedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.placedIconSymbolIndex), e2.verticalPlacedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.verticalPlacedIconSymbolIndex); + })), e2.verticalPlacedTextSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.text, e2.verticalPlacedTextSymbolIndex), e2.placedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.placedIconSymbolIndex), e2.verticalPlacedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.verticalPlacedIconSymbolIndex); } this.text.indexBuffer && this.text.indexBuffer.updateData(this.text.indexArray), this.icon.indexBuffer && this.icon.indexBuffer.updateData(this.icon.indexArray); } @@ -252861,9 +253004,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } getValueAndResolveTokens(t4, e2, r2, n2) { const i2 = this.layout.get(t4).evaluate(e2, {}, r2, n2), s2 = this._unevaluatedLayout._values[t4]; - return s2.isDataDriven() || vn(s2.value) || !i2 ? i2 : function(t5, e3) { - return e3.replace(/{([^{}]+)}/g, (e4, r3) => t5 && r3 in t5 ? String(t5[r3]) : ""); - }(e2.properties, i2); + return s2.isDataDriven() || vn(s2.value) || !i2 ? i2 : (function(t5, e3) { + return e3.replace(/{([^{}]+)}/g, ((e4, r3) => t5 && r3 in t5 ? String(t5[r3]) : "")); + })(e2.properties, i2); } createBucket(t4) { return new dc(t4); @@ -252951,9 +253094,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }); } trigger() { - this._triggered || (this._triggered = true, this._channel ? this._channel.port1.postMessage(true) : setTimeout(() => { + this._triggered || (this._triggered = true, this._channel ? this._channel.port1.postMessage(true) : setTimeout((() => { this._triggered = false, this._methodToThrottle(); - }, 0)); + }), 0)); } remove() { delete this._channel, this._methodToThrottle = () => { @@ -253027,9 +253170,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Dc { constructor(t4, e2, r2) { - if (!function(t5, e3, r3) { + if (!(function(t5, e3, r3) { return !(t5 < 0 || t5 > 25 || r3 < 0 || r3 >= Math.pow(2, t5) || e3 < 0 || e3 >= Math.pow(2, t5)); - }(t4, e2, r2)) throw new Error(`x=${e2}, y=${r2}, z=${t4} outside of bounds. 0<=x<${Math.pow(2, t4)}, 0<=y<${Math.pow(2, t4)} 0<=z<=25 `); + })(t4, e2, r2)) throw new Error(`x=${e2}, y=${r2}, z=${t4} outside of bounds. 0<=x<${Math.pow(2, t4)}, 0<=y<${Math.pow(2, t4)} 0<=z<=25 `); this.z = t4, this.x = e2, this.y = r2, this.key = Rc(0, t4, t4, e2, r2); } equals(t4) { @@ -253038,11 +253181,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ url(t4, e2, r2) { const n2 = (s2 = this.y, a2 = this.z, o2 = Lc(256 * (i2 = this.x), 256 * (s2 = Math.pow(2, a2) - s2 - 1), a2), l2 = Lc(256 * (i2 + 1), 256 * (s2 + 1), a2), o2[0] + "," + o2[1] + "," + l2[0] + "," + l2[1]); var i2, s2, a2, o2, l2; - const u2 = function(t5, e3, r3) { + const u2 = (function(t5, e3, r3) { let n3, i3 = ""; for (let s3 = t5; s3 > 0; s3--) n3 = 1 << s3 - 1, i3 += (e3 & n3 ? 1 : 0) + (r3 & n3 ? 2 : 0); return i3; - }(this.z, this.x, this.y); + })(this.z, this.x, this.y); return t4[(this.x + this.y) % t4.length].replace(/{prefix}/g, (this.x % 16).toString(16) + (this.y % 16).toString(16)).replace(/{z}/g, String(this.z)).replace(/{x}/g, String(this.x)).replace(/{y}/g, String("tms" === r2 ? Math.pow(2, this.z) - this.y - 1 : this.y)).replace(/{ratio}/g, e2 > 1 ? "@2x" : "").replace(/{quadkey}/g, u2).replace(/{bbox-epsg-3857}/g, n2); } isChildOf(t4) { @@ -253237,7 +253380,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } query(t4, e2, r2, n2) { this.loadVTLayers(); - const i2 = t4.params || {}, a2 = $a / t4.tileSize / t4.scale, o2 = zn(i2.filter), l2 = t4.queryGeometry, u2 = t4.queryPadding * a2, c2 = Kc(l2), h2 = this.grid.query(c2.minX - u2, c2.minY - u2, c2.maxX + u2, c2.maxY + u2), p2 = Kc(t4.cameraQueryGeometry), f2 = this.grid3D.query(p2.minX - u2, p2.minY - u2, p2.maxX + u2, p2.maxY + u2, (e3, r3, n3, i3) => function(t5, e4, r4, n4, i4) { + const i2 = t4.params || {}, a2 = $a / t4.tileSize / t4.scale, o2 = zn(i2.filter), l2 = t4.queryGeometry, u2 = t4.queryPadding * a2, c2 = Kc(l2), h2 = this.grid.query(c2.minX - u2, c2.minY - u2, c2.maxX + u2, c2.maxY + u2), p2 = Kc(t4.cameraQueryGeometry), f2 = this.grid3D.query(p2.minX - u2, p2.minY - u2, p2.maxX + u2, p2.maxY + u2, ((e3, r3, n3, i3) => (function(t5, e4, r4, n4, i4) { for (const s2 of t5) if (e4 <= s2.x && r4 <= s2.y && n4 >= s2.x && i4 >= s2.y) return true; const a3 = [new s(e4, r4), new s(e4, i4), new s(n4, i4), new s(n4, r4)]; if (t5.length > 2) { @@ -253245,7 +253388,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } for (let e5 = 0; e5 < t5.length - 1; e5++) if (Qa(t5[e5], t5[e5 + 1], a3)) return true; return false; - }(t4.cameraQueryGeometry, e3 - u2, r3 - u2, n3 + u2, i3 + u2)); + })(t4.cameraQueryGeometry, e3 - u2, r3 - u2, n3 + u2, i3 + u2))); for (const t5 of f2) h2.push(t5); h2.sort(Xc); const d2 = {}; @@ -253256,16 +253399,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ y2 = u3; const c3 = this.featureIndexArray.get(u3); let p3 = null; - this.loadMatchingFeature(d2, c3.bucketIndex, c3.sourceLayerIndex, c3.featureIndex, o2, i2.layers, i2.availableImages, e2, r2, n2, (e3, r3, n3) => (p3 || (p3 = Oa(e3)), r3.queryIntersectsFeature(l2, e3, n3, p3, this.z, t4.transform, a2, t4.pixelPosMatrix))); + this.loadMatchingFeature(d2, c3.bucketIndex, c3.sourceLayerIndex, c3.featureIndex, o2, i2.layers, i2.availableImages, e2, r2, n2, ((e3, r3, n3) => (p3 || (p3 = Oa(e3)), r3.queryIntersectsFeature(l2, e3, n3, p3, this.z, t4.transform, a2, t4.pixelPosMatrix)))); } return d2; } loadMatchingFeature(t4, e2, r2, n2, i2, s2, a2, o2, l2, u2, c2) { const h2 = this.bucketLayerIDs[e2]; - if (s2 && !function(t5, e3) { + if (s2 && !(function(t5, e3) { for (let r3 = 0; r3 < t5.length; r3++) if (e3.indexOf(t5[r3]) >= 0) return true; return false; - }(s2, h2)) return; + })(s2, h2)) return; const p2 = this.sourceLayerCoder.decode(r2), f2 = this.vtLayers[p2].feature(n2); if (i2.needGeometry) { const t5 = ja(f2, true); @@ -253306,10 +253449,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } function Gc(t4, e2, r2, n2, i2) { - return v(t4, (t5, s2) => { + return v(t4, ((t5, s2) => { const a2 = e2 instanceof Yi ? e2.get(s2) : null; return a2 && a2.evaluate ? a2.evaluate(r2, n2, i2) : a2; - }); + })); } function Kc(t4) { let e2 = 1 / 0, r2 = 1 / 0, n2 = -1 / 0, i2 = -1 / 0; @@ -253476,7 +253619,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } class hh { - constructor(t4 = [], e2 = (t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0) { + constructor(t4 = [], e2 = ((t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0)) { if (this.data = t4, this.length = this.data.length, this.compare = e2, this.length > 0) for (let t5 = (this.length >> 1) - 1; t5 >= 0; t5--) this._down(t5); } push(t4) { @@ -253522,7 +253665,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const h2 = new hh([], fh); if (0 === u2) return new s(n2, i2); for (let e3 = n2; e3 < a2; e3 += u2) for (let r3 = i2; r3 < o2; r3 += u2) h2.push(new dh(e3 + c2, r3 + c2, c2, t4)); - let p2 = function(t5) { + let p2 = (function(t5) { let e3 = 0, r3 = 0, n3 = 0; const i3 = t5[0]; for (let t6 = 0, s2 = i3.length, a3 = s2 - 1; t6 < s2; a3 = t6++) { @@ -253530,7 +253673,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r3 += (s3.x + o3.x) * l3, n3 += (s3.y + o3.y) * l3, e3 += 3 * l3; } return new dh(r3 / e3, n3 / e3, 0, t5); - }(t4), f2 = h2.length; + })(t4), f2 = h2.length; for (; h2.length; ) { const n3 = h2.pop(); (n3.d > p2.d || !p2.d) && (p2 = n3, r2 && console.log("found best %d after %d probes", Math.round(1e4 * n3.d) / 1e4, f2)), n3.max - p2.d <= e2 || (c2 = n3.h / 2, h2.push(new dh(n3.p.x - c2, n3.p.y - c2, c2, t4)), h2.push(new dh(n3.p.x + c2, n3.p.y - c2, c2, t4)), h2.push(new dh(n3.p.x - c2, n3.p.y + c2, c2, t4)), h2.push(new dh(n3.p.x + c2, n3.p.y + c2, c2, t4)), f2 += 4); @@ -253541,7 +253684,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return e2.max - t4.max; } function dh(t4, e2, r2, n2) { - this.p = new s(t4, e2), this.h = r2, this.d = function(t5, e3) { + this.p = new s(t4, e2), this.h = r2, this.d = (function(t5, e3) { let r3 = false, n3 = 1 / 0; for (let i2 = 0; i2 < e3.length; i2++) { const s2 = e3[i2]; @@ -253551,13 +253694,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return (r3 ? 1 : -1) * Math.sqrt(n3); - }(this.p, n2), this.max = this.d + this.h * Math.SQRT2; + })(this.p, n2), this.max = this.d + this.h * Math.SQRT2; } var yh; t.aq = void 0, (yh = t.aq || (t.aq = {}))[yh.center = 1] = "center", yh[yh.left = 2] = "left", yh[yh.right = 3] = "right", yh[yh.top = 4] = "top", yh[yh.bottom = 5] = "bottom", yh[yh["top-left"] = 6] = "top-left", yh[yh["top-right"] = 7] = "top-right", yh[yh["bottom-left"] = 8] = "bottom-left", yh[yh["bottom-right"] = 9] = "bottom-right"; const mh = 7, gh = Number.POSITIVE_INFINITY; function xh(t4, e2) { - return e2[1] !== gh ? function(t5, e3, r2) { + return e2[1] !== gh ? (function(t5, e3, r2) { let n2 = 0, i2 = 0; switch (e3 = Math.abs(e3), r2 = Math.abs(r2), t5) { case "top-right": @@ -253582,7 +253725,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ n2 = e3; } return [n2, i2]; - }(t4, e2[0], e2[1]) : function(t5, e3) { + })(t4, e2[0], e2[1]) : (function(t5, e3) { let r2 = 0, n2 = 0; e3 < 0 && (e3 = 0); const i2 = e3 / Math.SQRT2; @@ -253617,7 +253760,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r2 = -e3; } return [r2, n2]; - }(t4, e2[0]); + })(t4, e2[0]); } function vh(t4, e2, r2) { var n2; @@ -253625,7 +253768,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (s2) { const t5 = s2.values, e3 = []; for (let r3 = 0; r3 < t5.length; r3 += 2) { - const n3 = e3[r3] = t5[r3], i3 = t5[r3 + 1].map((t6) => t6 * iu); + const n3 = e3[r3] = t5[r3], i3 = t5[r3 + 1].map(((t6) => t6 * iu)); n3.startsWith("top") ? i3[1] -= mh : n3.startsWith("bottom") && (i3[1] += mh), e3[r3 + 1] = i3; } return new Qt(e3); @@ -253633,7 +253776,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = i2.get("text-variable-anchor"); if (a2) { let n3; - n3 = void 0 !== t4._unevaluatedLayout.getValue("text-radial-offset") ? [i2.get("text-radial-offset").evaluate(e2, {}, r2) * iu, gh] : i2.get("text-offset").evaluate(e2, {}, r2).map((t5) => t5 * iu); + n3 = void 0 !== t4._unevaluatedLayout.getValue("text-radial-offset") ? [i2.get("text-radial-offset").evaluate(e2, {}, r2) * iu, gh] : i2.get("text-offset").evaluate(e2, {}, r2).map(((t5) => t5 * iu)); const s3 = []; for (const t5 of a2) s3.push(t5, xh(t5, n3)); return new Qt(s3); @@ -253656,14 +253799,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ function wh(e2, r2, n2, i2, s2, a2, o2, l2, u2, c2, h2) { let p2 = a2.textMaxSize.evaluate(r2, {}); void 0 === p2 && (p2 = o2); - const f2 = e2.layers[0].layout, d2 = f2.get("icon-offset").evaluate(r2, {}, h2), y2 = Ah(n2.horizontal), m2 = o2 / 24, g2 = e2.tilePixelRatio * m2, x2 = e2.tilePixelRatio * p2 / 24, v2 = e2.tilePixelRatio * l2, b2 = e2.tilePixelRatio * f2.get("symbol-spacing"), w2 = f2.get("text-padding") * e2.tilePixelRatio, _2 = function(t4, e3, r3, n3 = 1) { + const f2 = e2.layers[0].layout, d2 = f2.get("icon-offset").evaluate(r2, {}, h2), y2 = Ah(n2.horizontal), m2 = o2 / 24, g2 = e2.tilePixelRatio * m2, x2 = e2.tilePixelRatio * p2 / 24, v2 = e2.tilePixelRatio * l2, b2 = e2.tilePixelRatio * f2.get("symbol-spacing"), w2 = f2.get("text-padding") * e2.tilePixelRatio, _2 = (function(t4, e3, r3, n3 = 1) { const i3 = t4.get("icon-padding").evaluate(e3, {}, r3), s3 = i3 && i3.values; return [s3[0] * n3, s3[1] * n3, s3[2] * n3, s3[3] * n3]; - }(f2, r2, h2, e2.tilePixelRatio), S2 = f2.get("text-max-angle") / 180 * Math.PI, k2 = "viewport" !== f2.get("text-rotation-alignment") && "point" !== f2.get("symbol-placement"), M2 = "map" === f2.get("icon-rotation-alignment") && "point" !== f2.get("symbol-placement"), I2 = f2.get("symbol-placement"), z2 = b2 / 2, P2 = f2.get("icon-text-fit"); + })(f2, r2, h2, e2.tilePixelRatio), S2 = f2.get("text-max-angle") / 180 * Math.PI, k2 = "viewport" !== f2.get("text-rotation-alignment") && "point" !== f2.get("symbol-placement"), M2 = "map" === f2.get("icon-rotation-alignment") && "point" !== f2.get("symbol-placement"), I2 = f2.get("symbol-placement"), z2 = b2 / 2, P2 = f2.get("icon-text-fit"); let C3; i2 && "none" !== P2 && (e2.allowVerticalPlacement && n2.vertical && (C3 = ec(i2, n2.vertical, P2, f2.get("icon-text-fit-padding"), d2, m2)), y2 && (i2 = ec(i2, y2, P2, f2.get("icon-text-fit-padding"), d2, m2))); const B3 = (l3, p3) => { - p3.x < 0 || p3.x >= $a || p3.y < 0 || p3.y >= $a || function(e3, r3, n3, i3, s3, a3, o3, l4, u3, c3, h3, p4, f3, d3, y3, m3, g3, x3, v3, b3, w3, _3, S3, k3, M3) { + p3.x < 0 || p3.x >= $a || p3.y < 0 || p3.y >= $a || (function(e3, r3, n3, i3, s3, a3, o3, l4, u3, c3, h3, p4, f3, d3, y3, m3, g3, x3, v3, b3, w3, _3, S3, k3, M3) { const I3 = e3.addToLineVertexArray(r3, n3); let z3, P3, C4, B4, V2 = 0, E3 = 0, F2 = 0, T2 = 0, $2 = -1, L2 = -1; const D3 = {}; @@ -253697,16 +253840,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ H2 = Y2(z3, H2), H2 = Y2(C4, H2), H2 = Y2(P3, H2), H2 = Y2(B4, H2); const J2 = H2 > -1 ? 1 : 0; J2 && (H2 *= M3 / iu), e3.glyphOffsetArray.length >= dc.MAX_GLYPHS && A2("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), void 0 !== w3.sortKey && e3.addToSortKeyRanges(e3.symbolInstances.length, w3.sortKey); - const W2 = vh(l4, w3, k3), [Q2, tt2] = function(e4, r4) { + const W2 = vh(l4, w3, k3), [Q2, tt2] = (function(e4, r4) { const n4 = e4.length, i4 = null == r4 ? void 0 : r4.values; if ((null == i4 ? void 0 : i4.length) > 0) for (let r5 = 0; r5 < i4.length; r5 += 2) { const n5 = i4[r5 + 1]; e4.emplaceBack(t.aq[i4[r5]], n5[0], n5[1]); } return [n4, e4.length]; - }(e3.textAnchorOffsets, W2); + })(e3.textAnchorOffsets, W2); e3.symbolInstances.emplaceBack(r3.x, r3.y, D3.right >= 0 ? D3.right : -1, D3.center >= 0 ? D3.center : -1, D3.left >= 0 ? D3.left : -1, D3.vertical || -1, $2, L2, O2, R2, U2, q2, N2, Z2, G2, K3, X2, c3, F2, T2, V2, E3, J2, 0, f3, H2, Q2, tt2); - }(e2, p3, l3, n2, i2, s2, C3, e2.layers[0], e2.collisionBoxArray, r2.index, r2.sourceLayerIndex, e2.index, g2, [w2, w2, w2, w2], k2, u2, v2, _2, M2, d2, r2, a2, c2, h2, o2); + })(e2, p3, l3, n2, i2, s2, C3, e2.layers[0], e2.collisionBoxArray, r2.index, r2.sourceLayerIndex, e2.index, g2, [w2, w2, w2, w2], k2, u2, v2, _2, M2, d2, r2, a2, c2, h2, o2); }; if ("line" === I2) for (const t4 of Hc(r2.geometry, 0, 0, $a, $a)) { const r3 = rh(t4, b2, S2, n2.vertical || y2, i2, 24, x2, e2.overscaling, $a); @@ -253725,7 +253868,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ else if ("Point" === r2.type) for (const t4 of r2.geometry) for (const e3 of t4) B3([e3], new Yc(e3.x, e3.y, 0)); } function _h(t4, e2, r2, n2, i2, a2, o2, l2, u2, c2, h2, p2, f2, d2, y2) { - const m2 = function(t5, e3, r3, n3, i3, a3, o3, l3) { + const m2 = (function(t5, e3, r3, n3, i3, a3, o3, l3) { const u3 = n3.layout.get("text-rotate").evaluate(a3, {}) * Math.PI / 180, c3 = []; for (const t6 of e3.positionedLines) for (const n4 of t6.positionedGlyphs) { if (!n4.rect) continue; @@ -253752,7 +253895,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ c3.push({ tl: k2, tr: M2, bl: I2, br: z2, tex: a4, writingMode: e3.writingMode, glyphOffset: g3, sectionIndex: n4.sectionIndex, isSDF: p3, pixelOffsetTL: P2, pixelOffsetBR: C3, minFontScaleX: 0, minFontScaleY: 0 }); } return c3; - }(0, r2, l2, i2, a2, o2, n2, t4.allowVerticalPlacement), g2 = t4.textSizeData; + })(0, r2, l2, i2, a2, o2, n2, t4.allowVerticalPlacement), g2 = t4.textSizeData; let x2 = null; "source" === g2.kind ? (x2 = [nc * i2.layout.get("text-size").evaluate(o2, {})], x2[0] > ic && A2(`${t4.layerIds[0]}: Value for "text-size" is >= ${rc}. Reduce your "text-size".`)) : "composite" === g2.kind && (x2 = [nc * d2.compositeTextSizes[0].evaluate(o2, {}, y2), nc * d2.compositeTextSizes[1].evaluate(o2, {}, y2)], (x2[0] > ic || x2[1] > ic) && A2(`${t4.layerIds[0]}: Value for "text-size" is >= ${rc}. Reduce your "text-size".`)), t4.addSymbols(t4.text, m2, x2, l2, a2, o2, c2, e2, u2.lineStartIndex, u2.lineLength, f2, y2); for (const e3 of h2) p2[e3] = t4.text.placedSymbolArray.length - 1; @@ -253875,7 +254018,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (const e2 in t.bg) performance.clearMarks(t.bg[e2]); }, getPerformanceMetrics() { performance.measure($h, t.bg.create, t.bg.load), performance.measure(Lh, t.bg.create, t.bg.fullLoad); - const e2 = performance.getEntriesByName($h)[0].duration, r2 = performance.getEntriesByName(Lh)[0].duration, n2 = Fh.length, i2 = 1 / (Fh.reduce((t4, e3) => t4 + e3, 0) / n2 / 1e3), s2 = Fh.filter((t4) => t4 > Th).reduce((t4, e3) => t4 + (e3 - Th) / Th, 0); + const e2 = performance.getEntriesByName($h)[0].duration, r2 = performance.getEntriesByName(Lh)[0].duration, n2 = Fh.length, i2 = 1 / (Fh.reduce(((t4, e3) => t4 + e3), 0) / n2 / 1e3), s2 = Fh.filter(((t4) => t4 > Th)).reduce(((t4, e3) => t4 + (e3 - Th) / Th), 0); return { loadTime: e2, fullLoadTime: r2, fps: i2, percentDroppedFrames: s2 / (n2 + s2) * 100, totalFrames: n2 }; } }; t.$ = class extends ps { @@ -253887,26 +254030,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return M; }, t.D = Ji, t.E = Z, t.F = class { constructor(t4, e2) { - this.target = t4, this.mapId = e2, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Ic(() => this.process()), this.subscription = function(t5, e3, r2, n2) { + this.target = t4, this.mapId = e2, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Ic((() => this.process())), this.subscription = (function(t5, e3, r2, n2) { return t5.addEventListener(e3, r2, false), { unsubscribe: () => { t5.removeEventListener(e3, r2, false); } }; - }(this.target, "message", (t5) => this.receive(t5)), this.globalScope = k(self) ? t4 : window; + })(this.target, "message", ((t5) => this.receive(t5))), this.globalScope = k(self) ? t4 : window; } registerMessageHandler(t4, e2) { this.messageHandlers[t4] = e2; } sendAsync(t4, e2) { - return new Promise((r2, n2) => { + return new Promise(((r2, n2) => { const i2 = Math.round(1e18 * Math.random()).toString(36).substring(0, 10); - this.resolveRejects[i2] = { resolve: r2, reject: n2 }, e2 && e2.signal.addEventListener("abort", () => { + this.resolveRejects[i2] = { resolve: r2, reject: n2 }, e2 && e2.signal.addEventListener("abort", (() => { delete this.resolveRejects[i2]; const e3 = { id: i2, type: "", origin: location.origin, targetMapId: t4.targetMapId, sourceMapId: this.mapId }; this.target.postMessage(e3); - }, { once: true }); + }), { once: true }); const s2 = [], a2 = Object.assign(Object.assign({}, t4), { id: i2, sourceMapId: this.mapId, origin: location.origin, data: ki(t4.data, s2) }); this.target.postMessage(a2, { transfer: s2 }); - }); + })); } receive(t4) { const e2 = t4.data, r2 = e2.id; @@ -253926,7 +254069,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ delete this.tasks[t4], this.taskQueue.length > 0 && this.invoker.trigger(), e2 && this.processTask(t4, e2); } processTask(t4, r2) { - return e(this, void 0, void 0, function* () { + return e(this, void 0, void 0, (function* () { if ("" === r2.type) { const e3 = this.resolveRejects[t4]; if (delete this.resolveRejects[t4], !e3) return; @@ -253941,7 +254084,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (e3) { this.completeTask(t4, e3); } - }); + })); } completeTask(t4, e2, r2) { const n2 = []; @@ -253973,7 +254116,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return Math.abs(r2 - x2) <= ao * Math.max(1, Math.abs(r2), Math.abs(x2)) && Math.abs(n2 - v2) <= ao * Math.max(1, Math.abs(n2), Math.abs(v2)) && Math.abs(i2 - b2) <= ao * Math.max(1, Math.abs(i2), Math.abs(b2)) && Math.abs(s2 - w2) <= ao * Math.max(1, Math.abs(s2), Math.abs(w2)) && Math.abs(a2 - _2) <= ao * Math.max(1, Math.abs(a2), Math.abs(_2)) && Math.abs(o2 - A3) <= ao * Math.max(1, Math.abs(o2), Math.abs(A3)) && Math.abs(l2 - S2) <= ao * Math.max(1, Math.abs(l2), Math.abs(S2)) && Math.abs(u2 - k2) <= ao * Math.max(1, Math.abs(u2), Math.abs(k2)) && Math.abs(c2 - M2) <= ao * Math.max(1, Math.abs(c2), Math.abs(M2)) && Math.abs(h2 - I2) <= ao * Math.max(1, Math.abs(h2), Math.abs(I2)) && Math.abs(p2 - z2) <= ao * Math.max(1, Math.abs(p2), Math.abs(z2)) && Math.abs(f2 - P2) <= ao * Math.max(1, Math.abs(f2), Math.abs(P2)) && Math.abs(d2 - C3) <= ao * Math.max(1, Math.abs(d2), Math.abs(C3)) && Math.abs(y2 - B3) <= ao * Math.max(1, Math.abs(y2), Math.abs(B3)) && Math.abs(m2 - V2) <= ao * Math.max(1, Math.abs(m2), Math.abs(V2)) && Math.abs(g2 - E3) <= ao * Math.max(1, Math.abs(g2), Math.abs(E3)); }, t.a0 = oa, t.a1 = Dc, t.a2 = it, t.a3 = (t4) => { const e2 = window.document.createElement("video"); - return e2.muted = true, new Promise((r2) => { + return e2.muted = true, new Promise(((r2) => { e2.onloadstart = () => { r2(e2); }; @@ -253981,7 +254124,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t5 = window.document.createElement("source"); j(r3) || (e2.crossOrigin = "Anonymous"), t5.src = r3, e2.appendChild(t5); } - }); + })); }, t.a4 = function() { return x++; }, t.a5 = Fs, t.a6 = dc, t.a7 = zn, t.a8 = ja, t.a9 = Nc, t.aA = function(t4) { @@ -254013,15 +254156,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (!H(t4.version, e2.version)) return [{ command: "setStyle", args: [e2] }]; H(t4.center, e2.center) || r2.push({ command: "setCenter", args: [e2.center] }), H(t4.zoom, e2.zoom) || r2.push({ command: "setZoom", args: [e2.zoom] }), H(t4.bearing, e2.bearing) || r2.push({ command: "setBearing", args: [e2.bearing] }), H(t4.pitch, e2.pitch) || r2.push({ command: "setPitch", args: [e2.pitch] }), H(t4.sprite, e2.sprite) || r2.push({ command: "setSprite", args: [e2.sprite] }), H(t4.glyphs, e2.glyphs) || r2.push({ command: "setGlyphs", args: [e2.glyphs] }), H(t4.transition, e2.transition) || r2.push({ command: "setTransition", args: [e2.transition] }), H(t4.light, e2.light) || r2.push({ command: "setLight", args: [e2.light] }), H(t4.terrain, e2.terrain) || r2.push({ command: "setTerrain", args: [e2.terrain] }), H(t4.sky, e2.sky) || r2.push({ command: "setSky", args: [e2.sky] }), H(t4.projection, e2.projection) || r2.push({ command: "setProjection", args: [e2.projection] }); const n2 = {}, i2 = []; - !function(t5, e3, r3, n3) { + !(function(t5, e3, r3, n3) { let i3; for (i3 in e3 = e3 || {}, t5 = t5 || {}) Object.prototype.hasOwnProperty.call(t5, i3) && (Object.prototype.hasOwnProperty.call(e3, i3) || W(i3, r3, n3)); for (i3 in e3) Object.prototype.hasOwnProperty.call(e3, i3) && (Object.prototype.hasOwnProperty.call(t5, i3) ? H(t5[i3], e3[i3]) || ("geojson" === t5[i3].type && "geojson" === e3[i3].type && tt(t5, e3, i3) ? Y(r3, { command: "setGeoJSONSourceData", args: [i3, e3[i3].data] }) : Q(i3, e3, r3, n3)) : J(i3, e3, r3)); - }(t4.sources, e2.sources, i2, n2); + })(t4.sources, e2.sources, i2, n2); const s2 = []; - t4.layers && t4.layers.forEach((t5) => { + t4.layers && t4.layers.forEach(((t5) => { "source" in t5 && n2[t5.source] ? r2.push({ command: "removeLayer", args: [t5.id] }) : s2.push(t5); - }), r2 = r2.concat(i2), function(t5, e3, r3) { + })), r2 = r2.concat(i2), (function(t5, e3, r3) { e3 = e3 || []; const n3 = (t5 = t5 || []).map(rt), i3 = e3.map(rt), s3 = t5.reduce(nt, {}), a2 = e3.reduce(nt, {}), o2 = n3.slice(), l2 = /* @__PURE__ */ Object.create(null); let u2, c2, h2, p2, f2; @@ -254031,7 +254174,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (f2 in et(c2.layout, h2.layout, r3, u2, null, "setLayoutProperty"), et(c2.paint, h2.paint, r3, u2, null, "setPaintProperty"), H(c2.filter, h2.filter) || Y(r3, { command: "setFilter", args: [u2, h2.filter] }), H(c2.minzoom, h2.minzoom) && H(c2.maxzoom, h2.maxzoom) || Y(r3, { command: "setLayerZoomRange", args: [u2, h2.minzoom, h2.maxzoom] }), c2) Object.prototype.hasOwnProperty.call(c2, f2) && "layout" !== f2 && "paint" !== f2 && "filter" !== f2 && "metadata" !== f2 && "minzoom" !== f2 && "maxzoom" !== f2 && (0 === f2.indexOf("paint.") ? et(c2[f2], h2[f2], r3, u2, f2.slice(6), "setPaintProperty") : H(c2[f2], h2[f2]) || Y(r3, { command: "setLayerProperty", args: [u2, f2, h2[f2]] })); for (f2 in h2) Object.prototype.hasOwnProperty.call(h2, f2) && !Object.prototype.hasOwnProperty.call(c2, f2) && "layout" !== f2 && "paint" !== f2 && "filter" !== f2 && "metadata" !== f2 && "minzoom" !== f2 && "maxzoom" !== f2 && (0 === f2.indexOf("paint.") ? et(c2[f2], h2[f2], r3, u2, f2.slice(6), "setPaintProperty") : H(c2[f2], h2[f2]) || Y(r3, { command: "setLayerProperty", args: [u2, f2, h2[f2]] })); } else Y(r3, { command: "removeLayer", args: [u2] }), p2 = o2[o2.lastIndexOf(u2) + 1], Y(r3, { command: "addLayer", args: [h2, p2] }); - }(s2, e2.layers, r2); + })(s2, e2.layers, r2); } catch (t5) { console.warn("Unable to compute style diff:", t5), r2 = [{ command: "setStyle", args: [e2] }]; } @@ -254096,10 +254239,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4[0] === e2[0] && t4[1] === e2[1] && t4[2] === e2[2] && t4[3] === e2[3] && t4[4] === e2[4] && t4[5] === e2[5] && t4[6] === e2[6] && t4[7] === e2[7] && t4[8] === e2[8] && t4[9] === e2[9] && t4[10] === e2[10] && t4[11] === e2[11] && t4[12] === e2[12] && t4[13] === e2[13] && t4[14] === e2[14] && t4[15] === e2[15]; }, t.aa = function(t4) { const e2 = {}; - if (t4.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, (t5, r2, n2, i2) => { + if (t4.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((t5, r2, n2, i2) => { const s2 = n2 || i2; return e2[r2] = !s2 || s2.toLowerCase(), ""; - }), e2["max-age"]) { + })), e2["max-age"]) { const t5 = parseInt(e2["max-age"], 10); isNaN(t5) ? delete e2["max-age"] : e2["max-age"] = t5; } @@ -254208,7 +254351,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const s3 = y2.toString(), u3 = n2.get("text-letter-spacing").evaluate(i3, {}, e2.canonical) * iu, f3 = Ci(s3) ? u3 : 0, m3 = n2.get("text-anchor").evaluate(i3, {}, e2.canonical), x3 = vh(r2, i3, e2.canonical); if (!x3) { const t4 = n2.get("text-radial-offset").evaluate(i3, {}, e2.canonical); - g2 = t4 ? xh(m3, [t4 * iu, gh]) : n2.get("text-offset").evaluate(i3, {}, e2.canonical).map((t5) => t5 * iu); + g2 = t4 ? xh(m3, [t4 * iu, gh]) : n2.get("text-offset").evaluate(i3, {}, e2.canonical).map(((t5) => t5 * iu)); } let v3 = o2 ? "center" : n2.get("text-justify").evaluate(i3, {}, e2.canonical); const b2 = "point" === n2.get("symbol-placement") ? n2.get("text-max-width").evaluate(i3, {}, e2.canonical) * iu : 1 / 0, w2 = () => { @@ -254250,19 +254393,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return 0 === t4.length && (performance.measure(this._marks.measure, this._marks.start, this._marks.end), t4 = performance.getEntriesByName(this._marks.measure), performance.clearMarks(this._marks.start), performance.clearMarks(this._marks.end), performance.clearMeasures(this._marks.measure)), t4; } }, t.bw = function(t4, r2, n2, i2, s2) { - return e(this, void 0, void 0, function* () { + return e(this, void 0, void 0, (function* () { if (p()) try { return yield P(t4, r2, n2, i2, s2); } catch (t5) { } - return function(t5, e2, r3, n3, i3) { + return (function(t5, e2, r3, n3, i3) { const s3 = t5.width, a2 = t5.height; C2 && B2 || (C2 = new OffscreenCanvas(s3, a2), B2 = C2.getContext("2d", { willReadFrequently: true })), C2.width = s3, C2.height = a2, B2.drawImage(t5, 0, 0, s3, a2); const o2 = B2.getImageData(e2, r3, n3, i3); return B2.clearRect(0, 0, s3, a2), o2.data; - }(t4, r2, n2, i2, s2); - }); - }, t.bx = Uc, t.by = r, t.bz = n, t.c = E2, t.d = (t4) => e(void 0, void 0, void 0, function* () { + })(t4, r2, n2, i2, s2); + })); + }, t.bx = Uc, t.by = r, t.bz = n, t.c = E2, t.d = (t4) => e(void 0, void 0, void 0, (function* () { if (0 === t4.byteLength) return createImageBitmap(new ImageData(1, 1)); const e2 = new Blob([new Uint8Array(t4)], { type: "image/png" }); try { @@ -254270,22 +254413,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t5) { throw new Error(`Could not load image because of ${t5.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`); } - }), t.e = g, t.f = (t4) => new Promise((e2, r2) => { + })), t.e = g, t.f = (t4) => new Promise(((e2, r2) => { const n2 = new Image(); n2.onload = () => { - e2(n2), URL.revokeObjectURL(n2.src), n2.onload = null, window.requestAnimationFrame(() => { + e2(n2), URL.revokeObjectURL(n2.src), n2.onload = null, window.requestAnimationFrame((() => { n2.src = z; - }); + })); }, n2.onerror = () => r2(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")); const i2 = new Blob([new Uint8Array(t4)], { type: "image/png" }); n2.src = t4.byteLength ? URL.createObjectURL(i2) : z; - }), t.g = T, t.h = (t4, e2) => O(g(t4, { type: "json" }), e2), t.i = k, t.j = N, t.k = q, t.l = (t4, e2) => O(g(t4, { type: "arrayBuffer" }), e2), t.m = O, t.n = function(t4) { + })), t.g = T, t.h = (t4, e2) => O(g(t4, { type: "json" }), e2), t.i = k, t.j = N, t.k = q, t.l = (t4, e2) => O(g(t4, { type: "arrayBuffer" }), e2), t.m = O, t.n = function(t4) { return new Iu(t4).readFields(Pu, []); }, t.o = _o, t.p = Eu, t.q = rs, t.r = di, t.s = j, t.t = xi, t.u = fi, t.v = G, t.w = A2, t.x = function([t4, e2, r2]) { return e2 += 90, e2 *= Math.PI / 180, r2 *= Math.PI / 180, { x: t4 * Math.cos(e2) * Math.sin(r2), y: t4 * Math.sin(e2) * Math.sin(r2), z: t4 * Math.cos(r2) }; }, t.y = Ce, t.z = Ui; - }); - define2("worker", ["./shared"], function(e) { + })); + define2("worker", ["./shared"], (function(e) { "use strict"; class t { constructor(e2) { @@ -254304,7 +254447,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.familiesBySource = {}; const i2 = e.bk(Object.values(this._layerConfigs), this.keyCache); for (const e2 of i2) { - const t5 = e2.map((e3) => this._layers[e3.id]), o3 = t5[0]; + const t5 = e2.map(((e3) => this._layers[e3.id])), o3 = t5[0]; if ("none" === o3.visibility) continue; const i3 = o3.source || ""; let s2 = this.familiesBySource[i3]; @@ -254346,7 +254489,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.tileID = new e.S(t4.tileID.overscaledZ, t4.tileID.wrap, t4.tileID.canonical.z, t4.tileID.canonical.x, t4.tileID.canonical.y), this.uid = t4.uid, this.zoom = t4.zoom, this.pixelRatio = t4.pixelRatio, this.tileSize = t4.tileSize, this.source = t4.source, this.overscaling = this.tileID.overscaleFactor(), this.showCollisionBoxes = t4.showCollisionBoxes, this.collectResourceTiming = !!t4.collectResourceTiming, this.returnDependencies = !!t4.returnDependencies, this.promoteId = t4.promoteId, this.inFlightDependencies = []; } parse(t4, i2, r2, n2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.status = "parsing", this.data = t4, this.collisionBoxArray = new e.a5(); const a2 = new e.bm(Object.keys(t4.layers).sort()), l2 = new e.bn(this.tileID, this.promoteId); l2.bucketLayerIDs = []; @@ -254362,11 +254505,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } for (const t5 of h2[o2]) { const o3 = t5[0]; - o3.source !== this.source && e.w(`layer.source = ${o3.source} does not equal this.source = ${this.source}`), o3.minzoom && this.zoom < Math.floor(o3.minzoom) || o3.maxzoom && this.zoom >= o3.maxzoom || "none" !== o3.visibility && (s(t5, this.zoom, r2), (c2[o3.id] = o3.createBucket({ index: l2.bucketLayerIDs.length, layers: t5, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: n3, sourceID: this.source })).populate(d3, u2, this.tileID.canonical), l2.bucketLayerIDs.push(t5.map((e2) => e2.id))); + o3.source !== this.source && e.w(`layer.source = ${o3.source} does not equal this.source = ${this.source}`), o3.minzoom && this.zoom < Math.floor(o3.minzoom) || o3.maxzoom && this.zoom >= o3.maxzoom || "none" !== o3.visibility && (s(t5, this.zoom, r2), (c2[o3.id] = o3.createBucket({ index: l2.bucketLayerIDs.length, layers: t5, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: n3, sourceID: this.source })).populate(d3, u2, this.tileID.canonical), l2.bucketLayerIDs.push(t5.map(((e2) => e2.id)))); } } - const d2 = e.aF(u2.glyphDependencies, (e2) => Object.keys(e2).map(Number)); - this.inFlightDependencies.forEach((e2) => null == e2 ? void 0 : e2.abort()), this.inFlightDependencies = []; + const d2 = e.aF(u2.glyphDependencies, ((e2) => Object.keys(e2).map(Number))); + this.inFlightDependencies.forEach(((e2) => null == e2 ? void 0 : e2.abort())), this.inFlightDependencies = []; let f2 = Promise.resolve({}); if (Object.keys(d2).length) { const e2 = new AbortController(); @@ -254389,8 +254532,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const o2 = c2[t5]; o2 instanceof e.a6 ? (s(o2.layers, this.zoom, r2), e.bp({ bucket: o2, glyphMap: v2, glyphPositions: b2.positions, imageMap: w2, imagePositions: S2.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : o2.hasPattern && (o2 instanceof e.bq || o2 instanceof e.br || o2 instanceof e.bs) && (s(o2.layers, this.zoom, r2), o2.addFeatures(u2, this.tileID.canonical, S2.patternPositions)); } - return this.status = "done", { buckets: Object.values(c2).filter((e2) => !e2.isEmpty()), featureIndex: l2, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: b2.image, imageAtlas: S2, glyphMap: this.returnDependencies ? v2 : null, iconMap: this.returnDependencies ? w2 : null, glyphPositions: this.returnDependencies ? b2.positions : null }; - }); + return this.status = "done", { buckets: Object.values(c2).filter(((e2) => !e2.isEmpty())), featureIndex: l2, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: b2.image, imageAtlas: S2, glyphMap: this.returnDependencies ? v2 : null, iconMap: this.returnDependencies ? w2 : null, glyphPositions: this.returnDependencies ? b2.positions : null }; + })); } } function s(t4, o2, i2) { @@ -254402,7 +254545,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.actor = e2, this.layerIndex = t4, this.availableImages = o2, this.fetching = {}, this.loading = {}, this.loaded = {}; } loadVectorTile(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const i2 = yield e.l(t4.request, o2); try { return { vectorTile: new e.bt.VectorTile(new e.bu(i2.data)), rawData: i2.data, cacheControl: i2.cacheControl, expires: i2.expires }; @@ -254411,10 +254554,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ let s2 = `Unable to parse the tile at ${t4.request.url}, `; throw s2 += 31 === o3[0] && 139 === o3[1] ? "please make sure the data is not gzipped and that you have configured the relevant header in the server" : `got error: ${e2.message}`, new Error(s2); } - }); + })); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o2 = t4.uid, s2 = !!(t4 && t4.request && t4.request.collectResourceTiming) && new e.bv(t4.request), r2 = new i(t4); this.loading[o2] = r2; const n2 = new AbortController(); @@ -254441,10 +254584,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (e2) { throw delete this.loading[o2], r2.status = "done", this.loaded[o2] = r2, e2; } - }); + })); } reloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o2 = t4.uid; if (!this.loaded || !this.loaded[o2]) throw new Error("Should not be trying to reload a tile that was never loaded or has been removed"); const i2 = this.loaded[o2]; @@ -254458,18 +254601,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return s2; } if ("done" === i2.status && i2.vectorTile) return i2.parse(i2.vectorTile, this.layerIndex, this.availableImages, this.actor); - }); + })); } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = this.loading, o2 = t4.uid; e2 && e2[o2] && e2[o2].abort && (e2[o2].abort.abort(), delete e2[o2]); - }); + })); } removeTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.loaded && this.loaded[t4.uid] && delete this.loaded[t4.uid]; - }); + })); } } class n { @@ -254477,10 +254620,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.loaded = {}; } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const { uid: o2, encoding: i2, rawImageData: s2, redFactor: r2, greenFactor: n2, blueFactor: a2, baseShift: l2 } = t4, c2 = s2.width + 2, u2 = s2.height + 2, h2 = e.b(s2) ? new e.R({ width: c2, height: u2 }, yield e.bw(s2, -1, -1, c2, u2)) : s2, d2 = new e.bx(o2, h2, i2, r2, n2, a2, l2); return this.loaded = this.loaded || {}, this.loaded[o2] = d2, d2; - }); + })); } removeTile(e2) { const t4 = this.loaded, o2 = e2.uid; @@ -254500,7 +254643,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } o2 + i2 >= 0 != !!t4 && e2.reverse(); } - var c = e.by(function e2(t4, o2) { + var c = e.by((function e2(t4, o2) { var i2, s2 = t4 && t4.type; if ("FeatureCollection" === s2) for (i2 = 0; i2 < t4.features.length; i2++) e2(t4.features[i2], o2); else if ("GeometryCollection" === s2) for (i2 = 0; i2 < t4.geometries.length; i2++) e2(t4.geometries[i2], o2); @@ -254508,7 +254651,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ else if ("Polygon" === s2) a(t4.coordinates, o2); else if ("MultiPolygon" === s2) for (i2 = 0; i2 < t4.coordinates.length; i2++) a(t4.coordinates[i2], o2); return t4; - }); + })); const u = e.bt.VectorTileFeature.prototype.toGeoJSON; var h = { exports: {} }, d = e.bz, f = e.bt.VectorTileFeature, g = p; function p(e2, t4) { @@ -254538,9 +254681,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ var y = e.bA, v = g; function w(e2) { var t4 = new y(); - return function(e3, t5) { + return (function(e3, t5) { for (var o2 in e3.layers) t5.writeMessage(3, x, e3.layers[o2]); - }(e2, t4), t4.finish(); + })(e2, t4), t4.finish(); } function x(e2, t4) { var o2; @@ -255006,36 +255149,36 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (i2 > 0 && t4.size < (s2 ? n2 : i2)) return void (o2.numPoints += t4.length / 3); const a2 = []; for (let e3 = 0; e3 < t4.length; e3 += 3) (0 === i2 || t4[e3 + 2] > n2) && (o2.numSimplified++, a2.push(t4[e3], t4[e3 + 1])), o2.numPoints++; - s2 && function(e3, t5) { + s2 && (function(e3, t5) { let o3 = 0; for (let t6 = 0, i3 = e3.length, s3 = i3 - 2; t6 < i3; s3 = t6, t6 += 2) o3 += (e3[t6] - e3[s3]) * (e3[t6 + 1] + e3[s3 + 1]); if (o3 > 0 === t5) for (let t6 = 0, o4 = e3.length; t6 < o4 / 2; t6 += 2) { const i3 = e3[t6], s3 = e3[t6 + 1]; e3[t6] = e3[o4 - 2 - t6], e3[t6 + 1] = e3[o4 - 1 - t6], e3[o4 - 2 - t6] = i3, e3[o4 - 1 - t6] = s3; } - }(a2, r2), e2.push(a2); + })(a2, r2), e2.push(a2); } const he = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: false, promoteId: null, generateId: false, debug: 0 }; class de { constructor(e2, t4) { - const o2 = (t4 = this.options = function(e3, t5) { + const o2 = (t4 = this.options = (function(e3, t5) { for (const o3 in t5) e3[o3] = t5[o3]; return e3; - }(Object.create(he), t4)).debug; + })(Object.create(he), t4)).debug; if (o2 && console.time("preprocess data"), t4.maxZoom < 0 || t4.maxZoom > 24) throw new Error("maxZoom should be in the 0-24 range"); if (t4.promoteId && t4.generateId) throw new Error("promoteId and generateId cannot be used together."); - let i2 = function(e3, t5) { + let i2 = (function(e3, t5) { const o3 = []; if ("FeatureCollection" === e3.type) for (let i3 = 0; i3 < e3.features.length; i3++) Y(o3, e3.features[i3], t5, i3); else Y(o3, "Feature" === e3.type ? e3 : { geometry: e3 }, t5); return o3; - }(e2, t4); - this.tiles = {}, this.tileCoords = [], o2 && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", t4.indexMaxZoom, t4.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), i2 = function(e3, t5) { + })(e2, t4); + this.tiles = {}, this.tileCoords = [], o2 && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", t4.indexMaxZoom, t4.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), i2 = (function(e3, t5) { const o3 = t5.buffer / t5.extent; let i3 = e3; const s2 = U(e3, 1, -1 - o3, o3, 0, -1, 2, t5), r2 = U(e3, 1, 1 - o3, 2 + o3, 0, -1, 2, t5); return (s2 || r2) && (i3 = U(e3, 1, -o3, 1 + o3, 0, -1, 2, t5) || [], s2 && (i3 = se(s2, 1).concat(i3)), r2 && (i3 = i3.concat(se(r2, -1)))), i3; - }(i2, t4), i2.length && this.splitTile(i2, 0, 0, 0), o2 && (i2.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats))); + })(i2, t4), i2.length && this.splitTile(i2, 0, 0, 0), o2 && (i2.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats))); } splitTile(e2, t4, o2, i2, s2, r2, n2) { const a2 = [e2, t4, o2, i2], l2 = this.options, c2 = l2.debug; @@ -255109,7 +255252,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(...arguments), this._dataUpdateable = /* @__PURE__ */ new Map(); } loadVectorTile(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o3 = t4.tileID.canonical; if (!this._geoJSONIndex) throw new Error("Unable to parse the data into a cluster or geojson"); const i2 = this._geoJSONIndex.getTile(o3.z, o3.x, o3.y); @@ -255147,16 +255290,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }(i2.features); let r2 = k(s2); return 0 === r2.byteOffset && r2.byteLength === r2.buffer.byteLength || (r2 = new Uint8Array(r2)), { vectorTile: s2, rawData: r2.buffer }; - }); + })); } loadData(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { var o2; null === (o2 = this._pendingRequest) || void 0 === o2 || o2.abort(); const i2 = !!(t4 && t4.request && t4.request.collectResourceTiming) && new e.bv(t4.request); this._pendingRequest = new AbortController(); try { - this._pendingData = this.loadAndProcessGeoJSON(t4, this._pendingRequest), this._geoJSONIndex = t4.cluster ? new z(function({ superclusterOptions: t5, clusterProperties: o4 }) { + this._pendingData = this.loadAndProcessGeoJSON(t4, this._pendingRequest), this._geoJSONIndex = t4.cluster ? new z((function({ superclusterOptions: t5, clusterProperties: o4 }) { if (!o4 || !t5) return t5; const i3 = {}, s3 = {}, r2 = { accumulated: null, zoom: 0 }, n2 = { properties: null }, a2 = Object.keys(o4); for (const t6 of a2) { @@ -255172,7 +255315,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ n2.properties = t6; for (const t7 of a2) r2.accumulated = e2[t7], e2[t7] = s3[t7].evaluate(r2, n2); }, t5; - }(t4)).load((yield this._pendingData).features) : (s2 = yield this._pendingData, new de(s2, t4.geojsonVtOptions)), this.loaded = {}; + })(t4)).load((yield this._pendingData).features) : (s2 = yield this._pendingData, new de(s2, t4.geojsonVtOptions)), this.loaded = {}; const o3 = {}; if (i2) { const e2 = i2.finish(); @@ -255184,32 +255327,32 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ throw t5; } var s2; - }); + })); } getData() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { return this._pendingData; - }); + })); } reloadTile(e2) { const t4 = this.loaded; return t4 && t4[e2.uid] ? super.reloadTile(e2) : this.loadTile(e2); } loadAndProcessGeoJSON(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { let i2 = yield this.loadGeoJSON(t4, o2); if (delete this._pendingRequest, "object" != typeof i2) throw new Error(`Input data given to '${t4.source}' is not a valid GeoJSON object.`); if (c(i2, true), t4.filter) { const o3 = e.bC(t4.filter, { type: "boolean", "property-type": "data-driven", overridable: false, transition: false }); - if ("error" === o3.result) throw new Error(o3.value.map((e2) => `${e2.key}: ${e2.message}`).join(", ")); - const s2 = i2.features.filter((e2) => o3.value.evaluate({ zoom: 0 }, e2)); + if ("error" === o3.result) throw new Error(o3.value.map(((e2) => `${e2.key}: ${e2.message}`)).join(", ")); + const s2 = i2.features.filter(((e2) => o3.value.evaluate({ zoom: 0 }, e2))); i2 = { type: "FeatureCollection", features: s2 }; } return i2; - }); + })); } loadGeoJSON(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const { promoteId: i2 } = t4; if (t4.request) { const s2 = yield e.h(t4.request, o2); @@ -255223,7 +255366,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } if (!t4.dataDiff) throw new Error(`Input data given to '${t4.source}' is not a valid GeoJSON object.`); if (!this._dataUpdateable) throw new Error(`Cannot update existing geojson data in ${t4.source}`); - return function(e2, t5, o3) { + return (function(e2, t5, o3) { var i3, s2, r2, n2; if (t5.removeAll && e2.clear(), t5.remove) for (const o4 of t5.remove) e2.delete(o4); if (t5.add) for (const i4 of t5.add) { @@ -255238,13 +255381,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ else if ((null === (r2 = o4.removeProperties) || void 0 === r2 ? void 0 : r2.length) > 0) for (const e3 of o4.removeProperties) Object.prototype.hasOwnProperty.call(t6.properties, e3) && delete t6.properties[e3]; if ((null === (n2 = o4.addOrUpdateProperties) || void 0 === n2 ? void 0 : n2.length) > 0) for (const { key: e3, value: i4 } of o4.addOrUpdateProperties) t6.properties[e3] = i4; } - }(this._dataUpdateable, t4.dataDiff, i2), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) }; - }); + })(this._dataUpdateable, t4.dataDiff, i2), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) }; + })); } removeSource(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._pendingRequest && this._pendingRequest.abort(); - }); + })); } getClusterExpansionZoom(e2) { return this._geoJSONIndex.getClusterExpansionZoom(e2.clusterId); @@ -255264,41 +255407,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }, this.self.addProtocol = e.bi, this.self.removeProtocol = e.bj, this.self.registerRTLTextPlugin = (t5) => { if (e.bD.isParsed()) throw new Error("RTL text plugin already registered."); e.bD.setMethods(t5); - }, this.actor.registerMessageHandler("LDT", (e2, t5) => this._getDEMWorkerSource(e2, t5.source).loadTile(t5)), this.actor.registerMessageHandler("RDT", (t5, o2) => e._(this, void 0, void 0, function* () { + }, this.actor.registerMessageHandler("LDT", ((e2, t5) => this._getDEMWorkerSource(e2, t5.source).loadTile(t5))), this.actor.registerMessageHandler("RDT", ((t5, o2) => e._(this, void 0, void 0, (function* () { this._getDEMWorkerSource(t5, o2.source).removeTile(o2); - })), this.actor.registerMessageHandler("GCEZ", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("GCEZ", ((t5, o2) => e._(this, void 0, void 0, (function* () { return this._getWorkerSource(t5, o2.type, o2.source).getClusterExpansionZoom(o2); - })), this.actor.registerMessageHandler("GCC", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("GCC", ((t5, o2) => e._(this, void 0, void 0, (function* () { return this._getWorkerSource(t5, o2.type, o2.source).getClusterChildren(o2); - })), this.actor.registerMessageHandler("GCL", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("GCL", ((t5, o2) => e._(this, void 0, void 0, (function* () { return this._getWorkerSource(t5, o2.type, o2.source).getClusterLeaves(o2); - })), this.actor.registerMessageHandler("LD", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadData(t5)), this.actor.registerMessageHandler("GD", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).getData()), this.actor.registerMessageHandler("LT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadTile(t5)), this.actor.registerMessageHandler("RT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).reloadTile(t5)), this.actor.registerMessageHandler("AT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).abortTile(t5)), this.actor.registerMessageHandler("RMT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).removeTile(t5)), this.actor.registerMessageHandler("RS", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("LD", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadData(t5))), this.actor.registerMessageHandler("GD", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).getData())), this.actor.registerMessageHandler("LT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadTile(t5))), this.actor.registerMessageHandler("RT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).reloadTile(t5))), this.actor.registerMessageHandler("AT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).abortTile(t5))), this.actor.registerMessageHandler("RMT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).removeTile(t5))), this.actor.registerMessageHandler("RS", ((t5, o2) => e._(this, void 0, void 0, (function* () { if (!this.workerSources[t5] || !this.workerSources[t5][o2.type] || !this.workerSources[t5][o2.type][o2.source]) return; const e2 = this.workerSources[t5][o2.type][o2.source]; delete this.workerSources[t5][o2.type][o2.source], void 0 !== e2.removeSource && e2.removeSource(o2); - })), this.actor.registerMessageHandler("RM", (t5) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("RM", ((t5) => e._(this, void 0, void 0, (function* () { delete this.layerIndexes[t5], delete this.availableImages[t5], delete this.workerSources[t5], delete this.demWorkerSources[t5]; - })), this.actor.registerMessageHandler("SR", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SR", ((t5, o2) => e._(this, void 0, void 0, (function* () { this.referrer = o2; - })), this.actor.registerMessageHandler("SRPS", (e2, t5) => this._syncRTLPluginState(e2, t5)), this.actor.registerMessageHandler("IS", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SRPS", ((e2, t5) => this._syncRTLPluginState(e2, t5))), this.actor.registerMessageHandler("IS", ((t5, o2) => e._(this, void 0, void 0, (function* () { this.self.importScripts(o2); - })), this.actor.registerMessageHandler("SI", (e2, t5) => this._setImages(e2, t5)), this.actor.registerMessageHandler("UL", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SI", ((e2, t5) => this._setImages(e2, t5))), this.actor.registerMessageHandler("UL", ((t5, o2) => e._(this, void 0, void 0, (function* () { this._getLayerIndex(t5).update(o2.layers, o2.removedIds); - })), this.actor.registerMessageHandler("SL", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SL", ((t5, o2) => e._(this, void 0, void 0, (function* () { this._getLayerIndex(t5).replace(o2); - })); + })))); } _setImages(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.availableImages[t4] = o2; for (const e2 in this.workerSources[t4]) { const i2 = this.workerSources[t4][e2]; for (const e3 in i2) i2[e3].availableImages = o2; } - }); + })); } _syncRTLPluginState(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { if (e.bD.isParsed()) return e.bD.getState(); if ("loading" !== o2.pluginStatus) return e.bD.setState(o2), o2; const t5 = o2.pluginURL; @@ -255307,7 +255450,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return e.bD.setState(o3), o3; } throw e.bD.setState({ pluginStatus: "error", pluginURL: "" }), new Error(`RTL Text Plugin failed to import scripts from ${t5}`); - }); + })); } _getAvailableImages(e2) { let t4 = this.availableImages[e2]; @@ -255338,17 +255481,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return e.i(self) && (self.worker = new ve(self)), ve; - }); - define2("index", ["exports", "./shared"], function(t, e) { + })); + define2("index", ["exports", "./shared"], (function(t, e) { "use strict"; var i = "4.7.1"; let a, s; - const o = { now: "undefined" != typeof performance && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (t4) => new Promise((i2, a2) => { + const o = { now: "undefined" != typeof performance && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (t4) => new Promise(((i2, a2) => { const s2 = requestAnimationFrame(i2); - t4.signal.addEventListener("abort", () => { + t4.signal.addEventListener("abort", (() => { cancelAnimationFrame(s2), a2(e.c()); - }); - }), getImageData(t4, e2 = 0) { + })); + })), getImageData(t4, e2 = 0) { return this.getImageCanvasContext(t4).getImageData(-e2, -e2, t4.width + 2 * e2, t4.height + 2 * e2); }, getImageCanvasContext(t4) { const e2 = window.document.createElement("canvas"), i2 = e2.getContext("2d", { willReadFrequently: true }); @@ -255389,9 +255532,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ t4.preventDefault(), t4.stopPropagation(), window.removeEventListener("click", r.suppressClickInternal, true); } static suppressClick() { - window.addEventListener("click", r.suppressClickInternal, true), window.setTimeout(() => { + window.addEventListener("click", r.suppressClickInternal, true), window.setTimeout((() => { window.removeEventListener("click", r.suppressClickInternal, true); - }, 0); + }), 0); } static getScale(t4) { const e2 = t4.getBoundingClientRect(); @@ -255437,7 +255580,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ l && d(l), l = null, u = true; }, h.onerror = () => { c = true, l = null; - }, h.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), function(t4) { + }, h.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), (function(t4) { let i2, a2, s2, o2; t4.resetRequestQueue = () => { i2 = [], a2 = 0, s2 = 0, o2 = {}; @@ -255446,16 +255589,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return o2[e2] = t5, e2; }, t4.removeThrottleControl = (t5) => { delete o2[t5], l2(); - }, t4.getImage = (t5, a3, s3 = true) => new Promise((o3, r3) => { + }, t4.getImage = (t5, a3, s3 = true) => new Promise(((o3, r3) => { n.supported && (t5.headers || (t5.headers = {}), t5.headers.accept = "image/webp,*/*"), e.e(t5, { type: "image" }), i2.push({ abortController: a3, requestParameters: t5, supportImageRefresh: s3, state: "queued", onError: (t6) => { r3(t6); }, onSuccess: (t6) => { o3(t6); } }), l2(); - }); - const r2 = (t5) => e._(this, void 0, void 0, function* () { + })); + const r2 = (t5) => e._(this, void 0, void 0, (function* () { t5.state = "running"; - const { requestParameters: i3, supportImageRefresh: s3, onError: o3, onSuccess: r3, abortController: n2 } = t5, c2 = false === s3 && !e.i(self) && !e.g(i3.url) && (!i3.headers || Object.keys(i3.headers).reduce((t6, e2) => t6 && "accept" === e2, true)); + const { requestParameters: i3, supportImageRefresh: s3, onError: o3, onSuccess: r3, abortController: n2 } = t5, c2 = false === s3 && !e.i(self) && !e.g(i3.url) && (!i3.headers || Object.keys(i3.headers).reduce(((t6, e2) => t6 && "accept" === e2), true)); a2++; const u2 = c2 ? h2(i3, n2) : e.m(i3, n2); try { @@ -255467,7 +255610,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ a2--, l2(); } var d2; - }), l2 = () => { + })), l2 = () => { const t5 = (() => { for (const t6 of Object.keys(o2)) if (o2[t6]()) return true; return false; @@ -255476,17 +255619,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t6 = i2.shift(); t6.abortController.signal.aborted ? e2-- : r2(t6); } - }, h2 = (t5, i3) => new Promise((a3, s3) => { + }, h2 = (t5, i3) => new Promise(((a3, s3) => { const o3 = new Image(), r3 = t5.url, n2 = t5.credentials; - n2 && "include" === n2 ? o3.crossOrigin = "use-credentials" : (n2 && "same-origin" === n2 || !e.s(r3)) && (o3.crossOrigin = "anonymous"), i3.signal.addEventListener("abort", () => { + n2 && "include" === n2 ? o3.crossOrigin = "use-credentials" : (n2 && "same-origin" === n2 || !e.s(r3)) && (o3.crossOrigin = "anonymous"), i3.signal.addEventListener("abort", (() => { o3.src = "", s3(e.c()); - }), o3.fetchPriority = "high", o3.onload = () => { + })), o3.fetchPriority = "high", o3.onload = () => { o3.onerror = o3.onload = null, a3({ data: o3 }); }, o3.onerror = () => { o3.onerror = o3.onload = null, i3.signal.aborted || s3(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")); }, o3.src = r3; - }); - }(_ || (_ = {})), _.resetRequestQueue(); + })); + })(_ || (_ = {})), _.resetRequestQueue(); class p { constructor(t4) { this._transformRequestFn = t4; @@ -255526,10 +255669,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = t4.split("?"); return a2[0] += `${e2}${i2}`, a2.join("?"); } - !function() { + !(function() { var t4 = new e.A(2); e.A != Float32Array && (t4[0] = 0, t4[1] = 0); - }(); + })(); class b { constructor(t4, e2, i2, a2) { this.context = t4, this.format = i2, this.texture = t4.gl.createTexture(), this.update(e2, a2); @@ -255617,11 +255760,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return Object.keys(this.images); } getImages(t4) { - return new Promise((e2, i2) => { + return new Promise(((e2, i2) => { let a2 = true; if (!this.isLoaded()) for (const e3 of t4) this.images[e3] || (a2 = false); this.isLoaded() || a2 ? e2(this._getImagesForIds(t4)) : this.requestors.push({ ids: t4, promiseResolve: e2 }); - }); + })); } _getImagesForIds(t4) { const i2 = {}; @@ -255703,16 +255846,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.url = t4; } getGlyphs(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = []; for (const i3 in t4) for (const a3 of t4[i3]) e2.push(this._getAndCacheGlyphsPromise(i3, a3)); const i2 = yield Promise.all(e2), a2 = {}; for (const { stack: t5, id: e3, glyph: s2 } of i2) a2[t5] || (a2[t5] = {}), a2[t5][e3] = s2 && { id: s2.id, bitmap: s2.bitmap.clone(), metrics: s2.metrics }; return a2; - }); + })); } _getAndCacheGlyphsPromise(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { let e2 = this.entries[t4]; e2 || (e2 = this.entries[t4] = { glyphs: {}, requests: {}, ranges: {} }); let a2 = e2.glyphs[i2]; @@ -255729,7 +255872,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const o2 = yield e2.requests[s2]; for (const t5 in o2) this._doesCharSupportLocalGlyph(+t5) || (e2.glyphs[+t5] = o2[+t5]); return e2.ranges[s2] = true, { stack: t4, id: i2, glyph: o2[i2] || null }; - }); + })); } _doesCharSupportLocalGlyph(t4) { return !!this.localIdeographFontFamily && new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}", "u").test(String.fromCodePoint(t4)); @@ -255748,13 +255891,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } C2.loadGlyphRange = function(t4, i2, a2, s2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o2 = 256 * i2, r2 = o2 + 255, n2 = s2.transformRequest(a2.replace("{fontstack}", t4).replace("{range}", `${o2}-${r2}`), "Glyphs"), l2 = yield e.l(n2, new AbortController()); if (!l2 || !l2.data) throw new Error(`Could not load glyph range. range: ${i2}, ${o2}-${r2}`); const h2 = {}; for (const t5 of e.n(l2.data)) h2[t5.id] = t5; return h2; - }); + })); }, C2.TinySDF = class { constructor({ fontSize: t4 = 24, buffer: e2 = 3, radius: i2 = 8, cutoff: a2 = 0.25, fontFamily: s2 = "sans-serif", fontWeight: o2 = "normal", fontStyle: r2 = "normal" } = {}) { this.buffer = e2, this.cutoff = a2, this.radius = i2; @@ -255941,9 +256084,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.active[t4] = true, this.workers.slice(); } release(t4) { - delete this.active[t4], 0 === this.numActive() && (this.workers.forEach((t5) => { + delete this.active[t4], 0 === this.numActive() && (this.workers.forEach(((t5) => { t5.terminate(); - }), this.workers = null); + })), this.workers = null); } isPreloaded() { return !!this.active[k]; @@ -255977,23 +256120,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.currentActor = (this.currentActor + 1) % this.actors.length, this.actors[this.currentActor]; } remove(t4 = true) { - this.actors.forEach((t5) => { + this.actors.forEach(((t5) => { t5.remove(); - }), this.actors = [], t4 && this.workerPool.release(this.id); + })), this.actors = [], t4 && this.workerPool.release(this.id); } registerMessageHandler(t4, e2) { for (const i2 of this.actors) i2.registerMessageHandler(t4, e2); } } function j() { - return O || (O = new U(N(), e.G), O.registerMessageHandler("GR", (t4, i2, a2) => e.m(i2, a2))), O; + return O || (O = new U(N(), e.G), O.registerMessageHandler("GR", ((t4, i2, a2) => e.m(i2, a2)))), O; } function Z(t4, i2) { const a2 = e.H(); return e.J(a2, a2, [1, 1, 0]), e.K(a2, a2, [0.5 * t4.width, 0.5 * t4.height, 1]), e.L(a2, a2, t4.calculatePosMatrix(i2.toUnwrapped())); } function q(t4, e2, i2, a2, s2, o2) { - const r2 = function(t5, e3, i3) { + const r2 = (function(t5, e3, i3) { if (t5) for (const a3 of t5) { const t6 = e3[a3]; if (t6 && t6.source === i3 && "fill-extrusion" === t6.type) return true; @@ -256003,11 +256146,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (a3.source === i3 && "fill-extrusion" === a3.type) return true; } return false; - }(s2 && s2.layers, e2, t4.id), n2 = o2.maxPitchScaleFactor(), l2 = t4.tilesIn(a2, n2, r2); + })(s2 && s2.layers, e2, t4.id), n2 = o2.maxPitchScaleFactor(), l2 = t4.tilesIn(a2, n2, r2); l2.sort(V); const h2 = []; for (const a3 of l2) h2.push({ wrappedTileID: a3.tileID.wrapped().key, queryResults: a3.tile.queryRenderedFeatures(e2, i2, t4._state, a3.queryGeometry, a3.cameraQueryGeometry, a3.scale, s2, o2, n2, Z(t4.transform, a3.tileID)) }); - const c2 = function(t5) { + const c2 = (function(t5) { const e3 = {}, i3 = {}; for (const a3 of t5) { const t6 = a3.queryResults, s3 = a3.wrappedTileID, o3 = i3[s3] = i3[s3] || {}; @@ -256017,11 +256160,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return e3; - }(h2); - for (const e3 in c2) c2[e3].forEach((e4) => { + })(h2); + for (const e3 in c2) c2[e3].forEach(((e4) => { const i3 = e4.feature, a3 = t4.getFeatureState(i3.layer["source-layer"], i3.id); i3.source = i3.layer.source, i3.layer["source-layer"] && (i3.sourceLayer = i3.layer["source-layer"]), i3.state = a3; - }); + })); return c2; } function V(t4, e2) { @@ -256029,12 +256172,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return i2.overscaledZ - a2.overscaledZ || i2.canonical.y - a2.canonical.y || i2.wrap - a2.wrap || i2.canonical.x - a2.canonical.x; } function G(t4, i2, a2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { let s2 = t4; if (t4.url ? s2 = (yield e.h(i2.transformRequest(t4.url, "Source"), a2)).data : yield o.frameAsync(a2), !s2) return null; const r2 = e.M(e.e(s2, t4), ["tiles", "minzoom", "maxzoom", "attribution", "bounds", "scheme", "tileSize", "encoding"]); - return "vector_layers" in s2 && s2.vector_layers && (r2.vectorLayerIds = s2.vector_layers.map((t5) => t5.id)), r2; - }); + return "vector_layers" in s2 && s2.vector_layers && (r2.vectorLayerIds = s2.vector_layers.map(((t5) => t5.id))), r2; + })); } class H { constructor(t4, e2) { @@ -256127,7 +256270,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.setEventedParent(s2); } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false, this.fire(new e.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController(); try { const t4 = yield G(this._options, this.map._requestManager, this._tileJSONRequest); @@ -256135,7 +256278,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t4) { this._tileJSONRequest = null, this.fire(new e.j(t4)); } - }); + })); } loaded() { return this._loaded; @@ -256150,14 +256293,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this._tileJSONRequest && this._tileJSONRequest.abort(), t4(), this.load(); } setTiles(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this._options.tiles = t4; - }), this; + })), this; } setUrl(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this.url = t4, this._options.url = t4; - }), this; + })), this; } onRemove() { this._tileJSONRequest && (this._tileJSONRequest.abort(), this._tileJSONRequest = null); @@ -256166,14 +256309,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return e.e({}, this._options); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = t4.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), i2 = { request: this.map._requestManager.transformRequest(e2, "Tile"), uid: t4.uid, tileID: t4.tileID, zoom: t4.tileID.overscaledZ, tileSize: this.tileSize * t4.tileID.overscaleFactor(), type: this.type, source: this.id, pixelRatio: this.map.getPixelRatio(), showCollisionBoxes: this.map.showCollisionBoxes, promoteId: this.promoteId }; i2.request.collectResourceTiming = this._collectResourceTiming; let a2 = "RT"; if (t4.actor && "expired" !== t4.state) { - if ("loading" === t4.state) return new Promise((e3, i3) => { + if ("loading" === t4.state) return new Promise(((e3, i3) => { t4.reloadPromise = { resolve: e3, reject: i3 }; - }); + })); } else t4.actor = this.dispatcher.getActor(), a2 = "LT"; t4.abortController = new AbortController(); try { @@ -256185,7 +256328,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (e3 && 404 !== e3.status) throw e3; this._afterTileLoadWorkerResponse(t4, null); } - }); + })); } _afterTileLoadWorkerResponse(t4, e2) { if (e2 && e2.resourceTiming && (t4.resourceTiming = e2.resourceTiming), e2 && this.map._refreshExpiredTiles && t4.setExpiryData(e2), t4.loadVectorData(e2, this.map.painter), t4.reloadPromise) { @@ -256194,14 +256337,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.abortController && (t4.abortController.abort(), delete t4.abortController), t4.actor && (yield t4.actor.sendAsync({ type: "AT", data: { uid: t4.uid, type: this.type, source: this.id } })); - }); + })); } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.unloadVectorData(), t4.actor && (yield t4.actor.sendAsync({ type: "RMT", data: { uid: t4.uid, type: this.type, source: this.id } })); - }); + })); } hasTransition() { return false; @@ -256212,7 +256355,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(), this.id = t4, this.dispatcher = a2, this.setEventedParent(s2), this.type = "raster", this.minzoom = 0, this.maxzoom = 22, this.roundZoom = true, this.scheme = "xyz", this.tileSize = 512, this._loaded = false, this._options = e.e({ type: "raster" }, i2), e.e(this, e.M(i2, ["url", "scheme", "tileSize"])); } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false, this.fire(new e.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController(); try { const t4 = yield G(this._options, this.map._requestManager, this._tileJSONRequest); @@ -256220,7 +256363,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t4) { this._tileJSONRequest = null, this.fire(new e.j(t4)); } - }); + })); } loaded() { return this._loaded; @@ -256235,14 +256378,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this._tileJSONRequest && (this._tileJSONRequest.abort(), this._tileJSONRequest = null), t4(), this.load(); } setTiles(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this._options.tiles = t4; - }), this; + })), this; } setUrl(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this.url = t4, this._options.url = t4; - }), this; + })), this; } serialize() { return e.e({}, this._options); @@ -256251,7 +256394,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return !this.tileBounds || this.tileBounds.contains(t4.canonical); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = t4.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme); t4.abortController = new AbortController(); try { @@ -256266,17 +256409,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (delete t4.abortController, t4.aborted) t4.state = "unloaded"; else if (e3) throw t4.state = "errored", e3; } - }); + })); } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.abortController && (t4.abortController.abort(), delete t4.abortController); - }); + })); } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.texture && this.map.painter.saveTileTexture(t4.texture); - }); + })); } hasTransition() { return false; @@ -256287,7 +256430,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(t4, i2, a2, s2), this.type = "raster-dem", this.maxzoom = 22, this._options = e.e({ type: "raster-dem" }, i2), this.encoding = i2.encoding || "mapbox", this.redFactor = i2.redFactor, this.greenFactor = i2.greenFactor, this.blueFactor = i2.blueFactor, this.baseShift = i2.baseShift; } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const i2 = t4.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), a2 = this.map._requestManager.transformRequest(i2, "Tile"); t4.neighboringTiles = this._getNeighboringTiles(t4.tileID), t4.abortController = new AbortController(); try { @@ -256307,10 +256450,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (delete t4.abortController, t4.aborted) t4.state = "unloaded"; else if (e2) throw t4.state = "errored", e2; } - }); + })); } readImageNow(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { if ("undefined" != typeof VideoFrame && e.V()) { const i2 = t4.width + 2, a2 = t4.height + 2; try { @@ -256319,16 +256462,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return o.getImageData(t4, 1); - }); + })); } _getNeighboringTiles(t4) { const i2 = t4.canonical, a2 = Math.pow(2, i2.z), s2 = (i2.x - 1 + a2) % a2, o2 = 0 === i2.x ? t4.wrap - 1 : t4.wrap, r2 = (i2.x + 1 + a2) % a2, n2 = i2.x + 1 === a2 ? t4.wrap + 1 : t4.wrap, l2 = {}; return l2[new e.S(t4.overscaledZ, o2, i2.z, s2, i2.y).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, n2, i2.z, r2, i2.y).key] = { backfilled: false }, i2.y > 0 && (l2[new e.S(t4.overscaledZ, o2, i2.z, s2, i2.y - 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, t4.wrap, i2.z, i2.x, i2.y - 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, n2, i2.z, r2, i2.y - 1).key] = { backfilled: false }), i2.y + 1 < a2 && (l2[new e.S(t4.overscaledZ, o2, i2.z, s2, i2.y + 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, t4.wrap, i2.z, i2.x, i2.y + 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, n2, i2.z, r2, i2.y + 1).key] = { backfilled: false }), l2; } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.demTexture && this.map.painter.saveTileTexture(t4.demTexture), t4.fbo && (t4.fbo.destroy(), delete t4.fbo), t4.dem && delete t4.dem, delete t4.neighboringTiles, t4.state = "unloaded", t4.actor && (yield t4.actor.sendAsync({ type: "RDT", data: { type: this.type, uid: t4.uid, source: this.id } })); - }); + })); } } class J extends e.E { @@ -256338,9 +256481,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ void 0 !== i2.clusterMaxZoom && this.maxzoom <= i2.clusterMaxZoom && e.w(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${i2.clusterMaxZoom}".`), this.workerOptions = e.e({ source: this.id, cluster: i2.cluster || false, geojsonVtOptions: { buffer: (void 0 !== i2.buffer ? i2.buffer : 128) * o2, tolerance: (void 0 !== i2.tolerance ? i2.tolerance : 0.375) * o2, extent: e.X, maxZoom: this.maxzoom, lineMetrics: i2.lineMetrics || false, generateId: i2.generateId || false }, superclusterOptions: { maxZoom: void 0 !== i2.clusterMaxZoom ? i2.clusterMaxZoom : this.maxzoom - 1, minPoints: Math.max(2, i2.clusterMinPoints || 2), extent: e.X, radius: (i2.clusterRadius || 50) * o2, log: false, generateId: i2.generateId || false }, clusterProperties: i2.clusterProperties, filter: i2.filter }, i2.workerOptions), "string" == typeof this.promoteId && (this.workerOptions.promoteId = this.promoteId); } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { yield this._updateWorkerData(); - }); + })); } onAdd(t4) { this.map = t4, this.load(); @@ -256352,10 +256495,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this._updateWorkerData(t4), this; } getData() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const t4 = e.e({ type: this.type }, this.workerOptions); return this.actor.sendAsync({ type: "GD", data: t4 }); - }); + })); } setClusterOptions(t4) { return this.workerOptions.cluster = t4.cluster, t4 && (void 0 !== t4.clusterRadius && (this.workerOptions.superclusterOptions.radius = t4.clusterRadius), void 0 !== t4.clusterMaxZoom && (this.workerOptions.superclusterOptions.maxZoom = t4.clusterMaxZoom)), this._updateWorkerData(), this; @@ -256370,7 +256513,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.actor.sendAsync({ type: "GCL", data: { type: this.type, source: this.id, clusterId: t4, limit: e2, offset: i2 } }); } _updateWorkerData(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const i2 = e.e({ type: this.type }, this.workerOptions); t4 ? i2.dataDiff = t4 : "string" == typeof this._data ? (i2.request = this.map._requestManager.transformRequest(o.resolveURL(this._data), "Source"), i2.request.collectResourceTiming = this._collectResourceTiming) : i2.data = JSON.stringify(this._data), this._pendingLoads++, this.fire(new e.k("dataloading", { dataType: "source" })); try { @@ -256384,30 +256527,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (this._pendingLoads--, this._removed) return void this.fire(new e.k("dataabort", { dataType: "source" })); this.fire(new e.j(t5)); } - }); + })); } loaded() { return 0 === this._pendingLoads; } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = t4.actor ? "RT" : "LT"; t4.actor = this.actor; const i2 = { type: this.type, uid: t4.uid, tileID: t4.tileID, zoom: t4.tileID.overscaledZ, maxZoom: this.maxzoom, tileSize: this.tileSize, source: this.id, pixelRatio: this.map.getPixelRatio(), showCollisionBoxes: this.map.showCollisionBoxes, promoteId: this.promoteId }; t4.abortController = new AbortController(); const a2 = yield this.actor.sendAsync({ type: e2, data: i2 }, t4.abortController); delete t4.abortController, t4.unloadVectorData(), t4.aborted || t4.loadVectorData(a2, this.map.painter, "RT" === e2); - }); + })); } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.abortController && (t4.abortController.abort(), delete t4.abortController), t4.aborted = true; - }); + })); } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.unloadVectorData(), yield this.actor.sendAsync({ type: "RMT", data: { uid: t4.uid, type: this.type, source: this.id } }); - }); + })); } onRemove() { this._removed = true, this.actor.sendAsync({ type: "RS", data: { type: this.type, source: this.id } }); @@ -256425,7 +256568,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(), this.id = t4, this.dispatcher = i2, this.coordinates = e2.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = false, this.setEventedParent(a2), this.options = e2; } load(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false, this.fire(new e.k("dataloading", { dataType: "source" })), this.url = this.options.url, this._request = new AbortController(); try { const e2 = yield _.getImage(this.map._requestManager.transformRequest(this.url, "Image"), this._request); @@ -256433,15 +256576,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t5) { this._request = null, this._loaded = true, this.fire(new e.j(t5)); } - }); + })); } loaded() { return this._loaded; } updateImage(t4) { - return t4.url ? (this._request && (this._request.abort(), this._request = null), this.options.url = t4.url, this.load(t4.coordinates).finally(() => { + return t4.url ? (this._request && (this._request.abort(), this._request = null), this.options.url = t4.url, this.load(t4.coordinates).finally((() => { this.texture = null; - }), this) : this; + })), this) : this; } _finishLoading() { this.map && (this.setCoordinates(this.coordinates), this.fire(new e.k("data", { dataType: "source", sourceDataType: "metadata" }))); @@ -256455,13 +256598,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ setCoordinates(t4) { this.coordinates = t4; const i2 = t4.map(e.Z.fromLngLat); - this.tileID = function(t5) { + this.tileID = (function(t5) { let i3 = 1 / 0, a3 = 1 / 0, s2 = -1 / 0, o2 = -1 / 0; for (const e2 of t5) i3 = Math.min(i3, e2.x), a3 = Math.min(a3, e2.y), s2 = Math.max(s2, e2.x), o2 = Math.max(o2, e2.y); const r2 = Math.max(s2 - i3, o2 - a3), n2 = Math.max(0, Math.floor(-Math.log(r2) / Math.LN2)), l2 = Math.pow(2, n2); return new e.a1(n2, Math.floor((i3 + s2) / 2 * l2), Math.floor((a3 + o2) / 2 * l2)); - }(i2), this.minzoom = this.maxzoom = this.tileID.z; - const a2 = i2.map((t5) => this.tileID.getTilePoint(t5)._round()); + })(i2), this.minzoom = this.maxzoom = this.tileID.z; + const a2 = i2.map(((t5) => this.tileID.getTilePoint(t5)._round())); return this._boundsArray = new e.$(), this._boundsArray.emplaceBack(a2[0].x, a2[0].y, 0, 0), this._boundsArray.emplaceBack(a2[1].x, a2[1].y, e.X, 0), this._boundsArray.emplaceBack(a2[3].x, a2[3].y, 0, e.X), this._boundsArray.emplaceBack(a2[2].x, a2[2].y, e.X, e.X), this.boundsBuffer && (this.boundsBuffer.destroy(), delete this.boundsBuffer), this.fire(new e.k("data", { dataType: "source", sourceDataType: "content" })), this; } prepare() { @@ -256476,9 +256619,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ a2 && this.fire(new e.k("data", { dataType: "source", sourceDataType: "idle", sourceId: this.id })); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.tileID && this.tileID.equals(t4.tileID.canonical) ? (this.tiles[String(t4.tileID.wrap)] = t4, t4.buckets = {}) : t4.state = "errored"; - }); + })); } serialize() { return { type: "image", url: this.options.url, coordinates: this.coordinates }; @@ -256492,7 +256635,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(t4, e2, i2, a2), this.roundZoom = true, this.type = "video", this.options = e2; } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false; const t4 = this.options; this.urls = []; @@ -256500,13 +256643,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ try { const t5 = yield e.a3(this.urls); if (this._loaded = true, !t5) return; - this.video = t5, this.video.loop = true, this.video.addEventListener("playing", () => { + this.video = t5, this.video.loop = true, this.video.addEventListener("playing", (() => { this.map.triggerRepaint(); - }), this.map && this.video.play(), this._finishLoading(); + })), this.map && this.video.play(), this._finishLoading(); } catch (t5) { this.fire(new e.j(t5)); } - }); + })); } pause() { this.video && this.video.pause(); @@ -256546,16 +256689,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class et extends Q { constructor(t4, i2, a2, s2) { - super(t4, i2, a2, s2), i2.coordinates ? Array.isArray(i2.coordinates) && 4 === i2.coordinates.length && !i2.coordinates.some((t5) => !Array.isArray(t5) || 2 !== t5.length || t5.some((t6) => "number" != typeof t6)) || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "coordinates"'))), i2.animate && "boolean" != typeof i2.animate && this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'optional "animate" property must be a boolean value'))), i2.canvas ? "string" == typeof i2.canvas || i2.canvas instanceof HTMLCanvasElement || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "canvas"'))), this.options = i2, this.animate = void 0 === i2.animate || i2.animate; + super(t4, i2, a2, s2), i2.coordinates ? Array.isArray(i2.coordinates) && 4 === i2.coordinates.length && !i2.coordinates.some(((t5) => !Array.isArray(t5) || 2 !== t5.length || t5.some(((t6) => "number" != typeof t6)))) || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "coordinates"'))), i2.animate && "boolean" != typeof i2.animate && this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'optional "animate" property must be a boolean value'))), i2.canvas ? "string" == typeof i2.canvas || i2.canvas instanceof HTMLCanvasElement || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "canvas"'))), this.options = i2, this.animate = void 0 === i2.animate || i2.animate; } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = true, this.canvas || (this.canvas = this.options.canvas instanceof HTMLCanvasElement ? this.options.canvas : document.getElementById(this.options.canvas)), this.width = this.canvas.width, this.height = this.canvas.height, this._hasInvalidDimensions() ? this.fire(new e.j(new Error("Canvas dimensions cannot be less than or equal to zero."))) : (this.play = function() { this._playing = true, this.map.triggerRepaint(); }, this.pause = function() { this._playing && (this.prepare(), this._playing = false); }, this._finishLoading()); - }); + })); } getCanvas() { return this.canvas; @@ -256614,9 +256757,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = j(); } _syncState(t4) { - return this.status = t4, this.dispatcher.broadcast("SRPS", { pluginStatus: t4, pluginURL: this.url }).catch((t5) => { + return this.status = t4, this.dispatcher.broadcast("SRPS", { pluginStatus: t4, pluginURL: this.url }).catch(((t5) => { throw this.status = "error", t5; - }); + })); } getRTLTextPluginStatus() { return this.status; @@ -256625,19 +256768,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.status = "unavailable", this.url = null; } setRTLTextPlugin(t4) { - return e._(this, arguments, void 0, function* (t5, e2 = false) { + return e._(this, arguments, void 0, (function* (t5, e2 = false) { if (this.url) throw new Error("setRTLTextPlugin cannot be called multiple times."); if (this.url = o.resolveURL(t5), !this.url) throw new Error(`requested url ${t5} is invalid`); if ("unavailable" === this.status) { if (!e2) return this._requestImport(); this.status = "deferred", this._syncState(this.status); } else if ("requested" === this.status) return this._requestImport(); - }); + })); } _requestImport() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { yield this._syncState("loading"), this.status = "loaded", this.fire(new e.k(st)); - }); + })); } lazyLoad() { "unavailable" === this.status ? this.status = "requested" : "deferred" === this.status && this._requestImport(); @@ -256663,18 +256806,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } loadVectorData(t4, i2, a2) { if (this.hasData() && this.unloadVectorData(), this.state = "loaded", t4) { - t4.featureIndex && (this.latestFeatureIndex = t4.featureIndex, t4.rawTileData ? (this.latestRawTileData = t4.rawTileData, this.latestFeatureIndex.rawTileData = t4.rawTileData) : this.latestRawTileData && (this.latestFeatureIndex.rawTileData = this.latestRawTileData)), this.collisionBoxArray = t4.collisionBoxArray, this.buckets = function(t5, e2) { + t4.featureIndex && (this.latestFeatureIndex = t4.featureIndex, t4.rawTileData ? (this.latestRawTileData = t4.rawTileData, this.latestFeatureIndex.rawTileData = t4.rawTileData) : this.latestRawTileData && (this.latestFeatureIndex.rawTileData = this.latestRawTileData)), this.collisionBoxArray = t4.collisionBoxArray, this.buckets = (function(t5, e2) { const i3 = {}; if (!e2) return i3; for (const a3 of t5) { - const t6 = a3.layerIds.map((t7) => e2.getLayer(t7)).filter(Boolean); + const t6 = a3.layerIds.map(((t7) => e2.getLayer(t7))).filter(Boolean); if (0 !== t6.length) { - a3.layers = t6, a3.stateDependentLayerIds && (a3.stateDependentLayers = a3.stateDependentLayerIds.map((e3) => t6.filter((t7) => t7.id === e3)[0])); + a3.layers = t6, a3.stateDependentLayerIds && (a3.stateDependentLayers = a3.stateDependentLayerIds.map(((e3) => t6.filter(((t7) => t7.id === e3))[0]))); for (const e3 of t6) i3[e3.id] = a3; } } return i3; - }(t4.buckets, i2.style), this.hasSymbolBuckets = false; + })(t4.buckets, i2.style), this.hasSymbolBuckets = false; for (const t5 in this.buckets) { const i3 = this.buckets[t5]; if (i3 instanceof e.a6) { @@ -256813,9 +256956,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = t4.wrapped().key; void 0 === this.data[a2] && (this.data[a2] = []); const s2 = { value: e2, timeout: void 0 }; - if (void 0 !== i2 && (s2.timeout = setTimeout(() => { + if (void 0 !== i2 && (s2.timeout = setTimeout((() => { this.remove(t4, s2); - }, i2)), this.data[a2].push(s2), this.order.push(a2), this.order.length > this.max) { + }), i2)), this.data[a2].push(s2), this.order.push(a2), this.order.length > this.max) { const t5 = this._getAndRemoveByKey(this.order[0]); t5 && this.onRemove(t5); } @@ -256915,15 +257058,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class ut extends e.E { constructor(t4, e2, i2) { - super(), this.id = t4, this.dispatcher = i2, this.on("data", (t5) => this._dataHandler(t5)), this.on("dataloading", () => { + super(), this.id = t4, this.dispatcher = i2, this.on("data", ((t5) => this._dataHandler(t5))), this.on("dataloading", (() => { this._sourceErrored = false; - }), this.on("error", () => { + })), this.on("error", (() => { this._sourceErrored = this._source.loaded(); - }), this._source = ((t5, e3, i3, a2) => { + })), this._source = ((t5, e3, i3, a2) => { const s2 = new (at(e3.type))(t5, e3, i3, a2); if (s2.id !== t5) throw new Error(`Expected Source id to be ${t5} instead of ${s2.id}`); return s2; - })(t4, e2, i2, this), this._tiles = {}, this._cache = new ht(0, (t5) => this._unloadTile(t5)), this._timers = {}, this._cacheTimers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new ct(), this._didEmitContent = false, this._updated = false; + })(t4, e2, i2, this), this._tiles = {}, this._cache = new ht(0, ((t5) => this._unloadTile(t5))), this._timers = {}, this._cacheTimers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new ct(), this._didEmitContent = false, this._updated = false; } onAdd(t4) { this.map = t4, this._maxTileCacheSize = t4 ? t4._maxTileCacheSize : null, this._maxTileCacheZoomLevels = t4 ? t4._maxTileCacheZoomLevels : null, this._source && this._source.onAdd && this._source.onAdd(t4); @@ -256955,13 +257098,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this._paused = false, this._shouldReloadOnResume = false, t4 && this.reload(), this.transform && this.update(this.transform, this.terrain); } _loadTile(t4, i2, a2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { try { yield this._source.loadTile(t4), this._tileLoaded(t4, i2, a2); } catch (i3) { t4.state = "errored", 404 !== i3.status ? this._source.fire(new e.j(i3, { tile: t4 })) : this.update(this.transform, this.terrain); } - }); + })); } _unloadTile(t4) { this._source.unloadTile && this._source.unloadTile(t4); @@ -256980,15 +257123,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } getIds() { - return Object.values(this._tiles).map((t4) => t4.tileID).sort(dt).map((t4) => t4.key); + return Object.values(this._tiles).map(((t4) => t4.tileID)).sort(dt).map(((t4) => t4.key)); } getRenderableIds(t4) { const i2 = []; for (const e2 in this._tiles) this._isIdRenderable(e2, t4) && i2.push(this._tiles[e2]); - return t4 ? i2.sort((t5, i3) => { + return t4 ? i2.sort(((t5, i3) => { const a2 = t5.tileID, s2 = i3.tileID, o2 = new e.P(a2.canonical.x, a2.canonical.y)._rotate(this.transform.angle), r2 = new e.P(s2.canonical.x, s2.canonical.y)._rotate(this.transform.angle); return a2.overscaledZ - s2.overscaledZ || r2.y - o2.y || r2.x - o2.x; - }).map((t5) => t5.tileID.key) : i2.map((t5) => t5.tileID).sort(dt).map((t5) => t5.key); + })).map(((t5) => t5.tileID.key)) : i2.map(((t5) => t5.tileID)).sort(dt).map(((t5) => t5.key)); } hasRenderableParent(t4) { const e2 = this.findLoadedParent(t4, 0); @@ -257005,10 +257148,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } _reloadTile(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = this._tiles[t4]; e2 && ("loading" !== e2.state && (e2.state = i2), yield this._loadTile(e2, t4, i2)); - }); + })); } _tileLoaded(t4, i2, a2) { t4.timeAdded = o.now(), "expired" === a2 && (t4.refreshedUponExpiration = true), this._setTileReloadTimer(i2, t4), "raster-dem" === this.getSource().type && t4.dem && this._backfillDEM(t4), this._state.initializeTileState(t4, this.map ? this.map.painter : null), t4.aborted || this._source.fire(new e.k("data", { dataType: "source", tile: t4, coord: t4.tileID })); @@ -257115,7 +257258,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ update(t4, i2) { if (!this._sourceLoaded || this._paused) return; let a2; - this.transform = t4, this.terrain = i2, this.updateCacheSize(t4), this.handleWrapJump(this.transform.center.lng), this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? a2 = t4.getVisibleUnwrappedCoordinates(this._source.tileID).map((t5) => new e.S(t5.canonical.z, t5.wrap, t5.canonical.z, t5.canonical.x, t5.canonical.y)) : (a2 = t4.coveringTiles({ tileSize: this.usedForTerrain ? this.tileSize : this._source.tileSize, minzoom: this._source.minzoom, maxzoom: this._source.maxzoom, roundZoom: !this.usedForTerrain && this._source.roundZoom, reparseOverscaled: this._source.reparseOverscaled, terrain: i2 }), this._source.hasTile && (a2 = a2.filter((t5) => this._source.hasTile(t5)))) : a2 = []; + this.transform = t4, this.terrain = i2, this.updateCacheSize(t4), this.handleWrapJump(this.transform.center.lng), this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? a2 = t4.getVisibleUnwrappedCoordinates(this._source.tileID).map(((t5) => new e.S(t5.canonical.z, t5.wrap, t5.canonical.z, t5.canonical.x, t5.canonical.y))) : (a2 = t4.coveringTiles({ tileSize: this.usedForTerrain ? this.tileSize : this._source.tileSize, minzoom: this._source.minzoom, maxzoom: this._source.maxzoom, roundZoom: !this.usedForTerrain && this._source.roundZoom, reparseOverscaled: this._source.reparseOverscaled, terrain: i2 }), this._source.hasTile && (a2 = a2.filter(((t5) => this._source.hasTile(t5))))) : a2 = []; const s2 = t4.coveringZoomLevel(this._source), o2 = Math.max(s2 - ut.maxOverzooming, this._source.minzoom), r2 = Math.max(s2 + ut.maxUnderzooming, this._source.minzoom); if (this.usedForTerrain) { const t5 = {}; @@ -257210,9 +257353,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ _setTileReloadTimer(t4, e2) { t4 in this._timers && (clearTimeout(this._timers[t4]), delete this._timers[t4]); const i2 = e2.getExpiryTimeout(); - i2 && (this._timers[t4] = setTimeout(() => { + i2 && (this._timers[t4] = setTimeout((() => { this._reloadTile(t4, "expired"), delete this._timers[t4]; - }, i2)); + }), i2)); } _removeTile(t4) { const e2 = this._tiles[t4]; @@ -257230,7 +257373,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ tilesIn(t4, i2, a2) { const s2 = [], o2 = this.transform; if (!o2) return s2; - const r2 = a2 ? o2.getCameraQueryGeometry(t4) : t4, n2 = t4.map((t5) => o2.pointCoordinate(t5, this.terrain)), l2 = r2.map((t5) => o2.pointCoordinate(t5, this.terrain)), h2 = this.getIds(); + const r2 = a2 ? o2.getCameraQueryGeometry(t4) : t4, n2 = t4.map(((t5) => o2.pointCoordinate(t5, this.terrain))), l2 = r2.map(((t5) => o2.pointCoordinate(t5, this.terrain))), h2 = this.getIds(); let c2 = 1 / 0, u2 = 1 / 0, d2 = -1 / 0, _2 = -1 / 0; for (const t5 of l2) c2 = Math.min(c2, t5.x), u2 = Math.min(u2, t5.y), d2 = Math.max(d2, t5.x), _2 = Math.max(_2, t5.y); for (let t5 = 0; t5 < h2.length; t5++) { @@ -257238,14 +257381,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (a3.holdingForFade()) continue; const r3 = a3.tileID, p2 = Math.pow(2, o2.zoom - a3.tileID.overscaledZ), m2 = i2 * a3.queryPadding * e.X / a3.tileSize / p2, f2 = [r3.getTilePoint(new e.Z(c2, u2)), r3.getTilePoint(new e.Z(d2, _2))]; if (f2[0].x - m2 < e.X && f2[0].y - m2 < e.X && f2[1].x + m2 >= 0 && f2[1].y + m2 >= 0) { - const t6 = n2.map((t7) => r3.getTilePoint(t7)), e2 = l2.map((t7) => r3.getTilePoint(t7)); + const t6 = n2.map(((t7) => r3.getTilePoint(t7))), e2 = l2.map(((t7) => r3.getTilePoint(t7))); s2.push({ tile: a3, tileID: r3, queryGeometry: t6, cameraQueryGeometry: e2, scale: p2 }); } } return s2; } getVisibleCoordinates(t4) { - const e2 = this.getRenderableIds(t4).map((t5) => this._tiles[t5].tileID); + const e2 = this.getRenderableIds(t4).map(((t5) => this._tiles[t5].tileID)); for (const t5 of e2) t5.posMatrix = this.transform.calculatePosMatrix(t5.toUnwrapped()); return e2; } @@ -257272,7 +257415,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } reloadTilesForDependencies(t4, e2) { for (const i2 in this._tiles) this._tiles[i2].hasDependency(t4, e2) && this._reloadTile(i2, "reloading"); - this._cache.filter((i2) => !i2.hasDependency(t4, e2)); + this._cache.filter(((i2) => !i2.hasDependency(t4, e2))); } } function dt(t4, e2) { @@ -257491,9 +257634,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ m2.push(h3.last); } else { if (o2 && !s2) { - const a4 = xt(t4.tileAnchorPoint.x, t4.tileAnchorPoint.y, r2, t4.getElevation).point, s3 = i2.lineStartIndex + i2.segment + 1, o3 = new e.P(t4.lineVertexArray.getx(s3), t4.lineVertexArray.gety(s3)), n3 = xt(o3.x, o3.y, r2, t4.getElevation), l3 = n3.signedDistanceFromCamera > 0 ? n3.point : function(t5, e2, i3, a5, s4, o4) { + const a4 = xt(t4.tileAnchorPoint.x, t4.tileAnchorPoint.y, r2, t4.getElevation).point, s3 = i2.lineStartIndex + i2.segment + 1, o3 = new e.P(t4.lineVertexArray.getx(s3), t4.lineVertexArray.gety(s3)), n3 = xt(o3.x, o3.y, r2, t4.getElevation), l3 = n3.signedDistanceFromCamera > 0 ? n3.point : (function(t5, e2, i3, a5, s4, o4) { return Pt(t5, e2, i3, 1, s4, o4); - }(t4.tileAnchorPoint, o3, a4, 0, r2, t4), h3 = It(i2.writingMode, a4, l3, c2); + })(t4.tileAnchorPoint, o3, a4, 0, r2, t4), h3 = It(i2.writingMode, a4, l3, c2); if (h3) return h3; } const a3 = Mt(d2 * l2.getoffsetX(i2.glyphStartIndex), _2, p2, s2, i2.segment, i2.lineStartIndex, i2.lineStartIndex + i2.lineLength, t4, u2); @@ -257513,9 +257656,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const o2 = new e.P(i2.lineVertexArray.getx(t4), i2.lineVertexArray.gety(t4)), r2 = St(o2.x, o2.y, i2); if (r2.signedDistanceFromCamera > 0) return s2.projections[t4] = r2.point, s2.anyProjectionOccluded = s2.anyProjectionOccluded || r2.isOccluded, r2.point; const n2 = t4 - a2.direction; - return function(t5, e2, i3, a3, s3) { + return (function(t5, e2, i3, a3, s3) { return Pt(t5, e2, i3, a3, void 0, s3); - }(0 === a2.distanceFromAnchor ? i2.tileAnchorPoint : new e.P(i2.lineVertexArray.getx(n2), i2.lineVertexArray.gety(n2)), o2, a2.previousVertex, a2.absOffsetX - a2.distanceFromAnchor + 1, i2); + })(0 === a2.distanceFromAnchor ? i2.tileAnchorPoint : new e.P(i2.lineVertexArray.getx(n2), i2.lineVertexArray.gety(n2)), o2, a2.previousVertex, a2.absOffsetX - a2.distanceFromAnchor + 1, i2); } function St(t4, e2, i2) { const a2 = t4 + i2.translation[0], s2 = e2 + i2.translation[1]; @@ -257594,7 +257737,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const u3 = 2.5 * i3; if (h2) { const t5 = this.projectPathToScreenSpace(l3, b2, h2); - l3 = t5.some((t6) => t6.signedDistanceFromCamera <= 0) ? [] : t5.map((t6) => t6.point); + l3 = t5.some(((t6) => t6.signedDistanceFromCamera <= 0)) ? [] : t5.map(((t6) => t6.point)); } let m3 = []; if (l3.length > 0) { @@ -257617,7 +257760,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return { circles: !c2 && T2 || !I2 || x2 < this.perspectiveRatioCutoff ? [] : g2, offscreen: E3, collisionDetected: T2 }; } projectPathToScreenSpace(t4, e2, i2) { - return t4.map((t5) => xt(t5.x, t5.y, i2, e2.getElevation)); + return t4.map(((t5) => xt(t5.x, t5.y, i2, e2.getElevation))); } queryRenderedSymbols(t4) { if (0 === t4.length || 0 === this.grid.keysLength() && 0 === this.ignoredGrid.keysLength()) return {}; @@ -257685,8 +257828,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (const { offsetX: t5, offsetY: i3 } of w2) T2.push(new e.P(p2.x + u2.x * t5 + d2.x * i3, p2.y + u2.y * t5 + d2.y * i3)); let I2 = false; if (o2) { - const t5 = T2.map((t6) => this.projectAndGetPerspectiveRatio(a2, t6.x, t6.y, s2, h2)); - I2 = t5.some((t6) => !t6.isOccluded), T2 = t5.map((t6) => t6.point); + const t5 = T2.map(((t6) => this.projectAndGetPerspectiveRatio(a2, t6.x, t6.y, s2, h2))); + I2 = t5.some(((t6) => !t6.isOccluded)), T2 = t5.map(((t6) => t6.point)); } else I2 = true; return { box: e.ao(T2), allPointsOccluded: !I2 }; } @@ -257803,10 +257946,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a4 = this.collisionIndex.placeCollisionBox(e2, x2, d2, l2, h2, I2, T2, r2, f2.predicate, z2); return a4 && a4.placeable && (this.markUsedOrientation(s2, i4, t5), this.placedOrientations[t5.crossTileID] = i4), a4; }; - o3(() => a3(q2, e.ah.horizontal), () => { + o3((() => a3(q2, e.ah.horizontal)), (() => { const i4 = p3.verticalTextBox; return s2.allowVerticalPlacement && t5.numVerticalGlyphVertices > 0 && i4 ? a3(i4, e.ah.vertical) : { box: null, offscreen: null }; - }), i3(L2 && L2.placeable); + })), i3(L2 && L2.placeable); } else { let _3 = e.aq[null === (D4 = null === (P3 = this.prevPlacement) || void 0 === P3 ? void 0 : P3.variableOffsets[t5.crossTileID]) || void 0 === D4 ? void 0 : D4.anchor]; const m3 = (i4, o4, p4) => { @@ -257824,10 +257967,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } return a2 && !w4 && (w4 = { box: this.collisionIndex.placeCollisionBox(q2, "always", d2, l2, h2, I2, T2, r2, f2.predicate, z2, new e.P(0, 0)).box, offscreen: false, placeable: false }), w4; }; - o3(() => m3(q2, p3.iconBox, e.ah.horizontal), () => { + o3((() => m3(q2, p3.iconBox, e.ah.horizontal)), (() => { const i4 = p3.verticalTextBox; return s2.allowVerticalPlacement && (!L2 || !L2.placeable) && t5.numVerticalGlyphVertices > 0 && i4 ? m3(i4, p3.verticalIconBox, e.ah.vertical) : { box: null, occluded: true, offscreen: null }; - }), L2 && (M2 = L2.placeable, R2 = L2.offscreen); + })), L2 && (M2 = L2.placeable, R2 = L2.offscreen); const g3 = i3(L2 && L2.placeable); if (!M2 && this.prevPlacement) { const e2 = this.prevPlacement.variableOffsets[t5.crossTileID]; @@ -257932,9 +258075,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const e2 = te(h3.text); m2(t4.text, o3, x2 ? ee : e2), m2(t4.text, r3, y2 ? ee : e2); const i4 = h3.text.isHidden(); - [s3.rightJustifiedTextSymbolIndex, s3.centerJustifiedTextSymbolIndex, s3.leftJustifiedTextSymbolIndex].forEach((e3) => { + [s3.rightJustifiedTextSymbolIndex, s3.centerJustifiedTextSymbolIndex, s3.leftJustifiedTextSymbolIndex].forEach(((e3) => { e3 >= 0 && (t4.text.placedSymbolArray.get(e3).hidden = i4 || x2 ? 1 : 0); - }), s3.verticalPlacedTextSymbolIndex >= 0 && (t4.text.placedSymbolArray.get(s3.verticalPlacedTextSymbolIndex).hidden = i4 || y2 ? 1 : 0); + })), s3.verticalPlacedTextSymbolIndex >= 0 && (t4.text.placedSymbolArray.get(s3.verticalPlacedTextSymbolIndex).hidden = i4 || y2 ? 1 : 0); const a3 = this.variableOffsets[s3.crossTileID]; a3 && this.markUsedJustification(t4, a3.anchor, s3, v2); const n3 = this.placedOrientations[s3.crossTileID]; @@ -258010,7 +258153,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return false; }, projectTileCoordinates(t4, e2, i2, a2) { throw new Error("Not implemented."); - }, translatePosition: (t4, e2, i2, a2) => function(t5, e3, i3, a3, s2 = false) { + }, translatePosition: (t4, e2, i2, a2) => (function(t5, e3, i3, a3, s2 = false) { if (!i3[0] && !i3[1]) return [0, 0]; const o2 = s2 ? "map" === a3 ? t5.angle : 0 : "viewport" === a3 ? -t5.angle : 0; if (o2) { @@ -258018,7 +258161,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i3 = [i3[0] * e4 - i3[1] * t6, i3[0] * t6 + i3[1] * e4]; } return [s2 ? i3[0] : Bt(e3, i3[0], t5.zoom), s2 ? i3[1] : Bt(e3, i3[1], t5.zoom)]; - }(t4, e2, i2, a2), getCircleRadiusCorrection: (t4) => 1 }; + })(t4, e2, i2, a2), getCircleRadiusCorrection: (t4) => 1 }; } class ae { constructor(t4) { @@ -258027,7 +258170,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ continuePlacement(t4, e2, i2, a2, s2) { const o2 = this._bucketParts; for (; this._currentTileIndex < t4.length; ) if (e2.getBucketParts(o2, a2, t4[this._currentTileIndex], this._sortAcrossTiles), this._currentTileIndex++, s2()) return true; - for (this._sortAcrossTiles && (this._sortAcrossTiles = false, o2.sort((t5, e3) => t5.sortKey - e3.sortKey)); this._currentPartIndex < o2.length; ) if (e2.placeLayerBucketPart(o2[this._currentPartIndex], this._seenCrossTileIDs, i2), this._currentPartIndex++, s2()) return true; + for (this._sortAcrossTiles && (this._sortAcrossTiles = false, o2.sort(((t5, e3) => t5.sortKey - e3.sortKey))); this._currentPartIndex < o2.length; ) if (e2.placeLayerBucketPart(o2[this._currentPartIndex], this._seenCrossTileIDs, i2), this._currentPartIndex++, s2()) return true; return false; } } @@ -258064,7 +258207,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ o2 ? o2.push(e2) : s2.set(a3, [e2]); } for (const [t5, i3] of s2) { - const a3 = { positions: i3.map((t6) => ({ x: Math.floor(t6.anchorX * oe), y: Math.floor(t6.anchorY * oe) })), crossTileIDs: i3.map((t6) => t6.crossTileID) }; + const a3 = { positions: i3.map(((t6) => ({ x: Math.floor(t6.anchorX * oe), y: Math.floor(t6.anchorY * oe) }))), crossTileIDs: i3.map(((t6) => t6.crossTileID)) }; if (a3.positions.length > 128) { const t6 = new e.av(a3.positions.length, 16, Uint16Array); for (const { x: e2, y: i4 } of a3.positions) t6.add(e2, i4); @@ -258104,7 +258247,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } getCrossTileIDsLists() { - return Object.values(this._symbolsByKey).map(({ crossTileIDs: t4 }) => t4); + return Object.values(this._symbolsByKey).map((({ crossTileIDs: t4 }) => t4)); } } class ne { @@ -258186,13 +258329,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } pruneUnusedLayers(t4) { const e2 = {}; - t4.forEach((t5) => { + t4.forEach(((t5) => { e2[t5] = true; - }); + })); for (const t5 in this.layerIndexes) e2[t5] || delete this.layerIndexes[t5]; } } - const ce = (t4, i2) => e.t(t4, i2 && i2.filter((t5) => "source.canvas" !== t5.identifier)), ue = e.aw(); + const ce = (t4, i2) => e.t(t4, i2 && i2.filter(((t5) => "source.canvas" !== t5.identifier))), ue = e.aw(); class de extends e.E { constructor(t4, i2 = {}) { super(), this._rtlPluginLoaded = () => { @@ -258200,7 +258343,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const e2 = this.sourceCaches[t5].getSource().type; "vector" !== e2 && "geojson" !== e2 || this.sourceCaches[t5].reload(); } - }, this.map = t4, this.dispatcher = new U(N(), t4._getMapId()), this.dispatcher.registerMessageHandler("GG", (t5, e2) => this.getGlyphs(t5, e2)), this.dispatcher.registerMessageHandler("GI", (t5, e2) => this.getImages(t5, e2)), this.imageManager = new T(), this.imageManager.setEventedParent(this), this.glyphManager = new C2(t4._requestManager, i2.localIdeographFontFamily), this.lineAtlas = new R(256, 512), this.crossTileSymbolIndex = new he(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new e.ax(), this._loaded = false, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", e.ay()), nt().on(st, this._rtlPluginLoaded), this.on("data", (t5) => { + }, this.map = t4, this.dispatcher = new U(N(), t4._getMapId()), this.dispatcher.registerMessageHandler("GG", ((t5, e2) => this.getGlyphs(t5, e2))), this.dispatcher.registerMessageHandler("GI", ((t5, e2) => this.getImages(t5, e2))), this.imageManager = new T(), this.imageManager.setEventedParent(this), this.glyphManager = new C2(t4._requestManager, i2.localIdeographFontFamily), this.lineAtlas = new R(256, 512), this.crossTileSymbolIndex = new he(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new e.ax(), this._loaded = false, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", e.ay()), nt().on(st, this._rtlPluginLoaded), this.on("data", ((t5) => { if ("source" !== t5.dataType || "metadata" !== t5.sourceDataType) return; const e2 = this.sourceCaches[t5.sourceId]; if (!e2) return; @@ -258209,24 +258352,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const e3 = this._layers[t6]; e3.source === i3.id && this._validateLayer(e3); } - }); + })); } loadURL(t4, i2 = {}, a2) { this.fire(new e.k("dataloading", { dataType: "style" })), i2.validate = "boolean" != typeof i2.validate || i2.validate; const s2 = this.map._requestManager.transformRequest(t4, "Style"); this._loadStyleRequest = new AbortController(); const o2 = this._loadStyleRequest; - e.h(s2, this._loadStyleRequest).then((t5) => { + e.h(s2, this._loadStyleRequest).then(((t5) => { this._loadStyleRequest = null, this._load(t5.data, i2, a2); - }).catch((t5) => { + })).catch(((t5) => { this._loadStyleRequest = null, t5 && !o2.signal.aborted && this.fire(new e.j(t5)); - }); + })); } loadJSON(t4, i2 = {}, a2) { - this.fire(new e.k("dataloading", { dataType: "style" })), this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then(() => { + this.fire(new e.k("dataloading", { dataType: "style" })), this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then((() => { this._frameRequest = null, i2.validate = false !== i2.validate, this._load(t4, i2, a2); - }).catch(() => { - }); + })).catch((() => { + })); } loadEmpty() { this.fire(new e.k("dataloading", { dataType: "style" })), this._load(ue, { validate: false }); @@ -258242,7 +258385,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } _createLayers() { const t4 = e.az(this.stylesheet.layers); - this.dispatcher.broadcast("SL", t4), this._order = t4.map((t5) => t5.id), this._layers = {}, this._serializedLayers = null; + this.dispatcher.broadcast("SL", t4), this._order = t4.map(((t5) => t5.id)), this._layers = {}, this._serializedLayers = null; for (const i2 of t4) { const t5 = e.aA(i2); t5.setEventedParent(this, { layer: { id: i2.id } }), this._layers[i2.id] = t5; @@ -258250,8 +258393,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } _loadSprite(t4, i2 = false, a2 = void 0) { let s2; - this.imageManager.setLoaded(false), this._spriteRequest = new AbortController(), function(t5, i3, a3, s3) { - return e._(this, void 0, void 0, function* () { + this.imageManager.setLoaded(false), this._spriteRequest = new AbortController(), (function(t5, i3, a3, s3) { + return e._(this, void 0, void 0, (function* () { const r2 = x(t5), n2 = a3 > 1 ? "@2x" : "", l2 = {}, h2 = {}; for (const { id: t6, url: a4 } of r2) { const o2 = i3.transformRequest(y(a4, n2, ".json"), "SpriteJSON"); @@ -258259,8 +258402,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const r3 = i3.transformRequest(y(a4, n2, ".png"), "SpriteImage"); h2[t6] = _.getImage(r3, s3); } - return yield Promise.all([...Object.values(l2), ...Object.values(h2)]), function(t6, i4) { - return e._(this, void 0, void 0, function* () { + return yield Promise.all([...Object.values(l2), ...Object.values(h2)]), (function(t6, i4) { + return e._(this, void 0, void 0, (function* () { const e2 = {}; for (const a4 in t6) { e2[a4] = {}; @@ -258271,24 +258414,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return e2; - }); - }(l2, h2); - }); - }(t4, this.map._requestManager, this.map.getPixelRatio(), this._spriteRequest).then((t5) => { + })); + })(l2, h2); + })); + })(t4, this.map._requestManager, this.map.getPixelRatio(), this._spriteRequest).then(((t5) => { if (this._spriteRequest = null, t5) for (const e2 in t5) { this._spritesImagesIds[e2] = []; - const a3 = this._spritesImagesIds[e2] ? this._spritesImagesIds[e2].filter((e3) => !(e3 in t5)) : []; + const a3 = this._spritesImagesIds[e2] ? this._spritesImagesIds[e2].filter(((e3) => !(e3 in t5))) : []; for (const t6 of a3) this.imageManager.removeImage(t6), this._changedImages[t6] = true; for (const a4 in t5[e2]) { const s3 = "default" === e2 ? a4 : `${e2}:${a4}`; this._spritesImagesIds[e2].push(s3), s3 in this.imageManager.images ? this.imageManager.updateImage(s3, t5[e2][a4], false) : this.imageManager.addImage(s3, t5[e2][a4]), i2 && (this._changedImages[s3] = true); } } - }).catch((t5) => { + })).catch(((t5) => { this._spriteRequest = null, s2 = t5, this.fire(new e.j(s2)); - }).finally(() => { + })).finally((() => { this.imageManager.setLoaded(true), this._availableImages = this.imageManager.listImages(), i2 && (this._changed = true), this.dispatcher.broadcast("SI", this._availableImages), this.fire(new e.k("data", { dataType: "style" })), a2 && a2(s2); - }); + })); } _unloadSprite() { for (const t4 of Object.values(this._spritesImagesIds).flat()) this.imageManager.removeImage(t4), this._changedImages[t4] = true; @@ -258412,50 +258555,50 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ case "setPitch": continue; case "addLayer": - e2.push(() => this.addLayer.apply(this, a2.args)); + e2.push((() => this.addLayer.apply(this, a2.args))); break; case "removeLayer": - e2.push(() => this.removeLayer.apply(this, a2.args)); + e2.push((() => this.removeLayer.apply(this, a2.args))); break; case "setPaintProperty": - e2.push(() => this.setPaintProperty.apply(this, a2.args)); + e2.push((() => this.setPaintProperty.apply(this, a2.args))); break; case "setLayoutProperty": - e2.push(() => this.setLayoutProperty.apply(this, a2.args)); + e2.push((() => this.setLayoutProperty.apply(this, a2.args))); break; case "setFilter": - e2.push(() => this.setFilter.apply(this, a2.args)); + e2.push((() => this.setFilter.apply(this, a2.args))); break; case "addSource": - e2.push(() => this.addSource.apply(this, a2.args)); + e2.push((() => this.addSource.apply(this, a2.args))); break; case "removeSource": - e2.push(() => this.removeSource.apply(this, a2.args)); + e2.push((() => this.removeSource.apply(this, a2.args))); break; case "setLayerZoomRange": - e2.push(() => this.setLayerZoomRange.apply(this, a2.args)); + e2.push((() => this.setLayerZoomRange.apply(this, a2.args))); break; case "setLight": - e2.push(() => this.setLight.apply(this, a2.args)); + e2.push((() => this.setLight.apply(this, a2.args))); break; case "setGeoJSONSourceData": - e2.push(() => this.setGeoJSONSourceData.apply(this, a2.args)); + e2.push((() => this.setGeoJSONSourceData.apply(this, a2.args))); break; case "setGlyphs": - e2.push(() => this.setGlyphs.apply(this, a2.args)); + e2.push((() => this.setGlyphs.apply(this, a2.args))); break; case "setSprite": - e2.push(() => this.setSprite.apply(this, a2.args)); + e2.push((() => this.setSprite.apply(this, a2.args))); break; case "setSky": - e2.push(() => this.setSky.apply(this, a2.args)); + e2.push((() => this.setSky.apply(this, a2.args))); break; case "setTerrain": - e2.push(() => this.map.setTerrain.apply(this, a2.args)); + e2.push((() => this.map.setTerrain.apply(this, a2.args))); break; case "setTransition": - e2.push(() => { - }); + e2.push((() => { + })); break; default: i2.push(a2.command); @@ -258488,7 +258631,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (["vector", "raster", "geojson", "video", "image"].indexOf(i2.type) >= 0 && this._validate(e.u.source, `sources.${t4}`, i2, null, a2)) return; this.map && this.map._collectResourceTiming && (i2.collectResourceTiming = true); const s2 = this.sourceCaches[t4] = new ut(t4, i2, this.dispatcher); - s2.style = this, s2.setEventedParent(this, () => ({ isSourceLoaded: s2.loaded(), source: s2.serialize(), sourceId: t4 })), s2.onAdd(this.map), this._changed = true; + s2.style = this, s2.setEventedParent(this, (() => ({ isSourceLoaded: s2.loaded(), source: s2.serialize(), sourceId: t4 }))), s2.onAdd(this.map), this._changed = true; } removeSource(t4) { if (this._checkLoaded(), void 0 === this.sourceCaches[t4]) throw new Error("There is no source with this ID"); @@ -258610,8 +258753,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } serialize() { if (!this._loaded) return; - const t4 = e.aF(this.sourceCaches, (t5) => t5.serialize()), i2 = this._serializeByIds(this._order, true), a2 = this.map.getTerrain() || void 0, s2 = this.stylesheet; - return e.aG({ version: s2.version, name: s2.name, metadata: s2.metadata, light: s2.light, sky: s2.sky, center: s2.center, zoom: s2.zoom, bearing: s2.bearing, pitch: s2.pitch, sprite: s2.sprite, glyphs: s2.glyphs, transition: s2.transition, sources: t4, layers: i2, terrain: a2 }, (t5) => void 0 !== t5); + const t4 = e.aF(this.sourceCaches, ((t5) => t5.serialize())), i2 = this._serializeByIds(this._order, true), a2 = this.map.getTerrain() || void 0, s2 = this.stylesheet; + return e.aG({ version: s2.version, name: s2.name, metadata: s2.metadata, light: s2.light, sky: s2.sky, center: s2.center, zoom: s2.zoom, bearing: s2.bearing, pitch: s2.pitch, sprite: s2.sprite, glyphs: s2.glyphs, transition: s2.transition, sources: t4, layers: i2, terrain: a2 }, ((t5) => void 0 !== t5)); } _updateLayer(t4) { this._updatedLayers[t4.id] = true, t4.source && !this._updatedSources[t4.source] && "raster" !== this.sourceCaches[t4.source].getSource().type && (this._updatedSources[t4.source] = "reload", this.sourceCaches[t4.source].pause()), this._serializedLayers = null, this._changed = true; @@ -258628,7 +258771,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } } - a2.sort((t5, e3) => e3.intersectionZ - t5.intersectionZ); + a2.sort(((t5, e3) => e3.intersectionZ - t5.intersectionZ)); const s2 = []; for (let o2 = this._order.length - 1; o2 >= 0; o2--) { const r2 = this._order[o2]; @@ -258659,7 +258802,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i2.availableImages = this._availableImages; const r2 = this._serializedAllLayers(); for (const e2 in this.sourceCaches) i2.layers && !s2[e2] || o2.push(q(this.sourceCaches[e2], this._layers, r2, t4, i2, a2)); - return this.placement && o2.push(function(t5, e2, i3, a3, s3, o3, r3) { + return this.placement && o2.push((function(t5, e2, i3, a3, s3, o3, r3) { const n2 = {}, l2 = o3.queryRenderedSymbols(a3), h2 = []; for (const t6 of Object.keys(l2).map(Number)) h2.push(r3[t6]); h2.sort(V); @@ -258667,35 +258810,35 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a4 = i4.featureIndex.lookupSymbolFeatures(l2[i4.bucketInstanceId], e2, i4.bucketIndex, i4.sourceLayerIndex, s3.filter, s3.layers, s3.availableImages, t5); for (const t6 in a4) { const e3 = n2[t6] = n2[t6] || [], s4 = a4[t6]; - s4.sort((t7, e4) => { + s4.sort(((t7, e4) => { const a5 = i4.featureSortOrder; if (a5) { const i5 = a5.indexOf(t7.featureIndex); return a5.indexOf(e4.featureIndex) - i5; } return e4.featureIndex - t7.featureIndex; - }); + })); for (const t7 of s4) e3.push(t7); } } - for (const e3 in n2) n2[e3].forEach((a4) => { + for (const e3 in n2) n2[e3].forEach(((a4) => { const s4 = a4.feature, o4 = i3[t5[e3].source].getFeatureState(s4.layer["source-layer"], s4.id); s4.source = s4.layer.source, s4.layer["source-layer"] && (s4.sourceLayer = s4.layer["source-layer"]), s4.state = o4; - }); + })); return n2; - }(this._layers, r2, this.sourceCaches, t4, i2, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(o2); + })(this._layers, r2, this.sourceCaches, t4, i2, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(o2); } querySourceFeatures(t4, i2) { i2 && i2.filter && this._validate(e.u.filter, "querySourceFeatures.filter", i2.filter, null, i2); const a2 = this.sourceCaches[t4]; - return a2 ? function(t5, e2) { - const i3 = t5.getRenderableIds().map((e3) => t5.getTileByID(e3)), a3 = [], s2 = {}; + return a2 ? (function(t5, e2) { + const i3 = t5.getRenderableIds().map(((e3) => t5.getTileByID(e3))), a3 = [], s2 = {}; for (let t6 = 0; t6 < i3.length; t6++) { const o2 = i3[t6], r2 = o2.tileID.canonical.key; s2[r2] || (s2[r2] = true, o2.querySourceFeatures(a3, e2)); } return a3; - }(a2, i2) : []; + })(a2, i2) : []; } getLight() { return this.light.getLight(); @@ -258762,7 +258905,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if ("symbol" !== i3.type) continue; if (!l2[i3.source]) { const t5 = this.sourceCaches[i3.source]; - l2[i3.source] = t5.getRenderableIds(true).map((e4) => t5.getTileByID(e4)).sort((t6, e4) => e4.tileID.overscaledZ - t6.tileID.overscaledZ || (t6.tileID.isLessThan(e4.tileID) ? -1 : 1)); + l2[i3.source] = t5.getRenderableIds(true).map(((e4) => t5.getTileByID(e4))).sort(((t6, e4) => e4.tileID.overscaledZ - t6.tileID.overscaledZ || (t6.tileID.isLessThan(e4.tileID) ? -1 : 1))); } const a3 = this.crossTileSymbolIndex.addLayer(i3, l2[i3.source], t4.center.lng); r2 = r2 || a3; @@ -258777,18 +258920,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (const t4 in this.sourceCaches) this.sourceCaches[t4].releaseSymbolFadeTiles(); } getImages(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const t5 = yield this.imageManager.getImages(i2.icons); this._updateTilesForChangedImages(); const e2 = this.sourceCaches[i2.source]; return e2 && e2.setDependencies(i2.tileID.key, i2.type, i2.icons), t5; - }); + })); } getGlyphs(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const t5 = yield this.glyphManager.getGlyphs(i2.stacks), e2 = this.sourceCaches[i2.source]; return e2 && e2.setDependencies(i2.tileID.key, i2.type, [""]), t5; - }); + })); } getGlyphsUrl() { return this.stylesheet.glyphs || null; @@ -258804,9 +258947,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ removeSprite(t4) { this._checkLoaded(); const i2 = x(this.stylesheet.sprite); - if (i2.find((e2) => e2.id === t4)) { + if (i2.find(((e2) => e2.id === t4))) { if (this._spritesImagesIds[t4]) for (const e2 of this._spritesImagesIds[t4]) this.imageManager.removeImage(e2), this._changedImages[e2] = true; - i2.splice(i2.findIndex((e2) => e2.id === t4), 1), this.stylesheet.sprite = i2.length > 0 ? i2 : void 0, delete this._spritesImagesIds[t4], this._availableImages = this.imageManager.listImages(), this._changed = true, this.dispatcher.broadcast("SI", this._availableImages), this.fire(new e.k("data", { dataType: "style" })); + i2.splice(i2.findIndex(((e2) => e2.id === t4)), 1), this.stylesheet.sprite = i2.length > 0 ? i2 : void 0, delete this._spritesImagesIds[t4], this._availableImages = this.imageManager.listImages(), this._changed = true, this.dispatcher.broadcast("SI", this._availableImages), this.fire(new e.k("data", { dataType: "style" })); } else this.fire(new e.j(new Error(`Sprite "${t4}" doesn't exists on this map.`))); } getSprite() { @@ -258820,7 +258963,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const pe = { prelude: me("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\n", "#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef TERRAIN3D\nuniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;\n#endif\nconst highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {\n#ifdef TERRAIN3D\nhighp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));\n#else\nreturn 1.0;\n#endif\n}float calculate_visibility(vec4 pos) {\n#ifdef TERRAIN3D\nvec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}"), background: me("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"), backgroundPattern: me("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"), circle: me("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"), clippingMask: me("void main() {gl_FragColor=vec4(1.0);}", "attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"), heatmap: me("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}"), heatmapTexture: me("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"), collisionBox: me("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}", "attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"), collisionCircle: me("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}", "attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"), debug: me("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}", "attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"), fill: me("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"), fillOutline: me("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"), fillOutlinePattern: me("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"), fillPattern: me("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"), fillExtrusion: me("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"), fillExtrusionPattern: me("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"), hillshadePrepare: me("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"), hillshade: me("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"), line: me("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"), lineGradient: me("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"), linePattern: me("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"), lineSDF: me("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"), raster: me("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"), symbolIcon: me("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}"), symbolSDF: me("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"), symbolTextAndIcon: me("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"), terrain: me("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}", "attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"), terrainDepth: me("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}", "attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"), terrainCoords: me("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}", "attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"), sky: me("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}", "attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}") }; function me(t4, e2) { const i2 = /#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g, a2 = e2.match(/attribute ([\w]+) ([\w]+)/g), s2 = t4.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g), o2 = e2.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g), r2 = o2 ? o2.concat(s2) : s2, n2 = {}; - return { fragmentSource: t4 = t4.replace(i2, (t5, e3, i3, a3, s3) => (n2[s3] = true, "define" === e3 ? ` + return { fragmentSource: t4 = t4.replace(i2, ((t5, e3, i3, a3, s3) => (n2[s3] = true, "define" === e3 ? ` #ifndef HAS_UNIFORM_u_${s3} varying ${i3} ${a3} ${s3}; #else @@ -258830,7 +258973,7 @@ uniform ${i3} ${a3} u_${s3}; #ifdef HAS_UNIFORM_u_${s3} ${i3} ${a3} ${s3} = u_${s3}; #endif -`)), vertexSource: e2 = e2.replace(i2, (t5, e3, i3, a3, s3) => { +`))), vertexSource: e2 = e2.replace(i2, ((t5, e3, i3, a3, s3) => { const o3 = "float" === a3 ? "vec2" : "vec4", r3 = s3.match(/color/) ? "color" : o3; return n2[s3] ? "define" === e3 ? ` #ifndef HAS_UNIFORM_u_${s3} @@ -258872,7 +259015,7 @@ uniform ${i3} ${a3} u_${s3}; ${i3} ${a3} ${s3} = u_${s3}; #endif `; - }), staticAttributes: a2, staticUniforms: r2 }; + })), staticAttributes: a2, staticUniforms: r2 }; } class fe { constructor() { @@ -258967,17 +259110,17 @@ uniform ${i3} ${a3} u_${s3}; return { u_image: 0, u_texsize: i2.imageAtlasTexture.size, u_scale: [a2, t4.fromScale, t4.toScale], u_fade: t4.t, u_pixel_coord_upper: [r2 >> 16, n2 >> 16], u_pixel_coord_lower: [65535 & r2, 65535 & n2] }; } const be = (t4, i2, a2, s2) => { - const o2 = i2.style.light, r2 = o2.properties.get("position"), n2 = [r2.x, r2.y, r2.z], l2 = function() { + const o2 = i2.style.light, r2 = o2.properties.get("position"), n2 = [r2.x, r2.y, r2.z], l2 = (function() { var t5 = new e.A(9); return e.A != Float32Array && (t5[1] = 0, t5[2] = 0, t5[3] = 0, t5[5] = 0, t5[6] = 0, t5[7] = 0), t5[0] = 1, t5[4] = 1, t5[8] = 1, t5; - }(); - "viewport" === o2.properties.get("anchor") && function(t5, e2) { + })(); + "viewport" === o2.properties.get("anchor") && (function(t5, e2) { var i3 = Math.sin(e2), a3 = Math.cos(e2); t5[0] = a3, t5[1] = i3, t5[2] = 0, t5[3] = -i3, t5[4] = a3, t5[5] = 0, t5[6] = 0, t5[7] = 0, t5[8] = 1; - }(l2, -i2.transform.angle), function(t5, e2, i3) { + })(l2, -i2.transform.angle), (function(t5, e2, i3) { var a3 = e2[0], s3 = e2[1], o3 = e2[2]; t5[0] = a3 * i3[0] + s3 * i3[3] + o3 * i3[6], t5[1] = a3 * i3[1] + s3 * i3[4] + o3 * i3[7], t5[2] = a3 * i3[2] + s3 * i3[5] + o3 * i3[8]; - }(n2, n2, l2); + })(n2, n2, l2); const h2 = o2.properties.get("color"); return { u_matrix: t4, u_lightpos: n2, u_lightintensity: o2.properties.get("intensity"), u_lightcolor: [h2.r, h2.g, h2.b], u_vertical_gradient: +a2, u_opacity: s2 }; }, we = (t4, i2, a2, s2, o2, r2, n2) => e.e(be(t4, i2, a2, s2), ye(r2, i2, n2), { u_height_factor: -Math.pow(2, o2.overscaledZ) / n2.tileSize / 8 }), Te = (t4) => ({ u_matrix: t4 }), Ie = (t4, i2, a2, s2) => e.e(Te(t4), ye(a2, i2, s2)), Ee = (t4, e2) => ({ u_matrix: t4, u_world: e2 }), Pe = (t4, i2, a2, s2, o2) => e.e(Ie(t4, i2, a2, s2), { u_world: o2 }), Ce = (t4, e2, i2, a2) => { @@ -259029,10 +259172,10 @@ uniform ${i3} ${a3} u_${s3}; }, qe = (t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, p2, m2) => { const f2 = n2.transform; return e.e(Ze(t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, m2), { u_gamma_scale: s2 ? Math.cos(f2._pitch) * f2.cameraToCenterDistance : 1, u_device_pixel_ratio: n2.pixelRatio, u_is_halo: +p2 }); - }, Ve = (t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, p2) => e.e(qe(t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, true, d2, true, p2), { u_texsize_icon: _2, u_texture_icon: 1 }), Ge = (t4, e2, i2) => ({ u_matrix: t4, u_opacity: e2, u_color: i2 }), He = (t4, i2, a2, s2, o2, r2) => e.e(function(t5, e2, i3, a3) { + }, Ve = (t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, p2) => e.e(qe(t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, true, d2, true, p2), { u_texsize_icon: _2, u_texture_icon: 1 }), Ge = (t4, e2, i2) => ({ u_matrix: t4, u_opacity: e2, u_color: i2 }), He = (t4, i2, a2, s2, o2, r2) => e.e((function(t5, e2, i3, a3) { const s3 = i3.imageManager.getPattern(t5.from.toString()), o3 = i3.imageManager.getPattern(t5.to.toString()), { width: r3, height: n2 } = i3.imageManager.getPixelSize(), l2 = Math.pow(2, a3.tileID.overscaledZ), h2 = a3.tileSize * Math.pow(2, i3.transform.tileZoom) / l2, c2 = h2 * (a3.tileID.canonical.x + a3.tileID.wrap * l2), u2 = h2 * a3.tileID.canonical.y; return { u_image: 0, u_pattern_tl_a: s3.tl, u_pattern_br_a: s3.br, u_pattern_tl_b: o3.tl, u_pattern_br_b: o3.br, u_texsize: [r3, n2], u_mix: e2.t, u_pattern_size_a: s3.displaySize, u_pattern_size_b: o3.displaySize, u_scale_a: e2.fromScale, u_scale_b: e2.toScale, u_tile_units_to_pixels: 1 / Bt(a3, 1, i3.transform.tileZoom), u_pixel_coord_upper: [c2 >> 16, u2 >> 16], u_pixel_coord_lower: [65535 & c2, 65535 & u2] }; - }(s2, r2, a2, o2), { u_matrix: t4, u_opacity: i2 }), We = { fillExtrusion: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_opacity: new e.aI(t4, i2.u_opacity) }), fillExtrusionPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_height_factor: new e.aI(t4, i2.u_height_factor), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade), u_opacity: new e.aI(t4, i2.u_opacity) }), fill: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), fillPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), fillOutline: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world) }), fillOutlinePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), circle: (t4, i2) => ({ u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_scale_with_map: new e.aH(t4, i2.u_scale_with_map), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_extrude_scale: new e.aO(t4, i2.u_extrude_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_matrix: new e.aJ(t4, i2.u_matrix) }), collisionBox: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_pixel_extrude_scale: new e.aO(t4, i2.u_pixel_extrude_scale) }), collisionCircle: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_inv_matrix: new e.aJ(t4, i2.u_inv_matrix), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_viewport_size: new e.aO(t4, i2.u_viewport_size) }), debug: (t4, i2) => ({ u_color: new e.aL(t4, i2.u_color), u_matrix: new e.aJ(t4, i2.u_matrix), u_overlay: new e.aH(t4, i2.u_overlay), u_overlay_scale: new e.aI(t4, i2.u_overlay_scale) }), clippingMask: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmap: (t4, i2) => ({ u_extrude_scale: new e.aI(t4, i2.u_extrude_scale), u_intensity: new e.aI(t4, i2.u_intensity), u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmapTexture: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_color_ramp: new e.aH(t4, i2.u_color_ramp), u_opacity: new e.aI(t4, i2.u_opacity) }), hillshade: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_latrange: new e.aO(t4, i2.u_latrange), u_light: new e.aO(t4, i2.u_light), u_shadow: new e.aL(t4, i2.u_shadow), u_highlight: new e.aL(t4, i2.u_highlight), u_accent: new e.aL(t4, i2.u_accent) }), hillshadePrepare: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_dimension: new e.aO(t4, i2.u_dimension), u_zoom: new e.aI(t4, i2.u_zoom), u_unpack: new e.aK(t4, i2.u_unpack) }), line: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels) }), lineGradient: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_image: new e.aH(t4, i2.u_image), u_image_height: new e.aI(t4, i2.u_image_height) }), linePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texsize: new e.aO(t4, i2.u_texsize), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_image: new e.aH(t4, i2.u_image), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), lineSDF: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_patternscale_a: new e.aO(t4, i2.u_patternscale_a), u_patternscale_b: new e.aO(t4, i2.u_patternscale_b), u_sdfgamma: new e.aI(t4, i2.u_sdfgamma), u_image: new e.aH(t4, i2.u_image), u_tex_y_a: new e.aI(t4, i2.u_tex_y_a), u_tex_y_b: new e.aI(t4, i2.u_tex_y_b), u_mix: new e.aI(t4, i2.u_mix) }), raster: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_tl_parent: new e.aO(t4, i2.u_tl_parent), u_scale_parent: new e.aI(t4, i2.u_scale_parent), u_buffer_scale: new e.aI(t4, i2.u_buffer_scale), u_fade_t: new e.aI(t4, i2.u_fade_t), u_opacity: new e.aI(t4, i2.u_opacity), u_image0: new e.aH(t4, i2.u_image0), u_image1: new e.aH(t4, i2.u_image1), u_brightness_low: new e.aI(t4, i2.u_brightness_low), u_brightness_high: new e.aI(t4, i2.u_brightness_high), u_saturation_factor: new e.aI(t4, i2.u_saturation_factor), u_contrast_factor: new e.aI(t4, i2.u_contrast_factor), u_spin_weights: new e.aN(t4, i2.u_spin_weights) }), symbolIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolSDF: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolTextAndIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texsize_icon: new e.aO(t4, i2.u_texsize_icon), u_texture: new e.aH(t4, i2.u_texture), u_texture_icon: new e.aH(t4, i2.u_texture_icon), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), background: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_color: new e.aL(t4, i2.u_color) }), backgroundPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_image: new e.aH(t4, i2.u_image), u_pattern_tl_a: new e.aO(t4, i2.u_pattern_tl_a), u_pattern_br_a: new e.aO(t4, i2.u_pattern_br_a), u_pattern_tl_b: new e.aO(t4, i2.u_pattern_tl_b), u_pattern_br_b: new e.aO(t4, i2.u_pattern_br_b), u_texsize: new e.aO(t4, i2.u_texsize), u_mix: new e.aI(t4, i2.u_mix), u_pattern_size_a: new e.aO(t4, i2.u_pattern_size_a), u_pattern_size_b: new e.aO(t4, i2.u_pattern_size_b), u_scale_a: new e.aI(t4, i2.u_scale_a), u_scale_b: new e.aI(t4, i2.u_scale_b), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_tile_units_to_pixels: new e.aI(t4, i2.u_tile_units_to_pixels) }), terrain: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_ele_delta: new e.aI(t4, i2.u_ele_delta), u_fog_matrix: new e.aJ(t4, i2.u_fog_matrix), u_fog_color: new e.aL(t4, i2.u_fog_color), u_fog_ground_blend: new e.aI(t4, i2.u_fog_ground_blend), u_fog_ground_blend_opacity: new e.aI(t4, i2.u_fog_ground_blend_opacity), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon_fog_blend: new e.aI(t4, i2.u_horizon_fog_blend) }), terrainDepth: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), terrainCoords: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_terrain_coords_id: new e.aI(t4, i2.u_terrain_coords_id), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), sky: (t4, i2) => ({ u_sky_color: new e.aL(t4, i2.u_sky_color), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon: new e.aI(t4, i2.u_horizon), u_sky_horizon_blend: new e.aI(t4, i2.u_sky_horizon_blend) }) }; + })(s2, r2, a2, o2), { u_matrix: t4, u_opacity: i2 }), We = { fillExtrusion: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_opacity: new e.aI(t4, i2.u_opacity) }), fillExtrusionPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_height_factor: new e.aI(t4, i2.u_height_factor), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade), u_opacity: new e.aI(t4, i2.u_opacity) }), fill: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), fillPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), fillOutline: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world) }), fillOutlinePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), circle: (t4, i2) => ({ u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_scale_with_map: new e.aH(t4, i2.u_scale_with_map), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_extrude_scale: new e.aO(t4, i2.u_extrude_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_matrix: new e.aJ(t4, i2.u_matrix) }), collisionBox: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_pixel_extrude_scale: new e.aO(t4, i2.u_pixel_extrude_scale) }), collisionCircle: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_inv_matrix: new e.aJ(t4, i2.u_inv_matrix), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_viewport_size: new e.aO(t4, i2.u_viewport_size) }), debug: (t4, i2) => ({ u_color: new e.aL(t4, i2.u_color), u_matrix: new e.aJ(t4, i2.u_matrix), u_overlay: new e.aH(t4, i2.u_overlay), u_overlay_scale: new e.aI(t4, i2.u_overlay_scale) }), clippingMask: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmap: (t4, i2) => ({ u_extrude_scale: new e.aI(t4, i2.u_extrude_scale), u_intensity: new e.aI(t4, i2.u_intensity), u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmapTexture: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_color_ramp: new e.aH(t4, i2.u_color_ramp), u_opacity: new e.aI(t4, i2.u_opacity) }), hillshade: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_latrange: new e.aO(t4, i2.u_latrange), u_light: new e.aO(t4, i2.u_light), u_shadow: new e.aL(t4, i2.u_shadow), u_highlight: new e.aL(t4, i2.u_highlight), u_accent: new e.aL(t4, i2.u_accent) }), hillshadePrepare: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_dimension: new e.aO(t4, i2.u_dimension), u_zoom: new e.aI(t4, i2.u_zoom), u_unpack: new e.aK(t4, i2.u_unpack) }), line: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels) }), lineGradient: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_image: new e.aH(t4, i2.u_image), u_image_height: new e.aI(t4, i2.u_image_height) }), linePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texsize: new e.aO(t4, i2.u_texsize), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_image: new e.aH(t4, i2.u_image), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), lineSDF: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_patternscale_a: new e.aO(t4, i2.u_patternscale_a), u_patternscale_b: new e.aO(t4, i2.u_patternscale_b), u_sdfgamma: new e.aI(t4, i2.u_sdfgamma), u_image: new e.aH(t4, i2.u_image), u_tex_y_a: new e.aI(t4, i2.u_tex_y_a), u_tex_y_b: new e.aI(t4, i2.u_tex_y_b), u_mix: new e.aI(t4, i2.u_mix) }), raster: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_tl_parent: new e.aO(t4, i2.u_tl_parent), u_scale_parent: new e.aI(t4, i2.u_scale_parent), u_buffer_scale: new e.aI(t4, i2.u_buffer_scale), u_fade_t: new e.aI(t4, i2.u_fade_t), u_opacity: new e.aI(t4, i2.u_opacity), u_image0: new e.aH(t4, i2.u_image0), u_image1: new e.aH(t4, i2.u_image1), u_brightness_low: new e.aI(t4, i2.u_brightness_low), u_brightness_high: new e.aI(t4, i2.u_brightness_high), u_saturation_factor: new e.aI(t4, i2.u_saturation_factor), u_contrast_factor: new e.aI(t4, i2.u_contrast_factor), u_spin_weights: new e.aN(t4, i2.u_spin_weights) }), symbolIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolSDF: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolTextAndIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texsize_icon: new e.aO(t4, i2.u_texsize_icon), u_texture: new e.aH(t4, i2.u_texture), u_texture_icon: new e.aH(t4, i2.u_texture_icon), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), background: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_color: new e.aL(t4, i2.u_color) }), backgroundPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_image: new e.aH(t4, i2.u_image), u_pattern_tl_a: new e.aO(t4, i2.u_pattern_tl_a), u_pattern_br_a: new e.aO(t4, i2.u_pattern_br_a), u_pattern_tl_b: new e.aO(t4, i2.u_pattern_tl_b), u_pattern_br_b: new e.aO(t4, i2.u_pattern_br_b), u_texsize: new e.aO(t4, i2.u_texsize), u_mix: new e.aI(t4, i2.u_mix), u_pattern_size_a: new e.aO(t4, i2.u_pattern_size_a), u_pattern_size_b: new e.aO(t4, i2.u_pattern_size_b), u_scale_a: new e.aI(t4, i2.u_scale_a), u_scale_b: new e.aI(t4, i2.u_scale_b), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_tile_units_to_pixels: new e.aI(t4, i2.u_tile_units_to_pixels) }), terrain: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_ele_delta: new e.aI(t4, i2.u_ele_delta), u_fog_matrix: new e.aJ(t4, i2.u_fog_matrix), u_fog_color: new e.aL(t4, i2.u_fog_color), u_fog_ground_blend: new e.aI(t4, i2.u_fog_ground_blend), u_fog_ground_blend_opacity: new e.aI(t4, i2.u_fog_ground_blend_opacity), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon_fog_blend: new e.aI(t4, i2.u_horizon_fog_blend) }), terrainDepth: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), terrainCoords: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_terrain_coords_id: new e.aI(t4, i2.u_terrain_coords_id), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), sky: (t4, i2) => ({ u_sky_color: new e.aL(t4, i2.u_sky_color), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon: new e.aI(t4, i2.u_horizon), u_sky_horizon_blend: new e.aI(t4, i2.u_sky_horizon_blend) }) }; class $e { constructor(t4, e2, i2) { this.context = t4; @@ -259552,7 +259695,7 @@ uniform ${i3} ${a3} u_${s3}; const i3 = 4 * e2, a3 = t5.circleArray[i3 + 0], s3 = t5.circleArray[i3 + 1], o3 = t5.circleArray[i3 + 2], r3 = t5.circleArray[i3 + 3]; p2.emplace(m2++, a3, s3, o3, r3, 0), p2.emplace(m2++, a3, s3, o3, r3, 1), p2.emplace(m2++, a3, s3, o3, r3, 2), p2.emplace(m2++, a3, s3, o3, r3, 3); } - (!Zi || Zi.length < 2 * c2) && (Zi = function(t5) { + (!Zi || Zi.length < 2 * c2) && (Zi = (function(t5) { const i3 = 2 * t5, a3 = new e.aT(); a3.resize(i3), a3._trim(); for (let t6 = 0; t6 < i3; t6++) { @@ -259560,7 +259703,7 @@ uniform ${i3} ${a3} u_${s3}; a3.uint16[e2 + 0] = 4 * t6 + 0, a3.uint16[e2 + 1] = 4 * t6 + 1, a3.uint16[e2 + 2] = 4 * t6 + 2, a3.uint16[e2 + 3] = 4 * t6 + 2, a3.uint16[e2 + 4] = 4 * t6 + 3, a3.uint16[e2 + 5] = 4 * t6 + 0; } return a3; - }(c2)); + })(c2)); const f2 = r2.createIndexBuffer(Zi, true), g2 = r2.createVertexBuffer(p2, e.aS.members, true); for (const i3 of h2) { const s3 = Se(i3.transform, i3.invTransform, t4.transform); @@ -259652,7 +259795,7 @@ uniform ${i3} ${a3} u_${s3}; for (const i3 of t5) P2.push({ segments: new e.a0([i3]), sortKey: i3.sortKey, state: Y2, terrainData: M2 }); } else P2.push({ segments: u3.segments, sortKey: 0, state: Y2, terrainData: M2 }); } - T2 && P2.sort((t5, e2) => t5.sortKey - e2.sortKey); + T2 && P2.sort(((t5, e2) => t5.sortKey - e2.sortKey)); for (const e2 of P2) { const i3 = e2.state; if (_2.activeTexture.set(p2.TEXTURE0), i3.atlasTexture.bind(i3.atlasInterpolation, p2.CLAMP_TO_EDGE), i3.atlasTextureIcon && (_2.activeTexture.set(p2.TEXTURE1), i3.atlasTextureIcon && i3.atlasTextureIcon.bind(i3.atlasInterpolationIcon, p2.CLAMP_TO_EDGE)), i3.isSDF) { @@ -259791,11 +259934,11 @@ uniform ${i3} ${a3} u_${s3}; s2.activeTexture.set(o2.TEXTURE0); const _2 = i2.getTileByID(a2.key).latestRawTileData, p2 = Math.floor((_2 && _2.byteLength || 0) / 1024), m2 = i2.getTile(a2).tileSize, f2 = 512 / Math.min(m2, 512) * (a2.overscaledZ / t4.transform.zoom) * 0.5; let g2 = a2.canonical.toString(); - a2.overscaledZ !== a2.canonical.z && (g2 += ` => ${a2.overscaledZ}`), function(t5, e2) { + a2.overscaledZ !== a2.canonical.z && (g2 += ` => ${a2.overscaledZ}`), (function(t5, e2) { t5.initDebugOverlayCanvas(); const i3 = t5.debugOverlayCanvas, a3 = t5.context.gl, s3 = t5.debugOverlayCanvas.getContext("2d"); s3.clearRect(0, 0, i3.width, i3.height), s3.shadowColor = "white", s3.shadowBlur = 2, s3.lineWidth = 1.5, s3.strokeStyle = "white", s3.textBaseline = "top", s3.font = "bold 36px Open Sans, sans-serif", s3.fillText(e2, 5, 5), s3.strokeText(e2, 5, 5), t5.debugOverlayTexture.update(i3), t5.debugOverlayTexture.bind(a3.LINEAR, a3.CLAMP_TO_EDGE); - }(t4, `${g2} ${p2}kB`), n2.draw(s2, o2.TRIANGLES, l2, h2, Fi.alphaBlended, ji.disabled, ze(r2, e.aM.transparent, f2), null, u2, t4.debugBuffer, t4.quadTriangleIndexBuffer, t4.debugSegments), n2.draw(s2, o2.LINE_STRIP, l2, h2, c2, ji.disabled, ze(r2, e.aM.red), d2, u2, t4.debugBuffer, t4.tileBorderIndexBuffer, t4.debugSegments); + })(t4, `${g2} ${p2}kB`), n2.draw(s2, o2.TRIANGLES, l2, h2, Fi.alphaBlended, ji.disabled, ze(r2, e.aM.transparent, f2), null, u2, t4.debugBuffer, t4.quadTriangleIndexBuffer, t4.debugSegments), n2.draw(s2, o2.LINE_STRIP, l2, h2, c2, ji.disabled, ze(r2, e.aM.red), d2, u2, t4.debugBuffer, t4.tileBorderIndexBuffer, t4.debugSegments); } function fa(t4, e2, i2) { const a2 = t4.context, s2 = a2.gl, o2 = t4.colorModeForRenderPass(), r2 = new Oi(s2.LEQUAL, Oi.ReadWrite, t4.depthRangeFor3D), n2 = t4.useProgram("terrain"), l2 = e2.getTerrainMesh(); @@ -259866,7 +260009,7 @@ uniform ${i3} ${a3} u_${s3}; return new Ui({ func: e2.EQUAL, mask: 255 }, this._tileClippingMaskIDs[t4.key], 0, e2.KEEP, e2.KEEP, e2.REPLACE); } stencilConfigForOverlap(t4) { - const e2 = this.context.gl, i2 = t4.sort((t5, e3) => e3.overscaledZ - t5.overscaledZ), a2 = i2[i2.length - 1].overscaledZ, s2 = i2[0].overscaledZ - a2 + 1; + const e2 = this.context.gl, i2 = t4.sort(((t5, e3) => e3.overscaledZ - t5.overscaledZ)), a2 = i2[i2.length - 1].overscaledZ, s2 = i2[0].overscaledZ - a2 + 1; if (s2 > 1) { this.currentStencilSource = void 0, this.nextStencilID + s2 > 256 && this.clearStencil(); const t5 = {}; @@ -259910,7 +260053,7 @@ uniform ${i3} ${a3} u_${s3}; const i3 = n2[e2.source]; ("custom" === e2.type || i3.length) && this.renderLayer(this, s2[e2.source], e2, i3); } - if (this.context.bindFramebuffer.set(null), this.context.clear({ color: i2.showOverdrawInspector ? e.aM.black : e.aM.transparent, depth: 1 }), this.clearStencil(), this.style.sky && function(t5, i3) { + if (this.context.bindFramebuffer.set(null), this.context.clear({ color: i2.showOverdrawInspector ? e.aM.black : e.aM.transparent, depth: 1 }), this.clearStencil(), this.style.sky && (function(t5, i3) { const a3 = t5.context, s3 = a3.gl, o2 = ((t6, e2, i4) => ({ u_sky_color: t6.properties.get("sky-color"), u_horizon_color: t6.properties.get("horizon-color"), u_horizon: (e2.height / 2 + e2.getHorizon()) * i4, u_sky_horizon_blend: t6.properties.get("sky-horizon-blend") * e2.height / 2 * i4 }))(i3, t5.style.map.transform, t5.pixelRatio), r3 = new Oi(s3.LEQUAL, Oi.ReadWrite, [0, 1]), n3 = Ui.disabled, l3 = t5.colorModeForRenderPass(), h2 = t5.useProgram("sky"); if (!i3.mesh) { const t6 = new e.aX(); @@ -259919,7 +260062,7 @@ uniform ${i3} ${a3} u_${s3}; s4.emplaceBack(0, 1, 2), s4.emplaceBack(0, 2, 3), i3.mesh = new ga(a3.createVertexBuffer(t6, _e.members), a3.createIndexBuffer(s4), e.a0.simpleSegment(0, 0, t6.length, s4.length)); } h2.draw(a3, s3.TRIANGLES, r3, n3, l3, ji.disabled, o2, void 0, "sky", i3.mesh.vertexBuffer, i3.mesh.indexBuffer, i3.mesh.segments); - }(this, this.style.sky), this._showOverdrawInspector = i2.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (t4._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = a2.length - 1; this.currentLayer >= 0; this.currentLayer--) { + })(this, this.style.sky), this._showOverdrawInspector = i2.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (t4._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = a2.length - 1; this.currentLayer >= 0; this.currentLayer--) { const t5 = this.style._layers[a2[this.currentLayer]], e2 = s2[t5.source], i3 = r2[t5.source]; this._renderTileClippingMasks(t5, i3), this.renderLayer(this, e2, t5, i3); } @@ -259930,31 +260073,31 @@ uniform ${i3} ${a3} u_${s3}; this._renderTileClippingMasks(t5, r2[t5.source]), this.renderLayer(this, e2, t5, i3); } if (this.options.showTileBoundaries) { - const t5 = function(t6, e2) { + const t5 = (function(t6, e2) { let i3 = null; - const a3 = Object.values(t6._layers).flatMap((i4) => i4.source && !i4.isHidden(e2) ? [t6.sourceCaches[i4.source]] : []), s3 = a3.filter((t7) => "vector" === t7.getSource().type), o2 = a3.filter((t7) => "vector" !== t7.getSource().type), r3 = (t7) => { + const a3 = Object.values(t6._layers).flatMap(((i4) => i4.source && !i4.isHidden(e2) ? [t6.sourceCaches[i4.source]] : [])), s3 = a3.filter(((t7) => "vector" === t7.getSource().type)), o2 = a3.filter(((t7) => "vector" !== t7.getSource().type)), r3 = (t7) => { (!i3 || i3.getSource().maxzoom < t7.getSource().maxzoom) && (i3 = t7); }; - return s3.forEach((t7) => r3(t7)), i3 || o2.forEach((t7) => r3(t7)), i3; - }(this.style, this.transform.zoom); - t5 && function(t6, e2, i3) { + return s3.forEach(((t7) => r3(t7))), i3 || o2.forEach(((t7) => r3(t7))), i3; + })(this.style, this.transform.zoom); + t5 && (function(t6, e2, i3) { for (let a3 = 0; a3 < i3.length; a3++) ma(t6, e2, i3[a3]); - }(this, t5, t5.getVisibleCoordinates()); + })(this, t5, t5.getVisibleCoordinates()); } - this.options.showPadding && function(t5) { + this.options.showPadding && (function(t5) { const e2 = t5.transform.padding; da(t5, t5.transform.height - (e2.top || 0), 3, na), da(t5, e2.bottom || 0, 3, la), _a(t5, e2.left || 0, 3, ha), _a(t5, t5.transform.width - (e2.right || 0), 3, ca); const i3 = t5.transform.centerPoint; - !function(t6, e3, i4, a3) { + !(function(t6, e3, i4, a3) { pa(t6, e3 - 1, i4 - 10, 2, 20, a3), pa(t6, e3 - 10, i4 - 1, 20, 2, a3); - }(t5, i3.x, t5.transform.height - i3.y, ua); - }(this), this.context.setDefault(); + })(t5, i3.x, t5.transform.height - i3.y, ua); + })(this), this.context.setDefault(); } maybeDrawDepthAndCoords(t4) { if (!this.style || !this.style.map || !this.style.map.terrain) return; const i2 = this.terrainFacilitator.matrix, a2 = this.transform.modelViewProjectionMatrix; let s2 = this.terrainFacilitator.dirty; - s2 || (s2 = t4 ? !e.a_(i2, a2) : !e.a$(i2, a2)), s2 || (s2 = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0), s2 && (e.b0(i2, a2), this.terrainFacilitator.renderTime = Date.now(), this.terrainFacilitator.dirty = false, function(t5, i3) { + s2 || (s2 = t4 ? !e.a_(i2, a2) : !e.a$(i2, a2)), s2 || (s2 = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0), s2 && (e.b0(i2, a2), this.terrainFacilitator.renderTime = Date.now(), this.terrainFacilitator.dirty = false, (function(t5, i3) { const a3 = t5.context, s3 = a3.gl, o2 = Fi.unblended, r2 = new Oi(s3.LEQUAL, Oi.ReadWrite, [0, 1]), n2 = i3.getTerrainMesh(), l2 = i3.sourceCache.getRenderableTiles(), h2 = t5.useProgram("terrainDepth"); a3.bindFramebuffer.set(i3.getFramebuffer("depth").framebuffer), a3.viewport.set([0, 0, t5.width / devicePixelRatio, t5.height / devicePixelRatio]), a3.clear({ color: e.aM.transparent, depth: 1 }); for (const e2 of l2) { @@ -259962,7 +260105,7 @@ uniform ${i3} ${a3} u_${s3}; h2.draw(a3, s3.TRIANGLES, r2, Ui.disabled, o2, ji.backCCW, c2, l3, "terrain", n2.vertexBuffer, n2.indexBuffer, n2.segments); } a3.bindFramebuffer.set(null), a3.viewport.set([0, 0, t5.width, t5.height]); - }(this, this.style.map.terrain), function(t5, i3) { + })(this, this.style.map.terrain), (function(t5, i3) { const a3 = t5.context, s3 = a3.gl, o2 = Fi.unblended, r2 = new Oi(s3.LEQUAL, Oi.ReadWrite, [0, 1]), n2 = i3.getTerrainMesh(), l2 = i3.getCoordsTexture(), h2 = i3.sourceCache.getRenderableTiles(), c2 = t5.useProgram("terrainCoords"); a3.bindFramebuffer.set(i3.getFramebuffer("coords").framebuffer), a3.viewport.set([0, 0, t5.width / devicePixelRatio, t5.height / devicePixelRatio]), a3.clear({ color: e.aM.transparent, depth: 1 }), i3.coordsIndex = []; for (const e2 of h2) { @@ -259972,15 +260115,15 @@ uniform ${i3} ${a3} u_${s3}; c2.draw(a3, s3.TRIANGLES, r2, Ui.disabled, o2, ji.backCCW, u2, h3, "terrain", n2.vertexBuffer, n2.indexBuffer, n2.segments), i3.coordsIndex.push(e2.tileID.key); } a3.bindFramebuffer.set(null), a3.viewport.set([0, 0, t5.width, t5.height]); - }(this, this.style.map.terrain)); + })(this, this.style.map.terrain)); } renderLayer(t4, i2, a2, s2) { if (!a2.isHidden(this.transform.zoom) && ("background" === a2.type || "custom" === a2.type || (s2 || []).length)) switch (this.id = a2.id, a2.type) { case "symbol": - !function(t5, i3, a3, s3, o2) { + !(function(t5, i3, a3, s3, o2) { if ("translucent" !== t5.renderPass) return; const r2 = Ui.disabled, n2 = t5.colorModeForRenderPass(); - (a3._unevaluatedLayout.hasValue("text-variable-anchor") || a3._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(t6, i4, a4, s4, o3, r3, n3, l2, h2) { + (a3._unevaluatedLayout.hasValue("text-variable-anchor") || a3._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && (function(t6, i4, a4, s4, o3, r3, n3, l2, h2) { const c2 = i4.transform, u2 = ie(), d2 = "map" === o3, _2 = "map" === r3; for (const o4 of t6) { const t7 = s4.getTile(o4), r4 = t7.getBucket(a4); @@ -259991,11 +260134,11 @@ uniform ${i3} ${a3} u_${s3}; Wi(r4, d2, _2, h2, c2, f2, o4.posMatrix, e2, p2, g2, u2, s5, o4.toUnwrapped(), a5); } } - }(s3, t5, a3, i3, a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), o2), 0 !== a3.paint.get("icon-opacity").constantOr(1) && Xi(t5, i3, a3, s3, false, a3.paint.get("icon-translate"), a3.paint.get("icon-translate-anchor"), a3.layout.get("icon-rotation-alignment"), a3.layout.get("icon-pitch-alignment"), a3.layout.get("icon-keep-upright"), r2, n2), 0 !== a3.paint.get("text-opacity").constantOr(1) && Xi(t5, i3, a3, s3, true, a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.layout.get("text-keep-upright"), r2, n2), i3.map.showCollisionBoxes && (qi(t5, i3, a3, s3, true), qi(t5, i3, a3, s3, false)); - }(t4, i2, a2, s2, this.style.placement.variableOffsets); + })(s3, t5, a3, i3, a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), o2), 0 !== a3.paint.get("icon-opacity").constantOr(1) && Xi(t5, i3, a3, s3, false, a3.paint.get("icon-translate"), a3.paint.get("icon-translate-anchor"), a3.layout.get("icon-rotation-alignment"), a3.layout.get("icon-pitch-alignment"), a3.layout.get("icon-keep-upright"), r2, n2), 0 !== a3.paint.get("text-opacity").constantOr(1) && Xi(t5, i3, a3, s3, true, a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.layout.get("text-keep-upright"), r2, n2), i3.map.showCollisionBoxes && (qi(t5, i3, a3, s3, true), qi(t5, i3, a3, s3, false)); + })(t4, i2, a2, s2, this.style.placement.variableOffsets); break; case "circle": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { if ("translucent" !== t5.renderPass) return; const o2 = a3.paint.get("circle-opacity"), r2 = a3.paint.get("circle-stroke-width"), n2 = a3.paint.get("circle-stroke-opacity"), l2 = !a3.layout.get("circle-sort-key").isConstant(); if (0 === o2.constantOr(1) && (0 === r2.constantOr(1) || 0 === n2.constantOr(1))) return; @@ -260009,15 +260152,15 @@ uniform ${i3} ${a3} u_${s3}; for (const i4 of t6) p2.push({ segments: new e.a0([i4]), sortKey: i4.sortKey, state: f2 }); } else p2.push({ segments: h3.segments, sortKey: 0, state: f2 }); } - l2 && p2.sort((t6, e2) => t6.sortKey - e2.sortKey); + l2 && p2.sort(((t6, e2) => t6.sortKey - e2.sortKey)); for (const e2 of p2) { const { programConfiguration: i4, program: s4, layoutVertexBuffer: o3, indexBuffer: r3, uniformValues: n3, terrainData: l3 } = e2.state; s4.draw(h2, c2.TRIANGLES, u2, d2, _2, ji.disabled, n3, l3, a3.id, o3, r3, e2.segments, a3.paint, t5.transform.zoom, i4); } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "heatmap": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { if (0 === a3.paint.get("heatmap-opacity")) return; const o2 = t5.context; if (t5.style.map.terrain) { @@ -260026,7 +260169,7 @@ uniform ${i3} ${a3} u_${s3}; i3.hasRenderableParent(e2) || ("offscreen" === t5.renderPass ? Ji(t5, s4, a3, e2) : "translucent" === t5.renderPass && Yi(t5, a3, e2)); } o2.viewport.set([0, 0, t5.width, t5.height]); - } else "offscreen" === t5.renderPass ? function(t6, i4, a4, s4) { + } else "offscreen" === t5.renderPass ? (function(t6, i4, a4, s4) { const o3 = t6.context, r2 = o3.gl, n2 = Ui.disabled, l2 = new Fi([r2.ONE, r2.ONE], e.aM.transparent, [true, true, true, true]); (function(t7, i5, a5) { const s5 = t7.gl; @@ -260043,16 +260186,16 @@ uniform ${i3} ${a3} u_${s3}; _2.draw(o3, r2.TRIANGLES, Oi.disabled, n2, l2, ji.disabled, Me(h2.posMatrix, c2, p2, a4.paint.get("heatmap-intensity")), null, a4.id, u2.layoutVertexBuffer, u2.indexBuffer, u2.segments, a4.paint, t6.transform.zoom, d2); } o3.viewport.set([0, 0, t6.width, t6.height]); - }(t5, i3, a3, s3) : "translucent" === t5.renderPass && function(t6, i4) { + })(t5, i3, a3, s3) : "translucent" === t5.renderPass && (function(t6, i4) { const a4 = t6.context, s4 = a4.gl; a4.setColorMode(t6.colorModeForRenderPass()); const o3 = i4.heatmapFbos.get(e.aU); o3 && (a4.activeTexture.set(s4.TEXTURE0), s4.bindTexture(s4.TEXTURE_2D, o3.colorAttachment.get()), a4.activeTexture.set(s4.TEXTURE1), ta(a4, i4).bind(s4.LINEAR, s4.CLAMP_TO_EDGE), t6.useProgram("heatmapTexture").draw(a4, s4.TRIANGLES, Oi.disabled, Ui.disabled, t6.colorModeForRenderPass(), ji.disabled, Ae(t6, i4, 0, 1), null, i4.id, t6.viewportBuffer, t6.quadTriangleIndexBuffer, t6.viewportSegments, i4.paint, t6.transform.zoom)); - }(t5, a3); - }(t4, i2, a2, s2); + })(t5, a3); + })(t4, i2, a2, s2); break; case "line": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { if ("translucent" !== t5.renderPass) return; const o2 = a3.paint.get("line-opacity"), r2 = a3.paint.get("line-width"); if (0 === o2.constantOr(1) || 0 === r2.constantOr(1)) return; @@ -260086,10 +260229,10 @@ uniform ${i3} ${a3} u_${s3}; } y2.draw(m2, f2.TRIANGLES, n2, t5.stencilModeForClipping(o3), l2, ji.disabled, P2, T2, a3.id, r3.layoutVertexBuffer, r3.indexBuffer, r3.segments, a3.paint, t5.transform.zoom, v2, r3.layoutVertexBuffer2), g2 = false; } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "fill": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { const o2 = a3.paint.get("fill-color"), r2 = a3.paint.get("fill-opacity"); if (0 === r2.constantOr(1)) return; const n2 = t5.colorModeForRenderPass(), l2 = a3.paint.get("fill-pattern"), h2 = t5.opaquePassEnabledForLayer() && !l2.constantOr(1) && 1 === o2.constantOr(e.aM.transparent).a && 1 === r2.constantOr(0) ? "opaque" : "translucent"; @@ -260101,10 +260244,10 @@ uniform ${i3} ${a3} u_${s3}; const e2 = t5.depthModeForSublayer(a3.getPaintProperty("fill-outline-color") ? 2 : 0, Oi.ReadOnly); ia(t5, i3, a3, s3, e2, n2, true); } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "fill-extrusion": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { const s3 = i3.paint.get("fill-extrusion-opacity"); if (0 !== s3 && "translucent" === t5.renderPass) { const o2 = new Oi(t5.context.gl.LEQUAL, Oi.ReadWrite, t5.depthRangeFor3D); @@ -260114,10 +260257,10 @@ uniform ${i3} ${a3} u_${s3}; aa(t5, e2, i3, a3, o2, Ui.disabled, s4); } } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "hillshade": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { if ("offscreen" !== t5.renderPass && "translucent" !== t5.renderPass) return; const s3 = t5.context, o2 = t5.depthModeForSublayer(0, Oi.ReadOnly), r2 = t5.colorModeForRenderPass(), [n2, l2] = "translucent" === t5.renderPass ? t5.stencilConfigForOverlap(a3) : [{}, a3]; for (const a4 of l2) { @@ -260125,10 +260268,10 @@ uniform ${i3} ${a3} u_${s3}; void 0 !== s4.needsHillshadePrepare && s4.needsHillshadePrepare && "offscreen" === t5.renderPass ? oa(t5, s4, i3, o2, Ui.disabled, r2) : "translucent" === t5.renderPass && sa(t5, a4, s4, i3, o2, n2[a4.overscaledZ], r2); } s3.viewport.set([0, 0, t5.width, t5.height]); - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "raster": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { if ("translucent" !== t5.renderPass) return; if (0 === i3.paint.get("raster-opacity")) return; if (!a3.length) return; @@ -260143,10 +260286,10 @@ uniform ${i3} ${a3} u_${s3}; const y2 = t5.style.map.terrain && t5.style.map.terrain.getTerrainData(a4), b2 = y2 ? a4 : null, w2 = b2 ? b2.posMatrix : t5.transform.calculatePosMatrix(a4.toUnwrapped(), d2), T2 = Ue(w2, v2 || [0, 0], g2 || 1, f2, i3); r2 instanceof Q ? n2.draw(s3, o2.TRIANGLES, c3, Ui.disabled, l2, ji.disabled, T2, y2, i3.id, r2.boundsBuffer, t5.quadTriangleIndexBuffer, r2.boundsSegments) : n2.draw(s3, o2.TRIANGLES, c3, h2[a4.overscaledZ], l2, ji.disabled, T2, y2, i3.id, t5.rasterBoundsBuffer, t5.quadTriangleIndexBuffer, t5.rasterBoundsSegments); } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "background": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { const s3 = i3.paint.get("background-color"), o2 = i3.paint.get("background-opacity"); if (0 === o2) return; const r2 = t5.context, n2 = r2.gl, l2 = t5.transform, h2 = l2.tileSize, c2 = i3.paint.get("background-pattern"); @@ -260160,10 +260303,10 @@ uniform ${i3} ${a3} u_${s3}; const l3 = a3 ? e3.posMatrix : t5.transform.calculatePosMatrix(e3.toUnwrapped()), u3 = c2 ? He(l3, o2, t5, c2, { tileID: e3, tileSize: h2 }, g2) : Ge(l3, o2, s3), f3 = t5.style.map.terrain && t5.style.map.terrain.getTerrainData(e3); m2.draw(r2, n2.TRIANGLES, _2, d2, p2, ji.disabled, u3, f3, i3.id, t5.tileExtentBuffer, t5.quadTriangleIndexBuffer, t5.tileExtentSegments); } - }(t4, 0, a2, s2); + })(t4, 0, a2, s2); break; case "custom": - !function(t5, e2, i3) { + !(function(t5, e2, i3) { const a3 = t5.context, s3 = i3.implementation; if ("offscreen" === t5.renderPass) { const e3 = s3.prerender; @@ -260173,7 +260316,7 @@ uniform ${i3} ${a3} u_${s3}; const e3 = "3d" === s3.renderingMode ? new Oi(t5.context.gl.LEQUAL, Oi.ReadWrite, t5.depthRangeFor3D) : t5.depthModeForSublayer(0, Oi.ReadOnly); a3.setDepthMode(e3), s3.render(a3.gl, t5.transform.customLayerMatrix(), { farZ: t5.transform.farZ, nearZ: t5.transform.nearZ, fov: t5.transform._fov, modelViewProjectionMatrix: t5.transform.modelViewProjectionMatrix, projectionMatrix: t5.transform.projectionMatrix }), a3.setDirty(), t5.setBaseState(), a3.bindFramebuffer.set(null); } - }(t4, 0, a2); + })(t4, 0, a2); } } translatePosMatrix(t4, i2, a2, s2, o2) { @@ -260228,30 +260371,30 @@ uniform ${i3} ${a3} u_${s3}; this.points = t4, this.planes = e2; } static fromInvProjectionMatrix(t4, i2, a2) { - const s2 = Math.pow(2, a2), o2 = [[-1, 1, -1, 1], [1, 1, -1, 1], [1, -1, -1, 1], [-1, -1, -1, 1], [-1, 1, 1, 1], [1, 1, 1, 1], [1, -1, 1, 1], [-1, -1, 1, 1]].map((a3) => { + const s2 = Math.pow(2, a2), o2 = [[-1, 1, -1, 1], [1, 1, -1, 1], [1, -1, -1, 1], [-1, -1, -1, 1], [-1, 1, 1, 1], [1, 1, 1, 1], [1, -1, 1, 1], [-1, -1, 1, 1]].map(((a3) => { const o3 = 1 / (a3 = e.af([], a3, t4))[3] / i2 * s2; return e.b1(a3, a3, [o3, o3, 1 / a3[3], o3]); - }), r2 = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map((t5) => { - const e2 = function(t6, e3) { + })), r2 = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map(((t5) => { + const e2 = (function(t6, e3) { var i4 = e3[0], a4 = e3[1], s4 = e3[2], o3 = i4 * i4 + a4 * a4 + s4 * s4; return o3 > 0 && (o3 = 1 / Math.sqrt(o3)), t6[0] = e3[0] * o3, t6[1] = e3[1] * o3, t6[2] = e3[2] * o3, t6; - }([], function(t6, e3, i4) { + })([], (function(t6, e3, i4) { var a4 = e3[0], s4 = e3[1], o3 = e3[2], r3 = i4[0], n2 = i4[1], l2 = i4[2]; return t6[0] = s4 * l2 - o3 * n2, t6[1] = o3 * r3 - a4 * l2, t6[2] = a4 * n2 - s4 * r3, t6; - }([], g([], o2[t5[0]], o2[t5[1]]), g([], o2[t5[2]], o2[t5[1]]))), i3 = -((a3 = e2)[0] * (s3 = o2[t5[1]])[0] + a3[1] * s3[1] + a3[2] * s3[2]); + })([], g([], o2[t5[0]], o2[t5[1]]), g([], o2[t5[2]], o2[t5[1]]))), i3 = -((a3 = e2)[0] * (s3 = o2[t5[1]])[0] + a3[1] * s3[1] + a3[2] * s3[2]); var a3, s3; return e2.concat(i3); - }); + })); return new xa(o2, r2); } } class ya { constructor(t4, e2) { - this.min = t4, this.max = e2, this.center = function(t5, e3, i2) { + this.min = t4, this.max = e2, this.center = (function(t5, e3, i2) { return t5[0] = 0.5 * e3[0], t5[1] = 0.5 * e3[1], t5[2] = 0.5 * e3[2], t5; - }([], function(t5, e3, i2) { + })([], (function(t5, e3, i2) { return t5[0] = e3[0] + i2[0], t5[1] = e3[1] + i2[1], t5[2] = e3[2] + i2[2], t5; - }([], this.min, this.max)); + })([], this.min, this.max)); } quadrant(t4) { const e2 = [t4 % 2 == 0, t4 < 2], i2 = m(this.min), a2 = m(this.max); @@ -260364,13 +260507,13 @@ uniform ${i3} ${a3} u_${s3}; } set bearing(t4) { const i2 = -e.b3(t4, -180, 180) * Math.PI / 180; - this.angle !== i2 && (this._unmodified = false, this.angle = i2, this._calcMatrices(), this.rotationMatrix = function() { + this.angle !== i2 && (this._unmodified = false, this.angle = i2, this._calcMatrices(), this.rotationMatrix = (function() { var t5 = new e.A(4); return e.A != Float32Array && (t5[1] = 0, t5[2] = 0), t5[0] = 1, t5[3] = 1, t5; - }(), function(t5, e2, i3) { + })(), (function(t5, e2, i3) { var a2 = e2[0], s2 = e2[1], o2 = e2[2], r2 = e2[3], n2 = Math.sin(i3), l2 = Math.cos(i3); t5[0] = a2 * l2 + o2 * n2, t5[1] = s2 * l2 + r2 * n2, t5[2] = a2 * -n2 + o2 * l2, t5[3] = s2 * -n2 + r2 * l2; - }(this.rotationMatrix, this.rotationMatrix, this.angle)); + })(this.rotationMatrix, this.rotationMatrix, this.angle)); } get pitch() { return this._pitch / Math.PI * 180; @@ -260464,7 +260607,7 @@ uniform ${i3} ${a3} u_${s3}; m2.push({ aabb: d3, zoom: u3, x: h3, y: c3, wrap: s3.wrap, fullyVisible: n3 }); } } - return f2.sort((t5, e2) => t5.distanceSq - e2.distanceSq).map((t5) => t5.tileID); + return f2.sort(((t5, e2) => t5.distanceSq - e2.distanceSq)).map(((t5) => t5.tileID)); } resize(t4, e2) { this.width = t4, this.height = e2, this.pixelsToGLUnits = [2 / t4, -2 / e2], this._constrain(), this._calcMatrices(); @@ -260653,14 +260796,14 @@ uniform ${i3} ${a3} u_${s3}; const t5 = window.location.hash.replace("#", ""); if (this._hashName) { let e2; - return t5.split("&").map((t6) => t6.split("=")).forEach((t6) => { + return t5.split("&").map(((t6) => t6.split("="))).forEach(((t6) => { t6[0] === this._hashName && (e2 = t6); - }), (e2 && e2[1] || "").split("/"); + })), (e2 && e2[1] || "").split("/"); } return t5.split("/"); }, this._onHashChange = () => { const t5 = this._getCurrentHash(); - if (t5.length >= 3 && !t5.some((t6) => isNaN(t6))) { + if (t5.length >= 3 && !t5.some(((t6) => isNaN(t6)))) { const e2 = this._map.dragRotate.isEnabled() && this._map.touchZoomRotate.isEnabled() ? +(t5[3] || 0) : this._map.getBearing(); return this._map.jumpTo({ center: [+t5[2], +t5[1]], zoom: +t5[0], bearing: e2, pitch: +(t5[4] || 0) }), true; } @@ -260692,10 +260835,10 @@ uniform ${i3} ${a3} u_${s3}; if (h2 += t4 ? `/${o2}/${r2}/${i2}` : `${i2}/${r2}/${o2}`, (n2 || l2) && (h2 += "/" + Math.round(10 * n2) / 10), l2 && (h2 += `/${Math.round(l2)}`), this._hashName) { const t5 = this._hashName; let e3 = false; - const i3 = window.location.hash.slice(1).split("&").map((i4) => { + const i3 = window.location.hash.slice(1).split("&").map(((i4) => { const a3 = i4.split("=")[0]; return a3 === t5 ? (e3 = true, `${a3}=${h2}`) : i4; - }).filter((t6) => t6); + })).filter(((t6) => t6)); return e3 || i3.push(`${t5}=${h2}`), `#${i3.join("&")}`; } return `#${h2}`; @@ -260771,7 +260914,7 @@ uniform ${i3} ${a3} u_${s3}; return this._defaultPrevented; } constructor(t4, i2, a2) { - const s2 = "touchend" === t4 ? a2.changedTouches : a2.touches, o2 = r.touchPos(i2.getCanvasContainer(), s2), n2 = o2.map((t5) => i2.unproject(t5)), l2 = o2.reduce((t5, e2, i3, a3) => t5.add(e2.div(a3.length)), new e.P(0, 0)); + const s2 = "touchend" === t4 ? a2.changedTouches : a2.touches, o2 = r.touchPos(i2.getCanvasContainer(), s2), n2 = o2.map(((t5) => i2.unproject(t5))), l2 = o2.reduce(((t5, e2, i3, a3) => t5.add(e2.div(a3.length))), new e.P(0, 0)); super(t4, { points: o2, point: l2, lngLats: n2, lngLat: i2.unproject(l2), originalEvent: a2 }), this._defaultPrevented = false; } } @@ -260952,11 +261095,11 @@ uniform ${i3} ${a3} u_${s3}; delete this.centroid, delete this.startTime, delete this.touches, this.aborted = false; } touchstart(t4, i2, a2) { - (this.centroid || a2.length > this.numTouches) && (this.aborted = true), this.aborted || (void 0 === this.startTime && (this.startTime = t4.timeStamp), a2.length === this.numTouches && (this.centroid = function(t5) { + (this.centroid || a2.length > this.numTouches) && (this.aborted = true), this.aborted || (void 0 === this.startTime && (this.startTime = t4.timeStamp), a2.length === this.numTouches && (this.centroid = (function(t5) { const i3 = new e.P(0, 0); for (const e2 of t5) i3._add(e2); return i3.div(t5.length); - }(i2), this.touches = ja(a2, i2))); + })(i2), this.touches = ja(a2, i2))); } touchmove(t4, e2, i2) { if (this.aborted || !this.centroid) return; @@ -261009,7 +261152,7 @@ uniform ${i3} ${a3} u_${s3}; } touchend(t4, e2, i2) { const a2 = this._zoomIn.touchend(t4, e2, i2), s2 = this._zoomOut.touchend(t4, e2, i2), o2 = this._tr; - return a2 ? (this._active = true, t4.preventDefault(), setTimeout(() => this.reset(), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom + 1, around: o2.unproject(a2) }, { originalEvent: t4 }) }) : s2 ? (this._active = true, t4.preventDefault(), setTimeout(() => this.reset(), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom - 1, around: o2.unproject(s2) }, { originalEvent: t4 }) }) : void 0; + return a2 ? (this._active = true, t4.preventDefault(), setTimeout((() => this.reset()), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom + 1, around: o2.unproject(a2) }, { originalEvent: t4 }) }) : s2 ? (this._active = true, t4.preventDefault(), setTimeout((() => this.reset()), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom - 1, around: o2.unproject(s2) }, { originalEvent: t4 }) }) : void 0; } touchcancel() { this.reset(); @@ -261084,10 +261227,10 @@ uniform ${i3} ${a3} u_${s3}; return this._correctEvent(t4); } isValidMoveEvent(t4) { - return !function(t5, e2) { + return !(function(t5, e2) { const i2 = Ha[e2]; return void 0 === t5.buttons || (t5.buttons & i2) !== i2; - }(t4, this._eventButton); + })(t4, this._eventButton); } isValidEndEvent(t4) { return r.mouseButton(t4) === this._eventButton; @@ -261416,9 +261559,9 @@ uniform ${i3} ${a3} u_${s3}; const t5 = Math.min(l2 / 200, 1), o2 = s2(t5); r2 = e.y.number(a2, i2, o2), t5 < 1 ? this._frameId || (this._frameId = true) : n2 = true; } else r2 = i2, n2 = true; - return this._active = true, n2 && (this._active = false, this._finishTimeout = setTimeout(() => { + return this._active = true, n2 && (this._active = false, this._finishTimeout = setTimeout((() => { this._zooming = false, this._triggerRenderFrame(), delete this._targetZoom, delete this._finishTimeout; - }, 200)), { noInertia: true, needsRenderFrame: !n2, zoomDelta: r2 - t4.zoom, around: this._aroundPoint, originalEvent: this._lastWheelEvent }; + }), 200)), { noInertia: true, needsRenderFrame: !n2, zoomDelta: r2 - t4.zoom, around: this._aroundPoint, originalEvent: this._lastWheelEvent }; } _smoothOutEasing(t4) { let i2 = e.b9; @@ -261612,9 +261755,9 @@ uniform ${i3} ${a3} u_${s3}; return t4[this._bypassKey]; } notifyGestureBlocked(t4, i2) { - this._enabled && (this._map.fire(new e.k("cooperativegestureprevented", { gestureType: t4, originalEvent: i2 })), this._container.classList.add("maplibregl-show"), setTimeout(() => { + this._enabled && (this._map.fire(new e.k("cooperativegestureprevented", { gestureType: t4, originalEvent: i2 })), this._container.classList.add("maplibregl-show"), setTimeout((() => { this._container.classList.remove("maplibregl-show"); - }, 100)); + }), 100)); } } const xs = (t4) => t4.zoom || t4.drag || t4.pitch || t4.rotate; @@ -261671,7 +261814,7 @@ uniform ${i3} ${a3} u_${s3}; e2.dragPan = new ms(i2, d2, _2), this._add("mousePan", d2), this._add("touchPan", _2, ["touchZoom", "touchRotate"]), t4.interactive && t4.dragPan && e2.dragPan.enable(t4.dragPan); const p2 = new ss(), m2 = new is(); e2.touchZoomRotate = new gs(i2, m2, p2, l2), this._add("touchRotate", p2, ["touchPan", "touchZoom"]), this._add("touchZoom", m2, ["touchPan", "touchRotate"]), t4.interactive && t4.touchZoomRotate && e2.touchZoomRotate.enable(t4.touchZoomRotate); - const f2 = e2.scrollZoom = new us(e2, () => this._triggerRenderFrame()); + const f2 = e2.scrollZoom = new us(e2, (() => this._triggerRenderFrame())); this._add("scrollZoom", f2, ["mousePan"]), t4.interactive && t4.scrollZoom && e2.scrollZoom.enable(t4.scrollZoom); const g2 = e2.keyboard = new ls(e2); this._add("keyboard", g2), t4.interactive && t4.keyboard && e2.keyboard.enable(), this._add("blockableMapEvent", new Oa(e2)); @@ -261762,9 +261905,9 @@ uniform ${i3} ${a3} u_${s3}; this._map.fire(new e.k(t4, i2 ? { originalEvent: i2 } : {})); } _requestFrame() { - return this._map.triggerRepaint(), this._map._renderTaskQueue.add((t4) => { + return this._map.triggerRepaint(), this._map._renderTaskQueue.add(((t4) => { delete this._frameId, this.handleEvent(new ys("renderFrame", { timeStamp: t4 })), this._applyChanges(); - }); + })); } _triggerRenderFrame() { void 0 === this._frameId && (this._frameId = this._requestFrame()); @@ -261775,9 +261918,9 @@ uniform ${i3} ${a3} u_${s3}; super(), this._renderFrameCallback = () => { const t5 = Math.min((o.now() - this._easeStart) / this._easeOptions.duration, 1); this._onEaseFrame(this._easeOptions.easing(t5)), t5 < 1 && this._easeFrameId ? this._easeFrameId = this._requestRenderFrame(this._renderFrameCallback) : this.stop(); - }, this._moving = false, this._zooming = false, this.transform = t4, this._bearingSnap = e2.bearingSnap, this.on("moveend", () => { + }, this._moving = false, this._zooming = false, this.transform = t4, this._bearingSnap = e2.bearingSnap, this.on("moveend", (() => { delete this._requestedCameraState; - }); + })); } getCenter() { return new e.N(this.transform.center.lng, this.transform.center.lat); @@ -261886,16 +262029,16 @@ uniform ${i3} ${a3} u_${s3}; let b2, w2; t4.around && (b2 = e.N.convert(t4.around), w2 = s2.locationPoint(b2)); const T2 = { moving: this._moving, zooming: this._zooming, rotating: this._rotating, pitching: this._pitching }; - return this._zooming = this._zooming || g2 !== r2, this._rotating = this._rotating || n2 !== c2, this._pitching = this._pitching || u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._easeId = t4.easeId, this._prepareEase(i2, t4.noMoveStart, T2), this.terrain && this._prepareElevation(f2), this._ease((a3) => { + return this._zooming = this._zooming || g2 !== r2, this._rotating = this._rotating || n2 !== c2, this._pitching = this._pitching || u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._easeId = t4.easeId, this._prepareEase(i2, t4.noMoveStart, T2), this.terrain && this._prepareElevation(f2), this._ease(((a3) => { if (this._zooming && (s2.zoom = e.y.number(r2, g2, a3)), this._rotating && (s2.bearing = e.y.number(n2, c2, a3)), this._pitching && (s2.pitch = e.y.number(l2, u2, a3)), this._padding && (s2.interpolatePadding(h2, d2, a3), p2 = s2.centerPoint.add(_2)), this.terrain && !t4.freezeElevation && this._updateElevation(a3), b2) s2.setLocationAtPoint(b2, w2); else { const t5 = s2.zoomScale(s2.zoom - r2), e2 = g2 > r2 ? Math.min(2, y2) : Math.max(0.5, y2), i3 = Math.pow(e2, 1 - a3), o2 = s2.unproject(v2.add(x2.mult(a3 * i3)).mult(t5)); s2.setLocationAtPoint(s2.renderWorldCopies ? o2.wrap() : o2, p2); } this._applyUpdatedTransform(s2), this._fireMoveEvents(i2); - }, (e2) => { + }), ((e2) => { this.terrain && t4.freezeElevation && this._finalizeElevation(), this._afterEase(i2, e2); - }, t4), this; + }), t4), this; } _prepareEase(t4, i2, a2 = {}) { this._moving = true, i2 || a2.moving || this.fire(new e.k("movestart", t4)), this._zooming && !a2.zooming && this.fire(new e.k("zoomstart", t4)), this._rotating && !a2.rotating && this.fire(new e.k("rotatestart", t4)), this._pitching && !a2.pitching && this.fire(new e.k("pitchstart", t4)); @@ -261928,7 +262071,7 @@ uniform ${i3} ${a3} u_${s3}; } _applyUpdatedTransform(t4) { const e2 = []; - if (this.terrain && e2.push((t5) => this._elevateCameraIfInsideTerrain(t5)), this.transformCameraUpdate && e2.push((t5) => this.transformCameraUpdate(t5)), !e2.length) return; + if (this.terrain && e2.push(((t5) => this._elevateCameraIfInsideTerrain(t5))), this.transformCameraUpdate && e2.push(((t5) => this.transformCameraUpdate(t5))), !e2.length) return; const i2 = t4.clone(); for (const t5 of e2) { const e3 = i2.clone(), { center: a2, zoom: s2, pitch: o2, bearing: r2, elevation: n2 } = t5(e3); @@ -261986,14 +262129,14 @@ uniform ${i3} ${a3} u_${s3}; const e2 = T2 < w2 ? -1 : 1; A3 = Math.abs(Math.log(T2 / w2)) / b2, M2 = () => 0, D3 = (t5) => Math.exp(e2 * b2 * t5); } - return t4.duration = "duration" in t4 ? +t4.duration : 1e3 * A3 / ("screenSpeed" in t4 ? +t4.screenSpeed / b2 : +t4.speed), t4.maxDuration && t4.duration > t4.maxDuration && (t4.duration = 0), this._zooming = true, this._rotating = n2 !== c2, this._pitching = u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._prepareEase(i2, false), this.terrain && this._prepareElevation(f2), this._ease((a3) => { + return t4.duration = "duration" in t4 ? +t4.duration : 1e3 * A3 / ("screenSpeed" in t4 ? +t4.screenSpeed / b2 : +t4.speed), t4.maxDuration && t4.duration > t4.maxDuration && (t4.duration = 0), this._zooming = true, this._rotating = n2 !== c2, this._pitching = u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._prepareEase(i2, false), this.terrain && this._prepareElevation(f2), this._ease(((a3) => { const o2 = a3 * A3, m3 = 1 / D3(o2); s2.zoom = 1 === a3 ? g2 : r2 + s2.scaleZoom(m3), this._rotating && (s2.bearing = e.y.number(n2, c2, a3)), this._pitching && (s2.pitch = e.y.number(l2, u2, a3)), this._padding && (s2.interpolatePadding(h2, d2, a3), p2 = s2.centerPoint.add(_2)), this.terrain && !t4.freezeElevation && this._updateElevation(a3); const v3 = 1 === a3 ? f2 : s2.unproject(x2.add(y2.mult(M2(o2))).mult(m3)); s2.setLocationAtPoint(s2.renderWorldCopies ? v3.wrap() : v3, p2), this._applyUpdatedTransform(s2), this._fireMoveEvents(i2); - }, () => { + }), (() => { this.terrain && t4.freezeElevation && this._finalizeElevation(), this._afterEase(i2); - }, t4), this; + }), t4), this; } isEasing() { return !!this._easeFrameId; @@ -262055,7 +262198,7 @@ uniform ${i3} ${a3} u_${s3}; _updateAttributions() { if (!this._map.style) return; let t4 = []; - if (this.options.customAttribution && (Array.isArray(this.options.customAttribution) ? t4 = t4.concat(this.options.customAttribution.map((t5) => "string" != typeof t5 ? "" : t5)) : "string" == typeof this.options.customAttribution && t4.push(this.options.customAttribution)), this._map.style.stylesheet) { + if (this.options.customAttribution && (Array.isArray(this.options.customAttribution) ? t4 = t4.concat(this.options.customAttribution.map(((t5) => "string" != typeof t5 ? "" : t5))) : "string" == typeof this.options.customAttribution && t4.push(this.options.customAttribution)), this._map.style.stylesheet) { const t5 = this._map.style.stylesheet; this.styleOwner = t5.owner, this.styleId = t5.id; } @@ -262067,10 +262210,10 @@ uniform ${i3} ${a3} u_${s3}; e3.attribution && t4.indexOf(e3.attribution) < 0 && t4.push(e3.attribution); } } - t4 = t4.filter((t5) => String(t5).trim()), t4.sort((t5, e3) => t5.length - e3.length), t4 = t4.filter((e3, i3) => { + t4 = t4.filter(((t5) => String(t5).trim())), t4.sort(((t5, e3) => t5.length - e3.length)), t4 = t4.filter(((e3, i3) => { for (let a2 = i3 + 1; a2 < t4.length; a2++) if (t4[a2].indexOf(e3) >= 0) return false; return true; - }); + })); const i2 = t4.join(" | "); i2 !== this._attribHTML && (this._attribHTML = i2, t4.length ? (this._innerContainer.innerHTML = i2, this._container.classList.remove("maplibregl-attrib-empty")) : this._container.classList.add("maplibregl-attrib-empty"), this._updateCompact(), this._editLink = null); } @@ -262141,7 +262284,7 @@ uniform ${i3} ${a3} u_${s3}; } } getRenderableTiles() { - return this._renderableTilesKeys.map((t4) => this.getTileByID(t4)); + return this._renderableTilesKeys.map(((t4) => this.getTileByID(t4))); } getTileByID(t4) { return this._tiles[t4]; @@ -262177,7 +262320,7 @@ uniform ${i3} ${a3} u_${s3}; return s2; } tilesAfterTime(t4 = Date.now()) { - return Object.values(this._tiles).filter((e2) => e2.timeAdded >= t4); + return Object.values(this._tiles).filter(((e2) => e2.timeAdded >= t4)); } } class Ds { @@ -262189,10 +262332,10 @@ uniform ${i3} ${a3} u_${s3}; if (!(i2 >= 0 && i2 < s2 && a2 >= 0 && a2 < s2)) return 0; const r2 = this.getTerrainData(t4), n2 = null === (o2 = r2.tile) || void 0 === o2 ? void 0 : o2.dem; if (!n2) return 0; - const l2 = function(t5, e2, i3) { + const l2 = (function(t5, e2, i3) { var a3 = e2[0], s3 = e2[1]; return t5[0] = i3[0] * a3 + i3[4] * s3 + i3[12], t5[1] = i3[1] * a3 + i3[5] * s3 + i3[13], t5; - }([], [i2 / s2 * e.X, a2 / s2 * e.X], r2.u_terrain_matrix), h2 = [l2[0] * n2.dim, l2[1] * n2.dim], c2 = Math.floor(h2[0]), u2 = Math.floor(h2[1]), d2 = h2[0] - c2, _2 = h2[1] - u2; + })([], [i2 / s2 * e.X, a2 / s2 * e.X], r2.u_terrain_matrix), h2 = [l2[0] * n2.dim, l2[1] * n2.dim], c2 = Math.floor(h2[0]), u2 = Math.floor(h2[1]), d2 = h2[0] - c2, _2 = h2[1] - u2; return n2.get(c2, u2) * (1 - d2) * (1 - _2) + n2.get(c2 + 1, u2) * d2 * (1 - _2) + n2.get(c2, u2 + 1) * (1 - d2) * _2 + n2.get(c2 + 1, u2 + 1) * d2 * _2; } getElevationForLngLatZoom(t4, i2) { @@ -262293,7 +262436,7 @@ uniform ${i3} ${a3} u_${s3}; return this._objects[t4]; } useObject(t4) { - t4.inUse = true, this._recentlyUsed = this._recentlyUsed.filter((e2) => t4.id !== e2), this._recentlyUsed.push(t4.id); + t4.inUse = true, this._recentlyUsed = this._recentlyUsed.filter(((e2) => t4.id !== e2)), this._recentlyUsed.push(t4.id); } stampObject(t4) { t4.stamp = ++this._stamp; @@ -262311,7 +262454,7 @@ uniform ${i3} ${a3} u_${s3}; for (const t4 of this._objects) this.freeObject(t4); } isFull() { - return !(this._objects.length < this._size) && false === this._objects.some((t4) => !t4.inUse); + return !(this._objects.length < this._size) && false === this._objects.some(((t4) => !t4.inUse)); } } const As = { background: true, fill: true, line: true, raster: true, hillshade: true }; @@ -262326,7 +262469,7 @@ uniform ${i3} ${a3} u_${s3}; return this.pool.getObjectForId(t4.rtt[this._stacks.length - 1].id).texture; } prepareForRender(t4, e2) { - this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.sourceCache.getRenderableTiles(), this._renderableLayerIds = t4._order.filter((i2) => !t4._layers[i2].isHidden(e2)), this._coordsDescendingInv = {}; + this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.sourceCache.getRenderableTiles(), this._renderableLayerIds = t4._order.filter(((i2) => !t4._layers[i2].isHidden(e2))), this._coordsDescendingInv = {}; for (const e3 in t4.sourceCaches) { this._coordsDescendingInv[e3] = {}; const i2 = t4.sourceCaches[e3].getVisibleCoordinates(); @@ -262340,7 +262483,7 @@ uniform ${i3} ${a3} u_${s3}; const i2 = t4._layers[e3], a2 = i2.source; if (As[i2.type] && !this._coordsDescendingInvStr[a2]) { this._coordsDescendingInvStr[a2] = {}; - for (const t5 in this._coordsDescendingInv[a2]) this._coordsDescendingInvStr[a2][t5] = this._coordsDescendingInv[a2][t5].map((t6) => t6.key).sort().join(); + for (const t5 in this._coordsDescendingInv[a2]) this._coordsDescendingInvStr[a2][t5] = this._coordsDescendingInv[a2][t5].map(((t6) => t6.key)).sort().join(); } } for (const t5 of this._renderableTiles) for (const e3 in this._coordsDescendingInvStr) { @@ -262468,10 +262611,10 @@ uniform ${i3} ${a3} u_${s3}; let a2 = ""; "viewport" === this._rotationAlignment || "auto" === this._rotationAlignment ? a2 = `rotateZ(${this._rotation}deg)` : "map" === this._rotationAlignment && (a2 = `rotateZ(${this._rotation - this._map.getBearing()}deg)`); let s2 = ""; - "viewport" === this._pitchAlignment || "auto" === this._pitchAlignment ? s2 = "rotateX(0deg)" : "map" === this._pitchAlignment && (s2 = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || t5 && "moveend" !== t5.type || (this._pos = this._pos.round()), r.setTransform(this._element, `${Zs[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${s2} ${a2}`), o.frameAsync(new AbortController()).then(() => { + "viewport" === this._pitchAlignment || "auto" === this._pitchAlignment ? s2 = "rotateX(0deg)" : "map" === this._pitchAlignment && (s2 = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || t5 && "moveend" !== t5.type || (this._pos = this._pos.round()), r.setTransform(this._element, `${Zs[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${s2} ${a2}`), o.frameAsync(new AbortController()).then((() => { this._updateOpacity(t5 && "moveend" === t5.type); - }).catch(() => { - }); + })).catch((() => { + })); }, this._onMove = (t5) => { if (!this._isDragging) { const e2 = this._clickTolerance || this._map._clickTolerance; @@ -262515,11 +262658,11 @@ uniform ${i3} ${a3} u_${s3}; const g2 = r.createNS("http://www.w3.org/2000/svg", "circle"); g2.setAttributeNS(null, "fill", "#FFFFFF"), g2.setAttributeNS(null, "cx", "5.5"), g2.setAttributeNS(null, "cy", "5.5"), g2.setAttributeNS(null, "r", "5.4999962"), m2.appendChild(f2), m2.appendChild(g2), n2.appendChild(l2), n2.appendChild(c2), n2.appendChild(d2), n2.appendChild(p2), n2.appendChild(m2), i2.appendChild(n2), i2.setAttributeNS(null, "height", a2 * this._scale + "px"), i2.setAttributeNS(null, "width", s2 * this._scale + "px"), this._element.appendChild(i2), this._offset = e.P.convert(t4 && t4.offset || [0, -14]); } - if (this._element.classList.add("maplibregl-marker"), this._element.addEventListener("dragstart", (t5) => { + if (this._element.classList.add("maplibregl-marker"), this._element.addEventListener("dragstart", ((t5) => { t5.preventDefault(); - }), this._element.addEventListener("mousedown", (t5) => { + })), this._element.addEventListener("mousedown", ((t5) => { t5.preventDefault(); - }), qs(this._element, this._anchor, "marker"), t4 && t4.className) for (const e2 of t4.className.split(" ")) this._element.classList.add(e2); + })), qs(this._element, this._anchor, "marker"), t4 && t4.className) for (const e2 of t4.className.split(" ")) this._element.classList.add(e2); this._popup = null; } addTo(t4) { @@ -262563,9 +262706,9 @@ uniform ${i3} ${a3} u_${s3}; if (t4) this._opacityTimeout = null; else { if (this._opacityTimeout) return; - this._opacityTimeout = setTimeout(() => { + this._opacityTimeout = setTimeout((() => { this._opacityTimeout = null; - }, 100); + }), 100); } const s2 = this._map, o2 = s2.terrain.depthAtPoint(this._pos), r2 = s2.terrain.getElevationForLngLatZoom(this._lngLat, s2.transform.tileZoom); if (s2.transform.lngLatToCameraDepth(this._lngLat, r2) - o2 < 6e-3) return void (this._element.style.opacity = this._opacity); @@ -262626,14 +262769,14 @@ uniform ${i3} ${a3} u_${s3}; } else i2 && "nautical" === i2.unit ? Ks(e2, a2, n2 / 1852, t4._getUIString("ScaleControl.NauticalMiles")) : n2 >= 1e3 ? Ks(e2, a2, n2 / 1e3, t4._getUIString("ScaleControl.Kilometers")) : Ks(e2, a2, n2, t4._getUIString("ScaleControl.Meters")); } function Ks(t4, e2, i2, a2) { - const s2 = function(t5) { + const s2 = (function(t5) { const e3 = Math.pow(10, `${Math.floor(t5)}`.length - 1); let i3 = t5 / e3; - return i3 = i3 >= 10 ? 10 : i3 >= 5 ? 5 : i3 >= 3 ? 3 : i3 >= 2 ? 2 : i3 >= 1 ? 1 : function(t6) { + return i3 = i3 >= 10 ? 10 : i3 >= 5 ? 5 : i3 >= 3 ? 3 : i3 >= 2 ? 2 : i3 >= 1 ? 1 : (function(t6) { const e4 = Math.pow(10, Math.ceil(-Math.log(t6) / Math.LN10)); return Math.round(t6 * e4) / e4; - }(i3), e3 * i3; - }(i2); + })(i3), e3 * i3; + })(i2); t4.style.width = e2 * (s2 / i2) + "px", t4.innerHTML = `${s2} ${a2}`; } const Js = { closeButton: true, closeOnClick: true, focusAfterOpen: true, className: "", maxWidth: "240px", subpixelPositioning: false }, Ys = ["a[href]", "[tabindex]:not([tabindex='-1'])", "[contenteditable]:not([contenteditable='false'])", "button:not([disabled])", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].join(", "); @@ -262740,7 +262883,7 @@ uniform ${i3} ${a3} u_${s3}; }, this._finish = () => { this._timeoutId && clearTimeout(this._timeoutId), this._timeoutId = void 0; }, this._setupUI = () => { - this._map && (this._container.addEventListener("contextmenu", (t5) => t5.preventDefault()), this._geolocateButton = r.create("button", "maplibregl-ctrl-geolocate", this._container), r.create("span", "maplibregl-ctrl-icon", this._geolocateButton).setAttribute("aria-hidden", "true"), this._geolocateButton.type = "button", this._geolocateButton.disabled = true); + this._map && (this._container.addEventListener("contextmenu", ((t5) => t5.preventDefault())), this._geolocateButton = r.create("button", "maplibregl-ctrl-geolocate", this._container), r.create("span", "maplibregl-ctrl-icon", this._geolocateButton).setAttribute("aria-hidden", "true"), this._geolocateButton.type = "button", this._geolocateButton.disabled = true); }, this._finishSetupUI = (t5) => { if (this._map) { if (false === t5) { @@ -262751,15 +262894,15 @@ uniform ${i3} ${a3} u_${s3}; const t6 = this._map._getUIString("GeolocateControl.FindMyLocation"); this._geolocateButton.disabled = false, this._geolocateButton.title = t6, this._geolocateButton.setAttribute("aria-label", t6); } - this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = r.create("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new Vs({ element: this._dotElement }), this._circleElement = r.create("div", "maplibregl-user-location-accuracy-circle"), this._accuracyCircleMarker = new Vs({ element: this._circleElement, pitchAlignment: "map" }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", () => this.trigger()), this._setup = true, this.options.trackUserLocation && this._map.on("movestart", (t6) => { + this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = r.create("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new Vs({ element: this._dotElement }), this._circleElement = r.create("div", "maplibregl-user-location-accuracy-circle"), this._accuracyCircleMarker = new Vs({ element: this._circleElement, pitchAlignment: "map" }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", (() => this.trigger())), this._setup = true, this.options.trackUserLocation && this._map.on("movestart", ((t6) => { t6.geolocateSource || "ACTIVE_LOCK" !== this._watchState || t6.originalEvent && "resize" === t6.originalEvent.type || (this._watchState = "BACKGROUND", this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this.fire(new e.k("trackuserlocationend")), this.fire(new e.k("userlocationlostfocus"))); - }); + })); } }, this.options = e.e({}, Gs, t4); } onAdd(t4) { - return this._map = t4, this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._setupUI(), function() { - return e._(this, arguments, void 0, function* (t5 = false) { + return this._map = t4, this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._setupUI(), (function() { + return e._(this, arguments, void 0, (function* (t5 = false) { if (void 0 !== Us && !t5) return Us; if (void 0 === window.navigator.permissions) return Us = !!window.navigator.geolocation, Us; try { @@ -262769,8 +262912,8 @@ uniform ${i3} ${a3} u_${s3}; Us = !!window.navigator.geolocation; } return Us; - }); - }().then((t5) => this._finishSetupUI(t5)), this._container; + })); + })().then(((t5) => this._finishSetupUI(t5))), this._container; } onRemove() { void 0 !== this._geolocationWatchID && (window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0), this.options.showUserLocation && this._userLocationDotMarker && this._userLocationDotMarker.remove(), this.options.showAccuracyCircle && this._accuracyCircleMarker && this._accuracyCircleMarker.remove(), r.remove(this._container), this._map.off("zoom", this._onZoom), this._map = void 0, Hs = 0, Ws = false; @@ -262858,35 +263001,35 @@ uniform ${i3} ${a3} u_${s3}; if (t5.target === this._container) return this._container.scrollTop = 0, this._container.scrollLeft = 0, false; }, this._onWindowOnline = () => { this._update(); - }, this._interactive = i2.interactive, this._maxTileCacheSize = i2.maxTileCacheSize, this._maxTileCacheZoomLevels = i2.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = true === i2.failIfMajorPerformanceCaveat, this._preserveDrawingBuffer = true === i2.preserveDrawingBuffer, this._antialias = true === i2.antialias, this._trackResize = true === i2.trackResize, this._bearingSnap = i2.bearingSnap, this._refreshExpiredTiles = true === i2.refreshExpiredTiles, this._fadeDuration = i2.fadeDuration, this._crossSourceCollisions = true === i2.crossSourceCollisions, this._collectResourceTiming = true === i2.collectResourceTiming, this._locale = Object.assign(Object.assign({}, ks), i2.locale), this._clickTolerance = i2.clickTolerance, this._overridePixelRatio = i2.pixelRatio, this._maxCanvasSize = i2.maxCanvasSize, this.transformCameraUpdate = i2.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = true === i2.cancelPendingTileRequestsWhileZooming, this._imageQueueHandle = _.addThrottleControl(() => this.isMoving()), this._requestManager = new p(i2.transformRequest), "string" == typeof i2.container) { + }, this._interactive = i2.interactive, this._maxTileCacheSize = i2.maxTileCacheSize, this._maxTileCacheZoomLevels = i2.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = true === i2.failIfMajorPerformanceCaveat, this._preserveDrawingBuffer = true === i2.preserveDrawingBuffer, this._antialias = true === i2.antialias, this._trackResize = true === i2.trackResize, this._bearingSnap = i2.bearingSnap, this._refreshExpiredTiles = true === i2.refreshExpiredTiles, this._fadeDuration = i2.fadeDuration, this._crossSourceCollisions = true === i2.crossSourceCollisions, this._collectResourceTiming = true === i2.collectResourceTiming, this._locale = Object.assign(Object.assign({}, ks), i2.locale), this._clickTolerance = i2.clickTolerance, this._overridePixelRatio = i2.pixelRatio, this._maxCanvasSize = i2.maxCanvasSize, this.transformCameraUpdate = i2.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = true === i2.cancelPendingTileRequestsWhileZooming, this._imageQueueHandle = _.addThrottleControl((() => this.isMoving())), this._requestManager = new p(i2.transformRequest), "string" == typeof i2.container) { if (this._container = document.getElementById(i2.container), !this._container) throw new Error(`Container '${i2.container}' not found.`); } else { if (!(i2.container instanceof HTMLElement)) throw new Error("Invalid type: 'container' must be a String or HTMLElement."); this._container = i2.container; } - if (i2.maxBounds && this.setMaxBounds(i2.maxBounds), this._setupContainer(), this._setupPainter(), this.on("move", () => this._update(false)).on("moveend", () => this._update(false)).on("zoom", () => this._update(true)).on("terrain", () => { + if (i2.maxBounds && this.setMaxBounds(i2.maxBounds), this._setupContainer(), this._setupPainter(), this.on("move", (() => this._update(false))).on("moveend", (() => this._update(false))).on("zoom", (() => this._update(true))).on("terrain", (() => { this.painter.terrainFacilitator.dirty = true, this._update(true); - }).once("idle", () => { + })).once("idle", (() => { this._idleTriggered = true; - }), "undefined" != typeof window) { + })), "undefined" != typeof window) { addEventListener("online", this._onWindowOnline, false); let t5 = false; - const e2 = Ia((t6) => { + const e2 = Ia(((t6) => { this._trackResize && !this._removed && (this.resize(t6), this.redraw()); - }, 50); - this._resizeObserver = new ResizeObserver((i3) => { + }), 50); + this._resizeObserver = new ResizeObserver(((i3) => { t5 ? e2(i3) : t5 = true; - }), this._resizeObserver.observe(this._container); + })), this._resizeObserver.observe(this._container); } - this.handlers = new ws(this, i2), this._hash = i2.hash && new Ea("string" == typeof i2.hash && i2.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: i2.center, zoom: i2.zoom, bearing: i2.bearing, pitch: i2.pitch }), i2.bounds && (this.resize(), this.fitBounds(i2.bounds, e.e({}, i2.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = i2.localIdeographFontFamily, this._validateStyle = i2.validateStyle, i2.style && this.setStyle(i2.style, { localIdeographFontFamily: i2.localIdeographFontFamily }), i2.attributionControl && this.addControl(new Es("boolean" == typeof i2.attributionControl ? void 0 : i2.attributionControl)), i2.maplibreLogo && this.addControl(new Ps(), i2.logoPosition), this.on("style.load", () => { + this.handlers = new ws(this, i2), this._hash = i2.hash && new Ea("string" == typeof i2.hash && i2.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: i2.center, zoom: i2.zoom, bearing: i2.bearing, pitch: i2.pitch }), i2.bounds && (this.resize(), this.fitBounds(i2.bounds, e.e({}, i2.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = i2.localIdeographFontFamily, this._validateStyle = i2.validateStyle, i2.style && this.setStyle(i2.style, { localIdeographFontFamily: i2.localIdeographFontFamily }), i2.attributionControl && this.addControl(new Es("boolean" == typeof i2.attributionControl ? void 0 : i2.attributionControl)), i2.maplibreLogo && this.addControl(new Ps(), i2.logoPosition), this.on("style.load", (() => { this.transform.unmodified && this.jumpTo(this.style.stylesheet); - }), this.on("data", (t5) => { + })), this.on("data", ((t5) => { this._update("style" === t5.dataType), this.fire(new e.k(`${t5.dataType}data`, t5)); - }), this.on("dataloading", (t5) => { + })), this.on("dataloading", ((t5) => { this.fire(new e.k(`${t5.dataType}dataloading`, t5)); - }), this.on("dataabort", (t5) => { + })), this.on("dataabort", ((t5) => { this.fire(new e.k("sourcedataabort", t5)); - }); + })); } _getMapId() { return this._mapId; @@ -263000,7 +263143,7 @@ uniform ${i3} ${a3} u_${s3}; if ("mouseenter" === t4 || "mouseover" === t4) { let a2 = false; const s2 = (s3) => { - const o2 = e2.filter((t5) => this.getLayer(t5)), r2 = 0 !== o2.length ? this.queryRenderedFeatures(s3.point, { layers: o2 }) : []; + const o2 = e2.filter(((t5) => this.getLayer(t5))), r2 = 0 !== o2.length ? this.queryRenderedFeatures(s3.point, { layers: o2 }) : []; r2.length ? a2 || (a2 = true, i2.call(this, new ka(t4, this, s3.originalEvent, { features: r2 }))) : a2 = false; }; return { layers: e2, listener: i2, delegates: { mousemove: s2, mouseout: () => { @@ -263010,7 +263153,7 @@ uniform ${i3} ${a3} u_${s3}; if ("mouseleave" === t4 || "mouseout" === t4) { let a2 = false; const s2 = (s3) => { - const o3 = e2.filter((t5) => this.getLayer(t5)); + const o3 = e2.filter(((t5) => this.getLayer(t5))); (0 !== o3.length ? this.queryRenderedFeatures(s3.point, { layers: o3 }) : []).length ? a2 = true : a2 && (a2 = false, i2.call(this, new ka(t4, this, s3.originalEvent))); }, o2 = (e3) => { a2 && (a2 = false, i2.call(this, new ka(t4, this, e3.originalEvent))); @@ -263019,7 +263162,7 @@ uniform ${i3} ${a3} u_${s3}; } { const a2 = (t5) => { - const a3 = e2.filter((t6) => this.getLayer(t6)), s2 = 0 !== a3.length ? this.queryRenderedFeatures(t5.point, { layers: a3 }) : []; + const a3 = e2.filter(((t6) => this.getLayer(t6))), s2 = 0 !== a3.length ? this.queryRenderedFeatures(t5.point, { layers: a3 }) : []; s2.length && (t5.features = s2, i2.call(this, t5), delete t5.features); }; return { layers: e2, listener: i2, delegates: { [t4]: a2 } }; @@ -263033,7 +263176,7 @@ uniform ${i3} ${a3} u_${s3}; const a2 = this._delegatedListeners[t4]; for (let t5 = 0; t5 < a2.length; t5++) { const s2 = a2[t5]; - if (s2.listener === i2 && s2.layers.length === e2.length && s2.layers.every((t6) => e2.includes(t6))) { + if (s2.listener === i2 && s2.layers.length === e2.length && s2.layers.every(((t6) => e2.includes(t6)))) { for (const t6 in s2.delegates) this.off(t6, s2.delegates[t6]); return void a2.splice(t5, 1); } @@ -263088,7 +263231,7 @@ uniform ${i3} ${a3} u_${s3}; return e2; } _updateStyle(t4, e2) { - if (e2.transformStyle && this.style && !this.style._loaded) return void this.style.once("style.load", () => this._updateStyle(t4, e2)); + if (e2.transformStyle && this.style && !this.style._loaded) return void this.style.once("style.load", (() => this._updateStyle(t4, e2))); const i2 = this.style && e2.transformStyle ? this.style.serialize() : void 0; return this.style && (this.style.setEventedParent(null), this.style._remove(!t4)), t4 ? (this.style = new de(this, e2 || {}), this.style.setEventedParent(this, { style: this.style }), "string" == typeof t4 ? this.style.loadURL(t4, e2, i2) : this.style.loadJSON(t4, e2, i2), this) : (delete this.style, this); } @@ -263098,11 +263241,11 @@ uniform ${i3} ${a3} u_${s3}; _diffStyle(t4, i2) { if ("string" == typeof t4) { const a2 = this._requestManager.transformRequest(t4, "Style"); - e.h(a2, new AbortController()).then((t5) => { + e.h(a2, new AbortController()).then(((t5) => { this._updateDiff(t5.data, i2); - }).catch((t5) => { + })).catch(((t5) => { t5 && this.fire(new e.j(t5)); - }); + })); } else "object" == typeof t4 && this._updateDiff(t4, i2); } _updateDiff(t4, i2) { @@ -263243,9 +263386,9 @@ uniform ${i3} ${a3} u_${s3}; return this.style.getGlyphsUrl(); } addSprite(t4, e2, i2 = {}) { - return this._lazyInitEmptyStyle(), this.style.addSprite(t4, e2, i2, (t5) => { + return this._lazyInitEmptyStyle(), this.style.addSprite(t4, e2, i2, ((t5) => { t5 || this._update(true); - }), this; + })), this; } removeSprite(t4) { return this._lazyInitEmptyStyle(), this.style.removeSprite(t4), this._update(true); @@ -263254,9 +263397,9 @@ uniform ${i3} ${a3} u_${s3}; return this.style.getSprite(); } setSprite(t4, e2 = {}) { - return this._lazyInitEmptyStyle(), this.style.setSprite(t4, e2, (t5) => { + return this._lazyInitEmptyStyle(), this.style.setSprite(t4, e2, ((t5) => { t5 || this._update(true); - }), this; + })), this; } setLight(t4, e2 = {}) { return this._lazyInitEmptyStyle(), this.style.setLight(t4, e2), this._update(true); @@ -263300,9 +263443,9 @@ uniform ${i3} ${a3} u_${s3}; const i2 = this._containerDimensions(), a2 = this._getClampedPixelRatio(i2[0], i2[1]); this._resizeCanvas(i2[0], i2[1], a2); const s2 = this._controlContainer = r.create("div", "maplibregl-control-container", t4), o2 = this._controlPositions = {}; - ["top-left", "top-right", "bottom-left", "bottom-right"].forEach((t5) => { + ["top-left", "top-right", "bottom-left", "bottom-right"].forEach(((t5) => { o2[t5] = r.create("div", `maplibregl-ctrl-${t5} `, s2); - }), this._container.addEventListener("scroll", this._onMapScroll, false); + })), this._container.addEventListener("scroll", this._onMapScroll, false); } _resizeCanvas(t4, e2, i2) { this._canvas.width = Math.floor(i2 * t4), this._canvas.height = Math.floor(i2 * e2), this._canvas.style.width = `${t4}px`, this._canvas.style.height = `${e2}px`; @@ -263310,9 +263453,9 @@ uniform ${i3} ${a3} u_${s3}; _setupPainter() { const t4 = { alpha: true, stencil: true, depth: true, failIfMajorPerformanceCaveat: this._failIfMajorPerformanceCaveat, preserveDrawingBuffer: this._preserveDrawingBuffer, antialias: this._antialias || false }; let e2 = null; - this._canvas.addEventListener("webglcontextcreationerror", (i3) => { + this._canvas.addEventListener("webglcontextcreationerror", ((i3) => { e2 = { requestedAttributes: t4 }, i3 && (e2.statusMessage = i3.statusMessage, e2.type = i3.type); - }, { once: true }); + }), { once: true }); const i2 = this._canvas.getContext("webgl2", t4) || this._canvas.getContext("webgl", t4); if (!i2) { const t5 = "Failed to initialize WebGL"; @@ -263359,10 +263502,10 @@ uniform ${i3} ${a3} u_${s3}; (null == i2 ? void 0 : i2.loseContext) && i2.loseContext(), this._canvas.removeEventListener("webglcontextrestored", this._contextRestored, false), this._canvas.removeEventListener("webglcontextlost", this._contextLost, false), r.remove(this._canvasContainer), r.remove(this._controlContainer), this._container.classList.remove("maplibregl-map"), e.bf.clearMetrics(), this._removed = true, this.fire(new e.k("remove")); } triggerRepaint() { - this.style && !this._frameRequest && (this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then((t4) => { + this.style && !this._frameRequest && (this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then(((t4) => { e.bf.frame(t4), this._frameRequest = null, this._render(t4); - }).catch(() => { - })); + })).catch((() => { + }))); } get showTileBoundaries() { return !!this._showTileBoundaries; @@ -263417,9 +263560,9 @@ uniform ${i3} ${a3} u_${s3}; }, this._setButtonTitle = (t5, e2) => { const i2 = this._map._getUIString(`NavigationControl.${e2}`); t5.title = i2, t5.setAttribute("aria-label", i2); - }, this.options = e.e({}, Os, t4), this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._container.addEventListener("contextmenu", (t5) => t5.preventDefault()), this.options.showZoom && (this._zoomInButton = this._createButton("maplibregl-ctrl-zoom-in", (t5) => this._map.zoomIn({}, { originalEvent: t5 })), r.create("span", "maplibregl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("maplibregl-ctrl-zoom-out", (t5) => this._map.zoomOut({}, { originalEvent: t5 })), r.create("span", "maplibregl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (this._compass = this._createButton("maplibregl-ctrl-compass", (t5) => { + }, this.options = e.e({}, Os, t4), this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._container.addEventListener("contextmenu", ((t5) => t5.preventDefault())), this.options.showZoom && (this._zoomInButton = this._createButton("maplibregl-ctrl-zoom-in", ((t5) => this._map.zoomIn({}, { originalEvent: t5 }))), r.create("span", "maplibregl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("maplibregl-ctrl-zoom-out", ((t5) => this._map.zoomOut({}, { originalEvent: t5 }))), r.create("span", "maplibregl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (this._compass = this._createButton("maplibregl-ctrl-compass", ((t5) => { this.options.visualizePitch ? this._map.resetNorthPitch({}, { originalEvent: t5 }) : this._map.resetNorth({}, { originalEvent: t5 }); - }), this._compassIcon = r.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true")); + })), this._compassIcon = r.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true")); } onAdd(t4) { return this._map = t4, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), this._map.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && this._map.on("pitch", this._rotateCompassArrow), this._map.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new Ns(this._map, this._compass, this.options.visualizePitch)), this._container; @@ -263555,12 +263698,12 @@ uniform ${i3} ${a3} u_${s3}; onRemove() { r.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0; } - }, t.TwoFingersTouchPitchHandler = rs, t.TwoFingersTouchRotateHandler = ss, t.TwoFingersTouchZoomHandler = is, t.TwoFingersTouchZoomRotateHandler = gs, t.VectorTileSource = $, t.VideoSource = tt, t.addSourceType = (t4, i2) => e._(void 0, void 0, void 0, function* () { + }, t.TwoFingersTouchPitchHandler = rs, t.TwoFingersTouchRotateHandler = ss, t.TwoFingersTouchZoomHandler = is, t.TwoFingersTouchZoomRotateHandler = gs, t.VectorTileSource = $, t.VideoSource = tt, t.addSourceType = (t4, i2) => e._(void 0, void 0, void 0, (function* () { if (at(t4)) throw new Error(`A source type called "${t4}" already exists.`); ((t5, e2) => { it[t5] = e2; })(t4, i2); - }), t.clearPrewarmedResources = function() { + })), t.clearPrewarmedResources = function() { const t4 = B2; t4 && (t4.isPreloaded() && 1 === t4.numActive() ? (t4.release(k), B2 = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()")); }, t.getMaxParallelImageRequests = function() { @@ -263586,10 +263729,10 @@ uniform ${i3} ${a3} u_${s3}; }, t.setWorkerUrl = function(t4) { e.a.WORKER_URL = t4; }; - }); + })); var maplibregl$1 = maplibregl; return maplibregl$1; - }); + })); } }); @@ -266268,7 +266411,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/d3-collection/dist/d3-collection.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : factory(global2.d3 = global2.d3 || {}); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var prefix = "$"; function Map2() { @@ -266455,7 +266598,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.values = values; exports2.entries = entries; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -266671,7 +266814,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/d3-force/dist/d3-force.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_quadtree(), require_d3_collection(), require_d3_dispatch(), require_d3_timer()) : typeof define === "function" && false ? define(["exports", "d3-quadtree", "d3-collection", "d3-dispatch", "d3-timer"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3, global2.d3, global2.d3); - })(exports, function(exports2, d3Quadtree, d3Collection, d3Dispatch, d3Timer) { + })(exports, (function(exports2, d3Quadtree, d3Collection, d3Dispatch, d3Timer) { "use strict"; function center(x2, y2) { var nodes; @@ -267139,7 +267282,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.forceX = x$2; exports2.forceY = y$2; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -268005,7 +268148,7 @@ uniform ${i3} ${a3} u_${s3}; this._y.push(+y2); } }; - var bundle = function custom(beta) { + var bundle = (function custom(beta) { function bundle2(context) { return beta === 1 ? new Basis(context) : new Bundle(context, beta); } @@ -268013,7 +268156,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+beta2); }; return bundle2; - }(0.85); + })(0.85); function point$1(that, x2, y2) { that._context.bezierCurveTo( that._x1 + that._k * (that._x2 - that._x0), @@ -268073,7 +268216,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var cardinal = function custom(tension) { + var cardinal = (function custom(tension) { function cardinal2(context) { return new Cardinal(context, tension); } @@ -268081,7 +268224,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+tension2); }; return cardinal2; - }(0); + })(0); function CardinalClosed(context, tension) { this._context = context; this._k = (1 - tension) / 6; @@ -268136,7 +268279,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var cardinalClosed = function custom(tension) { + var cardinalClosed = (function custom(tension) { function cardinal2(context) { return new CardinalClosed(context, tension); } @@ -268144,7 +268287,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+tension2); }; return cardinal2; - }(0); + })(0); function CardinalOpen(context, tension) { this._context = context; this._k = (1 - tension) / 6; @@ -268188,7 +268331,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var cardinalOpen = function custom(tension) { + var cardinalOpen = (function custom(tension) { function cardinal2(context) { return new CardinalOpen(context, tension); } @@ -268196,7 +268339,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+tension2); }; return cardinal2; - }(0); + })(0); function point$2(that, x2, y2) { var x1 = that._x1, y1 = that._y1, x22 = that._x2, y22 = that._y2; if (that._l01_a > epsilon) { @@ -268265,7 +268408,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var catmullRom = function custom(alpha) { + var catmullRom = (function custom(alpha) { function catmullRom2(context) { return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0); } @@ -268273,7 +268416,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+alpha2); }; return catmullRom2; - }(0.5); + })(0.5); function CatmullRomClosed(context, alpha) { this._context = context; this._alpha = alpha; @@ -268334,7 +268477,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var catmullRomClosed = function custom(alpha) { + var catmullRomClosed = (function custom(alpha) { function catmullRom2(context) { return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0); } @@ -268342,7 +268485,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+alpha2); }; return catmullRom2; - }(0.5); + })(0.5); function CatmullRomOpen(context, alpha) { this._context = context; this._alpha = alpha; @@ -268392,7 +268535,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var catmullRomOpen = function custom(alpha) { + var catmullRomOpen = (function custom(alpha) { function catmullRom2(context) { return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0); } @@ -268400,7 +268543,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+alpha2); }; return catmullRom2; - }(0.5); + })(0.5); function LinearClosed(context) { this._context = context; } @@ -268820,7 +268963,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/@plotly/d3-sankey/build/d3-sankey.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array(), require_d3_collection(), require_d3_shape()) : typeof define === "function" && false ? define(["exports", "d3-array", "d3-collection", "d3-shape"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3, global2.d3); - })(exports, function(exports2, d3Array, d3Collection, d3Shape) { + })(exports, (function(exports2, d3Array, d3Collection, d3Shape) { "use strict"; function targetDepth(d) { return d.target.depth; @@ -269078,7 +269221,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.sankeyJustify = justify; exports2.sankeyLinkHorizontal = sankeyLinkHorizontal; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -269215,7 +269358,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/@plotly/d3-sankey-circular/dist/d3-sankey-circular.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array(), require_d3_collection(), require_d3_shape(), require_johnson()) : typeof define === "function" && false ? define(["exports", "d3-array", "d3-collection", "d3-shape", "elementary-circuits-directed-graph"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3, global2.d3, null); - })(exports, function(exports2, d3Array, d3Collection, d3Shape, findCircuits) { + })(exports, (function(exports2, d3Array, d3Collection, d3Shape, findCircuits) { "use strict"; findCircuits = findCircuits && findCircuits.hasOwnProperty("default") ? findCircuits["default"] : findCircuits; function targetDepth(d) { @@ -270215,7 +270358,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.sankeyRight = right; exports2.sankeyJustify = justify; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -280564,26 +280707,26 @@ uniform ${i3} ${a3} u_${s3}; "src/traces/scatterpolargl/regl_precompiled.js"(exports, module) { "use strict"; var v0 = require_e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b(); - var v1 = require_cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81(); - var v2 = require_fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623(); - var v3 = require_fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7(); - var v4 = require_db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d(); - var v5 = require_e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210(); - var v6 = require_dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5(); - var v7 = require_bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019(); - var v8 = require_a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923(); - var v9 = require_aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034(); + var v1 = require_e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210(); + var v2 = require_a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923(); + var v3 = require_aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034(); + var v4 = require_fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623(); + var v5 = require_bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019(); + var v6 = require_cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81(); + var v7 = require_db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d(); + var v8 = require_dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5(); + var v9 = require_fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7(); module.exports = { "3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b": v0, - "cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81": v1, - "8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623": v2, - "fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7": v3, - "db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d": v4, - "49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210": v5, - "dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5": v6, - "bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019": v7, - "6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923": v8, - "8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034": v9 + "49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210": v1, + "6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923": v2, + "8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034": v3, + "8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623": v4, + "bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019": v5, + "cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81": v6, + "db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d": v7, + "dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5": v8, + "fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7": v9 }; } }); diff --git a/dist/plotly-strict.min.js b/dist/plotly-strict.min.js index e83846a880d..593123b8af2 100644 --- a/dist/plotly-strict.min.js +++ b/dist/plotly-strict.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict - minified) v3.6.0 +* plotly.js (strict - minified) v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,38 +12,38 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var lrt=Object.create;var RM=Object.defineProperty,urt=Object.defineProperties,frt=Object.getOwnPropertyDescriptor,crt=Object.getOwnPropertyDescriptors,hrt=Object.getOwnPropertyNames,mL=Object.getOwnPropertySymbols,drt=Object.getPrototypeOf,FB=Object.prototype.hasOwnProperty,kee=Object.prototype.propertyIsEnumerable;var Eee=(e,t,r)=>t in e?RM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_m=(e,t)=>{for(var r in t||(t={}))FB.call(t,r)&&Eee(e,r,t[r]);if(mL)for(var r of mL(t))kee.call(t,r)&&Eee(e,r,t[r]);return e},W1=(e,t)=>urt(e,crt(t));var Cee=(e,t)=>{var r={};for(var n in e)FB.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&mL)for(var n of mL(e))t.indexOf(n)<0&&kee.call(e,n)&&(r[n]=e[n]);return r};var tc=(e,t)=>()=>(e&&(t=e(e=0)),t);var we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lee=(e,t)=>{for(var r in t)RM(e,r,{get:t[r],enumerable:!0})},Pee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of hrt(t))!FB.call(e,i)&&i!==r&&RM(e,i,{get:()=>t[i],enumerable:!(n=frt(t,i))||n.enumerable});return e};var prt=(e,t,r)=>(r=e!=null?lrt(drt(e)):{},Pee(t||!e||!e.__esModule?RM(r,"default",{value:e,enumerable:!0}):r,e)),mb=e=>Pee(RM({},"__esModule",{value:!0}),e);var yL=we(zee=>{"use strict";zee.version="3.6.0"});var Dee=we((Iee,gL)=>{(function(t,r,n){r[t]=r[t]||n(),typeof gL!="undefined"&&gL.exports&&(gL.exports=r[t])})("Promise",typeof window!="undefined"?window:Iee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(C,M,A,L){return Object.defineProperty(C,M,{value:A,writable:!0,configurable:L!==!1})}}catch(v){t=function(M,A,L){return M[A]=L,M}}n=function(){var C,M,A;function L(x,k){this.fn=x,this.self=k,this.next=void 0}return{add:function(k,S){A=new L(k,S),M?M.next=A:C=A,M=A,A=void 0},drain:function(){var k=C;for(C=M=r=void 0;k;)k.fn.call(k.self),k=k.next}}}();function o(v,C){n.add(v,C),r||(r=a(n.drain))}function s(v){var C,M=typeof v;return v!=null&&(M=="object"||M=="function")&&(C=v.then),typeof C=="function"?C:!1}function u(){for(var v=0;v0&&o(u,M))}catch(A){c.call(new d(M),A)}}}function c(v){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=v,C.state=2,C.chain.length>0&&o(u,C))}function h(v,C,M,A){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(Z){return t.call(Z)},n=self.document;function i(Z){return Z&&(Z.ownerDocument||Z.document||Z).documentElement}function a(Z){return Z&&(Z.ownerDocument&&Z.ownerDocument.defaultView||Z.document&&Z||Z.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(Z){r=function(le){for(var ke=le.length,Ye=new Array(ke);ke--;)Ye[ke]=le[ke];return Ye}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(Z){var o=this.Element.prototype,s=o.setAttribute,u=o.setAttributeNS,l=this.CSSStyleDeclaration.prototype,f=l.setProperty;o.setAttribute=function(le,ke){s.call(this,le,ke+"")},o.setAttributeNS=function(le,ke,Ye){u.call(this,le,ke,Ye+"")},l.setProperty=function(le,ke,Ye){f.call(this,le,ke+"",Ye)}}e.ascending=c;function c(Z,le){return Zle?1:Z>=le?0:NaN}e.descending=function(Z,le){return leZ?1:le>=Z?0:NaN},e.min=function(Z,le){var ke=-1,Ye=Z.length,nt,ut;if(arguments.length===1){for(;++ke=ut){nt=ut;break}for(;++keut&&(nt=ut)}else{for(;++ke=ut){nt=ut;break}for(;++keut&&(nt=ut)}return nt},e.max=function(Z,le){var ke=-1,Ye=Z.length,nt,ut;if(arguments.length===1){for(;++ke=ut){nt=ut;break}for(;++kent&&(nt=ut)}else{for(;++ke=ut){nt=ut;break}for(;++kent&&(nt=ut)}return nt},e.extent=function(Z,le){var ke=-1,Ye=Z.length,nt,ut,Ht;if(arguments.length===1){for(;++ke=ut){nt=Ht=ut;break}for(;++keut&&(nt=ut),Ht=ut){nt=Ht=ut;break}for(;++keut&&(nt=ut),Ht1)return Ht/(lr-1)},e.deviation=function(){var Z=e.variance.apply(this,arguments);return Z&&Math.sqrt(Z)};function p(Z){return{left:function(le,ke,Ye,nt){for(arguments.length<3&&(Ye=0),arguments.length<4&&(nt=le.length);Ye>>1;Z(le[ut],ke)<0?Ye=ut+1:nt=ut}return Ye},right:function(le,ke,Ye,nt){for(arguments.length<3&&(Ye=0),arguments.length<4&&(nt=le.length);Ye>>1;Z(le[ut],ke)>0?nt=ut:Ye=ut+1}return Ye}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(Z){return p(Z.length===1?function(le,ke){return c(Z(le),ke)}:Z)},e.shuffle=function(Z,le,ke){(Ye=arguments.length)<3&&(ke=Z.length,Ye<2&&(le=0));for(var Ye=ke-le,nt,ut;Ye;)ut=Math.random()*Ye--|0,nt=Z[Ye+le],Z[Ye+le]=Z[ut+le],Z[ut+le]=nt;return Z},e.permute=function(Z,le){for(var ke=le.length,Ye=new Array(ke);ke--;)Ye[ke]=Z[le[ke]];return Ye},e.pairs=function(Z){for(var le=0,ke=Z.length-1,Ye,nt=Z[0],ut=new Array(ke<0?0:ke);le=0;)for(Ht=Z[le],ke=Ht.length;--ke>=0;)ut[--nt]=Ht[ke];return ut};var v=Math.abs;e.range=function(Z,le,ke){if(arguments.length<3&&(ke=1,arguments.length<2&&(le=Z,Z=0)),(le-Z)/ke===1/0)throw new Error("infinite range");var Ye=[],nt=C(v(ke)),ut=-1,Ht;if(Z*=nt,le*=nt,ke*=nt,ke<0)for(;(Ht=Z+ke*++ut)>le;)Ye.push(Ht/nt);else for(;(Ht=Z+ke*++ut)=le.length)return nt?nt.call(Z,lr):Ye?lr.sort(Ye):lr;for(var zr=-1,ui=lr.length,$r=le[Cr++],Oi,un,pi,Pi=new A,ji;++zr=le.length)return wt;var Cr=[],zr=ke[lr++];return wt.forEach(function(ui,$r){Cr.push({key:ui,values:Ht($r,lr)})}),zr?Cr.sort(function(ui,$r){return zr(ui.key,$r.key)}):Cr}return Z.map=function(wt,lr){return ut(lr,wt,0)},Z.entries=function(wt){return Ht(ut(e.map,wt,0),0)},Z.key=function(wt){return le.push(wt),Z},Z.sortKeys=function(wt){return ke[le.length-1]=wt,Z},Z.sortValues=function(wt){return Ye=wt,Z},Z.rollup=function(wt){return nt=wt,Z},Z},e.set=function(Z){var le=new U;if(Z)for(var ke=0,Ye=Z.length;ke=0&&(Ye=Z.slice(ke+1),Z=Z.slice(0,ke)),Z)return arguments.length<2?this[Z].on(Ye):this[Z].on(Ye,le);if(arguments.length===2){if(le==null)for(Z in this)this.hasOwnProperty(Z)&&this[Z].on(Ye,null);return this}};function ae(Z){var le=[],ke=new A;function Ye(){for(var nt=le,ut=-1,Ht=nt.length,wt;++ut=0&&(ke=Z.slice(0,le))!=="xmlns"&&(Z=Z.slice(le+1)),je.hasOwnProperty(ke)?{space:je[ke],local:Z}:Z}},Ie.attr=function(Z,le){if(arguments.length<2){if(typeof Z=="string"){var ke=this.node();return Z=e.ns.qualify(Z),Z.local?ke.getAttributeNS(Z.space,Z.local):ke.getAttribute(Z)}for(le in Z)this.each(rt(le,Z[le]));return this}return this.each(rt(Z,le))};function rt(Z,le){Z=e.ns.qualify(Z);function ke(){this.removeAttribute(Z)}function Ye(){this.removeAttributeNS(Z.space,Z.local)}function nt(){this.setAttribute(Z,le)}function ut(){this.setAttributeNS(Z.space,Z.local,le)}function Ht(){var lr=le.apply(this,arguments);lr==null?this.removeAttribute(Z):this.setAttribute(Z,lr)}function wt(){var lr=le.apply(this,arguments);lr==null?this.removeAttributeNS(Z.space,Z.local):this.setAttributeNS(Z.space,Z.local,lr)}return le==null?Z.local?Ye:ke:typeof le=="function"?Z.local?wt:Ht:Z.local?ut:nt}function bt(Z){return Z.trim().replace(/\s+/g," ")}Ie.classed=function(Z,le){if(arguments.length<2){if(typeof Z=="string"){var ke=this.node(),Ye=(Z=it(Z)).length,nt=-1;if(le=ke.classList){for(;++nt=0;)(ut=ke[Ye])&&(nt&&nt!==ut.nextSibling&&nt.parentNode.insertBefore(ut,nt),nt=ut);return this},Ie.sort=function(Z){Z=Ne.apply(this,arguments);for(var le=-1,ke=this.length;++le=le&&(le=nt+1);!(lr=Ht[le])&&++le0&&(Z=Z.slice(0,nt));var Ht=tt.get(Z);Ht&&(Z=Ht,ut=jt);function wt(){var zr=this[Ye];zr&&(this.removeEventListener(Z,zr,zr.$),delete this[Ye])}function lr(){var zr=ut(le,r(arguments));wt.call(this),this.addEventListener(Z,this[Ye]=zr,zr.$=ke),zr._=le}function Cr(){var zr=new RegExp("^__on([^.]+)"+e.requote(Z)+"$"),ui;for(var $r in this)if(ui=$r.match(zr)){var Oi=this[$r];this.removeEventListener(ui[1],Oi,Oi.$),delete this[$r]}}return nt?le?lr:wt:le?H:Cr}var tt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&tt.forEach(function(Z){"on"+Z in n&&tt.remove(Z)});function Lt(Z,le){return function(ke){var Ye=e.event;e.event=ke,le[0]=this.__data__;try{Z.apply(this,le)}finally{e.event=Ye}}}function jt(Z,le){var ke=Lt(Z,le);return function(Ye){var nt=this,ut=Ye.relatedTarget;(!ut||ut!==nt&&!(ut.compareDocumentPosition(nt)&8))&&ke.call(nt,Ye)}}var or,yr=0;function vr(Z){var le=".dragsuppress-"+ ++yr,ke="click"+le,Ye=e.select(a(Z)).on("touchmove"+le,me).on("dragstart"+le,me).on("selectstart"+le,me);if(or==null&&(or="onselectstart"in Z?!1:W(Z.style,"userSelect")),or){var nt=i(Z).style,ut=nt[or];nt[or]="none"}return function(Ht){if(Ye.on(le,null),or&&(nt[or]=ut),Ht){var wt=function(){Ye.on(ke,null)};Ye.on(ke,function(){me(),wt()},!0),setTimeout(wt,0)}}}e.mouse=function(Z){return Pe(Z,Le())};var Vt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Pe(Z,le){le.changedTouches&&(le=le.changedTouches[0]);var ke=Z.ownerSVGElement||Z;if(ke.createSVGPoint){var Ye=ke.createSVGPoint();if(Vt<0){var nt=a(Z);if(nt.scrollX||nt.scrollY){ke=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var ut=ke[0][0].getScreenCTM();Vt=!(ut.f||ut.e),ke.remove()}}return Vt?(Ye.x=le.pageX,Ye.y=le.pageY):(Ye.x=le.clientX,Ye.y=le.clientY),Ye=Ye.matrixTransform(Z.getScreenCTM().inverse()),[Ye.x,Ye.y]}var Ht=Z.getBoundingClientRect();return[le.clientX-Ht.left-Z.clientLeft,le.clientY-Ht.top-Z.clientTop]}e.touch=function(Z,le,ke){if(arguments.length<3&&(ke=le,le=Le().changedTouches),le){for(var Ye=0,nt=le.length,ut;Ye0?1:Z<0?-1:0}function cr(Z,le,ke){return(le[0]-Z[0])*(ke[1]-Z[1])-(le[1]-Z[1])*(ke[0]-Z[0])}function Er(Z){return Z>1?0:Z<-1?Re:Math.acos(Z)}function ii(Z){return Z>1?gt:Z<-1?-gt:Math.asin(Z)}function jr(Z){return((Z=Math.exp(Z))-1/Z)/2}function kr(Z){return((Z=Math.exp(Z))+1/Z)/2}function Vr(Z){return((Z=Math.exp(2*Z))-1)/(Z+1)}function Ai(Z){return(Z=Math.sin(Z/2))*Z}var Bi=Math.SQRT2,Di=2,ln=4;e.interpolateZoom=function(Z,le){var ke=Z[0],Ye=Z[1],nt=Z[2],ut=le[0],Ht=le[1],wt=le[2],lr=ut-ke,Cr=Ht-Ye,zr=lr*lr+Cr*Cr,ui,$r;if(zr0&&(ds=ds.transition().duration(Ht)),ds.call(an.event)}function El(){Pi&&Pi.domain(pi.range().map(function(ds){return(ds-Z.x)/Z.k}).map(pi.invert)),pn&&pn.domain(ji.range().map(function(ds){return(ds-Z.y)/Z.k}).map(ji.invert))}function Pl(ds){wt++||ds({type:"zoomstart"})}function pu(ds){El(),ds({type:"zoom",scale:Z.k,translate:[Z.x,Z.y]})}function Il(ds){--wt||(ds({type:"zoomend"}),ke=null)}function fu(){var ds=this,Wl=un.of(ds,arguments),Au=0,Tu=e.select(a(ds)).on(Cr,Mf).on(zr,pf),lf=bi(e.mouse(ds)),hf=vr(ds);Us.call(ds),Pl(Wl);function Mf(){Au=1,Xo(e.mouse(ds),lf),pu(Wl)}function pf(){Tu.on(Cr,null).on(zr,null),hf(Au),Il(Wl)}}function Xu(){var ds=this,Wl=un.of(ds,arguments),Au={},Tu=0,lf,hf=".zoom-"+e.event.changedTouches[0].identifier,Mf="touchmove"+hf,pf="touchend"+hf,fc=[],Fe=e.select(ds),Bt=vr(ds);Qr(),Pl(Wl),Fe.on(lr,null).on($r,Qr);function tr(){var di=e.touches(ds);return lf=Z.k,di.forEach(function(nn){nn.identifier in Au&&(Au[nn.identifier]=bi(nn))}),di}function Qr(){var di=e.event.target;e.select(di).on(Mf,vi).on(pf,fi),fc.push(di);for(var nn=e.event.changedTouches,On=0,Ln=nn.length;On1){var ua=wn[0],Hn=wn[1],Ni=ua[0]-Hn[0],Wr=ua[1]-Hn[1];Tu=Ni*Ni+Wr*Wr}}function vi(){var di=e.touches(ds),nn,On,Ln,wn;Us.call(ds);for(var Ls=0,ua=di.length;Ls1?1:le,ke=ke<0?0:ke>1?1:ke,nt=ke<=.5?ke*(1+le):ke+le-ke*le,Ye=2*ke-nt;function ut(wt){return wt>360?wt-=360:wt<0&&(wt+=360),wt<60?Ye+(nt-Ye)*wt/60:wt<180?nt:wt<240?Ye+(nt-Ye)*(240-wt)/60:Ye}function Ht(wt){return Math.round(ut(wt)*255)}return new Fi(Ht(Z+120),Ht(Z),Ht(Z-120))}e.hcl=Nt;function Nt(Z,le,ke){return this instanceof Nt?(this.h=+Z,this.c=+le,void(this.l=+ke)):arguments.length<2?Z instanceof Nt?new Nt(Z.h,Z.c,Z.l):Z instanceof Nr?ti(Z.l,Z.a,Z.b):ti((Z=Xr((Z=e.rgb(Z)).r,Z.g,Z.b)).l,Z.a,Z.b):new Nt(Z,le,ke)}var mr=Nt.prototype=new zi;mr.brighter=function(Z){return new Nt(this.h,this.c,Math.min(100,this.l+Fr*(arguments.length?Z:1)))},mr.darker=function(Z){return new Nt(this.h,this.c,Math.max(0,this.l-Fr*(arguments.length?Z:1)))},mr.rgb=function(){return Lr(this.h,this.c,this.l).rgb()};function Lr(Z,le,ke){return isNaN(Z)&&(Z=0),isNaN(le)&&(le=0),new Nr(ke,Math.cos(Z*=xt)*le,Math.sin(Z)*le)}e.lab=Nr;function Nr(Z,le,ke){return this instanceof Nr?(this.l=+Z,this.a=+le,void(this.b=+ke)):arguments.length<2?Z instanceof Nr?new Nr(Z.l,Z.a,Z.b):Z instanceof Nt?Lr(Z.h,Z.c,Z.l):Xr((Z=Fi(Z)).r,Z.g,Z.b):new Nr(Z,le,ke)}var Fr=18,Gr=.95047,Hr=1,mi=1.08883,Ei=Nr.prototype=new zi;Ei.brighter=function(Z){return new Nr(Math.min(100,this.l+Fr*(arguments.length?Z:1)),this.a,this.b)},Ei.darker=function(Z){return new Nr(Math.max(0,this.l-Fr*(arguments.length?Z:1)),this.a,this.b)},Ei.rgb=function(){return Vi(this.l,this.a,this.b)};function Vi(Z,le,ke){var Ye=(Z+16)/116,nt=Ye+le/500,ut=Ye-ke/200;return nt=Qi(nt)*Gr,Ye=Qi(Ye)*Hr,ut=Qi(ut)*mi,new Fi(oi(3.2404542*nt-1.5371385*Ye-.4985314*ut),oi(-.969266*nt+1.8760108*Ye+.041556*ut),oi(.0556434*nt-.2040259*Ye+1.0572252*ut))}function ti(Z,le,ke){return Z>0?new Nt(Math.atan2(ke,le)*pr,Math.sqrt(le*le+ke*ke),Z):new Nt(NaN,NaN,Z)}function Qi(Z){return Z>.206893034?Z*Z*Z:(Z-4/29)/7.787037}function Yr(Z){return Z>.008856?Math.pow(Z,1/3):7.787037*Z+4/29}function oi(Z){return Math.round(255*(Z<=.00304?12.92*Z:1.055*Math.pow(Z,1/2.4)-.055))}e.rgb=Fi;function Fi(Z,le,ke){return this instanceof Fi?(this.r=~~Z,this.g=~~le,void(this.b=~~ke)):arguments.length<2?Z instanceof Fi?new Fi(Z.r,Z.g,Z.b):xn(""+Z,Fi,qt):new Fi(Z,le,ke)}function rn(Z){return new Fi(Z>>16,Z>>8&255,Z&255)}function tn(Z){return rn(Z)+""}var Ri=Fi.prototype=new zi;Ri.brighter=function(Z){Z=Math.pow(.7,arguments.length?Z:1);var le=this.r,ke=this.g,Ye=this.b,nt=30;return!le&&!ke&&!Ye?new Fi(nt,nt,nt):(le&&le>4,Ye=Ye>>4|Ye,nt=lr&240,nt=nt>>4|nt,ut=lr&15,ut=ut<<4|ut):Z.length===7&&(Ye=(lr&16711680)>>16,nt=(lr&65280)>>8,ut=lr&255)),le(Ye,nt,ut))}function xi(Z,le,ke){var Ye=Math.min(Z/=255,le/=255,ke/=255),nt=Math.max(Z,le,ke),ut=nt-Ye,Ht,wt,lr=(nt+Ye)/2;return ut?(wt=lr<.5?ut/(nt+Ye):ut/(2-nt-Ye),Z==nt?Ht=(le-ke)/ut+(le0&&lr<1?0:Ht),new Rt(Ht,wt,lr)}function Xr(Z,le,ke){Z=dt(Z),le=dt(le),ke=dt(ke);var Ye=Yr((.4124564*Z+.3575761*le+.1804375*ke)/Gr),nt=Yr((.2126729*Z+.7151522*le+.072175*ke)/Hr),ut=Yr((.0193339*Z+.119192*le+.9503041*ke)/mi);return Nr(116*nt-16,500*(Ye-nt),200*(nt-ut))}function dt(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function $t(Z){var le=parseFloat(Z);return Z.charAt(Z.length-1)==="%"?Math.round(le*2.55):le}var fr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});fr.forEach(function(Z,le){fr.set(Z,rn(le))});function gr(Z){return typeof Z=="function"?Z:function(){return Z}}e.functor=gr,e.xhr=Zr(G);function Zr(Z){return function(le,ke,Ye){return arguments.length===2&&typeof ke=="function"&&(Ye=ke,ke=null),wi(le,ke,Z,Ye)}}function wi(Z,le,ke,Ye){var nt={},ut=e.dispatch("beforesend","progress","load","error"),Ht={},wt=new XMLHttpRequest,lr=null;self.XDomainRequest&&!("withCredentials"in wt)&&/^(http(s)?:)?\/\//.test(Z)&&(wt=new XDomainRequest),"onload"in wt?wt.onload=wt.onerror=Cr:wt.onreadystatechange=function(){wt.readyState>3&&Cr()};function Cr(){var zr=wt.status,ui;if(!zr&&ni(wt)||zr>=200&&zr<300||zr===304){try{ui=ke.call(nt,wt)}catch($r){ut.error.call(nt,$r);return}ut.load.call(nt,ui)}else ut.error.call(nt,wt)}return wt.onprogress=function(zr){var ui=e.event;e.event=zr;try{ut.progress.call(nt,wt)}finally{e.event=ui}},nt.header=function(zr,ui){return zr=(zr+"").toLowerCase(),arguments.length<2?Ht[zr]:(ui==null?delete Ht[zr]:Ht[zr]=ui+"",nt)},nt.mimeType=function(zr){return arguments.length?(le=zr==null?null:zr+"",nt):le},nt.responseType=function(zr){return arguments.length?(lr=zr,nt):lr},nt.response=function(zr){return ke=zr,nt},["get","post"].forEach(function(zr){nt[zr]=function(){return nt.send.apply(nt,[zr].concat(r(arguments)))}}),nt.send=function(zr,ui,$r){if(arguments.length===2&&typeof ui=="function"&&($r=ui,ui=null),wt.open(zr,Z,!0),le!=null&&!("accept"in Ht)&&(Ht.accept=le+",*/*"),wt.setRequestHeader)for(var Oi in Ht)wt.setRequestHeader(Oi,Ht[Oi]);return le!=null&&wt.overrideMimeType&&wt.overrideMimeType(le),lr!=null&&(wt.responseType=lr),$r!=null&&nt.on("error",$r).on("load",function(un){$r(null,un)}),ut.beforesend.call(nt,wt),wt.send(ui==null?null:ui),nt},nt.abort=function(){return wt.abort(),nt},e.rebind(nt,ut,"on"),Ye==null?nt:nt.get($i(Ye))}function $i(Z){return Z.length===1?function(le,ke){Z(le==null?ke:null)}:Z}function ni(Z){var le=Z.responseType;return le&&le!=="text"?Z.response:Z.responseText}e.dsv=function(Z,le){var ke=new RegExp('["'+Z+` +"use strict";var Plotly=(()=>{var drt=Object.create;var OM=Object.defineProperty,prt=Object.defineProperties,vrt=Object.getOwnPropertyDescriptor,mrt=Object.getOwnPropertyDescriptors,yrt=Object.getOwnPropertyNames,gL=Object.getOwnPropertySymbols,grt=Object.getPrototypeOf,BB=Object.prototype.hasOwnProperty,Pee=Object.prototype.propertyIsEnumerable;var Lee=(e,t,r)=>t in e?OM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_m=(e,t)=>{for(var r in t||(t={}))BB.call(t,r)&&Lee(e,r,t[r]);if(gL)for(var r of gL(t))Pee.call(t,r)&&Lee(e,r,t[r]);return e},j1=(e,t)=>prt(e,mrt(t));var zee=(e,t)=>{var r={};for(var n in e)BB.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gL)for(var n of gL(e))t.indexOf(n)<0&&Pee.call(e,n)&&(r[n]=e[n]);return r};var tc=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(n){throw r=[n],n}};var we=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Iee=(e,t)=>{for(var r in t)OM(e,r,{get:t[r],enumerable:!0})},Ree=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of yrt(t))!BB.call(e,i)&&i!==r&&OM(e,i,{get:()=>t[i],enumerable:!(n=vrt(t,i))||n.enumerable});return e};var _rt=(e,t,r)=>(r=e!=null?drt(grt(e)):{},Ree(t||!e||!e.__esModule?OM(r,"default",{value:e,enumerable:!0}):r,e)),mb=e=>Ree(OM({},"__esModule",{value:!0}),e);var BM=we(Dee=>{"use strict";Dee.version="3.7.0"});var Oee=we((Fee,_L)=>{(function(t,r,n){r[t]=r[t]||n(),typeof _L!="undefined"&&_L.exports&&(_L.exports=r[t])})("Promise",typeof window!="undefined"?window:Fee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(C,E,A,L){return Object.defineProperty(C,E,{value:A,writable:!0,configurable:L!==!1})}}catch(v){t=function(E,A,L){return E[A]=L,E}}n=(function(){var C,E,A;function L(x,k){this.fn=x,this.self=k,this.next=void 0}return{add:function(k,S){A=new L(k,S),E?E.next=A:C=A,E=A,A=void 0},drain:function(){var k=C;for(C=E=r=void 0;k;)k.fn.call(k.self),k=k.next}}})();function o(v,C){n.add(v,C),r||(r=a(n.drain))}function s(v){var C,E=typeof v;return v!=null&&(E=="object"||E=="function")&&(C=v.then),typeof C=="function"?C:!1}function u(){for(var v=0;v0&&o(u,E))}catch(A){c.call(new d(E),A)}}}function c(v){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=v,C.state=2,C.chain.length>0&&o(u,C))}function h(v,C,E,A){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(Z){return t.call(Z)},n=self.document;function i(Z){return Z&&(Z.ownerDocument||Z.document||Z).documentElement}function a(Z){return Z&&(Z.ownerDocument&&Z.ownerDocument.defaultView||Z.document&&Z||Z.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(Z){r=function(le){for(var Le=le.length,Ye=new Array(Le);Le--;)Ye[Le]=le[Le];return Ye}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(Z){var o=this.Element.prototype,s=o.setAttribute,u=o.setAttributeNS,l=this.CSSStyleDeclaration.prototype,f=l.setProperty;o.setAttribute=function(le,Le){s.call(this,le,Le+"")},o.setAttributeNS=function(le,Le,Ye){u.call(this,le,Le,Ye+"")},l.setProperty=function(le,Le,Ye){f.call(this,le,Le+"",Ye)}}e.ascending=c;function c(Z,le){return Zle?1:Z>=le?0:NaN}e.descending=function(Z,le){return leZ?1:le>=Z?0:NaN},e.min=function(Z,le){var Le=-1,Ye=Z.length,nt,ut;if(arguments.length===1){for(;++Le=ut){nt=ut;break}for(;++Leut&&(nt=ut)}else{for(;++Le=ut){nt=ut;break}for(;++Leut&&(nt=ut)}return nt},e.max=function(Z,le){var Le=-1,Ye=Z.length,nt,ut;if(arguments.length===1){for(;++Le=ut){nt=ut;break}for(;++Lent&&(nt=ut)}else{for(;++Le=ut){nt=ut;break}for(;++Lent&&(nt=ut)}return nt},e.extent=function(Z,le){var Le=-1,Ye=Z.length,nt,ut,Ht;if(arguments.length===1){for(;++Le=ut){nt=Ht=ut;break}for(;++Leut&&(nt=ut),Ht=ut){nt=Ht=ut;break}for(;++Leut&&(nt=ut),Ht1)return Ht/(lr-1)},e.deviation=function(){var Z=e.variance.apply(this,arguments);return Z&&Math.sqrt(Z)};function p(Z){return{left:function(le,Le,Ye,nt){for(arguments.length<3&&(Ye=0),arguments.length<4&&(nt=le.length);Ye>>1;Z(le[ut],Le)<0?Ye=ut+1:nt=ut}return Ye},right:function(le,Le,Ye,nt){for(arguments.length<3&&(Ye=0),arguments.length<4&&(nt=le.length);Ye>>1;Z(le[ut],Le)>0?nt=ut:Ye=ut+1}return Ye}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(Z){return p(Z.length===1?function(le,Le){return c(Z(le),Le)}:Z)},e.shuffle=function(Z,le,Le){(Ye=arguments.length)<3&&(Le=Z.length,Ye<2&&(le=0));for(var Ye=Le-le,nt,ut;Ye;)ut=Math.random()*Ye--|0,nt=Z[Ye+le],Z[Ye+le]=Z[ut+le],Z[ut+le]=nt;return Z},e.permute=function(Z,le){for(var Le=le.length,Ye=new Array(Le);Le--;)Ye[Le]=Z[le[Le]];return Ye},e.pairs=function(Z){for(var le=0,Le=Z.length-1,Ye,nt=Z[0],ut=new Array(Le<0?0:Le);le=0;)for(Ht=Z[le],Le=Ht.length;--Le>=0;)ut[--nt]=Ht[Le];return ut};var v=Math.abs;e.range=function(Z,le,Le){if(arguments.length<3&&(Le=1,arguments.length<2&&(le=Z,Z=0)),(le-Z)/Le===1/0)throw new Error("infinite range");var Ye=[],nt=C(v(Le)),ut=-1,Ht;if(Z*=nt,le*=nt,Le*=nt,Le<0)for(;(Ht=Z+Le*++ut)>le;)Ye.push(Ht/nt);else for(;(Ht=Z+Le*++ut)=le.length)return nt?nt.call(Z,lr):Ye?lr.sort(Ye):lr;for(var zr=-1,ui=lr.length,$r=le[Cr++],Oi,un,pi,Pi=new A,ji;++zr=le.length)return wt;var Cr=[],zr=Le[lr++];return wt.forEach(function(ui,$r){Cr.push({key:ui,values:Ht($r,lr)})}),zr?Cr.sort(function(ui,$r){return zr(ui.key,$r.key)}):Cr}return Z.map=function(wt,lr){return ut(lr,wt,0)},Z.entries=function(wt){return Ht(ut(e.map,wt,0),0)},Z.key=function(wt){return le.push(wt),Z},Z.sortKeys=function(wt){return Le[le.length-1]=wt,Z},Z.sortValues=function(wt){return Ye=wt,Z},Z.rollup=function(wt){return nt=wt,Z},Z},e.set=function(Z){var le=new U;if(Z)for(var Le=0,Ye=Z.length;Le=0&&(Ye=Z.slice(Le+1),Z=Z.slice(0,Le)),Z)return arguments.length<2?this[Z].on(Ye):this[Z].on(Ye,le);if(arguments.length===2){if(le==null)for(Z in this)this.hasOwnProperty(Z)&&this[Z].on(Ye,null);return this}};function ae(Z){var le=[],Le=new A;function Ye(){for(var nt=le,ut=-1,Ht=nt.length,wt;++ut=0&&(Le=Z.slice(0,le))!=="xmlns"&&(Z=Z.slice(le+1)),je.hasOwnProperty(Le)?{space:je[Le],local:Z}:Z}},Ie.attr=function(Z,le){if(arguments.length<2){if(typeof Z=="string"){var Le=this.node();return Z=e.ns.qualify(Z),Z.local?Le.getAttributeNS(Z.space,Z.local):Le.getAttribute(Z)}for(le in Z)this.each(rt(le,Z[le]));return this}return this.each(rt(Z,le))};function rt(Z,le){Z=e.ns.qualify(Z);function Le(){this.removeAttribute(Z)}function Ye(){this.removeAttributeNS(Z.space,Z.local)}function nt(){this.setAttribute(Z,le)}function ut(){this.setAttributeNS(Z.space,Z.local,le)}function Ht(){var lr=le.apply(this,arguments);lr==null?this.removeAttribute(Z):this.setAttribute(Z,lr)}function wt(){var lr=le.apply(this,arguments);lr==null?this.removeAttributeNS(Z.space,Z.local):this.setAttributeNS(Z.space,Z.local,lr)}return le==null?Z.local?Ye:Le:typeof le=="function"?Z.local?wt:Ht:Z.local?ut:nt}function bt(Z){return Z.trim().replace(/\s+/g," ")}Ie.classed=function(Z,le){if(arguments.length<2){if(typeof Z=="string"){var Le=this.node(),Ye=(Z=it(Z)).length,nt=-1;if(le=Le.classList){for(;++nt=0;)(ut=Le[Ye])&&(nt&&nt!==ut.nextSibling&&nt.parentNode.insertBefore(ut,nt),nt=ut);return this},Ie.sort=function(Z){Z=Ne.apply(this,arguments);for(var le=-1,Le=this.length;++le=le&&(le=nt+1);!(lr=Ht[le])&&++le0&&(Z=Z.slice(0,nt));var Ht=tt.get(Z);Ht&&(Z=Ht,ut=jt);function wt(){var zr=this[Ye];zr&&(this.removeEventListener(Z,zr,zr.$),delete this[Ye])}function lr(){var zr=ut(le,r(arguments));wt.call(this),this.addEventListener(Z,this[Ye]=zr,zr.$=Le),zr._=le}function Cr(){var zr=new RegExp("^__on([^.]+)"+e.requote(Z)+"$"),ui;for(var $r in this)if(ui=$r.match(zr)){var Oi=this[$r];this.removeEventListener(ui[1],Oi,Oi.$),delete this[$r]}}return nt?le?lr:wt:le?H:Cr}var tt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&tt.forEach(function(Z){"on"+Z in n&&tt.remove(Z)});function Lt(Z,le){return function(Le){var Ye=e.event;e.event=Le,le[0]=this.__data__;try{Z.apply(this,le)}finally{e.event=Ye}}}function jt(Z,le){var Le=Lt(Z,le);return function(Ye){var nt=this,ut=Ye.relatedTarget;(!ut||ut!==nt&&!(ut.compareDocumentPosition(nt)&8))&&Le.call(nt,Ye)}}var or,yr=0;function vr(Z){var le=".dragsuppress-"+ ++yr,Le="click"+le,Ye=e.select(a(Z)).on("touchmove"+le,me).on("dragstart"+le,me).on("selectstart"+le,me);if(or==null&&(or="onselectstart"in Z?!1:W(Z.style,"userSelect")),or){var nt=i(Z).style,ut=nt[or];nt[or]="none"}return function(Ht){if(Ye.on(le,null),or&&(nt[or]=ut),Ht){var wt=function(){Ye.on(Le,null)};Ye.on(Le,function(){me(),wt()},!0),setTimeout(wt,0)}}}e.mouse=function(Z){return Pe(Z,Ce())};var Vt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Pe(Z,le){le.changedTouches&&(le=le.changedTouches[0]);var Le=Z.ownerSVGElement||Z;if(Le.createSVGPoint){var Ye=Le.createSVGPoint();if(Vt<0){var nt=a(Z);if(nt.scrollX||nt.scrollY){Le=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var ut=Le[0][0].getScreenCTM();Vt=!(ut.f||ut.e),Le.remove()}}return Vt?(Ye.x=le.pageX,Ye.y=le.pageY):(Ye.x=le.clientX,Ye.y=le.clientY),Ye=Ye.matrixTransform(Z.getScreenCTM().inverse()),[Ye.x,Ye.y]}var Ht=Z.getBoundingClientRect();return[le.clientX-Ht.left-Z.clientLeft,le.clientY-Ht.top-Z.clientTop]}e.touch=function(Z,le,Le){if(arguments.length<3&&(Le=le,le=Ce().changedTouches),le){for(var Ye=0,nt=le.length,ut;Ye0?1:Z<0?-1:0}function cr(Z,le,Le){return(le[0]-Z[0])*(Le[1]-Z[1])-(le[1]-Z[1])*(Le[0]-Z[0])}function Er(Z){return Z>1?0:Z<-1?De:Math.acos(Z)}function ii(Z){return Z>1?gt:Z<-1?-gt:Math.asin(Z)}function jr(Z){return((Z=Math.exp(Z))-1/Z)/2}function kr(Z){return((Z=Math.exp(Z))+1/Z)/2}function Vr(Z){return((Z=Math.exp(2*Z))-1)/(Z+1)}function Ai(Z){return(Z=Math.sin(Z/2))*Z}var Bi=Math.SQRT2,Ri=2,ln=4;e.interpolateZoom=function(Z,le){var Le=Z[0],Ye=Z[1],nt=Z[2],ut=le[0],Ht=le[1],wt=le[2],lr=ut-Le,Cr=Ht-Ye,zr=lr*lr+Cr*Cr,ui,$r;if(zr0&&(ds=ds.transition().duration(Ht)),ds.call(an.event)}function El(){Pi&&Pi.domain(pi.range().map(function(ds){return(ds-Z.x)/Z.k}).map(pi.invert)),pn&&pn.domain(ji.range().map(function(ds){return(ds-Z.y)/Z.k}).map(ji.invert))}function Pl(ds){wt++||ds({type:"zoomstart"})}function pu(ds){El(),ds({type:"zoom",scale:Z.k,translate:[Z.x,Z.y]})}function Il(ds){--wt||(ds({type:"zoomend"}),Le=null)}function fu(){var ds=this,Wl=un.of(ds,arguments),Au=0,Tu=e.select(a(ds)).on(Cr,Sf).on(zr,pf),lf=bi(e.mouse(ds)),hf=vr(ds);Us.call(ds),Pl(Wl);function Sf(){Au=1,Xo(e.mouse(ds),lf),pu(Wl)}function pf(){Tu.on(Cr,null).on(zr,null),hf(Au),Il(Wl)}}function Xu(){var ds=this,Wl=un.of(ds,arguments),Au={},Tu=0,lf,hf=".zoom-"+e.event.changedTouches[0].identifier,Sf="touchmove"+hf,pf="touchend"+hf,fc=[],Fe=e.select(ds),Bt=vr(ds);Qr(),Pl(Wl),Fe.on(lr,null).on($r,Qr);function tr(){var di=e.touches(ds);return lf=Z.k,di.forEach(function(nn){nn.identifier in Au&&(Au[nn.identifier]=bi(nn))}),di}function Qr(){var di=e.event.target;e.select(di).on(Sf,vi).on(pf,fi),fc.push(di);for(var nn=e.event.changedTouches,On=0,Ln=nn.length;On1){var ua=wn[0],Hn=wn[1],Ni=ua[0]-Hn[0],Wr=ua[1]-Hn[1];Tu=Ni*Ni+Wr*Wr}}function vi(){var di=e.touches(ds),nn,On,Ln,wn;Us.call(ds);for(var Ls=0,ua=di.length;Ls1?1:le,Le=Le<0?0:Le>1?1:Le,nt=Le<=.5?Le*(1+le):Le+le-Le*le,Ye=2*Le-nt;function ut(wt){return wt>360?wt-=360:wt<0&&(wt+=360),wt<60?Ye+(nt-Ye)*wt/60:wt<180?nt:wt<240?Ye+(nt-Ye)*(240-wt)/60:Ye}function Ht(wt){return Math.round(ut(wt)*255)}return new Fi(Ht(Z+120),Ht(Z),Ht(Z-120))}e.hcl=Nt;function Nt(Z,le,Le){return this instanceof Nt?(this.h=+Z,this.c=+le,void(this.l=+Le)):arguments.length<2?Z instanceof Nt?new Nt(Z.h,Z.c,Z.l):Z instanceof Nr?ti(Z.l,Z.a,Z.b):ti((Z=Xr((Z=e.rgb(Z)).r,Z.g,Z.b)).l,Z.a,Z.b):new Nt(Z,le,Le)}var mr=Nt.prototype=new zi;mr.brighter=function(Z){return new Nt(this.h,this.c,Math.min(100,this.l+Fr*(arguments.length?Z:1)))},mr.darker=function(Z){return new Nt(this.h,this.c,Math.max(0,this.l-Fr*(arguments.length?Z:1)))},mr.rgb=function(){return Lr(this.h,this.c,this.l).rgb()};function Lr(Z,le,Le){return isNaN(Z)&&(Z=0),isNaN(le)&&(le=0),new Nr(Le,Math.cos(Z*=xt)*le,Math.sin(Z)*le)}e.lab=Nr;function Nr(Z,le,Le){return this instanceof Nr?(this.l=+Z,this.a=+le,void(this.b=+Le)):arguments.length<2?Z instanceof Nr?new Nr(Z.l,Z.a,Z.b):Z instanceof Nt?Lr(Z.h,Z.c,Z.l):Xr((Z=Fi(Z)).r,Z.g,Z.b):new Nr(Z,le,Le)}var Fr=18,Hr=.95047,Gr=1,mi=1.08883,Ei=Nr.prototype=new zi;Ei.brighter=function(Z){return new Nr(Math.min(100,this.l+Fr*(arguments.length?Z:1)),this.a,this.b)},Ei.darker=function(Z){return new Nr(Math.max(0,this.l-Fr*(arguments.length?Z:1)),this.a,this.b)},Ei.rgb=function(){return Vi(this.l,this.a,this.b)};function Vi(Z,le,Le){var Ye=(Z+16)/116,nt=Ye+le/500,ut=Ye-Le/200;return nt=Qi(nt)*Hr,Ye=Qi(Ye)*Gr,ut=Qi(ut)*mi,new Fi(oi(3.2404542*nt-1.5371385*Ye-.4985314*ut),oi(-.969266*nt+1.8760108*Ye+.041556*ut),oi(.0556434*nt-.2040259*Ye+1.0572252*ut))}function ti(Z,le,Le){return Z>0?new Nt(Math.atan2(Le,le)*pr,Math.sqrt(le*le+Le*Le),Z):new Nt(NaN,NaN,Z)}function Qi(Z){return Z>.206893034?Z*Z*Z:(Z-4/29)/7.787037}function Yr(Z){return Z>.008856?Math.pow(Z,1/3):7.787037*Z+4/29}function oi(Z){return Math.round(255*(Z<=.00304?12.92*Z:1.055*Math.pow(Z,1/2.4)-.055))}e.rgb=Fi;function Fi(Z,le,Le){return this instanceof Fi?(this.r=~~Z,this.g=~~le,void(this.b=~~Le)):arguments.length<2?Z instanceof Fi?new Fi(Z.r,Z.g,Z.b):xn(""+Z,Fi,qt):new Fi(Z,le,Le)}function rn(Z){return new Fi(Z>>16,Z>>8&255,Z&255)}function tn(Z){return rn(Z)+""}var Di=Fi.prototype=new zi;Di.brighter=function(Z){Z=Math.pow(.7,arguments.length?Z:1);var le=this.r,Le=this.g,Ye=this.b,nt=30;return!le&&!Le&&!Ye?new Fi(nt,nt,nt):(le&&le>4,Ye=Ye>>4|Ye,nt=lr&240,nt=nt>>4|nt,ut=lr&15,ut=ut<<4|ut):Z.length===7&&(Ye=(lr&16711680)>>16,nt=(lr&65280)>>8,ut=lr&255)),le(Ye,nt,ut))}function xi(Z,le,Le){var Ye=Math.min(Z/=255,le/=255,Le/=255),nt=Math.max(Z,le,Le),ut=nt-Ye,Ht,wt,lr=(nt+Ye)/2;return ut?(wt=lr<.5?ut/(nt+Ye):ut/(2-nt-Ye),Z==nt?Ht=(le-Le)/ut+(le0&&lr<1?0:Ht),new Dt(Ht,wt,lr)}function Xr(Z,le,Le){Z=dt(Z),le=dt(le),Le=dt(Le);var Ye=Yr((.4124564*Z+.3575761*le+.1804375*Le)/Hr),nt=Yr((.2126729*Z+.7151522*le+.072175*Le)/Gr),ut=Yr((.0193339*Z+.119192*le+.9503041*Le)/mi);return Nr(116*nt-16,500*(Ye-nt),200*(nt-ut))}function dt(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function $t(Z){var le=parseFloat(Z);return Z.charAt(Z.length-1)==="%"?Math.round(le*2.55):le}var fr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});fr.forEach(function(Z,le){fr.set(Z,rn(le))});function gr(Z){return typeof Z=="function"?Z:function(){return Z}}e.functor=gr,e.xhr=Zr(G);function Zr(Z){return function(le,Le,Ye){return arguments.length===2&&typeof Le=="function"&&(Ye=Le,Le=null),wi(le,Le,Z,Ye)}}function wi(Z,le,Le,Ye){var nt={},ut=e.dispatch("beforesend","progress","load","error"),Ht={},wt=new XMLHttpRequest,lr=null;self.XDomainRequest&&!("withCredentials"in wt)&&/^(http(s)?:)?\/\//.test(Z)&&(wt=new XDomainRequest),"onload"in wt?wt.onload=wt.onerror=Cr:wt.onreadystatechange=function(){wt.readyState>3&&Cr()};function Cr(){var zr=wt.status,ui;if(!zr&&ni(wt)||zr>=200&&zr<300||zr===304){try{ui=Le.call(nt,wt)}catch($r){ut.error.call(nt,$r);return}ut.load.call(nt,ui)}else ut.error.call(nt,wt)}return wt.onprogress=function(zr){var ui=e.event;e.event=zr;try{ut.progress.call(nt,wt)}finally{e.event=ui}},nt.header=function(zr,ui){return zr=(zr+"").toLowerCase(),arguments.length<2?Ht[zr]:(ui==null?delete Ht[zr]:Ht[zr]=ui+"",nt)},nt.mimeType=function(zr){return arguments.length?(le=zr==null?null:zr+"",nt):le},nt.responseType=function(zr){return arguments.length?(lr=zr,nt):lr},nt.response=function(zr){return Le=zr,nt},["get","post"].forEach(function(zr){nt[zr]=function(){return nt.send.apply(nt,[zr].concat(r(arguments)))}}),nt.send=function(zr,ui,$r){if(arguments.length===2&&typeof ui=="function"&&($r=ui,ui=null),wt.open(zr,Z,!0),le!=null&&!("accept"in Ht)&&(Ht.accept=le+",*/*"),wt.setRequestHeader)for(var Oi in Ht)wt.setRequestHeader(Oi,Ht[Oi]);return le!=null&&wt.overrideMimeType&&wt.overrideMimeType(le),lr!=null&&(wt.responseType=lr),$r!=null&&nt.on("error",$r).on("load",function(un){$r(null,un)}),ut.beforesend.call(nt,wt),wt.send(ui==null?null:ui),nt},nt.abort=function(){return wt.abort(),nt},e.rebind(nt,ut,"on"),Ye==null?nt:nt.get($i(Ye))}function $i(Z){return Z.length===1?function(le,Le){Z(le==null?Le:null)}:Z}function ni(Z){var le=Z.responseType;return le&&le!=="text"?Z.response:Z.responseText}e.dsv=function(Z,le){var Le=new RegExp('["'+Z+` ]`),Ye=Z.charCodeAt(0);function nt(Cr,zr,ui){arguments.length<3&&(ui=zr,zr=null);var $r=wi(Cr,le,zr==null?ut:Ht(zr),ui);return $r.row=function(Oi){return arguments.length?$r.response((zr=Oi)==null?ut:Ht(Oi)):zr},$r}function ut(Cr){return nt.parse(Cr.responseText)}function Ht(Cr){return function(zr){return nt.parse(zr.responseText,Cr)}}nt.parse=function(Cr,zr){var ui;return nt.parseRows(Cr,function($r,Oi){if(ui)return ui($r,Oi-1);var un=function(pi){for(var Pi={},ji=$r.length,pn=0;pn=un)return $r;if(pn)return pn=!1,ui;var xo=pi;if(Cr.charCodeAt(xo)===34){for(var no=xo;no++24?(isFinite(le)&&(clearTimeout(Un),Un=setTimeout(oa,le)),Mn=0):(Mn=1,Ga(oa))}e.timer.flush=function(){ka(),so()};function ka(){for(var Z=Date.now(),le=Xi;le;)Z>=le.t&&le.c(Z-le.t)&&(le.c=null),le=le.n;return Z}function so(){for(var Z,le=Xi,ke=1/0;le;)le.c?(le.t=0;--wt)pi.push(nt[Cr[ui[wt]][2]]);for(wt=+Oi;wt<$r.length-un;++wt)pi.push(nt[Cr[$r[wt]][2]]);return pi}return Ye.x=function(nt){return arguments.length?(le=nt,Ye):le},Ye.y=function(nt){return arguments.length?(ke=nt,Ye):ke},Ye};function Yo(Z){for(var le=Z.length,ke=[0,1],Ye=2,nt=2;nt1&&cr(Z[ke[Ye-2]],Z[ke[Ye-1]],Z[nt])<=0;)--Ye;ke[Ye++]=nt}return ke.slice(0,Ye)}function fa(Z,le){return Z[0]-le[0]||Z[1]-le[1]}e.geom.polygon=function(Z){return te(Z,kn),Z};var kn=e.geom.polygon.prototype=[];kn.area=function(){for(var Z=-1,le=this.length,ke,Ye=this[le-1],nt=0;++ZOe)wt=wt.L;else if(Ht=le-Sn(wt,ke),Ht>Oe){if(!wt.R){Ye=wt;break}wt=wt.R}else{ut>-Oe?(Ye=wt.P,nt=wt):Ht>-Oe?(Ye=wt,nt=wt.N):Ye=nt=wt;break}var lr=Po(Z);if(fo.insert(Ye,lr),!(!Ye&&!nt)){if(Ye===nt){Sa(Ye),nt=Po(Ye.site),fo.insert(lr,nt),lr.edge=nt.edge=vo(Ye.site,lr.site),Hi(Ye),Hi(nt);return}if(!nt){lr.edge=vo(Ye.site,lr.site);return}Sa(Ye),Sa(nt);var Cr=Ye.site,zr=Cr.x,ui=Cr.y,$r=Z.x-zr,Oi=Z.y-ui,un=nt.site,pi=un.x-zr,Pi=un.y-ui,ji=2*($r*Pi-Oi*pi),pn=$r*$r+Oi*Oi,an=pi*pi+Pi*Pi,bi={x:(Pi*pn-Oi*an)/ji+zr,y:($r*an-pi*pn)/ji+ui};ps(nt.edge,Cr,un,bi),lr.edge=vo(Cr,Z,null,bi),nt.edge=vo(Z,un,null,bi),Hi(Ye),Hi(nt)}}function Ha(Z,le){var ke=Z.site,Ye=ke.x,nt=ke.y,ut=nt-le;if(!ut)return Ye;var Ht=Z.P;if(!Ht)return-1/0;ke=Ht.site;var wt=ke.x,lr=ke.y,Cr=lr-le;if(!Cr)return wt;var zr=wt-Ye,ui=1/ut-1/Cr,$r=zr/Cr;return ui?(-$r+Math.sqrt($r*$r-2*ui*(zr*zr/(-2*Cr)-lr+Cr/2+nt-ut/2)))/ui+Ye:(Ye+wt)/2}function Sn(Z,le){var ke=Z.N;if(ke)return Ha(ke,le);var Ye=Z.site;return Ye.y===le?Ye.x:1/0}function ao(Z){this.site=Z,this.edges=[]}ao.prototype.prepare=function(){for(var Z=this.edges,le=Z.length,ke;le--;)ke=Z[le].edge,(!ke.b||!ke.a)&&Z.splice(le,1);return Z.sort(Ko),Z.length};function Oa(Z){for(var le=Z[0][0],ke=Z[1][0],Ye=Z[0][1],nt=Z[1][1],ut,Ht,wt,lr,Cr=$a,zr=Cr.length,ui,$r,Oi,un,pi,Pi;zr--;)if(ui=Cr[zr],!(!ui||!ui.prepare()))for(Oi=ui.edges,un=Oi.length,$r=0;$rOe||v(lr-Ht)>Oe)&&(Oi.splice($r,0,new co(As(ui.site,Pi,v(wt-le)Oe?{x:le,y:v(ut-le)Oe?{x:v(Ht-nt)Oe?{x:ke,y:v(ut-ke)Oe?{x:v(Ht-Ye)=-ze)){var $r=lr*lr+Cr*Cr,Oi=zr*zr+Pi*Pi,un=(Pi*$r-Cr*Oi)/ui,pi=(lr*Oi-zr*$r)/ui,Pi=pi+wt,ji=ws.pop()||new Qo;ji.arc=Z,ji.site=nt,ji.x=un+Ht,ji.y=Pi+Math.sqrt(un*un+pi*pi),ji.cy=Pi,Z.circle=ji;for(var pn=null,an=wa._;an;)if(ji.y0)){if(pi/=Oi,Oi<0){if(pi0){if(pi>$r)return;pi>ui&&(ui=pi)}if(pi=ke-wt,!(!Oi&&pi<0)){if(pi/=Oi,Oi<0){if(pi>$r)return;pi>ui&&(ui=pi)}else if(Oi>0){if(pi0)){if(pi/=un,un<0){if(pi0){if(pi>$r)return;pi>ui&&(ui=pi)}if(pi=Ye-lr,!(!un&&pi<0)){if(pi/=un,un<0){if(pi>$r)return;pi>ui&&(ui=pi)}else if(un>0){if(pi0&&(nt.a={x:wt+ui*Oi,y:lr+ui*un}),$r<1&&(nt.b={x:wt+$r*Oi,y:lr+$r*un}),nt}}}}}}function vn(Z){for(var le=ls,ke=Qa(Z[0][0],Z[0][1],Z[1][0],Z[1][1]),Ye=le.length,nt;Ye--;)nt=le[Ye],(!da(nt,Z)||!ke(nt)||v(nt.a.x-nt.b.x)=ut)return;if(zr>$r){if(!Ye)Ye={x:un,y:Ht};else if(Ye.y>=wt)return;ke={x:un,y:wt}}else{if(!Ye)Ye={x:un,y:wt};else if(Ye.y1)if(zr>$r){if(!Ye)Ye={x:(Ht-ji)/Pi,y:Ht};else if(Ye.y>=wt)return;ke={x:(wt-ji)/Pi,y:wt}}else{if(!Ye)Ye={x:(wt-ji)/Pi,y:wt};else if(Ye.y=ut)return;ke={x:ut,y:Pi*ut+ji}}else{if(!Ye)Ye={x:ut,y:Pi*ut+ji};else if(Ye.x=zr&&ji.x<=$r&&ji.y>=ui&&ji.y<=Oi?[[zr,Oi],[$r,Oi],[$r,ui],[zr,ui]]:[];pn.point=lr[pi]}),Cr}function wt(lr){return lr.map(function(Cr,zr){return{x:Math.round(Ye(Cr,zr)/Oe)*Oe,y:Math.round(nt(Cr,zr)/Oe)*Oe,i:zr}})}return Ht.links=function(lr){return qs(wt(lr)).edges.filter(function(Cr){return Cr.l&&Cr.r}).map(function(Cr){return{source:lr[Cr.l.i],target:lr[Cr.r.i]}})},Ht.triangles=function(lr){var Cr=[];return qs(wt(lr)).cells.forEach(function(zr,ui){for(var $r=zr.site,Oi=zr.edges.sort(Ko),un=-1,pi=Oi.length,Pi,ji,pn=Oi[pi-1].edge,an=pn.l===$r?pn.r:pn.l;++unan&&(an=zr.x),zr.y>bi&&(bi=zr.y),Oi.push(zr.x),un.push(zr.y);else for(pi=0;pian&&(an=xo),no>bi&&(bi=no),Oi.push(xo),un.push(no)}var Xo=an-ji,js=bi-pn;Xo>js?bi=pn+Xo:an=ji+js;function El(Il,fu,Xu,Vu,tf,ds,Wl,Au){if(!(isNaN(Xu)||isNaN(Vu)))if(Il.leaf){var Tu=Il.x,lf=Il.y;if(Tu!=null)if(v(Tu-Xu)+v(lf-Vu)<.01)Pl(Il,fu,Xu,Vu,tf,ds,Wl,Au);else{var hf=Il.point;Il.x=Il.y=Il.point=null,Pl(Il,hf,Tu,lf,tf,ds,Wl,Au),Pl(Il,fu,Xu,Vu,tf,ds,Wl,Au)}else Il.x=Xu,Il.y=Vu,Il.point=fu}else Pl(Il,fu,Xu,Vu,tf,ds,Wl,Au)}function Pl(Il,fu,Xu,Vu,tf,ds,Wl,Au){var Tu=(tf+Wl)*.5,lf=(ds+Au)*.5,hf=Xu>=Tu,Mf=Vu>=lf,pf=Mf<<1|hf;Il.leaf=!1,Il=Il.nodes[pf]||(Il.nodes[pf]=_n()),hf?tf=Tu:Wl=Tu,Mf?ds=lf:Au=lf,El(Il,fu,Xu,Vu,tf,ds,Wl,Au)}var pu=_n();if(pu.add=function(Il){El(pu,Il,+ui(Il,++pi),+$r(Il,pi),ji,pn,an,bi)},pu.visit=function(Il){Vn(Il,pu,ji,pn,an,bi)},pu.find=function(Il){return wo(pu,Il[0],Il[1],ji,pn,an,bi)},pi=-1,le==null){for(;++piut||$r>Ht||Oi=xo,js=ke>=no,El=js<<1|Xo,Pl=El+4;Elke&&(ut=le.slice(ke,ut),wt[Ht]?wt[Ht]+=ut:wt[++Ht]=ut),(Ye=Ye[0])===(nt=nt[0])?wt[Ht]?wt[Ht]+=nt:wt[++Ht]=nt:(wt[++Ht]=null,lr.push({i:Ht,x:sn(Ye,nt)})),ke=qn.lastIndex;return ke=0&&!(Ye=e.interpolators[ke](Z,le)););return Ye}e.interpolators=[function(Z,le){var ke=typeof le;return(ke==="string"?fr.has(le.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(le)?Da:$n:le instanceof zi?Da:Array.isArray(le)?Ja:ke==="object"&&isNaN(le)?Xn:sn)(Z,le)}],e.interpolateArray=Ja;function Ja(Z,le){var ke=[],Ye=[],nt=Z.length,ut=le.length,Ht=Math.min(Z.length,le.length),wt;for(wt=0;wt=0?Z.slice(0,le):Z,Ye=le>=0?Z.slice(le+1):"in";return ke=eo.get(ke)||lo,Ye=sa.get(Ye)||G,es(Ye(ke.apply(null,t.call(arguments,1))))};function es(Z){return function(le){return le<=0?0:le>=1?1:Z(le)}}function Na(Z){return function(le){return 1-Z(1-le)}}function en(Z){return function(le){return .5*(le<.5?Z(2*le):2-Z(2-2*le))}}function Pa(Z){return Z*Z}function to(Z){return Z*Z*Z}function yo(Z){if(Z<=0)return 0;if(Z>=1)return 1;var le=Z*Z,ke=le*Z;return 4*(Z<.5?ke:3*(Z-le)+ke-.75)}function Jo(Z){return function(le){return Math.pow(le,Z)}}function Ao(Z){return 1-Math.cos(Z*gt)}function Rn(Z){return Math.pow(2,10*(Z-1))}function _a(Z){return 1-Math.sqrt(1-Z*Z)}function Ws(Z,le){var ke;return arguments.length<2&&(le=.45),arguments.length?ke=le/ht*Math.asin(1/Z):(Z=1,ke=le/4),function(Ye){return 1+Z*Math.pow(2,-10*Ye)*Math.sin((Ye-ke)*ht/le)}}function Ca(Z){return Z||(Z=1.70158),function(le){return le*le*((Z+1)*le-Z)}}function Es(Z){return Z<1/2.75?7.5625*Z*Z:Z<2/2.75?7.5625*(Z-=1.5/2.75)*Z+.75:Z<2.5/2.75?7.5625*(Z-=2.25/2.75)*Z+.9375:7.5625*(Z-=2.625/2.75)*Z+.984375}e.interpolateHcl=Ts;function Ts(Z,le){Z=e.hcl(Z),le=e.hcl(le);var ke=Z.h,Ye=Z.c,nt=Z.l,ut=le.h-ke,Ht=le.c-Ye,wt=le.l-nt;return isNaN(Ht)&&(Ht=0,Ye=isNaN(Ye)?le.c:Ye),isNaN(ut)?(ut=0,ke=isNaN(ke)?le.h:ke):ut>180?ut-=360:ut<-180&&(ut+=360),function(lr){return Lr(ke+ut*lr,Ye+Ht*lr,nt+wt*lr)+""}}e.interpolateHsl=Ho;function Ho(Z,le){Z=e.hsl(Z),le=e.hsl(le);var ke=Z.h,Ye=Z.s,nt=Z.l,ut=le.h-ke,Ht=le.s-Ye,wt=le.l-nt;return isNaN(Ht)&&(Ht=0,Ye=isNaN(Ye)?le.s:Ye),isNaN(ut)?(ut=0,ke=isNaN(ke)?le.h:ke):ut>180?ut-=360:ut<-180&&(ut+=360),function(lr){return qt(ke+ut*lr,Ye+Ht*lr,nt+wt*lr)+""}}e.interpolateLab=Wa;function Wa(Z,le){Z=e.lab(Z),le=e.lab(le);var ke=Z.l,Ye=Z.a,nt=Z.b,ut=le.l-ke,Ht=le.a-Ye,wt=le.b-nt;return function(lr){return Vi(ke+ut*lr,Ye+Ht*lr,nt+wt*lr)+""}}e.interpolateRound=To;function To(Z,le){return le-=Z,function(ke){return Math.round(Z+le*ke)}}e.transform=function(Z){var le=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(ke){if(ke!=null){le.setAttribute("transform",ke);var Ye=le.transform.baseVal.consolidate()}return new ts(Ye?Ye.matrix:Oo)})(Z)};function ts(Z){var le=[Z.a,Z.b],ke=[Z.c,Z.d],Ye=qa(le),nt=Wo(le,ke),ut=qa(on(ke,le,-nt))||0;le[0]*ke[1]180?le+=360:le-Z>180&&(Z+=360),Ye.push({i:ke.push(ko(ke)+"rotate(",null,")")-2,x:sn(Z,le)})):le&&ke.push(ko(ke)+"rotate("+le+")")}function ea(Z,le,ke,Ye){Z!==le?Ye.push({i:ke.push(ko(ke)+"skewX(",null,")")-2,x:sn(Z,le)}):le&&ke.push(ko(ke)+"skewX("+le+")")}function rs(Z,le,ke,Ye){if(Z[0]!==le[0]||Z[1]!==le[1]){var nt=ke.push(ko(ke)+"scale(",null,",",null,")");Ye.push({i:nt-4,x:sn(Z[0],le[0])},{i:nt-2,x:sn(Z[1],le[1])})}else(le[0]!==1||le[1]!==1)&&ke.push(ko(ke)+"scale("+le+")")}function $s(Z,le){var ke=[],Ye=[];return Z=e.transform(Z),le=e.transform(le),oo(Z.translate,le.translate,ke,Ye),za(Z.rotate,le.rotate,ke,Ye),ea(Z.skew,le.skew,ke,Ye),rs(Z.scale,le.scale,ke,Ye),Z=le=null,function(nt){for(var ut=-1,Ht=Ye.length,wt;++ut0?ut=bi:(ke.c=null,ke.t=NaN,ke=null,le.end({type:"end",alpha:ut=0})):bi>0&&(le.start({type:"start",alpha:ut=bi}),ke=ma(Z.tick)),Z):ut},Z.start=function(){var bi,xo=Oi.length,no=un.length,Xo=Ye[0],js=Ye[1],El,Pl;for(bi=0;bi=0;)ut.push(zr=Cr[lr]),zr.parent=wt,zr.depth=wt.depth+1;ke&&(wt.value=0),wt.children=Cr}else ke&&(wt.value=+ke.call(Ye,wt,wt.depth)||0),delete wt.children;return Bo(nt,function(ui){var $r,Oi;Z&&($r=ui.children)&&$r.sort(Z),ke&&(Oi=ui.parent)&&(Oi.value+=ui.value)}),Ht}return Ye.sort=function(nt){return arguments.length?(Z=nt,Ye):Z},Ye.children=function(nt){return arguments.length?(le=nt,Ye):le},Ye.value=function(nt){return arguments.length?(ke=nt,Ye):ke},Ye.revalue=function(nt){return ke&&(Jn(nt,function(ut){ut.children&&(ut.value=0)}),Bo(nt,function(ut){var Ht;ut.children||(ut.value=+ke.call(Ye,ut,ut.depth)||0),(Ht=ut.parent)&&(Ht.value+=ut.value)})),nt},Ye};function Ea(Z,le){return e.rebind(Z,le,"sort","children","value"),Z.nodes=Z,Z.links=zs,Z}function Jn(Z,le){for(var ke=[Z];(Z=ke.pop())!=null;)if(le(Z),(nt=Z.children)&&(Ye=nt.length))for(var Ye,nt;--Ye>=0;)ke.push(nt[Ye])}function Bo(Z,le){for(var ke=[Z],Ye=[];(Z=ke.pop())!=null;)if(Ye.push(Z),(Ht=Z.children)&&(ut=Ht.length))for(var nt=-1,ut,Ht;++ntnt&&(nt=wt),Ye.push(wt)}for(Ht=0;HtYe&&(ke=le,Ye=nt);return ke}function zo(Z){return Z.reduce(io,0)}function io(Z,le){return Z+le[1]}e.layout.histogram=function(){var Z=!0,le=Number,ke=vs,Ye=Io;function nt(ut,$r){for(var wt=[],lr=ut.map(le,this),Cr=ke.call(this,lr,$r),zr=Ye.call(this,Cr,lr,$r),ui,$r=-1,Oi=lr.length,un=zr.length-1,pi=Z?1:1/Oi,Pi;++$r0)for($r=-1;++$r=Cr[0]&&Pi<=Cr[1]&&(ui=wt[e.bisect(zr,Pi,1,un)-1],ui.y+=pi,ui.push(ut[$r]));return wt}return nt.value=function(ut){return arguments.length?(le=ut,nt):le},nt.range=function(ut){return arguments.length?(ke=gr(ut),nt):ke},nt.bins=function(ut){return arguments.length?(Ye=typeof ut=="number"?function(Ht){return Ra(Ht,ut)}:gr(ut),nt):Ye},nt.frequency=function(ut){return arguments.length?(Z=!!ut,nt):Z},nt};function Io(Z,le){return Ra(Z,Math.ceil(Math.log(le.length)/Math.LN2+1))}function Ra(Z,le){for(var ke=-1,Ye=+Z[0],nt=(Z[1]-Ye)/le,ut=[];++ke<=le;)ut[ke]=nt*ke+Ye;return ut}function vs(Z){return[e.min(Z),e.max(Z)]}e.layout.pack=function(){var Z=e.layout.hierarchy().sort(fs),le=0,ke=[1,1],Ye;function nt(ut,Ht){var wt=Z.call(this,ut,Ht),lr=wt[0],Cr=ke[0],zr=ke[1],ui=Ye==null?Math.sqrt:typeof Ye=="function"?Ye:function(){return Ye};if(lr.x=lr.y=0,Bo(lr,function(Oi){Oi.r=+ui(Oi.value)}),Bo(lr,Do),le){var $r=le*(Ye?1:Math.max(2*lr.r/Cr,2*lr.r/zr))/2;Bo(lr,function(Oi){Oi.r+=$r}),Bo(lr,Do),Bo(lr,function(Oi){Oi.r-=$r})}return hl(lr,Cr/2,zr/2,Ye?1:1/Math.max(2*lr.r/Cr,2*lr.r/zr)),wt}return nt.size=function(ut){return arguments.length?(ke=ut,nt):ke},nt.radius=function(ut){return arguments.length?(Ye=ut==null||typeof ut=="function"?ut:+ut,nt):Ye},nt.padding=function(ut){return arguments.length?(le=+ut,nt):le},Ea(nt,Z)};function fs(Z,le){return Z.value-le.value}function cl(Z,le){var ke=Z._pack_next;Z._pack_next=le,le._pack_prev=Z,le._pack_next=ke,ke._pack_prev=le}function el(Z,le){Z._pack_next=le,le._pack_prev=Z}function Hs(Z,le){var ke=le.x-Z.x,Ye=le.y-Z.y,nt=Z.r+le.r;return .999*nt*nt>ke*ke+Ye*Ye}function Do(Z){if(!(le=Z.children)||!($r=le.length))return;var le,ke=1/0,Ye=-1/0,nt=1/0,ut=-1/0,Ht,wt,lr,Cr,zr,ui,$r;function Oi(bi){ke=Math.min(bi.x-bi.r,ke),Ye=Math.max(bi.x+bi.r,Ye),nt=Math.min(bi.y-bi.r,nt),ut=Math.max(bi.y+bi.r,ut)}if(le.forEach(tl),Ht=le[0],Ht.x=-Ht.r,Ht.y=0,Oi(Ht),$r>1&&(wt=le[1],wt.x=wt.r,wt.y=0,Oi(wt),$r>2))for(lr=le[2],Fa(Ht,wt,lr),Oi(lr),cl(Ht,lr),Ht._pack_prev=lr,cl(lr,wt),wt=Ht._pack_next,Cr=3;Cr<$r;Cr++){Fa(Ht,wt,lr=le[Cr]);var un=0,pi=1,Pi=1;for(zr=wt._pack_next;zr!==wt;zr=zr._pack_next,pi++)if(Hs(zr,lr)){un=1;break}if(un==1)for(ui=Ht._pack_prev;ui!==zr._pack_prev&&!Hs(ui,lr);ui=ui._pack_prev,Pi++);un?(piPi.x&&(Pi=xo),xo.depth>ji.depth&&(ji=xo)});var pn=le(pi,Pi)/2-pi.x,an=ke[0]/(Pi.x+le(Pi,pi)/2+pn),bi=ke[1]/(ji.depth||1);Jn(Oi,function(xo){xo.x=(xo.x+pn)*an,xo.y=xo.depth*bi})}return $r}function ut(zr){for(var ui={A:null,children:[zr]},$r=[ui],Oi;(Oi=$r.pop())!=null;)for(var un=Oi.children,pi,Pi=0,ji=un.length;Pi0&&(Is(St(pi,zr,$r),zr,xo),ji+=xo,pn+=xo),an+=pi.m,ji+=Oi.m,bi+=Pi.m,pn+=un.m;pi&&!Ds(un)&&(un.t=pi,un.m+=an-pn),Oi&&!jo(Pi)&&(Pi.t=Oi,Pi.m+=ji-bi,$r=zr)}return $r}function Cr(zr){zr.x*=ke[0],zr.y=zr.depth*ke[1]}return nt.separation=function(zr){return arguments.length?(le=zr,nt):le},nt.size=function(zr){return arguments.length?(Ye=(ke=zr)==null?Cr:null,nt):Ye?null:ke},nt.nodeSize=function(zr){return arguments.length?(Ye=(ke=zr)==null?null:Cr,nt):Ye?ke:null},Ea(nt,Z)};function Ms(Z,le){return Z.parent==le.parent?1:2}function jo(Z){var le=Z.children;return le.length?le[0]:Z.t}function Ds(Z){var le=Z.children,ke;return(ke=le.length)?le[ke-1]:Z.t}function Is(Z,le,ke){var Ye=ke/(le.i-Z.i);le.c-=Ye,le.s+=ke,Z.c+=Ye,le.z+=ke,le.m+=ke}function Os(Z){for(var le=0,ke=0,Ye=Z.children,nt=Ye.length,ut;--nt>=0;)ut=Ye[nt],ut.z+=le,ut.m+=le,le+=ut.s+(ke+=ut.c)}function St(Z,le,ke){return Z.a.parent===le.parent?Z.a:ke}e.layout.cluster=function(){var Z=e.layout.hierarchy().sort(null).value(null),le=Ms,ke=[1,1],Ye=!1;function nt(ut,Ht){var wt=Z.call(this,ut,Ht),lr=wt[0],Cr,zr=0;Bo(lr,function(pi){var Pi=pi.children;Pi&&Pi.length?(pi.x=xr(Pi),pi.y=Ut(Pi)):(pi.x=Cr?zr+=le(pi,Cr):0,pi.y=0,Cr=pi)});var ui=dr(lr),$r=Rr(lr),Oi=ui.x-le(ui,$r)/2,un=$r.x+le($r,ui)/2;return Bo(lr,Ye?function(pi){pi.x=(pi.x-lr.x)*ke[0],pi.y=(lr.y-pi.y)*ke[1]}:function(pi){pi.x=(pi.x-Oi)/(un-Oi)*ke[0],pi.y=(1-(lr.y?pi.y/lr.y:1))*ke[1]}),wt}return nt.separation=function(ut){return arguments.length?(le=ut,nt):le},nt.size=function(ut){return arguments.length?(Ye=(ke=ut)==null,nt):Ye?null:ke},nt.nodeSize=function(ut){return arguments.length?(Ye=(ke=ut)!=null,nt):Ye?ke:null},Ea(nt,Z)};function Ut(Z){return 1+e.max(Z,function(le){return le.y})}function xr(Z){return Z.reduce(function(le,ke){return le+ke.x},0)/Z.length}function dr(Z){var le=Z.children;return le&&le.length?dr(le[0]):Z}function Rr(Z){var le=Z.children,ke;return le&&(ke=le.length)?Rr(le[ke-1]):Z}e.layout.treemap=function(){var Z=e.layout.hierarchy(),le=Math.round,ke=[1,1],Ye=null,nt=yi,ut=!1,Ht,wt="squarify",lr=.5*(1+Math.sqrt(5));function Cr(pi,Pi){for(var ji=-1,pn=pi.length,an,bi;++ji0;)pn.push(bi=an[js-1]),pn.area+=bi.area,wt!=="squarify"||(no=$r(pn,Xo))<=xo?(an.pop(),xo=no):(pn.area-=pn.pop().area,Oi(pn,Xo,ji,!1),Xo=Math.min(ji.dx,ji.dy),pn.length=pn.area=0,xo=1/0);pn.length&&(Oi(pn,Xo,ji,!0),pn.length=pn.area=0),Pi.forEach(zr)}}function ui(pi){var Pi=pi.children;if(Pi&&Pi.length){var ji=nt(pi),pn=Pi.slice(),an,bi=[];for(Cr(pn,ji.dx*ji.dy/pi.value),bi.area=0;an=pn.pop();)bi.push(an),bi.area+=an.area,an.z!=null&&(Oi(bi,an.z?ji.dx:ji.dy,ji,!pn.length),bi.length=bi.area=0);Pi.forEach(ui)}}function $r(pi,Pi){for(var ji=pi.area,pn,an=0,bi=1/0,xo=-1,no=pi.length;++xoan&&(an=pn));return ji*=ji,Pi*=Pi,ji?Math.max(Pi*an*lr/ji,ji/(Pi*bi*lr)):1/0}function Oi(pi,Pi,ji,pn){var an=-1,bi=pi.length,xo=ji.x,no=ji.y,Xo=Pi?le(pi.area/Pi):0,js;if(Pi==ji.dx){for((pn||Xo>ji.dy)&&(Xo=ji.dy);++anji.dx)&&(Xo=ji.dx);++an1);return Z+le*Ye*Math.sqrt(-2*Math.log(ut)/ut)}},logNormal:function(){var Z=e.random.normal.apply(e,arguments);return function(){return Math.exp(Z())}},bates:function(Z){var le=e.random.irwinHall(Z);return function(){return le()/Z}},irwinHall:function(Z){return function(){for(var le=0,ke=0;ke2?Si:Fn,Cr=Ye?Rs:us;return nt=lr(Z,le,Cr,ke),ut=lr(le,Z,Cr,Eo),wt}function wt(lr){return nt(lr)}return wt.invert=function(lr){return ut(lr)},wt.domain=function(lr){return arguments.length?(Z=lr.map(Number),Ht()):Z},wt.range=function(lr){return arguments.length?(le=lr,Ht()):le},wt.rangeRound=function(lr){return wt.range(lr).interpolate(To)},wt.clamp=function(lr){return arguments.length?(Ye=lr,Ht()):Ye},wt.interpolate=function(lr){return arguments.length?(ke=lr,Ht()):ke},wt.ticks=function(lr){return pa(Z,lr)},wt.tickFormat=function(lr,Cr){return d3_scale_linearTickFormat(Z,lr,Cr)},wt.nice=function(lr){return ya(Z,lr),Ht()},wt.copy=function(){return Gn(Z,le,ke,Ye)},Ht()}function ta(Z,le){return e.rebind(Z,le,"range","rangeRound","interpolate","clamp")}function ya(Z,le){return Li(Z,hi(ia(Z,le)[2])),Li(Z,hi(ia(Z,le)[2])),Z}function ia(Z,le){le==null&&(le=10);var ke=ki(Z),Ye=ke[1]-ke[0],nt=Math.pow(10,Math.floor(Math.log(Ye/le)/Math.LN10)),ut=le/Ye*nt;return ut<=.15?nt*=10:ut<=.35?nt*=5:ut<=.75&&(nt*=2),ke[0]=Math.ceil(ke[0]/nt)*nt,ke[1]=Math.floor(ke[1]/nt)*nt+nt*.5,ke[2]=nt,ke}function pa(Z,le){return e.range.apply(e,ia(Z,le))}var va={s:1,g:1,p:1,r:1,e:1};function zn(Z){return-Math.floor(Math.log(Z)/Math.LN10+.01)}function is(Z,le){var ke=zn(le[2]);return Z in va?Math.abs(ke-zn(Math.max(v(le[0]),v(le[1]))))+ +(Z!=="e"):ke-(Z==="%")*2}e.scale.log=function(){return Cs(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Cs(Z,le,ke,Ye){function nt(wt){return(ke?Math.log(wt<0?0:wt):-Math.log(wt>0?0:-wt))/Math.log(le)}function ut(wt){return ke?Math.pow(le,wt):-Math.pow(le,-wt)}function Ht(wt){return Z(nt(wt))}return Ht.invert=function(wt){return ut(Z.invert(wt))},Ht.domain=function(wt){return arguments.length?(ke=wt[0]>=0,Z.domain((Ye=wt.map(Number)).map(nt)),Ht):Ye},Ht.base=function(wt){return arguments.length?(le=+wt,Z.domain(Ye.map(nt)),Ht):le},Ht.nice=function(){var wt=Li(Ye.map(nt),ke?Math:Ks);return Z.domain(wt),Ye=wt.map(ut),Ht},Ht.ticks=function(){var wt=ki(Ye),lr=[],Cr=wt[0],zr=wt[1],ui=Math.floor(nt(Cr)),$r=Math.ceil(nt(zr)),Oi=le%1?2:le;if(isFinite($r-ui)){if(ke){for(;ui<$r;ui++)for(var un=1;un0;un--)lr.push(ut(ui)*un);for(ui=0;lr[ui]zr;$r--);lr=lr.slice(ui,$r)}return lr},Ht.copy=function(){return Cs(Z.copy(),le,ke,Ye)},ta(Ht,Z)}var Ks={floor:function(Z){return-Math.ceil(-Z)},ceil:function(Z){return-Math.floor(-Z)}};e.scale.pow=function(){return dl(e.scale.linear(),1,[0,1])};function dl(Z,le,ke){var Ye=xl(le),nt=xl(1/le);function ut(Ht){return Z(Ye(Ht))}return ut.invert=function(Ht){return nt(Z.invert(Ht))},ut.domain=function(Ht){return arguments.length?(Z.domain((ke=Ht.map(Number)).map(Ye)),ut):ke},ut.ticks=function(Ht){return pa(ke,Ht)},ut.tickFormat=function(Ht,wt){return d3_scale_linearTickFormat(ke,Ht,wt)},ut.nice=function(Ht){return ut.domain(ya(ke,Ht))},ut.exponent=function(Ht){return arguments.length?(Ye=xl(le=Ht),nt=xl(1/le),Z.domain(ke.map(Ye)),ut):le},ut.copy=function(){return dl(Z.copy(),le,ke)},ta(ut,Z)}function xl(Z){return function(le){return le<0?-Math.pow(-le,Z):Math.pow(le,Z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Bl([],{t:"range",a:[[]]})};function Bl(Z,le){var ke,Ye,nt;function ut(wt){return Ye[((ke.get(wt)||(le.t==="range"?ke.set(wt,Z.push(wt)):NaN))-1)%Ye.length]}function Ht(wt,lr){return e.range(Z.length).map(function(Cr){return wt+lr*Cr})}return ut.domain=function(wt){if(!arguments.length)return Z;Z=[],ke=new A;for(var lr=-1,Cr=wt.length,zr;++lr0?ke[ut-1]:Z[0],ut$r?0:1;if(zr=st)return lr(zr,un)+(Cr?lr(Cr,1-un):"")+"Z";var pi,Pi,ji,pn,an=0,bi=0,xo,no,Xo,js,El,Pl,pu,Il,fu=[];if((pn=(+Ht.apply(this,arguments)||0)/2)&&(ji=Ye===ll?Math.sqrt(Cr*Cr+zr*zr):+Ye.apply(this,arguments),un||(bi*=-1),zr&&(bi=ii(ji/zr*Math.sin(pn))),Cr&&(an=ii(ji/Cr*Math.sin(pn)))),zr){xo=zr*Math.cos(ui+bi),no=zr*Math.sin(ui+bi),Xo=zr*Math.cos($r-bi),js=zr*Math.sin($r-bi);var Xu=Math.abs($r-ui-2*bi)<=Re?0:1;if(bi&&Ll(xo,no,Xo,js)===un^Xu){var Vu=(ui+$r)/2;xo=zr*Math.cos(Vu),no=zr*Math.sin(Vu),Xo=js=null}}else xo=no=0;if(Cr){El=Cr*Math.cos($r-an),Pl=Cr*Math.sin($r-an),pu=Cr*Math.cos(ui+an),Il=Cr*Math.sin(ui+an);var tf=Math.abs(ui-$r+2*an)<=Re?0:1;if(an&&Ll(El,Pl,pu,Il)===1-un^tf){var ds=(ui+$r)/2;El=Cr*Math.cos(ds),Pl=Cr*Math.sin(ds),pu=Il=null}}else El=Pl=0;if(Oi>Oe&&(pi=Math.min(Math.abs(zr-Cr)/2,+ke.apply(this,arguments)))>.001){Pi=Cr0?0:1}function ms(Z,le,ke,Ye,nt){var ut=Z[0]-le[0],Ht=Z[1]-le[1],wt=(nt?Ye:-Ye)/Math.sqrt(ut*ut+Ht*Ht),lr=wt*Ht,Cr=-wt*ut,zr=Z[0]+lr,ui=Z[1]+Cr,$r=le[0]+lr,Oi=le[1]+Cr,un=(zr+$r)/2,pi=(ui+Oi)/2,Pi=$r-zr,ji=Oi-ui,pn=Pi*Pi+ji*ji,an=ke-Ye,bi=zr*Oi-$r*ui,xo=(ji<0?-1:1)*Math.sqrt(Math.max(0,an*an*pn-bi*bi)),no=(bi*ji-Pi*xo)/pn,Xo=(-bi*Pi-ji*xo)/pn,js=(bi*ji+Pi*xo)/pn,El=(-bi*Pi+ji*xo)/pn,Pl=no-un,pu=Xo-pi,Il=js-un,fu=El-pi;return Pl*Pl+pu*pu>Il*Il+fu*fu&&(no=js,Xo=El),[[no-lr,Xo-Cr],[no*ke/an,Xo*ke/an]]}function Bs(){return!0}function Xl(Z){var le=Kr,ke=Ia,Ye=Bs,nt=Nl,ut=nt.key,Ht=.7;function wt(lr){var Cr=[],zr=[],ui=-1,$r=lr.length,Oi,un=gr(le),pi=gr(ke);function Pi(){Cr.push("M",nt(Z(zr),Ht))}for(;++ui<$r;)Ye.call(this,Oi=lr[ui],ui)?zr.push([+un.call(this,Oi,ui),+pi.call(this,Oi,ui)]):zr.length&&(Pi(),zr=[]);return zr.length&&Pi(),Cr.length?Cr.join(""):null}return wt.x=function(lr){return arguments.length?(le=lr,wt):le},wt.y=function(lr){return arguments.length?(ke=lr,wt):ke},wt.defined=function(lr){return arguments.length?(Ye=lr,wt):Ye},wt.interpolate=function(lr){return arguments.length?(typeof lr=="function"?ut=nt=lr:ut=(nt=Gl.get(lr)||Nl).key,wt):ut},wt.tension=function(lr){return arguments.length?(Ht=lr,wt):Ht},wt}e.svg.line=function(){return Xl(G)};var Gl=e.map({linear:Nl,"linear-closed":ue,step:w,"step-before":q,"step-after":Q,basis:Dt,"basis-open":Qt,"basis-closed":rr,bundle:Mr,cardinal:Ue,"cardinal-open":ee,"cardinal-closed":fe,monotone:Gt});Gl.forEach(function(Z,le){le.key=Z,le.closed=/-closed$/.test(Z)});function Nl(Z){return Z.length>1?Z.join("L"):Z+"Z"}function ue(Z){return Z.join("L")+"Z"}function w(Z){for(var le=0,ke=Z.length,Ye=Z[0],nt=[Ye[0],",",Ye[1]];++le1&&nt.push("H",Ye[0]),nt.join("")}function q(Z){for(var le=0,ke=Z.length,Ye=Z[0],nt=[Ye[0],",",Ye[1]];++le1){wt=le[1],ut=Z[lr],lr++,Ye+="C"+(nt[0]+Ht[0])+","+(nt[1]+Ht[1])+","+(ut[0]-wt[0])+","+(ut[1]-wt[1])+","+ut[0]+","+ut[1];for(var Cr=2;Cr9&&(ut=ke*3/Math.sqrt(ut),Ht[wt]=ut*Ye,Ht[wt+1]=ut*nt));for(wt=-1;++wt<=lr;)ut=(Z[Math.min(lr,wt+1)][0]-Z[Math.max(0,wt-1)][0])/(6*(1+Ht[wt]*Ht[wt])),le.push([ut||0,Ht[wt]*ut||0]);return le}function Gt(Z){return Z.length<3?Nl(Z):Z[0]+at(Z,mt(Z))}e.svg.line.radial=function(){var Z=Xl(er);return Z.radius=Z.x,delete Z.x,Z.angle=Z.y,delete Z.y,Z};function er(Z){for(var le,ke=-1,Ye=Z.length,nt,ut;++keRe)+",1 "+ui}function Cr(zr,ui,$r,Oi){return"Q 0,0 "+Oi}return ut.radius=function(zr){return arguments.length?(ke=gr(zr),ut):ke},ut.source=function(zr){return arguments.length?(Z=gr(zr),ut):Z},ut.target=function(zr){return arguments.length?(le=gr(zr),ut):le},ut.startAngle=function(zr){return arguments.length?(Ye=gr(zr),ut):Ye},ut.endAngle=function(zr){return arguments.length?(nt=gr(zr),ut):nt},ut};function ri(Z){return Z.radius}e.svg.diagonal=function(){var Z=wr,le=Ir,ke=si;function Ye(nt,ut){var Ht=Z.call(this,nt,ut),wt=le.call(this,nt,ut),lr=(Ht.y+wt.y)/2,Cr=[Ht,{x:Ht.x,y:lr},{x:wt.x,y:lr},wt];return Cr=Cr.map(ke),"M"+Cr[0]+"C"+Cr[1]+" "+Cr[2]+" "+Cr[3]}return Ye.source=function(nt){return arguments.length?(Z=gr(nt),Ye):Z},Ye.target=function(nt){return arguments.length?(le=gr(nt),Ye):le},Ye.projection=function(nt){return arguments.length?(ke=nt,Ye):ke},Ye};function si(Z){return[Z.x,Z.y]}e.svg.diagonal.radial=function(){var Z=e.svg.diagonal(),le=si,ke=Z.projection;return Z.projection=function(Ye){return arguments.length?ke(Mi(le=Ye)):le},Z};function Mi(Z){return function(){var le=Z.apply(this,arguments),ke=le[0],Ye=le[1]-gt;return[ke*Math.cos(Ye),ke*Math.sin(Ye)]}}e.svg.symbol=function(){var Z=Zn,le=cn;function ke(Ye,nt){return(Ua.get(Z.call(this,Ye,nt))||Yn)(le.call(this,Ye,nt))}return ke.type=function(Ye){return arguments.length?(Z=gr(Ye),ke):Z},ke.size=function(Ye){return arguments.length?(le=gr(Ye),ke):le},ke};function cn(){return 64}function Zn(){return"circle"}function Yn(Z){var le=Math.sqrt(Z/Re);return"M0,"+le+"A"+le+","+le+" 0 1,1 0,"+-le+"A"+le+","+le+" 0 1,1 0,"+le+"Z"}var Ua=e.map({circle:Yn,cross:function(Z){var le=Math.sqrt(Z/5)/2;return"M"+-3*le+","+-le+"H"+-le+"V"+-3*le+"H"+le+"V"+-le+"H"+3*le+"V"+le+"H"+le+"V"+3*le+"H"+-le+"V"+le+"H"+-3*le+"Z"},diamond:function(Z){var le=Math.sqrt(Z/(2*vl)),ke=le*vl;return"M0,"+-le+"L"+ke+",0 0,"+le+" "+-ke+",0Z"},square:function(Z){var le=Math.sqrt(Z)/2;return"M"+-le+","+-le+"L"+le+","+-le+" "+le+","+le+" "+-le+","+le+"Z"},"triangle-down":function(Z){var le=Math.sqrt(Z/Fo),ke=le*Fo/2;return"M0,"+ke+"L"+le+","+-ke+" "+-le+","+-ke+"Z"},"triangle-up":function(Z){var le=Math.sqrt(Z/Fo),ke=le*Fo/2;return"M0,"+-ke+"L"+le+","+ke+" "+-le+","+ke+"Z"}});e.svg.symbolTypes=Ua.keys();var Fo=Math.sqrt(3),vl=Math.tan(30*xt);Ie.transition=function(Z){for(var le=ql||++Yl,ke=ru(Z),Ye=[],nt,ut,Ht=ou||{time:Date.now(),ease:yo,delay:0,duration:250},wt=-1,lr=this.length;++wt0;)ui[--pn].call(Z,ji);if(Pi>=1)return Ht.event&&Ht.event.end.call(Z,Z.__data__,le),--ut.count?delete ut[Ye]:delete Z[ke],1}Ht||(wt=nt.time,lr=ma($r,0,wt),Ht=ut[Ye]={tween:new A,time:wt,timer:lr,delay:nt.delay,duration:nt.duration,ease:nt.ease,index:le},nt=null,++ut.count)}e.svg.axis=function(){var Z=e.scale.linear(),le=$u,ke=6,Ye=6,nt=3,ut=[10],Ht=null,wt;function lr(Cr){Cr.each(function(){var zr=e.select(this),ui=this.__chart__||Z,$r=this.__chart__=Z.copy(),Oi=Ht==null?$r.ticks?$r.ticks.apply($r,ut):$r.domain():Ht,un=wt==null?$r.tickFormat?$r.tickFormat.apply($r,ut):G:wt,pi=zr.selectAll(".tick").data(Oi,$r),Pi=pi.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),ji=e.transition(pi.exit()).style("opacity",Oe).remove(),pn=e.transition(pi.order()).style("opacity",1),an=Math.max(ke,0)+nt,bi,xo=Ki($r),no=zr.selectAll(".domain").data([0]),Xo=(no.enter().append("path").attr("class","domain"),e.transition(no));Pi.append("line"),Pi.append("text");var js=Pi.select("line"),El=pn.select("line"),Pl=pi.select("text").text(un),pu=Pi.select("text"),Il=pn.select("text"),fu=le==="top"||le==="left"?-1:1,Xu,Vu,tf,ds;if(le==="bottom"||le==="top"?(bi=Wu,Xu="x",tf="y",Vu="x2",ds="y2",Pl.attr("dy",fu<0?"0em":".71em").style("text-anchor","middle"),Xo.attr("d","M"+xo[0]+","+fu*Ye+"V0H"+xo[1]+"V"+fu*Ye)):(bi=ju,Xu="y",tf="x",Vu="y2",ds="x2",Pl.attr("dy",".32em").style("text-anchor",fu<0?"end":"start"),Xo.attr("d","M"+fu*Ye+","+xo[0]+"H0V"+xo[1]+"H"+fu*Ye)),js.attr(ds,fu*ke),pu.attr(tf,fu*an),El.attr(Vu,0).attr(ds,fu*ke),Il.attr(Xu,0).attr(tf,fu*an),$r.rangeBand){var Wl=$r,Au=Wl.rangeBand()/2;ui=$r=function(Tu){return Wl(Tu)+Au}}else ui.rangeBand?ui=$r:ji.call(bi,$r,ui);Pi.call(bi,ui,$r),pn.call(bi,$r,$r)})}return lr.scale=function(Cr){return arguments.length?(Z=Cr,lr):Z},lr.orient=function(Cr){return arguments.length?(le=Cr in Ku?Cr+"":$u,lr):le},lr.ticks=function(){return arguments.length?(ut=r(arguments),lr):ut},lr.tickValues=function(Cr){return arguments.length?(Ht=Cr,lr):Ht},lr.tickFormat=function(Cr){return arguments.length?(wt=Cr,lr):wt},lr.tickSize=function(Cr){var zr=arguments.length;return zr?(ke=+Cr,Ye=+arguments[zr-1],lr):ke},lr.innerTickSize=function(Cr){return arguments.length?(ke=+Cr,lr):ke},lr.outerTickSize=function(Cr){return arguments.length?(Ye=+Cr,lr):Ye},lr.tickPadding=function(Cr){return arguments.length?(nt=+Cr,lr):nt},lr.tickSubdivide=function(){return arguments.length&&lr},lr};var $u="bottom",Ku={top:1,right:1,bottom:1,left:1};function Wu(Z,le,ke){Z.attr("transform",function(Ye){var nt=le(Ye);return"translate("+(isFinite(nt)?nt:ke(Ye))+",0)"})}function ju(Z,le,ke){Z.attr("transform",function(Ye){var nt=le(Ye);return"translate(0,"+(isFinite(nt)?nt:ke(Ye))+")"})}e.svg.brush=function(){var Z=Ce(zr,"brushstart","brush","brushend"),le=null,ke=null,Ye=[0,0],nt=[0,0],ut,Ht,wt=!0,lr=!0,Cr=_f[0];function zr(pi){pi.each(function(){var Pi=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",un).on("touchstart.brush",un),ji=Pi.selectAll(".background").data([0]);ji.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Pi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pn=Pi.selectAll(".resize").data(Cr,G);pn.exit().remove(),pn.enter().append("g").attr("class",function(no){return"resize "+no}).style("cursor",function(no){return sf[no]}).append("rect").attr("x",function(no){return/[ew]$/.test(no)?-3:null}).attr("y",function(no){return/^[ns]/.test(no)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pn.style("display",zr.empty()?"none":null);var an=e.transition(Pi),bi=e.transition(ji),xo;le&&(xo=Ki(le),bi.attr("x",xo[0]).attr("width",xo[1]-xo[0]),$r(an)),ke&&(xo=Ki(ke),bi.attr("y",xo[0]).attr("height",xo[1]-xo[0]),Oi(an)),ui(an)})}zr.event=function(pi){pi.each(function(){var Pi=Z.of(this,arguments),ji={x:Ye,y:nt,i:ut,j:Ht},pn=this.__chart__||ji;this.__chart__=ji,ql?e.select(this).transition().each("start.brush",function(){ut=pn.i,Ht=pn.j,Ye=pn.x,nt=pn.y,Pi({type:"brushstart"})}).tween("brush:brush",function(){var an=Ja(Ye,ji.x),bi=Ja(nt,ji.y);return ut=Ht=null,function(xo){Ye=ji.x=an(xo),nt=ji.y=bi(xo),Pi({type:"brush",mode:"resize"})}}).each("end.brush",function(){ut=ji.i,Ht=ji.j,Pi({type:"brush",mode:"resize"}),Pi({type:"brushend"})}):(Pi({type:"brushstart"}),Pi({type:"brush",mode:"resize"}),Pi({type:"brushend"}))})};function ui(pi){pi.selectAll(".resize").attr("transform",function(Pi){return"translate("+Ye[+/e$/.test(Pi)]+","+nt[+/^s/.test(Pi)]+")"})}function $r(pi){pi.select(".extent").attr("x",Ye[0]),pi.selectAll(".extent,.n>rect,.s>rect").attr("width",Ye[1]-Ye[0])}function Oi(pi){pi.select(".extent").attr("y",nt[0]),pi.selectAll(".extent,.e>rect,.w>rect").attr("height",nt[1]-nt[0])}function un(){var pi=this,Pi=e.select(e.event.target),ji=Z.of(pi,arguments),pn=e.select(pi),an=Pi.datum(),bi=!/^(n|s)$/.test(an)&&le,xo=!/^(e|w)$/.test(an)&&ke,no=Pi.classed("extent"),Xo=vr(pi),js,El=e.mouse(pi),Pl,pu=e.select(a(pi)).on("keydown.brush",Xu).on("keyup.brush",Vu);if(e.event.changedTouches?pu.on("touchmove.brush",tf).on("touchend.brush",Wl):pu.on("mousemove.brush",tf).on("mouseup.brush",Wl),pn.interrupt().selectAll("*").interrupt(),no)El[0]=Ye[0]-El[0],El[1]=nt[0]-El[1];else if(an){var Il=+/w$/.test(an),fu=+/^n/.test(an);Pl=[Ye[1-Il]-El[0],nt[1-fu]-El[1]],El[0]=Ye[Il],El[1]=nt[fu]}else e.event.altKey&&(js=El.slice());pn.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Pi.style("cursor")),ji({type:"brushstart"}),tf();function Xu(){e.event.keyCode==32&&(no||(js=null,El[0]-=Ye[1],El[1]-=nt[1],no=2),me())}function Vu(){e.event.keyCode==32&&no==2&&(El[0]+=Ye[1],El[1]+=nt[1],no=0,me())}function tf(){var Au=e.mouse(pi),Tu=!1;Pl&&(Au[0]+=Pl[0],Au[1]+=Pl[1]),no||(e.event.altKey?(js||(js=[(Ye[0]+Ye[1])/2,(nt[0]+nt[1])/2]),El[0]=Ye[+(Au[0]{(function(e,t){typeof xL=="object"&&typeof Ree!="undefined"?t(xL):(e=e||self,t(e.d3=e.d3||{}))})(xL,function(e){"use strict";var t=new Date,r=new Date;function n(oe,Ne,vt,lt){function We(Ve){return oe(Ve=arguments.length===0?new Date:new Date(+Ve)),Ve}return We.floor=function(Ve){return oe(Ve=new Date(+Ve)),Ve},We.ceil=function(Ve){return oe(Ve=new Date(Ve-1)),Ne(Ve,1),oe(Ve),Ve},We.round=function(Ve){var et=We(Ve),tt=We.ceil(Ve);return Ve-et0))return Lt;do Lt.push(jt=new Date(+Ve)),Ne(Ve,tt),oe(Ve);while(jt=et)for(;oe(et),!Ve(et);)et.setTime(et-1)},function(et,tt){if(et>=et)if(tt<0)for(;++tt<=0;)for(;Ne(et,-1),!Ve(et););else for(;--tt>=0;)for(;Ne(et,1),!Ve(et););})},vt&&(We.count=function(Ve,et){return t.setTime(+Ve),r.setTime(+et),oe(t),oe(r),Math.floor(vt(t,r))},We.every=function(Ve){return Ve=Math.floor(Ve),!isFinite(Ve)||!(Ve>0)?null:Ve>1?We.filter(lt?function(et){return lt(et)%Ve===0}:function(et){return We.count(0,et)%Ve===0}):We}),We}var i=n(function(){},function(oe,Ne){oe.setTime(+oe+Ne)},function(oe,Ne){return Ne-oe});i.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?n(function(Ne){Ne.setTime(Math.floor(Ne/oe)*oe)},function(Ne,vt){Ne.setTime(+Ne+vt*oe)},function(Ne,vt){return(vt-Ne)/oe}):i};var a=i.range,o=1e3,s=6e4,u=36e5,l=864e5,f=6048e5,c=n(function(oe){oe.setTime(oe-oe.getMilliseconds())},function(oe,Ne){oe.setTime(+oe+Ne*o)},function(oe,Ne){return(Ne-oe)/o},function(oe){return oe.getUTCSeconds()}),h=c.range,d=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*o)},function(oe,Ne){oe.setTime(+oe+Ne*s)},function(oe,Ne){return(Ne-oe)/s},function(oe){return oe.getMinutes()}),p=d.range,y=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*o-oe.getMinutes()*s)},function(oe,Ne){oe.setTime(+oe+Ne*u)},function(oe,Ne){return(Ne-oe)/u},function(oe){return oe.getHours()}),b=y.range,v=n(function(oe){oe.setHours(0,0,0,0)},function(oe,Ne){oe.setDate(oe.getDate()+Ne)},function(oe,Ne){return(Ne-oe-(Ne.getTimezoneOffset()-oe.getTimezoneOffset())*s)/l},function(oe){return oe.getDate()-1}),C=v.range;function M(oe){return n(function(Ne){Ne.setDate(Ne.getDate()-(Ne.getDay()+7-oe)%7),Ne.setHours(0,0,0,0)},function(Ne,vt){Ne.setDate(Ne.getDate()+vt*7)},function(Ne,vt){return(vt-Ne-(vt.getTimezoneOffset()-Ne.getTimezoneOffset())*s)/f})}var A=M(0),L=M(1),x=M(2),k=M(3),S=M(4),m=M(5),P=M(6),E=A.range,O=L.range,F=x.range,U=k.range,G=S.range,j=m.range,W=P.range,N=n(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,Ne){oe.setMonth(oe.getMonth()+Ne)},function(oe,Ne){return Ne.getMonth()-oe.getMonth()+(Ne.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),H=N.range,re=n(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,Ne){oe.setFullYear(oe.getFullYear()+Ne)},function(oe,Ne){return Ne.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});re.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(Ne){Ne.setFullYear(Math.floor(Ne.getFullYear()/oe)*oe),Ne.setMonth(0,1),Ne.setHours(0,0,0,0)},function(Ne,vt){Ne.setFullYear(Ne.getFullYear()+vt*oe)})};var ae=re.range,me=n(function(oe){oe.setUTCSeconds(0,0)},function(oe,Ne){oe.setTime(+oe+Ne*s)},function(oe,Ne){return(Ne-oe)/s},function(oe){return oe.getUTCMinutes()}),Le=me.range,Ce=n(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,Ne){oe.setTime(+oe+Ne*u)},function(oe,Ne){return(Ne-oe)/u},function(oe){return oe.getUTCHours()}),de=Ce.range,te=n(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,Ne){oe.setUTCDate(oe.getUTCDate()+Ne)},function(oe,Ne){return(Ne-oe)/l},function(oe){return oe.getUTCDate()-1}),Se=te.range;function Te(oe){return n(function(Ne){Ne.setUTCDate(Ne.getUTCDate()-(Ne.getUTCDay()+7-oe)%7),Ne.setUTCHours(0,0,0,0)},function(Ne,vt){Ne.setUTCDate(Ne.getUTCDate()+vt*7)},function(Ne,vt){return(vt-Ne)/f})}var be=Te(0),He=Te(1),Ie=Te(2),ge=Te(3),Be=Te(4),ce=Te(5),je=Te(6),rt=be.range,bt=He.range,Ot=Ie.range,it=ge.range,Ke=Be.range,zt=ce.range,Mt=je.range,kt=n(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,Ne){oe.setUTCMonth(oe.getUTCMonth()+Ne)},function(oe,Ne){return Ne.getUTCMonth()-oe.getUTCMonth()+(Ne.getUTCFullYear()-oe.getUTCFullYear())*12},function(oe){return oe.getUTCMonth()}),$e=kt.range,De=n(function(oe){oe.setUTCMonth(0,1),oe.setUTCHours(0,0,0,0)},function(oe,Ne){oe.setUTCFullYear(oe.getUTCFullYear()+Ne)},function(oe,Ne){return Ne.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});De.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(Ne){Ne.setUTCFullYear(Math.floor(Ne.getUTCFullYear()/oe)*oe),Ne.setUTCMonth(0,1),Ne.setUTCHours(0,0,0,0)},function(Ne,vt){Ne.setUTCFullYear(Ne.getUTCFullYear()+vt*oe)})};var Me=De.range;e.timeDay=v,e.timeDays=C,e.timeFriday=m,e.timeFridays=j,e.timeHour=y,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=L,e.timeMondays=O,e.timeMonth=N,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=W,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=A,e.timeSundays=E,e.timeThursday=S,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=F,e.timeWednesday=k,e.timeWednesdays=U,e.timeWeek=A,e.timeWeeks=E,e.timeYear=re,e.timeYears=ae,e.utcDay=te,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=zt,e.utcHour=Ce,e.utcHours=de,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=me,e.utcMinutes=Le,e.utcMonday=He,e.utcMondays=bt,e.utcMonth=kt,e.utcMonths=$e,e.utcSaturday=je,e.utcSaturdays=Mt,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=rt,e.utcThursday=Be,e.utcThursdays=Ke,e.utcTuesday=Ie,e.utcTuesdays=Ot,e.utcWednesday=ge,e.utcWednesdays=it,e.utcWeek=be,e.utcWeeks=rt,e.utcYear=De,e.utcYears=Me,Object.defineProperty(e,"__esModule",{value:!0})})});var d3=we((bL,Fee)=>{(function(e,t){typeof bL=="object"&&typeof Fee!="undefined"?t(bL,OB()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(bL,function(e,t){"use strict";function r(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L);return Oe.setFullYear(xe.y),Oe}return new Date(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L)}function n(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(Date.UTC(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L));return Oe.setUTCFullYear(xe.y),Oe}return new Date(Date.UTC(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L))}function i(xe,Oe,ze){return{y:xe,m:Oe,d:ze,H:0,M:0,S:0,L:0}}function a(xe){var Oe=xe.dateTime,ze=xe.date,Re=xe.time,ht=xe.periods,st=xe.days,gt=xe.shortDays,xt=xe.months,pr=xe.shortMonths,br=h(ht),cr=d(ht),Er=h(st),ii=d(st),jr=h(gt),kr=d(gt),Vr=h(xt),Ai=d(xt),Bi=h(pr),Di=d(pr),ln={a:Hr,A:mi,b:Ei,B:Vi,c:null,d:N,e:N,f:Le,H,I:re,j:ae,L:me,m:Ce,M:de,p:ti,q:Qi,Q:et,s:tt,S:te,u:Se,U:Te,V:be,w:He,W:Ie,x:null,X:null,y:ge,Y:Be,Z:ce,"%":Ve},hn={a:Yr,A:oi,b:Fi,B:rn,c:null,d:je,e:je,f:Ke,H:rt,I:bt,j:Ot,L:it,m:zt,M:Mt,p:tn,q:Ri,Q:et,s:tt,S:kt,u:$e,U:De,V:Me,w:oe,W:Ne,x:null,X:null,y:vt,Y:lt,Z:We,"%":Ve},qr={a:qt,A:Nt,b:mr,B:Lr,c:Nr,d:S,e:S,f:U,H:P,I:P,j:m,L:F,m:k,M:E,p:_t,q:x,Q:j,s:W,S:O,u:y,U:b,V:v,w:p,W:C,x:Fr,X:Gr,y:A,Y:M,Z:L,"%":G};ln.x=_i(ze,ln),ln.X=_i(Re,ln),ln.c=_i(Oe,ln),hn.x=_i(ze,hn),hn.X=_i(Re,hn),hn.c=_i(Oe,hn);function _i(Ii,xn){return function(xi){var Xr=[],dt=-1,$t=0,fr=Ii.length,gr,Zr,wi;for(xi instanceof Date||(xi=new Date(+xi));++dt53)return null;"w"in Xr||(Xr.w=1),"Z"in Xr?($t=n(i(Xr.y,0,1)),fr=$t.getUTCDay(),$t=fr>4||fr===0?t.utcMonday.ceil($t):t.utcMonday($t),$t=t.utcDay.offset($t,(Xr.V-1)*7),Xr.y=$t.getUTCFullYear(),Xr.m=$t.getUTCMonth(),Xr.d=$t.getUTCDate()+(Xr.w+6)%7):($t=r(i(Xr.y,0,1)),fr=$t.getDay(),$t=fr>4||fr===0?t.timeMonday.ceil($t):t.timeMonday($t),$t=t.timeDay.offset($t,(Xr.V-1)*7),Xr.y=$t.getFullYear(),Xr.m=$t.getMonth(),Xr.d=$t.getDate()+(Xr.w+6)%7)}else("W"in Xr||"U"in Xr)&&("w"in Xr||(Xr.w="u"in Xr?Xr.u%7:"W"in Xr?1:0),fr="Z"in Xr?n(i(Xr.y,0,1)).getUTCDay():r(i(Xr.y,0,1)).getDay(),Xr.m=0,Xr.d="W"in Xr?(Xr.w+6)%7+Xr.W*7-(fr+5)%7:Xr.w+Xr.U*7-(fr+6)%7);return"Z"in Xr?(Xr.H+=Xr.Z/100|0,Xr.M+=Xr.Z%100,n(Xr)):r(Xr)}}function Rt(Ii,xn,xi,Xr){for(var dt=0,$t=xn.length,fr=xi.length,gr,Zr;dt<$t;){if(Xr>=fr)return-1;if(gr=xn.charCodeAt(dt++),gr===37){if(gr=xn.charAt(dt++),Zr=qr[gr in o?xn.charAt(dt++):gr],!Zr||(Xr=Zr(Ii,xi,Xr))<0)return-1}else if(gr!=xi.charCodeAt(Xr++))return-1}return Xr}function _t(Ii,xn,xi){var Xr=br.exec(xn.slice(xi));return Xr?(Ii.p=cr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function qt(Ii,xn,xi){var Xr=jr.exec(xn.slice(xi));return Xr?(Ii.w=kr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Nt(Ii,xn,xi){var Xr=Er.exec(xn.slice(xi));return Xr?(Ii.w=ii[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function mr(Ii,xn,xi){var Xr=Bi.exec(xn.slice(xi));return Xr?(Ii.m=Di[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Lr(Ii,xn,xi){var Xr=Vr.exec(xn.slice(xi));return Xr?(Ii.m=Ai[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Nr(Ii,xn,xi){return Rt(Ii,Oe,xn,xi)}function Fr(Ii,xn,xi){return Rt(Ii,ze,xn,xi)}function Gr(Ii,xn,xi){return Rt(Ii,Re,xn,xi)}function Hr(Ii){return gt[Ii.getDay()]}function mi(Ii){return st[Ii.getDay()]}function Ei(Ii){return pr[Ii.getMonth()]}function Vi(Ii){return xt[Ii.getMonth()]}function ti(Ii){return ht[+(Ii.getHours()>=12)]}function Qi(Ii){return 1+~~(Ii.getMonth()/3)}function Yr(Ii){return gt[Ii.getUTCDay()]}function oi(Ii){return st[Ii.getUTCDay()]}function Fi(Ii){return pr[Ii.getUTCMonth()]}function rn(Ii){return xt[Ii.getUTCMonth()]}function tn(Ii){return ht[+(Ii.getUTCHours()>=12)]}function Ri(Ii){return 1+~~(Ii.getUTCMonth()/3)}return{format:function(Ii){var xn=_i(Ii+="",ln);return xn.toString=function(){return Ii},xn},parse:function(Ii){var xn=zi(Ii+="",!1);return xn.toString=function(){return Ii},xn},utcFormat:function(Ii){var xn=_i(Ii+="",hn);return xn.toString=function(){return Ii},xn},utcParse:function(Ii){var xn=zi(Ii+="",!0);return xn.toString=function(){return Ii},xn}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(xe,Oe,ze){var Re=xe<0?"-":"",ht=(Re?-xe:xe)+"",st=ht.length;return Re+(st68?1900:2e3),ze+Re[0].length):-1}function L(xe,Oe,ze){var Re=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(ze,ze+6));return Re?(xe.Z=Re[1]?0:-(Re[2]+(Re[3]||"00")),ze+Re[0].length):-1}function x(xe,Oe,ze){var Re=s.exec(Oe.slice(ze,ze+1));return Re?(xe.q=Re[0]*3-3,ze+Re[0].length):-1}function k(xe,Oe,ze){var Re=s.exec(Oe.slice(ze,ze+2));return Re?(xe.m=Re[0]-1,ze+Re[0].length):-1}function S(xe,Oe,ze){var Re=s.exec(Oe.slice(ze,ze+2));return Re?(xe.d=+Re[0],ze+Re[0].length):-1}function m(xe,Oe,ze){var Re=s.exec(Oe.slice(ze,ze+3));return Re?(xe.m=0,xe.d=+Re[0],ze+Re[0].length):-1}function P(xe,Oe,ze){var Re=s.exec(Oe.slice(ze,ze+2));return Re?(xe.H=+Re[0],ze+Re[0].length):-1}function E(xe,Oe,ze){var Re=s.exec(Oe.slice(ze,ze+2));return Re?(xe.M=+Re[0],ze+Re[0].length):-1}function O(xe,Oe,ze){var Re=s.exec(Oe.slice(ze,ze+2));return Re?(xe.S=+Re[0],ze+Re[0].length):-1}function F(xe,Oe,ze){var Re=s.exec(Oe.slice(ze,ze+3));return Re?(xe.L=+Re[0],ze+Re[0].length):-1}function U(xe,Oe,ze){var Re=s.exec(Oe.slice(ze,ze+6));return Re?(xe.L=Math.floor(Re[0]/1e3),ze+Re[0].length):-1}function G(xe,Oe,ze){var Re=u.exec(Oe.slice(ze,ze+1));return Re?ze+Re[0].length:-1}function j(xe,Oe,ze){var Re=s.exec(Oe.slice(ze));return Re?(xe.Q=+Re[0],ze+Re[0].length):-1}function W(xe,Oe,ze){var Re=s.exec(Oe.slice(ze));return Re?(xe.s=+Re[0],ze+Re[0].length):-1}function N(xe,Oe){return f(xe.getDate(),Oe,2)}function H(xe,Oe){return f(xe.getHours(),Oe,2)}function re(xe,Oe){return f(xe.getHours()%12||12,Oe,2)}function ae(xe,Oe){return f(1+t.timeDay.count(t.timeYear(xe),xe),Oe,3)}function me(xe,Oe){return f(xe.getMilliseconds(),Oe,3)}function Le(xe,Oe){return me(xe,Oe)+"000"}function Ce(xe,Oe){return f(xe.getMonth()+1,Oe,2)}function de(xe,Oe){return f(xe.getMinutes(),Oe,2)}function te(xe,Oe){return f(xe.getSeconds(),Oe,2)}function Se(xe){var Oe=xe.getDay();return Oe===0?7:Oe}function Te(xe,Oe){return f(t.timeSunday.count(t.timeYear(xe)-1,xe),Oe,2)}function be(xe,Oe){var ze=xe.getDay();return xe=ze>=4||ze===0?t.timeThursday(xe):t.timeThursday.ceil(xe),f(t.timeThursday.count(t.timeYear(xe),xe)+(t.timeYear(xe).getDay()===4),Oe,2)}function He(xe){return xe.getDay()}function Ie(xe,Oe){return f(t.timeMonday.count(t.timeYear(xe)-1,xe),Oe,2)}function ge(xe,Oe){return f(xe.getFullYear()%100,Oe,2)}function Be(xe,Oe){return f(xe.getFullYear()%1e4,Oe,4)}function ce(xe){var Oe=xe.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+f(Oe/60|0,"0",2)+f(Oe%60,"0",2)}function je(xe,Oe){return f(xe.getUTCDate(),Oe,2)}function rt(xe,Oe){return f(xe.getUTCHours(),Oe,2)}function bt(xe,Oe){return f(xe.getUTCHours()%12||12,Oe,2)}function Ot(xe,Oe){return f(1+t.utcDay.count(t.utcYear(xe),xe),Oe,3)}function it(xe,Oe){return f(xe.getUTCMilliseconds(),Oe,3)}function Ke(xe,Oe){return it(xe,Oe)+"000"}function zt(xe,Oe){return f(xe.getUTCMonth()+1,Oe,2)}function Mt(xe,Oe){return f(xe.getUTCMinutes(),Oe,2)}function kt(xe,Oe){return f(xe.getUTCSeconds(),Oe,2)}function $e(xe){var Oe=xe.getUTCDay();return Oe===0?7:Oe}function De(xe,Oe){return f(t.utcSunday.count(t.utcYear(xe)-1,xe),Oe,2)}function Me(xe,Oe){var ze=xe.getUTCDay();return xe=ze>=4||ze===0?t.utcThursday(xe):t.utcThursday.ceil(xe),f(t.utcThursday.count(t.utcYear(xe),xe)+(t.utcYear(xe).getUTCDay()===4),Oe,2)}function oe(xe){return xe.getUTCDay()}function Ne(xe,Oe){return f(t.utcMonday.count(t.utcYear(xe)-1,xe),Oe,2)}function vt(xe,Oe){return f(xe.getUTCFullYear()%100,Oe,2)}function lt(xe,Oe){return f(xe.getUTCFullYear()%1e4,Oe,4)}function We(){return"+0000"}function Ve(){return"%"}function et(xe){return+xe}function tt(xe){return Math.floor(+xe/1e3)}var Lt;jt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function jt(xe){return Lt=a(xe),e.timeFormat=Lt.format,e.timeParse=Lt.parse,e.utcFormat=Lt.utcFormat,e.utcParse=Lt.utcParse,Lt}var or="%Y-%m-%dT%H:%M:%S.%LZ";function yr(xe){return xe.toISOString()}var vr=Date.prototype.toISOString?yr:e.utcFormat(or);function Vt(xe){var Oe=new Date(xe);return isNaN(Oe)?null:Oe}var Pe=+new Date("2000-01-01T00:00:00.000Z")?Vt:e.utcParse(or);e.isoFormat=vr,e.isoParse=Pe,e.timeFormatDefaultLocale=jt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var BB=we((wL,Oee)=>{(function(e,t){typeof wL=="object"&&typeof Oee!="undefined"?t(wL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(wL,function(e){"use strict";function t(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function r(k,S){if((m=(k=S?k.toExponential(S-1):k.toExponential()).indexOf("e"))<0)return null;var m,P=k.slice(0,m);return[P.length>1?P[0]+P.slice(2):P,+k.slice(m+1)]}function n(k){return k=r(Math.abs(k)),k?k[1]:NaN}function i(k,S){return function(m,P){for(var E=m.length,O=[],F=0,U=k[0],G=0;E>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),O.push(m.substring(E-=U,E+U)),!((G+=U+1)>P));)U=k[F=(F+1)%k.length];return O.reverse().join(S)}}function a(k){return function(S){return S.replace(/[0-9]/g,function(m){return k[+m]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(k){if(!(S=o.exec(k)))throw new Error("invalid format: "+k);var S;return new u({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=u.prototype;function u(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l(k){e:for(var S=k.length,m=1,P=-1,E;m0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(E+1):k}var f;function c(k,S){var m=r(k,S);if(!m)return k+"";var P=m[0],E=m[1],O=E-(f=Math.max(-8,Math.min(8,Math.floor(E/3)))*3)+1,F=P.length;return O===F?P:O>F?P+new Array(O-F+1).join("0"):O>0?P.slice(0,O)+"."+P.slice(O):"0."+new Array(1-O).join("0")+r(k,Math.max(0,S+O-1))[0]}function h(k,S){var m=r(k,S);if(!m)return k+"";var P=m[0],E=m[1];return E<0?"0."+new Array(-E).join("0")+P:P.length>E+1?P.slice(0,E+1)+"."+P.slice(E+1):P+new Array(E-P.length+2).join("0")}var d={"%":function(k,S){return(k*100).toFixed(S)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:t,e:function(k,S){return k.toExponential(S)},f:function(k,S){return k.toFixed(S)},g:function(k,S){return k.toPrecision(S)},o:function(k){return Math.round(k).toString(8)},p:function(k,S){return h(k*100,S)},r:h,s:c,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function p(k){return k}var y=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function v(k){var S=k.grouping===void 0||k.thousands===void 0?p:i(y.call(k.grouping,Number),k.thousands+""),m=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",E=k.decimal===void 0?".":k.decimal+"",O=k.numerals===void 0?p:a(y.call(k.numerals,String)),F=k.percent===void 0?"%":k.percent+"",U=k.minus===void 0?"-":k.minus+"",G=k.nan===void 0?"NaN":k.nan+"";function j(N){N=s(N);var H=N.fill,re=N.align,ae=N.sign,me=N.symbol,Le=N.zero,Ce=N.width,de=N.comma,te=N.precision,Se=N.trim,Te=N.type;Te==="n"?(de=!0,Te="g"):d[Te]||(te===void 0&&(te=12),Se=!0,Te="g"),(Le||H==="0"&&re==="=")&&(Le=!0,H="0",re="=");var be=me==="$"?m:me==="#"&&/[boxX]/.test(Te)?"0"+Te.toLowerCase():"",He=me==="$"?P:/[%p]/.test(Te)?F:"",Ie=d[Te],ge=/[defgprs%]/.test(Te);te=te===void 0?6:/[gprs]/.test(Te)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function Be(ce){var je=be,rt=He,bt,Ot,it;if(Te==="c")rt=Ie(ce)+rt,ce="";else{ce=+ce;var Ke=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Ie(Math.abs(ce),te),Se&&(ce=l(ce)),Ke&&+ce==0&&ae!=="+"&&(Ke=!1),je=(Ke?ae==="("?ae:U:ae==="-"||ae==="("?"":ae)+je,rt=(Te==="s"?b[8+f/3]:"")+rt+(Ke&&ae==="("?")":""),ge){for(bt=-1,Ot=ce.length;++btit||it>57){rt=(it===46?E+ce.slice(bt+1):ce.slice(bt))+rt,ce=ce.slice(0,bt);break}}}de&&!Le&&(ce=S(ce,1/0));var zt=je.length+ce.length+rt.length,Mt=zt>1)+je+ce+rt+Mt.slice(zt);break;default:ce=Mt+je+ce+rt;break}return O(ce)}return Be.toString=function(){return N+""},Be}function W(N,H){var re=j((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(H)/3)))*3,me=Math.pow(10,-ae),Le=b[8+ae/3];return function(Ce){return re(me*Ce)+Le}}return{format:j,formatPrefix:W}}var C;M({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function M(k){return C=v(k),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function A(k){return Math.max(0,-n(Math.abs(k)))}function L(k,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(S)/3)))*3-n(Math.abs(k)))}function x(k,S){return k=Math.abs(k),S=Math.abs(S)-k,Math.max(0,n(S)-n(k))+1}e.FormatSpecifier=u,e.formatDefaultLocale=M,e.formatLocale=v,e.formatSpecifier=s,e.precisionFixed=A,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var qee=we((Jir,Bee)=>{"use strict";Bee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var ku=we(($ir,Nee)=>{"use strict";var vrt=qee();Nee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&vrt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var rf=we((Qir,Uee)=>{"use strict";Uee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var qB=we((AL,Vee)=>{(function(e,t){typeof AL=="object"&&typeof Vee!="undefined"?t(AL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(AL,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=t[(s[u]&3)<<4|s[u+1]>>4],f+=t[(s[u+1]&15)<<2|s[u+2]>>6],f+=t[s[u+2]&63];return l%3===2?f=f.substring(0,f.length-1)+"=":l%3===1&&(f=f.substring(0,f.length-2)+"=="),f},a=function(o){var s=o.length*.75,u=o.length,l,f=0,c,h,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var y=new ArrayBuffer(s),b=new Uint8Array(y);for(l=0;l>4,b[f++]=(h&15)<<4|d>>2,b[f++]=(d&3)<<6|p&63;return y};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Tg=we((enr,Gee)=>{"use strict";Gee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var Jd=we(xm=>{"use strict";var mrt=qB().decode,yrt=Tg(),NB=Array.isArray,grt=ArrayBuffer,_rt=DataView;function Hee(e){return grt.isView(e)&&!(e instanceof _rt)}xm.isTypedArray=Hee;function TL(e){return NB(e)||Hee(e)}xm.isArrayOrTypedArray=TL;function xrt(e){return!TL(e[0])}xm.isArray1D=xrt;xm.ensureArray=function(e,t){return NB(e)||(e=[]),e.length=t,e};var zd={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};zd.uint8c=zd.u1c;zd.uint8=zd.u1;zd.int8=zd.i1;zd.uint16=zd.u2;zd.int16=zd.i2;zd.uint32=zd.u4;zd.int32=zd.i4;zd.float32=zd.f4;zd.float64=zd.f8;function UB(e){return e.constructor===ArrayBuffer}xm.isArrayBuffer=UB;xm.decodeTypedArraySpec=function(e){var t=[],r=brt(e),n=r.dtype,i=zd[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;UB(o)||(o=mrt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var u=s.length,l,f,c=+s[0],h=a*c,d=0;if(u===1)t=new i(o);else if(u===2)for(l=+s[1],f=0;f{"use strict";var jee=ku(),GB=Jd().isArrayOrTypedArray;Kee.exports=function(t,r){if(jee(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var p3=FM(),Mrt=/^\w*$/,Ert=0,Jee=1,SL=2,$ee=3,yb=4;Qee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,u={};r&&r.length?(s=p3(t,r),o=s.get()):o=t,r=r||"";var l={};if(o)for(a=0;a2)return u[d]=u[d]|SL,c.set(h,null);if(f){for(a=d;a{"use strict";var krt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Crt=/^[^\.\[\]]+$/;tte.exports=function(e,t){for(;t;){var r=e.match(krt);if(r)e=r[1];else if(e.match(Crt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var ML=we((anr,ite)=>{"use strict";var Lrt=ku();ite.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Lrt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var ote=we((onr,ate)=>{"use strict";var nte=Jd().isArrayOrTypedArray,OM=Tg();ate.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(nte(i)&&nte(a)&&OM(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Prt(e,t){var r=e%t;return r<0?r+t:r}function zrt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}ste.exports={mod:Prt,modHalf:zrt}});var hd=we((lnr,EL)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function u(ge,Be){if(ge=ge||"",Be=Be||{},ge instanceof u)return ge;if(!(this instanceof u))return new u(ge,Be);var ce=l(ge);this._originalInput=ge,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Be.format||ce.format,this._gradientType=Be.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),Be,ce,je,rt,bt,Ot;return Be=ge.r/255,ce=ge.g/255,je=ge.b/255,Be<=.03928?rt=Be/12.92:rt=e.pow((Be+.055)/1.055,2.4),ce<=.03928?bt=ce/12.92:bt=e.pow((ce+.055)/1.055,2.4),je<=.03928?Ot=je/12.92:Ot=e.pow((je+.055)/1.055,2.4),.2126*rt+.7152*bt+.0722*Ot},setAlpha:function(ge){return this._a=N(ge),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ge=d(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=d(this._r,this._g,this._b),Be=i(ge.h*360),ce=i(ge.s*100),je=i(ge.v*100);return this._a==1?"hsv("+Be+", "+ce+"%, "+je+"%)":"hsva("+Be+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHsl:function(){var ge=c(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=c(this._r,this._g,this._b),Be=i(ge.h*360),ce=i(ge.s*100),je=i(ge.l*100);return this._a==1?"hsl("+Be+", "+ce+"%, "+je+"%)":"hsla("+Be+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHex:function(ge){return y(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return b(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(H(this._r,255)*100)+"%",g:i(H(this._g,255)*100)+"%",b:i(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%)":"rgba("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:j[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var Be="#"+v(this._r,this._g,this._b,this._a),ce=Be,je=this._gradientType?"GradientType = 1, ":"";if(ge){var rt=u(ge);ce="#"+v(rt._r,rt._g,rt._b,rt._a)}return"progid:DXImageTransform.Microsoft.gradient("+je+"startColorstr="+Be+",endColorstr="+ce+")"},toString:function(ge){var Be=!!ge;ge=ge||this._format;var ce=!1,je=this._a<1&&this._a>=0,rt=!Be&&je&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return rt?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ce=this.toRgbString()),ge==="prgb"&&(ce=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ce=this.toHexString()),ge==="hex3"&&(ce=this.toHexString(!0)),ge==="hex4"&&(ce=this.toHex8String(!0)),ge==="hex8"&&(ce=this.toHex8String()),ge==="name"&&(ce=this.toName()),ge==="hsl"&&(ce=this.toHslString()),ge==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(ge,Be){var ce=ge.apply(null,[this].concat([].slice.call(Be)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(ge,Be){return ge.apply(null,[this].concat([].slice.call(Be)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},u.fromRatio=function(ge,Be){if(typeof ge=="object"){var ce={};for(var je in ge)ge.hasOwnProperty(je)&&(je==="a"?ce[je]=ge[je]:ce[je]=de(ge[je]));ge=ce}return u(ge,Be)};function l(ge){var Be={r:0,g:0,b:0},ce=1,je=null,rt=null,bt=null,Ot=!1,it=!1;return typeof ge=="string"&&(ge=He(ge)),typeof ge=="object"&&(be(ge.r)&&be(ge.g)&&be(ge.b)?(Be=f(ge.r,ge.g,ge.b),Ot=!0,it=String(ge.r).substr(-1)==="%"?"prgb":"rgb"):be(ge.h)&&be(ge.s)&&be(ge.v)?(je=de(ge.s),rt=de(ge.v),Be=p(ge.h,je,rt),Ot=!0,it="hsv"):be(ge.h)&&be(ge.s)&&be(ge.l)&&(je=de(ge.s),bt=de(ge.l),Be=h(ge.h,je,bt),Ot=!0,it="hsl"),ge.hasOwnProperty("a")&&(ce=ge.a)),ce=N(ce),{ok:Ot,format:ge.format||it,r:a(255,o(Be.r,0)),g:a(255,o(Be.g,0)),b:a(255,o(Be.b,0)),a:ce}}function f(ge,Be,ce){return{r:H(ge,255)*255,g:H(Be,255)*255,b:H(ce,255)*255}}function c(ge,Be,ce){ge=H(ge,255),Be=H(Be,255),ce=H(ce,255);var je=o(ge,Be,ce),rt=a(ge,Be,ce),bt,Ot,it=(je+rt)/2;if(je==rt)bt=Ot=0;else{var Ke=je-rt;switch(Ot=it>.5?Ke/(2-je-rt):Ke/(je+rt),je){case ge:bt=(Be-ce)/Ke+(Be1&&(kt-=1),kt<1/6?zt+(Mt-zt)*6*kt:kt<1/2?Mt:kt<2/3?zt+(Mt-zt)*(2/3-kt)*6:zt}if(Be===0)je=rt=bt=ce;else{var it=ce<.5?ce*(1+Be):ce+Be-ce*Be,Ke=2*ce-it;je=Ot(Ke,it,ge+1/3),rt=Ot(Ke,it,ge),bt=Ot(Ke,it,ge-1/3)}return{r:je*255,g:rt*255,b:bt*255}}function d(ge,Be,ce){ge=H(ge,255),Be=H(Be,255),ce=H(ce,255);var je=o(ge,Be,ce),rt=a(ge,Be,ce),bt,Ot,it=je,Ke=je-rt;if(Ot=je===0?0:Ke/je,je==rt)bt=0;else{switch(je){case ge:bt=(Be-ce)/Ke+(Be>1)+720)%360;--Be;)je.h=(je.h+rt)%360,bt.push(u(je));return bt}function U(ge,Be){Be=Be||6;for(var ce=u(ge).toHsv(),je=ce.h,rt=ce.s,bt=ce.v,Ot=[],it=1/Be;Be--;)Ot.push(u({h:je,s:rt,v:bt})),bt=(bt+it)%1;return Ot}u.mix=function(ge,Be,ce){ce=ce===0?0:ce||50;var je=u(ge).toRgb(),rt=u(Be).toRgb(),bt=ce/100,Ot={r:(rt.r-je.r)*bt+je.r,g:(rt.g-je.g)*bt+je.g,b:(rt.b-je.b)*bt+je.b,a:(rt.a-je.a)*bt+je.a};return u(Ot)},u.readability=function(ge,Be){var ce=u(ge),je=u(Be);return(e.max(ce.getLuminance(),je.getLuminance())+.05)/(e.min(ce.getLuminance(),je.getLuminance())+.05)},u.isReadable=function(ge,Be,ce){var je=u.readability(ge,Be),rt,bt;switch(bt=!1,rt=Ie(ce),rt.level+rt.size){case"AAsmall":case"AAAlarge":bt=je>=4.5;break;case"AAlarge":bt=je>=3;break;case"AAAsmall":bt=je>=7;break}return bt},u.mostReadable=function(ge,Be,ce){var je=null,rt=0,bt,Ot,it,Ke;ce=ce||{},Ot=ce.includeFallbackColors,it=ce.level,Ke=ce.size;for(var zt=0;ztrt&&(rt=bt,je=u(Be[zt]));return u.isReadable(ge,je,{level:it,size:Ke})||!Ot?je:(ce.includeFallbackColors=!1,u.mostReadable(ge,["#fff","#000"],ce))};var G=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=u.hexNames=W(G);function W(ge){var Be={};for(var ce in ge)ge.hasOwnProperty(ce)&&(Be[ge[ce]]=ce);return Be}function N(ge){return ge=parseFloat(ge),(isNaN(ge)||ge<0||ge>1)&&(ge=1),ge}function H(ge,Be){me(ge)&&(ge="100%");var ce=Le(ge);return ge=a(Be,o(0,parseFloat(ge))),ce&&(ge=parseInt(ge*Be,10)/100),e.abs(ge-Be)<1e-6?1:ge%Be/parseFloat(Be)}function re(ge){return a(1,o(0,ge))}function ae(ge){return parseInt(ge,16)}function me(ge){return typeof ge=="string"&&ge.indexOf(".")!=-1&&parseFloat(ge)===1}function Le(ge){return typeof ge=="string"&&ge.indexOf("%")!=-1}function Ce(ge){return ge.length==1?"0"+ge:""+ge}function de(ge){return ge<=1&&(ge=ge*100+"%"),ge}function te(ge){return e.round(parseFloat(ge)*255).toString(16)}function Se(ge){return ae(ge)/255}var Te=function(){var ge="[-\\+]?\\d+%?",Be="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Be+")|(?:"+ge+")",je="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",rt="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+je),rgba:new RegExp("rgba"+rt),hsl:new RegExp("hsl"+je),hsla:new RegExp("hsla"+rt),hsv:new RegExp("hsv"+je),hsva:new RegExp("hsva"+rt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(ge){return!!Te.CSS_UNIT.exec(ge)}function He(ge){ge=ge.replace(t,"").replace(r,"").toLowerCase();var Be=!1;if(G[ge])ge=G[ge],Be=!0;else if(ge=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Te.rgb.exec(ge))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Te.rgba.exec(ge))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Te.hsl.exec(ge))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Te.hsla.exec(ge))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Te.hsv.exec(ge))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Te.hsva.exec(ge))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Te.hex8.exec(ge))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:Se(ce[4]),format:Be?"name":"hex8"}:(ce=Te.hex6.exec(ge))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Be?"name":"hex"}:(ce=Te.hex4.exec(ge))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:Be?"name":"hex8"}:(ce=Te.hex3.exec(ge))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Be?"name":"hex"}:!1}function Ie(ge){var Be,ce;return ge=ge||{level:"AA",size:"small"},Be=(ge.level||"AA").toUpperCase(),ce=(ge.size||"small").toLowerCase(),Be!=="AA"&&Be!=="AAA"&&(Be="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Be,size:ce}}typeof EL!="undefined"&&EL.exports?EL.exports=u:window.tinycolor=u})(Math)});var Su=we(NM=>{"use strict";var lte=Tg(),BM=Array.isArray;function Irt(e,t){var r,n;for(r=0;r{"use strict";ute.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var UM=we((cnr,fte)=>{"use strict";fte.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var j1=we((hnr,dte)=>{"use strict";var cte=UM(),hte=gc(),HB=hte({editType:"none"});HB.family.dflt=cte.HOVERFONT;HB.size.dflt=cte.HOVERFONTSIZE;dte.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:HB,grouptitlefont:hte({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var m3=we((dnr,pte)=>{"use strict";var Drt=gc(),VM=j1().hoverlabel,GM=Su().extendFlat;pte.exports={hoverlabel:{bgcolor:GM({},VM.bgcolor,{arrayOk:!0}),bordercolor:GM({},VM.bordercolor,{arrayOk:!0}),font:Drt({arrayOk:!0,editType:"none"}),align:GM({},VM.align,{arrayOk:!0}),namelength:GM({},VM.namelength,{arrayOk:!0}),showarrow:GM({},VM.showarrow),editType:"none"}}});var Gf=we((pnr,vte)=>{"use strict";var Rrt=gc(),Frt=m3();vte.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Rrt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Frt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var gb=we((vnr,gte)=>{"use strict";var Ort=hd(),kL={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},mte=kL.RdBu;function Brt(e,t){if(t||(t=mte),!e)return t;function r(){try{e=kL[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),yte(e)?e:t}function yte(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";_b.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];_b.defaultLine="#444";_b.lightLine="#eee";_b.background="#fff";_b.borderLine="#BEC8D9";_b.lightFraction=100*10/11});var jl=we((ynr,_te)=>{"use strict";var wv=hd(),Nrt=ku(),Urt=Jd().isTypedArray,dd=_te.exports={},CL=Bh();dd.defaults=CL.defaults;var Vrt=dd.defaultLine=CL.defaultLine;dd.lightLine=CL.lightLine;var jB=dd.background=CL.background;dd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};dd.rgb=function(e){return dd.tinyRGB(wv(e))};dd.opacity=function(e){return e?wv(e).getAlpha():0};dd.addOpacity=function(e,t){var r=wv(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};dd.combine=function(e,t){var r=wv(e).toRgb();if(r.a===1)return wv(e).toRgbString();var n=wv(t||jB).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return wv(a).toRgbString()};dd.interpolate=function(e,t,r){var n=wv(e).toRgb(),i=wv(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return wv(a).toRgbString()};dd.contrast=function(e,t,r){var n=wv(e);n.getAlpha()!==1&&(n=wv(dd.combine(e,jB)));var i=n.isDark()?t?n.lighten(t):jB:r?n.darken(r):Vrt;return i.toString()};dd.stroke=function(e,t){var r=wv(t);e.style({stroke:dd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};dd.fill=function(e,t){var r=wv(t);e.style({fill:dd.tinyRGB(r),"fill-opacity":r.getAlpha()})};dd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var X1=we((gnr,xte)=>{"use strict";xte.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var y3=we(bte=>{"use strict";bte.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var Ste=we(Av=>{"use strict";var XB=ku(),wte=hd(),Ate=Su().extendFlat,Grt=Gf(),Hrt=gb(),Wrt=jl(),jrt=X1().DESELECTDIM,g3=FM(),Tte=y3().counter,Xrt=v3().modHalf,bm=Jd().isArrayOrTypedArray,Z1=Jd().isTypedArraySpec,Y1=Jd().decodeTypedArraySpec;Av.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(bm(e)?e:Z1(e)?Y1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;na===!0||a===!1;i(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(i)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,n){Z1(e)&&(e=Y1(e)),!XB(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}Z1(e)&&(e=Y1(e)),e%1||!XB(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Z1(e)&&(e=Y1(e)),wte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return wte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Hrt.get(e,r))}},angle:{coerceFunction:function(e,t,r){Z1(e)&&(e=Y1(e)),e==="auto"?t.set("auto"):XB(e)?t.set(Xrt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||Tte(r);let a=o=>typeof o=="string"&&i.test(o);a(e)||n.arrayOk&&bm(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!Tte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var Mte={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},Ete={};function kte(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),kte(n,t[r]))}}kte(Mte,Ete);Cte.exports={configAttributes:Mte,dfltConfig:Ete}});var YB=we((wnr,Lte)=>{"use strict";var ZB=Jl(),Zrt=ku(),HM=[];Lte.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||HM.indexOf(e)!==-1)return;HM.push(e);var n=1e3;Zrt(t)?n=t:t==="long"&&(n=3e3);var i=ZB.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(HM);function o(u){u.duration(700).style("opacity",0).each("end",function(l){var f=HM.indexOf(l);f!==-1&&HM.splice(f,1),ZB.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var l=ZB.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(o)});for(var f=l.append("p"),c=u.split(//g),h=0;h{"use strict";var _3=xb().dfltConfig,KB=YB(),JB=Pte.exports={};JB.log=function(){var e;if(_3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};JB.warn=function(){var e;if(_3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};JB.error=function(){var e;if(_3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var PL=we((Tnr,zte)=>{"use strict";zte.exports=function(){}});var $B=we((Snr,Ite)=>{"use strict";Ite.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{Dte.exports=Yrt;function Yrt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ote=we((Enr,Fte)=>{Fte.exports=Krt;function Krt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var qte=we((knr,Bte)=>{Bte.exports=Jrt;function Jrt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var QB=we((Cnr,Nte)=>{Nte.exports=$rt;function $rt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Vte=we((Lnr,Ute)=>{Ute.exports=Qrt;function Qrt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Hte=we((Pnr,Gte)=>{Gte.exports=eit;function eit(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],y=t[13],b=t[14],v=t[15],C=r*s-n*o,M=r*u-i*o,A=r*l-a*o,L=n*u-i*s,x=n*l-a*s,k=i*l-a*u,S=f*y-c*p,m=f*b-h*p,P=f*v-d*p,E=c*b-h*y,O=c*v-d*y,F=h*v-d*b,U=C*F-M*O+A*E+L*P-x*m+k*S;return U?(U=1/U,e[0]=(s*F-u*O+l*E)*U,e[1]=(i*O-n*F-a*E)*U,e[2]=(y*k-b*x+v*L)*U,e[3]=(h*x-c*k-d*L)*U,e[4]=(u*P-o*F-l*m)*U,e[5]=(r*F-i*P+a*m)*U,e[6]=(b*A-p*k-v*M)*U,e[7]=(f*k-h*A+d*M)*U,e[8]=(o*O-s*P+l*S)*U,e[9]=(n*P-r*O-a*S)*U,e[10]=(p*x-y*A+v*C)*U,e[11]=(c*A-f*x-d*C)*U,e[12]=(s*m-o*E-u*S)*U,e[13]=(r*E-n*m+i*S)*U,e[14]=(y*M-p*L-b*C)*U,e[15]=(f*L-c*M+h*C)*U,e):null}});var jte=we((znr,Wte)=>{Wte.exports=tit;function tit(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],y=t[13],b=t[14],v=t[15];return e[0]=s*(h*v-d*b)-c*(u*v-l*b)+y*(u*d-l*h),e[1]=-(n*(h*v-d*b)-c*(i*v-a*b)+y*(i*d-a*h)),e[2]=n*(u*v-l*b)-s*(i*v-a*b)+y*(i*l-a*u),e[3]=-(n*(u*d-l*h)-s*(i*d-a*h)+c*(i*l-a*u)),e[4]=-(o*(h*v-d*b)-f*(u*v-l*b)+p*(u*d-l*h)),e[5]=r*(h*v-d*b)-f*(i*v-a*b)+p*(i*d-a*h),e[6]=-(r*(u*v-l*b)-o*(i*v-a*b)+p*(i*l-a*u)),e[7]=r*(u*d-l*h)-o*(i*d-a*h)+f*(i*l-a*u),e[8]=o*(c*v-d*y)-f*(s*v-l*y)+p*(s*d-l*c),e[9]=-(r*(c*v-d*y)-f*(n*v-a*y)+p*(n*d-a*c)),e[10]=r*(s*v-l*y)-o*(n*v-a*y)+p*(n*l-a*s),e[11]=-(r*(s*d-l*c)-o*(n*d-a*c)+f*(n*l-a*s)),e[12]=-(o*(c*b-h*y)-f*(s*b-u*y)+p*(s*h-u*c)),e[13]=r*(c*b-h*y)-f*(n*b-i*y)+p*(n*h-i*c),e[14]=-(r*(s*b-u*y)-o*(n*b-i*y)+p*(n*u-i*s)),e[15]=r*(s*h-u*c)-o*(n*h-i*c)+f*(n*u-i*s),e}});var Zte=we((Inr,Xte)=>{Xte.exports=rit;function rit(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],y=e[14],b=e[15],v=t*o-r*a,C=t*s-n*a,M=t*u-i*a,A=r*s-n*o,L=r*u-i*o,x=n*u-i*s,k=l*p-f*d,S=l*y-c*d,m=l*b-h*d,P=f*y-c*p,E=f*b-h*p,O=c*b-h*y;return v*O-C*E+M*P+A*m-L*S+x*k}});var Kte=we((Dnr,Yte)=>{Yte.exports=iit;function iit(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],y=t[12],b=t[13],v=t[14],C=t[15],M=r[0],A=r[1],L=r[2],x=r[3];return e[0]=M*n+A*s+L*c+x*y,e[1]=M*i+A*u+L*h+x*b,e[2]=M*a+A*l+L*d+x*v,e[3]=M*o+A*f+L*p+x*C,M=r[4],A=r[5],L=r[6],x=r[7],e[4]=M*n+A*s+L*c+x*y,e[5]=M*i+A*u+L*h+x*b,e[6]=M*a+A*l+L*d+x*v,e[7]=M*o+A*f+L*p+x*C,M=r[8],A=r[9],L=r[10],x=r[11],e[8]=M*n+A*s+L*c+x*y,e[9]=M*i+A*u+L*h+x*b,e[10]=M*a+A*l+L*d+x*v,e[11]=M*o+A*f+L*p+x*C,M=r[12],A=r[13],L=r[14],x=r[15],e[12]=M*n+A*s+L*c+x*y,e[13]=M*i+A*u+L*h+x*b,e[14]=M*a+A*l+L*d+x*v,e[15]=M*o+A*f+L*p+x*C,e}});var $te=we((Rnr,Jte)=>{Jte.exports=nit;function nit(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,u,l,f,c,h,d,p,y,b,v;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],u=t[2],l=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],y=t[9],b=t[10],v=t[11],e[0]=o,e[1]=s,e[2]=u,e[3]=l,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=y,e[10]=b,e[11]=v,e[12]=o*n+f*i+p*a+t[12],e[13]=s*n+c*i+y*a+t[13],e[14]=u*n+h*i+b*a+t[14],e[15]=l*n+d*i+v*a+t[15]),e}});var ere=we((Fnr,Qte)=>{Qte.exports=ait;function ait(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var rre=we((Onr,tre)=>{tre.exports=oit;function oit(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,u=Math.sin(r),l=Math.cos(r),f=1-l,c=t[0],h=t[1],d=t[2],p=t[3],y=t[4],b=t[5],v=t[6],C=t[7],M=t[8],A=t[9],L=t[10],x=t[11],k=i*i*f+l,S=a*i*f+o*u,m=o*i*f-a*u,P=i*a*f-o*u,E=a*a*f+l,O=o*a*f+i*u,F=i*o*f+a*u,U=a*o*f-i*u,G=o*o*f+l,e[0]=c*k+y*S+M*m,e[1]=h*k+b*S+A*m,e[2]=d*k+v*S+L*m,e[3]=p*k+C*S+x*m,e[4]=c*P+y*E+M*O,e[5]=h*P+b*E+A*O,e[6]=d*P+v*E+L*O,e[7]=p*P+C*E+x*O,e[8]=c*F+y*U+M*G,e[9]=h*F+b*U+A*G,e[10]=d*F+v*U+L*G,e[11]=p*F+C*U+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var nre=we((Bnr,ire)=>{ire.exports=sit;function sit(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+l*n,e[5]=o*i+f*n,e[6]=s*i+c*n,e[7]=u*i+h*n,e[8]=l*i-a*n,e[9]=f*i-o*n,e[10]=c*i-s*n,e[11]=h*i-u*n,e}});var ore=we((qnr,are)=>{are.exports=lit;function lit(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-l*n,e[1]=o*i-f*n,e[2]=s*i-c*n,e[3]=u*i-h*n,e[8]=a*n+l*i,e[9]=o*n+f*i,e[10]=s*n+c*i,e[11]=u*n+h*i,e}});var lre=we((Nnr,sre)=>{sre.exports=uit;function uit(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+l*n,e[1]=o*i+f*n,e[2]=s*i+c*n,e[3]=u*i+h*n,e[4]=l*i-a*n,e[5]=f*i-o*n,e[6]=c*i-s*n,e[7]=h*i-u*n,e}});var fre=we((Unr,ure)=>{ure.exports=fit;function fit(e,t,r){var n,i,a,o=r[0],s=r[1],u=r[2],l=Math.sqrt(o*o+s*s+u*u);return Math.abs(l)<1e-6?null:(l=1/l,o*=l,s*=l,u*=l,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+u*n,e[2]=u*o*a-s*n,e[3]=0,e[4]=o*s*a-u*n,e[5]=s*s*a+i,e[6]=u*s*a+o*n,e[7]=0,e[8]=o*u*a+s*n,e[9]=s*u*a-o*n,e[10]=u*u*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var hre=we((Vnr,cre)=>{cre.exports=cit;function cit(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,u=i+i,l=a+a,f=n*s,c=n*u,h=n*l,d=i*u,p=i*l,y=a*l,b=o*s,v=o*u,C=o*l;return e[0]=1-(d+y),e[1]=c+C,e[2]=h-v,e[3]=0,e[4]=c-C,e[5]=1-(f+y),e[6]=p+b,e[7]=0,e[8]=h+v,e[9]=p-b,e[10]=1-(f+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var pre=we((Gnr,dre)=>{dre.exports=hit;function hit(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var mre=we((Hnr,vre)=>{vre.exports=dit;function dit(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var gre=we((Wnr,yre)=>{yre.exports=pit;function pit(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var xre=we((jnr,_re)=>{_re.exports=vit;function vit(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wre=we((Xnr,bre)=>{bre.exports=mit;function mit(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Tre=we((Znr,Are)=>{Are.exports=yit;function yit(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,u=i+i,l=r*o,f=n*o,c=n*s,h=i*o,d=i*s,p=i*u,y=a*o,b=a*s,v=a*u;return e[0]=1-c-p,e[1]=f+v,e[2]=h-b,e[3]=0,e[4]=f-v,e[5]=1-l-p,e[6]=d+y,e[7]=0,e[8]=h+b,e[9]=d-y,e[10]=1-l-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Mre=we((Ynr,Sre)=>{Sre.exports=git;function git(e,t,r,n,i,a,o){var s=1/(r-t),u=1/(i-n),l=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*u,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*u,e[10]=(o+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*l,e[15]=0,e}});var kre=we((Knr,Ere)=>{Ere.exports=_it;function _it(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var Lre=we((Jnr,Cre)=>{Cre.exports=xit;function xit(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=-((o-s)*u*.5),e[9]=(i-a)*l*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var zre=we(($nr,Pre)=>{Pre.exports=bit;function bit(e,t,r,n,i,a,o){var s=1/(t-r),u=1/(n-i),l=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*u,e[14]=(o+a)*l,e[15]=1,e}});var Dre=we((Qnr,Ire)=>{var wit=QB();Ire.exports=Ait;function Ait(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p=t[0],y=t[1],b=t[2],v=n[0],C=n[1],M=n[2],A=r[0],L=r[1],x=r[2];return Math.abs(p-A)<1e-6&&Math.abs(y-L)<1e-6&&Math.abs(b-x)<1e-6?wit(e):(f=p-A,c=y-L,h=b-x,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,i=C*h-M*c,a=M*f-v*h,o=v*c-C*f,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=c*o-h*a,u=h*i-f*o,l=f*a-c*i,d=Math.sqrt(s*s+u*u+l*l),d?(d=1/d,s*=d,u*=d,l*=d):(s=0,u=0,l=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=a,e[5]=u,e[6]=c,e[7]=0,e[8]=o,e[9]=l,e[10]=h,e[11]=0,e[12]=-(i*p+a*y+o*b),e[13]=-(s*p+u*y+l*b),e[14]=-(f*p+c*y+h*b),e[15]=1,e)}});var Fre=we((ear,Rre)=>{Rre.exports=Tit;function Tit(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var eq=we((tar,Ore)=>{Ore.exports={create:Rte(),clone:Ote(),copy:qte(),identity:QB(),transpose:Vte(),invert:Hte(),adjoint:jte(),determinant:Zte(),multiply:Kte(),translate:$te(),scale:ere(),rotate:rre(),rotateX:nre(),rotateY:ore(),rotateZ:lre(),fromRotation:fre(),fromRotationTranslation:hre(),fromScaling:pre(),fromTranslation:mre(),fromXRotation:gre(),fromYRotation:xre(),fromZRotation:wre(),fromQuat:Tre(),frustum:Mre(),perspective:kre(),perspectiveFromFieldOfView:Lre(),ortho:zre(),lookAt:Dre(),str:Fre()}});var zL=we(xh=>{"use strict";var Sit=eq();xh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var Mit=Jl(),Bre=K1(),Eit=zL(),kit=eq();function Cit(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Lit(e){var t=Mit.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function qre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Pit(e,t){Nre("global",e,t)}function Nre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):Bre.warn("addStyleRule failed"):Bre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function zit(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&qre(r)}function Iit(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),u="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(l){l.getAttribute(u)||(l.addEventListener("mouseenter",function(){var f=this.querySelector(r);f&&(f.style[o[0]]=o[1])}),l.addEventListener("mouseleave",function(){var f=this.querySelector(r);f&&(t&&this.matches(t)?f.style[o[0]]=o[1]:f.style[s[0]]=s[1])}),l.setAttribute(u,!0))})}function Dit(e){var t=Vre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=Ure(n);if(i){var a=Eit.convertCssMatrix(i);r=kit.multiply(r,r,a)}}),r}function Ure(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Vre(e){for(var t=[];Rit(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Rit(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Fit(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Gre.exports={getGraphDiv:Cit,isPlotDiv:Lit,removeElement:qre,addStyleRule:Pit,addRelatedStyleRule:Nre,deleteRelatedStyleRule:zit,setStyleOnHover:Iit,getFullTransformMatrix:Dit,getElementTransformMatrix:Ure,getElementAndAncestors:Vre,equalDomRects:Fit}});var jM=we((nar,Hre)=>{"use strict";Hre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Sc=we((aar,Jre)=>{"use strict";var jre=Su().extendFlat,Oit=Tg(),Xre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Zre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Bit=Xre.flags.slice().concat(["fullReplot"]),qit=Zre.flags.slice().concat("layoutReplot");Jre.exports={traces:Xre,layout:Zre,traceFlags:function(){return Wre(Bit)},layoutFlags:function(){return Wre(qit)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";tq.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};tq.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var rq=we((sar,$re)=>{"use strict";$re.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Ff=we(x3=>{"use strict";var{DATE_FORMAT_LINK:Nit,FORMAT_LINK:Uit}=rq(),Vit=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Git({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Uit,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Nit,"for details on the date formatting syntax.",Vit].join(" ")}x3.templateFormatStringDescription=Git;x3.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>_m({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});x3.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>_m({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});x3.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});x3.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var RL=we((far,nie)=>{"use strict";function J1(e,t){return t?t.d2l(e):e}function Qre(e,t){return t?t.l2d(e):e}function Hit(e){return e.x0}function Wit(e){return e.x1}function jit(e){return e.y0}function Xit(e){return e.y1}function eie(e){return e.x0shift||0}function tie(e){return e.x1shift||0}function rie(e){return e.y0shift||0}function iie(e){return e.y1shift||0}function IL(e,t){return J1(e.x1,t)+tie(e)-J1(e.x0,t)-eie(e)}function DL(e,t,r){return J1(e.y1,r)+iie(e)-J1(e.y0,r)-rie(e)}function Zit(e,t){return Math.abs(IL(e,t))}function Yit(e,t,r){return Math.abs(DL(e,t,r))}function Kit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(IL(e,t),2)+Math.pow(DL(e,t,r),2))}function Jit(e,t){return Qre((J1(e.x1,t)+tie(e)+J1(e.x0,t)+eie(e))/2,t)}function $it(e,t,r){return Qre((J1(e.y1,r)+iie(e)+J1(e.y0,r)+rie(e))/2,r)}function Qit(e,t,r){return e.type!=="line"?void 0:DL(e,t,r)/IL(e,t)}var ent=["x0","x1","y0","y1","dy","height","ycenter"],tnt=["x0","x1","y0","y1","dx","width","xcenter"];nie.exports={x0:Hit,x1:Wit,y0:jit,y1:Xit,slope:Qit,dx:IL,dy:DL,width:Zit,height:Yit,length:Kit,xcenter:Jit,ycenter:$it,simpleXVariables:ent,simpleYVariables:tnt}});var sie=we((car,oie)=>{"use strict";var rnt=Sc().overrideAll,bb=Gf(),aie=gc(),int=Id().dash,$1=Su().extendFlat,{shapeTexttemplateAttrs:nnt,templatefallbackAttrs:ant}=Ff(),ont=RL();oie.exports=rnt({newshape:{visible:$1({},bb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:$1({},bb.legend,{}),legendgroup:$1({},bb.legendgroup,{}),legendgrouptitle:{text:$1({},bb.legendgrouptitle.text,{}),font:aie({})},legendrank:$1({},bb.legendrank,{}),legendwidth:$1({},bb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:$1({},int,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:$1({},bb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:nnt({newshape:!0},{keys:Object.keys(ont)}),texttemplatefallback:ant({editType:"arraydraw"}),font:aie({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var uie=we((har,lie)=>{"use strict";var snt=Id().dash,lnt=Su().extendFlat;lie.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:lnt({},snt,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var FL=we((dar,fie)=>{"use strict";fie.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var b3=we((par,pie)=>{"use strict";var iq=gc(),unt=jM(),OL=Bh(),cie=sie(),hie=uie(),fnt=FL(),die=Su().extendFlat,BL=iq({editType:"calc"});BL.family.dflt='"Open Sans", verdana, arial, sans-serif';BL.size.dflt=12;BL.color.dflt=OL.defaultLine;pie.exports={font:BL,title:{text:{valType:"string",editType:"layoutstyle"},font:iq({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:iq({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:die(fnt({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:OL.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:OL.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:OL.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:cie.newshape,activeshape:cie.activeshape,newselection:hie.newselection,activeselection:hie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:die({},unt.transition,{editType:"none"})}});var vie=we(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var $l=we(Af=>{"use strict";var w3=K1(),mie=PL(),yie=$B(),cnt=Tg(),hnt=WM().addStyleRule,gie=Su(),dnt=Gf(),pnt=b3(),vnt=gie.extendFlat,nq=gie.extendDeepAll;Af.modules={};Af.allCategories={};Af.allTypes=[];Af.subplotsRegistry={};Af.componentsRegistry={};Af.layoutArrayContainers=[];Af.layoutArrayRegexes=[];Af.traceLayoutAttributes={};Af.localeRegistry={};Af.apiMethodRegistry={};Af.collectableSubplotTypes=null;Af.register=function(t){if(Af.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var bnt=d3().timeFormat,Cie=ku(),aq=K1(),e_=v3().mod,S3=rf(),_0=S3.BADNUM,Tv=S3.ONEDAY,XM=S3.ONEHOUR,Q1=S3.ONEMIN,T3=S3.ONESEC,ZM=S3.EPOCHJD,Sg=$l(),Aie=d3().utcFormat,wnt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Ant=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Tie=new Date().getFullYear()-70;function Mg(e){return e&&Sg.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}bh.dateTick0=function(e,t){var r=Tnt(e,!!t);if(t<2)return r;var n=bh.dateTime2ms(r,e);return n+=Tv*(t-1),bh.ms2DateTime(n,0,e)};function Tnt(e,t){return Mg(e)?t?Sg.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Sg.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}bh.dfltRange=function(e){return Mg(e)?Sg.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};bh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var NL,UL;bh.dateTime2ms=function(e,t){if(bh.isJSDate(e)){var r=e.getTimezoneOffset()*Q1,n=(e.getUTCMinutes()-e.getMinutes())*Q1+(e.getUTCSeconds()-e.getSeconds())*T3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*Q1;r=r-i/2+e_(n-r+i/2,i)}return e=Number(e)-r,e>=NL&&e<=UL?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=Mg(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=a&&t.slice(0,7)==="chinese",u=e.match(s?Ant:wnt);if(!u)return _0;var l=u[1],f=u[3]||"1",c=Number(u[5]||1),h=Number(u[7]||0),d=Number(u[9]||0),p=Number(u[11]||0);if(a){if(l.length===2)return _0;l=Number(l);var y;try{var b=Sg.getComponentMethod("calendars","getCal")(t);if(s){var v=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=b.newDate(l,b.toMonthIndex(l,f,v),c)}else y=b.newDate(l,Number(f),c)}catch(M){return _0}return y?(y.toJD()-ZM)*Tv+h*XM+d*Q1+p*T3:_0}l.length===2?l=(Number(l)+2e3-Tie)%100+Tie:l=Number(l),f-=1;var C=new Date(Date.UTC(2e3,f,c,h,d));return C.setUTCFullYear(l),C.getUTCMonth()!==f||C.getUTCDate()!==c?_0:C.getTime()+p*T3};NL=bh.MIN_MS=bh.dateTime2ms("-9999");UL=bh.MAX_MS=bh.dateTime2ms("9999-12-31 23:59:59.9999");bh.isDateTime=function(e,t){return bh.dateTime2ms(e,t)!==_0};function A3(e,t){return String(e+Math.pow(10,t)).slice(1)}var qL=90*Tv,Sie=3*XM,Mie=5*Q1;bh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=NL&&e<=UL))return _0;t||(t=0);var n=Math.floor(e_(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,u,l,f;if(Mg(r)){var c=Math.floor(i/Tv)+ZM,h=Math.floor(e_(e,Tv));try{a=Sg.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=Aie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.slice(1);else for(;a.length<10;)a="0"+a;o=t=NL+Tv&&e<=UL-Tv))return _0;var t=Math.floor(e_(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=bnt("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return Lie(n,i,a,o,s)};function Lie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+A3(t,2)+":"+A3(r,2),(n||i)&&(e+=":"+A3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+A3(i,a)}return e}bh.cleanDate=function(e,t,r){if(e===_0)return t;if(bh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Mg(r))return aq.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=bh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!bh.isDateTime(e,r))return aq.error("unrecognized date",e),t;return e};var Snt=/%\d?f/g,Mnt=/%h/g,Ent={1:"1",2:"1",3:"2",4:"2"};function Eie(e,t,r,n){e=e.replace(Snt,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(Mnt,function(){return Ent[r("%q")(i)]}),Mg(n))try{e=Sg.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var knt=[59,59.9,59.99,59.999,59.9999];function Cnt(e,t){var r=e_(e+.05,Tv),n=A3(Math.floor(r/XM),2)+":"+A3(e_(Math.floor(r/Q1),60),2);if(t!=="M"){Cie(t)||(t=0);var i=Math.min(e_(e/T3,60),knt[t]),a=(100+i).toFixed(t).slice(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}bh.formatDate=function(e,t,r,n,i,a){if(i=Mg(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` -`+a.year;else return Cnt(e,r)+` -`+Eie(a.dayMonthYear,e,n,i);return Eie(t,e,n,i)};var kie=3*Tv;bh.incrementMonth=function(e,t,r){r=Mg(r)&&r;var n=e_(e,Tv);if(e=Math.round(e-n),r)try{var i=Math.round(e/Tv)+ZM,a=Sg.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-ZM)*Tv+n}catch(u){aq.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+kie);return s.setUTCMonth(s.getUTCMonth()+t)+n-kie};bh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,u=Mg(t)&&Sg.getComponentMethod("calendars","getCal")(t),l=0;l{"use strict";zie.exports=function(t){return t}});var VL=we(Eg=>{"use strict";var Lnt=ku(),Pnt=K1(),znt=YM(),Int=rf().BADNUM,oq=1e-9;Eg.findBin=function(e,t,r){if(Lnt(t.start))return r?Math.ceil((e-t.start)/t.size-oq)-1:Math.floor((e-t.start)/t.size+oq);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,u;for(o>=0?u=r?Dnt:Rnt:u=r?Ont:Fnt,e+=o*oq*(r?-1:1)*(o>=0?1:-1);n90&&Pnt.log("Long binary search..."),n-1};function Dnt(e,t){return et}function Ont(e,t){return e>=t}Eg.sorterAsc=function(e,t){return e-t};Eg.sorterDes=function(e,t){return t-e};Eg.distinctVals=function(e){var t=e.slice();t.sort(Eg.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Int;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var u=t[s],l=u-o;o===void 0?(a.push(u),o=u):l>i&&(n=Math.min(n,l),a.push(u),o=u)}return{vals:a,minDiff:n}};Eg.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,u=r?1:0,l=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};Eg.findIndexOfMin=function(e,t){t=t||znt;for(var r=1/0,n,i=0;i{"use strict";Iie.exports=function(t){return Object.keys(t).sort()}});var Die=we(wh=>{"use strict";var KM=ku(),Bnt=Jd().isArrayOrTypedArray;wh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),KM(t)||(t=!1),Bnt(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var qie=we((Tar,Bie)=>{"use strict";var Rie=v3(),sq=Rie.mod,qnt=Rie.modHalf,JM=Math.PI,r_=2*JM;function Nnt(e){return e/180*JM}function Unt(e){return e/JM*180}function lq(e){return Math.abs(e[1]-e[0])>r_-1e-14}function Fie(e,t){return qnt(t-e,r_)}function Vnt(e,t){return Math.abs(Fie(e,t))}function Oie(e,t){if(lq(t))return!0;var r,n;t[0]n&&(n+=r_);var i=sq(e,r_),a=i+r_;return i>=r&&i<=n||a>=r&&a<=n}function Gnt(e,t,r,n){if(!Oie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function uq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=lq([r,n]),u,l,f,c,h;s?(u=0,l=JM,f=r_):r{"use strict";wb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};wb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};wb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};wb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};wb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};wb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Gie=we(Ab=>{"use strict";var fq=v3().mod;Ab.segmentsIntersect=Vie;function Vie(e,t,r,n,i,a,o,s){var u=r-e,l=i-e,f=o-i,c=n-t,h=a-t,d=s-a,p=u*d-f*c;if(p===0)return null;var y=(l*d-f*h)/p,b=(l*c-u*h)/p;return b<0||b>1||y<0||y>1?null:{x:e+u*y,y:t+c*y}}Ab.segmentDistance=function(t,r,n,i,a,o,s,u){if(Vie(t,r,n,i,a,o,s,u))return 0;var l=n-t,f=i-r,c=s-a,h=u-o,d=l*l+f*f,p=c*c+h*h,y=Math.min(GL(l,f,d,a-t,o-r),GL(l,f,d,s-t,u-r),GL(c,h,p,t-a,r-o),GL(c,h,p,n-a,i-o));return Math.sqrt(y)};function GL(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var u=n*t-i*e;return u*u/r}}var HL,cq,Uie;Ab.getTextLocation=function(t,r,n,i){if((t!==cq||i!==Uie)&&(HL={},cq=t,Uie=i),HL[n])return HL[n];var a=t.getPointAtLength(fq(n-i/2,r)),o=t.getPointAtLength(fq(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),u=t.getPointAtLength(fq(n,r)),l=(u.x*4+a.x+o.x)/6,f=(u.y*4+a.y+o.y)/6,c={x:l,y:f,theta:s};return HL[n]=c,c};Ab.clearLocationCache=function(){cq=null};Ab.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,u=0,l=t.getTotalLength(),f=l,c,h;function d(y){var b=t.getPointAtLength(y);y===0?c=b:y===l&&(h=b);var v=b.xa?b.x-a:0,C=b.ys?b.y-s:0;return Math.sqrt(v*v+C*C)}for(var p=d(u);p;){if(u+=p+n,u>f)return;p=d(u)}for(p=d(f);p;){if(f-=p+n,u>f)return;p=d(f)}return{min:u,max:f,len:f-u,total:l,isClosed:u===0&&f===l&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Ab.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,u=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,l=0,f=0,c=a,h,d,p;l0?c=h:f=h,l++}return d}});var WL=we($M=>{"use strict";var kg={};$M.throttle=function(t,r,n){var i=kg[t],a=Date.now();if(!i){for(var o in kg)kg[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};$M.done=function(e){var t=kg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};$M.clear=function(e){if(e)Hie(kg[e]),delete kg[e];else for(var t in kg)$M.clear(t)};function Hie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var jie=we((kar,Wie)=>{"use strict";Wie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Xie=we((Car,jL)=>{"use strict";jL.exports=hq;jL.exports.isMobile=hq;jL.exports.default=hq;var Xnt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Znt=/CrOS/,Ynt=/android|ipad|playbook|silk/i;function hq(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=Xnt.test(t)&&!Znt.test(t)||!!e.tablet&&Ynt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Yie=we((Lar,Zie)=>{"use strict";var Knt=ku(),Jnt=Xie();Zie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=$nt(),typeof r!="string")return!0;var n=Jnt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var u=i[s];if(u.slice(0,8)==="Version/"){var l=u.slice(8).split(".")[0];if(Knt(l)&&(l=+l),l>=13)return!0}}}return n};function $nt(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Jie=we((Par,Kie)=>{"use strict";var Qnt=Jl();Kie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=Qnt.select(this)}),i}});var Qie=we((zar,$ie)=>{"use strict";var eat=$l();$ie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var u=s[r];if(u)return u}a=eat.localeRegistry}var l=n.split("-")[0];if(l===n)break;n=l}return r}});var dq=we((Iar,ene)=>{"use strict";ene.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";tne.exports=function(t){for(var r=iat(t)?rat:tat,n=[],i=0;i{"use strict";ine.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var u=parseFloat(i).toPrecision(12);u.indexOf("e+")===-1&&(i=+u)}}return i}});var one=we((Far,ane)=>{"use strict";var nat=ku(),aat=rf().BADNUM,oat=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;ane.exports=function(t){return typeof t=="string"&&(t=t.replace(oat,"")),nat(t)?Number(t):aat}});var ei=we((Oar,_ne)=>{"use strict";var QM=Jl(),sat=d3().utcFormat,lat=BB().format,hne=ku(),dne=rf(),pne=dne.FP_SAFE,uat=-pne,sne=dne.BADNUM,An=_ne.exports={};An.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var lne={};An.warnBadFormat=function(e){var t=String(e);lne[t]||(lne[t]=1,An.warn('encountered bad format: "'+t+'"'))};An.noFormat=function(e){return String(e)};An.numberFormat=function(e){var t;try{t=lat(An.adjustFormat(e))}catch(r){return An.warnBadFormat(e),An.noFormat}return t};An.nestedProperty=FM();An.keyedContainer=ete();An.relativeAttr=rte();An.isPlainObject=Tg();An.toLogRange=ML();An.relinkPrivateKeys=ote();var i_=Jd();An.isArrayBuffer=i_.isArrayBuffer;An.isTypedArray=i_.isTypedArray;An.isArrayOrTypedArray=i_.isArrayOrTypedArray;An.isArray1D=i_.isArray1D;An.ensureArray=i_.ensureArray;An.concat=i_.concat;An.maxRowLength=i_.maxRowLength;An.minRowLength=i_.minRowLength;var vne=v3();An.mod=vne.mod;An.modHalf=vne.modHalf;var n_=Ste();An.valObjectMeta=n_.valObjectMeta;An.coerce=n_.coerce;An.coerce2=n_.coerce2;An.coerceFont=n_.coerceFont;An.coercePattern=n_.coercePattern;An.coerceHoverinfo=n_.coerceHoverinfo;An.coerceSelectionMarkerOpacity=n_.coerceSelectionMarkerOpacity;An.validate=n_.validate;var Wv=Pie();An.dateTime2ms=Wv.dateTime2ms;An.isDateTime=Wv.isDateTime;An.ms2DateTime=Wv.ms2DateTime;An.ms2DateTimeLocal=Wv.ms2DateTimeLocal;An.cleanDate=Wv.cleanDate;An.isJSDate=Wv.isJSDate;An.formatDate=Wv.formatDate;An.incrementMonth=Wv.incrementMonth;An.dateTick0=Wv.dateTick0;An.dfltRange=Wv.dfltRange;An.findExactDates=Wv.findExactDates;An.MIN_MS=Wv.MIN_MS;An.MAX_MS=Wv.MAX_MS;var Tb=VL();An.findBin=Tb.findBin;An.sorterAsc=Tb.sorterAsc;An.sorterDes=Tb.sorterDes;An.distinctVals=Tb.distinctVals;An.roundUp=Tb.roundUp;An.sort=Tb.sort;An.findIndexOfMin=Tb.findIndexOfMin;An.sortObjectKeys=t_();var Cg=Die();An.aggNums=Cg.aggNums;An.len=Cg.len;An.mean=Cg.mean;An.geometricMean=Cg.geometricMean;An.median=Cg.median;An.midRange=Cg.midRange;An.variance=Cg.variance;An.stdev=Cg.stdev;An.interp=Cg.interp;var wm=zL();An.init2dArray=wm.init2dArray;An.transposeRagged=wm.transposeRagged;An.dot=wm.dot;An.translationMatrix=wm.translationMatrix;An.rotationMatrix=wm.rotationMatrix;An.rotationXYMatrix=wm.rotationXYMatrix;An.apply3DTransform=wm.apply3DTransform;An.apply2DTransform=wm.apply2DTransform;An.apply2DTransform2=wm.apply2DTransform2;An.convertCssMatrix=wm.convertCssMatrix;An.inverseTransformMatrix=wm.inverseTransformMatrix;var my=qie();An.deg2rad=my.deg2rad;An.rad2deg=my.rad2deg;An.angleDelta=my.angleDelta;An.angleDist=my.angleDist;An.isFullCircle=my.isFullCircle;An.isAngleInsideSector=my.isAngleInsideSector;An.isPtInsideSector=my.isPtInsideSector;An.pathArc=my.pathArc;An.pathSector=my.pathSector;An.pathAnnulus=my.pathAnnulus;var E3=Nie();An.isLeftAnchor=E3.isLeftAnchor;An.isCenterAnchor=E3.isCenterAnchor;An.isRightAnchor=E3.isRightAnchor;An.isTopAnchor=E3.isTopAnchor;An.isMiddleAnchor=E3.isMiddleAnchor;An.isBottomAnchor=E3.isBottomAnchor;var k3=Gie();An.segmentsIntersect=k3.segmentsIntersect;An.segmentDistance=k3.segmentDistance;An.getTextLocation=k3.getTextLocation;An.clearLocationCache=k3.clearLocationCache;An.getVisibleSegment=k3.getVisibleSegment;An.findPointOnPath=k3.findPointOnPath;var YL=Su();An.extendFlat=YL.extendFlat;An.extendDeep=YL.extendDeep;An.extendDeepAll=YL.extendDeepAll;An.extendDeepNoArrays=YL.extendDeepNoArrays;var pq=K1();An.log=pq.log;An.warn=pq.warn;An.error=pq.error;var fat=y3();An.counterRegex=fat.counter;var vq=WL();An.throttle=vq.throttle;An.throttleDone=vq.done;An.clearThrottle=vq.clear;var Am=WM();An.getGraphDiv=Am.getGraphDiv;An.isPlotDiv=Am.isPlotDiv;An.removeElement=Am.removeElement;An.addStyleRule=Am.addStyleRule;An.addRelatedStyleRule=Am.addRelatedStyleRule;An.deleteRelatedStyleRule=Am.deleteRelatedStyleRule;An.setStyleOnHover=Am.setStyleOnHover;An.getFullTransformMatrix=Am.getFullTransformMatrix;An.getElementTransformMatrix=Am.getElementTransformMatrix;An.getElementAndAncestors=Am.getElementAndAncestors;An.equalDomRects=Am.equalDomRects;An.clearResponsive=jie();An.preserveDrawingBuffer=Yie();An.makeTraceGroups=Jie();An._=Qie();An.notifier=YB();An.filterUnique=dq();An.filterVisible=rne();An.pushUnique=$B();An.increment=nne();An.cleanNumber=one();An.ensureNumber=function(t){return hne(t)?(t=Number(t),t>pne||t=t?!1:hne(e)&&e>=0&&e%1===0};An.noop=PL();An.identity=YM();An.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};An.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};An.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(An.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};An.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};An.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,u,l,f;for(s=0;s=n&&(l-=n*Math.floor(l/n)),l<0?l=-1-l:l>=r&&(l=n-1-l),f+=e[l]*a[u];o[s]=f}return o};An.syncOrAsync=function(e,t,r){var n,i;function a(){return An.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};An.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};An.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};An.fillArray=function(e,t,r,n){if(n=n||An.identity,An.isArrayOrTypedArray(e))for(var i=0;idat.test(window.navigator.userAgent);var pat=/Firefox\/(\d+)\.\d+/;An.getFirefoxVersion=function(){var e=pat.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};An.isD3Selection=function(e){return e instanceof QM.selection};An.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};An.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};An.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+u};An.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var gne=/^\w*$/;An.templateString=function(e,t){var r={};return e.replace(An.TEMPLATE_STRING_REGEX,function(n,i){var a;return gne.test(i)?a=t[i]:(r[i]=r[i]||An.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var yat={max:10,count:0,name:"hovertemplate"};An.hovertemplateString=e=>mq(W1(_m({},e),{opts:yat}));var gat={max:10,count:0,name:"texttemplate"};An.texttemplateString=e=>mq(W1(_m({},e),{opts:gat}));var _at=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function xat(e){var t=e.match(_at);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var bat={max:10,count:0,name:"texttemplate",parseMultDiv:!0};An.texttemplateStringForShapes=e=>mq(W1(_m({},e),{opts:bat}));var une=/^[:|\|]/;function mq({data:e=[],locale:t,fallback:r,labels:n={},opts:i,template:a}){return a.replace(An.TEMPLATE_STRING_REGEX,(o,s,u)=>{let l=["xother","yother"].includes(s),f=["_xother","_yother"].includes(s),c=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),d=l||f||h||c;(f||c)&&(s=s.substring(1)),(h||c)&&(s=s.substring(0,s.length-1));let p=null,y=null;if(i.parseMultDiv){var b=xat(s);s=b.key,p=b.op,y=b.number}let v;if(d){if(n[s]===void 0)return"";v=n[s]}else for(let L of e)if(L){if(L.hasOwnProperty(s)){v=L[s];break}if(gne.test(s)||(v=An.nestedProperty(L,s).get(!0)),v!==void 0)break}if(v===void 0){let{count:L,max:x,name:k}=i,S=r===!1?o:r;return L=ZL&&o<=fne,l=s>=ZL&&s<=fne;if(u&&(n=10*n+o-ZL),l&&(i=10*i+s-ZL),!u||!l){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var M3=2e9;An.seedPseudoRandom=function(){M3=2e9};An.pseudoRandom=function(){var e=M3;return M3=(69069*M3+1)%4294967296,Math.abs(M3-e)<429496729?An.pseudoRandom():M3/4294967296};An.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=An.extractOption(e,t,"htx","hovertext");if(An.isValidTextValue(i))return n(i);var a=An.extractOption(e,t,"tx","text");if(An.isValidTextValue(a))return n(a)};An.isValidTextValue=function(e){return e||e===0};An.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(l=1):l=0,An.strTranslate(i-l*(r+o),a-l*(n+s))+An.strScale(l)+(u?"rotate("+u+(t?"":" "+r+" "+n)+")":"")};An.setTransormAndDisplay=function(e,t){e.attr("transform",An.getTextTransform(t)),e.style("display",t.scale?null:"none")};An.ensureUniformFontSize=function(e,t){var r=An.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};An.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};An.bigFont=function(e){return Math.round(1.2*e)};var cne=An.getFirefoxVersion(),wat=cne!==null&&cne<86;An.getPositionFromD3Event=function(){return wat?[QM.event.layerX,QM.event.layerY]:[QM.event.offsetX,QM.event.offsetY]}});var wne=we(()=>{"use strict";var Aat=ei(),xne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(yq in xne)bne=yq.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Aat.addStyleRule(bne,xne[yq]);var bne,yq});var gq=we((Uar,Ane)=>{Ane.exports=!0});var xq=we((Var,Tne)=>{"use strict";var Tat=gq(),_q;typeof window.matchMedia=="function"?_q=!window.matchMedia("(hover: none)").matches:_q=Tat;Tne.exports=_q});var Sb=we((Gar,bq)=>{"use strict";var C3=typeof Reflect=="object"?Reflect:null,Sne=C3&&typeof C3.apply=="function"?C3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},KL;C3&&typeof C3.ownKeys=="function"?KL=C3.ownKeys:Object.getOwnPropertySymbols?KL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:KL=function(t){return Object.getOwnPropertyNames(t)};function Sat(e){console&&console.warn&&console.warn(e)}var Ene=Number.isNaN||function(t){return t!==t};function qc(){qc.init.call(this)}bq.exports=qc;bq.exports.once=Cat;qc.EventEmitter=qc;qc.prototype._events=void 0;qc.prototype._eventsCount=0;qc.prototype._maxListeners=void 0;var Mne=10;function JL(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qc,"defaultMaxListeners",{enumerable:!0,get:function(){return Mne},set:function(e){if(typeof e!="number"||e<0||Ene(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Mne=e}});qc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Ene(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function kne(e){return e._maxListeners===void 0?qc.defaultMaxListeners:e._maxListeners}qc.prototype.getMaxListeners=function(){return kne(this)};qc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")Sne(u,this,r);else for(var l=u.length,f=Ine(u,l),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Sat(s)}return e}qc.prototype.addListener=function(t,r){return Cne(this,t,r,!1)};qc.prototype.on=qc.prototype.addListener;qc.prototype.prependListener=function(t,r){return Cne(this,t,r,!0)};function Mat(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Lne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Mat.bind(n);return i.listener=r,n.wrapFn=i,i}qc.prototype.once=function(t,r){return JL(r),this.on(t,Lne(this,t,r)),this};qc.prototype.prependOnceListener=function(t,r){return JL(r),this.prependListener(t,Lne(this,t,r)),this};qc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(JL(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Eat(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};qc.prototype.off=qc.prototype.removeListener;qc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function Pne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?kat(i):Ine(i,i.length)}qc.prototype.listeners=function(t){return Pne(this,t,!0)};qc.prototype.rawListeners=function(t){return Pne(this,t,!1)};qc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):zne.call(e,t)};qc.prototype.listenerCount=zne;function zne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}qc.prototype.eventNames=function(){return this._eventsCount>0?KL(this._events):[]};function Ine(e,t){for(var r=new Array(t),n=0;n{"use strict";var wq=Sb().EventEmitter,Pat={init:function(e){if(e._ev instanceof wq)return e;var t=new wq,r=new wq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(u){if(u.listener){if(i.removeListener(t,u.listener),!u.fired)return u.fired=!0,u.listener.apply(i,[r])}else return u.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var Fne=ei(),zat=xb().dfltConfig;function Iat(e,t){for(var r=[],n,i=0;izat.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Lg.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Lg.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Lg.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";qne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var I3=we(id=>{"use strict";var x0=$l(),e5=ei(),QL=Gf(),Tq=b3(),Dat=Aq(),Rat=jM(),Fat=xb().configAttributes,Nne=Sc(),Tm=e5.extendDeepAll,P3=e5.isPlainObject,Oat=e5.isArrayOrTypedArray,eP=e5.nestedProperty,Bat=e5.valObjectMeta,Sq="_isSubplotObj",tP="_isLinkedToArray",qat="_arrayAttrRegexps",Vne="_deprecated",Mq=[Sq,tP,qat,Vne];id.IS_SUBPLOT_OBJ=Sq;id.IS_LINKED_TO_ARRAY=tP;id.DEPRECATED=Vne;id.UNDERSCORE_ATTRS=Mq;id.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=Uat(t)}),{defs:{valObjects:Bat,metaKeys:Mq.concat(["description","role","editType","impliedEdits"]),editType:{traces:Nne.traces,layout:Nne.layout},impliedEdits:{}},traces:e,layout:Vat(),frames:Gat(),animation:z3(Rat),config:z3(Fat)}};id.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(Mq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!id.isValObject(o)&&P3(o)&&a!=="impliedEdits"&&id.crawl(o,t,i+1,s)}})};id.isValObject=function(e){return e&&e.valType!==void 0};id.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(u,l,f,c){r=r.slice(0,c).concat([l]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var h=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(r[c-1]==="colorbar"&&(l==="ticktext"||l==="tickvals"));h&&s(i,0,"")}function s(u,l,f){var c=u[r[l]],h=f+r[l];if(l===r.length-1)Oat(c)&&t.push(a+h);else if(n[l]){if(Array.isArray(c))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!$L(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function $L(e){return e===Math.round(e)&&e>=0}function Uat(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=Tm({},QL),a=Tm({},t.attributes);id.crawl(a,function(u,l,f,c,h){eP(i,h).set(void 0),u===void 0&&eP(a,h).set(void 0)}),Tm(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,Tm(n,a),r.attributes&&Tm(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:z3(n)};if(t.layoutAttributes){var s={};Tm(s,t.layoutAttributes),o.layoutAttributes=z3(s)}return t.animatable||id.crawl(o,function(u){id.isValObject(u)&&"anim"in u&&delete u.anim}),o}function Vat(){var e={},t,r;Tm(e,Tq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var D3=ei(),Zat=Gf(),a_="templateitemname",Eq={name:{valType:"string",editType:"none"}};Eq[a_]={valType:"string",editType:"calc"};Mb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Eq.name,t[a_]=Eq[a_],t};Mb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=D3.coerce(a,{},Zat,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};Mb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);D3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};Mb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Wne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(l){var f={name:l.name,_input:l},c=f[a_]=l[a_];if(!Hne(c))return f._template=i,f;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function u(){s={},a&&(s[o]={},s[o][a_]=a)}u();function l(d,p){s[d]=p}function f(d,p){a?D3.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function c(){var d=s;return u(),d}function h(d,p){d&&f(d,p);var y=c();for(var b in y)D3.nestedProperty(e,b).set(y[b])}return{modifyBase:l,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var qh=we((Yar,jne)=>{"use strict";var t5=y3().counter;jne.exports={idRegex:{x:t5("x","( domain)?"),y:t5("y","( domain)?")},attrRegex:t5("[xy]axis"),xAxisMatch:t5("xaxis"),yAxisMatch:t5("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var jc=we(Sv=>{"use strict";var Yat=$l(),kq=qh();Sv.id2name=function(t){if(!(typeof t!="string"||!t.match(kq.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Sv.name2id=function(t){if(t.match(kq.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Sv.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(kq.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].slice(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};Sv.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=Sv.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Sv.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Xne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function Kat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Jat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Zne.exports={clearOutlineControllers:Kat,clearOutline:Jat}});var rP=we(($ar,Yne)=>{"use strict";Yne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Dd=we(nP=>{"use strict";var iP=$l(),Qar=qh().SUBPLOT_PATTERN;nP.getSubplotCalcData=function(e,t,r){var n=iP.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var $at=$l(),R3=ei();Eb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=Eb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Kne(e,o,i.cache),i.check=function(){if(a){var f=Kne(e,o,i.cache);return f.changed&&n&&i.lookupTable[f.value]!==void 0&&(i.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[f.value]})).then(i.enable,i.enable)),f.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+i;R3.isPlainObject(a)?Cq(a,t,o,n+1):t(o,i,a)}})}});var Cc=we((ror,dae)=>{"use strict";var oae=Jl(),eot=d3().timeFormatLocale,tot=BB().formatLocale,r5=ku(),rot=qB(),Hf=$l(),sae=I3(),iot=Lf(),tu=ei(),lae=jl(),eae=rf().BADNUM,Mv=jc(),not=o_().clearOutline,aot=rP(),Lq=jM(),oot=Aq(),sot=Dd().getModuleCalcData,tae=tu.relinkPrivateKeys,kb=tu._,Ol=dae.exports={};tu.extendFlat(Ol,Hf);Ol.attributes=Gf();Ol.attributes.type.values=Ol.allTypes;Ol.fontAttrs=gc();Ol.layoutAttributes=b3();var oP=Qne();Ol.executeAPICommand=oP.executeAPICommand;Ol.computeAPICommandBindings=oP.computeAPICommandBindings;Ol.manageCommandObserver=oP.manageCommandObserver;Ol.hasSimpleAPICommandBindings=oP.hasSimpleAPICommandBindings;Ol.redrawText=function(e){return e=tu.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Hf.getComponentMethod("annotations","draw")(e),Hf.getComponentMethod("legend","draw")(e),Hf.getComponentMethod("colorbar","draw")(e),t(Ol.previousPromises(e)))},300)})};Ol.resize=function(e){e=tu.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||tu.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||tu.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Hf.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};Ol.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Ol.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=tu.ensureSingle(t._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:lae.defaultLine,"pointer-events":"all"}).each(function(){var l=oae.select(this);l.append("tspan").classed("js-link-to-tool",!0),l.append("tspan").classed("js-link-spacer",!0),l.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&lot(e,a),o.text(a.text()&&s.text()?" - ":"")}};function lot(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){Ol.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}Ol.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=oae.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=Ol.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var uot=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],fot=["year","month","dayMonth","dayMonthYear"];Ol.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],u=e.data||[],l=e.calcdata||[],f=e._context||{},c;e._transitionData||Ol.createTransitionData(e),i._dfltTitle={plot:kb(e,"Click to enter Plot title"),subtitle:kb(e,"Click to enter Plot subtitle"),x:kb(e,"Click to enter X axis title"),y:kb(e,"Click to enter Y axis title"),colorbar:kb(e,"Click to enter Colorscale title"),annotation:kb(e,"new text")},i._traceWord=kb(e,"trace");var h=rae(e,uot);if(i._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,p=n.height;Ol.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=p),Ol.sanitizeMargins(i)}else{Ol.supplyLayoutGlobalDefaults(a,i,h);var y=!a.width||!a.height,b=i.autosize,v=f.autosizable,C=y&&(b||v);C?Ol.plotAutoSize(e,a,i):y&&Ol.sanitizeMargins(i),!b&&y&&(a.width=i.width,a.height=i.height)}i._d3locale=dot(h,i.separators),i._extraFormat=rae(e,fot),i._initialAutoSizeIsDone=!0,i._dataLength=u.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var M=i._subplots=hot(),A=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=cot(o,u),Ol.supplyDataDefaults(u,s,a,i);var x=Object.keys(A.x),k=Object.keys(A.y);if(x.length>1&&k.length>1){for(Hf.getComponentMethod("grid","sizeDefaults")(a,i),c=0;c15&&k.length>15&&i.shapes.length===0&&i.images.length===0,Ol.linkSubplots(s,i,o,n),Ol.cleanPlot(s,i,o,n);var O=!!(n._has&&n._has("cartesian")),F=!!(i._has&&i._has("cartesian")),U=O,G=F;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&¬({_fullLayout:n}),pot(s,i),tae(i,n),Hf.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var j=i._tracePreGUI,W={},N;for(N in j)W[N]="old";for(c=0;c0){var f=1-2*a;o=Math.round(f*o),s=Math.round(f*s)}}var c=Ol.layoutAttributes.width.min,h=Ol.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(n.height-s)>1;(p||d)&&(d&&(n.width=o),p&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),Ol.sanitizeMargins(n)};Ol.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Hf.componentsRegistry,a=t._basePlotModules,o,s,u,l=Hf.subplotsRegistry.cartesian;for(o in i)u=i[o],u.includeBasePlot&&u.includeBasePlot(e,t);a.length||a.push(l),t._has("cartesian")&&(Hf.getComponentMethod("grid","contentDefaults")(e,t),l.finalizeSubplots(e,t));for(var f in t._subplots)t._subplots[f].sort(tu.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var v=(r.t+r.b)/h;v>1&&(r.t/=v,r.b/=v)}var C=r.xl!==void 0?r.xl:r.x,M=r.xr!==void 0?r.xr:r.x,A=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:C,size:r.l+y},r:{val:M,size:r.r+y},b:{val:L,size:r.b+y},t:{val:A,size:r.t+y}},p[t]=1}if(!n._replotting)return Ol.doAutoMargin(e)}};function mot(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Mv.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}Ol.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),uae(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=tu.extendFlat({},i),u=a.l,l=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,y=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var v=e._fullLayout._reservedMargin;for(var C in v)for(var M in v[C]){var A=v[C][M];o[M]=Math.max(o[M],A)}h.base={l:{val:0,size:u},r:{val:1,size:l},t:{val:1,size:f},b:{val:0,size:c}};for(var L in o){var x=0;for(var k in h)k!=="base"&&r5(h[k][L].size)&&(x=h[k][L].size>x?h[k][L].size:x);var S=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-S)}for(var m in h){var P=h[m].l||{},E=h[m].b||{},O=P.val,F=P.size,U=E.val,G=E.size,j=r-o.r-o.l,W=n-o.t-o.b;for(var N in h){if(r5(F)&&h[N].r){var H=h[N].r.val,re=h[N].r.size;if(H>O){var ae=(F*H+(re-j)*O)/(H-O),me=(re*(1-O)+(F-j)*(1-H))/(H-O);ae+me>u+l&&(u=ae,l=me)}}if(r5(G)&&h[N].t){var Le=h[N].t.val,Ce=h[N].t.size;if(Le>U){var de=(G*Le+(Ce-W)*U)/(Le-U),te=(Ce*(1-U)+(G-W)*(1-Le))/(Le-U);de+te>c+f&&(c=de,f=te)}}}}}var Se=tu.constrain(r-a.l-a.r,fae,p),Te=tu.constrain(n-a.t-a.b,cae,y),be=Math.max(0,r-Se),He=Math.max(0,n-Te);if(be){var Ie=(u+l)/be;Ie>1&&(u/=Ie,l/=Ie)}if(He){var ge=(c+f)/He;ge>1&&(c/=ge,f/=ge)}if(i.l=Math.round(u)+o.l,i.r=Math.round(l)+o.r,i.t=Math.round(f)+o.t,i.b=Math.round(c)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(Ol.didMarginChange(s,i)||mot(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Be=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};Ol.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&Ol.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function l(h,d){if(typeof h=="function")return d?"_function_":null;if(tu.isPlainObject(h)){var p={},y;return Object.keys(h).sort().forEach(function(M){if(["_","["].indexOf(M.charAt(0))===-1){if(typeof h[M]=="function"){d&&(p[M]="_function");return}if(r==="keepdata"){if(M.slice(-3)==="src")return}else if(r==="keepstream"){if(y=h[M+"src"],typeof y=="string"&&y.indexOf(":")>0&&!tu.isPlainObject(h.stream))return}else if(r!=="keepall"&&(y=h[M+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[M]=l(h[M],d)}}),p}var b=Array.isArray(h),v=tu.isTypedArray(h);if((b||v)&&h.dtype&&h.shape){var C=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:tu.isArrayBuffer(C)?rot.encode(C):C},d)}return b?h.map(function(M){return l(M,d)}):v?tu.simpleMap(h,tu.identity):tu.isJSDate(h)?tu.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=l(h);return t&&delete d.fit,d})};if(!t&&(f.layout=l(s),i)){var c=s._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return u&&(f.frames=l(u)),a&&(f.config=l(e._context,!0)),n==="object"?f:JSON.stringify(f)};Ol.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Hf.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!n&&d===h&&s(c)}}r.runFn(p),setTimeout(p())})}function s(c){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Hf.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var l=[Ol.previousPromises,u,r.prepareFn,Ol.rehover,Ol.reselect,o],f=tu.syncOrAsync(l,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Ol.doCalcdata=function(e,t){var r=Mv.list(e),n=e._fullData,i=e._fullLayout,a,o,s,u,l=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=l,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;u--)if(L[u].enabled){a._indexToPoints=L[u]._indexToPoints;break}o&&o.calc&&(A=o.calc(e,a))}(!Array.isArray(A)||!A[0])&&(A=[{x:eae,y:eae}]),A[0].t||(A[0].t={}),A[0].trace=a,l[C]=A}}for(nae(r,n,i),s=0;s{"use strict";Cb.xmlns="http://www.w3.org/2000/xmlns/";Cb.svg="http://www.w3.org/2000/svg";Cb.xlink="http://www.w3.org/1999/xlink";Cb.svgAttrs={xmlns:Cb.svg,"xmlns:xlink":Cb.xlink}});var Nh=we((nor,pae)=>{"use strict";pae.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Wf=we(b0=>{"use strict";var Uh=Jl(),Pg=ei(),xot=Pg.strTranslate,Pq=jv(),bot=Nh().LINE_SPACING,wot=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(wot),a=Uh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var u=Rot(e.node(),n);u&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(u){e.style("display","none");var l=parseInt(e.node().style.fontSize,10),f={fontSize:l};Mot(i[2],f,function(c,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){s(),u();return}var y=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});y.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var b=d.width,v=d.height;p.attr({class:o,height:v,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",M=p.select("g");M.attr({fill:C,stroke:C});var A=M.node().getBoundingClientRect(),L=A.width,x=A.height;(L>b||x>v)&&(p.style("overflow","hidden"),A=p.node().getBoundingClientRect(),L=A.width,x=A.height);var k=+e.attr("x"),S=+e.attr("y"),m=l||e.node().getBoundingClientRect().height,P=-m/4;if(o[0]==="y")y.attr({transform:"rotate("+[-90,k,S]+")"+xot(-L/2,P-x/2)});else if(o[0]==="l")S=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)k=0,S=P;else{var E=e.attr("text-anchor");k=k-L*(E==="middle"?.5:E==="end"?1:0),S=S+P-x/2}p.attr({x:k,y:S}),r&&r.call(e,y),u(y)})})):s(),e};var Aot=/(<|<|<)/g,Tot=/(>|>|>)/g;function Sot(e){return e.replace(Aot,"\\lt ").replace(Tot,"\\gt ")}var vae=[["$","$"],["\\(","\\)"]];function Mot(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Pg.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,u=function(){return a=Pg.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:vae},displayAlign:"left"})},l=function(){a=Pg.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=vae},f=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+Pg.randstr({},64);s=Uh.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Sot(e));var M=s.node();return n===2?MathJax.Hub.Typeset(M):MathJax.typeset([M])},d=function(){var C=s.select(n===2?".MathJax_SVG":".MathJax"),M=!C.empty()&&s.select("svg").node();if(!M)Pg.log("There was an error in the tex syntax.",e),r();else{var A=M.getBoundingClientRect(),L;n===2?L=Uh.select("body").select("#MathJax_SVG_glyphs"):L=C.select("defs"),r(C,L,A)}s.remove()},p=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},y=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},v=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(u,f,h,d,p,b):n===3&&(l(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),y(),v()}))}var _ae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Eot={sub:"0.3em",sup:"-0.6em"},kot={sub:"-0.21em",sup:"0.42em"},mae="\u200B",yae=["http:","https:","mailto:","",void 0,":"],xae=b0.NEWLINES=/(\r\n?|\n)/g,Iq=/(<[^<>]*>)/,Dq=/<(\/?)([^ >]*)(\s+(.*))?>/i,Cot=//i;b0.BR_TAG_ALL=//gi;var bae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,wae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Aae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Lot=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Lb(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&sP(n)}var Pot=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(Iq),s=[],u="",l=0,f=0;fa?s.push(c.slice(0,Math.max(0,y-a))+i):s.push(c.slice(0,y));break}u=""}}return s.join("")};var zot={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Iot=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function sP(e){return e.replace(Iot,function(t,r){var n;return r.charAt(0)==="#"?n=Dot(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):n=zot[r],n||t})}b0.convertEntities=sP;function Dot(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function Rot(e,t){t=t.replace(xae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(Pq.svg,"tspan");Uh.select(x).attr({class:"line",dy:a*bot+"em"}),e.appendChild(x),i=x;var k=n;if(n=[{node:x}],k.length>1)for(var S=1;S.",t);return}var k=n.pop();x!==k.type&&Pg.log("Start tag <"+k.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var f=Cot.test(t);f?o():(i=e,n=[{node:e}]);for(var c=t.split(Iq),h=0;h{"use strict";var Fot=Jl(),uP=hd(),n5=ku(),lP=ei(),Sae=jl(),Oot=gb().isValid;function Bot(e,t,r){var n=t?lP.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(lP.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function Pae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var Iae=rq(),Not=Iae.FORMAT_LINK,Uot=Iae.DATE_FORMAT_LINK;function Vot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Rq:Dae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Rq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Not+"."].join(" ")}function Dae(e,t){return Rq(e,t)+[" And for dates see: "+Uot+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Rae.exports={axisHoverFormat:Vot,descriptionOnlyNumbers:Rq,descriptionWithDates:Dae}});var Rd=we((uor,$ae)=>{"use strict";var Fae=gc(),F3=Bh(),Jae=Id().dash,Oq=Su().extendFlat,Oae=Lf().templatedArray,lor=Ff().templateFormatStringDescription,Bae=Xc().descriptionWithDates,Got=rf().ONEDAY,yy=qh(),Hot=yy.HOUR_PATTERN,Wot=yy.WEEKDAY_PATTERN,Fq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},jot=Oq({},Fq,{values:Fq.values.slice().concat(["sync"])});function qae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Nae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Uae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Vae={valType:"data_array",editType:"ticks"},Gae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Hae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Wae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var jae={valType:"color",dflt:F3.defaultLine,editType:"ticks"},Xae={valType:"color",dflt:F3.lightLine,editType:"ticks"};function Zae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Yae=Oq({},Jae,{editType:"ticks"}),Kae={valType:"boolean",editType:"ticks"};$ae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:F3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Fae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[yy.idRegex.x.toString(),yy.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[yy.idRegex.x.toString(),yy.idRegex.y.toString()],editType:"calc"},rangebreaks:Oae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Wot,Hot,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Got},editType:"calc"}),tickmode:jot,nticks:qae(),tick0:Nae,dtick:Uae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Vae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Gae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Hae(),tickwidth:Wae(),tickcolor:jae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Oq({},Jae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Fae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Bae("tick label")},tickformatstops:Oae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Bae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:F3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Kae,gridcolor:Xae,gridwidth:Zae(),griddash:Yae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:F3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:F3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",yy.idRegex.x.toString(),yy.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",yy.idRegex.x.toString(),yy.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Fq,nticks:qae("minor"),tick0:Nae,dtick:Uae,tickvals:Vae,ticks:Gae,ticklen:Hae("minor"),tickwidth:Wae("minor"),tickcolor:jae,gridcolor:Xae,gridwidth:Zae("minor"),griddash:Yae,showgrid:Kae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var fP=we((cor,toe)=>{"use strict";var Nc=Rd(),Qae=gc(),eoe=Su().extendFlat,Xot=Sc().overrideAll;toe.exports=Xot({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Nc.linecolor,outlinewidth:Nc.linewidth,bordercolor:Nc.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Nc.minor.tickmode,nticks:Nc.nticks,tick0:Nc.tick0,dtick:Nc.dtick,tickvals:Nc.tickvals,ticktext:Nc.ticktext,ticks:eoe({},Nc.ticks,{dflt:""}),ticklabeloverflow:eoe({},Nc.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Nc.ticklen,tickwidth:Nc.tickwidth,tickcolor:Nc.tickcolor,ticklabelstep:Nc.ticklabelstep,showticklabels:Nc.showticklabels,labelalias:Nc.labelalias,tickfont:Qae({}),tickangle:Nc.tickangle,tickformat:Nc.tickformat,tickformatstops:Nc.tickformatstops,tickprefix:Nc.tickprefix,showtickprefix:Nc.showtickprefix,ticksuffix:Nc.ticksuffix,showticksuffix:Nc.showticksuffix,separatethousands:Nc.separatethousands,exponentformat:Nc.exponentformat,minexponent:Nc.minexponent,showexponent:Nc.showexponent,title:{text:{valType:"string"},font:Qae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var nc=we((dor,ioe)=>{"use strict";var Zot=fP(),Yot=y3().counter,Kot=t_(),roe=gb().scales,hor=Kot(roe);function cP(e){return"`"+e+"`"}ioe.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?roe[r.colorscaleDflt]:null,u=r.editTypeOverride||"",l=t?t+".":"",f,c;"colorAttr"in r?(f=r.colorAttr,c=r.colorAttr):(f={z:"z",c:"color"}[n],c="in "+cP(l+f));var h=i?" Has an effect only if "+c+" is set to a numerical array.":"",d=n+"auto",p=n+"min",y=n+"max",b=n+"mid",v=cP(l+d),C=cP(l+p),M=cP(l+y),A=C+" and "+M,L={};L[p]=L[y]=void 0;var x={};x[d]=!1;var k={};return f==="color"&&(k.color={valType:"color",arrayOk:!0,editType:u||"style"},r.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},k[p]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},k[y]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},k[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},k.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(k.showscale={valType:"boolean",dflt:o,editType:"calc"},k.colorbar=Zot),r.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Yot("coloraxis"),dflt:null,editType:"calc"}),k}});var qq=we((por,noe)=>{"use strict";var Jot=Su().extendFlat,$ot=nc(),Bq=gb().scales;noe.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Bq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Bq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Bq.RdBu,editType:"calc"}},coloraxis:Jot({_isSubplotObj:!0,editType:"calc"},$ot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Nq=we((vor,aoe)=>{"use strict";var Qot=ei();aoe.exports=function(t){return Qot.isPlainObject(t.colorbar)}});var Gq=we(Vq=>{"use strict";var Uq=ku(),ooe=ei(),soe=rf(),est=soe.ONEDAY,tst=soe.ONEWEEK;Vq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?est:1;if(!e)return a;if(Uq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.slice(1);return s=Uq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Vq.tick0=function(e,t,r,n){if(t==="date")return ooe.cleanDate(e,ooe.dateTick0(r,n%tst===0?1:0));if(!(n==="D1"||n==="D2"))return Uq(e)?Number(e):0}});var Pb=we((yor,uoe)=>{"use strict";var loe=Gq(),rst=ei().isArrayOrTypedArray,ist=Jd().isTypedArraySpec,nst=Jd().decodeTypedArraySpec;uoe.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,u=o?r.minor:r,l=o?"minor.":"";function f(C){var M=s[C];return ist(M)&&(M=nst(M)),M!==void 0?M:(u._template||{})[C]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=rst(d)?"array":h?"linear":"auto",y=n(l+"tickmode",p);if(y==="auto"||y==="sync")n(l+"nticks");else if(y==="linear"){var b=u.dtick=loe.dtick(h,i);u.tick0=loe.tick0(c,i,r.calendar,b)}else if(i!=="multicategory"){var v=n(l+"tickvals");v===void 0?u.tickmode="auto":o||n("ticktext")}}});var O3=we((gor,coe)=>{"use strict";var Hq=ei(),foe=Rd();coe.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,u=a?foe.minor:foe,l=a?"minor.":"",f=Hq.coerce2(o,s,u,"ticklen",a?(r.ticklen||5)*.6:void 0),c=Hq.coerce2(o,s,u,"tickwidth",a?r.tickwidth||1:void 0),h=Hq.coerce2(o,s,u,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(l+"ticks",!a&&i.outerTicks||f||c||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Wq=we((_or,hoe)=>{"use strict";hoe.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var $d=we((xor,doe)=>{"use strict";var hP=ei(),ast=Lf();doe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=hP.isArrayOrTypedArray(t[i])?t[i]:[],u=r[i]=[],l=ast.arrayTemplater(r,i,a),f,c;for(f=0;f{"use strict";var jq=ei(),ost=jl().contrast,poe=Rd(),sst=Wq(),lst=$d();voe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");jq.isPlainObject(o)||delete r.labelalias;var s=sst(t),u=n("showticklabels");if(u){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var l=a.font||{},f=r.color,c=r.ticklabelposition||"",h=c.indexOf("inside")!==-1?ost(a.bgColor):f&&f!==poe.color.dflt?f:l.color;if(jq.coerceFont(n,"tickfont",l,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var p=n("tickformat");lst(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:ust}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!p&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function ust(e,t){function r(i,a){return jq.coerce(e,t,poe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var l_=we((wor,moe)=>{"use strict";var fst=Wq();moe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=fst(t),u=n("tickprefix");u&&n("showtickprefix",s);var l=n("ticksuffix",o);l&&n("showticksuffix",s)}});var Xq=we((Aor,yoe)=>{"use strict";var u_=ei(),cst=Lf(),hst=Pb(),dst=O3(),pst=s_(),vst=l_(),mst=fP();yoe.exports=function(t,r,n){var i=cst.newContainer(r,"colorbar"),a=t.colorbar||{};function o(E,O){return u_.coerce(a,i,mst,E,O)}var s=n.margin||{t:0,b:0,l:0,r:0},u=n.width-s.l-s.r,l=n.height-s.t-s.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?u:l):30);var d=o("lenmode");o("len",d==="fraction"?1:c?l:u);var p=o("yref"),y=o("xref"),b=p==="paper",v=y==="paper",C,M,A,L="left";c?(A="middle",L=v?"left":"right",C=v?1.02:1,M=.5):(A=b?"bottom":"top",L="center",C=.5,M=b?1.02:1),u_.coerce(a,i,{x:{valType:"number",min:v?-2:0,max:v?3:1,dflt:C}},"x"),u_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:M}},"y"),o("xanchor",L),o("xpad"),o("yanchor",A),o("ypad"),u_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=u_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),hst(a,i,o,"linear");var k=n.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};x.indexOf("inside")!==-1&&(S.bgColor="black"),vst(a,i,o,"linear",S),pst(a,i,o,"linear",S),dst(a,i,o,"linear",S),o("title.text",n._dfltTitle.colorbar);var m=i.showticklabels?i.tickfont:k,P=u_.extendFlat({},k,{family:m.family,size:u_.bigFont(m.size)});u_.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var nd=we((Tor,xoe)=>{"use strict";var goe=ku(),Yq=ei(),yst=Nq(),gst=Xq(),_oe=gb().isValid,_st=$l().traceIs;function Zq(e,t){var r=t.slice(0,t.length-1);return t?Yq.nestedProperty(e,r).get()||{}:e}xoe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,u="_module"in r,l=Zq(t,o),f=Zq(r,o),c=Zq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(u){var d=n._colorAxes||{},p=i(o+"coloraxis");if(p){var y=_st(r,"contour")&&Yq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[p];b?(b[2].push(h),b[0]!==y&&(b[0]=!1,Yq.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,r,[h]];return}}var v=l[s+"min"],C=l[s+"max"],M=goe(v)&&goe(C)&&v{"use strict";var boe=ei(),xst=Lf(),woe=qq(),bst=nd();Aoe.exports=function(t,r){function n(c,h){return boe.coerce(t,r,woe,c,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(c,h){return boe.coerce(a,o,woe.coloraxis,c,h)}for(var u in i){var l=i[u];if(l[0])a=t[u]||{},o=xst.newContainer(r,u,"coloraxis"),o._name=u,bst(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var wst=ei(),Ast=yp().hasColorscale,Tst=yp().extractOpts;Soe.exports=function(t,r){function n(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function i(f,c){var h=c.container?wst.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Tst(h),p=d.auto;(p||d.min===void 0)&&n(h,c.min),(p||d.max===void 0)&&n(h,c.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var Eoe=ku(),Kq=ei(),Sst=yp().extractOpts;koe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Kq.nestedProperty(r,o).get():r,u=Sst(s),l=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return Kq.aggNums(Math.min,null,a)},p=function(){return Kq.aggNums(Math.max,null,a)};if(f===void 0?f=d():l&&(s._colorAx&&Eoe(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():l&&(s._colorAx&&Eoe(c)?c=Math.max(c,p()):c=p()),l&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?y=i.colorscale.sequential:y=i.colorscale.sequentialminus,u._sync("colorscale",y)}}});var _c=we((kor,Coe)=>{"use strict";var dP=gb(),B3=yp();Coe.exports={moduleType:"component",name:"colorscale",attributes:nc(),layoutAttributes:qq(),supplyLayoutDefaults:Toe(),handleDefaults:nd(),crossTraceDefaults:Moe(),calc:gp(),scales:dP.scales,defaultScale:dP.defaultScale,getScale:dP.get,isValidScale:dP.isValid,hasColorscale:B3.hasColorscale,extractOpts:B3.extractOpts,extractScale:B3.extractScale,flipScale:B3.flipScale,makeColorScaleFunc:B3.makeColorScaleFunc,makeColorScaleFuncFromTrace:B3.makeColorScaleFuncFromTrace}});var lc=we((Cor,Poe)=>{"use strict";var Loe=ei(),Mst=Jd().isTypedArraySpec;Poe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return Loe.isPlainObject(t)&&(Loe.isArrayOrTypedArray(t.size)||Mst(t.size))}}});var q3=we((Lor,zoe)=>{"use strict";var Est=ku();zoe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var u=o(s/r);return Est(u)&&u>0?Math.max(u,a):0}}});var iv=we(_p=>{"use strict";var pP=ei();_p.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};_p.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{Roe.exports=zst;var Jq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Pst=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function zst(e){var t=[];return e.replace(Pst,function(r,n,i){var a=n.toLowerCase();for(i=Dst(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Jq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var Rst=a5(),wl=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},nf="M0,0Z",Foe=Math.sqrt(2),f_=Math.sqrt(3),$q=Math.PI,Qq=Math.cos,eN=Math.sin;Uoe.exports={circle:{n:0,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?of(t,r,i):i}},square:{n:1,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.3,2);return of(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.4,2),i=wl(e*1.2,2);return of(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.8/Foe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return of(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2/f_,2),i=wl(e/2,2),a=wl(e,2);return of(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2/f_,2),i=wl(e/2,2),a=wl(e,2);return of(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2/f_,2),i=wl(e/2,2),a=wl(e,2);return of(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2/f_,2),i=wl(e/2,2),a=wl(e,2);return of(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.6,2),i=wl(e*1.2,2);return of(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.6,2),i=wl(e*1.2,2);return of(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.6,2),i=wl(e*1.2,2);return of(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.6,2),i=wl(e*1.2,2);return of(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.951,2),i=wl(e*.588,2),a=wl(-e,2),o=wl(e*-.309,2),s=wl(e*.809,2);return of(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e/2,2),a=wl(e*f_/2,2);return of(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e/2,2),a=wl(e*f_/2,2);return of(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.924,2),i=wl(e*.383,2);return of(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(af(t))return nf;var n=e*1.4,i=wl(n*.225,2),a=wl(n*.951,2),o=wl(n*.363,2),s=wl(n*.588,2),u=wl(-n,2),l=wl(n*-.309,2),f=wl(n*.118,2),c=wl(n*.809,2),h=wl(n*.382,2);return of(t,r,"M"+i+","+l+"H"+a+"L"+o+","+f+"L"+s+","+c+"L0,"+h+"L-"+s+","+c+"L-"+o+","+f+"L-"+a+","+l+"H-"+i+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.66,2),i=wl(e*.38,2),a=wl(e*.76,2);return of(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(af(t))return nf;var n=wl(e*f_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return of(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(af(t))return nf;var n=wl(e*f_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return of(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.1,2),i=wl(e*2,2),a="A "+i+","+i+" 0 0 1 ";return of(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2),i=wl(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return of(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.7,2),i=wl(e*1.4,2);return of(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2),i=wl(e*.7,2);return of(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e/Foe,2);return of(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.3,2);return of(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.3,2),i=wl(e*.65,2);return of(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2);return of(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*.85,2);return of(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(af(t))return nf;var n=wl(e/2,2),i=wl(e,2);return of(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return of(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return of(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return of(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return of(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2);return of(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2);return of(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e*2,2);return of(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e*2,2);return of(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2,2),i=wl(e,2);return of(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2,2),i=wl(e,2);return of(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e*2,2);return of(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e*2,2);return of(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2,2),i=wl(e,2);return of(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2,2),i=wl(e,2);return of(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(af(t))return nf;var n=$q/2.5,i=2*e*Qq(n),a=2*e*eN(n);return of(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(af(t))return nf;var n=$q/4,i=2*e*Qq(n),a=2*e*eN(n);return of(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function af(e){return e===null}var Ooe,Boe,qoe,Noe;function of(e,t,r){if((!e||e%360===0)&&!t)return r;if(qoe===e&&Noe===t&&Ooe===r)return Boe;qoe=e,Noe=t,Ooe=r;function n(b,v){var C=Qq(b),M=eN(b),A=v[0],L=v[1]+(t||0);return[A*C-L*M,A*M+L*C]}for(var i=e/180*$q,a=0,o=0,s=Rst(r),u="",l=0;l{"use strict";var pd=Jl(),uc=ei(),Fst=uc.numberFormat,Rb=ku(),oN=hd(),mP=$l(),Qd=jl(),Ost=_c(),s5=uc.strTranslate,yP=Wf(),Bst=jv(),qst=Nh(),Nst=qst.LINE_SPACING,$oe=X1().DESELECTDIM,Ust=lc(),Vst=q3(),Gst=iv().appendArrayPointValue,Ul=lse.exports={};Ul.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,u=t.shadow,l=t.lineposition,f=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Qd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),f&&e.style("text-transform",tN(Wst(f))),u&&e.style("text-shadow",u==="auto"?yP.makeTextShadow(Qd.contrast(a)):tN(u)),l&&e.style("text-decoration-line",tN(jst(l)))};function tN(e){return e==="none"?void 0:e}var Hst={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Wst(e){return Hst[e]}function jst(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Ul.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Ul.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Ul.setRect=function(e,t,r,n,i){e.call(Ul.setPosition,t,r).call(Ul.setSize,n,i)};Ul.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Rb(i)&&Rb(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",s5(i,a));else return!1;return!0};Ul.translatePoints=function(e,t,r){e.each(function(n){var i=pd.select(this);Ul.translatePoint(n,i,t,r)})};Ul.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Ul.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,u=mP.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(l){Ul.hideOutsideRangePoint(l,pd.select(this),r,n,o,s)})})}};Ul.crispRound=function(e,t,r){return!t||!Rb(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Ul.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Qd.stroke(t,n||a.color),Ul.dashLine(t,s,o)};Ul.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";pd.select(this).call(Qd.stroke,r||a.color).call(Ul.dashLine,s,o)})};Ul.dashLine=function(e,t,r){r=+r||0,t=Ul.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Ul.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Qoe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Ul.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var u=o(i.bgcolor,0,null),l=o(i.fgcolor,0,null),f=i.fgopacity,c=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Ul.pattern(e,"point",r,d,s,c,h,void 0,i.fillmode,u,l,f)}else if(a&&a.type!=="none"){var p=a.type,y="scatterfill-"+t.uid;if(n&&(y="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,v;p==="horizontal"?(b={x:a.start,y:0},v={x:a.stop,y:0}):p==="vertical"&&(b={x:0,y:a.start},v={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),v.x=t._xA.c2p(v.x===void 0?t._extremes.x.max[0].val:v.x,!0),v.y=t._yA.c2p(v.y===void 0?t._extremes.y.max[0].val:v.y,!0),e.call(rse,r,y,"linear",a.colorscale,"fill",b,v,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Ul.gradient,r,y,p,a.colorscale,"fill")}else t.fillcolor&&e.call(Qd.fill,t.fillcolor)}Ul.singleFillStyle=function(e,t){var r=pd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Qoe(e,i,t,!1)};Ul.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=pd.select(this);n[0].trace&&Qoe(i,n[0].trace,t,r)})};var Goe=Voe();Ul.symbolNames=[];Ul.symbolFuncs=[];Ul.symbolBackOffs=[];Ul.symbolNeedLines={};Ul.symbolNoDot={};Ul.symbolNoFill={};Ul.symbolList=[];Object.keys(Goe).forEach(function(e){var t=Goe[e],r=t.n;Ul.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Ul.symbolNames[r]=e,Ul.symbolFuncs[r]=t.f,Ul.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Ul.symbolNeedLines[r]=!0),t.noDot?Ul.symbolNoDot[r]=!0:Ul.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Ul.symbolNoFill[r]=!0)});var Xst=Ul.symbolNames.length,Zst="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ul.symbolNumber=function(e){if(Rb(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Ul.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Xst||e>=400?0:Math.floor(Math.max(e,0))};function ese(e,t,r,n){var i=e%100;return Ul.symbolFuncs[i](t,r,n)+(e>=200?Zst:"")}var Hoe=Fst("~f"),tse={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Ul.gradient=function(e,t,r,n,i,a){var o=tse[n];return rse(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function rse(e,t,r,n,i,a,o,s,u,l){var f=i.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:l}:n==="radial"&&(c={node:"radialGradient",reversed:l});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||o.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var l=Ul.symbolNumber(e.mx||o.symbol)||0;e.om=l%200>=100;var f=uN(e,r),c=lN(e,r);t.attr("d",ese(l,u,f,c))}var h=!1,d,p,y;if(e.so)y=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;y=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=n.lineScale(e.mlc):uc.isArrayOrTypedArray(s.color)?p=Qd.defaultLine:p=s.color,uc.isArrayOrTypedArray(o.color)&&(d=Qd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}let v=e.mld||(s||{}).dash;if(v&&Ul.dashLine(t,v,y),e.om)t.call(Qd.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:y)+"px");var C=o.gradient,M=e.mgt;M?h=!0:M=C&&C.type,uc.isArrayOrTypedArray(M)&&(M=M[0],tse[M]||(M=0));var A=o.pattern,L=Ul.getPatternAttr,x=A&&(L(A.shape,e.i,"")||L(A.path,e.i,""));if(M&&M!=="none"){var k=e.mgc;k?h=!0:k=C.color;var S=r.uid;h&&(S+="-"+e.i),Ul.gradient(t,i,S,M,[[0,k],[1,d]],"fill")}else if(x){var m=!1,P=A.fgcolor;!P&&a&&a.color&&(P=a.color,m=!0);var E=L(P,e.i,a&&a.color||null),O=L(A.bgcolor,e.i,null),F=A.fgopacity,U=L(A.size,e.i,8),G=L(A.solidity,e.i,.3);m=m||e.mcc||uc.isArrayOrTypedArray(A.shape)||uc.isArrayOrTypedArray(A.path)||uc.isArrayOrTypedArray(A.bgcolor)||uc.isArrayOrTypedArray(A.fgcolor)||uc.isArrayOrTypedArray(A.size)||uc.isArrayOrTypedArray(A.solidity);var j=r.uid;m&&(j+="-"+e.i),Ul.pattern(t,"point",i,j,x,U,G,e.mcc,A.fillmode,O,E,F)}else uc.isArrayOrTypedArray(d)?Qd.fill(t,d[e.i]):Qd.fill(t,d);y&&Qd.stroke(t,p)}};Ul.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Ul.tryColorscale(r,""),t.lineScale=Ul.tryColorscale(r,"line"),mP.traceIs(e,"symbols")&&(t.ms2mrc=Ust.isBubble(e)?Vst(e):function(){return(r.size||6)/2}),e.selectedpoints&&uc.extendFlat(t,Ul.makeSelectedPointStyleFns(e)),t};Ul.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,u=a.opacity,l=o.opacity,f=u!==void 0,c=l!==void 0;(uc.isArrayOrTypedArray(s)||f||c)&&(t.selectedOpacityFn=function(A){var L=A.mo===void 0?i.opacity:A.mo;return A.selected?f?u:L:c?l:$oe*L});var h=i.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(A){var L=A.mcc||h;return A.selected?d||L:p||L});var y=i.size,b=a.size,v=o.size,C=b!==void 0,M=v!==void 0;return mP.traceIs(e,"symbols")&&(C||M)&&(t.selectedSizeFn=function(A){var L=A.mrc||y/2;return A.selected?C?b/2:L:M?v/2:L}),t};Ul.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,u=a.color,l=o.color;return t.selectedTextColorFn=function(f){var c=f.tc||s;return f.selected?u||c:l||(u?c:Qd.addOpacity(c,$oe))},t};Ul.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ul.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Qd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,u=r.selectedSizeFn(o);a.attr("d",ese(Ul.symbolNumber(s),u,uN(o,t),lN(o,t))),o.mrc2=u}),i.length&&e.each(function(a){for(var o=pd.select(this),s=0;s0?r:0}Ul.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Ul.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var u=pd.select(this),l=a?uc.extractOption(s,t,"txt","texttemplate"):uc.extractOption(s,t,"tx","text");if(!l&&l!==0){u.remove();return}if(a){var f=t._module.formatLabels,c=f?f(s,t,o):{},h={};Gst(h,t,s.i),l=uc.texttemplateString({data:[h,s,t._meta],fallback:t.texttemplatefallback,labels:c,locale:o._d3locale,template:l})}var d=s.tp||t.textposition,p=nse(s,t),y=n?n(s):s.tc||t.textfont.color;u.call(Ul.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:p,color:y}).text(l).call(yP.convertToTspans,r).call(ise,d,p,s.mrc)})}};Ul.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ul.makeSelectedTextStyleFns(t);e.each(function(n){var i=pd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=nse(n,t);Qd.fill(i,a);var u=mP.traceIs(t,"bar-like");ise(i,o,s,n.mrc2||n.mrc,u)})}};var Woe=.5;Ul.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=u||A>=f&&A<=u)&&(L<=c&&L>=l||L>=c&&L<=l)&&(e=[A,L])}return e}Ul.applyBackoff=sse;Ul.makeTester=function(){var e=uc.ensureSingleById(pd.select("body"),"svg","js-plotly-tester",function(r){r.attr(Bst.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=uc.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Ul.tester=e,Ul.testref=t};Ul.savedBBoxes={};var iN=0,Jst=1e4;Ul.bBox=function(e,t,r){r||(r=joe(e));var n;if(r){if(n=Ul.savedBBoxes[r],n)return uc.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=joe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var u=Ul.bBox(i,!1,r);return a&&(u.left+=a,u.right+=a),o&&(u.top+=o,u.bottom+=o),u}if(r+="~"+a+"~"+o+"~"+s,n=Ul.savedBBoxes[r],n)return uc.extendFlat({},n)}}var l,f;t?l=e:(f=Ul.tester.node(),l=e.cloneNode(!0),f.appendChild(l)),pd.select(l).attr("transform",null).call(yP.positionText,0,0);var c=l.getBoundingClientRect(),h=Ul.testref.node().getBoundingClientRect();t||f.removeChild(l);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return iN>=Jst&&(Ul.savedBBoxes={},iN=0),r&&(Ul.savedBBoxes[r]=d),iN++,uc.extendFlat({},d)};function joe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Ul.setClipUrl=function(e,t,r){e.attr("clip-path",sN(t,r))};function sN(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Ul.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Ul.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=s5(t,r),o=o.trim(),e[a]("transform",o),o};Ul.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Ul.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var $st=/\s*sc.*/;Ul.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace($st,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var Qst=/translate\([^)]*\)\s*$/;Ul.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=pd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),u=(i.attr("transform")||"").match(Qst);t===1&&r===1?n=[]:n=[s5(o,s),"scale("+t+","+r+")",s5(-o,-s)],u&&n.push(u),i.attr("transform",n.join(""))}})};function lN(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Ul.getMarkerStandoff=lN;var o5=Math.atan2,zb=Math.cos,U3=Math.sin;function Xoe(e,t){var r=t[0],n=t[1];return[r*zb(e)-n*U3(e),r*U3(e)+n*zb(e)]}var Zoe,Yoe,Koe,Joe,nN,aN;function uN(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||uc.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,u=t._yA;if(s&&u)n=s.c2p(e.x),i=u.c2p(e.y);else return 90}if(t._geo){var l=e.lonlat[0],f=e.lonlat[1],c=t._geo.project([l,f+1e-5]),h=t._geo.project([l+1e-5,f]),d=o5(h[1]-i,h[0]-n),p=o5(c[1]-i,c[0]-n),y;if(a==="north")y=r/180*Math.PI;else if(a==="previous"){var b=l/180*Math.PI,v=f/180*Math.PI,C=Zoe/180*Math.PI,M=Yoe/180*Math.PI,A=C-b,L=zb(M)*U3(A),x=U3(M)*zb(v)-zb(M)*U3(v)*zb(A);y=-o5(L,x)-Math.PI,Zoe=l,Yoe=f}var k=Xoe(d,[zb(y),0]),S=Xoe(p,[U3(y),0]);r=o5(k[1]+S[1],k[0]+S[0])/Math.PI*180,a==="previous"&&!(aN===t.uid&&e.i===nN+1)&&(r=null)}if(a==="previous"&&!t._geo)if(aN===t.uid&&e.i===nN+1&&Rb(n)&&Rb(i)){var m=n-Koe,P=i-Joe,E=t.line&&t.line.shape||"",O=E.slice(E.length-1);O==="h"&&(P=0),O==="v"&&(m=0),r+=o5(P,m)/Math.PI*180+90}else r=null}return Koe=n,Joe=i,nN=e.i,aN=t.uid,r}Ul.getMarkerAngle=uN});var Ob=we((Ror,hse)=>{"use strict";var V3=Jl(),elt=ku(),tlt=Cc(),fN=$l(),Fb=ei(),use=Fb.strTranslate,gP=Mu(),_P=jl(),G3=Wf(),fse=X1(),rlt=Nh().OPPOSITE_SIDE,cse=/ [XY][0-9]* /,cN=1.6,hN=1.6;function ilt(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,u=r.avoid||{},l=r.attributes,f=r.transform,c=r.containerGroup,h=1,d=i.title,p=(d&&d.text?d.text:"").trim(),y=!1,b=d&&d.font?d.font:{},v=b.family,C=b.size,M=b.color,A=b.weight,L=b.style,x=b.variant,k=b.textcase,S=b.lineposition,m=b.shadow,P=r.subtitlePropName,E=!!P,O=r.subtitlePlaceholder,F=(i.title||{}).subtitle||{text:"",font:{}},U=(F.text||"").trim(),G=!1,j=1,W=F.font,N=W.family,H=W.size,re=W.color,ae=W.weight,me=W.style,Le=W.variant,Ce=W.textcase,de=W.lineposition,te=W.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var Te=e._context.edits[Se];function be(Mt,kt){return Mt===void 0||kt===void 0?!1:Mt.replace(cse," % ")===kt.replace(cse," % ")}p===""?h=0:be(p,o)&&(Te||(p=""),h=.2,y=!0),E&&(U===""?j=0:be(U,O)&&(Te||(U=""),j=.2,G=!0)),r._meta?p=Fb.templateString(p,r._meta):n._meta&&(p=Fb.templateString(p,n._meta));var He=p||U||Te,Ie;c||(c=Fb.ensureSingle(n._infolayer,"g","g-"+t),Ie=n._hColorbarMoveTitle);var ge=c.selectAll("text."+t).data(He?[0]:[]);ge.enter().append("text"),ge.text(p).attr("class",t),ge.exit().remove();var Be=null,ce=t+"-subtitle",je=U||Te;if(E&&(Be=c.selectAll("text."+ce).data(je?[0]:[]),Be.enter().append("text"),Be.text(U).attr("class",ce),Be.exit().remove()),!He)return c;function rt(Mt,kt){Fb.syncOrAsync([bt,Ot],{title:Mt,subtitle:kt})}function bt(Mt){var kt=Mt.title,$e=Mt.subtitle,De;!f&&Ie&&(f={}),f?(De="",f.rotate&&(De+="rotate("+[f.rotate,l.x,l.y]+")"),(f.offset||Ie)&&(De+=use(0,(f.offset||0)-(Ie||0)))):De=null,kt.attr("transform",De);function Me(Ve){if(Ve){var et=V3.select(Ve.node().parentNode).select("."+ce);if(!et.empty()){var tt=Ve.node().getBBox();if(tt.height){var Lt=tt.y+tt.height+cN*H;et.attr("y",Lt)}}}}if(kt.style("opacity",h*_P.opacity(M)).call(gP.font,{color:_P.rgb(M),size:V3.round(C,2),family:v,weight:A,style:L,variant:x,textcase:k,shadow:m,lineposition:S}).attr(l).call(G3.convertToTspans,e,Me),$e&&!$e.empty()){var oe=c.select("."+t+"-math-group"),Ne=kt.node().getBBox(),vt=oe.node()?oe.node().getBBox():void 0,lt=vt?vt.y+vt.height+cN*H:Ne.y+Ne.height+hN*H,We=Fb.extendFlat({},l,{y:lt});$e.attr("transform",De),$e.style("opacity",j*_P.opacity(re)).call(gP.font,{color:_P.rgb(re),size:V3.round(H,2),family:N,weight:ae,style:me,variant:Le,textcase:Ce,shadow:te,lineposition:de}).attr(We).call(G3.convertToTspans,e)}return tlt.previousPromises(e)}function Ot(Mt){var kt=Mt.title,$e=V3.select(kt.node().parentNode);if(u&&u.selection&&u.side&&p){$e.attr("transform",null);var De=rlt[u.side],Me=u.side==="left"||u.side==="top"?-1:1,oe=elt(u.pad)?u.pad:2,Ne=gP.bBox($e.node()),vt={t:0,b:0,l:0,r:0},lt=e._fullLayout._reservedMargin;for(var We in lt)for(var Ve in lt[We]){var et=lt[We][Ve];vt[Ve]=Math.max(vt[Ve],et)}var tt={left:vt.l,top:vt.t,right:n.width-vt.r,bottom:n.height-vt.b},Lt=u.maxShift||Me*(tt[u.side]-Ne[u.side]),jt=0;if(Lt<0)jt=Lt;else{var or=u.offsetLeft||0,yr=u.offsetTop||0;Ne.left-=or,Ne.right-=or,Ne.top-=yr,Ne.bottom-=yr,u.selection.each(function(){var Vt=gP.bBox(this);Fb.bBoxIntersect(Ne,Vt,oe)&&(jt=Math.max(jt,Me*(Vt[u.side]-Ne[De])+oe))}),jt=Math.min(Lt,jt),i._titleScoot=Math.abs(jt)}if(jt>0||Lt<0){var vr={left:[-jt,0],right:[jt,0],top:[0,-jt],bottom:[0,jt]}[u.side];$e.attr("transform",use(vr[0],vr[1]))}}}ge.call(rt,Be);function it(Mt,kt){Mt.text(kt).on("mouseover.opacity",function(){V3.select(this).transition().duration(fse.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){V3.select(this).transition().duration(fse.HIDE_PLACEHOLDER).style("opacity",0)})}if(Te&&(p?ge.on(".opacity",null):(it(ge,o),y=!0),ge.call(G3.makeEditable,{gd:e}).on("edit",function(Mt){s!==void 0?fN.call("_guiRestyle",e,a,Mt,s):fN.call("_guiRelayout",e,a,Mt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(rt)}).on("input",function(Mt){this.text(Mt||" ").call(G3.positionText,l.x,l.y)}),E)){if(E&&!p){var Ke=ge.node().getBBox(),zt=Ke.y+Ke.height+hN*H;Be.attr("y",zt)}U?Be.on(".opacity",null):(it(Be,O),G=!0),Be.call(G3.makeEditable,{gd:e}).on("edit",function(Mt){fN.call("_guiRelayout",e,"title.subtitle.text",Mt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(rt)}).on("input",function(Mt){this.text(Mt||" ").call(G3.positionText,Be.attr("x"),Be.attr("y"))})}return ge.classed("js-placeholder",y),Be&&!Be.empty()&&Be.classed("js-placeholder",G),c}hse.exports={draw:ilt,SUBTITLE_PADDING_EM:hN,SUBTITLE_PADDING_MATHJAX_EM:cN}});var xy=we((For,yse)=>{"use strict";var nlt=Jl(),alt=d3().utcFormat,Mc=ei(),olt=Mc.numberFormat,gy=ku(),c_=Mc.cleanNumber,slt=Mc.ms2DateTime,dse=Mc.dateTime2ms,_y=Mc.ensureNumber,pse=Mc.isArrayOrTypedArray,h_=rf(),xP=h_.FP_SAFE,Sm=h_.BADNUM,llt=h_.LOG_CLIP,ult=h_.ONEWEEK,bP=h_.ONEDAY,wP=h_.ONEHOUR,vse=h_.ONEMIN,mse=h_.ONESEC,AP=jc(),MP=qh(),TP=MP.HOUR_PATTERN,SP=MP.WEEKDAY_PATTERN;function l5(e){return Math.pow(10,e)}function dN(e){return e!=null}yse.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(A,L){if(A>0)return Math.log(A)/Math.LN10;if(A<=0&&L&&t.range&&t.range.length===2){var x=t.range[0],k=t.range[1];return .5*(x+k-2*llt*Math.abs(x-k))}else return Sm}function o(A,L,x,k){if((k||{}).msUTC&&gy(A))return+A;var S=dse(A,x||t.calendar);if(S===Sm)if(gy(A)){A=+A;var m=Math.floor(Mc.mod(A+.05,1)*10),P=Math.round(A-m/10);S=dse(new Date(P))+m/10}else return Sm;return S}function s(A,L,x){return slt(A,L,x||t.calendar)}function u(A){return t._categories[Math.round(A)]}function l(A){if(dN(A)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[A]!==void 0)return t._categoriesMap[A];t._categories.push(typeof A=="number"?String(A):A);var L=t._categories.length-1;return t._categoriesMap[A]=L,L}return Sm}function f(A,L){for(var x=new Array(L),k=0;kt.range[1]&&(x=!x);for(var k=x?-1:1,S=k*A,m=0,P=0;PO)m=P+1;else{m=S<(E+O)/2?P:P+1;break}}var F=t._B[m]||0;return isFinite(F)?p(A,t._m2,F):0},v=function(A){var L=t._rangebreaks.length;if(!L)return y(A,t._m,t._b);for(var x=0,k=0;kt._rangebreaks[k].pmax&&(x=k+1);return y(A,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:_y,t.l2c=t.type==="log"?l5:_y,t.l2p=b,t.p2l=v,t.c2p=t.type==="log"?function(A,L){return b(a(A,L))}:b,t.p2c=t.type==="log"?function(A){return l5(v(A))}:v,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=c_,t.c2d=t.c2r=t.l2d=t.l2r=_y,t.d2p=t.r2p=function(A){return t.l2p(c_(A))},t.p2d=t.p2r=v,t.cleanPos=_y):t.type==="log"?(t.d2r=t.d2l=function(A,L){return a(c_(A),L)},t.r2d=t.r2c=function(A){return l5(c_(A))},t.d2c=t.r2l=c_,t.c2d=t.l2r=_y,t.c2r=a,t.l2d=l5,t.d2p=function(A,L){return t.l2p(t.d2r(A,L))},t.p2d=function(A){return l5(v(A))},t.r2p=function(A){return t.l2p(c_(A))},t.p2r=v,t.cleanPos=_y):t.type==="date"?(t.d2r=t.r2d=Mc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(A,L,x){return t.l2p(o(A,0,x))},t.p2d=t.p2r=function(A,L,x){return s(v(A),L,x)},t.cleanPos=function(A){return Mc.cleanDate(A,Sm,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=l,t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=d(A);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=_y,t.r2l=d,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return u(v(A))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(A){return typeof A=="string"&&A!==""?A:_y(A)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=h(A);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=c,t.l2r=t.c2r=_y,t.r2l=h,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return u(v(A))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(A){return Array.isArray(A)||typeof A=="string"&&A!==""?A:_y(A)},t.setupMultiCategory=function(A){var L=t._traceIndices,x,k,S=t._matchGroup;if(S&&t._categories.length===0){for(var m in S)if(m!==n){var P=r[AP.id2name(m)];L=L.concat(P._traceIndices)}}var E=[[0,{}],[0,{}]],O=[];for(x=0;xP[1]&&(k[m?0:1]=x,S[1]=P[1]),S[0]>=S[1])if(L!==void 0){var E=P[0]+1;x!==void 0&&(E=Math.min(E,P[1])),k[m?0:1]=t.l2r(E)}else x!==void 0&&(k[m?1:0]=t.l2r(P[1]-1))}},t.cleanRange=function(A,L){t._cleanRange(A,L),t.limitRange(A)},t._cleanRange=function(A,L){L||(L={}),A||(A="range");var x=Mc.nestedProperty(t,A).get(),k,S;if(t.type==="date"?S=Mc.dfltRange(t.calendar):i==="y"?S=MP.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=L.dfltRange||MP.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!x||x.length!==2){Mc.nestedProperty(t,A).set(S);return}var m=x[0]===null,P=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=Mc.cleanDate(x[0],Sm,t.calendar),x[1]=Mc.cleanDate(x[1],Sm,t.calendar)),k=0;k<2;k++)if(t.type==="date"){if(!Mc.isDateTime(x[k],t.calendar)){t[A]=S;break}if(t.r2l(x[0])===t.r2l(x[1])){var E=Mc.constrain(t.r2l(x[0]),Mc.MIN_MS+1e3,Mc.MAX_MS-1e3);x[0]=t.l2r(E-1e3),x[1]=t.l2r(E+1e3);break}}else{if(!gy(x[k]))if(!(m||P)&&gy(x[1-k]))x[k]=x[1-k]*(k?10:.1);else{t[A]=S;break}if(x[k]<-xP?x[k]=-xP:x[k]>xP&&(x[k]=xP),x[0]===x[1]){var O=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=O,x[1]+=O}}},t.setScale=function(A){var L=r._size;if(t.overlaying){var x=AP.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var k=A&&t._r?"_r":"range",S=t.calendar;t.cleanRange(k);var m=t.r2l(t[k][0],S),P=t.r2l(t[k][1],S),E=i==="y";if(E?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(m-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-m),t._b=-t._m*m),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var O,F;if(t._rangebreaks=t.locateBreaks(Math.min(m,P),Math.max(m,P)),t._rangebreaks.length){for(O=0;OP&&(U=!U),U&&t._rangebreaks.reverse();var G=U?-1:1;for(t._m2=G*t._length/(Math.abs(P-m)-t._lBreaks),t._B.push(-t._m2*(E?P:m)),O=0;OS&&(S+=7,mS&&(S+=24,m=k&&m=k&&A=te.min&&(mete.max&&(te.max=Le),Ce=!1)}Ce&&P.push({min:me,max:Le})}};for(x=0;x{"use strict";var gse=ku(),pN=ei(),flt=rf().BADNUM,EP=pN.isArrayOrTypedArray,clt=pN.isDateTime,hlt=pN.cleanNumber,_se=Math.round;bse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(EP(i)&&!i.length)return"-";if(!a&&ylt(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function xse(e){return Math.max(1,(e-1)/1e3)}function mlt(e,t){for(var r=e.length,n=xse(r),i=0,a=0,o={},s=0;si*2}function ylt(e){return EP(e[0])&&EP(e[1])}});var Mm=we((Bor,Cse)=>{"use strict";var glt=Jl(),Sse=ku(),d_=ei(),kP=rf().FP_SAFE,_lt=$l(),xlt=Mu(),Mse=jc(),blt=Mse.getFromId,wlt=Mse.isLinked;Cse.exports={applyAutorangeOptions:kse,getAutoRange:vN,makePadFn:mN,doAutoRange:Tlt,findExtremes:Slt,concatExtremes:_N};function vN(e,t){var r,n,i=[],a=e._fullLayout,o=mN(a,t,0),s=mN(a,t,1),u=_N(e,t),l=u.min,f=u.max;if(l.length===0||f.length===0)return d_.simpleMap(t.range,t.r2l);var c=l[0].val,h=f[0].val;for(r=1;r0&&(P=M-o(x)-s(k),P>A?E/P>L&&(S=x,m=k,L=E/P):E/M>L&&(S={val:x.val,nopad:1},m={val:k.val,nopad:1},L=E/M));function O(W,N){return Math.max(W,s(N))}if(c===h){var F=c-1,U=c+1;if(v)if(c===0)i=[0,1];else{var G=(c>0?f:l).reduce(O,0),j=c/(1-Math.min(.5,G/M));i=c>0?[0,j]:[j,0]}else C?i=[Math.max(0,F),Math.max(1,U)]:i=[F,U]}else v?(S.val>=0&&(S={val:0,nopad:1}),m.val<=0&&(m={val:0,nopad:1})):C&&(S.val-L*o(S)<0&&(S={val:0,nopad:1}),m.val<=0&&(m={val:1,nopad:1})),L=(m.val-S.val-wse(t,x.val,k.val))/(M-o(S)-s(m)),i=[S.val-L*o(S),m.val+L*s(m)];return i=kse(i,t),t.limitRange&&t.limitRange(),p&&i.reverse(),d_.simpleMap(i,t.l2r||Number)}function wse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),k=A(r.vpadplus||r.vpad),S=A(r.vpadminus||r.vpad);if(!l){if(C=1/0,M=-1/0,u)for(c=0;c0&&(C=h),h>M&&h-kP&&(C=h),h>M&&h=E;c--)P(c);return{min:n,max:i,opts:r}}function yN(e,t,r,n){Ese(e,t,r,n,Mlt)}function gN(e,t,r,n){Ese(e,t,r,n,Elt)}function Ese(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,u=0;u=r&&(l.extrapad||!o)){s=!1;break}else i(t,l.val)&&l.pad<=r&&(o||!l.extrapad)&&(e.splice(u,1),u--)}if(s){var f=a&&t===0;e.push({val:t,pad:f?0:r,extrapad:f?!1:o})}}function Tse(e){return Sse(e)&&Math.abs(e)=t}function klt(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&CP(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&CP(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Clt(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&CP(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&CP(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function CP(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=u&&(a=u,r=u),o<=u&&(o=u,n=u)}}return r=klt(r,t),n=Clt(n,t),[r,n]}});var wu=we((Nor,$se)=>{"use strict";var w0=Jl(),Vh=ku(),W3=Cc(),f5=$l(),Ru=ei(),j3=Ru.strTranslate,Bb=Wf(),Llt=Ob(),c5=jl(),Xv=Mu(),Plt=Rd(),Lse=Gq(),qor=qh(),ep=rf(),zlt=ep.ONEMAXYEAR,zP=ep.ONEAVGYEAR,IP=ep.ONEMINYEAR,Ilt=ep.ONEMAXQUARTER,AN=ep.ONEAVGQUARTER,DP=ep.ONEMINQUARTER,Dlt=ep.ONEMAXMONTH,X3=ep.ONEAVGMONTH,RP=ep.ONEMINMONTH,Zv=ep.ONEWEEK,Op=ep.ONEDAY,p_=Op/2,wy=ep.ONEHOUR,h5=ep.ONEMIN,FP=ep.ONESEC,Rlt=ep.ONEMILLI,Flt=ep.ONEMICROSEC,qb=ep.MINUS_SIGN,BP=ep.BADNUM,TN={K:"zeroline"},SN={K:"gridline",L:"path"},MN={K:"minor-gridline",L:"path"},Use={K:"tick",L:"path"},Pse={K:"tick",L:"text"},zse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},qP=Nh(),u5=qP.MID_SHIFT,Nb=qP.CAP_SHIFT,d5=qP.LINE_SPACING,Olt=qP.OPPOSITE_SIDE,OP=3,il=$se.exports={};il.setConvert=xy();var Blt=H3(),Ay=jc(),qlt=Ay.idSort,Nlt=Ay.isLinked;il.id2name=Ay.id2name;il.name2id=Ay.name2id;il.cleanId=Ay.cleanId;il.list=Ay.list;il.listIds=Ay.listIds;il.getFromId=Ay.getFromId;il.getFromTrace=Ay.getFromTrace;var Vse=Mm();il.getAutoRange=Vse.getAutoRange;il.findExtremes=Vse.findExtremes;var Ult=1e-4;function LN(e){var t=(e[1]-e[0])*Ult;return[e[0]-t,e[1]+t]}il.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],u=n+"ref",l={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(f){return f+" domain"})),l[u]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Ru.coerce(e,t,l,u)};il.coerceRefArray=function(e,t,r,n,i,a,o){let s=n.charAt(n.length-1);var u=r._fullLayout._subplots[s+"axis"];let l=n+"ref";var f=e[l];i||(i=u[0]||(typeof a=="string"?a:a[0])),u=u.concat(u.map(h=>h+" domain")),u=u.concat(a||[]),f.length>o?(Ru.warn("Array attribute "+l+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};il.saveRangeInitial=function(e,t){for(var r=il.list(e,"",!0),n=!1,i=0;ic*.3||l(n)||l(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.slice(1));a.exactYears>o&&s%12===0?e=il.tickIncrement(e,"M6","reverse")+Op*1.5:a.exactMonths>o?e=il.tickIncrement(e,"M1","reverse")+Op*15.5:e-=p_;var u=il.tickIncrement(e,r);if(u<=n)return u}return e}il.prepMinorTicks=function(e,t,r){var c,h;if(!((c=t.minor)!=null&&c.dtick)){delete e.dtick;var n=t.dtick&&Vh(t._tmin),i;if(n){var a=il.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Ru.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ru.simpleMap(i,t.l2r),e._isMinor=!0,il.prepTicks(e,r),n){var s=Vh(t.dtick),u=Vh(e.dtick),l=s?t.dtick:+t.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);s&&u?xN(l,f)?l===2*Zv&&f===2*Op&&(e.dtick=Zv):l===2*Zv&&f===3*Op?e.dtick=Zv:l===Zv&&!(t._input.minor||{}).nticks?e.dtick=Op:Rse(l/f,2.5)?e.dtick=l/2:e.dtick=l:String(t.dtick).charAt(0)==="M"?u?e.dtick="M1":xN(l,f)?l>=12&&f===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?xN(l,f)||(e.dtick=Rse(l/f,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((h=t.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=t.tick0)};function xN(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function Rse(e,t){return Math.abs(e/t-1)<.001}il.prepTicks=function(e,t){var r=Ru.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Ru.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Ru.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,il.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,u=e[o].value,l=Math.abs(u-s),f=r||l,c=0;f>=IP?l>=IP&&l<=zlt?c=l:c=zP:r===AN&&f>=DP?l>=DP&&l<=Ilt?c=l:c=AN:f>=RP?l>=RP&&l<=Dlt?c=l:c=X3:r===Zv&&f>=Zv?c=Zv:f>=Op?c=Op:r===p_&&f>=p_?c=p_:r===wy&&f>=wy&&(c=wy);var h;c>=l&&(c=l,h=!0);var d=i+c;if(t.rangebreaks&&c>0){for(var p=84,y=0,b=0;bZv&&(c=l)}(c>0||n===0)&&(e[n].periodX=i+c/2)}}il.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],u=!t.ticklabelindex||Ru.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],l=Ru.simpleMap(t.range,t.r2l,void 0,void 0,r),f=l[1]=(A?0:1);L--){var x=!L;L?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):A&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var k=L?t:Ru.extendFlat({},t,A?t.minor:{minor:{}});if(x?il.prepMinorTicks(k,t,r):il.prepTicks(k,r),k.tickmode==="array"){L?(b=[],p=Fse(t,!x)):(v=[],y=Fse(t,!x));continue}if(k.tickmode==="sync"){b=[],p=Xlt(t);continue}var S=LN(l),m=S[0],P=S[1],E=Vh(k.dtick),O=n==="log"&&!(E||k.dtick.charAt(0)==="L"),F=il.tickFirst(k,r);if(L){if(t._tmin=F,F=P:G<=P;G=il.tickIncrement(G,N,f,i)){if(L&&j++,k.rangebreaks&&!f){if(G=h)break}if(b.length>d||G===U)break;U=G;var H={value:G};L?(O&&G!==(G|0)&&(H.simpleLabel=!0),a>1&&j%a&&(H.skipLabel=!0),b.push(H)):(H.minor=!0,v.push(H))}}if(!v||v.length<3)u=!1;else{var re=(v[2].value-v[1].value)*(s?-1:1);gut(re,t.tickformat)||(u=!1,v=v.slice(1))}if(!u)C=b;else{var ae=b.concat(v);o&&b.length&&(ae=ae.slice(1)),ae=ae.sort(function(Mt,kt){return Mt.value-kt.value}).filter(function(Mt,kt,$e){return kt===0||Mt.value!==$e[kt-1].value});var me=ae.map(function(Mt,kt){return Mt.minor===void 0&&!Mt.skipLabel?kt:null}).filter(function(Mt){return Mt!==null});me.forEach(function(Mt){u.map(function(kt){var $e=Mt+kt;$e>=0&&$e-1;Ie--){if(b[Ie].drop){b.splice(Ie,1);continue}b[Ie].value=wN(b[Ie].value,t);var je=t.c2p(b[Ie].value);(ge?ce>je-Be:ceh||Deh&&($e.periodX=h),Dei&&hzP)t/=zP,n=i(10),e.dtick="M"+12*by(t,n,LP);else if(a>X3)t/=X3,e.dtick="M"+by(t,1,Ose);else if(a>Op){if(e.dtick=by(t,Op,e._hasDayOfWeekBreaks?[1,2,7,14]:Zlt),!r){var o=il.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ru.dateTick0(e.calendar,2):e.tick0=Ru.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>wy?e.dtick=by(t,wy,Ose):a>h5?e.dtick=by(t,h5,Bse):a>FP?e.dtick=by(t,FP,Bse):(n=i(10),e.dtick=by(t,n,LP))}else if(e.type==="log"){e.tick0=0;var u=Ru.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var l=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/l,n=i(10),e.dtick="L"+by(t,n,LP)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):DN(e)?(e.tick0=0,n=1,e.dtick=by(t,n,Ylt)):(e.tick0=0,n=i(10),e.dtick=by(t,n,LP));if(e.dtick===0&&(e.dtick=1),!Vh(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function jse(e){var t=e.dtick;if(e._tickexponent=0,!Vh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=Op&&i<=10||t>=Op*15)e._tickround="d";else if(t>=h5&&i<=16||t>=wy)e._tickround="M";else if(t>=FP&&i<=19||t>=h5)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Vh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Vh(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),u=Math.floor(Math.log(s)/Math.LN10+.01),l=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>l&&(Z3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!PN(u)||Z3(e.exponentformat)&&e.exponentformat==="SI extended"&&!zN(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}il.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(Vh(t))return Ru.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.slice(1));if(a==="M")return Ru.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Wse:Hse,u=e+i*.01,l=Ru.roundUp(Ru.mod(u,1),s,r);return Math.floor(u)+Math.log(w0.round(Math.pow(10,l),1))/Math.LN10}throw"unrecognized dtick "+String(t)};il.tickFirst=function(e,t){var r=e.r2l||Number,n=Ru.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&v<=e._length?b:null};if(a&&Ru.isArrayOrTypedArray(e.ticktext)){var c=Ru.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(l=0;l"+s;else{var l=v5(e),f=e._trueSide||e.side;(!l&&f==="top"||l&&f==="bottom")&&(o+="
")}t.text=o}function Jlt(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,u=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&u!=="L"&&(a="L3",u="L"),s||u==="L")t.text=p5(Math.pow(10,o),e,i,n);else if(Vh(a)||u==="D"&&(e.minorloglabels==="complete"||Ru.mod(o+.01,1)<.1)){var l;e.minorloglabels==="complete"&&!(Ru.mod(o+.01,1)<.1)&&(l=!0,t.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||Z3(p)&&p!=="SI extended"&&PN(h)||Z3(p)&&p==="SI extended"&&zN(h)?(t.text=c[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":qb)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=c[0]+p+(h>0?"+":qb)+d:(t.text=p5(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(u==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ru.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var y=String(t.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function $lt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Qlt(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function eut(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=p5(t.x,e,i,n)}function tut(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=rut(a);if(o[1]>=100)t.text=p5(Ru.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=qb+t.text)}}}else t.text=p5(t.x,e,i,n)}function rut(e){function t(s,u){return Math.abs(s-u)<=1e-6}function r(s,u){return t(u,0)?s:r(u,s%u)}function n(s){for(var u=1;!t(Math.round(s*u)/u,s);)u*=10;return u}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var Zse=["f","p","n","\u03BC","m","","k","M","G","T"],iut=["q","r","y","z","a",...Zse,"P","E","Z","Y","R","Q"],Z3=e=>["SI","SI extended","B"].includes(e);function PN(e){return e>14||e<-15}function zN(e){return e>32||e<-30}function nut(e,t){return Z3(t)?!!(t==="SI extended"&&zN(e)||t!=="SI extended"&&PN(e)):!1}function p5(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,u=il.getTickFormat(t),l=t.separatethousands;if(n){var f={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Vh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};jse(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,qb);var c=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+p+"":o==="B"&&s===9?e+="B":Z3(o)&&(e+=o==="SI extended"?iut[s/3+10]:Zse[s/3+5])}return i?qb+e:e}il.getTickFormat=function(e){var t;function r(u){return typeof u!="string"?u:Number(u.replace("M",""))*X3}function n(u,l){var f=["L","D"];if(typeof u==typeof l){if(typeof u=="number")return u-l;var c=f.indexOf(u.charAt(0)),h=f.indexOf(l.charAt(0));return c===h?Number(u.replace(/(L|D)/g,""))-Number(l.replace(/(L|D)/g,"")):c-h}else return typeof u=="number"?1:-1}function i(u,l,f){var c=f||function(p){return p},h=l[0],d=l[1];return(!h&&typeof h!="number"||c(h)<=c(u))&&(!d&&typeof d!="number"||c(d)>=c(u))}function a(u,l){var f=l[0]===null,c=l[1]===null,h=n(u,l[0])>=0,d=n(u,l[1])<=0;return(f||h)&&(c||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(f,1).shift())}});var s={false:{left:0,right:0}};return Ru.syncOrAsync(i.map(function(u){return function(){if(u){var l=il.getFromId(e,u);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var f=il.drawOne(e,l,r);return l._shiftPusher&&CN(l,l._fullDepth||0,s,!0),l._r=l.range.slice(),l._rl=Ru.simpleMap(l._r,l.r2l),f}}}))};il.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var u=e._fullLayout,l=t._id,f=l.charAt(0),c=il.counterLetter(l),h=u._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),CN(t,p,n,!0),CN(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=yut(t,n));var y=h[f+"axislayer"],b=t._mainLinePosition,v=b+=t._shift,C=t._mainMirrorPosition,M=t._vals=il.calcTicks(t),A=[t.mirror,v,C].join("_");for(a=0;a0?$e.bottom-Mt:0,kt))));var Ne=0,vt=0;if(t._shiftPusher&&(Ne=Math.max(kt,$e.height>0?Ke==="l"?Mt-$e.left:$e.right-Mt:0),t.title.text!==u._dfltTitle[f]&&(vt=(t._titleStandoff||0)+(t._titleScoot||0),Ke==="l"&&(vt+=Nse(t))),t._fullDepth=Math.max(Ne,vt)),t.automargin){De={x:0,y:0,r:0,l:0,t:0,b:0};var lt=[0,1],We=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(Ke==="b"?De[Ke]=t._depth:(De[Ke]=t._depth=Math.max($e.width>0?Mt-$e.top:0,kt),lt.reverse()),$e.width>0){var Ve=$e.right-(t._offset+t._length);Ve>0&&(De.xr=1,De.r=Ve);var et=t._offset-$e.left;et>0&&(De.xl=0,De.l=et)}}else if(Ke==="l"?(t._depth=Math.max($e.height>0?Mt-$e.left:0,kt),De[Ke]=t._depth-We):(t._depth=Math.max($e.height>0?$e.right-Mt:0,kt),De[Ke]=t._depth+We,lt.reverse()),$e.height>0){var tt=$e.bottom-(t._offset+t._length);tt>0&&(De.yb=0,De.b=tt);var Lt=t._offset-$e.top;Lt>0&&(De.yt=1,De.t=Lt)}De[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[lt[0]],t.title.text!==u._dfltTitle[f]&&(De[Ke]+=Nse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Me={x:0,y:0,r:0,l:0,t:0,b:0},Me[zt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Me[zt]+=kt),t.mirror===!0||t.mirror==="ticks"?Me[c]=t._anchorAxis.domain[lt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Me[c]=[t._counterDomainMin,t._counterDomainMax][lt[1]]))}it&&(oe=f5.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(qse(De,t.automargin),qse(Me,t.automargin)),W3.autoMargin(e,IN(t),De),W3.autoMargin(e,Kse(t),Me),W3.autoMargin(e,Jse(t),oe)}),Ru.syncOrAsync(bt)}};function qse(e,t){if(e){var r=Object.keys(zse).reduce(function(n,i){return t.indexOf(i)!==-1&&zse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function aut(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Ru.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!s;if(r){var l=o?-1:1;r=r*l}if(n){var f=e.side,c=s&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(h){return j3(i+e._offset+e.l2p(EN(h))+r,a+n)}:function(h){return j3(a+n,i+e._offset+e.l2p(EN(h))+r)}};function EN(e){return e.periodX!==void 0?e.periodX:e.x}function uut(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(p){return t.indexOf(p)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),u=n("inside"),l=r!=="boundaries"&&(s||a||i||o);if(!l&&!u)return[0,0];var f=e.side,c=l?(e.tickwidth||0)/2:0,h=OP,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(c+=d*Nb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=OP),u&&f==="top"&&(h-=d*(1-Nb)),(a||i)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[l?c:0,u?h:0]}il.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};il.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(F){return n.indexOf(F)!==-1},o=a("top"),s=a("left"),u=a("right"),l=a("bottom"),f=i!=="boundaries"&&(l||s||o||u),c=a("inside"),h=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&i!=="boundaries",d=0,p=0,y=h?e.ticklen:0;if(c?y*=-1:f&&(y=0),h&&(d+=y,r)){var b=Ru.deg2rad(r);d=y*Math.cos(b)+1,p=y*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var v={labelStandoff:d,labelShift:p},C,M,A,L,x=0,k=e.side,S=e._id.charAt(0),m=e.tickangle,P;if(S==="x")P=!c&&k==="bottom"||c&&k==="top",L=P?1:-1,c&&(L*=-1),C=p*L,M=t+d*L,A=P?1:-.2,Math.abs(m)===90&&(c?A+=u5:m===-90&&k==="bottom"?A=Nb:m===90&&k==="top"?A=u5:A=.5,x=u5/2*(m/90)),v.xFn=function(F){return F.dx+C+x*F.fontSize},v.yFn=function(F){return F.dy+M+F.fontSize*A},v.anchorFn=function(F,U){if(f){if(s)return"end";if(u)return"start"}return!Vh(U)||U===0||U===180?"middle":U*L<0!==c?"end":"start"},v.heightFn=function(F,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==c?-G:0};else if(S==="y"){if(P=!c&&k==="left"||c&&k==="right",L=P?1:-1,c&&(L*=-1),C=d,M=p*L,A=0,!c&&Math.abs(m)===90&&(m===-90&&k==="left"||m===90&&k==="right"?A=Nb:A=.5),c){var E=Vh(m)?+m:0;if(E!==0){var O=Ru.deg2rad(E);x=Math.abs(Math.sin(O))*Nb*L,A=0}}v.xFn=function(F){return F.dx+t-(C+F.fontSize*A)*L+x*F.fontSize},v.yFn=function(F){return F.dy+M+F.fontSize*u5},v.anchorFn=function(F,U){return Vh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},v.heightFn=function(F,U,G){return e.side==="right"&&(U*=-1),U<-30?-G:U<30?-.5*G:0}}return v};function NP(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}il.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,NP);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return c5.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xv.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),UP(t,[Use]),a.attr("transform",r.transFn)};il.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(v){return v.minor}):[],o=t.showgrid?r.vals.filter(function(v){return!v.minor}):[],s=r.counterAxis;if(s&&il.shouldShowZeroLine(e,t,s))for(var u=t.tickmode==="array",l=0;l=0;p--){var y=p?h:d;if(y){var b=y.selectAll("path."+n).data(p?o:a,NP);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(v){return c5.stroke(w0.select(this),v.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(v){return Xv.dashStyle(v.minor?t.minor.griddash:t.griddash,v.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(v){return(v.minor?c:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}UP(t,[SN,MN])}};il.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=il.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return qlt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(c5.stroke,t.zerolinecolor||c5.defaultLine).style("stroke-width",Xv.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),UP(t,[TN])};il.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(H){return H.text}),u=r.labelFns,l=r.secondary?0:t.tickangle,f=(t._prevTickAngles||{})[o],c=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],NP),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var re=w0.select(this),ae=e._promises.length;re.call(Bb.positionText,u.xFn(H),u.yFn(H)).call(Xv.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(Bb.convertToTspans,e),e._promises[ae]?h.push(e._promises.pop().then(function(){d(re,l)})):d(re,l)}),UP(t,[Pse]),c.exit().remove(),r.repositionOnUpdate&&c.each(function(H){w0.select(this).select("text").call(Bb.positionText,u.xFn(H),u.yFn(H))});function d(H,re){H.each(function(ae){var me=w0.select(this),Le=me.select(".text-math-group"),Ce=u.anchorFn(ae,re),de=r.transFn.call(me.node(),ae)+(Vh(re)&&+re!=0?" rotate("+re+","+u.xFn(ae)+","+(u.yFn(ae)-ae.fontSize/2)+")":""),te=Bb.lineCount(me),Se=d5*ae.fontSize,Te=u.heightFn(ae,Vh(re)?+re:0,(te-1)*Se);if(Te&&(de+=j3(0,Te)),Le.empty()){var be=me.select("text");be.attr({transform:de,"text-anchor":Ce}),be.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var He=Xv.bBox(Le.node()).width,Ie=He*{end:-.5,start:.5}[Ce];Le.attr("transform",de+j3(Ie,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var re=H.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",me=0,Le=ae?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var Ce=Ru.simpleMap(t.range,t.r2l);me=t.l2p(Ce[0])+t._offset,Le=t.l2p(Ce[1])+t._offset}var de=Math.min(me,Le),te=Math.max(me,Le),Se=t.side,Te=1/0,be=-1/0;c.each(function(Be){var ce=w0.select(this),je=ce.select(".text-math-group");if(je.empty()){var rt=Xv.bBox(ce.node()),bt=0;ae?(rt.right>te||rt.leftte||rt.top+(t.tickangle?0:Be.fontSize/4)t["_visibleLabelMin_"+Ce._id]?ce.style("display","none"):te.K==="tick"&&!de&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(c,f+1?f:l);function p(){return h.length&&Promise.all(h)}var y=null;function b(){if(d(c,l),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){y=t.autotickangles[0];var H=0,re=[],ae,me=1;c.each(function(De){H=Math.max(H,De.fontSize);var Me=t.l2p(De.x),oe=kN(this),Ne=Xv.bBox(oe.node());me=Math.max(me,Bb.lineCount(oe)),re.push({top:0,bottom:10,height:10,left:Me-Ne.width/2,right:Me+Ne.width/2+2,width:Ne.width+2})});var Le=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Ce=s.length,de=Math.abs((s[Ce-1].x-s[0].x)*t._m)/(Ce-1),te=Le?de/2:de,Se=Le?t.ticklen:H*1.25*me,Te=Math.sqrt(Math.pow(te,2)+Math.pow(Se,2)),be=te/Te,He=t.autotickangles.map(function(De){return De*Math.PI/180}),Ie=He.find(function(De){return Math.abs(Math.cos(De))<=be});Ie===void 0&&(Ie=He.reduce(function(De,Me){return Math.abs(Math.cos(De))j*G&&(O=G,m[S]=P[S]=F[S])}var W=Math.abs(O-E);W-L>0?(W-=L,L*=1+L/W):L=0,t._id.charAt(0)!=="y"&&(L=-L),m[k]=M.p2r(M.r2p(P[k])+x*L),M.autorange==="min"||M.autorange==="max reversed"?(m[0]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0):(M.autorange==="max"||M.autorange==="min reversed")&&(m[1]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[M._name+".range"]=m}var N=Ru.syncOrAsync(v);return N&&N.then&&e._promises.push(N),N};function fut(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,NP);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(c5.stroke,t.dividercolor).style("stroke-width",Xv.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}il.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function Nse(e){var t=e.title.font.size,r=(e.title.text.match(Bb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Nb+r*d5):r?t*(r+1)*d5:t}function cut(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Bb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Nb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(u5+s*d5));else{var u=v5(t);if(t.type==="multicategory")o=t._depth;else{var l=1.5*a;u&&(l=.5*a,t.ticks==="outside"&&(l+=t.ticklen)),o=10+l+(t.linewidth?t.linewidth-1:0)}u||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var f=il.getPxPosition(e,t),c,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?f-o:f+o):(d=t._offset+t._length/2,h=t.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var y=t._selections[t._id+"tick"];if(p={selection:y,side:t.side},y&&y.node()&&y.node().parentNode){var b=Xv.getTranslate(y.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,Llt.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}il.shouldShowZeroLine=function(e,t,r){var n=Ru.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===BP)&&(Yse(t,0)||!hut(e,t,r,n)||dut(e,t))};il.clipEnds=function(e,t){return t.filter(function(r){return Yse(e,r.x)})};function Yse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=Flt:/%L/.test(t)?e>=Rlt:/%[SX]/.test(t)?e>=FP:/%M/.test(t)?e>=h5:/%[HI]/.test(t)?e>=wy:/%p/.test(t)?e>=p_:/%[Aadejuwx]/.test(t)?e>=Op:/%[UVW]/.test(t)?e>=Zv:/%[Bbm]/.test(t)?e>=RP:/%[q]/.test(t)?e>=DP:/%[Yy]/.test(t)?e>=IP:!0}});var RN=we((Uor,Qse)=>{"use strict";Qse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),u=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),u===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var FN=we((Vor,ele)=>{"use strict";var _ut=RN();ele.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var u;!i.noInsiderange&&o!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(r.insiderange=!1,u=void 0),u&&(s=n("range",u)))}var l=r.getAutorangeDflt(s,i),f=n("autorange",l),c;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(f==="reversed"||f===!0)||s[0]!==null&&(f==="min"||f==="max reversed")||s[1]!==null&&(f==="max"||f==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,c=!0),c||(l=r.getAutorangeDflt(s,i),f=n("autorange",l)),f&&(_ut(n,f,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var rle=we((Gor,tle)=>{var xut={left:0,top:0};tle.exports=but;function but(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=wut(t);return r[0]=n-a.left,r[1]=i-a.top,r}function wut(e){return e===window||e===document||e===document.body?xut:e.getBoundingClientRect()}});var VP=we((Hor,ile)=>{"use strict";var Aut=gq();function Tut(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}ile.exports=Aut&&Tut()});var ale=we((Wor,nle)=>{"use strict";nle.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),u=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?u:a==="right"||a==="top"?s:o<2/3-u?o:s>4/3-u?s:u}});var lle=we((jor,sle)=>{"use strict";var ole=ei(),Sut=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];sle.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=ole.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=ole.constrain(Math.floor(r*3),0,2),Sut[r][t]}});var fle=we((Xor,ule)=>{"use strict";var Mut=L3(),Eut=WL(),kut=WM().getGraphDiv,Cut=UM(),ON=ule.exports={};ON.wrapped=function(e,t,r){e=kut(e),e._fullLayout&&Eut.clear(e._fullLayout._uid+Cut.HOVERID),ON.raw(e,t,r)};ON.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Mut.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var xp=we((Zor,ple)=>{"use strict";var Lut=rle(),BN=xq(),Put=VP(),zut=ei().removeElement,Iut=qh(),Ub=ple.exports={};Ub.align=ale();Ub.getCursor=lle();var hle=fle();Ub.unhover=hle.wrapped;Ub.unhoverRaw=hle.raw;Ub.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,u,l,f,c,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,Put?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function p(M,A,L){return Math.abs(M)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var A;c.target===h?A=c:(A={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(L=>{var x=c[L];!A[L]&&typeof x!="function"&&(A[L]=x)})),t.clickFn&&t.clickFn(n,A),d||h.dispatchEvent(new MouseEvent("click",M))}r._dragging=!1,r._dragged=!1}};function dle(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Ub.coverSlip=dle;function cle(e){return Lut(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Em=we((Yor,vle)=>{"use strict";vle.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var gle=we((Kor,yle)=>{"use strict";var qN=Em(),m5="data-savedcursor",mle="!!";yle.exports=function(t,r){var n=t.attr(m5);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var NN=gc(),Dut=Bh();_le.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Dut.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:NN({editType:"legend"}),grouptitlefont:NN({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:NN({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var g5=we(y5=>{"use strict";y5.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};y5.isVertical=function(t){return t.orientation!=="h"};y5.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};y5.getId=function(t){return t._id||"legend"}});var GN=we((Qor,xle)=>{"use strict";var GP=$l(),Yv=ei(),Rut=Lf(),Fut=Gf(),Out=UN(),But=b3(),VN=g5();function qut(e,t,r,n,i){var a=t[e]||{},o=Rut.newContainer(r,e);function s(H,re){return Yv.coerce(a,o,Out,H,re)}var u=Yv.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var l=s("visible");if(!l)return;var f,c=function(H,re){var ae=f._input,me=f;return Yv.coerce(ae,me,Fut,H,re)},h=r.font||{},d=Yv.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),p=0,y=!1,b="normal",v=(r.shapes||[]).filter(function(H){return H.showlegend});function C(H){return GP.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}n.filter(C).forEach(function(H){H.visible&&p++;for(var re=0;reH.legend.length)for(var me=H.legend.length;me(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),!(x===!1&&!a.uirevision)&&(s("uirevision",r.uirevision),x!==!1)){s("borderwidth");var k=s("orientation"),S=s("yref"),m=s("xref"),P=k==="h",E=S==="paper",O=m==="paper",F,U,G,j="left";P?(F=0,GP.getComponentMethod("rangeslider","isVisible")(t.xaxis)?E?(U=1.1,G="bottom"):(U=1,G="top"):E?(U=-.1,G="top"):(U=0,G="bottom")):(U=1,G="auto",O?F=1.02:(F=1,j="right")),Yv.coerce(a,o,{x:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:F}},"x"),Yv.coerce(a,o,{y:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:U}},"y"),s("traceorder",b),VN.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemclick"),s("itemdoubleclick"),s("groupclick"),s("xanchor",j),s("yanchor",G),s("maxheight"),s("valign"),Yv.noneOrAll(a,o,["x","y"]);var W=s("title.text");if(W){s("title.side",P?"left":"top");var N=Yv.extendFlat({},u,{size:Yv.bigFont(u.size)});Yv.coerceFont(s,"title.font",N);let H=i>1;s("titleclick",H?"toggle":!1),s("titledoubleclick",H?"toggleothers":!1)}}}xle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var v_=$l(),HN=ei(),Nut=HN.pushUnique,Uut=g5(),ble=!0;WN.handleItemClick=function(t,r,n,i){var a=r._fullLayout;if(r._dragged||r._editing)return;var o=t.data()[0][0];if(o.groupTitle&&o.noClick)return;var s=n.groupclick;i==="toggle"&&n.itemdoubleclick==="toggleothers"&&ble&&r.data&&r._context.showTips&&(HN.notifier(HN._(r,"Double-click on legend to isolate one trace"),"long",r),ble=!1);var u=s==="togglegroup",l=a.hiddenlabels?a.hiddenlabels.slice():[],f=r._fullData;let c=(a.shapes||[]).filter(it=>it.showlegend||it.legendgroup);var h=f.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,y,b,v,C,M,A,L={},x=[],k=[],S=[];function m(it,Ke){var zt=x.indexOf(it),Mt=L.visible;return Mt||(Mt=L.visible=[]),x.indexOf(it)===-1&&(x.push(it),zt=x.length-1),Mt[zt]=Ke,zt}var P=(a.shapes||[]).map(function(it){return it._input}),E=!1;function O(it,Ke){P[it].visible=Ke,E=!0}function F(it,Ke){if(!(o.groupTitle&&!u)){var zt=it._fullInput||it,Mt=zt._isShape,kt=zt.index;kt===void 0&&(kt=zt._index);var $e=zt.visible===!1?!1:Ke;Mt?O(kt,$e):m(kt,$e)}}var U=d.legend,G=d._fullInput,j=G&&G._isShape;if(!j&&v_.traceIs(d,"pie-like")){var W=o.label,N=l.indexOf(W);if(i==="toggle")N===-1?l.push(W):l.splice(N,1);else if(i==="toggleothers"){var H=N!==-1,re=[];for(y=0;yv.showlegend||v.legendgroup),u=a.concat(s);function l(v){return(v.legend||"legend")===o}var f,c;if(n==="toggle")f=!u.some(function(C){return l(C)&&C.visible===!0}),c=!1;else{let v=u.some(function(C){return!l(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,c=!v}let h={visible:[]},d=[],p=(i.shapes||[]).map(function(v){return v._input});for(var y=!1,b=0;b{"use strict";wle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var Sle=we((rsr,Tle)=>{"use strict";var{isArrayOrTypedArray:ZN}=Jd(),Ale=$l(),YN=g5();Tle.exports=function(t,r,n){var i=r._inHover,a=YN.isGrouped(r),o=YN.isReversed(r),s={},u=[],l=!1,f={},c=0,h=0,d,p;function y(re,ae,me){if(r.visible!==!1&&!(n&&re!==r._id))if(ae===""||!YN.isGrouped(r)){var Le="~~i"+c;u.push(Le),s[Le]=[me],c++}else u.indexOf(ae)===-1?(u.push(ae),l=!0,s[ae]=[me]):s[ae].push(me)}for(d=0;dF&&(E=F)}m[d][0]._groupMinRank=E,m[d][0]._preGroupSort=d}var U=function(re,ae){return re[0]._groupMinRank-ae[0]._groupMinRank||re[0]._preGroupSort-ae[0]._preGroupSort},G=function(re,ae){var me=ZN(re.trace.legendrank)?re.trace.legendrank[re.i]:re.trace.legendrank,Le=ZN(ae.trace.legendrank)?ae.trace.legendrank[ae.i]:ae.trace.legendrank;return me-Le||re._preSort-ae._preSort};for(m.forEach(function(re,ae){re[0]._preGroupSort=ae}),m.sort(U),d=0;d{"use strict";var HP=ei();function Mle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Vb.formatPiePercent=function(t,r){var n=Mle((t*100).toPrecision(3));return HP.numSeparate(n,r)+"%"};Vb.formatPieValue=function(t,r){var n=Mle(t.toPrecision(10));return HP.numSeparate(n,r)};Vb.getFirstFilled=function(t,r){if(HP.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var Vut=Mu(),Gut=jl();Ele.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?Vut.pointStyle(t,n,i,r):Gut.fill(t,r.color)}});var Y3=we((asr,Ple)=>{"use strict";var Cle=jl(),Lle=m_().castOption,Hut=kle();Ple.exports=function(t,r,n,i){var a=n.marker.line,o=Lle(a.color,r.pts)||Cle.defaultLine,s=Lle(a.width,r.pts)||0;t.call(Hut,r,n,i).style("stroke-width",s).call(Cle.stroke,o)}});var QN=we((osr,Ole)=>{"use strict";var Bp=Jl(),KN=$l(),bp=ei(),zle=bp.strTranslate,Kv=Mu(),A0=jl(),JN=yp().extractOpts,WP=lc(),Wut=Y3(),jut=m_().castOption,Xut=XN(),Ile=12,Dle=5,Gb=2,Zut=10,K3=5;Ole.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+Xut.itemGap*2)/2,u=zle(s,0),l=function(k,S,m,P){var E;if(k+1)E=k;else if(S&&S.width>0)E=S.width;else return 0;return a?P:Math.min(E,m)};t.each(function(k){var S=Bp.select(this),m=bp.ensureSingle(S,"g","layers");m.style("opacity",k[0].trace.opacity);var P=n.indentation,E=n.valign,O=k[0].lineHeight,F=k[0].height;if(E==="middle"&&P===0||!O||!F)m.attr("transform",null);else{var U={top:1,bottom:-1}[E],G=U*(.5*(O-F+3))||0,j=n.indentation;m.attr("transform",zle(j,G))}var W=m.selectAll("g.legendfill").data([k]);W.enter().append("g").classed("legendfill",!0);var N=m.selectAll("g.legendlines").data([k]);N.enter().append("g").classed("legendlines",!0);var H=m.selectAll("g.legendsymbols").data([k]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(p).each(d).each(b).each(A).each(M).each(f).each(c).each(v).each(C);function f(k){var S=Rle(k),m=S.showFill,P=S.showLine,E=S.showGradientLine,O=S.showGradientFill,F=S.anyFill,U=S.anyLine,G=k[0],j=G.trace,W,N,H=JN(j),re=H.colorscale,ae=H.reversescale,me=function(be){if(be.size())if(m)Kv.fillGroupStyle(be,r,!0);else{var He="legendfill-"+j.uid;Kv.gradient(be,r,He,$N(ae),re,"fill")}},Le=function(be){if(be.size()){var He="legendline-"+j.uid;Kv.lineGroupStyle(be),Kv.gradient(be,r,He,$N(ae),re,"stroke")}},Ce=WP.hasMarkers(j)||!F?"M5,0":U?"M5,-2":"M5,-3",de=Bp.select(this),te=de.select(".legendfill").selectAll("path").data(m||O?[k]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",Ce+"h"+o+"v6h-"+o+"z").call(me),P||E){var Se=l(void 0,j.line,Zut,Dle);N=bp.minExtend(j,{line:{width:Se}}),W=[bp.minExtend(G,{trace:N})]}var Te=de.select(".legendlines").selectAll("path").data(P||E?[W]:[]);Te.enter().append("path").classed("js-line",!0),Te.exit().remove(),Te.attr("d",Ce+(E?"l"+o+",0.0001":"h"+o)).call(P?Kv.lineGroupStyle:Le)}function c(k){var S=Rle(k),m=S.anyFill,P=S.anyLine,E=S.showLine,O=S.showMarker,F=k[0],U=F.trace,G=!O&&!P&&!m&&WP.hasText(U),j,W;function N(te,Se,Te,be){var He=bp.nestedProperty(U,te).get(),Ie=bp.isArrayOrTypedArray(He)&&Se?Se(He):He;if(a&&Ie&&be!==void 0&&(Ie=be),Te){if(IeTe[1])return Te[1]}return Ie}function H(te){return F._distinct&&F.index&&te[F.index]?te[F.index]:te[0]}if(O||G||E){var re={},ae={};if(O){re.mc=N("marker.color",H),re.mx=N("marker.symbol",H),re.mo=N("marker.opacity",bp.mean,[.2,1]),re.mlc=N("marker.line.color",H),re.mlw=N("marker.line.width",bp.mean,[0,5],Gb),re.mld=U._isShape?"solid":N("marker.line.dash",H),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var me=N("marker.size",bp.mean,[2,16],Ile);re.ms=me,ae.marker.size=me}E&&(ae.line={width:N("line.width",H,[0,10],Dle)}),G&&(re.tx="Aa",re.tp=N("textposition",H),re.ts=10,re.tc=N("textfont.color",H),re.tf=N("textfont.family",H),re.tw=N("textfont.weight",H),re.ty=N("textfont.style",H),re.tv=N("textfont.variant",H),re.tC=N("textfont.textcase",H),re.tE=N("textfont.lineposition",H),re.tS=N("textfont.shadow",H)),j=[bp.minExtend(F,re)],W=bp.minExtend(U,ae),W.selectedpoints=null,W.texttemplate=null}var Le=Bp.select(this).select("g.legendpoints"),Ce=Le.selectAll("path.scatterpts").data(O?j:[]);Ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Ce.exit().remove(),Ce.call(Kv.pointStyle,W,r),O&&(j[0].mrc=3);var de=Le.selectAll("g.pointtext").data(G?j:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),de.exit().remove(),de.selectAll("text").call(Kv.textPointStyle,W,r)}function h(k){var S=k[0].trace,m=S.type==="waterfall";if(k[0]._distinct&&m){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,y(k,this,"waterfall")}var E=[];S.visible&&m&&(E=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var O=Bp.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(E);O.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),O.exit().remove(),O.each(function(F){var U=Bp.select(this),G=S[F[0]].marker,j=l(void 0,G.line,K3,Gb);U.attr("d",F[1]).style("stroke-width",j+"px").call(A0.fill,G.color),j&&U.call(A0.stroke,G.line.color)})}function d(k){y(k,this)}function p(k){y(k,this,"funnel")}function y(k,S,m){var P=k[0].trace,E=P.marker||{},O=E.line||{},F=E.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",U=m?P.visible&&P.type===m:KN.traceIs(P,"bar"),G=Bp.select(S).select("g.legendpoints").selectAll("path.legend"+m).data(U?[k]:[]);G.enter().append("path").classed("legend"+m,!0).attr("d",F).attr("transform",u),G.exit().remove(),G.each(function(j){var W=Bp.select(this),N=j[0],H=l(N.mlw,E.line,K3,Gb);W.style("stroke-width",H+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var ae=JN(E),me=ae.mid;me===void 0&&(me=(ae.max+ae.min)/2),re=Kv.tryColorscale(E,"")(me)}var Le=re||N.mc||E.color,Ce=E.pattern,de=Kv.getPatternAttr,te=Ce&&(de(Ce.shape,0,"")||de(Ce.path,0,""));if(te){var Se=de(Ce.bgcolor,0,null),Te=de(Ce.fgcolor,0,null),be=Ce.fgopacity,He=Fle(Ce.size,8,10),Ie=Fle(Ce.solidity,.5,1),ge="legend-"+P.uid;W.call(Kv.pattern,"legend",r,ge,te,He,Ie,re,Ce.fillmode,Se,Te,be)}else W.call(A0.fill,Le);H&&A0.stroke(W,N.mlc||O.color)})}function b(k){var S=k[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&KN.traceIs(S,"box-violin")?[k]:[]);m.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),m.exit().remove(),m.each(function(){var P=Bp.select(this);if((S.boxpoints==="all"||S.points==="all")&&A0.opacity(S.fillcolor)===0&&A0.opacity((S.line||{}).color)===0){var E=bp.minExtend(S,{marker:{size:a?Ile:bp.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});m.call(Kv.pointStyle,E,r)}else{var O=l(void 0,S.line,K3,Gb);P.style("stroke-width",O+"px").call(A0.fill,S.fillcolor),O&&A0.stroke(P,S.line.color)}})}function v(k){var S=k[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[k,k]:[]);m.enter().append("path").classed("legendcandle",!0).attr("d",function(P,E){return E?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,E){var O=Bp.select(this),F=S[E?"increasing":"decreasing"],U=l(void 0,F.line,K3,Gb);O.style("stroke-width",U+"px").call(A0.fill,F.fillcolor),U&&A0.stroke(O,F.line.color)})}function C(k){var S=k[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[k,k]:[]);m.enter().append("path").classed("legendohlc",!0).attr("d",function(P,E){return E?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,E){var O=Bp.select(this),F=S[E?"increasing":"decreasing"],U=l(void 0,F.line,K3,Gb);O.style("fill","none").call(Kv.dashLine,F.line.dash,U),U&&A0.stroke(O,F.line.color)})}function M(k){L(k,this,"pie")}function A(k){L(k,this,"funnelarea")}function L(k,S,m){var P=k[0],E=P.trace,O=m?E.visible&&E.type===m:KN.traceIs(E,m),F=Bp.select(S).select("g.legendpoints").selectAll("path.legend"+m).data(O?[k]:[]);if(F.enter().append("path").classed("legend"+m,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),F.exit().remove(),F.size()){var U=E.marker||{},G=l(jut(U.line.width,P.pts),U.line,K3,Gb),j="pieLike",W=bp.minExtend(E,{marker:{line:{width:G}}},j),N=bp.minExtend(P,{trace:W},j);Wut(F,N,W,r)}}function x(k){var S=k[0].trace,m,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],m=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],m=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],m="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],m=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],m=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],m=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],m=!1;break}var E=Bp.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);E.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(O,F){var U=Bp.select(this),G=JN(S),j=G.colorscale,W=G.reversescale,N=function(me){if(me.size()){var Le="legendfill-"+S.uid;Kv.gradient(me,r,Le,$N(W,m==="radial"),j,"fill")}},H;if(j){if(!m){var ae=j.length;H=F===0?j[W?ae-1:0][1]:F===1?j[W?0:ae-1][1]:j[Math.floor((ae-1)/2)][1]}}else{var re=S.vertexcolor||S.facecolor||S.color;H=bp.isArrayOrTypedArray(re)?re[F]||re[0]:re}U.attr("d",O[0]),H?U.call(A0.fill,H):U.call(N)})}};function $N(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Rle(e){var t=e[0].trace,r=t.contours,n=WP.hasLines(t),i=WP.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var u=r.coloring;u==="lines"?o=!0:n=u==="none"||u==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(u==="fill"||u==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function Fle(e,t,r){return e&&bp.isArrayOrTypedArray(e)?t:e>r?r:e}});var i7=we((ssr,jle)=>{"use strict";var nv=Jl(),Ah=ei(),t7=Cc(),Hb=$l(),ZP=L3(),e7=xp(),Th=Mu(),_5=jl(),Wb=Wf(),Ble=jN().handleItemClick,qle=jN().handleTitleClick,Gh=XN(),r7=Nh(),Hle=r7.LINE_SPACING,$3=r7.FROM_TL,Nle=r7.FROM_BR,Ule=Sle(),Yut=QN(),Q3=g5(),J3=1,Kut=/^legend[0-9]*$/;jle.exports=function(t,r){if(r)Vle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var l=nv.select(this),f=l.attr("class"),c=f.split(" ")[0];c.match(Kut)&&i.indexOf(c)===-1&&l.remove()});for(var o=0;o1)}var p=n.hiddenlabels||[];if(!s&&(!n.showlegend||!u.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),t7.autoMargin(e,i);var y=Ah.ensureSingle(o,"g",i,function(S){s||S.attr("pointer-events","all")}),b=Ah.ensureSingleById(n._topdefs,"clipPath",a,function(S){S.append("rect")}),v=Ah.ensureSingle(y,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});v.call(_5.stroke,r.bordercolor).call(_5.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var C=Ah.ensureSingle(y,"g","scrollbox"),M=r.title;r._titleWidth=0,r._titleHeight=0;var A;M.text?(A=Ah.ensureSingle(C,"text",i+"titletext"),A.attr("text-anchor","start").call(Th.font,M.font).text(M.text),XP(A,C,e,r,J3),!s&&(r.titleclick||r.titledoubleclick)&&eft(C,e,r,i)):(C.selectAll("."+i+"titletext").remove(),C.selectAll("."+i+"titletoggle").remove());var L=Ah.ensureSingle(y,"rect","scrollbar",function(S){S.attr(Gh.scrollBarEnterAttrs).call(_5.fill,Gh.scrollBarColor)}),x=C.selectAll("g.groups").data(u);x.enter().append("g").attr("class","groups"),x.exit().remove();var k=x.selectAll("g.traces").data(Ah.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(S){let m=S[0],P=m.trace;if(m.groupTitle){let E=P.legendgroup,O=(n.shapes||[]).filter(function(U){return U.showlegend});return e._fullData.concat(O).some(function(U){return U.legendgroup===E&&(U.legend||"legend")===i&&U.visible===!0})?1:.5}return Hb.traceIs(P,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){nv.select(this).call($ut,e,r)}).call(Yut,e,r).each(function(S){s||S[0].groupTitle&&r.groupclick==="toggleitem"||nv.select(this).call(Qut,e,i)}),Ah.syncOrAsync([t7.previousPromises,function(){return ift(e,x,k,r,C)},function(){var S=n._size,m=r.borderwidth,P=r.xref==="paper",E=r.yref==="paper";if(M.text){let je=(n.shapes||[]).filter(function(bt){return bt.showlegend}),rt=e._fullData.concat(je).some(function(bt){let Ot=bt.legend||"legend";var it=Array.isArray(Ot)?Ot.includes(i):Ot===i;return it&&bt.visible===!0});A.style("opacity",rt?1:.5)}if(!s){var O,F;P?O=S.l+S.w*r.x-$3[YP(r)]*r._width:O=n.width*r.x-$3[YP(r)]*r._width,E?F=S.t+S.h*(1-r.y)-$3[KP(r)]*r._effHeight:F=n.height*(1-r.y)-$3[KP(r)]*r._effHeight;var U=nft(e,i,O,F);if(U)return;if(n.margin.autoexpand){var G=O,j=F;O=P?Ah.constrain(O,0,n.width-r._width):G,F=E?Ah.constrain(F,0,n.height-r._effHeight):j,O!==G&&Ah.log("Constrain "+i+".x to make legend fit inside graph"),F!==j&&Ah.log("Constrain "+i+".y to make legend fit inside graph")}Th.setTranslate(y,O,F)}if(L.on(".drag",null),y.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var W=r._effHeight;s&&(W=r._height),v.attr({width:r._width-m,height:W-m,x:m/2,y:m/2}),Th.setTranslate(C,0,0),b.select("rect").attr({width:r._width-2*m,height:W-2*m,x:m,y:m}),Th.setClipUrl(C,a,e),Th.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(Gh.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),H=r._effHeight-N-2*Gh.scrollBarMargin,re=r._height-r._effHeight,ae=H/re,me=Math.min(r._scrollY||0,re);v.attr({width:r._width-2*m+Gh.scrollBarWidth+Gh.scrollBarMargin,height:r._effHeight-m,x:m/2,y:m/2}),b.select("rect").attr({width:r._width-2*m+Gh.scrollBarWidth+Gh.scrollBarMargin,height:r._effHeight-2*m,x:m,y:m+me}),Th.setClipUrl(C,a,e),He(me,N,ae),y.on("wheel",function(){me=Ah.constrain(r._scrollY+nv.event.deltaY/re*H,0,re),He(me,N,ae),me!==0&&me!==re&&nv.event.preventDefault()});var Le,Ce,de,te=function(je,rt,bt){var Ot=(bt-rt)/ae+je;return Ah.constrain(Ot,0,re)},Se=function(je,rt,bt){var Ot=(rt-bt)/ae+je;return Ah.constrain(Ot,0,re)},Te=nv.behavior.drag().on("dragstart",function(){var je=nv.event.sourceEvent;je.type==="touchstart"?Le=je.changedTouches[0].clientY:Le=je.clientY,de=me}).on("drag",function(){var je=nv.event.sourceEvent;je.buttons===2||je.ctrlKey||(je.type==="touchmove"?Ce=je.changedTouches[0].clientY:Ce=je.clientY,me=te(de,Le,Ce),He(me,N,ae))});L.call(Te);var be=nv.behavior.drag().on("dragstart",function(){var je=nv.event.sourceEvent;je.type==="touchstart"&&(Le=je.changedTouches[0].clientY,de=me)}).on("drag",function(){var je=nv.event.sourceEvent;je.type==="touchmove"&&(Ce=je.changedTouches[0].clientY,me=Se(de,Le,Ce),He(me,N,ae))});C.call(be)}function He(je,rt,bt){r._scrollY=e._fullLayout[i]._scrollY=je,Th.setTranslate(C,0,-je),Th.setRect(L,r._width,Gh.scrollBarMargin+je*bt,Gh.scrollBarWidth,rt),b.select("rect").attr("y",m+je)}if(e._context.edits.legendPosition){var Ie,ge,Be,ce;y.classed("cursor-move",!0),e7.init({element:y.node(),gd:e,prepFn:function(je){if(je.target!==L.node()){var rt=Th.getTranslate(y);Be=rt.x,ce=rt.y}},moveFn:function(je,rt){if(Be!==void 0&&ce!==void 0){var bt=Be+je,Ot=ce+rt;Th.setTranslate(y,bt,Ot),Ie=e7.align(bt,r._width,S.l,S.l+S.w,r.xanchor),ge=e7.align(Ot+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(Ie!==void 0&&ge!==void 0){var je={};je[i+".x"]=Ie,je[i+".y"]=ge,Hb.call("_guiRelayout",e,je)}},clickFn:function(je,rt){var bt=o.selectAll("g.traces").filter(function(){var Ot=this.getBoundingClientRect();return rt.clientX>=Ot.left&&rt.clientX<=Ot.right&&rt.clientY>=Ot.top&&rt.clientY<=Ot.bottom});bt.size()>0&&Wle(e,r,bt,je,rt)}})}}],e)}}function jP(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Wle(e,t,r,n,i){var a=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,u=t.itemdoubleclick,l={event:i,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:a};o._group&&(l.group=o._group),Hb.traceIs(o,"pie-like")&&(l.label=r.datum()[0].label);var f=ZP.triggerHandler(e,"plotly_legendclick",l);if(n===1){if(f===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&Ble(r,e,t,s)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var c=ZP.triggerHandler(e,"plotly_legenddoubleclick",l);c!==!1&&f!==!1&&u&&Ble(r,e,t,u)}}function $ut(e,t,r){var n=Q3.getId(r),i=e.data()[0][0],a=i.trace,o=Hb.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,u=r._maxNameLength,l,f;i.groupTitle?(l=i.groupTitle.text,f=i.groupTitle.font):(f=r.font,r.entries?l=i.text:(l=o?i.label:a.name,a._meta&&(l=Ah.templateString(l,a._meta))));var c=Ah.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(Th.font,f).text(s?Gle(l,u):l);var h=r.indentation+r.itemwidth+Gh.itemGap*2;Wb.positionText(c,h,0),s?c.call(Wb.makeEditable,{gd:t,text:l}).call(XP,e,t,r).on("edit",function(d){this.text(Gle(d,u)).call(XP,e,t,r);var p=i.trace._fullInput||{},y={};return y.name=d,p._isShape?Hb.call("_guiRelayout",t,"shapes["+a.index+"].name",y.name):Hb.call("_guiRestyle",t,y,a.index)}):XP(c,e,t,r)}function Gle(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function Qut(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Ah.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(_5.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Wle(t,s,e,a,nv.event)}}))}function eft(e,t,r,n){if(t._fullData.some(function(l){let f=l.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Hb.traceIs(l,"pie-like")}))return;let a=t._context.doubleClickDelay;var o,s=1;let u=Ah.ensureSingle(e,"rect",n+"titletoggle",function(l){t._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(_5.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(u.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimea&&(s=Math.max(s-1,1));let l={event:nv.event,legendId:n,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(ZP.triggerHandler(t,"plotly_legendtitleclick",l)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&qle(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,ZP.triggerHandler(t,"plotly_legendtitledoubleclick",l)!==!1&&r.titledoubleclick&&qle(t,r,r.titledoubleclick))}))}function XP(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Wb.convertToTspans(e,r,function(){tft(t,r,n,i)})}function tft(e,t,r,n){var i=e.data()[0][0],a=i&&i.trace.showlegend;if(Array.isArray(a)&&(a=a[i.i]!==!1),!r._inHover&&i&&!a){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),u=Q3.getId(r);r||(r=t._fullLayout[u]);var l=r.borderwidth,f;n===J3?f=r.title.font:i.groupTitle?f=i.groupTitle.font:f=r.font;var c=f.size*Hle,h,d;if(s){var p=Th.bBox(s);h=p.height,d=p.width,n===J3?Th.setTranslate(o,l,l+h*.75):Th.setTranslate(o,0,h*.25)}else{var y="."+u+(n===J3?"title":"")+"text",b=e.select(y),v=Wb.lineCount(b),C=b.node();if(h=c*v,d=C?Th.bBox(C).width:0,n===J3)r.title.side==="left"&&(d+=Gh.itemGap*2),Wb.positionText(b,l+Gh.titlePad,l+c);else{var M=Gh.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(M=Gh.itemGap,d-=r.indentation+r.itemwidth),Wb.positionText(b,M,-c*((v-1)/2-.3))}}n===J3?(r._titleWidth=d,r._titleHeight=h):(i.lineHeight=c,i.height=Math.max(h,16)+3,i.width=d)}function rft(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function ift(e,t,r,n,i){var a=e._fullLayout,o=Q3.getId(n);n||(n=a[o]);var s=a._size,u=Q3.isVertical(n),l=Q3.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,h=2*c,d=Gh.itemGap,p=n.indentation+n.itemwidth+d*2,y=2*(c+d),b=KP(n),v=n.y<0||n.y===0&&b==="top",C=n.y>1||n.y===1&&b==="bottom",M=n.tracegroupgap,A={};let{orientation:L,yref:x}=n,{maxheight:k}=n,S=v||C||L!=="v"||x!=="paper";k||(k=S?.5:1);let m=S?a.height:s.h;n._maxHeight=Math.max(k>1?k:k*m,30);var P=0;n._width=0,n._height=0;var E=rft(n);if(u)r.each(function(je){var rt=je[0].height;Th.setTranslate(this,c+E[0],c+E[1]+n._height+rt/2+d),n._height+=rt,n._width=Math.max(n._width,je[0].width)}),P=p+n._width,n._width+=d+p+h,n._height+=y,l&&(t.each(function(je,rt){Th.setTranslate(this,0,rt*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var O=YP(n),F=n.x<0||n.x===0&&O==="right",U=n.x>1||n.x===1&&O==="left",G=C||v,j=a.width/2;n._maxWidth=Math.max(F?G&&O==="left"?s.l+s.w:j:U?G&&O==="right"?s.r+s.w:j:s.w,2*p);var W=0,N=0;r.each(function(je){var rt=jP(je,n,p);W=Math.max(W,rt),N+=rt}),P=null;var H=0;if(l){var re=0,ae=0,me=0;t.each(function(){var je=0,rt=0;nv.select(this).selectAll("g.traces").each(function(Ot){var it=jP(Ot,n,p),Ke=Ot[0].height;Th.setTranslate(this,E[0],E[1]+c+d+Ke/2+rt),rt+=Ke,je=Math.max(je,it),A[Ot[0].trace.legendgroup]=je});var bt=je+d;ae>0&&bt+c+ae>n._maxWidth?(H=Math.max(H,ae),ae=0,me+=re+M,re=rt):re=Math.max(re,rt),Th.setTranslate(this,ae,me),ae+=bt}),n._width=Math.max(H,ae)+c,n._height=me+re+y}else{var Le=r.size(),Ce=N+h+(Le-1)*d=n._maxWidth&&(H=Math.max(H,Te),te=0,Se+=de,n._height+=de,de=0),Th.setTranslate(this,E[0]+c+te,E[1]+c+Se+rt/2+d),Te=te+bt+d,te+=Ot,de=Math.max(de,rt)}),Ce?(n._width=te+h,n._height=de+y):(n._width=Math.max(H,Te)+h,n._height+=de+y)}}n._width=Math.ceil(Math.max(n._width+E[0],n._titleWidth+2*(c+Gh.titlePad))),n._height=Math.ceil(Math.max(n._height+E[1],n._titleHeight+2*(c+Gh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var be=e._context.edits,He=be.legendText||be.legendPosition;r.each(function(je){var rt=nv.select(this).select("."+o+"toggle"),bt=je[0].height,Ot=je[0].trace.legendgroup,it=jP(je,n,p);l&&Ot!==""&&(it=A[Ot]);var Ke=He?p:P||it;!u&&!f&&(Ke+=d/2),Th.setRect(rt,0,-bt/2,Ke,bt)});var Ie=i.select("."+o+"titletext");Ie.node()&&Jut(Ie,n,c);var ge=i.select("."+o+"titletoggle");if(ge.size()&&Ie.node()){var Be=Ie.attr("x")||0,ce=Gh.titlePad;Th.setRect(ge,Be-ce,c,n._titleWidth+2*ce,n._titleHeight+2*ce)}}function nft(e,t,r,n){var i=e._fullLayout,a=i[t],o=YP(a),s=KP(a),u=a.xref==="paper",l=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var f=a.y<.5?"b":"t",c=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(u&&l)return t7.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*$3[o],r:a._width*Nle[o],b:a._effHeight*Nle[s],t:a._effHeight*$3[s]});u?e._fullLayout._reservedMargin[t][f]=h[f]:l||a.orientation==="v"?e._fullLayout._reservedMargin[t][c]=h[c]:e._fullLayout._reservedMargin[t][f]=h[f]}function YP(e){return Ah.isRightAnchor(e)?"right":Ah.isCenterAnchor(e)?"center":"left"}function KP(e){return Ah.isBottomAnchor(e)?"bottom":Ah.isMiddleAnchor(e)?"middle":"top"}});var s7=we(o7=>{"use strict";var jb=Jl(),zg=ku(),Xle=hd(),ah=ei(),aft=ah.pushUnique,n7=ah.strTranslate,oft=ah.strRotate,sft=L3(),T0=Wf(),lft=gle(),Ty=Mu(),vd=jl(),JP=xp(),Sy=wu(),uft=qh().zindexSeparator,tA=$l(),km=iv(),Xb=UM(),fft=GN(),cft=i7(),tue=Xb.YANGLE,a7=Math.PI*tue/180,hft=1/Math.sin(a7),dft=Math.cos(a7),pft=Math.sin(a7),Uc=Xb.HOVERARROWSIZE,kf=Xb.HOVERTEXTPAD,Zle={box:!0,ohlc:!0,violin:!0,candlestick:!0},vft={scatter:!0,scattergl:!0,splom:!0};function Yle(e,t){return e.distance-t.distance}o7.hover=function(t,r,n,i){t=ah.getGraphDiv(t);var a=r.target;ah.throttle(t._fullLayout._uid+Xb.HOVERID,Xb.HOVERMINTIME,function(){mft(t,r,n,i,a)})};o7.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=oue(i),o=sue(i),s=t.map(function(b){var v=b._x0||b.x0||b.x||0,C=b._x1||b.x1||b.x||0,M=b._y0||b.y0||b.y||0,A=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(v,C),k=Math.max(v,C),S=Math.min(M,A),m=Math.max(M,A),P=b.trace;if(tA.traceIs(P,"gl3d")){var E=i._fullLayout[P.scene]._scene.container,O=E.offsetLeft,F=E.offsetTop;x+=O,k+=O,S+=F,m+=F}L.bbox={x0:x+o,x1:k+o,y0:S+a,y1:m+a},L.xPixel=(v+C)/2,L.yPixel=(M+A)/2,r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),u=!1,l=iue(s,{gd:i,hovermode:"closest",rotateLabels:u,bgColor:r.bgColor||vd.background,container:jb.select(r.container),outerContainer:r.outerContainer||r.container}),f=l.hoverLabels,c=5,h=0,d=0;f.sort(function(b,v){return b.y0-v.y0}).each(function(b,v){var C=b.y0-b.by/2;C-ck[0]._length||ce<0||ce>S[0]._length)return JP.unhoverRaw(e,t)}if(t.pointerX=Be+k[0]._offset,t.pointerY=ce+S[0]._offset,"xval"in t?j=km.flat(a,t.xval):j=km.p2c(k,Be),"yval"in t?W=km.flat(a,t.yval):W=km.p2c(S,ce),!zg(j[0])||!zg(W[0]))return ah.warn("Fx.hover failed",t,e),JP.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=j,e._hoverYVals=W,e._hoverXAxes=k,e._hoverYAxes=S);var bt=1/0;function Ot(qr,_i){for(H=0;HTe&&(U.splice(0,Te),bt=U[0].distance),c&&F!==0&&U.length===0){Se.distance=F,Se.index=!1;var Nt=ae._module.hoverPoints(Se,de,te,"closest",{hoverLayer:s._hoverlayer});if(Nt&&(Nt=Nt.filter(function(Hr){return Hr.spikeDistance<=F})),Nt&&Nt.length){var mr,Lr=Nt.filter(function(Hr){return Hr.xa.showspikes&&Hr.xa.spikesnap!=="hovered data"});if(Lr.length){var Nr=Lr[0];zg(Nr.x0)&&zg(Nr.y0)&&(mr=Ke(Nr),(!be.vLinePoint||be.vLinePoint.spikeDistance>mr.spikeDistance)&&(be.vLinePoint=mr))}var Fr=Nt.filter(function(Hr){return Hr.ya.showspikes&&Hr.ya.spikesnap!=="hovered data"});if(Fr.length){var Gr=Fr[0];zg(Gr.x0)&&zg(Gr.y0)&&(mr=Ke(Gr),(!be.hLinePoint||be.hLinePoint.spikeDistance>mr.spikeDistance)&&(be.hLinePoint=mr))}}}}}Ot();function it(qr,_i,zi){for(var Rt=null,_t=1/0,qt,Nt=0;Ntqr.trace.index===et.trace.index):U=[et];var tt=U.length,Lt=eue("x",et,s),jt=eue("y",et,s);Ot(Lt,jt);var or=[],yr={},vr=0,Vt=function(qr){var _i=Zle[qr.trace.type]?rue(qr):qr.trace.index;if(!yr[_i])vr++,yr[_i]=vr,or.push(qr);else{var zi=yr[_i]-1,Rt=or[zi];zi>0&&Math.abs(qr.distance)tt-1;Pe--)Vt(U[Pe]);U=or,$e()}var xe=e._hoverdata,Oe=[],ze=oue(e),Re=sue(e);for(let qr of U){var ht=km.makeEventData(qr,qr.trace,qr.cd);if(qr.hovertemplate!==!1){var st=!1;qr.cd[qr.index]&&qr.cd[qr.index].ht&&(st=qr.cd[qr.index].ht),qr.hovertemplate=st||qr.trace.hovertemplate||!1}if(qr.xa&&qr.ya){var gt=qr.x0+qr.xa._offset,xt=qr.x1+qr.xa._offset,pr=qr.y0+qr.ya._offset,br=qr.y1+qr.ya._offset,cr=Math.min(gt,xt),Er=Math.max(gt,xt),ii=Math.min(pr,br),jr=Math.max(pr,br);ht.bbox={x0:cr+Re,x1:Er+Re,y0:ii+ze,y1:jr+ze},ht.xPixel=(gt+xt)/2,ht.yPixel=(pr+br)/2}qr.eventData=[ht],Oe.push(ht)}e._hoverdata=Oe;var kr=h==="y"&&(G.length>1||U.length>1)||h==="closest"&&He&&U.length>1,Vr=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),Ai=iue(U,{gd:e,hovermode:h,rotateLabels:kr,bgColor:Vr,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Bi=Ai.hoverLabels;if(km.isUnifiedHover(h)||(gft(Bi,kr,s,Ai.commonLabelBoundingBox),aue(Bi,kr,s._invScaleX,s._invScaleY)),i&&i.tagName){var Di=tA.getComponentMethod("annotations","hasClickToShow")(e,Oe);lft(jb.select(i),Di?"pointer":"")}var ln=bft(e,t,xe);if(!i||n||!ln&&!s.hoveranywhere)return;xe&&ln&&e.emit("plotly_unhover",{event:t,points:xe}),hn(e._hoverdata);function hn(qr){e.emit("plotly_hover",{event:t,points:qr,xaxes:k,yaxes:S,xvals:j,yvals:W})}}function rue(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var yft=/([\s\S]*)<\/extra>/;function iue(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,u=t.outerContainer,l=t.commonLabelOpts||{};if(e.length===0)return[[]];var f=t.fontFamily||Xb.HOVERFONT,c=t.fontSize||Xb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,p=t.fontVariant||n.font.variant,y=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,v=t.fontShadow||n.font.shadow,C=e[0],M=C.xa,A=C.ya,L=i.charAt(0),x=L+"Label",k=C[x];if(k===void 0&&M.type==="multicategory")for(var S=0;Sn.width-Oe&&(ze=n.width-Oe),Ve.attr("d","M"+(Vt-ze)+",0L"+(Vt-ze+Uc)+","+xe+Uc+"H"+Oe+"v"+xe+(kf*2+vr.height)+"H"+-Oe+"V"+xe+Uc+"H"+(Vt-ze-Uc)+"Z"),Vt=ze,H.minX=Vt-Oe,H.maxX=Vt+Oe,M.side==="top"?(H.minY=Pe-(kf*2+vr.height),H.maxY=Pe-kf):(H.minY=Pe+kf,H.maxY=Pe+(kf*2+vr.height))}else{var Re,ht,st;A.side==="right"?(Re="start",ht=1,st="",Vt=M._offset+M._length):(Re="end",ht=-1,st="-",Vt=M._offset),Pe=A._offset+(C.y0+C.y1)/2,et.attr("text-anchor",Re),Ve.attr("d","M0,0L"+st+Uc+","+Uc+"V"+(kf+vr.height/2)+"h"+st+(kf*2+vr.width)+"V-"+(kf+vr.height/2)+"H"+st+Uc+"V-"+Uc+"Z"),H.minY=Pe-(kf+vr.height/2),H.maxY=Pe+(kf+vr.height/2),A.side==="right"?(H.minX=Vt+Uc,H.maxX=Vt+Uc+(kf*2+vr.width)):(H.minX=Vt-Uc-(kf*2+vr.width),H.maxX=Vt-Uc);var gt=vr.height/2,xt=P-vr.top-gt,pr="clip"+n._uid+"commonlabel"+A._id,br;if(VtVe.hoverinfo!=="none");if(We.length===0)return[];var re=n.hoverlabel,ae=re.font,me=We[0],Le=((i==="x unified"?me.xa:me.ya).unifiedhovertitle||{}).text,Ce=Le?ah.hovertemplateString({data:i==="x unified"?[{xa:me.xa,x:me.xVal}]:[{ya:me.ya,y:me.yVal}],fallback:me.trace.hovertemplatefallback,locale:n._d3locale,template:Le}):k,de={showlegend:!0,legend:{title:{text:Ce,font:ae},font:ae,bgcolor:re.bgcolor,bordercolor:re.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},te={font:ae};fft(de,te,r._fullData);var Se=te.legend;Se.entries=[];for(var Te=0;Te=0?Ne=$e:De+rt=0?Ne=De:Me+rt=0?vt=Mt:kt+bt=0?vt=kt:oe+bt=0,(We.idealAlign==="top"||!ii)&&jr?(st-=xt/2,We.anchor="end"):ii?(st+=xt/2,We.anchor="start"):We.anchor="middle",We.crossPos=st;else{if(We.pos=st,ii=ht+gt/2+Er<=E,jr=ht-gt/2-Er>=0,(We.idealAlign==="left"||!ii)&&jr)ht-=gt/2,We.anchor="end";else if(ii)ht+=gt/2,We.anchor="start";else{We.anchor="middle";var kr=Er/2,Vr=ht+kr-E,Ai=ht-kr;Vr>0&&(ht-=Vr),Ai<0&&(ht+=-Ai)}We.crossPos=ht}Pe.attr("text-anchor",We.anchor),Oe&&xe.attr("text-anchor",We.anchor),Ve.attr("transform",n7(ht,st)+(a?oft(tue):""))}),{hoverLabels:lt,commonLabelBoundingBox:H}}function Kle(e,t,r,n,i,a){var c,h;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=ah.templateString(e.name,e.trace._meta)),o=Qle(e.name,e.nameLength));var u=r.charAt(0),l=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[u+"Label"]===i?s=e[l+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[u+"Label"]!==i&&(d[u+"other"]=d[u+"Val"],d[u+"otherLabel"]=d[u+"Label"]),s=ah.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:n._d3locale,template:f}),s=s.replace(yft,(p,y)=>(o=Qle(y,e.nameLength),""))}return[s,o]}function gft(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,u=e.size(),l=new Array(u),f=0,c=n.minX,h=n.maxX,d=n.minY,p=n.maxY,y=function(j){return j*r._invScaleX},b=function(j){return j*r._invScaleY};e.each(function(j){var W=j[i],N=j[a],H=W._id.charAt(0)==="x",re=W.range;f===0&&re&&re[0]>re[1]!==H&&(s=-1);var ae=0,me=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Le=nue(j,t),Ce=j.anchor,de=Ce==="end"?-1:1,te,Se;if(Ce==="middle")te=j.crossPos+(H?b(Le.y-j.by/2):y(j.bx/2+j.tx2width/2)),Se=te+(H?b(j.by):y(j.bx));else if(H)te=j.crossPos+b(Uc+Le.y)-b(j.by/2-Uc),Se=te+b(j.by);else{var Te=y(de*Uc+Le.x),be=Te+y(de*j.bx);te=j.crossPos+Math.min(Te,be),Se=j.crossPos+Math.max(Te,be)}H?d!==void 0&&p!==void 0&&Math.min(Se,p)-Math.max(te,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,me=r.width):me=N._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(te,c)>1&&(N.side==="top"?(ae=N._mainLinePosition,me=r.height):me=N._mainLinePosition)}l[f++]=[{datum:j,traceIndex:j.trace.index,dp:0,pos:j.pos,posref:j.posref,size:j.by*(H?hft:1)/2,pmin:ae,pmax:me}]}),l.sort(function(j,W){return j[0].posref-W[0].posref||s*(W[0].traceIndex-j[0].traceIndex)});var v,C,M,A,L,x,k;function S(j){var W=j[0],N=j[j.length-1];if(C=W.pmin-W.pos-W.dp+W.size,M=N.pos+N.dp+N.size-W.pmax,C>.01){for(L=j.length-1;L>=0;L--)j[L].dp+=C;v=!1}if(!(M<.01)){if(C<-.01){for(L=j.length-1;L>=0;L--)j[L].dp-=M;v=!1}if(v){var H=0;for(A=0;AW.pmax&&H++;for(A=j.length-1;A>=0&&!(H<=0);A--)x=j[A],x.pos>W.pmax-1&&(x.del=!0,H--);for(A=0;A=0;L--)j[L].dp-=M;for(A=j.length-1;A>=0&&!(H<=0);A--)x=j[A],x.pos+x.dp+x.size>W.pmax&&(x.del=!0,H--)}}}for(;!v&&o<=u;){for(o++,v=!0,A=0;A.01){for(L=P.length-1;L>=0;L--)P[L].dp+=C;for(m.push.apply(m,P),l.splice(A+1,1),k=0,L=m.length-1;L>=0;L--)k+=m[L].dp;for(M=k/m.length,L=m.length-1;L>=0;L--)m[L].dp-=M;v=!1}else A++}l.forEach(S)}for(A=l.length-1;A>=0;A--){var F=l[A];for(L=F.length-1;L>=0;L--){var U=F[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function nue(e,t){var r=0,n=e.offset;return t&&(n*=-pft,r=e.offset*dft),{x:r,y:n}}function _ft(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Uc+kf),n=r+t*(e.txwidth+kf),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+kf),{alignShift:t,textShiftX:r,text2ShiftX:n}}function aue(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=jb.select(this);if(o.del)return s.remove();var u=s.select("text.nums"),l=o.anchor,f=l==="end"?-1:1,c=_ft(o),h=nue(o,t),d=h.x,p=h.y,y=l==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,v;y?v="M-"+i(o.bx/2+o.tx2width/2)+","+a(p-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?v="M0,0L"+i(f*Uc+d)+","+a(Uc+p)+"v"+a(o.by/2-Uc)+"h"+i(f*o.bx)+"v-"+a(o.by)+"H"+i(f*Uc+d)+"V"+a(p-Uc)+"Z":v="M"+i(f*Uc+d)+","+a(p-o.by/2)+"h"+i(f*o.bx)+"v"+a(o.by)+"h"+i(-f*o.bx)+"Z",s.select("path").attr("d",v);var C=d+c.textShiftX,M=p+o.ty0-o.by/2+kf,A=o.textAlign||"auto";A!=="auto"&&(A==="left"&&l!=="start"?(u.attr("text-anchor","start"),C=y?-o.bx/2-o.tx2width/2+kf:-o.bx-kf):A==="right"&&l!=="end"&&(u.attr("text-anchor","end"),C=y?o.bx/2-o.tx2width/2-kf:o.bx+kf)),u.call(T0.positionText,i(C),a(M)),o.tx2width&&(s.select("text.name").call(T0.positionText,i(c.text2ShiftX+c.alignShift*kf+d),a(p+o.ty0-o.by/2+kf)),s.select("rect").call(Ty.setRect,i(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),a(p-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function xft(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||zg(h)&&h===0}var s=Array.isArray(r)?function(h,d){var p=ah.castOption(i,r,h);return o(p)?p:ah.extractOption({},n,"",d)}:function(h,d){return ah.extractOption(a,n,h,d)};function u(h,d,p){var y=s(d,p);o(y)&&(e[h]=y)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=ah.constrain(e.x0,0,e.xa._length),e.x1=ah.constrain(e.x1,0,e.xa._length),e.y0=ah.constrain(e.y0,0,e.ya._length),e.y1=ah.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Sy.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Sy.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var l=Sy.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+l+" / -"+Sy.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+l,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Sy.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Sy.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,t==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function Jle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,u=!!t.vLinePoint,l,f;if(n.selectAll(".spikeline").remove(),!!(u||s)){var c=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,p;l=h&&h.xa,f=h&&h.ya;var y=f.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=l._offset+h.x,p=f._offset+h.y);var b=Xle.readability(h.color,c)<1.5?vd.contrast(c):h.color,v=f.spikemode,C=f.spikethickness,M=f.spikecolor||b,A=Sy.getPxPosition(e,f),L,x;if(v.indexOf("toaxis")!==-1||v.indexOf("across")!==-1){if(v.indexOf("toaxis")!==-1&&(L=A,x=d),v.indexOf("across")!==-1){var k=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),S=Math.max(S,f.position)),L=a.l+k*a.w,x=a.l+S*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:p,y2:p,"stroke-width":C,stroke:M,"stroke-dasharray":Ty.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:x,y1:p,y2:p,"stroke-width":C+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}v.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A+(f.side!=="right"?C:-C),cy:p,r:C,fill:M}).classed("spikeline",!0)}if(u){var m=t.vLinePoint,P,E;l=m&&m.xa,f=m&&m.ya;var O=l.spikesnap;O==="cursor"?(P=o.pointerX,E=o.pointerY):(P=l._offset+m.x,E=f._offset+m.y);var F=Xle.readability(m.color,c)<1.5?vd.contrast(c):m.color,U=l.spikemode,G=l.spikethickness,j=l.spikecolor||F,W=Sy.getPxPosition(e,l),N,H;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=W,H=E),U.indexOf("across")!==-1){var re=l._counterDomainMin,ae=l._counterDomainMax;l.anchor==="free"&&(re=Math.min(re,l.position),ae=Math.max(ae,l.position)),N=a.t+(1-ae)*a.h,H=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G,stroke:j,"stroke-dasharray":Ty.dashStyle(l.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}U.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:W-(l.side!=="top"?G:-G),r:G,fill:j}).classed("spikeline",!0)}}}function bft(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function $le(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Qle(e,t){return T0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function wft(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;oe.offsetTop+e.clientTop,sue=e=>e.offsetLeft+e.clientLeft;function eA(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),i=n.left,a=n.top,o=i+n.width,s=a+n.height,u=ah.apply3DTransform(r._invTransform)(i,a),l=ah.apply3DTransform(r._invTransform)(o,s),f=u[0],c=u[1],h=l[0],d=l[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var x5=we((usr,lue)=>{"use strict";var Aft=ei(),Tft=jl(),Sft=iv().isUnifiedHover;lue.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&Sft(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Tft.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),Aft.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var fue=we((fsr,uue)=>{"use strict";var Mft=ei(),Eft=x5(),kft=j1();uue.exports=function(t,r){function n(i,a){return Mft.coerce(t,r,kft,i,a)}Eft(t,r,n)}});var due=we((csr,hue)=>{"use strict";var cue=ei(),Cft=m3(),Lft=x5();hue.exports=function(t,r,n,i){function a(s,u){return cue.coerce(t,r,Cft,s,u)}var o=cue.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Lft(t,r,a,o)}});var l7=we((hsr,pue)=>{"use strict";var Pft=ei(),zft=j1();pue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:Pft.coerce(t,r,zft,i,a)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var yue=we((dsr,mue)=>{"use strict";var vue=ei(),Ift=j1(),Dft=l7(),Rft=x5();mue.exports=function(t,r){function n(f,c){return vue.coerce(t,r,Ift,f,c)}var i=Dft(t,r);i&&(n("hoverdistance"),n("spikedistance"),i.indexOf("unified")!==-1&&n("hoversort"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),u=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||u)&&l===1||(o||s)&&u&&l===2)&&(r.dragmode="pan"),Rft(t,r,n),vue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var xue=we((psr,_ue)=>{"use strict";var u7=ei(),gue=$l();_ue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(l){return function(f){return u7.coerceHoverinfo({hoverinfo:f},{_module:l._module},n)}}for(var a=0;a{"use strict";var Oft=$l(),Bft=s7().hover;bue.exports=function(t,r,n){var i=Oft.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;n!==void 0&&Bft(t,r,n,!0);function o(){var u,l,f,c;var s={points:t._hoverdata,event:r};(u=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(l=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(f=s.xvals)!=null||(s.xvals=t._hoverXVals),(c=s.yvals)!=null||(s.yvals=t._hoverYVals),t.emit("plotly_click",s)}(t._hoverdata||a.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),i&&i.then?i.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Vc=we((msr,Sue)=>{"use strict";var qft=Jl(),$P=ei(),Nft=xp(),b5=iv(),Aue=j1(),Tue=s7();Sue.exports={moduleType:"component",name:"fx",constants:UM(),schema:{layout:Aue},attributes:m3(),layoutAttributes:Aue,supplyLayoutGlobalDefaults:fue(),supplyDefaults:due(),supplyLayoutDefaults:yue(),calc:xue(),getDistanceFunction:b5.getDistanceFunction,getClosest:b5.getClosest,inbox:b5.inbox,quadrature:b5.quadrature,appendArrayPointValue:b5.appendArrayPointValue,castHoverOption:Vft,castHoverinfo:Gft,hover:Tue.hover,unhover:Nft.unhover,loneHover:Tue.loneHover,loneUnhover:Uft,click:wue()};function Uft(e){var t=$P.isD3Selection(e)?e:qft.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Vft(e,t,r){return $P.castOption(e,t,"hoverlabel."+r)}function Gft(e,t,r){function n(i){return $P.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return $P.castOption(e,r,"hoverinfo",n)}});var Cm=we(Ig=>{"use strict";Ig.selectMode=function(e){return e==="lasso"||e==="select"};Ig.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ig.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ig.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ig.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ig.selectingOrDrawing=function(e){return Ig.freeMode(e)||Ig.rectMode(e)}});var w5=we((gsr,Mue)=>{"use strict";Mue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var QP=we((_sr,Eue)=>{"use strict";Eue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var tz=we((xsr,kue)=>{"use strict";var ez=32;kue.exports={CIRCLE_SIDES:ez,i000:0,i090:ez/4,i180:ez/2,i270:ez/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var rz=we((bsr,Lue)=>{"use strict";var Hft=ei().strTranslate;function Cue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function Wft(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function jft(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return Cue(e,r[t])}}function Xft(e){return Hft(e.xaxis._offset,e.yaxis._offset)}Lue.exports={p2r:Cue,r2p:Wft,axValue:jft,getTransform:Xft}});var y_=we(Dg=>{"use strict";var Zft=a5(),Iue=tz(),rA=Iue.CIRCLE_SIDES,f7=Iue.SQRT2,Due=rz(),Pue=Due.p2r,zue=Due.r2p,Yft=[0,3,4,5,6,1,2],Kft=[0,3,4,1,2];Dg.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&u{"use strict";var Rue=jc(),Nue=Cm(),Jft=Nue.drawMode,$ft=Nue.openMode,iA=tz(),Fue=iA.i000,Oue=iA.i090,Bue=iA.i180,que=iA.i270,Qft=iA.cos45,ect=iA.sin45,Uue=rz(),nz=Uue.p2r,g_=Uue.r2p,tct=o_(),rct=tct.clearOutline,az=y_(),ict=az.readPaths,nct=az.writePaths,act=az.ellipseOver,oct=az.fixDatesForPaths;function sct(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!Jft(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var lct=Cm(),uct=lct.selectMode,fct=o_(),cct=fct.clearOutline,c7=y_(),hct=c7.readPaths,dct=c7.writePaths,pct=c7.fixDatesForPaths;Hue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,u=s.xaxis,l=s.yaxis,f=r.isActiveSelection,c=r.dragmode,h=(a.layout||{}).selections||[];if(!uct(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Wue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var x_=we(Fd=>{"use strict";var Ey=T5(),jue=ei(),__=wu();Fd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Fd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Fd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Fd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Fd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Ey.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(Ey.paramRE);if(!(!s||s.length{let s=o.charAt(0),u=i[s].drawn!==void 0;return a+(u?1:0)},0)};Fd.getDataToPixel=function(e,t,r,n,i){var a=e._fullLayout._size,o;if(t)if(i==="domain")o=function(u){return t._length*(n?1-u:u)+t._offset};else{var s=Fd.shapePositionToRange(t);o=function(u){var l=My(t,r);return t._offset+t.r2p(s(u,!0))+l},t.type==="date"&&(o=Fd.decodeDate(o))}else n?o=function(u){return a.t+a.h*(1-u)}:o=function(u){return a.l+a.w*u};return o};Fd.getPixelToData=function(e,t,r,n){var i=e._fullLayout._size,a;if(t)if(n==="domain")a=function(s){var u=(s-t._offset)/t._length;return r?1-u:u};else{var o=Fd.rangeToShapePosition(t);a=function(s){return o(t.p2r(s-t._offset))}}else r?a=function(s){return 1-(s-i.t)/i.h}:a=function(s){return(s-i.l)/i.w};return a};Fd.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,n=Math.round(e);return r?n+.5:n};Fd.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&r.xref!=="paper"&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(n.yaxis=e._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}};Fd.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:n}};Fd.getPathString=function(e,t){let r=t.type,n=__.getRefType(t.xref),i=__.getRefType(t.yref),a=e._fullLayout._size;var o,s,u,l,f,c,h,d,p,y,b,v;function C(P,E,O,F){var U;if(P)if(E==="domain")F?U=function(G){return P._offset+P._length*(1-G)}:U=function(G){return P._offset+P._length*G};else{let G=Fd.shapePositionToRange(P);U=function(j){return P._offset+P.r2p(G(j,!0))},O==="path"&&P.type==="date"&&(U=Fd.decodeDate(U))}else F?U=function(G){return a.t+a.h*(1-G)}:U=function(G){return a.l+a.w*G};return U}if(n==="array"?(h=[],o=t.xref.map(function(P){return __.getFromId(e,P)}),h=t.xref.map(function(P,E){return C(o[E],__.getRefType(P),r,!1)})):(o=__.getFromId(e,t.xref),h=C(o,n,r,!1)),i==="array"?(d=[],s=t.yref.map(function(P){return __.getFromId(e,P)}),d=t.yref.map(function(P,E){return C(s[E],__.getRefType(P),r,!0)})):(s=__.getFromId(e,t.yref),d=C(s,i,r,!0)),r==="path")return vct(t,h,d);if(n==="array")u=My(o[0],t.x0shift),l=My(o[1],t.x1shift),p=h[0](t.x0)+u,y=h[1](t.x1)+l;else if(u=My(o,t.x0shift),l=My(o,t.x1shift),t.xsizemode==="pixel"){let P=h(t.xanchor);p=P+t.x0+u,y=P+t.x1+l}else p=h(t.x0)+u,y=h(t.x1)+l;if(i==="array")f=My(s[0],t.y0shift),c=My(s[1],t.y1shift),b=d[0](t.y0)+f,v=d[1](t.y1)+c;else if(f=My(s,t.y0shift),c=My(s,t.y1shift),t.ysizemode==="pixel"){let P=d(t.yanchor);b=P-t.y0+f,v=P-t.y1+c}else b=d(t.y0)+f,v=d(t.y1)+c;if(r==="line")return"M"+p+","+b+"L"+y+","+v;if(r==="rect")return"M"+p+","+b+"H"+y+"V"+v+"H"+p+"Z";var M=(p+y)/2,A=(b+v)/2,L=Math.abs(M-p),x=Math.abs(A-b),k="A"+L+","+x,S=M+L+","+A,m=M+","+(A-x);return"M"+S+k+" 0 1,1 "+m+k+" 0 0,1 "+S+"Z"};function vct(e,t,r){let n=e.path,i=e.xsizemode,a=e.ysizemode,o=e.xanchor,s=e.yanchor,u=Array.isArray(e.xref),l=Array.isArray(e.yref);var f=0,c=0;return n.replace(Ey.segmentRE,function(h){var d=0,p=h.charAt(0),y=Ey.paramIsX[p],b=Ey.paramIsY[p],v=Ey.numParams[p];let C=y.drawn!==void 0,M=b.drawn!==void 0,A=u?t[f]:t,L=l?r[c]:r;var x=h.slice(1).replace(Ey.paramRE,function(k){return y[d]?i==="pixel"?k=A(o)+Number(k):k=A(k):b[d]&&(a==="pixel"?k=L(s)-Number(k):k=L(k)),d++,d>v&&(k="X"),k});return d>v&&(x=x.replace(/[\s,]*X.*/,""),jue.log("Ignoring extra params in segment "+h)),C&&f++,M&&c++,p+x})}Fd.getPixelShift=My;function My(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var d7=we((Esr,Yue)=>{"use strict";var mct=ei(),ky=wu(),Xue=Wf(),Zue=Mu(),yct=y_().readPaths,Zb=x_(),gct=Zb.getPathString,S5=RL(),_ct=Nh().FROM_TL;Yue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=ky.getFromId(t,n.xref),u=ky.getFromId(t,n.yref);let ae=Array.isArray(n.xref),me=Array.isArray(n.yref);for(var l in S5){var f=typeof S5[l]=="function",c=!ae||S5.simpleXVariables.includes(l),h=!me||S5.simpleYVariables.includes(l);if(f&&c&&h){var d=S5[l](n,s,u);d!==void 0&&(o[l]=d)}}}a=mct.texttemplateStringForShapes({data:[o],fallback:n.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:n.label.texttemplate})}else a=n.label.text;var p={"data-index":r},y=n.label.font,b={"data-notex":1},v=i.append("g").attr(p).classed("shape-label",!0),C=v.append("text").attr(b).classed("shape-label-text",!0).text(a),M,A,L,x;if(n.path){var k=gct(t,n),S=yct(k,t);M=1/0,L=1/0,A=-1/0,x=-1/0;for(var m=0;mZb.getDataToPixel(t,je,ce,!1,rt)(Be),ge=(Be,ce,je,rt)=>Zb.getDataToPixel(t,je,ce,!0,rt)(Be);if(n.xsizemode==="pixel"){let Be=Ie(n.xanchor,void 0,Le,Se),ce=Zb.getPixelShift(Le,n.x0shift),je=Zb.getPixelShift(Le,n.x1shift);M=Be+n.x0+ce,A=Be+n.x1+je}else M=Ie(n.x0,n.x0shift,Le,Se),A=Ie(n.x1,n.x1shift,Ce,Te);if(n.ysizemode==="pixel"){let Be=ge(n.yanchor,void 0,de,be),ce=Zb.getPixelShift(de,n.y0shift),je=Zb.getPixelShift(de,n.y1shift);L=Be-n.y0+ce,x=Be-n.y1+je}else L=ge(n.y0,n.y0shift,de,be),x=ge(n.y1,n.y1shift,te,He)}var G=n.label.textangle;G==="auto"&&(n.type==="line"?G=xct(M,L,A,x):G=0),C.call(function(ae){return ae.call(Zue.font,y).attr({}),Xue.convertToTspans(ae,t),ae});var j=Zue.bBox(C.node()),W=bct(M,L,A,x,n,G,j),N=W.textx,H=W.texty,re=W.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[re],y:H,x:N,transform:"rotate("+G+","+N+","+H+")"}).call(Xue.positionText,N,H)}};function xct(e,t,r,n){var i,a;return a=Math.abs(r-e),r>=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function bct(e,t,r,n,i,a,o){var s=i.label.textposition,u=i.label.textangle,l=i.label.padding,f=i.type,c=Math.PI/180*a,h=Math.sin(c),d=Math.cos(c),p=i.label.xanchor,y=i.label.yanchor,b,v,C,M;if(f==="line"){s==="start"?(b=e,v=t):s==="end"?(b=r,v=n):(b=(e+r)/2,v=(t+n)/2),p==="auto"&&(s==="start"?u==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var wct=ei(),Act=wct.strTranslate,Kue=xp(),Que=Cm(),Tct=Que.drawMode,efe=Que.selectMode,tfe=$l(),Jue=jl(),lz=tz(),Sct=lz.i000,Mct=lz.i090,Ect=lz.i180,kct=lz.i270,Cct=o_(),rfe=Cct.clearOutlineControllers,v7=y_(),sz=v7.pointsOnRectangle,p7=v7.pointsOnEllipse,Lct=v7.writePaths,Pct=oz().newShapes,zct=oz().createShapeObj,Ict=h7(),Dct=d7();ife.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(p7(t[0])||n.hasText)&&s({redrawing:!0})}function s(W){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=Pct(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Ict(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&tfe.call((W||{}).redrawing?"relayout":"_guiRelayout",a,N)}var u=a._fullLayout,l=u._zoomlayer,f=n.dragmode,c=Tct(f),h=efe(f);(c||h)&&(a._fullLayout._outlining=!0),rfe(a),r.attr("d",Lct(t));var d,p,y,b,v;if(!i&&(n.isActiveShape||n.isActiveSelection)){v=Rct([],t);var C=l.append("g").attr("class","outline-controllers");P(C),j()}if(c&&n.hasText){var M=l.select(".label-temp"),A=zct(r,n,n.dragmode);Dct(a,"label-temp",A,M)}function L(W){y=+W.srcElement.getAttribute("data-i"),b=+W.srcElement.getAttribute("data-j"),d[y][b].moveFn=x}function x(W,N){if(t.length){var H=v[y][b][1],re=v[y][b][2],ae=t[y],me=ae.length;if(sz(ae)){var Le=W,Ce=N;if(n.isActiveSelection){var de=$ue(ae,b);de[1]===ae[b][1]?Ce=0:Le=0}for(var te=0;te1&&!(W.length===2&&W[1][0]==="Z")&&(b===0&&(W[0][0]="M"),t[y]=W,o(),s())}}function m(W,N){if(W===2){y=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var H=t[y];!sz(H)&&!p7(H)&&S()}}function P(W){d=[];for(var N=0;N{"use strict";var Oct=Jl(),ufe=$l(),y7=ei(),Yb=wu(),Bct=y_().readPaths,qct=uz(),cz=d7(),ffe=o_().clearOutlineControllers,m7=jl(),hz=Mu(),Nct=Lf().arrayEditor,nfe=xp(),afe=Vc(),ofe=Em(),Kb=T5(),Ev=x_(),g7=Ev.getPathString;dfe.exports={draw:_7,drawOne:cfe,eraseActiveShape:Wct,drawLabel:cz};function _7(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;i{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=i(a);o&&afe.hover(e,o,r.id)}}),n.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=i(a);o&&afe.click(e,o,r.id)}})}function hfe(e,t,r){let n=r.xref,i=r.yref;if(Array.isArray(n)||Array.isArray(i)){let a="clip"+t._fullLayout._uid+"shape"+r._index,o=Vct(t,n,i);y7.ensureSingleById(t._fullLayout._clips,"clipPath",a,function(s){s.append("rect")}).select("rect").attr(o),hz.setClipUrl(e,a,t)}else{let a=(n+i).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");hz.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}}function Vct(e,t,r){let n=e._fullLayout._size;function i(s,u){let l=(Array.isArray(s)?s:[s]).map(h=>Yb.getFromId(e,h)).filter(Boolean);if(!l.length)return u?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=l.map(function(h){return h._offset}),c=l.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...c)]}let a=i(t,!1),o=i(r,!0);return{x:a[0],y:o[0],width:a[1]-a[0],height:o[1]-o[0]}}function Gct(e,t,r,n,i,a){var o=10,s=10,u=r.xsizemode==="pixel",l=r.ysizemode==="pixel",f=r.type==="line",c=r.type==="path",h=a.modifyItem,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O=Oct.select(t.node().parentNode),F=Yb.getFromId(e,r.xref),U=Yb.getRefType(r.xref),G=Yb.getFromId(e,r.yref),j=Yb.getRefType(r.yref),W=r.x0shift,N=r.x1shift,H=r.y0shift,re=r.y1shift,ae=function(it,Ke){var zt=Ev.getDataToPixel(e,F,Ke,!1,U);return zt(it)},me=function(it,Ke){var zt=Ev.getDataToPixel(e,G,Ke,!0,j);return zt(it)},Le=Ev.getPixelToData(e,F,!1,U),Ce=Ev.getPixelToData(e,G,!0,j),de=Te(),te={element:de.node(),gd:e,prepFn:Ie,doneFn:ge,clickFn:Be},Se;nfe.init(te),de.node().onmousemove=He;function Te(){return f?be():t}function be(){var it=10,Ke=Math.max(r.line.width,it),zt=i.append("g").attr("data-index",n).attr("drag-helper",!0);zt.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":Ke,"stroke-opacity":"0"});var Mt={"fill-opacity":"0"},kt=Math.max(Ke/2,it);return zt.append("circle").attr({"data-line-point":"start-point",cx:u?ae(r.xanchor)+r.x0:ae(r.x0,W),cy:l?me(r.yanchor)-r.y0:me(r.y0,H),r:kt}).style(Mt).classed("cursor-grab",!0),zt.append("circle").attr({"data-line-point":"end-point",cx:u?ae(r.xanchor)+r.x1:ae(r.x1,N),cy:l?me(r.yanchor)-r.y1:me(r.y1,re),r:kt}).style(Mt).classed("cursor-grab",!0),zt}function He(it){if(fz(e)){Se=null;return}if(f)it.target.tagName==="path"?Se="move":Se=it.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ke=te.element.getBoundingClientRect(),zt=Ke.right-Ke.left,Mt=Ke.bottom-Ke.top,kt=it.clientX-Ke.left,$e=it.clientY-Ke.top,De=!c&&zt>o&&Mt>s&&!it.shiftKey?nfe.getCursor(kt/zt,1-$e/Mt):"move";ofe(t,De),Se=De.split("-")[0]}}function Ie(it){fz(e)||(u&&(v=ae(r.xanchor)),l&&(C=me(r.yanchor)),r.type==="path"?E=r.path:(d=u?r.x0:ae(r.x0),p=l?r.y0:me(r.y0),y=u?r.x1:ae(r.x1),b=l?r.y1:me(r.y1)),db?(M=p,k="y0",A=b,S="y1"):(M=b,k="y1",A=p,S="y0"),He(it),rt(i,r),Ot(t,r,e),te.moveFn=Se==="move"?ce:je,te.altKey=it.altKey)}function ge(){fz(e)||(ofe(t),bt(i),hfe(t,e,r),ufe.call("_guiRelayout",e,a.getUpdateObj()))}function Be(){fz(e)||bt(i)}function ce(it,Ke){if(r.type==="path"){var zt=function($e){return $e},Mt=zt,kt=zt;u?h("xanchor",r.xanchor=Le(v+it)):(Mt=function(De){return Le(ae(De)+it)},F&&F.type==="date"&&(Mt=Ev.encodeDate(Mt))),l?h("yanchor",r.yanchor=Ce(C+Ke)):(kt=function(De){return Ce(me(De)+Ke)},G&&G.type==="date"&&(kt=Ev.encodeDate(kt))),h("path",r.path=sfe(E,Mt,kt))}else u?h("xanchor",r.xanchor=Le(v+it)):(h("x0",r.x0=Le(d+it)),h("x1",r.x1=Le(y+it))),l?h("yanchor",r.yanchor=Ce(C+Ke)):(h("y0",r.y0=Ce(p+Ke)),h("y1",r.y1=Ce(b+Ke)));t.attr("d",g7(e,r)),rt(i,r),cz(e,n,r,O)}function je(it,Ke){if(c){var zt=function(or){return or},Mt=zt,kt=zt;u?h("xanchor",r.xanchor=Le(v+it)):(Mt=function(yr){return Le(ae(yr)+it)},F&&F.type==="date"&&(Mt=Ev.encodeDate(Mt))),l?h("yanchor",r.yanchor=Ce(C+Ke)):(kt=function(yr){return Ce(me(yr)+Ke)},G&&G.type==="date"&&(kt=Ev.encodeDate(kt))),h("path",r.path=sfe(E,Mt,kt))}else if(f){if(Se==="resize-over-start-point"){var $e=d+it,De=l?p-Ke:p+Ke;h("x0",r.x0=u?$e:Le($e)),h("y0",r.y0=l?De:Ce(De))}else if(Se==="resize-over-end-point"){var Me=y+it,oe=l?b-Ke:b+Ke;h("x1",r.x1=u?Me:Le(Me)),h("y1",r.y1=l?oe:Ce(oe))}}else{var Ne=function(or){return Se.indexOf(or)!==-1},vt=Ne("n"),lt=Ne("s"),We=Ne("w"),Ve=Ne("e"),et=vt?M+Ke:M,tt=lt?A+Ke:A,Lt=We?L+it:L,jt=Ve?x+it:x;l&&(vt&&(et=M-Ke),lt&&(tt=A-Ke)),(!l&&tt-et>s||l&&et-tt>s)&&(h(k,r[k]=l?et:Ce(et)),h(S,r[S]=l?tt:Ce(tt))),jt-Lt>o&&(h(m,r[m]=u?Lt:Le(Lt)),h(P,r[P]=u?jt:Le(jt)))}t.attr("d",g7(e,r)),rt(i,r),cz(e,n,r,O)}function rt(it,Ke){(u||l)&&zt();function zt(){var Mt=Ke.type!=="path",kt=it.selectAll(".visual-cue").data([0]),$e=1;kt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":$e}).classed("visual-cue",!0);var De=ae(u?Ke.xanchor:y7.midRange(Mt?[Ke.x0,Ke.x1]:Ev.extractPathCoords(Ke.path,Kb.paramIsX))),Me=me(l?Ke.yanchor:y7.midRange(Mt?[Ke.y0,Ke.y1]:Ev.extractPathCoords(Ke.path,Kb.paramIsY)));if(De=Ev.roundPositionForSharpStrokeRendering(De,$e),Me=Ev.roundPositionForSharpStrokeRendering(Me,$e),u&&l){var oe="M"+(De-1-$e)+","+(Me-1-$e)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";kt.attr("d",oe)}else if(u){var Ne="M"+(De-1-$e)+","+(Me-9-$e)+"v18 h2 v-18 Z";kt.attr("d",Ne)}else{var vt="M"+(De-9-$e)+","+(Me-1-$e)+"h18 v2 h-18 Z";kt.attr("d",vt)}}}function bt(it){it.selectAll(".visual-cue").remove()}function Ot(it,Ke,zt){var Mt=Ke.xref,kt=Ke.yref,$e=Yb.getFromId(zt,Mt),De=Yb.getFromId(zt,kt),Me="";Mt!=="paper"&&!$e.autorange&&(Me+=Mt),kt!=="paper"&&!De.autorange&&(Me+=kt),hz.setClipUrl(it,Me?"clip"+zt._fullLayout._uid+Me:null,zt)}}function sfe(e,t,r){return e.replace(Kb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Kb.paramIsX[a],s=Kb.paramIsY[a],u=Kb.numParams[a],l=n.slice(1).replace(Kb.paramRE,function(f){return i>=u||(o[i]?f=t(f):s[i]&&(f=r(f)),i++),f});return a+l})}function Hct(e,t){if(dz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){lfe(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=lfe,_7(e)}}}function lfe(e){if(dz(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(ffe(e),delete e._fullLayout._activeShapeIndex,_7(e))}}function Wct(e){if(dz(e)){ffe(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=$l(),pfe=Cc(),vfe=jc(),Of=QP(),jct=pz().eraseActiveShape,vz=ei(),Tf=vz._,Bf=wfe.exports={};Bf.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Tf(e,"Download plot as a PNG"):Tf(e,"Download plot")},icon:Of.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};vz.notifier(Tf(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){vz.notifier(Tf(e,"Snapshot succeeded")+" - "+n,"long",e)}).catch(function(){vz.notifier(Tf(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Bf.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Tf(e,"Edit in Chart Studio")},icon:Of.disk,click:function(e){pfe.sendDataToCloud(e)}};Bf.editInChartStudio={name:"editInChartStudio",title:function(e){return Tf(e,"Edit in Chart Studio")},icon:Of.pencil,click:function(e){pfe.sendDataToCloud(e)}};Bf.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Tf(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Of.zoombox,click:qp};Bf.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Tf(e,"Pan")},attr:"dragmode",val:"pan",icon:Of.pan,click:qp};Bf.select2d={name:"select2d",_cat:"select",title:function(e){return Tf(e,"Box Select")},attr:"dragmode",val:"select",icon:Of.selectbox,click:qp};Bf.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Tf(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Of.lasso,click:qp};Bf.drawclosedpath={name:"drawclosedpath",title:function(e){return Tf(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Of.drawclosedpath,click:qp};Bf.drawopenpath={name:"drawopenpath",title:function(e){return Tf(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Of.drawopenpath,click:qp};Bf.drawline={name:"drawline",title:function(e){return Tf(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Of.drawline,click:qp};Bf.drawrect={name:"drawrect",title:function(e){return Tf(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Of.drawrect,click:qp};Bf.drawcircle={name:"drawcircle",title:function(e){return Tf(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Of.drawcircle,click:qp};Bf.eraseshape={name:"eraseshape",title:function(e){return Tf(e,"Erase active shape")},icon:Of.eraseshape,click:jct};Bf.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Tf(e,"Zoom in")},attr:"zoom",val:"in",icon:Of.zoom_plus,click:qp};Bf.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Tf(e,"Zoom out")},attr:"zoom",val:"out",icon:Of.zoom_minus,click:qp};Bf.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Tf(e,"Autoscale")},attr:"zoom",val:"auto",icon:Of.autoscale,click:qp};Bf.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Tf(e,"Reset axes")},attr:"zoom",val:"reset",icon:Of.home,click:qp};Bf.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Tf(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Of.tooltip_basic,gravity:"ne",click:qp};Bf.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Tf(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Of.tooltip_compare,gravity:"ne",click:qp};function qp(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=vfe.list(e,null,!0),u=a._cartesianSpikesEnabled,l,f;if(n==="zoom"){var c=i==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f{"use strict";var Afe=w7(),Yct=Object.keys(Afe),Tfe=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Sfe=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Tfe),aA=[],Kct=function(e){if(Sfe.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();aA.indexOf(t)===-1&&aA.push(t),aA.indexOf(r)===-1&&aA.push(r)}};Yct.forEach(function(e){Kct(Afe[e])});aA.sort();Mfe.exports={DRAW_MODES:Tfe,backButtons:Sfe,foreButtons:aA}});var T7=we((Isr,Efe)=>{"use strict";var zsr=A7();Efe.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Cfe=we((Dsr,kfe)=>{"use strict";var Jct=ei(),M5=jl(),$ct=Lf(),Qct=T7();kfe.exports=function(t,r){var n=t.modebar||{},i=$ct.newContainer(r,"modebar");function a(s,u){return Jct.coerce(n,i,Qct,s,u)}a("orientation"),a("bgcolor",M5.addOpacity(r.paper_bgcolor,.5));var o=M5.contrast(M5.rgb(r.modebar.bgcolor));a("color",M5.addOpacity(o,.3)),a("activecolor",M5.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Ife=we((Rsr,zfe)=>{"use strict";var S7=Jl(),eht=ku(),yz=ei(),Lfe=QP(),tht=yL().version,rht=new DOMParser;function Pfe(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Cy=Pfe.prototype;Cy.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),u=this.hasLogo!==r.displaylogo,l=this.locale!==r.locale;if(this.locale=r.locale,(s||u||l)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),yz.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Cy.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Cy.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Cy.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&S7.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Lfe.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Cy.createIcon=function(e){var t=eht(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=rht.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Cy.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=S7.select(n),u=function(c,h){var d=t.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(a===r){var l=!s.classed("active");s.classed("active",l),u(n,l)}}else{var f=a===null?a:yz.nestedProperty(t,a).get();s.classed("active",f===i),u(n,f===i)}})};Cy.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var aht=jc(),Dfe=lc(),M7=$l(),oht=iv().isUnifiedHover,sht=Ife(),gz=w7(),lht=A7().DRAW_MODES,uht=ei().extendDeep;Rfe.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=vht(a):!n.displayModeBar&&n.watermark?o=[]:o=fht(t),i?i.update(t,o):r._modeBar=sht(t,o)};function fht(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,H){if(typeof H=="string"){if(H.toLowerCase()===N.toLowerCase())return!0}else{var re=H.name,ae=H._cat||H.name;if(re===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var H=0;H1?(P=["toggleHover"],E=["resetViews"]):c?(m=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],E=["resetGeo"]):f?(P=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(m=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],E=["resetViewMapbox"]):b?(m=["zoomInMap","zoomOutMap"],P=["toggleHover"],E=["resetViewMap"]):h?P=["hoverClosestPie"]:M?(P=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):P=["toggleHover"],l&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(dht(r)||L)&&(P=[]),l&&!A&&(m=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),f?O=["zoom3d","pan3d","orbitRotation","tableRotation"]:l&&!A||p?O=["zoom2d","pan2d"]:y||b||c?O=["pan2d"]:v&&(O=["zoom2d"]),hht(r)&&O.push("select2d","lasso2d");var F=[],U=function(N){F.indexOf(N)===-1&&P.indexOf(N)!==-1&&F.push(N)};if(Array.isArray(s)){for(var G=[],j=0;j{"use strict";Ofe.exports={moduleType:"component",name:"modebar",layoutAttributes:T7(),supplyLayoutDefaults:Cfe(),manage:Ffe()}});var k7=we((Bsr,Bfe)=>{"use strict";var mht=Nh().FROM_BL;Bfe.exports=function(t,r,n){n===void 0&&(n=mht[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var $b=we(E5=>{"use strict";var Jb=ei(),C7=Mm(),Lm=jc().id2name,yht=Rd(),qfe=k7(),ght=xy(),_ht=rf().ALMOST_EQUAL,xht=Nh().FROM_BL;E5.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,u,l,f,c,h,d,p;for(s=0;sa?r.slice(a):n.slice(i))+o}function wht(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;o_ht*p&&!C)){for(a=0;aO&&reP&&(P=re);var me=(P-m)/(2*E);c/=me,m=u.l2r(m),P=u.l2r(P),u.range=u._input.range=x{"use strict";var xz=Jl(),Np=$l(),Jv=Cc(),M0=ei(),z7=Wf(),I7=w5(),k5=jl(),oA=Mu(),Gfe=Ob(),Zfe=E7(),C5=wu(),Rg=Nh(),Yfe=$b(),Aht=Yfe.enforce,Tht=Yfe.clean,Hfe=Mm().doAutoRange,Kfe="start",Sht="middle",Jfe="end",Mht=qh().zindexSeparator;md.layoutStyles=function(e){return M0.syncOrAsync([Jv.doAutoMargin,kht],e)};function Eht(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function kht(e){var t=e._fullLayout,r=t._size,n=r.p,i=C5.list(e,"",!0),a,o,s,u,l,f;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(oA.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),md.drawMainTitle(e),Zfe.manage(e),!t._has("cartesian"))return Jv.previousPromises(e);function c(Ie,ge,Be){var ce=Ie._lw/2;if(Ie._id.charAt(0)==="x"){if(ge){if(Be==="top")return ge._offset-n-ce}else return r.t+r.h*(1-(Ie.position||0))+ce%1;return ge._offset+ge._length+n+ce}if(ge){if(Be==="right")return ge._offset+ge._length+n+ce}else return r.l+r.w*(Ie.position||0)+ce%1;return ge._offset-n-ce}for(a=0;a0){zht(e,a,l,u),s.attr({x:o,y:a,"text-anchor":n,dy:Xfe(t.yanchor)}).call(z7.positionText,o,a);var f=(t.text.match(z7.BR_TAG_ALL)||[]).length;if(f){var c=Rg.LINE_SPACING*f+Rg.MID_SHIFT;t.y===0&&(c=-c),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",b)})}var h=xz.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,y=p+Gfe.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y,"text-anchor":n,dy:Xfe(t.yanchor)}).call(z7.positionText,o,y)}}}};function Cht(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=Lht(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function zht(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},u={};a.yref==="paper"&&Cht(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(u[o]=r,e._fullLayout._reservedMargin[i]=u),Jv.allowAutoMargin(e,i),Jv.autoMargin(e,i,s)}function Iht(e,t){var r=e.title,n=e._size,i=0;switch(t===Kfe?i=r.pad.l:t===Jfe&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function Dht(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Rg.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Xfe(e){return e==="top"?Rg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Rg.MID_SHIFT+"em"}function Rht(e){var t=e.title,r=Sht;return M0.isRightAnchor(t)?r=Jfe:M0.isLeftAnchor(t)&&(r=Kfe),r}function Fht(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Rg.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Rg.MID_SHIFT+"em"),r}md.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var Oht=y_().readPaths,Bht=uz(),$fe=o_().clearOutlineControllers,D7=jl(),Qfe=Mu(),qht=Lf().arrayEditor,ece=x_(),Nht=ece.getPathString;rce.exports={draw:bz,drawOne:tce,activateLastSelection:Ght};function bz(e){var t=e._fullLayout;$fe(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var v=o.append("path").attr(u).style("opacity",b?.1:l).call(D7.stroke,c).call(D7.fill,f).call(Qfe.dashLine,b?"solid":d,b?4+h:h);if(Uht(v,e,n),p){var C=qht(e.layout,"selections",n);v.style({cursor:"move"});var M={element:v.node(),plotinfo:i,gd:e,editHelpers:C,isActiveSelection:!0},A=Oht(s,e);Bht(A,v,M)}else v.style("pointer-events",b?"all":"none");y[b]=v}var L=y[0],x=y[1];x.node().addEventListener("click",function(){return Vht(e,L)})}}function Uht(e,t,r){var n=r.xref+r.yref;Qfe.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function Vht(e,t){if(wz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){R7(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=R7,bz(e)}}}function Ght(e){if(wz(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=R7,bz(e)}}function R7(e){if(wz(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&($fe(e),delete e._fullLayout._activeSelectionIndex,bz(e))}}});var nce=we((Vsr,ice)=>{function Hht(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}ice.exports=Hht});var oce=we((Gsr,ace)=>{function Wht(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],u=i[1],l=r[0],f=r[1];return(s-a)*(f-o)-(u-o)*(l-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],u=i[1]-n[1],l=s*o+a*u;if(l-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-f)*(a-c)/(s-c)+f-i>e&&(u=!u),o=f,s=c}return u}};return t}ace.exports=Wht});var lce=we((Hsr,sce)=>{var jht={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};sce.exports=jht});var fce=we((Wsr,uce)=>{var P5=lce();function Xht(e,t,r){function n(p,y){return{id:r?r.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function i(p,y,b){return{id:r?r.segmentId():-1,start:p,end:y,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=P5.create();function o(p,y,b,v,C,M){var A=t.pointsCompare(y,C);return A!==0?A:t.pointsSame(b,M)?0:p!==v?p?1:-1:t.pointAboveOrOnLine(b,v?C:M,v?M:C)?1:-1}function s(p,y){a.insertBefore(p,function(b){var v=o(p.isStart,p.pt,y,b.isStart,b.pt,b.other.pt);return v<0})}function u(p,y){var b=P5.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return s(b,p.end),b}function l(p,y,b){var v=P5.node({isStart:!1,pt:y.end,seg:y,primary:b,other:p,status:null});p.other=v,s(v,p.pt)}function f(p,y){var b=u(p,y);return l(b,p,y),b}function c(p,y){r&&r.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,s(p.other,p.pt)}function h(p,y){var b=i(y,p.seg.end,p.seg);return c(p,y),f(b,p.primary)}function d(p,y){var b=P5.create();function v(G,j){var W=G.seg.start,N=G.seg.end,H=j.seg.start,re=j.seg.end;return t.pointsCollinear(W,H,re)?t.pointsCollinear(N,H,re)||t.pointAboveOrOnLine(N,H,re)?1:-1:t.pointAboveOrOnLine(W,H,re)?1:-1}function C(G){return b.findTransition(function(j){var W=v(G,j.ev);return W>0})}function M(G,j){var W=G.seg,N=j.seg,H=W.start,re=W.end,ae=N.start,me=N.end;r&&r.checkIntersection(W,N);var Le=t.linesIntersect(H,re,ae,me);if(Le===!1){if(!t.pointsCollinear(H,re,ae)||t.pointsSame(H,me)||t.pointsSame(re,ae))return!1;var Ce=t.pointsSame(H,ae),de=t.pointsSame(re,me);if(Ce&&de)return j;var te=!Ce&&t.pointBetween(H,ae,me),Se=!de&&t.pointBetween(re,ae,me);if(Ce)return Se?h(j,re):h(G,me),j;te&&(de||(Se?h(j,re):h(G,me)),h(j,H))}else Le.alongA===0&&(Le.alongB===-1?h(G,ae):Le.alongB===0?h(G,Le.pt):Le.alongB===1&&h(G,me)),Le.alongB===0&&(Le.alongA===-1?h(j,H):Le.alongA===0?h(j,Le.pt):Le.alongA===1&&h(j,re));return!1}for(var A=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(k){var j=M(L,k);if(j)return j}return S?M(L,S):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var x=C(L),k=x.before?x.before.ev:null,S=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,k?k.seg:!1,S?S.seg:!1);var m=G();if(m){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(m.seg.myFill.above=!m.seg.myFill.above)}else m.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(m.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,S?L.seg.myFill.below=S.seg.myFill.above:L.seg.myFill.below=p,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var E;S?L.primary===S.primary?E=S.seg.otherFill.above:E=S.seg.myFill.above:E=L.primary?y:p,L.seg.otherFill={above:E,below:E}}r&&r.status(L.seg,k?k.seg:!1,S?S.seg:!1),L.other.status=x.insert(P5.node({ev:L}))}else{var O=L.status;if(O===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(O.prev)&&b.exists(O.next)&&M(O.prev.ev,O.next.ev),r&&r.statusRemove(O.ev.seg),O.remove(),!L.primary){var F=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=F}A.push(L.seg)}a.getHead().remove()}return r&&r.done(),A}return e?{addRegion:function(p){for(var y,b=p[p.length-1],v=0;v{function Zht(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var u={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(U,G,j){return f.index=U,f.matches_head=G,f.matches_pt1=j,f===u?(f=l,!1):(f=null,!0)}for(var h=0;h{function z5(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var Yht={union:function(e,t){return z5(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return z5(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return z5(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return z5(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return z5(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};dce.exports=Yht});var mce=we((Zsr,vce)=>{var Kht={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(l){var f=l.slice(0,l.length-1);return e.segments({inverted:!1,regions:[f]})}for(var s=o(a[0]),u=1;u{var Jht=nce(),$ht=oce(),yce=fce(),Qht=hce(),I5=pce(),gce=mce(),E0=!1,D5=$ht(),kv;kv={buildLog:function(e){return e===!0?E0=Jht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return D5.epsilon(e)},segments:function(e){var t=yce(!0,D5,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=yce(!1,D5,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:I5.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:I5.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:I5.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:I5.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:I5.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Qht(e.segments,D5,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return gce.toPolygon(kv,e)},polygonToGeoJSON:function(e){return gce.fromPolygon(kv,D5,e)},union:function(e,t){return R5(e,t,kv.selectUnion)},intersect:function(e,t){return R5(e,t,kv.selectIntersect)},difference:function(e,t){return R5(e,t,kv.selectDifference)},differenceRev:function(e,t){return R5(e,t,kv.selectDifferenceRev)},xor:function(e,t){return R5(e,t,kv.selectXor)}};function R5(e,t,r){var n=kv.segments(e),i=kv.segments(t),a=kv.combine(n,i),o=r(a);return kv.polygon(o)}typeof window=="object"&&(window.PolyBool=kv);_ce.exports=kv});var wce=we((Ksr,bce)=>{bce.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var u=i-n,l=0,f=u-1;lo!=p>o&&a<(d-c)*(o-h)/(p-h)+c;y&&(s=!s)}return s}});var F5=we((Jsr,Ace)=>{"use strict";var O7=zL().dot,Az=rf().BADNUM,Tz=Ace.exports={};Tz.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||v===Az||vo||y&&l(p))}function c(p,y){var b=p[0],v=p[1];if(b===Az||bi||v===Az||vo)return!1;var C=r.length,M=r[0][0],A=r[0][1],L=0,x,k,S,m,P;for(x=1;xMath.max(k,M)||v>Math.max(S,A)))if(vs||Math.abs(O7(c,l))>i)return!0;return!1};Tz.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(u){t.push(u);var l=n.length,f=i;n.splice(a+1);for(var c=f+1;c1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var Sce=we(($sr,Tce)=>{"use strict";Tce.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Xce=we((Qsr,jce)=>{"use strict";var Mce=xce(),edt=wce(),q5=$l(),tdt=Mu().dashStyle,O5=jl(),rdt=Vc(),idt=iv().makeEventData,H5=Cm(),ndt=H5.freeMode,adt=H5.rectMode,N5=H5.drawMode,U7=H5.openMode,V7=H5.selectMode,Ece=x_(),kce=T5(),Ice=uz(),Dce=o_().clearOutline,Rce=y_(),B7=Rce.handleEllipse,odt=Rce.readPaths,sdt=oz().newShapes,ldt=h7(),udt=F7().activateLastSelection,Mz=ei(),fdt=Mz.sorterAsc,Fce=F5(),B5=WL(),k0=jc().getFromId,cdt=w5(),hdt=L5().redrawReglTraces,Ez=Sce(),Ly=Ez.MINSELECT,ddt=Fce.filter,G7=Fce.tester,H7=rz(),Cce=H7.p2r,pdt=H7.axValue,vdt=H7.getTransform;function W7(e){return e.subplot!==void 0}function mdt(e,t,r,n,i){var a=!W7(n),o=ndt(i),s=adt(i),u=U7(i),l=N5(i),f=V7(i),c=i==="drawline",h=i==="drawcircle",d=c||h,p=n.gd,y=p._fullLayout,b=f&&y.newselection.mode==="immediate"&&a,v=y._zoomlayer,C=n.element.getBoundingClientRect(),M=n.plotinfo,A=vdt(M),L=t-C.left,x=r-C.top;y._calcInverseTransform(p);var k=Mz.apply3DTransform(y._invTransform)(L,x);L=k[0],x=k[1];var S=y._invScaleX,m=y._invScaleY,P=L,E=x,O="M"+L+","+x,F=n.xaxes[0],U=n.yaxes[0],G=F._length,j=U._length,W=e.altKey&&!(N5(i)&&u),N,H,re,ae,me,Le,Ce;Bce(e,p,n),o&&(N=ddt([[L,x]],Ez.BENDPX));var de=v.selectAll("path.select-outline-"+M.id).data([1]),te=l?y.newshape:y.newselection;l&&(n.hasText=te.label.text||te.label.texttemplate);var Se=l&&!u?te.fillcolor:"rgba(0,0,0,0)",Te=te.line.color||(a?O5.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");de.enter().append("path").attr("class","select-outline select-outline-"+M.id).style({opacity:l?te.opacity/2:1,"stroke-dasharray":tdt(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(O5.stroke,Te).call(O5.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!l).attr("transform",A).attr("d",O+"Z");var be=v.append("path").attr("class","zoombox-corners").style({fill:O5.background,stroke:O5.defaultLine,"stroke-width":1}).attr("transform",A).attr("d","M0,0Z");if(l&&n.hasText){var He=v.select(".label-temp");He.empty()&&(He=v.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ie=y._uid+Ez.SELECTID,ge=[],Be=kz(p,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var je=F._id,rt=U._id;Gce(p,je,rt,Be);for(var bt=(p.layout||{}).selections||[],Ot=[],it=!1,Ke=0;Ke=0){p._fullLayout._deactivateShape(p);return}if(!l){var bt=y.clickmode;B5.done(Ie).then(function(){if(B5.clear(Ie),je===2){for(de.remove(),me=0;me-1&&Oce(rt,p,n.xaxes,n.yaxes,n.subplot,n,de),bt==="event"&&G5(p,void 0);rdt.click(p,rt,M.id)}).catch(Mz.error)}},n.doneFn=function(){be.remove(),B5.done(Ie).then(function(){B5.clear(Ie),!b&&ae&&n.selectionDefs&&(ae.subtract=W,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||l)&&U5(n,b),n.doneFnCompleted&&n.doneFnCompleted(ge),f&&G5(p,Ce)}).catch(Mz.error)}}function Oce(e,t,r,n,i,a,o){var s=t._hoverdata,u=t._fullLayout,l=u.clickmode,f=l.indexOf("event")>-1,c=[],h,d,p,y,b,v,C,M,A,L;if(bdt(s)){Bce(e,t,a),h=kz(t,r,n,i);var x=wdt(s,h),k=x.pointNumbers.length>0;if(k?Adt(h,x):Tdt(h)&&(C=Pce(x))){for(o&&o.remove(),L=0;L=0}function xdt(e){return e._fullLayout._activeSelectionIndex>=0}function U5(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;_dt(i)&&i._fullLayout._deactivateShape(i),xdt(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=N5(r),u=V7(r);if(s||u){var l=o.selectAll(".select-outline-"+n.id);if(l&&i._fullLayout._outlining){var f;s&&(f=sdt(l,e)),f&&q5.call("_guiRelayout",i,{shapes:f});var c;u&&!W7(e)&&(c=ldt(l,e)),c&&(i._fullLayout._noEmitSelectedAtStart=!0,q5.call("_guiRelayout",i,{selections:c}).then(function(){t&&udt(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function Lce(e){return e._id}function kz(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(Lce),o=r.map(Lce),s,u,l;for(l=0;l0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Adt(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function V5(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var je=zce(e,!0);if(je.length){var rt=je[0].xref,bt=je[0].yref;if(rt&&bt){var Ot=Hce(je),it=Wce([k0(e,rt,"x"),k0(e,bt,"y")]);it(ge,Ot)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&G5(e,ge),h._reselect=!1}if(!o&&h._deselect){var Ke=h._deselect;s=Ke.xref,u=Ke.yref,Edt(s,u,f)||Gce(e,s,u,n),ce&&(ge.points.length?G5(e,ge):Z7(e)),h._deselect=!1}return{eventData:ge,selectionTesters:r}}function Mdt(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Zce.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var W5=we((tlr,Yce)=>{"use strict";Yce.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Qb=we((ilr,$ce)=>{"use strict";var Kce=Y7(),Jce=gc(),Cz=qh(),zdt=Lf().templatedArray,rlr=W5();$ce.exports=zdt("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Jce({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Kce.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Kce.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Cz.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Cz.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Cz.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Cz.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Jce({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Py=we((nlr,Qce)=>{"use strict";Qce.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Pm=we((alr,ehe)=>{"use strict";ehe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Zc=we((olr,lhe)=>{"use strict";var the=Xc().axisHoverFormat,{hovertemplateAttrs:Idt,texttemplateAttrs:Ddt,templatefallbackAttrs:rhe}=Ff(),ihe=nc(),Rdt=gc(),nhe=Id().dash,Fdt=Id().pattern,Odt=Mu(),Bdt=Py(),j5=Su().extendFlat,qdt=Pm();function ahe(e){return{valType:"any",dflt:0,editType:"calc"}}function ohe(e){return{valType:"any",editType:"calc"}}function she(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}lhe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:ahe("x"),yperiod:ahe("y"),xperiod0:ohe("x0"),yperiod0:ohe("y0"),xperiodalignment:she("x"),yperiodalignment:she("y"),xhoverformat:the("x"),yhoverformat:the("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Ddt(),texttemplatefallback:rhe({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Idt({},{keys:Bdt.eventDataKeys}),hovertemplatefallback:rhe(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:j5({},nhe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:qdt(!0),fillgradient:j5({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Fdt,marker:j5({symbol:{valType:"enumerated",values:Odt.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:j5({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:j5({},nhe,{arrayOk:!0}),editType:"calc"},ihe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},ihe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Rdt({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var K7=we((llr,che)=>{"use strict";var uhe=Qb(),fhe=Zc().line,Ndt=Id().dash,Lz=Su().extendFlat,Udt=Sc().overrideAll,Vdt=Lf().templatedArray,slr=W5();che.exports=Udt(Vdt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Lz({},uhe.xref,{}),yref:Lz({},uhe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:fhe.color,width:Lz({},fhe.width,{min:1,dflt:1}),dash:Lz({},Ndt,{dflt:"dot"})}}),"arraydraw","from-root")});var vhe=we((ulr,phe)=>{"use strict";var hhe=ei(),Pz=wu(),Gdt=$d(),Hdt=K7(),dhe=x_();phe.exports=function(t,r){Gdt(t,r,{name:"selections",handleItemDefaults:Wdt});for(var n=r.selections,i=0;i{"use strict";mhe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var X5=we((clr,xhe)=>{"use strict";var jdt=$l(),ghe=ei(),_he=jc();xhe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=jdt.subplotsRegistry.cartesian,s=o.idRegex,u=i._subplots,l=u.xaxis,f=u.yaxis,c=u.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var bhe=F7(),Z5=Xce();whe.exports={moduleType:"component",name:"selections",layoutAttributes:K7(),supplyLayoutDefaults:vhe(),supplyDrawNewSelectionDefaults:yhe(),includeBasePlot:X5()("selections"),draw:bhe.draw,drawOne:bhe.drawOne,reselect:Z5.reselect,prepSelect:Z5.prepSelect,clearOutline:Z5.clearOutline,clearSelectionsCache:Z5.clearSelectionsCache,selectOnClick:Z5.selectOnClick}});var iU=we((dlr,Vhe)=>{"use strict";var tU=Jl(),C0=ei(),Ahe=C0.numberFormat,Xdt=hd(),Zdt=VP(),zz=$l(),zhe=C0.strTranslate,Ydt=Wf(),The=jl(),w_=Mu(),Kdt=Vc(),She=wu(),Jdt=Em(),$dt=xp(),Ihe=Cm(),Iz=Ihe.selectingOrDrawing,Qdt=Ihe.freeMode,ept=Nh().FROM_TL,tpt=w5(),rpt=L5().redrawReglTraces,ipt=Cc(),$7=jc().getFromId,npt=oh().prepSelect,apt=oh().clearOutline,opt=oh().selectOnClick,J7=k7(),rU=qh(),Mhe=rU.MINDRAG,av=rU.MINZOOM,Ehe=!0;function spt(e,t,r,n,i,a,o,s){var u=e._fullLayout._zoomlayer,l=o+s==="nsew",f=(o+s).length===1,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W;r+=t.yaxis._shift;function N(){if(c=t.xaxis,h=t.yaxis,M=c._length,A=h._length,v=c._offset,C=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var Ve=t.overlays,et=0;et=0){tt._fullLayout._deactivateShape(tt);return}var Lt=tt._fullLayout.clickmode;if(eU(tt),Ve===2&&!f&&Me(),l)Lt.indexOf("select")>-1&&opt(et,tt,y,b,t.id,ae),Lt.indexOf("event")>-1&&Kdt.click(tt,et,t.id);else if(Ve===1&&f){var jt=o?h:c,or=o==="s"||s==="w"?0:1,yr=jt._name+".range["+or+"]",vr=lpt(jt,or),Vt="left",Pe="middle";if(jt.fixedrange)return;o?(Pe=o==="n"?"top":"bottom",jt.side==="right"&&(Vt="right")):s==="e"&&(Vt="right"),tt._context.showAxisRangeEntryBoxes&&tU.select(re).call(Ydt.makeEditable,{gd:tt,immediate:!0,background:tt._fullLayout.paper_bgcolor,text:String(vr),fill:jt.tickfont?jt.tickfont.color:"#444",horizontalAlign:Vt,verticalAlign:Pe}).on("edit",function(xe){var Oe=jt.d2r(xe);Oe!==void 0&&zz.call("_guiRelayout",tt,yr,Oe)})}}$dt.init(ae);var Ce,de,te,Se,Te,be,He,Ie,ge,Be;function ce(Ve,et,tt){var Lt=re.getBoundingClientRect();Ce=et-Lt.left,de=tt-Lt.top,e._fullLayout._calcInverseTransform(e);var jt=C0.apply3DTransform(e._fullLayout._invTransform)(Ce,de);Ce=jt[0],de=jt[1],te={l:Ce,r:Ce,w:0,t:de,b:de,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:Xdt(e._fullLayout.plot_bgcolor).getLuminance(),Te="M0,0H"+M+"V"+A+"H0V0",be=!1,He="xy",Be=!1,Ie=Fhe(u,Se,v,C,Te),ge=Ohe(u,v,C)}function je(Ve,et){if(e._transitioningWithDuration)return!1;var tt=Math.max(0,Math.min(M,j*Ve+Ce)),Lt=Math.max(0,Math.min(A,W*et+de)),jt=Math.abs(tt-Ce),or=Math.abs(Lt-de);te.l=Math.min(Ce,tt),te.r=Math.max(Ce,tt),te.t=Math.min(de,Lt),te.b=Math.max(de,Lt);function yr(){He="",te.r=te.l,te.t=te.b,ge.attr("d","M0,0Z")}if(L.isSubplotConstrained)jt>av||or>av?(He="xy",jt/M>or/A?(or=jt*A/M,de>Lt?te.t=de-or:te.b=de+or):(jt=or*M/A,Ce>tt?te.l=Ce-jt:te.r=Ce+jt),ge.attr("d",Dz(te))):yr();else if(x.isSubplotConstrained)if(jt>av||or>av){He="xy";var vr=Math.min(te.l/M,(A-te.b)/A),Vt=Math.max(te.r/M,(A-te.t)/A);te.l=vr*M,te.r=Vt*M,te.b=(1-vr)*A,te.t=(1-Vt)*A,ge.attr("d",Dz(te))}else yr();else!S||or0){var xe;if(x.isSubplotConstrained||!k&&S.length===1){for(xe=0;xe1&&(yr.maxallowed!==void 0&&P===(yr.range[0]1&&(vr.maxallowed!==void 0&&E===(vr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function fpt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Fhe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",zhe(r,n)).attr("d",i+"Z")}function Ohe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:The.background,stroke:The.defaultLine,"stroke-width":1,opacity:0}).attr("transform",zhe(t,r)).attr("d","M0,0Z")}function Bhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),qhe(e,t,i,a)}function qhe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function eU(e){tU.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Nhe(e){Ehe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long",e),Ehe=!1)}function cpt(e,t){return"M"+(e.l-.5)+","+(t-av-.5)+"h-3v"+(2*av+1)+"h3ZM"+(e.r+.5)+","+(t-av-.5)+"h3v"+(2*av+1)+"h-3Z"}function hpt(e,t){return"M"+(t-av-.5)+","+(e.t-.5)+"v-3h"+(2*av+1)+"v3ZM"+(t-av-.5)+","+(e.b+.5)+"v3h"+(2*av+1)+"v-3Z"}function Dz(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,av)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function Lhe(e,t,r,n,i){for(var a=!1,o={},s={},u,l,f,c,h=(i||{}).xaHash,d=(i||{}).yaHash,p=0;p{"use strict";var dpt=Jl(),Rz=Vc(),ppt=xp(),vpt=Em(),zm=iU().makeDragBox,yd=qh().DRAGGERSIZE;Fz.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){dpt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),u=o.split("y");return s[0]===u[0]?Number(s[1]||1)-Number(u[1]||1):Number(s[0]||1)-Number(u[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,u=o.yaxis;if(!o.mainplot){var l=zm(t,o,s._offset,u._offset,s._length,u._length,"ns","ew");l.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&Rz.hover(t,h,a)},Rz.hover(t,h,a),t._fullLayout._lasthover=l,t._fullLayout._hoversubplot=a},l.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,ppt.unhover(t,h))},t._context.showAxisDragHandles&&(zm(t,o,s._offset-yd,u._offset-yd,yd,yd,"n","w"),zm(t,o,s._offset+s._length,u._offset-yd,yd,yd,"n","e"),zm(t,o,s._offset-yd,u._offset+u._length,yd,yd,"s","w"),zm(t,o,s._offset+s._length,u._offset+u._length,yd,yd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var f=s._mainLinePosition;s.side==="top"&&(f-=yd),zm(t,o,s._offset+s._length*.1,f,s._length*.8,yd,"","ew"),zm(t,o,s._offset,f,s._length*.1,yd,"","w"),zm(t,o,s._offset+s._length*.9,f,s._length*.1,yd,"","e")}if(a===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=yd),zm(t,o,c,u._offset+u._length*.1,yd,u._length*.8,"ns",""),zm(t,o,c,u._offset+u._length*.9,yd,u._length*.1,"s",""),zm(t,o,c,u._offset,yd,u._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,Rz.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,Rz.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},Fz.updateFx(t)}};Fz.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";vpt(t._draggers,r)}});var Whe=we((vlr,Hhe)=>{"use strict";var Ghe=$l();Hhe.exports=function(t){for(var r=Ghe.layoutArrayContainers,n=Ghe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var mpt=Tg(),aU=PL(),Y5=K1(),ypt=VL().sorterAsc,oU=$l();K5.containerArrayMatch=Whe();var gpt=K5.isAddVal=function(t){return t==="add"||mpt(t)},jhe=K5.isRemoveVal=function(t){return t===null||t==="remove"};K5.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=oU.getComponentMethod(o,"supplyLayoutDefaults"),u=oU.getComponentMethod(o,"draw"),l=oU.getComponentMethod(o,"drawOne"),f=i.replot||i.recalc||s===aU||u===aU,c=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&Y5.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(jhe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return Y5.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(s(c,h),u(t),!0)}var p=Object.keys(n).map(Number).sort(ypt),y=r.get(),b=y||[],v=a(h,o).get(),C=[],M=-1,A=b.length,L,x,k,S,m,P,E,O;for(L=0;Lb.length-(E?0:1)){Y5.warn("index out of range",o,k);continue}if(P!==void 0)m.length>1&&Y5.warn("Insertion & removal are incompatible with edits to the same index.",o,k),jhe(P)?C.push(k):E?(P==="add"&&(P={}),b.splice(k,0,P),v&&v.splice(k,0,{})):Y5.warn("Unrecognized full object edit value",o,k,P),M===-1&&(M=k);else for(x=0;x=0;L--)b.splice(C[L],1),v&&v.splice(C[L],1);if(b.length?y||r.set(b):r.set(null),f)return!1;if(s(c,h),l!==aU){var F;if(M===-1)F=p;else{for(A=Math.max(b.length,A),F=[],L=0;L=M));L++)F.push(k);for(L=M;L{"use strict";var Jhe=ku(),$he=$l(),Up=ei(),J5=Cc(),Qhe=jc(),ede=jl(),$5=Qhe.cleanId,_pt=Qhe.getFromTrace,sU=$he.traceIs,xpt=["x","y","z"];L0.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Up.log("Clearing previous rejected promises from queue."),e._promises=[]};L0.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(J5.subplotsRegistry.cartesian||{}).attrRegex,i=(J5.subplotsRegistry.polar||{}).attrRegex,a=(J5.subplotsRegistry.ternary||{}).attrRegex,o=(J5.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),ede.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function sA(e,t,r=!1){var n=e[t],i=t.charAt(0);r&&Array.isArray(n)||n&&n!=="paper"&&(e[t]=$5(n,i,!0))}L0.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}L0.hasParent=function(e,t){for(var r=Khe(t);r;){if(r in e)return!0;r=Khe(r)}return!1};L0.clearAxisTypes=function(e,t,r){for(var n=0;n{let r=(...n)=>n.every(i=>Up.isPlainObject(i))||n.every(i=>Array.isArray(i));if([e,t].every(n=>Array.isArray(n))){if(e.length!==t.length)return!1;for(let n=0;nUp.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let i=e[n],a=t[n];if(i!==a&&!(r(i,a)?lU(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=lU});var Yz=we(zf=>{"use strict";var Nz=Jl(),Apt=ku(),Tpt=xq(),Hl=ei(),Lc=Hl.nestedProperty,cU=L3(),ov=Bne(),P0=$l(),Xz=I3(),Nu=Cc(),Vp=wu(),Spt=FN(),Mpt=Rd(),uU=Mu(),Ept=jl(),kpt=nU().initInteractions,Cpt=jv(),Lpt=oh().clearOutline,ode=xb().dfltConfig,Bz=Xhe(),Sh=tde(),ac=L5(),A_=Sc(),Ppt=qh().AX_NAME_PATTERN,fU=0,rde=5;function zpt(e,t,r,n){var i;if(e=Hl.getGraphDiv(e),cU.init(e),Hl.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=cU.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Hl.isPlotDiv(e)&&Hl.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return zf.addFrames(e,i)}lde(e,n),r||(r={}),Nz.select(e).classed("js-plotly-plot",!0),uU.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Sh.cleanData(t),u?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||u)&&(e.layout=Sh.cleanLayout(r)),Nu.supplyDefaults(e);var l=e._fullLayout,f=l._has("cartesian");l._replotting=!0,(u||l._shouldCreateBgLayer)&&(tvt(e),l._shouldCreateBgLayer&&delete l._shouldCreateBgLayer),uU.initGradients(e),uU.initPatterns(e),u&&Vp.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Nu.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function ude(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Vz(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Vz(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Opt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&f=0&&f0&&typeof S.parts[E]!="string";)E--;var O=S.parts[E],F=S.parts[E-1]+"."+O,U=S.parts.slice(0,E).join("."),G=Lc(e.layout,U).get(),j=Lc(n,U).get(),W=S.get();if(m!==void 0){v[k]=m,C[k]=O==="reverse"?m:Fg(W);var N=Xz.getLayoutValObject(n,S.parts);if(N&&N.impliedEdits&&m!==null)for(var H in N.impliedEdits)M(Hl.relativeAttr(k,H),N.impliedEdits[H]);if(["width","height"].indexOf(k)!==-1)if(m){M("autosize",null);var re=k==="height"?"width":"height";M(re,n[re])}else n[k]=e._initialAutoSize[k];else if(k==="autosize")M("width",m?null:n.width),M("height",m?null:n.height);else if(F.match(gde))x(F),Lc(n,U+"._inputRange").set(null);else if(F.match(_de)){x(F),Lc(n,U+"._inputRange").set(null);var ae=Lc(n,U).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else F.match(Upt)&&Lc(n,U+"._inputDomain").set(null);if(O==="type"){L=G;var me=j.type==="linear"&&m==="log",Le=j.type==="log"&&m==="linear";if(me||Le){if(!L||!L.range)M(U+".autorange",!0);else if(j.autorange)me&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Ce=L.range[0],de=L.range[1];me?(Ce<=0&&de<=0&&M(U+".autorange",!0),Ce<=0?Ce=de/1e6:de<=0&&(de=Ce/1e6),M(U+".range[0]",Math.log(Ce)/Math.LN10),M(U+".range[1]",Math.log(de)/Math.LN10)):(M(U+".range[0]",Math.pow(10,Ce)),M(U+".range[1]",Math.pow(10,de)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete n[S.parts[0]]._subplot.viewInitial["radialaxis.range"],P0.getComponentMethod("annotations","convertCoords")(e,j,m,M),P0.getComponentMethod("images","convertCoords")(e,j,m,M)}else M(U+".autorange",!0),M(U+".range",null);Lc(n,U+"._inputRange").set(null)}else if(O.match(Ppt)){var te=Lc(n,k).get(),Se=(m||{}).type;(!Se||Se==="-")&&(Se="linear"),P0.getComponentMethod("annotations","convertCoords")(e,te,Se,M),P0.getComponentMethod("images","convertCoords")(e,te,Se,M)}var Te=Bz.containerArrayMatch(k);if(Te){f=Te.array,c=Te.index;var be=Te.property,He=N||{editType:"calc"};c!==""&&be===""&&(Bz.isAddVal(m)?C[k]=null:Bz.isRemoveVal(m)?C[k]=(Lc(r,f).get()||[])[c]:Hl.warn("unrecognized full object value",t)),A_.update(b,He),l[f]||(l[f]={});var Ie=l[f][c];Ie||(Ie=l[f][c]={}),Ie[be]=m,delete t[k]}else O==="reverse"?(G.range?G.range.reverse():(M(U+".autorange",!0),G.range=[1,0]),j.autorange?b.calc=!0:b.plot=!0):(k==="dragmode"&&(m===!1&&W!==!1||m!==!1&&W===!1)||n._has("scatter-like")&&n._has("regl")&&k==="dragmode"&&(m==="lasso"||m==="select")&&!(W==="lasso"||W==="select")?b.plot=!0:N?A_.update(b,N):b.calc=!0,S.set(m))}}for(f in l){var ge=Bz.applyContainerArrayChanges(e,a(r,f),l[f],b,a);ge||(b.plot=!0)}for(var Be in A){L=Vp.getFromId(e,Be);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var je in ce)A[je]||(Vp.getFromId(e,je)._constraintShrinkable=!0)}}(bde(e)||t.height||t.width)&&(b.plot=!0);var rt=n.shapes;for(c=0;c1;)if(n.pop(),r=Lc(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function Hpt(e,t){for(var r=0;r[U,e._ev.listeners(U)]);a=zf.newPlot(e,t,r,n).then(()=>{for(let[U,G]of F)G.forEach(j=>e.on(U,j));return zf.react(e,t,r,n)})}else{e.data=t||[],Sh.cleanData(e.data),e.layout=r||{},Sh.cleanLayout(e.layout),jpt(e.data,e.layout,s,u),Nu.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,p=h.transition,y=Ypt(e,u,h,d,p),b=y.newDataRevision,v=Zpt(e,s,c,d,p,b);if(bde(e)&&(y.layoutReplot=!0),v.calc||y.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),M=0;M(f||e.emit("plotly_react",{config:n,data:t,layout:r}),e))}function Zpt(e,t,r,n,i,a){var o=t.length===r.length;if(!i&&!o)return{fullReplot:!0,calc:!0};var s=A_.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var u,l;function f(d){var p=Xz.getTraceValObject(l,d);return!l._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:s,immutable:n,transition:i,newDataRevision:a,gd:e},h={};for(u=0;u=i.length?i[0]:i[l]:i}function s(l){return Array.isArray(a)?l>=a.length?a[0]:a[l]:a}function u(l,f){var c=0;return function(){if(l&&++c===f)return l()}}return new Promise(function(l,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var O=n._frameQueue.pop();O.onInterrupt&&O.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(O){if(O.length!==0){for(var F=0;Fn._timeToNext&&p()};O()}var b=0;function v(O){return Array.isArray(i)?b>=i.length?O.transitionOpts=i[b]:O.transitionOpts=i[0]:O.transitionOpts=i,b++,O}var C,M,A=[],L=t==null,x=Array.isArray(t),k=!L&&!x&&Hl.isPlainObject(t);if(k)A.push({type:"object",data:v(Hl.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(C=0;C0&&PP)&&E.push(M);A=E}}A.length>0?h(A):(e.emit("plotly_animated"),l())})}function Jpt(e,t,r){if(e=Hl.getGraphDiv(e),t==null)return Promise.resolve();if(!Hl.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var l=s.length+t.length*2,f=[],c={};for(n=t.length-1;n>=0;n--)if(Hl.isPlainObject(t[n])){var h=t[n].name,d=(u[h]||c[h]||{}).name,p=t[n].name,y=u[d]||c[d];d&&p&&typeof p=="number"&&y&&fUS.index?-1:k.index=0;n--){if(i=f[n].frame,typeof i.name=="number"&&Hl.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;u[i.name="frame "+e._transitionData._counter++];);if(u[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Nu.modifyFrames,u=Nu.modifyFrames,l=[e,o],f=[e,a];return ov&&ov.add(e,s,l,u,f),Nu.modifyFrames(e,a)}function Qpt(e){e=Hl.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Nu.cleanPlot([],{},r,t),Nu.purge(e),cU.purge(e),t._container&&t._container.remove(),delete e._context,e}function evt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Hl.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Hl.inverseTransformMatrix(Hl.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function tvt(e){var t=Nz.select(e),r=e._fullLayout;if(r._calcInverseTransform=evt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};Nz.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Hl.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Cpt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}zf.animate=Kpt;zf.addFrames=Jpt;zf.deleteFrames=$pt;zf.addTraces=pde;zf.deleteTraces=vde;zf.extendTraces=hde;zf.moveTraces=hU;zf.prependTraces=dde;zf.newPlot=Fpt;zf._doPlot=zpt;zf.purge=Qpt;zf.react=Xpt;zf.redraw=Rpt;zf.relayout=Q5;zf.restyle=Gz;zf.setPlotConfig=Ipt;zf.update=Wz;zf._guiRelayout=dU(Q5);zf._guiRestyle=dU(Gz);zf._guiUpdate=dU(Wz);zf._storeDirectGUIEdit=Npt});var Og=we(zy=>{"use strict";var rvt=$l();zy.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};zy.getRedrawFunc=function(e){return function(){rvt.getComponentMethod("colorbar","draw")(e)}};zy.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};zy.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var wde=window.URL||window.webkitURL;zy.createObjectURL=function(e){return wde.createObjectURL(e)};zy.revokeObjectURL=function(e){return wde.revokeObjectURL(e)};zy.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=ivt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};zy.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function ivt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var vU=Jl(),xlr=ei(),nvt=Mu(),avt=jl(),blr=jv(),pU=/"/g,tE="TOBESTRIPPED",ovt=new RegExp('("'+tE+")|("+tE+'")',"g");function svt(e){var t=vU.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function lvt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}Ade.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,u=i.height,l;a.insert("rect",":first-child").call(nvt.setRect,0,0,s,u).call(avt.fill,i.paper_bgcolor);var f=i._basePlotModules||[];for(l=0;l{"use strict";var uvt=ei(),fvt=Sb().EventEmitter,rE=Og();function cvt(e){var t=e.emitter||new fvt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",u=e.canvas,l=e.scale||1,f=e.width||300,c=e.height||150,h=l*f,d=l*c,p=u.getContext("2d",{willReadFrequently:!0}),y=new a,b,v;s==="svg"||uvt.isSafari()?v=rE.encodeSVG(o):(b=rE.createBlob(o,"svg"),v=rE.createObjectURL(b)),u.width=h,u.height=d,y.onload=function(){var C;switch(b=null,rE.revokeObjectURL(v),s!=="svg"&&p.drawImage(y,0,0,h,d),s){case"jpeg":C=u.toDataURL("image/jpeg");break;case"png":C=u.toDataURL("image/png");break;case"webp":C=u.toDataURL("image/webp");break;case"svg":C=v;break;default:var M="Image format is not jpeg, png, svg or webp.";if(i(new Error(M)),!e.promise)return t.emit("error",M)}n(C),e.promise||t.emit("success",C)},y.onerror=function(C){if(b=null,rE.revokeObjectURL(v),i(C),!e.promise)return t.emit("error",C)},y.src=v});return e.promise?r:t}Tde.exports=cvt});var yU=we((Tlr,Ede)=>{"use strict";var Sde=ku(),Mde=Yz(),hvt=Cc(),Iy=ei(),iE=Og(),dvt=Kz(),pvt=Jz(),vvt=yL().version,mU={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function mvt(e,t){t=t||{};var r,n,i,a;Iy.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Iy.getGraphDiv(e),r=Iy.extendDeep([],e.data),n=Iy.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Iy.validate(t[x],mU[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Iy.join2(mU.format.values,", "," or ")+".");var s={};function u(x,k){return Iy.coerce(t,s,mU,x,k)}var l=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),p=u("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var b=Iy.extendFlat({},n);f?b.width=f:t.width===null&&Sde(a.width)&&(b.width=a.width),c?b.height=c:t.height===null&&Sde(a.height)&&(b.height=a.height);var v=Iy.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=iE.getRedrawFunc(y);function M(){return new Promise(function(x){setTimeout(x,iE.getDelay(y._fullLayout))})}function A(){return new Promise(function(x,k){var S=dvt(y,l,h),m=y._fullLayout.width,P=y._fullLayout.height;function E(){Mde.purge(y),document.body.removeChild(y)}if(l==="full-json"){var O=hvt.graphJson(y,!1,"keepdata","object",!0,!0);return O.version=vvt,O=JSON.stringify(O),E(),x(p?O:iE.encodeJSON(O))}if(E(),l==="svg")return x(p?S:iE.encodeSVG(S));var F=document.createElement("canvas");F.id=Iy.randstr(),pvt({format:l,width:m,height:P,scale:h,canvas:F,svg:S,promise:!0}).then(x).catch(k)})}function L(x){return p?x.replace(iE.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,k){Mde.newPlot(y,r,b,v).then(C).then(M).then(A).then(function(S){x(L(S))}).catch(function(S){k(S)})})}Ede.exports=mvt});var Lde=we((Slr,Cde)=>{"use strict";var z0=ei(),yvt=Cc(),gvt=I3(),_vt=xb().dfltConfig,Im=z0.isPlainObject,t2=Array.isArray,gU=z0.isArrayOrTypedArray;Cde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=gvt.get(),i=[],a={_context:z0.extendFlat({},_vt)},o,s;t2(t)?(a.data=z0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(gd("array","data"))),Im(r)?(a.layout=z0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(gd("object","layout"))),yvt.supplyDefaults(a);for(var u=a._fullData,l=o.length,f=0;fc.length&&n.push(gd("unused",i,l.concat(c.length)));var v=c.length,C=Array.isArray(b);C&&(v=Math.min(v,b.length));var M,A,L,x,k;if(h.dimensions===2)for(A=0;Ac[A].length&&n.push(gd("unused",i,l.concat(A,c[A].length)));var S=c[A].length;for(M=0;M<(C?Math.min(S,b[A].length):S);M++)L=C?b[A][M]:b,x=f[A][M],k=c[A][M],z0.validate(x,L)?k!==x&&k!==+x&&n.push(gd("dynamic",i,l.concat(A,M),x,k)):n.push(gd("value",i,l.concat(A,M),x))}else n.push(gd("array",i,l.concat(A),f[A]));else for(A=0;A{"use strict";var Mvt=ei(),Qz=Og();function Evt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var u,l;if(i)return u=Qz.createBlob(e,r),l=Qz.createObjectURL(u),n.href=l,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),Qz.revokeObjectURL(l),u=null,o(t);if(Mvt.isSafari()){var f=r==="svg"?",":";base64,";return Qz.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Pde.exports=Evt});var _U=we((klr,Dde)=>{"use strict";var Ide=ei(),kvt=yU(),Cvt=zde(),Elr=Og();function Lvt(e,t){var r;return Ide.isPlainObject(e)||(r=Ide.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=kvt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Cvt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}Dde.exports=Lvt});var qde=we(xU=>{"use strict";var Cv=ei(),Lv=Cv.isPlainObject,Rde=I3(),Fde=Cc(),Pvt=Gf(),Ode=Lf(),Bde=xb().dfltConfig;xU.makeTemplate=function(e){e=Cv.isPlainObject(e)?e:Cv.getGraphDiv(e),e=Cv.extendDeep({_context:Bde},{data:e.data,layout:e.layout}),Fde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var p={};nE(d,p,Ivt.bind(null,d));var y=Cv.coerce(d,{},Pvt,"type"),b=n.data[y];b||(b=n.data[y]=[]),b.push(p)}),nE(r,n.layout,zvt.bind(null,r)),delete n.layout.template;var i=r.template;if(Lv(i)){var a=i.layout,o,s,u,l,f,c;Lv(a)&&eI(a,n.layout);var h=i.data;if(Lv(h)){for(s in n.data)if(u=h[s],Array.isArray(u)){for(f=n.data[s],c=f.length,l=u.length,o=0;ov?o.push({code:"unused",traceType:d,templateCount:b,dataCount:v}):v>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:v})}}function C(M,A){for(var L in M)if(L.charAt(0)!=="_"){var x=M[L],k=I0(M,L,A);Lv(x)?(Array.isArray(M)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:k,templateitemname:x.templateitemname}),C(x,k)):Array.isArray(x)&&Dvt(x)&&C(x,k)}}if(C({data:u,layout:s},""),o.length)return o.map(Rvt)};function Dvt(e){for(var t=0;t{"use strict";var ad=Yz();Gc._doPlot=ad._doPlot;Gc.newPlot=ad.newPlot;Gc.restyle=ad.restyle;Gc.relayout=ad.relayout;Gc.redraw=ad.redraw;Gc.update=ad.update;Gc._guiRestyle=ad._guiRestyle;Gc._guiRelayout=ad._guiRelayout;Gc._guiUpdate=ad._guiUpdate;Gc._storeDirectGUIEdit=ad._storeDirectGUIEdit;Gc.react=ad.react;Gc.extendTraces=ad.extendTraces;Gc.prependTraces=ad.prependTraces;Gc.addTraces=ad.addTraces;Gc.deleteTraces=ad.deleteTraces;Gc.moveTraces=ad.moveTraces;Gc.purge=ad.purge;Gc.addFrames=ad.addFrames;Gc.deleteFrames=ad.deleteFrames;Gc.animate=ad.animate;Gc.setPlotConfig=ad.setPlotConfig;var Fvt=WM().getGraphDiv,Ovt=pz().eraseActiveShape;Gc.deleteActiveShape=function(e){return Ovt(Fvt(e))};Gc.toImage=yU();Gc.validate=Lde();Gc.downloadImage=_U();var Nde=qde();Gc.makeTemplate=Nde.makeTemplate;Gc.validateTemplate=Nde.validateTemplate});var lA=we((Plr,Vde)=>{"use strict";var bU=ei(),Bvt=$l();Vde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,u=Bvt.getComponentMethod("calendars","handleTraceDefaults");if(u(t,r,["x","y"],n),a){var l=bU.minRowLength(a);o?s=Math.min(l,bU.minRowLength(o)):(s=l,i("y0"),i("dy"))}else{if(!o)return 0;s=bU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Dm=we((zlr,Wde)=>{"use strict";var Gde=ei().dateTick0,qvt=rf(),Nvt=qvt.ONEWEEK;function Hde(e,t){return e%Nvt===0?Gde(t,1):Gde(t,0)}Wde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Hde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Hde(s,r.ycalendar)),i("yperiodalignment"))}}});var Zde=we((Ilr,Xde)=>{"use strict";var jde=["orientation","groupnorm","stackgaps"];Xde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,u=a[s];u||(u=a[s]={});var l=u[o],f=!1;l?l.traces.push(r):(l=u[o]={traceIndices:[],traces:[r]},f=!0);for(var c={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Yde=jl(),Kde=yp().hasColorscale,Jde=nd(),Uvt=lc();$de.exports=function(t,r,n,i,a,o={}){var s=Uvt.isBubble(t),u=(t.line||{}).color,l;if(u&&(n=u),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Kde(t,"marker")&&Jde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(u&&!Array.isArray(u)&&r.marker.color!==u?l=u:s?l=Yde.background:l=Yde.defaultLine,a("marker.line.color",l),Kde(t,"marker.line")&&Jde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0),o.noLineDash||a("marker.line.dash")),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var f=a("marker.gradient.type");f!=="none"&&a("marker.gradient.color")}}});var D0=we((Rlr,Qde)=>{"use strict";var Vvt=ei().isArrayOrTypedArray,Gvt=yp().hasColorscale,Hvt=nd();Qde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),Gvt(t,"line"))Hvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var u=(Vvt(s)?!1:s)||n;a("line.color",u)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var uA=we((Flr,epe)=>{"use strict";epe.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var R0=we((Olr,tpe)=>{"use strict";var Wvt=ei();tpe.exports=function(e,t,r,n,i){i=i||{},n("textposition"),Wvt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Rm=we((Blr,ipe)=>{"use strict";var rI=jl(),rpe=ei().isArrayOrTypedArray;function jvt(e){for(var t=rI.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var npe=ei(),Xvt=$l(),Zvt=Zc(),Yvt=Py(),fA=lc(),Kvt=lA(),Jvt=Dm(),$vt=Zde(),Qvt=$v(),e0t=D0(),ape=uA(),t0t=R0(),r0t=Rm(),i0t=ei().coercePattern;ope.exports=function(t,r,n,i){function a(d,p){return npe.coerce(t,r,Zvt,d,p)}var o=Kvt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){Jvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=$vt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var u=!s&&o{"use strict";var n0t=$b().getAxisGroup;lpe.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],u=n0t(n,s)+o,l=n._alignmentOpts||{},f=i("alignmentgroup"),c=l[u];c||(c=l[u]={});var h=c[f];h?h.traces.push(r):h=c[f]={traces:[r],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=i("offsetgroup")||"",p=h.offsetGroups,y=p[d];r._offsetIndex=0,(a!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=y.offsetIndex)}});var wU=we((Ulr,upe)=>{"use strict";var a0t=ei(),o0t=r2(),s0t=Zc();upe.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return a0t.coerce(i._input,i,s0t,h)}if(r.scattermode==="group")for(a=0;a=0;f--){var c=t[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var cpe=we((Vlr,fpe)=>{"use strict";var l0t=ei(),u0t=rP();fpe.exports=function(e,t){function r(i,a){return l0t.coerce(e,t,u0t,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Fm=we((Glr,dpe)=>{"use strict";var f0t=ku(),hpe=ei(),c0t=hpe.dateTime2ms,iI=hpe.incrementMonth,h0t=rf(),d0t=h0t.ONEAVGMONTH;dpe.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(f0t(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var u=+o.substring(1);if(u>0&&Math.round(u)===u)s=u;else return{vals:i}}for(var l=r.calendar,f=a==="start",c=a==="end",h=t[n+"period0"],d=c0t(h,l)||0,p=[],y=[],b=[],v=i.length,C=0;CM;)x=iI(x,-s,l);for(;x<=M;)x=iI(x,s,l);L=iI(x,-s,l)}else{for(A=Math.round((M-d)/o),x=d+A*o;x>M;)x-=o;for(;x<=M;)x+=o;L=x-o}p[C]=f?L:c?x:(L+x)/2,y[C]=L,b[C]=x}return{vals:p,starts:y,ends:b}}});var F0=we((Hlr,vpe)=>{"use strict";var AU=yp().hasColorscale,TU=gp(),ppe=lc();vpe.exports=function(t,r){ppe.hasLines(r)&&AU(r,"line")&&TU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),ppe.hasMarkers(r)&&(AU(r,"marker")&&TU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),AU(r,"marker.line")&&TU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Dy=we((Wlr,mpe)=>{"use strict";var sh=ei();mpe.exports=function(t,r){for(var n=0;n{"use strict";var ype=ei();gpe.exports=function(t,r){ype.isArrayOrTypedArray(r.selectedpoints)&&ype.tagSelected(t,r)}});var B0=we((Xlr,Spe)=>{"use strict";var _pe=ku(),MU=ei(),aE=wu(),xpe=Fm(),SU=rf().BADNUM,EU=lc(),p0t=F0(),v0t=Dy(),m0t=O0();function y0t(e,t){var r=e._fullLayout,n=t._xA=aE.getFromId(e,t.xaxis||"x","x"),i=t._yA=aE.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=xpe(t,n,"x",a),u=xpe(t,i,"y",o),l=s.vals,f=u.vals,c=t._length,h=new Array(c),d=t.ids,p=kU(t,r,n,i),y=!1,b,v,C,M,A,L;Ape(r,t);var x="x",k="y",S;if(p)MU.pushUnique(p.traceIndices,t.index),b=p.orientation==="v",b?(k="s",S="x"):(x="s",S="y"),A=p.stackgaps==="interpolate";else{var m=wpe(t,c);bpe(e,t,n,i,l,f,m)}var P=!!t.xperiodalignment,E=!!t.yperiodalignment;for(v=0;vv&&h[M].gap;)M--;for(L=h[M].s,C=h.length-1;C>M;C--)h[C].s=L;for(;v{"use strict";Mpe.exports=nI;var g0t=ei().distinctVals;function nI(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";kpe.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var i2=we((Klr,zpe)=>{"use strict";var q0=ku(),{isArrayOrTypedArray:Bg}=ei(),{BADNUM:cA}=rf(),_0t=$l(),oE=wu(),{getAxisGroup:x0t}=$b(),aI=Epe(),{TEXTPAD:b0t}=T_(),{LINE_SPACING:w0t}=Nh(),{BR_TAG_ALL:A0t}=Wf();function T0t(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lu+o||!q0(s))}for(var f=0;fn(a))):n(e.text);let i=e.outsidetextfont.size*w0t*r+b0t;return{ppadplus:t.some(a=>a.s<0)?i:0,ppadminus:t.some(a=>a.s>=0)?i:0}}return{ppadplus:void 0,ppadminus:void 0}}function D0t(e,t,r,n){for(var i=hA(n),a=0;a{"use strict";var Ipe=B0(),Dpe=i2().setGroupPositions;function F0t(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lm[f]&&f{"use strict";var B0t=Mu(),Npe=rf(),sE=Npe.BADNUM,Upe=Npe.LOG_CLIP,Ope=Upe+.5,Bpe=Upe-.5,oI=ei(),q0t=oI.segmentsIntersect,qpe=oI.constrain,RU=Py();Vpe.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",u=i._length,l=a._length,f=r.backoff,c=n.marker,h=r.connectGaps,d=r.baseTolerance,p=r.shape,y=p==="linear",b=n.fill&&n.fill!=="none",v=[],C=RU.minTolerance,M=t.length,A=new Array(M),L=0,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae;function me(Pe){var xe=t[Pe];if(!xe)return!1;var Oe=r.linearized?i.l2p(xe.x):i.c2p(xe.x),ze=r.linearized?a.l2p(xe.y):a.c2p(xe.y);if(Oe===sE){if(o&&(Oe=i.c2p(xe.x,!0)),Oe===sE)return!1;s&&ze===sE&&(Oe*=Math.abs(i._m*l*(i._m>0?Ope:Bpe)/(a._m*u*(a._m>0?Ope:Bpe)))),Oe*=1e3}if(ze===sE){if(s&&(ze=a.c2p(xe.y,!0)),ze===sE)return!1;ze*=1e3}return[Oe,ze]}function Le(Pe,xe,Oe,ze){var Re=Oe-Pe,ht=ze-xe,st=.5-Pe,gt=.5-xe,xt=Re*Re+ht*ht,pr=Re*st+ht*gt;if(pr>0&&pr1||Math.abs(st.y-Oe[0][1])>1)&&(st=[st.x,st.y],ze&&Se(st,Pe)He||Pe[1]ge)return[qpe(Pe[0],be,He),qpe(Pe[1],Ie,ge)]}function Mt(Pe,xe){if(Pe[0]===xe[0]&&(Pe[0]===be||Pe[0]===He)||Pe[1]===xe[1]&&(Pe[1]===Ie||Pe[1]===ge))return!0}function kt(Pe,xe){var Oe=[],ze=zt(Pe),Re=zt(xe);return ze&&Re&&Mt(ze,Re)||(ze&&Oe.push(ze),Re&&Oe.push(Re)),Oe}function $e(Pe,xe,Oe){return function(ze,Re){var ht=zt(ze),st=zt(Re),gt=[];if(ht&&st&&Mt(ht,st))return gt;ht&>.push(ht),st&>.push(st);var xt=2*oI.constrain((ze[Pe]+Re[Pe])/2,xe,Oe)-((ht||ze)[Pe]+(st||Re)[Pe]);if(xt){var pr;ht&&st?pr=xt>0==ht[Pe]>st[Pe]?ht:st:pr=ht||st,pr[Pe]+=xt}return gt}}var De;p==="linear"||p==="spline"?De=Ke:p==="hv"||p==="vh"?De=kt:p==="hvh"?De=$e(0,be,He):p==="vhv"&&(De=$e(1,Ie,ge));function Me(Pe,xe){var Oe=xe[0]-Pe[0],ze=(xe[1]-Pe[1])/Oe,Re=(Pe[1]*xe[0]-xe[1]*Pe[0])/Oe;return Re>0?[ze>0?be:He,ge]:[ze>0?He:be,Ie]}function oe(Pe){var xe=Pe[0],Oe=Pe[1],ze=xe===A[L-1][0],Re=Oe===A[L-1][1];if(!(ze&&Re))if(L>1){var ht=xe===A[L-2][0],st=Oe===A[L-2][1];ze&&(xe===be||xe===He)&&ht?st?L--:A[L-1]=Pe:Re&&(Oe===Ie||Oe===ge)&&st?ht?L--:A[L-1]=Pe:A[L++]=Pe}else A[L++]=Pe}function Ne(Pe){A[L-1][0]!==Pe[0]&&A[L-1][1]!==Pe[1]&&oe([rt,bt]),oe(Pe),Ot=null,rt=bt=0}var vt=oI.isArrayOrTypedArray(c);function lt(Pe){if(Pe&&f&&(Pe.i=x,Pe.d=t,Pe.trace=n,Pe.marker=vt?c[Pe.i]:c,Pe.backoff=f),Ce=Pe[0]/u,de=Pe[1]/l,ce=Pe[0]He?He:0,je=Pe[1]ge?ge:0,ce||je){if(!L)A[L++]=[ce||Pe[0],je||Pe[1]];else if(Ot){var xe=De(Ot,Pe);xe.length>1&&(Ne(xe[0]),A[L++]=xe[1])}else it=De(A[L-1],Pe)[0],A[L++]=it;var Oe=A[L-1];ce&&je&&(Oe[0]!==ce||Oe[1]!==je)?(Ot&&(rt!==ce&&bt!==je?oe(rt&&bt?Me(Ot,Pe):[rt||ce,bt||je]):rt&&bt&&oe([rt,bt])),oe([ce,je])):rt-ce&&bt-je&&oe([ce||rt,je||bt]),Ot=Pe,rt=ce,bt=je}else Ot&&Ne(De(Ot,Pe)[0]),A[L++]=Pe}for(x=0;xte(E,We))break;S=E,N=U[0]*F[0]+U[1]*F[1],N>j?(j=N,m=E,O=!1):N=t.length||!E)break;lt(E),k=E}}Ot&&oe([rt||Ot[0],bt||Ot[1]]),v.push(A.slice(0,L))}var Ve=p.slice(p.length-1);if(f&&Ve!=="h"&&Ve!=="v"){for(var et=!1,tt=-1,Lt=[],jt=0;jt{"use strict";var Gpe={tonextx:1,tonexty:1,tonext:1};Hpe.exports=function(t,r,n){var i,a,o,s,u,l={},f=!1,c=-1,h=0,d=-1;for(a=0;a=0?u=d:(u=d=h,h++),u{"use strict";var Om=Jl(),N0t=$l(),lE=ei(),dA=lE.ensureSingle,jpe=lE.identity,hh=Mu(),pA=lc(),U0t=FU(),V0t=OU(),sI=F5().tester;Xpe.exports=function(t,r,n,i,a,o){var s,u,l=!a,f=!!a&&a.duration>0,c=V0t(t,r,n);if(s=i.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),G0t(t,s,r),f){o&&(u=o());var h=Om.transition().duration(a.duration).ease(a.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});h.each(function(){i.selectAll("g.trace").each(function(d,p){Wpe(t,p,r,d,c,this,a)})})}else s.each(function(d,p){Wpe(t,p,r,d,c,this,a)});l&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function G0t(e,t,r){t.each(function(n){var i=dA(Om.select(this),"g","fills");hh.setClipUrl(i,r.layerClipId,e);var a=n[0].trace;a._ownFill=null,a._nextFill=null;var o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,jpe);s.enter().append("g"),s.exit().remove(),s.order().each(function(u){a[u]=dA(Om.select(this),"path","js-fill")})})}function Wpe(e,t,r,n,i,a,o){var s=e._context.staticPlot,u;H0t(e,t,r,n,i);var l=!!o&&o.duration>0;function f($e){return l?$e.transition():$e}var c=r.xaxis,h=r.yaxis,d=n[0].trace,p=d.line,y=Om.select(a),b=dA(y,"g","errorbars"),v=dA(y,"g","lines"),C=dA(y,"g","points"),M=dA(y,"g","text");if(N0t.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;f(y).style("opacity",d.opacity);var A,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var k,S;x==="y"?(k=1,S=h.c2p(0,!0)):x==="x"&&(k=0,S=c.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=y;var m="",P=[],E=d._prevtrace,O=null,F=null;E&&(m=E._prevRevpath||"",L=E._nextFill,P=E._ownPolygons,O=E._fillsegments,F=E._fillElement);var U,G,j="",W="",N,H,re,ae,me,Le,Ce=[];d._polygons=[];var de=[],te=[],Se=lE.noop;if(A=d._ownFill,pA.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(N=hh.steps(p.shape),H=hh.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?N=H=function($e){var De=$e[$e.length-1];return $e.length>1&&$e[0][0]===De[0]&&$e[0][1]===De[1]?hh.smoothclosed($e.slice(1),p.smoothing):hh.smoothopen($e,p.smoothing)}:N=H=function($e){return"M"+$e.join("L")},re=function($e){return H($e.reverse())},te=U0t(n,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),de=new Array(te.length);var Te=0;for(u=0;u=s[0]&&y.x<=s[1]&&y.y>=u[0]&&y.y<=u[1]}),h=Math.ceil(c.length/f),d=0;i.forEach(function(y,b){var v=y[0].trace;pA.hasMarkers(v)&&v.marker.maxdisplayed>0&&b{"use strict";Zpe.exports={container:"marker",min:"cmin",max:"cmax"}});var uI=we((rur,Ype)=>{"use strict";var lI=wu();Ype.exports=function(t,r,n){var i={},a={_fullLayout:n},o=lI.getFromTrace(a,r,"x"),s=lI.getFromTrace(a,r,"y"),u=t.orig_x;u===void 0&&(u=t.x);var l=t.orig_y;return l===void 0&&(l=t.y),i.xLabel=lI.tickText(o,o.c2l(u),!0).text,i.yLabel=lI.tickText(s,s.c2l(l),!0).text,i}});var sv=we((iur,Kpe)=>{"use strict";var BU=Jl(),mA=Mu(),W0t=$l();function j0t(e){var t=BU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=BU.select(this),i=r.trace||r[0].trace;qU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=BU.select(this),i=r.trace||r[0].trace;NU(n,i,e)}),t.selectAll("g.trace path.js-line").call(mA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(mA.fillGroupStyle,e,!1),W0t.getComponentMethod("errorbars","style")(t)}function qU(e,t,r){mA.pointStyle(e.selectAll("path.point"),t,r)}function NU(e,t,r){mA.textPointStyle(e.selectAll("text"),t,r)}function X0t(e,t,r){var n=t[0].trace;n.selectedpoints?(mA.selectedPointStyle(r.selectAll("path.point"),n),mA.selectedTextStyle(r.selectAll("text"),n)):(qU(r,n,e),NU(r,n,e))}Kpe.exports={style:j0t,stylePoints:qU,styleText:NU,styleOnSelect:X0t}});var gA=we((nur,Jpe)=>{"use strict";var yA=jl(),Z0t=lc();Jpe.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&yA.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&yA.opacity(a)?a:o&&yA.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?yA.opacity(i)<.3?yA.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&yA.opacity(n)&&Z0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var _A=we((aur,Qpe)=>{"use strict";var fI=ei(),$pe=Vc(),Y0t=$l(),K0t=gA(),UU=jl(),J0t=fI.fillText;Qpe.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,u=t.ya,l=s.c2p(r),f=u.c2p(n),c=[l,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(W){if(p){var N=s.c2p(W.xStart),H=s.c2p(W.xEnd);return l>=Math.min(N,H)&&l<=Math.max(N,H)?0:1/0}var re=Math.max(3,W.mrc||0),ae=1-1/re,me=Math.abs(s.c2p(W.x)-l);return me=Math.min(N,H)&&f<=Math.max(N,H)?0:1/0}var re=Math.max(3,W.mrc||0),ae=1-1/re,me=Math.abs(u.c2p(W.y)-f);return meCe!=ge>=Ce&&(be=Se[te-1][0],He=Se[te][0],ge-Ie&&(Te=be+(He-be)*(Ce-Ie)/(ge-Ie),re=Math.min(re,Te),ae=Math.max(ae,Te)));return re=Math.max(re,0),ae=Math.min(ae,s._length),{x0:re,x1:ae,y0:Ce,y1:Ce}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=O(o._fillElement)&&!O(o._fillExclusionElement);if(U){var G=F(o._polygons);G===null&&(G={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var j=UU.defaultLine;return UU.opacity(o.fillcolor)?j=o.fillcolor:UU.opacity((o.line||{}).color)&&(j=o.line.color),fI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:j,hovertemplate:!1}),delete t.index,o.text&&!fI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var xA=we((our,tve)=>{"use strict";var eve=lc();tve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h=!eve.hasMarkers(s)&&!eve.hasText(s);if(h)return[];if(r===!1)for(u=0;u{"use strict";rve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var GU=we((lur,ove)=>{"use strict";var uE=$l().traceIs,VU=H3();ove.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&($0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function $0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=Q0t(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],u={noMultiCategory:!uE(a,"cartesian")||uE(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,ave(a,n)){var l=nve(a),f=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(ave(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function nve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function ave(e,t){var r=nve(e),n=uE(e,"box-violin"),i=uE(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var cI=we((uur,sve)=>{"use strict";var emt=Jd().isTypedArraySpec;function tmt(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||emt(a),s;o&&(s="array");var u=n("categoryorder",s),l;u==="array"&&(l=n("categoryarray")),!o&&u==="array"&&(u=r.categoryorder="trace"),u==="trace"?r._initialCategories=[]:u==="array"?r._initialCategories=l.slice():(l=tmt(r,i).sort(),u==="category ascending"?r._initialCategories=l:u==="category descending"&&(r._initialCategories=l.reverse()))}}});var fE=we((fur,uve)=>{"use strict";var lve=hd().mix,rmt=Bh(),imt=ei();uve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(S,m){return imt.coerce2(t,r,i.attributes,S,m)}var s=o("linecolor",a),u=o("linewidth"),l=n("showline",i.showLine||!!s||!!u);l||(delete r.linecolor,delete r.linewidth);var f=lve(a,i.bgColor,i.blend||rmt.lightFraction).toRgbString(),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),p=n("showgrid",i.showGrid||!!c||!!h||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var y=lve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",y),v=o("minor.gridwidth",r.gridwidth||1),C=o("minor.griddash",r.griddash||"solid"),M=n("minor.showgrid",!!b||!!v||!!C);M||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var A=o("zerolinelayer"),L=o("zerolinecolor",a),x=o("zerolinewidth"),k=n("zeroline",i.showGrid||!!L||!!x);k||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var hE=we((cur,vve)=>{"use strict";var fve=ku(),nmt=$l(),cE=ei(),amt=Lf(),omt=$d(),HU=Rd(),cve=Pb(),hve=O3(),smt=s_(),lmt=l_(),umt=cI(),fmt=fE(),cmt=FN(),dve=xy(),hI=qh().WEEKDAY_PATTERN,hmt=qh().HOUR_PATTERN;vve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},u=i.splomStash||{},l=n("visible",!i.visibleDflt),f=r._template||{},c=r.type||f.type||"-",h;if(c==="date"){var d=nmt.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var p="";(!i.noTicklabelposition||c==="multicategory")&&(p=cE.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),dve(r,a),cmt(t,r,n,i),umt(t,r,n,i),i.noHover||(c!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var y=n("color"),b=y!==HU.color.dflt?y:s.color,v=u.label||a._dfltTitle[o];if(lmt(t,r,n,c,i),!l)return r;n("title.text",v),cE.coerceFont(n,"title.font",s,{overrideDflt:{size:cE.bigFont(s.size),color:b}}),cve(t,r,n,c);var C=i.hasMinor;if(C&&(amt.newContainer(r,"minor"),cve(t,r,n,c,{isMinor:!0})),smt(t,r,n,c,i),hve(t,r,n,i),C){var M=i.isMinor;i.isMinor=!0,hve(t,r,n,i),i.isMinor=M}fmt(t,r,n,{dfltColor:y,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:C,attributes:HU}),C&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var A=c==="multicategory";if(!i.noTickson&&(c==="category"||A)&&(r.ticks||r.showgrid)&&(A?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),A){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(omt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:dmt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,u;if(a.length===2){for(s=0;s<2;s++)if(u=pve(a[s]),u){o=hI;break}}var l=n("pattern",o);if(l===hI)for(s=0;s<2;s++)u=pve(a[s]),u&&(t.bounds[s]=a[s]=u-1);if(l)for(s=0;s<2;s++)switch(u=a[s],l){case hI:if(!fve(u)){t.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){t.enabled=!1;return}t.bounds[s]=a[s]=u;break;case hmt:if(!fve(u)){t.enabled=!1;return}if(u=+u,u<0||u>24){t.enabled=!1;return}t.bounds[s]=a[s]=u;break}if(r.autorange===!1){var f=r.range;if(f[0]f[1]){t.enabled=!1;return}}else if(a[0]>f[0]&&a[1]{"use strict";var vmt=ku(),dI=ei();mve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,u=i.grid,l=i.overlayingDomain,f,c,h,d,p,y;u&&(c=u._domains[s][u._axisMap[r._id]],f=u._anchors[r._id],c&&(h=u[s+"side"].split(" ")[0],d=u.domain[s][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(vmt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var b=dI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),v=dI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var C=n("autoshift");C&&(d=v==="left"?l[0]:l[1],y=r.automargin?r.automargin:!0,p=v==="left"?-3:3),n("shift",p)}n("position",d)}n("automargin",y);var M=!1;if(o.length&&(M=dI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!M){var A=n("domain",c);A[0]>A[1]-1/4096&&(r.domain=c),dI.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var Sve=we((dur,Tve)=>{"use strict";var n2=ei(),yve=jl(),mmt=iv().isUnifiedHover,ymt=l7(),gve=Lf(),gmt=b3(),_ve=Rd(),_mt=GU(),xve=hE(),xmt=$b(),bve=pI(),jU=jc(),Ry=jU.id2name,wve=jU.name2id,bmt=qh().AX_ID_PATTERN,Ave=$l(),vI=Ave.traceIs,WU=Ave.getComponentMethod;function mI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}Tve.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},u={},l={},f={},c={},h={},d={},p={},y,b;for(y=0;y{"use strict";var wmt=Jl(),Mve=$l(),yI=ei(),Qv=Mu(),gI=wu();Eve.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){gI.redrawComponents(t);return}function o(b){var v=b.xaxis,C=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qv.setTranslate,0,0).call(Qv.setScale,1,1),b.plot.call(Qv.setTranslate,v._offset,C._offset).call(Qv.setScale,1,1);var M=b.plot.selectAll(".scatterlayer .trace");M.selectAll(".point").call(Qv.setPointGroupScale,1,1),M.selectAll(".textpoint").call(Qv.setTextPointsScale,1,1),M.call(Qv.hideOutsideRangePoints,b)}function s(b,v){var C=b.plotinfo,M=C.xaxis,A=C.yaxis,L=M._length,x=A._length,k=!!b.xr1,S=!!b.yr1,m=[];if(k){var P=yI.simpleMap(b.xr0,M.r2l),E=yI.simpleMap(b.xr1,M.r2l),O=P[1]-P[0],F=E[1]-E[0];m[0]=(P[0]*(1-v)+v*E[0]-P[0])/(P[1]-P[0])*L,m[2]=L*(1-v+v*F/O),M.range[0]=M.l2r(P[0]*(1-v)+v*E[0]),M.range[1]=M.l2r(P[1]*(1-v)+v*E[1])}else m[0]=0,m[2]=L;if(S){var U=yI.simpleMap(b.yr0,A.r2l),G=yI.simpleMap(b.yr1,A.r2l),j=U[1]-U[0],W=G[1]-G[0];m[1]=(U[1]*(1-v)+v*G[1]-U[1])/(U[0]-U[1])*x,m[3]=x*(1-v+v*W/j),A.range[0]=M.l2r(U[0]*(1-v)+v*G[0]),A.range[1]=A.l2r(U[1]*(1-v)+v*G[1])}else m[1]=0,m[3]=x;gI.drawOne(t,M,{skipTitle:!0}),gI.drawOne(t,A,{skipTitle:!0}),gI.redrawComponents(t,[M._id,A._id]);var N=k?L/m[2]:1,H=S?x/m[3]:1,re=k?m[0]:0,ae=S?m[1]:0,me=k?m[0]/m[2]*L:0,Le=S?m[1]/m[3]*x:0,Ce=M._offset-me,de=A._offset-Le;C.clipRect.call(Qv.setTranslate,re,ae).call(Qv.setScale,1/N,1/H),C.plot.call(Qv.setTranslate,Ce,de).call(Qv.setScale,N,H),Qv.setPointGroupScale(C.zoomScalePts,1/N,1/H),Qv.setTextPointsScale(C.zoomScaleTxt,1/N,1/H)}var u;i&&(u=i());function l(){for(var b={},v=0;vn.duration?(l(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var Mh=we(wp=>{"use strict";var xI=Jl(),Cve=$l(),a2=ei(),Amt=Cc(),Tmt=Mu(),Lve=Dd().getModuleCalcData,S_=jc(),Bm=qh(),Smt=jv(),Zf=a2.ensureSingle;function _I(e,t,r){return a2.ensureSingle(e,t,r,function(n){n.datum(r)})}var o2=Bm.zindexSeparator;wp.name="cartesian";wp.attr=["xaxis","yaxis"];wp.idRoot=["x","y"];wp.idRegex=Bm.idRegex;wp.attrRegex=Bm.attrRegex;wp.attributes=ive();wp.layoutAttributes=Rd();wp.supplyLayoutDefaults=Sve();wp.transitionAxes=kve();wp.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},u={},l,f,c;for(l=0;l0){var d=h.id;if(d.indexOf(o2)!==-1)continue;d+=o2+(l+1),h=a2.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,b=0;b1&&(L+=o2+A),M.push(s+L),o=0;o1,c=t.mainplotinfo;if(!t.mainplot||f)if(l)t.xlines=Zf(n,"path","xlines-above"),t.ylines=Zf(n,"path","ylines-above"),t.xaxislayer=Zf(n,"g","xaxislayer-above"),t.yaxislayer=Zf(n,"g","yaxislayer-above");else{if(!o){var h=Zf(n,"g","layer-subplot");t.shapelayer=Zf(h,"g","shapelayer"),t.imagelayer=Zf(h,"g","imagelayer"),c&&f?(t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer):(t.minorGridlayer=Zf(n,"g","minor-gridlayer"),t.gridlayer=Zf(n,"g","gridlayer"),t.zerolinelayer=Zf(n,"g","zerolinelayer"));var d=Zf(n,"g","layer-between");t.shapelayerBetween=Zf(d,"g","shapelayer"),t.imagelayerBetween=Zf(d,"g","imagelayer"),Zf(n,"path","xlines-below"),Zf(n,"path","ylines-below"),t.overlinesBelow=Zf(n,"g","overlines-below"),Zf(n,"g","xaxislayer-below"),Zf(n,"g","yaxislayer-below"),t.overaxesBelow=Zf(n,"g","overaxes-below")}t.overplot=Zf(n,"g","overplot"),t.plot=Zf(t.overplot,"g",i),c&&f?t.zerolinelayerAbove=c.zerolinelayerAbove:t.zerolinelayerAbove=Zf(n,"g","zerolinelayer-above"),o||(t.xlines=Zf(n,"path","xlines-above"),t.ylines=Zf(n,"path","ylines-above"),t.overlinesAbove=Zf(n,"g","overlines-above"),Zf(n,"g","xaxislayer-above"),Zf(n,"g","yaxislayer-above"),t.overaxesAbove=Zf(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+u),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+u))}else{var p=c.plotgroup,y=i+"-x",b=i+"-y";t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer,t.zerolinelayerAbove=c.zerolinelayerAbove,Zf(c.overlinesBelow,"path",y),Zf(c.overlinesBelow,"path",b),Zf(c.overaxesBelow,"g",y),Zf(c.overaxesBelow,"g",b),t.plot=Zf(c.overplot,"g",i),Zf(c.overlinesAbove,"path",y),Zf(c.overlinesAbove,"path",b),Zf(c.overaxesAbove,"g",y),Zf(c.overaxesAbove,"g",b),t.xlines=p.select(".overlines-"+s).select("."+y),t.ylines=p.select(".overlines-"+u).select("."+b),t.xaxislayer=p.select(".overaxes-"+s).select("."+y),t.yaxislayer=p.select(".overaxes-"+u).select("."+b)}o||(l||(_I(t.minorGridlayer,"g",t.xaxis._id),_I(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(v){return v[0]}).sort(S_.idSort),_I(t.gridlayer,"g",t.xaxis._id),_I(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(v){return v[0]}).sort(S_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function Ive(e,t){if(e){var r={};e.each(function(u){var l=u[0],f=xI.select(this);f.remove(),Dve(l,t),r[l]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var bI=lc();Rve.exports={hasLines:bI.hasLines,hasMarkers:bI.hasMarkers,hasText:bI.hasText,isBubble:bI.isBubble,attributes:Zc(),layoutAttributes:rP(),supplyDefaults:spe(),crossTraceDefaults:wU(),supplyLayoutDefaults:cpe(),calc:B0().calc,crossTraceCalc:Fpe(),arraysToCalcdata:Dy(),plot:vA(),colorbar:tp(),formatLabels:uI(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:_A(),selectPoints:xA(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Mh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var qve=we((yur,Bve)=>{"use strict";var Emt=Jl(),kmt=jl(),Ove=Y7(),XU=ei(),Cmt=XU.strScale,Lmt=XU.strRotate,Pmt=XU.strTranslate;Bve.exports=function(t,r,n){var i=t.node(),a=Ove[n.arrowhead||0],o=Ove[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),l=r.indexOf("start")>=0,f=r.indexOf("end")>=0,c=a.backoff*s+n.standoff,h=o.backoff*u+n.startstandoff,d,p,y,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var v=d.x-p.x,C=d.y-p.y;if(y=Math.atan2(C,v),b=y+Math.PI,c&&h&&c+h>Math.sqrt(v*v+C*C)){U();return}if(c){if(c*c>v*v+C*C){U();return}var M=c*Math.cos(y),A=c*Math.sin(y);p.x+=M,p.y+=A,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>v*v+C*C){U();return}var L=h*Math.cos(y),x=h*Math.sin(y);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var k=i.getTotalLength(),S="";if(k{"use strict";var Nve=Jl(),ZU=$l(),zmt=Cc(),E_=ei(),YU=E_.strTranslate,pE=wu(),s2=jl(),qg=Mu(),Uve=Vc(),KU=Wf(),JU=Em(),dE=xp(),Imt=Lf().arrayEditor,Dmt=qve();Hve.exports={draw:Rmt,drawOne:Vve,drawRaw:Gve};function Rmt(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Re="right":Re="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Re]}for(var Ie=!1,ge=["x","y"],Be=0;Be1)&&(rt===je?(We=bt.r2fraction(t["a"+ce]),(We<0||We>1)&&(Ie=!0)):Ie=!0),De=bt._offset+bt.r2p(t[ce]),Ne=.5}else{var Ve=lt==="domain";ce==="x"?(oe=t[ce],De=Ve?bt._offset+bt._length*oe:De=s.l+s.w*oe):(oe=1-t[ce],De=Ve?bt._offset+bt._length*oe:De=s.t+s.h*oe),Ne=t.showarrow?.5:oe}if(t.showarrow){$e.head=De;var et=t["a"+ce];if(vt=it*He(.5,t.xanchor)-Ke*He(.5,t.yanchor),rt===je){var tt=pE.getRefType(rt);tt==="domain"?(ce==="y"&&(et=1-et),$e.tail=bt._offset+bt._length*et):tt==="paper"?ce==="y"?(et=1-et,$e.tail=s.t+s.h*et):$e.tail=s.l+s.w*et:$e.tail=bt._offset+bt.r2p(et),Me=vt}else $e.tail=De+et,Me=vt+et;$e.text=$e.tail+vt;var Lt=o[ce==="x"?"width":"height"];if(je==="paper"&&($e.head=E_.constrain($e.head,1,Lt-1)),rt==="pixel"){var jt=-Math.max($e.tail-3,$e.text),or=Math.min($e.tail+3,$e.text)-Lt;jt>0?($e.tail+=jt,$e.text+=jt):or>0&&($e.tail-=or,$e.text-=or)}$e.tail+=kt,$e.head+=kt}else vt=zt*He(Ne,Mt),Me=vt,$e.text=De+vt;$e.text+=kt,vt+=kt,Me+=kt,t["_"+ce+"padplus"]=zt/2+Me,t["_"+ce+"padminus"]=zt/2-Me,t["_"+ce+"size"]=zt,t["_"+ce+"shift"]=vt}if(Ie){k.remove();return}var yr=0,vr=0;if(t.align!=="left"&&(yr=(te-Ce)*(t.align==="center"?.5:1)),t.valign!=="top"&&(vr=(Se-de)*(t.valign==="middle"?.5:1)),me)ae.select("svg").attr({x:P+yr-1,y:P+vr}).call(qg.setClipUrl,O?y:null,e);else{var Vt=P+vr-Le.top,Pe=P+yr-Le.left;j.call(KU.positionText,Pe,Vt).call(qg.setClipUrl,O?y:null,e)}F.select("rect").call(qg.setRect,P,P,te,Se),E.call(qg.setRect,S/2,S/2,Te-S,be-S),k.call(qg.setTranslate,Math.round(b.x.text-Te/2),Math.round(b.y.text-be/2)),M.attr({transform:"rotate("+v+","+b.x.text+","+b.y.text+")"});var xe=function(ze,Re){C.selectAll(".annotation-arrow-g").remove();var ht=b.x.head,st=b.y.head,gt=b.x.tail+ze,xt=b.y.tail+Re,pr=b.x.text+ze,br=b.y.text+Re,cr=E_.rotationXYMatrix(v,pr,br),Er=E_.apply2DTransform(cr),ii=E_.apply2DTransform2(cr),jr=+E.attr("width"),kr=+E.attr("height"),Vr=pr-.5*jr,Ai=Vr+jr,Bi=br-.5*kr,Di=Bi+kr,ln=[[Vr,Bi,Vr,Di],[Vr,Di,Ai,Di],[Ai,Di,Ai,Bi],[Ai,Bi,Vr,Bi]].map(ii);if(!ln.reduce(function(Fr,Gr){return Fr^!!E_.segmentsIntersect(ht,st,ht+1e6,st+1e6,Gr[0],Gr[1],Gr[2],Gr[3])},!1)){ln.forEach(function(Fr){var Gr=E_.segmentsIntersect(gt,xt,ht,st,Fr[0],Fr[1],Fr[2],Fr[3]);Gr&&(gt=Gr.x,xt=Gr.y)});var hn=t.arrowwidth,qr=t.arrowcolor,_i=t.arrowside,zi=C.append("g").style({opacity:s2.opacity(qr)}).classed("annotation-arrow-g",!0),Rt=zi.append("path").attr("d","M"+gt+","+xt+"L"+ht+","+st).style("stroke-width",hn+"px").call(s2.stroke,s2.rgb(qr));if(Dmt(Rt,_i,t),u.annotationPosition&&Rt.node().parentNode&&!n){var _t=ht,qt=st;if(t.standoff){var Nt=Math.sqrt(Math.pow(ht-gt,2)+Math.pow(st-xt,2));_t+=t.standoff*(gt-ht)/Nt,qt+=t.standoff*(xt-st)/Nt}var mr=zi.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(gt-_t)+","+(xt-qt),transform:YU(_t,qt)}).style("stroke-width",hn+6+"px").call(s2.stroke,"rgba(0,0,0,0)").call(s2.fill,"rgba(0,0,0,0)"),Lr,Nr;dE.init({element:mr.node(),gd:e,prepFn:function(){var Fr=qg.getTranslate(k);Lr=Fr.x,Nr=Fr.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Fr,Gr){var Hr=Er(Lr,Nr),mi=Hr[0]+Fr,Ei=Hr[1]+Gr;k.call(qg.setTranslate,mi,Ei),d("x",M_(i,Fr,"x",s,t)),d("y",M_(a,Gr,"y",s,t)),t.axref===t.xref&&d("ax",M_(i,Fr,"ax",s,t)),t.ayref===t.yref&&d("ay",M_(a,Gr,"ay",s,t)),zi.attr("transform",YU(Fr,Gr)),M.attr({transform:"rotate("+v+","+mi+","+Ei+")"})},doneFn:function(){ZU.call("_guiRelayout",e,p());var Fr=document.querySelector(".js-notes-box-panel");Fr&&Fr.redraw(Fr.selectedObj)}})}}};if(t.showarrow&&xe(0,0),A){var Oe;dE.init({element:k.node(),gd:e,prepFn:function(){Oe=M.attr("transform")},moveFn:function(ze,Re){var ht="pointer";if(t.showarrow)t.axref===t.xref?d("ax",M_(i,ze,"ax",s,t)):d("ax",t.ax+ze),t.ayref===t.yref?d("ay",M_(a,Re,"ay",s.w,t)):d("ay",t.ay+Re),xe(ze,Re);else{if(n)return;var st,gt;if(i)st=M_(i,ze,"x",s,t);else{var xt=t._xsize/s.w,pr=t.x+(t._xshift-t.xshift)/s.w-xt/2;st=dE.align(pr+ze/s.w,xt,0,1,t.xanchor)}if(a)gt=M_(a,Re,"y",s,t);else{var br=t._ysize/s.h,cr=t.y-(t._yshift+t.yshift)/s.h-br/2;gt=dE.align(cr-Re/s.h,br,0,1,t.yanchor)}d("x",st),d("y",gt),(!i||!a)&&(ht=dE.getCursor(i?.5:st,a?.5:gt,t.xanchor,t.yanchor))}M.attr({transform:YU(ze,Re)+Oe}),JU(k,ht)},clickFn:function(ze,Re){t.captureevents&&e.emit("plotly_clickannotation",x(Re))},doneFn:function(){JU(k),ZU.call("_guiRelayout",e,p());var ze=document.querySelector(".js-notes-box-panel");ze&&ze.redraw(ze.selectedObj)}})}}u.annotationText?j.call(KU.makeEditable,{delegate:k,gd:e}).call(W).on("edit",function(H){t.text=H,this.call(W),d("text",H),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),ZU.call("_guiRelayout",e,p())}):j.call(W)}});var Kve=we((_ur,Yve)=>{"use strict";var Wve=ei(),Fmt=$l(),jve=Lf().arrayEditor;Yve.exports={hasClickToShow:Omt,onClick:Bmt};function Omt(e,t){var r=Zve(e,t);return r.on.length>0||r.explicitOff.length>0}function Bmt(e,t){var r=Zve(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,u;if(n.length||i.length){for(s=0;s{"use strict";var $U=ei(),bA=jl();Jve.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=bA.opacity(o);i("borderpad");var u=i("borderwidth"),l=i("showarrow");i("text",l?" ":n._dfltTitle.annotation),i("textangle"),$U.coerceFont(i,"font",n.font),i("width"),i("align");var f=i("height");if(f&&i("valign"),l){var c=i("arrowside"),h,d;c.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),c.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:bA.defaultLine),i("arrowwidth",(s&&u||1)*2),i("standoff"),i("startstandoff")}var p=i("hovertext"),y=n.hoverlabel||{};if(p){var b=i("hoverlabel.bgcolor",y.bgcolor||(bA.opacity(a)?bA.rgb(a):bA.defaultLine)),v=i("hoverlabel.bordercolor",y.bordercolor||bA.contrast(b)),C=$U.extendFlat({},y.font);C.color||(C.color=v),$U.coerceFont(i,"hoverlabel.font",C)}i("captureevents",!!p)}});var Qve=we((bur,$ve)=>{"use strict";var eV=ei(),l2=wu(),qmt=$d(),Nmt=QU(),Umt=Qb();$ve.exports=function(t,r){qmt(t,r,{name:"annotations",handleItemDefaults:Vmt})};function Vmt(e,t,r){function n(M,A){return eV.coerce(e,t,Umt,M,A)}var i=n("visible"),a=n("clicktoshow");if(i||a){Nmt(e,t,r,n);for(var o=t.showarrow,s=["x","y"],u=[-10,-30],l={_fullLayout:r},f=0;f<2;f++){var c=s[f],h=l2.coerceRef(e,t,l,c,"","paper");if(h!=="paper"){var d=l2.getFromId(l,h);d._annIndices.push(t._index)}if(l2.coercePosition(t,l,n,h,c,.5),o){var p="a"+c,y=l2.coerceRef(e,t,l,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=t[p]="pixel");var b=y==="pixel"?u[f]:.4;l2.coercePosition(t,l,n,y,p,b)}n(c+"anchor"),n(c+"shift")}if(eV.noneOrAll(e,t,["x","y"]),o&&eV.noneOrAll(e,t,["ax","ay"]),a){var v=n("xclick"),C=n("yclick");t._xclick=v===void 0?t.x:l2.cleanPosition(v,l,t.xref),t._yclick=C===void 0?t.y:l2.cleanPosition(C,l,t.yref)}}}});var r0e=we((wur,t0e)=>{"use strict";var tV=ei(),u2=wu(),Gmt=wI().draw;t0e.exports=function(t){var r=t._fullLayout,n=tV.filterVisible(r.annotations);if(n.length&&t._fullData.length)return tV.syncOrAsync([Gmt,Hmt],t)};function Hmt(e){var t=e._fullLayout;tV.filterVisible(t.annotations).forEach(function(r){var n=u2.getFromId(e,r.xref),i=u2.getFromId(e,r.yref),a=u2.getRefType(r.xref),o=u2.getRefType(r.yref);r._extremes={},a==="range"&&e0e(r,n),o==="range"&&e0e(r,i)})}function e0e(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],u=e["_"+n+"padplus"],l=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,b=p-f,v;if(s===o){var C=u2.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),M=u2.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(u,y),ppadminus:Math.max(l,b)});v={min:[C.min[0],M.min[0]],max:[C.max[0],M.max[0]]}}else y=a?y+a:y,b=a?b-a:b,v=u2.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(u,h,y),ppadminus:Math.max(l,d,b)});e._extremes[r]=v}});var n0e=we((Aur,i0e)=>{"use strict";var Wmt=ku(),jmt=ML();i0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,u=r._id.charAt(0),l,f;function c(d){var p=l[d],y=null;a?y=jmt(p,r.range):y=Math.pow(10,p),Wmt(y)||(y=null),i(f+d,y)}for(var h=0;h{"use strict";var rV=wI(),a0e=Kve();o0e.exports={moduleType:"component",name:"annotations",layoutAttributes:Qb(),supplyLayoutDefaults:Qve(),includeBasePlot:X5()("annotations"),calcAutorange:r0e(),draw:rV.draw,drawOne:rV.drawOne,drawRaw:rV.drawRaw,hasClickToShow:a0e.hasClickToShow,onClick:a0e.onClick,convertCoords:n0e()}});var AI=we((Sur,l0e)=>{"use strict";var Pc=Qb(),Xmt=Sc().overrideAll,Zmt=Lf().templatedArray;l0e.exports=Xmt(Zmt("annotation",{visible:Pc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Pc.xanchor,xshift:Pc.xshift,yanchor:Pc.yanchor,yshift:Pc.yshift,text:Pc.text,textangle:Pc.textangle,font:Pc.font,width:Pc.width,height:Pc.height,opacity:Pc.opacity,align:Pc.align,valign:Pc.valign,bgcolor:Pc.bgcolor,bordercolor:Pc.bordercolor,borderpad:Pc.borderpad,borderwidth:Pc.borderwidth,showarrow:Pc.showarrow,arrowcolor:Pc.arrowcolor,arrowhead:Pc.arrowhead,startarrowhead:Pc.startarrowhead,arrowside:Pc.arrowside,arrowsize:Pc.arrowsize,startarrowsize:Pc.startarrowsize,arrowwidth:Pc.arrowwidth,standoff:Pc.standoff,startstandoff:Pc.startstandoff,hovertext:Pc.hovertext,hoverlabel:Pc.hoverlabel,captureevents:Pc.captureevents}),"calc","from-root")});var f0e=we((Mur,u0e)=>{"use strict";var iV=ei(),Ymt=wu(),Kmt=$d(),Jmt=QU(),$mt=AI();u0e.exports=function(t,r,n){Kmt(t,r,{name:"annotations",handleItemDefaults:Qmt,fullLayout:n.fullLayout})};function Qmt(e,t,r,n){function i(s,u){return iV.coerce(e,t,$mt,s,u)}function a(s){var u=s+"axis",l={_fullLayout:{}};return l._fullLayout[u]=r[u],Ymt.coercePosition(t,l,i,s,s,.5)}var o=i("visible");o&&(Jmt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),iV.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),iV.noneOrAll(e,t,["ax","ay"])))}});var p0e=we((Eur,d0e)=>{"use strict";var c0e=ei(),h0e=wu();d0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function nV(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function tyt(e,t){var r=nV(e.projection,nV(e.view,nV(e.model,[t[0],t[1],t[2],1])));return r}v0e.exports=tyt});var y0e=we((Cur,m0e)=>{"use strict";var ryt=wI().drawRaw,iyt=aV(),nyt=["x","y","z"];m0e.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=iyt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),ryt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var x0e=we((Lur,_0e)=>{"use strict";var ayt=$l(),g0e=ei();_0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:AI()}}},layoutAttributes:AI(),handleDefaults:f0e(),includeBasePlot:oyt,convert:p0e(),draw:y0e()};function oyt(e,t){var r=ayt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var Pur=qh(),b0e=gc(),w0e=Zc().line,syt=Id().dash,qm=Su().extendFlat,lyt=Lf().templatedArray,zur=W5(),wA=Gf(),A0e=Qb(),{shapeTexttemplateAttrs:uyt,templatefallbackAttrs:fyt}=Ff(),cyt=RL();T0e.exports=lyt("shape",{visible:qm({},wA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:qm({},wA.legend,{editType:"calc+arraydraw"}),legendgroup:qm({},wA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:qm({},wA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:b0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:qm({},wA.legendrank,{editType:"calc+arraydraw"}),legendwidth:qm({},wA.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:qm({},A0e.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:qm({},A0e.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:qm({},w0e.color,{editType:"arraydraw"}),width:qm({},w0e.width,{editType:"calc+arraydraw"}),dash:qm({},syt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:uyt({},{keys:Object.keys(cyt)}),texttemplatefallback:fyt({editType:"arraydraw"}),font:b0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var M0e=we((Dur,S0e)=>{"use strict";var AA=ei(),e0=wu(),hyt=$d(),dyt=oV(),vE=x_();S0e.exports=function(t,r){hyt(t,r,{name:"shapes",handleItemDefaults:vyt})};function pyt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function vyt(e,t,r){function n(M,A){return AA.coerce(e,t,dyt,M,A)}t._isShape=!0;var i=n("visible");if(!i)return;var a=n("showlegend");n("legend"),n("legendgroup"),a&&(n("legendwidth"),n("legendgrouptitle.text"),AA.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",u=n("type",s),l=u!=="path";l&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var c=n("xsizemode"),h=n("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(M=>{var A=M+"anchor",L=M==="x"?c:h,x={_fullLayout:r},k,S,m,P;let E=M+"ref",O=e[E];if(Array.isArray(O)&&O.length>0){let F=vE.countDefiningCoords(u,o,M);P=e0.coerceRefArray(e,t,x,M,void 0,"paper",F),t["_"+M+"refArray"]=!0}else P=e0.coerceRef(e,t,x,M,void 0,"paper");if(Array.isArray(P))P.forEach(function(F){e0.getRefType(F)==="range"&&(k=e0.getFromId(x,F),k&&k._shapeIndices.indexOf(t._index)===-1&&k._shapeIndices.push(t._index))}),l&&[0,1].forEach(function(F){let U=P[F];e0.getRefType(U)==="range"?(k=e0.getFromId(x,U),S=vE.shapePositionToRange(k),m=vE.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&n(M+F+"shift")):S=m=AA.identity;let j=M+F,W=e[j];if(e[j]=S(e[j],!0),L==="pixel"?n(j,p[F]):e0.coercePosition(t,x,n,U,j,d[F]),t[j]=m(t[j]),e[j]=W,F===0&&L==="pixel"){let N=e[A];e[A]=S(e[A],!0),e0.coercePosition(t,x,n,U,A,.25),t[A]=m(t[A]),e[A]=N}});else{if(e0.getRefType(P)==="range"?(k=e0.getFromId(x,P),k._shapeIndices.push(t._index),m=vE.rangeToShapePosition(k),S=vE.shapePositionToRange(k),l&&(k.type==="category"||k.type==="multicategory")&&(n(M+"0shift"),n(M+"1shift"))):S=m=AA.identity,l){let U=M+"0",G=M+"1",j=e[U],W=e[G];e[U]=S(e[U],!0),e[G]=S(e[G],!0),L==="pixel"?(n(U,p[0]),n(G,p[1])):(e0.coercePosition(t,x,n,P,U,d[0]),e0.coercePosition(t,x,n,P,G,d[1])),t[U]=m(t[U]),t[G]=m(t[G]),e[U]=j,e[G]=W}if(L==="pixel"){let U=e[A];e[A]=S(e[A],!0),e0.coercePosition(t,x,n,P,A,.25),t[A]=m(t[A]),e[A]=U}}}),l&&AA.noneOrAll(e,t,["x0","x1","y0","y1"]);var y=u==="line",b,v;if(l&&(b=n("label.texttemplate"),n("label.texttemplatefallback")),b||(v=n("label.text")),v||b){n("label.textangle");var C=n("label.textposition",y?"middle":"middle center");n("label.xanchor"),n("label.yanchor",pyt(y,C)),n("label.padding"),AA.coerceFont(n,"label.font",r.font)}}});var C0e=we((Rur,k0e)=>{"use strict";var myt=jl(),E0e=ei();function yyt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}k0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),E0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",myt.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),s||u){n("newshape.label.textangle");var l=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",yyt(o,l)),n("newshape.label.padding"),E0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var F0e=we((Fur,R0e)=>{"use strict";var sV=ei(),N0=wu(),Fy=T5(),lV=x_();R0e.exports=function(t){var r=t._fullLayout,n=sV.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i{o=N0.getFromId(t,c),a._extremes[o._id]=N0.findExtremes(o,h,P0e(a))})}else a.xref!=="paper"&&u!=="domain"&&(o=N0.getFromId(t,a.xref),s=I0e(o,a,Fy.paramIsX),s&&(a._extremes[o._id]=N0.findExtremes(o,s,P0e(a))));if(l==="array"){let f=L0e(t,a,"y");Object.entries(f).forEach(([c,h])=>{o=N0.getFromId(t,c),a._extremes[o._id]=N0.findExtremes(o,h,z0e(a))})}else a.yref!=="paper"&&l!=="domain"&&(o=N0.getFromId(t,a.yref),s=I0e(o,a,Fy.paramIsY),s&&(a._extremes[o._id]=N0.findExtremes(o,s,z0e(a))))}};function L0e(e,t,r){let n=t[r+"ref"],i=r==="x"?Fy.paramIsX:Fy.paramIsY;function a(c,h){c==="paper"||N0.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(h))}let o={};if(t.type==="path"&&t.path){let c=t.path.match(Fy.segmentRE)||[];for(var s=0,u=0;up&&(a(n[s],y[p]),s++)}}else a(n[0],t[r+"0"]),a(n[1],t[r+"1"]);let l={};for(let c in o){let h=N0.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=lV.decodeDate(f)),l[h._id]=o[c].map(f)}}return l}function P0e(e){return D0e(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function z0e(e){return D0e(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function D0e(e,t,r,n,i,a){var o=e/2,s=a;if(t==="pixel"){var u=i?lV.extractPathCoords(i,a?Fy.paramIsY:Fy.paramIsX):[r,n],l=sV.aggNums(Math.max,null,u),f=sV.aggNums(Math.min,null,u),c=f<0?Math.abs(f)+o:o,h=l>0?l+o:o;return{ppad:o,ppadplus:s?c:h,ppadminus:s?h:c}}else return{ppad:o}}function I0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,u=0,l=i?e.r2c:e.d2c,f=t[n+"sizemode"]==="scaled";if(f?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],u=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[l(a)+s,l(o)+u];if(t.path){var c=1/0,h=-1/0,d=t.path.match(Fy.segmentRE),p,y,b,v,C;for(e.type==="date"&&(l=lV.decodeDate(l)),p=0;ph&&(h=C)));if(h>=c)return[c,h]}}});var q0e=we((Our,B0e)=>{"use strict";var O0e=pz();B0e.exports={moduleType:"component",name:"shapes",layoutAttributes:oV(),supplyLayoutDefaults:M0e(),supplyDrawNewShapeDefaults:C0e(),includeBasePlot:X5()("shapes"),calcAutorange:F0e(),draw:O0e.draw,drawOne:O0e.drawOne}});var uV=we((qur,U0e)=>{"use strict";var N0e=qh(),gyt=Lf().templatedArray,Bur=W5();U0e.exports=gyt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",N0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",N0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var G0e=we((Nur,V0e)=>{"use strict";var _yt=ei(),fV=wu(),xyt=$d(),byt=uV(),wyt="images";V0e.exports=function(t,r){var n={name:wyt,handleItemDefaults:Ayt};xyt(t,r,n)};function Ayt(e,t,r){function n(h,d){return _yt.coerce(e,t,byt,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],u=0;u<2;u++){var l=s[u],f=fV.coerceRef(e,t,o,l,"paper",void 0);if(f!=="paper"){var c=fV.getFromId(o,f);c._imgIndices.push(t._index)}fV.coercePosition(t,o,n,f,l,0)}return t}});var X0e=we((Uur,j0e)=>{"use strict";var H0e=Jl(),Tyt=Mu(),TA=wu(),W0e=jc(),Syt=jv();j0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var Z0e=ku(),Myt=ML();Y0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,u=r._id.charAt(0),l,f,c=0;c{"use strict";J0e.exports={moduleType:"component",name:"images",layoutAttributes:uV(),supplyLayoutDefaults:G0e(),includeBasePlot:X5()("images"),draw:X0e(),convertCoords:K0e()}});var TI=we((Hur,Q0e)=>{"use strict";Q0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var cV=we((Wur,tme)=>{"use strict";var Eyt=gc(),kyt=Bh(),Cyt=Su().extendFlat,Lyt=Sc().overrideAll,Pyt=FL(),eme=Lf().templatedArray,zyt=eme("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});tme.exports=Lyt(eme("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:zyt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Cyt(Pyt({editType:"arraydraw"}),{}),font:Eyt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:kyt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var ame=we((jur,nme)=>{"use strict";var SI=ei(),rme=$d(),ime=cV(),Iyt=TI(),Dyt=Iyt.name,Ryt=ime.buttons;nme.exports=function(t,r){var n={name:Dyt,handleItemDefaults:Fyt};rme(t,r,n)};function Fyt(e,t,r){function n(o,s){return SI.coerce(e,t,ime,o,s)}var i=rme(e,t,{name:"buttons",handleItemDefaults:Oyt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),SI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),SI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Oyt(e,t){function r(i,a){return SI.coerce(e,t,Ryt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var lme=we((Xur,sme)=>{"use strict";sme.exports=eh;var Nm=Jl(),ome=jl(),SA=Mu(),MI=ei();function eh(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}eh.barWidth=2;eh.barLength=20;eh.barRadius=2;eh.barPad=1;eh.barColor="#808BA4";eh.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,u=this.position.w,l=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",y=c==="up",b=u,v=f,C,M,A,L;!h&&!d&&!p&&!y&&(this.position.direction="down",h=!0);var x=h||y;x?(C=s,M=C+b,h?(A=l,L=Math.min(A+v,o),v=L-A):(L=l+v,A=Math.max(L-v,0),v=L-A)):(A=l,L=A+v,d?(M=s+b,C=Math.max(M-b,0),b=M-C):(C=s,M=Math.min(C+b,a),b=M-C)),this._box={l:C,t:A,w:b,h:v};var k=u>b,S=eh.barLength+2*eh.barPad,m=eh.barWidth+2*eh.barPad,P=s,E=l+f;E+m>o&&(E=o-m);var O=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(ome.fill,eh.barColor),k?(this.hbar=O.attr({rx:eh.barRadius,ry:eh.barRadius,x:P,y:E,width:S,height:m}),this._hbarXMin=P+S/2,this._hbarTranslateMax=b-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var F=f>v,U=eh.barWidth+2*eh.barPad,G=eh.barLength+2*eh.barPad,j=s+u,W=l;j+U>a&&(j=a-U);var N=this.container.selectAll("rect.scrollbar-vertical").data(F?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(ome.fill,eh.barColor),F?(this.vbar=N.attr({rx:eh.barRadius,ry:eh.barRadius,x:j,y:W,width:U,height:G}),this._vbarYMin=W+G/2,this._vbarTranslateMax=v-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,re=C-.5,ae=F?M+U+.5:M+.5,me=A-.5,Le=k?L+m+.5:L+.5,Ce=i._topdefs.selectAll("#"+H).data(k||F?[0]:[]);if(Ce.exit().remove(),Ce.enter().append("clipPath").attr("id",H).append("rect"),k||F?(this._clipRect=Ce.select("rect").attr({x:Math.floor(re),y:Math.floor(me),width:Math.ceil(ae)-Math.floor(re),height:Math.ceil(Le)-Math.floor(me)}),this.container.call(SA.setClipUrl,H,this.gd),this.bg.attr({x:s,y:l,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(SA.setClipUrl,null),delete this._clipRect),k||F){var de=Nm.behavior.drag().on("dragstart",function(){Nm.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var te=Nm.behavior.drag().on("dragstart",function(){Nm.event.sourceEvent.preventDefault(),Nm.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(te),F&&this.vbar.on(".drag",null).call(te)}this.setTranslate(r,n)};eh.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(SA.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};eh.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Nm.event.dx),this.vbar&&(r-=Nm.event.dy),this.setTranslate(t,r)};eh.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Nm.event.deltaY),this.vbar&&(r+=Nm.event.deltaY),this.setTranslate(t,r)};eh.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=MI.constrain(Nm.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var u=r+this._vbarYMin,l=u+this._vbarTranslateMax,f=MI.constrain(Nm.event.y,u,l),c=(f-u)/(l-u),h=this.position.h-this._box.h;r=c*h}this.setTranslate(t,r)};eh.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=MI.constrain(t||0,0,n),r=MI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(SA.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(SA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(SA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var gme=we((Zur,yme)=>{"use strict";var MA=Jl(),mE=Cc(),yE=jl(),EA=Mu(),t0=ei(),EI=Wf(),Byt=Lf().arrayEditor,fme=Nh().LINE_SPACING,Uu=TI(),qyt=lme();yme.exports=function(t){var r=t._fullLayout,n=t0.filterVisible(r[Uu.name]);function i(h){mE.autoMargin(t,vme(h))}var a=r._menulayer.selectAll("g."+Uu.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(Uu.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){MA.select(this).selectAll("g."+Uu.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+Uu.headerGroupClassName).data(n,Nyt);o.enter().append("g").classed(Uu.headerGroupClassName,!0);for(var s=t0.ensureSingle(a,"g",Uu.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),u=0;u{"use strict";var Xyt=TI();_me.exports={moduleType:"component",name:Xyt.name,layoutAttributes:cV(),supplyLayoutDefaults:ame(),draw:gme()}});var _E=we((Kur,bme)=>{"use strict";bme.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var vV=we((Jur,Tme)=>{"use strict";var wme=gc(),Zyt=FL(),Yyt=Su().extendDeepAll,Kyt=Sc().overrideAll,Jyt=jM(),Ame=Lf().templatedArray,f2=_E(),$yt=Ame("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});Tme.exports=Kyt(Ame("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:$yt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Yyt(Zyt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Jyt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:wme({})},font:wme({}),activebgcolor:{valType:"color",dflt:f2.gripBgActiveColor},bgcolor:{valType:"color",dflt:f2.railBgColor},bordercolor:{valType:"color",dflt:f2.railBorderColor},borderwidth:{valType:"number",min:0,dflt:f2.railBorderWidth},ticklen:{valType:"number",min:0,dflt:f2.tickLength},tickcolor:{valType:"color",dflt:f2.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:f2.minorTickLength}}),"arraydraw","from-root")});var kme=we(($ur,Eme)=>{"use strict";var kA=ei(),Sme=$d(),Mme=vV(),Qyt=_E(),egt=Qyt.name,tgt=Mme.steps;Eme.exports=function(t,r){Sme(t,r,{name:egt,handleItemDefaults:rgt})};function rgt(e,t,r){function n(c,h){return kA.coerce(e,t,Mme,c,h)}for(var i=Sme(e,t,{name:"steps",handleItemDefaults:igt}),a=0,o=0;o{"use strict";var Um=Jl(),kI=Cc(),k_=jl(),Vm=Mu(),r0=ei(),ngt=r0.strTranslate,xE=Wf(),agt=Lf().arrayEditor,df=_E(),gV=Nh(),Pme=gV.LINE_SPACING,mV=gV.FROM_TL,yV=gV.FROM_BR;Ome.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=ogt(n,t),a=n._infolayer.selectAll("g."+df.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(df.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),kI.autoMargin(t,zme(f))}if(a.exit().each(function(){Um.select(this).selectAll("g."+df.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+df.groupClassName).data(i,sgt);s.enter().append("g").classed(df.groupClassName,!0),s.exit().each(o).remove();for(var u=0;u0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",ngt(o-df.gripWidth*.5,t._dims.currentValueTotalHeight))}}function _V(e,t){var r=e._dims;return r.inputAreaStart+df.stepInset+(r.inputAreaLength-2*df.stepInset)*Math.min(1,Math.max(0,t))}function Lme(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-df.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*df.stepInset-2*r.inputAreaStart)))}function pgt(e,t,r){var n=r._dims,i=r0.ensureSingle(e,"rect",df.railTouchRectClass,function(a){a.call(Rme,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,df.tickOffset+r.ticklen+n.labelHeight)}).call(k_.fill,r.bgcolor).attr("opacity",0),Vm.setTranslate(i,0,n.currentValueTotalHeight)}function vgt(e,t){var r=t._dims,n=r.inputAreaLength-df.railInset*2,i=r0.ensureSingle(e,"rect",df.railRectClass);i.attr({width:n,height:df.railWidth,rx:df.railRadius,ry:df.railRadius,"shape-rendering":"crispEdges"}).call(k_.stroke,t.bordercolor).call(k_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Vm.setTranslate(i,df.railInset,(r.inputAreaWidth-df.railWidth)*.5+r.currentValueTotalHeight)}});var Nme=we((efr,qme)=>{"use strict";var mgt=_E();qme.exports={moduleType:"component",name:mgt.name,layoutAttributes:vV(),supplyLayoutDefaults:kme(),draw:Bme()}});var LI=we((tfr,Vme)=>{"use strict";var Ume=Bh();Vme.exports={bgcolor:{valType:"color",dflt:Ume.background,editType:"plot"},bordercolor:{valType:"color",dflt:Ume.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var xV=we((rfr,Gme)=>{"use strict";Gme.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var PI=we((ifr,Hme)=>{"use strict";Hme.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Xme=we(II=>{"use strict";var ygt=jc(),ggt=Wf(),Wme=PI(),_gt=Nh().LINE_SPACING,zI=Wme.name;function jme(e){var t=e&&e[zI];return t&&t.visible}II.isVisible=jme;II.makeData=function(e){for(var t=ygt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var DI=ei(),Zme=Lf(),Yme=jc(),xgt=LI(),bgt=xV();Kme.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;DI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Zme.newContainer(a,"rangeslider");function u(L,x){return DI.coerce(o,s,xgt,L,x)}var l,f;function c(L,x){return DI.coerce(l,f,bgt,L,x)}var h=u("visible");if(h){u("bgcolor",r.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!a.isValidRange(o.range)),u("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(L){return L.slice(0,Math.max(0,L.indexOf("y")))===Yme.name2id(n)}).map(function(L){return L.slice(L.indexOf("y"),L.length)}),y=DI.simpleMap(p,Yme.id2name),b=0;b{"use strict";var wgt=jc().list,Agt=Mm().getAutoRange,Tgt=PI();$me.exports=function(t){for(var r=wgt(t,"x",!0),n=0;n{"use strict";var RI=Jl(),Sgt=$l(),Mgt=Cc(),dh=ei(),FI=dh.strTranslate,tye=Mu(),C_=jl(),Egt=Ob(),kgt=Mh(),bV=jc(),Cgt=xp(),Lgt=Em(),Sf=PI();rye.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)j=E[W+1];else if(G=N.pmax)j=E[W+1];else if(G0?e.touches[0].clientX:0}function Pgt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+Sf.slideBoxClassName).node(),a=e.select("rect."+Sf.grabAreaMinClassName).node(),o=e.select("rect."+Sf.grabAreaMaxClassName).node();function s(){var u=RI.event,l=u.target,f=eye(u),c=f-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),p=Cgt.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",b),p.addEventListener("mousemove",y),p.addEventListener("mouseup",b);function y(v){var C=eye(v),M=+C-f,A,L,x;switch(l){case i:if(x="ew-resize",h+M>r._length||d+M<0)return;A=h+M,L=d+M;break;case a:if(x="col-resize",h+M>r._length)return;A=h+M,L=d;break;case o:if(x="col-resize",d+M<0)return;A=h,L=d+M;break;default:x="ew-resize",A=c,L=c+M;break}if(L{"use strict";var Ugt=ei(),Vgt=LI(),Ggt=xV(),wV=Xme();nye.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ugt.extendFlat({},Vgt,{yaxis:Ggt})}}},layoutAttributes:LI(),handleDefaults:Jme(),calcAutorange:Qme(),draw:iye(),isVisible:wV.isVisible,makeData:wV.makeData,autoMarginOpts:wV.autoMarginOpts}});var OI=we((ufr,sye)=>{"use strict";var Hgt=gc(),oye=Bh(),Wgt=Lf().templatedArray,jgt=Wgt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});sye.exports={visible:{valType:"boolean",editType:"plot"},buttons:jgt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Hgt({editType:"plot"}),bgcolor:{valType:"color",dflt:oye.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:oye.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var AV=we((ffr,lye)=>{"use strict";lye.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var cye=we((cfr,fye)=>{"use strict";var BI=ei(),Xgt=jl(),Zgt=Lf(),Ygt=$d(),uye=OI(),TV=AV();fye.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=Zgt.newContainer(r,"rangeselector");function u(d,p){return BI.coerce(o,s,uye,d,p)}var l=Ygt(o,s,{name:"buttons",handleItemDefaults:Kgt,calendar:a}),f=u("visible",l.length>0);if(f){var c=Jgt(r,n,i);u("x",c[0]),u("y",c[1]),BI.noneOrAll(t,r,["x","y"]),u("xanchor"),u("yanchor"),BI.coerceFont(u,"font",n.font);var h=u("bgcolor");u("activecolor",Xgt.contrast(h,TV.lightAmount,TV.darkAmount)),u("bordercolor"),u("borderwidth")}};function Kgt(e,t,r,n){var i=n.calendar;function a(u,l){return BI.coerce(e,t,uye.buttons,u,l)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function Jgt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var $gt=OB(),Qgt=ei().titleCase;hye.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=e1t(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function e1t(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=$gt["utc"+Qgt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var u=a.offset(n,-o);s=e.l2r(+a.ceil(u));break}var l=r[1];return[s,l]}});var bye=we((dfr,xye)=>{"use strict";var NI=Jl(),t1t=$l(),r1t=Cc(),pye=jl(),_ye=Mu(),Ng=ei(),vye=Ng.strTranslate,qI=Wf(),i1t=jc(),EV=Nh(),mye=EV.LINE_SPACING,yye=EV.FROM_TL,gye=EV.FROM_BR,MV=AV(),n1t=dye();xye.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(a1t(t),o1t);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=NI.select(this),o=i,s=o.rangeselector,u=a.selectAll("g.button").data(Ng.filterVisible(s.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(l){var f=NI.select(this),c=n1t(o,l);l._isActive=s1t(o,l,c),f.call(SV,s,l),f.call(u1t,s,l,t),f.on("click",function(){t._dragged||t1t.call("_guiRelayout",t,c)}),f.on("mouseover",function(){l._isHovered=!0,f.call(SV,s,l)}),f.on("mouseout",function(){l._isHovered=!1,f.call(SV,s,l)})}),c1t(t,u,s,o._name,a)})};function a1t(e){for(var t=i1t.list(e,"x",!0),r=[],n=0;n{"use strict";wye.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:OI()}}},layoutAttributes:OI(),handleDefaults:cye(),draw:bye()}});var zc=we(kV=>{"use strict";var Tye=Su().extendFlat;kV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:Tye({},r,{}),y:Tye({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};kV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var h1t=ei(),d1t=y3().counter,p1t=zc().attributes,Sye=qh().idRegex,v1t=Lf(),CV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[d1t("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Sye.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Sye.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:p1t({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function UI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function m1t(e,t){var r=e.grid||{},n=UI(t,r,"x"),i=UI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),u=o&&n!==r.xaxes&&s&&i!==r.yaxes,l,f;a?(l=r.subplots.length,f=r.subplots[0].length):(s&&(l=i.length),o&&(f=n.length));var c=v1t.newContainer(t,"grid");function h(x,k){return h1t.coerce(r,c,CV,x,k)}var d=h("rows",l),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var y=h("pattern")==="independent";y&&(a=!0)}c._hasSubplotGrid=a;var b=h("roworder"),v=b==="top to bottom",C=a?.2:.1,M=a?.3:.1,A,L;u&&t._splomGridDflt&&(A=t._splomGridDflt.xside,L=t._splomGridDflt.yside),c._domains={x:Mye("x",h,C,A,p),y:Mye("y",h,M,L,d,v)}}function Mye(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var u=new Array(i),l=s[0],f=(s[1]-l)/(i-o),c=f*(1-o),h=0;h{"use strict";Cye.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var zye=we((gfr,Pye)=>{"use strict";var Lye=ku(),g1t=$l(),_1t=ei(),x1t=Lf(),b1t=PV();Pye.exports=function(e,t,r,n){var i="error_"+n.axis,a=x1t.newContainer(t,i),o=e[i]||{};function s(p,y){return _1t.coerce(o,a,b1t,p,y)}var u=o.array!==void 0||o.value!==void 0||o.type==="sqrt",l=s("visible",u);if(l!==!1){var f=s("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=s("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(s("array"),s("traceref"),c||(s("arrayminus"),s("tracerefminus"))):(f==="percent"||f==="constant")&&(s("value"),c||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||Lye(o.thickness)||Lye(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",g1t.traceIs(t,"gl3d")?0:4))}}});var zV=we((_fr,Dye)=>{"use strict";Dye.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(l,f){var c=+i[f];return[c,c]};var a=t.arrayminus||[];return function(l,f){var c=+i[f],h=+a[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=Iye(r,t.value),s=Iye(r,t.valueminus);return n||t.valueminus===void 0?function(l){var f=o(l);return[f,f]}:function(l){return[s(l),o(l)]}}};function Iye(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var Oye=we((xfr,Fye)=>{"use strict";var IV=ku(),w1t=$l(),DV=wu(),A1t=ei(),T1t=zV();Fye.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Bye=Jl(),L_=ku(),S1t=Mu(),M1t=lc();qye.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,u=i&&i.duration>0,l=t._context.staticPlot;r.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(C){return C.id});var y=M1t.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var b=Bye.select(this).selectAll("g.errorbar").data(f,p);if(b.exit().remove(),!!f.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var v=b.enter().append("g").classed("errorbar",!0);u&&v.style("opacity",0).transition().duration(i.duration).style("opacity",1),S1t.setClipUrl(b,n.layerClipId,t),b.each(function(C){var M=Bye.select(this),A=E1t(C,o,s);if(!(y&&!C.vis)){var L,x=M.select("path.yerror");if(d.visible&&L_(A.x)&&L_(A.yh)&&L_(A.ys)){var k=d.width;L="M"+(A.x-k)+","+A.yh+"h"+2*k+"m-"+k+",0V"+A.ys,A.noYS||(L+="m-"+k+",0h"+2*k),a=!x.size(),a?x=M.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("yerror",!0):u&&(x=x.transition().duration(i.duration).ease(i.easing)),x.attr("d",L)}else x.remove();var S=M.select("path.xerror");if(h.visible&&L_(A.y)&&L_(A.xh)&&L_(A.xs)){var m=(h.copy_ystyle?d:h).width;L="M"+A.xh+","+(A.y-m)+"v"+2*m+"m0,-"+m+"H"+A.xs,A.noXS||(L+="m0,-"+m+"v"+2*m),a=!S.size(),a?S=M.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0):u&&(S=S.transition().duration(i.duration).ease(i.easing)),S.attr("d",L)}else S.remove()}})}})};function E1t(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),L_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),L_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Gye=we((wfr,Vye)=>{"use strict";var k1t=Jl(),Uye=jl();Vye.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=k1t.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Uye.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Uye.stroke,a.color)})}});var jye=we((Afr,Wye)=>{"use strict";var bE=ei(),Hye=Sc().overrideAll,wE=PV(),c2={error_x:bE.extendFlat({},wE),error_y:bE.extendFlat({},wE)};delete c2.error_x.copy_zstyle;delete c2.error_y.copy_zstyle;delete c2.error_y.copy_ystyle;var AE={error_x:bE.extendFlat({},wE),error_y:bE.extendFlat({},wE),error_z:bE.extendFlat({},wE)};delete AE.error_x.copy_ystyle;delete AE.error_y.copy_ystyle;delete AE.error_z.copy_ystyle;delete AE.error_z.copy_zstyle;Wye.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:c2,bar:c2,histogram:c2,scatter3d:Hye(AE,"calc","nested"),scattergl:Hye(c2,"calc","nested")}},supplyDefaults:zye(),calc:Oye(),makeComputeError:zV(),plot:Nye(),style:Gye(),hoverInfo:C1t};function C1t(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Zye=we((Tfr,Xye)=>{"use strict";Xye.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var tge=we((Sfr,ege)=>{"use strict";var P_=Jl(),RV=hd(),GI=Cc(),Yye=$l(),Ug=wu(),VI=xp(),U0=ei(),Hm=U0.strTranslate,Qye=Su().extendFlat,FV=Em(),Gm=Mu(),OV=jl(),L1t=Ob(),P1t=Wf(),z1t=yp().flipScale,I1t=hE(),D1t=pI(),R1t=Rd(),BV=Nh(),Kye=BV.LINE_SPACING,Jye=BV.FROM_TL,$ye=BV.FROM_BR,Yc=Zye().cn;function F1t(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Yc.colorbar).data(O1t(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(Yc.colorbar,!0),r.each(function(n){var i=P_.select(this);U0.ensureSingle(i,"rect",Yc.cbbg),U0.ensureSingle(i,"g",Yc.cbfills),U0.ensureSingle(i,"g",Yc.cblines),U0.ensureSingle(i,"g",Yc.cbaxis,function(o){o.classed(Yc.crisp,!0)}),U0.ensureSingle(i,"g",Yc.cbtitleunshift,function(o){o.append("g").classed(Yc.cbtitle,!0)}),U0.ensureSingle(i,"rect",Yc.cboutline);var a=B1t(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&q1t(i,n,e)}),r.exit().each(function(n){GI.autoMargin(e,n._id)}).remove(),r.order()}function O1t(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function u(M){return Qye(M,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function l(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?z1t(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var f=0;f1){var Be=Math.pow(10,Math.floor(Math.log(ge)/Math.LN10));He*=Be*U0.roundUp(ge/Be,[2,5,10]),(Math.abs(O.start)/O.size+1e-6)%1<2e-6&&(Te.tick0=0)}Te.dtick=He}Te.domain=n?[te+p/A.h,te+H-p/A.h]:[te+d/A.w,te+H-d/A.w],Te.setScale(),e.attr("transform",Hm(Math.round(A.l),Math.round(A.t)));var ce=e.select("."+Yc.cbtitleunshift).attr("transform",Hm(-Math.round(A.l),-Math.round(A.t))),je=Te.ticklabelposition,rt=Te.title.font.size,bt=e.select("."+Yc.cbaxis),Ot,it=0,Ke=0;function zt(Me,oe){var Ne={propContainer:Te,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:M._dfltTitle.colorbar,containerGroup:e.select("."+Yc.cbtitle)},vt=Me.charAt(0)==="h"?Me.slice(1):"h"+Me;e.selectAll("."+vt+",."+vt+"-math-group").remove(),L1t.draw(r,Me,Qye(Ne,oe||{}))}function Mt(){if(n&&be||!n&&!be){var Me,oe;S==="top"&&(Me=d+A.l+re*y,oe=p+A.t+ae*(1-te-H)+3+rt*.75),S==="bottom"&&(Me=d+A.l+re*y,oe=p+A.t+ae*(1-te)-3-rt*.25),S==="right"&&(oe=p+A.t+ae*b+3+rt*.75,Me=d+A.l+re*te),zt(Te._id+"title",{attributes:{x:Me,y:oe,"text-anchor":n?"start":"middle"}})}}function kt(){if(n&&!be||!n&&be){var Me=Te.position||0,oe=Te._offset+Te._length/2,Ne,vt;if(S==="right")vt=oe,Ne=A.l+re*Me+10+rt*(Te.showticklabels?1:.5);else if(Ne=oe,S==="bottom"&&(vt=A.t+ae*Me+10+(je.indexOf("inside")===-1?Te.tickfont.size:0)+(Te.ticks!=="inside"&&t.ticklen||0)),S==="top"){var lt=k.text.split("
").length;vt=A.t+ae*Me+10-j-Kye*rt*lt}zt((n?"h":"v")+Te._id+"title",{avoid:{selection:P_.select(r).selectAll("g."+Te._id+"tick"),side:S,offsetTop:n?0:A.t,offsetLeft:n?A.l:0,maxShift:n?M.width:M.height},attributes:{x:Ne,y:vt,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function $e(){if(!n&&!be||n&&be){var Me=e.select("."+Yc.cbtitle),oe=Me.select("text"),Ne=[-u/2,u/2],vt=Me.select(".h"+Te._id+"title-math-group").node(),lt=15.6;oe.node()&&(lt=parseInt(oe.node().style.fontSize,10)*Kye);var We;if(vt?(We=Gm.bBox(vt),Ke=We.width,it=We.height,it>lt&&(Ne[1]-=(it-lt)/2)):oe.node()&&!oe.classed(Yc.jsPlaceholder)&&(We=Gm.bBox(oe.node()),Ke=We.width,it=We.height),n){if(it){if(it+=5,S==="top")Te.domain[1]-=it/A.h,Ne[1]*=-1;else{Te.domain[0]+=it/A.h;var Ve=P1t.lineCount(oe);Ne[1]+=(1-Ve)*lt}Me.attr("transform",Hm(Ne[0],Ne[1])),Te.setScale()}}else Ke&&(S==="right"&&(Te.domain[0]+=(Ke+rt/2)/A.w),Me.attr("transform",Hm(Ne[0],Ne[1])),Te.setScale())}e.selectAll("."+Yc.cbfills+",."+Yc.cblines).attr("transform",n?Hm(0,Math.round(A.h*(1-Te.domain[1]))):Hm(Math.round(A.w*Te.domain[0]),0)),bt.attr("transform",n?Hm(0,Math.round(-A.t)):Hm(Math.round(-A.l),0));var et=e.select("."+Yc.cbfills).selectAll("rect."+Yc.cbfill).attr("style","").data(U);et.enter().append("rect").classed(Yc.cbfill,!0).attr("style",""),et.exit().remove();var tt=m.map(Te.c2p).map(Math.round).sort(function(vr,Vt){return vr-Vt});et.each(function(vr,Vt){var Pe=[Vt===0?m[0]:(U[Vt]+U[Vt-1])/2,Vt===U.length-1?m[1]:(U[Vt]+U[Vt+1])/2].map(Te.c2p).map(Math.round);n&&(Pe[1]=U0.constrain(Pe[1]+(Pe[1]>Pe[0])?1:-1,tt[0],tt[1]));var xe=P_.select(this).attr(n?"x":"y",me).attr(n?"y":"x",P_.min(Pe)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(P_.max(Pe)-P_.min(Pe),2));if(t._fillgradient)Gm.gradient(xe,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=E(vr).replace("e-","");xe.attr("fill",RV(Oe).toHexString())}});var Lt=e.select("."+Yc.cblines).selectAll("path."+Yc.cbline).data(x.color&&x.width?G:[]);Lt.enter().append("path").classed(Yc.cbline,!0),Lt.exit().remove(),Lt.each(function(vr){var Vt=me,Pe=Math.round(Te.c2p(vr))+x.width/2%1;P_.select(this).attr("d","M"+(n?Vt+","+Pe:Pe+","+Vt)+(n?"h":"v")+j).call(Gm.lineGroupStyle,x.width,P(vr),x.dash)}),bt.selectAll("g."+Te._id+"tick,path").remove();var jt=me+j+(u||0)/2-(t.ticks==="outside"?1:0),or=Ug.calcTicks(Te),yr=Ug.getTickSigns(Te)[2];return Ug.drawTicks(r,Te,{vals:Te.ticks==="inside"?Ug.clipEnds(Te,or):or,layer:bt,path:Ug.makeTickPath(Te,jt,yr),transFn:Ug.makeTransTickFn(Te)}),Ug.drawLabels(r,Te,{vals:or,layer:bt,transFn:Ug.makeTransTickLabelFn(Te),labelFns:Ug.makeLabelFns(Te,jt)})}function De(){var Me,oe=j+u/2;je.indexOf("inside")===-1&&(Me=Gm.bBox(bt.node()),oe+=n?Me.width:Me.height),Ot=ce.select("text");var Ne=0,vt=n&&S==="top",lt=!n&&S==="right",We=0;if(Ot.node()&&!Ot.classed(Yc.jsPlaceholder)){var Ve,et=ce.select(".h"+Te._id+"title-math-group").node();et&&(n&&be||!n&&!be)?(Me=Gm.bBox(et),Ne=Me.width,Ve=Me.height):(Me=Gm.bBox(ce.node()),Ne=Me.right-A.l-(n?me:Se),Ve=Me.bottom-A.t-(n?Se:me),!n&&S==="top"&&(oe+=Me.height,We=Me.height)),lt&&(Ot.attr("transform",Hm(Ne/2+rt/2,0)),Ne*=2),oe=Math.max(oe,n?Ne:Ve)}var tt=(n?d:p)*2+oe+l+u/2,Lt=0;!n&&k.text&&h==="bottom"&&b<=0&&(Lt=tt/2,tt+=Lt,We+=Lt),M._hColorbarMoveTitle=Lt,M._hColorbarMoveCBTitle=We;var jt=l+u,or=(n?me:Se)-jt/2-(n?d:0),yr=(n?Se:me)-(n?N:p+We-Lt);e.select("."+Yc.cbbg).attr("x",or).attr("y",yr).attr(n?"width":"height",Math.max(tt-Lt,2)).attr(n?"height":"width",Math.max(N+jt,2)).call(OV.fill,f).call(OV.stroke,t.bordercolor).style("stroke-width",l);var vr=lt?Math.max(Ne-10,0):0;e.selectAll("."+Yc.cboutline).attr("x",(n?me:Se+d)+vr).attr("y",(n?Se+p-N:me)+(vt?it:0)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(N-(n?2*p+it:2*d+vr),2)).call(OV.stroke,t.outlinecolor).style({fill:"none","stroke-width":u});var Vt=n?Le*tt:0,Pe=n?0:(1-Ce)*tt-We;if(Vt=C?A.l-Vt:-Vt,Pe=v?A.t-Pe:-Pe,e.attr("transform",Hm(Vt,Pe)),!n&&(l||RV(f).getAlpha()&&!RV.equals(M.paper_bgcolor,f))){var xe=bt.selectAll("text"),Oe=xe[0].length,ze=e.select("."+Yc.cbbg).node(),Re=Gm.bBox(ze),ht=Gm.getTranslate(e),st=2;xe.each(function(Vr,Ai){var Bi=0,Di=Oe-1;if(Ai===Bi||Ai===Di){var ln=Gm.bBox(this),hn=Gm.getTranslate(this),qr;if(Ai===Di){var _i=ln.right+hn.x,zi=Re.right+ht.x+Se-l-st+y;qr=zi-_i,qr>0&&(qr=0)}else if(Ai===Bi){var Rt=ln.left+hn.x,_t=Re.left+ht.x+Se+l+st;qr=_t-Rt,qr<0&&(qr=0)}qr&&(Oe<3?this.setAttribute("transform","translate("+qr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var gt={},xt=Jye[c],pr=$ye[c],br=Jye[h],cr=$ye[h],Er=tt-j;n?(a==="pixels"?(gt.y=b,gt.t=N*br,gt.b=N*cr):(gt.t=gt.b=0,gt.yt=b+i*br,gt.yb=b-i*cr),s==="pixels"?(gt.x=y,gt.l=tt*xt,gt.r=tt*pr):(gt.l=Er*xt,gt.r=Er*pr,gt.xl=y-o*xt,gt.xr=y+o*pr)):(a==="pixels"?(gt.x=y,gt.l=N*xt,gt.r=N*pr):(gt.l=gt.r=0,gt.xl=y+i*xt,gt.xr=y-i*pr),s==="pixels"?(gt.y=1-b,gt.t=tt*br,gt.b=tt*cr):(gt.t=Er*br,gt.b=Er*cr,gt.yt=b-o*br,gt.yb=b+o*cr));var ii=t.y<.5?"b":"t",jr=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var kr={r:M.width-or-Vt,l:or+gt.r,b:M.height-yr-Pe,t:yr+gt.b};C&&v?GI.autoMargin(r,t._id,gt):C?r._fullLayout._reservedMargin[t._id][ii]=kr[ii]:v||n?r._fullLayout._reservedMargin[t._id][jr]=kr[jr]:r._fullLayout._reservedMargin[t._id][ii]=kr[ii]}return U0.syncOrAsync([GI.previousPromises,Mt,$e,kt,GI.previousPromises,De],r)}function q1t(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,u;VI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),FV(e)},moveFn:function(l,f){e.attr("transform",o+Hm(l,f)),s=VI.align((n?t._uFrac:t._vFrac)+l/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),u=VI.align((n?t._vFrac:1-t._uFrac)-f/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=VI.getCursor(s,u,t.xanchor,t.yanchor);FV(e,c)},doneFn:function(){if(FV(e),s!==void 0&&u!==void 0){var l={};l[t._propPrefix+"x"]=s,l[t._propPrefix+"y"]=u,t._traceIndex!==void 0?Yye.call("_guiRestyle",r,l,t._traceIndex):Yye.call("_guiRelayout",r,l)}}})}function N1t(e,t,r){var n=t._levels,i=[],a=[],o,s,u=n.end+n.size/100,l=n.size,f=1.001*r[0]-.001*r[1],c=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*l,!(l>0?o>=u:o<=u));s++)o>f&&o0?o>=u:o<=u));s++)o>r[0]&&o{"use strict";rge.exports={moduleType:"component",name:"colorbar",attributes:fP(),supplyDefaults:Xq(),draw:tge().draw,hasColorbar:Nq()}});var age=we((Efr,nge)=>{"use strict";nge.exports={moduleType:"component",name:"legend",layoutAttributes:UN(),supplyLayoutDefaults:GN(),draw:i7(),style:QN()}});var sge=we((kfr,oge)=>{"use strict";oge.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var uge=we((Cfr,lge)=>{"use strict";lge.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var NV=we((Lfr,dge)=>{"use strict";var V1t=$l(),hge=ei(),qV=hge.extendFlat,fge=hge.extendDeep;function cge(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function G1t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}dge.exports=function(t,r){var n,i=t.data,a=t.layout,o=fge([],i),s=fge({},a,cge(r.tileClass)),u=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var l=Object.keys(s);for(n=0;n{"use strict";var H1t=Sb().EventEmitter,W1t=$l(),j1t=ei(),pge=Og(),X1t=NV(),Z1t=Kz(),Y1t=Jz();function K1t(e,t){var r=new H1t,n=X1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=pge.getDelay(i._fullLayout);setTimeout(function(){var u=Z1t(i),l=document.createElement("canvas");l.id=j1t.randstr(),r=Y1t({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:l,emitter:r,svg:u}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=pge.getRedrawFunc(i);return W1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}vge.exports=K1t});var _ge=we((zfr,gge)=>{"use strict";var yge=Og(),J1t={getDelay:yge.getDelay,getRedrawFunc:yge.getRedrawFunc,clone:NV(),toSVG:Kz(),svgToImg:Jz(),toImage:mge(),downloadImage:_U()};gge.exports=J1t});var bge=we(Vg=>{"use strict";Vg.version=yL().version;Dee();wne();var $1t=$l(),TE=Vg.register=$1t.register,VV=Ude(),xge=Object.keys(VV);for(HI=0;HI{"use strict";wge.exports=bge()});var Oy=we((Rfr,kge)=>{"use strict";var lh=Zc(),Tge=Xc().axisHoverFormat,{hovertemplateAttrs:Q1t,texttemplateAttrs:e_t,templatefallbackAttrs:Sge}=Ff(),Ege=nc(),t_t=gc(),Mge=T_(),r_t=Id().pattern,h2=Su().extendFlat,GV=t_t({editType:"calc",arrayOk:!0,colorEditType:"style"}),i_t=lh.marker,n_t=i_t.line,a_t=h2({},n_t.width,{dflt:0}),o_t=h2({width:a_t,editType:"calc"},Ege("marker.line")),s_t=h2({line:o_t,editType:"calc"},Ege("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:r_t,cornerradius:{valType:"any",editType:"calc"}});kge.exports={x:lh.x,x0:lh.x0,dx:lh.dx,y:lh.y,y0:lh.y0,dy:lh.dy,xperiod:lh.xperiod,yperiod:lh.yperiod,xperiod0:lh.xperiod0,yperiod0:lh.yperiod0,xperiodalignment:lh.xperiodalignment,yperiodalignment:lh.yperiodalignment,xhoverformat:Tge("x"),yhoverformat:Tge("y"),text:lh.text,texttemplate:e_t({editType:"plot"},{keys:Mge.eventDataKeys}),texttemplatefallback:Sge({editType:"plot"}),hovertext:lh.hovertext,hovertemplate:Q1t({},{keys:Mge.eventDataKeys}),hovertemplatefallback:Sge(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:h2({},GV,{}),insidetextfont:h2({},GV,{}),outsidetextfont:h2({},GV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:h2({},lh.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:s_t,offsetgroup:lh.offsetgroup,alignmentgroup:lh.alignmentgroup,selected:{marker:{opacity:lh.selected.marker.opacity,color:lh.selected.marker.color,editType:"style"},textfont:lh.selected.textfont,editType:"style"},unselected:{marker:{opacity:lh.unselected.marker.opacity,color:lh.unselected.marker.color,editType:"style"},textfont:lh.unselected.textfont,editType:"style"},zorder:lh.zorder}});var jI=we((Ffr,Cge)=>{"use strict";Cge.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var XI=we((Ofr,zge)=>{"use strict";var l_t=jl(),Lge=yp().hasColorscale,Pge=nd(),u_t=ei().coercePattern;zge.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=Lge(t,"marker");s&&Pge(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",l_t.defaultLine),Lge(t,"marker.line")&&Pge(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),u_t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var i0=we((Bfr,Bge)=>{"use strict";var Ige=ku(),LA=ei(),Dge=jl(),f_t=$l(),c_t=lA(),h_t=Dm(),d_t=XI(),p_t=r2(),Rge=Oy(),ZI=LA.coerceFont;function v_t(e,t,r,n){function i(l,f){return LA.coerce(e,t,Rge,l,f)}var a=c_t(e,t,n,i);if(!a){t.visible=!1;return}h_t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");Oge(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),d_t(e,t,i,r,n);var s=(t.marker.line||{}).color,u=f_t.getComponentMethod("errorbars","supplyDefaults");u(e,t,s||Dge.defaultLine,{axis:"y"}),u(e,t,s||Dge.defaultLine,{axis:"x",inherit:"y"}),LA.coerceSelectionMarkerOpacity(t,i)}function m_t(e,t){var r,n;function i(s,u){return LA.coerce(n._input,n,Rge,s,u)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&Ige(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Oge(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,u=a.moduleHasConstrain!==!1,l=a.moduleHasCliponaxis!==!1,f=a.moduleHasTextangle!==!1,c=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",p=d||i==="inside",y=d||i==="outside";if(p||y){var b=ZI(n,"textfont",r.font),v=LA.extendFlat({},b),C=e.textfont&&e.textfont.color,M=!C;if(M&&delete v.color,ZI(n,"insidetextfont",v),h){var A=LA.extendFlat({},b);M&&delete A.color,ZI(n,"pathbar.textfont",A)}y&&ZI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),u&&n("constraintext"),l&&n("cliponaxis"),f&&n("textangle"),n("texttemplate"),n("texttemplatefallback")}p&&c&&n("insidetextanchor")}Bge.exports={supplyDefaults:v_t,crossTraceDefaults:m_t,handleText:Oge,validateCornerradius:Fge}});var HV=we((qfr,qge)=>{"use strict";var y_t=$l(),g_t=wu(),__t=ei(),x_t=jI(),b_t=i0().validateCornerradius;qge.exports=function(e,t,r){function n(y,b){return __t.coerce(e,t,x_t,y,b)}for(var i=!1,a=!1,o=!1,s={},u=n("barmode"),l=u==="group",f=0;f0&&!s[h]&&(o=!0),s[h]=!0),c.visible&&c.type==="histogram"){var d=g_t.getFromId({_fullLayout:t},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}u!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var p=n("barcornerradius");t.barcornerradius=b_t(p)}});var SE=we((Nfr,Nge)=>{"use strict";var PA=ei();Nge.exports=function(t,r){for(var n=0;n{"use strict";var Uge=wu(),Vge=Fm(),Gge=yp().hasColorscale,Hge=gp(),w_t=SE(),A_t=O0();Wge.exports=function(t,r){var n=Uge.getFromId(t,r.xaxis||"x"),i=Uge.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",c),s=i.makeCalcdata(r,"y"),u=Vge(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y",c),s=n.makeCalcdata(r,"x"),u=Vge(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),p=0;p{"use strict";var T_t=Jl(),S_t=ei();function M_t(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var u=s.transform;if(u){u.scale=a&&u.hide?0:i/u.fontSize;var l=T_t.select(this).select("text");S_t.setTransormAndDisplay(l,u)}})}}function E_t(e,t,r){if(r.uniformtext.mode){var n=Xge(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var C_t=ku(),L_t=hd(),Yge=ei().isArrayOrTypedArray;d2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};d2.coerceNumber=function(e,t,r){if(C_t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};d2.coerceColor=function(e,t,r){return L_t(t).isValid()?t:r!==void 0?r:e.dflt};d2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};d2.getValue=function(e,t){var r;return Yge(e)?t{"use strict";var ME=Jl(),P_t=jl(),EE=Mu(),Kge=ei(),Jge=$l(),$ge=Ap().resizeText,WV=Oy(),z_t=WV.textfont,I_t=WV.insidetextfont,D_t=WV.outsidetextfont,rp=YI();function R_t(e){var t=ME.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");$ge(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&ME.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=ME.select(this),o=i[0].trace;Qge(a,o,e)}),Jge.getComponentMethod("errorbars","style")(t)}function Qge(e,t,r){EE.pointStyle(e.selectAll("path"),t,r),e1e(e,t,r)}function e1e(e,t,r){e.selectAll("text").each(function(n){var i=ME.select(this),a=Kge.ensureUniformFontSize(r,t1e(i,n,t,r));EE.font(i,a)})}function F_t(e,t,r){var n=t[0].trace;n.selectedpoints?O_t(r,n,e):(Qge(r,n,e),Jge.getComponentMethod("errorbars","style")(r))}function O_t(e,t,r){EE.selectedPointStyle(e.selectAll("path"),t),B_t(e.selectAll("text"),t,r)}function B_t(e,t,r){e.each(function(n){var i=ME.select(this),a;if(n.selected){a=Kge.ensureUniformFontSize(r,t1e(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),EE.font(i,a)}else EE.selectedTextStyle(i,t)})}function t1e(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=a1e(t,r);a=i1e(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=n1e(r,t.i,i));return a}function r1e(e,t,r){return jV(z_t,e.textfont,t,r)}function i1e(e,t,r,n){var i=r1e(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:P_t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),jV(I_t,e.insidetextfont,t,i)}function n1e(e,t,r){var n=r1e(e,t,r);return jV(D_t,e.outsidetextfont,t,n)}function jV(e,t,r,n){t=t||{};var i=rp.getValue(t.family,r),a=rp.getValue(t.size,r),o=rp.getValue(t.color,r),s=rp.getValue(t.weight,r),u=rp.getValue(t.style,r),l=rp.getValue(t.variant,r),f=rp.getValue(t.textcase,r),c=rp.getValue(t.lineposition,r),h=rp.getValue(t.shadow,r);return{family:rp.coerceString(e.family,i,n.family),size:rp.coerceNumber(e.size,a,n.size),color:rp.coerceColor(e.color,o,n.color),weight:rp.coerceString(e.weight,s,n.weight),style:rp.coerceString(e.style,u,n.style),variant:rp.coerceString(e.variant,l,n.variant),textcase:rp.coerceString(e.variant,f,n.textcase),lineposition:rp.coerceString(e.variant,c,n.lineposition),shadow:rp.coerceString(e.variant,h,n.shadow)}}function a1e(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}o1e.exports={style:R_t,styleTextPoints:e1e,styleOnSelect:F_t,getInsideTextFont:i1e,getOutsideTextFont:n1e,getBarColor:a1e,resizeText:$ge}});var v2=we((Wfr,p1e)=>{"use strict";var KI=Jl(),JI=ku(),Od=ei(),q_t=Wf(),N_t=jl(),z_=Mu(),U_t=$l(),$I=wu().tickText,s1e=Ap(),V_t=s1e.recordMinTextSize,G_t=s1e.clearMinTextSize,XV=V0(),zA=YI(),H_t=T_(),l1e=Oy(),W_t=l1e.text,j_t=l1e.textposition,X_t=iv().appendArrayPointValue,Gp=H_t.TEXTPAD;function Z_t(e){return e.id}function Y_t(e){if(e.ids)return Z_t}function ZV(e){return(e>0)-(e<0)}function By(e,t){return e0}function J_t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,u=e._fullLayout,l=e._context.staticPlot;i||(i={mode:u.barmode,norm:u.barmode,gap:u.bargap,groupgap:u.bargroupgap},G_t("bar",u));var f=Od.makeTraceGroups(n,r,"trace bars").each(function(c){var h=KI.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",b=d.type==="funnel",v=d.type==="histogram",C=d.type==="bar",M=C||b,A=0;y&&d.connector.visible&&d.connector.mode==="between"&&(A=d.connector.line.width/2);var L=d.orientation==="h",x=f1e(i),k=Od.ensureSingle(h,"g","points"),S=Y_t(d),m=k.selectAll("g.point").data(Od.identity,S);m.enter().append("g").classed("point",!0),m.exit().remove(),m.each(function(E,O){var F=KI.select(this),U=K_t(E,o,s,L),G=U[0][0],j=U[0][1],W=U[1][0],N=U[1][1],H=(L?j-G:N-W)===0;H&&M&&zA.getLineWidth(d,E)&&(H=!1),H||(H=!JI(G)||!JI(j)||!JI(W)||!JI(N)),E.isBlank=H,H&&(L?j=G:N=W),A&&!H&&(L?(G-=By(G,j)*A,j+=By(G,j)*A):(W-=By(W,N)*A,N+=By(W,N)*A));var re,ae;if(d.type==="waterfall"){if(!H){var me=d[E.dir].marker;re=me.line.width,ae=me.color}}else re=zA.getLineWidth(d,E),ae=E.mc||d.marker.color;function Le(oe){var Ne=KI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?KI.round(Math.round(oe)-Ne,2):oe}function Ce(oe,Ne,vt){return vt&&oe===Ne?oe:Math.abs(oe-Ne)>=2?Le(oe):oe>Ne?Math.ceil(oe):Math.floor(oe)}var de=N_t.opacity(ae),te=de<1||re>.01?Le:Ce;e._context.staticPlot||(G=te(G,j,L),j=te(j,G,L),W=te(W,N,!L),N=te(N,W,!L));var Se=L?o.c2p:s.c2p,Te;E.s0>0?Te=E._sMax:E.s0<0?Te=E._sMin:Te=E.s1>0?E._sMax:E._sMin;function be(oe,Ne){if(!oe)return 0;var vt=Math.abs(L?N-W:j-G),lt=Math.abs(L?j-G:N-W),We=te(Math.abs(Se(Te,!0)-Se(0,!0))),Ve=E.hasB?Math.min(vt/2,lt/2):Math.min(vt/2,We),et;if(Ne==="%"){var tt=Math.min(50,oe);et=vt*(tt/100)}else et=oe;return te(Math.max(Math.min(et,Ve),0))}var He=C||v?be(p.cornerradiusvalue,p.cornerradiusform):0,Ie,ge,Be="M"+G+","+W+"V"+N+"H"+j+"V"+W+"Z",ce=0;if(He&&E.s){var je=ZV(E.s0)===0||ZV(E.s)===ZV(E.s0)?E.s1:E.s0;if(ce=te(E.hasB?0:Math.abs(Se(Te,!0)-Se(je,!0))),ce0?Math.sqrt(ce*(2*He-ce)):0,zt=rt>0?Math.max:Math.min;Ie="M"+G+","+W+"V"+(N-it*bt)+"H"+zt(j-(He-ce)*rt,G)+"A "+He+","+He+" 0 0 "+Ot+" "+j+","+(N-He*bt-Ke)+"V"+(W+He*bt+Ke)+"A "+He+","+He+" 0 0 "+Ot+" "+zt(j-(He-ce)*rt,G)+","+(W+it*bt)+"Z"}else if(E.hasB)Ie="M"+(G+He*rt)+","+W+"A "+He+","+He+" 0 0 "+Ot+" "+G+","+(W+He*bt)+"V"+(N-He*bt)+"A "+He+","+He+" 0 0 "+Ot+" "+(G+He*rt)+","+N+"H"+(j-He*rt)+"A "+He+","+He+" 0 0 "+Ot+" "+j+","+(N-He*bt)+"V"+(W+He*bt)+"A "+He+","+He+" 0 0 "+Ot+" "+(j-He*rt)+","+W+"Z";else{ge=Math.abs(N-W)+ce;var Mt=ge0?Math.sqrt(ce*(2*He-ce)):0,$e=bt>0?Math.max:Math.min;Ie="M"+(G+Mt*rt)+","+W+"V"+$e(N-(He-ce)*bt,W)+"A "+He+","+He+" 0 0 "+Ot+" "+(G+He*rt-kt)+","+N+"H"+(j-He*rt+kt)+"A "+He+","+He+" 0 0 "+Ot+" "+(j-Mt*rt)+","+$e(N-(He-ce)*bt,W)+"V"+W+"Z"}}else Ie=Be}else Ie=Be;var De=u1e(Od.ensureSingle(F,"path"),u,i,a);if(De.style("vector-effect",l?"none":"non-scaling-stroke").attr("d",isNaN((j-G)*(N-W))||H&&e._context.staticPlot?"M0,0Z":Ie).call(z_.setClipUrl,t.layerClipId,e),!u.uniformtext.mode&&x){var Me=z_.makePointStyleFns(d);z_.singlePointStyle(E,De,d,Me,e)}$_t(e,t,F,c,O,G,j,W,N,He,ce,i,a),t.layerClipId&&z_.hideOutsideRangePoint(E,F.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;z_.setClipUrl(h,P?null:t.layerClipId,e)});U_t.getComponentMethod("errorbars","plot")(e,f,t,i)}function $_t(e,t,r,n,i,a,o,s,u,l,f,c,h){var d=t.xaxis,p=t.yaxis,y=e._fullLayout,b;function v(ge,Be,ce){var je=Od.ensureSingle(ge,"text").text(Be).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(z_.font,ce).call(q_t.convertToTspans,e);return je}var C=n[0].trace,M=C.orientation==="h",A=txt(y,n,i,d,p);b=rxt(C,i);var L=c.mode==="stack"||c.mode==="relative",x=n[i],k=!L||x._outmost,S=x.hasB,m=l&&l-f>Gp;if(!A||b==="none"||(x.isBlank||a===o||s===u)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=y.font,E=XV.getBarColor(n[i],C),O=XV.getInsideTextFont(C,i,P,E),F=XV.getOutsideTextFont(C,i,P),U=C.insidetextanchor||"end",G=r.datum();M?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Le>0,te;m?S?te=p2(N-2*l,H,me,Le,M)||p2(N,H-2*l,me,Le,M):M?te=p2(N-(l-f),H,me,Le,M)||p2(N,H-2*(l-f),me,Le,M):te=p2(N,H-(l-f),me,Le,M)||p2(N-2*(l-f),H,me,Le,M):te=p2(N,H,me,Le,M),de&&te?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Ce=Od.ensureUniformFontSize(e,b==="outside"?F:O),re=v(r,A,Ce);var Se=re.attr("transform");if(re.attr("transform",""),ae=z_.bBox(re.node()),me=ae.width,Le=ae.height,re.attr("transform",Se),me<=0||Le<=0){re.remove();return}}var Te=C.textangle,be,He;b==="outside"?(He=C.constraintext==="both"||C.constraintext==="outside",be=ext(a,o,s,u,ae,{isHorizontal:M,constrained:He,angle:Te})):(He=C.constraintext==="both"||C.constraintext==="inside",be=d1e(a,o,s,u,ae,{isHorizontal:M,constrained:He,angle:Te,anchor:U,hasB:S,r:l,overhead:f})),be.fontSize=Ce.size,V_t(C.type==="histogram"?"bar":C.type,be,y),x.transform=be;var Ie=u1e(re,y,c,h);Od.setTransormAndDisplay(Ie,be)}function p2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function c1e(e){return e==="auto"?0:e}function h1e(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function d1e(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=a.anchor,f=l==="end",c=l==="start",h=a.leftToRight||0,d=(h+1)/2,p=1-d,y=a.hasB,b=a.r,v=a.overhead,C=i.width,M=i.height,A=Math.abs(t-e),L=Math.abs(n-r),x=A>2*Gp&&L>2*Gp?Gp:0;A-=2*x,L-=2*x;var k=c1e(u);u==="auto"&&!(C<=A&&M<=L)&&(C>A||M>L)&&(!(C>L||M>A)||CGp){var E=Q_t(e,t,r,n,S,b,v,o,y);m=E.scale,P=E.pad}else m=1,s&&(m=Math.min(1,A/S.x,L/S.y)),P=0;var O=i.left*p+i.right*d,F=(i.top+i.bottom)/2,U=(e+Gp)*p+(t-Gp)*d,G=(r+n)/2,j=0,W=0;if(c||f){var N=(o?S.x:S.y)/2;b&&(f||y)&&(x+=P);var H=o?By(e,t):By(r,n);o?c?(U=e+H*x,j=-H*N):(U=t-H*x,j=H*N):c?(G=r+H*x,W=-H*N):(G=n-H*x,W=H*N)}return{textX:O,textY:F,targetX:U,targetY:G,anchorX:j,anchorY:W,scale:m,rotate:k}}function Q_t(e,t,r,n,i,a,o,s,u){var l=Math.max(0,Math.abs(t-e)-2*Gp),f=Math.max(0,Math.abs(n-r)-2*Gp),c=a-Gp,h=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=u?c*2:s?c-o:2*h,p=u?c*2:s?2*h:c-o,y,b,v,C,M;return i.y/i.x>=f/(l-d)?C=f/i.y:i.y/i.x<=(f-p)/l?C=l/i.x:!u&&s?(y=i.x*i.x+i.y*i.y/4,b=-2*i.x*(l-c)-i.y*(f/2-c),v=(l-c)*(l-c)+(f/2-c)*(f/2-c)-c*c,C=(-b+Math.sqrt(b*b-4*y*v))/(2*y)):u?(y=(i.x*i.x+i.y*i.y)/4,b=-i.x*(l/2-c)-i.y*(f/2-c),v=(l/2-c)*(l/2-c)+(f/2-c)*(f/2-c)-c*c,C=(-b+Math.sqrt(b*b-4*y*v))/(2*y)):(y=i.x*i.x/4+i.y*i.y,b=-i.x*(l/2-c)-2*i.y*(f-c),v=(l/2-c)*(l/2-c)+(f-c)*(f-c)-c*c,C=(-b+Math.sqrt(b*b-4*y*v))/(2*y)),C=Math.min(1,C),s?M=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-i.y*C)/2)*(c-(f-i.y*C)/2)))-o):M=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(l-i.x*C)/2)*(c-(l-i.x*C)/2)))-o),{scale:C,pad:M}}function ext(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=i.width,f=i.height,c=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Gp?Gp:0:d=c>2*Gp?Gp:0;var p=1;s&&(p=o?Math.min(1,h/f):Math.min(1,c/l));var y=c1e(u),b=h1e(i,y),v=(o?b.x:b.y)/2,C=(i.left+i.right)/2,M=(i.top+i.bottom)/2,A=(e+t)/2,L=(r+n)/2,x=0,k=0,S=o?By(t,e):By(r,n);return o?(A=t-S*d,x=S*v):(L=n+S*d,k=-S*v),{textX:C,textY:M,targetX:A,targetY:L,anchorX:x,anchorY:k,scale:p,rotate:y}}function txt(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=ixt(e,t,r,n,i):a.textinfo?s=nxt(t,r,n,i):s=zA.getValue(a.text,r),zA.coerceString(W_t,s)}function rxt(e,t){var r=zA.getValue(e.textposition,t);return zA.coerceEnumerated(j_t,r)}function ixt(e,t,r,n,i){var a=t[0].trace,o=Od.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",u=a.type==="waterfall",l=a.type==="funnel",f=a.orientation==="h",c,h,d,p;f?(c="y",h=i,d="x",p=n):(c="x",h=n,d="y",p=i);function y(x){return $I(h,h.c2l(x),!0).text}function b(x){return $I(p,p.c2l(x),!0).text}var v=t[r],C={};C.label=v.p,C.labelLabel=C[c+"Label"]=y(v.p);var M=Od.castOption(a,v.i,"text");(M===0||M)&&(C.text=M),C.value=v.s,C.valueLabel=C[d+"Label"]=b(v.s);var A={};X_t(A,a,v.i),(s||A.x===void 0)&&(A.x=f?C.value:C.label),(s||A.y===void 0)&&(A.y=f?C.label:C.value),(s||A.xLabel===void 0)&&(A.xLabel=f?C.valueLabel:C.labelLabel),(s||A.yLabel===void 0)&&(A.yLabel=f?C.labelLabel:C.valueLabel),u&&(C.delta=+v.rawS||v.s,C.deltaLabel=b(C.delta),C.final=v.v,C.finalLabel=b(C.final),C.initial=C.final-C.delta,C.initialLabel=b(C.initial)),l&&(C.value=v.s,C.valueLabel=b(C.value),C.percentInitial=v.begR,C.percentInitialLabel=Od.formatPercent(v.begR),C.percentPrevious=v.difR,C.percentPreviousLabel=Od.formatPercent(v.difR),C.percentTotal=v.sumR,C.percenTotalLabel=Od.formatPercent(v.sumR));var L=Od.castOption(a,v.i,"customdata");return L&&(C.customdata=L),Od.texttemplateString({data:[A,C,a._meta],fallback:a.texttemplatefallback,labels:C,locale:e._d3locale,template:o})}function nxt(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function u(L){var x=a?n:r;return $I(x,L,!0).text}function l(L){var x=a?r:n;return $I(x,+L,!0).text}var f=i.textinfo,c=e[t],h=f.split("+"),d=[],p,y=function(L){return h.indexOf(L)!==-1};if(y("label")&&d.push(u(e[t].p)),y("text")&&(p=Od.castOption(i,c.i,"text"),(p===0||p)&&d.push(p)),o){var b=+c.rawS||c.s,v=c.v,C=v-b;y("initial")&&d.push(l(C)),y("delta")&&d.push(l(b)),y("final")&&d.push(l(v))}if(s){y("value")&&d.push(l(c.s));var M=0;y("percent initial")&&M++,y("percent previous")&&M++,y("percent total")&&M++;var A=M>1;y("percent initial")&&(p=Od.formatPercent(c.begR),A&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Od.formatPercent(c.difR),A&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Od.formatPercent(c.sumR),A&&(p+=" of total"),d.push(p))}return d.join("
")}p1e.exports={plot:J_t,toMoveInsideBar:d1e}});var IA=we((jfr,g1e)=>{"use strict";var kE=Vc(),axt=$l(),v1e=jl(),oxt=ei().fillText,sxt=YI().getLineWidth,YV=wu().hoverLabelText,lxt=rf().BADNUM;function uxt(e,t,r,n,i){var a=m1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,u=o[a.index];return a.color=y1e(s,u),axt.getComponentMethod("errorbars","hoverInfo")(u,s,a),[a]}}function m1e(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,u=n==="closest",l=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,y,b,v,C;o.orientation==="h"?(h=r,d=t,p="y",y="x",b=G,v=O):(h=t,d=r,p="x",y="y",v=G,b=O);var M=o[p+"period"],A=u||M;function L(te){return k(te,-1)}function x(te){return k(te,1)}function k(te,Se){var Te=te.w;return te[p]+Se*Te/2}function S(te){return te[p+"End"]-te[p+"Start"]}var m=u?L:M?function(te){return te.p-S(te)/2}:function(te){return Math.min(L(te),te.p-s.bardelta/2)},P=u?x:M?function(te){return te.p+S(te)/2}:function(te){return Math.max(x(te),te.p+s.bardelta/2)};function E(te,Se,Te){return i.finiteRange&&(Te=0),kE.inbox(te-h,Se-h,Te+Math.min(1,Math.abs(Se-te)/C)-1)}function O(te){return E(m(te),P(te),f)}function F(te){return E(L(te),x(te),c)}function U(te){var Se=te[y];if(l){var Te=Math.abs(te.rawS)||0;d>0?Se+=Te:d<0&&(Se-=Te)}return Se}function G(te){var Se=d,Te=te.b,be=U(te);return kE.inbox(Te-Se,be-Se,f+(be-Se)/(be-Te)-1)}function j(te){var Se=d,Te=te.b,be=U(te);return kE.inbox(Te-Se,be-Se,c+(be-Se)/(be-Te)-1)}var W=e[p+"a"],N=e[y+"a"];C=Math.abs(W.r2c(W.range[1])-W.r2c(W.range[0]));function H(te){return(b(te)+v(te))/2}var re=kE.getDistanceFunction(n,b,v,H);if(kE.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==lxt){A||(m=function(te){return Math.min(L(te),te.p-s.bargroupwidth/2)},P=function(te){return Math.max(x(te),te.p+s.bargroupwidth/2)});var ae=e.index,me=a[ae],Le=o.base?me.b+me.s:me.s;e[y+"0"]=e[y+"1"]=N.c2p(me[y],!0),e[y+"LabelVal"]=Le;var Ce=s.extents[s.extents.round(me.p)];e[p+"0"]=W.c2p(u?m(me):Ce[0],!0),e[p+"1"]=W.c2p(u?P(me):Ce[1],!0);var de=me.orig_p!==void 0;return e[p+"LabelVal"]=de?me.orig_p:me.p,e.labelLabel=YV(W,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=YV(N,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=YV(N,me.b,o[y+"hoverformat"]),e.spikeDistance=(j(me)+F(me))/2,e[p+"Spike"]=W.c2p(me.p,!0),oxt(me,o,e),e.hovertemplate=o.hovertemplate,e}}function y1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=sxt(e,t);if(v1e.opacity(r))return r;if(v1e.opacity(n)&&i)return n}g1e.exports={hoverPoints:uxt,hoverOnBars:m1e,getTraceColor:y1e}});var x1e=we((Xfr,_1e)=>{"use strict";_1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var DA=we((Zfr,b1e)=>{"use strict";b1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",u=o.orientation==="h",l=[],f;if(r===!1)for(f=0;f{"use strict";w1e.exports={attributes:Oy(),layoutAttributes:jI(),supplyDefaults:i0().supplyDefaults,crossTraceDefaults:i0().crossTraceDefaults,supplyLayoutDefaults:HV(),calc:jge(),crossTraceCalc:i2().crossTraceCalc,colorbar:tp(),arraysToCalcdata:SE(),plot:v2().plot,style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:IA().hoverPoints,eventData:x1e(),selectPoints:DA(),moduleType:"trace",name:"bar",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var S1e=we((Kfr,T1e)=>{"use strict";T1e.exports=A1e()});var CE=we((Jfr,C1e)=>{"use strict";var cxt=Pm(),G0=Zc(),M1e=Oy(),hxt=Bh(),E1e=Xc().axisHoverFormat,{hovertemplateAttrs:dxt,templatefallbackAttrs:pxt}=Ff(),Gg=Su().extendFlat,RA=G0.marker,k1e=RA.line;C1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:G0.xperiod,yperiod:G0.yperiod,xperiod0:G0.xperiod0,yperiod0:G0.yperiod0,xperiodalignment:G0.xperiodalignment,yperiodalignment:G0.yperiodalignment,xhoverformat:E1e("x"),yhoverformat:E1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Gg({},RA.symbol,{arrayOk:!1,editType:"plot"}),opacity:Gg({},RA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Gg({},RA.angle,{arrayOk:!1,editType:"calc"}),size:Gg({},RA.size,{arrayOk:!1,editType:"calc"}),color:Gg({},RA.color,{arrayOk:!1,editType:"style"}),line:{color:Gg({},k1e.color,{arrayOk:!1,dflt:hxt.defaultLine,editType:"style"}),width:Gg({},k1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:cxt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:M1e.offsetgroup,alignmentgroup:M1e.alignmentgroup,selected:{marker:G0.selected.marker,editType:"style"},unselected:{marker:G0.unselected.marker,editType:"style"},text:Gg({},G0.text,{}),hovertext:Gg({},G0.hovertext,{}),hovertemplate:dxt({}),hovertemplatefallback:pxt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:G0.zorder}});var LE=we(($fr,L1e)=>{"use strict";L1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var zE=we((Qfr,D1e)=>{"use strict";var H0=ei(),vxt=$l(),mxt=jl(),yxt=Dm(),gxt=r2(),P1e=H3(),PE=CE();function _xt(e,t,r,n){function i(p,y){return H0.coerce(e,t,PE,p,y)}if(z1e(e,t,i,n),t.visible!==!1){yxt(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",mxt.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),u=i("sd");s&&s.length&&(o=!0,u&&u.length&&(o="sd"))}i("whiskerwidth");var l=i("sizemode"),f;l==="quartiles"&&(f=i("boxmean",o)),i("showwhiskers",l==="quartiles"),(l==="sd"||f==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var c=!1;if(a){var h=i("notchspan");h&&h.length&&(c=!0)}else H0.validate(e.notchwidth,PE.notchwidth)&&(c=!0);var d=i("notched",c);d&&i("notchwidth"),I1e(e,t,i,{prefix:"box"}),i("zorder")}}function z1e(e,t,r,n){function i(P){var E=0;return P&&P.length&&(E+=1,H0.isArrayOrTypedArray(P[0])&&P[0].length&&(E+=1)),E}function a(P){return H0.validate(e[P],PE[P])}var o=r("y"),s=r("x"),u;if(t.type==="box"){var l=r("q1"),f=r("median"),c=r("q3");t._hasPreCompStats=l&&l.length&&f&&f.length&&c&&c.length,u=Math.min(H0.minRowLength(l),H0.minRowLength(f),H0.minRowLength(c))}else t._hasPreCompStats=!1;var h=i(o),d=i(s),p=h&&H0.minRowLength(o),y=d&&H0.minRowLength(s),b=n.calendar,v={autotypenumbers:n.autotypenumbers},C,M;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var A=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!A?C="h":C="v",M=u;break;case"10":C="v",M=Math.min(u,y);break;case"20":C="h",M=Math.min(u,s.length);break;case"01":C="h",M=Math.min(u,p);break;case"02":C="v",M=Math.min(u,o.length);break;case"12":C="v",M=Math.min(u,y,o.length);break;case"21":C="h",M=Math.min(u,s.length,p);break;case"11":M=0;break;case"22":var x=!1,k;for(k=0;k0?(C="v",d>0?M=Math.min(y,p):M=Math.min(p)):d>0?(C="h",M=Math.min(y)):M=0;if(!M){t.visible=!1;return}t._length=M;var S=r("orientation",C);t._hasPreCompStats?S==="v"&&d===0?(r("x0",0),r("dx",1)):S==="h"&&h===0&&(r("y0",0),r("dy",1)):S==="v"&&d===0?r("x0"):S==="h"&&h===0&&r("y0");var m=vxt.getComponentMethod("calendars","handleTraceDefaults");m(e,t,["x","y"],n)}function I1e(e,t,r,n){var i=n.prefix,a=H0.coerce2(e,t,PE,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var u=r(i+"points",s);u?(r("jitter",u==="all"?.3:0),r("pointpos",u==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),u==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var l=r("hoveron");(l==="all"||l.indexOf("points")!==-1)&&(r("hovertemplate"),r("hovertemplatefallback")),H0.coerceSelectionMarkerOpacity(t,r)}function xxt(e,t){var r,n;function i(u){return H0.coerce(n._input,n,PE,u)}for(var a=0;a{"use strict";var bxt=$l(),wxt=ei(),Axt=LE();function R1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var JV=ku(),eD=wu(),Sxt=Fm(),Eh=ei(),n0=rf().BADNUM,Hg=Eh._;W1e.exports=function(t,r){var n=t._fullLayout,i=eD.getFromId(t,r.xaxis||"x"),a=eD.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",u,l,f,c,h,d,p;r.orientation==="h"?(f=i,c="x",h=a,d="y",p=!!r.yperiodalignment):(f=a,c="y",h=i,d="x",p=!!r.xperiodalignment);var y=Mxt(r,d,h,n[s]),b=y[0],v=y[1],C=Eh.distinctVals(b,h),M=C.vals,A=C.minDiff/2,L,x,k,S,m,P,E=(r.boxpoints||r.points)==="all"?Eh.identity:function(Ot){return Ot.vL.uf};if(r._hasPreCompStats){var O=r[c],F=function(Ot){return f.d2c((r[Ot]||[])[u])},U=1/0,G=-1/0;for(u=0;u=L.q1&&L.q3>=L.med){var W=F("lowerfence");L.lf=W!==n0&&W<=L.q1?W:N1e(L,k,S);var N=F("upperfence");L.uf=N!==n0&&N>=L.q3?N:U1e(L,k,S);var H=F("mean");L.mean=H!==n0?H:S?Eh.mean(k,S):(L.q1+L.q3)/2;var re=F("sd");L.sd=H!==n0&&re>=0?re:S?Eh.stdev(k,S,L.mean):L.q3-L.q1,L.lo=V1e(L),L.uo=G1e(L);var ae=F("notchspan");ae=ae!==n0&&ae>0?ae:H1e(L,S),L.ln=L.med-ae,L.un=L.med+ae;var me=L.lf,Le=L.uf;r.boxpoints&&k.length&&(me=Math.min(me,k[0]),Le=Math.max(Le,k[S-1])),r.notched&&(me=Math.min(me,L.ln),Le=Math.max(Le,L.un)),L.min=me,L.max=Le}else{Eh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` -`));var Ce;L.med!==n0?Ce=L.med:L.q1!==n0?L.q3!==n0?Ce=(L.q1+L.q3)/2:Ce=L.q1:L.q3!==n0?Ce=L.q3:Ce=0,L.med=Ce,L.q1=L.q3=Ce,L.lf=L.uf=Ce,L.mean=L.sd=Ce,L.ln=L.un=Ce,L.min=L.max=Ce}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=x.filter(E),o.push(L)}}r._extremes[f._id]=eD.findExtremes(f,[U,G],{padded:!0})}else{var de=f.makeCalcdata(r,c),te=Ext(M,A),Se=M.length,Te=kxt(Se);for(u=0;u=0&&be0){if(L={},L.pos=L[d]=M[u],x=L.pts=Te[u].sort(B1e),k=L[c]=x.map(q1e),S=k.length,L.min=k[0],L.max=k[S-1],L.mean=Eh.mean(k,S),L.sd=Eh.stdev(k,S,L.mean)*r.sdmultiple,L.med=Eh.interp(k,.5),S%2&&(Be||ce)){var je,rt;Be?(je=k.slice(0,S/2),rt=k.slice(S/2+1)):ce&&(je=k.slice(0,S/2+1),rt=k.slice(S/2)),L.q1=Eh.interp(je,.5),L.q3=Eh.interp(rt,.5)}else L.q1=Eh.interp(k,.25),L.q3=Eh.interp(k,.75);L.lf=N1e(L,k,S),L.uf=U1e(L,k,S),L.lo=V1e(L),L.uo=G1e(L);var bt=H1e(L,S);L.ln=L.med-bt,L.un=L.med+bt,He=Math.min(He,L.ln),Ie=Math.max(Ie,L.un),L.pts2=x.filter(E),o.push(L)}r.notched&&Eh.isTypedArray(de)&&(de=Array.from(de)),r._extremes[f._id]=eD.findExtremes(f,r.notched?de.concat([He,Ie]):de,{padded:!0})}return Cxt(o,r),o.length>0?(o[0].t={num:n[s],dPos:A,posLetter:d,valLetter:c,labels:{med:Hg(t,"median:"),min:Hg(t,"min:"),q1:Hg(t,"q1:"),q3:Hg(t,"q3:"),max:Hg(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?Hg(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):Hg(t,"mean:"),lf:Hg(t,"lower fence:"),uf:Hg(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function Mxt(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),u=Sxt(e,r,t,s).vals;return[u,s]}var l;a?l=e[t+"0"]:"name"in e&&(r.type==="category"||JV(e.name)&&["linear","log"].indexOf(r.type)!==-1||Eh.isDateTime(e.name)&&r.type==="date")?l=e.name:l=n;for(var f=r.type==="multicategory"?r.r2c_just_indices(l):r.d2c(l,0,e[t+"calendar"]),c=e._length,h=new Array(c),d=0;d{"use strict";var j1e=wu(),Lxt=ei(),Pxt=$b().getAxisGroup,X1e=["v","h"];function zxt(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,C=1-a[e+"gap"],M=1-a[e+"groupgap"];for(u=0;u0;if(k==="positive"?(N=S*(x?1:.5),ae=re,H=ae=P):k==="negative"?(N=ae=P,H=S*(x?1:.5),me=re):(N=H=S,ae=me=re),Te){var be=A.pointpos,He=A.jitter,Ie=A.marker.size/2,ge=0;be+He>=0&&(ge=re*(be+He),ge>N?(Se=!0,de=Ie,Le=ge):ge>ae&&(de=Ie,Le=N)),ge<=N&&(Le=N);var Be=0;be-He<=0&&(Be=-re*(be-He),Be>H?(Se=!0,te=Ie,Ce=Be):Be>me&&(te=Ie,Ce=H)),Be<=H&&(Ce=H)}else Le=N,Ce=H;var ce=new Array(f.length);for(l=0;l{"use strict";var FA=Jl(),m2=ei(),Ixt=Mu(),K1e=5,Dxt=.01;function Rxt(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;m2.makeTraceGroups(n,r,"trace boxes").each(function(s){var u=FA.select(this),l=s[0],f=l.t,c=l.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){u.remove();return}var h,d;c.orientation==="h"?(h=o,d=a):(h=a,d=o),J1e(u,{pos:h,val:d},c,f,i),$1e(u,{x:a,y:o},c,f),Q1e(u,{pos:h,val:d},c,f)})}function J1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,u=!!s.rangebreaks,l=n.bPos,f=n.wdPos||0,c=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,p=r.notched||!1,y=p?1-2*r.notchwidth:1,b,v;Array.isArray(n.bdPos)?(b=n.bdPos[0],v=n.bdPos[1]):(b=n.bdPos,v=n.bdPos);var C=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?m2.identity:[]);C.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),C.exit().remove(),C.each(function(M){if(M.empty)return FA.select(this).attr("d","M0,0Z");var A=s.c2l(M.pos+l,!0),L=s.l2p(A-b)+c,x=s.l2p(A+v)+c,k=u?(L+x)/2:s.l2p(A)+c,S=r.whiskerwidth,m=u?L*S+(1-S)*k:s.l2p(A-f)+c,P=u?x*S+(1-S)*k:s.l2p(A+f)+c,E=s.l2p(A-b*y)+c,O=s.l2p(A+v*y)+c,F=r.sizemode==="sd",U=o.c2p(F?M.mean-M.sd:M.q1,!0),G=F?o.c2p(M.mean+M.sd,!0):o.c2p(M.q3,!0),j=m2.constrain(F?o.c2p(M.mean,!0):o.c2p(M.med,!0),Math.min(U,G)+1,Math.max(U,G)-1),W=M.lf===void 0||r.boxpoints===!1||F,N=o.c2p(W?M.min:M.lf,!0),H=o.c2p(W?M.max:M.uf,!0),re=o.c2p(M.ln,!0),ae=o.c2p(M.un,!0);a?FA.select(this).attr("d","M"+j+","+E+"V"+O+"M"+U+","+L+"V"+x+(p?"H"+re+"L"+j+","+O+"L"+ae+","+x:"")+"H"+G+"V"+L+(p?"H"+ae+"L"+j+","+E+"L"+re+","+L:"")+"Z"+(d?"M"+U+","+k+"H"+N+"M"+G+","+k+"H"+H+(h===0?"":"M"+N+","+m+"V"+P+"M"+H+","+m+"V"+P):"")):FA.select(this).attr("d","M"+E+","+j+"H"+O+"M"+L+","+U+"H"+x+(p?"V"+re+"L"+O+","+j+"L"+x+","+ae:"")+"V"+G+"H"+L+(p?"V"+ae+"L"+E+","+j+"L"+L+","+re:"")+"Z"+(d?"M"+k+","+U+"V"+N+"M"+k+","+G+"V"+H+(h===0?"":"M"+m+","+N+"H"+P+"M"+m+","+H+"H"+P):""))})}function $1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,u=r.boxpoints||r.points;m2.seedPseudoRandom();var l=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},f=e.selectAll("g.points").data(u?l:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,y=Math.max((h.max-h.min)/10,h.q3-h.q1),b=y*1e-9,v=y*Dxt,C=[],M=0,A;if(r.jitter){if(y===0)for(M=1,C=new Array(p.length),d=0;dh.lo&&(P.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(Ixt.translatePoints,i,a)}function Q1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,u=n.bPosPxOffset||0,l=r.boxmean||(r.meanline||{}).visible,f,c;Array.isArray(n.bdPos)?(f=n.bdPos[0],c=n.bdPos[1]):(f=n.bdPos,c=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?m2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=a.c2l(d.pos+s,!0),y=a.l2p(p-f)+u,b=a.l2p(p+c)+u,v=o?(y+b)/2:a.l2p(p)+u,C=i.c2p(d.mean,!0),M=i.c2p(d.mean-d.sd,!0),A=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?FA.select(this).attr("d","M"+C+","+y+"V"+b+(l==="sd"?"m0,0L"+M+","+v+"L"+C+","+y+"L"+A+","+v+"Z":"")):FA.select(this).attr("d","M"+y+","+C+"H"+b+(l==="sd"?"m0,0L"+v+","+M+"L"+y+","+C+"L"+v+","+A+"Z":""))})}e_e.exports={plot:Rxt,plotBoxAndWhiskers:J1e,plotPoints:$1e,plotBoxMean:Q1e}});var iD=we((ncr,t_e)=>{"use strict";var QV=Jl(),eG=jl(),tG=Mu();function Fxt(e,t,r){var n=r||QV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=QV.select(this),o=i[0].trace,s=o.line.width;function u(c,h,d,p){c.style("stroke-width",h+"px").call(eG.stroke,d).call(eG.fill,p)}var l=a.selectAll("path.box");if(o.type==="candlestick")l.each(function(c){if(!c.empty){var h=QV.select(this),d=o[c.dir];u(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{u(l,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(eG.stroke,o.line.color);var f=a.selectAll("path.point");tG.pointStyle(f,o,e)}})}function Oxt(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?tG.selectedPointStyle(i,n):tG.pointStyle(i,n,e)}t_e.exports={style:Fxt,styleOnSelect:Oxt}});var iG=we((acr,a_e)=>{"use strict";var Bxt=wu(),rG=ei(),I_=Vc(),r_e=jl(),qxt=rG.fillText;function Nxt(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],u;return o.indexOf("boxes")!==-1&&(s=s.concat(i_e(e,t,r,n))),o.indexOf("points")!==-1&&(u=n_e(e,t,r)),n==="closest"?u?[u]:s:(u&&s.push(u),s)}function i_e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,u=i[0].t,l=s.type==="violin",f,c,h,d,p,y,b,v,C,M,A,L=u.bdPos,x,k,S=u.wHover,m=function(Ie){return h.c2l(Ie.pos)+u.bPos-h.c2l(y)};l&&s.side!=="both"?(s.side==="positive"&&(C=function(Ie){var ge=m(Ie);return I_.inbox(ge,ge+S,M)},x=L,k=0),s.side==="negative"&&(C=function(Ie){var ge=m(Ie);return I_.inbox(ge-S,ge,M)},x=0,k=L)):(C=function(Ie){var ge=m(Ie);return I_.inbox(ge-S,ge+S,M)},x=k=L);var P;l?P=function(Ie){return I_.inbox(Ie.span[0]-p,Ie.span[1]-p,M)}:P=function(Ie){return I_.inbox(Ie.min-p,Ie.max-p,M)},s.orientation==="h"?(p=t,y=r,b=P,v=C,f="y",h=o,c="x",d=a):(p=r,y=t,b=C,v=P,f="x",h=a,c="y",d=o);var E=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));M=e.maxHoverDistance-E,A=e.maxSpikeDistance-E;function O(Ie){return(b(Ie)+v(Ie))/2}var F=I_.getDistanceFunction(n,b,v,O);if(I_.getClosest(i,F,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,j=(s.marker||{}).color;r_e.opacity(G)&&s.line.width?e.color=G:r_e.opacity(j)&&s.boxpoints?e.color=j:e.color=s.fillcolor,e[f+"0"]=h.c2p(U.pos+u.bPos-k,!0),e[f+"1"]=h.c2p(U.pos+u.bPos+x,!0),e[f+"LabelVal"]=U.orig_p!==void 0?U.orig_p:U.pos;var W=f+"Spike";e.spikeDistance=O(U)*A/M,e[W]=h.c2p(U.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,H=s.boxpoints||s.points,re=H&&N?["max","uf","q3","med","mean","q1","lf","min"]:H&&!N?["max","uf","q3","med","q1","lf","min"]:!H&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]{"use strict";o_e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var nG=we((scr,l_e)=>{"use strict";l_e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u;if(r===!1)for(s=0;s{"use strict";u_e.exports={attributes:CE(),layoutAttributes:LE(),supplyDefaults:zE().supplyDefaults,crossTraceDefaults:zE().crossTraceDefaults,supplyLayoutDefaults:QI().supplyLayoutDefaults,calc:$V(),crossTraceCalc:tD().crossTraceCalc,plot:rD().plot,style:iD().style,styleOnSelect:iD().styleOnSelect,hoverPoints:iG().hoverPoints,eventData:s_e(),selectPoints:nG(),moduleType:"trace",name:"box",basePlotModule:Mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var h_e=we((ucr,c_e)=>{"use strict";c_e.exports=f_e()});var OA=we((fcr,p_e)=>{"use strict";var Uxt=nc(),{extendFlat:Pv}=Su(),Vxt=Gf(),{axisHoverFormat:aG}=Xc(),Gxt=gc(),{hovertemplateAttrs:Hxt,templatefallbackAttrs:d_e,texttemplateAttrs:Wxt}=Ff(),a0=Zc();p_e.exports=Pv({z:{valType:"data_array",editType:"calc"},x:Pv({},a0.x,{impliedEdits:{xtype:"array"}}),x0:Pv({},a0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Pv({},a0.dx,{impliedEdits:{xtype:"scaled"}}),y:Pv({},a0.y,{impliedEdits:{ytype:"array"}}),y0:Pv({},a0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Pv({},a0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Pv({},a0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Pv({},a0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Pv({},a0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Pv({},a0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Pv({},a0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Pv({},a0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:aG("x"),yhoverformat:aG("y"),zhoverformat:aG("z",1),hovertemplate:Hxt(),hovertemplatefallback:d_e(),texttemplate:Wxt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:d_e({editType:"plot"}),textfont:Gxt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pv({},Vxt.showlegend,{dflt:!1}),zorder:a0.zorder},Uxt("",{cLetter:"z",autoColorDflt:!1}))});var aD=we((ccr,m_e)=>{"use strict";var jxt=ku(),nD=ei(),Xxt=$l();m_e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var u,l;if(s===void 0||!s.length)return 0;if(nD.isArray1D(s)){u=n(a),l=n(o);var f=nD.minRowLength(u),c=nD.minRowLength(l);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(u=v_e(a,n),l=v_e(o,n),!Zxt(s))return 0;n("transpose"),r._length=null}var h=Xxt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function v_e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function Zxt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var y_e=ei();g_e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var n=y_e.extendFlat({},r.font,{color:"auto",size:"auto"});y_e.coerceFont(t,"textfont",n)}});var oG=we((dcr,__e)=>{"use strict";__e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var w_e=we((pcr,b_e)=>{"use strict";var x_e=ei(),Yxt=aD(),Kxt=IE(),Jxt=Dm(),$xt=oG(),Qxt=nd(),ebt=OA();b_e.exports=function(t,r,n,i){function a(s,u){return x_e.coerce(t,r,ebt,s,u)}var o=Yxt(t,r,a,i);if(!o){r.visible=!1;return}Jxt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),Kxt(a,i),$xt(t,r,a,i),a("hoverongaps"),a("connectgaps",x_e.isArray1D(r.z)&&r.zsmooth!==!1),Qxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var sG=we((vcr,A_e)=>{"use strict";var BA=ku();A_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return BA(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return BA(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(BA(i))if(i=Number(i),BA(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(BA(i))if(i=Number(i),BA(r[e])){if(r[e]{"use strict";T_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";S_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var qA=rf(),y2=qA.ONEAVGYEAR,M_e=qA.ONEAVGMONTH,sD=qA.ONEDAY,E_e=qA.ONEHOUR,k_e=qA.ONEMIN,C_e=qA.ONESEC,L_e=wu().tickIncrement;I_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,u=t-s,l=n[0],f=n[1],c=Math.min(oD(l+s,l+u,i,a),oD(f+s,f+u,i,a)),h=Math.min(oD(l+o,l+s,i,a),oD(f+o,f+s,i,a)),d,p;if(c>h&&hsD){var y=d===y2?1:6,b=d===y2?"M12":"M1";return function(v,C){var M=i.c2d(v,y2,a),A=M.indexOf("-",y);A>0&&(M=M.slice(0,A));var L=i.d2c(M,0,a);if(LC_e?e>sD?e>y2*1.1?y2:e>M_e*1.1?M_e:sD:e>E_e?E_e:e>k_e?k_e:C_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function tbt(e,t,r,n,i,a){if(n&&e>sD){var o=z_e(t,i,a),s=z_e(r,i,a),u=e===y2?0:1;return o[u]!==s[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function z_e(e,t,r){var n=t.c2d(e,y2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var dG=we((_cr,B_e)=>{"use strict";var cG=ku(),Hp=ei(),D_e=$l(),W0=wu(),{hasColorscale:R_e}=yp(),F_e=gp(),rbt=SE(),O_e=sG(),ibt=lG(),nbt=uG(),abt=fG();function obt(e,t){var r=[],n=[],i=t.orientation==="h",a=W0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],u=t[o+"calendar"],l=t.cumulative,f,c=hG(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",y=[],b=p?y:h,v=[],C=[],M=[],A=0,L=t.histnorm,x=t.histfunc,k=L.indexOf("density")!==-1,S,m,P;l.enabled&&k&&(L=L.replace(/ ?density$/,""),k=!1);var E=x==="max"||x==="min",O=E?null:0,F=O_e.count,U=ibt[L],G=!1,j=function(ge){return a.r2c(ge,0,u)},W;for(Hp.isArrayOrTypedArray(t[s])&&x!=="count"&&(W=t[s],G=x==="avg",F=O_e[x]),f=j(h.start),m=j(h.end)+(f-W0.tickIncrement(f,h.size,!1,u))/1e6;f=0&&P=be;f--)if(n[f]){He=f;break}for(f=be;f<=He;f++)if(cG(r[f])&&cG(n[f])){var Ie={p:r[f],s:n[f],b:0};l.enabled||(Ie.pts=M[f],ae?Ie.ph0=Ie.ph1=M[f].length?d[M[f][0]]:r[f]:(t._computePh=!0,Ie.ph0=te(y[f]),Ie.ph1=te(y[f+1],!0))),Te.push(Ie)}return Te.length===1&&(Te[0].width1=W0.tickIncrement(Te[0].p,h.size,!1,u)-Te[0].p),R_e(t,"marker")&&F_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),R_e(t,"marker.line")&&F_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),rbt(Te,t),Hp.isArrayOrTypedArray(t.selectedpoints)&&Hp.tagSelected(Te,t,Ce),Te}function hG(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],u=o._histogramBinOpts[s],l=o.barmode==="overlay",f,c,h,d,p,y,b,v=function(de){return r.r2c(de,0,d)},C=function(de){return r.c2r(de,0,d)},M=r.type==="date"?function(de){return de||de===0?Hp.cleanDate(de,null,d):null}:function(de){return cG(de)?Number(de):null};function A(de,te,Se){te[de+"Found"]?(te[de]=M(te[de]),te[de]===null&&(te[de]=Se[de])):(y[de]=te[de]=Se[de],Hp.nestedProperty(c[0],a+"."+de).set(Se[de]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{c=u.traces;var L=[],x=!0,k=!1,S=!1;for(f=0;fr.r2l(W)&&(H=W0.tickIncrement(H,u.size,!0,d)),F.start=r.l2r(H),j||Hp.nestedProperty(t,a+".start").set(F.start)}var re=u.end,ae=r.r2l(O.end),me=ae!==void 0;if((u.endFound||me)&&ae!==r.r2l(re)){var Le=me?ae:Hp.aggNums(Math.max,null,p);F.end=r.l2r(Le),me||Hp.nestedProperty(t,a+".start").set(F.end)}var Ce="autobin"+n;return t._input[Ce]===!1&&(t._input[a]=Hp.extendFlat({},t[a]||{}),delete t._input[Ce],delete t[Ce]),[F,p]}function sbt(e,t,r,n,i){var a=e._fullLayout,o=lbt(e,t),s=!1,u=1/0,l=[t],f,c,h;for(f=0;f=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}B_e.exports={calc:obt,calcAllAutoBins:hG}});var j_e=we((xcr,W_e)=>{"use strict";var q_e=ei(),NA=wu(),N_e=sG(),fbt=lG(),cbt=uG(),hbt=fG(),U_e=dG().calcAllAutoBins;W_e.exports=function(t,r){var n=NA.getFromId(t,r.xaxis),i=NA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Ve){return n.r2c(Ve,0,a)},u=function(Ve){return i.r2c(Ve,0,o)},l=function(Ve){return n.c2r(Ve,0,a)},f=function(Ve){return i.c2r(Ve,0,o)},c,h,d,p,y=U_e(t,r,n,"x"),b=y[0],v=y[1],C=U_e(t,r,i,"y"),M=C[0],A=C[1],L=r._length;v.length>L&&v.splice(L,v.length-L),A.length>L&&A.splice(L,A.length-L);var x=[],k=[],S=[],m=typeof b.size=="string",P=typeof M.size=="string",E=[],O=[],F=m?E:b,U=P?O:M,G=0,j=[],W=[],N=r.histnorm,H=r.histfunc,re=N.indexOf("density")!==-1,ae=H==="max"||H==="min",me=ae?null:0,Le=N_e.count,Ce=fbt[N],de=!1,te=[],Se=[],Te="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Te&&H!=="count"&&(de=H==="avg",Le=N_e[H]);var be=b.size,He=s(b.start),Ie=s(b.end)+(He-NA.tickIncrement(He,be,!1,a))/1e6;for(c=He;c=0&&d=0&&p{"use strict";var qy=ei(),X_e=rf().BADNUM,Z_e=Fm();Y_e.exports=function(t,r,n,i,a,o){var s=t._length,u=r.makeCalcdata(t,i),l=n.makeCalcdata(t,a);u=Z_e(t,r,i,u).vals,l=Z_e(t,n,a,l).vals;var f=t.text,c=f!==void 0&&qy.isArray1D(f),h=t.hovertext,d=h!==void 0&&qy.isArray1D(h),p,y,b=qy.distinctVals(u),v=b.vals,C=qy.distinctVals(l),M=C.vals,A=[],L,x,k=M.length,S=v.length;for(p=0;p{"use strict";var dbt=ku(),pbt=ei(),uD=rf().BADNUM;K_e.exports=function(t,r,n,i){var a,o,s,u,l,f;function c(v){if(dbt(v))return+v}if(r&&r.transpose){for(a=0,l=0;l{"use strict";var vbt=ei(),J_e=.01,mbt=[[-1,0],[1,0],[0,-1],[0,1]];function ybt(e){return .5-.25*Math.min(1,e*.5)}Q_e.exports=function(t,r){var n=1,i;for($_e(t,r),i=0;iJ_e;i++)n=$_e(t,r,ybt(n));return n>J_e&&vbt.log("interp2d didn't converge quickly",n),t};function $_e(e,t,r){var n=0,i,a,o,s,u,l,f,c,h,d,p,y,b;for(s=0;sy&&(n=Math.max(n,Math.abs(e[a][o]-p)/(b-y))))}return n}});var hD=we((Tcr,exe)=>{"use strict";var gbt=ei().maxRowLength;exe.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],u=gbt(t),l,f,c,h,d,p,y,b;for(f=0;f=0;d--)h=i[d],f=h[0],c=h[1],p=((n[[f-1,c]]||s)[2]+(n[[f+1,c]]||s)[2]+(n[[f,c-1]]||s)[2]+(n[[f,c+1]]||s)[2])/20,p&&(y[h]=[f,c,p],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in y)n[h]=y[h],r.push(y[h])}return r.sort(function(v,C){return C[2]-v[2]})}});var pG=we((Scr,ixe)=>{"use strict";var txe=$l(),rxe=ei().isArrayOrTypedArray;ixe.exports=function(t,r,n,i,a,o){var s=[],u=txe.traceIs(t,"contour"),l=txe.traceIs(t,"histogram"),f,c,h,d=rxe(r)&&r.length>1;if(d&&!l&&o.type!=="category"){var p=r.length;if(p<=a){if(u)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var nxe=$l(),vG=ei(),dD=wu(),axe=Fm(),_bt=j_e(),xbt=gp(),bbt=lD(),wbt=fD(),Abt=cD(),Tbt=hD(),pD=pG(),mG=rf().BADNUM;sxe.exports=function(t,r){var n=dD.getFromId(t,r.xaxis||"x"),i=dD.getFromId(t,r.yaxis||"y"),a=nxe.traceIs(r,"contour"),o=nxe.traceIs(r,"histogram"),s=a?"best":r.zsmooth,u,l,f,c,h,d,p,y,b,v,C;if(n._minDtick=0,i._minDtick=0,o)C=_bt(t,r),c=C.orig_x,u=C.x,l=C.x0,f=C.dx,y=C.orig_y,h=C.y,d=C.y0,p=C.dy,b=C.z;else{var M=r.z;vG.isArray1D(M)?(bbt(r,n,i,"x","y",["z"]),u=r._x,h=r._y,M=r._z):(c=r.x?n.makeCalcdata(r,"x"):[],y=r.y?i.makeCalcdata(r,"y"):[],u=axe(r,n,"x",c).vals,h=axe(r,i,"y",y).vals,r._x=u,r._y=h),l=r.x0,f=r.dx,d=r.y0,p=r.dy,b=wbt(M,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Sbt(u,h,b),o||(u=oxe(u),h=oxe(h),r._x=u,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Tbt(b),Abt(b,r._emptypoints));function A(F){s=r._input.zsmooth=r.zsmooth=!1,vG.warn('cannot use zsmooth: "fast": '+F)}function L(F){if(F.length>1){var U=(F[F.length-1]-F[0])/(F.length-1),G=Math.abs(U/100);for(v=0;vG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&A("log axis found"):L(u)?L(h)?r._islinear=!0:s==="fast"&&A("y scale is not linear"):s==="fast"&&A("x scale is not linear");var x=vG.maxRowLength(b),k=r.xtype==="scaled"?"":u,S=pD(r,k,l,f,x,n),m=r.ytype==="scaled"?"":h,P=pD(r,m,d,p,b.length,i);r._extremes[n._id]=dD.findExtremes(n,S),r._extremes[i._id]=dD.findExtremes(i,P);var E={x:S,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(E.orig_x=c),r.yperiodalignment&&y&&(E.orig_y=y),k&&k.length===S.length-1&&(E.xCenter=k),m&&m.length===P.length-1&&(E.yCenter=m),o&&(E.xRanges=C.xRanges,E.yRanges=C.yRanges,E.pts=C.pts),a||xbt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var O={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};E.xfill=pD(O,k,l,f,x,n),E.yfill=pD(O,m,d,p,b.length,i)}return[E]};function oxe(e){for(var t=[],r=e.length,n=0;n{"use strict";mD.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];mD.STYLE=mD.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var gG=we((kcr,uxe)=>{"use strict";var lxe=yD(),Mbt=Mu(),yG=ei(),UA=null;function Ebt(){if(UA!==null)return UA;UA=!1;var e=yG.isSafari()||yG.isMacWKWebView()||yG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(lxe.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")UA=t.some(function(o){return r.apply(null,o)});else{var n=Mbt.tester.append("image").attr("style",lxe.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;UA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return UA}uxe.exports=Ebt});var gD=we((Ccr,gxe)=>{"use strict";var fxe=Jl(),kbt=hd(),Cbt=$l(),Lbt=Mu(),Pbt=wu(),j0=ei(),cxe=Wf(),zbt=uI(),Ibt=jl(),Dbt=_c().extractOpts,Rbt=_c().makeColorScaleFuncFromTrace,Fbt=jv(),Obt=Nh(),_G=Obt.LINE_SPACING,Bbt=gG(),qbt=yD().STYLE,mxe="heatmap-label";function yxe(e){return e.selectAll("g."+mxe)}function hxe(e){yxe(e).remove()}gxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;j0.makeTraceGroups(n,r,"hm").each(function(o){var s=fxe.select(this),u=o[0],l=u.trace,f=l.xgap||0,c=l.ygap||0,h=u.z,d=u.x,p=u.y,y=u.xCenter,b=u.yCenter,v=Cbt.traceIs(l,"contour"),C=v?"best":l.zsmooth,M=h.length,A=j0.maxRowLength(h),L=!1,x=!1,k,S,m,P,E,O,F,U;for(O=0;k===void 0&&O0;)S=i.c2p(d[O]),O--;for(S0;)E=a.c2p(p[O]),O--;E=i._length||S<=0||P>=a._length||E<=0;if(H){var re=s.selectAll("image").data([]);re.exit().remove(),hxe(s);return}var ae,me;G==="fast"?(ae=A,me=M):(ae=W,me=N);var Le=document.createElement("canvas");Le.width=ae,Le.height=me;var Ce=Le.getContext("2d",{willReadFrequently:!0}),de=Rbt(l,{noNumericCheck:!0,returnArray:!0}),te,Se;G==="fast"?(te=L?function(Ei){return A-1-Ei}:j0.identity,Se=x?function(Ei){return M-1-Ei}:j0.identity):(te=function(Ei){return j0.constrain(Math.round(i.c2p(d[Ei])-k),0,W)},Se=function(Ei){return j0.constrain(Math.round(a.c2p(p[Ei])-P),0,N)});var Te=Se(0),be=[Te,Te],He=L?0:1,Ie=x?0:1,ge=0,Be=0,ce=0,je=0,rt,bt,Ot,it,Ke;function zt(Ei,Vi){if(Ei!==void 0){var ti=de(Ei);return ti[0]=Math.round(ti[0]),ti[1]=Math.round(ti[1]),ti[2]=Math.round(ti[2]),ge+=Vi,Be+=ti[0]*Vi,ce+=ti[1]*Vi,je+=ti[2]*Vi,ti}return[0,0,0,0]}function Mt(Ei,Vi,ti,Qi){var Yr=Ei[ti.bin0];if(Yr===void 0)return zt(void 0,1);var oi=Ei[ti.bin1],Fi=Vi[ti.bin0],rn=Vi[ti.bin1],tn=oi-Yr||0,Ri=Fi-Yr||0,Ii;return oi===void 0?rn===void 0?Ii=0:Fi===void 0?Ii=2*(rn-Yr):Ii=(2*rn-Fi-Yr)*2/3:rn===void 0?Fi===void 0?Ii=0:Ii=(2*Yr-oi-Fi)*2/3:Fi===void 0?Ii=(2*rn-oi-Yr)*2/3:Ii=rn+Yr-oi-Fi,zt(Yr+ti.frac*tn+Qi.frac*(Ri+ti.frac*Ii))}if(G!=="default"){var kt=0,$e;try{$e=new Uint8Array(ae*me*4)}catch(Ei){$e=new Array(ae*me*4)}if(G==="smooth"){var De=y||d,Me=b||p,oe=new Array(De.length),Ne=new Array(Me.length),vt=new Array(W),lt=y?pxe:dxe,We=b?pxe:dxe,Ve,et,tt;for(O=0;OEr||Er>a._length))for(F=xt;Fjr||jr>i._length)){var kr=zbt({x:ii,y:cr},l,e._fullLayout);kr.x=ii,kr.y=cr;var Vr=u.z[O][F];Vr===void 0?(kr.z="",kr.zLabel=""):(kr.z=Vr,kr.zLabel=Pbt.tickText(ze,Vr,"hover").text);var Ai=u.text&&u.text[O]&&u.text[O][F];(Ai===void 0||Ai===!1)&&(Ai=""),kr.text=Ai;var Bi=j0.texttemplateString({data:[kr,l._meta],fallback:l.texttemplatefallback,labels:kr,locale:e._fullLayout._d3locale,template:xe});if(Bi){var Di=Bi.split("
"),ln=Di.length,hn=0;for(U=0;U{"use strict";_xe.exports={min:"zmin",max:"zmax"}});var _D=we((Pcr,xxe)=>{"use strict";var Nbt=Jl();xxe.exports=function(t){Nbt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var bD=we((zcr,wxe)=>{"use strict";var bxe=Vc(),DE=ei(),xD=DE.isArrayOrTypedArray,Ubt=wu(),Vbt=_c().extractOpts;wxe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],u=s.trace,l=t.xa,f=t.ya,c=s.x,h=s.y,d=s.z,p=s.xCenter,y=s.yCenter,b=s.zmask,v=u.zhoverformat,C=c,M=h,A,L,x,k;if(t.index!==!1){try{x=Math.round(t.index[1]),k=Math.round(t.index[0])}catch(re){DE.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||k<0||k>d.length)return}else{if(bxe.inbox(r-c[0],r-c[c.length-1],0)>0||bxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var S;for(C=[2*c[0]-c[1]],S=1;S{"use strict";Axe.exports={attributes:OA(),supplyDefaults:w_e(),calc:vD(),plot:gD(),colorbar:D_(),style:_D(),hoverPoints:bD(),moduleType:"trace",name:"heatmap",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var Mxe=we((Dcr,Sxe)=>{"use strict";Sxe.exports=Txe()});var xG=we((Rcr,Exe)=>{"use strict";Exe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var Cxe=we((Fcr,kxe)=>{"use strict";kxe.exports={eventDataKeys:["binNumber"]}});var wD=we((Ocr,Ixe)=>{"use strict";var zv=Oy(),Lxe=Xc().axisHoverFormat,{hovertemplateAttrs:Gbt,texttemplateAttrs:Hbt,templatefallbackAttrs:Pxe}=Ff(),bG=gc(),zxe=xG(),Wbt=Cxe(),wG=Su().extendFlat;Ixe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:Lxe("x"),yhoverformat:Lxe("y"),text:wG({},zv.text,{}),hovertext:wG({},zv.hovertext,{}),orientation:zv.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:zxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:zxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Gbt({},{keys:Wbt.eventDataKeys}),hovertemplatefallback:Pxe(),texttemplate:Hbt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:Pxe({editType:"plot"}),textposition:wG({},zv.textposition,{arrayOk:!1}),textfont:bG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:bG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:bG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:zv.insidetextanchor,textangle:zv.textangle,cliponaxis:zv.cliponaxis,constraintext:zv.constraintext,marker:zv.marker,offsetgroup:zv.offsetgroup,alignmentgroup:zv.alignmentgroup,selected:zv.selected,unselected:zv.unselected,zorder:zv.zorder}});var Oxe=we((Bcr,Fxe)=>{"use strict";var Dxe=$l(),RE=ei(),Rxe=jl(),jbt=i0().handleText,Xbt=XI(),Zbt=wD();Fxe.exports=function(t,r,n,i){function a(C,M){return RE.coerce(t,r,Zbt,C,M)}var o=a("x"),s=a("y"),u=a("cumulative.enabled");u&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var l=a("textposition");jbt(t,r,i,a,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat");var f=a("orientation",s&&!o?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=o&&s?Math.min(RE.minRowLength(o)&&RE.minRowLength(s)):RE.minRowLength(r[c]||[]);if(!d){r.visible=!1;return}r._length=d;var p=Dxe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],i);var y=r[h];y&&a("histfunc"),a("histnorm"),a("autobin"+c),Xbt(t,r,a,n,i),RE.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,v=Dxe.getComponentMethod("errorbars","supplyDefaults");v(t,r,b||Rxe.defaultLine,{axis:"y"}),v(t,r,b||Rxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var TD=we((qcr,Nxe)=>{"use strict";var FE=ei(),Ybt=jc(),AD=$l().traceIs,Kbt=r2(),Jbt=i0().validateCornerradius,Bxe=FE.nestedProperty,AG=$b().getAxisGroup,qxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],$bt=["x","y"];Nxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,u,l,f,c,h,d;function p(G,j){return FE.coerce(s._input,s,s._module.attributes,G,j)}function y(G){return G.orientation==="v"?"x":"y"}function b(G,j){var W=Ybt.getFromTrace({_fullLayout:r},G,j);return W.type}function v(G,j,W){var N=G.uid+"__"+W;j||(j=N);var H=b(G,W),re=G[W+"calendar"]||"",ae=n[j],me=!0;ae&&(H===ae.axType&&re===ae.calendar?(me=!1,ae.traces.push(G),ae.dirs.push(W)):(j=N,H!==ae.axType&&FE.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+H,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),re!==ae.calendar&&FE.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),me&&(n[j]={traces:[G],dirs:[W],axType:H,calendar:G[W+"calendar"]||""}),G["_"+W+"bingroup"]=j}for(c=0;c{"use strict";var Qbt=IA().hoverPoints,e2t=wu().hoverLabelText;Uxe.exports=function(t,r,n,i,a){var o=Qbt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],u=t.cd[0].trace;if(!u.cumulative.enabled){var l=u.orientation==="h"?"y":"x";t[l+"Label"]=e2t(t[l+"a"],[s.ph0,s.ph1],u[l+"hoverformat"])}return o}}});var TG=we((Ucr,Gxe)=>{"use strict";Gxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var u=0;u{"use strict";Hxe.exports={attributes:wD(),layoutAttributes:jI(),supplyDefaults:Oxe(),crossTraceDefaults:TD(),supplyLayoutDefaults:HV(),calc:dG().calc,crossTraceCalc:i2().crossTraceCalc,plot:v2().plot,layerName:"barlayer",style:V0().style,styleOnSelect:V0().styleOnSelect,colorbar:tp(),hoverPoints:Vxe(),selectPoints:DA(),eventData:TG(),moduleType:"trace",name:"histogram",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Xxe=we((Gcr,jxe)=>{"use strict";jxe.exports=Wxe()});var MD=we((Hcr,Kxe)=>{"use strict";var Wm=wD(),Zxe=xG(),SD=OA(),t2t=Gf(),SG=Xc().axisHoverFormat,{hovertemplateAttrs:r2t,texttemplateAttrs:i2t,templatefallbackAttrs:Yxe}=Ff(),n2t=nc(),OE=Su().extendFlat;Kxe.exports=OE({x:Wm.x,y:Wm.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Wm.histnorm,histfunc:Wm.histfunc,nbinsx:Wm.nbinsx,xbins:Zxe("x"),nbinsy:Wm.nbinsy,ybins:Zxe("y"),autobinx:Wm.autobinx,autobiny:Wm.autobiny,bingroup:OE({},Wm.bingroup,{}),xbingroup:OE({},Wm.bingroup,{}),ybingroup:OE({},Wm.bingroup,{}),xgap:SD.xgap,ygap:SD.ygap,zsmooth:SD.zsmooth,xhoverformat:SG("x"),yhoverformat:SG("y"),zhoverformat:SG("z",1),hovertemplate:r2t({},{keys:["z"]}),hovertemplatefallback:Yxe(),texttemplate:i2t({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:Yxe({editType:"plot"}),textfont:SD.textfont,showlegend:OE({},t2t.showlegend,{dflt:!1})},n2t("",{cLetter:"z",autoColorDflt:!1}))});var MG=we((Wcr,$xe)=>{"use strict";var a2t=$l(),Jxe=ei();$xe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Jxe.minRowLength(a),u=Jxe.minRowLength(o);if(!s||!u){r.visible=!1;return}r._length=Math.min(s,u);var l=a2t.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y"],i);var f=n("z")||n("marker.color");f&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var ebe=we((jcr,Qxe)=>{"use strict";var o2t=ei(),s2t=MG(),l2t=oG(),u2t=nd(),f2t=IE(),c2t=MD();Qxe.exports=function(t,r,n,i){function a(o,s){return o2t.coerce(t,r,c2t,o,s)}s2t(t,r,a,i),r.visible!==!1&&(l2t(t,r,a,i),u2t(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),f2t(a,i),a("xhoverformat"),a("yhoverformat"))}});var ibe=we((Xcr,rbe)=>{"use strict";var h2t=bD(),tbe=wu().hoverLabelText;rbe.exports=function(t,r,n,i,a){var o=h2t(t,r,n,i,a);if(o){t=o[0];var s=t.index,u=s[0],l=s[1],f=t.cd[0],c=f.trace,h=f.xRanges[l],d=f.yRanges[u];return t.xLabel=tbe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=tbe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var abe=we((Zcr,nbe)=>{"use strict";nbe.exports={attributes:MD(),supplyDefaults:ebe(),crossTraceDefaults:TD(),calc:vD(),plot:gD(),layerName:"heatmaplayer",colorbar:D_(),style:_D(),hoverPoints:ibe(),eventData:TG(),moduleType:"trace",name:"histogram2d",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var sbe=we((Ycr,obe)=>{"use strict";obe.exports=abe()});var ED=we((Kcr,lbe)=>{"use strict";lbe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var BE=we((Jcr,hbe)=>{"use strict";var kh=OA(),kD=Zc(),fbe=Xc(),EG=fbe.axisHoverFormat,d2t=fbe.descriptionOnlyNumbers,p2t=nc(),v2t=Id().dash,m2t=gc(),VA=Su().extendFlat,cbe=ED(),y2t=cbe.COMPARISON_OPS2,g2t=cbe.INTERVAL_OPS,ube=kD.line;hbe.exports=VA({z:kh.z,x:kh.x,x0:kh.x0,dx:kh.dx,y:kh.y,y0:kh.y0,dy:kh.dy,xperiod:kh.xperiod,yperiod:kh.yperiod,xperiod0:kD.xperiod0,yperiod0:kD.yperiod0,xperiodalignment:kh.xperiodalignment,yperiodalignment:kh.yperiodalignment,text:kh.text,hovertext:kh.hovertext,transpose:kh.transpose,xtype:kh.xtype,ytype:kh.ytype,xhoverformat:EG("x"),yhoverformat:EG("y"),zhoverformat:EG("z",1),hovertemplate:kh.hovertemplate,hovertemplatefallback:kh.hovertemplatefallback,texttemplate:VA({},kh.texttemplate,{}),texttemplatefallback:kh.texttemplatefallback,textfont:VA({},kh.textfont,{}),hoverongaps:kh.hoverongaps,connectgaps:VA({},kh.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:m2t({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:d2t("contour label")},operation:{valType:"enumerated",values:[].concat(y2t).concat(g2t),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:VA({},ube.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:v2t,smoothing:VA({},ube.smoothing,{}),editType:"plot"},zorder:kD.zorder},p2t("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var CG=we(($cr,pbe)=>{"use strict";var Tp=MD(),Ny=BE(),_2t=nc(),kG=Xc().axisHoverFormat,dbe=Su().extendFlat;pbe.exports=dbe({x:Tp.x,y:Tp.y,z:Tp.z,marker:Tp.marker,histnorm:Tp.histnorm,histfunc:Tp.histfunc,nbinsx:Tp.nbinsx,xbins:Tp.xbins,nbinsy:Tp.nbinsy,ybins:Tp.ybins,autobinx:Tp.autobinx,autobiny:Tp.autobiny,bingroup:Tp.bingroup,xbingroup:Tp.xbingroup,ybingroup:Tp.ybingroup,autocontour:Ny.autocontour,ncontours:Ny.ncontours,contours:Ny.contours,line:{color:Ny.line.color,width:dbe({},Ny.line.width,{dflt:.5}),dash:Ny.line.dash,smoothing:Ny.line.smoothing,editType:"plot"},xhoverformat:kG("x"),yhoverformat:kG("y"),zhoverformat:kG("z",1),hovertemplate:Tp.hovertemplate,hovertemplatefallback:Tp.hovertemplatefallback,texttemplate:Ny.texttemplate,texttemplatefallback:Ny.texttemplatefallback,textfont:Ny.textfont},_2t("",{cLetter:"z",editTypeOverride:"calc"}))});var CD=we((Qcr,vbe)=>{"use strict";vbe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,u=n("contours.size"),l;s?l=r.autocontour=!0:l=n("autocontour",!1),(l||!u)&&n("ncontours")}});var LG=we((ehr,mbe)=>{"use strict";var x2t=ei();mbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;x2t.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var LD=we((thr,ybe)=>{"use strict";var b2t=nd(),w2t=LG();ybe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,u="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(u=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,b2t(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),w2t(n,i,u,a)}});var bbe=we((rhr,xbe)=>{"use strict";var gbe=ei(),A2t=MG(),T2t=CD(),S2t=LD(),M2t=IE(),_be=CG();xbe.exports=function(t,r,n,i){function a(s,u){return gbe.coerce(t,r,_be,s,u)}function o(s){return gbe.coerce2(t,r,_be,s)}A2t(t,r,a,i),r.visible!==!1&&(T2t(t,r,a,o),S2t(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&M2t(a,i))}});var IG=we((ihr,Abe)=>{"use strict";var zG=wu(),PG=ei();Abe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=PG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=PG.aggNums(Math.max,null,r));var o=wbe(i,a,t.ncontours);n.size=o.dtick,n.start=zG.tickFirst(o),o.range.reverse(),n.end=zG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),PG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,u=n.end,l=t._input.contours;if(s>u&&(n.start=l.start=u,u=n.end=l.end=s,s=n.start),!(n.size>0)){var f;s===u?f=1:f=wbe(s,u,t.ncontours).dtick,l.size=n.size=f}}};function wbe(e,t,r){var n={type:"linear",range:[e,t]};return zG.autoTicks(n,(t-e)/(r||15)),n}});var qE=we((nhr,Tbe)=>{"use strict";Tbe.exports=function(t){return t.end+t.size/1e6}});var DG=we((ahr,Mbe)=>{"use strict";var Sbe=_c(),E2t=vD(),k2t=IG(),C2t=qE();Mbe.exports=function(t,r){var n=E2t(t,r),i=n[0].z;k2t(r,i);var a=r.contours,o=Sbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var u=a.start,l=C2t(a),f=a.size||1,c=Math.floor((l-u)/f)+1;isFinite(f)||(f=1,c=1);var h=u-f/2,d=h+c*f;s=[h,d]}else s=i;return Sbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var NE=we((ohr,Ebe)=>{"use strict";Ebe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var RG=we((shr,kbe)=>{"use strict";var PD=NE();kbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,u,l,f,c,h,d,p;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var FG=we((lhr,Pbe)=>{"use strict";var zD=ei(),GA=NE();Pbe.exports=function(t,r,n){var i,a,o,s,u;for(r=r||.01,n=n||.01,o=0;o20?(o=GA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=GA.SADDLEREMAINDER[o]):delete e.crossings[a],s=GA.NEWDELTA[o],!s){zD.log("Found bad marching index:",o,t,e.level);break}u.push(Lbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),UE(u[u.length-1],u[u.length-2],n,i)&&u.pop();var p=s[0]&&(t[0]<0||t[0]>f-2)||s[1]&&(t[1]<0||t[1]>l-2),y=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(y||r&&p)break;o=e.crossings[a]}d===1e4&&zD.log("Infinite loop in contour?");var b=UE(u[0],u[u.length-1],n,i),v=0,C=.2*e.smoothing,M=[],A=0,L,x,k,S,m,P,E,O,F,U,G;for(d=1;d=A;d--)if(L=M[d],L=A&&L+M[x]O&&F--,e.edgepaths[F]=G.concat(u,U));break}H||(e.edgepaths[O]=u.concat(U))}for(O=0;O20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:GA.BOTTOMSTART.indexOf(e)!==-1?i=1:GA.LEFTSTART.indexOf(e)!==-1?n=1:GA.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function Lbe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var u=(e.level-a)/(e.z[i][n+1]-a),l=(u!==1?(1-u)*o.c2l(e.x[n]):0)+(u!==0?u*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(l),!0),s.c2p(e.y[i],!0),n+u,i]}else{var f=(e.level-a)/(e.z[i+1][n]-a),c=(f!==1?(1-f)*s.c2l(e.y[i]):0)+(f!==0?f*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(c),!0),n,i+f]}}});var Rbe=we((uhr,Dbe)=>{"use strict";var OG=ED(),I2t=ku();Dbe.exports={"[]":zbe("[]"),"][":zbe("]["),">":BG(">"),"<":BG("<"),"=":BG("=")};function Ibe(e,t){var r=Array.isArray(t),n;function i(a){return I2t(a)?+a:null}return OG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):OG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:OG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function zbe(e){return function(t){t=Ibe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function BG(e){return function(t){return t=Ibe(e,t),{start:t,end:1/0,size:1/0}}}});var qG=we((fhr,Obe)=>{"use strict";var Fbe=ei(),D2t=Rbe(),R2t=qE();Obe.exports=function(t,r,n){for(var i=t.type==="constraint"?D2t[t._operation](t.value):t,a=i.size,o=[],s=R2t(i),u=n.trace._carpetTrace,l=u?{xaxis:u.aaxis,yaxis:u.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},f=i.start;f1e3){Fbe.warn("Too many contours, clipping at 1000",t);break}return o}});var NG=we((chr,qbe)=>{"use strict";var HA=ei();qbe.exports=function(e,t){var r,n,i,a=function(u){return u.reverse()},o=function(u){return u};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&HA.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Nbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,u=r.y.length,l=-1/0,f=1/0;for(i=0;i":c>l&&(r.prefixBoundary=!0);break;case"<":(cl||r.starts.length&&d===f)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),hl&&(r.prefixBoundary=!0);break}break}}});var ID=we(Wp=>{"use strict";var GE=Jl(),Bd=ei(),Wg=Mu(),F2t=_c(),Gbe=Wf(),Ube=wu(),Vbe=xy(),O2t=gD(),Hbe=RG(),Wbe=FG(),B2t=qG(),q2t=NG(),jbe=UG(),VE=NE(),Uy=VE.LABELOPTIMIZER;Wp.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;Bd.makeTraceGroups(i,n,"contour").each(function(s){var u=GE.select(this),l=s[0],f=l.trace,c=l.x,h=l.y,d=f.contours,p=B2t(d,r,l),y=Bd.ensureSingle(u,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),O2t(t,r,b,y),Hbe(p),Wbe(p);var v=a.c2p(c[0],!0),C=a.c2p(c[c.length-1],!0),M=o.c2p(h[0],!0),A=o.c2p(h[h.length-1],!0),L=[[v,A],[C,A],[C,M],[v,M]],x=p;d.type==="constraint"&&(x=q2t(p,d._operation)),N2t(u,L,d),U2t(u,x,L,d),V2t(u,p,t,l,d),H2t(u,r,t,l,L)})};function N2t(e,t,r){var n=Bd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function U2t(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&jbe(t,n);var o=Bd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(u){var l=(u.prefixBoundary?a:"")+Xbe(u,r);l?GE.select(this).attr("d",l).style("stroke","none"):GE.select(this).remove()})}function Xbe(e,t){var r="",n=0,i=e.edgepaths.map(function(v,C){return C}),a=!0,o,s,u,l,f,c;function h(v){return Math.abs(v[1]-t[0][1])<.01}function d(v){return Math.abs(v[1]-t[2][1])<.01}function p(v){return Math.abs(v[0]-t[0][0])<.01}function y(v){return Math.abs(v[0]-t[2][0])<.01}for(;i.length;){for(c=Wg.smoothopen(e.edgepaths[n],e.smoothing),r+=a?c:c.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],l=-1,u=0;u<4;u++){if(!o){Bd.log("Missing end?",n,e);break}for(h(o)&&!y(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:y(o)&&(s=t[2]),f=0;f=0&&(s=b,l=f):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,l=f):Bd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,l>=0)break;r+="L"+s}if(l===e.edgepaths.length){Bd.log("unclosed perimeter path");break}n=l,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nUy.MAXCOST*2)break;h&&(s/=2),o=l-s/2,u=o+s*1.5}if(c<=Uy.MAXCOST)return f};function G2t(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,u=e.theta,l=Math.cos(u)*i,f=Math.sin(u)*i,c=(o>n.center?n.right-o:o-n.left)/(l+Math.abs(Math.sin(u)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(f)+Math.cos(u)*a);if(c<1||h<1)return 1/0;var d=Uy.EDGECOST*(1/(c-1)+1/(h-1));d+=Uy.ANGLECOST*u*u;for(var p=o-l,y=s-f,b=o+l,v=s+f,C=0;C{"use strict";var j2t=Jl(),VG=_c(),X2t=qE();Zbe.exports=function(t){var r=t.contours,n=r.start,i=X2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,u=VG.extractOpts(t);isFinite(a)||(a=1,o=1);var l=u.reversescale?VG.flipScale(u.colorscale):u.colorscale,f=l.length,c=new Array(f),h=new Array(f),d,p,y=u.min,b=u.max;if(r.coloring==="heatmap"){for(p=0;p=b)&&(n<=y&&(n=y),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),p=0;py&&(c.unshift(y),h.unshift(h[0])),c[c.length-1]{"use strict";var DD=Jl(),Ybe=Mu(),Z2t=_D(),Y2t=GG();Kbe.exports=function(t){var r=DD.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=DD.select(this),a=n[0].trace,o=a.contours,s=a.line,u=o.size||1,l=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",h=!f&&o.coloring==="fill",d=c||h?Y2t(a):null;i.selectAll("g.contourlevel").each(function(b){DD.select(this).selectAll("path").call(Ybe.lineGroupStyle,s.width,c?d(b.level):s.color,s.dash)});var p=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Ybe.font(DD.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(b.level):s.color)})}),f)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var y;i.selectAll("g.contourfill path").style("fill",function(b){return y===void 0&&(y=b.level),d(b.level+.5*u)}),y===void 0&&(y=l),i.selectAll("g.contourbg path").style("fill",d(y-.5*u))}}),Z2t(t)}});var FD=we((mhr,$be)=>{"use strict";var Jbe=_c(),K2t=GG(),J2t=qE();function $2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=K2t(t,{isColorbar:!0});if(o==="heatmap"){var u=Jbe.extractOpts(t);r._fillgradient=u.reversescale?Jbe.flipScale(u.colorscale):u.colorscale,r._zrange=[u.min,u.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:J2t(n),size:a}}$be.exports={min:"zmin",max:"zmax",calc:$2t}});var HG=we((yhr,Qbe)=>{"use strict";var OD=jl(),Q2t=bD();Qbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=Q2t(t,r,n,i,a);return o&&o.forEach(function(s){var u=s.trace;u.contours.type==="constraint"&&(u.fillcolor&&OD.opacity(u.fillcolor)?s.color=OD.addOpacity(u.fillcolor,1):u.contours.showlines&&OD.opacity(u.line.color)&&(s.color=OD.addOpacity(u.line.color,1)))}),o}});var t2e=we((ghr,e2e)=>{"use strict";e2e.exports={attributes:CG(),supplyDefaults:bbe(),crossTraceDefaults:TD(),calc:DG(),plot:ID().plot,layerName:"contourlayer",style:RD(),colorbar:FD(),hoverPoints:HG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var i2e=we((_hr,r2e)=>{"use strict";r2e.exports=t2e()});var WG=we((xhr,u2e)=>{"use strict";var n2e=ku(),ewt=LG(),s2e=jl(),a2e=s2e.addOpacity,twt=s2e.opacity,l2e=ED(),o2e=ei().isArrayOrTypedArray,rwt=l2e.CONSTRAINT_REDUCTION,iwt=l2e.COMPARISON_OPS2;u2e.exports=function(t,r,n,i,a,o){var s=r.contours,u,l,f,c=n("contours.operation");if(s._operation=rwt[c],nwt(n,s),c==="="?u=s.showlines=!0:(u=n("contours.showlines"),f=n("fillcolor",a2e((t.line||{}).color||a,.5))),u){var h=f&&twt(f)?a2e(r.fillcolor,1):a;l=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),ewt(n,i,l,o)};function nwt(e,t){var r;iwt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),o2e(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:n2e(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),n2e(t.value)||(o2e(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var h2e=we((bhr,c2e)=>{"use strict";var jG=ei(),awt=aD(),owt=Dm(),swt=WG(),lwt=CD(),uwt=LD(),fwt=IE(),f2e=BE();c2e.exports=function(t,r,n,i){function a(l,f){return jG.coerce(t,r,f2e,l,f)}function o(l){return jG.coerce2(t,r,f2e,l)}var s=awt(t,r,a,i);if(!s){r.visible=!1;return}owt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate"),a("hovertemplatefallback");var u=a("contours.type")==="constraint";a("connectgaps",jG.isArray1D(r.z)),u?swt(t,r,a,i,n):(lwt(t,r,a,o),uwt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&fwt(a,i),a("zorder")}});var p2e=we((whr,d2e)=>{"use strict";d2e.exports={attributes:BE(),supplyDefaults:h2e(),calc:DG(),plot:ID().plot,style:RD(),colorbar:FD(),hoverPoints:HG(),moduleType:"trace",name:"contour",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var m2e=we((Ahr,v2e)=>{"use strict";v2e.exports=p2e()});var XG=we((Thr,x2e)=>{"use strict";var{hovertemplateAttrs:cwt,texttemplateAttrs:hwt,templatefallbackAttrs:y2e}=Ff(),dwt=Pm(),o0=Zc(),pwt=Gf(),g2e=nc(),vwt=Id().dash,R_=Su().extendFlat,X0=o0.marker,HE=o0.line,_2e=X0.line;x2e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:R_({},o0.mode,{dflt:"markers"}),text:R_({},o0.text,{}),texttemplate:hwt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:y2e({editType:"plot"}),hovertext:R_({},o0.hovertext,{}),line:{color:HE.color,width:HE.width,dash:vwt,backoff:HE.backoff,shape:R_({},HE.shape,{values:["linear","spline"]}),smoothing:HE.smoothing,editType:"calc"},connectgaps:o0.connectgaps,cliponaxis:o0.cliponaxis,fill:R_({},o0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:dwt(),marker:R_({symbol:X0.symbol,opacity:X0.opacity,angle:X0.angle,angleref:X0.angleref,standoff:X0.standoff,maxdisplayed:X0.maxdisplayed,size:X0.size,sizeref:X0.sizeref,sizemin:X0.sizemin,sizemode:X0.sizemode,line:R_({width:_2e.width,dash:_2e.dash,editType:"calc"},g2e("marker.line")),gradient:X0.gradient,editType:"calc"},g2e("marker")),textfont:o0.textfont,textposition:o0.textposition,selected:o0.selected,unselected:o0.unselected,hoverinfo:R_({},pwt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o0.hoveron,hovertemplate:cwt(),hovertemplatefallback:y2e()}});var T2e=we((Shr,A2e)=>{"use strict";var b2e=ei(),mwt=Py(),WA=lc(),ywt=$v(),gwt=D0(),w2e=uA(),_wt=R0(),xwt=Rm(),bwt=XG();A2e.exports=function(t,r,n,i){function a(h,d){return b2e.coerce(t,r,bwt,h,d)}var o=a("a"),s=a("b"),u=a("c"),l;if(o?(l=o.length,s?(l=Math.min(l,s.length),u&&(l=Math.min(l,u.length))):u?l=Math.min(l,u.length):l=0):s&&u&&(l=Math.min(s.length,u.length)),!l){r.visible=!1;return}r._length=l,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var f=l{"use strict";var ZG=wu();S2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=ZG.tickText(a.aaxis,t.a,!0).text,i.bLabel=ZG.tickText(a.baxis,t.b,!0).text,i.cLabel=ZG.tickText(a.caxis,t.c,!0).text,i}});var L2e=we((Ehr,C2e)=>{"use strict";var YG=ku(),wwt=F0(),Awt=Dy(),Twt=O0(),Swt=B0().calcMarkerSize,E2e=["a","b","c"],k2e={a:["b","c"],b:["a","c"],c:["a","b"]};C2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,u,l,f,c,h,d;for(u=0;u{"use strict";var Mwt=vA();P2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},u=r.layers.frontplot.select("g.scatterlayer"),l=0;l{"use strict";var Ewt=_A();I2e.exports=function(t,r,n,i){var a=Ewt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index],h=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[h.subplot]={_subplot:d};var y=h._module.formatLabels(c,h,p);o.aLabel=y.aLabel,o.bLabel=y.bLabel,o.cLabel=y.cLabel;var b=c.hi||h.hoverinfo,v=[];function C(A,L){v.push(A._hovertitle+": "+L)}if(!h.hovertemplate){var M=b.split("+");M.indexOf("all")!==-1&&(M=["a","b","c"]),M.indexOf("a")!==-1&&C(d.aaxis,o.aLabel),M.indexOf("b")!==-1&&C(d.baxis,o.bLabel),M.indexOf("c")!==-1&&C(d.caxis,o.cLabel)}return o.extraText=v.join("
"),o.hovertemplate=h.hovertemplate,a}});var F2e=we((Lhr,R2e)=>{"use strict";R2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var X2e=we((Phr,j2e)=>{"use strict";var V2e=Jl(),kwt=hd(),KG=$l(),jg=ei(),Vy=jg.strTranslate,BD=jg._,XA=jl(),qD=Mu(),WE=xy(),JG=Su().extendFlat,Cwt=Cc(),F_=wu(),O2e=xp(),B2e=Vc(),G2e=Cm(),q2e=G2e.freeMode,Lwt=G2e.rectMode,$G=Ob(),Pwt=oh().prepSelect,zwt=oh().selectOnClick,Iwt=oh().clearOutline,Dwt=oh().clearSelectionsCache,H2e=qh();function W2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}j2e.exports=W2e;var Gy=W2e.prototype;Gy.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Gy.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;ajA*l?(v=l,b=v*jA):(b=u,v=b/jA),C=o*b/u,M=s*v/l,p=t.l+t.w*i-b/2,y=t.t+t.h*(1-a)-v/2,r.x0=p,r.y0=y,r.w=b,r.h=v,r.sum=f,r.xaxis={type:"linear",range:[c+2*d-f,f-c-2*h],domain:[i-C/2,i+C/2],_id:"x"},WE(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(U){return U.a>=r.aaxis.range[0]&&U.a<=r.aaxis.range[1]&&U.b>=r.baxis.range[1]&&U.b<=r.baxis.range[0]&&U.c>=r.caxis.range[1]&&U.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[c,f-h-d],domain:[a-M/2,a+M/2],_id:"y"},WE(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var A=r.yaxis.domain[0],L=r.aaxis=JG({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[A,A+M*jA],anchor:"free",position:0,_id:"y",_length:b});WE(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=JG({},e.baxis,{range:[f-c-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});WE(x,r.graphDiv._fullLayout),x.setScale();var k=r.caxis=JG({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[A,A+M*jA],anchor:"free",position:0,_id:"y",_length:b});WE(k,r.graphDiv._fullLayout),k.setScale();var S="M"+p+","+(y+v)+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDef.select("path").attr("d",S),r.layers.plotbg.select("path").attr("d",S);var m="M0,"+v+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDefRelative.select("path").attr("d",m);var P=Vy(p,y);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var E=Vy(p-x._offset,y+v);r.layers.baxis.attr("transform",E),r.layers.bgrid.attr("transform",E);var O=Vy(p+b/2,y)+"rotate(30)"+Vy(0,-L._offset);r.layers.aaxis.attr("transform",O),r.layers.agrid.attr("transform",O);var F=Vy(p+b/2,y)+"rotate(-30)"+Vy(0,-k._offset);r.layers.caxis.attr("transform",F),r.layers.cgrid.attr("transform",F),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+p+","+(y+v)+"l"+b/2+",-"+v:"M0,0").call(XA.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+p+","+(y+v)+"h"+b:"M0,0").call(XA.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",k.showline?"M"+(p+b/2)+","+y+"l"+b/2+","+v:"M0,0").call(XA.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),qD.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Gy.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.slice(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var u=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),l=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=$G.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:BD(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-u,"text-anchor":"middle"}}),i["b-title"]=$G.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:BD(r,"Click to enter Component B title"),attributes:{x:t.x0-l,y:t.y0+t.h+o.title.font.size*.83+l,"text-anchor":"middle"}}),i["c-title"]=$G.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:BD(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+l,y:t.y0+t.h+s.title.font.size*.83+l,"text-anchor":"middle"}})}};Gy.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,u=i+"tickLayout",l=Rwt(e);t[u]!==l&&(o.selectAll("."+a+"tick").remove(),t[u]=l),e.setScale();var f=F_.calcTicks(e),c=F_.clipEnds(e,f),h=F_.makeTransTickFn(e),d=F_.getTickSigns(e)[2],p=jg.deg2rad(s),y=d*(e.linewidth||1)/2,b=d*e.ticklen,v=t.w,C=t.h,M=i==="b"?"M0,"+y+"l"+Math.sin(p)*b+","+Math.cos(p)*b:"M"+y+",0l"+Math.cos(p)*b+","+-Math.sin(p)*b,A={a:"M0,0l"+C+",-"+v/2,b:"M0,0l-"+v/2+",-"+C,c:"M0,0l-"+C+","+v/2}[i];F_.drawTicks(r,e,{vals:e.ticks==="inside"?c:f,layer:o,path:M,transFn:h,crisp:!1}),F_.drawGrid(r,e,{vals:c,layer:t.layers[i+"grid"],path:A,transFn:h,crisp:!1}),F_.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:F_.makeLabelFns(e,0,s)})};function Rwt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var _d=H2e.MINZOOM/2+.87,Fwt="m-0.87,.5h"+_d+"v3h-"+(_d+5.2)+"l"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l2.6,1.5l-"+_d/2+","+_d*.87+"Z",Owt="m0.87,.5h-"+_d+"v3h"+(_d+5.2)+"l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-2.6,1.5l"+_d/2+","+_d*.87+"Z",Bwt="m0,1l"+_d/2+","+_d*.87+"l2.6,-1.5l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-"+(_d/2+2.6)+","+(_d*.87+4.5)+"l2.6,1.5l"+_d/2+",-"+_d*.87+"Z",qwt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",N2e=!0;Gy.clearOutline=function(){Dwt(this.dragOptions),Iwt(this.dragOptions.gd)};Gy.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(E,O,F){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var U=e.dragOptions.dragmode=r._fullLayout.dragmode;q2e(U)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,U==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=v,e.dragOptions.doneFn=k,C(E,O,F)):U==="pan"?(e.dragOptions.moveFn=m,e.dragOptions.clickFn=v,e.dragOptions.doneFn=P,S(),e.clearOutline(r)):(Lwt(U)||q2e(U))&&Pwt(E,O,F,e.dragOptions,U)}};var o,s,u,l,f,c,h,d,p,y;function b(E){var O={};return O[e.id+".aaxis.min"]=E.a,O[e.id+".baxis.min"]=E.b,O[e.id+".caxis.min"]=E.c,O}function v(E,O){var F=r._fullLayout.clickmode;U2e(r),E===2&&(r.emit("plotly_doubleclick",null),KG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),F.indexOf("select")>-1&&E===1&&zwt(O,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),F.indexOf("event")>-1&&B2e.click(r,O,e.id)}function C(E,O,F){var U=t.getBoundingClientRect();o=O-U.left,s=F-U.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,j=jg.apply3DTransform(G)(o,s);o=j[0],s=j[1],u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u,l=e.aaxis.range[1]-u.a,c=kwt(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=n.append("path").attr("class","zoombox").attr("transform",Vy(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),y=n.append("path").attr("class","zoombox-corners").attr("transform",Vy(e.x0,e.y0)).style({fill:XA.background,stroke:XA.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function M(E,O){return 1-O/e.h}function A(E,O){return 1-(E+(e.h-O)/Math.sqrt(3))/e.w}function L(E,O){return(E-(e.h-O)/Math.sqrt(3))/e.w}function x(E,O){var F=o+E*i,U=s+O*a,G=Math.max(0,Math.min(1,M(o,s),M(F,U))),j=Math.max(0,Math.min(1,A(o,s),A(F,U))),W=Math.max(0,Math.min(1,L(o,s),L(F,U))),N=(G/2+W)*e.w,H=(1-G/2-j)*e.w,re=(N+H)/2,ae=H-N,me=(1-G)*e.h,Le=me-ae/jA;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),y.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(f))}function k(){U2e(r),f!==u&&(KG.call("_guiRelayout",r,b(f)),N2e&&r.data&&r._context.showTips&&(jg.notifier(BD(r,"Double-click to zoom back out"),"long",r),N2e=!1))}function S(){u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u}function m(E,O){var F=E/e.xaxis._m,U=O/e.yaxis._m;f={a:u.a-U,b:u.b+(F+U)/2,c:u.c-(F-U)/2};var G=[f.a,f.b,f.c].sort(jg.sorterAsc),j={a:G.indexOf(f.a),b:G.indexOf(f.b),c:G.indexOf(f.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),f={a:G[j.a],b:G[j.b],c:G[j.c]},O=(u.a-f.a)*e.yaxis._m,E=(u.c-f.c-u.b+f.b)*e.xaxis._m);var W=Vy(e.x0+E,e.y0+O);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",W);var N=Vy(-E,-O);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(qD.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(f))}function P(){KG.call("_guiRelayout",r,b(f))}t.onmousemove=function(E){B2e.hover(r,E,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(E){r._dragging||O2e.unhover(r,E)},O2e.init(this.dragOptions)};function U2e(e){V2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var tH=we((zhr,Z2e)=>{"use strict";var Nwt=Bh(),Uwt=zc().attributes,Kf=Rd(),Vwt=Sc().overrideAll,QG=Su().extendFlat,eH={title:{text:Kf.title.text,font:Kf.title.font},color:Kf.color,tickmode:Kf.minor.tickmode,nticks:QG({},Kf.nticks,{dflt:6,min:1}),tick0:Kf.tick0,dtick:Kf.dtick,tickvals:Kf.tickvals,ticktext:Kf.ticktext,ticks:Kf.ticks,ticklen:Kf.ticklen,tickwidth:Kf.tickwidth,tickcolor:Kf.tickcolor,ticklabelstep:Kf.ticklabelstep,showticklabels:Kf.showticklabels,labelalias:Kf.labelalias,showtickprefix:Kf.showtickprefix,tickprefix:Kf.tickprefix,showticksuffix:Kf.showticksuffix,ticksuffix:Kf.ticksuffix,showexponent:Kf.showexponent,exponentformat:Kf.exponentformat,minexponent:Kf.minexponent,separatethousands:Kf.separatethousands,tickfont:Kf.tickfont,tickangle:Kf.tickangle,tickformat:Kf.tickformat,tickformatstops:Kf.tickformatstops,hoverformat:Kf.hoverformat,showline:QG({},Kf.showline,{dflt:!0}),linecolor:Kf.linecolor,linewidth:Kf.linewidth,showgrid:QG({},Kf.showgrid,{dflt:!0}),gridcolor:Kf.gridcolor,gridwidth:Kf.gridwidth,griddash:Kf.griddash,layer:Kf.layer,min:{valType:"number",dflt:0,min:0}},ND=Z2e.exports=Vwt({domain:Uwt({name:"ternary"}),bgcolor:{valType:"color",dflt:Nwt.background},sum:{valType:"number",dflt:1,min:0},aaxis:eH,baxis:eH,caxis:eH},"plot","from-root");ND.uirevision={valType:"any",editType:"none"};ND.aaxis.uirevision=ND.baxis.uirevision=ND.caxis.uirevision={valType:"any",editType:"none"}});var O_=we((Ihr,Y2e)=>{"use strict";var Gwt=ei(),Hwt=Lf(),Wwt=zc().defaults;Y2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,u=i.partition||"x",l=r._subplots[a],f=l.length,c=f&&l[0].replace(/\d+$/,""),h,d;function p(C,M){return Gwt.coerce(h,d,o,C,M)}for(var y=0;y{"use strict";var jwt=jl(),Xwt=Lf(),UD=ei(),Zwt=O_(),Ywt=s_(),Kwt=l_(),Jwt=O3(),$wt=Pb(),Qwt=fE(),J2e=tH(),K2e=["aaxis","baxis","caxis"];$2e.exports=function(t,r,n){Zwt(t,r,n,{type:"ternary",attributes:J2e,handleDefaults:e3t,font:r.font,paper_bgcolor:r.paper_bgcolor})};function e3t(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=jwt.combine(i,n.paper_bgcolor);for(var o,s,u,l=0;l=a&&(f.min=0,c.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function t3t(e,t,r,n){var i=J2e[t._name];function a(d,p){return UD.coerce(e,t,i,d,p)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,u=t._name,l=u.charAt(0).toUpperCase(),f="Component "+l,c=a("title.text",f);t._hovertitle=c===f?c:l,UD.coerceFont(a,"title.font",r.font,{overrideDflt:{size:UD.bigFont(r.font.size),color:s}}),a("min"),$wt(e,t,a,"linear"),Kwt(e,t,a,"linear"),Ywt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),Jwt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(UD.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),Qwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var ewe=we(Z0=>{"use strict";var r3t=X2e(),i3t=Dd().getSubplotCalcData,n3t=ei().counterRegex,ZA="ternary";Z0.name=ZA;var a3t=Z0.attr="subplot";Z0.idRoot=ZA;Z0.idRegex=Z0.attrRegex=n3t(ZA);var o3t=Z0.attributes={};o3t[a3t]={valType:"subplotid",dflt:"ternary",editType:"calc"};Z0.layoutAttributes=tH();Z0.supplyLayoutDefaults=Q2e();Z0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[ZA],a=0;a{"use strict";twe.exports={attributes:XG(),supplyDefaults:T2e(),colorbar:tp(),formatLabels:M2e(),calc:L2e(),plot:z2e(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:D2e(),selectPoints:xA(),eventData:F2e(),moduleType:"trace",name:"scatterternary",basePlotModule:ewe(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var nwe=we((Ohr,iwe)=>{"use strict";iwe.exports=rwe()});var rH=we((Bhr,owe)=>{"use strict";var Hh=CE(),YA=Su().extendFlat,awe=Xc().axisHoverFormat;owe.exports={y:Hh.y,x:Hh.x,x0:Hh.x0,y0:Hh.y0,xhoverformat:awe("x"),yhoverformat:awe("y"),name:YA({},Hh.name,{}),orientation:YA({},Hh.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Hh.fillcolor,points:YA({},Hh.boxpoints,{}),jitter:YA({},Hh.jitter,{}),pointpos:YA({},Hh.pointpos,{}),width:YA({},Hh.width,{}),marker:Hh.marker,text:Hh.text,hovertext:Hh.hovertext,hovertemplate:Hh.hovertemplate,hovertemplatefallback:Hh.hovertemplatefallback,quartilemethod:Hh.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:Hh.offsetgroup,alignmentgroup:Hh.alignmentgroup,selected:Hh.selected,unselected:Hh.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:Hh.zorder}});var aH=we((qhr,swe)=>{"use strict";var iH=LE(),nH=ei().extendFlat;swe.exports={violinmode:nH({},iH.boxmode,{}),violingap:nH({},iH.boxgap,{}),violingroupgap:nH({},iH.boxgroupgap,{})}});var hwe=we((Nhr,cwe)=>{"use strict";var lwe=ei(),s3t=jl(),uwe=zE(),fwe=rH();cwe.exports=function(t,r,n,i){function a(L,x){return lwe.coerce(t,r,fwe,L,x)}function o(L,x){return lwe.coerce2(t,r,fwe,L,x)}if(uwe.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var u=a("span"),l;Array.isArray(u)&&(l="manual"),a("spanmode",l);var f=a("line.color",(t.marker||{}).color||n),c=a("line.width"),h=a("fillcolor",s3t.addOpacity(r.line.color,.5));uwe.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),y=o("box.line.color",f),b=o("box.line.width",c),v=a("box.visible",!!(d||p||y||b));v||(r.box={visible:!1});var C=o("meanline.color",f),M=o("meanline.width",c),A=a("meanline.visible",!!(C||M));A||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var pwe=we((Uhr,dwe)=>{"use strict";var l3t=ei(),u3t=aH(),f3t=QI();dwe.exports=function(t,r,n){function i(a,o){return l3t.coerce(t,r,u3t,a,o)}f3t._supply(t,r,n,i,"violin")}});var VD=we(g2=>{"use strict";var c3t=ei(),h3t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};g2.makeKDE=function(e,t,r){var n=r.length,i=h3t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var u=0,l=0;l{"use strict";var oH=ei(),sH=wu(),d3t=$V(),vwe=VD(),p3t=rf().BADNUM;mwe.exports=function(t,r){var n=d3t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=sH.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,u=0,l=0,f=0;f{"use strict";var g3t=tD().setPositionOffset,gwe=["v","h"];_we.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var lH=Jl(),uH=ei(),_3t=Mu(),fH=rD(),x3t=FU(),b3t=VD();bwe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,u=r.yaxis;function l(f,c){var h=x3t(f,{xaxis:s,yaxis:u,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return _3t.smoothopen(h[0],1)}uH.makeTraceGroups(i,n,"trace violins").each(function(f){var c=lH.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var y=d.bPos,b=d.bdPos,v=r[d.valLetter+"axis"],C=r[d.posLetter+"axis"],M=p.side==="both",A=M||p.side==="positive",L=M||p.side==="negative",x=c.selectAll("path.violin").data(uH.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(U){var G=lH.select(this),j=U.density,W=j.length,N=C.c2l(U.pos+y,!0),H=C.l2p(N),re;if(p.width)re=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[p.scalegroup];re=p.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/U.pts.length):ae.maxKDE/b}var me,Le,Ce,de,te,Se,Te;if(A){for(Se=new Array(W),de=0;de{"use strict";var Awe=Jl(),KA=jl(),w3t=sv().stylePoints;Twe.exports=function(t){var r=Awe.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=Awe.select(this),o=i.box||{},s=o.line||{},u=i.meanline||{},l=u.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(KA.stroke,i.line.color).call(KA.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(KA.stroke,s.color).call(KA.fill,o.fillcolor);var f={"stroke-width":l+"px","stroke-dasharray":2*l+"px,"+l+"px"};a.selectAll("path.mean").style(f).call(KA.stroke,u.color),a.selectAll("path.meanline").style(f).call(KA.stroke,u.color),w3t(a,i,t)})}});var Cwe=we((Xhr,kwe)=>{"use strict";var A3t=jl(),cH=ei(),T3t=wu(),Mwe=iG(),Ewe=VD();kwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,u=s[0].trace,l=u.hoveron,f=l.indexOf("violins")!==-1,c=l.indexOf("kde")!==-1,h=[],d,p;if(f||c){var y=Mwe.hoverOnBoxes(t,r,n,i);if(c&&y.length>0){var b=t.xa,v=t.ya,C,M,A,L,x;u.orientation==="h"?(x=r,C="y",A=v,M="x",L=b):(x=n,C="x",A=b,M="y",L=v);var k=s[t.index];if(x>=k.span[0]&&x<=k.span[1]){var S=cH.extendFlat({},t),m=L.c2p(x,!0),P=Ewe.getKdeValue(k,u,x),E=Ewe.getPositionOnKdePath(k,u,m),O=A._offset,F=A._length;S[C+"0"]=E[0],S[C+"1"]=E[1],S[M+"0"]=S[M+"1"]=m,S[M+"Label"]=M+": "+T3t.hoverLabelText(L,x,u[M+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G{"use strict";Lwe.exports={attributes:rH(),layoutAttributes:aH(),supplyDefaults:hwe(),crossTraceDefaults:zE().crossTraceDefaults,supplyLayoutDefaults:pwe(),calc:ywe(),crossTraceCalc:xwe(),plot:wwe(),style:Swe(),styleOnSelect:sv().styleOnSelect,hoverPoints:Cwe(),selectPoints:nG(),moduleType:"trace",name:"violin",basePlotModule:Mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Iwe=we((Yhr,zwe)=>{"use strict";zwe.exports=Pwe()});var Rwe=we((Khr,Dwe)=>{"use strict";Dwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var dH=we((Jhr,qwe)=>{"use strict";var Fc=Oy(),hH=Zc().line,S3t=Gf(),Fwe=Xc().axisHoverFormat,{hovertemplateAttrs:M3t,texttemplateAttrs:E3t,templatefallbackAttrs:Owe}=Ff(),Bwe=Rwe(),Xg=Su().extendFlat,k3t=jl();qwe.exports={x:Fc.x,x0:Fc.x0,dx:Fc.dx,y:Fc.y,y0:Fc.y0,dy:Fc.dy,xperiod:Fc.xperiod,yperiod:Fc.yperiod,xperiod0:Fc.xperiod0,yperiod0:Fc.yperiod0,xperiodalignment:Fc.xperiodalignment,yperiodalignment:Fc.yperiodalignment,xhoverformat:Fwe("x"),yhoverformat:Fwe("y"),hovertext:Fc.hovertext,hovertemplate:M3t({},{keys:Bwe.eventDataKeys}),hovertemplatefallback:Owe(),hoverinfo:Xg({},S3t.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:E3t({editType:"plot"},{keys:Bwe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Owe({editType:"plot"}),text:Fc.text,textposition:Fc.textposition,insidetextanchor:Xg({},Fc.insidetextanchor,{dflt:"middle"}),textangle:Xg({},Fc.textangle,{dflt:0}),textfont:Fc.textfont,insidetextfont:Fc.insidetextfont,outsidetextfont:Fc.outsidetextfont,constraintext:Fc.constraintext,cliponaxis:Fc.cliponaxis,orientation:Xg({},Fc.orientation,{}),offset:Xg({},Fc.offset,{arrayOk:!1}),width:Xg({},Fc.width,{arrayOk:!1}),marker:C3t(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Xg({},hH.color,{dflt:k3t.defaultLine}),width:Xg({},hH.width,{dflt:0,editType:"plot"}),dash:hH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Fc.offsetgroup,alignmentgroup:Fc.alignmentgroup,zorder:Fc.zorder};function C3t(){var e=Xg({},Fc.marker);return delete e.pattern,delete e.cornerradius,e}});var pH=we(($hr,Nwe)=>{"use strict";Nwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var mH=we((Qhr,Vwe)=>{"use strict";var GD=ei(),L3t=r2(),P3t=i0().handleText,z3t=lA(),I3t=Dm(),Uwe=dH(),vH=jl();function D3t(e,t,r,n){function i(c,h){return GD.coerce(e,t,Uwe,c,h)}var a=z3t(e,t,n,i);if(!a){t.visible=!1;return}I3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var s=i("textposition");P3t(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",GD.isArrayOrTypedArray(o)?"text+value":"value");var u=i("marker.color",r);i("marker.line.color",vH.defaultLine),i("marker.line.width");var l=i("connector.visible");if(l){i("connector.fillcolor",R3t(u));var f=i("connector.line.width");f&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function R3t(e){var t=GD.isArrayOrTypedArray(e)?"#000":e;return vH.addOpacity(t,.5*vH.opacity(t))}function F3t(e,t){var r,n;function i(o){return GD.coerce(n._input,n,Uwe,o)}for(var a=0;a{"use strict";var O3t=ei(),B3t=pH();Gwe.exports=function(e,t,r){var n=!1;function i(s,u){return O3t.coerce(e,t,B3t,s,u)}for(var a=0;a{"use strict";var JA=ei();Wwe.exports=function(t,r){for(var n=0;n{"use strict";var Xwe=wu(),Zwe=Fm(),q3t=jwe(),N3t=O0(),jE=rf().BADNUM;Ywe.exports=function(t,r){var n=Xwe.getFromId(t,r.xaxis||"x"),i=Xwe.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=Zwe(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=Zwe(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;var d=Math.min(o.length,a.length),p=new Array(d);for(r._base=[],c=0;c{"use strict";var Jwe=i2().setGroupPositions;$we.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var HD=Jl(),q_=ei(),e3e=Mu(),B_=rf().BADNUM,U3t=v2(),V3t=Ap().clearMinTextSize;r3e.exports=function(t,r,n,i){var a=t._fullLayout;V3t("funnel",a),G3t(t,r,n,i),H3t(t,r,n,i),U3t.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function G3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;q_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=HD.select(this),u=o[0].trace,l=q_.ensureSingle(s,"g","regions");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.region").data(q_.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=t3e(d,i,a,f),b=y[0],v=y[1],C="";b[0]!==B_&&v[0]!==B_&&b[1]!==B_&&v[1]!==B_&&b[2]!==B_&&v[2]!==B_&&b[3]!==B_&&v[3]!==B_&&(f?C+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2]+"H"+b[3]+"L"+b[1]+","+v[1]+"Z":C+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3]+"V"+v[2]+"L"+b[1]+","+v[0]+"Z"),C===""&&(C="M0,0Z"),q_.ensureSingle(HD.select(this),"path").attr("d",C).call(e3e.setClipUrl,t.layerClipId,e)}})})}function H3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;q_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=HD.select(this),u=o[0].trace,l=q_.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible||!u.connector.line.width){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.line").data(q_.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=t3e(d,i,a,f),b=y[0],v=y[1],C="";b[3]!==void 0&&v[3]!==void 0&&(f?(C+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2],C+="M"+b[1]+","+v[1]+"L"+b[3]+","+v[2]):(C+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3],C+="M"+b[1]+","+v[0]+"L"+b[2]+","+v[2])),C===""&&(C="M0,0Z"),q_.ensureSingle(HD.select(this),"path").attr("d",C).call(e3e.setClipUrl,t.layerClipId,e)}})})}function t3e(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var o3e=we((adr,a3e)=>{"use strict";var XE=Jl(),n3e=Mu(),gH=jl(),W3t=X1().DESELECTDIM,j3t=V0(),X3t=Ap().resizeText,Z3t=j3t.styleTextPoints;function Y3t(e,t,r){var n=r||XE.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");X3t(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=XE.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o.marker;XE.select(this).call(gH.fill,s.mc||u.color).call(gH.stroke,s.mlc||u.line.color).call(n3e.dashLine,u.line.dash,s.mlw||u.line.width).style("opacity",o.selectedpoints&&!s.selected?W3t:1)}}),Z3t(a,o,e),a.selectAll(".regions").each(function(){XE.select(this).selectAll("path").style("stroke-width",0).call(gH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;n3e.lineGroupStyle(XE.select(this).selectAll("path"),s.width,s.color,s.dash)})})}a3e.exports={style:Y3t}});var u3e=we((odr,l3e)=>{"use strict";var s3e=jl().opacity,K3t=IA().hoverOnBars,_H=ei().formatPercent;l3e.exports=function(t,r,n,i,a){var o=K3t(t,r,n,i,a);if(o){var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=o.index,c=s[f],h=l?"x":"y";o[h+"LabelVal"]=c.s,o.percentInitial=c.begR,o.percentInitialLabel=_H(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=_H(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=_H(c.sumR,1);var d=c.hi||u.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var y=d==="all",b=d.split("+"),v=function(C){return y||b.indexOf(C)!==-1};v("percent initial")&&p.push(o.percentInitialLabel+" of initial"),v("percent previous")&&p.push(o.percentPreviousLabel+" of previous"),v("percent total")&&p.push(o.percentTotalLabel+" of total")}return o.extraText=p.join("
"),o.color=J3t(u,c),[o]}};function J3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(s3e(n))return n;if(s3e(i)&&a)return i}});var c3e=we((sdr,f3e)=>{"use strict";f3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var d3e=we((ldr,h3e)=>{"use strict";h3e.exports={attributes:dH(),layoutAttributes:pH(),supplyDefaults:mH().supplyDefaults,crossTraceDefaults:mH().crossTraceDefaults,supplyLayoutDefaults:Hwe(),calc:Kwe(),crossTraceCalc:Qwe(),plot:i3e(),style:o3e().style,hoverPoints:u3e(),eventData:c3e(),selectPoints:DA(),moduleType:"trace",name:"funnel",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var v3e=we((udr,p3e)=>{"use strict";p3e.exports=d3e()});var y3e=we((fdr,m3e)=>{"use strict";m3e.exports={eventDataKeys:["initial","delta","final"]}});var wH=we((cdr,b3e)=>{"use strict";var Ec=Oy(),xH=Zc().line,$3t=Gf(),g3e=Xc().axisHoverFormat,{hovertemplateAttrs:Q3t,texttemplateAttrs:eAt,templatefallbackAttrs:_3e}=Ff(),x3e=y3e(),$A=Su().extendFlat,tAt=jl();function bH(e){return{marker:{color:$A({},Ec.marker.color,{arrayOk:!1,editType:"style"}),line:{color:$A({},Ec.marker.line.color,{arrayOk:!1,editType:"style"}),width:$A({},Ec.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}b3e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:Ec.x,x0:Ec.x0,dx:Ec.dx,y:Ec.y,y0:Ec.y0,dy:Ec.dy,xperiod:Ec.xperiod,yperiod:Ec.yperiod,xperiod0:Ec.xperiod0,yperiod0:Ec.yperiod0,xperiodalignment:Ec.xperiodalignment,yperiodalignment:Ec.yperiodalignment,xhoverformat:g3e("x"),yhoverformat:g3e("y"),hovertext:Ec.hovertext,hovertemplate:Q3t({},{keys:x3e.eventDataKeys}),hovertemplatefallback:_3e(),hoverinfo:$A({},$3t.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:eAt({editType:"plot"},{keys:x3e.eventDataKeys.concat(["label"])}),texttemplatefallback:_3e({editType:"plot"}),text:Ec.text,textposition:Ec.textposition,insidetextanchor:Ec.insidetextanchor,textangle:Ec.textangle,textfont:Ec.textfont,insidetextfont:Ec.insidetextfont,outsidetextfont:Ec.outsidetextfont,constraintext:Ec.constraintext,cliponaxis:Ec.cliponaxis,orientation:Ec.orientation,offset:Ec.offset,width:Ec.width,increasing:bH("increasing"),decreasing:bH("decreasing"),totals:bH("intermediate sums and total"),connector:{line:{color:$A({},xH.color,{dflt:tAt.defaultLine}),width:$A({},xH.width,{editType:"plot"}),dash:xH.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Ec.offsetgroup,alignmentgroup:Ec.alignmentgroup,zorder:Ec.zorder}});var AH=we((hdr,w3e)=>{"use strict";w3e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var QA=we((ddr,A3e)=>{"use strict";A3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var SH=we((pdr,E3e)=>{"use strict";var T3e=ei(),rAt=r2(),iAt=i0().handleText,nAt=lA(),aAt=Dm(),S3e=wH(),oAt=jl(),M3e=QA(),sAt=M3e.INCREASING.COLOR,lAt=M3e.DECREASING.COLOR,uAt="#4499FF";function TH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",oAt.defaultLine),e(t+".marker.line.width")}function fAt(e,t,r,n){function i(l,f){return T3e.coerce(e,t,S3e,l,f)}var a=nAt(e,t,n,i);if(!a){t.visible=!1;return}aAt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");iAt(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),i("texttemplatefallback"),t.texttemplate||i("textinfo")),TH(i,"increasing",sAt),TH(i,"decreasing",lAt),TH(i,"totals",uAt);var s=i("connector.visible");if(s){i("connector.mode");var u=i("connector.line.width");u&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function cAt(e,t){var r,n;function i(o){return T3e.coerce(n._input,n,S3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var hAt=ei(),dAt=AH();k3e.exports=function(e,t,r){var n=!1;function i(s,u){return hAt.coerce(e,t,dAt,s,u)}for(var a=0;a{"use strict";var L3e=wu(),P3e=Fm(),z3e=ei().mergeArray,pAt=O0(),I3e=rf().BADNUM;function MH(e){return e==="a"||e==="absolute"}function EH(e){return e==="t"||e==="total"}D3e.exports=function(t,r){var n=L3e.getFromId(t,r.xaxis||"x"),i=L3e.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=P3e(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=P3e(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var c=Math.min(o.length,a.length),h=new Array(c),d=0,p,y=!1,b=0;b{"use strict";var F3e=i2().setGroupPositions;O3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var q3e=Jl(),WD=ei(),vAt=Mu(),eT=rf().BADNUM,mAt=v2(),yAt=Ap().clearMinTextSize;N3e.exports=function(t,r,n,i){var a=t._fullLayout;yAt("waterfall",a),mAt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),gAt(t,r,n,i)};function gAt(e,t,r,n){var i=t.xaxis,a=t.yaxis;WD.makeTraceGroups(n,r,"trace bars").each(function(o){var s=q3e.select(this),u=o[0].trace,l=WD.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=u.connector.mode,h=l.selectAll("g.line").data(WD.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,y){if(!(y!==d-1&&!p.cNext)){var b=_At(p,i,a,f),v=b[0],C=b[1],M="";v[0]!==eT&&C[0]!==eT&&v[1]!==eT&&C[1]!==eT&&(c==="spanning"&&!p.isSum&&y>0&&(f?M+="M"+v[0]+","+C[1]+"V"+C[0]:M+="M"+v[1]+","+C[0]+"H"+v[0]),c!=="between"&&(p.isSum||y{"use strict";var jD=Jl(),V3e=Mu(),G3e=jl(),xAt=X1().DESELECTDIM,bAt=V0(),wAt=Ap().resizeText,AAt=bAt.styleTextPoints;function TAt(e,t,r){var n=r||jD.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");wAt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=jD.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o[s.dir].marker;jD.select(this).call(G3e.fill,u.color).call(G3e.stroke,u.line.color).call(V3e.dashLine,u.line.dash,u.line.width).style("opacity",o.selectedpoints&&!s.selected?xAt:1)}}),AAt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;V3e.lineGroupStyle(jD.select(this).selectAll("path"),s.width,s.color,s.dash)})})}H3e.exports={style:TAt}});var K3e=we((xdr,Y3e)=>{"use strict";var SAt=wu().hoverLabelText,j3e=jl().opacity,MAt=IA().hoverOnBars,X3e=QA(),Z3e={increasing:X3e.INCREASING.SYMBOL,decreasing:X3e.DECREASING.SYMBOL};Y3e.exports=function(t,r,n,i,a){var o=MAt(t,r,n,i,a);if(!o)return;var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=l?"x":"y",c=l?t.xa:t.ya;function h(x){return SAt(c,x,u[f+"hoverformat"])}var d=o.index,p=s[d],y=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-y,o.delta=y,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=y<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var v=p.hi||u.hoverinfo,C=[];if(v&&v!=="none"&&v!=="skip"){var M=v==="all",A=v.split("+"),L=function(x){return M||A.indexOf(x)!==-1};p.isSum||(L("final")&&(l?!L("x"):!L("y"))&&C.push(o.finalLabel),L("delta")&&(y<0?C.push(o.deltaLabel+" "+Z3e.decreasing):C.push(o.deltaLabel+" "+Z3e.increasing)),L("initial")&&C.push("Initial: "+o.initialLabel))}return C.length&&(o.extraText=C.join("
")),o.color=EAt(u,p),[o]};function EAt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(j3e(n))return n;if(j3e(i)&&a)return i}});var $3e=we((bdr,J3e)=>{"use strict";J3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var eAe=we((wdr,Q3e)=>{"use strict";Q3e.exports={attributes:wH(),layoutAttributes:AH(),supplyDefaults:SH().supplyDefaults,crossTraceDefaults:SH().crossTraceDefaults,supplyLayoutDefaults:C3e(),calc:R3e(),crossTraceCalc:B3e(),plot:U3e(),style:W3e().style,hoverPoints:K3e(),eventData:$3e(),selectPoints:DA(),moduleType:"trace",name:"waterfall",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var rAe=we((Adr,tAe)=>{"use strict";tAe.exports=eAe()});var tT=we((Tdr,iAe)=>{"use strict";iAe.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var kH=we((Sdr,aAe)=>{"use strict";var kAt=Gf(),CAt=Zc().zorder,{hovertemplateAttrs:LAt,templatefallbackAttrs:PAt}=Ff(),nAe=Su().extendFlat,zAt=tT().colormodel,YE=["rgb","rgba","rgba256","hsl","hsla"],IAt=[],DAt=[];for(rT=0;rT{"use strict";var RAt=ei(),FAt=kH(),oAe=tT(),OAt=Og().IMAGE_URL_PREFIX;sAe.exports=function(t,r){function n(o,s){return RAt.coerce(t,r,FAt,o,s)}n("source"),r.source&&!r.source.match(OAt)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=oAe.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=oAe.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),r._length=null,n("zorder")}});var Zg=we((Edr,CH)=>{typeof Object.create=="function"?CH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:CH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var LH=we((kdr,uAe)=>{uAe.exports=Sb().EventEmitter});var hAe=we(XD=>{"use strict";XD.byteLength=qAt;XD.toByteArray=UAt;XD.fromByteArray=HAt;var Hy=[],Y0=[],BAt=typeof Uint8Array!="undefined"?Uint8Array:Array,PH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_2=0,fAe=PH.length;_20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function qAt(e){var t=cAe(e),r=t[0],n=t[1];return(r+n)*3/4-n}function NAt(e,t,r){return(t+r)*3/4-r}function UAt(e){var t,r=cAe(e),n=r[0],i=r[1],a=new BAt(NAt(e,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Y0[e.charCodeAt(u)]<<2|Y0[e.charCodeAt(u+1)]>>4,a[o++]=t&255),i===1&&(t=Y0[e.charCodeAt(u)]<<10|Y0[e.charCodeAt(u+1)]<<4|Y0[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function VAt(e){return Hy[e>>18&63]+Hy[e>>12&63]+Hy[e>>6&63]+Hy[e&63]}function GAt(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Hy[t>>2]+Hy[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Hy[t>>10]+Hy[t>>4&63]+Hy[t<<2&63]+"=")),i.join("")}});var dAe=we(zH=>{zH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<>1,f=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=a*256+e[t+c],c+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+e[t+c],c+=h,f-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(d?-1:1)*o*Math.pow(2,a-n)};zH.write=function(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,f=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(t*u-1)*Math.pow(2,i),o=o+c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=p,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=p,o/=256,l-=8);e[r+d-p]|=y*128}});var b2=we(oT=>{"use strict";var IH=hAe(),nT=dAe(),pAe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;oT.Buffer=ol;oT.SlowBuffer=KAt;oT.INSPECT_MAX_BYTES=50;var ZD=2147483647;oT.kMaxLength=ZD;ol.TYPED_ARRAY_SUPPORT=WAt();!ol.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function WAt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ol.prototype,"parent",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.buffer}});Object.defineProperty(ol.prototype,"offset",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.byteOffset}});function Yg(e){if(e>ZD)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ol.prototype),t}function ol(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return OH(e)}return gAe(e,t,r)}ol.poolSize=8192;function gAe(e,t,r){if(typeof e=="string")return XAt(e,t);if(ArrayBuffer.isView(e))return ZAt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Wy(e,ArrayBuffer)||e&&Wy(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Wy(e,SharedArrayBuffer)||e&&Wy(e.buffer,SharedArrayBuffer)))return RH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ol.from(n,t,r);let i=YAt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ol.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ol.from=function(e,t,r){return gAe(e,t,r)};Object.setPrototypeOf(ol.prototype,Uint8Array.prototype);Object.setPrototypeOf(ol,Uint8Array);function _Ae(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function jAt(e,t,r){return _Ae(e),e<=0?Yg(e):t!==void 0?typeof r=="string"?Yg(e).fill(t,r):Yg(e).fill(t):Yg(e)}ol.alloc=function(e,t,r){return jAt(e,t,r)};function OH(e){return _Ae(e),Yg(e<0?0:BH(e)|0)}ol.allocUnsafe=function(e){return OH(e)};ol.allocUnsafeSlow=function(e){return OH(e)};function XAt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ol.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=xAe(e,t)|0,n=Yg(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function DH(e){let t=e.length<0?0:BH(e.length)|0,r=Yg(t);for(let n=0;n=ZD)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ZD.toString(16)+" bytes");return e|0}function KAt(e){return+e!=e&&(e=0),ol.alloc(+e)}ol.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ol.prototype};ol.compare=function(t,r){if(Wy(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),Wy(r,Uint8Array)&&(r=ol.from(r,r.offset,r.byteLength)),!ol.isBuffer(t)||!ol.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ol.isBuffer(o)||(o=ol.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ol.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function xAe(e,t){if(ol.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Wy(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return FH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return CAe(e).length;default:if(i)return n?-1:FH(e).length;t=(""+t).toLowerCase(),i=!0}}ol.byteLength=xAe;function JAt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return sTt(this,t,r);case"utf8":case"utf-8":return wAe(this,t,r);case"ascii":return aTt(this,t,r);case"latin1":case"binary":return oTt(this,t,r);case"base64":return iTt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lTt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ol.prototype._isBuffer=!0;function x2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ol.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};pAe&&(ol.prototype[pAe]=ol.prototype.inspect);ol.prototype.compare=function(t,r,n,i,a){if(Wy(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),!ol.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),f=t.slice(r,n);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,NH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ol.from(t,n)),ol.isBuffer(t))return t.length===0?-1:vAe(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):vAe(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function vAe(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(f,c){return a===1?f[c]:f.readUInt16BE(c*a)}let l;if(i){let f=-1;for(l=r;lo&&(r=o-s),l=r;l>=0;l--){let f=!0;for(let c=0;ci&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return $At(this,t,r,n);case"utf8":case"utf-8":return QAt(this,t,r,n);case"ascii":case"latin1":case"binary":return eTt(this,t,r,n);case"base64":return tTt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rTt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ol.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function iTt(e,t,r){return t===0&&r===e.length?IH.fromByteArray(e):IH.fromByteArray(e.slice(t,r))}function wAe(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let u,l,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)===128&&(c=(a&31)<<6|u&63,c>127&&(o=c));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(c=(a&15)<<12|(u&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:u=e[i+1],l=e[i+2],f=e[i+3],(u&192)===128&&(l&192)===128&&(f&192)===128&&(c=(a&15)<<18|(u&63)<<12|(l&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return nTt(n)}var mAe=4096;function nTt(e){let t=e.length;if(t<=mAe)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ol.prototype.readUintLE=ol.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ip(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||ip(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ol.prototype.readUint8=ol.prototype.readUInt8=function(t,r){return t=t>>>0,r||ip(t,1,this.length),this[t]};ol.prototype.readUint16LE=ol.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ip(t,2,this.length),this[t]|this[t+1]<<8};ol.prototype.readUint16BE=ol.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ip(t,2,this.length),this[t]<<8|this[t+1]};ol.prototype.readUint32LE=ol.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ol.prototype.readUint32BE=ol.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ol.prototype.readBigUInt64LE=N_(function(t){t=t>>>0,aT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&KE(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,aT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&KE(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||ip(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ol.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ip(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ol.prototype.readInt8=function(t,r){return t=t>>>0,r||ip(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ol.prototype.readInt16LE=function(t,r){t=t>>>0,r||ip(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt16BE=function(t,r){t=t>>>0,r||ip(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ol.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ol.prototype.readBigInt64LE=N_(function(t){t=t>>>0,aT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&KE(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,aT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&KE(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||ip(t,4,this.length),nT.read(this,t,!0,23,4)};ol.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),nT.read(this,t,!1,23,4)};ol.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ip(t,8,this.length),nT.read(this,t,!0,52,8)};ol.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ip(t,8,this.length),nT.read(this,t,!1,52,8)};function Iv(e,t,r,n,i,a){if(!ol.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ol.prototype.writeUintLE=ol.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Iv(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Iv(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ol.prototype.writeUint8=ol.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,1,255,0),this[r]=t&255,r+1};ol.prototype.writeUint16LE=ol.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeUint16BE=ol.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeUint32LE=ol.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ol.prototype.writeUint32BE=ol.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function AAe(e,t,r,n,i){kAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function TAe(e,t,r,n,i){kAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ol.prototype.writeBigUInt64LE=N_(function(t,r=0){return AAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeBigUInt64BE=N_(function(t,r=0){return TAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);Iv(this,t,r,n,u-1,-u)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ol.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);Iv(this,t,r,n,u-1,-u)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ol.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ol.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ol.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ol.prototype.writeBigInt64LE=N_(function(t,r=0){return AAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ol.prototype.writeBigInt64BE=N_(function(t,r=0){return TAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function SAe(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function MAe(e,t,r,n,i){return t=+t,r=r>>>0,i||SAe(e,t,r,4,34028234663852886e22,-34028234663852886e22),nT.write(e,t,r,n,23,4),r+4}ol.prototype.writeFloatLE=function(t,r,n){return MAe(this,t,r,!0,n)};ol.prototype.writeFloatBE=function(t,r,n){return MAe(this,t,r,!1,n)};function EAe(e,t,r,n,i){return t=+t,r=r>>>0,i||SAe(e,t,r,8,17976931348623157e292,-17976931348623157e292),nT.write(e,t,r,n,52,8),r+8}ol.prototype.writeDoubleLE=function(t,r,n){return EAe(this,t,r,!0,n)};ol.prototype.writeDoubleBE=function(t,r,n){return EAe(this,t,r,!1,n)};ol.prototype.copy=function(t,r,n,i){if(!ol.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=yAe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=yAe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function yAe(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function uTt(e,t,r){aT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&KE(t,e.length-(r+1))}function kAe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new iT.ERR_OUT_OF_RANGE("value",s,e)}uTt(n,i,a)}function aT(e,t){if(typeof e!="number")throw new iT.ERR_INVALID_ARG_TYPE(t,"number",e)}function KE(e,t,r){throw Math.floor(e)!==e?(aT(e,r),new iT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new iT.ERR_BUFFER_OUT_OF_BOUNDS:new iT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var fTt=/[^+/0-9A-Za-z-_]/g;function cTt(e){if(e=e.split("=")[0],e=e.trim().replace(fTt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function FH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function hTt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function CAe(e){return IH.toByteArray(cTt(e))}function YD(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Wy(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function NH(e){return e!==e}var pTt=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function N_(e){return typeof BigInt=="undefined"?vTt:e}function vTt(){throw new Error("BigInt not supported")}});var KD=we((Idr,LAe)=>{"use strict";LAe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var JE=we((Ddr,PAe)=>{"use strict";var mTt=KD();PAe.exports=function(){return mTt()&&!!Symbol.toStringTag}});var UH=we((Rdr,zAe)=>{"use strict";zAe.exports=Object});var DAe=we((Fdr,IAe)=>{"use strict";IAe.exports=Error});var FAe=we((Odr,RAe)=>{"use strict";RAe.exports=EvalError});var BAe=we((Bdr,OAe)=>{"use strict";OAe.exports=RangeError});var NAe=we((qdr,qAe)=>{"use strict";qAe.exports=ReferenceError});var VH=we((Ndr,UAe)=>{"use strict";UAe.exports=SyntaxError});var sT=we((Udr,VAe)=>{"use strict";VAe.exports=TypeError});var HAe=we((Vdr,GAe)=>{"use strict";GAe.exports=URIError});var jAe=we((Gdr,WAe)=>{"use strict";WAe.exports=Math.abs});var ZAe=we((Hdr,XAe)=>{"use strict";XAe.exports=Math.floor});var KAe=we((Wdr,YAe)=>{"use strict";YAe.exports=Math.max});var $Ae=we((jdr,JAe)=>{"use strict";JAe.exports=Math.min});var eTe=we((Xdr,QAe)=>{"use strict";QAe.exports=Math.pow});var rTe=we((Zdr,tTe)=>{"use strict";tTe.exports=Math.round});var nTe=we((Ydr,iTe)=>{"use strict";iTe.exports=Number.isNaN||function(t){return t!==t}});var oTe=we((Kdr,aTe)=>{"use strict";var yTt=nTe();aTe.exports=function(t){return yTt(t)||t===0?t:t<0?-1:1}});var lTe=we((Jdr,sTe)=>{"use strict";sTe.exports=Object.getOwnPropertyDescriptor});var w2=we(($dr,uTe)=>{"use strict";var JD=lTe();if(JD)try{JD([],"length")}catch(e){JD=null}uTe.exports=JD});var $E=we((Qdr,fTe)=>{"use strict";var $D=Object.defineProperty||!1;if($D)try{$D({},"a",{value:1})}catch(e){$D=!1}fTe.exports=$D});var dTe=we((epr,hTe)=>{"use strict";var cTe=typeof Symbol!="undefined"&&Symbol,gTt=KD();hTe.exports=function(){return typeof cTe!="function"||typeof Symbol!="function"||typeof cTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gTt()}});var GH=we((tpr,pTe)=>{"use strict";pTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var HH=we((rpr,vTe)=>{"use strict";var _Tt=UH();vTe.exports=_Tt.getPrototypeOf||null});var gTe=we((ipr,yTe)=>{"use strict";var xTt="Function.prototype.bind called on incompatible ",bTt=Object.prototype.toString,wTt=Math.max,ATt="[object Function]",mTe=function(t,r){for(var n=[],i=0;i{"use strict";var MTt=gTe();_Te.exports=Function.prototype.bind||MTt});var QD=we((apr,xTe)=>{"use strict";xTe.exports=Function.prototype.call});var WH=we((opr,bTe)=>{"use strict";bTe.exports=Function.prototype.apply});var ATe=we((spr,wTe)=>{"use strict";wTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var STe=we((lpr,TTe)=>{"use strict";var ETt=lT(),kTt=WH(),CTt=QD(),LTt=ATe();TTe.exports=LTt||ETt.call(CTt,kTt)});var ETe=we((upr,MTe)=>{"use strict";var PTt=lT(),zTt=sT(),ITt=QD(),DTt=STe();MTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new zTt("a function is required");return DTt(PTt,ITt,t)}});var ITe=we((fpr,zTe)=>{"use strict";var RTt=ETe(),kTe=w2(),LTe;try{LTe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var jH=!!LTe&&kTe&&kTe(Object.prototype,"__proto__"),PTe=Object,CTe=PTe.getPrototypeOf;zTe.exports=jH&&typeof jH.get=="function"?RTt([jH.get]):typeof CTe=="function"?function(t){return CTe(t==null?t:PTe(t))}:!1});var BTe=we((cpr,OTe)=>{"use strict";var DTe=GH(),RTe=HH(),FTe=ITe();OTe.exports=DTe?function(t){return DTe(t)}:RTe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return RTe(t)}:FTe?function(t){return FTe(t)}:null});var NTe=we((hpr,qTe)=>{"use strict";var FTt=Function.prototype.call,OTt=Object.prototype.hasOwnProperty,BTt=lT();qTe.exports=BTt.call(FTt,OTt)});var rR=we((dpr,jTe)=>{"use strict";var Jf,qTt=UH(),NTt=DAe(),UTt=FAe(),VTt=BAe(),GTt=NAe(),hT=VH(),cT=sT(),HTt=HAe(),WTt=jAe(),jTt=ZAe(),XTt=KAe(),ZTt=$Ae(),YTt=eTe(),KTt=rTe(),JTt=oTe(),HTe=Function,XH=function(e){try{return HTe('"use strict"; return ('+e+").constructor;")()}catch(t){}},QE=w2(),$Tt=$E(),ZH=function(){throw new cT},QTt=QE?function(){try{return arguments.callee,ZH}catch(e){try{return QE(arguments,"callee").get}catch(t){return ZH}}}():ZH,uT=dTe()(),np=BTe(),eSt=HH(),tSt=GH(),WTe=WH(),e4=QD(),fT={},rSt=typeof Uint8Array=="undefined"||!np?Jf:np(Uint8Array),A2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Jf:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Jf:ArrayBuffer,"%ArrayIteratorPrototype%":uT&&np?np([][Symbol.iterator]()):Jf,"%AsyncFromSyncIteratorPrototype%":Jf,"%AsyncFunction%":fT,"%AsyncGenerator%":fT,"%AsyncGeneratorFunction%":fT,"%AsyncIteratorPrototype%":fT,"%Atomics%":typeof Atomics=="undefined"?Jf:Atomics,"%BigInt%":typeof BigInt=="undefined"?Jf:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Jf:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Jf:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Jf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":NTt,"%eval%":eval,"%EvalError%":UTt,"%Float16Array%":typeof Float16Array=="undefined"?Jf:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Jf:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Jf:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Jf:FinalizationRegistry,"%Function%":HTe,"%GeneratorFunction%":fT,"%Int8Array%":typeof Int8Array=="undefined"?Jf:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Jf:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Jf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uT&&np?np(np([][Symbol.iterator]())):Jf,"%JSON%":typeof JSON=="object"?JSON:Jf,"%Map%":typeof Map=="undefined"?Jf:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!uT||!np?Jf:np(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":qTt,"%Object.getOwnPropertyDescriptor%":QE,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Jf:Promise,"%Proxy%":typeof Proxy=="undefined"?Jf:Proxy,"%RangeError%":VTt,"%ReferenceError%":GTt,"%Reflect%":typeof Reflect=="undefined"?Jf:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Jf:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!uT||!np?Jf:np(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Jf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":uT&&np?np(""[Symbol.iterator]()):Jf,"%Symbol%":uT?Symbol:Jf,"%SyntaxError%":hT,"%ThrowTypeError%":QTt,"%TypedArray%":rSt,"%TypeError%":cT,"%Uint8Array%":typeof Uint8Array=="undefined"?Jf:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Jf:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Jf:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Jf:Uint32Array,"%URIError%":HTt,"%WeakMap%":typeof WeakMap=="undefined"?Jf:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Jf:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Jf:WeakSet,"%Function.prototype.call%":e4,"%Function.prototype.apply%":WTe,"%Object.defineProperty%":$Tt,"%Object.getPrototypeOf%":eSt,"%Math.abs%":WTt,"%Math.floor%":jTt,"%Math.max%":XTt,"%Math.min%":ZTt,"%Math.pow%":YTt,"%Math.round%":KTt,"%Math.sign%":JTt,"%Reflect.getPrototypeOf%":tSt};if(np)try{null.error}catch(e){UTe=np(np(e)),A2["%Error.prototype%"]=UTe}var UTe,iSt=function e(t){var r;if(t==="%AsyncFunction%")r=XH("async function () {}");else if(t==="%GeneratorFunction%")r=XH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=XH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&np&&(r=np(i.prototype))}return A2[t]=r,r},VTe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},t4=lT(),eR=NTe(),nSt=t4.call(e4,Array.prototype.concat),aSt=t4.call(WTe,Array.prototype.splice),GTe=t4.call(e4,String.prototype.replace),tR=t4.call(e4,String.prototype.slice),oSt=t4.call(e4,RegExp.prototype.exec),sSt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lSt=/\\(\\)?/g,uSt=function(t){var r=tR(t,0,1),n=tR(t,-1);if(r==="%"&&n!=="%")throw new hT("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new hT("invalid intrinsic syntax, expected opening `%`");var i=[];return GTe(t,sSt,function(a,o,s,u){i[i.length]=s?GTe(u,lSt,"$1"):o||a}),i},fSt=function(t,r){var n=t,i;if(eR(VTe,n)&&(i=VTe[n],n="%"+i[0]+"%"),eR(A2,n)){var a=A2[n];if(a===fT&&(a=iSt(n)),typeof a=="undefined"&&!r)throw new cT("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new hT("intrinsic "+t+" does not exist!")};jTe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new cT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new cT('"allowMissing" argument must be a boolean');if(oSt(/^%?[^%]*%?$/,t)===null)throw new hT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=uSt(t),i=n.length>0?n[0]:"",a=fSt("%"+i+"%",r),o=a.name,s=a.value,u=!1,l=a.alias;l&&(i=l[0],aSt(n,nSt([0,1],l)));for(var f=1,c=!0;f=n.length){var y=QE(s,h);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[h]}else c=eR(s,h),s=s[h];c&&!u&&(A2[o]=s)}}return s}});var KTe=we((ppr,YTe)=>{"use strict";var XTe=$E(),cSt=VH(),dT=sT(),ZTe=w2();YTe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new dT("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new dT("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new dT("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new dT("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new dT("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new dT("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!ZTe&&ZTe(t,r);if(XTe)XTe(t,r,{configurable:o===null&&u?u.configurable:!o,enumerable:i===null&&u?u.enumerable:!i,value:n,writable:a===null&&u?u.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new cSt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var KH=we((vpr,$Te)=>{"use strict";var YH=$E(),JTe=function(){return!!YH};JTe.hasArrayLengthDefineBug=function(){if(!YH)return null;try{return YH([],"length",{value:1}).length!==1}catch(t){return!0}};$Te.exports=JTe});var iSe=we((mpr,rSe)=>{"use strict";var hSt=rR(),QTe=KTe(),dSt=KH()(),eSe=w2(),tSe=sT(),pSt=hSt("%Math.floor%");rSe.exports=function(t,r){if(typeof t!="function")throw new tSe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||pSt(r)!==r)throw new tSe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&eSe){var o=eSe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(dSt?QTe(t,"length",r,!0,!0):QTe(t,"length",r)),t}});var r4=we((ypr,iR)=>{"use strict";var JH=lT(),nR=rR(),vSt=iSe(),mSt=sT(),oSe=nR("%Function.prototype.apply%"),sSe=nR("%Function.prototype.call%"),lSe=nR("%Reflect.apply%",!0)||JH.call(sSe,oSe),nSe=$E(),ySt=nR("%Math.max%");iR.exports=function(t){if(typeof t!="function")throw new mSt("a function is required");var r=lSe(JH,sSe,arguments);return vSt(r,1+ySt(0,t.length-(arguments.length-1)),!0)};var aSe=function(){return lSe(JH,oSe,arguments)};nSe?nSe(iR.exports,"apply",{value:aSe}):iR.exports.apply=aSe});var pT=we((gpr,cSe)=>{"use strict";var uSe=rR(),fSe=r4(),gSt=fSe(uSe("String.prototype.indexOf"));cSe.exports=function(t,r){var n=uSe(t,!!r);return typeof n=="function"&&gSt(t,".prototype.")>-1?fSe(n):n}});var pSe=we((_pr,dSe)=>{"use strict";var _St=JE()(),xSt=pT(),$H=xSt("Object.prototype.toString"),aR=function(t){return _St&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:$H(t)==="[object Arguments]"},hSe=function(t){return aR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&$H(t)!=="[object Array]"&&$H(t.callee)==="[object Function]"},bSt=function(){return aR(arguments)}();aR.isLegacyArguments=hSe;dSe.exports=bSt?aR:hSe});var ySe=we((xpr,mSe)=>{"use strict";var wSt=Object.prototype.toString,ASt=Function.prototype.toString,TSt=/^\s*(?:function)?\*/,vSe=JE()(),QH=Object.getPrototypeOf,SSt=function(){if(!vSe)return!1;try{return Function("return function*() {}")()}catch(e){}},eW;mSe.exports=function(t){if(typeof t!="function")return!1;if(TSt.test(ASt.call(t)))return!0;if(!vSe){var r=wSt.call(t);return r==="[object GeneratorFunction]"}if(!QH)return!1;if(typeof eW=="undefined"){var n=SSt();eW=n?QH(n):!1}return QH(t)===eW}});var bSe=we((bpr,xSe)=>{"use strict";var _Se=Function.prototype.toString,vT=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,rW,oR;if(typeof vT=="function"&&typeof Object.defineProperty=="function")try{rW=Object.defineProperty({},"length",{get:function(){throw oR}}),oR={},vT(function(){throw 42},null,rW)}catch(e){e!==oR&&(vT=null)}else vT=null;var MSt=/^\s*class\b/,iW=function(t){try{var r=_Se.call(t);return MSt.test(r)}catch(n){return!1}},tW=function(t){try{return iW(t)?!1:(_Se.call(t),!0)}catch(r){return!1}},sR=Object.prototype.toString,ESt="[object Object]",kSt="[object Function]",CSt="[object GeneratorFunction]",LSt="[object HTMLAllCollection]",PSt="[object HTML document.all class]",zSt="[object HTMLCollection]",ISt=typeof Symbol=="function"&&!!Symbol.toStringTag,DSt=!(0 in[,]),nW=function(){return!1};typeof document=="object"&&(gSe=document.all,sR.call(gSe)===sR.call(document.all)&&(nW=function(t){if((DSt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=sR.call(t);return(r===LSt||r===PSt||r===zSt||r===ESt)&&t("")==null}catch(n){}return!1}));var gSe;xSe.exports=vT?function(t){if(nW(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{vT(t,null,rW)}catch(r){if(r!==oR)return!1}return!iW(t)&&tW(t)}:function(t){if(nW(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(ISt)return tW(t);if(iW(t))return!1;var r=sR.call(t);return r!==kSt&&r!==CSt&&!/^\[object HTML/.test(r)?!1:tW(t)}});var aW=we((wpr,ASe)=>{"use strict";var RSt=bSe(),FSt=Object.prototype.toString,wSe=Object.prototype.hasOwnProperty,OSt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),FSt.call(t)==="[object Array]"?OSt(t,r,i):typeof t=="string"?BSt(t,r,i):qSt(t,r,i)};ASe.exports=NSt});var sW=we((Apr,TSe)=>{"use strict";var oW=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],USt=typeof globalThis=="undefined"?window:globalThis;TSe.exports=function(){for(var t=[],r=0;r{"use strict";var uR=aW(),VSt=sW(),SSe=r4(),fW=pT(),lR=w2(),GSt=fW("Object.prototype.toString"),ESe=JE()(),MSe=typeof globalThis=="undefined"?window:globalThis,uW=VSt(),cW=fW("String.prototype.slice"),lW=Object.getPrototypeOf,HSt=fW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:jSt(t)}return lR?WSt(t):null}});var RSe=we((Spr,DSe)=>{"use strict";var LSe=aW(),XSt=sW(),dW=pT(),ZSt=dW("Object.prototype.toString"),PSe=JE()(),cR=w2(),YSt=typeof globalThis=="undefined"?window:globalThis,zSe=XSt(),KSt=dW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return cR?$St(t):!1}});var mW=we($f=>{"use strict";var QSt=pSe(),eMt=ySe(),jm=CSe(),FSe=RSe();function mT(e){return e.call.bind(e)}var OSe=typeof BigInt!="undefined",BSe=typeof Symbol!="undefined",K0=mT(Object.prototype.toString),tMt=mT(Number.prototype.valueOf),rMt=mT(String.prototype.valueOf),iMt=mT(Boolean.prototype.valueOf);OSe&&(qSe=mT(BigInt.prototype.valueOf));var qSe;BSe&&(NSe=mT(Symbol.prototype.valueOf));var NSe;function n4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}$f.isArgumentsObject=QSt;$f.isGeneratorFunction=eMt;$f.isTypedArray=FSe;function nMt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}$f.isPromise=nMt;function aMt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):FSe(e)||VSe(e)}$f.isArrayBufferView=aMt;function oMt(e){return jm(e)==="Uint8Array"}$f.isUint8Array=oMt;function sMt(e){return jm(e)==="Uint8ClampedArray"}$f.isUint8ClampedArray=sMt;function lMt(e){return jm(e)==="Uint16Array"}$f.isUint16Array=lMt;function uMt(e){return jm(e)==="Uint32Array"}$f.isUint32Array=uMt;function fMt(e){return jm(e)==="Int8Array"}$f.isInt8Array=fMt;function cMt(e){return jm(e)==="Int16Array"}$f.isInt16Array=cMt;function hMt(e){return jm(e)==="Int32Array"}$f.isInt32Array=hMt;function dMt(e){return jm(e)==="Float32Array"}$f.isFloat32Array=dMt;function pMt(e){return jm(e)==="Float64Array"}$f.isFloat64Array=pMt;function vMt(e){return jm(e)==="BigInt64Array"}$f.isBigInt64Array=vMt;function mMt(e){return jm(e)==="BigUint64Array"}$f.isBigUint64Array=mMt;function hR(e){return K0(e)==="[object Map]"}hR.working=typeof Map!="undefined"&&hR(new Map);function yMt(e){return typeof Map=="undefined"?!1:hR.working?hR(e):e instanceof Map}$f.isMap=yMt;function dR(e){return K0(e)==="[object Set]"}dR.working=typeof Set!="undefined"&&dR(new Set);function gMt(e){return typeof Set=="undefined"?!1:dR.working?dR(e):e instanceof Set}$f.isSet=gMt;function pR(e){return K0(e)==="[object WeakMap]"}pR.working=typeof WeakMap!="undefined"&&pR(new WeakMap);function _Mt(e){return typeof WeakMap=="undefined"?!1:pR.working?pR(e):e instanceof WeakMap}$f.isWeakMap=_Mt;function vW(e){return K0(e)==="[object WeakSet]"}vW.working=typeof WeakSet!="undefined"&&vW(new WeakSet);function xMt(e){return vW(e)}$f.isWeakSet=xMt;function vR(e){return K0(e)==="[object ArrayBuffer]"}vR.working=typeof ArrayBuffer!="undefined"&&vR(new ArrayBuffer);function USe(e){return typeof ArrayBuffer=="undefined"?!1:vR.working?vR(e):e instanceof ArrayBuffer}$f.isArrayBuffer=USe;function mR(e){return K0(e)==="[object DataView]"}mR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&mR(new DataView(new ArrayBuffer(1),0,1));function VSe(e){return typeof DataView=="undefined"?!1:mR.working?mR(e):e instanceof DataView}$f.isDataView=VSe;var pW=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function i4(e){return K0(e)==="[object SharedArrayBuffer]"}function GSe(e){return typeof pW=="undefined"?!1:(typeof i4.working=="undefined"&&(i4.working=i4(new pW)),i4.working?i4(e):e instanceof pW)}$f.isSharedArrayBuffer=GSe;function bMt(e){return K0(e)==="[object AsyncFunction]"}$f.isAsyncFunction=bMt;function wMt(e){return K0(e)==="[object Map Iterator]"}$f.isMapIterator=wMt;function AMt(e){return K0(e)==="[object Set Iterator]"}$f.isSetIterator=AMt;function TMt(e){return K0(e)==="[object Generator]"}$f.isGeneratorObject=TMt;function SMt(e){return K0(e)==="[object WebAssembly.Module]"}$f.isWebAssemblyCompiledModule=SMt;function HSe(e){return n4(e,tMt)}$f.isNumberObject=HSe;function WSe(e){return n4(e,rMt)}$f.isStringObject=WSe;function jSe(e){return n4(e,iMt)}$f.isBooleanObject=jSe;function XSe(e){return OSe&&n4(e,qSe)}$f.isBigIntObject=XSe;function ZSe(e){return BSe&&n4(e,NSe)}$f.isSymbolObject=ZSe;function MMt(e){return HSe(e)||WSe(e)||jSe(e)||XSe(e)||ZSe(e)}$f.isBoxedPrimitive=MMt;function EMt(e){return typeof Uint8Array!="undefined"&&(USe(e)||GSe(e))}$f.isAnyArrayBuffer=EMt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty($f,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var yW=we((Epr,YSe)=>{YSe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var AW=we(Qf=>{var KSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),bW(t)?r.showHidden=t:t&&Qf._extend(r,t),S2(r.showHidden)&&(r.showHidden=!1),S2(r.depth)&&(r.depth=2),S2(r.colors)&&(r.colors=!1),S2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=CMt),xR(r,e,r.depth)}Qf.inspect=U_;U_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};U_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function CMt(e,t){var r=U_.styles[t];return r?"\x1B["+U_.colors[r][0]+"m"+e+"\x1B["+U_.colors[r][1]+"m":e}function LMt(e,t){return e}function PMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function xR(e,t,r){if(e.customInspect&&t&&_R(t.inspect)&&t.inspect!==Qf.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return AR(n)||(n=xR(e,n,r)),n}var i=zMt(e,t);if(i)return i;var a=Object.keys(t),o=PMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),o4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return gW(t);if(a.length===0){if(_R(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(a4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(bR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(o4(t))return gW(t)}var u="",l=!1,f=["{","}"];if($Se(t)&&(l=!0,f=["[","]"]),_R(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(a4(t)&&(u=" "+RegExp.prototype.toString.call(t)),bR(t)&&(u=" "+Date.prototype.toUTCString.call(t)),o4(t)&&(u=" "+gW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return a4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=IMt(e,t,r,o,a):h=a.map(function(d){return xW(e,t,r,o,d,l)}),e.seen.pop(),DMt(h,u,f)}function zMt(e,t){if(S2(t))return e.stylize("undefined","undefined");if(AR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(QSe(t))return e.stylize(""+t,"number");if(bW(t))return e.stylize(""+t,"boolean");if(wR(t))return e.stylize("null","null")}function gW(e){return"["+Error.prototype.toString.call(e)+"]"}function IMt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o24?(isFinite(le)&&(clearTimeout(Un),Un=setTimeout(oa,le)),Mn=0):(Mn=1,Ga(oa))}e.timer.flush=function(){ka(),so()};function ka(){for(var Z=Date.now(),le=Xi;le;)Z>=le.t&&le.c(Z-le.t)&&(le.c=null),le=le.n;return Z}function so(){for(var Z,le=Xi,Le=1/0;le;)le.c?(le.t=0;--wt)pi.push(nt[Cr[ui[wt]][2]]);for(wt=+Oi;wt<$r.length-un;++wt)pi.push(nt[Cr[$r[wt]][2]]);return pi}return Ye.x=function(nt){return arguments.length?(le=nt,Ye):le},Ye.y=function(nt){return arguments.length?(Le=nt,Ye):Le},Ye};function Yo(Z){for(var le=Z.length,Le=[0,1],Ye=2,nt=2;nt1&&cr(Z[Le[Ye-2]],Z[Le[Ye-1]],Z[nt])<=0;)--Ye;Le[Ye++]=nt}return Le.slice(0,Ye)}function fa(Z,le){return Z[0]-le[0]||Z[1]-le[1]}e.geom.polygon=function(Z){return te(Z,kn),Z};var kn=e.geom.polygon.prototype=[];kn.area=function(){for(var Z=-1,le=this.length,Le,Ye=this[le-1],nt=0;++ZOe)wt=wt.L;else if(Ht=le-Sn(wt,Le),Ht>Oe){if(!wt.R){Ye=wt;break}wt=wt.R}else{ut>-Oe?(Ye=wt.P,nt=wt):Ht>-Oe?(Ye=wt,nt=wt.N):Ye=nt=wt;break}var lr=Po(Z);if(fo.insert(Ye,lr),!(!Ye&&!nt)){if(Ye===nt){Sa(Ye),nt=Po(Ye.site),fo.insert(lr,nt),lr.edge=nt.edge=vo(Ye.site,lr.site),Hi(Ye),Hi(nt);return}if(!nt){lr.edge=vo(Ye.site,lr.site);return}Sa(Ye),Sa(nt);var Cr=Ye.site,zr=Cr.x,ui=Cr.y,$r=Z.x-zr,Oi=Z.y-ui,un=nt.site,pi=un.x-zr,Pi=un.y-ui,ji=2*($r*Pi-Oi*pi),pn=$r*$r+Oi*Oi,an=pi*pi+Pi*Pi,bi={x:(Pi*pn-Oi*an)/ji+zr,y:($r*an-pi*pn)/ji+ui};ps(nt.edge,Cr,un,bi),lr.edge=vo(Cr,Z,null,bi),nt.edge=vo(Z,un,null,bi),Hi(Ye),Hi(nt)}}function Ha(Z,le){var Le=Z.site,Ye=Le.x,nt=Le.y,ut=nt-le;if(!ut)return Ye;var Ht=Z.P;if(!Ht)return-1/0;Le=Ht.site;var wt=Le.x,lr=Le.y,Cr=lr-le;if(!Cr)return wt;var zr=wt-Ye,ui=1/ut-1/Cr,$r=zr/Cr;return ui?(-$r+Math.sqrt($r*$r-2*ui*(zr*zr/(-2*Cr)-lr+Cr/2+nt-ut/2)))/ui+Ye:(Ye+wt)/2}function Sn(Z,le){var Le=Z.N;if(Le)return Ha(Le,le);var Ye=Z.site;return Ye.y===le?Ye.x:1/0}function ao(Z){this.site=Z,this.edges=[]}ao.prototype.prepare=function(){for(var Z=this.edges,le=Z.length,Le;le--;)Le=Z[le].edge,(!Le.b||!Le.a)&&Z.splice(le,1);return Z.sort(Ko),Z.length};function Oa(Z){for(var le=Z[0][0],Le=Z[1][0],Ye=Z[0][1],nt=Z[1][1],ut,Ht,wt,lr,Cr=$a,zr=Cr.length,ui,$r,Oi,un,pi,Pi;zr--;)if(ui=Cr[zr],!(!ui||!ui.prepare()))for(Oi=ui.edges,un=Oi.length,$r=0;$rOe||v(lr-Ht)>Oe)&&(Oi.splice($r,0,new co(As(ui.site,Pi,v(wt-le)Oe?{x:le,y:v(ut-le)Oe?{x:v(Ht-nt)Oe?{x:Le,y:v(ut-Le)Oe?{x:v(Ht-Ye)=-ze)){var $r=lr*lr+Cr*Cr,Oi=zr*zr+Pi*Pi,un=(Pi*$r-Cr*Oi)/ui,pi=(lr*Oi-zr*$r)/ui,Pi=pi+wt,ji=ws.pop()||new Qo;ji.arc=Z,ji.site=nt,ji.x=un+Ht,ji.y=Pi+Math.sqrt(un*un+pi*pi),ji.cy=Pi,Z.circle=ji;for(var pn=null,an=wa._;an;)if(ji.y0)){if(pi/=Oi,Oi<0){if(pi0){if(pi>$r)return;pi>ui&&(ui=pi)}if(pi=Le-wt,!(!Oi&&pi<0)){if(pi/=Oi,Oi<0){if(pi>$r)return;pi>ui&&(ui=pi)}else if(Oi>0){if(pi0)){if(pi/=un,un<0){if(pi0){if(pi>$r)return;pi>ui&&(ui=pi)}if(pi=Ye-lr,!(!un&&pi<0)){if(pi/=un,un<0){if(pi>$r)return;pi>ui&&(ui=pi)}else if(un>0){if(pi0&&(nt.a={x:wt+ui*Oi,y:lr+ui*un}),$r<1&&(nt.b={x:wt+$r*Oi,y:lr+$r*un}),nt}}}}}}function vn(Z){for(var le=ls,Le=Qa(Z[0][0],Z[0][1],Z[1][0],Z[1][1]),Ye=le.length,nt;Ye--;)nt=le[Ye],(!da(nt,Z)||!Le(nt)||v(nt.a.x-nt.b.x)=ut)return;if(zr>$r){if(!Ye)Ye={x:un,y:Ht};else if(Ye.y>=wt)return;Le={x:un,y:wt}}else{if(!Ye)Ye={x:un,y:wt};else if(Ye.y1)if(zr>$r){if(!Ye)Ye={x:(Ht-ji)/Pi,y:Ht};else if(Ye.y>=wt)return;Le={x:(wt-ji)/Pi,y:wt}}else{if(!Ye)Ye={x:(wt-ji)/Pi,y:wt};else if(Ye.y=ut)return;Le={x:ut,y:Pi*ut+ji}}else{if(!Ye)Ye={x:ut,y:Pi*ut+ji};else if(Ye.x=zr&&ji.x<=$r&&ji.y>=ui&&ji.y<=Oi?[[zr,Oi],[$r,Oi],[$r,ui],[zr,ui]]:[];pn.point=lr[pi]}),Cr}function wt(lr){return lr.map(function(Cr,zr){return{x:Math.round(Ye(Cr,zr)/Oe)*Oe,y:Math.round(nt(Cr,zr)/Oe)*Oe,i:zr}})}return Ht.links=function(lr){return qs(wt(lr)).edges.filter(function(Cr){return Cr.l&&Cr.r}).map(function(Cr){return{source:lr[Cr.l.i],target:lr[Cr.r.i]}})},Ht.triangles=function(lr){var Cr=[];return qs(wt(lr)).cells.forEach(function(zr,ui){for(var $r=zr.site,Oi=zr.edges.sort(Ko),un=-1,pi=Oi.length,Pi,ji,pn=Oi[pi-1].edge,an=pn.l===$r?pn.r:pn.l;++unan&&(an=zr.x),zr.y>bi&&(bi=zr.y),Oi.push(zr.x),un.push(zr.y);else for(pi=0;pian&&(an=xo),no>bi&&(bi=no),Oi.push(xo),un.push(no)}var Xo=an-ji,js=bi-pn;Xo>js?bi=pn+Xo:an=ji+js;function El(Il,fu,Xu,Vu,tf,ds,Wl,Au){if(!(isNaN(Xu)||isNaN(Vu)))if(Il.leaf){var Tu=Il.x,lf=Il.y;if(Tu!=null)if(v(Tu-Xu)+v(lf-Vu)<.01)Pl(Il,fu,Xu,Vu,tf,ds,Wl,Au);else{var hf=Il.point;Il.x=Il.y=Il.point=null,Pl(Il,hf,Tu,lf,tf,ds,Wl,Au),Pl(Il,fu,Xu,Vu,tf,ds,Wl,Au)}else Il.x=Xu,Il.y=Vu,Il.point=fu}else Pl(Il,fu,Xu,Vu,tf,ds,Wl,Au)}function Pl(Il,fu,Xu,Vu,tf,ds,Wl,Au){var Tu=(tf+Wl)*.5,lf=(ds+Au)*.5,hf=Xu>=Tu,Sf=Vu>=lf,pf=Sf<<1|hf;Il.leaf=!1,Il=Il.nodes[pf]||(Il.nodes[pf]=_n()),hf?tf=Tu:Wl=Tu,Sf?ds=lf:Au=lf,El(Il,fu,Xu,Vu,tf,ds,Wl,Au)}var pu=_n();if(pu.add=function(Il){El(pu,Il,+ui(Il,++pi),+$r(Il,pi),ji,pn,an,bi)},pu.visit=function(Il){Vn(Il,pu,ji,pn,an,bi)},pu.find=function(Il){return wo(pu,Il[0],Il[1],ji,pn,an,bi)},pi=-1,le==null){for(;++piut||$r>Ht||Oi=xo,js=Le>=no,El=js<<1|Xo,Pl=El+4;ElLe&&(ut=le.slice(Le,ut),wt[Ht]?wt[Ht]+=ut:wt[++Ht]=ut),(Ye=Ye[0])===(nt=nt[0])?wt[Ht]?wt[Ht]+=nt:wt[++Ht]=nt:(wt[++Ht]=null,lr.push({i:Ht,x:sn(Ye,nt)})),Le=qn.lastIndex;return Le=0&&!(Ye=e.interpolators[Le](Z,le)););return Ye}e.interpolators=[function(Z,le){var Le=typeof le;return(Le==="string"?fr.has(le.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(le)?Ra:$n:le instanceof zi?Ra:Array.isArray(le)?Ja:Le==="object"&&isNaN(le)?Xn:sn)(Z,le)}],e.interpolateArray=Ja;function Ja(Z,le){var Le=[],Ye=[],nt=Z.length,ut=le.length,Ht=Math.min(Z.length,le.length),wt;for(wt=0;wt=0?Z.slice(0,le):Z,Ye=le>=0?Z.slice(le+1):"in";return Le=eo.get(Le)||lo,Ye=sa.get(Ye)||G,es(Ye(Le.apply(null,t.call(arguments,1))))};function es(Z){return function(le){return le<=0?0:le>=1?1:Z(le)}}function Na(Z){return function(le){return 1-Z(1-le)}}function en(Z){return function(le){return .5*(le<.5?Z(2*le):2-Z(2-2*le))}}function Pa(Z){return Z*Z}function to(Z){return Z*Z*Z}function yo(Z){if(Z<=0)return 0;if(Z>=1)return 1;var le=Z*Z,Le=le*Z;return 4*(Z<.5?Le:3*(Z-le)+Le-.75)}function Jo(Z){return function(le){return Math.pow(le,Z)}}function Ao(Z){return 1-Math.cos(Z*gt)}function Dn(Z){return Math.pow(2,10*(Z-1))}function _a(Z){return 1-Math.sqrt(1-Z*Z)}function Ws(Z,le){var Le;return arguments.length<2&&(le=.45),arguments.length?Le=le/ht*Math.asin(1/Z):(Z=1,Le=le/4),function(Ye){return 1+Z*Math.pow(2,-10*Ye)*Math.sin((Ye-Le)*ht/le)}}function Ca(Z){return Z||(Z=1.70158),function(le){return le*le*((Z+1)*le-Z)}}function Es(Z){return Z<1/2.75?7.5625*Z*Z:Z<2/2.75?7.5625*(Z-=1.5/2.75)*Z+.75:Z<2.5/2.75?7.5625*(Z-=2.25/2.75)*Z+.9375:7.5625*(Z-=2.625/2.75)*Z+.984375}e.interpolateHcl=Ts;function Ts(Z,le){Z=e.hcl(Z),le=e.hcl(le);var Le=Z.h,Ye=Z.c,nt=Z.l,ut=le.h-Le,Ht=le.c-Ye,wt=le.l-nt;return isNaN(Ht)&&(Ht=0,Ye=isNaN(Ye)?le.c:Ye),isNaN(ut)?(ut=0,Le=isNaN(Le)?le.h:Le):ut>180?ut-=360:ut<-180&&(ut+=360),function(lr){return Lr(Le+ut*lr,Ye+Ht*lr,nt+wt*lr)+""}}e.interpolateHsl=Ho;function Ho(Z,le){Z=e.hsl(Z),le=e.hsl(le);var Le=Z.h,Ye=Z.s,nt=Z.l,ut=le.h-Le,Ht=le.s-Ye,wt=le.l-nt;return isNaN(Ht)&&(Ht=0,Ye=isNaN(Ye)?le.s:Ye),isNaN(ut)?(ut=0,Le=isNaN(Le)?le.h:Le):ut>180?ut-=360:ut<-180&&(ut+=360),function(lr){return qt(Le+ut*lr,Ye+Ht*lr,nt+wt*lr)+""}}e.interpolateLab=Wa;function Wa(Z,le){Z=e.lab(Z),le=e.lab(le);var Le=Z.l,Ye=Z.a,nt=Z.b,ut=le.l-Le,Ht=le.a-Ye,wt=le.b-nt;return function(lr){return Vi(Le+ut*lr,Ye+Ht*lr,nt+wt*lr)+""}}e.interpolateRound=To;function To(Z,le){return le-=Z,function(Le){return Math.round(Z+le*Le)}}e.transform=function(Z){var le=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Le){if(Le!=null){le.setAttribute("transform",Le);var Ye=le.transform.baseVal.consolidate()}return new ts(Ye?Ye.matrix:Oo)})(Z)};function ts(Z){var le=[Z.a,Z.b],Le=[Z.c,Z.d],Ye=qa(le),nt=Wo(le,Le),ut=qa(on(Le,le,-nt))||0;le[0]*Le[1]180?le+=360:le-Z>180&&(Z+=360),Ye.push({i:Le.push(ko(Le)+"rotate(",null,")")-2,x:sn(Z,le)})):le&&Le.push(ko(Le)+"rotate("+le+")")}function ea(Z,le,Le,Ye){Z!==le?Ye.push({i:Le.push(ko(Le)+"skewX(",null,")")-2,x:sn(Z,le)}):le&&Le.push(ko(Le)+"skewX("+le+")")}function rs(Z,le,Le,Ye){if(Z[0]!==le[0]||Z[1]!==le[1]){var nt=Le.push(ko(Le)+"scale(",null,",",null,")");Ye.push({i:nt-4,x:sn(Z[0],le[0])},{i:nt-2,x:sn(Z[1],le[1])})}else(le[0]!==1||le[1]!==1)&&Le.push(ko(Le)+"scale("+le+")")}function $s(Z,le){var Le=[],Ye=[];return Z=e.transform(Z),le=e.transform(le),oo(Z.translate,le.translate,Le,Ye),za(Z.rotate,le.rotate,Le,Ye),ea(Z.skew,le.skew,Le,Ye),rs(Z.scale,le.scale,Le,Ye),Z=le=null,function(nt){for(var ut=-1,Ht=Ye.length,wt;++ut0?ut=bi:(Le.c=null,Le.t=NaN,Le=null,le.end({type:"end",alpha:ut=0})):bi>0&&(le.start({type:"start",alpha:ut=bi}),Le=ma(Z.tick)),Z):ut},Z.start=function(){var bi,xo=Oi.length,no=un.length,Xo=Ye[0],js=Ye[1],El,Pl;for(bi=0;bi=0;)ut.push(zr=Cr[lr]),zr.parent=wt,zr.depth=wt.depth+1;Le&&(wt.value=0),wt.children=Cr}else Le&&(wt.value=+Le.call(Ye,wt,wt.depth)||0),delete wt.children;return Bo(nt,function(ui){var $r,Oi;Z&&($r=ui.children)&&$r.sort(Z),Le&&(Oi=ui.parent)&&(Oi.value+=ui.value)}),Ht}return Ye.sort=function(nt){return arguments.length?(Z=nt,Ye):Z},Ye.children=function(nt){return arguments.length?(le=nt,Ye):le},Ye.value=function(nt){return arguments.length?(Le=nt,Ye):Le},Ye.revalue=function(nt){return Le&&(Jn(nt,function(ut){ut.children&&(ut.value=0)}),Bo(nt,function(ut){var Ht;ut.children||(ut.value=+Le.call(Ye,ut,ut.depth)||0),(Ht=ut.parent)&&(Ht.value+=ut.value)})),nt},Ye};function Ea(Z,le){return e.rebind(Z,le,"sort","children","value"),Z.nodes=Z,Z.links=zs,Z}function Jn(Z,le){for(var Le=[Z];(Z=Le.pop())!=null;)if(le(Z),(nt=Z.children)&&(Ye=nt.length))for(var Ye,nt;--Ye>=0;)Le.push(nt[Ye])}function Bo(Z,le){for(var Le=[Z],Ye=[];(Z=Le.pop())!=null;)if(Ye.push(Z),(Ht=Z.children)&&(ut=Ht.length))for(var nt=-1,ut,Ht;++ntnt&&(nt=wt),Ye.push(wt)}for(Ht=0;HtYe&&(Le=le,Ye=nt);return Le}function zo(Z){return Z.reduce(io,0)}function io(Z,le){return Z+le[1]}e.layout.histogram=function(){var Z=!0,le=Number,Le=vs,Ye=Io;function nt(ut,$r){for(var wt=[],lr=ut.map(le,this),Cr=Le.call(this,lr,$r),zr=Ye.call(this,Cr,lr,$r),ui,$r=-1,Oi=lr.length,un=zr.length-1,pi=Z?1:1/Oi,Pi;++$r0)for($r=-1;++$r=Cr[0]&&Pi<=Cr[1]&&(ui=wt[e.bisect(zr,Pi,1,un)-1],ui.y+=pi,ui.push(ut[$r]));return wt}return nt.value=function(ut){return arguments.length?(le=ut,nt):le},nt.range=function(ut){return arguments.length?(Le=gr(ut),nt):Le},nt.bins=function(ut){return arguments.length?(Ye=typeof ut=="number"?function(Ht){return Da(Ht,ut)}:gr(ut),nt):Ye},nt.frequency=function(ut){return arguments.length?(Z=!!ut,nt):Z},nt};function Io(Z,le){return Da(Z,Math.ceil(Math.log(le.length)/Math.LN2+1))}function Da(Z,le){for(var Le=-1,Ye=+Z[0],nt=(Z[1]-Ye)/le,ut=[];++Le<=le;)ut[Le]=nt*Le+Ye;return ut}function vs(Z){return[e.min(Z),e.max(Z)]}e.layout.pack=function(){var Z=e.layout.hierarchy().sort(fs),le=0,Le=[1,1],Ye;function nt(ut,Ht){var wt=Z.call(this,ut,Ht),lr=wt[0],Cr=Le[0],zr=Le[1],ui=Ye==null?Math.sqrt:typeof Ye=="function"?Ye:function(){return Ye};if(lr.x=lr.y=0,Bo(lr,function(Oi){Oi.r=+ui(Oi.value)}),Bo(lr,Ro),le){var $r=le*(Ye?1:Math.max(2*lr.r/Cr,2*lr.r/zr))/2;Bo(lr,function(Oi){Oi.r+=$r}),Bo(lr,Ro),Bo(lr,function(Oi){Oi.r-=$r})}return hl(lr,Cr/2,zr/2,Ye?1:1/Math.max(2*lr.r/Cr,2*lr.r/zr)),wt}return nt.size=function(ut){return arguments.length?(Le=ut,nt):Le},nt.radius=function(ut){return arguments.length?(Ye=ut==null||typeof ut=="function"?ut:+ut,nt):Ye},nt.padding=function(ut){return arguments.length?(le=+ut,nt):le},Ea(nt,Z)};function fs(Z,le){return Z.value-le.value}function cl(Z,le){var Le=Z._pack_next;Z._pack_next=le,le._pack_prev=Z,le._pack_next=Le,Le._pack_prev=le}function el(Z,le){Z._pack_next=le,le._pack_prev=Z}function Hs(Z,le){var Le=le.x-Z.x,Ye=le.y-Z.y,nt=Z.r+le.r;return .999*nt*nt>Le*Le+Ye*Ye}function Ro(Z){if(!(le=Z.children)||!($r=le.length))return;var le,Le=1/0,Ye=-1/0,nt=1/0,ut=-1/0,Ht,wt,lr,Cr,zr,ui,$r;function Oi(bi){Le=Math.min(bi.x-bi.r,Le),Ye=Math.max(bi.x+bi.r,Ye),nt=Math.min(bi.y-bi.r,nt),ut=Math.max(bi.y+bi.r,ut)}if(le.forEach(tl),Ht=le[0],Ht.x=-Ht.r,Ht.y=0,Oi(Ht),$r>1&&(wt=le[1],wt.x=wt.r,wt.y=0,Oi(wt),$r>2))for(lr=le[2],Fa(Ht,wt,lr),Oi(lr),cl(Ht,lr),Ht._pack_prev=lr,cl(lr,wt),wt=Ht._pack_next,Cr=3;Cr<$r;Cr++){Fa(Ht,wt,lr=le[Cr]);var un=0,pi=1,Pi=1;for(zr=wt._pack_next;zr!==wt;zr=zr._pack_next,pi++)if(Hs(zr,lr)){un=1;break}if(un==1)for(ui=Ht._pack_prev;ui!==zr._pack_prev&&!Hs(ui,lr);ui=ui._pack_prev,Pi++);un?(piPi.x&&(Pi=xo),xo.depth>ji.depth&&(ji=xo)});var pn=le(pi,Pi)/2-pi.x,an=Le[0]/(Pi.x+le(Pi,pi)/2+pn),bi=Le[1]/(ji.depth||1);Jn(Oi,function(xo){xo.x=(xo.x+pn)*an,xo.y=xo.depth*bi})}return $r}function ut(zr){for(var ui={A:null,children:[zr]},$r=[ui],Oi;(Oi=$r.pop())!=null;)for(var un=Oi.children,pi,Pi=0,ji=un.length;Pi0&&(Is(St(pi,zr,$r),zr,xo),ji+=xo,pn+=xo),an+=pi.m,ji+=Oi.m,bi+=Pi.m,pn+=un.m;pi&&!Rs(un)&&(un.t=pi,un.m+=an-pn),Oi&&!jo(Pi)&&(Pi.t=Oi,Pi.m+=ji-bi,$r=zr)}return $r}function Cr(zr){zr.x*=Le[0],zr.y=zr.depth*Le[1]}return nt.separation=function(zr){return arguments.length?(le=zr,nt):le},nt.size=function(zr){return arguments.length?(Ye=(Le=zr)==null?Cr:null,nt):Ye?null:Le},nt.nodeSize=function(zr){return arguments.length?(Ye=(Le=zr)==null?null:Cr,nt):Ye?Le:null},Ea(nt,Z)};function Ms(Z,le){return Z.parent==le.parent?1:2}function jo(Z){var le=Z.children;return le.length?le[0]:Z.t}function Rs(Z){var le=Z.children,Le;return(Le=le.length)?le[Le-1]:Z.t}function Is(Z,le,Le){var Ye=Le/(le.i-Z.i);le.c-=Ye,le.s+=Le,Z.c+=Ye,le.z+=Le,le.m+=Le}function Os(Z){for(var le=0,Le=0,Ye=Z.children,nt=Ye.length,ut;--nt>=0;)ut=Ye[nt],ut.z+=le,ut.m+=le,le+=ut.s+(Le+=ut.c)}function St(Z,le,Le){return Z.a.parent===le.parent?Z.a:Le}e.layout.cluster=function(){var Z=e.layout.hierarchy().sort(null).value(null),le=Ms,Le=[1,1],Ye=!1;function nt(ut,Ht){var wt=Z.call(this,ut,Ht),lr=wt[0],Cr,zr=0;Bo(lr,function(pi){var Pi=pi.children;Pi&&Pi.length?(pi.x=xr(Pi),pi.y=Ut(Pi)):(pi.x=Cr?zr+=le(pi,Cr):0,pi.y=0,Cr=pi)});var ui=dr(lr),$r=Dr(lr),Oi=ui.x-le(ui,$r)/2,un=$r.x+le($r,ui)/2;return Bo(lr,Ye?function(pi){pi.x=(pi.x-lr.x)*Le[0],pi.y=(lr.y-pi.y)*Le[1]}:function(pi){pi.x=(pi.x-Oi)/(un-Oi)*Le[0],pi.y=(1-(lr.y?pi.y/lr.y:1))*Le[1]}),wt}return nt.separation=function(ut){return arguments.length?(le=ut,nt):le},nt.size=function(ut){return arguments.length?(Ye=(Le=ut)==null,nt):Ye?null:Le},nt.nodeSize=function(ut){return arguments.length?(Ye=(Le=ut)!=null,nt):Ye?Le:null},Ea(nt,Z)};function Ut(Z){return 1+e.max(Z,function(le){return le.y})}function xr(Z){return Z.reduce(function(le,Le){return le+Le.x},0)/Z.length}function dr(Z){var le=Z.children;return le&&le.length?dr(le[0]):Z}function Dr(Z){var le=Z.children,Le;return le&&(Le=le.length)?Dr(le[Le-1]):Z}e.layout.treemap=function(){var Z=e.layout.hierarchy(),le=Math.round,Le=[1,1],Ye=null,nt=yi,ut=!1,Ht,wt="squarify",lr=.5*(1+Math.sqrt(5));function Cr(pi,Pi){for(var ji=-1,pn=pi.length,an,bi;++ji0;)pn.push(bi=an[js-1]),pn.area+=bi.area,wt!=="squarify"||(no=$r(pn,Xo))<=xo?(an.pop(),xo=no):(pn.area-=pn.pop().area,Oi(pn,Xo,ji,!1),Xo=Math.min(ji.dx,ji.dy),pn.length=pn.area=0,xo=1/0);pn.length&&(Oi(pn,Xo,ji,!0),pn.length=pn.area=0),Pi.forEach(zr)}}function ui(pi){var Pi=pi.children;if(Pi&&Pi.length){var ji=nt(pi),pn=Pi.slice(),an,bi=[];for(Cr(pn,ji.dx*ji.dy/pi.value),bi.area=0;an=pn.pop();)bi.push(an),bi.area+=an.area,an.z!=null&&(Oi(bi,an.z?ji.dx:ji.dy,ji,!pn.length),bi.length=bi.area=0);Pi.forEach(ui)}}function $r(pi,Pi){for(var ji=pi.area,pn,an=0,bi=1/0,xo=-1,no=pi.length;++xoan&&(an=pn));return ji*=ji,Pi*=Pi,ji?Math.max(Pi*an*lr/ji,ji/(Pi*bi*lr)):1/0}function Oi(pi,Pi,ji,pn){var an=-1,bi=pi.length,xo=ji.x,no=ji.y,Xo=Pi?le(pi.area/Pi):0,js;if(Pi==ji.dx){for((pn||Xo>ji.dy)&&(Xo=ji.dy);++anji.dx)&&(Xo=ji.dx);++an1);return Z+le*Ye*Math.sqrt(-2*Math.log(ut)/ut)}},logNormal:function(){var Z=e.random.normal.apply(e,arguments);return function(){return Math.exp(Z())}},bates:function(Z){var le=e.random.irwinHall(Z);return function(){return le()/Z}},irwinHall:function(Z){return function(){for(var le=0,Le=0;Le2?Si:Fn,Cr=Ye?Ds:us;return nt=lr(Z,le,Cr,Le),ut=lr(le,Z,Cr,Eo),wt}function wt(lr){return nt(lr)}return wt.invert=function(lr){return ut(lr)},wt.domain=function(lr){return arguments.length?(Z=lr.map(Number),Ht()):Z},wt.range=function(lr){return arguments.length?(le=lr,Ht()):le},wt.rangeRound=function(lr){return wt.range(lr).interpolate(To)},wt.clamp=function(lr){return arguments.length?(Ye=lr,Ht()):Ye},wt.interpolate=function(lr){return arguments.length?(Le=lr,Ht()):Le},wt.ticks=function(lr){return pa(Z,lr)},wt.tickFormat=function(lr,Cr){return d3_scale_linearTickFormat(Z,lr,Cr)},wt.nice=function(lr){return ya(Z,lr),Ht()},wt.copy=function(){return Gn(Z,le,Le,Ye)},Ht()}function ta(Z,le){return e.rebind(Z,le,"range","rangeRound","interpolate","clamp")}function ya(Z,le){return Li(Z,hi(ia(Z,le)[2])),Li(Z,hi(ia(Z,le)[2])),Z}function ia(Z,le){le==null&&(le=10);var Le=ki(Z),Ye=Le[1]-Le[0],nt=Math.pow(10,Math.floor(Math.log(Ye/le)/Math.LN10)),ut=le/Ye*nt;return ut<=.15?nt*=10:ut<=.35?nt*=5:ut<=.75&&(nt*=2),Le[0]=Math.ceil(Le[0]/nt)*nt,Le[1]=Math.floor(Le[1]/nt)*nt+nt*.5,Le[2]=nt,Le}function pa(Z,le){return e.range.apply(e,ia(Z,le))}var va={s:1,g:1,p:1,r:1,e:1};function zn(Z){return-Math.floor(Math.log(Z)/Math.LN10+.01)}function is(Z,le){var Le=zn(le[2]);return Z in va?Math.abs(Le-zn(Math.max(v(le[0]),v(le[1]))))+ +(Z!=="e"):Le-(Z==="%")*2}e.scale.log=function(){return Cs(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Cs(Z,le,Le,Ye){function nt(wt){return(Le?Math.log(wt<0?0:wt):-Math.log(wt>0?0:-wt))/Math.log(le)}function ut(wt){return Le?Math.pow(le,wt):-Math.pow(le,-wt)}function Ht(wt){return Z(nt(wt))}return Ht.invert=function(wt){return ut(Z.invert(wt))},Ht.domain=function(wt){return arguments.length?(Le=wt[0]>=0,Z.domain((Ye=wt.map(Number)).map(nt)),Ht):Ye},Ht.base=function(wt){return arguments.length?(le=+wt,Z.domain(Ye.map(nt)),Ht):le},Ht.nice=function(){var wt=Li(Ye.map(nt),Le?Math:Ks);return Z.domain(wt),Ye=wt.map(ut),Ht},Ht.ticks=function(){var wt=ki(Ye),lr=[],Cr=wt[0],zr=wt[1],ui=Math.floor(nt(Cr)),$r=Math.ceil(nt(zr)),Oi=le%1?2:le;if(isFinite($r-ui)){if(Le){for(;ui<$r;ui++)for(var un=1;un0;un--)lr.push(ut(ui)*un);for(ui=0;lr[ui]zr;$r--);lr=lr.slice(ui,$r)}return lr},Ht.copy=function(){return Cs(Z.copy(),le,Le,Ye)},ta(Ht,Z)}var Ks={floor:function(Z){return-Math.ceil(-Z)},ceil:function(Z){return-Math.floor(-Z)}};e.scale.pow=function(){return dl(e.scale.linear(),1,[0,1])};function dl(Z,le,Le){var Ye=xl(le),nt=xl(1/le);function ut(Ht){return Z(Ye(Ht))}return ut.invert=function(Ht){return nt(Z.invert(Ht))},ut.domain=function(Ht){return arguments.length?(Z.domain((Le=Ht.map(Number)).map(Ye)),ut):Le},ut.ticks=function(Ht){return pa(Le,Ht)},ut.tickFormat=function(Ht,wt){return d3_scale_linearTickFormat(Le,Ht,wt)},ut.nice=function(Ht){return ut.domain(ya(Le,Ht))},ut.exponent=function(Ht){return arguments.length?(Ye=xl(le=Ht),nt=xl(1/le),Z.domain(Le.map(Ye)),ut):le},ut.copy=function(){return dl(Z.copy(),le,Le)},ta(ut,Z)}function xl(Z){return function(le){return le<0?-Math.pow(-le,Z):Math.pow(le,Z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Bl([],{t:"range",a:[[]]})};function Bl(Z,le){var Le,Ye,nt;function ut(wt){return Ye[((Le.get(wt)||(le.t==="range"?Le.set(wt,Z.push(wt)):NaN))-1)%Ye.length]}function Ht(wt,lr){return e.range(Z.length).map(function(Cr){return wt+lr*Cr})}return ut.domain=function(wt){if(!arguments.length)return Z;Z=[],Le=new A;for(var lr=-1,Cr=wt.length,zr;++lr0?Le[ut-1]:Z[0],ut$r?0:1;if(zr=st)return lr(zr,un)+(Cr?lr(Cr,1-un):"")+"Z";var pi,Pi,ji,pn,an=0,bi=0,xo,no,Xo,js,El,Pl,pu,Il,fu=[];if((pn=(+Ht.apply(this,arguments)||0)/2)&&(ji=Ye===ll?Math.sqrt(Cr*Cr+zr*zr):+Ye.apply(this,arguments),un||(bi*=-1),zr&&(bi=ii(ji/zr*Math.sin(pn))),Cr&&(an=ii(ji/Cr*Math.sin(pn)))),zr){xo=zr*Math.cos(ui+bi),no=zr*Math.sin(ui+bi),Xo=zr*Math.cos($r-bi),js=zr*Math.sin($r-bi);var Xu=Math.abs($r-ui-2*bi)<=De?0:1;if(bi&&Ll(xo,no,Xo,js)===un^Xu){var Vu=(ui+$r)/2;xo=zr*Math.cos(Vu),no=zr*Math.sin(Vu),Xo=js=null}}else xo=no=0;if(Cr){El=Cr*Math.cos($r-an),Pl=Cr*Math.sin($r-an),pu=Cr*Math.cos(ui+an),Il=Cr*Math.sin(ui+an);var tf=Math.abs(ui-$r+2*an)<=De?0:1;if(an&&Ll(El,Pl,pu,Il)===1-un^tf){var ds=(ui+$r)/2;El=Cr*Math.cos(ds),Pl=Cr*Math.sin(ds),pu=Il=null}}else El=Pl=0;if(Oi>Oe&&(pi=Math.min(Math.abs(zr-Cr)/2,+Le.apply(this,arguments)))>.001){Pi=Cr0?0:1}function ms(Z,le,Le,Ye,nt){var ut=Z[0]-le[0],Ht=Z[1]-le[1],wt=(nt?Ye:-Ye)/Math.sqrt(ut*ut+Ht*Ht),lr=wt*Ht,Cr=-wt*ut,zr=Z[0]+lr,ui=Z[1]+Cr,$r=le[0]+lr,Oi=le[1]+Cr,un=(zr+$r)/2,pi=(ui+Oi)/2,Pi=$r-zr,ji=Oi-ui,pn=Pi*Pi+ji*ji,an=Le-Ye,bi=zr*Oi-$r*ui,xo=(ji<0?-1:1)*Math.sqrt(Math.max(0,an*an*pn-bi*bi)),no=(bi*ji-Pi*xo)/pn,Xo=(-bi*Pi-ji*xo)/pn,js=(bi*ji+Pi*xo)/pn,El=(-bi*Pi+ji*xo)/pn,Pl=no-un,pu=Xo-pi,Il=js-un,fu=El-pi;return Pl*Pl+pu*pu>Il*Il+fu*fu&&(no=js,Xo=El),[[no-lr,Xo-Cr],[no*Le/an,Xo*Le/an]]}function Bs(){return!0}function Xl(Z){var le=Kr,Le=Ia,Ye=Bs,nt=Nl,ut=nt.key,Ht=.7;function wt(lr){var Cr=[],zr=[],ui=-1,$r=lr.length,Oi,un=gr(le),pi=gr(Le);function Pi(){Cr.push("M",nt(Z(zr),Ht))}for(;++ui<$r;)Ye.call(this,Oi=lr[ui],ui)?zr.push([+un.call(this,Oi,ui),+pi.call(this,Oi,ui)]):zr.length&&(Pi(),zr=[]);return zr.length&&Pi(),Cr.length?Cr.join(""):null}return wt.x=function(lr){return arguments.length?(le=lr,wt):le},wt.y=function(lr){return arguments.length?(Le=lr,wt):Le},wt.defined=function(lr){return arguments.length?(Ye=lr,wt):Ye},wt.interpolate=function(lr){return arguments.length?(typeof lr=="function"?ut=nt=lr:ut=(nt=Gl.get(lr)||Nl).key,wt):ut},wt.tension=function(lr){return arguments.length?(Ht=lr,wt):Ht},wt}e.svg.line=function(){return Xl(G)};var Gl=e.map({linear:Nl,"linear-closed":ue,step:w,"step-before":q,"step-after":Q,basis:Rt,"basis-open":Qt,"basis-closed":rr,bundle:Mr,cardinal:Ue,"cardinal-open":ee,"cardinal-closed":fe,monotone:Gt});Gl.forEach(function(Z,le){le.key=Z,le.closed=/-closed$/.test(Z)});function Nl(Z){return Z.length>1?Z.join("L"):Z+"Z"}function ue(Z){return Z.join("L")+"Z"}function w(Z){for(var le=0,Le=Z.length,Ye=Z[0],nt=[Ye[0],",",Ye[1]];++le1&&nt.push("H",Ye[0]),nt.join("")}function q(Z){for(var le=0,Le=Z.length,Ye=Z[0],nt=[Ye[0],",",Ye[1]];++le1){wt=le[1],ut=Z[lr],lr++,Ye+="C"+(nt[0]+Ht[0])+","+(nt[1]+Ht[1])+","+(ut[0]-wt[0])+","+(ut[1]-wt[1])+","+ut[0]+","+ut[1];for(var Cr=2;Cr9&&(ut=Le*3/Math.sqrt(ut),Ht[wt]=ut*Ye,Ht[wt+1]=ut*nt));for(wt=-1;++wt<=lr;)ut=(Z[Math.min(lr,wt+1)][0]-Z[Math.max(0,wt-1)][0])/(6*(1+Ht[wt]*Ht[wt])),le.push([ut||0,Ht[wt]*ut||0]);return le}function Gt(Z){return Z.length<3?Nl(Z):Z[0]+at(Z,mt(Z))}e.svg.line.radial=function(){var Z=Xl(er);return Z.radius=Z.x,delete Z.x,Z.angle=Z.y,delete Z.y,Z};function er(Z){for(var le,Le=-1,Ye=Z.length,nt,ut;++LeDe)+",1 "+ui}function Cr(zr,ui,$r,Oi){return"Q 0,0 "+Oi}return ut.radius=function(zr){return arguments.length?(Le=gr(zr),ut):Le},ut.source=function(zr){return arguments.length?(Z=gr(zr),ut):Z},ut.target=function(zr){return arguments.length?(le=gr(zr),ut):le},ut.startAngle=function(zr){return arguments.length?(Ye=gr(zr),ut):Ye},ut.endAngle=function(zr){return arguments.length?(nt=gr(zr),ut):nt},ut};function ri(Z){return Z.radius}e.svg.diagonal=function(){var Z=wr,le=Ir,Le=si;function Ye(nt,ut){var Ht=Z.call(this,nt,ut),wt=le.call(this,nt,ut),lr=(Ht.y+wt.y)/2,Cr=[Ht,{x:Ht.x,y:lr},{x:wt.x,y:lr},wt];return Cr=Cr.map(Le),"M"+Cr[0]+"C"+Cr[1]+" "+Cr[2]+" "+Cr[3]}return Ye.source=function(nt){return arguments.length?(Z=gr(nt),Ye):Z},Ye.target=function(nt){return arguments.length?(le=gr(nt),Ye):le},Ye.projection=function(nt){return arguments.length?(Le=nt,Ye):Le},Ye};function si(Z){return[Z.x,Z.y]}e.svg.diagonal.radial=function(){var Z=e.svg.diagonal(),le=si,Le=Z.projection;return Z.projection=function(Ye){return arguments.length?Le(Mi(le=Ye)):le},Z};function Mi(Z){return function(){var le=Z.apply(this,arguments),Le=le[0],Ye=le[1]-gt;return[Le*Math.cos(Ye),Le*Math.sin(Ye)]}}e.svg.symbol=function(){var Z=Zn,le=cn;function Le(Ye,nt){return(Ua.get(Z.call(this,Ye,nt))||Yn)(le.call(this,Ye,nt))}return Le.type=function(Ye){return arguments.length?(Z=gr(Ye),Le):Z},Le.size=function(Ye){return arguments.length?(le=gr(Ye),Le):le},Le};function cn(){return 64}function Zn(){return"circle"}function Yn(Z){var le=Math.sqrt(Z/De);return"M0,"+le+"A"+le+","+le+" 0 1,1 0,"+-le+"A"+le+","+le+" 0 1,1 0,"+le+"Z"}var Ua=e.map({circle:Yn,cross:function(Z){var le=Math.sqrt(Z/5)/2;return"M"+-3*le+","+-le+"H"+-le+"V"+-3*le+"H"+le+"V"+-le+"H"+3*le+"V"+le+"H"+le+"V"+3*le+"H"+-le+"V"+le+"H"+-3*le+"Z"},diamond:function(Z){var le=Math.sqrt(Z/(2*vl)),Le=le*vl;return"M0,"+-le+"L"+Le+",0 0,"+le+" "+-Le+",0Z"},square:function(Z){var le=Math.sqrt(Z)/2;return"M"+-le+","+-le+"L"+le+","+-le+" "+le+","+le+" "+-le+","+le+"Z"},"triangle-down":function(Z){var le=Math.sqrt(Z/Fo),Le=le*Fo/2;return"M0,"+Le+"L"+le+","+-Le+" "+-le+","+-Le+"Z"},"triangle-up":function(Z){var le=Math.sqrt(Z/Fo),Le=le*Fo/2;return"M0,"+-Le+"L"+le+","+Le+" "+-le+","+Le+"Z"}});e.svg.symbolTypes=Ua.keys();var Fo=Math.sqrt(3),vl=Math.tan(30*xt);Ie.transition=function(Z){for(var le=ql||++Yl,Le=ru(Z),Ye=[],nt,ut,Ht=ou||{time:Date.now(),ease:yo,delay:0,duration:250},wt=-1,lr=this.length;++wt0;)ui[--pn].call(Z,ji);if(Pi>=1)return Ht.event&&Ht.event.end.call(Z,Z.__data__,le),--ut.count?delete ut[Ye]:delete Z[Le],1}Ht||(wt=nt.time,lr=ma($r,0,wt),Ht=ut[Ye]={tween:new A,time:wt,timer:lr,delay:nt.delay,duration:nt.duration,ease:nt.ease,index:le},nt=null,++ut.count)}e.svg.axis=function(){var Z=e.scale.linear(),le=$u,Le=6,Ye=6,nt=3,ut=[10],Ht=null,wt;function lr(Cr){Cr.each(function(){var zr=e.select(this),ui=this.__chart__||Z,$r=this.__chart__=Z.copy(),Oi=Ht==null?$r.ticks?$r.ticks.apply($r,ut):$r.domain():Ht,un=wt==null?$r.tickFormat?$r.tickFormat.apply($r,ut):G:wt,pi=zr.selectAll(".tick").data(Oi,$r),Pi=pi.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),ji=e.transition(pi.exit()).style("opacity",Oe).remove(),pn=e.transition(pi.order()).style("opacity",1),an=Math.max(Le,0)+nt,bi,xo=Ki($r),no=zr.selectAll(".domain").data([0]),Xo=(no.enter().append("path").attr("class","domain"),e.transition(no));Pi.append("line"),Pi.append("text");var js=Pi.select("line"),El=pn.select("line"),Pl=pi.select("text").text(un),pu=Pi.select("text"),Il=pn.select("text"),fu=le==="top"||le==="left"?-1:1,Xu,Vu,tf,ds;if(le==="bottom"||le==="top"?(bi=Wu,Xu="x",tf="y",Vu="x2",ds="y2",Pl.attr("dy",fu<0?"0em":".71em").style("text-anchor","middle"),Xo.attr("d","M"+xo[0]+","+fu*Ye+"V0H"+xo[1]+"V"+fu*Ye)):(bi=ju,Xu="y",tf="x",Vu="y2",ds="x2",Pl.attr("dy",".32em").style("text-anchor",fu<0?"end":"start"),Xo.attr("d","M"+fu*Ye+","+xo[0]+"H0V"+xo[1]+"H"+fu*Ye)),js.attr(ds,fu*Le),pu.attr(tf,fu*an),El.attr(Vu,0).attr(ds,fu*Le),Il.attr(Xu,0).attr(tf,fu*an),$r.rangeBand){var Wl=$r,Au=Wl.rangeBand()/2;ui=$r=function(Tu){return Wl(Tu)+Au}}else ui.rangeBand?ui=$r:ji.call(bi,$r,ui);Pi.call(bi,ui,$r),pn.call(bi,$r,$r)})}return lr.scale=function(Cr){return arguments.length?(Z=Cr,lr):Z},lr.orient=function(Cr){return arguments.length?(le=Cr in Ku?Cr+"":$u,lr):le},lr.ticks=function(){return arguments.length?(ut=r(arguments),lr):ut},lr.tickValues=function(Cr){return arguments.length?(Ht=Cr,lr):Ht},lr.tickFormat=function(Cr){return arguments.length?(wt=Cr,lr):wt},lr.tickSize=function(Cr){var zr=arguments.length;return zr?(Le=+Cr,Ye=+arguments[zr-1],lr):Le},lr.innerTickSize=function(Cr){return arguments.length?(Le=+Cr,lr):Le},lr.outerTickSize=function(Cr){return arguments.length?(Ye=+Cr,lr):Ye},lr.tickPadding=function(Cr){return arguments.length?(nt=+Cr,lr):nt},lr.tickSubdivide=function(){return arguments.length&&lr},lr};var $u="bottom",Ku={top:1,right:1,bottom:1,left:1};function Wu(Z,le,Le){Z.attr("transform",function(Ye){var nt=le(Ye);return"translate("+(isFinite(nt)?nt:Le(Ye))+",0)"})}function ju(Z,le,Le){Z.attr("transform",function(Ye){var nt=le(Ye);return"translate(0,"+(isFinite(nt)?nt:Le(Ye))+")"})}e.svg.brush=function(){var Z=Ee(zr,"brushstart","brush","brushend"),le=null,Le=null,Ye=[0,0],nt=[0,0],ut,Ht,wt=!0,lr=!0,Cr=_f[0];function zr(pi){pi.each(function(){var Pi=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",un).on("touchstart.brush",un),ji=Pi.selectAll(".background").data([0]);ji.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Pi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pn=Pi.selectAll(".resize").data(Cr,G);pn.exit().remove(),pn.enter().append("g").attr("class",function(no){return"resize "+no}).style("cursor",function(no){return sf[no]}).append("rect").attr("x",function(no){return/[ew]$/.test(no)?-3:null}).attr("y",function(no){return/^[ns]/.test(no)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pn.style("display",zr.empty()?"none":null);var an=e.transition(Pi),bi=e.transition(ji),xo;le&&(xo=Ki(le),bi.attr("x",xo[0]).attr("width",xo[1]-xo[0]),$r(an)),Le&&(xo=Ki(Le),bi.attr("y",xo[0]).attr("height",xo[1]-xo[0]),Oi(an)),ui(an)})}zr.event=function(pi){pi.each(function(){var Pi=Z.of(this,arguments),ji={x:Ye,y:nt,i:ut,j:Ht},pn=this.__chart__||ji;this.__chart__=ji,ql?e.select(this).transition().each("start.brush",function(){ut=pn.i,Ht=pn.j,Ye=pn.x,nt=pn.y,Pi({type:"brushstart"})}).tween("brush:brush",function(){var an=Ja(Ye,ji.x),bi=Ja(nt,ji.y);return ut=Ht=null,function(xo){Ye=ji.x=an(xo),nt=ji.y=bi(xo),Pi({type:"brush",mode:"resize"})}}).each("end.brush",function(){ut=ji.i,Ht=ji.j,Pi({type:"brush",mode:"resize"}),Pi({type:"brushend"})}):(Pi({type:"brushstart"}),Pi({type:"brush",mode:"resize"}),Pi({type:"brushend"}))})};function ui(pi){pi.selectAll(".resize").attr("transform",function(Pi){return"translate("+Ye[+/e$/.test(Pi)]+","+nt[+/^s/.test(Pi)]+")"})}function $r(pi){pi.select(".extent").attr("x",Ye[0]),pi.selectAll(".extent,.n>rect,.s>rect").attr("width",Ye[1]-Ye[0])}function Oi(pi){pi.select(".extent").attr("y",nt[0]),pi.selectAll(".extent,.e>rect,.w>rect").attr("height",nt[1]-nt[0])}function un(){var pi=this,Pi=e.select(e.event.target),ji=Z.of(pi,arguments),pn=e.select(pi),an=Pi.datum(),bi=!/^(n|s)$/.test(an)&&le,xo=!/^(e|w)$/.test(an)&&Le,no=Pi.classed("extent"),Xo=vr(pi),js,El=e.mouse(pi),Pl,pu=e.select(a(pi)).on("keydown.brush",Xu).on("keyup.brush",Vu);if(e.event.changedTouches?pu.on("touchmove.brush",tf).on("touchend.brush",Wl):pu.on("mousemove.brush",tf).on("mouseup.brush",Wl),pn.interrupt().selectAll("*").interrupt(),no)El[0]=Ye[0]-El[0],El[1]=nt[0]-El[1];else if(an){var Il=+/w$/.test(an),fu=+/^n/.test(an);Pl=[Ye[1-Il]-El[0],nt[1-fu]-El[1]],El[0]=Ye[Il],El[1]=nt[fu]}else e.event.altKey&&(js=El.slice());pn.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Pi.style("cursor")),ji({type:"brushstart"}),tf();function Xu(){e.event.keyCode==32&&(no||(js=null,El[0]-=Ye[1],El[1]-=nt[1],no=2),me())}function Vu(){e.event.keyCode==32&&no==2&&(El[0]+=Ye[1],El[1]+=nt[1],no=0,me())}function tf(){var Au=e.mouse(pi),Tu=!1;Pl&&(Au[0]+=Pl[0],Au[1]+=Pl[1]),no||(e.event.altKey?(js||(js=[(Ye[0]+Ye[1])/2,(nt[0]+nt[1])/2]),El[0]=Ye[+(Au[0]{(function(e,t){typeof bL=="object"&&typeof Bee!="undefined"?t(bL):(e=e||self,t(e.d3=e.d3||{}))})(bL,function(e){"use strict";var t=new Date,r=new Date;function n(oe,Ne,vt,lt){function We(Ve){return oe(Ve=arguments.length===0?new Date:new Date(+Ve)),Ve}return We.floor=function(Ve){return oe(Ve=new Date(+Ve)),Ve},We.ceil=function(Ve){return oe(Ve=new Date(Ve-1)),Ne(Ve,1),oe(Ve),Ve},We.round=function(Ve){var et=We(Ve),tt=We.ceil(Ve);return Ve-et0))return Lt;do Lt.push(jt=new Date(+Ve)),Ne(Ve,tt),oe(Ve);while(jt=et)for(;oe(et),!Ve(et);)et.setTime(et-1)},function(et,tt){if(et>=et)if(tt<0)for(;++tt<=0;)for(;Ne(et,-1),!Ve(et););else for(;--tt>=0;)for(;Ne(et,1),!Ve(et););})},vt&&(We.count=function(Ve,et){return t.setTime(+Ve),r.setTime(+et),oe(t),oe(r),Math.floor(vt(t,r))},We.every=function(Ve){return Ve=Math.floor(Ve),!isFinite(Ve)||!(Ve>0)?null:Ve>1?We.filter(lt?function(et){return lt(et)%Ve===0}:function(et){return We.count(0,et)%Ve===0}):We}),We}var i=n(function(){},function(oe,Ne){oe.setTime(+oe+Ne)},function(oe,Ne){return Ne-oe});i.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?n(function(Ne){Ne.setTime(Math.floor(Ne/oe)*oe)},function(Ne,vt){Ne.setTime(+Ne+vt*oe)},function(Ne,vt){return(vt-Ne)/oe}):i};var a=i.range,o=1e3,s=6e4,u=36e5,l=864e5,f=6048e5,c=n(function(oe){oe.setTime(oe-oe.getMilliseconds())},function(oe,Ne){oe.setTime(+oe+Ne*o)},function(oe,Ne){return(Ne-oe)/o},function(oe){return oe.getUTCSeconds()}),h=c.range,d=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*o)},function(oe,Ne){oe.setTime(+oe+Ne*s)},function(oe,Ne){return(Ne-oe)/s},function(oe){return oe.getMinutes()}),p=d.range,y=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*o-oe.getMinutes()*s)},function(oe,Ne){oe.setTime(+oe+Ne*u)},function(oe,Ne){return(Ne-oe)/u},function(oe){return oe.getHours()}),b=y.range,v=n(function(oe){oe.setHours(0,0,0,0)},function(oe,Ne){oe.setDate(oe.getDate()+Ne)},function(oe,Ne){return(Ne-oe-(Ne.getTimezoneOffset()-oe.getTimezoneOffset())*s)/l},function(oe){return oe.getDate()-1}),C=v.range;function E(oe){return n(function(Ne){Ne.setDate(Ne.getDate()-(Ne.getDay()+7-oe)%7),Ne.setHours(0,0,0,0)},function(Ne,vt){Ne.setDate(Ne.getDate()+vt*7)},function(Ne,vt){return(vt-Ne-(vt.getTimezoneOffset()-Ne.getTimezoneOffset())*s)/f})}var A=E(0),L=E(1),x=E(2),k=E(3),S=E(4),m=E(5),P=E(6),M=A.range,O=L.range,F=x.range,U=k.range,G=S.range,j=m.range,W=P.range,N=n(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,Ne){oe.setMonth(oe.getMonth()+Ne)},function(oe,Ne){return Ne.getMonth()-oe.getMonth()+(Ne.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),H=N.range,re=n(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,Ne){oe.setFullYear(oe.getFullYear()+Ne)},function(oe,Ne){return Ne.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});re.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(Ne){Ne.setFullYear(Math.floor(Ne.getFullYear()/oe)*oe),Ne.setMonth(0,1),Ne.setHours(0,0,0,0)},function(Ne,vt){Ne.setFullYear(Ne.getFullYear()+vt*oe)})};var ae=re.range,me=n(function(oe){oe.setUTCSeconds(0,0)},function(oe,Ne){oe.setTime(+oe+Ne*s)},function(oe,Ne){return(Ne-oe)/s},function(oe){return oe.getUTCMinutes()}),Ce=me.range,Ee=n(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,Ne){oe.setTime(+oe+Ne*u)},function(oe,Ne){return(Ne-oe)/u},function(oe){return oe.getUTCHours()}),de=Ee.range,te=n(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,Ne){oe.setUTCDate(oe.getUTCDate()+Ne)},function(oe,Ne){return(Ne-oe)/l},function(oe){return oe.getUTCDate()-1}),Se=te.range;function Te(oe){return n(function(Ne){Ne.setUTCDate(Ne.getUTCDate()-(Ne.getUTCDay()+7-oe)%7),Ne.setUTCHours(0,0,0,0)},function(Ne,vt){Ne.setUTCDate(Ne.getUTCDate()+vt*7)},function(Ne,vt){return(vt-Ne)/f})}var be=Te(0),He=Te(1),Ie=Te(2),ge=Te(3),Be=Te(4),ce=Te(5),je=Te(6),rt=be.range,bt=He.range,Ot=Ie.range,it=ge.range,Ke=Be.range,zt=ce.range,Mt=je.range,kt=n(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,Ne){oe.setUTCMonth(oe.getUTCMonth()+Ne)},function(oe,Ne){return Ne.getUTCMonth()-oe.getUTCMonth()+(Ne.getUTCFullYear()-oe.getUTCFullYear())*12},function(oe){return oe.getUTCMonth()}),$e=kt.range,Re=n(function(oe){oe.setUTCMonth(0,1),oe.setUTCHours(0,0,0,0)},function(oe,Ne){oe.setUTCFullYear(oe.getUTCFullYear()+Ne)},function(oe,Ne){return Ne.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});Re.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(Ne){Ne.setUTCFullYear(Math.floor(Ne.getUTCFullYear()/oe)*oe),Ne.setUTCMonth(0,1),Ne.setUTCHours(0,0,0,0)},function(Ne,vt){Ne.setUTCFullYear(Ne.getUTCFullYear()+vt*oe)})};var Me=Re.range;e.timeDay=v,e.timeDays=C,e.timeFriday=m,e.timeFridays=j,e.timeHour=y,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=L,e.timeMondays=O,e.timeMonth=N,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=W,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=A,e.timeSundays=M,e.timeThursday=S,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=F,e.timeWednesday=k,e.timeWednesdays=U,e.timeWeek=A,e.timeWeeks=M,e.timeYear=re,e.timeYears=ae,e.utcDay=te,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=zt,e.utcHour=Ee,e.utcHours=de,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=me,e.utcMinutes=Ce,e.utcMonday=He,e.utcMondays=bt,e.utcMonth=kt,e.utcMonths=$e,e.utcSaturday=je,e.utcSaturdays=Mt,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=rt,e.utcThursday=Be,e.utcThursdays=Ke,e.utcTuesday=Ie,e.utcTuesdays=Ot,e.utcWednesday=ge,e.utcWednesdays=it,e.utcWeek=be,e.utcWeeks=rt,e.utcYear=Re,e.utcYears=Me,Object.defineProperty(e,"__esModule",{value:!0})})});var v3=we((wL,qee)=>{(function(e,t){typeof wL=="object"&&typeof qee!="undefined"?t(wL,qB()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(wL,function(e,t){"use strict";function r(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L);return Oe.setFullYear(xe.y),Oe}return new Date(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L)}function n(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(Date.UTC(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L));return Oe.setUTCFullYear(xe.y),Oe}return new Date(Date.UTC(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L))}function i(xe,Oe,ze){return{y:xe,m:Oe,d:ze,H:0,M:0,S:0,L:0}}function a(xe){var Oe=xe.dateTime,ze=xe.date,De=xe.time,ht=xe.periods,st=xe.days,gt=xe.shortDays,xt=xe.months,pr=xe.shortMonths,br=h(ht),cr=d(ht),Er=h(st),ii=d(st),jr=h(gt),kr=d(gt),Vr=h(xt),Ai=d(xt),Bi=h(pr),Ri=d(pr),ln={a:Gr,A:mi,b:Ei,B:Vi,c:null,d:N,e:N,f:Ce,H,I:re,j:ae,L:me,m:Ee,M:de,p:ti,q:Qi,Q:et,s:tt,S:te,u:Se,U:Te,V:be,w:He,W:Ie,x:null,X:null,y:ge,Y:Be,Z:ce,"%":Ve},hn={a:Yr,A:oi,b:Fi,B:rn,c:null,d:je,e:je,f:Ke,H:rt,I:bt,j:Ot,L:it,m:zt,M:Mt,p:tn,q:Di,Q:et,s:tt,S:kt,u:$e,U:Re,V:Me,w:oe,W:Ne,x:null,X:null,y:vt,Y:lt,Z:We,"%":Ve},qr={a:qt,A:Nt,b:mr,B:Lr,c:Nr,d:S,e:S,f:U,H:P,I:P,j:m,L:F,m:k,M,p:_t,q:x,Q:j,s:W,S:O,u:y,U:b,V:v,w:p,W:C,x:Fr,X:Hr,y:A,Y:E,Z:L,"%":G};ln.x=_i(ze,ln),ln.X=_i(De,ln),ln.c=_i(Oe,ln),hn.x=_i(ze,hn),hn.X=_i(De,hn),hn.c=_i(Oe,hn);function _i(Ii,xn){return function(xi){var Xr=[],dt=-1,$t=0,fr=Ii.length,gr,Zr,wi;for(xi instanceof Date||(xi=new Date(+xi));++dt53)return null;"w"in Xr||(Xr.w=1),"Z"in Xr?($t=n(i(Xr.y,0,1)),fr=$t.getUTCDay(),$t=fr>4||fr===0?t.utcMonday.ceil($t):t.utcMonday($t),$t=t.utcDay.offset($t,(Xr.V-1)*7),Xr.y=$t.getUTCFullYear(),Xr.m=$t.getUTCMonth(),Xr.d=$t.getUTCDate()+(Xr.w+6)%7):($t=r(i(Xr.y,0,1)),fr=$t.getDay(),$t=fr>4||fr===0?t.timeMonday.ceil($t):t.timeMonday($t),$t=t.timeDay.offset($t,(Xr.V-1)*7),Xr.y=$t.getFullYear(),Xr.m=$t.getMonth(),Xr.d=$t.getDate()+(Xr.w+6)%7)}else("W"in Xr||"U"in Xr)&&("w"in Xr||(Xr.w="u"in Xr?Xr.u%7:"W"in Xr?1:0),fr="Z"in Xr?n(i(Xr.y,0,1)).getUTCDay():r(i(Xr.y,0,1)).getDay(),Xr.m=0,Xr.d="W"in Xr?(Xr.w+6)%7+Xr.W*7-(fr+5)%7:Xr.w+Xr.U*7-(fr+6)%7);return"Z"in Xr?(Xr.H+=Xr.Z/100|0,Xr.M+=Xr.Z%100,n(Xr)):r(Xr)}}function Dt(Ii,xn,xi,Xr){for(var dt=0,$t=xn.length,fr=xi.length,gr,Zr;dt<$t;){if(Xr>=fr)return-1;if(gr=xn.charCodeAt(dt++),gr===37){if(gr=xn.charAt(dt++),Zr=qr[gr in o?xn.charAt(dt++):gr],!Zr||(Xr=Zr(Ii,xi,Xr))<0)return-1}else if(gr!=xi.charCodeAt(Xr++))return-1}return Xr}function _t(Ii,xn,xi){var Xr=br.exec(xn.slice(xi));return Xr?(Ii.p=cr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function qt(Ii,xn,xi){var Xr=jr.exec(xn.slice(xi));return Xr?(Ii.w=kr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Nt(Ii,xn,xi){var Xr=Er.exec(xn.slice(xi));return Xr?(Ii.w=ii[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function mr(Ii,xn,xi){var Xr=Bi.exec(xn.slice(xi));return Xr?(Ii.m=Ri[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Lr(Ii,xn,xi){var Xr=Vr.exec(xn.slice(xi));return Xr?(Ii.m=Ai[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Nr(Ii,xn,xi){return Dt(Ii,Oe,xn,xi)}function Fr(Ii,xn,xi){return Dt(Ii,ze,xn,xi)}function Hr(Ii,xn,xi){return Dt(Ii,De,xn,xi)}function Gr(Ii){return gt[Ii.getDay()]}function mi(Ii){return st[Ii.getDay()]}function Ei(Ii){return pr[Ii.getMonth()]}function Vi(Ii){return xt[Ii.getMonth()]}function ti(Ii){return ht[+(Ii.getHours()>=12)]}function Qi(Ii){return 1+~~(Ii.getMonth()/3)}function Yr(Ii){return gt[Ii.getUTCDay()]}function oi(Ii){return st[Ii.getUTCDay()]}function Fi(Ii){return pr[Ii.getUTCMonth()]}function rn(Ii){return xt[Ii.getUTCMonth()]}function tn(Ii){return ht[+(Ii.getUTCHours()>=12)]}function Di(Ii){return 1+~~(Ii.getUTCMonth()/3)}return{format:function(Ii){var xn=_i(Ii+="",ln);return xn.toString=function(){return Ii},xn},parse:function(Ii){var xn=zi(Ii+="",!1);return xn.toString=function(){return Ii},xn},utcFormat:function(Ii){var xn=_i(Ii+="",hn);return xn.toString=function(){return Ii},xn},utcParse:function(Ii){var xn=zi(Ii+="",!0);return xn.toString=function(){return Ii},xn}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(xe,Oe,ze){var De=xe<0?"-":"",ht=(De?-xe:xe)+"",st=ht.length;return De+(st68?1900:2e3),ze+De[0].length):-1}function L(xe,Oe,ze){var De=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(ze,ze+6));return De?(xe.Z=De[1]?0:-(De[2]+(De[3]||"00")),ze+De[0].length):-1}function x(xe,Oe,ze){var De=s.exec(Oe.slice(ze,ze+1));return De?(xe.q=De[0]*3-3,ze+De[0].length):-1}function k(xe,Oe,ze){var De=s.exec(Oe.slice(ze,ze+2));return De?(xe.m=De[0]-1,ze+De[0].length):-1}function S(xe,Oe,ze){var De=s.exec(Oe.slice(ze,ze+2));return De?(xe.d=+De[0],ze+De[0].length):-1}function m(xe,Oe,ze){var De=s.exec(Oe.slice(ze,ze+3));return De?(xe.m=0,xe.d=+De[0],ze+De[0].length):-1}function P(xe,Oe,ze){var De=s.exec(Oe.slice(ze,ze+2));return De?(xe.H=+De[0],ze+De[0].length):-1}function M(xe,Oe,ze){var De=s.exec(Oe.slice(ze,ze+2));return De?(xe.M=+De[0],ze+De[0].length):-1}function O(xe,Oe,ze){var De=s.exec(Oe.slice(ze,ze+2));return De?(xe.S=+De[0],ze+De[0].length):-1}function F(xe,Oe,ze){var De=s.exec(Oe.slice(ze,ze+3));return De?(xe.L=+De[0],ze+De[0].length):-1}function U(xe,Oe,ze){var De=s.exec(Oe.slice(ze,ze+6));return De?(xe.L=Math.floor(De[0]/1e3),ze+De[0].length):-1}function G(xe,Oe,ze){var De=u.exec(Oe.slice(ze,ze+1));return De?ze+De[0].length:-1}function j(xe,Oe,ze){var De=s.exec(Oe.slice(ze));return De?(xe.Q=+De[0],ze+De[0].length):-1}function W(xe,Oe,ze){var De=s.exec(Oe.slice(ze));return De?(xe.s=+De[0],ze+De[0].length):-1}function N(xe,Oe){return f(xe.getDate(),Oe,2)}function H(xe,Oe){return f(xe.getHours(),Oe,2)}function re(xe,Oe){return f(xe.getHours()%12||12,Oe,2)}function ae(xe,Oe){return f(1+t.timeDay.count(t.timeYear(xe),xe),Oe,3)}function me(xe,Oe){return f(xe.getMilliseconds(),Oe,3)}function Ce(xe,Oe){return me(xe,Oe)+"000"}function Ee(xe,Oe){return f(xe.getMonth()+1,Oe,2)}function de(xe,Oe){return f(xe.getMinutes(),Oe,2)}function te(xe,Oe){return f(xe.getSeconds(),Oe,2)}function Se(xe){var Oe=xe.getDay();return Oe===0?7:Oe}function Te(xe,Oe){return f(t.timeSunday.count(t.timeYear(xe)-1,xe),Oe,2)}function be(xe,Oe){var ze=xe.getDay();return xe=ze>=4||ze===0?t.timeThursday(xe):t.timeThursday.ceil(xe),f(t.timeThursday.count(t.timeYear(xe),xe)+(t.timeYear(xe).getDay()===4),Oe,2)}function He(xe){return xe.getDay()}function Ie(xe,Oe){return f(t.timeMonday.count(t.timeYear(xe)-1,xe),Oe,2)}function ge(xe,Oe){return f(xe.getFullYear()%100,Oe,2)}function Be(xe,Oe){return f(xe.getFullYear()%1e4,Oe,4)}function ce(xe){var Oe=xe.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+f(Oe/60|0,"0",2)+f(Oe%60,"0",2)}function je(xe,Oe){return f(xe.getUTCDate(),Oe,2)}function rt(xe,Oe){return f(xe.getUTCHours(),Oe,2)}function bt(xe,Oe){return f(xe.getUTCHours()%12||12,Oe,2)}function Ot(xe,Oe){return f(1+t.utcDay.count(t.utcYear(xe),xe),Oe,3)}function it(xe,Oe){return f(xe.getUTCMilliseconds(),Oe,3)}function Ke(xe,Oe){return it(xe,Oe)+"000"}function zt(xe,Oe){return f(xe.getUTCMonth()+1,Oe,2)}function Mt(xe,Oe){return f(xe.getUTCMinutes(),Oe,2)}function kt(xe,Oe){return f(xe.getUTCSeconds(),Oe,2)}function $e(xe){var Oe=xe.getUTCDay();return Oe===0?7:Oe}function Re(xe,Oe){return f(t.utcSunday.count(t.utcYear(xe)-1,xe),Oe,2)}function Me(xe,Oe){var ze=xe.getUTCDay();return xe=ze>=4||ze===0?t.utcThursday(xe):t.utcThursday.ceil(xe),f(t.utcThursday.count(t.utcYear(xe),xe)+(t.utcYear(xe).getUTCDay()===4),Oe,2)}function oe(xe){return xe.getUTCDay()}function Ne(xe,Oe){return f(t.utcMonday.count(t.utcYear(xe)-1,xe),Oe,2)}function vt(xe,Oe){return f(xe.getUTCFullYear()%100,Oe,2)}function lt(xe,Oe){return f(xe.getUTCFullYear()%1e4,Oe,4)}function We(){return"+0000"}function Ve(){return"%"}function et(xe){return+xe}function tt(xe){return Math.floor(+xe/1e3)}var Lt;jt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function jt(xe){return Lt=a(xe),e.timeFormat=Lt.format,e.timeParse=Lt.parse,e.utcFormat=Lt.utcFormat,e.utcParse=Lt.utcParse,Lt}var or="%Y-%m-%dT%H:%M:%S.%LZ";function yr(xe){return xe.toISOString()}var vr=Date.prototype.toISOString?yr:e.utcFormat(or);function Vt(xe){var Oe=new Date(xe);return isNaN(Oe)?null:Oe}var Pe=+new Date("2000-01-01T00:00:00.000Z")?Vt:e.utcParse(or);e.isoFormat=vr,e.isoParse=Pe,e.timeFormatDefaultLocale=jt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var NB=we((AL,Nee)=>{(function(e,t){typeof AL=="object"&&typeof Nee!="undefined"?t(AL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(AL,(function(e){"use strict";function t(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function r(k,S){if((m=(k=S?k.toExponential(S-1):k.toExponential()).indexOf("e"))<0)return null;var m,P=k.slice(0,m);return[P.length>1?P[0]+P.slice(2):P,+k.slice(m+1)]}function n(k){return k=r(Math.abs(k)),k?k[1]:NaN}function i(k,S){return function(m,P){for(var M=m.length,O=[],F=0,U=k[0],G=0;M>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),O.push(m.substring(M-=U,M+U)),!((G+=U+1)>P));)U=k[F=(F+1)%k.length];return O.reverse().join(S)}}function a(k){return function(S){return S.replace(/[0-9]/g,function(m){return k[+m]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(k){if(!(S=o.exec(k)))throw new Error("invalid format: "+k);var S;return new u({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=u.prototype;function u(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l(k){e:for(var S=k.length,m=1,P=-1,M;m0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(M+1):k}var f;function c(k,S){var m=r(k,S);if(!m)return k+"";var P=m[0],M=m[1],O=M-(f=Math.max(-8,Math.min(8,Math.floor(M/3)))*3)+1,F=P.length;return O===F?P:O>F?P+new Array(O-F+1).join("0"):O>0?P.slice(0,O)+"."+P.slice(O):"0."+new Array(1-O).join("0")+r(k,Math.max(0,S+O-1))[0]}function h(k,S){var m=r(k,S);if(!m)return k+"";var P=m[0],M=m[1];return M<0?"0."+new Array(-M).join("0")+P:P.length>M+1?P.slice(0,M+1)+"."+P.slice(M+1):P+new Array(M-P.length+2).join("0")}var d={"%":function(k,S){return(k*100).toFixed(S)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:t,e:function(k,S){return k.toExponential(S)},f:function(k,S){return k.toFixed(S)},g:function(k,S){return k.toPrecision(S)},o:function(k){return Math.round(k).toString(8)},p:function(k,S){return h(k*100,S)},r:h,s:c,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function p(k){return k}var y=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function v(k){var S=k.grouping===void 0||k.thousands===void 0?p:i(y.call(k.grouping,Number),k.thousands+""),m=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",M=k.decimal===void 0?".":k.decimal+"",O=k.numerals===void 0?p:a(y.call(k.numerals,String)),F=k.percent===void 0?"%":k.percent+"",U=k.minus===void 0?"-":k.minus+"",G=k.nan===void 0?"NaN":k.nan+"";function j(N){N=s(N);var H=N.fill,re=N.align,ae=N.sign,me=N.symbol,Ce=N.zero,Ee=N.width,de=N.comma,te=N.precision,Se=N.trim,Te=N.type;Te==="n"?(de=!0,Te="g"):d[Te]||(te===void 0&&(te=12),Se=!0,Te="g"),(Ce||H==="0"&&re==="=")&&(Ce=!0,H="0",re="=");var be=me==="$"?m:me==="#"&&/[boxX]/.test(Te)?"0"+Te.toLowerCase():"",He=me==="$"?P:/[%p]/.test(Te)?F:"",Ie=d[Te],ge=/[defgprs%]/.test(Te);te=te===void 0?6:/[gprs]/.test(Te)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function Be(ce){var je=be,rt=He,bt,Ot,it;if(Te==="c")rt=Ie(ce)+rt,ce="";else{ce=+ce;var Ke=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Ie(Math.abs(ce),te),Se&&(ce=l(ce)),Ke&&+ce==0&&ae!=="+"&&(Ke=!1),je=(Ke?ae==="("?ae:U:ae==="-"||ae==="("?"":ae)+je,rt=(Te==="s"?b[8+f/3]:"")+rt+(Ke&&ae==="("?")":""),ge){for(bt=-1,Ot=ce.length;++btit||it>57){rt=(it===46?M+ce.slice(bt+1):ce.slice(bt))+rt,ce=ce.slice(0,bt);break}}}de&&!Ce&&(ce=S(ce,1/0));var zt=je.length+ce.length+rt.length,Mt=zt>1)+je+ce+rt+Mt.slice(zt);break;default:ce=Mt+je+ce+rt;break}return O(ce)}return Be.toString=function(){return N+""},Be}function W(N,H){var re=j((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(H)/3)))*3,me=Math.pow(10,-ae),Ce=b[8+ae/3];return function(Ee){return re(me*Ee)+Ce}}return{format:j,formatPrefix:W}}var C;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(k){return C=v(k),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function A(k){return Math.max(0,-n(Math.abs(k)))}function L(k,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(S)/3)))*3-n(Math.abs(k)))}function x(k,S){return k=Math.abs(k),S=Math.abs(S)-k,Math.max(0,n(S)-n(k))+1}e.FormatSpecifier=u,e.formatDefaultLocale=E,e.formatLocale=v,e.formatSpecifier=s,e.precisionFixed=A,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})}))});var Vee=we((pnr,Uee)=>{"use strict";Uee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var ku=we((vnr,Gee)=>{"use strict";var xrt=Vee();Gee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&xrt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var rf=we((mnr,Hee)=>{"use strict";Hee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var UB=we((TL,Wee)=>{(function(e,t){typeof TL=="object"&&typeof Wee!="undefined"?t(TL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(TL,(function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=t[(s[u]&3)<<4|s[u+1]>>4],f+=t[(s[u+1]&15)<<2|s[u+2]>>6],f+=t[s[u+2]&63];return l%3===2?f=f.substring(0,f.length-1)+"=":l%3===1&&(f=f.substring(0,f.length-2)+"=="),f},a=function(o){var s=o.length*.75,u=o.length,l,f=0,c,h,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var y=new ArrayBuffer(s),b=new Uint8Array(y);for(l=0;l>4,b[f++]=(h&15)<<4|d>>2,b[f++]=(d&3)<<6|p&63;return y};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})}))});var Sg=we((ynr,jee)=>{"use strict";jee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var Jd=we(xm=>{"use strict";var brt=UB().decode,wrt=Sg(),VB=Array.isArray,Art=ArrayBuffer,Trt=DataView;function Xee(e){return Art.isView(e)&&!(e instanceof Trt)}xm.isTypedArray=Xee;function SL(e){return VB(e)||Xee(e)}xm.isArrayOrTypedArray=SL;function Srt(e){return!SL(e[0])}xm.isArray1D=Srt;xm.ensureArray=function(e,t){return VB(e)||(e=[]),e.length=t,e};var zd={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};zd.uint8c=zd.u1c;zd.uint8=zd.u1;zd.int8=zd.i1;zd.uint16=zd.u2;zd.int16=zd.i2;zd.uint32=zd.u4;zd.int32=zd.i4;zd.float32=zd.f4;zd.float64=zd.f8;function GB(e){return e.constructor===ArrayBuffer}xm.isArrayBuffer=GB;xm.decodeTypedArraySpec=function(e){var t=[],r=Mrt(e),n=r.dtype,i=zd[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;GB(o)||(o=brt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var u=s.length,l,f,c=+s[0],h=a*c,d=0;if(u===1)t=new i(o);else if(u===2)for(l=+s[1],f=0;f{"use strict";var Yee=ku(),WB=Jd().isArrayOrTypedArray;Qee.exports=function(t,r){if(Yee(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var m3=qM(),Prt=/^\w*$/,zrt=0,ete=1,ML=2,tte=3,yb=4;rte.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,u={};r&&r.length?(s=m3(t,r),o=s.get()):o=t,r=r||"";var l={};if(o)for(a=0;a2)return u[d]=u[d]|ML,c.set(h,null);if(f){for(a=d;a{"use strict";var Irt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Rrt=/^[^\.\[\]]+$/;nte.exports=function(e,t){for(;t;){var r=e.match(Irt);if(r)e=r[1];else if(e.match(Rrt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var EL=we((wnr,ote)=>{"use strict";var Drt=ku();ote.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Drt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var ute=we((Anr,lte)=>{"use strict";var ste=Jd().isArrayOrTypedArray,NM=Sg();lte.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(ste(i)&&ste(a)&&NM(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Frt(e,t){var r=e%t;return r<0?r+t:r}function Ort(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}fte.exports={mod:Frt,modHalf:Ort}});var hd=we((Snr,kL)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function u(ge,Be){if(ge=ge||"",Be=Be||{},ge instanceof u)return ge;if(!(this instanceof u))return new u(ge,Be);var ce=l(ge);this._originalInput=ge,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Be.format||ce.format,this._gradientType=Be.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),Be,ce,je,rt,bt,Ot;return Be=ge.r/255,ce=ge.g/255,je=ge.b/255,Be<=.03928?rt=Be/12.92:rt=e.pow((Be+.055)/1.055,2.4),ce<=.03928?bt=ce/12.92:bt=e.pow((ce+.055)/1.055,2.4),je<=.03928?Ot=je/12.92:Ot=e.pow((je+.055)/1.055,2.4),.2126*rt+.7152*bt+.0722*Ot},setAlpha:function(ge){return this._a=N(ge),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ge=d(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=d(this._r,this._g,this._b),Be=i(ge.h*360),ce=i(ge.s*100),je=i(ge.v*100);return this._a==1?"hsv("+Be+", "+ce+"%, "+je+"%)":"hsva("+Be+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHsl:function(){var ge=c(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=c(this._r,this._g,this._b),Be=i(ge.h*360),ce=i(ge.s*100),je=i(ge.l*100);return this._a==1?"hsl("+Be+", "+ce+"%, "+je+"%)":"hsla("+Be+", "+ce+"%, "+je+"%, "+this._roundA+")"},toHex:function(ge){return y(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return b(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(H(this._r,255)*100)+"%",g:i(H(this._g,255)*100)+"%",b:i(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%)":"rgba("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:j[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var Be="#"+v(this._r,this._g,this._b,this._a),ce=Be,je=this._gradientType?"GradientType = 1, ":"";if(ge){var rt=u(ge);ce="#"+v(rt._r,rt._g,rt._b,rt._a)}return"progid:DXImageTransform.Microsoft.gradient("+je+"startColorstr="+Be+",endColorstr="+ce+")"},toString:function(ge){var Be=!!ge;ge=ge||this._format;var ce=!1,je=this._a<1&&this._a>=0,rt=!Be&&je&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return rt?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ce=this.toRgbString()),ge==="prgb"&&(ce=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ce=this.toHexString()),ge==="hex3"&&(ce=this.toHexString(!0)),ge==="hex4"&&(ce=this.toHex8String(!0)),ge==="hex8"&&(ce=this.toHex8String()),ge==="name"&&(ce=this.toName()),ge==="hsl"&&(ce=this.toHslString()),ge==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(ge,Be){var ce=ge.apply(null,[this].concat([].slice.call(Be)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(ge,Be){return ge.apply(null,[this].concat([].slice.call(Be)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},u.fromRatio=function(ge,Be){if(typeof ge=="object"){var ce={};for(var je in ge)ge.hasOwnProperty(je)&&(je==="a"?ce[je]=ge[je]:ce[je]=de(ge[je]));ge=ce}return u(ge,Be)};function l(ge){var Be={r:0,g:0,b:0},ce=1,je=null,rt=null,bt=null,Ot=!1,it=!1;return typeof ge=="string"&&(ge=He(ge)),typeof ge=="object"&&(be(ge.r)&&be(ge.g)&&be(ge.b)?(Be=f(ge.r,ge.g,ge.b),Ot=!0,it=String(ge.r).substr(-1)==="%"?"prgb":"rgb"):be(ge.h)&&be(ge.s)&&be(ge.v)?(je=de(ge.s),rt=de(ge.v),Be=p(ge.h,je,rt),Ot=!0,it="hsv"):be(ge.h)&&be(ge.s)&&be(ge.l)&&(je=de(ge.s),bt=de(ge.l),Be=h(ge.h,je,bt),Ot=!0,it="hsl"),ge.hasOwnProperty("a")&&(ce=ge.a)),ce=N(ce),{ok:Ot,format:ge.format||it,r:a(255,o(Be.r,0)),g:a(255,o(Be.g,0)),b:a(255,o(Be.b,0)),a:ce}}function f(ge,Be,ce){return{r:H(ge,255)*255,g:H(Be,255)*255,b:H(ce,255)*255}}function c(ge,Be,ce){ge=H(ge,255),Be=H(Be,255),ce=H(ce,255);var je=o(ge,Be,ce),rt=a(ge,Be,ce),bt,Ot,it=(je+rt)/2;if(je==rt)bt=Ot=0;else{var Ke=je-rt;switch(Ot=it>.5?Ke/(2-je-rt):Ke/(je+rt),je){case ge:bt=(Be-ce)/Ke+(Be1&&(kt-=1),kt<1/6?zt+(Mt-zt)*6*kt:kt<1/2?Mt:kt<2/3?zt+(Mt-zt)*(2/3-kt)*6:zt}if(Be===0)je=rt=bt=ce;else{var it=ce<.5?ce*(1+Be):ce+Be-ce*Be,Ke=2*ce-it;je=Ot(Ke,it,ge+1/3),rt=Ot(Ke,it,ge),bt=Ot(Ke,it,ge-1/3)}return{r:je*255,g:rt*255,b:bt*255}}function d(ge,Be,ce){ge=H(ge,255),Be=H(Be,255),ce=H(ce,255);var je=o(ge,Be,ce),rt=a(ge,Be,ce),bt,Ot,it=je,Ke=je-rt;if(Ot=je===0?0:Ke/je,je==rt)bt=0;else{switch(je){case ge:bt=(Be-ce)/Ke+(Be>1)+720)%360;--Be;)je.h=(je.h+rt)%360,bt.push(u(je));return bt}function U(ge,Be){Be=Be||6;for(var ce=u(ge).toHsv(),je=ce.h,rt=ce.s,bt=ce.v,Ot=[],it=1/Be;Be--;)Ot.push(u({h:je,s:rt,v:bt})),bt=(bt+it)%1;return Ot}u.mix=function(ge,Be,ce){ce=ce===0?0:ce||50;var je=u(ge).toRgb(),rt=u(Be).toRgb(),bt=ce/100,Ot={r:(rt.r-je.r)*bt+je.r,g:(rt.g-je.g)*bt+je.g,b:(rt.b-je.b)*bt+je.b,a:(rt.a-je.a)*bt+je.a};return u(Ot)},u.readability=function(ge,Be){var ce=u(ge),je=u(Be);return(e.max(ce.getLuminance(),je.getLuminance())+.05)/(e.min(ce.getLuminance(),je.getLuminance())+.05)},u.isReadable=function(ge,Be,ce){var je=u.readability(ge,Be),rt,bt;switch(bt=!1,rt=Ie(ce),rt.level+rt.size){case"AAsmall":case"AAAlarge":bt=je>=4.5;break;case"AAlarge":bt=je>=3;break;case"AAAsmall":bt=je>=7;break}return bt},u.mostReadable=function(ge,Be,ce){var je=null,rt=0,bt,Ot,it,Ke;ce=ce||{},Ot=ce.includeFallbackColors,it=ce.level,Ke=ce.size;for(var zt=0;ztrt&&(rt=bt,je=u(Be[zt]));return u.isReadable(ge,je,{level:it,size:Ke})||!Ot?je:(ce.includeFallbackColors=!1,u.mostReadable(ge,["#fff","#000"],ce))};var G=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=u.hexNames=W(G);function W(ge){var Be={};for(var ce in ge)ge.hasOwnProperty(ce)&&(Be[ge[ce]]=ce);return Be}function N(ge){return ge=parseFloat(ge),(isNaN(ge)||ge<0||ge>1)&&(ge=1),ge}function H(ge,Be){me(ge)&&(ge="100%");var ce=Ce(ge);return ge=a(Be,o(0,parseFloat(ge))),ce&&(ge=parseInt(ge*Be,10)/100),e.abs(ge-Be)<1e-6?1:ge%Be/parseFloat(Be)}function re(ge){return a(1,o(0,ge))}function ae(ge){return parseInt(ge,16)}function me(ge){return typeof ge=="string"&&ge.indexOf(".")!=-1&&parseFloat(ge)===1}function Ce(ge){return typeof ge=="string"&&ge.indexOf("%")!=-1}function Ee(ge){return ge.length==1?"0"+ge:""+ge}function de(ge){return ge<=1&&(ge=ge*100+"%"),ge}function te(ge){return e.round(parseFloat(ge)*255).toString(16)}function Se(ge){return ae(ge)/255}var Te=(function(){var ge="[-\\+]?\\d+%?",Be="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Be+")|(?:"+ge+")",je="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",rt="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+je),rgba:new RegExp("rgba"+rt),hsl:new RegExp("hsl"+je),hsla:new RegExp("hsla"+rt),hsv:new RegExp("hsv"+je),hsva:new RegExp("hsva"+rt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function be(ge){return!!Te.CSS_UNIT.exec(ge)}function He(ge){ge=ge.replace(t,"").replace(r,"").toLowerCase();var Be=!1;if(G[ge])ge=G[ge],Be=!0;else if(ge=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Te.rgb.exec(ge))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Te.rgba.exec(ge))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Te.hsl.exec(ge))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Te.hsla.exec(ge))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Te.hsv.exec(ge))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Te.hsva.exec(ge))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Te.hex8.exec(ge))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:Se(ce[4]),format:Be?"name":"hex8"}:(ce=Te.hex6.exec(ge))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Be?"name":"hex"}:(ce=Te.hex4.exec(ge))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:Be?"name":"hex8"}:(ce=Te.hex3.exec(ge))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Be?"name":"hex"}:!1}function Ie(ge){var Be,ce;return ge=ge||{level:"AA",size:"small"},Be=(ge.level||"AA").toUpperCase(),ce=(ge.size||"small").toLowerCase(),Be!=="AA"&&Be!=="AAA"&&(Be="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Be,size:ce}}typeof kL!="undefined"&&kL.exports?kL.exports=u:window.tinycolor=u})(Math)});var Su=we(GM=>{"use strict";var cte=Sg(),UM=Array.isArray;function Brt(e,t){var r,n;for(r=0;r{"use strict";hte.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var HM=we((knr,dte)=>{"use strict";dte.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var X1=we((Cnr,mte)=>{"use strict";var pte=HM(),vte=gc(),jB=vte({editType:"none"});jB.family.dflt=pte.HOVERFONT;jB.size.dflt=pte.HOVERFONTSIZE;mte.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:jB,grouptitlefont:vte({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var g3=we((Lnr,yte)=>{"use strict";var qrt=gc(),WM=X1().hoverlabel,jM=Su().extendFlat;yte.exports={hoverlabel:{bgcolor:jM({},WM.bgcolor,{arrayOk:!0}),bordercolor:jM({},WM.bordercolor,{arrayOk:!0}),font:qrt({arrayOk:!0,editType:"none"}),align:jM({},WM.align,{arrayOk:!0}),namelength:jM({},WM.namelength,{arrayOk:!0}),showarrow:jM({},WM.showarrow),editType:"none"}}});var Vf=we((Pnr,gte)=>{"use strict";var Nrt=gc(),Urt=g3();gte.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Nrt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Urt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var gb=we((znr,bte)=>{"use strict";var Vrt=hd(),CL={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},_te=CL.RdBu;function Grt(e,t){if(t||(t=_te),!e)return t;function r(){try{e=CL[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),xte(e)?e:t}function xte(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";_b.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];_b.defaultLine="#444";_b.lightLine="#eee";_b.background="#fff";_b.borderLine="#BEC8D9";_b.lightFraction=1e3/11});var jl=we((Rnr,wte)=>{"use strict";var wv=hd(),Wrt=ku(),jrt=Jd().isTypedArray,dd=wte.exports={},LL=Bh();dd.defaults=LL.defaults;var Xrt=dd.defaultLine=LL.defaultLine;dd.lightLine=LL.lightLine;var ZB=dd.background=LL.background;dd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};dd.rgb=function(e){return dd.tinyRGB(wv(e))};dd.opacity=function(e){return e?wv(e).getAlpha():0};dd.addOpacity=function(e,t){var r=wv(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};dd.combine=function(e,t){var r=wv(e).toRgb();if(r.a===1)return wv(e).toRgbString();var n=wv(t||ZB).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return wv(a).toRgbString()};dd.interpolate=function(e,t,r){var n=wv(e).toRgb(),i=wv(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return wv(a).toRgbString()};dd.contrast=function(e,t,r){var n=wv(e);n.getAlpha()!==1&&(n=wv(dd.combine(e,ZB)));var i=n.isDark()?t?n.lighten(t):ZB:r?n.darken(r):Xrt;return i.toString()};dd.stroke=function(e,t){var r=wv(t);e.style({stroke:dd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};dd.fill=function(e,t){var r=wv(t);e.style({fill:dd.tinyRGB(r),"fill-opacity":r.getAlpha()})};dd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var Z1=we((Dnr,Ate)=>{"use strict";Ate.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var _3=we(Tte=>{"use strict";Tte.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var kte=we(Av=>{"use strict";var YB=ku(),Ste=hd(),Mte=Su().extendFlat,Zrt=Vf(),Yrt=gb(),Krt=jl(),Jrt=Z1().DESELECTDIM,x3=qM(),Ete=_3().counter,$rt=y3().modHalf,bm=Jd().isArrayOrTypedArray,Y1=Jd().isTypedArraySpec,K1=Jd().decodeTypedArraySpec;Av.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(bm(e)?e:Y1(e)?K1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;na===!0||a===!1;i(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(i)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,n){Y1(e)&&(e=K1(e)),!YB(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}Y1(e)&&(e=K1(e)),e%1||!YB(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Y1(e)&&(e=K1(e)),Ste(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return Ste(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Yrt.get(e,r))}},angle:{coerceFunction:function(e,t,r){Y1(e)&&(e=K1(e)),e==="auto"?t.set("auto"):YB(e)?t.set($rt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||Ete(r);let a=o=>typeof o=="string"&&i.test(o);a(e)||n.arrayOk&&bm(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!Ete(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var Cte={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},Lte={};function Pte(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),Pte(n,t[r]))}}Pte(Cte,Lte);zte.exports={configAttributes:Cte,dfltConfig:Lte}});var JB=we((qnr,Ite)=>{"use strict";var KB=Kl(),Qrt=ku(),XM=[];Ite.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||XM.indexOf(e)!==-1)return;XM.push(e);var n=1e3;Qrt(t)?n=t:t==="long"&&(n=3e3);var i=KB.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(XM);function o(u){u.duration(700).style("opacity",0).each("end",function(l){var f=XM.indexOf(l);f!==-1&&XM.splice(f,1),KB.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var l=KB.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(o)});for(var f=l.append("p"),c=u.split(//g),h=0;h{"use strict";var b3=xb().dfltConfig,$B=JB(),QB=Rte.exports={};QB.log=function(){var e;if(b3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};QB.warn=function(){var e;if(b3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};QB.error=function(){var e;if(b3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var zL=we((Unr,Dte)=>{"use strict";Dte.exports=function(){}});var eq=we((Vnr,Fte)=>{"use strict";Fte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{Ote.exports=eit;function eit(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Nte=we((Hnr,qte)=>{qte.exports=tit;function tit(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var Vte=we((Wnr,Ute)=>{Ute.exports=rit;function rit(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var tq=we((jnr,Gte)=>{Gte.exports=iit;function iit(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Wte=we((Xnr,Hte)=>{Hte.exports=nit;function nit(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Xte=we((Znr,jte)=>{jte.exports=ait;function ait(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],y=t[13],b=t[14],v=t[15],C=r*s-n*o,E=r*u-i*o,A=r*l-a*o,L=n*u-i*s,x=n*l-a*s,k=i*l-a*u,S=f*y-c*p,m=f*b-h*p,P=f*v-d*p,M=c*b-h*y,O=c*v-d*y,F=h*v-d*b,U=C*F-E*O+A*M+L*P-x*m+k*S;return U?(U=1/U,e[0]=(s*F-u*O+l*M)*U,e[1]=(i*O-n*F-a*M)*U,e[2]=(y*k-b*x+v*L)*U,e[3]=(h*x-c*k-d*L)*U,e[4]=(u*P-o*F-l*m)*U,e[5]=(r*F-i*P+a*m)*U,e[6]=(b*A-p*k-v*E)*U,e[7]=(f*k-h*A+d*E)*U,e[8]=(o*O-s*P+l*S)*U,e[9]=(n*P-r*O-a*S)*U,e[10]=(p*x-y*A+v*C)*U,e[11]=(c*A-f*x-d*C)*U,e[12]=(s*m-o*M-u*S)*U,e[13]=(r*M-n*m+i*S)*U,e[14]=(y*E-p*L-b*C)*U,e[15]=(f*L-c*E+h*C)*U,e):null}});var Yte=we((Ynr,Zte)=>{Zte.exports=oit;function oit(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],y=t[13],b=t[14],v=t[15];return e[0]=s*(h*v-d*b)-c*(u*v-l*b)+y*(u*d-l*h),e[1]=-(n*(h*v-d*b)-c*(i*v-a*b)+y*(i*d-a*h)),e[2]=n*(u*v-l*b)-s*(i*v-a*b)+y*(i*l-a*u),e[3]=-(n*(u*d-l*h)-s*(i*d-a*h)+c*(i*l-a*u)),e[4]=-(o*(h*v-d*b)-f*(u*v-l*b)+p*(u*d-l*h)),e[5]=r*(h*v-d*b)-f*(i*v-a*b)+p*(i*d-a*h),e[6]=-(r*(u*v-l*b)-o*(i*v-a*b)+p*(i*l-a*u)),e[7]=r*(u*d-l*h)-o*(i*d-a*h)+f*(i*l-a*u),e[8]=o*(c*v-d*y)-f*(s*v-l*y)+p*(s*d-l*c),e[9]=-(r*(c*v-d*y)-f*(n*v-a*y)+p*(n*d-a*c)),e[10]=r*(s*v-l*y)-o*(n*v-a*y)+p*(n*l-a*s),e[11]=-(r*(s*d-l*c)-o*(n*d-a*c)+f*(n*l-a*s)),e[12]=-(o*(c*b-h*y)-f*(s*b-u*y)+p*(s*h-u*c)),e[13]=r*(c*b-h*y)-f*(n*b-i*y)+p*(n*h-i*c),e[14]=-(r*(s*b-u*y)-o*(n*b-i*y)+p*(n*u-i*s)),e[15]=r*(s*h-u*c)-o*(n*h-i*c)+f*(n*u-i*s),e}});var Jte=we((Knr,Kte)=>{Kte.exports=sit;function sit(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],y=e[14],b=e[15],v=t*o-r*a,C=t*s-n*a,E=t*u-i*a,A=r*s-n*o,L=r*u-i*o,x=n*u-i*s,k=l*p-f*d,S=l*y-c*d,m=l*b-h*d,P=f*y-c*p,M=f*b-h*p,O=c*b-h*y;return v*O-C*M+E*P+A*m-L*S+x*k}});var Qte=we((Jnr,$te)=>{$te.exports=lit;function lit(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],y=t[12],b=t[13],v=t[14],C=t[15],E=r[0],A=r[1],L=r[2],x=r[3];return e[0]=E*n+A*s+L*c+x*y,e[1]=E*i+A*u+L*h+x*b,e[2]=E*a+A*l+L*d+x*v,e[3]=E*o+A*f+L*p+x*C,E=r[4],A=r[5],L=r[6],x=r[7],e[4]=E*n+A*s+L*c+x*y,e[5]=E*i+A*u+L*h+x*b,e[6]=E*a+A*l+L*d+x*v,e[7]=E*o+A*f+L*p+x*C,E=r[8],A=r[9],L=r[10],x=r[11],e[8]=E*n+A*s+L*c+x*y,e[9]=E*i+A*u+L*h+x*b,e[10]=E*a+A*l+L*d+x*v,e[11]=E*o+A*f+L*p+x*C,E=r[12],A=r[13],L=r[14],x=r[15],e[12]=E*n+A*s+L*c+x*y,e[13]=E*i+A*u+L*h+x*b,e[14]=E*a+A*l+L*d+x*v,e[15]=E*o+A*f+L*p+x*C,e}});var tre=we(($nr,ere)=>{ere.exports=uit;function uit(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,u,l,f,c,h,d,p,y,b,v;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],u=t[2],l=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],y=t[9],b=t[10],v=t[11],e[0]=o,e[1]=s,e[2]=u,e[3]=l,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=y,e[10]=b,e[11]=v,e[12]=o*n+f*i+p*a+t[12],e[13]=s*n+c*i+y*a+t[13],e[14]=u*n+h*i+b*a+t[14],e[15]=l*n+d*i+v*a+t[15]),e}});var ire=we((Qnr,rre)=>{rre.exports=fit;function fit(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var are=we((ear,nre)=>{nre.exports=cit;function cit(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,u=Math.sin(r),l=Math.cos(r),f=1-l,c=t[0],h=t[1],d=t[2],p=t[3],y=t[4],b=t[5],v=t[6],C=t[7],E=t[8],A=t[9],L=t[10],x=t[11],k=i*i*f+l,S=a*i*f+o*u,m=o*i*f-a*u,P=i*a*f-o*u,M=a*a*f+l,O=o*a*f+i*u,F=i*o*f+a*u,U=a*o*f-i*u,G=o*o*f+l,e[0]=c*k+y*S+E*m,e[1]=h*k+b*S+A*m,e[2]=d*k+v*S+L*m,e[3]=p*k+C*S+x*m,e[4]=c*P+y*M+E*O,e[5]=h*P+b*M+A*O,e[6]=d*P+v*M+L*O,e[7]=p*P+C*M+x*O,e[8]=c*F+y*U+E*G,e[9]=h*F+b*U+A*G,e[10]=d*F+v*U+L*G,e[11]=p*F+C*U+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var sre=we((tar,ore)=>{ore.exports=hit;function hit(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+l*n,e[5]=o*i+f*n,e[6]=s*i+c*n,e[7]=u*i+h*n,e[8]=l*i-a*n,e[9]=f*i-o*n,e[10]=c*i-s*n,e[11]=h*i-u*n,e}});var ure=we((rar,lre)=>{lre.exports=dit;function dit(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-l*n,e[1]=o*i-f*n,e[2]=s*i-c*n,e[3]=u*i-h*n,e[8]=a*n+l*i,e[9]=o*n+f*i,e[10]=s*n+c*i,e[11]=u*n+h*i,e}});var cre=we((iar,fre)=>{fre.exports=pit;function pit(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+l*n,e[1]=o*i+f*n,e[2]=s*i+c*n,e[3]=u*i+h*n,e[4]=l*i-a*n,e[5]=f*i-o*n,e[6]=c*i-s*n,e[7]=h*i-u*n,e}});var dre=we((nar,hre)=>{hre.exports=vit;function vit(e,t,r){var n,i,a,o=r[0],s=r[1],u=r[2],l=Math.sqrt(o*o+s*s+u*u);return Math.abs(l)<1e-6?null:(l=1/l,o*=l,s*=l,u*=l,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+u*n,e[2]=u*o*a-s*n,e[3]=0,e[4]=o*s*a-u*n,e[5]=s*s*a+i,e[6]=u*s*a+o*n,e[7]=0,e[8]=o*u*a+s*n,e[9]=s*u*a-o*n,e[10]=u*u*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var vre=we((aar,pre)=>{pre.exports=mit;function mit(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,u=i+i,l=a+a,f=n*s,c=n*u,h=n*l,d=i*u,p=i*l,y=a*l,b=o*s,v=o*u,C=o*l;return e[0]=1-(d+y),e[1]=c+C,e[2]=h-v,e[3]=0,e[4]=c-C,e[5]=1-(f+y),e[6]=p+b,e[7]=0,e[8]=h+v,e[9]=p-b,e[10]=1-(f+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var yre=we((oar,mre)=>{mre.exports=yit;function yit(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var _re=we((sar,gre)=>{gre.exports=git;function git(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var bre=we((lar,xre)=>{xre.exports=_it;function _it(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Are=we((uar,wre)=>{wre.exports=xit;function xit(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Sre=we((far,Tre)=>{Tre.exports=bit;function bit(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ere=we((car,Mre)=>{Mre.exports=wit;function wit(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,u=i+i,l=r*o,f=n*o,c=n*s,h=i*o,d=i*s,p=i*u,y=a*o,b=a*s,v=a*u;return e[0]=1-c-p,e[1]=f+v,e[2]=h-b,e[3]=0,e[4]=f-v,e[5]=1-l-p,e[6]=d+y,e[7]=0,e[8]=h+b,e[9]=d-y,e[10]=1-l-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Cre=we((har,kre)=>{kre.exports=Ait;function Ait(e,t,r,n,i,a,o){var s=1/(r-t),u=1/(i-n),l=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*u,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*u,e[10]=(o+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*l,e[15]=0,e}});var Pre=we((dar,Lre)=>{Lre.exports=Tit;function Tit(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var Ire=we((par,zre)=>{zre.exports=Sit;function Sit(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=-((o-s)*u*.5),e[9]=(i-a)*l*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var Dre=we((mar,Rre)=>{Rre.exports=Mit;function Mit(e,t,r,n,i,a,o){var s=1/(t-r),u=1/(n-i),l=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*u,e[14]=(o+a)*l,e[15]=1,e}});var Ore=we((yar,Fre)=>{var Eit=tq();Fre.exports=kit;function kit(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p=t[0],y=t[1],b=t[2],v=n[0],C=n[1],E=n[2],A=r[0],L=r[1],x=r[2];return Math.abs(p-A)<1e-6&&Math.abs(y-L)<1e-6&&Math.abs(b-x)<1e-6?Eit(e):(f=p-A,c=y-L,h=b-x,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,i=C*h-E*c,a=E*f-v*h,o=v*c-C*f,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=c*o-h*a,u=h*i-f*o,l=f*a-c*i,d=Math.sqrt(s*s+u*u+l*l),d?(d=1/d,s*=d,u*=d,l*=d):(s=0,u=0,l=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=a,e[5]=u,e[6]=c,e[7]=0,e[8]=o,e[9]=l,e[10]=h,e[11]=0,e[12]=-(i*p+a*y+o*b),e[13]=-(s*p+u*y+l*b),e[14]=-(f*p+c*y+h*b),e[15]=1,e)}});var qre=we((gar,Bre)=>{Bre.exports=Cit;function Cit(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var rq=we((_ar,Nre)=>{Nre.exports={create:Bte(),clone:Nte(),copy:Vte(),identity:tq(),transpose:Wte(),invert:Xte(),adjoint:Yte(),determinant:Jte(),multiply:Qte(),translate:tre(),scale:ire(),rotate:are(),rotateX:sre(),rotateY:ure(),rotateZ:cre(),fromRotation:dre(),fromRotationTranslation:vre(),fromScaling:yre(),fromTranslation:_re(),fromXRotation:bre(),fromYRotation:Are(),fromZRotation:Sre(),fromQuat:Ere(),frustum:Cre(),perspective:Pre(),perspectiveFromFieldOfView:Ire(),ortho:Dre(),lookAt:Ore(),str:qre()}});var IL=we(xh=>{"use strict";var Lit=rq();xh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var Pit=Kl(),Ure=J1(),zit=IL(),Iit=rq();function Rit(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Dit(e){var t=Pit.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Vre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Fit(e,t){Gre("global",e,t)}function Gre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):Ure.warn("addStyleRule failed"):Ure.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Oit(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Vre(r)}function Bit(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),u="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(l){l.getAttribute(u)||(l.addEventListener("mouseenter",function(){var f=this.querySelector(r);f&&(f.style[o[0]]=o[1])}),l.addEventListener("mouseleave",function(){var f=this.querySelector(r);f&&(t&&this.matches(t)?f.style[o[0]]=o[1]:f.style[s[0]]=s[1])}),l.setAttribute(u,!0))})}function qit(e){var t=Wre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=Hre(n);if(i){var a=zit.convertCssMatrix(i);r=Iit.multiply(r,r,a)}}),r}function Hre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Wre(e){for(var t=[];Nit(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Nit(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Uit(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}jre.exports={getGraphDiv:Rit,isPlotDiv:Dit,removeElement:Vre,addStyleRule:Fit,addRelatedStyleRule:Gre,deleteRelatedStyleRule:Oit,setStyleOnHover:Bit,getFullTransformMatrix:qit,getElementTransformMatrix:Hre,getElementAndAncestors:Wre,equalDomRects:Uit}});var YM=we((war,Xre)=>{"use strict";Xre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Sc=we((Aar,eie)=>{"use strict";var Yre=Su().extendFlat,Vit=Sg(),Kre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Jre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Git=Kre.flags.slice().concat(["fullReplot"]),Hit=Jre.flags.slice().concat("layoutReplot");eie.exports={traces:Kre,layout:Jre,traceFlags:function(){return Zre(Git)},layoutFlags:function(){return Zre(Hit)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";iq.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};iq.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var nq=we((Sar,tie)=>{"use strict";tie.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Of=we(w3=>{"use strict";var{DATE_FORMAT_LINK:Wit,FORMAT_LINK:jit}=nq(),Xit=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Zit({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,jit,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Wit,"for details on the date formatting syntax.",Xit].join(" ")}w3.templateFormatStringDescription=Zit;w3.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>_m({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});w3.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>_m({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});w3.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});w3.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var FL=we((kar,sie)=>{"use strict";function $1(e,t){return t?t.d2l(e):e}function rie(e,t){return t?t.l2d(e):e}function Yit(e){return e.x0}function Kit(e){return e.x1}function Jit(e){return e.y0}function $it(e){return e.y1}function iie(e){return e.x0shift||0}function nie(e){return e.x1shift||0}function aie(e){return e.y0shift||0}function oie(e){return e.y1shift||0}function RL(e,t){return $1(e.x1,t)+nie(e)-$1(e.x0,t)-iie(e)}function DL(e,t,r){return $1(e.y1,r)+oie(e)-$1(e.y0,r)-aie(e)}function Qit(e,t){return Math.abs(RL(e,t))}function ent(e,t,r){return Math.abs(DL(e,t,r))}function tnt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(RL(e,t),2)+Math.pow(DL(e,t,r),2))}function rnt(e,t){return rie(($1(e.x1,t)+nie(e)+$1(e.x0,t)+iie(e))/2,t)}function int(e,t,r){return rie(($1(e.y1,r)+oie(e)+$1(e.y0,r)+aie(e))/2,r)}function nnt(e,t,r){return e.type!=="line"?void 0:DL(e,t,r)/RL(e,t)}var ant=["x0","x1","y0","y1","dy","height","ycenter"],ont=["x0","x1","y0","y1","dx","width","xcenter"];sie.exports={x0:Yit,x1:Kit,y0:Jit,y1:$it,slope:nnt,dx:RL,dy:DL,width:Qit,height:ent,length:tnt,xcenter:rnt,ycenter:int,simpleXVariables:ant,simpleYVariables:ont}});var fie=we((Car,uie)=>{"use strict";var snt=Sc().overrideAll,bb=Vf(),lie=gc(),lnt=Id().dash,Q1=Su().extendFlat,{shapeTexttemplateAttrs:unt,templatefallbackAttrs:fnt}=Of(),cnt=FL();uie.exports=snt({newshape:{visible:Q1({},bb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Q1({},bb.legend,{}),legendgroup:Q1({},bb.legendgroup,{}),legendgrouptitle:{text:Q1({},bb.legendgrouptitle.text,{}),font:lie({})},legendrank:Q1({},bb.legendrank,{}),legendwidth:Q1({},bb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Q1({},lnt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Q1({},bb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:unt({newshape:!0},{keys:Object.keys(cnt)}),texttemplatefallback:fnt({editType:"arraydraw"}),font:lie({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var hie=we((Lar,cie)=>{"use strict";var hnt=Id().dash,dnt=Su().extendFlat;cie.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:dnt({},hnt,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var OL=we((Par,die)=>{"use strict";die.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var A3=we((zar,yie)=>{"use strict";var aq=gc(),pnt=YM(),BL=Bh(),pie=fie(),vie=hie(),vnt=OL(),mie=Su().extendFlat,qL=aq({editType:"calc"});qL.family.dflt='"Open Sans", verdana, arial, sans-serif';qL.size.dflt=12;qL.color.dflt=BL.defaultLine;yie.exports={font:qL,title:{text:{valType:"string",editType:"layoutstyle"},font:aq({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:aq({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:mie(vnt({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:BL.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:BL.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:BL.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:pie.newshape,activeshape:pie.activeshape,newselection:vie.newselection,activeselection:vie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:mie({},pnt.transition,{editType:"none"})}});var gie=we(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var $l=we(Af=>{"use strict";var T3=J1(),_ie=zL(),xie=eq(),mnt=Sg(),ynt=ZM().addStyleRule,bie=Su(),gnt=Vf(),_nt=A3(),xnt=bie.extendFlat,oq=bie.extendDeepAll;Af.modules={};Af.allCategories={};Af.allTypes=[];Af.subplotsRegistry={};Af.componentsRegistry={};Af.layoutArrayContainers=[];Af.layoutArrayRegexes=[];Af.traceLayoutAttributes={};Af.localeRegistry={};Af.apiMethodRegistry={};Af.collectableSubplotTypes=null;Af.register=function(t){if(Af.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Mnt=v3().timeFormat,zie=ku(),sq=J1(),t_=y3().mod,E3=rf(),_0=E3.BADNUM,Tv=E3.ONEDAY,KM=E3.ONEHOUR,e_=E3.ONEMIN,M3=E3.ONESEC,JM=E3.EPOCHJD,Mg=$l(),Mie=v3().utcFormat,Ent=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,knt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Eie=new Date().getFullYear()-70;function Eg(e){return e&&Mg.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}bh.dateTick0=function(e,t){var r=Cnt(e,!!t);if(t<2)return r;var n=bh.dateTime2ms(r,e);return n+=Tv*(t-1),bh.ms2DateTime(n,0,e)};function Cnt(e,t){return Eg(e)?t?Mg.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Mg.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}bh.dfltRange=function(e){return Eg(e)?Mg.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};bh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var UL,VL;bh.dateTime2ms=function(e,t){if(bh.isJSDate(e)){var r=e.getTimezoneOffset()*e_,n=(e.getUTCMinutes()-e.getMinutes())*e_+(e.getUTCSeconds()-e.getSeconds())*M3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*e_;r=r-i/2+t_(n-r+i/2,i)}return e=Number(e)-r,e>=UL&&e<=VL?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=Eg(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=a&&t.slice(0,7)==="chinese",u=e.match(s?knt:Ent);if(!u)return _0;var l=u[1],f=u[3]||"1",c=Number(u[5]||1),h=Number(u[7]||0),d=Number(u[9]||0),p=Number(u[11]||0);if(a){if(l.length===2)return _0;l=Number(l);var y;try{var b=Mg.getComponentMethod("calendars","getCal")(t);if(s){var v=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=b.newDate(l,b.toMonthIndex(l,f,v),c)}else y=b.newDate(l,Number(f),c)}catch(E){return _0}return y?(y.toJD()-JM)*Tv+h*KM+d*e_+p*M3:_0}l.length===2?l=(Number(l)+2e3-Eie)%100+Eie:l=Number(l),f-=1;var C=new Date(Date.UTC(2e3,f,c,h,d));return C.setUTCFullYear(l),C.getUTCMonth()!==f||C.getUTCDate()!==c?_0:C.getTime()+p*M3};UL=bh.MIN_MS=bh.dateTime2ms("-9999");VL=bh.MAX_MS=bh.dateTime2ms("9999-12-31 23:59:59.9999");bh.isDateTime=function(e,t){return bh.dateTime2ms(e,t)!==_0};function S3(e,t){return String(e+Math.pow(10,t)).slice(1)}var NL=90*Tv,kie=3*KM,Cie=5*e_;bh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=UL&&e<=VL))return _0;t||(t=0);var n=Math.floor(t_(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,u,l,f;if(Eg(r)){var c=Math.floor(i/Tv)+JM,h=Math.floor(t_(e,Tv));try{a=Mg.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=Mie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.slice(1);else for(;a.length<10;)a="0"+a;o=t=UL+Tv&&e<=VL-Tv))return _0;var t=Math.floor(t_(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Mnt("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return Iie(n,i,a,o,s)};function Iie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+S3(t,2)+":"+S3(r,2),(n||i)&&(e+=":"+S3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+S3(i,a)}return e}bh.cleanDate=function(e,t,r){if(e===_0)return t;if(bh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Eg(r))return sq.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=bh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!bh.isDateTime(e,r))return sq.error("unrecognized date",e),t;return e};var Lnt=/%\d?f/g,Pnt=/%h/g,znt={1:"1",2:"1",3:"2",4:"2"};function Lie(e,t,r,n){e=e.replace(Lnt,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(Pnt,function(){return znt[r("%q")(i)]}),Eg(n))try{e=Mg.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Int=[59,59.9,59.99,59.999,59.9999];function Rnt(e,t){var r=t_(e+.05,Tv),n=S3(Math.floor(r/KM),2)+":"+S3(t_(Math.floor(r/e_),60),2);if(t!=="M"){zie(t)||(t=0);var i=Math.min(t_(e/M3,60),Int[t]),a=(100+i).toFixed(t).slice(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}bh.formatDate=function(e,t,r,n,i,a){if(i=Eg(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`+a.year;else return Rnt(e,r)+` +`+Lie(a.dayMonthYear,e,n,i);return Lie(t,e,n,i)};var Pie=3*Tv;bh.incrementMonth=function(e,t,r){r=Eg(r)&&r;var n=t_(e,Tv);if(e=Math.round(e-n),r)try{var i=Math.round(e/Tv)+JM,a=Mg.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-JM)*Tv+n}catch(u){sq.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+Pie);return s.setUTCMonth(s.getUTCMonth()+t)+n-Pie};bh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,u=Eg(t)&&Mg.getComponentMethod("calendars","getCal")(t),l=0;l{"use strict";Die.exports=function(t){return t}});var GL=we(kg=>{"use strict";var Dnt=ku(),Fnt=J1(),Ont=$M(),Bnt=rf().BADNUM,lq=1e-9;kg.findBin=function(e,t,r){if(Dnt(t.start))return r?Math.ceil((e-t.start)/t.size-lq)-1:Math.floor((e-t.start)/t.size+lq);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,u;for(o>=0?u=r?qnt:Nnt:u=r?Vnt:Unt,e+=o*lq*(r?-1:1)*(o>=0?1:-1);n90&&Fnt.log("Long binary search..."),n-1};function qnt(e,t){return et}function Vnt(e,t){return e>=t}kg.sorterAsc=function(e,t){return e-t};kg.sorterDes=function(e,t){return t-e};kg.distinctVals=function(e){var t=e.slice();t.sort(kg.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Bnt;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var u=t[s],l=u-o;o===void 0?(a.push(u),o=u):l>i&&(n=Math.min(n,l),a.push(u),o=u)}return{vals:a,minDiff:n}};kg.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,u=r?1:0,l=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};kg.findIndexOfMin=function(e,t){t=t||Ont;for(var r=1/0,n,i=0;i{"use strict";Fie.exports=function(t){return Object.keys(t).sort()}});var Oie=we(wh=>{"use strict";var QM=ku(),Gnt=Jd().isArrayOrTypedArray;wh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),QM(t)||(t=!1),Gnt(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var Vie=we((Uar,Uie)=>{"use strict";var Bie=y3(),uq=Bie.mod,Hnt=Bie.modHalf,e5=Math.PI,i_=2*e5;function Wnt(e){return e/180*e5}function jnt(e){return e/e5*180}function fq(e){return Math.abs(e[1]-e[0])>i_-1e-14}function qie(e,t){return Hnt(t-e,i_)}function Xnt(e,t){return Math.abs(qie(e,t))}function Nie(e,t){if(fq(t))return!0;var r,n;t[0]n&&(n+=i_);var i=uq(e,i_),a=i+i_;return i>=r&&i<=n||a>=r&&a<=n}function Znt(e,t,r,n){if(!Nie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function cq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=fq([r,n]),u,l,f,c,h;s?(u=0,l=e5,f=i_):r{"use strict";wb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};wb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};wb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};wb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};wb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};wb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var jie=we(Ab=>{"use strict";var hq=y3().mod;Ab.segmentsIntersect=Wie;function Wie(e,t,r,n,i,a,o,s){var u=r-e,l=i-e,f=o-i,c=n-t,h=a-t,d=s-a,p=u*d-f*c;if(p===0)return null;var y=(l*d-f*h)/p,b=(l*c-u*h)/p;return b<0||b>1||y<0||y>1?null:{x:e+u*y,y:t+c*y}}Ab.segmentDistance=function(t,r,n,i,a,o,s,u){if(Wie(t,r,n,i,a,o,s,u))return 0;var l=n-t,f=i-r,c=s-a,h=u-o,d=l*l+f*f,p=c*c+h*h,y=Math.min(HL(l,f,d,a-t,o-r),HL(l,f,d,s-t,u-r),HL(c,h,p,t-a,r-o),HL(c,h,p,n-a,i-o));return Math.sqrt(y)};function HL(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var u=n*t-i*e;return u*u/r}}var WL,dq,Hie;Ab.getTextLocation=function(t,r,n,i){if((t!==dq||i!==Hie)&&(WL={},dq=t,Hie=i),WL[n])return WL[n];var a=t.getPointAtLength(hq(n-i/2,r)),o=t.getPointAtLength(hq(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),u=t.getPointAtLength(hq(n,r)),l=(u.x*4+a.x+o.x)/6,f=(u.y*4+a.y+o.y)/6,c={x:l,y:f,theta:s};return WL[n]=c,c};Ab.clearLocationCache=function(){dq=null};Ab.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,u=0,l=t.getTotalLength(),f=l,c,h;function d(y){var b=t.getPointAtLength(y);y===0?c=b:y===l&&(h=b);var v=b.xa?b.x-a:0,C=b.ys?b.y-s:0;return Math.sqrt(v*v+C*C)}for(var p=d(u);p;){if(u+=p+n,u>f)return;p=d(u)}for(p=d(f);p;){if(f-=p+n,u>f)return;p=d(f)}return{min:u,max:f,len:f-u,total:l,isClosed:u===0&&f===l&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Ab.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,u=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,l=0,f=0,c=a,h,d,p;l0?c=h:f=h,l++}return d}});var jL=we(t5=>{"use strict";var Cg={};t5.throttle=function(t,r,n){var i=Cg[t],a=Date.now();if(!i){for(var o in Cg)Cg[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};t5.done=function(e){var t=Cg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};t5.clear=function(e){if(e)Xie(Cg[e]),delete Cg[e];else for(var t in Cg)t5.clear(t)};function Xie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Yie=we((War,Zie)=>{"use strict";Zie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Kie=we((jar,XL)=>{"use strict";XL.exports=pq;XL.exports.isMobile=pq;XL.exports.default=pq;var $nt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Qnt=/CrOS/,eat=/android|ipad|playbook|silk/i;function pq(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=$nt.test(t)&&!Qnt.test(t)||!!e.tablet&&eat.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var $ie=we((Xar,Jie)=>{"use strict";var tat=ku(),rat=Kie();Jie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=iat(),typeof r!="string")return!0;var n=rat({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var u=i[s];if(u.slice(0,8)==="Version/"){var l=u.slice(8).split(".")[0];if(tat(l)&&(l=+l),l>=13)return!0}}}return n};function iat(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var ene=we((Zar,Qie)=>{"use strict";var nat=Kl();Qie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=nat.select(this)}),i}});var rne=we((Yar,tne)=>{"use strict";var aat=$l();tne.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var u=s[r];if(u)return u}a=aat.localeRegistry}var l=n.split("-")[0];if(l===n)break;n=l}return r}});var vq=we((Kar,ine)=>{"use strict";ine.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";nne.exports=function(t){for(var r=lat(t)?sat:oat,n=[],i=0;i{"use strict";one.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var u=parseFloat(i).toPrecision(12);u.indexOf("e+")===-1&&(i=+u)}}return i}});var une=we((Qar,lne)=>{"use strict";var uat=ku(),fat=rf().BADNUM,cat=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;lne.exports=function(t){return typeof t=="string"&&(t=t.replace(cat,"")),uat(t)?Number(t):fat}});var ei=we((eor,wne)=>{"use strict";var r5=Kl(),hat=v3().utcFormat,dat=NB().format,vne=ku(),mne=rf(),yne=mne.FP_SAFE,pat=-yne,fne=mne.BADNUM,An=wne.exports={};An.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var cne={};An.warnBadFormat=function(e){var t=String(e);cne[t]||(cne[t]=1,An.warn('encountered bad format: "'+t+'"'))};An.noFormat=function(e){return String(e)};An.numberFormat=function(e){var t;try{t=dat(An.adjustFormat(e))}catch(r){return An.warnBadFormat(e),An.noFormat}return t};An.nestedProperty=qM();An.keyedContainer=ite();An.relativeAttr=ate();An.isPlainObject=Sg();An.toLogRange=EL();An.relinkPrivateKeys=ute();var n_=Jd();An.isArrayBuffer=n_.isArrayBuffer;An.isTypedArray=n_.isTypedArray;An.isArrayOrTypedArray=n_.isArrayOrTypedArray;An.isArray1D=n_.isArray1D;An.ensureArray=n_.ensureArray;An.concat=n_.concat;An.maxRowLength=n_.maxRowLength;An.minRowLength=n_.minRowLength;var gne=y3();An.mod=gne.mod;An.modHalf=gne.modHalf;var a_=kte();An.valObjectMeta=a_.valObjectMeta;An.coerce=a_.coerce;An.coerce2=a_.coerce2;An.coerceFont=a_.coerceFont;An.coercePattern=a_.coercePattern;An.coerceHoverinfo=a_.coerceHoverinfo;An.coerceSelectionMarkerOpacity=a_.coerceSelectionMarkerOpacity;An.validate=a_.validate;var Wv=Rie();An.dateTime2ms=Wv.dateTime2ms;An.isDateTime=Wv.isDateTime;An.ms2DateTime=Wv.ms2DateTime;An.ms2DateTimeLocal=Wv.ms2DateTimeLocal;An.cleanDate=Wv.cleanDate;An.isJSDate=Wv.isJSDate;An.formatDate=Wv.formatDate;An.incrementMonth=Wv.incrementMonth;An.dateTick0=Wv.dateTick0;An.dfltRange=Wv.dfltRange;An.findExactDates=Wv.findExactDates;An.MIN_MS=Wv.MIN_MS;An.MAX_MS=Wv.MAX_MS;var Tb=GL();An.findBin=Tb.findBin;An.sorterAsc=Tb.sorterAsc;An.sorterDes=Tb.sorterDes;An.distinctVals=Tb.distinctVals;An.roundUp=Tb.roundUp;An.sort=Tb.sort;An.findIndexOfMin=Tb.findIndexOfMin;An.sortObjectKeys=r_();var Lg=Oie();An.aggNums=Lg.aggNums;An.len=Lg.len;An.mean=Lg.mean;An.geometricMean=Lg.geometricMean;An.median=Lg.median;An.midRange=Lg.midRange;An.variance=Lg.variance;An.stdev=Lg.stdev;An.interp=Lg.interp;var wm=IL();An.init2dArray=wm.init2dArray;An.transposeRagged=wm.transposeRagged;An.dot=wm.dot;An.translationMatrix=wm.translationMatrix;An.rotationMatrix=wm.rotationMatrix;An.rotationXYMatrix=wm.rotationXYMatrix;An.apply3DTransform=wm.apply3DTransform;An.apply2DTransform=wm.apply2DTransform;An.apply2DTransform2=wm.apply2DTransform2;An.convertCssMatrix=wm.convertCssMatrix;An.inverseTransformMatrix=wm.inverseTransformMatrix;var my=Vie();An.deg2rad=my.deg2rad;An.rad2deg=my.rad2deg;An.angleDelta=my.angleDelta;An.angleDist=my.angleDist;An.isFullCircle=my.isFullCircle;An.isAngleInsideSector=my.isAngleInsideSector;An.isPtInsideSector=my.isPtInsideSector;An.pathArc=my.pathArc;An.pathSector=my.pathSector;An.pathAnnulus=my.pathAnnulus;var C3=Gie();An.isLeftAnchor=C3.isLeftAnchor;An.isCenterAnchor=C3.isCenterAnchor;An.isRightAnchor=C3.isRightAnchor;An.isTopAnchor=C3.isTopAnchor;An.isMiddleAnchor=C3.isMiddleAnchor;An.isBottomAnchor=C3.isBottomAnchor;var L3=jie();An.segmentsIntersect=L3.segmentsIntersect;An.segmentDistance=L3.segmentDistance;An.getTextLocation=L3.getTextLocation;An.clearLocationCache=L3.clearLocationCache;An.getVisibleSegment=L3.getVisibleSegment;An.findPointOnPath=L3.findPointOnPath;var KL=Su();An.extendFlat=KL.extendFlat;An.extendDeep=KL.extendDeep;An.extendDeepAll=KL.extendDeepAll;An.extendDeepNoArrays=KL.extendDeepNoArrays;var mq=J1();An.log=mq.log;An.warn=mq.warn;An.error=mq.error;var vat=_3();An.counterRegex=vat.counter;var yq=jL();An.throttle=yq.throttle;An.throttleDone=yq.done;An.clearThrottle=yq.clear;var Am=ZM();An.getGraphDiv=Am.getGraphDiv;An.isPlotDiv=Am.isPlotDiv;An.removeElement=Am.removeElement;An.addStyleRule=Am.addStyleRule;An.addRelatedStyleRule=Am.addRelatedStyleRule;An.deleteRelatedStyleRule=Am.deleteRelatedStyleRule;An.setStyleOnHover=Am.setStyleOnHover;An.getFullTransformMatrix=Am.getFullTransformMatrix;An.getElementTransformMatrix=Am.getElementTransformMatrix;An.getElementAndAncestors=Am.getElementAndAncestors;An.equalDomRects=Am.equalDomRects;An.clearResponsive=Yie();An.preserveDrawingBuffer=$ie();An.makeTraceGroups=ene();An._=rne();An.notifier=JB();An.filterUnique=vq();An.filterVisible=ane();An.pushUnique=eq();An.increment=sne();An.cleanNumber=une();An.ensureNumber=function(t){return vne(t)?(t=Number(t),t>yne||t=t?!1:vne(e)&&e>=0&&e%1===0};An.noop=zL();An.identity=$M();An.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};An.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};An.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(An.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};An.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};An.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,u,l,f;for(s=0;s=n&&(l-=n*Math.floor(l/n)),l<0?l=-1-l:l>=r&&(l=n-1-l),f+=e[l]*a[u];o[s]=f}return o};An.syncOrAsync=function(e,t,r){var n,i;function a(){return An.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};An.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};An.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};An.fillArray=function(e,t,r,n){if(n=n||An.identity,An.isArrayOrTypedArray(e))for(var i=0;igat.test(window.navigator.userAgent);var _at=/Firefox\/(\d+)\.\d+/;An.getFirefoxVersion=function(){var e=_at.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};An.isD3Selection=function(e){return e instanceof r5.selection};An.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};An.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};An.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+u};An.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var bne=/^\w*$/;An.templateString=function(e,t){var r={};return e.replace(An.TEMPLATE_STRING_REGEX,function(n,i){var a;return bne.test(i)?a=t[i]:(r[i]=r[i]||An.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var wat={max:10,count:0,name:"hovertemplate"};An.hovertemplateString=e=>gq(j1(_m({},e),{opts:wat}));var Aat={max:10,count:0,name:"texttemplate"};An.texttemplateString=e=>gq(j1(_m({},e),{opts:Aat}));var Tat=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Sat(e){var t=e.match(Tat);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Mat={max:10,count:0,name:"texttemplate",parseMultDiv:!0};An.texttemplateStringForShapes=e=>gq(j1(_m({},e),{opts:Mat}));var hne=/^[:|\|]/;function gq({data:e=[],locale:t,fallback:r,labels:n={},opts:i,template:a}){return a.replace(An.TEMPLATE_STRING_REGEX,(o,s,u)=>{let l=["xother","yother"].includes(s),f=["_xother","_yother"].includes(s),c=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),d=l||f||h||c;(f||c)&&(s=s.substring(1)),(h||c)&&(s=s.substring(0,s.length-1));let p=null,y=null;if(i.parseMultDiv){var b=Sat(s);s=b.key,p=b.op,y=b.number}let v;if(d){if(n[s]===void 0)return"";v=n[s]}else for(let L of e)if(L){if(L.hasOwnProperty(s)){v=L[s];break}if(bne.test(s)||(v=An.nestedProperty(L,s).get(!0)),v!==void 0)break}if(v===void 0){let{count:L,max:x,name:k}=i,S=r===!1?o:r;return L=YL&&o<=dne,l=s>=YL&&s<=dne;if(u&&(n=10*n+o-YL),l&&(i=10*i+s-YL),!u||!l){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var k3=2e9;An.seedPseudoRandom=function(){k3=2e9};An.pseudoRandom=function(){var e=k3;return k3=(69069*k3+1)%4294967296,Math.abs(k3-e)<429496729?An.pseudoRandom():k3/4294967296};An.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=An.extractOption(e,t,"htx","hovertext");if(An.isValidTextValue(i))return n(i);var a=An.extractOption(e,t,"tx","text");if(An.isValidTextValue(a))return n(a)};An.isValidTextValue=function(e){return e||e===0};An.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(l=1):l=0,An.strTranslate(i-l*(r+o),a-l*(n+s))+An.strScale(l)+(u?"rotate("+u+(t?"":" "+r+" "+n)+")":"")};An.setTransormAndDisplay=function(e,t){e.attr("transform",An.getTextTransform(t)),e.style("display",t.scale?null:"none")};An.ensureUniformFontSize=function(e,t){var r=An.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};An.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};An.bigFont=function(e){return Math.round(1.2*e)};var pne=An.getFirefoxVersion(),Eat=pne!==null&&pne<86;An.getPositionFromD3Event=function(){return Eat?[r5.event.layerX,r5.event.layerY]:[r5.event.offsetX,r5.event.offsetY]}});var Sne=we(()=>{"use strict";var kat=ei(),Ane={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#fff;border-color:#e0e2e5;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#f3f3f3;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(_q in Ane)Tne=_q.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),kat.addStyleRule(Tne,Ane[_q]);var Tne,_q});var xq=we((nor,Mne)=>{Mne.exports=!0});var wq=we((aor,Ene)=>{"use strict";var Cat=xq(),bq;typeof window.matchMedia=="function"?bq=!window.matchMedia("(hover: none)").matches:bq=Cat;Ene.exports=bq});var Sb=we((oor,Aq)=>{"use strict";var P3=typeof Reflect=="object"?Reflect:null,kne=P3&&typeof P3.apply=="function"?P3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},JL;P3&&typeof P3.ownKeys=="function"?JL=P3.ownKeys:Object.getOwnPropertySymbols?JL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:JL=function(t){return Object.getOwnPropertyNames(t)};function Lat(e){console&&console.warn&&console.warn(e)}var Lne=Number.isNaN||function(t){return t!==t};function qc(){qc.init.call(this)}Aq.exports=qc;Aq.exports.once=Rat;qc.EventEmitter=qc;qc.prototype._events=void 0;qc.prototype._eventsCount=0;qc.prototype._maxListeners=void 0;var Cne=10;function $L(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qc,"defaultMaxListeners",{enumerable:!0,get:function(){return Cne},set:function(e){if(typeof e!="number"||e<0||Lne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Cne=e}});qc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Lne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Pne(e){return e._maxListeners===void 0?qc.defaultMaxListeners:e._maxListeners}qc.prototype.getMaxListeners=function(){return Pne(this)};qc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")kne(u,this,r);else for(var l=u.length,f=Fne(u,l),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Lat(s)}return e}qc.prototype.addListener=function(t,r){return zne(this,t,r,!1)};qc.prototype.on=qc.prototype.addListener;qc.prototype.prependListener=function(t,r){return zne(this,t,r,!0)};function Pat(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ine(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Pat.bind(n);return i.listener=r,n.wrapFn=i,i}qc.prototype.once=function(t,r){return $L(r),this.on(t,Ine(this,t,r)),this};qc.prototype.prependOnceListener=function(t,r){return $L(r),this.prependListener(t,Ine(this,t,r)),this};qc.prototype.removeListener=function(t,r){var n,i,a,o,s;if($L(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():zat(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};qc.prototype.off=qc.prototype.removeListener;qc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function Rne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Iat(i):Fne(i,i.length)}qc.prototype.listeners=function(t){return Rne(this,t,!0)};qc.prototype.rawListeners=function(t){return Rne(this,t,!1)};qc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Dne.call(e,t)};qc.prototype.listenerCount=Dne;function Dne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}qc.prototype.eventNames=function(){return this._eventsCount>0?JL(this._events):[]};function Fne(e,t){for(var r=new Array(t),n=0;n{"use strict";var Tq=Sb().EventEmitter,Fat={init:function(e){if(e._ev instanceof Tq)return e;var t=new Tq,r=new Tq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(u){if(u.listener){if(i.removeListener(t,u.listener),!u.fired)return u.fired=!0,u.listener.apply(i,[r])}else return u.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var qne=ei(),Oat=xb().dfltConfig;function Bat(e,t){for(var r=[],n,i=0;iOat.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Pg.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Pg.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Pg.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";Vne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var D3=we(id=>{"use strict";var x0=$l(),i5=ei(),eP=Vf(),Mq=A3(),qat=Sq(),Nat=YM(),Uat=xb().configAttributes,Gne=Sc(),Tm=i5.extendDeepAll,I3=i5.isPlainObject,Vat=i5.isArrayOrTypedArray,tP=i5.nestedProperty,Gat=i5.valObjectMeta,Eq="_isSubplotObj",rP="_isLinkedToArray",Hat="_arrayAttrRegexps",Wne="_deprecated",kq=[Eq,rP,Hat,Wne];id.IS_SUBPLOT_OBJ=Eq;id.IS_LINKED_TO_ARRAY=rP;id.DEPRECATED=Wne;id.UNDERSCORE_ATTRS=kq;id.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=jat(t)}),{defs:{valObjects:Gat,metaKeys:kq.concat(["description","role","editType","impliedEdits"]),editType:{traces:Gne.traces,layout:Gne.layout},impliedEdits:{}},traces:e,layout:Xat(),frames:Zat(),animation:R3(Nat),config:R3(Uat)}};id.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(kq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!id.isValObject(o)&&I3(o)&&a!=="impliedEdits"&&id.crawl(o,t,i+1,s)}})};id.isValObject=function(e){return e&&e.valType!==void 0};id.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(u,l,f,c){r=r.slice(0,c).concat([l]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var h=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(r[c-1]==="colorbar"&&(l==="ticktext"||l==="tickvals"));h&&s(i,0,"")}function s(u,l,f){var c=u[r[l]],h=f+r[l];if(l===r.length-1)Vat(c)&&t.push(a+h);else if(n[l]){if(Array.isArray(c))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!QL(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function QL(e){return e===Math.round(e)&&e>=0}function jat(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=Tm({},eP),a=Tm({},t.attributes);id.crawl(a,function(u,l,f,c,h){tP(i,h).set(void 0),u===void 0&&tP(a,h).set(void 0)}),Tm(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,Tm(n,a),r.attributes&&Tm(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:R3(n)};if(t.layoutAttributes){var s={};Tm(s,t.layoutAttributes),o.layoutAttributes=R3(s)}return t.animatable||id.crawl(o,function(u){id.isValObject(u)&&"anim"in u&&delete u.anim}),o}function Xat(){var e={},t,r;Tm(e,Mq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var F3=ei(),Qat=Vf(),o_="templateitemname",Cq={name:{valType:"string",editType:"none"}};Cq[o_]={valType:"string",editType:"calc"};Mb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Cq.name,t[o_]=Cq[o_],t};Mb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=F3.coerce(a,{},Qat,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};Mb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);F3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};Mb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Zne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(l){var f={name:l.name,_input:l},c=f[o_]=l[o_];if(!Xne(c))return f._template=i,f;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function u(){s={},a&&(s[o]={},s[o][o_]=a)}u();function l(d,p){s[d]=p}function f(d,p){a?F3.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function c(){var d=s;return u(),d}function h(d,p){d&&f(d,p);var y=c();for(var b in y)F3.nestedProperty(e,b).set(y[b])}return{modifyBase:l,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var qh=we((dor,Yne)=>{"use strict";var n5=_3().counter;Yne.exports={idRegex:{x:n5("x","( domain)?"),y:n5("y","( domain)?")},attrRegex:n5("[xy]axis"),xAxisMatch:n5("xaxis"),yAxisMatch:n5("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var jc=we(Sv=>{"use strict";var eot=$l(),Lq=qh();Sv.id2name=function(t){if(!(typeof t!="string"||!t.match(Lq.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Sv.name2id=function(t){if(t.match(Lq.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Sv.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Lq.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].slice(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};Sv.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=Sv.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Sv.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Kne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function tot(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function rot(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Jne.exports={clearOutlineControllers:tot,clearOutline:rot}});var iP=we((mor,$ne)=>{"use strict";$ne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Rd=we(aP=>{"use strict";var nP=$l(),yor=qh().SUBPLOT_PATTERN;aP.getSubplotCalcData=function(e,t,r){var n=nP.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var iot=$l(),O3=ei();Eb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=Eb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Qne(e,o,i.cache),i.check=function(){if(a){var f=Qne(e,o,i.cache);return f.changed&&n&&i.lookupTable[f.value]!==void 0&&(i.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[f.value]})).then(i.enable,i.enable)),f.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+i;O3.isPlainObject(a)?Pq(a,t,o,n+1):t(o,i,a)}})}});var Cc=we((xor,vae)=>{"use strict";var aot=Kl(),oot=v3().timeFormatLocale,sot=NB().formatLocale,a5=ku(),lot=UB(),uot=BM().version,Hf=$l(),uae=D3(),fot=Lf(),tu=ei(),fae=jl(),iae=rf().BADNUM,Mv=jc(),cot=s_().clearOutline,hot=iP(),zq=YM(),dot=Sq(),pot=Rd().getModuleCalcData,nae=tu.relinkPrivateKeys,kb=tu._,Ol=vae.exports={};tu.extendFlat(Ol,Hf);Ol.attributes=Vf();Ol.attributes.type.values=Ol.allTypes;Ol.fontAttrs=gc();Ol.layoutAttributes=A3();var sP=rae();Ol.executeAPICommand=sP.executeAPICommand;Ol.computeAPICommandBindings=sP.computeAPICommandBindings;Ol.manageCommandObserver=sP.manageCommandObserver;Ol.hasSimpleAPICommandBindings=sP.hasSimpleAPICommandBindings;Ol.redrawText=function(e){return e=tu.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Hf.getComponentMethod("annotations","draw")(e),Hf.getComponentMethod("legend","draw")(e),Hf.getComponentMethod("colorbar","draw")(e),t(Ol.previousPromises(e)))},300)})};Ol.resize=function(e){e=tu.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||tu.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||tu.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Hf.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};Ol.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Ol.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=tu.ensureSingle(t._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:fae.defaultLine,"pointer-events":"all"}).each(function(){var l=aot.select(this);l.append("tspan").classed("js-link-to-tool",!0),l.append("tspan").classed("js-link-spacer",!0),l.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&vot(e,a),o.text(a.text()&&s.text()?" - ":"")}};function vot(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){Ol.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}Ol.sendDataToCloud=function(e,t){e.emit("plotly_beforeexport");let r=new URL(t).origin;var n=Ol.graphJson(e,!1,"keepdata","object");n.version=uot;var i=new URL(t);i.searchParams.set("origin",window.location.origin);var a=window.open(i.href,"_blank");if(!a){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(s){s.origin===r&&s.data&&s.data.type==="CHART_AUTH_SUCCESS"&&(a.postMessage({type:"chart",chart:n},r),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var mot=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],yot=["year","month","dayMonth","dayMonthYear"];Ol.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],u=e.data||[],l=e.calcdata||[],f=e._context||{},c;e._transitionData||Ol.createTransitionData(e),i._dfltTitle={plot:kb(e,"Click to enter Plot title"),subtitle:kb(e,"Click to enter Plot subtitle"),x:kb(e,"Click to enter X axis title"),y:kb(e,"Click to enter Y axis title"),colorbar:kb(e,"Click to enter Colorscale title"),annotation:kb(e,"new text")},i._traceWord=kb(e,"trace");var h=aae(e,mot);if(i._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,p=n.height;Ol.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=p),Ol.sanitizeMargins(i)}else{Ol.supplyLayoutGlobalDefaults(a,i,h);var y=!a.width||!a.height,b=i.autosize,v=f.autosizable,C=y&&(b||v);C?Ol.plotAutoSize(e,a,i):y&&Ol.sanitizeMargins(i),!b&&y&&(a.width=i.width,a.height=i.height)}i._d3locale=xot(h,i.separators),i._extraFormat=aae(e,yot),i._initialAutoSizeIsDone=!0,i._dataLength=u.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=_ot(),A=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=got(o,u),Ol.supplyDataDefaults(u,s,a,i);var x=Object.keys(A.x),k=Object.keys(A.y);if(x.length>1&&k.length>1){for(Hf.getComponentMethod("grid","sizeDefaults")(a,i),c=0;c15&&k.length>15&&i.shapes.length===0&&i.images.length===0,Ol.linkSubplots(s,i,o,n),Ol.cleanPlot(s,i,o,n);var O=!!(n._has&&n._has("cartesian")),F=!!(i._has&&i._has("cartesian")),U=O,G=F;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&cot({_fullLayout:n}),bot(s,i),nae(i,n),Hf.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var j=i._tracePreGUI,W={},N;for(N in j)W[N]="old";for(c=0;c0){var f=1-2*a;o=Math.round(f*o),s=Math.round(f*s)}}var c=Ol.layoutAttributes.width.min,h=Ol.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(n.height-s)>1;(p||d)&&(d&&(n.width=o),p&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),Ol.sanitizeMargins(n)};Ol.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Hf.componentsRegistry,a=t._basePlotModules,o,s,u,l=Hf.subplotsRegistry.cartesian;for(o in i)u=i[o],u.includeBasePlot&&u.includeBasePlot(e,t);a.length||a.push(l),t._has("cartesian")&&(Hf.getComponentMethod("grid","contentDefaults")(e,t),l.finalizeSubplots(e,t));for(var f in t._subplots)t._subplots[f].sort(tu.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var v=(r.t+r.b)/h;v>1&&(r.t/=v,r.b/=v)}var C=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,A=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:C,size:r.l+y},r:{val:E,size:r.r+y},b:{val:L,size:r.b+y},t:{val:A,size:r.t+y}},p[t]=1}if(!n._replotting)return Ol.doAutoMargin(e)}};function Aot(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Mv.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}Ol.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),cae(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=tu.extendFlat({},i),u=a.l,l=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,y=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var v=e._fullLayout._reservedMargin;for(var C in v)for(var E in v[C]){var A=v[C][E];o[E]=Math.max(o[E],A)}h.base={l:{val:0,size:u},r:{val:1,size:l},t:{val:1,size:f},b:{val:0,size:c}};for(var L in o){var x=0;for(var k in h)k!=="base"&&a5(h[k][L].size)&&(x=h[k][L].size>x?h[k][L].size:x);var S=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-S)}for(var m in h){var P=h[m].l||{},M=h[m].b||{},O=P.val,F=P.size,U=M.val,G=M.size,j=r-o.r-o.l,W=n-o.t-o.b;for(var N in h){if(a5(F)&&h[N].r){var H=h[N].r.val,re=h[N].r.size;if(H>O){var ae=(F*H+(re-j)*O)/(H-O),me=(re*(1-O)+(F-j)*(1-H))/(H-O);ae+me>u+l&&(u=ae,l=me)}}if(a5(G)&&h[N].t){var Ce=h[N].t.val,Ee=h[N].t.size;if(Ce>U){var de=(G*Ce+(Ee-W)*U)/(Ce-U),te=(Ee*(1-U)+(G-W)*(1-Ce))/(Ce-U);de+te>c+f&&(c=de,f=te)}}}}}var Se=tu.constrain(r-a.l-a.r,hae,p),Te=tu.constrain(n-a.t-a.b,dae,y),be=Math.max(0,r-Se),He=Math.max(0,n-Te);if(be){var Ie=(u+l)/be;Ie>1&&(u/=Ie,l/=Ie)}if(He){var ge=(c+f)/He;ge>1&&(c/=ge,f/=ge)}if(i.l=Math.round(u)+o.l,i.r=Math.round(l)+o.r,i.t=Math.round(f)+o.t,i.b=Math.round(c)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(Ol.didMarginChange(s,i)||Aot(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Be=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};Ol.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&Ol.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function l(h,d){if(typeof h=="function")return d?"_function_":null;if(tu.isPlainObject(h)){var p={},y;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(p[E]="_function");return}if(r==="keepdata"){if(E.slice(-3)==="src")return}else if(r==="keepstream"){if(y=h[E+"src"],typeof y=="string"&&y.indexOf(":")>0&&!tu.isPlainObject(h.stream))return}else if(r!=="keepall"&&(y=h[E+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[E]=l(h[E],d)}}),p}var b=Array.isArray(h),v=tu.isTypedArray(h);if((b||v)&&h.dtype&&h.shape){var C=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:tu.isArrayBuffer(C)?lot.encode(C):C},d)}return b?h.map(function(E){return l(E,d)}):v?tu.simpleMap(h,tu.identity):tu.isJSDate(h)?tu.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=l(h);return t&&delete d.fit,d})};if(!t&&(f.layout=l(s),i)){var c=s._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return u&&(f.frames=l(u)),a&&(f.config=l(e._context,!0)),n==="object"?f:JSON.stringify(f)};Ol.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Hf.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!n&&d===h&&s(c)}}r.runFn(p),setTimeout(p())})}function s(c){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Hf.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var l=[Ol.previousPromises,u,r.prepareFn,Ol.rehover,Ol.reselect,o],f=tu.syncOrAsync(l,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Ol.doCalcdata=function(e,t){var r=Mv.list(e),n=e._fullData,i=e._fullLayout,a,o,s,u,l=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=l,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;u--)if(L[u].enabled){a._indexToPoints=L[u]._indexToPoints;break}o&&o.calc&&(A=o.calc(e,a))}(!Array.isArray(A)||!A[0])&&(A=[{x:iae,y:iae}]),A[0].t||(A[0].t={}),A[0].trace=a,l[C]=A}}for(sae(r,n,i),s=0;s{"use strict";Cb.xmlns="http://www.w3.org/2000/xmlns/";Cb.svg="http://www.w3.org/2000/svg";Cb.xlink="http://www.w3.org/1999/xlink";Cb.svgAttrs={xmlns:Cb.svg,"xmlns:xlink":Cb.xlink}});var Nh=we((wor,mae)=>{"use strict";mae.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Wf=we(b0=>{"use strict";var Uh=Kl(),zg=ei(),Eot=zg.strTranslate,Iq=jv(),kot=Nh().LINE_SPACING,Cot=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Cot),a=Uh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var u=Vot(e.node(),n);u&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(u){e.style("display","none");var l=parseInt(e.node().style.fontSize,10),f={fontSize:l};Iot(i[2],f,function(c,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){s(),u();return}var y=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});y.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var b=d.width,v=d.height;p.attr({class:o,height:v,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",E=p.select("g");E.attr({fill:C,stroke:C});var A=E.node().getBoundingClientRect(),L=A.width,x=A.height;(L>b||x>v)&&(p.style("overflow","hidden"),A=p.node().getBoundingClientRect(),L=A.width,x=A.height);var k=+e.attr("x"),S=+e.attr("y"),m=l||e.node().getBoundingClientRect().height,P=-m/4;if(o[0]==="y")y.attr({transform:"rotate("+[-90,k,S]+")"+Eot(-L/2,P-x/2)});else if(o[0]==="l")S=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)k=0,S=P;else{var M=e.attr("text-anchor");k=k-L*(M==="middle"?.5:M==="end"?1:0),S=S+P-x/2}p.attr({x:k,y:S}),r&&r.call(e,y),u(y)})})):s(),e};var Lot=/(<|<|<)/g,Pot=/(>|>|>)/g;function zot(e){return e.replace(Lot,"\\lt ").replace(Pot,"\\gt ")}var yae=[["$","$"],["\\(","\\)"]];function Iot(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){zg.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,u=function(){return a=zg.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:yae},displayAlign:"left"})},l=function(){a=zg.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=yae},f=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+zg.randstr({},64);s=Uh.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(zot(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var C=s.select(n===2?".MathJax_SVG":".MathJax"),E=!C.empty()&&s.select("svg").node();if(!E)zg.log("There was an error in the tex syntax.",e),r();else{var A=E.getBoundingClientRect(),L;n===2?L=Uh.select("body").select("#MathJax_SVG_glyphs"):L=C.select("defs"),r(C,L,A)}s.remove()},p=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},y=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},v=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(u,f,h,d,p,b):n===3&&(l(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),y(),v()}))}var bae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Rot={sub:"0.3em",sup:"-0.6em"},Dot={sub:"-0.21em",sup:"0.42em"},gae="\u200B",_ae=["http:","https:","mailto:","",void 0,":"],wae=b0.NEWLINES=/(\r\n?|\n)/g,Dq=/(<[^<>]*>)/,Fq=/<(\/?)([^ >]*)(\s+(.*))?>/i,Fot=//i;b0.BR_TAG_ALL=//gi;var Aae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Tae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Sae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Oot=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Lb(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&lP(n)}var Bot=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(Dq),s=[],u="",l=0,f=0;fa?s.push(c.slice(0,Math.max(0,y-a))+i):s.push(c.slice(0,y));break}u=""}}return s.join("")};var qot={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Not=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function lP(e){return e.replace(Not,function(t,r){var n;return r.charAt(0)==="#"?n=Uot(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):n=qot[r],n||t})}b0.convertEntities=lP;function Uot(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function Vot(e,t){t=t.replace(wae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(Iq.svg,"tspan");Uh.select(x).attr({class:"line",dy:a*kot+"em"}),e.appendChild(x),i=x;var k=n;if(n=[{node:x}],k.length>1)for(var S=1;S.",t);return}var k=n.pop();x!==k.type&&zg.log("Start tag <"+k.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var f=Fot.test(t);f?o():(i=e,n=[{node:e}]);for(var c=t.split(Dq),h=0;h{"use strict";var Got=Kl(),fP=hd(),s5=ku(),uP=ei(),Eae=jl(),Hot=gb().isValid;function Wot(e,t,r){var n=t?uP.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(uP.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function Iae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var Dae=nq(),Xot=Dae.FORMAT_LINK,Zot=Dae.DATE_FORMAT_LINK;function Yot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Oq:Fae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Oq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Xot+"."].join(" ")}function Fae(e,t){return Oq(e,t)+[" And for dates see: "+Zot+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Oae.exports={axisHoverFormat:Yot,descriptionOnlyNumbers:Oq,descriptionWithDates:Fae}});var Dd=we((Eor,eoe)=>{"use strict";var Bae=gc(),B3=Bh(),Qae=Id().dash,qq=Su().extendFlat,qae=Lf().templatedArray,Mor=Of().templateFormatStringDescription,Nae=Xc().descriptionWithDates,Kot=rf().ONEDAY,yy=qh(),Jot=yy.HOUR_PATTERN,$ot=yy.WEEKDAY_PATTERN,Bq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Qot=qq({},Bq,{values:Bq.values.slice().concat(["sync"])});function Uae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Vae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Gae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Hae={valType:"data_array",editType:"ticks"},Wae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function jae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Xae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Zae={valType:"color",dflt:B3.defaultLine,editType:"ticks"},Yae={valType:"color",dflt:B3.lightLine,editType:"ticks"};function Kae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Jae=qq({},Qae,{editType:"ticks"}),$ae={valType:"boolean",editType:"ticks"};eoe.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:B3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Bae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[yy.idRegex.x.toString(),yy.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[yy.idRegex.x.toString(),yy.idRegex.y.toString()],editType:"calc"},rangebreaks:qae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[$ot,Jot,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Kot},editType:"calc"}),tickmode:Qot,nticks:Uae(),tick0:Vae,dtick:Gae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Hae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Wae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:jae(),tickwidth:Xae(),tickcolor:Zae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:qq({},Qae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Bae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Nae("tick label")},tickformatstops:qae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Nae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:B3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:$ae,gridcolor:Yae,gridwidth:Kae(),griddash:Jae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:B3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:B3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",yy.idRegex.x.toString(),yy.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",yy.idRegex.x.toString(),yy.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Bq,nticks:Uae("minor"),tick0:Vae,dtick:Gae,tickvals:Hae,ticks:Wae,ticklen:jae("minor"),tickwidth:Xae("minor"),tickcolor:Zae,gridcolor:Yae,gridwidth:Kae("minor"),griddash:Jae,showgrid:$ae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var cP=we((kor,ioe)=>{"use strict";var Nc=Dd(),toe=gc(),roe=Su().extendFlat,est=Sc().overrideAll;ioe.exports=est({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Nc.linecolor,outlinewidth:Nc.linewidth,bordercolor:Nc.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Nc.minor.tickmode,nticks:Nc.nticks,tick0:Nc.tick0,dtick:Nc.dtick,tickvals:Nc.tickvals,ticktext:Nc.ticktext,ticks:roe({},Nc.ticks,{dflt:""}),ticklabeloverflow:roe({},Nc.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Nc.ticklen,tickwidth:Nc.tickwidth,tickcolor:Nc.tickcolor,ticklabelstep:Nc.ticklabelstep,showticklabels:Nc.showticklabels,labelalias:Nc.labelalias,tickfont:toe({}),tickangle:Nc.tickangle,tickformat:Nc.tickformat,tickformatstops:Nc.tickformatstops,tickprefix:Nc.tickprefix,showtickprefix:Nc.showtickprefix,ticksuffix:Nc.ticksuffix,showticksuffix:Nc.showticksuffix,separatethousands:Nc.separatethousands,exponentformat:Nc.exponentformat,minexponent:Nc.minexponent,showexponent:Nc.showexponent,title:{text:{valType:"string"},font:toe({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var nc=we((Lor,aoe)=>{"use strict";var tst=cP(),rst=_3().counter,ist=r_(),noe=gb().scales,Cor=ist(noe);function hP(e){return"`"+e+"`"}aoe.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?noe[r.colorscaleDflt]:null,u=r.editTypeOverride||"",l=t?t+".":"",f,c;"colorAttr"in r?(f=r.colorAttr,c=r.colorAttr):(f={z:"z",c:"color"}[n],c="in "+hP(l+f));var h=i?" Has an effect only if "+c+" is set to a numerical array.":"",d=n+"auto",p=n+"min",y=n+"max",b=n+"mid",v=hP(l+d),C=hP(l+p),E=hP(l+y),A=C+" and "+E,L={};L[p]=L[y]=void 0;var x={};x[d]=!1;var k={};return f==="color"&&(k.color={valType:"color",arrayOk:!0,editType:u||"style"},r.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},k[p]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},k[y]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},k[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},k.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(k.showscale={valType:"boolean",dflt:o,editType:"calc"},k.colorbar=tst),r.noColorAxis||(k.coloraxis={valType:"subplotid",regex:rst("coloraxis"),dflt:null,editType:"calc"}),k}});var Uq=we((Por,ooe)=>{"use strict";var nst=Su().extendFlat,ast=nc(),Nq=gb().scales;ooe.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Nq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Nq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Nq.RdBu,editType:"calc"}},coloraxis:nst({_isSubplotObj:!0,editType:"calc"},ast("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Vq=we((zor,soe)=>{"use strict";var ost=ei();soe.exports=function(t){return ost.isPlainObject(t.colorbar)}});var Wq=we(Hq=>{"use strict";var Gq=ku(),loe=ei(),uoe=rf(),sst=uoe.ONEDAY,lst=uoe.ONEWEEK;Hq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?sst:1;if(!e)return a;if(Gq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.slice(1);return s=Gq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Hq.tick0=function(e,t,r,n){if(t==="date")return loe.cleanDate(e,loe.dateTick0(r,n%lst===0?1:0));if(!(n==="D1"||n==="D2"))return Gq(e)?Number(e):0}});var Pb=we((Ror,coe)=>{"use strict";var foe=Wq(),ust=ei().isArrayOrTypedArray,fst=Jd().isTypedArraySpec,cst=Jd().decodeTypedArraySpec;coe.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,u=o?r.minor:r,l=o?"minor.":"";function f(C){var E=s[C];return fst(E)&&(E=cst(E)),E!==void 0?E:(u._template||{})[C]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=ust(d)?"array":h?"linear":"auto",y=n(l+"tickmode",p);if(y==="auto"||y==="sync")n(l+"nticks");else if(y==="linear"){var b=u.dtick=foe.dtick(h,i);u.tick0=foe.tick0(c,i,r.calendar,b)}else if(i!=="multicategory"){var v=n(l+"tickvals");v===void 0?u.tickmode="auto":o||n("ticktext")}}});var q3=we((Dor,doe)=>{"use strict";var jq=ei(),hoe=Dd();doe.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,u=a?hoe.minor:hoe,l=a?"minor.":"",f=jq.coerce2(o,s,u,"ticklen",a?(r.ticklen||5)*.6:void 0),c=jq.coerce2(o,s,u,"tickwidth",a?r.tickwidth||1:void 0),h=jq.coerce2(o,s,u,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(l+"ticks",!a&&i.outerTicks||f||c||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Xq=we((For,poe)=>{"use strict";poe.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var $d=we((Oor,voe)=>{"use strict";var dP=ei(),hst=Lf();voe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=dP.isArrayOrTypedArray(t[i])?t[i]:[],u=r[i]=[],l=hst.arrayTemplater(r,i,a),f,c;for(f=0;f{"use strict";var Zq=ei(),dst=jl().contrast,moe=Dd(),pst=Xq(),vst=$d();yoe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Zq.isPlainObject(o)||delete r.labelalias;var s=pst(t),u=n("showticklabels");if(u){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var l=a.font||{},f=r.color,c=r.ticklabelposition||"",h=c.indexOf("inside")!==-1?dst(a.bgColor):f&&f!==moe.color.dflt?f:l.color;if(Zq.coerceFont(n,"tickfont",l,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var p=n("tickformat");vst(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:mst}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!p&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function mst(e,t){function r(i,a){return Zq.coerce(e,t,moe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var u_=we((qor,goe)=>{"use strict";var yst=Xq();goe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=yst(t),u=n("tickprefix");u&&n("showtickprefix",s);var l=n("ticksuffix",o);l&&n("showticksuffix",s)}});var Yq=we((Nor,_oe)=>{"use strict";var f_=ei(),gst=Lf(),_st=Pb(),xst=q3(),bst=l_(),wst=u_(),Ast=cP();_oe.exports=function(t,r,n){var i=gst.newContainer(r,"colorbar"),a=t.colorbar||{};function o(M,O){return f_.coerce(a,i,Ast,M,O)}var s=n.margin||{t:0,b:0,l:0,r:0},u=n.width-s.l-s.r,l=n.height-s.t-s.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?u:l):30);var d=o("lenmode");o("len",d==="fraction"?1:c?l:u);var p=o("yref"),y=o("xref"),b=p==="paper",v=y==="paper",C,E,A,L="left";c?(A="middle",L=v?"left":"right",C=v?1.02:1,E=.5):(A=b?"bottom":"top",L="center",C=.5,E=b?1.02:1),f_.coerce(a,i,{x:{valType:"number",min:v?-2:0,max:v?3:1,dflt:C}},"x"),f_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",A),o("ypad"),f_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=f_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),_st(a,i,o,"linear");var k=n.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};x.indexOf("inside")!==-1&&(S.bgColor="black"),wst(a,i,o,"linear",S),bst(a,i,o,"linear",S),xst(a,i,o,"linear",S),o("title.text",n._dfltTitle.colorbar);var m=i.showticklabels?i.tickfont:k,P=f_.extendFlat({},k,{family:m.family,size:f_.bigFont(m.size)});f_.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var nd=we((Uor,woe)=>{"use strict";var xoe=ku(),Jq=ei(),Tst=Vq(),Sst=Yq(),boe=gb().isValid,Mst=$l().traceIs;function Kq(e,t){var r=t.slice(0,t.length-1);return t?Jq.nestedProperty(e,r).get()||{}:e}woe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,u="_module"in r,l=Kq(t,o),f=Kq(r,o),c=Kq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(u){var d=n._colorAxes||{},p=i(o+"coloraxis");if(p){var y=Mst(r,"contour")&&Jq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[p];b?(b[2].push(h),b[0]!==y&&(b[0]=!1,Jq.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,r,[h]];return}}var v=l[s+"min"],C=l[s+"max"],E=xoe(v)&&xoe(C)&&v{"use strict";var Aoe=ei(),Est=Lf(),Toe=Uq(),kst=nd();Soe.exports=function(t,r){function n(c,h){return Aoe.coerce(t,r,Toe,c,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(c,h){return Aoe.coerce(a,o,Toe.coloraxis,c,h)}for(var u in i){var l=i[u];if(l[0])a=t[u]||{},o=Est.newContainer(r,u,"coloraxis"),o._name=u,kst(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Cst=ei(),Lst=yp().hasColorscale,Pst=yp().extractOpts;Eoe.exports=function(t,r){function n(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function i(f,c){var h=c.container?Cst.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Pst(h),p=d.auto;(p||d.min===void 0)&&n(h,c.min),(p||d.max===void 0)&&n(h,c.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var Coe=ku(),$q=ei(),zst=yp().extractOpts;Loe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?$q.nestedProperty(r,o).get():r,u=zst(s),l=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return $q.aggNums(Math.min,null,a)},p=function(){return $q.aggNums(Math.max,null,a)};if(f===void 0?f=d():l&&(s._colorAx&&Coe(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():l&&(s._colorAx&&Coe(c)?c=Math.max(c,p()):c=p()),l&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?y=i.colorscale.sequential:y=i.colorscale.sequentialminus,u._sync("colorscale",y)}}});var _c=we((Wor,Poe)=>{"use strict";var pP=gb(),N3=yp();Poe.exports={moduleType:"component",name:"colorscale",attributes:nc(),layoutAttributes:Uq(),supplyLayoutDefaults:Moe(),handleDefaults:nd(),crossTraceDefaults:koe(),calc:gp(),scales:pP.scales,defaultScale:pP.defaultScale,getScale:pP.get,isValidScale:pP.isValid,hasColorscale:N3.hasColorscale,extractOpts:N3.extractOpts,extractScale:N3.extractScale,flipScale:N3.flipScale,makeColorScaleFunc:N3.makeColorScaleFunc,makeColorScaleFuncFromTrace:N3.makeColorScaleFuncFromTrace}});var lc=we((jor,Ioe)=>{"use strict";var zoe=ei(),Ist=Jd().isTypedArraySpec;Ioe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return zoe.isPlainObject(t)&&(zoe.isArrayOrTypedArray(t.size)||Ist(t.size))}}});var U3=we((Xor,Roe)=>{"use strict";var Rst=ku();Roe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var u=o(s/r);return Rst(u)&&u>0?Math.max(u,a):0}}});var iv=we(_p=>{"use strict";var vP=ei();_p.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};_p.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{Ooe.exports=qst;var Qq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Bst=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function qst(e){var t=[];return e.replace(Bst,function(r,n,i){var a=n.toLowerCase();for(i=Ust(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Qq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var Vst=l5(),wl=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},nf="M0,0Z",Boe=Math.sqrt(2),c_=Math.sqrt(3),eN=Math.PI,tN=Math.cos,rN=Math.sin;Goe.exports={circle:{n:0,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?of(t,r,i):i}},square:{n:1,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.3,2);return of(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.4,2),i=wl(e*1.2,2);return of(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.8/Boe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return of(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2/c_,2),i=wl(e/2,2),a=wl(e,2);return of(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2/c_,2),i=wl(e/2,2),a=wl(e,2);return of(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2/c_,2),i=wl(e/2,2),a=wl(e,2);return of(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2/c_,2),i=wl(e/2,2),a=wl(e,2);return of(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.6,2),i=wl(e*1.2,2);return of(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.6,2),i=wl(e*1.2,2);return of(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.6,2),i=wl(e*1.2,2);return of(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.6,2),i=wl(e*1.2,2);return of(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.951,2),i=wl(e*.588,2),a=wl(-e,2),o=wl(e*-.309,2),s=wl(e*.809,2);return of(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e/2,2),a=wl(e*c_/2,2);return of(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e/2,2),a=wl(e*c_/2,2);return of(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.924,2),i=wl(e*.383,2);return of(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(af(t))return nf;var n=e*1.4,i=wl(n*.225,2),a=wl(n*.951,2),o=wl(n*.363,2),s=wl(n*.588,2),u=wl(-n,2),l=wl(n*-.309,2),f=wl(n*.118,2),c=wl(n*.809,2),h=wl(n*.382,2);return of(t,r,"M"+i+","+l+"H"+a+"L"+o+","+f+"L"+s+","+c+"L0,"+h+"L-"+s+","+c+"L-"+o+","+f+"L-"+a+","+l+"H-"+i+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.66,2),i=wl(e*.38,2),a=wl(e*.76,2);return of(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(af(t))return nf;var n=wl(e*c_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return of(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(af(t))return nf;var n=wl(e*c_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return of(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.1,2),i=wl(e*2,2),a="A "+i+","+i+" 0 0 1 ";return of(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2),i=wl(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return of(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(af(t))return nf;var n=wl(e*.7,2),i=wl(e*1.4,2);return of(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2),i=wl(e*.7,2);return of(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e/Boe,2);return of(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.3,2);return of(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.3,2),i=wl(e*.65,2);return of(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2);return of(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*.85,2);return of(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(af(t))return nf;var n=wl(e/2,2),i=wl(e,2);return of(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return of(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return of(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return of(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return of(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2);return of(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(af(t))return nf;var n=wl(e*1.4,2);return of(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2);return of(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e*2,2);return of(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e*2,2);return of(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2,2),i=wl(e,2);return of(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2,2),i=wl(e,2);return of(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e*2,2);return of(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(af(t))return nf;var n=wl(e,2),i=wl(e*2,2);return of(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2,2),i=wl(e,2);return of(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(af(t))return nf;var n=wl(e*2,2),i=wl(e,2);return of(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(af(t))return nf;var n=eN/2.5,i=2*e*tN(n),a=2*e*rN(n);return of(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(af(t))return nf;var n=eN/4,i=2*e*tN(n),a=2*e*rN(n);return of(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function af(e){return e===null}var qoe,Noe,Uoe,Voe;function of(e,t,r){if((!e||e%360===0)&&!t)return r;if(Uoe===e&&Voe===t&&qoe===r)return Noe;Uoe=e,Voe=t,qoe=r;function n(b,v){var C=tN(b),E=rN(b),A=v[0],L=v[1]+(t||0);return[A*C-L*E,A*E+L*C]}for(var i=e/180*eN,a=0,o=0,s=Vst(r),u="",l=0;l{"use strict";var pd=Kl(),uc=ei(),Gst=uc.numberFormat,Db=ku(),lN=hd(),yP=$l(),Qd=jl(),Hst=_c(),f5=uc.strTranslate,gP=Wf(),Wst=jv(),jst=Nh(),Xst=jst.LINE_SPACING,ese=Z1().DESELECTDIM,Zst=lc(),Yst=U3(),Kst=iv().appendArrayPointValue,Ul=fse.exports={};Ul.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,u=t.shadow,l=t.lineposition,f=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Qd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),f&&e.style("text-transform",iN($st(f))),u&&e.style("text-shadow",u==="auto"?gP.makeTextShadow(Qd.contrast(a)):iN(u)),l&&e.style("text-decoration-line",iN(Qst(l)))};function iN(e){return e==="none"?void 0:e}var Jst={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function $st(e){return Jst[e]}function Qst(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Ul.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Ul.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Ul.setRect=function(e,t,r,n,i){e.call(Ul.setPosition,t,r).call(Ul.setSize,n,i)};Ul.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Db(i)&&Db(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",f5(i,a));else return!1;return!0};Ul.translatePoints=function(e,t,r){e.each(function(n){var i=pd.select(this);Ul.translatePoint(n,i,t,r)})};Ul.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Ul.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,u=yP.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(l){Ul.hideOutsideRangePoint(l,pd.select(this),r,n,o,s)})})}};Ul.crispRound=function(e,t,r){return!t||!Db(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Ul.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Qd.stroke(t,n||a.color),Ul.dashLine(t,s,o)};Ul.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";pd.select(this).call(Qd.stroke,r||a.color).call(Ul.dashLine,s,o)})};Ul.dashLine=function(e,t,r){r=+r||0,t=Ul.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Ul.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function tse(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Ul.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var u=o(i.bgcolor,0,null),l=o(i.fgcolor,0,null),f=i.fgopacity,c=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Ul.pattern(e,"point",r,d,s,c,h,void 0,i.fillmode,u,l,f)}else if(a&&a.type!=="none"){var p=a.type,y="scatterfill-"+t.uid;if(n&&(y="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,v;p==="horizontal"?(b={x:a.start,y:0},v={x:a.stop,y:0}):p==="vertical"&&(b={x:0,y:a.start},v={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),v.x=t._xA.c2p(v.x===void 0?t._extremes.x.max[0].val:v.x,!0),v.y=t._yA.c2p(v.y===void 0?t._extremes.y.max[0].val:v.y,!0),e.call(nse,r,y,"linear",a.colorscale,"fill",b,v,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Ul.gradient,r,y,p,a.colorscale,"fill")}else t.fillcolor&&e.call(Qd.fill,t.fillcolor)}Ul.singleFillStyle=function(e,t){var r=pd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};tse(e,i,t,!1)};Ul.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=pd.select(this);n[0].trace&&tse(i,n[0].trace,t,r)})};var Woe=Hoe();Ul.symbolNames=[];Ul.symbolFuncs=[];Ul.symbolBackOffs=[];Ul.symbolNeedLines={};Ul.symbolNoDot={};Ul.symbolNoFill={};Ul.symbolList=[];Object.keys(Woe).forEach(function(e){var t=Woe[e],r=t.n;Ul.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Ul.symbolNames[r]=e,Ul.symbolFuncs[r]=t.f,Ul.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Ul.symbolNeedLines[r]=!0),t.noDot?Ul.symbolNoDot[r]=!0:Ul.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Ul.symbolNoFill[r]=!0)});var elt=Ul.symbolNames.length,tlt="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ul.symbolNumber=function(e){if(Db(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Ul.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=elt||e>=400?0:Math.floor(Math.max(e,0))};function rse(e,t,r,n){var i=e%100;return Ul.symbolFuncs[i](t,r,n)+(e>=200?tlt:"")}var joe=Gst("~f"),ise={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Ul.gradient=function(e,t,r,n,i,a){var o=ise[n];return nse(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function nse(e,t,r,n,i,a,o,s,u,l){var f=i.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:l}:n==="radial"&&(c={node:"radialGradient",reversed:l});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||o.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var l=Ul.symbolNumber(e.mx||o.symbol)||0;e.om=l%200>=100;var f=cN(e,r),c=fN(e,r);t.attr("d",rse(l,u,f,c))}var h=!1,d,p,y;if(e.so)y=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;y=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=n.lineScale(e.mlc):uc.isArrayOrTypedArray(s.color)?p=Qd.defaultLine:p=s.color,uc.isArrayOrTypedArray(o.color)&&(d=Qd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}let v=e.mld||(s||{}).dash;if(v&&Ul.dashLine(t,v,y),e.om)t.call(Qd.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:y)+"px");var C=o.gradient,E=e.mgt;E?h=!0:E=C&&C.type,uc.isArrayOrTypedArray(E)&&(E=E[0],ise[E]||(E=0));var A=o.pattern,L=Ul.getPatternAttr,x=A&&(L(A.shape,e.i,"")||L(A.path,e.i,""));if(E&&E!=="none"){var k=e.mgc;k?h=!0:k=C.color;var S=r.uid;h&&(S+="-"+e.i),Ul.gradient(t,i,S,E,[[0,k],[1,d]],"fill")}else if(x){var m=!1,P=A.fgcolor;!P&&a&&a.color&&(P=a.color,m=!0);var M=L(P,e.i,a&&a.color||null),O=L(A.bgcolor,e.i,null),F=A.fgopacity,U=L(A.size,e.i,8),G=L(A.solidity,e.i,.3);m=m||e.mcc||uc.isArrayOrTypedArray(A.shape)||uc.isArrayOrTypedArray(A.path)||uc.isArrayOrTypedArray(A.bgcolor)||uc.isArrayOrTypedArray(A.fgcolor)||uc.isArrayOrTypedArray(A.size)||uc.isArrayOrTypedArray(A.solidity);var j=r.uid;m&&(j+="-"+e.i),Ul.pattern(t,"point",i,j,x,U,G,e.mcc,A.fillmode,O,M,F)}else uc.isArrayOrTypedArray(d)?Qd.fill(t,d[e.i]):Qd.fill(t,d);y&&Qd.stroke(t,p)}};Ul.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Ul.tryColorscale(r,""),t.lineScale=Ul.tryColorscale(r,"line"),yP.traceIs(e,"symbols")&&(t.ms2mrc=Zst.isBubble(e)?Yst(e):function(){return(r.size||6)/2}),e.selectedpoints&&uc.extendFlat(t,Ul.makeSelectedPointStyleFns(e)),t};Ul.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,u=a.opacity,l=o.opacity,f=u!==void 0,c=l!==void 0;(uc.isArrayOrTypedArray(s)||f||c)&&(t.selectedOpacityFn=function(A){var L=A.mo===void 0?i.opacity:A.mo;return A.selected?f?u:L:c?l:ese*L});var h=i.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(A){var L=A.mcc||h;return A.selected?d||L:p||L});var y=i.size,b=a.size,v=o.size,C=b!==void 0,E=v!==void 0;return yP.traceIs(e,"symbols")&&(C||E)&&(t.selectedSizeFn=function(A){var L=A.mrc||y/2;return A.selected?C?b/2:L:E?v/2:L}),t};Ul.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,u=a.color,l=o.color;return t.selectedTextColorFn=function(f){var c=f.tc||s;return f.selected?u||c:l||(u?c:Qd.addOpacity(c,ese))},t};Ul.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ul.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Qd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,u=r.selectedSizeFn(o);a.attr("d",rse(Ul.symbolNumber(s),u,cN(o,t),fN(o,t))),o.mrc2=u}),i.length&&e.each(function(a){for(var o=pd.select(this),s=0;s0?r:0}Ul.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Ul.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var u=pd.select(this),l=a?uc.extractOption(s,t,"txt","texttemplate"):uc.extractOption(s,t,"tx","text");if(!l&&l!==0){u.remove();return}if(a){var f=t._module.formatLabels,c=f?f(s,t,o):{},h={};Kst(h,t,s.i),l=uc.texttemplateString({data:[h,s,t._meta],fallback:t.texttemplatefallback,labels:c,locale:o._d3locale,template:l})}var d=s.tp||t.textposition,p=ose(s,t),y=n?n(s):s.tc||t.textfont.color;u.call(Ul.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:p,color:y}).text(l).call(gP.convertToTspans,r).call(ase,d,p,s.mrc)})}};Ul.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ul.makeSelectedTextStyleFns(t);e.each(function(n){var i=pd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=ose(n,t);Qd.fill(i,a);var u=yP.traceIs(t,"bar-like");ase(i,o,s,n.mrc2||n.mrc,u)})}};var Xoe=.5;Ul.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=u||A>=f&&A<=u)&&(L<=c&&L>=l||L>=c&&L<=l)&&(e=[A,L])}return e}Ul.applyBackoff=use;Ul.makeTester=function(){var e=uc.ensureSingleById(pd.select("body"),"svg","js-plotly-tester",function(r){r.attr(Wst.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=uc.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Ul.tester=e,Ul.testref=t};Ul.savedBBoxes={};var aN=0,nlt=1e4;Ul.bBox=function(e,t,r){r||(r=Zoe(e));var n;if(r){if(n=Ul.savedBBoxes[r],n)return uc.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Zoe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var u=Ul.bBox(i,!1,r);return a&&(u.left+=a,u.right+=a),o&&(u.top+=o,u.bottom+=o),u}if(r+="~"+a+"~"+o+"~"+s,n=Ul.savedBBoxes[r],n)return uc.extendFlat({},n)}}var l,f;t?l=e:(f=Ul.tester.node(),l=e.cloneNode(!0),f.appendChild(l)),pd.select(l).attr("transform",null).call(gP.positionText,0,0);var c=l.getBoundingClientRect(),h=Ul.testref.node().getBoundingClientRect();t||f.removeChild(l);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return aN>=nlt&&(Ul.savedBBoxes={},aN=0),r&&(Ul.savedBBoxes[r]=d),aN++,uc.extendFlat({},d)};function Zoe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Ul.setClipUrl=function(e,t,r){e.attr("clip-path",uN(t,r))};function uN(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Ul.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Ul.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=f5(t,r),o=o.trim(),e[a]("transform",o),o};Ul.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Ul.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var alt=/\s*sc.*/;Ul.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(alt,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var olt=/translate\([^)]*\)\s*$/;Ul.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=pd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),u=(i.attr("transform")||"").match(olt);t===1&&r===1?n=[]:n=[f5(o,s),"scale("+t+","+r+")",f5(-o,-s)],u&&n.push(u),i.attr("transform",n.join(""))}})};function fN(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Ul.getMarkerStandoff=fN;var u5=Math.atan2,zb=Math.cos,G3=Math.sin;function Yoe(e,t){var r=t[0],n=t[1];return[r*zb(e)-n*G3(e),r*G3(e)+n*zb(e)]}var Koe,Joe,$oe,Qoe,oN,sN;function cN(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||uc.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,u=t._yA;if(s&&u)n=s.c2p(e.x),i=u.c2p(e.y);else return 90}if(t._geo){var l=e.lonlat[0],f=e.lonlat[1],c=t._geo.project([l,f+1e-5]),h=t._geo.project([l+1e-5,f]),d=u5(h[1]-i,h[0]-n),p=u5(c[1]-i,c[0]-n),y;if(a==="north")y=r/180*Math.PI;else if(a==="previous"){var b=l/180*Math.PI,v=f/180*Math.PI,C=Koe/180*Math.PI,E=Joe/180*Math.PI,A=C-b,L=zb(E)*G3(A),x=G3(E)*zb(v)-zb(E)*G3(v)*zb(A);y=-u5(L,x)-Math.PI,Koe=l,Joe=f}var k=Yoe(d,[zb(y),0]),S=Yoe(p,[G3(y),0]);r=u5(k[1]+S[1],k[0]+S[0])/Math.PI*180,a==="previous"&&!(sN===t.uid&&e.i===oN+1)&&(r=null)}if(a==="previous"&&!t._geo)if(sN===t.uid&&e.i===oN+1&&Db(n)&&Db(i)){var m=n-$oe,P=i-Qoe,M=t.line&&t.line.shape||"",O=M.slice(M.length-1);O==="h"&&(P=0),O==="v"&&(m=0),r+=u5(P,m)/Math.PI*180+90}else r=null}return $oe=n,Qoe=i,oN=e.i,sN=t.uid,r}Ul.getMarkerAngle=cN});var Ob=we(($or,pse)=>{"use strict";var H3=Kl(),slt=ku(),llt=Cc(),hN=$l(),Fb=ei(),cse=Fb.strTranslate,_P=Mu(),xP=jl(),W3=Wf(),hse=Z1(),ult=Nh().OPPOSITE_SIDE,dse=/ [XY][0-9]* /,dN=1.6,pN=1.6;function flt(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,u=r.avoid||{},l=r.attributes,f=r.transform,c=r.containerGroup,h=1,d=i.title,p=(d&&d.text?d.text:"").trim(),y=!1,b=d&&d.font?d.font:{},v=b.family,C=b.size,E=b.color,A=b.weight,L=b.style,x=b.variant,k=b.textcase,S=b.lineposition,m=b.shadow,P=r.subtitlePropName,M=!!P,O=r.subtitlePlaceholder,F=(i.title||{}).subtitle||{text:"",font:{}},U=(F.text||"").trim(),G=!1,j=1,W=F.font,N=W.family,H=W.size,re=W.color,ae=W.weight,me=W.style,Ce=W.variant,Ee=W.textcase,de=W.lineposition,te=W.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var Te=e._context.edits[Se];function be(Mt,kt){return Mt===void 0||kt===void 0?!1:Mt.replace(dse," % ")===kt.replace(dse," % ")}p===""?h=0:be(p,o)&&(Te||(p=""),h=.2,y=!0),M&&(U===""?j=0:be(U,O)&&(Te||(U=""),j=.2,G=!0)),r._meta?p=Fb.templateString(p,r._meta):n._meta&&(p=Fb.templateString(p,n._meta));var He=p||U||Te,Ie;c||(c=Fb.ensureSingle(n._infolayer,"g","g-"+t),Ie=n._hColorbarMoveTitle);var ge=c.selectAll("text."+t).data(He?[0]:[]);ge.enter().append("text"),ge.text(p).attr("class",t),ge.exit().remove();var Be=null,ce=t+"-subtitle",je=U||Te;if(M&&(Be=c.selectAll("text."+ce).data(je?[0]:[]),Be.enter().append("text"),Be.text(U).attr("class",ce),Be.exit().remove()),!He)return c;function rt(Mt,kt){Fb.syncOrAsync([bt,Ot],{title:Mt,subtitle:kt})}function bt(Mt){var kt=Mt.title,$e=Mt.subtitle,Re;!f&&Ie&&(f={}),f?(Re="",f.rotate&&(Re+="rotate("+[f.rotate,l.x,l.y]+")"),(f.offset||Ie)&&(Re+=cse(0,(f.offset||0)-(Ie||0)))):Re=null,kt.attr("transform",Re);function Me(Ve){if(Ve){var et=H3.select(Ve.node().parentNode).select("."+ce);if(!et.empty()){var tt=Ve.node().getBBox();if(tt.height){var Lt=tt.y+tt.height+dN*H;et.attr("y",Lt)}}}}if(kt.style("opacity",h*xP.opacity(E)).call(_P.font,{color:xP.rgb(E),size:H3.round(C,2),family:v,weight:A,style:L,variant:x,textcase:k,shadow:m,lineposition:S}).attr(l).call(W3.convertToTspans,e,Me),$e&&!$e.empty()){var oe=c.select("."+t+"-math-group"),Ne=kt.node().getBBox(),vt=oe.node()?oe.node().getBBox():void 0,lt=vt?vt.y+vt.height+dN*H:Ne.y+Ne.height+pN*H,We=Fb.extendFlat({},l,{y:lt});$e.attr("transform",Re),$e.style("opacity",j*xP.opacity(re)).call(_P.font,{color:xP.rgb(re),size:H3.round(H,2),family:N,weight:ae,style:me,variant:Ce,textcase:Ee,shadow:te,lineposition:de}).attr(We).call(W3.convertToTspans,e)}return llt.previousPromises(e)}function Ot(Mt){var kt=Mt.title,$e=H3.select(kt.node().parentNode);if(u&&u.selection&&u.side&&p){$e.attr("transform",null);var Re=ult[u.side],Me=u.side==="left"||u.side==="top"?-1:1,oe=slt(u.pad)?u.pad:2,Ne=_P.bBox($e.node()),vt={t:0,b:0,l:0,r:0},lt=e._fullLayout._reservedMargin;for(var We in lt)for(var Ve in lt[We]){var et=lt[We][Ve];vt[Ve]=Math.max(vt[Ve],et)}var tt={left:vt.l,top:vt.t,right:n.width-vt.r,bottom:n.height-vt.b},Lt=u.maxShift||Me*(tt[u.side]-Ne[u.side]),jt=0;if(Lt<0)jt=Lt;else{var or=u.offsetLeft||0,yr=u.offsetTop||0;Ne.left-=or,Ne.right-=or,Ne.top-=yr,Ne.bottom-=yr,u.selection.each(function(){var Vt=_P.bBox(this);Fb.bBoxIntersect(Ne,Vt,oe)&&(jt=Math.max(jt,Me*(Vt[u.side]-Ne[Re])+oe))}),jt=Math.min(Lt,jt),i._titleScoot=Math.abs(jt)}if(jt>0||Lt<0){var vr={left:[-jt,0],right:[jt,0],top:[0,-jt],bottom:[0,jt]}[u.side];$e.attr("transform",cse(vr[0],vr[1]))}}}ge.call(rt,Be);function it(Mt,kt){Mt.text(kt).on("mouseover.opacity",function(){H3.select(this).transition().duration(hse.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){H3.select(this).transition().duration(hse.HIDE_PLACEHOLDER).style("opacity",0)})}if(Te&&(p?ge.on(".opacity",null):(it(ge,o),y=!0),ge.call(W3.makeEditable,{gd:e}).on("edit",function(Mt){s!==void 0?hN.call("_guiRestyle",e,a,Mt,s):hN.call("_guiRelayout",e,a,Mt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(rt)}).on("input",function(Mt){this.text(Mt||" ").call(W3.positionText,l.x,l.y)}),M)){if(M&&!p){var Ke=ge.node().getBBox(),zt=Ke.y+Ke.height+pN*H;Be.attr("y",zt)}U?Be.on(".opacity",null):(it(Be,O),G=!0),Be.call(W3.makeEditable,{gd:e}).on("edit",function(Mt){hN.call("_guiRelayout",e,"title.subtitle.text",Mt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(rt)}).on("input",function(Mt){this.text(Mt||" ").call(W3.positionText,Be.attr("x"),Be.attr("y"))})}return ge.classed("js-placeholder",y),Be&&!Be.empty()&&Be.classed("js-placeholder",G),c}pse.exports={draw:flt,SUBTITLE_PADDING_EM:pN,SUBTITLE_PADDING_MATHJAX_EM:dN}});var xy=we((Qor,_se)=>{"use strict";var clt=Kl(),hlt=v3().utcFormat,Mc=ei(),dlt=Mc.numberFormat,gy=ku(),h_=Mc.cleanNumber,plt=Mc.ms2DateTime,vse=Mc.dateTime2ms,_y=Mc.ensureNumber,mse=Mc.isArrayOrTypedArray,d_=rf(),bP=d_.FP_SAFE,Sm=d_.BADNUM,vlt=d_.LOG_CLIP,mlt=d_.ONEWEEK,wP=d_.ONEDAY,AP=d_.ONEHOUR,yse=d_.ONEMIN,gse=d_.ONESEC,TP=jc(),EP=qh(),SP=EP.HOUR_PATTERN,MP=EP.WEEKDAY_PATTERN;function c5(e){return Math.pow(10,e)}function vN(e){return e!=null}_se.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(A,L){if(A>0)return Math.log(A)/Math.LN10;if(A<=0&&L&&t.range&&t.range.length===2){var x=t.range[0],k=t.range[1];return .5*(x+k-2*vlt*Math.abs(x-k))}else return Sm}function o(A,L,x,k){if((k||{}).msUTC&&gy(A))return+A;var S=vse(A,x||t.calendar);if(S===Sm)if(gy(A)){A=+A;var m=Math.floor(Mc.mod(A+.05,1)*10),P=Math.round(A-m/10);S=vse(new Date(P))+m/10}else return Sm;return S}function s(A,L,x){return plt(A,L,x||t.calendar)}function u(A){return t._categories[Math.round(A)]}function l(A){if(vN(A)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[A]!==void 0)return t._categoriesMap[A];t._categories.push(typeof A=="number"?String(A):A);var L=t._categories.length-1;return t._categoriesMap[A]=L,L}return Sm}function f(A,L){for(var x=new Array(L),k=0;kt.range[1]&&(x=!x);for(var k=x?-1:1,S=k*A,m=0,P=0;PO)m=P+1;else{m=S<(M+O)/2?P:P+1;break}}var F=t._B[m]||0;return isFinite(F)?p(A,t._m2,F):0},v=function(A){var L=t._rangebreaks.length;if(!L)return y(A,t._m,t._b);for(var x=0,k=0;kt._rangebreaks[k].pmax&&(x=k+1);return y(A,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:_y,t.l2c=t.type==="log"?c5:_y,t.l2p=b,t.p2l=v,t.c2p=t.type==="log"?function(A,L){return b(a(A,L))}:b,t.p2c=t.type==="log"?function(A){return c5(v(A))}:v,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=h_,t.c2d=t.c2r=t.l2d=t.l2r=_y,t.d2p=t.r2p=function(A){return t.l2p(h_(A))},t.p2d=t.p2r=v,t.cleanPos=_y):t.type==="log"?(t.d2r=t.d2l=function(A,L){return a(h_(A),L)},t.r2d=t.r2c=function(A){return c5(h_(A))},t.d2c=t.r2l=h_,t.c2d=t.l2r=_y,t.c2r=a,t.l2d=c5,t.d2p=function(A,L){return t.l2p(t.d2r(A,L))},t.p2d=function(A){return c5(v(A))},t.r2p=function(A){return t.l2p(h_(A))},t.p2r=v,t.cleanPos=_y):t.type==="date"?(t.d2r=t.r2d=Mc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(A,L,x){return t.l2p(o(A,0,x))},t.p2d=t.p2r=function(A,L,x){return s(v(A),L,x)},t.cleanPos=function(A){return Mc.cleanDate(A,Sm,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=l,t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=d(A);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=_y,t.r2l=d,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return u(v(A))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(A){return typeof A=="string"&&A!==""?A:_y(A)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=h(A);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=c,t.l2r=t.c2r=_y,t.r2l=h,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return u(v(A))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(A){return Array.isArray(A)||typeof A=="string"&&A!==""?A:_y(A)},t.setupMultiCategory=function(A){var L=t._traceIndices,x,k,S=t._matchGroup;if(S&&t._categories.length===0){for(var m in S)if(m!==n){var P=r[TP.id2name(m)];L=L.concat(P._traceIndices)}}var M=[[0,{}],[0,{}]],O=[];for(x=0;xP[1]&&(k[m?0:1]=x,S[1]=P[1]),S[0]>=S[1])if(L!==void 0){var M=P[0]+1;x!==void 0&&(M=Math.min(M,P[1])),k[m?0:1]=t.l2r(M)}else x!==void 0&&(k[m?1:0]=t.l2r(P[1]-1))}},t.cleanRange=function(A,L){t._cleanRange(A,L),t.limitRange(A)},t._cleanRange=function(A,L){L||(L={}),A||(A="range");var x=Mc.nestedProperty(t,A).get(),k,S;if(t.type==="date"?S=Mc.dfltRange(t.calendar):i==="y"?S=EP.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=L.dfltRange||EP.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!x||x.length!==2){Mc.nestedProperty(t,A).set(S);return}var m=x[0]===null,P=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=Mc.cleanDate(x[0],Sm,t.calendar),x[1]=Mc.cleanDate(x[1],Sm,t.calendar)),k=0;k<2;k++)if(t.type==="date"){if(!Mc.isDateTime(x[k],t.calendar)){t[A]=S;break}if(t.r2l(x[0])===t.r2l(x[1])){var M=Mc.constrain(t.r2l(x[0]),Mc.MIN_MS+1e3,Mc.MAX_MS-1e3);x[0]=t.l2r(M-1e3),x[1]=t.l2r(M+1e3);break}}else{if(!gy(x[k]))if(!(m||P)&&gy(x[1-k]))x[k]=x[1-k]*(k?10:.1);else{t[A]=S;break}if(x[k]<-bP?x[k]=-bP:x[k]>bP&&(x[k]=bP),x[0]===x[1]){var O=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=O,x[1]+=O}}},t.setScale=function(A){var L=r._size;if(t.overlaying){var x=TP.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var k=A&&t._r?"_r":"range",S=t.calendar;t.cleanRange(k);var m=t.r2l(t[k][0],S),P=t.r2l(t[k][1],S),M=i==="y";if(M?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(m-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-m),t._b=-t._m*m),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var O,F;if(t._rangebreaks=t.locateBreaks(Math.min(m,P),Math.max(m,P)),t._rangebreaks.length){for(O=0;OP&&(U=!U),U&&t._rangebreaks.reverse();var G=U?-1:1;for(t._m2=G*t._length/(Math.abs(P-m)-t._lBreaks),t._B.push(-t._m2*(M?P:m)),O=0;OS&&(S+=7,mS&&(S+=24,m=k&&m=k&&A=te.min&&(mete.max&&(te.max=Ce),Ee=!1)}Ee&&P.push({min:me,max:Ce})}};for(x=0;x{"use strict";var xse=ku(),mN=ei(),ylt=rf().BADNUM,kP=mN.isArrayOrTypedArray,glt=mN.isDateTime,_lt=mN.cleanNumber,bse=Math.round;Ase.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(kP(i)&&!i.length)return"-";if(!a&&Tlt(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function wse(e){return Math.max(1,(e-1)/1e3)}function Alt(e,t){for(var r=e.length,n=wse(r),i=0,a=0,o={},s=0;si*2}function Tlt(e){return kP(e[0])&&kP(e[1])}});var Mm=we((tsr,Pse)=>{"use strict";var Slt=Kl(),Ese=ku(),p_=ei(),CP=rf().FP_SAFE,Mlt=$l(),Elt=Mu(),kse=jc(),klt=kse.getFromId,Clt=kse.isLinked;Pse.exports={applyAutorangeOptions:Lse,getAutoRange:yN,makePadFn:gN,doAutoRange:Plt,findExtremes:zlt,concatExtremes:bN};function yN(e,t){var r,n,i=[],a=e._fullLayout,o=gN(a,t,0),s=gN(a,t,1),u=bN(e,t),l=u.min,f=u.max;if(l.length===0||f.length===0)return p_.simpleMap(t.range,t.r2l);var c=l[0].val,h=f[0].val;for(r=1;r0&&(P=E-o(x)-s(k),P>A?M/P>L&&(S=x,m=k,L=M/P):M/E>L&&(S={val:x.val,nopad:1},m={val:k.val,nopad:1},L=M/E));function O(W,N){return Math.max(W,s(N))}if(c===h){var F=c-1,U=c+1;if(v)if(c===0)i=[0,1];else{var G=(c>0?f:l).reduce(O,0),j=c/(1-Math.min(.5,G/E));i=c>0?[0,j]:[j,0]}else C?i=[Math.max(0,F),Math.max(1,U)]:i=[F,U]}else v?(S.val>=0&&(S={val:0,nopad:1}),m.val<=0&&(m={val:0,nopad:1})):C&&(S.val-L*o(S)<0&&(S={val:0,nopad:1}),m.val<=0&&(m={val:1,nopad:1})),L=(m.val-S.val-Tse(t,x.val,k.val))/(E-o(S)-s(m)),i=[S.val-L*o(S),m.val+L*s(m)];return i=Lse(i,t),t.limitRange&&t.limitRange(),p&&i.reverse(),p_.simpleMap(i,t.l2r||Number)}function Tse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),k=A(r.vpadplus||r.vpad),S=A(r.vpadminus||r.vpad);if(!l){if(C=1/0,E=-1/0,u)for(c=0;c0&&(C=h),h>E&&h-CP&&(C=h),h>E&&h=M;c--)P(c);return{min:n,max:i,opts:r}}function _N(e,t,r,n){Cse(e,t,r,n,Ilt)}function xN(e,t,r,n){Cse(e,t,r,n,Rlt)}function Cse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,u=0;u=r&&(l.extrapad||!o)){s=!1;break}else i(t,l.val)&&l.pad<=r&&(o||!l.extrapad)&&(e.splice(u,1),u--)}if(s){var f=a&&t===0;e.push({val:t,pad:f?0:r,extrapad:f?!1:o})}}function Mse(e){return Ese(e)&&Math.abs(e)=t}function Dlt(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&LP(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&LP(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Flt(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&LP(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&LP(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function LP(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=u&&(a=u,r=u),o<=u&&(o=u,n=u)}}return r=Dlt(r,t),n=Flt(n,t),[r,n]}});var wu=we((isr,ele)=>{"use strict";var w0=Kl(),Vh=ku(),X3=Cc(),d5=$l(),Du=ei(),Z3=Du.strTranslate,Bb=Wf(),Olt=Ob(),p5=jl(),Xv=Mu(),Blt=Dd(),zse=Wq(),rsr=qh(),ep=rf(),qlt=ep.ONEMAXYEAR,IP=ep.ONEAVGYEAR,RP=ep.ONEMINYEAR,Nlt=ep.ONEMAXQUARTER,SN=ep.ONEAVGQUARTER,DP=ep.ONEMINQUARTER,Ult=ep.ONEMAXMONTH,Y3=ep.ONEAVGMONTH,FP=ep.ONEMINMONTH,Zv=ep.ONEWEEK,Op=ep.ONEDAY,v_=Op/2,wy=ep.ONEHOUR,v5=ep.ONEMIN,OP=ep.ONESEC,Vlt=ep.ONEMILLI,Glt=ep.ONEMICROSEC,qb=ep.MINUS_SIGN,qP=ep.BADNUM,MN={K:"zeroline"},EN={K:"gridline",L:"path"},kN={K:"minor-gridline",L:"path"},Gse={K:"tick",L:"path"},Ise={K:"tick",L:"text"},Rse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},NP=Nh(),h5=NP.MID_SHIFT,Nb=NP.CAP_SHIFT,m5=NP.LINE_SPACING,Hlt=NP.OPPOSITE_SIDE,BP=3,il=ele.exports={};il.setConvert=xy();var Wlt=j3(),Ay=jc(),jlt=Ay.idSort,Xlt=Ay.isLinked;il.id2name=Ay.id2name;il.name2id=Ay.name2id;il.cleanId=Ay.cleanId;il.list=Ay.list;il.listIds=Ay.listIds;il.getFromId=Ay.getFromId;il.getFromTrace=Ay.getFromTrace;var Hse=Mm();il.getAutoRange=Hse.getAutoRange;il.findExtremes=Hse.findExtremes;var Zlt=1e-4;function zN(e){var t=(e[1]-e[0])*Zlt;return[e[0]-t,e[1]+t]}il.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],u=n+"ref",l={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(f){return f+" domain"})),l[u]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Du.coerce(e,t,l,u)};il.coerceRefArray=function(e,t,r,n,i,a,o){let s=n.charAt(n.length-1);var u=r._fullLayout._subplots[s+"axis"];let l=n+"ref";var f=e[l];i||(i=u[0]||(typeof a=="string"?a:a[0])),u=u.concat(u.map(h=>h+" domain")),u=u.concat(a||[]),f.length>o?(Du.warn("Array attribute "+l+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};il.saveRangeInitial=function(e,t){for(var r=il.list(e,"",!0),n=!1,i=0;ic*.3||l(n)||l(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.slice(1));a.exactYears>o&&s%12===0?e=il.tickIncrement(e,"M6","reverse")+Op*1.5:a.exactMonths>o?e=il.tickIncrement(e,"M1","reverse")+Op*15.5:e-=v_;var u=il.tickIncrement(e,r);if(u<=n)return u}return e}il.prepMinorTicks=function(e,t,r){var c,h;if(!((c=t.minor)!=null&&c.dtick)){delete e.dtick;var n=t.dtick&&Vh(t._tmin),i;if(n){var a=il.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Du.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Du.simpleMap(i,t.l2r),e._isMinor=!0,il.prepTicks(e,r),n){var s=Vh(t.dtick),u=Vh(e.dtick),l=s?t.dtick:+t.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);s&&u?wN(l,f)?l===2*Zv&&f===2*Op&&(e.dtick=Zv):l===2*Zv&&f===3*Op?e.dtick=Zv:l===Zv&&!(t._input.minor||{}).nticks?e.dtick=Op:Ose(l/f,2.5)?e.dtick=l/2:e.dtick=l:String(t.dtick).charAt(0)==="M"?u?e.dtick="M1":wN(l,f)?l>=12&&f===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?wN(l,f)||(e.dtick=Ose(l/f,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((h=t.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=t.tick0)};function wN(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function Ose(e,t){return Math.abs(e/t-1)<.001}il.prepTicks=function(e,t){var r=Du.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Du.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Du.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,il.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,u=e[o].value,l=Math.abs(u-s),f=r||l,c=0;f>=RP?l>=RP&&l<=qlt?c=l:c=IP:r===SN&&f>=DP?l>=DP&&l<=Nlt?c=l:c=SN:f>=FP?l>=FP&&l<=Ult?c=l:c=Y3:r===Zv&&f>=Zv?c=Zv:f>=Op?c=Op:r===v_&&f>=v_?c=v_:r===wy&&f>=wy&&(c=wy);var h;c>=l&&(c=l,h=!0);var d=i+c;if(t.rangebreaks&&c>0){for(var p=84,y=0,b=0;bZv&&(c=l)}(c>0||n===0)&&(e[n].periodX=i+c/2)}}il.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],u=!t.ticklabelindex||Du.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],l=Du.simpleMap(t.range,t.r2l,void 0,void 0,r),f=l[1]=(A?0:1);L--){var x=!L;L?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):A&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var k=L?t:Du.extendFlat({},t,A?t.minor:{minor:{}});if(x?il.prepMinorTicks(k,t,r):il.prepTicks(k,r),k.tickmode==="array"){L?(b=[],p=Bse(t,!x)):(v=[],y=Bse(t,!x));continue}if(k.tickmode==="sync"){b=[],p=eut(t);continue}var S=zN(l),m=S[0],P=S[1],M=Vh(k.dtick),O=n==="log"&&!(M||k.dtick.charAt(0)==="L"),F=il.tickFirst(k,r);if(L){if(t._tmin=F,F=P:G<=P;G=il.tickIncrement(G,N,f,i)){if(L&&j++,k.rangebreaks&&!f){if(G=h)break}if(b.length>d||G===U)break;U=G;var H={value:G};L?(O&&G!==(G|0)&&(H.simpleLabel=!0),a>1&&j%a&&(H.skipLabel=!0),b.push(H)):(H.minor=!0,v.push(H))}}if(!v||v.length<3)u=!1;else{var re=(v[2].value-v[1].value)*(s?-1:1);Sut(re,t.tickformat)||(u=!1,v=v.slice(1))}if(!u)C=b;else{var ae=b.concat(v);o&&b.length&&(ae=ae.slice(1)),ae=ae.sort(function(Mt,kt){return Mt.value-kt.value}).filter(function(Mt,kt,$e){return kt===0||Mt.value!==$e[kt-1].value});var me=ae.map(function(Mt,kt){return Mt.minor===void 0&&!Mt.skipLabel?kt:null}).filter(function(Mt){return Mt!==null});me.forEach(function(Mt){u.map(function(kt){var $e=Mt+kt;$e>=0&&$e-1;Ie--){if(b[Ie].drop){b.splice(Ie,1);continue}b[Ie].value=TN(b[Ie].value,t);var je=t.c2p(b[Ie].value);(ge?ce>je-Be:ceh||Reh&&($e.periodX=h),Rei&&hIP)t/=IP,n=i(10),e.dtick="M"+12*by(t,n,PP);else if(a>Y3)t/=Y3,e.dtick="M"+by(t,1,qse);else if(a>Op){if(e.dtick=by(t,Op,e._hasDayOfWeekBreaks?[1,2,7,14]:tut),!r){var o=il.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Du.dateTick0(e.calendar,2):e.tick0=Du.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>wy?e.dtick=by(t,wy,qse):a>v5?e.dtick=by(t,v5,Nse):a>OP?e.dtick=by(t,OP,Nse):(n=i(10),e.dtick=by(t,n,PP))}else if(e.type==="log"){e.tick0=0;var u=Du.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var l=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/l,n=i(10),e.dtick="L"+by(t,n,PP)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):FN(e)?(e.tick0=0,n=1,e.dtick=by(t,n,rut)):(e.tick0=0,n=i(10),e.dtick=by(t,n,PP));if(e.dtick===0&&(e.dtick=1),!Vh(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Zse(e){var t=e.dtick;if(e._tickexponent=0,!Vh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=Op&&i<=10||t>=Op*15)e._tickround="d";else if(t>=v5&&i<=16||t>=wy)e._tickround="M";else if(t>=OP&&i<=19||t>=v5)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Vh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Vh(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),u=Math.floor(Math.log(s)/Math.LN10+.01),l=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>l&&(K3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!IN(u)||K3(e.exponentformat)&&e.exponentformat==="SI extended"&&!RN(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}il.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(Vh(t))return Du.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.slice(1));if(a==="M")return Du.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Xse:jse,u=e+i*.01,l=Du.roundUp(Du.mod(u,1),s,r);return Math.floor(u)+Math.log(w0.round(Math.pow(10,l),1))/Math.LN10}throw"unrecognized dtick "+String(t)};il.tickFirst=function(e,t){var r=e.r2l||Number,n=Du.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&v<=e._length?b:null};if(a&&Du.isArrayOrTypedArray(e.ticktext)){var c=Du.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(l=0;l"+s;else{var l=g5(e),f=e._trueSide||e.side;(!l&&f==="top"||l&&f==="bottom")&&(o+="
")}t.text=o}function nut(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,u=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&u!=="L"&&(a="L3",u="L"),s||u==="L")t.text=y5(Math.pow(10,o),e,i,n);else if(Vh(a)||u==="D"&&(e.minorloglabels==="complete"||Du.mod(o+.01,1)<.1)){var l;e.minorloglabels==="complete"&&!(Du.mod(o+.01,1)<.1)&&(l=!0,t.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||K3(p)&&p!=="SI extended"&&IN(h)||K3(p)&&p==="SI extended"&&RN(h)?(t.text=c[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":qb)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=c[0]+p+(h>0?"+":qb)+d:(t.text=y5(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(u==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Du.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var y=String(t.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function aut(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function out(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function sut(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=y5(t.x,e,i,n)}function lut(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=uut(a);if(o[1]>=100)t.text=y5(Du.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=qb+t.text)}}}else t.text=y5(t.x,e,i,n)}function uut(e){function t(s,u){return Math.abs(s-u)<=1e-6}function r(s,u){return t(u,0)?s:r(u,s%u)}function n(s){for(var u=1;!t(Math.round(s*u)/u,s);)u*=10;return u}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var Kse=["f","p","n","\u03BC","m","","k","M","G","T"],fut=["q","r","y","z","a",...Kse,"P","E","Z","Y","R","Q"],K3=e=>["SI","SI extended","B"].includes(e);function IN(e){return e>14||e<-15}function RN(e){return e>32||e<-30}function cut(e,t){return K3(t)?!!(t==="SI extended"&&RN(e)||t!=="SI extended"&&IN(e)):!1}function y5(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,u=il.getTickFormat(t),l=t.separatethousands;if(n){var f={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Vh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Zse(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,qb);var c=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+p+"":o==="B"&&s===9?e+="B":K3(o)&&(e+=o==="SI extended"?fut[s/3+10]:Kse[s/3+5])}return i?qb+e:e}il.getTickFormat=function(e){var t;function r(u){return typeof u!="string"?u:Number(u.replace("M",""))*Y3}function n(u,l){var f=["L","D"];if(typeof u==typeof l){if(typeof u=="number")return u-l;var c=f.indexOf(u.charAt(0)),h=f.indexOf(l.charAt(0));return c===h?Number(u.replace(/(L|D)/g,""))-Number(l.replace(/(L|D)/g,"")):c-h}else return typeof u=="number"?1:-1}function i(u,l,f){var c=f||function(p){return p},h=l[0],d=l[1];return(!h&&typeof h!="number"||c(h)<=c(u))&&(!d&&typeof d!="number"||c(d)>=c(u))}function a(u,l){var f=l[0]===null,c=l[1]===null,h=n(u,l[0])>=0,d=n(u,l[1])<=0;return(f||h)&&(c||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(f,1).shift())}});var s={false:{left:0,right:0}};return Du.syncOrAsync(i.map(function(u){return function(){if(u){var l=il.getFromId(e,u);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var f=il.drawOne(e,l,r);return l._shiftPusher&&PN(l,l._fullDepth||0,s,!0),l._r=l.range.slice(),l._rl=Du.simpleMap(l._r,l.r2l),f}}}))};il.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var u=e._fullLayout,l=t._id,f=l.charAt(0),c=il.counterLetter(l),h=u._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),PN(t,p,n,!0),PN(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Tut(t,n));var y=h[f+"axislayer"],b=t._mainLinePosition,v=b+=t._shift,C=t._mainMirrorPosition,E=t._vals=il.calcTicks(t),A=[t.mirror,v,C].join("_");for(a=0;a0?$e.bottom-Mt:0,kt))));var Ne=0,vt=0;if(t._shiftPusher&&(Ne=Math.max(kt,$e.height>0?Ke==="l"?Mt-$e.left:$e.right-Mt:0),t.title.text!==u._dfltTitle[f]&&(vt=(t._titleStandoff||0)+(t._titleScoot||0),Ke==="l"&&(vt+=Vse(t))),t._fullDepth=Math.max(Ne,vt)),t.automargin){Re={x:0,y:0,r:0,l:0,t:0,b:0};var lt=[0,1],We=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(Ke==="b"?Re[Ke]=t._depth:(Re[Ke]=t._depth=Math.max($e.width>0?Mt-$e.top:0,kt),lt.reverse()),$e.width>0){var Ve=$e.right-(t._offset+t._length);Ve>0&&(Re.xr=1,Re.r=Ve);var et=t._offset-$e.left;et>0&&(Re.xl=0,Re.l=et)}}else if(Ke==="l"?(t._depth=Math.max($e.height>0?Mt-$e.left:0,kt),Re[Ke]=t._depth-We):(t._depth=Math.max($e.height>0?$e.right-Mt:0,kt),Re[Ke]=t._depth+We,lt.reverse()),$e.height>0){var tt=$e.bottom-(t._offset+t._length);tt>0&&(Re.yb=0,Re.b=tt);var Lt=t._offset-$e.top;Lt>0&&(Re.yt=1,Re.t=Lt)}Re[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[lt[0]],t.title.text!==u._dfltTitle[f]&&(Re[Ke]+=Vse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Me={x:0,y:0,r:0,l:0,t:0,b:0},Me[zt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Me[zt]+=kt),t.mirror===!0||t.mirror==="ticks"?Me[c]=t._anchorAxis.domain[lt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Me[c]=[t._counterDomainMin,t._counterDomainMax][lt[1]]))}it&&(oe=d5.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Use(Re,t.automargin),Use(Me,t.automargin)),X3.autoMargin(e,DN(t),Re),X3.autoMargin(e,$se(t),Me),X3.autoMargin(e,Qse(t),oe)}),Du.syncOrAsync(bt)}};function Use(e,t){if(e){var r=Object.keys(Rse).reduce(function(n,i){return t.indexOf(i)!==-1&&Rse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function hut(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Du.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!s;if(r){var l=o?-1:1;r=r*l}if(n){var f=e.side,c=s&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(h){return Z3(i+e._offset+e.l2p(CN(h))+r,a+n)}:function(h){return Z3(a+n,i+e._offset+e.l2p(CN(h))+r)}};function CN(e){return e.periodX!==void 0?e.periodX:e.x}function mut(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(p){return t.indexOf(p)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),u=n("inside"),l=r!=="boundaries"&&(s||a||i||o);if(!l&&!u)return[0,0];var f=e.side,c=l?(e.tickwidth||0)/2:0,h=BP,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(c+=d*Nb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=BP),u&&f==="top"&&(h-=d*(1-Nb)),(a||i)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[l?c:0,u?h:0]}il.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};il.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(F){return n.indexOf(F)!==-1},o=a("top"),s=a("left"),u=a("right"),l=a("bottom"),f=i!=="boundaries"&&(l||s||o||u),c=a("inside"),h=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&i!=="boundaries",d=0,p=0,y=h?e.ticklen:0;if(c?y*=-1:f&&(y=0),h&&(d+=y,r)){var b=Du.deg2rad(r);d=y*Math.cos(b)+1,p=y*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var v={labelStandoff:d,labelShift:p},C,E,A,L,x=0,k=e.side,S=e._id.charAt(0),m=e.tickangle,P;if(S==="x")P=!c&&k==="bottom"||c&&k==="top",L=P?1:-1,c&&(L*=-1),C=p*L,E=t+d*L,A=P?1:-.2,Math.abs(m)===90&&(c?A+=h5:m===-90&&k==="bottom"?A=Nb:m===90&&k==="top"?A=h5:A=.5,x=h5/2*(m/90)),v.xFn=function(F){return F.dx+C+x*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*A},v.anchorFn=function(F,U){if(f){if(s)return"end";if(u)return"start"}return!Vh(U)||U===0||U===180?"middle":U*L<0!==c?"end":"start"},v.heightFn=function(F,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==c?-G:0};else if(S==="y"){if(P=!c&&k==="left"||c&&k==="right",L=P?1:-1,c&&(L*=-1),C=d,E=p*L,A=0,!c&&Math.abs(m)===90&&(m===-90&&k==="left"||m===90&&k==="right"?A=Nb:A=.5),c){var M=Vh(m)?+m:0;if(M!==0){var O=Du.deg2rad(M);x=Math.abs(Math.sin(O))*Nb*L,A=0}}v.xFn=function(F){return F.dx+t-(C+F.fontSize*A)*L+x*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*h5},v.anchorFn=function(F,U){return Vh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},v.heightFn=function(F,U,G){return e.side==="right"&&(U*=-1),U<-30?-G:U<30?-.5*G:0}}return v};function UP(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}il.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,UP);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return p5.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xv.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),VP(t,[Gse]),a.attr("transform",r.transFn)};il.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(v){return v.minor}):[],o=t.showgrid?r.vals.filter(function(v){return!v.minor}):[],s=r.counterAxis;if(s&&il.shouldShowZeroLine(e,t,s))for(var u=t.tickmode==="array",l=0;l=0;p--){var y=p?h:d;if(y){var b=y.selectAll("path."+n).data(p?o:a,UP);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(v){return p5.stroke(w0.select(this),v.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(v){return Xv.dashStyle(v.minor?t.minor.griddash:t.griddash,v.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(v){return(v.minor?c:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}VP(t,[EN,kN])}};il.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=il.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return jlt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(p5.stroke,t.zerolinecolor||p5.defaultLine).style("stroke-width",Xv.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),VP(t,[MN])};il.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(H){return H.text}),u=r.labelFns,l=r.secondary?0:t.tickangle,f=(t._prevTickAngles||{})[o],c=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],UP),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var re=w0.select(this),ae=e._promises.length;re.call(Bb.positionText,u.xFn(H),u.yFn(H)).call(Xv.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(Bb.convertToTspans,e),e._promises[ae]?h.push(e._promises.pop().then(function(){d(re,l)})):d(re,l)}),VP(t,[Ise]),c.exit().remove(),r.repositionOnUpdate&&c.each(function(H){w0.select(this).select("text").call(Bb.positionText,u.xFn(H),u.yFn(H))});function d(H,re){H.each(function(ae){var me=w0.select(this),Ce=me.select(".text-math-group"),Ee=u.anchorFn(ae,re),de=r.transFn.call(me.node(),ae)+(Vh(re)&&+re!=0?" rotate("+re+","+u.xFn(ae)+","+(u.yFn(ae)-ae.fontSize/2)+")":""),te=Bb.lineCount(me),Se=m5*ae.fontSize,Te=u.heightFn(ae,Vh(re)?+re:0,(te-1)*Se);if(Te&&(de+=Z3(0,Te)),Ce.empty()){var be=me.select("text");be.attr({transform:de,"text-anchor":Ee}),be.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var He=Xv.bBox(Ce.node()).width,Ie=He*{end:-.5,start:.5}[Ee];Ce.attr("transform",de+Z3(Ie,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var re=H.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",me=0,Ce=ae?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var Ee=Du.simpleMap(t.range,t.r2l);me=t.l2p(Ee[0])+t._offset,Ce=t.l2p(Ee[1])+t._offset}var de=Math.min(me,Ce),te=Math.max(me,Ce),Se=t.side,Te=1/0,be=-1/0;c.each(function(Be){var ce=w0.select(this),je=ce.select(".text-math-group");if(je.empty()){var rt=Xv.bBox(ce.node()),bt=0;ae?(rt.right>te||rt.leftte||rt.top+(t.tickangle?0:Be.fontSize/4)t["_visibleLabelMin_"+Ee._id]?ce.style("display","none"):te.K==="tick"&&!de&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(c,f+1?f:l);function p(){return h.length&&Promise.all(h)}var y=null;function b(){if(d(c,l),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){y=t.autotickangles[0];var H=0,re=[],ae,me=1;c.each(function(Re){H=Math.max(H,Re.fontSize);var Me=t.l2p(Re.x),oe=LN(this),Ne=Xv.bBox(oe.node());me=Math.max(me,Bb.lineCount(oe)),re.push({top:0,bottom:10,height:10,left:Me-Ne.width/2,right:Me+Ne.width/2+2,width:Ne.width+2})});var Ce=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Ee=s.length,de=Math.abs((s[Ee-1].x-s[0].x)*t._m)/(Ee-1),te=Ce?de/2:de,Se=Ce?t.ticklen:H*1.25*me,Te=Math.sqrt(Math.pow(te,2)+Math.pow(Se,2)),be=te/Te,He=t.autotickangles.map(function(Re){return Re*Math.PI/180}),Ie=He.find(function(Re){return Math.abs(Math.cos(Re))<=be});Ie===void 0&&(Ie=He.reduce(function(Re,Me){return Math.abs(Math.cos(Re))j*G&&(O=G,m[S]=P[S]=F[S])}var W=Math.abs(O-M);W-L>0?(W-=L,L*=1+L/W):L=0,t._id.charAt(0)!=="y"&&(L=-L),m[k]=E.p2r(E.r2p(P[k])+x*L),E.autorange==="min"||E.autorange==="max reversed"?(m[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(m[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=m}var N=Du.syncOrAsync(v);return N&&N.then&&e._promises.push(N),N};function yut(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,UP);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(p5.stroke,t.dividercolor).style("stroke-width",Xv.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}il.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function Vse(e){var t=e.title.font.size,r=(e.title.text.match(Bb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Nb+r*m5):r?t*(r+1)*m5:t}function gut(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Bb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Nb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(h5+s*m5));else{var u=g5(t);if(t.type==="multicategory")o=t._depth;else{var l=1.5*a;u&&(l=.5*a,t.ticks==="outside"&&(l+=t.ticklen)),o=10+l+(t.linewidth?t.linewidth-1:0)}u||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var f=il.getPxPosition(e,t),c,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?f-o:f+o):(d=t._offset+t._length/2,h=t.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var y=t._selections[t._id+"tick"];if(p={selection:y,side:t.side},y&&y.node()&&y.node().parentNode){var b=Xv.getTranslate(y.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,Olt.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}il.shouldShowZeroLine=function(e,t,r){var n=Du.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===qP)&&(Jse(t,0)||!_ut(e,t,r,n)||xut(e,t))};il.clipEnds=function(e,t){return t.filter(function(r){return Jse(e,r.x)})};function Jse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=Glt:/%L/.test(t)?e>=Vlt:/%[SX]/.test(t)?e>=OP:/%M/.test(t)?e>=v5:/%[HI]/.test(t)?e>=wy:/%p/.test(t)?e>=v_:/%[Aadejuwx]/.test(t)?e>=Op:/%[UVW]/.test(t)?e>=Zv:/%[Bbm]/.test(t)?e>=FP:/%[q]/.test(t)?e>=DP:/%[Yy]/.test(t)?e>=RP:!0}});var ON=we((nsr,tle)=>{"use strict";tle.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),u=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),u===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var BN=we((asr,rle)=>{"use strict";var Mut=ON();rle.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var u;!i.noInsiderange&&o!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(r.insiderange=!1,u=void 0),u&&(s=n("range",u)))}var l=r.getAutorangeDflt(s,i),f=n("autorange",l),c;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(f==="reversed"||f===!0)||s[0]!==null&&(f==="min"||f==="max reversed")||s[1]!==null&&(f==="max"||f==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,c=!0),c||(l=r.getAutorangeDflt(s,i),f=n("autorange",l)),f&&(Mut(n,f,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var nle=we((osr,ile)=>{var Eut={left:0,top:0};ile.exports=kut;function kut(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Cut(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Cut(e){return e===window||e===document||e===document.body?Eut:e.getBoundingClientRect()}});var GP=we((ssr,ale)=>{"use strict";var Lut=xq();function Put(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}ale.exports=Lut&&Put()});var sle=we((lsr,ole)=>{"use strict";ole.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),u=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?u:a==="right"||a==="top"?s:o<2/3-u?o:s>4/3-u?s:u}});var fle=we((usr,ule)=>{"use strict";var lle=ei(),zut=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ule.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=lle.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=lle.constrain(Math.floor(r*3),0,2),zut[r][t]}});var hle=we((fsr,cle)=>{"use strict";var Iut=z3(),Rut=jL(),Dut=ZM().getGraphDiv,Fut=HM(),qN=cle.exports={};qN.wrapped=function(e,t,r){e=Dut(e),e._fullLayout&&Rut.clear(e._fullLayout._uid+Fut.HOVERID),qN.raw(e,t,r)};qN.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Iut.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var xp=we((csr,mle)=>{"use strict";var Out=nle(),NN=wq(),But=GP(),qut=ei().removeElement,Nut=qh(),Ub=mle.exports={};Ub.align=sle();Ub.getCursor=fle();var ple=hle();Ub.unhover=ple.wrapped;Ub.unhoverRaw=ple.raw;Ub.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,u,l,f,c,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,But?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function p(E,A,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var A;c.target===h?A=c:(A={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(L=>{var x=c[L];!A[L]&&typeof x!="function"&&(A[L]=x)})),t.clickFn&&t.clickFn(n,A),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function vle(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Ub.coverSlip=vle;function dle(e){return Out(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Em=we((hsr,yle)=>{"use strict";yle.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var xle=we((dsr,_le)=>{"use strict";var UN=Em(),_5="data-savedcursor",gle="!!";_le.exports=function(t,r){var n=t.attr(_5);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var VN=gc(),Uut=Bh();ble.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Uut.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:VN({editType:"legend"}),grouptitlefont:VN({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:VN({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var b5=we(x5=>{"use strict";x5.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};x5.isVertical=function(t){return t.orientation!=="h"};x5.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};x5.getId=function(t){return t._id||"legend"}});var WN=we((msr,wle)=>{"use strict";var HP=$l(),Yv=ei(),Vut=Lf(),Gut=Vf(),Hut=GN(),Wut=A3(),HN=b5();function jut(e,t,r,n,i){var a=t[e]||{},o=Vut.newContainer(r,e);function s(H,re){return Yv.coerce(a,o,Hut,H,re)}var u=Yv.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var l=s("visible");if(!l)return;var f,c=function(H,re){var ae=f._input,me=f;return Yv.coerce(ae,me,Gut,H,re)},h=r.font||{},d=Yv.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),p=0,y=!1,b="normal",v=(r.shapes||[]).filter(function(H){return H.showlegend});function C(H){return HP.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}n.filter(C).forEach(function(H){H.visible&&p++;for(var re=0;reH.legend.length)for(var me=H.legend.length;me(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),!(x===!1&&!a.uirevision)&&(s("uirevision",r.uirevision),x!==!1)){s("borderwidth");var k=s("orientation"),S=s("yref"),m=s("xref"),P=k==="h",M=S==="paper",O=m==="paper",F,U,G,j="left";P?(F=0,HP.getComponentMethod("rangeslider","isVisible")(t.xaxis)?M?(U=1.1,G="bottom"):(U=1,G="top"):M?(U=-.1,G="top"):(U=0,G="bottom")):(U=1,G="auto",O?F=1.02:(F=1,j="right")),Yv.coerce(a,o,{x:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:F}},"x"),Yv.coerce(a,o,{y:{valType:"number",editType:"legend",min:M?-2:0,max:M?3:1,dflt:U}},"y"),s("traceorder",b),HN.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemclick"),s("itemdoubleclick"),s("groupclick"),s("xanchor",j),s("yanchor",G),s("maxheight"),s("valign"),Yv.noneOrAll(a,o,["x","y"]);var W=s("title.text");if(W){s("title.side",P?"left":"top");var N=Yv.extendFlat({},u,{size:Yv.bigFont(u.size)});Yv.coerceFont(s,"title.font",N);let H=i>1;s("titleclick",H?"toggle":!1),s("titledoubleclick",H?"toggleothers":!1)}}}wle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var m_=$l(),jN=ei(),Xut=jN.pushUnique,Zut=b5(),Ale=!0;XN.handleItemClick=function(t,r,n,i){var a=r._fullLayout;if(r._dragged||r._editing)return;var o=t.data()[0][0];if(o.groupTitle&&o.noClick)return;var s=n.groupclick;i==="toggle"&&n.itemdoubleclick==="toggleothers"&&Ale&&r.data&&r._context.showTips&&(jN.notifier(jN._(r,"Double-click on legend to isolate one trace"),"long",r),Ale=!1);var u=s==="togglegroup",l=a.hiddenlabels?a.hiddenlabels.slice():[],f=r._fullData;let c=(a.shapes||[]).filter(it=>it.showlegend||it.legendgroup);var h=f.concat(c),d=o.trace;d._isShape&&(d=d._fullInput);var p=d.legendgroup,y,b,v,C,E,A,L={},x=[],k=[],S=[];function m(it,Ke){var zt=x.indexOf(it),Mt=L.visible;return Mt||(Mt=L.visible=[]),x.indexOf(it)===-1&&(x.push(it),zt=x.length-1),Mt[zt]=Ke,zt}var P=(a.shapes||[]).map(function(it){return it._input}),M=!1;function O(it,Ke){P[it].visible=Ke,M=!0}function F(it,Ke){if(!(o.groupTitle&&!u)){var zt=it._fullInput||it,Mt=zt._isShape,kt=zt.index;kt===void 0&&(kt=zt._index);var $e=zt.visible===!1?!1:Ke;Mt?O(kt,$e):m(kt,$e)}}var U=d.legend,G=d._fullInput,j=G&&G._isShape;if(!j&&m_.traceIs(d,"pie-like")){var W=o.label,N=l.indexOf(W);if(i==="toggle")N===-1?l.push(W):l.splice(N,1);else if(i==="toggleothers"){var H=N!==-1,re=[];for(y=0;yv.showlegend||v.legendgroup),u=a.concat(s);function l(v){return(v.legend||"legend")===o}var f,c;if(n==="toggle")f=!u.some(function(C){return l(C)&&C.visible===!0}),c=!1;else{let v=u.some(function(C){return!l(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,c=!v}let h={visible:[]},d=[],p=(i.shapes||[]).map(function(v){return v._input});for(var y=!1,b=0;b{"use strict";Tle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var Ele=we((_sr,Mle)=>{"use strict";var{isArrayOrTypedArray:KN}=Jd(),Sle=$l(),JN=b5();Mle.exports=function(t,r,n){var i=r._inHover,a=JN.isGrouped(r),o=JN.isReversed(r),s={},u=[],l=!1,f={},c=0,h=0,d,p;function y(re,ae,me){if(r.visible!==!1&&!(n&&re!==r._id))if(ae===""||!JN.isGrouped(r)){var Ce="~~i"+c;u.push(Ce),s[Ce]=[me],c++}else u.indexOf(ae)===-1?(u.push(ae),l=!0,s[ae]=[me]):s[ae].push(me)}for(d=0;dF&&(M=F)}m[d][0]._groupMinRank=M,m[d][0]._preGroupSort=d}var U=function(re,ae){return re[0]._groupMinRank-ae[0]._groupMinRank||re[0]._preGroupSort-ae[0]._preGroupSort},G=function(re,ae){var me=KN(re.trace.legendrank)?re.trace.legendrank[re.i]:re.trace.legendrank,Ce=KN(ae.trace.legendrank)?ae.trace.legendrank[ae.i]:ae.trace.legendrank;return me-Ce||re._preSort-ae._preSort};for(m.forEach(function(re,ae){re[0]._preGroupSort=ae}),m.sort(U),d=0;d{"use strict";var WP=ei();function kle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Vb.formatPiePercent=function(t,r){var n=kle((t*100).toPrecision(3));return WP.numSeparate(n,r)+"%"};Vb.formatPieValue=function(t,r){var n=kle(t.toPrecision(10));return WP.numSeparate(n,r)};Vb.getFirstFilled=function(t,r){if(WP.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var Yut=Mu(),Kut=jl();Cle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?Yut.pointStyle(t,n,i,r):Kut.fill(t,r.color)}});var J3=we((wsr,Ile)=>{"use strict";var Ple=jl(),zle=y_().castOption,Jut=Lle();Ile.exports=function(t,r,n,i){var a=n.marker.line,o=zle(a.color,r.pts)||Ple.defaultLine,s=zle(a.width,r.pts)||0;t.call(Jut,r,n,i).style("stroke-width",s).call(Ple.stroke,o)}});var t7=we((Asr,qle)=>{"use strict";var Bp=Kl(),$N=$l(),bp=ei(),Rle=bp.strTranslate,Kv=Mu(),A0=jl(),QN=yp().extractOpts,jP=lc(),$ut=J3(),Qut=y_().castOption,eft=YN(),Dle=12,Fle=5,Gb=2,tft=10,$3=5;qle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+eft.itemGap*2)/2,u=Rle(s,0),l=function(k,S,m,P){var M;if(k+1)M=k;else if(S&&S.width>0)M=S.width;else return 0;return a?P:Math.min(M,m)};t.each(function(k){var S=Bp.select(this),m=bp.ensureSingle(S,"g","layers");m.style("opacity",k[0].trace.opacity);var P=n.indentation,M=n.valign,O=k[0].lineHeight,F=k[0].height;if(M==="middle"&&P===0||!O||!F)m.attr("transform",null);else{var U={top:1,bottom:-1}[M],G=U*(.5*(O-F+3))||0,j=n.indentation;m.attr("transform",Rle(j,G))}var W=m.selectAll("g.legendfill").data([k]);W.enter().append("g").classed("legendfill",!0);var N=m.selectAll("g.legendlines").data([k]);N.enter().append("g").classed("legendlines",!0);var H=m.selectAll("g.legendsymbols").data([k]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(p).each(d).each(b).each(A).each(E).each(f).each(c).each(v).each(C);function f(k){var S=Ole(k),m=S.showFill,P=S.showLine,M=S.showGradientLine,O=S.showGradientFill,F=S.anyFill,U=S.anyLine,G=k[0],j=G.trace,W,N,H=QN(j),re=H.colorscale,ae=H.reversescale,me=function(be){if(be.size())if(m)Kv.fillGroupStyle(be,r,!0);else{var He="legendfill-"+j.uid;Kv.gradient(be,r,He,e7(ae),re,"fill")}},Ce=function(be){if(be.size()){var He="legendline-"+j.uid;Kv.lineGroupStyle(be),Kv.gradient(be,r,He,e7(ae),re,"stroke")}},Ee=jP.hasMarkers(j)||!F?"M5,0":U?"M5,-2":"M5,-3",de=Bp.select(this),te=de.select(".legendfill").selectAll("path").data(m||O?[k]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",Ee+"h"+o+"v6h-"+o+"z").call(me),P||M){var Se=l(void 0,j.line,tft,Fle);N=bp.minExtend(j,{line:{width:Se}}),W=[bp.minExtend(G,{trace:N})]}var Te=de.select(".legendlines").selectAll("path").data(P||M?[W]:[]);Te.enter().append("path").classed("js-line",!0),Te.exit().remove(),Te.attr("d",Ee+(M?"l"+o+",0.0001":"h"+o)).call(P?Kv.lineGroupStyle:Ce)}function c(k){var S=Ole(k),m=S.anyFill,P=S.anyLine,M=S.showLine,O=S.showMarker,F=k[0],U=F.trace,G=!O&&!P&&!m&&jP.hasText(U),j,W;function N(te,Se,Te,be){var He=bp.nestedProperty(U,te).get(),Ie=bp.isArrayOrTypedArray(He)&&Se?Se(He):He;if(a&&Ie&&be!==void 0&&(Ie=be),Te){if(IeTe[1])return Te[1]}return Ie}function H(te){return F._distinct&&F.index&&te[F.index]?te[F.index]:te[0]}if(O||G||M){var re={},ae={};if(O){re.mc=N("marker.color",H),re.mx=N("marker.symbol",H),re.mo=N("marker.opacity",bp.mean,[.2,1]),re.mlc=N("marker.line.color",H),re.mlw=N("marker.line.width",bp.mean,[0,5],Gb),re.mld=U._isShape?"solid":N("marker.line.dash",H),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var me=N("marker.size",bp.mean,[2,16],Dle);re.ms=me,ae.marker.size=me}M&&(ae.line={width:N("line.width",H,[0,10],Fle)}),G&&(re.tx="Aa",re.tp=N("textposition",H),re.ts=10,re.tc=N("textfont.color",H),re.tf=N("textfont.family",H),re.tw=N("textfont.weight",H),re.ty=N("textfont.style",H),re.tv=N("textfont.variant",H),re.tC=N("textfont.textcase",H),re.tE=N("textfont.lineposition",H),re.tS=N("textfont.shadow",H)),j=[bp.minExtend(F,re)],W=bp.minExtend(U,ae),W.selectedpoints=null,W.texttemplate=null}var Ce=Bp.select(this).select("g.legendpoints"),Ee=Ce.selectAll("path.scatterpts").data(O?j:[]);Ee.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Ee.exit().remove(),Ee.call(Kv.pointStyle,W,r),O&&(j[0].mrc=3);var de=Ce.selectAll("g.pointtext").data(G?j:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),de.exit().remove(),de.selectAll("text").call(Kv.textPointStyle,W,r)}function h(k){var S=k[0].trace,m=S.type==="waterfall";if(k[0]._distinct&&m){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,y(k,this,"waterfall")}var M=[];S.visible&&m&&(M=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var O=Bp.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(M);O.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),O.exit().remove(),O.each(function(F){var U=Bp.select(this),G=S[F[0]].marker,j=l(void 0,G.line,$3,Gb);U.attr("d",F[1]).style("stroke-width",j+"px").call(A0.fill,G.color),j&&U.call(A0.stroke,G.line.color)})}function d(k){y(k,this)}function p(k){y(k,this,"funnel")}function y(k,S,m){var P=k[0].trace,M=P.marker||{},O=M.line||{},F=M.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",U=m?P.visible&&P.type===m:$N.traceIs(P,"bar"),G=Bp.select(S).select("g.legendpoints").selectAll("path.legend"+m).data(U?[k]:[]);G.enter().append("path").classed("legend"+m,!0).attr("d",F).attr("transform",u),G.exit().remove(),G.each(function(j){var W=Bp.select(this),N=j[0],H=l(N.mlw,M.line,$3,Gb);W.style("stroke-width",H+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var ae=QN(M),me=ae.mid;me===void 0&&(me=(ae.max+ae.min)/2),re=Kv.tryColorscale(M,"")(me)}var Ce=re||N.mc||M.color,Ee=M.pattern,de=Kv.getPatternAttr,te=Ee&&(de(Ee.shape,0,"")||de(Ee.path,0,""));if(te){var Se=de(Ee.bgcolor,0,null),Te=de(Ee.fgcolor,0,null),be=Ee.fgopacity,He=Ble(Ee.size,8,10),Ie=Ble(Ee.solidity,.5,1),ge="legend-"+P.uid;W.call(Kv.pattern,"legend",r,ge,te,He,Ie,re,Ee.fillmode,Se,Te,be)}else W.call(A0.fill,Ce);H&&A0.stroke(W,N.mlc||O.color)})}function b(k){var S=k[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&$N.traceIs(S,"box-violin")?[k]:[]);m.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),m.exit().remove(),m.each(function(){var P=Bp.select(this);if((S.boxpoints==="all"||S.points==="all")&&A0.opacity(S.fillcolor)===0&&A0.opacity((S.line||{}).color)===0){var M=bp.minExtend(S,{marker:{size:a?Dle:bp.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});m.call(Kv.pointStyle,M,r)}else{var O=l(void 0,S.line,$3,Gb);P.style("stroke-width",O+"px").call(A0.fill,S.fillcolor),O&&A0.stroke(P,S.line.color)}})}function v(k){var S=k[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[k,k]:[]);m.enter().append("path").classed("legendcandle",!0).attr("d",function(P,M){return M?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,M){var O=Bp.select(this),F=S[M?"increasing":"decreasing"],U=l(void 0,F.line,$3,Gb);O.style("stroke-width",U+"px").call(A0.fill,F.fillcolor),U&&A0.stroke(O,F.line.color)})}function C(k){var S=k[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[k,k]:[]);m.enter().append("path").classed("legendohlc",!0).attr("d",function(P,M){return M?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,M){var O=Bp.select(this),F=S[M?"increasing":"decreasing"],U=l(void 0,F.line,$3,Gb);O.style("fill","none").call(Kv.dashLine,F.line.dash,U),U&&A0.stroke(O,F.line.color)})}function E(k){L(k,this,"pie")}function A(k){L(k,this,"funnelarea")}function L(k,S,m){var P=k[0],M=P.trace,O=m?M.visible&&M.type===m:$N.traceIs(M,m),F=Bp.select(S).select("g.legendpoints").selectAll("path.legend"+m).data(O?[k]:[]);if(F.enter().append("path").classed("legend"+m,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),F.exit().remove(),F.size()){var U=M.marker||{},G=l(Qut(U.line.width,P.pts),U.line,$3,Gb),j="pieLike",W=bp.minExtend(M,{marker:{line:{width:G}}},j),N=bp.minExtend(P,{trace:W},j);$ut(F,N,W,r)}}function x(k){var S=k[0].trace,m,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],m=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],m=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],m="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],m=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],m=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],m=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],m=!1;break}var M=Bp.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);M.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),M.exit().remove(),M.each(function(O,F){var U=Bp.select(this),G=QN(S),j=G.colorscale,W=G.reversescale,N=function(me){if(me.size()){var Ce="legendfill-"+S.uid;Kv.gradient(me,r,Ce,e7(W,m==="radial"),j,"fill")}},H;if(j){if(!m){var ae=j.length;H=F===0?j[W?ae-1:0][1]:F===1?j[W?0:ae-1][1]:j[Math.floor((ae-1)/2)][1]}}else{var re=S.vertexcolor||S.facecolor||S.color;H=bp.isArrayOrTypedArray(re)?re[F]||re[0]:re}U.attr("d",O[0]),H?U.call(A0.fill,H):U.call(N)})}};function e7(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Ole(e){var t=e[0].trace,r=t.contours,n=jP.hasLines(t),i=jP.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var u=r.coloring;u==="lines"?o=!0:n=u==="none"||u==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(u==="fill"||u==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function Ble(e,t,r){return e&&bp.isArrayOrTypedArray(e)?t:e>r?r:e}});var a7=we((Tsr,Zle)=>{"use strict";var nv=Kl(),Ah=ei(),i7=Cc(),Hb=$l(),YP=z3(),r7=xp(),Th=Mu(),w5=jl(),Wb=Wf(),Nle=ZN().handleItemClick,Ule=ZN().handleTitleClick,Gh=YN(),n7=Nh(),jle=n7.LINE_SPACING,eA=n7.FROM_TL,Vle=n7.FROM_BR,Gle=Ele(),rft=t7(),tA=b5(),Q3=1,ift=/^legend[0-9]*$/;Zle.exports=function(t,r){if(r)Hle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var l=nv.select(this),f=l.attr("class"),c=f.split(" ")[0];c.match(ift)&&i.indexOf(c)===-1&&l.remove()});for(var o=0;o1)}var p=n.hiddenlabels||[];if(!s&&(!n.showlegend||!u.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),i7.autoMargin(e,i);var y=Ah.ensureSingle(o,"g",i,function(S){s||S.attr("pointer-events","all")}),b=Ah.ensureSingleById(n._topdefs,"clipPath",a,function(S){S.append("rect")}),v=Ah.ensureSingle(y,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});v.call(w5.stroke,r.bordercolor).call(w5.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var C=Ah.ensureSingle(y,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var A;E.text?(A=Ah.ensureSingle(C,"text",i+"titletext"),A.attr("text-anchor","start").call(Th.font,E.font).text(E.text),ZP(A,C,e,r,Q3),!s&&(r.titleclick||r.titledoubleclick)&&sft(C,e,r,i)):(C.selectAll("."+i+"titletext").remove(),C.selectAll("."+i+"titletoggle").remove());var L=Ah.ensureSingle(y,"rect","scrollbar",function(S){S.attr(Gh.scrollBarEnterAttrs).call(w5.fill,Gh.scrollBarColor)}),x=C.selectAll("g.groups").data(u);x.enter().append("g").attr("class","groups"),x.exit().remove();var k=x.selectAll("g.traces").data(Ah.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(S){let m=S[0],P=m.trace;if(m.groupTitle){let M=P.legendgroup,O=(n.shapes||[]).filter(function(U){return U.showlegend});return e._fullData.concat(O).some(function(U){return U.legendgroup===M&&(U.legend||"legend")===i&&U.visible===!0})?1:.5}return Hb.traceIs(P,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){nv.select(this).call(aft,e,r)}).call(rft,e,r).each(function(S){s||S[0].groupTitle&&r.groupclick==="toggleitem"||nv.select(this).call(oft,e,i)}),Ah.syncOrAsync([i7.previousPromises,function(){return fft(e,x,k,r,C)},function(){var S=n._size,m=r.borderwidth,P=r.xref==="paper",M=r.yref==="paper";if(E.text){let je=(n.shapes||[]).filter(function(bt){return bt.showlegend}),rt=e._fullData.concat(je).some(function(bt){let Ot=bt.legend||"legend";var it=Array.isArray(Ot)?Ot.includes(i):Ot===i;return it&&bt.visible===!0});A.style("opacity",rt?1:.5)}if(!s){var O,F;P?O=S.l+S.w*r.x-eA[KP(r)]*r._width:O=n.width*r.x-eA[KP(r)]*r._width,M?F=S.t+S.h*(1-r.y)-eA[JP(r)]*r._effHeight:F=n.height*(1-r.y)-eA[JP(r)]*r._effHeight;var U=cft(e,i,O,F);if(U)return;if(n.margin.autoexpand){var G=O,j=F;O=P?Ah.constrain(O,0,n.width-r._width):G,F=M?Ah.constrain(F,0,n.height-r._effHeight):j,O!==G&&Ah.log("Constrain "+i+".x to make legend fit inside graph"),F!==j&&Ah.log("Constrain "+i+".y to make legend fit inside graph")}Th.setTranslate(y,O,F)}if(L.on(".drag",null),y.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var W=r._effHeight;s&&(W=r._height),v.attr({width:r._width-m,height:W-m,x:m/2,y:m/2}),Th.setTranslate(C,0,0),b.select("rect").attr({width:r._width-2*m,height:W-2*m,x:m,y:m}),Th.setClipUrl(C,a,e),Th.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(Gh.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),H=r._effHeight-N-2*Gh.scrollBarMargin,re=r._height-r._effHeight,ae=H/re,me=Math.min(r._scrollY||0,re);v.attr({width:r._width-2*m+Gh.scrollBarWidth+Gh.scrollBarMargin,height:r._effHeight-m,x:m/2,y:m/2}),b.select("rect").attr({width:r._width-2*m+Gh.scrollBarWidth+Gh.scrollBarMargin,height:r._effHeight-2*m,x:m,y:m+me}),Th.setClipUrl(C,a,e),He(me,N,ae),y.on("wheel",function(){me=Ah.constrain(r._scrollY+nv.event.deltaY/re*H,0,re),He(me,N,ae),me!==0&&me!==re&&nv.event.preventDefault()});var Ce,Ee,de,te=function(je,rt,bt){var Ot=(bt-rt)/ae+je;return Ah.constrain(Ot,0,re)},Se=function(je,rt,bt){var Ot=(rt-bt)/ae+je;return Ah.constrain(Ot,0,re)},Te=nv.behavior.drag().on("dragstart",function(){var je=nv.event.sourceEvent;je.type==="touchstart"?Ce=je.changedTouches[0].clientY:Ce=je.clientY,de=me}).on("drag",function(){var je=nv.event.sourceEvent;je.buttons===2||je.ctrlKey||(je.type==="touchmove"?Ee=je.changedTouches[0].clientY:Ee=je.clientY,me=te(de,Ce,Ee),He(me,N,ae))});L.call(Te);var be=nv.behavior.drag().on("dragstart",function(){var je=nv.event.sourceEvent;je.type==="touchstart"&&(Ce=je.changedTouches[0].clientY,de=me)}).on("drag",function(){var je=nv.event.sourceEvent;je.type==="touchmove"&&(Ee=je.changedTouches[0].clientY,me=Se(de,Ce,Ee),He(me,N,ae))});C.call(be)}function He(je,rt,bt){r._scrollY=e._fullLayout[i]._scrollY=je,Th.setTranslate(C,0,-je),Th.setRect(L,r._width,Gh.scrollBarMargin+je*bt,Gh.scrollBarWidth,rt),b.select("rect").attr("y",m+je)}if(e._context.edits.legendPosition){var Ie,ge,Be,ce;y.classed("cursor-move",!0),r7.init({element:y.node(),gd:e,prepFn:function(je){if(je.target!==L.node()){var rt=Th.getTranslate(y);Be=rt.x,ce=rt.y}},moveFn:function(je,rt){if(Be!==void 0&&ce!==void 0){var bt=Be+je,Ot=ce+rt;Th.setTranslate(y,bt,Ot),Ie=r7.align(bt,r._width,S.l,S.l+S.w,r.xanchor),ge=r7.align(Ot+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(Ie!==void 0&&ge!==void 0){var je={};je[i+".x"]=Ie,je[i+".y"]=ge,Hb.call("_guiRelayout",e,je)}},clickFn:function(je,rt){var bt=o.selectAll("g.traces").filter(function(){var Ot=this.getBoundingClientRect();return rt.clientX>=Ot.left&&rt.clientX<=Ot.right&&rt.clientY>=Ot.top&&rt.clientY<=Ot.bottom});bt.size()>0&&Xle(e,r,bt,je,rt)}})}}],e)}}function XP(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Xle(e,t,r,n,i){var a=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,u=t.itemdoubleclick,l={event:i,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:a};o._group&&(l.group=o._group),Hb.traceIs(o,"pie-like")&&(l.label=r.datum()[0].label);var f=YP.triggerHandler(e,"plotly_legendclick",l);if(n===1){if(f===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&Nle(r,e,t,s)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var c=YP.triggerHandler(e,"plotly_legenddoubleclick",l);c!==!1&&f!==!1&&u&&Nle(r,e,t,u)}}function aft(e,t,r){var n=tA.getId(r),i=e.data()[0][0],a=i.trace,o=Hb.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,u=r._maxNameLength,l,f;i.groupTitle?(l=i.groupTitle.text,f=i.groupTitle.font):(f=r.font,r.entries?l=i.text:(l=o?i.label:a.name,a._meta&&(l=Ah.templateString(l,a._meta))));var c=Ah.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(Th.font,f).text(s?Wle(l,u):l);var h=r.indentation+r.itemwidth+Gh.itemGap*2;Wb.positionText(c,h,0),s?c.call(Wb.makeEditable,{gd:t,text:l}).call(ZP,e,t,r).on("edit",function(d){this.text(Wle(d,u)).call(ZP,e,t,r);var p=i.trace._fullInput||{},y={};return y.name=d,p._isShape?Hb.call("_guiRelayout",t,"shapes["+a.index+"].name",y.name):Hb.call("_guiRestyle",t,y,a.index)}):ZP(c,e,t,r)}function Wle(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function oft(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Ah.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(w5.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Xle(t,s,e,a,nv.event)}}))}function sft(e,t,r,n){if(t._fullData.some(function(l){let f=l.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Hb.traceIs(l,"pie-like")}))return;let a=t._context.doubleClickDelay;var o,s=1;let u=Ah.ensureSingle(e,"rect",n+"titletoggle",function(l){t._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(w5.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(u.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimea&&(s=Math.max(s-1,1));let l={event:nv.event,legendId:n,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(YP.triggerHandler(t,"plotly_legendtitleclick",l)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&Ule(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,YP.triggerHandler(t,"plotly_legendtitledoubleclick",l)!==!1&&r.titledoubleclick&&Ule(t,r,r.titledoubleclick))}))}function ZP(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Wb.convertToTspans(e,r,function(){lft(t,r,n,i)})}function lft(e,t,r,n){var i=e.data()[0][0],a=i&&i.trace.showlegend;if(Array.isArray(a)&&(a=a[i.i]!==!1),!r._inHover&&i&&!a){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),u=tA.getId(r);r||(r=t._fullLayout[u]);var l=r.borderwidth,f;n===Q3?f=r.title.font:i.groupTitle?f=i.groupTitle.font:f=r.font;var c=f.size*jle,h,d;if(s){var p=Th.bBox(s);h=p.height,d=p.width,n===Q3?Th.setTranslate(o,l,l+h*.75):Th.setTranslate(o,0,h*.25)}else{var y="."+u+(n===Q3?"title":"")+"text",b=e.select(y),v=Wb.lineCount(b),C=b.node();if(h=c*v,d=C?Th.bBox(C).width:0,n===Q3)r.title.side==="left"&&(d+=Gh.itemGap*2),Wb.positionText(b,l+Gh.titlePad,l+c);else{var E=Gh.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(E=Gh.itemGap,d-=r.indentation+r.itemwidth),Wb.positionText(b,E,-c*((v-1)/2-.3))}}n===Q3?(r._titleWidth=d,r._titleHeight=h):(i.lineHeight=c,i.height=Math.max(h,16)+3,i.width=d)}function uft(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function fft(e,t,r,n,i){var a=e._fullLayout,o=tA.getId(n);n||(n=a[o]);var s=a._size,u=tA.isVertical(n),l=tA.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,h=2*c,d=Gh.itemGap,p=n.indentation+n.itemwidth+d*2,y=2*(c+d),b=JP(n),v=n.y<0||n.y===0&&b==="top",C=n.y>1||n.y===1&&b==="bottom",E=n.tracegroupgap,A={};let{orientation:L,yref:x}=n,{maxheight:k}=n,S=v||C||L!=="v"||x!=="paper";k||(k=S?.5:1);let m=S?a.height:s.h;n._maxHeight=Math.max(k>1?k:k*m,30);var P=0;n._width=0,n._height=0;var M=uft(n);if(u)r.each(function(je){var rt=je[0].height;Th.setTranslate(this,c+M[0],c+M[1]+n._height+rt/2+d),n._height+=rt,n._width=Math.max(n._width,je[0].width)}),P=p+n._width,n._width+=d+p+h,n._height+=y,l&&(t.each(function(je,rt){Th.setTranslate(this,0,rt*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var O=KP(n),F=n.x<0||n.x===0&&O==="right",U=n.x>1||n.x===1&&O==="left",G=C||v,j=a.width/2;n._maxWidth=Math.max(F?G&&O==="left"?s.l+s.w:j:U?G&&O==="right"?s.r+s.w:j:s.w,2*p);var W=0,N=0;r.each(function(je){var rt=XP(je,n,p);W=Math.max(W,rt),N+=rt}),P=null;var H=0;if(l){var re=0,ae=0,me=0;t.each(function(){var je=0,rt=0;nv.select(this).selectAll("g.traces").each(function(Ot){var it=XP(Ot,n,p),Ke=Ot[0].height;Th.setTranslate(this,M[0],M[1]+c+d+Ke/2+rt),rt+=Ke,je=Math.max(je,it),A[Ot[0].trace.legendgroup]=je});var bt=je+d;ae>0&&bt+c+ae>n._maxWidth?(H=Math.max(H,ae),ae=0,me+=re+E,re=rt):re=Math.max(re,rt),Th.setTranslate(this,ae,me),ae+=bt}),n._width=Math.max(H,ae)+c,n._height=me+re+y}else{var Ce=r.size(),Ee=N+h+(Ce-1)*d=n._maxWidth&&(H=Math.max(H,Te),te=0,Se+=de,n._height+=de,de=0),Th.setTranslate(this,M[0]+c+te,M[1]+c+Se+rt/2+d),Te=te+bt+d,te+=Ot,de=Math.max(de,rt)}),Ee?(n._width=te+h,n._height=de+y):(n._width=Math.max(H,Te)+h,n._height+=de+y)}}n._width=Math.ceil(Math.max(n._width+M[0],n._titleWidth+2*(c+Gh.titlePad))),n._height=Math.ceil(Math.max(n._height+M[1],n._titleHeight+2*(c+Gh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var be=e._context.edits,He=be.legendText||be.legendPosition;r.each(function(je){var rt=nv.select(this).select("."+o+"toggle"),bt=je[0].height,Ot=je[0].trace.legendgroup,it=XP(je,n,p);l&&Ot!==""&&(it=A[Ot]);var Ke=He?p:P||it;!u&&!f&&(Ke+=d/2),Th.setRect(rt,0,-bt/2,Ke,bt)});var Ie=i.select("."+o+"titletext");Ie.node()&&nft(Ie,n,c);var ge=i.select("."+o+"titletoggle");if(ge.size()&&Ie.node()){var Be=Ie.attr("x")||0,ce=Gh.titlePad;Th.setRect(ge,Be-ce,c,n._titleWidth+2*ce,n._titleHeight+2*ce)}}function cft(e,t,r,n){var i=e._fullLayout,a=i[t],o=KP(a),s=JP(a),u=a.xref==="paper",l=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var f=a.y<.5?"b":"t",c=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(u&&l)return i7.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*eA[o],r:a._width*Vle[o],b:a._effHeight*Vle[s],t:a._effHeight*eA[s]});u?e._fullLayout._reservedMargin[t][f]=h[f]:l||a.orientation==="v"?e._fullLayout._reservedMargin[t][c]=h[c]:e._fullLayout._reservedMargin[t][f]=h[f]}function KP(e){return Ah.isRightAnchor(e)?"right":Ah.isCenterAnchor(e)?"center":"left"}function JP(e){return Ah.isBottomAnchor(e)?"bottom":Ah.isMiddleAnchor(e)?"middle":"top"}});var u7=we(l7=>{"use strict";var jb=Kl(),Ig=ku(),Yle=hd(),ah=ei(),hft=ah.pushUnique,o7=ah.strTranslate,dft=ah.strRotate,pft=z3(),T0=Wf(),vft=xle(),Ty=Mu(),vd=jl(),$P=xp(),Sy=wu(),mft=qh().zindexSeparator,iA=$l(),km=iv(),Xb=HM(),yft=WN(),gft=a7(),iue=Xb.YANGLE,s7=Math.PI*iue/180,_ft=1/Math.sin(s7),xft=Math.cos(s7),bft=Math.sin(s7),Uc=Xb.HOVERARROWSIZE,Ef=Xb.HOVERTEXTPAD,Kle={box:!0,ohlc:!0,violin:!0,candlestick:!0},wft={scatter:!0,scattergl:!0,splom:!0};function Jle(e,t){return e.distance-t.distance}l7.hover=function(t,r,n,i){t=ah.getGraphDiv(t);var a=r.target;ah.throttle(t._fullLayout._uid+Xb.HOVERID,Xb.HOVERMINTIME,function(){Aft(t,r,n,i,a)})};l7.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=lue(i),o=uue(i),s=t.map(function(b){var v=b._x0||b.x0||b.x||0,C=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,A=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(v,C),k=Math.max(v,C),S=Math.min(E,A),m=Math.max(E,A),P=b.trace;if(iA.traceIs(P,"gl3d")){var M=i._fullLayout[P.scene]._scene.container,O=M.offsetLeft,F=M.offsetTop;x+=O,k+=O,S+=F,m+=F}L.bbox={x0:x+o,x1:k+o,y0:S+a,y1:m+a},L.xPixel=(v+C)/2,L.yPixel=(E+A)/2,r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),u=!1,l=aue(s,{gd:i,hovermode:"closest",rotateLabels:u,bgColor:r.bgColor||vd.background,container:jb.select(r.container),outerContainer:r.outerContainer||r.container}),f=l.hoverLabels,c=5,h=0,d=0;f.sort(function(b,v){return b.y0-v.y0}).each(function(b,v){var C=b.y0-b.by/2;C-ck[0]._length||ce<0||ce>S[0]._length)return $P.unhoverRaw(e,t)}if(t.pointerX=Be+k[0]._offset,t.pointerY=ce+S[0]._offset,"xval"in t?j=km.flat(a,t.xval):j=km.p2c(k,Be),"yval"in t?W=km.flat(a,t.yval):W=km.p2c(S,ce),!Ig(j[0])||!Ig(W[0]))return ah.warn("Fx.hover failed",t,e),$P.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=j,e._hoverYVals=W,e._hoverXAxes=k,e._hoverYAxes=S);var bt=1/0;function Ot(qr,_i){for(H=0;HTe&&(U.splice(0,Te),bt=U[0].distance),c&&F!==0&&U.length===0){Se.distance=F,Se.index=!1;var Nt=ae._module.hoverPoints(Se,de,te,"closest",{hoverLayer:s._hoverlayer});if(Nt&&(Nt=Nt.filter(function(Gr){return Gr.spikeDistance<=F})),Nt&&Nt.length){var mr,Lr=Nt.filter(function(Gr){return Gr.xa.showspikes&&Gr.xa.spikesnap!=="hovered data"});if(Lr.length){var Nr=Lr[0];Ig(Nr.x0)&&Ig(Nr.y0)&&(mr=Ke(Nr),(!be.vLinePoint||be.vLinePoint.spikeDistance>mr.spikeDistance)&&(be.vLinePoint=mr))}var Fr=Nt.filter(function(Gr){return Gr.ya.showspikes&&Gr.ya.spikesnap!=="hovered data"});if(Fr.length){var Hr=Fr[0];Ig(Hr.x0)&&Ig(Hr.y0)&&(mr=Ke(Hr),(!be.hLinePoint||be.hLinePoint.spikeDistance>mr.spikeDistance)&&(be.hLinePoint=mr))}}}}}Ot();function it(qr,_i,zi){for(var Dt=null,_t=1/0,qt,Nt=0;Ntqr.trace.index===et.trace.index):U=[et];var tt=U.length,Lt=rue("x",et,s),jt=rue("y",et,s);Ot(Lt,jt);var or=[],yr={},vr=0,Vt=function(qr){var _i=Kle[qr.trace.type]?nue(qr):qr.trace.index;if(!yr[_i])vr++,yr[_i]=vr,or.push(qr);else{var zi=yr[_i]-1,Dt=or[zi];zi>0&&Math.abs(qr.distance)tt-1;Pe--)Vt(U[Pe]);U=or,$e()}var xe=e._hoverdata,Oe=[],ze=lue(e),De=uue(e);for(let qr of U){var ht=km.makeEventData(qr,qr.trace,qr.cd);if(qr.hovertemplate!==!1){var st=!1;qr.cd[qr.index]&&qr.cd[qr.index].ht&&(st=qr.cd[qr.index].ht),qr.hovertemplate=st||qr.trace.hovertemplate||!1}if(qr.xa&&qr.ya){var gt=qr.x0+qr.xa._offset,xt=qr.x1+qr.xa._offset,pr=qr.y0+qr.ya._offset,br=qr.y1+qr.ya._offset,cr=Math.min(gt,xt),Er=Math.max(gt,xt),ii=Math.min(pr,br),jr=Math.max(pr,br);ht.bbox={x0:cr+De,x1:Er+De,y0:ii+ze,y1:jr+ze},ht.xPixel=(gt+xt)/2,ht.yPixel=(pr+br)/2}qr.eventData=[ht],Oe.push(ht)}e._hoverdata=Oe;var kr=h==="y"&&(G.length>1||U.length>1)||h==="closest"&&He&&U.length>1,Vr=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),Ai=aue(U,{gd:e,hovermode:h,rotateLabels:kr,bgColor:Vr,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Bi=Ai.hoverLabels;if(km.isUnifiedHover(h)||(Sft(Bi,kr,s,Ai.commonLabelBoundingBox),sue(Bi,kr,s._invScaleX,s._invScaleY)),i&&i.tagName){var Ri=iA.getComponentMethod("annotations","hasClickToShow")(e,Oe);vft(jb.select(i),Ri?"pointer":"")}var ln=kft(e,t,xe);if(!i||n||!ln&&!s.hoveranywhere)return;xe&&ln&&e.emit("plotly_unhover",{event:t,points:xe}),hn(e._hoverdata);function hn(qr){e.emit("plotly_hover",{event:t,points:qr,xaxes:k,yaxes:S,xvals:j,yvals:W})}}function nue(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Tft=/([\s\S]*)<\/extra>/;function aue(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,u=t.outerContainer,l=t.commonLabelOpts||{};if(e.length===0)return[[]];var f=t.fontFamily||Xb.HOVERFONT,c=t.fontSize||Xb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,p=t.fontVariant||n.font.variant,y=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,v=t.fontShadow||n.font.shadow,C=e[0],E=C.xa,A=C.ya,L=i.charAt(0),x=L+"Label",k=C[x];if(k===void 0&&E.type==="multicategory")for(var S=0;Sn.width-Oe&&(ze=n.width-Oe),Ve.attr("d","M"+(Vt-ze)+",0L"+(Vt-ze+Uc)+","+xe+Uc+"H"+Oe+"v"+xe+(Ef*2+vr.height)+"H"+-Oe+"V"+xe+Uc+"H"+(Vt-ze-Uc)+"Z"),Vt=ze,H.minX=Vt-Oe,H.maxX=Vt+Oe,E.side==="top"?(H.minY=Pe-(Ef*2+vr.height),H.maxY=Pe-Ef):(H.minY=Pe+Ef,H.maxY=Pe+(Ef*2+vr.height))}else{var De,ht,st;A.side==="right"?(De="start",ht=1,st="",Vt=E._offset+E._length):(De="end",ht=-1,st="-",Vt=E._offset),Pe=A._offset+(C.y0+C.y1)/2,et.attr("text-anchor",De),Ve.attr("d","M0,0L"+st+Uc+","+Uc+"V"+(Ef+vr.height/2)+"h"+st+(Ef*2+vr.width)+"V-"+(Ef+vr.height/2)+"H"+st+Uc+"V-"+Uc+"Z"),H.minY=Pe-(Ef+vr.height/2),H.maxY=Pe+(Ef+vr.height/2),A.side==="right"?(H.minX=Vt+Uc,H.maxX=Vt+Uc+(Ef*2+vr.width)):(H.minX=Vt-Uc-(Ef*2+vr.width),H.maxX=Vt-Uc);var gt=vr.height/2,xt=P-vr.top-gt,pr="clip"+n._uid+"commonlabel"+A._id,br;if(VtVe.hoverinfo!=="none");if(We.length===0)return[];var re=n.hoverlabel,ae=re.font,me=We[0],Ce=((i==="x unified"?me.xa:me.ya).unifiedhovertitle||{}).text,Ee=Ce?ah.hovertemplateString({data:i==="x unified"?[{xa:me.xa,x:me.xVal}]:[{ya:me.ya,y:me.yVal}],fallback:me.trace.hovertemplatefallback,locale:n._d3locale,template:Ce}):k,de={showlegend:!0,legend:{title:{text:Ee,font:ae},font:ae,bgcolor:re.bgcolor,bordercolor:re.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},te={font:ae};yft(de,te,r._fullData);var Se=te.legend;Se.entries=[];for(var Te=0;Te=0?Ne=$e:Re+rt=0?Ne=Re:Me+rt=0?vt=Mt:kt+bt=0?vt=kt:oe+bt=0,(We.idealAlign==="top"||!ii)&&jr?(st-=xt/2,We.anchor="end"):ii?(st+=xt/2,We.anchor="start"):We.anchor="middle",We.crossPos=st;else{if(We.pos=st,ii=ht+gt/2+Er<=M,jr=ht-gt/2-Er>=0,(We.idealAlign==="left"||!ii)&&jr)ht-=gt/2,We.anchor="end";else if(ii)ht+=gt/2,We.anchor="start";else{We.anchor="middle";var kr=Er/2,Vr=ht+kr-M,Ai=ht-kr;Vr>0&&(ht-=Vr),Ai<0&&(ht+=-Ai)}We.crossPos=ht}Pe.attr("text-anchor",We.anchor),Oe&&xe.attr("text-anchor",We.anchor),Ve.attr("transform",o7(ht,st)+(a?dft(iue):""))}),{hoverLabels:lt,commonLabelBoundingBox:H}}function $le(e,t,r,n,i,a){var c,h;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=ah.templateString(e.name,e.trace._meta)),o=tue(e.name,e.nameLength));var u=r.charAt(0),l=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[u+"Label"]===i?s=e[l+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[u+"Label"]!==i&&(d[u+"other"]=d[u+"Val"],d[u+"otherLabel"]=d[u+"Label"]),s=ah.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:n._d3locale,template:f}),s=s.replace(Tft,(p,y)=>(o=tue(y,e.nameLength),""))}return[s,o]}function Sft(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,u=e.size(),l=new Array(u),f=0,c=n.minX,h=n.maxX,d=n.minY,p=n.maxY,y=function(j){return j*r._invScaleX},b=function(j){return j*r._invScaleY};e.each(function(j){var W=j[i],N=j[a],H=W._id.charAt(0)==="x",re=W.range;f===0&&re&&re[0]>re[1]!==H&&(s=-1);var ae=0,me=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Ce=oue(j,t),Ee=j.anchor,de=Ee==="end"?-1:1,te,Se;if(Ee==="middle")te=j.crossPos+(H?b(Ce.y-j.by/2):y(j.bx/2+j.tx2width/2)),Se=te+(H?b(j.by):y(j.bx));else if(H)te=j.crossPos+b(Uc+Ce.y)-b(j.by/2-Uc),Se=te+b(j.by);else{var Te=y(de*Uc+Ce.x),be=Te+y(de*j.bx);te=j.crossPos+Math.min(Te,be),Se=j.crossPos+Math.max(Te,be)}H?d!==void 0&&p!==void 0&&Math.min(Se,p)-Math.max(te,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,me=r.width):me=N._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(te,c)>1&&(N.side==="top"?(ae=N._mainLinePosition,me=r.height):me=N._mainLinePosition)}l[f++]=[{datum:j,traceIndex:j.trace.index,dp:0,pos:j.pos,posref:j.posref,size:j.by*(H?_ft:1)/2,pmin:ae,pmax:me}]}),l.sort(function(j,W){return j[0].posref-W[0].posref||s*(W[0].traceIndex-j[0].traceIndex)});var v,C,E,A,L,x,k;function S(j){var W=j[0],N=j[j.length-1];if(C=W.pmin-W.pos-W.dp+W.size,E=N.pos+N.dp+N.size-W.pmax,C>.01){for(L=j.length-1;L>=0;L--)j[L].dp+=C;v=!1}if(!(E<.01)){if(C<-.01){for(L=j.length-1;L>=0;L--)j[L].dp-=E;v=!1}if(v){var H=0;for(A=0;AW.pmax&&H++;for(A=j.length-1;A>=0&&!(H<=0);A--)x=j[A],x.pos>W.pmax-1&&(x.del=!0,H--);for(A=0;A=0;L--)j[L].dp-=E;for(A=j.length-1;A>=0&&!(H<=0);A--)x=j[A],x.pos+x.dp+x.size>W.pmax&&(x.del=!0,H--)}}}for(;!v&&o<=u;){for(o++,v=!0,A=0;A.01){for(L=P.length-1;L>=0;L--)P[L].dp+=C;for(m.push.apply(m,P),l.splice(A+1,1),k=0,L=m.length-1;L>=0;L--)k+=m[L].dp;for(E=k/m.length,L=m.length-1;L>=0;L--)m[L].dp-=E;v=!1}else A++}l.forEach(S)}for(A=l.length-1;A>=0;A--){var F=l[A];for(L=F.length-1;L>=0;L--){var U=F[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function oue(e,t){var r=0,n=e.offset;return t&&(n*=-bft,r=e.offset*xft),{x:r,y:n}}function Mft(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Uc+Ef),n=r+t*(e.txwidth+Ef),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+Ef),{alignShift:t,textShiftX:r,text2ShiftX:n}}function sue(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=jb.select(this);if(o.del)return s.remove();var u=s.select("text.nums"),l=o.anchor,f=l==="end"?-1:1,c=Mft(o),h=oue(o,t),d=h.x,p=h.y,y=l==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,v;y?v="M-"+i(o.bx/2+o.tx2width/2)+","+a(p-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?v="M0,0L"+i(f*Uc+d)+","+a(Uc+p)+"v"+a(o.by/2-Uc)+"h"+i(f*o.bx)+"v-"+a(o.by)+"H"+i(f*Uc+d)+"V"+a(p-Uc)+"Z":v="M"+i(f*Uc+d)+","+a(p-o.by/2)+"h"+i(f*o.bx)+"v"+a(o.by)+"h"+i(-f*o.bx)+"Z",s.select("path").attr("d",v);var C=d+c.textShiftX,E=p+o.ty0-o.by/2+Ef,A=o.textAlign||"auto";A!=="auto"&&(A==="left"&&l!=="start"?(u.attr("text-anchor","start"),C=y?-o.bx/2-o.tx2width/2+Ef:-o.bx-Ef):A==="right"&&l!=="end"&&(u.attr("text-anchor","end"),C=y?o.bx/2-o.tx2width/2-Ef:o.bx+Ef)),u.call(T0.positionText,i(C),a(E)),o.tx2width&&(s.select("text.name").call(T0.positionText,i(c.text2ShiftX+c.alignShift*Ef+d),a(p+o.ty0-o.by/2+Ef)),s.select("rect").call(Ty.setRect,i(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),a(p-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Eft(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Ig(h)&&h===0}var s=Array.isArray(r)?function(h,d){var p=ah.castOption(i,r,h);return o(p)?p:ah.extractOption({},n,"",d)}:function(h,d){return ah.extractOption(a,n,h,d)};function u(h,d,p){var y=s(d,p);o(y)&&(e[h]=y)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=ah.constrain(e.x0,0,e.xa._length),e.x1=ah.constrain(e.x1,0,e.xa._length),e.y0=ah.constrain(e.y0,0,e.ya._length),e.y1=ah.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Sy.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Sy.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var l=Sy.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+l+" / -"+Sy.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+l,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Sy.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Sy.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,t==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function Qle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,u=!!t.vLinePoint,l,f;if(n.selectAll(".spikeline").remove(),!!(u||s)){var c=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,p;l=h&&h.xa,f=h&&h.ya;var y=f.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=l._offset+h.x,p=f._offset+h.y);var b=Yle.readability(h.color,c)<1.5?vd.contrast(c):h.color,v=f.spikemode,C=f.spikethickness,E=f.spikecolor||b,A=Sy.getPxPosition(e,f),L,x;if(v.indexOf("toaxis")!==-1||v.indexOf("across")!==-1){if(v.indexOf("toaxis")!==-1&&(L=A,x=d),v.indexOf("across")!==-1){var k=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),S=Math.max(S,f.position)),L=a.l+k*a.w,x=a.l+S*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:p,y2:p,"stroke-width":C,stroke:E,"stroke-dasharray":Ty.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:x,y1:p,y2:p,"stroke-width":C+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}v.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A+(f.side!=="right"?C:-C),cy:p,r:C,fill:E}).classed("spikeline",!0)}if(u){var m=t.vLinePoint,P,M;l=m&&m.xa,f=m&&m.ya;var O=l.spikesnap;O==="cursor"?(P=o.pointerX,M=o.pointerY):(P=l._offset+m.x,M=f._offset+m.y);var F=Yle.readability(m.color,c)<1.5?vd.contrast(c):m.color,U=l.spikemode,G=l.spikethickness,j=l.spikecolor||F,W=Sy.getPxPosition(e,l),N,H;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=W,H=M),U.indexOf("across")!==-1){var re=l._counterDomainMin,ae=l._counterDomainMax;l.anchor==="free"&&(re=Math.min(re,l.position),ae=Math.max(ae,l.position)),N=a.t+(1-ae)*a.h,H=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G,stroke:j,"stroke-dasharray":Ty.dashStyle(l.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}U.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:W-(l.side!=="top"?G:-G),r:G,fill:j}).classed("spikeline",!0)}}}function kft(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function eue(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function tue(e,t){return T0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Cft(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;oe.offsetTop+e.clientTop,uue=e=>e.offsetLeft+e.clientLeft;function rA(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),i=n.left,a=n.top,o=i+n.width,s=a+n.height,u=ah.apply3DTransform(r._invTransform)(i,a),l=ah.apply3DTransform(r._invTransform)(o,s),f=u[0],c=u[1],h=l[0],d=l[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var A5=we((Msr,fue)=>{"use strict";var Lft=ei(),Pft=jl(),zft=iv().isUnifiedHover;fue.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&zft(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Pft.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),Lft.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var hue=we((Esr,cue)=>{"use strict";var Ift=ei(),Rft=A5(),Dft=X1();cue.exports=function(t,r){function n(i,a){return Ift.coerce(t,r,Dft,i,a)}Rft(t,r,n)}});var vue=we((ksr,pue)=>{"use strict";var due=ei(),Fft=g3(),Oft=A5();pue.exports=function(t,r,n,i){function a(s,u){return due.coerce(t,r,Fft,s,u)}var o=due.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Oft(t,r,a,o)}});var f7=we((Csr,mue)=>{"use strict";var Bft=ei(),qft=X1();mue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:Bft.coerce(t,r,qft,i,a)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var _ue=we((Lsr,gue)=>{"use strict";var yue=ei(),Nft=X1(),Uft=f7(),Vft=A5();gue.exports=function(t,r){function n(f,c){return yue.coerce(t,r,Nft,f,c)}var i=Uft(t,r);i&&(n("hoverdistance"),n("spikedistance"),i.indexOf("unified")!==-1&&n("hoversort"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),u=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||u)&&l===1||(o||s)&&u&&l===2)&&(r.dragmode="pan"),Vft(t,r,n),yue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var wue=we((Psr,bue)=>{"use strict";var c7=ei(),xue=$l();bue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(l){return function(f){return c7.coerceHoverinfo({hoverinfo:f},{_module:l._module},n)}}for(var a=0;a{"use strict";var Hft=$l(),Wft=u7().hover;Aue.exports=function(t,r,n){var i=Hft.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;n!==void 0&&Wft(t,r,n,!0);function o(){var u,l,f,c;var s={points:t._hoverdata,event:r};(u=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(l=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(f=s.xvals)!=null||(s.xvals=t._hoverXVals),(c=s.yvals)!=null||(s.yvals=t._hoverYVals),t.emit("plotly_click",s)}(t._hoverdata||a.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),i&&i.then?i.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Vc=we((Isr,Eue)=>{"use strict";var jft=Kl(),QP=ei(),Xft=xp(),T5=iv(),Sue=X1(),Mue=u7();Eue.exports={moduleType:"component",name:"fx",constants:HM(),schema:{layout:Sue},attributes:g3(),layoutAttributes:Sue,supplyLayoutGlobalDefaults:hue(),supplyDefaults:vue(),supplyLayoutDefaults:_ue(),calc:wue(),getDistanceFunction:T5.getDistanceFunction,getClosest:T5.getClosest,inbox:T5.inbox,quadrature:T5.quadrature,appendArrayPointValue:T5.appendArrayPointValue,castHoverOption:Yft,castHoverinfo:Kft,hover:Mue.hover,unhover:Xft.unhover,loneHover:Mue.loneHover,loneUnhover:Zft,click:Tue()};function Zft(e){var t=QP.isD3Selection(e)?e:jft.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Yft(e,t,r){return QP.castOption(e,t,"hoverlabel."+r)}function Kft(e,t,r){function n(i){return QP.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return QP.castOption(e,r,"hoverinfo",n)}});var Cm=we(Rg=>{"use strict";Rg.selectMode=function(e){return e==="lasso"||e==="select"};Rg.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Rg.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Rg.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Rg.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Rg.selectingOrDrawing=function(e){return Rg.freeMode(e)||Rg.rectMode(e)}});var S5=we((Dsr,kue)=>{"use strict";kue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var ez=we((Fsr,Cue)=>{"use strict";Cue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var rz=we((Osr,Lue)=>{"use strict";var tz=32;Lue.exports={CIRCLE_SIDES:tz,i000:0,i090:tz/4,i180:tz/2,i270:tz/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var iz=we((Bsr,zue)=>{"use strict";var Jft=ei().strTranslate;function Pue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function $ft(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function Qft(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return Pue(e,r[t])}}function ect(e){return Jft(e.xaxis._offset,e.yaxis._offset)}zue.exports={p2r:Pue,r2p:$ft,axValue:Qft,getTransform:ect}});var g_=we(Dg=>{"use strict";var tct=l5(),Due=rz(),nA=Due.CIRCLE_SIDES,h7=Due.SQRT2,Fue=iz(),Iue=Fue.p2r,Rue=Fue.r2p,rct=[0,3,4,5,6,1,2],ict=[0,3,4,1,2];Dg.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&u{"use strict";var Oue=jc(),Vue=Cm(),nct=Vue.drawMode,act=Vue.openMode,aA=rz(),Bue=aA.i000,que=aA.i090,Nue=aA.i180,Uue=aA.i270,oct=aA.cos45,sct=aA.sin45,Gue=iz(),az=Gue.p2r,__=Gue.r2p,lct=s_(),uct=lct.clearOutline,oz=g_(),fct=oz.readPaths,cct=oz.writePaths,hct=oz.ellipseOver,dct=oz.fixDatesForPaths;function pct(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!nct(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var vct=Cm(),mct=vct.selectMode,yct=s_(),gct=yct.clearOutline,d7=g_(),_ct=d7.readPaths,xct=d7.writePaths,bct=d7.fixDatesForPaths;jue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,u=s.xaxis,l=s.yaxis,f=r.isActiveSelection,c=r.dragmode,h=(a.layout||{}).selections||[];if(!mct(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Xue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var b_=we(Fd=>{"use strict";var Ey=E5(),Zue=ei(),x_=wu();Fd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Fd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Fd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Fd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Fd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Ey.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(Ey.paramRE);if(!(!s||s.length{let s=o.charAt(0),u=i[s].drawn!==void 0;return a+(u?1:0)},0)};Fd.getDataToPixel=function(e,t,r,n,i){var a=e._fullLayout._size,o;if(t)if(i==="domain")o=function(u){return t._length*(n?1-u:u)+t._offset};else{var s=Fd.shapePositionToRange(t);o=function(u){var l=My(t,r);return t._offset+t.r2p(s(u,!0))+l},t.type==="date"&&(o=Fd.decodeDate(o))}else n?o=function(u){return a.t+a.h*(1-u)}:o=function(u){return a.l+a.w*u};return o};Fd.getPixelToData=function(e,t,r,n){var i=e._fullLayout._size,a;if(t)if(n==="domain")a=function(s){var u=(s-t._offset)/t._length;return r?1-u:u};else{var o=Fd.rangeToShapePosition(t);a=function(s){return o(t.p2r(s-t._offset))}}else r?a=function(s){return 1-(s-i.t)/i.h}:a=function(s){return(s-i.l)/i.w};return a};Fd.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,n=Math.round(e);return r?n+.5:n};Fd.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&r.xref!=="paper"&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(n.yaxis=e._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}};Fd.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:n}};Fd.getPathString=function(e,t){let r=t.type,n=x_.getRefType(t.xref),i=x_.getRefType(t.yref),a=e._fullLayout._size;var o,s,u,l,f,c,h,d,p,y,b,v;function C(P,M,O,F){var U;if(P)if(M==="domain")F?U=function(G){return P._offset+P._length*(1-G)}:U=function(G){return P._offset+P._length*G};else{let G=Fd.shapePositionToRange(P);U=function(j){return P._offset+P.r2p(G(j,!0))},O==="path"&&P.type==="date"&&(U=Fd.decodeDate(U))}else F?U=function(G){return a.t+a.h*(1-G)}:U=function(G){return a.l+a.w*G};return U}if(n==="array"?(h=[],o=t.xref.map(function(P){return x_.getFromId(e,P)}),h=t.xref.map(function(P,M){return C(o[M],x_.getRefType(P),r,!1)})):(o=x_.getFromId(e,t.xref),h=C(o,n,r,!1)),i==="array"?(d=[],s=t.yref.map(function(P){return x_.getFromId(e,P)}),d=t.yref.map(function(P,M){return C(s[M],x_.getRefType(P),r,!0)})):(s=x_.getFromId(e,t.yref),d=C(s,i,r,!0)),r==="path")return wct(t,h,d);if(n==="array")u=My(o[0],t.x0shift),l=My(o[1],t.x1shift),p=h[0](t.x0)+u,y=h[1](t.x1)+l;else if(u=My(o,t.x0shift),l=My(o,t.x1shift),t.xsizemode==="pixel"){let P=h(t.xanchor);p=P+t.x0+u,y=P+t.x1+l}else p=h(t.x0)+u,y=h(t.x1)+l;if(i==="array")f=My(s[0],t.y0shift),c=My(s[1],t.y1shift),b=d[0](t.y0)+f,v=d[1](t.y1)+c;else if(f=My(s,t.y0shift),c=My(s,t.y1shift),t.ysizemode==="pixel"){let P=d(t.yanchor);b=P-t.y0+f,v=P-t.y1+c}else b=d(t.y0)+f,v=d(t.y1)+c;if(r==="line")return"M"+p+","+b+"L"+y+","+v;if(r==="rect")return"M"+p+","+b+"H"+y+"V"+v+"H"+p+"Z";var E=(p+y)/2,A=(b+v)/2,L=Math.abs(E-p),x=Math.abs(A-b),k="A"+L+","+x,S=E+L+","+A,m=E+","+(A-x);return"M"+S+k+" 0 1,1 "+m+k+" 0 0,1 "+S+"Z"};function wct(e,t,r){let n=e.path,i=e.xsizemode,a=e.ysizemode,o=e.xanchor,s=e.yanchor,u=Array.isArray(e.xref),l=Array.isArray(e.yref);var f=0,c=0;return n.replace(Ey.segmentRE,function(h){var d=0,p=h.charAt(0),y=Ey.paramIsX[p],b=Ey.paramIsY[p],v=Ey.numParams[p];let C=y.drawn!==void 0,E=b.drawn!==void 0,A=u?t[f]:t,L=l?r[c]:r;var x=h.slice(1).replace(Ey.paramRE,function(k){return y[d]?i==="pixel"?k=A(o)+Number(k):k=A(k):b[d]&&(a==="pixel"?k=L(s)-Number(k):k=L(k)),d++,d>v&&(k="X"),k});return d>v&&(x=x.replace(/[\s,]*X.*/,""),Zue.log("Ignoring extra params in segment "+h)),C&&f++,E&&c++,p+x})}Fd.getPixelShift=My;function My(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var v7=we((Hsr,Jue)=>{"use strict";var Act=ei(),ky=wu(),Yue=Wf(),Kue=Mu(),Tct=g_().readPaths,Zb=b_(),Sct=Zb.getPathString,k5=FL(),Mct=Nh().FROM_TL;Jue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=ky.getFromId(t,n.xref),u=ky.getFromId(t,n.yref);let ae=Array.isArray(n.xref),me=Array.isArray(n.yref);for(var l in k5){var f=typeof k5[l]=="function",c=!ae||k5.simpleXVariables.includes(l),h=!me||k5.simpleYVariables.includes(l);if(f&&c&&h){var d=k5[l](n,s,u);d!==void 0&&(o[l]=d)}}}a=Act.texttemplateStringForShapes({data:[o],fallback:n.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:n.label.texttemplate})}else a=n.label.text;var p={"data-index":r},y=n.label.font,b={"data-notex":1},v=i.append("g").attr(p).classed("shape-label",!0),C=v.append("text").attr(b).classed("shape-label-text",!0).text(a),E,A,L,x;if(n.path){var k=Sct(t,n),S=Tct(k,t);E=1/0,L=1/0,A=-1/0,x=-1/0;for(var m=0;mZb.getDataToPixel(t,je,ce,!1,rt)(Be),ge=(Be,ce,je,rt)=>Zb.getDataToPixel(t,je,ce,!0,rt)(Be);if(n.xsizemode==="pixel"){let Be=Ie(n.xanchor,void 0,Ce,Se),ce=Zb.getPixelShift(Ce,n.x0shift),je=Zb.getPixelShift(Ce,n.x1shift);E=Be+n.x0+ce,A=Be+n.x1+je}else E=Ie(n.x0,n.x0shift,Ce,Se),A=Ie(n.x1,n.x1shift,Ee,Te);if(n.ysizemode==="pixel"){let Be=ge(n.yanchor,void 0,de,be),ce=Zb.getPixelShift(de,n.y0shift),je=Zb.getPixelShift(de,n.y1shift);L=Be-n.y0+ce,x=Be-n.y1+je}else L=ge(n.y0,n.y0shift,de,be),x=ge(n.y1,n.y1shift,te,He)}var G=n.label.textangle;G==="auto"&&(n.type==="line"?G=Ect(E,L,A,x):G=0),C.call(function(ae){return ae.call(Kue.font,y).attr({}),Yue.convertToTspans(ae,t),ae});var j=Kue.bBox(C.node()),W=kct(E,L,A,x,n,G,j),N=W.textx,H=W.texty,re=W.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[re],y:H,x:N,transform:"rotate("+G+","+N+","+H+")"}).call(Yue.positionText,N,H)}};function Ect(e,t,r,n){var i,a;return a=Math.abs(r-e),r>=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function kct(e,t,r,n,i,a,o){var s=i.label.textposition,u=i.label.textangle,l=i.label.padding,f=i.type,c=Math.PI/180*a,h=Math.sin(c),d=Math.cos(c),p=i.label.xanchor,y=i.label.yanchor,b,v,C,E;if(f==="line"){s==="start"?(b=e,v=t):s==="end"?(b=r,v=n):(b=(e+r)/2,v=(t+n)/2),p==="auto"&&(s==="start"?u==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var Cct=ei(),Lct=Cct.strTranslate,$ue=xp(),tfe=Cm(),Pct=tfe.drawMode,rfe=tfe.selectMode,ife=$l(),Que=jl(),uz=rz(),zct=uz.i000,Ict=uz.i090,Rct=uz.i180,Dct=uz.i270,Fct=s_(),nfe=Fct.clearOutlineControllers,y7=g_(),lz=y7.pointsOnRectangle,m7=y7.pointsOnEllipse,Oct=y7.writePaths,Bct=sz().newShapes,qct=sz().createShapeObj,Nct=p7(),Uct=v7();afe.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(m7(t[0])||n.hasText)&&s({redrawing:!0})}function s(W){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=Bct(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Nct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&ife.call((W||{}).redrawing?"relayout":"_guiRelayout",a,N)}var u=a._fullLayout,l=u._zoomlayer,f=n.dragmode,c=Pct(f),h=rfe(f);(c||h)&&(a._fullLayout._outlining=!0),nfe(a),r.attr("d",Oct(t));var d,p,y,b,v;if(!i&&(n.isActiveShape||n.isActiveSelection)){v=Vct([],t);var C=l.append("g").attr("class","outline-controllers");P(C),j()}if(c&&n.hasText){var E=l.select(".label-temp"),A=qct(r,n,n.dragmode);Uct(a,"label-temp",A,E)}function L(W){y=+W.srcElement.getAttribute("data-i"),b=+W.srcElement.getAttribute("data-j"),d[y][b].moveFn=x}function x(W,N){if(t.length){var H=v[y][b][1],re=v[y][b][2],ae=t[y],me=ae.length;if(lz(ae)){var Ce=W,Ee=N;if(n.isActiveSelection){var de=efe(ae,b);de[1]===ae[b][1]?Ee=0:Ce=0}for(var te=0;te1&&!(W.length===2&&W[1][0]==="Z")&&(b===0&&(W[0][0]="M"),t[y]=W,o(),s())}}function m(W,N){if(W===2){y=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var H=t[y];!lz(H)&&!m7(H)&&S()}}function P(W){d=[];for(var N=0;N{"use strict";var Hct=Kl(),cfe=$l(),_7=ei(),Yb=wu(),Wct=g_().readPaths,jct=fz(),hz=v7(),hfe=s_().clearOutlineControllers,g7=jl(),dz=Mu(),Xct=Lf().arrayEditor,ofe=xp(),sfe=Vc(),lfe=Em(),Kb=E5(),Ev=b_(),x7=Ev.getPathString;vfe.exports={draw:b7,drawOne:dfe,eraseActiveShape:$ct,drawLabel:hz};function b7(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;i{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=i(a);o&&sfe.hover(e,o,r.id)}}),n.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=i(a);o&&sfe.click(e,o,r.id)}})}function pfe(e,t,r){let n=r.xref,i=r.yref;if(Array.isArray(n)||Array.isArray(i)){let a="clip"+t._fullLayout._uid+"shape"+r._index,o=Yct(t,n,i);_7.ensureSingleById(t._fullLayout._clips,"clipPath",a,function(s){s.append("rect")}).select("rect").attr(o),dz.setClipUrl(e,a,t)}else{let a=(n+i).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");dz.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}}function Yct(e,t,r){let n=e._fullLayout._size;function i(s,u){let l=(Array.isArray(s)?s:[s]).map(h=>Yb.getFromId(e,h)).filter(Boolean);if(!l.length)return u?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=l.map(function(h){return h._offset}),c=l.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...c)]}let a=i(t,!1),o=i(r,!0);return{x:a[0],y:o[0],width:a[1]-a[0],height:o[1]-o[0]}}function Kct(e,t,r,n,i,a){var o=10,s=10,u=r.xsizemode==="pixel",l=r.ysizemode==="pixel",f=r.type==="line",c=r.type==="path",h=a.modifyItem,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O=Hct.select(t.node().parentNode),F=Yb.getFromId(e,r.xref),U=Yb.getRefType(r.xref),G=Yb.getFromId(e,r.yref),j=Yb.getRefType(r.yref),W=r.x0shift,N=r.x1shift,H=r.y0shift,re=r.y1shift,ae=function(it,Ke){var zt=Ev.getDataToPixel(e,F,Ke,!1,U);return zt(it)},me=function(it,Ke){var zt=Ev.getDataToPixel(e,G,Ke,!0,j);return zt(it)},Ce=Ev.getPixelToData(e,F,!1,U),Ee=Ev.getPixelToData(e,G,!0,j),de=Te(),te={element:de.node(),gd:e,prepFn:Ie,doneFn:ge,clickFn:Be},Se;ofe.init(te),de.node().onmousemove=He;function Te(){return f?be():t}function be(){var it=10,Ke=Math.max(r.line.width,it),zt=i.append("g").attr("data-index",n).attr("drag-helper",!0);zt.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":Ke,"stroke-opacity":"0"});var Mt={"fill-opacity":"0"},kt=Math.max(Ke/2,it);return zt.append("circle").attr({"data-line-point":"start-point",cx:u?ae(r.xanchor)+r.x0:ae(r.x0,W),cy:l?me(r.yanchor)-r.y0:me(r.y0,H),r:kt}).style(Mt).classed("cursor-grab",!0),zt.append("circle").attr({"data-line-point":"end-point",cx:u?ae(r.xanchor)+r.x1:ae(r.x1,N),cy:l?me(r.yanchor)-r.y1:me(r.y1,re),r:kt}).style(Mt).classed("cursor-grab",!0),zt}function He(it){if(cz(e)){Se=null;return}if(f)it.target.tagName==="path"?Se="move":Se=it.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ke=te.element.getBoundingClientRect(),zt=Ke.right-Ke.left,Mt=Ke.bottom-Ke.top,kt=it.clientX-Ke.left,$e=it.clientY-Ke.top,Re=!c&&zt>o&&Mt>s&&!it.shiftKey?ofe.getCursor(kt/zt,1-$e/Mt):"move";lfe(t,Re),Se=Re.split("-")[0]}}function Ie(it){cz(e)||(u&&(v=ae(r.xanchor)),l&&(C=me(r.yanchor)),r.type==="path"?M=r.path:(d=u?r.x0:ae(r.x0),p=l?r.y0:me(r.y0),y=u?r.x1:ae(r.x1),b=l?r.y1:me(r.y1)),db?(E=p,k="y0",A=b,S="y1"):(E=b,k="y1",A=p,S="y0"),He(it),rt(i,r),Ot(t,r,e),te.moveFn=Se==="move"?ce:je,te.altKey=it.altKey)}function ge(){cz(e)||(lfe(t),bt(i),pfe(t,e,r),cfe.call("_guiRelayout",e,a.getUpdateObj()))}function Be(){cz(e)||bt(i)}function ce(it,Ke){if(r.type==="path"){var zt=function($e){return $e},Mt=zt,kt=zt;u?h("xanchor",r.xanchor=Ce(v+it)):(Mt=function(Re){return Ce(ae(Re)+it)},F&&F.type==="date"&&(Mt=Ev.encodeDate(Mt))),l?h("yanchor",r.yanchor=Ee(C+Ke)):(kt=function(Re){return Ee(me(Re)+Ke)},G&&G.type==="date"&&(kt=Ev.encodeDate(kt))),h("path",r.path=ufe(M,Mt,kt))}else u?h("xanchor",r.xanchor=Ce(v+it)):(h("x0",r.x0=Ce(d+it)),h("x1",r.x1=Ce(y+it))),l?h("yanchor",r.yanchor=Ee(C+Ke)):(h("y0",r.y0=Ee(p+Ke)),h("y1",r.y1=Ee(b+Ke)));t.attr("d",x7(e,r)),rt(i,r),hz(e,n,r,O)}function je(it,Ke){if(c){var zt=function(or){return or},Mt=zt,kt=zt;u?h("xanchor",r.xanchor=Ce(v+it)):(Mt=function(yr){return Ce(ae(yr)+it)},F&&F.type==="date"&&(Mt=Ev.encodeDate(Mt))),l?h("yanchor",r.yanchor=Ee(C+Ke)):(kt=function(yr){return Ee(me(yr)+Ke)},G&&G.type==="date"&&(kt=Ev.encodeDate(kt))),h("path",r.path=ufe(M,Mt,kt))}else if(f){if(Se==="resize-over-start-point"){var $e=d+it,Re=l?p-Ke:p+Ke;h("x0",r.x0=u?$e:Ce($e)),h("y0",r.y0=l?Re:Ee(Re))}else if(Se==="resize-over-end-point"){var Me=y+it,oe=l?b-Ke:b+Ke;h("x1",r.x1=u?Me:Ce(Me)),h("y1",r.y1=l?oe:Ee(oe))}}else{var Ne=function(or){return Se.indexOf(or)!==-1},vt=Ne("n"),lt=Ne("s"),We=Ne("w"),Ve=Ne("e"),et=vt?E+Ke:E,tt=lt?A+Ke:A,Lt=We?L+it:L,jt=Ve?x+it:x;l&&(vt&&(et=E-Ke),lt&&(tt=A-Ke)),(!l&&tt-et>s||l&&et-tt>s)&&(h(k,r[k]=l?et:Ee(et)),h(S,r[S]=l?tt:Ee(tt))),jt-Lt>o&&(h(m,r[m]=u?Lt:Ce(Lt)),h(P,r[P]=u?jt:Ce(jt)))}t.attr("d",x7(e,r)),rt(i,r),hz(e,n,r,O)}function rt(it,Ke){(u||l)&&zt();function zt(){var Mt=Ke.type!=="path",kt=it.selectAll(".visual-cue").data([0]),$e=1;kt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":$e}).classed("visual-cue",!0);var Re=ae(u?Ke.xanchor:_7.midRange(Mt?[Ke.x0,Ke.x1]:Ev.extractPathCoords(Ke.path,Kb.paramIsX))),Me=me(l?Ke.yanchor:_7.midRange(Mt?[Ke.y0,Ke.y1]:Ev.extractPathCoords(Ke.path,Kb.paramIsY)));if(Re=Ev.roundPositionForSharpStrokeRendering(Re,$e),Me=Ev.roundPositionForSharpStrokeRendering(Me,$e),u&&l){var oe="M"+(Re-1-$e)+","+(Me-1-$e)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";kt.attr("d",oe)}else if(u){var Ne="M"+(Re-1-$e)+","+(Me-9-$e)+"v18 h2 v-18 Z";kt.attr("d",Ne)}else{var vt="M"+(Re-9-$e)+","+(Me-1-$e)+"h18 v2 h-18 Z";kt.attr("d",vt)}}}function bt(it){it.selectAll(".visual-cue").remove()}function Ot(it,Ke,zt){var Mt=Ke.xref,kt=Ke.yref,$e=Yb.getFromId(zt,Mt),Re=Yb.getFromId(zt,kt),Me="";Mt!=="paper"&&!$e.autorange&&(Me+=Mt),kt!=="paper"&&!Re.autorange&&(Me+=kt),dz.setClipUrl(it,Me?"clip"+zt._fullLayout._uid+Me:null,zt)}}function ufe(e,t,r){return e.replace(Kb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Kb.paramIsX[a],s=Kb.paramIsY[a],u=Kb.numParams[a],l=n.slice(1).replace(Kb.paramRE,function(f){return i>=u||(o[i]?f=t(f):s[i]&&(f=r(f)),i++),f});return a+l})}function Jct(e,t){if(pz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){ffe(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=ffe,b7(e)}}}function ffe(e){if(pz(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(hfe(e),delete e._fullLayout._activeShapeIndex,b7(e))}}function $ct(e){if(pz(e)){hfe(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var mfe=Kl(),mz=ei()._;yfe.exports=function(t,r,n){var i=mfe.select(t._fullLayout._paperdiv.node());i.selectAll(".plotly-cloud-dialog").remove();var a=i.append("div").classed("plotly-cloud-dialog",!0),o=a.append("div").classed("plotly-cloud-dialog-box",!0);o.append("div").classed("plotly-cloud-dialog-title",!0).text(mz(t,"Share with Plotly Cloud")),o.append("div").classed("plotly-cloud-dialog-message",!0).text(mz(t,"This chart and its data will be sent to")+" "+r+".");var s=o.append("div").classed("plotly-cloud-dialog-buttons",!0);function u(){a.remove(),document.removeEventListener("keydown",l)}function l(f){(f.key==="Escape"||f.keyCode===27)&&u()}document.addEventListener("keydown",l),a.on("click",function(){mfe.event.target===a.node()&&u()}),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(mz(t,"Cancel")).on("click",u),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(mz(t,"Share")).on("click",function(){u(),n()})}});var T7=we((Zsr,Mfe)=>{"use strict";var S0=$l(),Qct=Cc(),_fe=jc(),Gf=ez(),eht=vz().eraseActiveShape,tht=gfe(),yz=ei(),kf=yz._,zf=Mfe.exports={};zf.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?kf(e,"Download plot as a PNG"):kf(e,"Download plot")},icon:Gf.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};yz.notifier(kf(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){yz.notifier(kf(e,"Snapshot succeeded")+" - "+n,"long",e)}).catch(function(){yz.notifier(kf(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};zf.sendChartToCloud={name:"sendChartToCloud",title:function(e){return kf(e,"Share with Plotly Cloud")},icon:Gf.cloudupload,click:function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!t){console.error("No destination URL provided (plotlyServerURL is not set)");return}try{new URL(t)}catch(r){console.error("Invalid plotlyServerURL: "+t);return}tht(e,t,function(){Qct.sendDataToCloud(e,t)})}};zf.sendDataToCloud=zf.sendChartToCloud;zf.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return kf(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Gf.zoombox,click:qp};zf.pan2d={name:"pan2d",_cat:"pan",title:function(e){return kf(e,"Pan")},attr:"dragmode",val:"pan",icon:Gf.pan,click:qp};zf.select2d={name:"select2d",_cat:"select",title:function(e){return kf(e,"Box Select")},attr:"dragmode",val:"select",icon:Gf.selectbox,click:qp};zf.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return kf(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Gf.lasso,click:qp};zf.drawclosedpath={name:"drawclosedpath",title:function(e){return kf(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Gf.drawclosedpath,click:qp};zf.drawopenpath={name:"drawopenpath",title:function(e){return kf(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Gf.drawopenpath,click:qp};zf.drawline={name:"drawline",title:function(e){return kf(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Gf.drawline,click:qp};zf.drawrect={name:"drawrect",title:function(e){return kf(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Gf.drawrect,click:qp};zf.drawcircle={name:"drawcircle",title:function(e){return kf(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Gf.drawcircle,click:qp};zf.eraseshape={name:"eraseshape",title:function(e){return kf(e,"Erase active shape")},icon:Gf.eraseshape,click:eht};zf.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return kf(e,"Zoom in")},attr:"zoom",val:"in",icon:Gf.zoom_plus,click:qp};zf.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return kf(e,"Zoom out")},attr:"zoom",val:"out",icon:Gf.zoom_minus,click:qp};zf.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return kf(e,"Autoscale")},attr:"zoom",val:"auto",icon:Gf.autoscale,click:qp};zf.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return kf(e,"Reset axes")},attr:"zoom",val:"reset",icon:Gf.home,click:qp};zf.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return kf(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Gf.tooltip_basic,gravity:"ne",click:qp};zf.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return kf(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Gf.tooltip_compare,gravity:"ne",click:qp};function qp(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=_fe.list(e,null,!0),u=a._cartesianSpikesEnabled,l,f;if(n==="zoom"){var c=i==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f{"use strict";var Efe=T7(),nht=Object.keys(Efe),kfe=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Cfe=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(kfe),sA=[],aht=function(e){if(Cfe.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();sA.indexOf(t)===-1&&sA.push(t),sA.indexOf(r)===-1&&sA.push(r)}};nht.forEach(function(e){aht(Efe[e])});sA.sort();Lfe.exports={DRAW_MODES:kfe,backButtons:Cfe,foreButtons:sA}});var M7=we((Jsr,Pfe)=>{"use strict";var Ksr=S7();Pfe.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Ife=we(($sr,zfe)=>{"use strict";var oht=ei(),C5=jl(),sht=Lf(),lht=M7();zfe.exports=function(t,r){var n=t.modebar||{},i=sht.newContainer(r,"modebar");function a(s,u){return oht.coerce(n,i,lht,s,u)}a("orientation"),a("bgcolor",C5.addOpacity(r.paper_bgcolor,.5));var o=C5.contrast(C5.rgb(r.modebar.bgcolor));a("color",C5.addOpacity(o,.3)),a("activecolor",C5.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Ofe=we((Qsr,Ffe)=>{"use strict";var E7=Kl(),uht=ku(),_z=ei(),Rfe=ez(),fht=BM().version,cht=new DOMParser;function Dfe(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Cy=Dfe.prototype;Cy.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),u=this.hasLogo!==r.displaylogo,l=this.locale!==r.locale;if(this.locale=r.locale,(s||u||l)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),_z.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Cy.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Cy.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Cy.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&E7.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Rfe.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Cy.createIcon=function(e){var t=uht(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=cht.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Cy.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=E7.select(n),u=function(c,h){var d=t.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(a===r){var l=!s.classed("active");s.classed("active",l),u(n,l)}}else{var f=a===null?a:_z.nestedProperty(t,a).get();s.classed("active",f===i),u(n,f===i)}})};Cy.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var pht=jc(),Bfe=lc(),k7=$l(),vht=iv().isUnifiedHover,mht=Ofe(),xz=T7(),yht=S7().DRAW_MODES,ght=ei().extendDeep;qfe.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Tht(a):!n.displayModeBar&&n.watermark?o=[]:o=_ht(t),i?i.update(t,o):r._modeBar=mht(t,o)};function _ht(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,H){if(typeof H=="string"){if(H.toLowerCase()===N.toLowerCase())return!0}else{var re=H.name,ae=H._cat||H.name;if(re===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var H=0;H1?(P=["toggleHover"],M=["resetViews"]):c?(m=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],M=["resetGeo"]):f?(P=["hoverClosest3d"],M=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(m=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],M=["resetViewMapbox"]):b?(m=["zoomInMap","zoomOutMap"],P=["toggleHover"],M=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],M=["resetViewSankey"]):P=["toggleHover"],l&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(wht(r)||L)&&(P=[]),l&&!A&&(m=["zoomIn2d","zoomOut2d","autoScale2d"],M[0]!=="resetViews"&&(M=["resetScale2d"])),f?O=["zoom3d","pan3d","orbitRotation","tableRotation"]:l&&!A||p?O=["zoom2d","pan2d"]:y||b||c?O=["pan2d"]:v&&(O=["zoom2d"]),bht(r)&&O.push("select2d","lasso2d");var F=[],U=function(N){F.indexOf(N)===-1&&P.indexOf(N)!==-1&&F.push(N)};if(Array.isArray(s)){for(var G=[],j=0;j{"use strict";Ufe.exports={moduleType:"component",name:"modebar",layoutAttributes:M7(),supplyLayoutDefaults:Ife(),manage:Nfe()}});var L7=we((rlr,Vfe)=>{"use strict";var Sht=Nh().FROM_BL;Vfe.exports=function(t,r,n){n===void 0&&(n=Sht[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var $b=we(L5=>{"use strict";var Jb=ei(),P7=Mm(),Lm=jc().id2name,Mht=Dd(),Gfe=L7(),Eht=xy(),kht=rf().ALMOST_EQUAL,Cht=Nh().FROM_BL;L5.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,u,l,f,c,h,d,p;for(s=0;sa?r.slice(a):n.slice(i))+o}function Pht(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;okht*p&&!C)){for(a=0;aO&&reP&&(P=re);var me=(P-m)/(2*M);c/=me,m=u.l2r(m),P=u.l2r(P),u.range=u._input.range=x{"use strict";var wz=Kl(),Np=$l(),Jv=Cc(),M0=ei(),R7=Wf(),D7=S5(),P5=jl(),lA=Mu(),Xfe=Ob(),$fe=C7(),z5=wu(),Fg=Nh(),Qfe=$b(),zht=Qfe.enforce,Iht=Qfe.clean,Zfe=Mm().doAutoRange,ece="start",Rht="middle",tce="end",Dht=qh().zindexSeparator;md.layoutStyles=function(e){return M0.syncOrAsync([Jv.doAutoMargin,Oht],e)};function Fht(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Oht(e){var t=e._fullLayout,r=t._size,n=r.p,i=z5.list(e,"",!0),a,o,s,u,l,f;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(lA.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),md.drawMainTitle(e),$fe.manage(e),!t._has("cartesian"))return Jv.previousPromises(e);function c(Ie,ge,Be){var ce=Ie._lw/2;if(Ie._id.charAt(0)==="x"){if(ge){if(Be==="top")return ge._offset-n-ce}else return r.t+r.h*(1-(Ie.position||0))+ce%1;return ge._offset+ge._length+n+ce}if(ge){if(Be==="right")return ge._offset+ge._length+n+ce}else return r.l+r.w*(Ie.position||0)+ce%1;return ge._offset-n-ce}for(a=0;a0){Uht(e,a,l,u),s.attr({x:o,y:a,"text-anchor":n,dy:Jfe(t.yanchor)}).call(R7.positionText,o,a);var f=(t.text.match(R7.BR_TAG_ALL)||[]).length;if(f){var c=Fg.LINE_SPACING*f+Fg.MID_SHIFT;t.y===0&&(c=-c),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",b)})}var h=wz.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,y=p+Xfe.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y,"text-anchor":n,dy:Jfe(t.yanchor)}).call(R7.positionText,o,y)}}}};function Bht(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=qht(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Uht(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},u={};a.yref==="paper"&&Bht(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(u[o]=r,e._fullLayout._reservedMargin[i]=u),Jv.allowAutoMargin(e,i),Jv.autoMargin(e,i,s)}function Vht(e,t){var r=e.title,n=e._size,i=0;return t===ece?i=r.pad.l:t===tce&&(i=-r.pad.r),r.xref==="paper"?n.l+n.w*r.x+i:e.width*r.x+i}function Ght(e,t){var r=e.title,n=e._size,i=0;return t==="0em"||!t?i=-r.pad.b:t===Fg.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto"?n.t/2:r.yref==="paper"?n.t+n.h-n.h*r.y+i:e.height-e.height*r.y+i}function Jfe(e){return e==="top"?Fg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Fg.MID_SHIFT+"em"}function Hht(e){var t=e.title,r=Rht;return M0.isRightAnchor(t)?r=tce:M0.isLeftAnchor(t)&&(r=ece),r}function Wht(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Fg.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Fg.MID_SHIFT+"em"),r}md.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var jht=g_().readPaths,Xht=fz(),rce=s_().clearOutlineControllers,F7=jl(),ice=Mu(),Zht=Lf().arrayEditor,nce=b_(),Yht=nce.getPathString;oce.exports={draw:Az,drawOne:ace,activateLastSelection:$ht};function Az(e){var t=e._fullLayout;rce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var v=o.append("path").attr(u).style("opacity",b?.1:l).call(F7.stroke,c).call(F7.fill,f).call(ice.dashLine,b?"solid":d,b?4+h:h);if(Kht(v,e,n),p){var C=Zht(e.layout,"selections",n);v.style({cursor:"move"});var E={element:v.node(),plotinfo:i,gd:e,editHelpers:C,isActiveSelection:!0},A=jht(s,e);Xht(A,v,E)}else v.style("pointer-events",b?"all":"none");y[b]=v}var L=y[0],x=y[1];x.node().addEventListener("click",function(){return Jht(e,L)})}}function Kht(e,t,r){var n=r.xref+r.yref;ice.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function Jht(e,t){if(Tz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){O7(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=O7,Az(e)}}}function $ht(e){if(Tz(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=O7,Az(e)}}function O7(e){if(Tz(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(rce(e),delete e._fullLayout._activeSelectionIndex,Az(e))}}});var lce=we((olr,sce)=>{function Qht(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}sce.exports=Qht});var fce=we((slr,uce)=>{function edt(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],u=i[1],l=r[0],f=r[1];return(s-a)*(f-o)-(u-o)*(l-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],u=i[1]-n[1],l=s*o+a*u;if(l-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-f)*(a-c)/(s-c)+f-i>e&&(u=!u),o=f,s=c}return u}};return t}uce.exports=edt});var hce=we((llr,cce)=>{var tdt={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};cce.exports=tdt});var pce=we((ulr,dce)=>{var R5=hce();function rdt(e,t,r){function n(p,y){return{id:r?r.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function i(p,y,b){return{id:r?r.segmentId():-1,start:p,end:y,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=R5.create();function o(p,y,b,v,C,E){var A=t.pointsCompare(y,C);return A!==0?A:t.pointsSame(b,E)?0:p!==v?p?1:-1:t.pointAboveOrOnLine(b,v?C:E,v?E:C)?1:-1}function s(p,y){a.insertBefore(p,function(b){var v=o(p.isStart,p.pt,y,b.isStart,b.pt,b.other.pt);return v<0})}function u(p,y){var b=R5.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return s(b,p.end),b}function l(p,y,b){var v=R5.node({isStart:!1,pt:y.end,seg:y,primary:b,other:p,status:null});p.other=v,s(v,p.pt)}function f(p,y){var b=u(p,y);return l(b,p,y),b}function c(p,y){r&&r.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,s(p.other,p.pt)}function h(p,y){var b=i(y,p.seg.end,p.seg);return c(p,y),f(b,p.primary)}function d(p,y){var b=R5.create();function v(G,j){var W=G.seg.start,N=G.seg.end,H=j.seg.start,re=j.seg.end;return t.pointsCollinear(W,H,re)?t.pointsCollinear(N,H,re)||t.pointAboveOrOnLine(N,H,re)?1:-1:t.pointAboveOrOnLine(W,H,re)?1:-1}function C(G){return b.findTransition(function(j){var W=v(G,j.ev);return W>0})}function E(G,j){var W=G.seg,N=j.seg,H=W.start,re=W.end,ae=N.start,me=N.end;r&&r.checkIntersection(W,N);var Ce=t.linesIntersect(H,re,ae,me);if(Ce===!1){if(!t.pointsCollinear(H,re,ae)||t.pointsSame(H,me)||t.pointsSame(re,ae))return!1;var Ee=t.pointsSame(H,ae),de=t.pointsSame(re,me);if(Ee&&de)return j;var te=!Ee&&t.pointBetween(H,ae,me),Se=!de&&t.pointBetween(re,ae,me);if(Ee)return Se?h(j,re):h(G,me),j;te&&(de||(Se?h(j,re):h(G,me)),h(j,H))}else Ce.alongA===0&&(Ce.alongB===-1?h(G,ae):Ce.alongB===0?h(G,Ce.pt):Ce.alongB===1&&h(G,me)),Ce.alongB===0&&(Ce.alongA===-1?h(j,H):Ce.alongA===0?h(j,Ce.pt):Ce.alongA===1&&h(j,re));return!1}for(var A=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(k){var j=E(L,k);if(j)return j}return S?E(L,S):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var x=C(L),k=x.before?x.before.ev:null,S=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,k?k.seg:!1,S?S.seg:!1);var m=G();if(m){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(m.seg.myFill.above=!m.seg.myFill.above)}else m.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(m.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,S?L.seg.myFill.below=S.seg.myFill.above:L.seg.myFill.below=p,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var M;S?L.primary===S.primary?M=S.seg.otherFill.above:M=S.seg.myFill.above:M=L.primary?y:p,L.seg.otherFill={above:M,below:M}}r&&r.status(L.seg,k?k.seg:!1,S?S.seg:!1),L.other.status=x.insert(R5.node({ev:L}))}else{var O=L.status;if(O===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(O.prev)&&b.exists(O.next)&&E(O.prev.ev,O.next.ev),r&&r.statusRemove(O.ev.seg),O.remove(),!L.primary){var F=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=F}A.push(L.seg)}a.getHead().remove()}return r&&r.done(),A}return e?{addRegion:function(p){for(var y,b=p[p.length-1],v=0;v{function idt(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var u={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(U,G,j){return f.index=U,f.matches_head=G,f.matches_pt1=j,f===u?(f=l,!1):(f=null,!0)}for(var h=0;h{function D5(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var ndt={union:function(e,t){return D5(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return D5(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return D5(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return D5(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return D5(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};yce.exports=ndt});var xce=we((hlr,_ce)=>{var adt={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(l){var f=l.slice(0,l.length-1);return e.segments({inverted:!1,regions:[f]})}for(var s=o(a[0]),u=1;u{var odt=lce(),sdt=fce(),bce=pce(),ldt=mce(),F5=gce(),wce=xce(),E0=!1,O5=sdt(),kv;kv={buildLog:function(e){return e===!0?E0=odt():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return O5.epsilon(e)},segments:function(e){var t=bce(!0,O5,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=bce(!1,O5,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:F5.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:F5.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:F5.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:F5.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:F5.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:ldt(e.segments,O5,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return wce.toPolygon(kv,e)},polygonToGeoJSON:function(e){return wce.fromPolygon(kv,O5,e)},union:function(e,t){return B5(e,t,kv.selectUnion)},intersect:function(e,t){return B5(e,t,kv.selectIntersect)},difference:function(e,t){return B5(e,t,kv.selectDifference)},differenceRev:function(e,t){return B5(e,t,kv.selectDifferenceRev)},xor:function(e,t){return B5(e,t,kv.selectXor)}};function B5(e,t,r){var n=kv.segments(e),i=kv.segments(t),a=kv.combine(n,i),o=r(a);return kv.polygon(o)}typeof window=="object"&&(window.PolyBool=kv);Ace.exports=kv});var Mce=we((plr,Sce)=>{Sce.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var u=i-n,l=0,f=u-1;lo!=p>o&&a<(d-c)*(o-h)/(p-h)+c;y&&(s=!s)}return s}});var q5=we((vlr,Ece)=>{"use strict";var q7=IL().dot,Sz=rf().BADNUM,Mz=Ece.exports={};Mz.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||v===Sz||vo||y&&l(p))}function c(p,y){var b=p[0],v=p[1];if(b===Sz||bi||v===Sz||vo)return!1;var C=r.length,E=r[0][0],A=r[0][1],L=0,x,k,S,m,P;for(x=1;xMath.max(k,E)||v>Math.max(S,A)))if(vs||Math.abs(q7(c,l))>i)return!0;return!1};Mz.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(u){t.push(u);var l=n.length,f=i;n.splice(a+1);for(var c=f+1;c1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var Cce=we((mlr,kce)=>{"use strict";kce.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Jce=we((ylr,Kce)=>{"use strict";var Lce=Tce(),udt=Mce(),V5=$l(),fdt=Mu().dashStyle,N5=jl(),cdt=Vc(),hdt=iv().makeEventData,X5=Cm(),ddt=X5.freeMode,pdt=X5.rectMode,G5=X5.drawMode,G7=X5.openMode,H7=X5.selectMode,Pce=b_(),zce=E5(),Oce=fz(),Bce=s_().clearOutline,qce=g_(),N7=qce.handleEllipse,vdt=qce.readPaths,mdt=sz().newShapes,ydt=p7(),gdt=B7().activateLastSelection,kz=ei(),_dt=kz.sorterAsc,Nce=q5(),U5=jL(),k0=jc().getFromId,xdt=S5(),bdt=I5().redrawReglTraces,Cz=Cce(),Ly=Cz.MINSELECT,wdt=Nce.filter,W7=Nce.tester,j7=iz(),Ice=j7.p2r,Adt=j7.axValue,Tdt=j7.getTransform;function X7(e){return e.subplot!==void 0}function Sdt(e,t,r,n,i){var a=!X7(n),o=ddt(i),s=pdt(i),u=G7(i),l=G5(i),f=H7(i),c=i==="drawline",h=i==="drawcircle",d=c||h,p=n.gd,y=p._fullLayout,b=f&&y.newselection.mode==="immediate"&&a,v=y._zoomlayer,C=n.element.getBoundingClientRect(),E=n.plotinfo,A=Tdt(E),L=t-C.left,x=r-C.top;y._calcInverseTransform(p);var k=kz.apply3DTransform(y._invTransform)(L,x);L=k[0],x=k[1];var S=y._invScaleX,m=y._invScaleY,P=L,M=x,O="M"+L+","+x,F=n.xaxes[0],U=n.yaxes[0],G=F._length,j=U._length,W=e.altKey&&!(G5(i)&&u),N,H,re,ae,me,Ce,Ee;Vce(e,p,n),o&&(N=wdt([[L,x]],Cz.BENDPX));var de=v.selectAll("path.select-outline-"+E.id).data([1]),te=l?y.newshape:y.newselection;l&&(n.hasText=te.label.text||te.label.texttemplate);var Se=l&&!u?te.fillcolor:"rgba(0,0,0,0)",Te=te.line.color||(a?N5.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");de.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:l?te.opacity/2:1,"stroke-dasharray":fdt(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(N5.stroke,Te).call(N5.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!l).attr("transform",A).attr("d",O+"Z");var be=v.append("path").attr("class","zoombox-corners").style({fill:N5.background,stroke:N5.defaultLine,"stroke-width":1}).attr("transform",A).attr("d","M0,0Z");if(l&&n.hasText){var He=v.select(".label-temp");He.empty()&&(He=v.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ie=y._uid+Cz.SELECTID,ge=[],Be=Lz(p,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var je=F._id,rt=U._id;Xce(p,je,rt,Be);for(var bt=(p.layout||{}).selections||[],Ot=[],it=!1,Ke=0;Ke=0){p._fullLayout._deactivateShape(p);return}if(!l){var bt=y.clickmode;U5.done(Ie).then(function(){if(U5.clear(Ie),je===2){for(de.remove(),me=0;me-1&&Uce(rt,p,n.xaxes,n.yaxes,n.subplot,n,de),bt==="event"&&j5(p,void 0);cdt.click(p,rt,E.id)}).catch(kz.error)}},n.doneFn=function(){be.remove(),U5.done(Ie).then(function(){U5.clear(Ie),!b&&ae&&n.selectionDefs&&(ae.subtract=W,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||l)&&H5(n,b),n.doneFnCompleted&&n.doneFnCompleted(ge),f&&j5(p,Ee)}).catch(kz.error)}}function Uce(e,t,r,n,i,a,o){var s=t._hoverdata,u=t._fullLayout,l=u.clickmode,f=l.indexOf("event")>-1,c=[],h,d,p,y,b,v,C,E,A,L;if(Ldt(s)){Vce(e,t,a),h=Lz(t,r,n,i);var x=Pdt(s,h),k=x.pointNumbers.length>0;if(k?zdt(h,x):Idt(h)&&(C=Dce(x))){for(o&&o.remove(),L=0;L=0}function Cdt(e){return e._fullLayout._activeSelectionIndex>=0}function H5(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;kdt(i)&&i._fullLayout._deactivateShape(i),Cdt(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=G5(r),u=H7(r);if(s||u){var l=o.selectAll(".select-outline-"+n.id);if(l&&i._fullLayout._outlining){var f;s&&(f=mdt(l,e)),f&&V5.call("_guiRelayout",i,{shapes:f});var c;u&&!X7(e)&&(c=ydt(l,e)),c&&(i._fullLayout._noEmitSelectedAtStart=!0,V5.call("_guiRelayout",i,{selections:c}).then(function(){t&&gdt(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function Rce(e){return e._id}function Lz(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(Rce),o=r.map(Rce),s,u,l;for(l=0;l0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function zdt(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function W5(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var je=Fce(e,!0);if(je.length){var rt=je[0].xref,bt=je[0].yref;if(rt&&bt){var Ot=Zce(je),it=Yce([k0(e,rt,"x"),k0(e,bt,"y")]);it(ge,Ot)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&j5(e,ge),h._reselect=!1}if(!o&&h._deselect){var Ke=h._deselect;s=Ke.xref,u=Ke.yref,Fdt(s,u,f)||Xce(e,s,u,n),ce&&(ge.points.length?j5(e,ge):K7(e)),h._deselect=!1}return{eventData:ge,selectionTesters:r}}function Ddt(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";$ce.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Z5=we((_lr,Qce)=>{"use strict";Qce.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Qb=we((blr,rhe)=>{"use strict";var ehe=J7(),the=gc(),Pz=qh(),Udt=Lf().templatedArray,xlr=Z5();rhe.exports=Udt("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:the({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:ehe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:ehe.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Pz.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Pz.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Pz.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Pz.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:the({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Py=we((wlr,ihe)=>{"use strict";ihe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Pm=we((Alr,nhe)=>{"use strict";nhe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Zc=we((Tlr,hhe)=>{"use strict";var ahe=Xc().axisHoverFormat,{hovertemplateAttrs:Vdt,texttemplateAttrs:Gdt,templatefallbackAttrs:ohe}=Of(),she=nc(),Hdt=gc(),lhe=Id().dash,Wdt=Id().pattern,jdt=Mu(),Xdt=Py(),Y5=Su().extendFlat,Zdt=Pm();function uhe(e){return{valType:"any",dflt:0,editType:"calc"}}function fhe(e){return{valType:"any",editType:"calc"}}function che(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}hhe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:uhe("x"),yperiod:uhe("y"),xperiod0:fhe("x0"),yperiod0:fhe("y0"),xperiodalignment:che("x"),yperiodalignment:che("y"),xhoverformat:ahe("x"),yhoverformat:ahe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Gdt(),texttemplatefallback:ohe({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Vdt({},{keys:Xdt.eventDataKeys}),hovertemplatefallback:ohe(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Y5({},lhe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Zdt(!0),fillgradient:Y5({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Wdt,marker:Y5({symbol:{valType:"enumerated",values:jdt.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Y5({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Y5({},lhe,{arrayOk:!0}),editType:"calc"},she("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},she("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Hdt({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var $7=we((Mlr,vhe)=>{"use strict";var dhe=Qb(),phe=Zc().line,Ydt=Id().dash,zz=Su().extendFlat,Kdt=Sc().overrideAll,Jdt=Lf().templatedArray,Slr=Z5();vhe.exports=Kdt(Jdt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:zz({},dhe.xref,{}),yref:zz({},dhe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:phe.color,width:zz({},phe.width,{min:1,dflt:1}),dash:zz({},Ydt,{dflt:"dot"})}}),"arraydraw","from-root")});var _he=we((Elr,ghe)=>{"use strict";var mhe=ei(),Iz=wu(),$dt=$d(),Qdt=$7(),yhe=b_();ghe.exports=function(t,r){$dt(t,r,{name:"selections",handleItemDefaults:ept});for(var n=r.selections,i=0;i{"use strict";xhe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var K5=we((Clr,The)=>{"use strict";var tpt=$l(),whe=ei(),Ahe=jc();The.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=tpt.subplotsRegistry.cartesian,s=o.idRegex,u=i._subplots,l=u.xaxis,f=u.yaxis,c=u.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var She=B7(),J5=Jce();Mhe.exports={moduleType:"component",name:"selections",layoutAttributes:$7(),supplyLayoutDefaults:_he(),supplyDrawNewSelectionDefaults:bhe(),includeBasePlot:K5()("selections"),draw:She.draw,drawOne:She.drawOne,reselect:J5.reselect,prepSelect:J5.prepSelect,clearOutline:J5.clearOutline,clearSelectionsCache:J5.clearSelectionsCache,selectOnClick:J5.selectOnClick}});var aU=we((Plr,jhe)=>{"use strict";var iU=Kl(),C0=ei(),Ehe=C0.numberFormat,rpt=hd(),ipt=GP(),Rz=$l(),Fhe=C0.strTranslate,npt=Wf(),khe=jl(),A_=Mu(),apt=Vc(),Che=wu(),opt=Em(),spt=xp(),Ohe=Cm(),Dz=Ohe.selectingOrDrawing,lpt=Ohe.freeMode,upt=Nh().FROM_TL,fpt=S5(),cpt=I5().redrawReglTraces,hpt=Cc(),eU=jc().getFromId,dpt=oh().prepSelect,ppt=oh().clearOutline,vpt=oh().selectOnClick,Q7=L7(),nU=qh(),Lhe=nU.MINDRAG,av=nU.MINZOOM,Phe=!0;function mpt(e,t,r,n,i,a,o,s){var u=e._fullLayout._zoomlayer,l=o+s==="nsew",f=(o+s).length===1,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W;r+=t.yaxis._shift;function N(){if(c=t.xaxis,h=t.yaxis,E=c._length,A=h._length,v=c._offset,C=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var Ve=t.overlays,et=0;et=0){tt._fullLayout._deactivateShape(tt);return}var Lt=tt._fullLayout.clickmode;if(rU(tt),Ve===2&&!f&&Me(),l)Lt.indexOf("select")>-1&&vpt(et,tt,y,b,t.id,ae),Lt.indexOf("event")>-1&&apt.click(tt,et,t.id);else if(Ve===1&&f){var jt=o?h:c,or=o==="s"||s==="w"?0:1,yr=jt._name+".range["+or+"]",vr=ypt(jt,or),Vt="left",Pe="middle";if(jt.fixedrange)return;o?(Pe=o==="n"?"top":"bottom",jt.side==="right"&&(Vt="right")):s==="e"&&(Vt="right"),tt._context.showAxisRangeEntryBoxes&&iU.select(re).call(npt.makeEditable,{gd:tt,immediate:!0,background:tt._fullLayout.paper_bgcolor,text:String(vr),fill:jt.tickfont?jt.tickfont.color:"#444",horizontalAlign:Vt,verticalAlign:Pe}).on("edit",function(xe){var Oe=jt.d2r(xe);Oe!==void 0&&Rz.call("_guiRelayout",tt,yr,Oe)})}}spt.init(ae);var Ee,de,te,Se,Te,be,He,Ie,ge,Be;function ce(Ve,et,tt){var Lt=re.getBoundingClientRect();Ee=et-Lt.left,de=tt-Lt.top,e._fullLayout._calcInverseTransform(e);var jt=C0.apply3DTransform(e._fullLayout._invTransform)(Ee,de);Ee=jt[0],de=jt[1],te={l:Ee,r:Ee,w:0,t:de,b:de,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:rpt(e._fullLayout.plot_bgcolor).getLuminance(),Te="M0,0H"+E+"V"+A+"H0V0",be=!1,He="xy",Be=!1,Ie=Nhe(u,Se,v,C,Te),ge=Uhe(u,v,C)}function je(Ve,et){if(e._transitioningWithDuration)return!1;var tt=Math.max(0,Math.min(E,j*Ve+Ee)),Lt=Math.max(0,Math.min(A,W*et+de)),jt=Math.abs(tt-Ee),or=Math.abs(Lt-de);te.l=Math.min(Ee,tt),te.r=Math.max(Ee,tt),te.t=Math.min(de,Lt),te.b=Math.max(de,Lt);function yr(){He="",te.r=te.l,te.t=te.b,ge.attr("d","M0,0Z")}if(L.isSubplotConstrained)jt>av||or>av?(He="xy",jt/E>or/A?(or=jt*A/E,de>Lt?te.t=de-or:te.b=de+or):(jt=or*E/A,Ee>tt?te.l=Ee-jt:te.r=Ee+jt),ge.attr("d",Fz(te))):yr();else if(x.isSubplotConstrained)if(jt>av||or>av){He="xy";var vr=Math.min(te.l/E,(A-te.b)/A),Vt=Math.max(te.r/E,(A-te.t)/A);te.l=vr*E,te.r=Vt*E,te.b=(1-vr)*A,te.t=(1-Vt)*A,ge.attr("d",Fz(te))}else yr();else!S||or0){var xe;if(x.isSubplotConstrained||!k&&S.length===1){for(xe=0;xe1&&(yr.maxallowed!==void 0&&P===(yr.range[0]1&&(vr.maxallowed!==void 0&&M===(vr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function _pt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Nhe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Fhe(r,n)).attr("d",i+"Z")}function Uhe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:khe.background,stroke:khe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Fhe(t,r)).attr("d","M0,0Z")}function Vhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),Ghe(e,t,i,a)}function Ghe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function rU(e){iU.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Hhe(e){Phe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long",e),Phe=!1)}function xpt(e,t){return"M"+(e.l-.5)+","+(t-av-.5)+"h-3v"+(2*av+1)+"h3ZM"+(e.r+.5)+","+(t-av-.5)+"h3v"+(2*av+1)+"h-3Z"}function bpt(e,t){return"M"+(t-av-.5)+","+(e.t-.5)+"v-3h"+(2*av+1)+"v3ZM"+(t-av-.5)+","+(e.b+.5)+"v3h"+(2*av+1)+"v-3Z"}function Fz(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,av)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function Rhe(e,t,r,n,i){for(var a=!1,o={},s={},u,l,f,c,h=(i||{}).xaHash,d=(i||{}).yaHash,p=0;p{"use strict";var wpt=Kl(),Oz=Vc(),Apt=xp(),Tpt=Em(),zm=aU().makeDragBox,yd=qh().DRAGGERSIZE;Bz.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){wpt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),u=o.split("y");return s[0]===u[0]?Number(s[1]||1)-Number(u[1]||1):Number(s[0]||1)-Number(u[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,u=o.yaxis;if(!o.mainplot){var l=zm(t,o,s._offset,u._offset,s._length,u._length,"ns","ew");l.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&Oz.hover(t,h,a)},Oz.hover(t,h,a),t._fullLayout._lasthover=l,t._fullLayout._hoversubplot=a},l.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Apt.unhover(t,h))},t._context.showAxisDragHandles&&(zm(t,o,s._offset-yd,u._offset-yd,yd,yd,"n","w"),zm(t,o,s._offset+s._length,u._offset-yd,yd,yd,"n","e"),zm(t,o,s._offset-yd,u._offset+u._length,yd,yd,"s","w"),zm(t,o,s._offset+s._length,u._offset+u._length,yd,yd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var f=s._mainLinePosition;s.side==="top"&&(f-=yd),zm(t,o,s._offset+s._length*.1,f,s._length*.8,yd,"","ew"),zm(t,o,s._offset,f,s._length*.1,yd,"","w"),zm(t,o,s._offset+s._length*.9,f,s._length*.1,yd,"","e")}if(a===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=yd),zm(t,o,c,u._offset+u._length*.1,yd,u._length*.8,"ns",""),zm(t,o,c,u._offset+u._length*.9,yd,u._length*.1,"s",""),zm(t,o,c,u._offset,yd,u._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,Oz.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,Oz.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},Bz.updateFx(t)}};Bz.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Tpt(t._draggers,r)}});var Yhe=we((Ilr,Zhe)=>{"use strict";var Xhe=$l();Zhe.exports=function(t){for(var r=Xhe.layoutArrayContainers,n=Xhe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Spt=Sg(),sU=zL(),$5=J1(),Mpt=GL().sorterAsc,lU=$l();Q5.containerArrayMatch=Yhe();var Ept=Q5.isAddVal=function(t){return t==="add"||Spt(t)},Khe=Q5.isRemoveVal=function(t){return t===null||t==="remove"};Q5.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=lU.getComponentMethod(o,"supplyLayoutDefaults"),u=lU.getComponentMethod(o,"draw"),l=lU.getComponentMethod(o,"drawOne"),f=i.replot||i.recalc||s===sU||u===sU,c=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&$5.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Khe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return $5.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(s(c,h),u(t),!0)}var p=Object.keys(n).map(Number).sort(Mpt),y=r.get(),b=y||[],v=a(h,o).get(),C=[],E=-1,A=b.length,L,x,k,S,m,P,M,O;for(L=0;Lb.length-(M?0:1)){$5.warn("index out of range",o,k);continue}if(P!==void 0)m.length>1&&$5.warn("Insertion & removal are incompatible with edits to the same index.",o,k),Khe(P)?C.push(k):M?(P==="add"&&(P={}),b.splice(k,0,P),v&&v.splice(k,0,{})):$5.warn("Unrecognized full object edit value",o,k,P),E===-1&&(E=k);else for(x=0;x=0;L--)b.splice(C[L],1),v&&v.splice(C[L],1);if(b.length?y||r.set(b):r.set(null),f)return!1;if(s(c,h),l!==sU){var F;if(E===-1)F=p;else{for(A=Math.max(b.length,A),F=[],L=0;L=E));L++)F.push(k);for(L=E;L{"use strict";var tde=ku(),rde=$l(),Up=ei(),eE=Cc(),ide=jc(),nde=jl(),tE=ide.cleanId,kpt=ide.getFromTrace,uU=rde.traceIs,Cpt=["x","y","z"];L0.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Up.log("Clearing previous rejected promises from queue."),e._promises=[]};L0.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(eE.subplotsRegistry.cartesian||{}).attrRegex,i=(eE.subplotsRegistry.polar||{}).attrRegex,a=(eE.subplotsRegistry.ternary||{}).attrRegex,o=(eE.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),nde.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function uA(e,t,r=!1){var n=e[t],i=t.charAt(0);r&&Array.isArray(n)||n&&n!=="paper"&&(e[t]=tE(n,i,!0))}L0.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}L0.hasParent=function(e,t){for(var r=ede(t);r;){if(r in e)return!0;r=ede(r)}return!1};L0.clearAxisTypes=function(e,t,r){for(var n=0;n{let r=(...n)=>n.every(i=>Up.isPlainObject(i))||n.every(i=>Array.isArray(i));if([e,t].every(n=>Array.isArray(n))){if(e.length!==t.length)return!1;for(let n=0;nUp.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let i=e[n],a=t[n];if(i!==a&&!(r(i,a)?fU(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=fU});var Jz=we(If=>{"use strict";var Vz=Kl(),zpt=ku(),Ipt=wq(),Hl=ei(),Lc=Hl.nestedProperty,dU=z3(),ov=Une(),P0=$l(),Yz=D3(),Nu=Cc(),Vp=wu(),Rpt=BN(),Dpt=Dd(),cU=Mu(),Fpt=jl(),Opt=oU().initInteractions,Bpt=jv(),qpt=oh().clearOutline,fde=xb().dfltConfig,Nz=Jhe(),Sh=ade(),ac=I5(),T_=Sc(),Npt=qh().AX_NAME_PATTERN,hU=0,ode=5;function Upt(e,t,r,n){var i;if(e=Hl.getGraphDiv(e),dU.init(e),Hl.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=dU.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Hl.isPlotDiv(e)&&Hl.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return If.addFrames(e,i)}hde(e,n),r||(r={}),Vz.select(e).classed("js-plotly-plot",!0),cU.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Sh.cleanData(t),u?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||u)&&(e.layout=Sh.cleanLayout(r)),Nu.supplyDefaults(e);var l=e._fullLayout,f=l._has("cartesian");l._replotting=!0,(u||l._shouldCreateBgLayer)&&(fvt(e),l._shouldCreateBgLayer&&delete l._shouldCreateBgLayer),cU.initGradients(e),cU.initPatterns(e),u&&Vp.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Nu.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function dde(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Hz(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Hz(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function jpt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&f=0&&f0&&typeof S.parts[M]!="string";)M--;var O=S.parts[M],F=S.parts[M-1]+"."+O,U=S.parts.slice(0,M).join("."),G=Lc(e.layout,U).get(),j=Lc(n,U).get(),W=S.get();if(m!==void 0){v[k]=m,C[k]=O==="reverse"?m:Og(W);var N=Yz.getLayoutValObject(n,S.parts);if(N&&N.impliedEdits&&m!==null)for(var H in N.impliedEdits)E(Hl.relativeAttr(k,H),N.impliedEdits[H]);if(["width","height"].indexOf(k)!==-1)if(m){E("autosize",null);var re=k==="height"?"width":"height";E(re,n[re])}else n[k]=e._initialAutoSize[k];else if(k==="autosize")E("width",m?null:n.width),E("height",m?null:n.height);else if(F.match(wde))x(F),Lc(n,U+"._inputRange").set(null);else if(F.match(Ade)){x(F),Lc(n,U+"._inputRange").set(null);var ae=Lc(n,U).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else F.match(Kpt)&&Lc(n,U+"._inputDomain").set(null);if(O==="type"){L=G;var me=j.type==="linear"&&m==="log",Ce=j.type==="log"&&m==="linear";if(me||Ce){if(!L||!L.range)E(U+".autorange",!0);else if(j.autorange)me&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Ee=L.range[0],de=L.range[1];me?(Ee<=0&&de<=0&&E(U+".autorange",!0),Ee<=0?Ee=de/1e6:de<=0&&(de=Ee/1e6),E(U+".range[0]",Math.log(Ee)/Math.LN10),E(U+".range[1]",Math.log(de)/Math.LN10)):(E(U+".range[0]",Math.pow(10,Ee)),E(U+".range[1]",Math.pow(10,de)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete n[S.parts[0]]._subplot.viewInitial["radialaxis.range"],P0.getComponentMethod("annotations","convertCoords")(e,j,m,E),P0.getComponentMethod("images","convertCoords")(e,j,m,E)}else E(U+".autorange",!0),E(U+".range",null);Lc(n,U+"._inputRange").set(null)}else if(O.match(Npt)){var te=Lc(n,k).get(),Se=(m||{}).type;(!Se||Se==="-")&&(Se="linear"),P0.getComponentMethod("annotations","convertCoords")(e,te,Se,E),P0.getComponentMethod("images","convertCoords")(e,te,Se,E)}var Te=Nz.containerArrayMatch(k);if(Te){f=Te.array,c=Te.index;var be=Te.property,He=N||{editType:"calc"};c!==""&&be===""&&(Nz.isAddVal(m)?C[k]=null:Nz.isRemoveVal(m)?C[k]=(Lc(r,f).get()||[])[c]:Hl.warn("unrecognized full object value",t)),T_.update(b,He),l[f]||(l[f]={});var Ie=l[f][c];Ie||(Ie=l[f][c]={}),Ie[be]=m,delete t[k]}else O==="reverse"?(G.range?G.range.reverse():(E(U+".autorange",!0),G.range=[1,0]),j.autorange?b.calc=!0:b.plot=!0):(k==="dragmode"&&(m===!1&&W!==!1||m!==!1&&W===!1)||n._has("scatter-like")&&n._has("regl")&&k==="dragmode"&&(m==="lasso"||m==="select")&&!(W==="lasso"||W==="select")?b.plot=!0:N?T_.update(b,N):b.calc=!0,S.set(m))}}for(f in l){var ge=Nz.applyContainerArrayChanges(e,a(r,f),l[f],b,a);ge||(b.plot=!0)}for(var Be in A){L=Vp.getFromId(e,Be);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var je in ce)A[je]||(Vp.getFromId(e,je)._constraintShrinkable=!0)}}(Sde(e)||t.height||t.width)&&(b.plot=!0);var rt=n.shapes;for(c=0;c1;)if(n.pop(),r=Lc(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function Qpt(e,t){for(var r=0;r[U,e._ev.listeners(U)]);a=If.newPlot(e,t,r,n).then(()=>{for(let[U,G]of F)G.forEach(j=>e.on(U,j));return If.react(e,t,r,n)})}else{e.data=t||[],Sh.cleanData(e.data),e.layout=r||{},Sh.cleanLayout(e.layout),tvt(e.data,e.layout,s,u),Nu.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,p=h.transition,y=nvt(e,u,h,d,p),b=y.newDataRevision,v=ivt(e,s,c,d,p,b);if(Sde(e)&&(y.layoutReplot=!0),v.calc||y.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),E=0;E(f||e.emit("plotly_react",{config:n,data:t,layout:r}),e))}function ivt(e,t,r,n,i,a){var o=t.length===r.length;if(!i&&!o)return{fullReplot:!0,calc:!0};var s=T_.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var u,l;function f(d){var p=Yz.getTraceValObject(l,d);return!l._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:s,immutable:n,transition:i,newDataRevision:a,gd:e},h={};for(u=0;u=i.length?i[0]:i[l]:i}function s(l){return Array.isArray(a)?l>=a.length?a[0]:a[l]:a}function u(l,f){var c=0;return function(){if(l&&++c===f)return l()}}return new Promise(function(l,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var O=n._frameQueue.pop();O.onInterrupt&&O.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(O){if(O.length!==0){for(var F=0;Fn._timeToNext&&p()};O()}var b=0;function v(O){return Array.isArray(i)?b>=i.length?O.transitionOpts=i[b]:O.transitionOpts=i[0]:O.transitionOpts=i,b++,O}var C,E,A=[],L=t==null,x=Array.isArray(t),k=!L&&!x&&Hl.isPlainObject(t);if(k)A.push({type:"object",data:v(Hl.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(C=0;C0&&PP)&&M.push(E);A=M}}A.length>0?h(A):(e.emit("plotly_animated"),l())})}function ovt(e,t,r){if(e=Hl.getGraphDiv(e),t==null)return Promise.resolve();if(!Hl.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var l=s.length+t.length*2,f=[],c={};for(n=t.length-1;n>=0;n--)if(Hl.isPlainObject(t[n])){var h=t[n].name,d=(u[h]||c[h]||{}).name,p=t[n].name,y=u[d]||c[d];d&&p&&typeof p=="number"&&y&&hUS.index?-1:k.index=0;n--){if(i=f[n].frame,typeof i.name=="number"&&Hl.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;u[i.name="frame "+e._transitionData._counter++];);if(u[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Nu.modifyFrames,u=Nu.modifyFrames,l=[e,o],f=[e,a];return ov&&ov.add(e,s,l,u,f),Nu.modifyFrames(e,a)}function lvt(e){e=Hl.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Nu.cleanPlot([],{},r,t),Nu.purge(e),dU.purge(e),t._container&&t._container.remove(),delete e._context,e}function uvt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Hl.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Hl.inverseTransformMatrix(Hl.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function fvt(e){var t=Vz.select(e),r=e._fullLayout;if(r._calcInverseTransform=uvt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};Vz.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Hl.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Bpt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}If.animate=avt;If.addFrames=ovt;If.deleteFrames=svt;If.addTraces=gde;If.deleteTraces=_de;If.extendTraces=mde;If.moveTraces=pU;If.prependTraces=yde;If.newPlot=Wpt;If._doPlot=Upt;If.purge=lvt;If.react=rvt;If.redraw=Hpt;If.relayout=rE;If.restyle=Wz;If.setPlotConfig=Vpt;If.update=Xz;If._guiRelayout=vU(rE);If._guiRestyle=vU(Wz);If._guiUpdate=vU(Xz);If._storeDirectGUIEdit=Ypt});var Bg=we(zy=>{"use strict";var cvt=$l();zy.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};zy.getRedrawFunc=function(e){return function(){cvt.getComponentMethod("colorbar","draw")(e)}};zy.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};zy.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var Mde=window.URL||window.webkitURL;zy.createObjectURL=function(e){return Mde.createObjectURL(e)};zy.revokeObjectURL=function(e){return Mde.revokeObjectURL(e)};zy.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=hvt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};zy.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function hvt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var yU=Kl(),Blr=ei(),dvt=Mu(),pvt=jl(),qlr=jv(),mU=/"/g,e2="TOBESTRIPPED",vvt=new RegExp(`("${e2})|(${e2}")|("${e2})|(${e2}")`,"g"),mvt=["&","&","&",""",""",""","'","'","'"],yvt=["<","<","<"],gvt=[">",">",">"];function _vt(e){let t=yU.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,n=>{let i=n.toLowerCase();return mvt.includes(i)?n:yvt.includes(i)?"<":gvt.includes(i)?">":n.includes("<")||n.includes(">")?"":t.html(n).text()});return t.remove(),r}function xvt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}Ede.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,u=i.height,l;a.insert("rect",":first-child").call(dvt.setRect,0,0,s,u).call(pvt.fill,i.paper_bgcolor);var f=i._basePlotModules||[];for(l=0;l{"use strict";var bvt=ei(),wvt=Sb().EventEmitter,nE=Bg();function Avt(e){var t=e.emitter||new wvt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",u=e.canvas,l=e.scale||1,f=e.width||300,c=e.height||150,h=l*f,d=l*c,p=u.getContext("2d",{willReadFrequently:!0}),y=new a,b,v;s==="svg"||bvt.isSafari()?v=nE.encodeSVG(o):(b=nE.createBlob(o,"svg"),v=nE.createObjectURL(b)),u.width=h,u.height=d,y.onload=function(){var C;switch(b=null,nE.revokeObjectURL(v),s!=="svg"&&p.drawImage(y,0,0,h,d),s){case"jpeg":C=u.toDataURL("image/jpeg");break;case"png":C=u.toDataURL("image/png");break;case"webp":C=u.toDataURL("image/webp");break;case"svg":C=v;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(C),e.promise||t.emit("success",C)},y.onerror=function(C){if(b=null,nE.revokeObjectURL(v),i(C),!e.promise)return t.emit("error",C)},y.src=v});return e.promise?r:t}kde.exports=Avt});var _U=we((Vlr,Pde)=>{"use strict";var Cde=ku(),Lde=Jz(),Tvt=Cc(),Iy=ei(),aE=Bg(),Svt=$z(),Mvt=Qz(),Evt=BM().version,gU={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function kvt(e,t){t=t||{};var r,n,i,a;Iy.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Iy.getGraphDiv(e),r=Iy.extendDeep([],e.data),n=Iy.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Iy.validate(t[x],gU[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Iy.join2(gU.format.values,", "," or ")+".");var s={};function u(x,k){return Iy.coerce(t,s,gU,x,k)}var l=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),p=u("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var b=Iy.extendFlat({},n);f?b.width=f:t.width===null&&Cde(a.width)&&(b.width=a.width),c?b.height=c:t.height===null&&Cde(a.height)&&(b.height=a.height);var v=Iy.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=aE.getRedrawFunc(y);function E(){return new Promise(function(x){setTimeout(x,aE.getDelay(y._fullLayout))})}function A(){return new Promise(function(x,k){var S=Svt(y,l,h),m=y._fullLayout.width,P=y._fullLayout.height;function M(){Lde.purge(y),document.body.removeChild(y)}if(l==="full-json"){var O=Tvt.graphJson(y,!1,"keepdata","object",!0,!0);return O.version=Evt,O=JSON.stringify(O),M(),x(p?O:aE.encodeJSON(O))}if(M(),l==="svg")return x(p?S:aE.encodeSVG(S));var F=document.createElement("canvas");F.id=Iy.randstr(),Mvt({format:l,width:m,height:P,scale:h,canvas:F,svg:S,promise:!0}).then(x).catch(k)})}function L(x){return p?x.replace(aE.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,k){Lde.newPlot(y,r,b,v).then(C).then(E).then(A).then(function(S){x(L(S))}).catch(function(S){k(S)})})}Pde.exports=kvt});var Rde=we((Glr,Ide)=>{"use strict";var z0=ei(),Cvt=Cc(),Lvt=D3(),Pvt=xb().dfltConfig,Im=z0.isPlainObject,r2=Array.isArray,xU=z0.isArrayOrTypedArray;Ide.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Lvt.get(),i=[],a={_context:z0.extendFlat({},Pvt)},o,s;r2(t)?(a.data=z0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(gd("array","data"))),Im(r)?(a.layout=z0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(gd("object","layout"))),Cvt.supplyDefaults(a);for(var u=a._fullData,l=o.length,f=0;fc.length&&n.push(gd("unused",i,l.concat(c.length)));var v=c.length,C=Array.isArray(b);C&&(v=Math.min(v,b.length));var E,A,L,x,k;if(h.dimensions===2)for(A=0;Ac[A].length&&n.push(gd("unused",i,l.concat(A,c[A].length)));var S=c[A].length;for(E=0;E<(C?Math.min(S,b[A].length):S);E++)L=C?b[A][E]:b,x=f[A][E],k=c[A][E],z0.validate(x,L)?k!==x&&k!==+x&&n.push(gd("dynamic",i,l.concat(A,E),x,k)):n.push(gd("value",i,l.concat(A,E),x))}else n.push(gd("array",i,l.concat(A),f[A]));else for(A=0;A{"use strict";var Bvt=ei(),tI=Bg();function qvt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var u,l;if(i)return u=tI.createBlob(e,r),l=tI.createObjectURL(u),n.href=l,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),tI.revokeObjectURL(l),u=null,o(t);if(Bvt.isSafari()){var f=r==="svg"?",":";base64,";return tI.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Dde.exports=qvt});var bU=we((jlr,Bde)=>{"use strict";var Ode=ei(),Nvt=_U(),Uvt=Fde(),Wlr=Bg();function Vvt(e,t){var r;return Ode.isPlainObject(e)||(r=Ode.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=Nvt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Uvt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}Bde.exports=Vvt});var Gde=we(wU=>{"use strict";var Cv=ei(),Lv=Cv.isPlainObject,qde=D3(),Nde=Cc(),Gvt=Vf(),Ude=Lf(),Vde=xb().dfltConfig;wU.makeTemplate=function(e){e=Cv.isPlainObject(e)?e:Cv.getGraphDiv(e),e=Cv.extendDeep({_context:Vde},{data:e.data,layout:e.layout}),Nde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var p={};oE(d,p,Wvt.bind(null,d));var y=Cv.coerce(d,{},Gvt,"type"),b=n.data[y];b||(b=n.data[y]=[]),b.push(p)}),oE(r,n.layout,Hvt.bind(null,r)),delete n.layout.template;var i=r.template;if(Lv(i)){var a=i.layout,o,s,u,l,f,c;Lv(a)&&rI(a,n.layout);var h=i.data;if(Lv(h)){for(s in n.data)if(u=h[s],Array.isArray(u)){for(f=n.data[s],c=f.length,l=u.length,o=0;ov?o.push({code:"unused",traceType:d,templateCount:b,dataCount:v}):v>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:v})}}function C(E,A){for(var L in E)if(L.charAt(0)!=="_"){var x=E[L],k=I0(E,L,A);Lv(x)?(Array.isArray(E)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:k,templateitemname:x.templateitemname}),C(x,k)):Array.isArray(x)&&jvt(x)&&C(x,k)}}if(C({data:u,layout:s},""),o.length)return o.map(Xvt)};function jvt(e){for(var t=0;t{"use strict";var ad=Jz();Gc._doPlot=ad._doPlot;Gc.newPlot=ad.newPlot;Gc.restyle=ad.restyle;Gc.relayout=ad.relayout;Gc.redraw=ad.redraw;Gc.update=ad.update;Gc._guiRestyle=ad._guiRestyle;Gc._guiRelayout=ad._guiRelayout;Gc._guiUpdate=ad._guiUpdate;Gc._storeDirectGUIEdit=ad._storeDirectGUIEdit;Gc.react=ad.react;Gc.extendTraces=ad.extendTraces;Gc.prependTraces=ad.prependTraces;Gc.addTraces=ad.addTraces;Gc.deleteTraces=ad.deleteTraces;Gc.moveTraces=ad.moveTraces;Gc.purge=ad.purge;Gc.addFrames=ad.addFrames;Gc.deleteFrames=ad.deleteFrames;Gc.animate=ad.animate;Gc.setPlotConfig=ad.setPlotConfig;var Zvt=ZM().getGraphDiv,Yvt=vz().eraseActiveShape;Gc.deleteActiveShape=function(e){return Yvt(Zvt(e))};Gc.toImage=_U();Gc.validate=Rde();Gc.downloadImage=bU();var Hde=Gde();Gc.makeTemplate=Hde.makeTemplate;Gc.validateTemplate=Hde.validateTemplate});var fA=we((Ylr,jde)=>{"use strict";var AU=ei(),Kvt=$l();jde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,u=Kvt.getComponentMethod("calendars","handleTraceDefaults");if(u(t,r,["x","y"],n),a){var l=AU.minRowLength(a);o?s=Math.min(l,AU.minRowLength(o)):(s=l,i("y0"),i("dy"))}else{if(!o)return 0;s=AU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Rm=we((Klr,Yde)=>{"use strict";var Xde=ei().dateTick0,Jvt=rf(),$vt=Jvt.ONEWEEK;function Zde(e,t){return e%$vt===0?Xde(t,1):Xde(t,0)}Yde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Zde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Zde(s,r.ycalendar)),i("yperiodalignment"))}}});var $de=we((Jlr,Jde)=>{"use strict";var Kde=["orientation","groupnorm","stackgaps"];Jde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,u=a[s];u||(u=a[s]={});var l=u[o],f=!1;l?l.traces.push(r):(l=u[o]={traceIndices:[],traces:[r]},f=!0);for(var c={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Qde=jl(),epe=yp().hasColorscale,tpe=nd(),Qvt=lc();rpe.exports=function(t,r,n,i,a,o={}){var s=Qvt.isBubble(t),u=(t.line||{}).color,l;if(u&&(n=u),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),epe(t,"marker")&&tpe(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(u&&!Array.isArray(u)&&r.marker.color!==u?l=u:s?l=Qde.background:l=Qde.defaultLine,a("marker.line.color",l),epe(t,"marker.line")&&tpe(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0),o.noLineDash||a("marker.line.dash")),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var f=a("marker.gradient.type");f!=="none"&&a("marker.gradient.color")}}});var R0=we((Qlr,ipe)=>{"use strict";var e0t=ei().isArrayOrTypedArray,t0t=yp().hasColorscale,r0t=nd();ipe.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),t0t(t,"line"))r0t(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var u=(e0t(s)?!1:s)||n;a("line.color",u)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var cA=we((eur,npe)=>{"use strict";npe.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var D0=we((tur,ape)=>{"use strict";var i0t=ei();ape.exports=function(e,t,r,n,i){i=i||{},n("textposition"),i0t.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Dm=we((rur,spe)=>{"use strict";var nI=jl(),ope=ei().isArrayOrTypedArray;function n0t(e){for(var t=nI.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var lpe=ei(),a0t=$l(),o0t=Zc(),s0t=Py(),hA=lc(),l0t=fA(),u0t=Rm(),f0t=$de(),c0t=$v(),h0t=R0(),upe=cA(),d0t=D0(),p0t=Dm(),v0t=ei().coercePattern;fpe.exports=function(t,r,n,i){function a(d,p){return lpe.coerce(t,r,o0t,d,p)}var o=l0t(t,r,i,a);if(o||(r.visible=!1),!!r.visible){u0t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=f0t(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var u=!s&&o{"use strict";var m0t=$b().getAxisGroup;hpe.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],u=m0t(n,s)+o,l=n._alignmentOpts||{},f=i("alignmentgroup"),c=l[u];c||(c=l[u]={});var h=c[f];h?h.traces.push(r):h=c[f]={traces:[r],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=i("offsetgroup")||"",p=h.offsetGroups,y=p[d];r._offsetIndex=0,(a!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=y.offsetIndex)}});var TU=we((aur,dpe)=>{"use strict";var y0t=ei(),g0t=i2(),_0t=Zc();dpe.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return y0t.coerce(i._input,i,_0t,h)}if(r.scattermode==="group")for(a=0;a=0;f--){var c=t[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var vpe=we((our,ppe)=>{"use strict";var x0t=ei(),b0t=iP();ppe.exports=function(e,t){function r(i,a){return x0t.coerce(e,t,b0t,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Fm=we((sur,ype)=>{"use strict";var w0t=ku(),mpe=ei(),A0t=mpe.dateTime2ms,aI=mpe.incrementMonth,T0t=rf(),S0t=T0t.ONEAVGMONTH;ype.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(w0t(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var u=+o.substring(1);if(u>0&&Math.round(u)===u)s=u;else return{vals:i}}for(var l=r.calendar,f=a==="start",c=a==="end",h=t[n+"period0"],d=A0t(h,l)||0,p=[],y=[],b=[],v=i.length,C=0;CE;)x=aI(x,-s,l);for(;x<=E;)x=aI(x,s,l);L=aI(x,-s,l)}else{for(A=Math.round((E-d)/o),x=d+A*o;x>E;)x-=o;for(;x<=E;)x+=o;L=x-o}p[C]=f?L:c?x:(L+x)/2,y[C]=L,b[C]=x}return{vals:p,starts:y,ends:b}}});var F0=we((lur,_pe)=>{"use strict";var SU=yp().hasColorscale,MU=gp(),gpe=lc();_pe.exports=function(t,r){gpe.hasLines(r)&&SU(r,"line")&&MU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),gpe.hasMarkers(r)&&(SU(r,"marker")&&MU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),SU(r,"marker.line")&&MU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Ry=we((uur,xpe)=>{"use strict";var sh=ei();xpe.exports=function(t,r){for(var n=0;n{"use strict";var bpe=ei();wpe.exports=function(t,r){bpe.isArrayOrTypedArray(r.selectedpoints)&&bpe.tagSelected(t,r)}});var B0=we((cur,Cpe)=>{"use strict";var Ape=ku(),kU=ei(),sE=wu(),Tpe=Fm(),EU=rf().BADNUM,CU=lc(),M0t=F0(),E0t=Ry(),k0t=O0();function C0t(e,t){var r=e._fullLayout,n=t._xA=sE.getFromId(e,t.xaxis||"x","x"),i=t._yA=sE.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=Tpe(t,n,"x",a),u=Tpe(t,i,"y",o),l=s.vals,f=u.vals,c=t._length,h=new Array(c),d=t.ids,p=LU(t,r,n,i),y=!1,b,v,C,E,A,L;Epe(r,t);var x="x",k="y",S;if(p)kU.pushUnique(p.traceIndices,t.index),b=p.orientation==="v",b?(k="s",S="x"):(x="s",S="y"),A=p.stackgaps==="interpolate";else{var m=Mpe(t,c);Spe(e,t,n,i,l,f,m)}var P=!!t.xperiodalignment,M=!!t.yperiodalignment;for(v=0;vv&&h[E].gap;)E--;for(L=h[E].s,C=h.length-1;C>E;C--)h[C].s=L;for(;v{"use strict";Lpe.exports=oI;var L0t=ei().distinctVals;function oI(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";zpe.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var n2=we((pur,Fpe)=>{"use strict";var q0=ku(),{isArrayOrTypedArray:qg}=ei(),{BADNUM:dA}=rf(),P0t=$l(),lE=wu(),{getAxisGroup:z0t}=$b(),sI=Ppe(),{TEXTPAD:I0t}=S_(),{LINE_SPACING:R0t}=Nh(),{BR_TAG_ALL:D0t}=Wf();function F0t(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lu+o||!q0(s))}for(var f=0;fn(a))):n(e.text);let i=e.outsidetextfont.size*R0t*r+I0t;return{ppadplus:t.some(a=>a.s<0)?i:0,ppadminus:t.some(a=>a.s>=0)?i:0}}return{ppadplus:void 0,ppadminus:void 0}}function j0t(e,t,r,n){for(var i=pA(n),a=0;a{"use strict";var Ope=B0(),Bpe=n2().setGroupPositions;function Z0t(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lm[f]&&f{"use strict";var K0t=Mu(),Hpe=rf(),uE=Hpe.BADNUM,Wpe=Hpe.LOG_CLIP,Upe=Wpe+.5,Vpe=Wpe-.5,lI=ei(),J0t=lI.segmentsIntersect,Gpe=lI.constrain,OU=Py();jpe.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",u=i._length,l=a._length,f=r.backoff,c=n.marker,h=r.connectGaps,d=r.baseTolerance,p=r.shape,y=p==="linear",b=n.fill&&n.fill!=="none",v=[],C=OU.minTolerance,E=t.length,A=new Array(E),L=0,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae;function me(Pe){var xe=t[Pe];if(!xe)return!1;var Oe=r.linearized?i.l2p(xe.x):i.c2p(xe.x),ze=r.linearized?a.l2p(xe.y):a.c2p(xe.y);if(Oe===uE){if(o&&(Oe=i.c2p(xe.x,!0)),Oe===uE)return!1;s&&ze===uE&&(Oe*=Math.abs(i._m*l*(i._m>0?Upe:Vpe)/(a._m*u*(a._m>0?Upe:Vpe)))),Oe*=1e3}if(ze===uE){if(s&&(ze=a.c2p(xe.y,!0)),ze===uE)return!1;ze*=1e3}return[Oe,ze]}function Ce(Pe,xe,Oe,ze){var De=Oe-Pe,ht=ze-xe,st=.5-Pe,gt=.5-xe,xt=De*De+ht*ht,pr=De*st+ht*gt;if(pr>0&&pr1||Math.abs(st.y-Oe[0][1])>1)&&(st=[st.x,st.y],ze&&Se(st,Pe)He||Pe[1]ge)return[Gpe(Pe[0],be,He),Gpe(Pe[1],Ie,ge)]}function Mt(Pe,xe){if(Pe[0]===xe[0]&&(Pe[0]===be||Pe[0]===He)||Pe[1]===xe[1]&&(Pe[1]===Ie||Pe[1]===ge))return!0}function kt(Pe,xe){var Oe=[],ze=zt(Pe),De=zt(xe);return ze&&De&&Mt(ze,De)||(ze&&Oe.push(ze),De&&Oe.push(De)),Oe}function $e(Pe,xe,Oe){return function(ze,De){var ht=zt(ze),st=zt(De),gt=[];if(ht&&st&&Mt(ht,st))return gt;ht&>.push(ht),st&>.push(st);var xt=2*lI.constrain((ze[Pe]+De[Pe])/2,xe,Oe)-((ht||ze)[Pe]+(st||De)[Pe]);if(xt){var pr;ht&&st?pr=xt>0==ht[Pe]>st[Pe]?ht:st:pr=ht||st,pr[Pe]+=xt}return gt}}var Re;p==="linear"||p==="spline"?Re=Ke:p==="hv"||p==="vh"?Re=kt:p==="hvh"?Re=$e(0,be,He):p==="vhv"&&(Re=$e(1,Ie,ge));function Me(Pe,xe){var Oe=xe[0]-Pe[0],ze=(xe[1]-Pe[1])/Oe,De=(Pe[1]*xe[0]-xe[1]*Pe[0])/Oe;return De>0?[ze>0?be:He,ge]:[ze>0?He:be,Ie]}function oe(Pe){var xe=Pe[0],Oe=Pe[1],ze=xe===A[L-1][0],De=Oe===A[L-1][1];if(!(ze&&De))if(L>1){var ht=xe===A[L-2][0],st=Oe===A[L-2][1];ze&&(xe===be||xe===He)&&ht?st?L--:A[L-1]=Pe:De&&(Oe===Ie||Oe===ge)&&st?ht?L--:A[L-1]=Pe:A[L++]=Pe}else A[L++]=Pe}function Ne(Pe){A[L-1][0]!==Pe[0]&&A[L-1][1]!==Pe[1]&&oe([rt,bt]),oe(Pe),Ot=null,rt=bt=0}var vt=lI.isArrayOrTypedArray(c);function lt(Pe){if(Pe&&f&&(Pe.i=x,Pe.d=t,Pe.trace=n,Pe.marker=vt?c[Pe.i]:c,Pe.backoff=f),Ee=Pe[0]/u,de=Pe[1]/l,ce=Pe[0]He?He:0,je=Pe[1]ge?ge:0,ce||je){if(!L)A[L++]=[ce||Pe[0],je||Pe[1]];else if(Ot){var xe=Re(Ot,Pe);xe.length>1&&(Ne(xe[0]),A[L++]=xe[1])}else it=Re(A[L-1],Pe)[0],A[L++]=it;var Oe=A[L-1];ce&&je&&(Oe[0]!==ce||Oe[1]!==je)?(Ot&&(rt!==ce&&bt!==je?oe(rt&&bt?Me(Ot,Pe):[rt||ce,bt||je]):rt&&bt&&oe([rt,bt])),oe([ce,je])):rt-ce&&bt-je&&oe([ce||rt,je||bt]),Ot=Pe,rt=ce,bt=je}else Ot&&Ne(Re(Ot,Pe)[0]),A[L++]=Pe}for(x=0;xte(M,We))break;S=M,N=U[0]*F[0]+U[1]*F[1],N>j?(j=N,m=M,O=!1):N=t.length||!M)break;lt(M),k=M}}Ot&&oe([rt||Ot[0],bt||Ot[1]]),v.push(A.slice(0,L))}var Ve=p.slice(p.length-1);if(f&&Ve!=="h"&&Ve!=="v"){for(var et=!1,tt=-1,Lt=[],jt=0;jt{"use strict";var Xpe={tonextx:1,tonexty:1,tonext:1};Zpe.exports=function(t,r,n){var i,a,o,s,u,l={},f=!1,c=-1,h=0,d=-1;for(a=0;a=0?u=d:(u=d=h,h++),u{"use strict";var Om=Kl(),$0t=$l(),fE=ei(),vA=fE.ensureSingle,Kpe=fE.identity,hh=Mu(),mA=lc(),Q0t=BU(),emt=qU(),uI=q5().tester;Jpe.exports=function(t,r,n,i,a,o){var s,u,l=!a,f=!!a&&a.duration>0,c=emt(t,r,n);if(s=i.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),tmt(t,s,r),f){o&&(u=o());var h=Om.transition().duration(a.duration).ease(a.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});h.each(function(){i.selectAll("g.trace").each(function(d,p){Ype(t,p,r,d,c,this,a)})})}else s.each(function(d,p){Ype(t,p,r,d,c,this,a)});l&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function tmt(e,t,r){t.each(function(n){var i=vA(Om.select(this),"g","fills");hh.setClipUrl(i,r.layerClipId,e);var a=n[0].trace;a._ownFill=null,a._nextFill=null;var o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Kpe);s.enter().append("g"),s.exit().remove(),s.order().each(function(u){a[u]=vA(Om.select(this),"path","js-fill")})})}function Ype(e,t,r,n,i,a,o){var s=e._context.staticPlot,u;rmt(e,t,r,n,i);var l=!!o&&o.duration>0;function f($e){return l?$e.transition():$e}var c=r.xaxis,h=r.yaxis,d=n[0].trace,p=d.line,y=Om.select(a),b=vA(y,"g","errorbars"),v=vA(y,"g","lines"),C=vA(y,"g","points"),E=vA(y,"g","text");if($0t.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;f(y).style("opacity",d.opacity);var A,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var k,S;x==="y"?(k=1,S=h.c2p(0,!0)):x==="x"&&(k=0,S=c.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=y;var m="",P=[],M=d._prevtrace,O=null,F=null;M&&(m=M._prevRevpath||"",L=M._nextFill,P=M._ownPolygons,O=M._fillsegments,F=M._fillElement);var U,G,j="",W="",N,H,re,ae,me,Ce,Ee=[];d._polygons=[];var de=[],te=[],Se=fE.noop;if(A=d._ownFill,mA.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(N=hh.steps(p.shape),H=hh.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?N=H=function($e){var Re=$e[$e.length-1];return $e.length>1&&$e[0][0]===Re[0]&&$e[0][1]===Re[1]?hh.smoothclosed($e.slice(1),p.smoothing):hh.smoothopen($e,p.smoothing)}:N=H=function($e){return"M"+$e.join("L")},re=function($e){return H($e.reverse())},te=Q0t(n,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),de=new Array(te.length);var Te=0;for(u=0;u=s[0]&&y.x<=s[1]&&y.y>=u[0]&&y.y<=u[1]}),h=Math.ceil(c.length/f),d=0;i.forEach(function(y,b){var v=y[0].trace;mA.hasMarkers(v)&&v.marker.maxdisplayed>0&&b{"use strict";$pe.exports={container:"marker",min:"cmin",max:"cmax"}});var cI=we((xur,Qpe)=>{"use strict";var fI=wu();Qpe.exports=function(t,r,n){var i={},a={_fullLayout:n},o=fI.getFromTrace(a,r,"x"),s=fI.getFromTrace(a,r,"y"),u=t.orig_x;u===void 0&&(u=t.x);var l=t.orig_y;return l===void 0&&(l=t.y),i.xLabel=fI.tickText(o,o.c2l(u),!0).text,i.yLabel=fI.tickText(s,s.c2l(l),!0).text,i}});var sv=we((bur,eve)=>{"use strict";var NU=Kl(),gA=Mu(),imt=$l();function nmt(e){var t=NU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=NU.select(this),i=r.trace||r[0].trace;UU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=NU.select(this),i=r.trace||r[0].trace;VU(n,i,e)}),t.selectAll("g.trace path.js-line").call(gA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(gA.fillGroupStyle,e,!1),imt.getComponentMethod("errorbars","style")(t)}function UU(e,t,r){gA.pointStyle(e.selectAll("path.point"),t,r)}function VU(e,t,r){gA.textPointStyle(e.selectAll("text"),t,r)}function amt(e,t,r){var n=t[0].trace;n.selectedpoints?(gA.selectedPointStyle(r.selectAll("path.point"),n),gA.selectedTextStyle(r.selectAll("text"),n)):(UU(r,n,e),VU(r,n,e))}eve.exports={style:nmt,stylePoints:UU,styleText:VU,styleOnSelect:amt}});var xA=we((wur,tve)=>{"use strict";var _A=jl(),omt=lc();tve.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&_A.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&_A.opacity(a)?a:o&&_A.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?_A.opacity(i)<.3?_A.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&_A.opacity(n)&&omt.hasLines(t)&&t.line.width?n:t.fillcolor)}});var bA=we((Aur,ive)=>{"use strict";var hI=ei(),rve=Vc(),smt=$l(),lmt=xA(),GU=jl(),umt=hI.fillText;ive.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,u=t.ya,l=s.c2p(r),f=u.c2p(n),c=[l,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(W){if(p){var N=s.c2p(W.xStart),H=s.c2p(W.xEnd);return l>=Math.min(N,H)&&l<=Math.max(N,H)?0:1/0}var re=Math.max(3,W.mrc||0),ae=1-1/re,me=Math.abs(s.c2p(W.x)-l);return me=Math.min(N,H)&&f<=Math.max(N,H)?0:1/0}var re=Math.max(3,W.mrc||0),ae=1-1/re,me=Math.abs(u.c2p(W.y)-f);return meEe!=ge>=Ee&&(be=Se[te-1][0],He=Se[te][0],ge-Ie&&(Te=be+(He-be)*(Ee-Ie)/(ge-Ie),re=Math.min(re,Te),ae=Math.max(ae,Te)));return re=Math.max(re,0),ae=Math.min(ae,s._length),{x0:re,x1:ae,y0:Ee,y1:Ee}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=O(o._fillElement)&&!O(o._fillExclusionElement);if(U){var G=F(o._polygons);G===null&&(G={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var j=GU.defaultLine;return GU.opacity(o.fillcolor)?j=o.fillcolor:GU.opacity((o.line||{}).color)&&(j=o.line.color),hI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:j,hovertemplate:!1}),delete t.index,o.text&&!hI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var wA=we((Tur,ave)=>{"use strict";var nve=lc();ave.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h=!nve.hasMarkers(s)&&!nve.hasText(s);if(h)return[];if(r===!1)for(u=0;u{"use strict";ove.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var WU=we((Mur,fve)=>{"use strict";var cE=$l().traceIs,HU=j3();fve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(fmt(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function fmt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=cmt(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],u={noMultiCategory:!cE(a,"cartesian")||cE(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,uve(a,n)){var l=lve(a),f=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(uve(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function lve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function uve(e,t){var r=lve(e),n=cE(e,"box-violin"),i=cE(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var dI=we((Eur,cve)=>{"use strict";var hmt=Jd().isTypedArraySpec;function dmt(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||hmt(a),s;o&&(s="array");var u=n("categoryorder",s),l;u==="array"&&(l=n("categoryarray")),!o&&u==="array"&&(u=r.categoryorder="trace"),u==="trace"?r._initialCategories=[]:u==="array"?r._initialCategories=l.slice():(l=dmt(r,i).sort(),u==="category ascending"?r._initialCategories=l:u==="category descending"&&(r._initialCategories=l.reverse()))}}});var hE=we((kur,dve)=>{"use strict";var hve=hd().mix,pmt=Bh(),vmt=ei();dve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(S,m){return vmt.coerce2(t,r,i.attributes,S,m)}var s=o("linecolor",a),u=o("linewidth"),l=n("showline",i.showLine||!!s||!!u);l||(delete r.linecolor,delete r.linewidth);var f=hve(a,i.bgColor,i.blend||pmt.lightFraction).toRgbString(),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),p=n("showgrid",i.showGrid||!!c||!!h||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var y=hve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",y),v=o("minor.gridwidth",r.gridwidth||1),C=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!v||!!C);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var A=o("zerolinelayer"),L=o("zerolinecolor",a),x=o("zerolinewidth"),k=n("zeroline",i.showGrid||!!L||!!x);k||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var pE=we((Cur,_ve)=>{"use strict";var pve=ku(),mmt=$l(),dE=ei(),ymt=Lf(),gmt=$d(),jU=Dd(),vve=Pb(),mve=q3(),_mt=l_(),xmt=u_(),bmt=dI(),wmt=hE(),Amt=BN(),yve=xy(),pI=qh().WEEKDAY_PATTERN,Tmt=qh().HOUR_PATTERN;_ve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},u=i.splomStash||{},l=n("visible",!i.visibleDflt),f=r._template||{},c=r.type||f.type||"-",h;if(c==="date"){var d=mmt.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var p="";(!i.noTicklabelposition||c==="multicategory")&&(p=dE.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),yve(r,a),Amt(t,r,n,i),bmt(t,r,n,i),i.noHover||(c!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var y=n("color"),b=y!==jU.color.dflt?y:s.color,v=u.label||a._dfltTitle[o];if(xmt(t,r,n,c,i),!l)return r;n("title.text",v),dE.coerceFont(n,"title.font",s,{overrideDflt:{size:dE.bigFont(s.size),color:b}}),vve(t,r,n,c);var C=i.hasMinor;if(C&&(ymt.newContainer(r,"minor"),vve(t,r,n,c,{isMinor:!0})),_mt(t,r,n,c,i),mve(t,r,n,i),C){var E=i.isMinor;i.isMinor=!0,mve(t,r,n,i),i.isMinor=E}wmt(t,r,n,{dfltColor:y,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:C,attributes:jU}),C&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var A=c==="multicategory";if(!i.noTickson&&(c==="category"||A)&&(r.ticks||r.showgrid)&&(A?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),A){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(gmt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Smt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,u;if(a.length===2){for(s=0;s<2;s++)if(u=gve(a[s]),u){o=pI;break}}var l=n("pattern",o);if(l===pI)for(s=0;s<2;s++)u=gve(a[s]),u&&(t.bounds[s]=a[s]=u-1);if(l)for(s=0;s<2;s++)switch(u=a[s],l){case pI:if(!pve(u)){t.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){t.enabled=!1;return}t.bounds[s]=a[s]=u;break;case Tmt:if(!pve(u)){t.enabled=!1;return}if(u=+u,u<0||u>24){t.enabled=!1;return}t.bounds[s]=a[s]=u;break}if(r.autorange===!1){var f=r.range;if(f[0]f[1]){t.enabled=!1;return}}else if(a[0]>f[0]&&a[1]{"use strict";var Emt=ku(),vI=ei();xve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,u=i.grid,l=i.overlayingDomain,f,c,h,d,p,y;u&&(c=u._domains[s][u._axisMap[r._id]],f=u._anchors[r._id],c&&(h=u[s+"side"].split(" ")[0],d=u.domain[s][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(Emt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var b=vI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),v=vI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var C=n("autoshift");C&&(d=v==="left"?l[0]:l[1],y=r.automargin?r.automargin:!0,p=v==="left"?-3:3),n("shift",p)}n("position",d)}n("automargin",y);var E=!1;if(o.length&&(E=vI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var A=n("domain",c);A[0]>A[1]-1/4096&&(r.domain=c),vI.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var Cve=we((Pur,kve)=>{"use strict";var a2=ei(),bve=jl(),kmt=iv().isUnifiedHover,Cmt=f7(),wve=Lf(),Lmt=A3(),Ave=Dd(),Pmt=WU(),Tve=pE(),zmt=$b(),Sve=mI(),ZU=jc(),Dy=ZU.id2name,Mve=ZU.name2id,Imt=qh().AX_ID_PATTERN,Eve=$l(),yI=Eve.traceIs,XU=Eve.getComponentMethod;function gI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}kve.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},u={},l={},f={},c={},h={},d={},p={},y,b;for(y=0;y{"use strict";var Rmt=Kl(),Lve=$l(),_I=ei(),Qv=Mu(),xI=wu();Pve.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){xI.redrawComponents(t);return}function o(b){var v=b.xaxis,C=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qv.setTranslate,0,0).call(Qv.setScale,1,1),b.plot.call(Qv.setTranslate,v._offset,C._offset).call(Qv.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qv.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qv.setTextPointsScale,1,1),E.call(Qv.hideOutsideRangePoints,b)}function s(b,v){var C=b.plotinfo,E=C.xaxis,A=C.yaxis,L=E._length,x=A._length,k=!!b.xr1,S=!!b.yr1,m=[];if(k){var P=_I.simpleMap(b.xr0,E.r2l),M=_I.simpleMap(b.xr1,E.r2l),O=P[1]-P[0],F=M[1]-M[0];m[0]=(P[0]*(1-v)+v*M[0]-P[0])/(P[1]-P[0])*L,m[2]=L*(1-v+v*F/O),E.range[0]=E.l2r(P[0]*(1-v)+v*M[0]),E.range[1]=E.l2r(P[1]*(1-v)+v*M[1])}else m[0]=0,m[2]=L;if(S){var U=_I.simpleMap(b.yr0,A.r2l),G=_I.simpleMap(b.yr1,A.r2l),j=U[1]-U[0],W=G[1]-G[0];m[1]=(U[1]*(1-v)+v*G[1]-U[1])/(U[0]-U[1])*x,m[3]=x*(1-v+v*W/j),A.range[0]=E.l2r(U[0]*(1-v)+v*G[0]),A.range[1]=A.l2r(U[1]*(1-v)+v*G[1])}else m[1]=0,m[3]=x;xI.drawOne(t,E,{skipTitle:!0}),xI.drawOne(t,A,{skipTitle:!0}),xI.redrawComponents(t,[E._id,A._id]);var N=k?L/m[2]:1,H=S?x/m[3]:1,re=k?m[0]:0,ae=S?m[1]:0,me=k?m[0]/m[2]*L:0,Ce=S?m[1]/m[3]*x:0,Ee=E._offset-me,de=A._offset-Ce;C.clipRect.call(Qv.setTranslate,re,ae).call(Qv.setScale,1/N,1/H),C.plot.call(Qv.setTranslate,Ee,de).call(Qv.setScale,N,H),Qv.setPointGroupScale(C.zoomScalePts,1/N,1/H),Qv.setTextPointsScale(C.zoomScaleTxt,1/N,1/H)}var u;i&&(u=i());function l(){for(var b={},v=0;vn.duration?(l(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var Mh=we(wp=>{"use strict";var wI=Kl(),Ive=$l(),o2=ei(),Dmt=Cc(),Fmt=Mu(),Rve=Rd().getModuleCalcData,M_=jc(),Bm=qh(),Omt=jv(),Zf=o2.ensureSingle;function bI(e,t,r){return o2.ensureSingle(e,t,r,function(n){n.datum(r)})}var s2=Bm.zindexSeparator;wp.name="cartesian";wp.attr=["xaxis","yaxis"];wp.idRoot=["x","y"];wp.idRegex=Bm.idRegex;wp.attrRegex=Bm.attrRegex;wp.attributes=sve();wp.layoutAttributes=Dd();wp.supplyLayoutDefaults=Cve();wp.transitionAxes=zve();wp.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},u={},l,f,c;for(l=0;l0){var d=h.id;if(d.indexOf(s2)!==-1)continue;d+=s2+(l+1),h=o2.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,b=0;b1&&(L+=s2+A),E.push(s+L),o=0;o1,c=t.mainplotinfo;if(!t.mainplot||f)if(l)t.xlines=Zf(n,"path","xlines-above"),t.ylines=Zf(n,"path","ylines-above"),t.xaxislayer=Zf(n,"g","xaxislayer-above"),t.yaxislayer=Zf(n,"g","yaxislayer-above");else{if(!o){var h=Zf(n,"g","layer-subplot");t.shapelayer=Zf(h,"g","shapelayer"),t.imagelayer=Zf(h,"g","imagelayer"),c&&f?(t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer):(t.minorGridlayer=Zf(n,"g","minor-gridlayer"),t.gridlayer=Zf(n,"g","gridlayer"),t.zerolinelayer=Zf(n,"g","zerolinelayer"));var d=Zf(n,"g","layer-between");t.shapelayerBetween=Zf(d,"g","shapelayer"),t.imagelayerBetween=Zf(d,"g","imagelayer"),Zf(n,"path","xlines-below"),Zf(n,"path","ylines-below"),t.overlinesBelow=Zf(n,"g","overlines-below"),Zf(n,"g","xaxislayer-below"),Zf(n,"g","yaxislayer-below"),t.overaxesBelow=Zf(n,"g","overaxes-below")}t.overplot=Zf(n,"g","overplot"),t.plot=Zf(t.overplot,"g",i),c&&f?t.zerolinelayerAbove=c.zerolinelayerAbove:t.zerolinelayerAbove=Zf(n,"g","zerolinelayer-above"),o||(t.xlines=Zf(n,"path","xlines-above"),t.ylines=Zf(n,"path","ylines-above"),t.overlinesAbove=Zf(n,"g","overlines-above"),Zf(n,"g","xaxislayer-above"),Zf(n,"g","yaxislayer-above"),t.overaxesAbove=Zf(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+u),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+u))}else{var p=c.plotgroup,y=i+"-x",b=i+"-y";t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer,t.zerolinelayerAbove=c.zerolinelayerAbove,Zf(c.overlinesBelow,"path",y),Zf(c.overlinesBelow,"path",b),Zf(c.overaxesBelow,"g",y),Zf(c.overaxesBelow,"g",b),t.plot=Zf(c.overplot,"g",i),Zf(c.overlinesAbove,"path",y),Zf(c.overlinesAbove,"path",b),Zf(c.overaxesAbove,"g",y),Zf(c.overaxesAbove,"g",b),t.xlines=p.select(".overlines-"+s).select("."+y),t.ylines=p.select(".overlines-"+u).select("."+b),t.xaxislayer=p.select(".overaxes-"+s).select("."+y),t.yaxislayer=p.select(".overaxes-"+u).select("."+b)}o||(l||(bI(t.minorGridlayer,"g",t.xaxis._id),bI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(v){return v[0]}).sort(M_.idSort),bI(t.gridlayer,"g",t.xaxis._id),bI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(v){return v[0]}).sort(M_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function Ove(e,t){if(e){var r={};e.each(function(u){var l=u[0],f=wI.select(this);f.remove(),Bve(l,t),r[l]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var AI=lc();qve.exports={hasLines:AI.hasLines,hasMarkers:AI.hasMarkers,hasText:AI.hasText,isBubble:AI.isBubble,attributes:Zc(),layoutAttributes:iP(),supplyDefaults:cpe(),crossTraceDefaults:TU(),supplyLayoutDefaults:vpe(),calc:B0().calc,crossTraceCalc:Npe(),arraysToCalcdata:Ry(),plot:yA(),colorbar:tp(),formatLabels:cI(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:bA(),selectPoints:wA(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Mh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Gve=we((Dur,Vve)=>{"use strict";var qmt=Kl(),Nmt=jl(),Uve=J7(),YU=ei(),Umt=YU.strScale,Vmt=YU.strRotate,Gmt=YU.strTranslate;Vve.exports=function(t,r,n){var i=t.node(),a=Uve[n.arrowhead||0],o=Uve[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),l=r.indexOf("start")>=0,f=r.indexOf("end")>=0,c=a.backoff*s+n.standoff,h=o.backoff*u+n.startstandoff,d,p,y,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var v=d.x-p.x,C=d.y-p.y;if(y=Math.atan2(C,v),b=y+Math.PI,c&&h&&c+h>Math.sqrt(v*v+C*C)){U();return}if(c){if(c*c>v*v+C*C){U();return}var E=c*Math.cos(y),A=c*Math.sin(y);p.x+=E,p.y+=A,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>v*v+C*C){U();return}var L=h*Math.cos(y),x=h*Math.sin(y);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var k=i.getTotalLength(),S="";if(k{"use strict";var Hve=Kl(),KU=$l(),Hmt=Cc(),k_=ei(),JU=k_.strTranslate,mE=wu(),l2=jl(),Ng=Mu(),Wve=Vc(),$U=Wf(),QU=Em(),vE=xp(),Wmt=Lf().arrayEditor,jmt=Gve();Zve.exports={draw:Xmt,drawOne:jve,drawRaw:Xve};function Xmt(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?De="right":De="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[De]}for(var Ie=!1,ge=["x","y"],Be=0;Be1)&&(rt===je?(We=bt.r2fraction(t["a"+ce]),(We<0||We>1)&&(Ie=!0)):Ie=!0),Re=bt._offset+bt.r2p(t[ce]),Ne=.5}else{var Ve=lt==="domain";ce==="x"?(oe=t[ce],Re=Ve?bt._offset+bt._length*oe:Re=s.l+s.w*oe):(oe=1-t[ce],Re=Ve?bt._offset+bt._length*oe:Re=s.t+s.h*oe),Ne=t.showarrow?.5:oe}if(t.showarrow){$e.head=Re;var et=t["a"+ce];if(vt=it*He(.5,t.xanchor)-Ke*He(.5,t.yanchor),rt===je){var tt=mE.getRefType(rt);tt==="domain"?(ce==="y"&&(et=1-et),$e.tail=bt._offset+bt._length*et):tt==="paper"?ce==="y"?(et=1-et,$e.tail=s.t+s.h*et):$e.tail=s.l+s.w*et:$e.tail=bt._offset+bt.r2p(et),Me=vt}else $e.tail=Re+et,Me=vt+et;$e.text=$e.tail+vt;var Lt=o[ce==="x"?"width":"height"];if(je==="paper"&&($e.head=k_.constrain($e.head,1,Lt-1)),rt==="pixel"){var jt=-Math.max($e.tail-3,$e.text),or=Math.min($e.tail+3,$e.text)-Lt;jt>0?($e.tail+=jt,$e.text+=jt):or>0&&($e.tail-=or,$e.text-=or)}$e.tail+=kt,$e.head+=kt}else vt=zt*He(Ne,Mt),Me=vt,$e.text=Re+vt;$e.text+=kt,vt+=kt,Me+=kt,t["_"+ce+"padplus"]=zt/2+Me,t["_"+ce+"padminus"]=zt/2-Me,t["_"+ce+"size"]=zt,t["_"+ce+"shift"]=vt}if(Ie){k.remove();return}var yr=0,vr=0;if(t.align!=="left"&&(yr=(te-Ee)*(t.align==="center"?.5:1)),t.valign!=="top"&&(vr=(Se-de)*(t.valign==="middle"?.5:1)),me)ae.select("svg").attr({x:P+yr-1,y:P+vr}).call(Ng.setClipUrl,O?y:null,e);else{var Vt=P+vr-Ce.top,Pe=P+yr-Ce.left;j.call($U.positionText,Pe,Vt).call(Ng.setClipUrl,O?y:null,e)}F.select("rect").call(Ng.setRect,P,P,te,Se),M.call(Ng.setRect,S/2,S/2,Te-S,be-S),k.call(Ng.setTranslate,Math.round(b.x.text-Te/2),Math.round(b.y.text-be/2)),E.attr({transform:"rotate("+v+","+b.x.text+","+b.y.text+")"});var xe=function(ze,De){C.selectAll(".annotation-arrow-g").remove();var ht=b.x.head,st=b.y.head,gt=b.x.tail+ze,xt=b.y.tail+De,pr=b.x.text+ze,br=b.y.text+De,cr=k_.rotationXYMatrix(v,pr,br),Er=k_.apply2DTransform(cr),ii=k_.apply2DTransform2(cr),jr=+M.attr("width"),kr=+M.attr("height"),Vr=pr-.5*jr,Ai=Vr+jr,Bi=br-.5*kr,Ri=Bi+kr,ln=[[Vr,Bi,Vr,Ri],[Vr,Ri,Ai,Ri],[Ai,Ri,Ai,Bi],[Ai,Bi,Vr,Bi]].map(ii);if(!ln.reduce(function(Fr,Hr){return Fr^!!k_.segmentsIntersect(ht,st,ht+1e6,st+1e6,Hr[0],Hr[1],Hr[2],Hr[3])},!1)){ln.forEach(function(Fr){var Hr=k_.segmentsIntersect(gt,xt,ht,st,Fr[0],Fr[1],Fr[2],Fr[3]);Hr&&(gt=Hr.x,xt=Hr.y)});var hn=t.arrowwidth,qr=t.arrowcolor,_i=t.arrowside,zi=C.append("g").style({opacity:l2.opacity(qr)}).classed("annotation-arrow-g",!0),Dt=zi.append("path").attr("d","M"+gt+","+xt+"L"+ht+","+st).style("stroke-width",hn+"px").call(l2.stroke,l2.rgb(qr));if(jmt(Dt,_i,t),u.annotationPosition&&Dt.node().parentNode&&!n){var _t=ht,qt=st;if(t.standoff){var Nt=Math.sqrt(Math.pow(ht-gt,2)+Math.pow(st-xt,2));_t+=t.standoff*(gt-ht)/Nt,qt+=t.standoff*(xt-st)/Nt}var mr=zi.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(gt-_t)+","+(xt-qt),transform:JU(_t,qt)}).style("stroke-width",hn+6+"px").call(l2.stroke,"rgba(0,0,0,0)").call(l2.fill,"rgba(0,0,0,0)"),Lr,Nr;vE.init({element:mr.node(),gd:e,prepFn:function(){var Fr=Ng.getTranslate(k);Lr=Fr.x,Nr=Fr.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Fr,Hr){var Gr=Er(Lr,Nr),mi=Gr[0]+Fr,Ei=Gr[1]+Hr;k.call(Ng.setTranslate,mi,Ei),d("x",E_(i,Fr,"x",s,t)),d("y",E_(a,Hr,"y",s,t)),t.axref===t.xref&&d("ax",E_(i,Fr,"ax",s,t)),t.ayref===t.yref&&d("ay",E_(a,Hr,"ay",s,t)),zi.attr("transform",JU(Fr,Hr)),E.attr({transform:"rotate("+v+","+mi+","+Ei+")"})},doneFn:function(){KU.call("_guiRelayout",e,p());var Fr=document.querySelector(".js-notes-box-panel");Fr&&Fr.redraw(Fr.selectedObj)}})}}};if(t.showarrow&&xe(0,0),A){var Oe;vE.init({element:k.node(),gd:e,prepFn:function(){Oe=E.attr("transform")},moveFn:function(ze,De){var ht="pointer";if(t.showarrow)t.axref===t.xref?d("ax",E_(i,ze,"ax",s,t)):d("ax",t.ax+ze),t.ayref===t.yref?d("ay",E_(a,De,"ay",s.w,t)):d("ay",t.ay+De),xe(ze,De);else{if(n)return;var st,gt;if(i)st=E_(i,ze,"x",s,t);else{var xt=t._xsize/s.w,pr=t.x+(t._xshift-t.xshift)/s.w-xt/2;st=vE.align(pr+ze/s.w,xt,0,1,t.xanchor)}if(a)gt=E_(a,De,"y",s,t);else{var br=t._ysize/s.h,cr=t.y-(t._yshift+t.yshift)/s.h-br/2;gt=vE.align(cr-De/s.h,br,0,1,t.yanchor)}d("x",st),d("y",gt),(!i||!a)&&(ht=vE.getCursor(i?.5:st,a?.5:gt,t.xanchor,t.yanchor))}E.attr({transform:JU(ze,De)+Oe}),QU(k,ht)},clickFn:function(ze,De){t.captureevents&&e.emit("plotly_clickannotation",x(De))},doneFn:function(){QU(k),KU.call("_guiRelayout",e,p());var ze=document.querySelector(".js-notes-box-panel");ze&&ze.redraw(ze.selectedObj)}})}}u.annotationText?j.call($U.makeEditable,{delegate:k,gd:e}).call(W).on("edit",function(H){t.text=H,this.call(W),d("text",H),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),KU.call("_guiRelayout",e,p())}):j.call(W)}});var e0e=we((Our,Qve)=>{"use strict";var Yve=ei(),Zmt=$l(),Kve=Lf().arrayEditor;Qve.exports={hasClickToShow:Ymt,onClick:Kmt};function Ymt(e,t){var r=$ve(e,t);return r.on.length>0||r.explicitOff.length>0}function Kmt(e,t){var r=$ve(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,u;if(n.length||i.length){for(s=0;s{"use strict";var eV=ei(),AA=jl();t0e.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=AA.opacity(o);i("borderpad");var u=i("borderwidth"),l=i("showarrow");i("text",l?" ":n._dfltTitle.annotation),i("textangle"),eV.coerceFont(i,"font",n.font),i("width"),i("align");var f=i("height");if(f&&i("valign"),l){var c=i("arrowside"),h,d;c.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),c.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:AA.defaultLine),i("arrowwidth",(s&&u||1)*2),i("standoff"),i("startstandoff")}var p=i("hovertext"),y=n.hoverlabel||{};if(p){var b=i("hoverlabel.bgcolor",y.bgcolor||(AA.opacity(a)?AA.rgb(a):AA.defaultLine)),v=i("hoverlabel.bordercolor",y.bordercolor||AA.contrast(b)),C=eV.extendFlat({},y.font);C.color||(C.color=v),eV.coerceFont(i,"hoverlabel.font",C)}i("captureevents",!!p)}});var i0e=we((qur,r0e)=>{"use strict";var rV=ei(),u2=wu(),Jmt=$d(),$mt=tV(),Qmt=Qb();r0e.exports=function(t,r){Jmt(t,r,{name:"annotations",handleItemDefaults:eyt})};function eyt(e,t,r){function n(E,A){return rV.coerce(e,t,Qmt,E,A)}var i=n("visible"),a=n("clicktoshow");if(i||a){$mt(e,t,r,n);for(var o=t.showarrow,s=["x","y"],u=[-10,-30],l={_fullLayout:r},f=0;f<2;f++){var c=s[f],h=u2.coerceRef(e,t,l,c,"","paper");if(h!=="paper"){var d=u2.getFromId(l,h);d._annIndices.push(t._index)}if(u2.coercePosition(t,l,n,h,c,.5),o){var p="a"+c,y=u2.coerceRef(e,t,l,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=t[p]="pixel");var b=y==="pixel"?u[f]:.4;u2.coercePosition(t,l,n,y,p,b)}n(c+"anchor"),n(c+"shift")}if(rV.noneOrAll(e,t,["x","y"]),o&&rV.noneOrAll(e,t,["ax","ay"]),a){var v=n("xclick"),C=n("yclick");t._xclick=v===void 0?t.x:u2.cleanPosition(v,l,t.xref),t._yclick=C===void 0?t.y:u2.cleanPosition(C,l,t.yref)}}}});var o0e=we((Nur,a0e)=>{"use strict";var iV=ei(),f2=wu(),tyt=TI().draw;a0e.exports=function(t){var r=t._fullLayout,n=iV.filterVisible(r.annotations);if(n.length&&t._fullData.length)return iV.syncOrAsync([tyt,ryt],t)};function ryt(e){var t=e._fullLayout;iV.filterVisible(t.annotations).forEach(function(r){var n=f2.getFromId(e,r.xref),i=f2.getFromId(e,r.yref),a=f2.getRefType(r.xref),o=f2.getRefType(r.yref);r._extremes={},a==="range"&&n0e(r,n),o==="range"&&n0e(r,i)})}function n0e(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],u=e["_"+n+"padplus"],l=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,b=p-f,v;if(s===o){var C=f2.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=f2.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(u,y),ppadminus:Math.max(l,b)});v={min:[C.min[0],E.min[0]],max:[C.max[0],E.max[0]]}}else y=a?y+a:y,b=a?b-a:b,v=f2.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(u,h,y),ppadminus:Math.max(l,d,b)});e._extremes[r]=v}});var l0e=we((Uur,s0e)=>{"use strict";var iyt=ku(),nyt=EL();s0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,u=r._id.charAt(0),l,f;function c(d){var p=l[d],y=null;a?y=nyt(p,r.range):y=Math.pow(10,p),iyt(y)||(y=null),i(f+d,y)}for(var h=0;h{"use strict";var nV=TI(),u0e=e0e();f0e.exports={moduleType:"component",name:"annotations",layoutAttributes:Qb(),supplyLayoutDefaults:i0e(),includeBasePlot:K5()("annotations"),calcAutorange:o0e(),draw:nV.draw,drawOne:nV.drawOne,drawRaw:nV.drawRaw,hasClickToShow:u0e.hasClickToShow,onClick:u0e.onClick,convertCoords:l0e()}});var SI=we((Gur,h0e)=>{"use strict";var Pc=Qb(),ayt=Sc().overrideAll,oyt=Lf().templatedArray;h0e.exports=ayt(oyt("annotation",{visible:Pc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Pc.xanchor,xshift:Pc.xshift,yanchor:Pc.yanchor,yshift:Pc.yshift,text:Pc.text,textangle:Pc.textangle,font:Pc.font,width:Pc.width,height:Pc.height,opacity:Pc.opacity,align:Pc.align,valign:Pc.valign,bgcolor:Pc.bgcolor,bordercolor:Pc.bordercolor,borderpad:Pc.borderpad,borderwidth:Pc.borderwidth,showarrow:Pc.showarrow,arrowcolor:Pc.arrowcolor,arrowhead:Pc.arrowhead,startarrowhead:Pc.startarrowhead,arrowside:Pc.arrowside,arrowsize:Pc.arrowsize,startarrowsize:Pc.startarrowsize,arrowwidth:Pc.arrowwidth,standoff:Pc.standoff,startstandoff:Pc.startstandoff,hovertext:Pc.hovertext,hoverlabel:Pc.hoverlabel,captureevents:Pc.captureevents}),"calc","from-root")});var p0e=we((Hur,d0e)=>{"use strict";var aV=ei(),syt=wu(),lyt=$d(),uyt=tV(),fyt=SI();d0e.exports=function(t,r,n){lyt(t,r,{name:"annotations",handleItemDefaults:cyt,fullLayout:n.fullLayout})};function cyt(e,t,r,n){function i(s,u){return aV.coerce(e,t,fyt,s,u)}function a(s){var u=s+"axis",l={_fullLayout:{}};return l._fullLayout[u]=r[u],syt.coercePosition(t,l,i,s,s,.5)}var o=i("visible");o&&(uyt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),aV.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),aV.noneOrAll(e,t,["ax","ay"])))}});var g0e=we((Wur,y0e)=>{"use strict";var v0e=ei(),m0e=wu();y0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function oV(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function dyt(e,t){var r=oV(e.projection,oV(e.view,oV(e.model,[t[0],t[1],t[2],1])));return r}_0e.exports=dyt});var b0e=we((Xur,x0e)=>{"use strict";var pyt=TI().drawRaw,vyt=sV(),myt=["x","y","z"];x0e.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=vyt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),pyt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var T0e=we((Zur,A0e)=>{"use strict";var yyt=$l(),w0e=ei();A0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:SI()}}},layoutAttributes:SI(),handleDefaults:p0e(),includeBasePlot:gyt,convert:g0e(),draw:b0e()};function gyt(e,t){var r=yyt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var Yur=qh(),S0e=gc(),M0e=Zc().line,_yt=Id().dash,qm=Su().extendFlat,xyt=Lf().templatedArray,Kur=Z5(),TA=Vf(),E0e=Qb(),{shapeTexttemplateAttrs:byt,templatefallbackAttrs:wyt}=Of(),Ayt=FL();k0e.exports=xyt("shape",{visible:qm({},TA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:qm({},TA.legend,{editType:"calc+arraydraw"}),legendgroup:qm({},TA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:qm({},TA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:S0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:qm({},TA.legendrank,{editType:"calc+arraydraw"}),legendwidth:qm({},TA.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:qm({},E0e.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:qm({},E0e.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:qm({},M0e.color,{editType:"arraydraw"}),width:qm({},M0e.width,{editType:"calc+arraydraw"}),dash:qm({},_yt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:byt({},{keys:Object.keys(Ayt)}),texttemplatefallback:wyt({editType:"arraydraw"}),font:S0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var L0e=we(($ur,C0e)=>{"use strict";var SA=ei(),e0=wu(),Tyt=$d(),Syt=lV(),yE=b_();C0e.exports=function(t,r){Tyt(t,r,{name:"shapes",handleItemDefaults:Eyt})};function Myt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Eyt(e,t,r){function n(E,A){return SA.coerce(e,t,Syt,E,A)}t._isShape=!0;var i=n("visible");if(!i)return;var a=n("showlegend");n("legend"),n("legendgroup"),a&&(n("legendwidth"),n("legendgrouptitle.text"),SA.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",u=n("type",s),l=u!=="path";l&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var c=n("xsizemode"),h=n("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(E=>{var A=E+"anchor",L=E==="x"?c:h,x={_fullLayout:r},k,S,m,P;let M=E+"ref",O=e[M];if(Array.isArray(O)&&O.length>0){let F=yE.countDefiningCoords(u,o,E);P=e0.coerceRefArray(e,t,x,E,void 0,"paper",F),t["_"+E+"refArray"]=!0}else P=e0.coerceRef(e,t,x,E,void 0,"paper");if(Array.isArray(P))P.forEach(function(F){e0.getRefType(F)==="range"&&(k=e0.getFromId(x,F),k&&k._shapeIndices.indexOf(t._index)===-1&&k._shapeIndices.push(t._index))}),l&&[0,1].forEach(function(F){let U=P[F];e0.getRefType(U)==="range"?(k=e0.getFromId(x,U),S=yE.shapePositionToRange(k),m=yE.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&n(E+F+"shift")):S=m=SA.identity;let j=E+F,W=e[j];if(e[j]=S(e[j],!0),L==="pixel"?n(j,p[F]):e0.coercePosition(t,x,n,U,j,d[F]),t[j]=m(t[j]),e[j]=W,F===0&&L==="pixel"){let N=e[A];e[A]=S(e[A],!0),e0.coercePosition(t,x,n,U,A,.25),t[A]=m(t[A]),e[A]=N}});else{if(e0.getRefType(P)==="range"?(k=e0.getFromId(x,P),k._shapeIndices.push(t._index),m=yE.rangeToShapePosition(k),S=yE.shapePositionToRange(k),l&&(k.type==="category"||k.type==="multicategory")&&(n(E+"0shift"),n(E+"1shift"))):S=m=SA.identity,l){let U=E+"0",G=E+"1",j=e[U],W=e[G];e[U]=S(e[U],!0),e[G]=S(e[G],!0),L==="pixel"?(n(U,p[0]),n(G,p[1])):(e0.coercePosition(t,x,n,P,U,d[0]),e0.coercePosition(t,x,n,P,G,d[1])),t[U]=m(t[U]),t[G]=m(t[G]),e[U]=j,e[G]=W}if(L==="pixel"){let U=e[A];e[A]=S(e[A],!0),e0.coercePosition(t,x,n,P,A,.25),t[A]=m(t[A]),e[A]=U}}}),l&&SA.noneOrAll(e,t,["x0","x1","y0","y1"]);var y=u==="line",b,v;if(l&&(b=n("label.texttemplate"),n("label.texttemplatefallback")),b||(v=n("label.text")),v||b){n("label.textangle");var C=n("label.textposition",y?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Myt(y,C)),n("label.padding"),SA.coerceFont(n,"label.font",r.font)}}});var I0e=we((Qur,z0e)=>{"use strict";var kyt=jl(),P0e=ei();function Cyt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}z0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),P0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",kyt.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),s||u){n("newshape.label.textangle");var l=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Cyt(o,l)),n("newshape.label.padding"),P0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var N0e=we((efr,q0e)=>{"use strict";var uV=ei(),N0=wu(),Fy=E5(),fV=b_();q0e.exports=function(t){var r=t._fullLayout,n=uV.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i{o=N0.getFromId(t,c),a._extremes[o._id]=N0.findExtremes(o,h,D0e(a))})}else a.xref!=="paper"&&u!=="domain"&&(o=N0.getFromId(t,a.xref),s=O0e(o,a,Fy.paramIsX),s&&(a._extremes[o._id]=N0.findExtremes(o,s,D0e(a))));if(l==="array"){let f=R0e(t,a,"y");Object.entries(f).forEach(([c,h])=>{o=N0.getFromId(t,c),a._extremes[o._id]=N0.findExtremes(o,h,F0e(a))})}else a.yref!=="paper"&&l!=="domain"&&(o=N0.getFromId(t,a.yref),s=O0e(o,a,Fy.paramIsY),s&&(a._extremes[o._id]=N0.findExtremes(o,s,F0e(a))))}};function R0e(e,t,r){let n=t[r+"ref"],i=r==="x"?Fy.paramIsX:Fy.paramIsY;function a(c,h){c==="paper"||N0.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(h))}let o={};if(t.type==="path"&&t.path){let c=t.path.match(Fy.segmentRE)||[];for(var s=0,u=0;up&&(a(n[s],y[p]),s++)}}else a(n[0],t[r+"0"]),a(n[1],t[r+"1"]);let l={};for(let c in o){let h=N0.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=fV.decodeDate(f)),l[h._id]=o[c].map(f)}}return l}function D0e(e){return B0e(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function F0e(e){return B0e(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function B0e(e,t,r,n,i,a){var o=e/2,s=a;if(t==="pixel"){var u=i?fV.extractPathCoords(i,a?Fy.paramIsY:Fy.paramIsX):[r,n],l=uV.aggNums(Math.max,null,u),f=uV.aggNums(Math.min,null,u),c=f<0?Math.abs(f)+o:o,h=l>0?l+o:o;return{ppad:o,ppadplus:s?c:h,ppadminus:s?h:c}}else return{ppad:o}}function O0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,u=0,l=i?e.r2c:e.d2c,f=t[n+"sizemode"]==="scaled";if(f?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],u=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[l(a)+s,l(o)+u];if(t.path){var c=1/0,h=-1/0,d=t.path.match(Fy.segmentRE),p,y,b,v,C;for(e.type==="date"&&(l=fV.decodeDate(l)),p=0;ph&&(h=C)));if(h>=c)return[c,h]}}});var G0e=we((tfr,V0e)=>{"use strict";var U0e=vz();V0e.exports={moduleType:"component",name:"shapes",layoutAttributes:lV(),supplyLayoutDefaults:L0e(),supplyDrawNewShapeDefaults:I0e(),includeBasePlot:K5()("shapes"),calcAutorange:N0e(),draw:U0e.draw,drawOne:U0e.drawOne}});var cV=we((ifr,W0e)=>{"use strict";var H0e=qh(),Lyt=Lf().templatedArray,rfr=Z5();W0e.exports=Lyt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",H0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",H0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var X0e=we((nfr,j0e)=>{"use strict";var Pyt=ei(),hV=wu(),zyt=$d(),Iyt=cV(),Ryt="images";j0e.exports=function(t,r){var n={name:Ryt,handleItemDefaults:Dyt};zyt(t,r,n)};function Dyt(e,t,r){function n(h,d){return Pyt.coerce(e,t,Iyt,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],u=0;u<2;u++){var l=s[u],f=hV.coerceRef(e,t,o,l,"paper",void 0);if(f!=="paper"){var c=hV.getFromId(o,f);c._imgIndices.push(t._index)}hV.coercePosition(t,o,n,f,l,0)}return t}});var J0e=we((afr,K0e)=>{"use strict";var Z0e=Kl(),Fyt=Mu(),MA=wu(),Y0e=jc(),Oyt=jv();K0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var $0e=ku(),Byt=EL();Q0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,u=r._id.charAt(0),l,f,c=0;c{"use strict";tme.exports={moduleType:"component",name:"images",layoutAttributes:cV(),supplyLayoutDefaults:X0e(),includeBasePlot:K5()("images"),draw:J0e(),convertCoords:eme()}});var MI=we((lfr,ime)=>{"use strict";ime.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var dV=we((ufr,ame)=>{"use strict";var qyt=gc(),Nyt=Bh(),Uyt=Su().extendFlat,Vyt=Sc().overrideAll,Gyt=OL(),nme=Lf().templatedArray,Hyt=nme("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});ame.exports=Vyt(nme("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Hyt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Uyt(Gyt({editType:"arraydraw"}),{}),font:qyt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Nyt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var ume=we((ffr,lme)=>{"use strict";var EI=ei(),ome=$d(),sme=dV(),Wyt=MI(),jyt=Wyt.name,Xyt=sme.buttons;lme.exports=function(t,r){var n={name:jyt,handleItemDefaults:Zyt};ome(t,r,n)};function Zyt(e,t,r){function n(o,s){return EI.coerce(e,t,sme,o,s)}var i=ome(e,t,{name:"buttons",handleItemDefaults:Yyt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),EI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),EI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Yyt(e,t){function r(i,a){return EI.coerce(e,t,Xyt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var hme=we((cfr,cme)=>{"use strict";cme.exports=eh;var Nm=Kl(),fme=jl(),EA=Mu(),kI=ei();function eh(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}eh.barWidth=2;eh.barLength=20;eh.barRadius=2;eh.barPad=1;eh.barColor="#808BA4";eh.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,u=this.position.w,l=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",y=c==="up",b=u,v=f,C,E,A,L;!h&&!d&&!p&&!y&&(this.position.direction="down",h=!0);var x=h||y;x?(C=s,E=C+b,h?(A=l,L=Math.min(A+v,o),v=L-A):(L=l+v,A=Math.max(L-v,0),v=L-A)):(A=l,L=A+v,d?(E=s+b,C=Math.max(E-b,0),b=E-C):(C=s,E=Math.min(C+b,a),b=E-C)),this._box={l:C,t:A,w:b,h:v};var k=u>b,S=eh.barLength+2*eh.barPad,m=eh.barWidth+2*eh.barPad,P=s,M=l+f;M+m>o&&(M=o-m);var O=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(fme.fill,eh.barColor),k?(this.hbar=O.attr({rx:eh.barRadius,ry:eh.barRadius,x:P,y:M,width:S,height:m}),this._hbarXMin=P+S/2,this._hbarTranslateMax=b-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var F=f>v,U=eh.barWidth+2*eh.barPad,G=eh.barLength+2*eh.barPad,j=s+u,W=l;j+U>a&&(j=a-U);var N=this.container.selectAll("rect.scrollbar-vertical").data(F?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(fme.fill,eh.barColor),F?(this.vbar=N.attr({rx:eh.barRadius,ry:eh.barRadius,x:j,y:W,width:U,height:G}),this._vbarYMin=W+G/2,this._vbarTranslateMax=v-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,re=C-.5,ae=F?E+U+.5:E+.5,me=A-.5,Ce=k?L+m+.5:L+.5,Ee=i._topdefs.selectAll("#"+H).data(k||F?[0]:[]);if(Ee.exit().remove(),Ee.enter().append("clipPath").attr("id",H).append("rect"),k||F?(this._clipRect=Ee.select("rect").attr({x:Math.floor(re),y:Math.floor(me),width:Math.ceil(ae)-Math.floor(re),height:Math.ceil(Ce)-Math.floor(me)}),this.container.call(EA.setClipUrl,H,this.gd),this.bg.attr({x:s,y:l,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(EA.setClipUrl,null),delete this._clipRect),k||F){var de=Nm.behavior.drag().on("dragstart",function(){Nm.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var te=Nm.behavior.drag().on("dragstart",function(){Nm.event.sourceEvent.preventDefault(),Nm.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(te),F&&this.vbar.on(".drag",null).call(te)}this.setTranslate(r,n)};eh.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(EA.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};eh.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Nm.event.dx),this.vbar&&(r-=Nm.event.dy),this.setTranslate(t,r)};eh.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Nm.event.deltaY),this.vbar&&(r+=Nm.event.deltaY),this.setTranslate(t,r)};eh.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=kI.constrain(Nm.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var u=r+this._vbarYMin,l=u+this._vbarTranslateMax,f=kI.constrain(Nm.event.y,u,l),c=(f-u)/(l-u),h=this.position.h-this._box.h;r=c*h}this.setTranslate(t,r)};eh.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=kI.constrain(t||0,0,n),r=kI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(EA.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(EA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(EA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var wme=we((hfr,bme)=>{"use strict";var kA=Kl(),gE=Cc(),_E=jl(),CA=Mu(),t0=ei(),CI=Wf(),Kyt=Lf().arrayEditor,pme=Nh().LINE_SPACING,Uu=MI(),Jyt=hme();bme.exports=function(t){var r=t._fullLayout,n=t0.filterVisible(r[Uu.name]);function i(h){gE.autoMargin(t,_me(h))}var a=r._menulayer.selectAll("g."+Uu.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(Uu.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){kA.select(this).selectAll("g."+Uu.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+Uu.headerGroupClassName).data(n,$yt);o.enter().append("g").classed(Uu.headerGroupClassName,!0);for(var s=t0.ensureSingle(a,"g",Uu.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),u=0;u{"use strict";var agt=MI();Ame.exports={moduleType:"component",name:agt.name,layoutAttributes:dV(),supplyLayoutDefaults:ume(),draw:wme()}});var bE=we((pfr,Sme)=>{"use strict";Sme.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var yV=we((vfr,kme)=>{"use strict";var Mme=gc(),ogt=OL(),sgt=Su().extendDeepAll,lgt=Sc().overrideAll,ugt=YM(),Eme=Lf().templatedArray,c2=bE(),fgt=Eme("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});kme.exports=lgt(Eme("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:fgt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:sgt(ogt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:ugt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:Mme({})},font:Mme({}),activebgcolor:{valType:"color",dflt:c2.gripBgActiveColor},bgcolor:{valType:"color",dflt:c2.railBgColor},bordercolor:{valType:"color",dflt:c2.railBorderColor},borderwidth:{valType:"number",min:0,dflt:c2.railBorderWidth},ticklen:{valType:"number",min:0,dflt:c2.tickLength},tickcolor:{valType:"color",dflt:c2.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:c2.minorTickLength}}),"arraydraw","from-root")});var zme=we((mfr,Pme)=>{"use strict";var LA=ei(),Cme=$d(),Lme=yV(),cgt=bE(),hgt=cgt.name,dgt=Lme.steps;Pme.exports=function(t,r){Cme(t,r,{name:hgt,handleItemDefaults:pgt})};function pgt(e,t,r){function n(c,h){return LA.coerce(e,t,Lme,c,h)}for(var i=Cme(e,t,{name:"steps",handleItemDefaults:vgt}),a=0,o=0;o{"use strict";var Um=Kl(),LI=Cc(),C_=jl(),Vm=Mu(),r0=ei(),mgt=r0.strTranslate,wE=Wf(),ygt=Lf().arrayEditor,df=bE(),xV=Nh(),Dme=xV.LINE_SPACING,gV=xV.FROM_TL,_V=xV.FROM_BR;Ume.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=ggt(n,t),a=n._infolayer.selectAll("g."+df.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(df.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),LI.autoMargin(t,Fme(f))}if(a.exit().each(function(){Um.select(this).selectAll("g."+df.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+df.groupClassName).data(i,_gt);s.enter().append("g").classed(df.groupClassName,!0),s.exit().each(o).remove();for(var u=0;u0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",mgt(o-df.gripWidth*.5,t._dims.currentValueTotalHeight))}}function bV(e,t){var r=e._dims;return r.inputAreaStart+df.stepInset+(r.inputAreaLength-2*df.stepInset)*Math.min(1,Math.max(0,t))}function Rme(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-df.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*df.stepInset-2*r.inputAreaStart)))}function Mgt(e,t,r){var n=r._dims,i=r0.ensureSingle(e,"rect",df.railTouchRectClass,function(a){a.call(qme,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,df.tickOffset+r.ticklen+n.labelHeight)}).call(C_.fill,r.bgcolor).attr("opacity",0),Vm.setTranslate(i,0,n.currentValueTotalHeight)}function Egt(e,t){var r=t._dims,n=r.inputAreaLength-df.railInset*2,i=r0.ensureSingle(e,"rect",df.railRectClass);i.attr({width:n,height:df.railWidth,rx:df.railRadius,ry:df.railRadius,"shape-rendering":"crispEdges"}).call(C_.stroke,t.bordercolor).call(C_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Vm.setTranslate(i,df.railInset,(r.inputAreaWidth-df.railWidth)*.5+r.currentValueTotalHeight)}});var Hme=we((gfr,Gme)=>{"use strict";var kgt=bE();Gme.exports={moduleType:"component",name:kgt.name,layoutAttributes:yV(),supplyLayoutDefaults:zme(),draw:Vme()}});var zI=we((_fr,jme)=>{"use strict";var Wme=Bh();jme.exports={bgcolor:{valType:"color",dflt:Wme.background,editType:"plot"},bordercolor:{valType:"color",dflt:Wme.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var wV=we((xfr,Xme)=>{"use strict";Xme.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var II=we((bfr,Zme)=>{"use strict";Zme.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Jme=we(DI=>{"use strict";var Cgt=jc(),Lgt=Wf(),Yme=II(),Pgt=Nh().LINE_SPACING,RI=Yme.name;function Kme(e){var t=e&&e[RI];return t&&t.visible}DI.isVisible=Kme;DI.makeData=function(e){for(var t=Cgt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var FI=ei(),$me=Lf(),Qme=jc(),zgt=zI(),Igt=wV();eye.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;FI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=$me.newContainer(a,"rangeslider");function u(L,x){return FI.coerce(o,s,zgt,L,x)}var l,f;function c(L,x){return FI.coerce(l,f,Igt,L,x)}var h=u("visible");if(h){u("bgcolor",r.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!a.isValidRange(o.range)),u("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(L){return L.slice(0,Math.max(0,L.indexOf("y")))===Qme.name2id(n)}).map(function(L){return L.slice(L.indexOf("y"),L.length)}),y=FI.simpleMap(p,Qme.id2name),b=0;b{"use strict";var Rgt=jc().list,Dgt=Mm().getAutoRange,Fgt=II();rye.exports=function(t){for(var r=Rgt(t,"x",!0),n=0;n{"use strict";var OI=Kl(),Ogt=$l(),Bgt=Cc(),dh=ei(),BI=dh.strTranslate,aye=Mu(),L_=jl(),qgt=Ob(),Ngt=Mh(),AV=jc(),Ugt=xp(),Vgt=Em(),Tf=II();oye.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)j=M[W+1];else if(G=N.pmax)j=M[W+1];else if(G0?e.touches[0].clientX:0}function Ggt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+Tf.slideBoxClassName).node(),a=e.select("rect."+Tf.grabAreaMinClassName).node(),o=e.select("rect."+Tf.grabAreaMaxClassName).node();function s(){var u=OI.event,l=u.target,f=nye(u),c=f-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),p=Ugt.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",b),p.addEventListener("mousemove",y),p.addEventListener("mouseup",b);function y(v){var C=nye(v),E=+C-f,A,L,x;switch(l){case i:if(x="ew-resize",h+E>r._length||d+E<0)return;A=h+E,L=d+E;break;case a:if(x="col-resize",h+E>r._length)return;A=h+E,L=d;break;case o:if(x="col-resize",d+E<0)return;A=h,L=d+E;break;default:x="ew-resize",A=c,L=c+E;break}if(L{"use strict";var Qgt=ei(),e1t=zI(),t1t=wV(),TV=Jme();lye.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Qgt.extendFlat({},e1t,{yaxis:t1t})}}},layoutAttributes:zI(),handleDefaults:tye(),calcAutorange:iye(),draw:sye(),isVisible:TV.isVisible,makeData:TV.makeData,autoMarginOpts:TV.autoMarginOpts}});var qI=we((Efr,cye)=>{"use strict";var r1t=gc(),fye=Bh(),i1t=Lf().templatedArray,n1t=i1t("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});cye.exports={visible:{valType:"boolean",editType:"plot"},buttons:n1t,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:r1t({editType:"plot"}),bgcolor:{valType:"color",dflt:fye.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:fye.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var SV=we((kfr,hye)=>{"use strict";hye.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var vye=we((Cfr,pye)=>{"use strict";var NI=ei(),a1t=jl(),o1t=Lf(),s1t=$d(),dye=qI(),MV=SV();pye.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=o1t.newContainer(r,"rangeselector");function u(d,p){return NI.coerce(o,s,dye,d,p)}var l=s1t(o,s,{name:"buttons",handleItemDefaults:l1t,calendar:a}),f=u("visible",l.length>0);if(f){var c=u1t(r,n,i);u("x",c[0]),u("y",c[1]),NI.noneOrAll(t,r,["x","y"]),u("xanchor"),u("yanchor"),NI.coerceFont(u,"font",n.font);var h=u("bgcolor");u("activecolor",a1t.contrast(h,MV.lightAmount,MV.darkAmount)),u("bordercolor"),u("borderwidth")}};function l1t(e,t,r,n){var i=n.calendar;function a(u,l){return NI.coerce(e,t,dye.buttons,u,l)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function u1t(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var f1t=qB(),c1t=ei().titleCase;mye.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=h1t(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function h1t(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=f1t["utc"+c1t(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var u=a.offset(n,-o);s=e.l2r(+a.ceil(u));break}var l=r[1];return[s,l]}});var Sye=we((Pfr,Tye)=>{"use strict";var VI=Kl(),d1t=$l(),p1t=Cc(),gye=jl(),Aye=Mu(),Ug=ei(),_ye=Ug.strTranslate,UI=Wf(),v1t=jc(),CV=Nh(),xye=CV.LINE_SPACING,bye=CV.FROM_TL,wye=CV.FROM_BR,kV=SV(),m1t=yye();Tye.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(y1t(t),g1t);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=VI.select(this),o=i,s=o.rangeselector,u=a.selectAll("g.button").data(Ug.filterVisible(s.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(l){var f=VI.select(this),c=m1t(o,l);l._isActive=_1t(o,l,c),f.call(EV,s,l),f.call(b1t,s,l,t),f.on("click",function(){t._dragged||d1t.call("_guiRelayout",t,c)}),f.on("mouseover",function(){l._isHovered=!0,f.call(EV,s,l)}),f.on("mouseout",function(){l._isHovered=!1,f.call(EV,s,l)})}),A1t(t,u,s,o._name,a)})};function y1t(e){for(var t=v1t.list(e,"x",!0),r=[],n=0;n{"use strict";Mye.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:qI()}}},layoutAttributes:qI(),handleDefaults:vye(),draw:Sye()}});var zc=we(LV=>{"use strict";var kye=Su().extendFlat;LV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:kye({},r,{}),y:kye({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};LV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var T1t=ei(),S1t=_3().counter,M1t=zc().attributes,Cye=qh().idRegex,E1t=Lf(),PV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[S1t("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Cye.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[Cye.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:M1t({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function GI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function k1t(e,t){var r=e.grid||{},n=GI(t,r,"x"),i=GI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),u=o&&n!==r.xaxes&&s&&i!==r.yaxes,l,f;a?(l=r.subplots.length,f=r.subplots[0].length):(s&&(l=i.length),o&&(f=n.length));var c=E1t.newContainer(t,"grid");function h(x,k){return T1t.coerce(r,c,PV,x,k)}var d=h("rows",l),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var y=h("pattern")==="independent";y&&(a=!0)}c._hasSubplotGrid=a;var b=h("roworder"),v=b==="top to bottom",C=a?.2:.1,E=a?.3:.1,A,L;u&&t._splomGridDflt&&(A=t._splomGridDflt.xside,L=t._splomGridDflt.yside),c._domains={x:Lye("x",h,C,A,p),y:Lye("y",h,E,L,d,v)}}function Lye(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var u=new Array(i),l=s[0],f=(s[1]-l)/(i-o),c=f*(1-o),h=0;h{"use strict";Iye.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var Fye=we((Ffr,Dye)=>{"use strict";var Rye=ku(),L1t=$l(),P1t=ei(),z1t=Lf(),I1t=IV();Dye.exports=function(e,t,r,n){var i="error_"+n.axis,a=z1t.newContainer(t,i),o=e[i]||{};function s(p,y){return P1t.coerce(o,a,I1t,p,y)}var u=o.array!==void 0||o.value!==void 0||o.type==="sqrt",l=s("visible",u);if(l!==!1){var f=s("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=s("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(s("array"),s("traceref"),c||(s("arrayminus"),s("tracerefminus"))):(f==="percent"||f==="constant")&&(s("value"),c||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||Rye(o.thickness)||Rye(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",L1t.traceIs(t,"gl3d")?0:4))}}});var RV=we((Ofr,Bye)=>{"use strict";Bye.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(l,f){var c=+i[f];return[c,c]};var a=t.arrayminus||[];return function(l,f){var c=+i[f],h=+a[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=Oye(r,t.value),s=Oye(r,t.valueminus);return n||t.valueminus===void 0?function(l){var f=o(l);return[f,f]}:function(l){return[s(l),o(l)]}}};function Oye(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var Uye=we((Bfr,Nye)=>{"use strict";var DV=ku(),R1t=$l(),FV=wu(),D1t=ei(),F1t=RV();Nye.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Vye=Kl(),P_=ku(),O1t=Mu(),B1t=lc();Gye.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,u=i&&i.duration>0,l=t._context.staticPlot;r.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(C){return C.id});var y=B1t.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var b=Vye.select(this).selectAll("g.errorbar").data(f,p);if(b.exit().remove(),!!f.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var v=b.enter().append("g").classed("errorbar",!0);u&&v.style("opacity",0).transition().duration(i.duration).style("opacity",1),O1t.setClipUrl(b,n.layerClipId,t),b.each(function(C){var E=Vye.select(this),A=q1t(C,o,s);if(!(y&&!C.vis)){var L,x=E.select("path.yerror");if(d.visible&&P_(A.x)&&P_(A.yh)&&P_(A.ys)){var k=d.width;L="M"+(A.x-k)+","+A.yh+"h"+2*k+"m-"+k+",0V"+A.ys,A.noYS||(L+="m-"+k+",0h"+2*k),a=!x.size(),a?x=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("yerror",!0):u&&(x=x.transition().duration(i.duration).ease(i.easing)),x.attr("d",L)}else x.remove();var S=E.select("path.xerror");if(h.visible&&P_(A.y)&&P_(A.xh)&&P_(A.xs)){var m=(h.copy_ystyle?d:h).width;L="M"+A.xh+","+(A.y-m)+"v"+2*m+"m0,-"+m+"H"+A.xs,A.noXS||(L+="m0,-"+m+"v"+2*m),a=!S.size(),a?S=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0):u&&(S=S.transition().duration(i.duration).ease(i.easing)),S.attr("d",L)}else S.remove()}})}})};function q1t(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),P_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),P_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Xye=we((Nfr,jye)=>{"use strict";var N1t=Kl(),Wye=jl();jye.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=N1t.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Wye.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Wye.stroke,a.color)})}});var Kye=we((Ufr,Yye)=>{"use strict";var AE=ei(),Zye=Sc().overrideAll,TE=IV(),h2={error_x:AE.extendFlat({},TE),error_y:AE.extendFlat({},TE)};delete h2.error_x.copy_zstyle;delete h2.error_y.copy_zstyle;delete h2.error_y.copy_ystyle;var SE={error_x:AE.extendFlat({},TE),error_y:AE.extendFlat({},TE),error_z:AE.extendFlat({},TE)};delete SE.error_x.copy_ystyle;delete SE.error_y.copy_ystyle;delete SE.error_z.copy_ystyle;delete SE.error_z.copy_zstyle;Yye.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:h2,bar:h2,histogram:h2,scatter3d:Zye(SE,"calc","nested"),scattergl:Zye(h2,"calc","nested")}},supplyDefaults:Fye(),calc:Uye(),makeComputeError:RV(),plot:Hye(),style:Xye(),hoverInfo:U1t};function U1t(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var $ye=we((Vfr,Jye)=>{"use strict";Jye.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var age=we((Gfr,nge)=>{"use strict";var z_=Kl(),OV=hd(),WI=Cc(),Qye=$l(),Vg=wu(),HI=xp(),U0=ei(),Hm=U0.strTranslate,ige=Su().extendFlat,BV=Em(),Gm=Mu(),qV=jl(),V1t=Ob(),G1t=Wf(),H1t=yp().flipScale,W1t=pE(),j1t=mI(),X1t=Dd(),NV=Nh(),ege=NV.LINE_SPACING,tge=NV.FROM_TL,rge=NV.FROM_BR,Yc=$ye().cn;function Z1t(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Yc.colorbar).data(Y1t(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(Yc.colorbar,!0),r.each(function(n){var i=z_.select(this);U0.ensureSingle(i,"rect",Yc.cbbg),U0.ensureSingle(i,"g",Yc.cbfills),U0.ensureSingle(i,"g",Yc.cblines),U0.ensureSingle(i,"g",Yc.cbaxis,function(o){o.classed(Yc.crisp,!0)}),U0.ensureSingle(i,"g",Yc.cbtitleunshift,function(o){o.append("g").classed(Yc.cbtitle,!0)}),U0.ensureSingle(i,"rect",Yc.cboutline);var a=K1t(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&J1t(i,n,e)}),r.exit().each(function(n){WI.autoMargin(e,n._id)}).remove(),r.order()}function Y1t(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function u(E){return ige(E,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function l(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?H1t(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var f=0;f1){var Be=Math.pow(10,Math.floor(Math.log(ge)/Math.LN10));He*=Be*U0.roundUp(ge/Be,[2,5,10]),(Math.abs(O.start)/O.size+1e-6)%1<2e-6&&(Te.tick0=0)}Te.dtick=He}Te.domain=n?[te+p/A.h,te+H-p/A.h]:[te+d/A.w,te+H-d/A.w],Te.setScale(),e.attr("transform",Hm(Math.round(A.l),Math.round(A.t)));var ce=e.select("."+Yc.cbtitleunshift).attr("transform",Hm(-Math.round(A.l),-Math.round(A.t))),je=Te.ticklabelposition,rt=Te.title.font.size,bt=e.select("."+Yc.cbaxis),Ot,it=0,Ke=0;function zt(Me,oe){var Ne={propContainer:Te,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+Yc.cbtitle)},vt=Me.charAt(0)==="h"?Me.slice(1):"h"+Me;e.selectAll("."+vt+",."+vt+"-math-group").remove(),V1t.draw(r,Me,ige(Ne,oe||{}))}function Mt(){if(n&&be||!n&&!be){var Me,oe;S==="top"&&(Me=d+A.l+re*y,oe=p+A.t+ae*(1-te-H)+3+rt*.75),S==="bottom"&&(Me=d+A.l+re*y,oe=p+A.t+ae*(1-te)-3-rt*.25),S==="right"&&(oe=p+A.t+ae*b+3+rt*.75,Me=d+A.l+re*te),zt(Te._id+"title",{attributes:{x:Me,y:oe,"text-anchor":n?"start":"middle"}})}}function kt(){if(n&&!be||!n&&be){var Me=Te.position||0,oe=Te._offset+Te._length/2,Ne,vt;if(S==="right")vt=oe,Ne=A.l+re*Me+10+rt*(Te.showticklabels?1:.5);else if(Ne=oe,S==="bottom"&&(vt=A.t+ae*Me+10+(je.indexOf("inside")===-1?Te.tickfont.size:0)+(Te.ticks!=="inside"&&t.ticklen||0)),S==="top"){var lt=k.text.split("
").length;vt=A.t+ae*Me+10-j-ege*rt*lt}zt((n?"h":"v")+Te._id+"title",{avoid:{selection:z_.select(r).selectAll("g."+Te._id+"tick"),side:S,offsetTop:n?0:A.t,offsetLeft:n?A.l:0,maxShift:n?E.width:E.height},attributes:{x:Ne,y:vt,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function $e(){if(!n&&!be||n&&be){var Me=e.select("."+Yc.cbtitle),oe=Me.select("text"),Ne=[-u/2,u/2],vt=Me.select(".h"+Te._id+"title-math-group").node(),lt=15.6;oe.node()&&(lt=parseInt(oe.node().style.fontSize,10)*ege);var We;if(vt?(We=Gm.bBox(vt),Ke=We.width,it=We.height,it>lt&&(Ne[1]-=(it-lt)/2)):oe.node()&&!oe.classed(Yc.jsPlaceholder)&&(We=Gm.bBox(oe.node()),Ke=We.width,it=We.height),n){if(it){if(it+=5,S==="top")Te.domain[1]-=it/A.h,Ne[1]*=-1;else{Te.domain[0]+=it/A.h;var Ve=G1t.lineCount(oe);Ne[1]+=(1-Ve)*lt}Me.attr("transform",Hm(Ne[0],Ne[1])),Te.setScale()}}else Ke&&(S==="right"&&(Te.domain[0]+=(Ke+rt/2)/A.w),Me.attr("transform",Hm(Ne[0],Ne[1])),Te.setScale())}e.selectAll("."+Yc.cbfills+",."+Yc.cblines).attr("transform",n?Hm(0,Math.round(A.h*(1-Te.domain[1]))):Hm(Math.round(A.w*Te.domain[0]),0)),bt.attr("transform",n?Hm(0,Math.round(-A.t)):Hm(Math.round(-A.l),0));var et=e.select("."+Yc.cbfills).selectAll("rect."+Yc.cbfill).attr("style","").data(U);et.enter().append("rect").classed(Yc.cbfill,!0).attr("style",""),et.exit().remove();var tt=m.map(Te.c2p).map(Math.round).sort(function(vr,Vt){return vr-Vt});et.each(function(vr,Vt){var Pe=[Vt===0?m[0]:(U[Vt]+U[Vt-1])/2,Vt===U.length-1?m[1]:(U[Vt]+U[Vt+1])/2].map(Te.c2p).map(Math.round);n&&(Pe[1]=U0.constrain(Pe[1]+(Pe[1]>Pe[0])?1:-1,tt[0],tt[1]));var xe=z_.select(this).attr(n?"x":"y",me).attr(n?"y":"x",z_.min(Pe)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(z_.max(Pe)-z_.min(Pe),2));if(t._fillgradient)Gm.gradient(xe,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=M(vr).replace("e-","");xe.attr("fill",OV(Oe).toHexString())}});var Lt=e.select("."+Yc.cblines).selectAll("path."+Yc.cbline).data(x.color&&x.width?G:[]);Lt.enter().append("path").classed(Yc.cbline,!0),Lt.exit().remove(),Lt.each(function(vr){var Vt=me,Pe=Math.round(Te.c2p(vr))+x.width/2%1;z_.select(this).attr("d","M"+(n?Vt+","+Pe:Pe+","+Vt)+(n?"h":"v")+j).call(Gm.lineGroupStyle,x.width,P(vr),x.dash)}),bt.selectAll("g."+Te._id+"tick,path").remove();var jt=me+j+(u||0)/2-(t.ticks==="outside"?1:0),or=Vg.calcTicks(Te),yr=Vg.getTickSigns(Te)[2];return Vg.drawTicks(r,Te,{vals:Te.ticks==="inside"?Vg.clipEnds(Te,or):or,layer:bt,path:Vg.makeTickPath(Te,jt,yr),transFn:Vg.makeTransTickFn(Te)}),Vg.drawLabels(r,Te,{vals:or,layer:bt,transFn:Vg.makeTransTickLabelFn(Te),labelFns:Vg.makeLabelFns(Te,jt)})}function Re(){var Me,oe=j+u/2;je.indexOf("inside")===-1&&(Me=Gm.bBox(bt.node()),oe+=n?Me.width:Me.height),Ot=ce.select("text");var Ne=0,vt=n&&S==="top",lt=!n&&S==="right",We=0;if(Ot.node()&&!Ot.classed(Yc.jsPlaceholder)){var Ve,et=ce.select(".h"+Te._id+"title-math-group").node();et&&(n&&be||!n&&!be)?(Me=Gm.bBox(et),Ne=Me.width,Ve=Me.height):(Me=Gm.bBox(ce.node()),Ne=Me.right-A.l-(n?me:Se),Ve=Me.bottom-A.t-(n?Se:me),!n&&S==="top"&&(oe+=Me.height,We=Me.height)),lt&&(Ot.attr("transform",Hm(Ne/2+rt/2,0)),Ne*=2),oe=Math.max(oe,n?Ne:Ve)}var tt=(n?d:p)*2+oe+l+u/2,Lt=0;!n&&k.text&&h==="bottom"&&b<=0&&(Lt=tt/2,tt+=Lt,We+=Lt),E._hColorbarMoveTitle=Lt,E._hColorbarMoveCBTitle=We;var jt=l+u,or=(n?me:Se)-jt/2-(n?d:0),yr=(n?Se:me)-(n?N:p+We-Lt);e.select("."+Yc.cbbg).attr("x",or).attr("y",yr).attr(n?"width":"height",Math.max(tt-Lt,2)).attr(n?"height":"width",Math.max(N+jt,2)).call(qV.fill,f).call(qV.stroke,t.bordercolor).style("stroke-width",l);var vr=lt?Math.max(Ne-10,0):0;e.selectAll("."+Yc.cboutline).attr("x",(n?me:Se+d)+vr).attr("y",(n?Se+p-N:me)+(vt?it:0)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(N-(n?2*p+it:2*d+vr),2)).call(qV.stroke,t.outlinecolor).style({fill:"none","stroke-width":u});var Vt=n?Ce*tt:0,Pe=n?0:(1-Ee)*tt-We;if(Vt=C?A.l-Vt:-Vt,Pe=v?A.t-Pe:-Pe,e.attr("transform",Hm(Vt,Pe)),!n&&(l||OV(f).getAlpha()&&!OV.equals(E.paper_bgcolor,f))){var xe=bt.selectAll("text"),Oe=xe[0].length,ze=e.select("."+Yc.cbbg).node(),De=Gm.bBox(ze),ht=Gm.getTranslate(e),st=2;xe.each(function(Vr,Ai){var Bi=0,Ri=Oe-1;if(Ai===Bi||Ai===Ri){var ln=Gm.bBox(this),hn=Gm.getTranslate(this),qr;if(Ai===Ri){var _i=ln.right+hn.x,zi=De.right+ht.x+Se-l-st+y;qr=zi-_i,qr>0&&(qr=0)}else if(Ai===Bi){var Dt=ln.left+hn.x,_t=De.left+ht.x+Se+l+st;qr=_t-Dt,qr<0&&(qr=0)}qr&&(Oe<3?this.setAttribute("transform","translate("+qr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var gt={},xt=tge[c],pr=rge[c],br=tge[h],cr=rge[h],Er=tt-j;n?(a==="pixels"?(gt.y=b,gt.t=N*br,gt.b=N*cr):(gt.t=gt.b=0,gt.yt=b+i*br,gt.yb=b-i*cr),s==="pixels"?(gt.x=y,gt.l=tt*xt,gt.r=tt*pr):(gt.l=Er*xt,gt.r=Er*pr,gt.xl=y-o*xt,gt.xr=y+o*pr)):(a==="pixels"?(gt.x=y,gt.l=N*xt,gt.r=N*pr):(gt.l=gt.r=0,gt.xl=y+i*xt,gt.xr=y-i*pr),s==="pixels"?(gt.y=1-b,gt.t=tt*br,gt.b=tt*cr):(gt.t=Er*br,gt.b=Er*cr,gt.yt=b-o*br,gt.yb=b+o*cr));var ii=t.y<.5?"b":"t",jr=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var kr={r:E.width-or-Vt,l:or+gt.r,b:E.height-yr-Pe,t:yr+gt.b};C&&v?WI.autoMargin(r,t._id,gt):C?r._fullLayout._reservedMargin[t._id][ii]=kr[ii]:v||n?r._fullLayout._reservedMargin[t._id][jr]=kr[jr]:r._fullLayout._reservedMargin[t._id][ii]=kr[ii]}return U0.syncOrAsync([WI.previousPromises,Mt,$e,kt,WI.previousPromises,Re],r)}function J1t(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,u;HI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),BV(e)},moveFn:function(l,f){e.attr("transform",o+Hm(l,f)),s=HI.align((n?t._uFrac:t._vFrac)+l/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),u=HI.align((n?t._vFrac:1-t._uFrac)-f/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=HI.getCursor(s,u,t.xanchor,t.yanchor);BV(e,c)},doneFn:function(){if(BV(e),s!==void 0&&u!==void 0){var l={};l[t._propPrefix+"x"]=s,l[t._propPrefix+"y"]=u,t._traceIndex!==void 0?Qye.call("_guiRestyle",r,l,t._traceIndex):Qye.call("_guiRelayout",r,l)}}})}function $1t(e,t,r){var n=t._levels,i=[],a=[],o,s,u=n.end+n.size/100,l=n.size,f=1.001*r[0]-.001*r[1],c=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*l,!(l>0?o>=u:o<=u));s++)o>f&&o0?o>=u:o<=u));s++)o>r[0]&&o{"use strict";oge.exports={moduleType:"component",name:"colorbar",attributes:cP(),supplyDefaults:Yq(),draw:age().draw,hasColorbar:Vq()}});var uge=we((Wfr,lge)=>{"use strict";lge.exports={moduleType:"component",name:"legend",layoutAttributes:GN(),supplyLayoutDefaults:WN(),draw:a7(),style:t7()}});var cge=we((jfr,fge)=>{"use strict";fge.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var dge=we((Xfr,hge)=>{"use strict";hge.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var VV=we((Zfr,yge)=>{"use strict";var e_t=$l(),mge=ei(),UV=mge.extendFlat,pge=mge.extendDeep;function vge(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function t_t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}yge.exports=function(t,r){var n,i=t.data,a=t.layout,o=pge([],i),s=pge({},a,vge(r.tileClass)),u=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var l=Object.keys(s);for(n=0;n{"use strict";var r_t=Sb().EventEmitter,i_t=$l(),n_t=ei(),gge=Bg(),a_t=VV(),o_t=$z(),s_t=Qz();function l_t(e,t){var r=new r_t,n=a_t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=gge.getDelay(i._fullLayout);setTimeout(function(){var u=o_t(i),l=document.createElement("canvas");l.id=n_t.randstr(),r=s_t({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:l,emitter:r,svg:u}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=gge.getRedrawFunc(i);return i_t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}_ge.exports=l_t});var Age=we((Kfr,wge)=>{"use strict";var bge=Bg(),u_t={getDelay:bge.getDelay,getRedrawFunc:bge.getRedrawFunc,clone:VV(),toSVG:$z(),svgToImg:Qz(),toImage:xge(),downloadImage:bU()};wge.exports=u_t});var Sge=we(Gg=>{"use strict";Gg.version=BM().version;Oee();Sne();var f_t=$l(),ME=Gg.register=f_t.register,HV=Wde(),Tge=Object.keys(HV);for(jI=0;jI{"use strict";Mge.exports=Sge()});var Oy=we((Qfr,zge)=>{"use strict";var lh=Zc(),kge=Xc().axisHoverFormat,{hovertemplateAttrs:c_t,texttemplateAttrs:h_t,templatefallbackAttrs:Cge}=Of(),Pge=nc(),d_t=gc(),Lge=S_(),p_t=Id().pattern,d2=Su().extendFlat,WV=d_t({editType:"calc",arrayOk:!0,colorEditType:"style"}),v_t=lh.marker,m_t=v_t.line,y_t=d2({},m_t.width,{dflt:0}),g_t=d2({width:y_t,editType:"calc"},Pge("marker.line")),__t=d2({line:g_t,editType:"calc"},Pge("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:p_t,cornerradius:{valType:"any",editType:"calc"}});zge.exports={x:lh.x,x0:lh.x0,dx:lh.dx,y:lh.y,y0:lh.y0,dy:lh.dy,xperiod:lh.xperiod,yperiod:lh.yperiod,xperiod0:lh.xperiod0,yperiod0:lh.yperiod0,xperiodalignment:lh.xperiodalignment,yperiodalignment:lh.yperiodalignment,xhoverformat:kge("x"),yhoverformat:kge("y"),text:lh.text,texttemplate:h_t({editType:"plot"},{keys:Lge.eventDataKeys}),texttemplatefallback:Cge({editType:"plot"}),hovertext:lh.hovertext,hovertemplate:c_t({},{keys:Lge.eventDataKeys}),hovertemplatefallback:Cge(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:d2({},WV,{}),insidetextfont:d2({},WV,{}),outsidetextfont:d2({},WV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:d2({},lh.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:__t,offsetgroup:lh.offsetgroup,alignmentgroup:lh.alignmentgroup,selected:{marker:{opacity:lh.selected.marker.opacity,color:lh.selected.marker.color,editType:"style"},textfont:lh.selected.textfont,editType:"style"},unselected:{marker:{opacity:lh.unselected.marker.opacity,color:lh.unselected.marker.color,editType:"style"},textfont:lh.unselected.textfont,editType:"style"},zorder:lh.zorder}});var ZI=we((ecr,Ige)=>{"use strict";Ige.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var YI=we((tcr,Fge)=>{"use strict";var x_t=jl(),Rge=yp().hasColorscale,Dge=nd(),b_t=ei().coercePattern;Fge.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=Rge(t,"marker");s&&Dge(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",x_t.defaultLine),Rge(t,"marker.line")&&Dge(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),b_t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var i0=we((rcr,Vge)=>{"use strict";var Oge=ku(),zA=ei(),Bge=jl(),w_t=$l(),A_t=fA(),T_t=Rm(),S_t=YI(),M_t=i2(),qge=Oy(),KI=zA.coerceFont;function E_t(e,t,r,n){function i(l,f){return zA.coerce(e,t,qge,l,f)}var a=A_t(e,t,n,i);if(!a){t.visible=!1;return}T_t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");Uge(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),S_t(e,t,i,r,n);var s=(t.marker.line||{}).color,u=w_t.getComponentMethod("errorbars","supplyDefaults");u(e,t,s||Bge.defaultLine,{axis:"y"}),u(e,t,s||Bge.defaultLine,{axis:"x",inherit:"y"}),zA.coerceSelectionMarkerOpacity(t,i)}function k_t(e,t){var r,n;function i(s,u){return zA.coerce(n._input,n,qge,s,u)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&Oge(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Uge(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,u=a.moduleHasConstrain!==!1,l=a.moduleHasCliponaxis!==!1,f=a.moduleHasTextangle!==!1,c=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",p=d||i==="inside",y=d||i==="outside";if(p||y){var b=KI(n,"textfont",r.font),v=zA.extendFlat({},b),C=e.textfont&&e.textfont.color,E=!C;if(E&&delete v.color,KI(n,"insidetextfont",v),h){var A=zA.extendFlat({},b);E&&delete A.color,KI(n,"pathbar.textfont",A)}y&&KI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),u&&n("constraintext"),l&&n("cliponaxis"),f&&n("textangle"),n("texttemplate"),n("texttemplatefallback")}p&&c&&n("insidetextanchor")}Vge.exports={supplyDefaults:E_t,crossTraceDefaults:k_t,handleText:Uge,validateCornerradius:Nge}});var jV=we((icr,Gge)=>{"use strict";var C_t=$l(),L_t=wu(),P_t=ei(),z_t=ZI(),I_t=i0().validateCornerradius;Gge.exports=function(e,t,r){function n(y,b){return P_t.coerce(e,t,z_t,y,b)}for(var i=!1,a=!1,o=!1,s={},u=n("barmode"),l=u==="group",f=0;f0&&!s[h]&&(o=!0),s[h]=!0),c.visible&&c.type==="histogram"){var d=L_t.getFromId({_fullLayout:t},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}u!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var p=n("barcornerradius");t.barcornerradius=I_t(p)}});var EE=we((ncr,Hge)=>{"use strict";var IA=ei();Hge.exports=function(t,r){for(var n=0;n{"use strict";var Wge=wu(),jge=Fm(),Xge=yp().hasColorscale,Zge=gp(),R_t=EE(),D_t=O0();Yge.exports=function(t,r){var n=Wge.getFromId(t,r.xaxis||"x"),i=Wge.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",c),s=i.makeCalcdata(r,"y"),u=jge(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y",c),s=n.makeCalcdata(r,"x"),u=jge(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),p=0;p{"use strict";var F_t=Kl(),O_t=ei();function B_t(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var u=s.transform;if(u){u.scale=a&&u.hide?0:i/u.fontSize;var l=F_t.select(this).select("text");O_t.setTransormAndDisplay(l,u)}})}}function q_t(e,t,r){if(r.uniformtext.mode){var n=Jge(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var U_t=ku(),V_t=hd(),Qge=ei().isArrayOrTypedArray;p2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};p2.coerceNumber=function(e,t,r){if(U_t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};p2.coerceColor=function(e,t,r){return V_t(t).isValid()?t:r!==void 0?r:e.dflt};p2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};p2.getValue=function(e,t){var r;return Qge(e)?t{"use strict";var kE=Kl(),G_t=jl(),CE=Mu(),e1e=ei(),t1e=$l(),r1e=Ap().resizeText,XV=Oy(),H_t=XV.textfont,W_t=XV.insidetextfont,j_t=XV.outsidetextfont,rp=JI();function X_t(e){var t=kE.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");r1e(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&kE.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=kE.select(this),o=i[0].trace;i1e(a,o,e)}),t1e.getComponentMethod("errorbars","style")(t)}function i1e(e,t,r){CE.pointStyle(e.selectAll("path"),t,r),n1e(e,t,r)}function n1e(e,t,r){e.selectAll("text").each(function(n){var i=kE.select(this),a=e1e.ensureUniformFontSize(r,a1e(i,n,t,r));CE.font(i,a)})}function Z_t(e,t,r){var n=t[0].trace;n.selectedpoints?Y_t(r,n,e):(i1e(r,n,e),t1e.getComponentMethod("errorbars","style")(r))}function Y_t(e,t,r){CE.selectedPointStyle(e.selectAll("path"),t),K_t(e.selectAll("text"),t,r)}function K_t(e,t,r){e.each(function(n){var i=kE.select(this),a;if(n.selected){a=e1e.ensureUniformFontSize(r,a1e(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),CE.font(i,a)}else CE.selectedTextStyle(i,t)})}function a1e(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=u1e(t,r);a=s1e(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=l1e(r,t.i,i));return a}function o1e(e,t,r){return ZV(H_t,e.textfont,t,r)}function s1e(e,t,r,n){var i=o1e(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:G_t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),ZV(W_t,e.insidetextfont,t,i)}function l1e(e,t,r){var n=o1e(e,t,r);return ZV(j_t,e.outsidetextfont,t,n)}function ZV(e,t,r,n){t=t||{};var i=rp.getValue(t.family,r),a=rp.getValue(t.size,r),o=rp.getValue(t.color,r),s=rp.getValue(t.weight,r),u=rp.getValue(t.style,r),l=rp.getValue(t.variant,r),f=rp.getValue(t.textcase,r),c=rp.getValue(t.lineposition,r),h=rp.getValue(t.shadow,r);return{family:rp.coerceString(e.family,i,n.family),size:rp.coerceNumber(e.size,a,n.size),color:rp.coerceColor(e.color,o,n.color),weight:rp.coerceString(e.weight,s,n.weight),style:rp.coerceString(e.style,u,n.style),variant:rp.coerceString(e.variant,l,n.variant),textcase:rp.coerceString(e.variant,f,n.textcase),lineposition:rp.coerceString(e.variant,c,n.lineposition),shadow:rp.coerceString(e.variant,h,n.shadow)}}function u1e(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}f1e.exports={style:X_t,styleTextPoints:n1e,styleOnSelect:Z_t,getInsideTextFont:s1e,getOutsideTextFont:l1e,getBarColor:u1e,resizeText:r1e}});var m2=we((ucr,g1e)=>{"use strict";var $I=Kl(),QI=ku(),Od=ei(),J_t=Wf(),$_t=jl(),I_=Mu(),Q_t=$l(),eR=wu().tickText,c1e=Ap(),ext=c1e.recordMinTextSize,txt=c1e.clearMinTextSize,YV=V0(),RA=JI(),rxt=S_(),h1e=Oy(),ixt=h1e.text,nxt=h1e.textposition,axt=iv().appendArrayPointValue,Gp=rxt.TEXTPAD;function oxt(e){return e.id}function sxt(e){if(e.ids)return oxt}function KV(e){return(e>0)-(e<0)}function By(e,t){return e0}function uxt(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,u=e._fullLayout,l=e._context.staticPlot;i||(i={mode:u.barmode,norm:u.barmode,gap:u.bargap,groupgap:u.bargroupgap},txt("bar",u));var f=Od.makeTraceGroups(n,r,"trace bars").each(function(c){var h=$I.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",b=d.type==="funnel",v=d.type==="histogram",C=d.type==="bar",E=C||b,A=0;y&&d.connector.visible&&d.connector.mode==="between"&&(A=d.connector.line.width/2);var L=d.orientation==="h",x=p1e(i),k=Od.ensureSingle(h,"g","points"),S=sxt(d),m=k.selectAll("g.point").data(Od.identity,S);m.enter().append("g").classed("point",!0),m.exit().remove(),m.each(function(M,O){var F=$I.select(this),U=lxt(M,o,s,L),G=U[0][0],j=U[0][1],W=U[1][0],N=U[1][1],H=(L?j-G:N-W)===0;H&&E&&RA.getLineWidth(d,M)&&(H=!1),H||(H=!QI(G)||!QI(j)||!QI(W)||!QI(N)),M.isBlank=H,H&&(L?j=G:N=W),A&&!H&&(L?(G-=By(G,j)*A,j+=By(G,j)*A):(W-=By(W,N)*A,N+=By(W,N)*A));var re,ae;if(d.type==="waterfall"){if(!H){var me=d[M.dir].marker;re=me.line.width,ae=me.color}}else re=RA.getLineWidth(d,M),ae=M.mc||d.marker.color;function Ce(oe){var Ne=$I.round(re/2%1,2);return i.gap===0&&i.groupgap===0?$I.round(Math.round(oe)-Ne,2):oe}function Ee(oe,Ne,vt){return vt&&oe===Ne?oe:Math.abs(oe-Ne)>=2?Ce(oe):oe>Ne?Math.ceil(oe):Math.floor(oe)}var de=$_t.opacity(ae),te=de<1||re>.01?Ce:Ee;e._context.staticPlot||(G=te(G,j,L),j=te(j,G,L),W=te(W,N,!L),N=te(N,W,!L));var Se=L?o.c2p:s.c2p,Te;M.s0>0?Te=M._sMax:M.s0<0?Te=M._sMin:Te=M.s1>0?M._sMax:M._sMin;function be(oe,Ne){if(!oe)return 0;var vt=Math.abs(L?N-W:j-G),lt=Math.abs(L?j-G:N-W),We=te(Math.abs(Se(Te,!0)-Se(0,!0))),Ve=M.hasB?Math.min(vt/2,lt/2):Math.min(vt/2,We),et;if(Ne==="%"){var tt=Math.min(50,oe);et=vt*(tt/100)}else et=oe;return te(Math.max(Math.min(et,Ve),0))}var He=C||v?be(p.cornerradiusvalue,p.cornerradiusform):0,Ie,ge,Be="M"+G+","+W+"V"+N+"H"+j+"V"+W+"Z",ce=0;if(He&&M.s){var je=KV(M.s0)===0||KV(M.s)===KV(M.s0)?M.s1:M.s0;if(ce=te(M.hasB?0:Math.abs(Se(Te,!0)-Se(je,!0))),ce0?Math.sqrt(ce*(2*He-ce)):0,zt=rt>0?Math.max:Math.min;Ie="M"+G+","+W+"V"+(N-it*bt)+"H"+zt(j-(He-ce)*rt,G)+"A "+He+","+He+" 0 0 "+Ot+" "+j+","+(N-He*bt-Ke)+"V"+(W+He*bt+Ke)+"A "+He+","+He+" 0 0 "+Ot+" "+zt(j-(He-ce)*rt,G)+","+(W+it*bt)+"Z"}else if(M.hasB)Ie="M"+(G+He*rt)+","+W+"A "+He+","+He+" 0 0 "+Ot+" "+G+","+(W+He*bt)+"V"+(N-He*bt)+"A "+He+","+He+" 0 0 "+Ot+" "+(G+He*rt)+","+N+"H"+(j-He*rt)+"A "+He+","+He+" 0 0 "+Ot+" "+j+","+(N-He*bt)+"V"+(W+He*bt)+"A "+He+","+He+" 0 0 "+Ot+" "+(j-He*rt)+","+W+"Z";else{ge=Math.abs(N-W)+ce;var Mt=ge0?Math.sqrt(ce*(2*He-ce)):0,$e=bt>0?Math.max:Math.min;Ie="M"+(G+Mt*rt)+","+W+"V"+$e(N-(He-ce)*bt,W)+"A "+He+","+He+" 0 0 "+Ot+" "+(G+He*rt-kt)+","+N+"H"+(j-He*rt+kt)+"A "+He+","+He+" 0 0 "+Ot+" "+(j-Mt*rt)+","+$e(N-(He-ce)*bt,W)+"V"+W+"Z"}}else Ie=Be}else Ie=Be;var Re=d1e(Od.ensureSingle(F,"path"),u,i,a);if(Re.style("vector-effect",l?"none":"non-scaling-stroke").attr("d",isNaN((j-G)*(N-W))||H&&e._context.staticPlot?"M0,0Z":Ie).call(I_.setClipUrl,t.layerClipId,e),!u.uniformtext.mode&&x){var Me=I_.makePointStyleFns(d);I_.singlePointStyle(M,Re,d,Me,e)}fxt(e,t,F,c,O,G,j,W,N,He,ce,i,a),t.layerClipId&&I_.hideOutsideRangePoint(M,F.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;I_.setClipUrl(h,P?null:t.layerClipId,e)});Q_t.getComponentMethod("errorbars","plot")(e,f,t,i)}function fxt(e,t,r,n,i,a,o,s,u,l,f,c,h){var d=t.xaxis,p=t.yaxis,y=e._fullLayout,b;function v(ge,Be,ce){var je=Od.ensureSingle(ge,"text").text(Be).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(I_.font,ce).call(J_t.convertToTspans,e);return je}var C=n[0].trace,E=C.orientation==="h",A=dxt(y,n,i,d,p);b=pxt(C,i);var L=c.mode==="stack"||c.mode==="relative",x=n[i],k=!L||x._outmost,S=x.hasB,m=l&&l-f>Gp;if(!A||b==="none"||(x.isBlank||a===o||s===u)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=y.font,M=YV.getBarColor(n[i],C),O=YV.getInsideTextFont(C,i,P,M),F=YV.getOutsideTextFont(C,i,P),U=C.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Ce>0,te;m?S?te=v2(N-2*l,H,me,Ce,E)||v2(N,H-2*l,me,Ce,E):E?te=v2(N-(l-f),H,me,Ce,E)||v2(N,H-2*(l-f),me,Ce,E):te=v2(N,H-(l-f),me,Ce,E)||v2(N-2*(l-f),H,me,Ce,E):te=v2(N,H,me,Ce,E),de&&te?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Ee=Od.ensureUniformFontSize(e,b==="outside"?F:O),re=v(r,A,Ee);var Se=re.attr("transform");if(re.attr("transform",""),ae=I_.bBox(re.node()),me=ae.width,Ce=ae.height,re.attr("transform",Se),me<=0||Ce<=0){re.remove();return}}var Te=C.textangle,be,He;b==="outside"?(He=C.constraintext==="both"||C.constraintext==="outside",be=hxt(a,o,s,u,ae,{isHorizontal:E,constrained:He,angle:Te})):(He=C.constraintext==="both"||C.constraintext==="inside",be=y1e(a,o,s,u,ae,{isHorizontal:E,constrained:He,angle:Te,anchor:U,hasB:S,r:l,overhead:f})),be.fontSize=Ee.size,ext(C.type==="histogram"?"bar":C.type,be,y),x.transform=be;var Ie=d1e(re,y,c,h);Od.setTransormAndDisplay(Ie,be)}function v2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function v1e(e){return e==="auto"?0:e}function m1e(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function y1e(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=a.anchor,f=l==="end",c=l==="start",h=a.leftToRight||0,d=(h+1)/2,p=1-d,y=a.hasB,b=a.r,v=a.overhead,C=i.width,E=i.height,A=Math.abs(t-e),L=Math.abs(n-r),x=A>2*Gp&&L>2*Gp?Gp:0;A-=2*x,L-=2*x;var k=v1e(u);u==="auto"&&!(C<=A&&E<=L)&&(C>A||E>L)&&(!(C>L||E>A)||CGp){var M=cxt(e,t,r,n,S,b,v,o,y);m=M.scale,P=M.pad}else m=1,s&&(m=Math.min(1,A/S.x,L/S.y)),P=0;var O=i.left*p+i.right*d,F=(i.top+i.bottom)/2,U=(e+Gp)*p+(t-Gp)*d,G=(r+n)/2,j=0,W=0;if(c||f){var N=(o?S.x:S.y)/2;b&&(f||y)&&(x+=P);var H=o?By(e,t):By(r,n);o?c?(U=e+H*x,j=-H*N):(U=t-H*x,j=H*N):c?(G=r+H*x,W=-H*N):(G=n-H*x,W=H*N)}return{textX:O,textY:F,targetX:U,targetY:G,anchorX:j,anchorY:W,scale:m,rotate:k}}function cxt(e,t,r,n,i,a,o,s,u){var l=Math.max(0,Math.abs(t-e)-2*Gp),f=Math.max(0,Math.abs(n-r)-2*Gp),c=a-Gp,h=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=u?c*2:s?c-o:2*h,p=u?c*2:s?2*h:c-o,y,b,v,C,E;return i.y/i.x>=f/(l-d)?C=f/i.y:i.y/i.x<=(f-p)/l?C=l/i.x:!u&&s?(y=i.x*i.x+i.y*i.y/4,b=-2*i.x*(l-c)-i.y*(f/2-c),v=(l-c)*(l-c)+(f/2-c)*(f/2-c)-c*c,C=(-b+Math.sqrt(b*b-4*y*v))/(2*y)):u?(y=(i.x*i.x+i.y*i.y)/4,b=-i.x*(l/2-c)-i.y*(f/2-c),v=(l/2-c)*(l/2-c)+(f/2-c)*(f/2-c)-c*c,C=(-b+Math.sqrt(b*b-4*y*v))/(2*y)):(y=i.x*i.x/4+i.y*i.y,b=-i.x*(l/2-c)-2*i.y*(f-c),v=(l/2-c)*(l/2-c)+(f-c)*(f-c)-c*c,C=(-b+Math.sqrt(b*b-4*y*v))/(2*y)),C=Math.min(1,C),s?E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-i.y*C)/2)*(c-(f-i.y*C)/2)))-o):E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(l-i.x*C)/2)*(c-(l-i.x*C)/2)))-o),{scale:C,pad:E}}function hxt(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=i.width,f=i.height,c=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Gp?Gp:0:d=c>2*Gp?Gp:0;var p=1;s&&(p=o?Math.min(1,h/f):Math.min(1,c/l));var y=v1e(u),b=m1e(i,y),v=(o?b.x:b.y)/2,C=(i.left+i.right)/2,E=(i.top+i.bottom)/2,A=(e+t)/2,L=(r+n)/2,x=0,k=0,S=o?By(t,e):By(r,n);return o?(A=t-S*d,x=S*v):(L=n+S*d,k=-S*v),{textX:C,textY:E,targetX:A,targetY:L,anchorX:x,anchorY:k,scale:p,rotate:y}}function dxt(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=vxt(e,t,r,n,i):a.textinfo?s=mxt(t,r,n,i):s=RA.getValue(a.text,r),RA.coerceString(ixt,s)}function pxt(e,t){var r=RA.getValue(e.textposition,t);return RA.coerceEnumerated(nxt,r)}function vxt(e,t,r,n,i){var a=t[0].trace,o=Od.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",u=a.type==="waterfall",l=a.type==="funnel",f=a.orientation==="h",c,h,d,p;f?(c="y",h=i,d="x",p=n):(c="x",h=n,d="y",p=i);function y(x){return eR(h,h.c2l(x),!0).text}function b(x){return eR(p,p.c2l(x),!0).text}var v=t[r],C={};C.label=v.p,C.labelLabel=C[c+"Label"]=y(v.p);var E=Od.castOption(a,v.i,"text");(E===0||E)&&(C.text=E),C.value=v.s,C.valueLabel=C[d+"Label"]=b(v.s);var A={};axt(A,a,v.i),(s||A.x===void 0)&&(A.x=f?C.value:C.label),(s||A.y===void 0)&&(A.y=f?C.label:C.value),(s||A.xLabel===void 0)&&(A.xLabel=f?C.valueLabel:C.labelLabel),(s||A.yLabel===void 0)&&(A.yLabel=f?C.labelLabel:C.valueLabel),u&&(C.delta=+v.rawS||v.s,C.deltaLabel=b(C.delta),C.final=v.v,C.finalLabel=b(C.final),C.initial=C.final-C.delta,C.initialLabel=b(C.initial)),l&&(C.value=v.s,C.valueLabel=b(C.value),C.percentInitial=v.begR,C.percentInitialLabel=Od.formatPercent(v.begR),C.percentPrevious=v.difR,C.percentPreviousLabel=Od.formatPercent(v.difR),C.percentTotal=v.sumR,C.percenTotalLabel=Od.formatPercent(v.sumR));var L=Od.castOption(a,v.i,"customdata");return L&&(C.customdata=L),Od.texttemplateString({data:[A,C,a._meta],fallback:a.texttemplatefallback,labels:C,locale:e._d3locale,template:o})}function mxt(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function u(L){var x=a?n:r;return eR(x,L,!0).text}function l(L){var x=a?r:n;return eR(x,+L,!0).text}var f=i.textinfo,c=e[t],h=f.split("+"),d=[],p,y=function(L){return h.indexOf(L)!==-1};if(y("label")&&d.push(u(e[t].p)),y("text")&&(p=Od.castOption(i,c.i,"text"),(p===0||p)&&d.push(p)),o){var b=+c.rawS||c.s,v=c.v,C=v-b;y("initial")&&d.push(l(C)),y("delta")&&d.push(l(b)),y("final")&&d.push(l(v))}if(s){y("value")&&d.push(l(c.s));var E=0;y("percent initial")&&E++,y("percent previous")&&E++,y("percent total")&&E++;var A=E>1;y("percent initial")&&(p=Od.formatPercent(c.begR),A&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Od.formatPercent(c.difR),A&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Od.formatPercent(c.sumR),A&&(p+=" of total"),d.push(p))}return d.join("
")}g1e.exports={plot:uxt,toMoveInsideBar:y1e}});var DA=we((fcr,w1e)=>{"use strict";var LE=Vc(),yxt=$l(),_1e=jl(),gxt=ei().fillText,_xt=JI().getLineWidth,JV=wu().hoverLabelText,xxt=rf().BADNUM;function bxt(e,t,r,n,i){var a=x1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,u=o[a.index];return a.color=b1e(s,u),yxt.getComponentMethod("errorbars","hoverInfo")(u,s,a),[a]}}function x1e(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,u=n==="closest",l=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,y,b,v,C;o.orientation==="h"?(h=r,d=t,p="y",y="x",b=G,v=O):(h=t,d=r,p="x",y="y",v=G,b=O);var E=o[p+"period"],A=u||E;function L(te){return k(te,-1)}function x(te){return k(te,1)}function k(te,Se){var Te=te.w;return te[p]+Se*Te/2}function S(te){return te[p+"End"]-te[p+"Start"]}var m=u?L:E?function(te){return te.p-S(te)/2}:function(te){return Math.min(L(te),te.p-s.bardelta/2)},P=u?x:E?function(te){return te.p+S(te)/2}:function(te){return Math.max(x(te),te.p+s.bardelta/2)};function M(te,Se,Te){return i.finiteRange&&(Te=0),LE.inbox(te-h,Se-h,Te+Math.min(1,Math.abs(Se-te)/C)-1)}function O(te){return M(m(te),P(te),f)}function F(te){return M(L(te),x(te),c)}function U(te){var Se=te[y];if(l){var Te=Math.abs(te.rawS)||0;d>0?Se+=Te:d<0&&(Se-=Te)}return Se}function G(te){var Se=d,Te=te.b,be=U(te);return LE.inbox(Te-Se,be-Se,f+(be-Se)/(be-Te)-1)}function j(te){var Se=d,Te=te.b,be=U(te);return LE.inbox(Te-Se,be-Se,c+(be-Se)/(be-Te)-1)}var W=e[p+"a"],N=e[y+"a"];C=Math.abs(W.r2c(W.range[1])-W.r2c(W.range[0]));function H(te){return(b(te)+v(te))/2}var re=LE.getDistanceFunction(n,b,v,H);if(LE.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==xxt){A||(m=function(te){return Math.min(L(te),te.p-s.bargroupwidth/2)},P=function(te){return Math.max(x(te),te.p+s.bargroupwidth/2)});var ae=e.index,me=a[ae],Ce=o.base?me.b+me.s:me.s;e[y+"0"]=e[y+"1"]=N.c2p(me[y],!0),e[y+"LabelVal"]=Ce;var Ee=s.extents[s.extents.round(me.p)];e[p+"0"]=W.c2p(u?m(me):Ee[0],!0),e[p+"1"]=W.c2p(u?P(me):Ee[1],!0);var de=me.orig_p!==void 0;return e[p+"LabelVal"]=de?me.orig_p:me.p,e.labelLabel=JV(W,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=JV(N,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=JV(N,me.b,o[y+"hoverformat"]),e.spikeDistance=(j(me)+F(me))/2,e[p+"Spike"]=W.c2p(me.p,!0),gxt(me,o,e),e.hovertemplate=o.hovertemplate,e}}function b1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=_xt(e,t);if(_1e.opacity(r))return r;if(_1e.opacity(n)&&i)return n}w1e.exports={hoverPoints:bxt,hoverOnBars:x1e,getTraceColor:b1e}});var T1e=we((ccr,A1e)=>{"use strict";A1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var FA=we((hcr,S1e)=>{"use strict";S1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",u=o.orientation==="h",l=[],f;if(r===!1)for(f=0;f{"use strict";M1e.exports={attributes:Oy(),layoutAttributes:ZI(),supplyDefaults:i0().supplyDefaults,crossTraceDefaults:i0().crossTraceDefaults,supplyLayoutDefaults:jV(),calc:Kge(),crossTraceCalc:n2().crossTraceCalc,colorbar:tp(),arraysToCalcdata:EE(),plot:m2().plot,style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:DA().hoverPoints,eventData:T1e(),selectPoints:FA(),moduleType:"trace",name:"bar",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var C1e=we((pcr,k1e)=>{"use strict";k1e.exports=E1e()});var PE=we((vcr,I1e)=>{"use strict";var Axt=Pm(),G0=Zc(),L1e=Oy(),Txt=Bh(),P1e=Xc().axisHoverFormat,{hovertemplateAttrs:Sxt,templatefallbackAttrs:Mxt}=Of(),Hg=Su().extendFlat,OA=G0.marker,z1e=OA.line;I1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:G0.xperiod,yperiod:G0.yperiod,xperiod0:G0.xperiod0,yperiod0:G0.yperiod0,xperiodalignment:G0.xperiodalignment,yperiodalignment:G0.yperiodalignment,xhoverformat:P1e("x"),yhoverformat:P1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Hg({},OA.symbol,{arrayOk:!1,editType:"plot"}),opacity:Hg({},OA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Hg({},OA.angle,{arrayOk:!1,editType:"calc"}),size:Hg({},OA.size,{arrayOk:!1,editType:"calc"}),color:Hg({},OA.color,{arrayOk:!1,editType:"style"}),line:{color:Hg({},z1e.color,{arrayOk:!1,dflt:Txt.defaultLine,editType:"style"}),width:Hg({},z1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Axt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:L1e.offsetgroup,alignmentgroup:L1e.alignmentgroup,selected:{marker:G0.selected.marker,editType:"style"},unselected:{marker:G0.unselected.marker,editType:"style"},text:Hg({},G0.text,{}),hovertext:Hg({},G0.hovertext,{}),hovertemplate:Sxt({}),hovertemplatefallback:Mxt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:G0.zorder}});var zE=we((mcr,R1e)=>{"use strict";R1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var RE=we((ycr,B1e)=>{"use strict";var H0=ei(),Ext=$l(),kxt=jl(),Cxt=Rm(),Lxt=i2(),D1e=j3(),IE=PE();function Pxt(e,t,r,n){function i(p,y){return H0.coerce(e,t,IE,p,y)}if(F1e(e,t,i,n),t.visible!==!1){Cxt(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",kxt.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),u=i("sd");s&&s.length&&(o=!0,u&&u.length&&(o="sd"))}i("whiskerwidth");var l=i("sizemode"),f;l==="quartiles"&&(f=i("boxmean",o)),i("showwhiskers",l==="quartiles"),(l==="sd"||f==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var c=!1;if(a){var h=i("notchspan");h&&h.length&&(c=!0)}else H0.validate(e.notchwidth,IE.notchwidth)&&(c=!0);var d=i("notched",c);d&&i("notchwidth"),O1e(e,t,i,{prefix:"box"}),i("zorder")}}function F1e(e,t,r,n){function i(P){var M=0;return P&&P.length&&(M+=1,H0.isArrayOrTypedArray(P[0])&&P[0].length&&(M+=1)),M}function a(P){return H0.validate(e[P],IE[P])}var o=r("y"),s=r("x"),u;if(t.type==="box"){var l=r("q1"),f=r("median"),c=r("q3");t._hasPreCompStats=l&&l.length&&f&&f.length&&c&&c.length,u=Math.min(H0.minRowLength(l),H0.minRowLength(f),H0.minRowLength(c))}else t._hasPreCompStats=!1;var h=i(o),d=i(s),p=h&&H0.minRowLength(o),y=d&&H0.minRowLength(s),b=n.calendar,v={autotypenumbers:n.autotypenumbers},C,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var A=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!A?C="h":C="v",E=u;break;case"10":C="v",E=Math.min(u,y);break;case"20":C="h",E=Math.min(u,s.length);break;case"01":C="h",E=Math.min(u,p);break;case"02":C="v",E=Math.min(u,o.length);break;case"12":C="v",E=Math.min(u,y,o.length);break;case"21":C="h",E=Math.min(u,s.length,p);break;case"11":E=0;break;case"22":var x=!1,k;for(k=0;k0?(C="v",d>0?E=Math.min(y,p):E=Math.min(p)):d>0?(C="h",E=Math.min(y)):E=0;if(!E){t.visible=!1;return}t._length=E;var S=r("orientation",C);t._hasPreCompStats?S==="v"&&d===0?(r("x0",0),r("dx",1)):S==="h"&&h===0&&(r("y0",0),r("dy",1)):S==="v"&&d===0?r("x0"):S==="h"&&h===0&&r("y0");var m=Ext.getComponentMethod("calendars","handleTraceDefaults");m(e,t,["x","y"],n)}function O1e(e,t,r,n){var i=n.prefix,a=H0.coerce2(e,t,IE,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var u=r(i+"points",s);u?(r("jitter",u==="all"?.3:0),r("pointpos",u==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),u==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var l=r("hoveron");(l==="all"||l.indexOf("points")!==-1)&&(r("hovertemplate"),r("hovertemplatefallback")),H0.coerceSelectionMarkerOpacity(t,r)}function zxt(e,t){var r,n;function i(u){return H0.coerce(n._input,n,IE,u)}for(var a=0;a{"use strict";var Ixt=$l(),Rxt=ei(),Dxt=zE();function q1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var QV=ku(),rR=wu(),Oxt=Fm(),Eh=ei(),n0=rf().BADNUM,Wg=Eh._;Y1e.exports=function(t,r){var n=t._fullLayout,i=rR.getFromId(t,r.xaxis||"x"),a=rR.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",u,l,f,c,h,d,p;r.orientation==="h"?(f=i,c="x",h=a,d="y",p=!!r.yperiodalignment):(f=a,c="y",h=i,d="x",p=!!r.xperiodalignment);var y=Bxt(r,d,h,n[s]),b=y[0],v=y[1],C=Eh.distinctVals(b,h),E=C.vals,A=C.minDiff/2,L,x,k,S,m,P,M=(r.boxpoints||r.points)==="all"?Eh.identity:function(Ot){return Ot.vL.uf};if(r._hasPreCompStats){var O=r[c],F=function(Ot){return f.d2c((r[Ot]||[])[u])},U=1/0,G=-1/0;for(u=0;u=L.q1&&L.q3>=L.med){var W=F("lowerfence");L.lf=W!==n0&&W<=L.q1?W:H1e(L,k,S);var N=F("upperfence");L.uf=N!==n0&&N>=L.q3?N:W1e(L,k,S);var H=F("mean");L.mean=H!==n0?H:S?Eh.mean(k,S):(L.q1+L.q3)/2;var re=F("sd");L.sd=H!==n0&&re>=0?re:S?Eh.stdev(k,S,L.mean):L.q3-L.q1,L.lo=j1e(L),L.uo=X1e(L);var ae=F("notchspan");ae=ae!==n0&&ae>0?ae:Z1e(L,S),L.ln=L.med-ae,L.un=L.med+ae;var me=L.lf,Ce=L.uf;r.boxpoints&&k.length&&(me=Math.min(me,k[0]),Ce=Math.max(Ce,k[S-1])),r.notched&&(me=Math.min(me,L.ln),Ce=Math.max(Ce,L.un)),L.min=me,L.max=Ce}else{Eh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var Ee;L.med!==n0?Ee=L.med:L.q1!==n0?L.q3!==n0?Ee=(L.q1+L.q3)/2:Ee=L.q1:L.q3!==n0?Ee=L.q3:Ee=0,L.med=Ee,L.q1=L.q3=Ee,L.lf=L.uf=Ee,L.mean=L.sd=Ee,L.ln=L.un=Ee,L.min=L.max=Ee}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=x.filter(M),o.push(L)}}r._extremes[f._id]=rR.findExtremes(f,[U,G],{padded:!0})}else{var de=f.makeCalcdata(r,c),te=qxt(E,A),Se=E.length,Te=Nxt(Se);for(u=0;u=0&&be0){if(L={},L.pos=L[d]=E[u],x=L.pts=Te[u].sort(V1e),k=L[c]=x.map(G1e),S=k.length,L.min=k[0],L.max=k[S-1],L.mean=Eh.mean(k,S),L.sd=Eh.stdev(k,S,L.mean)*r.sdmultiple,L.med=Eh.interp(k,.5),S%2&&(Be||ce)){var je,rt;Be?(je=k.slice(0,S/2),rt=k.slice(S/2+1)):ce&&(je=k.slice(0,S/2+1),rt=k.slice(S/2)),L.q1=Eh.interp(je,.5),L.q3=Eh.interp(rt,.5)}else L.q1=Eh.interp(k,.25),L.q3=Eh.interp(k,.75);L.lf=H1e(L,k,S),L.uf=W1e(L,k,S),L.lo=j1e(L),L.uo=X1e(L);var bt=Z1e(L,S);L.ln=L.med-bt,L.un=L.med+bt,He=Math.min(He,L.ln),Ie=Math.max(Ie,L.un),L.pts2=x.filter(M),o.push(L)}r.notched&&Eh.isTypedArray(de)&&(de=Array.from(de)),r._extremes[f._id]=rR.findExtremes(f,r.notched?de.concat([He,Ie]):de,{padded:!0})}return Uxt(o,r),o.length>0?(o[0].t={num:n[s],dPos:A,posLetter:d,valLetter:c,labels:{med:Wg(t,"median:"),min:Wg(t,"min:"),q1:Wg(t,"q1:"),q3:Wg(t,"q3:"),max:Wg(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?Wg(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):Wg(t,"mean:"),lf:Wg(t,"lower fence:"),uf:Wg(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function Bxt(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),u=Oxt(e,r,t,s).vals;return[u,s]}var l;a?l=e[t+"0"]:"name"in e&&(r.type==="category"||QV(e.name)&&["linear","log"].indexOf(r.type)!==-1||Eh.isDateTime(e.name)&&r.type==="date")?l=e.name:l=n;for(var f=r.type==="multicategory"?r.r2c_just_indices(l):r.d2c(l,0,e[t+"calendar"]),c=e._length,h=new Array(c),d=0;d{"use strict";var K1e=wu(),Vxt=ei(),Gxt=$b().getAxisGroup,J1e=["v","h"];function Hxt(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,C=1-a[e+"gap"],E=1-a[e+"groupgap"];for(u=0;u0;if(k==="positive"?(N=S*(x?1:.5),ae=re,H=ae=P):k==="negative"?(N=ae=P,H=S*(x?1:.5),me=re):(N=H=S,ae=me=re),Te){var be=A.pointpos,He=A.jitter,Ie=A.marker.size/2,ge=0;be+He>=0&&(ge=re*(be+He),ge>N?(Se=!0,de=Ie,Ce=ge):ge>ae&&(de=Ie,Ce=N)),ge<=N&&(Ce=N);var Be=0;be-He<=0&&(Be=-re*(be-He),Be>H?(Se=!0,te=Ie,Ee=Be):Be>me&&(te=Ie,Ee=H)),Be<=H&&(Ee=H)}else Ce=N,Ee=H;var ce=new Array(f.length);for(l=0;l{"use strict";var BA=Kl(),y2=ei(),Wxt=Mu(),e_e=5,jxt=.01;function Xxt(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;y2.makeTraceGroups(n,r,"trace boxes").each(function(s){var u=BA.select(this),l=s[0],f=l.t,c=l.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){u.remove();return}var h,d;c.orientation==="h"?(h=o,d=a):(h=a,d=o),t_e(u,{pos:h,val:d},c,f,i),r_e(u,{x:a,y:o},c,f),i_e(u,{pos:h,val:d},c,f)})}function t_e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,u=!!s.rangebreaks,l=n.bPos,f=n.wdPos||0,c=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,p=r.notched||!1,y=p?1-2*r.notchwidth:1,b,v;Array.isArray(n.bdPos)?(b=n.bdPos[0],v=n.bdPos[1]):(b=n.bdPos,v=n.bdPos);var C=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?y2.identity:[]);C.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),C.exit().remove(),C.each(function(E){if(E.empty)return BA.select(this).attr("d","M0,0Z");var A=s.c2l(E.pos+l,!0),L=s.l2p(A-b)+c,x=s.l2p(A+v)+c,k=u?(L+x)/2:s.l2p(A)+c,S=r.whiskerwidth,m=u?L*S+(1-S)*k:s.l2p(A-f)+c,P=u?x*S+(1-S)*k:s.l2p(A+f)+c,M=s.l2p(A-b*y)+c,O=s.l2p(A+v*y)+c,F=r.sizemode==="sd",U=o.c2p(F?E.mean-E.sd:E.q1,!0),G=F?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),j=y2.constrain(F?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(U,G)+1,Math.max(U,G)-1),W=E.lf===void 0||r.boxpoints===!1||F,N=o.c2p(W?E.min:E.lf,!0),H=o.c2p(W?E.max:E.uf,!0),re=o.c2p(E.ln,!0),ae=o.c2p(E.un,!0);a?BA.select(this).attr("d","M"+j+","+M+"V"+O+"M"+U+","+L+"V"+x+(p?"H"+re+"L"+j+","+O+"L"+ae+","+x:"")+"H"+G+"V"+L+(p?"H"+ae+"L"+j+","+M+"L"+re+","+L:"")+"Z"+(d?"M"+U+","+k+"H"+N+"M"+G+","+k+"H"+H+(h===0?"":"M"+N+","+m+"V"+P+"M"+H+","+m+"V"+P):"")):BA.select(this).attr("d","M"+M+","+j+"H"+O+"M"+L+","+U+"H"+x+(p?"V"+re+"L"+O+","+j+"L"+x+","+ae:"")+"V"+G+"H"+L+(p?"V"+ae+"L"+M+","+j+"L"+L+","+re:"")+"Z"+(d?"M"+k+","+U+"V"+N+"M"+k+","+G+"V"+H+(h===0?"":"M"+m+","+N+"H"+P+"M"+m+","+H+"H"+P):""))})}function r_e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,u=r.boxpoints||r.points;y2.seedPseudoRandom();var l=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},f=e.selectAll("g.points").data(u?l:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,y=Math.max((h.max-h.min)/10,h.q3-h.q1),b=y*1e-9,v=y*jxt,C=[],E=0,A;if(r.jitter){if(y===0)for(E=1,C=new Array(p.length),d=0;dh.lo&&(P.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(Wxt.translatePoints,i,a)}function i_e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,u=n.bPosPxOffset||0,l=r.boxmean||(r.meanline||{}).visible,f,c;Array.isArray(n.bdPos)?(f=n.bdPos[0],c=n.bdPos[1]):(f=n.bdPos,c=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?y2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=a.c2l(d.pos+s,!0),y=a.l2p(p-f)+u,b=a.l2p(p+c)+u,v=o?(y+b)/2:a.l2p(p)+u,C=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),A=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?BA.select(this).attr("d","M"+C+","+y+"V"+b+(l==="sd"?"m0,0L"+E+","+v+"L"+C+","+y+"L"+A+","+v+"Z":"")):BA.select(this).attr("d","M"+y+","+C+"H"+b+(l==="sd"?"m0,0L"+v+","+E+"L"+y+","+C+"L"+v+","+A+"Z":""))})}n_e.exports={plot:Xxt,plotBoxAndWhiskers:t_e,plotPoints:r_e,plotBoxMean:i_e}});var aR=we((wcr,a_e)=>{"use strict";var tG=Kl(),rG=jl(),iG=Mu();function Zxt(e,t,r){var n=r||tG.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=tG.select(this),o=i[0].trace,s=o.line.width;function u(c,h,d,p){c.style("stroke-width",h+"px").call(rG.stroke,d).call(rG.fill,p)}var l=a.selectAll("path.box");if(o.type==="candlestick")l.each(function(c){if(!c.empty){var h=tG.select(this),d=o[c.dir];u(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{u(l,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(rG.stroke,o.line.color);var f=a.selectAll("path.point");iG.pointStyle(f,o,e)}})}function Yxt(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?iG.selectedPointStyle(i,n):iG.pointStyle(i,n,e)}a_e.exports={style:Zxt,styleOnSelect:Yxt}});var aG=we((Acr,u_e)=>{"use strict";var Kxt=wu(),nG=ei(),R_=Vc(),o_e=jl(),Jxt=nG.fillText;function $xt(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],u;return o.indexOf("boxes")!==-1&&(s=s.concat(s_e(e,t,r,n))),o.indexOf("points")!==-1&&(u=l_e(e,t,r)),n==="closest"?u?[u]:s:(u&&s.push(u),s)}function s_e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,u=i[0].t,l=s.type==="violin",f,c,h,d,p,y,b,v,C,E,A,L=u.bdPos,x,k,S=u.wHover,m=function(Ie){return h.c2l(Ie.pos)+u.bPos-h.c2l(y)};l&&s.side!=="both"?(s.side==="positive"&&(C=function(Ie){var ge=m(Ie);return R_.inbox(ge,ge+S,E)},x=L,k=0),s.side==="negative"&&(C=function(Ie){var ge=m(Ie);return R_.inbox(ge-S,ge,E)},x=0,k=L)):(C=function(Ie){var ge=m(Ie);return R_.inbox(ge-S,ge+S,E)},x=k=L);var P;l?P=function(Ie){return R_.inbox(Ie.span[0]-p,Ie.span[1]-p,E)}:P=function(Ie){return R_.inbox(Ie.min-p,Ie.max-p,E)},s.orientation==="h"?(p=t,y=r,b=P,v=C,f="y",h=o,c="x",d=a):(p=r,y=t,b=C,v=P,f="x",h=a,c="y",d=o);var M=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-M,A=e.maxSpikeDistance-M;function O(Ie){return(b(Ie)+v(Ie))/2}var F=R_.getDistanceFunction(n,b,v,O);if(R_.getClosest(i,F,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,j=(s.marker||{}).color;o_e.opacity(G)&&s.line.width?e.color=G:o_e.opacity(j)&&s.boxpoints?e.color=j:e.color=s.fillcolor,e[f+"0"]=h.c2p(U.pos+u.bPos-k,!0),e[f+"1"]=h.c2p(U.pos+u.bPos+x,!0),e[f+"LabelVal"]=U.orig_p!==void 0?U.orig_p:U.pos;var W=f+"Spike";e.spikeDistance=O(U)*A/E,e[W]=h.c2p(U.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,H=s.boxpoints||s.points,re=H&&N?["max","uf","q3","med","mean","q1","lf","min"]:H&&!N?["max","uf","q3","med","q1","lf","min"]:!H&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]{"use strict";f_e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var oG=we((Scr,h_e)=>{"use strict";h_e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u;if(r===!1)for(s=0;s{"use strict";d_e.exports={attributes:PE(),layoutAttributes:zE(),supplyDefaults:RE().supplyDefaults,crossTraceDefaults:RE().crossTraceDefaults,supplyLayoutDefaults:tR().supplyLayoutDefaults,calc:eG(),crossTraceCalc:iR().crossTraceCalc,plot:nR().plot,style:aR().style,styleOnSelect:aR().styleOnSelect,hoverPoints:aG().hoverPoints,eventData:c_e(),selectPoints:oG(),moduleType:"trace",name:"box",basePlotModule:Mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var m_e=we((Ecr,v_e)=>{"use strict";v_e.exports=p_e()});var qA=we((kcr,g_e)=>{"use strict";var Qxt=nc(),{extendFlat:Pv}=Su(),ebt=Vf(),{axisHoverFormat:sG}=Xc(),tbt=gc(),{hovertemplateAttrs:rbt,templatefallbackAttrs:y_e,texttemplateAttrs:ibt}=Of(),a0=Zc();g_e.exports=Pv({z:{valType:"data_array",editType:"calc"},x:Pv({},a0.x,{impliedEdits:{xtype:"array"}}),x0:Pv({},a0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Pv({},a0.dx,{impliedEdits:{xtype:"scaled"}}),y:Pv({},a0.y,{impliedEdits:{ytype:"array"}}),y0:Pv({},a0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Pv({},a0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Pv({},a0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Pv({},a0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Pv({},a0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Pv({},a0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Pv({},a0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Pv({},a0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:sG("x"),yhoverformat:sG("y"),zhoverformat:sG("z",1),hovertemplate:rbt(),hovertemplatefallback:y_e(),texttemplate:ibt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:y_e({editType:"plot"}),textfont:tbt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pv({},ebt.showlegend,{dflt:!1}),zorder:a0.zorder},Qxt("",{cLetter:"z",autoColorDflt:!1}))});var sR=we((Ccr,x_e)=>{"use strict";var nbt=ku(),oR=ei(),abt=$l();x_e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var u,l;if(s===void 0||!s.length)return 0;if(oR.isArray1D(s)){u=n(a),l=n(o);var f=oR.minRowLength(u),c=oR.minRowLength(l);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(u=__e(a,n),l=__e(o,n),!obt(s))return 0;n("transpose"),r._length=null}var h=abt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function __e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function obt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var b_e=ei();w_e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var n=b_e.extendFlat({},r.font,{color:"auto",size:"auto"});b_e.coerceFont(t,"textfont",n)}});var lG=we((Pcr,A_e)=>{"use strict";A_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var M_e=we((zcr,S_e)=>{"use strict";var T_e=ei(),sbt=sR(),lbt=DE(),ubt=Rm(),fbt=lG(),cbt=nd(),hbt=qA();S_e.exports=function(t,r,n,i){function a(s,u){return T_e.coerce(t,r,hbt,s,u)}var o=sbt(t,r,a,i);if(!o){r.visible=!1;return}ubt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),lbt(a,i),fbt(t,r,a,i),a("hoverongaps"),a("connectgaps",T_e.isArray1D(r.z)&&r.zsmooth!==!1),cbt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var uG=we((Icr,E_e)=>{"use strict";var NA=ku();E_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return NA(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return NA(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(NA(i))if(i=Number(i),NA(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(NA(i))if(i=Number(i),NA(r[e])){if(r[e]{"use strict";k_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";C_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var UA=rf(),g2=UA.ONEAVGYEAR,L_e=UA.ONEAVGMONTH,uR=UA.ONEDAY,P_e=UA.ONEHOUR,z_e=UA.ONEMIN,I_e=UA.ONESEC,R_e=wu().tickIncrement;O_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,u=t-s,l=n[0],f=n[1],c=Math.min(lR(l+s,l+u,i,a),lR(f+s,f+u,i,a)),h=Math.min(lR(l+o,l+s,i,a),lR(f+o,f+s,i,a)),d,p;if(c>h&&huR){var y=d===g2?1:6,b=d===g2?"M12":"M1";return function(v,C){var E=i.c2d(v,g2,a),A=E.indexOf("-",y);A>0&&(E=E.slice(0,A));var L=i.d2c(E,0,a);if(LI_e?e>uR?e>g2*1.1?g2:e>L_e*1.1?L_e:uR:e>P_e?P_e:e>z_e?z_e:I_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function dbt(e,t,r,n,i,a){if(n&&e>uR){var o=F_e(t,i,a),s=F_e(r,i,a),u=e===g2?0:1;return o[u]!==s[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function F_e(e,t,r){var n=t.c2d(e,g2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var vG=we((Ocr,V_e)=>{"use strict";var dG=ku(),Hp=ei(),B_e=$l(),W0=wu(),{hasColorscale:q_e}=yp(),N_e=gp(),pbt=EE(),U_e=uG(),vbt=fG(),mbt=cG(),ybt=hG();function gbt(e,t){var r=[],n=[],i=t.orientation==="h",a=W0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],u=t[o+"calendar"],l=t.cumulative,f,c=pG(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",y=[],b=p?y:h,v=[],C=[],E=[],A=0,L=t.histnorm,x=t.histfunc,k=L.indexOf("density")!==-1,S,m,P;l.enabled&&k&&(L=L.replace(/ ?density$/,""),k=!1);var M=x==="max"||x==="min",O=M?null:0,F=U_e.count,U=vbt[L],G=!1,j=function(ge){return a.r2c(ge,0,u)},W;for(Hp.isArrayOrTypedArray(t[s])&&x!=="count"&&(W=t[s],G=x==="avg",F=U_e[x]),f=j(h.start),m=j(h.end)+(f-W0.tickIncrement(f,h.size,!1,u))/1e6;f=0&&P=be;f--)if(n[f]){He=f;break}for(f=be;f<=He;f++)if(dG(r[f])&&dG(n[f])){var Ie={p:r[f],s:n[f],b:0};l.enabled||(Ie.pts=E[f],ae?Ie.ph0=Ie.ph1=E[f].length?d[E[f][0]]:r[f]:(t._computePh=!0,Ie.ph0=te(y[f]),Ie.ph1=te(y[f+1],!0))),Te.push(Ie)}return Te.length===1&&(Te[0].width1=W0.tickIncrement(Te[0].p,h.size,!1,u)-Te[0].p),q_e(t,"marker")&&N_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),q_e(t,"marker.line")&&N_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),pbt(Te,t),Hp.isArrayOrTypedArray(t.selectedpoints)&&Hp.tagSelected(Te,t,Ee),Te}function pG(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],u=o._histogramBinOpts[s],l=o.barmode==="overlay",f,c,h,d,p,y,b,v=function(de){return r.r2c(de,0,d)},C=function(de){return r.c2r(de,0,d)},E=r.type==="date"?function(de){return de||de===0?Hp.cleanDate(de,null,d):null}:function(de){return dG(de)?Number(de):null};function A(de,te,Se){te[de+"Found"]?(te[de]=E(te[de]),te[de]===null&&(te[de]=Se[de])):(y[de]=te[de]=Se[de],Hp.nestedProperty(c[0],a+"."+de).set(Se[de]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{c=u.traces;var L=[],x=!0,k=!1,S=!1;for(f=0;fr.r2l(W)&&(H=W0.tickIncrement(H,u.size,!0,d)),F.start=r.l2r(H),j||Hp.nestedProperty(t,a+".start").set(F.start)}var re=u.end,ae=r.r2l(O.end),me=ae!==void 0;if((u.endFound||me)&&ae!==r.r2l(re)){var Ce=me?ae:Hp.aggNums(Math.max,null,p);F.end=r.l2r(Ce),me||Hp.nestedProperty(t,a+".start").set(F.end)}var Ee="autobin"+n;return t._input[Ee]===!1&&(t._input[a]=Hp.extendFlat({},t[a]||{}),delete t._input[Ee],delete t[Ee]),[F,p]}function _bt(e,t,r,n,i){var a=e._fullLayout,o=xbt(e,t),s=!1,u=1/0,l=[t],f,c,h;for(f=0;f=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}V_e.exports={calc:gbt,calcAllAutoBins:pG}});var K_e=we((Bcr,Y_e)=>{"use strict";var G_e=ei(),VA=wu(),H_e=uG(),wbt=fG(),Abt=cG(),Tbt=hG(),W_e=vG().calcAllAutoBins;Y_e.exports=function(t,r){var n=VA.getFromId(t,r.xaxis),i=VA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Ve){return n.r2c(Ve,0,a)},u=function(Ve){return i.r2c(Ve,0,o)},l=function(Ve){return n.c2r(Ve,0,a)},f=function(Ve){return i.c2r(Ve,0,o)},c,h,d,p,y=W_e(t,r,n,"x"),b=y[0],v=y[1],C=W_e(t,r,i,"y"),E=C[0],A=C[1],L=r._length;v.length>L&&v.splice(L,v.length-L),A.length>L&&A.splice(L,A.length-L);var x=[],k=[],S=[],m=typeof b.size=="string",P=typeof E.size=="string",M=[],O=[],F=m?M:b,U=P?O:E,G=0,j=[],W=[],N=r.histnorm,H=r.histfunc,re=N.indexOf("density")!==-1,ae=H==="max"||H==="min",me=ae?null:0,Ce=H_e.count,Ee=wbt[N],de=!1,te=[],Se=[],Te="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Te&&H!=="count"&&(de=H==="avg",Ce=H_e[H]);var be=b.size,He=s(b.start),Ie=s(b.end)+(He-VA.tickIncrement(He,be,!1,a))/1e6;for(c=He;c=0&&d=0&&p{"use strict";var qy=ei(),J_e=rf().BADNUM,$_e=Fm();Q_e.exports=function(t,r,n,i,a,o){var s=t._length,u=r.makeCalcdata(t,i),l=n.makeCalcdata(t,a);u=$_e(t,r,i,u).vals,l=$_e(t,n,a,l).vals;var f=t.text,c=f!==void 0&&qy.isArray1D(f),h=t.hovertext,d=h!==void 0&&qy.isArray1D(h),p,y,b=qy.distinctVals(u),v=b.vals,C=qy.distinctVals(l),E=C.vals,A=[],L,x,k=E.length,S=v.length;for(p=0;p{"use strict";var Sbt=ku(),Mbt=ei(),cR=rf().BADNUM;exe.exports=function(t,r,n,i){var a,o,s,u,l,f;function c(v){if(Sbt(v))return+v}if(r&&r.transpose){for(a=0,l=0;l{"use strict";var Ebt=ei(),txe=.01,kbt=[[-1,0],[1,0],[0,-1],[0,1]];function Cbt(e){return .5-.25*Math.min(1,e*.5)}ixe.exports=function(t,r){var n=1,i;for(rxe(t,r),i=0;itxe;i++)n=rxe(t,r,Cbt(n));return n>txe&&Ebt.log("interp2d didn't converge quickly",n),t};function rxe(e,t,r){var n=0,i,a,o,s,u,l,f,c,h,d,p,y,b;for(s=0;sy&&(n=Math.max(n,Math.abs(e[a][o]-p)/(b-y))))}return n}});var pR=we((Vcr,nxe)=>{"use strict";var Lbt=ei().maxRowLength;nxe.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],u=Lbt(t),l,f,c,h,d,p,y,b;for(f=0;f=0;d--)h=i[d],f=h[0],c=h[1],p=((n[[f-1,c]]||s)[2]+(n[[f+1,c]]||s)[2]+(n[[f,c-1]]||s)[2]+(n[[f,c+1]]||s)[2])/20,p&&(y[h]=[f,c,p],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in y)n[h]=y[h],r.push(y[h])}return r.sort(function(v,C){return C[2]-v[2]})}});var mG=we((Gcr,sxe)=>{"use strict";var axe=$l(),oxe=ei().isArrayOrTypedArray;sxe.exports=function(t,r,n,i,a,o){var s=[],u=axe.traceIs(t,"contour"),l=axe.traceIs(t,"histogram"),f,c,h,d=oxe(r)&&r.length>1;if(d&&!l&&o.type!=="category"){var p=r.length;if(p<=a){if(u)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var lxe=$l(),yG=ei(),vR=wu(),uxe=Fm(),Pbt=K_e(),zbt=gp(),Ibt=fR(),Rbt=hR(),Dbt=dR(),Fbt=pR(),mR=mG(),gG=rf().BADNUM;cxe.exports=function(t,r){var n=vR.getFromId(t,r.xaxis||"x"),i=vR.getFromId(t,r.yaxis||"y"),a=lxe.traceIs(r,"contour"),o=lxe.traceIs(r,"histogram"),s=a?"best":r.zsmooth,u,l,f,c,h,d,p,y,b,v,C;if(n._minDtick=0,i._minDtick=0,o)C=Pbt(t,r),c=C.orig_x,u=C.x,l=C.x0,f=C.dx,y=C.orig_y,h=C.y,d=C.y0,p=C.dy,b=C.z;else{var E=r.z;yG.isArray1D(E)?(Ibt(r,n,i,"x","y",["z"]),u=r._x,h=r._y,E=r._z):(c=r.x?n.makeCalcdata(r,"x"):[],y=r.y?i.makeCalcdata(r,"y"):[],u=uxe(r,n,"x",c).vals,h=uxe(r,i,"y",y).vals,r._x=u,r._y=h),l=r.x0,f=r.dx,d=r.y0,p=r.dy,b=Rbt(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Obt(u,h,b),o||(u=fxe(u),h=fxe(h),r._x=u,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Fbt(b),Dbt(b,r._emptypoints));function A(F){s=r._input.zsmooth=r.zsmooth=!1,yG.warn('cannot use zsmooth: "fast": '+F)}function L(F){if(F.length>1){var U=(F[F.length-1]-F[0])/(F.length-1),G=Math.abs(U/100);for(v=0;vG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&A("log axis found"):L(u)?L(h)?r._islinear=!0:s==="fast"&&A("y scale is not linear"):s==="fast"&&A("x scale is not linear");var x=yG.maxRowLength(b),k=r.xtype==="scaled"?"":u,S=mR(r,k,l,f,x,n),m=r.ytype==="scaled"?"":h,P=mR(r,m,d,p,b.length,i);r._extremes[n._id]=vR.findExtremes(n,S),r._extremes[i._id]=vR.findExtremes(i,P);var M={x:S,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(M.orig_x=c),r.yperiodalignment&&y&&(M.orig_y=y),k&&k.length===S.length-1&&(M.xCenter=k),m&&m.length===P.length-1&&(M.yCenter=m),o&&(M.xRanges=C.xRanges,M.yRanges=C.yRanges,M.pts=C.pts),a||zbt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var O={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};M.xfill=mR(O,k,l,f,x,n),M.yfill=mR(O,m,d,p,b.length,i)}return[M]};function fxe(e){for(var t=[],r=e.length,n=0;n{"use strict";gR.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];gR.STYLE=gR.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var xG=we((jcr,dxe)=>{"use strict";var hxe=_R(),Bbt=Mu(),_G=ei(),GA=null;function qbt(){if(GA!==null)return GA;GA=!1;var e=_G.isSafari()||_G.isMacWKWebView()||_G.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(hxe.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")GA=t.some(function(o){return r.apply(null,o)});else{var n=Bbt.tester.append("image").attr("style",hxe.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;GA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return GA}dxe.exports=qbt});var xR=we((Xcr,wxe)=>{"use strict";var pxe=Kl(),Nbt=hd(),Ubt=$l(),Vbt=Mu(),Gbt=wu(),j0=ei(),vxe=Wf(),Hbt=cI(),Wbt=jl(),jbt=_c().extractOpts,Xbt=_c().makeColorScaleFuncFromTrace,Zbt=jv(),Ybt=Nh(),bG=Ybt.LINE_SPACING,Kbt=xG(),Jbt=_R().STYLE,xxe="heatmap-label";function bxe(e){return e.selectAll("g."+xxe)}function mxe(e){bxe(e).remove()}wxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;j0.makeTraceGroups(n,r,"hm").each(function(o){var s=pxe.select(this),u=o[0],l=u.trace,f=l.xgap||0,c=l.ygap||0,h=u.z,d=u.x,p=u.y,y=u.xCenter,b=u.yCenter,v=Ubt.traceIs(l,"contour"),C=v?"best":l.zsmooth,E=h.length,A=j0.maxRowLength(h),L=!1,x=!1,k,S,m,P,M,O,F,U;for(O=0;k===void 0&&O0;)S=i.c2p(d[O]),O--;for(S0;)M=a.c2p(p[O]),O--;M=i._length||S<=0||P>=a._length||M<=0;if(H){var re=s.selectAll("image").data([]);re.exit().remove(),mxe(s);return}var ae,me;G==="fast"?(ae=A,me=E):(ae=W,me=N);var Ce=document.createElement("canvas");Ce.width=ae,Ce.height=me;var Ee=Ce.getContext("2d",{willReadFrequently:!0}),de=Xbt(l,{noNumericCheck:!0,returnArray:!0}),te,Se;G==="fast"?(te=L?function(Ei){return A-1-Ei}:j0.identity,Se=x?function(Ei){return E-1-Ei}:j0.identity):(te=function(Ei){return j0.constrain(Math.round(i.c2p(d[Ei])-k),0,W)},Se=function(Ei){return j0.constrain(Math.round(a.c2p(p[Ei])-P),0,N)});var Te=Se(0),be=[Te,Te],He=L?0:1,Ie=x?0:1,ge=0,Be=0,ce=0,je=0,rt,bt,Ot,it,Ke;function zt(Ei,Vi){if(Ei!==void 0){var ti=de(Ei);return ti[0]=Math.round(ti[0]),ti[1]=Math.round(ti[1]),ti[2]=Math.round(ti[2]),ge+=Vi,Be+=ti[0]*Vi,ce+=ti[1]*Vi,je+=ti[2]*Vi,ti}return[0,0,0,0]}function Mt(Ei,Vi,ti,Qi){var Yr=Ei[ti.bin0];if(Yr===void 0)return zt(void 0,1);var oi=Ei[ti.bin1],Fi=Vi[ti.bin0],rn=Vi[ti.bin1],tn=oi-Yr||0,Di=Fi-Yr||0,Ii;return oi===void 0?rn===void 0?Ii=0:Fi===void 0?Ii=2*(rn-Yr):Ii=(2*rn-Fi-Yr)*2/3:rn===void 0?Fi===void 0?Ii=0:Ii=(2*Yr-oi-Fi)*2/3:Fi===void 0?Ii=(2*rn-oi-Yr)*2/3:Ii=rn+Yr-oi-Fi,zt(Yr+ti.frac*tn+Qi.frac*(Di+ti.frac*Ii))}if(G!=="default"){var kt=0,$e;try{$e=new Uint8Array(ae*me*4)}catch(Ei){$e=new Array(ae*me*4)}if(G==="smooth"){var Re=y||d,Me=b||p,oe=new Array(Re.length),Ne=new Array(Me.length),vt=new Array(W),lt=y?gxe:yxe,We=b?gxe:yxe,Ve,et,tt;for(O=0;OEr||Er>a._length))for(F=xt;Fjr||jr>i._length)){var kr=Hbt({x:ii,y:cr},l,e._fullLayout);kr.x=ii,kr.y=cr;var Vr=u.z[O][F];Vr===void 0?(kr.z="",kr.zLabel=""):(kr.z=Vr,kr.zLabel=Gbt.tickText(ze,Vr,"hover").text);var Ai=u.text&&u.text[O]&&u.text[O][F];(Ai===void 0||Ai===!1)&&(Ai=""),kr.text=Ai;var Bi=j0.texttemplateString({data:[kr,l._meta],fallback:l.texttemplatefallback,labels:kr,locale:e._fullLayout._d3locale,template:xe});if(Bi){var Ri=Bi.split("
"),ln=Ri.length,hn=0;for(U=0;U{"use strict";Axe.exports={min:"zmin",max:"zmax"}});var bR=we((Ycr,Txe)=>{"use strict";var $bt=Kl();Txe.exports=function(t){$bt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var AR=we((Kcr,Mxe)=>{"use strict";var Sxe=Vc(),FE=ei(),wR=FE.isArrayOrTypedArray,Qbt=wu(),e2t=_c().extractOpts;Mxe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],u=s.trace,l=t.xa,f=t.ya,c=s.x,h=s.y,d=s.z,p=s.xCenter,y=s.yCenter,b=s.zmask,v=u.zhoverformat,C=c,E=h,A,L,x,k;if(t.index!==!1){try{x=Math.round(t.index[1]),k=Math.round(t.index[0])}catch(re){FE.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||k<0||k>d.length)return}else{if(Sxe.inbox(r-c[0],r-c[c.length-1],0)>0||Sxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var S;for(C=[2*c[0]-c[1]],S=1;S{"use strict";Exe.exports={attributes:qA(),supplyDefaults:M_e(),calc:yR(),plot:xR(),colorbar:D_(),style:bR(),hoverPoints:AR(),moduleType:"trace",name:"heatmap",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var Lxe=we(($cr,Cxe)=>{"use strict";Cxe.exports=kxe()});var wG=we((Qcr,Pxe)=>{"use strict";Pxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var Ixe=we((ehr,zxe)=>{"use strict";zxe.exports={eventDataKeys:["binNumber"]}});var TR=we((thr,Oxe)=>{"use strict";var zv=Oy(),Rxe=Xc().axisHoverFormat,{hovertemplateAttrs:t2t,texttemplateAttrs:r2t,templatefallbackAttrs:Dxe}=Of(),AG=gc(),Fxe=wG(),i2t=Ixe(),TG=Su().extendFlat;Oxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:Rxe("x"),yhoverformat:Rxe("y"),text:TG({},zv.text,{}),hovertext:TG({},zv.hovertext,{}),orientation:zv.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:Fxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:Fxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:t2t({},{keys:i2t.eventDataKeys}),hovertemplatefallback:Dxe(),texttemplate:r2t({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:Dxe({editType:"plot"}),textposition:TG({},zv.textposition,{arrayOk:!1}),textfont:AG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:AG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:AG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:zv.insidetextanchor,textangle:zv.textangle,cliponaxis:zv.cliponaxis,constraintext:zv.constraintext,marker:zv.marker,offsetgroup:zv.offsetgroup,alignmentgroup:zv.alignmentgroup,selected:zv.selected,unselected:zv.unselected,zorder:zv.zorder}});var Uxe=we((rhr,Nxe)=>{"use strict";var Bxe=$l(),OE=ei(),qxe=jl(),n2t=i0().handleText,a2t=YI(),o2t=TR();Nxe.exports=function(t,r,n,i){function a(C,E){return OE.coerce(t,r,o2t,C,E)}var o=a("x"),s=a("y"),u=a("cumulative.enabled");u&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var l=a("textposition");n2t(t,r,i,a,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat");var f=a("orientation",s&&!o?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=o&&s?Math.min(OE.minRowLength(o)&&OE.minRowLength(s)):OE.minRowLength(r[c]||[]);if(!d){r.visible=!1;return}r._length=d;var p=Bxe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],i);var y=r[h];y&&a("histfunc"),a("histnorm"),a("autobin"+c),a2t(t,r,a,n,i),OE.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,v=Bxe.getComponentMethod("errorbars","supplyDefaults");v(t,r,b||qxe.defaultLine,{axis:"y"}),v(t,r,b||qxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var MR=we((ihr,Hxe)=>{"use strict";var BE=ei(),s2t=jc(),SR=$l().traceIs,l2t=i2(),u2t=i0().validateCornerradius,Vxe=BE.nestedProperty,SG=$b().getAxisGroup,Gxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],f2t=["x","y"];Hxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,u,l,f,c,h,d;function p(G,j){return BE.coerce(s._input,s,s._module.attributes,G,j)}function y(G){return G.orientation==="v"?"x":"y"}function b(G,j){var W=s2t.getFromTrace({_fullLayout:r},G,j);return W.type}function v(G,j,W){var N=G.uid+"__"+W;j||(j=N);var H=b(G,W),re=G[W+"calendar"]||"",ae=n[j],me=!0;ae&&(H===ae.axType&&re===ae.calendar?(me=!1,ae.traces.push(G),ae.dirs.push(W)):(j=N,H!==ae.axType&&BE.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+H,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),re!==ae.calendar&&BE.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),me&&(n[j]={traces:[G],dirs:[W],axType:H,calendar:G[W+"calendar"]||""}),G["_"+W+"bingroup"]=j}for(c=0;c{"use strict";var c2t=DA().hoverPoints,h2t=wu().hoverLabelText;Wxe.exports=function(t,r,n,i,a){var o=c2t(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],u=t.cd[0].trace;if(!u.cumulative.enabled){var l=u.orientation==="h"?"y":"x";t[l+"Label"]=h2t(t[l+"a"],[s.ph0,s.ph1],u[l+"hoverformat"])}return o}}});var MG=we((ahr,Xxe)=>{"use strict";Xxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var u=0;u{"use strict";Zxe.exports={attributes:TR(),layoutAttributes:ZI(),supplyDefaults:Uxe(),crossTraceDefaults:MR(),supplyLayoutDefaults:jV(),calc:vG().calc,crossTraceCalc:n2().crossTraceCalc,plot:m2().plot,layerName:"barlayer",style:V0().style,styleOnSelect:V0().styleOnSelect,colorbar:tp(),hoverPoints:jxe(),selectPoints:FA(),eventData:MG(),moduleType:"trace",name:"histogram",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Jxe=we((shr,Kxe)=>{"use strict";Kxe.exports=Yxe()});var kR=we((lhr,ebe)=>{"use strict";var Wm=TR(),$xe=wG(),ER=qA(),d2t=Vf(),EG=Xc().axisHoverFormat,{hovertemplateAttrs:p2t,texttemplateAttrs:v2t,templatefallbackAttrs:Qxe}=Of(),m2t=nc(),qE=Su().extendFlat;ebe.exports=qE({x:Wm.x,y:Wm.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Wm.histnorm,histfunc:Wm.histfunc,nbinsx:Wm.nbinsx,xbins:$xe("x"),nbinsy:Wm.nbinsy,ybins:$xe("y"),autobinx:Wm.autobinx,autobiny:Wm.autobiny,bingroup:qE({},Wm.bingroup,{}),xbingroup:qE({},Wm.bingroup,{}),ybingroup:qE({},Wm.bingroup,{}),xgap:ER.xgap,ygap:ER.ygap,zsmooth:ER.zsmooth,xhoverformat:EG("x"),yhoverformat:EG("y"),zhoverformat:EG("z",1),hovertemplate:p2t({},{keys:["z"]}),hovertemplatefallback:Qxe(),texttemplate:v2t({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:Qxe({editType:"plot"}),textfont:ER.textfont,showlegend:qE({},d2t.showlegend,{dflt:!1})},m2t("",{cLetter:"z",autoColorDflt:!1}))});var kG=we((uhr,rbe)=>{"use strict";var y2t=$l(),tbe=ei();rbe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=tbe.minRowLength(a),u=tbe.minRowLength(o);if(!s||!u){r.visible=!1;return}r._length=Math.min(s,u);var l=y2t.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y"],i);var f=n("z")||n("marker.color");f&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var nbe=we((fhr,ibe)=>{"use strict";var g2t=ei(),_2t=kG(),x2t=lG(),b2t=nd(),w2t=DE(),A2t=kR();ibe.exports=function(t,r,n,i){function a(o,s){return g2t.coerce(t,r,A2t,o,s)}_2t(t,r,a,i),r.visible!==!1&&(x2t(t,r,a,i),b2t(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),w2t(a,i),a("xhoverformat"),a("yhoverformat"))}});var sbe=we((chr,obe)=>{"use strict";var T2t=AR(),abe=wu().hoverLabelText;obe.exports=function(t,r,n,i,a){var o=T2t(t,r,n,i,a);if(o){t=o[0];var s=t.index,u=s[0],l=s[1],f=t.cd[0],c=f.trace,h=f.xRanges[l],d=f.yRanges[u];return t.xLabel=abe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=abe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var ube=we((hhr,lbe)=>{"use strict";lbe.exports={attributes:kR(),supplyDefaults:nbe(),crossTraceDefaults:MR(),calc:yR(),plot:xR(),layerName:"heatmaplayer",colorbar:D_(),style:bR(),hoverPoints:sbe(),eventData:MG(),moduleType:"trace",name:"histogram2d",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var cbe=we((dhr,fbe)=>{"use strict";fbe.exports=ube()});var CR=we((phr,hbe)=>{"use strict";hbe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var NE=we((vhr,mbe)=>{"use strict";var kh=qA(),LR=Zc(),pbe=Xc(),CG=pbe.axisHoverFormat,S2t=pbe.descriptionOnlyNumbers,M2t=nc(),E2t=Id().dash,k2t=gc(),HA=Su().extendFlat,vbe=CR(),C2t=vbe.COMPARISON_OPS2,L2t=vbe.INTERVAL_OPS,dbe=LR.line;mbe.exports=HA({z:kh.z,x:kh.x,x0:kh.x0,dx:kh.dx,y:kh.y,y0:kh.y0,dy:kh.dy,xperiod:kh.xperiod,yperiod:kh.yperiod,xperiod0:LR.xperiod0,yperiod0:LR.yperiod0,xperiodalignment:kh.xperiodalignment,yperiodalignment:kh.yperiodalignment,text:kh.text,hovertext:kh.hovertext,transpose:kh.transpose,xtype:kh.xtype,ytype:kh.ytype,xhoverformat:CG("x"),yhoverformat:CG("y"),zhoverformat:CG("z",1),hovertemplate:kh.hovertemplate,hovertemplatefallback:kh.hovertemplatefallback,texttemplate:HA({},kh.texttemplate,{}),texttemplatefallback:kh.texttemplatefallback,textfont:HA({},kh.textfont,{}),hoverongaps:kh.hoverongaps,connectgaps:HA({},kh.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:k2t({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:S2t("contour label")},operation:{valType:"enumerated",values:[].concat(C2t).concat(L2t),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:HA({},dbe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:E2t,smoothing:HA({},dbe.smoothing,{}),editType:"plot"},zorder:LR.zorder},M2t("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var PG=we((mhr,gbe)=>{"use strict";var Tp=kR(),Ny=NE(),P2t=nc(),LG=Xc().axisHoverFormat,ybe=Su().extendFlat;gbe.exports=ybe({x:Tp.x,y:Tp.y,z:Tp.z,marker:Tp.marker,histnorm:Tp.histnorm,histfunc:Tp.histfunc,nbinsx:Tp.nbinsx,xbins:Tp.xbins,nbinsy:Tp.nbinsy,ybins:Tp.ybins,autobinx:Tp.autobinx,autobiny:Tp.autobiny,bingroup:Tp.bingroup,xbingroup:Tp.xbingroup,ybingroup:Tp.ybingroup,autocontour:Ny.autocontour,ncontours:Ny.ncontours,contours:Ny.contours,line:{color:Ny.line.color,width:ybe({},Ny.line.width,{dflt:.5}),dash:Ny.line.dash,smoothing:Ny.line.smoothing,editType:"plot"},xhoverformat:LG("x"),yhoverformat:LG("y"),zhoverformat:LG("z",1),hovertemplate:Tp.hovertemplate,hovertemplatefallback:Tp.hovertemplatefallback,texttemplate:Ny.texttemplate,texttemplatefallback:Ny.texttemplatefallback,textfont:Ny.textfont},P2t("",{cLetter:"z",editTypeOverride:"calc"}))});var PR=we((yhr,_be)=>{"use strict";_be.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,u=n("contours.size"),l;s?l=r.autocontour=!0:l=n("autocontour",!1),(l||!u)&&n("ncontours")}});var zG=we((ghr,xbe)=>{"use strict";var z2t=ei();xbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;z2t.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var zR=we((_hr,bbe)=>{"use strict";var I2t=nd(),R2t=zG();bbe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,u="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(u=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,I2t(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),R2t(n,i,u,a)}});var Sbe=we((xhr,Tbe)=>{"use strict";var wbe=ei(),D2t=kG(),F2t=PR(),O2t=zR(),B2t=DE(),Abe=PG();Tbe.exports=function(t,r,n,i){function a(s,u){return wbe.coerce(t,r,Abe,s,u)}function o(s){return wbe.coerce2(t,r,Abe,s)}D2t(t,r,a,i),r.visible!==!1&&(F2t(t,r,a,o),O2t(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&B2t(a,i))}});var DG=we((bhr,Ebe)=>{"use strict";var RG=wu(),IG=ei();Ebe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=IG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=IG.aggNums(Math.max,null,r));var o=Mbe(i,a,t.ncontours);n.size=o.dtick,n.start=RG.tickFirst(o),o.range.reverse(),n.end=RG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),IG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,u=n.end,l=t._input.contours;if(s>u&&(n.start=l.start=u,u=n.end=l.end=s,s=n.start),!(n.size>0)){var f;s===u?f=1:f=Mbe(s,u,t.ncontours).dtick,l.size=n.size=f}}};function Mbe(e,t,r){var n={type:"linear",range:[e,t]};return RG.autoTicks(n,(t-e)/(r||15)),n}});var UE=we((whr,kbe)=>{"use strict";kbe.exports=function(t){return t.end+t.size/1e6}});var FG=we((Ahr,Lbe)=>{"use strict";var Cbe=_c(),q2t=yR(),N2t=DG(),U2t=UE();Lbe.exports=function(t,r){var n=q2t(t,r),i=n[0].z;N2t(r,i);var a=r.contours,o=Cbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var u=a.start,l=U2t(a),f=a.size||1,c=Math.floor((l-u)/f)+1;isFinite(f)||(f=1,c=1);var h=u-f/2,d=h+c*f;s=[h,d]}else s=i;return Cbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var VE=we((Thr,Pbe)=>{"use strict";Pbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var OG=we((Shr,zbe)=>{"use strict";var IR=VE();zbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,u,l,f,c,h,d,p;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var BG=we((Mhr,Dbe)=>{"use strict";var RR=ei(),WA=VE();Dbe.exports=function(t,r,n){var i,a,o,s,u;for(r=r||.01,n=n||.01,o=0;o20?(o=WA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=WA.SADDLEREMAINDER[o]):delete e.crossings[a],s=WA.NEWDELTA[o],!s){RR.log("Found bad marching index:",o,t,e.level);break}u.push(Rbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),GE(u[u.length-1],u[u.length-2],n,i)&&u.pop();var p=s[0]&&(t[0]<0||t[0]>f-2)||s[1]&&(t[1]<0||t[1]>l-2),y=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(y||r&&p)break;o=e.crossings[a]}d===1e4&&RR.log("Infinite loop in contour?");var b=GE(u[0],u[u.length-1],n,i),v=0,C=.2*e.smoothing,E=[],A=0,L,x,k,S,m,P,M,O,F,U,G;for(d=1;d=A;d--)if(L=E[d],L=A&&L+E[x]O&&F--,e.edgepaths[F]=G.concat(u,U));break}H||(e.edgepaths[O]=u.concat(U))}for(O=0;O20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:WA.BOTTOMSTART.indexOf(e)!==-1?i=1:WA.LEFTSTART.indexOf(e)!==-1?n=1:WA.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function Rbe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var u=(e.level-a)/(e.z[i][n+1]-a),l=(u!==1?(1-u)*o.c2l(e.x[n]):0)+(u!==0?u*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(l),!0),s.c2p(e.y[i],!0),n+u,i]}else{var f=(e.level-a)/(e.z[i+1][n]-a),c=(f!==1?(1-f)*s.c2l(e.y[i]):0)+(f!==0?f*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(c),!0),n,i+f]}}});var qbe=we((Ehr,Bbe)=>{"use strict";var qG=CR(),W2t=ku();Bbe.exports={"[]":Fbe("[]"),"][":Fbe("]["),">":NG(">"),"<":NG("<"),"=":NG("=")};function Obe(e,t){var r=Array.isArray(t),n;function i(a){return W2t(a)?+a:null}return qG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):qG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:qG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function Fbe(e){return function(t){t=Obe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function NG(e){return function(t){return t=Obe(e,t),{start:t,end:1/0,size:1/0}}}});var UG=we((khr,Ube)=>{"use strict";var Nbe=ei(),j2t=qbe(),X2t=UE();Ube.exports=function(t,r,n){for(var i=t.type==="constraint"?j2t[t._operation](t.value):t,a=i.size,o=[],s=X2t(i),u=n.trace._carpetTrace,l=u?{xaxis:u.aaxis,yaxis:u.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},f=i.start;f1e3){Nbe.warn("Too many contours, clipping at 1000",t);break}return o}});var VG=we((Chr,Gbe)=>{"use strict";var jA=ei();Gbe.exports=function(e,t){var r,n,i,a=function(u){return u.reverse()},o=function(u){return u};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&jA.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Hbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,u=r.y.length,l=-1/0,f=1/0;for(i=0;i":c>l&&(r.prefixBoundary=!0);break;case"<":(cl||r.starts.length&&d===f)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),hl&&(r.prefixBoundary=!0);break}break}}});var DR=we(Wp=>{"use strict";var WE=Kl(),Bd=ei(),jg=Mu(),Z2t=_c(),Xbe=Wf(),Wbe=wu(),jbe=xy(),Y2t=xR(),Zbe=OG(),Ybe=BG(),K2t=UG(),J2t=VG(),Kbe=GG(),HE=VE(),Uy=HE.LABELOPTIMIZER;Wp.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;Bd.makeTraceGroups(i,n,"contour").each(function(s){var u=WE.select(this),l=s[0],f=l.trace,c=l.x,h=l.y,d=f.contours,p=K2t(d,r,l),y=Bd.ensureSingle(u,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),Y2t(t,r,b,y),Zbe(p),Ybe(p);var v=a.c2p(c[0],!0),C=a.c2p(c[c.length-1],!0),E=o.c2p(h[0],!0),A=o.c2p(h[h.length-1],!0),L=[[v,A],[C,A],[C,E],[v,E]],x=p;d.type==="constraint"&&(x=J2t(p,d._operation)),$2t(u,L,d),Q2t(u,x,L,d),ewt(u,p,t,l,d),rwt(u,r,t,l,L)})};function $2t(e,t,r){var n=Bd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function Q2t(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Kbe(t,n);var o=Bd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(u){var l=(u.prefixBoundary?a:"")+Jbe(u,r);l?WE.select(this).attr("d",l).style("stroke","none"):WE.select(this).remove()})}function Jbe(e,t){var r="",n=0,i=e.edgepaths.map(function(v,C){return C}),a=!0,o,s,u,l,f,c;function h(v){return Math.abs(v[1]-t[0][1])<.01}function d(v){return Math.abs(v[1]-t[2][1])<.01}function p(v){return Math.abs(v[0]-t[0][0])<.01}function y(v){return Math.abs(v[0]-t[2][0])<.01}for(;i.length;){for(c=jg.smoothopen(e.edgepaths[n],e.smoothing),r+=a?c:c.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],l=-1,u=0;u<4;u++){if(!o){Bd.log("Missing end?",n,e);break}for(h(o)&&!y(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:y(o)&&(s=t[2]),f=0;f=0&&(s=b,l=f):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,l=f):Bd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,l>=0)break;r+="L"+s}if(l===e.edgepaths.length){Bd.log("unclosed perimeter path");break}n=l,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nUy.MAXCOST*2)break;h&&(s/=2),o=l-s/2,u=o+s*1.5}if(c<=Uy.MAXCOST)return f};function twt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,u=e.theta,l=Math.cos(u)*i,f=Math.sin(u)*i,c=(o>n.center?n.right-o:o-n.left)/(l+Math.abs(Math.sin(u)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(f)+Math.cos(u)*a);if(c<1||h<1)return 1/0;var d=Uy.EDGECOST*(1/(c-1)+1/(h-1));d+=Uy.ANGLECOST*u*u;for(var p=o-l,y=s-f,b=o+l,v=s+f,C=0;C{"use strict";var nwt=Kl(),HG=_c(),awt=UE();$be.exports=function(t){var r=t.contours,n=r.start,i=awt(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,u=HG.extractOpts(t);isFinite(a)||(a=1,o=1);var l=u.reversescale?HG.flipScale(u.colorscale):u.colorscale,f=l.length,c=new Array(f),h=new Array(f),d,p,y=u.min,b=u.max;if(r.coloring==="heatmap"){for(p=0;p=b)&&(n<=y&&(n=y),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),p=0;py&&(c.unshift(y),h.unshift(h[0])),c[c.length-1]{"use strict";var FR=Kl(),Qbe=Mu(),owt=bR(),swt=WG();e2e.exports=function(t){var r=FR.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=FR.select(this),a=n[0].trace,o=a.contours,s=a.line,u=o.size||1,l=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",h=!f&&o.coloring==="fill",d=c||h?swt(a):null;i.selectAll("g.contourlevel").each(function(b){FR.select(this).selectAll("path").call(Qbe.lineGroupStyle,s.width,c?d(b.level):s.color,s.dash)});var p=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Qbe.font(FR.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(b.level):s.color)})}),f)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var y;i.selectAll("g.contourfill path").style("fill",function(b){return y===void 0&&(y=b.level),d(b.level+.5*u)}),y===void 0&&(y=l),i.selectAll("g.contourbg path").style("fill",d(y-.5*u))}}),owt(t)}});var BR=we((Rhr,r2e)=>{"use strict";var t2e=_c(),lwt=WG(),uwt=UE();function fwt(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=lwt(t,{isColorbar:!0});if(o==="heatmap"){var u=t2e.extractOpts(t);r._fillgradient=u.reversescale?t2e.flipScale(u.colorscale):u.colorscale,r._zrange=[u.min,u.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:uwt(n),size:a}}r2e.exports={min:"zmin",max:"zmax",calc:fwt}});var jG=we((Dhr,i2e)=>{"use strict";var qR=jl(),cwt=AR();i2e.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=cwt(t,r,n,i,a);return o&&o.forEach(function(s){var u=s.trace;u.contours.type==="constraint"&&(u.fillcolor&&qR.opacity(u.fillcolor)?s.color=qR.addOpacity(u.fillcolor,1):u.contours.showlines&&qR.opacity(u.line.color)&&(s.color=qR.addOpacity(u.line.color,1)))}),o}});var a2e=we((Fhr,n2e)=>{"use strict";n2e.exports={attributes:PG(),supplyDefaults:Sbe(),crossTraceDefaults:MR(),calc:FG(),plot:DR().plot,layerName:"contourlayer",style:OR(),colorbar:BR(),hoverPoints:jG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var s2e=we((Ohr,o2e)=>{"use strict";o2e.exports=a2e()});var XG=we((Bhr,d2e)=>{"use strict";var l2e=ku(),hwt=zG(),c2e=jl(),u2e=c2e.addOpacity,dwt=c2e.opacity,h2e=CR(),f2e=ei().isArrayOrTypedArray,pwt=h2e.CONSTRAINT_REDUCTION,vwt=h2e.COMPARISON_OPS2;d2e.exports=function(t,r,n,i,a,o){var s=r.contours,u,l,f,c=n("contours.operation");if(s._operation=pwt[c],mwt(n,s),c==="="?u=s.showlines=!0:(u=n("contours.showlines"),f=n("fillcolor",u2e((t.line||{}).color||a,.5))),u){var h=f&&dwt(f)?u2e(r.fillcolor,1):a;l=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),hwt(n,i,l,o)};function mwt(e,t){var r;vwt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),f2e(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:l2e(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),l2e(t.value)||(f2e(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var m2e=we((qhr,v2e)=>{"use strict";var ZG=ei(),ywt=sR(),gwt=Rm(),_wt=XG(),xwt=PR(),bwt=zR(),wwt=DE(),p2e=NE();v2e.exports=function(t,r,n,i){function a(l,f){return ZG.coerce(t,r,p2e,l,f)}function o(l){return ZG.coerce2(t,r,p2e,l)}var s=ywt(t,r,a,i);if(!s){r.visible=!1;return}gwt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate"),a("hovertemplatefallback");var u=a("contours.type")==="constraint";a("connectgaps",ZG.isArray1D(r.z)),u?_wt(t,r,a,i,n):(xwt(t,r,a,o),bwt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&wwt(a,i),a("zorder")}});var g2e=we((Nhr,y2e)=>{"use strict";y2e.exports={attributes:NE(),supplyDefaults:m2e(),calc:FG(),plot:DR().plot,style:OR(),colorbar:BR(),hoverPoints:jG(),moduleType:"trace",name:"contour",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var x2e=we((Uhr,_2e)=>{"use strict";_2e.exports=g2e()});var YG=we((Vhr,T2e)=>{"use strict";var{hovertemplateAttrs:Awt,texttemplateAttrs:Twt,templatefallbackAttrs:b2e}=Of(),Swt=Pm(),o0=Zc(),Mwt=Vf(),w2e=nc(),Ewt=Id().dash,F_=Su().extendFlat,X0=o0.marker,jE=o0.line,A2e=X0.line;T2e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:F_({},o0.mode,{dflt:"markers"}),text:F_({},o0.text,{}),texttemplate:Twt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:b2e({editType:"plot"}),hovertext:F_({},o0.hovertext,{}),line:{color:jE.color,width:jE.width,dash:Ewt,backoff:jE.backoff,shape:F_({},jE.shape,{values:["linear","spline"]}),smoothing:jE.smoothing,editType:"calc"},connectgaps:o0.connectgaps,cliponaxis:o0.cliponaxis,fill:F_({},o0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Swt(),marker:F_({symbol:X0.symbol,opacity:X0.opacity,angle:X0.angle,angleref:X0.angleref,standoff:X0.standoff,maxdisplayed:X0.maxdisplayed,size:X0.size,sizeref:X0.sizeref,sizemin:X0.sizemin,sizemode:X0.sizemode,line:F_({width:A2e.width,dash:A2e.dash,editType:"calc"},w2e("marker.line")),gradient:X0.gradient,editType:"calc"},w2e("marker")),textfont:o0.textfont,textposition:o0.textposition,selected:o0.selected,unselected:o0.unselected,hoverinfo:F_({},Mwt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o0.hoveron,hovertemplate:Awt(),hovertemplatefallback:b2e()}});var k2e=we((Ghr,E2e)=>{"use strict";var S2e=ei(),kwt=Py(),XA=lc(),Cwt=$v(),Lwt=R0(),M2e=cA(),Pwt=D0(),zwt=Dm(),Iwt=YG();E2e.exports=function(t,r,n,i){function a(h,d){return S2e.coerce(t,r,Iwt,h,d)}var o=a("a"),s=a("b"),u=a("c"),l;if(o?(l=o.length,s?(l=Math.min(l,s.length),u&&(l=Math.min(l,u.length))):u?l=Math.min(l,u.length):l=0):s&&u&&(l=Math.min(s.length,u.length)),!l){r.visible=!1;return}r._length=l,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var f=l{"use strict";var KG=wu();C2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=KG.tickText(a.aaxis,t.a,!0).text,i.bLabel=KG.tickText(a.baxis,t.b,!0).text,i.cLabel=KG.tickText(a.caxis,t.c,!0).text,i}});var R2e=we((Whr,I2e)=>{"use strict";var JG=ku(),Rwt=F0(),Dwt=Ry(),Fwt=O0(),Owt=B0().calcMarkerSize,P2e=["a","b","c"],z2e={a:["b","c"],b:["a","c"],c:["a","b"]};I2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,u,l,f,c,h,d;for(u=0;u{"use strict";var Bwt=yA();D2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},u=r.layers.frontplot.select("g.scatterlayer"),l=0;l{"use strict";var qwt=bA();O2e.exports=function(t,r,n,i){var a=qwt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index],h=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[h.subplot]={_subplot:d};var y=h._module.formatLabels(c,h,p);o.aLabel=y.aLabel,o.bLabel=y.bLabel,o.cLabel=y.cLabel;var b=c.hi||h.hoverinfo,v=[];function C(A,L){v.push(A._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&C(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&C(d.baxis,o.bLabel),E.indexOf("c")!==-1&&C(d.caxis,o.cLabel)}return o.extraText=v.join("
"),o.hovertemplate=h.hovertemplate,a}});var N2e=we((Zhr,q2e)=>{"use strict";q2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var J2e=we((Yhr,K2e)=>{"use strict";var j2e=Kl(),Nwt=hd(),$G=$l(),Xg=ei(),Vy=Xg.strTranslate,NR=Xg._,YA=jl(),UR=Mu(),XE=xy(),QG=Su().extendFlat,Uwt=Cc(),O_=wu(),U2e=xp(),V2e=Vc(),X2e=Cm(),G2e=X2e.freeMode,Vwt=X2e.rectMode,eH=Ob(),Gwt=oh().prepSelect,Hwt=oh().selectOnClick,Wwt=oh().clearOutline,jwt=oh().clearSelectionsCache,Z2e=qh();function Y2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}K2e.exports=Y2e;var Gy=Y2e.prototype;Gy.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Gy.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aZA*l?(v=l,b=v*ZA):(b=u,v=b/ZA),C=o*b/u,E=s*v/l,p=t.l+t.w*i-b/2,y=t.t+t.h*(1-a)-v/2,r.x0=p,r.y0=y,r.w=b,r.h=v,r.sum=f,r.xaxis={type:"linear",range:[c+2*d-f,f-c-2*h],domain:[i-C/2,i+C/2],_id:"x"},XE(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(U){return U.a>=r.aaxis.range[0]&&U.a<=r.aaxis.range[1]&&U.b>=r.baxis.range[1]&&U.b<=r.baxis.range[0]&&U.c>=r.caxis.range[1]&&U.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[c,f-h-d],domain:[a-E/2,a+E/2],_id:"y"},XE(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var A=r.yaxis.domain[0],L=r.aaxis=QG({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[A,A+E*ZA],anchor:"free",position:0,_id:"y",_length:b});XE(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=QG({},e.baxis,{range:[f-c-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});XE(x,r.graphDiv._fullLayout),x.setScale();var k=r.caxis=QG({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[A,A+E*ZA],anchor:"free",position:0,_id:"y",_length:b});XE(k,r.graphDiv._fullLayout),k.setScale();var S="M"+p+","+(y+v)+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDef.select("path").attr("d",S),r.layers.plotbg.select("path").attr("d",S);var m="M0,"+v+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDefRelative.select("path").attr("d",m);var P=Vy(p,y);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var M=Vy(p-x._offset,y+v);r.layers.baxis.attr("transform",M),r.layers.bgrid.attr("transform",M);var O=Vy(p+b/2,y)+"rotate(30)"+Vy(0,-L._offset);r.layers.aaxis.attr("transform",O),r.layers.agrid.attr("transform",O);var F=Vy(p+b/2,y)+"rotate(-30)"+Vy(0,-k._offset);r.layers.caxis.attr("transform",F),r.layers.cgrid.attr("transform",F),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+p+","+(y+v)+"l"+b/2+",-"+v:"M0,0").call(YA.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+p+","+(y+v)+"h"+b:"M0,0").call(YA.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",k.showline?"M"+(p+b/2)+","+y+"l"+b/2+","+v:"M0,0").call(YA.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),UR.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Gy.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.slice(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var u=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),l=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=eH.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:NR(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-u,"text-anchor":"middle"}}),i["b-title"]=eH.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:NR(r,"Click to enter Component B title"),attributes:{x:t.x0-l,y:t.y0+t.h+o.title.font.size*.83+l,"text-anchor":"middle"}}),i["c-title"]=eH.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:NR(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+l,y:t.y0+t.h+s.title.font.size*.83+l,"text-anchor":"middle"}})}};Gy.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,u=i+"tickLayout",l=Xwt(e);t[u]!==l&&(o.selectAll("."+a+"tick").remove(),t[u]=l),e.setScale();var f=O_.calcTicks(e),c=O_.clipEnds(e,f),h=O_.makeTransTickFn(e),d=O_.getTickSigns(e)[2],p=Xg.deg2rad(s),y=d*(e.linewidth||1)/2,b=d*e.ticklen,v=t.w,C=t.h,E=i==="b"?"M0,"+y+"l"+Math.sin(p)*b+","+Math.cos(p)*b:"M"+y+",0l"+Math.cos(p)*b+","+-Math.sin(p)*b,A={a:"M0,0l"+C+",-"+v/2,b:"M0,0l-"+v/2+",-"+C,c:"M0,0l-"+C+","+v/2}[i];O_.drawTicks(r,e,{vals:e.ticks==="inside"?c:f,layer:o,path:E,transFn:h,crisp:!1}),O_.drawGrid(r,e,{vals:c,layer:t.layers[i+"grid"],path:A,transFn:h,crisp:!1}),O_.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:O_.makeLabelFns(e,0,s)})};function Xwt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var _d=Z2e.MINZOOM/2+.87,Zwt="m-0.87,.5h"+_d+"v3h-"+(_d+5.2)+"l"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l2.6,1.5l-"+_d/2+","+_d*.87+"Z",Ywt="m0.87,.5h-"+_d+"v3h"+(_d+5.2)+"l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-2.6,1.5l"+_d/2+","+_d*.87+"Z",Kwt="m0,1l"+_d/2+","+_d*.87+"l2.6,-1.5l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-"+(_d/2+2.6)+","+(_d*.87+4.5)+"l2.6,1.5l"+_d/2+",-"+_d*.87+"Z",Jwt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",H2e=!0;Gy.clearOutline=function(){jwt(this.dragOptions),Wwt(this.dragOptions.gd)};Gy.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(M,O,F){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var U=e.dragOptions.dragmode=r._fullLayout.dragmode;G2e(U)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,U==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=v,e.dragOptions.doneFn=k,C(M,O,F)):U==="pan"?(e.dragOptions.moveFn=m,e.dragOptions.clickFn=v,e.dragOptions.doneFn=P,S(),e.clearOutline(r)):(Vwt(U)||G2e(U))&&Gwt(M,O,F,e.dragOptions,U)}};var o,s,u,l,f,c,h,d,p,y;function b(M){var O={};return O[e.id+".aaxis.min"]=M.a,O[e.id+".baxis.min"]=M.b,O[e.id+".caxis.min"]=M.c,O}function v(M,O){var F=r._fullLayout.clickmode;W2e(r),M===2&&(r.emit("plotly_doubleclick",null),$G.call("_guiRelayout",r,b({a:0,b:0,c:0}))),F.indexOf("select")>-1&&M===1&&Hwt(O,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),F.indexOf("event")>-1&&V2e.click(r,O,e.id)}function C(M,O,F){var U=t.getBoundingClientRect();o=O-U.left,s=F-U.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,j=Xg.apply3DTransform(G)(o,s);o=j[0],s=j[1],u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u,l=e.aaxis.range[1]-u.a,c=Nwt(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=n.append("path").attr("class","zoombox").attr("transform",Vy(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),y=n.append("path").attr("class","zoombox-corners").attr("transform",Vy(e.x0,e.y0)).style({fill:YA.background,stroke:YA.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(M,O){return 1-O/e.h}function A(M,O){return 1-(M+(e.h-O)/Math.sqrt(3))/e.w}function L(M,O){return(M-(e.h-O)/Math.sqrt(3))/e.w}function x(M,O){var F=o+M*i,U=s+O*a,G=Math.max(0,Math.min(1,E(o,s),E(F,U))),j=Math.max(0,Math.min(1,A(o,s),A(F,U))),W=Math.max(0,Math.min(1,L(o,s),L(F,U))),N=(G/2+W)*e.w,H=(1-G/2-j)*e.w,re=(N+H)/2,ae=H-N,me=(1-G)*e.h,Ce=me-ae/ZA;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),y.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(f))}function k(){W2e(r),f!==u&&($G.call("_guiRelayout",r,b(f)),H2e&&r.data&&r._context.showTips&&(Xg.notifier(NR(r,"Double-click to zoom back out"),"long",r),H2e=!1))}function S(){u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u}function m(M,O){var F=M/e.xaxis._m,U=O/e.yaxis._m;f={a:u.a-U,b:u.b+(F+U)/2,c:u.c-(F-U)/2};var G=[f.a,f.b,f.c].sort(Xg.sorterAsc),j={a:G.indexOf(f.a),b:G.indexOf(f.b),c:G.indexOf(f.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),f={a:G[j.a],b:G[j.b],c:G[j.c]},O=(u.a-f.a)*e.yaxis._m,M=(u.c-f.c-u.b+f.b)*e.xaxis._m);var W=Vy(e.x0+M,e.y0+O);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",W);var N=Vy(-M,-O);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(UR.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(f))}function P(){$G.call("_guiRelayout",r,b(f))}t.onmousemove=function(M){V2e.hover(r,M,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(M){r._dragging||U2e.unhover(r,M)},U2e.init(this.dragOptions)};function W2e(e){j2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var iH=we((Khr,$2e)=>{"use strict";var $wt=Bh(),Qwt=zc().attributes,Kf=Dd(),e3t=Sc().overrideAll,tH=Su().extendFlat,rH={title:{text:Kf.title.text,font:Kf.title.font},color:Kf.color,tickmode:Kf.minor.tickmode,nticks:tH({},Kf.nticks,{dflt:6,min:1}),tick0:Kf.tick0,dtick:Kf.dtick,tickvals:Kf.tickvals,ticktext:Kf.ticktext,ticks:Kf.ticks,ticklen:Kf.ticklen,tickwidth:Kf.tickwidth,tickcolor:Kf.tickcolor,ticklabelstep:Kf.ticklabelstep,showticklabels:Kf.showticklabels,labelalias:Kf.labelalias,showtickprefix:Kf.showtickprefix,tickprefix:Kf.tickprefix,showticksuffix:Kf.showticksuffix,ticksuffix:Kf.ticksuffix,showexponent:Kf.showexponent,exponentformat:Kf.exponentformat,minexponent:Kf.minexponent,separatethousands:Kf.separatethousands,tickfont:Kf.tickfont,tickangle:Kf.tickangle,tickformat:Kf.tickformat,tickformatstops:Kf.tickformatstops,hoverformat:Kf.hoverformat,showline:tH({},Kf.showline,{dflt:!0}),linecolor:Kf.linecolor,linewidth:Kf.linewidth,showgrid:tH({},Kf.showgrid,{dflt:!0}),gridcolor:Kf.gridcolor,gridwidth:Kf.gridwidth,griddash:Kf.griddash,layer:Kf.layer,min:{valType:"number",dflt:0,min:0}},VR=$2e.exports=e3t({domain:Qwt({name:"ternary"}),bgcolor:{valType:"color",dflt:$wt.background},sum:{valType:"number",dflt:1,min:0},aaxis:rH,baxis:rH,caxis:rH},"plot","from-root");VR.uirevision={valType:"any",editType:"none"};VR.aaxis.uirevision=VR.baxis.uirevision=VR.caxis.uirevision={valType:"any",editType:"none"}});var B_=we((Jhr,Q2e)=>{"use strict";var t3t=ei(),r3t=Lf(),i3t=zc().defaults;Q2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,u=i.partition||"x",l=r._subplots[a],f=l.length,c=f&&l[0].replace(/\d+$/,""),h,d;function p(C,E){return t3t.coerce(h,d,o,C,E)}for(var y=0;y{"use strict";var n3t=jl(),a3t=Lf(),GR=ei(),o3t=B_(),s3t=l_(),l3t=u_(),u3t=q3(),f3t=Pb(),c3t=hE(),twe=iH(),ewe=["aaxis","baxis","caxis"];rwe.exports=function(t,r,n){o3t(t,r,n,{type:"ternary",attributes:twe,handleDefaults:h3t,font:r.font,paper_bgcolor:r.paper_bgcolor})};function h3t(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=n3t.combine(i,n.paper_bgcolor);for(var o,s,u,l=0;l=a&&(f.min=0,c.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function d3t(e,t,r,n){var i=twe[t._name];function a(d,p){return GR.coerce(e,t,i,d,p)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,u=t._name,l=u.charAt(0).toUpperCase(),f="Component "+l,c=a("title.text",f);t._hovertitle=c===f?c:l,GR.coerceFont(a,"title.font",r.font,{overrideDflt:{size:GR.bigFont(r.font.size),color:s}}),a("min"),f3t(e,t,a,"linear"),l3t(e,t,a,"linear"),s3t(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),u3t(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(GR.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),c3t(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var nwe=we(Z0=>{"use strict";var p3t=J2e(),v3t=Rd().getSubplotCalcData,m3t=ei().counterRegex,KA="ternary";Z0.name=KA;var y3t=Z0.attr="subplot";Z0.idRoot=KA;Z0.idRegex=Z0.attrRegex=m3t(KA);var g3t=Z0.attributes={};g3t[y3t]={valType:"subplotid",dflt:"ternary",editType:"calc"};Z0.layoutAttributes=iH();Z0.supplyLayoutDefaults=iwe();Z0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[KA],a=0;a{"use strict";awe.exports={attributes:YG(),supplyDefaults:k2e(),colorbar:tp(),formatLabels:L2e(),calc:R2e(),plot:F2e(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:B2e(),selectPoints:wA(),eventData:N2e(),moduleType:"trace",name:"scatterternary",basePlotModule:nwe(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var lwe=we((tdr,swe)=>{"use strict";swe.exports=owe()});var nH=we((rdr,fwe)=>{"use strict";var Hh=PE(),JA=Su().extendFlat,uwe=Xc().axisHoverFormat;fwe.exports={y:Hh.y,x:Hh.x,x0:Hh.x0,y0:Hh.y0,xhoverformat:uwe("x"),yhoverformat:uwe("y"),name:JA({},Hh.name,{}),orientation:JA({},Hh.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Hh.fillcolor,points:JA({},Hh.boxpoints,{}),jitter:JA({},Hh.jitter,{}),pointpos:JA({},Hh.pointpos,{}),width:JA({},Hh.width,{}),marker:Hh.marker,text:Hh.text,hovertext:Hh.hovertext,hovertemplate:Hh.hovertemplate,hovertemplatefallback:Hh.hovertemplatefallback,quartilemethod:Hh.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:Hh.offsetgroup,alignmentgroup:Hh.alignmentgroup,selected:Hh.selected,unselected:Hh.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:Hh.zorder}});var sH=we((idr,cwe)=>{"use strict";var aH=zE(),oH=ei().extendFlat;cwe.exports={violinmode:oH({},aH.boxmode,{}),violingap:oH({},aH.boxgap,{}),violingroupgap:oH({},aH.boxgroupgap,{})}});var mwe=we((ndr,vwe)=>{"use strict";var hwe=ei(),_3t=jl(),dwe=RE(),pwe=nH();vwe.exports=function(t,r,n,i){function a(L,x){return hwe.coerce(t,r,pwe,L,x)}function o(L,x){return hwe.coerce2(t,r,pwe,L,x)}if(dwe.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var u=a("span"),l;Array.isArray(u)&&(l="manual"),a("spanmode",l);var f=a("line.color",(t.marker||{}).color||n),c=a("line.width"),h=a("fillcolor",_3t.addOpacity(r.line.color,.5));dwe.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),y=o("box.line.color",f),b=o("box.line.width",c),v=a("box.visible",!!(d||p||y||b));v||(r.box={visible:!1});var C=o("meanline.color",f),E=o("meanline.width",c),A=a("meanline.visible",!!(C||E));A||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var gwe=we((adr,ywe)=>{"use strict";var x3t=ei(),b3t=sH(),w3t=tR();ywe.exports=function(t,r,n){function i(a,o){return x3t.coerce(t,r,b3t,a,o)}w3t._supply(t,r,n,i,"violin")}});var HR=we(_2=>{"use strict";var A3t=ei(),T3t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};_2.makeKDE=function(e,t,r){var n=r.length,i=T3t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var u=0,l=0;l{"use strict";var lH=ei(),uH=wu(),S3t=eG(),_we=HR(),M3t=rf().BADNUM;xwe.exports=function(t,r){var n=S3t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=uH.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,u=0,l=0,f=0;f{"use strict";var L3t=iR().setPositionOffset,wwe=["v","h"];Awe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var fH=Kl(),cH=ei(),P3t=Mu(),hH=nR(),z3t=BU(),I3t=HR();Swe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,u=r.yaxis;function l(f,c){var h=z3t(f,{xaxis:s,yaxis:u,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return P3t.smoothopen(h[0],1)}cH.makeTraceGroups(i,n,"trace violins").each(function(f){var c=fH.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var y=d.bPos,b=d.bdPos,v=r[d.valLetter+"axis"],C=r[d.posLetter+"axis"],E=p.side==="both",A=E||p.side==="positive",L=E||p.side==="negative",x=c.selectAll("path.violin").data(cH.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(U){var G=fH.select(this),j=U.density,W=j.length,N=C.c2l(U.pos+y,!0),H=C.l2p(N),re;if(p.width)re=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[p.scalegroup];re=p.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/U.pts.length):ae.maxKDE/b}var me,Ce,Ee,de,te,Se,Te;if(A){for(Se=new Array(W),de=0;de{"use strict";var Ewe=Kl(),$A=jl(),R3t=sv().stylePoints;kwe.exports=function(t){var r=Ewe.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=Ewe.select(this),o=i.box||{},s=o.line||{},u=i.meanline||{},l=u.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call($A.stroke,i.line.color).call($A.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call($A.stroke,s.color).call($A.fill,o.fillcolor);var f={"stroke-width":l+"px","stroke-dasharray":2*l+"px,"+l+"px"};a.selectAll("path.mean").style(f).call($A.stroke,u.color),a.selectAll("path.meanline").style(f).call($A.stroke,u.color),R3t(a,i,t)})}});var Iwe=we((cdr,zwe)=>{"use strict";var D3t=jl(),dH=ei(),F3t=wu(),Lwe=aG(),Pwe=HR();zwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,u=s[0].trace,l=u.hoveron,f=l.indexOf("violins")!==-1,c=l.indexOf("kde")!==-1,h=[],d,p;if(f||c){var y=Lwe.hoverOnBoxes(t,r,n,i);if(c&&y.length>0){var b=t.xa,v=t.ya,C,E,A,L,x;u.orientation==="h"?(x=r,C="y",A=v,E="x",L=b):(x=n,C="x",A=b,E="y",L=v);var k=s[t.index];if(x>=k.span[0]&&x<=k.span[1]){var S=dH.extendFlat({},t),m=L.c2p(x,!0),P=Pwe.getKdeValue(k,u,x),M=Pwe.getPositionOnKdePath(k,u,m),O=A._offset,F=A._length;S[C+"0"]=M[0],S[C+"1"]=M[1],S[E+"0"]=S[E+"1"]=m,S[E+"Label"]=E+": "+F3t.hoverLabelText(L,x,u[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G{"use strict";Rwe.exports={attributes:nH(),layoutAttributes:sH(),supplyDefaults:mwe(),crossTraceDefaults:RE().crossTraceDefaults,supplyLayoutDefaults:gwe(),calc:bwe(),crossTraceCalc:Twe(),plot:Mwe(),style:Cwe(),styleOnSelect:sv().styleOnSelect,hoverPoints:Iwe(),selectPoints:oG(),moduleType:"trace",name:"violin",basePlotModule:Mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Owe=we((ddr,Fwe)=>{"use strict";Fwe.exports=Dwe()});var qwe=we((pdr,Bwe)=>{"use strict";Bwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var vH=we((vdr,Gwe)=>{"use strict";var Fc=Oy(),pH=Zc().line,O3t=Vf(),Nwe=Xc().axisHoverFormat,{hovertemplateAttrs:B3t,texttemplateAttrs:q3t,templatefallbackAttrs:Uwe}=Of(),Vwe=qwe(),Zg=Su().extendFlat,N3t=jl();Gwe.exports={x:Fc.x,x0:Fc.x0,dx:Fc.dx,y:Fc.y,y0:Fc.y0,dy:Fc.dy,xperiod:Fc.xperiod,yperiod:Fc.yperiod,xperiod0:Fc.xperiod0,yperiod0:Fc.yperiod0,xperiodalignment:Fc.xperiodalignment,yperiodalignment:Fc.yperiodalignment,xhoverformat:Nwe("x"),yhoverformat:Nwe("y"),hovertext:Fc.hovertext,hovertemplate:B3t({},{keys:Vwe.eventDataKeys}),hovertemplatefallback:Uwe(),hoverinfo:Zg({},O3t.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:q3t({editType:"plot"},{keys:Vwe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Uwe({editType:"plot"}),text:Fc.text,textposition:Fc.textposition,insidetextanchor:Zg({},Fc.insidetextanchor,{dflt:"middle"}),textangle:Zg({},Fc.textangle,{dflt:0}),textfont:Fc.textfont,insidetextfont:Fc.insidetextfont,outsidetextfont:Fc.outsidetextfont,constraintext:Fc.constraintext,cliponaxis:Fc.cliponaxis,orientation:Zg({},Fc.orientation,{}),offset:Zg({},Fc.offset,{arrayOk:!1}),width:Zg({},Fc.width,{arrayOk:!1}),marker:U3t(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Zg({},pH.color,{dflt:N3t.defaultLine}),width:Zg({},pH.width,{dflt:0,editType:"plot"}),dash:pH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Fc.offsetgroup,alignmentgroup:Fc.alignmentgroup,zorder:Fc.zorder};function U3t(){var e=Zg({},Fc.marker);return delete e.pattern,delete e.cornerradius,e}});var mH=we((mdr,Hwe)=>{"use strict";Hwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var gH=we((ydr,jwe)=>{"use strict";var WR=ei(),V3t=i2(),G3t=i0().handleText,H3t=fA(),W3t=Rm(),Wwe=vH(),yH=jl();function j3t(e,t,r,n){function i(c,h){return WR.coerce(e,t,Wwe,c,h)}var a=H3t(e,t,n,i);if(!a){t.visible=!1;return}W3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var s=i("textposition");G3t(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",WR.isArrayOrTypedArray(o)?"text+value":"value");var u=i("marker.color",r);i("marker.line.color",yH.defaultLine),i("marker.line.width");var l=i("connector.visible");if(l){i("connector.fillcolor",X3t(u));var f=i("connector.line.width");f&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function X3t(e){var t=WR.isArrayOrTypedArray(e)?"#000":e;return yH.addOpacity(t,.5*yH.opacity(t))}function Z3t(e,t){var r,n;function i(o){return WR.coerce(n._input,n,Wwe,o)}for(var a=0;a{"use strict";var Y3t=ei(),K3t=mH();Xwe.exports=function(e,t,r){var n=!1;function i(s,u){return Y3t.coerce(e,t,K3t,s,u)}for(var a=0;a{"use strict";var QA=ei();Ywe.exports=function(t,r){for(var n=0;n{"use strict";var Jwe=wu(),$we=Fm(),J3t=Kwe(),$3t=O0(),ZE=rf().BADNUM;Qwe.exports=function(t,r){var n=Jwe.getFromId(t,r.xaxis||"x"),i=Jwe.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=$we(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=$we(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;var d=Math.min(o.length,a.length),p=new Array(d);for(r._base=[],c=0;c{"use strict";var t3e=n2().setGroupPositions;r3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var jR=Kl(),N_=ei(),n3e=Mu(),q_=rf().BADNUM,Q3t=m2(),eAt=Ap().clearMinTextSize;o3e.exports=function(t,r,n,i){var a=t._fullLayout;eAt("funnel",a),tAt(t,r,n,i),rAt(t,r,n,i),Q3t.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function tAt(e,t,r,n){var i=t.xaxis,a=t.yaxis;N_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=jR.select(this),u=o[0].trace,l=N_.ensureSingle(s,"g","regions");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.region").data(N_.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=a3e(d,i,a,f),b=y[0],v=y[1],C="";b[0]!==q_&&v[0]!==q_&&b[1]!==q_&&v[1]!==q_&&b[2]!==q_&&v[2]!==q_&&b[3]!==q_&&v[3]!==q_&&(f?C+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2]+"H"+b[3]+"L"+b[1]+","+v[1]+"Z":C+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3]+"V"+v[2]+"L"+b[1]+","+v[0]+"Z"),C===""&&(C="M0,0Z"),N_.ensureSingle(jR.select(this),"path").attr("d",C).call(n3e.setClipUrl,t.layerClipId,e)}})})}function rAt(e,t,r,n){var i=t.xaxis,a=t.yaxis;N_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=jR.select(this),u=o[0].trace,l=N_.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible||!u.connector.line.width){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.line").data(N_.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=a3e(d,i,a,f),b=y[0],v=y[1],C="";b[3]!==void 0&&v[3]!==void 0&&(f?(C+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2],C+="M"+b[1]+","+v[1]+"L"+b[3]+","+v[2]):(C+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3],C+="M"+b[1]+","+v[0]+"L"+b[2]+","+v[2])),C===""&&(C="M0,0Z"),N_.ensureSingle(jR.select(this),"path").attr("d",C).call(n3e.setClipUrl,t.layerClipId,e)}})})}function a3e(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var f3e=we((Adr,u3e)=>{"use strict";var YE=Kl(),l3e=Mu(),xH=jl(),iAt=Z1().DESELECTDIM,nAt=V0(),aAt=Ap().resizeText,oAt=nAt.styleTextPoints;function sAt(e,t,r){var n=r||YE.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");aAt(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=YE.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o.marker;YE.select(this).call(xH.fill,s.mc||u.color).call(xH.stroke,s.mlc||u.line.color).call(l3e.dashLine,u.line.dash,s.mlw||u.line.width).style("opacity",o.selectedpoints&&!s.selected?iAt:1)}}),oAt(a,o,e),a.selectAll(".regions").each(function(){YE.select(this).selectAll("path").style("stroke-width",0).call(xH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;l3e.lineGroupStyle(YE.select(this).selectAll("path"),s.width,s.color,s.dash)})})}u3e.exports={style:sAt}});var d3e=we((Tdr,h3e)=>{"use strict";var c3e=jl().opacity,lAt=DA().hoverOnBars,bH=ei().formatPercent;h3e.exports=function(t,r,n,i,a){var o=lAt(t,r,n,i,a);if(o){var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=o.index,c=s[f],h=l?"x":"y";o[h+"LabelVal"]=c.s,o.percentInitial=c.begR,o.percentInitialLabel=bH(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=bH(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=bH(c.sumR,1);var d=c.hi||u.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var y=d==="all",b=d.split("+"),v=function(C){return y||b.indexOf(C)!==-1};v("percent initial")&&p.push(o.percentInitialLabel+" of initial"),v("percent previous")&&p.push(o.percentPreviousLabel+" of previous"),v("percent total")&&p.push(o.percentTotalLabel+" of total")}return o.extraText=p.join("
"),o.color=uAt(u,c),[o]}};function uAt(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(c3e(n))return n;if(c3e(i)&&a)return i}});var v3e=we((Sdr,p3e)=>{"use strict";p3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var y3e=we((Mdr,m3e)=>{"use strict";m3e.exports={attributes:vH(),layoutAttributes:mH(),supplyDefaults:gH().supplyDefaults,crossTraceDefaults:gH().crossTraceDefaults,supplyLayoutDefaults:Zwe(),calc:e3e(),crossTraceCalc:i3e(),plot:s3e(),style:f3e().style,hoverPoints:d3e(),eventData:v3e(),selectPoints:FA(),moduleType:"trace",name:"funnel",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var _3e=we((Edr,g3e)=>{"use strict";g3e.exports=y3e()});var b3e=we((kdr,x3e)=>{"use strict";x3e.exports={eventDataKeys:["initial","delta","final"]}});var TH=we((Cdr,S3e)=>{"use strict";var Ec=Oy(),wH=Zc().line,fAt=Vf(),w3e=Xc().axisHoverFormat,{hovertemplateAttrs:cAt,texttemplateAttrs:hAt,templatefallbackAttrs:A3e}=Of(),T3e=b3e(),eT=Su().extendFlat,dAt=jl();function AH(e){return{marker:{color:eT({},Ec.marker.color,{arrayOk:!1,editType:"style"}),line:{color:eT({},Ec.marker.line.color,{arrayOk:!1,editType:"style"}),width:eT({},Ec.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}S3e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:Ec.x,x0:Ec.x0,dx:Ec.dx,y:Ec.y,y0:Ec.y0,dy:Ec.dy,xperiod:Ec.xperiod,yperiod:Ec.yperiod,xperiod0:Ec.xperiod0,yperiod0:Ec.yperiod0,xperiodalignment:Ec.xperiodalignment,yperiodalignment:Ec.yperiodalignment,xhoverformat:w3e("x"),yhoverformat:w3e("y"),hovertext:Ec.hovertext,hovertemplate:cAt({},{keys:T3e.eventDataKeys}),hovertemplatefallback:A3e(),hoverinfo:eT({},fAt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:hAt({editType:"plot"},{keys:T3e.eventDataKeys.concat(["label"])}),texttemplatefallback:A3e({editType:"plot"}),text:Ec.text,textposition:Ec.textposition,insidetextanchor:Ec.insidetextanchor,textangle:Ec.textangle,textfont:Ec.textfont,insidetextfont:Ec.insidetextfont,outsidetextfont:Ec.outsidetextfont,constraintext:Ec.constraintext,cliponaxis:Ec.cliponaxis,orientation:Ec.orientation,offset:Ec.offset,width:Ec.width,increasing:AH("increasing"),decreasing:AH("decreasing"),totals:AH("intermediate sums and total"),connector:{line:{color:eT({},wH.color,{dflt:dAt.defaultLine}),width:eT({},wH.width,{editType:"plot"}),dash:wH.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Ec.offsetgroup,alignmentgroup:Ec.alignmentgroup,zorder:Ec.zorder}});var SH=we((Ldr,M3e)=>{"use strict";M3e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var tT=we((Pdr,E3e)=>{"use strict";E3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var EH=we((zdr,P3e)=>{"use strict";var k3e=ei(),pAt=i2(),vAt=i0().handleText,mAt=fA(),yAt=Rm(),C3e=TH(),gAt=jl(),L3e=tT(),_At=L3e.INCREASING.COLOR,xAt=L3e.DECREASING.COLOR,bAt="#4499FF";function MH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",gAt.defaultLine),e(t+".marker.line.width")}function wAt(e,t,r,n){function i(l,f){return k3e.coerce(e,t,C3e,l,f)}var a=mAt(e,t,n,i);if(!a){t.visible=!1;return}yAt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");vAt(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),i("texttemplatefallback"),t.texttemplate||i("textinfo")),MH(i,"increasing",_At),MH(i,"decreasing",xAt),MH(i,"totals",bAt);var s=i("connector.visible");if(s){i("connector.mode");var u=i("connector.line.width");u&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function AAt(e,t){var r,n;function i(o){return k3e.coerce(n._input,n,C3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var TAt=ei(),SAt=SH();z3e.exports=function(e,t,r){var n=!1;function i(s,u){return TAt.coerce(e,t,SAt,s,u)}for(var a=0;a{"use strict";var R3e=wu(),D3e=Fm(),F3e=ei().mergeArray,MAt=O0(),O3e=rf().BADNUM;function kH(e){return e==="a"||e==="absolute"}function CH(e){return e==="t"||e==="total"}B3e.exports=function(t,r){var n=R3e.getFromId(t,r.xaxis||"x"),i=R3e.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=D3e(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=D3e(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var c=Math.min(o.length,a.length),h=new Array(c),d=0,p,y=!1,b=0;b{"use strict";var N3e=n2().setGroupPositions;U3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var G3e=Kl(),XR=ei(),EAt=Mu(),rT=rf().BADNUM,kAt=m2(),CAt=Ap().clearMinTextSize;H3e.exports=function(t,r,n,i){var a=t._fullLayout;CAt("waterfall",a),kAt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),LAt(t,r,n,i)};function LAt(e,t,r,n){var i=t.xaxis,a=t.yaxis;XR.makeTraceGroups(n,r,"trace bars").each(function(o){var s=G3e.select(this),u=o[0].trace,l=XR.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=u.connector.mode,h=l.selectAll("g.line").data(XR.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,y){if(!(y!==d-1&&!p.cNext)){var b=PAt(p,i,a,f),v=b[0],C=b[1],E="";v[0]!==rT&&C[0]!==rT&&v[1]!==rT&&C[1]!==rT&&(c==="spanning"&&!p.isSum&&y>0&&(f?E+="M"+v[0]+","+C[1]+"V"+C[0]:E+="M"+v[1]+","+C[0]+"H"+v[0]),c!=="between"&&(p.isSum||y{"use strict";var ZR=Kl(),j3e=Mu(),X3e=jl(),zAt=Z1().DESELECTDIM,IAt=V0(),RAt=Ap().resizeText,DAt=IAt.styleTextPoints;function FAt(e,t,r){var n=r||ZR.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");RAt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=ZR.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o[s.dir].marker;ZR.select(this).call(X3e.fill,u.color).call(X3e.stroke,u.line.color).call(j3e.dashLine,u.line.dash,u.line.width).style("opacity",o.selectedpoints&&!s.selected?zAt:1)}}),DAt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;j3e.lineGroupStyle(ZR.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Z3e.exports={style:FAt}});var eAe=we((Bdr,Q3e)=>{"use strict";var OAt=wu().hoverLabelText,K3e=jl().opacity,BAt=DA().hoverOnBars,J3e=tT(),$3e={increasing:J3e.INCREASING.SYMBOL,decreasing:J3e.DECREASING.SYMBOL};Q3e.exports=function(t,r,n,i,a){var o=BAt(t,r,n,i,a);if(!o)return;var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=l?"x":"y",c=l?t.xa:t.ya;function h(x){return OAt(c,x,u[f+"hoverformat"])}var d=o.index,p=s[d],y=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-y,o.delta=y,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=y<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var v=p.hi||u.hoverinfo,C=[];if(v&&v!=="none"&&v!=="skip"){var E=v==="all",A=v.split("+"),L=function(x){return E||A.indexOf(x)!==-1};p.isSum||(L("final")&&(l?!L("x"):!L("y"))&&C.push(o.finalLabel),L("delta")&&(y<0?C.push(o.deltaLabel+" "+$3e.decreasing):C.push(o.deltaLabel+" "+$3e.increasing)),L("initial")&&C.push("Initial: "+o.initialLabel))}return C.length&&(o.extraText=C.join("
")),o.color=qAt(u,p),[o]};function qAt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(K3e(n))return n;if(K3e(i)&&a)return i}});var rAe=we((qdr,tAe)=>{"use strict";tAe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var nAe=we((Ndr,iAe)=>{"use strict";iAe.exports={attributes:TH(),layoutAttributes:SH(),supplyDefaults:EH().supplyDefaults,crossTraceDefaults:EH().crossTraceDefaults,supplyLayoutDefaults:I3e(),calc:q3e(),crossTraceCalc:V3e(),plot:W3e(),style:Y3e().style,hoverPoints:eAe(),eventData:rAe(),selectPoints:FA(),moduleType:"trace",name:"waterfall",basePlotModule:Mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var oAe=we((Udr,aAe)=>{"use strict";aAe.exports=nAe()});var iT=we((Vdr,sAe)=>{"use strict";sAe.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var LH=we((Gdr,uAe)=>{"use strict";var NAt=Vf(),UAt=Zc().zorder,{hovertemplateAttrs:VAt,templatefallbackAttrs:GAt}=Of(),lAe=Su().extendFlat,HAt=iT().colormodel,JE=["rgb","rgba","rgba256","hsl","hsla"],WAt=[],jAt=[];for(nT=0;nT{"use strict";var XAt=ei(),ZAt=LH(),fAe=iT(),YAt=Bg().IMAGE_URL_PREFIX;cAe.exports=function(t,r){function n(o,s){return XAt.coerce(t,r,ZAt,o,s)}n("source"),r.source&&!r.source.match(YAt)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=fAe.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=fAe.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),r._length=null,n("zorder")}});var Yg=we((Wdr,PH)=>{typeof Object.create=="function"?PH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:PH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var zH=we((jdr,dAe)=>{dAe.exports=Sb().EventEmitter});var mAe=we(YR=>{"use strict";YR.byteLength=JAt;YR.toByteArray=QAt;YR.fromByteArray=rTt;var Hy=[],Y0=[],KAt=typeof Uint8Array!="undefined"?Uint8Array:Array,IH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(x2=0,pAe=IH.length;x20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function JAt(e){var t=vAe(e),r=t[0],n=t[1];return(r+n)*3/4-n}function $At(e,t,r){return(t+r)*3/4-r}function QAt(e){var t,r=vAe(e),n=r[0],i=r[1],a=new KAt($At(e,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Y0[e.charCodeAt(u)]<<2|Y0[e.charCodeAt(u+1)]>>4,a[o++]=t&255),i===1&&(t=Y0[e.charCodeAt(u)]<<10|Y0[e.charCodeAt(u+1)]<<4|Y0[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function eTt(e){return Hy[e>>18&63]+Hy[e>>12&63]+Hy[e>>6&63]+Hy[e&63]}function tTt(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Hy[t>>2]+Hy[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Hy[t>>10]+Hy[t>>4&63]+Hy[t<<2&63]+"=")),i.join("")}});var yAe=we(RH=>{RH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<>1,f=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=a*256+e[t+c],c+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+e[t+c],c+=h,f-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(d?-1:1)*o*Math.pow(2,a-n)};RH.write=function(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,f=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(t*u-1)*Math.pow(2,i),o=o+c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=p,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=p,o/=256,l-=8);e[r+d-p]|=y*128}});var w2=we(lT=>{"use strict";var DH=mAe(),oT=yAe(),gAe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;lT.Buffer=ol;lT.SlowBuffer=lTt;lT.INSPECT_MAX_BYTES=50;var KR=2147483647;lT.kMaxLength=KR;ol.TYPED_ARRAY_SUPPORT=iTt();!ol.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function iTt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ol.prototype,"parent",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.buffer}});Object.defineProperty(ol.prototype,"offset",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.byteOffset}});function Kg(e){if(e>KR)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ol.prototype),t}function ol(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return qH(e)}return wAe(e,t,r)}ol.poolSize=8192;function wAe(e,t,r){if(typeof e=="string")return aTt(e,t);if(ArrayBuffer.isView(e))return oTt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Wy(e,ArrayBuffer)||e&&Wy(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Wy(e,SharedArrayBuffer)||e&&Wy(e.buffer,SharedArrayBuffer)))return OH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ol.from(n,t,r);let i=sTt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ol.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ol.from=function(e,t,r){return wAe(e,t,r)};Object.setPrototypeOf(ol.prototype,Uint8Array.prototype);Object.setPrototypeOf(ol,Uint8Array);function AAe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function nTt(e,t,r){return AAe(e),e<=0?Kg(e):t!==void 0?typeof r=="string"?Kg(e).fill(t,r):Kg(e).fill(t):Kg(e)}ol.alloc=function(e,t,r){return nTt(e,t,r)};function qH(e){return AAe(e),Kg(e<0?0:NH(e)|0)}ol.allocUnsafe=function(e){return qH(e)};ol.allocUnsafeSlow=function(e){return qH(e)};function aTt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ol.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=TAe(e,t)|0,n=Kg(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function FH(e){let t=e.length<0?0:NH(e.length)|0,r=Kg(t);for(let n=0;n=KR)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+KR.toString(16)+" bytes");return e|0}function lTt(e){return+e!=e&&(e=0),ol.alloc(+e)}ol.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ol.prototype};ol.compare=function(t,r){if(Wy(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),Wy(r,Uint8Array)&&(r=ol.from(r,r.offset,r.byteLength)),!ol.isBuffer(t)||!ol.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ol.isBuffer(o)||(o=ol.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ol.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function TAe(e,t){if(ol.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Wy(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return BH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return IAe(e).length;default:if(i)return n?-1:BH(e).length;t=(""+t).toLowerCase(),i=!0}}ol.byteLength=TAe;function uTt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return _Tt(this,t,r);case"utf8":case"utf-8":return MAe(this,t,r);case"ascii":return yTt(this,t,r);case"latin1":case"binary":return gTt(this,t,r);case"base64":return vTt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xTt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ol.prototype._isBuffer=!0;function b2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ol.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};gAe&&(ol.prototype[gAe]=ol.prototype.inspect);ol.prototype.compare=function(t,r,n,i,a){if(Wy(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),!ol.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),f=t.slice(r,n);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,VH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ol.from(t,n)),ol.isBuffer(t))return t.length===0?-1:_Ae(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):_Ae(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _Ae(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(f,c){return a===1?f[c]:f.readUInt16BE(c*a)}let l;if(i){let f=-1;for(l=r;lo&&(r=o-s),l=r;l>=0;l--){let f=!0;for(let c=0;ci&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return fTt(this,t,r,n);case"utf8":case"utf-8":return cTt(this,t,r,n);case"ascii":case"latin1":case"binary":return hTt(this,t,r,n);case"base64":return dTt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pTt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ol.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function vTt(e,t,r){return t===0&&r===e.length?DH.fromByteArray(e):DH.fromByteArray(e.slice(t,r))}function MAe(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let u,l,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)===128&&(c=(a&31)<<6|u&63,c>127&&(o=c));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(c=(a&15)<<12|(u&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:u=e[i+1],l=e[i+2],f=e[i+3],(u&192)===128&&(l&192)===128&&(f&192)===128&&(c=(a&15)<<18|(u&63)<<12|(l&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return mTt(n)}var xAe=4096;function mTt(e){let t=e.length;if(t<=xAe)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ol.prototype.readUintLE=ol.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ip(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||ip(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ol.prototype.readUint8=ol.prototype.readUInt8=function(t,r){return t=t>>>0,r||ip(t,1,this.length),this[t]};ol.prototype.readUint16LE=ol.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ip(t,2,this.length),this[t]|this[t+1]<<8};ol.prototype.readUint16BE=ol.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ip(t,2,this.length),this[t]<<8|this[t+1]};ol.prototype.readUint32LE=ol.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ol.prototype.readUint32BE=ol.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ol.prototype.readBigUInt64LE=U_(function(t){t=t>>>0,sT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&$E(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,sT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&$E(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||ip(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ol.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ip(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ol.prototype.readInt8=function(t,r){return t=t>>>0,r||ip(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ol.prototype.readInt16LE=function(t,r){t=t>>>0,r||ip(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt16BE=function(t,r){t=t>>>0,r||ip(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ol.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ol.prototype.readBigInt64LE=U_(function(t){t=t>>>0,sT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&$E(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,sT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&$E(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||ip(t,4,this.length),oT.read(this,t,!0,23,4)};ol.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ip(t,4,this.length),oT.read(this,t,!1,23,4)};ol.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ip(t,8,this.length),oT.read(this,t,!0,52,8)};ol.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ip(t,8,this.length),oT.read(this,t,!1,52,8)};function Iv(e,t,r,n,i,a){if(!ol.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ol.prototype.writeUintLE=ol.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Iv(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Iv(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ol.prototype.writeUint8=ol.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,1,255,0),this[r]=t&255,r+1};ol.prototype.writeUint16LE=ol.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeUint16BE=ol.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeUint32LE=ol.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ol.prototype.writeUint32BE=ol.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function EAe(e,t,r,n,i){zAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function kAe(e,t,r,n,i){zAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ol.prototype.writeBigUInt64LE=U_(function(t,r=0){return EAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeBigUInt64BE=U_(function(t,r=0){return kAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);Iv(this,t,r,n,u-1,-u)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ol.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);Iv(this,t,r,n,u-1,-u)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ol.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ol.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ol.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Iv(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ol.prototype.writeBigInt64LE=U_(function(t,r=0){return EAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ol.prototype.writeBigInt64BE=U_(function(t,r=0){return kAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function CAe(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function LAe(e,t,r,n,i){return t=+t,r=r>>>0,i||CAe(e,t,r,4,34028234663852886e22,-34028234663852886e22),oT.write(e,t,r,n,23,4),r+4}ol.prototype.writeFloatLE=function(t,r,n){return LAe(this,t,r,!0,n)};ol.prototype.writeFloatBE=function(t,r,n){return LAe(this,t,r,!1,n)};function PAe(e,t,r,n,i){return t=+t,r=r>>>0,i||CAe(e,t,r,8,17976931348623157e292,-17976931348623157e292),oT.write(e,t,r,n,52,8),r+8}ol.prototype.writeDoubleLE=function(t,r,n){return PAe(this,t,r,!0,n)};ol.prototype.writeDoubleBE=function(t,r,n){return PAe(this,t,r,!1,n)};ol.prototype.copy=function(t,r,n,i){if(!ol.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=bAe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=bAe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function bAe(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function bTt(e,t,r){sT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&$E(t,e.length-(r+1))}function zAe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new aT.ERR_OUT_OF_RANGE("value",s,e)}bTt(n,i,a)}function sT(e,t){if(typeof e!="number")throw new aT.ERR_INVALID_ARG_TYPE(t,"number",e)}function $E(e,t,r){throw Math.floor(e)!==e?(sT(e,r),new aT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new aT.ERR_BUFFER_OUT_OF_BOUNDS:new aT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var wTt=/[^+/0-9A-Za-z-_]/g;function ATt(e){if(e=e.split("=")[0],e=e.trim().replace(wTt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function BH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function TTt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function IAe(e){return DH.toByteArray(ATt(e))}function JR(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Wy(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function VH(e){return e!==e}var MTt=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t})();function U_(e){return typeof BigInt=="undefined"?ETt:e}function ETt(){throw new Error("BigInt not supported")}});var $R=we((Jdr,RAe)=>{"use strict";RAe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var QE=we(($dr,DAe)=>{"use strict";var kTt=$R();DAe.exports=function(){return kTt()&&!!Symbol.toStringTag}});var GH=we((Qdr,FAe)=>{"use strict";FAe.exports=Object});var BAe=we((epr,OAe)=>{"use strict";OAe.exports=Error});var NAe=we((tpr,qAe)=>{"use strict";qAe.exports=EvalError});var VAe=we((rpr,UAe)=>{"use strict";UAe.exports=RangeError});var HAe=we((ipr,GAe)=>{"use strict";GAe.exports=ReferenceError});var HH=we((npr,WAe)=>{"use strict";WAe.exports=SyntaxError});var uT=we((apr,jAe)=>{"use strict";jAe.exports=TypeError});var ZAe=we((opr,XAe)=>{"use strict";XAe.exports=URIError});var KAe=we((spr,YAe)=>{"use strict";YAe.exports=Math.abs});var $Ae=we((lpr,JAe)=>{"use strict";JAe.exports=Math.floor});var eTe=we((upr,QAe)=>{"use strict";QAe.exports=Math.max});var rTe=we((fpr,tTe)=>{"use strict";tTe.exports=Math.min});var nTe=we((cpr,iTe)=>{"use strict";iTe.exports=Math.pow});var oTe=we((hpr,aTe)=>{"use strict";aTe.exports=Math.round});var lTe=we((dpr,sTe)=>{"use strict";sTe.exports=Number.isNaN||function(t){return t!==t}});var fTe=we((ppr,uTe)=>{"use strict";var CTt=lTe();uTe.exports=function(t){return CTt(t)||t===0?t:t<0?-1:1}});var hTe=we((vpr,cTe)=>{"use strict";cTe.exports=Object.getOwnPropertyDescriptor});var A2=we((mpr,dTe)=>{"use strict";var QR=hTe();if(QR)try{QR([],"length")}catch(e){QR=null}dTe.exports=QR});var e4=we((ypr,pTe)=>{"use strict";var eD=Object.defineProperty||!1;if(eD)try{eD({},"a",{value:1})}catch(e){eD=!1}pTe.exports=eD});var yTe=we((gpr,mTe)=>{"use strict";var vTe=typeof Symbol!="undefined"&&Symbol,LTt=$R();mTe.exports=function(){return typeof vTe!="function"||typeof Symbol!="function"||typeof vTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:LTt()}});var WH=we((_pr,gTe)=>{"use strict";gTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var jH=we((xpr,_Te)=>{"use strict";var PTt=GH();_Te.exports=PTt.getPrototypeOf||null});var wTe=we((bpr,bTe)=>{"use strict";var zTt="Function.prototype.bind called on incompatible ",ITt=Object.prototype.toString,RTt=Math.max,DTt="[object Function]",xTe=function(t,r){for(var n=[],i=0;i{"use strict";var BTt=wTe();ATe.exports=Function.prototype.bind||BTt});var tD=we((Apr,TTe)=>{"use strict";TTe.exports=Function.prototype.call});var XH=we((Tpr,STe)=>{"use strict";STe.exports=Function.prototype.apply});var ETe=we((Spr,MTe)=>{"use strict";MTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var CTe=we((Mpr,kTe)=>{"use strict";var qTt=fT(),NTt=XH(),UTt=tD(),VTt=ETe();kTe.exports=VTt||qTt.call(UTt,NTt)});var PTe=we((Epr,LTe)=>{"use strict";var GTt=fT(),HTt=uT(),WTt=tD(),jTt=CTe();LTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new HTt("a function is required");return jTt(GTt,WTt,t)}});var OTe=we((kpr,FTe)=>{"use strict";var XTt=PTe(),zTe=A2(),RTe;try{RTe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var ZH=!!RTe&&zTe&&zTe(Object.prototype,"__proto__"),DTe=Object,ITe=DTe.getPrototypeOf;FTe.exports=ZH&&typeof ZH.get=="function"?XTt([ZH.get]):typeof ITe=="function"?function(t){return ITe(t==null?t:DTe(t))}:!1});var VTe=we((Cpr,UTe)=>{"use strict";var BTe=WH(),qTe=jH(),NTe=OTe();UTe.exports=BTe?function(t){return BTe(t)}:qTe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return qTe(t)}:NTe?function(t){return NTe(t)}:null});var HTe=we((Lpr,GTe)=>{"use strict";var ZTt=Function.prototype.call,YTt=Object.prototype.hasOwnProperty,KTt=fT();GTe.exports=KTt.call(ZTt,YTt)});var nD=we((Ppr,KTe)=>{"use strict";var Jf,JTt=GH(),$Tt=BAe(),QTt=NAe(),eSt=VAe(),tSt=HAe(),pT=HH(),dT=uT(),rSt=ZAe(),iSt=KAe(),nSt=$Ae(),aSt=eTe(),oSt=rTe(),sSt=nTe(),lSt=oTe(),uSt=fTe(),ZTe=Function,YH=function(e){try{return ZTe('"use strict"; return ('+e+").constructor;")()}catch(t){}},t4=A2(),fSt=e4(),KH=function(){throw new dT},cSt=t4?(function(){try{return arguments.callee,KH}catch(e){try{return t4(arguments,"callee").get}catch(t){return KH}}})():KH,cT=yTe()(),np=VTe(),hSt=jH(),dSt=WH(),YTe=XH(),r4=tD(),hT={},pSt=typeof Uint8Array=="undefined"||!np?Jf:np(Uint8Array),T2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Jf:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Jf:ArrayBuffer,"%ArrayIteratorPrototype%":cT&&np?np([][Symbol.iterator]()):Jf,"%AsyncFromSyncIteratorPrototype%":Jf,"%AsyncFunction%":hT,"%AsyncGenerator%":hT,"%AsyncGeneratorFunction%":hT,"%AsyncIteratorPrototype%":hT,"%Atomics%":typeof Atomics=="undefined"?Jf:Atomics,"%BigInt%":typeof BigInt=="undefined"?Jf:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Jf:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Jf:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Jf:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Tt,"%eval%":eval,"%EvalError%":QTt,"%Float16Array%":typeof Float16Array=="undefined"?Jf:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Jf:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Jf:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Jf:FinalizationRegistry,"%Function%":ZTe,"%GeneratorFunction%":hT,"%Int8Array%":typeof Int8Array=="undefined"?Jf:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Jf:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Jf:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cT&&np?np(np([][Symbol.iterator]())):Jf,"%JSON%":typeof JSON=="object"?JSON:Jf,"%Map%":typeof Map=="undefined"?Jf:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!cT||!np?Jf:np(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":JTt,"%Object.getOwnPropertyDescriptor%":t4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Jf:Promise,"%Proxy%":typeof Proxy=="undefined"?Jf:Proxy,"%RangeError%":eSt,"%ReferenceError%":tSt,"%Reflect%":typeof Reflect=="undefined"?Jf:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Jf:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!cT||!np?Jf:np(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Jf:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cT&&np?np(""[Symbol.iterator]()):Jf,"%Symbol%":cT?Symbol:Jf,"%SyntaxError%":pT,"%ThrowTypeError%":cSt,"%TypedArray%":pSt,"%TypeError%":dT,"%Uint8Array%":typeof Uint8Array=="undefined"?Jf:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Jf:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Jf:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Jf:Uint32Array,"%URIError%":rSt,"%WeakMap%":typeof WeakMap=="undefined"?Jf:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Jf:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Jf:WeakSet,"%Function.prototype.call%":r4,"%Function.prototype.apply%":YTe,"%Object.defineProperty%":fSt,"%Object.getPrototypeOf%":hSt,"%Math.abs%":iSt,"%Math.floor%":nSt,"%Math.max%":aSt,"%Math.min%":oSt,"%Math.pow%":sSt,"%Math.round%":lSt,"%Math.sign%":uSt,"%Reflect.getPrototypeOf%":dSt};if(np)try{null.error}catch(e){WTe=np(np(e)),T2["%Error.prototype%"]=WTe}var WTe,vSt=function e(t){var r;if(t==="%AsyncFunction%")r=YH("async function () {}");else if(t==="%GeneratorFunction%")r=YH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=YH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&np&&(r=np(i.prototype))}return T2[t]=r,r},jTe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},i4=fT(),rD=HTe(),mSt=i4.call(r4,Array.prototype.concat),ySt=i4.call(YTe,Array.prototype.splice),XTe=i4.call(r4,String.prototype.replace),iD=i4.call(r4,String.prototype.slice),gSt=i4.call(r4,RegExp.prototype.exec),_St=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,xSt=/\\(\\)?/g,bSt=function(t){var r=iD(t,0,1),n=iD(t,-1);if(r==="%"&&n!=="%")throw new pT("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new pT("invalid intrinsic syntax, expected opening `%`");var i=[];return XTe(t,_St,function(a,o,s,u){i[i.length]=s?XTe(u,xSt,"$1"):o||a}),i},wSt=function(t,r){var n=t,i;if(rD(jTe,n)&&(i=jTe[n],n="%"+i[0]+"%"),rD(T2,n)){var a=T2[n];if(a===hT&&(a=vSt(n)),typeof a=="undefined"&&!r)throw new dT("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new pT("intrinsic "+t+" does not exist!")};KTe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new dT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new dT('"allowMissing" argument must be a boolean');if(gSt(/^%?[^%]*%?$/,t)===null)throw new pT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=bSt(t),i=n.length>0?n[0]:"",a=wSt("%"+i+"%",r),o=a.name,s=a.value,u=!1,l=a.alias;l&&(i=l[0],ySt(n,mSt([0,1],l)));for(var f=1,c=!0;f=n.length){var y=t4(s,h);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[h]}else c=rD(s,h),s=s[h];c&&!u&&(T2[o]=s)}}return s}});var eSe=we((zpr,QTe)=>{"use strict";var JTe=e4(),ASt=HH(),vT=uT(),$Te=A2();QTe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new vT("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new vT("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new vT("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new vT("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new vT("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new vT("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!$Te&&$Te(t,r);if(JTe)JTe(t,r,{configurable:o===null&&u?u.configurable:!o,enumerable:i===null&&u?u.enumerable:!i,value:n,writable:a===null&&u?u.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new ASt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var $H=we((Ipr,rSe)=>{"use strict";var JH=e4(),tSe=function(){return!!JH};tSe.hasArrayLengthDefineBug=function(){if(!JH)return null;try{return JH([],"length",{value:1}).length!==1}catch(t){return!0}};rSe.exports=tSe});var sSe=we((Rpr,oSe)=>{"use strict";var TSt=nD(),iSe=eSe(),SSt=$H()(),nSe=A2(),aSe=uT(),MSt=TSt("%Math.floor%");oSe.exports=function(t,r){if(typeof t!="function")throw new aSe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||MSt(r)!==r)throw new aSe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&nSe){var o=nSe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(SSt?iSe(t,"length",r,!0,!0):iSe(t,"length",r)),t}});var n4=we((Dpr,aD)=>{"use strict";var QH=fT(),oD=nD(),ESt=sSe(),kSt=uT(),fSe=oD("%Function.prototype.apply%"),cSe=oD("%Function.prototype.call%"),hSe=oD("%Reflect.apply%",!0)||QH.call(cSe,fSe),lSe=e4(),CSt=oD("%Math.max%");aD.exports=function(t){if(typeof t!="function")throw new kSt("a function is required");var r=hSe(QH,cSe,arguments);return ESt(r,1+CSt(0,t.length-(arguments.length-1)),!0)};var uSe=function(){return hSe(QH,fSe,arguments)};lSe?lSe(aD.exports,"apply",{value:uSe}):aD.exports.apply=uSe});var mT=we((Fpr,vSe)=>{"use strict";var dSe=nD(),pSe=n4(),LSt=pSe(dSe("String.prototype.indexOf"));vSe.exports=function(t,r){var n=dSe(t,!!r);return typeof n=="function"&&LSt(t,".prototype.")>-1?pSe(n):n}});var gSe=we((Opr,ySe)=>{"use strict";var PSt=QE()(),zSt=mT(),eW=zSt("Object.prototype.toString"),sD=function(t){return PSt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:eW(t)==="[object Arguments]"},mSe=function(t){return sD(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&eW(t)!=="[object Array]"&&eW(t.callee)==="[object Function]"},ISt=(function(){return sD(arguments)})();sD.isLegacyArguments=mSe;ySe.exports=ISt?sD:mSe});var bSe=we((Bpr,xSe)=>{"use strict";var RSt=Object.prototype.toString,DSt=Function.prototype.toString,FSt=/^\s*(?:function)?\*/,_Se=QE()(),tW=Object.getPrototypeOf,OSt=function(){if(!_Se)return!1;try{return Function("return function*() {}")()}catch(e){}},rW;xSe.exports=function(t){if(typeof t!="function")return!1;if(FSt.test(DSt.call(t)))return!0;if(!_Se){var r=RSt.call(t);return r==="[object GeneratorFunction]"}if(!tW)return!1;if(typeof rW=="undefined"){var n=OSt();rW=n?tW(n):!1}return tW(t)===rW}});var SSe=we((qpr,TSe)=>{"use strict";var ASe=Function.prototype.toString,yT=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,nW,lD;if(typeof yT=="function"&&typeof Object.defineProperty=="function")try{nW=Object.defineProperty({},"length",{get:function(){throw lD}}),lD={},yT(function(){throw 42},null,nW)}catch(e){e!==lD&&(yT=null)}else yT=null;var BSt=/^\s*class\b/,aW=function(t){try{var r=ASe.call(t);return BSt.test(r)}catch(n){return!1}},iW=function(t){try{return aW(t)?!1:(ASe.call(t),!0)}catch(r){return!1}},uD=Object.prototype.toString,qSt="[object Object]",NSt="[object Function]",USt="[object GeneratorFunction]",VSt="[object HTMLAllCollection]",GSt="[object HTML document.all class]",HSt="[object HTMLCollection]",WSt=typeof Symbol=="function"&&!!Symbol.toStringTag,jSt=!(0 in[,]),oW=function(){return!1};typeof document=="object"&&(wSe=document.all,uD.call(wSe)===uD.call(document.all)&&(oW=function(t){if((jSt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=uD.call(t);return(r===VSt||r===GSt||r===HSt||r===qSt)&&t("")==null}catch(n){}return!1}));var wSe;TSe.exports=yT?function(t){if(oW(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{yT(t,null,nW)}catch(r){if(r!==lD)return!1}return!aW(t)&&iW(t)}:function(t){if(oW(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(WSt)return iW(t);if(aW(t))return!1;var r=uD.call(t);return r!==NSt&&r!==USt&&!/^\[object HTML/.test(r)?!1:iW(t)}});var sW=we((Npr,ESe)=>{"use strict";var XSt=SSe(),ZSt=Object.prototype.toString,MSe=Object.prototype.hasOwnProperty,YSt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),ZSt.call(t)==="[object Array]"?YSt(t,r,i):typeof t=="string"?KSt(t,r,i):JSt(t,r,i)};ESe.exports=$St});var uW=we((Upr,kSe)=>{"use strict";var lW=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],QSt=typeof globalThis=="undefined"?window:globalThis;kSe.exports=function(){for(var t=[],r=0;r{"use strict";var cD=sW(),eMt=uW(),CSe=n4(),hW=mT(),fD=A2(),tMt=hW("Object.prototype.toString"),PSe=QE()(),LSe=typeof globalThis=="undefined"?window:globalThis,cW=eMt(),dW=hW("String.prototype.slice"),fW=Object.getPrototypeOf,rMt=hW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:nMt(t)}return fD?iMt(t):null}});var qSe=we((Gpr,BSe)=>{"use strict";var RSe=sW(),aMt=uW(),vW=mT(),oMt=vW("Object.prototype.toString"),DSe=QE()(),dD=A2(),sMt=typeof globalThis=="undefined"?window:globalThis,FSe=aMt(),lMt=vW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return dD?fMt(t):!1}});var gW=we($f=>{"use strict";var cMt=gSe(),hMt=bSe(),jm=ISe(),NSe=qSe();function gT(e){return e.call.bind(e)}var USe=typeof BigInt!="undefined",VSe=typeof Symbol!="undefined",K0=gT(Object.prototype.toString),dMt=gT(Number.prototype.valueOf),pMt=gT(String.prototype.valueOf),vMt=gT(Boolean.prototype.valueOf);USe&&(GSe=gT(BigInt.prototype.valueOf));var GSe;VSe&&(HSe=gT(Symbol.prototype.valueOf));var HSe;function o4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}$f.isArgumentsObject=cMt;$f.isGeneratorFunction=hMt;$f.isTypedArray=NSe;function mMt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}$f.isPromise=mMt;function yMt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):NSe(e)||jSe(e)}$f.isArrayBufferView=yMt;function gMt(e){return jm(e)==="Uint8Array"}$f.isUint8Array=gMt;function _Mt(e){return jm(e)==="Uint8ClampedArray"}$f.isUint8ClampedArray=_Mt;function xMt(e){return jm(e)==="Uint16Array"}$f.isUint16Array=xMt;function bMt(e){return jm(e)==="Uint32Array"}$f.isUint32Array=bMt;function wMt(e){return jm(e)==="Int8Array"}$f.isInt8Array=wMt;function AMt(e){return jm(e)==="Int16Array"}$f.isInt16Array=AMt;function TMt(e){return jm(e)==="Int32Array"}$f.isInt32Array=TMt;function SMt(e){return jm(e)==="Float32Array"}$f.isFloat32Array=SMt;function MMt(e){return jm(e)==="Float64Array"}$f.isFloat64Array=MMt;function EMt(e){return jm(e)==="BigInt64Array"}$f.isBigInt64Array=EMt;function kMt(e){return jm(e)==="BigUint64Array"}$f.isBigUint64Array=kMt;function pD(e){return K0(e)==="[object Map]"}pD.working=typeof Map!="undefined"&&pD(new Map);function CMt(e){return typeof Map=="undefined"?!1:pD.working?pD(e):e instanceof Map}$f.isMap=CMt;function vD(e){return K0(e)==="[object Set]"}vD.working=typeof Set!="undefined"&&vD(new Set);function LMt(e){return typeof Set=="undefined"?!1:vD.working?vD(e):e instanceof Set}$f.isSet=LMt;function mD(e){return K0(e)==="[object WeakMap]"}mD.working=typeof WeakMap!="undefined"&&mD(new WeakMap);function PMt(e){return typeof WeakMap=="undefined"?!1:mD.working?mD(e):e instanceof WeakMap}$f.isWeakMap=PMt;function yW(e){return K0(e)==="[object WeakSet]"}yW.working=typeof WeakSet!="undefined"&&yW(new WeakSet);function zMt(e){return yW(e)}$f.isWeakSet=zMt;function yD(e){return K0(e)==="[object ArrayBuffer]"}yD.working=typeof ArrayBuffer!="undefined"&&yD(new ArrayBuffer);function WSe(e){return typeof ArrayBuffer=="undefined"?!1:yD.working?yD(e):e instanceof ArrayBuffer}$f.isArrayBuffer=WSe;function gD(e){return K0(e)==="[object DataView]"}gD.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&gD(new DataView(new ArrayBuffer(1),0,1));function jSe(e){return typeof DataView=="undefined"?!1:gD.working?gD(e):e instanceof DataView}$f.isDataView=jSe;var mW=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function a4(e){return K0(e)==="[object SharedArrayBuffer]"}function XSe(e){return typeof mW=="undefined"?!1:(typeof a4.working=="undefined"&&(a4.working=a4(new mW)),a4.working?a4(e):e instanceof mW)}$f.isSharedArrayBuffer=XSe;function IMt(e){return K0(e)==="[object AsyncFunction]"}$f.isAsyncFunction=IMt;function RMt(e){return K0(e)==="[object Map Iterator]"}$f.isMapIterator=RMt;function DMt(e){return K0(e)==="[object Set Iterator]"}$f.isSetIterator=DMt;function FMt(e){return K0(e)==="[object Generator]"}$f.isGeneratorObject=FMt;function OMt(e){return K0(e)==="[object WebAssembly.Module]"}$f.isWebAssemblyCompiledModule=OMt;function ZSe(e){return o4(e,dMt)}$f.isNumberObject=ZSe;function YSe(e){return o4(e,pMt)}$f.isStringObject=YSe;function KSe(e){return o4(e,vMt)}$f.isBooleanObject=KSe;function JSe(e){return USe&&o4(e,GSe)}$f.isBigIntObject=JSe;function $Se(e){return VSe&&o4(e,HSe)}$f.isSymbolObject=$Se;function BMt(e){return ZSe(e)||YSe(e)||KSe(e)||JSe(e)||$Se(e)}$f.isBoxedPrimitive=BMt;function qMt(e){return typeof Uint8Array!="undefined"&&(WSe(e)||XSe(e))}$f.isAnyArrayBuffer=qMt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty($f,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var _W=we((Wpr,QSe)=>{QSe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var SW=we(Qf=>{var eMe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),AW(t)?r.showHidden=t:t&&Qf._extend(r,t),M2(r.showHidden)&&(r.showHidden=!1),M2(r.depth)&&(r.depth=2),M2(r.colors)&&(r.colors=!1),M2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=UMt),wD(r,e,r.depth)}Qf.inspect=V_;V_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};V_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function UMt(e,t){var r=V_.styles[t];return r?"\x1B["+V_.colors[r][0]+"m"+e+"\x1B["+V_.colors[r][1]+"m":e}function VMt(e,t){return e}function GMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function wD(e,t,r){if(e.customInspect&&t&&bD(t.inspect)&&t.inspect!==Qf.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return SD(n)||(n=wD(e,n,r)),n}var i=HMt(e,t);if(i)return i;var a=Object.keys(t),o=GMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),l4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return xW(t);if(a.length===0){if(bD(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(s4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(AD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(l4(t))return xW(t)}var u="",l=!1,f=["{","}"];if(rMe(t)&&(l=!0,f=["[","]"]),bD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(s4(t)&&(u=" "+RegExp.prototype.toString.call(t)),AD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),l4(t)&&(u=" "+xW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return s4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=WMt(e,t,r,o,a):h=a.map(function(d){return wW(e,t,r,o,d,l)}),e.seen.pop(),jMt(h,u,f)}function HMt(e,t){if(M2(t))return e.stylize("undefined","undefined");if(SD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(iMe(t))return e.stylize(""+t,"number");if(AW(t))return e.stylize(""+t,"boolean");if(TD(t))return e.stylize("null","null")}function xW(e){return"["+Error.prototype.toString.call(e)+"]"}function WMt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(l){return" "+l}).join(` `).slice(2):s=` `+s.split(` `).map(function(l){return" "+l}).join(` -`))):s=e.stylize("[Circular]","special")),S2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function DMt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),M2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function jMt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Qf.types=mW();function $Se(e){return Array.isArray(e)}Qf.isArray=$Se;function bW(e){return typeof e=="boolean"}Qf.isBoolean=bW;function wR(e){return e===null}Qf.isNull=wR;function RMt(e){return e==null}Qf.isNullOrUndefined=RMt;function QSe(e){return typeof e=="number"}Qf.isNumber=QSe;function AR(e){return typeof e=="string"}Qf.isString=AR;function FMt(e){return typeof e=="symbol"}Qf.isSymbol=FMt;function S2(e){return e===void 0}Qf.isUndefined=S2;function a4(e){return yT(e)&&wW(e)==="[object RegExp]"}Qf.isRegExp=a4;Qf.types.isRegExp=a4;function yT(e){return typeof e=="object"&&e!==null}Qf.isObject=yT;function bR(e){return yT(e)&&wW(e)==="[object Date]"}Qf.isDate=bR;Qf.types.isDate=bR;function o4(e){return yT(e)&&(wW(e)==="[object Error]"||e instanceof Error)}Qf.isError=o4;Qf.types.isNativeError=o4;function _R(e){return typeof e=="function"}Qf.isFunction=_R;function OMt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Qf.isPrimitive=OMt;Qf.isBuffer=yW();function wW(e){return Object.prototype.toString.call(e)}function _W(e){return e<10?"0"+e.toString(10):e.toString(10)}var BMt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qMt(){var e=new Date,t=[_W(e.getHours()),_W(e.getMinutes()),_W(e.getSeconds())].join(":");return[e.getDate(),BMt[e.getMonth()],t].join(" ")}Qf.log=function(){console.log("%s - %s",qMt(),Qf.format.apply(Qf,arguments))};Qf.inherits=Zg();Qf._extend=function(e,t){if(!t||!yT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function eMe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Qf.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(T2&&t[T2]){var r=t[T2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,T2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(u,l){n=u,i=l}),o=[],s=0;s{"use strict";function tMe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VMt(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return TR.alloc(0);for(var n=TR.allocUnsafe(r>>>0),i=this.head,a=0;i;)YMt(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=TR.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:ZMt,value:function(r,n){return TW(this,VMt({},n,{depth:0,customInspect:!1}))}}]),e}()});var MW=we((Lpr,oMe)=>{"use strict";function KMt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(SW,this,e)):process.nextTick(SW,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(SR,r):(r._writableState.errorEmitted=!0,process.nextTick(aMe,r,a)):process.nextTick(aMe,r,a):t?(process.nextTick(SR,r),t(a)):process.nextTick(SR,r)}),this)}function aMe(e,t){SW(e,t),SR(e)}function SR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function JMt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function SW(e,t){e.emit("error",t)}function $Mt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}oMe.exports={destroy:KMt,undestroy:JMt,errorOrDestroy:$Mt}});var M2=we((Ppr,uMe)=>{"use strict";function QMt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var lMe={};function J0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){QMt(o,a);function o(s,u,l){return a.call(this,n(s,u,l))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,lMe[e]=i}function sMe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function e5t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function t5t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function r5t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}J0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);J0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&e5t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(t5t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(sMe(t,"type"));else{var a=r5t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(sMe(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);J0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");J0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});J0("ERR_STREAM_PREMATURE_CLOSE","Premature close");J0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});J0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");J0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");J0("ERR_STREAM_WRITE_AFTER_END","write after end");J0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);J0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);J0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");uMe.exports.codes=lMe});var EW=we((zpr,fMe)=>{"use strict";var i5t=M2().codes.ERR_INVALID_OPT_VALUE;function n5t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function a5t(e,t,r,n){var i=n5t(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new i5t(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}fMe.exports={getHighWaterMark:a5t}});var hMe=we((Ipr,cMe)=>{cMe.exports=o5t;function o5t(e,t){if(kW("noDeprecation"))return e;var r=!1;function n(){if(!r){if(kW("throwDeprecation"))throw new Error(t);kW("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function kW(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var PW=we((Dpr,gMe)=>{"use strict";gMe.exports=Wh;function pMe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){I5t(t,e)}}var gT;Wh.WritableState=l4;var s5t={deprecate:hMe()},vMe=LH(),ER=b2().Buffer,l5t=window.Uint8Array||function(){};function u5t(e){return ER.from(e)}function f5t(e){return ER.isBuffer(e)||e instanceof l5t}var LW=MW(),c5t=EW(),h5t=c5t.getHighWaterMark,V_=M2().codes,d5t=V_.ERR_INVALID_ARG_TYPE,p5t=V_.ERR_METHOD_NOT_IMPLEMENTED,v5t=V_.ERR_MULTIPLE_CALLBACK,m5t=V_.ERR_STREAM_CANNOT_PIPE,y5t=V_.ERR_STREAM_DESTROYED,g5t=V_.ERR_STREAM_NULL_VALUES,_5t=V_.ERR_STREAM_WRITE_AFTER_END,x5t=V_.ERR_UNKNOWN_ENCODING,_T=LW.errorOrDestroy;Zg()(Wh,vMe);function b5t(){}function l4(e,t,r){gT=gT||E2(),e=e||{},typeof r!="boolean"&&(r=t instanceof gT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h5t(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){k5t(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new pMe(this)}l4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(l4.prototype,"buffer",{get:s5t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var MR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(MR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Wh,Symbol.hasInstance,{value:function(t){return MR.call(this,t)?!0:this!==Wh?!1:t&&t._writableState instanceof l4}})):MR=function(t){return t instanceof this};function Wh(e){gT=gT||E2();var t=this instanceof gT;if(!t&&!MR.call(Wh,this))return new Wh(e);this._writableState=new l4(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),vMe.call(this)}Wh.prototype.pipe=function(){_T(this,new m5t)};function w5t(e,t){var r=new _5t;_T(e,r),process.nextTick(t,r)}function A5t(e,t,r,n){var i;return r===null?i=new g5t:typeof r!="string"&&!t.objectMode&&(i=new d5t("chunk",["string","Buffer"],r)),i?(_T(e,i),process.nextTick(n,i),!1):!0}Wh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&f5t(e);return a&&!ER.isBuffer(e)&&(e=u5t(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=b5t),n.ending?w5t(this,r):(a||A5t(this,n,e,r))&&(n.pendingcb++,i=S5t(this,n,a,e,t,r)),i};Wh.prototype.cork=function(){this._writableState.corked++};Wh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&mMe(this,e))};Wh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new x5t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Wh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T5t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=ER.from(t,r)),t}Object.defineProperty(Wh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S5t(e,t,r,n,i,a){if(!r){var o=T5t(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length{"use strict";var D5t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};xMe.exports=jy;var _Me=DW(),IW=PW();Zg()(jy,_Me);for(zW=D5t(IW.prototype),kR=0;kR{var LR=b2(),Xy=LR.Buffer;function bMe(e,t){for(var r in e)t[r]=e[r]}Xy.from&&Xy.alloc&&Xy.allocUnsafe&&Xy.allocUnsafeSlow?wMe.exports=LR:(bMe(LR,RW),RW.Buffer=k2);function k2(e,t,r){return Xy(e,t,r)}k2.prototype=Object.create(Xy.prototype);bMe(Xy,k2);k2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Xy(e,t,r)};k2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Xy(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};k2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xy(e)};k2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return LR.SlowBuffer(e)}});var BW=we(SMe=>{"use strict";var OW=AMe().Buffer,TMe=OW.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function O5t(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function B5t(e){var t=O5t(e);if(typeof t!="string"&&(OW.isEncoding===TMe||!TMe(e)))throw new Error("Unknown encoding: "+e);return t||e}SMe.StringDecoder=u4;function u4(e){this.encoding=B5t(e);var t;switch(this.encoding){case"utf16le":this.text=H5t,this.end=W5t,t=4;break;case"utf8":this.fillLast=U5t,t=4;break;case"base64":this.text=j5t,this.end=X5t,t=3;break;default:this.write=Z5t,this.end=Y5t;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=OW.allocUnsafe(t)}u4.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function q5t(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function N5t(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function U5t(e){var t=this.lastTotal-this.lastNeed,r=N5t(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function V5t(e,t){var r=q5t(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function G5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function H5t(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function W5t(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function j5t(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function X5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Z5t(e){return e.toString(this.encoding)}function Y5t(e){return e&&e.length?this.write(e):""}});var PR=we((Opr,kMe)=>{"use strict";var MMe=M2().codes.ERR_STREAM_PREMATURE_CLOSE;function K5t(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var zR;function G_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Q5t=PR(),H_=Symbol("lastResolve"),C2=Symbol("lastReject"),f4=Symbol("error"),IR=Symbol("ended"),L2=Symbol("lastPromise"),qW=Symbol("handlePromise"),P2=Symbol("stream");function W_(e,t){return{value:e,done:t}}function eEt(e){var t=e[H_];if(t!==null){var r=e[P2].read();r!==null&&(e[L2]=null,e[H_]=null,e[C2]=null,t(W_(r,!1)))}}function tEt(e){process.nextTick(eEt,e)}function rEt(e,t){return function(r,n){e.then(function(){if(t[IR]){r(W_(void 0,!0));return}t[qW](r,n)},n)}}var iEt=Object.getPrototypeOf(function(){}),nEt=Object.setPrototypeOf((zR={get stream(){return this[P2]},next:function(){var t=this,r=this[f4];if(r!==null)return Promise.reject(r);if(this[IR])return Promise.resolve(W_(void 0,!0));if(this[P2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[f4]?s(t[f4]):o(W_(void 0,!0))})});var n=this[L2],i;if(n)i=new Promise(rEt(n,this));else{var a=this[P2].read();if(a!==null)return Promise.resolve(W_(a,!1));i=new Promise(this[qW])}return this[L2]=i,i}},G_(zR,Symbol.asyncIterator,function(){return this}),G_(zR,"return",function(){var t=this;return new Promise(function(r,n){t[P2].destroy(null,function(i){if(i){n(i);return}r(W_(void 0,!0))})})}),zR),iEt),aEt=function(t){var r,n=Object.create(nEt,(r={},G_(r,P2,{value:t,writable:!0}),G_(r,H_,{value:null,writable:!0}),G_(r,C2,{value:null,writable:!0}),G_(r,f4,{value:null,writable:!0}),G_(r,IR,{value:t._readableState.endEmitted,writable:!0}),G_(r,qW,{value:function(a,o){var s=n[P2].read();s?(n[L2]=null,n[H_]=null,n[C2]=null,a(W_(s,!1))):(n[H_]=a,n[C2]=o)},writable:!0}),r));return n[L2]=null,Q5t(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[C2];a!==null&&(n[L2]=null,n[H_]=null,n[C2]=null,a(i)),n[f4]=i;return}var o=n[H_];o!==null&&(n[L2]=null,n[H_]=null,n[C2]=null,o(W_(void 0,!0))),n[IR]=!0}),t.on("readable",tEt.bind(null,n)),n};CMe.exports=aEt});var zMe=we((qpr,PMe)=>{PMe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var DW=we((Upr,VMe)=>{"use strict";VMe.exports=hc;var xT;hc.ReadableState=FMe;var Npr=Sb().EventEmitter,RMe=function(t,r){return t.listeners(r).length},h4=LH(),DR=b2().Buffer,oEt=window.Uint8Array||function(){};function sEt(e){return DR.from(e)}function lEt(e){return DR.isBuffer(e)||e instanceof oEt}var NW=AW(),Yf;NW&&NW.debuglog?Yf=NW.debuglog("stream"):Yf=function(){};var uEt=nMe(),XW=MW(),fEt=EW(),cEt=fEt.getHighWaterMark,RR=M2().codes,hEt=RR.ERR_INVALID_ARG_TYPE,dEt=RR.ERR_STREAM_PUSH_AFTER_EOF,pEt=RR.ERR_METHOD_NOT_IMPLEMENTED,vEt=RR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,bT,UW,VW;Zg()(hc,h4);var c4=XW.errorOrDestroy,GW=["error","close","destroy","pause","resume"];function mEt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function FMe(e,t,r){xT=xT||E2(),e=e||{},typeof r!="boolean"&&(r=t instanceof xT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=cEt(this,e,"readableHighWaterMark",r),this.buffer=new uEt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(bT||(bT=BW().StringDecoder),this.decoder=new bT(e.encoding),this.encoding=e.encoding)}function hc(e){if(xT=xT||E2(),!(this instanceof hc))return new hc(e);var t=this instanceof xT;this._readableState=new FMe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),h4.call(this)}Object.defineProperty(hc.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});hc.prototype.destroy=XW.destroy;hc.prototype._undestroy=XW.undestroy;hc.prototype._destroy=function(e,t){t(e)};hc.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=DR.from(e,t),t=""),n=!0),OMe(this,e,t,!1,n)};hc.prototype.unshift=function(e){return OMe(this,e,null,!0,!1)};function OMe(e,t,r,n,i){Yf("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,_Et(e,a);else{var o;if(i||(o=yEt(a,t)),o)c4(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==DR.prototype&&(t=sEt(t)),n)a.endEmitted?c4(e,new vEt):HW(e,a,t,!0);else if(a.ended)c4(e,new dEt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?HW(e,a,t,!1):jW(e,a)):HW(e,a,t,!1)}else n||(a.reading=!1,jW(e,a))}return!a.ended&&(a.length=IMe?e=IMe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function DMe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=gEt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}hc.prototype.read=function(e){Yf("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Yf("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?WW(this):FR(this),null;if(e=DMe(e,t),e===0&&t.ended)return t.length===0&&WW(this),null;var n=t.needReadable;Yf("need readable",n),(t.length===0||t.length-e0?i=NMe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&WW(this)),i!==null&&this.emit("data",i),i};function _Et(e,t){if(Yf("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?FR(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,BMe(e)))}}function FR(e){var t=e._readableState;Yf("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Yf("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(BMe,e))}function BMe(e){var t=e._readableState;Yf("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ZW(e)}function jW(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(xEt,e,t))}function xEt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&UMe(n.pipes,e)!==-1)&&!l&&(Yf("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){Yf("onerror",b),y(),e.removeListener("error",h),RMe(e,"error")===0&&c4(e,b)}mEt(e,"error",h);function d(){e.removeListener("finish",p),y()}e.once("close",d);function p(){Yf("onfinish"),e.removeListener("close",d),y()}e.once("finish",p);function y(){Yf("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Yf("pipe resume"),r.resume()),e};function bEt(e){return function(){var r=e._readableState;Yf("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&RMe(e,"data")&&(r.flowing=!0,ZW(e))}}hc.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Yf("on readable",n.length,n.reading),n.length?FR(this):n.reading||process.nextTick(wEt,this)),r};hc.prototype.addListener=hc.prototype.on;hc.prototype.removeListener=function(e,t){var r=h4.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(qMe,this),r};hc.prototype.removeAllListeners=function(e){var t=h4.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(qMe,this),t};function qMe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function wEt(e){Yf("readable nexttick read 0"),e.read(0)}hc.prototype.resume=function(){var e=this._readableState;return e.flowing||(Yf("resume"),e.flowing=!e.readableListening,AEt(this,e)),e.paused=!1,this};function AEt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(TEt,e,t))}function TEt(e,t){Yf("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ZW(e),t.flowing&&!t.reading&&e.read(0)}hc.prototype.pause=function(){return Yf("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Yf("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ZW(e){var t=e._readableState;for(Yf("flow",t.flowing);t.flowing&&e.read()!==null;);}hc.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Yf("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Yf("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function WW(e){var t=e._readableState;Yf("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(SEt,t,e))}function SEt(e,t){if(Yf("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(hc.from=function(e,t){return VW===void 0&&(VW=zMe()),VW(hc,e,t)});function UMe(e,t){for(var r=0,n=e.length;r{"use strict";HMe.exports=Kg;var OR=M2().codes,MEt=OR.ERR_METHOD_NOT_IMPLEMENTED,EEt=OR.ERR_MULTIPLE_CALLBACK,kEt=OR.ERR_TRANSFORM_ALREADY_TRANSFORMING,CEt=OR.ERR_TRANSFORM_WITH_LENGTH_0,BR=E2();Zg()(Kg,BR);function LEt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new EEt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";jMe.exports=d4;var WMe=YW();Zg()(d4,WMe);function d4(e){if(!(this instanceof d4))return new d4(e);WMe.call(this,e)}d4.prototype._transform=function(e,t,r){r(null,e)}});var $Me=we((Hpr,JMe)=>{"use strict";var KW;function zEt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var KMe=M2().codes,IEt=KMe.ERR_MISSING_ARGS,DEt=KMe.ERR_STREAM_DESTROYED;function ZMe(e){if(e)throw e}function REt(e){return e.setHeader&&typeof e.abort=="function"}function FEt(e,t,r,n){n=zEt(n);var i=!1;e.on("close",function(){i=!0}),KW===void 0&&(KW=PR()),KW(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,REt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new DEt("pipe"))}}}function YMe(e){e()}function OEt(e,t){return e.pipe(t)}function BEt(e){return!e.length||typeof e[e.length-1]!="function"?ZMe:e.pop()}function qEt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return FEt(o,u,l,function(f){i||(i=f),f&&a.forEach(YMe),!u&&(a.forEach(YMe),n(i))})});return t.reduce(OEt)}JMe.exports=qEt});var e5e=we((Wpr,QMe)=>{QMe.exports=$0;var JW=Sb().EventEmitter,NEt=Zg();NEt($0,JW);$0.Readable=DW();$0.Writable=PW();$0.Duplex=E2();$0.Transform=YW();$0.PassThrough=XMe();$0.finished=PR();$0.pipeline=$Me();$0.Stream=$0;function $0(){JW.call(this)}$0.prototype.pipe=function(e,t){var r=this;function n(f){e.writable&&e.write(f)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function u(f){if(l(),JW.listenerCount(this,"error")===0)throw f}r.on("error",u),e.on("error",u);function l(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}});var AT=we(ec=>{var t5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),tj(t)?r.showHidden=t:t&&ec._extend(r,t),I2(r.showHidden)&&(r.showHidden=!1),I2(r.depth)&&(r.depth=2),I2(r.colors)&&(r.colors=!1),I2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=VEt),VR(r,e,r.depth)}ec.inspect=j_;j_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};j_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function VEt(e,t){var r=j_.styles[t];return r?"\x1B["+j_.colors[r][0]+"m"+e+"\x1B["+j_.colors[r][1]+"m":e}function GEt(e,t){return e}function HEt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function VR(e,t,r){if(e.customInspect&&t&&UR(t.inspect)&&t.inspect!==ec.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return WR(n)||(n=VR(e,n,r)),n}var i=WEt(e,t);if(i)return i;var a=Object.keys(t),o=HEt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),v4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return $W(t);if(a.length===0){if(UR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(p4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(GR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(v4(t))return $W(t)}var u="",l=!1,f=["{","}"];if(i5e(t)&&(l=!0,f=["[","]"]),UR(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(p4(t)&&(u=" "+RegExp.prototype.toString.call(t)),GR(t)&&(u=" "+Date.prototype.toUTCString.call(t)),v4(t)&&(u=" "+$W(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return p4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=jEt(e,t,r,o,a):h=a.map(function(d){return ej(e,t,r,o,d,l)}),e.seen.pop(),XEt(h,u,f)}function WEt(e,t){if(I2(t))return e.stylize("undefined","undefined");if(WR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(n5e(t))return e.stylize(""+t,"number");if(tj(t))return e.stylize(""+t,"boolean");if(HR(t))return e.stylize("null","null")}function $W(e){return"["+Error.prototype.toString.call(e)+"]"}function jEt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";function aMe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function e5t(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return MD.alloc(0);for(var n=MD.allocUnsafe(r>>>0),i=this.head,a=0;i;)s5t(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=MD.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:o5t,value:function(r,n){return MW(this,e5t({},n,{depth:0,customInspect:!1}))}}]),e})()});var kW=we((Zpr,fMe)=>{"use strict";function l5t(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(EW,this,e)):process.nextTick(EW,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(ED,r):(r._writableState.errorEmitted=!0,process.nextTick(uMe,r,a)):process.nextTick(uMe,r,a):t?(process.nextTick(ED,r),t(a)):process.nextTick(ED,r)}),this)}function uMe(e,t){EW(e,t),ED(e)}function ED(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function u5t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function EW(e,t){e.emit("error",t)}function f5t(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}fMe.exports={destroy:l5t,undestroy:u5t,errorOrDestroy:f5t}});var E2=we((Ypr,dMe)=>{"use strict";function c5t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var hMe={};function J0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=(function(a){c5t(o,a);function o(s,u,l){return a.call(this,n(s,u,l))||this}return o})(r);i.prototype.name=r.name,i.prototype.code=e,hMe[e]=i}function cMe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function h5t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function d5t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function p5t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}J0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);J0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&h5t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(d5t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(cMe(t,"type"));else{var a=p5t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(cMe(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);J0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");J0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});J0("ERR_STREAM_PREMATURE_CLOSE","Premature close");J0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});J0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");J0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");J0("ERR_STREAM_WRITE_AFTER_END","write after end");J0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);J0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);J0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");dMe.exports.codes=hMe});var CW=we((Kpr,pMe)=>{"use strict";var v5t=E2().codes.ERR_INVALID_OPT_VALUE;function m5t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function y5t(e,t,r,n){var i=m5t(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new v5t(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}pMe.exports={getHighWaterMark:y5t}});var mMe=we((Jpr,vMe)=>{vMe.exports=g5t;function g5t(e,t){if(LW("noDeprecation"))return e;var r=!1;function n(){if(!r){if(LW("throwDeprecation"))throw new Error(t);LW("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function LW(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var IW=we(($pr,wMe)=>{"use strict";wMe.exports=Wh;function gMe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){W5t(t,e)}}var xT;Wh.WritableState=f4;var _5t={deprecate:mMe()},_Me=zH(),CD=w2().Buffer,x5t=window.Uint8Array||function(){};function b5t(e){return CD.from(e)}function w5t(e){return CD.isBuffer(e)||e instanceof x5t}var zW=kW(),A5t=CW(),T5t=A5t.getHighWaterMark,G_=E2().codes,S5t=G_.ERR_INVALID_ARG_TYPE,M5t=G_.ERR_METHOD_NOT_IMPLEMENTED,E5t=G_.ERR_MULTIPLE_CALLBACK,k5t=G_.ERR_STREAM_CANNOT_PIPE,C5t=G_.ERR_STREAM_DESTROYED,L5t=G_.ERR_STREAM_NULL_VALUES,P5t=G_.ERR_STREAM_WRITE_AFTER_END,z5t=G_.ERR_UNKNOWN_ENCODING,bT=zW.errorOrDestroy;Yg()(Wh,_Me);function I5t(){}function f4(e,t,r){xT=xT||k2(),e=e||{},typeof r!="boolean"&&(r=t instanceof xT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=T5t(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){N5t(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new gMe(this)}f4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(f4.prototype,"buffer",{get:_5t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var kD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(kD=Function.prototype[Symbol.hasInstance],Object.defineProperty(Wh,Symbol.hasInstance,{value:function(t){return kD.call(this,t)?!0:this!==Wh?!1:t&&t._writableState instanceof f4}})):kD=function(t){return t instanceof this};function Wh(e){xT=xT||k2();var t=this instanceof xT;if(!t&&!kD.call(Wh,this))return new Wh(e);this._writableState=new f4(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),_Me.call(this)}Wh.prototype.pipe=function(){bT(this,new k5t)};function R5t(e,t){var r=new P5t;bT(e,r),process.nextTick(t,r)}function D5t(e,t,r,n){var i;return r===null?i=new L5t:typeof r!="string"&&!t.objectMode&&(i=new S5t("chunk",["string","Buffer"],r)),i?(bT(e,i),process.nextTick(n,i),!1):!0}Wh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&w5t(e);return a&&!CD.isBuffer(e)&&(e=b5t(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=I5t),n.ending?R5t(this,r):(a||D5t(this,n,e,r))&&(n.pendingcb++,i=O5t(this,n,a,e,t,r)),i};Wh.prototype.cork=function(){this._writableState.corked++};Wh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&xMe(this,e))};Wh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new z5t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Wh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function F5t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=CD.from(t,r)),t}Object.defineProperty(Wh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function O5t(e,t,r,n,i,a){if(!r){var o=F5t(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length{"use strict";var j5t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};TMe.exports=jy;var AMe=FW(),DW=IW();Yg()(jy,AMe);for(RW=j5t(DW.prototype),LD=0;LD{var zD=w2(),Xy=zD.Buffer;function SMe(e,t){for(var r in e)t[r]=e[r]}Xy.from&&Xy.alloc&&Xy.allocUnsafe&&Xy.allocUnsafeSlow?MMe.exports=zD:(SMe(zD,OW),OW.Buffer=C2);function C2(e,t,r){return Xy(e,t,r)}C2.prototype=Object.create(Xy.prototype);SMe(Xy,C2);C2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Xy(e,t,r)};C2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Xy(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};C2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xy(e)};C2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return zD.SlowBuffer(e)}});var NW=we(CMe=>{"use strict";var qW=EMe().Buffer,kMe=qW.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Y5t(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function K5t(e){var t=Y5t(e);if(typeof t!="string"&&(qW.isEncoding===kMe||!kMe(e)))throw new Error("Unknown encoding: "+e);return t||e}CMe.StringDecoder=c4;function c4(e){this.encoding=K5t(e);var t;switch(this.encoding){case"utf16le":this.text=rEt,this.end=iEt,t=4;break;case"utf8":this.fillLast=Q5t,t=4;break;case"base64":this.text=nEt,this.end=aEt,t=3;break;default:this.write=oEt,this.end=sEt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=qW.allocUnsafe(t)}c4.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function J5t(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function $5t(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Q5t(e){var t=this.lastTotal-this.lastNeed,r=$5t(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function eEt(e,t){var r=J5t(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function tEt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function rEt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function iEt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function nEt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function aEt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function oEt(e){return e.toString(this.encoding)}function sEt(e){return e&&e.length?this.write(e):""}});var ID=we((tvr,zMe)=>{"use strict";var LMe=E2().codes.ERR_STREAM_PREMATURE_CLOSE;function lEt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var RD;function H_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cEt=ID(),W_=Symbol("lastResolve"),L2=Symbol("lastReject"),h4=Symbol("error"),DD=Symbol("ended"),P2=Symbol("lastPromise"),UW=Symbol("handlePromise"),z2=Symbol("stream");function j_(e,t){return{value:e,done:t}}function hEt(e){var t=e[W_];if(t!==null){var r=e[z2].read();r!==null&&(e[P2]=null,e[W_]=null,e[L2]=null,t(j_(r,!1)))}}function dEt(e){process.nextTick(hEt,e)}function pEt(e,t){return function(r,n){e.then(function(){if(t[DD]){r(j_(void 0,!0));return}t[UW](r,n)},n)}}var vEt=Object.getPrototypeOf(function(){}),mEt=Object.setPrototypeOf((RD={get stream(){return this[z2]},next:function(){var t=this,r=this[h4];if(r!==null)return Promise.reject(r);if(this[DD])return Promise.resolve(j_(void 0,!0));if(this[z2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[h4]?s(t[h4]):o(j_(void 0,!0))})});var n=this[P2],i;if(n)i=new Promise(pEt(n,this));else{var a=this[z2].read();if(a!==null)return Promise.resolve(j_(a,!1));i=new Promise(this[UW])}return this[P2]=i,i}},H_(RD,Symbol.asyncIterator,function(){return this}),H_(RD,"return",function(){var t=this;return new Promise(function(r,n){t[z2].destroy(null,function(i){if(i){n(i);return}r(j_(void 0,!0))})})}),RD),vEt),yEt=function(t){var r,n=Object.create(mEt,(r={},H_(r,z2,{value:t,writable:!0}),H_(r,W_,{value:null,writable:!0}),H_(r,L2,{value:null,writable:!0}),H_(r,h4,{value:null,writable:!0}),H_(r,DD,{value:t._readableState.endEmitted,writable:!0}),H_(r,UW,{value:function(a,o){var s=n[z2].read();s?(n[P2]=null,n[W_]=null,n[L2]=null,a(j_(s,!1))):(n[W_]=a,n[L2]=o)},writable:!0}),r));return n[P2]=null,cEt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[L2];a!==null&&(n[P2]=null,n[W_]=null,n[L2]=null,a(i)),n[h4]=i;return}var o=n[W_];o!==null&&(n[P2]=null,n[W_]=null,n[L2]=null,o(j_(void 0,!0))),n[DD]=!0}),t.on("readable",dEt.bind(null,n)),n};IMe.exports=yEt});var FMe=we((ivr,DMe)=>{DMe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var FW=we((avr,jMe)=>{"use strict";jMe.exports=hc;var wT;hc.ReadableState=NMe;var nvr=Sb().EventEmitter,qMe=function(t,r){return t.listeners(r).length},p4=zH(),FD=w2().Buffer,gEt=window.Uint8Array||function(){};function _Et(e){return FD.from(e)}function xEt(e){return FD.isBuffer(e)||e instanceof gEt}var VW=SW(),Yf;VW&&VW.debuglog?Yf=VW.debuglog("stream"):Yf=function(){};var bEt=lMe(),YW=kW(),wEt=CW(),AEt=wEt.getHighWaterMark,OD=E2().codes,TEt=OD.ERR_INVALID_ARG_TYPE,SEt=OD.ERR_STREAM_PUSH_AFTER_EOF,MEt=OD.ERR_METHOD_NOT_IMPLEMENTED,EEt=OD.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,AT,GW,HW;Yg()(hc,p4);var d4=YW.errorOrDestroy,WW=["error","close","destroy","pause","resume"];function kEt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function NMe(e,t,r){wT=wT||k2(),e=e||{},typeof r!="boolean"&&(r=t instanceof wT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=AEt(this,e,"readableHighWaterMark",r),this.buffer=new bEt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(AT||(AT=NW().StringDecoder),this.decoder=new AT(e.encoding),this.encoding=e.encoding)}function hc(e){if(wT=wT||k2(),!(this instanceof hc))return new hc(e);var t=this instanceof wT;this._readableState=new NMe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),p4.call(this)}Object.defineProperty(hc.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});hc.prototype.destroy=YW.destroy;hc.prototype._undestroy=YW.undestroy;hc.prototype._destroy=function(e,t){t(e)};hc.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=FD.from(e,t),t=""),n=!0),UMe(this,e,t,!1,n)};hc.prototype.unshift=function(e){return UMe(this,e,null,!0,!1)};function UMe(e,t,r,n,i){Yf("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,PEt(e,a);else{var o;if(i||(o=CEt(a,t)),o)d4(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==FD.prototype&&(t=_Et(t)),n)a.endEmitted?d4(e,new EEt):jW(e,a,t,!0);else if(a.ended)d4(e,new SEt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?jW(e,a,t,!1):ZW(e,a)):jW(e,a,t,!1)}else n||(a.reading=!1,ZW(e,a))}return!a.ended&&(a.length=OMe?e=OMe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function BMe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=LEt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}hc.prototype.read=function(e){Yf("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Yf("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?XW(this):BD(this),null;if(e=BMe(e,t),e===0&&t.ended)return t.length===0&&XW(this),null;var n=t.needReadable;Yf("need readable",n),(t.length===0||t.length-e0?i=HMe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&XW(this)),i!==null&&this.emit("data",i),i};function PEt(e,t){if(Yf("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?BD(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,VMe(e)))}}function BD(e){var t=e._readableState;Yf("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Yf("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(VMe,e))}function VMe(e){var t=e._readableState;Yf("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,KW(e)}function ZW(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(zEt,e,t))}function zEt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&WMe(n.pipes,e)!==-1)&&!l&&(Yf("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){Yf("onerror",b),y(),e.removeListener("error",h),qMe(e,"error")===0&&d4(e,b)}kEt(e,"error",h);function d(){e.removeListener("finish",p),y()}e.once("close",d);function p(){Yf("onfinish"),e.removeListener("close",d),y()}e.once("finish",p);function y(){Yf("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Yf("pipe resume"),r.resume()),e};function IEt(e){return function(){var r=e._readableState;Yf("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&qMe(e,"data")&&(r.flowing=!0,KW(e))}}hc.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Yf("on readable",n.length,n.reading),n.length?BD(this):n.reading||process.nextTick(REt,this)),r};hc.prototype.addListener=hc.prototype.on;hc.prototype.removeListener=function(e,t){var r=p4.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(GMe,this),r};hc.prototype.removeAllListeners=function(e){var t=p4.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(GMe,this),t};function GMe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function REt(e){Yf("readable nexttick read 0"),e.read(0)}hc.prototype.resume=function(){var e=this._readableState;return e.flowing||(Yf("resume"),e.flowing=!e.readableListening,DEt(this,e)),e.paused=!1,this};function DEt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(FEt,e,t))}function FEt(e,t){Yf("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),KW(e),t.flowing&&!t.reading&&e.read(0)}hc.prototype.pause=function(){return Yf("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Yf("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function KW(e){var t=e._readableState;for(Yf("flow",t.flowing);t.flowing&&e.read()!==null;);}hc.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Yf("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Yf("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(s){return function(){return e[s].apply(e,arguments)}})(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function XW(e){var t=e._readableState;Yf("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(OEt,t,e))}function OEt(e,t){if(Yf("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(hc.from=function(e,t){return HW===void 0&&(HW=FMe()),HW(hc,e,t)});function WMe(e,t){for(var r=0,n=e.length;r{"use strict";ZMe.exports=Jg;var qD=E2().codes,BEt=qD.ERR_METHOD_NOT_IMPLEMENTED,qEt=qD.ERR_MULTIPLE_CALLBACK,NEt=qD.ERR_TRANSFORM_ALREADY_TRANSFORMING,UEt=qD.ERR_TRANSFORM_WITH_LENGTH_0,ND=k2();Yg()(Jg,ND);function VEt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new qEt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";KMe.exports=v4;var YMe=JW();Yg()(v4,YMe);function v4(e){if(!(this instanceof v4))return new v4(e);YMe.call(this,e)}v4.prototype._transform=function(e,t,r){r(null,e)}});var r5e=we((lvr,t5e)=>{"use strict";var $W;function HEt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var e5e=E2().codes,WEt=e5e.ERR_MISSING_ARGS,jEt=e5e.ERR_STREAM_DESTROYED;function $Me(e){if(e)throw e}function XEt(e){return e.setHeader&&typeof e.abort=="function"}function ZEt(e,t,r,n){n=HEt(n);var i=!1;e.on("close",function(){i=!0}),$W===void 0&&($W=ID()),$W(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,XEt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new jEt("pipe"))}}}function QMe(e){e()}function YEt(e,t){return e.pipe(t)}function KEt(e){return!e.length||typeof e[e.length-1]!="function"?$Me:e.pop()}function JEt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return ZEt(o,u,l,function(f){i||(i=f),f&&a.forEach(QMe),!u&&(a.forEach(QMe),n(i))})});return t.reduce(YEt)}t5e.exports=JEt});var n5e=we((uvr,i5e)=>{i5e.exports=$0;var QW=Sb().EventEmitter,$Et=Yg();$Et($0,QW);$0.Readable=FW();$0.Writable=IW();$0.Duplex=k2();$0.Transform=JW();$0.PassThrough=JMe();$0.finished=ID();$0.pipeline=r5e();$0.Stream=$0;function $0(){QW.call(this)}$0.prototype.pipe=function(e,t){var r=this;function n(f){e.writable&&e.write(f)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function u(f){if(l(),QW.listenerCount(this,"error")===0)throw f}r.on("error",u),e.on("error",u);function l(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}});var ST=we(ec=>{var a5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),ij(t)?r.showHidden=t:t&&ec._extend(r,t),R2(r.showHidden)&&(r.showHidden=!1),R2(r.depth)&&(r.depth=2),R2(r.colors)&&(r.colors=!1),R2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=e4t),HD(r,e,r.depth)}ec.inspect=X_;X_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};X_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function e4t(e,t){var r=X_.styles[t];return r?"\x1B["+X_.colors[r][0]+"m"+e+"\x1B["+X_.colors[r][1]+"m":e}function t4t(e,t){return e}function r4t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function HD(e,t,r){if(e.customInspect&&t&&GD(t.inspect)&&t.inspect!==ec.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return XD(n)||(n=HD(e,n,r)),n}var i=i4t(e,t);if(i)return i;var a=Object.keys(t),o=r4t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),y4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return ej(t);if(a.length===0){if(GD(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(m4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(WD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(y4(t))return ej(t)}var u="",l=!1,f=["{","}"];if(s5e(t)&&(l=!0,f=["[","]"]),GD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(m4(t)&&(u=" "+RegExp.prototype.toString.call(t)),WD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),y4(t)&&(u=" "+ej(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return m4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=n4t(e,t,r,o,a):h=a.map(function(d){return rj(e,t,r,o,d,l)}),e.seen.pop(),a4t(h,u,f)}function i4t(e,t){if(R2(t))return e.stylize("undefined","undefined");if(XD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(l5e(t))return e.stylize(""+t,"number");if(ij(t))return e.stylize(""+t,"boolean");if(jD(t))return e.stylize("null","null")}function ej(e){return"["+Error.prototype.toString.call(e)+"]"}function n4t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(l){return" "+l}).join(` `).slice(2):s=` `+s.split(` `).map(function(l){return" "+l}).join(` -`))):s=e.stylize("[Circular]","special")),I2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function XEt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),R2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function a4t(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}ec.types=mW();function i5e(e){return Array.isArray(e)}ec.isArray=i5e;function tj(e){return typeof e=="boolean"}ec.isBoolean=tj;function HR(e){return e===null}ec.isNull=HR;function ZEt(e){return e==null}ec.isNullOrUndefined=ZEt;function n5e(e){return typeof e=="number"}ec.isNumber=n5e;function WR(e){return typeof e=="string"}ec.isString=WR;function YEt(e){return typeof e=="symbol"}ec.isSymbol=YEt;function I2(e){return e===void 0}ec.isUndefined=I2;function p4(e){return wT(e)&&rj(e)==="[object RegExp]"}ec.isRegExp=p4;ec.types.isRegExp=p4;function wT(e){return typeof e=="object"&&e!==null}ec.isObject=wT;function GR(e){return wT(e)&&rj(e)==="[object Date]"}ec.isDate=GR;ec.types.isDate=GR;function v4(e){return wT(e)&&(rj(e)==="[object Error]"||e instanceof Error)}ec.isError=v4;ec.types.isNativeError=v4;function UR(e){return typeof e=="function"}ec.isFunction=UR;function KEt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ec.isPrimitive=KEt;ec.isBuffer=yW();function rj(e){return Object.prototype.toString.call(e)}function QW(e){return e<10?"0"+e.toString(10):e.toString(10)}var JEt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $Et(){var e=new Date,t=[QW(e.getHours()),QW(e.getMinutes()),QW(e.getSeconds())].join(":");return[e.getDate(),JEt[e.getMonth()],t].join(" ")}ec.log=function(){console.log("%s - %s",$Et(),ec.format.apply(ec,arguments))};ec.inherits=Zg();ec._extend=function(e,t){if(!t||!wT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function a5e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var z2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ec.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(z2&&t[z2]){var r=t[z2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,z2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(u,l){n=u,i=l}),o=[],s=0;s{"use strict";function X_(e){"@babel/helpers - typeof";return X_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X_(e)}function o5e(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function f4t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function c4t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function h4t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}m4("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);m4("ERR_INVALID_ARG_TYPE",function(e,t,r){TT===void 0&&(TT=y4()),TT(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&f4t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(c4t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(s5e(t,"type"));else{var a=h4t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(s5e(t,"type"))}return i+=". Received type ".concat(X_(r)),i},TypeError);m4("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";ij===void 0&&(ij=AT());var n=ij.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);m4("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(X_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);m4("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);u5e.exports.codes=l5e});var _5e=we((Zpr,g5e)=>{"use strict";function f5e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c5e(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function A4t(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Xm="",g4="",_4="",Sp="",D2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},T4t=10;function p5e(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function x4(e){return lj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S4t(e,t,r){var n="",i="",a=0,o="",s=!1,u=x4(e),l=u.split(` -`),f=x4(t).split(` -`),c=0,h="";if(r==="strictEqual"&&Dv(e)==="object"&&Dv(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),l.length===1&&f.length===1&&l[0]!==f[0]){var d=l[0].length+f[0].length;if(d<=T4t){if((Dv(e)!=="object"||e===null)&&(Dv(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(D2[r],` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}ec.types=gW();function s5e(e){return Array.isArray(e)}ec.isArray=s5e;function ij(e){return typeof e=="boolean"}ec.isBoolean=ij;function jD(e){return e===null}ec.isNull=jD;function o4t(e){return e==null}ec.isNullOrUndefined=o4t;function l5e(e){return typeof e=="number"}ec.isNumber=l5e;function XD(e){return typeof e=="string"}ec.isString=XD;function s4t(e){return typeof e=="symbol"}ec.isSymbol=s4t;function R2(e){return e===void 0}ec.isUndefined=R2;function m4(e){return TT(e)&&nj(e)==="[object RegExp]"}ec.isRegExp=m4;ec.types.isRegExp=m4;function TT(e){return typeof e=="object"&&e!==null}ec.isObject=TT;function WD(e){return TT(e)&&nj(e)==="[object Date]"}ec.isDate=WD;ec.types.isDate=WD;function y4(e){return TT(e)&&(nj(e)==="[object Error]"||e instanceof Error)}ec.isError=y4;ec.types.isNativeError=y4;function GD(e){return typeof e=="function"}ec.isFunction=GD;function l4t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ec.isPrimitive=l4t;ec.isBuffer=_W();function nj(e){return Object.prototype.toString.call(e)}function tj(e){return e<10?"0"+e.toString(10):e.toString(10)}var u4t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function f4t(){var e=new Date,t=[tj(e.getHours()),tj(e.getMinutes()),tj(e.getSeconds())].join(":");return[e.getDate(),u4t[e.getMonth()],t].join(" ")}ec.log=function(){console.log("%s - %s",f4t(),ec.format.apply(ec,arguments))};ec.inherits=Yg();ec._extend=function(e,t){if(!t||!TT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function u5e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var I2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ec.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(I2&&t[I2]){var r=t[I2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,I2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(u,l){n=u,i=l}),o=[],s=0;s{"use strict";function Z_(e){"@babel/helpers - typeof";return Z_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z_(e)}function f5e(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function w4t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function A4t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function T4t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}g4("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);g4("ERR_INVALID_ARG_TYPE",function(e,t,r){MT===void 0&&(MT=_4()),MT(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&w4t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(A4t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(c5e(t,"type"));else{var a=T4t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(c5e(t,"type"))}return i+=". Received type ".concat(Z_(r)),i},TypeError);g4("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";aj===void 0&&(aj=ST());var n=aj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);g4("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(Z_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);g4("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);d5e.exports.codes=h5e});var A5e=we((hvr,w5e)=>{"use strict";function p5e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function v5e(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function D4t(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Xm="",x4="",b4="",Sp="",D2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},F4t=10;function g5e(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function w4(e){return fj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function O4t(e,t,r){var n="",i="",a=0,o="",s=!1,u=w4(e),l=u.split(` +`),f=w4(t).split(` +`),c=0,h="";if(r==="strictEqual"&&Rv(e)==="object"&&Rv(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),l.length===1&&f.length===1&&l[0]!==f[0]){var d=l[0].length+f[0].length;if(d<=F4t){if((Rv(e)!=="object"||e===null)&&(Rv(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(D2[r],` `)+"".concat(l[0]," !== ").concat(f[0],` `)}else if(r!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(h=` - `.concat(A4t(" ",c),"^"),c=0)}}}for(var y=l[l.length-1],b=f[f.length-1];y===b&&(c++<2?o=` + `.concat(D4t(" ",c),"^"),c=0)}}}for(var y=l[l.length-1],b=f[f.length-1];y===b&&(c++<2?o=` `.concat(y).concat(o):n=y,l.pop(),f.pop(),!(l.length===0||f.length===0));)y=l[l.length-1],b=f[f.length-1];var v=Math.max(l.length,f.length);if(v===0){var C=u.split(` `);if(C.length>30)for(C[26]="".concat(Xm,"...").concat(Sp);C.length>27;)C.pop();return"".concat(D2.notIdentical,` @@ -51,54 +51,54 @@ `),` `)}c>3&&(o=` `.concat(Xm,"...").concat(Sp).concat(o),s=!0),n!==""&&(o=` - `.concat(n).concat(o),n="");var M=0,A=D2[r]+` -`.concat(g4,"+ actual").concat(Sp," ").concat(_4,"- expected").concat(Sp),L=" ".concat(Xm,"...").concat(Sp," Lines skipped");for(c=0;c1&&c>2&&(x>4?(i+=` + `.concat(n).concat(o),n="");var E=0,A=D2[r]+` +`.concat(x4,"+ actual").concat(Sp," ").concat(b4,"- expected").concat(Sp),L=" ".concat(Xm,"...").concat(Sp," Lines skipped");for(c=0;c1&&c>2&&(x>4?(i+=` `.concat(Xm,"...").concat(Sp),s=!0):x>3&&(i+=` - `.concat(f[c-2]),M++),i+=` - `.concat(f[c-1]),M++),a=c,n+=` -`.concat(_4,"-").concat(Sp," ").concat(f[c]),M++;else if(f.length1&&c>2&&(x>4?(i+=` + `.concat(f[c-2]),E++),i+=` + `.concat(f[c-1]),E++),a=c,n+=` +`.concat(b4,"-").concat(Sp," ").concat(f[c]),E++;else if(f.length1&&c>2&&(x>4?(i+=` `.concat(Xm,"...").concat(Sp),s=!0):x>3&&(i+=` - `.concat(l[c-2]),M++),i+=` - `.concat(l[c-1]),M++),a=c,i+=` -`.concat(g4,"+").concat(Sp," ").concat(l[c]),M++;else{var k=f[c],S=l[c],m=S!==k&&(!d5e(S,",")||S.slice(0,-1)!==k);m&&d5e(k,",")&&k.slice(0,-1)===S&&(m=!1,S+=","),m?(x>1&&c>2&&(x>4?(i+=` + `.concat(l[c-2]),E++),i+=` + `.concat(l[c-1]),E++),a=c,i+=` +`.concat(x4,"+").concat(Sp," ").concat(l[c]),E++;else{var k=f[c],S=l[c],m=S!==k&&(!y5e(S,",")||S.slice(0,-1)!==k);m&&y5e(k,",")&&k.slice(0,-1)===S&&(m=!1,S+=","),m?(x>1&&c>2&&(x>4?(i+=` `.concat(Xm,"...").concat(Sp),s=!0):x>3&&(i+=` - `.concat(l[c-2]),M++),i+=` - `.concat(l[c-1]),M++),a=c,i+=` -`.concat(g4,"+").concat(Sp," ").concat(S),n+=` -`.concat(_4,"-").concat(Sp," ").concat(k),M+=2):(i+=n,n="",(x===1||c===0)&&(i+=` - `.concat(S),M++))}if(M>20&&c20&&c30)for(d[26]="".concat(Xm,"...").concat(Sp);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` +`).concat(i).concat(n).concat(o).concat(h)}var B4t=(function(e,t){C4t(n,e);var r=L4t(n);function n(i){var a;if(M4t(this,n),Rv(i)!=="object"||i===null)throw new R4t("options","Object",i);var o=i.message,s=i.operator,u=i.stackStartFn,l=i.actual,f=i.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)a=r.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(Xm="\x1B[34m",x4="\x1B[32m",Sp="\x1B[39m",b4="\x1B[31m"):(Xm="",x4="",Sp="",b4="")),Rv(l)==="object"&&l!==null&&Rv(f)==="object"&&f!==null&&"stack"in l&&l instanceof Error&&"stack"in f&&f instanceof Error&&(l=g5e(l),f=g5e(f)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,O4t(l,f,s));else if(s==="notDeepStrictEqual"||s==="notStrictEqual"){var h=D2[s],d=w4(l).split(` +`);if(s==="notStrictEqual"&&Rv(l)==="object"&&l!==null&&(h=D2.notStrictEqualObject),d.length>30)for(d[26]="".concat(Xm,"...").concat(Sp);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` `).concat(d.join(` `),` -`))}else{var p=x4(l),y="",b=D2[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(D2[s],` +`))}else{var p=w4(l),y="",b=D2[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(D2[s],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(x4(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(b,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(w4(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(b,` `).concat(p,` should equal -`):y=" ".concat(s," ").concat(y)),a=r.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=c,a.generatedMessage=!o,Object.defineProperty(oj(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=l,a.expected=f,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(oj(a),u),a.stack,a.name="AssertionError",m5e(a)}return v4t(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return lj(this,c5e(c5e({},o),{},{customInspect:!1,depth:0}))}}]),n}(sj(Error),lj.custom);g5e.exports=M4t});var uj=we((Ypr,b5e)=>{"use strict";var x5e=Object.prototype.toString;b5e.exports=function(t){var r=x5e.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&x5e.call(t.callee)==="[object Function]"),n}});var L5e=we((Kpr,C5e)=>{"use strict";var k5e;Object.keys||(A4=Object.prototype.hasOwnProperty,fj=Object.prototype.toString,w5e=uj(),cj=Object.prototype.propertyIsEnumerable,A5e=!cj.call({toString:null},"toString"),T5e=cj.call(function(){},"prototype"),T4=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ZR=function(e){var t=e.constructor;return t&&t.prototype===e},S5e={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},M5e=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!S5e["$"+e]&&A4.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{ZR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),E5e=function(e){if(typeof window=="undefined"||!M5e)return ZR(e);try{return ZR(e)}catch(t){return!1}},k5e=function(t){var r=t!==null&&typeof t=="object",n=fj.call(t)==="[object Function]",i=w5e(t),a=r&&fj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=T5e&&n;if(a&&t.length>0&&!A4.call(t,0))for(var u=0;u0)for(var l=0;l{"use strict";var E4t=Array.prototype.slice,k4t=uj(),P5e=Object.keys,YR=P5e?function(t){return P5e(t)}:L5e(),z5e=Object.keys;YR.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return k4t(n)?z5e(E4t.call(n)):z5e(n)})}else Object.keys=YR;return Object.keys||YR};I5e.exports=YR});var q5e=we(($pr,B5e)=>{"use strict";var C4t=hj(),F5e=KD()(),O5e=pT(),D5e=Object,L4t=O5e("Array.prototype.push"),R5e=O5e("Object.prototype.propertyIsEnumerable"),P4t=F5e?Object.getOwnPropertySymbols:null;B5e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=D5e(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var dj=q5e(),z4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var V5e=function(e){return e!==e};G5e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||V5e(t)&&V5e(r))}});var KR=we((tvr,H5e)=>{"use strict";var D4t=pj();H5e.exports=function(){return typeof Object.is=="function"?Object.is:D4t}});var S4=we((rvr,Z5e)=>{"use strict";var R4t=hj(),F4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",O4t=Object.prototype.toString,B4t=Array.prototype.concat,W5e=Object.defineProperty,q4t=function(e){return typeof e=="function"&&O4t.call(e)==="[object Function]"},N4t=KH()(),j5e=W5e&&N4t,U4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!q4t(n)||!n())return}j5e?W5e(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},X5e=function(e,t){var r=arguments.length>2?arguments[2]:{},n=R4t(t);F4t&&(n=B4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var V4t=KR(),G4t=S4();Y5e.exports=function(){var t=V4t();return G4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var eEe=we((nvr,Q5e)=>{"use strict";var H4t=S4(),W4t=r4(),j4t=pj(),J5e=KR(),X4t=K5e(),$5e=W4t(J5e(),Object);H4t($5e,{getPolyfill:J5e,implementation:j4t,shim:X4t});Q5e.exports=$5e});var vj=we((avr,tEe)=>{"use strict";tEe.exports=function(t){return t!==t}});var mj=we((ovr,rEe)=>{"use strict";var Z4t=vj();rEe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:Z4t}});var nEe=we((svr,iEe)=>{"use strict";var Y4t=S4(),K4t=mj();iEe.exports=function(){var t=K4t();return Y4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var lEe=we((lvr,sEe)=>{"use strict";var J4t=r4(),$4t=S4(),Q4t=vj(),aEe=mj(),ekt=nEe(),oEe=J4t(aEe(),Number);$4t(oEe,{getPolyfill:aEe,implementation:Q4t,shim:ekt});sEe.exports=oEe});var kEe=we((uvr,EEe)=>{"use strict";function uEe(e,t){return nkt(e)||ikt(e,t)||rkt(e,t)||tkt()}function tkt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rkt(e,t){if(e){if(typeof e=="string")return fEe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fEe(e,t)}}function fEe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function QR(e){return Object.keys(e).filter(dkt).concat(t6(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function AEe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function Zm(e){"@babel/helpers - typeof";return Zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zm(e)}function CEe(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{"use strict";var T5e=Object.prototype.toString;S5e.exports=function(t){var r=T5e.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&T5e.call(t.callee)==="[object Function]"),n}});var R5e=we((pvr,I5e)=>{"use strict";var z5e;Object.keys||(S4=Object.prototype.hasOwnProperty,hj=Object.prototype.toString,M5e=cj(),dj=Object.prototype.propertyIsEnumerable,E5e=!dj.call({toString:null},"toString"),k5e=dj.call(function(){},"prototype"),M4=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],KD=function(e){var t=e.constructor;return t&&t.prototype===e},C5e={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},L5e=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!C5e["$"+e]&&S4.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{KD(window[e])}catch(t){return!0}}catch(t){return!0}return!1})(),P5e=function(e){if(typeof window=="undefined"||!L5e)return KD(e);try{return KD(e)}catch(t){return!1}},z5e=function(t){var r=t!==null&&typeof t=="object",n=hj.call(t)==="[object Function]",i=M5e(t),a=r&&hj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=k5e&&n;if(a&&t.length>0&&!S4.call(t,0))for(var u=0;u0)for(var l=0;l{"use strict";var q4t=Array.prototype.slice,N4t=cj(),D5e=Object.keys,JD=D5e?function(t){return D5e(t)}:R5e(),F5e=Object.keys;JD.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(n){return N4t(n)?F5e(q4t.call(n)):F5e(n)})}else Object.keys=JD;return Object.keys||JD};O5e.exports=JD});var G5e=we((mvr,V5e)=>{"use strict";var U4t=pj(),N5e=$R()(),U5e=mT(),B5e=Object,V4t=U5e("Array.prototype.push"),q5e=U5e("Object.prototype.propertyIsEnumerable"),G4t=N5e?Object.getOwnPropertySymbols:null;V5e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=B5e(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var vj=G5e(),H4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var j5e=function(e){return e!==e};X5e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||j5e(t)&&j5e(r))}});var $D=we((_vr,Z5e)=>{"use strict";var j4t=mj();Z5e.exports=function(){return typeof Object.is=="function"?Object.is:j4t}});var E4=we((xvr,$5e)=>{"use strict";var X4t=pj(),Z4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Y4t=Object.prototype.toString,K4t=Array.prototype.concat,Y5e=Object.defineProperty,J4t=function(e){return typeof e=="function"&&Y4t.call(e)==="[object Function]"},$4t=$H()(),K5e=Y5e&&$4t,Q4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!J4t(n)||!n())return}K5e?Y5e(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},J5e=function(e,t){var r=arguments.length>2?arguments[2]:{},n=X4t(t);Z4t&&(n=K4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var ekt=$D(),tkt=E4();Q5e.exports=function(){var t=ekt();return tkt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var nEe=we((wvr,iEe)=>{"use strict";var rkt=E4(),ikt=n4(),nkt=mj(),tEe=$D(),akt=eEe(),rEe=ikt(tEe(),Object);rkt(rEe,{getPolyfill:tEe,implementation:nkt,shim:akt});iEe.exports=rEe});var yj=we((Avr,aEe)=>{"use strict";aEe.exports=function(t){return t!==t}});var gj=we((Tvr,oEe)=>{"use strict";var okt=yj();oEe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:okt}});var lEe=we((Svr,sEe)=>{"use strict";var skt=E4(),lkt=gj();sEe.exports=function(){var t=lkt();return skt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var hEe=we((Mvr,cEe)=>{"use strict";var ukt=n4(),fkt=E4(),ckt=yj(),uEe=gj(),hkt=lEe(),fEe=ukt(uEe(),Number);fkt(fEe,{getPolyfill:uEe,implementation:ckt,shim:hkt});cEe.exports=fEe});var zEe=we((Evr,PEe)=>{"use strict";function dEe(e,t){return mkt(e)||vkt(e,t)||pkt(e,t)||dkt()}function dkt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pkt(e,t){if(e){if(typeof e=="string")return pEe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pEe(e,t)}}function pEe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function t6(e){return Object.keys(e).filter(Skt).concat(i6(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function EEe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function Zm(e){"@babel/helpers - typeof";return Zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zm(e)}function IEe(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var L4=1e3,P4=L4*60,z4=P4*60,I4=z4*24,qkt=I4*365.25;XEe.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Nkt(e);if(r==="number"&&isNaN(e)===!1)return t.long?Vkt(e):Ukt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Nkt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*qkt;case"days":case"day":case"d":return r*I4;case"hours":case"hour":case"hrs":case"hr":case"h":return r*z4;case"minutes":case"minute":case"mins":case"min":case"m":return r*P4;case"seconds":case"second":case"secs":case"sec":case"s":return r*L4;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Ukt(e){return e>=I4?Math.round(e/I4)+"d":e>=z4?Math.round(e/z4)+"h":e>=P4?Math.round(e/P4)+"m":e>=L4?Math.round(e/L4)+"s":e+"ms"}function Vkt(e){return u6(e,I4,"day")||u6(e,z4,"hour")||u6(e,P4,"minute")||u6(e,L4,"second")||e+" ms"}function u6(e,t,r){if(!(e{Ic=YEe.exports=Aj.debug=Aj.default=Aj;Ic.coerce=Xkt;Ic.disable=Wkt;Ic.enable=Hkt;Ic.enabled=jkt;Ic.humanize=ZEe();Ic.names=[];Ic.skips=[];Ic.formatters={};var wj;function Gkt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Ic.colors[Math.abs(t)%Ic.colors.length]}function Aj(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(wj||n);r.diff=i,r.prev=wj,r.curr=n,wj=n;for(var a=new Array(arguments.length),o=0;o{uv=$Ee.exports=KEe();uv.log=Kkt;uv.formatArgs=Ykt;uv.save=Jkt;uv.load=JEe;uv.useColors=Zkt;uv.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:$kt();uv.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function Zkt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}uv.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function Ykt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+uv.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function Kkt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Jkt(e){try{e==null?uv.storage.removeItem("debug"):uv.storage.debug=e}catch(t){}}function JEe(){var e;try{e=uv.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}uv.enable(JEe());function $kt(){try{return window.localStorage}catch(e){}}});var s4e=we((hvr,o4e)=>{var MT=y4(),J_=QEe()("stream-parser");o4e.exports=eCt;var t4e=-1,f6=0,Qkt=1,r4e=2;function eCt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");J_("extending Parser into stream"),e._bytes=tCt,e._skipBytes=rCt,t&&(e._passthrough=iCt),t?e._transform=aCt:e._write=nCt}function D4(e){J_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=t4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function tCt(e,t){MT(!this._parserCallback,'there is already a "callback" set!'),MT(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||D4(this),J_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=f6}function rCt(e,t){MT(!this._parserCallback,'there is already a "callback" set!'),MT(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||D4(this),J_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=Qkt}function iCt(e,t){MT(!this._parserCallback,'There is already a "callback" set!'),MT(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||D4(this),J_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=r4e}function nCt(e,t,r){this._parserInit||D4(this),J_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),n4e(this,e,null,r)}function aCt(e,t,r){this._parserInit||D4(this),J_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),n4e(this,e,t,r)}function i4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return e4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return e4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return i4e(e,t.slice(i.length),r,n)}})}}function e4e(e,t,r,n){if(e._parserBytesLeft-=t.length,J_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===f6?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===r4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===f6&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==f6&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=t4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(a4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var n4e=a4e(i4e);function a4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var xc=we(Jg=>{"use strict";var l4e=e5e().Transform,oCt=s4e();function R4(){l4e.call(this,{readableObjectMode:!0})}R4.prototype=Object.create(l4e.prototype);R4.prototype.constructor=R4;oCt(R4.prototype);Jg.ParserStream=R4;Jg.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var ET=xc().readUInt16BE,Sj=xc().readUInt32BE;function F4(e,t){if(e.length<4+t)return null;var r=Sj(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=ET(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}h6.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(cCt(e,t),!!t.sizes.length){var r=hCt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var u=0;u{"use strict";function d6(e,t){var r=new Error(e);return r.code=t,r}function dCt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function $g(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw d6("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}$g.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};$g.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw d6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};$g.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw d6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};$g.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};$g.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};$g.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};$g.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw d6("unexpected EOF","EBADDATA");for(var h=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:a,offset:h[0]}),c=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:l,data_offset:f+this.start,value:h,is_subifd_link:c};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};Mj.exports.ExifParser=$g;Mj.exports.get_orientation=function(e){var t=0;try{return new $g(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var c4e=we((mvr,f4e)=>{"use strict";var pCt=xc().str2arr,vCt=xc().sliceEq,mCt=xc().readUInt32BE,v6=u4e(),yCt=p6(),gCt=pCt("ftyp");f4e.exports=function(e){if(vCt(e,4,gCt)){var t=v6.unbox(e,0);if(t){var r=v6.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=v6.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=v6.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var u=mCt(e,o.exif_location.offset),l=e.slice(o.exif_location.offset+u+4,o.exif_location.offset+o.exif_location.length),f=yCt.get_orientation(l);f>0&&(s.orientation=f)}return s}}}}}}});var p4e=we((yvr,d4e)=>{"use strict";var _Ct=xc().str2arr,xCt=xc().sliceEq,h4e=xc().readUInt16LE,bCt=_Ct("BM");d4e.exports=function(e){if(!(e.length<26)&&xCt(e,0,bCt))return{width:h4e(e,18),height:h4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var _4e=we((gvr,g4e)=>{"use strict";var y4e=xc().str2arr,v4e=xc().sliceEq,m4e=xc().readUInt16LE,wCt=y4e("GIF87a"),ACt=y4e("GIF89a");g4e.exports=function(e){if(!(e.length<10)&&!(!v4e(e,0,wCt)&&!v4e(e,0,ACt)))return{width:m4e(e,6),height:m4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var w4e=we((_vr,b4e)=>{"use strict";var Ej=xc().readUInt16LE,TCt=0,SCt=1,x4e=16;b4e.exports=function(e){var t=Ej(e,0),r=Ej(e,2),n=Ej(e,4);if(!(t!==TCt||r!==SCt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||u>a.height)&&(a=l)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var T4e=we((xvr,A4e)=>{"use strict";var kj=xc().readUInt16BE,MCt=xc().str2arr,ECt=xc().sliceEq,kCt=p6(),CCt=MCt("Exif\0\0");A4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=kj(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&ECt(e,t,CCt)&&(i=kCt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var C4e=we((bvr,k4e)=>{"use strict";var E4e=xc().str2arr,S4e=xc().sliceEq,M4e=xc().readUInt32BE,LCt=E4e(`\x89PNG\r +`).concat(o6(e),` +`));var s=new J_({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw s.generatedMessage=o,s}}th.match=function e(t,r,n){ZEe(t,r,n,e,"match")};th.doesNotMatch=function e(t,r,n){ZEe(t,r,n,e,"doesNotMatch")};function YEe(){for(var e=arguments.length,t=new Array(e),r=0;r{var z4=1e3,I4=z4*60,R4=I4*60,D4=R4*24,Jkt=D4*365.25;JEe.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return $kt(e);if(r==="number"&&isNaN(e)===!1)return t.long?eCt(e):Qkt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function $kt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Jkt;case"days":case"day":case"d":return r*D4;case"hours":case"hour":case"hrs":case"hr":case"h":return r*R4;case"minutes":case"minute":case"mins":case"min":case"m":return r*I4;case"seconds":case"second":case"secs":case"sec":case"s":return r*z4;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Qkt(e){return e>=D4?Math.round(e/D4)+"d":e>=R4?Math.round(e/R4)+"h":e>=I4?Math.round(e/I4)+"m":e>=z4?Math.round(e/z4)+"s":e+"ms"}function eCt(e){return c6(e,D4,"day")||c6(e,R4,"hour")||c6(e,I4,"minute")||c6(e,z4,"second")||e+" ms"}function c6(e,t,r){if(!(e{Ic=QEe.exports=Sj.debug=Sj.default=Sj;Ic.coerce=aCt;Ic.disable=iCt;Ic.enable=rCt;Ic.enabled=nCt;Ic.humanize=$Ee();Ic.names=[];Ic.skips=[];Ic.formatters={};var Tj;function tCt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Ic.colors[Math.abs(t)%Ic.colors.length]}function Sj(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(Tj||n);r.diff=i,r.prev=Tj,r.curr=n,Tj=n;for(var a=new Array(arguments.length),o=0;o{uv=r4e.exports=e4e();uv.log=lCt;uv.formatArgs=sCt;uv.save=uCt;uv.load=t4e;uv.useColors=oCt;uv.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:fCt();uv.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function oCt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}uv.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function sCt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+uv.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function lCt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function uCt(e){try{e==null?uv.storage.removeItem("debug"):uv.storage.debug=e}catch(t){}}function t4e(){var e;try{e=uv.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}uv.enable(t4e());function fCt(){try{return window.localStorage}catch(e){}}});var c4e=we((Lvr,f4e)=>{var kT=_4(),$_=i4e()("stream-parser");f4e.exports=hCt;var a4e=-1,h6=0,cCt=1,o4e=2;function hCt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");$_("extending Parser into stream"),e._bytes=dCt,e._skipBytes=pCt,t&&(e._passthrough=vCt),t?e._transform=yCt:e._write=mCt}function F4(e){$_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=a4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function dCt(e,t){kT(!this._parserCallback,'there is already a "callback" set!'),kT(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||F4(this),$_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=h6}function pCt(e,t){kT(!this._parserCallback,'there is already a "callback" set!'),kT(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||F4(this),$_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=cCt}function vCt(e,t){kT(!this._parserCallback,'There is already a "callback" set!'),kT(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||F4(this),$_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=o4e}function mCt(e,t,r){this._parserInit||F4(this),$_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),l4e(this,e,null,r)}function yCt(e,t,r){this._parserInit||F4(this),$_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),l4e(this,e,t,r)}function s4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return n4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return n4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return s4e(e,t.slice(i.length),r,n)}})}}function n4e(e,t,r,n){if(e._parserBytesLeft-=t.length,$_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===h6?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===o4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===h6&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==h6&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=a4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(u4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var l4e=u4e(s4e);function u4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var xc=we($g=>{"use strict";var h4e=n5e().Transform,gCt=c4e();function O4(){h4e.call(this,{readableObjectMode:!0})}O4.prototype=Object.create(h4e.prototype);O4.prototype.constructor=O4;gCt(O4.prototype);$g.ParserStream=O4;$g.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var CT=xc().readUInt16BE,Ej=xc().readUInt32BE;function B4(e,t){if(e.length<4+t)return null;var r=Ej(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=CT(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}p6.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(ACt(e,t),!!t.sizes.length){var r=TCt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var u=0;u{"use strict";function v6(e,t){var r=new Error(e);return r.code=t,r}function SCt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function Qg(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw v6("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}Qg.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};Qg.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw v6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};Qg.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw v6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};Qg.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};Qg.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Qg.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Qg.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw v6("unexpected EOF","EBADDATA");for(var h=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:a,offset:h[0]}),c=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:l,data_offset:f+this.start,value:h,is_subifd_link:c};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};kj.exports.ExifParser=Qg;kj.exports.get_orientation=function(e){var t=0;try{return new Qg(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var v4e=we((Rvr,p4e)=>{"use strict";var MCt=xc().str2arr,ECt=xc().sliceEq,kCt=xc().readUInt32BE,y6=d4e(),CCt=m6(),LCt=MCt("ftyp");p4e.exports=function(e){if(ECt(e,4,LCt)){var t=y6.unbox(e,0);if(t){var r=y6.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=y6.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=y6.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var u=kCt(e,o.exif_location.offset),l=e.slice(o.exif_location.offset+u+4,o.exif_location.offset+o.exif_location.length),f=CCt.get_orientation(l);f>0&&(s.orientation=f)}return s}}}}}}});var g4e=we((Dvr,y4e)=>{"use strict";var PCt=xc().str2arr,zCt=xc().sliceEq,m4e=xc().readUInt16LE,ICt=PCt("BM");y4e.exports=function(e){if(!(e.length<26)&&zCt(e,0,ICt))return{width:m4e(e,18),height:m4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var A4e=we((Fvr,w4e)=>{"use strict";var b4e=xc().str2arr,_4e=xc().sliceEq,x4e=xc().readUInt16LE,RCt=b4e("GIF87a"),DCt=b4e("GIF89a");w4e.exports=function(e){if(!(e.length<10)&&!(!_4e(e,0,RCt)&&!_4e(e,0,DCt)))return{width:x4e(e,6),height:x4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var M4e=we((Ovr,S4e)=>{"use strict";var Cj=xc().readUInt16LE,FCt=0,OCt=1,T4e=16;S4e.exports=function(e){var t=Cj(e,0),r=Cj(e,2),n=Cj(e,4);if(!(t!==FCt||r!==OCt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||u>a.height)&&(a=l)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var k4e=we((Bvr,E4e)=>{"use strict";var Lj=xc().readUInt16BE,BCt=xc().str2arr,qCt=xc().sliceEq,NCt=m6(),UCt=BCt("Exif\0\0");E4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=Lj(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&qCt(e,t,UCt)&&(i=NCt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var I4e=we((qvr,z4e)=>{"use strict";var P4e=xc().str2arr,C4e=xc().sliceEq,L4e=xc().readUInt32BE,VCt=P4e(`\x89PNG\r  -`),PCt=E4e("IHDR");k4e.exports=function(e){if(!(e.length<24)&&S4e(e,0,LCt)&&S4e(e,12,PCt))return{width:M4e(e,16),height:M4e(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var z4e=we((wvr,P4e)=>{"use strict";var zCt=xc().str2arr,ICt=xc().sliceEq,L4e=xc().readUInt32BE,DCt=zCt("8BPS\0");P4e.exports=function(e){if(!(e.length<22)&&ICt(e,0,DCt))return{width:L4e(e,18),height:L4e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var R4e=we((Avr,D4e)=>{"use strict";function RCt(e){return e===32||e===9||e===13||e===10}function kT(e){return typeof e=="number"&&isFinite(e)&&e>0}function FCt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,BCt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,qCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,NCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,UCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,I4e=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function VCt(e){var t=e.match(qCt),r=e.match(NCt),n=e.match(UCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Zy(e){return I4e.test(e)?e.match(I4e)[0]:"px"}D4e.exports=function(e){if(FCt(e)){for(var t="",r=0;r{"use strict";var B4e=xc().str2arr,F4e=xc().sliceEq,GCt=xc().readUInt16LE,HCt=xc().readUInt16BE,WCt=xc().readUInt32LE,jCt=xc().readUInt32BE,XCt=B4e("II*\0"),ZCt=B4e("MM\0*");function m6(e,t,r){return r?HCt(e,t):GCt(e,t)}function Cj(e,t,r){return r?jCt(e,t):WCt(e,t)}function O4e(e,t,r){var n=m6(e,t+2,r),i=Cj(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?m6(e,t+8,r):Cj(e,t+8,r)}q4e.exports=function(e){if(!(e.length<8)&&!(!F4e(e,0,XCt)&&!F4e(e,0,ZCt))){var t=e[0]===77,r=Cj(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=m6(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var G4e=xc().str2arr,U4e=xc().sliceEq,V4e=xc().readUInt16LE,Lj=xc().readUInt32LE,YCt=p6(),KCt=G4e("RIFF"),JCt=G4e("WEBP");function $Ct(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:V4e(e,t+6)&16383,height:V4e(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function QCt(e,t){if(e[t]===47){var r=Lj(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function eLt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||$Ct(e,t+8):a==="VP8L"&&o>=9?r=r||QCt(e,t+8):a==="VP8X"&&o>=10?r=r||eLt(e,t+8):a==="EXIF"&&(n=YCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var X4e=we((Mvr,j4e)=>{"use strict";j4e.exports={avif:c4e(),bmp:p4e(),gif:_4e(),ico:w4e(),jpeg:T4e(),png:C4e(),psd:z4e(),svg:R4e(),tiff:N4e(),webp:W4e()}});var Z4e=we((Evr,zj)=>{"use strict";var Pj=X4e();function tLt(e){for(var t=Object.keys(Pj),r=0;r{"use strict";var rLt=Z4e(),iLt=Og().IMAGE_URL_PREFIX,nLt=b2().Buffer;Y4e.getImageSize=function(e){var t=e.replace(iLt,""),r=new nLt(t,"base64");return rLt(r)}});var Q4e=we((Cvr,$4e)=>{"use strict";var J4e=ei(),aLt=tT(),oLt=ku(),y6=wu(),sLt=ei().maxRowLength,lLt=K4e().getImageSize;$4e.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=sLt(r.z);else if(r._hasSource){var a=lLt(r.source);n=a.height,i=a.width}var o=y6.getFromId(t,r.xaxis||"x"),s=y6.getFromId(t,r.yaxis||"y"),u=o.d2c(r.x0)-r.dx/2,l=s.d2c(r.y0)-r.dy/2,f,c=[u,u+i*r.dx],h=[l,l+n*r.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var hLt=Jl(),R2=ei(),eke=R2.strTranslate,dLt=jv(),pLt=tT(),vLt=gG(),mLt=yD().STYLE;tke.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&vLt();R2.makeTraceGroups(i,n,"im").each(function(u){var l=hLt.select(this),f=u[0],c=f.trace,h=(c.zsmooth==="fast"||c.zsmooth===!1&&s)&&!c._hasZ&&c._hasSource&&a.type==="linear"&&o.type==="linear";c._realImage=h;var d=f.z,p=f.x0,y=f.y0,b=f.w,v=f.h,C=c.dx,M=c.dy,A,L,x,k,S,m;for(m=0;A===void 0&&m0;)L=a.c2p(p+m*C),m--;for(m=0;k===void 0&&m0;)S=o.c2p(y+m*M),m--;if(LH[0];if(re||ae){var me=A+E/2,Le=k+O/2;W+="transform:"+eke(me+"px",Le+"px")+"scale("+(re?-1:1)+","+(ae?-1:1)+")"+eke(-me+"px",-Le+"px")+";"}}j.attr("style",W);var Ce=new Promise(function(de){if(c._hasZ)de();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===b&&c._canvas.el.height===v&&c._canvas.source===c.source)de();else{var te=document.createElement("canvas");te.width=b,te.height=v;var Se=te.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var Te=c._image;Te.onload=function(){Se.drawImage(Te,0,0),c._canvas={el:te,source:c.source},de()},Te.setAttribute("src",c.source)}}).then(function(){var de,te;if(c._hasZ)te=G(function(be,He){var Ie=d[He][be];return R2.isTypedArray(Ie)&&(Ie=Array.from(Ie)),Ie}),de=te.toDataURL("image/png");else if(c._hasSource)if(h)de=c.source;else{var Se=c._canvas.el.getContext("2d",{willReadFrequently:!0}),Te=Se.getImageData(0,0,b,v).data;te=G(function(be,He){var Ie=4*(He*b+be);return[Te[Ie],Te[Ie+1],Te[Ie+2],Te[Ie+3]]}),de=te.toDataURL("image/png")}j.attr({"xlink:href":de,height:O,width:E,x:A,y:k})});t._promises.push(Ce)})}});var nke=we((Pvr,ike)=>{"use strict";var yLt=Jl();ike.exports=function(t){yLt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var lke=we((zvr,ske)=>{"use strict";var ake=Vc(),oke=ei(),g6=oke.isArrayOrTypedArray,gLt=tT();ske.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(ake.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||ake.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var u=Math.floor((r-i.x0)/a.dx),l=Math.floor(Math.abs(n-i.y0)/a.dy),f;if(a._hasZ?f=i.z[l][u]:a._hasSource&&(f=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(u,l,1,1).data),!!f){var c=i.hi||a.hoverinfo,h;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var p=gLt.colormodel[a.colormodel],y=p.colormodel||a.colormodel,b=y.length,v=a._scaler(f),C=p.suffix,M=[];(a.hovertemplate||h)&&(M.push("["+[v[0]+C[0],v[1]+C[1],v[2]+C[2]].join(", ")),b===4&&M.push(", "+v[3]+C[3]),M.push("]"),M=M.join(""),t.extraText=y.toUpperCase()+": "+M);var A;g6(a.hovertext)&&g6(a.hovertext[l])?A=a.hovertext[l][u]:g6(a.text)&&g6(a.text[l])&&(A=a.text[l][u]);var L=s.c2p(i.y0+(l+.5)*a.dy),x=i.x0+(u+.5)*a.dx,k=i.y0+(l+.5)*a.dy,S="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[oke.extendFlat(t,{index:[l,u],x0:o.c2p(i.x0+u*a.dx),x1:o.c2p(i.x0+(u+1)*a.dx),y0:L,y1:L,color:v,xVal:x,xLabelVal:x,yVal:k,yLabelVal:k,zLabelVal:S,text:A,hovertemplateLabels:{zLabel:S,colorLabel:M,"color[0]Label":v[0]+C[0],"color[1]Label":v[1]+C[1],"color[2]Label":v[2]+C[2],"color[3]Label":v[3]+C[3]}})]}}}});var fke=we((Ivr,uke)=>{"use strict";uke.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var hke=we((Dvr,cke)=>{"use strict";cke.exports={attributes:kH(),supplyDefaults:lAe(),calc:Q4e(),plot:rke(),style:nke(),hoverPoints:lke(),eventData:fke(),moduleType:"trace",name:"image",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var pke=we((Rvr,dke)=>{"use strict";dke.exports=hke()});var F2=we((Fvr,mke)=>{"use strict";var _6=Gf(),_Lt=zc().attributes,xLt=gc(),bLt=Bh(),{hovertemplateAttrs:wLt,texttemplateAttrs:ALt,templatefallbackAttrs:vke}=Ff(),$_=Su().extendFlat,TLt=Id().pattern,x6=xLt({editType:"plot",arrayOk:!0,colorEditType:"plot"});mke.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:bLt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:TLt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:$_({},_6.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:wLt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:vke(),texttemplate:ALt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:vke({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:$_({},x6,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:$_({},x6,{}),outsidetextfont:$_({},x6,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:$_({},_6.showlegend,{arrayOk:!0}),legend:$_({},_6.legend,{arrayOk:!0}),legendrank:$_({},_6.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:$_({},x6,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:_Lt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var O2=we((Ovr,_ke)=>{"use strict";var SLt=ku(),O4=ei(),MLt=F2(),ELt=zc().defaults,kLt=i0().handleText,CLt=ei().coercePattern;function yke(e,t){var r=O4.isArrayOrTypedArray(e),n=O4.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function gke(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");CLt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function LLt(e,t,r,n){function i(C,M){return O4.coerce(e,t,MLt,C,M)}var a=i("labels"),o=i("values"),s=yke(a,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,gke(e,t,n,i,!0),i("scalegroup");var l=i("text"),f=i("texttemplate");i("texttemplatefallback");var c;if(f||(c=i("textinfo",O4.isArrayOrTypedArray(l)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),f||c&&c!=="none"){var h=i("textposition");kLt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else c==="none"&&i("textposition","none");ELt(t,n,i);var y=i("hole"),b=i("title.text");if(b){var v=i("title.position",y?"middle center":"top center");!y&&v==="middle center"&&(t.title.position="top center"),O4.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}_ke.exports={handleLabelsAndValues:yke,handleMarkerDefaults:gke,supplyDefaults:LLt}});var b6=we((Bvr,xke)=>{"use strict";xke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var wke=we((qvr,bke)=>{"use strict";var PLt=ei(),zLt=b6();bke.exports=function(t,r){function n(i,a){return PLt.coerce(t,r,zLt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var CT=we((Nvr,Ske)=>{"use strict";var ILt=ku(),Ij=hd(),DLt=jl(),RLt={};function FLt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,u=t._length,l=t._hasValues&&u,f,c;if(t.dlabel)for(a=new Array(u),f=0;f=0});var A=t.type==="funnelarea"?y:t.sort;return A&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=p),r}function Ake(e){return function(r,n){return!r||(r=Ij(r),!r.isValid())?!1:(r=DLt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function OLt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=Tke(a,RLt));for(var s=0,u=0;u{"use strict";var BLt=iv().appendArrayMultiPointValues;Mke.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),BLt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var S6=we((Vvr,Zke)=>{"use strict";var Rv=Jl(),qLt=Cc(),w6=Vc(),Ike=jl(),Qg=Mu(),ap=ei(),NLt=ap.strScale,kke=ap.strTranslate,Dj=Wf(),Dke=Ap(),ULt=Dke.recordMinTextSize,VLt=Dke.clearMinTextSize,Rke=T_().TEXTPAD,Zu=m_(),A6=Eke(),Cke=ei().isValidTextValue;function GLt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;VLt("pie",n),Bke(t,e),Wke(t,i);var a=ap.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Rv.select(this),u=o[0],l=u.trace;$Lt(o),s.attr("stroke-linejoin","round"),s.each(function(){var f=Rv.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(A,L){if(A.hidden){Rv.select(this).selectAll("path,g").remove();return}A.pointNumber=A.i,A.curveNumber=l.index,c[A.pxmid[1]<0?0:1][A.pxmid[0]<0?0:1].push(A);var x=u.cx,k=u.cy,S=Rv.select(this),m=S.selectAll("path.surface").data([A]);if(m.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),S.call(Fke,e,o),l.pull){var P=+Zu.castOption(l.pull,A.pts)||0;P>0&&(x+=P*A.pxmid[0],k+=P*A.pxmid[1])}A.cxFinal=x,A.cyFinal=k;function E(N,H,re,ae){var me=ae*(H[0]-N[0]),Le=ae*(H[1]-N[1]);return"a"+ae*u.r+","+ae*u.r+" 0 "+A.largeArc+(re?" 1 ":" 0 ")+me+","+Le}var O=l.hole;if(A.v===u.vTotal){var F="M"+(x+A.px0[0])+","+(k+A.px0[1])+E(A.px0,A.pxmid,!0,1)+E(A.pxmid,A.px0,!0,1)+"Z";O?m.attr("d","M"+(x+O*A.px0[0])+","+(k+O*A.px0[1])+E(A.px0,A.pxmid,!1,O)+E(A.pxmid,A.px0,!1,O)+"Z"+F):m.attr("d",F)}else{var U=E(A.px0,A.px1,!0,1);if(O){var G=1-O;m.attr("d","M"+(x+O*A.px1[0])+","+(k+O*A.px1[1])+E(A.px1,A.px0,!1,O)+"l"+G*A.px0[0]+","+G*A.px0[1]+U+"Z")}else m.attr("d","M"+x+","+k+"l"+A.px0[0]+","+A.px0[1]+U+"Z")}jke(e,A,u);var j=Zu.castOption(l.textposition,A.pts),W=S.selectAll("g.slicetext").data(A.text&&j!=="none"?[0]:[]);W.enter().append("g").classed("slicetext",!0),W.exit().remove(),W.each(function(){var N=ap.ensureSingle(Rv.select(this),"text","",function(te){te.attr("data-notex",1)}),H=ap.ensureUniformFontSize(e,j==="outside"?WLt(l,A,n.font):Oke(l,A,n.font));N.text(A.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Qg.font,H).call(Dj.convertToTspans,e);var re=Qg.bBox(N.node()),ae;if(j==="outside")ae=zke(re,A);else if(ae=qke(re,A,u),j==="auto"&&ae.scale<1){var me=ap.ensureUniformFontSize(e,l.outsidetextfont);N.call(Qg.font,me),re=Qg.bBox(N.node()),ae=zke(re,A)}var Le=ae.textPosAngle,Ce=Le===void 0?A.pxmid:T6(u.r,Le);if(ae.targetX=x+Ce[0]*ae.rCenter+(ae.x||0),ae.targetY=k+Ce[1]*ae.rCenter+(ae.y||0),Xke(ae,re),ae.outside){var de=ae.targetY;A.yLabelMin=de-re.height/2,A.yLabelMid=de,A.yLabelMax=de+re.height/2,A.labelExtraX=0,A.labelExtraY=0,h=!0}ae.fontSize=H.size,ULt(l.type,ae,n),o[L].transform=ae,ap.setTransormAndDisplay(N,ae)})});var d=Rv.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var A=ap.ensureSingle(Rv.select(this),"text","",function(k){k.attr("data-notex",1)}),L=l.title.text;l._meta&&(L=ap.templateString(L,l._meta)),A.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Qg.font,l.title.font).call(Dj.convertToTspans,e);var x;l.title.position==="middle center"?x=ZLt(u):x=Gke(u,i),A.attr("transform",kke(x.x,x.y)+NLt(Math.min(1,x.scale))+kke(x.tx,x.ty))}),h&&KLt(c,l),HLt(f,l),h&&l.automargin){var p=Qg.bBox(s.node()),y=l.domain,b=i.w*(y.x[1]-y.x[0]),v=i.h*(y.y[1]-y.y[0]),C=(.5*b-u.r)/i.w,M=(.5*v-u.r)/i.h;qLt.autoMargin(e,"pie."+l.uid+".automargin",{xl:y.x[0]-C,xr:y.x[1]+C,yb:y.y[0]-M,yt:y.y[1]+M,l:Math.max(u.cx-u.r-p.left,0),r:Math.max(p.right-(u.cx+u.r),0),b:Math.max(p.bottom-(u.cy+u.r),0),t:Math.max(u.cy-u.r-p.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Rv.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function HLt(e,t){e.each(function(r){var n=Rv.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,ap.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,u=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var l=r.labelExtraX*r.pxmid[1]/r.pxmid[0],f=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(l)>Math.abs(f)?s+="l"+f*r.pxmid[0]/r.pxmid[1]+","+f+"H"+(a+r.labelExtraX+u):s+="l"+r.labelExtraX+","+l+"v"+(f-l)+"h"+u}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+u;ap.ensureSingle(n,"path","textline").call(Ike.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function Fke(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(u){var l=t._fullLayout,f=t._fullData[o.index];if(!(t._dragging||l.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=w6.castHoverinfo({hoverinfo:[Zu.castOption(c,u.pts)],_module:o._module},l,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=u.rInscribed||0,d=i+u.pxmid[0]*(1-h),p=a+u.pxmid[1]*(1-h),y=l.separators,b=[];if(c&&c.indexOf("label")!==-1&&b.push(u.label),u.text=Zu.castOption(f.hovertext||f.text,u.pts),c&&c.indexOf("text")!==-1){var v=u.text;ap.isValidTextValue(v)&&b.push(v)}u.value=u.v,u.valueLabel=Zu.formatPieValue(u.v,y),c&&c.indexOf("value")!==-1&&b.push(u.valueLabel),u.percent=u.v/n.vTotal,u.percentLabel=Zu.formatPiePercent(u.percent,y),c&&c.indexOf("percent")!==-1&&b.push(u.percentLabel);var C=f.hoverlabel,M=C.font,A=[];w6.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:p,_x0:s?i+u.TL[0]:d-h*n.r,_x1:s?i+u.TR[0]:d+h*n.r,_y0:s?a+u.TL[1]:p-h*n.r,_y1:s?a+u.BL[1]:p+h*n.r,text:b.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:u.pxmid[0]<0?"left":"right",color:Zu.castOption(C.bgcolor,u.pts)||u.color,borderColor:Zu.castOption(C.bordercolor,u.pts),fontFamily:Zu.castOption(M.family,u.pts),fontSize:Zu.castOption(M.size,u.pts),fontColor:Zu.castOption(M.color,u.pts),nameLength:Zu.castOption(C.namelength,u.pts),textAlign:Zu.castOption(C.align,u.pts),hovertemplate:Zu.castOption(f.hovertemplate,u.pts),hovertemplateLabels:u,eventData:[A6(u,f)]},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:t,inOut_bbox:A}),u.bbox=A[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[A6(u,f)],event:Rv.event})}}),e.on("mouseout",function(u){var l=t._fullLayout,f=t._fullData[o.index],c=Rv.select(this).datum();o._hasHoverEvent&&(u.originalEvent=Rv.event,t.emit("plotly_unhover",{points:[A6(c,f)],event:Rv.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(w6.loneUnhover(l._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(u){var l=t._fullLayout,f=t._fullData[o.index];t._dragging||l.hovermode===!1||(t._hoverdata=[A6(u,f)],w6.click(t,Rv.event))})}function WLt(e,t,r){var n=Zu.castOption(e.outsidetextfont.color,t.pts)||Zu.castOption(e.textfont.color,t.pts)||r.color,i=Zu.castOption(e.outsidetextfont.family,t.pts)||Zu.castOption(e.textfont.family,t.pts)||r.family,a=Zu.castOption(e.outsidetextfont.size,t.pts)||Zu.castOption(e.textfont.size,t.pts)||r.size,o=Zu.castOption(e.outsidetextfont.weight,t.pts)||Zu.castOption(e.textfont.weight,t.pts)||r.weight,s=Zu.castOption(e.outsidetextfont.style,t.pts)||Zu.castOption(e.textfont.style,t.pts)||r.style,u=Zu.castOption(e.outsidetextfont.variant,t.pts)||Zu.castOption(e.textfont.variant,t.pts)||r.variant,l=Zu.castOption(e.outsidetextfont.textcase,t.pts)||Zu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Zu.castOption(e.outsidetextfont.lineposition,t.pts)||Zu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Zu.castOption(e.outsidetextfont.shadow,t.pts)||Zu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function Oke(e,t,r){var n=Zu.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=Zu.castOption(e._input.textfont.color,t.pts));var i=Zu.castOption(e.insidetextfont.family,t.pts)||Zu.castOption(e.textfont.family,t.pts)||r.family,a=Zu.castOption(e.insidetextfont.size,t.pts)||Zu.castOption(e.textfont.size,t.pts)||r.size,o=Zu.castOption(e.insidetextfont.weight,t.pts)||Zu.castOption(e.textfont.weight,t.pts)||r.weight,s=Zu.castOption(e.insidetextfont.style,t.pts)||Zu.castOption(e.textfont.style,t.pts)||r.style,u=Zu.castOption(e.insidetextfont.variant,t.pts)||Zu.castOption(e.textfont.variant,t.pts)||r.variant,l=Zu.castOption(e.insidetextfont.textcase,t.pts)||Zu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Zu.castOption(e.insidetextfont.lineposition,t.pts)||Zu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Zu.castOption(e.insidetextfont.shadow,t.pts)||Zu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||Ike.contrast(t.color),family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function Bke(e,t){for(var r,n,i=0;i=-4;C-=2)v(Math.PI*C,"tan");for(C=4;C>=-4;C-=2)v(Math.PI*(C+1),"tan")}if(c||d){for(C=4;C>=-4;C-=2)v(Math.PI*(C+1.5),"rad");for(C=4;C>=-4;C-=2)v(Math.PI*(C+.5),"rad")}}if(s||p||c){var M=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/M,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;y.push(b)}(p||d)&&(b=Lke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,y.push(b)),(p||h)&&(b=Pke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,y.push(b));for(var A=0,L=0,x=0;x=1)break}return y[A]}function jLt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function ZLt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Gke(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=Hke(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var u=YLt(e.r,e.trace.aspectratio),l=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(l=l+u,o.x-=(1+i)*u,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?l*=2:a.title.position.indexOf("right")!==-1&&(l=l+u,o.x+=(1+i)*u,s.tx-=e.titleBox.width/2),r=l/e.titleBox.width,n=Rj(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function YLt(e,t){return e/(t===void 0?1:t)}function Rj(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function Hke(e){var t=e.pull;if(!t)return 0;var r;if(ap.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function KLt(e,t){var r,n,i,a,o,s,u,l,f,c,h,d,p;function y(M,A){return M.pxmid[1]-A.pxmid[1]}function b(M,A){return A.pxmid[1]-M.pxmid[1]}function v(M,A){A||(A={});var L=A.labelExtraY+(n?A.yLabelMax:A.yLabelMin),x=n?M.yLabelMin:M.yLabelMax,k=n?M.yLabelMax:M.yLabelMin,S=M.cyFinal+o(M.px0[1],M.px1[1]),m=L-x,P,E,O,F,U,G;if(m*u>0&&(M.labelExtraY=m),!!ap.isArrayOrTypedArray(t.pull))for(E=0;E=(Zu.castOption(t.pull,O.pts)||0))&&((M.pxmid[1]-O.pxmid[1])*u>0?(F=O.cyFinal+o(O.px0[1],O.px1[1]),m=F-x-M.labelExtraY,m*u>0&&(M.labelExtraY+=m)):(k+M.labelExtraY-S)*u>0&&(P=3*s*Math.abs(E-c.indexOf(M)),U=O.cxFinal+a(O.px0[0],O.px1[0]),G=U+P-(M.cxFinal+M.pxmid[0])-M.labelExtraX,G*s>0&&(M.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?y:b,o=n?Math.max:Math.min,u=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,l=e[n][r],l.sort(i),f=e[1-n][r],c=f.concat(l),d=[],h=0;h1?(l=r.r,f=l/i.aspectratio):(f=r.r,l=f*i.aspectratio),l*=(1+i.baseratio)/2,u=l*f}o=Math.min(o,u/r.vTotal)}for(n=0;nt.vTotal/2?1:0,l.halfangle=Math.PI*Math.min(l.v/t.vTotal,.5),l.ring=1-n.hole,l.rInscribed=XLt(l,t))}function T6(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function jke(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),u=function(A){return s.indexOf(A)!==-1},l=u("label"),f=u("text"),c=u("value"),h=u("percent"),d=n.separators,p;if(p=l?[t.label]:[],f){var y=Zu.getFirstFilled(i.text,t.pts);Cke(y)&&p.push(y)}c&&p.push(Zu.formatPieValue(t.v,d)),h&&p.push(Zu.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function b(A){return{label:A.label,value:A.v,valueLabel:Zu.formatPieValue(A.v,n.separators),percent:A.v/r.vTotal,percentLabel:Zu.formatPiePercent(A.v/r.vTotal,n.separators),color:A.color,text:A.text,customdata:ap.castOption(i,A.i,"customdata")}}if(a){var v=ap.castOption(i,t.i,"texttemplate");if(!v)t.text="";else{var C=b(t),M=Zu.getFirstFilled(i.text,t.pts);(Cke(M)||M==="")&&(C.text=M),t.text=ap.texttemplateString({data:[C,i._meta],fallback:i.texttemplatefallback,labels:C,locale:e._fullLayout._d3locale,template:v})}}}function Xke(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}Zke.exports={plot:GLt,formatSliceLabel:jke,transformInsideText:qke,determineInsideTextFont:Oke,positionTitleOutside:Gke,prerenderTitles:Bke,layoutAreas:Wke,attachFxHandlers:Fke,computeTransform:Xke}});var Jke=we((Gvr,Kke)=>{"use strict";var Yke=Jl(),QLt=Y3(),ePt=Ap().resizeText;Kke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");ePt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Yke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Yke.select(this).call(QLt,s,a,t)})})}});var Qke=we(LT=>{"use strict";var $ke=Cc();LT.name="pie";LT.plot=function(e,t,r,n){$ke.plotBasePlot(LT.name,e,t,r,n)};LT.clean=function(e,t,r,n){$ke.cleanBasePlot(LT.name,e,t,r,n)}});var tCe=we((Wvr,eCe)=>{"use strict";eCe.exports={attributes:F2(),supplyDefaults:O2().supplyDefaults,supplyLayoutDefaults:wke(),layoutAttributes:b6(),calc:CT().calc,crossTraceCalc:CT().crossTraceCalc,plot:S6().plot,style:Jke(),styleOne:Y3(),moduleType:"trace",name:"pie",basePlotModule:Qke(),categories:["pie-like","pie","showLegend"],meta:{}}});var iCe=we((jvr,rCe)=>{"use strict";rCe.exports=tCe()});var aCe=we(PT=>{"use strict";var nCe=Cc();PT.name="sunburst";PT.plot=function(e,t,r,n){nCe.plotBasePlot(PT.name,e,t,r,n)};PT.clean=function(e,t,r,n){nCe.cleanBasePlot(PT.name,e,t,r,n)}});var Fj=we((Zvr,oCe)=>{"use strict";oCe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var q4=we((Yvr,uCe)=>{"use strict";var tPt=Gf(),{hovertemplateAttrs:rPt,texttemplateAttrs:iPt,templatefallbackAttrs:sCe}=Ff(),nPt=nc(),aPt=zc().attributes,e1=F2(),lCe=Fj(),B4=Su().extendFlat,oPt=Id().pattern;uCe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:B4({colors:{valType:"data_array",editType:"calc"},line:{color:B4({},e1.marker.line.color,{dflt:null}),width:B4({},e1.marker.line.width,{dflt:1}),editType:"calc"},pattern:oPt,editType:"calc"},nPt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:e1.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:iPt({editType:"plot"},{keys:lCe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:sCe({editType:"plot"}),hovertext:e1.hovertext,hoverinfo:B4({},tPt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:rPt({},{keys:lCe.eventDataKeys}),hovertemplatefallback:sCe(),textfont:e1.textfont,insidetextorientation:e1.insidetextorientation,insidetextfont:e1.insidetextfont,outsidetextfont:B4({},e1.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:e1.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:aPt({name:"sunburst",trace:!0,editType:"calc"})}});var Oj=we((Kvr,fCe)=>{"use strict";fCe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var pCe=we((Jvr,dCe)=>{"use strict";var cCe=ei(),sPt=q4(),lPt=zc().defaults,uPt=i0().handleText,fPt=O2().handleMarkerDefaults,hCe=_c(),cPt=hCe.hasColorscale,hPt=hCe.handleDefaults;dCe.exports=function(t,r,n,i){function a(h,d){return cCe.coerce(t,r,sPt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),fPt(t,r,i,a);var l=r._hasColorscale=cPt(t,"marker","colors")||(t.marker||{}).coloraxis;l&&hPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",l?1:.7);var f=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",cCe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c="auto";uPt(t,r,i,a,c,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),lPt(r,i,a),r._length=null}});var mCe=we(($vr,vCe)=>{"use strict";var dPt=ei(),pPt=Oj();vCe.exports=function(t,r){function n(i,a){return dPt.coerce(t,r,pPt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var N4=we((M6,yCe)=>{(function(e,t){typeof M6=="object"&&typeof yCe!="undefined"?t(M6):(e=e||self,t(e.d3=e.d3||{}))})(M6,function(e){"use strict";function t(ze,Re){return ze.parent===Re.parent?1:2}function r(ze){return ze.reduce(n,0)/ze.length}function n(ze,Re){return ze+Re.x}function i(ze){return 1+ze.reduce(a,0)}function a(ze,Re){return Math.max(ze,Re.y)}function o(ze){for(var Re;Re=ze.children;)ze=Re[0];return ze}function s(ze){for(var Re;Re=ze.children;)ze=Re[Re.length-1];return ze}function u(){var ze=t,Re=1,ht=1,st=!1;function gt(xt){var pr,br=0;xt.eachAfter(function(kr){var Vr=kr.children;Vr?(kr.x=r(Vr),kr.y=i(Vr)):(kr.x=pr?br+=ze(kr,pr):0,kr.y=0,pr=kr)});var cr=o(xt),Er=s(xt),ii=cr.x-ze(cr,Er)/2,jr=Er.x+ze(Er,cr)/2;return xt.eachAfter(st?function(kr){kr.x=(kr.x-xt.x)*Re,kr.y=(xt.y-kr.y)*ht}:function(kr){kr.x=(kr.x-ii)/(jr-ii)*Re,kr.y=(1-(xt.y?kr.y/xt.y:1))*ht})}return gt.separation=function(xt){return arguments.length?(ze=xt,gt):ze},gt.size=function(xt){return arguments.length?(st=!1,Re=+xt[0],ht=+xt[1],gt):st?null:[Re,ht]},gt.nodeSize=function(xt){return arguments.length?(st=!0,Re=+xt[0],ht=+xt[1],gt):st?[Re,ht]:null},gt}function l(ze){var Re=0,ht=ze.children,st=ht&&ht.length;if(!st)Re=1;else for(;--st>=0;)Re+=ht[st].value;ze.value=Re}function f(){return this.eachAfter(l)}function c(ze){var Re=this,ht,st=[Re],gt,xt,pr;do for(ht=st.reverse(),st=[];Re=ht.pop();)if(ze(Re),gt=Re.children,gt)for(xt=0,pr=gt.length;xt=0;--gt)ht.push(st[gt]);return this}function d(ze){for(var Re=this,ht=[Re],st=[],gt,xt,pr;Re=ht.pop();)if(st.push(Re),gt=Re.children,gt)for(xt=0,pr=gt.length;xt=0;)ht+=st[gt].value;Re.value=ht})}function y(ze){return this.eachBefore(function(Re){Re.children&&Re.children.sort(ze)})}function b(ze){for(var Re=this,ht=v(Re,ze),st=[Re];Re!==ht;)Re=Re.parent,st.push(Re);for(var gt=st.length;ze!==ht;)st.splice(gt,0,ze),ze=ze.parent;return st}function v(ze,Re){if(ze===Re)return ze;var ht=ze.ancestors(),st=Re.ancestors(),gt=null;for(ze=ht.pop(),Re=st.pop();ze===Re;)gt=ze,ze=ht.pop(),Re=st.pop();return gt}function C(){for(var ze=this,Re=[ze];ze=ze.parent;)Re.push(ze);return Re}function M(){var ze=[];return this.each(function(Re){ze.push(Re)}),ze}function A(){var ze=[];return this.eachBefore(function(Re){Re.children||ze.push(Re)}),ze}function L(){var ze=this,Re=[];return ze.each(function(ht){ht!==ze&&Re.push({source:ht.parent,target:ht})}),Re}function x(ze,Re){var ht=new E(ze),st=+ze.value&&(ht.value=ze.value),gt,xt=[ht],pr,br,cr,Er;for(Re==null&&(Re=S);gt=xt.pop();)if(st&&(gt.value=+gt.data.value),(br=Re(gt.data))&&(Er=br.length))for(gt.children=new Array(Er),cr=Er-1;cr>=0;--cr)xt.push(pr=gt.children[cr]=new E(br[cr])),pr.parent=gt,pr.depth=gt.depth+1;return ht.eachBefore(P)}function k(){return x(this).eachBefore(m)}function S(ze){return ze.children}function m(ze){ze.data=ze.data.data}function P(ze){var Re=0;do ze.height=Re;while((ze=ze.parent)&&ze.height<++Re)}function E(ze){this.data=ze,this.depth=this.height=0,this.parent=null}E.prototype=x.prototype={constructor:E,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:y,path:b,ancestors:C,descendants:M,leaves:A,links:L,copy:k};var O=Array.prototype.slice;function F(ze){for(var Re=ze.length,ht,st;Re;)st=Math.random()*Re--|0,ht=ze[Re],ze[Re]=ze[st],ze[st]=ht;return ze}function U(ze){for(var Re=0,ht=(ze=F(O.call(ze))).length,st=[],gt,xt;Re0&&ht*ht>st*st+gt*gt}function N(ze,Re){for(var ht=0;htcr?(gt=(Er+cr-xt)/(2*Er),br=Math.sqrt(Math.max(0,cr/Er-gt*gt)),ht.x=ze.x-gt*st-br*pr,ht.y=ze.y-gt*pr+br*st):(gt=(Er+xt-cr)/(2*Er),br=Math.sqrt(Math.max(0,xt/Er-gt*gt)),ht.x=Re.x+gt*st-br*pr,ht.y=Re.y+gt*pr+br*st)):(ht.x=Re.x+ht.r,ht.y=Re.y)}function Ce(ze,Re){var ht=ze.r+Re.r-1e-6,st=Re.x-ze.x,gt=Re.y-ze.y;return ht>0&&ht*ht>st*st+gt*gt}function de(ze){var Re=ze._,ht=ze.next._,st=Re.r+ht.r,gt=(Re.x*ht.r+ht.x*Re.r)/st,xt=(Re.y*ht.r+ht.y*Re.r)/st;return gt*gt+xt*xt}function te(ze){this._=ze,this.next=null,this.previous=null}function Se(ze){if(!(gt=ze.length))return 0;var Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr;if(Re=ze[0],Re.x=0,Re.y=0,!(gt>1))return Re.r;if(ht=ze[1],Re.x=-ht.r,ht.x=Re.r,ht.y=0,!(gt>2))return Re.r+ht.r;Le(ht,Re,st=ze[2]),Re=new te(Re),ht=new te(ht),st=new te(st),Re.next=st.previous=ht,ht.next=Re.previous=st,st.next=ht.previous=Re;e:for(br=3;br0)throw new Error("cycle");return br}return ht.id=function(st){return arguments.length?(ze=He(st),ht):ze},ht.parentId=function(st){return arguments.length?(Re=He(st),ht):Re},ht}function oe(ze,Re){return ze.parent===Re.parent?1:2}function Ne(ze){var Re=ze.children;return Re?Re[0]:ze.t}function vt(ze){var Re=ze.children;return Re?Re[Re.length-1]:ze.t}function lt(ze,Re,ht){var st=ht/(Re.i-ze.i);Re.c-=st,Re.s+=ht,ze.c+=st,Re.z+=ht,Re.m+=ht}function We(ze){for(var Re=0,ht=0,st=ze.children,gt=st.length,xt;--gt>=0;)xt=st[gt],xt.z+=Re,xt.m+=Re,Re+=xt.s+(ht+=xt.c)}function Ve(ze,Re,ht){return ze.a.parent===Re.parent?ze.a:ht}function et(ze,Re){this._=ze,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Re}et.prototype=Object.create(E.prototype);function tt(ze){for(var Re=new et(ze,0),ht,st=[Re],gt,xt,pr,br;ht=st.pop();)if(xt=ht._.children)for(ht.children=new Array(br=xt.length),pr=br-1;pr>=0;--pr)st.push(gt=ht.children[pr]=new et(xt[pr],pr)),gt.parent=ht;return(Re.parent=new et(null,0)).children=[Re],Re}function Lt(){var ze=oe,Re=1,ht=1,st=null;function gt(Er){var ii=tt(Er);if(ii.eachAfter(xt),ii.parent.m=-ii.z,ii.eachBefore(pr),st)Er.eachBefore(cr);else{var jr=Er,kr=Er,Vr=Er;Er.eachBefore(function(hn){hn.xkr.x&&(kr=hn),hn.depth>Vr.depth&&(Vr=hn)});var Ai=jr===kr?1:ze(jr,kr)/2,Bi=Ai-jr.x,Di=Re/(kr.x+Ai+Bi),ln=ht/(Vr.depth||1);Er.eachBefore(function(hn){hn.x=(hn.x+Bi)*Di,hn.y=hn.depth*ln})}return Er}function xt(Er){var ii=Er.children,jr=Er.parent.children,kr=Er.i?jr[Er.i-1]:null;if(ii){We(Er);var Vr=(ii[0].z+ii[ii.length-1].z)/2;kr?(Er.z=kr.z+ze(Er._,kr._),Er.m=Er.z-Vr):Er.z=Vr}else kr&&(Er.z=kr.z+ze(Er._,kr._));Er.parent.A=br(Er,kr,Er.parent.A||jr[0])}function pr(Er){Er._.x=Er.z+Er.parent.m,Er.m+=Er.parent.m}function br(Er,ii,jr){if(ii){for(var kr=Er,Vr=Er,Ai=ii,Bi=kr.parent.children[0],Di=kr.m,ln=Vr.m,hn=Ai.m,qr=Bi.m,_i;Ai=vt(Ai),kr=Ne(kr),Ai&&kr;)Bi=Ne(Bi),Vr=vt(Vr),Vr.a=Er,_i=Ai.z+hn-kr.z-Di+ze(Ai._,kr._),_i>0&&(lt(Ve(Ai,Er,jr),Er,_i),Di+=_i,ln+=_i),hn+=Ai.m,Di+=kr.m,qr+=Bi.m,ln+=Vr.m;Ai&&!vt(Vr)&&(Vr.t=Ai,Vr.m+=hn-ln),kr&&!Ne(Bi)&&(Bi.t=kr,Bi.m+=Di-qr,jr=Er)}return jr}function cr(Er){Er.x*=Re,Er.y=Er.depth*ht}return gt.separation=function(Er){return arguments.length?(ze=Er,gt):ze},gt.size=function(Er){return arguments.length?(st=!1,Re=+Er[0],ht=+Er[1],gt):st?null:[Re,ht]},gt.nodeSize=function(Er){return arguments.length?(st=!0,Re=+Er[0],ht=+Er[1],gt):st?[Re,ht]:null},gt}function jt(ze,Re,ht,st,gt){for(var xt=ze.children,pr,br=-1,cr=xt.length,Er=ze.value&&(gt-ht)/ze.value;++brhn&&(hn=Er),Rt=Di*Di*zi,qr=Math.max(hn/Rt,Rt/ln),qr>_i){Di-=Er;break}_i=qr}pr.push(cr={value:Di,dice:Vr1?st:1)},ht}(or);function Vt(){var ze=vr,Re=!1,ht=1,st=1,gt=[0],xt=Ie,pr=Ie,br=Ie,cr=Ie,Er=Ie;function ii(kr){return kr.x0=kr.y0=0,kr.x1=ht,kr.y1=st,kr.eachBefore(jr),gt=[0],Re&&kr.eachBefore(Ot),kr}function jr(kr){var Vr=gt[kr.depth],Ai=kr.x0+Vr,Bi=kr.y0+Vr,Di=kr.x1-Vr,ln=kr.y1-Vr;Di=kr-1){var hn=xt[jr];hn.x0=Ai,hn.y0=Bi,hn.x1=Di,hn.y1=ln;return}for(var qr=Er[jr],_i=Vr/2+qr,zi=jr+1,Rt=kr-1;zi>>1;Er[_t]<_i?zi=_t+1:Rt=_t}_i-Er[zi-1]ln-Bi){var mr=(Ai*Nt+Di*qt)/Vr;ii(jr,zi,qt,Ai,Bi,mr,ln),ii(zi,kr,Nt,mr,Bi,Di,ln)}else{var Lr=(Bi*Nt+ln*qt)/Vr;ii(jr,zi,qt,Ai,Bi,Di,Lr),ii(zi,kr,Nt,Ai,Lr,Di,ln)}}}function xe(ze,Re,ht,st,gt){(ze.depth&1?jt:it)(ze,Re,ht,st,gt)}var Oe=function ze(Re){function ht(st,gt,xt,pr,br){if((cr=st._squarify)&&cr.ratio===Re)for(var cr,Er,ii,jr,kr=-1,Vr,Ai=cr.length,Bi=st.value;++kr1?st:1)},ht}(or);e.cluster=u,e.hierarchy=x,e.pack=ce,e.packEnclose=U,e.packSiblings=Te,e.partition=Ke,e.stratify=Me,e.tree=Lt,e.treemap=Vt,e.treemapBinary=Pe,e.treemapDice=it,e.treemapResquarify=Oe,e.treemapSlice=jt,e.treemapSliceDice=xe,e.treemapSquarify=vr,Object.defineProperty(e,"__esModule",{value:!0})})});var V4=we(U4=>{"use strict";var gCe=N4(),vPt=ku(),zT=ei(),mPt=_c().makeColorScaleFuncFromTrace,yPt=CT().makePullColorFn,gPt=CT().generateExtendedColors,_Pt=_c().calc,xPt=rf().ALMOST_EQUAL,bPt={},wPt={},APt={};U4.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=zT.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,u=zT.isArrayOrTypedArray(s),l=[],f={},c={},h=function(W,N){f[W]?f[W].push(N):f[W]=[N],c[N]=1},d=function(W){return W||typeof W=="number"},p=function(W){return!u||vPt(s[W])&&s[W]>=0},y,b,v;i?(y=Math.min(n.length,o.length),b=function(W){return d(n[W])&&p(W)},v=function(W){return String(n[W])}):(y=Math.min(a.length,o.length),b=function(W){return d(a[W])&&p(W)},v=function(W){return String(a[W])}),u&&(y=Math.min(y,s.length));for(var C=0;C1){for(var S=zT.randstr(),m=0;m{"use strict";var HCt=xc().str2arr,WCt=xc().sliceEq,R4e=xc().readUInt32BE,jCt=HCt("8BPS\0");D4e.exports=function(e){if(!(e.length<22)&&WCt(e,0,jCt))return{width:R4e(e,18),height:R4e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var q4e=we((Uvr,B4e)=>{"use strict";function XCt(e){return e===32||e===9||e===13||e===10}function LT(e){return typeof e=="number"&&isFinite(e)&&e>0}function ZCt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,KCt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,JCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,$Ct=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,QCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,O4e=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function eLt(e){var t=e.match(JCt),r=e.match($Ct),n=e.match(QCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Zy(e){return O4e.test(e)?e.match(O4e)[0]:"px"}B4e.exports=function(e){if(ZCt(e)){for(var t="",r=0;r{"use strict";var V4e=xc().str2arr,N4e=xc().sliceEq,tLt=xc().readUInt16LE,rLt=xc().readUInt16BE,iLt=xc().readUInt32LE,nLt=xc().readUInt32BE,aLt=V4e("II*\0"),oLt=V4e("MM\0*");function g6(e,t,r){return r?rLt(e,t):tLt(e,t)}function Pj(e,t,r){return r?nLt(e,t):iLt(e,t)}function U4e(e,t,r){var n=g6(e,t+2,r),i=Pj(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?g6(e,t+8,r):Pj(e,t+8,r)}G4e.exports=function(e){if(!(e.length<8)&&!(!N4e(e,0,aLt)&&!N4e(e,0,oLt))){var t=e[0]===77,r=Pj(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=g6(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var X4e=xc().str2arr,W4e=xc().sliceEq,j4e=xc().readUInt16LE,zj=xc().readUInt32LE,sLt=m6(),lLt=X4e("RIFF"),uLt=X4e("WEBP");function fLt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:j4e(e,t+6)&16383,height:j4e(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function cLt(e,t){if(e[t]===47){var r=zj(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function hLt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||fLt(e,t+8):a==="VP8L"&&o>=9?r=r||cLt(e,t+8):a==="VP8X"&&o>=10?r=r||hLt(e,t+8):a==="EXIF"&&(n=sLt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var J4e=we((Hvr,K4e)=>{"use strict";K4e.exports={avif:v4e(),bmp:g4e(),gif:A4e(),ico:M4e(),jpeg:k4e(),png:I4e(),psd:F4e(),svg:q4e(),tiff:H4e(),webp:Y4e()}});var $4e=we((Wvr,Rj)=>{"use strict";var Ij=J4e();function dLt(e){for(var t=Object.keys(Ij),r=0;r{"use strict";var pLt=$4e(),vLt=Bg().IMAGE_URL_PREFIX,mLt=w2().Buffer;Q4e.getImageSize=function(e){var t=e.replace(vLt,""),r=new mLt(t,"base64");return pLt(r)}});var ike=we((Xvr,rke)=>{"use strict";var tke=ei(),yLt=iT(),gLt=ku(),_6=wu(),_Lt=ei().maxRowLength,xLt=eke().getImageSize;rke.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=_Lt(r.z);else if(r._hasSource){var a=xLt(r.source);n=a.height,i=a.width}var o=_6.getFromId(t,r.xaxis||"x"),s=_6.getFromId(t,r.yaxis||"y"),u=o.d2c(r.x0)-r.dx/2,l=s.d2c(r.y0)-r.dy/2,f,c=[u,u+i*r.dx],h=[l,l+n*r.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var TLt=Kl(),F2=ei(),nke=F2.strTranslate,SLt=jv(),MLt=iT(),ELt=xG(),kLt=_R().STYLE;ake.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&ELt();F2.makeTraceGroups(i,n,"im").each(function(u){var l=TLt.select(this),f=u[0],c=f.trace,h=(c.zsmooth==="fast"||c.zsmooth===!1&&s)&&!c._hasZ&&c._hasSource&&a.type==="linear"&&o.type==="linear";c._realImage=h;var d=f.z,p=f.x0,y=f.y0,b=f.w,v=f.h,C=c.dx,E=c.dy,A,L,x,k,S,m;for(m=0;A===void 0&&m0;)L=a.c2p(p+m*C),m--;for(m=0;k===void 0&&m0;)S=o.c2p(y+m*E),m--;if(LH[0];if(re||ae){var me=A+M/2,Ce=k+O/2;W+="transform:"+nke(me+"px",Ce+"px")+"scale("+(re?-1:1)+","+(ae?-1:1)+")"+nke(-me+"px",-Ce+"px")+";"}}j.attr("style",W);var Ee=new Promise(function(de){if(c._hasZ)de();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===b&&c._canvas.el.height===v&&c._canvas.source===c.source)de();else{var te=document.createElement("canvas");te.width=b,te.height=v;var Se=te.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var Te=c._image;Te.onload=function(){Se.drawImage(Te,0,0),c._canvas={el:te,source:c.source},de()},Te.setAttribute("src",c.source)}}).then(function(){var de,te;if(c._hasZ)te=G(function(be,He){var Ie=d[He][be];return F2.isTypedArray(Ie)&&(Ie=Array.from(Ie)),Ie}),de=te.toDataURL("image/png");else if(c._hasSource)if(h)de=c.source;else{var Se=c._canvas.el.getContext("2d",{willReadFrequently:!0}),Te=Se.getImageData(0,0,b,v).data;te=G(function(be,He){var Ie=4*(He*b+be);return[Te[Ie],Te[Ie+1],Te[Ie+2],Te[Ie+3]]}),de=te.toDataURL("image/png")}j.attr({"xlink:href":de,height:O,width:M,x:A,y:k})});t._promises.push(Ee)})}});var lke=we((Yvr,ske)=>{"use strict";var CLt=Kl();ske.exports=function(t){CLt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var hke=we((Kvr,cke)=>{"use strict";var uke=Vc(),fke=ei(),x6=fke.isArrayOrTypedArray,LLt=iT();cke.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(uke.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||uke.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var u=Math.floor((r-i.x0)/a.dx),l=Math.floor(Math.abs(n-i.y0)/a.dy),f;if(a._hasZ?f=i.z[l][u]:a._hasSource&&(f=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(u,l,1,1).data),!!f){var c=i.hi||a.hoverinfo,h;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var p=LLt.colormodel[a.colormodel],y=p.colormodel||a.colormodel,b=y.length,v=a._scaler(f),C=p.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[v[0]+C[0],v[1]+C[1],v[2]+C[2]].join(", ")),b===4&&E.push(", "+v[3]+C[3]),E.push("]"),E=E.join(""),t.extraText=y.toUpperCase()+": "+E);var A;x6(a.hovertext)&&x6(a.hovertext[l])?A=a.hovertext[l][u]:x6(a.text)&&x6(a.text[l])&&(A=a.text[l][u]);var L=s.c2p(i.y0+(l+.5)*a.dy),x=i.x0+(u+.5)*a.dx,k=i.y0+(l+.5)*a.dy,S="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[fke.extendFlat(t,{index:[l,u],x0:o.c2p(i.x0+u*a.dx),x1:o.c2p(i.x0+(u+1)*a.dx),y0:L,y1:L,color:v,xVal:x,xLabelVal:x,yVal:k,yLabelVal:k,zLabelVal:S,text:A,hovertemplateLabels:{zLabel:S,colorLabel:E,"color[0]Label":v[0]+C[0],"color[1]Label":v[1]+C[1],"color[2]Label":v[2]+C[2],"color[3]Label":v[3]+C[3]}})]}}}});var pke=we((Jvr,dke)=>{"use strict";dke.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var mke=we(($vr,vke)=>{"use strict";vke.exports={attributes:LH(),supplyDefaults:hAe(),calc:ike(),plot:oke(),style:lke(),hoverPoints:hke(),eventData:pke(),moduleType:"trace",name:"image",basePlotModule:Mh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var gke=we((Qvr,yke)=>{"use strict";yke.exports=mke()});var O2=we((e0r,xke)=>{"use strict";var b6=Vf(),PLt=zc().attributes,zLt=gc(),ILt=Bh(),{hovertemplateAttrs:RLt,texttemplateAttrs:DLt,templatefallbackAttrs:_ke}=Of(),Q_=Su().extendFlat,FLt=Id().pattern,w6=zLt({editType:"plot",arrayOk:!0,colorEditType:"plot"});xke.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:ILt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:FLt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Q_({},b6.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:RLt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:_ke(),texttemplate:DLt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:_ke({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Q_({},w6,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Q_({},w6,{}),outsidetextfont:Q_({},w6,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Q_({},b6.showlegend,{arrayOk:!0}),legend:Q_({},b6.legend,{arrayOk:!0}),legendrank:Q_({},b6.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Q_({},w6,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:PLt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var B2=we((t0r,Ake)=>{"use strict";var OLt=ku(),q4=ei(),BLt=O2(),qLt=zc().defaults,NLt=i0().handleText,ULt=ei().coercePattern;function bke(e,t){var r=q4.isArrayOrTypedArray(e),n=q4.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function wke(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");ULt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function VLt(e,t,r,n){function i(C,E){return q4.coerce(e,t,BLt,C,E)}var a=i("labels"),o=i("values"),s=bke(a,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,wke(e,t,n,i,!0),i("scalegroup");var l=i("text"),f=i("texttemplate");i("texttemplatefallback");var c;if(f||(c=i("textinfo",q4.isArrayOrTypedArray(l)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),f||c&&c!=="none"){var h=i("textposition");NLt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else c==="none"&&i("textposition","none");qLt(t,n,i);var y=i("hole"),b=i("title.text");if(b){var v=i("title.position",y?"middle center":"top center");!y&&v==="middle center"&&(t.title.position="top center"),q4.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}Ake.exports={handleLabelsAndValues:bke,handleMarkerDefaults:wke,supplyDefaults:VLt}});var A6=we((r0r,Tke)=>{"use strict";Tke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Mke=we((i0r,Ske)=>{"use strict";var GLt=ei(),HLt=A6();Ske.exports=function(t,r){function n(i,a){return GLt.coerce(t,r,HLt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var PT=we((n0r,Cke)=>{"use strict";var WLt=ku(),Dj=hd(),jLt=jl(),XLt={};function ZLt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,u=t._length,l=t._hasValues&&u,f,c;if(t.dlabel)for(a=new Array(u),f=0;f=0});var A=t.type==="funnelarea"?y:t.sort;return A&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=p),r}function Eke(e){return function(r,n){return!r||(r=Dj(r),!r.isValid())?!1:(r=jLt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function YLt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=kke(a,XLt));for(var s=0,u=0;u{"use strict";var KLt=iv().appendArrayMultiPointValues;Lke.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),KLt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var E6=we((o0r,$ke)=>{"use strict";var Dv=Kl(),JLt=Cc(),T6=Vc(),Oke=jl(),e1=Mu(),ap=ei(),$Lt=ap.strScale,zke=ap.strTranslate,Fj=Wf(),Bke=Ap(),QLt=Bke.recordMinTextSize,ePt=Bke.clearMinTextSize,qke=S_().TEXTPAD,Zu=y_(),S6=Pke(),Ike=ei().isValidTextValue;function tPt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;ePt("pie",n),Vke(t,e),Yke(t,i);var a=ap.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Dv.select(this),u=o[0],l=u.trace;fPt(o),s.attr("stroke-linejoin","round"),s.each(function(){var f=Dv.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(A,L){if(A.hidden){Dv.select(this).selectAll("path,g").remove();return}A.pointNumber=A.i,A.curveNumber=l.index,c[A.pxmid[1]<0?0:1][A.pxmid[0]<0?0:1].push(A);var x=u.cx,k=u.cy,S=Dv.select(this),m=S.selectAll("path.surface").data([A]);if(m.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),S.call(Nke,e,o),l.pull){var P=+Zu.castOption(l.pull,A.pts)||0;P>0&&(x+=P*A.pxmid[0],k+=P*A.pxmid[1])}A.cxFinal=x,A.cyFinal=k;function M(N,H,re,ae){var me=ae*(H[0]-N[0]),Ce=ae*(H[1]-N[1]);return"a"+ae*u.r+","+ae*u.r+" 0 "+A.largeArc+(re?" 1 ":" 0 ")+me+","+Ce}var O=l.hole;if(A.v===u.vTotal){var F="M"+(x+A.px0[0])+","+(k+A.px0[1])+M(A.px0,A.pxmid,!0,1)+M(A.pxmid,A.px0,!0,1)+"Z";O?m.attr("d","M"+(x+O*A.px0[0])+","+(k+O*A.px0[1])+M(A.px0,A.pxmid,!1,O)+M(A.pxmid,A.px0,!1,O)+"Z"+F):m.attr("d",F)}else{var U=M(A.px0,A.px1,!0,1);if(O){var G=1-O;m.attr("d","M"+(x+O*A.px1[0])+","+(k+O*A.px1[1])+M(A.px1,A.px0,!1,O)+"l"+G*A.px0[0]+","+G*A.px0[1]+U+"Z")}else m.attr("d","M"+x+","+k+"l"+A.px0[0]+","+A.px0[1]+U+"Z")}Kke(e,A,u);var j=Zu.castOption(l.textposition,A.pts),W=S.selectAll("g.slicetext").data(A.text&&j!=="none"?[0]:[]);W.enter().append("g").classed("slicetext",!0),W.exit().remove(),W.each(function(){var N=ap.ensureSingle(Dv.select(this),"text","",function(te){te.attr("data-notex",1)}),H=ap.ensureUniformFontSize(e,j==="outside"?iPt(l,A,n.font):Uke(l,A,n.font));N.text(A.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(e1.font,H).call(Fj.convertToTspans,e);var re=e1.bBox(N.node()),ae;if(j==="outside")ae=Fke(re,A);else if(ae=Gke(re,A,u),j==="auto"&&ae.scale<1){var me=ap.ensureUniformFontSize(e,l.outsidetextfont);N.call(e1.font,me),re=e1.bBox(N.node()),ae=Fke(re,A)}var Ce=ae.textPosAngle,Ee=Ce===void 0?A.pxmid:M6(u.r,Ce);if(ae.targetX=x+Ee[0]*ae.rCenter+(ae.x||0),ae.targetY=k+Ee[1]*ae.rCenter+(ae.y||0),Jke(ae,re),ae.outside){var de=ae.targetY;A.yLabelMin=de-re.height/2,A.yLabelMid=de,A.yLabelMax=de+re.height/2,A.labelExtraX=0,A.labelExtraY=0,h=!0}ae.fontSize=H.size,QLt(l.type,ae,n),o[L].transform=ae,ap.setTransormAndDisplay(N,ae)})});var d=Dv.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var A=ap.ensureSingle(Dv.select(this),"text","",function(k){k.attr("data-notex",1)}),L=l.title.text;l._meta&&(L=ap.templateString(L,l._meta)),A.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(e1.font,l.title.font).call(Fj.convertToTspans,e);var x;l.title.position==="middle center"?x=oPt(u):x=Xke(u,i),A.attr("transform",zke(x.x,x.y)+$Lt(Math.min(1,x.scale))+zke(x.tx,x.ty))}),h&&lPt(c,l),rPt(f,l),h&&l.automargin){var p=e1.bBox(s.node()),y=l.domain,b=i.w*(y.x[1]-y.x[0]),v=i.h*(y.y[1]-y.y[0]),C=(.5*b-u.r)/i.w,E=(.5*v-u.r)/i.h;JLt.autoMargin(e,"pie."+l.uid+".automargin",{xl:y.x[0]-C,xr:y.x[1]+C,yb:y.y[0]-E,yt:y.y[1]+E,l:Math.max(u.cx-u.r-p.left,0),r:Math.max(p.right-(u.cx+u.r),0),b:Math.max(p.bottom-(u.cy+u.r),0),t:Math.max(u.cy-u.r-p.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Dv.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function rPt(e,t){e.each(function(r){var n=Dv.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,ap.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,u=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var l=r.labelExtraX*r.pxmid[1]/r.pxmid[0],f=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(l)>Math.abs(f)?s+="l"+f*r.pxmid[0]/r.pxmid[1]+","+f+"H"+(a+r.labelExtraX+u):s+="l"+r.labelExtraX+","+l+"v"+(f-l)+"h"+u}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+u;ap.ensureSingle(n,"path","textline").call(Oke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function Nke(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(u){var l=t._fullLayout,f=t._fullData[o.index];if(!(t._dragging||l.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=T6.castHoverinfo({hoverinfo:[Zu.castOption(c,u.pts)],_module:o._module},l,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=u.rInscribed||0,d=i+u.pxmid[0]*(1-h),p=a+u.pxmid[1]*(1-h),y=l.separators,b=[];if(c&&c.indexOf("label")!==-1&&b.push(u.label),u.text=Zu.castOption(f.hovertext||f.text,u.pts),c&&c.indexOf("text")!==-1){var v=u.text;ap.isValidTextValue(v)&&b.push(v)}u.value=u.v,u.valueLabel=Zu.formatPieValue(u.v,y),c&&c.indexOf("value")!==-1&&b.push(u.valueLabel),u.percent=u.v/n.vTotal,u.percentLabel=Zu.formatPiePercent(u.percent,y),c&&c.indexOf("percent")!==-1&&b.push(u.percentLabel);var C=f.hoverlabel,E=C.font,A=[];T6.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:p,_x0:s?i+u.TL[0]:d-h*n.r,_x1:s?i+u.TR[0]:d+h*n.r,_y0:s?a+u.TL[1]:p-h*n.r,_y1:s?a+u.BL[1]:p+h*n.r,text:b.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:u.pxmid[0]<0?"left":"right",color:Zu.castOption(C.bgcolor,u.pts)||u.color,borderColor:Zu.castOption(C.bordercolor,u.pts),fontFamily:Zu.castOption(E.family,u.pts),fontSize:Zu.castOption(E.size,u.pts),fontColor:Zu.castOption(E.color,u.pts),nameLength:Zu.castOption(C.namelength,u.pts),textAlign:Zu.castOption(C.align,u.pts),hovertemplate:Zu.castOption(f.hovertemplate,u.pts),hovertemplateLabels:u,eventData:[S6(u,f)]},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:t,inOut_bbox:A}),u.bbox=A[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[S6(u,f)],event:Dv.event})}}),e.on("mouseout",function(u){var l=t._fullLayout,f=t._fullData[o.index],c=Dv.select(this).datum();o._hasHoverEvent&&(u.originalEvent=Dv.event,t.emit("plotly_unhover",{points:[S6(c,f)],event:Dv.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(T6.loneUnhover(l._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(u){var l=t._fullLayout,f=t._fullData[o.index];t._dragging||l.hovermode===!1||(t._hoverdata=[S6(u,f)],T6.click(t,Dv.event))})}function iPt(e,t,r){var n=Zu.castOption(e.outsidetextfont.color,t.pts)||Zu.castOption(e.textfont.color,t.pts)||r.color,i=Zu.castOption(e.outsidetextfont.family,t.pts)||Zu.castOption(e.textfont.family,t.pts)||r.family,a=Zu.castOption(e.outsidetextfont.size,t.pts)||Zu.castOption(e.textfont.size,t.pts)||r.size,o=Zu.castOption(e.outsidetextfont.weight,t.pts)||Zu.castOption(e.textfont.weight,t.pts)||r.weight,s=Zu.castOption(e.outsidetextfont.style,t.pts)||Zu.castOption(e.textfont.style,t.pts)||r.style,u=Zu.castOption(e.outsidetextfont.variant,t.pts)||Zu.castOption(e.textfont.variant,t.pts)||r.variant,l=Zu.castOption(e.outsidetextfont.textcase,t.pts)||Zu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Zu.castOption(e.outsidetextfont.lineposition,t.pts)||Zu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Zu.castOption(e.outsidetextfont.shadow,t.pts)||Zu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function Uke(e,t,r){var n=Zu.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=Zu.castOption(e._input.textfont.color,t.pts));var i=Zu.castOption(e.insidetextfont.family,t.pts)||Zu.castOption(e.textfont.family,t.pts)||r.family,a=Zu.castOption(e.insidetextfont.size,t.pts)||Zu.castOption(e.textfont.size,t.pts)||r.size,o=Zu.castOption(e.insidetextfont.weight,t.pts)||Zu.castOption(e.textfont.weight,t.pts)||r.weight,s=Zu.castOption(e.insidetextfont.style,t.pts)||Zu.castOption(e.textfont.style,t.pts)||r.style,u=Zu.castOption(e.insidetextfont.variant,t.pts)||Zu.castOption(e.textfont.variant,t.pts)||r.variant,l=Zu.castOption(e.insidetextfont.textcase,t.pts)||Zu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Zu.castOption(e.insidetextfont.lineposition,t.pts)||Zu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Zu.castOption(e.insidetextfont.shadow,t.pts)||Zu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||Oke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function Vke(e,t){for(var r,n,i=0;i=-4;C-=2)v(Math.PI*C,"tan");for(C=4;C>=-4;C-=2)v(Math.PI*(C+1),"tan")}if(c||d){for(C=4;C>=-4;C-=2)v(Math.PI*(C+1.5),"rad");for(C=4;C>=-4;C-=2)v(Math.PI*(C+.5),"rad")}}if(s||p||c){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;y.push(b)}(p||d)&&(b=Rke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,y.push(b)),(p||h)&&(b=Dke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,y.push(b));for(var A=0,L=0,x=0;x=1)break}return y[A]}function nPt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function oPt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Xke(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=Zke(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var u=sPt(e.r,e.trace.aspectratio),l=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(l=l+u,o.x-=(1+i)*u,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?l*=2:a.title.position.indexOf("right")!==-1&&(l=l+u,o.x+=(1+i)*u,s.tx-=e.titleBox.width/2),r=l/e.titleBox.width,n=Oj(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function sPt(e,t){return e/(t===void 0?1:t)}function Oj(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function Zke(e){var t=e.pull;if(!t)return 0;var r;if(ap.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function lPt(e,t){var r,n,i,a,o,s,u,l,f,c,h,d,p;function y(E,A){return E.pxmid[1]-A.pxmid[1]}function b(E,A){return A.pxmid[1]-E.pxmid[1]}function v(E,A){A||(A={});var L=A.labelExtraY+(n?A.yLabelMax:A.yLabelMin),x=n?E.yLabelMin:E.yLabelMax,k=n?E.yLabelMax:E.yLabelMin,S=E.cyFinal+o(E.px0[1],E.px1[1]),m=L-x,P,M,O,F,U,G;if(m*u>0&&(E.labelExtraY=m),!!ap.isArrayOrTypedArray(t.pull))for(M=0;M=(Zu.castOption(t.pull,O.pts)||0))&&((E.pxmid[1]-O.pxmid[1])*u>0?(F=O.cyFinal+o(O.px0[1],O.px1[1]),m=F-x-E.labelExtraY,m*u>0&&(E.labelExtraY+=m)):(k+E.labelExtraY-S)*u>0&&(P=3*s*Math.abs(M-c.indexOf(E)),U=O.cxFinal+a(O.px0[0],O.px1[0]),G=U+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?y:b,o=n?Math.max:Math.min,u=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,l=e[n][r],l.sort(i),f=e[1-n][r],c=f.concat(l),d=[],h=0;h1?(l=r.r,f=l/i.aspectratio):(f=r.r,l=f*i.aspectratio),l*=(1+i.baseratio)/2,u=l*f}o=Math.min(o,u/r.vTotal)}for(n=0;nt.vTotal/2?1:0,l.halfangle=Math.PI*Math.min(l.v/t.vTotal,.5),l.ring=1-n.hole,l.rInscribed=aPt(l,t))}function M6(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Kke(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),u=function(A){return s.indexOf(A)!==-1},l=u("label"),f=u("text"),c=u("value"),h=u("percent"),d=n.separators,p;if(p=l?[t.label]:[],f){var y=Zu.getFirstFilled(i.text,t.pts);Ike(y)&&p.push(y)}c&&p.push(Zu.formatPieValue(t.v,d)),h&&p.push(Zu.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function b(A){return{label:A.label,value:A.v,valueLabel:Zu.formatPieValue(A.v,n.separators),percent:A.v/r.vTotal,percentLabel:Zu.formatPiePercent(A.v/r.vTotal,n.separators),color:A.color,text:A.text,customdata:ap.castOption(i,A.i,"customdata")}}if(a){var v=ap.castOption(i,t.i,"texttemplate");if(!v)t.text="";else{var C=b(t),E=Zu.getFirstFilled(i.text,t.pts);(Ike(E)||E==="")&&(C.text=E),t.text=ap.texttemplateString({data:[C,i._meta],fallback:i.texttemplatefallback,labels:C,locale:e._fullLayout._d3locale,template:v})}}}function Jke(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}$ke.exports={plot:tPt,formatSliceLabel:Kke,transformInsideText:Gke,determineInsideTextFont:Uke,positionTitleOutside:Xke,prerenderTitles:Vke,layoutAreas:Yke,attachFxHandlers:Nke,computeTransform:Jke}});var tCe=we((s0r,eCe)=>{"use strict";var Qke=Kl(),cPt=J3(),hPt=Ap().resizeText;eCe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");hPt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Qke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Qke.select(this).call(cPt,s,a,t)})})}});var iCe=we(zT=>{"use strict";var rCe=Cc();zT.name="pie";zT.plot=function(e,t,r,n){rCe.plotBasePlot(zT.name,e,t,r,n)};zT.clean=function(e,t,r,n){rCe.cleanBasePlot(zT.name,e,t,r,n)}});var aCe=we((u0r,nCe)=>{"use strict";nCe.exports={attributes:O2(),supplyDefaults:B2().supplyDefaults,supplyLayoutDefaults:Mke(),layoutAttributes:A6(),calc:PT().calc,crossTraceCalc:PT().crossTraceCalc,plot:E6().plot,style:tCe(),styleOne:J3(),moduleType:"trace",name:"pie",basePlotModule:iCe(),categories:["pie-like","pie","showLegend"],meta:{}}});var sCe=we((f0r,oCe)=>{"use strict";oCe.exports=aCe()});var uCe=we(IT=>{"use strict";var lCe=Cc();IT.name="sunburst";IT.plot=function(e,t,r,n){lCe.plotBasePlot(IT.name,e,t,r,n)};IT.clean=function(e,t,r,n){lCe.cleanBasePlot(IT.name,e,t,r,n)}});var Bj=we((h0r,fCe)=>{"use strict";fCe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var U4=we((d0r,dCe)=>{"use strict";var dPt=Vf(),{hovertemplateAttrs:pPt,texttemplateAttrs:vPt,templatefallbackAttrs:cCe}=Of(),mPt=nc(),yPt=zc().attributes,t1=O2(),hCe=Bj(),N4=Su().extendFlat,gPt=Id().pattern;dCe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:N4({colors:{valType:"data_array",editType:"calc"},line:{color:N4({},t1.marker.line.color,{dflt:null}),width:N4({},t1.marker.line.width,{dflt:1}),editType:"calc"},pattern:gPt,editType:"calc"},mPt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:t1.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:vPt({editType:"plot"},{keys:hCe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:cCe({editType:"plot"}),hovertext:t1.hovertext,hoverinfo:N4({},dPt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:pPt({},{keys:hCe.eventDataKeys}),hovertemplatefallback:cCe(),textfont:t1.textfont,insidetextorientation:t1.insidetextorientation,insidetextfont:t1.insidetextfont,outsidetextfont:N4({},t1.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:t1.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:yPt({name:"sunburst",trace:!0,editType:"calc"})}});var qj=we((p0r,pCe)=>{"use strict";pCe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var gCe=we((v0r,yCe)=>{"use strict";var vCe=ei(),_Pt=U4(),xPt=zc().defaults,bPt=i0().handleText,wPt=B2().handleMarkerDefaults,mCe=_c(),APt=mCe.hasColorscale,TPt=mCe.handleDefaults;yCe.exports=function(t,r,n,i){function a(h,d){return vCe.coerce(t,r,_Pt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),wPt(t,r,i,a);var l=r._hasColorscale=APt(t,"marker","colors")||(t.marker||{}).coloraxis;l&&TPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",l?1:.7);var f=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",vCe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c="auto";bPt(t,r,i,a,c,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),xPt(r,i,a),r._length=null}});var xCe=we((m0r,_Ce)=>{"use strict";var SPt=ei(),MPt=qj();_Ce.exports=function(t,r){function n(i,a){return SPt.coerce(t,r,MPt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var V4=we((k6,bCe)=>{(function(e,t){typeof k6=="object"&&typeof bCe!="undefined"?t(k6):(e=e||self,t(e.d3=e.d3||{}))})(k6,function(e){"use strict";function t(ze,De){return ze.parent===De.parent?1:2}function r(ze){return ze.reduce(n,0)/ze.length}function n(ze,De){return ze+De.x}function i(ze){return 1+ze.reduce(a,0)}function a(ze,De){return Math.max(ze,De.y)}function o(ze){for(var De;De=ze.children;)ze=De[0];return ze}function s(ze){for(var De;De=ze.children;)ze=De[De.length-1];return ze}function u(){var ze=t,De=1,ht=1,st=!1;function gt(xt){var pr,br=0;xt.eachAfter(function(kr){var Vr=kr.children;Vr?(kr.x=r(Vr),kr.y=i(Vr)):(kr.x=pr?br+=ze(kr,pr):0,kr.y=0,pr=kr)});var cr=o(xt),Er=s(xt),ii=cr.x-ze(cr,Er)/2,jr=Er.x+ze(Er,cr)/2;return xt.eachAfter(st?function(kr){kr.x=(kr.x-xt.x)*De,kr.y=(xt.y-kr.y)*ht}:function(kr){kr.x=(kr.x-ii)/(jr-ii)*De,kr.y=(1-(xt.y?kr.y/xt.y:1))*ht})}return gt.separation=function(xt){return arguments.length?(ze=xt,gt):ze},gt.size=function(xt){return arguments.length?(st=!1,De=+xt[0],ht=+xt[1],gt):st?null:[De,ht]},gt.nodeSize=function(xt){return arguments.length?(st=!0,De=+xt[0],ht=+xt[1],gt):st?[De,ht]:null},gt}function l(ze){var De=0,ht=ze.children,st=ht&&ht.length;if(!st)De=1;else for(;--st>=0;)De+=ht[st].value;ze.value=De}function f(){return this.eachAfter(l)}function c(ze){var De=this,ht,st=[De],gt,xt,pr;do for(ht=st.reverse(),st=[];De=ht.pop();)if(ze(De),gt=De.children,gt)for(xt=0,pr=gt.length;xt=0;--gt)ht.push(st[gt]);return this}function d(ze){for(var De=this,ht=[De],st=[],gt,xt,pr;De=ht.pop();)if(st.push(De),gt=De.children,gt)for(xt=0,pr=gt.length;xt=0;)ht+=st[gt].value;De.value=ht})}function y(ze){return this.eachBefore(function(De){De.children&&De.children.sort(ze)})}function b(ze){for(var De=this,ht=v(De,ze),st=[De];De!==ht;)De=De.parent,st.push(De);for(var gt=st.length;ze!==ht;)st.splice(gt,0,ze),ze=ze.parent;return st}function v(ze,De){if(ze===De)return ze;var ht=ze.ancestors(),st=De.ancestors(),gt=null;for(ze=ht.pop(),De=st.pop();ze===De;)gt=ze,ze=ht.pop(),De=st.pop();return gt}function C(){for(var ze=this,De=[ze];ze=ze.parent;)De.push(ze);return De}function E(){var ze=[];return this.each(function(De){ze.push(De)}),ze}function A(){var ze=[];return this.eachBefore(function(De){De.children||ze.push(De)}),ze}function L(){var ze=this,De=[];return ze.each(function(ht){ht!==ze&&De.push({source:ht.parent,target:ht})}),De}function x(ze,De){var ht=new M(ze),st=+ze.value&&(ht.value=ze.value),gt,xt=[ht],pr,br,cr,Er;for(De==null&&(De=S);gt=xt.pop();)if(st&&(gt.value=+gt.data.value),(br=De(gt.data))&&(Er=br.length))for(gt.children=new Array(Er),cr=Er-1;cr>=0;--cr)xt.push(pr=gt.children[cr]=new M(br[cr])),pr.parent=gt,pr.depth=gt.depth+1;return ht.eachBefore(P)}function k(){return x(this).eachBefore(m)}function S(ze){return ze.children}function m(ze){ze.data=ze.data.data}function P(ze){var De=0;do ze.height=De;while((ze=ze.parent)&&ze.height<++De)}function M(ze){this.data=ze,this.depth=this.height=0,this.parent=null}M.prototype=x.prototype={constructor:M,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:y,path:b,ancestors:C,descendants:E,leaves:A,links:L,copy:k};var O=Array.prototype.slice;function F(ze){for(var De=ze.length,ht,st;De;)st=Math.random()*De--|0,ht=ze[De],ze[De]=ze[st],ze[st]=ht;return ze}function U(ze){for(var De=0,ht=(ze=F(O.call(ze))).length,st=[],gt,xt;De0&&ht*ht>st*st+gt*gt}function N(ze,De){for(var ht=0;htcr?(gt=(Er+cr-xt)/(2*Er),br=Math.sqrt(Math.max(0,cr/Er-gt*gt)),ht.x=ze.x-gt*st-br*pr,ht.y=ze.y-gt*pr+br*st):(gt=(Er+xt-cr)/(2*Er),br=Math.sqrt(Math.max(0,xt/Er-gt*gt)),ht.x=De.x+gt*st-br*pr,ht.y=De.y+gt*pr+br*st)):(ht.x=De.x+ht.r,ht.y=De.y)}function Ee(ze,De){var ht=ze.r+De.r-1e-6,st=De.x-ze.x,gt=De.y-ze.y;return ht>0&&ht*ht>st*st+gt*gt}function de(ze){var De=ze._,ht=ze.next._,st=De.r+ht.r,gt=(De.x*ht.r+ht.x*De.r)/st,xt=(De.y*ht.r+ht.y*De.r)/st;return gt*gt+xt*xt}function te(ze){this._=ze,this.next=null,this.previous=null}function Se(ze){if(!(gt=ze.length))return 0;var De,ht,st,gt,xt,pr,br,cr,Er,ii,jr;if(De=ze[0],De.x=0,De.y=0,!(gt>1))return De.r;if(ht=ze[1],De.x=-ht.r,ht.x=De.r,ht.y=0,!(gt>2))return De.r+ht.r;Ce(ht,De,st=ze[2]),De=new te(De),ht=new te(ht),st=new te(st),De.next=st.previous=ht,ht.next=De.previous=st,st.next=ht.previous=De;e:for(br=3;br0)throw new Error("cycle");return br}return ht.id=function(st){return arguments.length?(ze=He(st),ht):ze},ht.parentId=function(st){return arguments.length?(De=He(st),ht):De},ht}function oe(ze,De){return ze.parent===De.parent?1:2}function Ne(ze){var De=ze.children;return De?De[0]:ze.t}function vt(ze){var De=ze.children;return De?De[De.length-1]:ze.t}function lt(ze,De,ht){var st=ht/(De.i-ze.i);De.c-=st,De.s+=ht,ze.c+=st,De.z+=ht,De.m+=ht}function We(ze){for(var De=0,ht=0,st=ze.children,gt=st.length,xt;--gt>=0;)xt=st[gt],xt.z+=De,xt.m+=De,De+=xt.s+(ht+=xt.c)}function Ve(ze,De,ht){return ze.a.parent===De.parent?ze.a:ht}function et(ze,De){this._=ze,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=De}et.prototype=Object.create(M.prototype);function tt(ze){for(var De=new et(ze,0),ht,st=[De],gt,xt,pr,br;ht=st.pop();)if(xt=ht._.children)for(ht.children=new Array(br=xt.length),pr=br-1;pr>=0;--pr)st.push(gt=ht.children[pr]=new et(xt[pr],pr)),gt.parent=ht;return(De.parent=new et(null,0)).children=[De],De}function Lt(){var ze=oe,De=1,ht=1,st=null;function gt(Er){var ii=tt(Er);if(ii.eachAfter(xt),ii.parent.m=-ii.z,ii.eachBefore(pr),st)Er.eachBefore(cr);else{var jr=Er,kr=Er,Vr=Er;Er.eachBefore(function(hn){hn.xkr.x&&(kr=hn),hn.depth>Vr.depth&&(Vr=hn)});var Ai=jr===kr?1:ze(jr,kr)/2,Bi=Ai-jr.x,Ri=De/(kr.x+Ai+Bi),ln=ht/(Vr.depth||1);Er.eachBefore(function(hn){hn.x=(hn.x+Bi)*Ri,hn.y=hn.depth*ln})}return Er}function xt(Er){var ii=Er.children,jr=Er.parent.children,kr=Er.i?jr[Er.i-1]:null;if(ii){We(Er);var Vr=(ii[0].z+ii[ii.length-1].z)/2;kr?(Er.z=kr.z+ze(Er._,kr._),Er.m=Er.z-Vr):Er.z=Vr}else kr&&(Er.z=kr.z+ze(Er._,kr._));Er.parent.A=br(Er,kr,Er.parent.A||jr[0])}function pr(Er){Er._.x=Er.z+Er.parent.m,Er.m+=Er.parent.m}function br(Er,ii,jr){if(ii){for(var kr=Er,Vr=Er,Ai=ii,Bi=kr.parent.children[0],Ri=kr.m,ln=Vr.m,hn=Ai.m,qr=Bi.m,_i;Ai=vt(Ai),kr=Ne(kr),Ai&&kr;)Bi=Ne(Bi),Vr=vt(Vr),Vr.a=Er,_i=Ai.z+hn-kr.z-Ri+ze(Ai._,kr._),_i>0&&(lt(Ve(Ai,Er,jr),Er,_i),Ri+=_i,ln+=_i),hn+=Ai.m,Ri+=kr.m,qr+=Bi.m,ln+=Vr.m;Ai&&!vt(Vr)&&(Vr.t=Ai,Vr.m+=hn-ln),kr&&!Ne(Bi)&&(Bi.t=kr,Bi.m+=Ri-qr,jr=Er)}return jr}function cr(Er){Er.x*=De,Er.y=Er.depth*ht}return gt.separation=function(Er){return arguments.length?(ze=Er,gt):ze},gt.size=function(Er){return arguments.length?(st=!1,De=+Er[0],ht=+Er[1],gt):st?null:[De,ht]},gt.nodeSize=function(Er){return arguments.length?(st=!0,De=+Er[0],ht=+Er[1],gt):st?[De,ht]:null},gt}function jt(ze,De,ht,st,gt){for(var xt=ze.children,pr,br=-1,cr=xt.length,Er=ze.value&&(gt-ht)/ze.value;++brhn&&(hn=Er),Dt=Ri*Ri*zi,qr=Math.max(hn/Dt,Dt/ln),qr>_i){Ri-=Er;break}_i=qr}pr.push(cr={value:Ri,dice:Vr1?st:1)},ht})(or);function Vt(){var ze=vr,De=!1,ht=1,st=1,gt=[0],xt=Ie,pr=Ie,br=Ie,cr=Ie,Er=Ie;function ii(kr){return kr.x0=kr.y0=0,kr.x1=ht,kr.y1=st,kr.eachBefore(jr),gt=[0],De&&kr.eachBefore(Ot),kr}function jr(kr){var Vr=gt[kr.depth],Ai=kr.x0+Vr,Bi=kr.y0+Vr,Ri=kr.x1-Vr,ln=kr.y1-Vr;Ri=kr-1){var hn=xt[jr];hn.x0=Ai,hn.y0=Bi,hn.x1=Ri,hn.y1=ln;return}for(var qr=Er[jr],_i=Vr/2+qr,zi=jr+1,Dt=kr-1;zi>>1;Er[_t]<_i?zi=_t+1:Dt=_t}_i-Er[zi-1]ln-Bi){var mr=(Ai*Nt+Ri*qt)/Vr;ii(jr,zi,qt,Ai,Bi,mr,ln),ii(zi,kr,Nt,mr,Bi,Ri,ln)}else{var Lr=(Bi*Nt+ln*qt)/Vr;ii(jr,zi,qt,Ai,Bi,Ri,Lr),ii(zi,kr,Nt,Ai,Lr,Ri,ln)}}}function xe(ze,De,ht,st,gt){(ze.depth&1?jt:it)(ze,De,ht,st,gt)}var Oe=(function ze(De){function ht(st,gt,xt,pr,br){if((cr=st._squarify)&&cr.ratio===De)for(var cr,Er,ii,jr,kr=-1,Vr,Ai=cr.length,Bi=st.value;++kr1?st:1)},ht})(or);e.cluster=u,e.hierarchy=x,e.pack=ce,e.packEnclose=U,e.packSiblings=Te,e.partition=Ke,e.stratify=Me,e.tree=Lt,e.treemap=Vt,e.treemapBinary=Pe,e.treemapDice=it,e.treemapResquarify=Oe,e.treemapSlice=jt,e.treemapSliceDice=xe,e.treemapSquarify=vr,Object.defineProperty(e,"__esModule",{value:!0})})});var H4=we(G4=>{"use strict";var wCe=V4(),EPt=ku(),RT=ei(),kPt=_c().makeColorScaleFuncFromTrace,CPt=PT().makePullColorFn,LPt=PT().generateExtendedColors,PPt=_c().calc,zPt=rf().ALMOST_EQUAL,IPt={},RPt={},DPt={};G4.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=RT.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,u=RT.isArrayOrTypedArray(s),l=[],f={},c={},h=function(W,N){f[W]?f[W].push(N):f[W]=[N],c[N]=1},d=function(W){return W||typeof W=="number"},p=function(W){return!u||EPt(s[W])&&s[W]>=0},y,b,v;i?(y=Math.min(n.length,o.length),b=function(W){return d(n[W])&&p(W)},v=function(W){return String(n[W])}):(y=Math.min(a.length,o.length),b=function(W){return d(a[W])&&p(W)},v=function(W){return String(a[W])}),u&&(y=Math.min(y,s.length));for(var C=0;C1){for(var S=RT.randstr(),m=0;m{});function Ky(){}function bCe(){return this.rgb().formatHex()}function PPt(){return this.rgb().formatHex8()}function zPt(){return kCe(this).formatHsl()}function wCe(){return this.rgb().formatRgb()}function tx(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=TPt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ACe(t):r===3?new xd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?k6(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?k6(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=SPt.exec(e))?new xd(t[1],t[2],t[3],1):(t=MPt.exec(e))?new xd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=EPt.exec(e))?k6(t[1],t[2],t[3],t[4]):(t=kPt.exec(e))?k6(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CPt.exec(e))?MCe(t[1],t[2]/100,t[3]/100,1):(t=LPt.exec(e))?MCe(t[1],t[2]/100,t[3]/100,t[4]):xCe.hasOwnProperty(e)?ACe(xCe[e]):e==="transparent"?new xd(NaN,NaN,NaN,0):null}function ACe(e){return new xd(e>>16&255,e>>8&255,e&255,1)}function k6(e,t,r,n){return n<=0&&(e=t=r=NaN),new xd(e,t,r,n)}function H4(e){return e instanceof Ky||(e=tx(e)),e?(e=e.rgb(),new xd(e.r,e.g,e.b,e.opacity)):new xd}function DT(e,t,r,n){return arguments.length===1?H4(e):new xd(e,t,r,n==null?1:n)}function xd(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function TCe(){return`#${B2(this.r)}${B2(this.g)}${B2(this.b)}`}function IPt(){return`#${B2(this.r)}${B2(this.g)}${B2(this.b)}${B2((isNaN(this.opacity)?1:this.opacity)*255)}`}function SCe(){let e=L6(this.opacity);return`${e===1?"rgb(":"rgba("}${q2(this.r)}, ${q2(this.g)}, ${q2(this.b)}${e===1?")":`, ${e})`}`}function L6(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function q2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function B2(e){return e=q2(e),(e<16?"0":"")+e.toString(16)}function MCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Km(e,t,r,n)}function kCe(e){if(e instanceof Km)return new Km(e.h,e.s,e.l,e.opacity);if(e instanceof Ky||(e=tx(e)),!e)return new Km;if(e instanceof Km)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&u<1?0:o,new Km(o,s,u,e.opacity)}function W4(e,t,r,n){return arguments.length===1?kCe(e):new Km(e,t,r,n==null?1:n)}function Km(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ECe(e){return e=(e||0)%360,e<0?e+360:e}function C6(e){return Math.max(0,Math.min(1,e||0))}function Bj(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var ex,N2,IT,G4,Yy,TPt,SPt,MPt,EPt,kPt,CPt,LPt,xCe,P6=tc(()=>{E6();ex=.7,N2=1/ex,IT="\\s*([+-]?\\d+)\\s*",G4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",TPt=/^#([0-9a-f]{3,8})$/,SPt=new RegExp(`^rgb\\(${IT},${IT},${IT}\\)$`),MPt=new RegExp(`^rgb\\(${Yy},${Yy},${Yy}\\)$`),EPt=new RegExp(`^rgba\\(${IT},${IT},${IT},${G4}\\)$`),kPt=new RegExp(`^rgba\\(${Yy},${Yy},${Yy},${G4}\\)$`),CPt=new RegExp(`^hsl\\(${G4},${Yy},${Yy}\\)$`),LPt=new RegExp(`^hsla\\(${G4},${Yy},${Yy},${G4}\\)$`),xCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};t1(Ky,tx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bCe,formatHex:bCe,formatHex8:PPt,formatHsl:zPt,formatRgb:wCe,toString:wCe});t1(xd,DT,Q_(Ky,{brighter(e){return e=e==null?N2:Math.pow(N2,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ex:Math.pow(ex,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xd(q2(this.r),q2(this.g),q2(this.b),L6(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:TCe,formatHex:TCe,formatHex8:IPt,formatRgb:SCe,toString:SCe}));t1(Km,W4,Q_(Ky,{brighter(e){return e=e==null?N2:Math.pow(N2,e),new Km(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ex:Math.pow(ex,e),new Km(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new xd(Bj(e>=240?e-240:e+120,i,n),Bj(e,i,n),Bj(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Km(ECe(this.h),C6(this.s),C6(this.l),L6(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=L6(this.opacity);return`${e===1?"hsl(":"hsla("}${ECe(this.h)}, ${C6(this.s)*100}%, ${C6(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var z6,I6,qj=tc(()=>{z6=Math.PI/180,I6=180/Math.PI});function DCe(e){if(e instanceof Jy)return new Jy(e.l,e.a,e.b,e.opacity);if(e instanceof r1)return RCe(e);e instanceof xd||(e=H4(e));var t=Gj(e.r),r=Gj(e.g),n=Gj(e.b),i=Nj((.2225045*t+.7168786*r+.0606169*n)/LCe),a,o;return t===r&&r===n?a=o=i:(a=Nj((.4360747*t+.3850649*r+.1430804*n)/CCe),o=Nj((.0139322*t+.0971045*r+.7141733*n)/PCe)),new Jy(116*i-16,500*(a-i),200*(i-o),e.opacity)}function FT(e,t,r,n){return arguments.length===1?DCe(e):new Jy(e,t,r,n==null?1:n)}function Jy(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Nj(e){return e>DPt?Math.pow(e,1/3):e/ICe+zCe}function Uj(e){return e>RT?e*e*e:ICe*(e-zCe)}function Vj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Gj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function RPt(e){if(e instanceof r1)return new r1(e.h,e.c,e.l,e.opacity);if(e instanceof Jy||(e=DCe(e)),e.a===0&&e.b===0)return new r1(NaN,0{E6();P6();qj();D6=18,CCe=.96422,LCe=1,PCe=.82521,zCe=4/29,RT=6/29,ICe=3*RT*RT,DPt=RT*RT*RT;t1(Jy,FT,Q_(Ky,{brighter(e){return new Jy(this.l+D6*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Jy(this.l-D6*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=CCe*Uj(t),e=LCe*Uj(e),r=PCe*Uj(r),new xd(Vj(3.1338561*t-1.6168667*e-.4906146*r),Vj(-.9787684*t+1.9161415*e+.033454*r),Vj(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));t1(r1,j4,Q_(Ky,{brighter(e){return new r1(this.h,this.c,this.l+D6*(e==null?1:e),this.opacity)},darker(e){return new r1(this.h,this.c,this.l-D6*(e==null?1:e),this.opacity)},rgb(){return RCe(this).rgb()}}))});function FPt(e){if(e instanceof U2)return new U2(e.h,e.s,e.l,e.opacity);e instanceof xd||(e=H4(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(qCe*n+OCe*t-BCe*r)/(qCe+OCe-BCe),a=n-i,o=(X4*(r-i)-Wj*a)/R6,s=Math.sqrt(o*o+a*a)/(X4*i*(1-i)),u=s?Math.atan2(o,a)*I6-120:NaN;return new U2(u<0?u+360:u,s,i,e.opacity)}function OT(e,t,r,n){return arguments.length===1?FPt(e):new U2(e,t,r,n==null?1:n)}function U2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var NCe,Hj,Wj,R6,X4,OCe,BCe,qCe,UCe=tc(()=>{E6();P6();qj();NCe=-.14861,Hj=1.78277,Wj=-.29227,R6=-.90649,X4=1.97294,OCe=X4*R6,BCe=X4*Hj,qCe=Hj*Wj-R6*NCe;t1(U2,OT,Q_(Ky,{brighter(e){return e=e==null?N2:Math.pow(N2,e),new U2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ex:Math.pow(ex,e),new U2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*z6,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new xd(255*(t+r*(NCe*n+Hj*i)),255*(t+r*(Wj*n+R6*i)),255*(t+r*(X4*n)),this.opacity)}}))});var V2=tc(()=>{P6();FCe();UCe()});function jj(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function F6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function B6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return jj((r-n/t)*t,i,a,o,s)}}var Xj=tc(()=>{O6()});var BT,Zj=tc(()=>{BT=e=>()=>e});function VCe(e,t){return function(r){return e+r*t}}function OPt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function rx(e,t){var r=t-e;return r?VCe(e,r>180||r<-180?r-360*Math.round(r/360):r):BT(isNaN(e)?t:e)}function GCe(e){return(e=+e)==1?ph:function(t,r){return r-t?OPt(t,r,e):BT(isNaN(t)?r:t)}}function ph(e,t){var r=t-e;return r?VCe(e,r):BT(isNaN(e)?t:e)}var G2=tc(()=>{Zj()});function HCe(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{V2();O6();Xj();G2();Z4=function e(t){var r=GCe(t);function n(i,a){var o=r((i=DT(i)).r,(a=DT(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=ph(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return n.gamma=e,n}(1);WCe=HCe(F6),jCe=HCe(B6)});function qT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function XCe(e,t){return(q6(t)?qT:Kj)(e,t)}function Kj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{Y4();N6()});function U6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var $j=tc(()=>{});function Fv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var K4=tc(()=>{});function V6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=ix(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Qj=tc(()=>{Y4()});function BPt(e){return function(){return e}}function qPt(e){return function(t){return e(t)+""}}function G6(e,t){var r=tX.lastIndex=eX.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=tX.exec(e))&&(i=eX.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Fv(n,i)})),r=eX.lastIndex;return r{K4();tX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eX=new RegExp(tX.source,"g")});function ix(e,t){var r=typeof t,n;return t==null||r==="boolean"?BT(t):(r==="number"?Fv:r==="string"?(n=tx(t))?(t=n,Z4):G6:t instanceof tx?Z4:t instanceof Date?U6:q6(t)?qT:Array.isArray(t)?Kj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?V6:Fv)(e,t)}var Y4=tc(()=>{V2();Yj();Jj();$j();K4();Qj();rX();Zj();N6()});function ZCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var YCe=tc(()=>{});function KCe(e,t){var r=rx(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var JCe=tc(()=>{G2()});function $Ce(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var QCe=tc(()=>{});function iX(e,t,r,n,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n{eLe=180/Math.PI,H6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function rLe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?H6:iX(t.a,t.b,t.c,t.d,t.e,t.f)}function iLe(e){return e==null?H6:(W6||(W6=document.createElementNS("http://www.w3.org/2000/svg","g")),W6.setAttribute("transform",e),(e=W6.transform.baseVal.consolidate())?(e=e.matrix,iX(e.a,e.b,e.c,e.d,e.e,e.f)):H6)}var W6,nLe=tc(()=>{tLe()});function aLe(e,t,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,f,c,h,d,p){if(l!==c||f!==h){var y=d.push("translate(",null,t,null,r);p.push({i:y-4,x:Fv(l,c)},{i:y-2,x:Fv(f,h)})}else(c||h)&&d.push("translate("+c+t+h+r)}function o(l,f,c,h){l!==f?(l-f>180?f+=360:f-l>180&&(l+=360),h.push({i:c.push(i(c)+"rotate(",null,n)-2,x:Fv(l,f)})):f&&c.push(i(c)+"rotate("+f+n)}function s(l,f,c,h){l!==f?h.push({i:c.push(i(c)+"skewX(",null,n)-2,x:Fv(l,f)}):f&&c.push(i(c)+"skewX("+f+n)}function u(l,f,c,h,d,p){if(l!==c||f!==h){var y=d.push(i(d)+"scale(",null,",",null,")");p.push({i:y-4,x:Fv(l,c)},{i:y-2,x:Fv(f,h)})}else(c!==1||h!==1)&&d.push(i(d)+"scale("+c+","+h+")")}return function(l,f){var c=[],h=[];return l=e(l),f=e(f),a(l.translateX,l.translateY,f.translateX,f.translateY,c,h),o(l.rotate,f.rotate,c,h),s(l.skewX,f.skewX,c,h),u(l.scaleX,l.scaleY,f.scaleX,f.scaleY,c,h),l=f=null,function(d){for(var p=-1,y=h.length,b;++p{K4();nLe();oLe=aLe(rLe,"px, ","px)","deg)"),sLe=aLe(iLe,", ",")",")")});function uLe(e){return((e=Math.exp(e))+1/e)/2}function UPt(e){return((e=Math.exp(e))-1/e)/2}function VPt(e){return((e=Math.exp(2*e))-1)/(e+1)}var NPt,fLe,cLe=tc(()=>{NPt=1e-12;fLe=function e(t,r,n){function i(a,o){var s=a[0],u=a[1],l=a[2],f=o[0],c=o[1],h=o[2],d=f-s,p=c-u,y=d*d+p*p,b,v;if(y{V2();G2();dLe=hLe(rx),pLe=hLe(ph)});function nX(e,t){var r=ph((e=FT(e)).l,(t=FT(t)).l),n=ph(e.a,t.a),i=ph(e.b,t.b),a=ph(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var mLe=tc(()=>{V2();G2()});function yLe(e){return function(t,r){var n=e((t=j4(t)).h,(r=j4(r)).h),i=ph(t.c,r.c),a=ph(t.l,r.l),o=ph(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var gLe,_Le,xLe=tc(()=>{V2();G2();gLe=yLe(rx),_Le=yLe(ph)});function bLe(e){return function t(r){r=+r;function n(i,a){var o=e((i=OT(i)).h,(a=OT(a)).h),s=ph(i.s,a.s),u=ph(i.l,a.l),l=ph(i.opacity,a.opacity);return function(f){return i.h=o(f),i.s=s(f),i.l=u(Math.pow(f,r)),i.opacity=l(f),i+""}}return n.gamma=t,n}(1)}var wLe,ALe,TLe=tc(()=>{V2();G2();wLe=bLe(rx),ALe=bLe(ph)});function aX(e,t){t===void 0&&(t=e,e=ix);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{Y4()});function MLe(e,t){for(var r=new Array(t),n=0;n{});var H2={};Lee(H2,{interpolate:()=>ix,interpolateArray:()=>XCe,interpolateBasis:()=>F6,interpolateBasisClosed:()=>B6,interpolateCubehelix:()=>wLe,interpolateCubehelixLong:()=>ALe,interpolateDate:()=>U6,interpolateDiscrete:()=>ZCe,interpolateHcl:()=>gLe,interpolateHclLong:()=>_Le,interpolateHsl:()=>dLe,interpolateHslLong:()=>pLe,interpolateHue:()=>KCe,interpolateLab:()=>nX,interpolateNumber:()=>Fv,interpolateNumberArray:()=>qT,interpolateObject:()=>V6,interpolateRgb:()=>Z4,interpolateRgbBasis:()=>WCe,interpolateRgbBasisClosed:()=>jCe,interpolateRound:()=>$Ce,interpolateString:()=>G6,interpolateTransformCss:()=>oLe,interpolateTransformSvg:()=>sLe,interpolateZoom:()=>fLe,piecewise:()=>aX,quantize:()=>MLe});var W2=tc(()=>{Y4();Jj();O6();Xj();$j();YCe();JCe();K4();N6();Qj();QCe();rX();lLe();cLe();Yj();vLe();mLe();xLe();TLe();SLe();ELe()});var j6=we((Vmr,kLe)=>{"use strict";var GPt=Mu(),HPt=jl();kLe.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,u=a||o.color;if(s>=0){r.i=o.i;var l=n.marker;l.pattern?(!l.colors||!l.pattern.shape)&&(l.color=u,r.color=u):(l.color=u,r.color=u),GPt.pointStyle(t,n,i,r)}else HPt.fill(t,u)}});var oX=we((Gmr,ILe)=>{"use strict";var CLe=Jl(),LLe=jl(),PLe=ei(),WPt=Ap().resizeText,jPt=j6();function XPt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");WPt(e,t,"sunburst"),t.each(function(r){var n=CLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){CLe.select(this).call(zLe,o,a,e)})})}function zLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=PLe.castOption(r,o,"marker.line.color")||LLe.defaultLine,u=PLe.castOption(r,o,"marker.line.width")||0;e.call(jPt,t,r,n).style("stroke-width",u).call(LLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}ILe.exports={style:XPt,styleOne:zLe}});var i1=we(yf=>{"use strict";var j2=ei(),ZPt=jl(),YPt=Em(),DLe=m_();yf.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(yf.getPtId(n)===t)return r=n.copy()}),r||e};yf.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};yf.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};yf.isHeader=function(e,t){return!(yf.isLeaf(e)||e.depth===t._maxDepth-1)};function RLe(e){return e.data.data.pid}yf.getParent=function(e,t){return yf.findEntryWithLevel(e,RLe(t))};yf.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return yf.listPath(r,t).concat(n)};yf.getPath=function(e){return yf.listPath(e,"label").join("/")+"/"};yf.formatValue=DLe.formatPieValue;yf.formatPercent=function(e,t){var r=j2.formatPercent(e,0);return r==="0%"&&(r=DLe.formatPiePercent(e,t)),r}});var Q4=we((Wmr,BLe)=>{"use strict";var NT=Jl(),FLe=$l(),$Pt=iv().appendArrayPointValue,J4=Vc(),OLe=ei(),QPt=L3(),od=i1(),ezt=m_(),tzt=ezt.formatPieValue;BLe.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,u=o.hierarchy,l=s.type==="sunburst",f=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var c=function(p){var y=n._fullLayout;if(!(n._dragging||y.hovermode===!1)){var b=n._fullData[s.index],v=p.data.data,C=v.i,M=od.isHierarchyRoot(p),A=od.getParent(u,p),L=od.getValue(p),x=function(Le){return OLe.castOption(b,C,Le)},k=x("hovertemplate"),S=J4.castHoverinfo(b,y,C),m=y.separators,P;if(k||S&&S!=="none"&&S!=="skip"){var E,O;l&&(E=o.cx+p.pxmid[0]*(1-p.rInscribed),O=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(E=p._hoverX,O=p._hoverY);var F={},U=[],G=[],j=function(Le){return U.indexOf(Le)!==-1};S&&(U=S==="all"?b._module.attributes.hoverinfo.flags:S.split("+")),F.label=v.label,j("label")&&F.label&&G.push(F.label),v.hasOwnProperty("v")&&(F.value=v.v,F.valueLabel=tzt(F.value,m),j("value")&&G.push(F.valueLabel)),F.currentPath=p.currentPath=od.getPath(p.data),j("current path")&&!M&&G.push(F.currentPath);var W,N=[],H=function(){N.indexOf(W)===-1&&(G.push(W),N.push(W))};F.percentParent=p.percentParent=L/od.getValue(A),F.parent=p.parentString=od.getPtLabel(A),j("percent parent")&&(W=od.formatPercent(F.percentParent,m)+" of "+F.parent,H()),F.percentEntry=p.percentEntry=L/od.getValue(r),F.entry=p.entry=od.getPtLabel(r),j("percent entry")&&!M&&!p.onPathbar&&(W=od.formatPercent(F.percentEntry,m)+" of "+F.entry,H()),F.percentRoot=p.percentRoot=L/od.getValue(u),F.root=p.root=od.getPtLabel(u),j("percent root")&&!M&&(W=od.formatPercent(F.percentRoot,m)+" of "+F.root,H()),F.text=x("hovertext")||x("text"),j("text")&&(W=F.text,OLe.isValidTextValue(W)&&G.push(W)),P=[$4(p,b,a.eventDataKeys)];var re={trace:b,y:O,_x0:p._x0,_x1:p._x1,_y0:p._y0,_y1:p._y1,text:G.join("
"),name:k||j("name")?b.name:void 0,color:x("hoverlabel.bgcolor")||v.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:k,hovertemplateLabels:F,eventData:P};l&&(re.x0=E-p.rInscribed*p.rpx1,re.x1=E+p.rInscribed*p.rpx1,re.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(re.x=E,re.idealAlign=E<0?"left":"right");var ae=[];J4.loneHover(re,{container:y._hoverlayer.node(),outerContainer:y._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(f){var me=t.select("path.surface");a.styleOne(me,p,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[$4(p,b,a.eventDataKeys)],event:NT.event})}},h=function(p){var y=n._fullLayout,b=n._fullData[s.index],v=NT.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=NT.event,n.emit("plotly_unhover",{points:[$4(v,b,a.eventDataKeys)],event:NT.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(J4.loneUnhover(y._hoverlayer.node()),s._hasHoverLabel=!1),f){var C=t.select("path.surface");a.styleOne(C,v,b,n,{hovered:!1})}},d=function(p){var y=n._fullLayout,b=n._fullData[s.index],v=l&&(od.isHierarchyRoot(p)||od.isLeaf(p)),C=od.getPtId(p),M=od.isEntry(p)?od.findEntryWithChild(u,C):od.findEntryWithLevel(u,C),A=od.getPtId(M),L={points:[$4(p,b,a.eventDataKeys)],event:NT.event};v||(L.nextLevel=A);var x=QPt.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&y.hovermode&&(n._hoverdata=[$4(p,b,a.eventDataKeys)],J4.click(n,NT.event)),!v&&x!==!1&&!n._dragging&&!n._transitioning){FLe.call("_storeDirectGUIEdit",b,y._tracePreGUI[b.uid],{level:b.level});var k={data:[{level:A}],traces:[s.index]},S={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};J4.loneUnhover(y._hoverlayer.node()),FLe.call("animate",n,k,S)}};t.on("mouseover",c),t.on("mouseout",h),t.on("click",d)};function $4(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var ek=Jl(),rzt=N4(),Jm=(W2(),mb(H2)).interpolate,qLe=Mu(),Mp=ei(),izt=Wf(),GLe=Ap(),NLe=GLe.recordMinTextSize,nzt=GLe.clearMinTextSize,HLe=S6(),azt=m_().getRotationAngle,ozt=HLe.computeTransform,szt=HLe.transformInsideText,lzt=oX().styleOne,uzt=V0().resizeText,fzt=Q4(),sX=Fj(),qf=i1();X6.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,u=!r,l=!i.uniformtext.mode&&qf.hasTransition(r);if(nzt("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(c){return c[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),l){n&&(s=n());var f=ek.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});f.each(function(){a.selectAll("g.trace").each(function(c){ULe(e,c,this,r)})})}else o.each(function(c){ULe(e,c,this,r)}),i.uniformtext.mode&&uzt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");u&&o.exit().remove()};function ULe(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&qf.hasTransition(n),s=ek.select(r),u=s.selectAll("g.slice"),l=t[0],f=l.trace,c=l.hierarchy,h=qf.findEntryWithLevel(c,f.level),d=qf.getMaxDepth(f),p=a._size,y=f.domain,b=p.w*(y.x[1]-y.x[0]),v=p.h*(y.y[1]-y.y[0]),C=.5*Math.min(b,v),M=l.cx=p.l+p.w*(y.x[1]+y.x[0])/2,A=l.cy=p.t+p.h*(1-y.y[0])-v/2;if(!h)return u.remove();var L=null,x={};o&&u.each(function(de){x[qf.getPtId(de)]={rpx0:de.rpx0,rpx1:de.rpx1,x0:de.x0,x1:de.x1,transform:de.transform},!L&&qf.isEntry(de)&&(L=de)});var k=czt(h).descendants(),S=h.height+1,m=0,P=d;l.hasMultipleRoots&&qf.isHierarchyRoot(h)&&(k=k.slice(1),S-=1,m=1,P+=1),k=k.filter(function(de){return de.y1<=P});var E=azt(f.rotation);E&&k.forEach(function(de){de.x0+=E,de.x1+=E});var O=Math.min(S,d),F=function(de){return(de-m)/O*C},U=function(de,te){return[de*Math.cos(te),-de*Math.sin(te)]},G=function(de){return Mp.pathAnnulus(de.rpx0,de.rpx1,de.x0,de.x1,M,A)},j=function(de){return M+VLe(de)[0]*(de.transform.rCenter||0)+(de.transform.x||0)},W=function(de){return A+VLe(de)[1]*(de.transform.rCenter||0)+(de.transform.y||0)};u=u.data(k,qf.getPtId),u.enter().append("g").classed("slice",!0),o?u.exit().transition().each(function(){var de=ek.select(this),te=de.select("path.surface");te.transition().attrTween("d",function(Te){var be=ae(Te);return function(He){return G(be(He))}});var Se=de.select("g.slicetext");Se.attr("opacity",0)}).remove():u.exit().remove(),u.order();var N=null;if(o&&L){var H=qf.getPtId(L);u.each(function(de){N===null&&qf.getPtId(de)===H&&(N=de.x1)})}var re=u;o&&(re=re.transition().each("end",function(){var de=ek.select(this);qf.setSliceCursor(de,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(de){var te=ek.select(this),Se=Mp.ensureSingle(te,"path","surface",function(Be){Be.style("pointer-events",i?"none":"all")});de.rpx0=F(de.y0),de.rpx1=F(de.y1),de.xmid=(de.x0+de.x1)/2,de.pxmid=U(de.rpx1,de.xmid),de.midangle=-(de.xmid-Math.PI/2),de.startangle=-(de.x0-Math.PI/2),de.stopangle=-(de.x1-Math.PI/2),de.halfangle=.5*Math.min(Mp.angleDelta(de.x0,de.x1)||Math.PI,Math.PI),de.ring=1-de.rpx0/de.rpx1,de.rInscribed=hzt(de,f),o?Se.transition().attrTween("d",function(Be){var ce=me(Be);return function(je){return G(ce(je))}}):Se.attr("d",G),te.call(fzt,h,e,t,{eventDataKeys:sX.eventDataKeys,transitionTime:sX.CLICK_TRANSITION_TIME,transitionEasing:sX.CLICK_TRANSITION_EASING}).call(qf.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(lzt,de,f,e);var Te=Mp.ensureSingle(te,"g","slicetext"),be=Mp.ensureSingle(Te,"text","",function(Be){Be.attr("data-notex",1)}),He=Mp.ensureUniformFontSize(e,qf.determineTextFont(f,de,a.font));be.text(X6.formatSliceLabel(de,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(qLe.font,He).call(izt.convertToTspans,e);var Ie=qLe.bBox(be.node());de.transform=szt(Ie,de,l),de.transform.targetX=j(de),de.transform.targetY=W(de);var ge=function(Be,ce){var je=Be.transform;return ozt(je,ce),je.fontSize=He.size,NLe(f.type,je,a),Mp.getTextTransform(je)};o?be.transition().attrTween("transform",function(Be){var ce=Le(Be);return function(je){return ge(ce(je),Ie)}}):be.attr("transform",ge(de,Ie))});function ae(de){var te=qf.getPtId(de),Se=x[te],Te=x[qf.getPtId(h)],be;if(Te){var He=(de.x1>Te.x1?2*Math.PI:0)+E;be=de.rpx1N?2*Math.PI:0)+E;Se={x0:be,x1:be}}else Se={rpx0:C,rpx1:C},Mp.extendFlat(Se,Ce(de));else Se={rpx0:0,rpx1:0};else Se={x0:E,x1:E};return Jm(Se,Te)}function Le(de){var te=x[qf.getPtId(de)],Se,Te=de.transform;if(te)Se=te;else if(Se={rpx1:de.rpx1,transform:{textPosAngle:Te.textPosAngle,scale:0,rotate:Te.rotate,rCenter:Te.rCenter,x:Te.x,y:Te.y}},L)if(de.parent)if(N){var be=de.x1>N?2*Math.PI:0;Se.x0=Se.x1=be}else Mp.extendFlat(Se,Ce(de));else Se.x0=Se.x1=E;else Se.x0=Se.x1=E;var He=Jm(Se.transform.textPosAngle,de.transform.textPosAngle),Ie=Jm(Se.rpx1,de.rpx1),ge=Jm(Se.x0,de.x0),Be=Jm(Se.x1,de.x1),ce=Jm(Se.transform.scale,Te.scale),je=Jm(Se.transform.rotate,Te.rotate),rt=Te.rCenter===0?3:Se.transform.rCenter===0?1/3:1,bt=Jm(Se.transform.rCenter,Te.rCenter),Ot=function(it){return bt(Math.pow(it,rt))};return function(it){var Ke=Ie(it),zt=ge(it),Mt=Be(it),kt=Ot(it),$e=U(Ke,(zt+Mt)/2),De=He(it),Me={pxmid:$e,rpx1:Ke,transform:{textPosAngle:De,rCenter:kt,x:Te.x,y:Te.y}};return NLe(f.type,Te,a),{transform:{targetX:j(Me),targetY:W(Me),scale:ce(it),rotate:je(it),rCenter:kt}}}}function Ce(de){var te=de.parent,Se=x[qf.getPtId(te)],Te={};if(Se){var be=te.children,He=be.indexOf(de),Ie=be.length,ge=Jm(Se.x0,Se.x1);Te.x0=ge(He/Ie),Te.x1=ge(He/Ie)}else Te.x0=Te.x1=0;return Te}}function czt(e){return rzt.partition().size([2*Math.PI,e.height+1])(e)}X6.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,u=n[0],l=e.data.data,f=u.hierarchy,c=qf.isHierarchyRoot(e),h=qf.getParent(f,e),d=qf.getValue(e);if(!a){var p=o.split("+"),y=function(m){return p.indexOf(m)!==-1},b=[],v;if(y("label")&&l.label&&b.push(l.label),l.hasOwnProperty("v")&&y("value")&&b.push(qf.formatValue(l.v,s)),!c){y("current path")&&b.push(qf.getPath(e.data));var C=0;y("percent parent")&&C++,y("percent entry")&&C++,y("percent root")&&C++;var M=C>1;if(C){var A,L=function(m){v=qf.formatPercent(A,s),M&&(v+=" of "+m),b.push(v)};y("percent parent")&&!c&&(A=d/qf.getValue(h),L("parent")),y("percent entry")&&(A=d/qf.getValue(t),L("entry")),y("percent root")&&(A=d/qf.getValue(f),L("root"))}}return y("text")&&(v=Mp.castOption(r,l.i,"text"),Mp.isValidTextValue(v)&&b.push(v)),b.join("
")}var x=Mp.castOption(r,l.i,"texttemplate");if(!x)return"";var k={};l.label&&(k.label=l.label),l.hasOwnProperty("v")&&(k.value=l.v,k.valueLabel=qf.formatValue(l.v,s)),k.currentPath=qf.getPath(e.data),c||(k.percentParent=d/qf.getValue(h),k.percentParentLabel=qf.formatPercent(k.percentParent,s),k.parent=qf.getPtLabel(h)),k.percentEntry=d/qf.getValue(t),k.percentEntryLabel=qf.formatPercent(k.percentEntry,s),k.entry=qf.getPtLabel(t),k.percentRoot=d/qf.getValue(f),k.percentRootLabel=qf.formatPercent(k.percentRoot,s),k.root=qf.getPtLabel(f),l.hasOwnProperty("color")&&(k.color=l.color);var S=Mp.castOption(r,l.i,"text");return(Mp.isValidTextValue(S)||S==="")&&(k.text=S),k.customdata=Mp.castOption(r,l.i,"customdata"),Mp.texttemplateString({data:[k,r._meta],fallback:r.texttemplatefallback,labels:k,locale:i._d3locale,template:x})};function hzt(e){return e.rpx0===0&&Mp.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function VLe(e){return dzt(e.rpx1,e.transform.textPosAngle)}function dzt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var jLe=we((Xmr,WLe)=>{"use strict";WLe.exports={moduleType:"trace",name:"sunburst",basePlotModule:aCe(),categories:[],animatable:!0,attributes:q4(),layoutAttributes:Oj(),supplyDefaults:pCe(),supplyLayoutDefaults:mCe(),calc:V4().calc,crossTraceCalc:V4().crossTraceCalc,plot:Z6().plot,style:oX().style,colorbar:tp(),meta:{}}});var ZLe=we((Zmr,XLe)=>{"use strict";XLe.exports=jLe()});var KLe=we(UT=>{"use strict";var YLe=Cc();UT.name="treemap";UT.plot=function(e,t,r,n){YLe.plotBasePlot(UT.name,e,t,r,n)};UT.clean=function(e,t,r,n){YLe.cleanBasePlot(UT.name,e,t,r,n)}});var X2=we((Kmr,JLe)=>{"use strict";JLe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var Y6=we((Jmr,ePe)=>{"use strict";var{hovertemplateAttrs:pzt,texttemplateAttrs:vzt,templatefallbackAttrs:$Le}=Ff(),mzt=nc(),yzt=zc().attributes,Z2=F2(),tm=q4(),QLe=X2(),lX=Su().extendFlat,gzt=Id().pattern;ePe.exports={labels:tm.labels,parents:tm.parents,values:tm.values,branchvalues:tm.branchvalues,count:tm.count,level:tm.level,maxdepth:tm.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:lX({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:tm.marker.colors,pattern:gzt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:tm.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},mzt("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:lX({},Z2.textfont,{}),editType:"calc"},text:Z2.text,textinfo:tm.textinfo,texttemplate:vzt({editType:"plot"},{keys:QLe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:$Le({editType:"plot"}),hovertext:Z2.hovertext,hoverinfo:tm.hoverinfo,hovertemplate:pzt({},{keys:QLe.eventDataKeys}),hovertemplatefallback:$Le(),textfont:Z2.textfont,insidetextfont:Z2.insidetextfont,outsidetextfont:lX({},Z2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:Z2.sort,root:tm.root,domain:yzt({name:"treemap",trace:!0,editType:"calc"})}});var uX=we(($mr,tPe)=>{"use strict";tPe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var aPe=we((Qmr,nPe)=>{"use strict";var rPe=ei(),_zt=Y6(),xzt=jl(),bzt=zc().defaults,wzt=i0().handleText,Azt=T_().TEXTPAD,Tzt=O2().handleMarkerDefaults,iPe=_c(),Szt=iPe.hasColorscale,Mzt=iPe.handleDefaults;nPe.exports=function(t,r,n,i){function a(b,v){return rPe.coerce(t,r,_zt,b,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var l=a("tiling.packing");l==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var f=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",rPe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),h="auto";wzt(t,r,i,a,h,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;Tzt(t,r,i,a);var p=r._hasColorscale=Szt(t,"marker","colors")||(t.marker||{}).coloraxis;p?Mzt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var y=r.textfont.size*2;a("marker.pad.t",d?y/4:y),a("marker.pad.l",y/4),a("marker.pad.r",y/4),a("marker.pad.b",d?y:y/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:xzt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Azt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),bzt(r,i,a),r._length=null}});var sPe=we((eyr,oPe)=>{"use strict";var Ezt=ei(),kzt=uX();oPe.exports=function(t,r){function n(i,a){return Ezt.coerce(t,r,kzt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var cX=we(fX=>{"use strict";var lPe=V4();fX.calc=function(e,t){return lPe.calc(e,t)};fX.crossTraceCalc=function(e){return lPe._runCrossTraceCalc("treemap",e)}});var hX=we((ryr,uPe)=>{"use strict";uPe.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var VT=N4(),Czt=hX();fPe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],u=n.pad[i?"right":"left"],l=n.pad[i?"left":"right"],f=n.pad[a?"top":"bottom"],c;o&&(c=u,u=s,s=c,c=l,l=f,f=c);var h=VT.treemap().tile(Lzt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(u).paddingRight(l).paddingTop(s).paddingBottom(f).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&Czt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function Lzt(e,t){switch(e){case"squarify":return VT.treemapSquarify.ratio(t);case"binary":return VT.treemapBinary;case"dice":return VT.treemapDice;case"slice":return VT.treemapSlice;default:return VT.treemapSliceDice}}});var K6=we((nyr,pPe)=>{"use strict";var cPe=Jl(),GT=jl(),hPe=ei(),pX=i1(),Pzt=Ap().resizeText,zzt=j6();function Izt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");Pzt(e,t,"treemap"),t.each(function(r){var n=cPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){cPe.select(this).call(dPe,o,a,e,{hovered:!1})})})}function dPe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,u,l,f=o.color,c=pX.isHierarchyRoot(t),h=1;if(a)u=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(c&&f===r.root.color)h=100,u="rgba(0,0,0,0)",l=0;else if(u=hPe.castOption(r,s,"marker.line.color")||GT.defaultLine,l=hPe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=GT.combine(GT.addOpacity(r._backgroundColor,.75),f),y;if(d===!0){var b=pX.getMaxDepth(r);isFinite(b)?pX.isLeaf(t)?y=0:y=r._maxVisibleLayers-(t.data.depth-r._entryDepth):y=t.data.height+1}else y=t.data.depth-r._entryDepth,r._atRootLevel||y++;if(y>0)for(var v=0;v{"use strict";var vPe=Jl(),J6=ei(),mPe=Mu(),Dzt=Wf(),Rzt=dX(),yPe=K6().styleOne,vX=X2(),HT=i1(),Fzt=Q4(),mX=!0;gPe.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,u=a.height,l=a.viewX,f=a.viewY,c=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,p=a.hasTransition,y=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,v=a.makeUpdateTextInterpolator,C={},M=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=L.hierarchy,S=s/x._entryDepth,m=HT.listPath(n.data,"id"),P=Rzt(k.copy(),[s,u],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(O){var F=m.indexOf(O.data.id);return F===-1?!1:(O.x0=S*F,O.x1=S*(F+1),O.y0=o,O.y1=o+u,O.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,HT.getPtId),i.enter().append("g").classed("pathbar",!0),y(i,mX,C,[s,u],c),i.order();var E=i;p&&(E=E.transition().each("end",function(){var O=vPe.select(this);HT.setSliceCursor(O,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),E.each(function(O){O._x0=l(O.x0),O._x1=l(O.x1),O._y0=f(O.y0),O._y1=f(O.y1),O._hoverX=l(O.x1-Math.min(s,u)/2),O._hoverY=f(O.y1-u/2);var F=vPe.select(this),U=J6.ensureSingle(F,"path","surface",function(N){N.style("pointer-events",M?"none":"all")});p?U.transition().attrTween("d",function(N){var H=b(N,mX,C,[s,u]);return function(re){return c(H(re))}}):U.attr("d",c),F.call(Fzt,n,t,r,{styleOne:yPe,eventDataKeys:vX.eventDataKeys,transitionTime:vX.CLICK_TRANSITION_TIME,transitionEasing:vX.CLICK_TRANSITION_EASING}).call(HT.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(yPe,O,x,t,{hovered:!1}),O._text=(HT.getPtLabel(O)||"").split("
").join(" ")||"";var G=J6.ensureSingle(F,"g","slicetext"),j=J6.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),W=J6.ensureUniformFontSize(t,HT.determineTextFont(x,O,A.font,{onPathbar:!0}));j.text(O._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(mPe.font,W).call(Dzt.convertToTspans,t),O.textBB=mPe.bBox(j.node()),O.transform=h(O,{fontSize:W.size,onPathbar:!0}),O.transform.fontSize=W.size,p?j.transition().attrTween("transform",function(N){var H=v(N,mX,C,[s,u]);return function(re){return d(H(re))}}):j.attr("transform",d(O))})}});var APe=we((oyr,wPe)=>{"use strict";var xPe=Jl(),yX=(W2(),mb(H2)).interpolate,nx=i1(),tk=ei(),bPe=T_().TEXTPAD,Ozt=v2(),Bzt=Ozt.toMoveInsideBar,qzt=Ap(),gX=qzt.recordMinTextSize,Nzt=X2(),Uzt=_Pe();function Y2(e){return nx.isHierarchyRoot(e)?"":nx.getPtId(e)}wPe.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],u=s.trace,l=u.type,f=l==="icicle",c=s.hierarchy,h=nx.findEntryWithLevel(c,u.level),d=xPe.select(n),p=d.selectAll("g.pathbar"),y=d.selectAll("g.slice");if(!h){p.remove(),y.remove();return}var b=nx.isHierarchyRoot(h),v=!o.uniformtext.mode&&nx.hasTransition(i),C=nx.getMaxDepth(u),M=function(oe){return oe.data.depth-h.data.depth-1?k+P:-(m+P):0,O={x0:S,x1:S,y0:E,y1:E+m},F=function(oe,Ne,vt){var lt=u.tiling.pad,We=function(Lt){return Lt-lt<=Ne.x0},Ve=function(Lt){return Lt+lt>=Ne.x1},et=function(Lt){return Lt-lt<=Ne.y0},tt=function(Lt){return Lt+lt>=Ne.y1};return oe.x0===Ne.x0&&oe.x1===Ne.x1&&oe.y0===Ne.y0&&oe.y1===Ne.y1?{x0:oe.x0,x1:oe.x1,y0:oe.y0,y1:oe.y1}:{x0:We(oe.x0-lt)?0:Ve(oe.x0-lt)?vt[0]:oe.x0,x1:We(oe.x1+lt)?0:Ve(oe.x1+lt)?vt[0]:oe.x1,y0:et(oe.y0-lt)?0:tt(oe.y0-lt)?vt[1]:oe.y0,y1:et(oe.y1+lt)?0:tt(oe.y1+lt)?vt[1]:oe.y1}},U=null,G={},j={},W=null,N=function(oe,Ne){return Ne?G[Y2(oe)]:j[Y2(oe)]},H=function(oe,Ne,vt,lt){if(Ne)return G[Y2(c)]||O;var We=j[u.level]||vt;return M(oe)?F(oe,We,lt):{}};s.hasMultipleRoots&&b&&C++,u._maxDepth=C,u._backgroundColor=o.paper_bgcolor,u._entryDepth=h.data.depth,u._atRootLevel=b;var re=-x/2+A.l+A.w*(L.x[1]+L.x[0])/2,ae=-k/2+A.t+A.h*(1-(L.y[1]+L.y[0])/2),me=function(oe){return re+oe},Le=function(oe){return ae+oe},Ce=Le(0),de=me(0),te=function(oe){return de+oe},Se=function(oe){return Ce+oe};function Te(oe,Ne){return oe+","+Ne}var be=te(0),He=function(oe){oe.x=Math.max(be,oe.x)},Ie=u.pathbar.edgeshape,ge=function(oe){var Ne=te(Math.max(Math.min(oe.x0,oe.x0),0)),vt=te(Math.min(Math.max(oe.x1,oe.x1),S)),lt=Se(oe.y0),We=Se(oe.y1),Ve=m/2,et={},tt={};et.x=Ne,tt.x=vt,et.y=tt.y=(lt+We)/2;var Lt={x:Ne,y:lt},jt={x:vt,y:lt},or={x:vt,y:We},yr={x:Ne,y:We};return Ie===">"?(Lt.x-=Ve,jt.x-=Ve,or.x-=Ve,yr.x-=Ve):Ie==="/"?(or.x-=Ve,yr.x-=Ve,et.x-=Ve/2,tt.x-=Ve/2):Ie==="\\"?(Lt.x-=Ve,jt.x-=Ve,et.x-=Ve/2,tt.x-=Ve/2):Ie==="<"&&(et.x-=Ve,tt.x-=Ve),He(Lt),He(yr),He(et),He(jt),He(or),He(tt),"M"+Te(Lt.x,Lt.y)+"L"+Te(jt.x,jt.y)+"L"+Te(tt.x,tt.y)+"L"+Te(or.x,or.y)+"L"+Te(yr.x,yr.y)+"L"+Te(et.x,et.y)+"Z"},Be=u[f?"tiling":"marker"].pad,ce=function(oe){return u.textposition.indexOf(oe)!==-1},je=ce("top"),rt=ce("left"),bt=ce("right"),Ot=ce("bottom"),it=function(oe){var Ne=me(oe.x0),vt=me(oe.x1),lt=Le(oe.y0),We=Le(oe.y1),Ve=vt-Ne,et=We-lt;if(!Ve||!et)return"";var tt=u.marker.cornerradius||0,Lt=Math.min(tt,Ve/2,et/2);Lt&&oe.data&&oe.data.data&&oe.data.data.label&&(je&&(Lt=Math.min(Lt,Be.t)),rt&&(Lt=Math.min(Lt,Be.l)),bt&&(Lt=Math.min(Lt,Be.r)),Ot&&(Lt=Math.min(Lt,Be.b)));var jt=function(or,yr){return Lt?"a"+Te(Lt,Lt)+" 0 0 1 "+Te(or,yr):""};return"M"+Te(Ne,lt+Lt)+jt(Lt,-Lt)+"L"+Te(vt-Lt,lt)+jt(Lt,Lt)+"L"+Te(vt,We-Lt)+jt(-Lt,Lt)+"L"+Te(Ne+Lt,We)+jt(-Lt,-Lt)+"Z"},Ke=function(oe,Ne){var vt=oe.x0,lt=oe.x1,We=oe.y0,Ve=oe.y1,et=oe.textBB,tt=je||Ne.isHeader&&!Ot,Lt=tt?"start":Ot?"end":"middle",jt=ce("right"),or=ce("left")||Ne.onPathbar,yr=or?-1:jt?1:0;if(Ne.isHeader){if(vt+=(f?Be:Be.l)-bPe,lt-=(f?Be:Be.r)-bPe,vt>=lt){var vr=(vt+lt)/2;vt=vr,lt=vr}var Vt;Ot?(Vt=Ve-(f?Be:Be.b),We{"use strict";var Vzt=Jl(),Gzt=i1(),Hzt=Ap(),Wzt=Hzt.clearMinTextSize,jzt=V0().resizeText,TPe=APe();SPe.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,u=t._fullLayout,l=u["_"+o+"layer"],f,c,h=!n;if(Wzt(o,u),f=l.selectAll("g.trace."+o).data(r,function(p){return p[0].trace.uid}),f.enter().append("g").classed("trace",!0).classed(o,!0),f.order(),!u.uniformtext.mode&&Gzt.hasTransition(n)){i&&(c=i());var d=Vzt.transition().duration(n.duration).ease(n.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()});d.each(function(){l.selectAll("g.trace").each(function(p){TPe(t,p,this,n,s)})})}else f.each(function(p){TPe(t,p,this,n,s)}),u.uniformtext.mode&&jzt(t,l.selectAll(".trace"),o);h&&f.exit().remove()}});var LPe=we((lyr,CPe)=>{"use strict";var MPe=Jl(),$6=ei(),EPe=Mu(),Xzt=Wf(),Zzt=dX(),kPe=K6().styleOne,xX=X2(),ax=i1(),Yzt=Q4(),Kzt=Z6().formatSliceLabel,bX=!1;CPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,y=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,C={},M=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,S=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=!m&&!x.marker.pad.t||m&&!x.marker.pad.b,E=Zzt(n,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),O=E.descendants(),F=1/0,U=-1/0;O.forEach(function(H){var re=H.depth;re>=x._maxDepth?(H.x0=H.x1=(H.x0+H.x1)/2,H.y0=H.y1=(H.y0+H.y1)/2):(F=Math.min(F,re),U=Math.max(U,re))}),i=i.data(O,ax.getPtId),x._maxVisibleLayers=isFinite(U)?U-F+1:0,i.enter().append("g").classed("slice",!0),p(i,bX,C,[o,s],f),i.order();var G=null;if(d&&v){var j=ax.getPtId(v);i.each(function(H){G===null&&ax.getPtId(H)===j&&(G={x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1})})}var W=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var H=MPe.select(this);ax.setSliceCursor(H,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(H){var re=ax.isHeader(H,x);H._x0=u(H.x0),H._x1=u(H.x1),H._y0=l(H.y0),H._y1=l(H.y1),H._hoverX=u(H.x1-x.marker.pad.r),H._hoverY=l(m?H.y1-x.marker.pad.b/2:H.y0+x.marker.pad.t/2);var ae=MPe.select(this),me=$6.ensureSingle(ae,"path","surface",function(Te){Te.style("pointer-events",M?"none":"all")});d?me.transition().attrTween("d",function(Te){var be=y(Te,bX,W(),[o,s]);return function(He){return f(be(He))}}):me.attr("d",f),ae.call(Yzt,n,t,r,{styleOne:kPe,eventDataKeys:xX.eventDataKeys,transitionTime:xX.CLICK_TRANSITION_TIME,transitionEasing:xX.CLICK_TRANSITION_EASING}).call(ax.setSliceCursor,t,{isTransitioning:t._transitioning}),me.call(kPe,H,x,t,{hovered:!1}),H.x0===H.x1||H.y0===H.y1?H._text="":re?H._text=P?"":ax.getPtLabel(H)||"":H._text=Kzt(H,n,x,r,A)||"";var Le=$6.ensureSingle(ae,"g","slicetext"),Ce=$6.ensureSingle(Le,"text","",function(Te){Te.attr("data-notex",1)}),de=$6.ensureUniformFontSize(t,ax.determineTextFont(x,H,A.font)),te=H._text||" ",Se=re&&te.indexOf("
")===-1;Ce.text(te).classed("slicetext",!0).attr("text-anchor",S?"end":k||Se?"start":"middle").call(EPe.font,de).call(Xzt.convertToTspans,t),H.textBB=EPe.bBox(Ce.node()),H.transform=c(H,{fontSize:de.size,isHeader:re}),H.transform.fontSize=de.size,d?Ce.transition().attrTween("transform",function(Te){var be=b(Te,bX,W(),[o,s]);return function(He){return h(be(He))}}):Ce.attr("transform",h(H))}),G}});var zPe=we((uyr,PPe)=>{"use strict";var Jzt=_X(),$zt=LPe();PPe.exports=function(t,r,n,i){return Jzt(t,r,n,i,{type:"treemap",drawDescendants:$zt})}});var DPe=we((fyr,IPe)=>{"use strict";IPe.exports={moduleType:"trace",name:"treemap",basePlotModule:KLe(),categories:[],animatable:!0,attributes:Y6(),layoutAttributes:uX(),supplyDefaults:aPe(),supplyLayoutDefaults:sPe(),calc:cX().calc,crossTraceCalc:cX().crossTraceCalc,plot:zPe(),style:K6().style,colorbar:tp(),meta:{}}});var FPe=we((cyr,RPe)=>{"use strict";RPe.exports=DPe()});var BPe=we(WT=>{"use strict";var OPe=Cc();WT.name="icicle";WT.plot=function(e,t,r,n){OPe.plotBasePlot(WT.name,e,t,r,n)};WT.clean=function(e,t,r,n){OPe.cleanBasePlot(WT.name,e,t,r,n)}});var wX=we((dyr,UPe)=>{"use strict";var{hovertemplateAttrs:Qzt,texttemplateAttrs:eIt,templatefallbackAttrs:qPe}=Ff(),tIt=nc(),rIt=zc().attributes,rk=F2(),s0=q4(),Q6=Y6(),NPe=X2(),iIt=Su().extendFlat,nIt=Id().pattern;UPe.exports={labels:s0.labels,parents:s0.parents,values:s0.values,branchvalues:s0.branchvalues,count:s0.count,level:s0.level,maxdepth:s0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:Q6.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:iIt({colors:s0.marker.colors,line:s0.marker.line,pattern:nIt,editType:"calc"},tIt("marker",{colorAttr:"colors",anim:!1})),leaf:s0.leaf,pathbar:Q6.pathbar,text:rk.text,textinfo:s0.textinfo,texttemplate:eIt({editType:"plot"},{keys:NPe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:qPe({editType:"plot"}),hovertext:rk.hovertext,hoverinfo:s0.hoverinfo,hovertemplate:Qzt({},{keys:NPe.eventDataKeys}),hovertemplatefallback:qPe(),textfont:rk.textfont,insidetextfont:rk.insidetextfont,outsidetextfont:Q6.outsidetextfont,textposition:Q6.textposition,sort:rk.sort,root:s0.root,domain:rIt({name:"icicle",trace:!0,editType:"calc"})}});var AX=we((pyr,VPe)=>{"use strict";VPe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var jPe=we((vyr,WPe)=>{"use strict";var GPe=ei(),aIt=wX(),oIt=jl(),sIt=zc().defaults,lIt=i0().handleText,uIt=T_().TEXTPAD,fIt=O2().handleMarkerDefaults,HPe=_c(),cIt=HPe.hasColorscale,hIt=HPe.handleDefaults;WPe.exports=function(t,r,n,i){function a(d,p){return GPe.coerce(t,r,aIt,d,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var l=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",GPe.isArrayOrTypedArray(l)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),c="auto";lIt(t,r,i,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),fIt(t,r,i,a);var h=r._hasColorscale=cIt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&hIt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:oIt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*uIt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),sIt(r,i,a),r._length=null}});var ZPe=we((myr,XPe)=>{"use strict";var dIt=ei(),pIt=AX();XPe.exports=function(t,r){function n(i,a){return dIt.coerce(t,r,pIt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var SX=we(TX=>{"use strict";var YPe=V4();TX.calc=function(e,t){return YPe.calc(e,t)};TX.crossTraceCalc=function(e){return YPe._runCrossTraceCalc("icicle",e)}});var JPe=we((gyr,KPe)=>{"use strict";var vIt=N4(),mIt=hX();KPe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,u=r[0],l=r[1];s&&(u=(t.height+1)*r[0]/Math.min(t.height+1,s),l=(t.height+1)*r[1]/Math.min(t.height+1,s));var f=vIt.partition().padding(n.pad.inner).size(o?[r[1],u]:[r[0],l])(t);return(o||i||a)&&mIt(f,r,{swapXY:o,flipX:i,flipY:a}),f}});var MX=we((_yr,rze)=>{"use strict";var $Pe=Jl(),QPe=jl(),eze=ei(),yIt=Ap().resizeText,gIt=j6();function _It(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");yIt(e,t,"icicle"),t.each(function(r){var n=$Pe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){$Pe.select(this).call(tze,o,a,e)})})}function tze(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=eze.castOption(r,o,"marker.line.color")||QPe.defaultLine,u=eze.castOption(r,o,"marker.line.width")||0;e.call(gIt,t,r,n).style("stroke-width",u).call(QPe.stroke,s).style("opacity",a?r.leaf.opacity:null)}rze.exports={style:_It,styleOne:tze}});var sze=we((xyr,oze)=>{"use strict";var ize=Jl(),eF=ei(),nze=Mu(),xIt=Wf(),bIt=JPe(),aze=MX().styleOne,EX=X2(),jT=i1(),wIt=Q4(),AIt=Z6().formatSliceLabel,kX=!1;oze.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,y=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,C={},M=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,S=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=bIt(n,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),E=P.descendants(),O=1/0,F=-1/0;E.forEach(function(N){var H=N.depth;H>=x._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(O=Math.min(O,H),F=Math.max(F,H))}),i=i.data(E,jT.getPtId),x._maxVisibleLayers=isFinite(F)?F-O+1:0,i.enter().append("g").classed("slice",!0),p(i,kX,C,[o,s],f),i.order();var U=null;if(d&&v){var G=jT.getPtId(v);i.each(function(N){U===null&&jT.getPtId(N)===G&&(U={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var j=function(){return U||{x0:0,x1:o,y0:0,y1:s}},W=i;return d&&(W=W.transition().each("end",function(){var N=ize.select(this);jT.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),W.each(function(N){N._x0=u(N.x0),N._x1=u(N.x1),N._y0=l(N.y0),N._y1=l(N.y1),N._hoverX=u(N.x1-x.tiling.pad),N._hoverY=l(m?N.y1-x.tiling.pad/2:N.y0+x.tiling.pad/2);var H=ize.select(this),re=eF.ensureSingle(H,"path","surface",function(Ce){Ce.style("pointer-events",M?"none":"all")});d?re.transition().attrTween("d",function(Ce){var de=y(Ce,kX,j(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(te){return f(de(te))}}):re.attr("d",f),H.call(wIt,n,t,r,{styleOne:aze,eventDataKeys:EX.eventDataKeys,transitionTime:EX.CLICK_TRANSITION_TIME,transitionEasing:EX.CLICK_TRANSITION_EASING}).call(jT.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(aze,N,x,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=AIt(N,n,x,r,A)||"";var ae=eF.ensureSingle(H,"g","slicetext"),me=eF.ensureSingle(ae,"text","",function(Ce){Ce.attr("data-notex",1)}),Le=eF.ensureUniformFontSize(t,jT.determineTextFont(x,N,A.font));me.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",S?"end":k?"start":"middle").call(nze.font,Le).call(xIt.convertToTspans,t),N.textBB=nze.bBox(me.node()),N.transform=c(N,{fontSize:Le.size}),N.transform.fontSize=Le.size,d?me.transition().attrTween("transform",function(Ce){var de=b(Ce,kX,j(),[o,s]);return function(te){return h(de(te))}}):me.attr("transform",h(N))}),U}});var uze=we((byr,lze)=>{"use strict";var TIt=_X(),SIt=sze();lze.exports=function(t,r,n,i){return TIt(t,r,n,i,{type:"icicle",drawDescendants:SIt})}});var cze=we((wyr,fze)=>{"use strict";fze.exports={moduleType:"trace",name:"icicle",basePlotModule:BPe(),categories:[],animatable:!0,attributes:wX(),layoutAttributes:AX(),supplyDefaults:jPe(),supplyLayoutDefaults:ZPe(),calc:SX().calc,crossTraceCalc:SX().crossTraceCalc,plot:uze(),style:MX().style,colorbar:tp(),meta:{}}});var dze=we((Ayr,hze)=>{"use strict";hze.exports=cze()});var vze=we(XT=>{"use strict";var pze=Cc();XT.name="funnelarea";XT.plot=function(e,t,r,n){pze.plotBasePlot(XT.name,e,t,r,n)};XT.clean=function(e,t,r,n){pze.cleanBasePlot(XT.name,e,t,r,n)}});var CX=we((Syr,yze)=>{"use strict";var op=F2(),MIt=Gf(),EIt=zc().attributes,{hovertemplateAttrs:kIt,texttemplateAttrs:CIt,templatefallbackAttrs:mze}=Ff(),K2=Su().extendFlat;yze.exports={labels:op.labels,label0:op.label0,dlabel:op.dlabel,values:op.values,marker:{colors:op.marker.colors,line:{color:K2({},op.marker.line.color,{dflt:null}),width:K2({},op.marker.line.width,{dflt:1}),editType:"calc"},pattern:op.marker.pattern,editType:"calc"},text:op.text,hovertext:op.hovertext,scalegroup:K2({},op.scalegroup,{}),textinfo:K2({},op.textinfo,{flags:["label","text","value","percent"]}),texttemplate:CIt({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:mze({editType:"plot"}),hoverinfo:K2({},MIt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:kIt({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:mze(),textposition:K2({},op.textposition,{values:["inside","none"],dflt:"inside"}),textfont:op.textfont,insidetextfont:op.insidetextfont,title:{text:op.title.text,font:op.title.font,position:K2({},op.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:EIt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var LX=we((Myr,gze)=>{"use strict";var LIt=b6().hiddenlabels;gze.exports={hiddenlabels:LIt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var bze=we((Eyr,xze)=>{"use strict";var _ze=ei(),PIt=CX(),zIt=zc().defaults,IIt=i0().handleText,DIt=O2().handleLabelsAndValues,RIt=O2().handleMarkerDefaults;xze.exports=function(t,r,n,i){function a(y,b){return _ze.coerce(t,r,PIt,y,b)}var o=a("labels"),s=a("values"),u=DIt(o,s),l=u.len;if(r._hasLabels=u.hasLabels,r._hasValues=u.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!l){r.visible=!1;return}r._length=l,RIt(t,r,i,a),a("scalegroup");var f=a("text"),c=a("texttemplate");a("texttemplatefallback");var h;if(c||(h=a("textinfo",Array.isArray(f)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),c||h&&h!=="none"){var d=a("textposition");IIt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");zIt(r,i,a);var p=a("title.text");p&&(a("title.position"),_ze.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var Aze=we((kyr,wze)=>{"use strict";var FIt=ei(),OIt=LX();wze.exports=function(t,r){function n(i,a){return FIt.coerce(t,r,OIt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var PX=we((Cyr,Sze)=>{"use strict";var Tze=CT();function BIt(e,t){return Tze.calc(e,t)}function qIt(e){Tze.crossTraceCalc(e,{type:"funnelarea"})}Sze.exports={calc:BIt,crossTraceCalc:qIt}});var Lze=we((Lyr,Cze)=>{"use strict";var J2=Jl(),zX=Mu(),ox=ei(),NIt=ox.strScale,Mze=ox.strTranslate,Eze=Wf(),UIt=v2(),VIt=UIt.toMoveInsideBar,kze=Ap(),GIt=kze.recordMinTextSize,HIt=kze.clearMinTextSize,WIt=m_(),ZT=S6(),jIt=ZT.attachFxHandlers,XIt=ZT.determineInsideTextFont,ZIt=ZT.layoutAreas,YIt=ZT.prerenderTitles,KIt=ZT.positionTitleOutside,JIt=ZT.formatSliceLabel;Cze.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;HIt("funnelarea",i),YIt(r,t),ZIt(r,i._size),ox.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=J2.select(this),s=a[0],u=s.trace;QIt(a),o.each(function(){var l=J2.select(this).selectAll("g.slice").data(a);l.enter().append("g").classed("slice",!0),l.exit().remove(),l.each(function(c,h){if(c.hidden){J2.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=u.index;var d=s.cx,p=s.cy,y=J2.select(this),b=y.selectAll("path.surface").data([c]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),y.call(jIt,t,a);var v="M"+(d+c.TR[0])+","+(p+c.TR[1])+IX(c.TR,c.BR)+IX(c.BR,c.BL)+IX(c.BL,c.TL)+"Z";b.attr("d",v),JIt(t,c,s);var C=WIt.castOption(u.textposition,c.pts),M=y.selectAll("g.slicetext").data(c.text&&C!=="none"?[0]:[]);M.enter().append("g").classed("slicetext",!0),M.exit().remove(),M.each(function(){var A=ox.ensureSingle(J2.select(this),"text","",function(O){O.attr("data-notex",1)}),L=ox.ensureUniformFontSize(t,XIt(u,c,i.font));A.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(zX.font,L).call(Eze.convertToTspans,t);var x=zX.bBox(A.node()),k,S,m,P=Math.min(c.BL[1],c.BR[1])+p,E=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+d,m=Math.min(c.TR[0],c.BR[0])+d,k=VIt(S,m,P,E,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=L.size,GIt(u.type,k,i),a[h].transform=k,ox.setTransormAndDisplay(A,k)})});var f=J2.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=ox.ensureSingle(J2.select(this),"text","",function(p){p.attr("data-notex",1)}),h=u.title.text;u._meta&&(h=ox.templateString(h,u._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(zX.font,u.title.font).call(Eze.convertToTspans,t);var d=KIt(s,i._size);c.attr("transform",Mze(d.x,d.y)+NIt(Math.min(1,d.scale))+Mze(d.tx,d.ty))})})})};function IX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function $It(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function QIt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),u=o,l=s/o;function f(){var F=Math.sqrt(l);return{x:F,y:-F}}function c(){var F=f();return[F.x,F.y]}var h,d=[];d.push(c());var p,y;for(p=e.length-1;p>-1;p--)if(y=e[p],!y.hidden){var b=y.v/u;l+=b,d.push(c())}var v=1/0,C=-1/0;for(p=0;p-1;p--)if(y=e[p],!y.hidden){P+=1;var E=d[P][0],O=d[P][1];y.TL=[-E,O],y.TR=[E,O],y.BL=S,y.BR=m,y.pxmid=$It(y.TR,y.BR),S=y.TL,m=y.TR}}});var Ize=we((Pyr,zze)=>{"use strict";var Pze=Jl(),eDt=Y3(),tDt=Ap().resizeText;zze.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");tDt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=Pze.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Pze.select(this).call(eDt,s,a,t)})})}});var Rze=we((zyr,Dze)=>{"use strict";Dze.exports={moduleType:"trace",name:"funnelarea",basePlotModule:vze(),categories:["pie-like","funnelarea","showLegend"],attributes:CX(),layoutAttributes:LX(),supplyDefaults:bze(),supplyLayoutDefaults:Aze(),calc:PX().calc,crossTraceCalc:PX().crossTraceCalc,plot:Lze(),style:Ize(),styleOne:Y3(),meta:{}}});var Oze=we((Iyr,Fze)=>{"use strict";Fze.exports=Rze()});var qd=we((Dyr,Bze)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function u($e){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(De){return typeof De}:function(De){return De&&typeof Symbol=="function"&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De},u($e)}var l=o(7507),f=o(3778),c=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.hp=y,s=P,a.IS=50;var h=2147483647;s=h,y.TYPED_ARRAY_SUPPORT=d(),!y.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{var $e=new Uint8Array(1),De={foo:function(){return 42}};return Object.setPrototypeOf(De,Uint8Array.prototype),Object.setPrototypeOf($e,De),$e.foo()===42}catch(Me){return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function p($e){if($e>h)throw new RangeError('The value "'+$e+'" is invalid for option "size"');var De=new Uint8Array($e);return Object.setPrototypeOf(De,y.prototype),De}function y($e,De,Me){if(typeof $e=="number"){if(typeof De=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return M($e)}return b($e,De,Me)}y.poolSize=8192;function b($e,De,Me){if(typeof $e=="string")return A($e,De);if(ArrayBuffer.isView($e))return x($e);if($e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u($e));if(zt($e,ArrayBuffer)||$e&&zt($e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(zt($e,SharedArrayBuffer)||$e&&zt($e.buffer,SharedArrayBuffer)))return k($e,De,Me);if(typeof $e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var oe=$e.valueOf&&$e.valueOf();if(oe!=null&&oe!==$e)return y.from(oe,De,Me);var Ne=S($e);if(Ne)return Ne;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof $e[Symbol.toPrimitive]=="function")return y.from($e[Symbol.toPrimitive]("string"),De,Me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u($e))}y.from=function($e,De,Me){return b($e,De,Me)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array);function v($e){if(typeof $e!="number")throw new TypeError('"size" argument must be of type number');if($e<0)throw new RangeError('The value "'+$e+'" is invalid for option "size"')}function C($e,De,Me){return v($e),$e<=0?p($e):De!==void 0?typeof Me=="string"?p($e).fill(De,Me):p($e).fill(De):p($e)}y.alloc=function($e,De,Me){return C($e,De,Me)};function M($e){return v($e),p($e<0?0:m($e)|0)}y.allocUnsafe=function($e){return M($e)},y.allocUnsafeSlow=function($e){return M($e)};function A($e,De){if((typeof De!="string"||De==="")&&(De="utf8"),!y.isEncoding(De))throw new TypeError("Unknown encoding: "+De);var Me=E($e,De)|0,oe=p(Me),Ne=oe.write($e,De);return Ne!==Me&&(oe=oe.slice(0,Ne)),oe}function L($e){for(var De=$e.length<0?0:m($e.length)|0,Me=p(De),oe=0;oe=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return $e|0}function P($e){return+$e!=$e&&($e=0),y.alloc(+$e)}y.isBuffer=function(De){return De!=null&&De._isBuffer===!0&&De!==y.prototype},y.compare=function(De,Me){if(zt(De,Uint8Array)&&(De=y.from(De,De.offset,De.byteLength)),zt(Me,Uint8Array)&&(Me=y.from(Me,Me.offset,Me.byteLength)),!y.isBuffer(De)||!y.isBuffer(Me))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(De===Me)return 0;for(var oe=De.length,Ne=Me.length,vt=0,lt=Math.min(oe,Ne);vtNe.length?y.from(lt).copy(Ne,vt):Uint8Array.prototype.set.call(Ne,lt,vt);else if(y.isBuffer(lt))lt.copy(Ne,vt);else throw new TypeError('"list" argument must be an Array of Buffers');vt+=lt.length}return Ne};function E($e,De){if(y.isBuffer($e))return $e.length;if(ArrayBuffer.isView($e)||zt($e,ArrayBuffer))return $e.byteLength;if(typeof $e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+u($e));var Me=$e.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&Me===0)return 0;for(var Ne=!1;;)switch(De){case"ascii":case"latin1":case"binary":return Me;case"utf8":case"utf-8":return rt($e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me*2;case"hex":return Me>>>1;case"base64":return it($e).length;default:if(Ne)return oe?-1:rt($e).length;De=(""+De).toLowerCase(),Ne=!0}}y.byteLength=E;function O($e,De,Me){var oe=!1;if((De===void 0||De<0)&&(De=0),De>this.length||((Me===void 0||Me>this.length)&&(Me=this.length),Me<=0)||(Me>>>=0,De>>>=0,Me<=De))return"";for($e||($e="utf8");;)switch($e){case"hex":return Se(this,De,Me);case"utf8":case"utf-8":return me(this,De,Me);case"ascii":return de(this,De,Me);case"latin1":case"binary":return te(this,De,Me);case"base64":return ae(this,De,Me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,De,Me);default:if(oe)throw new TypeError("Unknown encoding: "+$e);$e=($e+"").toLowerCase(),oe=!0}}y.prototype._isBuffer=!0;function F($e,De,Me){var oe=$e[De];$e[De]=$e[Me],$e[Me]=oe}y.prototype.swap16=function(){var De=this.length;if(De%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Me=0;MeMe&&(De+=" ... "),""},c&&(y.prototype[c]=y.prototype.inspect),y.prototype.compare=function(De,Me,oe,Ne,vt){if(zt(De,Uint8Array)&&(De=y.from(De,De.offset,De.byteLength)),!y.isBuffer(De))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+u(De));if(Me===void 0&&(Me=0),oe===void 0&&(oe=De?De.length:0),Ne===void 0&&(Ne=0),vt===void 0&&(vt=this.length),Me<0||oe>De.length||Ne<0||vt>this.length)throw new RangeError("out of range index");if(Ne>=vt&&Me>=oe)return 0;if(Ne>=vt)return-1;if(Me>=oe)return 1;if(Me>>>=0,oe>>>=0,Ne>>>=0,vt>>>=0,this===De)return 0;for(var lt=vt-Ne,We=oe-Me,Ve=Math.min(lt,We),et=this.slice(Ne,vt),tt=De.slice(Me,oe),Lt=0;Lt2147483647?Me=2147483647:Me<-2147483648&&(Me=-2147483648),Me=+Me,Mt(Me)&&(Me=Ne?0:$e.length-1),Me<0&&(Me=$e.length+Me),Me>=$e.length){if(Ne)return-1;Me=$e.length-1}else if(Me<0)if(Ne)Me=0;else return-1;if(typeof De=="string"&&(De=y.from(De,oe)),y.isBuffer(De))return De.length===0?-1:G($e,De,Me,oe,Ne);if(typeof De=="number")return De=De&255,typeof Uint8Array.prototype.indexOf=="function"?Ne?Uint8Array.prototype.indexOf.call($e,De,Me):Uint8Array.prototype.lastIndexOf.call($e,De,Me):G($e,[De],Me,oe,Ne);throw new TypeError("val must be string, number or Buffer")}function G($e,De,Me,oe,Ne){var vt=1,lt=$e.length,We=De.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if($e.length<2||De.length<2)return-1;vt=2,lt/=2,We/=2,Me/=2}function Ve(or,yr){return vt===1?or[yr]:or.readUInt16BE(yr*vt)}var et;if(Ne){var tt=-1;for(et=Me;etlt&&(Me=lt-We),et=Me;et>=0;et--){for(var Lt=!0,jt=0;jtNe&&(oe=Ne)):oe=Ne;var vt=De.length;oe>vt/2&&(oe=vt/2);for(var lt=0;lt>>0,isFinite(oe)?(oe=oe>>>0,Ne===void 0&&(Ne="utf8")):(Ne=oe,oe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var vt=this.length-Me;if((oe===void 0||oe>vt)&&(oe=vt),De.length>0&&(oe<0||Me<0)||Me>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ne||(Ne="utf8");for(var lt=!1;;)switch(Ne){case"hex":return j(this,De,Me,oe);case"utf8":case"utf-8":return W(this,De,Me,oe);case"ascii":case"latin1":case"binary":return N(this,De,Me,oe);case"base64":return H(this,De,Me,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,De,Me,oe);default:if(lt)throw new TypeError("Unknown encoding: "+Ne);Ne=(""+Ne).toLowerCase(),lt=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae($e,De,Me){return De===0&&Me===$e.length?l.fromByteArray($e):l.fromByteArray($e.slice(De,Me))}function me($e,De,Me){Me=Math.min($e.length,Me);for(var oe=[],Ne=De;Ne239?4:vt>223?3:vt>191?2:1;if(Ne+We<=Me){var Ve,et,tt,Lt;switch(We){case 1:vt<128&&(lt=vt);break;case 2:Ve=$e[Ne+1],(Ve&192)===128&&(Lt=(vt&31)<<6|Ve&63,Lt>127&&(lt=Lt));break;case 3:Ve=$e[Ne+1],et=$e[Ne+2],(Ve&192)===128&&(et&192)===128&&(Lt=(vt&15)<<12|(Ve&63)<<6|et&63,Lt>2047&&(Lt<55296||Lt>57343)&&(lt=Lt));break;case 4:Ve=$e[Ne+1],et=$e[Ne+2],tt=$e[Ne+3],(Ve&192)===128&&(et&192)===128&&(tt&192)===128&&(Lt=(vt&15)<<18|(Ve&63)<<12|(et&63)<<6|tt&63,Lt>65535&&Lt<1114112&&(lt=Lt))}}lt===null?(lt=65533,We=1):lt>65535&&(lt-=65536,oe.push(lt>>>10&1023|55296),lt=56320|lt&1023),oe.push(lt),Ne+=We}return Ce(oe)}var Le=4096;function Ce($e){var De=$e.length;if(De<=Le)return String.fromCharCode.apply(String,$e);for(var Me="",oe=0;oeoe)&&(Me=oe);for(var Ne="",vt=De;vtoe&&(De=oe),Me<0?(Me+=oe,Me<0&&(Me=0)):Me>oe&&(Me=oe),MeMe)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(De,Me,oe){De=De>>>0,Me=Me>>>0,oe||be(De,Me,this.length);for(var Ne=this[De],vt=1,lt=0;++lt>>0,Me=Me>>>0,oe||be(De,Me,this.length);for(var Ne=this[De+--Me],vt=1;Me>0&&(vt*=256);)Ne+=this[De+--Me]*vt;return Ne},y.prototype.readUint8=y.prototype.readUInt8=function(De,Me){return De=De>>>0,Me||be(De,1,this.length),this[De]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(De,Me){return De=De>>>0,Me||be(De,2,this.length),this[De]|this[De+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(De,Me){return De=De>>>0,Me||be(De,2,this.length),this[De]<<8|this[De+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(De,Me){return De=De>>>0,Me||be(De,4,this.length),(this[De]|this[De+1]<<8|this[De+2]<<16)+this[De+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(De,Me){return De=De>>>0,Me||be(De,4,this.length),this[De]*16777216+(this[De+1]<<16|this[De+2]<<8|this[De+3])},y.prototype.readIntLE=function(De,Me,oe){De=De>>>0,Me=Me>>>0,oe||be(De,Me,this.length);for(var Ne=this[De],vt=1,lt=0;++lt=vt&&(Ne-=Math.pow(2,8*Me)),Ne},y.prototype.readIntBE=function(De,Me,oe){De=De>>>0,Me=Me>>>0,oe||be(De,Me,this.length);for(var Ne=Me,vt=1,lt=this[De+--Ne];Ne>0&&(vt*=256);)lt+=this[De+--Ne]*vt;return vt*=128,lt>=vt&&(lt-=Math.pow(2,8*Me)),lt},y.prototype.readInt8=function(De,Me){return De=De>>>0,Me||be(De,1,this.length),this[De]&128?(255-this[De]+1)*-1:this[De]},y.prototype.readInt16LE=function(De,Me){De=De>>>0,Me||be(De,2,this.length);var oe=this[De]|this[De+1]<<8;return oe&32768?oe|4294901760:oe},y.prototype.readInt16BE=function(De,Me){De=De>>>0,Me||be(De,2,this.length);var oe=this[De+1]|this[De]<<8;return oe&32768?oe|4294901760:oe},y.prototype.readInt32LE=function(De,Me){return De=De>>>0,Me||be(De,4,this.length),this[De]|this[De+1]<<8|this[De+2]<<16|this[De+3]<<24},y.prototype.readInt32BE=function(De,Me){return De=De>>>0,Me||be(De,4,this.length),this[De]<<24|this[De+1]<<16|this[De+2]<<8|this[De+3]},y.prototype.readFloatLE=function(De,Me){return De=De>>>0,Me||be(De,4,this.length),f.read(this,De,!0,23,4)},y.prototype.readFloatBE=function(De,Me){return De=De>>>0,Me||be(De,4,this.length),f.read(this,De,!1,23,4)},y.prototype.readDoubleLE=function(De,Me){return De=De>>>0,Me||be(De,8,this.length),f.read(this,De,!0,52,8)},y.prototype.readDoubleBE=function(De,Me){return De=De>>>0,Me||be(De,8,this.length),f.read(this,De,!1,52,8)};function He($e,De,Me,oe,Ne,vt){if(!y.isBuffer($e))throw new TypeError('"buffer" argument must be a Buffer instance');if(De>Ne||De$e.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(De,Me,oe,Ne){if(De=+De,Me=Me>>>0,oe=oe>>>0,!Ne){var vt=Math.pow(2,8*oe)-1;He(this,De,Me,oe,vt,0)}var lt=1,We=0;for(this[Me]=De&255;++We>>0,oe=oe>>>0,!Ne){var vt=Math.pow(2,8*oe)-1;He(this,De,Me,oe,vt,0)}var lt=oe-1,We=1;for(this[Me+lt]=De&255;--lt>=0&&(We*=256);)this[Me+lt]=De/We&255;return Me+oe},y.prototype.writeUint8=y.prototype.writeUInt8=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,1,255,0),this[Me]=De&255,Me+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,2,65535,0),this[Me]=De&255,this[Me+1]=De>>>8,Me+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,2,65535,0),this[Me]=De>>>8,this[Me+1]=De&255,Me+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,4,4294967295,0),this[Me+3]=De>>>24,this[Me+2]=De>>>16,this[Me+1]=De>>>8,this[Me]=De&255,Me+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,4,4294967295,0),this[Me]=De>>>24,this[Me+1]=De>>>16,this[Me+2]=De>>>8,this[Me+3]=De&255,Me+4},y.prototype.writeIntLE=function(De,Me,oe,Ne){if(De=+De,Me=Me>>>0,!Ne){var vt=Math.pow(2,8*oe-1);He(this,De,Me,oe,vt-1,-vt)}var lt=0,We=1,Ve=0;for(this[Me]=De&255;++lt>0)-Ve&255;return Me+oe},y.prototype.writeIntBE=function(De,Me,oe,Ne){if(De=+De,Me=Me>>>0,!Ne){var vt=Math.pow(2,8*oe-1);He(this,De,Me,oe,vt-1,-vt)}var lt=oe-1,We=1,Ve=0;for(this[Me+lt]=De&255;--lt>=0&&(We*=256);)De<0&&Ve===0&&this[Me+lt+1]!==0&&(Ve=1),this[Me+lt]=(De/We>>0)-Ve&255;return Me+oe},y.prototype.writeInt8=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,1,127,-128),De<0&&(De=255+De+1),this[Me]=De&255,Me+1},y.prototype.writeInt16LE=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,2,32767,-32768),this[Me]=De&255,this[Me+1]=De>>>8,Me+2},y.prototype.writeInt16BE=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,2,32767,-32768),this[Me]=De>>>8,this[Me+1]=De&255,Me+2},y.prototype.writeInt32LE=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,4,2147483647,-2147483648),this[Me]=De&255,this[Me+1]=De>>>8,this[Me+2]=De>>>16,this[Me+3]=De>>>24,Me+4},y.prototype.writeInt32BE=function(De,Me,oe){return De=+De,Me=Me>>>0,oe||He(this,De,Me,4,2147483647,-2147483648),De<0&&(De=4294967295+De+1),this[Me]=De>>>24,this[Me+1]=De>>>16,this[Me+2]=De>>>8,this[Me+3]=De&255,Me+4};function Ie($e,De,Me,oe,Ne,vt){if(Me+oe>$e.length)throw new RangeError("Index out of range");if(Me<0)throw new RangeError("Index out of range")}function ge($e,De,Me,oe,Ne){return De=+De,Me=Me>>>0,Ne||Ie($e,De,Me,4,34028234663852886e22,-34028234663852886e22),f.write($e,De,Me,oe,23,4),Me+4}y.prototype.writeFloatLE=function(De,Me,oe){return ge(this,De,Me,!0,oe)},y.prototype.writeFloatBE=function(De,Me,oe){return ge(this,De,Me,!1,oe)};function Be($e,De,Me,oe,Ne){return De=+De,Me=Me>>>0,Ne||Ie($e,De,Me,8,17976931348623157e292,-17976931348623157e292),f.write($e,De,Me,oe,52,8),Me+8}y.prototype.writeDoubleLE=function(De,Me,oe){return Be(this,De,Me,!0,oe)},y.prototype.writeDoubleBE=function(De,Me,oe){return Be(this,De,Me,!1,oe)},y.prototype.copy=function(De,Me,oe,Ne){if(!y.isBuffer(De))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),!Ne&&Ne!==0&&(Ne=this.length),Me>=De.length&&(Me=De.length),Me||(Me=0),Ne>0&&Ne=this.length)throw new RangeError("Index out of range");if(Ne<0)throw new RangeError("sourceEnd out of bounds");Ne>this.length&&(Ne=this.length),De.length-Me>>0,oe=oe===void 0?this.length:oe>>>0,De||(De=0);var lt;if(typeof De=="number")for(lt=Me;lt55295&&Me<57344){if(!Ne){if(Me>56319){(De-=3)>-1&&vt.push(239,191,189);continue}else if(lt+1===oe){(De-=3)>-1&&vt.push(239,191,189);continue}Ne=Me;continue}if(Me<56320){(De-=3)>-1&&vt.push(239,191,189),Ne=Me;continue}Me=(Ne-55296<<10|Me-56320)+65536}else Ne&&(De-=3)>-1&&vt.push(239,191,189);if(Ne=null,Me<128){if((De-=1)<0)break;vt.push(Me)}else if(Me<2048){if((De-=2)<0)break;vt.push(Me>>6|192,Me&63|128)}else if(Me<65536){if((De-=3)<0)break;vt.push(Me>>12|224,Me>>6&63|128,Me&63|128)}else if(Me<1114112){if((De-=4)<0)break;vt.push(Me>>18|240,Me>>12&63|128,Me>>6&63|128,Me&63|128)}else throw new Error("Invalid code point")}return vt}function bt($e){for(var De=[],Me=0;Me<$e.length;++Me)De.push($e.charCodeAt(Me)&255);return De}function Ot($e,De){for(var Me,oe,Ne,vt=[],lt=0;lt<$e.length&&!((De-=2)<0);++lt)Me=$e.charCodeAt(lt),oe=Me>>8,Ne=Me%256,vt.push(Ne),vt.push(oe);return vt}function it($e){return l.toByteArray(je($e))}function Ke($e,De,Me,oe){for(var Ne=0;Ne=De.length||Ne>=$e.length);++Ne)De[Ne+Me]=$e[Ne];return Ne}function zt($e,De){return $e instanceof De||$e!=null&&$e.constructor!=null&&$e.constructor.name!=null&&$e.constructor.name===De.name}function Mt($e){return $e!==$e}var kt=function(){for(var $e="0123456789abcdef",De=new Array(256),Me=0;Me<16;++Me)for(var oe=Me*16,Ne=0;Ne<16;++Ne)De[oe+Ne]=$e[Me]+$e[Ne];return De}()},9216:function(i){"use strict";i.exports=u,i.exports.isMobile=u,i.exports.default=u;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function u(l){l||(l={});var f=l.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var c=a.test(f)&&!o.test(f)||!!l.tablet&&s.test(f);return!c&&l.tablet&&l.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),u=o(9977),l=o(1811);function f(d,p){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(y){return d[y]}),this._mode=p,this._active=d[p],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var c=f.prototype;c.flush=function(d){for(var p=this._controllerList,y=0;y0)throw new Error("Invalid string. Length must be a multiple of 4");var L=M.indexOf("=");L===-1&&(L=A);var x=L===A?0:4-L%4;return[L,x]}function d(M){var A=h(M),L=A[0],x=A[1];return(L+x)*3/4-x}function p(M,A,L){return(A+L)*3/4-L}function y(M){var A,L=h(M),x=L[0],k=L[1],S=new u(p(M,x,k)),m=0,P=k>0?x-4:x,E;for(E=0;E>16&255,S[m++]=A>>8&255,S[m++]=A&255;return k===2&&(A=s[M.charCodeAt(E)]<<2|s[M.charCodeAt(E+1)]>>4,S[m++]=A&255),k===1&&(A=s[M.charCodeAt(E)]<<10|s[M.charCodeAt(E+1)]<<4|s[M.charCodeAt(E+2)]>>2,S[m++]=A>>8&255,S[m++]=A&255),S}function b(M){return o[M>>18&63]+o[M>>12&63]+o[M>>6&63]+o[M&63]}function v(M,A,L){for(var x,k=[],S=A;SP?P:m+S));return x===1?(A=M[L-1],k.push(o[A>>2]+o[A<<4&63]+"==")):x===2&&(A=(M[L-2]<<8)+M[L-1],k.push(o[A>>10]+o[A>>4&63]+o[A<<2&63]+"=")),k.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).add(f[0].mul(l[1])),l[1].mul(f[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]),l[1].mul(f[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),u=o(1533),l=o(2651),f=o(6768),c=o(869),h=o(8697);i.exports=d;function d(p,y){if(s(p))return y?h(p,d(y)):[p[0].clone(),p[1].clone()];var b=0,v,C;if(u(p))v=p.clone();else if(typeof p=="string")v=f(p);else{if(p===0)return[l(0),l(1)];if(p===Math.floor(p))v=l(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),b-=256;v=l(p)}}if(s(y))v.mul(y[1]),C=y[0].clone();else if(u(y))C=y.clone();else if(typeof y=="string")C=f(y);else if(!y)C=l(1);else if(y===Math.floor(y))C=l(y);else{for(;y!==Math.floor(y);)y=y*Math.pow(2,256),b+=256;C=l(y)}return b>0?v=v.ushln(b):b<0&&(C=C.ushln(-b)),c(v,C)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=u;function u(l){return Array.isArray(l)&&l.length===2&&s(l[0])&&s(l[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){var f=l.length,c=l.words,h=0;if(f===1)h=c[0];else if(f===2)h=c[0]+c[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l&&typeof l=="object"&&!!l.words}},2651:function(i,a,o){"use strict";var s=o(6859),u=o(2361);i.exports=l;function l(f){var c=u.exponent(f);return c<52?new s(f):new s(f*Math.pow(2,52-c)).ushln(c-52)}},869:function(i,a,o){"use strict";var s=o(2651),u=o(5716);i.exports=l;function l(f,c){var h=u(f),d=u(c);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(f=f.neg(),c=c.neg());var p=f.gcd(c);return p.cmpn(1)?[f.div(p),c.div(p)]:[f,c]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return new s(l)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[0]),l[1].mul(f[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){return s(l[0])*s(l[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).sub(l[1].mul(f[0])),l[1].mul(f[1]))}},946:function(i,a,o){"use strict";var s=o(1369),u=o(4025);i.exports=l;function l(f){var c=f[0],h=f[1];if(c.cmpn(0)===0)return 0;var d=c.abs().divmod(h.abs()),p=d.div,y=s(p),b=d.mod,v=c.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return v*y;if(y){var C=u(y)+4,M=s(b.ushln(C).divRound(h));return v*(y+M*Math.pow(2,-C))}else{var A=h.bitLength()-b.bitLength()+53,M=s(b.ushln(A).divRound(h));return A<1023?v*M*Math.pow(2,-A):(M*=Math.pow(2,-1023),v*M*Math.pow(2,1023-A))}}},2478:function(i){"use strict";function a(c,h,d,p,y){for(var b=y+1;p<=y;){var v=p+y>>>1,C=c[v],M=d!==void 0?d(C,h):C-h;M>=0?(b=v,y=v-1):p=v+1}return b}function o(c,h,d,p,y){for(var b=y+1;p<=y;){var v=p+y>>>1,C=c[v],M=d!==void 0?d(C,h):C-h;M>0?(b=v,y=v-1):p=v+1}return b}function s(c,h,d,p,y){for(var b=p-1;p<=y;){var v=p+y>>>1,C=c[v],M=d!==void 0?d(C,h):C-h;M<0?(b=v,p=v+1):y=v-1}return b}function u(c,h,d,p,y){for(var b=p-1;p<=y;){var v=p+y>>>1,C=c[v],M=d!==void 0?d(C,h):C-h;M<=0?(b=v,p=v+1):y=v-1}return b}function l(c,h,d,p,y){for(;p<=y;){var b=p+y>>>1,v=c[b],C=d!==void 0?d(v,h):v-h;if(C===0)return b;C<=0?p=b+1:y=b-1}return-1}function f(c,h,d,p,y,b){return typeof d=="function"?b(c,h,d,p===void 0?0:p|0,y===void 0?c.length-1:y|0):b(c,h,void 0,d===void 0?0:d|0,p===void 0?c.length-1:p|0)}i.exports={ge:function(c,h,d,p,y){return f(c,h,d,p,y,a)},gt:function(c,h,d,p,y){return f(c,h,d,p,y,o)},lt:function(c,h,d,p,y){return f(c,h,d,p,y,s)},le:function(c,h,d,p,y){return f(c,h,d,p,y,u)},eq:function(c,h,d,p,y){return f(c,h,d,p,y,l)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,u){"use strict";function l(W,N){if(!W)throw new Error(N||"Assertion failed")}function f(W,N){W.super_=N;var H=function(){};H.prototype=N.prototype,W.prototype=new H,W.prototype.constructor=W}function c(W,N,H){if(c.isBN(W))return W;this.negative=0,this.words=null,this.length=0,this.red=null,W!==null&&((N==="le"||N==="be")&&(H=N,N=10),this._init(W||0,N||10,H||"be"))}typeof s=="object"?s.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(W){}c.isBN=function(N){return N instanceof c?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===c.wordSize&&Array.isArray(N.words)},c.max=function(N,H){return N.cmp(H)>0?N:H},c.min=function(N,H){return N.cmp(H)<0?N:H},c.prototype._init=function(N,H,re){if(typeof N=="number")return this._initNumber(N,H,re);if(typeof N=="object")return this._initArray(N,H,re);H==="hex"&&(H=16),l(H===(H|0)&&H>=2&&H<=36),N=N.toString().replace(/\s+/g,"");var ae=0;N[0]==="-"&&(ae++,this.negative=1),ae=0;ae-=3)Le=N[ae]|N[ae-1]<<8|N[ae-2]<<16,this.words[me]|=Le<>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,me++);else if(re==="le")for(ae=0,me=0;ae>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,me++);return this.strip()};function d(W,N){var H=W.charCodeAt(N);return H>=65&&H<=70?H-55:H>=97&&H<=102?H-87:H-48&15}function p(W,N,H){var re=d(W,H);return H-1>=N&&(re|=d(W,H-1)<<4),re}c.prototype._parseHex=function(N,H,re){this.length=Math.ceil((N.length-H)/6),this.words=new Array(this.length);for(var ae=0;ae=H;ae-=2)Ce=p(N,H,ae)<=18?(me-=18,Le+=1,this.words[Le]|=Ce>>>26):me+=8;else{var de=N.length-H;for(ae=de%2===0?H+1:H;ae=18?(me-=18,Le+=1,this.words[Le]|=Ce>>>26):me+=8}this.strip()};function y(W,N,H,re){for(var ae=0,me=Math.min(W.length,H),Le=N;Le=49?ae+=Ce-49+10:Ce>=17?ae+=Ce-17+10:ae+=Ce}return ae}c.prototype._parseBase=function(N,H,re){this.words=[0],this.length=1;for(var ae=0,me=1;me<=67108863;me*=H)ae++;ae--,me=me/H|0;for(var Le=N.length-re,Ce=Le%ae,de=Math.min(Le,Le-Ce)+re,te=0,Se=re;Se1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(N,H){N=N||10,H=H|0||1;var re;if(N===16||N==="hex"){re="";for(var ae=0,me=0,Le=0;Le>>24-ae&16777215,ae+=2,ae>=26&&(ae-=26,Le--),me!==0||Le!==this.length-1?re=b[6-de.length]+de+re:re=de+re}for(me!==0&&(re=me.toString(16)+re);re.length%H!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var te=v[N],Se=C[N];re="";var Te=this.clone();for(Te.negative=0;!Te.isZero();){var be=Te.modn(Se).toString(N);Te=Te.idivn(Se),Te.isZero()?re=be+re:re=b[te-be.length]+be+re}for(this.isZero()&&(re="0"+re);re.length%H!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}l(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(N,H){return l(typeof h!="undefined"),this.toArrayLike(h,N,H)},c.prototype.toArray=function(N,H){return this.toArrayLike(Array,N,H)},c.prototype.toArrayLike=function(N,H,re){var ae=this.byteLength(),me=re||Math.max(1,ae);l(ae<=me,"byte array longer than desired length"),l(me>0,"Requested array length <= 0"),this.strip();var Le=H==="le",Ce=new N(me),de,te,Se=this.clone();if(Le){for(te=0;!Se.isZero();te++)de=Se.andln(255),Se.iushrn(8),Ce[te]=de;for(;te=4096&&(re+=13,H>>>=13),H>=64&&(re+=7,H>>>=7),H>=8&&(re+=4,H>>>=4),H>=2&&(re+=2,H>>>=2),re+H},c.prototype._zeroBits=function(N){if(N===0)return 26;var H=N,re=0;return(H&8191)===0&&(re+=13,H>>>=13),(H&127)===0&&(re+=7,H>>>=7),(H&15)===0&&(re+=4,H>>>=4),(H&3)===0&&(re+=2,H>>>=2),(H&1)===0&&re++,re},c.prototype.bitLength=function(){var N=this.words[this.length-1],H=this._countBits(N);return(this.length-1)*26+H};function M(W){for(var N=new Array(W.bitLength()),H=0;H>>ae}return N}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,H=0;HN.length?this.clone().ior(N):N.clone().ior(this)},c.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},c.prototype.iuand=function(N){var H;this.length>N.length?H=N:H=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},c.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},c.prototype.iuxor=function(N){var H,re;this.length>N.length?(H=this,re=N):(H=N,re=this);for(var ae=0;aeN.length?this.clone().ixor(N):N.clone().ixor(this)},c.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},c.prototype.inotn=function(N){l(typeof N=="number"&&N>=0);var H=Math.ceil(N/26)|0,re=N%26;this._expand(H),re>0&&H--;for(var ae=0;ae0&&(this.words[ae]=~this.words[ae]&67108863>>26-re),this.strip()},c.prototype.notn=function(N){return this.clone().inotn(N)},c.prototype.setn=function(N,H){l(typeof N=="number"&&N>=0);var re=N/26|0,ae=N%26;return this._expand(re+1),H?this.words[re]=this.words[re]|1<N.length?(re=this,ae=N):(re=N,ae=this);for(var me=0,Le=0;Le>>26;for(;me!==0&&Le>>26;if(this.length=re.length,me!==0)this.words[this.length]=me,this.length++;else if(re!==this)for(;LeN.length?this.clone().iadd(N):N.clone().iadd(this)},c.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var H=this.iadd(N);return N.negative=1,H._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ae,me;re>0?(ae=this,me=N):(ae=N,me=this);for(var Le=0,Ce=0;Ce>26,this.words[Ce]=H&67108863;for(;Le!==0&&Ce>26,this.words[Ce]=H&67108863;if(Le===0&&Ce>>26,Te=de&67108863,be=Math.min(te,N.length-1),He=Math.max(0,te-W.length+1);He<=be;He++){var Ie=te-He|0;ae=W.words[Ie]|0,me=N.words[He]|0,Le=ae*me+Te,Se+=Le/67108864|0,Te=Le&67108863}H.words[te]=Te|0,de=Se|0}return de!==0?H.words[te]=de|0:H.length--,H.strip()}var L=function(N,H,re){var ae=N.words,me=H.words,Le=re.words,Ce=0,de,te,Se,Te=ae[0]|0,be=Te&8191,He=Te>>>13,Ie=ae[1]|0,ge=Ie&8191,Be=Ie>>>13,ce=ae[2]|0,je=ce&8191,rt=ce>>>13,bt=ae[3]|0,Ot=bt&8191,it=bt>>>13,Ke=ae[4]|0,zt=Ke&8191,Mt=Ke>>>13,kt=ae[5]|0,$e=kt&8191,De=kt>>>13,Me=ae[6]|0,oe=Me&8191,Ne=Me>>>13,vt=ae[7]|0,lt=vt&8191,We=vt>>>13,Ve=ae[8]|0,et=Ve&8191,tt=Ve>>>13,Lt=ae[9]|0,jt=Lt&8191,or=Lt>>>13,yr=me[0]|0,vr=yr&8191,Vt=yr>>>13,Pe=me[1]|0,xe=Pe&8191,Oe=Pe>>>13,ze=me[2]|0,Re=ze&8191,ht=ze>>>13,st=me[3]|0,gt=st&8191,xt=st>>>13,pr=me[4]|0,br=pr&8191,cr=pr>>>13,Er=me[5]|0,ii=Er&8191,jr=Er>>>13,kr=me[6]|0,Vr=kr&8191,Ai=kr>>>13,Bi=me[7]|0,Di=Bi&8191,ln=Bi>>>13,hn=me[8]|0,qr=hn&8191,_i=hn>>>13,zi=me[9]|0,Rt=zi&8191,_t=zi>>>13;re.negative=N.negative^H.negative,re.length=19,de=Math.imul(be,vr),te=Math.imul(be,Vt),te=te+Math.imul(He,vr)|0,Se=Math.imul(He,Vt);var qt=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(qt>>>26)|0,qt&=67108863,de=Math.imul(ge,vr),te=Math.imul(ge,Vt),te=te+Math.imul(Be,vr)|0,Se=Math.imul(Be,Vt),de=de+Math.imul(be,xe)|0,te=te+Math.imul(be,Oe)|0,te=te+Math.imul(He,xe)|0,Se=Se+Math.imul(He,Oe)|0;var Nt=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,de=Math.imul(je,vr),te=Math.imul(je,Vt),te=te+Math.imul(rt,vr)|0,Se=Math.imul(rt,Vt),de=de+Math.imul(ge,xe)|0,te=te+Math.imul(ge,Oe)|0,te=te+Math.imul(Be,xe)|0,Se=Se+Math.imul(Be,Oe)|0,de=de+Math.imul(be,Re)|0,te=te+Math.imul(be,ht)|0,te=te+Math.imul(He,Re)|0,Se=Se+Math.imul(He,ht)|0;var mr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(mr>>>26)|0,mr&=67108863,de=Math.imul(Ot,vr),te=Math.imul(Ot,Vt),te=te+Math.imul(it,vr)|0,Se=Math.imul(it,Vt),de=de+Math.imul(je,xe)|0,te=te+Math.imul(je,Oe)|0,te=te+Math.imul(rt,xe)|0,Se=Se+Math.imul(rt,Oe)|0,de=de+Math.imul(ge,Re)|0,te=te+Math.imul(ge,ht)|0,te=te+Math.imul(Be,Re)|0,Se=Se+Math.imul(Be,ht)|0,de=de+Math.imul(be,gt)|0,te=te+Math.imul(be,xt)|0,te=te+Math.imul(He,gt)|0,Se=Se+Math.imul(He,xt)|0;var Lr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,de=Math.imul(zt,vr),te=Math.imul(zt,Vt),te=te+Math.imul(Mt,vr)|0,Se=Math.imul(Mt,Vt),de=de+Math.imul(Ot,xe)|0,te=te+Math.imul(Ot,Oe)|0,te=te+Math.imul(it,xe)|0,Se=Se+Math.imul(it,Oe)|0,de=de+Math.imul(je,Re)|0,te=te+Math.imul(je,ht)|0,te=te+Math.imul(rt,Re)|0,Se=Se+Math.imul(rt,ht)|0,de=de+Math.imul(ge,gt)|0,te=te+Math.imul(ge,xt)|0,te=te+Math.imul(Be,gt)|0,Se=Se+Math.imul(Be,xt)|0,de=de+Math.imul(be,br)|0,te=te+Math.imul(be,cr)|0,te=te+Math.imul(He,br)|0,Se=Se+Math.imul(He,cr)|0;var Nr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,de=Math.imul($e,vr),te=Math.imul($e,Vt),te=te+Math.imul(De,vr)|0,Se=Math.imul(De,Vt),de=de+Math.imul(zt,xe)|0,te=te+Math.imul(zt,Oe)|0,te=te+Math.imul(Mt,xe)|0,Se=Se+Math.imul(Mt,Oe)|0,de=de+Math.imul(Ot,Re)|0,te=te+Math.imul(Ot,ht)|0,te=te+Math.imul(it,Re)|0,Se=Se+Math.imul(it,ht)|0,de=de+Math.imul(je,gt)|0,te=te+Math.imul(je,xt)|0,te=te+Math.imul(rt,gt)|0,Se=Se+Math.imul(rt,xt)|0,de=de+Math.imul(ge,br)|0,te=te+Math.imul(ge,cr)|0,te=te+Math.imul(Be,br)|0,Se=Se+Math.imul(Be,cr)|0,de=de+Math.imul(be,ii)|0,te=te+Math.imul(be,jr)|0,te=te+Math.imul(He,ii)|0,Se=Se+Math.imul(He,jr)|0;var Fr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,de=Math.imul(oe,vr),te=Math.imul(oe,Vt),te=te+Math.imul(Ne,vr)|0,Se=Math.imul(Ne,Vt),de=de+Math.imul($e,xe)|0,te=te+Math.imul($e,Oe)|0,te=te+Math.imul(De,xe)|0,Se=Se+Math.imul(De,Oe)|0,de=de+Math.imul(zt,Re)|0,te=te+Math.imul(zt,ht)|0,te=te+Math.imul(Mt,Re)|0,Se=Se+Math.imul(Mt,ht)|0,de=de+Math.imul(Ot,gt)|0,te=te+Math.imul(Ot,xt)|0,te=te+Math.imul(it,gt)|0,Se=Se+Math.imul(it,xt)|0,de=de+Math.imul(je,br)|0,te=te+Math.imul(je,cr)|0,te=te+Math.imul(rt,br)|0,Se=Se+Math.imul(rt,cr)|0,de=de+Math.imul(ge,ii)|0,te=te+Math.imul(ge,jr)|0,te=te+Math.imul(Be,ii)|0,Se=Se+Math.imul(Be,jr)|0,de=de+Math.imul(be,Vr)|0,te=te+Math.imul(be,Ai)|0,te=te+Math.imul(He,Vr)|0,Se=Se+Math.imul(He,Ai)|0;var Gr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,de=Math.imul(lt,vr),te=Math.imul(lt,Vt),te=te+Math.imul(We,vr)|0,Se=Math.imul(We,Vt),de=de+Math.imul(oe,xe)|0,te=te+Math.imul(oe,Oe)|0,te=te+Math.imul(Ne,xe)|0,Se=Se+Math.imul(Ne,Oe)|0,de=de+Math.imul($e,Re)|0,te=te+Math.imul($e,ht)|0,te=te+Math.imul(De,Re)|0,Se=Se+Math.imul(De,ht)|0,de=de+Math.imul(zt,gt)|0,te=te+Math.imul(zt,xt)|0,te=te+Math.imul(Mt,gt)|0,Se=Se+Math.imul(Mt,xt)|0,de=de+Math.imul(Ot,br)|0,te=te+Math.imul(Ot,cr)|0,te=te+Math.imul(it,br)|0,Se=Se+Math.imul(it,cr)|0,de=de+Math.imul(je,ii)|0,te=te+Math.imul(je,jr)|0,te=te+Math.imul(rt,ii)|0,Se=Se+Math.imul(rt,jr)|0,de=de+Math.imul(ge,Vr)|0,te=te+Math.imul(ge,Ai)|0,te=te+Math.imul(Be,Vr)|0,Se=Se+Math.imul(Be,Ai)|0,de=de+Math.imul(be,Di)|0,te=te+Math.imul(be,ln)|0,te=te+Math.imul(He,Di)|0,Se=Se+Math.imul(He,ln)|0;var Hr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,de=Math.imul(et,vr),te=Math.imul(et,Vt),te=te+Math.imul(tt,vr)|0,Se=Math.imul(tt,Vt),de=de+Math.imul(lt,xe)|0,te=te+Math.imul(lt,Oe)|0,te=te+Math.imul(We,xe)|0,Se=Se+Math.imul(We,Oe)|0,de=de+Math.imul(oe,Re)|0,te=te+Math.imul(oe,ht)|0,te=te+Math.imul(Ne,Re)|0,Se=Se+Math.imul(Ne,ht)|0,de=de+Math.imul($e,gt)|0,te=te+Math.imul($e,xt)|0,te=te+Math.imul(De,gt)|0,Se=Se+Math.imul(De,xt)|0,de=de+Math.imul(zt,br)|0,te=te+Math.imul(zt,cr)|0,te=te+Math.imul(Mt,br)|0,Se=Se+Math.imul(Mt,cr)|0,de=de+Math.imul(Ot,ii)|0,te=te+Math.imul(Ot,jr)|0,te=te+Math.imul(it,ii)|0,Se=Se+Math.imul(it,jr)|0,de=de+Math.imul(je,Vr)|0,te=te+Math.imul(je,Ai)|0,te=te+Math.imul(rt,Vr)|0,Se=Se+Math.imul(rt,Ai)|0,de=de+Math.imul(ge,Di)|0,te=te+Math.imul(ge,ln)|0,te=te+Math.imul(Be,Di)|0,Se=Se+Math.imul(Be,ln)|0,de=de+Math.imul(be,qr)|0,te=te+Math.imul(be,_i)|0,te=te+Math.imul(He,qr)|0,Se=Se+Math.imul(He,_i)|0;var mi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(mi>>>26)|0,mi&=67108863,de=Math.imul(jt,vr),te=Math.imul(jt,Vt),te=te+Math.imul(or,vr)|0,Se=Math.imul(or,Vt),de=de+Math.imul(et,xe)|0,te=te+Math.imul(et,Oe)|0,te=te+Math.imul(tt,xe)|0,Se=Se+Math.imul(tt,Oe)|0,de=de+Math.imul(lt,Re)|0,te=te+Math.imul(lt,ht)|0,te=te+Math.imul(We,Re)|0,Se=Se+Math.imul(We,ht)|0,de=de+Math.imul(oe,gt)|0,te=te+Math.imul(oe,xt)|0,te=te+Math.imul(Ne,gt)|0,Se=Se+Math.imul(Ne,xt)|0,de=de+Math.imul($e,br)|0,te=te+Math.imul($e,cr)|0,te=te+Math.imul(De,br)|0,Se=Se+Math.imul(De,cr)|0,de=de+Math.imul(zt,ii)|0,te=te+Math.imul(zt,jr)|0,te=te+Math.imul(Mt,ii)|0,Se=Se+Math.imul(Mt,jr)|0,de=de+Math.imul(Ot,Vr)|0,te=te+Math.imul(Ot,Ai)|0,te=te+Math.imul(it,Vr)|0,Se=Se+Math.imul(it,Ai)|0,de=de+Math.imul(je,Di)|0,te=te+Math.imul(je,ln)|0,te=te+Math.imul(rt,Di)|0,Se=Se+Math.imul(rt,ln)|0,de=de+Math.imul(ge,qr)|0,te=te+Math.imul(ge,_i)|0,te=te+Math.imul(Be,qr)|0,Se=Se+Math.imul(Be,_i)|0,de=de+Math.imul(be,Rt)|0,te=te+Math.imul(be,_t)|0,te=te+Math.imul(He,Rt)|0,Se=Se+Math.imul(He,_t)|0;var Ei=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,de=Math.imul(jt,xe),te=Math.imul(jt,Oe),te=te+Math.imul(or,xe)|0,Se=Math.imul(or,Oe),de=de+Math.imul(et,Re)|0,te=te+Math.imul(et,ht)|0,te=te+Math.imul(tt,Re)|0,Se=Se+Math.imul(tt,ht)|0,de=de+Math.imul(lt,gt)|0,te=te+Math.imul(lt,xt)|0,te=te+Math.imul(We,gt)|0,Se=Se+Math.imul(We,xt)|0,de=de+Math.imul(oe,br)|0,te=te+Math.imul(oe,cr)|0,te=te+Math.imul(Ne,br)|0,Se=Se+Math.imul(Ne,cr)|0,de=de+Math.imul($e,ii)|0,te=te+Math.imul($e,jr)|0,te=te+Math.imul(De,ii)|0,Se=Se+Math.imul(De,jr)|0,de=de+Math.imul(zt,Vr)|0,te=te+Math.imul(zt,Ai)|0,te=te+Math.imul(Mt,Vr)|0,Se=Se+Math.imul(Mt,Ai)|0,de=de+Math.imul(Ot,Di)|0,te=te+Math.imul(Ot,ln)|0,te=te+Math.imul(it,Di)|0,Se=Se+Math.imul(it,ln)|0,de=de+Math.imul(je,qr)|0,te=te+Math.imul(je,_i)|0,te=te+Math.imul(rt,qr)|0,Se=Se+Math.imul(rt,_i)|0,de=de+Math.imul(ge,Rt)|0,te=te+Math.imul(ge,_t)|0,te=te+Math.imul(Be,Rt)|0,Se=Se+Math.imul(Be,_t)|0;var Vi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,de=Math.imul(jt,Re),te=Math.imul(jt,ht),te=te+Math.imul(or,Re)|0,Se=Math.imul(or,ht),de=de+Math.imul(et,gt)|0,te=te+Math.imul(et,xt)|0,te=te+Math.imul(tt,gt)|0,Se=Se+Math.imul(tt,xt)|0,de=de+Math.imul(lt,br)|0,te=te+Math.imul(lt,cr)|0,te=te+Math.imul(We,br)|0,Se=Se+Math.imul(We,cr)|0,de=de+Math.imul(oe,ii)|0,te=te+Math.imul(oe,jr)|0,te=te+Math.imul(Ne,ii)|0,Se=Se+Math.imul(Ne,jr)|0,de=de+Math.imul($e,Vr)|0,te=te+Math.imul($e,Ai)|0,te=te+Math.imul(De,Vr)|0,Se=Se+Math.imul(De,Ai)|0,de=de+Math.imul(zt,Di)|0,te=te+Math.imul(zt,ln)|0,te=te+Math.imul(Mt,Di)|0,Se=Se+Math.imul(Mt,ln)|0,de=de+Math.imul(Ot,qr)|0,te=te+Math.imul(Ot,_i)|0,te=te+Math.imul(it,qr)|0,Se=Se+Math.imul(it,_i)|0,de=de+Math.imul(je,Rt)|0,te=te+Math.imul(je,_t)|0,te=te+Math.imul(rt,Rt)|0,Se=Se+Math.imul(rt,_t)|0;var ti=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(ti>>>26)|0,ti&=67108863,de=Math.imul(jt,gt),te=Math.imul(jt,xt),te=te+Math.imul(or,gt)|0,Se=Math.imul(or,xt),de=de+Math.imul(et,br)|0,te=te+Math.imul(et,cr)|0,te=te+Math.imul(tt,br)|0,Se=Se+Math.imul(tt,cr)|0,de=de+Math.imul(lt,ii)|0,te=te+Math.imul(lt,jr)|0,te=te+Math.imul(We,ii)|0,Se=Se+Math.imul(We,jr)|0,de=de+Math.imul(oe,Vr)|0,te=te+Math.imul(oe,Ai)|0,te=te+Math.imul(Ne,Vr)|0,Se=Se+Math.imul(Ne,Ai)|0,de=de+Math.imul($e,Di)|0,te=te+Math.imul($e,ln)|0,te=te+Math.imul(De,Di)|0,Se=Se+Math.imul(De,ln)|0,de=de+Math.imul(zt,qr)|0,te=te+Math.imul(zt,_i)|0,te=te+Math.imul(Mt,qr)|0,Se=Se+Math.imul(Mt,_i)|0,de=de+Math.imul(Ot,Rt)|0,te=te+Math.imul(Ot,_t)|0,te=te+Math.imul(it,Rt)|0,Se=Se+Math.imul(it,_t)|0;var Qi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,de=Math.imul(jt,br),te=Math.imul(jt,cr),te=te+Math.imul(or,br)|0,Se=Math.imul(or,cr),de=de+Math.imul(et,ii)|0,te=te+Math.imul(et,jr)|0,te=te+Math.imul(tt,ii)|0,Se=Se+Math.imul(tt,jr)|0,de=de+Math.imul(lt,Vr)|0,te=te+Math.imul(lt,Ai)|0,te=te+Math.imul(We,Vr)|0,Se=Se+Math.imul(We,Ai)|0,de=de+Math.imul(oe,Di)|0,te=te+Math.imul(oe,ln)|0,te=te+Math.imul(Ne,Di)|0,Se=Se+Math.imul(Ne,ln)|0,de=de+Math.imul($e,qr)|0,te=te+Math.imul($e,_i)|0,te=te+Math.imul(De,qr)|0,Se=Se+Math.imul(De,_i)|0,de=de+Math.imul(zt,Rt)|0,te=te+Math.imul(zt,_t)|0,te=te+Math.imul(Mt,Rt)|0,Se=Se+Math.imul(Mt,_t)|0;var Yr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,de=Math.imul(jt,ii),te=Math.imul(jt,jr),te=te+Math.imul(or,ii)|0,Se=Math.imul(or,jr),de=de+Math.imul(et,Vr)|0,te=te+Math.imul(et,Ai)|0,te=te+Math.imul(tt,Vr)|0,Se=Se+Math.imul(tt,Ai)|0,de=de+Math.imul(lt,Di)|0,te=te+Math.imul(lt,ln)|0,te=te+Math.imul(We,Di)|0,Se=Se+Math.imul(We,ln)|0,de=de+Math.imul(oe,qr)|0,te=te+Math.imul(oe,_i)|0,te=te+Math.imul(Ne,qr)|0,Se=Se+Math.imul(Ne,_i)|0,de=de+Math.imul($e,Rt)|0,te=te+Math.imul($e,_t)|0,te=te+Math.imul(De,Rt)|0,Se=Se+Math.imul(De,_t)|0;var oi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(oi>>>26)|0,oi&=67108863,de=Math.imul(jt,Vr),te=Math.imul(jt,Ai),te=te+Math.imul(or,Vr)|0,Se=Math.imul(or,Ai),de=de+Math.imul(et,Di)|0,te=te+Math.imul(et,ln)|0,te=te+Math.imul(tt,Di)|0,Se=Se+Math.imul(tt,ln)|0,de=de+Math.imul(lt,qr)|0,te=te+Math.imul(lt,_i)|0,te=te+Math.imul(We,qr)|0,Se=Se+Math.imul(We,_i)|0,de=de+Math.imul(oe,Rt)|0,te=te+Math.imul(oe,_t)|0,te=te+Math.imul(Ne,Rt)|0,Se=Se+Math.imul(Ne,_t)|0;var Fi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,de=Math.imul(jt,Di),te=Math.imul(jt,ln),te=te+Math.imul(or,Di)|0,Se=Math.imul(or,ln),de=de+Math.imul(et,qr)|0,te=te+Math.imul(et,_i)|0,te=te+Math.imul(tt,qr)|0,Se=Se+Math.imul(tt,_i)|0,de=de+Math.imul(lt,Rt)|0,te=te+Math.imul(lt,_t)|0,te=te+Math.imul(We,Rt)|0,Se=Se+Math.imul(We,_t)|0;var rn=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(rn>>>26)|0,rn&=67108863,de=Math.imul(jt,qr),te=Math.imul(jt,_i),te=te+Math.imul(or,qr)|0,Se=Math.imul(or,_i),de=de+Math.imul(et,Rt)|0,te=te+Math.imul(et,_t)|0,te=te+Math.imul(tt,Rt)|0,Se=Se+Math.imul(tt,_t)|0;var tn=(Ce+de|0)+((te&8191)<<13)|0;Ce=(Se+(te>>>13)|0)+(tn>>>26)|0,tn&=67108863,de=Math.imul(jt,Rt),te=Math.imul(jt,_t),te=te+Math.imul(or,Rt)|0,Se=Math.imul(or,_t);var Ri=(Ce+de|0)+((te&8191)<<13)|0;return Ce=(Se+(te>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,Le[0]=qt,Le[1]=Nt,Le[2]=mr,Le[3]=Lr,Le[4]=Nr,Le[5]=Fr,Le[6]=Gr,Le[7]=Hr,Le[8]=mi,Le[9]=Ei,Le[10]=Vi,Le[11]=ti,Le[12]=Qi,Le[13]=Yr,Le[14]=oi,Le[15]=Fi,Le[16]=rn,Le[17]=tn,Le[18]=Ri,Ce!==0&&(Le[19]=Ce,re.length++),re};Math.imul||(L=A);function x(W,N,H){H.negative=N.negative^W.negative,H.length=W.length+N.length;for(var re=0,ae=0,me=0;me>>26)|0,ae+=Le>>>26,Le&=67108863}H.words[me]=Ce,re=Le,Le=ae}return re!==0?H.words[me]=re:H.length--,H.strip()}function k(W,N,H){var re=new S;return re.mulp(W,N,H)}c.prototype.mulTo=function(N,H){var re,ae=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,H):ae<63?re=A(this,N,H):ae<1024?re=x(this,N,H):re=k(this,N,H),re};function S(W,N){this.x=W,this.y=N}S.prototype.makeRBT=function(N){for(var H=new Array(N),re=c.prototype._countBits(N)-1,ae=0;ae>=1;return ae},S.prototype.permute=function(N,H,re,ae,me,Le){for(var Ce=0;Ce>>1)me++;return 1<>>13,re[2*Le+1]=me&8191,me=me>>>13;for(Le=2*H;Le>=26,H+=ae/67108864|0,H+=me>>>26,this.words[re]=me&67108863}return H!==0&&(this.words[re]=H,this.length++),this.length=N===0?1:this.length,this},c.prototype.muln=function(N){return this.clone().imuln(N)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(N){var H=M(N);if(H.length===0)return new c(1);for(var re=this,ae=0;ae=0);var H=N%26,re=(N-H)/26,ae=67108863>>>26-H<<26-H,me;if(H!==0){var Le=0;for(me=0;me>>26-H}Le&&(this.words[me]=Le,this.length++)}if(re!==0){for(me=this.length-1;me>=0;me--)this.words[me+re]=this.words[me];for(me=0;me=0);var ae;H?ae=(H-H%26)/26:ae=0;var me=N%26,Le=Math.min((N-me)/26,this.length),Ce=67108863^67108863>>>me<Le)for(this.length-=Le,te=0;te=0&&(Se!==0||te>=ae);te--){var Te=this.words[te]|0;this.words[te]=Se<<26-me|Te>>>me,Se=Te&Ce}return de&&Se!==0&&(de.words[de.length++]=Se),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(N,H,re){return l(this.negative===0),this.iushrn(N,H,re)},c.prototype.shln=function(N){return this.clone().ishln(N)},c.prototype.ushln=function(N){return this.clone().iushln(N)},c.prototype.shrn=function(N){return this.clone().ishrn(N)},c.prototype.ushrn=function(N){return this.clone().iushrn(N)},c.prototype.testn=function(N){l(typeof N=="number"&&N>=0);var H=N%26,re=(N-H)/26,ae=1<=0);var H=N%26,re=(N-H)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(H!==0&&re++,this.length=Math.min(re,this.length),H!==0){var ae=67108863^67108863>>>H<=67108864;H++)this.words[H]-=67108864,H===this.length-1?this.words[H+1]=1:this.words[H+1]++;return this.length=Math.max(this.length,H+1),this},c.prototype.isubn=function(N){if(l(typeof N=="number"),l(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var H=0;H>26)-(de/67108864|0),this.words[me+re]=Le&67108863}for(;me>26,this.words[me+re]=Le&67108863;if(Ce===0)return this.strip();for(l(Ce===-1),Ce=0,me=0;me>26,this.words[me]=Le&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(N,H){var re=this.length-N.length,ae=this.clone(),me=N,Le=me.words[me.length-1]|0,Ce=this._countBits(Le);re=26-Ce,re!==0&&(me=me.ushln(re),ae.iushln(re),Le=me.words[me.length-1]|0);var de=ae.length-me.length,te;if(H!=="mod"){te=new c(null),te.length=de+1,te.words=new Array(te.length);for(var Se=0;Se=0;be--){var He=(ae.words[me.length+be]|0)*67108864+(ae.words[me.length+be-1]|0);for(He=Math.min(He/Le|0,67108863),ae._ishlnsubmul(me,He,be);ae.negative!==0;)He--,ae.negative=0,ae._ishlnsubmul(me,1,be),ae.isZero()||(ae.negative^=1);te&&(te.words[be]=He)}return te&&te.strip(),ae.strip(),H!=="div"&&re!==0&&ae.iushrn(re),{div:te||null,mod:ae}},c.prototype.divmod=function(N,H,re){if(l(!N.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var ae,me,Le;return this.negative!==0&&N.negative===0?(Le=this.neg().divmod(N,H),H!=="mod"&&(ae=Le.div.neg()),H!=="div"&&(me=Le.mod.neg(),re&&me.negative!==0&&me.iadd(N)),{div:ae,mod:me}):this.negative===0&&N.negative!==0?(Le=this.divmod(N.neg(),H),H!=="mod"&&(ae=Le.div.neg()),{div:ae,mod:Le.mod}):(this.negative&N.negative)!==0?(Le=this.neg().divmod(N.neg(),H),H!=="div"&&(me=Le.mod.neg(),re&&me.negative!==0&&me.isub(N)),{div:Le.div,mod:me}):N.length>this.length||this.cmp(N)<0?{div:new c(0),mod:this}:N.length===1?H==="div"?{div:this.divn(N.words[0]),mod:null}:H==="mod"?{div:null,mod:new c(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new c(this.modn(N.words[0]))}:this._wordDiv(N,H)},c.prototype.div=function(N){return this.divmod(N,"div",!1).div},c.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},c.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},c.prototype.divRound=function(N){var H=this.divmod(N);if(H.mod.isZero())return H.div;var re=H.div.negative!==0?H.mod.isub(N):H.mod,ae=N.ushrn(1),me=N.andln(1),Le=re.cmp(ae);return Le<0||me===1&&Le===0?H.div:H.div.negative!==0?H.div.isubn(1):H.div.iaddn(1)},c.prototype.modn=function(N){l(N<=67108863);for(var H=(1<<26)%N,re=0,ae=this.length-1;ae>=0;ae--)re=(H*re+(this.words[ae]|0))%N;return re},c.prototype.idivn=function(N){l(N<=67108863);for(var H=0,re=this.length-1;re>=0;re--){var ae=(this.words[re]|0)+H*67108864;this.words[re]=ae/N|0,H=ae%N}return this.strip()},c.prototype.divn=function(N){return this.clone().idivn(N)},c.prototype.egcd=function(N){l(N.negative===0),l(!N.isZero());var H=this,re=N.clone();H.negative!==0?H=H.umod(N):H=H.clone();for(var ae=new c(1),me=new c(0),Le=new c(0),Ce=new c(1),de=0;H.isEven()&&re.isEven();)H.iushrn(1),re.iushrn(1),++de;for(var te=re.clone(),Se=H.clone();!H.isZero();){for(var Te=0,be=1;(H.words[0]&be)===0&&Te<26;++Te,be<<=1);if(Te>0)for(H.iushrn(Te);Te-- >0;)(ae.isOdd()||me.isOdd())&&(ae.iadd(te),me.isub(Se)),ae.iushrn(1),me.iushrn(1);for(var He=0,Ie=1;(re.words[0]&Ie)===0&&He<26;++He,Ie<<=1);if(He>0)for(re.iushrn(He);He-- >0;)(Le.isOdd()||Ce.isOdd())&&(Le.iadd(te),Ce.isub(Se)),Le.iushrn(1),Ce.iushrn(1);H.cmp(re)>=0?(H.isub(re),ae.isub(Le),me.isub(Ce)):(re.isub(H),Le.isub(ae),Ce.isub(me))}return{a:Le,b:Ce,gcd:re.iushln(de)}},c.prototype._invmp=function(N){l(N.negative===0),l(!N.isZero());var H=this,re=N.clone();H.negative!==0?H=H.umod(N):H=H.clone();for(var ae=new c(1),me=new c(0),Le=re.clone();H.cmpn(1)>0&&re.cmpn(1)>0;){for(var Ce=0,de=1;(H.words[0]&de)===0&&Ce<26;++Ce,de<<=1);if(Ce>0)for(H.iushrn(Ce);Ce-- >0;)ae.isOdd()&&ae.iadd(Le),ae.iushrn(1);for(var te=0,Se=1;(re.words[0]&Se)===0&&te<26;++te,Se<<=1);if(te>0)for(re.iushrn(te);te-- >0;)me.isOdd()&&me.iadd(Le),me.iushrn(1);H.cmp(re)>=0?(H.isub(re),ae.isub(me)):(re.isub(H),me.isub(ae))}var Te;return H.cmpn(1)===0?Te=ae:Te=me,Te.cmpn(0)<0&&Te.iadd(N),Te},c.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var H=this.clone(),re=N.clone();H.negative=0,re.negative=0;for(var ae=0;H.isEven()&&re.isEven();ae++)H.iushrn(1),re.iushrn(1);do{for(;H.isEven();)H.iushrn(1);for(;re.isEven();)re.iushrn(1);var me=H.cmp(re);if(me<0){var Le=H;H=re,re=Le}else if(me===0||re.cmpn(1)===0)break;H.isub(re)}while(!0);return re.iushln(ae)},c.prototype.invm=function(N){return this.egcd(N).a.umod(N)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(N){return this.words[0]&N},c.prototype.bincn=function(N){l(typeof N=="number");var H=N%26,re=(N-H)/26,ae=1<>>26,Ce&=67108863,this.words[Le]=Ce}return me!==0&&(this.words[Le]=me,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(N){var H=N<0;if(this.negative!==0&&!H)return-1;if(this.negative===0&&H)return 1;this.strip();var re;if(this.length>1)re=1;else{H&&(N=-N),l(N<=67108863,"Number is too big");var ae=this.words[0]|0;re=ae===N?0:aeN.length)return 1;if(this.length=0;re--){var ae=this.words[re]|0,me=N.words[re]|0;if(ae!==me){aeme&&(H=1);break}}return H},c.prototype.gtn=function(N){return this.cmpn(N)===1},c.prototype.gt=function(N){return this.cmp(N)===1},c.prototype.gten=function(N){return this.cmpn(N)>=0},c.prototype.gte=function(N){return this.cmp(N)>=0},c.prototype.ltn=function(N){return this.cmpn(N)===-1},c.prototype.lt=function(N){return this.cmp(N)===-1},c.prototype.lten=function(N){return this.cmpn(N)<=0},c.prototype.lte=function(N){return this.cmp(N)<=0},c.prototype.eqn=function(N){return this.cmpn(N)===0},c.prototype.eq=function(N){return this.cmp(N)===0},c.red=function(N){return new G(N)},c.prototype.toRed=function(N){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},c.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(N){return this.red=N,this},c.prototype.forceRed=function(N){return l(!this.red,"Already a number in reduction context"),this._forceRed(N)},c.prototype.redAdd=function(N){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},c.prototype.redIAdd=function(N){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},c.prototype.redSub=function(N){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},c.prototype.redISub=function(N){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},c.prototype.redShl=function(N){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},c.prototype.redMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},c.prototype.redIMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},c.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(N){return l(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var m={k256:null,p224:null,p192:null,p25519:null};function P(W,N){this.name=W,this.p=new c(N,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new c(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var H=N,re;do this.split(H,this.tmp),H=this.imulK(H),H=H.iadd(this.tmp),re=H.bitLength();while(re>this.n);var ae=re0?H.isub(this.p):H.strip!==void 0?H.strip():H._strip(),H},P.prototype.split=function(N,H){N.iushrn(this.n,0,H)},P.prototype.imulK=function(N){return N.imul(this.k)};function E(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(E,P),E.prototype.split=function(N,H){for(var re=4194303,ae=Math.min(N.length,9),me=0;me>>22,Le=Ce}Le>>>=22,N.words[me-10]=Le,Le===0&&N.length>10?N.length-=10:N.length-=9},E.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var H=0,re=0;re>>=26,N.words[re]=me,H=ae}return H!==0&&(N.words[N.length++]=H),N},c._prime=function(N){if(m[N])return m[N];var H;if(N==="k256")H=new E;else if(N==="p224")H=new O;else if(N==="p192")H=new F;else if(N==="p25519")H=new U;else throw new Error("Unknown prime "+N);return m[N]=H,H};function G(W){if(typeof W=="string"){var N=c._prime(W);this.m=N.p,this.prime=N}else l(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}G.prototype._verify1=function(N){l(N.negative===0,"red works only with positives"),l(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,H){l((N.negative|H.negative)===0,"red works only with positives"),l(N.red&&N.red===H.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,H){this._verify2(N,H);var re=N.add(H);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,H){this._verify2(N,H);var re=N.iadd(H);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,H){this._verify2(N,H);var re=N.sub(H);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,H){this._verify2(N,H);var re=N.isub(H);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,H){return this._verify1(N),this.imod(N.ushln(H))},G.prototype.imul=function(N,H){return this._verify2(N,H),this.imod(N.imul(H))},G.prototype.mul=function(N,H){return this._verify2(N,H),this.imod(N.mul(H))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var H=this.m.andln(3);if(l(H%2===1),H===3){var re=this.m.add(new c(1)).iushrn(2);return this.pow(N,re)}for(var ae=this.m.subn(1),me=0;!ae.isZero()&&ae.andln(1)===0;)me++,ae.iushrn(1);l(!ae.isZero());var Le=new c(1).toRed(this),Ce=Le.redNeg(),de=this.m.subn(1).iushrn(1),te=this.m.bitLength();for(te=new c(2*te*te).toRed(this);this.pow(te,de).cmp(Ce)!==0;)te.redIAdd(Ce);for(var Se=this.pow(te,ae),Te=this.pow(N,ae.addn(1).iushrn(1)),be=this.pow(N,ae),He=me;be.cmp(Le)!==0;){for(var Ie=be,ge=0;Ie.cmp(Le)!==0;ge++)Ie=Ie.redSqr();l(ge=0;me--){for(var Se=H.words[me],Te=te-1;Te>=0;Te--){var be=Se>>Te&1;if(Le!==ae[0]&&(Le=this.sqr(Le)),be===0&&Ce===0){de=0;continue}Ce<<=1,Ce|=be,de++,!(de!==re&&(me!==0||Te!==0))&&(Le=this.mul(Le,ae[Ce]),de=0,Ce=0)}te=26}return Le},G.prototype.convertTo=function(N){var H=N.umod(this.m);return H===N?H.clone():H},G.prototype.convertFrom=function(N){var H=N.clone();return H.red=null,H},c.mont=function(N){return new j(N)};function j(W){G.call(this,W),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(j,G),j.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},j.prototype.convertFrom=function(N){var H=this.imod(N.mul(this.rinv));return H.red=null,H},j.prototype.imul=function(N,H){if(N.isZero()||H.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(H),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),me=re.isub(ae).iushrn(this.shift),Le=me;return me.cmp(this.m)>=0?Le=me.isub(this.m):me.cmpn(0)<0&&(Le=me.iadd(this.m)),Le._forceRed(this)},j.prototype.mul=function(N,H){if(N.isZero()||H.isZero())return new c(0)._forceRed(this);var re=N.mul(H),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),me=re.isub(ae).iushrn(this.shift),Le=me;return me.cmp(this.m)>=0?Le=me.isub(this.m):me.cmpn(0)<0&&(Le=me.iadd(this.m)),Le._forceRed(this)},j.prototype.invm=function(N){var H=this.imod(N._invmp(this.m).mul(this.r2));return H._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,u,l,f=o.length,c=0;for(s=0;s>>1;if(!(S<=0)){var m,P=s.mallocDouble(2*S*x),E=s.mallocInt32(x);if(x=c(C,S,P,E),x>0){if(S===1&&L)u.init(x),m=u.sweepComplete(S,A,0,x,P,E,0,x,P,E);else{var O=s.mallocDouble(2*S*k),F=s.mallocInt32(k);k=c(M,S,O,F),k>0&&(u.init(x+k),S===1?m=u.sweepBipartite(S,A,0,x,P,E,0,k,O,F):m=l(S,A,L,x,P,E,k,O,F),s.free(O),s.free(F))}s.free(P),s.free(E)}return m}}}var d;function p(C,M){d.push([C,M])}function y(C){return d=[],h(C,C,p,!0),d}function b(C,M){return d=[],h(C,M,p,!1),d}function v(C,M,A){switch(arguments.length){case 1:return y(C);case 2:return typeof M=="function"?h(C,C,M,!0):b(C,M);case 3:return h(C,M,A,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function l(h,d,p,y,b,v,C,M,A,L,x){for(var k=2*h,S=y,m=k*y;SA-M?l(h,d,p,y,b,v,C,M,A,L,x):f(h,d,p,y,b,v,C,M,A,L,x)}return c}function s(){function l(p,y,b,v,C,M,A,L,x,k,S){for(var m=2*p,P=v,E=m*v;Pk-x?v?l(p,y,b,C,M,A,L,x,k,S,m):f(p,y,b,C,M,A,L,x,k,S,m):v?c(p,y,b,C,M,A,L,x,k,S,m):h(p,y,b,C,M,A,L,x,k,S,m)}return d}function u(l){return l?o():s()}a.partial=u(!1),a.full=u(!0)},7150:function(i,a,o){"use strict";i.exports=W;var s=o(1888),u=o(8828),l=o(2455),f=l.partial,c=l.full,h=o(855),d=o(3545),p=o(8105),y=128,b=1<<22,v=1<<22,C=p("!(lo>=p0)&&!(p1>=hi)"),M=p("lo===p0"),A=p("lo0;){Se-=1;var He=Se*S,Ie=E[He],ge=E[He+1],Be=E[He+2],ce=E[He+3],je=E[He+4],rt=E[He+5],bt=Se*m,Ot=O[bt],it=O[bt+1],Ke=rt&1,zt=!!(rt&16),Mt=me,kt=Le,$e=de,De=te;if(Ke&&(Mt=de,kt=te,$e=me,De=Le),!(rt&2&&(Be=A(N,Ie,ge,Be,Mt,kt,it),ge>=Be))&&!(rt&4&&(ge=L(N,Ie,ge,Be,Mt,kt,Ot),ge>=Be))){var Me=Be-ge,oe=je-ce;if(zt){if(N*Me*(Me+oe)p&&b[k+d]>L;--x,k-=C){for(var S=k,m=k+C,P=0;P>>1,L=2*h,x=A,k=b[L*A+d];C=O?(x=E,k=O):P>=U?(x=m,k=P):(x=F,k=U):O>=U?(x=E,k=O):U>=P?(x=m,k=P):(x=F,k=U);for(var W=L*(M-1),N=L*x,G=0;G=p0)&&!(p1>=hi)":d};function o(p){return a[p]}function s(p,y,b,v,C,M,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,E=b;v>E;++E,x+=L){var O=C[x+m];if(O===A)if(S===E)S+=1,k+=L;else{for(var F=0;L>F;++F){var U=C[x+F];C[x+F]=C[k],C[k++]=U}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function u(p,y,b,v,C,M,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,E=b;v>E;++E,x+=L){var O=C[x+m];if(OF;++F){var U=C[x+F];C[x+F]=C[k],C[k++]=U}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function l(p,y,b,v,C,M,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,E=b;v>E;++E,x+=L){var O=C[x+P];if(O<=A)if(S===E)S+=1,k+=L;else{for(var F=0;L>F;++F){var U=C[x+F];C[x+F]=C[k],C[k++]=U}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function f(p,y,b,v,C,M,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,E=b;v>E;++E,x+=L){var O=C[x+P];if(O<=A)if(S===E)S+=1,k+=L;else{for(var F=0;L>F;++F){var U=C[x+F];C[x+F]=C[k],C[k++]=U}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function c(p,y,b,v,C,M,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,E=b;v>E;++E,x+=L){var O=C[x+m],F=C[x+P];if(O<=A&&A<=F)if(S===E)S+=1,k+=L;else{for(var U=0;L>U;++U){var G=C[x+U];C[x+U]=C[k],C[k++]=G}var j=M[E];M[E]=M[S],M[S++]=j}}return S}function h(p,y,b,v,C,M,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,E=b;v>E;++E,x+=L){var O=C[x+m],F=C[x+P];if(OU;++U){var G=C[x+U];C[x+U]=C[k],C[k++]=G}var j=M[E];M[E]=M[S],M[S++]=j}}return S}function d(p,y,b,v,C,M,A,L){for(var x=2*p,k=x*b,S=k,m=b,P=y,E=p+y,O=b;v>O;++O,k+=x){var F=C[k+P],U=C[k+E];if(!(F>=A)&&!(L>=U))if(m===O)m+=1,S+=x;else{for(var G=0;x>G;++G){var j=C[k+G];C[k+G]=C[S],C[S++]=j}var W=M[O];M[O]=M[m],M[m++]=W}}return m}},4192:function(i){"use strict";i.exports=o;var a=32;function o(y,b){b<=4*a?s(0,b-1,y):p(0,b-1,y)}function s(y,b,v){for(var C=2*(y+1),M=y+1;M<=b;++M){for(var A=v[C++],L=v[C++],x=M,k=C-2;x-- >y;){var S=v[k-2],m=v[k-1];if(Sv[b+1]:!0}function d(y,b,v,C){y*=2;var M=C[y];return M>1,x=L-C,k=L+C,S=M,m=x,P=L,E=k,O=A,F=y+1,U=b-1,G=0;h(S,m,v)&&(G=S,S=m,m=G),h(E,O,v)&&(G=E,E=O,O=G),h(S,P,v)&&(G=S,S=P,P=G),h(m,P,v)&&(G=m,m=P,P=G),h(S,E,v)&&(G=S,S=E,E=G),h(P,E,v)&&(G=P,P=E,E=G),h(m,O,v)&&(G=m,m=O,O=G),h(m,P,v)&&(G=m,m=P,P=G),h(E,O,v)&&(G=E,E=O,O=G);for(var j=v[2*m],W=v[2*m+1],N=v[2*E],H=v[2*E+1],re=2*S,ae=2*P,me=2*O,Le=2*M,Ce=2*L,de=2*A,te=0;te<2;++te){var Se=v[re+te],Te=v[ae+te],be=v[me+te];v[Le+te]=Se,v[Ce+te]=Te,v[de+te]=be}l(x,y,v),l(k,b,v);for(var He=F;He<=U;++He)if(d(He,j,W,v))He!==F&&u(He,F,v),++F;else if(!d(He,N,H,v))for(;;)if(d(U,N,H,v)){d(U,j,W,v)?(f(He,F,U,v),++F,--U):(u(He,U,v),--U);break}else{if(--U>>1;l(C,Te);for(var be=0,He=0,Ce=0;Ce=f)Ie=Ie-f|0,A(p,y,He--,Ie);else if(Ie>=0)A(h,d,be--,Ie);else if(Ie<=-f){Ie=-Ie-f|0;for(var ge=0;ge>>1;l(C,Te);for(var be=0,He=0,Ie=0,Ce=0;Ce>1===C[2*Ce+3]>>1&&(Be=2,Ce+=1),ge<0){for(var ce=-(ge>>1)-1,je=0;je>1)-1;Be===0?A(h,d,be--,ce):Be===1?A(p,y,He--,ce):Be===2&&A(b,v,Ie--,ce)}}}function S(P,E,O,F,U,G,j,W,N,H,re,ae){var me=0,Le=2*P,Ce=E,de=E+P,te=1,Se=1;F?Se=f:te=f;for(var Te=U;Te>>1;l(C,ge);for(var Be=0,Te=0;Te=f?(je=!F,be-=f):(je=!!F,be-=1),je)L(h,d,Be++,be);else{var rt=ae[be],bt=Le*be,Ot=re[bt+E+1],it=re[bt+E+1+P];e:for(var Ke=0;Ke>>1;l(C,be);for(var He=0,de=0;de=f)h[He++]=te-f;else{te-=1;var ge=re[te],Be=me*te,ce=H[Be+E+1],je=H[Be+E+1+P];e:for(var rt=0;rt=0;--rt)if(h[rt]===te){for(var Ke=rt+1;Ke0;){for(var M=d.pop(),b=d.pop(),A=-1,L=-1,v=y[b],k=1;k=0||(h.flip(b,M),l(c,h,d,A,b,L),l(c,h,d,b,L,A),l(c,h,d,L,M,A),l(c,h,d,M,A,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function u(p,y,b,v,C,M,A){this.cells=p,this.neighbor=y,this.flags=v,this.constraint=b,this.active=C,this.next=M,this.boundary=A}var l=u.prototype;function f(p,y){return p[0]-y[0]||p[1]-y[1]||p[2]-y[2]}l.locate=function(){var p=[0,0,0];return function(y,b,v){var C=y,M=b,A=v;return b0||A.length>0;){for(;M.length>0;){var m=M.pop();if(L[m]!==-C){L[m]=C;for(var P=x[m],E=0;E<3;++E){var O=S[3*m+E];O>=0&&L[O]===0&&(k[3*m+E]?A.push(O):(M.push(O),L[O]=C))}}}var F=A;A=M,M=F,A.length=0,C=-C}var U=h(x,L,y);return b?U.concat(v.boundary):U}},8902:function(i,a,o){"use strict";var s=o(2478),u=o(3250)[3],l=0,f=1,c=2;i.exports=A;function h(L,x,k,S,m){this.a=L,this.b=x,this.idx=k,this.lowerIds=S,this.upperIds=m}function d(L,x,k,S){this.a=L,this.b=x,this.type=k,this.idx=S}function p(L,x){var k=L.a[0]-x.a[0]||L.a[1]-x.a[1]||L.type-x.type;return k||L.type!==l&&(k=u(L.a,L.b,x.b),k)?k:L.idx-x.idx}function y(L,x){return u(L.a,L.b,x)}function b(L,x,k,S,m){for(var P=s.lt(x,S,y),E=s.gt(x,S,y),O=P;O1&&u(k[U[j-2]],k[U[j-1]],S)>0;)L.push([U[j-1],U[j-2],m]),j-=1;U.length=j,U.push(m);for(var G=F.upperIds,j=G.length;j>1&&u(k[G[j-2]],k[G[j-1]],S)<0;)L.push([G[j-2],G[j-1],m]),j-=1;G.length=j,G.push(m)}}function v(L,x){var k;return L.a[0]F[0]&&m.push(new d(F,O,c,P),new d(O,F,f,P))}m.sort(p);for(var U=m[0].a[0]-(1+Math.abs(m[0].a[0]))*Math.pow(2,-52),G=[new h([U,1],[U,0],-1,[],[],[],[])],j=[],P=0,W=m.length;P=0}}(),l.removeTriangle=function(h,d,p){var y=this.stars;f(y[h],d,p),f(y[d],p,h),f(y[p],h,d)},l.addTriangle=function(h,d,p){var y=this.stars;y[h].push(d,p),y[d].push(p,h),y[p].push(h,d)},l.opposite=function(h,d){for(var p=this.stars[d],y=1,b=p.length;y=0;--N){var Se=j[N];H=Se[0];var Te=U[H],be=Te[0],He=Te[1],Ie=F[be],ge=F[He];if((Ie[0]-ge[0]||Ie[1]-ge[1])<0){var Be=be;be=He,He=Be}Te[0]=be;var ce=Te[1]=Se[1],je;for(W&&(je=Te[2]);N>0&&j[N-1][0]===H;){var Se=j[--N],rt=Se[1];W?U.push([ce,rt,je]):U.push([ce,rt]),ce=rt}W?U.push([ce,He,je]):U.push([ce,He])}return re}function x(F,U,G){for(var j=U.length,W=new s(j),N=[],H=0;HU[2]?1:0)}function m(F,U,G){if(F.length!==0){if(U)for(var j=0;j0||H.length>0}function O(F,U,G){var j;if(G){j=U;for(var W=new Array(U.length),N=0;NL+1)throw new Error(M+" map requires nshades to be at least size "+C.length);Array.isArray(d.alpha)?d.alpha.length!==2?x=[1,1]:x=d.alpha.slice():typeof d.alpha=="number"?x=[d.alpha,d.alpha]:x=[1,1],p=C.map(function(O){return Math.round(O.index*L)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var S=C.map(function(O,F){var U=C[F].index,G=C[F].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=x[0]+(x[1]-x[0])*U),G}),m=[];for(k=0;k=0}function d(p,y,b,v){var C=s(y,b,v);if(C===0){var M=u(s(p,y,b)),A=u(s(p,y,v));if(M===A){if(M===0){var L=h(p,y,b),x=h(p,y,v);return L===x?0:L?1:-1}return 0}else{if(A===0)return M>0||h(p,y,v)?-1:1;if(M===0)return A>0||h(p,y,b)?1:-1}return u(A-M)}var k=s(p,y,b);if(k>0)return C>0&&s(p,y,v)>0?1:-1;if(k<0)return C>0||s(p,y,v)>0?1:-1;var S=s(p,y,v);return S>0||h(p,y,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(u,l){return u-l}function s(u,l){var f=u.length,c=u.length-l.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-l[0];case 2:return u[0]+u[1]-l[0]-l[1]||a(u[0],u[1])-a(l[0],l[1]);case 3:var h=u[0]+u[1],d=l[0]+l[1];if(c=h+u[2]-(d+l[2]),c)return c;var p=a(u[0],u[1]),y=a(l[0],l[1]);return a(p,u[2])-a(y,l[2])||a(p+u[2],h)-a(y+l[2],d);case 4:var b=u[0],v=u[1],C=u[2],M=u[3],A=l[0],L=l[1],x=l[2],k=l[3];return b+v+C+M-(A+L+x+k)||a(b,v,C,M)-a(A,L,x,k,A)||a(b+v,b+C,b+M,v+C,v+M,C+M)-a(A+L,A+x,A+k,L+x,L+k,x+k)||a(b+v+C,b+v+M,b+C+M,v+C+M)-a(A+L+x,A+L+k,A+x+k,L+x+k);default:for(var S=u.slice().sort(o),m=l.slice().sort(o),P=0;Po[u][0]&&(u=l);return su?[[u],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=u;var s=o(3090);function u(l){var f=s(l),c=f.length;if(c<=2)return[];for(var h=new Array(c),d=f[c-1],p=0;p=d[A]&&(M+=1);v[C]=M}}return h}function c(h,d){try{return s(h,!0)}catch(v){var p=u(h);if(p.length<=d)return[];var y=l(h,p),b=s(y,!0);return f(b,p)}}},4769:function(i){"use strict";function a(s,u,l,f,c,h){var d=6*c*c-6*c,p=3*c*c-4*c+1,y=-6*c*c+6*c,b=3*c*c-2*c;if(s.length){h||(h=new Array(s.length));for(var v=s.length-1;v>=0;--v)h[v]=d*s[v]+p*u[v]+y*l[v]+b*f[v];return h}return d*s+p*u+y*l[v]+b*f}function o(s,u,l,f,c,h){var d=c-1,p=c*c,y=d*d,b=(1+2*c)*y,v=c*y,C=p*(3-2*c),M=p*d;if(s.length){h||(h=new Array(s.length));for(var A=s.length-1;A>=0;--A)h[A]=b*s[A]+v*u[A]+C*l[A]+M*f[A];return h}return b*s+v*u+C*l+M*f}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),u=o(1682);i.exports=h;function l(d,p){this.point=d,this.index=p}function f(d,p){for(var y=d.point,b=p.point,v=y.length,C=0;C=2)return!1;G[W]=N}return!0}):U=U.filter(function(G){for(var j=0;j<=b;++j){var W=P[G[j]];if(W<0)return!1;G[j]=W}return!0}),b&1)for(var M=0;M>>31},i.exports.exponent=function(C){var M=i.exports.hi(C);return(M<<1>>>21)-1023},i.exports.fraction=function(C){var M=i.exports.lo(C),A=i.exports.hi(C),L=A&(1<<20)-1;return A&2146435072&&(L+=1048576),[M,L]},i.exports.denormalized=function(C){var M=i.exports.hi(C);return!(M&2146435072)}},1338:function(i){"use strict";function a(u,l,f){var c=u[f]|0;if(c<=0)return[];var h=new Array(c),d;if(f===u.length-1)for(d=0;d0)return o(u|0,l);break;case"object":if(typeof u.length=="number")return a(u,l,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=u;var s=o(1682);function u(l,f){var c=l.length;if(typeof f!="number"){f=0;for(var h=0;h=b-1)for(var k=M.length-1,m=p-y[b-1],S=0;S=b-1)for(var x=M.length-1,k=p-y[b-1],S=0;S=0;--b)if(p[--y])return!1;return!0},c.jump=function(p){var y=this.lastT(),b=this.dimension;if(!(p0;--S)v.push(l(L[S-1],x[S-1],arguments[S])),C.push(0)}},c.push=function(p){var y=this.lastT(),b=this.dimension;if(!(p1e-6?1/A:0;this._time.push(p);for(var m=b;m>0;--m){var P=l(x[m-1],k[m-1],arguments[m]);v.push(P),C.push((P-v[M++])*S)}}},c.set=function(p){var y=this.dimension;if(!(p0;--L)b.push(l(M[L-1],A[L-1],arguments[L])),v.push(0)}},c.move=function(p){var y=this.lastT(),b=this.dimension;if(!(p<=y||arguments.length!==b+1)){var v=this._state,C=this._velocity,M=v.length-this.dimension,A=this.bounds,L=A[0],x=A[1],k=p-y,S=k>1e-6?1/k:0;this._time.push(p);for(var m=b;m>0;--m){var P=arguments[m];v.push(l(L[m-1],x[m-1],v[M++]+P)),C.push(P*S)}}},c.idle=function(p){var y=this.lastT();if(!(p=0;--S)v.push(l(L[S],x[S],v[M]+k*C[M])),C.push(0),M+=1}};function h(p){for(var y=new Array(p),b=0;b=0;--F){var m=P[F];E[F]<=0?P[F]=new s(m._color,m.key,m.value,P[F+1],m.right,m._count+1):P[F]=new s(m._color,m.key,m.value,m.left,P[F+1],m._count+1)}for(var F=P.length-1;F>1;--F){var U=P[F-1],m=P[F];if(U._color===o||m._color===o)break;var G=P[F-2];if(G.left===U)if(U.left===m){var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.left=U.right,U._color=o,U.right=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var W=P[F-3];W.left===G?W.left=U:W.right=U}break}}else{var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(U.right=m.left,G._color=a,G.left=m.right,m._color=o,m.left=U,m.right=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var W=P[F-3];W.left===G?W.left=m:W.right=m}break}}else if(U.right===m){var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.right=U.left,U._color=o,U.left=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var W=P[F-3];W.right===G?W.right=U:W.left=U}break}}else{var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(U.left=m.right,G._color=a,G.right=m.left,m._color=o,m.right=U,m.left=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var W=P[F-3];W.right===G?W.right=m:W.left=m}break}}}return P[0]._color=o,new c(S,P[0])};function d(x,k){if(k.left){var S=d(x,k.left);if(S)return S}var S=x(k.key,k.value);if(S)return S;if(k.right)return d(x,k.right)}function p(x,k,S,m){var P=k(x,m.key);if(P<=0){if(m.left){var E=p(x,k,S,m.left);if(E)return E}var E=S(m.key,m.value);if(E)return E}if(m.right)return p(x,k,S,m.right)}function y(x,k,S,m,P){var E=S(x,P.key),O=S(k,P.key),F;if(E<=0&&(P.left&&(F=y(x,k,S,m,P.left),F)||O>0&&(F=m(P.key,P.value),F)))return F;if(O>0&&P.right)return y(x,k,S,m,P.right)}h.forEach=function(k,S,m){if(this.root)switch(arguments.length){case 1:return d(k,this.root);case 2:return p(S,this._compare,k,this.root);case 3:return this._compare(S,m)>=0?void 0:y(S,m,this._compare,k,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],k=this.root;k;)x.push(k),k=k.left;return new b(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],k=this.root;k;)x.push(k),k=k.right;return new b(this,x)}}),h.at=function(x){if(x<0)return new b(this,[]);for(var k=this.root,S=[];;){if(S.push(k),k.left){if(x=k.right._count)break;k=k.right}else break}return new b(this,[])},h.ge=function(x){for(var k=this._compare,S=this.root,m=[],P=0;S;){var E=k(x,S.key);m.push(S),E<=0&&(P=m.length),E<=0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.gt=function(x){for(var k=this._compare,S=this.root,m=[],P=0;S;){var E=k(x,S.key);m.push(S),E<0&&(P=m.length),E<0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.lt=function(x){for(var k=this._compare,S=this.root,m=[],P=0;S;){var E=k(x,S.key);m.push(S),E>0&&(P=m.length),E<=0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.le=function(x){for(var k=this._compare,S=this.root,m=[],P=0;S;){var E=k(x,S.key);m.push(S),E>=0&&(P=m.length),E<0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.find=function(x){for(var k=this._compare,S=this.root,m=[];S;){var P=k(x,S.key);if(m.push(S),P===0)return new b(this,m);P<=0?S=S.left:S=S.right}return new b(this,[])},h.remove=function(x){var k=this.find(x);return k?k.remove():this},h.get=function(x){for(var k=this._compare,S=this.root;S;){var m=k(x,S.key);if(m===0)return S.value;m<=0?S=S.left:S=S.right}};function b(x,k){this.tree=x,this._stack=k}var v=b.prototype;Object.defineProperty(v,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(v,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),v.clone=function(){return new b(this.tree,this._stack.slice())};function C(x,k){x.key=k.key,x.value=k.value,x.left=k.left,x.right=k.right,x._color=k._color,x._count=k._count}function M(x){for(var k,S,m,P,E=x.length-1;E>=0;--E){if(k=x[E],E===0){k._color=o;return}if(S=x[E-1],S.left===k){if(m=S.right,m.right&&m.right._color===a){if(m=S.right=u(m),P=m.right=u(m.right),S.right=m.left,m.left=S,m.right=P,m._color=S._color,k._color=o,S._color=o,P._color=o,f(S),f(m),E>1){var O=x[E-2];O.left===S?O.left=m:O.right=m}x[E-1]=m;return}else if(m.left&&m.left._color===a){if(m=S.right=u(m),P=m.left=u(m.left),S.right=P.left,m.left=P.right,P.left=S,P.right=m,P._color=S._color,S._color=o,m._color=o,k._color=o,f(S),f(m),f(P),E>1){var O=x[E-2];O.left===S?O.left=P:O.right=P}x[E-1]=P;return}if(m._color===o)if(S._color===a){S._color=o,S.right=l(a,m);return}else{S.right=l(a,m);continue}else{if(m=u(m),S.right=m.left,m.left=S,m._color=S._color,S._color=a,f(S),f(m),E>1){var O=x[E-2];O.left===S?O.left=m:O.right=m}x[E-1]=m,x[E]=S,E+11){var O=x[E-2];O.right===S?O.right=m:O.left=m}x[E-1]=m;return}else if(m.right&&m.right._color===a){if(m=S.left=u(m),P=m.right=u(m.right),S.left=P.right,m.right=P.left,P.right=S,P.left=m,P._color=S._color,S._color=o,m._color=o,k._color=o,f(S),f(m),f(P),E>1){var O=x[E-2];O.right===S?O.right=P:O.left=P}x[E-1]=P;return}if(m._color===o)if(S._color===a){S._color=o,S.left=l(a,m);return}else{S.left=l(a,m);continue}else{if(m=u(m),S.left=m.right,m.right=S,m._color=S._color,S._color=a,f(S),f(m),E>1){var O=x[E-2];O.right===S?O.right=m:O.left=m}x[E-1]=m,x[E]=S,E+1=0;--m){var S=x[m];S.left===x[m+1]?k[m]=new s(S._color,S.key,S.value,k[m+1],S.right,S._count):k[m]=new s(S._color,S.key,S.value,S.left,k[m+1],S._count)}if(S=k[k.length-1],S.left&&S.right){var P=k.length;for(S=S.left;S.right;)k.push(S),S=S.right;var E=k[P-1];k.push(new s(S._color,E.key,E.value,S.left,S.right,S._count)),k[P-1].key=S.key,k[P-1].value=S.value;for(var m=k.length-2;m>=P;--m)S=k[m],k[m]=new s(S._color,S.key,S.value,S.left,k[m+1],S._count);k[P-1].left=k[P]}if(S=k[k.length-1],S._color===a){var O=k[k.length-2];O.left===S?O.left=null:O.right===S&&(O.right=null),k.pop();for(var m=0;m0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(v,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(v,"index",{get:function(){var x=0,k=this._stack;if(k.length===0){var S=this.tree.root;return S?S._count:0}else k[k.length-1].left&&(x=k[k.length-1].left._count);for(var m=k.length-2;m>=0;--m)k[m+1]===k[m].right&&(++x,k[m].left&&(x+=k[m].left._count));return x},enumerable:!0}),v.next=function(){var x=this._stack;if(x.length!==0){var k=x[x.length-1];if(k.right)for(k=k.right;k;)x.push(k),k=k.left;else for(x.pop();x.length>0&&x[x.length-1].right===k;)k=x[x.length-1],x.pop()}},Object.defineProperty(v,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var k=x.length-1;k>0;--k)if(x[k-1].left===x[k])return!0;return!1}}),v.update=function(x){var k=this._stack;if(k.length===0)throw new Error("Can't update empty node!");var S=new Array(k.length),m=k[k.length-1];S[S.length-1]=new s(m._color,m.key,x,m.left,m.right,m._count);for(var P=k.length-2;P>=0;--P)m=k[P],m.left===k[P+1]?S[P]=new s(m._color,m.key,m.value,S[P+1],m.right,m._count):S[P]=new s(m._color,m.key,m.value,m.left,S[P+1],m._count);return new c(this.tree._compare,S[0])},v.prev=function(){var x=this._stack;if(x.length!==0){var k=x[x.length-1];if(k.left)for(k=k.left;k;)x.push(k),k=k.right;else for(x.pop();x.length>0&&x[x.length-1].left===k;)k=x[x.length-1],x.pop()}},Object.defineProperty(v,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var k=x.length-1;k>0;--k)if(x[k-1].right===x[k])return!0;return!1}});function A(x,k){return xk?1:0}function L(x){return new c(x||A,null)}},3837:function(i,a,o){"use strict";i.exports=F;var s=o(4935),u=o(501),l=o(5304),f=o(6429),c=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,p=DataView;function y(U){return d.isView(U)&&!(U instanceof p)}function b(U){return Array.isArray(U)||y(U)}function v(U,G){return U[0]=G[0],U[1]=G[1],U[2]=G[2],U}function C(U){this.gl=U,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=l(U)}var M=C.prototype;M.update=function(U){U=U||{};function G(be,He,Ie){if(Ie in U){var ge=U[Ie],Be=this[Ie],ce;(be?b(ge)&&b(ge[0]):b(ge))?this[Ie]=ce=[He(ge[0]),He(ge[1]),He(ge[2])]:this[Ie]=ce=[He(ge),He(ge),He(ge)];for(var je=0;je<3;++je)if(ce[je]!==Be[je])return!0}return!1}var j=G.bind(this,!1,Number),W=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),H=G.bind(this,!0,function(be){if(b(be)){if(be.length===3)return[+be[0],+be[1],+be[2],1];if(be.length===4)return[+be[0],+be[1],+be[2],+be[3]]}return[0,0,0,1]}),re,ae=!1,me=!1;if("bounds"in U)for(var Le=U.bounds,Ce=0;Ce<2;++Ce)for(var de=0;de<3;++de)Le[Ce][de]!==this.bounds[Ce][de]&&(me=!0),this.bounds[Ce][de]=Le[Ce][de];if("ticks"in U){re=U.ticks,ae=!0,this.autoTicks=!1;for(var Ce=0;Ce<3;++Ce)this.tickSpacing[Ce]=0}else j("tickSpacing")&&(this.autoTicks=!0,me=!0);if(this._firstInit&&("ticks"in U||"tickSpacing"in U||(this.autoTicks=!0),me=!0,ae=!0,this._firstInit=!1),me&&this.autoTicks&&(re=c.create(this.bounds,this.tickSpacing),ae=!0),ae){for(var Ce=0;Ce<3;++Ce)re[Ce].sort(function(He,Ie){return He.x-Ie.x});c.equal(re,this.ticks)?ae=!1:this.ticks=re}W("tickEnable"),N("tickFont")&&(ae=!0),N("tickFontStyle")&&(ae=!0),N("tickFontWeight")&&(ae=!0),N("tickFontVariant")&&(ae=!0),j("tickSize"),j("tickAngle"),j("tickPad"),H("tickColor");var te=N("labels");N("labelFont")&&(te=!0),N("labelFontStyle")&&(te=!0),N("labelFontWeight")&&(te=!0),N("labelFontVariant")&&(te=!0),W("labelEnable"),j("labelSize"),j("labelPad"),H("labelColor"),W("lineEnable"),W("lineMirror"),j("lineWidth"),H("lineColor"),W("lineTickEnable"),W("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),H("lineTickColor"),W("gridEnable"),j("gridWidth"),H("gridColor"),W("zeroEnable"),H("zeroLineColor"),j("zeroLineWidth"),W("backgroundEnable"),H("backgroundColor");var Se=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Te=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(te||ae)&&this._text.update(this.bounds,this.labels,Se,this.ticks,Te):this._text=s(this.gl,this.bounds,this.labels,Se,this.ticks,Te),this._lines&&ae&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function A(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new A,new A,new A];function x(U,G,j,W,N){for(var H=U.primalOffset,re=U.primalMinor,ae=U.mirrorOffset,me=U.mirrorMinor,Le=W[G],Ce=0;Ce<3;++Ce)if(G!==Ce){var de=H,te=ae,Se=re,Te=me;Le&1<0?(Se[Ce]=-1,Te[Ce]=0):(Se[Ce]=0,Te[Ce]=1)}}var k=[0,0,0],S={model:h,view:h,projection:h,_ortho:!1};M.isOpaque=function(){return!0},M.isTransparent=function(){return!1},M.drawTransparent=function(U){};var m=0,P=[0,0,0],E=[0,0,0],O=[0,0,0];M.draw=function(U){U=U||S;for(var Ie=this.gl,G=U.model||h,j=U.view||h,W=U.projection||h,N=this.bounds,H=U._ortho||!1,re=f(G,j,W,N,H),ae=re.cubeEdges,me=re.axis,Le=j[12],Ce=j[13],de=j[14],te=j[15],Se=H?2:1,Te=Se*this.pixelRatio*(W[3]*Le+W[7]*Ce+W[11]*de+W[15]*te)/Ie.drawingBufferHeight,be=0;be<3;++be)this.lastCubeProps.cubeEdges[be]=ae[be],this.lastCubeProps.axis[be]=me[be];for(var He=L,be=0;be<3;++be)x(L[be],be,this.bounds,ae,me);for(var Ie=this.gl,ge=k,be=0;be<3;++be)this.backgroundEnable[be]?ge[be]=me[be]:ge[be]=0;this._background.draw(G,j,W,N,ge,this.backgroundColor),this._lines.bind(G,j,W,this);for(var be=0;be<3;++be){var Be=[0,0,0];me[be]>0?Be[be]=N[1][be]:Be[be]=N[0][be];for(var ce=0;ce<2;++ce){var je=(be+1+ce)%3,rt=(be+1+(ce^1))%3;this.gridEnable[je]&&this._lines.drawGrid(je,rt,this.bounds,Be,this.gridColor[je],this.gridWidth[je]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var je=(be+1+ce)%3,rt=(be+1+(ce^1))%3;this.zeroEnable[rt]&&Math.min(N[0][rt],N[1][rt])<=0&&Math.max(N[0][rt],N[1][rt])>=0&&this._lines.drawZero(je,rt,this.bounds,Be,this.zeroLineColor[rt],this.zeroLineWidth[rt]*this.pixelRatio)}}for(var be=0;be<3;++be){this.lineEnable[be]&&this._lines.drawAxisLine(be,this.bounds,He[be].primalOffset,this.lineColor[be],this.lineWidth[be]*this.pixelRatio),this.lineMirror[be]&&this._lines.drawAxisLine(be,this.bounds,He[be].mirrorOffset,this.lineColor[be],this.lineWidth[be]*this.pixelRatio);for(var bt=v(P,He[be].primalMinor),Ot=v(E,He[be].mirrorMinor),it=this.lineTickLength,ce=0;ce<3;++ce){var Ke=Te/G[5*ce];bt[ce]*=it[ce]*Ke,Ot[ce]*=it[ce]*Ke}this.lineTickEnable[be]&&this._lines.drawAxisTicks(be,He[be].primalOffset,bt,this.lineTickColor[be],this.lineTickWidth[be]*this.pixelRatio),this.lineTickMirror[be]&&this._lines.drawAxisTicks(be,He[be].mirrorOffset,Ot,this.lineTickColor[be],this.lineTickWidth[be]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,j,W,this.pixelRatio);var zt,Mt=.5,kt,$e;function De(We){$e=[0,0,0],$e[We]=1}function Me(We,Ve,et){var tt=(We+1)%3,Lt=(We+2)%3,jt=Ve[tt],or=Ve[Lt],yr=et[tt],vr=et[Lt];if(jt>0&&vr>0){De(tt);return}else if(jt>0&&vr<0){De(tt);return}else if(jt<0&&vr>0){De(tt);return}else if(jt<0&&vr<0){De(tt);return}else if(or>0&&yr>0){De(Lt);return}else if(or>0&&yr<0){De(Lt);return}else if(or<0&&yr>0){De(Lt);return}else if(or<0&&yr<0){De(Lt);return}}for(var be=0;be<3;++be){for(var oe=He[be].primalMinor,Ne=He[be].mirrorMinor,vt=v(O,He[be].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[be]&&(vt[ce]+=Te*oe[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var lt=[0,0,0];if(lt[be]=1,this.tickEnable[be]){this.tickAngle[be]===-3600?(this.tickAngle[be]=0,this.tickAlign[be]="auto"):this.tickAlign[be]=-1,kt=1,zt=[this.tickAlign[be],Mt,kt],zt[0]==="auto"?zt[0]=m:zt[0]=parseInt(""+zt[0]),$e=[0,0,0],Me(be,oe,Ne);for(var ce=0;ce<3;++ce)vt[ce]+=Te*oe[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(be,this.tickSize[be],this.tickAngle[be],vt,this.tickColor[be],lt,$e,zt)}if(this.labelEnable[be]){kt=0,$e=[0,0,0],this.labels[be].length>4&&(De(be),kt=1),zt=[this.labelAlign[be],Mt,kt],zt[0]==="auto"?zt[0]=m:zt[0]=parseInt(""+zt[0]);for(var ce=0;ce<3;++ce)vt[ce]+=Te*oe[ce]*this.labelPad[ce]/G[5*ce];vt[be]+=.5*(N[0][be]+N[1][be]),this._text.drawLabel(be,this.labelSize[be],this.labelAngle[be],vt,this.labelColor[be],[0,0,0],$e,zt)}}this._text.unbind()},M.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function F(U,G){var j=new C(U);return j.update(G),j}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),u=o(8116),l=o(1879).bg;function f(d,p,y,b){this.gl=d,this.buffer=p,this.vao=y,this.shader=b}var c=f.prototype;c.draw=function(d,p,y,b,v,C){for(var M=!1,A=0;A<3;++A)M=M||v[A];if(M){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:p,projection:y,bounds:b,enable:v,colors:C},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var p=[],y=[],b=0,v=0;v<3;++v)for(var C=(v+1)%3,M=(v+2)%3,A=[0,0,0],L=[0,0,0],x=-1;x<=1;x+=2){y.push(b,b+2,b+1,b+1,b+2,b+3),A[v]=x,L[v]=x;for(var k=-1;k<=1;k+=2){A[C]=k;for(var S=-1;S<=1;S+=2)A[M]=S,p.push(A[0],A[1],A[2],L[0],L[1],L[2]),b+=1}var m=C;C=M,M=m}var P=s(d,new Float32Array(p)),E=s(d,new Uint16Array(y),d.ELEMENT_ARRAY_BUFFER),O=u(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],E),F=l(d);return F.attributes.position.location=0,F.attributes.normal.location=1,new f(d,P,O,F)}},6429:function(i,a,o){"use strict";i.exports=x;var s=o(8828),u=o(6760),l=o(5202),f=o(3250),c=new Array(16),h=new Array(8),d=new Array(8),p=new Array(3),y=[0,0,0];(function(){for(var k=0;k<8;++k)h[k]=[1,1,1,1],d[k]=[1,1,1]})();function b(k,S,m){for(var P=0;P<4;++P){k[P]=m[12+P];for(var E=0;E<3;++E)k[P]+=S[E]*m[4*E+P]}}var v=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function C(k){for(var S=0;Sme&&(j|=1<me){j|=1<d[F][1])&&(He=F);for(var Ie=-1,F=0;F<3;++F){var ge=He^1<d[Be][0]&&(Be=ge)}}var ce=M;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Ie^He)]=He&Ie,ce[s.log2(He^Be)]=He&Be;var je=Be^7;je===j||je===be?(je=Ie^7,ce[s.log2(Be^je)]=je&Be):ce[s.log2(Ie^je)]=je&Ie;for(var rt=A,bt=j,H=0;H<3;++H)bt&1<{});function Ky(){}function SCe(){return this.rgb().formatHex()}function GPt(){return this.rgb().formatHex8()}function HPt(){return zCe(this).formatHsl()}function MCe(){return this.rgb().formatRgb()}function rx(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=FPt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ECe(t):r===3?new xd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?L6(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?L6(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=OPt.exec(e))?new xd(t[1],t[2],t[3],1):(t=BPt.exec(e))?new xd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qPt.exec(e))?L6(t[1],t[2],t[3],t[4]):(t=NPt.exec(e))?L6(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UPt.exec(e))?LCe(t[1],t[2]/100,t[3]/100,1):(t=VPt.exec(e))?LCe(t[1],t[2]/100,t[3]/100,t[4]):TCe.hasOwnProperty(e)?ECe(TCe[e]):e==="transparent"?new xd(NaN,NaN,NaN,0):null}function ECe(e){return new xd(e>>16&255,e>>8&255,e&255,1)}function L6(e,t,r,n){return n<=0&&(e=t=r=NaN),new xd(e,t,r,n)}function j4(e){return e instanceof Ky||(e=rx(e)),e?(e=e.rgb(),new xd(e.r,e.g,e.b,e.opacity)):new xd}function FT(e,t,r,n){return arguments.length===1?j4(e):new xd(e,t,r,n==null?1:n)}function xd(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function kCe(){return`#${q2(this.r)}${q2(this.g)}${q2(this.b)}`}function WPt(){return`#${q2(this.r)}${q2(this.g)}${q2(this.b)}${q2((isNaN(this.opacity)?1:this.opacity)*255)}`}function CCe(){let e=z6(this.opacity);return`${e===1?"rgb(":"rgba("}${N2(this.r)}, ${N2(this.g)}, ${N2(this.b)}${e===1?")":`, ${e})`}`}function z6(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function N2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function q2(e){return e=N2(e),(e<16?"0":"")+e.toString(16)}function LCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Km(e,t,r,n)}function zCe(e){if(e instanceof Km)return new Km(e.h,e.s,e.l,e.opacity);if(e instanceof Ky||(e=rx(e)),!e)return new Km;if(e instanceof Km)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&u<1?0:o,new Km(o,s,u,e.opacity)}function X4(e,t,r,n){return arguments.length===1?zCe(e):new Km(e,t,r,n==null?1:n)}function Km(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function PCe(e){return e=(e||0)%360,e<0?e+360:e}function P6(e){return Math.max(0,Math.min(1,e||0))}function Nj(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var tx,U2,DT,W4,Yy,FPt,OPt,BPt,qPt,NPt,UPt,VPt,TCe,I6=tc(()=>{C6();tx=.7,U2=1/tx,DT="\\s*([+-]?\\d+)\\s*",W4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",FPt=/^#([0-9a-f]{3,8})$/,OPt=new RegExp(`^rgb\\(${DT},${DT},${DT}\\)$`),BPt=new RegExp(`^rgb\\(${Yy},${Yy},${Yy}\\)$`),qPt=new RegExp(`^rgba\\(${DT},${DT},${DT},${W4}\\)$`),NPt=new RegExp(`^rgba\\(${Yy},${Yy},${Yy},${W4}\\)$`),UPt=new RegExp(`^hsl\\(${W4},${Yy},${Yy}\\)$`),VPt=new RegExp(`^hsla\\(${W4},${Yy},${Yy},${W4}\\)$`),TCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};r1(Ky,rx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:SCe,formatHex:SCe,formatHex8:GPt,formatHsl:HPt,formatRgb:MCe,toString:MCe});r1(xd,FT,ex(Ky,{brighter(e){return e=e==null?U2:Math.pow(U2,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?tx:Math.pow(tx,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xd(N2(this.r),N2(this.g),N2(this.b),z6(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kCe,formatHex:kCe,formatHex8:WPt,formatRgb:CCe,toString:CCe}));r1(Km,X4,ex(Ky,{brighter(e){return e=e==null?U2:Math.pow(U2,e),new Km(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?tx:Math.pow(tx,e),new Km(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new xd(Nj(e>=240?e-240:e+120,i,n),Nj(e,i,n),Nj(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Km(PCe(this.h),P6(this.s),P6(this.l),z6(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=z6(this.opacity);return`${e===1?"hsl(":"hsla("}${PCe(this.h)}, ${P6(this.s)*100}%, ${P6(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var R6,D6,Uj=tc(()=>{R6=Math.PI/180,D6=180/Math.PI});function BCe(e){if(e instanceof Jy)return new Jy(e.l,e.a,e.b,e.opacity);if(e instanceof i1)return qCe(e);e instanceof xd||(e=j4(e));var t=Wj(e.r),r=Wj(e.g),n=Wj(e.b),i=Vj((.2225045*t+.7168786*r+.0606169*n)/RCe),a,o;return t===r&&r===n?a=o=i:(a=Vj((.4360747*t+.3850649*r+.1430804*n)/ICe),o=Vj((.0139322*t+.0971045*r+.7141733*n)/DCe)),new Jy(116*i-16,500*(a-i),200*(i-o),e.opacity)}function BT(e,t,r,n){return arguments.length===1?BCe(e):new Jy(e,t,r,n==null?1:n)}function Jy(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Vj(e){return e>jPt?Math.pow(e,1/3):e/OCe+FCe}function Gj(e){return e>OT?e*e*e:OCe*(e-FCe)}function Hj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Wj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function XPt(e){if(e instanceof i1)return new i1(e.h,e.c,e.l,e.opacity);if(e instanceof Jy||(e=BCe(e)),e.a===0&&e.b===0)return new i1(NaN,0{C6();I6();Uj();F6=18,ICe=.96422,RCe=1,DCe=.82521,FCe=4/29,OT=6/29,OCe=3*OT*OT,jPt=OT*OT*OT;r1(Jy,BT,ex(Ky,{brighter(e){return new Jy(this.l+F6*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Jy(this.l-F6*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=ICe*Gj(t),e=RCe*Gj(e),r=DCe*Gj(r),new xd(Hj(3.1338561*t-1.6168667*e-.4906146*r),Hj(-.9787684*t+1.9161415*e+.033454*r),Hj(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));r1(i1,Z4,ex(Ky,{brighter(e){return new i1(this.h,this.c,this.l+F6*(e==null?1:e),this.opacity)},darker(e){return new i1(this.h,this.c,this.l-F6*(e==null?1:e),this.opacity)},rgb(){return qCe(this).rgb()}}))});function ZPt(e){if(e instanceof V2)return new V2(e.h,e.s,e.l,e.opacity);e instanceof xd||(e=j4(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(GCe*n+UCe*t-VCe*r)/(GCe+UCe-VCe),a=n-i,o=(Y4*(r-i)-Xj*a)/O6,s=Math.sqrt(o*o+a*a)/(Y4*i*(1-i)),u=s?Math.atan2(o,a)*D6-120:NaN;return new V2(u<0?u+360:u,s,i,e.opacity)}function qT(e,t,r,n){return arguments.length===1?ZPt(e):new V2(e,t,r,n==null?1:n)}function V2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var HCe,jj,Xj,O6,Y4,UCe,VCe,GCe,WCe=tc(()=>{C6();I6();Uj();HCe=-.14861,jj=1.78277,Xj=-.29227,O6=-.90649,Y4=1.97294,UCe=Y4*O6,VCe=Y4*jj,GCe=jj*Xj-O6*HCe;r1(V2,qT,ex(Ky,{brighter(e){return e=e==null?U2:Math.pow(U2,e),new V2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?tx:Math.pow(tx,e),new V2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*R6,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new xd(255*(t+r*(HCe*n+jj*i)),255*(t+r*(Xj*n+O6*i)),255*(t+r*(Y4*n)),this.opacity)}}))});var G2=tc(()=>{I6();NCe();WCe()});function Zj(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function B6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function N6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return Zj((r-n/t)*t,i,a,o,s)}}var Yj=tc(()=>{q6()});var NT,Kj=tc(()=>{NT=e=>()=>e});function jCe(e,t){return function(r){return e+r*t}}function YPt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function ix(e,t){var r=t-e;return r?jCe(e,r>180||r<-180?r-360*Math.round(r/360):r):NT(isNaN(e)?t:e)}function XCe(e){return(e=+e)==1?ph:function(t,r){return r-t?YPt(t,r,e):NT(isNaN(t)?r:t)}}function ph(e,t){var r=t-e;return r?jCe(e,r):NT(isNaN(e)?t:e)}var H2=tc(()=>{Kj()});function ZCe(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{G2();q6();Yj();H2();K4=(function e(t){var r=XCe(t);function n(i,a){var o=r((i=FT(i)).r,(a=FT(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=ph(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return n.gamma=e,n})(1);YCe=ZCe(B6),KCe=ZCe(N6)});function UT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function JCe(e,t){return(U6(t)?UT:$j)(e,t)}function $j(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{J4();V6()});function G6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var eX=tc(()=>{});function Fv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var $4=tc(()=>{});function H6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=nx(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var tX=tc(()=>{J4()});function KPt(e){return function(){return e}}function JPt(e){return function(t){return e(t)+""}}function W6(e,t){var r=iX.lastIndex=rX.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=iX.exec(e))&&(i=rX.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Fv(n,i)})),r=rX.lastIndex;return r{$4();iX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rX=new RegExp(iX.source,"g")});function nx(e,t){var r=typeof t,n;return t==null||r==="boolean"?NT(t):(r==="number"?Fv:r==="string"?(n=rx(t))?(t=n,K4):W6:t instanceof rx?K4:t instanceof Date?G6:U6(t)?UT:Array.isArray(t)?$j:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?H6:Fv)(e,t)}var J4=tc(()=>{G2();Jj();Qj();eX();$4();tX();nX();Kj();V6()});function $Ce(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var QCe=tc(()=>{});function eLe(e,t){var r=ix(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var tLe=tc(()=>{H2()});function rLe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var iLe=tc(()=>{});function aX(e,t,r,n,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n{nLe=180/Math.PI,j6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function oLe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?j6:aX(t.a,t.b,t.c,t.d,t.e,t.f)}function sLe(e){return e==null?j6:(X6||(X6=document.createElementNS("http://www.w3.org/2000/svg","g")),X6.setAttribute("transform",e),(e=X6.transform.baseVal.consolidate())?(e=e.matrix,aX(e.a,e.b,e.c,e.d,e.e,e.f)):j6)}var X6,lLe=tc(()=>{aLe()});function uLe(e,t,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,f,c,h,d,p){if(l!==c||f!==h){var y=d.push("translate(",null,t,null,r);p.push({i:y-4,x:Fv(l,c)},{i:y-2,x:Fv(f,h)})}else(c||h)&&d.push("translate("+c+t+h+r)}function o(l,f,c,h){l!==f?(l-f>180?f+=360:f-l>180&&(l+=360),h.push({i:c.push(i(c)+"rotate(",null,n)-2,x:Fv(l,f)})):f&&c.push(i(c)+"rotate("+f+n)}function s(l,f,c,h){l!==f?h.push({i:c.push(i(c)+"skewX(",null,n)-2,x:Fv(l,f)}):f&&c.push(i(c)+"skewX("+f+n)}function u(l,f,c,h,d,p){if(l!==c||f!==h){var y=d.push(i(d)+"scale(",null,",",null,")");p.push({i:y-4,x:Fv(l,c)},{i:y-2,x:Fv(f,h)})}else(c!==1||h!==1)&&d.push(i(d)+"scale("+c+","+h+")")}return function(l,f){var c=[],h=[];return l=e(l),f=e(f),a(l.translateX,l.translateY,f.translateX,f.translateY,c,h),o(l.rotate,f.rotate,c,h),s(l.skewX,f.skewX,c,h),u(l.scaleX,l.scaleY,f.scaleX,f.scaleY,c,h),l=f=null,function(d){for(var p=-1,y=h.length,b;++p{$4();lLe();fLe=uLe(oLe,"px, ","px)","deg)"),cLe=uLe(sLe,", ",")",")")});function dLe(e){return((e=Math.exp(e))+1/e)/2}function QPt(e){return((e=Math.exp(e))-1/e)/2}function ezt(e){return((e=Math.exp(2*e))-1)/(e+1)}var $Pt,pLe,vLe=tc(()=>{$Pt=1e-12;pLe=(function e(t,r,n){function i(a,o){var s=a[0],u=a[1],l=a[2],f=o[0],c=o[1],h=o[2],d=f-s,p=c-u,y=d*d+p*p,b,v;if(y<$Pt)v=Math.log(h/l)/t,b=function(k){return[s+k*d,u+k*p,l*Math.exp(t*k*v)]};else{var C=Math.sqrt(y),E=(h*h-l*l+n*y)/(2*l*r*C),A=(h*h-l*l-n*y)/(2*h*r*C),L=Math.log(Math.sqrt(E*E+1)-E),x=Math.log(Math.sqrt(A*A+1)-A);v=(x-L)/t,b=function(k){var S=k*v,m=dLe(L),P=l/(r*C)*(m*ezt(t*S+L)-QPt(L));return[s+P*d,u+P*p,l*m/dLe(t*S+L)]}}return b.duration=v*1e3*t/Math.SQRT2,b}return i.rho=function(a){var o=Math.max(.001,+a),s=o*o,u=s*s;return e(o,s,u)},i})(Math.SQRT2,2,4)});function mLe(e){return function(t,r){var n=e((t=X4(t)).h,(r=X4(r)).h),i=ph(t.s,r.s),a=ph(t.l,r.l),o=ph(t.opacity,r.opacity);return function(s){return t.h=n(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var yLe,gLe,_Le=tc(()=>{G2();H2();yLe=mLe(ix),gLe=mLe(ph)});function oX(e,t){var r=ph((e=BT(e)).l,(t=BT(t)).l),n=ph(e.a,t.a),i=ph(e.b,t.b),a=ph(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var xLe=tc(()=>{G2();H2()});function bLe(e){return function(t,r){var n=e((t=Z4(t)).h,(r=Z4(r)).h),i=ph(t.c,r.c),a=ph(t.l,r.l),o=ph(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var wLe,ALe,TLe=tc(()=>{G2();H2();wLe=bLe(ix),ALe=bLe(ph)});function SLe(e){return(function t(r){r=+r;function n(i,a){var o=e((i=qT(i)).h,(a=qT(a)).h),s=ph(i.s,a.s),u=ph(i.l,a.l),l=ph(i.opacity,a.opacity);return function(f){return i.h=o(f),i.s=s(f),i.l=u(Math.pow(f,r)),i.opacity=l(f),i+""}}return n.gamma=t,n})(1)}var MLe,ELe,kLe=tc(()=>{G2();H2();MLe=SLe(ix),ELe=SLe(ph)});function sX(e,t){t===void 0&&(t=e,e=nx);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{J4()});function LLe(e,t){for(var r=new Array(t),n=0;n{});var W2={};Iee(W2,{interpolate:()=>nx,interpolateArray:()=>JCe,interpolateBasis:()=>B6,interpolateBasisClosed:()=>N6,interpolateCubehelix:()=>MLe,interpolateCubehelixLong:()=>ELe,interpolateDate:()=>G6,interpolateDiscrete:()=>$Ce,interpolateHcl:()=>wLe,interpolateHclLong:()=>ALe,interpolateHsl:()=>yLe,interpolateHslLong:()=>gLe,interpolateHue:()=>eLe,interpolateLab:()=>oX,interpolateNumber:()=>Fv,interpolateNumberArray:()=>UT,interpolateObject:()=>H6,interpolateRgb:()=>K4,interpolateRgbBasis:()=>YCe,interpolateRgbBasisClosed:()=>KCe,interpolateRound:()=>rLe,interpolateString:()=>W6,interpolateTransformCss:()=>fLe,interpolateTransformSvg:()=>cLe,interpolateZoom:()=>pLe,piecewise:()=>sX,quantize:()=>LLe});var j2=tc(()=>{J4();Qj();q6();Yj();eX();QCe();tLe();$4();V6();tX();iLe();nX();hLe();vLe();Jj();_Le();xLe();TLe();kLe();CLe();PLe()});var Z6=we((oyr,zLe)=>{"use strict";var tzt=Mu(),rzt=jl();zLe.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,u=a||o.color;if(s>=0){r.i=o.i;var l=n.marker;l.pattern?(!l.colors||!l.pattern.shape)&&(l.color=u,r.color=u):(l.color=u,r.color=u),tzt.pointStyle(t,n,i,r)}else rzt.fill(t,u)}});var lX=we((syr,OLe)=>{"use strict";var ILe=Kl(),RLe=jl(),DLe=ei(),izt=Ap().resizeText,nzt=Z6();function azt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");izt(e,t,"sunburst"),t.each(function(r){var n=ILe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){ILe.select(this).call(FLe,o,a,e)})})}function FLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=DLe.castOption(r,o,"marker.line.color")||RLe.defaultLine,u=DLe.castOption(r,o,"marker.line.width")||0;e.call(nzt,t,r,n).style("stroke-width",u).call(RLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}OLe.exports={style:azt,styleOne:FLe}});var n1=we(yf=>{"use strict";var X2=ei(),ozt=jl(),szt=Em(),BLe=y_();yf.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(yf.getPtId(n)===t)return r=n.copy()}),r||e};yf.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};yf.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};yf.isHeader=function(e,t){return!(yf.isLeaf(e)||e.depth===t._maxDepth-1)};function qLe(e){return e.data.data.pid}yf.getParent=function(e,t){return yf.findEntryWithLevel(e,qLe(t))};yf.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return yf.listPath(r,t).concat(n)};yf.getPath=function(e){return yf.listPath(e,"label").join("/")+"/"};yf.formatValue=BLe.formatPieValue;yf.formatPercent=function(e,t){var r=X2.formatPercent(e,0);return r==="0%"&&(r=BLe.formatPiePercent(e,t)),r}});var tk=we((uyr,VLe)=>{"use strict";var VT=Kl(),NLe=$l(),fzt=iv().appendArrayPointValue,Q4=Vc(),ULe=ei(),czt=z3(),od=n1(),hzt=y_(),dzt=hzt.formatPieValue;VLe.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,u=o.hierarchy,l=s.type==="sunburst",f=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var c=function(p){var y=n._fullLayout;if(!(n._dragging||y.hovermode===!1)){var b=n._fullData[s.index],v=p.data.data,C=v.i,E=od.isHierarchyRoot(p),A=od.getParent(u,p),L=od.getValue(p),x=function(Ce){return ULe.castOption(b,C,Ce)},k=x("hovertemplate"),S=Q4.castHoverinfo(b,y,C),m=y.separators,P;if(k||S&&S!=="none"&&S!=="skip"){var M,O;l&&(M=o.cx+p.pxmid[0]*(1-p.rInscribed),O=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(M=p._hoverX,O=p._hoverY);var F={},U=[],G=[],j=function(Ce){return U.indexOf(Ce)!==-1};S&&(U=S==="all"?b._module.attributes.hoverinfo.flags:S.split("+")),F.label=v.label,j("label")&&F.label&&G.push(F.label),v.hasOwnProperty("v")&&(F.value=v.v,F.valueLabel=dzt(F.value,m),j("value")&&G.push(F.valueLabel)),F.currentPath=p.currentPath=od.getPath(p.data),j("current path")&&!E&&G.push(F.currentPath);var W,N=[],H=function(){N.indexOf(W)===-1&&(G.push(W),N.push(W))};F.percentParent=p.percentParent=L/od.getValue(A),F.parent=p.parentString=od.getPtLabel(A),j("percent parent")&&(W=od.formatPercent(F.percentParent,m)+" of "+F.parent,H()),F.percentEntry=p.percentEntry=L/od.getValue(r),F.entry=p.entry=od.getPtLabel(r),j("percent entry")&&!E&&!p.onPathbar&&(W=od.formatPercent(F.percentEntry,m)+" of "+F.entry,H()),F.percentRoot=p.percentRoot=L/od.getValue(u),F.root=p.root=od.getPtLabel(u),j("percent root")&&!E&&(W=od.formatPercent(F.percentRoot,m)+" of "+F.root,H()),F.text=x("hovertext")||x("text"),j("text")&&(W=F.text,ULe.isValidTextValue(W)&&G.push(W)),P=[ek(p,b,a.eventDataKeys)];var re={trace:b,y:O,_x0:p._x0,_x1:p._x1,_y0:p._y0,_y1:p._y1,text:G.join("
"),name:k||j("name")?b.name:void 0,color:x("hoverlabel.bgcolor")||v.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:k,hovertemplateLabels:F,eventData:P};l&&(re.x0=M-p.rInscribed*p.rpx1,re.x1=M+p.rInscribed*p.rpx1,re.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(re.x=M,re.idealAlign=M<0?"left":"right");var ae=[];Q4.loneHover(re,{container:y._hoverlayer.node(),outerContainer:y._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(f){var me=t.select("path.surface");a.styleOne(me,p,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[ek(p,b,a.eventDataKeys)],event:VT.event})}},h=function(p){var y=n._fullLayout,b=n._fullData[s.index],v=VT.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=VT.event,n.emit("plotly_unhover",{points:[ek(v,b,a.eventDataKeys)],event:VT.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(Q4.loneUnhover(y._hoverlayer.node()),s._hasHoverLabel=!1),f){var C=t.select("path.surface");a.styleOne(C,v,b,n,{hovered:!1})}},d=function(p){var y=n._fullLayout,b=n._fullData[s.index],v=l&&(od.isHierarchyRoot(p)||od.isLeaf(p)),C=od.getPtId(p),E=od.isEntry(p)?od.findEntryWithChild(u,C):od.findEntryWithLevel(u,C),A=od.getPtId(E),L={points:[ek(p,b,a.eventDataKeys)],event:VT.event};v||(L.nextLevel=A);var x=czt.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&y.hovermode&&(n._hoverdata=[ek(p,b,a.eventDataKeys)],Q4.click(n,VT.event)),!v&&x!==!1&&!n._dragging&&!n._transitioning){NLe.call("_storeDirectGUIEdit",b,y._tracePreGUI[b.uid],{level:b.level});var k={data:[{level:A}],traces:[s.index]},S={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};Q4.loneUnhover(y._hoverlayer.node()),NLe.call("animate",n,k,S)}};t.on("mouseover",c),t.on("mouseout",h),t.on("click",d)};function ek(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var rk=Kl(),pzt=V4(),Jm=(j2(),mb(W2)).interpolate,GLe=Mu(),Mp=ei(),vzt=Wf(),XLe=Ap(),HLe=XLe.recordMinTextSize,mzt=XLe.clearMinTextSize,ZLe=E6(),yzt=y_().getRotationAngle,gzt=ZLe.computeTransform,_zt=ZLe.transformInsideText,xzt=lX().styleOne,bzt=V0().resizeText,wzt=tk(),uX=Bj(),Bf=n1();Y6.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,u=!r,l=!i.uniformtext.mode&&Bf.hasTransition(r);if(mzt("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(c){return c[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),l){n&&(s=n());var f=rk.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});f.each(function(){a.selectAll("g.trace").each(function(c){WLe(e,c,this,r)})})}else o.each(function(c){WLe(e,c,this,r)}),i.uniformtext.mode&&bzt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");u&&o.exit().remove()};function WLe(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Bf.hasTransition(n),s=rk.select(r),u=s.selectAll("g.slice"),l=t[0],f=l.trace,c=l.hierarchy,h=Bf.findEntryWithLevel(c,f.level),d=Bf.getMaxDepth(f),p=a._size,y=f.domain,b=p.w*(y.x[1]-y.x[0]),v=p.h*(y.y[1]-y.y[0]),C=.5*Math.min(b,v),E=l.cx=p.l+p.w*(y.x[1]+y.x[0])/2,A=l.cy=p.t+p.h*(1-y.y[0])-v/2;if(!h)return u.remove();var L=null,x={};o&&u.each(function(de){x[Bf.getPtId(de)]={rpx0:de.rpx0,rpx1:de.rpx1,x0:de.x0,x1:de.x1,transform:de.transform},!L&&Bf.isEntry(de)&&(L=de)});var k=Azt(h).descendants(),S=h.height+1,m=0,P=d;l.hasMultipleRoots&&Bf.isHierarchyRoot(h)&&(k=k.slice(1),S-=1,m=1,P+=1),k=k.filter(function(de){return de.y1<=P});var M=yzt(f.rotation);M&&k.forEach(function(de){de.x0+=M,de.x1+=M});var O=Math.min(S,d),F=function(de){return(de-m)/O*C},U=function(de,te){return[de*Math.cos(te),-de*Math.sin(te)]},G=function(de){return Mp.pathAnnulus(de.rpx0,de.rpx1,de.x0,de.x1,E,A)},j=function(de){return E+jLe(de)[0]*(de.transform.rCenter||0)+(de.transform.x||0)},W=function(de){return A+jLe(de)[1]*(de.transform.rCenter||0)+(de.transform.y||0)};u=u.data(k,Bf.getPtId),u.enter().append("g").classed("slice",!0),o?u.exit().transition().each(function(){var de=rk.select(this),te=de.select("path.surface");te.transition().attrTween("d",function(Te){var be=ae(Te);return function(He){return G(be(He))}});var Se=de.select("g.slicetext");Se.attr("opacity",0)}).remove():u.exit().remove(),u.order();var N=null;if(o&&L){var H=Bf.getPtId(L);u.each(function(de){N===null&&Bf.getPtId(de)===H&&(N=de.x1)})}var re=u;o&&(re=re.transition().each("end",function(){var de=rk.select(this);Bf.setSliceCursor(de,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(de){var te=rk.select(this),Se=Mp.ensureSingle(te,"path","surface",function(Be){Be.style("pointer-events",i?"none":"all")});de.rpx0=F(de.y0),de.rpx1=F(de.y1),de.xmid=(de.x0+de.x1)/2,de.pxmid=U(de.rpx1,de.xmid),de.midangle=-(de.xmid-Math.PI/2),de.startangle=-(de.x0-Math.PI/2),de.stopangle=-(de.x1-Math.PI/2),de.halfangle=.5*Math.min(Mp.angleDelta(de.x0,de.x1)||Math.PI,Math.PI),de.ring=1-de.rpx0/de.rpx1,de.rInscribed=Tzt(de,f),o?Se.transition().attrTween("d",function(Be){var ce=me(Be);return function(je){return G(ce(je))}}):Se.attr("d",G),te.call(wzt,h,e,t,{eventDataKeys:uX.eventDataKeys,transitionTime:uX.CLICK_TRANSITION_TIME,transitionEasing:uX.CLICK_TRANSITION_EASING}).call(Bf.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(xzt,de,f,e);var Te=Mp.ensureSingle(te,"g","slicetext"),be=Mp.ensureSingle(Te,"text","",function(Be){Be.attr("data-notex",1)}),He=Mp.ensureUniformFontSize(e,Bf.determineTextFont(f,de,a.font));be.text(Y6.formatSliceLabel(de,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(GLe.font,He).call(vzt.convertToTspans,e);var Ie=GLe.bBox(be.node());de.transform=_zt(Ie,de,l),de.transform.targetX=j(de),de.transform.targetY=W(de);var ge=function(Be,ce){var je=Be.transform;return gzt(je,ce),je.fontSize=He.size,HLe(f.type,je,a),Mp.getTextTransform(je)};o?be.transition().attrTween("transform",function(Be){var ce=Ce(Be);return function(je){return ge(ce(je),Ie)}}):be.attr("transform",ge(de,Ie))});function ae(de){var te=Bf.getPtId(de),Se=x[te],Te=x[Bf.getPtId(h)],be;if(Te){var He=(de.x1>Te.x1?2*Math.PI:0)+M;be=de.rpx1N?2*Math.PI:0)+M;Se={x0:be,x1:be}}else Se={rpx0:C,rpx1:C},Mp.extendFlat(Se,Ee(de));else Se={rpx0:0,rpx1:0};else Se={x0:M,x1:M};return Jm(Se,Te)}function Ce(de){var te=x[Bf.getPtId(de)],Se,Te=de.transform;if(te)Se=te;else if(Se={rpx1:de.rpx1,transform:{textPosAngle:Te.textPosAngle,scale:0,rotate:Te.rotate,rCenter:Te.rCenter,x:Te.x,y:Te.y}},L)if(de.parent)if(N){var be=de.x1>N?2*Math.PI:0;Se.x0=Se.x1=be}else Mp.extendFlat(Se,Ee(de));else Se.x0=Se.x1=M;else Se.x0=Se.x1=M;var He=Jm(Se.transform.textPosAngle,de.transform.textPosAngle),Ie=Jm(Se.rpx1,de.rpx1),ge=Jm(Se.x0,de.x0),Be=Jm(Se.x1,de.x1),ce=Jm(Se.transform.scale,Te.scale),je=Jm(Se.transform.rotate,Te.rotate),rt=Te.rCenter===0?3:Se.transform.rCenter===0?1/3:1,bt=Jm(Se.transform.rCenter,Te.rCenter),Ot=function(it){return bt(Math.pow(it,rt))};return function(it){var Ke=Ie(it),zt=ge(it),Mt=Be(it),kt=Ot(it),$e=U(Ke,(zt+Mt)/2),Re=He(it),Me={pxmid:$e,rpx1:Ke,transform:{textPosAngle:Re,rCenter:kt,x:Te.x,y:Te.y}};return HLe(f.type,Te,a),{transform:{targetX:j(Me),targetY:W(Me),scale:ce(it),rotate:je(it),rCenter:kt}}}}function Ee(de){var te=de.parent,Se=x[Bf.getPtId(te)],Te={};if(Se){var be=te.children,He=be.indexOf(de),Ie=be.length,ge=Jm(Se.x0,Se.x1);Te.x0=ge(He/Ie),Te.x1=ge(He/Ie)}else Te.x0=Te.x1=0;return Te}}function Azt(e){return pzt.partition().size([2*Math.PI,e.height+1])(e)}Y6.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,u=n[0],l=e.data.data,f=u.hierarchy,c=Bf.isHierarchyRoot(e),h=Bf.getParent(f,e),d=Bf.getValue(e);if(!a){var p=o.split("+"),y=function(m){return p.indexOf(m)!==-1},b=[],v;if(y("label")&&l.label&&b.push(l.label),l.hasOwnProperty("v")&&y("value")&&b.push(Bf.formatValue(l.v,s)),!c){y("current path")&&b.push(Bf.getPath(e.data));var C=0;y("percent parent")&&C++,y("percent entry")&&C++,y("percent root")&&C++;var E=C>1;if(C){var A,L=function(m){v=Bf.formatPercent(A,s),E&&(v+=" of "+m),b.push(v)};y("percent parent")&&!c&&(A=d/Bf.getValue(h),L("parent")),y("percent entry")&&(A=d/Bf.getValue(t),L("entry")),y("percent root")&&(A=d/Bf.getValue(f),L("root"))}}return y("text")&&(v=Mp.castOption(r,l.i,"text"),Mp.isValidTextValue(v)&&b.push(v)),b.join("
")}var x=Mp.castOption(r,l.i,"texttemplate");if(!x)return"";var k={};l.label&&(k.label=l.label),l.hasOwnProperty("v")&&(k.value=l.v,k.valueLabel=Bf.formatValue(l.v,s)),k.currentPath=Bf.getPath(e.data),c||(k.percentParent=d/Bf.getValue(h),k.percentParentLabel=Bf.formatPercent(k.percentParent,s),k.parent=Bf.getPtLabel(h)),k.percentEntry=d/Bf.getValue(t),k.percentEntryLabel=Bf.formatPercent(k.percentEntry,s),k.entry=Bf.getPtLabel(t),k.percentRoot=d/Bf.getValue(f),k.percentRootLabel=Bf.formatPercent(k.percentRoot,s),k.root=Bf.getPtLabel(f),l.hasOwnProperty("color")&&(k.color=l.color);var S=Mp.castOption(r,l.i,"text");return(Mp.isValidTextValue(S)||S==="")&&(k.text=S),k.customdata=Mp.castOption(r,l.i,"customdata"),Mp.texttemplateString({data:[k,r._meta],fallback:r.texttemplatefallback,labels:k,locale:i._d3locale,template:x})};function Tzt(e){return e.rpx0===0&&Mp.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function jLe(e){return Szt(e.rpx1,e.transform.textPosAngle)}function Szt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var KLe=we((cyr,YLe)=>{"use strict";YLe.exports={moduleType:"trace",name:"sunburst",basePlotModule:uCe(),categories:[],animatable:!0,attributes:U4(),layoutAttributes:qj(),supplyDefaults:gCe(),supplyLayoutDefaults:xCe(),calc:H4().calc,crossTraceCalc:H4().crossTraceCalc,plot:K6().plot,style:lX().style,colorbar:tp(),meta:{}}});var $Le=we((hyr,JLe)=>{"use strict";JLe.exports=KLe()});var ePe=we(GT=>{"use strict";var QLe=Cc();GT.name="treemap";GT.plot=function(e,t,r,n){QLe.plotBasePlot(GT.name,e,t,r,n)};GT.clean=function(e,t,r,n){QLe.cleanBasePlot(GT.name,e,t,r,n)}});var Z2=we((pyr,tPe)=>{"use strict";tPe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var J6=we((vyr,nPe)=>{"use strict";var{hovertemplateAttrs:Mzt,texttemplateAttrs:Ezt,templatefallbackAttrs:rPe}=Of(),kzt=nc(),Czt=zc().attributes,Y2=O2(),tm=U4(),iPe=Z2(),fX=Su().extendFlat,Lzt=Id().pattern;nPe.exports={labels:tm.labels,parents:tm.parents,values:tm.values,branchvalues:tm.branchvalues,count:tm.count,level:tm.level,maxdepth:tm.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:fX({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:tm.marker.colors,pattern:Lzt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:tm.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},kzt("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:fX({},Y2.textfont,{}),editType:"calc"},text:Y2.text,textinfo:tm.textinfo,texttemplate:Ezt({editType:"plot"},{keys:iPe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:rPe({editType:"plot"}),hovertext:Y2.hovertext,hoverinfo:tm.hoverinfo,hovertemplate:Mzt({},{keys:iPe.eventDataKeys}),hovertemplatefallback:rPe(),textfont:Y2.textfont,insidetextfont:Y2.insidetextfont,outsidetextfont:fX({},Y2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:Y2.sort,root:tm.root,domain:Czt({name:"treemap",trace:!0,editType:"calc"})}});var cX=we((myr,aPe)=>{"use strict";aPe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var uPe=we((yyr,lPe)=>{"use strict";var oPe=ei(),Pzt=J6(),zzt=jl(),Izt=zc().defaults,Rzt=i0().handleText,Dzt=S_().TEXTPAD,Fzt=B2().handleMarkerDefaults,sPe=_c(),Ozt=sPe.hasColorscale,Bzt=sPe.handleDefaults;lPe.exports=function(t,r,n,i){function a(b,v){return oPe.coerce(t,r,Pzt,b,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var l=a("tiling.packing");l==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var f=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",oPe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),h="auto";Rzt(t,r,i,a,h,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;Fzt(t,r,i,a);var p=r._hasColorscale=Ozt(t,"marker","colors")||(t.marker||{}).coloraxis;p?Bzt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var y=r.textfont.size*2;a("marker.pad.t",d?y/4:y),a("marker.pad.l",y/4),a("marker.pad.r",y/4),a("marker.pad.b",d?y:y/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:zzt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Dzt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),Izt(r,i,a),r._length=null}});var cPe=we((gyr,fPe)=>{"use strict";var qzt=ei(),Nzt=cX();fPe.exports=function(t,r){function n(i,a){return qzt.coerce(t,r,Nzt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var dX=we(hX=>{"use strict";var hPe=H4();hX.calc=function(e,t){return hPe.calc(e,t)};hX.crossTraceCalc=function(e){return hPe._runCrossTraceCalc("treemap",e)}});var pX=we((xyr,dPe)=>{"use strict";dPe.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var HT=V4(),Uzt=pX();pPe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],u=n.pad[i?"right":"left"],l=n.pad[i?"left":"right"],f=n.pad[a?"top":"bottom"],c;o&&(c=u,u=s,s=c,c=l,l=f,f=c);var h=HT.treemap().tile(Vzt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(u).paddingRight(l).paddingTop(s).paddingBottom(f).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&Uzt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function Vzt(e,t){switch(e){case"squarify":return HT.treemapSquarify.ratio(t);case"binary":return HT.treemapBinary;case"dice":return HT.treemapDice;case"slice":return HT.treemapSlice;default:return HT.treemapSliceDice}}});var $6=we((wyr,gPe)=>{"use strict";var vPe=Kl(),WT=jl(),mPe=ei(),mX=n1(),Gzt=Ap().resizeText,Hzt=Z6();function Wzt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");Gzt(e,t,"treemap"),t.each(function(r){var n=vPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){vPe.select(this).call(yPe,o,a,e,{hovered:!1})})})}function yPe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,u,l,f=o.color,c=mX.isHierarchyRoot(t),h=1;if(a)u=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(c&&f===r.root.color)h=100,u="rgba(0,0,0,0)",l=0;else if(u=mPe.castOption(r,s,"marker.line.color")||WT.defaultLine,l=mPe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=WT.combine(WT.addOpacity(r._backgroundColor,.75),f),y;if(d===!0){var b=mX.getMaxDepth(r);isFinite(b)?mX.isLeaf(t)?y=0:y=r._maxVisibleLayers-(t.data.depth-r._entryDepth):y=t.data.height+1}else y=t.data.depth-r._entryDepth,r._atRootLevel||y++;if(y>0)for(var v=0;v{"use strict";var _Pe=Kl(),Q6=ei(),xPe=Mu(),jzt=Wf(),Xzt=vX(),bPe=$6().styleOne,yX=Z2(),jT=n1(),Zzt=tk(),gX=!0;wPe.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,u=a.height,l=a.viewX,f=a.viewY,c=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,p=a.hasTransition,y=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,v=a.makeUpdateTextInterpolator,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=L.hierarchy,S=s/x._entryDepth,m=jT.listPath(n.data,"id"),P=Xzt(k.copy(),[s,u],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(O){var F=m.indexOf(O.data.id);return F===-1?!1:(O.x0=S*F,O.x1=S*(F+1),O.y0=o,O.y1=o+u,O.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,jT.getPtId),i.enter().append("g").classed("pathbar",!0),y(i,gX,C,[s,u],c),i.order();var M=i;p&&(M=M.transition().each("end",function(){var O=_Pe.select(this);jT.setSliceCursor(O,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),M.each(function(O){O._x0=l(O.x0),O._x1=l(O.x1),O._y0=f(O.y0),O._y1=f(O.y1),O._hoverX=l(O.x1-Math.min(s,u)/2),O._hoverY=f(O.y1-u/2);var F=_Pe.select(this),U=Q6.ensureSingle(F,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});p?U.transition().attrTween("d",function(N){var H=b(N,gX,C,[s,u]);return function(re){return c(H(re))}}):U.attr("d",c),F.call(Zzt,n,t,r,{styleOne:bPe,eventDataKeys:yX.eventDataKeys,transitionTime:yX.CLICK_TRANSITION_TIME,transitionEasing:yX.CLICK_TRANSITION_EASING}).call(jT.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(bPe,O,x,t,{hovered:!1}),O._text=(jT.getPtLabel(O)||"").split("
").join(" ")||"";var G=Q6.ensureSingle(F,"g","slicetext"),j=Q6.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),W=Q6.ensureUniformFontSize(t,jT.determineTextFont(x,O,A.font,{onPathbar:!0}));j.text(O._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(xPe.font,W).call(jzt.convertToTspans,t),O.textBB=xPe.bBox(j.node()),O.transform=h(O,{fontSize:W.size,onPathbar:!0}),O.transform.fontSize=W.size,p?j.transition().attrTween("transform",function(N){var H=v(N,gX,C,[s,u]);return function(re){return d(H(re))}}):j.attr("transform",d(O))})}});var EPe=we((Tyr,MPe)=>{"use strict";var TPe=Kl(),_X=(j2(),mb(W2)).interpolate,ax=n1(),ik=ei(),SPe=S_().TEXTPAD,Yzt=m2(),Kzt=Yzt.toMoveInsideBar,Jzt=Ap(),xX=Jzt.recordMinTextSize,$zt=Z2(),Qzt=APe();function K2(e){return ax.isHierarchyRoot(e)?"":ax.getPtId(e)}MPe.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],u=s.trace,l=u.type,f=l==="icicle",c=s.hierarchy,h=ax.findEntryWithLevel(c,u.level),d=TPe.select(n),p=d.selectAll("g.pathbar"),y=d.selectAll("g.slice");if(!h){p.remove(),y.remove();return}var b=ax.isHierarchyRoot(h),v=!o.uniformtext.mode&&ax.hasTransition(i),C=ax.getMaxDepth(u),E=function(oe){return oe.data.depth-h.data.depth-1?k+P:-(m+P):0,O={x0:S,x1:S,y0:M,y1:M+m},F=function(oe,Ne,vt){var lt=u.tiling.pad,We=function(Lt){return Lt-lt<=Ne.x0},Ve=function(Lt){return Lt+lt>=Ne.x1},et=function(Lt){return Lt-lt<=Ne.y0},tt=function(Lt){return Lt+lt>=Ne.y1};return oe.x0===Ne.x0&&oe.x1===Ne.x1&&oe.y0===Ne.y0&&oe.y1===Ne.y1?{x0:oe.x0,x1:oe.x1,y0:oe.y0,y1:oe.y1}:{x0:We(oe.x0-lt)?0:Ve(oe.x0-lt)?vt[0]:oe.x0,x1:We(oe.x1+lt)?0:Ve(oe.x1+lt)?vt[0]:oe.x1,y0:et(oe.y0-lt)?0:tt(oe.y0-lt)?vt[1]:oe.y0,y1:et(oe.y1+lt)?0:tt(oe.y1+lt)?vt[1]:oe.y1}},U=null,G={},j={},W=null,N=function(oe,Ne){return Ne?G[K2(oe)]:j[K2(oe)]},H=function(oe,Ne,vt,lt){if(Ne)return G[K2(c)]||O;var We=j[u.level]||vt;return E(oe)?F(oe,We,lt):{}};s.hasMultipleRoots&&b&&C++,u._maxDepth=C,u._backgroundColor=o.paper_bgcolor,u._entryDepth=h.data.depth,u._atRootLevel=b;var re=-x/2+A.l+A.w*(L.x[1]+L.x[0])/2,ae=-k/2+A.t+A.h*(1-(L.y[1]+L.y[0])/2),me=function(oe){return re+oe},Ce=function(oe){return ae+oe},Ee=Ce(0),de=me(0),te=function(oe){return de+oe},Se=function(oe){return Ee+oe};function Te(oe,Ne){return oe+","+Ne}var be=te(0),He=function(oe){oe.x=Math.max(be,oe.x)},Ie=u.pathbar.edgeshape,ge=function(oe){var Ne=te(Math.max(Math.min(oe.x0,oe.x0),0)),vt=te(Math.min(Math.max(oe.x1,oe.x1),S)),lt=Se(oe.y0),We=Se(oe.y1),Ve=m/2,et={},tt={};et.x=Ne,tt.x=vt,et.y=tt.y=(lt+We)/2;var Lt={x:Ne,y:lt},jt={x:vt,y:lt},or={x:vt,y:We},yr={x:Ne,y:We};return Ie===">"?(Lt.x-=Ve,jt.x-=Ve,or.x-=Ve,yr.x-=Ve):Ie==="/"?(or.x-=Ve,yr.x-=Ve,et.x-=Ve/2,tt.x-=Ve/2):Ie==="\\"?(Lt.x-=Ve,jt.x-=Ve,et.x-=Ve/2,tt.x-=Ve/2):Ie==="<"&&(et.x-=Ve,tt.x-=Ve),He(Lt),He(yr),He(et),He(jt),He(or),He(tt),"M"+Te(Lt.x,Lt.y)+"L"+Te(jt.x,jt.y)+"L"+Te(tt.x,tt.y)+"L"+Te(or.x,or.y)+"L"+Te(yr.x,yr.y)+"L"+Te(et.x,et.y)+"Z"},Be=u[f?"tiling":"marker"].pad,ce=function(oe){return u.textposition.indexOf(oe)!==-1},je=ce("top"),rt=ce("left"),bt=ce("right"),Ot=ce("bottom"),it=function(oe){var Ne=me(oe.x0),vt=me(oe.x1),lt=Ce(oe.y0),We=Ce(oe.y1),Ve=vt-Ne,et=We-lt;if(!Ve||!et)return"";var tt=u.marker.cornerradius||0,Lt=Math.min(tt,Ve/2,et/2);Lt&&oe.data&&oe.data.data&&oe.data.data.label&&(je&&(Lt=Math.min(Lt,Be.t)),rt&&(Lt=Math.min(Lt,Be.l)),bt&&(Lt=Math.min(Lt,Be.r)),Ot&&(Lt=Math.min(Lt,Be.b)));var jt=function(or,yr){return Lt?"a"+Te(Lt,Lt)+" 0 0 1 "+Te(or,yr):""};return"M"+Te(Ne,lt+Lt)+jt(Lt,-Lt)+"L"+Te(vt-Lt,lt)+jt(Lt,Lt)+"L"+Te(vt,We-Lt)+jt(-Lt,Lt)+"L"+Te(Ne+Lt,We)+jt(-Lt,-Lt)+"Z"},Ke=function(oe,Ne){var vt=oe.x0,lt=oe.x1,We=oe.y0,Ve=oe.y1,et=oe.textBB,tt=je||Ne.isHeader&&!Ot,Lt=tt?"start":Ot?"end":"middle",jt=ce("right"),or=ce("left")||Ne.onPathbar,yr=or?-1:jt?1:0;if(Ne.isHeader){if(vt+=(f?Be:Be.l)-SPe,lt-=(f?Be:Be.r)-SPe,vt>=lt){var vr=(vt+lt)/2;vt=vr,lt=vr}var Vt;Ot?(Vt=Ve-(f?Be:Be.b),We{"use strict";var eIt=Kl(),tIt=n1(),rIt=Ap(),iIt=rIt.clearMinTextSize,nIt=V0().resizeText,kPe=EPe();CPe.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,u=t._fullLayout,l=u["_"+o+"layer"],f,c,h=!n;if(iIt(o,u),f=l.selectAll("g.trace."+o).data(r,function(p){return p[0].trace.uid}),f.enter().append("g").classed("trace",!0).classed(o,!0),f.order(),!u.uniformtext.mode&&tIt.hasTransition(n)){i&&(c=i());var d=eIt.transition().duration(n.duration).ease(n.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()});d.each(function(){l.selectAll("g.trace").each(function(p){kPe(t,p,this,n,s)})})}else f.each(function(p){kPe(t,p,this,n,s)}),u.uniformtext.mode&&nIt(t,l.selectAll(".trace"),o);h&&f.exit().remove()}});var RPe=we((Myr,IPe)=>{"use strict";var LPe=Kl(),eF=ei(),PPe=Mu(),aIt=Wf(),oIt=vX(),zPe=$6().styleOne,wX=Z2(),ox=n1(),sIt=tk(),lIt=K6().formatSliceLabel,AX=!1;IPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,y=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,S=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=!m&&!x.marker.pad.t||m&&!x.marker.pad.b,M=oIt(n,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),O=M.descendants(),F=1/0,U=-1/0;O.forEach(function(H){var re=H.depth;re>=x._maxDepth?(H.x0=H.x1=(H.x0+H.x1)/2,H.y0=H.y1=(H.y0+H.y1)/2):(F=Math.min(F,re),U=Math.max(U,re))}),i=i.data(O,ox.getPtId),x._maxVisibleLayers=isFinite(U)?U-F+1:0,i.enter().append("g").classed("slice",!0),p(i,AX,C,[o,s],f),i.order();var G=null;if(d&&v){var j=ox.getPtId(v);i.each(function(H){G===null&&ox.getPtId(H)===j&&(G={x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1})})}var W=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var H=LPe.select(this);ox.setSliceCursor(H,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(H){var re=ox.isHeader(H,x);H._x0=u(H.x0),H._x1=u(H.x1),H._y0=l(H.y0),H._y1=l(H.y1),H._hoverX=u(H.x1-x.marker.pad.r),H._hoverY=l(m?H.y1-x.marker.pad.b/2:H.y0+x.marker.pad.t/2);var ae=LPe.select(this),me=eF.ensureSingle(ae,"path","surface",function(Te){Te.style("pointer-events",E?"none":"all")});d?me.transition().attrTween("d",function(Te){var be=y(Te,AX,W(),[o,s]);return function(He){return f(be(He))}}):me.attr("d",f),ae.call(sIt,n,t,r,{styleOne:zPe,eventDataKeys:wX.eventDataKeys,transitionTime:wX.CLICK_TRANSITION_TIME,transitionEasing:wX.CLICK_TRANSITION_EASING}).call(ox.setSliceCursor,t,{isTransitioning:t._transitioning}),me.call(zPe,H,x,t,{hovered:!1}),H.x0===H.x1||H.y0===H.y1?H._text="":re?H._text=P?"":ox.getPtLabel(H)||"":H._text=lIt(H,n,x,r,A)||"";var Ce=eF.ensureSingle(ae,"g","slicetext"),Ee=eF.ensureSingle(Ce,"text","",function(Te){Te.attr("data-notex",1)}),de=eF.ensureUniformFontSize(t,ox.determineTextFont(x,H,A.font)),te=H._text||" ",Se=re&&te.indexOf("
")===-1;Ee.text(te).classed("slicetext",!0).attr("text-anchor",S?"end":k||Se?"start":"middle").call(PPe.font,de).call(aIt.convertToTspans,t),H.textBB=PPe.bBox(Ee.node()),H.transform=c(H,{fontSize:de.size,isHeader:re}),H.transform.fontSize=de.size,d?Ee.transition().attrTween("transform",function(Te){var be=b(Te,AX,W(),[o,s]);return function(He){return h(be(He))}}):Ee.attr("transform",h(H))}),G}});var FPe=we((Eyr,DPe)=>{"use strict";var uIt=bX(),fIt=RPe();DPe.exports=function(t,r,n,i){return uIt(t,r,n,i,{type:"treemap",drawDescendants:fIt})}});var BPe=we((kyr,OPe)=>{"use strict";OPe.exports={moduleType:"trace",name:"treemap",basePlotModule:ePe(),categories:[],animatable:!0,attributes:J6(),layoutAttributes:cX(),supplyDefaults:uPe(),supplyLayoutDefaults:cPe(),calc:dX().calc,crossTraceCalc:dX().crossTraceCalc,plot:FPe(),style:$6().style,colorbar:tp(),meta:{}}});var NPe=we((Cyr,qPe)=>{"use strict";qPe.exports=BPe()});var VPe=we(XT=>{"use strict";var UPe=Cc();XT.name="icicle";XT.plot=function(e,t,r,n){UPe.plotBasePlot(XT.name,e,t,r,n)};XT.clean=function(e,t,r,n){UPe.cleanBasePlot(XT.name,e,t,r,n)}});var TX=we((Pyr,WPe)=>{"use strict";var{hovertemplateAttrs:cIt,texttemplateAttrs:hIt,templatefallbackAttrs:GPe}=Of(),dIt=nc(),pIt=zc().attributes,nk=O2(),s0=U4(),tF=J6(),HPe=Z2(),vIt=Su().extendFlat,mIt=Id().pattern;WPe.exports={labels:s0.labels,parents:s0.parents,values:s0.values,branchvalues:s0.branchvalues,count:s0.count,level:s0.level,maxdepth:s0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:tF.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:vIt({colors:s0.marker.colors,line:s0.marker.line,pattern:mIt,editType:"calc"},dIt("marker",{colorAttr:"colors",anim:!1})),leaf:s0.leaf,pathbar:tF.pathbar,text:nk.text,textinfo:s0.textinfo,texttemplate:hIt({editType:"plot"},{keys:HPe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:GPe({editType:"plot"}),hovertext:nk.hovertext,hoverinfo:s0.hoverinfo,hovertemplate:cIt({},{keys:HPe.eventDataKeys}),hovertemplatefallback:GPe(),textfont:nk.textfont,insidetextfont:nk.insidetextfont,outsidetextfont:tF.outsidetextfont,textposition:tF.textposition,sort:nk.sort,root:s0.root,domain:pIt({name:"icicle",trace:!0,editType:"calc"})}});var SX=we((zyr,jPe)=>{"use strict";jPe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var KPe=we((Iyr,YPe)=>{"use strict";var XPe=ei(),yIt=TX(),gIt=jl(),_It=zc().defaults,xIt=i0().handleText,bIt=S_().TEXTPAD,wIt=B2().handleMarkerDefaults,ZPe=_c(),AIt=ZPe.hasColorscale,TIt=ZPe.handleDefaults;YPe.exports=function(t,r,n,i){function a(d,p){return XPe.coerce(t,r,yIt,d,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var l=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",XPe.isArrayOrTypedArray(l)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),c="auto";xIt(t,r,i,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),wIt(t,r,i,a);var h=r._hasColorscale=AIt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&TIt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:gIt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*bIt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),_It(r,i,a),r._length=null}});var $Pe=we((Ryr,JPe)=>{"use strict";var SIt=ei(),MIt=SX();JPe.exports=function(t,r){function n(i,a){return SIt.coerce(t,r,MIt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var EX=we(MX=>{"use strict";var QPe=H4();MX.calc=function(e,t){return QPe.calc(e,t)};MX.crossTraceCalc=function(e){return QPe._runCrossTraceCalc("icicle",e)}});var tze=we((Fyr,eze)=>{"use strict";var EIt=V4(),kIt=pX();eze.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,u=r[0],l=r[1];s&&(u=(t.height+1)*r[0]/Math.min(t.height+1,s),l=(t.height+1)*r[1]/Math.min(t.height+1,s));var f=EIt.partition().padding(n.pad.inner).size(o?[r[1],u]:[r[0],l])(t);return(o||i||a)&&kIt(f,r,{swapXY:o,flipX:i,flipY:a}),f}});var kX=we((Oyr,oze)=>{"use strict";var rze=Kl(),ize=jl(),nze=ei(),CIt=Ap().resizeText,LIt=Z6();function PIt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");CIt(e,t,"icicle"),t.each(function(r){var n=rze.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){rze.select(this).call(aze,o,a,e)})})}function aze(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=nze.castOption(r,o,"marker.line.color")||ize.defaultLine,u=nze.castOption(r,o,"marker.line.width")||0;e.call(LIt,t,r,n).style("stroke-width",u).call(ize.stroke,s).style("opacity",a?r.leaf.opacity:null)}oze.exports={style:PIt,styleOne:aze}});var cze=we((Byr,fze)=>{"use strict";var sze=Kl(),rF=ei(),lze=Mu(),zIt=Wf(),IIt=tze(),uze=kX().styleOne,CX=Z2(),ZT=n1(),RIt=tk(),DIt=K6().formatSliceLabel,LX=!1;fze.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,y=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,S=x.textposition.indexOf("right")!==-1,m=x.textposition.indexOf("bottom")!==-1,P=IIt(n,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),M=P.descendants(),O=1/0,F=-1/0;M.forEach(function(N){var H=N.depth;H>=x._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(O=Math.min(O,H),F=Math.max(F,H))}),i=i.data(M,ZT.getPtId),x._maxVisibleLayers=isFinite(F)?F-O+1:0,i.enter().append("g").classed("slice",!0),p(i,LX,C,[o,s],f),i.order();var U=null;if(d&&v){var G=ZT.getPtId(v);i.each(function(N){U===null&&ZT.getPtId(N)===G&&(U={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var j=function(){return U||{x0:0,x1:o,y0:0,y1:s}},W=i;return d&&(W=W.transition().each("end",function(){var N=sze.select(this);ZT.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),W.each(function(N){N._x0=u(N.x0),N._x1=u(N.x1),N._y0=l(N.y0),N._y1=l(N.y1),N._hoverX=u(N.x1-x.tiling.pad),N._hoverY=l(m?N.y1-x.tiling.pad/2:N.y0+x.tiling.pad/2);var H=sze.select(this),re=rF.ensureSingle(H,"path","surface",function(Ee){Ee.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(Ee){var de=y(Ee,LX,j(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(te){return f(de(te))}}):re.attr("d",f),H.call(RIt,n,t,r,{styleOne:uze,eventDataKeys:CX.eventDataKeys,transitionTime:CX.CLICK_TRANSITION_TIME,transitionEasing:CX.CLICK_TRANSITION_EASING}).call(ZT.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(uze,N,x,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=DIt(N,n,x,r,A)||"";var ae=rF.ensureSingle(H,"g","slicetext"),me=rF.ensureSingle(ae,"text","",function(Ee){Ee.attr("data-notex",1)}),Ce=rF.ensureUniformFontSize(t,ZT.determineTextFont(x,N,A.font));me.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",S?"end":k?"start":"middle").call(lze.font,Ce).call(zIt.convertToTspans,t),N.textBB=lze.bBox(me.node()),N.transform=c(N,{fontSize:Ce.size}),N.transform.fontSize=Ce.size,d?me.transition().attrTween("transform",function(Ee){var de=b(Ee,LX,j(),[o,s]);return function(te){return h(de(te))}}):me.attr("transform",h(N))}),U}});var dze=we((qyr,hze)=>{"use strict";var FIt=bX(),OIt=cze();hze.exports=function(t,r,n,i){return FIt(t,r,n,i,{type:"icicle",drawDescendants:OIt})}});var vze=we((Nyr,pze)=>{"use strict";pze.exports={moduleType:"trace",name:"icicle",basePlotModule:VPe(),categories:[],animatable:!0,attributes:TX(),layoutAttributes:SX(),supplyDefaults:KPe(),supplyLayoutDefaults:$Pe(),calc:EX().calc,crossTraceCalc:EX().crossTraceCalc,plot:dze(),style:kX().style,colorbar:tp(),meta:{}}});var yze=we((Uyr,mze)=>{"use strict";mze.exports=vze()});var _ze=we(YT=>{"use strict";var gze=Cc();YT.name="funnelarea";YT.plot=function(e,t,r,n){gze.plotBasePlot(YT.name,e,t,r,n)};YT.clean=function(e,t,r,n){gze.cleanBasePlot(YT.name,e,t,r,n)}});var PX=we((Gyr,bze)=>{"use strict";var op=O2(),BIt=Vf(),qIt=zc().attributes,{hovertemplateAttrs:NIt,texttemplateAttrs:UIt,templatefallbackAttrs:xze}=Of(),J2=Su().extendFlat;bze.exports={labels:op.labels,label0:op.label0,dlabel:op.dlabel,values:op.values,marker:{colors:op.marker.colors,line:{color:J2({},op.marker.line.color,{dflt:null}),width:J2({},op.marker.line.width,{dflt:1}),editType:"calc"},pattern:op.marker.pattern,editType:"calc"},text:op.text,hovertext:op.hovertext,scalegroup:J2({},op.scalegroup,{}),textinfo:J2({},op.textinfo,{flags:["label","text","value","percent"]}),texttemplate:UIt({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:xze({editType:"plot"}),hoverinfo:J2({},BIt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:NIt({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:xze(),textposition:J2({},op.textposition,{values:["inside","none"],dflt:"inside"}),textfont:op.textfont,insidetextfont:op.insidetextfont,title:{text:op.title.text,font:op.title.font,position:J2({},op.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:qIt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var zX=we((Hyr,wze)=>{"use strict";var VIt=A6().hiddenlabels;wze.exports={hiddenlabels:VIt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Sze=we((Wyr,Tze)=>{"use strict";var Aze=ei(),GIt=PX(),HIt=zc().defaults,WIt=i0().handleText,jIt=B2().handleLabelsAndValues,XIt=B2().handleMarkerDefaults;Tze.exports=function(t,r,n,i){function a(y,b){return Aze.coerce(t,r,GIt,y,b)}var o=a("labels"),s=a("values"),u=jIt(o,s),l=u.len;if(r._hasLabels=u.hasLabels,r._hasValues=u.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!l){r.visible=!1;return}r._length=l,XIt(t,r,i,a),a("scalegroup");var f=a("text"),c=a("texttemplate");a("texttemplatefallback");var h;if(c||(h=a("textinfo",Array.isArray(f)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),c||h&&h!=="none"){var d=a("textposition");WIt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");HIt(r,i,a);var p=a("title.text");p&&(a("title.position"),Aze.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var Eze=we((jyr,Mze)=>{"use strict";var ZIt=ei(),YIt=zX();Mze.exports=function(t,r){function n(i,a){return ZIt.coerce(t,r,YIt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var IX=we((Xyr,Cze)=>{"use strict";var kze=PT();function KIt(e,t){return kze.calc(e,t)}function JIt(e){kze.crossTraceCalc(e,{type:"funnelarea"})}Cze.exports={calc:KIt,crossTraceCalc:JIt}});var Rze=we((Zyr,Ize)=>{"use strict";var $2=Kl(),RX=Mu(),sx=ei(),$It=sx.strScale,Lze=sx.strTranslate,Pze=Wf(),QIt=m2(),eRt=QIt.toMoveInsideBar,zze=Ap(),tRt=zze.recordMinTextSize,rRt=zze.clearMinTextSize,iRt=y_(),KT=E6(),nRt=KT.attachFxHandlers,aRt=KT.determineInsideTextFont,oRt=KT.layoutAreas,sRt=KT.prerenderTitles,lRt=KT.positionTitleOutside,uRt=KT.formatSliceLabel;Ize.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;rRt("funnelarea",i),sRt(r,t),oRt(r,i._size),sx.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=$2.select(this),s=a[0],u=s.trace;cRt(a),o.each(function(){var l=$2.select(this).selectAll("g.slice").data(a);l.enter().append("g").classed("slice",!0),l.exit().remove(),l.each(function(c,h){if(c.hidden){$2.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=u.index;var d=s.cx,p=s.cy,y=$2.select(this),b=y.selectAll("path.surface").data([c]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),y.call(nRt,t,a);var v="M"+(d+c.TR[0])+","+(p+c.TR[1])+DX(c.TR,c.BR)+DX(c.BR,c.BL)+DX(c.BL,c.TL)+"Z";b.attr("d",v),uRt(t,c,s);var C=iRt.castOption(u.textposition,c.pts),E=y.selectAll("g.slicetext").data(c.text&&C!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var A=sx.ensureSingle($2.select(this),"text","",function(O){O.attr("data-notex",1)}),L=sx.ensureUniformFontSize(t,aRt(u,c,i.font));A.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(RX.font,L).call(Pze.convertToTspans,t);var x=RX.bBox(A.node()),k,S,m,P=Math.min(c.BL[1],c.BR[1])+p,M=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+d,m=Math.min(c.TR[0],c.BR[0])+d,k=eRt(S,m,P,M,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=L.size,tRt(u.type,k,i),a[h].transform=k,sx.setTransormAndDisplay(A,k)})});var f=$2.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=sx.ensureSingle($2.select(this),"text","",function(p){p.attr("data-notex",1)}),h=u.title.text;u._meta&&(h=sx.templateString(h,u._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(RX.font,u.title.font).call(Pze.convertToTspans,t);var d=lRt(s,i._size);c.attr("transform",Lze(d.x,d.y)+$It(Math.min(1,d.scale))+Lze(d.tx,d.ty))})})})};function DX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function fRt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function cRt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),u=o,l=s/o;function f(){var F=Math.sqrt(l);return{x:F,y:-F}}function c(){var F=f();return[F.x,F.y]}var h,d=[];d.push(c());var p,y;for(p=e.length-1;p>-1;p--)if(y=e[p],!y.hidden){var b=y.v/u;l+=b,d.push(c())}var v=1/0,C=-1/0;for(p=0;p-1;p--)if(y=e[p],!y.hidden){P+=1;var M=d[P][0],O=d[P][1];y.TL=[-M,O],y.TR=[M,O],y.BL=S,y.BR=m,y.pxmid=fRt(y.TR,y.BR),S=y.TL,m=y.TR}}});var Oze=we((Yyr,Fze)=>{"use strict";var Dze=Kl(),hRt=J3(),dRt=Ap().resizeText;Fze.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");dRt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=Dze.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Dze.select(this).call(hRt,s,a,t)})})}});var qze=we((Kyr,Bze)=>{"use strict";Bze.exports={moduleType:"trace",name:"funnelarea",basePlotModule:_ze(),categories:["pie-like","funnelarea","showLegend"],attributes:PX(),layoutAttributes:zX(),supplyDefaults:Sze(),supplyLayoutDefaults:Eze(),calc:IX().calc,crossTraceCalc:IX().crossTraceCalc,plot:Rze(),style:Oze(),styleOne:J3(),meta:{}}});var Uze=we((Jyr,Nze)=>{"use strict";Nze.exports=qze()});var qd=we(($yr,Vze)=>{(function(){var e={1964:(function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}}),4793:(function(i,a,o){"use strict";var s;function u($e){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Re){return typeof Re}:function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},u($e)}var l=o(7507),f=o(3778),c=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.hp=y,s=P,a.IS=50;var h=2147483647;s=h,y.TYPED_ARRAY_SUPPORT=d(),!y.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{var $e=new Uint8Array(1),Re={foo:function(){return 42}};return Object.setPrototypeOf(Re,Uint8Array.prototype),Object.setPrototypeOf($e,Re),$e.foo()===42}catch(Me){return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function p($e){if($e>h)throw new RangeError('The value "'+$e+'" is invalid for option "size"');var Re=new Uint8Array($e);return Object.setPrototypeOf(Re,y.prototype),Re}function y($e,Re,Me){if(typeof $e=="number"){if(typeof Re=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E($e)}return b($e,Re,Me)}y.poolSize=8192;function b($e,Re,Me){if(typeof $e=="string")return A($e,Re);if(ArrayBuffer.isView($e))return x($e);if($e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u($e));if(zt($e,ArrayBuffer)||$e&&zt($e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(zt($e,SharedArrayBuffer)||$e&&zt($e.buffer,SharedArrayBuffer)))return k($e,Re,Me);if(typeof $e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var oe=$e.valueOf&&$e.valueOf();if(oe!=null&&oe!==$e)return y.from(oe,Re,Me);var Ne=S($e);if(Ne)return Ne;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof $e[Symbol.toPrimitive]=="function")return y.from($e[Symbol.toPrimitive]("string"),Re,Me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u($e))}y.from=function($e,Re,Me){return b($e,Re,Me)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array);function v($e){if(typeof $e!="number")throw new TypeError('"size" argument must be of type number');if($e<0)throw new RangeError('The value "'+$e+'" is invalid for option "size"')}function C($e,Re,Me){return v($e),$e<=0?p($e):Re!==void 0?typeof Me=="string"?p($e).fill(Re,Me):p($e).fill(Re):p($e)}y.alloc=function($e,Re,Me){return C($e,Re,Me)};function E($e){return v($e),p($e<0?0:m($e)|0)}y.allocUnsafe=function($e){return E($e)},y.allocUnsafeSlow=function($e){return E($e)};function A($e,Re){if((typeof Re!="string"||Re==="")&&(Re="utf8"),!y.isEncoding(Re))throw new TypeError("Unknown encoding: "+Re);var Me=M($e,Re)|0,oe=p(Me),Ne=oe.write($e,Re);return Ne!==Me&&(oe=oe.slice(0,Ne)),oe}function L($e){for(var Re=$e.length<0?0:m($e.length)|0,Me=p(Re),oe=0;oe=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return $e|0}function P($e){return+$e!=$e&&($e=0),y.alloc(+$e)}y.isBuffer=function(Re){return Re!=null&&Re._isBuffer===!0&&Re!==y.prototype},y.compare=function(Re,Me){if(zt(Re,Uint8Array)&&(Re=y.from(Re,Re.offset,Re.byteLength)),zt(Me,Uint8Array)&&(Me=y.from(Me,Me.offset,Me.byteLength)),!y.isBuffer(Re)||!y.isBuffer(Me))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Re===Me)return 0;for(var oe=Re.length,Ne=Me.length,vt=0,lt=Math.min(oe,Ne);vtNe.length?y.from(lt).copy(Ne,vt):Uint8Array.prototype.set.call(Ne,lt,vt);else if(y.isBuffer(lt))lt.copy(Ne,vt);else throw new TypeError('"list" argument must be an Array of Buffers');vt+=lt.length}return Ne};function M($e,Re){if(y.isBuffer($e))return $e.length;if(ArrayBuffer.isView($e)||zt($e,ArrayBuffer))return $e.byteLength;if(typeof $e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+u($e));var Me=$e.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&Me===0)return 0;for(var Ne=!1;;)switch(Re){case"ascii":case"latin1":case"binary":return Me;case"utf8":case"utf-8":return rt($e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me*2;case"hex":return Me>>>1;case"base64":return it($e).length;default:if(Ne)return oe?-1:rt($e).length;Re=(""+Re).toLowerCase(),Ne=!0}}y.byteLength=M;function O($e,Re,Me){var oe=!1;if((Re===void 0||Re<0)&&(Re=0),Re>this.length||((Me===void 0||Me>this.length)&&(Me=this.length),Me<=0)||(Me>>>=0,Re>>>=0,Me<=Re))return"";for($e||($e="utf8");;)switch($e){case"hex":return Se(this,Re,Me);case"utf8":case"utf-8":return me(this,Re,Me);case"ascii":return de(this,Re,Me);case"latin1":case"binary":return te(this,Re,Me);case"base64":return ae(this,Re,Me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Te(this,Re,Me);default:if(oe)throw new TypeError("Unknown encoding: "+$e);$e=($e+"").toLowerCase(),oe=!0}}y.prototype._isBuffer=!0;function F($e,Re,Me){var oe=$e[Re];$e[Re]=$e[Me],$e[Me]=oe}y.prototype.swap16=function(){var Re=this.length;if(Re%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Me=0;MeMe&&(Re+=" ... "),""},c&&(y.prototype[c]=y.prototype.inspect),y.prototype.compare=function(Re,Me,oe,Ne,vt){if(zt(Re,Uint8Array)&&(Re=y.from(Re,Re.offset,Re.byteLength)),!y.isBuffer(Re))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+u(Re));if(Me===void 0&&(Me=0),oe===void 0&&(oe=Re?Re.length:0),Ne===void 0&&(Ne=0),vt===void 0&&(vt=this.length),Me<0||oe>Re.length||Ne<0||vt>this.length)throw new RangeError("out of range index");if(Ne>=vt&&Me>=oe)return 0;if(Ne>=vt)return-1;if(Me>=oe)return 1;if(Me>>>=0,oe>>>=0,Ne>>>=0,vt>>>=0,this===Re)return 0;for(var lt=vt-Ne,We=oe-Me,Ve=Math.min(lt,We),et=this.slice(Ne,vt),tt=Re.slice(Me,oe),Lt=0;Lt2147483647?Me=2147483647:Me<-2147483648&&(Me=-2147483648),Me=+Me,Mt(Me)&&(Me=Ne?0:$e.length-1),Me<0&&(Me=$e.length+Me),Me>=$e.length){if(Ne)return-1;Me=$e.length-1}else if(Me<0)if(Ne)Me=0;else return-1;if(typeof Re=="string"&&(Re=y.from(Re,oe)),y.isBuffer(Re))return Re.length===0?-1:G($e,Re,Me,oe,Ne);if(typeof Re=="number")return Re=Re&255,typeof Uint8Array.prototype.indexOf=="function"?Ne?Uint8Array.prototype.indexOf.call($e,Re,Me):Uint8Array.prototype.lastIndexOf.call($e,Re,Me):G($e,[Re],Me,oe,Ne);throw new TypeError("val must be string, number or Buffer")}function G($e,Re,Me,oe,Ne){var vt=1,lt=$e.length,We=Re.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if($e.length<2||Re.length<2)return-1;vt=2,lt/=2,We/=2,Me/=2}function Ve(or,yr){return vt===1?or[yr]:or.readUInt16BE(yr*vt)}var et;if(Ne){var tt=-1;for(et=Me;etlt&&(Me=lt-We),et=Me;et>=0;et--){for(var Lt=!0,jt=0;jtNe&&(oe=Ne)):oe=Ne;var vt=Re.length;oe>vt/2&&(oe=vt/2);for(var lt=0;lt>>0,isFinite(oe)?(oe=oe>>>0,Ne===void 0&&(Ne="utf8")):(Ne=oe,oe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var vt=this.length-Me;if((oe===void 0||oe>vt)&&(oe=vt),Re.length>0&&(oe<0||Me<0)||Me>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ne||(Ne="utf8");for(var lt=!1;;)switch(Ne){case"hex":return j(this,Re,Me,oe);case"utf8":case"utf-8":return W(this,Re,Me,oe);case"ascii":case"latin1":case"binary":return N(this,Re,Me,oe);case"base64":return H(this,Re,Me,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,Re,Me,oe);default:if(lt)throw new TypeError("Unknown encoding: "+Ne);Ne=(""+Ne).toLowerCase(),lt=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae($e,Re,Me){return Re===0&&Me===$e.length?l.fromByteArray($e):l.fromByteArray($e.slice(Re,Me))}function me($e,Re,Me){Me=Math.min($e.length,Me);for(var oe=[],Ne=Re;Ne239?4:vt>223?3:vt>191?2:1;if(Ne+We<=Me){var Ve,et,tt,Lt;switch(We){case 1:vt<128&&(lt=vt);break;case 2:Ve=$e[Ne+1],(Ve&192)===128&&(Lt=(vt&31)<<6|Ve&63,Lt>127&&(lt=Lt));break;case 3:Ve=$e[Ne+1],et=$e[Ne+2],(Ve&192)===128&&(et&192)===128&&(Lt=(vt&15)<<12|(Ve&63)<<6|et&63,Lt>2047&&(Lt<55296||Lt>57343)&&(lt=Lt));break;case 4:Ve=$e[Ne+1],et=$e[Ne+2],tt=$e[Ne+3],(Ve&192)===128&&(et&192)===128&&(tt&192)===128&&(Lt=(vt&15)<<18|(Ve&63)<<12|(et&63)<<6|tt&63,Lt>65535&&Lt<1114112&&(lt=Lt))}}lt===null?(lt=65533,We=1):lt>65535&&(lt-=65536,oe.push(lt>>>10&1023|55296),lt=56320|lt&1023),oe.push(lt),Ne+=We}return Ee(oe)}var Ce=4096;function Ee($e){var Re=$e.length;if(Re<=Ce)return String.fromCharCode.apply(String,$e);for(var Me="",oe=0;oeoe)&&(Me=oe);for(var Ne="",vt=Re;vtoe&&(Re=oe),Me<0?(Me+=oe,Me<0&&(Me=0)):Me>oe&&(Me=oe),MeMe)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(Re,Me,oe){Re=Re>>>0,Me=Me>>>0,oe||be(Re,Me,this.length);for(var Ne=this[Re],vt=1,lt=0;++lt>>0,Me=Me>>>0,oe||be(Re,Me,this.length);for(var Ne=this[Re+--Me],vt=1;Me>0&&(vt*=256);)Ne+=this[Re+--Me]*vt;return Ne},y.prototype.readUint8=y.prototype.readUInt8=function(Re,Me){return Re=Re>>>0,Me||be(Re,1,this.length),this[Re]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(Re,Me){return Re=Re>>>0,Me||be(Re,2,this.length),this[Re]|this[Re+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(Re,Me){return Re=Re>>>0,Me||be(Re,2,this.length),this[Re]<<8|this[Re+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(Re,Me){return Re=Re>>>0,Me||be(Re,4,this.length),(this[Re]|this[Re+1]<<8|this[Re+2]<<16)+this[Re+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(Re,Me){return Re=Re>>>0,Me||be(Re,4,this.length),this[Re]*16777216+(this[Re+1]<<16|this[Re+2]<<8|this[Re+3])},y.prototype.readIntLE=function(Re,Me,oe){Re=Re>>>0,Me=Me>>>0,oe||be(Re,Me,this.length);for(var Ne=this[Re],vt=1,lt=0;++lt=vt&&(Ne-=Math.pow(2,8*Me)),Ne},y.prototype.readIntBE=function(Re,Me,oe){Re=Re>>>0,Me=Me>>>0,oe||be(Re,Me,this.length);for(var Ne=Me,vt=1,lt=this[Re+--Ne];Ne>0&&(vt*=256);)lt+=this[Re+--Ne]*vt;return vt*=128,lt>=vt&&(lt-=Math.pow(2,8*Me)),lt},y.prototype.readInt8=function(Re,Me){return Re=Re>>>0,Me||be(Re,1,this.length),this[Re]&128?(255-this[Re]+1)*-1:this[Re]},y.prototype.readInt16LE=function(Re,Me){Re=Re>>>0,Me||be(Re,2,this.length);var oe=this[Re]|this[Re+1]<<8;return oe&32768?oe|4294901760:oe},y.prototype.readInt16BE=function(Re,Me){Re=Re>>>0,Me||be(Re,2,this.length);var oe=this[Re+1]|this[Re]<<8;return oe&32768?oe|4294901760:oe},y.prototype.readInt32LE=function(Re,Me){return Re=Re>>>0,Me||be(Re,4,this.length),this[Re]|this[Re+1]<<8|this[Re+2]<<16|this[Re+3]<<24},y.prototype.readInt32BE=function(Re,Me){return Re=Re>>>0,Me||be(Re,4,this.length),this[Re]<<24|this[Re+1]<<16|this[Re+2]<<8|this[Re+3]},y.prototype.readFloatLE=function(Re,Me){return Re=Re>>>0,Me||be(Re,4,this.length),f.read(this,Re,!0,23,4)},y.prototype.readFloatBE=function(Re,Me){return Re=Re>>>0,Me||be(Re,4,this.length),f.read(this,Re,!1,23,4)},y.prototype.readDoubleLE=function(Re,Me){return Re=Re>>>0,Me||be(Re,8,this.length),f.read(this,Re,!0,52,8)},y.prototype.readDoubleBE=function(Re,Me){return Re=Re>>>0,Me||be(Re,8,this.length),f.read(this,Re,!1,52,8)};function He($e,Re,Me,oe,Ne,vt){if(!y.isBuffer($e))throw new TypeError('"buffer" argument must be a Buffer instance');if(Re>Ne||Re$e.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(Re,Me,oe,Ne){if(Re=+Re,Me=Me>>>0,oe=oe>>>0,!Ne){var vt=Math.pow(2,8*oe)-1;He(this,Re,Me,oe,vt,0)}var lt=1,We=0;for(this[Me]=Re&255;++We>>0,oe=oe>>>0,!Ne){var vt=Math.pow(2,8*oe)-1;He(this,Re,Me,oe,vt,0)}var lt=oe-1,We=1;for(this[Me+lt]=Re&255;--lt>=0&&(We*=256);)this[Me+lt]=Re/We&255;return Me+oe},y.prototype.writeUint8=y.prototype.writeUInt8=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,1,255,0),this[Me]=Re&255,Me+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,2,65535,0),this[Me]=Re&255,this[Me+1]=Re>>>8,Me+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,2,65535,0),this[Me]=Re>>>8,this[Me+1]=Re&255,Me+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,4,4294967295,0),this[Me+3]=Re>>>24,this[Me+2]=Re>>>16,this[Me+1]=Re>>>8,this[Me]=Re&255,Me+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,4,4294967295,0),this[Me]=Re>>>24,this[Me+1]=Re>>>16,this[Me+2]=Re>>>8,this[Me+3]=Re&255,Me+4},y.prototype.writeIntLE=function(Re,Me,oe,Ne){if(Re=+Re,Me=Me>>>0,!Ne){var vt=Math.pow(2,8*oe-1);He(this,Re,Me,oe,vt-1,-vt)}var lt=0,We=1,Ve=0;for(this[Me]=Re&255;++lt>0)-Ve&255;return Me+oe},y.prototype.writeIntBE=function(Re,Me,oe,Ne){if(Re=+Re,Me=Me>>>0,!Ne){var vt=Math.pow(2,8*oe-1);He(this,Re,Me,oe,vt-1,-vt)}var lt=oe-1,We=1,Ve=0;for(this[Me+lt]=Re&255;--lt>=0&&(We*=256);)Re<0&&Ve===0&&this[Me+lt+1]!==0&&(Ve=1),this[Me+lt]=(Re/We>>0)-Ve&255;return Me+oe},y.prototype.writeInt8=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,1,127,-128),Re<0&&(Re=255+Re+1),this[Me]=Re&255,Me+1},y.prototype.writeInt16LE=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,2,32767,-32768),this[Me]=Re&255,this[Me+1]=Re>>>8,Me+2},y.prototype.writeInt16BE=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,2,32767,-32768),this[Me]=Re>>>8,this[Me+1]=Re&255,Me+2},y.prototype.writeInt32LE=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,4,2147483647,-2147483648),this[Me]=Re&255,this[Me+1]=Re>>>8,this[Me+2]=Re>>>16,this[Me+3]=Re>>>24,Me+4},y.prototype.writeInt32BE=function(Re,Me,oe){return Re=+Re,Me=Me>>>0,oe||He(this,Re,Me,4,2147483647,-2147483648),Re<0&&(Re=4294967295+Re+1),this[Me]=Re>>>24,this[Me+1]=Re>>>16,this[Me+2]=Re>>>8,this[Me+3]=Re&255,Me+4};function Ie($e,Re,Me,oe,Ne,vt){if(Me+oe>$e.length)throw new RangeError("Index out of range");if(Me<0)throw new RangeError("Index out of range")}function ge($e,Re,Me,oe,Ne){return Re=+Re,Me=Me>>>0,Ne||Ie($e,Re,Me,4,34028234663852886e22,-34028234663852886e22),f.write($e,Re,Me,oe,23,4),Me+4}y.prototype.writeFloatLE=function(Re,Me,oe){return ge(this,Re,Me,!0,oe)},y.prototype.writeFloatBE=function(Re,Me,oe){return ge(this,Re,Me,!1,oe)};function Be($e,Re,Me,oe,Ne){return Re=+Re,Me=Me>>>0,Ne||Ie($e,Re,Me,8,17976931348623157e292,-17976931348623157e292),f.write($e,Re,Me,oe,52,8),Me+8}y.prototype.writeDoubleLE=function(Re,Me,oe){return Be(this,Re,Me,!0,oe)},y.prototype.writeDoubleBE=function(Re,Me,oe){return Be(this,Re,Me,!1,oe)},y.prototype.copy=function(Re,Me,oe,Ne){if(!y.isBuffer(Re))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),!Ne&&Ne!==0&&(Ne=this.length),Me>=Re.length&&(Me=Re.length),Me||(Me=0),Ne>0&&Ne=this.length)throw new RangeError("Index out of range");if(Ne<0)throw new RangeError("sourceEnd out of bounds");Ne>this.length&&(Ne=this.length),Re.length-Me>>0,oe=oe===void 0?this.length:oe>>>0,Re||(Re=0);var lt;if(typeof Re=="number")for(lt=Me;lt55295&&Me<57344){if(!Ne){if(Me>56319){(Re-=3)>-1&&vt.push(239,191,189);continue}else if(lt+1===oe){(Re-=3)>-1&&vt.push(239,191,189);continue}Ne=Me;continue}if(Me<56320){(Re-=3)>-1&&vt.push(239,191,189),Ne=Me;continue}Me=(Ne-55296<<10|Me-56320)+65536}else Ne&&(Re-=3)>-1&&vt.push(239,191,189);if(Ne=null,Me<128){if((Re-=1)<0)break;vt.push(Me)}else if(Me<2048){if((Re-=2)<0)break;vt.push(Me>>6|192,Me&63|128)}else if(Me<65536){if((Re-=3)<0)break;vt.push(Me>>12|224,Me>>6&63|128,Me&63|128)}else if(Me<1114112){if((Re-=4)<0)break;vt.push(Me>>18|240,Me>>12&63|128,Me>>6&63|128,Me&63|128)}else throw new Error("Invalid code point")}return vt}function bt($e){for(var Re=[],Me=0;Me<$e.length;++Me)Re.push($e.charCodeAt(Me)&255);return Re}function Ot($e,Re){for(var Me,oe,Ne,vt=[],lt=0;lt<$e.length&&!((Re-=2)<0);++lt)Me=$e.charCodeAt(lt),oe=Me>>8,Ne=Me%256,vt.push(Ne),vt.push(oe);return vt}function it($e){return l.toByteArray(je($e))}function Ke($e,Re,Me,oe){for(var Ne=0;Ne=Re.length||Ne>=$e.length);++Ne)Re[Ne+Me]=$e[Ne];return Ne}function zt($e,Re){return $e instanceof Re||$e!=null&&$e.constructor!=null&&$e.constructor.name!=null&&$e.constructor.name===Re.name}function Mt($e){return $e!==$e}var kt=(function(){for(var $e="0123456789abcdef",Re=new Array(256),Me=0;Me<16;++Me)for(var oe=Me*16,Ne=0;Ne<16;++Ne)Re[oe+Ne]=$e[Me]+$e[Ne];return Re})()}),9216:(function(i){"use strict";i.exports=u,i.exports.isMobile=u,i.exports.default=u;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function u(l){l||(l={});var f=l.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var c=a.test(f)&&!o.test(f)||!!l.tablet&&s.test(f);return!c&&l.tablet&&l.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}}),6296:(function(i,a,o){"use strict";i.exports=h;var s=o(7261),u=o(9977),l=o(1811);function f(d,p){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(y){return d[y]}),this._mode=p,this._active=d[p],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var c=f.prototype;c.flush=function(d){for(var p=this._controllerList,y=0;y0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=A);var x=L===A?0:4-L%4;return[L,x]}function d(E){var A=h(E),L=A[0],x=A[1];return(L+x)*3/4-x}function p(E,A,L){return(A+L)*3/4-L}function y(E){var A,L=h(E),x=L[0],k=L[1],S=new u(p(E,x,k)),m=0,P=k>0?x-4:x,M;for(M=0;M>16&255,S[m++]=A>>8&255,S[m++]=A&255;return k===2&&(A=s[E.charCodeAt(M)]<<2|s[E.charCodeAt(M+1)]>>4,S[m++]=A&255),k===1&&(A=s[E.charCodeAt(M)]<<10|s[E.charCodeAt(M+1)]<<4|s[E.charCodeAt(M+2)]>>2,S[m++]=A>>8&255,S[m++]=A&255),S}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function v(E,A,L){for(var x,k=[],S=A;SP?P:m+S));return x===1?(A=E[L-1],k.push(o[A>>2]+o[A<<4&63]+"==")):x===2&&(A=(E[L-2]<<8)+E[L-1],k.push(o[A>>10]+o[A>>4&63]+o[A<<2&63]+"=")),k.join("")}}),3865:(function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).add(f[0].mul(l[1])),l[1].mul(f[1]))}}),1318:(function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}}),8697:(function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]),l[1].mul(f[0]))}}),7842:(function(i,a,o){"use strict";var s=o(6330),u=o(1533),l=o(2651),f=o(6768),c=o(869),h=o(8697);i.exports=d;function d(p,y){if(s(p))return y?h(p,d(y)):[p[0].clone(),p[1].clone()];var b=0,v,C;if(u(p))v=p.clone();else if(typeof p=="string")v=f(p);else{if(p===0)return[l(0),l(1)];if(p===Math.floor(p))v=l(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),b-=256;v=l(p)}}if(s(y))v.mul(y[1]),C=y[0].clone();else if(u(y))C=y.clone();else if(typeof y=="string")C=f(y);else if(!y)C=l(1);else if(y===Math.floor(y))C=l(y);else{for(;y!==Math.floor(y);)y=y*Math.pow(2,256),b+=256;C=l(y)}return b>0?v=v.ushln(b):b<0&&(C=C.ushln(-b)),c(v,C)}}),6330:(function(i,a,o){"use strict";var s=o(1533);i.exports=u;function u(l){return Array.isArray(l)&&l.length===2&&s(l[0])&&s(l[1])}}),5716:(function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l.cmp(new s(0))}}),1369:(function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){var f=l.length,c=l.words,h=0;if(f===1)h=c[0];else if(f===2)h=c[0]+c[1]*67108864;else for(var d=0;d20?52:h+32}}),1533:(function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l&&typeof l=="object"&&!!l.words}}),2651:(function(i,a,o){"use strict";var s=o(6859),u=o(2361);i.exports=l;function l(f){var c=u.exponent(f);return c<52?new s(f):new s(f*Math.pow(2,52-c)).ushln(c-52)}}),869:(function(i,a,o){"use strict";var s=o(2651),u=o(5716);i.exports=l;function l(f,c){var h=u(f),d=u(c);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(f=f.neg(),c=c.neg());var p=f.gcd(c);return p.cmpn(1)?[f.div(p),c.div(p)]:[f,c]}}),6768:(function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return new s(l)}}),6504:(function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[0]),l[1].mul(f[1]))}}),7721:(function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){return s(l[0])*s(l[1])}}),5572:(function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).sub(l[1].mul(f[0])),l[1].mul(f[1]))}}),946:(function(i,a,o){"use strict";var s=o(1369),u=o(4025);i.exports=l;function l(f){var c=f[0],h=f[1];if(c.cmpn(0)===0)return 0;var d=c.abs().divmod(h.abs()),p=d.div,y=s(p),b=d.mod,v=c.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return v*y;if(y){var C=u(y)+4,E=s(b.ushln(C).divRound(h));return v*(y+E*Math.pow(2,-C))}else{var A=h.bitLength()-b.bitLength()+53,E=s(b.ushln(A).divRound(h));return A<1023?v*E*Math.pow(2,-A):(E*=Math.pow(2,-1023),v*E*Math.pow(2,1023-A))}}}),2478:(function(i){"use strict";function a(c,h,d,p,y){for(var b=y+1;p<=y;){var v=p+y>>>1,C=c[v],E=d!==void 0?d(C,h):C-h;E>=0?(b=v,y=v-1):p=v+1}return b}function o(c,h,d,p,y){for(var b=y+1;p<=y;){var v=p+y>>>1,C=c[v],E=d!==void 0?d(C,h):C-h;E>0?(b=v,y=v-1):p=v+1}return b}function s(c,h,d,p,y){for(var b=p-1;p<=y;){var v=p+y>>>1,C=c[v],E=d!==void 0?d(C,h):C-h;E<0?(b=v,p=v+1):y=v-1}return b}function u(c,h,d,p,y){for(var b=p-1;p<=y;){var v=p+y>>>1,C=c[v],E=d!==void 0?d(C,h):C-h;E<=0?(b=v,p=v+1):y=v-1}return b}function l(c,h,d,p,y){for(;p<=y;){var b=p+y>>>1,v=c[b],C=d!==void 0?d(v,h):v-h;if(C===0)return b;C<=0?p=b+1:y=b-1}return-1}function f(c,h,d,p,y,b){return typeof d=="function"?b(c,h,d,p===void 0?0:p|0,y===void 0?c.length-1:y|0):b(c,h,void 0,d===void 0?0:d|0,p===void 0?c.length-1:p|0)}i.exports={ge:function(c,h,d,p,y){return f(c,h,d,p,y,a)},gt:function(c,h,d,p,y){return f(c,h,d,p,y,o)},lt:function(c,h,d,p,y){return f(c,h,d,p,y,s)},le:function(c,h,d,p,y){return f(c,h,d,p,y,u)},eq:function(c,h,d,p,y){return f(c,h,d,p,y,l)}}}),8828:(function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}}),6859:(function(i,a,o){i=o.nmd(i),(function(s,u){"use strict";function l(W,N){if(!W)throw new Error(N||"Assertion failed")}function f(W,N){W.super_=N;var H=function(){};H.prototype=N.prototype,W.prototype=new H,W.prototype.constructor=W}function c(W,N,H){if(c.isBN(W))return W;this.negative=0,this.words=null,this.length=0,this.red=null,W!==null&&((N==="le"||N==="be")&&(H=N,N=10),this._init(W||0,N||10,H||"be"))}typeof s=="object"?s.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(W){}c.isBN=function(N){return N instanceof c?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===c.wordSize&&Array.isArray(N.words)},c.max=function(N,H){return N.cmp(H)>0?N:H},c.min=function(N,H){return N.cmp(H)<0?N:H},c.prototype._init=function(N,H,re){if(typeof N=="number")return this._initNumber(N,H,re);if(typeof N=="object")return this._initArray(N,H,re);H==="hex"&&(H=16),l(H===(H|0)&&H>=2&&H<=36),N=N.toString().replace(/\s+/g,"");var ae=0;N[0]==="-"&&(ae++,this.negative=1),ae=0;ae-=3)Ce=N[ae]|N[ae-1]<<8|N[ae-2]<<16,this.words[me]|=Ce<>>26-Ee&67108863,Ee+=24,Ee>=26&&(Ee-=26,me++);else if(re==="le")for(ae=0,me=0;ae>>26-Ee&67108863,Ee+=24,Ee>=26&&(Ee-=26,me++);return this.strip()};function d(W,N){var H=W.charCodeAt(N);return H>=65&&H<=70?H-55:H>=97&&H<=102?H-87:H-48&15}function p(W,N,H){var re=d(W,H);return H-1>=N&&(re|=d(W,H-1)<<4),re}c.prototype._parseHex=function(N,H,re){this.length=Math.ceil((N.length-H)/6),this.words=new Array(this.length);for(var ae=0;ae=H;ae-=2)Ee=p(N,H,ae)<=18?(me-=18,Ce+=1,this.words[Ce]|=Ee>>>26):me+=8;else{var de=N.length-H;for(ae=de%2===0?H+1:H;ae=18?(me-=18,Ce+=1,this.words[Ce]|=Ee>>>26):me+=8}this.strip()};function y(W,N,H,re){for(var ae=0,me=Math.min(W.length,H),Ce=N;Ce=49?ae+=Ee-49+10:Ee>=17?ae+=Ee-17+10:ae+=Ee}return ae}c.prototype._parseBase=function(N,H,re){this.words=[0],this.length=1;for(var ae=0,me=1;me<=67108863;me*=H)ae++;ae--,me=me/H|0;for(var Ce=N.length-re,Ee=Ce%ae,de=Math.min(Ce,Ce-Ee)+re,te=0,Se=re;Se1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(N,H){N=N||10,H=H|0||1;var re;if(N===16||N==="hex"){re="";for(var ae=0,me=0,Ce=0;Ce>>24-ae&16777215,ae+=2,ae>=26&&(ae-=26,Ce--),me!==0||Ce!==this.length-1?re=b[6-de.length]+de+re:re=de+re}for(me!==0&&(re=me.toString(16)+re);re.length%H!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var te=v[N],Se=C[N];re="";var Te=this.clone();for(Te.negative=0;!Te.isZero();){var be=Te.modn(Se).toString(N);Te=Te.idivn(Se),Te.isZero()?re=be+re:re=b[te-be.length]+be+re}for(this.isZero()&&(re="0"+re);re.length%H!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}l(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(N,H){return l(typeof h!="undefined"),this.toArrayLike(h,N,H)},c.prototype.toArray=function(N,H){return this.toArrayLike(Array,N,H)},c.prototype.toArrayLike=function(N,H,re){var ae=this.byteLength(),me=re||Math.max(1,ae);l(ae<=me,"byte array longer than desired length"),l(me>0,"Requested array length <= 0"),this.strip();var Ce=H==="le",Ee=new N(me),de,te,Se=this.clone();if(Ce){for(te=0;!Se.isZero();te++)de=Se.andln(255),Se.iushrn(8),Ee[te]=de;for(;te=4096&&(re+=13,H>>>=13),H>=64&&(re+=7,H>>>=7),H>=8&&(re+=4,H>>>=4),H>=2&&(re+=2,H>>>=2),re+H},c.prototype._zeroBits=function(N){if(N===0)return 26;var H=N,re=0;return(H&8191)===0&&(re+=13,H>>>=13),(H&127)===0&&(re+=7,H>>>=7),(H&15)===0&&(re+=4,H>>>=4),(H&3)===0&&(re+=2,H>>>=2),(H&1)===0&&re++,re},c.prototype.bitLength=function(){var N=this.words[this.length-1],H=this._countBits(N);return(this.length-1)*26+H};function E(W){for(var N=new Array(W.bitLength()),H=0;H>>ae}return N}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,H=0;HN.length?this.clone().ior(N):N.clone().ior(this)},c.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},c.prototype.iuand=function(N){var H;this.length>N.length?H=N:H=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},c.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},c.prototype.iuxor=function(N){var H,re;this.length>N.length?(H=this,re=N):(H=N,re=this);for(var ae=0;aeN.length?this.clone().ixor(N):N.clone().ixor(this)},c.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},c.prototype.inotn=function(N){l(typeof N=="number"&&N>=0);var H=Math.ceil(N/26)|0,re=N%26;this._expand(H),re>0&&H--;for(var ae=0;ae0&&(this.words[ae]=~this.words[ae]&67108863>>26-re),this.strip()},c.prototype.notn=function(N){return this.clone().inotn(N)},c.prototype.setn=function(N,H){l(typeof N=="number"&&N>=0);var re=N/26|0,ae=N%26;return this._expand(re+1),H?this.words[re]=this.words[re]|1<N.length?(re=this,ae=N):(re=N,ae=this);for(var me=0,Ce=0;Ce>>26;for(;me!==0&&Ce>>26;if(this.length=re.length,me!==0)this.words[this.length]=me,this.length++;else if(re!==this)for(;CeN.length?this.clone().iadd(N):N.clone().iadd(this)},c.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var H=this.iadd(N);return N.negative=1,H._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ae,me;re>0?(ae=this,me=N):(ae=N,me=this);for(var Ce=0,Ee=0;Ee>26,this.words[Ee]=H&67108863;for(;Ce!==0&&Ee>26,this.words[Ee]=H&67108863;if(Ce===0&&Ee>>26,Te=de&67108863,be=Math.min(te,N.length-1),He=Math.max(0,te-W.length+1);He<=be;He++){var Ie=te-He|0;ae=W.words[Ie]|0,me=N.words[He]|0,Ce=ae*me+Te,Se+=Ce/67108864|0,Te=Ce&67108863}H.words[te]=Te|0,de=Se|0}return de!==0?H.words[te]=de|0:H.length--,H.strip()}var L=function(N,H,re){var ae=N.words,me=H.words,Ce=re.words,Ee=0,de,te,Se,Te=ae[0]|0,be=Te&8191,He=Te>>>13,Ie=ae[1]|0,ge=Ie&8191,Be=Ie>>>13,ce=ae[2]|0,je=ce&8191,rt=ce>>>13,bt=ae[3]|0,Ot=bt&8191,it=bt>>>13,Ke=ae[4]|0,zt=Ke&8191,Mt=Ke>>>13,kt=ae[5]|0,$e=kt&8191,Re=kt>>>13,Me=ae[6]|0,oe=Me&8191,Ne=Me>>>13,vt=ae[7]|0,lt=vt&8191,We=vt>>>13,Ve=ae[8]|0,et=Ve&8191,tt=Ve>>>13,Lt=ae[9]|0,jt=Lt&8191,or=Lt>>>13,yr=me[0]|0,vr=yr&8191,Vt=yr>>>13,Pe=me[1]|0,xe=Pe&8191,Oe=Pe>>>13,ze=me[2]|0,De=ze&8191,ht=ze>>>13,st=me[3]|0,gt=st&8191,xt=st>>>13,pr=me[4]|0,br=pr&8191,cr=pr>>>13,Er=me[5]|0,ii=Er&8191,jr=Er>>>13,kr=me[6]|0,Vr=kr&8191,Ai=kr>>>13,Bi=me[7]|0,Ri=Bi&8191,ln=Bi>>>13,hn=me[8]|0,qr=hn&8191,_i=hn>>>13,zi=me[9]|0,Dt=zi&8191,_t=zi>>>13;re.negative=N.negative^H.negative,re.length=19,de=Math.imul(be,vr),te=Math.imul(be,Vt),te=te+Math.imul(He,vr)|0,Se=Math.imul(He,Vt);var qt=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(qt>>>26)|0,qt&=67108863,de=Math.imul(ge,vr),te=Math.imul(ge,Vt),te=te+Math.imul(Be,vr)|0,Se=Math.imul(Be,Vt),de=de+Math.imul(be,xe)|0,te=te+Math.imul(be,Oe)|0,te=te+Math.imul(He,xe)|0,Se=Se+Math.imul(He,Oe)|0;var Nt=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,de=Math.imul(je,vr),te=Math.imul(je,Vt),te=te+Math.imul(rt,vr)|0,Se=Math.imul(rt,Vt),de=de+Math.imul(ge,xe)|0,te=te+Math.imul(ge,Oe)|0,te=te+Math.imul(Be,xe)|0,Se=Se+Math.imul(Be,Oe)|0,de=de+Math.imul(be,De)|0,te=te+Math.imul(be,ht)|0,te=te+Math.imul(He,De)|0,Se=Se+Math.imul(He,ht)|0;var mr=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(mr>>>26)|0,mr&=67108863,de=Math.imul(Ot,vr),te=Math.imul(Ot,Vt),te=te+Math.imul(it,vr)|0,Se=Math.imul(it,Vt),de=de+Math.imul(je,xe)|0,te=te+Math.imul(je,Oe)|0,te=te+Math.imul(rt,xe)|0,Se=Se+Math.imul(rt,Oe)|0,de=de+Math.imul(ge,De)|0,te=te+Math.imul(ge,ht)|0,te=te+Math.imul(Be,De)|0,Se=Se+Math.imul(Be,ht)|0,de=de+Math.imul(be,gt)|0,te=te+Math.imul(be,xt)|0,te=te+Math.imul(He,gt)|0,Se=Se+Math.imul(He,xt)|0;var Lr=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,de=Math.imul(zt,vr),te=Math.imul(zt,Vt),te=te+Math.imul(Mt,vr)|0,Se=Math.imul(Mt,Vt),de=de+Math.imul(Ot,xe)|0,te=te+Math.imul(Ot,Oe)|0,te=te+Math.imul(it,xe)|0,Se=Se+Math.imul(it,Oe)|0,de=de+Math.imul(je,De)|0,te=te+Math.imul(je,ht)|0,te=te+Math.imul(rt,De)|0,Se=Se+Math.imul(rt,ht)|0,de=de+Math.imul(ge,gt)|0,te=te+Math.imul(ge,xt)|0,te=te+Math.imul(Be,gt)|0,Se=Se+Math.imul(Be,xt)|0,de=de+Math.imul(be,br)|0,te=te+Math.imul(be,cr)|0,te=te+Math.imul(He,br)|0,Se=Se+Math.imul(He,cr)|0;var Nr=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,de=Math.imul($e,vr),te=Math.imul($e,Vt),te=te+Math.imul(Re,vr)|0,Se=Math.imul(Re,Vt),de=de+Math.imul(zt,xe)|0,te=te+Math.imul(zt,Oe)|0,te=te+Math.imul(Mt,xe)|0,Se=Se+Math.imul(Mt,Oe)|0,de=de+Math.imul(Ot,De)|0,te=te+Math.imul(Ot,ht)|0,te=te+Math.imul(it,De)|0,Se=Se+Math.imul(it,ht)|0,de=de+Math.imul(je,gt)|0,te=te+Math.imul(je,xt)|0,te=te+Math.imul(rt,gt)|0,Se=Se+Math.imul(rt,xt)|0,de=de+Math.imul(ge,br)|0,te=te+Math.imul(ge,cr)|0,te=te+Math.imul(Be,br)|0,Se=Se+Math.imul(Be,cr)|0,de=de+Math.imul(be,ii)|0,te=te+Math.imul(be,jr)|0,te=te+Math.imul(He,ii)|0,Se=Se+Math.imul(He,jr)|0;var Fr=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,de=Math.imul(oe,vr),te=Math.imul(oe,Vt),te=te+Math.imul(Ne,vr)|0,Se=Math.imul(Ne,Vt),de=de+Math.imul($e,xe)|0,te=te+Math.imul($e,Oe)|0,te=te+Math.imul(Re,xe)|0,Se=Se+Math.imul(Re,Oe)|0,de=de+Math.imul(zt,De)|0,te=te+Math.imul(zt,ht)|0,te=te+Math.imul(Mt,De)|0,Se=Se+Math.imul(Mt,ht)|0,de=de+Math.imul(Ot,gt)|0,te=te+Math.imul(Ot,xt)|0,te=te+Math.imul(it,gt)|0,Se=Se+Math.imul(it,xt)|0,de=de+Math.imul(je,br)|0,te=te+Math.imul(je,cr)|0,te=te+Math.imul(rt,br)|0,Se=Se+Math.imul(rt,cr)|0,de=de+Math.imul(ge,ii)|0,te=te+Math.imul(ge,jr)|0,te=te+Math.imul(Be,ii)|0,Se=Se+Math.imul(Be,jr)|0,de=de+Math.imul(be,Vr)|0,te=te+Math.imul(be,Ai)|0,te=te+Math.imul(He,Vr)|0,Se=Se+Math.imul(He,Ai)|0;var Hr=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,de=Math.imul(lt,vr),te=Math.imul(lt,Vt),te=te+Math.imul(We,vr)|0,Se=Math.imul(We,Vt),de=de+Math.imul(oe,xe)|0,te=te+Math.imul(oe,Oe)|0,te=te+Math.imul(Ne,xe)|0,Se=Se+Math.imul(Ne,Oe)|0,de=de+Math.imul($e,De)|0,te=te+Math.imul($e,ht)|0,te=te+Math.imul(Re,De)|0,Se=Se+Math.imul(Re,ht)|0,de=de+Math.imul(zt,gt)|0,te=te+Math.imul(zt,xt)|0,te=te+Math.imul(Mt,gt)|0,Se=Se+Math.imul(Mt,xt)|0,de=de+Math.imul(Ot,br)|0,te=te+Math.imul(Ot,cr)|0,te=te+Math.imul(it,br)|0,Se=Se+Math.imul(it,cr)|0,de=de+Math.imul(je,ii)|0,te=te+Math.imul(je,jr)|0,te=te+Math.imul(rt,ii)|0,Se=Se+Math.imul(rt,jr)|0,de=de+Math.imul(ge,Vr)|0,te=te+Math.imul(ge,Ai)|0,te=te+Math.imul(Be,Vr)|0,Se=Se+Math.imul(Be,Ai)|0,de=de+Math.imul(be,Ri)|0,te=te+Math.imul(be,ln)|0,te=te+Math.imul(He,Ri)|0,Se=Se+Math.imul(He,ln)|0;var Gr=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,de=Math.imul(et,vr),te=Math.imul(et,Vt),te=te+Math.imul(tt,vr)|0,Se=Math.imul(tt,Vt),de=de+Math.imul(lt,xe)|0,te=te+Math.imul(lt,Oe)|0,te=te+Math.imul(We,xe)|0,Se=Se+Math.imul(We,Oe)|0,de=de+Math.imul(oe,De)|0,te=te+Math.imul(oe,ht)|0,te=te+Math.imul(Ne,De)|0,Se=Se+Math.imul(Ne,ht)|0,de=de+Math.imul($e,gt)|0,te=te+Math.imul($e,xt)|0,te=te+Math.imul(Re,gt)|0,Se=Se+Math.imul(Re,xt)|0,de=de+Math.imul(zt,br)|0,te=te+Math.imul(zt,cr)|0,te=te+Math.imul(Mt,br)|0,Se=Se+Math.imul(Mt,cr)|0,de=de+Math.imul(Ot,ii)|0,te=te+Math.imul(Ot,jr)|0,te=te+Math.imul(it,ii)|0,Se=Se+Math.imul(it,jr)|0,de=de+Math.imul(je,Vr)|0,te=te+Math.imul(je,Ai)|0,te=te+Math.imul(rt,Vr)|0,Se=Se+Math.imul(rt,Ai)|0,de=de+Math.imul(ge,Ri)|0,te=te+Math.imul(ge,ln)|0,te=te+Math.imul(Be,Ri)|0,Se=Se+Math.imul(Be,ln)|0,de=de+Math.imul(be,qr)|0,te=te+Math.imul(be,_i)|0,te=te+Math.imul(He,qr)|0,Se=Se+Math.imul(He,_i)|0;var mi=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(mi>>>26)|0,mi&=67108863,de=Math.imul(jt,vr),te=Math.imul(jt,Vt),te=te+Math.imul(or,vr)|0,Se=Math.imul(or,Vt),de=de+Math.imul(et,xe)|0,te=te+Math.imul(et,Oe)|0,te=te+Math.imul(tt,xe)|0,Se=Se+Math.imul(tt,Oe)|0,de=de+Math.imul(lt,De)|0,te=te+Math.imul(lt,ht)|0,te=te+Math.imul(We,De)|0,Se=Se+Math.imul(We,ht)|0,de=de+Math.imul(oe,gt)|0,te=te+Math.imul(oe,xt)|0,te=te+Math.imul(Ne,gt)|0,Se=Se+Math.imul(Ne,xt)|0,de=de+Math.imul($e,br)|0,te=te+Math.imul($e,cr)|0,te=te+Math.imul(Re,br)|0,Se=Se+Math.imul(Re,cr)|0,de=de+Math.imul(zt,ii)|0,te=te+Math.imul(zt,jr)|0,te=te+Math.imul(Mt,ii)|0,Se=Se+Math.imul(Mt,jr)|0,de=de+Math.imul(Ot,Vr)|0,te=te+Math.imul(Ot,Ai)|0,te=te+Math.imul(it,Vr)|0,Se=Se+Math.imul(it,Ai)|0,de=de+Math.imul(je,Ri)|0,te=te+Math.imul(je,ln)|0,te=te+Math.imul(rt,Ri)|0,Se=Se+Math.imul(rt,ln)|0,de=de+Math.imul(ge,qr)|0,te=te+Math.imul(ge,_i)|0,te=te+Math.imul(Be,qr)|0,Se=Se+Math.imul(Be,_i)|0,de=de+Math.imul(be,Dt)|0,te=te+Math.imul(be,_t)|0,te=te+Math.imul(He,Dt)|0,Se=Se+Math.imul(He,_t)|0;var Ei=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,de=Math.imul(jt,xe),te=Math.imul(jt,Oe),te=te+Math.imul(or,xe)|0,Se=Math.imul(or,Oe),de=de+Math.imul(et,De)|0,te=te+Math.imul(et,ht)|0,te=te+Math.imul(tt,De)|0,Se=Se+Math.imul(tt,ht)|0,de=de+Math.imul(lt,gt)|0,te=te+Math.imul(lt,xt)|0,te=te+Math.imul(We,gt)|0,Se=Se+Math.imul(We,xt)|0,de=de+Math.imul(oe,br)|0,te=te+Math.imul(oe,cr)|0,te=te+Math.imul(Ne,br)|0,Se=Se+Math.imul(Ne,cr)|0,de=de+Math.imul($e,ii)|0,te=te+Math.imul($e,jr)|0,te=te+Math.imul(Re,ii)|0,Se=Se+Math.imul(Re,jr)|0,de=de+Math.imul(zt,Vr)|0,te=te+Math.imul(zt,Ai)|0,te=te+Math.imul(Mt,Vr)|0,Se=Se+Math.imul(Mt,Ai)|0,de=de+Math.imul(Ot,Ri)|0,te=te+Math.imul(Ot,ln)|0,te=te+Math.imul(it,Ri)|0,Se=Se+Math.imul(it,ln)|0,de=de+Math.imul(je,qr)|0,te=te+Math.imul(je,_i)|0,te=te+Math.imul(rt,qr)|0,Se=Se+Math.imul(rt,_i)|0,de=de+Math.imul(ge,Dt)|0,te=te+Math.imul(ge,_t)|0,te=te+Math.imul(Be,Dt)|0,Se=Se+Math.imul(Be,_t)|0;var Vi=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,de=Math.imul(jt,De),te=Math.imul(jt,ht),te=te+Math.imul(or,De)|0,Se=Math.imul(or,ht),de=de+Math.imul(et,gt)|0,te=te+Math.imul(et,xt)|0,te=te+Math.imul(tt,gt)|0,Se=Se+Math.imul(tt,xt)|0,de=de+Math.imul(lt,br)|0,te=te+Math.imul(lt,cr)|0,te=te+Math.imul(We,br)|0,Se=Se+Math.imul(We,cr)|0,de=de+Math.imul(oe,ii)|0,te=te+Math.imul(oe,jr)|0,te=te+Math.imul(Ne,ii)|0,Se=Se+Math.imul(Ne,jr)|0,de=de+Math.imul($e,Vr)|0,te=te+Math.imul($e,Ai)|0,te=te+Math.imul(Re,Vr)|0,Se=Se+Math.imul(Re,Ai)|0,de=de+Math.imul(zt,Ri)|0,te=te+Math.imul(zt,ln)|0,te=te+Math.imul(Mt,Ri)|0,Se=Se+Math.imul(Mt,ln)|0,de=de+Math.imul(Ot,qr)|0,te=te+Math.imul(Ot,_i)|0,te=te+Math.imul(it,qr)|0,Se=Se+Math.imul(it,_i)|0,de=de+Math.imul(je,Dt)|0,te=te+Math.imul(je,_t)|0,te=te+Math.imul(rt,Dt)|0,Se=Se+Math.imul(rt,_t)|0;var ti=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(ti>>>26)|0,ti&=67108863,de=Math.imul(jt,gt),te=Math.imul(jt,xt),te=te+Math.imul(or,gt)|0,Se=Math.imul(or,xt),de=de+Math.imul(et,br)|0,te=te+Math.imul(et,cr)|0,te=te+Math.imul(tt,br)|0,Se=Se+Math.imul(tt,cr)|0,de=de+Math.imul(lt,ii)|0,te=te+Math.imul(lt,jr)|0,te=te+Math.imul(We,ii)|0,Se=Se+Math.imul(We,jr)|0,de=de+Math.imul(oe,Vr)|0,te=te+Math.imul(oe,Ai)|0,te=te+Math.imul(Ne,Vr)|0,Se=Se+Math.imul(Ne,Ai)|0,de=de+Math.imul($e,Ri)|0,te=te+Math.imul($e,ln)|0,te=te+Math.imul(Re,Ri)|0,Se=Se+Math.imul(Re,ln)|0,de=de+Math.imul(zt,qr)|0,te=te+Math.imul(zt,_i)|0,te=te+Math.imul(Mt,qr)|0,Se=Se+Math.imul(Mt,_i)|0,de=de+Math.imul(Ot,Dt)|0,te=te+Math.imul(Ot,_t)|0,te=te+Math.imul(it,Dt)|0,Se=Se+Math.imul(it,_t)|0;var Qi=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,de=Math.imul(jt,br),te=Math.imul(jt,cr),te=te+Math.imul(or,br)|0,Se=Math.imul(or,cr),de=de+Math.imul(et,ii)|0,te=te+Math.imul(et,jr)|0,te=te+Math.imul(tt,ii)|0,Se=Se+Math.imul(tt,jr)|0,de=de+Math.imul(lt,Vr)|0,te=te+Math.imul(lt,Ai)|0,te=te+Math.imul(We,Vr)|0,Se=Se+Math.imul(We,Ai)|0,de=de+Math.imul(oe,Ri)|0,te=te+Math.imul(oe,ln)|0,te=te+Math.imul(Ne,Ri)|0,Se=Se+Math.imul(Ne,ln)|0,de=de+Math.imul($e,qr)|0,te=te+Math.imul($e,_i)|0,te=te+Math.imul(Re,qr)|0,Se=Se+Math.imul(Re,_i)|0,de=de+Math.imul(zt,Dt)|0,te=te+Math.imul(zt,_t)|0,te=te+Math.imul(Mt,Dt)|0,Se=Se+Math.imul(Mt,_t)|0;var Yr=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,de=Math.imul(jt,ii),te=Math.imul(jt,jr),te=te+Math.imul(or,ii)|0,Se=Math.imul(or,jr),de=de+Math.imul(et,Vr)|0,te=te+Math.imul(et,Ai)|0,te=te+Math.imul(tt,Vr)|0,Se=Se+Math.imul(tt,Ai)|0,de=de+Math.imul(lt,Ri)|0,te=te+Math.imul(lt,ln)|0,te=te+Math.imul(We,Ri)|0,Se=Se+Math.imul(We,ln)|0,de=de+Math.imul(oe,qr)|0,te=te+Math.imul(oe,_i)|0,te=te+Math.imul(Ne,qr)|0,Se=Se+Math.imul(Ne,_i)|0,de=de+Math.imul($e,Dt)|0,te=te+Math.imul($e,_t)|0,te=te+Math.imul(Re,Dt)|0,Se=Se+Math.imul(Re,_t)|0;var oi=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(oi>>>26)|0,oi&=67108863,de=Math.imul(jt,Vr),te=Math.imul(jt,Ai),te=te+Math.imul(or,Vr)|0,Se=Math.imul(or,Ai),de=de+Math.imul(et,Ri)|0,te=te+Math.imul(et,ln)|0,te=te+Math.imul(tt,Ri)|0,Se=Se+Math.imul(tt,ln)|0,de=de+Math.imul(lt,qr)|0,te=te+Math.imul(lt,_i)|0,te=te+Math.imul(We,qr)|0,Se=Se+Math.imul(We,_i)|0,de=de+Math.imul(oe,Dt)|0,te=te+Math.imul(oe,_t)|0,te=te+Math.imul(Ne,Dt)|0,Se=Se+Math.imul(Ne,_t)|0;var Fi=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,de=Math.imul(jt,Ri),te=Math.imul(jt,ln),te=te+Math.imul(or,Ri)|0,Se=Math.imul(or,ln),de=de+Math.imul(et,qr)|0,te=te+Math.imul(et,_i)|0,te=te+Math.imul(tt,qr)|0,Se=Se+Math.imul(tt,_i)|0,de=de+Math.imul(lt,Dt)|0,te=te+Math.imul(lt,_t)|0,te=te+Math.imul(We,Dt)|0,Se=Se+Math.imul(We,_t)|0;var rn=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(rn>>>26)|0,rn&=67108863,de=Math.imul(jt,qr),te=Math.imul(jt,_i),te=te+Math.imul(or,qr)|0,Se=Math.imul(or,_i),de=de+Math.imul(et,Dt)|0,te=te+Math.imul(et,_t)|0,te=te+Math.imul(tt,Dt)|0,Se=Se+Math.imul(tt,_t)|0;var tn=(Ee+de|0)+((te&8191)<<13)|0;Ee=(Se+(te>>>13)|0)+(tn>>>26)|0,tn&=67108863,de=Math.imul(jt,Dt),te=Math.imul(jt,_t),te=te+Math.imul(or,Dt)|0,Se=Math.imul(or,_t);var Di=(Ee+de|0)+((te&8191)<<13)|0;return Ee=(Se+(te>>>13)|0)+(Di>>>26)|0,Di&=67108863,Ce[0]=qt,Ce[1]=Nt,Ce[2]=mr,Ce[3]=Lr,Ce[4]=Nr,Ce[5]=Fr,Ce[6]=Hr,Ce[7]=Gr,Ce[8]=mi,Ce[9]=Ei,Ce[10]=Vi,Ce[11]=ti,Ce[12]=Qi,Ce[13]=Yr,Ce[14]=oi,Ce[15]=Fi,Ce[16]=rn,Ce[17]=tn,Ce[18]=Di,Ee!==0&&(Ce[19]=Ee,re.length++),re};Math.imul||(L=A);function x(W,N,H){H.negative=N.negative^W.negative,H.length=W.length+N.length;for(var re=0,ae=0,me=0;me>>26)|0,ae+=Ce>>>26,Ce&=67108863}H.words[me]=Ee,re=Ce,Ce=ae}return re!==0?H.words[me]=re:H.length--,H.strip()}function k(W,N,H){var re=new S;return re.mulp(W,N,H)}c.prototype.mulTo=function(N,H){var re,ae=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,H):ae<63?re=A(this,N,H):ae<1024?re=x(this,N,H):re=k(this,N,H),re};function S(W,N){this.x=W,this.y=N}S.prototype.makeRBT=function(N){for(var H=new Array(N),re=c.prototype._countBits(N)-1,ae=0;ae>=1;return ae},S.prototype.permute=function(N,H,re,ae,me,Ce){for(var Ee=0;Ee>>1)me++;return 1<>>13,re[2*Ce+1]=me&8191,me=me>>>13;for(Ce=2*H;Ce>=26,H+=ae/67108864|0,H+=me>>>26,this.words[re]=me&67108863}return H!==0&&(this.words[re]=H,this.length++),this.length=N===0?1:this.length,this},c.prototype.muln=function(N){return this.clone().imuln(N)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(N){var H=E(N);if(H.length===0)return new c(1);for(var re=this,ae=0;ae=0);var H=N%26,re=(N-H)/26,ae=67108863>>>26-H<<26-H,me;if(H!==0){var Ce=0;for(me=0;me>>26-H}Ce&&(this.words[me]=Ce,this.length++)}if(re!==0){for(me=this.length-1;me>=0;me--)this.words[me+re]=this.words[me];for(me=0;me=0);var ae;H?ae=(H-H%26)/26:ae=0;var me=N%26,Ce=Math.min((N-me)/26,this.length),Ee=67108863^67108863>>>me<Ce)for(this.length-=Ce,te=0;te=0&&(Se!==0||te>=ae);te--){var Te=this.words[te]|0;this.words[te]=Se<<26-me|Te>>>me,Se=Te&Ee}return de&&Se!==0&&(de.words[de.length++]=Se),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(N,H,re){return l(this.negative===0),this.iushrn(N,H,re)},c.prototype.shln=function(N){return this.clone().ishln(N)},c.prototype.ushln=function(N){return this.clone().iushln(N)},c.prototype.shrn=function(N){return this.clone().ishrn(N)},c.prototype.ushrn=function(N){return this.clone().iushrn(N)},c.prototype.testn=function(N){l(typeof N=="number"&&N>=0);var H=N%26,re=(N-H)/26,ae=1<=0);var H=N%26,re=(N-H)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(H!==0&&re++,this.length=Math.min(re,this.length),H!==0){var ae=67108863^67108863>>>H<=67108864;H++)this.words[H]-=67108864,H===this.length-1?this.words[H+1]=1:this.words[H+1]++;return this.length=Math.max(this.length,H+1),this},c.prototype.isubn=function(N){if(l(typeof N=="number"),l(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var H=0;H>26)-(de/67108864|0),this.words[me+re]=Ce&67108863}for(;me>26,this.words[me+re]=Ce&67108863;if(Ee===0)return this.strip();for(l(Ee===-1),Ee=0,me=0;me>26,this.words[me]=Ce&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(N,H){var re=this.length-N.length,ae=this.clone(),me=N,Ce=me.words[me.length-1]|0,Ee=this._countBits(Ce);re=26-Ee,re!==0&&(me=me.ushln(re),ae.iushln(re),Ce=me.words[me.length-1]|0);var de=ae.length-me.length,te;if(H!=="mod"){te=new c(null),te.length=de+1,te.words=new Array(te.length);for(var Se=0;Se=0;be--){var He=(ae.words[me.length+be]|0)*67108864+(ae.words[me.length+be-1]|0);for(He=Math.min(He/Ce|0,67108863),ae._ishlnsubmul(me,He,be);ae.negative!==0;)He--,ae.negative=0,ae._ishlnsubmul(me,1,be),ae.isZero()||(ae.negative^=1);te&&(te.words[be]=He)}return te&&te.strip(),ae.strip(),H!=="div"&&re!==0&&ae.iushrn(re),{div:te||null,mod:ae}},c.prototype.divmod=function(N,H,re){if(l(!N.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var ae,me,Ce;return this.negative!==0&&N.negative===0?(Ce=this.neg().divmod(N,H),H!=="mod"&&(ae=Ce.div.neg()),H!=="div"&&(me=Ce.mod.neg(),re&&me.negative!==0&&me.iadd(N)),{div:ae,mod:me}):this.negative===0&&N.negative!==0?(Ce=this.divmod(N.neg(),H),H!=="mod"&&(ae=Ce.div.neg()),{div:ae,mod:Ce.mod}):(this.negative&N.negative)!==0?(Ce=this.neg().divmod(N.neg(),H),H!=="div"&&(me=Ce.mod.neg(),re&&me.negative!==0&&me.isub(N)),{div:Ce.div,mod:me}):N.length>this.length||this.cmp(N)<0?{div:new c(0),mod:this}:N.length===1?H==="div"?{div:this.divn(N.words[0]),mod:null}:H==="mod"?{div:null,mod:new c(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new c(this.modn(N.words[0]))}:this._wordDiv(N,H)},c.prototype.div=function(N){return this.divmod(N,"div",!1).div},c.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},c.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},c.prototype.divRound=function(N){var H=this.divmod(N);if(H.mod.isZero())return H.div;var re=H.div.negative!==0?H.mod.isub(N):H.mod,ae=N.ushrn(1),me=N.andln(1),Ce=re.cmp(ae);return Ce<0||me===1&&Ce===0?H.div:H.div.negative!==0?H.div.isubn(1):H.div.iaddn(1)},c.prototype.modn=function(N){l(N<=67108863);for(var H=(1<<26)%N,re=0,ae=this.length-1;ae>=0;ae--)re=(H*re+(this.words[ae]|0))%N;return re},c.prototype.idivn=function(N){l(N<=67108863);for(var H=0,re=this.length-1;re>=0;re--){var ae=(this.words[re]|0)+H*67108864;this.words[re]=ae/N|0,H=ae%N}return this.strip()},c.prototype.divn=function(N){return this.clone().idivn(N)},c.prototype.egcd=function(N){l(N.negative===0),l(!N.isZero());var H=this,re=N.clone();H.negative!==0?H=H.umod(N):H=H.clone();for(var ae=new c(1),me=new c(0),Ce=new c(0),Ee=new c(1),de=0;H.isEven()&&re.isEven();)H.iushrn(1),re.iushrn(1),++de;for(var te=re.clone(),Se=H.clone();!H.isZero();){for(var Te=0,be=1;(H.words[0]&be)===0&&Te<26;++Te,be<<=1);if(Te>0)for(H.iushrn(Te);Te-- >0;)(ae.isOdd()||me.isOdd())&&(ae.iadd(te),me.isub(Se)),ae.iushrn(1),me.iushrn(1);for(var He=0,Ie=1;(re.words[0]&Ie)===0&&He<26;++He,Ie<<=1);if(He>0)for(re.iushrn(He);He-- >0;)(Ce.isOdd()||Ee.isOdd())&&(Ce.iadd(te),Ee.isub(Se)),Ce.iushrn(1),Ee.iushrn(1);H.cmp(re)>=0?(H.isub(re),ae.isub(Ce),me.isub(Ee)):(re.isub(H),Ce.isub(ae),Ee.isub(me))}return{a:Ce,b:Ee,gcd:re.iushln(de)}},c.prototype._invmp=function(N){l(N.negative===0),l(!N.isZero());var H=this,re=N.clone();H.negative!==0?H=H.umod(N):H=H.clone();for(var ae=new c(1),me=new c(0),Ce=re.clone();H.cmpn(1)>0&&re.cmpn(1)>0;){for(var Ee=0,de=1;(H.words[0]&de)===0&&Ee<26;++Ee,de<<=1);if(Ee>0)for(H.iushrn(Ee);Ee-- >0;)ae.isOdd()&&ae.iadd(Ce),ae.iushrn(1);for(var te=0,Se=1;(re.words[0]&Se)===0&&te<26;++te,Se<<=1);if(te>0)for(re.iushrn(te);te-- >0;)me.isOdd()&&me.iadd(Ce),me.iushrn(1);H.cmp(re)>=0?(H.isub(re),ae.isub(me)):(re.isub(H),me.isub(ae))}var Te;return H.cmpn(1)===0?Te=ae:Te=me,Te.cmpn(0)<0&&Te.iadd(N),Te},c.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var H=this.clone(),re=N.clone();H.negative=0,re.negative=0;for(var ae=0;H.isEven()&&re.isEven();ae++)H.iushrn(1),re.iushrn(1);do{for(;H.isEven();)H.iushrn(1);for(;re.isEven();)re.iushrn(1);var me=H.cmp(re);if(me<0){var Ce=H;H=re,re=Ce}else if(me===0||re.cmpn(1)===0)break;H.isub(re)}while(!0);return re.iushln(ae)},c.prototype.invm=function(N){return this.egcd(N).a.umod(N)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(N){return this.words[0]&N},c.prototype.bincn=function(N){l(typeof N=="number");var H=N%26,re=(N-H)/26,ae=1<>>26,Ee&=67108863,this.words[Ce]=Ee}return me!==0&&(this.words[Ce]=me,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(N){var H=N<0;if(this.negative!==0&&!H)return-1;if(this.negative===0&&H)return 1;this.strip();var re;if(this.length>1)re=1;else{H&&(N=-N),l(N<=67108863,"Number is too big");var ae=this.words[0]|0;re=ae===N?0:aeN.length)return 1;if(this.length=0;re--){var ae=this.words[re]|0,me=N.words[re]|0;if(ae!==me){aeme&&(H=1);break}}return H},c.prototype.gtn=function(N){return this.cmpn(N)===1},c.prototype.gt=function(N){return this.cmp(N)===1},c.prototype.gten=function(N){return this.cmpn(N)>=0},c.prototype.gte=function(N){return this.cmp(N)>=0},c.prototype.ltn=function(N){return this.cmpn(N)===-1},c.prototype.lt=function(N){return this.cmp(N)===-1},c.prototype.lten=function(N){return this.cmpn(N)<=0},c.prototype.lte=function(N){return this.cmp(N)<=0},c.prototype.eqn=function(N){return this.cmpn(N)===0},c.prototype.eq=function(N){return this.cmp(N)===0},c.red=function(N){return new G(N)},c.prototype.toRed=function(N){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},c.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(N){return this.red=N,this},c.prototype.forceRed=function(N){return l(!this.red,"Already a number in reduction context"),this._forceRed(N)},c.prototype.redAdd=function(N){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},c.prototype.redIAdd=function(N){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},c.prototype.redSub=function(N){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},c.prototype.redISub=function(N){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},c.prototype.redShl=function(N){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},c.prototype.redMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},c.prototype.redIMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},c.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(N){return l(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var m={k256:null,p224:null,p192:null,p25519:null};function P(W,N){this.name=W,this.p=new c(N,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new c(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var H=N,re;do this.split(H,this.tmp),H=this.imulK(H),H=H.iadd(this.tmp),re=H.bitLength();while(re>this.n);var ae=re0?H.isub(this.p):H.strip!==void 0?H.strip():H._strip(),H},P.prototype.split=function(N,H){N.iushrn(this.n,0,H)},P.prototype.imulK=function(N){return N.imul(this.k)};function M(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(M,P),M.prototype.split=function(N,H){for(var re=4194303,ae=Math.min(N.length,9),me=0;me>>22,Ce=Ee}Ce>>>=22,N.words[me-10]=Ce,Ce===0&&N.length>10?N.length-=10:N.length-=9},M.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var H=0,re=0;re>>=26,N.words[re]=me,H=ae}return H!==0&&(N.words[N.length++]=H),N},c._prime=function(N){if(m[N])return m[N];var H;if(N==="k256")H=new M;else if(N==="p224")H=new O;else if(N==="p192")H=new F;else if(N==="p25519")H=new U;else throw new Error("Unknown prime "+N);return m[N]=H,H};function G(W){if(typeof W=="string"){var N=c._prime(W);this.m=N.p,this.prime=N}else l(W.gtn(1),"modulus must be greater than 1"),this.m=W,this.prime=null}G.prototype._verify1=function(N){l(N.negative===0,"red works only with positives"),l(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,H){l((N.negative|H.negative)===0,"red works only with positives"),l(N.red&&N.red===H.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,H){this._verify2(N,H);var re=N.add(H);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,H){this._verify2(N,H);var re=N.iadd(H);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,H){this._verify2(N,H);var re=N.sub(H);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,H){this._verify2(N,H);var re=N.isub(H);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,H){return this._verify1(N),this.imod(N.ushln(H))},G.prototype.imul=function(N,H){return this._verify2(N,H),this.imod(N.imul(H))},G.prototype.mul=function(N,H){return this._verify2(N,H),this.imod(N.mul(H))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var H=this.m.andln(3);if(l(H%2===1),H===3){var re=this.m.add(new c(1)).iushrn(2);return this.pow(N,re)}for(var ae=this.m.subn(1),me=0;!ae.isZero()&&ae.andln(1)===0;)me++,ae.iushrn(1);l(!ae.isZero());var Ce=new c(1).toRed(this),Ee=Ce.redNeg(),de=this.m.subn(1).iushrn(1),te=this.m.bitLength();for(te=new c(2*te*te).toRed(this);this.pow(te,de).cmp(Ee)!==0;)te.redIAdd(Ee);for(var Se=this.pow(te,ae),Te=this.pow(N,ae.addn(1).iushrn(1)),be=this.pow(N,ae),He=me;be.cmp(Ce)!==0;){for(var Ie=be,ge=0;Ie.cmp(Ce)!==0;ge++)Ie=Ie.redSqr();l(ge=0;me--){for(var Se=H.words[me],Te=te-1;Te>=0;Te--){var be=Se>>Te&1;if(Ce!==ae[0]&&(Ce=this.sqr(Ce)),be===0&&Ee===0){de=0;continue}Ee<<=1,Ee|=be,de++,!(de!==re&&(me!==0||Te!==0))&&(Ce=this.mul(Ce,ae[Ee]),de=0,Ee=0)}te=26}return Ce},G.prototype.convertTo=function(N){var H=N.umod(this.m);return H===N?H.clone():H},G.prototype.convertFrom=function(N){var H=N.clone();return H.red=null,H},c.mont=function(N){return new j(N)};function j(W){G.call(this,W),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(j,G),j.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},j.prototype.convertFrom=function(N){var H=this.imod(N.mul(this.rinv));return H.red=null,H},j.prototype.imul=function(N,H){if(N.isZero()||H.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(H),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),me=re.isub(ae).iushrn(this.shift),Ce=me;return me.cmp(this.m)>=0?Ce=me.isub(this.m):me.cmpn(0)<0&&(Ce=me.iadd(this.m)),Ce._forceRed(this)},j.prototype.mul=function(N,H){if(N.isZero()||H.isZero())return new c(0)._forceRed(this);var re=N.mul(H),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),me=re.isub(ae).iushrn(this.shift),Ce=me;return me.cmp(this.m)>=0?Ce=me.isub(this.m):me.cmpn(0)<0&&(Ce=me.iadd(this.m)),Ce._forceRed(this)},j.prototype.invm=function(N){var H=this.imod(N._invmp(this.m).mul(this.r2));return H._forceRed(this)}})(i,this)}),6204:(function(i){"use strict";i.exports=a;function a(o){var s,u,l,f=o.length,c=0;for(s=0;s>>1;if(!(S<=0)){var m,P=s.mallocDouble(2*S*x),M=s.mallocInt32(x);if(x=c(C,S,P,M),x>0){if(S===1&&L)u.init(x),m=u.sweepComplete(S,A,0,x,P,M,0,x,P,M);else{var O=s.mallocDouble(2*S*k),F=s.mallocInt32(k);k=c(E,S,O,F),k>0&&(u.init(x+k),S===1?m=u.sweepBipartite(S,A,0,x,P,M,0,k,O,F):m=l(S,A,L,x,P,M,k,O,F),s.free(O),s.free(F))}s.free(P),s.free(M)}return m}}}var d;function p(C,E){d.push([C,E])}function y(C){return d=[],h(C,C,p,!0),d}function b(C,E){return d=[],h(C,E,p,!1),d}function v(C,E,A){switch(arguments.length){case 1:return y(C);case 2:return typeof E=="function"?h(C,C,E,!0):b(C,E);case 3:return h(C,E,A,!1);default:throw new Error("box-intersect: Invalid arguments")}}}),2455:(function(i,a){"use strict";function o(){function l(h,d,p,y,b,v,C,E,A,L,x){for(var k=2*h,S=y,m=k*y;SA-E?l(h,d,p,y,b,v,C,E,A,L,x):f(h,d,p,y,b,v,C,E,A,L,x)}return c}function s(){function l(p,y,b,v,C,E,A,L,x,k,S){for(var m=2*p,P=v,M=m*v;Pk-x?v?l(p,y,b,C,E,A,L,x,k,S,m):f(p,y,b,C,E,A,L,x,k,S,m):v?c(p,y,b,C,E,A,L,x,k,S,m):h(p,y,b,C,E,A,L,x,k,S,m)}return d}function u(l){return l?o():s()}a.partial=u(!1),a.full=u(!0)}),7150:(function(i,a,o){"use strict";i.exports=W;var s=o(1888),u=o(8828),l=o(2455),f=l.partial,c=l.full,h=o(855),d=o(3545),p=o(8105),y=128,b=1<<22,v=1<<22,C=p("!(lo>=p0)&&!(p1>=hi)"),E=p("lo===p0"),A=p("lo0;){Se-=1;var He=Se*S,Ie=M[He],ge=M[He+1],Be=M[He+2],ce=M[He+3],je=M[He+4],rt=M[He+5],bt=Se*m,Ot=O[bt],it=O[bt+1],Ke=rt&1,zt=!!(rt&16),Mt=me,kt=Ce,$e=de,Re=te;if(Ke&&(Mt=de,kt=te,$e=me,Re=Ce),!(rt&2&&(Be=A(N,Ie,ge,Be,Mt,kt,it),ge>=Be))&&!(rt&4&&(ge=L(N,Ie,ge,Be,Mt,kt,Ot),ge>=Be))){var Me=Be-ge,oe=je-ce;if(zt){if(N*Me*(Me+oe)p&&b[k+d]>L;--x,k-=C){for(var S=k,m=k+C,P=0;P>>1,L=2*h,x=A,k=b[L*A+d];C=O?(x=M,k=O):P>=U?(x=m,k=P):(x=F,k=U):O>=U?(x=M,k=O):U>=P?(x=m,k=P):(x=F,k=U);for(var W=L*(E-1),N=L*x,G=0;G=p0)&&!(p1>=hi)":d};function o(p){return a[p]}function s(p,y,b,v,C,E,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,M=b;v>M;++M,x+=L){var O=C[x+m];if(O===A)if(S===M)S+=1,k+=L;else{for(var F=0;L>F;++F){var U=C[x+F];C[x+F]=C[k],C[k++]=U}var G=E[M];E[M]=E[S],E[S++]=G}}return S}function u(p,y,b,v,C,E,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,M=b;v>M;++M,x+=L){var O=C[x+m];if(OF;++F){var U=C[x+F];C[x+F]=C[k],C[k++]=U}var G=E[M];E[M]=E[S],E[S++]=G}}return S}function l(p,y,b,v,C,E,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,M=b;v>M;++M,x+=L){var O=C[x+P];if(O<=A)if(S===M)S+=1,k+=L;else{for(var F=0;L>F;++F){var U=C[x+F];C[x+F]=C[k],C[k++]=U}var G=E[M];E[M]=E[S],E[S++]=G}}return S}function f(p,y,b,v,C,E,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,M=b;v>M;++M,x+=L){var O=C[x+P];if(O<=A)if(S===M)S+=1,k+=L;else{for(var F=0;L>F;++F){var U=C[x+F];C[x+F]=C[k],C[k++]=U}var G=E[M];E[M]=E[S],E[S++]=G}}return S}function c(p,y,b,v,C,E,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,M=b;v>M;++M,x+=L){var O=C[x+m],F=C[x+P];if(O<=A&&A<=F)if(S===M)S+=1,k+=L;else{for(var U=0;L>U;++U){var G=C[x+U];C[x+U]=C[k],C[k++]=G}var j=E[M];E[M]=E[S],E[S++]=j}}return S}function h(p,y,b,v,C,E,A){for(var L=2*p,x=L*b,k=x,S=b,m=y,P=p+y,M=b;v>M;++M,x+=L){var O=C[x+m],F=C[x+P];if(OU;++U){var G=C[x+U];C[x+U]=C[k],C[k++]=G}var j=E[M];E[M]=E[S],E[S++]=j}}return S}function d(p,y,b,v,C,E,A,L){for(var x=2*p,k=x*b,S=k,m=b,P=y,M=p+y,O=b;v>O;++O,k+=x){var F=C[k+P],U=C[k+M];if(!(F>=A)&&!(L>=U))if(m===O)m+=1,S+=x;else{for(var G=0;x>G;++G){var j=C[k+G];C[k+G]=C[S],C[S++]=j}var W=E[O];E[O]=E[m],E[m++]=W}}return m}}),4192:(function(i){"use strict";i.exports=o;var a=32;function o(y,b){b<=4*a?s(0,b-1,y):p(0,b-1,y)}function s(y,b,v){for(var C=2*(y+1),E=y+1;E<=b;++E){for(var A=v[C++],L=v[C++],x=E,k=C-2;x-- >y;){var S=v[k-2],m=v[k-1];if(Sv[b+1]:!0}function d(y,b,v,C){y*=2;var E=C[y];return E>1,x=L-C,k=L+C,S=E,m=x,P=L,M=k,O=A,F=y+1,U=b-1,G=0;h(S,m,v)&&(G=S,S=m,m=G),h(M,O,v)&&(G=M,M=O,O=G),h(S,P,v)&&(G=S,S=P,P=G),h(m,P,v)&&(G=m,m=P,P=G),h(S,M,v)&&(G=S,S=M,M=G),h(P,M,v)&&(G=P,P=M,M=G),h(m,O,v)&&(G=m,m=O,O=G),h(m,P,v)&&(G=m,m=P,P=G),h(M,O,v)&&(G=M,M=O,O=G);for(var j=v[2*m],W=v[2*m+1],N=v[2*M],H=v[2*M+1],re=2*S,ae=2*P,me=2*O,Ce=2*E,Ee=2*L,de=2*A,te=0;te<2;++te){var Se=v[re+te],Te=v[ae+te],be=v[me+te];v[Ce+te]=Se,v[Ee+te]=Te,v[de+te]=be}l(x,y,v),l(k,b,v);for(var He=F;He<=U;++He)if(d(He,j,W,v))He!==F&&u(He,F,v),++F;else if(!d(He,N,H,v))for(;;)if(d(U,N,H,v)){d(U,j,W,v)?(f(He,F,U,v),++F,--U):(u(He,U,v),--U);break}else{if(--U>>1;l(C,Te);for(var be=0,He=0,Ee=0;Ee=f)Ie=Ie-f|0,A(p,y,He--,Ie);else if(Ie>=0)A(h,d,be--,Ie);else if(Ie<=-f){Ie=-Ie-f|0;for(var ge=0;ge>>1;l(C,Te);for(var be=0,He=0,Ie=0,Ee=0;Ee>1===C[2*Ee+3]>>1&&(Be=2,Ee+=1),ge<0){for(var ce=-(ge>>1)-1,je=0;je>1)-1;Be===0?A(h,d,be--,ce):Be===1?A(p,y,He--,ce):Be===2&&A(b,v,Ie--,ce)}}}function S(P,M,O,F,U,G,j,W,N,H,re,ae){var me=0,Ce=2*P,Ee=M,de=M+P,te=1,Se=1;F?Se=f:te=f;for(var Te=U;Te>>1;l(C,ge);for(var Be=0,Te=0;Te=f?(je=!F,be-=f):(je=!!F,be-=1),je)L(h,d,Be++,be);else{var rt=ae[be],bt=Ce*be,Ot=re[bt+M+1],it=re[bt+M+1+P];e:for(var Ke=0;Ke>>1;l(C,be);for(var He=0,de=0;de=f)h[He++]=te-f;else{te-=1;var ge=re[te],Be=me*te,ce=H[Be+M+1],je=H[Be+M+1+P];e:for(var rt=0;rt=0;--rt)if(h[rt]===te){for(var Ke=rt+1;Ke0;){for(var E=d.pop(),b=d.pop(),A=-1,L=-1,v=y[b],k=1;k=0||(h.flip(b,E),l(c,h,d,A,b,L),l(c,h,d,b,L,A),l(c,h,d,L,E,A),l(c,h,d,E,A,L))}}}),5023:(function(i,a,o){"use strict";var s=o(2478);i.exports=d;function u(p,y,b,v,C,E,A){this.cells=p,this.neighbor=y,this.flags=v,this.constraint=b,this.active=C,this.next=E,this.boundary=A}var l=u.prototype;function f(p,y){return p[0]-y[0]||p[1]-y[1]||p[2]-y[2]}l.locate=(function(){var p=[0,0,0];return function(y,b,v){var C=y,E=b,A=v;return b0||A.length>0;){for(;E.length>0;){var m=E.pop();if(L[m]!==-C){L[m]=C;for(var P=x[m],M=0;M<3;++M){var O=S[3*m+M];O>=0&&L[O]===0&&(k[3*m+M]?A.push(O):(E.push(O),L[O]=C))}}}var F=A;A=E,E=F,A.length=0,C=-C}var U=h(x,L,y);return b?U.concat(v.boundary):U}}),8902:(function(i,a,o){"use strict";var s=o(2478),u=o(3250)[3],l=0,f=1,c=2;i.exports=A;function h(L,x,k,S,m){this.a=L,this.b=x,this.idx=k,this.lowerIds=S,this.upperIds=m}function d(L,x,k,S){this.a=L,this.b=x,this.type=k,this.idx=S}function p(L,x){var k=L.a[0]-x.a[0]||L.a[1]-x.a[1]||L.type-x.type;return k||L.type!==l&&(k=u(L.a,L.b,x.b),k)?k:L.idx-x.idx}function y(L,x){return u(L.a,L.b,x)}function b(L,x,k,S,m){for(var P=s.lt(x,S,y),M=s.gt(x,S,y),O=P;O1&&u(k[U[j-2]],k[U[j-1]],S)>0;)L.push([U[j-1],U[j-2],m]),j-=1;U.length=j,U.push(m);for(var G=F.upperIds,j=G.length;j>1&&u(k[G[j-2]],k[G[j-1]],S)<0;)L.push([G[j-2],G[j-1],m]),j-=1;G.length=j,G.push(m)}}function v(L,x){var k;return L.a[0]F[0]&&m.push(new d(F,O,c,P),new d(O,F,f,P))}m.sort(p);for(var U=m[0].a[0]-(1+Math.abs(m[0].a[0]))*Math.pow(2,-52),G=[new h([U,1],[U,0],-1,[],[],[],[])],j=[],P=0,W=m.length;P=0}})(),l.removeTriangle=function(h,d,p){var y=this.stars;f(y[h],d,p),f(y[d],p,h),f(y[p],h,d)},l.addTriangle=function(h,d,p){var y=this.stars;y[h].push(d,p),y[d].push(p,h),y[p].push(h,d)},l.opposite=function(h,d){for(var p=this.stars[d],y=1,b=p.length;y=0;--N){var Se=j[N];H=Se[0];var Te=U[H],be=Te[0],He=Te[1],Ie=F[be],ge=F[He];if((Ie[0]-ge[0]||Ie[1]-ge[1])<0){var Be=be;be=He,He=Be}Te[0]=be;var ce=Te[1]=Se[1],je;for(W&&(je=Te[2]);N>0&&j[N-1][0]===H;){var Se=j[--N],rt=Se[1];W?U.push([ce,rt,je]):U.push([ce,rt]),ce=rt}W?U.push([ce,He,je]):U.push([ce,He])}return re}function x(F,U,G){for(var j=U.length,W=new s(j),N=[],H=0;HU[2]?1:0)}function m(F,U,G){if(F.length!==0){if(U)for(var j=0;j0||H.length>0}function O(F,U,G){var j;if(G){j=U;for(var W=new Array(U.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+C.length);Array.isArray(d.alpha)?d.alpha.length!==2?x=[1,1]:x=d.alpha.slice():typeof d.alpha=="number"?x=[d.alpha,d.alpha]:x=[1,1],p=C.map(function(O){return Math.round(O.index*L)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var S=C.map(function(O,F){var U=C[F].index,G=C[F].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=x[0]+(x[1]-x[0])*U),G}),m=[];for(k=0;k=0}function d(p,y,b,v){var C=s(y,b,v);if(C===0){var E=u(s(p,y,b)),A=u(s(p,y,v));if(E===A){if(E===0){var L=h(p,y,b),x=h(p,y,v);return L===x?0:L?1:-1}return 0}else{if(A===0)return E>0||h(p,y,v)?-1:1;if(E===0)return A>0||h(p,y,b)?1:-1}return u(A-E)}var k=s(p,y,b);if(k>0)return C>0&&s(p,y,v)>0?1:-1;if(k<0)return C>0||s(p,y,v)>0?1:-1;var S=s(p,y,v);return S>0||h(p,y,b)?1:-1}}),8572:(function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}}),8507:(function(i){i.exports=s;var a=Math.min;function o(u,l){return u-l}function s(u,l){var f=u.length,c=u.length-l.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-l[0];case 2:return u[0]+u[1]-l[0]-l[1]||a(u[0],u[1])-a(l[0],l[1]);case 3:var h=u[0]+u[1],d=l[0]+l[1];if(c=h+u[2]-(d+l[2]),c)return c;var p=a(u[0],u[1]),y=a(l[0],l[1]);return a(p,u[2])-a(y,l[2])||a(p+u[2],h)-a(y+l[2],d);case 4:var b=u[0],v=u[1],C=u[2],E=u[3],A=l[0],L=l[1],x=l[2],k=l[3];return b+v+C+E-(A+L+x+k)||a(b,v,C,E)-a(A,L,x,k,A)||a(b+v,b+C,b+E,v+C,v+E,C+E)-a(A+L,A+x,A+k,L+x,L+k,x+k)||a(b+v+C,b+v+E,b+C+E,v+C+E)-a(A+L+x,A+L+k,A+x+k,L+x+k);default:for(var S=u.slice().sort(o),m=l.slice().sort(o),P=0;Po[u][0]&&(u=l);return su?[[u],[s]]:[[s]]}}),4750:(function(i,a,o){"use strict";i.exports=u;var s=o(3090);function u(l){var f=s(l),c=f.length;if(c<=2)return[];for(var h=new Array(c),d=f[c-1],p=0;p=d[A]&&(E+=1);v[C]=E}}return h}function c(h,d){try{return s(h,!0)}catch(v){var p=u(h);if(p.length<=d)return[];var y=l(h,p),b=s(y,!0);return f(b,p)}}}),4769:(function(i){"use strict";function a(s,u,l,f,c,h){var d=6*c*c-6*c,p=3*c*c-4*c+1,y=-6*c*c+6*c,b=3*c*c-2*c;if(s.length){h||(h=new Array(s.length));for(var v=s.length-1;v>=0;--v)h[v]=d*s[v]+p*u[v]+y*l[v]+b*f[v];return h}return d*s+p*u+y*l[v]+b*f}function o(s,u,l,f,c,h){var d=c-1,p=c*c,y=d*d,b=(1+2*c)*y,v=c*y,C=p*(3-2*c),E=p*d;if(s.length){h||(h=new Array(s.length));for(var A=s.length-1;A>=0;--A)h[A]=b*s[A]+v*u[A]+C*l[A]+E*f[A];return h}return b*s+v*u+C*l+E*f}i.exports=o,i.exports.derivative=a}),7642:(function(i,a,o){"use strict";var s=o(8954),u=o(1682);i.exports=h;function l(d,p){this.point=d,this.index=p}function f(d,p){for(var y=d.point,b=p.point,v=y.length,C=0;C=2)return!1;G[W]=N}return!0}):U=U.filter(function(G){for(var j=0;j<=b;++j){var W=P[G[j]];if(W<0)return!1;G[j]=W}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(C){var E=i.exports.hi(C);return(E<<1>>>21)-1023},i.exports.fraction=function(C){var E=i.exports.lo(C),A=i.exports.hi(C),L=A&(1<<20)-1;return A&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(C){var E=i.exports.hi(C);return!(E&2146435072)}}),1338:(function(i){"use strict";function a(u,l,f){var c=u[f]|0;if(c<=0)return[];var h=new Array(c),d;if(f===u.length-1)for(d=0;d0)return o(u|0,l);break;case"object":if(typeof u.length=="number")return a(u,l,0);break}return[]}i.exports=s}),3134:(function(i,a,o){"use strict";i.exports=u;var s=o(1682);function u(l,f){var c=l.length;if(typeof f!="number"){f=0;for(var h=0;h=b-1)for(var k=E.length-1,m=p-y[b-1],S=0;S=b-1)for(var x=E.length-1,k=p-y[b-1],S=0;S=0;--b)if(p[--y])return!1;return!0},c.jump=function(p){var y=this.lastT(),b=this.dimension;if(!(p0;--S)v.push(l(L[S-1],x[S-1],arguments[S])),C.push(0)}},c.push=function(p){var y=this.lastT(),b=this.dimension;if(!(p1e-6?1/A:0;this._time.push(p);for(var m=b;m>0;--m){var P=l(x[m-1],k[m-1],arguments[m]);v.push(P),C.push((P-v[E++])*S)}}},c.set=function(p){var y=this.dimension;if(!(p0;--L)b.push(l(E[L-1],A[L-1],arguments[L])),v.push(0)}},c.move=function(p){var y=this.lastT(),b=this.dimension;if(!(p<=y||arguments.length!==b+1)){var v=this._state,C=this._velocity,E=v.length-this.dimension,A=this.bounds,L=A[0],x=A[1],k=p-y,S=k>1e-6?1/k:0;this._time.push(p);for(var m=b;m>0;--m){var P=arguments[m];v.push(l(L[m-1],x[m-1],v[E++]+P)),C.push(P*S)}}},c.idle=function(p){var y=this.lastT();if(!(p=0;--S)v.push(l(L[S],x[S],v[E]+k*C[E])),C.push(0),E+=1}};function h(p){for(var y=new Array(p),b=0;b=0;--F){var m=P[F];M[F]<=0?P[F]=new s(m._color,m.key,m.value,P[F+1],m.right,m._count+1):P[F]=new s(m._color,m.key,m.value,m.left,P[F+1],m._count+1)}for(var F=P.length-1;F>1;--F){var U=P[F-1],m=P[F];if(U._color===o||m._color===o)break;var G=P[F-2];if(G.left===U)if(U.left===m){var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.left=U.right,U._color=o,U.right=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var W=P[F-3];W.left===G?W.left=U:W.right=U}break}}else{var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(U.right=m.left,G._color=a,G.left=m.right,m._color=o,m.left=U,m.right=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var W=P[F-3];W.left===G?W.left=m:W.right=m}break}}else if(U.right===m){var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.right=U.left,U._color=o,U.left=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var W=P[F-3];W.right===G?W.right=U:W.left=U}break}}else{var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(U.left=m.right,G._color=a,G.right=m.left,m._color=o,m.right=U,m.left=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var W=P[F-3];W.right===G?W.right=m:W.left=m}break}}}return P[0]._color=o,new c(S,P[0])};function d(x,k){if(k.left){var S=d(x,k.left);if(S)return S}var S=x(k.key,k.value);if(S)return S;if(k.right)return d(x,k.right)}function p(x,k,S,m){var P=k(x,m.key);if(P<=0){if(m.left){var M=p(x,k,S,m.left);if(M)return M}var M=S(m.key,m.value);if(M)return M}if(m.right)return p(x,k,S,m.right)}function y(x,k,S,m,P){var M=S(x,P.key),O=S(k,P.key),F;if(M<=0&&(P.left&&(F=y(x,k,S,m,P.left),F)||O>0&&(F=m(P.key,P.value),F)))return F;if(O>0&&P.right)return y(x,k,S,m,P.right)}h.forEach=function(k,S,m){if(this.root)switch(arguments.length){case 1:return d(k,this.root);case 2:return p(S,this._compare,k,this.root);case 3:return this._compare(S,m)>=0?void 0:y(S,m,this._compare,k,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],k=this.root;k;)x.push(k),k=k.left;return new b(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],k=this.root;k;)x.push(k),k=k.right;return new b(this,x)}}),h.at=function(x){if(x<0)return new b(this,[]);for(var k=this.root,S=[];;){if(S.push(k),k.left){if(x=k.right._count)break;k=k.right}else break}return new b(this,[])},h.ge=function(x){for(var k=this._compare,S=this.root,m=[],P=0;S;){var M=k(x,S.key);m.push(S),M<=0&&(P=m.length),M<=0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.gt=function(x){for(var k=this._compare,S=this.root,m=[],P=0;S;){var M=k(x,S.key);m.push(S),M<0&&(P=m.length),M<0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.lt=function(x){for(var k=this._compare,S=this.root,m=[],P=0;S;){var M=k(x,S.key);m.push(S),M>0&&(P=m.length),M<=0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.le=function(x){for(var k=this._compare,S=this.root,m=[],P=0;S;){var M=k(x,S.key);m.push(S),M>=0&&(P=m.length),M<0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.find=function(x){for(var k=this._compare,S=this.root,m=[];S;){var P=k(x,S.key);if(m.push(S),P===0)return new b(this,m);P<=0?S=S.left:S=S.right}return new b(this,[])},h.remove=function(x){var k=this.find(x);return k?k.remove():this},h.get=function(x){for(var k=this._compare,S=this.root;S;){var m=k(x,S.key);if(m===0)return S.value;m<=0?S=S.left:S=S.right}};function b(x,k){this.tree=x,this._stack=k}var v=b.prototype;Object.defineProperty(v,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(v,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),v.clone=function(){return new b(this.tree,this._stack.slice())};function C(x,k){x.key=k.key,x.value=k.value,x.left=k.left,x.right=k.right,x._color=k._color,x._count=k._count}function E(x){for(var k,S,m,P,M=x.length-1;M>=0;--M){if(k=x[M],M===0){k._color=o;return}if(S=x[M-1],S.left===k){if(m=S.right,m.right&&m.right._color===a){if(m=S.right=u(m),P=m.right=u(m.right),S.right=m.left,m.left=S,m.right=P,m._color=S._color,k._color=o,S._color=o,P._color=o,f(S),f(m),M>1){var O=x[M-2];O.left===S?O.left=m:O.right=m}x[M-1]=m;return}else if(m.left&&m.left._color===a){if(m=S.right=u(m),P=m.left=u(m.left),S.right=P.left,m.left=P.right,P.left=S,P.right=m,P._color=S._color,S._color=o,m._color=o,k._color=o,f(S),f(m),f(P),M>1){var O=x[M-2];O.left===S?O.left=P:O.right=P}x[M-1]=P;return}if(m._color===o)if(S._color===a){S._color=o,S.right=l(a,m);return}else{S.right=l(a,m);continue}else{if(m=u(m),S.right=m.left,m.left=S,m._color=S._color,S._color=a,f(S),f(m),M>1){var O=x[M-2];O.left===S?O.left=m:O.right=m}x[M-1]=m,x[M]=S,M+11){var O=x[M-2];O.right===S?O.right=m:O.left=m}x[M-1]=m;return}else if(m.right&&m.right._color===a){if(m=S.left=u(m),P=m.right=u(m.right),S.left=P.right,m.right=P.left,P.right=S,P.left=m,P._color=S._color,S._color=o,m._color=o,k._color=o,f(S),f(m),f(P),M>1){var O=x[M-2];O.right===S?O.right=P:O.left=P}x[M-1]=P;return}if(m._color===o)if(S._color===a){S._color=o,S.left=l(a,m);return}else{S.left=l(a,m);continue}else{if(m=u(m),S.left=m.right,m.right=S,m._color=S._color,S._color=a,f(S),f(m),M>1){var O=x[M-2];O.right===S?O.right=m:O.left=m}x[M-1]=m,x[M]=S,M+1=0;--m){var S=x[m];S.left===x[m+1]?k[m]=new s(S._color,S.key,S.value,k[m+1],S.right,S._count):k[m]=new s(S._color,S.key,S.value,S.left,k[m+1],S._count)}if(S=k[k.length-1],S.left&&S.right){var P=k.length;for(S=S.left;S.right;)k.push(S),S=S.right;var M=k[P-1];k.push(new s(S._color,M.key,M.value,S.left,S.right,S._count)),k[P-1].key=S.key,k[P-1].value=S.value;for(var m=k.length-2;m>=P;--m)S=k[m],k[m]=new s(S._color,S.key,S.value,S.left,k[m+1],S._count);k[P-1].left=k[P]}if(S=k[k.length-1],S._color===a){var O=k[k.length-2];O.left===S?O.left=null:O.right===S&&(O.right=null),k.pop();for(var m=0;m0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(v,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(v,"index",{get:function(){var x=0,k=this._stack;if(k.length===0){var S=this.tree.root;return S?S._count:0}else k[k.length-1].left&&(x=k[k.length-1].left._count);for(var m=k.length-2;m>=0;--m)k[m+1]===k[m].right&&(++x,k[m].left&&(x+=k[m].left._count));return x},enumerable:!0}),v.next=function(){var x=this._stack;if(x.length!==0){var k=x[x.length-1];if(k.right)for(k=k.right;k;)x.push(k),k=k.left;else for(x.pop();x.length>0&&x[x.length-1].right===k;)k=x[x.length-1],x.pop()}},Object.defineProperty(v,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var k=x.length-1;k>0;--k)if(x[k-1].left===x[k])return!0;return!1}}),v.update=function(x){var k=this._stack;if(k.length===0)throw new Error("Can't update empty node!");var S=new Array(k.length),m=k[k.length-1];S[S.length-1]=new s(m._color,m.key,x,m.left,m.right,m._count);for(var P=k.length-2;P>=0;--P)m=k[P],m.left===k[P+1]?S[P]=new s(m._color,m.key,m.value,S[P+1],m.right,m._count):S[P]=new s(m._color,m.key,m.value,m.left,S[P+1],m._count);return new c(this.tree._compare,S[0])},v.prev=function(){var x=this._stack;if(x.length!==0){var k=x[x.length-1];if(k.left)for(k=k.left;k;)x.push(k),k=k.right;else for(x.pop();x.length>0&&x[x.length-1].left===k;)k=x[x.length-1],x.pop()}},Object.defineProperty(v,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var k=x.length-1;k>0;--k)if(x[k-1].right===x[k])return!0;return!1}});function A(x,k){return xk?1:0}function L(x){return new c(x||A,null)}}),3837:(function(i,a,o){"use strict";i.exports=F;var s=o(4935),u=o(501),l=o(5304),f=o(6429),c=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,p=DataView;function y(U){return d.isView(U)&&!(U instanceof p)}function b(U){return Array.isArray(U)||y(U)}function v(U,G){return U[0]=G[0],U[1]=G[1],U[2]=G[2],U}function C(U){this.gl=U,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=l(U)}var E=C.prototype;E.update=function(U){U=U||{};function G(be,He,Ie){if(Ie in U){var ge=U[Ie],Be=this[Ie],ce;(be?b(ge)&&b(ge[0]):b(ge))?this[Ie]=ce=[He(ge[0]),He(ge[1]),He(ge[2])]:this[Ie]=ce=[He(ge),He(ge),He(ge)];for(var je=0;je<3;++je)if(ce[je]!==Be[je])return!0}return!1}var j=G.bind(this,!1,Number),W=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),H=G.bind(this,!0,function(be){if(b(be)){if(be.length===3)return[+be[0],+be[1],+be[2],1];if(be.length===4)return[+be[0],+be[1],+be[2],+be[3]]}return[0,0,0,1]}),re,ae=!1,me=!1;if("bounds"in U)for(var Ce=U.bounds,Ee=0;Ee<2;++Ee)for(var de=0;de<3;++de)Ce[Ee][de]!==this.bounds[Ee][de]&&(me=!0),this.bounds[Ee][de]=Ce[Ee][de];if("ticks"in U){re=U.ticks,ae=!0,this.autoTicks=!1;for(var Ee=0;Ee<3;++Ee)this.tickSpacing[Ee]=0}else j("tickSpacing")&&(this.autoTicks=!0,me=!0);if(this._firstInit&&("ticks"in U||"tickSpacing"in U||(this.autoTicks=!0),me=!0,ae=!0,this._firstInit=!1),me&&this.autoTicks&&(re=c.create(this.bounds,this.tickSpacing),ae=!0),ae){for(var Ee=0;Ee<3;++Ee)re[Ee].sort(function(He,Ie){return He.x-Ie.x});c.equal(re,this.ticks)?ae=!1:this.ticks=re}W("tickEnable"),N("tickFont")&&(ae=!0),N("tickFontStyle")&&(ae=!0),N("tickFontWeight")&&(ae=!0),N("tickFontVariant")&&(ae=!0),j("tickSize"),j("tickAngle"),j("tickPad"),H("tickColor");var te=N("labels");N("labelFont")&&(te=!0),N("labelFontStyle")&&(te=!0),N("labelFontWeight")&&(te=!0),N("labelFontVariant")&&(te=!0),W("labelEnable"),j("labelSize"),j("labelPad"),H("labelColor"),W("lineEnable"),W("lineMirror"),j("lineWidth"),H("lineColor"),W("lineTickEnable"),W("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),H("lineTickColor"),W("gridEnable"),j("gridWidth"),H("gridColor"),W("zeroEnable"),H("zeroLineColor"),j("zeroLineWidth"),W("backgroundEnable"),H("backgroundColor");var Se=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Te=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(te||ae)&&this._text.update(this.bounds,this.labels,Se,this.ticks,Te):this._text=s(this.gl,this.bounds,this.labels,Se,this.ticks,Te),this._lines&&ae&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function A(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new A,new A,new A];function x(U,G,j,W,N){for(var H=U.primalOffset,re=U.primalMinor,ae=U.mirrorOffset,me=U.mirrorMinor,Ce=W[G],Ee=0;Ee<3;++Ee)if(G!==Ee){var de=H,te=ae,Se=re,Te=me;Ce&1<0?(Se[Ee]=-1,Te[Ee]=0):(Se[Ee]=0,Te[Ee]=1)}}var k=[0,0,0],S={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(U){};var m=0,P=[0,0,0],M=[0,0,0],O=[0,0,0];E.draw=function(U){U=U||S;for(var Ie=this.gl,G=U.model||h,j=U.view||h,W=U.projection||h,N=this.bounds,H=U._ortho||!1,re=f(G,j,W,N,H),ae=re.cubeEdges,me=re.axis,Ce=j[12],Ee=j[13],de=j[14],te=j[15],Se=H?2:1,Te=Se*this.pixelRatio*(W[3]*Ce+W[7]*Ee+W[11]*de+W[15]*te)/Ie.drawingBufferHeight,be=0;be<3;++be)this.lastCubeProps.cubeEdges[be]=ae[be],this.lastCubeProps.axis[be]=me[be];for(var He=L,be=0;be<3;++be)x(L[be],be,this.bounds,ae,me);for(var Ie=this.gl,ge=k,be=0;be<3;++be)this.backgroundEnable[be]?ge[be]=me[be]:ge[be]=0;this._background.draw(G,j,W,N,ge,this.backgroundColor),this._lines.bind(G,j,W,this);for(var be=0;be<3;++be){var Be=[0,0,0];me[be]>0?Be[be]=N[1][be]:Be[be]=N[0][be];for(var ce=0;ce<2;++ce){var je=(be+1+ce)%3,rt=(be+1+(ce^1))%3;this.gridEnable[je]&&this._lines.drawGrid(je,rt,this.bounds,Be,this.gridColor[je],this.gridWidth[je]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var je=(be+1+ce)%3,rt=(be+1+(ce^1))%3;this.zeroEnable[rt]&&Math.min(N[0][rt],N[1][rt])<=0&&Math.max(N[0][rt],N[1][rt])>=0&&this._lines.drawZero(je,rt,this.bounds,Be,this.zeroLineColor[rt],this.zeroLineWidth[rt]*this.pixelRatio)}}for(var be=0;be<3;++be){this.lineEnable[be]&&this._lines.drawAxisLine(be,this.bounds,He[be].primalOffset,this.lineColor[be],this.lineWidth[be]*this.pixelRatio),this.lineMirror[be]&&this._lines.drawAxisLine(be,this.bounds,He[be].mirrorOffset,this.lineColor[be],this.lineWidth[be]*this.pixelRatio);for(var bt=v(P,He[be].primalMinor),Ot=v(M,He[be].mirrorMinor),it=this.lineTickLength,ce=0;ce<3;++ce){var Ke=Te/G[5*ce];bt[ce]*=it[ce]*Ke,Ot[ce]*=it[ce]*Ke}this.lineTickEnable[be]&&this._lines.drawAxisTicks(be,He[be].primalOffset,bt,this.lineTickColor[be],this.lineTickWidth[be]*this.pixelRatio),this.lineTickMirror[be]&&this._lines.drawAxisTicks(be,He[be].mirrorOffset,Ot,this.lineTickColor[be],this.lineTickWidth[be]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,j,W,this.pixelRatio);var zt,Mt=.5,kt,$e;function Re(We){$e=[0,0,0],$e[We]=1}function Me(We,Ve,et){var tt=(We+1)%3,Lt=(We+2)%3,jt=Ve[tt],or=Ve[Lt],yr=et[tt],vr=et[Lt];if(jt>0&&vr>0){Re(tt);return}else if(jt>0&&vr<0){Re(tt);return}else if(jt<0&&vr>0){Re(tt);return}else if(jt<0&&vr<0){Re(tt);return}else if(or>0&&yr>0){Re(Lt);return}else if(or>0&&yr<0){Re(Lt);return}else if(or<0&&yr>0){Re(Lt);return}else if(or<0&&yr<0){Re(Lt);return}}for(var be=0;be<3;++be){for(var oe=He[be].primalMinor,Ne=He[be].mirrorMinor,vt=v(O,He[be].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[be]&&(vt[ce]+=Te*oe[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var lt=[0,0,0];if(lt[be]=1,this.tickEnable[be]){this.tickAngle[be]===-3600?(this.tickAngle[be]=0,this.tickAlign[be]="auto"):this.tickAlign[be]=-1,kt=1,zt=[this.tickAlign[be],Mt,kt],zt[0]==="auto"?zt[0]=m:zt[0]=parseInt(""+zt[0]),$e=[0,0,0],Me(be,oe,Ne);for(var ce=0;ce<3;++ce)vt[ce]+=Te*oe[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(be,this.tickSize[be],this.tickAngle[be],vt,this.tickColor[be],lt,$e,zt)}if(this.labelEnable[be]){kt=0,$e=[0,0,0],this.labels[be].length>4&&(Re(be),kt=1),zt=[this.labelAlign[be],Mt,kt],zt[0]==="auto"?zt[0]=m:zt[0]=parseInt(""+zt[0]);for(var ce=0;ce<3;++ce)vt[ce]+=Te*oe[ce]*this.labelPad[ce]/G[5*ce];vt[be]+=.5*(N[0][be]+N[1][be]),this._text.drawLabel(be,this.labelSize[be],this.labelAngle[be],vt,this.labelColor[be],[0,0,0],$e,zt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function F(U,G){var j=new C(U);return j.update(G),j}}),5304:(function(i,a,o){"use strict";i.exports=h;var s=o(2762),u=o(8116),l=o(1879).bg;function f(d,p,y,b){this.gl=d,this.buffer=p,this.vao=y,this.shader=b}var c=f.prototype;c.draw=function(d,p,y,b,v,C){for(var E=!1,A=0;A<3;++A)E=E||v[A];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:p,projection:y,bounds:b,enable:v,colors:C},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var p=[],y=[],b=0,v=0;v<3;++v)for(var C=(v+1)%3,E=(v+2)%3,A=[0,0,0],L=[0,0,0],x=-1;x<=1;x+=2){y.push(b,b+2,b+1,b+1,b+2,b+3),A[v]=x,L[v]=x;for(var k=-1;k<=1;k+=2){A[C]=k;for(var S=-1;S<=1;S+=2)A[E]=S,p.push(A[0],A[1],A[2],L[0],L[1],L[2]),b+=1}var m=C;C=E,E=m}var P=s(d,new Float32Array(p)),M=s(d,new Uint16Array(y),d.ELEMENT_ARRAY_BUFFER),O=u(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],M),F=l(d);return F.attributes.position.location=0,F.attributes.normal.location=1,new f(d,P,O,F)}}),6429:(function(i,a,o){"use strict";i.exports=x;var s=o(8828),u=o(6760),l=o(5202),f=o(3250),c=new Array(16),h=new Array(8),d=new Array(8),p=new Array(3),y=[0,0,0];(function(){for(var k=0;k<8;++k)h[k]=[1,1,1,1],d[k]=[1,1,1]})();function b(k,S,m){for(var P=0;P<4;++P){k[P]=m[12+P];for(var M=0;M<3;++M)k[P]+=S[M]*m[4*M+P]}}var v=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function C(k){for(var S=0;Sme&&(j|=1<me){j|=1<d[F][1])&&(He=F);for(var Ie=-1,F=0;F<3;++F){var ge=He^1<d[Be][0]&&(Be=ge)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Ie^He)]=He&Ie,ce[s.log2(He^Be)]=He&Be;var je=Be^7;je===j||je===be?(je=Ie^7,ce[s.log2(Be^je)]=je&Be):ce[s.log2(Ie^je)]=je&Ie;for(var rt=A,bt=j,H=0;H<3;++H)bt&1<=0;--ce){var je=be[Be[ce]];S.push(Te*je[0],-Te*je[1],H)}}for(var P=[0,0,0],E=[0,0,0],O=[0,0,0],F=[0,0,0],U=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},j=0;j<3;++j){O[j]=S.length/d|0,m(.5*(M[0][j]+M[1][j]),A[j],L[j],12,U,G),F[j]=(S.length/d|0)-O[j],P[j]=S.length/d|0;for(var W=0;W=0&&(d=c.length-h-1);var p=Math.pow(10,d),y=Math.round(l*f*p),b=y+"";if(b.indexOf("e")>=0)return b;var v=y/p,C=y%p;y<0?(v=-Math.ceil(v)|0,C=-C|0):(v=Math.floor(v)|0,C=C|0);var M=""+v;if(y<0&&(M="-"+M),d){for(var A=""+C;A.length=l[0][h];--y)d.push({x:y*f[h],text:o(f[h],y)});c.push(d)}return c}function u(l,f){for(var c=0;c<3;++c){if(l[c].length!==f[c].length)return!1;for(var h=0;hM)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return v.bufferSubData(C,x,L),M}function p(v,C){for(var M=s.malloc(v.length,C),A=v.length,L=0;L=0;--A){if(C[A]!==M)return!1;M*=v[A]}return!0}h.update=function(v,C){if(typeof C!="number"&&(C=-1),this.bind(),typeof v=="object"&&typeof v.shape!="undefined"){var M=v.dtype;if(f.indexOf(M)<0&&(M="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var A=gl.getExtension("OES_element_index_uint");A&&M!=="uint16"?M="uint32":M="uint16"}if(M===v.dtype&&y(v.shape,v.stride))v.offset===0&&v.data.length===v.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,v.data,C):this.length=d(this.gl,this.type,this.length,this.usage,v.data.subarray(v.offset,v.shape[0]),C);else{var L=s.malloc(v.size,M),x=l(L,v.shape);u.assign(x,v),C<0?this.length=d(this.gl,this.type,this.length,this.usage,L,C):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,v.size),C),s.free(L)}}else if(Array.isArray(v)){var k;this.type===this.gl.ELEMENT_ARRAY_BUFFER?k=p(v,"uint16"):k=p(v,"float32"),C<0?this.length=d(this.gl,this.type,this.length,this.usage,k,C):this.length=d(this.gl,this.type,this.length,this.usage,k.subarray(0,v.length),C),s.free(k)}else if(typeof v=="object"&&typeof v.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,v,C);else if(typeof v=="number"||v===void 0){if(C>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");v=v|0,v<=0&&(v=1),this.gl.bufferData(this.type,v|0,this.usage),this.length=v}else throw new Error("gl-buffer: Invalid data type")};function b(v,C,M,A){if(M=M||v.ARRAY_BUFFER,A=A||v.DYNAMIC_DRAW,M!==v.ARRAY_BUFFER&&M!==v.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(A!==v.DYNAMIC_DRAW&&A!==v.STATIC_DRAW&&A!==v.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=v.createBuffer(),x=new c(v,M,L,0,A);return x.update(C),x}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(l,f){var c=l.positions,h=l.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:l.vertexIntensityBounds,vectors:[],cells:[],coneOffset:l.coneOffset,colormap:l.colormap};if(l.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),d;for(var p=0,y=1/0,b=-1/0,v=1/0,C=-1/0,M=1/0,A=-1/0,L=null,x=null,k=[],S=1/0,m=!1,P=l.coneSizemode==="raw",E=0;Ep&&(p=s.length(F)),E&&!P){var U=2*s.distance(L,O)/(s.length(x)+s.length(F));U?(S=Math.min(S,U),m=!1):m=!0}m||(L=O,x=F),k.push(F)}var G=[y,v,M],j=[b,C,A];f&&(f[0]=G,f[1]=j),p===0&&(p=1);var W=1/p;isFinite(S)||(S=1),d.vectorScale=S;var N=l.coneSize||(P?1:.5);l.absoluteConeSize&&(N=l.absoluteConeSize*W),d.coneScale=N;for(var E=0,H=0;E=1},v.isTransparent=function(){return this.opacity<1},v.pickSlots=1,v.setPickBase=function(k){this.pickId=k};function C(k){for(var S=p({colormap:k,nshades:256,format:"rgba"}),m=new Uint8Array(256*4),P=0;P<256;++P){for(var E=S[P],O=0;O<3;++O)m[4*P+O]=E[O];m[4*P+3]=E[3]*255}return d(m,[256,256,4],[4,0,1])}function M(k){for(var S=k.length,m=new Array(S),P=0;P0){var H=this.triShader;H.bind(),H.uniforms=U,this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},v.drawPick=function(k){k=k||{};for(var S=this.gl,m=k.model||y,P=k.view||y,E=k.projection||y,O=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],F=0;F<3;++F)O[0][F]=Math.max(O[0][F],this.clipBounds[0][F]),O[1][F]=Math.min(O[1][F],this.clipBounds[1][F]);this._model=[].slice.call(m),this._view=[].slice.call(P),this._projection=[].slice.call(E),this._resolution=[S.drawingBufferWidth,S.drawingBufferHeight];var U={model:m,view:P,projection:E,clipBounds:O,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=U,this.triangleCount>0&&(this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},v.pick=function(k){if(!k||k.id!==this.pickId)return null;var S=k.value[0]+256*k.value[1]+65536*k.value[2],m=this.cells[S],P=this.positions[m[1]].slice(0,3),E={position:P,dataCoordinate:P,index:Math.floor(m[1]/48)};return this.traceType==="cone"?E.index=Math.floor(m[1]/48):this.traceType==="streamtube"&&(E.intensity=this.intensity[m[1]],E.velocity=this.vectors[m[1]].slice(0,3),E.divergence=this.vectors[m[1]][3],E.index=S),E},v.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(k,S){var m=s(k,S.meshShader.vertex,S.meshShader.fragment,null,S.meshShader.attributes);return m.attributes.position.location=0,m.attributes.color.location=2,m.attributes.uv.location=3,m.attributes.vector.location=4,m}function L(k,S){var m=s(k,S.pickShader.vertex,S.pickShader.fragment,null,S.pickShader.attributes);return m.attributes.position.location=0,m.attributes.id.location=1,m.attributes.vector.location=4,m}function x(k,S,m){var P=m.shaders;arguments.length===1&&(S=k,k=S.gl);var E=A(k,P),O=L(k,P),F=f(k,d(new Uint8Array([255,255,255,255]),[1,1,4]));F.generateMipmap(),F.minFilter=k.LINEAR_MIPMAP_LINEAR,F.magFilter=k.LINEAR;var U=u(k),G=u(k),j=u(k),W=u(k),N=u(k),H=l(k,[{buffer:U,type:k.FLOAT,size:4},{buffer:N,type:k.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:j,type:k.FLOAT,size:4},{buffer:W,type:k.FLOAT,size:2},{buffer:G,type:k.FLOAT,size:4}]),re=new b(k,F,E,O,U,G,N,j,W,H,m.traceType||"cone");return re.update(S),re}i.exports=x},614:function(i,a,o){var s=o(3236),u=s([`precision highp float; +}`]);a.bg=function(y){return u(y,d,p,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}}),4935:(function(i,a,o){"use strict";i.exports=C;var s=o(2762),u=o(8116),l=o(4359),f=o(1879).Q,c=window||process.global||{},h=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var d=3;function p(E,A,L,x){this.gl=E,this.shader=A,this.buffer=L,this.vao=x,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var y=p.prototype,b=[0,0];y.bind=function(E,A,L,x){this.vao.bind(),this.shader.bind();var k=this.shader.uniforms;k.model=E,k.view=A,k.projection=L,k.pixelScale=x,b[0]=this.gl.drawingBufferWidth,b[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=b},y.unbind=function(){this.vao.unbind()},y.update=function(E,A,L,x,k){var S=[];function m(H,re,ae,me,Ce,Ee){var de=[ae.style,ae.weight,ae.variant,ae.family].join("_"),te=h[de];te||(te=h[de]={});var Se=te[re];Se||(Se=te[re]=v(re,{triangles:!0,font:ae.family,fontStyle:ae.style,fontWeight:ae.weight,fontVariant:ae.variant,textAlign:"center",textBaseline:"middle",lineSpacing:Ce,styletags:Ee}));for(var Te=(me||12)/12,be=Se.positions,He=Se.cells,Ie=0,ge=He.length;Ie=0;--ce){var je=be[Be[ce]];S.push(Te*je[0],-Te*je[1],H)}}for(var P=[0,0,0],M=[0,0,0],O=[0,0,0],F=[0,0,0],U=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},j=0;j<3;++j){O[j]=S.length/d|0,m(.5*(E[0][j]+E[1][j]),A[j],L[j],12,U,G),F[j]=(S.length/d|0)-O[j],P[j]=S.length/d|0;for(var W=0;W=0&&(d=c.length-h-1);var p=Math.pow(10,d),y=Math.round(l*f*p),b=y+"";if(b.indexOf("e")>=0)return b;var v=y/p,C=y%p;y<0?(v=-Math.ceil(v)|0,C=-C|0):(v=Math.floor(v)|0,C=C|0);var E=""+v;if(y<0&&(E="-"+E),d){for(var A=""+C;A.length=l[0][h];--y)d.push({x:y*f[h],text:o(f[h],y)});c.push(d)}return c}function u(l,f){for(var c=0;c<3;++c){if(l[c].length!==f[c].length)return!1;for(var h=0;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return v.bufferSubData(C,x,L),E}function p(v,C){for(var E=s.malloc(v.length,C),A=v.length,L=0;L=0;--A){if(C[A]!==E)return!1;E*=v[A]}return!0}h.update=function(v,C){if(typeof C!="number"&&(C=-1),this.bind(),typeof v=="object"&&typeof v.shape!="undefined"){var E=v.dtype;if(f.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var A=gl.getExtension("OES_element_index_uint");A&&E!=="uint16"?E="uint32":E="uint16"}if(E===v.dtype&&y(v.shape,v.stride))v.offset===0&&v.data.length===v.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,v.data,C):this.length=d(this.gl,this.type,this.length,this.usage,v.data.subarray(v.offset,v.shape[0]),C);else{var L=s.malloc(v.size,E),x=l(L,v.shape);u.assign(x,v),C<0?this.length=d(this.gl,this.type,this.length,this.usage,L,C):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,v.size),C),s.free(L)}}else if(Array.isArray(v)){var k;this.type===this.gl.ELEMENT_ARRAY_BUFFER?k=p(v,"uint16"):k=p(v,"float32"),C<0?this.length=d(this.gl,this.type,this.length,this.usage,k,C):this.length=d(this.gl,this.type,this.length,this.usage,k.subarray(0,v.length),C),s.free(k)}else if(typeof v=="object"&&typeof v.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,v,C);else if(typeof v=="number"||v===void 0){if(C>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");v=v|0,v<=0&&(v=1),this.gl.bufferData(this.type,v|0,this.usage),this.length=v}else throw new Error("gl-buffer: Invalid data type")};function b(v,C,E,A){if(E=E||v.ARRAY_BUFFER,A=A||v.DYNAMIC_DRAW,E!==v.ARRAY_BUFFER&&E!==v.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(A!==v.DYNAMIC_DRAW&&A!==v.STATIC_DRAW&&A!==v.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=v.createBuffer(),x=new c(v,E,L,0,A);return x.update(C),x}i.exports=b}),6405:(function(i,a,o){"use strict";var s=o(2931);i.exports=function(l,f){var c=l.positions,h=l.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:l.vertexIntensityBounds,vectors:[],cells:[],coneOffset:l.coneOffset,colormap:l.colormap};if(l.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),d;for(var p=0,y=1/0,b=-1/0,v=1/0,C=-1/0,E=1/0,A=-1/0,L=null,x=null,k=[],S=1/0,m=!1,P=l.coneSizemode==="raw",M=0;Mp&&(p=s.length(F)),M&&!P){var U=2*s.distance(L,O)/(s.length(x)+s.length(F));U?(S=Math.min(S,U),m=!1):m=!0}m||(L=O,x=F),k.push(F)}var G=[y,v,E],j=[b,C,A];f&&(f[0]=G,f[1]=j),p===0&&(p=1);var W=1/p;isFinite(S)||(S=1),d.vectorScale=S;var N=l.coneSize||(P?1:.5);l.absoluteConeSize&&(N=l.absoluteConeSize*W),d.coneScale=N;for(var M=0,H=0;M=1},v.isTransparent=function(){return this.opacity<1},v.pickSlots=1,v.setPickBase=function(k){this.pickId=k};function C(k){for(var S=p({colormap:k,nshades:256,format:"rgba"}),m=new Uint8Array(256*4),P=0;P<256;++P){for(var M=S[P],O=0;O<3;++O)m[4*P+O]=M[O];m[4*P+3]=M[3]*255}return d(m,[256,256,4],[4,0,1])}function E(k){for(var S=k.length,m=new Array(S),P=0;P0){var H=this.triShader;H.bind(),H.uniforms=U,this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},v.drawPick=function(k){k=k||{};for(var S=this.gl,m=k.model||y,P=k.view||y,M=k.projection||y,O=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],F=0;F<3;++F)O[0][F]=Math.max(O[0][F],this.clipBounds[0][F]),O[1][F]=Math.min(O[1][F],this.clipBounds[1][F]);this._model=[].slice.call(m),this._view=[].slice.call(P),this._projection=[].slice.call(M),this._resolution=[S.drawingBufferWidth,S.drawingBufferHeight];var U={model:m,view:P,projection:M,clipBounds:O,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=U,this.triangleCount>0&&(this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},v.pick=function(k){if(!k||k.id!==this.pickId)return null;var S=k.value[0]+256*k.value[1]+65536*k.value[2],m=this.cells[S],P=this.positions[m[1]].slice(0,3),M={position:P,dataCoordinate:P,index:Math.floor(m[1]/48)};return this.traceType==="cone"?M.index=Math.floor(m[1]/48):this.traceType==="streamtube"&&(M.intensity=this.intensity[m[1]],M.velocity=this.vectors[m[1]].slice(0,3),M.divergence=this.vectors[m[1]][3],M.index=S),M},v.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(k,S){var m=s(k,S.meshShader.vertex,S.meshShader.fragment,null,S.meshShader.attributes);return m.attributes.position.location=0,m.attributes.color.location=2,m.attributes.uv.location=3,m.attributes.vector.location=4,m}function L(k,S){var m=s(k,S.pickShader.vertex,S.pickShader.fragment,null,S.pickShader.attributes);return m.attributes.position.location=0,m.attributes.id.location=1,m.attributes.vector.location=4,m}function x(k,S,m){var P=m.shaders;arguments.length===1&&(S=k,k=S.gl);var M=A(k,P),O=L(k,P),F=f(k,d(new Uint8Array([255,255,255,255]),[1,1,4]));F.generateMipmap(),F.minFilter=k.LINEAR_MIPMAP_LINEAR,F.magFilter=k.LINEAR;var U=u(k),G=u(k),j=u(k),W=u(k),N=u(k),H=l(k,[{buffer:U,type:k.FLOAT,size:4},{buffer:N,type:k.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:j,type:k.FLOAT,size:4},{buffer:W,type:k.FLOAT,size:2},{buffer:G,type:k.FLOAT,size:4}]),re=new b(k,F,M,O,U,G,N,j,W,H,m.traceType||"cone");return re.update(S),re}i.exports=x}),614:(function(i,a,o){var s=o(3236),u=s([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -653,7 +653,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(i,a,o){var s=o(737);i.exports=function(l){return s[l]}},9165:function(i,a,o){"use strict";i.exports=b;var s=o(2762),u=o(8116),l=o(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(v,C,M,A){this.gl=v,this.shader=A,this.buffer=C,this.vao=M,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=c.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(v){var C=this.gl,M=this.shader.uniforms;this.shader.bind();var A=M.view=v.view||f,L=M.projection=v.projection||f;M.model=v.model||f,M.clipBounds=this.clipBounds,M.opacity=this.opacity;var x=A[12],k=A[13],S=A[14],m=A[15],P=v._ortho||!1,E=P?2:1,O=E*this.pixelRatio*(L[3]*x+L[7]*k+L[11]*S+L[15]*m)/C.drawingBufferHeight;this.vao.bind();for(var F=0;F<3;++F)C.lineWidth(this.lineWidth[F]*this.pixelRatio),M.capSize=this.capSize[F]*O,this.lineCount[F]&&C.drawArrays(C.LINES,this.lineOffset[F],this.lineCount[F]);this.vao.unbind()};function d(v,C){for(var M=0;M<3;++M)v[0][M]=Math.min(v[0][M],C[M]),v[1][M]=Math.max(v[1][M],C[M])}var p=function(){for(var v=new Array(3),C=0;C<3;++C){for(var M=[],A=1;A<=2;++A)for(var L=-1;L<=1;L+=2){var x=(A+C)%3,k=[0,0,0];k[x]=L,M.push(k)}v[C]=M}return v}();function y(v,C,M,A){for(var L=p[A],x=0;x0){var U=P.slice();U[S]+=O[1][S],L.push(P[0],P[1],P[2],F[0],F[1],F[2],F[3],0,0,0,U[0],U[1],U[2],F[0],F[1],F[2],F[3],0,0,0),d(this.bounds,U),k+=2+y(L,U,F,S)}}}this.lineCount[S]=k-this.lineOffset[S]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(v){var C=v.gl,M=s(C),A=u(C,[{buffer:M,type:C.FLOAT,size:3,offset:0,stride:40},{buffer:M,type:C.FLOAT,size:4,offset:12,stride:40},{buffer:M,type:C.FLOAT,size:3,offset:28,stride:40}]),L=l(C);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var x=new c(C,M,A,L);return x.update(v),x}},3436:function(i,a,o){"use strict";var s=o(3236),u=o(9405),l=s([`precision highp float; +}`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}}),737:(function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}}),5171:(function(i,a,o){var s=o(737);i.exports=function(l){return s[l]}}),9165:(function(i,a,o){"use strict";i.exports=b;var s=o(2762),u=o(8116),l=o(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(v,C,E,A){this.gl=v,this.shader=A,this.buffer=C,this.vao=E,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=c.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(v){var C=this.gl,E=this.shader.uniforms;this.shader.bind();var A=E.view=v.view||f,L=E.projection=v.projection||f;E.model=v.model||f,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var x=A[12],k=A[13],S=A[14],m=A[15],P=v._ortho||!1,M=P?2:1,O=M*this.pixelRatio*(L[3]*x+L[7]*k+L[11]*S+L[15]*m)/C.drawingBufferHeight;this.vao.bind();for(var F=0;F<3;++F)C.lineWidth(this.lineWidth[F]*this.pixelRatio),E.capSize=this.capSize[F]*O,this.lineCount[F]&&C.drawArrays(C.LINES,this.lineOffset[F],this.lineCount[F]);this.vao.unbind()};function d(v,C){for(var E=0;E<3;++E)v[0][E]=Math.min(v[0][E],C[E]),v[1][E]=Math.max(v[1][E],C[E])}var p=(function(){for(var v=new Array(3),C=0;C<3;++C){for(var E=[],A=1;A<=2;++A)for(var L=-1;L<=1;L+=2){var x=(A+C)%3,k=[0,0,0];k[x]=L,E.push(k)}v[C]=E}return v})();function y(v,C,E,A){for(var L=p[A],x=0;x0){var U=P.slice();U[S]+=O[1][S],L.push(P[0],P[1],P[2],F[0],F[1],F[2],F[3],0,0,0,U[0],U[1],U[2],F[0],F[1],F[2],F[3],0,0,0),d(this.bounds,U),k+=2+y(L,U,F,S)}}}this.lineCount[S]=k-this.lineOffset[S]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(v){var C=v.gl,E=s(C),A=u(C,[{buffer:E,type:C.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:C.FLOAT,size:4,offset:12,stride:40},{buffer:E,type:C.FLOAT,size:3,offset:28,stride:40}]),L=l(C);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var x=new c(C,E,A,L);return x.update(v),x}}),3436:(function(i,a,o){"use strict";var s=o(3236),u=o(9405),l=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -704,13 +704,13 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);i.exports=function(c){return u(c,l,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(i,a,o){"use strict";var s=o(7766);i.exports=k;var u=null,l,f,c,h;function d(S){var m=S.getParameter(S.FRAMEBUFFER_BINDING),P=S.getParameter(S.RENDERBUFFER_BINDING),E=S.getParameter(S.TEXTURE_BINDING_2D);return[m,P,E]}function p(S,m){S.bindFramebuffer(S.FRAMEBUFFER,m[0]),S.bindRenderbuffer(S.RENDERBUFFER,m[1]),S.bindTexture(S.TEXTURE_2D,m[2])}function y(S,m){var P=S.getParameter(m.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(P+1);for(var E=0;E<=P;++E){for(var O=new Array(P),F=0;F1&&G.drawBuffersWEBGL(u[U]);var re=P.getExtension("WEBGL_depth_texture");re?j?S.depth=v(P,O,F,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):W&&(S.depth=v(P,O,F,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):W&&j?S._depth_rb=C(P,O,F,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):W?S._depth_rb=C(P,O,F,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):j&&(S._depth_rb=C(P,O,F,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var ae=P.checkFramebufferStatus(P.FRAMEBUFFER);if(ae!==P.FRAMEBUFFER_COMPLETE){S._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(S.handle),S.handle=null,S.depth&&(S.depth.dispose(),S.depth=null),S._depth_rb&&(P.deleteRenderbuffer(S._depth_rb),S._depth_rb=null);for(var H=0;HO||P<0||P>O)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");S._shape[0]=m,S._shape[1]=P;for(var F=d(E),U=0;UF||P<0||P>F)throw new Error("gl-fbo: Parameters are too large for FBO");E=E||{};var U=1;if("color"in E){if(U=Math.max(E.color|0,0),U<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(U>1)if(O){if(U>S.getParameter(O.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+U+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=S.UNSIGNED_BYTE,j=S.getExtension("OES_texture_float");if(E.float&&U>0){if(!j)throw new Error("gl-fbo: Context does not support floating point textures");G=S.FLOAT}else E.preferFloat&&U>0&&j&&(G=S.FLOAT);var W=!0;"depth"in E&&(W=!!E.depth);var N=!1;return"stencil"in E&&(N=!!E.stencil),new A(S,m,P,G,U,W,N,O)}},2992:function(i,a,o){var s=o(3387).sprintf,u=o(5171),l=o(1848),f=o(1085);i.exports=c;function c(h,d,p){"use strict";var y=l(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";p!==void 0&&(b=p===u.FRAGMENT_SHADER?"fragment":"vertex");for(var v=s(`Error compiling %s shader %s: -`,b,y),C=s("%s%s",v,h),M=h.split(` -`),A={},L=0;L1&&G.drawBuffersWEBGL(u[U]);var re=P.getExtension("WEBGL_depth_texture");re?j?S.depth=v(P,O,F,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):W&&(S.depth=v(P,O,F,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):W&&j?S._depth_rb=C(P,O,F,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):W?S._depth_rb=C(P,O,F,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):j&&(S._depth_rb=C(P,O,F,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var ae=P.checkFramebufferStatus(P.FRAMEBUFFER);if(ae!==P.FRAMEBUFFER_COMPLETE){S._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(S.handle),S.handle=null,S.depth&&(S.depth.dispose(),S.depth=null),S._depth_rb&&(P.deleteRenderbuffer(S._depth_rb),S._depth_rb=null);for(var H=0;HO||P<0||P>O)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");S._shape[0]=m,S._shape[1]=P;for(var F=d(M),U=0;UF||P<0||P>F)throw new Error("gl-fbo: Parameters are too large for FBO");M=M||{};var U=1;if("color"in M){if(U=Math.max(M.color|0,0),U<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(U>1)if(O){if(U>S.getParameter(O.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+U+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=S.UNSIGNED_BYTE,j=S.getExtension("OES_texture_float");if(M.float&&U>0){if(!j)throw new Error("gl-fbo: Context does not support floating point textures");G=S.FLOAT}else M.preferFloat&&U>0&&j&&(G=S.FLOAT);var W=!0;"depth"in M&&(W=!!M.depth);var N=!1;return"stencil"in M&&(N=!!M.stencil),new A(S,m,P,G,U,W,N,O)}}),2992:(function(i,a,o){var s=o(3387).sprintf,u=o(5171),l=o(1848),f=o(1085);i.exports=c;function c(h,d,p){"use strict";var y=l(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";p!==void 0&&(b=p===u.FRAGMENT_SHADER?"fragment":"vertex");for(var v=s(`Error compiling %s shader %s: +`,b,y),C=s("%s%s",v,h),E=h.split(` +`),A={},L=0;L0){for(var de=0;de<24;++de)F.push(F[F.length-12]);W+=2,me=!0}continue e}N[0][E]=Math.min(N[0][E],Le[E],Ce[E]),N[1][E]=Math.max(N[1][E],Le[E],Ce[E])}var te,Se;Array.isArray(re[0])?(te=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],Se=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):te=Se=re,te.length===3&&(te=[te[0],te[1],te[2],1]),Se.length===3&&(Se=[Se[0],Se[1],Se[2],1]),!this.hasAlpha&&te[3]<1&&(this.hasAlpha=!0);var Te;Array.isArray(ae)?Te=ae.length>P-1?ae[P-1]:ae.length>0?ae[ae.length-1]:[0,0,0,1]:Te=ae;var be=j;if(j+=M(Le,Ce),me){for(E=0;E<2;++E)F.push(Le[0],Le[1],Le[2],Ce[0],Ce[1],Ce[2],be,Te,te[0],te[1],te[2],te[3]);W+=2,me=!1}F.push(Le[0],Le[1],Le[2],Ce[0],Ce[1],Ce[2],be,Te,te[0],te[1],te[2],te[3],Le[0],Le[1],Le[2],Ce[0],Ce[1],Ce[2],be,-Te,te[0],te[1],te[2],te[3],Ce[0],Ce[1],Ce[2],Le[0],Le[1],Le[2],j,-Te,Se[0],Se[1],Se[2],Se[3],Ce[0],Ce[1],Ce[2],Le[0],Le[1],Le[2],j,Te,Se[0],Se[1],Se[2],Se[3]),W+=4}}if(this.buffer.update(F),U.push(j),G.push(H[H.length-1].slice()),this.bounds=N,this.vertexCount=W,this.points=G,this.arcLength=U,"dashes"in m){var He=m.dashes,Ie=He.slice();for(Ie.unshift(0),P=1;P1.0001)return null;E+=P[L]}return Math.abs(E-1)>.001?null:[x,h(p,P),P]}},840:function(i,a,o){var s=o(3236),u=s([`precision highp float; +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return u(d,l,f,null,h)},a.createPickShader=function(d){return u(d,l,c,null,h)}}),5714:(function(i,a,o){"use strict";i.exports=S;var s=o(2762),u=o(8116),l=o(7766),f=new Uint8Array(4),c=new Float32Array(f.buffer);function h(m,P,M,O){return f[0]=O,f[1]=M,f[2]=P,f[3]=m,c[0]}var d=o(2478),p=o(9618),y=o(7319),b=y.createShader,v=y.createPickShader,C=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(m,P){for(var M=0,O=0;O<3;++O){var F=m[O]-P[O];M+=F*F}return Math.sqrt(M)}function A(m){for(var P=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],M=0;M<3;++M)P[0][M]=Math.max(m[0][M],P[0][M]),P[1][M]=Math.min(m[1][M],P[1][M]);return P}function L(m,P,M,O){this.arcLength=m,this.position=P,this.index=M,this.dataCoordinate=O}function x(m,P,M,O,F,U){this.gl=m,this.shader=P,this.pickShader=M,this.buffer=O,this.vao=F,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=U,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var k=x.prototype;k.isTransparent=function(){return this.hasAlpha},k.isOpaque=function(){return!this.hasAlpha},k.pickSlots=1,k.setPickBase=function(m){this.pickId=m},k.drawTransparent=k.draw=function(m){if(this.vertexCount){var P=this.gl,M=this.shader,O=this.vao;M.bind(),M.uniforms={model:m.model||C,view:m.view||C,projection:m.projection||C,clipBounds:A(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},O.bind(),O.draw(P.TRIANGLE_STRIP,this.vertexCount),O.unbind()}},k.drawPick=function(m){if(this.vertexCount){var P=this.gl,M=this.pickShader,O=this.vao;M.bind(),M.uniforms={model:m.model||C,view:m.view||C,projection:m.projection||C,pickId:this.pickId,clipBounds:A(this.clipBounds),screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},O.bind(),O.draw(P.TRIANGLE_STRIP,this.vertexCount),O.unbind()}},k.update=function(m){var P,M;this.dirty=!0;var O=!!m.connectGaps;"dashScale"in m&&(this.dashScale=m.dashScale),this.hasAlpha=!1,"opacity"in m&&(this.opacity=+m.opacity,this.opacity<1&&(this.hasAlpha=!0));var F=[],U=[],G=[],j=0,W=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],H=m.position||m.positions;if(H){var re=m.color||m.colors||[0,0,0,1],ae=m.lineWidth||1,me=!1;e:for(P=1;P0){for(var de=0;de<24;++de)F.push(F[F.length-12]);W+=2,me=!0}continue e}N[0][M]=Math.min(N[0][M],Ce[M],Ee[M]),N[1][M]=Math.max(N[1][M],Ce[M],Ee[M])}var te,Se;Array.isArray(re[0])?(te=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],Se=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):te=Se=re,te.length===3&&(te=[te[0],te[1],te[2],1]),Se.length===3&&(Se=[Se[0],Se[1],Se[2],1]),!this.hasAlpha&&te[3]<1&&(this.hasAlpha=!0);var Te;Array.isArray(ae)?Te=ae.length>P-1?ae[P-1]:ae.length>0?ae[ae.length-1]:[0,0,0,1]:Te=ae;var be=j;if(j+=E(Ce,Ee),me){for(M=0;M<2;++M)F.push(Ce[0],Ce[1],Ce[2],Ee[0],Ee[1],Ee[2],be,Te,te[0],te[1],te[2],te[3]);W+=2,me=!1}F.push(Ce[0],Ce[1],Ce[2],Ee[0],Ee[1],Ee[2],be,Te,te[0],te[1],te[2],te[3],Ce[0],Ce[1],Ce[2],Ee[0],Ee[1],Ee[2],be,-Te,te[0],te[1],te[2],te[3],Ee[0],Ee[1],Ee[2],Ce[0],Ce[1],Ce[2],j,-Te,Se[0],Se[1],Se[2],Se[3],Ee[0],Ee[1],Ee[2],Ce[0],Ce[1],Ce[2],j,Te,Se[0],Se[1],Se[2],Se[3]),W+=4}}if(this.buffer.update(F),U.push(j),G.push(H[H.length-1].slice()),this.bounds=N,this.vertexCount=W,this.points=G,this.arcLength=U,"dashes"in m){var He=m.dashes,Ie=He.slice();for(Ie.unshift(0),P=1;P1.0001)return null;M+=P[L]}return Math.abs(M-1)>.001?null:[x,h(p,P),P]}}),840:(function(i,a,o){var s=o(3236),u=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1236,7 +1236,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:p,fragment:y,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:y,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:v,fragment:C,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,u=1e-6,l=o(9405),f=o(2762),c=o(8116),h=o(7766),d=o(8406),p=o(6760),y=o(7608),b=o(9618),v=o(6729),C=o(7765),M=o(1888),A=o(840),L=o(7626),x=A.meshShader,k=A.wireShader,S=A.pointShader,m=A.pickShader,P=A.pointPickShader,E=A.contourShader,O=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function F(de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We){this.gl=de,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=te,this.dirty=!0,this.triShader=Se,this.lineShader=Te,this.pointShader=be,this.pickShader=He,this.pointPickShader=Ie,this.contourShader=ge,this.trianglePositions=Be,this.triangleColors=je,this.triangleNormals=bt,this.triangleUVs=rt,this.triangleIds=ce,this.triangleVAO=Ot,this.triangleCount=0,this.lineWidth=1,this.edgePositions=it,this.edgeColors=zt,this.edgeUVs=Mt,this.edgeIds=Ke,this.edgeVAO=kt,this.edgeCount=0,this.pointPositions=$e,this.pointColors=Me,this.pointUVs=oe,this.pointSizes=Ne,this.pointIds=De,this.pointVAO=vt,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=lt,this.contourVAO=We,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=O,this._view=O,this._projection=O,this._resolution=[1,1]}var U=F.prototype;U.isOpaque=function(){return!this.hasAlpha},U.isTransparent=function(){return this.hasAlpha},U.pickSlots=1,U.setPickBase=function(de){this.pickId=de};function G(de,te){if(!te||!te.length)return 1;for(var Se=0;Sede&&Se>0){var Te=(te[Se][0]-de)/(te[Se][0]-te[Se-1][0]);return te[Se][1]*(1-Te)+Te*te[Se-1][1]}}return 1}function j(de,te){for(var Se=v({colormap:de,nshades:256,format:"rgba"}),Te=new Uint8Array(256*4),be=0;be<256;++be){for(var He=Se[be],Ie=0;Ie<3;++Ie)Te[4*be+Ie]=He[Ie];te?Te[4*be+3]=255*G(be/255,te):Te[4*be+3]=255*He[3]}return b(Te,[256,256,4],[4,0,1])}function W(de){for(var te=de.length,Se=new Array(te),Te=0;Te0){var bt=this.triShader;bt.bind(),bt.uniforms=ge,this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var bt=this.lineShader;bt.bind(),bt.uniforms=ge,this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var bt=this.pointShader;bt.bind(),bt.uniforms=ge,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var bt=this.contourShader;bt.bind(),bt.uniforms=ge,this.contourVAO.bind(),te.drawArrays(te.LINES,0,this.contourCount),this.contourVAO.unbind()}},U.drawPick=function(de){de=de||{};for(var te=this.gl,Se=de.model||O,Te=de.view||O,be=de.projection||O,He=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Ie=0;Ie<3;++Ie)He[0][Ie]=Math.max(He[0][Ie],this.clipBounds[0][Ie]),He[1][Ie]=Math.min(He[1][Ie],this.clipBounds[1][Ie]);this._model=[].slice.call(Se),this._view=[].slice.call(Te),this._projection=[].slice.call(be),this._resolution=[te.drawingBufferWidth,te.drawingBufferHeight];var ge={model:Se,view:Te,projection:be,clipBounds:He,pickId:this.pickId/255},Be=this.pickShader;if(Be.bind(),Be.uniforms=ge,this.triangleCount>0&&(this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Be=this.pointPickShader;Be.bind(),Be.uniforms=ge,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}},U.pick=function(de){if(!de||de.id!==this.pickId)return null;for(var te=de.value[0]+256*de.value[1]+65536*de.value[2],Se=this.cells[te],Te=this.positions,be=new Array(Se.length),He=0;HeMath.abs(m))v.rotate(O,0,0,-S*P*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var F=-x.zoomSpeed*E*m/window.innerHeight*(O-v.lastT())/20;v.pan(O,0,0,M*(Math.exp(F)-1))}}},!0)},x.enableMouseListeners(),x}},799:function(i,a,o){var s=o(3236),u=o(9405),l=s([`precision mediump float; +`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:p,fragment:y,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:y,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:v,fragment:C,attributes:[{name:"position",type:"vec3"}]}}),7201:(function(i,a,o){"use strict";var s=1e-6,u=1e-6,l=o(9405),f=o(2762),c=o(8116),h=o(7766),d=o(8406),p=o(6760),y=o(7608),b=o(9618),v=o(6729),C=o(7765),E=o(1888),A=o(840),L=o(7626),x=A.meshShader,k=A.wireShader,S=A.pointShader,m=A.pickShader,P=A.pointPickShader,M=A.contourShader,O=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function F(de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We){this.gl=de,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=te,this.dirty=!0,this.triShader=Se,this.lineShader=Te,this.pointShader=be,this.pickShader=He,this.pointPickShader=Ie,this.contourShader=ge,this.trianglePositions=Be,this.triangleColors=je,this.triangleNormals=bt,this.triangleUVs=rt,this.triangleIds=ce,this.triangleVAO=Ot,this.triangleCount=0,this.lineWidth=1,this.edgePositions=it,this.edgeColors=zt,this.edgeUVs=Mt,this.edgeIds=Ke,this.edgeVAO=kt,this.edgeCount=0,this.pointPositions=$e,this.pointColors=Me,this.pointUVs=oe,this.pointSizes=Ne,this.pointIds=Re,this.pointVAO=vt,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=lt,this.contourVAO=We,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=O,this._view=O,this._projection=O,this._resolution=[1,1]}var U=F.prototype;U.isOpaque=function(){return!this.hasAlpha},U.isTransparent=function(){return this.hasAlpha},U.pickSlots=1,U.setPickBase=function(de){this.pickId=de};function G(de,te){if(!te||!te.length)return 1;for(var Se=0;Sede&&Se>0){var Te=(te[Se][0]-de)/(te[Se][0]-te[Se-1][0]);return te[Se][1]*(1-Te)+Te*te[Se-1][1]}}return 1}function j(de,te){for(var Se=v({colormap:de,nshades:256,format:"rgba"}),Te=new Uint8Array(256*4),be=0;be<256;++be){for(var He=Se[be],Ie=0;Ie<3;++Ie)Te[4*be+Ie]=He[Ie];te?Te[4*be+3]=255*G(be/255,te):Te[4*be+3]=255*He[3]}return b(Te,[256,256,4],[4,0,1])}function W(de){for(var te=de.length,Se=new Array(te),Te=0;Te0){var bt=this.triShader;bt.bind(),bt.uniforms=ge,this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var bt=this.lineShader;bt.bind(),bt.uniforms=ge,this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var bt=this.pointShader;bt.bind(),bt.uniforms=ge,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var bt=this.contourShader;bt.bind(),bt.uniforms=ge,this.contourVAO.bind(),te.drawArrays(te.LINES,0,this.contourCount),this.contourVAO.unbind()}},U.drawPick=function(de){de=de||{};for(var te=this.gl,Se=de.model||O,Te=de.view||O,be=de.projection||O,He=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Ie=0;Ie<3;++Ie)He[0][Ie]=Math.max(He[0][Ie],this.clipBounds[0][Ie]),He[1][Ie]=Math.min(He[1][Ie],this.clipBounds[1][Ie]);this._model=[].slice.call(Se),this._view=[].slice.call(Te),this._projection=[].slice.call(be),this._resolution=[te.drawingBufferWidth,te.drawingBufferHeight];var ge={model:Se,view:Te,projection:be,clipBounds:He,pickId:this.pickId/255},Be=this.pickShader;if(Be.bind(),Be.uniforms=ge,this.triangleCount>0&&(this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Be=this.pointPickShader;Be.bind(),Be.uniforms=ge,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}},U.pick=function(de){if(!de||de.id!==this.pickId)return null;for(var te=de.value[0]+256*de.value[1]+65536*de.value[2],Se=this.cells[te],Te=this.positions,be=new Array(Se.length),He=0;HeMath.abs(m))v.rotate(O,0,0,-S*P*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var F=-x.zoomSpeed*M*m/window.innerHeight*(O-v.lastT())/20;v.pan(O,0,0,E*(Math.exp(F)-1))}}},!0)},x.enableMouseListeners(),x}}),799:(function(i,a,o){var s=o(3236),u=o(9405),l=s([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1252,7 +1252,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);i.exports=function(c){return u(c,l,f,null,[{name:"position",type:"vec2"}])}},4100:function(i,a,o){"use strict";var s=o(4437),u=o(3837),l=o(5445),f=o(4449),c=o(3589),h=o(2260),d=o(7169),p=o(351),y=o(4772),b=o(4040),v=o(799),C=o(9216)({tablet:!0,featureDetect:!0});i.exports={createScene:k,createCamera:s};function M(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function A(m,P){var E=null;try{E=m.getContext("webgl",P),E||(E=m.getContext("experimental-webgl",P))}catch(O){return null}return E}function L(m){var P=Math.round(Math.log(Math.abs(m))/Math.log(10));if(P<0){var E=Math.round(Math.pow(10,-P));return Math.ceil(m*E)/E}else if(P>0){var E=Math.round(Math.pow(10,P));return Math.ceil(m/E)*E}return Math.ceil(m)}function x(m){return typeof m=="boolean"?m:!0}function k(m){m=m||{},m.camera=m.camera||{};var P=m.canvas;if(!P)if(P=document.createElement("canvas"),m.container){var E=m.container;E.appendChild(P)}else document.body.appendChild(P);var O=m.gl;if(O||(m.glOptions&&(C=!!m.glOptions.preserveDrawingBuffer),O=A(P,m.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:C})),!O)throw new Error("webgl not supported");var F=m.bounds||[[-10,-10,-10],[10,10,10]],U=new M,G=h(O,O.drawingBufferWidth,O.drawingBufferHeight,{preferFloat:!C}),j=v(O),W=m.cameraObject&&m.cameraObject._ortho===!0||m.camera.projection&&m.camera.projection.type==="orthographic"||!1,N={eye:m.camera.eye||[2,0,0],center:m.camera.center||[0,0,0],up:m.camera.up||[0,1,0],zoomMin:m.camera.zoomMax||.1,zoomMax:m.camera.zoomMin||100,mode:m.camera.mode||"turntable",_ortho:W},H=m.axes||{},re=u(O,H);re.enable=!H.disable;var ae=m.spikes||{},me=f(O,ae),Le=[],Ce=[],de=[],te=[],Se=!0,Ie=!0,Te=new Array(16),be=new Array(16),He={view:null,projection:Te,model:be,_ortho:!1},Ie=!0,ge=[O.drawingBufferWidth,O.drawingBufferHeight],Be=m.cameraObject||s(P,N),ce={gl:O,contextLost:!1,pixelRatio:m.pixelRatio||1,canvas:P,selection:U,camera:Be,axes:re,axesPixels:null,spikes:me,bounds:F,objects:Le,shape:ge,aspect:m.aspectRatio||[1,1,1],pickRadius:m.pickRadius||10,zNear:m.zNear||.01,zFar:m.zFar||1e3,fovy:m.fovy||Math.PI/4,clearColor:m.clearColor||[0,0,0,0],autoResize:x(m.autoResize),autoBounds:x(m.autoBounds),autoScale:!!m.autoScale,autoCenter:x(m.autoCenter),clipToBounds:x(m.clipToBounds),snapToData:!!m.snapToData,onselect:m.onselect||null,onrender:m.onrender||null,onclick:m.onclick||null,cameraParams:He,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function($e){this.aspect[0]=$e.x,this.aspect[1]=$e.y,this.aspect[2]=$e.z,Ie=!0},setBounds:function($e,De){this.bounds[0][$e]=De.min,this.bounds[1][$e]=De.max},setClearColor:function($e){this.clearColor=$e},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},je=[O.drawingBufferWidth/ce.pixelRatio|0,O.drawingBufferHeight/ce.pixelRatio|0];function rt(){if(!ce._stopped&&ce.autoResize){var $e=P.parentNode,De=1,Me=1;$e&&$e!==document.body?(De=$e.clientWidth,Me=$e.clientHeight):(De=window.innerWidth,Me=window.innerHeight);var oe=Math.ceil(De*ce.pixelRatio)|0,Ne=Math.ceil(Me*ce.pixelRatio)|0;if(oe!==P.width||Ne!==P.height){P.width=oe,P.height=Ne;var vt=P.style;vt.position=vt.position||"absolute",vt.left="0px",vt.top="0px",vt.width=De+"px",vt.height=Me+"px",Se=!0}}}ce.autoResize&&rt(),window.addEventListener("resize",rt);function bt(){for(var $e=Le.length,De=te.length,Me=0;Me0&&de[De-1]===0;)de.pop(),te.pop().dispose()}ce.update=function($e){ce._stopped||($e=$e||{},Se=!0,Ie=!0)},ce.add=function($e){ce._stopped||($e.axes=re,Le.push($e),Ce.push(-1),Se=!0,Ie=!0,bt())},ce.remove=function($e){if(!ce._stopped){var De=Le.indexOf($e);De<0||(Le.splice(De,1),Ce.pop(),Se=!0,Ie=!0,bt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",rt),P.removeEventListener("webglcontextlost",Ot),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),me.dispose();for(var $e=0;$eU.distance)continue;for(var et=0;et1e-6?(C=Math.acos(M),A=Math.sin(C),L=Math.sin((1-l)*C)/A,x=Math.sin(l*C)/A):(L=1-l,x=l),o[0]=L*f+x*p,o[1]=L*c+x*y,o[2]=L*h+x*b,o[3]=L*d+x*v,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=l;var u={};function l(f,c,h){var d=[c.style,c.weight,c.variant,c.family].join("_"),p=u[d];if(p||(p=u[d]={}),f in p)return p[f];var y={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};y.triangles=!0;var b=s(f,y);y.triangles=!1;var v=s(f,y),C,M;if(h&&h!==1){for(C=0;C0){var M=Math.round(Math.pow(10,P));return Math.ceil(m/M)*M}return Math.ceil(m)}function x(m){return typeof m=="boolean"?m:!0}function k(m){m=m||{},m.camera=m.camera||{};var P=m.canvas;if(!P)if(P=document.createElement("canvas"),m.container){var M=m.container;M.appendChild(P)}else document.body.appendChild(P);var O=m.gl;if(O||(m.glOptions&&(C=!!m.glOptions.preserveDrawingBuffer),O=A(P,m.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:C})),!O)throw new Error("webgl not supported");var F=m.bounds||[[-10,-10,-10],[10,10,10]],U=new E,G=h(O,O.drawingBufferWidth,O.drawingBufferHeight,{preferFloat:!C}),j=v(O),W=m.cameraObject&&m.cameraObject._ortho===!0||m.camera.projection&&m.camera.projection.type==="orthographic"||!1,N={eye:m.camera.eye||[2,0,0],center:m.camera.center||[0,0,0],up:m.camera.up||[0,1,0],zoomMin:m.camera.zoomMax||.1,zoomMax:m.camera.zoomMin||100,mode:m.camera.mode||"turntable",_ortho:W},H=m.axes||{},re=u(O,H);re.enable=!H.disable;var ae=m.spikes||{},me=f(O,ae),Ce=[],Ee=[],de=[],te=[],Se=!0,Ie=!0,Te=new Array(16),be=new Array(16),He={view:null,projection:Te,model:be,_ortho:!1},Ie=!0,ge=[O.drawingBufferWidth,O.drawingBufferHeight],Be=m.cameraObject||s(P,N),ce={gl:O,contextLost:!1,pixelRatio:m.pixelRatio||1,canvas:P,selection:U,camera:Be,axes:re,axesPixels:null,spikes:me,bounds:F,objects:Ce,shape:ge,aspect:m.aspectRatio||[1,1,1],pickRadius:m.pickRadius||10,zNear:m.zNear||.01,zFar:m.zFar||1e3,fovy:m.fovy||Math.PI/4,clearColor:m.clearColor||[0,0,0,0],autoResize:x(m.autoResize),autoBounds:x(m.autoBounds),autoScale:!!m.autoScale,autoCenter:x(m.autoCenter),clipToBounds:x(m.clipToBounds),snapToData:!!m.snapToData,onselect:m.onselect||null,onrender:m.onrender||null,onclick:m.onclick||null,cameraParams:He,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function($e){this.aspect[0]=$e.x,this.aspect[1]=$e.y,this.aspect[2]=$e.z,Ie=!0},setBounds:function($e,Re){this.bounds[0][$e]=Re.min,this.bounds[1][$e]=Re.max},setClearColor:function($e){this.clearColor=$e},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},je=[O.drawingBufferWidth/ce.pixelRatio|0,O.drawingBufferHeight/ce.pixelRatio|0];function rt(){if(!ce._stopped&&ce.autoResize){var $e=P.parentNode,Re=1,Me=1;$e&&$e!==document.body?(Re=$e.clientWidth,Me=$e.clientHeight):(Re=window.innerWidth,Me=window.innerHeight);var oe=Math.ceil(Re*ce.pixelRatio)|0,Ne=Math.ceil(Me*ce.pixelRatio)|0;if(oe!==P.width||Ne!==P.height){P.width=oe,P.height=Ne;var vt=P.style;vt.position=vt.position||"absolute",vt.left="0px",vt.top="0px",vt.width=Re+"px",vt.height=Me+"px",Se=!0}}}ce.autoResize&&rt(),window.addEventListener("resize",rt);function bt(){for(var $e=Ce.length,Re=te.length,Me=0;Me0&&de[Re-1]===0;)de.pop(),te.pop().dispose()}ce.update=function($e){ce._stopped||($e=$e||{},Se=!0,Ie=!0)},ce.add=function($e){ce._stopped||($e.axes=re,Ce.push($e),Ee.push(-1),Se=!0,Ie=!0,bt())},ce.remove=function($e){if(!ce._stopped){var Re=Ce.indexOf($e);Re<0||(Ce.splice(Re,1),Ee.pop(),Se=!0,Ie=!0,bt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",rt),P.removeEventListener("webglcontextlost",Ot),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),me.dispose();for(var $e=0;$eU.distance)continue;for(var et=0;et1e-6?(C=Math.acos(E),A=Math.sin(C),L=Math.sin((1-l)*C)/A,x=Math.sin(l*C)/A):(L=1-l,x=l),o[0]=L*f+x*p,o[1]=L*c+x*y,o[2]=L*h+x*b,o[3]=L*d+x*v,o}}),5964:(function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}}),9366:(function(i,a,o){"use strict";var s=o(4359);i.exports=l;var u={};function l(f,c,h){var d=[c.style,c.weight,c.variant,c.family].join("_"),p=u[d];if(p||(p=u[d]={}),f in p)return p[f];var y={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};y.triangles=!0;var b=s(f,y);y.triangles=!1;var v=s(f,y),C,E;if(h&&h!==1){for(C=0;C1?1:be}function S(be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke){this.gl=be,this.pixelRatio=1,this.shader=He,this.orthoShader=Ie,this.projectShader=ge,this.pointBuffer=Be,this.colorBuffer=ce,this.glyphBuffer=je,this.idBuffer=rt,this.vao=bt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Ot,this.pickOrthoShader=it,this.pickProjectShader=Ke,this.points=[],this._selectResult=new x(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var m=S.prototype;m.pickSlots=1,m.setPickBase=function(be){this.pickId=be},m.isTransparent=function(){if(this.hasAlpha)return!0;for(var be=0;be<3;++be)if(this.axesProject[be]&&this.projectHasAlpha)return!0;return!1},m.isOpaque=function(){if(!this.hasAlpha)return!0;for(var be=0;be<3;++be)if(this.axesProject[be]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],E=[0,0,0],O=[0,0,0],F=[0,0,0,1],U=[0,0,0,1],G=y.slice(),j=[0,0,0],W=[[0,0,0],[0,0,0]];function N(be){return be[0]=be[1]=be[2]=0,be}function H(be,He){return be[0]=He[0],be[1]=He[1],be[2]=He[2],be[3]=1,be}function re(be,He,Ie,ge){return be[0]=He[0],be[1]=He[1],be[2]=He[2],be[Ie]=ge,be}function ae(be){for(var He=W,Ie=0;Ie<2;++Ie)for(var ge=0;ge<3;++ge)He[Ie][ge]=Math.max(Math.min(be[Ie][ge],1e8),-1e8);return He}function me(be,He,Ie,ge){var Be=He.axesProject,ce=He.gl,je=be.uniforms,rt=Ie.model||y,bt=Ie.view||y,Ot=Ie.projection||y,it=He.axesBounds,Ke=ae(He.clipBounds),zt;He.axes&&He.axes.lastCubeProps?zt=He.axes.lastCubeProps.axis:zt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,be.bind(),je.view=bt,je.projection=Ot,je.screenSize=P,je.highlightId=He.highlightId,je.highlightScale=He.highlightScale,je.clipBounds=Ke,je.pickGroup=He.pickId/255,je.pixelRatio=ge;for(var Mt=0;Mt<3;++Mt)if(Be[Mt]){je.scale=He.projectScale[Mt],je.opacity=He.projectOpacity[Mt];for(var kt=G,$e=0;$e<16;++$e)kt[$e]=0;for(var $e=0;$e<4;++$e)kt[5*$e]=1;kt[5*Mt]=0,zt[Mt]<0?kt[12+Mt]=it[0][Mt]:kt[12+Mt]=it[1][Mt],c(kt,rt,kt),je.model=kt;var De=(Mt+1)%3,Me=(Mt+2)%3,oe=N(E),Ne=N(O);oe[De]=1,Ne[Me]=1;var vt=L(Ot,bt,rt,H(F,oe)),lt=L(Ot,bt,rt,H(U,Ne));if(Math.abs(vt[1])>Math.abs(lt[1])){var We=vt;vt=lt,lt=We,We=oe,oe=Ne,Ne=We;var Ve=De;De=Me,Me=Ve}vt[0]<0&&(oe[De]=-1),lt[1]>0&&(Ne[Me]=-1);for(var et=0,tt=0,$e=0;$e<4;++$e)et+=Math.pow(rt[4*De+$e],2),tt+=Math.pow(rt[4*Me+$e],2);oe[De]/=Math.sqrt(et),Ne[Me]/=Math.sqrt(tt),je.axes[0]=oe,je.axes[1]=Ne,je.fragClipBounds[0]=re(j,Ke[0],Mt,-1e8),je.fragClipBounds[1]=re(j,Ke[1],Mt,1e8),He.vao.bind(),He.vao.draw(ce.TRIANGLES,He.vertexCount),He.lineWidth>0&&(ce.lineWidth(He.lineWidth*ge),He.vao.draw(ce.LINES,He.lineVertexCount,He.vertexCount)),He.vao.unbind()}}var Le=[-1e8,-1e8,-1e8],Ce=[1e8,1e8,1e8],de=[Le,Ce];function te(be,He,Ie,ge,Be,ce,je){var rt=Ie.gl;if((ce===Ie.projectHasAlpha||je)&&me(He,Ie,ge,Be),ce===Ie.hasAlpha||je){be.bind();var bt=be.uniforms;bt.model=ge.model||y,bt.view=ge.view||y,bt.projection=ge.projection||y,P[0]=2/rt.drawingBufferWidth,P[1]=2/rt.drawingBufferHeight,bt.screenSize=P,bt.highlightId=Ie.highlightId,bt.highlightScale=Ie.highlightScale,bt.fragClipBounds=de,bt.clipBounds=Ie.axes.bounds,bt.opacity=Ie.opacity,bt.pickGroup=Ie.pickId/255,bt.pixelRatio=Be,Ie.vao.bind(),Ie.vao.draw(rt.TRIANGLES,Ie.vertexCount),Ie.lineWidth>0&&(rt.lineWidth(Ie.lineWidth*Be),Ie.vao.draw(rt.LINES,Ie.lineVertexCount,Ie.vertexCount)),Ie.vao.unbind()}}m.draw=function(be){var He=this.useOrtho?this.orthoShader:this.shader;te(He,this.projectShader,this,be,this.pixelRatio,!1,!1)},m.drawTransparent=function(be){var He=this.useOrtho?this.orthoShader:this.shader;te(He,this.projectShader,this,be,this.pixelRatio,!0,!1)},m.drawPick=function(be){var He=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;te(He,this.pickProjectShader,this,be,1,!0,!0)},m.pick=function(be){if(!be||be.id!==this.pickId)return null;var He=be.value[2]+(be.value[1]<<8)+(be.value[0]<<16);if(He>=this.pointCount||He<0)return null;var Ie=this.points[He],ge=this._selectResult;ge.index=He;for(var Be=0;Be<3;++Be)ge.position[Be]=ge.dataCoordinate[Be]=Ie[Be];return ge},m.highlight=function(be){if(!be)this.highlightId=[1,1,1,1];else{var He=be.index,Ie=He&255,ge=He>>8&255,Be=He>>16&255;this.highlightId=[Ie/255,ge/255,Be/255,0]}};function Se(be,He,Ie,ge){var Be;M(be)?He0){var Vt=0,Pe=Me,xe=[0,0,0,1],Oe=[0,0,0,1],ze=M(zt)&&M(zt[0]),Re=M($e)&&M($e[0]);e:for(var ge=0;ge0?1-tt[0][0]:cr<0?1+tt[1][0]:1,Er*=Er>0?1-tt[0][1]:Er<0?1+tt[1][1]:1;for(var ii=[cr,Er],Bi=Ve.cells||[],Di=Ve.positions||[],lt=0;ltthis.buffer.length){u.free(this.buffer);for(var M=this.buffer=u.mallocUint8(f(C*v*4)),A=0;AM)for(v=M;vC)for(v=C;v=0){for(var W=j.type.charAt(j.type.length-1)|0,N=new Array(W),H=0;H=0;)re+=1;U[G]=re}var ae=new Array(M.length);function me(){x.program=f.program(k,x._vref,x._fref,F,U);for(var Le=0;Le=0){var m=k.charCodeAt(k.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+x+": "+k);c(p,y,S[0],v,m,C,x)}else if(k.indexOf("mat")>=0){var m=k.charCodeAt(k.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+x+": "+k);h(p,y,S,v,m,C,x)}else throw new s("","Unknown data type for attribute "+x+": "+k);break}}return C}},3327:function(i,a,o){"use strict";var s=o(216),u=o(8866);i.exports=c;function l(h){return function(){return h}}function f(h,d){for(var p=new Array(h),y=0;y4)throw new u("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+ae+"iv"](y[U],G);break;case"v":h["uniform"+ae+"fv"](y[U],G);break;default:throw new u("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(ae=re.charCodeAt(re.length-1)-48,ae<2||ae>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+ae+"fv"](y[U],!1,G);break}else throw new u("","Unknown uniform data type for "+name+": "+re)}}}}}function C(k,S){if(typeof S!="object")return[[k,S]];var m=[];for(var P in S){var E=S[P],O=k;parseInt(P)+""===P?O+="["+P+"]":O+="."+P,typeof E=="object"?m.push.apply(m,C(O,E)):m.push([O,E])}return m}function M(k){switch(k){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var S=k.indexOf("vec");if(0<=S&&S<=1&&k.length===4+S){var m=k.charCodeAt(k.length-1)-48;if(m<2||m>4)throw new u("","Invalid data type");return k.charAt(0)==="b"?f(m,!1):f(m,0)}else if(k.indexOf("mat")===0&&k.length===4){var m=k.charCodeAt(k.length-1)-48;if(m<2||m>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+k);return f(m*m,0)}else throw new u("","Unknown uniform data type for "+name+": "+k)}}function A(k,S,m){if(typeof m=="object"){var P=L(m);Object.defineProperty(k,S,{get:l(P),set:v(m),enumerable:!0,configurable:!1})}else y[m]?Object.defineProperty(k,S,{get:b(m),set:v(m),enumerable:!0,configurable:!1}):k[S]=M(p[m].type)}function L(k){var S;if(Array.isArray(k)){S=new Array(k.length);for(var m=0;m1){p[0]in h||(h[p[0]]=[]),h=h[p[0]];for(var y=1;y1)for(var C=0;C1?1:be}function S(be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke){this.gl=be,this.pixelRatio=1,this.shader=He,this.orthoShader=Ie,this.projectShader=ge,this.pointBuffer=Be,this.colorBuffer=ce,this.glyphBuffer=je,this.idBuffer=rt,this.vao=bt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Ot,this.pickOrthoShader=it,this.pickProjectShader=Ke,this.points=[],this._selectResult=new x(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var m=S.prototype;m.pickSlots=1,m.setPickBase=function(be){this.pickId=be},m.isTransparent=function(){if(this.hasAlpha)return!0;for(var be=0;be<3;++be)if(this.axesProject[be]&&this.projectHasAlpha)return!0;return!1},m.isOpaque=function(){if(!this.hasAlpha)return!0;for(var be=0;be<3;++be)if(this.axesProject[be]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],M=[0,0,0],O=[0,0,0],F=[0,0,0,1],U=[0,0,0,1],G=y.slice(),j=[0,0,0],W=[[0,0,0],[0,0,0]];function N(be){return be[0]=be[1]=be[2]=0,be}function H(be,He){return be[0]=He[0],be[1]=He[1],be[2]=He[2],be[3]=1,be}function re(be,He,Ie,ge){return be[0]=He[0],be[1]=He[1],be[2]=He[2],be[Ie]=ge,be}function ae(be){for(var He=W,Ie=0;Ie<2;++Ie)for(var ge=0;ge<3;++ge)He[Ie][ge]=Math.max(Math.min(be[Ie][ge],1e8),-1e8);return He}function me(be,He,Ie,ge){var Be=He.axesProject,ce=He.gl,je=be.uniforms,rt=Ie.model||y,bt=Ie.view||y,Ot=Ie.projection||y,it=He.axesBounds,Ke=ae(He.clipBounds),zt;He.axes&&He.axes.lastCubeProps?zt=He.axes.lastCubeProps.axis:zt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,be.bind(),je.view=bt,je.projection=Ot,je.screenSize=P,je.highlightId=He.highlightId,je.highlightScale=He.highlightScale,je.clipBounds=Ke,je.pickGroup=He.pickId/255,je.pixelRatio=ge;for(var Mt=0;Mt<3;++Mt)if(Be[Mt]){je.scale=He.projectScale[Mt],je.opacity=He.projectOpacity[Mt];for(var kt=G,$e=0;$e<16;++$e)kt[$e]=0;for(var $e=0;$e<4;++$e)kt[5*$e]=1;kt[5*Mt]=0,zt[Mt]<0?kt[12+Mt]=it[0][Mt]:kt[12+Mt]=it[1][Mt],c(kt,rt,kt),je.model=kt;var Re=(Mt+1)%3,Me=(Mt+2)%3,oe=N(M),Ne=N(O);oe[Re]=1,Ne[Me]=1;var vt=L(Ot,bt,rt,H(F,oe)),lt=L(Ot,bt,rt,H(U,Ne));if(Math.abs(vt[1])>Math.abs(lt[1])){var We=vt;vt=lt,lt=We,We=oe,oe=Ne,Ne=We;var Ve=Re;Re=Me,Me=Ve}vt[0]<0&&(oe[Re]=-1),lt[1]>0&&(Ne[Me]=-1);for(var et=0,tt=0,$e=0;$e<4;++$e)et+=Math.pow(rt[4*Re+$e],2),tt+=Math.pow(rt[4*Me+$e],2);oe[Re]/=Math.sqrt(et),Ne[Me]/=Math.sqrt(tt),je.axes[0]=oe,je.axes[1]=Ne,je.fragClipBounds[0]=re(j,Ke[0],Mt,-1e8),je.fragClipBounds[1]=re(j,Ke[1],Mt,1e8),He.vao.bind(),He.vao.draw(ce.TRIANGLES,He.vertexCount),He.lineWidth>0&&(ce.lineWidth(He.lineWidth*ge),He.vao.draw(ce.LINES,He.lineVertexCount,He.vertexCount)),He.vao.unbind()}}var Ce=[-1e8,-1e8,-1e8],Ee=[1e8,1e8,1e8],de=[Ce,Ee];function te(be,He,Ie,ge,Be,ce,je){var rt=Ie.gl;if((ce===Ie.projectHasAlpha||je)&&me(He,Ie,ge,Be),ce===Ie.hasAlpha||je){be.bind();var bt=be.uniforms;bt.model=ge.model||y,bt.view=ge.view||y,bt.projection=ge.projection||y,P[0]=2/rt.drawingBufferWidth,P[1]=2/rt.drawingBufferHeight,bt.screenSize=P,bt.highlightId=Ie.highlightId,bt.highlightScale=Ie.highlightScale,bt.fragClipBounds=de,bt.clipBounds=Ie.axes.bounds,bt.opacity=Ie.opacity,bt.pickGroup=Ie.pickId/255,bt.pixelRatio=Be,Ie.vao.bind(),Ie.vao.draw(rt.TRIANGLES,Ie.vertexCount),Ie.lineWidth>0&&(rt.lineWidth(Ie.lineWidth*Be),Ie.vao.draw(rt.LINES,Ie.lineVertexCount,Ie.vertexCount)),Ie.vao.unbind()}}m.draw=function(be){var He=this.useOrtho?this.orthoShader:this.shader;te(He,this.projectShader,this,be,this.pixelRatio,!1,!1)},m.drawTransparent=function(be){var He=this.useOrtho?this.orthoShader:this.shader;te(He,this.projectShader,this,be,this.pixelRatio,!0,!1)},m.drawPick=function(be){var He=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;te(He,this.pickProjectShader,this,be,1,!0,!0)},m.pick=function(be){if(!be||be.id!==this.pickId)return null;var He=be.value[2]+(be.value[1]<<8)+(be.value[0]<<16);if(He>=this.pointCount||He<0)return null;var Ie=this.points[He],ge=this._selectResult;ge.index=He;for(var Be=0;Be<3;++Be)ge.position[Be]=ge.dataCoordinate[Be]=Ie[Be];return ge},m.highlight=function(be){if(!be)this.highlightId=[1,1,1,1];else{var He=be.index,Ie=He&255,ge=He>>8&255,Be=He>>16&255;this.highlightId=[Ie/255,ge/255,Be/255,0]}};function Se(be,He,Ie,ge){var Be;E(be)?He0){var Vt=0,Pe=Me,xe=[0,0,0,1],Oe=[0,0,0,1],ze=E(zt)&&E(zt[0]),De=E($e)&&E($e[0]);e:for(var ge=0;ge0?1-tt[0][0]:cr<0?1+tt[1][0]:1,Er*=Er>0?1-tt[0][1]:Er<0?1+tt[1][1]:1;for(var ii=[cr,Er],Bi=Ve.cells||[],Ri=Ve.positions||[],lt=0;ltthis.buffer.length){u.free(this.buffer);for(var E=this.buffer=u.mallocUint8(f(C*v*4)),A=0;AE)for(v=E;vC)for(v=C;v=0){for(var W=j.type.charAt(j.type.length-1)|0,N=new Array(W),H=0;H=0;)re+=1;U[G]=re}var ae=new Array(E.length);function me(){x.program=f.program(k,x._vref,x._fref,F,U);for(var Ce=0;Ce=0){var m=k.charCodeAt(k.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+x+": "+k);c(p,y,S[0],v,m,C,x)}else if(k.indexOf("mat")>=0){var m=k.charCodeAt(k.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+x+": "+k);h(p,y,S,v,m,C,x)}else throw new s("","Unknown data type for attribute "+x+": "+k);break}}return C}}),3327:(function(i,a,o){"use strict";var s=o(216),u=o(8866);i.exports=c;function l(h){return function(){return h}}function f(h,d){for(var p=new Array(h),y=0;y4)throw new u("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+ae+"iv"](y[U],G);break;case"v":h["uniform"+ae+"fv"](y[U],G);break;default:throw new u("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(ae=re.charCodeAt(re.length-1)-48,ae<2||ae>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+ae+"fv"](y[U],!1,G);break}else throw new u("","Unknown uniform data type for "+name+": "+re)}}}}}function C(k,S){if(typeof S!="object")return[[k,S]];var m=[];for(var P in S){var M=S[P],O=k;parseInt(P)+""===P?O+="["+P+"]":O+="."+P,typeof M=="object"?m.push.apply(m,C(O,M)):m.push([O,M])}return m}function E(k){switch(k){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var S=k.indexOf("vec");if(0<=S&&S<=1&&k.length===4+S){var m=k.charCodeAt(k.length-1)-48;if(m<2||m>4)throw new u("","Invalid data type");return k.charAt(0)==="b"?f(m,!1):f(m,0)}else if(k.indexOf("mat")===0&&k.length===4){var m=k.charCodeAt(k.length-1)-48;if(m<2||m>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+k);return f(m*m,0)}else throw new u("","Unknown uniform data type for "+name+": "+k)}}function A(k,S,m){if(typeof m=="object"){var P=L(m);Object.defineProperty(k,S,{get:l(P),set:v(m),enumerable:!0,configurable:!1})}else y[m]?Object.defineProperty(k,S,{get:b(m),set:v(m),enumerable:!0,configurable:!1}):k[S]=E(p[m].type)}function L(k){var S;if(Array.isArray(k)){S=new Array(k.length);for(var m=0;m1){p[0]in h||(h[p[0]]=[]),h=h[p[0]];for(var y=1;y1)for(var C=0;C0)for(var te=0;teL)return k-1}return k},d=function(A,L,x){return Ax?x:A},p=function(A,L,x){var k=L.vectors,S=L.meshgrid,m=A[0],P=A[1],E=A[2],O=S[0].length,F=S[1].length,U=S[2].length,G=h(S[0],m),j=h(S[1],P),W=h(S[2],E),N=G+1,H=j+1,re=W+1;if(G=d(G,0,O-1),N=d(N,0,O-1),j=d(j,0,F-1),H=d(H,0,F-1),W=d(W,0,U-1),re=d(re,0,U-1),G<0||j<0||W<0||N>O-1||H>F-1||re>U-1)return s.create();var ae=S[0][G],me=S[0][N],Le=S[1][j],Ce=S[1][H],de=S[2][W],te=S[2][re],Se=(m-ae)/(me-ae),Te=(P-Le)/(Ce-Le),be=(E-de)/(te-de);isFinite(Se)||(Se=.5),isFinite(Te)||(Te=.5),isFinite(be)||(be=.5);var He,Ie,ge,Be,ce,je;switch(x.reversedX&&(G=O-1-G,N=O-1-N),x.reversedY&&(j=F-1-j,H=F-1-H),x.reversedZ&&(W=U-1-W,re=U-1-re),x.filled){case 5:ce=W,je=re,ge=j*U,Be=H*U,He=G*U*F,Ie=N*U*F;break;case 4:ce=W,je=re,He=G*U,Ie=N*U,ge=j*U*O,Be=H*U*O;break;case 3:ge=j,Be=H,ce=W*F,je=re*F,He=G*F*U,Ie=N*F*U;break;case 2:ge=j,Be=H,He=G*F,Ie=N*F,ce=W*F*O,je=re*F*O;break;case 1:He=G,Ie=N,ce=W*O,je=re*O,ge=j*O*U,Be=H*O*U;break;default:He=G,Ie=N,ge=j*O,Be=H*O,ce=W*O*F,je=re*O*F;break}var rt=k[He+ge+ce],bt=k[He+ge+je],Ot=k[He+Be+ce],it=k[He+Be+je],Ke=k[Ie+ge+ce],zt=k[Ie+ge+je],Mt=k[Ie+Be+ce],kt=k[Ie+Be+je],$e=s.create(),De=s.create(),Me=s.create(),oe=s.create();s.lerp($e,rt,Ke,Se),s.lerp(De,bt,zt,Se),s.lerp(Me,Ot,Mt,Se),s.lerp(oe,it,kt,Se);var Ne=s.create(),vt=s.create();s.lerp(Ne,$e,Me,Te),s.lerp(vt,De,oe,Te);var lt=s.create();return s.lerp(lt,Ne,vt,be),lt},y=function(A,L){var x=L[0],k=L[1],S=L[2];return A[0]=x<0?-x:x,A[1]=k<0?-k:k,A[2]=S<0?-S:S,A},b=function(A){var L=1/0;A.sort(function(m,P){return m-P});for(var x=A.length,k=1;kN||ktH||$ere)},me=s.distance(L[0],L[1]),Le=10*me/k,Ce=Le*Le,de=1,te=0,Se=x.length;Se>1&&(de=v(x));for(var Te=0;Tete&&(te=rt),ce.push(rt),U.push({points:He,velocities:Ie,divergences:ce});for(var bt=0;btCe&&s.scale(Ot,Ot,Le/Math.sqrt(it)),s.add(Ot,Ot,be),ge=O(Ot),s.squaredDistance(Be,Ot)-Ce>-1e-4*Ce){He.push(Ot),Be=Ot,Ie.push(ge);var je=F(Ot,ge),rt=s.length(je);isFinite(rt)&&rt>te&&(te=rt),ce.push(rt)}be=Ot}}var Ke=c(U,A.colormap,te,de);return m?Ke.tubeScale=m:(te===0&&(te=1),Ke.tubeScale=S*.5*de/te),Ke};var C=o(6740),M=o(6405).createMesh;i.exports.createTubeMesh=function(A,L){return M(A,L,{shaders:C,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),u=o(3236),l=u([`precision highp float; +}`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}}),7815:(function(i,a,o){"use strict";var s=o(2931),u=o(9970),l=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(A,L,x,k){for(var S=A.points,m=A.velocities,P=A.divergences,M=[],O=[],F=[],U=[],G=[],j=[],W=0,N=0,H=u.create(),re=u.create(),ae=8,me=0;me0)for(var te=0;teL)return k-1}return k},d=function(A,L,x){return Ax?x:A},p=function(A,L,x){var k=L.vectors,S=L.meshgrid,m=A[0],P=A[1],M=A[2],O=S[0].length,F=S[1].length,U=S[2].length,G=h(S[0],m),j=h(S[1],P),W=h(S[2],M),N=G+1,H=j+1,re=W+1;if(G=d(G,0,O-1),N=d(N,0,O-1),j=d(j,0,F-1),H=d(H,0,F-1),W=d(W,0,U-1),re=d(re,0,U-1),G<0||j<0||W<0||N>O-1||H>F-1||re>U-1)return s.create();var ae=S[0][G],me=S[0][N],Ce=S[1][j],Ee=S[1][H],de=S[2][W],te=S[2][re],Se=(m-ae)/(me-ae),Te=(P-Ce)/(Ee-Ce),be=(M-de)/(te-de);isFinite(Se)||(Se=.5),isFinite(Te)||(Te=.5),isFinite(be)||(be=.5);var He,Ie,ge,Be,ce,je;switch(x.reversedX&&(G=O-1-G,N=O-1-N),x.reversedY&&(j=F-1-j,H=F-1-H),x.reversedZ&&(W=U-1-W,re=U-1-re),x.filled){case 5:ce=W,je=re,ge=j*U,Be=H*U,He=G*U*F,Ie=N*U*F;break;case 4:ce=W,je=re,He=G*U,Ie=N*U,ge=j*U*O,Be=H*U*O;break;case 3:ge=j,Be=H,ce=W*F,je=re*F,He=G*F*U,Ie=N*F*U;break;case 2:ge=j,Be=H,He=G*F,Ie=N*F,ce=W*F*O,je=re*F*O;break;case 1:He=G,Ie=N,ce=W*O,je=re*O,ge=j*O*U,Be=H*O*U;break;default:He=G,Ie=N,ge=j*O,Be=H*O,ce=W*O*F,je=re*O*F;break}var rt=k[He+ge+ce],bt=k[He+ge+je],Ot=k[He+Be+ce],it=k[He+Be+je],Ke=k[Ie+ge+ce],zt=k[Ie+ge+je],Mt=k[Ie+Be+ce],kt=k[Ie+Be+je],$e=s.create(),Re=s.create(),Me=s.create(),oe=s.create();s.lerp($e,rt,Ke,Se),s.lerp(Re,bt,zt,Se),s.lerp(Me,Ot,Mt,Se),s.lerp(oe,it,kt,Se);var Ne=s.create(),vt=s.create();s.lerp(Ne,$e,Me,Te),s.lerp(vt,Re,oe,Te);var lt=s.create();return s.lerp(lt,Ne,vt,be),lt},y=function(A,L){var x=L[0],k=L[1],S=L[2];return A[0]=x<0?-x:x,A[1]=k<0?-k:k,A[2]=S<0?-S:S,A},b=function(A){var L=1/0;A.sort(function(m,P){return m-P});for(var x=A.length,k=1;kN||ktH||$ere)},me=s.distance(L[0],L[1]),Ce=10*me/k,Ee=Ce*Ce,de=1,te=0,Se=x.length;Se>1&&(de=v(x));for(var Te=0;Tete&&(te=rt),ce.push(rt),U.push({points:He,velocities:Ie,divergences:ce});for(var bt=0;btEe&&s.scale(Ot,Ot,Ce/Math.sqrt(it)),s.add(Ot,Ot,be),ge=O(Ot),s.squaredDistance(Be,Ot)-Ee>-1e-4*Ee){He.push(Ot),Be=Ot,Ie.push(ge);var je=F(Ot,ge),rt=s.length(je);isFinite(rt)&&rt>te&&(te=rt),ce.push(rt)}be=Ot}}var Ke=c(U,A.colormap,te,de);return m?Ke.tubeScale=m:(te===0&&(te=1),Ke.tubeScale=S*.5*de/te),Ke};var C=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(A,L){return E(A,L,{shaders:C,traceType:"streamtube"})}}),990:(function(i,a,o){var s=o(9405),u=o(3236),l=u([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1999,15 +1999,15 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);a.createShader=function(d){var p=s(d,l,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createPickShader=function(d){var p=s(d,l,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createContourShader=function(d){var p=s(d,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p},a.createPickContourShader=function(d){var p=s(d,c,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p}},9499:function(i,a,o){"use strict";i.exports=He;var s=o(8828),u=o(2762),l=o(8116),f=o(7766),c=o(1888),h=o(6729),d=o(5298),p=o(9994),y=o(9618),b=o(3711),v=o(6760),C=o(7608),M=o(2478),A=o(6199),L=o(990),x=L.createShader,k=L.createContourShader,S=L.createPickShader,m=L.createPickContourShader,P=4*10,E=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],O=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],F=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var Ie=0;Ie<3;++Ie){var ge=F[Ie],Be=(Ie+1)%3,ce=(Ie+2)%3;ge[Be+0]=1,ge[ce+3]=1,ge[Ie+6]=1}})();function U(Ie,ge,Be,ce,je){this.position=Ie,this.index=ge,this.uv=Be,this.level=ce,this.dataCoordinate=je}var G=256;function j(Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De){this.gl=Ie,this.shape=ge,this.bounds=Be,this.objectOffset=De,this.intensityBounds=[],this._shader=ce,this._pickShader=je,this._coordinateBuffer=rt,this._vao=bt,this._colorMap=Ot,this._contourShader=it,this._contourPickShader=Ke,this._contourBuffer=zt,this._contourVAO=Mt,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new U([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=kt,this._dynamicVAO=$e,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[y(c.mallocFloat(1024),[0,0]),y(c.mallocFloat(1024),[0,0]),y(c.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var W=j.prototype;W.genColormap=function(Ie,ge){var Be=!1,ce=p([h({colormap:Ie,nshades:G,format:"rgba"}).map(function(je,rt){var bt=ge?N(rt/255,ge):je[3];return bt<1&&(Be=!0),[je[0],je[1],je[2],255*bt]})]);return d.divseq(ce,255),this.hasAlphaScale=Be,ce},W.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},W.isOpaque=function(){return!this.isTransparent()},W.pickSlots=1,W.setPickBase=function(Ie){this.pickId=Ie};function N(Ie,ge){if(!ge||!ge.length)return 1;for(var Be=0;BeIe&&Be>0){var ce=(ge[Be][0]-Ie)/(ge[Be][0]-ge[Be-1][0]);return ge[Be][1]*(1-ce)+ce*ge[Be-1][1]}}return 1}var H=[0,0,0],re={showSurface:!1,showContour:!1,projections:[E.slice(),E.slice(),E.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(Ie,ge){var Be,ce,je,rt=ge.axes&&ge.axes.lastCubeProps.axis||H,bt=ge.showSurface,Ot=ge.showContour;for(Be=0;Be<3;++Be)for(bt=bt||ge.surfaceProject[Be],ce=0;ce<3;++ce)Ot=Ot||ge.contourProject[Be][ce];for(Be=0;Be<3;++Be){var it=re.projections[Be];for(ce=0;ce<16;++ce)it[ce]=0;for(ce=0;ce<4;++ce)it[5*ce]=1;it[5*Be]=0,it[12+Be]=ge.axesBounds[+(rt[Be]>0)][Be],v(it,Ie.model,it);var Ke=re.clipBounds[Be];for(je=0;je<2;++je)for(ce=0;ce<3;++ce)Ke[je][ce]=Ie.clipBounds[je][ce];Ke[0][Be]=-1e8,Ke[1][Be]=1e8}return re.showSurface=bt,re.showContour=Ot,re}var me={model:E,view:E,projection:E,inverseModel:E.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Le=E.slice(),Ce=[1,0,0,0,1,0,0,0,1];function de(Ie,ge){Ie=Ie||{};var Be=this.gl;Be.disable(Be.CULL_FACE),this._colorMap.bind(0);var ce=me;ce.model=Ie.model||E,ce.view=Ie.view||E,ce.projection=Ie.projection||E,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=C(ce.inverseModel,ce.model);for(var je=0;je<2;++je)for(var rt=ce.clipBounds[je],bt=0;bt<3;++bt)rt[bt]=Math.min(Math.max(this.clipBounds[je][bt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=Ce,ce.vertexColor=this.vertexColor;var Ot=Le;for(v(Ot,ce.view,ce.model),v(Ot,ce.projection,Ot),C(Ot,Ot),je=0;je<3;++je)ce.eyePosition[je]=Ot[12+je]/Ot[15];var it=Ot[15];for(je=0;je<3;++je)it+=this.lightPosition[je]*Ot[4*je+3];for(je=0;je<3;++je){var Ke=Ot[12+je];for(bt=0;bt<3;++bt)Ke+=Ot[4*bt+je]*this.lightPosition[bt];ce.lightPosition[je]=Ke/it}var zt=ae(ce,this);if(zt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Be.TRIANGLES,this._vertexCount),je=0;je<3;++je)!this.surfaceProject[je]||!this.vertexCount||(this._shader.uniforms.model=zt.projections[je],this._shader.uniforms.clipBounds=zt.clipBounds[je],this._vao.draw(Be.TRIANGLES,this._vertexCount));this._vao.unbind()}if(zt.showContour){var Mt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Mt.bind(),Mt.uniforms=ce;var kt=this._contourVAO;for(kt.bind(),je=0;je<3;++je)for(Mt.uniforms.permutation=F[je],Be.lineWidth(this.contourWidth[je]*this.pixelRatio),bt=0;bt>4)/16)/255,je=Math.floor(ce),rt=ce-je,bt=ge[1]*(Ie.value[1]+(Ie.value[2]&15)/16)/255,Ot=Math.floor(bt),it=bt-Ot;je+=1,Ot+=1;var Ke=Be.position;Ke[0]=Ke[1]=Ke[2]=0;for(var zt=0;zt<2;++zt)for(var Mt=zt?rt:1-rt,kt=0;kt<2;++kt)for(var $e=kt?it:1-it,De=je+zt,Me=Ot+kt,oe=Mt*$e,Ne=0;Ne<3;++Ne)Ke[Ne]+=this._field[Ne].get(De,Me)*oe;for(var vt=this._pickResult.level,lt=0;lt<3;++lt)if(vt[lt]=M.le(this.contourLevels[lt],Ke[lt]),vt[lt]<0)this.contourLevels[lt].length>0&&(vt[lt]=0);else if(vt[lt]Math.abs(Ve-Ke[lt])&&(vt[lt]+=1)}for(Be.index[0]=rt<.5?je:je+1,Be.index[1]=it<.5?Ot:Ot+1,Be.uv[0]=ce/ge[0],Be.uv[1]=bt/ge[1],Ne=0;Ne<3;++Ne)Be.dataCoordinate[Ne]=this._field[Ne].get(Be.index[0],Be.index[1]);return Be},W.padField=function(Ie,ge){var Be=ge.shape.slice(),ce=Ie.shape.slice();d.assign(Ie.lo(1,1).hi(Be[0],Be[1]),ge),d.assign(Ie.lo(1).hi(Be[0],1),ge.hi(Be[0],1)),d.assign(Ie.lo(1,ce[1]-1).hi(Be[0],1),ge.lo(0,Be[1]-1).hi(Be[0],1)),d.assign(Ie.lo(0,1).hi(1,Be[1]),ge.hi(1)),d.assign(Ie.lo(ce[0]-1,1).hi(1,Be[1]),ge.lo(Be[0]-1)),Ie.set(0,0,ge.get(0,0)),Ie.set(0,ce[1]-1,ge.get(0,Be[1]-1)),Ie.set(ce[0]-1,0,ge.get(Be[0]-1,0)),Ie.set(ce[0]-1,ce[1]-1,ge.get(Be[0]-1,Be[1]-1))};function Se(Ie,ge){return Array.isArray(Ie)?[ge(Ie[0]),ge(Ie[1]),ge(Ie[2])]:[ge(Ie),ge(Ie),ge(Ie)]}function Te(Ie){return Array.isArray(Ie)?Ie.length===3?[Ie[0],Ie[1],Ie[2],1]:[Ie[0],Ie[1],Ie[2],Ie[3]]:[0,0,0,1]}function be(Ie){if(Array.isArray(Ie)){if(Array.isArray(Ie))return[Te(Ie[0]),Te(Ie[1]),Te(Ie[2])];var ge=Te(Ie);return[ge.slice(),ge.slice(),ge.slice()]}}W.update=function(Ie){Ie=Ie||{},this.objectOffset=Ie.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Ie&&(this.contourWidth=Se(Ie.contourWidth,Number)),"showContour"in Ie&&(this.showContour=Se(Ie.showContour,Boolean)),"showSurface"in Ie&&(this.showSurface=!!Ie.showSurface),"contourTint"in Ie&&(this.contourTint=Se(Ie.contourTint,Boolean)),"contourColor"in Ie&&(this.contourColor=be(Ie.contourColor)),"contourProject"in Ie&&(this.contourProject=Se(Ie.contourProject,function(Vi){return Se(Vi,Boolean)})),"surfaceProject"in Ie&&(this.surfaceProject=Ie.surfaceProject),"dynamicColor"in Ie&&(this.dynamicColor=be(Ie.dynamicColor)),"dynamicTint"in Ie&&(this.dynamicTint=Se(Ie.dynamicTint,Number)),"dynamicWidth"in Ie&&(this.dynamicWidth=Se(Ie.dynamicWidth,Number)),"opacity"in Ie&&(this.opacity=Ie.opacity),"opacityscale"in Ie&&(this.opacityscale=Ie.opacityscale),"colorBounds"in Ie&&(this.colorBounds=Ie.colorBounds),"vertexColor"in Ie&&(this.vertexColor=Ie.vertexColor?1:0),"colormap"in Ie&&this._colorMap.setPixels(this.genColormap(Ie.colormap,this.opacityscale));var ge=Ie.field||Ie.coords&&Ie.coords[2]||null,Be=!1;if(ge||(this._field[2].shape[0]||this._field[2].shape[2]?ge=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ge=this._field[2].hi(0,0)),"field"in Ie||"coords"in Ie){var ce=(ge.shape[0]+2)*(ge.shape[1]+2);ce>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(s.nextPow2(ce))),this._field[2]=y(this._field[2].data,[ge.shape[0]+2,ge.shape[1]+2]),this.padField(this._field[2],ge),this.shape=ge.shape.slice();for(var je=this.shape,rt=0;rt<2;++rt)this._field[2].size>this._field[rt].data.length&&(c.freeFloat(this._field[rt].data),this._field[rt].data=c.mallocFloat(this._field[2].size)),this._field[rt]=y(this._field[rt].data,[je[0]+2,je[1]+2]);if(Ie.coords){var bt=Ie.coords;if(!Array.isArray(bt)||bt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(rt=0;rt<2;++rt){var Ot=bt[rt];for(kt=0;kt<2;++kt)if(Ot.shape[kt]!==je[kt])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[rt],Ot)}}else if(Ie.ticks){var it=Ie.ticks;if(!Array.isArray(it)||it.length!==2)throw new Error("gl-surface: invalid ticks");for(rt=0;rt<2;++rt){var Ke=it[rt];if((Array.isArray(Ke)||Ke.length)&&(Ke=y(Ke)),Ke.shape[0]!==je[rt])throw new Error("gl-surface: invalid tick length");var zt=y(Ke.data,je);zt.stride[rt]=Ke.stride[0],zt.stride[rt^1]=0,this.padField(this._field[rt],zt)}}else{for(rt=0;rt<2;++rt){var Mt=[0,0];Mt[rt]=1,this._field[rt]=y(this._field[rt].data,[je[0]+2,je[1]+2],Mt,0)}this._field[0].set(0,0,0);for(var kt=0;kt0){for(var mi=0;mi<5;++mi)jr.pop();ze-=1}continue e}}}Bi.push(ze)}this._contourOffsets[kr]=Ai,this._contourCounts[kr]=Bi}var Ei=c.mallocFloat(jr.length);for(rt=0;rtU||O<0||O>U)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[E,O],P.bind(),F.texImage2D(F.TEXTURE_2D,0,P.format,E,O,0,P.format,P.type,null),P._mipLevels=[0],P}function v(P,E,O,F,U,G){this.gl=P,this.handle=E,this.format=U,this.type=G,this._shape=[O,F],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,W=[this._wrapS,this._wrapT];Object.defineProperties(W,[{get:function(){return j._wrapS},set:function(H){return j.wrapS=H}},{get:function(){return j._wrapT},set:function(H){return j.wrapT=H}}]),this._wrapVector=W;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return j._shape[0]},set:function(H){return j.width=H}},{get:function(){return j._shape[1]},set:function(H){return j.height=H}}]),this._shapeVector=N}var C=v.prototype;Object.defineProperties(C,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var E=this.gl;if(this.type===E.FLOAT&&f.indexOf(P)>=0&&(E.getExtension("OES_texture_float_linear")||(P=E.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var E=this.gl;if(this.type===E.FLOAT&&f.indexOf(P)>=0&&(E.getExtension("OES_texture_float_linear")||(P=E.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var E=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,E!==this._anisoSamples){var O=this.gl.getExtension("EXT_texture_filter_anisotropic");O&&this.gl.texParameterf(this.gl.TEXTURE_2D,O.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var E=0;E<2;++E)if(h.indexOf(P[E])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var O=this.gl;return this.bind(),O.texParameteri(O.TEXTURE_2D,O.TEXTURE_WRAP_S,this._wrapS),O.texParameteri(O.TEXTURE_2D,O.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),C.bind=function(P){var E=this.gl;return P!==void 0&&E.activeTexture(E.TEXTURE0+(P|0)),E.bindTexture(E.TEXTURE_2D,this.handle),P!==void 0?P|0:E.getParameter(E.ACTIVE_TEXTURE)-E.TEXTURE0},C.dispose=function(){this.gl.deleteTexture(this.handle)},C.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),E=0;P>0;++E,P>>>=1)this._mipLevels.indexOf(E)<0&&this._mipLevels.push(E)},C.setPixels=function(P,E,O,F){var U=this.gl;this.bind(),Array.isArray(E)?(F=O,O=E[1]|0,E=E[0]|0):(E=E||0,O=O||0),F=F||0;var G=p(P)?P:P.raw;if(G){var j=this._mipLevels.indexOf(F)<0;j?(U.texImage2D(U.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(F)):U.texSubImage2D(U.TEXTURE_2D,F,E,O,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||E+P.shape[1]>this._shape[1]>>>F||O+P.shape[0]>this._shape[0]>>>F||E<0||O<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(U,E,O,F,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function M(P,E){return P.length===3?E[2]===1&&E[1]===P[0]*P[2]&&E[0]===P[2]:E[0]===1&&E[1]===P[0]}function A(P,E,O,F,U,G,j,W){var N=W.dtype,H=W.shape.slice();if(H.length<2||H.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,ae=0,me=M(H,W.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,me=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,me=!1,N="uint8");var Le=1;if(H.length===2)ae=P.LUMINANCE,H=[H[0],H[1],1],W=s(W.data,H,[W.stride[0],W.stride[1],1],W.offset);else if(H.length===3){if(H[2]===1)ae=P.ALPHA;else if(H[2]===2)ae=P.LUMINANCE_ALPHA;else if(H[2]===3)ae=P.RGB;else if(H[2]===4)ae=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Le=H[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((ae===P.LUMINANCE||ae===P.ALPHA)&&(U===P.LUMINANCE||U===P.ALPHA)&&(ae=U),ae!==U)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Ce=W.size,de=j.indexOf(F)<0;if(de&&j.push(F),re===G&&me)W.offset===0&&W.data.length===Ce?de?P.texImage2D(P.TEXTURE_2D,F,U,H[0],H[1],0,U,G,W.data):P.texSubImage2D(P.TEXTURE_2D,F,E,O,H[0],H[1],U,G,W.data):de?P.texImage2D(P.TEXTURE_2D,F,U,H[0],H[1],0,U,G,W.data.subarray(W.offset,W.offset+Ce)):P.texSubImage2D(P.TEXTURE_2D,F,E,O,H[0],H[1],U,G,W.data.subarray(W.offset,W.offset+Ce));else{var te;G===P.FLOAT?te=l.mallocFloat32(Ce):te=l.mallocUint8(Ce);var Se=s(te,H,[H[2],H[2]*H[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?y(Se,W):u.assign(Se,W),de?P.texImage2D(P.TEXTURE_2D,F,U,H[0],H[1],0,U,G,te.subarray(0,Ce)):P.texSubImage2D(P.TEXTURE_2D,F,E,O,H[0],H[1],U,G,te.subarray(0,Ce)),G===P.FLOAT?l.freeFloat32(te):l.freeUint8(te)}}function L(P){var E=P.createTexture();return P.bindTexture(P.TEXTURE_2D,E),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),E}function x(P,E,O,F,U){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(E<0||E>G||O<0||O>G)throw new Error("gl-texture2d: Invalid texture shape");if(U===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,F,E,O,0,F,U,null),new v(P,j,E,O,F,U)}function k(P,E,O,F,U,G){var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,U,U,G,E),new v(P,j,O,F,U,G)}function S(P,E){var O=E.dtype,F=E.shape.slice(),U=P.getParameter(P.MAX_TEXTURE_SIZE);if(F[0]<0||F[0]>U||F[1]<0||F[1]>U)throw new Error("gl-texture2d: Invalid texture size");var G=M(F,E.stride.slice()),j=0;O==="float32"?j=P.FLOAT:O==="float64"?(j=P.FLOAT,G=!1,O="float32"):O==="uint8"?j=P.UNSIGNED_BYTE:(j=P.UNSIGNED_BYTE,G=!1,O="uint8");var W=0;if(F.length===2)W=P.LUMINANCE,F=[F[0],F[1],1],E=s(E.data,F,[E.stride[0],E.stride[1],1],E.offset);else if(F.length===3)if(F[2]===1)W=P.ALPHA;else if(F[2]===2)W=P.LUMINANCE_ALPHA;else if(F[2]===3)W=P.RGB;else if(F[2]===4)W=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");j===P.FLOAT&&!P.getExtension("OES_texture_float")&&(j=P.UNSIGNED_BYTE,G=!1);var N,H,re=E.size;if(G)E.offset===0&&E.data.length===re?N=E.data:N=E.data.subarray(E.offset,E.offset+re);else{var ae=[F[2],F[2]*F[0],1];H=l.malloc(re,O);var me=s(H,F,ae,0);(O==="float32"||O==="float64")&&j===P.UNSIGNED_BYTE?y(me,E):u.assign(me,E),N=H.subarray(0,re)}var Le=L(P);return P.texImage2D(P.TEXTURE_2D,0,W,F[0],F[1],0,W,j,N),G||l.free(H),new v(P,Le,F[0],F[1],W,j)}function m(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||d(P),typeof arguments[1]=="number")return x(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var E=arguments[1],O=p(E)?E:E.raw;if(O)return k(P,O,E.width|0,E.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(E.shape&&E.data&&E.stride)return S(P,E)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,u){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var l=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>l)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(y)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2];return o[0]=f*p-c*d,o[1]=c*h-l*p,o[2]=l*d-f*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return Math.sqrt(u*u+l*l+f*f)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=u;var s=o(2613);function u(l,f){var c=l[0],h=l[1],d=l[2],p=f[0],y=f[1],b=f[2];return Math.abs(c-p)<=s*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-y)<=s*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=u;var s=o(1091)();function u(l,f,c,h,d,p){var y,b;for(f||(f=3),c||(c=0),h?b=Math.min(h*f+c,l.length):b=l.length,y=c;y0&&(c=1/Math.sqrt(c),o[0]=s[0]*c,o[1]=s[1]*c,o[2]=s[2]*c),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var u=Math.random()*2*Math.PI,l=Math.random()*2-1,f=Math.sqrt(1-l*l)*s;return o[0]=Math.cos(u)*f,o[1]=Math.sin(u)*f,o[2]=l*s,o}},6894:function(i){i.exports=a;function a(o,s,u,l){var f=u[1],c=u[2],h=s[1]-f,d=s[2]-c,p=Math.sin(l),y=Math.cos(l);return o[0]=s[0],o[1]=f+h*y-d*p,o[2]=c+h*p+d*y,o}},109:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[2],h=s[0]-f,d=s[2]-c,p=Math.sin(l),y=Math.cos(l);return o[0]=f+d*p+h*y,o[1]=s[1],o[2]=c+d*y-h*p,o}},8692:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[1],h=s[0]-f,d=s[1]-c,p=Math.sin(l),y=Math.cos(l);return o[0]=f+h*y-d*p,o[1]=c+h*p+d*y,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o}},8489:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o}},1463:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s,o[1]=u,o[2]=l,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return u*u+l*l+f*f}},3066:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2];return s*s+u*u+l*l}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o}},492:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2];return o[0]=l*u[0]+f*u[3]+c*u[6],o[1]=l*u[1]+f*u[4]+c*u[7],o[2]=l*u[2]+f*u[5]+c*u[8],o}},5673:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[3]*l+u[7]*f+u[11]*c+u[15];return h=h||1,o[0]=(u[0]*l+u[4]*f+u[8]*c+u[12])/h,o[1]=(u[1]*l+u[5]*f+u[9]*c+u[13])/h,o[2]=(u[2]*l+u[6]*f+u[10]*c+u[14])/h,o}},264:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],y=u[3],b=y*l+d*c-p*f,v=y*f+p*l-h*c,C=y*c+h*f-d*l,M=-h*l-d*f-p*c;return o[0]=b*y+M*-h+v*-p-C*-d,o[1]=v*y+M*-d+C*-h-b*-p,o[2]=C*y+M*-p+b*-d-v*-h,o}},4361:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]+u[0],o[1]=s[1]+u[1],o[2]=s[2]+u[2],o[3]=s[3]+u[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return Math.sqrt(u*u+l*l+f*f+c*c)}},1373:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o[3]=s[3]/u[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,u,l){var f=new Float32Array(4);return f[0]=o,f[1]=s,f[2]=u,f[3]=l,f}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return Math.sqrt(s*s+u*u+l*l+f*f)}},2573:function(i){i.exports=a;function a(o,s,u,l){var f=s[0],c=s[1],h=s[2],d=s[3];return o[0]=f+l*(u[0]-f),o[1]=c+l*(u[1]-c),o[2]=h+l*(u[2]-h),o[3]=d+l*(u[3]-d),o}},160:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.max(s[0],u[0]),o[1]=Math.max(s[1],u[1]),o[2]=Math.max(s[2],u[2]),o[3]=Math.max(s[3],u[3]),o}},2334:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.min(s[0],u[0]),o[1]=Math.min(s[1],u[1]),o[2]=Math.min(s[2],u[2]),o[3]=Math.min(s[3],u[3]),o}},3576:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u[0],o[1]=s[1]*u[1],o[2]=s[2]*u[2],o[3]=s[3]*u[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var u=s[0],l=s[1],f=s[2],c=s[3],h=u*u+l*l+f*f+c*c;return h>0&&(h=1/Math.sqrt(h),o[0]=u*h,o[1]=l*h,o[2]=f*h,o[3]=c*h),o}},9131:function(i,a,o){var s=o(5177),u=o(9288);i.exports=l;function l(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),s(f,f),u(f,f,c),f}},9288:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o[3]=s[3]*u,o}},4844:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o[3]=s[3]+u[3]*l,o}},4578:function(i){i.exports=a;function a(o,s,u,l,f){return o[0]=s,o[1]=u,o[2]=l,o[3]=f,o}},7960:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return u*u+l*l+f*f+c*c}},483:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return s*s+u*u+l*l+f*f}},6860:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o[3]=s[3]-u[3],o}},5352:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=s[3];return o[0]=u[0]*l+u[4]*f+u[8]*c+u[12]*h,o[1]=u[1]*l+u[5]*f+u[9]*c+u[13]*h,o[2]=u[2]*l+u[6]*f+u[10]*c+u[14]*h,o[3]=u[3]*l+u[7]*f+u[11]*c+u[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],y=u[3],b=y*l+d*c-p*f,v=y*f+p*l-h*c,C=y*c+h*f-d*l,M=-h*l-d*f-p*c;return o[0]=b*y+M*-h+v*-p-C*-d,o[1]=v*y+M*-d+C*-h-b*-p,o[2]=C*y+M*-p+b*-d-v*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),u=o(6468);i.exports=l;function l(f){for(var c=Array.isArray(f)?f:s(f),h=0;h0)continue;lt=oe.slice(0,1).join("")}return Be(lt),Ce+=lt.length,N=N.slice(lt.length),N.length}while(!0)}function kt(){return/[^a-fA-F0-9]/.test(j)?(Be(N.join("")),G=h,F):(N.push(j),W=j,F+1)}function $e(){return j==="."||/[eE]/.test(j)?(N.push(j),G=M,W=j,F+1):j==="x"&&N.length===1&&N[0]==="0"?(G=m,N.push(j),W=j,F+1):/[^\d]/.test(j)?(Be(N.join("")),G=h,F):(N.push(j),W=j,F+1)}function De(){return j==="f"&&(N.push(j),W=j,F+=1),/[eE]/.test(j)||(j==="-"||j==="+")&&/[eE]/.test(W)?(N.push(j),W=j,F+1):/[^\d]/.test(j)?(Be(N.join("")),G=h,F):(N.push(j),W=j,F+1)}function Me(){if(/[^\d\w_]/.test(j)){var oe=N.join("");return ge[oe]?G=x:Ie[oe]?G=L:G=A,Be(N.join("")),G=h,F}return N.push(j),W=j,F+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=u;function u(l,f){var c=s(f),h=[];return h=h.concat(c(l)),h=h.concat(c(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],u=0;u>1,b=-7,v=u?f-1:0,C=u?-1:1,M=o[s+v];for(v+=C,c=M&(1<<-b)-1,M>>=-b,b+=d;b>0;c=c*256+o[s+v],v+=C,b-=8);for(h=c&(1<<-b)-1,c>>=-b,b+=l;b>0;h=h*256+o[s+v],v+=C,b-=8);if(c===0)c=1-y;else{if(c===p)return h?NaN:(M?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-y}return(M?-1:1)*h*Math.pow(2,c-l)},a.write=function(o,s,u,l,f,c){var h,d,p,y=c*8-f-1,b=(1<>1,C=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=l?0:c-1,A=l?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(p=Math.pow(2,-h))<1&&(h--,p*=2),h+v>=1?s+=C/p:s+=C*Math.pow(2,1-v),s*p>=2&&(h++,p/=2),h+v>=b?(d=0,h=b):h+v>=1?(d=(s*p-1)*Math.pow(2,f),h=h+v):(d=s*Math.pow(2,v-1)*Math.pow(2,f),h=0));f>=8;o[u+M]=d&255,M+=A,d/=256,f-=8);for(h=h<0;o[u+M]=h&255,M+=A,h/=256,y-=8);o[u+M-A]|=L*128}},8954:function(i,a,o){"use strict";i.exports=v;var s=o(3250),u=o(6803).Fw;function l(C,M,A){this.vertices=C,this.adjacent=M,this.boundary=A,this.lastVisited=-1}l.prototype.flip=function(){var C=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=C;var M=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=M};function f(C,M,A){this.vertices=C,this.cell=M,this.index=A}function c(C,M){return u(C.vertices,M.vertices)}function h(C){return function(){var M=this.tuple;return C.apply(this,M)}}function d(C){var M=s[C+1];return M||(M=s),h(M)}var p=[];function y(C,M,A){this.dimension=C,this.vertices=M,this.simplices=A,this.interior=A.filter(function(k){return!k.boundary}),this.tuple=new Array(C+1);for(var L=0;L<=C;++L)this.tuple[L]=this.vertices[L];var x=p[C];x||(x=p[C]=d(C)),this.orient=x}var b=y.prototype;b.handleBoundaryDegeneracy=function(C,M){var A=this.dimension,L=this.vertices.length-1,x=this.tuple,k=this.vertices,S=[C];for(C.lastVisited=-L;S.length>0;){C=S.pop();for(var m=C.adjacent,P=0;P<=A;++P){var E=m[P];if(!(!E.boundary||E.lastVisited<=-L)){for(var O=E.vertices,F=0;F<=A;++F){var U=O[F];U<0?x[F]=M:x[F]=k[U]}var G=this.orient();if(G>0)return E;E.lastVisited=-L,G===0&&S.push(E)}}}return null},b.walk=function(C,M){var A=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,S=M?this.interior.length*Math.random()|0:this.interior.length-1,m=this.interior[S];e:for(;!m.boundary;){for(var P=m.vertices,E=m.adjacent,O=0;O<=L;++O)k[O]=x[P[O]];m.lastVisited=A;for(var O=0;O<=L;++O){var F=E[O];if(!(F.lastVisited>=A)){var U=k[O];k[O]=C;var G=this.orient();if(k[O]=U,G<0){m=F;continue e}else F.boundary?F.lastVisited=-A:F.lastVisited=A}}return}return m},b.addPeaks=function(C,M){var A=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,S=this.interior,m=this.simplices,P=[M];M.lastVisited=A,M.vertices[M.vertices.indexOf(-1)]=A,M.boundary=!1,S.push(M);for(var E=[];P.length>0;){var M=P.pop(),O=M.vertices,F=M.adjacent,U=O.indexOf(A);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var j=F[G];if(!(!j.boundary||j.lastVisited>=A)){var W=j.vertices;if(j.lastVisited!==-A){for(var N=0,H=0;H<=L;++H)W[H]<0?(N=H,k[H]=C):k[H]=x[W[H]];var re=this.orient();if(re>0){W[N]=A,j.boundary=!1,S.push(j),P.push(j),j.lastVisited=A;continue}else j.lastVisited=-A}var ae=j.adjacent,me=O.slice(),Le=F.slice(),Ce=new l(me,Le,!0);m.push(Ce);var de=ae.indexOf(M);if(!(de<0)){ae[de]=Ce,Le[U]=j,me[G]=-1,Le[G]=M,F[G]=Ce,Ce.flip();for(var H=0;H<=L;++H){var te=me[H];if(!(te<0||te===A)){for(var Se=new Array(L-1),Te=0,be=0;be<=L;++be){var He=me[be];He<0||be===H||(Se[Te++]=He)}E.push(new f(Se,Ce,H))}}}}}}}E.sort(c);for(var G=0;G+1=0?S[P++]=m[O]:E=O&1;if(E===(C&1)){var F=S[0];S[0]=S[1],S[1]=F}M.push(S)}}return M};function v(C,M){var A=C.length;if(A===0)throw new Error("Must have at least d+1 points");var L=C[0].length;if(A<=L)throw new Error("Must input at least d+1 points");var x=C.slice(0,L+1),k=s.apply(void 0,x);if(k===0)throw new Error("Input not in general position");for(var S=new Array(L+1),m=0;m<=L;++m)S[m]=m;k<0&&(S[0]=1,S[1]=0);for(var P=new l(S,new Array(L+1),!1),E=P.adjacent,O=new Array(L+2),m=0;m<=L;++m){for(var F=S.slice(),U=0;U<=L;++U)U===m&&(F[U]=-1);var G=F[0];F[0]=F[1],F[1]=G;var j=new l(F,new Array(L+1),!0);E[m]=j,O[m]=j}O[L+1]=P;for(var m=0;m<=L;++m)for(var F=E[m].vertices,W=E[m].adjacent,U=0;U<=L;++U){var N=F[U];if(N<0){W[U]=P;continue}for(var H=0;H<=L;++H)E[H].vertices.indexOf(N)<0&&(W[U]=E[H])}for(var re=new y(L,x,O),ae=!!M,m=L+1;m3*(O+1)?y(this,E):this.left.insert(E):this.left=k([E]);else if(E[0]>this.mid)this.right?4*(this.right.count+1)>3*(O+1)?y(this,E):this.right.insert(E):this.right=k([E]);else{var F=s.ge(this.leftPoints,E,L),U=s.ge(this.rightPoints,E,x);this.leftPoints.splice(F,0,E),this.rightPoints.splice(U,0,E)}},h.remove=function(E){var O=this.count-this.leftPoints;if(E[1]3*(O-1))return b(this,E);var U=this.left.remove(E);return U===f?(this.left=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else if(E[0]>this.mid){if(!this.right)return u;var G=this.left?this.left.count:0;if(4*G>3*(O-1))return b(this,E);var U=this.right.remove(E);return U===f?(this.right=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else{if(this.count===1)return this.leftPoints[0]===E?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===E){if(this.left&&this.right){for(var j=this,W=this.left;W.right;)j=W,W=W.right;if(j===this)W.right=this.right;else{var N=this.left,U=this.right;j.count-=W.count,j.right=W.left,W.left=N,W.right=U}d(this,W),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return l}for(var N=s.ge(this.leftPoints,E,L);N=0&&E[U][1]>=O;--U){var G=F(E[U]);if(G)return G}}function M(E,O){for(var F=0;Fthis.mid){if(this.right){var F=this.right.queryPoint(E,O);if(F)return F}return C(this.rightPoints,E,O)}else return M(this.leftPoints,O)},h.queryInterval=function(E,O,F){if(Ethis.mid&&this.right){var U=this.right.queryInterval(E,O,F);if(U)return U}return Othis.mid?C(this.rightPoints,E,F):M(this.leftPoints,F)};function A(E,O){return E-O}function L(E,O){var F=E[0]-O[0];return F||E[1]-O[1]}function x(E,O){var F=E[1]-O[1];return F||E[0]-O[0]}function k(E){if(E.length===0)return null;for(var O=[],F=0;F>1],G=[],j=[],W=[],F=0;F13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,u){return o*(1-u)+s*u}i.exports=a},2652:function(i,a,o){var s=o(4335),u=o(6864),l=o(1903),f=o(9921),c=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},p=u(),y=u(),b=[0,0,0,0],v=[[0,0,0],[0,0,0],[0,0,0]],C=[0,0,0];i.exports=function(k,S,m,P,E,O){if(S||(S=[0,0,0]),m||(m=[0,0,0]),P||(P=[0,0,0]),E||(E=[0,0,0,1]),O||(O=[0,0,0,1]),!s(p,k)||(l(y,p),y[3]=0,y[7]=0,y[11]=0,y[15]=1,Math.abs(f(y)<1e-8)))return!1;var F=p[3],U=p[7],G=p[11],j=p[12],W=p[13],N=p[14],H=p[15];if(F!==0||U!==0||G!==0){b[0]=F,b[1]=U,b[2]=G,b[3]=H;var re=c(y,y);if(!re)return!1;h(y,y),M(E,b,y)}else E[0]=E[1]=E[2]=0,E[3]=1;if(S[0]=j,S[1]=W,S[2]=N,A(v,p),m[0]=d.length(v[0]),d.normalize(v[0],v[0]),P[0]=d.dot(v[0],v[1]),L(v[1],v[1],v[0],1,-P[0]),m[1]=d.length(v[1]),d.normalize(v[1],v[1]),P[0]/=m[1],P[1]=d.dot(v[0],v[2]),L(v[2],v[2],v[0],1,-P[1]),P[2]=d.dot(v[1],v[2]),L(v[2],v[2],v[1],1,-P[2]),m[2]=d.length(v[2]),d.normalize(v[2],v[2]),P[1]/=m[2],P[2]/=m[2],d.cross(C,v[1],v[2]),d.dot(v[0],C)<0)for(var ae=0;ae<3;ae++)m[ae]*=-1,v[ae][0]*=-1,v[ae][1]*=-1,v[ae][2]*=-1;return O[0]=.5*Math.sqrt(Math.max(1+v[0][0]-v[1][1]-v[2][2],0)),O[1]=.5*Math.sqrt(Math.max(1-v[0][0]+v[1][1]-v[2][2],0)),O[2]=.5*Math.sqrt(Math.max(1-v[0][0]-v[1][1]+v[2][2],0)),O[3]=.5*Math.sqrt(Math.max(1+v[0][0]+v[1][1]+v[2][2],0)),v[2][1]>v[1][2]&&(O[0]=-O[0]),v[0][2]>v[2][0]&&(O[1]=-O[1]),v[1][0]>v[0][1]&&(O[2]=-O[2]),!0};function M(x,k,S){var m=k[0],P=k[1],E=k[2],O=k[3];return x[0]=S[0]*m+S[4]*P+S[8]*E+S[12]*O,x[1]=S[1]*m+S[5]*P+S[9]*E+S[13]*O,x[2]=S[2]*m+S[6]*P+S[10]*E+S[14]*O,x[3]=S[3]*m+S[7]*P+S[11]*E+S[15]*O,x}function A(x,k){x[0][0]=k[0],x[0][1]=k[1],x[0][2]=k[2],x[1][0]=k[4],x[1][1]=k[5],x[1][2]=k[6],x[2][0]=k[8],x[2][1]=k[9],x[2][2]=k[10]}function L(x,k,S,m,P){x[0]=k[0]*m+S[0]*P,x[1]=k[1]*m+S[1]*P,x[2]=k[2]*m+S[2]*P}},4335:function(i){i.exports=function(o,s){var u=s[15];if(u===0)return!1;for(var l=1/u,f=0;f<16;f++)o[f]=s[f]*l;return!0}},7442:function(i,a,o){var s=o(6658),u=o(7182),l=o(2652),f=o(9921),c=o(8648),h=b(),d=b(),p=b();i.exports=y;function y(M,A,L,x){if(f(A)===0||f(L)===0)return!1;var k=l(A,h.translate,h.scale,h.skew,h.perspective,h.quaternion),S=l(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!k||!S?!1:(s(p.translate,h.translate,d.translate,x),s(p.skew,h.skew,d.skew,x),s(p.scale,h.scale,d.scale,x),s(p.perspective,h.perspective,d.perspective,x),c(p.quaternion,h.quaternion,d.quaternion,x),u(M,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function b(){return{translate:v(),scale:v(1),skew:v(),perspective:C(),quaternion:C()}}function v(M){return[M||0,M||0,M||0]}function C(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},u=s.create(),l=s.create();i.exports=function(c,h,d,p,y,b){return s.identity(c),s.fromRotationTranslation(c,b,h),c[3]=y[0],c[7]=y[1],c[11]=y[2],c[15]=y[3],s.identity(l),p[2]!==0&&(l[9]=p[2],s.multiply(c,c,l)),p[1]!==0&&(l[9]=0,l[8]=p[1],s.multiply(c,c,l)),p[0]!==0&&(l[8]=0,l[4]=p[0],s.multiply(c,c,l)),s.scale(c,c,d),c}},1811:function(i,a,o){"use strict";var s=o(2478),u=o(7442),l=o(7608),f=o(5567),c=o(2408),h=o(7089),d=o(6582),p=o(7656),y=o(2504),b=o(3536),v=[0,0,0];i.exports=L;function C(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var M=C.prototype;M.recalcMatrix=function(x){var k=this._time,S=s.le(k,x),m=this.computedMatrix;if(!(S<0)){var P=this._components;if(S===k.length-1)for(var E=16*S,O=0;O<16;++O)m[O]=P[E++];else{for(var F=k[S+1]-k[S],E=16*S,U=this.prevMatrix,G=!0,O=0;O<16;++O)U[O]=P[E++];for(var j=this.nextMatrix,O=0;O<16;++O)j[O]=P[E++],G=G&&U[O]===j[O];if(F<1e-6||G)for(var O=0;O<16;++O)m[O]=U[O];else u(m,U,j,(x-k[S])/F)}var W=this.computedUp;W[0]=m[1],W[1]=m[5],W[2]=m[9],b(W,W);var N=this.computedInverse;l(N,m);var H=this.computedEye,re=N[15];H[0]=N[12]/re,H[1]=N[13]/re,H[2]=N[14]/re;for(var ae=this.computedCenter,me=Math.exp(this.computedRadius[0]),O=0;O<3;++O)ae[O]=H[O]-m[2+4*O]*me}},M.idle=function(x){if(!(x1&&s(l[d[v-2]],l[d[v-1]],b)<=0;)v-=1,d.pop();for(d.push(y),v=p.length;v>1&&s(l[p[v-2]],l[p[v-1]],b)>=0;)v-=1,p.pop();p.push(y)}for(var C=new Array(p.length+d.length-2),M=0,c=0,A=d.length;c0;--L)C[M++]=p[L];return C}},351:function(i,a,o){"use strict";i.exports=u;var s=o(4687);function u(l,f){f||(f=l,l=window);var c=0,h=0,d=0,p={shift:!1,alt:!1,control:!1,meta:!1},y=!1;function b(E){var O=!1;return"altKey"in E&&(O=O||E.altKey!==p.alt,p.alt=!!E.altKey),"shiftKey"in E&&(O=O||E.shiftKey!==p.shift,p.shift=!!E.shiftKey),"ctrlKey"in E&&(O=O||E.ctrlKey!==p.control,p.control=!!E.ctrlKey),"metaKey"in E&&(O=O||E.metaKey!==p.meta,p.meta=!!E.metaKey),O}function v(E,O){var F=s.x(O),U=s.y(O);"buttons"in O&&(E=O.buttons|0),(E!==c||F!==h||U!==d||b(O))&&(c=E|0,h=F||0,d=U||0,f&&f(c,h,d,p))}function C(E){v(0,E)}function M(){(c||h||d||p.shift||p.alt||p.meta||p.control)&&(h=d=0,c=0,p.shift=p.alt=p.control=p.meta=!1,f&&f(0,0,0,p))}function A(E){b(E)&&f&&f(c,h,d,p)}function L(E){s.buttons(E)===0?v(0,E):v(c,E)}function x(E){v(c|s.buttons(E),E)}function k(E){v(c&~s.buttons(E),E)}function S(){y||(y=!0,l.addEventListener("mousemove",L),l.addEventListener("mousedown",x),l.addEventListener("mouseup",k),l.addEventListener("mouseleave",C),l.addEventListener("mouseenter",C),l.addEventListener("mouseout",C),l.addEventListener("mouseover",C),l.addEventListener("blur",M),l.addEventListener("keyup",A),l.addEventListener("keydown",A),l.addEventListener("keypress",A),l!==window&&(window.addEventListener("blur",M),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}function m(){y&&(y=!1,l.removeEventListener("mousemove",L),l.removeEventListener("mousedown",x),l.removeEventListener("mouseup",k),l.removeEventListener("mouseleave",C),l.removeEventListener("mouseenter",C),l.removeEventListener("mouseout",C),l.removeEventListener("mouseover",C),l.removeEventListener("blur",M),l.removeEventListener("keyup",A),l.removeEventListener("keydown",A),l.removeEventListener("keypress",A),l!==window&&(window.removeEventListener("blur",M),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))}S();var P={element:l};return Object.defineProperties(P,{enabled:{get:function(){return y},set:function(E){E?S():m()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(u,l,f){l=l||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,h=u.clientY||0,d=s(l);return f[0]=c-d.left,f[1]=h-d.top,f}function s(u){return u===window||u===document||u===document.body?a:u.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var c=f.which;if(c===2)return 4;if(c===3)return 2;if(c>0)return 1<=0)return 1<0){if(Le=1,te[Te++]=p(S[O],M,A,L),O+=re,x>0)for(me=1,F=S[O],be=te[Te]=p(F,M,A,L),ge=te[Te+He],je=te[Te+Be],Ot=te[Te+rt],(be!==ge||be!==je||be!==Ot)&&(G=S[O+U],W=S[O+j],H=S[O+N],h(me,Le,F,G,W,H,be,ge,je,Ot,M,A,L),it=Se[Te]=Ce++),Te+=1,O+=re,me=2;me0)for(me=1,F=S[O],be=te[Te]=p(F,M,A,L),ge=te[Te+He],je=te[Te+Be],Ot=te[Te+rt],(be!==ge||be!==je||be!==Ot)&&(G=S[O+U],W=S[O+j],H=S[O+N],h(me,Le,F,G,W,H,be,ge,je,Ot,M,A,L),it=Se[Te]=Ce++,Ot!==je&&d(Se[Te+Be],it,W,H,je,Ot,M,A,L)),Te+=1,O+=re,me=2;me0){if(me=1,te[Te++]=p(S[O],M,A,L),O+=re,k>0)for(Le=1,F=S[O],be=te[Te]=p(F,M,A,L),je=te[Te+Be],ge=te[Te+He],Ot=te[Te+rt],(be!==je||be!==ge||be!==Ot)&&(G=S[O+U],W=S[O+j],H=S[O+N],h(me,Le,F,G,W,H,be,je,ge,Ot,M,A,L),it=Se[Te]=Ce++),Te+=1,O+=re,Le=2;Le0)for(Le=1,F=S[O],be=te[Te]=p(F,M,A,L),je=te[Te+Be],ge=te[Te+He],Ot=te[Te+rt],(be!==je||be!==ge||be!==Ot)&&(G=S[O+U],W=S[O+j],H=S[O+N],h(me,Le,F,G,W,H,be,je,ge,Ot,M,A,L),it=Se[Te]=Ce++,Ot!==je&&d(Se[Te+Be],it,H,G,Ot,je,M,A,L)),Te+=1,O+=re,Le=2;Le 0"),typeof c.vertex!="function"&&h("Must specify vertex creation function"),typeof c.cell!="function"&&h("Must specify cell creation function"),typeof c.phase!="function"&&h("Must specify phase function");for(var b=c.getters||[],v=new Array(p),C=0;C=0?v[C]=!0:v[C]=!1;return l(c.vertex,c.cell,c.phase,y,d,v)}},6199:function(i,a,o){"use strict";var s=o(1338),u={zero:function(L,x,k,S){var m=L[0],P=k[0];S|=0;var E=0,O=P;for(E=0;E2&&E[1]>2&&S(P.pick(-1,-1).lo(1,1).hi(E[0]-2,E[1]-2),m.pick(-1,-1,0).lo(1,1).hi(E[0]-2,E[1]-2),m.pick(-1,-1,1).lo(1,1).hi(E[0]-2,E[1]-2)),E[1]>2&&(k(P.pick(0,-1).lo(1).hi(E[1]-2),m.pick(0,-1,1).lo(1).hi(E[1]-2)),x(m.pick(0,-1,0).lo(1).hi(E[1]-2))),E[1]>2&&(k(P.pick(E[0]-1,-1).lo(1).hi(E[1]-2),m.pick(E[0]-1,-1,1).lo(1).hi(E[1]-2)),x(m.pick(E[0]-1,-1,0).lo(1).hi(E[1]-2))),E[0]>2&&(k(P.pick(-1,0).lo(1).hi(E[0]-2),m.pick(-1,0,0).lo(1).hi(E[0]-2)),x(m.pick(-1,0,1).lo(1).hi(E[0]-2))),E[0]>2&&(k(P.pick(-1,E[1]-1).lo(1).hi(E[0]-2),m.pick(-1,E[1]-1,0).lo(1).hi(E[0]-2)),x(m.pick(-1,E[1]-1,1).lo(1).hi(E[0]-2))),m.set(0,0,0,0),m.set(0,0,1,0),m.set(E[0]-1,0,0,0),m.set(E[0]-1,0,1,0),m.set(0,E[1]-1,0,0),m.set(0,E[1]-1,1,0),m.set(E[0]-1,E[1]-1,0,0),m.set(E[0]-1,E[1]-1,1,0),m}}function A(L){var x=L.join(),E=p[x];if(E)return E;for(var k=L.length,S=[b,v],m=1;m<=k;++m)S.push(C(m));var P=M,E=P.apply(void 0,S);return p[x]=E,E}i.exports=function(x,k,S){if(Array.isArray(S)||(typeof S=="string"?S=s(k.dimension,S):S=s(k.dimension,"clamp")),k.size===0)return x;if(k.dimension===0)return x.set(0),x;var m=A(S);return m(x,k)}},4317:function(i){"use strict";function a(f,c){var h=Math.floor(c),d=c-h,p=0<=h&&h0;){W<64?(x=W,W=0):(x=64,W-=64);for(var N=p[1]|0;N>0;){N<64?(k=N,N=0):(k=64,N-=64),v=G+W*m+N*P,A=j+W*O+N*F;var H=0,re=0,ae=0,me=E,Le=m-S*E,Ce=P-x*m,de=U,te=O-S*U,Se=F-x*O;for(ae=0;ae0;){F<64?(x=F,F=0):(x=64,F-=64);for(var U=p[0]|0;U>0;){U<64?(L=U,U=0):(L=64,U-=64),v=E+F*S+U*k,A=O+F*P+U*m;var G=0,j=0,W=S,N=k-x*S,H=P,re=m-x*P;for(j=0;j0;){j<64?(k=j,j=0):(k=64,j-=64);for(var W=p[0]|0;W>0;){W<64?(L=W,W=0):(L=64,W-=64);for(var N=p[1]|0;N>0;){N<64?(x=N,N=0):(x=64,N-=64),v=U+j*P+W*S+N*m,A=G+j*F+W*E+N*O;var H=0,re=0,ae=0,me=P,Le=S-k*P,Ce=m-L*S,de=F,te=E-k*F,Se=O-L*E;for(ae=0;aeC;){H=0,re=G-x;t:for(W=0;Wme)break t;re+=E,H+=O}for(H=G,re=G-x,W=0;W>1,N=W-U,H=W+U,re=G,ae=N,me=W,Le=H,Ce=j,de=M+1,te=A-1,Se=!0,Te,be,He,Ie,ge,Be,ce,je,rt,bt=0,Ot=0,it=0,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt=P,or=b(jt),yr=b(jt);zt=k*re,Mt=k*ae,Lt=x;e:for(Ke=0;Ke0){be=re,re=ae,ae=be;break e}if(it<0)break e;Lt+=O}zt=k*Le,Mt=k*Ce,Lt=x;e:for(Ke=0;Ke0){be=Le,Le=Ce,Ce=be;break e}if(it<0)break e;Lt+=O}zt=k*re,Mt=k*me,Lt=x;e:for(Ke=0;Ke0){be=re,re=me,me=be;break e}if(it<0)break e;Lt+=O}zt=k*ae,Mt=k*me,Lt=x;e:for(Ke=0;Ke0){be=ae,ae=me,me=be;break e}if(it<0)break e;Lt+=O}zt=k*re,Mt=k*Le,Lt=x;e:for(Ke=0;Ke0){be=re,re=Le,Le=be;break e}if(it<0)break e;Lt+=O}zt=k*me,Mt=k*Le,Lt=x;e:for(Ke=0;Ke0){be=me,me=Le,Le=be;break e}if(it<0)break e;Lt+=O}zt=k*ae,Mt=k*Ce,Lt=x;e:for(Ke=0;Ke0){be=ae,ae=Ce,Ce=be;break e}if(it<0)break e;Lt+=O}zt=k*ae,Mt=k*me,Lt=x;e:for(Ke=0;Ke0){be=ae,ae=me,me=be;break e}if(it<0)break e;Lt+=O}zt=k*Le,Mt=k*Ce,Lt=x;e:for(Ke=0;Ke0){be=Le,Le=Ce,Ce=be;break e}if(it<0)break e;Lt+=O}for(zt=k*re,Mt=k*ae,kt=k*me,$e=k*Le,De=k*Ce,Me=k*G,oe=k*W,Ne=k*j,tt=0,Lt=x,Ke=0;Ke0)te--;else if(it<0){for(zt=k*Be,Mt=k*de,kt=k*te,Lt=x,Ke=0;Ke0)for(;;){ce=x+te*k,tt=0;e:for(Ke=0;Ke0){if(--tej){e:for(;;){for(ce=x+de*k,tt=0,Lt=x,Ke=0;Ke1&&C?A(v,C[0],C[1]):A(v)}var d={"uint32,1,0":function(y,b){return function(v){var C=v.data,M=v.offset|0,A=v.shape,L=v.stride,x=L[0]|0,k=A[0]|0,S=L[1]|0,m=A[1]|0,P=S,E=S,O=1;k<=32?y(0,k-1,C,M,x,S,k,m,P,E,O):b(0,k-1,C,M,x,S,k,m,P,E,O)}}};function p(y,b){var v=[b,y].join(","),C=d[v],M=f(y,b),A=h(y,b,M);return C(M,A)}i.exports=p},446:function(i,a,o){"use strict";var s=o(7640),u={};function l(f){var c=f.order,h=f.dtype,d=[c,h],p=d.join(":"),y=u[p];return y||(u[p]=y=s(c,h)),y(f),f}i.exports=l},9618:function(i,a,o){var s=o(7163),u=typeof Float64Array!="undefined";function l(b,v){return b[0]-v[0]}function f(){var b=this.stride,v=new Array(b.length),C;for(C=0;C=0&&(S=x|0,k+=P*S,m-=S),new M(this.data,m,P,k)},A.step=function(x){var k=this.shape[0],S=this.stride[0],m=this.offset,P=0,E=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(m+=S*(k-1),k=E(-k/P)):k=E(k/P),S*=P),new M(this.data,k,S,m)},A.transpose=function(x){x=x===void 0?0:x|0;var k=this.shape,S=this.stride;return new M(this.data,k[x],S[x],this.offset)},A.pick=function(x){var k=[],S=[],m=this.offset;typeof x=="number"&&x>=0?m=m+this.stride[0]*x|0:(k.push(this.shape[0]),S.push(this.stride[0]));var P=v[k.length+1];return P(this.data,k,S,m)},function(x,k,S,m){return new M(x,k[0],S[0],m)}},2:function(b,v,C){function M(L,x,k,S,m,P){this.data=L,this.shape=[x,k],this.stride=[S,m],this.offset=P|0}var A=M.prototype;return A.dtype=b,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(x,k,S){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k,S):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]=S},A.get=function(x,k){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]},A.index=function(x,k){return this.offset+this.stride[0]*x+this.stride[1]*k},A.hi=function(x,k){return new M(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(x,k){var S=this.offset,m=0,P=this.shape[0],E=this.shape[1],O=this.stride[0],F=this.stride[1];return typeof x=="number"&&x>=0&&(m=x|0,S+=O*m,P-=m),typeof k=="number"&&k>=0&&(m=k|0,S+=F*m,E-=m),new M(this.data,P,E,O,F,S)},A.step=function(x,k){var S=this.shape[0],m=this.shape[1],P=this.stride[0],E=this.stride[1],O=this.offset,F=0,U=Math.ceil;return typeof x=="number"&&(F=x|0,F<0?(O+=P*(S-1),S=U(-S/F)):S=U(S/F),P*=F),typeof k=="number"&&(F=k|0,F<0?(O+=E*(m-1),m=U(-m/F)):m=U(m/F),E*=F),new M(this.data,S,m,P,E,O)},A.transpose=function(x,k){x=x===void 0?0:x|0,k=k===void 0?1:k|0;var S=this.shape,m=this.stride;return new M(this.data,S[x],S[k],m[x],m[k],this.offset)},A.pick=function(x,k){var S=[],m=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(S.push(this.shape[0]),m.push(this.stride[0])),typeof k=="number"&&k>=0?P=P+this.stride[1]*k|0:(S.push(this.shape[1]),m.push(this.stride[1]));var E=v[S.length+1];return E(this.data,S,m,P)},function(x,k,S,m){return new M(x,k[0],k[1],S[0],S[1],m)}},3:function(b,v,C){function M(L,x,k,S,m,P,E,O){this.data=L,this.shape=[x,k,S],this.stride=[m,P,E],this.offset=O|0}var A=M.prototype;return A.dtype=b,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var x=Math.abs(this.stride[0]),k=Math.abs(this.stride[1]),S=Math.abs(this.stride[2]);return x>k?k>S?[2,1,0]:x>S?[1,2,0]:[1,0,2]:x>S?[2,0,1]:S>k?[0,1,2]:[0,2,1]}}),A.set=function(x,k,S,m){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S,m):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S]=m},A.get=function(x,k,S){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S]},A.index=function(x,k,S){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S},A.hi=function(x,k,S){return new M(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof S!="number"||S<0?this.shape[2]:S|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(x,k,S){var m=this.offset,P=0,E=this.shape[0],O=this.shape[1],F=this.shape[2],U=this.stride[0],G=this.stride[1],j=this.stride[2];return typeof x=="number"&&x>=0&&(P=x|0,m+=U*P,E-=P),typeof k=="number"&&k>=0&&(P=k|0,m+=G*P,O-=P),typeof S=="number"&&S>=0&&(P=S|0,m+=j*P,F-=P),new M(this.data,E,O,F,U,G,j,m)},A.step=function(x,k,S){var m=this.shape[0],P=this.shape[1],E=this.shape[2],O=this.stride[0],F=this.stride[1],U=this.stride[2],G=this.offset,j=0,W=Math.ceil;return typeof x=="number"&&(j=x|0,j<0?(G+=O*(m-1),m=W(-m/j)):m=W(m/j),O*=j),typeof k=="number"&&(j=k|0,j<0?(G+=F*(P-1),P=W(-P/j)):P=W(P/j),F*=j),typeof S=="number"&&(j=S|0,j<0?(G+=U*(E-1),E=W(-E/j)):E=W(E/j),U*=j),new M(this.data,m,P,E,O,F,U,G)},A.transpose=function(x,k,S){x=x===void 0?0:x|0,k=k===void 0?1:k|0,S=S===void 0?2:S|0;var m=this.shape,P=this.stride;return new M(this.data,m[x],m[k],m[S],P[x],P[k],P[S],this.offset)},A.pick=function(x,k,S){var m=[],P=[],E=this.offset;typeof x=="number"&&x>=0?E=E+this.stride[0]*x|0:(m.push(this.shape[0]),P.push(this.stride[0])),typeof k=="number"&&k>=0?E=E+this.stride[1]*k|0:(m.push(this.shape[1]),P.push(this.stride[1])),typeof S=="number"&&S>=0?E=E+this.stride[2]*S|0:(m.push(this.shape[2]),P.push(this.stride[2]));var O=v[m.length+1];return O(this.data,m,P,E)},function(x,k,S,m){return new M(x,k[0],k[1],k[2],S[0],S[1],S[2],m)}},4:function(b,v,C){function M(L,x,k,S,m,P,E,O,F,U){this.data=L,this.shape=[x,k,S,m],this.stride=[P,E,O,F],this.offset=U|0}var A=M.prototype;return A.dtype=b,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:C}),A.set=function(x,k,S,m,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m]=P},A.get=function(x,k,S,m){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m]},A.index=function(x,k,S,m){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m},A.hi=function(x,k,S,m){return new M(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof S!="number"||S<0?this.shape[2]:S|0,typeof m!="number"||m<0?this.shape[3]:m|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(x,k,S,m){var P=this.offset,E=0,O=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.stride[0],W=this.stride[1],N=this.stride[2],H=this.stride[3];return typeof x=="number"&&x>=0&&(E=x|0,P+=j*E,O-=E),typeof k=="number"&&k>=0&&(E=k|0,P+=W*E,F-=E),typeof S=="number"&&S>=0&&(E=S|0,P+=N*E,U-=E),typeof m=="number"&&m>=0&&(E=m|0,P+=H*E,G-=E),new M(this.data,O,F,U,G,j,W,N,H,P)},A.step=function(x,k,S,m){var P=this.shape[0],E=this.shape[1],O=this.shape[2],F=this.shape[3],U=this.stride[0],G=this.stride[1],j=this.stride[2],W=this.stride[3],N=this.offset,H=0,re=Math.ceil;return typeof x=="number"&&(H=x|0,H<0?(N+=U*(P-1),P=re(-P/H)):P=re(P/H),U*=H),typeof k=="number"&&(H=k|0,H<0?(N+=G*(E-1),E=re(-E/H)):E=re(E/H),G*=H),typeof S=="number"&&(H=S|0,H<0?(N+=j*(O-1),O=re(-O/H)):O=re(O/H),j*=H),typeof m=="number"&&(H=m|0,H<0?(N+=W*(F-1),F=re(-F/H)):F=re(F/H),W*=H),new M(this.data,P,E,O,F,U,G,j,W,N)},A.transpose=function(x,k,S,m){x=x===void 0?0:x|0,k=k===void 0?1:k|0,S=S===void 0?2:S|0,m=m===void 0?3:m|0;var P=this.shape,E=this.stride;return new M(this.data,P[x],P[k],P[S],P[m],E[x],E[k],E[S],E[m],this.offset)},A.pick=function(x,k,S,m){var P=[],E=[],O=this.offset;typeof x=="number"&&x>=0?O=O+this.stride[0]*x|0:(P.push(this.shape[0]),E.push(this.stride[0])),typeof k=="number"&&k>=0?O=O+this.stride[1]*k|0:(P.push(this.shape[1]),E.push(this.stride[1])),typeof S=="number"&&S>=0?O=O+this.stride[2]*S|0:(P.push(this.shape[2]),E.push(this.stride[2])),typeof m=="number"&&m>=0?O=O+this.stride[3]*m|0:(P.push(this.shape[3]),E.push(this.stride[3]));var F=v[P.length+1];return F(this.data,P,E,O)},function(x,k,S,m){return new M(x,k[0],k[1],k[2],k[3],S[0],S[1],S[2],S[3],m)}},5:function(v,C,M){function A(x,k,S,m,P,E,O,F,U,G,j,W){this.data=x,this.shape=[k,S,m,P,E],this.stride=[O,F,U,G,j],this.offset=W|0}var L=A.prototype;return L.dtype=v,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:M}),L.set=function(k,S,m,P,E,O){return v==="generic"?this.data.set(this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*E,O):this.data[this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*E]=O},L.get=function(k,S,m,P,E){return v==="generic"?this.data.get(this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*E):this.data[this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*E]},L.index=function(k,S,m,P,E){return this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*E},L.hi=function(k,S,m,P,E){return new A(this.data,typeof k!="number"||k<0?this.shape[0]:k|0,typeof S!="number"||S<0?this.shape[1]:S|0,typeof m!="number"||m<0?this.shape[2]:m|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof E!="number"||E<0?this.shape[4]:E|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(k,S,m,P,E){var O=this.offset,F=0,U=this.shape[0],G=this.shape[1],j=this.shape[2],W=this.shape[3],N=this.shape[4],H=this.stride[0],re=this.stride[1],ae=this.stride[2],me=this.stride[3],Le=this.stride[4];return typeof k=="number"&&k>=0&&(F=k|0,O+=H*F,U-=F),typeof S=="number"&&S>=0&&(F=S|0,O+=re*F,G-=F),typeof m=="number"&&m>=0&&(F=m|0,O+=ae*F,j-=F),typeof P=="number"&&P>=0&&(F=P|0,O+=me*F,W-=F),typeof E=="number"&&E>=0&&(F=E|0,O+=Le*F,N-=F),new A(this.data,U,G,j,W,N,H,re,ae,me,Le,O)},L.step=function(k,S,m,P,E){var O=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.shape[4],W=this.stride[0],N=this.stride[1],H=this.stride[2],re=this.stride[3],ae=this.stride[4],me=this.offset,Le=0,Ce=Math.ceil;return typeof k=="number"&&(Le=k|0,Le<0?(me+=W*(O-1),O=Ce(-O/Le)):O=Ce(O/Le),W*=Le),typeof S=="number"&&(Le=S|0,Le<0?(me+=N*(F-1),F=Ce(-F/Le)):F=Ce(F/Le),N*=Le),typeof m=="number"&&(Le=m|0,Le<0?(me+=H*(U-1),U=Ce(-U/Le)):U=Ce(U/Le),H*=Le),typeof P=="number"&&(Le=P|0,Le<0?(me+=re*(G-1),G=Ce(-G/Le)):G=Ce(G/Le),re*=Le),typeof E=="number"&&(Le=E|0,Le<0?(me+=ae*(j-1),j=Ce(-j/Le)):j=Ce(j/Le),ae*=Le),new A(this.data,O,F,U,G,j,W,N,H,re,ae,me)},L.transpose=function(k,S,m,P,E){k=k===void 0?0:k|0,S=S===void 0?1:S|0,m=m===void 0?2:m|0,P=P===void 0?3:P|0,E=E===void 0?4:E|0;var O=this.shape,F=this.stride;return new A(this.data,O[k],O[S],O[m],O[P],O[E],F[k],F[S],F[m],F[P],F[E],this.offset)},L.pick=function(k,S,m,P,E){var O=[],F=[],U=this.offset;typeof k=="number"&&k>=0?U=U+this.stride[0]*k|0:(O.push(this.shape[0]),F.push(this.stride[0])),typeof S=="number"&&S>=0?U=U+this.stride[1]*S|0:(O.push(this.shape[1]),F.push(this.stride[1])),typeof m=="number"&&m>=0?U=U+this.stride[2]*m|0:(O.push(this.shape[2]),F.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(O.push(this.shape[3]),F.push(this.stride[3])),typeof E=="number"&&E>=0?U=U+this.stride[4]*E|0:(O.push(this.shape[4]),F.push(this.stride[4]));var G=C[O.length+1];return G(this.data,O,F,U)},function(k,S,m,P){return new A(k,S[0],S[1],S[2],S[3],S[4],m[0],m[1],m[2],m[3],m[4],P)}}};function h(b,v){var C=v===-1?"T":String(v),M=c[C];return v===-1?M(b):v===0?M(b,p[b][0]):M(b,p[b],f)}function d(b){if(s(b))return"buffer";if(u)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function y(b,v,C,M){if(b===void 0){var m=p.array[0];return m([])}else typeof b=="number"&&(b=[b]);v===void 0&&(v=[b.length]);var A=v.length;if(C===void 0){C=new Array(A);for(var L=A-1,x=1;L>=0;--L)C[L]=x,x*=v[L]}if(M===void 0){M=0;for(var L=0;L>>0;i.exports=f;function f(c,h){if(isNaN(c)||isNaN(h))return NaN;if(c===h)return c;if(c===0)return h<0?-u:u;var d=s.hi(c),p=s.lo(c);return h>c==c>0?p===l?(d+=1,p=0):p+=1:p===0?(p=l,d-=1):p-=1,s.pack(p,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(u,l,f){for(var c=l.length,h=new Array(c),d=f===void 0?o:f,p=0;pd)for(var O=h[v],F=1/Math.sqrt(S*P),E=0;E<3;++E){var U=(E+1)%3,G=(E+2)%3;O[E]+=F*(m[U]*k[G]-m[G]*k[U])}}for(var p=0;pd)for(var F=1/Math.sqrt(j),E=0;E<3;++E)O[E]*=F;else for(var E=0;E<3;++E)O[E]=0}return h},a.faceNormals=function(u,l,f){for(var c=u.length,h=new Array(c),d=f===void 0?s:f,p=0;pd?L=1/Math.sqrt(L):L=0;for(var v=0;v<3;++v)A[v]*=L;h[p]=A}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,u,l,f,c,h,d,p,y){var b=s+c+y;if(v>0){var v=Math.sqrt(b+1);o[0]=.5*(h-p)/v,o[1]=.5*(d-l)/v,o[2]=.5*(u-c)/v,o[3]=.5*v}else{var C=Math.max(s,c,y),v=Math.sqrt(2*C-b+1);s>=C?(o[0]=.5*v,o[1]=.5*(f+u)/v,o[2]=.5*(d+l)/v,o[3]=.5*(h-p)/v):c>=C?(o[0]=.5*(u+f)/v,o[1]=.5*v,o[2]=.5*(p+h)/v,o[3]=.5*(d-l)/v):(o[0]=.5*(l+d)/v,o[1]=.5*(h+p)/v,o[2]=.5*v,o[3]=.5*(u-f)/v)}return o}},9977:function(i,a,o){"use strict";i.exports=v;var s=o(9215),u=o(6582),l=o(7399),f=o(7608),c=o(4081);function h(C,M,A){return Math.sqrt(Math.pow(C,2)+Math.pow(M,2)+Math.pow(A,2))}function d(C,M,A,L){return Math.sqrt(Math.pow(C,2)+Math.pow(M,2)+Math.pow(A,2)+Math.pow(L,2))}function p(C,M){var A=M[0],L=M[1],x=M[2],k=M[3],S=d(A,L,x,k);S>1e-6?(C[0]=A/S,C[1]=L/S,C[2]=x/S,C[3]=k/S):(C[0]=C[1]=C[2]=0,C[3]=1)}function y(C,M,A){this.radius=s([A]),this.center=s(M),this.rotation=s(C),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=y.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(C){this.radius.curve(C),this.center.curve(C),this.rotation.curve(C);var M=this.computedRotation;p(M,M);var A=this.computedMatrix;l(A,M);var L=this.computedCenter,x=this.computedEye,k=this.computedUp,S=Math.exp(this.computedRadius[0]);x[0]=L[0]+S*A[2],x[1]=L[1]+S*A[6],x[2]=L[2]+S*A[10],k[0]=A[1],k[1]=A[5],k[2]=A[9];for(var m=0;m<3;++m){for(var P=0,E=0;E<3;++E)P+=A[m+4*E]*x[E];A[12+m]=-P}},b.getMatrix=function(C,M){this.recalcMatrix(C);var A=this.computedMatrix;if(M){for(var L=0;L<16;++L)M[L]=A[L];return M}return A},b.idle=function(C){this.center.idle(C),this.radius.idle(C),this.rotation.idle(C)},b.flush=function(C){this.center.flush(C),this.radius.flush(C),this.rotation.flush(C)},b.pan=function(C,M,A,L){M=M||0,A=A||0,L=L||0,this.recalcMatrix(C);var x=this.computedMatrix,k=x[1],S=x[5],m=x[9],P=h(k,S,m);k/=P,S/=P,m/=P;var E=x[0],O=x[4],F=x[8],U=E*k+O*S+F*m;E-=k*U,O-=S*U,F-=m*U;var G=h(E,O,F);E/=G,O/=G,F/=G;var j=x[2],W=x[6],N=x[10],H=j*k+W*S+N*m,re=j*E+W*O+N*F;j-=H*k+re*E,W-=H*S+re*O,N-=H*m+re*F;var ae=h(j,W,N);j/=ae,W/=ae,N/=ae;var me=E*M+k*A,Le=O*M+S*A,Ce=F*M+m*A;this.center.move(C,me,Le,Ce);var de=Math.exp(this.computedRadius[0]);de=Math.max(1e-4,de+L),this.radius.set(C,Math.log(de))},b.rotate=function(C,M,A,L){this.recalcMatrix(C),M=M||0,A=A||0;var x=this.computedMatrix,k=x[0],S=x[4],m=x[8],P=x[1],E=x[5],O=x[9],F=x[2],U=x[6],G=x[10],j=M*k+A*P,W=M*S+A*E,N=M*m+A*O,H=-(U*N-G*W),re=-(G*j-F*N),ae=-(F*W-U*j),me=Math.sqrt(Math.max(0,1-Math.pow(H,2)-Math.pow(re,2)-Math.pow(ae,2))),Le=d(H,re,ae,me);Le>1e-6?(H/=Le,re/=Le,ae/=Le,me/=Le):(H=re=ae=0,me=1);var Ce=this.computedRotation,de=Ce[0],te=Ce[1],Se=Ce[2],Te=Ce[3],be=de*me+Te*H+te*ae-Se*re,He=te*me+Te*re+Se*H-de*ae,Ie=Se*me+Te*ae+de*re-te*H,ge=Te*me-de*H-te*re-Se*ae;if(L){H=F,re=U,ae=G;var Be=Math.sin(L)/h(H,re,ae);H*=Be,re*=Be,ae*=Be,me=Math.cos(M),be=be*me+ge*H+He*ae-Ie*re,He=He*me+ge*re+Ie*H-be*ae,Ie=Ie*me+ge*ae+be*re-He*H,ge=ge*me-be*H-He*re-Ie*ae}var ce=d(be,He,Ie,ge);ce>1e-6?(be/=ce,He/=ce,Ie/=ce,ge/=ce):(be=He=Ie=0,ge=1),this.rotation.set(C,be,He,Ie,ge)},b.lookAt=function(C,M,A,L){this.recalcMatrix(C),A=A||this.computedCenter,M=M||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;u(x,M,A,L);var k=this.computedRotation;c(k,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),p(k,k),this.rotation.set(C,k[0],k[1],k[2],k[3]);for(var S=0,m=0;m<3;++m)S+=Math.pow(A[m]-M[m],2);this.radius.set(C,.5*Math.log(Math.max(S,1e-6))),this.center.set(C,A[0],A[1],A[2])},b.translate=function(C,M,A,L){this.center.move(C,M||0,A||0,L||0)},b.setMatrix=function(C,M){var A=this.computedRotation;c(A,M[0],M[1],M[2],M[4],M[5],M[6],M[8],M[9],M[10]),p(A,A),this.rotation.set(C,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;f(L,M);var x=L[15];if(Math.abs(x)>1e-6){var k=L[12]/x,S=L[13]/x,m=L[14]/x;this.recalcMatrix(C);var P=Math.exp(this.computedRadius[0]);this.center.set(C,k-L[2]*P,S-L[6]*P,m-L[10]*P),this.radius.idle(C)}else this.center.idle(C),this.radius.idle(C)},b.setDistance=function(C,M){M>0&&this.radius.set(C,Math.log(M))},b.setDistanceLimits=function(C,M){C>0?C=Math.log(C):C=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,C),this.radius.bounds[0][0]=C,this.radius.bounds[1][0]=M},b.getDistanceLimits=function(C){var M=this.radius.bounds;return C?(C[0]=Math.exp(M[0][0]),C[1]=Math.exp(M[1][0]),C):[Math.exp(M[0][0]),Math.exp(M[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(C){var M=this.lastT(),A=C.center;A&&this.center.set(M,A[0],A[1],A[2]);var L=C.rotation;L&&this.rotation.set(M,L[0],L[1],L[2],L[3]);var x=C.distance;x&&x>0&&this.radius.set(M,Math.log(x)),this.setDistanceLimits(C.zoomMin,C.zoomMax)};function v(C){C=C||{};var M=C.center||[0,0,0],A=C.rotation||[0,0,0,1],L=C.radius||1;M=[].slice.call(M,0,3),A=[].slice.call(A,0,4),p(A,A);var x=new y(A,M,Math.log(L));return x.setDistanceLimits(C.zoomMin,C.zoomMax),("eye"in C||"up"in C)&&x.lookAt(0,C.eye,C.center,C.up),x}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(l,f,c){return c=typeof c!="undefined"?c+"":" ",s(c,f)+l}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var u=parseFloat(o,10);return s[0]=u,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=u;var s=o(3140);function u(l,f){for(var c=f.length|0,h=l.length,d=[new Array(c),new Array(c)],p=0;p0){O=d[G][P][0],U=G;break}F=O[U^1];for(var j=0;j<2;++j)for(var W=d[j][P],N=0;N0&&(O=H,F=re,U=j)}return E||O&&v(O,U),F}function M(m,P){var E=d[P][m][0],O=[m];v(E,P);for(var F=E[P^1],U=P;;){for(;F!==m;)O.push(F),F=C(O[O.length-2],F,!1);if(d[0][m].length+d[1][m].length===0)break;var G=O[O.length-1],j=m,W=O[1],N=C(G,j,!0);if(s(f[G],f[j],f[W],f[N])<0)break;O.push(m),F=C(G,j)}return O}function A(m,P){return P[1]===P[P.length-1]}for(var p=0;p0;){var k=d[0][p].length,S=M(p,L);A(x,S)?x.push.apply(x,S):(x.length>0&&b.push(x),x=S)}x.length>0&&b.push(x)}return b}},5609:function(i,a,o){"use strict";i.exports=u;var s=o(3134);function u(l,f){for(var c=s(l,f.length),h=new Array(f.length),d=new Array(f.length),p=[],y=0;y0;){var v=p.pop();h[v]=!1;for(var C=c[v],y=0;y0}k=k.filter(S);for(var m=k.length,P=new Array(m),E=new Array(m),x=0;x0;){var ce=Ie.pop(),je=Le[ce];h(je,function(Ke,zt){return Ke-zt});var rt=je.length,bt=ge[ce],Ot;if(bt===0){var W=k[ce];Ot=[W]}for(var x=0;x=0)&&(ge[it]=bt^1,Ie.push(it),bt===0)){var W=k[it];He(W)||(W.reverse(),Ot.push(W))}}bt===0&&Be.push(Ot)}return Be}},5085:function(i,a,o){i.exports=C;var s=o(3250)[3],u=o(4209),l=o(3352),f=o(2478);function c(){return!0}function h(M){return function(A,L){var x=M[A];return x?!!x.queryPoint(L,c):!1}}function d(M){for(var A={},L=0;L0&&A[x]===L[0])k=M[x-1];else return 1;for(var S=1;k;){var m=k.key,P=s(L,m[0],m[1]);if(m[0][0]0)S=-1,k=k.right;else return 0;else if(P>0)k=k.left;else if(P<0)S=1,k=k.right;else return 0}return S}}function y(M){return 1}function b(M){return function(L){return M(L[0],L[1])?0:1}}function v(M,A){return function(x){return M(x[0],x[1])?0:A(x)}}function C(M){for(var A=M.length,L=[],x=[],k=0,S=0;S=y?(m=1,E=y+2*C+A):(m=-C/y,E=C*m+A)):(m=0,M>=0?(P=0,E=A):-M>=v?(P=1,E=v+2*M+A):(P=-M/v,E=M*P+A));else if(P<0)P=0,C>=0?(m=0,E=A):-C>=y?(m=1,E=y+2*C+A):(m=-C/y,E=C*m+A);else{var O=1/S;m*=O,P*=O,E=m*(y*m+b*P+2*C)+P*(b*m+v*P+2*M)+A}else{var F,U,G,j;m<0?(F=b+C,U=v+M,U>F?(G=U-F,j=y-2*b+v,G>=j?(m=1,P=0,E=y+2*C+A):(m=G/j,P=1-m,E=m*(y*m+b*P+2*C)+P*(b*m+v*P+2*M)+A)):(m=0,U<=0?(P=1,E=v+2*M+A):M>=0?(P=0,E=A):(P=-M/v,E=M*P+A))):P<0?(F=b+M,U=y+C,U>F?(G=U-F,j=y-2*b+v,G>=j?(P=1,m=0,E=v+2*M+A):(P=G/j,m=1-P,E=m*(y*m+b*P+2*C)+P*(b*m+v*P+2*M)+A)):(P=0,U<=0?(m=1,E=y+2*C+A):C>=0?(m=0,E=A):(m=-C/y,E=C*m+A))):(G=v+M-b-C,G<=0?(m=0,P=1,E=v+2*M+A):(j=y-2*b+v,G>=j?(m=1,P=0,E=y+2*C+A):(m=G/j,P=1-m,E=m*(y*m+b*P+2*C)+P*(b*m+v*P+2*M)+A)))}for(var W=1-m-P,p=0;p0){var v=c[d-1];if(s(y,v)===0&&l(v)!==b){d-=1;continue}}c[d++]=y}}return c.length=d,c}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(u,l){if(typeof u!="string")throw new TypeError("expected a string");if(l===1)return u;if(l===2)return u+u;var f=u.length*l;if(o!==u||typeof o=="undefined")o=u,a="";else if(a.length>=f)return a.substr(0,f);for(;f>a.length&&l>1;)l&1&&(a+=u),l>>=1,u+=u;return a+=u,a=a.substr(0,f),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,u=o[o.length-1],l=s,f=s-2;f>=0;--f){var c=u,h=o[f];u=c+h;var d=u-c,p=h-d;p&&(o[--l]=u,u=p)}for(var y=0,f=l;f0){if(U<=0)return G;j=F+U}else if(F<0){if(U>=0)return G;j=-(F+U)}else return G;var W=d*j;return G>=W||G<=-W?G:M(P,E,O)},function(P,E,O,F){var U=P[0]-F[0],G=E[0]-F[0],j=O[0]-F[0],W=P[1]-F[1],N=E[1]-F[1],H=O[1]-F[1],re=P[2]-F[2],ae=E[2]-F[2],me=O[2]-F[2],Le=G*H,Ce=j*N,de=j*W,te=U*H,Se=U*N,Te=G*W,be=re*(Le-Ce)+ae*(de-te)+me*(Se-Te),He=(Math.abs(Le)+Math.abs(Ce))*Math.abs(re)+(Math.abs(de)+Math.abs(te))*Math.abs(ae)+(Math.abs(Se)+Math.abs(Te))*Math.abs(me),Ie=p*He;return be>Ie||-be>Ie?be:A(P,E,O,F)}];function x(m){var P=L[m.length];return P||(P=L[m.length]=C(m.length)),P.apply(void 0,m)}function k(m,P,E,O,F,U,G){return function(W,N,H,re,ae){switch(arguments.length){case 0:case 1:return 0;case 2:return O(W,N);case 3:return F(W,N,H);case 4:return U(W,N,H,re);case 5:return G(W,N,H,re,ae)}for(var me=new Array(arguments.length),Le=0;Le0&&y>0||p<0&&y<0)return!1;var b=s(h,f,c),v=s(d,f,c);return b>0&&v>0||b<0&&v<0?!1:p===0&&y===0&&b===0&&v===0?u(f,c,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,u){var l=s+u,f=l-s,c=l-f,h=u-f,d=s-c,p=d+h;return p?[p,l]:[l]}function o(s,u){var l=s.length|0,f=u.length|0;if(l===1&&f===1)return a(s[0],-u[0]);var c=l+f,h=new Array(c),d=0,p=0,y=0,b=Math.abs,v=s[p],C=b(v),M=-u[y],A=b(M),L,x;C=f?(L=v,p+=1,p=f?(L=v,p+=1,p>1,M=c[2*C+1];if(M===y)return C;y>1,M=c[2*C+1];if(M===y)return C;y>1,M=c[2*C+1];if(M===y)return C;y>1,M=c[2*C+1];if(M===y)return C;y>1,j=d(P[G],E);j<=0?(j===0&&(U=G),O=G+1):j>0&&(F=G-1)}return U}s=v;function C(P,E){for(var O=new Array(P.length),F=0,U=O.length;F=P.length||d(P[Le],G)!==0););}return O}s=C;function M(P,E){if(!E)return C(b(L(P,0)),P,0);for(var O=new Array(E),F=0;F>>H&1&&N.push(U[H]);E.push(N)}return y(E)}s=A;function L(P,E){if(E<0)return[];for(var O=[],F=(1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),u=o(4623);function l(m){for(var P=0,E=Math.max,O=0,F=m.length;O>1,G=h(m[U],P);G<=0?(G===0&&(F=U),E=U+1):G>0&&(O=U-1)}return F}a.findCell=b;function v(m,P){for(var E=new Array(m.length),O=0,F=E.length;O=m.length||h(m[me],U)!==0););}return E}a.incidence=v;function C(m,P){if(!P)return v(y(A(m,0)),m,0);for(var E=new Array(P),O=0;O>>N&1&&W.push(F[N]);P.push(W)}return p(P)}a.explode=M;function A(m,P){if(P<0)return[];for(var E=[],O=(1<>1:(te>>1)-1}function O(te){for(var Se=P(te);;){var Te=Se,be=2*te+1,He=2*(te+1),Ie=te;if(be0;){var Te=E(te);if(Te>=0){var be=P(Te);if(Se0){var te=W[0];return m(0,re-1),re-=1,O(0),te}return-1}function G(te,Se){var Te=W[te];return C[Te]===Se?te:(C[Te]=-1/0,F(te),U(),C[Te]=Se,re+=1,F(re-1))}function j(te){if(!M[te]){M[te]=!0;var Se=b[te],Te=v[te];b[Te]>=0&&(b[Te]=Se),v[Se]>=0&&(v[Se]=Te),N[Se]>=0&&G(N[Se],S(Se)),N[Te]>=0&&G(N[Te],S(Te))}}for(var W=[],N=new Array(p),A=0;A>1;A>=0;--A)O(A);for(;;){var ae=U();if(ae<0||C[ae]>d)break;j(ae)}for(var me=[],A=0;A=0&&Te>=0&&Se!==Te){var be=N[Se],He=N[Te];be!==He&&de.push([be,He])}}),u.unique(u.normalize(de)),{positions:me,edges:de}}},1303:function(i,a,o){"use strict";i.exports=l;var s=o(3250);function u(f,c){var h,d;if(c[0][0]c[1][0])h=c[1],d=c[0];else{var p=Math.min(f[0][1],f[1][1]),y=Math.max(f[0][1],f[1][1]),b=Math.min(c[0][1],c[1][1]),v=Math.max(c[0][1],c[1][1]);return yv?p-v:y-v}var C,M;f[0][1]c[1][0])h=c[1],d=c[0];else return u(c,f);var p,y;if(f[0][0]f[1][0])p=f[1],y=f[0];else return-u(f,c);var b=s(h,d,y),v=s(h,d,p);if(b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;if(b=s(y,p,d),v=s(y,p,h),b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;return d[0]-y[0]}},4209:function(i,a,o){"use strict";i.exports=v;var s=o(2478),u=o(3840),l=o(3250),f=o(1303);function c(C,M,A){this.slabs=C,this.coordinates=M,this.horizontal=A}var h=c.prototype;function d(C,M){return C.y-M}function p(C,M){for(var A=null;C;){var L=C.key,x,k;L[0][0]0)if(M[0]!==L[1][0])A=C,C=C.right;else{var m=p(C.right,M);if(m)return m;C=C.left}else{if(M[0]!==L[1][0])return C;var m=p(C.right,M);if(m)return m;C=C.left}}return A}h.castUp=function(C){var M=s.le(this.coordinates,C[0]);if(M<0)return-1;var A=this.slabs[M],L=p(this.slabs[M],C),x=-1;if(L&&(x=L.value),this.coordinates[M]===C[0]){var k=null;if(L&&(k=L.key),M>0){var S=p(this.slabs[M-1],C);S&&(k?f(S.key,k)>0&&(k=S.key,x=S.value):(x=S.value,k=S.key))}var m=this.horizontal[M];if(m.length>0){var P=s.ge(m,C[1],d);if(P=m.length)return x;E=m[P]}}if(E.start)if(k){var O=l(k[0],k[1],[C[0],E.y]);k[0][0]>k[1][0]&&(O=-O),O>0&&(x=E.index)}else x=E.index;else E.y!==C[1]&&(x=E.index)}}}return x};function y(C,M,A,L){this.y=C,this.index=M,this.start=A,this.closed=L}function b(C,M,A,L){this.x=C,this.segment=M,this.create=A,this.index=L}function v(C){for(var M=C.length,A=2*M,L=new Array(A),x=0;x1&&(M=1);for(var A=1-M,L=p.length,x=new Array(L),k=0;k0||C>0&&x<0){var k=f(M,x,A,C);b.push(k),v.push(k.slice())}x<0?v.push(A.slice()):x>0?b.push(A.slice()):(b.push(A.slice()),v.push(A.slice())),C=x}return{positive:b,negative:v}}function h(p,y){for(var b=[],v=l(p[p.length-1],y),C=p[p.length-1],M=p[0],A=0;A0||v>0&&L<0)&&b.push(f(C,L,M,v)),L>=0&&b.push(M.slice()),v=L}return b}function d(p,y){for(var b=[],v=l(p[p.length-1],y),C=p[p.length-1],M=p[0],A=0;A0||v>0&&L<0)&&b.push(f(C,L,M,v)),L<=0&&b.push(M.slice()),v=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function l(p){return c(d(p),arguments)}function f(p,y){return l.apply(null,[p].concat(y||[]))}function c(p,y){var b=1,v=p.length,C,M="",A,L,x,k,S,m,P,E;for(A=0;A=0),x.type){case"b":C=parseInt(C,10).toString(2);break;case"c":C=String.fromCharCode(parseInt(C,10));break;case"d":case"i":C=parseInt(C,10);break;case"j":C=JSON.stringify(C,null,x.width?parseInt(x.width):0);break;case"e":C=x.precision?parseFloat(C).toExponential(x.precision):parseFloat(C).toExponential();break;case"f":C=x.precision?parseFloat(C).toFixed(x.precision):parseFloat(C);break;case"g":C=x.precision?String(Number(C.toPrecision(x.precision))):parseFloat(C);break;case"o":C=(parseInt(C,10)>>>0).toString(8);break;case"s":C=String(C),C=x.precision?C.substring(0,x.precision):C;break;case"t":C=String(!!C),C=x.precision?C.substring(0,x.precision):C;break;case"T":C=Object.prototype.toString.call(C).slice(8,-1).toLowerCase(),C=x.precision?C.substring(0,x.precision):C;break;case"u":C=parseInt(C,10)>>>0;break;case"v":C=C.valueOf(),C=x.precision?C.substring(0,x.precision):C;break;case"x":C=(parseInt(C,10)>>>0).toString(16);break;case"X":C=(parseInt(C,10)>>>0).toString(16).toUpperCase();break}u.json.test(x.type)?M+=C:(u.number.test(x.type)&&(!P||x.sign)?(E=P?"+":"-",C=C.toString().replace(u.sign,"")):E="",S=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",m=x.width-(E+C).length,k=x.width&&m>0?S.repeat(m):"",M+=x.align?E+C+k:S==="0"?E+k+C:k+E+C)}return M}var h=Object.create(null);function d(p){if(h[p])return h[p];for(var y=p,b,v=[],C=0;y;){if((b=u.text.exec(y))!==null)v.push(b[0]);else if((b=u.modulo.exec(y))!==null)v.push("%");else if((b=u.placeholder.exec(y))!==null){if(b[2]){C|=1;var M=[],A=b[2],L=[];if((L=u.key.exec(A))!==null)for(M.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=u.key_access.exec(A))!==null)M.push(L[1]);else if((L=u.index_access.exec(A))!==null)M.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=M}else C|=2;if(C===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");v.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");y=y.substring(b[0].length)}return h[p]=v}a.sprintf=l,a.vsprintf=f,typeof window!="undefined"&&(window.sprintf=l,window.vsprintf=f,s=function(){return{sprintf:l,vsprintf:f}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),u=o(781),l={"2d":function(p,y,b){var v=p({order:y,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(M,A,L,x){return M>x|0},vertex:function(M,A,L,x,k,S,m,P,E,O,F,U,G){var j=(m<<0)+(P<<1)+(E<<2)+(O<<3)|0;if(!(j===0||j===15))switch(j){case 0:F.push([M-.5,A-.5]);break;case 1:F.push([M-.25-.25*(x+L-2*G)/(L-x),A-.25-.25*(k+L-2*G)/(L-k)]);break;case 2:F.push([M-.75-.25*(-x-L+2*G)/(x-L),A-.25-.25*(S+x-2*G)/(x-S)]);break;case 3:F.push([M-.5,A-.5-.5*(k+L+S+x-4*G)/(L-k+x-S)]);break;case 4:F.push([M-.25-.25*(S+k-2*G)/(k-S),A-.75-.25*(-k-L+2*G)/(k-L)]);break;case 5:F.push([M-.5-.5*(x+L+S+k-4*G)/(L-x+k-S),A-.5]);break;case 6:F.push([M-.5-.25*(-x-L+S+k)/(x-L+k-S),A-.5-.25*(-k-L+S+x)/(k-L+x-S)]);break;case 7:F.push([M-.75-.25*(S+k-2*G)/(k-S),A-.75-.25*(S+x-2*G)/(x-S)]);break;case 8:F.push([M-.75-.25*(-S-k+2*G)/(S-k),A-.75-.25*(-S-x+2*G)/(S-x)]);break;case 9:F.push([M-.5-.25*(x+L+-S-k)/(L-x+S-k),A-.5-.25*(k+L+-S-x)/(L-k+S-x)]);break;case 10:F.push([M-.5-.5*(-x-L+-S-k+4*G)/(x-L+S-k),A-.5]);break;case 11:F.push([M-.25-.25*(-S-k+2*G)/(S-k),A-.75-.25*(k+L-2*G)/(L-k)]);break;case 12:F.push([M-.5,A-.5-.5*(-k-L+-S-x+4*G)/(k-L+S-x)]);break;case 13:F.push([M-.75-.25*(x+L-2*G)/(L-x),A-.25-.25*(-S-x+2*G)/(S-x)]);break;case 14:F.push([M-.25-.25*(-x-L+2*G)/(x-L),A-.25-.25*(-k-L+2*G)/(k-L)]);break;case 15:F.push([M-.5,A-.5]);break}},cell:function(M,A,L,x,k,S,m,P,E){k?P.push([M,A]):P.push([A,M])}});return function(C,M){var A=[],L=[];return v(C,A,L,M),{positions:A,cells:L}}}};function f(p,y){var b=p.length+"d",v=l[b];if(v)return v(s,p,y)}function c(p,y){for(var b=u(p,y),v=b.length,C=new Array(v),M=new Array(v),A=0;AMath.max(x,k)?S[2]=1:x>Math.max(L,k)?S[0]=1:S[1]=1;for(var m=0,P=0,E=0;E<3;++E)m+=A[E]*A[E],P+=S[E]*A[E];for(var E=0;E<3;++E)S[E]-=P/m*A[E];return c(S,S),S}function b(A,L,x,k,S,m,P,E){this.center=s(x),this.up=s(k),this.right=s(S),this.radius=s([m]),this.angle=s([P,E]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var O=0;O<16;++O)this.computedMatrix[O]=.5;this.recalcMatrix(0)}var v=b.prototype;v.setDistanceLimits=function(A,L){A>0?A=Math.log(A):A=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},v.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},v.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,x=this.computedRight,k=0,S=0,m=0;m<3;++m)S+=L[m]*x[m],k+=L[m]*L[m];for(var P=Math.sqrt(k),E=0,m=0;m<3;++m)x[m]-=L[m]*S/k,E+=x[m]*x[m],L[m]/=P;for(var O=Math.sqrt(E),m=0;m<3;++m)x[m]/=O;var F=this.computedToward;f(F,L,x),c(F,F);for(var U=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],j=this.computedAngle[1],W=Math.cos(G),N=Math.sin(G),H=Math.cos(j),re=Math.sin(j),ae=this.computedCenter,me=W*H,Le=N*H,Ce=re,de=-W*re,te=-N*re,Se=H,Te=this.computedEye,be=this.computedMatrix,m=0;m<3;++m){var He=me*x[m]+Le*F[m]+Ce*L[m];be[4*m+1]=de*x[m]+te*F[m]+Se*L[m],be[4*m+2]=He,be[4*m+3]=0}var Ie=be[1],ge=be[5],Be=be[9],ce=be[2],je=be[6],rt=be[10],bt=ge*rt-Be*je,Ot=Be*ce-Ie*rt,it=Ie*je-ge*ce,Ke=d(bt,Ot,it);bt/=Ke,Ot/=Ke,it/=Ke,be[0]=bt,be[4]=Ot,be[8]=it;for(var m=0;m<3;++m)Te[m]=ae[m]+be[2+4*m]*U;for(var m=0;m<3;++m){for(var E=0,zt=0;zt<3;++zt)E+=be[m+4*zt]*Te[zt];be[12+m]=-E}be[15]=1},v.getMatrix=function(A,L){this.recalcMatrix(A);var x=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=x[k];return L}return x};var C=[0,0,0];v.rotate=function(A,L,x,k){if(this.angle.move(A,L,x),k){this.recalcMatrix(A);var S=this.computedMatrix;C[0]=S[2],C[1]=S[6],C[2]=S[10];for(var m=this.computedUp,P=this.computedRight,E=this.computedToward,O=0;O<3;++O)S[4*O]=m[O],S[4*O+1]=P[O],S[4*O+2]=E[O];l(S,S,k,C);for(var O=0;O<3;++O)m[O]=S[4*O],P[O]=S[4*O+1];this.up.set(A,m[0],m[1],m[2]),this.right.set(A,P[0],P[1],P[2])}},v.pan=function(A,L,x,k){L=L||0,x=x||0,k=k||0,this.recalcMatrix(A);var S=this.computedMatrix,m=Math.exp(this.computedRadius[0]),P=S[1],E=S[5],O=S[9],F=d(P,E,O);P/=F,E/=F,O/=F;var U=S[0],G=S[4],j=S[8],W=U*P+G*E+j*O;U-=P*W,G-=E*W,j-=O*W;var N=d(U,G,j);U/=N,G/=N,j/=N;var H=U*L+P*x,re=G*L+E*x,ae=j*L+O*x;this.center.move(A,H,re,ae);var me=Math.exp(this.computedRadius[0]);me=Math.max(1e-4,me+k),this.radius.set(A,Math.log(me))},v.translate=function(A,L,x,k){this.center.move(A,L||0,x||0,k||0)},v.setMatrix=function(A,L,x,k){var S=1;typeof x=="number"&&(S=x|0),(S<0||S>3)&&(S=1);var m=(S+2)%3,P=(S+1)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var E=L[S],O=L[S+4],F=L[S+8];if(k){var G=Math.abs(E),j=Math.abs(O),W=Math.abs(F),N=Math.max(G,j,W);G===N?(E=E<0?-1:1,O=F=0):W===N?(F=F<0?-1:1,E=O=0):(O=O<0?-1:1,E=F=0)}else{var U=d(E,O,F);E/=U,O/=U,F/=U}var H=L[m],re=L[m+4],ae=L[m+8],me=H*E+re*O+ae*F;H-=E*me,re-=O*me,ae-=F*me;var Le=d(H,re,ae);H/=Le,re/=Le,ae/=Le;var Ce=O*ae-F*re,de=F*H-E*ae,te=E*re-O*H,Se=d(Ce,de,te);Ce/=Se,de/=Se,te/=Se,this.center.jump(A,Me,oe,Ne),this.radius.idle(A),this.up.jump(A,E,O,F),this.right.jump(A,H,re,ae);var Te,be;if(S===2){var He=L[1],Ie=L[5],ge=L[9],Be=He*H+Ie*re+ge*ae,ce=He*Ce+Ie*de+ge*te;Ot<0?Te=-Math.PI/2:Te=Math.PI/2,be=Math.atan2(ce,Be)}else{var je=L[2],rt=L[6],bt=L[10],Ot=je*E+rt*O+bt*F,it=je*H+rt*re+bt*ae,Ke=je*Ce+rt*de+bt*te;Te=Math.asin(p(Ot)),be=Math.atan2(Ke,it)}this.angle.jump(A,be,Te),this.recalcMatrix(A);var zt=L[2],Mt=L[6],kt=L[10],$e=this.computedMatrix;u($e,L);var De=$e[15],Me=$e[12]/De,oe=$e[13]/De,Ne=$e[14]/De,vt=Math.exp(this.computedRadius[0]);this.center.jump(A,Me-zt*vt,oe-Mt*vt,Ne-kt*vt)},v.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},v.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},v.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},v.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},v.lookAt=function(A,L,x,k){this.recalcMatrix(A),L=L||this.computedEye,x=x||this.computedCenter,k=k||this.computedUp;var S=k[0],m=k[1],P=k[2],E=d(S,m,P);if(!(E<1e-6)){S/=E,m/=E,P/=E;var O=L[0]-x[0],F=L[1]-x[1],U=L[2]-x[2],G=d(O,F,U);if(!(G<1e-6)){O/=G,F/=G,U/=G;var j=this.computedRight,W=j[0],N=j[1],H=j[2],re=S*W+m*N+P*H;W-=re*S,N-=re*m,H-=re*P;var ae=d(W,N,H);if(!(ae<.01&&(W=m*U-P*F,N=P*O-S*U,H=S*F-m*O,ae=d(W,N,H),ae<1e-6))){W/=ae,N/=ae,H/=ae,this.up.set(A,S,m,P),this.right.set(A,W,N,H),this.center.set(A,x[0],x[1],x[2]),this.radius.set(A,Math.log(G));var me=m*H-P*N,Le=P*W-S*H,Ce=S*N-m*W,de=d(me,Le,Ce);me/=de,Le/=de,Ce/=de;var te=S*O+m*F+P*U,Se=W*O+N*F+H*U,Te=me*O+Le*F+Ce*U,be=Math.asin(p(te)),He=Math.atan2(Te,Se),Ie=this.angle._state,ge=Ie[Ie.length-1],Be=Ie[Ie.length-2];ge=ge%(2*Math.PI);var ce=Math.abs(ge+2*Math.PI-He),je=Math.abs(ge-He),rt=Math.abs(ge-2*Math.PI-He);ce0?H.pop():new ArrayBuffer(W)}a.mallocArrayBuffer=C;function M(j){return new Uint8Array(C(j),0,j)}a.mallocUint8=M;function A(j){return new Uint16Array(C(2*j),0,j)}a.mallocUint16=A;function L(j){return new Uint32Array(C(4*j),0,j)}a.mallocUint32=L;function x(j){return new Int8Array(C(j),0,j)}a.mallocInt8=x;function k(j){return new Int16Array(C(2*j),0,j)}a.mallocInt16=k;function S(j){return new Int32Array(C(4*j),0,j)}a.mallocInt32=S;function m(j){return new Float32Array(C(4*j),0,j)}a.mallocFloat32=a.mallocFloat=m;function P(j){return new Float64Array(C(8*j),0,j)}a.mallocFloat64=a.mallocDouble=P;function E(j){return f?new Uint8ClampedArray(C(j),0,j):M(j)}a.mallocUint8Clamped=E;function O(j){return c?new BigUint64Array(C(8*j),0,j):null}a.mallocBigUint64=O;function F(j){return h?new BigInt64Array(C(8*j),0,j):null}a.mallocBigInt64=F;function U(j){return new DataView(C(j),0,j)}a.mallocDataView=U;function G(j){j=s.nextPow2(j);var W=s.log2(j),N=y[W];return N.length>0?N.pop():new l(j)}a.mallocBuffer=G,a.clearCache=function(){for(var W=0;W<32;++W)d.UINT8[W].length=0,d.UINT16[W].length=0,d.UINT32[W].length=0,d.INT8[W].length=0,d.INT16[W].length=0,d.INT32[W].length=0,d.FLOAT[W].length=0,d.DOUBLE[W].length=0,d.BIGUINT64[W].length=0,d.BIGINT64[W].length=0,d.UINT8C[W].length=0,p[W].length=0,y[W].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var u=0;u",H="",re=N.length,ae=H.length,me=G[0]===C||G[0]===L,Le=0,Ce=-ae;Le>-1&&(Le=j.indexOf(N,Le),!(Le===-1||(Ce=j.indexOf(H,Le+re),Ce===-1)||Ce<=Le));){for(var de=Le;de=Ce)W[de]=null,j=j.substr(0,de)+" "+j.substr(de+1);else if(W[de]!==null){var te=W[de].indexOf(G[0]);te===-1?W[de]+=G:me&&(W[de]=W[de].substr(0,te+1)+(1+parseInt(W[de][te+1]))+W[de].substr(te+2))}var Se=Le+re,Te=j.substr(Se,Ce-Se),be=Te.indexOf(N);be!==-1?Le=be:Le=Ce+ae}return W}function S(U,G,j){for(var W=G.textAlign||"start",N=G.textBaseline||"alphabetic",H=[1<<30,1<<30],re=[0,0],ae=U.length,me=0;me/g,` -`):j=j.replace(/\/g," ");var re="",ae=[];for(ge=0;ge-1?parseInt(oe[1+lt]):0,et=We>-1?parseInt(Ne[1+We]):0;Ve!==et&&(vt=vt.replace(it(),"?px "),je*=Math.pow(.75,et-Ve),vt=vt.replace("?px ",it())),ce+=.25*te*(et-Ve)}if(H.superscripts===!0){var tt=oe.indexOf(C),Lt=Ne.indexOf(C),jt=tt>-1?parseInt(oe[1+tt]):0,or=Lt>-1?parseInt(Ne[1+Lt]):0;jt!==or&&(vt=vt.replace(it(),"?px "),je*=Math.pow(.75,or-jt),vt=vt.replace("?px ",it())),ce-=.25*te*(or-jt)}if(H.bolds===!0){var yr=oe.indexOf(p)>-1,vr=Ne.indexOf(p)>-1;!yr&&vr&&(Vt?vt=vt.replace("italic ","italic bold "):vt="bold "+vt),yr&&!vr&&(vt=vt.replace("bold ",""))}if(H.italics===!0){var Vt=oe.indexOf(b)>-1,Pe=Ne.indexOf(b)>-1;!Vt&&Pe&&(vt="italic "+vt),Vt&&!Pe&&(vt=vt.replace("italic ",""))}G.font=vt}for(Ie=0;Ie0&&(N=W.size),W.lineSpacing&&W.lineSpacing>0&&(H=W.lineSpacing),W.styletags&&W.styletags.breaklines&&(re.breaklines=!!W.styletags.breaklines),W.styletags&&W.styletags.bolds&&(re.bolds=!!W.styletags.bolds),W.styletags&&W.styletags.italics&&(re.italics=!!W.styletags.italics),W.styletags&&W.styletags.subscripts&&(re.subscripts=!!W.styletags.subscripts),W.styletags&&W.styletags.superscripts&&(re.superscripts=!!W.styletags.superscripts)),j.font=[W.fontStyle,W.fontVariant,W.fontWeight,N+"px",W.font].filter(function(me){return me}).join(" "),j.textAlign="start",j.textBaseline="alphabetic",j.direction="ltr";var ae=m(G,j,U,N,H,re);return O(ae,W,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(E){E.permitHostObjects___&&E.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var l=new u,f=Object.freeze({});if(l.set(f,1),l.get(f)!==1)s=!0;else{i.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,p=Object.isExtensible,y="weakmap:",b=y+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),C=new Uint8Array(v);crypto.getRandomValues(C),b=y+"rand:"+Array.prototype.map.call(C,function(E){return(E%36).toString(36)}).join("")+"___"}function M(E){return!(E.substr(0,y.length)==y&&E.substr(E.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(O){return h(O).filter(M)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(O){return A(O).filter(M)}})}function L(E){if(E!==Object(E))throw new TypeError("Not an object: "+E);var O=E[b];if(O&&O.key===E)return O;if(p(E)){O={key:E};try{return d(E,b,{value:O,writable:!1,enumerable:!1,configurable:!1}),O}catch(F){return}}}(function(){var E=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),E(G)}});var O=Object.seal;d(Object,"seal",{value:function(G){return L(G),O(G)}});var F=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),F(G)}})})();function x(E){return E.prototype=null,Object.freeze(E)}var k=!1;function S(){!k&&typeof console!="undefined"&&(k=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var m=0,P=function(){this instanceof P||S();var E=[],O=[],F=m++;function U(N,H){var re,ae=L(N);return ae?F in ae?ae[F]:H:(re=E.indexOf(N),re>=0?O[re]:H)}function G(N){var H=L(N);return H?F in H:E.indexOf(N)>=0}function j(N,H){var re,ae=L(N);return ae?ae[F]=H:(re=E.indexOf(N),re>=0?O[re]=H:(re=E.length,O[re]=H,E[re]=N)),this}function W(N){var H=L(N),re,ae;return H?F in H&&delete H[F]:(re=E.indexOf(N),re<0?!1:(ae=E.length-1,E[re]=void 0,O[re]=O[ae],E[re]=E[ae],E.length=ae,O.length=ae,!0))}return Object.create(P.prototype,{get___:{value:x(U)},has___:{value:x(G)},set___:{value:x(j)},delete___:{value:x(W)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(O,F){return this.get___(O,F)},writable:!0,configurable:!0},has:{value:function(O){return this.has___(O)},writable:!0,configurable:!0},set:{value:function(O,F){return this.set___(O,F)},writable:!0,configurable:!0},delete:{value:function(O){return this.delete___(O)},writable:!0,configurable:!0}}),typeof u=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function E(){this instanceof P||S();var O=new u,F=void 0,U=!1;function G(H,re){return F?O.has(H)?O.get(H):F.get___(H,re):O.get(H,re)}function j(H){return O.has(H)||(F?F.has___(H):!1)}var W;s?W=function(H,re){return O.set(H,re),O.has(H)||(F||(F=new P),F.set(H,re)),this}:W=function(H,re){if(U)try{O.set(H,re)}catch(ae){F||(F=new P),F.set___(H,re)}else O.set(H,re);return this};function N(H){var re=!!O.delete(H);return F&&F.delete___(H)||re}return Object.create(P.prototype,{get___:{value:x(G)},has___:{value:x(j)},set___:{value:x(W)},delete___:{value:x(N)},permitHostObjects___:{value:x(function(H){if(H===o)U=!0;else throw new Error("bogus call to permitHostObjects___")})}})}E.prototype=P.prototype,i.exports=E,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=u;function u(){var l={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var c=f.valueOf(l);return c&&c.identity===l?c:s(f,l)}}},8284:function(i){i.exports=a;function a(o,s){var u={identity:s},l=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(f){return f!==s?l.apply(this,arguments):u},writable:!0}),u}},606:function(i,a,o){var s=o(236);i.exports=u;function u(){var l=s();return{get:function(f,c){var h=l(f);return h.hasOwnProperty("value")?h.value:c},set:function(f,c){return l(f).value=c,this},has:function(f){return"value"in l(f)},delete:function(f){return delete l(f).value}}}},3349:function(i){"use strict";function a(){return function(c,h,d,p,y,b){var v=c[0],C=d[0],M=[0],A=C;p|=0;var L=0,x=C;for(L=0;L=0!=S>=0&&y.push(M[0]+.5+.5*(k+S)/(k-S))}p+=x,++M[0]}}}function o(){return a()}var s=o;function u(c){var h={};return function(p,y,b){var v=p.dtype,C=p.order,M=[v,C.join()].join(),A=h[M];return A||(h[M]=A=c([v,C])),A(p.shape.slice(0),p.data,p.stride,p.offset|0,y,b)}}function l(c){return u(s.bind(void 0,c))}function f(c){return l({funcName:c.funcName})}i.exports=f({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=u;var s=o(3349);function u(l,f){var c=[];return f=+f||0,s(l.hi(l.shape[0]-1),c,f),c}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);Bze.exports=n})()});var DX=we((Ryr,qze)=>{"use strict";qze.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Gze=we((Fyr,Vze)=>{"use strict";var Nze=DX();Vze.exports=rDt;var Uze={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function rDt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),Nze[e])r=Nze[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=t[1],l=u==="rgb",a=u.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(Uze[h]!==void 0)return Uze[h]}return parseFloat(h)}),u===a&&r.push(1),n=l||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var Wze=we((Oyr,Hze)=>{"use strict";var iDt=Gze();Hze.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=iDt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=nDt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function nDt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}});var ik=we((Byr,jze)=>{jze.exports=aDt;function aDt(e,t,r){return tr?r:e:et?t:e}});var tF=we((qyr,Xze)=>{Xze.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var sx=we((Nyr,Zze)=>{"use strict";var oDt=Wze(),rF=ik(),sDt=tF();Zze.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=sDt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=oDt(t),t[0]/=255,t[1]/=255,t[2]/=255),lDt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=rF(Math.floor(t[0]*255),0,255),i[1]=rF(Math.floor(t[1]*255),0,255),i[2]=rF(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:rF(Math.floor(t[3]*255),0,255)),i)};function lDt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var n1=we((Uyr,Yze)=>{"use strict";var uDt=sx();function fDt(e){return e?uDt(e):[0,0,0,1]}Yze.exports=fDt});var a1=we((Vyr,rIe)=>{"use strict";var eIe=ku(),cDt=hd(),iF=sx(),nF=_c(),hDt=Bh().defaultLine,Kze=Jd().isArrayOrTypedArray,RX=iF(hDt),tIe=1;function Jze(e,t){var r=e;return r[3]*=t,r}function $ze(e){if(eIe(e))return RX;var t=iF(e);return t.length?t:RX}function Qze(e){return eIe(e)?e:tIe}function dDt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=Kze(n),a=Kze(t),o=nF.extractOpts(e),s=[],u,l,f,c,h;if(o.colorscale!==void 0?u=nF.makeColorScaleFuncFromTrace(e):u=$ze,i?l=function(p,y){return p[y]===void 0?RX:iF(u(p[y]))}:l=$ze,a?f=function(p,y){return p[y]===void 0?tIe:Qze(p[y])}:f=Qze,i||a)for(var d=0;d{"use strict";iIe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var aF=we((Hyr,nIe)=>{"use strict";nIe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var oIe=we((Wyr,aIe)=>{"use strict";var vDt=$l();function OX(e,t,r,n){if(!t||!t.visible)return null;for(var i=vDt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var c=n.c2l(l);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function mDt(e){for(var t=0;t{"use strict";var gDt=qd().gl_line3d,sIe=qd().gl_scatter3d,_Dt=qd().gl_error3d,xDt=qd().gl_mesh3d,bDt=qd().delaunay_triangulate,o1=ei(),hIe=n1(),oF=a1().formatColor,wDt=q3(),BX=FX(),ADt=aF(),TDt=wu(),SDt=iv().appendArrayPointValue,MDt=oIe();function dIe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var NX=dIe.prototype;NX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(o1.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function EDt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function uIe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function CDt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var l=EDt(s.position,s.delaunayColor,s.delaunayAxis);l.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(l):(l.gl=t,this.delaunayMesh=xDt(l),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};NX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function IDt(e,t){var r=new dIe(e,t.uid);return r.update(t),r}pIe.exports=IDt});var WX=we((Xyr,_Ie)=>{"use strict";var s1=Zc(),DDt=gc(),HX=nc(),UX=Xc().axisHoverFormat,{hovertemplateAttrs:RDt,texttemplateAttrs:FDt,templatefallbackAttrs:mIe}=Ff(),yIe=Gf(),ODt=FX(),BDt=aF(),$m=Su().extendFlat,qDt=Sc().overrideAll,gIe=t_(),NDt=s1.line,$2=s1.marker,UDt=$2.line,VDt=$m({width:NDt.width,dash:{valType:"enumerated",values:gIe(ODt),dflt:"solid"}},HX("line"));function VX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var GX=_Ie.exports=qDt({x:s1.x,y:s1.y,z:{valType:"data_array"},text:$m({},s1.text,{}),texttemplate:FDt(),texttemplatefallback:mIe({editType:"calc"}),hovertext:$m({},s1.hovertext,{}),hovertemplate:RDt(),hovertemplatefallback:mIe(),xhoverformat:UX("x"),yhoverformat:UX("y"),zhoverformat:UX("z"),mode:$m({},s1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:VX("x"),y:VX("y"),z:VX("z")},connectgaps:s1.connectgaps,line:VDt,marker:$m({symbol:{valType:"enumerated",values:gIe(BDt),dflt:"circle",arrayOk:!0},size:$m({},$2.size,{dflt:8}),sizeref:$2.sizeref,sizemin:$2.sizemin,sizemode:$2.sizemode,opacity:$m({},$2.opacity,{arrayOk:!1}),colorbar:$2.colorbar,line:$m({width:$m({},UDt.width,{arrayOk:!1})},HX("marker.line"))},HX("marker")),textposition:$m({},s1.textposition,{dflt:"top center"}),textfont:DDt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:yIe.opacity,hoverinfo:$m({},yIe.hoverinfo)},"calc","nested");GX.x.editType=GX.y.editType=GX.z.editType="calc+clearAxisTypes"});var wIe=we((Zyr,bIe)=>{"use strict";var xIe=$l(),GDt=ei(),jX=lc(),HDt=$v(),WDt=D0(),jDt=R0(),XDt=WX();bIe.exports=function(t,r,n,i){function a(d,p){return GDt.coerce(t,r,XDt,d,p)}var o=ZDt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),jX.hasMarkers(r)&&HDt(t,r,n,i,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),jX.hasLines(r)&&(a("connectgaps"),WDt(t,r,n,i,a)),jX.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),jDt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,u=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||u);for(var l=["x","y","z"],f=0;f<3;++f){var c="projection."+l[f];a(c+".show")&&(a(c+".opacity"),a(c+".scale"))}var h=xIe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||u||n,{axis:"z"}),h(t,r,s||u||n,{axis:"y",inherit:"z"}),h(t,r,s||u||n,{axis:"x",inherit:"z"})};function ZDt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),u=xIe.getComponentMethod("calendars","handleTraceDefaults");return u(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var TIe=we((Yyr,AIe)=>{"use strict";var YDt=Dy(),KDt=F0();AIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return YDt(n,r),KDt(t,r),n}});var MIe=we((Kyr,SIe)=>{SIe.exports=JDt;function JDt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var $Dt=MIe();EIe.exports=function(t){return $Dt("webgl",t)}});var XX=we(($yr,LIe)=>{"use strict";var CIe=jl(),QDt=function(){};LIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=QDt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=CIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=CIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var IIe=we((Qyr,zIe)=>{"use strict";var Q2=n1(),eRt=ei(),tRt=["xaxis","yaxis","zaxis"];function PIe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var rRt=PIe.prototype;rRt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[tRt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?eRt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=Q2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=Q2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=Q2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=Q2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=Q2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=Q2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=Q2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function iRt(e,t){var r=new PIe;return r.merge(e,t),r}zIe.exports=iRt});var FIe=we((egr,RIe)=>{"use strict";var nRt=n1(),aRt=["xaxis","yaxis","zaxis"];function DIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var oRt=DIe.prototype;oRt.merge=function(e){for(var t=0;t<3;++t){var r=e[aRt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=nRt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function sRt(e){var t=new DIe;return t.merge(e),t}RIe.exports=sRt});var qIe=we((tgr,BIe)=>{"use strict";BIe.exports=hRt;var OIe=wu(),lRt=ei(),uRt=["xaxis","yaxis","zaxis"],fRt=[0,0,0];function cRt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=l,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){fRt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var f=0;f<2;++f)t.bounds[f][a]=e.glplot.bounds[f][a]}e.contourLevels=cRt(i)}});var jIe=we((rgr,WIe)=>{"use strict";var VIe=qd().gl_plot3d,dRt=VIe.createCamera,NIe=VIe.createScene,pRt=kIe(),vRt=VP(),uF=$l(),fv=ei(),lF=fv.preserveDrawingBuffer(),fF=wu(),Qm=Vc(),mRt=n1(),yRt=XX(),gRt=aV(),_Rt=IIe(),xRt=FIe(),bRt=qIe(),wRt=Mm().applyAutorangeOptions,nk,sF,GIe=!1;function HIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=_Rt(t,t[this.id]),this.spikeOptions=xRt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=uF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=uF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Ep=HIe.prototype;Ep.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:lF,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!sF&&(nk=document.createElement("canvas"),sF=pRt({canvas:nk,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!sF))throw new Error("error creating static canvas/context for image server");t.gl=sF,t.canvas=nk}return t};var UIe=!0;Ep.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=NIe(t)}catch(n){if(e.staticMode||!UIe||lF)r=!1;else{fv.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{lF=t.glOptions.preserveDrawingBuffer=!0,e.glplot=NIe(t)}catch(i){lF=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return UIe=!1,r};Ep.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=dRt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Ep.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return yRt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){GIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*u.x,y:s*u.y,z:s*u.z})}a(e)}},vRt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Ep.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,u=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+u),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",u),bRt(e),e.glplot.axes.update(e.axesOptions);for(var l=Object.keys(e.traces),f=null,c=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(v.valueLabel=fF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+v.valueLabel),c.textLabel&&x.push(c.textLabel),L=x.join("
")):L=c.textLabel;var k={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:y._input,fullData:y,curveNumber:y.index,pointNumber:b};Qm.appendArrayPointValue(k,y,b),r._module.eventData&&(k=y._module.eventData(k,c,y,{},b));var S={points:[k]};if(e.fullSceneLayout.hovermode){var m=[];Qm.loneHover({trace:y,x:(.5+.5*p[0]/p[3])*s,y:(.5-.5*p[1]/p[3])*u,xLabel:v.xLabel,yLabel:v.yLabel,zLabel:v.zLabel,text:L,name:f.name,color:Qm.castHoverOption(y,b,"bgcolor")||f.color,borderColor:Qm.castHoverOption(y,b,"bordercolor"),fontFamily:Qm.castHoverOption(y,b,"font.family"),fontSize:Qm.castHoverOption(y,b,"font.size"),fontColor:Qm.castHoverOption(y,b,"font.color"),nameLength:Qm.castHoverOption(y,b,"namelength"),textAlign:Qm.castHoverOption(y,b,"align"),hovertemplate:fv.castOption(y,b,"hovertemplate"),hovertemplateLabels:fv.extendFlat({},k,v),eventData:[k]},{container:n,gd:t,inOut_bbox:m}),k.bbox=m[0]}c.distance<5&&(c.buttons||GIe)?t.emit("plotly_click",S):t.emit("plotly_hover",S),this.oldEventData=S}else Qm.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Ep.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){fv.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var ak=["xaxis","yaxis","zaxis"];function ARt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=ak[i],o=a.charAt(0),s=n[a],u=t[o],l=t[o+"calendar"],f=t["_"+o+"length"];if(!fv.isArrayOrTypedArray(u))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],f-1);else for(var c,h=0;h<(f||u.length);h++)if(fv.isArrayOrTypedArray(u[h]))for(var d=0;dy[1][o])y[0][o]=-1,y[1][o]=1;else{var E=y[1][o]-y[0][o];y[0][o]-=E/32,y[1][o]+=E/32}if(C=[y[0][o],y[1][o]],C=wRt(C,u),y[0][o]=C[0],y[1][o]=C[1],u.isReversed()){var O=y[0][o];y[0][o]=y[1][o],y[1][o]=O}}else C=u.range,y[0][o]=u.r2l(C[0]),y[1][o]=u.r2l(C[1]);y[0][o]===y[1][o]&&(y[0][o]-=1,y[1][o]+=1),b[o]=y[1][o]-y[0][o],u.range=[y[0][o],y[1][o]],u.limitRange(),n.glplot.setBounds(o,{min:u.range[0]*d[o],max:u.range[1]*d[o]})}var F,U=f.aspectmode;if(U==="cube")F=[1,1,1];else if(U==="manual"){var G=f.aspectratio;F=[G.x,G.y,G.z]}else if(U==="auto"||U==="data"){var j=[1,1,1];for(o=0;o<3;++o){u=f[ak[o]],l=u.type;var W=v[l];j[o]=Math.pow(W.acc,1/W.count)/d[o]}U==="data"||Math.max.apply(null,j)/Math.min.apply(null,j)<=4?F=j:F=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=F[0],f.aspectratio.y=c.aspectratio.y=F[1],f.aspectratio.z=c.aspectratio.z=F[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var N=f.domain||null,H=t._size||null;if(N&&H){var re=n.container.style;re.position="absolute",re.left=H.l+N.x[0]*H.w+"px",re.top=H.t+(1-N.y[1])*H.h+"px",re.width=H.w*(N.x[1]-N.x[0])+"px",re.height=H.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Ep.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function SRt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function MRt(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Ep.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),MRt(e.camera)};Ep.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,SRt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Ep.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=fv.nestedProperty(e,t.id+".camera"),i=n.get();function a(l,f,c,h){var d=["up","center","eye"],p=["x","y","z"];return f[d[c]]&&l[d[c]][p[h]]===f[d[c]][p[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var u=0;u<3;u++)if(!a(r,i,s,u)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Ep.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=fv.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Ep.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,u,l=t.isCameraChanged(e),f=t.isAspectChanged(e),c=l||f;if(c){var h={};if(l&&(n=t.getCamera(),i=fv.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),f&&(o=t.glplot.getAspectratio(),s=fv.nestedProperty(e,t.id+".aspectratio"),u=s.get(),h[t.id+".aspectratio"]=u),uF.call("_storeDirectGUIEdit",e,r._preGUI,h),l){i.set(n);var d=fv.nestedProperty(r,t.id+".camera");d.set(n)}if(f){s.set(o);var p=fv.nestedProperty(r,t.id+".aspectratio");p.set(o),t.glplot.redraw()}}return c};Ep.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,u=o.up.y,l=o.up.z;if(l/Math.sqrt(s*s+u*u+l*l)<.999){var f=r.id+".camera.up",c={x:0,y:0,z:1},h={};h[f]=c;var d=i.layout;uF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,fv.nestedProperty(d,f).set(c)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function ERt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,u=0;u<3;++u)e[a+u]=Math.min(s*e[a+u],255)}}Ep.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(nk),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),ERt(a,n,i),kRt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),u=s.createImageData(n,i);u.data.set(a),s.putImageData(u,0,0);var l;switch(e){case"jpeg":l=o.toDataURL("image/jpeg");break;case"webp":l=o.toDataURL("image/webp");break;default:l=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(nk),l};Ep.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[ak[t]];fF.setConvert(r,e.fullLayout),r.setScale=fv.noop}};Ep.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},fF.setConvert(e._mockAxis,r)};WIe.exports=HIe});var ZIe=we((igr,XIe)=>{"use strict";XIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var YX=we((ngr,YIe)=>{"use strict";var CRt=jl(),ff=Rd(),ZX=Su().extendFlat,LRt=Sc().overrideAll;YIe.exports=LRt({visible:ff.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:CRt.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:ff.color,categoryorder:ff.categoryorder,categoryarray:ff.categoryarray,title:{text:ff.title.text,font:ff.title.font},type:ZX({},ff.type,{values:["-","linear","log","date","category"]}),autotypenumbers:ff.autotypenumbers,autorange:ff.autorange,autorangeoptions:{minallowed:ff.autorangeoptions.minallowed,maxallowed:ff.autorangeoptions.maxallowed,clipmin:ff.autorangeoptions.clipmin,clipmax:ff.autorangeoptions.clipmax,include:ff.autorangeoptions.include,editType:"plot"},rangemode:ff.rangemode,minallowed:ff.minallowed,maxallowed:ff.maxallowed,range:ZX({},ff.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:ff.minor.tickmode,nticks:ff.nticks,tick0:ff.tick0,dtick:ff.dtick,tickvals:ff.tickvals,ticktext:ff.ticktext,ticks:ff.ticks,mirror:ff.mirror,ticklen:ff.ticklen,tickwidth:ff.tickwidth,tickcolor:ff.tickcolor,showticklabels:ff.showticklabels,labelalias:ff.labelalias,tickfont:ff.tickfont,tickangle:ff.tickangle,tickprefix:ff.tickprefix,showtickprefix:ff.showtickprefix,ticksuffix:ff.ticksuffix,showticksuffix:ff.showticksuffix,showexponent:ff.showexponent,exponentformat:ff.exponentformat,minexponent:ff.minexponent,separatethousands:ff.separatethousands,tickformat:ff.tickformat,tickformatstops:ff.tickformatstops,hoverformat:ff.hoverformat,showline:ff.showline,linecolor:ff.linecolor,linewidth:ff.linewidth,showgrid:ff.showgrid,gridcolor:ZX({},ff.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:ff.gridwidth,zeroline:ff.zeroline,zerolinecolor:ff.zerolinecolor,zerolinewidth:ff.zerolinewidth},"plot","from-root")});var QX=we((agr,KIe)=>{"use strict";var KX=YX(),PRt=zc().attributes,JX=Su().extendFlat,zRt=ei().counterRegex;function $X(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}KIe.exports={_arrayAttrRegexps:[zRt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:JX($X(0,0,1),{}),center:JX($X(0,0,0),{}),eye:JX($X(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:PRt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:KX,yaxis:KX,zaxis:KX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var eDe=we((ogr,QIe)=>{"use strict";var IRt=hd().mix,JIe=ei(),DRt=Lf(),RRt=YX(),FRt=GU(),ORt=hE(),$Ie=["xaxis","yaxis","zaxis"],BRt=100*136/187;QIe.exports=function(t,r,n){var i,a;function o(l,f){return JIe.coerce(i,a,RRt,l,f)}for(var s=0;s<$Ie.length;s++){var u=$Ie[s];i=t[u]||{},a=DRt.newContainer(r,u),a._id=u[0]+n.scene,a._name=u,FRt(i,a,o,n),ORt(i,a,o,{font:n.font,letter:u[0],data:n.data,showGrid:!0,noAutotickangles:!0,noMinorloglabels:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,noUnifiedhovertitle:!0,bgColor:n.bgColor,calendar:n.calendar},n.fullLayout),o("gridcolor",IRt(a.color,n.bgColor,BRt).toRgbString()),o("title.text",u[0]),a.setScale=JIe.noop,o("showspikes")&&(o("spikesides"),o("spikethickness"),o("spikecolor",a.color)),o("showaxeslabels"),o("showbackground")&&o("backgroundcolor")}}});var nDe=we((sgr,iDe)=>{"use strict";var qRt=ei(),NRt=jl(),URt=$l(),VRt=O_(),GRt=eDe(),tDe=QX(),HRt=Dd().getSubplotData,rDe="gl3d";iDe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=qRt.validate(t[o],tDe[o]);if(s)return t[o]}}VRt(t,r,n,{type:rDe,attributes:tDe,handleDefaults:WRt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function WRt(e,t,r,n){for(var i=r("bgcolor"),a=NRt.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var lx=we(cv=>{"use strict";var jRt=Sc().overrideAll,XRt=j1(),ZRt=jIe(),YRt=Dd().getSubplotData,KRt=ei(),JRt=jv(),YT="gl3d",eZ="scene";cv.name=YT;cv.attr=eZ;cv.idRoot=eZ;cv.idRegex=cv.attrRegex=KRt.counterRegex("scene");cv.attributes=ZIe();cv.layoutAttributes=QX();cv.baseLayoutAttrOverrides=jRt({hoverlabel:XRt.hoverlabel},"plot","nested");cv.supplyLayoutDefaults=nDe();cv.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[YT],a=0;a{"use strict";aDe.exports={plot:vIe(),attributes:WX(),markerSymbols:aF(),supplyDefaults:wIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:TIe(),moduleType:"trace",name:"scatter3d",basePlotModule:lx(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var lDe=we((fgr,sDe)=>{"use strict";sDe.exports=oDe()});var ok=we((cgr,cDe)=>{"use strict";var uDe=jl(),$Rt=nc(),tZ=Xc().axisHoverFormat,{hovertemplateAttrs:QRt,templatefallbackAttrs:e6t}=Ff(),fDe=Gf(),rZ=Su().extendFlat,t6t=Sc().overrideAll;function iZ(e){return{valType:"boolean",dflt:!1}}function nZ(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:iZ("x"),y:iZ("y"),z:iZ("z")},color:{valType:"color",dflt:uDe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:uDe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var aZ=cDe.exports=t6t(rZ({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:QRt(),hovertemplatefallback:e6t(),xhoverformat:tZ("x"),yhoverformat:tZ("y"),zhoverformat:tZ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},$Rt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:nZ("x"),y:nZ("y"),z:nZ("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:rZ({},fDe.hoverinfo),showlegend:rZ({},fDe.showlegend,{dflt:!1})}),"calc","nested");aZ.x.editType=aZ.y.editType=aZ.z.editType="calc+clearAxisTypes"});var sZ=we((hgr,pDe)=>{"use strict";var r6t=$l(),hDe=ei(),i6t=nd(),n6t=ok(),oZ=.1;function a6t(e,t){for(var r=[],n=32,i=0;i{"use strict";var vDe=gp();mDe.exports=function(t,r){r.surfacecolor?vDe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):vDe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var ADe=we((pgr,wDe)=>{"use strict";var l6t=qd().gl_surface3d,KT=qd().ndarray,u6t=qd().ndarray_linear_interpolate.d2,f6t=cD(),c6t=hD(),sk=ei().isArrayOrTypedArray,h6t=a1().parseColorScale,gDe=n1(),d6t=_c().extractOpts;function xDe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var ey=xDe.prototype;ey.getXat=function(e,t,r,n){var i=sk(this.data.x)?sk(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};ey.getYat=function(e,t,r,n){var i=sk(this.data.y)?sk(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};ey.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};ey.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return sk(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function p6t(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var JT=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function v6t(e,t){if(e0){r=JT[n];break}return r}function y6t(e,t){if(!(e<1||t<1)){for(var r=lZ(e),n=lZ(t),i=1,a=0;acF;)n--,n/=m6t(n),n++,n<_De&&(n=cF);var i=Math.round(n/e);return i>1?i:1};function _6t(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function x6t(e,t,r){return b6t(e,t,_6t,r),e}function b6t(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[l]=h),this.maxValues[l]{"use strict";TDe.exports={attributes:ok(),supplyDefaults:sZ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:yDe(),plot:ADe(),moduleType:"trace",name:"surface",basePlotModule:lx(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var EDe=we((mgr,MDe)=>{"use strict";MDe.exports=SDe()});var $T=we((ygr,CDe)=>{"use strict";var T6t=nc(),uZ=Xc().axisHoverFormat,{hovertemplateAttrs:S6t,templatefallbackAttrs:M6t}=Ff(),ux=ok(),kDe=Gf(),fx=Su().extendFlat;CDe.exports=fx({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:S6t({editType:"calc"}),hovertemplatefallback:M6t({editType:"calc"}),xhoverformat:uZ("x"),yhoverformat:uZ("y"),zhoverformat:uZ("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},T6t("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ux.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:fx({},ux.contours.x.show,{}),color:ux.contours.x.color,width:ux.contours.x.width,editType:"calc"},lightposition:{x:fx({},ux.lightposition.x,{dflt:1e5}),y:fx({},ux.lightposition.y,{dflt:1e5}),z:fx({},ux.lightposition.z,{dflt:0}),editType:"calc"},lighting:fx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},ux.lighting),hoverinfo:fx({},kDe.hoverinfo,{editType:"calc"}),showlegend:fx({},kDe.showlegend,{dflt:!1})})});var dF=we((ggr,PDe)=>{"use strict";var E6t=nc(),hF=Xc().axisHoverFormat,{hovertemplateAttrs:k6t,templatefallbackAttrs:C6t}=Ff(),lk=$T(),LDe=Gf(),fZ=Su().extendFlat,L6t=Sc().overrideAll;function cZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function hZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var QT=PDe.exports=L6t(fZ({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:cZ("x"),y:cZ("y"),z:cZ("z")},caps:{x:hZ("x"),y:hZ("y"),z:hZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:k6t(),hovertemplatefallback:C6t(),xhoverformat:hF("x"),yhoverformat:hF("y"),zhoverformat:hF("z"),valuehoverformat:hF("value",1),showlegend:fZ({},LDe.showlegend,{dflt:!1})},E6t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:lk.opacity,lightposition:lk.lightposition,lighting:lk.lighting,flatshading:lk.flatshading,contour:lk.contour,hoverinfo:fZ({},LDe.hoverinfo)}),"calc","nested");QT.flatshading.dflt=!0;QT.lighting.facenormalsepsilon.dflt=0;QT.x.editType=QT.y.editType=QT.z.editType=QT.value.editType="calc+clearAxisTypes"});var dZ=we((_gr,IDe)=>{"use strict";var P6t=ei(),z6t=$l(),I6t=dF(),D6t=nd();function R6t(e,t,r,n){function i(a,o){return P6t.coerce(e,t,I6t,a,o)}zDe(e,t,r,n,i)}function zDe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),u=i("y"),l=i("z"),f=i("value");if(!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length){t.visible=!1;return}var c=z6t.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(y){i(y+"hoverformat");var b="caps."+y,v=i(b+".show");v&&i(b+".fill");var C="slices."+y,M=i(C+".show");M&&(i(C+".fill"),i(C+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var p=i("contour.show");p&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(y){i(y)}),D6t(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}IDe.exports={supplyDefaults:R6t,supplyIsoDefaults:zDe}});var pF=we((xgr,RDe)=>{"use strict";var vZ=ei(),F6t=gp();function O6t(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=$y(t.u,t._len),t._v=$y(t.v,t._len),t._w=$y(t.w,t._len),t._x=$y(t.x,t._len),t._y=$y(t.y,t._len),t._z=$y(t.z,t._len);var r=DDe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=$y(t.starts.x||[]),a=$y(t.starts.y||[]),o=$y(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,u=1/0,l;for(l=0;l1&&(M=t[i-1],L=r[i-1],k=n[i-1]),a=0;aM?"-":"+")+"x"),p=p.replace("y",(A>L?"-":"+")+"y"),p=p.replace("z",(x>k?"-":"+")+"z");var E=function(){i=0,S=[],m=[],P=[]};(!i||i{"use strict";var B6t=gp(),q6t=pF().processGrid,vF=pF().filter;FDe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=vF(r.x,r._len),r._y=vF(r.y,r._len),r._z=vF(r.z,r._len),r._value=vF(r.value,r._len);var n=q6t(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";ODe.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var N6t=qd().gl_mesh3d,U6t=a1().parseColorScale,V6t=ei().isArrayOrTypedArray,G6t=n1(),H6t=_c().extractOpts,BDe=eS(),uk=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function ae(vt,lt){return vt===null?lt:vt}function me(vt,lt,We){E();var Ve=[lt],et=[We];if(W>=1)Ve=[lt],et=[We];else if(W>0){var tt=H(lt,We);Ve=tt.xyzv,et=tt.abc}for(var Lt=0;Lt-1?We[or]:P(yr,vr,Vt);xe>-1?jt[or]=xe:jt[or]=F(yr,vr,Vt,ae(vt,Pe))}U(jt[0],jt[1],jt[2])}}function Le(vt,lt,We){var Ve=function(et,tt,Lt){me(vt,[lt[et],lt[tt],lt[Lt]],[We[et],We[tt],We[Lt]])};Ve(0,1,2),Ve(2,3,0)}function Ce(vt,lt,We){var Ve=function(et,tt,Lt){me(vt,[lt[et],lt[tt],lt[Lt]],[We[et],We[tt],We[Lt]])};Ve(0,1,2),Ve(3,0,1),Ve(2,3,0),Ve(1,2,3)}function de(vt,lt,We,Ve){var et=vt[3];etVe&&(et=Ve);for(var tt=(vt[3]-et)/(vt[3]-lt[3]+1e-9),Lt=[],jt=0;jt<4;jt++)Lt[jt]=(1-tt)*vt[jt]+tt*lt[jt];return Lt}function te(vt,lt,We){return vt>=lt&&vt<=We}function Se(vt){var lt=.001*(L-A);return vt>=A-lt&&vt<=L+lt}function Te(vt){for(var lt=[],We=0;We<4;We++){var Ve=vt[We];lt.push([e._x[Ve],e._y[Ve],e._z[Ve],e._value[Ve]])}return lt}var be=3;function He(vt,lt,We,Ve,et,tt){tt||(tt=1),We=[-1,-1,-1];var Lt=!1,jt=[te(lt[0][3],Ve,et),te(lt[1][3],Ve,et),te(lt[2][3],Ve,et)];if(!jt[0]&&!jt[1]&&!jt[2])return!1;var or=function(vr,Vt,Pe){return Se(Vt[0][3])&&Se(Vt[1][3])&&Se(Vt[2][3])?(me(vr,Vt,Pe),!0):ttjt?[C,tt]:[tt,M];Mt(lt,or[0],or[1])}}var yr=[[Math.min(A,M),Math.max(A,M)],[Math.min(C,L),Math.max(C,L)]];["x","y","z"].forEach(function(vr){for(var Vt=[],Pe=0;Pe0&&(st.push(pr.id),vr==="x"?gt.push([pr.distRatio,0,0]):vr==="y"?gt.push([0,pr.distRatio,0]):gt.push([0,0,pr.distRatio]))}else vr==="x"?ht=Me(1,d-1):vr==="y"?ht=Me(1,p-1):ht=Me(1,y-1);st.length>0&&(vr==="x"?Vt[xe]=kt(vt,st,Oe,ze,gt,Vt[xe]):vr==="y"?Vt[xe]=$e(vt,st,Oe,ze,gt,Vt[xe]):Vt[xe]=De(vt,st,Oe,ze,gt,Vt[xe]),xe++),ht.length>0&&(vr==="x"?Vt[xe]=bt(vt,ht,Oe,ze,Vt[xe]):vr==="y"?Vt[xe]=Ot(vt,ht,Oe,ze,Vt[xe]):Vt[xe]=it(vt,ht,Oe,ze,Vt[xe]),xe++)}var br=e.caps[vr];br.show&&br.fill&&(N(br.fill),vr==="x"?Vt[xe]=bt(vt,[0,d-1],Oe,ze,Vt[xe]):vr==="y"?Vt[xe]=Ot(vt,[0,p-1],Oe,ze,Vt[xe]):Vt[xe]=it(vt,[0,y-1],Oe,ze,Vt[xe]),xe++)}}),s===0&&O(),e._meshX=x,e._meshY=k,e._meshZ=S,e._meshIntensity=m,e._Xs=f,e._Ys=c,e._Zs=h}return Ne(),e}function j6t(e,t){var r=e.glplot.gl,n=N6t({gl:r}),i=new qDe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}UDe.exports={findNearestOnAxis:uk,generateIsoMeshes:NDe,createIsosurfaceTrace:j6t}});var GDe=we((Tgr,VDe)=>{"use strict";VDe.exports={attributes:dF(),supplyDefaults:dZ().supplyDefaults,calc:mZ(),colorbar:{min:"cmin",max:"cmax"},plot:mF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:lx(),categories:["gl3d","showLegend"],meta:{}}});var WDe=we((Sgr,HDe)=>{"use strict";HDe.exports=GDe()});var _Z=we((Mgr,XDe)=>{"use strict";var X6t=nc(),Ch=dF(),Z6t=ok(),jDe=Gf(),gZ=Su().extendFlat,Y6t=Sc().overrideAll,yF=XDe.exports=Y6t(gZ({x:Ch.x,y:Ch.y,z:Ch.z,value:Ch.value,isomin:Ch.isomin,isomax:Ch.isomax,surface:Ch.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Ch.slices,caps:Ch.caps,text:Ch.text,hovertext:Ch.hovertext,xhoverformat:Ch.xhoverformat,yhoverformat:Ch.yhoverformat,zhoverformat:Ch.zhoverformat,valuehoverformat:Ch.valuehoverformat,hovertemplate:Ch.hovertemplate,hovertemplatefallback:Ch.hovertemplatefallback},X6t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Ch.colorbar,opacity:Ch.opacity,opacityscale:Z6t.opacityscale,lightposition:Ch.lightposition,lighting:Ch.lighting,flatshading:Ch.flatshading,contour:Ch.contour,hoverinfo:gZ({},jDe.hoverinfo),showlegend:gZ({},jDe.showlegend,{dflt:!1})}),"calc","nested");yF.x.editType=yF.y.editType=yF.z.editType=yF.value.editType="calc+clearAxisTypes"});var YDe=we((Egr,ZDe)=>{"use strict";var K6t=ei(),J6t=_Z(),$6t=dZ().supplyIsoDefaults,Q6t=sZ().opacityscaleDefaults;ZDe.exports=function(t,r,n,i){function a(o,s){return K6t.coerce(t,r,J6t,o,s)}$6t(t,r,n,i,a),Q6t(t,r,i,a)}});var QDe=we((kgr,$De)=>{"use strict";var eFt=qd().gl_mesh3d,tFt=a1().parseColorScale,rFt=ei().isArrayOrTypedArray,iFt=n1(),nFt=_c().extractOpts,KDe=eS(),xZ=mF().findNearestOnAxis,aFt=mF().generateIsoMeshes;function JDe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var bZ=JDe.prototype;bZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=xZ(r,this.data._Xs).id,u=xZ(n,this.data._Ys).id,l=xZ(i,this.data._Zs).id,f=e.index=l+o*u+o*a*s;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return rFt(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};bZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=aFt(e);function n(u,l,f,c){return l.map(function(h){return u.d2l(h,0,c)*f})}var i=KDe(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=KDe(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:iFt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=nFt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=tFt(e),this.mesh.update(o)};bZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function oFt(e,t){var r=e.glplot.gl,n=eFt({gl:r}),i=new JDe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}$De.exports=oFt});var tRe=we((Cgr,eRe)=>{"use strict";eRe.exports={attributes:_Z(),supplyDefaults:YDe(),calc:mZ(),colorbar:{min:"cmin",max:"cmax"},plot:QDe(),moduleType:"trace",name:"volume",basePlotModule:lx(),categories:["gl3d","showLegend"],meta:{}}});var iRe=we((Lgr,rRe)=>{"use strict";rRe.exports=tRe()});var oRe=we((Pgr,aRe)=>{"use strict";var sFt=$l(),nRe=ei(),lFt=nd(),uFt=$T();aRe.exports=function(t,r,n,i){function a(f,c){return nRe.coerce(t,r,uFt,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&nRe.isArrayOrTypedArray(d)?d:null});return c.every(function(h){return h&&h.length===c[0].length})&&c}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var u=sFt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){a(f)});var l=a("contour.show");l&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),lFt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var lRe=we((zgr,sRe)=>{"use strict";var fFt=gp();sRe.exports=function(t,r){r.intensity&&fFt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var dRe=we((Igr,hRe)=>{"use strict";var cFt=qd().gl_mesh3d,hFt=qd().delaunay_triangulate,dFt=qd().alpha_shape,pFt=qd().convex_hull,vFt=a1().parseColorScale,mFt=ei().isArrayOrTypedArray,SZ=n1(),yFt=_c().extractOpts,uRe=eS();function cRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var MZ=cRe.prototype;MZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return mFt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function fRe(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}MZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=uRe(wZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),wZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),wZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!TZ(e.i,n)||!TZ(e.j,n)||!TZ(e.k,n))return;a=uRe(AZ(e.i),AZ(e.j),AZ(e.k))}else e.alphahull===0?a=pFt(i):e.alphahull>0?a=dFt(e.alphahull,i):a=gFt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:SZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=yFt(e);this.color="#fff";var u=e.intensitymode;o[u+"Intensity"]=e.intensity,o[u+"IntensityBounds"]=[s.min,s.max],o.colormap=vFt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=fRe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=fRe(e.facecolor)):(this.color=e.color,o.meshColor=SZ(e.color));this.mesh.update(o)};MZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function _Ft(e,t){var r=e.glplot.gl,n=cFt({gl:r}),i=new cRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}hRe.exports=_Ft});var vRe=we((Dgr,pRe)=>{"use strict";pRe.exports={attributes:$T(),supplyDefaults:oRe(),calc:lRe(),colorbar:{min:"cmin",max:"cmax"},plot:dRe(),moduleType:"trace",name:"mesh3d",basePlotModule:lx(),categories:["gl3d","showLegend"],meta:{}}});var yRe=we((Rgr,mRe)=>{"use strict";mRe.exports=vRe()});var kZ=we((Fgr,_Re)=>{"use strict";var xFt=nc(),tS=Xc().axisHoverFormat,{hovertemplateAttrs:bFt,templatefallbackAttrs:wFt}=Ff(),AFt=$T(),gRe=Gf(),EZ=Su().extendFlat,gF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:bFt({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:wFt({editType:"calc"}),uhoverformat:tS("u",1),vhoverformat:tS("v",1),whoverformat:tS("w",1),xhoverformat:tS("x"),yhoverformat:tS("y"),zhoverformat:tS("z"),showlegend:EZ({},gRe.showlegend,{dflt:!1})};EZ(gF,xFt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var TFt=["opacity","lightposition","lighting"];TFt.forEach(function(e){gF[e]=AFt[e]});gF.hoverinfo=EZ({},gRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});_Re.exports=gF});var bRe=we((Ogr,xRe)=>{"use strict";var SFt=ei(),MFt=nd(),EFt=kZ();xRe.exports=function(t,r,n,i){function a(d,p){return SFt.coerce(t,r,EFt,d,p)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),MFt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var ARe=we((Bgr,wRe)=>{"use strict";var kFt=gp();wRe.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,u=1/0,l=0;l{"use strict";var CFt=qd().gl_cone3d,LFt=qd().gl_cone3d.createConeMesh,PFt=ei().simpleMap,zFt=a1().parseColorScale,IFt=_c().extractOpts,DFt=ei().isArrayOrTypedArray,TRe=eS();function SRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var CZ=SRe.prototype;CZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var u=this.data.hovertext||this.data.text;return DFt(u)&&u[t]!==void 0?e.textLabel=u[t]:u&&(e.textLabel=u),!0}};var RFt={xaxis:0,yaxis:1,zaxis:2},FFt={tip:1,tail:0,cm:.25,center:.5},OFt={tip:1,tail:1,cm:.75,center:.5};function MRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(f,c){var h=r[c],d=n[RFt[c]];return PFt(f,function(p){return h.d2l(p)*d})}i.vectors=TRe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=TRe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=IFt(t);i.colormap=zFt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=FFt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var u=CFt(i),l=t.lightposition;return u.lightPosition=[l.x,l.y,l.z],u.ambient=t.lighting.ambient,u.diffuse=t.lighting.diffuse,u.specular=t.lighting.specular,u.roughness=t.lighting.roughness,u.fresnel=t.lighting.fresnel,u.opacity=t.opacity,t._pad=OFt[t.anchor]*u.vectorScale*u.coneScale*t._normMax,u}CZ.update=function(e){this.data=e;var t=MRe(this.scene,e);this.mesh.update(t)};CZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function BFt(e,t){var r=e.glplot.gl,n=MRe(e,t),i=LFt(r,n),a=new SRe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}ERe.exports=BFt});var LRe=we((Ngr,CRe)=>{"use strict";CRe.exports={moduleType:"trace",name:"cone",basePlotModule:lx(),categories:["gl3d","showLegend"],attributes:kZ(),supplyDefaults:bRe(),colorbar:{min:"cmin",max:"cmax"},calc:ARe(),plot:kRe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var zRe=we((Ugr,PRe)=>{"use strict";PRe.exports=LRe()});var PZ=we((Vgr,DRe)=>{"use strict";var qFt=nc(),rS=Xc().axisHoverFormat,{hovertemplateAttrs:NFt,templatefallbackAttrs:UFt}=Ff(),VFt=$T(),IRe=Gf(),LZ=Su().extendFlat,_F={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:NFt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:UFt({editType:"calc"}),uhoverformat:rS("u",1),vhoverformat:rS("v",1),whoverformat:rS("w",1),xhoverformat:rS("x"),yhoverformat:rS("y"),zhoverformat:rS("z"),showlegend:LZ({},IRe.showlegend,{dflt:!1})};LZ(_F,qFt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var GFt=["opacity","lightposition","lighting"];GFt.forEach(function(e){_F[e]=VFt[e]});_F.hoverinfo=LZ({},IRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});DRe.exports=_F});var FRe=we((Ggr,RRe)=>{"use strict";var HFt=ei(),WFt=nd(),jFt=PZ();RRe.exports=function(t,r,n,i){function a(h,d){return HFt.coerce(t,r,jFt,h,d)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),WFt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var HRe=we((Hgr,GRe)=>{"use strict";var qRe=qd().gl_streamtube3d,XFt=qRe.createTubeMesh,ZFt=ei(),YFt=a1().parseColorScale,KFt=_c().extractOpts,ORe=eS(),NRe={xaxis:0,yaxis:1,zaxis:2};function URe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var IZ=URe.prototype;IZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var u=t[s],l=r[NRe[s]];return u.l2c(o)/l}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function BRe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function zZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function VRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(O,F){var U=r[F],G=n[NRe[F]];return ZFt.simpleMap(O,function(j){return U.d2l(j)*G})}if(a.vectors=ORe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),u=o(t._Ys,"yaxis"),l=o(t._Zs,"zaxis");a.meshgrid=[s,u,l],a.gridFill=t._gridFill;var f=t._slen;if(f)a.startingPositions=ORe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=u[0],h=BRe(s),d=BRe(l),p=new Array(h.length*d.length),y=0,b=0;b{"use strict";WRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:lx(),categories:["gl3d","showLegend"],attributes:PZ(),supplyDefaults:FRe(),colorbar:{min:"cmin",max:"cmax"},calc:pF().calc,plot:HRe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var ZRe=we((jgr,XRe)=>{"use strict";XRe.exports=jRe()});var tw=we((Zgr,QRe)=>{"use strict";var{hovertemplateAttrs:$Ft,texttemplateAttrs:QFt,templatefallbackAttrs:YRe}=Ff(),e9t=Pm(),Qy=Zc(),t9t=Gf(),KRe=nc(),r9t=Id().dash,ew=Su().extendFlat,i9t=Sc().overrideAll,rm=Qy.marker,JRe=Qy.line,$Re=rm.line,Xgr=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");QRe.exports=i9t({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:ew({},Qy.mode,{dflt:"markers"}),text:ew({},Qy.text,{}),texttemplate:QFt({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:YRe({editType:"plot"}),hovertext:ew({},Qy.hovertext,{}),textfont:Qy.textfont,textposition:Qy.textposition,line:{color:JRe.color,width:JRe.width,dash:r9t},connectgaps:Qy.connectgaps,marker:ew({symbol:rm.symbol,opacity:rm.opacity,angle:rm.angle,angleref:ew({},rm.angleref,{values:["previous","up","north"]}),standoff:rm.standoff,size:rm.size,sizeref:rm.sizeref,sizemin:rm.sizemin,sizemode:rm.sizemode,colorbar:rm.colorbar,line:ew({width:$Re.width,dash:$Re.dash},KRe("marker.line")),gradient:rm.gradient},KRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:e9t(),selected:Qy.selected,unselected:Qy.unselected,hoverinfo:ew({},t9t.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:$Ft(),hovertemplatefallback:YRe()},"calc","nested")});var t6e=we((Ygr,e6e)=>{"use strict";var xF=ei(),DZ=lc(),n9t=$v(),a9t=D0(),o9t=R0(),s9t=Rm(),l9t=tw(),u9t=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");e6e.exports=function(t,r,n,i){function a(d,p){return xF.coerce(t,r,l9t,d,p)}var o=a("locations"),s;if(o&&o.length){var u=a("geojson"),l;(typeof u=="string"&&u!==""||xF.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&xF.warn(u9t),f==="geojson-id"&&a("featureidkey"),s=o.length}else{var c=a("lon")||[],h=a("lat")||[];s=Math.min(c.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),DZ.hasMarkers(r)&&n9t(t,r,n,i,a,{gradient:!0}),DZ.hasLines(r)&&(a9t(t,r,n,i,a),a("connectgaps")),DZ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),o9t(t,r,i,a)),a("fill"),r.fill!=="none"&&s9t(t,r,n,a),xF.coerceSelectionMarkerOpacity(r,a)}});var n6e=we((Kgr,i6e)=>{"use strict";var r6e=wu();i6e.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=r6e.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=r6e.tickText(o,o.c2l(s[1]),!0).text,i}});var bF=we((Jgr,l6e)=>{"use strict";var RZ=ku(),a6e=rf().BADNUM,f9t=F0(),c9t=Dy(),h9t=O0(),d9t=ei().isArrayOrTypedArray,o6e=ei()._;function s6e(e){return e&&typeof e=="string"}l6e.exports=function(t,r){var n=d9t(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return s6e(h)||RZ(h)}:o=s6e;for(var s=0;s{"use strict";kp.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};kp.axesNames=["lonaxis","lataxis"];kp.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};kp.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};kp.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};kp.clipPad=.001;kp.precision=.1;kp.landColor="#F0DC82";kp.waterColor="#3399FF";kp.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};kp.sphereSVG={type:"Sphere"};kp.fillLayers={ocean:1,land:1,lakes:1};kp.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};kp.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];kp.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];kp.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var FZ=we((wF,u6e)=>{(function(e,t){typeof wF=="object"&&typeof u6e!="undefined"?t(wF):(e=e||self,t(e.topojson=e.topojson||{}))})(wF,function(e){"use strict";function t(M){return M}function r(M){if(M==null)return t;var A,L,x=M.scale[0],k=M.scale[1],S=M.translate[0],m=M.translate[1];return function(P,E){E||(A=L=0);var O=2,F=P.length,U=new Array(F);for(U[0]=(A+=P[0])*x+S,U[1]=(L+=P[1])*k+m;OS&&(S=O[0]),O[1]m&&(m=O[1])}function E(O){switch(O.type){case"GeometryCollection":O.geometries.forEach(E);break;case"Point":P(O.coordinates);break;case"MultiPoint":O.coordinates.forEach(P);break}}M.arcs.forEach(function(O){for(var F=-1,U=O.length,G;++FS&&(S=G[0]),G[1]m&&(m=G[1])});for(L in M.objects)E(M.objects[L]);return[x,k,S,m]}function i(M,A){for(var L,x=M.length,k=x-A;k<--x;)L=M[k],M[k++]=M[x],M[x]=L}function a(M,A){return typeof A=="string"&&(A=M.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(L){return o(M,L)})}:o(M,A)}function o(M,A){var L=A.id,x=A.bbox,k=A.properties==null?{}:A.properties,S=s(M,A);return L==null&&x==null?{type:"Feature",properties:k,geometry:S}:x==null?{type:"Feature",id:L,properties:k,geometry:S}:{type:"Feature",id:L,bbox:x,properties:k,geometry:S}}function s(M,A){var L=r(M.transform),x=M.arcs;function k(F,U){U.length&&U.pop();for(var G=x[F<0?~F:F],j=0,W=G.length;j1)x=c(M,A,L);else for(k=0,x=new Array(S=M.arcs.length);k1)for(var U=1,G=P(O[0]),j,W;UG&&(W=O[0],O[0]=O[U],O[U]=W,G=j);return O}).filter(function(E){return E.length>0})}}function y(M,A){for(var L=0,x=M.length;L>>1;M[k]=2))throw new Error("n must be \u22652");E=M.bbox||n(M);var L=E[0],x=E[1],k=E[2],S=E[3],m;A={scale:[k-L?(k-L)/(m-1):1,S-x?(S-x)/(m-1):1],translate:[L,x]}}else E=M.bbox;var P=v(A),E,O,F=M.objects,U={};function G(N){return P(N)}function j(N){var H;switch(N.type){case"GeometryCollection":H={type:"GeometryCollection",geometries:N.geometries.map(j)};break;case"Point":H={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":H={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(H.id=N.id),N.bbox!=null&&(H.bbox=N.bbox),N.properties!=null&&(H.properties=N.properties),H}function W(N){var H=0,re=1,ae=N.length,me,Le=new Array(ae);for(Le[0]=P(N[0],0);++H{"use strict";var OZ=f6e.exports={},p9t=fk().locationmodeToLayer,v9t=FZ().feature;OZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};OZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};OZ.getTopojsonFeatures=function(e,t){var r=p9t[e.locationmode],n=t.objects[r];return v9t(t,n).features}});var cx=we(ck=>{"use strict";var m9t=rf().BADNUM;ck.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};ck.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};ck.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{c6e.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var MF=we(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Ov=63710088e-1,qZ={centimeters:Ov*100,centimetres:Ov*100,degrees:360/(2*Math.PI),feet:Ov*3.28084,inches:Ov*39.37,kilometers:Ov/1e3,kilometres:Ov/1e3,meters:Ov,metres:Ov,miles:Ov/1609.344,millimeters:Ov*1e3,millimetres:Ov*1e3,nauticalmiles:Ov/1852,radians:1,yards:Ov*1.0936},BZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function hx(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function y9t(e,t,r={}){switch(e){case"Point":return NZ(t).geometry;case"LineString":return VZ(t).geometry;case"Polygon":return UZ(t).geometry;case"MultiPoint":return p6e(t).geometry;case"MultiLineString":return d6e(t).geometry;case"MultiPolygon":return v6e(t).geometry;default:throw new Error(e+" is invalid")}}function NZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!TF(e[0])||!TF(e[1]))throw new Error("coordinates must contain numbers");return hx({type:"Point",coordinates:e},t,r)}function g9t(e,t,r={}){return SF(e.map(n=>NZ(n,t)),r)}function UZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aUZ(n,t)),r)}function VZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return hx({type:"LineString",coordinates:e},t,r)}function x9t(e,t,r={}){return SF(e.map(n=>VZ(n,t)),r)}function SF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function d6e(e,t,r={}){return hx({type:"MultiLineString",coordinates:e},t,r)}function p6e(e,t,r={}){return hx({type:"MultiPoint",coordinates:e},t,r)}function v6e(e,t,r={}){return hx({type:"MultiPolygon",coordinates:e},t,r)}function b9t(e,t,r={}){return hx({type:"GeometryCollection",geometries:e},t,r)}function w9t(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function m6e(e,t="kilometers"){let r=qZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function GZ(e,t="kilometers"){let r=qZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function A9t(e,t){return y6e(GZ(e,t))}function T9t(e){let t=e%360;return t<0&&(t+=360),t}function S9t(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function y6e(e){return e%(2*Math.PI)*180/Math.PI}function M9t(e){return e%360*Math.PI/180}function E9t(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return m6e(GZ(e,t),r)}function k9t(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=BZ[t];if(!n)throw new Error("invalid original units");let i=BZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function TF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function C9t(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function L9t(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!TF(t))throw new Error("bbox must only contain numbers")})}function P9t(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}bc.areaFactors=BZ;bc.azimuthToBearing=S9t;bc.bearingToAzimuth=T9t;bc.convertArea=k9t;bc.convertLength=E9t;bc.degreesToRadians=M9t;bc.earthRadius=Ov;bc.factors=qZ;bc.feature=hx;bc.featureCollection=SF;bc.geometry=y9t;bc.geometryCollection=b9t;bc.isNumber=TF;bc.isObject=C9t;bc.lengthToDegrees=A9t;bc.lengthToRadians=GZ;bc.lineString=VZ;bc.lineStrings=x9t;bc.multiLineString=d6e;bc.multiPoint=p6e;bc.multiPolygon=v6e;bc.point=NZ;bc.points=g9t;bc.polygon=UZ;bc.polygons=_9t;bc.radiansToDegrees=y6e;bc.radiansToLength=m6e;bc.round=w9t;bc.validateBBox=L9t;bc.validateId=P9t});var kF=we(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var jp=MF();function hk(e,t,r){if(e!==null)for(var n,i,a,o,s,u,l,f=0,c=0,h,d=e.type,p=d==="FeatureCollection",y=d==="Feature",b=p?e.features.length:1,v=0;vu||p>l||y>f){s=c,u=n,l=p,f=y,a=0;return}var b=jp.lineString.call(void 0,[s,c],r.properties);if(t(b,n,i,y,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function B9t(e,t,r){var n=r,i=!1;return x6e(e,function(a,o,s,u,l){i===!1&&r===void 0?n=a:n=t(n,a,o,s,u,l),i=!0}),n}function b6e(e,t){if(!e)throw new Error("geojson is required");EF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});var w6e=MF(),V9t=kF();function S6e(e){return V9t.geomReduce.call(void 0,e,(t,r)=>t+G9t(r),0)}function G9t(e){let t=0,r;switch(e.type){case"Polygon":return A6e(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(T6e(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*WZ,u=a[1]*WZ,l=o[0]*WZ;r+=(l-s)*Math.sin(u),n++}return r*H9t}var W9t=S6e;CF.area=S6e;CF.default=W9t});var k6e=we(LF=>{"use strict";Object.defineProperty(LF,"__esModule",{value:!0});var j9t=MF(),X9t=kF();function E6e(e,t={}){let r=0,n=0,i=0;return X9t.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),j9t.point.call(void 0,[r/i,n/i],t.properties)}var Z9t=E6e;LF.centroid=E6e;LF.default=Z9t});var L6e=we(PF=>{"use strict";Object.defineProperty(PF,"__esModule",{value:!0});var Y9t=kF();function C6e(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return Y9t.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var P6e={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},J9t=new Set(Object.values(P6e));z6e.exports={usaLocationAbbreviations:J9t,usaLocationList:P6e}});var dx=we((l1r,O6e)=>{"use strict";var $9t=Jl(),R6e=h6e(),{area:Q9t}=M6e(),{centroid:e8t}=k6e(),{bbox:t8t}=L6e(),r8t=YM(),rw=K1(),i8t=Tg(),n8t=FM(),zF=F5(),{usaLocationAbbreviations:a8t,usaLocationList:o8t}=I6e(),D6e=Object.keys(R6e),s8t={"ISO-3":r8t,"USA-states":u8t,"country names":l8t};function l8t(e){for(var t=0;t0&&f[c+1][0]<0)return c;return null}switch(n==="RUS"||n==="FJI"?a=function(f){var c;if(l(f)===null)c=f;else for(c=new Array(f.length),u=0;uc?h[d++]=[f[u][0]+360,f[u][1]]:u===c?(h[d++]=f[u],h[d++]=[f[u][0],-90]):h[d++]=f[u];var p=zF.tester(h);p.pts.pop(),i.push(p)}:a=function(f){i.push(zF.tester(f))},t.type){case"MultiPolygon":for(o=0;o0?p.properties.ct=d8t(p):p.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=p,i.push(p)}else rw.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[c]}switch(r.type){case"FeatureCollection":var u=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return e8t(r).geometry.coordinates}function p8t(e){var t=window.PlotlyGeoAssets||{},r=[];function n(u){return new Promise(function(l,f){$9t.json(u,function(c,h){if(c){delete t[u];var d=c.status===404?'GeoJSON at URL "'+u+'" does not exist.':"Unexpected error while fetching from "+u;return f(new Error(d))}return t[u]=h,l(h)})})}function i(u){return new Promise(function(l,f){var c=0,h=setInterval(function(){if(t[u]&&t[u]!=="pending")return clearInterval(h),l(t[u]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+u);c++},50)})}for(var a=0;a{"use strict";var m8t=Jl(),y8t=Mu(),B6e=jl(),q6e=sv(),g8t=q6e.stylePoints,_8t=q6e.styleText;N6e.exports=function(t,r){r&&x8t(t,r)};function x8t(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),g8t(n,r,e),_8t(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=m8t.select(this),o=i.trace,s=o.line||{};a.call(B6e.stroke,s.color).call(y8t.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(B6e.fill,o.fillcolor)})}});var KZ=we((f1r,G6e)=>{"use strict";var U6e=Jl(),DF=ei(),b8t=AF().getTopojsonFeatures,XZ=cx(),IF=dx(),V6e=Mm().findExtremes,YZ=rf().BADNUM,w8t=B0().calcMarkerSize,ZZ=lc(),A8t=jZ();function T8t(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=DF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===YZ&&U6e.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=U6e.select(this),u=o[0].trace;if(ZZ.hasLines(u)||u.fill!=="none"){var l=XZ.calcTraceToLineCoords(o),f=u.fill!=="none"?XZ.makePolygon(l):XZ.makeLine(l);s.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}ZZ.hasMarkers(u)&&s.selectAll("path.point").data(DF.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),ZZ.hasText(u)&&s.selectAll("g").data(DF.identity).enter().append("g").append("text").each(function(c){a(c,this)}),A8t(e,o)})}function S8t(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(DF.isArrayOrTypedArray(r.locations)){var u=r.locationmode,l=u==="geojson-id"?IF.extractTraceFeature(e):b8t(r,i.topojson);for(o=0;o{"use strict";var M8t=Vc(),E8t=rf().BADNUM,k8t=gA(),C8t=ei().fillText,L8t=tw();H6e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,u=t.subplot,l=u.projection.isLonLatOverEdges,f=u.project;function c(C){var M=C.lonlat;if(M[0]===E8t||l(M))return 1/0;var A=f(M),L=f([r,n]),x=Math.abs(A[0]-L[0]),k=Math.abs(A[1]-L[1]),S=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(x*x+k*k)-S,1-3/S)}if(M8t.getClosest(i,c,t),t.index!==!1){var h=i[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],y=h.mrc||1;t.x0=p[0]-y,t.x1=p[0]+y,t.y0=p[1]-y,t.y1=p[1]+y,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:u};var v=a._module.formatLabels(h,a,b);return t.lonLabel=v.lonLabel,t.latLabel=v.latLabel,t.color=k8t(a,h),t.extraText=P8t(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function P8t(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?L8t.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,u=a.indexOf("lat")!==-1,l=a.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(t.loc):s&&u?f.push("("+c(r.latLabel)+", "+c(r.lonLabel)+")"):s?f.push(n.lon+c(r.lonLabel)):u&&f.push(n.lat+c(r.latLabel)),l&&C8t(t,e,f),f.join("
")}});var X6e=we((h1r,j6e)=>{"use strict";j6e.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var K6e=we((d1r,Y6e)=>{"use strict";var Z6e=lc(),z8t=rf().BADNUM;Y6e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h,d=!Z6e.hasMarkers(s)&&!Z6e.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof RF=="object"&&typeof J6e!="undefined"?RF:e.d3=e.d3||{})})(RF,function(e){"use strict";function t(Te,be){return Tebe?1:Te>=be?0:NaN}function r(Te){return Te.length===1&&(Te=n(Te)),{left:function(be,He,Ie,ge){for(Ie==null&&(Ie=0),ge==null&&(ge=be.length);Ie>>1;Te(be[Be],He)<0?Ie=Be+1:ge=Be}return Ie},right:function(be,He,Ie,ge){for(Ie==null&&(Ie=0),ge==null&&(ge=be.length);Ie>>1;Te(be[Be],He)>0?ge=Be:Ie=Be+1}return Ie}}}function n(Te){return function(be,He){return t(Te(be),He)}}var i=r(t),a=i.right,o=i.left;function s(Te,be){be==null&&(be=u);for(var He=0,Ie=Te.length-1,ge=Te[0],Be=new Array(Ie<0?0:Ie);HeTe?1:be>=Te?0:NaN}function c(Te){return Te===null?NaN:+Te}function h(Te,be){var He=Te.length,Ie=0,ge=-1,Be=0,ce,je,rt=0;if(be==null)for(;++ge1)return rt/(Ie-1)}function d(Te,be){var He=h(Te,be);return He&&Math.sqrt(He)}function p(Te,be){var He=Te.length,Ie=-1,ge,Be,ce;if(be==null){for(;++Ie=ge)for(Be=ce=ge;++Iege&&(Be=ge),ce=ge)for(Be=ce=ge;++Iege&&(Be=ge),ce0)return[Te];if((Ie=be0)for(Te=Math.ceil(Te/je),be=Math.floor(be/je),ce=new Array(Be=Math.ceil(be-Te+1));++ge=0?(Be>=L?10:Be>=x?5:Be>=k?2:1)*Math.pow(10,ge):-Math.pow(10,-ge)/(Be>=L?10:Be>=x?5:Be>=k?2:1)}function P(Te,be,He){var Ie=Math.abs(be-Te)/Math.max(0,He),ge=Math.pow(10,Math.floor(Math.log(Ie)/Math.LN10)),Be=Ie/ge;return Be>=L?ge*=10:Be>=x?ge*=5:Be>=k&&(ge*=2),beit;)Ke.pop(),--zt;var Mt=new Array(zt+1),kt;for(Be=0;Be<=zt;++Be)kt=Mt[Be]=[],kt.x0=Be>0?Ke[Be-1]:Ot,kt.x1=Be=1)return+He(Te[Ie-1],Ie-1,Te);var Ie,ge=(Ie-1)*be,Be=Math.floor(ge),ce=+He(Te[Be],Be,Te),je=+He(Te[Be+1],Be+1,Te);return ce+(je-ce)*(ge-Be)}}function U(Te,be,He){return Te=v.call(Te,c).sort(t),Math.ceil((He-be)/(2*(F(Te,.75)-F(Te,.25))*Math.pow(Te.length,-1/3)))}function G(Te,be,He){return Math.ceil((He-be)/(3.5*d(Te)*Math.pow(Te.length,-1/3)))}function j(Te,be){var He=Te.length,Ie=-1,ge,Be;if(be==null){for(;++Ie=ge)for(Be=ge;++IeBe&&(Be=ge)}else for(;++Ie=ge)for(Be=ge;++IeBe&&(Be=ge);return Be}function W(Te,be){var He=Te.length,Ie=He,ge=-1,Be,ce=0;if(be==null)for(;++ge=0;)for(ce=Te[be],He=ce.length;--He>=0;)Be[--ge]=ce[He];return Be}function re(Te,be){var He=Te.length,Ie=-1,ge,Be;if(be==null){for(;++Ie=ge)for(Be=ge;++Iege&&(Be=ge)}else for(;++Ie=ge)for(Be=ge;++Iege&&(Be=ge);return Be}function ae(Te,be){for(var He=be.length,Ie=new Array(He);He--;)Ie[He]=Te[be[He]];return Ie}function me(Te,be){if(He=Te.length){var He,Ie=0,ge=0,Be,ce=Te[ge];for(be==null&&(be=t);++Ie{(function(e,t){typeof FF=="object"&&typeof $6e!="undefined"?t(FF,dk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(FF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(St){a(i,St,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(St,Ut,xr){var dr=St.s=Ut+xr,Rr=dr-Ut,yi=dr-Rr;St.t=Ut-yi+(xr-Rr)}var o=1e-6,s=1e-12,u=Math.PI,l=u/2,f=u/4,c=u*2,h=180/u,d=u/180,p=Math.abs,y=Math.atan,b=Math.atan2,v=Math.cos,C=Math.ceil,M=Math.exp,A=Math.log,L=Math.pow,x=Math.sin,k=Math.sign||function(St){return St>0?1:St<0?-1:0},S=Math.sqrt,m=Math.tan;function P(St){return St>1?0:St<-1?u:Math.acos(St)}function E(St){return St>1?l:St<-1?-l:Math.asin(St)}function O(St){return(St=x(St/2))*St}function F(){}function U(St,Ut){St&&j.hasOwnProperty(St.type)&&j[St.type](St,Ut)}var G={Feature:function(St,Ut){U(St.geometry,Ut)},FeatureCollection:function(St,Ut){for(var xr=St.features,dr=-1,Rr=xr.length;++dr=0?1:-1,Rr=dr*xr,yi=v(Ut),Ti=x(Ut),ki=te*Ti,Ki=de*yi+ki*v(Rr),Fn=ki*dr*x(Rr);re.add(b(Fn,Ki)),Ce=St,de=yi,te=Ti}function ge(St){return ae.reset(),H(St,Se),ae*2}function Be(St){return[b(St[1],St[0]),E(St[2])]}function ce(St){var Ut=St[0],xr=St[1],dr=v(xr);return[dr*v(Ut),dr*x(Ut),x(xr)]}function je(St,Ut){return St[0]*Ut[0]+St[1]*Ut[1]+St[2]*Ut[2]}function rt(St,Ut){return[St[1]*Ut[2]-St[2]*Ut[1],St[2]*Ut[0]-St[0]*Ut[2],St[0]*Ut[1]-St[1]*Ut[0]]}function bt(St,Ut){St[0]+=Ut[0],St[1]+=Ut[1],St[2]+=Ut[2]}function Ot(St,Ut){return[St[0]*Ut,St[1]*Ut,St[2]*Ut]}function it(St){var Ut=S(St[0]*St[0]+St[1]*St[1]+St[2]*St[2]);St[0]/=Ut,St[1]/=Ut,St[2]/=Ut}var Ke,zt,Mt,kt,$e,De,Me,oe,Ne=r(),vt,lt,We={point:Ve,lineStart:tt,lineEnd:Lt,polygonStart:function(){We.point=jt,We.lineStart=or,We.lineEnd=yr,Ne.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),We.point=Ve,We.lineStart=tt,We.lineEnd=Lt,re<0?(Ke=-(Mt=180),zt=-(kt=90)):Ne>o?kt=90:Ne<-o&&(zt=-90),lt[0]=Ke,lt[1]=Mt},sphere:function(){Ke=-(Mt=180),zt=-(kt=90)}};function Ve(St,Ut){vt.push(lt=[Ke=St,Mt=St]),Utkt&&(kt=Ut)}function et(St,Ut){var xr=ce([St*d,Ut*d]);if(oe){var dr=rt(oe,xr),Rr=[dr[1],-dr[0],0],yi=rt(Rr,dr);it(yi),yi=Be(yi);var Ti=St-$e,ki=Ti>0?1:-1,Ki=yi[0]*h*ki,Fn,Li=p(Ti)>180;Li^(ki*$ekt&&(kt=Fn)):(Ki=(Ki+360)%360-180,Li^(ki*$ekt&&(kt=Ut))),Li?St<$e?vr(Ke,St)>vr(Ke,Mt)&&(Mt=St):vr(St,Mt)>vr(Ke,Mt)&&(Ke=St):Mt>=Ke?(StMt&&(Mt=St)):St>$e?vr(Ke,St)>vr(Ke,Mt)&&(Mt=St):vr(St,Mt)>vr(Ke,Mt)&&(Ke=St)}else vt.push(lt=[Ke=St,Mt=St]);Utkt&&(kt=Ut),oe=xr,$e=St}function tt(){We.point=et}function Lt(){lt[0]=Ke,lt[1]=Mt,We.point=Ve,oe=null}function jt(St,Ut){if(oe){var xr=St-$e;Ne.add(p(xr)>180?xr+(xr>0?360:-360):xr)}else De=St,Me=Ut;Se.point(St,Ut),et(St,Ut)}function or(){Se.lineStart()}function yr(){jt(De,Me),Se.lineEnd(),p(Ne)>o&&(Ke=-(Mt=180)),lt[0]=Ke,lt[1]=Mt,oe=null}function vr(St,Ut){return(Ut-=St)<0?Ut+360:Ut}function Vt(St,Ut){return St[0]-Ut[0]}function Pe(St,Ut){return St[0]<=St[1]?St[0]<=Ut&&Ut<=St[1]:Utvr(dr[0],dr[1])&&(dr[1]=Rr[1]),vr(Rr[0],dr[1])>vr(dr[0],dr[1])&&(dr[0]=Rr[0])):yi.push(dr=Rr);for(Ti=-1/0,xr=yi.length-1,Ut=0,dr=yi[xr];Ut<=xr;dr=Rr,++Ut)Rr=yi[Ut],(ki=vr(dr[1],Rr[0]))>Ti&&(Ti=ki,Ke=Rr[0],Mt=dr[1])}return vt=lt=null,Ke===1/0||zt===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ke,zt],[Mt,kt]]}var Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi={sphere:F,point:Di,lineStart:hn,lineEnd:zi,polygonStart:function(){Bi.lineStart=Rt,Bi.lineEnd=_t},polygonEnd:function(){Bi.lineStart=hn,Bi.lineEnd=zi}};function Di(St,Ut){St*=d,Ut*=d;var xr=v(Ut);ln(xr*v(St),xr*x(St),x(Ut))}function ln(St,Ut,xr){++Oe,Re+=(St-Re)/Oe,ht+=(Ut-ht)/Oe,st+=(xr-st)/Oe}function hn(){Bi.point=qr}function qr(St,Ut){St*=d,Ut*=d;var xr=v(Ut);kr=xr*v(St),Vr=xr*x(St),Ai=x(Ut),Bi.point=_i,ln(kr,Vr,Ai)}function _i(St,Ut){St*=d,Ut*=d;var xr=v(Ut),dr=xr*v(St),Rr=xr*x(St),yi=x(Ut),Ti=b(S((Ti=Vr*yi-Ai*Rr)*Ti+(Ti=Ai*dr-kr*yi)*Ti+(Ti=kr*Rr-Vr*dr)*Ti),kr*dr+Vr*Rr+Ai*yi);ze+=Ti,gt+=Ti*(kr+(kr=dr)),xt+=Ti*(Vr+(Vr=Rr)),pr+=Ti*(Ai+(Ai=yi)),ln(kr,Vr,Ai)}function zi(){Bi.point=Di}function Rt(){Bi.point=qt}function _t(){Nt(ii,jr),Bi.point=Di}function qt(St,Ut){ii=St,jr=Ut,St*=d,Ut*=d,Bi.point=Nt;var xr=v(Ut);kr=xr*v(St),Vr=xr*x(St),Ai=x(Ut),ln(kr,Vr,Ai)}function Nt(St,Ut){St*=d,Ut*=d;var xr=v(Ut),dr=xr*v(St),Rr=xr*x(St),yi=x(Ut),Ti=Vr*yi-Ai*Rr,ki=Ai*dr-kr*yi,Ki=kr*Rr-Vr*dr,Fn=S(Ti*Ti+ki*ki+Ki*Ki),Li=E(Fn),hi=Fn&&-Li/Fn;br+=hi*Ti,cr+=hi*ki,Er+=hi*Ki,ze+=Li,gt+=Li*(kr+(kr=dr)),xt+=Li*(Vr+(Vr=Rr)),pr+=Li*(Ai+(Ai=yi)),ln(kr,Vr,Ai)}function mr(St){Oe=ze=Re=ht=st=gt=xt=pr=br=cr=Er=0,H(St,Bi);var Ut=br,xr=cr,dr=Er,Rr=Ut*Ut+xr*xr+dr*dr;return Rru?St+Math.round(-St/c)*c:St,Ut]}Fr.invert=Fr;function Gr(St,Ut,xr){return(St%=c)?Ut||xr?Nr(mi(St),Ei(Ut,xr)):mi(St):Ut||xr?Ei(Ut,xr):Fr}function Hr(St){return function(Ut,xr){return Ut+=St,[Ut>u?Ut-c:Ut<-u?Ut+c:Ut,xr]}}function mi(St){var Ut=Hr(St);return Ut.invert=Hr(-St),Ut}function Ei(St,Ut){var xr=v(St),dr=x(St),Rr=v(Ut),yi=x(Ut);function Ti(ki,Ki){var Fn=v(Ki),Li=v(ki)*Fn,hi=x(ki)*Fn,Ci=x(Ki),Si=Ci*xr+Li*dr;return[b(hi*Rr-Si*yi,Li*xr-Ci*dr),E(Si*Rr+hi*yi)]}return Ti.invert=function(ki,Ki){var Fn=v(Ki),Li=v(ki)*Fn,hi=x(ki)*Fn,Ci=x(Ki),Si=Ci*Rr-hi*yi;return[b(hi*Rr+Ci*yi,Li*xr+Si*dr),E(Si*xr-Li*dr)]},Ti}function Vi(St){St=Gr(St[0]*d,St[1]*d,St.length>2?St[2]*d:0);function Ut(xr){return xr=St(xr[0]*d,xr[1]*d),xr[0]*=h,xr[1]*=h,xr}return Ut.invert=function(xr){return xr=St.invert(xr[0]*d,xr[1]*d),xr[0]*=h,xr[1]*=h,xr},Ut}function ti(St,Ut,xr,dr,Rr,yi){if(xr){var Ti=v(Ut),ki=x(Ut),Ki=dr*xr;Rr==null?(Rr=Ut+dr*c,yi=Ut-Ki/2):(Rr=Qi(Ti,Rr),yi=Qi(Ti,yi),(dr>0?Rryi)&&(Rr+=dr*c));for(var Fn,Li=Rr;dr>0?Li>yi:Li1&&St.push(St.pop().concat(St.shift()))},result:function(){var xr=St;return St=[],Ut=null,xr}}}function Fi(St,Ut){return p(St[0]-Ut[0])=0;--ki)Rr.point((hi=Li[ki])[0],hi[1]);else dr(Ci.x,Ci.p.x,-1,Rr);Ci=Ci.p}Ci=Ci.o,Li=Ci.z,Si=!Si}while(!Ci.v);Rr.lineEnd()}}}function Ri(St){if(Ut=St.length){for(var Ut,xr=0,dr=St[0],Rr;++xr=0?1:-1,xl=dl*Ks,Bl=xl>u,bl=ta*is;if(Ii.add(b(bl*dl*x(xl),ya*Cs+bl*v(xl))),Ti+=Bl?Ks+dl*c:Ks,Bl^Si>=xr^va>=xr){var eu=rt(ce(Ci),ce(pa));it(eu);var Zl=rt(yi,eu);it(Zl);var Vl=(Bl^Ks>=0?-1:1)*E(Zl[2]);(dr>Vl||dr===Vl&&(eu[0]||eu[1]))&&(ki+=Bl^Ks>=0?1:-1)}}return(Ti<-o||Ti0){for(Ki||(Rr.polygonStart(),Ki=!0),Rr.lineStart(),Cs=0;Cs1&&zn&2&&is.push(is.pop().concat(is.shift())),Li.push(is.filter(dt))}}return Ci}}function dt(St){return St.length>1}function $t(St,Ut){return((St=St.x)[0]<0?St[1]-l-o:l-St[1])-((Ut=Ut.x)[0]<0?Ut[1]-l-o:l-Ut[1])}var fr=Xr(function(){return!0},gr,wi,[-u,-l]);function gr(St){var Ut=NaN,xr=NaN,dr=NaN,Rr;return{lineStart:function(){St.lineStart(),Rr=1},point:function(yi,Ti){var ki=yi>0?u:-u,Ki=p(yi-Ut);p(Ki-u)0?l:-l),St.point(dr,xr),St.lineEnd(),St.lineStart(),St.point(ki,xr),St.point(yi,xr),Rr=0):dr!==ki&&Ki>=u&&(p(Ut-dr)o?y((x(Ut)*(yi=v(dr))*x(xr)-x(dr)*(Rr=v(Ut))*x(St))/(Rr*yi*Ti)):(Ut+dr)/2}function wi(St,Ut,xr,dr){var Rr;if(St==null)Rr=xr*l,dr.point(-u,Rr),dr.point(0,Rr),dr.point(u,Rr),dr.point(u,0),dr.point(u,-Rr),dr.point(0,-Rr),dr.point(-u,-Rr),dr.point(-u,0),dr.point(-u,Rr);else if(p(St[0]-Ut[0])>o){var yi=St[0]0,Rr=p(Ut)>o;function yi(Li,hi,Ci,Si){ti(Si,St,xr,Ci,Li,hi)}function Ti(Li,hi){return v(Li)*v(hi)>Ut}function ki(Li){var hi,Ci,Si,Gn,ta;return{lineStart:function(){Gn=Si=!1,ta=1},point:function(ya,ia){var pa=[ya,ia],va,zn=Ti(ya,ia),is=dr?zn?0:Fn(ya,ia):zn?Fn(ya+(ya<0?u:-u),ia):0;if(!hi&&(Gn=Si=zn)&&Li.lineStart(),zn!==Si&&(va=Ki(hi,pa),(!va||Fi(hi,va)||Fi(pa,va))&&(pa[2]=1)),zn!==Si)ta=0,zn?(Li.lineStart(),va=Ki(pa,hi),Li.point(va[0],va[1])):(va=Ki(hi,pa),Li.point(va[0],va[1],2),Li.lineEnd()),hi=va;else if(Rr&&hi&&dr^zn){var Cs;!(is&Ci)&&(Cs=Ki(pa,hi,!0))&&(ta=0,dr?(Li.lineStart(),Li.point(Cs[0][0],Cs[0][1]),Li.point(Cs[1][0],Cs[1][1]),Li.lineEnd()):(Li.point(Cs[1][0],Cs[1][1]),Li.lineEnd(),Li.lineStart(),Li.point(Cs[0][0],Cs[0][1],3)))}zn&&(!hi||!Fi(hi,pa))&&Li.point(pa[0],pa[1]),hi=pa,Si=zn,Ci=is},lineEnd:function(){Si&&Li.lineEnd(),hi=null},clean:function(){return ta|(Gn&&Si)<<1}}}function Ki(Li,hi,Ci){var Si=ce(Li),Gn=ce(hi),ta=[1,0,0],ya=rt(Si,Gn),ia=je(ya,ya),pa=ya[0],va=ia-pa*pa;if(!va)return!Ci&&Li;var zn=Ut*ia/va,is=-Ut*pa/va,Cs=rt(ta,ya),Ks=Ot(ta,zn),dl=Ot(ya,is);bt(Ks,dl);var xl=Cs,Bl=je(Ks,xl),bl=je(xl,xl),eu=Bl*Bl-bl*(je(Ks,Ks)-1);if(!(eu<0)){var Zl=S(eu),Vl=Ot(xl,(-Bl-Zl)/bl);if(bt(Vl,Ks),Vl=Be(Vl),!Ci)return Vl;var ja=Li[0],ns=hi[0],Js=Li[1],cs=hi[1],sl;ns0^Vl[1]<(p(Vl[0]-ja)u^(ja<=Vl[0]&&Vl[0]<=ns)){var Ml=Ot(xl,(-Bl+Zl)/bl);return bt(Ml,Ks),[Vl,Be(Ml)]}}}function Fn(Li,hi){var Ci=dr?St:u-St,Si=0;return Li<-Ci?Si|=1:Li>Ci&&(Si|=2),hi<-Ci?Si|=4:hi>Ci&&(Si|=8),Si}return Xr(Ti,ki,yi,dr?[0,-St]:[-u,St-u])}function ni(St,Ut,xr,dr,Rr,yi){var Ti=St[0],ki=St[1],Ki=Ut[0],Fn=Ut[1],Li=0,hi=1,Ci=Ki-Ti,Si=Fn-ki,Gn;if(Gn=xr-Ti,!(!Ci&&Gn>0)){if(Gn/=Ci,Ci<0){if(Gn0){if(Gn>hi)return;Gn>Li&&(Li=Gn)}if(Gn=Rr-Ti,!(!Ci&&Gn<0)){if(Gn/=Ci,Ci<0){if(Gn>hi)return;Gn>Li&&(Li=Gn)}else if(Ci>0){if(Gn0)){if(Gn/=Si,Si<0){if(Gn0){if(Gn>hi)return;Gn>Li&&(Li=Gn)}if(Gn=yi-ki,!(!Si&&Gn<0)){if(Gn/=Si,Si<0){if(Gn>hi)return;Gn>Li&&(Li=Gn)}else if(Si>0){if(Gn0&&(St[0]=Ti+Li*Ci,St[1]=ki+Li*Si),hi<1&&(Ut[0]=Ti+hi*Ci,Ut[1]=ki+hi*Si),!0}}}}}var Xi=1e9,aa=-Xi;function Mn(St,Ut,xr,dr){function Rr(Fn,Li){return St<=Fn&&Fn<=xr&&Ut<=Li&&Li<=dr}function yi(Fn,Li,hi,Ci){var Si=0,Gn=0;if(Fn==null||(Si=Ti(Fn,hi))!==(Gn=Ti(Li,hi))||Ki(Fn,Li)<0^hi>0)do Ci.point(Si===0||Si===3?St:xr,Si>1?dr:Ut);while((Si=(Si+hi+4)%4)!==Gn);else Ci.point(Li[0],Li[1])}function Ti(Fn,Li){return p(Fn[0]-St)0?0:3:p(Fn[0]-xr)0?2:1:p(Fn[1]-Ut)0?1:0:Li>0?3:2}function ki(Fn,Li){return Ki(Fn.x,Li.x)}function Ki(Fn,Li){var hi=Ti(Fn,1),Ci=Ti(Li,1);return hi!==Ci?hi-Ci:hi===0?Li[1]-Fn[1]:hi===1?Fn[0]-Li[0]:hi===2?Fn[1]-Li[1]:Li[0]-Fn[0]}return function(Fn){var Li=Fn,hi=oi(),Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks={point:dl,lineStart:eu,lineEnd:Zl,polygonStart:Bl,polygonEnd:bl};function dl(ja,ns){Rr(ja,ns)&&Li.point(ja,ns)}function xl(){for(var ja=0,ns=0,Js=Si.length;nsdr&&(Dl-zl)*(dr-Ml)>(Al-Ml)*(St-zl)&&++ja:Al<=dr&&(Dl-zl)*(dr-Ml)<(Al-Ml)*(St-zl)&&--ja;return ja}function Bl(){Li=hi,Ci=[],Si=[],Cs=!0}function bl(){var ja=xl(),ns=Cs&&ja,Js=(Ci=t.merge(Ci)).length;(ns||Js)&&(Fn.polygonStart(),ns&&(Fn.lineStart(),yi(null,null,1,Fn),Fn.lineEnd()),Js&&tn(Ci,ki,ja,yi,Fn),Fn.polygonEnd()),Li=Fn,Ci=Si=Gn=null}function eu(){Ks.point=Vl,Si&&Si.push(Gn=[]),is=!0,zn=!1,pa=va=NaN}function Zl(){Ci&&(Vl(ta,ya),ia&&zn&&hi.rejoin(),Ci.push(hi.result())),Ks.point=dl,zn&&Li.lineEnd()}function Vl(ja,ns){var Js=Rr(ja,ns);if(Si&&Gn.push([ja,ns]),is)ta=ja,ya=ns,ia=Js,is=!1,Js&&(Li.lineStart(),Li.point(ja,ns));else if(Js&&zn)Li.point(ja,ns);else{var cs=[pa=Math.max(aa,Math.min(Xi,pa)),va=Math.max(aa,Math.min(Xi,va))],sl=[ja=Math.max(aa,Math.min(Xi,ja)),ns=Math.max(aa,Math.min(Xi,ns))];ni(cs,sl,St,Ut,xr,dr)?(zn||(Li.lineStart(),Li.point(cs[0],cs[1])),Li.point(sl[0],sl[1]),Js||Li.lineEnd(),Cs=!1):Js&&(Li.lineStart(),Li.point(ja,ns),Cs=!1)}pa=ja,va=ns,zn=Js}return Ks}}function Un(){var St=0,Ut=0,xr=960,dr=500,Rr,yi,Ti;return Ti={stream:function(ki){return Rr&&yi===ki?Rr:Rr=Mn(St,Ut,xr,dr)(yi=ki)},extent:function(ki){return arguments.length?(St=+ki[0][0],Ut=+ki[0][1],xr=+ki[1][0],dr=+ki[1][1],Rr=yi=null,Ti):[[St,Ut],[xr,dr]]}}}var Ga=r(),ma,oa,ka,so={sphere:F,point:F,lineStart:Kr,lineEnd:F,polygonStart:F,polygonEnd:F};function Kr(){so.point=Yo,so.lineEnd=Ia}function Ia(){so.point=so.lineEnd=F}function Yo(St,Ut){St*=d,Ut*=d,ma=St,oa=x(Ut),ka=v(Ut),so.point=fa}function fa(St,Ut){St*=d,Ut*=d;var xr=x(Ut),dr=v(Ut),Rr=p(St-ma),yi=v(Rr),Ti=x(Rr),ki=dr*Ti,Ki=ka*xr-oa*dr*yi,Fn=oa*xr+ka*dr*yi;Ga.add(b(S(ki*ki+Ki*Ki),Fn)),ma=St,oa=xr,ka=dr}function kn(St){return Ga.reset(),H(St,so),+Ga}var Ta=[null,null],ys={type:"LineString",coordinates:Ta};function uo(St,Ut){return Ta[0]=St,Ta[1]=Ut,kn(ys)}var ls={Feature:function(St,Ut){return fo(St.geometry,Ut)},FeatureCollection:function(St,Ut){for(var xr=St.features,dr=-1,Rr=xr.length;++dr0&&(Rr=uo(St[yi],St[yi-1]),Rr>0&&xr<=Rr&&dr<=Rr&&(xr+dr-Rr)*(1-Math.pow((xr-dr)/Rr,2))o}).map(Ci)).concat(t.range(C(yi/Fn)*Fn,Rr,Fn).filter(function(va){return p(va%hi)>o}).map(Si))}return ia.lines=function(){return pa().map(function(va){return{type:"LineString",coordinates:va}})},ia.outline=function(){return{type:"Polygon",coordinates:[Gn(dr).concat(ta(Ti).slice(1),Gn(xr).reverse().slice(1),ta(ki).reverse().slice(1))]}},ia.extent=function(va){return arguments.length?ia.extentMajor(va).extentMinor(va):ia.extentMinor()},ia.extentMajor=function(va){return arguments.length?(dr=+va[0][0],xr=+va[1][0],ki=+va[0][1],Ti=+va[1][1],dr>xr&&(va=dr,dr=xr,xr=va),ki>Ti&&(va=ki,ki=Ti,Ti=va),ia.precision(ya)):[[dr,ki],[xr,Ti]]},ia.extentMinor=function(va){return arguments.length?(Ut=+va[0][0],St=+va[1][0],yi=+va[0][1],Rr=+va[1][1],Ut>St&&(va=Ut,Ut=St,St=va),yi>Rr&&(va=yi,yi=Rr,Rr=va),ia.precision(ya)):[[Ut,yi],[St,Rr]]},ia.step=function(va){return arguments.length?ia.stepMajor(va).stepMinor(va):ia.stepMinor()},ia.stepMajor=function(va){return arguments.length?(Li=+va[0],hi=+va[1],ia):[Li,hi]},ia.stepMinor=function(va){return arguments.length?(Ki=+va[0],Fn=+va[1],ia):[Ki,Fn]},ia.precision=function(va){return arguments.length?(ya=+va,Ci=Wi(yi,Rr,90),Si=gn(Ut,St,ya),Gn=Wi(ki,Ti,90),ta=gn(dr,xr,ya),ia):ya},ia.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ha(){return Ps()()}function Sn(St,Ut){var xr=St[0]*d,dr=St[1]*d,Rr=Ut[0]*d,yi=Ut[1]*d,Ti=v(dr),ki=x(dr),Ki=v(yi),Fn=x(yi),Li=Ti*v(xr),hi=Ti*x(xr),Ci=Ki*v(Rr),Si=Ki*x(Rr),Gn=2*E(S(O(yi-dr)+Ti*Ki*O(Rr-xr))),ta=x(Gn),ya=Gn?function(ia){var pa=x(ia*=Gn)/ta,va=x(Gn-ia)/ta,zn=va*Li+pa*Ci,is=va*hi+pa*Si,Cs=va*ki+pa*Fn;return[b(is,zn)*h,b(Cs,S(zn*zn+is*is))*h]}:function(){return[xr*h,dr*h]};return ya.distance=Gn,ya}function ao(St){return St}var Oa=r(),Ko=r(),Qo,Hi,Sa,Qa,vn={point:F,lineStart:F,lineEnd:F,polygonStart:function(){vn.lineStart=da,vn.lineEnd=As},polygonEnd:function(){vn.lineStart=vn.lineEnd=vn.point=F,Oa.add(p(Ko)),Ko.reset()},result:function(){var St=Oa/2;return Oa.reset(),St}};function da(){vn.point=la}function la(St,Ut){vn.point=vo,Qo=Sa=St,Hi=Qa=Ut}function vo(St,Ut){Ko.add(Qa*St-Sa*Ut),Sa=St,Qa=Ut}function As(){vo(Qo,Hi)}var ps=1/0,co=ps,mo=-ps,No=mo,jn={point:Go,lineStart:F,lineEnd:F,polygonStart:F,polygonEnd:F,result:function(){var St=[[ps,co],[mo,No]];return mo=No=-(co=ps=1/0),St}};function Go(St,Ut){Stmo&&(mo=St),UtNo&&(No=Ut)}var Ys=0,qs=0,Ns=0,Ba=0,ha=0,Vs=0,Ya=0,_n=0,Vn=0,wo,Da,Xn,sn,$n={point:Ka,lineStart:qn,lineEnd:lo,polygonStart:function(){$n.lineStart=eo,$n.lineEnd=sa},polygonEnd:function(){$n.point=Ka,$n.lineStart=qn,$n.lineEnd=lo},result:function(){var St=Vn?[Ya/Vn,_n/Vn]:Vs?[Ba/Vs,ha/Vs]:Ns?[Ys/Ns,qs/Ns]:[NaN,NaN];return Ys=qs=Ns=Ba=ha=Vs=Ya=_n=Vn=0,St}};function Ka(St,Ut){Ys+=St,qs+=Ut,++Ns}function qn(){$n.point=Eo}function Eo(St,Ut){$n.point=Ja,Ka(Xn=St,sn=Ut)}function Ja(St,Ut){var xr=St-Xn,dr=Ut-sn,Rr=S(xr*xr+dr*dr);Ba+=Rr*(Xn+St)/2,ha+=Rr*(sn+Ut)/2,Vs+=Rr,Ka(Xn=St,sn=Ut)}function lo(){$n.point=Ka}function eo(){$n.point=es}function sa(){Na(wo,Da)}function es(St,Ut){$n.point=Na,Ka(wo=Xn=St,Da=sn=Ut)}function Na(St,Ut){var xr=St-Xn,dr=Ut-sn,Rr=S(xr*xr+dr*dr);Ba+=Rr*(Xn+St)/2,ha+=Rr*(sn+Ut)/2,Vs+=Rr,Rr=sn*St-Xn*Ut,Ya+=Rr*(Xn+St),_n+=Rr*(sn+Ut),Vn+=Rr*3,Ka(Xn=St,sn=Ut)}function en(St){this._context=St}en.prototype={_radius:4.5,pointRadius:function(St){return this._radius=St,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(St,Ut){switch(this._point){case 0:{this._context.moveTo(St,Ut),this._point=1;break}case 1:{this._context.lineTo(St,Ut);break}default:{this._context.moveTo(St+this._radius,Ut),this._context.arc(St,Ut,this._radius,0,c);break}}},result:F};var Pa=r(),to,yo,Jo,Ao,Rn,_a={point:F,lineStart:function(){_a.point=Ws},lineEnd:function(){to&&Ca(yo,Jo),_a.point=F},polygonStart:function(){to=!0},polygonEnd:function(){to=null},result:function(){var St=+Pa;return Pa.reset(),St}};function Ws(St,Ut){_a.point=Ca,yo=Ao=St,Jo=Rn=Ut}function Ca(St,Ut){Ao-=St,Rn-=Ut,Pa.add(S(Ao*Ao+Rn*Rn)),Ao=St,Rn=Ut}function Es(){this._string=[]}Es.prototype={_radius:4.5,_circle:Ts(4.5),pointRadius:function(St){return(St=+St)!==this._radius&&(this._radius=St,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(St,Ut){switch(this._point){case 0:{this._string.push("M",St,",",Ut),this._point=1;break}case 1:{this._string.push("L",St,",",Ut);break}default:{this._circle==null&&(this._circle=Ts(this._radius)),this._string.push("M",St,",",Ut,this._circle);break}}},result:function(){if(this._string.length){var St=this._string.join("");return this._string=[],St}else return null}};function Ts(St){return"m0,"+St+"a"+St+","+St+" 0 1,1 0,"+-2*St+"a"+St+","+St+" 0 1,1 0,"+2*St+"z"}function Ho(St,Ut){var xr=4.5,dr,Rr;function yi(Ti){return Ti&&(typeof xr=="function"&&Rr.pointRadius(+xr.apply(this,arguments)),H(Ti,dr(Rr))),Rr.result()}return yi.area=function(Ti){return H(Ti,dr(vn)),vn.result()},yi.measure=function(Ti){return H(Ti,dr(_a)),_a.result()},yi.bounds=function(Ti){return H(Ti,dr(jn)),jn.result()},yi.centroid=function(Ti){return H(Ti,dr($n)),$n.result()},yi.projection=function(Ti){return arguments.length?(dr=Ti==null?(St=null,ao):(St=Ti).stream,yi):St},yi.context=function(Ti){return arguments.length?(Rr=Ti==null?(Ut=null,new Es):new en(Ut=Ti),typeof xr!="function"&&Rr.pointRadius(xr),yi):Ut},yi.pointRadius=function(Ti){return arguments.length?(xr=typeof Ti=="function"?Ti:(Rr.pointRadius(+Ti),+Ti),yi):xr},yi.projection(St).context(Ut)}function Wa(St){return{stream:To(St)}}function To(St){return function(Ut){var xr=new ts;for(var dr in St)xr[dr]=St[dr];return xr.stream=Ut,xr}}function ts(){}ts.prototype={constructor:ts,point:function(St,Ut){this.stream.point(St,Ut)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wo(St,Ut,xr){var dr=St.clipExtent&&St.clipExtent();return St.scale(150).translate([0,0]),dr!=null&&St.clipExtent(null),H(xr,St.stream(jn)),Ut(jn.result()),dr!=null&&St.clipExtent(dr),St}function qa(St,Ut,xr){return Wo(St,function(dr){var Rr=Ut[1][0]-Ut[0][0],yi=Ut[1][1]-Ut[0][1],Ti=Math.min(Rr/(dr[1][0]-dr[0][0]),yi/(dr[1][1]-dr[0][1])),ki=+Ut[0][0]+(Rr-Ti*(dr[1][0]+dr[0][0]))/2,Ki=+Ut[0][1]+(yi-Ti*(dr[1][1]+dr[0][1]))/2;St.scale(150*Ti).translate([ki,Ki])},xr)}function on(St,Ut,xr){return qa(St,[[0,0],Ut],xr)}function Oo(St,Ut,xr){return Wo(St,function(dr){var Rr=+Ut,yi=Rr/(dr[1][0]-dr[0][0]),Ti=(Rr-yi*(dr[1][0]+dr[0][0]))/2,ki=-yi*dr[0][1];St.scale(150*yi).translate([Ti,ki])},xr)}function ko(St,Ut,xr){return Wo(St,function(dr){var Rr=+Ut,yi=Rr/(dr[1][1]-dr[0][1]),Ti=-yi*dr[0][0],ki=(Rr-yi*(dr[1][1]+dr[0][1]))/2;St.scale(150*yi).translate([Ti,ki])},xr)}var oo=16,za=v(30*d);function ea(St,Ut){return+Ut?$s(St,Ut):rs(St)}function rs(St){return To({point:function(Ut,xr){Ut=St(Ut,xr),this.stream.point(Ut[0],Ut[1])}})}function $s(St,Ut){function xr(dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya){var ia=Fn-dr,pa=Li-Rr,va=ia*ia+pa*pa;if(va>4*Ut&&ta--){var zn=Ti+Ci,is=ki+Si,Cs=Ki+Gn,Ks=S(zn*zn+is*is+Cs*Cs),dl=E(Cs/=Ks),xl=p(p(Cs)-1)Ut||p((ia*Zl+pa*Vl)/va-.5)>.3||Ti*Ci+ki*Si+Ki*Gn2?ja[2]%360*d:0,Zl()):[ki*h,Ki*h,Fn*h]},bl.angle=function(ja){return arguments.length?(hi=ja%360*d,Zl()):hi*h},bl.reflectX=function(ja){return arguments.length?(Ci=ja?-1:1,Zl()):Ci<0},bl.reflectY=function(ja){return arguments.length?(Si=ja?-1:1,Zl()):Si<0},bl.precision=function(ja){return arguments.length?(Cs=ea(Ks,is=ja*ja),Vl()):S(is)},bl.fitExtent=function(ja,ns){return qa(bl,ja,ns)},bl.fitSize=function(ja,ns){return on(bl,ja,ns)},bl.fitWidth=function(ja,ns){return Oo(bl,ja,ns)},bl.fitHeight=function(ja,ns){return ko(bl,ja,ns)};function Zl(){var ja=as(xr,0,0,Ci,Si,hi).apply(null,Ut(yi,Ti)),ns=(hi?as:fl)(xr,dr-ja[0],Rr-ja[1],Ci,Si,hi);return Li=Gr(ki,Ki,Fn),Ks=Nr(Ut,ns),dl=Nr(Li,Ks),Cs=ea(Ks,is),Vl()}function Vl(){return xl=Bl=null,bl}return function(){return Ut=St.apply(this,arguments),bl.invert=Ut.invert&&eu,Zl()}}function ho(St){var Ut=0,xr=u/3,dr=Qs(St),Rr=dr(Ut,xr);return Rr.parallels=function(yi){return arguments.length?dr(Ut=yi[0]*d,xr=yi[1]*d):[Ut*h,xr*h]},Rr}function gs(St){var Ut=v(St);function xr(dr,Rr){return[dr*Ut,x(Rr)/Ut]}return xr.invert=function(dr,Rr){return[dr/Ut,E(Rr*Ut)]},xr}function Vo(St,Ut){var xr=x(St),dr=(xr+x(Ut))/2;if(p(dr)=.12&&ya<.234&&ta>=-.425&&ta<-.214?Rr:ya>=.166&&ya<.234&&ta>=-.214&&ta<-.115?Ti:xr).invert(Ci)},Li.stream=function(Ci){return St&&Ut===Ci?St:St=xs([xr.stream(Ut=Ci),Rr.stream(Ci),Ti.stream(Ci)])},Li.precision=function(Ci){return arguments.length?(xr.precision(Ci),Rr.precision(Ci),Ti.precision(Ci),hi()):xr.precision()},Li.scale=function(Ci){return arguments.length?(xr.scale(Ci),Rr.scale(Ci*.35),Ti.scale(Ci),Li.translate(xr.translate())):xr.scale()},Li.translate=function(Ci){if(!arguments.length)return xr.translate();var Si=xr.scale(),Gn=+Ci[0],ta=+Ci[1];return dr=xr.translate(Ci).clipExtent([[Gn-.455*Si,ta-.238*Si],[Gn+.455*Si,ta+.238*Si]]).stream(Fn),yi=Rr.translate([Gn-.307*Si,ta+.201*Si]).clipExtent([[Gn-.425*Si+o,ta+.12*Si+o],[Gn-.214*Si-o,ta+.234*Si-o]]).stream(Fn),ki=Ti.translate([Gn-.205*Si,ta+.212*Si]).clipExtent([[Gn-.214*Si+o,ta+.166*Si+o],[Gn-.115*Si-o,ta+.234*Si-o]]).stream(Fn),hi()},Li.fitExtent=function(Ci,Si){return qa(Li,Ci,Si)},Li.fitSize=function(Ci,Si){return on(Li,Ci,Si)},Li.fitWidth=function(Ci,Si){return Oo(Li,Ci,Si)},Li.fitHeight=function(Ci,Si){return ko(Li,Ci,Si)};function hi(){return St=Ut=null,Li}return Li.scale(1070)}function Ea(St){return function(Ut,xr){var dr=v(Ut),Rr=v(xr),yi=St(dr*Rr);return[yi*Rr*x(Ut),yi*x(xr)]}}function Jn(St){return function(Ut,xr){var dr=S(Ut*Ut+xr*xr),Rr=St(dr),yi=x(Rr),Ti=v(Rr);return[b(Ut*yi,dr*Ti),E(dr&&xr*yi/dr)]}}var Bo=Ea(function(St){return S(2/(1+St))});Bo.invert=Jn(function(St){return 2*E(St/2)});function rl(){return Ma(Bo).scale(124.75).clipAngle(180-.001)}var Gs=Ea(function(St){return(St=P(St))&&St/x(St)});Gs.invert=Jn(function(St){return St});function bs(){return Ma(Gs).scale(79.4188).clipAngle(180-.001)}function zs(St,Ut){return[St,A(m((l+Ut)/2))]}zs.invert=function(St,Ut){return[St,2*y(M(Ut))-l]};function $o(){return Aa(zs).scale(961/c)}function Aa(St){var Ut=Ma(St),xr=Ut.center,dr=Ut.scale,Rr=Ut.translate,yi=Ut.clipExtent,Ti=null,ki,Ki,Fn;Ut.scale=function(hi){return arguments.length?(dr(hi),Li()):dr()},Ut.translate=function(hi){return arguments.length?(Rr(hi),Li()):Rr()},Ut.center=function(hi){return arguments.length?(xr(hi),Li()):xr()},Ut.clipExtent=function(hi){return arguments.length?(hi==null?Ti=ki=Ki=Fn=null:(Ti=+hi[0][0],ki=+hi[0][1],Ki=+hi[1][0],Fn=+hi[1][1]),Li()):Ti==null?null:[[Ti,ki],[Ki,Fn]]};function Li(){var hi=u*dr(),Ci=Ut(Vi(Ut.rotate()).invert([0,0]));return yi(Ti==null?[[Ci[0]-hi,Ci[1]-hi],[Ci[0]+hi,Ci[1]+hi]]:St===zs?[[Math.max(Ci[0]-hi,Ti),ki],[Math.min(Ci[0]+hi,Ki),Fn]]:[[Ti,Math.max(Ci[1]-hi,ki)],[Ki,Math.min(Ci[1]+hi,Fn)]])}return Li()}function os(St){return m((l+St)/2)}function _l(St,Ut){var xr=v(St),dr=St===Ut?x(St):A(xr/v(Ut))/A(os(Ut)/os(St)),Rr=xr*L(os(St),dr)/dr;if(!dr)return zs;function yi(Ti,ki){Rr>0?ki<-l+o&&(ki=-l+o):ki>l-o&&(ki=l-o);var Ki=Rr/L(os(ki),dr);return[Ki*x(dr*Ti),Rr-Ki*v(dr*Ti)]}return yi.invert=function(Ti,ki){var Ki=Rr-ki,Fn=k(dr)*S(Ti*Ti+Ki*Ki),Li=b(Ti,p(Ki))*k(Ki);return Ki*dr<0&&(Li-=u*k(Ti)*k(Ki)),[Li/dr,2*y(L(Rr/Fn,1/dr))-l]},yi}function Ss(){return ho(_l).scale(109.5).parallels([30,30])}function po(St,Ut){return[St,Ut]}po.invert=po;function go(){return Ma(po).scale(152.63)}function ss(St,Ut){var xr=v(St),dr=St===Ut?x(St):(xr-v(Ut))/(Ut-St),Rr=xr/dr+St;if(p(dr)o&&--dr>0);return[St/(.8707+(yi=xr*xr)*(-.131979+yi*(-.013791+yi*yi*yi*(.003971-.001529*yi)))),xr]};function hl(){return Ma(Fs).scale(175.295)}function Fa(St,Ut){return[v(Ut)*x(St),x(Ut)]}Fa.invert=Jn(E);function Ms(){return Ma(Fa).scale(249.5).clipAngle(90+o)}function jo(St,Ut){var xr=v(Ut),dr=1+v(St)*xr;return[xr*x(St)/dr,x(Ut)/dr]}jo.invert=Jn(function(St){return 2*y(St)});function Ds(){return Ma(jo).scale(250).clipAngle(142)}function Is(St,Ut){return[A(m((l+Ut)/2)),-St]}Is.invert=function(St,Ut){return[-Ut,2*y(M(St))-l]};function Os(){var St=Aa(Is),Ut=St.center,xr=St.rotate;return St.center=function(dr){return arguments.length?Ut([-dr[1],dr[0]]):(dr=Ut(),[dr[1],-dr[0]])},St.rotate=function(dr){return arguments.length?xr([dr[0],dr[1],dr.length>2?dr[2]+90:90]):(dr=xr(),[dr[0],dr[1],dr[2]-90])},xr([0,0,90]).scale(159.155)}e.geoAlbers=Lo,e.geoAlbersUsa=ks,e.geoArea=ge,e.geoAzimuthalEqualArea=rl,e.geoAzimuthalEqualAreaRaw=Bo,e.geoAzimuthalEquidistant=bs,e.geoAzimuthalEquidistantRaw=Gs,e.geoBounds=xe,e.geoCentroid=mr,e.geoCircle=Yr,e.geoClipAntimeridian=fr,e.geoClipCircle=$i,e.geoClipExtent=Un,e.geoClipRectangle=Mn,e.geoConicConformal=Ss,e.geoConicConformalRaw=_l,e.geoConicEqualArea=Ro,e.geoConicEqualAreaRaw=Vo,e.geoConicEquidistant=qo,e.geoConicEquidistantRaw=ss,e.geoContains=Po,e.geoDistance=uo,e.geoEqualEarth=el,e.geoEqualEarthRaw=cl,e.geoEquirectangular=go,e.geoEquirectangularRaw=po,e.geoGnomonic=Do,e.geoGnomonicRaw=Hs,e.geoGraticule=Ps,e.geoGraticule10=Ha,e.geoIdentity=tl,e.geoInterpolate=Sn,e.geoLength=kn,e.geoMercator=$o,e.geoMercatorRaw=zs,e.geoNaturalEarth1=hl,e.geoNaturalEarth1Raw=Fs,e.geoOrthographic=Ms,e.geoOrthographicRaw=Fa,e.geoPath=Ho,e.geoProjection=Ma,e.geoProjectionMutator=Qs,e.geoRotation=Vi,e.geoStereographic=Ds,e.geoStereographicRaw=jo,e.geoStream=H,e.geoTransform=Wa,e.geoTransverseMercator=Os,e.geoTransverseMercatorRaw=Is,Object.defineProperty(e,"__esModule",{value:!0})})});var eFe=we((OF,Q6e)=>{(function(e,t){typeof OF=="object"&&typeof Q6e!="undefined"?t(OF,JZ(),dk()):t(e.d3=e.d3||{},e.d3,e.d3)})(OF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,u=Math.floor,l=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(he){return he>0?1:he<0?-1:0},y=Math.sin,b=Math.tan,v=1e-6,C=1e-12,M=Math.PI,A=M/2,L=M/4,x=Math.SQRT1_2,k=G(2),S=G(M),m=M*2,P=180/M,E=M/180;function O(he){return he?he/Math.sin(he):1}function F(he){return he>1?A:he<-1?-A:Math.asin(he)}function U(he){return he>1?0:he<-1?M:Math.acos(he)}function G(he){return he>0?Math.sqrt(he):0}function j(he){return he=s(2*he),(he-1)/(he+1)}function W(he){return(s(he)-s(-he))/2}function N(he){return(s(he)+s(-he))/2}function H(he){return l(he+G(he*he+1))}function re(he){return l(he+G(he*he-1))}function ae(he){var Ae=b(he/2),qe=2*l(o(he/2))/(Ae*Ae);function Ge(ft,ot){var mt=o(ft),Gt=o(ot),er=y(ot),sr=Gt*mt,wr=-((1-sr?l((1+sr)/2)/(1-sr):-.5)+qe/(1+sr));return[wr*Gt*y(ft),wr*er]}return Ge.invert=function(ft,ot){var mt=G(ft*ft+ot*ot),Gt=-he/2,er=50,sr;if(!mt)return[0,0];do{var wr=Gt/2,Ir=o(wr),ri=y(wr),si=ri/Ir,Mi=-l(n(Ir));Gt-=sr=(2/si*Mi-qe*si-mt)/(-Mi/(ri*ri)+1-qe/(2*Ir*Ir))*(Ir<0?.7:1)}while(n(sr)>v&&--er>0);var cn=y(Gt);return[a(ft*cn,mt*o(Gt)),F(ot*cn/mt)]},Ge}function me(){var he=A,Ae=t.geoProjectionMutator(ae),qe=Ae(he);return qe.radius=function(Ge){return arguments.length?Ae(he=Ge*E):he*P},qe.scale(179.976).clipAngle(147)}function Le(he,Ae){var qe=o(Ae),Ge=O(U(qe*o(he/=2)));return[2*qe*y(he)*Ge,y(Ae)*Ge]}Le.invert=function(he,Ae){if(!(he*he+4*Ae*Ae>M*M+v)){var qe=he,Ge=Ae,ft=25;do{var ot=y(qe),mt=y(qe/2),Gt=o(qe/2),er=y(Ge),sr=o(Ge),wr=y(2*Ge),Ir=er*er,ri=sr*sr,si=mt*mt,Mi=1-ri*Gt*Gt,cn=Mi?U(sr*Gt)*G(Zn=1/Mi):Zn=0,Zn,Yn=2*cn*sr*mt-he,Ua=cn*er-Ae,Fo=Zn*(ri*si+cn*sr*Gt*Ir),vl=Zn*(.5*ot*wr-cn*2*er*mt),Us=Zn*.25*(wr*mt-cn*er*ri*ot),ml=Zn*(Ir*Gt+cn*si*sr),au=vl*Us-ml*Fo;if(!au)break;var Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ge-=Yl}while((n(Sl)>v||n(Yl)>v)&&--ft>0);return[qe,Ge]}};function Ce(){return t.geoProjection(Le).scale(152.63)}function de(he){var Ae=y(he),qe=o(he),Ge=he>=0?1:-1,ft=b(Ge*he),ot=(1+Ae-qe)/2;function mt(Gt,er){var sr=o(er),wr=o(Gt/=2);return[(1+sr)*y(Gt),(Ge*er>-a(wr,ft)-.001?0:-Ge*10)+ot+y(er)*qe-(1+sr)*Ae*wr]}return mt.invert=function(Gt,er){var sr=0,wr=0,Ir=50;do{var ri=o(sr),si=y(sr),Mi=o(wr),cn=y(wr),Zn=1+Mi,Yn=Zn*si-Gt,Ua=ot+cn*qe-Zn*Ae*ri-er,Fo=Zn*ri/2,vl=-si*cn,Us=Ae*Zn*si/2,ml=qe*Mi+Ae*ri*cn,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au/2,Yl=(Yn*Us-Ua*Fo)/au;n(Yl)>2&&(Yl/=2),sr-=Sl,wr-=Yl}while((n(Sl)>v||n(Yl)>v)&&--Ir>0);return Ge*wr>-a(o(sr),ft)-.001?[sr*2,wr]:null},mt}function te(){var he=20*E,Ae=he>=0?1:-1,qe=b(Ae*he),Ge=t.geoProjectionMutator(de),ft=Ge(he),ot=ft.stream;return ft.parallel=function(mt){return arguments.length?(qe=b((Ae=(he=mt*E)>=0?1:-1)*he),Ge(he)):he*P},ft.stream=function(mt){var Gt=ft.rotate(),er=ot(mt),sr=(ft.rotate([0,0]),ot(mt)),wr=ft.precision();return ft.rotate(Gt),er.sphere=function(){sr.polygonStart(),sr.lineStart();for(var Ir=Ae*-180;Ae*Ir<180;Ir+=Ae*90)sr.point(Ir,Ae*90);if(he)for(;Ae*(Ir-=3*Ae*wr)>=-180;)sr.point(Ir,Ae*-a(o(Ir*E/2),qe)*P);sr.lineEnd(),sr.polygonEnd()},er},ft.scale(218.695).center([0,28.0974])}function Se(he,Ae){var qe=b(Ae/2),Ge=G(1-qe*qe),ft=1+Ge*o(he/=2),ot=y(he)*Ge/ft,mt=qe/ft,Gt=ot*ot,er=mt*mt;return[4/3*ot*(3+Gt-3*er),4/3*mt*(3+3*Gt-er)]}Se.invert=function(he,Ae){if(he*=3/8,Ae*=3/8,!he&&n(Ae)>1)return null;var qe=he*he,Ge=Ae*Ae,ft=1+qe+Ge,ot=G((ft-G(ft*ft-4*Ae*Ae))/2),mt=F(ot)/3,Gt=ot?re(n(Ae/ot))/3:H(n(he))/3,er=o(mt),sr=N(Gt),wr=sr*sr-er*er;return[p(he)*2*a(W(Gt)*er,.25-wr),p(Ae)*2*a(sr*y(mt),.25+wr)]};function Te(){return t.geoProjection(Se).scale(66.1603)}var be=G(8),He=l(1+k);function Ie(he,Ae){var qe=n(Ae);return qeC&&--Ge>0);return[he/(o(qe)*(be-1/y(qe))),p(Ae)*qe]};function ge(){return t.geoProjection(Ie).scale(112.314)}function Be(he){var Ae=2*M/he;function qe(Ge,ft){var ot=t.geoAzimuthalEquidistantRaw(Ge,ft);if(n(Ge)>A){var mt=a(ot[1],ot[0]),Gt=G(ot[0]*ot[0]+ot[1]*ot[1]),er=Ae*d((mt-A)/Ae)+A,sr=a(y(mt-=er),2-o(mt));mt=er+F(M/Gt*y(sr))-sr,ot[0]=Gt*o(mt),ot[1]=Gt*y(mt)}return ot}return qe.invert=function(Ge,ft){var ot=G(Ge*Ge+ft*ft);if(ot>A){var mt=a(ft,Ge),Gt=Ae*d((mt-A)/Ae)+A,er=mt>Gt?-1:1,sr=ot*o(Gt-mt),wr=1/b(er*U((sr-M)/G(M*(M-2*sr)+ot*ot)));mt=Gt+2*i((wr+er*G(wr*wr-3))/3),Ge=ot*o(mt),ft=ot*y(mt)}return t.geoAzimuthalEquidistantRaw.invert(Ge,ft)},qe}function ce(){var he=5,Ae=t.geoProjectionMutator(Be),qe=Ae(he),Ge=qe.stream,ft=.01,ot=-o(ft*E),mt=y(ft*E);return qe.lobes=function(Gt){return arguments.length?Ae(he=+Gt):he},qe.stream=function(Gt){var er=qe.rotate(),sr=Ge(Gt),wr=(qe.rotate([0,0]),Ge(Gt));return qe.rotate(er),sr.sphere=function(){wr.polygonStart(),wr.lineStart();for(var Ir=0,ri=360/he,si=2*M/he,Mi=90-180/he,cn=A;Ir0&&n(ft)>v);return Ge<0?NaN:qe}function it(he,Ae,qe){return Ae===void 0&&(Ae=40),qe===void 0&&(qe=C),function(Ge,ft,ot,mt){var Gt,er,sr;ot=ot===void 0?0:+ot,mt=mt===void 0?0:+mt;for(var wr=0;wrGt){ot-=er/=2,mt-=sr/=2;continue}Gt=Mi;var cn=(ot>0?-1:1)*qe,Zn=(mt>0?-1:1)*qe,Yn=he(ot+cn,mt),Ua=he(ot,mt+Zn),Fo=(Yn[0]-Ir[0])/cn,vl=(Yn[1]-Ir[1])/cn,Us=(Ua[0]-Ir[0])/Zn,ml=(Ua[1]-Ir[1])/Zn,au=ml*Fo-vl*Us,Sl=(n(au)<.5?.5:1)/au;if(er=(si*Us-ri*ml)*Sl,sr=(ri*vl-si*Fo)*Sl,ot+=er,mt+=sr,n(er)0&&(Gt[1]*=1+er/1.5*Gt[0]*Gt[0]),Gt}return Ge.invert=it(Ge),Ge}function zt(){return t.geoProjection(Ke()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Mt(he,Ae){var qe=he*y(Ae),Ge=30,ft;do Ae-=ft=(Ae+y(Ae)-qe)/(1+o(Ae));while(n(ft)>v&&--Ge>0);return Ae/2}function kt(he,Ae,qe){function Ge(ft,ot){return[he*ft*o(ot=Mt(qe,ot)),Ae*y(ot)]}return Ge.invert=function(ft,ot){return ot=F(ot/Ae),[ft/(he*o(ot)),F((2*ot+y(2*ot))/qe)]},Ge}var $e=kt(k/A,k,M);function De(){return t.geoProjection($e).scale(169.529)}var Me=2.00276,oe=1.11072;function Ne(he,Ae){var qe=Mt(M,Ae);return[Me*he/(1/o(Ae)+oe/o(qe)),(Ae+k*y(qe))/Me]}Ne.invert=function(he,Ae){var qe=Me*Ae,Ge=Ae<0?-L:L,ft=25,ot,mt;do mt=qe-k*y(Ge),Ge-=ot=(y(2*Ge)+2*Ge-M*y(mt))/(2*o(2*Ge)+2+M*o(mt)*k*o(Ge));while(n(ot)>v&&--ft>0);return mt=qe-k*y(Ge),[he*(1/o(mt)+oe/o(Ge))/Me,mt]};function vt(){return t.geoProjection(Ne).scale(160.857)}function lt(he){var Ae=0,qe=t.geoProjectionMutator(he),Ge=qe(Ae);return Ge.parallel=function(ft){return arguments.length?qe(Ae=ft*E):Ae*P},Ge}function We(he,Ae){return[he*o(Ae),Ae]}We.invert=function(he,Ae){return[he/o(Ae),Ae]};function Ve(){return t.geoProjection(We).scale(152.63)}function et(he){if(!he)return We;var Ae=1/b(he);function qe(Ge,ft){var ot=Ae+he-ft,mt=ot&&Ge*o(ft)/ot;return[ot*y(mt),Ae-ot*o(mt)]}return qe.invert=function(Ge,ft){var ot=G(Ge*Ge+(ft=Ae-ft)*ft),mt=Ae+he-ot;return[ot/o(mt)*a(Ge,ft),mt]},qe}function tt(){return lt(et).scale(123.082).center([0,26.1441]).parallel(45)}function Lt(he){function Ae(qe,Ge){var ft=A-Ge,ot=ft&&qe*he*y(ft)/ft;return[ft*y(ot)/he,A-ft*o(ot)]}return Ae.invert=function(qe,Ge){var ft=qe*he,ot=A-Ge,mt=G(ft*ft+ot*ot),Gt=a(ft,ot);return[(mt?mt/y(mt):1)*Gt/he,A-mt]},Ae}function jt(){var he=.5,Ae=t.geoProjectionMutator(Lt),qe=Ae(he);return qe.fraction=function(Ge){return arguments.length?Ae(he=+Ge):he},qe.scale(158.837)}var or=kt(1,4/M,M);function yr(){return t.geoProjection(or).scale(152.63)}function vr(he,Ae,qe,Ge,ft,ot){var mt=o(ot),Gt;if(n(he)>1||n(ot)>1)Gt=U(qe*ft+Ae*Ge*mt);else{var er=y(he/2),sr=y(ot/2);Gt=2*F(G(er*er+Ae*Ge*sr*sr))}return n(Gt)>v?[Gt,a(Ge*y(ot),Ae*ft-qe*Ge*mt)]:[0,0]}function Vt(he,Ae,qe){return U((he*he+Ae*Ae-qe*qe)/(2*he*Ae))}function Pe(he){return he-2*M*u((he+M)/(2*M))}function xe(he,Ae,qe){for(var Ge=[[he[0],he[1],y(he[1]),o(he[1])],[Ae[0],Ae[1],y(Ae[1]),o(Ae[1])],[qe[0],qe[1],y(qe[1]),o(qe[1])]],ft=Ge[2],ot,mt=0;mt<3;++mt,ft=ot)ot=Ge[mt],ft.v=vr(ot[1]-ft[1],ft[3],ft[2],ot[3],ot[2],ot[0]-ft[0]),ft.point=[0,0];var Gt=Vt(Ge[0].v[0],Ge[2].v[0],Ge[1].v[0]),er=Vt(Ge[0].v[0],Ge[1].v[0],Ge[2].v[0]),sr=M-Gt;Ge[2].point[1]=0,Ge[0].point[0]=-(Ge[1].point[0]=Ge[0].v[0]/2);var wr=[Ge[2].point[0]=Ge[0].point[0]+Ge[2].v[0]*o(Gt),2*(Ge[0].point[1]=Ge[1].point[1]=Ge[2].v[0]*y(Gt))];function Ir(ri,si){var Mi=y(si),cn=o(si),Zn=new Array(3),Yn;for(Yn=0;Yn<3;++Yn){var Ua=Ge[Yn];if(Zn[Yn]=vr(si-Ua[1],Ua[3],Ua[2],cn,Mi,ri-Ua[0]),!Zn[Yn][0])return Ua.point;Zn[Yn][1]=Pe(Zn[Yn][1]-Ua.v[1])}var Fo=wr.slice();for(Yn=0;Yn<3;++Yn){var vl=Yn==2?0:Yn+1,Us=Vt(Ge[Yn].v[0],Zn[Yn][0],Zn[vl][0]);Zn[Yn][1]<0&&(Us=-Us),Yn?Yn==1?(Us=er-Us,Fo[0]-=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*y(Us)):(Us=sr-Us,Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]+=Zn[Yn][0]*y(Us)):(Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*y(Us))}return Fo[0]/=3,Fo[1]/=3,Fo}return Ir}function Oe(he){return he[0]*=E,he[1]*=E,he}function ze(){return Re([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Re(he,Ae,qe){var Ge=t.geoCentroid({type:"MultiPoint",coordinates:[he,Ae,qe]}),ft=[-Ge[0],-Ge[1]],ot=t.geoRotation(ft),mt=xe(Oe(ot(he)),Oe(ot(Ae)),Oe(ot(qe)));mt.invert=it(mt);var Gt=t.geoProjection(mt).rotate(ft),er=Gt.center;return delete Gt.rotate,Gt.center=function(sr){return arguments.length?er(ot(sr)):ot.invert(er())},Gt.clipAngle(90)}function ht(he,Ae){var qe=G(1-y(Ae));return[2/S*he*qe,S*(1-qe)]}ht.invert=function(he,Ae){var qe=(qe=Ae/S-1)*qe;return[qe>0?he*G(M/qe)/2:0,F(1-qe)]};function st(){return t.geoProjection(ht).scale(95.6464).center([0,30])}function gt(he){var Ae=b(he);function qe(Ge,ft){return[Ge,(Ge?Ge/y(Ge):1)*(y(ft)*o(Ge)-Ae*o(ft))]}return qe.invert=Ae?function(Ge,ft){Ge&&(ft*=y(Ge)/Ge);var ot=o(Ge);return[Ge,2*a(G(ot*ot+Ae*Ae-ft*ft)-ot,Ae-ft)]}:function(Ge,ft){return[Ge,F(Ge?ft*b(Ge)/Ge:ft)]},qe}function xt(){return lt(gt).scale(249.828).clipAngle(90)}var pr=G(3);function br(he,Ae){return[pr*he*(2*o(2*Ae/3)-1)/S,pr*S*y(Ae/3)]}br.invert=function(he,Ae){var qe=3*F(Ae/(pr*S));return[S*he/(pr*(2*o(2*qe/3)-1)),qe]};function cr(){return t.geoProjection(br).scale(156.19)}function Er(he){var Ae=o(he);function qe(Ge,ft){return[Ge*Ae,y(ft)/Ae]}return qe.invert=function(Ge,ft){return[Ge/Ae,F(ft*Ae)]},qe}function ii(){return lt(Er).parallel(38.58).scale(195.044)}function jr(he){var Ae=o(he);function qe(Ge,ft){return[Ge*Ae,(1+Ae)*b(ft/2)]}return qe.invert=function(Ge,ft){return[Ge/Ae,i(ft/(1+Ae))*2]},qe}function kr(){return lt(jr).scale(124.75)}function Vr(he,Ae){var qe=G(8/(3*M));return[qe*he*(1-n(Ae)/M),qe*Ae]}Vr.invert=function(he,Ae){var qe=G(8/(3*M)),Ge=Ae/qe;return[he/(qe*(1-n(Ge)/M)),Ge]};function Ai(){return t.geoProjection(Vr).scale(165.664)}function Bi(he,Ae){var qe=G(4-3*y(n(Ae)));return[2/G(6*M)*he*qe,p(Ae)*G(2*M/3)*(2-qe)]}Bi.invert=function(he,Ae){var qe=2-n(Ae)/G(2*M/3);return[he*G(6*M)/(2*qe),p(Ae)*F((4-qe*qe)/3)]};function Di(){return t.geoProjection(Bi).scale(165.664)}function ln(he,Ae){var qe=G(M*(4+M));return[2/qe*he*(1+G(1-4*Ae*Ae/(M*M))),4/qe*Ae]}ln.invert=function(he,Ae){var qe=G(M*(4+M))/2;return[he*qe/(1+G(1-Ae*Ae*(4+M)/(4*M))),Ae*qe/2]};function hn(){return t.geoProjection(ln).scale(180.739)}function qr(he,Ae){var qe=(2+A)*y(Ae);Ae/=2;for(var Ge=0,ft=1/0;Ge<10&&n(ft)>v;Ge++){var ot=o(Ae);Ae-=ft=(Ae+y(Ae)*(ot+2)-qe)/(2*ot*(1+ot))}return[2/G(M*(4+M))*he*(1+o(Ae)),2*G(M/(4+M))*y(Ae)]}qr.invert=function(he,Ae){var qe=Ae*G((4+M)/M)/2,Ge=F(qe),ft=o(Ge);return[he/(2/G(M*(4+M))*(1+ft)),F((Ge+qe*(ft+2))/(2+A))]};function _i(){return t.geoProjection(qr).scale(180.739)}function zi(he,Ae){return[he*(1+o(Ae))/G(2+M),2*Ae/G(2+M)]}zi.invert=function(he,Ae){var qe=G(2+M),Ge=Ae*qe/2;return[qe*he/(1+o(Ge)),Ge]};function Rt(){return t.geoProjection(zi).scale(173.044)}function _t(he,Ae){for(var qe=(1+A)*y(Ae),Ge=0,ft=1/0;Ge<10&&n(ft)>v;Ge++)Ae-=ft=(Ae+y(Ae)-qe)/(1+o(Ae));return qe=G(2+M),[he*(1+o(Ae))/qe,2*Ae/qe]}_t.invert=function(he,Ae){var qe=1+A,Ge=G(qe/2);return[he*2*Ge/(1+o(Ae*=Ge)),F((Ae+y(Ae))/qe)]};function qt(){return t.geoProjection(_t).scale(173.044)}var Nt=3+2*k;function mr(he,Ae){var qe=y(he/=2),Ge=o(he),ft=G(o(Ae)),ot=o(Ae/=2),mt=y(Ae)/(ot+k*Ge*ft),Gt=G(2/(1+mt*mt)),er=G((k*ot+(Ge+qe)*ft)/(k*ot+(Ge-qe)*ft));return[Nt*(Gt*(er-1/er)-2*l(er)),Nt*(Gt*mt*(er+1/er)-2*i(mt))]}mr.invert=function(he,Ae){if(!(ot=Se.invert(he/1.2,Ae*1.065)))return null;var qe=ot[0],Ge=ot[1],ft=20,ot;he/=Nt,Ae/=Nt;do{var mt=qe/2,Gt=Ge/2,er=y(mt),sr=o(mt),wr=y(Gt),Ir=o(Gt),ri=o(Ge),si=G(ri),Mi=wr/(Ir+k*sr*si),cn=Mi*Mi,Zn=G(2/(1+cn)),Yn=k*Ir+(sr+er)*si,Ua=k*Ir+(sr-er)*si,Fo=Yn/Ua,vl=G(Fo),Us=vl-1/vl,ml=vl+1/vl,au=Zn*Us-2*l(vl)-he,Sl=Zn*Mi*ml-2*i(Mi)-Ae,Yl=wr&&x*si*er*cn/wr,ql=(k*sr*Ir+si)/(2*(Ir+k*sr*si)*(Ir+k*sr*si)*si),ou=-.5*Mi*Zn*Zn*Zn,Pu=ou*Yl,nu=ou*ql,ru=(ru=2*Ir+k*si*(sr-er))*ru*vl,Hu=(k*sr*Ir*si+ri)/ru,$u=-(k*er*wr)/(si*ru),Ku=Us*Pu-2*Hu/vl+Zn*(Hu+Hu/Fo),Wu=Us*nu-2*$u/vl+Zn*($u+$u/Fo),ju=Mi*ml*Pu-2*Yl/(1+cn)+Zn*ml*Yl+Zn*Mi*(Hu-Hu/Fo),sf=Mi*ml*nu-2*ql/(1+cn)+Zn*ml*ql+Zn*Mi*($u-$u/Fo),_f=Wu*ju-sf*Ku;if(!_f)break;var Qu=(Sl*Wu-au*sf)/_f,ef=(au*ju-Sl*Ku)/_f;qe-=Qu,Ge=f(-A,c(A,Ge-ef))}while((n(Qu)>v||n(ef)>v)&&--ft>0);return n(n(Ge)-A)Ge){var Ir=G(wr),ri=a(sr,er),si=qe*d(ri/qe),Mi=ri-si,cn=he*o(Mi),Zn=(he*y(Mi)-Mi*y(cn))/(A-cn),Yn=Fi(Mi,Zn),Ua=(M-he)/rn(Yn,cn,M);er=Ir;var Fo=50,vl;do er-=vl=(he+rn(Yn,cn,er)*Ua-Ir)/(Yn(er)*Ua);while(n(vl)>v&&--Fo>0);sr=Mi*y(er),erGe){var er=G(Gt),sr=a(mt,ot),wr=qe*d(sr/qe),Ir=sr-wr;ot=er*o(Ir),mt=er*y(Ir);for(var ri=ot-A,si=y(ot),Mi=mt/si,cn=otv||n(Mi)>v)&&--cn>0);return[Ir,ri]},er}var Ii=Ri(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xn(){return t.geoProjection(Ii).scale(149.995)}var xi=Ri(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Xr(){return t.geoProjection(xi).scale(153.93)}var dt=Ri(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function $t(){return t.geoProjection(dt).scale(130.945)}function fr(he,Ae){var qe=he*he,Ge=Ae*Ae;return[he*(1-.162388*Ge)*(.87-952426e-9*qe*qe),Ae*(1+Ge/12)]}fr.invert=function(he,Ae){var qe=he,Ge=Ae,ft=50,ot;do{var mt=Ge*Ge;Ge-=ot=(Ge*(1+mt/12)-Ae)/(1+mt/4)}while(n(ot)>v&&--ft>0);ft=50,he/=1-.162388*mt;do{var Gt=(Gt=qe*qe)*Gt;qe-=ot=(qe*(.87-952426e-9*Gt)-he)/(.87-.00476213*Gt)}while(n(ot)>v&&--ft>0);return[qe,Ge]};function gr(){return t.geoProjection(fr).scale(131.747)}var Zr=Ri(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function wi(){return t.geoProjection(Zr).scale(131.087)}function $i(he){var Ae=he(A,0)[0]-he(-A,0)[0];function qe(Ge,ft){var ot=Ge>0?-.5:.5,mt=he(Ge+ot*M,ft);return mt[0]-=ot*Ae,mt}return he.invert&&(qe.invert=function(Ge,ft){var ot=Ge>0?-.5:.5,mt=he.invert(Ge+ot*Ae,ft),Gt=mt[0]-ot*M;return Gt<-M?Gt+=2*M:Gt>M&&(Gt-=2*M),mt[0]=Gt,mt}),qe}function ni(he,Ae){var qe=p(he),Ge=p(Ae),ft=o(Ae),ot=o(he)*ft,mt=y(he)*ft,Gt=y(Ge*Ae);he=n(a(mt,Gt)),Ae=F(ot),n(he-A)>v&&(he%=A);var er=Xi(he>M/4?A-he:he,Ae);return he>M/4&&(Gt=er[0],er[0]=-er[1],er[1]=-Gt),er[0]*=qe,er[1]*=-Ge,er}ni.invert=function(he,Ae){n(he)>1&&(he=p(he)*2-he),n(Ae)>1&&(Ae=p(Ae)*2-Ae);var qe=p(he),Ge=p(Ae),ft=-qe*he,ot=-Ge*Ae,mt=ot/ft<1,Gt=aa(mt?ot:ft,mt?ft:ot),er=Gt[0],sr=Gt[1],wr=o(sr);return mt&&(er=-A-er),[qe*(a(y(er)*wr,-y(sr))+M),Ge*F(o(er)*wr)]};function Xi(he,Ae){if(Ae===A)return[0,0];var qe=y(Ae),Ge=qe*qe,ft=Ge*Ge,ot=1+ft,mt=1+3*ft,Gt=1-ft,er=F(1/G(ot)),sr=Gt+Ge*ot*er,wr=(1-qe)/sr,Ir=G(wr),ri=wr*ot,si=G(ri),Mi=Ir*Gt,cn,Zn;if(he===0)return[0,-(Mi+Ge*si)];var Yn=o(Ae),Ua=1/Yn,Fo=2*qe*Yn,vl=(-3*Ge+er*mt)*Fo,Us=(-sr*Yn-(1-qe)*vl)/(sr*sr),ml=.5*Us/Ir,au=Gt*ml-2*Ge*Ir*Fo,Sl=Ge*ot*Us+wr*mt*Fo,Yl=-Ua*Fo,ql=-Ua*Sl,ou=-2*Ua*au,Pu=4*he/M,nu;if(he>.222*M||Ae.175*M){if(cn=(Mi+Ge*G(ri*(1+ft)-Mi*Mi))/(1+ft),he>M/4)return[cn,cn];var ru=cn,Hu=.5*cn;cn=.5*(Hu+ru),Zn=50;do{var $u=G(ri-cn*cn),Ku=cn*(ou+Yl*$u)+ql*F(cn/si)-Pu;if(!Ku)break;Ku<0?Hu=cn:ru=cn,cn=.5*(Hu+ru)}while(n(ru-Hu)>v&&--Zn>0)}else{cn=v,Zn=25;do{var Wu=cn*cn,ju=G(ri-Wu),sf=ou+Yl*ju,_f=cn*sf+ql*F(cn/si)-Pu,Qu=sf+(ql-Yl*Wu)/ju;cn-=nu=ju?_f/Qu:0}while(n(nu)>v&&--Zn>0)}return[cn,-Mi-Ge*G(ri-cn*cn)]}function aa(he,Ae){for(var qe=0,Ge=1,ft=.5,ot=50;;){var mt=ft*ft,Gt=G(ft),er=F(1/G(1+mt)),sr=1-mt+ft*(1+mt)*er,wr=(1-Gt)/sr,Ir=G(wr),ri=wr*(1+mt),si=Ir*(1-mt),Mi=ri-he*he,cn=G(Mi),Zn=Ae+si+ft*cn;if(n(Ge-qe)0?qe=ft:Ge=ft,ft=.5*(qe+Ge)}if(!ot)return null;var Yn=F(Gt),Ua=o(Yn),Fo=1/Ua,vl=2*Gt*Ua,Us=(-3*ft+er*(1+3*mt))*vl,ml=(-sr*Ua-(1-Gt)*Us)/(sr*sr),au=.5*ml/Ir,Sl=(1-mt)*au-2*ft*Ir*vl,Yl=-2*Fo*Sl,ql=-Fo*vl,ou=-Fo*(ft*(1+mt)*ml+wr*(1+3*mt)*vl);return[M/4*(he*(Yl+ql*cn)+ou*F(he/G(ri))),Yn]}function Mn(){return t.geoProjection($i(ni)).scale(239.75)}function Un(he,Ae,qe){var Ge,ft,ot;return he?(Ge=Ga(he,qe),Ae?(ft=Ga(Ae,1-qe),ot=ft[1]*ft[1]+qe*Ge[0]*Ge[0]*ft[0]*ft[0],[[Ge[0]*ft[2]/ot,Ge[1]*Ge[2]*ft[0]*ft[1]/ot],[Ge[1]*ft[1]/ot,-Ge[0]*Ge[2]*ft[0]*ft[2]/ot],[Ge[2]*ft[1]*ft[2]/ot,-qe*Ge[0]*Ge[1]*ft[0]/ot]]):[[Ge[0],0],[Ge[1],0],[Ge[2],0]]):(ft=Ga(Ae,1-qe),[[0,ft[0]/ft[1]],[1/ft[1],0],[ft[2]/ft[1],0]])}function Ga(he,Ae){var qe,Ge,ft,ot,mt;if(Ae=1-v)return qe=(1-Ae)/4,Ge=N(he),ot=j(he),ft=1/Ge,mt=Ge*W(he),[ot+qe*(mt-he)/(Ge*Ge),ft-qe*ot*ft*(mt-he),ft+qe*ot*ft*(mt+he),2*i(s(he))-A+qe*(mt-he)/Ge];var Gt=[1,0,0,0,0,0,0,0,0],er=[G(Ae),0,0,0,0,0,0,0,0],sr=0;for(Ge=G(1-Ae),mt=1;n(er[sr]/Gt[sr])>v&&sr<8;)qe=Gt[sr++],er[sr]=(qe-Ge)/2,Gt[sr]=(qe+Ge)/2,Ge=G(qe*Ge),mt*=2;ft=mt*Gt[sr]*he;do ot=er[sr]*y(Ge=ft)/Gt[sr],ft=(F(ot)+ft)/2;while(--sr);return[y(ft),ot=o(ft),ot/o(ft-Ge),ft]}function ma(he,Ae,qe){var Ge=n(he),ft=n(Ae),ot=W(ft);if(Ge){var mt=1/y(Ge),Gt=1/(b(Ge)*b(Ge)),er=-(Gt+qe*(ot*ot*mt*mt)-1+qe),sr=(qe-1)*Gt,wr=(-er+G(er*er-4*sr))/2;return[oa(i(1/G(wr)),qe)*p(he),oa(i(G((wr/Gt-1)/qe)),1-qe)*p(Ae)]}return[0,oa(i(ot),1-qe)*p(Ae)]}function oa(he,Ae){if(!Ae)return he;if(Ae===1)return l(b(he/2+L));for(var qe=1,Ge=G(1-Ae),ft=G(Ae),ot=0;n(ft)>v;ot++){if(he%M){var mt=i(Ge*b(he)/qe);mt<0&&(mt+=M),he+=mt+~~(he/M)*M}else he+=he;ft=(qe+Ge)/2,Ge=G(qe*Ge),ft=((qe=ft)-Ge)/2}return he/(h(2,ot)*qe)}function ka(he,Ae){var qe=(k-1)/(k+1),Ge=G(1-qe*qe),ft=oa(A,Ge*Ge),ot=-1,mt=l(b(M/4+n(Ae)/2)),Gt=s(ot*mt)/G(qe),er=so(Gt*o(ot*he),Gt*y(ot*he)),sr=ma(er[0],er[1],Ge*Ge);return[-sr[1],(Ae>=0?1:-1)*(.5*ft-sr[0])]}function so(he,Ae){var qe=he*he,Ge=Ae+1,ft=1-qe-Ae*Ae;return[.5*((he>=0?A:-A)-a(ft,2*he)),-.25*l(ft*ft+4*qe)+.5*l(Ge*Ge+qe)]}function Kr(he,Ae){var qe=Ae[0]*Ae[0]+Ae[1]*Ae[1];return[(he[0]*Ae[0]+he[1]*Ae[1])/qe,(he[1]*Ae[0]-he[0]*Ae[1])/qe]}ka.invert=function(he,Ae){var qe=(k-1)/(k+1),Ge=G(1-qe*qe),ft=oa(A,Ge*Ge),ot=-1,mt=Un(.5*ft-Ae,-he,Ge*Ge),Gt=Kr(mt[0],mt[1]),er=a(Gt[1],Gt[0])/ot;return[er,2*i(s(.5/ot*l(qe*Gt[0]*Gt[0]+qe*Gt[1]*Gt[1])))-A]};function Ia(){return t.geoProjection($i(ka)).scale(151.496)}function Yo(he){var Ae=y(he),qe=o(he),Ge=fa(he);Ge.invert=fa(-he);function ft(ot,mt){var Gt=Ge(ot,mt);ot=Gt[0],mt=Gt[1];var er=y(mt),sr=o(mt),wr=o(ot),Ir=U(Ae*er+qe*sr*wr),ri=y(Ir),si=n(ri)>v?Ir/ri:1;return[si*qe*y(ot),(n(ot)>A?si:-si)*(Ae*sr-qe*er*wr)]}return ft.invert=function(ot,mt){var Gt=G(ot*ot+mt*mt),er=-y(Gt),sr=o(Gt),wr=Gt*sr,Ir=-mt*er,ri=Gt*Ae,si=G(wr*wr+Ir*Ir-ri*ri),Mi=a(wr*ri+Ir*si,Ir*ri-wr*si),cn=(Gt>A?-1:1)*a(ot*er,Gt*o(Mi)*sr+mt*y(Mi)*er);return Ge.invert(cn,Mi)},ft}function fa(he){var Ae=y(he),qe=o(he);return function(Ge,ft){var ot=o(ft),mt=o(Ge)*ot,Gt=y(Ge)*ot,er=y(ft);return[a(Gt,mt*qe-er*Ae),F(er*qe+mt*Ae)]}}function kn(){var he=0,Ae=t.geoProjectionMutator(Yo),qe=Ae(he),Ge=qe.rotate,ft=qe.stream,ot=t.geoCircle();return qe.parallel=function(mt){if(!arguments.length)return he*P;var Gt=qe.rotate();return Ae(he=mt*E).rotate(Gt)},qe.rotate=function(mt){return arguments.length?(Ge.call(qe,[mt[0],mt[1]-he*P]),ot.center([-mt[0],-mt[1]]),qe):(mt=Ge.call(qe),mt[1]+=he*P,mt)},qe.stream=function(mt){return mt=ft(mt),mt.sphere=function(){mt.polygonStart();var Gt=.01,er=ot.radius(90-Gt)().coordinates[0],sr=er.length-1,wr=-1,Ir;for(mt.lineStart();++wr=0;)mt.point((Ir=er[wr])[0],Ir[1]);mt.lineEnd(),mt.polygonEnd()},mt},qe.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ta=3,ys=F(1-1/Ta)*P,uo=Er(0);function ls(he){var Ae=ys*E,qe=ht(M,Ae)[0]-ht(-M,Ae)[0],Ge=uo(0,Ae)[1],ft=ht(0,Ae)[1],ot=S-ft,mt=m/he,Gt=4/m,er=Ge+ot*ot*4/m;function sr(wr,Ir){var ri,si=n(Ir);if(si>Ae){var Mi=c(he-1,f(0,u((wr+M)/mt)));wr+=M*(he-1)/he-Mi*mt,ri=ht(wr,si),ri[0]=ri[0]*m/qe-m*(he-1)/(2*he)+Mi*m/he,ri[1]=Ge+(ri[1]-ft)*4*ot/m,Ir<0&&(ri[1]=-ri[1])}else ri=uo(wr,Ir);return ri[0]*=Gt,ri[1]/=er,ri}return sr.invert=function(wr,Ir){wr/=Gt,Ir*=er;var ri=n(Ir);if(ri>Ge){var si=c(he-1,f(0,u((wr+M)/mt)));wr=(wr+M*(he-1)/he-si*mt)*qe/m;var Mi=ht.invert(wr,.25*(ri-Ge)*m/ot+ft);return Mi[0]-=M*(he-1)/he-si*mt,Ir<0&&(Mi[1]=-Mi[1]),Mi}return uo.invert(wr,Ir)},sr}function $a(he,Ae){return[he,Ae&1?90-v:ys]}function fo(he,Ae){return[he,Ae&1?-90+v:-ys]}function mn(he){return[he[0]*(1-v),he[1]]}function ra(he){var Ae=[].concat(r.range(-180,180+he/2,he).map($a),r.range(180,-180-he/2,-he).map(fo));return{type:"Polygon",coordinates:[he===180?Ae.map(mn):Ae]}}function wa(){var he=4,Ae=t.geoProjectionMutator(ls),qe=Ae(he),Ge=qe.stream;return qe.lobes=function(ft){return arguments.length?Ae(he=+ft):he},qe.stream=function(ft){var ot=qe.rotate(),mt=Ge(ft),Gt=(qe.rotate([0,0]),Ge(ft));return qe.rotate(ot),mt.sphere=function(){t.geoStream(ra(180/he),Gt)},mt},qe.scale(239.75)}function ws(he){var Ae=1+he,qe=y(1/Ae),Ge=F(qe),ft=2*G(M/(ot=M+4*Ge*Ae)),ot,mt=.5*ft*(Ae+G(he*(2+he))),Gt=he*he,er=Ae*Ae;function sr(wr,Ir){var ri=1-y(Ir),si,Mi;if(ri&&ri<2){var cn=A-Ir,Zn=25,Yn;do{var Ua=y(cn),Fo=o(cn),vl=Ge+a(Ua,Ae-Fo),Us=1+er-2*Ae*Fo;cn-=Yn=(cn-Gt*Ge-Ae*Ua+Us*vl-.5*ri*ot)/(2*Ae*Ua*vl)}while(n(Yn)>C&&--Zn>0);si=ft*G(Us),Mi=wr*vl/M}else si=ft*(he+ri),Mi=wr*Ge/M;return[si*y(Mi),mt-si*o(Mi)]}return sr.invert=function(wr,Ir){var ri=wr*wr+(Ir-=mt)*Ir,si=(1+er-ri/(ft*ft))/(2*Ae),Mi=U(si),cn=y(Mi),Zn=Ge+a(cn,Ae-si);return[F(wr/G(ri))*M/Zn,F(1-2*(Mi-Gt*Ge-Ae*cn+(1+er-2*Ae*si)*Zn)/ot)]},sr}function Co(){var he=1,Ae=t.geoProjectionMutator(ws),qe=Ae(he);return qe.ratio=function(Ge){return arguments.length?Ae(he=+Ge):he},qe.scale(167.774).center([0,18.67])}var Po=.7109889596207567,Wi=.0528035274542;function gn(he,Ae){return Ae>-Po?(he=$e(he,Ae),he[1]+=Wi,he):We(he,Ae)}gn.invert=function(he,Ae){return Ae>-Po?$e.invert(he,Ae-Wi):We.invert(he,Ae)};function Ps(){return t.geoProjection(gn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ha(he,Ae){return n(Ae)>Po?(he=$e(he,Ae),he[1]-=Ae>0?Wi:-Wi,he):We(he,Ae)}Ha.invert=function(he,Ae){return n(Ae)>Po?$e.invert(he,Ae+(Ae>0?Wi:-Wi)):We.invert(he,Ae)};function Sn(){return t.geoProjection(Ha).scale(152.63)}function ao(he,Ae,qe,Ge){var ft=G(4*M/(2*qe+(1+he-Ae/2)*y(2*qe)+(he+Ae)/2*y(4*qe)+Ae/2*y(6*qe))),ot=G(Ge*y(qe)*G((1+he*o(2*qe)+Ae*o(4*qe))/(1+he+Ae))),mt=qe*er(1);function Gt(Ir){return G(1+he*o(2*Ir)+Ae*o(4*Ir))}function er(Ir){var ri=Ir*qe;return(2*ri+(1+he-Ae/2)*y(2*ri)+(he+Ae)/2*y(4*ri)+Ae/2*y(6*ri))/qe}function sr(Ir){return Gt(Ir)*y(Ir)}var wr=function(Ir,ri){var si=qe*Ot(er,mt*y(ri)/qe,ri/M);isNaN(si)&&(si=qe*p(ri));var Mi=ft*Gt(si);return[Mi*ot*Ir/M*o(si),Mi/ot*y(si)]};return wr.invert=function(Ir,ri){var si=Ot(sr,ri*ot/ft);return[Ir*M/(o(si)*ft*ot*Gt(si)),F(qe*er(si/qe)/mt)]},qe===0&&(ft=G(Ge/M),wr=function(Ir,ri){return[Ir*ft,y(ri)/ft]},wr.invert=function(Ir,ri){return[Ir/ft,F(ri*ft)]}),wr}function Oa(){var he=1,Ae=0,qe=45*E,Ge=2,ft=t.geoProjectionMutator(ao),ot=ft(he,Ae,qe,Ge);return ot.a=function(mt){return arguments.length?ft(he=+mt,Ae,qe,Ge):he},ot.b=function(mt){return arguments.length?ft(he,Ae=+mt,qe,Ge):Ae},ot.psiMax=function(mt){return arguments.length?ft(he,Ae,qe=+mt*E,Ge):qe*P},ot.ratio=function(mt){return arguments.length?ft(he,Ae,qe,Ge=+mt):Ge},ot.scale(180.739)}function Ko(he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr){if(wr.nanEncountered)return NaN;var Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl;if(Ir=qe-Ae,ri=he(Ae+Ir*.25),si=he(qe-Ir*.25),isNaN(ri)){wr.nanEncountered=!0;return}if(isNaN(si)){wr.nanEncountered=!0;return}return Mi=Ir*(Ge+4*ri+ft)/12,cn=Ir*(ft+4*si+ot)/12,Zn=Mi+cn,vl=(Zn-mt)/15,sr>er?(wr.maxDepthCount++,Zn+vl):Math.abs(vl)>1;do er[Zn]>si?cn=Zn:Mi=Zn,Zn=Mi+cn>>1;while(Zn>Mi);var Yn=er[Zn+1]-er[Zn];return Yn&&(Yn=(si-er[Zn+1])/Yn),(Zn+1+Yn)/mt}var Ir=2*wr(1)/M*ot/qe,ri=function(si,Mi){var cn=wr(n(y(Mi))),Zn=Ge(cn)*si;return cn/=Ir,[Zn,Mi>=0?cn:-cn]};return ri.invert=function(si,Mi){var cn;return Mi*=Ir,n(Mi)<1&&(cn=p(Mi)*F(ft(n(Mi))*ot)),[si/Ge(n(Mi)),cn]},ri}function Sa(){var he=0,Ae=2.5,qe=1.183136,Ge=t.geoProjectionMutator(Hi),ft=Ge(he,Ae,qe);return ft.alpha=function(ot){return arguments.length?Ge(he=+ot,Ae,qe):he},ft.k=function(ot){return arguments.length?Ge(he,Ae=+ot,qe):Ae},ft.gamma=function(ot){return arguments.length?Ge(he,Ae,qe=+ot):qe},ft.scale(152.63)}function Qa(he,Ae){return n(he[0]-Ae[0])=0;--er)qe=he[1][er],Ge=qe[0][0],ft=qe[0][1],ot=qe[1][1],mt=qe[2][0],Gt=qe[2][1],Ae.push(vn([[mt-v,Gt-v],[mt-v,ot+v],[Ge+v,ot+v],[Ge+v,ft-v]],30));return{type:"Polygon",coordinates:[r.merge(Ae)]}}function la(he,Ae,qe){var Ge,ft;function ot(er,sr){for(var wr=sr<0?-1:1,Ir=Ae[+(sr<0)],ri=0,si=Ir.length-1;riIr[ri][2][0];++ri);var Mi=he(er-Ir[ri][1][0],sr);return Mi[0]+=he(Ir[ri][1][0],wr*sr>wr*Ir[ri][0][1]?Ir[ri][0][1]:sr)[0],Mi}qe?ot.invert=qe(ot):he.invert&&(ot.invert=function(er,sr){for(var wr=ft[+(sr<0)],Ir=Ae[+(sr<0)],ri=0,si=wr.length;riMi&&(cn=si,si=Mi,Mi=cn),[[Ir,si],[ri,Mi]]})}),mt):Ae.map(function(sr){return sr.map(function(wr){return[[wr[0][0]*P,wr[0][1]*P],[wr[1][0]*P,wr[1][1]*P],[wr[2][0]*P,wr[2][1]*P]]})})},Ae!=null&&mt.lobes(Ae),mt}var vo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function As(){return la(Ne,vo).scale(160.857)}var ps=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function co(){return la(Ha,ps).scale(152.63)}var mo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function No(){return la($e,mo).scale(169.529)}var jn=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Go(){return la($e,jn).scale(169.529).rotate([20,0])}var Ys=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function qs(){return la(gn,Ys,it).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ns=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Ba(){return la(We,Ns).scale(152.63).rotate([-20,0])}function ha(he,Ae){return[3/m*he*G(M*M/3-Ae*Ae),Ae]}ha.invert=function(he,Ae){return[m/3*he/G(M*M/3-Ae*Ae),Ae]};function Vs(){return t.geoProjection(ha).scale(158.837)}function Ya(he){function Ae(qe,Ge){if(n(n(Ge)-A)2)return null;qe/=2,Ge/=2;var ot=qe*qe,mt=Ge*Ge,Gt=2*Ge/(1+ot+mt);return Gt=h((1+Gt)/(1-Gt),1/he),[a(2*qe,1-ot-mt)/he,F((Gt-1)/(Gt+1))]},Ae}function _n(){var he=.5,Ae=t.geoProjectionMutator(Ya),qe=Ae(he);return qe.spacing=function(Ge){return arguments.length?Ae(he=+Ge):he},qe.scale(124.75)}var Vn=M/k;function wo(he,Ae){return[he*(1+G(o(Ae)))/2,Ae/(o(Ae/2)*o(he/6))]}wo.invert=function(he,Ae){var qe=n(he),Ge=n(Ae),ft=v,ot=A;Gev||n(Zn)>v)&&--ft>0);return ft&&[qe,Ge]};function sn(){return t.geoProjection(Xn).scale(139.98)}function $n(he,Ae){return[y(he)/o(Ae),b(Ae)*o(he)]}$n.invert=function(he,Ae){var qe=he*he,Ge=Ae*Ae,ft=Ge+1,ot=qe+ft,mt=he?x*G((ot-G(ot*ot-4*qe))/qe):1/G(ft);return[F(he*mt),p(Ae)*U(mt)]};function Ka(){return t.geoProjection($n).scale(144.049).clipAngle(90-.001)}function qn(he){var Ae=o(he),qe=b(L+he/2);function Ge(ft,ot){var mt=ot-he,Gt=n(mt)=0;)wr=he[sr],Ir=wr[0]+Gt*(si=Ir)-er*ri,ri=wr[1]+Gt*ri+er*si;return Ir=Gt*(si=Ir)-er*ri,ri=Gt*ri+er*si,[Ir,ri]}return qe.invert=function(Ge,ft){var ot=20,mt=Ge,Gt=ft;do{for(var er=Ae,sr=he[er],wr=sr[0],Ir=sr[1],ri=0,si=0,Mi;--er>=0;)sr=he[er],ri=wr+mt*(Mi=ri)-Gt*si,si=Ir+mt*si+Gt*Mi,wr=sr[0]+mt*(Mi=wr)-Gt*Ir,Ir=sr[1]+mt*Ir+Gt*Mi;ri=wr+mt*(Mi=ri)-Gt*si,si=Ir+mt*si+Gt*Mi,wr=mt*(Mi=wr)-Gt*Ir-Ge,Ir=mt*Ir+Gt*Mi-ft;var cn=ri*ri+si*si,Zn,Yn;mt-=Zn=(wr*ri+Ir*si)/cn,Gt-=Yn=(Ir*ri-wr*si)/cn}while(n(Zn)+n(Yn)>v*v&&--ot>0);if(ot){var Ua=G(mt*mt+Gt*Gt),Fo=2*i(Ua*.5),vl=y(Fo);return[a(mt*vl,Ua*o(Fo)),Ua?F(Gt*vl/Ua):0]}},qe}var sa=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],es=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Na=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],en=[[.9245,0],[0,0],[.01943,0]],Pa=[[.721316,0],[0,0],[-.00881625,-.00617325]];function to(){return _a(sa,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function yo(){return _a(es,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Jo(){return _a(Na,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ao(){return _a(en,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Rn(){return _a(Pa,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function _a(he,Ae){var qe=t.geoProjection(eo(he)).rotate(Ae).clipAngle(90),Ge=t.geoRotation(Ae),ft=qe.center;return delete qe.rotate,qe.center=function(ot){return arguments.length?ft(Ge(ot)):Ge.invert(ft())},qe}var Ws=G(6),Ca=G(7);function Es(he,Ae){var qe=F(7*y(Ae)/(3*Ws));return[Ws*he*(2*o(2*qe/3)-1)/Ca,9*y(qe/3)/Ca]}Es.invert=function(he,Ae){var qe=3*F(Ae*Ca/9);return[he*Ca/(Ws*(2*o(2*qe/3)-1)),F(y(qe)*3*Ws/7)]};function Ts(){return t.geoProjection(Es).scale(164.859)}function Ho(he,Ae){for(var qe=(1+x)*y(Ae),Ge=Ae,ft=0,ot;ft<25&&(Ge-=ot=(y(Ge/2)+y(Ge)-qe)/(.5*o(Ge/2)+o(Ge)),!(n(ot)C&&--Ge>0);return ot=qe*qe,mt=ot*ot,Gt=ot*mt,[he/(.84719-.13063*ot+Gt*Gt*(-.04515+.05494*ot-.02326*mt+.00331*Gt)),qe]};function qa(){return t.geoProjection(Wo).scale(175.295)}function on(he,Ae){return[he*(1+o(Ae))/2,2*(Ae-b(Ae/2))]}on.invert=function(he,Ae){for(var qe=Ae/2,Ge=0,ft=1/0;Ge<10&&n(ft)>v;++Ge){var ot=o(Ae/2);Ae-=ft=(Ae-b(Ae/2)-qe)/(1-.5/(ot*ot))}return[2*he/(1+o(Ae)),Ae]};function Oo(){return t.geoProjection(on).scale(152.63)}var ko=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oo(){return la(je(1/0),ko).rotate([20,0]).scale(152.63)}function za(he,Ae){var qe=y(Ae),Ge=o(Ae),ft=p(he);if(he===0||n(Ae)===A)return[0,Ae];if(Ae===0)return[he,0];if(n(he)===A)return[he*Ge,A*qe];var ot=M/(2*he)-2*he/M,mt=2*Ae/M,Gt=(1-mt*mt)/(qe-mt),er=ot*ot,sr=Gt*Gt,wr=1+er/sr,Ir=1+sr/er,ri=(ot*qe/Gt-ot/2)/wr,si=(sr*qe/er+Gt/2)/Ir,Mi=ri*ri+Ge*Ge/wr,cn=si*si-(sr*qe*qe/er+Gt*qe-1)/Ir;return[A*(ri+G(Mi)*ft),A*(si+G(cn<0?0:cn)*p(-Ae*ot)*ft)]}za.invert=function(he,Ae){he/=A,Ae/=A;var qe=he*he,Ge=Ae*Ae,ft=qe+Ge,ot=M*M;return[he?(ft-1+G((1-ft)*(1-ft)+4*qe))/(2*he)*A:0,Ot(function(mt){return ft*(M*y(mt)-2*mt)*M+4*mt*mt*(Ae-y(mt))+2*M*mt-ot*Ae},0)]};function ea(){return t.geoProjection(za).scale(127.267)}var rs=1.0148,$s=.23185,us=-.14499,Rs=.02406,fl=rs,as=5*$s,Ma=7*us,Qs=9*Rs,ho=1.790857183;function gs(he,Ae){var qe=Ae*Ae;return[he,Ae*(rs+qe*qe*($s+qe*(us+Rs*qe)))]}gs.invert=function(he,Ae){Ae>ho?Ae=ho:Ae<-ho&&(Ae=-ho);var qe=Ae,Ge;do{var ft=qe*qe;qe-=Ge=(qe*(rs+ft*ft*($s+ft*(us+Rs*ft)))-Ae)/(fl+ft*ft*(as+ft*(Ma+Qs*ft)))}while(n(Ge)>v);return[he,qe]};function Vo(){return t.geoProjection(gs).scale(139.319)}function Ro(he,Ae){if(n(Ae)v&&--ft>0);return mt=b(Ge),[(n(Ae)=0;)if(Ge=Ae[Gt],qe[0]===Ge[0]&&qe[1]===Ge[1]){if(ot)return[ot,qe];ot=qe}}}function Aa(he){for(var Ae=he.length,qe=[],Ge=he[Ae-1],ft=0;ft0?[-Ge[0],0]:[180-Ge[0],180])};var Ae=Ss.map(function(qe){return{face:qe,project:he(qe)}});return[-1,0,0,1,0,1,4,5].forEach(function(qe,Ge){var ft=Ae[qe];ft&&(ft.children||(ft.children=[])).push(Ae[Ge])}),Gs(Ae[0],function(qe,Ge){return Ae[qe<-M/2?Ge<0?6:4:qe<0?Ge<0?2:0:qeGe^si>Ge&&qe<(ri-sr)*(Ge-wr)/(si-wr)+sr&&(ft=!ft)}return ft}function Hs(he,Ae){var qe=Ae.stream,Ge;if(!qe)throw new Error("invalid projection");switch(he&&he.type){case"Feature":Ge=tl;break;case"FeatureCollection":Ge=Do;break;default:Ge=hl;break}return Ge(he,qe)}function Do(he,Ae){return{type:"FeatureCollection",features:he.features.map(function(qe){return tl(qe,Ae)})}}function tl(he,Ae){return{type:"Feature",id:he.id,properties:he.properties,geometry:hl(he.geometry,Ae)}}function Fs(he,Ae){return{type:"GeometryCollection",geometries:he.geometries.map(function(qe){return hl(qe,Ae)})}}function hl(he,Ae){if(!he)return null;if(he.type==="GeometryCollection")return Fs(he,Ae);var qe;switch(he.type){case"Point":qe=jo;break;case"MultiPoint":qe=jo;break;case"LineString":qe=Ds;break;case"MultiLineString":qe=Ds;break;case"Polygon":qe=Is;break;case"MultiPolygon":qe=Is;break;case"Sphere":qe=Is;break;default:return null}return t.geoStream(he,Ae(qe)),qe.result()}var Fa=[],Ms=[],jo={point:function(he,Ae){Fa.push([he,Ae])},result:function(){var he=Fa.length?Fa.length<2?{type:"Point",coordinates:Fa[0]}:{type:"MultiPoint",coordinates:Fa}:null;return Fa=[],he}},Ds={lineStart:fs,point:function(he,Ae){Fa.push([he,Ae])},lineEnd:function(){Fa.length&&(Ms.push(Fa),Fa=[])},result:function(){var he=Ms.length?Ms.length<2?{type:"LineString",coordinates:Ms[0]}:{type:"MultiLineString",coordinates:Ms}:null;return Ms=[],he}},Is={polygonStart:fs,lineStart:fs,point:function(he,Ae){Fa.push([he,Ae])},lineEnd:function(){var he=Fa.length;if(he){do Fa.push(Fa[0].slice());while(++he<4);Ms.push(Fa),Fa=[]}},polygonEnd:fs,result:function(){if(!Ms.length)return null;var he=[],Ae=[];return Ms.forEach(function(qe){cl(qe)?he.push([qe]):Ae.push(qe)}),Ae.forEach(function(qe){var Ge=qe[0];he.some(function(ft){if(el(ft[0],Ge))return ft.push(qe),!0})||he.push([qe])}),Ms=[],he.length?he.length>1?{type:"MultiPolygon",coordinates:he}:{type:"Polygon",coordinates:he[0]}:null}};function Os(he){var Ae=he(A,0)[0]-he(-A,0)[0];function qe(Ge,ft){var ot=n(Ge)0?Ge-M:Ge+M,ft),Gt=(mt[0]-mt[1])*x,er=(mt[0]+mt[1])*x;if(ot)return[Gt,er];var sr=Ae*x,wr=Gt>0^er>0?-1:1;return[wr*Gt-p(er)*sr,wr*er-p(Gt)*sr]}return he.invert&&(qe.invert=function(Ge,ft){var ot=(Ge+ft)*x,mt=(ft-Ge)*x,Gt=n(ot)<.5*Ae&&n(mt)<.5*Ae;if(!Gt){var er=Ae*x,sr=ot>0^mt>0?-1:1,wr=-sr*Ge+(mt>0?1:-1)*er,Ir=-sr*ft+(ot>0?1:-1)*er;ot=(-wr-Ir)*x,mt=(wr-Ir)*x}var ri=he.invert(ot,mt);return Gt||(ri[0]+=ot>0?M:-M),ri}),t.geoProjection(qe).rotate([-90,-90,45]).clipAngle(180-.001)}function St(){return Os(ni).scale(176.423)}function Ut(){return Os(ka).scale(111.48)}function xr(he,Ae){if(!(0<=(Ae=+Ae)&&Ae<=20))throw new Error("invalid digits");function qe(sr){var wr=sr.length,Ir=2,ri=new Array(wr);for(ri[0]=+sr[0].toFixed(Ae),ri[1]=+sr[1].toFixed(Ae);Ir2||si[0]!=wr[0]||si[1]!=wr[1])&&(Ir.push(si),wr=si)}return Ir.length===1&&sr.length>1&&Ir.push(qe(sr[sr.length-1])),Ir}function ot(sr){return sr.map(ft)}function mt(sr){if(sr==null)return sr;var wr;switch(sr.type){case"GeometryCollection":wr={type:"GeometryCollection",geometries:sr.geometries.map(mt)};break;case"Point":wr={type:"Point",coordinates:qe(sr.coordinates)};break;case"MultiPoint":wr={type:sr.type,coordinates:Ge(sr.coordinates)};break;case"LineString":wr={type:sr.type,coordinates:ft(sr.coordinates)};break;case"MultiLineString":case"Polygon":wr={type:sr.type,coordinates:ot(sr.coordinates)};break;case"MultiPolygon":wr={type:"MultiPolygon",coordinates:sr.coordinates.map(ot)};break;default:return sr}return sr.bbox!=null&&(wr.bbox=sr.bbox),wr}function Gt(sr){var wr={type:"Feature",properties:sr.properties,geometry:mt(sr.geometry)};return sr.id!=null&&(wr.id=sr.id),sr.bbox!=null&&(wr.bbox=sr.bbox),wr}if(he!=null)switch(he.type){case"Feature":return Gt(he);case"FeatureCollection":{var er={type:"FeatureCollection",features:he.features.map(Gt)};return he.bbox!=null&&(er.bbox=he.bbox),er}default:return mt(he)}return he}function dr(he){var Ae=y(he);function qe(Ge,ft){var ot=Ae?b(Ge*Ae/2)/Ae:Ge/2;if(!ft)return[2*ot,-he];var mt=2*i(ot*y(ft)),Gt=1/b(ft);return[y(mt)*Gt,ft+(1-o(mt))*Gt-he]}return qe.invert=function(Ge,ft){if(n(ft+=he)v&&--Gt>0);var ri=Ge*(sr=b(mt)),si=b(n(ft)0?A:-A)*(er+ft*(wr-mt)/2+ft*ft*(wr-2*er+mt)/2)]}Ti.invert=function(he,Ae){var qe=Ae/A,Ge=qe*90,ft=c(18,n(Ge/5)),ot=f(0,u(ft));do{var mt=yi[ot][1],Gt=yi[ot+1][1],er=yi[c(19,ot+2)][1],sr=er-mt,wr=er-2*Gt+mt,Ir=2*(n(qe)-Gt)/sr,ri=wr/sr,si=Ir*(1-ri*Ir*(1-2*ri*Ir));if(si>=0||ot===1){Ge=(Ae>=0?5:-5)*(si+ft);var Mi=50,cn;do ft=c(18,n(Ge)/5),ot=u(ft),si=ft-ot,mt=yi[ot][1],Gt=yi[ot+1][1],er=yi[c(19,ot+2)][1],Ge-=(cn=(Ae>=0?A:-A)*(Gt+si*(er-mt)/2+si*si*(er-2*Gt+mt)/2)-Ae)*P;while(n(cn)>C&&--Mi>0);break}}while(--ot>=0);var Zn=yi[ot][0],Yn=yi[ot+1][0],Ua=yi[c(19,ot+2)][0];return[he/(Yn+si*(Ua-Zn)/2+si*si*(Ua-2*Yn+Zn)/2),Ge*E]};function ki(){return t.geoProjection(Ti).scale(152.63)}function Ki(he){function Ae(qe,Ge){var ft=o(Ge),ot=(he-1)/(he-ft*o(qe));return[ot*ft*y(qe),ot*y(Ge)]}return Ae.invert=function(qe,Ge){var ft=qe*qe+Ge*Ge,ot=G(ft),mt=(he-G(1-ft*(he+1)/(he-1)))/((he-1)/ot+ot/(he-1));return[a(qe*mt,ot*G(1-mt*mt)),ot?F(Ge*mt/ot):0]},Ae}function Fn(he,Ae){var qe=Ki(he);if(!Ae)return qe;var Ge=o(Ae),ft=y(Ae);function ot(mt,Gt){var er=qe(mt,Gt),sr=er[1],wr=sr*ft/(he-1)+Ge;return[er[0]*Ge/wr,sr/wr]}return ot.invert=function(mt,Gt){var er=(he-1)/(he-1-Gt*ft);return qe.invert(er*mt,er*Gt*Ge)},ot}function Li(){var he=2,Ae=0,qe=t.geoProjectionMutator(Fn),Ge=qe(he,Ae);return Ge.distance=function(ft){return arguments.length?qe(he=+ft,Ae):he},Ge.tilt=function(ft){return arguments.length?qe(he,Ae=ft*E):Ae*P},Ge.scale(432.147).clipAngle(U(1/he)*P-1e-6)}var hi=1e-4,Ci=1e4,Si=-180,Gn=Si+hi,ta=180,ya=ta-hi,ia=-90,pa=ia+hi,va=90,zn=va-hi;function is(he){return he.length>0}function Cs(he){return Math.floor(he*Ci)/Ci}function Ks(he){return he===ia||he===va?[0,he]:[Si,Cs(he)]}function dl(he){var Ae=he[0],qe=he[1],Ge=!1;return Ae<=Gn?(Ae=Si,Ge=!0):Ae>=ya&&(Ae=ta,Ge=!0),qe<=pa?(qe=ia,Ge=!0):qe>=zn&&(qe=va,Ge=!0),Ge?[Ae,qe]:he}function xl(he){return he.map(dl)}function Bl(he,Ae,qe){for(var Ge=0,ft=he.length;Ge=ya||wr<=pa||wr>=zn){ot[mt]=dl(er);for(var Ir=mt+1;IrGn&&sipa&&Mi=Gt)break;qe.push({index:-1,polygon:Ae,ring:ot=ot.slice(Ir-1)}),ot[0]=Ks(ot[0][1]),mt=-1,Gt=ot.length}}}}function bl(he){var Ae,qe=he.length,Ge={},ft={},ot,mt,Gt,er,sr;for(Ae=0;Ae0?M-Gt:Gt)*P],sr=t.geoProjection(he(mt)).rotate(er),wr=t.geoRotation(er),Ir=sr.center;return delete sr.rotate,sr.center=function(ri){return arguments.length?Ir(wr(ri)):wr.invert(Ir())},sr.clipAngle(90)}function cs(he){var Ae=o(he);function qe(Ge,ft){var ot=t.geoGnomonicRaw(Ge,ft);return ot[0]*=Ae,ot}return qe.invert=function(Ge,ft){return t.geoGnomonicRaw.invert(Ge/Ae,ft)},qe}function sl(){return ll([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ll(he,Ae){return Js(cs,he,Ae)}function nl(he){if(!(he*=2))return t.geoAzimuthalEquidistantRaw;var Ae=-he/2,qe=-Ae,Ge=he*he,ft=b(qe),ot=.5/y(qe);function mt(Gt,er){var sr=U(o(er)*o(Gt-Ae)),wr=U(o(er)*o(Gt-qe)),Ir=er<0?-1:1;return sr*=sr,wr*=wr,[(sr-wr)/(2*he),Ir*G(4*Ge*wr-(Ge-sr+wr)*(Ge-sr+wr))/(2*he)]}return mt.invert=function(Gt,er){var sr=er*er,wr=o(G(sr+(ri=Gt+Ae)*ri)),Ir=o(G(sr+(ri=Gt+qe)*ri)),ri,si;return[a(si=wr-Ir,ri=(wr+Ir)*ft),(er<0?-1:1)*U(G(ri*ri+si*si)*ot)]},mt}function zl(){return Ml([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ml(he,Ae){return Js(nl,he,Ae)}function Dl(he,Ae){if(n(Ae)v&&--Gt>0);return[p(he)*(G(ft*ft+4)+ft)*M/4,A*mt]};function Nl(){return t.geoProjection(Gl).scale(127.16)}function ue(he,Ae,qe,Ge,ft){function ot(mt,Gt){var er=qe*y(Ge*Gt),sr=G(1-er*er),wr=G(2/(1+sr*o(mt*=ft)));return[he*sr*wr*y(mt),Ae*er*wr]}return ot.invert=function(mt,Gt){var er=mt/he,sr=Gt/Ae,wr=G(er*er+sr*sr),Ir=2*F(wr/2);return[a(mt*b(Ir),he*wr)/ft,wr&&F(Gt*y(Ir)/(Ae*qe*wr))/Ge]},ot}function w(he,Ae,qe,Ge){var ft=M/3;he=f(he,v),Ae=f(Ae,v),he=c(he,A),Ae=c(Ae,M-v),qe=f(qe,0),qe=c(qe,100-v),Ge=f(Ge,v);var ot=qe/100+1,mt=Ge/100,Gt=U(ot*o(ft))/ft,er=y(he)/y(Gt*A),sr=Ae/M,wr=G(mt*y(he/2)/y(Ae/2)),Ir=wr/G(sr*er*Gt),ri=1/(wr*G(sr*er*Gt));return ue(Ir,ri,er,Gt,sr)}function q(){var he=65*E,Ae=60*E,qe=20,Ge=200,ft=t.geoProjectionMutator(w),ot=ft(he,Ae,qe,Ge);return ot.poleline=function(mt){return arguments.length?ft(he=+mt*E,Ae,qe,Ge):he*P},ot.parallels=function(mt){return arguments.length?ft(he,Ae=+mt*E,qe,Ge):Ae*P},ot.inflation=function(mt){return arguments.length?ft(he,Ae,qe=+mt,Ge):qe},ot.ratio=function(mt){return arguments.length?ft(he,Ae,qe,Ge=+mt):Ge},ot.scale(163.775)}function Q(){return q().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*M+3*G(3),fe=2*G(2*M*G(3)/ee),Ue=kt(fe*G(3)/M,fe,ee/6);function at(){return t.geoProjection(Ue).scale(176.84)}function yt(he,Ae){return[he*G(1-3*Ae*Ae/(M*M)),Ae]}yt.invert=function(he,Ae){return[he/G(1-3*Ae*Ae/(M*M)),Ae]};function Dt(){return t.geoProjection(yt).scale(152.63)}function Qt(he,Ae){var qe=o(Ae),Ge=o(he)*qe,ft=1-Ge,ot=o(he=a(y(he)*qe,-y(Ae))),mt=y(he);return qe=G(1-Ge*Ge),[mt*qe-ot*ft,-ot*qe-mt*ft]}Qt.invert=function(he,Ae){var qe=(he*he+Ae*Ae)/-2,Ge=G(-qe*(2+qe)),ft=Ae*qe+he*Ge,ot=he*qe-Ae*Ge,mt=G(ot*ot+ft*ft);return[a(Ge*ft,mt*(1+qe)),mt?-F(Ge*ot/mt):0]};function rr(){return t.geoProjection(Qt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Mr(he,Ae){var qe=Le(he,Ae);return[(qe[0]+he/A)/2,(qe[1]+Ae)/2]}Mr.invert=function(he,Ae){var qe=he,Ge=Ae,ft=25;do{var ot=o(Ge),mt=y(Ge),Gt=y(2*Ge),er=mt*mt,sr=ot*ot,wr=y(qe),Ir=o(qe/2),ri=y(qe/2),si=ri*ri,Mi=1-sr*Ir*Ir,cn=Mi?U(ot*Ir)*G(Zn=1/Mi):Zn=0,Zn,Yn=.5*(2*cn*ot*ri+qe/A)-he,Ua=.5*(cn*mt+Ge)-Ae,Fo=.5*Zn*(sr*si+cn*ot*Ir*er)+.5/A,vl=Zn*(wr*Gt/4-cn*mt*ri),Us=.125*Zn*(Gt*ri-cn*mt*sr*wr),ml=.5*Zn*(er*Ir+cn*si*ot)+.5,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ge-=Yl}while((n(Sl)>v||n(Yl)>v)&&--ft>0);return[qe,Ge]};function Ur(){return t.geoProjection(Mr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=me,e.geoAiryRaw=ae,e.geoAitoff=Ce,e.geoAitoffRaw=Le,e.geoArmadillo=te,e.geoArmadilloRaw=de,e.geoAugust=Te,e.geoAugustRaw=Se,e.geoBaker=ge,e.geoBakerRaw=Ie,e.geoBerghaus=ce,e.geoBerghausRaw=Be,e.geoBertin1953=zt,e.geoBertin1953Raw=Ke,e.geoBoggs=vt,e.geoBoggsRaw=Ne,e.geoBonne=tt,e.geoBonneRaw=et,e.geoBottomley=jt,e.geoBottomleyRaw=Lt,e.geoBromley=yr,e.geoBromleyRaw=or,e.geoChamberlin=Re,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=ze,e.geoCollignon=st,e.geoCollignonRaw=ht,e.geoCraig=xt,e.geoCraigRaw=gt,e.geoCraster=cr,e.geoCrasterRaw=br,e.geoCylindricalEqualArea=ii,e.geoCylindricalEqualAreaRaw=Er,e.geoCylindricalStereographic=kr,e.geoCylindricalStereographicRaw=jr,e.geoEckert1=Ai,e.geoEckert1Raw=Vr,e.geoEckert2=Di,e.geoEckert2Raw=Bi,e.geoEckert3=hn,e.geoEckert3Raw=ln,e.geoEckert4=_i,e.geoEckert4Raw=qr,e.geoEckert5=Rt,e.geoEckert5Raw=zi,e.geoEckert6=qt,e.geoEckert6Raw=_t,e.geoEisenlohr=Lr,e.geoEisenlohrRaw=mr,e.geoFahey=Gr,e.geoFaheyRaw=Fr,e.geoFoucaut=mi,e.geoFoucautRaw=Hr,e.geoFoucautSinusoidal=Vi,e.geoFoucautSinusoidalRaw=Ei,e.geoGilbert=Yr,e.geoGingery=tn,e.geoGingeryRaw=oi,e.geoGinzburg4=xn,e.geoGinzburg4Raw=Ii,e.geoGinzburg5=Xr,e.geoGinzburg5Raw=xi,e.geoGinzburg6=$t,e.geoGinzburg6Raw=dt,e.geoGinzburg8=gr,e.geoGinzburg8Raw=fr,e.geoGinzburg9=wi,e.geoGinzburg9Raw=Zr,e.geoGringorten=Mn,e.geoGringortenRaw=ni,e.geoGuyou=Ia,e.geoGuyouRaw=ka,e.geoHammer=bt,e.geoHammerRaw=je,e.geoHammerRetroazimuthal=kn,e.geoHammerRetroazimuthalRaw=Yo,e.geoHealpix=wa,e.geoHealpixRaw=ls,e.geoHill=Co,e.geoHillRaw=ws,e.geoHomolosine=Sn,e.geoHomolosineRaw=Ha,e.geoHufnagel=Oa,e.geoHufnagelRaw=ao,e.geoHyperelliptical=Sa,e.geoHyperellipticalRaw=Hi,e.geoInterrupt=la,e.geoInterruptedBoggs=As,e.geoInterruptedHomolosine=co,e.geoInterruptedMollweide=No,e.geoInterruptedMollweideHemispheres=Go,e.geoInterruptedSinuMollweide=qs,e.geoInterruptedSinusoidal=Ba,e.geoKavrayskiy7=Vs,e.geoKavrayskiy7Raw=ha,e.geoLagrange=_n,e.geoLagrangeRaw=Ya,e.geoLarrivee=Da,e.geoLarriveeRaw=wo,e.geoLaskowski=sn,e.geoLaskowskiRaw=Xn,e.geoLittrow=Ka,e.geoLittrowRaw=$n,e.geoLoximuthal=Eo,e.geoLoximuthalRaw=qn,e.geoMiller=lo,e.geoMillerRaw=Ja,e.geoModifiedStereographic=_a,e.geoModifiedStereographicRaw=eo,e.geoModifiedStereographicAlaska=to,e.geoModifiedStereographicGs48=yo,e.geoModifiedStereographicGs50=Jo,e.geoModifiedStereographicMiller=Ao,e.geoModifiedStereographicLee=Rn,e.geoMollweide=De,e.geoMollweideRaw=$e,e.geoMtFlatPolarParabolic=Ts,e.geoMtFlatPolarParabolicRaw=Es,e.geoMtFlatPolarQuartic=Wa,e.geoMtFlatPolarQuarticRaw=Ho,e.geoMtFlatPolarSinusoidal=ts,e.geoMtFlatPolarSinusoidalRaw=To,e.geoNaturalEarth2=qa,e.geoNaturalEarth2Raw=Wo,e.geoNellHammer=Oo,e.geoNellHammerRaw=on,e.geoInterruptedQuarticAuthalic=oo,e.geoNicolosi=ea,e.geoNicolosiRaw=za,e.geoPatterson=Vo,e.geoPattersonRaw=gs,e.geoPolyconic=Lo,e.geoPolyconicRaw=Ro,e.geoPolyhedral=Gs,e.geoPolyhedralButterfly=po,e.geoPolyhedralCollignon=qo,e.geoPolyhedralWaterman=zo,e.geoProject=Hs,e.geoGringortenQuincuncial=St,e.geoPeirceQuincuncial=Ut,e.geoPierceQuincuncial=Ut,e.geoQuantize=xr,e.geoQuincuncial=Os,e.geoRectangularPolyconic=Rr,e.geoRectangularPolyconicRaw=dr,e.geoRobinson=ki,e.geoRobinsonRaw=Ti,e.geoSatellite=Li,e.geoSatelliteRaw=Fn,e.geoSinuMollweide=Ps,e.geoSinuMollweideRaw=gn,e.geoSinusoidal=Ve,e.geoSinusoidalRaw=We,e.geoStitch=Vl,e.geoTimes=ns,e.geoTimesRaw=ja,e.geoTwoPointAzimuthal=ll,e.geoTwoPointAzimuthalRaw=cs,e.geoTwoPointAzimuthalUsa=sl,e.geoTwoPointEquidistant=Ml,e.geoTwoPointEquidistantRaw=nl,e.geoTwoPointEquidistantUsa=zl,e.geoVanDerGrinten=Al,e.geoVanDerGrintenRaw=Dl,e.geoVanDerGrinten2=ms,e.geoVanDerGrinten2Raw=Ll,e.geoVanDerGrinten3=Xl,e.geoVanDerGrinten3Raw=Bs,e.geoVanDerGrinten4=Nl,e.geoVanDerGrinten4Raw=Gl,e.geoWagner=q,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=at,e.geoWagner4Raw=Ue,e.geoWagner6=Dt,e.geoWagner6Raw=yt,e.geoWiechel=rr,e.geoWiechelRaw=Qt,e.geoWinkel3=Ur,e.geoWinkel3Raw=Mr,Object.defineProperty(e,"__esModule",{value:!0})})});var aFe=we((p1r,nFe)=>{"use strict";var sd=Jl(),$Z=ei(),I8t=$l(),iS=Math.PI/180,iw=180/Math.PI,eY={cursor:"pointer"},tY={cursor:"auto"};function D8t(e,t){var r=e.projection,n;return t._isScoped?n=R8t:t._isClipped?n=O8t:n=F8t,n(e,r)}nFe.exports=D8t;function rY(e,t){return sd.behavior.zoom().translate(t.translate()).scale(t.scale())}function iY(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,u=s[n],l={},f={};function c(h,d){l[n+"."+h]=$Z.nestedProperty(o,h).get(),I8t.call("_storeDirectGUIEdit",a,s._preGUI,l);var p=$Z.nestedProperty(u,h);p.get()!==d&&(p.set(d),$Z.nestedProperty(o,h).set(d),f[n+"."+h]=d)}r(c),c("projection.scale",t.scale()/e.fitScale),c("fitbounds",!1),i.emit("plotly_relayout",f)}function R8t(e,t){var r=rY(e,t);function n(){sd.select(this).style(eY)}function i(){t.scale(sd.event.scale).translate(sd.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var u=t.invert(e.midPt);s("center.lon",u[0]),s("center.lat",u[1])}function o(){sd.select(this).style(tY),iY(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function F8t(e,t){var r=rY(e,t),n=2,i,a,o,s,u,l,f,c,h;function d(M){return t.invert(M)}function p(M){var A=d(M);if(!A)return!0;var L=t(A);return Math.abs(L[0]-M[0])>n||Math.abs(L[1]-M[1])>n}function y(){sd.select(this).style(eY),i=sd.mouse(this),a=t.rotate(),o=t.translate(),s=a,u=d(i)}function b(){if(l=sd.mouse(this),p(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(sd.event.scale),t.translate([o[0],sd.event.translate[1]]),u?d(l)&&(c=d(l),f=[s[0]+(c[0]-u[0]),a[1],a[2]],t.rotate(f),s=f):(i=l,u=d(i)),h=!0,e.render(!0);var M=t.rotate(),A=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":A[0],"geo.center.lat":A[1],"geo.projection.rotation.lon":-M[0]})}function v(){sd.select(this).style(tY),h&&iY(e,t,C)}function C(M){var A=t.rotate(),L=t.invert(e.midPt);M("projection.rotation.lon",-A[0]),M("center.lon",L[0]),M("center.lat",L[1])}return r.on("zoomstart",y).on("zoom",b).on("zoomend",v),r}function O8t(e,t){var r={r:t.rotate(),k:t.scale()},n=rY(e,t),i=W8t(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){sd.select(this).style(eY);var h=sd.mouse(this),d=t.rotate(),p=d,y=t.translate(),b=B8t(d);s=BF(t,h),o.call(n,"zoom",function(){var v=sd.mouse(this);if(t.scale(r.k=sd.event.scale),!s)h=v,s=BF(t,h);else if(BF(t,v)){t.rotate(d).translate(y);var C=BF(t,v),M=N8t(s,C),A=V8t(q8t(b,M)),L=r.r=U8t(A,s,p);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=p),t.rotate(L),p=L}l(i.of(this,arguments))}),u(i.of(this,arguments))}).on("zoomend",function(){sd.select(this).style(tY),o.call(n,"zoom",null),f(i.of(this,arguments)),iY(e,t,c)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function u(h){a++||h({type:"zoomstart"})}function l(h){h({type:"zoom"})}function f(h){--a||h({type:"zoomend"})}function c(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return sd.rebind(n,i,"on")}function BF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&G8t(r)}function B8t(e){var t=.5*e[0]*iS,r=.5*e[1]*iS,n=.5*e[2]*iS,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),u=Math.sin(n),l=Math.cos(n);return[a*s*l+i*o*u,i*s*l-a*o*u,a*o*l+i*s*u,a*s*u-i*o*l]}function q8t(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],u=t[2],l=t[3];return[r*o-n*s-i*u-a*l,r*s+n*o+i*l-a*u,r*u-n*l+i*o+a*s,r*l+n*u-i*s+a*o]}function N8t(e,t){if(!(!e||!t)){var r=H8t(e,t),n=Math.sqrt(iFe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,iFe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function U8t(e,t,r){var n=QZ(t,2,e[0]);n=QZ(n,1,e[1]),n=QZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],u=n[1],l=n[2],f=Math.atan2(a,i)*iw,c=Math.sqrt(i*i+a*a),h,d;Math.abs(u)>c?(d=(u>0?90:-90)-f,h=0):(d=Math.asin(u/c)*iw-f,h=Math.sqrt(c*c-u*u));var p=180-d-2*f,y=(Math.atan2(l,s)-Math.atan2(o,h))*iw,b=(Math.atan2(l,s)-Math.atan2(o,-h))*iw,v=tFe(r[0],r[1],d,y),C=tFe(r[0],r[1],p,b);return v<=C?[d,y,r[2]]:[p,b,r[2]]}function tFe(e,t,r,n){var i=rFe(r-e),a=rFe(n-t);return Math.sqrt(i*i+a*a)}function rFe(e){return(e%360+540)%360-180}function QZ(e,t,r){var n=r*iS,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),u=Math.sin(n);return i[a]=e[a]*s-e[o]*u,i[o]=e[o]*s+e[a]*u,i}function V8t(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*iw,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*iw,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*iw]}function G8t(e){var t=e[0]*iS,r=e[1]*iS,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function iFe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var l1=Jl(),oY=JZ(),j8t=oY.geoPath,X8t=oY.geoDistance,Z8t=eFe(),Y8t=$l(),vk=ei(),K8t=vk.strTranslate,qF=jl(),pk=Mu(),oFe=Vc(),J8t=Cc(),aY=wu(),sFe=Mm().getAutoRange,nY=xp(),$8t=oh().prepSelect,Q8t=oh().clearOutline,eOt=oh().selectOnClick,tOt=aFe(),hv=fk(),rOt=dx(),uFe=AF(),iOt=FZ().feature;function fFe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var ty=fFe.prototype;cFe.exports=function(t){return new fFe(t)};ty.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var u in hv.layerNameToAdjective)if(u!=="frame"&&a["show"+u]){s=!0;break}for(var l=!1,f=0;f0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),J8t.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var u=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=u.selectAll(".point"),this.dataPoints.text=u.selectAll("text"),this.dataPaths.line=u.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this._render()};ty.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,u=n.lataxis,l=s._ax,f=u._ax,c=this.projection=nOt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},p=o.rotation||{},y=s.range||[],b=u.range||[];if(n.fitbounds){l._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],l.range=sFe(r,l),f.range=sFe(r,f);var v=(l.range[0]+l.range[1])/2,C=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:v,lat:C};else if(n._isClipped){d={lon:v,lat:C},p={lon:v,lat:C,roll:p.roll};var M=o.type,A=hv.lonaxisSpan[M]/2||180,L=hv.lataxisSpan[M]/2||90;y=[v-A,v+A],b=[C-L,C+L]}else d={lon:v,lat:C},p={lon:v,lat:p.lat,roll:p.roll}}c.center([d.lon-p.lon,d.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var x=lFe(y,b);c.fitExtent(h,x);var k=this.bounds=c.getBounds(x),S=this.fitScale=c.scale(),m=c.translate();if(n.fitbounds){var P=c.getBounds(lFe(l.range,f.range)),E=Math.min((k[1][0]-k[0][0])/(P[1][0]-P[0][0]),(k[1][1]-k[0][1])/(P[1][1]-P[0][1]));isFinite(E)?c.scale(E*S):vk.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*S);var O=this.midPt=[(k[0][0]+k[1][0])/2,(k[0][1]+k[1][1])/2];if(c.translate([m[0]+(O[0]-m[0]),m[1]+(O[1]-m[1])]).clipExtent(k),n._isAlbersUsa){var F=c([d.lon,d.lat]),U=c.translate();c.translate([U[0]-(F[0]-U[0]),U[1]-(F[1]-U[1])])}};ty.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!hv.lineLayers[h]}function u(h){return!!hv.fillLayers[h]}var l=this.hasChoropleth?hv.layersForChoropleth:hv.layers,f=l.filter(function(h){return s(h)||u(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),c=r.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete i[h],delete a[h],l1.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=l1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):u(h)&&(a[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=a[h],p=hv.layerNameToAdjective[h];h==="frame"?d.datum(hv.sphereSVG):s(h)||u(h)?d.datum(iOt(n,n.objects[h])):o(h)&&d.datum(aOt(h,t,e)).call(qF.stroke,t[h].gridcolor).call(pk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(qF.stroke,t[p+"color"]).call(pk.dashLine,"",t[p+"width"]):u(h)&&d.call(qF.fill,t[p+"color"])})};ty.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;pk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(pk.setRect,i,a,o,s).call(qF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};ty.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var c=r.viewInitial,h={};for(var d in c)h[r.id+"."+d]=c[d];Y8t.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function u(c){return r.projection.invert([c[0]+r.xaxis._offset,c[1]+r.yaxis._offset])}var l=function(c,h){if(h.isRect){var d=c.range={};d[r.id]=[u([h.xmin,h.ymin]),u([h.xmax,h.ymax])]}else{var p=c.lassoPoints={};p[r.id]=h.map(u)}},f={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:l},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(c){c===2&&Q8t(n)}};a==="pan"?(i.node().onmousedown=null,i.call(tOt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),f.prepFn=function(c,h,d){$8t(c,h,d,f,a)},nY.init(f)),i.on("mousemove",function(){var c=r.projection.invert(vk.getPositionFromD3Event());if(!c)return nY.unhover(n,l1.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},oFe.hover(n,l1.event,r.id)}),i.on("mouseout",function(){n._dragging||nY.unhover(n,l1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&eOt(l1.event,n,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&oFe.click(n,l1.event))})};ty.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=l1.select(e.container).append("g").attr("class","geo "+e.id).call(pk.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},aY.setConvert(e.mockAxis,r)};ty.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},vk.extendFlat(this.viewInitial,i)};ty.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};ty._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?K8t(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function nOt(e){var t=e.projection,r=t.type,n=hv.projNames[r];n="geo"+vk.titleCase(n);for(var i=oY[n]||Z8t[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?hv.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],u=function(c){return c?a:[]},l=0;lp}else return!1},a.getPath=function(){return j8t().projection(a)},a.getBounds=function(c){return a.getPath().bounds(c)},a.precision(hv.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-hv.clipPad),a}function aOt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=hv.scopeDefaults[t.scope],s,u,l;e==="lonaxis"?(s=o.lonaxisRange,u=o.lataxisRange,l=function(C,M){return[C,M]}):e==="lataxis"&&(s=o.lataxisRange,u=o.lonaxisRange,l=function(C,M){return[M,C]});var f={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};aY.setConvert(f,r);var c=aY.calcTicks(f);!t.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),p=0;p0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var sY=we((m1r,vFe)=>{"use strict";var aS=Bh(),oOt=zc().attributes,sOt=Id().dash,nS=fk(),lOt=Sc().overrideAll,dFe=t_(),pFe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:aS.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:sOt},uOt=vFe.exports=lOt({domain:oOt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:dFe(nS.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:dFe(nS.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:aS.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:nS.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:nS.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:nS.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:nS.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:aS.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:aS.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:aS.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:aS.background},lonaxis:pFe,lataxis:pFe},"plot","from-root");uOt.uirevision={valType:"any",editType:"none"}});var gFe=we((y1r,yFe)=>{"use strict";var NF=ei(),fOt=O_(),cOt=Dd().getSubplotData,UF=fk(),hOt=sY(),mFe=UF.axesNames;yFe.exports=function(t,r,n){fOt(t,r,n,{type:"geo",attributes:hOt,handleDefaults:dOt,fullData:n,partition:"y"})};function dOt(e,t,r,n){var i=cOt(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),u=UF.scopeDefaults[s],l=r("projection.type",u.projType),f=t._isAlbersUsa=l==="albers usa";f&&(s=t.scope="usa");var c=t._isScoped=s!=="world",h=t._isSatellite=l==="satellite",d=t._isConic=l.indexOf("conic")!==-1||l==="albers",p=t._isClipped=!!UF.lonaxisSpan[l];if(e.visible===!1){var y=NF.extendDeep({},t._template);y.showcoastlines=!1,y.showcountries=!1,y.showframe=!1,y.showlakes=!1,y.showland=!1,y.showocean=!1,y.showrivers=!1,y.showsubunits=!1,y.lonaxis&&(y.lonaxis.showgrid=!1),y.lataxis&&(y.lataxis.showgrid=!1),t._template=y}for(var b=r("visible"),v,C=0;C0&&F<0&&(F+=360);var U=(O+F)/2,G;if(!f){var j=c?u.projRotate:[U,0,0];G=r("projection.rotation.lon",j[0]),r("projection.rotation.lat",j[1]),r("projection.rotation.roll",j[2]),v=r("showcoastlines",!c&&b),v&&(r("coastlinecolor"),r("coastlinewidth")),v=r("showocean",b?void 0:!1),v&&r("oceancolor")}var W,N;if(f?(W=-96.6,N=38.7):(W=c?U:G,N=(E[0]+E[1])/2),r("center.lon",W),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var H=u.projParallels||[0,60];r("projection.parallels",H)}r("projection.scale"),v=r("showland",b?void 0:!1),v&&r("landcolor"),v=r("showlakes",b?void 0:!1),v&&r("lakecolor"),v=r("showrivers",b?void 0:!1),v&&(r("rivercolor"),r("riverwidth")),v=r("showcountries",c&&s!=="usa"&&b),v&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),c||(v=r("showframe",b),v&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,c?(delete t.center.lon,delete t.center.lat):p?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var lY=we((g1r,bFe)=>{"use strict";var pOt=Dd().getSubplotCalcData,vOt=ei().counterRegex,mOt=hFe(),eg="geo",_Fe=vOt(eg),xFe={};xFe[eg]={valType:"subplotid",dflt:eg,editType:"calc"};function yOt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[eg],i=0;i{"use strict";wFe.exports={attributes:tw(),supplyDefaults:t6e(),colorbar:tp(),formatLabels:n6e(),calc:bF(),calcGeoJSON:KZ().calcGeoJSON,plot:KZ().plot,style:jZ(),styleOnSelect:sv().styleOnSelect,hoverPoints:W6e(),eventData:X6e(),selectPoints:K6e(),moduleType:"trace",name:"scattergeo",basePlotModule:lY(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var SFe=we((x1r,TFe)=>{"use strict";TFe.exports=AFe()});var oS=we((b1r,kFe)=>{"use strict";var{hovertemplateAttrs:xOt,templatefallbackAttrs:bOt}=Ff(),vx=tw(),wOt=nc(),MFe=Gf(),AOt=Bh().defaultLine,px=Su().extendFlat,EFe=vx.marker.line;kFe.exports=px({locations:{valType:"data_array",editType:"calc"},locationmode:vx.locationmode,z:{valType:"data_array",editType:"calc"},geojson:px({},vx.geojson,{}),featureidkey:vx.featureidkey,text:px({},vx.text,{}),hovertext:px({},vx.hovertext,{}),marker:{line:{color:px({},EFe.color,{dflt:AOt}),width:px({},EFe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:vx.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:vx.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:px({},MFe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:xOt(),hovertemplatefallback:bOt(),showlegend:px({},MFe.showlegend,{dflt:!1})},wOt("",{cLetter:"z",editTypeOverride:"calc"}))});var LFe=we((w1r,CFe)=>{"use strict";var mk=ei(),TOt=nd(),SOt=oS(),MOt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");CFe.exports=function(t,r,n,i){function a(h,d){return mk.coerce(t,r,SOt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&mk.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var u=a("geojson"),l;(typeof u=="string"&&u!==""||mk.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&mk.warn(MOt),f==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("marker.line.width");c&&a("marker.line.color"),a("marker.opacity"),TOt(t,r,i,a,{prefix:"",cLetter:"z"}),mk.coerceSelectionMarkerOpacity(r,a)}});var VF=we((A1r,IFe)=>{"use strict";var PFe=ku(),EOt=rf().BADNUM,kOt=gp(),COt=Dy(),LOt=O0();function zFe(e){return e&&typeof e=="string"}IFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(f){return zFe(f)||PFe(f)}:a=zFe;for(var o=0;o{"use strict";var POt=Jl(),zOt=jl(),uY=Mu(),IOt=_c();function DOt(e,t){t&&DFe(e,t)}function DFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=IOt.makeColorScaleFuncFromTrace(r);i.each(function(u){POt.select(this).attr("fill",s(u.z)).call(zOt.stroke,u.mlc||o.color).call(uY.dashLine,"",u.mlw||o.width||0).style("opacity",a.opacity)}),uY.selectedPointStyle(i,r)}function ROt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?uY.selectedPointStyle(r.selectAll(".choroplethlocation"),n):DFe(e,t)}RFe.exports={style:DOt,styleOnSelect:ROt}});var fY=we((S1r,BFe)=>{"use strict";var FOt=Jl(),FFe=ei(),sS=dx(),OOt=AF().getTopojsonFeatures,OFe=Mm().findExtremes,BOt=GF().style;function qOt(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");FFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=FOt.select(this),o=a.selectAll("path.choroplethlocation").data(FFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),BOt(e,i)})}function NOt(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?sS.extractTraceFeature(e):OOt(r,i.topojson),u=[],l=[],f=0;f{"use strict";var UOt=wu(),VOt=oS(),GOt=ei().fillText;qFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,u,l,f,c=[r,n],h=[r+360,n];for(u=0;u")}}});var WF=we((E1r,NFe)=>{"use strict";NFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var jF=we((k1r,UFe)=>{"use strict";UFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u,l,f,c;if(r===!1)for(s=0;s{"use strict";VFe.exports={attributes:oS(),supplyDefaults:LFe(),colorbar:D_(),calc:VF(),calcGeoJSON:fY().calcGeoJSON,plot:fY().plot,style:GF().style,styleOnSelect:GF().styleOnSelect,hoverPoints:HF(),eventData:WF(),selectPoints:jF(),moduleType:"trace",name:"choropleth",basePlotModule:lY(),categories:["geo","noOpacity","showLegend"],meta:{}}});var WFe=we((L1r,HFe)=>{"use strict";HFe.exports=GFe()});var XF=we((P1r,XFe)=>{"use strict";var WOt=$l(),l0=ei(),jOt=gA();function XOt(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,u=e.ya,l=a.x,f=a.y,c=s.c2p(t),h=u.c2p(r),d=e.distance,p;if(a.tree){var y=s.p2c(c-d),b=s.p2c(c+d),v=u.p2c(h-d),C=u.p2c(h+d);n==="x"?p=a.tree.range(Math.min(y,b),Math.min(u._rl[0],u._rl[1]),Math.max(y,b),Math.max(u._rl[0],u._rl[1])):p=a.tree.range(Math.min(y,b),Math.min(v,C),Math.max(y,b),Math.max(v,C))}else p=a.ids;var M,A,L,x,k,S,m,P,E,O=d;if(n==="x"){var F=!!o.xperiodalignment,U=!!o.yperiodalignment;for(k=0;k=Math.min(G,j)&&c<=Math.max(G,j)?0:1/0}if(S=Math.min(W,N)&&h<=Math.max(W,N)?0:1/0}E=Math.sqrt(S*S+m*m),A=p[k]}}}else for(k=p.length-1;k>-1;k--)M=p[k],L=l[M],x=f[M],S=s.c2p(L)-c,m=u.c2p(x)-h,P=Math.sqrt(S*S+m*m),P{"use strict";var ZFe=20;YFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:ZFe,SYMBOL_STROKE:ZFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var yk=we((I1r,QFe)=>{"use strict";var ZOt=Gf(),YOt=gc(),KOt=Pm(),Kc=Zc(),KFe=Xc().axisHoverFormat,JFe=nc(),JOt=t_(),cY=Su().extendFlat,$Ot=Sc().overrideAll,QOt=mx().DASHES,$Fe=Kc.line,u1=Kc.marker,eBt=u1.line,yx=QFe.exports=$Ot({x:Kc.x,x0:Kc.x0,dx:Kc.dx,y:Kc.y,y0:Kc.y0,dy:Kc.dy,xperiod:Kc.xperiod,yperiod:Kc.yperiod,xperiod0:Kc.xperiod0,yperiod0:Kc.yperiod0,xperiodalignment:Kc.xperiodalignment,yperiodalignment:Kc.yperiodalignment,xhoverformat:KFe("x"),yhoverformat:KFe("y"),text:Kc.text,hovertext:Kc.hovertext,textposition:Kc.textposition,textfont:YOt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:$Fe.color,width:$Fe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:JOt(QOt),dflt:"solid"}},marker:cY({},JFe("marker"),{symbol:u1.symbol,angle:u1.angle,size:u1.size,sizeref:u1.sizeref,sizemin:u1.sizemin,sizemode:u1.sizemode,opacity:u1.opacity,colorbar:u1.colorbar,line:cY({},JFe("marker.line"),{width:eBt.width})}),connectgaps:Kc.connectgaps,fill:cY({},Kc.fill,{dflt:"none"}),fillcolor:KOt(),selected:{marker:Kc.selected.marker,textfont:Kc.selected.textfont},unselected:{marker:Kc.unselected.marker,textfont:Kc.unselected.textfont},opacity:ZOt.opacity},"calc","nested");yx.x.editType=yx.y.editType=yx.x0.editType=yx.y0.editType="calc+clearAxisTypes";yx.hovertemplate=Kc.hovertemplate;yx.hovertemplatefallback=Kc.hovertemplatefallback;yx.texttemplate=Kc.texttemplate;yx.texttemplatefallback=Kc.texttemplatefallback});var ZF=we(hY=>{"use strict";var e9e=mx();hY.isOpenSymbol=function(e){return typeof e=="string"?e9e.OPEN_RE.test(e):e%200>100};hY.isDotSymbol=function(e){return typeof e=="string"?e9e.DOT_RE.test(e):e>200}});var i9e=we((R1r,r9e)=>{"use strict";var t9e=ei(),tBt=$l(),rBt=ZF(),iBt=yk(),nBt=Py(),YF=lc(),aBt=lA(),oBt=Dm(),sBt=$v(),lBt=D0(),uBt=Rm(),fBt=R0();r9e.exports=function(t,r,n,i){function a(d,p){return t9e.coerce(t,r,iBt,d,p)}var o=t.marker?rBt.isOpenSymbol(t.marker.symbol):!1,s=YF.isBubble(t),u=aBt(t,r,i,a);if(!u){r.visible=!1;return}oBt(t,r,i,a),a("xhoverformat"),a("yhoverformat");var l=u{"use strict";var cBt=uI();n9e.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),cBt(t,r,n)}});var s9e=we((O1r,o9e)=>{"use strict";function hBt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>=0?(a=o,i=o-1):n=o+1}return a}function dBt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>0?(a=o,i=o-1):n=o+1}return a}function pBt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<0?(a=o,n=o+1):i=o-1}return a}function vBt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<=0?(a=o,n=o+1):i=o-1}return a}function mBt(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function gk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}o9e.exports={ge:function(e,t,r,n,i){return gk(e,t,r,n,i,hBt)},gt:function(e,t,r,n,i){return gk(e,t,r,n,i,dBt)},lt:function(e,t,r,n,i){return gk(e,t,r,n,i,pBt)},le:function(e,t,r,n,i){return gk(e,t,r,n,i,vBt)},eq:function(e,t,r,n,i){return gk(e,t,r,n,i,mBt)}}});var tg=we((B1r,u9e)=>{"use strict";u9e.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=l9e(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var yBt=tg();f9e.exports=gBt;function gBt(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=yBt(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var nw=we((N1r,c9e)=>{"use strict";c9e.exports=_Bt;function _Bt(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{h9e.exports=function(){for(var e=0;e{var p9e=tF();v9e.exports=xBt;function xBt(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,u;(!t||typeof t=="string")&&(t=new(p9e(t||"float32"))(i+r));var l=t.length-r;if(i!==l)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+l);for(a=0,s=r;a{"use strict";m9e.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var _9e=we((H1r,g9e)=>{"use strict";g9e.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var M9e=we((W1r,S9e)=>{"use strict";var x9e=s9e(),b9e=ik(),bBt=lS(),wBt=nw(),w9e=tg(),pY=d9e(),ABt=aw(),TBt=y9e(),SBt=tF(),A9e=_9e(),MBt=1073741824;S9e.exports=function(t,r){r||(r={}),t=ABt(t,"float64"),r=w9e(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=pY(r.maxDepth,255),i=pY(r.bounds,wBt(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=T9e(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(SBt(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let v=0;vn||x>MBt){for(let N=0;Nme||m>Le||P=O||re===ae)return;let Ce=u[H];ae===void 0&&(ae=Ce.length);for(let Be=re;Be=A&&je<=x&&rt>=L&&rt<=k&&F.push(ce)}let de=l[H],te=de[re*4+0],Se=de[re*4+1],Te=de[re*4+2],be=de[re*4+3],He=G(de,re+1),Ie=N*.5,ge=H+1;U(j,W,Ie,ge,te,Se||Te||be||He),U(j,W+Ie,Ie,ge,Se,Te||be||He),U(j+Ie,W,Ie,ge,Te,be||He),U(j+Ie,W+Ie,Ie,ge,be,He)}function G(j,W){let N=null,H=0;for(;N===null;)if(N=j[W*4+H],H++,H>j.length)return null;return N}return F}function y(v,C,M,A,L){let x=[];for(let k=0;k{"use strict";E9e.exports=M9e()});var vY=we((X1r,k9e)=>{k9e.exports=EBt;function EBt(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var u=1;u{"use strict";Object.defineProperty(JF,"__esModule",{value:!0});var kBt=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_k=Math.PI*2,mY=function(t,r,n,i,a,o,s){var u=t.x,l=t.y;u*=r,l*=n;var f=i*u-a*l,c=a*u+i*l;return{x:f+o,y:c+s}},CBt=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},C9e=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},LBt=function(t,r,n,i,a,o,s,u,l,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),y=Math.pow(c,2),b=Math.pow(h,2),v=d*p-d*b-p*y;v<0&&(v=0),v/=d*b+p*y,v=Math.sqrt(v)*(s===u?-1:1);var C=v*a/o*h,M=v*-o/a*c,A=f*C-l*M+(t+n)/2,L=l*C+f*M+(r+i)/2,x=(c-C)/a,k=(h-M)/o,S=(-c-C)/a,m=(-h-M)/o,P=C9e(1,0,x,k),E=C9e(x,k,S,m);return u===0&&E>0&&(E-=_k),u===1&&E<0&&(E+=_k),[A,L,P,E]},PBt=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,u=t.xAxisRotation,l=u===void 0?0:u,f=t.largeArcFlag,c=f===void 0?0:f,h=t.sweepFlag,d=h===void 0?0:h,p=[];if(o===0||s===0)return[];var y=Math.sin(l*_k/360),b=Math.cos(l*_k/360),v=b*(r-i)/2+y*(n-a)/2,C=-y*(r-i)/2+b*(n-a)/2;if(v===0&&C===0)return[];o=Math.abs(o),s=Math.abs(s);var M=Math.pow(v,2)/Math.pow(o,2)+Math.pow(C,2)/Math.pow(s,2);M>1&&(o*=Math.sqrt(M),s*=Math.sqrt(M));var A=LBt(r,n,i,a,o,s,c,d,y,b,v,C),L=kBt(A,4),x=L[0],k=L[1],S=L[2],m=L[3],P=Math.abs(m)/(_k/4);Math.abs(1-P)<1e-7&&(P=1);var E=Math.max(Math.ceil(P),1);m/=E;for(var O=0;O{"use strict";I9e.exports=IBt;var zBt=P9e();function IBt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function $F(e,t,r,n){return["C",e,t,r,n,r,n]}function z9e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var yY=we((Y1r,R9e)=>{"use strict";R9e.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var B9e=we((K1r,O9e)=>{"use strict";var DBt=a5(),RBt=vY(),FBt=D9e(),OBt=yY(),F9e=y4();O9e.exports=BBt;function BBt(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(F9e(OBt(e),"String is not an SVG path."),e=DBt(e)),F9e(Array.isArray(e),"Argument should be a string or an array of path segments."),e=RBt(e),e=FBt(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var H9e=we((J1r,G9e)=>{var ow=Math.PI,q9e=V9e(120);G9e.exports=qBt;function qBt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var y=l,b=f;(t=="C"||t=="S")&&(y+=y-n,b+=b-i),d=["C",y,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=l*2-s,u=f*2-u):(s=l,u=f),d=N9e(l,f,s,u,d[1],d[2]);break;case"Q":s=d[1],u=d[2],d=N9e(l,f,d[1],d[2],d[3],d[4]);break;case"L":d=QF(l,f,d[1],d[2]);break;case"H":d=QF(l,f,d[1],f);break;case"V":d=QF(l,f,l,d[1]);break;case"Z":d=QF(l,f,a,o);break}t=p,l=d[d.length-2],f=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function QF(e,t,r,n){return["C",e,t,r,n,r,n]}function N9e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function U9e(e,t,r,n,i,a,o,s,u,l){if(l)M=l[0],A=l[1],v=l[2],C=l[3];else{var f=gY(e,t,-i);e=f.x,t=f.y,f=gY(s,u,-i),s=f.x,u=f.y;var c=(e-s)/2,h=(t-u)/2,d=c*c/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var p=r*r,y=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((p*y-p*h*h-y*c*c)/(p*h*h+y*c*c)));b==1/0&&(b=1);var v=b*r*h/n+(e+s)/2,C=b*-n*c/r+(t+u)/2,M=Math.asin(((t-C)/n).toFixed(9)),A=Math.asin(((u-C)/n).toFixed(9));M=eA&&(M=M-ow*2),!o&&A>M&&(A=A-ow*2)}if(Math.abs(A-M)>q9e){var L=A,x=s,k=u;A=M+q9e*(o&&A>M?1:-1),s=v+r*Math.cos(A),u=C+n*Math.sin(A);var S=U9e(s,u,r,n,i,0,o,x,k,[A,L,v,C])}var m=Math.tan((A-M)/4),P=4/3*r*m,E=4/3*n*m,O=[2*e-(e+P*Math.sin(M)),2*t-(t-E*Math.cos(M)),s+P*Math.sin(A),u-E*Math.cos(A),s,u];if(l)return O;S&&(O=O.concat(S));for(var F=0;F{var NBt=vY(),UBt=H9e(),VBt={M:"moveTo",C:"bezierCurveTo"};W9e.exports=function(e,t){e.beginPath(),UBt(NBt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[VBt[n]].apply(e,i)}),e.closePath()}});var K9e=we((Q1r,Y9e)=>{"use strict";var GBt=ik();Y9e.exports=HBt;var xk=1e20;function HBt(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,u,l,f,c,h,d,p,y;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,u=e,t.stride?f=t.stride:f=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,c=h.getContext("2d"),a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,c=e,a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,u=d.data,f=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(l=u,u=Array(a*o),p=0,y=l.length;p{"use strict";var WBt=B9e(),jBt=a5(),XBt=j9e(),ZBt=yY(),YBt=K9e(),_Y=document.createElement("canvas"),dv=_Y.getContext("2d");J9e.exports=KBt;function KBt(e,t){if(!ZBt(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=_Y.width=t.w||t.width||200,n=_Y.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||WBt(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],u=Math.min(s[0]||0,s[1]||0)/2;if(dv.fillStyle="black",dv.fillRect(0,0,r,n),dv.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?dv.strokeStyle="white":dv.strokeStyle="black",dv.lineWidth=Math.abs(a)),dv.translate(r*.5,n*.5),dv.scale(u,u),JBt()){var l=new Path2D(e);dv.fill(l),a&&dv.stroke(l)}else{var f=jBt(e);XBt(dv,f),dv.fill(),a&&dv.stroke()}dv.setTransform(1,0,0,1,0,0);var c=YBt(dv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return c}var e9;function JBt(){if(e9!=null)return e9;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return e9=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return e9=r&&r.data&&r.data[3]===255}});var lw=we((t_r,u8e)=>{"use strict";var r9=ku(),$Bt=$9e(),t9=sx(),QBt=$l(),cS=ei(),Lh=cS.isArrayOrTypedArray,uS=Mu(),Q9e=jc(),e8e=a1().formatColor,fS=lc(),eqt=q3(),bY=ZF(),bk=mx(),tqt=X1().DESELECTDIM,t8e={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},rqt=iv().appendArrayPointValue;function iqt(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(fS.hasText(t)&&(n.text=l8e(e,t),n.textSel=i8e(e,t,t.selected),n.textUnsel=i8e(e,t,t.unselected)),fS.hasMarkers(t)&&(n.marker=AY(e,t),n.markerSel=wY(e,t,t.selected),n.markerUnsel=wY(e,t,t.unselected),!t.unselected&&Lh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function AY(e,t){var r=t._length,n=t.marker,i={},a,o=Lh(n.symbol),s=Lh(n.angle),u=Lh(n.color),l=Lh(n.line.color),f=Lh(n.opacity),c=Lh(n.size),h=Lh(n.line.width),d;if(o||(d=bY.isOpenSymbol(n.symbol)),o||u||l||f||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var p=n.symbol,y=n.angle,b=e8e(n,n.opacity,r),v=e8e(n.line,n.opacity,r);if(!Lh(v[0])){var C=v;for(v=Array(r),a=0;abk.TOO_MANY_POINTS||fS.hasMarkers(t)?"rect":"round";if(l&&t.connectgaps){var c=a[0],h=a[1];for(o=0;o1?u[o]:u[0]:u,d=Lh(l)?l.length>1?l[o]:l[0]:l,p=t8e[h],y=t8e[d],b=f?f/.8+1:0,v=-y*b-y*.5;a.offset[o]=[p*b/c,v/c]}}return a}u8e.exports={style:iqt,markerStyle:AY,markerSelection:wY,linePositions:aqt,errorBarPositions:oqt,textPosition:sqt}});var TY=we((r_r,f8e)=>{"use strict";var i9=ei();f8e.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){i9.extendFlat(n,a,i)},n.init(),n.update=function(s){var u=i9.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(u),n.scatter2d&&n.scatter2d.update(u),n.line2d&&n.line2d.update(u),n.error2d&&n.error2d.update(u.concat(u)),n.select2d&&n.select2d.update(u),n.glText)for(var l=0;l{"use strict";var lqt=KF(),hS=ei(),c8e=jc(),uqt=Mm().findExtremes,h8e=Fm(),SY=B0(),fqt=SY.calcMarkerSize,cqt=SY.calcAxisExpansion,hqt=SY.setFirstScatter,dqt=F0(),dS=lw(),pqt=TY(),d8e=rf().BADNUM,vqt=mx().TOO_MANY_POINTS;v8e.exports=function(t,r){var n=t._fullLayout,i=r._xA=c8e.getFromId(t,r.xaxis,"x"),a=r._yA=c8e.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,u=s>=vqt,l=s*2,f={},c,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=h8e(r,i,"x",h),y=h8e(r,a,"y",d),b=p.vals,v=y.vals;r._x=b,r._y=v,r.xperiodalignment&&(r._origX=h,r._xStarts=p.starts,r._xEnds=p.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=y.starts,r._yEnds=y.ends);var C=new Array(l),M=new Array(s);for(c=0;c1&&hS.extendFlat(o.line,dS.linePositions(e,r,n)),o.errorX||o.errorY){var s=dS.errorBarPositions(e,r,n,i,a);o.errorX&&hS.extendFlat(o.errorX,s.x),o.errorY&&hS.extendFlat(o.errorY,s.y)}return o.text&&(hS.extendFlat(o.text,{positions:n},dS.textPosition(e,r,o.text,o.marker)),hS.extendFlat(o.textSel,{positions:n},dS.textPosition(e,r,o.text,o.markerSel)),hS.extendFlat(o.textUnsel,{positions:n},dS.textPosition(e,r,o.text,o.markerUnsel))),o}});var MY=we((n_r,g8e)=>{"use strict";var y8e=ei(),yqt=jl(),gqt=X1().DESELECTDIM;function _qt(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],u=i.textOptions[a],l=i.textSelectedOptions[a]||{},f=i.textUnselectedOptions[a]||{},c=y8e.extendFlat({},u),h,d;if(o.length||s.length){var p=l.color,y=f.color,b=u.color,v=y8e.isArrayOrTypedArray(b);for(c.color=new Array(r._length),h=0;h{"use strict";var _8e=lc(),xqt=MY().styleTextSelection;x8e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u=n[0].t,l=s._length,f=u.x,c=u.y,h=u._scene,d=u.index;if(!h)return o;var p=_8e.hasText(s),y=_8e.hasMarkers(s),b=!y&&!p;if(s.visible!==!0||b)return o;var v=[],C=[];if(r!==!1&&!r.degenerate)for(var M=0;M{"use strict";var bqt=XF();b8e.exports={moduleType:"trace",name:"scattergl",basePlotModule:Mh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:yk(),supplyDefaults:i9e(),crossTraceDefaults:wU(),colorbar:tp(),formatLabels:a9e(),calc:m8e(),hoverPoints:bqt.hoverPoints,selectPoints:EY(),meta:{}}});var T8e=we((s_r,a9)=>{"use strict";var n9=ik();a9.exports=A8e;a9.exports.to=A8e;a9.exports.from=wqt;function A8e(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=n9(r,0,255)&255,n=n9(n,0,255)&255,i=n9(i,0,255)&255,a=n9(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function wqt(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var jh=we((l_r,M8e)=>{"use strict";var S8e=Object.getOwnPropertySymbols,Aqt=Object.prototype.hasOwnProperty,Tqt=Object.prototype.propertyIsEnumerable;function Sqt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Mqt(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}M8e.exports=Mqt()?Object.assign:function(e,t){for(var r,n=Sqt(e),i,a=1;a{E8e.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";C8e.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";L8e.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var o9=we((h_r,pS)=>{"use strict";pS.exports=wk;pS.exports.float32=pS.exports.float=wk;pS.exports.fract32=pS.exports.fract=Eqt;var z8e=new Float32Array(1);function Eqt(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=wk(e));for(var r=0,n=t.length;r{"use strict";function kqt(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Cqt(e,t){return zqt(e)||kqt(e,t)||D8e(e,t)||Rqt()}function Lqt(e){return Pqt(e)||Iqt(e)||D8e(e)||Dqt()}function Pqt(e){if(Array.isArray(e))return CY(e)}function zqt(e){if(Array.isArray(e))return e}function Iqt(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function D8e(e,t){if(e){if(typeof e=="string")return CY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CY(e,t)}}function CY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rIe&&Be>0){var ce=(ge[Be][0]-Ie)/(ge[Be][0]-ge[Be-1][0]);return ge[Be][1]*(1-ce)+ce*ge[Be-1][1]}}return 1}var H=[0,0,0],re={showSurface:!1,showContour:!1,projections:[M.slice(),M.slice(),M.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(Ie,ge){var Be,ce,je,rt=ge.axes&&ge.axes.lastCubeProps.axis||H,bt=ge.showSurface,Ot=ge.showContour;for(Be=0;Be<3;++Be)for(bt=bt||ge.surfaceProject[Be],ce=0;ce<3;++ce)Ot=Ot||ge.contourProject[Be][ce];for(Be=0;Be<3;++Be){var it=re.projections[Be];for(ce=0;ce<16;++ce)it[ce]=0;for(ce=0;ce<4;++ce)it[5*ce]=1;it[5*Be]=0,it[12+Be]=ge.axesBounds[+(rt[Be]>0)][Be],v(it,Ie.model,it);var Ke=re.clipBounds[Be];for(je=0;je<2;++je)for(ce=0;ce<3;++ce)Ke[je][ce]=Ie.clipBounds[je][ce];Ke[0][Be]=-1e8,Ke[1][Be]=1e8}return re.showSurface=bt,re.showContour=Ot,re}var me={model:M,view:M,projection:M,inverseModel:M.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Ce=M.slice(),Ee=[1,0,0,0,1,0,0,0,1];function de(Ie,ge){Ie=Ie||{};var Be=this.gl;Be.disable(Be.CULL_FACE),this._colorMap.bind(0);var ce=me;ce.model=Ie.model||M,ce.view=Ie.view||M,ce.projection=Ie.projection||M,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=C(ce.inverseModel,ce.model);for(var je=0;je<2;++je)for(var rt=ce.clipBounds[je],bt=0;bt<3;++bt)rt[bt]=Math.min(Math.max(this.clipBounds[je][bt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=Ee,ce.vertexColor=this.vertexColor;var Ot=Ce;for(v(Ot,ce.view,ce.model),v(Ot,ce.projection,Ot),C(Ot,Ot),je=0;je<3;++je)ce.eyePosition[je]=Ot[12+je]/Ot[15];var it=Ot[15];for(je=0;je<3;++je)it+=this.lightPosition[je]*Ot[4*je+3];for(je=0;je<3;++je){var Ke=Ot[12+je];for(bt=0;bt<3;++bt)Ke+=Ot[4*bt+je]*this.lightPosition[bt];ce.lightPosition[je]=Ke/it}var zt=ae(ce,this);if(zt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Be.TRIANGLES,this._vertexCount),je=0;je<3;++je)!this.surfaceProject[je]||!this.vertexCount||(this._shader.uniforms.model=zt.projections[je],this._shader.uniforms.clipBounds=zt.clipBounds[je],this._vao.draw(Be.TRIANGLES,this._vertexCount));this._vao.unbind()}if(zt.showContour){var Mt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Mt.bind(),Mt.uniforms=ce;var kt=this._contourVAO;for(kt.bind(),je=0;je<3;++je)for(Mt.uniforms.permutation=F[je],Be.lineWidth(this.contourWidth[je]*this.pixelRatio),bt=0;bt>4)/16)/255,je=Math.floor(ce),rt=ce-je,bt=ge[1]*(Ie.value[1]+(Ie.value[2]&15)/16)/255,Ot=Math.floor(bt),it=bt-Ot;je+=1,Ot+=1;var Ke=Be.position;Ke[0]=Ke[1]=Ke[2]=0;for(var zt=0;zt<2;++zt)for(var Mt=zt?rt:1-rt,kt=0;kt<2;++kt)for(var $e=kt?it:1-it,Re=je+zt,Me=Ot+kt,oe=Mt*$e,Ne=0;Ne<3;++Ne)Ke[Ne]+=this._field[Ne].get(Re,Me)*oe;for(var vt=this._pickResult.level,lt=0;lt<3;++lt)if(vt[lt]=E.le(this.contourLevels[lt],Ke[lt]),vt[lt]<0)this.contourLevels[lt].length>0&&(vt[lt]=0);else if(vt[lt]Math.abs(Ve-Ke[lt])&&(vt[lt]+=1)}for(Be.index[0]=rt<.5?je:je+1,Be.index[1]=it<.5?Ot:Ot+1,Be.uv[0]=ce/ge[0],Be.uv[1]=bt/ge[1],Ne=0;Ne<3;++Ne)Be.dataCoordinate[Ne]=this._field[Ne].get(Be.index[0],Be.index[1]);return Be},W.padField=function(Ie,ge){var Be=ge.shape.slice(),ce=Ie.shape.slice();d.assign(Ie.lo(1,1).hi(Be[0],Be[1]),ge),d.assign(Ie.lo(1).hi(Be[0],1),ge.hi(Be[0],1)),d.assign(Ie.lo(1,ce[1]-1).hi(Be[0],1),ge.lo(0,Be[1]-1).hi(Be[0],1)),d.assign(Ie.lo(0,1).hi(1,Be[1]),ge.hi(1)),d.assign(Ie.lo(ce[0]-1,1).hi(1,Be[1]),ge.lo(Be[0]-1)),Ie.set(0,0,ge.get(0,0)),Ie.set(0,ce[1]-1,ge.get(0,Be[1]-1)),Ie.set(ce[0]-1,0,ge.get(Be[0]-1,0)),Ie.set(ce[0]-1,ce[1]-1,ge.get(Be[0]-1,Be[1]-1))};function Se(Ie,ge){return Array.isArray(Ie)?[ge(Ie[0]),ge(Ie[1]),ge(Ie[2])]:[ge(Ie),ge(Ie),ge(Ie)]}function Te(Ie){return Array.isArray(Ie)?Ie.length===3?[Ie[0],Ie[1],Ie[2],1]:[Ie[0],Ie[1],Ie[2],Ie[3]]:[0,0,0,1]}function be(Ie){if(Array.isArray(Ie)){if(Array.isArray(Ie))return[Te(Ie[0]),Te(Ie[1]),Te(Ie[2])];var ge=Te(Ie);return[ge.slice(),ge.slice(),ge.slice()]}}W.update=function(Ie){Ie=Ie||{},this.objectOffset=Ie.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Ie&&(this.contourWidth=Se(Ie.contourWidth,Number)),"showContour"in Ie&&(this.showContour=Se(Ie.showContour,Boolean)),"showSurface"in Ie&&(this.showSurface=!!Ie.showSurface),"contourTint"in Ie&&(this.contourTint=Se(Ie.contourTint,Boolean)),"contourColor"in Ie&&(this.contourColor=be(Ie.contourColor)),"contourProject"in Ie&&(this.contourProject=Se(Ie.contourProject,function(Vi){return Se(Vi,Boolean)})),"surfaceProject"in Ie&&(this.surfaceProject=Ie.surfaceProject),"dynamicColor"in Ie&&(this.dynamicColor=be(Ie.dynamicColor)),"dynamicTint"in Ie&&(this.dynamicTint=Se(Ie.dynamicTint,Number)),"dynamicWidth"in Ie&&(this.dynamicWidth=Se(Ie.dynamicWidth,Number)),"opacity"in Ie&&(this.opacity=Ie.opacity),"opacityscale"in Ie&&(this.opacityscale=Ie.opacityscale),"colorBounds"in Ie&&(this.colorBounds=Ie.colorBounds),"vertexColor"in Ie&&(this.vertexColor=Ie.vertexColor?1:0),"colormap"in Ie&&this._colorMap.setPixels(this.genColormap(Ie.colormap,this.opacityscale));var ge=Ie.field||Ie.coords&&Ie.coords[2]||null,Be=!1;if(ge||(this._field[2].shape[0]||this._field[2].shape[2]?ge=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ge=this._field[2].hi(0,0)),"field"in Ie||"coords"in Ie){var ce=(ge.shape[0]+2)*(ge.shape[1]+2);ce>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(s.nextPow2(ce))),this._field[2]=y(this._field[2].data,[ge.shape[0]+2,ge.shape[1]+2]),this.padField(this._field[2],ge),this.shape=ge.shape.slice();for(var je=this.shape,rt=0;rt<2;++rt)this._field[2].size>this._field[rt].data.length&&(c.freeFloat(this._field[rt].data),this._field[rt].data=c.mallocFloat(this._field[2].size)),this._field[rt]=y(this._field[rt].data,[je[0]+2,je[1]+2]);if(Ie.coords){var bt=Ie.coords;if(!Array.isArray(bt)||bt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(rt=0;rt<2;++rt){var Ot=bt[rt];for(kt=0;kt<2;++kt)if(Ot.shape[kt]!==je[kt])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[rt],Ot)}}else if(Ie.ticks){var it=Ie.ticks;if(!Array.isArray(it)||it.length!==2)throw new Error("gl-surface: invalid ticks");for(rt=0;rt<2;++rt){var Ke=it[rt];if((Array.isArray(Ke)||Ke.length)&&(Ke=y(Ke)),Ke.shape[0]!==je[rt])throw new Error("gl-surface: invalid tick length");var zt=y(Ke.data,je);zt.stride[rt]=Ke.stride[0],zt.stride[rt^1]=0,this.padField(this._field[rt],zt)}}else{for(rt=0;rt<2;++rt){var Mt=[0,0];Mt[rt]=1,this._field[rt]=y(this._field[rt].data,[je[0]+2,je[1]+2],Mt,0)}this._field[0].set(0,0,0);for(var kt=0;kt0){for(var mi=0;mi<5;++mi)jr.pop();ze-=1}continue e}}}Bi.push(ze)}this._contourOffsets[kr]=Ai,this._contourCounts[kr]=Bi}var Ei=c.mallocFloat(jr.length);for(rt=0;rtU||O<0||O>U)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[M,O],P.bind(),F.texImage2D(F.TEXTURE_2D,0,P.format,M,O,0,P.format,P.type,null),P._mipLevels=[0],P}function v(P,M,O,F,U,G){this.gl=P,this.handle=M,this.format=U,this.type=G,this._shape=[O,F],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,W=[this._wrapS,this._wrapT];Object.defineProperties(W,[{get:function(){return j._wrapS},set:function(H){return j.wrapS=H}},{get:function(){return j._wrapT},set:function(H){return j.wrapT=H}}]),this._wrapVector=W;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return j._shape[0]},set:function(H){return j.width=H}},{get:function(){return j._shape[1]},set:function(H){return j.height=H}}]),this._shapeVector=N}var C=v.prototype;Object.defineProperties(C,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var M=this.gl;if(this.type===M.FLOAT&&f.indexOf(P)>=0&&(M.getExtension("OES_texture_float_linear")||(P=M.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var M=this.gl;if(this.type===M.FLOAT&&f.indexOf(P)>=0&&(M.getExtension("OES_texture_float_linear")||(P=M.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var M=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,M!==this._anisoSamples){var O=this.gl.getExtension("EXT_texture_filter_anisotropic");O&&this.gl.texParameterf(this.gl.TEXTURE_2D,O.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var M=0;M<2;++M)if(h.indexOf(P[M])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var O=this.gl;return this.bind(),O.texParameteri(O.TEXTURE_2D,O.TEXTURE_WRAP_S,this._wrapS),O.texParameteri(O.TEXTURE_2D,O.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),C.bind=function(P){var M=this.gl;return P!==void 0&&M.activeTexture(M.TEXTURE0+(P|0)),M.bindTexture(M.TEXTURE_2D,this.handle),P!==void 0?P|0:M.getParameter(M.ACTIVE_TEXTURE)-M.TEXTURE0},C.dispose=function(){this.gl.deleteTexture(this.handle)},C.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),M=0;P>0;++M,P>>>=1)this._mipLevels.indexOf(M)<0&&this._mipLevels.push(M)},C.setPixels=function(P,M,O,F){var U=this.gl;this.bind(),Array.isArray(M)?(F=O,O=M[1]|0,M=M[0]|0):(M=M||0,O=O||0),F=F||0;var G=p(P)?P:P.raw;if(G){var j=this._mipLevels.indexOf(F)<0;j?(U.texImage2D(U.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(F)):U.texSubImage2D(U.TEXTURE_2D,F,M,O,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||M+P.shape[1]>this._shape[1]>>>F||O+P.shape[0]>this._shape[0]>>>F||M<0||O<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(U,M,O,F,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,M){return P.length===3?M[2]===1&&M[1]===P[0]*P[2]&&M[0]===P[2]:M[0]===1&&M[1]===P[0]}function A(P,M,O,F,U,G,j,W){var N=W.dtype,H=W.shape.slice();if(H.length<2||H.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,ae=0,me=E(H,W.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,me=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,me=!1,N="uint8");var Ce=1;if(H.length===2)ae=P.LUMINANCE,H=[H[0],H[1],1],W=s(W.data,H,[W.stride[0],W.stride[1],1],W.offset);else if(H.length===3){if(H[2]===1)ae=P.ALPHA;else if(H[2]===2)ae=P.LUMINANCE_ALPHA;else if(H[2]===3)ae=P.RGB;else if(H[2]===4)ae=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Ce=H[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((ae===P.LUMINANCE||ae===P.ALPHA)&&(U===P.LUMINANCE||U===P.ALPHA)&&(ae=U),ae!==U)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Ee=W.size,de=j.indexOf(F)<0;if(de&&j.push(F),re===G&&me)W.offset===0&&W.data.length===Ee?de?P.texImage2D(P.TEXTURE_2D,F,U,H[0],H[1],0,U,G,W.data):P.texSubImage2D(P.TEXTURE_2D,F,M,O,H[0],H[1],U,G,W.data):de?P.texImage2D(P.TEXTURE_2D,F,U,H[0],H[1],0,U,G,W.data.subarray(W.offset,W.offset+Ee)):P.texSubImage2D(P.TEXTURE_2D,F,M,O,H[0],H[1],U,G,W.data.subarray(W.offset,W.offset+Ee));else{var te;G===P.FLOAT?te=l.mallocFloat32(Ee):te=l.mallocUint8(Ee);var Se=s(te,H,[H[2],H[2]*H[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?y(Se,W):u.assign(Se,W),de?P.texImage2D(P.TEXTURE_2D,F,U,H[0],H[1],0,U,G,te.subarray(0,Ee)):P.texSubImage2D(P.TEXTURE_2D,F,M,O,H[0],H[1],U,G,te.subarray(0,Ee)),G===P.FLOAT?l.freeFloat32(te):l.freeUint8(te)}}function L(P){var M=P.createTexture();return P.bindTexture(P.TEXTURE_2D,M),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),M}function x(P,M,O,F,U){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(M<0||M>G||O<0||O>G)throw new Error("gl-texture2d: Invalid texture shape");if(U===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,F,M,O,0,F,U,null),new v(P,j,M,O,F,U)}function k(P,M,O,F,U,G){var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,U,U,G,M),new v(P,j,O,F,U,G)}function S(P,M){var O=M.dtype,F=M.shape.slice(),U=P.getParameter(P.MAX_TEXTURE_SIZE);if(F[0]<0||F[0]>U||F[1]<0||F[1]>U)throw new Error("gl-texture2d: Invalid texture size");var G=E(F,M.stride.slice()),j=0;O==="float32"?j=P.FLOAT:O==="float64"?(j=P.FLOAT,G=!1,O="float32"):O==="uint8"?j=P.UNSIGNED_BYTE:(j=P.UNSIGNED_BYTE,G=!1,O="uint8");var W=0;if(F.length===2)W=P.LUMINANCE,F=[F[0],F[1],1],M=s(M.data,F,[M.stride[0],M.stride[1],1],M.offset);else if(F.length===3)if(F[2]===1)W=P.ALPHA;else if(F[2]===2)W=P.LUMINANCE_ALPHA;else if(F[2]===3)W=P.RGB;else if(F[2]===4)W=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");j===P.FLOAT&&!P.getExtension("OES_texture_float")&&(j=P.UNSIGNED_BYTE,G=!1);var N,H,re=M.size;if(G)M.offset===0&&M.data.length===re?N=M.data:N=M.data.subarray(M.offset,M.offset+re);else{var ae=[F[2],F[2]*F[0],1];H=l.malloc(re,O);var me=s(H,F,ae,0);(O==="float32"||O==="float64")&&j===P.UNSIGNED_BYTE?y(me,M):u.assign(me,M),N=H.subarray(0,re)}var Ce=L(P);return P.texImage2D(P.TEXTURE_2D,0,W,F[0],F[1],0,W,j,N),G||l.free(H),new v(P,Ce,F[0],F[1],W,j)}function m(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||d(P),typeof arguments[1]=="number")return x(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var M=arguments[1],O=p(M)?M:M.raw;if(O)return k(P,O,M.width|0,M.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(M.shape&&M.data&&M.stride)return S(P,M)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}}),1433:(function(i){"use strict";function a(o,s,u){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var l=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>l)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(y)}}),9226:(function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}}),3126:(function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}}),3990:(function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}}),1091:(function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}}),5911:(function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2];return o[0]=f*p-c*d,o[1]=c*h-l*p,o[2]=l*d-f*h,o}}),5455:(function(i,a,o){i.exports=o(7056)}),7056:(function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return Math.sqrt(u*u+l*l+f*f)}}),4008:(function(i,a,o){i.exports=o(6690)}),6690:(function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o}}),244:(function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}}),2613:(function(i){i.exports=1e-6}),9922:(function(i,a,o){i.exports=u;var s=o(2613);function u(l,f){var c=l[0],h=l[1],d=l[2],p=f[0],y=f[1],b=f[2];return Math.abs(c-p)<=s*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-y)<=s*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}}),9265:(function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}}),2681:(function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}}),5137:(function(i,a,o){i.exports=u;var s=o(1091)();function u(l,f,c,h,d,p){var y,b;for(f||(f=3),c||(c=0),h?b=Math.min(h*f+c,l.length):b=l.length,y=c;y0&&(c=1/Math.sqrt(c),o[0]=s[0]*c,o[1]=s[1]*c,o[2]=s[2]*c),o}}),7636:(function(i){i.exports=a;function a(o,s){s=s||1;var u=Math.random()*2*Math.PI,l=Math.random()*2-1,f=Math.sqrt(1-l*l)*s;return o[0]=Math.cos(u)*f,o[1]=Math.sin(u)*f,o[2]=l*s,o}}),6894:(function(i){i.exports=a;function a(o,s,u,l){var f=u[1],c=u[2],h=s[1]-f,d=s[2]-c,p=Math.sin(l),y=Math.cos(l);return o[0]=s[0],o[1]=f+h*y-d*p,o[2]=c+h*p+d*y,o}}),109:(function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[2],h=s[0]-f,d=s[2]-c,p=Math.sin(l),y=Math.cos(l);return o[0]=f+d*p+h*y,o[1]=s[1],o[2]=c+d*y-h*p,o}}),8692:(function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[1],h=s[0]-f,d=s[1]-c,p=Math.sin(l),y=Math.cos(l);return o[0]=f+h*y-d*p,o[1]=c+h*p+d*y,o[2]=s[2],o}}),2447:(function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}}),6621:(function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o}}),8489:(function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o}}),1463:(function(i){i.exports=a;function a(o,s,u,l){return o[0]=s,o[1]=u,o[2]=l,o}}),6141:(function(i,a,o){i.exports=o(2953)}),5486:(function(i,a,o){i.exports=o(3066)}),2953:(function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return u*u+l*l+f*f}}),3066:(function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2];return s*s+u*u+l*l}}),2229:(function(i,a,o){i.exports=o(6843)}),6843:(function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o}}),492:(function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2];return o[0]=l*u[0]+f*u[3]+c*u[6],o[1]=l*u[1]+f*u[4]+c*u[7],o[2]=l*u[2]+f*u[5]+c*u[8],o}}),5673:(function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[3]*l+u[7]*f+u[11]*c+u[15];return h=h||1,o[0]=(u[0]*l+u[4]*f+u[8]*c+u[12])/h,o[1]=(u[1]*l+u[5]*f+u[9]*c+u[13])/h,o[2]=(u[2]*l+u[6]*f+u[10]*c+u[14])/h,o}}),264:(function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],y=u[3],b=y*l+d*c-p*f,v=y*f+p*l-h*c,C=y*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*y+E*-h+v*-p-C*-d,o[1]=v*y+E*-d+C*-h-b*-p,o[2]=C*y+E*-p+b*-d-v*-h,o}}),4361:(function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]+u[0],o[1]=s[1]+u[1],o[2]=s[2]+u[2],o[3]=s[3]+u[3],o}}),2335:(function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}}),2933:(function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}}),7536:(function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}}),4691:(function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return Math.sqrt(u*u+l*l+f*f+c*c)}}),1373:(function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o[3]=s[3]/u[3],o}}),3750:(function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}}),3390:(function(i){i.exports=a;function a(o,s,u,l){var f=new Float32Array(4);return f[0]=o,f[1]=s,f[2]=u,f[3]=l,f}}),9970:(function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}}),4494:(function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}}),6808:(function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return Math.sqrt(s*s+u*u+l*l+f*f)}}),2573:(function(i){i.exports=a;function a(o,s,u,l){var f=s[0],c=s[1],h=s[2],d=s[3];return o[0]=f+l*(u[0]-f),o[1]=c+l*(u[1]-c),o[2]=h+l*(u[2]-h),o[3]=d+l*(u[3]-d),o}}),160:(function(i){i.exports=a;function a(o,s,u){return o[0]=Math.max(s[0],u[0]),o[1]=Math.max(s[1],u[1]),o[2]=Math.max(s[2],u[2]),o[3]=Math.max(s[3],u[3]),o}}),2334:(function(i){i.exports=a;function a(o,s,u){return o[0]=Math.min(s[0],u[0]),o[1]=Math.min(s[1],u[1]),o[2]=Math.min(s[2],u[2]),o[3]=Math.min(s[3],u[3]),o}}),3576:(function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u[0],o[1]=s[1]*u[1],o[2]=s[2]*u[2],o[3]=s[3]*u[3],o}}),1498:(function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}}),5177:(function(i){i.exports=a;function a(o,s){var u=s[0],l=s[1],f=s[2],c=s[3],h=u*u+l*l+f*f+c*c;return h>0&&(h=1/Math.sqrt(h),o[0]=u*h,o[1]=l*h,o[2]=f*h,o[3]=c*h),o}}),9131:(function(i,a,o){var s=o(5177),u=o(9288);i.exports=l;function l(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),s(f,f),u(f,f,c),f}}),9288:(function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o[3]=s[3]*u,o}}),4844:(function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o[3]=s[3]+u[3]*l,o}}),4578:(function(i){i.exports=a;function a(o,s,u,l,f){return o[0]=s,o[1]=u,o[2]=l,o[3]=f,o}}),7960:(function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return u*u+l*l+f*f+c*c}}),483:(function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return s*s+u*u+l*l+f*f}}),6860:(function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o[3]=s[3]-u[3],o}}),5352:(function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=s[3];return o[0]=u[0]*l+u[4]*f+u[8]*c+u[12]*h,o[1]=u[1]*l+u[5]*f+u[9]*c+u[13]*h,o[2]=u[2]*l+u[6]*f+u[10]*c+u[14]*h,o[3]=u[3]*l+u[7]*f+u[11]*c+u[15]*h,o}}),4041:(function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],y=u[3],b=y*l+d*c-p*f,v=y*f+p*l-h*c,C=y*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*y+E*-h+v*-p-C*-d,o[1]=v*y+E*-d+C*-h-b*-p,o[2]=C*y+E*-p+b*-d-v*-h,o[3]=s[3],o}}),1848:(function(i,a,o){var s=o(4905),u=o(6468);i.exports=l;function l(f){for(var c=Array.isArray(f)?f:s(f),h=0;h0)continue;lt=oe.slice(0,1).join("")}return Be(lt),Ee+=lt.length,N=N.slice(lt.length),N.length}while(!0)}function kt(){return/[^a-fA-F0-9]/.test(j)?(Be(N.join("")),G=h,F):(N.push(j),W=j,F+1)}function $e(){return j==="."||/[eE]/.test(j)?(N.push(j),G=E,W=j,F+1):j==="x"&&N.length===1&&N[0]==="0"?(G=m,N.push(j),W=j,F+1):/[^\d]/.test(j)?(Be(N.join("")),G=h,F):(N.push(j),W=j,F+1)}function Re(){return j==="f"&&(N.push(j),W=j,F+=1),/[eE]/.test(j)||(j==="-"||j==="+")&&/[eE]/.test(W)?(N.push(j),W=j,F+1):/[^\d]/.test(j)?(Be(N.join("")),G=h,F):(N.push(j),W=j,F+1)}function Me(){if(/[^\d\w_]/.test(j)){var oe=N.join("");return ge[oe]?G=x:Ie[oe]?G=L:G=A,Be(N.join("")),G=h,F}return N.push(j),W=j,F+1}}}),3508:(function(i,a,o){var s=o(6852);s=s.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])}),6852:(function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]}),7932:(function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])}),620:(function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]}),7827:(function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]}),4905:(function(i,a,o){var s=o(5874);i.exports=u;function u(l,f){var c=s(f),h=[];return h=h.concat(c(l)),h=h.concat(c(null)),h}}),3236:(function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],u=0;u>1,b=-7,v=u?f-1:0,C=u?-1:1,E=o[s+v];for(v+=C,c=E&(1<<-b)-1,E>>=-b,b+=d;b>0;c=c*256+o[s+v],v+=C,b-=8);for(h=c&(1<<-b)-1,c>>=-b,b+=l;b>0;h=h*256+o[s+v],v+=C,b-=8);if(c===0)c=1-y;else{if(c===p)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-y}return(E?-1:1)*h*Math.pow(2,c-l)},a.write=function(o,s,u,l,f,c){var h,d,p,y=c*8-f-1,b=(1<>1,C=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=l?0:c-1,A=l?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(p=Math.pow(2,-h))<1&&(h--,p*=2),h+v>=1?s+=C/p:s+=C*Math.pow(2,1-v),s*p>=2&&(h++,p/=2),h+v>=b?(d=0,h=b):h+v>=1?(d=(s*p-1)*Math.pow(2,f),h=h+v):(d=s*Math.pow(2,v-1)*Math.pow(2,f),h=0));f>=8;o[u+E]=d&255,E+=A,d/=256,f-=8);for(h=h<0;o[u+E]=h&255,E+=A,h/=256,y-=8);o[u+E-A]|=L*128}}),8954:(function(i,a,o){"use strict";i.exports=v;var s=o(3250),u=o(6803).Fw;function l(C,E,A){this.vertices=C,this.adjacent=E,this.boundary=A,this.lastVisited=-1}l.prototype.flip=function(){var C=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=C;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function f(C,E,A){this.vertices=C,this.cell=E,this.index=A}function c(C,E){return u(C.vertices,E.vertices)}function h(C){return function(){var E=this.tuple;return C.apply(this,E)}}function d(C){var E=s[C+1];return E||(E=s),h(E)}var p=[];function y(C,E,A){this.dimension=C,this.vertices=E,this.simplices=A,this.interior=A.filter(function(k){return!k.boundary}),this.tuple=new Array(C+1);for(var L=0;L<=C;++L)this.tuple[L]=this.vertices[L];var x=p[C];x||(x=p[C]=d(C)),this.orient=x}var b=y.prototype;b.handleBoundaryDegeneracy=function(C,E){var A=this.dimension,L=this.vertices.length-1,x=this.tuple,k=this.vertices,S=[C];for(C.lastVisited=-L;S.length>0;){C=S.pop();for(var m=C.adjacent,P=0;P<=A;++P){var M=m[P];if(!(!M.boundary||M.lastVisited<=-L)){for(var O=M.vertices,F=0;F<=A;++F){var U=O[F];U<0?x[F]=E:x[F]=k[U]}var G=this.orient();if(G>0)return M;M.lastVisited=-L,G===0&&S.push(M)}}}return null},b.walk=function(C,E){var A=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,S=E?this.interior.length*Math.random()|0:this.interior.length-1,m=this.interior[S];e:for(;!m.boundary;){for(var P=m.vertices,M=m.adjacent,O=0;O<=L;++O)k[O]=x[P[O]];m.lastVisited=A;for(var O=0;O<=L;++O){var F=M[O];if(!(F.lastVisited>=A)){var U=k[O];k[O]=C;var G=this.orient();if(k[O]=U,G<0){m=F;continue e}else F.boundary?F.lastVisited=-A:F.lastVisited=A}}return}return m},b.addPeaks=function(C,E){var A=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,S=this.interior,m=this.simplices,P=[E];E.lastVisited=A,E.vertices[E.vertices.indexOf(-1)]=A,E.boundary=!1,S.push(E);for(var M=[];P.length>0;){var E=P.pop(),O=E.vertices,F=E.adjacent,U=O.indexOf(A);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var j=F[G];if(!(!j.boundary||j.lastVisited>=A)){var W=j.vertices;if(j.lastVisited!==-A){for(var N=0,H=0;H<=L;++H)W[H]<0?(N=H,k[H]=C):k[H]=x[W[H]];var re=this.orient();if(re>0){W[N]=A,j.boundary=!1,S.push(j),P.push(j),j.lastVisited=A;continue}else j.lastVisited=-A}var ae=j.adjacent,me=O.slice(),Ce=F.slice(),Ee=new l(me,Ce,!0);m.push(Ee);var de=ae.indexOf(E);if(!(de<0)){ae[de]=Ee,Ce[U]=j,me[G]=-1,Ce[G]=E,F[G]=Ee,Ee.flip();for(var H=0;H<=L;++H){var te=me[H];if(!(te<0||te===A)){for(var Se=new Array(L-1),Te=0,be=0;be<=L;++be){var He=me[be];He<0||be===H||(Se[Te++]=He)}M.push(new f(Se,Ee,H))}}}}}}}M.sort(c);for(var G=0;G+1=0?S[P++]=m[O]:M=O&1;if(M===(C&1)){var F=S[0];S[0]=S[1],S[1]=F}E.push(S)}}return E};function v(C,E){var A=C.length;if(A===0)throw new Error("Must have at least d+1 points");var L=C[0].length;if(A<=L)throw new Error("Must input at least d+1 points");var x=C.slice(0,L+1),k=s.apply(void 0,x);if(k===0)throw new Error("Input not in general position");for(var S=new Array(L+1),m=0;m<=L;++m)S[m]=m;k<0&&(S[0]=1,S[1]=0);for(var P=new l(S,new Array(L+1),!1),M=P.adjacent,O=new Array(L+2),m=0;m<=L;++m){for(var F=S.slice(),U=0;U<=L;++U)U===m&&(F[U]=-1);var G=F[0];F[0]=F[1],F[1]=G;var j=new l(F,new Array(L+1),!0);M[m]=j,O[m]=j}O[L+1]=P;for(var m=0;m<=L;++m)for(var F=M[m].vertices,W=M[m].adjacent,U=0;U<=L;++U){var N=F[U];if(N<0){W[U]=P;continue}for(var H=0;H<=L;++H)M[H].vertices.indexOf(N)<0&&(W[U]=M[H])}for(var re=new y(L,x,O),ae=!!E,m=L+1;m3*(O+1)?y(this,M):this.left.insert(M):this.left=k([M]);else if(M[0]>this.mid)this.right?4*(this.right.count+1)>3*(O+1)?y(this,M):this.right.insert(M):this.right=k([M]);else{var F=s.ge(this.leftPoints,M,L),U=s.ge(this.rightPoints,M,x);this.leftPoints.splice(F,0,M),this.rightPoints.splice(U,0,M)}},h.remove=function(M){var O=this.count-this.leftPoints;if(M[1]3*(O-1))return b(this,M);var U=this.left.remove(M);return U===f?(this.left=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else if(M[0]>this.mid){if(!this.right)return u;var G=this.left?this.left.count:0;if(4*G>3*(O-1))return b(this,M);var U=this.right.remove(M);return U===f?(this.right=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else{if(this.count===1)return this.leftPoints[0]===M?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===M){if(this.left&&this.right){for(var j=this,W=this.left;W.right;)j=W,W=W.right;if(j===this)W.right=this.right;else{var N=this.left,U=this.right;j.count-=W.count,j.right=W.left,W.left=N,W.right=U}d(this,W),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return l}for(var N=s.ge(this.leftPoints,M,L);N=0&&M[U][1]>=O;--U){var G=F(M[U]);if(G)return G}}function E(M,O){for(var F=0;Fthis.mid){if(this.right){var F=this.right.queryPoint(M,O);if(F)return F}return C(this.rightPoints,M,O)}else return E(this.leftPoints,O)},h.queryInterval=function(M,O,F){if(Mthis.mid&&this.right){var U=this.right.queryInterval(M,O,F);if(U)return U}return Othis.mid?C(this.rightPoints,M,F):E(this.leftPoints,F)};function A(M,O){return M-O}function L(M,O){var F=M[0]-O[0];return F||M[1]-O[1]}function x(M,O){var F=M[1]-O[1];return F||M[0]-O[0]}function k(M){if(M.length===0)return null;for(var O=[],F=0;F>1],G=[],j=[],W=[],F=0;F13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}}),395:(function(i){function a(o,s,u){return o*(1-u)+s*u}i.exports=a}),2652:(function(i,a,o){var s=o(4335),u=o(6864),l=o(1903),f=o(9921),c=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},p=u(),y=u(),b=[0,0,0,0],v=[[0,0,0],[0,0,0],[0,0,0]],C=[0,0,0];i.exports=function(k,S,m,P,M,O){if(S||(S=[0,0,0]),m||(m=[0,0,0]),P||(P=[0,0,0]),M||(M=[0,0,0,1]),O||(O=[0,0,0,1]),!s(p,k)||(l(y,p),y[3]=0,y[7]=0,y[11]=0,y[15]=1,Math.abs(f(y)<1e-8)))return!1;var F=p[3],U=p[7],G=p[11],j=p[12],W=p[13],N=p[14],H=p[15];if(F!==0||U!==0||G!==0){b[0]=F,b[1]=U,b[2]=G,b[3]=H;var re=c(y,y);if(!re)return!1;h(y,y),E(M,b,y)}else M[0]=M[1]=M[2]=0,M[3]=1;if(S[0]=j,S[1]=W,S[2]=N,A(v,p),m[0]=d.length(v[0]),d.normalize(v[0],v[0]),P[0]=d.dot(v[0],v[1]),L(v[1],v[1],v[0],1,-P[0]),m[1]=d.length(v[1]),d.normalize(v[1],v[1]),P[0]/=m[1],P[1]=d.dot(v[0],v[2]),L(v[2],v[2],v[0],1,-P[1]),P[2]=d.dot(v[1],v[2]),L(v[2],v[2],v[1],1,-P[2]),m[2]=d.length(v[2]),d.normalize(v[2],v[2]),P[1]/=m[2],P[2]/=m[2],d.cross(C,v[1],v[2]),d.dot(v[0],C)<0)for(var ae=0;ae<3;ae++)m[ae]*=-1,v[ae][0]*=-1,v[ae][1]*=-1,v[ae][2]*=-1;return O[0]=.5*Math.sqrt(Math.max(1+v[0][0]-v[1][1]-v[2][2],0)),O[1]=.5*Math.sqrt(Math.max(1-v[0][0]+v[1][1]-v[2][2],0)),O[2]=.5*Math.sqrt(Math.max(1-v[0][0]-v[1][1]+v[2][2],0)),O[3]=.5*Math.sqrt(Math.max(1+v[0][0]+v[1][1]+v[2][2],0)),v[2][1]>v[1][2]&&(O[0]=-O[0]),v[0][2]>v[2][0]&&(O[1]=-O[1]),v[1][0]>v[0][1]&&(O[2]=-O[2]),!0};function E(x,k,S){var m=k[0],P=k[1],M=k[2],O=k[3];return x[0]=S[0]*m+S[4]*P+S[8]*M+S[12]*O,x[1]=S[1]*m+S[5]*P+S[9]*M+S[13]*O,x[2]=S[2]*m+S[6]*P+S[10]*M+S[14]*O,x[3]=S[3]*m+S[7]*P+S[11]*M+S[15]*O,x}function A(x,k){x[0][0]=k[0],x[0][1]=k[1],x[0][2]=k[2],x[1][0]=k[4],x[1][1]=k[5],x[1][2]=k[6],x[2][0]=k[8],x[2][1]=k[9],x[2][2]=k[10]}function L(x,k,S,m,P){x[0]=k[0]*m+S[0]*P,x[1]=k[1]*m+S[1]*P,x[2]=k[2]*m+S[2]*P}}),4335:(function(i){i.exports=function(o,s){var u=s[15];if(u===0)return!1;for(var l=1/u,f=0;f<16;f++)o[f]=s[f]*l;return!0}}),7442:(function(i,a,o){var s=o(6658),u=o(7182),l=o(2652),f=o(9921),c=o(8648),h=b(),d=b(),p=b();i.exports=y;function y(E,A,L,x){if(f(A)===0||f(L)===0)return!1;var k=l(A,h.translate,h.scale,h.skew,h.perspective,h.quaternion),S=l(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!k||!S?!1:(s(p.translate,h.translate,d.translate,x),s(p.skew,h.skew,d.skew,x),s(p.scale,h.scale,d.scale,x),s(p.perspective,h.perspective,d.perspective,x),c(p.quaternion,h.quaternion,d.quaternion,x),u(E,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function b(){return{translate:v(),scale:v(1),skew:v(),perspective:C(),quaternion:C()}}function v(E){return[E||0,E||0,E||0]}function C(){return[0,0,0,1]}}),7182:(function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},u=s.create(),l=s.create();i.exports=function(c,h,d,p,y,b){return s.identity(c),s.fromRotationTranslation(c,b,h),c[3]=y[0],c[7]=y[1],c[11]=y[2],c[15]=y[3],s.identity(l),p[2]!==0&&(l[9]=p[2],s.multiply(c,c,l)),p[1]!==0&&(l[9]=0,l[8]=p[1],s.multiply(c,c,l)),p[0]!==0&&(l[8]=0,l[4]=p[0],s.multiply(c,c,l)),s.scale(c,c,d),c}}),1811:(function(i,a,o){"use strict";var s=o(2478),u=o(7442),l=o(7608),f=o(5567),c=o(2408),h=o(7089),d=o(6582),p=o(7656),y=o(2504),b=o(3536),v=[0,0,0];i.exports=L;function C(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=C.prototype;E.recalcMatrix=function(x){var k=this._time,S=s.le(k,x),m=this.computedMatrix;if(!(S<0)){var P=this._components;if(S===k.length-1)for(var M=16*S,O=0;O<16;++O)m[O]=P[M++];else{for(var F=k[S+1]-k[S],M=16*S,U=this.prevMatrix,G=!0,O=0;O<16;++O)U[O]=P[M++];for(var j=this.nextMatrix,O=0;O<16;++O)j[O]=P[M++],G=G&&U[O]===j[O];if(F<1e-6||G)for(var O=0;O<16;++O)m[O]=U[O];else u(m,U,j,(x-k[S])/F)}var W=this.computedUp;W[0]=m[1],W[1]=m[5],W[2]=m[9],b(W,W);var N=this.computedInverse;l(N,m);var H=this.computedEye,re=N[15];H[0]=N[12]/re,H[1]=N[13]/re,H[2]=N[14]/re;for(var ae=this.computedCenter,me=Math.exp(this.computedRadius[0]),O=0;O<3;++O)ae[O]=H[O]-m[2+4*O]*me}},E.idle=function(x){if(!(x1&&s(l[d[v-2]],l[d[v-1]],b)<=0;)v-=1,d.pop();for(d.push(y),v=p.length;v>1&&s(l[p[v-2]],l[p[v-1]],b)>=0;)v-=1,p.pop();p.push(y)}for(var C=new Array(p.length+d.length-2),E=0,c=0,A=d.length;c0;--L)C[E++]=p[L];return C}}),351:(function(i,a,o){"use strict";i.exports=u;var s=o(4687);function u(l,f){f||(f=l,l=window);var c=0,h=0,d=0,p={shift:!1,alt:!1,control:!1,meta:!1},y=!1;function b(M){var O=!1;return"altKey"in M&&(O=O||M.altKey!==p.alt,p.alt=!!M.altKey),"shiftKey"in M&&(O=O||M.shiftKey!==p.shift,p.shift=!!M.shiftKey),"ctrlKey"in M&&(O=O||M.ctrlKey!==p.control,p.control=!!M.ctrlKey),"metaKey"in M&&(O=O||M.metaKey!==p.meta,p.meta=!!M.metaKey),O}function v(M,O){var F=s.x(O),U=s.y(O);"buttons"in O&&(M=O.buttons|0),(M!==c||F!==h||U!==d||b(O))&&(c=M|0,h=F||0,d=U||0,f&&f(c,h,d,p))}function C(M){v(0,M)}function E(){(c||h||d||p.shift||p.alt||p.meta||p.control)&&(h=d=0,c=0,p.shift=p.alt=p.control=p.meta=!1,f&&f(0,0,0,p))}function A(M){b(M)&&f&&f(c,h,d,p)}function L(M){s.buttons(M)===0?v(0,M):v(c,M)}function x(M){v(c|s.buttons(M),M)}function k(M){v(c&~s.buttons(M),M)}function S(){y||(y=!0,l.addEventListener("mousemove",L),l.addEventListener("mousedown",x),l.addEventListener("mouseup",k),l.addEventListener("mouseleave",C),l.addEventListener("mouseenter",C),l.addEventListener("mouseout",C),l.addEventListener("mouseover",C),l.addEventListener("blur",E),l.addEventListener("keyup",A),l.addEventListener("keydown",A),l.addEventListener("keypress",A),l!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}function m(){y&&(y=!1,l.removeEventListener("mousemove",L),l.removeEventListener("mousedown",x),l.removeEventListener("mouseup",k),l.removeEventListener("mouseleave",C),l.removeEventListener("mouseenter",C),l.removeEventListener("mouseout",C),l.removeEventListener("mouseover",C),l.removeEventListener("blur",E),l.removeEventListener("keyup",A),l.removeEventListener("keydown",A),l.removeEventListener("keypress",A),l!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))}S();var P={element:l};return Object.defineProperties(P,{enabled:{get:function(){return y},set:function(M){M?S():m()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),P}}),24:(function(i){var a={left:0,top:0};i.exports=o;function o(u,l,f){l=l||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,h=u.clientY||0,d=s(l);return f[0]=c-d.left,f[1]=h-d.top,f}function s(u){return u===window||u===document||u===document.body?a:u.getBoundingClientRect()}}),4687:(function(i,a){"use strict";function o(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var c=f.which;if(c===2)return 4;if(c===3)return 2;if(c>0)return 1<=0)return 1<0){if(Ce=1,te[Te++]=p(S[O],E,A,L),O+=re,x>0)for(me=1,F=S[O],be=te[Te]=p(F,E,A,L),ge=te[Te+He],je=te[Te+Be],Ot=te[Te+rt],(be!==ge||be!==je||be!==Ot)&&(G=S[O+U],W=S[O+j],H=S[O+N],h(me,Ce,F,G,W,H,be,ge,je,Ot,E,A,L),it=Se[Te]=Ee++),Te+=1,O+=re,me=2;me0)for(me=1,F=S[O],be=te[Te]=p(F,E,A,L),ge=te[Te+He],je=te[Te+Be],Ot=te[Te+rt],(be!==ge||be!==je||be!==Ot)&&(G=S[O+U],W=S[O+j],H=S[O+N],h(me,Ce,F,G,W,H,be,ge,je,Ot,E,A,L),it=Se[Te]=Ee++,Ot!==je&&d(Se[Te+Be],it,W,H,je,Ot,E,A,L)),Te+=1,O+=re,me=2;me0){if(me=1,te[Te++]=p(S[O],E,A,L),O+=re,k>0)for(Ce=1,F=S[O],be=te[Te]=p(F,E,A,L),je=te[Te+Be],ge=te[Te+He],Ot=te[Te+rt],(be!==je||be!==ge||be!==Ot)&&(G=S[O+U],W=S[O+j],H=S[O+N],h(me,Ce,F,G,W,H,be,je,ge,Ot,E,A,L),it=Se[Te]=Ee++),Te+=1,O+=re,Ce=2;Ce0)for(Ce=1,F=S[O],be=te[Te]=p(F,E,A,L),je=te[Te+Be],ge=te[Te+He],Ot=te[Te+rt],(be!==je||be!==ge||be!==Ot)&&(G=S[O+U],W=S[O+j],H=S[O+N],h(me,Ce,F,G,W,H,be,je,ge,Ot,E,A,L),it=Se[Te]=Ee++,Ot!==je&&d(Se[Te+Be],it,H,G,Ot,je,E,A,L)),Te+=1,O+=re,Ce=2;Ce 0"),typeof c.vertex!="function"&&h("Must specify vertex creation function"),typeof c.cell!="function"&&h("Must specify cell creation function"),typeof c.phase!="function"&&h("Must specify phase function");for(var b=c.getters||[],v=new Array(p),C=0;C=0?v[C]=!0:v[C]=!1;return l(c.vertex,c.cell,c.phase,y,d,v)}}),6199:(function(i,a,o){"use strict";var s=o(1338),u={zero:function(L,x,k,S){var m=L[0],P=k[0];S|=0;var M=0,O=P;for(M=0;M2&&M[1]>2&&S(P.pick(-1,-1).lo(1,1).hi(M[0]-2,M[1]-2),m.pick(-1,-1,0).lo(1,1).hi(M[0]-2,M[1]-2),m.pick(-1,-1,1).lo(1,1).hi(M[0]-2,M[1]-2)),M[1]>2&&(k(P.pick(0,-1).lo(1).hi(M[1]-2),m.pick(0,-1,1).lo(1).hi(M[1]-2)),x(m.pick(0,-1,0).lo(1).hi(M[1]-2))),M[1]>2&&(k(P.pick(M[0]-1,-1).lo(1).hi(M[1]-2),m.pick(M[0]-1,-1,1).lo(1).hi(M[1]-2)),x(m.pick(M[0]-1,-1,0).lo(1).hi(M[1]-2))),M[0]>2&&(k(P.pick(-1,0).lo(1).hi(M[0]-2),m.pick(-1,0,0).lo(1).hi(M[0]-2)),x(m.pick(-1,0,1).lo(1).hi(M[0]-2))),M[0]>2&&(k(P.pick(-1,M[1]-1).lo(1).hi(M[0]-2),m.pick(-1,M[1]-1,0).lo(1).hi(M[0]-2)),x(m.pick(-1,M[1]-1,1).lo(1).hi(M[0]-2))),m.set(0,0,0,0),m.set(0,0,1,0),m.set(M[0]-1,0,0,0),m.set(M[0]-1,0,1,0),m.set(0,M[1]-1,0,0),m.set(0,M[1]-1,1,0),m.set(M[0]-1,M[1]-1,0,0),m.set(M[0]-1,M[1]-1,1,0),m}}function A(L){var x=L.join(),M=p[x];if(M)return M;for(var k=L.length,S=[b,v],m=1;m<=k;++m)S.push(C(m));var P=E,M=P.apply(void 0,S);return p[x]=M,M}i.exports=function(x,k,S){if(Array.isArray(S)||(typeof S=="string"?S=s(k.dimension,S):S=s(k.dimension,"clamp")),k.size===0)return x;if(k.dimension===0)return x.set(0),x;var m=A(S);return m(x,k)}}),4317:(function(i){"use strict";function a(f,c){var h=Math.floor(c),d=c-h,p=0<=h&&h0;){W<64?(x=W,W=0):(x=64,W-=64);for(var N=p[1]|0;N>0;){N<64?(k=N,N=0):(k=64,N-=64),v=G+W*m+N*P,A=j+W*O+N*F;var H=0,re=0,ae=0,me=M,Ce=m-S*M,Ee=P-x*m,de=U,te=O-S*U,Se=F-x*O;for(ae=0;ae0;){F<64?(x=F,F=0):(x=64,F-=64);for(var U=p[0]|0;U>0;){U<64?(L=U,U=0):(L=64,U-=64),v=M+F*S+U*k,A=O+F*P+U*m;var G=0,j=0,W=S,N=k-x*S,H=P,re=m-x*P;for(j=0;j0;){j<64?(k=j,j=0):(k=64,j-=64);for(var W=p[0]|0;W>0;){W<64?(L=W,W=0):(L=64,W-=64);for(var N=p[1]|0;N>0;){N<64?(x=N,N=0):(x=64,N-=64),v=U+j*P+W*S+N*m,A=G+j*F+W*M+N*O;var H=0,re=0,ae=0,me=P,Ce=S-k*P,Ee=m-L*S,de=F,te=M-k*F,Se=O-L*M;for(ae=0;aeC;){H=0,re=G-x;t:for(W=0;Wme)break t;re+=M,H+=O}for(H=G,re=G-x,W=0;W>1,N=W-U,H=W+U,re=G,ae=N,me=W,Ce=H,Ee=j,de=E+1,te=A-1,Se=!0,Te,be,He,Ie,ge,Be,ce,je,rt,bt=0,Ot=0,it=0,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt=P,or=b(jt),yr=b(jt);zt=k*re,Mt=k*ae,Lt=x;e:for(Ke=0;Ke0){be=re,re=ae,ae=be;break e}if(it<0)break e;Lt+=O}zt=k*Ce,Mt=k*Ee,Lt=x;e:for(Ke=0;Ke0){be=Ce,Ce=Ee,Ee=be;break e}if(it<0)break e;Lt+=O}zt=k*re,Mt=k*me,Lt=x;e:for(Ke=0;Ke0){be=re,re=me,me=be;break e}if(it<0)break e;Lt+=O}zt=k*ae,Mt=k*me,Lt=x;e:for(Ke=0;Ke0){be=ae,ae=me,me=be;break e}if(it<0)break e;Lt+=O}zt=k*re,Mt=k*Ce,Lt=x;e:for(Ke=0;Ke0){be=re,re=Ce,Ce=be;break e}if(it<0)break e;Lt+=O}zt=k*me,Mt=k*Ce,Lt=x;e:for(Ke=0;Ke0){be=me,me=Ce,Ce=be;break e}if(it<0)break e;Lt+=O}zt=k*ae,Mt=k*Ee,Lt=x;e:for(Ke=0;Ke0){be=ae,ae=Ee,Ee=be;break e}if(it<0)break e;Lt+=O}zt=k*ae,Mt=k*me,Lt=x;e:for(Ke=0;Ke0){be=ae,ae=me,me=be;break e}if(it<0)break e;Lt+=O}zt=k*Ce,Mt=k*Ee,Lt=x;e:for(Ke=0;Ke0){be=Ce,Ce=Ee,Ee=be;break e}if(it<0)break e;Lt+=O}for(zt=k*re,Mt=k*ae,kt=k*me,$e=k*Ce,Re=k*Ee,Me=k*G,oe=k*W,Ne=k*j,tt=0,Lt=x,Ke=0;Ke0)te--;else if(it<0){for(zt=k*Be,Mt=k*de,kt=k*te,Lt=x,Ke=0;Ke0)for(;;){ce=x+te*k,tt=0;e:for(Ke=0;Ke0){if(--tej){e:for(;;){for(ce=x+de*k,tt=0,Lt=x,Ke=0;Ke1&&C?A(v,C[0],C[1]):A(v)}var d={"uint32,1,0":function(y,b){return function(v){var C=v.data,E=v.offset|0,A=v.shape,L=v.stride,x=L[0]|0,k=A[0]|0,S=L[1]|0,m=A[1]|0,P=S,M=S,O=1;k<=32?y(0,k-1,C,E,x,S,k,m,P,M,O):b(0,k-1,C,E,x,S,k,m,P,M,O)}}};function p(y,b){var v=[b,y].join(","),C=d[v],E=f(y,b),A=h(y,b,E);return C(E,A)}i.exports=p}),446:(function(i,a,o){"use strict";var s=o(7640),u={};function l(f){var c=f.order,h=f.dtype,d=[c,h],p=d.join(":"),y=u[p];return y||(u[p]=y=s(c,h)),y(f),f}i.exports=l}),9618:(function(i,a,o){var s=o(7163),u=typeof Float64Array!="undefined";function l(b,v){return b[0]-v[0]}function f(){var b=this.stride,v=new Array(b.length),C;for(C=0;C=0&&(S=x|0,k+=P*S,m-=S),new E(this.data,m,P,k)},A.step=function(x){var k=this.shape[0],S=this.stride[0],m=this.offset,P=0,M=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(m+=S*(k-1),k=M(-k/P)):k=M(k/P),S*=P),new E(this.data,k,S,m)},A.transpose=function(x){x=x===void 0?0:x|0;var k=this.shape,S=this.stride;return new E(this.data,k[x],S[x],this.offset)},A.pick=function(x){var k=[],S=[],m=this.offset;typeof x=="number"&&x>=0?m=m+this.stride[0]*x|0:(k.push(this.shape[0]),S.push(this.stride[0]));var P=v[k.length+1];return P(this.data,k,S,m)},function(x,k,S,m){return new E(x,k[0],S[0],m)}},2:function(b,v,C){function E(L,x,k,S,m,P){this.data=L,this.shape=[x,k],this.stride=[S,m],this.offset=P|0}var A=E.prototype;return A.dtype=b,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(x,k,S){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k,S):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]=S},A.get=function(x,k){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]},A.index=function(x,k){return this.offset+this.stride[0]*x+this.stride[1]*k},A.hi=function(x,k){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(x,k){var S=this.offset,m=0,P=this.shape[0],M=this.shape[1],O=this.stride[0],F=this.stride[1];return typeof x=="number"&&x>=0&&(m=x|0,S+=O*m,P-=m),typeof k=="number"&&k>=0&&(m=k|0,S+=F*m,M-=m),new E(this.data,P,M,O,F,S)},A.step=function(x,k){var S=this.shape[0],m=this.shape[1],P=this.stride[0],M=this.stride[1],O=this.offset,F=0,U=Math.ceil;return typeof x=="number"&&(F=x|0,F<0?(O+=P*(S-1),S=U(-S/F)):S=U(S/F),P*=F),typeof k=="number"&&(F=k|0,F<0?(O+=M*(m-1),m=U(-m/F)):m=U(m/F),M*=F),new E(this.data,S,m,P,M,O)},A.transpose=function(x,k){x=x===void 0?0:x|0,k=k===void 0?1:k|0;var S=this.shape,m=this.stride;return new E(this.data,S[x],S[k],m[x],m[k],this.offset)},A.pick=function(x,k){var S=[],m=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(S.push(this.shape[0]),m.push(this.stride[0])),typeof k=="number"&&k>=0?P=P+this.stride[1]*k|0:(S.push(this.shape[1]),m.push(this.stride[1]));var M=v[S.length+1];return M(this.data,S,m,P)},function(x,k,S,m){return new E(x,k[0],k[1],S[0],S[1],m)}},3:function(b,v,C){function E(L,x,k,S,m,P,M,O){this.data=L,this.shape=[x,k,S],this.stride=[m,P,M],this.offset=O|0}var A=E.prototype;return A.dtype=b,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var x=Math.abs(this.stride[0]),k=Math.abs(this.stride[1]),S=Math.abs(this.stride[2]);return x>k?k>S?[2,1,0]:x>S?[1,2,0]:[1,0,2]:x>S?[2,0,1]:S>k?[0,1,2]:[0,2,1]}}),A.set=function(x,k,S,m){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S,m):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S]=m},A.get=function(x,k,S){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S]},A.index=function(x,k,S){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S},A.hi=function(x,k,S){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof S!="number"||S<0?this.shape[2]:S|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(x,k,S){var m=this.offset,P=0,M=this.shape[0],O=this.shape[1],F=this.shape[2],U=this.stride[0],G=this.stride[1],j=this.stride[2];return typeof x=="number"&&x>=0&&(P=x|0,m+=U*P,M-=P),typeof k=="number"&&k>=0&&(P=k|0,m+=G*P,O-=P),typeof S=="number"&&S>=0&&(P=S|0,m+=j*P,F-=P),new E(this.data,M,O,F,U,G,j,m)},A.step=function(x,k,S){var m=this.shape[0],P=this.shape[1],M=this.shape[2],O=this.stride[0],F=this.stride[1],U=this.stride[2],G=this.offset,j=0,W=Math.ceil;return typeof x=="number"&&(j=x|0,j<0?(G+=O*(m-1),m=W(-m/j)):m=W(m/j),O*=j),typeof k=="number"&&(j=k|0,j<0?(G+=F*(P-1),P=W(-P/j)):P=W(P/j),F*=j),typeof S=="number"&&(j=S|0,j<0?(G+=U*(M-1),M=W(-M/j)):M=W(M/j),U*=j),new E(this.data,m,P,M,O,F,U,G)},A.transpose=function(x,k,S){x=x===void 0?0:x|0,k=k===void 0?1:k|0,S=S===void 0?2:S|0;var m=this.shape,P=this.stride;return new E(this.data,m[x],m[k],m[S],P[x],P[k],P[S],this.offset)},A.pick=function(x,k,S){var m=[],P=[],M=this.offset;typeof x=="number"&&x>=0?M=M+this.stride[0]*x|0:(m.push(this.shape[0]),P.push(this.stride[0])),typeof k=="number"&&k>=0?M=M+this.stride[1]*k|0:(m.push(this.shape[1]),P.push(this.stride[1])),typeof S=="number"&&S>=0?M=M+this.stride[2]*S|0:(m.push(this.shape[2]),P.push(this.stride[2]));var O=v[m.length+1];return O(this.data,m,P,M)},function(x,k,S,m){return new E(x,k[0],k[1],k[2],S[0],S[1],S[2],m)}},4:function(b,v,C){function E(L,x,k,S,m,P,M,O,F,U){this.data=L,this.shape=[x,k,S,m],this.stride=[P,M,O,F],this.offset=U|0}var A=E.prototype;return A.dtype=b,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:C}),A.set=function(x,k,S,m,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m]=P},A.get=function(x,k,S,m){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m]},A.index=function(x,k,S,m){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*S+this.stride[3]*m},A.hi=function(x,k,S,m){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof S!="number"||S<0?this.shape[2]:S|0,typeof m!="number"||m<0?this.shape[3]:m|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(x,k,S,m){var P=this.offset,M=0,O=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.stride[0],W=this.stride[1],N=this.stride[2],H=this.stride[3];return typeof x=="number"&&x>=0&&(M=x|0,P+=j*M,O-=M),typeof k=="number"&&k>=0&&(M=k|0,P+=W*M,F-=M),typeof S=="number"&&S>=0&&(M=S|0,P+=N*M,U-=M),typeof m=="number"&&m>=0&&(M=m|0,P+=H*M,G-=M),new E(this.data,O,F,U,G,j,W,N,H,P)},A.step=function(x,k,S,m){var P=this.shape[0],M=this.shape[1],O=this.shape[2],F=this.shape[3],U=this.stride[0],G=this.stride[1],j=this.stride[2],W=this.stride[3],N=this.offset,H=0,re=Math.ceil;return typeof x=="number"&&(H=x|0,H<0?(N+=U*(P-1),P=re(-P/H)):P=re(P/H),U*=H),typeof k=="number"&&(H=k|0,H<0?(N+=G*(M-1),M=re(-M/H)):M=re(M/H),G*=H),typeof S=="number"&&(H=S|0,H<0?(N+=j*(O-1),O=re(-O/H)):O=re(O/H),j*=H),typeof m=="number"&&(H=m|0,H<0?(N+=W*(F-1),F=re(-F/H)):F=re(F/H),W*=H),new E(this.data,P,M,O,F,U,G,j,W,N)},A.transpose=function(x,k,S,m){x=x===void 0?0:x|0,k=k===void 0?1:k|0,S=S===void 0?2:S|0,m=m===void 0?3:m|0;var P=this.shape,M=this.stride;return new E(this.data,P[x],P[k],P[S],P[m],M[x],M[k],M[S],M[m],this.offset)},A.pick=function(x,k,S,m){var P=[],M=[],O=this.offset;typeof x=="number"&&x>=0?O=O+this.stride[0]*x|0:(P.push(this.shape[0]),M.push(this.stride[0])),typeof k=="number"&&k>=0?O=O+this.stride[1]*k|0:(P.push(this.shape[1]),M.push(this.stride[1])),typeof S=="number"&&S>=0?O=O+this.stride[2]*S|0:(P.push(this.shape[2]),M.push(this.stride[2])),typeof m=="number"&&m>=0?O=O+this.stride[3]*m|0:(P.push(this.shape[3]),M.push(this.stride[3]));var F=v[P.length+1];return F(this.data,P,M,O)},function(x,k,S,m){return new E(x,k[0],k[1],k[2],k[3],S[0],S[1],S[2],S[3],m)}},5:function(v,C,E){function A(x,k,S,m,P,M,O,F,U,G,j,W){this.data=x,this.shape=[k,S,m,P,M],this.stride=[O,F,U,G,j],this.offset=W|0}var L=A.prototype;return L.dtype=v,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(k,S,m,P,M,O){return v==="generic"?this.data.set(this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*M,O):this.data[this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*M]=O},L.get=function(k,S,m,P,M){return v==="generic"?this.data.get(this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*M):this.data[this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*M]},L.index=function(k,S,m,P,M){return this.offset+this.stride[0]*k+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*M},L.hi=function(k,S,m,P,M){return new A(this.data,typeof k!="number"||k<0?this.shape[0]:k|0,typeof S!="number"||S<0?this.shape[1]:S|0,typeof m!="number"||m<0?this.shape[2]:m|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof M!="number"||M<0?this.shape[4]:M|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(k,S,m,P,M){var O=this.offset,F=0,U=this.shape[0],G=this.shape[1],j=this.shape[2],W=this.shape[3],N=this.shape[4],H=this.stride[0],re=this.stride[1],ae=this.stride[2],me=this.stride[3],Ce=this.stride[4];return typeof k=="number"&&k>=0&&(F=k|0,O+=H*F,U-=F),typeof S=="number"&&S>=0&&(F=S|0,O+=re*F,G-=F),typeof m=="number"&&m>=0&&(F=m|0,O+=ae*F,j-=F),typeof P=="number"&&P>=0&&(F=P|0,O+=me*F,W-=F),typeof M=="number"&&M>=0&&(F=M|0,O+=Ce*F,N-=F),new A(this.data,U,G,j,W,N,H,re,ae,me,Ce,O)},L.step=function(k,S,m,P,M){var O=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.shape[4],W=this.stride[0],N=this.stride[1],H=this.stride[2],re=this.stride[3],ae=this.stride[4],me=this.offset,Ce=0,Ee=Math.ceil;return typeof k=="number"&&(Ce=k|0,Ce<0?(me+=W*(O-1),O=Ee(-O/Ce)):O=Ee(O/Ce),W*=Ce),typeof S=="number"&&(Ce=S|0,Ce<0?(me+=N*(F-1),F=Ee(-F/Ce)):F=Ee(F/Ce),N*=Ce),typeof m=="number"&&(Ce=m|0,Ce<0?(me+=H*(U-1),U=Ee(-U/Ce)):U=Ee(U/Ce),H*=Ce),typeof P=="number"&&(Ce=P|0,Ce<0?(me+=re*(G-1),G=Ee(-G/Ce)):G=Ee(G/Ce),re*=Ce),typeof M=="number"&&(Ce=M|0,Ce<0?(me+=ae*(j-1),j=Ee(-j/Ce)):j=Ee(j/Ce),ae*=Ce),new A(this.data,O,F,U,G,j,W,N,H,re,ae,me)},L.transpose=function(k,S,m,P,M){k=k===void 0?0:k|0,S=S===void 0?1:S|0,m=m===void 0?2:m|0,P=P===void 0?3:P|0,M=M===void 0?4:M|0;var O=this.shape,F=this.stride;return new A(this.data,O[k],O[S],O[m],O[P],O[M],F[k],F[S],F[m],F[P],F[M],this.offset)},L.pick=function(k,S,m,P,M){var O=[],F=[],U=this.offset;typeof k=="number"&&k>=0?U=U+this.stride[0]*k|0:(O.push(this.shape[0]),F.push(this.stride[0])),typeof S=="number"&&S>=0?U=U+this.stride[1]*S|0:(O.push(this.shape[1]),F.push(this.stride[1])),typeof m=="number"&&m>=0?U=U+this.stride[2]*m|0:(O.push(this.shape[2]),F.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(O.push(this.shape[3]),F.push(this.stride[3])),typeof M=="number"&&M>=0?U=U+this.stride[4]*M|0:(O.push(this.shape[4]),F.push(this.stride[4]));var G=C[O.length+1];return G(this.data,O,F,U)},function(k,S,m,P){return new A(k,S[0],S[1],S[2],S[3],S[4],m[0],m[1],m[2],m[3],m[4],P)}}};function h(b,v){var C=v===-1?"T":String(v),E=c[C];return v===-1?E(b):v===0?E(b,p[b][0]):E(b,p[b],f)}function d(b){if(s(b))return"buffer";if(u)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function y(b,v,C,E){if(b===void 0){var m=p.array[0];return m([])}else typeof b=="number"&&(b=[b]);v===void 0&&(v=[b.length]);var A=v.length;if(C===void 0){C=new Array(A);for(var L=A-1,x=1;L>=0;--L)C[L]=x,x*=v[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.exports=f;function f(c,h){if(isNaN(c)||isNaN(h))return NaN;if(c===h)return c;if(c===0)return h<0?-u:u;var d=s.hi(c),p=s.lo(c);return h>c==c>0?p===l?(d+=1,p=0):p+=1:p===0?(p=l,d-=1):p-=1,s.pack(p,d)}}),8406:(function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(u,l,f){for(var c=l.length,h=new Array(c),d=f===void 0?o:f,p=0;pd)for(var O=h[v],F=1/Math.sqrt(S*P),M=0;M<3;++M){var U=(M+1)%3,G=(M+2)%3;O[M]+=F*(m[U]*k[G]-m[G]*k[U])}}for(var p=0;pd)for(var F=1/Math.sqrt(j),M=0;M<3;++M)O[M]*=F;else for(var M=0;M<3;++M)O[M]=0}return h},a.faceNormals=function(u,l,f){for(var c=u.length,h=new Array(c),d=f===void 0?s:f,p=0;pd?L=1/Math.sqrt(L):L=0;for(var v=0;v<3;++v)A[v]*=L;h[p]=A}return h}}),4081:(function(i){"use strict";i.exports=a;function a(o,s,u,l,f,c,h,d,p,y){var b=s+c+y;if(v>0){var v=Math.sqrt(b+1);o[0]=.5*(h-p)/v,o[1]=.5*(d-l)/v,o[2]=.5*(u-c)/v,o[3]=.5*v}else{var C=Math.max(s,c,y),v=Math.sqrt(2*C-b+1);s>=C?(o[0]=.5*v,o[1]=.5*(f+u)/v,o[2]=.5*(d+l)/v,o[3]=.5*(h-p)/v):c>=C?(o[0]=.5*(u+f)/v,o[1]=.5*v,o[2]=.5*(p+h)/v,o[3]=.5*(d-l)/v):(o[0]=.5*(l+d)/v,o[1]=.5*(h+p)/v,o[2]=.5*v,o[3]=.5*(u-f)/v)}return o}}),9977:(function(i,a,o){"use strict";i.exports=v;var s=o(9215),u=o(6582),l=o(7399),f=o(7608),c=o(4081);function h(C,E,A){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2))}function d(C,E,A,L){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2)+Math.pow(L,2))}function p(C,E){var A=E[0],L=E[1],x=E[2],k=E[3],S=d(A,L,x,k);S>1e-6?(C[0]=A/S,C[1]=L/S,C[2]=x/S,C[3]=k/S):(C[0]=C[1]=C[2]=0,C[3]=1)}function y(C,E,A){this.radius=s([A]),this.center=s(E),this.rotation=s(C),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=y.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(C){this.radius.curve(C),this.center.curve(C),this.rotation.curve(C);var E=this.computedRotation;p(E,E);var A=this.computedMatrix;l(A,E);var L=this.computedCenter,x=this.computedEye,k=this.computedUp,S=Math.exp(this.computedRadius[0]);x[0]=L[0]+S*A[2],x[1]=L[1]+S*A[6],x[2]=L[2]+S*A[10],k[0]=A[1],k[1]=A[5],k[2]=A[9];for(var m=0;m<3;++m){for(var P=0,M=0;M<3;++M)P+=A[m+4*M]*x[M];A[12+m]=-P}},b.getMatrix=function(C,E){this.recalcMatrix(C);var A=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=A[L];return E}return A},b.idle=function(C){this.center.idle(C),this.radius.idle(C),this.rotation.idle(C)},b.flush=function(C){this.center.flush(C),this.radius.flush(C),this.rotation.flush(C)},b.pan=function(C,E,A,L){E=E||0,A=A||0,L=L||0,this.recalcMatrix(C);var x=this.computedMatrix,k=x[1],S=x[5],m=x[9],P=h(k,S,m);k/=P,S/=P,m/=P;var M=x[0],O=x[4],F=x[8],U=M*k+O*S+F*m;M-=k*U,O-=S*U,F-=m*U;var G=h(M,O,F);M/=G,O/=G,F/=G;var j=x[2],W=x[6],N=x[10],H=j*k+W*S+N*m,re=j*M+W*O+N*F;j-=H*k+re*M,W-=H*S+re*O,N-=H*m+re*F;var ae=h(j,W,N);j/=ae,W/=ae,N/=ae;var me=M*E+k*A,Ce=O*E+S*A,Ee=F*E+m*A;this.center.move(C,me,Ce,Ee);var de=Math.exp(this.computedRadius[0]);de=Math.max(1e-4,de+L),this.radius.set(C,Math.log(de))},b.rotate=function(C,E,A,L){this.recalcMatrix(C),E=E||0,A=A||0;var x=this.computedMatrix,k=x[0],S=x[4],m=x[8],P=x[1],M=x[5],O=x[9],F=x[2],U=x[6],G=x[10],j=E*k+A*P,W=E*S+A*M,N=E*m+A*O,H=-(U*N-G*W),re=-(G*j-F*N),ae=-(F*W-U*j),me=Math.sqrt(Math.max(0,1-Math.pow(H,2)-Math.pow(re,2)-Math.pow(ae,2))),Ce=d(H,re,ae,me);Ce>1e-6?(H/=Ce,re/=Ce,ae/=Ce,me/=Ce):(H=re=ae=0,me=1);var Ee=this.computedRotation,de=Ee[0],te=Ee[1],Se=Ee[2],Te=Ee[3],be=de*me+Te*H+te*ae-Se*re,He=te*me+Te*re+Se*H-de*ae,Ie=Se*me+Te*ae+de*re-te*H,ge=Te*me-de*H-te*re-Se*ae;if(L){H=F,re=U,ae=G;var Be=Math.sin(L)/h(H,re,ae);H*=Be,re*=Be,ae*=Be,me=Math.cos(E),be=be*me+ge*H+He*ae-Ie*re,He=He*me+ge*re+Ie*H-be*ae,Ie=Ie*me+ge*ae+be*re-He*H,ge=ge*me-be*H-He*re-Ie*ae}var ce=d(be,He,Ie,ge);ce>1e-6?(be/=ce,He/=ce,Ie/=ce,ge/=ce):(be=He=Ie=0,ge=1),this.rotation.set(C,be,He,Ie,ge)},b.lookAt=function(C,E,A,L){this.recalcMatrix(C),A=A||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;u(x,E,A,L);var k=this.computedRotation;c(k,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),p(k,k),this.rotation.set(C,k[0],k[1],k[2],k[3]);for(var S=0,m=0;m<3;++m)S+=Math.pow(A[m]-E[m],2);this.radius.set(C,.5*Math.log(Math.max(S,1e-6))),this.center.set(C,A[0],A[1],A[2])},b.translate=function(C,E,A,L){this.center.move(C,E||0,A||0,L||0)},b.setMatrix=function(C,E){var A=this.computedRotation;c(A,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),p(A,A),this.rotation.set(C,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;f(L,E);var x=L[15];if(Math.abs(x)>1e-6){var k=L[12]/x,S=L[13]/x,m=L[14]/x;this.recalcMatrix(C);var P=Math.exp(this.computedRadius[0]);this.center.set(C,k-L[2]*P,S-L[6]*P,m-L[10]*P),this.radius.idle(C)}else this.center.idle(C),this.radius.idle(C)},b.setDistance=function(C,E){E>0&&this.radius.set(C,Math.log(E))},b.setDistanceLimits=function(C,E){C>0?C=Math.log(C):C=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,C),this.radius.bounds[0][0]=C,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(C){var E=this.radius.bounds;return C?(C[0]=Math.exp(E[0][0]),C[1]=Math.exp(E[1][0]),C):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(C){var E=this.lastT(),A=C.center;A&&this.center.set(E,A[0],A[1],A[2]);var L=C.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var x=C.distance;x&&x>0&&this.radius.set(E,Math.log(x)),this.setDistanceLimits(C.zoomMin,C.zoomMax)};function v(C){C=C||{};var E=C.center||[0,0,0],A=C.rotation||[0,0,0,1],L=C.radius||1;E=[].slice.call(E,0,3),A=[].slice.call(A,0,4),p(A,A);var x=new y(A,E,Math.log(L));return x.setDistanceLimits(C.zoomMin,C.zoomMax),("eye"in C||"up"in C)&&x.lookAt(0,C.eye,C.center,C.up),x}}),1371:(function(i,a,o){"use strict";var s=o(3233);i.exports=function(l,f,c){return c=typeof c!="undefined"?c+"":" ",s(c,f)+l}}),3202:(function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var u=parseFloat(o,10);return s[0]=u,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}}),3088:(function(i,a,o){"use strict";i.exports=u;var s=o(3140);function u(l,f){for(var c=f.length|0,h=l.length,d=[new Array(c),new Array(c)],p=0;p0){O=d[G][P][0],U=G;break}F=O[U^1];for(var j=0;j<2;++j)for(var W=d[j][P],N=0;N0&&(O=H,F=re,U=j)}return M||O&&v(O,U),F}function E(m,P){var M=d[P][m][0],O=[m];v(M,P);for(var F=M[P^1],U=P;;){for(;F!==m;)O.push(F),F=C(O[O.length-2],F,!1);if(d[0][m].length+d[1][m].length===0)break;var G=O[O.length-1],j=m,W=O[1],N=C(G,j,!0);if(s(f[G],f[j],f[W],f[N])<0)break;O.push(m),F=C(G,j)}return O}function A(m,P){return P[1]===P[P.length-1]}for(var p=0;p0;){var k=d[0][p].length,S=E(p,L);A(x,S)?x.push.apply(x,S):(x.length>0&&b.push(x),x=S)}x.length>0&&b.push(x)}return b}}),5609:(function(i,a,o){"use strict";i.exports=u;var s=o(3134);function u(l,f){for(var c=s(l,f.length),h=new Array(f.length),d=new Array(f.length),p=[],y=0;y0;){var v=p.pop();h[v]=!1;for(var C=c[v],y=0;y0}k=k.filter(S);for(var m=k.length,P=new Array(m),M=new Array(m),x=0;x0;){var ce=Ie.pop(),je=Ce[ce];h(je,function(Ke,zt){return Ke-zt});var rt=je.length,bt=ge[ce],Ot;if(bt===0){var W=k[ce];Ot=[W]}for(var x=0;x=0)&&(ge[it]=bt^1,Ie.push(it),bt===0)){var W=k[it];He(W)||(W.reverse(),Ot.push(W))}}bt===0&&Be.push(Ot)}return Be}}),5085:(function(i,a,o){i.exports=C;var s=o(3250)[3],u=o(4209),l=o(3352),f=o(2478);function c(){return!0}function h(E){return function(A,L){var x=E[A];return x?!!x.queryPoint(L,c):!1}}function d(E){for(var A={},L=0;L0&&A[x]===L[0])k=E[x-1];else return 1;for(var S=1;k;){var m=k.key,P=s(L,m[0],m[1]);if(m[0][0]0)S=-1,k=k.right;else return 0;else if(P>0)k=k.left;else if(P<0)S=1,k=k.right;else return 0}return S}}function y(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function v(E,A){return function(x){return E(x[0],x[1])?0:A(x)}}function C(E){for(var A=E.length,L=[],x=[],k=0,S=0;S=y?(m=1,M=y+2*C+A):(m=-C/y,M=C*m+A)):(m=0,E>=0?(P=0,M=A):-E>=v?(P=1,M=v+2*E+A):(P=-E/v,M=E*P+A));else if(P<0)P=0,C>=0?(m=0,M=A):-C>=y?(m=1,M=y+2*C+A):(m=-C/y,M=C*m+A);else{var O=1/S;m*=O,P*=O,M=m*(y*m+b*P+2*C)+P*(b*m+v*P+2*E)+A}else{var F,U,G,j;m<0?(F=b+C,U=v+E,U>F?(G=U-F,j=y-2*b+v,G>=j?(m=1,P=0,M=y+2*C+A):(m=G/j,P=1-m,M=m*(y*m+b*P+2*C)+P*(b*m+v*P+2*E)+A)):(m=0,U<=0?(P=1,M=v+2*E+A):E>=0?(P=0,M=A):(P=-E/v,M=E*P+A))):P<0?(F=b+E,U=y+C,U>F?(G=U-F,j=y-2*b+v,G>=j?(P=1,m=0,M=v+2*E+A):(P=G/j,m=1-P,M=m*(y*m+b*P+2*C)+P*(b*m+v*P+2*E)+A)):(P=0,U<=0?(m=1,M=y+2*C+A):C>=0?(m=0,M=A):(m=-C/y,M=C*m+A))):(G=v+E-b-C,G<=0?(m=0,P=1,M=v+2*E+A):(j=y-2*b+v,G>=j?(m=1,P=0,M=y+2*C+A):(m=G/j,P=1-m,M=m*(y*m+b*P+2*C)+P*(b*m+v*P+2*E)+A)))}for(var W=1-m-P,p=0;p0){var v=c[d-1];if(s(y,v)===0&&l(v)!==b){d-=1;continue}}c[d++]=y}}return c.length=d,c}}),3233:(function(i){"use strict";var a="",o;i.exports=s;function s(u,l){if(typeof u!="string")throw new TypeError("expected a string");if(l===1)return u;if(l===2)return u+u;var f=u.length*l;if(o!==u||typeof o=="undefined")o=u,a="";else if(a.length>=f)return a.substr(0,f);for(;f>a.length&&l>1;)l&1&&(a+=u),l>>=1,u+=u;return a+=u,a=a.substr(0,f),a}}),3025:(function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}),7004:(function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,u=o[o.length-1],l=s,f=s-2;f>=0;--f){var c=u,h=o[f];u=c+h;var d=u-c,p=h-d;p&&(o[--l]=u,u=p)}for(var y=0,f=l;f0){if(U<=0)return G;j=F+U}else if(F<0){if(U>=0)return G;j=-(F+U)}else return G;var W=d*j;return G>=W||G<=-W?G:E(P,M,O)},function(P,M,O,F){var U=P[0]-F[0],G=M[0]-F[0],j=O[0]-F[0],W=P[1]-F[1],N=M[1]-F[1],H=O[1]-F[1],re=P[2]-F[2],ae=M[2]-F[2],me=O[2]-F[2],Ce=G*H,Ee=j*N,de=j*W,te=U*H,Se=U*N,Te=G*W,be=re*(Ce-Ee)+ae*(de-te)+me*(Se-Te),He=(Math.abs(Ce)+Math.abs(Ee))*Math.abs(re)+(Math.abs(de)+Math.abs(te))*Math.abs(ae)+(Math.abs(Se)+Math.abs(Te))*Math.abs(me),Ie=p*He;return be>Ie||-be>Ie?be:A(P,M,O,F)}];function x(m){var P=L[m.length];return P||(P=L[m.length]=C(m.length)),P.apply(void 0,m)}function k(m,P,M,O,F,U,G){return function(W,N,H,re,ae){switch(arguments.length){case 0:case 1:return 0;case 2:return O(W,N);case 3:return F(W,N,H);case 4:return U(W,N,H,re);case 5:return G(W,N,H,re,ae)}for(var me=new Array(arguments.length),Ce=0;Ce0&&y>0||p<0&&y<0)return!1;var b=s(h,f,c),v=s(d,f,c);return b>0&&v>0||b<0&&v<0?!1:p===0&&y===0&&b===0&&v===0?u(f,c,h,d):!0}}),8545:(function(i){"use strict";i.exports=o;function a(s,u){var l=s+u,f=l-s,c=l-f,h=u-f,d=s-c,p=d+h;return p?[p,l]:[l]}function o(s,u){var l=s.length|0,f=u.length|0;if(l===1&&f===1)return a(s[0],-u[0]);var c=l+f,h=new Array(c),d=0,p=0,y=0,b=Math.abs,v=s[p],C=b(v),E=-u[y],A=b(E),L,x;C=f?(L=v,p+=1,p=f?(L=v,p+=1,p>1,E=c[2*C+1];if(E===y)return C;y>1,E=c[2*C+1];if(E===y)return C;y>1,E=c[2*C+1];if(E===y)return C;y>1,E=c[2*C+1];if(E===y)return C;y>1,j=d(P[G],M);j<=0?(j===0&&(U=G),O=G+1):j>0&&(F=G-1)}return U}s=v;function C(P,M){for(var O=new Array(P.length),F=0,U=O.length;F=P.length||d(P[Ce],G)!==0););}return O}s=C;function E(P,M){if(!M)return C(b(L(P,0)),P,0);for(var O=new Array(M),F=0;F>>H&1&&N.push(U[H]);M.push(N)}return y(M)}s=A;function L(P,M){if(M<0)return[];for(var O=[],F=(1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}}),2014:(function(i,a,o){"use strict";"use restrict";var s=o(3105),u=o(4623);function l(m){for(var P=0,M=Math.max,O=0,F=m.length;O>1,G=h(m[U],P);G<=0?(G===0&&(F=U),M=U+1):G>0&&(O=U-1)}return F}a.findCell=b;function v(m,P){for(var M=new Array(m.length),O=0,F=M.length;O=m.length||h(m[me],U)!==0););}return M}a.incidence=v;function C(m,P){if(!P)return v(y(A(m,0)),m,0);for(var M=new Array(P),O=0;O>>N&1&&W.push(F[N]);P.push(W)}return p(P)}a.explode=E;function A(m,P){if(P<0)return[];for(var M=[],O=(1<>1:(te>>1)-1}function O(te){for(var Se=P(te);;){var Te=Se,be=2*te+1,He=2*(te+1),Ie=te;if(be0;){var Te=M(te);if(Te>=0){var be=P(Te);if(Se0){var te=W[0];return m(0,re-1),re-=1,O(0),te}return-1}function G(te,Se){var Te=W[te];return C[Te]===Se?te:(C[Te]=-1/0,F(te),U(),C[Te]=Se,re+=1,F(re-1))}function j(te){if(!E[te]){E[te]=!0;var Se=b[te],Te=v[te];b[Te]>=0&&(b[Te]=Se),v[Se]>=0&&(v[Se]=Te),N[Se]>=0&&G(N[Se],S(Se)),N[Te]>=0&&G(N[Te],S(Te))}}for(var W=[],N=new Array(p),A=0;A>1;A>=0;--A)O(A);for(;;){var ae=U();if(ae<0||C[ae]>d)break;j(ae)}for(var me=[],A=0;A=0&&Te>=0&&Se!==Te){var be=N[Se],He=N[Te];be!==He&&de.push([be,He])}}),u.unique(u.normalize(de)),{positions:me,edges:de}}}),1303:(function(i,a,o){"use strict";i.exports=l;var s=o(3250);function u(f,c){var h,d;if(c[0][0]c[1][0])h=c[1],d=c[0];else{var p=Math.min(f[0][1],f[1][1]),y=Math.max(f[0][1],f[1][1]),b=Math.min(c[0][1],c[1][1]),v=Math.max(c[0][1],c[1][1]);return yv?p-v:y-v}var C,E;f[0][1]c[1][0])h=c[1],d=c[0];else return u(c,f);var p,y;if(f[0][0]f[1][0])p=f[1],y=f[0];else return-u(f,c);var b=s(h,d,y),v=s(h,d,p);if(b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;if(b=s(y,p,d),v=s(y,p,h),b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;return d[0]-y[0]}}),4209:(function(i,a,o){"use strict";i.exports=v;var s=o(2478),u=o(3840),l=o(3250),f=o(1303);function c(C,E,A){this.slabs=C,this.coordinates=E,this.horizontal=A}var h=c.prototype;function d(C,E){return C.y-E}function p(C,E){for(var A=null;C;){var L=C.key,x,k;L[0][0]0)if(E[0]!==L[1][0])A=C,C=C.right;else{var m=p(C.right,E);if(m)return m;C=C.left}else{if(E[0]!==L[1][0])return C;var m=p(C.right,E);if(m)return m;C=C.left}}return A}h.castUp=function(C){var E=s.le(this.coordinates,C[0]);if(E<0)return-1;var A=this.slabs[E],L=p(this.slabs[E],C),x=-1;if(L&&(x=L.value),this.coordinates[E]===C[0]){var k=null;if(L&&(k=L.key),E>0){var S=p(this.slabs[E-1],C);S&&(k?f(S.key,k)>0&&(k=S.key,x=S.value):(x=S.value,k=S.key))}var m=this.horizontal[E];if(m.length>0){var P=s.ge(m,C[1],d);if(P=m.length)return x;M=m[P]}}if(M.start)if(k){var O=l(k[0],k[1],[C[0],M.y]);k[0][0]>k[1][0]&&(O=-O),O>0&&(x=M.index)}else x=M.index;else M.y!==C[1]&&(x=M.index)}}}return x};function y(C,E,A,L){this.y=C,this.index=E,this.start=A,this.closed=L}function b(C,E,A,L){this.x=C,this.segment=E,this.create=A,this.index=L}function v(C){for(var E=C.length,A=2*E,L=new Array(A),x=0;x1&&(E=1);for(var A=1-E,L=p.length,x=new Array(L),k=0;k0||C>0&&x<0){var k=f(E,x,A,C);b.push(k),v.push(k.slice())}x<0?v.push(A.slice()):x>0?b.push(A.slice()):(b.push(A.slice()),v.push(A.slice())),C=x}return{positive:b,negative:v}}function h(p,y){for(var b=[],v=l(p[p.length-1],y),C=p[p.length-1],E=p[0],A=0;A0||v>0&&L<0)&&b.push(f(C,L,E,v)),L>=0&&b.push(E.slice()),v=L}return b}function d(p,y){for(var b=[],v=l(p[p.length-1],y),C=p[p.length-1],E=p[0],A=0;A0||v>0&&L<0)&&b.push(f(C,L,E,v)),L<=0&&b.push(E.slice()),v=L}return b}}),3387:(function(i,a,o){var s;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function l(p){return c(d(p),arguments)}function f(p,y){return l.apply(null,[p].concat(y||[]))}function c(p,y){var b=1,v=p.length,C,E="",A,L,x,k,S,m,P,M;for(A=0;A=0),x.type){case"b":C=parseInt(C,10).toString(2);break;case"c":C=String.fromCharCode(parseInt(C,10));break;case"d":case"i":C=parseInt(C,10);break;case"j":C=JSON.stringify(C,null,x.width?parseInt(x.width):0);break;case"e":C=x.precision?parseFloat(C).toExponential(x.precision):parseFloat(C).toExponential();break;case"f":C=x.precision?parseFloat(C).toFixed(x.precision):parseFloat(C);break;case"g":C=x.precision?String(Number(C.toPrecision(x.precision))):parseFloat(C);break;case"o":C=(parseInt(C,10)>>>0).toString(8);break;case"s":C=String(C),C=x.precision?C.substring(0,x.precision):C;break;case"t":C=String(!!C),C=x.precision?C.substring(0,x.precision):C;break;case"T":C=Object.prototype.toString.call(C).slice(8,-1).toLowerCase(),C=x.precision?C.substring(0,x.precision):C;break;case"u":C=parseInt(C,10)>>>0;break;case"v":C=C.valueOf(),C=x.precision?C.substring(0,x.precision):C;break;case"x":C=(parseInt(C,10)>>>0).toString(16);break;case"X":C=(parseInt(C,10)>>>0).toString(16).toUpperCase();break}u.json.test(x.type)?E+=C:(u.number.test(x.type)&&(!P||x.sign)?(M=P?"+":"-",C=C.toString().replace(u.sign,"")):M="",S=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",m=x.width-(M+C).length,k=x.width&&m>0?S.repeat(m):"",E+=x.align?M+C+k:S==="0"?M+k+C:k+M+C)}return E}var h=Object.create(null);function d(p){if(h[p])return h[p];for(var y=p,b,v=[],C=0;y;){if((b=u.text.exec(y))!==null)v.push(b[0]);else if((b=u.modulo.exec(y))!==null)v.push("%");else if((b=u.placeholder.exec(y))!==null){if(b[2]){C|=1;var E=[],A=b[2],L=[];if((L=u.key.exec(A))!==null)for(E.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=u.key_access.exec(A))!==null)E.push(L[1]);else if((L=u.index_access.exec(A))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else C|=2;if(C===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");v.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");y=y.substring(b[0].length)}return h[p]=v}a.sprintf=l,a.vsprintf=f,typeof window!="undefined"&&(window.sprintf=l,window.vsprintf=f,s=(function(){return{sprintf:l,vsprintf:f}}).call(a,o,a,i),s!==void 0&&(i.exports=s))})()}),3711:(function(i,a,o){"use strict";i.exports=d;var s=o(2640),u=o(781),l={"2d":function(p,y,b){var v=p({order:y,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,A,L,x){return E>x|0},vertex:function(E,A,L,x,k,S,m,P,M,O,F,U,G){var j=(m<<0)+(P<<1)+(M<<2)+(O<<3)|0;if(!(j===0||j===15))switch(j){case 0:F.push([E-.5,A-.5]);break;case 1:F.push([E-.25-.25*(x+L-2*G)/(L-x),A-.25-.25*(k+L-2*G)/(L-k)]);break;case 2:F.push([E-.75-.25*(-x-L+2*G)/(x-L),A-.25-.25*(S+x-2*G)/(x-S)]);break;case 3:F.push([E-.5,A-.5-.5*(k+L+S+x-4*G)/(L-k+x-S)]);break;case 4:F.push([E-.25-.25*(S+k-2*G)/(k-S),A-.75-.25*(-k-L+2*G)/(k-L)]);break;case 5:F.push([E-.5-.5*(x+L+S+k-4*G)/(L-x+k-S),A-.5]);break;case 6:F.push([E-.5-.25*(-x-L+S+k)/(x-L+k-S),A-.5-.25*(-k-L+S+x)/(k-L+x-S)]);break;case 7:F.push([E-.75-.25*(S+k-2*G)/(k-S),A-.75-.25*(S+x-2*G)/(x-S)]);break;case 8:F.push([E-.75-.25*(-S-k+2*G)/(S-k),A-.75-.25*(-S-x+2*G)/(S-x)]);break;case 9:F.push([E-.5-.25*(x+L+-S-k)/(L-x+S-k),A-.5-.25*(k+L+-S-x)/(L-k+S-x)]);break;case 10:F.push([E-.5-.5*(-x-L+-S-k+4*G)/(x-L+S-k),A-.5]);break;case 11:F.push([E-.25-.25*(-S-k+2*G)/(S-k),A-.75-.25*(k+L-2*G)/(L-k)]);break;case 12:F.push([E-.5,A-.5-.5*(-k-L+-S-x+4*G)/(k-L+S-x)]);break;case 13:F.push([E-.75-.25*(x+L-2*G)/(L-x),A-.25-.25*(-S-x+2*G)/(S-x)]);break;case 14:F.push([E-.25-.25*(-x-L+2*G)/(x-L),A-.25-.25*(-k-L+2*G)/(k-L)]);break;case 15:F.push([E-.5,A-.5]);break}},cell:function(E,A,L,x,k,S,m,P,M){k?P.push([E,A]):P.push([A,E])}});return function(C,E){var A=[],L=[];return v(C,A,L,E),{positions:A,cells:L}}}};function f(p,y){var b=p.length+"d",v=l[b];if(v)return v(s,p,y)}function c(p,y){for(var b=u(p,y),v=b.length,C=new Array(v),E=new Array(v),A=0;AMath.max(x,k)?S[2]=1:x>Math.max(L,k)?S[0]=1:S[1]=1;for(var m=0,P=0,M=0;M<3;++M)m+=A[M]*A[M],P+=S[M]*A[M];for(var M=0;M<3;++M)S[M]-=P/m*A[M];return c(S,S),S}function b(A,L,x,k,S,m,P,M){this.center=s(x),this.up=s(k),this.right=s(S),this.radius=s([m]),this.angle=s([P,M]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var O=0;O<16;++O)this.computedMatrix[O]=.5;this.recalcMatrix(0)}var v=b.prototype;v.setDistanceLimits=function(A,L){A>0?A=Math.log(A):A=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},v.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},v.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,x=this.computedRight,k=0,S=0,m=0;m<3;++m)S+=L[m]*x[m],k+=L[m]*L[m];for(var P=Math.sqrt(k),M=0,m=0;m<3;++m)x[m]-=L[m]*S/k,M+=x[m]*x[m],L[m]/=P;for(var O=Math.sqrt(M),m=0;m<3;++m)x[m]/=O;var F=this.computedToward;f(F,L,x),c(F,F);for(var U=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],j=this.computedAngle[1],W=Math.cos(G),N=Math.sin(G),H=Math.cos(j),re=Math.sin(j),ae=this.computedCenter,me=W*H,Ce=N*H,Ee=re,de=-W*re,te=-N*re,Se=H,Te=this.computedEye,be=this.computedMatrix,m=0;m<3;++m){var He=me*x[m]+Ce*F[m]+Ee*L[m];be[4*m+1]=de*x[m]+te*F[m]+Se*L[m],be[4*m+2]=He,be[4*m+3]=0}var Ie=be[1],ge=be[5],Be=be[9],ce=be[2],je=be[6],rt=be[10],bt=ge*rt-Be*je,Ot=Be*ce-Ie*rt,it=Ie*je-ge*ce,Ke=d(bt,Ot,it);bt/=Ke,Ot/=Ke,it/=Ke,be[0]=bt,be[4]=Ot,be[8]=it;for(var m=0;m<3;++m)Te[m]=ae[m]+be[2+4*m]*U;for(var m=0;m<3;++m){for(var M=0,zt=0;zt<3;++zt)M+=be[m+4*zt]*Te[zt];be[12+m]=-M}be[15]=1},v.getMatrix=function(A,L){this.recalcMatrix(A);var x=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=x[k];return L}return x};var C=[0,0,0];v.rotate=function(A,L,x,k){if(this.angle.move(A,L,x),k){this.recalcMatrix(A);var S=this.computedMatrix;C[0]=S[2],C[1]=S[6],C[2]=S[10];for(var m=this.computedUp,P=this.computedRight,M=this.computedToward,O=0;O<3;++O)S[4*O]=m[O],S[4*O+1]=P[O],S[4*O+2]=M[O];l(S,S,k,C);for(var O=0;O<3;++O)m[O]=S[4*O],P[O]=S[4*O+1];this.up.set(A,m[0],m[1],m[2]),this.right.set(A,P[0],P[1],P[2])}},v.pan=function(A,L,x,k){L=L||0,x=x||0,k=k||0,this.recalcMatrix(A);var S=this.computedMatrix,m=Math.exp(this.computedRadius[0]),P=S[1],M=S[5],O=S[9],F=d(P,M,O);P/=F,M/=F,O/=F;var U=S[0],G=S[4],j=S[8],W=U*P+G*M+j*O;U-=P*W,G-=M*W,j-=O*W;var N=d(U,G,j);U/=N,G/=N,j/=N;var H=U*L+P*x,re=G*L+M*x,ae=j*L+O*x;this.center.move(A,H,re,ae);var me=Math.exp(this.computedRadius[0]);me=Math.max(1e-4,me+k),this.radius.set(A,Math.log(me))},v.translate=function(A,L,x,k){this.center.move(A,L||0,x||0,k||0)},v.setMatrix=function(A,L,x,k){var S=1;typeof x=="number"&&(S=x|0),(S<0||S>3)&&(S=1);var m=(S+2)%3,P=(S+1)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var M=L[S],O=L[S+4],F=L[S+8];if(k){var G=Math.abs(M),j=Math.abs(O),W=Math.abs(F),N=Math.max(G,j,W);G===N?(M=M<0?-1:1,O=F=0):W===N?(F=F<0?-1:1,M=O=0):(O=O<0?-1:1,M=F=0)}else{var U=d(M,O,F);M/=U,O/=U,F/=U}var H=L[m],re=L[m+4],ae=L[m+8],me=H*M+re*O+ae*F;H-=M*me,re-=O*me,ae-=F*me;var Ce=d(H,re,ae);H/=Ce,re/=Ce,ae/=Ce;var Ee=O*ae-F*re,de=F*H-M*ae,te=M*re-O*H,Se=d(Ee,de,te);Ee/=Se,de/=Se,te/=Se,this.center.jump(A,Me,oe,Ne),this.radius.idle(A),this.up.jump(A,M,O,F),this.right.jump(A,H,re,ae);var Te,be;if(S===2){var He=L[1],Ie=L[5],ge=L[9],Be=He*H+Ie*re+ge*ae,ce=He*Ee+Ie*de+ge*te;Ot<0?Te=-Math.PI/2:Te=Math.PI/2,be=Math.atan2(ce,Be)}else{var je=L[2],rt=L[6],bt=L[10],Ot=je*M+rt*O+bt*F,it=je*H+rt*re+bt*ae,Ke=je*Ee+rt*de+bt*te;Te=Math.asin(p(Ot)),be=Math.atan2(Ke,it)}this.angle.jump(A,be,Te),this.recalcMatrix(A);var zt=L[2],Mt=L[6],kt=L[10],$e=this.computedMatrix;u($e,L);var Re=$e[15],Me=$e[12]/Re,oe=$e[13]/Re,Ne=$e[14]/Re,vt=Math.exp(this.computedRadius[0]);this.center.jump(A,Me-zt*vt,oe-Mt*vt,Ne-kt*vt)},v.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},v.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},v.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},v.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},v.lookAt=function(A,L,x,k){this.recalcMatrix(A),L=L||this.computedEye,x=x||this.computedCenter,k=k||this.computedUp;var S=k[0],m=k[1],P=k[2],M=d(S,m,P);if(!(M<1e-6)){S/=M,m/=M,P/=M;var O=L[0]-x[0],F=L[1]-x[1],U=L[2]-x[2],G=d(O,F,U);if(!(G<1e-6)){O/=G,F/=G,U/=G;var j=this.computedRight,W=j[0],N=j[1],H=j[2],re=S*W+m*N+P*H;W-=re*S,N-=re*m,H-=re*P;var ae=d(W,N,H);if(!(ae<.01&&(W=m*U-P*F,N=P*O-S*U,H=S*F-m*O,ae=d(W,N,H),ae<1e-6))){W/=ae,N/=ae,H/=ae,this.up.set(A,S,m,P),this.right.set(A,W,N,H),this.center.set(A,x[0],x[1],x[2]),this.radius.set(A,Math.log(G));var me=m*H-P*N,Ce=P*W-S*H,Ee=S*N-m*W,de=d(me,Ce,Ee);me/=de,Ce/=de,Ee/=de;var te=S*O+m*F+P*U,Se=W*O+N*F+H*U,Te=me*O+Ce*F+Ee*U,be=Math.asin(p(te)),He=Math.atan2(Te,Se),Ie=this.angle._state,ge=Ie[Ie.length-1],Be=Ie[Ie.length-2];ge=ge%(2*Math.PI);var ce=Math.abs(ge+2*Math.PI-He),je=Math.abs(ge-He),rt=Math.abs(ge-2*Math.PI-He);ce0?H.pop():new ArrayBuffer(W)}a.mallocArrayBuffer=C;function E(j){return new Uint8Array(C(j),0,j)}a.mallocUint8=E;function A(j){return new Uint16Array(C(2*j),0,j)}a.mallocUint16=A;function L(j){return new Uint32Array(C(4*j),0,j)}a.mallocUint32=L;function x(j){return new Int8Array(C(j),0,j)}a.mallocInt8=x;function k(j){return new Int16Array(C(2*j),0,j)}a.mallocInt16=k;function S(j){return new Int32Array(C(4*j),0,j)}a.mallocInt32=S;function m(j){return new Float32Array(C(4*j),0,j)}a.mallocFloat32=a.mallocFloat=m;function P(j){return new Float64Array(C(8*j),0,j)}a.mallocFloat64=a.mallocDouble=P;function M(j){return f?new Uint8ClampedArray(C(j),0,j):E(j)}a.mallocUint8Clamped=M;function O(j){return c?new BigUint64Array(C(8*j),0,j):null}a.mallocBigUint64=O;function F(j){return h?new BigInt64Array(C(8*j),0,j):null}a.mallocBigInt64=F;function U(j){return new DataView(C(j),0,j)}a.mallocDataView=U;function G(j){j=s.nextPow2(j);var W=s.log2(j),N=y[W];return N.length>0?N.pop():new l(j)}a.mallocBuffer=G,a.clearCache=function(){for(var W=0;W<32;++W)d.UINT8[W].length=0,d.UINT16[W].length=0,d.UINT32[W].length=0,d.INT8[W].length=0,d.INT16[W].length=0,d.INT32[W].length=0,d.FLOAT[W].length=0,d.DOUBLE[W].length=0,d.BIGUINT64[W].length=0,d.BIGINT64[W].length=0,d.UINT8C[W].length=0,p[W].length=0,y[W].length=0}}),1755:(function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var u=0;u",H="",re=N.length,ae=H.length,me=G[0]===C||G[0]===L,Ce=0,Ee=-ae;Ce>-1&&(Ce=j.indexOf(N,Ce),!(Ce===-1||(Ee=j.indexOf(H,Ce+re),Ee===-1)||Ee<=Ce));){for(var de=Ce;de=Ee)W[de]=null,j=j.substr(0,de)+" "+j.substr(de+1);else if(W[de]!==null){var te=W[de].indexOf(G[0]);te===-1?W[de]+=G:me&&(W[de]=W[de].substr(0,te+1)+(1+parseInt(W[de][te+1]))+W[de].substr(te+2))}var Se=Ce+re,Te=j.substr(Se,Ee-Se),be=Te.indexOf(N);be!==-1?Ce=be:Ce=Ee+ae}return W}function S(U,G,j){for(var W=G.textAlign||"start",N=G.textBaseline||"alphabetic",H=[1<<30,1<<30],re=[0,0],ae=U.length,me=0;me/g,` +`):j=j.replace(/\/g," ");var re="",ae=[];for(ge=0;ge-1?parseInt(oe[1+lt]):0,et=We>-1?parseInt(Ne[1+We]):0;Ve!==et&&(vt=vt.replace(it(),"?px "),je*=Math.pow(.75,et-Ve),vt=vt.replace("?px ",it())),ce+=.25*te*(et-Ve)}if(H.superscripts===!0){var tt=oe.indexOf(C),Lt=Ne.indexOf(C),jt=tt>-1?parseInt(oe[1+tt]):0,or=Lt>-1?parseInt(Ne[1+Lt]):0;jt!==or&&(vt=vt.replace(it(),"?px "),je*=Math.pow(.75,or-jt),vt=vt.replace("?px ",it())),ce-=.25*te*(or-jt)}if(H.bolds===!0){var yr=oe.indexOf(p)>-1,vr=Ne.indexOf(p)>-1;!yr&&vr&&(Vt?vt=vt.replace("italic ","italic bold "):vt="bold "+vt),yr&&!vr&&(vt=vt.replace("bold ",""))}if(H.italics===!0){var Vt=oe.indexOf(b)>-1,Pe=Ne.indexOf(b)>-1;!Vt&&Pe&&(vt="italic "+vt),Vt&&!Pe&&(vt=vt.replace("italic ",""))}G.font=vt}for(Ie=0;Ie0&&(N=W.size),W.lineSpacing&&W.lineSpacing>0&&(H=W.lineSpacing),W.styletags&&W.styletags.breaklines&&(re.breaklines=!!W.styletags.breaklines),W.styletags&&W.styletags.bolds&&(re.bolds=!!W.styletags.bolds),W.styletags&&W.styletags.italics&&(re.italics=!!W.styletags.italics),W.styletags&&W.styletags.subscripts&&(re.subscripts=!!W.styletags.subscripts),W.styletags&&W.styletags.superscripts&&(re.superscripts=!!W.styletags.superscripts)),j.font=[W.fontStyle,W.fontVariant,W.fontWeight,N+"px",W.font].filter(function(me){return me}).join(" "),j.textAlign="start",j.textBaseline="alphabetic",j.direction="ltr";var ae=m(G,j,U,N,H,re);return O(ae,W,N)}}),1538:(function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(M){M.permitHostObjects___&&M.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var l=new u,f=Object.freeze({});if(l.set(f,1),l.get(f)!==1)s=!0;else{i.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,p=Object.isExtensible,y="weakmap:",b=y+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),C=new Uint8Array(v);crypto.getRandomValues(C),b=y+"rand:"+Array.prototype.map.call(C,function(M){return(M%36).toString(36)}).join("")+"___"}function E(M){return!(M.substr(0,y.length)==y&&M.substr(M.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(O){return h(O).filter(E)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(O){return A(O).filter(E)}})}function L(M){if(M!==Object(M))throw new TypeError("Not an object: "+M);var O=M[b];if(O&&O.key===M)return O;if(p(M)){O={key:M};try{return d(M,b,{value:O,writable:!1,enumerable:!1,configurable:!1}),O}catch(F){return}}}(function(){var M=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),M(G)}});var O=Object.seal;d(Object,"seal",{value:function(G){return L(G),O(G)}});var F=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),F(G)}})})();function x(M){return M.prototype=null,Object.freeze(M)}var k=!1;function S(){!k&&typeof console!="undefined"&&(k=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var m=0,P=function(){this instanceof P||S();var M=[],O=[],F=m++;function U(N,H){var re,ae=L(N);return ae?F in ae?ae[F]:H:(re=M.indexOf(N),re>=0?O[re]:H)}function G(N){var H=L(N);return H?F in H:M.indexOf(N)>=0}function j(N,H){var re,ae=L(N);return ae?ae[F]=H:(re=M.indexOf(N),re>=0?O[re]=H:(re=M.length,O[re]=H,M[re]=N)),this}function W(N){var H=L(N),re,ae;return H?F in H&&delete H[F]:(re=M.indexOf(N),re<0?!1:(ae=M.length-1,M[re]=void 0,O[re]=O[ae],M[re]=M[ae],M.length=ae,O.length=ae,!0))}return Object.create(P.prototype,{get___:{value:x(U)},has___:{value:x(G)},set___:{value:x(j)},delete___:{value:x(W)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(O,F){return this.get___(O,F)},writable:!0,configurable:!0},has:{value:function(O){return this.has___(O)},writable:!0,configurable:!0},set:{value:function(O,F){return this.set___(O,F)},writable:!0,configurable:!0},delete:{value:function(O){return this.delete___(O)},writable:!0,configurable:!0}}),typeof u=="function"?(function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function M(){this instanceof P||S();var O=new u,F=void 0,U=!1;function G(H,re){return F?O.has(H)?O.get(H):F.get___(H,re):O.get(H,re)}function j(H){return O.has(H)||(F?F.has___(H):!1)}var W;s?W=function(H,re){return O.set(H,re),O.has(H)||(F||(F=new P),F.set(H,re)),this}:W=function(H,re){if(U)try{O.set(H,re)}catch(ae){F||(F=new P),F.set___(H,re)}else O.set(H,re);return this};function N(H){var re=!!O.delete(H);return F&&F.delete___(H)||re}return Object.create(P.prototype,{get___:{value:x(G)},has___:{value:x(j)},set___:{value:x(W)},delete___:{value:x(N)},permitHostObjects___:{value:x(function(H){if(H===o)U=!0;else throw new Error("bogus call to permitHostObjects___")})}})}M.prototype=P.prototype,i.exports=M,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()}),236:(function(i,a,o){var s=o(8284);i.exports=u;function u(){var l={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var c=f.valueOf(l);return c&&c.identity===l?c:s(f,l)}}}),8284:(function(i){i.exports=a;function a(o,s){var u={identity:s},l=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(f){return f!==s?l.apply(this,arguments):u},writable:!0}),u}}),606:(function(i,a,o){var s=o(236);i.exports=u;function u(){var l=s();return{get:function(f,c){var h=l(f);return h.hasOwnProperty("value")?h.value:c},set:function(f,c){return l(f).value=c,this},has:function(f){return"value"in l(f)},delete:function(f){return delete l(f).value}}}}),3349:(function(i){"use strict";function a(){return function(c,h,d,p,y,b){var v=c[0],C=d[0],E=[0],A=C;p|=0;var L=0,x=C;for(L=0;L=0!=S>=0&&y.push(E[0]+.5+.5*(k+S)/(k-S))}p+=x,++E[0]}}}function o(){return a()}var s=o;function u(c){var h={};return function(p,y,b){var v=p.dtype,C=p.order,E=[v,C.join()].join(),A=h[E];return A||(h[E]=A=c([v,C])),A(p.shape.slice(0),p.data,p.stride,p.offset|0,y,b)}}function l(c){return u(s.bind(void 0,c))}function f(c){return l({funcName:c.funcName})}i.exports=f({funcName:"zeroCrossings"})}),781:(function(i,a,o){"use strict";i.exports=u;var s=o(3349);function u(l,f){var c=[];return f=+f||0,s(l.hi(l.shape[0]-1),c,f),c}}),7790:(function(){})},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}})()})(),(function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}})();var n=r(1964);Vze.exports=n})()});var FX=we((Qyr,Gze)=>{"use strict";Gze.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Xze=we((egr,jze)=>{"use strict";var Hze=FX();jze.exports=pRt;var Wze={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function pRt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),Hze[e])r=Hze[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=t[1],l=u==="rgb",a=u.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(Wze[h]!==void 0)return Wze[h]}return parseFloat(h)}),u===a&&r.push(1),n=l||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var Yze=we((tgr,Zze)=>{"use strict";var vRt=Xze();Zze.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=vRt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=mRt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function mRt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}});var ak=we((rgr,Kze)=>{Kze.exports=yRt;function yRt(e,t,r){return tr?r:e:et?t:e}});var iF=we((igr,Jze)=>{Jze.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var lx=we((ngr,$ze)=>{"use strict";var gRt=Yze(),nF=ak(),_Rt=iF();$ze.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=_Rt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=gRt(t),t[0]/=255,t[1]/=255,t[2]/=255),xRt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=nF(Math.floor(t[0]*255),0,255),i[1]=nF(Math.floor(t[1]*255),0,255),i[2]=nF(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:nF(Math.floor(t[3]*255),0,255)),i)};function xRt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var a1=we((agr,Qze)=>{"use strict";var bRt=lx();function wRt(e){return e?bRt(e):[0,0,0,1]}Qze.exports=wRt});var o1=we((ogr,oIe)=>{"use strict";var nIe=ku(),ARt=hd(),aF=lx(),oF=_c(),TRt=Bh().defaultLine,eIe=Jd().isArrayOrTypedArray,OX=aF(TRt),aIe=1;function tIe(e,t){var r=e;return r[3]*=t,r}function rIe(e){if(nIe(e))return OX;var t=aF(e);return t.length?t:OX}function iIe(e){return nIe(e)?e:aIe}function SRt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=eIe(n),a=eIe(t),o=oF.extractOpts(e),s=[],u,l,f,c,h;if(o.colorscale!==void 0?u=oF.makeColorScaleFuncFromTrace(e):u=rIe,i?l=function(p,y){return p[y]===void 0?OX:aF(u(p[y]))}:l=rIe,a?f=function(p,y){return p[y]===void 0?aIe:iIe(p[y])}:f=iIe,i||a)for(var d=0;d{"use strict";sIe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var sF=we((lgr,lIe)=>{"use strict";lIe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var fIe=we((ugr,uIe)=>{"use strict";var ERt=$l();function qX(e,t,r,n){if(!t||!t.visible)return null;for(var i=ERt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var c=n.c2l(l);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function kRt(e){for(var t=0;t{"use strict";var LRt=qd().gl_line3d,cIe=qd().gl_scatter3d,PRt=qd().gl_error3d,zRt=qd().gl_mesh3d,IRt=qd().delaunay_triangulate,s1=ei(),mIe=a1(),lF=o1().formatColor,RRt=U3(),NX=BX(),DRt=sF(),FRt=wu(),ORt=iv().appendArrayPointValue,BRt=fIe();function yIe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var VX=yIe.prototype;VX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(s1.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function qRt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function dIe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function URt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var l=qRt(s.position,s.delaunayColor,s.delaunayAxis);l.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(l):(l.gl=t,this.delaunayMesh=zRt(l),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};VX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function WRt(e,t){var r=new yIe(e,t.uid);return r.update(t),r}gIe.exports=WRt});var XX=we((cgr,AIe)=>{"use strict";var l1=Zc(),jRt=gc(),jX=nc(),GX=Xc().axisHoverFormat,{hovertemplateAttrs:XRt,texttemplateAttrs:ZRt,templatefallbackAttrs:xIe}=Of(),bIe=Vf(),YRt=BX(),KRt=sF(),$m=Su().extendFlat,JRt=Sc().overrideAll,wIe=r_(),$Rt=l1.line,Q2=l1.marker,QRt=Q2.line,eDt=$m({width:$Rt.width,dash:{valType:"enumerated",values:wIe(YRt),dflt:"solid"}},jX("line"));function HX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var WX=AIe.exports=JRt({x:l1.x,y:l1.y,z:{valType:"data_array"},text:$m({},l1.text,{}),texttemplate:ZRt(),texttemplatefallback:xIe({editType:"calc"}),hovertext:$m({},l1.hovertext,{}),hovertemplate:XRt(),hovertemplatefallback:xIe(),xhoverformat:GX("x"),yhoverformat:GX("y"),zhoverformat:GX("z"),mode:$m({},l1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:HX("x"),y:HX("y"),z:HX("z")},connectgaps:l1.connectgaps,line:eDt,marker:$m({symbol:{valType:"enumerated",values:wIe(KRt),dflt:"circle",arrayOk:!0},size:$m({},Q2.size,{dflt:8}),sizeref:Q2.sizeref,sizemin:Q2.sizemin,sizemode:Q2.sizemode,opacity:$m({},Q2.opacity,{arrayOk:!1}),colorbar:Q2.colorbar,line:$m({width:$m({},QRt.width,{arrayOk:!1})},jX("marker.line"))},jX("marker")),textposition:$m({},l1.textposition,{dflt:"top center"}),textfont:jRt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:bIe.opacity,hoverinfo:$m({},bIe.hoverinfo)},"calc","nested");WX.x.editType=WX.y.editType=WX.z.editType="calc+clearAxisTypes"});var MIe=we((hgr,SIe)=>{"use strict";var TIe=$l(),tDt=ei(),ZX=lc(),rDt=$v(),iDt=R0(),nDt=D0(),aDt=XX();SIe.exports=function(t,r,n,i){function a(d,p){return tDt.coerce(t,r,aDt,d,p)}var o=oDt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),ZX.hasMarkers(r)&&rDt(t,r,n,i,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),ZX.hasLines(r)&&(a("connectgaps"),iDt(t,r,n,i,a)),ZX.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),nDt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,u=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||u);for(var l=["x","y","z"],f=0;f<3;++f){var c="projection."+l[f];a(c+".show")&&(a(c+".opacity"),a(c+".scale"))}var h=TIe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||u||n,{axis:"z"}),h(t,r,s||u||n,{axis:"y",inherit:"z"}),h(t,r,s||u||n,{axis:"x",inherit:"z"})};function oDt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),u=TIe.getComponentMethod("calendars","handleTraceDefaults");return u(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var kIe=we((dgr,EIe)=>{"use strict";var sDt=Ry(),lDt=F0();EIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return sDt(n,r),lDt(t,r),n}});var LIe=we((pgr,CIe)=>{CIe.exports=uDt;function uDt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var fDt=LIe();PIe.exports=function(t){return fDt("webgl",t)}});var YX=we((mgr,RIe)=>{"use strict";var IIe=jl(),cDt=function(){};RIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=cDt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=IIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=IIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var OIe=we((ygr,FIe)=>{"use strict";var ew=a1(),hDt=ei(),dDt=["xaxis","yaxis","zaxis"];function DIe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var pDt=DIe.prototype;pDt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[dDt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?hDt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=ew(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=ew(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=ew(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=ew(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=ew(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=ew(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=ew(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function vDt(e,t){var r=new DIe;return r.merge(e,t),r}FIe.exports=vDt});var NIe=we((ggr,qIe)=>{"use strict";var mDt=a1(),yDt=["xaxis","yaxis","zaxis"];function BIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var gDt=BIe.prototype;gDt.merge=function(e){for(var t=0;t<3;++t){var r=e[yDt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=mDt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function _Dt(e){var t=new BIe;return t.merge(e),t}qIe.exports=_Dt});var GIe=we((_gr,VIe)=>{"use strict";VIe.exports=TDt;var UIe=wu(),xDt=ei(),bDt=["xaxis","yaxis","zaxis"],wDt=[0,0,0];function ADt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=l,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){wDt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var f=0;f<2;++f)t.bounds[f][a]=e.glplot.bounds[f][a]}e.contourLevels=ADt(i)}});var KIe=we((xgr,YIe)=>{"use strict";var jIe=qd().gl_plot3d,SDt=jIe.createCamera,HIe=jIe.createScene,MDt=zIe(),EDt=GP(),cF=$l(),fv=ei(),fF=fv.preserveDrawingBuffer(),hF=wu(),Qm=Vc(),kDt=a1(),CDt=YX(),LDt=sV(),PDt=OIe(),zDt=NIe(),IDt=GIe(),RDt=Mm().applyAutorangeOptions,ok,uF,XIe=!1;function ZIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=PDt(t,t[this.id]),this.spikeOptions=zDt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=cF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=cF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Ep=ZIe.prototype;Ep.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:fF,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!uF&&(ok=document.createElement("canvas"),uF=MDt({canvas:ok,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!uF))throw new Error("error creating static canvas/context for image server");t.gl=uF,t.canvas=ok}return t};var WIe=!0;Ep.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=HIe(t)}catch(n){if(e.staticMode||!WIe||fF)r=!1;else{fv.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{fF=t.glOptions.preserveDrawingBuffer=!0,e.glplot=HIe(t)}catch(i){fF=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return WIe=!1,r};Ep.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=SDt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Ep.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return CDt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){XIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*u.x,y:s*u.y,z:s*u.z})}a(e)}},EDt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Ep.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,u=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+u),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",u),IDt(e),e.glplot.axes.update(e.axesOptions);for(var l=Object.keys(e.traces),f=null,c=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(v.valueLabel=hF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+v.valueLabel),c.textLabel&&x.push(c.textLabel),L=x.join("
")):L=c.textLabel;var k={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:y._input,fullData:y,curveNumber:y.index,pointNumber:b};Qm.appendArrayPointValue(k,y,b),r._module.eventData&&(k=y._module.eventData(k,c,y,{},b));var S={points:[k]};if(e.fullSceneLayout.hovermode){var m=[];Qm.loneHover({trace:y,x:(.5+.5*p[0]/p[3])*s,y:(.5-.5*p[1]/p[3])*u,xLabel:v.xLabel,yLabel:v.yLabel,zLabel:v.zLabel,text:L,name:f.name,color:Qm.castHoverOption(y,b,"bgcolor")||f.color,borderColor:Qm.castHoverOption(y,b,"bordercolor"),fontFamily:Qm.castHoverOption(y,b,"font.family"),fontSize:Qm.castHoverOption(y,b,"font.size"),fontColor:Qm.castHoverOption(y,b,"font.color"),nameLength:Qm.castHoverOption(y,b,"namelength"),textAlign:Qm.castHoverOption(y,b,"align"),hovertemplate:fv.castOption(y,b,"hovertemplate"),hovertemplateLabels:fv.extendFlat({},k,v),eventData:[k]},{container:n,gd:t,inOut_bbox:m}),k.bbox=m[0]}c.distance<5&&(c.buttons||XIe)?t.emit("plotly_click",S):t.emit("plotly_hover",S),this.oldEventData=S}else Qm.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Ep.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){fv.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var sk=["xaxis","yaxis","zaxis"];function DDt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=sk[i],o=a.charAt(0),s=n[a],u=t[o],l=t[o+"calendar"],f=t["_"+o+"length"];if(!fv.isArrayOrTypedArray(u))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],f-1);else for(var c,h=0;h<(f||u.length);h++)if(fv.isArrayOrTypedArray(u[h]))for(var d=0;dy[1][o])y[0][o]=-1,y[1][o]=1;else{var M=y[1][o]-y[0][o];y[0][o]-=M/32,y[1][o]+=M/32}if(C=[y[0][o],y[1][o]],C=RDt(C,u),y[0][o]=C[0],y[1][o]=C[1],u.isReversed()){var O=y[0][o];y[0][o]=y[1][o],y[1][o]=O}}else C=u.range,y[0][o]=u.r2l(C[0]),y[1][o]=u.r2l(C[1]);y[0][o]===y[1][o]&&(y[0][o]-=1,y[1][o]+=1),b[o]=y[1][o]-y[0][o],u.range=[y[0][o],y[1][o]],u.limitRange(),n.glplot.setBounds(o,{min:u.range[0]*d[o],max:u.range[1]*d[o]})}var F,U=f.aspectmode;if(U==="cube")F=[1,1,1];else if(U==="manual"){var G=f.aspectratio;F=[G.x,G.y,G.z]}else if(U==="auto"||U==="data"){var j=[1,1,1];for(o=0;o<3;++o){u=f[sk[o]],l=u.type;var W=v[l];j[o]=Math.pow(W.acc,1/W.count)/d[o]}U==="data"||Math.max.apply(null,j)/Math.min.apply(null,j)<=4?F=j:F=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=F[0],f.aspectratio.y=c.aspectratio.y=F[1],f.aspectratio.z=c.aspectratio.z=F[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var N=f.domain||null,H=t._size||null;if(N&&H){var re=n.container.style;re.position="absolute",re.left=H.l+N.x[0]*H.w+"px",re.top=H.t+(1-N.y[1])*H.h+"px",re.width=H.w*(N.x[1]-N.x[0])+"px",re.height=H.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Ep.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function ODt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function BDt(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Ep.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),BDt(e.camera)};Ep.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,ODt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Ep.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=fv.nestedProperty(e,t.id+".camera"),i=n.get();function a(l,f,c,h){var d=["up","center","eye"],p=["x","y","z"];return f[d[c]]&&l[d[c]][p[h]]===f[d[c]][p[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var u=0;u<3;u++)if(!a(r,i,s,u)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Ep.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=fv.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Ep.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,u,l=t.isCameraChanged(e),f=t.isAspectChanged(e),c=l||f;if(c){var h={};if(l&&(n=t.getCamera(),i=fv.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),f&&(o=t.glplot.getAspectratio(),s=fv.nestedProperty(e,t.id+".aspectratio"),u=s.get(),h[t.id+".aspectratio"]=u),cF.call("_storeDirectGUIEdit",e,r._preGUI,h),l){i.set(n);var d=fv.nestedProperty(r,t.id+".camera");d.set(n)}if(f){s.set(o);var p=fv.nestedProperty(r,t.id+".aspectratio");p.set(o),t.glplot.redraw()}}return c};Ep.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,u=o.up.y,l=o.up.z;if(l/Math.sqrt(s*s+u*u+l*l)<.999){var f=r.id+".camera.up",c={x:0,y:0,z:1},h={};h[f]=c;var d=i.layout;cF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,fv.nestedProperty(d,f).set(c)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function qDt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,u=0;u<3;++u)e[a+u]=Math.min(s*e[a+u],255)}}Ep.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(ok),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),qDt(a,n,i),NDt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),u=s.createImageData(n,i);u.data.set(a),s.putImageData(u,0,0);var l;switch(e){case"jpeg":l=o.toDataURL("image/jpeg");break;case"webp":l=o.toDataURL("image/webp");break;default:l=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(ok),l};Ep.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[sk[t]];hF.setConvert(r,e.fullLayout),r.setScale=fv.noop}};Ep.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},hF.setConvert(e._mockAxis,r)};YIe.exports=ZIe});var $Ie=we((bgr,JIe)=>{"use strict";JIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var JX=we((wgr,QIe)=>{"use strict";var UDt=jl(),ff=Dd(),KX=Su().extendFlat,VDt=Sc().overrideAll;QIe.exports=VDt({visible:ff.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:UDt.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:ff.color,categoryorder:ff.categoryorder,categoryarray:ff.categoryarray,title:{text:ff.title.text,font:ff.title.font},type:KX({},ff.type,{values:["-","linear","log","date","category"]}),autotypenumbers:ff.autotypenumbers,autorange:ff.autorange,autorangeoptions:{minallowed:ff.autorangeoptions.minallowed,maxallowed:ff.autorangeoptions.maxallowed,clipmin:ff.autorangeoptions.clipmin,clipmax:ff.autorangeoptions.clipmax,include:ff.autorangeoptions.include,editType:"plot"},rangemode:ff.rangemode,minallowed:ff.minallowed,maxallowed:ff.maxallowed,range:KX({},ff.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:ff.minor.tickmode,nticks:ff.nticks,tick0:ff.tick0,dtick:ff.dtick,tickvals:ff.tickvals,ticktext:ff.ticktext,ticks:ff.ticks,mirror:ff.mirror,ticklen:ff.ticklen,tickwidth:ff.tickwidth,tickcolor:ff.tickcolor,showticklabels:ff.showticklabels,labelalias:ff.labelalias,tickfont:ff.tickfont,tickangle:ff.tickangle,tickprefix:ff.tickprefix,showtickprefix:ff.showtickprefix,ticksuffix:ff.ticksuffix,showticksuffix:ff.showticksuffix,showexponent:ff.showexponent,exponentformat:ff.exponentformat,minexponent:ff.minexponent,separatethousands:ff.separatethousands,tickformat:ff.tickformat,tickformatstops:ff.tickformatstops,hoverformat:ff.hoverformat,showline:ff.showline,linecolor:ff.linecolor,linewidth:ff.linewidth,showgrid:ff.showgrid,gridcolor:KX({},ff.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:ff.gridwidth,zeroline:ff.zeroline,zerolinecolor:ff.zerolinecolor,zerolinewidth:ff.zerolinewidth},"plot","from-root")});var tZ=we((Agr,eRe)=>{"use strict";var $X=JX(),GDt=zc().attributes,QX=Su().extendFlat,HDt=ei().counterRegex;function eZ(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}eRe.exports={_arrayAttrRegexps:[HDt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:QX(eZ(0,0,1),{}),center:QX(eZ(0,0,0),{}),eye:QX(eZ(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:GDt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:$X,yaxis:$X,zaxis:$X,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var nRe=we((Tgr,iRe)=>{"use strict";var WDt=hd().mix,tRe=ei(),jDt=Lf(),XDt=JX(),ZDt=WU(),YDt=pE(),rRe=["xaxis","yaxis","zaxis"],KDt=13600/187;iRe.exports=function(t,r,n){var i,a;function o(l,f){return tRe.coerce(i,a,XDt,l,f)}for(var s=0;s{"use strict";var JDt=ei(),$Dt=jl(),QDt=$l(),e6t=B_(),t6t=nRe(),aRe=tZ(),r6t=Rd().getSubplotData,oRe="gl3d";sRe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=JDt.validate(t[o],aRe[o]);if(s)return t[o]}}e6t(t,r,n,{type:oRe,attributes:aRe,handleDefaults:i6t,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function i6t(e,t,r,n){for(var i=r("bgcolor"),a=$Dt.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var ux=we(cv=>{"use strict";var n6t=Sc().overrideAll,a6t=X1(),o6t=KIe(),s6t=Rd().getSubplotData,l6t=ei(),u6t=jv(),JT="gl3d",rZ="scene";cv.name=JT;cv.attr=rZ;cv.idRoot=rZ;cv.idRegex=cv.attrRegex=l6t.counterRegex("scene");cv.attributes=$Ie();cv.layoutAttributes=tZ();cv.baseLayoutAttrOverrides=n6t({hoverlabel:a6t.hoverlabel},"plot","nested");cv.supplyLayoutDefaults=lRe();cv.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[JT],a=0;a{"use strict";uRe.exports={plot:_Ie(),attributes:XX(),markerSymbols:sF(),supplyDefaults:MIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:kIe(),moduleType:"trace",name:"scatter3d",basePlotModule:ux(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var hRe=we((kgr,cRe)=>{"use strict";cRe.exports=fRe()});var lk=we((Cgr,vRe)=>{"use strict";var dRe=jl(),f6t=nc(),iZ=Xc().axisHoverFormat,{hovertemplateAttrs:c6t,templatefallbackAttrs:h6t}=Of(),pRe=Vf(),nZ=Su().extendFlat,d6t=Sc().overrideAll;function aZ(e){return{valType:"boolean",dflt:!1}}function oZ(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:aZ("x"),y:aZ("y"),z:aZ("z")},color:{valType:"color",dflt:dRe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:dRe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var sZ=vRe.exports=d6t(nZ({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:c6t(),hovertemplatefallback:h6t(),xhoverformat:iZ("x"),yhoverformat:iZ("y"),zhoverformat:iZ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},f6t("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:oZ("x"),y:oZ("y"),z:oZ("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:nZ({},pRe.hoverinfo),showlegend:nZ({},pRe.showlegend,{dflt:!1})}),"calc","nested");sZ.x.editType=sZ.y.editType=sZ.z.editType="calc+clearAxisTypes"});var uZ=we((Lgr,gRe)=>{"use strict";var p6t=$l(),mRe=ei(),v6t=nd(),m6t=lk(),lZ=.1;function y6t(e,t){for(var r=[],n=32,i=0;i{"use strict";var _Re=gp();xRe.exports=function(t,r){r.surfacecolor?_Re(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):_Re(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var ERe=we((zgr,MRe)=>{"use strict";var x6t=qd().gl_surface3d,$T=qd().ndarray,b6t=qd().ndarray_linear_interpolate.d2,w6t=dR(),A6t=pR(),uk=ei().isArrayOrTypedArray,T6t=o1().parseColorScale,wRe=a1(),S6t=_c().extractOpts;function TRe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var ey=TRe.prototype;ey.getXat=function(e,t,r,n){var i=uk(this.data.x)?uk(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};ey.getYat=function(e,t,r,n){var i=uk(this.data.y)?uk(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};ey.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};ey.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return uk(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function M6t(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var QT=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function E6t(e,t){if(e0){r=QT[n];break}return r}function C6t(e,t){if(!(e<1||t<1)){for(var r=fZ(e),n=fZ(t),i=1,a=0;adF;)n--,n/=k6t(n),n++,n1?i:1};function P6t(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function z6t(e,t,r){return I6t(e,t,P6t,r),e}function I6t(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[l]=h),this.maxValues[l]{"use strict";kRe.exports={attributes:lk(),supplyDefaults:uZ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:bRe(),plot:ERe(),moduleType:"trace",name:"surface",basePlotModule:ux(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var PRe=we((Rgr,LRe)=>{"use strict";LRe.exports=CRe()});var eS=we((Dgr,IRe)=>{"use strict";var F6t=nc(),cZ=Xc().axisHoverFormat,{hovertemplateAttrs:O6t,templatefallbackAttrs:B6t}=Of(),fx=lk(),zRe=Vf(),cx=Su().extendFlat;IRe.exports=cx({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:O6t({editType:"calc"}),hovertemplatefallback:B6t({editType:"calc"}),xhoverformat:cZ("x"),yhoverformat:cZ("y"),zhoverformat:cZ("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},F6t("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:fx.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:cx({},fx.contours.x.show,{}),color:fx.contours.x.color,width:fx.contours.x.width,editType:"calc"},lightposition:{x:cx({},fx.lightposition.x,{dflt:1e5}),y:cx({},fx.lightposition.y,{dflt:1e5}),z:cx({},fx.lightposition.z,{dflt:0}),editType:"calc"},lighting:cx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},fx.lighting),hoverinfo:cx({},zRe.hoverinfo,{editType:"calc"}),showlegend:cx({},zRe.showlegend,{dflt:!1})})});var vF=we((Fgr,DRe)=>{"use strict";var q6t=nc(),pF=Xc().axisHoverFormat,{hovertemplateAttrs:N6t,templatefallbackAttrs:U6t}=Of(),fk=eS(),RRe=Vf(),hZ=Su().extendFlat,V6t=Sc().overrideAll;function dZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function pZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var tS=DRe.exports=V6t(hZ({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:dZ("x"),y:dZ("y"),z:dZ("z")},caps:{x:pZ("x"),y:pZ("y"),z:pZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:N6t(),hovertemplatefallback:U6t(),xhoverformat:pF("x"),yhoverformat:pF("y"),zhoverformat:pF("z"),valuehoverformat:pF("value",1),showlegend:hZ({},RRe.showlegend,{dflt:!1})},q6t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:fk.opacity,lightposition:fk.lightposition,lighting:fk.lighting,flatshading:fk.flatshading,contour:fk.contour,hoverinfo:hZ({},RRe.hoverinfo)}),"calc","nested");tS.flatshading.dflt=!0;tS.lighting.facenormalsepsilon.dflt=0;tS.x.editType=tS.y.editType=tS.z.editType=tS.value.editType="calc+clearAxisTypes"});var vZ=we((Ogr,ORe)=>{"use strict";var G6t=ei(),H6t=$l(),W6t=vF(),j6t=nd();function X6t(e,t,r,n){function i(a,o){return G6t.coerce(e,t,W6t,a,o)}FRe(e,t,r,n,i)}function FRe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),u=i("y"),l=i("z"),f=i("value");if(!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length){t.visible=!1;return}var c=H6t.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(y){i(y+"hoverformat");var b="caps."+y,v=i(b+".show");v&&i(b+".fill");var C="slices."+y,E=i(C+".show");E&&(i(C+".fill"),i(C+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var p=i("contour.show");p&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(y){i(y)}),j6t(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}ORe.exports={supplyDefaults:X6t,supplyIsoDefaults:FRe}});var mF=we((Bgr,qRe)=>{"use strict";var yZ=ei(),Z6t=gp();function Y6t(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=$y(t.u,t._len),t._v=$y(t.v,t._len),t._w=$y(t.w,t._len),t._x=$y(t.x,t._len),t._y=$y(t.y,t._len),t._z=$y(t.z,t._len);var r=BRe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=$y(t.starts.x||[]),a=$y(t.starts.y||[]),o=$y(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,u=1/0,l;for(l=0;l1&&(E=t[i-1],L=r[i-1],k=n[i-1]),a=0;aE?"-":"+")+"x"),p=p.replace("y",(A>L?"-":"+")+"y"),p=p.replace("z",(x>k?"-":"+")+"z");var M=function(){i=0,S=[],m=[],P=[]};(!i||i{"use strict";var K6t=gp(),J6t=mF().processGrid,yF=mF().filter;NRe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=yF(r.x,r._len),r._y=yF(r.y,r._len),r._z=yF(r.z,r._len),r._value=yF(r.value,r._len);var n=J6t(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";URe.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var $6t=qd().gl_mesh3d,Q6t=o1().parseColorScale,eFt=ei().isArrayOrTypedArray,tFt=a1(),rFt=_c().extractOpts,VRe=rS(),ck=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function ae(vt,lt){return vt===null?lt:vt}function me(vt,lt,We){M();var Ve=[lt],et=[We];if(W>=1)Ve=[lt],et=[We];else if(W>0){var tt=H(lt,We);Ve=tt.xyzv,et=tt.abc}for(var Lt=0;Lt-1?We[or]:P(yr,vr,Vt);xe>-1?jt[or]=xe:jt[or]=F(yr,vr,Vt,ae(vt,Pe))}U(jt[0],jt[1],jt[2])}}function Ce(vt,lt,We){var Ve=function(et,tt,Lt){me(vt,[lt[et],lt[tt],lt[Lt]],[We[et],We[tt],We[Lt]])};Ve(0,1,2),Ve(2,3,0)}function Ee(vt,lt,We){var Ve=function(et,tt,Lt){me(vt,[lt[et],lt[tt],lt[Lt]],[We[et],We[tt],We[Lt]])};Ve(0,1,2),Ve(3,0,1),Ve(2,3,0),Ve(1,2,3)}function de(vt,lt,We,Ve){var et=vt[3];etVe&&(et=Ve);for(var tt=(vt[3]-et)/(vt[3]-lt[3]+1e-9),Lt=[],jt=0;jt<4;jt++)Lt[jt]=(1-tt)*vt[jt]+tt*lt[jt];return Lt}function te(vt,lt,We){return vt>=lt&&vt<=We}function Se(vt){var lt=.001*(L-A);return vt>=A-lt&&vt<=L+lt}function Te(vt){for(var lt=[],We=0;We<4;We++){var Ve=vt[We];lt.push([e._x[Ve],e._y[Ve],e._z[Ve],e._value[Ve]])}return lt}var be=3;function He(vt,lt,We,Ve,et,tt){tt||(tt=1),We=[-1,-1,-1];var Lt=!1,jt=[te(lt[0][3],Ve,et),te(lt[1][3],Ve,et),te(lt[2][3],Ve,et)];if(!jt[0]&&!jt[1]&&!jt[2])return!1;var or=function(vr,Vt,Pe){return Se(Vt[0][3])&&Se(Vt[1][3])&&Se(Vt[2][3])?(me(vr,Vt,Pe),!0):ttjt?[C,tt]:[tt,E];Mt(lt,or[0],or[1])}}var yr=[[Math.min(A,E),Math.max(A,E)],[Math.min(C,L),Math.max(C,L)]];["x","y","z"].forEach(function(vr){for(var Vt=[],Pe=0;Pe0&&(st.push(pr.id),vr==="x"?gt.push([pr.distRatio,0,0]):vr==="y"?gt.push([0,pr.distRatio,0]):gt.push([0,0,pr.distRatio]))}else vr==="x"?ht=Me(1,d-1):vr==="y"?ht=Me(1,p-1):ht=Me(1,y-1);st.length>0&&(vr==="x"?Vt[xe]=kt(vt,st,Oe,ze,gt,Vt[xe]):vr==="y"?Vt[xe]=$e(vt,st,Oe,ze,gt,Vt[xe]):Vt[xe]=Re(vt,st,Oe,ze,gt,Vt[xe]),xe++),ht.length>0&&(vr==="x"?Vt[xe]=bt(vt,ht,Oe,ze,Vt[xe]):vr==="y"?Vt[xe]=Ot(vt,ht,Oe,ze,Vt[xe]):Vt[xe]=it(vt,ht,Oe,ze,Vt[xe]),xe++)}var br=e.caps[vr];br.show&&br.fill&&(N(br.fill),vr==="x"?Vt[xe]=bt(vt,[0,d-1],Oe,ze,Vt[xe]):vr==="y"?Vt[xe]=Ot(vt,[0,p-1],Oe,ze,Vt[xe]):Vt[xe]=it(vt,[0,y-1],Oe,ze,Vt[xe]),xe++)}}),s===0&&O(),e._meshX=x,e._meshY=k,e._meshZ=S,e._meshIntensity=m,e._Xs=f,e._Ys=c,e._Zs=h}return Ne(),e}function nFt(e,t){var r=e.glplot.gl,n=$6t({gl:r}),i=new GRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}WRe.exports={findNearestOnAxis:ck,generateIsoMeshes:HRe,createIsosurfaceTrace:nFt}});var XRe=we((Vgr,jRe)=>{"use strict";jRe.exports={attributes:vF(),supplyDefaults:vZ().supplyDefaults,calc:gZ(),colorbar:{min:"cmin",max:"cmax"},plot:gF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:ux(),categories:["gl3d","showLegend"],meta:{}}});var YRe=we((Ggr,ZRe)=>{"use strict";ZRe.exports=XRe()});var bZ=we((Hgr,JRe)=>{"use strict";var aFt=nc(),Ch=vF(),oFt=lk(),KRe=Vf(),xZ=Su().extendFlat,sFt=Sc().overrideAll,_F=JRe.exports=sFt(xZ({x:Ch.x,y:Ch.y,z:Ch.z,value:Ch.value,isomin:Ch.isomin,isomax:Ch.isomax,surface:Ch.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Ch.slices,caps:Ch.caps,text:Ch.text,hovertext:Ch.hovertext,xhoverformat:Ch.xhoverformat,yhoverformat:Ch.yhoverformat,zhoverformat:Ch.zhoverformat,valuehoverformat:Ch.valuehoverformat,hovertemplate:Ch.hovertemplate,hovertemplatefallback:Ch.hovertemplatefallback},aFt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Ch.colorbar,opacity:Ch.opacity,opacityscale:oFt.opacityscale,lightposition:Ch.lightposition,lighting:Ch.lighting,flatshading:Ch.flatshading,contour:Ch.contour,hoverinfo:xZ({},KRe.hoverinfo),showlegend:xZ({},KRe.showlegend,{dflt:!1})}),"calc","nested");_F.x.editType=_F.y.editType=_F.z.editType=_F.value.editType="calc+clearAxisTypes"});var QRe=we((Wgr,$Re)=>{"use strict";var lFt=ei(),uFt=bZ(),fFt=vZ().supplyIsoDefaults,cFt=uZ().opacityscaleDefaults;$Re.exports=function(t,r,n,i){function a(o,s){return lFt.coerce(t,r,uFt,o,s)}fFt(t,r,n,i,a),cFt(t,r,i,a)}});var iDe=we((jgr,rDe)=>{"use strict";var hFt=qd().gl_mesh3d,dFt=o1().parseColorScale,pFt=ei().isArrayOrTypedArray,vFt=a1(),mFt=_c().extractOpts,eDe=rS(),wZ=gF().findNearestOnAxis,yFt=gF().generateIsoMeshes;function tDe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var AZ=tDe.prototype;AZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=wZ(r,this.data._Xs).id,u=wZ(n,this.data._Ys).id,l=wZ(i,this.data._Zs).id,f=e.index=l+o*u+o*a*s;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return pFt(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};AZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=yFt(e);function n(u,l,f,c){return l.map(function(h){return u.d2l(h,0,c)*f})}var i=eDe(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=eDe(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:vFt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=mFt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=dFt(e),this.mesh.update(o)};AZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function gFt(e,t){var r=e.glplot.gl,n=hFt({gl:r}),i=new tDe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}rDe.exports=gFt});var aDe=we((Xgr,nDe)=>{"use strict";nDe.exports={attributes:bZ(),supplyDefaults:QRe(),calc:gZ(),colorbar:{min:"cmin",max:"cmax"},plot:iDe(),moduleType:"trace",name:"volume",basePlotModule:ux(),categories:["gl3d","showLegend"],meta:{}}});var sDe=we((Zgr,oDe)=>{"use strict";oDe.exports=aDe()});var fDe=we((Ygr,uDe)=>{"use strict";var _Ft=$l(),lDe=ei(),xFt=nd(),bFt=eS();uDe.exports=function(t,r,n,i){function a(f,c){return lDe.coerce(t,r,bFt,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&lDe.isArrayOrTypedArray(d)?d:null});return c.every(function(h){return h&&h.length===c[0].length})&&c}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var u=_Ft.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){a(f)});var l=a("contour.show");l&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),xFt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var hDe=we((Kgr,cDe)=>{"use strict";var wFt=gp();cDe.exports=function(t,r){r.intensity&&wFt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var yDe=we((Jgr,mDe)=>{"use strict";var AFt=qd().gl_mesh3d,TFt=qd().delaunay_triangulate,SFt=qd().alpha_shape,MFt=qd().convex_hull,EFt=o1().parseColorScale,kFt=ei().isArrayOrTypedArray,EZ=a1(),CFt=_c().extractOpts,dDe=rS();function vDe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var kZ=vDe.prototype;kZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return kFt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function pDe(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}kZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=dDe(TZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),TZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),TZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!MZ(e.i,n)||!MZ(e.j,n)||!MZ(e.k,n))return;a=dDe(SZ(e.i),SZ(e.j),SZ(e.k))}else e.alphahull===0?a=MFt(i):e.alphahull>0?a=SFt(e.alphahull,i):a=LFt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:EZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=CFt(e);this.color="#fff";var u=e.intensitymode;o[u+"Intensity"]=e.intensity,o[u+"IntensityBounds"]=[s.min,s.max],o.colormap=EFt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=pDe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=pDe(e.facecolor)):(this.color=e.color,o.meshColor=EZ(e.color));this.mesh.update(o)};kZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function PFt(e,t){var r=e.glplot.gl,n=AFt({gl:r}),i=new vDe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}mDe.exports=PFt});var _De=we(($gr,gDe)=>{"use strict";gDe.exports={attributes:eS(),supplyDefaults:fDe(),calc:hDe(),colorbar:{min:"cmin",max:"cmax"},plot:yDe(),moduleType:"trace",name:"mesh3d",basePlotModule:ux(),categories:["gl3d","showLegend"],meta:{}}});var bDe=we((Qgr,xDe)=>{"use strict";xDe.exports=_De()});var LZ=we((e1r,ADe)=>{"use strict";var zFt=nc(),iS=Xc().axisHoverFormat,{hovertemplateAttrs:IFt,templatefallbackAttrs:RFt}=Of(),DFt=eS(),wDe=Vf(),CZ=Su().extendFlat,xF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:IFt({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:RFt({editType:"calc"}),uhoverformat:iS("u",1),vhoverformat:iS("v",1),whoverformat:iS("w",1),xhoverformat:iS("x"),yhoverformat:iS("y"),zhoverformat:iS("z"),showlegend:CZ({},wDe.showlegend,{dflt:!1})};CZ(xF,zFt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var FFt=["opacity","lightposition","lighting"];FFt.forEach(function(e){xF[e]=DFt[e]});xF.hoverinfo=CZ({},wDe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});ADe.exports=xF});var SDe=we((t1r,TDe)=>{"use strict";var OFt=ei(),BFt=nd(),qFt=LZ();TDe.exports=function(t,r,n,i){function a(d,p){return OFt.coerce(t,r,qFt,d,p)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),BFt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var EDe=we((r1r,MDe)=>{"use strict";var NFt=gp();MDe.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,u=1/0,l=0;l{"use strict";var UFt=qd().gl_cone3d,VFt=qd().gl_cone3d.createConeMesh,GFt=ei().simpleMap,HFt=o1().parseColorScale,WFt=_c().extractOpts,jFt=ei().isArrayOrTypedArray,kDe=rS();function CDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var PZ=CDe.prototype;PZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var u=this.data.hovertext||this.data.text;return jFt(u)&&u[t]!==void 0?e.textLabel=u[t]:u&&(e.textLabel=u),!0}};var XFt={xaxis:0,yaxis:1,zaxis:2},ZFt={tip:1,tail:0,cm:.25,center:.5},YFt={tip:1,tail:1,cm:.75,center:.5};function LDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(f,c){var h=r[c],d=n[XFt[c]];return GFt(f,function(p){return h.d2l(p)*d})}i.vectors=kDe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=kDe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=WFt(t);i.colormap=HFt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=ZFt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var u=UFt(i),l=t.lightposition;return u.lightPosition=[l.x,l.y,l.z],u.ambient=t.lighting.ambient,u.diffuse=t.lighting.diffuse,u.specular=t.lighting.specular,u.roughness=t.lighting.roughness,u.fresnel=t.lighting.fresnel,u.opacity=t.opacity,t._pad=YFt[t.anchor]*u.vectorScale*u.coneScale*t._normMax,u}PZ.update=function(e){this.data=e;var t=LDe(this.scene,e);this.mesh.update(t)};PZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function KFt(e,t){var r=e.glplot.gl,n=LDe(e,t),i=VFt(r,n),a=new CDe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}PDe.exports=KFt});var RDe=we((n1r,IDe)=>{"use strict";IDe.exports={moduleType:"trace",name:"cone",basePlotModule:ux(),categories:["gl3d","showLegend"],attributes:LZ(),supplyDefaults:SDe(),colorbar:{min:"cmin",max:"cmax"},calc:EDe(),plot:zDe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var FDe=we((a1r,DDe)=>{"use strict";DDe.exports=RDe()});var IZ=we((o1r,BDe)=>{"use strict";var JFt=nc(),nS=Xc().axisHoverFormat,{hovertemplateAttrs:$Ft,templatefallbackAttrs:QFt}=Of(),e8t=eS(),ODe=Vf(),zZ=Su().extendFlat,bF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:$Ft({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:QFt({editType:"calc"}),uhoverformat:nS("u",1),vhoverformat:nS("v",1),whoverformat:nS("w",1),xhoverformat:nS("x"),yhoverformat:nS("y"),zhoverformat:nS("z"),showlegend:zZ({},ODe.showlegend,{dflt:!1})};zZ(bF,JFt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var t8t=["opacity","lightposition","lighting"];t8t.forEach(function(e){bF[e]=e8t[e]});bF.hoverinfo=zZ({},ODe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});BDe.exports=bF});var NDe=we((s1r,qDe)=>{"use strict";var r8t=ei(),i8t=nd(),n8t=IZ();qDe.exports=function(t,r,n,i){function a(h,d){return r8t.coerce(t,r,n8t,h,d)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),i8t(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var ZDe=we((l1r,XDe)=>{"use strict";var GDe=qd().gl_streamtube3d,a8t=GDe.createTubeMesh,o8t=ei(),s8t=o1().parseColorScale,l8t=_c().extractOpts,UDe=rS(),HDe={xaxis:0,yaxis:1,zaxis:2};function WDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var DZ=WDe.prototype;DZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var u=t[s],l=r[HDe[s]];return u.l2c(o)/l}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function VDe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function RZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function jDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(O,F){var U=r[F],G=n[HDe[F]];return o8t.simpleMap(O,function(j){return U.d2l(j)*G})}if(a.vectors=UDe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),u=o(t._Ys,"yaxis"),l=o(t._Zs,"zaxis");a.meshgrid=[s,u,l],a.gridFill=t._gridFill;var f=t._slen;if(f)a.startingPositions=UDe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=u[0],h=VDe(s),d=VDe(l),p=new Array(h.length*d.length),y=0,b=0;b{"use strict";YDe.exports={moduleType:"trace",name:"streamtube",basePlotModule:ux(),categories:["gl3d","showLegend"],attributes:IZ(),supplyDefaults:NDe(),colorbar:{min:"cmin",max:"cmax"},calc:mF().calc,plot:ZDe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var $De=we((f1r,JDe)=>{"use strict";JDe.exports=KDe()});var rw=we((h1r,i6e)=>{"use strict";var{hovertemplateAttrs:f8t,texttemplateAttrs:c8t,templatefallbackAttrs:QDe}=Of(),h8t=Pm(),Qy=Zc(),d8t=Vf(),e6e=nc(),p8t=Id().dash,tw=Su().extendFlat,v8t=Sc().overrideAll,rm=Qy.marker,t6e=Qy.line,r6e=rm.line,c1r=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");i6e.exports=v8t({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:tw({},Qy.mode,{dflt:"markers"}),text:tw({},Qy.text,{}),texttemplate:c8t({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:QDe({editType:"plot"}),hovertext:tw({},Qy.hovertext,{}),textfont:Qy.textfont,textposition:Qy.textposition,line:{color:t6e.color,width:t6e.width,dash:p8t},connectgaps:Qy.connectgaps,marker:tw({symbol:rm.symbol,opacity:rm.opacity,angle:rm.angle,angleref:tw({},rm.angleref,{values:["previous","up","north"]}),standoff:rm.standoff,size:rm.size,sizeref:rm.sizeref,sizemin:rm.sizemin,sizemode:rm.sizemode,colorbar:rm.colorbar,line:tw({width:r6e.width,dash:r6e.dash},e6e("marker.line")),gradient:rm.gradient},e6e("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:h8t(),selected:Qy.selected,unselected:Qy.unselected,hoverinfo:tw({},d8t.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:f8t(),hovertemplatefallback:QDe()},"calc","nested")});var a6e=we((d1r,n6e)=>{"use strict";var wF=ei(),FZ=lc(),m8t=$v(),y8t=R0(),g8t=D0(),_8t=Dm(),x8t=rw(),b8t=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");n6e.exports=function(t,r,n,i){function a(d,p){return wF.coerce(t,r,x8t,d,p)}var o=a("locations"),s;if(o&&o.length){var u=a("geojson"),l;(typeof u=="string"&&u!==""||wF.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&wF.warn(b8t),f==="geojson-id"&&a("featureidkey"),s=o.length}else{var c=a("lon")||[],h=a("lat")||[];s=Math.min(c.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),FZ.hasMarkers(r)&&m8t(t,r,n,i,a,{gradient:!0}),FZ.hasLines(r)&&(y8t(t,r,n,i,a),a("connectgaps")),FZ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),g8t(t,r,i,a)),a("fill"),r.fill!=="none"&&_8t(t,r,n,a),wF.coerceSelectionMarkerOpacity(r,a)}});var l6e=we((p1r,s6e)=>{"use strict";var o6e=wu();s6e.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=o6e.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=o6e.tickText(o,o.c2l(s[1]),!0).text,i}});var AF=we((v1r,h6e)=>{"use strict";var OZ=ku(),u6e=rf().BADNUM,w8t=F0(),A8t=Ry(),T8t=O0(),S8t=ei().isArrayOrTypedArray,f6e=ei()._;function c6e(e){return e&&typeof e=="string"}h6e.exports=function(t,r){var n=S8t(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return c6e(h)||OZ(h)}:o=c6e;for(var s=0;s{"use strict";kp.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};kp.axesNames=["lonaxis","lataxis"];kp.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};kp.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};kp.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};kp.clipPad=.001;kp.precision=.1;kp.landColor="#F0DC82";kp.waterColor="#3399FF";kp.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};kp.sphereSVG={type:"Sphere"};kp.fillLayers={ocean:1,land:1,lakes:1};kp.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};kp.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];kp.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];kp.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var BZ=we((TF,d6e)=>{(function(e,t){typeof TF=="object"&&typeof d6e!="undefined"?t(TF):(e=e||self,t(e.topojson=e.topojson||{}))})(TF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var A,L,x=E.scale[0],k=E.scale[1],S=E.translate[0],m=E.translate[1];return function(P,M){M||(A=L=0);var O=2,F=P.length,U=new Array(F);for(U[0]=(A+=P[0])*x+S,U[1]=(L+=P[1])*k+m;OS&&(S=O[0]),O[1]m&&(m=O[1])}function M(O){switch(O.type){case"GeometryCollection":O.geometries.forEach(M);break;case"Point":P(O.coordinates);break;case"MultiPoint":O.coordinates.forEach(P);break}}E.arcs.forEach(function(O){for(var F=-1,U=O.length,G;++FS&&(S=G[0]),G[1]m&&(m=G[1])});for(L in E.objects)M(E.objects[L]);return[x,k,S,m]}function i(E,A){for(var L,x=E.length,k=x-A;k<--x;)L=E[k],E[k++]=E[x],E[x]=L}function a(E,A){return typeof A=="string"&&(A=E.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(L){return o(E,L)})}:o(E,A)}function o(E,A){var L=A.id,x=A.bbox,k=A.properties==null?{}:A.properties,S=s(E,A);return L==null&&x==null?{type:"Feature",properties:k,geometry:S}:x==null?{type:"Feature",id:L,properties:k,geometry:S}:{type:"Feature",id:L,bbox:x,properties:k,geometry:S}}function s(E,A){var L=r(E.transform),x=E.arcs;function k(F,U){U.length&&U.pop();for(var G=x[F<0?~F:F],j=0,W=G.length;j1)x=c(E,A,L);else for(k=0,x=new Array(S=E.arcs.length);k1)for(var U=1,G=P(O[0]),j,W;UG&&(W=O[0],O[0]=O[U],O[U]=W,G=j);return O}).filter(function(M){return M.length>0})}}function y(E,A){for(var L=0,x=E.length;L>>1;E[k]=2))throw new Error("n must be \u22652");M=E.bbox||n(E);var L=M[0],x=M[1],k=M[2],S=M[3],m;A={scale:[k-L?(k-L)/(m-1):1,S-x?(S-x)/(m-1):1],translate:[L,x]}}else M=E.bbox;var P=v(A),M,O,F=E.objects,U={};function G(N){return P(N)}function j(N){var H;switch(N.type){case"GeometryCollection":H={type:"GeometryCollection",geometries:N.geometries.map(j)};break;case"Point":H={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":H={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(H.id=N.id),N.bbox!=null&&(H.bbox=N.bbox),N.properties!=null&&(H.properties=N.properties),H}function W(N){var H=0,re=1,ae=N.length,me,Ce=new Array(ae);for(Ce[0]=P(N[0],0);++H{"use strict";var qZ=p6e.exports={},M8t=hk().locationmodeToLayer,E8t=BZ().feature;qZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};qZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};qZ.getTopojsonFeatures=function(e,t){var r=M8t[e.locationmode],n=t.objects[r];return E8t(t,n).features}});var hx=we(dk=>{"use strict";var k8t=rf().BADNUM;dk.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};dk.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};dk.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{v6e.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var kF=we(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Ov=63710088e-1,UZ={centimeters:Ov*100,centimetres:Ov*100,degrees:360/(2*Math.PI),feet:Ov*3.28084,inches:Ov*39.37,kilometers:Ov/1e3,kilometres:Ov/1e3,meters:Ov,metres:Ov,miles:Ov/1609.344,millimeters:Ov*1e3,millimetres:Ov*1e3,nauticalmiles:Ov/1852,radians:1,yards:Ov*1.0936},NZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function dx(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function C8t(e,t,r={}){switch(e){case"Point":return VZ(t).geometry;case"LineString":return HZ(t).geometry;case"Polygon":return GZ(t).geometry;case"MultiPoint":return g6e(t).geometry;case"MultiLineString":return y6e(t).geometry;case"MultiPolygon":return _6e(t).geometry;default:throw new Error(e+" is invalid")}}function VZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!MF(e[0])||!MF(e[1]))throw new Error("coordinates must contain numbers");return dx({type:"Point",coordinates:e},t,r)}function L8t(e,t,r={}){return EF(e.map(n=>VZ(n,t)),r)}function GZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aGZ(n,t)),r)}function HZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return dx({type:"LineString",coordinates:e},t,r)}function z8t(e,t,r={}){return EF(e.map(n=>HZ(n,t)),r)}function EF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function y6e(e,t,r={}){return dx({type:"MultiLineString",coordinates:e},t,r)}function g6e(e,t,r={}){return dx({type:"MultiPoint",coordinates:e},t,r)}function _6e(e,t,r={}){return dx({type:"MultiPolygon",coordinates:e},t,r)}function I8t(e,t,r={}){return dx({type:"GeometryCollection",geometries:e},t,r)}function R8t(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function x6e(e,t="kilometers"){let r=UZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function WZ(e,t="kilometers"){let r=UZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function D8t(e,t){return b6e(WZ(e,t))}function F8t(e){let t=e%360;return t<0&&(t+=360),t}function O8t(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function b6e(e){return e%(2*Math.PI)*180/Math.PI}function B8t(e){return e%360*Math.PI/180}function q8t(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return x6e(WZ(e,t),r)}function N8t(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=NZ[t];if(!n)throw new Error("invalid original units");let i=NZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function MF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function U8t(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function V8t(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!MF(t))throw new Error("bbox must only contain numbers")})}function G8t(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}bc.areaFactors=NZ;bc.azimuthToBearing=O8t;bc.bearingToAzimuth=F8t;bc.convertArea=N8t;bc.convertLength=q8t;bc.degreesToRadians=B8t;bc.earthRadius=Ov;bc.factors=UZ;bc.feature=dx;bc.featureCollection=EF;bc.geometry=C8t;bc.geometryCollection=I8t;bc.isNumber=MF;bc.isObject=U8t;bc.lengthToDegrees=D8t;bc.lengthToRadians=WZ;bc.lineString=HZ;bc.lineStrings=z8t;bc.multiLineString=y6e;bc.multiPoint=g6e;bc.multiPolygon=_6e;bc.point=VZ;bc.points=L8t;bc.polygon=GZ;bc.polygons=P8t;bc.radiansToDegrees=b6e;bc.radiansToLength=x6e;bc.round=R8t;bc.validateBBox=V8t;bc.validateId=G8t});var LF=we(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var jp=kF();function pk(e,t,r){if(e!==null)for(var n,i,a,o,s,u,l,f=0,c=0,h,d=e.type,p=d==="FeatureCollection",y=d==="Feature",b=p?e.features.length:1,v=0;vu||p>l||y>f){s=c,u=n,l=p,f=y,a=0;return}var b=jp.lineString.call(void 0,[s,c],r.properties);if(t(b,n,i,y,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function K8t(e,t,r){var n=r,i=!1;return T6e(e,function(a,o,s,u,l){i===!1&&r===void 0?n=a:n=t(n,a,o,s,u,l),i=!0}),n}function S6e(e,t){if(!e)throw new Error("geojson is required");CF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(PF,"__esModule",{value:!0});var M6e=kF(),e9t=LF();function C6e(e){return e9t.geomReduce.call(void 0,e,(t,r)=>t+t9t(r),0)}function t9t(e){let t=0,r;switch(e.type){case"Polygon":return E6e(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(k6e(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*XZ,u=a[1]*XZ,l=o[0]*XZ;r+=(l-s)*Math.sin(u),n++}return r*r9t}var i9t=C6e;PF.area=C6e;PF.default=i9t});var z6e=we(zF=>{"use strict";Object.defineProperty(zF,"__esModule",{value:!0});var n9t=kF(),a9t=LF();function P6e(e,t={}){let r=0,n=0,i=0;return a9t.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),n9t.point.call(void 0,[r/i,n/i],t.properties)}var o9t=P6e;zF.centroid=P6e;zF.default=o9t});var R6e=we(IF=>{"use strict";Object.defineProperty(IF,"__esModule",{value:!0});var s9t=LF();function I6e(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return s9t.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var D6e={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},u9t=new Set(Object.values(D6e));F6e.exports={usaLocationAbbreviations:u9t,usaLocationList:D6e}});var eg=we((M1r,U6e)=>{"use strict";var f9t=Kl(),q6e=m6e(),{area:c9t}=L6e(),{centroid:h9t}=z6e(),{bbox:d9t}=R6e(),p9t=$M(),iw=J1(),v9t=Sg(),m9t=qM(),RF=q5(),{usaLocationAbbreviations:y9t,usaLocationList:g9t}=O6e(),B6e=Object.keys(q6e),_9t={"ISO-3":p9t,"USA-states":b9t,"country names":x9t};function x9t(e){for(var t=0;t0&&e[t+1][0]<0)return t;return null}function A9t(e){var t=e.geometry,r=t.coordinates,n=e.id,i=[],a,o,s,u;switch(n==="RUS"||n==="FJI"?a=function(l){var f;if(ZZ(l)===null)f=l;else for(f=new Array(l.length),u=0;uf?c[h++]=[l[u][0]+vk,l[u][1]]:u===f?(c[h++]=l[u],c[h++]=[l[u][0],-90]):c[h++]=l[u];var d=RF.tester(c);d.pts.pop(),i.push(d)}:a=function(l){i.push(RF.tester(l))},t.type){case"MultiPolygon":for(o=0;o0?p.properties.ct=S9t(p):p.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=p,i.push(p)}else iw.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[c]}switch(r.type){case"FeatureCollection":var u=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return h9t(r).geometry.coordinates}function M9t(e){var t=window.PlotlyGeoAssets||{},r=[];function n(u){return new Promise(function(l,f){f9t.json(u,function(c,h){if(c){delete t[u];var d=c.status===404?'GeoJSON at URL "'+u+'" does not exist.':"Unexpected error while fetching from "+u;return f(new Error(d))}return t[u]=h,l(h)})})}function i(u){return new Promise(function(l,f){var c=0,h=setInterval(function(){if(t[u]&&t[u]!=="pending")return clearInterval(h),l(t[u]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+u);c++},50)})}for(var a=0;as-u);if(t.length<2)return null;let r=t.length,n=t[r-1]-t[0];if(n>=360)return null;let i=-1/0,a=-1;for(let s=0;si&&(i=u,a=s)}let o=360-n;return i<=o?null:[t[a+1],t[a]+vk]}function C9t([e,t]){return[e,e>0&&t<0?t+vk:t]}U6e.exports={locationToFeature:w9t,feature2polygons:A9t,getTraceGeojson:N6e,extractTraceFeature:T9t,fetchTraceGeoData:M9t,computeBbox:E9t,doesCrossAntiMeridian:ZZ,getFitboundsLonRange:k9t,unwrapLonRange:C9t,ANTIMERIDIAN_LON_SHIFT:vk}});var YZ=we((E1r,H6e)=>{"use strict";var L9t=Kl(),P9t=Mu(),V6e=jl(),G6e=sv(),z9t=G6e.stylePoints,I9t=G6e.styleText;H6e.exports=function(t,r){r&&R9t(t,r)};function R9t(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),z9t(n,r,e),I9t(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=L9t.select(this),o=i.trace,s=o.line||{};a.call(V6e.stroke,s.color).call(P9t.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(V6e.fill,o.fillcolor)})}});var QZ=we((k1r,X6e)=>{"use strict";var W6e=Kl(),FF=ei(),D9t=SF().getTopojsonFeatures,KZ=hx(),DF=eg(),j6e=Mm().findExtremes,$Z=rf().BADNUM,F9t=B0().calcMarkerSize,JZ=lc(),O9t=YZ();function B9t(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=FF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===$Z&&W6e.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=W6e.select(this),u=o[0].trace;if(JZ.hasLines(u)||u.fill!=="none"){var l=KZ.calcTraceToLineCoords(o),f=u.fill!=="none"?KZ.makePolygon(l):KZ.makeLine(l);s.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}JZ.hasMarkers(u)&&s.selectAll("path.point").data(FF.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),JZ.hasText(u)&&s.selectAll("g").data(FF.identity).enter().append("g").append("text").each(function(c){a(c,this)}),O9t(e,o)})}function q9t(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(FF.isArrayOrTypedArray(r.locations)){var u=r.locationmode,l=u==="geojson-id"?DF.extractTraceFeature(e):D9t(r,i.topojson);for(o=0;o{"use strict";var N9t=Vc(),U9t=rf().BADNUM,V9t=xA(),G9t=ei().fillText,H9t=rw();Z6e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,u=t.subplot,l=u.projection.isLonLatOverEdges,f=u.project;function c(C){var E=C.lonlat;if(E[0]===U9t||l(E))return 1/0;var A=f(E),L=f([r,n]),x=Math.abs(A[0]-L[0]),k=Math.abs(A[1]-L[1]),S=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(x*x+k*k)-S,1-3/S)}if(N9t.getClosest(i,c,t),t.index!==!1){var h=i[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],y=h.mrc||1;t.x0=p[0]-y,t.x1=p[0]+y,t.y0=p[1]-y,t.y1=p[1]+y,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:u};var v=a._module.formatLabels(h,a,b);return t.lonLabel=v.lonLabel,t.latLabel=v.latLabel,t.color=V9t(a,h),t.extraText=W9t(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function W9t(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?H9t.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,u=a.indexOf("lat")!==-1,l=a.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(t.loc):s&&u?f.push("("+c(r.latLabel)+", "+c(r.lonLabel)+")"):s?f.push(n.lon+c(r.lonLabel)):u&&f.push(n.lat+c(r.latLabel)),l&&G9t(t,e,f),f.join("
")}});var J6e=we((L1r,K6e)=>{"use strict";K6e.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var eFe=we((P1r,Q6e)=>{"use strict";var $6e=lc(),j9t=rf().BADNUM;Q6e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h,d=!$6e.hasMarkers(s)&&!$6e.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof OF=="object"&&typeof tFe!="undefined"?OF:e.d3=e.d3||{})})(OF,(function(e){"use strict";function t(Te,be){return Tebe?1:Te>=be?0:NaN}function r(Te){return Te.length===1&&(Te=n(Te)),{left:function(be,He,Ie,ge){for(Ie==null&&(Ie=0),ge==null&&(ge=be.length);Ie>>1;Te(be[Be],He)<0?Ie=Be+1:ge=Be}return Ie},right:function(be,He,Ie,ge){for(Ie==null&&(Ie=0),ge==null&&(ge=be.length);Ie>>1;Te(be[Be],He)>0?ge=Be:Ie=Be+1}return Ie}}}function n(Te){return function(be,He){return t(Te(be),He)}}var i=r(t),a=i.right,o=i.left;function s(Te,be){be==null&&(be=u);for(var He=0,Ie=Te.length-1,ge=Te[0],Be=new Array(Ie<0?0:Ie);HeTe?1:be>=Te?0:NaN}function c(Te){return Te===null?NaN:+Te}function h(Te,be){var He=Te.length,Ie=0,ge=-1,Be=0,ce,je,rt=0;if(be==null)for(;++ge1)return rt/(Ie-1)}function d(Te,be){var He=h(Te,be);return He&&Math.sqrt(He)}function p(Te,be){var He=Te.length,Ie=-1,ge,Be,ce;if(be==null){for(;++Ie=ge)for(Be=ce=ge;++Iege&&(Be=ge),ce=ge)for(Be=ce=ge;++Iege&&(Be=ge),ce0)return[Te];if((Ie=be0)for(Te=Math.ceil(Te/je),be=Math.floor(be/je),ce=new Array(Be=Math.ceil(be-Te+1));++ge=0?(Be>=L?10:Be>=x?5:Be>=k?2:1)*Math.pow(10,ge):-Math.pow(10,-ge)/(Be>=L?10:Be>=x?5:Be>=k?2:1)}function P(Te,be,He){var Ie=Math.abs(be-Te)/Math.max(0,He),ge=Math.pow(10,Math.floor(Math.log(Ie)/Math.LN10)),Be=Ie/ge;return Be>=L?ge*=10:Be>=x?ge*=5:Be>=k&&(ge*=2),beit;)Ke.pop(),--zt;var Mt=new Array(zt+1),kt;for(Be=0;Be<=zt;++Be)kt=Mt[Be]=[],kt.x0=Be>0?Ke[Be-1]:Ot,kt.x1=Be=1)return+He(Te[Ie-1],Ie-1,Te);var Ie,ge=(Ie-1)*be,Be=Math.floor(ge),ce=+He(Te[Be],Be,Te),je=+He(Te[Be+1],Be+1,Te);return ce+(je-ce)*(ge-Be)}}function U(Te,be,He){return Te=v.call(Te,c).sort(t),Math.ceil((He-be)/(2*(F(Te,.75)-F(Te,.25))*Math.pow(Te.length,-1/3)))}function G(Te,be,He){return Math.ceil((He-be)/(3.5*d(Te)*Math.pow(Te.length,-1/3)))}function j(Te,be){var He=Te.length,Ie=-1,ge,Be;if(be==null){for(;++Ie=ge)for(Be=ge;++IeBe&&(Be=ge)}else for(;++Ie=ge)for(Be=ge;++IeBe&&(Be=ge);return Be}function W(Te,be){var He=Te.length,Ie=He,ge=-1,Be,ce=0;if(be==null)for(;++ge=0;)for(ce=Te[be],He=ce.length;--He>=0;)Be[--ge]=ce[He];return Be}function re(Te,be){var He=Te.length,Ie=-1,ge,Be;if(be==null){for(;++Ie=ge)for(Be=ge;++Iege&&(Be=ge)}else for(;++Ie=ge)for(Be=ge;++Iege&&(Be=ge);return Be}function ae(Te,be){for(var He=be.length,Ie=new Array(He);He--;)Ie[He]=Te[be[He]];return Ie}function me(Te,be){if(He=Te.length){var He,Ie=0,ge=0,Be,ce=Te[ge];for(be==null&&(be=t);++Ie{(function(e,t){typeof BF=="object"&&typeof rFe!="undefined"?t(BF,mk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(BF,(function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(St){a(i,St,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(St,Ut,xr){var dr=St.s=Ut+xr,Dr=dr-Ut,yi=dr-Dr;St.t=Ut-yi+(xr-Dr)}var o=1e-6,s=1e-12,u=Math.PI,l=u/2,f=u/4,c=u*2,h=180/u,d=u/180,p=Math.abs,y=Math.atan,b=Math.atan2,v=Math.cos,C=Math.ceil,E=Math.exp,A=Math.log,L=Math.pow,x=Math.sin,k=Math.sign||function(St){return St>0?1:St<0?-1:0},S=Math.sqrt,m=Math.tan;function P(St){return St>1?0:St<-1?u:Math.acos(St)}function M(St){return St>1?l:St<-1?-l:Math.asin(St)}function O(St){return(St=x(St/2))*St}function F(){}function U(St,Ut){St&&j.hasOwnProperty(St.type)&&j[St.type](St,Ut)}var G={Feature:function(St,Ut){U(St.geometry,Ut)},FeatureCollection:function(St,Ut){for(var xr=St.features,dr=-1,Dr=xr.length;++dr=0?1:-1,Dr=dr*xr,yi=v(Ut),Ti=x(Ut),ki=te*Ti,Ki=de*yi+ki*v(Dr),Fn=ki*dr*x(Dr);re.add(b(Fn,Ki)),Ee=St,de=yi,te=Ti}function ge(St){return ae.reset(),H(St,Se),ae*2}function Be(St){return[b(St[1],St[0]),M(St[2])]}function ce(St){var Ut=St[0],xr=St[1],dr=v(xr);return[dr*v(Ut),dr*x(Ut),x(xr)]}function je(St,Ut){return St[0]*Ut[0]+St[1]*Ut[1]+St[2]*Ut[2]}function rt(St,Ut){return[St[1]*Ut[2]-St[2]*Ut[1],St[2]*Ut[0]-St[0]*Ut[2],St[0]*Ut[1]-St[1]*Ut[0]]}function bt(St,Ut){St[0]+=Ut[0],St[1]+=Ut[1],St[2]+=Ut[2]}function Ot(St,Ut){return[St[0]*Ut,St[1]*Ut,St[2]*Ut]}function it(St){var Ut=S(St[0]*St[0]+St[1]*St[1]+St[2]*St[2]);St[0]/=Ut,St[1]/=Ut,St[2]/=Ut}var Ke,zt,Mt,kt,$e,Re,Me,oe,Ne=r(),vt,lt,We={point:Ve,lineStart:tt,lineEnd:Lt,polygonStart:function(){We.point=jt,We.lineStart=or,We.lineEnd=yr,Ne.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),We.point=Ve,We.lineStart=tt,We.lineEnd=Lt,re<0?(Ke=-(Mt=180),zt=-(kt=90)):Ne>o?kt=90:Ne<-o&&(zt=-90),lt[0]=Ke,lt[1]=Mt},sphere:function(){Ke=-(Mt=180),zt=-(kt=90)}};function Ve(St,Ut){vt.push(lt=[Ke=St,Mt=St]),Utkt&&(kt=Ut)}function et(St,Ut){var xr=ce([St*d,Ut*d]);if(oe){var dr=rt(oe,xr),Dr=[dr[1],-dr[0],0],yi=rt(Dr,dr);it(yi),yi=Be(yi);var Ti=St-$e,ki=Ti>0?1:-1,Ki=yi[0]*h*ki,Fn,Li=p(Ti)>180;Li^(ki*$ekt&&(kt=Fn)):(Ki=(Ki+360)%360-180,Li^(ki*$ekt&&(kt=Ut))),Li?St<$e?vr(Ke,St)>vr(Ke,Mt)&&(Mt=St):vr(St,Mt)>vr(Ke,Mt)&&(Ke=St):Mt>=Ke?(StMt&&(Mt=St)):St>$e?vr(Ke,St)>vr(Ke,Mt)&&(Mt=St):vr(St,Mt)>vr(Ke,Mt)&&(Ke=St)}else vt.push(lt=[Ke=St,Mt=St]);Utkt&&(kt=Ut),oe=xr,$e=St}function tt(){We.point=et}function Lt(){lt[0]=Ke,lt[1]=Mt,We.point=Ve,oe=null}function jt(St,Ut){if(oe){var xr=St-$e;Ne.add(p(xr)>180?xr+(xr>0?360:-360):xr)}else Re=St,Me=Ut;Se.point(St,Ut),et(St,Ut)}function or(){Se.lineStart()}function yr(){jt(Re,Me),Se.lineEnd(),p(Ne)>o&&(Ke=-(Mt=180)),lt[0]=Ke,lt[1]=Mt,oe=null}function vr(St,Ut){return(Ut-=St)<0?Ut+360:Ut}function Vt(St,Ut){return St[0]-Ut[0]}function Pe(St,Ut){return St[0]<=St[1]?St[0]<=Ut&&Ut<=St[1]:Utvr(dr[0],dr[1])&&(dr[1]=Dr[1]),vr(Dr[0],dr[1])>vr(dr[0],dr[1])&&(dr[0]=Dr[0])):yi.push(dr=Dr);for(Ti=-1/0,xr=yi.length-1,Ut=0,dr=yi[xr];Ut<=xr;dr=Dr,++Ut)Dr=yi[Ut],(ki=vr(dr[1],Dr[0]))>Ti&&(Ti=ki,Ke=Dr[0],Mt=dr[1])}return vt=lt=null,Ke===1/0||zt===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ke,zt],[Mt,kt]]}var Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi={sphere:F,point:Ri,lineStart:hn,lineEnd:zi,polygonStart:function(){Bi.lineStart=Dt,Bi.lineEnd=_t},polygonEnd:function(){Bi.lineStart=hn,Bi.lineEnd=zi}};function Ri(St,Ut){St*=d,Ut*=d;var xr=v(Ut);ln(xr*v(St),xr*x(St),x(Ut))}function ln(St,Ut,xr){++Oe,De+=(St-De)/Oe,ht+=(Ut-ht)/Oe,st+=(xr-st)/Oe}function hn(){Bi.point=qr}function qr(St,Ut){St*=d,Ut*=d;var xr=v(Ut);kr=xr*v(St),Vr=xr*x(St),Ai=x(Ut),Bi.point=_i,ln(kr,Vr,Ai)}function _i(St,Ut){St*=d,Ut*=d;var xr=v(Ut),dr=xr*v(St),Dr=xr*x(St),yi=x(Ut),Ti=b(S((Ti=Vr*yi-Ai*Dr)*Ti+(Ti=Ai*dr-kr*yi)*Ti+(Ti=kr*Dr-Vr*dr)*Ti),kr*dr+Vr*Dr+Ai*yi);ze+=Ti,gt+=Ti*(kr+(kr=dr)),xt+=Ti*(Vr+(Vr=Dr)),pr+=Ti*(Ai+(Ai=yi)),ln(kr,Vr,Ai)}function zi(){Bi.point=Ri}function Dt(){Bi.point=qt}function _t(){Nt(ii,jr),Bi.point=Ri}function qt(St,Ut){ii=St,jr=Ut,St*=d,Ut*=d,Bi.point=Nt;var xr=v(Ut);kr=xr*v(St),Vr=xr*x(St),Ai=x(Ut),ln(kr,Vr,Ai)}function Nt(St,Ut){St*=d,Ut*=d;var xr=v(Ut),dr=xr*v(St),Dr=xr*x(St),yi=x(Ut),Ti=Vr*yi-Ai*Dr,ki=Ai*dr-kr*yi,Ki=kr*Dr-Vr*dr,Fn=S(Ti*Ti+ki*ki+Ki*Ki),Li=M(Fn),hi=Fn&&-Li/Fn;br+=hi*Ti,cr+=hi*ki,Er+=hi*Ki,ze+=Li,gt+=Li*(kr+(kr=dr)),xt+=Li*(Vr+(Vr=Dr)),pr+=Li*(Ai+(Ai=yi)),ln(kr,Vr,Ai)}function mr(St){Oe=ze=De=ht=st=gt=xt=pr=br=cr=Er=0,H(St,Bi);var Ut=br,xr=cr,dr=Er,Dr=Ut*Ut+xr*xr+dr*dr;return Dru?St+Math.round(-St/c)*c:St,Ut]}Fr.invert=Fr;function Hr(St,Ut,xr){return(St%=c)?Ut||xr?Nr(mi(St),Ei(Ut,xr)):mi(St):Ut||xr?Ei(Ut,xr):Fr}function Gr(St){return function(Ut,xr){return Ut+=St,[Ut>u?Ut-c:Ut<-u?Ut+c:Ut,xr]}}function mi(St){var Ut=Gr(St);return Ut.invert=Gr(-St),Ut}function Ei(St,Ut){var xr=v(St),dr=x(St),Dr=v(Ut),yi=x(Ut);function Ti(ki,Ki){var Fn=v(Ki),Li=v(ki)*Fn,hi=x(ki)*Fn,Ci=x(Ki),Si=Ci*xr+Li*dr;return[b(hi*Dr-Si*yi,Li*xr-Ci*dr),M(Si*Dr+hi*yi)]}return Ti.invert=function(ki,Ki){var Fn=v(Ki),Li=v(ki)*Fn,hi=x(ki)*Fn,Ci=x(Ki),Si=Ci*Dr-hi*yi;return[b(hi*Dr+Ci*yi,Li*xr+Si*dr),M(Si*xr-Li*dr)]},Ti}function Vi(St){St=Hr(St[0]*d,St[1]*d,St.length>2?St[2]*d:0);function Ut(xr){return xr=St(xr[0]*d,xr[1]*d),xr[0]*=h,xr[1]*=h,xr}return Ut.invert=function(xr){return xr=St.invert(xr[0]*d,xr[1]*d),xr[0]*=h,xr[1]*=h,xr},Ut}function ti(St,Ut,xr,dr,Dr,yi){if(xr){var Ti=v(Ut),ki=x(Ut),Ki=dr*xr;Dr==null?(Dr=Ut+dr*c,yi=Ut-Ki/2):(Dr=Qi(Ti,Dr),yi=Qi(Ti,yi),(dr>0?Dryi)&&(Dr+=dr*c));for(var Fn,Li=Dr;dr>0?Li>yi:Li1&&St.push(St.pop().concat(St.shift()))},result:function(){var xr=St;return St=[],Ut=null,xr}}}function Fi(St,Ut){return p(St[0]-Ut[0])=0;--ki)Dr.point((hi=Li[ki])[0],hi[1]);else dr(Ci.x,Ci.p.x,-1,Dr);Ci=Ci.p}Ci=Ci.o,Li=Ci.z,Si=!Si}while(!Ci.v);Dr.lineEnd()}}}function Di(St){if(Ut=St.length){for(var Ut,xr=0,dr=St[0],Dr;++xr=0?1:-1,xl=dl*Ks,Bl=xl>u,bl=ta*is;if(Ii.add(b(bl*dl*x(xl),ya*Cs+bl*v(xl))),Ti+=Bl?Ks+dl*c:Ks,Bl^Si>=xr^va>=xr){var eu=rt(ce(Ci),ce(pa));it(eu);var Zl=rt(yi,eu);it(Zl);var Vl=(Bl^Ks>=0?-1:1)*M(Zl[2]);(dr>Vl||dr===Vl&&(eu[0]||eu[1]))&&(ki+=Bl^Ks>=0?1:-1)}}return(Ti<-o||Ti0){for(Ki||(Dr.polygonStart(),Ki=!0),Dr.lineStart(),Cs=0;Cs1&&zn&2&&is.push(is.pop().concat(is.shift())),Li.push(is.filter(dt))}}return Ci}}function dt(St){return St.length>1}function $t(St,Ut){return((St=St.x)[0]<0?St[1]-l-o:l-St[1])-((Ut=Ut.x)[0]<0?Ut[1]-l-o:l-Ut[1])}var fr=Xr(function(){return!0},gr,wi,[-u,-l]);function gr(St){var Ut=NaN,xr=NaN,dr=NaN,Dr;return{lineStart:function(){St.lineStart(),Dr=1},point:function(yi,Ti){var ki=yi>0?u:-u,Ki=p(yi-Ut);p(Ki-u)0?l:-l),St.point(dr,xr),St.lineEnd(),St.lineStart(),St.point(ki,xr),St.point(yi,xr),Dr=0):dr!==ki&&Ki>=u&&(p(Ut-dr)o?y((x(Ut)*(yi=v(dr))*x(xr)-x(dr)*(Dr=v(Ut))*x(St))/(Dr*yi*Ti)):(Ut+dr)/2}function wi(St,Ut,xr,dr){var Dr;if(St==null)Dr=xr*l,dr.point(-u,Dr),dr.point(0,Dr),dr.point(u,Dr),dr.point(u,0),dr.point(u,-Dr),dr.point(0,-Dr),dr.point(-u,-Dr),dr.point(-u,0),dr.point(-u,Dr);else if(p(St[0]-Ut[0])>o){var yi=St[0]0,Dr=p(Ut)>o;function yi(Li,hi,Ci,Si){ti(Si,St,xr,Ci,Li,hi)}function Ti(Li,hi){return v(Li)*v(hi)>Ut}function ki(Li){var hi,Ci,Si,Gn,ta;return{lineStart:function(){Gn=Si=!1,ta=1},point:function(ya,ia){var pa=[ya,ia],va,zn=Ti(ya,ia),is=dr?zn?0:Fn(ya,ia):zn?Fn(ya+(ya<0?u:-u),ia):0;if(!hi&&(Gn=Si=zn)&&Li.lineStart(),zn!==Si&&(va=Ki(hi,pa),(!va||Fi(hi,va)||Fi(pa,va))&&(pa[2]=1)),zn!==Si)ta=0,zn?(Li.lineStart(),va=Ki(pa,hi),Li.point(va[0],va[1])):(va=Ki(hi,pa),Li.point(va[0],va[1],2),Li.lineEnd()),hi=va;else if(Dr&&hi&&dr^zn){var Cs;!(is&Ci)&&(Cs=Ki(pa,hi,!0))&&(ta=0,dr?(Li.lineStart(),Li.point(Cs[0][0],Cs[0][1]),Li.point(Cs[1][0],Cs[1][1]),Li.lineEnd()):(Li.point(Cs[1][0],Cs[1][1]),Li.lineEnd(),Li.lineStart(),Li.point(Cs[0][0],Cs[0][1],3)))}zn&&(!hi||!Fi(hi,pa))&&Li.point(pa[0],pa[1]),hi=pa,Si=zn,Ci=is},lineEnd:function(){Si&&Li.lineEnd(),hi=null},clean:function(){return ta|(Gn&&Si)<<1}}}function Ki(Li,hi,Ci){var Si=ce(Li),Gn=ce(hi),ta=[1,0,0],ya=rt(Si,Gn),ia=je(ya,ya),pa=ya[0],va=ia-pa*pa;if(!va)return!Ci&&Li;var zn=Ut*ia/va,is=-Ut*pa/va,Cs=rt(ta,ya),Ks=Ot(ta,zn),dl=Ot(ya,is);bt(Ks,dl);var xl=Cs,Bl=je(Ks,xl),bl=je(xl,xl),eu=Bl*Bl-bl*(je(Ks,Ks)-1);if(!(eu<0)){var Zl=S(eu),Vl=Ot(xl,(-Bl-Zl)/bl);if(bt(Vl,Ks),Vl=Be(Vl),!Ci)return Vl;var ja=Li[0],ns=hi[0],Js=Li[1],cs=hi[1],sl;ns0^Vl[1]<(p(Vl[0]-ja)u^(ja<=Vl[0]&&Vl[0]<=ns)){var Ml=Ot(xl,(-Bl+Zl)/bl);return bt(Ml,Ks),[Vl,Be(Ml)]}}}function Fn(Li,hi){var Ci=dr?St:u-St,Si=0;return Li<-Ci?Si|=1:Li>Ci&&(Si|=2),hi<-Ci?Si|=4:hi>Ci&&(Si|=8),Si}return Xr(Ti,ki,yi,dr?[0,-St]:[-u,St-u])}function ni(St,Ut,xr,dr,Dr,yi){var Ti=St[0],ki=St[1],Ki=Ut[0],Fn=Ut[1],Li=0,hi=1,Ci=Ki-Ti,Si=Fn-ki,Gn;if(Gn=xr-Ti,!(!Ci&&Gn>0)){if(Gn/=Ci,Ci<0){if(Gn0){if(Gn>hi)return;Gn>Li&&(Li=Gn)}if(Gn=Dr-Ti,!(!Ci&&Gn<0)){if(Gn/=Ci,Ci<0){if(Gn>hi)return;Gn>Li&&(Li=Gn)}else if(Ci>0){if(Gn0)){if(Gn/=Si,Si<0){if(Gn0){if(Gn>hi)return;Gn>Li&&(Li=Gn)}if(Gn=yi-ki,!(!Si&&Gn<0)){if(Gn/=Si,Si<0){if(Gn>hi)return;Gn>Li&&(Li=Gn)}else if(Si>0){if(Gn0&&(St[0]=Ti+Li*Ci,St[1]=ki+Li*Si),hi<1&&(Ut[0]=Ti+hi*Ci,Ut[1]=ki+hi*Si),!0}}}}}var Xi=1e9,aa=-Xi;function Mn(St,Ut,xr,dr){function Dr(Fn,Li){return St<=Fn&&Fn<=xr&&Ut<=Li&&Li<=dr}function yi(Fn,Li,hi,Ci){var Si=0,Gn=0;if(Fn==null||(Si=Ti(Fn,hi))!==(Gn=Ti(Li,hi))||Ki(Fn,Li)<0^hi>0)do Ci.point(Si===0||Si===3?St:xr,Si>1?dr:Ut);while((Si=(Si+hi+4)%4)!==Gn);else Ci.point(Li[0],Li[1])}function Ti(Fn,Li){return p(Fn[0]-St)0?0:3:p(Fn[0]-xr)0?2:1:p(Fn[1]-Ut)0?1:0:Li>0?3:2}function ki(Fn,Li){return Ki(Fn.x,Li.x)}function Ki(Fn,Li){var hi=Ti(Fn,1),Ci=Ti(Li,1);return hi!==Ci?hi-Ci:hi===0?Li[1]-Fn[1]:hi===1?Fn[0]-Li[0]:hi===2?Fn[1]-Li[1]:Li[0]-Fn[0]}return function(Fn){var Li=Fn,hi=oi(),Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks={point:dl,lineStart:eu,lineEnd:Zl,polygonStart:Bl,polygonEnd:bl};function dl(ja,ns){Dr(ja,ns)&&Li.point(ja,ns)}function xl(){for(var ja=0,ns=0,Js=Si.length;nsdr&&(Rl-zl)*(dr-Ml)>(Al-Ml)*(St-zl)&&++ja:Al<=dr&&(Rl-zl)*(dr-Ml)<(Al-Ml)*(St-zl)&&--ja;return ja}function Bl(){Li=hi,Ci=[],Si=[],Cs=!0}function bl(){var ja=xl(),ns=Cs&&ja,Js=(Ci=t.merge(Ci)).length;(ns||Js)&&(Fn.polygonStart(),ns&&(Fn.lineStart(),yi(null,null,1,Fn),Fn.lineEnd()),Js&&tn(Ci,ki,ja,yi,Fn),Fn.polygonEnd()),Li=Fn,Ci=Si=Gn=null}function eu(){Ks.point=Vl,Si&&Si.push(Gn=[]),is=!0,zn=!1,pa=va=NaN}function Zl(){Ci&&(Vl(ta,ya),ia&&zn&&hi.rejoin(),Ci.push(hi.result())),Ks.point=dl,zn&&Li.lineEnd()}function Vl(ja,ns){var Js=Dr(ja,ns);if(Si&&Gn.push([ja,ns]),is)ta=ja,ya=ns,ia=Js,is=!1,Js&&(Li.lineStart(),Li.point(ja,ns));else if(Js&&zn)Li.point(ja,ns);else{var cs=[pa=Math.max(aa,Math.min(Xi,pa)),va=Math.max(aa,Math.min(Xi,va))],sl=[ja=Math.max(aa,Math.min(Xi,ja)),ns=Math.max(aa,Math.min(Xi,ns))];ni(cs,sl,St,Ut,xr,dr)?(zn||(Li.lineStart(),Li.point(cs[0],cs[1])),Li.point(sl[0],sl[1]),Js||Li.lineEnd(),Cs=!1):Js&&(Li.lineStart(),Li.point(ja,ns),Cs=!1)}pa=ja,va=ns,zn=Js}return Ks}}function Un(){var St=0,Ut=0,xr=960,dr=500,Dr,yi,Ti;return Ti={stream:function(ki){return Dr&&yi===ki?Dr:Dr=Mn(St,Ut,xr,dr)(yi=ki)},extent:function(ki){return arguments.length?(St=+ki[0][0],Ut=+ki[0][1],xr=+ki[1][0],dr=+ki[1][1],Dr=yi=null,Ti):[[St,Ut],[xr,dr]]}}}var Ga=r(),ma,oa,ka,so={sphere:F,point:F,lineStart:Kr,lineEnd:F,polygonStart:F,polygonEnd:F};function Kr(){so.point=Yo,so.lineEnd=Ia}function Ia(){so.point=so.lineEnd=F}function Yo(St,Ut){St*=d,Ut*=d,ma=St,oa=x(Ut),ka=v(Ut),so.point=fa}function fa(St,Ut){St*=d,Ut*=d;var xr=x(Ut),dr=v(Ut),Dr=p(St-ma),yi=v(Dr),Ti=x(Dr),ki=dr*Ti,Ki=ka*xr-oa*dr*yi,Fn=oa*xr+ka*dr*yi;Ga.add(b(S(ki*ki+Ki*Ki),Fn)),ma=St,oa=xr,ka=dr}function kn(St){return Ga.reset(),H(St,so),+Ga}var Ta=[null,null],ys={type:"LineString",coordinates:Ta};function uo(St,Ut){return Ta[0]=St,Ta[1]=Ut,kn(ys)}var ls={Feature:function(St,Ut){return fo(St.geometry,Ut)},FeatureCollection:function(St,Ut){for(var xr=St.features,dr=-1,Dr=xr.length;++dr0&&(Dr=uo(St[yi],St[yi-1]),Dr>0&&xr<=Dr&&dr<=Dr&&(xr+dr-Dr)*(1-Math.pow((xr-dr)/Dr,2))o}).map(Ci)).concat(t.range(C(yi/Fn)*Fn,Dr,Fn).filter(function(va){return p(va%hi)>o}).map(Si))}return ia.lines=function(){return pa().map(function(va){return{type:"LineString",coordinates:va}})},ia.outline=function(){return{type:"Polygon",coordinates:[Gn(dr).concat(ta(Ti).slice(1),Gn(xr).reverse().slice(1),ta(ki).reverse().slice(1))]}},ia.extent=function(va){return arguments.length?ia.extentMajor(va).extentMinor(va):ia.extentMinor()},ia.extentMajor=function(va){return arguments.length?(dr=+va[0][0],xr=+va[1][0],ki=+va[0][1],Ti=+va[1][1],dr>xr&&(va=dr,dr=xr,xr=va),ki>Ti&&(va=ki,ki=Ti,Ti=va),ia.precision(ya)):[[dr,ki],[xr,Ti]]},ia.extentMinor=function(va){return arguments.length?(Ut=+va[0][0],St=+va[1][0],yi=+va[0][1],Dr=+va[1][1],Ut>St&&(va=Ut,Ut=St,St=va),yi>Dr&&(va=yi,yi=Dr,Dr=va),ia.precision(ya)):[[Ut,yi],[St,Dr]]},ia.step=function(va){return arguments.length?ia.stepMajor(va).stepMinor(va):ia.stepMinor()},ia.stepMajor=function(va){return arguments.length?(Li=+va[0],hi=+va[1],ia):[Li,hi]},ia.stepMinor=function(va){return arguments.length?(Ki=+va[0],Fn=+va[1],ia):[Ki,Fn]},ia.precision=function(va){return arguments.length?(ya=+va,Ci=Wi(yi,Dr,90),Si=gn(Ut,St,ya),Gn=Wi(ki,Ti,90),ta=gn(dr,xr,ya),ia):ya},ia.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ha(){return Ps()()}function Sn(St,Ut){var xr=St[0]*d,dr=St[1]*d,Dr=Ut[0]*d,yi=Ut[1]*d,Ti=v(dr),ki=x(dr),Ki=v(yi),Fn=x(yi),Li=Ti*v(xr),hi=Ti*x(xr),Ci=Ki*v(Dr),Si=Ki*x(Dr),Gn=2*M(S(O(yi-dr)+Ti*Ki*O(Dr-xr))),ta=x(Gn),ya=Gn?function(ia){var pa=x(ia*=Gn)/ta,va=x(Gn-ia)/ta,zn=va*Li+pa*Ci,is=va*hi+pa*Si,Cs=va*ki+pa*Fn;return[b(is,zn)*h,b(Cs,S(zn*zn+is*is))*h]}:function(){return[xr*h,dr*h]};return ya.distance=Gn,ya}function ao(St){return St}var Oa=r(),Ko=r(),Qo,Hi,Sa,Qa,vn={point:F,lineStart:F,lineEnd:F,polygonStart:function(){vn.lineStart=da,vn.lineEnd=As},polygonEnd:function(){vn.lineStart=vn.lineEnd=vn.point=F,Oa.add(p(Ko)),Ko.reset()},result:function(){var St=Oa/2;return Oa.reset(),St}};function da(){vn.point=la}function la(St,Ut){vn.point=vo,Qo=Sa=St,Hi=Qa=Ut}function vo(St,Ut){Ko.add(Qa*St-Sa*Ut),Sa=St,Qa=Ut}function As(){vo(Qo,Hi)}var ps=1/0,co=ps,mo=-ps,No=mo,jn={point:Go,lineStart:F,lineEnd:F,polygonStart:F,polygonEnd:F,result:function(){var St=[[ps,co],[mo,No]];return mo=No=-(co=ps=1/0),St}};function Go(St,Ut){Stmo&&(mo=St),UtNo&&(No=Ut)}var Ys=0,qs=0,Ns=0,Ba=0,ha=0,Vs=0,Ya=0,_n=0,Vn=0,wo,Ra,Xn,sn,$n={point:Ka,lineStart:qn,lineEnd:lo,polygonStart:function(){$n.lineStart=eo,$n.lineEnd=sa},polygonEnd:function(){$n.point=Ka,$n.lineStart=qn,$n.lineEnd=lo},result:function(){var St=Vn?[Ya/Vn,_n/Vn]:Vs?[Ba/Vs,ha/Vs]:Ns?[Ys/Ns,qs/Ns]:[NaN,NaN];return Ys=qs=Ns=Ba=ha=Vs=Ya=_n=Vn=0,St}};function Ka(St,Ut){Ys+=St,qs+=Ut,++Ns}function qn(){$n.point=Eo}function Eo(St,Ut){$n.point=Ja,Ka(Xn=St,sn=Ut)}function Ja(St,Ut){var xr=St-Xn,dr=Ut-sn,Dr=S(xr*xr+dr*dr);Ba+=Dr*(Xn+St)/2,ha+=Dr*(sn+Ut)/2,Vs+=Dr,Ka(Xn=St,sn=Ut)}function lo(){$n.point=Ka}function eo(){$n.point=es}function sa(){Na(wo,Ra)}function es(St,Ut){$n.point=Na,Ka(wo=Xn=St,Ra=sn=Ut)}function Na(St,Ut){var xr=St-Xn,dr=Ut-sn,Dr=S(xr*xr+dr*dr);Ba+=Dr*(Xn+St)/2,ha+=Dr*(sn+Ut)/2,Vs+=Dr,Dr=sn*St-Xn*Ut,Ya+=Dr*(Xn+St),_n+=Dr*(sn+Ut),Vn+=Dr*3,Ka(Xn=St,sn=Ut)}function en(St){this._context=St}en.prototype={_radius:4.5,pointRadius:function(St){return this._radius=St,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(St,Ut){switch(this._point){case 0:{this._context.moveTo(St,Ut),this._point=1;break}case 1:{this._context.lineTo(St,Ut);break}default:{this._context.moveTo(St+this._radius,Ut),this._context.arc(St,Ut,this._radius,0,c);break}}},result:F};var Pa=r(),to,yo,Jo,Ao,Dn,_a={point:F,lineStart:function(){_a.point=Ws},lineEnd:function(){to&&Ca(yo,Jo),_a.point=F},polygonStart:function(){to=!0},polygonEnd:function(){to=null},result:function(){var St=+Pa;return Pa.reset(),St}};function Ws(St,Ut){_a.point=Ca,yo=Ao=St,Jo=Dn=Ut}function Ca(St,Ut){Ao-=St,Dn-=Ut,Pa.add(S(Ao*Ao+Dn*Dn)),Ao=St,Dn=Ut}function Es(){this._string=[]}Es.prototype={_radius:4.5,_circle:Ts(4.5),pointRadius:function(St){return(St=+St)!==this._radius&&(this._radius=St,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(St,Ut){switch(this._point){case 0:{this._string.push("M",St,",",Ut),this._point=1;break}case 1:{this._string.push("L",St,",",Ut);break}default:{this._circle==null&&(this._circle=Ts(this._radius)),this._string.push("M",St,",",Ut,this._circle);break}}},result:function(){if(this._string.length){var St=this._string.join("");return this._string=[],St}else return null}};function Ts(St){return"m0,"+St+"a"+St+","+St+" 0 1,1 0,"+-2*St+"a"+St+","+St+" 0 1,1 0,"+2*St+"z"}function Ho(St,Ut){var xr=4.5,dr,Dr;function yi(Ti){return Ti&&(typeof xr=="function"&&Dr.pointRadius(+xr.apply(this,arguments)),H(Ti,dr(Dr))),Dr.result()}return yi.area=function(Ti){return H(Ti,dr(vn)),vn.result()},yi.measure=function(Ti){return H(Ti,dr(_a)),_a.result()},yi.bounds=function(Ti){return H(Ti,dr(jn)),jn.result()},yi.centroid=function(Ti){return H(Ti,dr($n)),$n.result()},yi.projection=function(Ti){return arguments.length?(dr=Ti==null?(St=null,ao):(St=Ti).stream,yi):St},yi.context=function(Ti){return arguments.length?(Dr=Ti==null?(Ut=null,new Es):new en(Ut=Ti),typeof xr!="function"&&Dr.pointRadius(xr),yi):Ut},yi.pointRadius=function(Ti){return arguments.length?(xr=typeof Ti=="function"?Ti:(Dr.pointRadius(+Ti),+Ti),yi):xr},yi.projection(St).context(Ut)}function Wa(St){return{stream:To(St)}}function To(St){return function(Ut){var xr=new ts;for(var dr in St)xr[dr]=St[dr];return xr.stream=Ut,xr}}function ts(){}ts.prototype={constructor:ts,point:function(St,Ut){this.stream.point(St,Ut)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wo(St,Ut,xr){var dr=St.clipExtent&&St.clipExtent();return St.scale(150).translate([0,0]),dr!=null&&St.clipExtent(null),H(xr,St.stream(jn)),Ut(jn.result()),dr!=null&&St.clipExtent(dr),St}function qa(St,Ut,xr){return Wo(St,function(dr){var Dr=Ut[1][0]-Ut[0][0],yi=Ut[1][1]-Ut[0][1],Ti=Math.min(Dr/(dr[1][0]-dr[0][0]),yi/(dr[1][1]-dr[0][1])),ki=+Ut[0][0]+(Dr-Ti*(dr[1][0]+dr[0][0]))/2,Ki=+Ut[0][1]+(yi-Ti*(dr[1][1]+dr[0][1]))/2;St.scale(150*Ti).translate([ki,Ki])},xr)}function on(St,Ut,xr){return qa(St,[[0,0],Ut],xr)}function Oo(St,Ut,xr){return Wo(St,function(dr){var Dr=+Ut,yi=Dr/(dr[1][0]-dr[0][0]),Ti=(Dr-yi*(dr[1][0]+dr[0][0]))/2,ki=-yi*dr[0][1];St.scale(150*yi).translate([Ti,ki])},xr)}function ko(St,Ut,xr){return Wo(St,function(dr){var Dr=+Ut,yi=Dr/(dr[1][1]-dr[0][1]),Ti=-yi*dr[0][0],ki=(Dr-yi*(dr[1][1]+dr[0][1]))/2;St.scale(150*yi).translate([Ti,ki])},xr)}var oo=16,za=v(30*d);function ea(St,Ut){return+Ut?$s(St,Ut):rs(St)}function rs(St){return To({point:function(Ut,xr){Ut=St(Ut,xr),this.stream.point(Ut[0],Ut[1])}})}function $s(St,Ut){function xr(dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya){var ia=Fn-dr,pa=Li-Dr,va=ia*ia+pa*pa;if(va>4*Ut&&ta--){var zn=Ti+Ci,is=ki+Si,Cs=Ki+Gn,Ks=S(zn*zn+is*is+Cs*Cs),dl=M(Cs/=Ks),xl=p(p(Cs)-1)Ut||p((ia*Zl+pa*Vl)/va-.5)>.3||Ti*Ci+ki*Si+Ki*Gn2?ja[2]%360*d:0,Zl()):[ki*h,Ki*h,Fn*h]},bl.angle=function(ja){return arguments.length?(hi=ja%360*d,Zl()):hi*h},bl.reflectX=function(ja){return arguments.length?(Ci=ja?-1:1,Zl()):Ci<0},bl.reflectY=function(ja){return arguments.length?(Si=ja?-1:1,Zl()):Si<0},bl.precision=function(ja){return arguments.length?(Cs=ea(Ks,is=ja*ja),Vl()):S(is)},bl.fitExtent=function(ja,ns){return qa(bl,ja,ns)},bl.fitSize=function(ja,ns){return on(bl,ja,ns)},bl.fitWidth=function(ja,ns){return Oo(bl,ja,ns)},bl.fitHeight=function(ja,ns){return ko(bl,ja,ns)};function Zl(){var ja=as(xr,0,0,Ci,Si,hi).apply(null,Ut(yi,Ti)),ns=(hi?as:fl)(xr,dr-ja[0],Dr-ja[1],Ci,Si,hi);return Li=Hr(ki,Ki,Fn),Ks=Nr(Ut,ns),dl=Nr(Li,Ks),Cs=ea(Ks,is),Vl()}function Vl(){return xl=Bl=null,bl}return function(){return Ut=St.apply(this,arguments),bl.invert=Ut.invert&&eu,Zl()}}function ho(St){var Ut=0,xr=u/3,dr=Qs(St),Dr=dr(Ut,xr);return Dr.parallels=function(yi){return arguments.length?dr(Ut=yi[0]*d,xr=yi[1]*d):[Ut*h,xr*h]},Dr}function gs(St){var Ut=v(St);function xr(dr,Dr){return[dr*Ut,x(Dr)/Ut]}return xr.invert=function(dr,Dr){return[dr/Ut,M(Dr*Ut)]},xr}function Vo(St,Ut){var xr=x(St),dr=(xr+x(Ut))/2;if(p(dr)=.12&&ya<.234&&ta>=-.425&&ta<-.214?Dr:ya>=.166&&ya<.234&&ta>=-.214&&ta<-.115?Ti:xr).invert(Ci)},Li.stream=function(Ci){return St&&Ut===Ci?St:St=xs([xr.stream(Ut=Ci),Dr.stream(Ci),Ti.stream(Ci)])},Li.precision=function(Ci){return arguments.length?(xr.precision(Ci),Dr.precision(Ci),Ti.precision(Ci),hi()):xr.precision()},Li.scale=function(Ci){return arguments.length?(xr.scale(Ci),Dr.scale(Ci*.35),Ti.scale(Ci),Li.translate(xr.translate())):xr.scale()},Li.translate=function(Ci){if(!arguments.length)return xr.translate();var Si=xr.scale(),Gn=+Ci[0],ta=+Ci[1];return dr=xr.translate(Ci).clipExtent([[Gn-.455*Si,ta-.238*Si],[Gn+.455*Si,ta+.238*Si]]).stream(Fn),yi=Dr.translate([Gn-.307*Si,ta+.201*Si]).clipExtent([[Gn-.425*Si+o,ta+.12*Si+o],[Gn-.214*Si-o,ta+.234*Si-o]]).stream(Fn),ki=Ti.translate([Gn-.205*Si,ta+.212*Si]).clipExtent([[Gn-.214*Si+o,ta+.166*Si+o],[Gn-.115*Si-o,ta+.234*Si-o]]).stream(Fn),hi()},Li.fitExtent=function(Ci,Si){return qa(Li,Ci,Si)},Li.fitSize=function(Ci,Si){return on(Li,Ci,Si)},Li.fitWidth=function(Ci,Si){return Oo(Li,Ci,Si)},Li.fitHeight=function(Ci,Si){return ko(Li,Ci,Si)};function hi(){return St=Ut=null,Li}return Li.scale(1070)}function Ea(St){return function(Ut,xr){var dr=v(Ut),Dr=v(xr),yi=St(dr*Dr);return[yi*Dr*x(Ut),yi*x(xr)]}}function Jn(St){return function(Ut,xr){var dr=S(Ut*Ut+xr*xr),Dr=St(dr),yi=x(Dr),Ti=v(Dr);return[b(Ut*yi,dr*Ti),M(dr&&xr*yi/dr)]}}var Bo=Ea(function(St){return S(2/(1+St))});Bo.invert=Jn(function(St){return 2*M(St/2)});function rl(){return Ma(Bo).scale(124.75).clipAngle(180-.001)}var Gs=Ea(function(St){return(St=P(St))&&St/x(St)});Gs.invert=Jn(function(St){return St});function bs(){return Ma(Gs).scale(79.4188).clipAngle(180-.001)}function zs(St,Ut){return[St,A(m((l+Ut)/2))]}zs.invert=function(St,Ut){return[St,2*y(E(Ut))-l]};function $o(){return Aa(zs).scale(961/c)}function Aa(St){var Ut=Ma(St),xr=Ut.center,dr=Ut.scale,Dr=Ut.translate,yi=Ut.clipExtent,Ti=null,ki,Ki,Fn;Ut.scale=function(hi){return arguments.length?(dr(hi),Li()):dr()},Ut.translate=function(hi){return arguments.length?(Dr(hi),Li()):Dr()},Ut.center=function(hi){return arguments.length?(xr(hi),Li()):xr()},Ut.clipExtent=function(hi){return arguments.length?(hi==null?Ti=ki=Ki=Fn=null:(Ti=+hi[0][0],ki=+hi[0][1],Ki=+hi[1][0],Fn=+hi[1][1]),Li()):Ti==null?null:[[Ti,ki],[Ki,Fn]]};function Li(){var hi=u*dr(),Ci=Ut(Vi(Ut.rotate()).invert([0,0]));return yi(Ti==null?[[Ci[0]-hi,Ci[1]-hi],[Ci[0]+hi,Ci[1]+hi]]:St===zs?[[Math.max(Ci[0]-hi,Ti),ki],[Math.min(Ci[0]+hi,Ki),Fn]]:[[Ti,Math.max(Ci[1]-hi,ki)],[Ki,Math.min(Ci[1]+hi,Fn)]])}return Li()}function os(St){return m((l+St)/2)}function _l(St,Ut){var xr=v(St),dr=St===Ut?x(St):A(xr/v(Ut))/A(os(Ut)/os(St)),Dr=xr*L(os(St),dr)/dr;if(!dr)return zs;function yi(Ti,ki){Dr>0?ki<-l+o&&(ki=-l+o):ki>l-o&&(ki=l-o);var Ki=Dr/L(os(ki),dr);return[Ki*x(dr*Ti),Dr-Ki*v(dr*Ti)]}return yi.invert=function(Ti,ki){var Ki=Dr-ki,Fn=k(dr)*S(Ti*Ti+Ki*Ki),Li=b(Ti,p(Ki))*k(Ki);return Ki*dr<0&&(Li-=u*k(Ti)*k(Ki)),[Li/dr,2*y(L(Dr/Fn,1/dr))-l]},yi}function Ss(){return ho(_l).scale(109.5).parallels([30,30])}function po(St,Ut){return[St,Ut]}po.invert=po;function go(){return Ma(po).scale(152.63)}function ss(St,Ut){var xr=v(St),dr=St===Ut?x(St):(xr-v(Ut))/(Ut-St),Dr=xr/dr+St;if(p(dr)o&&--dr>0);return[St/(.8707+(yi=xr*xr)*(-.131979+yi*(-.013791+yi*yi*yi*(.003971-.001529*yi)))),xr]};function hl(){return Ma(Fs).scale(175.295)}function Fa(St,Ut){return[v(Ut)*x(St),x(Ut)]}Fa.invert=Jn(M);function Ms(){return Ma(Fa).scale(249.5).clipAngle(90+o)}function jo(St,Ut){var xr=v(Ut),dr=1+v(St)*xr;return[xr*x(St)/dr,x(Ut)/dr]}jo.invert=Jn(function(St){return 2*y(St)});function Rs(){return Ma(jo).scale(250).clipAngle(142)}function Is(St,Ut){return[A(m((l+Ut)/2)),-St]}Is.invert=function(St,Ut){return[-Ut,2*y(E(St))-l]};function Os(){var St=Aa(Is),Ut=St.center,xr=St.rotate;return St.center=function(dr){return arguments.length?Ut([-dr[1],dr[0]]):(dr=Ut(),[dr[1],-dr[0]])},St.rotate=function(dr){return arguments.length?xr([dr[0],dr[1],dr.length>2?dr[2]+90:90]):(dr=xr(),[dr[0],dr[1],dr[2]-90])},xr([0,0,90]).scale(159.155)}e.geoAlbers=Lo,e.geoAlbersUsa=ks,e.geoArea=ge,e.geoAzimuthalEqualArea=rl,e.geoAzimuthalEqualAreaRaw=Bo,e.geoAzimuthalEquidistant=bs,e.geoAzimuthalEquidistantRaw=Gs,e.geoBounds=xe,e.geoCentroid=mr,e.geoCircle=Yr,e.geoClipAntimeridian=fr,e.geoClipCircle=$i,e.geoClipExtent=Un,e.geoClipRectangle=Mn,e.geoConicConformal=Ss,e.geoConicConformalRaw=_l,e.geoConicEqualArea=Do,e.geoConicEqualAreaRaw=Vo,e.geoConicEquidistant=qo,e.geoConicEquidistantRaw=ss,e.geoContains=Po,e.geoDistance=uo,e.geoEqualEarth=el,e.geoEqualEarthRaw=cl,e.geoEquirectangular=go,e.geoEquirectangularRaw=po,e.geoGnomonic=Ro,e.geoGnomonicRaw=Hs,e.geoGraticule=Ps,e.geoGraticule10=Ha,e.geoIdentity=tl,e.geoInterpolate=Sn,e.geoLength=kn,e.geoMercator=$o,e.geoMercatorRaw=zs,e.geoNaturalEarth1=hl,e.geoNaturalEarth1Raw=Fs,e.geoOrthographic=Ms,e.geoOrthographicRaw=Fa,e.geoPath=Ho,e.geoProjection=Ma,e.geoProjectionMutator=Qs,e.geoRotation=Vi,e.geoStereographic=Rs,e.geoStereographicRaw=jo,e.geoStream=H,e.geoTransform=Wa,e.geoTransverseMercator=Os,e.geoTransverseMercatorRaw=Is,Object.defineProperty(e,"__esModule",{value:!0})}))});var nFe=we((qF,iFe)=>{(function(e,t){typeof qF=="object"&&typeof iFe!="undefined"?t(qF,eY(),mk()):t(e.d3=e.d3||{},e.d3,e.d3)})(qF,(function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,u=Math.floor,l=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(he){return he>0?1:he<0?-1:0},y=Math.sin,b=Math.tan,v=1e-6,C=1e-12,E=Math.PI,A=E/2,L=E/4,x=Math.SQRT1_2,k=G(2),S=G(E),m=E*2,P=180/E,M=E/180;function O(he){return he?he/Math.sin(he):1}function F(he){return he>1?A:he<-1?-A:Math.asin(he)}function U(he){return he>1?0:he<-1?E:Math.acos(he)}function G(he){return he>0?Math.sqrt(he):0}function j(he){return he=s(2*he),(he-1)/(he+1)}function W(he){return(s(he)-s(-he))/2}function N(he){return(s(he)+s(-he))/2}function H(he){return l(he+G(he*he+1))}function re(he){return l(he+G(he*he-1))}function ae(he){var Ae=b(he/2),qe=2*l(o(he/2))/(Ae*Ae);function Ge(ft,ot){var mt=o(ft),Gt=o(ot),er=y(ot),sr=Gt*mt,wr=-((1-sr?l((1+sr)/2)/(1-sr):-.5)+qe/(1+sr));return[wr*Gt*y(ft),wr*er]}return Ge.invert=function(ft,ot){var mt=G(ft*ft+ot*ot),Gt=-he/2,er=50,sr;if(!mt)return[0,0];do{var wr=Gt/2,Ir=o(wr),ri=y(wr),si=ri/Ir,Mi=-l(n(Ir));Gt-=sr=(2/si*Mi-qe*si-mt)/(-Mi/(ri*ri)+1-qe/(2*Ir*Ir))*(Ir<0?.7:1)}while(n(sr)>v&&--er>0);var cn=y(Gt);return[a(ft*cn,mt*o(Gt)),F(ot*cn/mt)]},Ge}function me(){var he=A,Ae=t.geoProjectionMutator(ae),qe=Ae(he);return qe.radius=function(Ge){return arguments.length?Ae(he=Ge*M):he*P},qe.scale(179.976).clipAngle(147)}function Ce(he,Ae){var qe=o(Ae),Ge=O(U(qe*o(he/=2)));return[2*qe*y(he)*Ge,y(Ae)*Ge]}Ce.invert=function(he,Ae){if(!(he*he+4*Ae*Ae>E*E+v)){var qe=he,Ge=Ae,ft=25;do{var ot=y(qe),mt=y(qe/2),Gt=o(qe/2),er=y(Ge),sr=o(Ge),wr=y(2*Ge),Ir=er*er,ri=sr*sr,si=mt*mt,Mi=1-ri*Gt*Gt,cn=Mi?U(sr*Gt)*G(Zn=1/Mi):Zn=0,Zn,Yn=2*cn*sr*mt-he,Ua=cn*er-Ae,Fo=Zn*(ri*si+cn*sr*Gt*Ir),vl=Zn*(.5*ot*wr-cn*2*er*mt),Us=Zn*.25*(wr*mt-cn*er*ri*ot),ml=Zn*(Ir*Gt+cn*si*sr),au=vl*Us-ml*Fo;if(!au)break;var Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ge-=Yl}while((n(Sl)>v||n(Yl)>v)&&--ft>0);return[qe,Ge]}};function Ee(){return t.geoProjection(Ce).scale(152.63)}function de(he){var Ae=y(he),qe=o(he),Ge=he>=0?1:-1,ft=b(Ge*he),ot=(1+Ae-qe)/2;function mt(Gt,er){var sr=o(er),wr=o(Gt/=2);return[(1+sr)*y(Gt),(Ge*er>-a(wr,ft)-.001?0:-Ge*10)+ot+y(er)*qe-(1+sr)*Ae*wr]}return mt.invert=function(Gt,er){var sr=0,wr=0,Ir=50;do{var ri=o(sr),si=y(sr),Mi=o(wr),cn=y(wr),Zn=1+Mi,Yn=Zn*si-Gt,Ua=ot+cn*qe-Zn*Ae*ri-er,Fo=Zn*ri/2,vl=-si*cn,Us=Ae*Zn*si/2,ml=qe*Mi+Ae*ri*cn,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au/2,Yl=(Yn*Us-Ua*Fo)/au;n(Yl)>2&&(Yl/=2),sr-=Sl,wr-=Yl}while((n(Sl)>v||n(Yl)>v)&&--Ir>0);return Ge*wr>-a(o(sr),ft)-.001?[sr*2,wr]:null},mt}function te(){var he=20*M,Ae=he>=0?1:-1,qe=b(Ae*he),Ge=t.geoProjectionMutator(de),ft=Ge(he),ot=ft.stream;return ft.parallel=function(mt){return arguments.length?(qe=b((Ae=(he=mt*M)>=0?1:-1)*he),Ge(he)):he*P},ft.stream=function(mt){var Gt=ft.rotate(),er=ot(mt),sr=(ft.rotate([0,0]),ot(mt)),wr=ft.precision();return ft.rotate(Gt),er.sphere=function(){sr.polygonStart(),sr.lineStart();for(var Ir=Ae*-180;Ae*Ir<180;Ir+=Ae*90)sr.point(Ir,Ae*90);if(he)for(;Ae*(Ir-=3*Ae*wr)>=-180;)sr.point(Ir,Ae*-a(o(Ir*M/2),qe)*P);sr.lineEnd(),sr.polygonEnd()},er},ft.scale(218.695).center([0,28.0974])}function Se(he,Ae){var qe=b(Ae/2),Ge=G(1-qe*qe),ft=1+Ge*o(he/=2),ot=y(he)*Ge/ft,mt=qe/ft,Gt=ot*ot,er=mt*mt;return[4/3*ot*(3+Gt-3*er),4/3*mt*(3+3*Gt-er)]}Se.invert=function(he,Ae){if(he*=3/8,Ae*=3/8,!he&&n(Ae)>1)return null;var qe=he*he,Ge=Ae*Ae,ft=1+qe+Ge,ot=G((ft-G(ft*ft-4*Ae*Ae))/2),mt=F(ot)/3,Gt=ot?re(n(Ae/ot))/3:H(n(he))/3,er=o(mt),sr=N(Gt),wr=sr*sr-er*er;return[p(he)*2*a(W(Gt)*er,.25-wr),p(Ae)*2*a(sr*y(mt),.25+wr)]};function Te(){return t.geoProjection(Se).scale(66.1603)}var be=G(8),He=l(1+k);function Ie(he,Ae){var qe=n(Ae);return qeC&&--Ge>0);return[he/(o(qe)*(be-1/y(qe))),p(Ae)*qe]};function ge(){return t.geoProjection(Ie).scale(112.314)}function Be(he){var Ae=2*E/he;function qe(Ge,ft){var ot=t.geoAzimuthalEquidistantRaw(Ge,ft);if(n(Ge)>A){var mt=a(ot[1],ot[0]),Gt=G(ot[0]*ot[0]+ot[1]*ot[1]),er=Ae*d((mt-A)/Ae)+A,sr=a(y(mt-=er),2-o(mt));mt=er+F(E/Gt*y(sr))-sr,ot[0]=Gt*o(mt),ot[1]=Gt*y(mt)}return ot}return qe.invert=function(Ge,ft){var ot=G(Ge*Ge+ft*ft);if(ot>A){var mt=a(ft,Ge),Gt=Ae*d((mt-A)/Ae)+A,er=mt>Gt?-1:1,sr=ot*o(Gt-mt),wr=1/b(er*U((sr-E)/G(E*(E-2*sr)+ot*ot)));mt=Gt+2*i((wr+er*G(wr*wr-3))/3),Ge=ot*o(mt),ft=ot*y(mt)}return t.geoAzimuthalEquidistantRaw.invert(Ge,ft)},qe}function ce(){var he=5,Ae=t.geoProjectionMutator(Be),qe=Ae(he),Ge=qe.stream,ft=.01,ot=-o(ft*M),mt=y(ft*M);return qe.lobes=function(Gt){return arguments.length?Ae(he=+Gt):he},qe.stream=function(Gt){var er=qe.rotate(),sr=Ge(Gt),wr=(qe.rotate([0,0]),Ge(Gt));return qe.rotate(er),sr.sphere=function(){wr.polygonStart(),wr.lineStart();for(var Ir=0,ri=360/he,si=2*E/he,Mi=90-180/he,cn=A;Ir0&&n(ft)>v);return Ge<0?NaN:qe}function it(he,Ae,qe){return Ae===void 0&&(Ae=40),qe===void 0&&(qe=C),function(Ge,ft,ot,mt){var Gt,er,sr;ot=ot===void 0?0:+ot,mt=mt===void 0?0:+mt;for(var wr=0;wrGt){ot-=er/=2,mt-=sr/=2;continue}Gt=Mi;var cn=(ot>0?-1:1)*qe,Zn=(mt>0?-1:1)*qe,Yn=he(ot+cn,mt),Ua=he(ot,mt+Zn),Fo=(Yn[0]-Ir[0])/cn,vl=(Yn[1]-Ir[1])/cn,Us=(Ua[0]-Ir[0])/Zn,ml=(Ua[1]-Ir[1])/Zn,au=ml*Fo-vl*Us,Sl=(n(au)<.5?.5:1)/au;if(er=(si*Us-ri*ml)*Sl,sr=(ri*vl-si*Fo)*Sl,ot+=er,mt+=sr,n(er)0&&(Gt[1]*=1+er/1.5*Gt[0]*Gt[0]),Gt}return Ge.invert=it(Ge),Ge}function zt(){return t.geoProjection(Ke()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Mt(he,Ae){var qe=he*y(Ae),Ge=30,ft;do Ae-=ft=(Ae+y(Ae)-qe)/(1+o(Ae));while(n(ft)>v&&--Ge>0);return Ae/2}function kt(he,Ae,qe){function Ge(ft,ot){return[he*ft*o(ot=Mt(qe,ot)),Ae*y(ot)]}return Ge.invert=function(ft,ot){return ot=F(ot/Ae),[ft/(he*o(ot)),F((2*ot+y(2*ot))/qe)]},Ge}var $e=kt(k/A,k,E);function Re(){return t.geoProjection($e).scale(169.529)}var Me=2.00276,oe=1.11072;function Ne(he,Ae){var qe=Mt(E,Ae);return[Me*he/(1/o(Ae)+oe/o(qe)),(Ae+k*y(qe))/Me]}Ne.invert=function(he,Ae){var qe=Me*Ae,Ge=Ae<0?-L:L,ft=25,ot,mt;do mt=qe-k*y(Ge),Ge-=ot=(y(2*Ge)+2*Ge-E*y(mt))/(2*o(2*Ge)+2+E*o(mt)*k*o(Ge));while(n(ot)>v&&--ft>0);return mt=qe-k*y(Ge),[he*(1/o(mt)+oe/o(Ge))/Me,mt]};function vt(){return t.geoProjection(Ne).scale(160.857)}function lt(he){var Ae=0,qe=t.geoProjectionMutator(he),Ge=qe(Ae);return Ge.parallel=function(ft){return arguments.length?qe(Ae=ft*M):Ae*P},Ge}function We(he,Ae){return[he*o(Ae),Ae]}We.invert=function(he,Ae){return[he/o(Ae),Ae]};function Ve(){return t.geoProjection(We).scale(152.63)}function et(he){if(!he)return We;var Ae=1/b(he);function qe(Ge,ft){var ot=Ae+he-ft,mt=ot&&Ge*o(ft)/ot;return[ot*y(mt),Ae-ot*o(mt)]}return qe.invert=function(Ge,ft){var ot=G(Ge*Ge+(ft=Ae-ft)*ft),mt=Ae+he-ot;return[ot/o(mt)*a(Ge,ft),mt]},qe}function tt(){return lt(et).scale(123.082).center([0,26.1441]).parallel(45)}function Lt(he){function Ae(qe,Ge){var ft=A-Ge,ot=ft&&qe*he*y(ft)/ft;return[ft*y(ot)/he,A-ft*o(ot)]}return Ae.invert=function(qe,Ge){var ft=qe*he,ot=A-Ge,mt=G(ft*ft+ot*ot),Gt=a(ft,ot);return[(mt?mt/y(mt):1)*Gt/he,A-mt]},Ae}function jt(){var he=.5,Ae=t.geoProjectionMutator(Lt),qe=Ae(he);return qe.fraction=function(Ge){return arguments.length?Ae(he=+Ge):he},qe.scale(158.837)}var or=kt(1,4/E,E);function yr(){return t.geoProjection(or).scale(152.63)}function vr(he,Ae,qe,Ge,ft,ot){var mt=o(ot),Gt;if(n(he)>1||n(ot)>1)Gt=U(qe*ft+Ae*Ge*mt);else{var er=y(he/2),sr=y(ot/2);Gt=2*F(G(er*er+Ae*Ge*sr*sr))}return n(Gt)>v?[Gt,a(Ge*y(ot),Ae*ft-qe*Ge*mt)]:[0,0]}function Vt(he,Ae,qe){return U((he*he+Ae*Ae-qe*qe)/(2*he*Ae))}function Pe(he){return he-2*E*u((he+E)/(2*E))}function xe(he,Ae,qe){for(var Ge=[[he[0],he[1],y(he[1]),o(he[1])],[Ae[0],Ae[1],y(Ae[1]),o(Ae[1])],[qe[0],qe[1],y(qe[1]),o(qe[1])]],ft=Ge[2],ot,mt=0;mt<3;++mt,ft=ot)ot=Ge[mt],ft.v=vr(ot[1]-ft[1],ft[3],ft[2],ot[3],ot[2],ot[0]-ft[0]),ft.point=[0,0];var Gt=Vt(Ge[0].v[0],Ge[2].v[0],Ge[1].v[0]),er=Vt(Ge[0].v[0],Ge[1].v[0],Ge[2].v[0]),sr=E-Gt;Ge[2].point[1]=0,Ge[0].point[0]=-(Ge[1].point[0]=Ge[0].v[0]/2);var wr=[Ge[2].point[0]=Ge[0].point[0]+Ge[2].v[0]*o(Gt),2*(Ge[0].point[1]=Ge[1].point[1]=Ge[2].v[0]*y(Gt))];function Ir(ri,si){var Mi=y(si),cn=o(si),Zn=new Array(3),Yn;for(Yn=0;Yn<3;++Yn){var Ua=Ge[Yn];if(Zn[Yn]=vr(si-Ua[1],Ua[3],Ua[2],cn,Mi,ri-Ua[0]),!Zn[Yn][0])return Ua.point;Zn[Yn][1]=Pe(Zn[Yn][1]-Ua.v[1])}var Fo=wr.slice();for(Yn=0;Yn<3;++Yn){var vl=Yn==2?0:Yn+1,Us=Vt(Ge[Yn].v[0],Zn[Yn][0],Zn[vl][0]);Zn[Yn][1]<0&&(Us=-Us),Yn?Yn==1?(Us=er-Us,Fo[0]-=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*y(Us)):(Us=sr-Us,Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]+=Zn[Yn][0]*y(Us)):(Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*y(Us))}return Fo[0]/=3,Fo[1]/=3,Fo}return Ir}function Oe(he){return he[0]*=M,he[1]*=M,he}function ze(){return De([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function De(he,Ae,qe){var Ge=t.geoCentroid({type:"MultiPoint",coordinates:[he,Ae,qe]}),ft=[-Ge[0],-Ge[1]],ot=t.geoRotation(ft),mt=xe(Oe(ot(he)),Oe(ot(Ae)),Oe(ot(qe)));mt.invert=it(mt);var Gt=t.geoProjection(mt).rotate(ft),er=Gt.center;return delete Gt.rotate,Gt.center=function(sr){return arguments.length?er(ot(sr)):ot.invert(er())},Gt.clipAngle(90)}function ht(he,Ae){var qe=G(1-y(Ae));return[2/S*he*qe,S*(1-qe)]}ht.invert=function(he,Ae){var qe=(qe=Ae/S-1)*qe;return[qe>0?he*G(E/qe)/2:0,F(1-qe)]};function st(){return t.geoProjection(ht).scale(95.6464).center([0,30])}function gt(he){var Ae=b(he);function qe(Ge,ft){return[Ge,(Ge?Ge/y(Ge):1)*(y(ft)*o(Ge)-Ae*o(ft))]}return qe.invert=Ae?function(Ge,ft){Ge&&(ft*=y(Ge)/Ge);var ot=o(Ge);return[Ge,2*a(G(ot*ot+Ae*Ae-ft*ft)-ot,Ae-ft)]}:function(Ge,ft){return[Ge,F(Ge?ft*b(Ge)/Ge:ft)]},qe}function xt(){return lt(gt).scale(249.828).clipAngle(90)}var pr=G(3);function br(he,Ae){return[pr*he*(2*o(2*Ae/3)-1)/S,pr*S*y(Ae/3)]}br.invert=function(he,Ae){var qe=3*F(Ae/(pr*S));return[S*he/(pr*(2*o(2*qe/3)-1)),qe]};function cr(){return t.geoProjection(br).scale(156.19)}function Er(he){var Ae=o(he);function qe(Ge,ft){return[Ge*Ae,y(ft)/Ae]}return qe.invert=function(Ge,ft){return[Ge/Ae,F(ft*Ae)]},qe}function ii(){return lt(Er).parallel(38.58).scale(195.044)}function jr(he){var Ae=o(he);function qe(Ge,ft){return[Ge*Ae,(1+Ae)*b(ft/2)]}return qe.invert=function(Ge,ft){return[Ge/Ae,i(ft/(1+Ae))*2]},qe}function kr(){return lt(jr).scale(124.75)}function Vr(he,Ae){var qe=G(8/(3*E));return[qe*he*(1-n(Ae)/E),qe*Ae]}Vr.invert=function(he,Ae){var qe=G(8/(3*E)),Ge=Ae/qe;return[he/(qe*(1-n(Ge)/E)),Ge]};function Ai(){return t.geoProjection(Vr).scale(165.664)}function Bi(he,Ae){var qe=G(4-3*y(n(Ae)));return[2/G(6*E)*he*qe,p(Ae)*G(2*E/3)*(2-qe)]}Bi.invert=function(he,Ae){var qe=2-n(Ae)/G(2*E/3);return[he*G(6*E)/(2*qe),p(Ae)*F((4-qe*qe)/3)]};function Ri(){return t.geoProjection(Bi).scale(165.664)}function ln(he,Ae){var qe=G(E*(4+E));return[2/qe*he*(1+G(1-4*Ae*Ae/(E*E))),4/qe*Ae]}ln.invert=function(he,Ae){var qe=G(E*(4+E))/2;return[he*qe/(1+G(1-Ae*Ae*(4+E)/(4*E))),Ae*qe/2]};function hn(){return t.geoProjection(ln).scale(180.739)}function qr(he,Ae){var qe=(2+A)*y(Ae);Ae/=2;for(var Ge=0,ft=1/0;Ge<10&&n(ft)>v;Ge++){var ot=o(Ae);Ae-=ft=(Ae+y(Ae)*(ot+2)-qe)/(2*ot*(1+ot))}return[2/G(E*(4+E))*he*(1+o(Ae)),2*G(E/(4+E))*y(Ae)]}qr.invert=function(he,Ae){var qe=Ae*G((4+E)/E)/2,Ge=F(qe),ft=o(Ge);return[he/(2/G(E*(4+E))*(1+ft)),F((Ge+qe*(ft+2))/(2+A))]};function _i(){return t.geoProjection(qr).scale(180.739)}function zi(he,Ae){return[he*(1+o(Ae))/G(2+E),2*Ae/G(2+E)]}zi.invert=function(he,Ae){var qe=G(2+E),Ge=Ae*qe/2;return[qe*he/(1+o(Ge)),Ge]};function Dt(){return t.geoProjection(zi).scale(173.044)}function _t(he,Ae){for(var qe=(1+A)*y(Ae),Ge=0,ft=1/0;Ge<10&&n(ft)>v;Ge++)Ae-=ft=(Ae+y(Ae)-qe)/(1+o(Ae));return qe=G(2+E),[he*(1+o(Ae))/qe,2*Ae/qe]}_t.invert=function(he,Ae){var qe=1+A,Ge=G(qe/2);return[he*2*Ge/(1+o(Ae*=Ge)),F((Ae+y(Ae))/qe)]};function qt(){return t.geoProjection(_t).scale(173.044)}var Nt=3+2*k;function mr(he,Ae){var qe=y(he/=2),Ge=o(he),ft=G(o(Ae)),ot=o(Ae/=2),mt=y(Ae)/(ot+k*Ge*ft),Gt=G(2/(1+mt*mt)),er=G((k*ot+(Ge+qe)*ft)/(k*ot+(Ge-qe)*ft));return[Nt*(Gt*(er-1/er)-2*l(er)),Nt*(Gt*mt*(er+1/er)-2*i(mt))]}mr.invert=function(he,Ae){if(!(ot=Se.invert(he/1.2,Ae*1.065)))return null;var qe=ot[0],Ge=ot[1],ft=20,ot;he/=Nt,Ae/=Nt;do{var mt=qe/2,Gt=Ge/2,er=y(mt),sr=o(mt),wr=y(Gt),Ir=o(Gt),ri=o(Ge),si=G(ri),Mi=wr/(Ir+k*sr*si),cn=Mi*Mi,Zn=G(2/(1+cn)),Yn=k*Ir+(sr+er)*si,Ua=k*Ir+(sr-er)*si,Fo=Yn/Ua,vl=G(Fo),Us=vl-1/vl,ml=vl+1/vl,au=Zn*Us-2*l(vl)-he,Sl=Zn*Mi*ml-2*i(Mi)-Ae,Yl=wr&&x*si*er*cn/wr,ql=(k*sr*Ir+si)/(2*(Ir+k*sr*si)*(Ir+k*sr*si)*si),ou=-.5*Mi*Zn*Zn*Zn,Pu=ou*Yl,nu=ou*ql,ru=(ru=2*Ir+k*si*(sr-er))*ru*vl,Hu=(k*sr*Ir*si+ri)/ru,$u=-(k*er*wr)/(si*ru),Ku=Us*Pu-2*Hu/vl+Zn*(Hu+Hu/Fo),Wu=Us*nu-2*$u/vl+Zn*($u+$u/Fo),ju=Mi*ml*Pu-2*Yl/(1+cn)+Zn*ml*Yl+Zn*Mi*(Hu-Hu/Fo),sf=Mi*ml*nu-2*ql/(1+cn)+Zn*ml*ql+Zn*Mi*($u-$u/Fo),_f=Wu*ju-sf*Ku;if(!_f)break;var Qu=(Sl*Wu-au*sf)/_f,ef=(au*ju-Sl*Ku)/_f;qe-=Qu,Ge=f(-A,c(A,Ge-ef))}while((n(Qu)>v||n(ef)>v)&&--ft>0);return n(n(Ge)-A)Ge){var Ir=G(wr),ri=a(sr,er),si=qe*d(ri/qe),Mi=ri-si,cn=he*o(Mi),Zn=(he*y(Mi)-Mi*y(cn))/(A-cn),Yn=Fi(Mi,Zn),Ua=(E-he)/rn(Yn,cn,E);er=Ir;var Fo=50,vl;do er-=vl=(he+rn(Yn,cn,er)*Ua-Ir)/(Yn(er)*Ua);while(n(vl)>v&&--Fo>0);sr=Mi*y(er),erGe){var er=G(Gt),sr=a(mt,ot),wr=qe*d(sr/qe),Ir=sr-wr;ot=er*o(Ir),mt=er*y(Ir);for(var ri=ot-A,si=y(ot),Mi=mt/si,cn=otv||n(Mi)>v)&&--cn>0);return[Ir,ri]},er}var Ii=Di(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xn(){return t.geoProjection(Ii).scale(149.995)}var xi=Di(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Xr(){return t.geoProjection(xi).scale(153.93)}var dt=Di(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function $t(){return t.geoProjection(dt).scale(130.945)}function fr(he,Ae){var qe=he*he,Ge=Ae*Ae;return[he*(1-.162388*Ge)*(.87-952426e-9*qe*qe),Ae*(1+Ge/12)]}fr.invert=function(he,Ae){var qe=he,Ge=Ae,ft=50,ot;do{var mt=Ge*Ge;Ge-=ot=(Ge*(1+mt/12)-Ae)/(1+mt/4)}while(n(ot)>v&&--ft>0);ft=50,he/=1-.162388*mt;do{var Gt=(Gt=qe*qe)*Gt;qe-=ot=(qe*(.87-952426e-9*Gt)-he)/(.87-.00476213*Gt)}while(n(ot)>v&&--ft>0);return[qe,Ge]};function gr(){return t.geoProjection(fr).scale(131.747)}var Zr=Di(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function wi(){return t.geoProjection(Zr).scale(131.087)}function $i(he){var Ae=he(A,0)[0]-he(-A,0)[0];function qe(Ge,ft){var ot=Ge>0?-.5:.5,mt=he(Ge+ot*E,ft);return mt[0]-=ot*Ae,mt}return he.invert&&(qe.invert=function(Ge,ft){var ot=Ge>0?-.5:.5,mt=he.invert(Ge+ot*Ae,ft),Gt=mt[0]-ot*E;return Gt<-E?Gt+=2*E:Gt>E&&(Gt-=2*E),mt[0]=Gt,mt}),qe}function ni(he,Ae){var qe=p(he),Ge=p(Ae),ft=o(Ae),ot=o(he)*ft,mt=y(he)*ft,Gt=y(Ge*Ae);he=n(a(mt,Gt)),Ae=F(ot),n(he-A)>v&&(he%=A);var er=Xi(he>E/4?A-he:he,Ae);return he>E/4&&(Gt=er[0],er[0]=-er[1],er[1]=-Gt),er[0]*=qe,er[1]*=-Ge,er}ni.invert=function(he,Ae){n(he)>1&&(he=p(he)*2-he),n(Ae)>1&&(Ae=p(Ae)*2-Ae);var qe=p(he),Ge=p(Ae),ft=-qe*he,ot=-Ge*Ae,mt=ot/ft<1,Gt=aa(mt?ot:ft,mt?ft:ot),er=Gt[0],sr=Gt[1],wr=o(sr);return mt&&(er=-A-er),[qe*(a(y(er)*wr,-y(sr))+E),Ge*F(o(er)*wr)]};function Xi(he,Ae){if(Ae===A)return[0,0];var qe=y(Ae),Ge=qe*qe,ft=Ge*Ge,ot=1+ft,mt=1+3*ft,Gt=1-ft,er=F(1/G(ot)),sr=Gt+Ge*ot*er,wr=(1-qe)/sr,Ir=G(wr),ri=wr*ot,si=G(ri),Mi=Ir*Gt,cn,Zn;if(he===0)return[0,-(Mi+Ge*si)];var Yn=o(Ae),Ua=1/Yn,Fo=2*qe*Yn,vl=(-3*Ge+er*mt)*Fo,Us=(-sr*Yn-(1-qe)*vl)/(sr*sr),ml=.5*Us/Ir,au=Gt*ml-2*Ge*Ir*Fo,Sl=Ge*ot*Us+wr*mt*Fo,Yl=-Ua*Fo,ql=-Ua*Sl,ou=-2*Ua*au,Pu=4*he/E,nu;if(he>.222*E||Ae.175*E){if(cn=(Mi+Ge*G(ri*(1+ft)-Mi*Mi))/(1+ft),he>E/4)return[cn,cn];var ru=cn,Hu=.5*cn;cn=.5*(Hu+ru),Zn=50;do{var $u=G(ri-cn*cn),Ku=cn*(ou+Yl*$u)+ql*F(cn/si)-Pu;if(!Ku)break;Ku<0?Hu=cn:ru=cn,cn=.5*(Hu+ru)}while(n(ru-Hu)>v&&--Zn>0)}else{cn=v,Zn=25;do{var Wu=cn*cn,ju=G(ri-Wu),sf=ou+Yl*ju,_f=cn*sf+ql*F(cn/si)-Pu,Qu=sf+(ql-Yl*Wu)/ju;cn-=nu=ju?_f/Qu:0}while(n(nu)>v&&--Zn>0)}return[cn,-Mi-Ge*G(ri-cn*cn)]}function aa(he,Ae){for(var qe=0,Ge=1,ft=.5,ot=50;;){var mt=ft*ft,Gt=G(ft),er=F(1/G(1+mt)),sr=1-mt+ft*(1+mt)*er,wr=(1-Gt)/sr,Ir=G(wr),ri=wr*(1+mt),si=Ir*(1-mt),Mi=ri-he*he,cn=G(Mi),Zn=Ae+si+ft*cn;if(n(Ge-qe)0?qe=ft:Ge=ft,ft=.5*(qe+Ge)}if(!ot)return null;var Yn=F(Gt),Ua=o(Yn),Fo=1/Ua,vl=2*Gt*Ua,Us=(-3*ft+er*(1+3*mt))*vl,ml=(-sr*Ua-(1-Gt)*Us)/(sr*sr),au=.5*ml/Ir,Sl=(1-mt)*au-2*ft*Ir*vl,Yl=-2*Fo*Sl,ql=-Fo*vl,ou=-Fo*(ft*(1+mt)*ml+wr*(1+3*mt)*vl);return[E/4*(he*(Yl+ql*cn)+ou*F(he/G(ri))),Yn]}function Mn(){return t.geoProjection($i(ni)).scale(239.75)}function Un(he,Ae,qe){var Ge,ft,ot;return he?(Ge=Ga(he,qe),Ae?(ft=Ga(Ae,1-qe),ot=ft[1]*ft[1]+qe*Ge[0]*Ge[0]*ft[0]*ft[0],[[Ge[0]*ft[2]/ot,Ge[1]*Ge[2]*ft[0]*ft[1]/ot],[Ge[1]*ft[1]/ot,-Ge[0]*Ge[2]*ft[0]*ft[2]/ot],[Ge[2]*ft[1]*ft[2]/ot,-qe*Ge[0]*Ge[1]*ft[0]/ot]]):[[Ge[0],0],[Ge[1],0],[Ge[2],0]]):(ft=Ga(Ae,1-qe),[[0,ft[0]/ft[1]],[1/ft[1],0],[ft[2]/ft[1],0]])}function Ga(he,Ae){var qe,Ge,ft,ot,mt;if(Ae=1-v)return qe=(1-Ae)/4,Ge=N(he),ot=j(he),ft=1/Ge,mt=Ge*W(he),[ot+qe*(mt-he)/(Ge*Ge),ft-qe*ot*ft*(mt-he),ft+qe*ot*ft*(mt+he),2*i(s(he))-A+qe*(mt-he)/Ge];var Gt=[1,0,0,0,0,0,0,0,0],er=[G(Ae),0,0,0,0,0,0,0,0],sr=0;for(Ge=G(1-Ae),mt=1;n(er[sr]/Gt[sr])>v&&sr<8;)qe=Gt[sr++],er[sr]=(qe-Ge)/2,Gt[sr]=(qe+Ge)/2,Ge=G(qe*Ge),mt*=2;ft=mt*Gt[sr]*he;do ot=er[sr]*y(Ge=ft)/Gt[sr],ft=(F(ot)+ft)/2;while(--sr);return[y(ft),ot=o(ft),ot/o(ft-Ge),ft]}function ma(he,Ae,qe){var Ge=n(he),ft=n(Ae),ot=W(ft);if(Ge){var mt=1/y(Ge),Gt=1/(b(Ge)*b(Ge)),er=-(Gt+qe*(ot*ot*mt*mt)-1+qe),sr=(qe-1)*Gt,wr=(-er+G(er*er-4*sr))/2;return[oa(i(1/G(wr)),qe)*p(he),oa(i(G((wr/Gt-1)/qe)),1-qe)*p(Ae)]}return[0,oa(i(ot),1-qe)*p(Ae)]}function oa(he,Ae){if(!Ae)return he;if(Ae===1)return l(b(he/2+L));for(var qe=1,Ge=G(1-Ae),ft=G(Ae),ot=0;n(ft)>v;ot++){if(he%E){var mt=i(Ge*b(he)/qe);mt<0&&(mt+=E),he+=mt+~~(he/E)*E}else he+=he;ft=(qe+Ge)/2,Ge=G(qe*Ge),ft=((qe=ft)-Ge)/2}return he/(h(2,ot)*qe)}function ka(he,Ae){var qe=(k-1)/(k+1),Ge=G(1-qe*qe),ft=oa(A,Ge*Ge),ot=-1,mt=l(b(E/4+n(Ae)/2)),Gt=s(ot*mt)/G(qe),er=so(Gt*o(ot*he),Gt*y(ot*he)),sr=ma(er[0],er[1],Ge*Ge);return[-sr[1],(Ae>=0?1:-1)*(.5*ft-sr[0])]}function so(he,Ae){var qe=he*he,Ge=Ae+1,ft=1-qe-Ae*Ae;return[.5*((he>=0?A:-A)-a(ft,2*he)),-.25*l(ft*ft+4*qe)+.5*l(Ge*Ge+qe)]}function Kr(he,Ae){var qe=Ae[0]*Ae[0]+Ae[1]*Ae[1];return[(he[0]*Ae[0]+he[1]*Ae[1])/qe,(he[1]*Ae[0]-he[0]*Ae[1])/qe]}ka.invert=function(he,Ae){var qe=(k-1)/(k+1),Ge=G(1-qe*qe),ft=oa(A,Ge*Ge),ot=-1,mt=Un(.5*ft-Ae,-he,Ge*Ge),Gt=Kr(mt[0],mt[1]),er=a(Gt[1],Gt[0])/ot;return[er,2*i(s(.5/ot*l(qe*Gt[0]*Gt[0]+qe*Gt[1]*Gt[1])))-A]};function Ia(){return t.geoProjection($i(ka)).scale(151.496)}function Yo(he){var Ae=y(he),qe=o(he),Ge=fa(he);Ge.invert=fa(-he);function ft(ot,mt){var Gt=Ge(ot,mt);ot=Gt[0],mt=Gt[1];var er=y(mt),sr=o(mt),wr=o(ot),Ir=U(Ae*er+qe*sr*wr),ri=y(Ir),si=n(ri)>v?Ir/ri:1;return[si*qe*y(ot),(n(ot)>A?si:-si)*(Ae*sr-qe*er*wr)]}return ft.invert=function(ot,mt){var Gt=G(ot*ot+mt*mt),er=-y(Gt),sr=o(Gt),wr=Gt*sr,Ir=-mt*er,ri=Gt*Ae,si=G(wr*wr+Ir*Ir-ri*ri),Mi=a(wr*ri+Ir*si,Ir*ri-wr*si),cn=(Gt>A?-1:1)*a(ot*er,Gt*o(Mi)*sr+mt*y(Mi)*er);return Ge.invert(cn,Mi)},ft}function fa(he){var Ae=y(he),qe=o(he);return function(Ge,ft){var ot=o(ft),mt=o(Ge)*ot,Gt=y(Ge)*ot,er=y(ft);return[a(Gt,mt*qe-er*Ae),F(er*qe+mt*Ae)]}}function kn(){var he=0,Ae=t.geoProjectionMutator(Yo),qe=Ae(he),Ge=qe.rotate,ft=qe.stream,ot=t.geoCircle();return qe.parallel=function(mt){if(!arguments.length)return he*P;var Gt=qe.rotate();return Ae(he=mt*M).rotate(Gt)},qe.rotate=function(mt){return arguments.length?(Ge.call(qe,[mt[0],mt[1]-he*P]),ot.center([-mt[0],-mt[1]]),qe):(mt=Ge.call(qe),mt[1]+=he*P,mt)},qe.stream=function(mt){return mt=ft(mt),mt.sphere=function(){mt.polygonStart();var Gt=.01,er=ot.radius(90-Gt)().coordinates[0],sr=er.length-1,wr=-1,Ir;for(mt.lineStart();++wr=0;)mt.point((Ir=er[wr])[0],Ir[1]);mt.lineEnd(),mt.polygonEnd()},mt},qe.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ta=3,ys=F(1-1/Ta)*P,uo=Er(0);function ls(he){var Ae=ys*M,qe=ht(E,Ae)[0]-ht(-E,Ae)[0],Ge=uo(0,Ae)[1],ft=ht(0,Ae)[1],ot=S-ft,mt=m/he,Gt=4/m,er=Ge+ot*ot*4/m;function sr(wr,Ir){var ri,si=n(Ir);if(si>Ae){var Mi=c(he-1,f(0,u((wr+E)/mt)));wr+=E*(he-1)/he-Mi*mt,ri=ht(wr,si),ri[0]=ri[0]*m/qe-m*(he-1)/(2*he)+Mi*m/he,ri[1]=Ge+(ri[1]-ft)*4*ot/m,Ir<0&&(ri[1]=-ri[1])}else ri=uo(wr,Ir);return ri[0]*=Gt,ri[1]/=er,ri}return sr.invert=function(wr,Ir){wr/=Gt,Ir*=er;var ri=n(Ir);if(ri>Ge){var si=c(he-1,f(0,u((wr+E)/mt)));wr=(wr+E*(he-1)/he-si*mt)*qe/m;var Mi=ht.invert(wr,.25*(ri-Ge)*m/ot+ft);return Mi[0]-=E*(he-1)/he-si*mt,Ir<0&&(Mi[1]=-Mi[1]),Mi}return uo.invert(wr,Ir)},sr}function $a(he,Ae){return[he,Ae&1?90-v:ys]}function fo(he,Ae){return[he,Ae&1?-90+v:-ys]}function mn(he){return[he[0]*(1-v),he[1]]}function ra(he){var Ae=[].concat(r.range(-180,180+he/2,he).map($a),r.range(180,-180-he/2,-he).map(fo));return{type:"Polygon",coordinates:[he===180?Ae.map(mn):Ae]}}function wa(){var he=4,Ae=t.geoProjectionMutator(ls),qe=Ae(he),Ge=qe.stream;return qe.lobes=function(ft){return arguments.length?Ae(he=+ft):he},qe.stream=function(ft){var ot=qe.rotate(),mt=Ge(ft),Gt=(qe.rotate([0,0]),Ge(ft));return qe.rotate(ot),mt.sphere=function(){t.geoStream(ra(180/he),Gt)},mt},qe.scale(239.75)}function ws(he){var Ae=1+he,qe=y(1/Ae),Ge=F(qe),ft=2*G(E/(ot=E+4*Ge*Ae)),ot,mt=.5*ft*(Ae+G(he*(2+he))),Gt=he*he,er=Ae*Ae;function sr(wr,Ir){var ri=1-y(Ir),si,Mi;if(ri&&ri<2){var cn=A-Ir,Zn=25,Yn;do{var Ua=y(cn),Fo=o(cn),vl=Ge+a(Ua,Ae-Fo),Us=1+er-2*Ae*Fo;cn-=Yn=(cn-Gt*Ge-Ae*Ua+Us*vl-.5*ri*ot)/(2*Ae*Ua*vl)}while(n(Yn)>C&&--Zn>0);si=ft*G(Us),Mi=wr*vl/E}else si=ft*(he+ri),Mi=wr*Ge/E;return[si*y(Mi),mt-si*o(Mi)]}return sr.invert=function(wr,Ir){var ri=wr*wr+(Ir-=mt)*Ir,si=(1+er-ri/(ft*ft))/(2*Ae),Mi=U(si),cn=y(Mi),Zn=Ge+a(cn,Ae-si);return[F(wr/G(ri))*E/Zn,F(1-2*(Mi-Gt*Ge-Ae*cn+(1+er-2*Ae*si)*Zn)/ot)]},sr}function Co(){var he=1,Ae=t.geoProjectionMutator(ws),qe=Ae(he);return qe.ratio=function(Ge){return arguments.length?Ae(he=+Ge):he},qe.scale(167.774).center([0,18.67])}var Po=.7109889596207567,Wi=.0528035274542;function gn(he,Ae){return Ae>-Po?(he=$e(he,Ae),he[1]+=Wi,he):We(he,Ae)}gn.invert=function(he,Ae){return Ae>-Po?$e.invert(he,Ae-Wi):We.invert(he,Ae)};function Ps(){return t.geoProjection(gn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ha(he,Ae){return n(Ae)>Po?(he=$e(he,Ae),he[1]-=Ae>0?Wi:-Wi,he):We(he,Ae)}Ha.invert=function(he,Ae){return n(Ae)>Po?$e.invert(he,Ae+(Ae>0?Wi:-Wi)):We.invert(he,Ae)};function Sn(){return t.geoProjection(Ha).scale(152.63)}function ao(he,Ae,qe,Ge){var ft=G(4*E/(2*qe+(1+he-Ae/2)*y(2*qe)+(he+Ae)/2*y(4*qe)+Ae/2*y(6*qe))),ot=G(Ge*y(qe)*G((1+he*o(2*qe)+Ae*o(4*qe))/(1+he+Ae))),mt=qe*er(1);function Gt(Ir){return G(1+he*o(2*Ir)+Ae*o(4*Ir))}function er(Ir){var ri=Ir*qe;return(2*ri+(1+he-Ae/2)*y(2*ri)+(he+Ae)/2*y(4*ri)+Ae/2*y(6*ri))/qe}function sr(Ir){return Gt(Ir)*y(Ir)}var wr=function(Ir,ri){var si=qe*Ot(er,mt*y(ri)/qe,ri/E);isNaN(si)&&(si=qe*p(ri));var Mi=ft*Gt(si);return[Mi*ot*Ir/E*o(si),Mi/ot*y(si)]};return wr.invert=function(Ir,ri){var si=Ot(sr,ri*ot/ft);return[Ir*E/(o(si)*ft*ot*Gt(si)),F(qe*er(si/qe)/mt)]},qe===0&&(ft=G(Ge/E),wr=function(Ir,ri){return[Ir*ft,y(ri)/ft]},wr.invert=function(Ir,ri){return[Ir/ft,F(ri*ft)]}),wr}function Oa(){var he=1,Ae=0,qe=45*M,Ge=2,ft=t.geoProjectionMutator(ao),ot=ft(he,Ae,qe,Ge);return ot.a=function(mt){return arguments.length?ft(he=+mt,Ae,qe,Ge):he},ot.b=function(mt){return arguments.length?ft(he,Ae=+mt,qe,Ge):Ae},ot.psiMax=function(mt){return arguments.length?ft(he,Ae,qe=+mt*M,Ge):qe*P},ot.ratio=function(mt){return arguments.length?ft(he,Ae,qe,Ge=+mt):Ge},ot.scale(180.739)}function Ko(he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr){if(wr.nanEncountered)return NaN;var Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl;if(Ir=qe-Ae,ri=he(Ae+Ir*.25),si=he(qe-Ir*.25),isNaN(ri)){wr.nanEncountered=!0;return}if(isNaN(si)){wr.nanEncountered=!0;return}return Mi=Ir*(Ge+4*ri+ft)/12,cn=Ir*(ft+4*si+ot)/12,Zn=Mi+cn,vl=(Zn-mt)/15,sr>er?(wr.maxDepthCount++,Zn+vl):Math.abs(vl)>1;do er[Zn]>si?cn=Zn:Mi=Zn,Zn=Mi+cn>>1;while(Zn>Mi);var Yn=er[Zn+1]-er[Zn];return Yn&&(Yn=(si-er[Zn+1])/Yn),(Zn+1+Yn)/mt}var Ir=2*wr(1)/E*ot/qe,ri=function(si,Mi){var cn=wr(n(y(Mi))),Zn=Ge(cn)*si;return cn/=Ir,[Zn,Mi>=0?cn:-cn]};return ri.invert=function(si,Mi){var cn;return Mi*=Ir,n(Mi)<1&&(cn=p(Mi)*F(ft(n(Mi))*ot)),[si/Ge(n(Mi)),cn]},ri}function Sa(){var he=0,Ae=2.5,qe=1.183136,Ge=t.geoProjectionMutator(Hi),ft=Ge(he,Ae,qe);return ft.alpha=function(ot){return arguments.length?Ge(he=+ot,Ae,qe):he},ft.k=function(ot){return arguments.length?Ge(he,Ae=+ot,qe):Ae},ft.gamma=function(ot){return arguments.length?Ge(he,Ae,qe=+ot):qe},ft.scale(152.63)}function Qa(he,Ae){return n(he[0]-Ae[0])=0;--er)qe=he[1][er],Ge=qe[0][0],ft=qe[0][1],ot=qe[1][1],mt=qe[2][0],Gt=qe[2][1],Ae.push(vn([[mt-v,Gt-v],[mt-v,ot+v],[Ge+v,ot+v],[Ge+v,ft-v]],30));return{type:"Polygon",coordinates:[r.merge(Ae)]}}function la(he,Ae,qe){var Ge,ft;function ot(er,sr){for(var wr=sr<0?-1:1,Ir=Ae[+(sr<0)],ri=0,si=Ir.length-1;riIr[ri][2][0];++ri);var Mi=he(er-Ir[ri][1][0],sr);return Mi[0]+=he(Ir[ri][1][0],wr*sr>wr*Ir[ri][0][1]?Ir[ri][0][1]:sr)[0],Mi}qe?ot.invert=qe(ot):he.invert&&(ot.invert=function(er,sr){for(var wr=ft[+(sr<0)],Ir=Ae[+(sr<0)],ri=0,si=wr.length;riMi&&(cn=si,si=Mi,Mi=cn),[[Ir,si],[ri,Mi]]})}),mt):Ae.map(function(sr){return sr.map(function(wr){return[[wr[0][0]*P,wr[0][1]*P],[wr[1][0]*P,wr[1][1]*P],[wr[2][0]*P,wr[2][1]*P]]})})},Ae!=null&&mt.lobes(Ae),mt}var vo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function As(){return la(Ne,vo).scale(160.857)}var ps=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function co(){return la(Ha,ps).scale(152.63)}var mo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function No(){return la($e,mo).scale(169.529)}var jn=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Go(){return la($e,jn).scale(169.529).rotate([20,0])}var Ys=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function qs(){return la(gn,Ys,it).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ns=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Ba(){return la(We,Ns).scale(152.63).rotate([-20,0])}function ha(he,Ae){return[3/m*he*G(E*E/3-Ae*Ae),Ae]}ha.invert=function(he,Ae){return[m/3*he/G(E*E/3-Ae*Ae),Ae]};function Vs(){return t.geoProjection(ha).scale(158.837)}function Ya(he){function Ae(qe,Ge){if(n(n(Ge)-A)2)return null;qe/=2,Ge/=2;var ot=qe*qe,mt=Ge*Ge,Gt=2*Ge/(1+ot+mt);return Gt=h((1+Gt)/(1-Gt),1/he),[a(2*qe,1-ot-mt)/he,F((Gt-1)/(Gt+1))]},Ae}function _n(){var he=.5,Ae=t.geoProjectionMutator(Ya),qe=Ae(he);return qe.spacing=function(Ge){return arguments.length?Ae(he=+Ge):he},qe.scale(124.75)}var Vn=E/k;function wo(he,Ae){return[he*(1+G(o(Ae)))/2,Ae/(o(Ae/2)*o(he/6))]}wo.invert=function(he,Ae){var qe=n(he),Ge=n(Ae),ft=v,ot=A;Gev||n(Zn)>v)&&--ft>0);return ft&&[qe,Ge]};function sn(){return t.geoProjection(Xn).scale(139.98)}function $n(he,Ae){return[y(he)/o(Ae),b(Ae)*o(he)]}$n.invert=function(he,Ae){var qe=he*he,Ge=Ae*Ae,ft=Ge+1,ot=qe+ft,mt=he?x*G((ot-G(ot*ot-4*qe))/qe):1/G(ft);return[F(he*mt),p(Ae)*U(mt)]};function Ka(){return t.geoProjection($n).scale(144.049).clipAngle(90-.001)}function qn(he){var Ae=o(he),qe=b(L+he/2);function Ge(ft,ot){var mt=ot-he,Gt=n(mt)=0;)wr=he[sr],Ir=wr[0]+Gt*(si=Ir)-er*ri,ri=wr[1]+Gt*ri+er*si;return Ir=Gt*(si=Ir)-er*ri,ri=Gt*ri+er*si,[Ir,ri]}return qe.invert=function(Ge,ft){var ot=20,mt=Ge,Gt=ft;do{for(var er=Ae,sr=he[er],wr=sr[0],Ir=sr[1],ri=0,si=0,Mi;--er>=0;)sr=he[er],ri=wr+mt*(Mi=ri)-Gt*si,si=Ir+mt*si+Gt*Mi,wr=sr[0]+mt*(Mi=wr)-Gt*Ir,Ir=sr[1]+mt*Ir+Gt*Mi;ri=wr+mt*(Mi=ri)-Gt*si,si=Ir+mt*si+Gt*Mi,wr=mt*(Mi=wr)-Gt*Ir-Ge,Ir=mt*Ir+Gt*Mi-ft;var cn=ri*ri+si*si,Zn,Yn;mt-=Zn=(wr*ri+Ir*si)/cn,Gt-=Yn=(Ir*ri-wr*si)/cn}while(n(Zn)+n(Yn)>v*v&&--ot>0);if(ot){var Ua=G(mt*mt+Gt*Gt),Fo=2*i(Ua*.5),vl=y(Fo);return[a(mt*vl,Ua*o(Fo)),Ua?F(Gt*vl/Ua):0]}},qe}var sa=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],es=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Na=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],en=[[.9245,0],[0,0],[.01943,0]],Pa=[[.721316,0],[0,0],[-.00881625,-.00617325]];function to(){return _a(sa,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function yo(){return _a(es,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Jo(){return _a(Na,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ao(){return _a(en,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Dn(){return _a(Pa,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function _a(he,Ae){var qe=t.geoProjection(eo(he)).rotate(Ae).clipAngle(90),Ge=t.geoRotation(Ae),ft=qe.center;return delete qe.rotate,qe.center=function(ot){return arguments.length?ft(Ge(ot)):Ge.invert(ft())},qe}var Ws=G(6),Ca=G(7);function Es(he,Ae){var qe=F(7*y(Ae)/(3*Ws));return[Ws*he*(2*o(2*qe/3)-1)/Ca,9*y(qe/3)/Ca]}Es.invert=function(he,Ae){var qe=3*F(Ae*Ca/9);return[he*Ca/(Ws*(2*o(2*qe/3)-1)),F(y(qe)*3*Ws/7)]};function Ts(){return t.geoProjection(Es).scale(164.859)}function Ho(he,Ae){for(var qe=(1+x)*y(Ae),Ge=Ae,ft=0,ot;ft<25&&(Ge-=ot=(y(Ge/2)+y(Ge)-qe)/(.5*o(Ge/2)+o(Ge)),!(n(ot)C&&--Ge>0);return ot=qe*qe,mt=ot*ot,Gt=ot*mt,[he/(.84719-.13063*ot+Gt*Gt*(-.04515+.05494*ot-.02326*mt+.00331*Gt)),qe]};function qa(){return t.geoProjection(Wo).scale(175.295)}function on(he,Ae){return[he*(1+o(Ae))/2,2*(Ae-b(Ae/2))]}on.invert=function(he,Ae){for(var qe=Ae/2,Ge=0,ft=1/0;Ge<10&&n(ft)>v;++Ge){var ot=o(Ae/2);Ae-=ft=(Ae-b(Ae/2)-qe)/(1-.5/(ot*ot))}return[2*he/(1+o(Ae)),Ae]};function Oo(){return t.geoProjection(on).scale(152.63)}var ko=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oo(){return la(je(1/0),ko).rotate([20,0]).scale(152.63)}function za(he,Ae){var qe=y(Ae),Ge=o(Ae),ft=p(he);if(he===0||n(Ae)===A)return[0,Ae];if(Ae===0)return[he,0];if(n(he)===A)return[he*Ge,A*qe];var ot=E/(2*he)-2*he/E,mt=2*Ae/E,Gt=(1-mt*mt)/(qe-mt),er=ot*ot,sr=Gt*Gt,wr=1+er/sr,Ir=1+sr/er,ri=(ot*qe/Gt-ot/2)/wr,si=(sr*qe/er+Gt/2)/Ir,Mi=ri*ri+Ge*Ge/wr,cn=si*si-(sr*qe*qe/er+Gt*qe-1)/Ir;return[A*(ri+G(Mi)*ft),A*(si+G(cn<0?0:cn)*p(-Ae*ot)*ft)]}za.invert=function(he,Ae){he/=A,Ae/=A;var qe=he*he,Ge=Ae*Ae,ft=qe+Ge,ot=E*E;return[he?(ft-1+G((1-ft)*(1-ft)+4*qe))/(2*he)*A:0,Ot(function(mt){return ft*(E*y(mt)-2*mt)*E+4*mt*mt*(Ae-y(mt))+2*E*mt-ot*Ae},0)]};function ea(){return t.geoProjection(za).scale(127.267)}var rs=1.0148,$s=.23185,us=-.14499,Ds=.02406,fl=rs,as=5*$s,Ma=7*us,Qs=9*Ds,ho=1.790857183;function gs(he,Ae){var qe=Ae*Ae;return[he,Ae*(rs+qe*qe*($s+qe*(us+Ds*qe)))]}gs.invert=function(he,Ae){Ae>ho?Ae=ho:Ae<-ho&&(Ae=-ho);var qe=Ae,Ge;do{var ft=qe*qe;qe-=Ge=(qe*(rs+ft*ft*($s+ft*(us+Ds*ft)))-Ae)/(fl+ft*ft*(as+ft*(Ma+Qs*ft)))}while(n(Ge)>v);return[he,qe]};function Vo(){return t.geoProjection(gs).scale(139.319)}function Do(he,Ae){if(n(Ae)v&&--ft>0);return mt=b(Ge),[(n(Ae)=0;)if(Ge=Ae[Gt],qe[0]===Ge[0]&&qe[1]===Ge[1]){if(ot)return[ot,qe];ot=qe}}}function Aa(he){for(var Ae=he.length,qe=[],Ge=he[Ae-1],ft=0;ft0?[-Ge[0],0]:[180-Ge[0],180])};var Ae=Ss.map(function(qe){return{face:qe,project:he(qe)}});return[-1,0,0,1,0,1,4,5].forEach(function(qe,Ge){var ft=Ae[qe];ft&&(ft.children||(ft.children=[])).push(Ae[Ge])}),Gs(Ae[0],function(qe,Ge){return Ae[qe<-E/2?Ge<0?6:4:qe<0?Ge<0?2:0:qeGe^si>Ge&&qe<(ri-sr)*(Ge-wr)/(si-wr)+sr&&(ft=!ft)}return ft}function Hs(he,Ae){var qe=Ae.stream,Ge;if(!qe)throw new Error("invalid projection");switch(he&&he.type){case"Feature":Ge=tl;break;case"FeatureCollection":Ge=Ro;break;default:Ge=hl;break}return Ge(he,qe)}function Ro(he,Ae){return{type:"FeatureCollection",features:he.features.map(function(qe){return tl(qe,Ae)})}}function tl(he,Ae){return{type:"Feature",id:he.id,properties:he.properties,geometry:hl(he.geometry,Ae)}}function Fs(he,Ae){return{type:"GeometryCollection",geometries:he.geometries.map(function(qe){return hl(qe,Ae)})}}function hl(he,Ae){if(!he)return null;if(he.type==="GeometryCollection")return Fs(he,Ae);var qe;switch(he.type){case"Point":qe=jo;break;case"MultiPoint":qe=jo;break;case"LineString":qe=Rs;break;case"MultiLineString":qe=Rs;break;case"Polygon":qe=Is;break;case"MultiPolygon":qe=Is;break;case"Sphere":qe=Is;break;default:return null}return t.geoStream(he,Ae(qe)),qe.result()}var Fa=[],Ms=[],jo={point:function(he,Ae){Fa.push([he,Ae])},result:function(){var he=Fa.length?Fa.length<2?{type:"Point",coordinates:Fa[0]}:{type:"MultiPoint",coordinates:Fa}:null;return Fa=[],he}},Rs={lineStart:fs,point:function(he,Ae){Fa.push([he,Ae])},lineEnd:function(){Fa.length&&(Ms.push(Fa),Fa=[])},result:function(){var he=Ms.length?Ms.length<2?{type:"LineString",coordinates:Ms[0]}:{type:"MultiLineString",coordinates:Ms}:null;return Ms=[],he}},Is={polygonStart:fs,lineStart:fs,point:function(he,Ae){Fa.push([he,Ae])},lineEnd:function(){var he=Fa.length;if(he){do Fa.push(Fa[0].slice());while(++he<4);Ms.push(Fa),Fa=[]}},polygonEnd:fs,result:function(){if(!Ms.length)return null;var he=[],Ae=[];return Ms.forEach(function(qe){cl(qe)?he.push([qe]):Ae.push(qe)}),Ae.forEach(function(qe){var Ge=qe[0];he.some(function(ft){if(el(ft[0],Ge))return ft.push(qe),!0})||he.push([qe])}),Ms=[],he.length?he.length>1?{type:"MultiPolygon",coordinates:he}:{type:"Polygon",coordinates:he[0]}:null}};function Os(he){var Ae=he(A,0)[0]-he(-A,0)[0];function qe(Ge,ft){var ot=n(Ge)0?Ge-E:Ge+E,ft),Gt=(mt[0]-mt[1])*x,er=(mt[0]+mt[1])*x;if(ot)return[Gt,er];var sr=Ae*x,wr=Gt>0^er>0?-1:1;return[wr*Gt-p(er)*sr,wr*er-p(Gt)*sr]}return he.invert&&(qe.invert=function(Ge,ft){var ot=(Ge+ft)*x,mt=(ft-Ge)*x,Gt=n(ot)<.5*Ae&&n(mt)<.5*Ae;if(!Gt){var er=Ae*x,sr=ot>0^mt>0?-1:1,wr=-sr*Ge+(mt>0?1:-1)*er,Ir=-sr*ft+(ot>0?1:-1)*er;ot=(-wr-Ir)*x,mt=(wr-Ir)*x}var ri=he.invert(ot,mt);return Gt||(ri[0]+=ot>0?E:-E),ri}),t.geoProjection(qe).rotate([-90,-90,45]).clipAngle(180-.001)}function St(){return Os(ni).scale(176.423)}function Ut(){return Os(ka).scale(111.48)}function xr(he,Ae){if(!(0<=(Ae=+Ae)&&Ae<=20))throw new Error("invalid digits");function qe(sr){var wr=sr.length,Ir=2,ri=new Array(wr);for(ri[0]=+sr[0].toFixed(Ae),ri[1]=+sr[1].toFixed(Ae);Ir2||si[0]!=wr[0]||si[1]!=wr[1])&&(Ir.push(si),wr=si)}return Ir.length===1&&sr.length>1&&Ir.push(qe(sr[sr.length-1])),Ir}function ot(sr){return sr.map(ft)}function mt(sr){if(sr==null)return sr;var wr;switch(sr.type){case"GeometryCollection":wr={type:"GeometryCollection",geometries:sr.geometries.map(mt)};break;case"Point":wr={type:"Point",coordinates:qe(sr.coordinates)};break;case"MultiPoint":wr={type:sr.type,coordinates:Ge(sr.coordinates)};break;case"LineString":wr={type:sr.type,coordinates:ft(sr.coordinates)};break;case"MultiLineString":case"Polygon":wr={type:sr.type,coordinates:ot(sr.coordinates)};break;case"MultiPolygon":wr={type:"MultiPolygon",coordinates:sr.coordinates.map(ot)};break;default:return sr}return sr.bbox!=null&&(wr.bbox=sr.bbox),wr}function Gt(sr){var wr={type:"Feature",properties:sr.properties,geometry:mt(sr.geometry)};return sr.id!=null&&(wr.id=sr.id),sr.bbox!=null&&(wr.bbox=sr.bbox),wr}if(he!=null)switch(he.type){case"Feature":return Gt(he);case"FeatureCollection":{var er={type:"FeatureCollection",features:he.features.map(Gt)};return he.bbox!=null&&(er.bbox=he.bbox),er}default:return mt(he)}return he}function dr(he){var Ae=y(he);function qe(Ge,ft){var ot=Ae?b(Ge*Ae/2)/Ae:Ge/2;if(!ft)return[2*ot,-he];var mt=2*i(ot*y(ft)),Gt=1/b(ft);return[y(mt)*Gt,ft+(1-o(mt))*Gt-he]}return qe.invert=function(Ge,ft){if(n(ft+=he)v&&--Gt>0);var ri=Ge*(sr=b(mt)),si=b(n(ft)0?A:-A)*(er+ft*(wr-mt)/2+ft*ft*(wr-2*er+mt)/2)]}Ti.invert=function(he,Ae){var qe=Ae/A,Ge=qe*90,ft=c(18,n(Ge/5)),ot=f(0,u(ft));do{var mt=yi[ot][1],Gt=yi[ot+1][1],er=yi[c(19,ot+2)][1],sr=er-mt,wr=er-2*Gt+mt,Ir=2*(n(qe)-Gt)/sr,ri=wr/sr,si=Ir*(1-ri*Ir*(1-2*ri*Ir));if(si>=0||ot===1){Ge=(Ae>=0?5:-5)*(si+ft);var Mi=50,cn;do ft=c(18,n(Ge)/5),ot=u(ft),si=ft-ot,mt=yi[ot][1],Gt=yi[ot+1][1],er=yi[c(19,ot+2)][1],Ge-=(cn=(Ae>=0?A:-A)*(Gt+si*(er-mt)/2+si*si*(er-2*Gt+mt)/2)-Ae)*P;while(n(cn)>C&&--Mi>0);break}}while(--ot>=0);var Zn=yi[ot][0],Yn=yi[ot+1][0],Ua=yi[c(19,ot+2)][0];return[he/(Yn+si*(Ua-Zn)/2+si*si*(Ua-2*Yn+Zn)/2),Ge*M]};function ki(){return t.geoProjection(Ti).scale(152.63)}function Ki(he){function Ae(qe,Ge){var ft=o(Ge),ot=(he-1)/(he-ft*o(qe));return[ot*ft*y(qe),ot*y(Ge)]}return Ae.invert=function(qe,Ge){var ft=qe*qe+Ge*Ge,ot=G(ft),mt=(he-G(1-ft*(he+1)/(he-1)))/((he-1)/ot+ot/(he-1));return[a(qe*mt,ot*G(1-mt*mt)),ot?F(Ge*mt/ot):0]},Ae}function Fn(he,Ae){var qe=Ki(he);if(!Ae)return qe;var Ge=o(Ae),ft=y(Ae);function ot(mt,Gt){var er=qe(mt,Gt),sr=er[1],wr=sr*ft/(he-1)+Ge;return[er[0]*Ge/wr,sr/wr]}return ot.invert=function(mt,Gt){var er=(he-1)/(he-1-Gt*ft);return qe.invert(er*mt,er*Gt*Ge)},ot}function Li(){var he=2,Ae=0,qe=t.geoProjectionMutator(Fn),Ge=qe(he,Ae);return Ge.distance=function(ft){return arguments.length?qe(he=+ft,Ae):he},Ge.tilt=function(ft){return arguments.length?qe(he,Ae=ft*M):Ae*P},Ge.scale(432.147).clipAngle(U(1/he)*P-1e-6)}var hi=1e-4,Ci=1e4,Si=-180,Gn=Si+hi,ta=180,ya=ta-hi,ia=-90,pa=ia+hi,va=90,zn=va-hi;function is(he){return he.length>0}function Cs(he){return Math.floor(he*Ci)/Ci}function Ks(he){return he===ia||he===va?[0,he]:[Si,Cs(he)]}function dl(he){var Ae=he[0],qe=he[1],Ge=!1;return Ae<=Gn?(Ae=Si,Ge=!0):Ae>=ya&&(Ae=ta,Ge=!0),qe<=pa?(qe=ia,Ge=!0):qe>=zn&&(qe=va,Ge=!0),Ge?[Ae,qe]:he}function xl(he){return he.map(dl)}function Bl(he,Ae,qe){for(var Ge=0,ft=he.length;Ge=ya||wr<=pa||wr>=zn){ot[mt]=dl(er);for(var Ir=mt+1;IrGn&&sipa&&Mi=Gt)break;qe.push({index:-1,polygon:Ae,ring:ot=ot.slice(Ir-1)}),ot[0]=Ks(ot[0][1]),mt=-1,Gt=ot.length}}}}function bl(he){var Ae,qe=he.length,Ge={},ft={},ot,mt,Gt,er,sr;for(Ae=0;Ae0?E-Gt:Gt)*P],sr=t.geoProjection(he(mt)).rotate(er),wr=t.geoRotation(er),Ir=sr.center;return delete sr.rotate,sr.center=function(ri){return arguments.length?Ir(wr(ri)):wr.invert(Ir())},sr.clipAngle(90)}function cs(he){var Ae=o(he);function qe(Ge,ft){var ot=t.geoGnomonicRaw(Ge,ft);return ot[0]*=Ae,ot}return qe.invert=function(Ge,ft){return t.geoGnomonicRaw.invert(Ge/Ae,ft)},qe}function sl(){return ll([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ll(he,Ae){return Js(cs,he,Ae)}function nl(he){if(!(he*=2))return t.geoAzimuthalEquidistantRaw;var Ae=-he/2,qe=-Ae,Ge=he*he,ft=b(qe),ot=.5/y(qe);function mt(Gt,er){var sr=U(o(er)*o(Gt-Ae)),wr=U(o(er)*o(Gt-qe)),Ir=er<0?-1:1;return sr*=sr,wr*=wr,[(sr-wr)/(2*he),Ir*G(4*Ge*wr-(Ge-sr+wr)*(Ge-sr+wr))/(2*he)]}return mt.invert=function(Gt,er){var sr=er*er,wr=o(G(sr+(ri=Gt+Ae)*ri)),Ir=o(G(sr+(ri=Gt+qe)*ri)),ri,si;return[a(si=wr-Ir,ri=(wr+Ir)*ft),(er<0?-1:1)*U(G(ri*ri+si*si)*ot)]},mt}function zl(){return Ml([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ml(he,Ae){return Js(nl,he,Ae)}function Rl(he,Ae){if(n(Ae)v&&--Gt>0);return[p(he)*(G(ft*ft+4)+ft)*E/4,A*mt]};function Nl(){return t.geoProjection(Gl).scale(127.16)}function ue(he,Ae,qe,Ge,ft){function ot(mt,Gt){var er=qe*y(Ge*Gt),sr=G(1-er*er),wr=G(2/(1+sr*o(mt*=ft)));return[he*sr*wr*y(mt),Ae*er*wr]}return ot.invert=function(mt,Gt){var er=mt/he,sr=Gt/Ae,wr=G(er*er+sr*sr),Ir=2*F(wr/2);return[a(mt*b(Ir),he*wr)/ft,wr&&F(Gt*y(Ir)/(Ae*qe*wr))/Ge]},ot}function w(he,Ae,qe,Ge){var ft=E/3;he=f(he,v),Ae=f(Ae,v),he=c(he,A),Ae=c(Ae,E-v),qe=f(qe,0),qe=c(qe,100-v),Ge=f(Ge,v);var ot=qe/100+1,mt=Ge/100,Gt=U(ot*o(ft))/ft,er=y(he)/y(Gt*A),sr=Ae/E,wr=G(mt*y(he/2)/y(Ae/2)),Ir=wr/G(sr*er*Gt),ri=1/(wr*G(sr*er*Gt));return ue(Ir,ri,er,Gt,sr)}function q(){var he=65*M,Ae=60*M,qe=20,Ge=200,ft=t.geoProjectionMutator(w),ot=ft(he,Ae,qe,Ge);return ot.poleline=function(mt){return arguments.length?ft(he=+mt*M,Ae,qe,Ge):he*P},ot.parallels=function(mt){return arguments.length?ft(he,Ae=+mt*M,qe,Ge):Ae*P},ot.inflation=function(mt){return arguments.length?ft(he,Ae,qe=+mt,Ge):qe},ot.ratio=function(mt){return arguments.length?ft(he,Ae,qe,Ge=+mt):Ge},ot.scale(163.775)}function Q(){return q().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),fe=2*G(2*E*G(3)/ee),Ue=kt(fe*G(3)/E,fe,ee/6);function at(){return t.geoProjection(Ue).scale(176.84)}function yt(he,Ae){return[he*G(1-3*Ae*Ae/(E*E)),Ae]}yt.invert=function(he,Ae){return[he/G(1-3*Ae*Ae/(E*E)),Ae]};function Rt(){return t.geoProjection(yt).scale(152.63)}function Qt(he,Ae){var qe=o(Ae),Ge=o(he)*qe,ft=1-Ge,ot=o(he=a(y(he)*qe,-y(Ae))),mt=y(he);return qe=G(1-Ge*Ge),[mt*qe-ot*ft,-ot*qe-mt*ft]}Qt.invert=function(he,Ae){var qe=(he*he+Ae*Ae)/-2,Ge=G(-qe*(2+qe)),ft=Ae*qe+he*Ge,ot=he*qe-Ae*Ge,mt=G(ot*ot+ft*ft);return[a(Ge*ft,mt*(1+qe)),mt?-F(Ge*ot/mt):0]};function rr(){return t.geoProjection(Qt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Mr(he,Ae){var qe=Ce(he,Ae);return[(qe[0]+he/A)/2,(qe[1]+Ae)/2]}Mr.invert=function(he,Ae){var qe=he,Ge=Ae,ft=25;do{var ot=o(Ge),mt=y(Ge),Gt=y(2*Ge),er=mt*mt,sr=ot*ot,wr=y(qe),Ir=o(qe/2),ri=y(qe/2),si=ri*ri,Mi=1-sr*Ir*Ir,cn=Mi?U(ot*Ir)*G(Zn=1/Mi):Zn=0,Zn,Yn=.5*(2*cn*ot*ri+qe/A)-he,Ua=.5*(cn*mt+Ge)-Ae,Fo=.5*Zn*(sr*si+cn*ot*Ir*er)+.5/A,vl=Zn*(wr*Gt/4-cn*mt*ri),Us=.125*Zn*(Gt*ri-cn*mt*sr*wr),ml=.5*Zn*(er*Ir+cn*si*ot)+.5,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ge-=Yl}while((n(Sl)>v||n(Yl)>v)&&--ft>0);return[qe,Ge]};function Ur(){return t.geoProjection(Mr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=me,e.geoAiryRaw=ae,e.geoAitoff=Ee,e.geoAitoffRaw=Ce,e.geoArmadillo=te,e.geoArmadilloRaw=de,e.geoAugust=Te,e.geoAugustRaw=Se,e.geoBaker=ge,e.geoBakerRaw=Ie,e.geoBerghaus=ce,e.geoBerghausRaw=Be,e.geoBertin1953=zt,e.geoBertin1953Raw=Ke,e.geoBoggs=vt,e.geoBoggsRaw=Ne,e.geoBonne=tt,e.geoBonneRaw=et,e.geoBottomley=jt,e.geoBottomleyRaw=Lt,e.geoBromley=yr,e.geoBromleyRaw=or,e.geoChamberlin=De,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=ze,e.geoCollignon=st,e.geoCollignonRaw=ht,e.geoCraig=xt,e.geoCraigRaw=gt,e.geoCraster=cr,e.geoCrasterRaw=br,e.geoCylindricalEqualArea=ii,e.geoCylindricalEqualAreaRaw=Er,e.geoCylindricalStereographic=kr,e.geoCylindricalStereographicRaw=jr,e.geoEckert1=Ai,e.geoEckert1Raw=Vr,e.geoEckert2=Ri,e.geoEckert2Raw=Bi,e.geoEckert3=hn,e.geoEckert3Raw=ln,e.geoEckert4=_i,e.geoEckert4Raw=qr,e.geoEckert5=Dt,e.geoEckert5Raw=zi,e.geoEckert6=qt,e.geoEckert6Raw=_t,e.geoEisenlohr=Lr,e.geoEisenlohrRaw=mr,e.geoFahey=Hr,e.geoFaheyRaw=Fr,e.geoFoucaut=mi,e.geoFoucautRaw=Gr,e.geoFoucautSinusoidal=Vi,e.geoFoucautSinusoidalRaw=Ei,e.geoGilbert=Yr,e.geoGingery=tn,e.geoGingeryRaw=oi,e.geoGinzburg4=xn,e.geoGinzburg4Raw=Ii,e.geoGinzburg5=Xr,e.geoGinzburg5Raw=xi,e.geoGinzburg6=$t,e.geoGinzburg6Raw=dt,e.geoGinzburg8=gr,e.geoGinzburg8Raw=fr,e.geoGinzburg9=wi,e.geoGinzburg9Raw=Zr,e.geoGringorten=Mn,e.geoGringortenRaw=ni,e.geoGuyou=Ia,e.geoGuyouRaw=ka,e.geoHammer=bt,e.geoHammerRaw=je,e.geoHammerRetroazimuthal=kn,e.geoHammerRetroazimuthalRaw=Yo,e.geoHealpix=wa,e.geoHealpixRaw=ls,e.geoHill=Co,e.geoHillRaw=ws,e.geoHomolosine=Sn,e.geoHomolosineRaw=Ha,e.geoHufnagel=Oa,e.geoHufnagelRaw=ao,e.geoHyperelliptical=Sa,e.geoHyperellipticalRaw=Hi,e.geoInterrupt=la,e.geoInterruptedBoggs=As,e.geoInterruptedHomolosine=co,e.geoInterruptedMollweide=No,e.geoInterruptedMollweideHemispheres=Go,e.geoInterruptedSinuMollweide=qs,e.geoInterruptedSinusoidal=Ba,e.geoKavrayskiy7=Vs,e.geoKavrayskiy7Raw=ha,e.geoLagrange=_n,e.geoLagrangeRaw=Ya,e.geoLarrivee=Ra,e.geoLarriveeRaw=wo,e.geoLaskowski=sn,e.geoLaskowskiRaw=Xn,e.geoLittrow=Ka,e.geoLittrowRaw=$n,e.geoLoximuthal=Eo,e.geoLoximuthalRaw=qn,e.geoMiller=lo,e.geoMillerRaw=Ja,e.geoModifiedStereographic=_a,e.geoModifiedStereographicRaw=eo,e.geoModifiedStereographicAlaska=to,e.geoModifiedStereographicGs48=yo,e.geoModifiedStereographicGs50=Jo,e.geoModifiedStereographicMiller=Ao,e.geoModifiedStereographicLee=Dn,e.geoMollweide=Re,e.geoMollweideRaw=$e,e.geoMtFlatPolarParabolic=Ts,e.geoMtFlatPolarParabolicRaw=Es,e.geoMtFlatPolarQuartic=Wa,e.geoMtFlatPolarQuarticRaw=Ho,e.geoMtFlatPolarSinusoidal=ts,e.geoMtFlatPolarSinusoidalRaw=To,e.geoNaturalEarth2=qa,e.geoNaturalEarth2Raw=Wo,e.geoNellHammer=Oo,e.geoNellHammerRaw=on,e.geoInterruptedQuarticAuthalic=oo,e.geoNicolosi=ea,e.geoNicolosiRaw=za,e.geoPatterson=Vo,e.geoPattersonRaw=gs,e.geoPolyconic=Lo,e.geoPolyconicRaw=Do,e.geoPolyhedral=Gs,e.geoPolyhedralButterfly=po,e.geoPolyhedralCollignon=qo,e.geoPolyhedralWaterman=zo,e.geoProject=Hs,e.geoGringortenQuincuncial=St,e.geoPeirceQuincuncial=Ut,e.geoPierceQuincuncial=Ut,e.geoQuantize=xr,e.geoQuincuncial=Os,e.geoRectangularPolyconic=Dr,e.geoRectangularPolyconicRaw=dr,e.geoRobinson=ki,e.geoRobinsonRaw=Ti,e.geoSatellite=Li,e.geoSatelliteRaw=Fn,e.geoSinuMollweide=Ps,e.geoSinuMollweideRaw=gn,e.geoSinusoidal=Ve,e.geoSinusoidalRaw=We,e.geoStitch=Vl,e.geoTimes=ns,e.geoTimesRaw=ja,e.geoTwoPointAzimuthal=ll,e.geoTwoPointAzimuthalRaw=cs,e.geoTwoPointAzimuthalUsa=sl,e.geoTwoPointEquidistant=Ml,e.geoTwoPointEquidistantRaw=nl,e.geoTwoPointEquidistantUsa=zl,e.geoVanDerGrinten=Al,e.geoVanDerGrintenRaw=Rl,e.geoVanDerGrinten2=ms,e.geoVanDerGrinten2Raw=Ll,e.geoVanDerGrinten3=Xl,e.geoVanDerGrinten3Raw=Bs,e.geoVanDerGrinten4=Nl,e.geoVanDerGrinten4Raw=Gl,e.geoWagner=q,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=at,e.geoWagner4Raw=Ue,e.geoWagner6=Rt,e.geoWagner6Raw=yt,e.geoWiechel=rr,e.geoWiechelRaw=Qt,e.geoWinkel3=Ur,e.geoWinkel3Raw=Mr,Object.defineProperty(e,"__esModule",{value:!0})}))});var uFe=we((z1r,lFe)=>{"use strict";var sd=Kl(),tY=ei(),X9t=$l(),aS=Math.PI/180,nw=180/Math.PI,iY={cursor:"pointer"},nY={cursor:"auto"};function Z9t(e,t){var r=e.projection,n;return t._isScoped?n=Y9t:t._isClipped?n=J9t:n=K9t,n(e,r)}lFe.exports=Z9t;function aY(e,t){return sd.behavior.zoom().translate(t.translate()).scale(t.scale())}function oY(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,u=s[n],l={},f={};function c(h,d){l[n+"."+h]=tY.nestedProperty(o,h).get(),X9t.call("_storeDirectGUIEdit",a,s._preGUI,l);var p=tY.nestedProperty(u,h);p.get()!==d&&(p.set(d),tY.nestedProperty(o,h).set(d),f[n+"."+h]=d)}r(c),c("projection.scale",t.scale()/e.fitScale),c("fitbounds",!1),i.emit("plotly_relayout",f)}function Y9t(e,t){var r=aY(e,t);function n(){sd.select(this).style(iY)}function i(){t.scale(sd.event.scale).translate(sd.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var u=t.invert(e.midPt);s("center.lon",u[0]),s("center.lat",u[1])}function o(){sd.select(this).style(nY),oY(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function K9t(e,t){var r=aY(e,t),n=2,i,a,o,s,u,l,f,c,h;function d(E){return t.invert(E)}function p(E){var A=d(E);if(!A)return!0;var L=t(A);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function y(){sd.select(this).style(iY),i=sd.mouse(this),a=t.rotate(),o=t.translate(),s=a,u=d(i)}function b(){if(l=sd.mouse(this),p(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(sd.event.scale),t.translate([o[0],sd.event.translate[1]]),u?d(l)&&(c=d(l),f=[s[0]+(c[0]-u[0]),a[1],a[2]],t.rotate(f),s=f):(i=l,u=d(i)),h=!0,e.render(!0);var E=t.rotate(),A=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":A[0],"geo.center.lat":A[1],"geo.projection.rotation.lon":-E[0]})}function v(){sd.select(this).style(nY),h&&oY(e,t,C)}function C(E){var A=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-A[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",y).on("zoom",b).on("zoomend",v),r}function J9t(e,t){var r={r:t.rotate(),k:t.scale()},n=aY(e,t),i=aOt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){sd.select(this).style(iY);var h=sd.mouse(this),d=t.rotate(),p=d,y=t.translate(),b=$9t(d);s=NF(t,h),o.call(n,"zoom",function(){var v=sd.mouse(this);if(t.scale(r.k=sd.event.scale),!s)h=v,s=NF(t,h);else if(NF(t,v)){t.rotate(d).translate(y);var C=NF(t,v),E=eOt(s,C),A=rOt(Q9t(b,E)),L=r.r=tOt(A,s,p);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=p),t.rotate(L),p=L}l(i.of(this,arguments))}),u(i.of(this,arguments))}).on("zoomend",function(){sd.select(this).style(nY),o.call(n,"zoom",null),f(i.of(this,arguments)),oY(e,t,c)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function u(h){a++||h({type:"zoomstart"})}function l(h){h({type:"zoom"})}function f(h){--a||h({type:"zoomend"})}function c(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return sd.rebind(n,i,"on")}function NF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&iOt(r)}function $9t(e){var t=.5*e[0]*aS,r=.5*e[1]*aS,n=.5*e[2]*aS,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),u=Math.sin(n),l=Math.cos(n);return[a*s*l+i*o*u,i*s*l-a*o*u,a*o*l+i*s*u,a*s*u-i*o*l]}function Q9t(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],u=t[2],l=t[3];return[r*o-n*s-i*u-a*l,r*s+n*o+i*l-a*u,r*u-n*l+i*o+a*s,r*l+n*u-i*s+a*o]}function eOt(e,t){if(!(!e||!t)){var r=nOt(e,t),n=Math.sqrt(sFe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,sFe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function tOt(e,t,r){var n=rY(t,2,e[0]);n=rY(n,1,e[1]),n=rY(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],u=n[1],l=n[2],f=Math.atan2(a,i)*nw,c=Math.sqrt(i*i+a*a),h,d;Math.abs(u)>c?(d=(u>0?90:-90)-f,h=0):(d=Math.asin(u/c)*nw-f,h=Math.sqrt(c*c-u*u));var p=180-d-2*f,y=(Math.atan2(l,s)-Math.atan2(o,h))*nw,b=(Math.atan2(l,s)-Math.atan2(o,-h))*nw,v=aFe(r[0],r[1],d,y),C=aFe(r[0],r[1],p,b);return v<=C?[d,y,r[2]]:[p,b,r[2]]}function aFe(e,t,r,n){var i=oFe(r-e),a=oFe(n-t);return Math.sqrt(i*i+a*a)}function oFe(e){return(e%360+540)%360-180}function rY(e,t,r){var n=r*aS,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),u=Math.sin(n);return i[a]=e[a]*s-e[o]*u,i[o]=e[o]*s+e[a]*u,i}function rOt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*nw,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*nw,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*nw]}function iOt(e){var t=e[0]*aS,r=e[1]*aS,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function sFe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var u1=Kl(),uY=eY(),oOt=uY.geoPath,sOt=uY.geoDistance,lOt=nFe(),uOt=$l(),aw=ei(),fOt=aw.strTranslate,UF=jl(),yk=Mu(),fFe=Vc(),cOt=Cc(),lY=wu(),cFe=Mm().getAutoRange,sY=xp(),hOt=oh().prepSelect,dOt=oh().clearOutline,pOt=oh().selectOnClick,vOt=uFe(),hv=hk(),dFe=eg(),{getFitboundsLonRange:mOt,unwrapLonRange:yOt}=dFe,pFe=SF(),gOt=BZ().feature;function vFe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var ty=vFe.prototype;mFe.exports=function(t){return new vFe(t)};ty.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var u in hv.layerNameToAdjective)if(u!=="frame"&&a["show"+u]){s=!0;break}for(var l=!1,f=0;f0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),cOt.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var u=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=u.selectAll(".point"),this.dataPoints.text=u.selectAll("text"),this.dataPaths.line=u.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this._render()};ty.updateProjection=function(e,t){var de;var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,u=n.lataxis,l=s._ax,f=u._ax,c=this.projection=_Ot(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},p=o.rotation||{},y=s.range||[],b=u.range||[];if(n.fitbounds){if(l._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],l.range=cFe(r,l),f.range=cFe(r,f),!this.hasChoropleth&&n.fitbounds==="locations"){for(var v=[],C=!1,E=0;E0?(l.range[1]-l.range[0]-m)/2*(S[1]-S[0])/m:0;l.range=[S[0]-P,S[1]+P]}}}var M=(l.range[0]+l.range[1])/2,O=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:M,lat:O};else if(n._isClipped){d={lon:M,lat:O},p={lon:M,lat:O,roll:p.roll};var F=o.type,U=hv.lonaxisSpan[F]/2||180,G=hv.lataxisSpan[F]/2||90;y=[M-U,M+U],b=[O-G,O+G]}else d={lon:M,lat:O},p={lon:M,lat:p.lat,roll:p.roll}}c.center([d.lon-p.lon,d.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var j=hFe(y,b);c.fitExtent(h,j);var W=this.bounds=c.getBounds(j),N=this.fitScale=c.scale(),H=c.translate();if(n.fitbounds){var re=c.getBounds(hFe(l.range,f.range)),ae=Math.min((W[1][0]-W[0][0])/(re[1][0]-re[0][0]),(W[1][1]-W[0][1])/(re[1][1]-re[0][1]));isFinite(ae)?c.scale(ae*N):aw.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*N);var me=this.midPt=[(W[0][0]+W[1][0])/2,(W[0][1]+W[1][1])/2];if(c.translate([H[0]+(me[0]-H[0]),H[1]+(me[1]-H[1])]).clipExtent(W),n._isAlbersUsa){var Ce=c([d.lon,d.lat]),Ee=c.translate();c.translate([Ee[0]-(Ce[0]-Ee[0]),Ee[1]-(Ce[1]-Ee[1])])}};ty.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!hv.lineLayers[h]}function u(h){return!!hv.fillLayers[h]}var l=this.hasChoropleth?hv.layersForChoropleth:hv.layers,f=l.filter(function(h){return s(h)||u(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),c=r.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete i[h],delete a[h],u1.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=u1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):u(h)&&(a[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=a[h],p=hv.layerNameToAdjective[h];h==="frame"?d.datum(hv.sphereSVG):s(h)||u(h)?d.datum(gOt(n,n.objects[h])):o(h)&&d.datum(xOt(h,t,e)).call(UF.stroke,t[h].gridcolor).call(yk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(UF.stroke,t[p+"color"]).call(yk.dashLine,"",t[p+"width"]):u(h)&&d.call(UF.fill,t[p+"color"])})};ty.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;yk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(yk.setRect,i,a,o,s).call(UF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};ty.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var c=r.viewInitial,h={};for(var d in c)h[r.id+"."+d]=c[d];uOt.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function u(c){return r.projection.invert([c[0]+r.xaxis._offset,c[1]+r.yaxis._offset])}var l=function(c,h){if(h.isRect){var d=c.range={};d[r.id]=[u([h.xmin,h.ymin]),u([h.xmax,h.ymax])]}else{var p=c.lassoPoints={};p[r.id]=h.map(u)}},f={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:l},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(c){c===2&&dOt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(vOt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),f.prepFn=function(c,h,d){hOt(c,h,d,f,a)},sY.init(f)),i.on("mousemove",function(){var c=r.projection.invert(aw.getPositionFromD3Event());if(!c)return sY.unhover(n,u1.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},fFe.hover(n,u1.event,r.id)}),i.on("mouseout",function(){n._dragging||sY.unhover(n,u1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&pOt(u1.event,n,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&fFe.click(n,u1.event))})};ty.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=u1.select(e.container).append("g").attr("class","geo "+e.id).call(yk.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},lY.setConvert(e.mockAxis,r)};ty.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},aw.extendFlat(this.viewInitial,i)};ty.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};ty._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?fOt(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function _Ot(e){var t=e.projection,r=t.type,n=hv.projNames[r];n="geo"+aw.titleCase(n);for(var i=uY[n]||lOt[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?hv.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],u=function(c){return c?a:[]},l=0;lp}else return!1},a.getPath=function(){return oOt().projection(a)},a.getBounds=function(c){return a.getPath().bounds(c)},a.precision(hv.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-hv.clipPad),a}function xOt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=hv.scopeDefaults[t.scope],s,u,l;e==="lonaxis"?(s=o.lonaxisRange,u=o.lataxisRange,l=function(C,E){return[C,E]}):e==="lataxis"&&(s=o.lataxisRange,u=o.lonaxisRange,l=function(C,E){return[E,C]});var f={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};lY.setConvert(f,r);var c=lY.calcTicks(f);!t.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),p=0;p{"use strict";var sS=Bh(),bOt=zc().attributes,wOt=Id().dash,oS=hk(),AOt=Sc().overrideAll,gFe=r_(),_Fe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:sS.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:wOt},TOt=xFe.exports=AOt({domain:bOt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:gFe(oS.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:gFe(oS.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:sS.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:oS.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:oS.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:oS.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:oS.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:sS.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:sS.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:sS.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:sS.background},lonaxis:_Fe,lataxis:_Fe},"plot","from-root");TOt.uirevision={valType:"any",editType:"none"}});var AFe=we((D1r,wFe)=>{"use strict";var VF=ei(),SOt=B_(),MOt=Rd().getSubplotData,{unwrapLonRange:EOt}=eg(),GF=hk(),kOt=fY(),bFe=GF.axesNames;wFe.exports=function(t,r,n){SOt(t,r,n,{type:"geo",attributes:kOt,handleDefaults:COt,fullData:n,partition:"y"})};function COt(e,t,r,n){var i=MOt(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),u=GF.scopeDefaults[s],l=r("projection.type",u.projType),f=t._isAlbersUsa=l==="albers usa";f&&(s=t.scope="usa");var c=t._isScoped=s!=="world",h=t._isSatellite=l==="satellite",d=t._isConic=l.indexOf("conic")!==-1||l==="albers",p=t._isClipped=!!GF.lonaxisSpan[l];if(e.visible===!1){var y=VF.extendDeep({},t._template);y.showcoastlines=!1,y.showcountries=!1,y.showframe=!1,y.showlakes=!1,y.showland=!1,y.showocean=!1,y.showrivers=!1,y.showsubunits=!1,y.lonaxis&&(y.lonaxis.showgrid=!1),y.lataxis&&(y.lataxis.showgrid=!1),t._template=y}for(var b=r("visible"),v,C=0;C{"use strict";var LOt=Rd().getSubplotCalcData,POt=ei().counterRegex,zOt=yFe(),tg="geo",TFe=POt(tg),SFe={};SFe[tg]={valType:"subplotid",dflt:tg,editType:"calc"};function IOt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[tg],i=0;i{"use strict";EFe.exports={attributes:rw(),supplyDefaults:a6e(),colorbar:tp(),formatLabels:l6e(),calc:AF(),calcGeoJSON:QZ().calcGeoJSON,plot:QZ().plot,style:YZ(),styleOnSelect:sv().styleOnSelect,hoverPoints:Y6e(),eventData:J6e(),selectPoints:eFe(),moduleType:"trace",name:"scattergeo",basePlotModule:cY(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var LFe=we((B1r,CFe)=>{"use strict";CFe.exports=kFe()});var lS=we((q1r,IFe)=>{"use strict";var{hovertemplateAttrs:FOt,templatefallbackAttrs:OOt}=Of(),vx=rw(),BOt=nc(),PFe=Vf(),qOt=Bh().defaultLine,px=Su().extendFlat,zFe=vx.marker.line;IFe.exports=px({locations:{valType:"data_array",editType:"calc"},locationmode:vx.locationmode,z:{valType:"data_array",editType:"calc"},geojson:px({},vx.geojson,{}),featureidkey:vx.featureidkey,text:px({},vx.text,{}),hovertext:px({},vx.hovertext,{}),marker:{line:{color:px({},zFe.color,{dflt:qOt}),width:px({},zFe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:vx.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:vx.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:px({},PFe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:FOt(),hovertemplatefallback:OOt(),showlegend:px({},PFe.showlegend,{dflt:!1})},BOt("",{cLetter:"z",editTypeOverride:"calc"}))});var DFe=we((N1r,RFe)=>{"use strict";var gk=ei(),NOt=nd(),UOt=lS(),VOt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");RFe.exports=function(t,r,n,i){function a(h,d){return gk.coerce(t,r,UOt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&gk.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var u=a("geojson"),l;(typeof u=="string"&&u!==""||gk.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="country names"&&gk.warn(VOt),f==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("marker.line.width");c&&a("marker.line.color"),a("marker.opacity"),NOt(t,r,i,a,{prefix:"",cLetter:"z"}),gk.coerceSelectionMarkerOpacity(r,a)}});var HF=we((U1r,BFe)=>{"use strict";var FFe=ku(),GOt=rf().BADNUM,HOt=gp(),WOt=Ry(),jOt=O0();function OFe(e){return e&&typeof e=="string"}BFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(f){return OFe(f)||FFe(f)}:a=OFe;for(var o=0;o{"use strict";var XOt=Kl(),ZOt=jl(),hY=Mu(),YOt=_c();function KOt(e,t){t&&qFe(e,t)}function qFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=YOt.makeColorScaleFuncFromTrace(r);i.each(function(u){XOt.select(this).attr("fill",s(u.z)).call(ZOt.stroke,u.mlc||o.color).call(hY.dashLine,"",u.mlw||o.width||0).style("opacity",a.opacity)}),hY.selectedPointStyle(i,r)}function JOt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?hY.selectedPointStyle(r.selectAll(".choroplethlocation"),n):qFe(e,t)}NFe.exports={style:KOt,styleOnSelect:JOt}});var dY=we((G1r,GFe)=>{"use strict";var $Ot=Kl(),UFe=ei(),uS=eg(),QOt=SF().getTopojsonFeatures,VFe=Mm().findExtremes,eBt=WF().style;function tBt(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");UFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=$Ot.select(this),o=a.selectAll("path.choroplethlocation").data(UFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),eBt(e,i)})}function rBt(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?uS.extractTraceFeature(e):QOt(r,i.topojson),u=[],l=[],f=0;f{"use strict";var iBt=wu(),nBt=lS(),aBt=ei().fillText,{ANTIMERIDIAN_LON_SHIFT:oBt}=eg();HFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,u,l,f,c=[r,n];let h=[r+oBt,n];for(u=0;u")}}});var XF=we((W1r,WFe)=>{"use strict";WFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var ZF=we((j1r,jFe)=>{"use strict";jFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u,l,f,c;if(r===!1)for(s=0;s{"use strict";XFe.exports={attributes:lS(),supplyDefaults:DFe(),colorbar:D_(),calc:HF(),calcGeoJSON:dY().calcGeoJSON,plot:dY().plot,style:WF().style,styleOnSelect:WF().styleOnSelect,hoverPoints:jF(),eventData:XF(),selectPoints:ZF(),moduleType:"trace",name:"choropleth",basePlotModule:cY(),categories:["geo","noOpacity","showLegend"],meta:{}}});var KFe=we((Z1r,YFe)=>{"use strict";YFe.exports=ZFe()});var YF=we((Y1r,$Fe)=>{"use strict";var lBt=$l(),l0=ei(),uBt=xA();function fBt(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,u=e.ya,l=a.x,f=a.y,c=s.c2p(t),h=u.c2p(r),d=e.distance,p;if(a.tree){var y=s.p2c(c-d),b=s.p2c(c+d),v=u.p2c(h-d),C=u.p2c(h+d);n==="x"?p=a.tree.range(Math.min(y,b),Math.min(u._rl[0],u._rl[1]),Math.max(y,b),Math.max(u._rl[0],u._rl[1])):p=a.tree.range(Math.min(y,b),Math.min(v,C),Math.max(y,b),Math.max(v,C))}else p=a.ids;var E,A,L,x,k,S,m,P,M,O=d;if(n==="x"){var F=!!o.xperiodalignment,U=!!o.yperiodalignment;for(k=0;k=Math.min(G,j)&&c<=Math.max(G,j)?0:1/0}if(S=Math.min(W,N)&&h<=Math.max(W,N)?0:1/0}M=Math.sqrt(S*S+m*m),A=p[k]}}}else for(k=p.length-1;k>-1;k--)E=p[k],L=l[E],x=f[E],S=s.c2p(L)-c,m=u.c2p(x)-h,P=Math.sqrt(S*S+m*m),P{"use strict";var QFe=20;e8e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:QFe,SYMBOL_STROKE:QFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var _k=we((J1r,n8e)=>{"use strict";var cBt=Vf(),hBt=gc(),dBt=Pm(),Kc=Zc(),t8e=Xc().axisHoverFormat,r8e=nc(),pBt=r_(),pY=Su().extendFlat,vBt=Sc().overrideAll,mBt=mx().DASHES,i8e=Kc.line,f1=Kc.marker,yBt=f1.line,yx=n8e.exports=vBt({x:Kc.x,x0:Kc.x0,dx:Kc.dx,y:Kc.y,y0:Kc.y0,dy:Kc.dy,xperiod:Kc.xperiod,yperiod:Kc.yperiod,xperiod0:Kc.xperiod0,yperiod0:Kc.yperiod0,xperiodalignment:Kc.xperiodalignment,yperiodalignment:Kc.yperiodalignment,xhoverformat:t8e("x"),yhoverformat:t8e("y"),text:Kc.text,hovertext:Kc.hovertext,textposition:Kc.textposition,textfont:hBt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:i8e.color,width:i8e.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:pBt(mBt),dflt:"solid"}},marker:pY({},r8e("marker"),{symbol:f1.symbol,angle:f1.angle,size:f1.size,sizeref:f1.sizeref,sizemin:f1.sizemin,sizemode:f1.sizemode,opacity:f1.opacity,colorbar:f1.colorbar,line:pY({},r8e("marker.line"),{width:yBt.width})}),connectgaps:Kc.connectgaps,fill:pY({},Kc.fill,{dflt:"none"}),fillcolor:dBt(),selected:{marker:Kc.selected.marker,textfont:Kc.selected.textfont},unselected:{marker:Kc.unselected.marker,textfont:Kc.unselected.textfont},opacity:cBt.opacity},"calc","nested");yx.x.editType=yx.y.editType=yx.x0.editType=yx.y0.editType="calc+clearAxisTypes";yx.hovertemplate=Kc.hovertemplate;yx.hovertemplatefallback=Kc.hovertemplatefallback;yx.texttemplate=Kc.texttemplate;yx.texttemplatefallback=Kc.texttemplatefallback});var KF=we(vY=>{"use strict";var a8e=mx();vY.isOpenSymbol=function(e){return typeof e=="string"?a8e.OPEN_RE.test(e):e%200>100};vY.isDotSymbol=function(e){return typeof e=="string"?a8e.DOT_RE.test(e):e>200}});var l8e=we((Q1r,s8e)=>{"use strict";var o8e=ei(),gBt=$l(),_Bt=KF(),xBt=_k(),bBt=Py(),JF=lc(),wBt=fA(),ABt=Rm(),TBt=$v(),SBt=R0(),MBt=Dm(),EBt=D0();s8e.exports=function(t,r,n,i){function a(d,p){return o8e.coerce(t,r,xBt,d,p)}var o=t.marker?_Bt.isOpenSymbol(t.marker.symbol):!1,s=JF.isBubble(t),u=wBt(t,r,i,a);if(!u){r.visible=!1;return}ABt(t,r,i,a),a("xhoverformat"),a("yhoverformat");var l=u{"use strict";var kBt=cI();u8e.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),kBt(t,r,n)}});var h8e=we((t_r,c8e)=>{"use strict";function CBt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>=0?(a=o,i=o-1):n=o+1}return a}function LBt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>0?(a=o,i=o-1):n=o+1}return a}function PBt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<0?(a=o,n=o+1):i=o-1}return a}function zBt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<=0?(a=o,n=o+1):i=o-1}return a}function IBt(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function xk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}c8e.exports={ge:function(e,t,r,n,i){return xk(e,t,r,n,i,CBt)},gt:function(e,t,r,n,i){return xk(e,t,r,n,i,LBt)},lt:function(e,t,r,n,i){return xk(e,t,r,n,i,PBt)},le:function(e,t,r,n,i){return xk(e,t,r,n,i,zBt)},eq:function(e,t,r,n,i){return xk(e,t,r,n,i,IBt)}}});var rg=we((r_r,p8e)=>{"use strict";p8e.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=d8e(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var RBt=rg();v8e.exports=DBt;function DBt(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=RBt(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var ow=we((n_r,m8e)=>{"use strict";m8e.exports=FBt;function FBt(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{y8e.exports=function(){for(var e=0;e{var _8e=iF();x8e.exports=OBt;function OBt(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,u;(!t||typeof t=="string")&&(t=new(_8e(t||"float32"))(i+r));var l=t.length-r;if(i!==l)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+l);for(a=0,s=r;a{"use strict";b8e.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var T8e=we((l_r,A8e)=>{"use strict";A8e.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var P8e=we((u_r,L8e)=>{"use strict";var S8e=h8e(),M8e=ak(),BBt=fS(),qBt=ow(),E8e=rg(),yY=g8e(),NBt=sw(),UBt=w8e(),VBt=iF(),k8e=T8e(),GBt=1073741824;L8e.exports=function(t,r){r||(r={}),t=NBt(t,"float64"),r=E8e(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=yY(r.maxDepth,255),i=yY(r.bounds,qBt(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=C8e(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(VBt(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let v=0;vn||x>GBt){for(let N=0;Nme||m>Ce||P=O||re===ae)return;let Ee=u[H];ae===void 0&&(ae=Ee.length);for(let Be=re;Be=A&&je<=x&&rt>=L&&rt<=k&&F.push(ce)}let de=l[H],te=de[re*4+0],Se=de[re*4+1],Te=de[re*4+2],be=de[re*4+3],He=G(de,re+1),Ie=N*.5,ge=H+1;U(j,W,Ie,ge,te,Se||Te||be||He),U(j,W+Ie,Ie,ge,Se,Te||be||He),U(j+Ie,W,Ie,ge,Te,be||He),U(j+Ie,W+Ie,Ie,ge,be,He)}function G(j,W){let N=null,H=0;for(;N===null;)if(N=j[W*4+H],H++,H>j.length)return null;return N}return F}function y(v,C,E,A,L){let x=[];for(let k=0;k{"use strict";z8e.exports=P8e()});var gY=we((c_r,I8e)=>{I8e.exports=HBt;function HBt(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var u=1;u{"use strict";Object.defineProperty(QF,"__esModule",{value:!0});var WBt=(function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),bk=Math.PI*2,_Y=function(t,r,n,i,a,o,s){var u=t.x,l=t.y;u*=r,l*=n;var f=i*u-a*l,c=a*u+i*l;return{x:f+o,y:c+s}},jBt=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},R8e=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},XBt=function(t,r,n,i,a,o,s,u,l,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),y=Math.pow(c,2),b=Math.pow(h,2),v=d*p-d*b-p*y;v<0&&(v=0),v/=d*b+p*y,v=Math.sqrt(v)*(s===u?-1:1);var C=v*a/o*h,E=v*-o/a*c,A=f*C-l*E+(t+n)/2,L=l*C+f*E+(r+i)/2,x=(c-C)/a,k=(h-E)/o,S=(-c-C)/a,m=(-h-E)/o,P=R8e(1,0,x,k),M=R8e(x,k,S,m);return u===0&&M>0&&(M-=bk),u===1&&M<0&&(M+=bk),[A,L,P,M]},ZBt=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,u=t.xAxisRotation,l=u===void 0?0:u,f=t.largeArcFlag,c=f===void 0?0:f,h=t.sweepFlag,d=h===void 0?0:h,p=[];if(o===0||s===0)return[];var y=Math.sin(l*bk/360),b=Math.cos(l*bk/360),v=b*(r-i)/2+y*(n-a)/2,C=-y*(r-i)/2+b*(n-a)/2;if(v===0&&C===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(v,2)/Math.pow(o,2)+Math.pow(C,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var A=XBt(r,n,i,a,o,s,c,d,y,b,v,C),L=WBt(A,4),x=L[0],k=L[1],S=L[2],m=L[3],P=Math.abs(m)/(bk/4);Math.abs(1-P)<1e-7&&(P=1);var M=Math.max(Math.ceil(P),1);m/=M;for(var O=0;O{"use strict";B8e.exports=KBt;var YBt=F8e();function KBt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function e8(e,t,r,n){return["C",e,t,r,n,r,n]}function O8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var xY=we((d_r,N8e)=>{"use strict";N8e.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var G8e=we((p_r,V8e)=>{"use strict";var JBt=l5(),$Bt=gY(),QBt=q8e(),eqt=xY(),U8e=_4();V8e.exports=tqt;function tqt(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(U8e(eqt(e),"String is not an SVG path."),e=JBt(e)),U8e(Array.isArray(e),"Argument should be a string or an array of path segments."),e=$Bt(e),e=QBt(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var Y8e=we((v_r,Z8e)=>{var lw=Math.PI,H8e=X8e(120);Z8e.exports=rqt;function rqt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var y=l,b=f;(t=="C"||t=="S")&&(y+=y-n,b+=b-i),d=["C",y,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=l*2-s,u=f*2-u):(s=l,u=f),d=W8e(l,f,s,u,d[1],d[2]);break;case"Q":s=d[1],u=d[2],d=W8e(l,f,d[1],d[2],d[3],d[4]);break;case"L":d=t8(l,f,d[1],d[2]);break;case"H":d=t8(l,f,d[1],f);break;case"V":d=t8(l,f,l,d[1]);break;case"Z":d=t8(l,f,a,o);break}t=p,l=d[d.length-2],f=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function t8(e,t,r,n){return["C",e,t,r,n,r,n]}function W8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function j8e(e,t,r,n,i,a,o,s,u,l){if(l)E=l[0],A=l[1],v=l[2],C=l[3];else{var f=bY(e,t,-i);e=f.x,t=f.y,f=bY(s,u,-i),s=f.x,u=f.y;var c=(e-s)/2,h=(t-u)/2,d=c*c/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var p=r*r,y=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((p*y-p*h*h-y*c*c)/(p*h*h+y*c*c)));b==1/0&&(b=1);var v=b*r*h/n+(e+s)/2,C=b*-n*c/r+(t+u)/2,E=Math.asin(((t-C)/n).toFixed(9)),A=Math.asin(((u-C)/n).toFixed(9));E=eA&&(E=E-lw*2),!o&&A>E&&(A=A-lw*2)}if(Math.abs(A-E)>H8e){var L=A,x=s,k=u;A=E+H8e*(o&&A>E?1:-1),s=v+r*Math.cos(A),u=C+n*Math.sin(A);var S=j8e(s,u,r,n,i,0,o,x,k,[A,L,v,C])}var m=Math.tan((A-E)/4),P=4/3*r*m,M=4/3*n*m,O=[2*e-(e+P*Math.sin(E)),2*t-(t-M*Math.cos(E)),s+P*Math.sin(A),u-M*Math.cos(A),s,u];if(l)return O;S&&(O=O.concat(S));for(var F=0;F{var iqt=gY(),nqt=Y8e(),aqt={M:"moveTo",C:"bezierCurveTo"};K8e.exports=function(e,t){e.beginPath(),nqt(iqt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[aqt[n]].apply(e,i)}),e.closePath()}});var t9e=we((y_r,e9e)=>{"use strict";var oqt=ak();e9e.exports=sqt;var wk=1e20;function sqt(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,u,l,f,c,h,d,p,y;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,u=e,t.stride?f=t.stride:f=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,c=h.getContext("2d"),a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,c=e,a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,u=d.data,f=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(l=u,u=Array(a*o),p=0,y=l.length;p{"use strict";var lqt=G8e(),uqt=l5(),fqt=J8e(),cqt=xY(),hqt=t9e(),wY=document.createElement("canvas"),dv=wY.getContext("2d");r9e.exports=dqt;function dqt(e,t){if(!cqt(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=wY.width=t.w||t.width||200,n=wY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||lqt(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],u=Math.min(s[0]||0,s[1]||0)/2;if(dv.fillStyle="black",dv.fillRect(0,0,r,n),dv.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?dv.strokeStyle="white":dv.strokeStyle="black",dv.lineWidth=Math.abs(a)),dv.translate(r*.5,n*.5),dv.scale(u,u),pqt()){var l=new Path2D(e);dv.fill(l),a&&dv.stroke(l)}else{var f=uqt(e);fqt(dv,f),dv.fill(),a&&dv.stroke()}dv.setTransform(1,0,0,1,0,0);var c=hqt(dv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return c}var r8;function pqt(){if(r8!=null)return r8;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return r8=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return r8=r&&r.data&&r.data[3]===255}});var fw=we((__r,p9e)=>{"use strict";var n8=ku(),vqt=i9e(),i8=lx(),mqt=$l(),dS=ei(),Lh=dS.isArrayOrTypedArray,cS=Mu(),n9e=jc(),a9e=o1().formatColor,hS=lc(),yqt=U3(),TY=KF(),Ak=mx(),gqt=Z1().DESELECTDIM,o9e={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},_qt=iv().appendArrayPointValue;function xqt(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(hS.hasText(t)&&(n.text=d9e(e,t),n.textSel=l9e(e,t,t.selected),n.textUnsel=l9e(e,t,t.unselected)),hS.hasMarkers(t)&&(n.marker=MY(e,t),n.markerSel=SY(e,t,t.selected),n.markerUnsel=SY(e,t,t.unselected),!t.unselected&&Lh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function MY(e,t){var r=t._length,n=t.marker,i={},a,o=Lh(n.symbol),s=Lh(n.angle),u=Lh(n.color),l=Lh(n.line.color),f=Lh(n.opacity),c=Lh(n.size),h=Lh(n.line.width),d;if(o||(d=TY.isOpenSymbol(n.symbol)),o||u||l||f||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var p=n.symbol,y=n.angle,b=a9e(n,n.opacity,r),v=a9e(n.line,n.opacity,r);if(!Lh(v[0])){var C=v;for(v=Array(r),a=0;aAk.TOO_MANY_POINTS||hS.hasMarkers(t)?"rect":"round";if(l&&t.connectgaps){var c=a[0],h=a[1];for(o=0;o1?u[o]:u[0]:u,d=Lh(l)?l.length>1?l[o]:l[0]:l,p=o9e[h],y=o9e[d],b=f?f/.8+1:0,v=-y*b-y*.5;a.offset[o]=[p*b/c,v/c]}}return a}p9e.exports={style:xqt,markerStyle:MY,markerSelection:SY,linePositions:wqt,errorBarPositions:Aqt,textPosition:Tqt}});var EY=we((x_r,v9e)=>{"use strict";var a8=ei();v9e.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){a8.extendFlat(n,a,i)},n.init(),n.update=function(s){var u=a8.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(u),n.scatter2d&&n.scatter2d.update(u),n.line2d&&n.line2d.update(u),n.error2d&&n.error2d.update(u.concat(u)),n.select2d&&n.select2d.update(u),n.glText)for(var l=0;l{"use strict";var Sqt=$F(),pS=ei(),m9e=jc(),Mqt=Mm().findExtremes,y9e=Fm(),kY=B0(),Eqt=kY.calcMarkerSize,kqt=kY.calcAxisExpansion,Cqt=kY.setFirstScatter,Lqt=F0(),vS=fw(),Pqt=EY(),g9e=rf().BADNUM,zqt=mx().TOO_MANY_POINTS;x9e.exports=function(t,r){var n=t._fullLayout,i=r._xA=m9e.getFromId(t,r.xaxis,"x"),a=r._yA=m9e.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,u=s>=zqt,l=s*2,f={},c,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=y9e(r,i,"x",h),y=y9e(r,a,"y",d),b=p.vals,v=y.vals;r._x=b,r._y=v,r.xperiodalignment&&(r._origX=h,r._xStarts=p.starts,r._xEnds=p.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=y.starts,r._yEnds=y.ends);var C=new Array(l),E=new Array(s);for(c=0;c1&&pS.extendFlat(o.line,vS.linePositions(e,r,n)),o.errorX||o.errorY){var s=vS.errorBarPositions(e,r,n,i,a);o.errorX&&pS.extendFlat(o.errorX,s.x),o.errorY&&pS.extendFlat(o.errorY,s.y)}return o.text&&(pS.extendFlat(o.text,{positions:n},vS.textPosition(e,r,o.text,o.marker)),pS.extendFlat(o.textSel,{positions:n},vS.textPosition(e,r,o.text,o.markerSel)),pS.extendFlat(o.textUnsel,{positions:n},vS.textPosition(e,r,o.text,o.markerUnsel))),o}});var CY=we((w_r,A9e)=>{"use strict";var w9e=ei(),Rqt=jl(),Dqt=Z1().DESELECTDIM;function Fqt(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],u=i.textOptions[a],l=i.textSelectedOptions[a]||{},f=i.textUnselectedOptions[a]||{},c=w9e.extendFlat({},u),h,d;if(o.length||s.length){var p=l.color,y=f.color,b=u.color,v=w9e.isArrayOrTypedArray(b);for(c.color=new Array(r._length),h=0;h{"use strict";var T9e=lc(),Oqt=CY().styleTextSelection;S9e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u=n[0].t,l=s._length,f=u.x,c=u.y,h=u._scene,d=u.index;if(!h)return o;var p=T9e.hasText(s),y=T9e.hasMarkers(s),b=!y&&!p;if(s.visible!==!0||b)return o;var v=[],C=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var Bqt=YF();M9e.exports={moduleType:"trace",name:"scattergl",basePlotModule:Mh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:_k(),supplyDefaults:l8e(),crossTraceDefaults:TU(),colorbar:tp(),formatLabels:f8e(),calc:b9e(),hoverPoints:Bqt.hoverPoints,selectPoints:LY(),meta:{}}});var C9e=we((S_r,s8)=>{"use strict";var o8=ak();s8.exports=k9e;s8.exports.to=k9e;s8.exports.from=qqt;function k9e(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=o8(r,0,255)&255,n=o8(n,0,255)&255,i=o8(i,0,255)&255,a=o8(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function qqt(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var jh=we((M_r,P9e)=>{"use strict";var L9e=Object.getOwnPropertySymbols,Nqt=Object.prototype.hasOwnProperty,Uqt=Object.prototype.propertyIsEnumerable;function Vqt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Gqt(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}P9e.exports=Gqt()?Object.assign:function(e,t){for(var r,n=Vqt(e),i,a=1;a{z9e.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";R9e.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";D9e.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var l8=we((L_r,mS)=>{"use strict";mS.exports=Tk;mS.exports.float32=mS.exports.float=Tk;mS.exports.fract32=mS.exports.fract=Hqt;var O9e=new Float32Array(1);function Hqt(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=Tk(e));for(var r=0,n=t.length;r{"use strict";function Wqt(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function jqt(e,t){return Yqt(e)||Wqt(e,t)||q9e(e,t)||$qt()}function Xqt(e){return Zqt(e)||Kqt(e)||q9e(e)||Jqt()}function Zqt(e){if(Array.isArray(e))return zY(e)}function Yqt(e){if(Array.isArray(e))return e}function Kqt(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q9e(e,t){if(e){if(typeof e=="string")return zY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zY(e,t)}}function zY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rre)?N.tree=qqt(W,{bounds:de}):re&&re.length&&(N.tree=re),N.tree){var te={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(te):N.elements=o.elements(te)}var Se=l9.float32(W);ae({data:Se,usage:"dynamic"});var Te=l9.fract32(W,Se);return me({data:Te,usage:"dynamic"}),Le({data:new Uint8Array(Ce),type:"uint8",usage:"stream"}),W}},{marker:function(W,N,H){var re=N.activation;if(re.forEach(function(Te){return Te&&Te.destroy&&Te.destroy()}),re.length=0,!W||typeof W[0]=="number"){var ae=e.addMarker(W);re[ae]=!0}else{for(var me=[],Le=0,Ce=Math.min(W.length,N.count);Le=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};sp.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";DY.exports=c9;DY.exports.default=c9;function c9(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=O8e(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,u,l,f,c,h,d;if(n&&(a=Jqt(e,t,a,r)),e.length>80*r){s=l=e[0],u=f=e[1];for(var p=r;pl&&(l=c),h>f&&(f=h);d=Math.max(l-s,f-u),d=d!==0?32767/d:0}return Ak(a,o,r,s,u,d,0),o}function O8e(e,t,r,n,i){var a,o;if(i===IY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=F8e(a,e[a],e[a+1],o);return o&&h9(o,o.next)&&(Sk(o),o=o.next),o}function fw(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(h9(r,r.next)||Ph(r.prev,r,r.next)===0)){if(Sk(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Ak(e,t,r,n,i,a,o){if(e){!o&&a&&rNt(e,n,i,a);for(var s=e,u,l;e.prev!==e.next;){if(u=e.prev,l=e.next,a?Zqt(e,n,i,a):Xqt(e)){t.push(u.i/r|0),t.push(e.i/r|0),t.push(l.i/r|0),Sk(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=Yqt(fw(e),t,r),Ak(e,t,r,n,i,a,2)):o===2&&Kqt(e,t,r,n,i,a):Ak(fw(e),t,r,n,i,a,1);break}}}}function Xqt(e){var t=e.prev,r=e,n=e.next;if(Ph(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,u=r.y,l=n.y,f=ia?i>o?i:o:a>o?a:o,d=s>u?s>l?s:l:u>l?u:l,p=n.next;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&vS(i,s,a,u,o,l,p.x,p.y)&&Ph(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Zqt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Ph(i,a,o)>=0)return!1;for(var s=i.x,u=a.x,l=o.x,f=i.y,c=a.y,h=o.y,d=su?s>l?s:l:u>l?u:l,b=f>c?f>h?f:h:c>h?c:h,v=PY(d,p,t,r,n),C=PY(y,b,t,r,n),M=e.prevZ,A=e.nextZ;M&&M.z>=v&&A&&A.z<=C;){if(M.x>=d&&M.x<=y&&M.y>=p&&M.y<=b&&M!==i&&M!==o&&vS(s,f,u,c,l,h,M.x,M.y)&&Ph(M.prev,M,M.next)>=0||(M=M.prevZ,A.x>=d&&A.x<=y&&A.y>=p&&A.y<=b&&A!==i&&A!==o&&vS(s,f,u,c,l,h,A.x,A.y)&&Ph(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;M&&M.z>=v;){if(M.x>=d&&M.x<=y&&M.y>=p&&M.y<=b&&M!==i&&M!==o&&vS(s,f,u,c,l,h,M.x,M.y)&&Ph(M.prev,M,M.next)>=0)return!1;M=M.prevZ}for(;A&&A.z<=C;){if(A.x>=d&&A.x<=y&&A.y>=p&&A.y<=b&&A!==i&&A!==o&&vS(s,f,u,c,l,h,A.x,A.y)&&Ph(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function Yqt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!h9(i,a)&&B8e(i,n,n.next,a)&&Tk(i,a)&&Tk(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),Sk(n),Sk(n.next),n=e=a),n=n.next}while(n!==e);return fw(n)}function Kqt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&aNt(o,s)){var u=q8e(o,s);o=fw(o,o.next),u=fw(u,u.next),Ak(o,t,r,n,i,a,0),Ak(u,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function Jqt(e,t,r,n){var i=[],a,o,s,u,l;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=l&&n!==r.x&&vS(io.x||r.x===o.x&&tNt(o,r)))&&(o=r,c=h)),r=r.next;while(r!==u);return o}function tNt(e,t){return Ph(e.prev,e,t.prev)<0&&Ph(t.next,e,e.next)<0}function rNt(e,t,r,n){var i=e;do i.z===0&&(i.z=PY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,iNt(i)}function iNt(e){var t,r,n,i,a,o,s,u,l=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||u>0&&n;)s!==0&&(u===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,l*=2}while(o>1);return e}function PY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function nNt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function aNt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!oNt(e,t)&&(Tk(e,t)&&Tk(t,e)&&sNt(e,t)&&(Ph(e.prev,e,t.prev)||Ph(e,t.prev,t))||h9(e,t)&&Ph(e.prev,e,e.next)>0&&Ph(t.prev,t,t.next)>0)}function Ph(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function h9(e,t){return e.x===t.x&&e.y===t.y}function B8e(e,t,r,n){var i=f9(Ph(e,t,r)),a=f9(Ph(e,t,n)),o=f9(Ph(r,n,e)),s=f9(Ph(r,n,t));return!!(i!==a&&o!==s||i===0&&u9(e,r,t)||a===0&&u9(e,n,t)||o===0&&u9(r,e,n)||s===0&&u9(r,t,n))}function u9(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function f9(e){return e>0?1:e<0?-1:0}function oNt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&B8e(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Tk(e,t){return Ph(e.prev,e,e.next)<0?Ph(e,t,e.next)>=0&&Ph(e,e.prev,t)>=0:Ph(e,t,e.prev)<0||Ph(e,e.next,t)<0}function sNt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function q8e(e,t){var r=new zY(e.i,e.x,e.y),n=new zY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function F8e(e,t,r,n){var i=new zY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Sk(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function zY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}c9.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(IY(e,0,a,r));if(i)for(var s=0,u=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var V8e=we((v_r,U8e)=>{"use strict";var lNt=nw();U8e.exports=uNt;function uNt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=lNt(e,t));for(var n=0;n{"use strict";G8e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var j8e=we((y_r,W8e)=>{"use strict";W8e.exports=function(){}});var gx=we((g_r,X8e)=>{"use strict";var fNt=j8e()();X8e.exports=function(e){return e!==fNt&&e!==null}});var RY=we((__r,Y8e)=>{"use strict";var cNt=Object.create,hNt=Object.getPrototypeOf,Z8e={};Y8e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||cNt;return typeof e!="function"?!1:hNt(e(t(null),Z8e))===Z8e}});var FY=we((x_r,K8e)=>{"use strict";var dNt=gx(),pNt={function:!0,object:!0};K8e.exports=function(e){return dNt(e)&&pNt[typeof e]||!1}});var f1=we((b_r,J8e)=>{"use strict";var vNt=gx();J8e.exports=function(e){if(!vNt(e))throw new TypeError("Cannot use null or undefined");return e}});var Q8e=we((w_r,$8e)=>{"use strict";var OY=Object.create,d9;RY()()||(d9=BY());$8e.exports=function(){var e,t,r;return!d9||d9.level!==1?OY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(d9,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return OY(n===null?e:n,i)})}()});var BY=we((A_r,eOe)=>{"use strict";var mNt=FY(),yNt=f1(),gNt=Object.prototype.isPrototypeOf,_Nt=Object.defineProperty,xNt={configurable:!0,enumerable:!1,writable:!0,value:void 0},p9;p9=function(e,t){if(yNt(e),t===null||mNt(t))return e;throw new TypeError("Prototype must be null or an object")};eOe.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(p9(n,i),i),n}):t=function(n,i){return p9(n,i).__proto__=i,n}:t=function n(i,a){var o;return p9(i,a),o=gNt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&_Nt(n.nullPolyfill,"__proto__",xNt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());Q8e()});var v9=we((T_r,tOe)=>{"use strict";tOe.exports=RY()()?Object.setPrototypeOf:BY()});var iOe=we((S_r,rOe)=>{"use strict";var bNt=FY();rOe.exports=function(e){if(!bNt(e))throw new TypeError(e+" is not an Object");return e}});var aOe=we((M_r,nOe)=>{"use strict";var wNt=Object.create(null),ANt=Math.random;nOe.exports=function(){var e;do e=ANt().toString(36).slice(2);while(wNt[e]);return e}});var cw=we((E_r,oOe)=>{"use strict";var TNt=void 0;oOe.exports=function(e){return e!==TNt&&e!==null}});var m9=we((k_r,sOe)=>{"use strict";var SNt=cw(),MNt={object:!0,function:!0,undefined:!0};sOe.exports=function(e){return SNt(e)?hasOwnProperty.call(MNt,typeof e):!1}});var uOe=we((C_r,lOe)=>{"use strict";var ENt=m9();lOe.exports=function(e){if(!ENt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var cOe=we((L_r,fOe)=>{"use strict";var kNt=uOe();fOe.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!kNt(e)}});var qY=we((P_r,hOe)=>{"use strict";var CNt=cOe(),LNt=/^\s*class[\s{/}]/,PNt=Function.prototype.toString;hOe.exports=function(e){return!(!CNt(e)||LNt.test(PNt.call(e)))}});var pOe=we((z_r,dOe)=>{"use strict";dOe.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var mOe=we((I_r,vOe)=>{"use strict";vOe.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var gOe=we((D_r,yOe)=>{"use strict";var zNt=gx(),INt=Object.keys;yOe.exports=function(e){return INt(zNt(e)?Object(e):e)}});var xOe=we((R_r,_Oe)=>{"use strict";_Oe.exports=mOe()()?Object.keys:gOe()});var wOe=we((F_r,bOe)=>{"use strict";var DNt=xOe(),RNt=f1(),FNt=Math.max;bOe.exports=function(e,t){var r,n,i=FNt(arguments.length,2),a;for(e=Object(RNt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";AOe.exports=pOe()()?Object.assign:wOe()});var NY=we((B_r,TOe)=>{"use strict";var ONt=gx(),BNt=Array.prototype.forEach,qNt=Object.create,NNt=function(e,t){var r;for(r in e)t[r]=e[r]};TOe.exports=function(e){var t=qNt(null);return BNt.call(arguments,function(r){ONt(r)&&NNt(Object(r),t)}),t}});var MOe=we((q_r,SOe)=>{"use strict";var UY="razdwatrzy";SOe.exports=function(){return typeof UY.contains!="function"?!1:UY.contains("dwa")===!0&&UY.contains("foo")===!1}});var kOe=we((N_r,EOe)=>{"use strict";var UNt=String.prototype.indexOf;EOe.exports=function(e){return UNt.call(this,e,arguments[1])>-1}});var VY=we((U_r,COe)=>{"use strict";COe.exports=MOe()()?String.prototype.contains:kOe()});var c1=we((V_r,IOe)=>{"use strict";var g9=cw(),LOe=qY(),POe=y9(),zOe=NY(),Mk=VY(),VNt=IOe.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],g9(e)?(r=Mk.call(e,"c"),n=Mk.call(e,"e"),i=Mk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?POe(zOe(a),o):o};VNt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],g9(t)?LOe(t)?g9(r)?LOe(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,g9(e)?(n=Mk.call(e,"c"),i=Mk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?POe(zOe(a),o):o}});var Ek=we((G_r,ROe)=>{"use strict";var DOe=Object.prototype.toString,GNt=DOe.call(function(){return arguments}());ROe.exports=function(e){return DOe.call(e)===GNt}});var kk=we((H_r,OOe)=>{"use strict";var FOe=Object.prototype.toString,HNt=FOe.call("");OOe.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||FOe.call(e)===HNt)||!1}});var qOe=we((W_r,BOe)=>{"use strict";BOe.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var VOe=we((j_r,UOe)=>{var NOe=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};UOe.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return NOe()}try{return __global__||NOe()}finally{delete Object.prototype.__global__}}()});var Ck=we((X_r,GOe)=>{"use strict";GOe.exports=qOe()()?globalThis:VOe()});var WOe=we((Z_r,HOe)=>{"use strict";var WNt=Ck(),GY={object:!0,symbol:!0};HOe.exports=function(){var e=WNt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!GY[typeof e.iterator]||!GY[typeof e.toPrimitive]||!GY[typeof e.toStringTag])}});var XOe=we((Y_r,jOe)=>{"use strict";jOe.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var HY=we((K_r,ZOe)=>{"use strict";var jNt=XOe();ZOe.exports=function(e){if(!jNt(e))throw new TypeError(e+" is not a symbol");return e}});var QOe=we((J_r,$Oe)=>{"use strict";var YOe=c1(),XNt=Object.create,KOe=Object.defineProperty,ZNt=Object.prototype,JOe=XNt(null);$Oe.exports=function(e){for(var t=0,r,n;JOe[e+(t||"")];)++t;return e+=t||"",JOe[e]=!0,r="@@"+e,KOe(ZNt,r,YOe.gs(null,function(i){n||(n=!0,KOe(this,r,YOe(i)),n=!1)})),r}});var tBe=we(($_r,eBe)=>{"use strict";var ry=c1(),Xh=Ck().Symbol;eBe.exports=function(e){return Object.defineProperties(e,{hasInstance:ry("",Xh&&Xh.hasInstance||e("hasInstance")),isConcatSpreadable:ry("",Xh&&Xh.isConcatSpreadable||e("isConcatSpreadable")),iterator:ry("",Xh&&Xh.iterator||e("iterator")),match:ry("",Xh&&Xh.match||e("match")),replace:ry("",Xh&&Xh.replace||e("replace")),search:ry("",Xh&&Xh.search||e("search")),species:ry("",Xh&&Xh.species||e("species")),split:ry("",Xh&&Xh.split||e("split")),toPrimitive:ry("",Xh&&Xh.toPrimitive||e("toPrimitive")),toStringTag:ry("",Xh&&Xh.toStringTag||e("toStringTag")),unscopables:ry("",Xh&&Xh.unscopables||e("unscopables"))})}});var nBe=we((Q_r,iBe)=>{"use strict";var rBe=c1(),YNt=HY(),Lk=Object.create(null);iBe.exports=function(e){return Object.defineProperties(e,{for:rBe(function(t){return Lk[t]?Lk[t]:Lk[t]=e(String(t))}),keyFor:rBe(function(t){var r;YNt(t);for(r in Lk)if(Lk[r]===t)return r})})}});var sBe=we((exr,oBe)=>{"use strict";var rg=c1(),WY=HY(),_9=Ck().Symbol,KNt=QOe(),JNt=tBe(),$Nt=nBe(),QNt=Object.create,jY=Object.defineProperties,x9=Object.defineProperty,Xp,mS,aBe;if(typeof _9=="function")try{String(_9()),aBe=!0}catch(e){}else _9=null;mS=function(t){if(this instanceof mS)throw new TypeError("Symbol is not a constructor");return Xp(t)};oBe.exports=Xp=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return aBe?_9(t):(r=QNt(mS.prototype),t=t===void 0?"":String(t),jY(r,{__description__:rg("",t),__name__:rg("",KNt(t))}))};JNt(Xp);$Nt(Xp);jY(mS.prototype,{constructor:rg(Xp),toString:rg("",function(){return this.__name__})});jY(Xp.prototype,{toString:rg(function(){return"Symbol ("+WY(this).__description__+")"}),valueOf:rg(function(){return WY(this)})});x9(Xp.prototype,Xp.toPrimitive,rg("",function(){var e=WY(this);return typeof e=="symbol"?e:e.toString()}));x9(Xp.prototype,Xp.toStringTag,rg("c","Symbol"));x9(mS.prototype,Xp.toStringTag,rg("c",Xp.prototype[Xp.toStringTag]));x9(mS.prototype,Xp.toPrimitive,rg("c",Xp.prototype[Xp.toPrimitive]))});var _x=we((txr,lBe)=>{"use strict";lBe.exports=WOe()()?Ck().Symbol:sBe()});var fBe=we((rxr,uBe)=>{"use strict";var e7t=f1();uBe.exports=function(){return e7t(this).length=0,this}});var yS=we((ixr,cBe)=>{"use strict";cBe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var dBe=we((nxr,hBe)=>{"use strict";var t7t=cw(),r7t=m9(),i7t=Object.prototype.toString;hBe.exports=function(e){if(!t7t(e))return null;if(r7t(e)){var t=e.toString;if(typeof t!="function"||t===i7t)return null}try{return""+e}catch(r){return null}}});var vBe=we((axr,pBe)=>{"use strict";pBe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var yBe=we((oxr,mBe)=>{"use strict";var n7t=vBe(),a7t=/[\n\r\u2028\u2029]/g;mBe.exports=function(e){var t=n7t(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(a7t,function(r){switch(r){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var XY=we((sxr,xBe)=>{"use strict";var gBe=cw(),o7t=m9(),s7t=dBe(),l7t=yBe(),_Be=function(e,t){return e.replace("%v",l7t(t))};xBe.exports=function(e,t,r){if(!o7t(r))throw new TypeError(_Be(t,e));if(!gBe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=s7t(r.errorMessage);throw gBe(n)||(n=t),new TypeError(_Be(n,e))}});var wBe=we((lxr,bBe)=>{"use strict";var u7t=XY(),f7t=cw();bBe.exports=function(e){return f7t(e)?e:u7t(e,"Cannot use %v",arguments[1])}});var TBe=we((uxr,ABe)=>{"use strict";var c7t=XY(),h7t=qY();ABe.exports=function(e){return h7t(e)?e:c7t(e,"%v is not a plain function",arguments[1])}});var MBe=we((fxr,SBe)=>{"use strict";SBe.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var kBe=we((cxr,EBe)=>{"use strict";var d7t=Object.prototype.toString,p7t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);EBe.exports=function(e){return typeof e=="function"&&p7t(d7t.call(e))}});var LBe=we((hxr,CBe)=>{"use strict";CBe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var zBe=we((dxr,PBe)=>{"use strict";PBe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var DBe=we((pxr,IBe)=>{"use strict";IBe.exports=LBe()()?Math.sign:zBe()});var FBe=we((vxr,RBe)=>{"use strict";var v7t=DBe(),m7t=Math.abs,y7t=Math.floor;RBe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:v7t(e)*y7t(m7t(e)))}});var BBe=we((mxr,OBe)=>{"use strict";var g7t=FBe(),_7t=Math.max;OBe.exports=function(e){return _7t(0,g7t(e))}});var VBe=we((yxr,UBe)=>{"use strict";var x7t=_x().iterator,b7t=Ek(),w7t=kBe(),A7t=BBe(),qBe=yS(),T7t=f1(),S7t=gx(),M7t=kk(),NBe=Array.isArray,ZY=Function.prototype.call,hw={configurable:!0,enumerable:!0,writable:!0,value:null},YY=Object.defineProperty;UBe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,u,l,f,c,h;if(e=Object(T7t(e)),S7t(t)&&qBe(t),!this||this===Array||!w7t(this)){if(!t){if(b7t(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(NBe(e)){for(o=new Array(s=e.length),i=0;i=55296&&u<=56319&&(h+=e[++i])),h=t?ZY.call(t,r,h,a):h,n?(hw.value=h,YY(o,a,hw)):o[a]=h,++a;s=a}}if(s===void 0)for(s=A7t(e.length),n&&(o=new n(s)),i=0;i{"use strict";GBe.exports=MBe()()?Array.from:VBe()});var jBe=we((_xr,WBe)=>{"use strict";var E7t=HBe(),k7t=y9(),C7t=f1();WBe.exports=function(e){var t=Object(C7t(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?E7t(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):k7t(i,e),i}});var YBe=we((xxr,ZBe)=>{"use strict";var L7t=yS(),P7t=f1(),z7t=Function.prototype.bind,XBe=Function.prototype.call,I7t=Object.keys,D7t=Object.prototype.propertyIsEnumerable;ZBe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(P7t(r)),L7t(n),i=I7t(r),o&&i.sort(typeof o=="function"?z7t.call(o,r):void 0),typeof e!="function"&&(e=i[e]),XBe.call(e,i,function(s,u){return D7t.call(r,s)?XBe.call(n,a,r[s],s,r,u):t})}}});var JBe=we((bxr,KBe)=>{"use strict";KBe.exports=YBe()("forEach")});var QBe=we((wxr,$Be)=>{"use strict";var R7t=yS(),F7t=JBe(),O7t=Function.prototype.call;$Be.exports=function(e,t){var r={},n=arguments[2];return R7t(t),F7t(e,function(i,a,o,s){r[a]=O7t.call(t,n,i,a,o,s)}),r}});var iqe=we((Axr,rqe)=>{"use strict";var B7t=cw(),q7t=wBe(),eqe=TBe(),N7t=jBe(),U7t=NY(),V7t=QBe(),G7t=Function.prototype.bind,H7t=Object.defineProperty,W7t=Object.prototype.hasOwnProperty,tqe;tqe=function(e,t,r){var n=q7t(t)&&eqe(t.value),i;return i=N7t(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&W7t.call(this,e)?n:(t.value=G7t.call(n,r.resolveContext?r.resolveContext(this):this),H7t(this,e,t),this[e])},i};rqe.exports=function(e){var t=U7t(arguments[1]);return B7t(t.resolveContext)&&eqe(t.resolveContext),V7t(e,function(r,n){return tqe(n,r,t)})}});var KY=we((Txr,sqe)=>{"use strict";var j7t=fBe(),X7t=y9(),Z7t=yS(),Y7t=f1(),Bv=c1(),K7t=iqe(),nqe=_x(),aqe=Object.defineProperty,oqe=Object.defineProperties,Pk;sqe.exports=Pk=function(e,t){if(!(this instanceof Pk))throw new TypeError("Constructor requires 'new'");oqe(this,{__list__:Bv("w",Y7t(e)),__context__:Bv("w",t),__nextIndex__:Bv("w",0)}),t&&(Z7t(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete Pk.prototype.constructor;oqe(Pk.prototype,X7t({_next:Bv(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){aqe(this,"__redo__",Bv("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Bv(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Bv(function(){this.__redo__&&j7t.call(this.__redo__),this.__nextIndex__=0})})));aqe(Pk.prototype,nqe.iterator,Bv(function(){return this}))});var hqe=we((Sxr,cqe)=>{"use strict";var lqe=v9(),uqe=VY(),JY=c1(),J7t=_x(),$Y=KY(),fqe=Object.defineProperty,gS;gS=cqe.exports=function(e,t){if(!(this instanceof gS))throw new TypeError("Constructor requires 'new'");$Y.call(this,e),t?uqe.call(t,"key+value")?t="key+value":uqe.call(t,"key")?t="key":t="value":t="value",fqe(this,"__kind__",JY("",t))};lqe&&lqe(gS,$Y);delete gS.prototype.constructor;gS.prototype=Object.create($Y.prototype,{_resolve:JY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});fqe(gS.prototype,J7t.toStringTag,JY("c","Array Iterator"))});var mqe=we((Mxr,vqe)=>{"use strict";var dqe=v9(),b9=c1(),$7t=_x(),QY=KY(),pqe=Object.defineProperty,_S;_S=vqe.exports=function(e){if(!(this instanceof _S))throw new TypeError("Constructor requires 'new'");e=String(e),QY.call(this,e),pqe(this,"__length__",b9("",e.length))};dqe&&dqe(_S,QY);delete _S.prototype.constructor;_S.prototype=Object.create(QY.prototype,{_next:b9(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});pqe(_S.prototype,$7t.toStringTag,b9("c","String Iterator"))});var gqe=we((Exr,yqe)=>{"use strict";var Q7t=Ek(),eUt=gx(),tUt=kk(),rUt=_x().iterator,iUt=Array.isArray;yqe.exports=function(e){return eUt(e)?iUt(e)||tUt(e)||Q7t(e)?!0:typeof e[rUt]=="function":!1}});var xqe=we((kxr,_qe)=>{"use strict";var nUt=gqe();_qe.exports=function(e){if(!nUt(e))throw new TypeError(e+" is not iterable");return e}});var eK=we((Cxr,Aqe)=>{"use strict";var aUt=Ek(),oUt=kk(),bqe=hqe(),sUt=mqe(),lUt=xqe(),wqe=_x().iterator;Aqe.exports=function(e){return typeof lUt(e)[wqe]=="function"?e[wqe]():aUt(e)?new bqe(e):oUt(e)?new sUt(e):new bqe(e)}});var Sqe=we((Lxr,Tqe)=>{"use strict";var uUt=Ek(),fUt=yS(),cUt=kk(),hUt=eK(),dUt=Array.isArray,tK=Function.prototype.call,pUt=Array.prototype.some;Tqe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,u,l,f;if(dUt(e)||uUt(e)?r="array":cUt(e)?r="string":e=hUt(e),fUt(t),a=function(){o=!0},r==="array"){pUt.call(e,function(c){return tK.call(t,n,c,a),o});return}if(r==="string"){for(u=e.length,s=0;s=55296&&f<=56319&&(l+=e[++s])),tK.call(t,n,l,a),!o);++s);return}for(i=e.next();!i.done;){if(tK.call(t,n,i.value,a),o)return;i=e.next()}}});var Eqe=we((Pxr,Mqe)=>{"use strict";Mqe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var Lqe=we((zxr,Cqe)=>{"use strict";var vUt=gx(),A9=v9(),w9=iOe(),mUt=f1(),yUt=aOe(),h1=c1(),gUt=eK(),_Ut=Sqe(),xUt=_x().toStringTag,kqe=Eqe(),bUt=Array.isArray,iK=Object.defineProperty,rK=Object.prototype.hasOwnProperty,wUt=Object.getPrototypeOf,xx;Cqe.exports=xx=function(){var e=arguments[0],t;if(!(this instanceof xx))throw new TypeError("Constructor requires 'new'");return t=kqe&&A9&&WeakMap!==xx?A9(new WeakMap,wUt(this)):this,vUt(e)&&(bUt(e)||(e=gUt(e))),iK(t,"__weakMapData__",h1("c","$weakMap$"+yUt())),e&&_Ut(e,function(r){mUt(r),t.set(r[0],r[1])}),t};kqe&&(A9&&A9(xx,WeakMap),xx.prototype=Object.create(WeakMap.prototype,{constructor:h1(xx)}));Object.defineProperties(xx.prototype,{delete:h1(function(e){return rK.call(w9(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:h1(function(e){if(rK.call(w9(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:h1(function(e){return rK.call(w9(e),this.__weakMapData__)}),set:h1(function(e,t){return iK(w9(e),this.__weakMapData__,h1("c",t)),this}),toString:h1(function(){return"[object WeakMap]"})});iK(xx.prototype,xUt,h1("c","WeakMap"))});var nK=we((Ixr,Pqe)=>{"use strict";Pqe.exports=H8e()()?WeakMap:Lqe()});var Iqe=we((Dxr,zqe)=>{"use strict";zqe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var T9=sx(),AUt=nw(),oK=jh(),TUt=tg(),SUt=aw(),Dqe=N8e(),MUt=V8e(),{float32:EUt,fract32:aK}=o9(),kUt=nK(),Rqe=lS(),CUt=Iqe(),LUt=` +`]),B9e&&(p.frag=p.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(p)}sp.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};sp.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};sp.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nre)?N.tree=rNt(W,{bounds:de}):re&&re.length&&(N.tree=re),N.tree){var te={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(te):N.elements=o.elements(te)}var Se=f8.float32(W);ae({data:Se,usage:"dynamic"});var Te=f8.fract32(W,Se);return me({data:Te,usage:"dynamic"}),Ce({data:new Uint8Array(Ee),type:"uint8",usage:"stream"}),W}},{marker:function(W,N,H){var re=N.activation;if(re.forEach(function(Te){return Te&&Te.destroy&&Te.destroy()}),re.length=0,!W||typeof W[0]=="number"){var ae=e.addMarker(W);re[ae]=!0}else{for(var me=[],Ce=0,Ee=Math.min(W.length,N.count);Ce=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};sp.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";OY.exports=d8;OY.exports.default=d8;function d8(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=V9e(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,u,l,f,c,h,d;if(n&&(a=pNt(e,t,a,r)),e.length>80*r){s=l=e[0],u=f=e[1];for(var p=r;pl&&(l=c),h>f&&(f=h);d=Math.max(l-s,f-u),d=d!==0?32767/d:0}return Sk(a,o,r,s,u,d,0),o}function V9e(e,t,r,n,i){var a,o;if(i===FY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=U9e(a,e[a],e[a+1],o);return o&&p8(o,o.next)&&(Ek(o),o=o.next),o}function hw(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(p8(r,r.next)||Ph(r.prev,r,r.next)===0)){if(Ek(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Sk(e,t,r,n,i,a,o){if(e){!o&&a&&_Nt(e,n,i,a);for(var s=e,u,l;e.prev!==e.next;){if(u=e.prev,l=e.next,a?cNt(e,n,i,a):fNt(e)){t.push(u.i/r|0),t.push(e.i/r|0),t.push(l.i/r|0),Ek(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=hNt(hw(e),t,r),Sk(e,t,r,n,i,a,2)):o===2&&dNt(e,t,r,n,i,a):Sk(hw(e),t,r,n,i,a,1);break}}}}function fNt(e){var t=e.prev,r=e,n=e.next;if(Ph(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,u=r.y,l=n.y,f=ia?i>o?i:o:a>o?a:o,d=s>u?s>l?s:l:u>l?u:l,p=n.next;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&yS(i,s,a,u,o,l,p.x,p.y)&&Ph(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function cNt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Ph(i,a,o)>=0)return!1;for(var s=i.x,u=a.x,l=o.x,f=i.y,c=a.y,h=o.y,d=su?s>l?s:l:u>l?u:l,b=f>c?f>h?f:h:c>h?c:h,v=RY(d,p,t,r,n),C=RY(y,b,t,r,n),E=e.prevZ,A=e.nextZ;E&&E.z>=v&&A&&A.z<=C;){if(E.x>=d&&E.x<=y&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&yS(s,f,u,c,l,h,E.x,E.y)&&Ph(E.prev,E,E.next)>=0||(E=E.prevZ,A.x>=d&&A.x<=y&&A.y>=p&&A.y<=b&&A!==i&&A!==o&&yS(s,f,u,c,l,h,A.x,A.y)&&Ph(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;E&&E.z>=v;){if(E.x>=d&&E.x<=y&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&yS(s,f,u,c,l,h,E.x,E.y)&&Ph(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;A&&A.z<=C;){if(A.x>=d&&A.x<=y&&A.y>=p&&A.y<=b&&A!==i&&A!==o&&yS(s,f,u,c,l,h,A.x,A.y)&&Ph(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function hNt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!p8(i,a)&&G9e(i,n,n.next,a)&&Mk(i,a)&&Mk(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),Ek(n),Ek(n.next),n=e=a),n=n.next}while(n!==e);return hw(n)}function dNt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&wNt(o,s)){var u=H9e(o,s);o=hw(o,o.next),u=hw(u,u.next),Sk(o,t,r,n,i,a,0),Sk(u,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function pNt(e,t,r,n){var i=[],a,o,s,u,l;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=l&&n!==r.x&&yS(io.x||r.x===o.x&&gNt(o,r)))&&(o=r,c=h)),r=r.next;while(r!==u);return o}function gNt(e,t){return Ph(e.prev,e,t.prev)<0&&Ph(t.next,e,e.next)<0}function _Nt(e,t,r,n){var i=e;do i.z===0&&(i.z=RY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,xNt(i)}function xNt(e){var t,r,n,i,a,o,s,u,l=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||u>0&&n;)s!==0&&(u===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,l*=2}while(o>1);return e}function RY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function bNt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function wNt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!ANt(e,t)&&(Mk(e,t)&&Mk(t,e)&&TNt(e,t)&&(Ph(e.prev,e,t.prev)||Ph(e,t.prev,t))||p8(e,t)&&Ph(e.prev,e,e.next)>0&&Ph(t.prev,t,t.next)>0)}function Ph(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function p8(e,t){return e.x===t.x&&e.y===t.y}function G9e(e,t,r,n){var i=h8(Ph(e,t,r)),a=h8(Ph(e,t,n)),o=h8(Ph(r,n,e)),s=h8(Ph(r,n,t));return!!(i!==a&&o!==s||i===0&&c8(e,r,t)||a===0&&c8(e,n,t)||o===0&&c8(r,e,n)||s===0&&c8(r,t,n))}function c8(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function h8(e){return e>0?1:e<0?-1:0}function ANt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&G9e(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Mk(e,t){return Ph(e.prev,e,e.next)<0?Ph(e,t,e.next)>=0&&Ph(e,e.prev,t)>=0:Ph(e,t,e.prev)<0||Ph(e,e.next,t)<0}function TNt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function H9e(e,t){var r=new DY(e.i,e.x,e.y),n=new DY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function U9e(e,t,r,n){var i=new DY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ek(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function DY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}d8.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(FY(e,0,a,r));if(i)for(var s=0,u=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var X9e=we((I_r,j9e)=>{"use strict";var SNt=ow();j9e.exports=MNt;function MNt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=SNt(e,t));for(var n=0;n{"use strict";Z9e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var J9e=we((D_r,K9e)=>{"use strict";K9e.exports=function(){}});var gx=we((F_r,$9e)=>{"use strict";var ENt=J9e()();$9e.exports=function(e){return e!==ENt&&e!==null}});var BY=we((O_r,eOe)=>{"use strict";var kNt=Object.create,CNt=Object.getPrototypeOf,Q9e={};eOe.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||kNt;return typeof e!="function"?!1:CNt(e(t(null),Q9e))===Q9e}});var qY=we((B_r,tOe)=>{"use strict";var LNt=gx(),PNt={function:!0,object:!0};tOe.exports=function(e){return LNt(e)&&PNt[typeof e]||!1}});var c1=we((q_r,rOe)=>{"use strict";var zNt=gx();rOe.exports=function(e){if(!zNt(e))throw new TypeError("Cannot use null or undefined");return e}});var nOe=we((N_r,iOe)=>{"use strict";var NY=Object.create,v8;BY()()||(v8=UY());iOe.exports=(function(){var e,t,r;return!v8||v8.level!==1?NY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(v8,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return NY(n===null?e:n,i)})})()});var UY=we((U_r,aOe)=>{"use strict";var INt=qY(),RNt=c1(),DNt=Object.prototype.isPrototypeOf,FNt=Object.defineProperty,ONt={configurable:!0,enumerable:!1,writable:!0,value:void 0},m8;m8=function(e,t){if(RNt(e),t===null||INt(t))return e;throw new TypeError("Prototype must be null or an object")};aOe.exports=(function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(m8(n,i),i),n}):t=function(n,i){return m8(n,i).__proto__=i,n}:t=function n(i,a){var o;return m8(i,a),o=DNt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&FNt(n.nullPolyfill,"__proto__",ONt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)})());nOe()});var y8=we((V_r,oOe)=>{"use strict";oOe.exports=BY()()?Object.setPrototypeOf:UY()});var lOe=we((G_r,sOe)=>{"use strict";var BNt=qY();sOe.exports=function(e){if(!BNt(e))throw new TypeError(e+" is not an Object");return e}});var fOe=we((H_r,uOe)=>{"use strict";var qNt=Object.create(null),NNt=Math.random;uOe.exports=function(){var e;do e=NNt().toString(36).slice(2);while(qNt[e]);return e}});var dw=we((W_r,cOe)=>{"use strict";var UNt=void 0;cOe.exports=function(e){return e!==UNt&&e!==null}});var g8=we((j_r,hOe)=>{"use strict";var VNt=dw(),GNt={object:!0,function:!0,undefined:!0};hOe.exports=function(e){return VNt(e)?hasOwnProperty.call(GNt,typeof e):!1}});var pOe=we((X_r,dOe)=>{"use strict";var HNt=g8();dOe.exports=function(e){if(!HNt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var mOe=we((Z_r,vOe)=>{"use strict";var WNt=pOe();vOe.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!WNt(e)}});var VY=we((Y_r,yOe)=>{"use strict";var jNt=mOe(),XNt=/^\s*class[\s{/}]/,ZNt=Function.prototype.toString;yOe.exports=function(e){return!(!jNt(e)||XNt.test(ZNt.call(e)))}});var _Oe=we((K_r,gOe)=>{"use strict";gOe.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var bOe=we((J_r,xOe)=>{"use strict";xOe.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var AOe=we(($_r,wOe)=>{"use strict";var YNt=gx(),KNt=Object.keys;wOe.exports=function(e){return KNt(YNt(e)?Object(e):e)}});var SOe=we((Q_r,TOe)=>{"use strict";TOe.exports=bOe()()?Object.keys:AOe()});var EOe=we((exr,MOe)=>{"use strict";var JNt=SOe(),$Nt=c1(),QNt=Math.max;MOe.exports=function(e,t){var r,n,i=QNt(arguments.length,2),a;for(e=Object($Nt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";kOe.exports=_Oe()()?Object.assign:EOe()});var GY=we((rxr,COe)=>{"use strict";var e7t=gx(),t7t=Array.prototype.forEach,r7t=Object.create,i7t=function(e,t){var r;for(r in e)t[r]=e[r]};COe.exports=function(e){var t=r7t(null);return t7t.call(arguments,function(r){e7t(r)&&i7t(Object(r),t)}),t}});var POe=we((ixr,LOe)=>{"use strict";var HY="razdwatrzy";LOe.exports=function(){return typeof HY.contains!="function"?!1:HY.contains("dwa")===!0&&HY.contains("foo")===!1}});var IOe=we((nxr,zOe)=>{"use strict";var n7t=String.prototype.indexOf;zOe.exports=function(e){return n7t.call(this,e,arguments[1])>-1}});var WY=we((axr,ROe)=>{"use strict";ROe.exports=POe()()?String.prototype.contains:IOe()});var h1=we((oxr,BOe)=>{"use strict";var x8=dw(),DOe=VY(),FOe=_8(),OOe=GY(),kk=WY(),a7t=BOe.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],x8(e)?(r=kk.call(e,"c"),n=kk.call(e,"e"),i=kk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?FOe(OOe(a),o):o};a7t.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],x8(t)?DOe(t)?x8(r)?DOe(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,x8(e)?(n=kk.call(e,"c"),i=kk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?FOe(OOe(a),o):o}});var Ck=we((sxr,NOe)=>{"use strict";var qOe=Object.prototype.toString,o7t=qOe.call((function(){return arguments})());NOe.exports=function(e){return qOe.call(e)===o7t}});var Lk=we((lxr,VOe)=>{"use strict";var UOe=Object.prototype.toString,s7t=UOe.call("");VOe.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||UOe.call(e)===s7t)||!1}});var HOe=we((uxr,GOe)=>{"use strict";GOe.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var XOe=we((fxr,jOe)=>{var WOe=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};jOe.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return WOe()}try{return __global__||WOe()}finally{delete Object.prototype.__global__}})()});var Pk=we((cxr,ZOe)=>{"use strict";ZOe.exports=HOe()()?globalThis:XOe()});var KOe=we((hxr,YOe)=>{"use strict";var l7t=Pk(),jY={object:!0,symbol:!0};YOe.exports=function(){var e=l7t.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!jY[typeof e.iterator]||!jY[typeof e.toPrimitive]||!jY[typeof e.toStringTag])}});var $Oe=we((dxr,JOe)=>{"use strict";JOe.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var XY=we((pxr,QOe)=>{"use strict";var u7t=$Oe();QOe.exports=function(e){if(!u7t(e))throw new TypeError(e+" is not a symbol");return e}});var nBe=we((vxr,iBe)=>{"use strict";var eBe=h1(),f7t=Object.create,tBe=Object.defineProperty,c7t=Object.prototype,rBe=f7t(null);iBe.exports=function(e){for(var t=0,r,n;rBe[e+(t||"")];)++t;return e+=t||"",rBe[e]=!0,r="@@"+e,tBe(c7t,r,eBe.gs(null,function(i){n||(n=!0,tBe(this,r,eBe(i)),n=!1)})),r}});var oBe=we((mxr,aBe)=>{"use strict";var ry=h1(),Xh=Pk().Symbol;aBe.exports=function(e){return Object.defineProperties(e,{hasInstance:ry("",Xh&&Xh.hasInstance||e("hasInstance")),isConcatSpreadable:ry("",Xh&&Xh.isConcatSpreadable||e("isConcatSpreadable")),iterator:ry("",Xh&&Xh.iterator||e("iterator")),match:ry("",Xh&&Xh.match||e("match")),replace:ry("",Xh&&Xh.replace||e("replace")),search:ry("",Xh&&Xh.search||e("search")),species:ry("",Xh&&Xh.species||e("species")),split:ry("",Xh&&Xh.split||e("split")),toPrimitive:ry("",Xh&&Xh.toPrimitive||e("toPrimitive")),toStringTag:ry("",Xh&&Xh.toStringTag||e("toStringTag")),unscopables:ry("",Xh&&Xh.unscopables||e("unscopables"))})}});var uBe=we((yxr,lBe)=>{"use strict";var sBe=h1(),h7t=XY(),zk=Object.create(null);lBe.exports=function(e){return Object.defineProperties(e,{for:sBe(function(t){return zk[t]?zk[t]:zk[t]=e(String(t))}),keyFor:sBe(function(t){var r;h7t(t);for(r in zk)if(zk[r]===t)return r})})}});var hBe=we((gxr,cBe)=>{"use strict";var ig=h1(),ZY=XY(),b8=Pk().Symbol,d7t=nBe(),p7t=oBe(),v7t=uBe(),m7t=Object.create,YY=Object.defineProperties,w8=Object.defineProperty,Xp,gS,fBe;if(typeof b8=="function")try{String(b8()),fBe=!0}catch(e){}else b8=null;gS=function(t){if(this instanceof gS)throw new TypeError("Symbol is not a constructor");return Xp(t)};cBe.exports=Xp=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return fBe?b8(t):(r=m7t(gS.prototype),t=t===void 0?"":String(t),YY(r,{__description__:ig("",t),__name__:ig("",d7t(t))}))};p7t(Xp);v7t(Xp);YY(gS.prototype,{constructor:ig(Xp),toString:ig("",function(){return this.__name__})});YY(Xp.prototype,{toString:ig(function(){return"Symbol ("+ZY(this).__description__+")"}),valueOf:ig(function(){return ZY(this)})});w8(Xp.prototype,Xp.toPrimitive,ig("",function(){var e=ZY(this);return typeof e=="symbol"?e:e.toString()}));w8(Xp.prototype,Xp.toStringTag,ig("c","Symbol"));w8(gS.prototype,Xp.toStringTag,ig("c",Xp.prototype[Xp.toStringTag]));w8(gS.prototype,Xp.toPrimitive,ig("c",Xp.prototype[Xp.toPrimitive]))});var _x=we((_xr,dBe)=>{"use strict";dBe.exports=KOe()()?Pk().Symbol:hBe()});var vBe=we((xxr,pBe)=>{"use strict";var y7t=c1();pBe.exports=function(){return y7t(this).length=0,this}});var _S=we((bxr,mBe)=>{"use strict";mBe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var gBe=we((wxr,yBe)=>{"use strict";var g7t=dw(),_7t=g8(),x7t=Object.prototype.toString;yBe.exports=function(e){if(!g7t(e))return null;if(_7t(e)){var t=e.toString;if(typeof t!="function"||t===x7t)return null}try{return""+e}catch(r){return null}}});var xBe=we((Axr,_Be)=>{"use strict";_Be.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var wBe=we((Txr,bBe)=>{"use strict";var b7t=xBe(),w7t=/[\n\r\u2028\u2029]/g;bBe.exports=function(e){var t=b7t(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(w7t,function(r){switch(r){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var KY=we((Sxr,SBe)=>{"use strict";var ABe=dw(),A7t=g8(),T7t=gBe(),S7t=wBe(),TBe=function(e,t){return e.replace("%v",S7t(t))};SBe.exports=function(e,t,r){if(!A7t(r))throw new TypeError(TBe(t,e));if(!ABe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=T7t(r.errorMessage);throw ABe(n)||(n=t),new TypeError(TBe(n,e))}});var EBe=we((Mxr,MBe)=>{"use strict";var M7t=KY(),E7t=dw();MBe.exports=function(e){return E7t(e)?e:M7t(e,"Cannot use %v",arguments[1])}});var CBe=we((Exr,kBe)=>{"use strict";var k7t=KY(),C7t=VY();kBe.exports=function(e){return C7t(e)?e:k7t(e,"%v is not a plain function",arguments[1])}});var PBe=we((kxr,LBe)=>{"use strict";LBe.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var IBe=we((Cxr,zBe)=>{"use strict";var L7t=Object.prototype.toString,P7t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);zBe.exports=function(e){return typeof e=="function"&&P7t(L7t.call(e))}});var DBe=we((Lxr,RBe)=>{"use strict";RBe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var OBe=we((Pxr,FBe)=>{"use strict";FBe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var qBe=we((zxr,BBe)=>{"use strict";BBe.exports=DBe()()?Math.sign:OBe()});var UBe=we((Ixr,NBe)=>{"use strict";var z7t=qBe(),I7t=Math.abs,R7t=Math.floor;NBe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:z7t(e)*R7t(I7t(e)))}});var GBe=we((Rxr,VBe)=>{"use strict";var D7t=UBe(),F7t=Math.max;VBe.exports=function(e){return F7t(0,D7t(e))}});var XBe=we((Dxr,jBe)=>{"use strict";var O7t=_x().iterator,B7t=Ck(),q7t=IBe(),N7t=GBe(),HBe=_S(),U7t=c1(),V7t=gx(),G7t=Lk(),WBe=Array.isArray,JY=Function.prototype.call,pw={configurable:!0,enumerable:!0,writable:!0,value:null},$Y=Object.defineProperty;jBe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,u,l,f,c,h;if(e=Object(U7t(e)),V7t(t)&&HBe(t),!this||this===Array||!q7t(this)){if(!t){if(B7t(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(WBe(e)){for(o=new Array(s=e.length),i=0;i=55296&&u<=56319&&(h+=e[++i])),h=t?JY.call(t,r,h,a):h,n?(pw.value=h,$Y(o,a,pw)):o[a]=h,++a;s=a}}if(s===void 0)for(s=N7t(e.length),n&&(o=new n(s)),i=0;i{"use strict";ZBe.exports=PBe()()?Array.from:XBe()});var JBe=we((Oxr,KBe)=>{"use strict";var H7t=YBe(),W7t=_8(),j7t=c1();KBe.exports=function(e){var t=Object(j7t(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?H7t(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):W7t(i,e),i}});var eqe=we((Bxr,QBe)=>{"use strict";var X7t=_S(),Z7t=c1(),Y7t=Function.prototype.bind,$Be=Function.prototype.call,K7t=Object.keys,J7t=Object.prototype.propertyIsEnumerable;QBe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(Z7t(r)),X7t(n),i=K7t(r),o&&i.sort(typeof o=="function"?Y7t.call(o,r):void 0),typeof e!="function"&&(e=i[e]),$Be.call(e,i,function(s,u){return J7t.call(r,s)?$Be.call(n,a,r[s],s,r,u):t})}}});var rqe=we((qxr,tqe)=>{"use strict";tqe.exports=eqe()("forEach")});var nqe=we((Nxr,iqe)=>{"use strict";var $7t=_S(),Q7t=rqe(),eUt=Function.prototype.call;iqe.exports=function(e,t){var r={},n=arguments[2];return $7t(t),Q7t(e,function(i,a,o,s){r[a]=eUt.call(t,n,i,a,o,s)}),r}});var lqe=we((Uxr,sqe)=>{"use strict";var tUt=dw(),rUt=EBe(),aqe=CBe(),iUt=JBe(),nUt=GY(),aUt=nqe(),oUt=Function.prototype.bind,sUt=Object.defineProperty,lUt=Object.prototype.hasOwnProperty,oqe;oqe=function(e,t,r){var n=rUt(t)&&aqe(t.value),i;return i=iUt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&lUt.call(this,e)?n:(t.value=oUt.call(n,r.resolveContext?r.resolveContext(this):this),sUt(this,e,t),this[e])},i};sqe.exports=function(e){var t=nUt(arguments[1]);return tUt(t.resolveContext)&&aqe(t.resolveContext),aUt(e,function(r,n){return oqe(n,r,t)})}});var QY=we((Vxr,hqe)=>{"use strict";var uUt=vBe(),fUt=_8(),cUt=_S(),hUt=c1(),Bv=h1(),dUt=lqe(),uqe=_x(),fqe=Object.defineProperty,cqe=Object.defineProperties,Ik;hqe.exports=Ik=function(e,t){if(!(this instanceof Ik))throw new TypeError("Constructor requires 'new'");cqe(this,{__list__:Bv("w",hUt(e)),__context__:Bv("w",t),__nextIndex__:Bv("w",0)}),t&&(cUt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete Ik.prototype.constructor;cqe(Ik.prototype,fUt({_next:Bv(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){fqe(this,"__redo__",Bv("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Bv(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Bv(function(){this.__redo__&&uUt.call(this.__redo__),this.__nextIndex__=0})})));fqe(Ik.prototype,uqe.iterator,Bv(function(){return this}))});var yqe=we((Gxr,mqe)=>{"use strict";var dqe=y8(),pqe=WY(),eK=h1(),pUt=_x(),tK=QY(),vqe=Object.defineProperty,xS;xS=mqe.exports=function(e,t){if(!(this instanceof xS))throw new TypeError("Constructor requires 'new'");tK.call(this,e),t?pqe.call(t,"key+value")?t="key+value":pqe.call(t,"key")?t="key":t="value":t="value",vqe(this,"__kind__",eK("",t))};dqe&&dqe(xS,tK);delete xS.prototype.constructor;xS.prototype=Object.create(tK.prototype,{_resolve:eK(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});vqe(xS.prototype,pUt.toStringTag,eK("c","Array Iterator"))});var bqe=we((Hxr,xqe)=>{"use strict";var gqe=y8(),A8=h1(),vUt=_x(),rK=QY(),_qe=Object.defineProperty,bS;bS=xqe.exports=function(e){if(!(this instanceof bS))throw new TypeError("Constructor requires 'new'");e=String(e),rK.call(this,e),_qe(this,"__length__",A8("",e.length))};gqe&&gqe(bS,rK);delete bS.prototype.constructor;bS.prototype=Object.create(rK.prototype,{_next:A8(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});_qe(bS.prototype,vUt.toStringTag,A8("c","String Iterator"))});var Aqe=we((Wxr,wqe)=>{"use strict";var mUt=Ck(),yUt=gx(),gUt=Lk(),_Ut=_x().iterator,xUt=Array.isArray;wqe.exports=function(e){return yUt(e)?xUt(e)||gUt(e)||mUt(e)?!0:typeof e[_Ut]=="function":!1}});var Sqe=we((jxr,Tqe)=>{"use strict";var bUt=Aqe();Tqe.exports=function(e){if(!bUt(e))throw new TypeError(e+" is not iterable");return e}});var iK=we((Xxr,kqe)=>{"use strict";var wUt=Ck(),AUt=Lk(),Mqe=yqe(),TUt=bqe(),SUt=Sqe(),Eqe=_x().iterator;kqe.exports=function(e){return typeof SUt(e)[Eqe]=="function"?e[Eqe]():wUt(e)?new Mqe(e):AUt(e)?new TUt(e):new Mqe(e)}});var Lqe=we((Zxr,Cqe)=>{"use strict";var MUt=Ck(),EUt=_S(),kUt=Lk(),CUt=iK(),LUt=Array.isArray,nK=Function.prototype.call,PUt=Array.prototype.some;Cqe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,u,l,f;if(LUt(e)||MUt(e)?r="array":kUt(e)?r="string":e=CUt(e),EUt(t),a=function(){o=!0},r==="array"){PUt.call(e,function(c){return nK.call(t,n,c,a),o});return}if(r==="string"){for(u=e.length,s=0;s=55296&&f<=56319&&(l+=e[++s])),nK.call(t,n,l,a),!o);++s);return}for(i=e.next();!i.done;){if(nK.call(t,n,i.value,a),o)return;i=e.next()}}});var zqe=we((Yxr,Pqe)=>{"use strict";Pqe.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var Dqe=we((Kxr,Rqe)=>{"use strict";var zUt=gx(),S8=y8(),T8=lOe(),IUt=c1(),RUt=fOe(),d1=h1(),DUt=iK(),FUt=Lqe(),OUt=_x().toStringTag,Iqe=zqe(),BUt=Array.isArray,oK=Object.defineProperty,aK=Object.prototype.hasOwnProperty,qUt=Object.getPrototypeOf,xx;Rqe.exports=xx=function(){var e=arguments[0],t;if(!(this instanceof xx))throw new TypeError("Constructor requires 'new'");return t=Iqe&&S8&&WeakMap!==xx?S8(new WeakMap,qUt(this)):this,zUt(e)&&(BUt(e)||(e=DUt(e))),oK(t,"__weakMapData__",d1("c","$weakMap$"+RUt())),e&&FUt(e,function(r){IUt(r),t.set(r[0],r[1])}),t};Iqe&&(S8&&S8(xx,WeakMap),xx.prototype=Object.create(WeakMap.prototype,{constructor:d1(xx)}));Object.defineProperties(xx.prototype,{delete:d1(function(e){return aK.call(T8(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:d1(function(e){if(aK.call(T8(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:d1(function(e){return aK.call(T8(e),this.__weakMapData__)}),set:d1(function(e,t){return oK(T8(e),this.__weakMapData__,d1("c",t)),this}),toString:d1(function(){return"[object WeakMap]"})});oK(xx.prototype,OUt,d1("c","WeakMap"))});var sK=we((Jxr,Fqe)=>{"use strict";Fqe.exports=Y9e()()?WeakMap:Dqe()});var Bqe=we(($xr,Oqe)=>{"use strict";Oqe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var M8=lx(),NUt=ow(),uK=jh(),UUt=rg(),VUt=sw(),qqe=W9e(),GUt=X9e(),{float32:HUt,fract32:lK}=l8(),WUt=sK(),Nqe=fS(),jUt=Bqe(),XUt=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2247,7 +2247,7 @@ void main() { fragColor = color / 255.; } -`,PUt=` +`,ZUt=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -2265,7 +2265,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,zUt=` +`,YUt=` precision highp float; attribute vec2 position, positionFract; @@ -2293,14 +2293,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,IUt=` +`,KUt=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,DUt=` +`,JUt=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2504,7 +2504,7 @@ void main() { } } } -`,RUt=` +`,$Ut=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -2584,7 +2584,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;Fqe.exports=Oc;function Oc(e,t){if(!(this instanceof Oc))return new Oc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Oc.shaders.has(e)?Oc.shaders.get(e):Oc.shaders.set(e,Oc.createShaders(e)).get(e),this.update(t)}Oc.dashMult=2;Oc.maxPatternLength=256;Oc.precisionThreshold=3e6;Oc.maxPoints=1e4;Oc.maxLines=2048;Oc.shaders=new kUt;Oc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(oK({vert:LUt,frag:PUt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(oK({cull:{enable:!0,face:"back"},vert:DUt,frag:RUt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:zUt,frag:IUt,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Oc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Oc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Oc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Oc.precisionThreshold||t.scale[1]*t.viewport.height>Oc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Oc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Oc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=TUt(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=oK({},Oc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-x),C=[],M=0,A=o.hole!=null?o.hole[0]:null;if(A!=null){let L=CUt(v,x=>x>=A);v=v.slice(0,L),v.push(A)}for(let L=0;Lm-A+(v[L]-M)),S=Dqe(x,k);S=S.map(m=>m+M+(m+M{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var Uqe=we((Fxr,Nqe)=>{"use strict";var FUt=nw(),OUt=sx(),BUt=kY(),qUt=tg(),Oqe=jh(),Bqe=aw(),{float32:NUt,fract32:lK}=o9();Nqe.exports=UUt;var qqe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function UUt(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,u,l={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),u=e.buffer({usage:"static",type:"float",data:qqe}),p(t),n=e({vert:` +`;Uqe.exports=Oc;function Oc(e,t){if(!(this instanceof Oc))return new Oc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Oc.shaders.has(e)?Oc.shaders.get(e):Oc.shaders.set(e,Oc.createShaders(e)).get(e),this.update(t)}Oc.dashMult=2;Oc.maxPatternLength=256;Oc.precisionThreshold=3e6;Oc.maxPoints=1e4;Oc.maxLines=2048;Oc.shaders=new WUt;Oc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(uK({vert:XUt,frag:ZUt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(uK({cull:{enable:!0,face:"back"},vert:JUt,frag:$Ut,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:YUt,frag:KUt,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Oc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Oc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Oc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Oc.precisionThreshold||t.scale[1]*t.viewport.height>Oc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Oc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Oc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=UUt(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=uK({},Oc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-x),C=[],E=0,A=o.hole!=null?o.hole[0]:null;if(A!=null){let L=jUt(v,x=>x>=A);v=v.slice(0,L),v.push(A)}for(let L=0;Lm-A+(v[L]-E)),S=qqe(x,k);S=S.map(m=>m+E+(m+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var jqe=we((ebr,Wqe)=>{"use strict";var QUt=ow(),eVt=lx(),tVt=PY(),rVt=rg(),Vqe=jh(),Gqe=sw(),{float32:iVt,fract32:cK}=l8();Wqe.exports=nVt;var Hqe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function nVt(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,u,l={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),u=e.buffer({usage:"static",type:"float",data:Hqe}),p(t),n=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -2628,10 +2628,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,v)=>[v.viewport.x,v.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,v)=>v.offset*4,divisor:1},position:{buffer:i,offset:(b,v)=>v.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,v)=>v.offset*8,divisor:1},error:{buffer:s,offset:(b,v)=>v.offset*16,divisor:1},direction:{buffer:u,stride:24,offset:0},lineOffset:{buffer:u,stride:24,offset:8},capOffset:{buffer:u,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:qqe.length}),Oqe(c,{update:p,draw:h,destroy:y,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(b){b?p(b):b===null&&y(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),f.forEach((v,C)=>{if(v){if(b&&(b[C]?v.draw=!0:v.draw=!1),!v.draw){v.draw=!0;return}d(C)}})}function d(b){typeof b=="number"&&(b=f[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function p(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let v=0,C=0;if(c.groups=f=b.map((L,x)=>{let k=f[x];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return k;return L=qUt(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),k||(f[x]=k={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=Oqe({},l,L)),BUt(k,L,[{lineWidth:S=>+S*.5,capSize:S=>+S*.5,opacity:parseFloat,errors:S=>(S=Bqe(S),C+=S.length,S),positions:(S,m)=>(S=Bqe(S,"float64"),m.count=Math.floor(S.length/2),m.bounds=FUt(S,2),m.offset=v,v+=m.count,S)},{color:(S,m)=>{let P=m.count;if(S||(S="transparent"),!Array.isArray(S)||typeof S[0]=="number"){let O=S;S=Array(P);for(let F=0;F{let E=m.bounds;return S||(S=E),m.scale=[1/(S[2]-S[0]),1/(S[3]-S[1])],m.translate=[-S[0],-S[1]],m.scaleFract=lK(m.scale),m.translateFract=lK(m.translate),S},viewport:S=>{let m;return Array.isArray(S)?m={x:S[0],y:S[1],width:S[2]-S[0],height:S[3]-S[1]}:S?(m={x:S.x||S.left||0,y:S.y||S.top||0},S.right?m.width=S.right-m.x:m.width=S.w||S.width||0,S.bottom?m.height=S.bottom-m.y:m.height=S.h||S.height||0):m={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},m}}]),k}),v||C){let L=f.reduce((m,P,E)=>m+(P?P.count:0),0),x=new Float64Array(L*2),k=new Uint8Array(L*4),S=new Float32Array(L*4);f.forEach((m,P)=>{if(!m)return;let{positions:E,count:O,offset:F,color:U,errors:G}=m;O&&(k.set(U,F*4),S.set(G,F*4),x.set(E,F*2))});var M=NUt(x);i(M);var A=lK(x,M);a(A),o(k),s(S)}}function y(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),u.destroy()}}});var Hqe=we((Oxr,Gqe)=>{var Vqe=/[\'\"]/;Gqe.exports=function(t){return t?(Vqe.test(t.charAt(0))&&(t=t.substr(1)),Vqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var uK=we((Bxr,VUt)=>{VUt.exports=["inherit","initial","unset"]});var fK=we((qxr,GUt)=>{GUt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var cK=we((Nxr,HUt)=>{HUt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var hK=we((Uxr,WUt)=>{WUt.exports=["normal","italic","oblique"]});var dK=we((Vxr,jUt)=>{jUt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var Zqe=we((Gxr,Xqe)=>{"use strict";function Wqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(u){var l=new RegExp(["\\",u[0],"[^\\",u[0],"\\",u[1],"]*\\",u[1]].join("")),f=[];function c(h,d,p){var y=r.push(h.slice(u[0].length,-u[1].length))-1;return f.push(y),i+y+i}r.forEach(function(h,d){for(var p,y=0;h!=p;)if(p=h,h=h.replace(l,c),y++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),f=f.reverse(),r=r.map(function(h){return f.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),u[0]+"$1"+u[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(u,l,f){for(var c=[],h,d=0;h=o.exec(u);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(u.slice(0,h.index)),c.push(s(l[h[1]],l)),u=u.slice(h.index+h[0].length)}return c.push(u),c}return a?r:s(r[0],r)}function jqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function u(l,f){return Array.isArray(f)&&(f=f.reduce(u,"")),l+f},"");function s(u,l){if(e[l]==null)throw Error("Reference "+l+"is undefined");return e[l]}}function pK(e,t){return Array.isArray(e)?jqe(e,t):Wqe(e,t)}pK.parse=Wqe;pK.stringify=jqe;Xqe.exports=pK});var Jqe=we((Hxr,Kqe)=>{"use strict";var Yqe=Zqe();Kqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var i=Yqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],u=0;u{XUt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var vK=we((jxr,Qqe)=>{"use strict";var ZUt=$qe();Qqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||ZUt.indexOf(t)!==-1}}});var iNe=we((Xxr,rNe)=>{"use strict";var YUt=Hqe(),KUt=uK(),JUt=fK(),$Ut=cK(),QUt=hK(),eVt=dK(),mK=Jqe(),tVt=vK().isSize;rNe.exports=tNe;var zk=tNe.cache={};function tNe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(zk[e])return zk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(JUt.indexOf(e)!==-1)return zk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=mK(e,/\s+/),n;n=r.shift();){if(KUt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),zk[e]=t;if(QUt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(eVt.indexOf(n)!==-1){t.stretch=n;continue}if($Ut.indexOf(n)!==-1){t.weight=n;continue}if(tVt(n)){var i=mK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=eNe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=eNe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=mK(r.join(" "),/\s*,\s*/).map(YUt),zk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function eNe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var gK=we((Zxr,nNe)=>{"use strict";var rVt=tg(),iVt=vK().isSize,nVt=Dk(uK()),aVt=Dk(fK()),oVt=Dk(cK()),sVt=Dk(hK()),lVt=Dk(dK()),uVt={normal:1,"small-caps":1},fVt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},yK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};nNe.exports=function(t){if(t=rVt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&Ik(t.system,aVt),t.system;if(Ik(t.style,sVt),Ik(t.variant,uVt),Ik(t.weight,oVt),Ik(t.stretch,lVt),t.size==null&&(t.size=yK.size),typeof t.size=="number"&&(t.size+="px"),!iVt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=yK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[yK.family]),t.family=t.family.map(function(n){return fVt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function Ik(e,t){if(e&&!t[e]&&!nVt[e])throw Error("Unknown keyword `"+e+"`");return e}function Dk(e){for(var t={},r=0;r{"use strict";aNe.exports={parse:iNe(),stringify:gK()}});var sNe=we((_K,xK)=>{(function(e,t){typeof _K=="object"&&typeof xK!="undefined"?xK.exports=t():e.createREGL=t()})(_K,function(){"use strict";var e=function(Fe,Bt){for(var tr=Object.keys(Bt),Qr=0;Qr1&&Bt===tr&&(Bt==='"'||Bt==="'"))return['"'+o(Fe.substr(1,Fe.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Fe);if(Qr)return s(Fe.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Fe.substr(Qr.index+Qr[0].length)));var vi=Fe.split(".");if(vi.length===1)return['"'+o(Fe)+'"'];for(var fi=[],di=0;di65535)<<4,Fe>>>=Bt,tr=(Fe>255)<<3,Fe>>>=tr,Bt|=tr,tr=(Fe>15)<<2,Fe>>>=tr,Bt|=tr,tr=(Fe>3)<<1,Fe>>>=tr,Bt|=tr,Bt|Fe>>1}function N(){var Fe=S(8,function(){return[]});function Bt(fi){var di=j(fi),nn=Fe[W(di)>>2];return nn.length>0?nn.pop():new ArrayBuffer(di)}function tr(fi){Fe[W(fi.byteLength)>>2].push(fi)}function Qr(fi,di){var nn=null;switch(fi){case m:nn=new Int8Array(Bt(di),0,di);break;case P:nn=new Uint8Array(Bt(di),0,di);break;case E:nn=new Int16Array(Bt(2*di),0,di);break;case O:nn=new Uint16Array(Bt(2*di),0,di);break;case F:nn=new Int32Array(Bt(4*di),0,di);break;case U:nn=new Uint32Array(Bt(4*di),0,di);break;case G:nn=new Float32Array(Bt(4*di),0,di);break;default:return null}return nn.length!==di?nn.subarray(0,di):nn}function vi(fi){tr(fi.buffer)}return{alloc:Bt,free:tr,allocType:Qr,freeType:vi}}var H=N();H.zero=N();var re=3408,ae=3410,me=3411,Le=3412,Ce=3413,de=3414,te=3415,Se=33901,Te=33902,be=3379,He=3386,Ie=34921,ge=36347,Be=36348,ce=35661,je=35660,rt=34930,bt=36349,Ot=34076,it=34024,Ke=7936,zt=7937,Mt=7938,kt=35724,$e=34047,De=36063,Me=34852,oe=3553,Ne=34067,vt=34069,lt=33984,We=6408,Ve=5126,et=5121,tt=36160,Lt=36053,jt=36064,or=16384,yr=function(Fe,Bt){var tr=1;Bt.ext_texture_filter_anisotropic&&(tr=Fe.getParameter($e));var Qr=1,vi=1;Bt.webgl_draw_buffers&&(Qr=Fe.getParameter(Me),vi=Fe.getParameter(De));var fi=!!Bt.oes_texture_float;if(fi){var di=Fe.createTexture();Fe.bindTexture(oe,di),Fe.texImage2D(oe,0,We,1,1,0,We,Ve,null);var nn=Fe.createFramebuffer();if(Fe.bindFramebuffer(tt,nn),Fe.framebufferTexture2D(tt,jt,oe,di,0),Fe.bindTexture(oe,null),Fe.checkFramebufferStatus(tt)!==Lt)fi=!1;else{Fe.viewport(0,0,1,1),Fe.clearColor(1,0,0,1),Fe.clear(or);var On=H.allocType(Ve,4);Fe.readPixels(0,0,1,1,We,Ve,On),Fe.getError()?fi=!1:(Fe.deleteFramebuffer(nn),Fe.deleteTexture(di),fi=On[0]===1),H.freeType(On)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Fe.createTexture(),ua=H.allocType(et,36);Fe.activeTexture(lt),Fe.bindTexture(Ne,Ls),Fe.texImage2D(vt,0,We,3,3,0,We,et,ua),H.freeType(ua),Fe.bindTexture(Ne,null),Fe.deleteTexture(Ls),wn=!Fe.getError()}return{colorBits:[Fe.getParameter(ae),Fe.getParameter(me),Fe.getParameter(Le),Fe.getParameter(Ce)],depthBits:Fe.getParameter(de),stencilBits:Fe.getParameter(te),subpixelBits:Fe.getParameter(re),extensions:Object.keys(Bt).filter(function(Hn){return!!Bt[Hn]}),maxAnisotropic:tr,maxDrawbuffers:Qr,maxColorAttachments:vi,pointSizeDims:Fe.getParameter(Se),lineWidthDims:Fe.getParameter(Te),maxViewportDims:Fe.getParameter(He),maxCombinedTextureUnits:Fe.getParameter(ce),maxCubeMapSize:Fe.getParameter(Ot),maxRenderbufferSize:Fe.getParameter(it),maxTextureUnits:Fe.getParameter(rt),maxTextureSize:Fe.getParameter(be),maxAttributes:Fe.getParameter(Ie),maxVertexUniforms:Fe.getParameter(ge),maxVertexTextureUnits:Fe.getParameter(je),maxVaryingVectors:Fe.getParameter(Be),maxFragmentUniforms:Fe.getParameter(bt),glsl:Fe.getParameter(kt),renderer:Fe.getParameter(zt),vendor:Fe.getParameter(Ke),version:Fe.getParameter(Mt),readFloat:fi,npotTextureCube:wn}},vr=function(Fe){return Fe instanceof Uint8Array||Fe instanceof Uint16Array||Fe instanceof Uint32Array||Fe instanceof Int8Array||Fe instanceof Int16Array||Fe instanceof Int32Array||Fe instanceof Float32Array||Fe instanceof Float64Array||Fe instanceof Uint8ClampedArray};function Vt(Fe){return!!Fe&&typeof Fe=="object"&&Array.isArray(Fe.shape)&&Array.isArray(Fe.stride)&&typeof Fe.offset=="number"&&Fe.shape.length===Fe.stride.length&&(Array.isArray(Fe.data)||vr(Fe.data))}var Pe=function(Fe){return Object.keys(Fe).map(function(Bt){return Fe[Bt]})},xe={shape:gt,flatten:st};function Oe(Fe,Bt,tr){for(var Qr=0;Qr0){var hs;if(Array.isArray(gi[0])){Kn=qr(gi);for(var Ji=1,Ui=1;Ui0){if(typeof Ji[0]=="number"){var Bn=H.allocType(Zi.dtype,Ji.length);mr(Bn,Ji),Kn(Bn,ro),H.freeType(Bn)}else if(Array.isArray(Ji[0])||vr(Ji[0])){na=qr(Ji);var In=hn(Ji,na,Zi.dtype);Kn(In,ro),H.freeType(In)}}}else if(Vt(Ji)){na=Ji.shape;var Va=Ji.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var al=Array.isArray(Ji.data)?Zi.dtype:Nt(Ji.data),pl=H.allocType(al,_s*ul);Lr(pl,Ji.data,_s,ul,Qn,Mo,Ji.offset),Kn(pl,ro),H.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Zi,ga.subdata=hs,tr.profile&&(ga.stats=Zi.stats),ga.destroy=function(){ua(Zi)},ga}function Ni(){Pe(fi).forEach(function(Wr){Wr.buffer=Fe.createBuffer(),Fe.bindBuffer(Wr.type,Wr.buffer),Fe.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return tr.profile&&(Bt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(gi){Wr+=fi[gi].stats.size}),Wr}),{create:Hn,createStream:On,destroyStream:Ln,clear:function(){Pe(fi).forEach(ua),nn.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof di?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Fr=0,Gr=0,Hr=1,mi=1,Ei=4,Vi=4,ti={points:Fr,point:Gr,lines:Hr,line:mi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Qi=0,Yr=1,oi=4,Fi=5120,rn=5121,tn=5122,Ri=5123,Ii=5124,xn=5125,xi=34963,Xr=35040,dt=35044;function $t(Fe,Bt,tr,Qr){var vi={},fi=0,di={uint8:rn,uint16:Ri};Bt.oes_element_index_uint&&(di.uint32=xn);function nn(Ni){this.id=fi++,vi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}nn.prototype.bind=function(){this.buffer.bind()};var On=[];function Ln(Ni){var Wr=On.pop();return Wr||(Wr=new nn(tr.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){On.push(Ni)}function Ls(Ni,Wr,gi,dn,En,Zi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!vr(Wr)||Vt(Wr)&&!vr(Wr.data))&&(hs=Bt.oes_element_index_uint?xn:Ri),tr._initBuffer(Ni.buffer,Wr,gi,hs,3)}else Fe.bufferData(xi,Zi,gi),Ni.buffer.dtype=Kn||rn,Ni.buffer.usage=gi,Ni.buffer.dimension=3,Ni.buffer.byteLength=Zi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case rn:case Fi:Kn=rn;break;case Ri:case tn:Kn=Ri;break;case xn:case Ii:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var Ji=En;Ji<0&&(Ji=Ni.buffer.byteLength,Kn===Ri?Ji>>=1:Kn===xn&&(Ji>>=2)),Ni.vertCount=Ji;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=Qi),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete vi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var gi=tr.create(null,xi,!0),dn=new nn(gi._buffer);Qr.elementsCount++;function En(Zi){if(!Zi)gi(),dn.primType=oi,dn.vertCount=0,dn.type=rn;else if(typeof Zi=="number")gi(Zi),dn.primType=oi,dn.vertCount=Zi|0,dn.type=rn;else{var ga=null,Kn=dt,hs=-1,Ji=-1,Ui=0,ro=0;Array.isArray(Zi)||vr(Zi)||Vt(Zi)?ga=Zi:("data"in Zi&&(ga=Zi.data),"usage"in Zi&&(Kn=ln[Zi.usage]),"primitive"in Zi&&(hs=ti[Zi.primitive]),"count"in Zi&&(Ji=Zi.count|0),"type"in Zi&&(ro=di[Zi.type]),"length"in Zi?Ui=Zi.length|0:(Ui=Ji,ro===Ri||ro===tn?Ui*=2:(ro===xn||ro===Ii)&&(Ui*=4))),Ls(dn,ga,Kn,hs,Ji,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Zi,ga){return gi.subdata(Zi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof nn?Ni._elements:null},clear:function(){Pe(vi).forEach(ua)}}}var fr=new Float32Array(1),gr=new Uint32Array(fr.buffer),Zr=5123;function wi(Fe){for(var Bt=H.allocType(Zr,Fe.length),tr=0;tr>>31<<15,fi=(Qr<<1>>>24)-127,di=Qr>>13&1023;if(fi<-24)Bt[tr]=vi;else if(fi<-14){var nn=-14-fi;Bt[tr]=vi+(di+1024>>nn)}else fi>15?Bt[tr]=vi+31744:Bt[tr]=vi+(fi+15<<10)+di}return Bt}function $i(Fe){return Array.isArray(Fe)||vr(Fe)}var ni=34467,Xi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,Wi=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Oa=5121,Ko=5123,Qo=5125,Hi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Ba=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Da=33984,Xn=[mo,jn,No,Go],sn=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Fe){return"[object "+Fe+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(xt).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Oa]=1,Na[Hi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var en=[];en[so]=2,en[Kr]=2,en[Ia]=2,en[uo]=4,en[mn]=.5,en[ra]=.5,en[wa]=1,en[ws]=1,en[Co]=.5,en[Po]=1,en[Wi]=1,en[gn]=.5,en[Ps]=.25,en[Ha]=.5,en[Sn]=.25,en[ao]=.5;function Pa(Fe){return Array.isArray(Fe)&&(Fe.length===0||typeof Fe[0]=="number")}function to(Fe){if(!Array.isArray(Fe))return!1;var Bt=Fe.length;return!(Bt===0||!$i(Fe[0]))}function yo(Fe){return Object.prototype.toString.call(Fe)}function Jo(Fe){return yo(Fe)===qn}function Ao(Fe){return yo(Fe)===Eo}function Rn(Fe){return yo(Fe)===Ja}function _a(Fe){return yo(Fe)===lo}function Ws(Fe){return yo(Fe)===eo}function Ca(Fe){return yo(Fe)===sa}function Es(Fe){if(!Fe)return!1;var Bt=yo(Fe);return es.indexOf(Bt)>=0?!0:Pa(Fe)||to(Fe)||Vt(Fe)}function Ts(Fe){return xt[Object.prototype.toString.call(Fe)]|0}function Ho(Fe,Bt){var tr=Bt.length;switch(Fe.type){case Oa:case Ko:case Qo:case Hi:var Qr=H.allocType(Fe.type,tr);Qr.set(Bt),Fe.data=Qr;break;case fo:Fe.data=wi(Bt);break;default:}}function Wa(Fe,Bt){return H.allocType(Fe.type===fo?Hi:Fe.type,Bt)}function To(Fe,Bt){Fe.type===fo?(Fe.data=wi(Bt),H.freeType(Bt)):Fe.data=Bt}function ts(Fe,Bt,tr,Qr,vi,fi){for(var di=Fe.width,nn=Fe.height,On=Fe.channels,Ln=di*nn*On,wn=Wa(Fe,Ln),Ls=0,ua=0;ua=1;)nn+=di*On*On,On/=2;return nn}else return di*tr*Qr}function qa(Fe,Bt,tr,Qr,vi,fi,di){var nn={"don't care":qs,"dont care":qs,nice:Ba,fast:Ns},On={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Oa,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};Bt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),Bt.oes_texture_float&&(ua.float32=ua.float=Hi),Bt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),Bt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),Bt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),Bt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":Wi}),Bt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),Bt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Fe.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Ee=Ni[ne];Wr.indexOf(Ee)>=0&&(Hn[ne]=Ee)});var gi=Object.keys(Hn);tr.textureFormats=gi;var dn=[];Object.keys(Hn).forEach(function(ne){var Ee=Hn[ne];dn[Ee]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Ee=ua[ne];En[Ee]=ne});var Zi=[];Object.keys(Ln).forEach(function(ne){var Ee=Ln[ne];Zi[Ee]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Ee=wn[ne];ga[Ee]=ne});var Kn=[];Object.keys(On).forEach(function(ne){var Ee=On[ne];Kn[Ee]=ne});var hs=gi.reduce(function(ne,Ee){var Je=Hn[Ee];return Je===oa||Je===Ga||Je===oa||Je===ka||Je===ys||Je===uo||Bt.ext_srgb&&(Je===ls||Je===$a)?ne[Je]=Je:Je===Kr||Ee.indexOf("rgba")>=0?ne[Je]=Un:ne[Je]=ma,ne},{});function Ji(){this.internalformat=Un,this.format=Un,this.type=Oa,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Ee){ne.internalformat=Ee.internalformat,ne.format=Ee.format,ne.type=Ee.type,ne.compressed=Ee.compressed,ne.premultiplyAlpha=Ee.premultiplyAlpha,ne.flipY=Ee.flipY,ne.unpackAlignment=Ee.unpackAlignment,ne.colorSpace=Ee.colorSpace,ne.width=Ee.width,ne.height=Ee.height,ne.channels=Ee.channels}function ro(ne,Ee){if(!(typeof Ee!="object"||!Ee)){if("premultiplyAlpha"in Ee&&(ne.premultiplyAlpha=Ee.premultiplyAlpha),"flipY"in Ee&&(ne.flipY=Ee.flipY),"alignment"in Ee&&(ne.unpackAlignment=Ee.alignment),"colorSpace"in Ee&&(ne.colorSpace=Ls[Ee.colorSpace]),"type"in Ee){var Je=Ee.type;ne.type=ua[Je]}var Ct=ne.width,ur=ne.height,Sr=ne.channels,nr=!1;"shape"in Ee?(Ct=Ee.shape[0],ur=Ee.shape[1],Ee.shape.length===3&&(Sr=Ee.shape[2],nr=!0)):("radius"in Ee&&(Ct=ur=Ee.radius),"width"in Ee&&(Ct=Ee.width),"height"in Ee&&(ur=Ee.height),"channels"in Ee&&(Sr=Ee.channels,nr=!0)),ne.width=Ct|0,ne.height=ur|0,ne.channels=Sr|0;var Qe=!1;if("format"in Ee){var pt=Ee.format,Tt=ne.internalformat=Hn[pt];ne.format=hs[Tt],pt in ua&&("type"in Ee||(ne.type=ua[pt])),pt in Ni&&(ne.compressed=!0),Qe=!0}!nr&&Qe?ne.channels=$n[ne.format]:nr&&!Qe&&ne.channels!==sn[ne.format]&&(ne.format=ne.internalformat=sn[ne.channels])}}function na(ne){Fe.pixelStorei(Ya,ne.flipY),Fe.pixelStorei(_n,ne.premultiplyAlpha),Fe.pixelStorei(Vn,ne.colorSpace),Fe.pixelStorei(Vs,ne.unpackAlignment)}function Bn(){Ji.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Ee){var Je=null;if(Es(Ee)?Je=Ee:Ee&&(ro(ne,Ee),"x"in Ee&&(ne.xOffset=Ee.x|0),"y"in Ee&&(ne.yOffset=Ee.y|0),Es(Ee.data)&&(Je=Ee.data)),Ee.copy){var Ct=vi.viewportWidth,ur=vi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||ur-ne.yOffset,ne.needsCopy=!0}else if(!Je)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(vr(Je))ne.channels=ne.channels||4,ne.data=Je,!("type"in Ee)&&ne.type===Oa&&(ne.type=Ts(Je));else if(Pa(Je))ne.channels=ne.channels||4,Ho(ne,Je),ne.alignment=1,ne.needsFree=!0;else if(Vt(Je)){var Sr=Je.data;!Array.isArray(Sr)&&ne.type===Oa&&(ne.type=Ts(Sr));var nr=Je.shape,Qe=Je.stride,pt,Tt,Xt,ir,Kt,ar;nr.length===3?(Xt=nr[2],ar=Qe[2]):(Xt=1,ar=1),pt=nr[0],Tt=nr[1],ir=Qe[0],Kt=Qe[1],ne.alignment=1,ne.width=pt,ne.height=Tt,ne.channels=Xt,ne.format=ne.internalformat=sn[Xt],ne.needsFree=!0,ts(ne,Sr,ir,Kt,ar,Je.offset)}else if(Jo(Je)||Ao(Je)||Rn(Je))Jo(Je)||Ao(Je)?ne.element=Je:ne.element=Je.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Je))ne.element=Je,ne.width=Je.width,ne.height=Je.height,ne.channels=4;else if(Ws(Je))ne.element=Je,ne.width=Je.naturalWidth,ne.height=Je.naturalHeight,ne.channels=4;else if(Ca(Je))ne.element=Je,ne.width=Je.videoWidth,ne.height=Je.videoHeight,ne.channels=4;else if(to(Je)){var Jt=ne.width||Je[0].length,Ft=ne.height||Je.length,Zt=ne.channels;$i(Je[0][0])?Zt=Zt||Je[0][0].length:Zt=Zt||1;for(var Pt=xe.shape(Je),Ar=1,Br=0;Br>=ur,Je.height>>=ur,In(Je,Ct[ur]),ne.mipmask|=1<=0&&!("faces"in Ee)&&(ne.genMipmaps=!0)}if("mag"in Ee){var Ct=Ee.mag;ne.magFilter=Ln[Ct]}var ur=ne.wrapS,Sr=ne.wrapT;if("wrap"in Ee){var nr=Ee.wrap;typeof nr=="string"?ur=Sr=On[nr]:Array.isArray(nr)&&(ur=On[nr[0]],Sr=On[nr[1]])}else{if("wrapS"in Ee){var Qe=Ee.wrapS;ur=On[Qe]}if("wrapT"in Ee){var pt=Ee.wrapT;Sr=On[pt]}}if(ne.wrapS=ur,ne.wrapT=Sr,"anisotropic"in Ee){var Tt=Ee.anisotropic;ne.anisotropic=Ee.anisotropic}if("mipmap"in Ee){var Xt=!1;switch(typeof Ee.mipmap){case"string":ne.mipmapHint=nn[Ee.mipmap],ne.genMipmaps=!0,Xt=!0;break;case"boolean":Xt=ne.genMipmaps=Ee.mipmap;break;case"object":ne.genMipmaps=!1,Xt=!0;break;default:}Xt&&!("min"in Ee)&&(ne.minFilter=mo)}}function xf(ne,Ee){Fe.texParameteri(Ee,As,ne.minFilter),Fe.texParameteri(Ee,vo,ne.magFilter),Fe.texParameteri(Ee,Sa,ne.wrapS),Fe.texParameteri(Ee,Qa,ne.wrapT),Bt.ext_texture_filter_anisotropic&&Fe.texParameteri(Ee,ha,ne.anisotropic),ne.genMipmaps&&(Fe.hint(Ys,ne.mipmapHint),Fe.generateMipmap(Ee))}var Cf=0,Gu={},cf=tr.maxTextureUnits,mf=Array(cf).map(function(){return null});function Fl(ne){Ji.call(this),this.mipmask=0,this.internalformat=Un,this.id=Cf++,this.refCount=1,this.target=ne,this.texture=Fe.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,di.profile&&(this.stats={size:0})}function bf(ne){Fe.activeTexture(Da),Fe.bindTexture(ne.target,ne.texture)}function cu(){var ne=mf[0];ne?Fe.bindTexture(ne.target,ne.texture):Fe.bindTexture(Xi,null)}function Y(ne){var Ee=ne.texture,Je=ne.unit,Ct=ne.target;Je>=0&&(Fe.activeTexture(Da+Je),Fe.bindTexture(Ct,null),mf[Je]=null),Fe.deleteTexture(Ee),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Gu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Ee=ne.unit;if(Ee<0){for(var Je=0;Je0)continue;Ct.unit=-1}mf[Je]=ne,Ee=Je;break}Ee>=cf,di.profile&&fi.maxTextureUnits>Kt)-Xt,ar.height=ar.height||(Je.height>>Kt)-ir,bf(Je),_s(ar,Xi,Xt,ir,Kt),cu(),Mo(ar),Ct}function Sr(nr,Qe){var pt=nr|0,Tt=Qe|0||pt;if(pt===Je.width&&Tt===Je.height)return Ct;Ct.width=Je.width=pt,Ct.height=Je.height=Tt,bf(Je);for(var Xt=0;Je.mipmask>>Xt;++Xt){var ir=pt>>Xt,Kt=Tt>>Xt;if(!ir||!Kt)break;Fe.texImage2D(Xi,Xt,Je.format,ir,Kt,0,Je.format,Je.type,null)}return cu(),di.profile&&(Je.stats.size=Wo(Je.internalformat,Je.type,pt,Tt,!1,!1)),Ct}return Ct(ne,Ee),Ct.subimage=ur,Ct.resize=Sr,Ct._reglType="texture2d",Ct._texture=Je,di.profile&&(Ct.stats=Je.stats),Ct.destroy=function(){Je.decRef()},Ct}function J(ne,Ee,Je,Ct,ur,Sr){var nr=new Fl(aa);Gu[nr.id]=nr,fi.cubeCount++;var Qe=new Array(6);function pt(ir,Kt,ar,Jt,Ft,Zt){var Pt,Ar=nr.texInfo;for(Cu.call(Ar),Pt=0;Pt<6;++Pt)Qe[Pt]=Ql();if(typeof ir=="number"||!ir){var Br=ir|0||1;for(Pt=0;Pt<6;++Pt)pl(Qe[Pt],Br,Br)}else if(typeof ir=="object")if(Kt)Rl(Qe[0],ir),Rl(Qe[1],Kt),Rl(Qe[2],ar),Rl(Qe[3],Jt),Rl(Qe[4],Ft),Rl(Qe[5],Zt);else if(gf(Ar,ir),ro(nr,ir),"faces"in ir){var ci=ir.faces;for(Pt=0;Pt<6;++Pt)Ui(Qe[Pt],nr),Rl(Qe[Pt],ci[Pt])}else for(Pt=0;Pt<6;++Pt)Rl(Qe[Pt],ir);for(Ui(nr,Qe[0]),Ar.genMipmaps?nr.mipmask=(Qe[0].width<<1)-1:nr.mipmask=Qe[0].mipmask,nr.internalformat=Qe[0].internalformat,pt.width=Qe[0].width,pt.height=Qe[0].height,bf(nr),Pt=0;Pt<6;++Pt)Ou(Qe[Pt],Mn+Pt);for(xf(Ar,aa),cu(),di.profile&&(nr.stats.size=Wo(nr.internalformat,nr.type,pt.width,pt.height,Ar.genMipmaps,!0)),pt.format=dn[nr.internalformat],pt.type=En[nr.type],pt.mag=Zi[Ar.magFilter],pt.min=ga[Ar.minFilter],pt.wrapS=Kn[Ar.wrapS],pt.wrapT=Kn[Ar.wrapT],Pt=0;Pt<6;++Pt)Ef(Qe[Pt]);return pt}function Tt(ir,Kt,ar,Jt,Ft){var Zt=ar|0,Pt=Jt|0,Ar=Ft|0,Br=Qn();return Ui(Br,nr),Br.width=0,Br.height=0,In(Br,Kt),Br.width=Br.width||(nr.width>>Ar)-Zt,Br.height=Br.height||(nr.height>>Ar)-Pt,bf(nr),_s(Br,Mn+ir,Zt,Pt,Ar),cu(),Mo(Br),pt}function Xt(ir){var Kt=ir|0;if(Kt!==nr.width){pt.width=nr.width=Kt,pt.height=nr.height=Kt,bf(nr);for(var ar=0;ar<6;++ar)for(var Jt=0;nr.mipmask>>Jt;++Jt)Fe.texImage2D(Mn+ar,Jt,nr.format,Kt>>Jt,Kt>>Jt,0,nr.format,nr.type,null);return cu(),di.profile&&(nr.stats.size=Wo(nr.internalformat,nr.type,pt.width,pt.height,!1,!0)),pt}}return pt(ne,Ee,Je,Ct,ur,Sr),pt.subimage=Tt,pt.resize=Xt,pt._reglType="textureCube",pt._texture=nr,di.profile&&(pt.stats=nr.stats),pt.destroy=function(){nr.decRef()},pt}function B(){for(var ne=0;ne>Ct,Je.height>>Ct,0,Je.internalformat,Je.type,null);else for(var ur=0;ur<6;++ur)Fe.texImage2D(Mn+ur,Ct,Je.internalformat,Je.width>>Ct,Je.height>>Ct,0,Je.internalformat,Je.type,null);xf(Je.texInfo,Je.target)})}function ye(){for(var ne=0;ne=0?Ef=!0:On.indexOf(Cu)>=0&&(Ef=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(mf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Ou=Fl.depth:(Cf=Fl.depth,vf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?vf=Fl.stencil:(Gu=Fl.stencil,Ou=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Ou=vf=Fl.depthStencil:(cf=Fl.depthStencil,Ou=!1,vf=!1))}var cu=null,Y=null,D=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(xf),al=0;al0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:al,height:al,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var al=Va.color;for(Qn=0;Qn=al.byteLength?pl.subdata(al):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=vi.create(Qn,Ss,!1,!0)),Mo.buffer=vi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else vi.getBuffer(Qn)?(Mo.buffer=vi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):vi.getBuffer(Qn.buffer)?(Mo.buffer=vi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=Ai[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Rl=0;Rl1)for(var na=0;naWr&&(Wr=gi.stats.uniformsCount)}),Wr},tr.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(gi){gi.stats.attributesCount>Wr&&(Wr=gi.stats.attributesCount)}),Wr});function Ni(){vi={},fi={};for(var Wr=0;Wr16&&(tr=Li(tr,Fe.length*8));for(var Qr=Array(16),vi=Array(16),fi=0;fi<16;fi++)Qr[fi]=tr[fi]^909522486,vi[fi]=tr[fi]^1549556828;var di=Li(Qr.concat(Os(Bt)),512+Bt.length*8);return St(Li(vi.concat(di),768))}function Ms(Fe){for(var Bt=Do?"0123456789ABCDEF":"0123456789abcdef",tr="",Qr,vi=0;vi>>4&15)+Bt.charAt(Qr&15);return tr}function jo(Fe){for(var Bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tr="",Qr=Fe.length,vi=0;viFe.length*8?tr+=tl:tr+=Bt.charAt(fi>>>6*(3-di)&63);return tr}function Ds(Fe,Bt){var tr=Bt.length,Qr=Array(),vi,fi,di,nn,On=Array(Math.ceil(Fe.length/2));for(vi=0;vi0;){for(nn=Array(),di=0,vi=0;vi0||fi>0)&&(nn[nn.length]=fi);Qr[Qr.length]=di,On=nn}var Ln="";for(vi=Qr.length-1;vi>=0;vi--)Ln+=Bt.charAt(Qr[vi]);var wn=Math.ceil(Fe.length*8/(Math.log(Bt.length)/Math.log(2)));for(vi=Ln.length;vi>>6&31,128|Qr&63):Qr<=65535?Bt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(Bt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return Bt}function Os(Fe){for(var Bt=Array(Fe.length>>2),tr=0;tr>5]|=(Fe.charCodeAt(tr/8)&255)<<24-tr%32;return Bt}function St(Fe){for(var Bt="",tr=0;tr>5]>>>24-tr%32&255);return Bt}function Ut(Fe,Bt){return Fe>>>Bt|Fe<<32-Bt}function xr(Fe,Bt){return Fe>>>Bt}function dr(Fe,Bt,tr){return Fe&Bt^~Fe&tr}function Rr(Fe,Bt,tr){return Fe&Bt^Fe&tr^Bt&tr}function yi(Fe){return Ut(Fe,2)^Ut(Fe,13)^Ut(Fe,22)}function Ti(Fe){return Ut(Fe,6)^Ut(Fe,11)^Ut(Fe,25)}function ki(Fe){return Ut(Fe,7)^Ut(Fe,18)^xr(Fe,3)}function Ki(Fe){return Ut(Fe,17)^Ut(Fe,19)^xr(Fe,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Li(Fe,Bt){var tr=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Fe[Bt>>5]|=128<<24-Bt%32,Fe[(Bt+64>>9<<4)+15]=Bt,ua=0;ua>16)+(Bt>>16)+(tr>>16);return Qr<<16|tr&65535}function Ci(Fe){return Array.prototype.slice.call(Fe)}function Si(Fe){return Ci(Fe).join("")}function Gn(Fe){var Bt=Fe&&Fe.cache,tr=0,Qr=[],vi=[],fi=[];function di(Ni,Wr){var gi=Wr&&Wr.stable;if(!gi){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Ci(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([gi.length>0?"var "+gi.join(",")+";":"",Si(Ni)])}})}function On(){var Ni=nn(),Wr=nn(),gi=Ni.toString,dn=Wr.toString;function En(Zi,ga){Wr(Zi,ga,"=",Ni.def(Zi,ga),";")}return e(function(){Ni.apply(Ni,Ci(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Zi,ga,Kn){En(Zi,ga),Ni(Zi,ga,"=",Kn,";")},toString:function(){return gi()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=On(),gi=On(),dn=Wr.toString,En=gi.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Ci(arguments)),this},else:function(){return gi.apply(gi,Ci(arguments)),this},toString:function(){var Zi=En();return Zi&&(Zi="else{"+Zi+"}"),Si(["if(",Ni,"){",dn(),"}",Zi])}})}var wn=nn(),Ls={};function ua(Ni,Wr){var gi=[];function dn(){var hs="a"+gi.length;return gi.push(hs),hs}Wr=Wr||0;for(var En=0;En[v.viewport.x,v.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,v)=>v.offset*4,divisor:1},position:{buffer:i,offset:(b,v)=>v.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,v)=>v.offset*8,divisor:1},error:{buffer:s,offset:(b,v)=>v.offset*16,divisor:1},direction:{buffer:u,stride:24,offset:0},lineOffset:{buffer:u,stride:24,offset:8},capOffset:{buffer:u,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:Hqe.length}),Vqe(c,{update:p,draw:h,destroy:y,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(b){b?p(b):b===null&&y(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),f.forEach((v,C)=>{if(v){if(b&&(b[C]?v.draw=!0:v.draw=!1),!v.draw){v.draw=!0;return}d(C)}})}function d(b){typeof b=="number"&&(b=f[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function p(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let v=0,C=0;if(c.groups=f=b.map((L,x)=>{let k=f[x];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return k;return L=rVt(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),k||(f[x]=k={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=Vqe({},l,L)),tVt(k,L,[{lineWidth:S=>+S*.5,capSize:S=>+S*.5,opacity:parseFloat,errors:S=>(S=Gqe(S),C+=S.length,S),positions:(S,m)=>(S=Gqe(S,"float64"),m.count=Math.floor(S.length/2),m.bounds=QUt(S,2),m.offset=v,v+=m.count,S)},{color:(S,m)=>{let P=m.count;if(S||(S="transparent"),!Array.isArray(S)||typeof S[0]=="number"){let O=S;S=Array(P);for(let F=0;F{let M=m.bounds;return S||(S=M),m.scale=[1/(S[2]-S[0]),1/(S[3]-S[1])],m.translate=[-S[0],-S[1]],m.scaleFract=cK(m.scale),m.translateFract=cK(m.translate),S},viewport:S=>{let m;return Array.isArray(S)?m={x:S[0],y:S[1],width:S[2]-S[0],height:S[3]-S[1]}:S?(m={x:S.x||S.left||0,y:S.y||S.top||0},S.right?m.width=S.right-m.x:m.width=S.w||S.width||0,S.bottom?m.height=S.bottom-m.y:m.height=S.h||S.height||0):m={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},m}}]),k}),v||C){let L=f.reduce((m,P,M)=>m+(P?P.count:0),0),x=new Float64Array(L*2),k=new Uint8Array(L*4),S=new Float32Array(L*4);f.forEach((m,P)=>{if(!m)return;let{positions:M,count:O,offset:F,color:U,errors:G}=m;O&&(k.set(U,F*4),S.set(G,F*4),x.set(M,F*2))});var E=iVt(x);i(E);var A=cK(x,E);a(A),o(k),s(S)}}function y(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),u.destroy()}}});var Yqe=we((tbr,Zqe)=>{var Xqe=/[\'\"]/;Zqe.exports=function(t){return t?(Xqe.test(t.charAt(0))&&(t=t.substr(1)),Xqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var hK=we((rbr,aVt)=>{aVt.exports=["inherit","initial","unset"]});var dK=we((ibr,oVt)=>{oVt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var pK=we((nbr,sVt)=>{sVt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var vK=we((abr,lVt)=>{lVt.exports=["normal","italic","oblique"]});var mK=we((obr,uVt)=>{uVt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var Qqe=we((sbr,$qe)=>{"use strict";function Kqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(u){var l=new RegExp(["\\",u[0],"[^\\",u[0],"\\",u[1],"]*\\",u[1]].join("")),f=[];function c(h,d,p){var y=r.push(h.slice(u[0].length,-u[1].length))-1;return f.push(y),i+y+i}r.forEach(function(h,d){for(var p,y=0;h!=p;)if(p=h,h=h.replace(l,c),y++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),f=f.reverse(),r=r.map(function(h){return f.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),u[0]+"$1"+u[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(u,l,f){for(var c=[],h,d=0;h=o.exec(u);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(u.slice(0,h.index)),c.push(s(l[h[1]],l)),u=u.slice(h.index+h[0].length)}return c.push(u),c}return a?r:s(r[0],r)}function Jqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function u(l,f){return Array.isArray(f)&&(f=f.reduce(u,"")),l+f},"");function s(u,l){if(e[l]==null)throw Error("Reference "+l+"is undefined");return e[l]}}function yK(e,t){return Array.isArray(e)?Jqe(e,t):Kqe(e,t)}yK.parse=Kqe;yK.stringify=Jqe;$qe.exports=yK});var rNe=we((lbr,tNe)=>{"use strict";var eNe=Qqe();tNe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var i=eNe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],u=0;u{fVt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var gK=we((fbr,nNe)=>{"use strict";var cVt=iNe();nNe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||cVt.indexOf(t)!==-1}}});var lNe=we((cbr,sNe)=>{"use strict";var hVt=Yqe(),dVt=hK(),pVt=dK(),vVt=pK(),mVt=vK(),yVt=mK(),_K=rNe(),gVt=gK().isSize;sNe.exports=oNe;var Rk=oNe.cache={};function oNe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Rk[e])return Rk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(pVt.indexOf(e)!==-1)return Rk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=_K(e,/\s+/),n;n=r.shift();){if(dVt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Rk[e]=t;if(mVt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(yVt.indexOf(n)!==-1){t.stretch=n;continue}if(vVt.indexOf(n)!==-1){t.weight=n;continue}if(gVt(n)){var i=_K(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=aNe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=aNe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=_K(r.join(" "),/\s*,\s*/).map(hVt),Rk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function aNe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var bK=we((hbr,uNe)=>{"use strict";var _Vt=rg(),xVt=gK().isSize,bVt=Fk(hK()),wVt=Fk(dK()),AVt=Fk(pK()),TVt=Fk(vK()),SVt=Fk(mK()),MVt={normal:1,"small-caps":1},EVt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},xK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};uNe.exports=function(t){if(t=_Vt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&Dk(t.system,wVt),t.system;if(Dk(t.style,TVt),Dk(t.variant,MVt),Dk(t.weight,AVt),Dk(t.stretch,SVt),t.size==null&&(t.size=xK.size),typeof t.size=="number"&&(t.size+="px"),!xVt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=xK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[xK.family]),t.family=t.family.map(function(n){return EVt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function Dk(e,t){if(e&&!t[e]&&!bVt[e])throw Error("Unknown keyword `"+e+"`");return e}function Fk(e){for(var t={},r=0;r{"use strict";fNe.exports={parse:lNe(),stringify:bK()}});var hNe=we((wK,AK)=>{(function(e,t){typeof wK=="object"&&typeof AK!="undefined"?AK.exports=t():e.createREGL=t()})(wK,(function(){"use strict";var e=function(Fe,Bt){for(var tr=Object.keys(Bt),Qr=0;Qr1&&Bt===tr&&(Bt==='"'||Bt==="'"))return['"'+o(Fe.substr(1,Fe.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Fe);if(Qr)return s(Fe.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Fe.substr(Qr.index+Qr[0].length)));var vi=Fe.split(".");if(vi.length===1)return['"'+o(Fe)+'"'];for(var fi=[],di=0;di65535)<<4,Fe>>>=Bt,tr=(Fe>255)<<3,Fe>>>=tr,Bt|=tr,tr=(Fe>15)<<2,Fe>>>=tr,Bt|=tr,tr=(Fe>3)<<1,Fe>>>=tr,Bt|=tr,Bt|Fe>>1}function N(){var Fe=S(8,function(){return[]});function Bt(fi){var di=j(fi),nn=Fe[W(di)>>2];return nn.length>0?nn.pop():new ArrayBuffer(di)}function tr(fi){Fe[W(fi.byteLength)>>2].push(fi)}function Qr(fi,di){var nn=null;switch(fi){case m:nn=new Int8Array(Bt(di),0,di);break;case P:nn=new Uint8Array(Bt(di),0,di);break;case M:nn=new Int16Array(Bt(2*di),0,di);break;case O:nn=new Uint16Array(Bt(2*di),0,di);break;case F:nn=new Int32Array(Bt(4*di),0,di);break;case U:nn=new Uint32Array(Bt(4*di),0,di);break;case G:nn=new Float32Array(Bt(4*di),0,di);break;default:return null}return nn.length!==di?nn.subarray(0,di):nn}function vi(fi){tr(fi.buffer)}return{alloc:Bt,free:tr,allocType:Qr,freeType:vi}}var H=N();H.zero=N();var re=3408,ae=3410,me=3411,Ce=3412,Ee=3413,de=3414,te=3415,Se=33901,Te=33902,be=3379,He=3386,Ie=34921,ge=36347,Be=36348,ce=35661,je=35660,rt=34930,bt=36349,Ot=34076,it=34024,Ke=7936,zt=7937,Mt=7938,kt=35724,$e=34047,Re=36063,Me=34852,oe=3553,Ne=34067,vt=34069,lt=33984,We=6408,Ve=5126,et=5121,tt=36160,Lt=36053,jt=36064,or=16384,yr=function(Fe,Bt){var tr=1;Bt.ext_texture_filter_anisotropic&&(tr=Fe.getParameter($e));var Qr=1,vi=1;Bt.webgl_draw_buffers&&(Qr=Fe.getParameter(Me),vi=Fe.getParameter(Re));var fi=!!Bt.oes_texture_float;if(fi){var di=Fe.createTexture();Fe.bindTexture(oe,di),Fe.texImage2D(oe,0,We,1,1,0,We,Ve,null);var nn=Fe.createFramebuffer();if(Fe.bindFramebuffer(tt,nn),Fe.framebufferTexture2D(tt,jt,oe,di,0),Fe.bindTexture(oe,null),Fe.checkFramebufferStatus(tt)!==Lt)fi=!1;else{Fe.viewport(0,0,1,1),Fe.clearColor(1,0,0,1),Fe.clear(or);var On=H.allocType(Ve,4);Fe.readPixels(0,0,1,1,We,Ve,On),Fe.getError()?fi=!1:(Fe.deleteFramebuffer(nn),Fe.deleteTexture(di),fi=On[0]===1),H.freeType(On)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Fe.createTexture(),ua=H.allocType(et,36);Fe.activeTexture(lt),Fe.bindTexture(Ne,Ls),Fe.texImage2D(vt,0,We,3,3,0,We,et,ua),H.freeType(ua),Fe.bindTexture(Ne,null),Fe.deleteTexture(Ls),wn=!Fe.getError()}return{colorBits:[Fe.getParameter(ae),Fe.getParameter(me),Fe.getParameter(Ce),Fe.getParameter(Ee)],depthBits:Fe.getParameter(de),stencilBits:Fe.getParameter(te),subpixelBits:Fe.getParameter(re),extensions:Object.keys(Bt).filter(function(Hn){return!!Bt[Hn]}),maxAnisotropic:tr,maxDrawbuffers:Qr,maxColorAttachments:vi,pointSizeDims:Fe.getParameter(Se),lineWidthDims:Fe.getParameter(Te),maxViewportDims:Fe.getParameter(He),maxCombinedTextureUnits:Fe.getParameter(ce),maxCubeMapSize:Fe.getParameter(Ot),maxRenderbufferSize:Fe.getParameter(it),maxTextureUnits:Fe.getParameter(rt),maxTextureSize:Fe.getParameter(be),maxAttributes:Fe.getParameter(Ie),maxVertexUniforms:Fe.getParameter(ge),maxVertexTextureUnits:Fe.getParameter(je),maxVaryingVectors:Fe.getParameter(Be),maxFragmentUniforms:Fe.getParameter(bt),glsl:Fe.getParameter(kt),renderer:Fe.getParameter(zt),vendor:Fe.getParameter(Ke),version:Fe.getParameter(Mt),readFloat:fi,npotTextureCube:wn}},vr=function(Fe){return Fe instanceof Uint8Array||Fe instanceof Uint16Array||Fe instanceof Uint32Array||Fe instanceof Int8Array||Fe instanceof Int16Array||Fe instanceof Int32Array||Fe instanceof Float32Array||Fe instanceof Float64Array||Fe instanceof Uint8ClampedArray};function Vt(Fe){return!!Fe&&typeof Fe=="object"&&Array.isArray(Fe.shape)&&Array.isArray(Fe.stride)&&typeof Fe.offset=="number"&&Fe.shape.length===Fe.stride.length&&(Array.isArray(Fe.data)||vr(Fe.data))}var Pe=function(Fe){return Object.keys(Fe).map(function(Bt){return Fe[Bt]})},xe={shape:gt,flatten:st};function Oe(Fe,Bt,tr){for(var Qr=0;Qr0){var hs;if(Array.isArray(gi[0])){Kn=qr(gi);for(var Ji=1,Ui=1;Ui0){if(typeof Ji[0]=="number"){var Bn=H.allocType(Zi.dtype,Ji.length);mr(Bn,Ji),Kn(Bn,ro),H.freeType(Bn)}else if(Array.isArray(Ji[0])||vr(Ji[0])){na=qr(Ji);var In=hn(Ji,na,Zi.dtype);Kn(In,ro),H.freeType(In)}}}else if(Vt(Ji)){na=Ji.shape;var Va=Ji.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var al=Array.isArray(Ji.data)?Zi.dtype:Nt(Ji.data),pl=H.allocType(al,_s*ul);Lr(pl,Ji.data,_s,ul,Qn,Mo,Ji.offset),Kn(pl,ro),H.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Zi,ga.subdata=hs,tr.profile&&(ga.stats=Zi.stats),ga.destroy=function(){ua(Zi)},ga}function Ni(){Pe(fi).forEach(function(Wr){Wr.buffer=Fe.createBuffer(),Fe.bindBuffer(Wr.type,Wr.buffer),Fe.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return tr.profile&&(Bt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(gi){Wr+=fi[gi].stats.size}),Wr}),{create:Hn,createStream:On,destroyStream:Ln,clear:function(){Pe(fi).forEach(ua),nn.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof di?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Fr=0,Hr=0,Gr=1,mi=1,Ei=4,Vi=4,ti={points:Fr,point:Hr,lines:Gr,line:mi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Qi=0,Yr=1,oi=4,Fi=5120,rn=5121,tn=5122,Di=5123,Ii=5124,xn=5125,xi=34963,Xr=35040,dt=35044;function $t(Fe,Bt,tr,Qr){var vi={},fi=0,di={uint8:rn,uint16:Di};Bt.oes_element_index_uint&&(di.uint32=xn);function nn(Ni){this.id=fi++,vi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}nn.prototype.bind=function(){this.buffer.bind()};var On=[];function Ln(Ni){var Wr=On.pop();return Wr||(Wr=new nn(tr.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){On.push(Ni)}function Ls(Ni,Wr,gi,dn,En,Zi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!vr(Wr)||Vt(Wr)&&!vr(Wr.data))&&(hs=Bt.oes_element_index_uint?xn:Di),tr._initBuffer(Ni.buffer,Wr,gi,hs,3)}else Fe.bufferData(xi,Zi,gi),Ni.buffer.dtype=Kn||rn,Ni.buffer.usage=gi,Ni.buffer.dimension=3,Ni.buffer.byteLength=Zi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case rn:case Fi:Kn=rn;break;case Di:case tn:Kn=Di;break;case xn:case Ii:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var Ji=En;Ji<0&&(Ji=Ni.buffer.byteLength,Kn===Di?Ji>>=1:Kn===xn&&(Ji>>=2)),Ni.vertCount=Ji;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=Qi),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete vi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var gi=tr.create(null,xi,!0),dn=new nn(gi._buffer);Qr.elementsCount++;function En(Zi){if(!Zi)gi(),dn.primType=oi,dn.vertCount=0,dn.type=rn;else if(typeof Zi=="number")gi(Zi),dn.primType=oi,dn.vertCount=Zi|0,dn.type=rn;else{var ga=null,Kn=dt,hs=-1,Ji=-1,Ui=0,ro=0;Array.isArray(Zi)||vr(Zi)||Vt(Zi)?ga=Zi:("data"in Zi&&(ga=Zi.data),"usage"in Zi&&(Kn=ln[Zi.usage]),"primitive"in Zi&&(hs=ti[Zi.primitive]),"count"in Zi&&(Ji=Zi.count|0),"type"in Zi&&(ro=di[Zi.type]),"length"in Zi?Ui=Zi.length|0:(Ui=Ji,ro===Di||ro===tn?Ui*=2:(ro===xn||ro===Ii)&&(Ui*=4))),Ls(dn,ga,Kn,hs,Ji,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Zi,ga){return gi.subdata(Zi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof nn?Ni._elements:null},clear:function(){Pe(vi).forEach(ua)}}}var fr=new Float32Array(1),gr=new Uint32Array(fr.buffer),Zr=5123;function wi(Fe){for(var Bt=H.allocType(Zr,Fe.length),tr=0;tr>>31<<15,fi=(Qr<<1>>>24)-127,di=Qr>>13&1023;if(fi<-24)Bt[tr]=vi;else if(fi<-14){var nn=-14-fi;Bt[tr]=vi+(di+1024>>nn)}else fi>15?Bt[tr]=vi+31744:Bt[tr]=vi+(fi+15<<10)+di}return Bt}function $i(Fe){return Array.isArray(Fe)||vr(Fe)}var ni=34467,Xi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,Wi=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Oa=5121,Ko=5123,Qo=5125,Hi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Ba=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],sn=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Fe){return"[object "+Fe+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(xt).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Oa]=1,Na[Hi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var en=[];en[so]=2,en[Kr]=2,en[Ia]=2,en[uo]=4,en[mn]=.5,en[ra]=.5,en[wa]=1,en[ws]=1,en[Co]=.5,en[Po]=1,en[Wi]=1,en[gn]=.5,en[Ps]=.25,en[Ha]=.5,en[Sn]=.25,en[ao]=.5;function Pa(Fe){return Array.isArray(Fe)&&(Fe.length===0||typeof Fe[0]=="number")}function to(Fe){if(!Array.isArray(Fe))return!1;var Bt=Fe.length;return!(Bt===0||!$i(Fe[0]))}function yo(Fe){return Object.prototype.toString.call(Fe)}function Jo(Fe){return yo(Fe)===qn}function Ao(Fe){return yo(Fe)===Eo}function Dn(Fe){return yo(Fe)===Ja}function _a(Fe){return yo(Fe)===lo}function Ws(Fe){return yo(Fe)===eo}function Ca(Fe){return yo(Fe)===sa}function Es(Fe){if(!Fe)return!1;var Bt=yo(Fe);return es.indexOf(Bt)>=0?!0:Pa(Fe)||to(Fe)||Vt(Fe)}function Ts(Fe){return xt[Object.prototype.toString.call(Fe)]|0}function Ho(Fe,Bt){var tr=Bt.length;switch(Fe.type){case Oa:case Ko:case Qo:case Hi:var Qr=H.allocType(Fe.type,tr);Qr.set(Bt),Fe.data=Qr;break;case fo:Fe.data=wi(Bt);break;default:}}function Wa(Fe,Bt){return H.allocType(Fe.type===fo?Hi:Fe.type,Bt)}function To(Fe,Bt){Fe.type===fo?(Fe.data=wi(Bt),H.freeType(Bt)):Fe.data=Bt}function ts(Fe,Bt,tr,Qr,vi,fi){for(var di=Fe.width,nn=Fe.height,On=Fe.channels,Ln=di*nn*On,wn=Wa(Fe,Ln),Ls=0,ua=0;ua=1;)nn+=di*On*On,On/=2;return nn}else return di*tr*Qr}function qa(Fe,Bt,tr,Qr,vi,fi,di){var nn={"don't care":qs,"dont care":qs,nice:Ba,fast:Ns},On={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Oa,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};Bt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),Bt.oes_texture_float&&(ua.float32=ua.float=Hi),Bt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),Bt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),Bt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),Bt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":Wi}),Bt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),Bt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Fe.getParameter(ni));Object.keys(Ni).forEach(function(ne){var ke=Ni[ne];Wr.indexOf(ke)>=0&&(Hn[ne]=ke)});var gi=Object.keys(Hn);tr.textureFormats=gi;var dn=[];Object.keys(Hn).forEach(function(ne){var ke=Hn[ne];dn[ke]=ne});var En=[];Object.keys(ua).forEach(function(ne){var ke=ua[ne];En[ke]=ne});var Zi=[];Object.keys(Ln).forEach(function(ne){var ke=Ln[ne];Zi[ke]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var ke=wn[ne];ga[ke]=ne});var Kn=[];Object.keys(On).forEach(function(ne){var ke=On[ne];Kn[ke]=ne});var hs=gi.reduce(function(ne,ke){var Je=Hn[ke];return Je===oa||Je===Ga||Je===oa||Je===ka||Je===ys||Je===uo||Bt.ext_srgb&&(Je===ls||Je===$a)?ne[Je]=Je:Je===Kr||ke.indexOf("rgba")>=0?ne[Je]=Un:ne[Je]=ma,ne},{});function Ji(){this.internalformat=Un,this.format=Un,this.type=Oa,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,ke){ne.internalformat=ke.internalformat,ne.format=ke.format,ne.type=ke.type,ne.compressed=ke.compressed,ne.premultiplyAlpha=ke.premultiplyAlpha,ne.flipY=ke.flipY,ne.unpackAlignment=ke.unpackAlignment,ne.colorSpace=ke.colorSpace,ne.width=ke.width,ne.height=ke.height,ne.channels=ke.channels}function ro(ne,ke){if(!(typeof ke!="object"||!ke)){if("premultiplyAlpha"in ke&&(ne.premultiplyAlpha=ke.premultiplyAlpha),"flipY"in ke&&(ne.flipY=ke.flipY),"alignment"in ke&&(ne.unpackAlignment=ke.alignment),"colorSpace"in ke&&(ne.colorSpace=Ls[ke.colorSpace]),"type"in ke){var Je=ke.type;ne.type=ua[Je]}var Ct=ne.width,ur=ne.height,Sr=ne.channels,nr=!1;"shape"in ke?(Ct=ke.shape[0],ur=ke.shape[1],ke.shape.length===3&&(Sr=ke.shape[2],nr=!0)):("radius"in ke&&(Ct=ur=ke.radius),"width"in ke&&(Ct=ke.width),"height"in ke&&(ur=ke.height),"channels"in ke&&(Sr=ke.channels,nr=!0)),ne.width=Ct|0,ne.height=ur|0,ne.channels=Sr|0;var Qe=!1;if("format"in ke){var pt=ke.format,Tt=ne.internalformat=Hn[pt];ne.format=hs[Tt],pt in ua&&("type"in ke||(ne.type=ua[pt])),pt in Ni&&(ne.compressed=!0),Qe=!0}!nr&&Qe?ne.channels=$n[ne.format]:nr&&!Qe&&ne.channels!==sn[ne.format]&&(ne.format=ne.internalformat=sn[ne.channels])}}function na(ne){Fe.pixelStorei(Ya,ne.flipY),Fe.pixelStorei(_n,ne.premultiplyAlpha),Fe.pixelStorei(Vn,ne.colorSpace),Fe.pixelStorei(Vs,ne.unpackAlignment)}function Bn(){Ji.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,ke){var Je=null;if(Es(ke)?Je=ke:ke&&(ro(ne,ke),"x"in ke&&(ne.xOffset=ke.x|0),"y"in ke&&(ne.yOffset=ke.y|0),Es(ke.data)&&(Je=ke.data)),ke.copy){var Ct=vi.viewportWidth,ur=vi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||ur-ne.yOffset,ne.needsCopy=!0}else if(!Je)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(vr(Je))ne.channels=ne.channels||4,ne.data=Je,!("type"in ke)&&ne.type===Oa&&(ne.type=Ts(Je));else if(Pa(Je))ne.channels=ne.channels||4,Ho(ne,Je),ne.alignment=1,ne.needsFree=!0;else if(Vt(Je)){var Sr=Je.data;!Array.isArray(Sr)&&ne.type===Oa&&(ne.type=Ts(Sr));var nr=Je.shape,Qe=Je.stride,pt,Tt,Xt,ir,Kt,ar;nr.length===3?(Xt=nr[2],ar=Qe[2]):(Xt=1,ar=1),pt=nr[0],Tt=nr[1],ir=Qe[0],Kt=Qe[1],ne.alignment=1,ne.width=pt,ne.height=Tt,ne.channels=Xt,ne.format=ne.internalformat=sn[Xt],ne.needsFree=!0,ts(ne,Sr,ir,Kt,ar,Je.offset)}else if(Jo(Je)||Ao(Je)||Dn(Je))Jo(Je)||Ao(Je)?ne.element=Je:ne.element=Je.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Je))ne.element=Je,ne.width=Je.width,ne.height=Je.height,ne.channels=4;else if(Ws(Je))ne.element=Je,ne.width=Je.naturalWidth,ne.height=Je.naturalHeight,ne.channels=4;else if(Ca(Je))ne.element=Je,ne.width=Je.videoWidth,ne.height=Je.videoHeight,ne.channels=4;else if(to(Je)){var Jt=ne.width||Je[0].length,Ft=ne.height||Je.length,Zt=ne.channels;$i(Je[0][0])?Zt=Zt||Je[0][0].length:Zt=Zt||1;for(var Pt=xe.shape(Je),Ar=1,Br=0;Br>=ur,Je.height>>=ur,In(Je,Ct[ur]),ne.mipmask|=1<=0&&!("faces"in ke)&&(ne.genMipmaps=!0)}if("mag"in ke){var Ct=ke.mag;ne.magFilter=Ln[Ct]}var ur=ne.wrapS,Sr=ne.wrapT;if("wrap"in ke){var nr=ke.wrap;typeof nr=="string"?ur=Sr=On[nr]:Array.isArray(nr)&&(ur=On[nr[0]],Sr=On[nr[1]])}else{if("wrapS"in ke){var Qe=ke.wrapS;ur=On[Qe]}if("wrapT"in ke){var pt=ke.wrapT;Sr=On[pt]}}if(ne.wrapS=ur,ne.wrapT=Sr,"anisotropic"in ke){var Tt=ke.anisotropic;ne.anisotropic=ke.anisotropic}if("mipmap"in ke){var Xt=!1;switch(typeof ke.mipmap){case"string":ne.mipmapHint=nn[ke.mipmap],ne.genMipmaps=!0,Xt=!0;break;case"boolean":Xt=ne.genMipmaps=ke.mipmap;break;case"object":ne.genMipmaps=!1,Xt=!0;break;default:}Xt&&!("min"in ke)&&(ne.minFilter=mo)}}function xf(ne,ke){Fe.texParameteri(ke,As,ne.minFilter),Fe.texParameteri(ke,vo,ne.magFilter),Fe.texParameteri(ke,Sa,ne.wrapS),Fe.texParameteri(ke,Qa,ne.wrapT),Bt.ext_texture_filter_anisotropic&&Fe.texParameteri(ke,ha,ne.anisotropic),ne.genMipmaps&&(Fe.hint(Ys,ne.mipmapHint),Fe.generateMipmap(ke))}var Cf=0,Gu={},cf=tr.maxTextureUnits,mf=Array(cf).map(function(){return null});function Fl(ne){Ji.call(this),this.mipmask=0,this.internalformat=Un,this.id=Cf++,this.refCount=1,this.target=ne,this.texture=Fe.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,di.profile&&(this.stats={size:0})}function bf(ne){Fe.activeTexture(Ra),Fe.bindTexture(ne.target,ne.texture)}function cu(){var ne=mf[0];ne?Fe.bindTexture(ne.target,ne.texture):Fe.bindTexture(Xi,null)}function Y(ne){var ke=ne.texture,Je=ne.unit,Ct=ne.target;Je>=0&&(Fe.activeTexture(Ra+Je),Fe.bindTexture(Ct,null),mf[Je]=null),Fe.deleteTexture(ke),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Gu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var ke=ne.unit;if(ke<0){for(var Je=0;Je0)continue;Ct.unit=-1}mf[Je]=ne,ke=Je;break}ke>=cf,di.profile&&fi.maxTextureUnits>Kt)-Xt,ar.height=ar.height||(Je.height>>Kt)-ir,bf(Je),_s(ar,Xi,Xt,ir,Kt),cu(),Mo(ar),Ct}function Sr(nr,Qe){var pt=nr|0,Tt=Qe|0||pt;if(pt===Je.width&&Tt===Je.height)return Ct;Ct.width=Je.width=pt,Ct.height=Je.height=Tt,bf(Je);for(var Xt=0;Je.mipmask>>Xt;++Xt){var ir=pt>>Xt,Kt=Tt>>Xt;if(!ir||!Kt)break;Fe.texImage2D(Xi,Xt,Je.format,ir,Kt,0,Je.format,Je.type,null)}return cu(),di.profile&&(Je.stats.size=Wo(Je.internalformat,Je.type,pt,Tt,!1,!1)),Ct}return Ct(ne,ke),Ct.subimage=ur,Ct.resize=Sr,Ct._reglType="texture2d",Ct._texture=Je,di.profile&&(Ct.stats=Je.stats),Ct.destroy=function(){Je.decRef()},Ct}function J(ne,ke,Je,Ct,ur,Sr){var nr=new Fl(aa);Gu[nr.id]=nr,fi.cubeCount++;var Qe=new Array(6);function pt(ir,Kt,ar,Jt,Ft,Zt){var Pt,Ar=nr.texInfo;for(Cu.call(Ar),Pt=0;Pt<6;++Pt)Qe[Pt]=Ql();if(typeof ir=="number"||!ir){var Br=ir|0||1;for(Pt=0;Pt<6;++Pt)pl(Qe[Pt],Br,Br)}else if(typeof ir=="object")if(Kt)Dl(Qe[0],ir),Dl(Qe[1],Kt),Dl(Qe[2],ar),Dl(Qe[3],Jt),Dl(Qe[4],Ft),Dl(Qe[5],Zt);else if(gf(Ar,ir),ro(nr,ir),"faces"in ir){var ci=ir.faces;for(Pt=0;Pt<6;++Pt)Ui(Qe[Pt],nr),Dl(Qe[Pt],ci[Pt])}else for(Pt=0;Pt<6;++Pt)Dl(Qe[Pt],ir);for(Ui(nr,Qe[0]),Ar.genMipmaps?nr.mipmask=(Qe[0].width<<1)-1:nr.mipmask=Qe[0].mipmask,nr.internalformat=Qe[0].internalformat,pt.width=Qe[0].width,pt.height=Qe[0].height,bf(nr),Pt=0;Pt<6;++Pt)Ou(Qe[Pt],Mn+Pt);for(xf(Ar,aa),cu(),di.profile&&(nr.stats.size=Wo(nr.internalformat,nr.type,pt.width,pt.height,Ar.genMipmaps,!0)),pt.format=dn[nr.internalformat],pt.type=En[nr.type],pt.mag=Zi[Ar.magFilter],pt.min=ga[Ar.minFilter],pt.wrapS=Kn[Ar.wrapS],pt.wrapT=Kn[Ar.wrapT],Pt=0;Pt<6;++Pt)Mf(Qe[Pt]);return pt}function Tt(ir,Kt,ar,Jt,Ft){var Zt=ar|0,Pt=Jt|0,Ar=Ft|0,Br=Qn();return Ui(Br,nr),Br.width=0,Br.height=0,In(Br,Kt),Br.width=Br.width||(nr.width>>Ar)-Zt,Br.height=Br.height||(nr.height>>Ar)-Pt,bf(nr),_s(Br,Mn+ir,Zt,Pt,Ar),cu(),Mo(Br),pt}function Xt(ir){var Kt=ir|0;if(Kt!==nr.width){pt.width=nr.width=Kt,pt.height=nr.height=Kt,bf(nr);for(var ar=0;ar<6;++ar)for(var Jt=0;nr.mipmask>>Jt;++Jt)Fe.texImage2D(Mn+ar,Jt,nr.format,Kt>>Jt,Kt>>Jt,0,nr.format,nr.type,null);return cu(),di.profile&&(nr.stats.size=Wo(nr.internalformat,nr.type,pt.width,pt.height,!1,!0)),pt}}return pt(ne,ke,Je,Ct,ur,Sr),pt.subimage=Tt,pt.resize=Xt,pt._reglType="textureCube",pt._texture=nr,di.profile&&(pt.stats=nr.stats),pt.destroy=function(){nr.decRef()},pt}function B(){for(var ne=0;ne>Ct,Je.height>>Ct,0,Je.internalformat,Je.type,null);else for(var ur=0;ur<6;++ur)Fe.texImage2D(Mn+ur,Ct,Je.internalformat,Je.width>>Ct,Je.height>>Ct,0,Je.internalformat,Je.type,null);xf(Je.texInfo,Je.target)})}function ye(){for(var ne=0;ne=0?Mf=!0:On.indexOf(Cu)>=0&&(Mf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(mf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Ou=Fl.depth:(Cf=Fl.depth,vf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?vf=Fl.stencil:(Gu=Fl.stencil,Ou=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Ou=vf=Fl.depthStencil:(cf=Fl.depthStencil,Ou=!1,vf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(xf),al=0;al0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:al,height:al,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var al=Va.color;for(Qn=0;Qn=al.byteLength?pl.subdata(al):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=vi.create(Qn,Ss,!1,!0)),Mo.buffer=vi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else vi.getBuffer(Qn)?(Mo.buffer=vi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):vi.getBuffer(Qn.buffer)?(Mo.buffer=vi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=Ai[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naWr&&(Wr=gi.stats.uniformsCount)}),Wr},tr.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(gi){gi.stats.attributesCount>Wr&&(Wr=gi.stats.attributesCount)}),Wr});function Ni(){vi={},fi={};for(var Wr=0;Wr16&&(tr=Li(tr,Fe.length*8));for(var Qr=Array(16),vi=Array(16),fi=0;fi<16;fi++)Qr[fi]=tr[fi]^909522486,vi[fi]=tr[fi]^1549556828;var di=Li(Qr.concat(Os(Bt)),512+Bt.length*8);return St(Li(vi.concat(di),768))}function Ms(Fe){for(var Bt=Ro?"0123456789ABCDEF":"0123456789abcdef",tr="",Qr,vi=0;vi>>4&15)+Bt.charAt(Qr&15);return tr}function jo(Fe){for(var Bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tr="",Qr=Fe.length,vi=0;viFe.length*8?tr+=tl:tr+=Bt.charAt(fi>>>6*(3-di)&63);return tr}function Rs(Fe,Bt){var tr=Bt.length,Qr=Array(),vi,fi,di,nn,On=Array(Math.ceil(Fe.length/2));for(vi=0;vi0;){for(nn=Array(),di=0,vi=0;vi0||fi>0)&&(nn[nn.length]=fi);Qr[Qr.length]=di,On=nn}var Ln="";for(vi=Qr.length-1;vi>=0;vi--)Ln+=Bt.charAt(Qr[vi]);var wn=Math.ceil(Fe.length*8/(Math.log(Bt.length)/Math.log(2)));for(vi=Ln.length;vi>>6&31,128|Qr&63):Qr<=65535?Bt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(Bt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return Bt}function Os(Fe){for(var Bt=Array(Fe.length>>2),tr=0;tr>5]|=(Fe.charCodeAt(tr/8)&255)<<24-tr%32;return Bt}function St(Fe){for(var Bt="",tr=0;tr>5]>>>24-tr%32&255);return Bt}function Ut(Fe,Bt){return Fe>>>Bt|Fe<<32-Bt}function xr(Fe,Bt){return Fe>>>Bt}function dr(Fe,Bt,tr){return Fe&Bt^~Fe&tr}function Dr(Fe,Bt,tr){return Fe&Bt^Fe&tr^Bt&tr}function yi(Fe){return Ut(Fe,2)^Ut(Fe,13)^Ut(Fe,22)}function Ti(Fe){return Ut(Fe,6)^Ut(Fe,11)^Ut(Fe,25)}function ki(Fe){return Ut(Fe,7)^Ut(Fe,18)^xr(Fe,3)}function Ki(Fe){return Ut(Fe,17)^Ut(Fe,19)^xr(Fe,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Li(Fe,Bt){var tr=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Fe[Bt>>5]|=128<<24-Bt%32,Fe[(Bt+64>>9<<4)+15]=Bt,ua=0;ua>16)+(Bt>>16)+(tr>>16);return Qr<<16|tr&65535}function Ci(Fe){return Array.prototype.slice.call(Fe)}function Si(Fe){return Ci(Fe).join("")}function Gn(Fe){var Bt=Fe&&Fe.cache,tr=0,Qr=[],vi=[],fi=[];function di(Ni,Wr){var gi=Wr&&Wr.stable;if(!gi){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Ci(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([gi.length>0?"var "+gi.join(",")+";":"",Si(Ni)])}})}function On(){var Ni=nn(),Wr=nn(),gi=Ni.toString,dn=Wr.toString;function En(Zi,ga){Wr(Zi,ga,"=",Ni.def(Zi,ga),";")}return e(function(){Ni.apply(Ni,Ci(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Zi,ga,Kn){En(Zi,ga),Ni(Zi,ga,"=",Kn,";")},toString:function(){return gi()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=On(),gi=On(),dn=Wr.toString,En=gi.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Ci(arguments)),this},else:function(){return gi.apply(gi,Ci(arguments)),this},toString:function(){var Zi=En();return Zi&&(Zi="else{"+Zi+"}"),Si(["if(",Ni,"){",dn(),"}",Zi])}})}var wn=nn(),Ls={};function ua(Ni,Wr){var gi=[];function dn(){var hs="a"+gi.length;return gi.push(hs),hs}Wr=Wr||0;for(var En=0;En":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Pi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ji={cw:ke,ccw:Ye};function pn(Fe){return Array.isArray(Fe)||vr(Fe)||Vt(Fe)}function an(Fe){return Fe.sort(function(Bt,tr){return Bt===ee?-1:tr===ee?1:Bt=1,Qr>=2,Bt)}else if(tr===Ks){var vi=Fe.data;return new bi(vi.thisDep,vi.contextDep,vi.propDep,Bt)}else{if(tr===dl)return new bi(!1,!1,!1,Bt);if(tr===xl){for(var fi=!1,di=!1,nn=!1,On=0;On=1&&(di=!0),wn>=2&&(nn=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,di=di||Ln.data.contextDep,nn=nn||Ln.data.propDep)}return new bi(fi,di,nn,Bt)}else return new bi(tr===Cs,tr===is,tr===zn,Bt)}}var js=new bi(!1,!1,!1,function(){});function El(Fe,Bt,tr,Qr,vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr){var gi=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};tr.ext_blend_minmax&&(dn.min=nt,dn.max=ut);var En=tr.angle_instanced_arrays,Zi=tr.webgl_draw_buffers,ga=tr.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},Ji=[],Ui={},ro={};function na(Qe){return Qe.replace(".","_")}function Bn(Qe,pt,Tt){var Xt=na(Qe);Ji.push(Qe),hs[Xt]=Kn[Xt]=!!Tt,Ui[Xt]=pt}function In(Qe,pt,Tt){var Xt=na(Qe);Ji.push(Qe),Array.isArray(Tt)?(Kn[Xt]=Tt.slice(),hs[Xt]=Tt.slice()):Kn[Xt]=hs[Xt]=Tt,ro[Xt]=pt}function Va(Qe){return!!isNaN(Qe)}Bn(Bl,cn),Bn(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,lr,Cr,lr]),Bn(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),Bn(ll,si),In(nl,"cullFace",le),In(zl,zl,Ye),In(Ml,Ml,1),Bn(Dl,Fo),In(Al,"polygonOffset",[0,0]),Bn(Ll,vl),Bn(ms,Us),In(Bs,"sampleCoverage",[1,!1]),Bn(Xl,Zn),In(Gl,"stencilMask",-1),In(Nl,"stencilFunc",[Ht,0,-1]),In(ue,"stencilOpSeparate",[Z,wt,wt,wt]),In(w,"stencilOpSeparate",[le,wt,wt,wt]),Bn(q,Ua),In(Q,"scissor",[0,0,Fe.drawingBufferWidth,Fe.drawingBufferHeight]),In(ee,ee,[0,0,Fe.drawingBufferWidth,Fe.drawingBufferHeight]);var _s={gl:Fe,context:ua,strings:Bt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:vi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:On,framebuffer:nn,extensions:tr,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:pi,blendFuncs:un,blendEquations:dn,stencilOps:Pi,glTypes:Ai,orientationType:ji};Zi&&(ul.backBuffer=[le],ul.drawBuffer=S(Qr.maxDrawbuffers,function(Qe){return Qe===0?[0]:S(Qe,function(pt){return Oi+pt})}));var Qn=0;function Mo(){var Qe=Gn({cache:Ni}),pt=Qe.link,Tt=Qe.global;Qe.id=Qn++,Qe.batchId="0";var Xt=pt(_s),ir=Qe.shared={props:"a0"};Object.keys(_s).forEach(function(Zt){ir[Zt]=Tt.def(Xt,".",Zt)});var Kt=Qe.next={},ar=Qe.current={};Object.keys(ro).forEach(function(Zt){Array.isArray(Kn[Zt])&&(Kt[Zt]=Tt.def(ir.next,".",Zt),ar[Zt]=Tt.def(ir.current,".",Zt))});var Jt=Qe.constants={};Object.keys(ul).forEach(function(Zt){Jt[Zt]=Tt.def(JSON.stringify(ul[Zt]))}),Qe.invoke=function(Zt,Pt){switch(Pt.type){case va:var Ar=["this",ir.context,ir.props,Qe.batchId];return Zt.def(pt(Pt.data),".call(",Ar.slice(0,Math.max(Pt.data.length+1,4)),")");case zn:return Zt.def(ir.props,Pt.data);case is:return Zt.def(ir.context,Pt.data);case Cs:return Zt.def("this",Pt.data);case Ks:return Pt.data.append(Qe,Zt),Pt.data.ref;case dl:return Pt.data.toString();case xl:return Pt.data.map(function(Br){return Qe.invoke(Zt,Br)})}},Qe.attribCache={};var Ft={};return Qe.scopeAttrib=function(Zt){var Pt=Bt.id(Zt);if(Pt in Ft)return Ft[Pt];var Ar=Ln.scope[Pt];Ar||(Ar=Ln.scope[Pt]=new gi);var Br=Ft[Pt]=pt(Ar);return Br},Qe}function al(Qe){var pt=Qe.static,Tt=Qe.dynamic,Xt;if(fe in pt){var ir=!!pt[fe];Xt=no(function(ar,Jt){return ir}),Xt.enable=ir}else if(fe in Tt){var Kt=Tt[fe];Xt=Xo(Kt,function(ar,Jt){return ar.invoke(Jt,Kt)})}return Xt}function pl(Qe,pt){var Tt=Qe.static,Xt=Qe.dynamic;if(Ue in Tt){var ir=Tt[Ue];return ir?(ir=nn.getFramebuffer(ir),no(function(ar,Jt){var Ft=ar.link(ir),Zt=ar.shared;Jt.set(Zt.framebuffer,".next",Ft);var Pt=Zt.context;return Jt.set(Pt,"."+Ge,Ft+".width"),Jt.set(Pt,"."+ft,Ft+".height"),Ft})):no(function(ar,Jt){var Ft=ar.shared;Jt.set(Ft.framebuffer,".next","null");var Zt=Ft.context;return Jt.set(Zt,"."+Ge,Zt+"."+er),Jt.set(Zt,"."+ft,Zt+"."+sr),"null"})}else if(Ue in Xt){var Kt=Xt[Ue];return Xo(Kt,function(ar,Jt){var Ft=ar.invoke(Jt,Kt),Zt=ar.shared,Pt=Zt.framebuffer,Ar=Jt.def(Pt,".getFramebuffer(",Ft,")");Jt.set(Pt,".next",Ar);var Br=Zt.context;return Jt.set(Br,"."+Ge,Ar+"?"+Ar+".width:"+Br+"."+er),Jt.set(Br,"."+ft,Ar+"?"+Ar+".height:"+Br+"."+sr),Ar})}else return null}function Rl(Qe,pt,Tt){var Xt=Qe.static,ir=Qe.dynamic;function Kt(Ft){if(Ft in Xt){var Zt=Xt[Ft],Pt=!0,Ar=Zt.x|0,Br=Zt.y|0,ci,Cn;return"width"in Zt?ci=Zt.width|0:Pt=!1,"height"in Zt?Cn=Zt.height|0:Pt=!1,new bi(!Pt&&pt&&pt.thisDep,!Pt&&pt&&pt.contextDep,!Pt&&pt&&pt.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Zt||(Pn=ca.def(Tn,".",Ge,"-",Ar));var Nn=Cn;return"height"in Zt||(Nn=ca.def(Tn,".",ft,"-",Br)),[Ar,Br,Pn,Nn]})}else if(Ft in ir){var Yi=ir[Ft],yn=Xo(Yi,function(Xa,ca){var Tn=Xa.invoke(ca,Yi),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",Ge,"-",Nn,")"),iu=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",ft,"-",xa,")");return[Nn,xa,Zo,iu]});return pt&&(yn.thisDep=yn.thisDep||pt.thisDep,yn.contextDep=yn.contextDep||pt.contextDep,yn.propDep=yn.propDep||pt.propDep),yn}else return pt?new bi(pt.thisDep,pt.contextDep,pt.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",Ge),ca.def(Tn,".",ft)]}):null}var ar=Kt(ee);if(ar){var Jt=ar;ar=new bi(ar.thisDep,ar.contextDep,ar.propDep,function(Ft,Zt){var Pt=Jt.append(Ft,Zt),Ar=Ft.shared.context;return Zt.set(Ar,"."+ot,Pt[2]),Zt.set(Ar,"."+mt,Pt[3]),Pt})}return{viewport:ar,scissor_box:Kt(Q)}}function Ou(Qe,pt){var Tt=Qe.static,Xt=typeof Tt[yt]=="string"&&typeof Tt[at]=="string";if(Xt){if(Object.keys(pt.dynamic).length>0)return null;var ir=pt.static,Kt=Object.keys(ir);if(Kt.length>0&&typeof ir[Kt[0]]=="number"){for(var ar=[],Jt=0;Jt"+Nn+"?"+Pt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Pt,".buffer)){",Xa,"=",Cn,".createStream(",Ir,",",Pt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Pt,".buffer);","}",ca,'="type" in ',Pt,"?",Br.glTypes,"[",Pt,".type]:",Xa,".dtype;",Yi.normalized,"=!!",Pt,".normalized;");function Tn(Pn){Zt(Yi[Pn],"=",Pt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Zt("}}"),Zt.exit("if(",Yi.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Yi}ir[Kt]=Xo(ar,Jt)}),ir}function xf(Qe){var pt=Qe.static,Tt=Qe.dynamic,Xt={};return Object.keys(pt).forEach(function(ir){var Kt=pt[ir];Xt[ir]=no(function(ar,Jt){return typeof Kt=="number"||typeof Kt=="boolean"?""+Kt:ar.link(Kt)})}),Object.keys(Tt).forEach(function(ir){var Kt=Tt[ir];Xt[ir]=Xo(Kt,function(ar,Jt){return ar.invoke(Jt,Kt)})}),Xt}function Cf(Qe,pt,Tt,Xt,ir){var Kt=Qe.static,ar=Qe.dynamic,Jt=Ou(Qe,pt),Ft=pl(Qe,ir),Zt=Rl(Qe,Ft,ir),Pt=Ql(Qe,ir),Ar=Ef(Qe,ir),Br=vf(Qe,ir,Jt);function ci(Tn){var Pn=Zt[Tn];Pn&&(Ar[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Ar).length>0,Yi={framebuffer:Ft,draw:Pt,shader:Br,state:Ar,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Yi.profile=al(Qe,ir),Yi.uniforms=Cu(Tt,ir),Yi.drawVAO=Yi.scopeVAO=Pt.vao,!Yi.drawVAO&&Br.program&&!Jt&&tr.angle_instanced_arrays&&Pt.static.elements){var yn=!0,Xa=Br.program.attributes.map(function(Tn){var Pn=pt.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Pt.static.elements}));Yi.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Yi.useVAO=!0}}return Jt?Yi.useVAO=!0:Yi.attributes=gf(pt,ir),Yi.context=xf(Xt,ir),Yi}function Gu(Qe,pt,Tt){var Xt=Qe.shared,ir=Xt.context,Kt=Qe.scope();Object.keys(Tt).forEach(function(ar){pt.save(ir,"."+ar);var Jt=Tt[ar],Ft=Jt.append(Qe,pt);Array.isArray(Ft)?Kt(ir,".",ar,"=[",Ft.join(),"];"):Kt(ir,".",ar,"=",Ft,";")}),pt(Kt)}function cf(Qe,pt,Tt,Xt){var ir=Qe.shared,Kt=ir.gl,ar=ir.framebuffer,Jt;Zi&&(Jt=pt.def(ir.extensions,".webgl_draw_buffers"));var Ft=Qe.constants,Zt=Ft.drawBuffer,Pt=Ft.backBuffer,Ar;Tt?Ar=Tt.append(Qe,pt):Ar=pt.def(ar,".next"),Xt||pt("if(",Ar,"!==",ar,".cur){"),pt("if(",Ar,"){",Kt,".bindFramebuffer(",$r,",",Ar,".framebuffer);"),Zi&&pt(Jt,".drawBuffersWEBGL(",Zt,"[",Ar,".colorAttachments.length]);"),pt("}else{",Kt,".bindFramebuffer(",$r,",null);"),Zi&&pt(Jt,".drawBuffersWEBGL(",Pt,");"),pt("}",ar,".cur=",Ar,";"),Xt||pt("}")}function mf(Qe,pt,Tt){var Xt=Qe.shared,ir=Xt.gl,Kt=Qe.current,ar=Qe.next,Jt=Xt.current,Ft=Xt.next,Zt=Qe.cond(Jt,".dirty");Ji.forEach(function(Pt){var Ar=na(Pt);if(!(Ar in Tt.state)){var Br,ci;if(Ar in ar){Br=ar[Ar],ci=Kt[Ar];var Cn=S(Kn[Ar].length,function(yn){return Zt.def(Br,"[",yn,"]")});Zt(Qe.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(ir,".",ro[Ar],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Br=Zt.def(Ft,".",Ar);var Yi=Qe.cond(Br,"!==",Jt,".",Ar);Zt(Yi),Ar in Ui?Yi(Qe.cond(Br).then(ir,".enable(",Ui[Ar],");").else(ir,".disable(",Ui[Ar],");"),Jt,".",Ar,"=",Br,";"):Yi(ir,".",ro[Ar],"(",Br,");",Jt,".",Ar,"=",Br,";")}}}),Object.keys(Tt.state).length===0&&Zt(Jt,".dirty=false;"),pt(Zt)}function Fl(Qe,pt,Tt,Xt){var ir=Qe.shared,Kt=Qe.current,ar=ir.current,Jt=ir.gl,Ft;an(Object.keys(Tt)).forEach(function(Zt){var Pt=Tt[Zt];if(!(Xt&&!Xt(Pt))){var Ar=Pt.append(Qe,pt);if(Ui[Zt]){var Br=Ui[Zt];xo(Pt)?(Ft=Qe.link(Ar,{stable:!0}),pt(Qe.cond(Ft).then(Jt,".enable(",Br,");").else(Jt,".disable(",Br,");")),pt(ar,".",Zt,"=",Ft,";")):(pt(Qe.cond(Ar).then(Jt,".enable(",Br,");").else(Jt,".disable(",Br,");")),pt(ar,".",Zt,"=",Ar,";"))}else if($i(Ar)){var ci=Kt[Zt];pt(Jt,".",ro[Zt],"(",Ar,");",Ar.map(function(Cn,Yi){return ci+"["+Yi+"]="+Cn}).join(";"),";")}else xo(Pt)?(Ft=Qe.link(Ar,{stable:!0}),pt(Jt,".",ro[Zt],"(",Ft,");",ar,".",Zt,"=",Ft,";")):pt(Jt,".",ro[Zt],"(",Ar,");",ar,".",Zt,"=",Ar,";")}})}function bf(Qe,pt){En&&(Qe.instancing=pt.def(Qe.shared.extensions,".angle_instanced_arrays"))}function cu(Qe,pt,Tt,Xt,ir){var Kt=Qe.shared,ar=Qe.stats,Jt=Kt.current,Ft=Kt.timer,Zt=Tt.profile;function Pt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Ar,Br;function ci(Tn){Ar=pt.def(),Tn(Ar,"=",Pt(),";"),typeof ir=="string"?Tn(ar,".count+=",ir,";"):Tn(ar,".count++;"),Hn&&(Xt?(Br=pt.def(),Tn(Br,"=",Ft,".getNumPendingQueries();")):Tn(Ft,".beginQuery(",ar,");"))}function Cn(Tn){Tn(ar,".cpuTime+=",Pt(),"-",Ar,";"),Hn&&(Xt?Tn(Ft,".pushScopeStats(",Br,",",Ft,".getNumPendingQueries(),",ar,");"):Tn(Ft,".endQuery();"))}function Yi(Tn){var Pn=pt.def(Jt,".profile");pt(Jt,".profile=",Tn,";"),pt.exit(Jt,".profile=",Pn,";")}var yn;if(Zt){if(xo(Zt)){Zt.enable?(ci(pt),Cn(pt.exit),Yi("true")):Yi("false");return}yn=Zt.append(Qe,pt),Yi(yn)}else yn=pt.def(Jt,".profile");var Xa=Qe.block();ci(Xa),pt("if(",yn,"){",Xa,"}");var ca=Qe.block();Cn(ca),pt.exit("if(",yn,"){",ca,"}")}function Y(Qe,pt,Tt,Xt,ir){var Kt=Qe.shared;function ar(Ft){switch(Ft){case au:case ou:case Hu:return 2;case Sl:case Pu:case $u:return 3;case Yl:case nu:case Ku:return 4;default:return 1}}function Jt(Ft,Zt,Pt){var Ar=Kt.gl,Br=pt.def(Ft,".location"),ci=pt.def(Kt.attributes,"[",Br,"]"),Cn=Pt.state,Yi=Pt.buffer,yn=[Pt.x,Pt.y,Pt.z,Pt.w],Xa=["buffer","normalized","offset","stride"];function ca(){pt("if(!",ci,".buffer){",Ar,".enableVertexAttribArray(",Br,");}");var Pn=Pt.type,Nn;if(Pt.size?Nn=pt.def(Pt.size,"||",Zt):Nn=Zt,pt("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Pt[Zo]}).join("||"),"){",Ar,".bindBuffer(",Ir,",",Yi,".buffer);",Ar,".vertexAttribPointer(",[Br,Nn,Pn,Pt.normalized,Pt.stride,Pt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Pt[Zo]+";"}).join(""),"}"),En){var xa=Pt.divisor;pt("if(",ci,".divisor!==",xa,"){",Qe.instancing,".vertexAttribDivisorANGLE(",[Br,xa],");",ci,".divisor=",xa,";}")}}function Tn(){pt("if(",ci,".buffer){",Ar,".disableVertexAttribArray(",Br,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Ar,".vertexAttrib4f(",Br,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(pt("if(",Cn,"===",ia,"){"),ca(),pt("}else{"),Tn(),pt("}"))}Xt.forEach(function(Ft){var Zt=Ft.name,Pt=Tt.attributes[Zt],Ar;if(Pt){if(!ir(Pt))return;Ar=Pt.append(Qe,pt)}else{if(!ir(js))return;var Br=Qe.scopeAttrib(Zt);Ar={},Object.keys(new gi).forEach(function(ci){Ar[ci]=pt.def(Br,".",ci)})}Jt(Qe.link(Ft),ar(Ft.info.type),Ar)})}function D(Qe,pt,Tt,Xt,ir,Kt){for(var ar=Qe.shared,Jt=ar.gl,Ft,Zt=0;Zt1){for(var yu=[],Fu=[],vu=0;vu>1)",Yi],");")}function xa(){Tt(yn,".drawArraysInstancedANGLE(",[Br,ci,Cn,Yi],");")}Pt&&Pt!=="null"?ca?Nn():(Tt("if(",Pt,"){"),Nn(),Tt("}else{"),xa(),Tt("}")):xa()}function Pn(){function Nn(){Tt(Kt+".drawElements("+[Br,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){Tt(Kt+".drawArrays("+[Br,ci,Cn]+");")}Pt&&Pt!=="null"?ca?Nn():(Tt("if(",Pt,"){"),Nn(),Tt("}else{"),xa(),Tt("}")):xa()}En&&(typeof Yi!="number"||Yi>=0)?typeof Yi=="string"?(Tt("if(",Yi,">0){"),Tn(),Tt("}else if(",Yi,"<0){"),Pn(),Tt("}")):Tn():Pn()}function B(Qe,pt,Tt,Xt,ir){var Kt=Mo(),ar=Kt.proc("body",ir);return En&&(Kt.instancing=ar.def(Kt.shared.extensions,".angle_instanced_arrays")),Qe(Kt,ar,Tt,Xt),Kt.compile().body}function K(Qe,pt,Tt,Xt){bf(Qe,pt),Tt.useVAO?Tt.drawVAO?pt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,pt),");"):pt(Qe.shared.vao,".setVAO(",Qe.shared.vao,".targetVAO);"):(pt(Qe.shared.vao,".setVAO(null);"),Y(Qe,pt,Tt,Xt.attributes,function(){return!0})),D(Qe,pt,Tt,Xt.uniforms,function(){return!0},!1),J(Qe,pt,pt,Tt)}function ye(Qe,pt){var Tt=Qe.proc("draw",1);bf(Qe,Tt),Gu(Qe,Tt,pt.context),cf(Qe,Tt,pt.framebuffer),mf(Qe,Tt,pt),Fl(Qe,Tt,pt.state),cu(Qe,Tt,pt,!1,!0);var Xt=pt.shader.progVar.append(Qe,Tt);if(Tt(Qe.shared.gl,".useProgram(",Xt,".program);"),pt.shader.program)K(Qe,Tt,pt,pt.shader.program);else{Tt(Qe.shared.vao,".setVAO(null);");var ir=Qe.global.def("{}"),Kt=Tt.def(Xt,".id"),ar=Tt.def(ir,"[",Kt,"]");Tt(Qe.cond(ar).then(ar,".call(this,a0);").else(ar,"=",ir,"[",Kt,"]=",Qe.link(function(Jt){return B(K,Qe,pt,Jt,1)}),"(",Xt,");",ar,".call(this,a0);"))}Object.keys(pt.state).length>0&&Tt(Qe.shared.current,".dirty=true;"),Qe.shared.vao&&Tt(Qe.shared.vao,".setVAO(null);")}function ne(Qe,pt,Tt,Xt){Qe.batchId="a1",bf(Qe,pt);function ir(){return!0}Y(Qe,pt,Tt,Xt.attributes,ir),D(Qe,pt,Tt,Xt.uniforms,ir,!1),J(Qe,pt,pt,Tt)}function Ee(Qe,pt,Tt,Xt){bf(Qe,pt);var ir=Tt.contextDep,Kt=pt.def(),ar="a0",Jt="a1",Ft=pt.def();Qe.shared.props=Ft,Qe.batchId=Kt;var Zt=Qe.scope(),Pt=Qe.scope();pt(Zt.entry,"for(",Kt,"=0;",Kt,"<",Jt,";++",Kt,"){",Ft,"=",ar,"[",Kt,"];",Pt,"}",Zt.exit);function Ar(Xa){return Xa.contextDep&&ir||Xa.propDep}function Br(Xa){return!Ar(Xa)}if(Tt.needsContext&&Gu(Qe,Pt,Tt.context),Tt.needsFramebuffer&&cf(Qe,Pt,Tt.framebuffer),Fl(Qe,Pt,Tt.state,Ar),Tt.profile&&Ar(Tt.profile)&&cu(Qe,Pt,Tt,!1,!0),Xt)Tt.useVAO?Tt.drawVAO?Ar(Tt.drawVAO)?Pt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,Pt),");"):Zt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,Zt),");"):Zt(Qe.shared.vao,".setVAO(",Qe.shared.vao,".targetVAO);"):(Zt(Qe.shared.vao,".setVAO(null);"),Y(Qe,Zt,Tt,Xt.attributes,Br),Y(Qe,Pt,Tt,Xt.attributes,Ar)),D(Qe,Zt,Tt,Xt.uniforms,Br,!1),D(Qe,Pt,Tt,Xt.uniforms,Ar,!0),J(Qe,Zt,Pt,Tt);else{var ci=Qe.global.def("{}"),Cn=Tt.shader.progVar.append(Qe,Pt),Yi=Pt.def(Cn,".id"),yn=Pt.def(ci,"[",Yi,"]");Pt(Qe.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Yi,"]=",Qe.link(function(Xa){return B(ne,Qe,Tt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Kt,"],",Kt,");")}}function Je(Qe,pt){var Tt=Qe.proc("batch",2);Qe.batchId="0",bf(Qe,Tt);var Xt=!1,ir=!0;Object.keys(pt.context).forEach(function(ci){Xt=Xt||pt.context[ci].propDep}),Xt||(Gu(Qe,Tt,pt.context),ir=!1);var Kt=pt.framebuffer,ar=!1;Kt?(Kt.propDep?Xt=ar=!0:Kt.contextDep&&Xt&&(ar=!0),ar||cf(Qe,Tt,Kt)):cf(Qe,Tt,null),pt.state.viewport&&pt.state.viewport.propDep&&(Xt=!0);function Jt(ci){return ci.contextDep&&Xt||ci.propDep}mf(Qe,Tt,pt),Fl(Qe,Tt,pt.state,function(ci){return!Jt(ci)}),(!pt.profile||!Jt(pt.profile))&&cu(Qe,Tt,pt,!1,"a1"),pt.contextDep=Xt,pt.needsContext=ir,pt.needsFramebuffer=ar;var Ft=pt.shader.progVar;if(Ft.contextDep&&Xt||Ft.propDep)Ee(Qe,Tt,pt,null);else{var Zt=Ft.append(Qe,Tt);if(Tt(Qe.shared.gl,".useProgram(",Zt,".program);"),pt.shader.program)Ee(Qe,Tt,pt,pt.shader.program);else{Tt(Qe.shared.vao,".setVAO(null);");var Pt=Qe.global.def("{}"),Ar=Tt.def(Zt,".id"),Br=Tt.def(Pt,"[",Ar,"]");Tt(Qe.cond(Br).then(Br,".call(this,a0,a1);").else(Br,"=",Pt,"[",Ar,"]=",Qe.link(function(ci){return B(Ee,Qe,pt,ci,2)}),"(",Zt,");",Br,".call(this,a0,a1);"))}}Object.keys(pt.state).length>0&&Tt(Qe.shared.current,".dirty=true;"),Qe.shared.vao&&Tt(Qe.shared.vao,".setVAO(null);")}function Ct(Qe,pt){var Tt=Qe.proc("scope",3);Qe.batchId="a2";var Xt=Qe.shared,ir=Xt.current;if(Gu(Qe,Tt,pt.context),pt.framebuffer&&pt.framebuffer.append(Qe,Tt),an(Object.keys(pt.state)).forEach(function(Jt){var Ft=pt.state[Jt],Zt=Ft.append(Qe,Tt);$i(Zt)?Zt.forEach(function(Pt,Ar){Va(Pt)?Tt.set(Qe.next[Jt],"["+Ar+"]",Pt):Tt.set(Qe.next[Jt],"["+Ar+"]",Qe.link(Pt,{stable:!0}))}):xo(Ft)?Tt.set(Xt.next,"."+Jt,Qe.link(Zt,{stable:!0})):Tt.set(Xt.next,"."+Jt,Zt)}),cu(Qe,Tt,pt,!0,!0),[Dt,Mr,rr,Ur,Qt].forEach(function(Jt){var Ft=pt.draw[Jt];if(Ft){var Zt=Ft.append(Qe,Tt);Va(Zt)?Tt.set(Xt.draw,"."+Jt,Zt):Tt.set(Xt.draw,"."+Jt,Qe.link(Zt),{stable:!0})}}),Object.keys(pt.uniforms).forEach(function(Jt){var Ft=pt.uniforms[Jt].append(Qe,Tt);Array.isArray(Ft)&&(Ft="["+Ft.map(function(Zt){return Va(Zt)?Zt:Qe.link(Zt,{stable:!0})})+"]"),Tt.set(Xt.uniforms,"["+Qe.link(Bt.id(Jt),{stable:!0})+"]",Ft)}),Object.keys(pt.attributes).forEach(function(Jt){var Ft=pt.attributes[Jt].append(Qe,Tt),Zt=Qe.scopeAttrib(Jt);Object.keys(new gi).forEach(function(Pt){Tt.set(Zt,"."+Pt,Ft[Pt])})}),pt.scopeVAO){var Kt=pt.scopeVAO.append(Qe,Tt);Va(Kt)?Tt.set(Xt.vao,".targetVAO",Kt):Tt.set(Xt.vao,".targetVAO",Qe.link(Kt,{stable:!0}))}function ar(Jt){var Ft=pt.shader[Jt];if(Ft){var Zt=Ft.append(Qe,Tt);Va(Zt)?Tt.set(Xt.shader,"."+Jt,Zt):Tt.set(Xt.shader,"."+Jt,Qe.link(Zt,{stable:!0}))}}ar(at),ar(yt),Object.keys(pt.state).length>0&&(Tt(ir,".dirty=true;"),Tt.exit(ir,".dirty=true;")),Tt("a1(",Qe.shared.context,",a0,",Qe.batchId,");")}function ur(Qe){if(!(typeof Qe!="object"||$i(Qe))){for(var pt=Object.keys(Qe),Tt=0;Tt=0;--B){var K=_s[B];K&&K(Ni,null,0)}tr.flush(),wn&&wn.update()}function Rl(){!al&&_s.length>0&&(al=d.next(pl))}function Ou(){al&&(d.cancel(pl),al=null)}function vf(B){B.preventDefault(),vi=!0,Ou(),ul.forEach(function(K){K()})}function Ql(B){tr.getError(),vi=!1,fi.restore(),hs.restore(),En.restore(),Ji.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Rl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,vf,!1),Va.addEventListener(Tu,Ql,!1));function Ef(){_s.length=0,Ou(),Va&&(Va.removeEventListener(Au,vf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),Ji.clear(),Zi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(B){B()})}function Cu(B){function K(Kt){var ar=e({},Kt);delete ar.uniforms,delete ar.attributes,delete ar.context,delete ar.vao,"stencil"in ar&&ar.stencil.op&&(ar.stencil.opBack=ar.stencil.opFront=ar.stencil.op,delete ar.stencil.op);function Jt(Ft){if(Ft in ar){var Zt=ar[Ft];delete ar[Ft],Object.keys(Zt).forEach(function(Pt){ar[Ft+"."+Pt]=Zt[Pt]})}}return Jt("blend"),Jt("depth"),Jt("cull"),Jt("stencil"),Jt("polygonOffset"),Jt("scissor"),Jt("sample"),"vao"in Kt&&(ar.vao=Kt.vao),ar}function ye(Kt,ar){var Jt={},Ft={};return Object.keys(Kt).forEach(function(Zt){var Pt=Kt[Zt];if(h.isDynamic(Pt)){Ft[Zt]=h.unbox(Pt,Zt);return}else if(ar&&Array.isArray(Pt)){for(var Ar=0;Ar0)return Qe.call(this,Xt(Kt|0),Kt|0)}else if(Array.isArray(Kt)){if(Kt.length)return Qe.call(this,Kt,Kt.length)}else return nr.call(this,Kt)}return e(ir,{stats:ur,destroy:function(){Sr.destroy()}})}var gf=ro.setFBO=Cu({framebuffer:h.define.call(null,lf,"framebuffer")});function xf(B,K){var ye=0;na.procs.poll();var ne=K.color;ne&&(tr.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),ye|=Vu),"depth"in K&&(tr.clearDepth(+K.depth),ye|=tf),"stencil"in K&&(tr.clearStencil(K.stencil|0),ye|=ds),tr.clear(ye)}function Cf(B){if("framebuffer"in B)if(B.framebuffer&&B.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)gf(e({framebuffer:B.framebuffer.faces[K]},B),xf);else gf(B,xf);else xf(null,B)}function Gu(B){_s.push(B);function K(){var ye=pf(_s,B);function ne(){var Ee=pf(_s,ne);_s[Ee]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Ou()}_s[ye]=ne}return Rl(),{cancel:K}}function cf(){var B=In.viewport,K=In.scissor_box;B[0]=B[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=B[2]=K[2]=tr.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=B[3]=K[3]=tr.drawingBufferHeight}function mf(){Ni.tick+=1,Ni.time=bf(),cf(),na.procs.poll()}function Fl(){Ji.refresh(),cf(),na.procs.refresh(),wn&&wn.update()}function bf(){return(p()-Ls)/1e3}Fl();function cu(B,K){var ye;switch(B){case"frame":return Gu(K);case"lost":ye=ul;break;case"restore":ye=Qn;break;case"destroy":ye=Mo;break;default:}return ye.push(K),{cancel:function(){for(var ne=0;ne=0},read:Bn,destroy:Ef,_gl:tr,_refresh:Fl,poll:function(){mf(),wn&&wn.update()},now:bf,stats:nn,getCachedCode:Y,preloadCachedCode:D});return Bt.onDone(null,J),J}return fc})});var hNe=we((Kxr,cNe)=>{"use strict";var cVt=tg();cNe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},uNe(t)?t={container:t}:hVt(t)?t={container:t}:dVt(t)?t={gl:t}:t=cVt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}uNe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=fNe(),t.container.appendChild(t.canvas),lNe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=fNe(),t.container.appendChild(t.canvas),lNe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function lNe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function uNe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function hVt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function dVt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function fNe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var pNe=we((Jxr,dNe)=>{"use strict";var pVt=gK(),vVt=[32,126];dNe.exports=mVt;function mVt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||vVt;if(n&&typeof n!="string"&&(n=pVt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],u=0;s<=a[1];s++)o[u++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var l=r.getContext("2d");l.fillStyle="#000",l.fillRect(0,0,r.width,r.height),l.font=n,l.textAlign="center",l.textBaseline="middle",l.fillStyle="#fff";for(var f=i[0]/2,c=i[1]/2,s=0;st[0]-i[0]/2&&(f=i[0]/2,c+=i[1]);return r}});var wK=we(Zh=>{"use strict";"use restrict";var bK=32;Zh.INT_BITS=bK;Zh.INT_MAX=2147483647;Zh.INT_MIN=-1<0)-(e<0)};Zh.abs=function(e){var t=e>>bK-1;return(e^t)-t};Zh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Zh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Zh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function vNe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Zh.countTrailingZeros=vNe;Zh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Zh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Zh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Rk=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|Rk[e>>>16&255]<<8|Rk[e>>>24&255]};Zh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Zh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Zh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Zh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Zh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>vNe(e)+1}});var gNe=we((Qxr,yNe)=>{"use strict";function mNe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return yVt(e|0,t);break;case"object":if(typeof e.length=="number")return mNe(e,t,0);break}return[]}yNe.exports=gVt});var INe=we(rc=>{"use strict";var bx=wK(),Cp=gNe(),_Ne=b2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Cp([32,0]),UINT16:Cp([32,0]),UINT32:Cp([32,0]),BIGUINT64:Cp([32,0]),INT8:Cp([32,0]),INT16:Cp([32,0]),INT32:Cp([32,0]),BIGINT64:Cp([32,0]),FLOAT:Cp([32,0]),DOUBLE:Cp([32,0]),DATA:Cp([32,0]),UINT8C:Cp([32,0]),BUFFER:Cp([32,0])});var _Vt=typeof Uint8ClampedArray!="undefined",xVt=typeof BigUint64Array!="undefined",bVt=typeof BigInt64Array!="undefined",ld=window.__TYPEDARRAY_POOL;ld.UINT8C||(ld.UINT8C=Cp([32,0]));ld.BIGUINT64||(ld.BIGUINT64=Cp([32,0]));ld.BIGINT64||(ld.BIGINT64=Cp([32,0]));ld.BUFFER||(ld.BUFFER=Cp([32,0]));var S9=ld.DATA,M9=ld.BUFFER;rc.free=function(t){if(_Ne.isBuffer(t))M9[bx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=bx.log2(r)|0;S9[n].push(t)}};function xNe(e){if(e){var t=e.length||e.byteLength,r=bx.log2(t);S9[r].push(e)}}function wVt(e){xNe(e.buffer)}rc.freeUint8=rc.freeUint16=rc.freeUint32=rc.freeBigUint64=rc.freeInt8=rc.freeInt16=rc.freeInt32=rc.freeBigInt64=rc.freeFloat32=rc.freeFloat=rc.freeFloat64=rc.freeDouble=rc.freeUint8Clamped=rc.freeDataView=wVt;rc.freeArrayBuffer=xNe;rc.freeBuffer=function(t){M9[bx.log2(t.length)].push(t)};rc.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qv(t);switch(r){case"uint8":return AK(t);case"uint16":return bNe(t);case"uint32":return wNe(t);case"int8":return ANe(t);case"int16":return TNe(t);case"int32":return SNe(t);case"float":case"float32":return MNe(t);case"double":case"float64":return ENe(t);case"uint8_clamped":return kNe(t);case"bigint64":return LNe(t);case"biguint64":return CNe(t);case"buffer":return zNe(t);case"data":case"dataview":return PNe(t);default:return null}return null};function qv(t){var t=bx.nextPow2(t),r=bx.log2(t),n=S9[r];return n.length>0?n.pop():new ArrayBuffer(t)}rc.mallocArrayBuffer=qv;function AK(e){return new Uint8Array(qv(e),0,e)}rc.mallocUint8=AK;function bNe(e){return new Uint16Array(qv(2*e),0,e)}rc.mallocUint16=bNe;function wNe(e){return new Uint32Array(qv(4*e),0,e)}rc.mallocUint32=wNe;function ANe(e){return new Int8Array(qv(e),0,e)}rc.mallocInt8=ANe;function TNe(e){return new Int16Array(qv(2*e),0,e)}rc.mallocInt16=TNe;function SNe(e){return new Int32Array(qv(4*e),0,e)}rc.mallocInt32=SNe;function MNe(e){return new Float32Array(qv(4*e),0,e)}rc.mallocFloat32=rc.mallocFloat=MNe;function ENe(e){return new Float64Array(qv(8*e),0,e)}rc.mallocFloat64=rc.mallocDouble=ENe;function kNe(e){return _Vt?new Uint8ClampedArray(qv(e),0,e):AK(e)}rc.mallocUint8Clamped=kNe;function CNe(e){return xVt?new BigUint64Array(qv(8*e),0,e):null}rc.mallocBigUint64=CNe;function LNe(e){return bVt?new BigInt64Array(qv(8*e),0,e):null}rc.mallocBigInt64=LNe;function PNe(e){return new DataView(qv(e),0,e)}rc.mallocDataView=PNe;function zNe(e){e=bx.nextPow2(e);var t=bx.log2(e),r=M9[t];return r.length>0?r.pop():new _Ne(e)}rc.mallocBuffer=zNe;rc.clearCache=function(){for(var t=0;t<32;++t)ld.UINT8[t].length=0,ld.UINT16[t].length=0,ld.UINT32[t].length=0,ld.INT8[t].length=0,ld.INT16[t].length=0,ld.INT32[t].length=0,ld.FLOAT[t].length=0,ld.DOUBLE[t].length=0,ld.BIGUINT64[t].length=0,ld.BIGINT64[t].length=0,ld.UINT8C[t].length=0,S9[t].length=0,M9[t].length=0}});var RNe=we((tbr,DNe)=>{"use strict";var AVt=Object.prototype.toString;DNe.exports=function(e){var t;return AVt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var TK=we((rbr,FNe)=>{FNe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var qNe=we((ibr,BNe)=>{"use strict";var TVt=TK();BNe.exports=ONe;var Fk=96;function SK(e,t){var r=TVt(getComputedStyle(e).getPropertyValue(t));return r[0]*ONe(r[1],e)}function SVt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=SK(r,"font-size")/128;return t.removeChild(r),n}function ONe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return SVt(e,t);case"em":return SK(t,"font-size");case"rem":return SK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Fk;case"cm":return Fk/2.54;case"mm":return Fk/25.4;case"pt":return Fk/72;case"pc":return Fk/6}return 1}});var VNe=we((nbr,UNe)=>{"use strict";UNe.exports=C9;var MVt=C9.canvas=document.createElement("canvas"),E9=MVt.getContext("2d"),NNe=k9([32,126]);C9.createPairs=k9;C9.ascii=NNe;function C9(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=k9(t):Array.isArray(t)?n=t:(t.o?n=k9(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=NNe),E9.font=i+"px "+e;for(var o=0;oi*a){var f=(l-u)/i;r[s]=f*1e3}}return r}function k9(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";WNe.exports=wx;wx.canvas=document.createElement("canvas");wx.cache={};function wx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(wx.cache[r]&&n<=wx.cache[r].em)return GNe(wx.cache[r],s);var u=t.canvas||wx.canvas,l=u.getContext("2d"),f={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},c=Math.ceil(n*1.5);u.height=c,u.width=c*.5,l.font=o;var h="H",d={top:0};l.clearRect(0,0,c,c),l.textBaseline="top",l.fillStyle="black",l.fillText(h,0,0);var p=ig(l.getImageData(0,0,c,c));l.clearRect(0,0,c,c),l.textBaseline="bottom",l.fillText(h,0,c);var y=ig(l.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-y+p,l.clearRect(0,0,c,c),l.textBaseline="alphabetic",l.fillText(h,0,c);var b=ig(l.getImageData(0,0,c,c)),v=c-b-1+p;d.baseline=d.alphabetic=v,l.clearRect(0,0,c,c),l.textBaseline="middle",l.fillText(h,0,c*.5);var C=ig(l.getImageData(0,0,c,c));d.median=d.middle=c-C-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="hanging",l.fillText(h,0,c*.5);var M=ig(l.getImageData(0,0,c,c));d.hanging=c-M-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="ideographic",l.fillText(h,0,c);var A=ig(l.getImageData(0,0,c,c));if(d.ideographic=c-A-1+p,f.upper&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.upper,0,0),d.upper=ig(l.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.lower,0,0),d.lower=ig(l.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.tittle,0,0),d.tittle=ig(l.getImageData(0,0,c,c))),f.ascent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.ascent,0,0),d.ascent=ig(l.getImageData(0,0,c,c))),f.descent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.descent,0,0),d.descent=HNe(l.getImageData(0,0,c,c))),f.overshoot){l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.overshoot,0,0);var L=HNe(l.getImageData(0,0,c,c));d.overshoot=L-v}for(var x in d)d[x]/=n;return d.em=n,wx.cache[r]=d,GNe(d,s)}function GNe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function ig(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var KNe=we((obr,YNe)=>{"use strict";var xS=oNe(),EVt=tg(),kVt=sNe(),CVt=hNe(),LVt=nK(),MK=sx(),PVt=pNe(),Ax=INe(),zVt=lS(),IVt=RNe(),DVt=TK(),RVt=qNe(),FVt=VNe(),OVt=jh(),BVt=jNe(),qVt=aw(),NVt=wK(),XNe=NVt.nextPow2,ZNe=new LVt,P9=!1;document.body&&(L9=document.body.appendChild(document.createElement("div")),L9.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(L9).fontStretch&&(P9=!0),document.body.removeChild(L9));var L9,kc=function(t){UVt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=CVt(t),this.shader=ZNe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||kVt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),ZNe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(IVt(t)?t:{})};kc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` +`),gi;if(Bt&&(gi=Fs(Wr),Bt[gi]))return Bt[gi].apply(null,vi);var dn=Function.apply(null,Qr.concat(Wr));return Bt&&(Bt[gi]=dn),dn.apply(null,vi)}return{global:wn,link:di,block:nn,proc:ua,scope:On,cond:Ln,compile:Hn}}var ta="xyzw".split(""),ya=5121,ia=1,pa=2,va=0,zn=1,is=2,Cs=3,Ks=4,dl=5,xl=6,Bl="dither",bl="blend.enable",eu="blend.color",Zl="blend.equation",Vl="blend.func",ja="depth.enable",ns="depth.func",Js="depth.range",cs="depth.mask",sl="colorMask",ll="cull.enable",nl="cull.face",zl="frontFace",Ml="lineWidth",Rl="polygonOffset.enable",Al="polygonOffset.offset",Ll="sample.alpha",ms="sample.enable",Bs="sample.coverage",Xl="stencil.enable",Gl="stencil.mask",Nl="stencil.func",ue="stencil.opFront",w="stencil.opBack",q="scissor.enable",Q="scissor.box",ee="viewport",fe="profile",Ue="framebuffer",at="vert",yt="frag",Rt="elements",Qt="primitive",rr="count",Mr="offset",Ur="instances",he="vao",Ae="Width",qe="Height",Ge=Ue+Ae,ft=Ue+qe,ot=ee+Ae,mt=ee+qe,Gt="drawingBuffer",er=Gt+Ae,sr=Gt+qe,wr=[Vl,Zl,Nl,ue,w,Bs,ee,Q,Al],Ir=34962,ri=34963,si=2884,Mi=3042,cn=3024,Zn=2960,Yn=2929,Ua=3089,Fo=32823,vl=32926,Us=32928,ml=5126,au=35664,Sl=35665,Yl=35666,ql=5124,ou=35667,Pu=35668,nu=35669,ru=35670,Hu=35671,$u=35672,Ku=35673,Wu=35674,ju=35675,sf=35676,_f=35678,Qu=35680,ef=4,Z=1028,le=1029,Le=2304,Ye=2305,nt=32775,ut=32776,Ht=519,wt=7680,lr=0,Cr=1,zr=32774,ui=513,$r=36160,Oi=36064,un={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},pi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Pi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ji={cw:Le,ccw:Ye};function pn(Fe){return Array.isArray(Fe)||vr(Fe)||Vt(Fe)}function an(Fe){return Fe.sort(function(Bt,tr){return Bt===ee?-1:tr===ee?1:Bt=1,Qr>=2,Bt)}else if(tr===Ks){var vi=Fe.data;return new bi(vi.thisDep,vi.contextDep,vi.propDep,Bt)}else{if(tr===dl)return new bi(!1,!1,!1,Bt);if(tr===xl){for(var fi=!1,di=!1,nn=!1,On=0;On=1&&(di=!0),wn>=2&&(nn=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,di=di||Ln.data.contextDep,nn=nn||Ln.data.propDep)}return new bi(fi,di,nn,Bt)}else return new bi(tr===Cs,tr===is,tr===zn,Bt)}}var js=new bi(!1,!1,!1,function(){});function El(Fe,Bt,tr,Qr,vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr){var gi=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};tr.ext_blend_minmax&&(dn.min=nt,dn.max=ut);var En=tr.angle_instanced_arrays,Zi=tr.webgl_draw_buffers,ga=tr.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},Ji=[],Ui={},ro={};function na(Qe){return Qe.replace(".","_")}function Bn(Qe,pt,Tt){var Xt=na(Qe);Ji.push(Qe),hs[Xt]=Kn[Xt]=!!Tt,Ui[Xt]=pt}function In(Qe,pt,Tt){var Xt=na(Qe);Ji.push(Qe),Array.isArray(Tt)?(Kn[Xt]=Tt.slice(),hs[Xt]=Tt.slice()):Kn[Xt]=hs[Xt]=Tt,ro[Xt]=pt}function Va(Qe){return!!isNaN(Qe)}Bn(Bl,cn),Bn(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,lr,Cr,lr]),Bn(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),Bn(ll,si),In(nl,"cullFace",le),In(zl,zl,Ye),In(Ml,Ml,1),Bn(Rl,Fo),In(Al,"polygonOffset",[0,0]),Bn(Ll,vl),Bn(ms,Us),In(Bs,"sampleCoverage",[1,!1]),Bn(Xl,Zn),In(Gl,"stencilMask",-1),In(Nl,"stencilFunc",[Ht,0,-1]),In(ue,"stencilOpSeparate",[Z,wt,wt,wt]),In(w,"stencilOpSeparate",[le,wt,wt,wt]),Bn(q,Ua),In(Q,"scissor",[0,0,Fe.drawingBufferWidth,Fe.drawingBufferHeight]),In(ee,ee,[0,0,Fe.drawingBufferWidth,Fe.drawingBufferHeight]);var _s={gl:Fe,context:ua,strings:Bt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:vi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:On,framebuffer:nn,extensions:tr,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:pi,blendFuncs:un,blendEquations:dn,stencilOps:Pi,glTypes:Ai,orientationType:ji};Zi&&(ul.backBuffer=[le],ul.drawBuffer=S(Qr.maxDrawbuffers,function(Qe){return Qe===0?[0]:S(Qe,function(pt){return Oi+pt})}));var Qn=0;function Mo(){var Qe=Gn({cache:Ni}),pt=Qe.link,Tt=Qe.global;Qe.id=Qn++,Qe.batchId="0";var Xt=pt(_s),ir=Qe.shared={props:"a0"};Object.keys(_s).forEach(function(Zt){ir[Zt]=Tt.def(Xt,".",Zt)});var Kt=Qe.next={},ar=Qe.current={};Object.keys(ro).forEach(function(Zt){Array.isArray(Kn[Zt])&&(Kt[Zt]=Tt.def(ir.next,".",Zt),ar[Zt]=Tt.def(ir.current,".",Zt))});var Jt=Qe.constants={};Object.keys(ul).forEach(function(Zt){Jt[Zt]=Tt.def(JSON.stringify(ul[Zt]))}),Qe.invoke=function(Zt,Pt){switch(Pt.type){case va:var Ar=["this",ir.context,ir.props,Qe.batchId];return Zt.def(pt(Pt.data),".call(",Ar.slice(0,Math.max(Pt.data.length+1,4)),")");case zn:return Zt.def(ir.props,Pt.data);case is:return Zt.def(ir.context,Pt.data);case Cs:return Zt.def("this",Pt.data);case Ks:return Pt.data.append(Qe,Zt),Pt.data.ref;case dl:return Pt.data.toString();case xl:return Pt.data.map(function(Br){return Qe.invoke(Zt,Br)})}},Qe.attribCache={};var Ft={};return Qe.scopeAttrib=function(Zt){var Pt=Bt.id(Zt);if(Pt in Ft)return Ft[Pt];var Ar=Ln.scope[Pt];Ar||(Ar=Ln.scope[Pt]=new gi);var Br=Ft[Pt]=pt(Ar);return Br},Qe}function al(Qe){var pt=Qe.static,Tt=Qe.dynamic,Xt;if(fe in pt){var ir=!!pt[fe];Xt=no(function(ar,Jt){return ir}),Xt.enable=ir}else if(fe in Tt){var Kt=Tt[fe];Xt=Xo(Kt,function(ar,Jt){return ar.invoke(Jt,Kt)})}return Xt}function pl(Qe,pt){var Tt=Qe.static,Xt=Qe.dynamic;if(Ue in Tt){var ir=Tt[Ue];return ir?(ir=nn.getFramebuffer(ir),no(function(ar,Jt){var Ft=ar.link(ir),Zt=ar.shared;Jt.set(Zt.framebuffer,".next",Ft);var Pt=Zt.context;return Jt.set(Pt,"."+Ge,Ft+".width"),Jt.set(Pt,"."+ft,Ft+".height"),Ft})):no(function(ar,Jt){var Ft=ar.shared;Jt.set(Ft.framebuffer,".next","null");var Zt=Ft.context;return Jt.set(Zt,"."+Ge,Zt+"."+er),Jt.set(Zt,"."+ft,Zt+"."+sr),"null"})}else if(Ue in Xt){var Kt=Xt[Ue];return Xo(Kt,function(ar,Jt){var Ft=ar.invoke(Jt,Kt),Zt=ar.shared,Pt=Zt.framebuffer,Ar=Jt.def(Pt,".getFramebuffer(",Ft,")");Jt.set(Pt,".next",Ar);var Br=Zt.context;return Jt.set(Br,"."+Ge,Ar+"?"+Ar+".width:"+Br+"."+er),Jt.set(Br,"."+ft,Ar+"?"+Ar+".height:"+Br+"."+sr),Ar})}else return null}function Dl(Qe,pt,Tt){var Xt=Qe.static,ir=Qe.dynamic;function Kt(Ft){if(Ft in Xt){var Zt=Xt[Ft],Pt=!0,Ar=Zt.x|0,Br=Zt.y|0,ci,Cn;return"width"in Zt?ci=Zt.width|0:Pt=!1,"height"in Zt?Cn=Zt.height|0:Pt=!1,new bi(!Pt&&pt&&pt.thisDep,!Pt&&pt&&pt.contextDep,!Pt&&pt&&pt.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Zt||(Pn=ca.def(Tn,".",Ge,"-",Ar));var Nn=Cn;return"height"in Zt||(Nn=ca.def(Tn,".",ft,"-",Br)),[Ar,Br,Pn,Nn]})}else if(Ft in ir){var Yi=ir[Ft],yn=Xo(Yi,function(Xa,ca){var Tn=Xa.invoke(ca,Yi),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",Ge,"-",Nn,")"),iu=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",ft,"-",xa,")");return[Nn,xa,Zo,iu]});return pt&&(yn.thisDep=yn.thisDep||pt.thisDep,yn.contextDep=yn.contextDep||pt.contextDep,yn.propDep=yn.propDep||pt.propDep),yn}else return pt?new bi(pt.thisDep,pt.contextDep,pt.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",Ge),ca.def(Tn,".",ft)]}):null}var ar=Kt(ee);if(ar){var Jt=ar;ar=new bi(ar.thisDep,ar.contextDep,ar.propDep,function(Ft,Zt){var Pt=Jt.append(Ft,Zt),Ar=Ft.shared.context;return Zt.set(Ar,"."+ot,Pt[2]),Zt.set(Ar,"."+mt,Pt[3]),Pt})}return{viewport:ar,scissor_box:Kt(Q)}}function Ou(Qe,pt){var Tt=Qe.static,Xt=typeof Tt[yt]=="string"&&typeof Tt[at]=="string";if(Xt){if(Object.keys(pt.dynamic).length>0)return null;var ir=pt.static,Kt=Object.keys(ir);if(Kt.length>0&&typeof ir[Kt[0]]=="number"){for(var ar=[],Jt=0;Jt"+Nn+"?"+Pt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Pt,".buffer)){",Xa,"=",Cn,".createStream(",Ir,",",Pt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Pt,".buffer);","}",ca,'="type" in ',Pt,"?",Br.glTypes,"[",Pt,".type]:",Xa,".dtype;",Yi.normalized,"=!!",Pt,".normalized;");function Tn(Pn){Zt(Yi[Pn],"=",Pt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Zt("}}"),Zt.exit("if(",Yi.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Yi}ir[Kt]=Xo(ar,Jt)}),ir}function xf(Qe){var pt=Qe.static,Tt=Qe.dynamic,Xt={};return Object.keys(pt).forEach(function(ir){var Kt=pt[ir];Xt[ir]=no(function(ar,Jt){return typeof Kt=="number"||typeof Kt=="boolean"?""+Kt:ar.link(Kt)})}),Object.keys(Tt).forEach(function(ir){var Kt=Tt[ir];Xt[ir]=Xo(Kt,function(ar,Jt){return ar.invoke(Jt,Kt)})}),Xt}function Cf(Qe,pt,Tt,Xt,ir){var Kt=Qe.static,ar=Qe.dynamic,Jt=Ou(Qe,pt),Ft=pl(Qe,ir),Zt=Dl(Qe,Ft,ir),Pt=Ql(Qe,ir),Ar=Mf(Qe,ir),Br=vf(Qe,ir,Jt);function ci(Tn){var Pn=Zt[Tn];Pn&&(Ar[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Ar).length>0,Yi={framebuffer:Ft,draw:Pt,shader:Br,state:Ar,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Yi.profile=al(Qe,ir),Yi.uniforms=Cu(Tt,ir),Yi.drawVAO=Yi.scopeVAO=Pt.vao,!Yi.drawVAO&&Br.program&&!Jt&&tr.angle_instanced_arrays&&Pt.static.elements){var yn=!0,Xa=Br.program.attributes.map(function(Tn){var Pn=pt.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Pt.static.elements}));Yi.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Yi.useVAO=!0}}return Jt?Yi.useVAO=!0:Yi.attributes=gf(pt,ir),Yi.context=xf(Xt,ir),Yi}function Gu(Qe,pt,Tt){var Xt=Qe.shared,ir=Xt.context,Kt=Qe.scope();Object.keys(Tt).forEach(function(ar){pt.save(ir,"."+ar);var Jt=Tt[ar],Ft=Jt.append(Qe,pt);Array.isArray(Ft)?Kt(ir,".",ar,"=[",Ft.join(),"];"):Kt(ir,".",ar,"=",Ft,";")}),pt(Kt)}function cf(Qe,pt,Tt,Xt){var ir=Qe.shared,Kt=ir.gl,ar=ir.framebuffer,Jt;Zi&&(Jt=pt.def(ir.extensions,".webgl_draw_buffers"));var Ft=Qe.constants,Zt=Ft.drawBuffer,Pt=Ft.backBuffer,Ar;Tt?Ar=Tt.append(Qe,pt):Ar=pt.def(ar,".next"),Xt||pt("if(",Ar,"!==",ar,".cur){"),pt("if(",Ar,"){",Kt,".bindFramebuffer(",$r,",",Ar,".framebuffer);"),Zi&&pt(Jt,".drawBuffersWEBGL(",Zt,"[",Ar,".colorAttachments.length]);"),pt("}else{",Kt,".bindFramebuffer(",$r,",null);"),Zi&&pt(Jt,".drawBuffersWEBGL(",Pt,");"),pt("}",ar,".cur=",Ar,";"),Xt||pt("}")}function mf(Qe,pt,Tt){var Xt=Qe.shared,ir=Xt.gl,Kt=Qe.current,ar=Qe.next,Jt=Xt.current,Ft=Xt.next,Zt=Qe.cond(Jt,".dirty");Ji.forEach(function(Pt){var Ar=na(Pt);if(!(Ar in Tt.state)){var Br,ci;if(Ar in ar){Br=ar[Ar],ci=Kt[Ar];var Cn=S(Kn[Ar].length,function(yn){return Zt.def(Br,"[",yn,"]")});Zt(Qe.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(ir,".",ro[Ar],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Br=Zt.def(Ft,".",Ar);var Yi=Qe.cond(Br,"!==",Jt,".",Ar);Zt(Yi),Ar in Ui?Yi(Qe.cond(Br).then(ir,".enable(",Ui[Ar],");").else(ir,".disable(",Ui[Ar],");"),Jt,".",Ar,"=",Br,";"):Yi(ir,".",ro[Ar],"(",Br,");",Jt,".",Ar,"=",Br,";")}}}),Object.keys(Tt.state).length===0&&Zt(Jt,".dirty=false;"),pt(Zt)}function Fl(Qe,pt,Tt,Xt){var ir=Qe.shared,Kt=Qe.current,ar=ir.current,Jt=ir.gl,Ft;an(Object.keys(Tt)).forEach(function(Zt){var Pt=Tt[Zt];if(!(Xt&&!Xt(Pt))){var Ar=Pt.append(Qe,pt);if(Ui[Zt]){var Br=Ui[Zt];xo(Pt)?(Ft=Qe.link(Ar,{stable:!0}),pt(Qe.cond(Ft).then(Jt,".enable(",Br,");").else(Jt,".disable(",Br,");")),pt(ar,".",Zt,"=",Ft,";")):(pt(Qe.cond(Ar).then(Jt,".enable(",Br,");").else(Jt,".disable(",Br,");")),pt(ar,".",Zt,"=",Ar,";"))}else if($i(Ar)){var ci=Kt[Zt];pt(Jt,".",ro[Zt],"(",Ar,");",Ar.map(function(Cn,Yi){return ci+"["+Yi+"]="+Cn}).join(";"),";")}else xo(Pt)?(Ft=Qe.link(Ar,{stable:!0}),pt(Jt,".",ro[Zt],"(",Ft,");",ar,".",Zt,"=",Ft,";")):pt(Jt,".",ro[Zt],"(",Ar,");",ar,".",Zt,"=",Ar,";")}})}function bf(Qe,pt){En&&(Qe.instancing=pt.def(Qe.shared.extensions,".angle_instanced_arrays"))}function cu(Qe,pt,Tt,Xt,ir){var Kt=Qe.shared,ar=Qe.stats,Jt=Kt.current,Ft=Kt.timer,Zt=Tt.profile;function Pt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Ar,Br;function ci(Tn){Ar=pt.def(),Tn(Ar,"=",Pt(),";"),typeof ir=="string"?Tn(ar,".count+=",ir,";"):Tn(ar,".count++;"),Hn&&(Xt?(Br=pt.def(),Tn(Br,"=",Ft,".getNumPendingQueries();")):Tn(Ft,".beginQuery(",ar,");"))}function Cn(Tn){Tn(ar,".cpuTime+=",Pt(),"-",Ar,";"),Hn&&(Xt?Tn(Ft,".pushScopeStats(",Br,",",Ft,".getNumPendingQueries(),",ar,");"):Tn(Ft,".endQuery();"))}function Yi(Tn){var Pn=pt.def(Jt,".profile");pt(Jt,".profile=",Tn,";"),pt.exit(Jt,".profile=",Pn,";")}var yn;if(Zt){if(xo(Zt)){Zt.enable?(ci(pt),Cn(pt.exit),Yi("true")):Yi("false");return}yn=Zt.append(Qe,pt),Yi(yn)}else yn=pt.def(Jt,".profile");var Xa=Qe.block();ci(Xa),pt("if(",yn,"){",Xa,"}");var ca=Qe.block();Cn(ca),pt.exit("if(",yn,"){",ca,"}")}function Y(Qe,pt,Tt,Xt,ir){var Kt=Qe.shared;function ar(Ft){switch(Ft){case au:case ou:case Hu:return 2;case Sl:case Pu:case $u:return 3;case Yl:case nu:case Ku:return 4;default:return 1}}function Jt(Ft,Zt,Pt){var Ar=Kt.gl,Br=pt.def(Ft,".location"),ci=pt.def(Kt.attributes,"[",Br,"]"),Cn=Pt.state,Yi=Pt.buffer,yn=[Pt.x,Pt.y,Pt.z,Pt.w],Xa=["buffer","normalized","offset","stride"];function ca(){pt("if(!",ci,".buffer){",Ar,".enableVertexAttribArray(",Br,");}");var Pn=Pt.type,Nn;if(Pt.size?Nn=pt.def(Pt.size,"||",Zt):Nn=Zt,pt("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Pt[Zo]}).join("||"),"){",Ar,".bindBuffer(",Ir,",",Yi,".buffer);",Ar,".vertexAttribPointer(",[Br,Nn,Pn,Pt.normalized,Pt.stride,Pt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Pt[Zo]+";"}).join(""),"}"),En){var xa=Pt.divisor;pt("if(",ci,".divisor!==",xa,"){",Qe.instancing,".vertexAttribDivisorANGLE(",[Br,xa],");",ci,".divisor=",xa,";}")}}function Tn(){pt("if(",ci,".buffer){",Ar,".disableVertexAttribArray(",Br,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Ar,".vertexAttrib4f(",Br,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(pt("if(",Cn,"===",ia,"){"),ca(),pt("}else{"),Tn(),pt("}"))}Xt.forEach(function(Ft){var Zt=Ft.name,Pt=Tt.attributes[Zt],Ar;if(Pt){if(!ir(Pt))return;Ar=Pt.append(Qe,pt)}else{if(!ir(js))return;var Br=Qe.scopeAttrib(Zt);Ar={},Object.keys(new gi).forEach(function(ci){Ar[ci]=pt.def(Br,".",ci)})}Jt(Qe.link(Ft),ar(Ft.info.type),Ar)})}function R(Qe,pt,Tt,Xt,ir,Kt){for(var ar=Qe.shared,Jt=ar.gl,Ft,Zt=0;Zt1){for(var yu=[],Fu=[],vu=0;vu>1)",Yi],");")}function xa(){Tt(yn,".drawArraysInstancedANGLE(",[Br,ci,Cn,Yi],");")}Pt&&Pt!=="null"?ca?Nn():(Tt("if(",Pt,"){"),Nn(),Tt("}else{"),xa(),Tt("}")):xa()}function Pn(){function Nn(){Tt(Kt+".drawElements("+[Br,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){Tt(Kt+".drawArrays("+[Br,ci,Cn]+");")}Pt&&Pt!=="null"?ca?Nn():(Tt("if(",Pt,"){"),Nn(),Tt("}else{"),xa(),Tt("}")):xa()}En&&(typeof Yi!="number"||Yi>=0)?typeof Yi=="string"?(Tt("if(",Yi,">0){"),Tn(),Tt("}else if(",Yi,"<0){"),Pn(),Tt("}")):Tn():Pn()}function B(Qe,pt,Tt,Xt,ir){var Kt=Mo(),ar=Kt.proc("body",ir);return En&&(Kt.instancing=ar.def(Kt.shared.extensions,".angle_instanced_arrays")),Qe(Kt,ar,Tt,Xt),Kt.compile().body}function K(Qe,pt,Tt,Xt){bf(Qe,pt),Tt.useVAO?Tt.drawVAO?pt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,pt),");"):pt(Qe.shared.vao,".setVAO(",Qe.shared.vao,".targetVAO);"):(pt(Qe.shared.vao,".setVAO(null);"),Y(Qe,pt,Tt,Xt.attributes,function(){return!0})),R(Qe,pt,Tt,Xt.uniforms,function(){return!0},!1),J(Qe,pt,pt,Tt)}function ye(Qe,pt){var Tt=Qe.proc("draw",1);bf(Qe,Tt),Gu(Qe,Tt,pt.context),cf(Qe,Tt,pt.framebuffer),mf(Qe,Tt,pt),Fl(Qe,Tt,pt.state),cu(Qe,Tt,pt,!1,!0);var Xt=pt.shader.progVar.append(Qe,Tt);if(Tt(Qe.shared.gl,".useProgram(",Xt,".program);"),pt.shader.program)K(Qe,Tt,pt,pt.shader.program);else{Tt(Qe.shared.vao,".setVAO(null);");var ir=Qe.global.def("{}"),Kt=Tt.def(Xt,".id"),ar=Tt.def(ir,"[",Kt,"]");Tt(Qe.cond(ar).then(ar,".call(this,a0);").else(ar,"=",ir,"[",Kt,"]=",Qe.link(function(Jt){return B(K,Qe,pt,Jt,1)}),"(",Xt,");",ar,".call(this,a0);"))}Object.keys(pt.state).length>0&&Tt(Qe.shared.current,".dirty=true;"),Qe.shared.vao&&Tt(Qe.shared.vao,".setVAO(null);")}function ne(Qe,pt,Tt,Xt){Qe.batchId="a1",bf(Qe,pt);function ir(){return!0}Y(Qe,pt,Tt,Xt.attributes,ir),R(Qe,pt,Tt,Xt.uniforms,ir,!1),J(Qe,pt,pt,Tt)}function ke(Qe,pt,Tt,Xt){bf(Qe,pt);var ir=Tt.contextDep,Kt=pt.def(),ar="a0",Jt="a1",Ft=pt.def();Qe.shared.props=Ft,Qe.batchId=Kt;var Zt=Qe.scope(),Pt=Qe.scope();pt(Zt.entry,"for(",Kt,"=0;",Kt,"<",Jt,";++",Kt,"){",Ft,"=",ar,"[",Kt,"];",Pt,"}",Zt.exit);function Ar(Xa){return Xa.contextDep&&ir||Xa.propDep}function Br(Xa){return!Ar(Xa)}if(Tt.needsContext&&Gu(Qe,Pt,Tt.context),Tt.needsFramebuffer&&cf(Qe,Pt,Tt.framebuffer),Fl(Qe,Pt,Tt.state,Ar),Tt.profile&&Ar(Tt.profile)&&cu(Qe,Pt,Tt,!1,!0),Xt)Tt.useVAO?Tt.drawVAO?Ar(Tt.drawVAO)?Pt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,Pt),");"):Zt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,Zt),");"):Zt(Qe.shared.vao,".setVAO(",Qe.shared.vao,".targetVAO);"):(Zt(Qe.shared.vao,".setVAO(null);"),Y(Qe,Zt,Tt,Xt.attributes,Br),Y(Qe,Pt,Tt,Xt.attributes,Ar)),R(Qe,Zt,Tt,Xt.uniforms,Br,!1),R(Qe,Pt,Tt,Xt.uniforms,Ar,!0),J(Qe,Zt,Pt,Tt);else{var ci=Qe.global.def("{}"),Cn=Tt.shader.progVar.append(Qe,Pt),Yi=Pt.def(Cn,".id"),yn=Pt.def(ci,"[",Yi,"]");Pt(Qe.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Yi,"]=",Qe.link(function(Xa){return B(ne,Qe,Tt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Kt,"],",Kt,");")}}function Je(Qe,pt){var Tt=Qe.proc("batch",2);Qe.batchId="0",bf(Qe,Tt);var Xt=!1,ir=!0;Object.keys(pt.context).forEach(function(ci){Xt=Xt||pt.context[ci].propDep}),Xt||(Gu(Qe,Tt,pt.context),ir=!1);var Kt=pt.framebuffer,ar=!1;Kt?(Kt.propDep?Xt=ar=!0:Kt.contextDep&&Xt&&(ar=!0),ar||cf(Qe,Tt,Kt)):cf(Qe,Tt,null),pt.state.viewport&&pt.state.viewport.propDep&&(Xt=!0);function Jt(ci){return ci.contextDep&&Xt||ci.propDep}mf(Qe,Tt,pt),Fl(Qe,Tt,pt.state,function(ci){return!Jt(ci)}),(!pt.profile||!Jt(pt.profile))&&cu(Qe,Tt,pt,!1,"a1"),pt.contextDep=Xt,pt.needsContext=ir,pt.needsFramebuffer=ar;var Ft=pt.shader.progVar;if(Ft.contextDep&&Xt||Ft.propDep)ke(Qe,Tt,pt,null);else{var Zt=Ft.append(Qe,Tt);if(Tt(Qe.shared.gl,".useProgram(",Zt,".program);"),pt.shader.program)ke(Qe,Tt,pt,pt.shader.program);else{Tt(Qe.shared.vao,".setVAO(null);");var Pt=Qe.global.def("{}"),Ar=Tt.def(Zt,".id"),Br=Tt.def(Pt,"[",Ar,"]");Tt(Qe.cond(Br).then(Br,".call(this,a0,a1);").else(Br,"=",Pt,"[",Ar,"]=",Qe.link(function(ci){return B(ke,Qe,pt,ci,2)}),"(",Zt,");",Br,".call(this,a0,a1);"))}}Object.keys(pt.state).length>0&&Tt(Qe.shared.current,".dirty=true;"),Qe.shared.vao&&Tt(Qe.shared.vao,".setVAO(null);")}function Ct(Qe,pt){var Tt=Qe.proc("scope",3);Qe.batchId="a2";var Xt=Qe.shared,ir=Xt.current;if(Gu(Qe,Tt,pt.context),pt.framebuffer&&pt.framebuffer.append(Qe,Tt),an(Object.keys(pt.state)).forEach(function(Jt){var Ft=pt.state[Jt],Zt=Ft.append(Qe,Tt);$i(Zt)?Zt.forEach(function(Pt,Ar){Va(Pt)?Tt.set(Qe.next[Jt],"["+Ar+"]",Pt):Tt.set(Qe.next[Jt],"["+Ar+"]",Qe.link(Pt,{stable:!0}))}):xo(Ft)?Tt.set(Xt.next,"."+Jt,Qe.link(Zt,{stable:!0})):Tt.set(Xt.next,"."+Jt,Zt)}),cu(Qe,Tt,pt,!0,!0),[Rt,Mr,rr,Ur,Qt].forEach(function(Jt){var Ft=pt.draw[Jt];if(Ft){var Zt=Ft.append(Qe,Tt);Va(Zt)?Tt.set(Xt.draw,"."+Jt,Zt):Tt.set(Xt.draw,"."+Jt,Qe.link(Zt),{stable:!0})}}),Object.keys(pt.uniforms).forEach(function(Jt){var Ft=pt.uniforms[Jt].append(Qe,Tt);Array.isArray(Ft)&&(Ft="["+Ft.map(function(Zt){return Va(Zt)?Zt:Qe.link(Zt,{stable:!0})})+"]"),Tt.set(Xt.uniforms,"["+Qe.link(Bt.id(Jt),{stable:!0})+"]",Ft)}),Object.keys(pt.attributes).forEach(function(Jt){var Ft=pt.attributes[Jt].append(Qe,Tt),Zt=Qe.scopeAttrib(Jt);Object.keys(new gi).forEach(function(Pt){Tt.set(Zt,"."+Pt,Ft[Pt])})}),pt.scopeVAO){var Kt=pt.scopeVAO.append(Qe,Tt);Va(Kt)?Tt.set(Xt.vao,".targetVAO",Kt):Tt.set(Xt.vao,".targetVAO",Qe.link(Kt,{stable:!0}))}function ar(Jt){var Ft=pt.shader[Jt];if(Ft){var Zt=Ft.append(Qe,Tt);Va(Zt)?Tt.set(Xt.shader,"."+Jt,Zt):Tt.set(Xt.shader,"."+Jt,Qe.link(Zt,{stable:!0}))}}ar(at),ar(yt),Object.keys(pt.state).length>0&&(Tt(ir,".dirty=true;"),Tt.exit(ir,".dirty=true;")),Tt("a1(",Qe.shared.context,",a0,",Qe.batchId,");")}function ur(Qe){if(!(typeof Qe!="object"||$i(Qe))){for(var pt=Object.keys(Qe),Tt=0;Tt=0;--B){var K=_s[B];K&&K(Ni,null,0)}tr.flush(),wn&&wn.update()}function Dl(){!al&&_s.length>0&&(al=d.next(pl))}function Ou(){al&&(d.cancel(pl),al=null)}function vf(B){B.preventDefault(),vi=!0,Ou(),ul.forEach(function(K){K()})}function Ql(B){tr.getError(),vi=!1,fi.restore(),hs.restore(),En.restore(),Ji.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,vf,!1),Va.addEventListener(Tu,Ql,!1));function Mf(){_s.length=0,Ou(),Va&&(Va.removeEventListener(Au,vf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),Ji.clear(),Zi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(B){B()})}function Cu(B){function K(Kt){var ar=e({},Kt);delete ar.uniforms,delete ar.attributes,delete ar.context,delete ar.vao,"stencil"in ar&&ar.stencil.op&&(ar.stencil.opBack=ar.stencil.opFront=ar.stencil.op,delete ar.stencil.op);function Jt(Ft){if(Ft in ar){var Zt=ar[Ft];delete ar[Ft],Object.keys(Zt).forEach(function(Pt){ar[Ft+"."+Pt]=Zt[Pt]})}}return Jt("blend"),Jt("depth"),Jt("cull"),Jt("stencil"),Jt("polygonOffset"),Jt("scissor"),Jt("sample"),"vao"in Kt&&(ar.vao=Kt.vao),ar}function ye(Kt,ar){var Jt={},Ft={};return Object.keys(Kt).forEach(function(Zt){var Pt=Kt[Zt];if(h.isDynamic(Pt)){Ft[Zt]=h.unbox(Pt,Zt);return}else if(ar&&Array.isArray(Pt)){for(var Ar=0;Ar0)return Qe.call(this,Xt(Kt|0),Kt|0)}else if(Array.isArray(Kt)){if(Kt.length)return Qe.call(this,Kt,Kt.length)}else return nr.call(this,Kt)}return e(ir,{stats:ur,destroy:function(){Sr.destroy()}})}var gf=ro.setFBO=Cu({framebuffer:h.define.call(null,lf,"framebuffer")});function xf(B,K){var ye=0;na.procs.poll();var ne=K.color;ne&&(tr.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),ye|=Vu),"depth"in K&&(tr.clearDepth(+K.depth),ye|=tf),"stencil"in K&&(tr.clearStencil(K.stencil|0),ye|=ds),tr.clear(ye)}function Cf(B){if("framebuffer"in B)if(B.framebuffer&&B.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)gf(e({framebuffer:B.framebuffer.faces[K]},B),xf);else gf(B,xf);else xf(null,B)}function Gu(B){_s.push(B);function K(){var ye=pf(_s,B);function ne(){var ke=pf(_s,ne);_s[ke]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Ou()}_s[ye]=ne}return Dl(),{cancel:K}}function cf(){var B=In.viewport,K=In.scissor_box;B[0]=B[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=B[2]=K[2]=tr.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=B[3]=K[3]=tr.drawingBufferHeight}function mf(){Ni.tick+=1,Ni.time=bf(),cf(),na.procs.poll()}function Fl(){Ji.refresh(),cf(),na.procs.refresh(),wn&&wn.update()}function bf(){return(p()-Ls)/1e3}Fl();function cu(B,K){var ye;switch(B){case"frame":return Gu(K);case"lost":ye=ul;break;case"restore":ye=Qn;break;case"destroy":ye=Mo;break;default:}return ye.push(K),{cancel:function(){for(var ne=0;ne=0},read:Bn,destroy:Mf,_gl:tr,_refresh:Fl,poll:function(){mf(),wn&&wn.update()},now:bf,stats:nn,getCachedCode:Y,preloadCachedCode:R});return Bt.onDone(null,J),J}return fc}))});var yNe=we((pbr,mNe)=>{"use strict";var kVt=rg();mNe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},pNe(t)?t={container:t}:CVt(t)?t={container:t}:LVt(t)?t={gl:t}:t=kVt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}pNe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=vNe(),t.container.appendChild(t.canvas),dNe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=vNe(),t.container.appendChild(t.canvas),dNe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function dNe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function pNe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function CVt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function LVt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function vNe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var _Ne=we((vbr,gNe)=>{"use strict";var PVt=bK(),zVt=[32,126];gNe.exports=IVt;function IVt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||zVt;if(n&&typeof n!="string"&&(n=PVt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],u=0;s<=a[1];s++)o[u++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var l=r.getContext("2d");l.fillStyle="#000",l.fillRect(0,0,r.width,r.height),l.font=n,l.textAlign="center",l.textBaseline="middle",l.fillStyle="#fff";for(var f=i[0]/2,c=i[1]/2,s=0;st[0]-i[0]/2&&(f=i[0]/2,c+=i[1]);return r}});var SK=we(Zh=>{"use strict";"use restrict";var TK=32;Zh.INT_BITS=TK;Zh.INT_MAX=2147483647;Zh.INT_MIN=-1<0)-(e<0)};Zh.abs=function(e){var t=e>>TK-1;return(e^t)-t};Zh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Zh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Zh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function xNe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Zh.countTrailingZeros=xNe;Zh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Zh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Zh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Ok=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|Ok[e>>>16&255]<<8|Ok[e>>>24&255]};Zh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Zh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Zh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Zh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Zh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>xNe(e)+1}});var ANe=we((ybr,wNe)=>{"use strict";function bNe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return RVt(e|0,t);break;case"object":if(typeof e.length=="number")return bNe(e,t,0);break}return[]}wNe.exports=DVt});var BNe=we(rc=>{"use strict";var bx=SK(),Cp=ANe(),TNe=w2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Cp([32,0]),UINT16:Cp([32,0]),UINT32:Cp([32,0]),BIGUINT64:Cp([32,0]),INT8:Cp([32,0]),INT16:Cp([32,0]),INT32:Cp([32,0]),BIGINT64:Cp([32,0]),FLOAT:Cp([32,0]),DOUBLE:Cp([32,0]),DATA:Cp([32,0]),UINT8C:Cp([32,0]),BUFFER:Cp([32,0])});var FVt=typeof Uint8ClampedArray!="undefined",OVt=typeof BigUint64Array!="undefined",BVt=typeof BigInt64Array!="undefined",ld=window.__TYPEDARRAY_POOL;ld.UINT8C||(ld.UINT8C=Cp([32,0]));ld.BIGUINT64||(ld.BIGUINT64=Cp([32,0]));ld.BIGINT64||(ld.BIGINT64=Cp([32,0]));ld.BUFFER||(ld.BUFFER=Cp([32,0]));var E8=ld.DATA,k8=ld.BUFFER;rc.free=function(t){if(TNe.isBuffer(t))k8[bx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=bx.log2(r)|0;E8[n].push(t)}};function SNe(e){if(e){var t=e.length||e.byteLength,r=bx.log2(t);E8[r].push(e)}}function qVt(e){SNe(e.buffer)}rc.freeUint8=rc.freeUint16=rc.freeUint32=rc.freeBigUint64=rc.freeInt8=rc.freeInt16=rc.freeInt32=rc.freeBigInt64=rc.freeFloat32=rc.freeFloat=rc.freeFloat64=rc.freeDouble=rc.freeUint8Clamped=rc.freeDataView=qVt;rc.freeArrayBuffer=SNe;rc.freeBuffer=function(t){k8[bx.log2(t.length)].push(t)};rc.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qv(t);switch(r){case"uint8":return MK(t);case"uint16":return MNe(t);case"uint32":return ENe(t);case"int8":return kNe(t);case"int16":return CNe(t);case"int32":return LNe(t);case"float":case"float32":return PNe(t);case"double":case"float64":return zNe(t);case"uint8_clamped":return INe(t);case"bigint64":return DNe(t);case"biguint64":return RNe(t);case"buffer":return ONe(t);case"data":case"dataview":return FNe(t);default:return null}return null};function qv(t){var t=bx.nextPow2(t),r=bx.log2(t),n=E8[r];return n.length>0?n.pop():new ArrayBuffer(t)}rc.mallocArrayBuffer=qv;function MK(e){return new Uint8Array(qv(e),0,e)}rc.mallocUint8=MK;function MNe(e){return new Uint16Array(qv(2*e),0,e)}rc.mallocUint16=MNe;function ENe(e){return new Uint32Array(qv(4*e),0,e)}rc.mallocUint32=ENe;function kNe(e){return new Int8Array(qv(e),0,e)}rc.mallocInt8=kNe;function CNe(e){return new Int16Array(qv(2*e),0,e)}rc.mallocInt16=CNe;function LNe(e){return new Int32Array(qv(4*e),0,e)}rc.mallocInt32=LNe;function PNe(e){return new Float32Array(qv(4*e),0,e)}rc.mallocFloat32=rc.mallocFloat=PNe;function zNe(e){return new Float64Array(qv(8*e),0,e)}rc.mallocFloat64=rc.mallocDouble=zNe;function INe(e){return FVt?new Uint8ClampedArray(qv(e),0,e):MK(e)}rc.mallocUint8Clamped=INe;function RNe(e){return OVt?new BigUint64Array(qv(8*e),0,e):null}rc.mallocBigUint64=RNe;function DNe(e){return BVt?new BigInt64Array(qv(8*e),0,e):null}rc.mallocBigInt64=DNe;function FNe(e){return new DataView(qv(e),0,e)}rc.mallocDataView=FNe;function ONe(e){e=bx.nextPow2(e);var t=bx.log2(e),r=k8[t];return r.length>0?r.pop():new TNe(e)}rc.mallocBuffer=ONe;rc.clearCache=function(){for(var t=0;t<32;++t)ld.UINT8[t].length=0,ld.UINT16[t].length=0,ld.UINT32[t].length=0,ld.INT8[t].length=0,ld.INT16[t].length=0,ld.INT32[t].length=0,ld.FLOAT[t].length=0,ld.DOUBLE[t].length=0,ld.BIGUINT64[t].length=0,ld.BIGINT64[t].length=0,ld.UINT8C[t].length=0,E8[t].length=0,k8[t].length=0}});var NNe=we((_br,qNe)=>{"use strict";var NVt=Object.prototype.toString;qNe.exports=function(e){var t;return NVt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var EK=we((xbr,UNe)=>{UNe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var HNe=we((bbr,GNe)=>{"use strict";var UVt=EK();GNe.exports=VNe;var Bk=96;function kK(e,t){var r=UVt(getComputedStyle(e).getPropertyValue(t));return r[0]*VNe(r[1],e)}function VVt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=kK(r,"font-size")/128;return t.removeChild(r),n}function VNe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return VVt(e,t);case"em":return kK(t,"font-size");case"rem":return kK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Bk;case"cm":return Bk/2.54;case"mm":return Bk/25.4;case"pt":return Bk/72;case"pc":return Bk/6}return 1}});var XNe=we((wbr,jNe)=>{"use strict";jNe.exports=P8;var GVt=P8.canvas=document.createElement("canvas"),C8=GVt.getContext("2d"),WNe=L8([32,126]);P8.createPairs=L8;P8.ascii=WNe;function P8(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=L8(t):Array.isArray(t)?n=t:(t.o?n=L8(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=WNe),C8.font=i+"px "+e;for(var o=0;oi*a){var f=(l-u)/i;r[s]=f*1e3}}return r}function L8(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";KNe.exports=wx;wx.canvas=document.createElement("canvas");wx.cache={};function wx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(wx.cache[r]&&n<=wx.cache[r].em)return ZNe(wx.cache[r],s);var u=t.canvas||wx.canvas,l=u.getContext("2d"),f={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},c=Math.ceil(n*1.5);u.height=c,u.width=c*.5,l.font=o;var h="H",d={top:0};l.clearRect(0,0,c,c),l.textBaseline="top",l.fillStyle="black",l.fillText(h,0,0);var p=ng(l.getImageData(0,0,c,c));l.clearRect(0,0,c,c),l.textBaseline="bottom",l.fillText(h,0,c);var y=ng(l.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-y+p,l.clearRect(0,0,c,c),l.textBaseline="alphabetic",l.fillText(h,0,c);var b=ng(l.getImageData(0,0,c,c)),v=c-b-1+p;d.baseline=d.alphabetic=v,l.clearRect(0,0,c,c),l.textBaseline="middle",l.fillText(h,0,c*.5);var C=ng(l.getImageData(0,0,c,c));d.median=d.middle=c-C-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="hanging",l.fillText(h,0,c*.5);var E=ng(l.getImageData(0,0,c,c));d.hanging=c-E-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="ideographic",l.fillText(h,0,c);var A=ng(l.getImageData(0,0,c,c));if(d.ideographic=c-A-1+p,f.upper&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.upper,0,0),d.upper=ng(l.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.lower,0,0),d.lower=ng(l.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.tittle,0,0),d.tittle=ng(l.getImageData(0,0,c,c))),f.ascent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.ascent,0,0),d.ascent=ng(l.getImageData(0,0,c,c))),f.descent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.descent,0,0),d.descent=YNe(l.getImageData(0,0,c,c))),f.overshoot){l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.overshoot,0,0);var L=YNe(l.getImageData(0,0,c,c));d.overshoot=L-v}for(var x in d)d[x]/=n;return d.em=n,wx.cache[r]=d,ZNe(d,s)}function ZNe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function ng(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var t7e=we((Tbr,e7e)=>{"use strict";var wS=cNe(),HVt=rg(),WVt=hNe(),jVt=yNe(),XVt=sK(),CK=lx(),ZVt=_Ne(),Ax=BNe(),YVt=fS(),KVt=NNe(),JVt=EK(),$Vt=HNe(),QVt=XNe(),eGt=jh(),tGt=JNe(),rGt=sw(),iGt=SK(),$Ne=iGt.nextPow2,QNe=new XVt,I8=!1;document.body&&(z8=document.body.appendChild(document.createElement("div")),z8.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(z8).fontStretch&&(I8=!0),document.body.removeChild(z8));var z8,kc=function(t){nGt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=jVt(t),this.shader=QNe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||WVt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),QNe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(KVt(t)?t:{})};kc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -2705,17 +2705,17 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),n={};return{regl:t,draw:r,atlas:n}};kc.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=EVt(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Ce){return parseFloat(Ce)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=zVt(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=qVt(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=kc.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Ce,de){if(typeof Ce=="string")try{Ce=xS.parse(Ce)}catch(je){Ce=xS.parse(kc.baseFontSize+"px "+Ce)}else{var te=Ce.style,Se=Ce.weight,Te=Ce.stretch,be=Ce.variant;Ce=xS.parse(xS.stringify(Ce)),te&&(Ce.style=te),Se&&(Ce.weight=Se),Te&&(Ce.stretch=Te),be&&(Ce.variant=be)}var He=xS.stringify({size:kc.baseFontSize,family:Ce.family,stretch:P9?Ce.stretch:void 0,variant:Ce.variant,weight:Ce.weight,style:Ce.style}),Ie=DVt(Ce.size),ge=Math.round(Ie[0]*RVt(Ie[1]));if(ge!==r.fontSize[de]&&(i=!0,r.fontSize[de]=ge),(!r.font[de]||He!=r.font[de].baseString)&&(n=!0,r.font[de]=kc.fonts[He],!r.font[de])){var Be=Ce.family.join(", "),ce=[Ce.style];Ce.style!=Ce.variant&&ce.push(Ce.variant),Ce.variant!=Ce.weight&&ce.push(Ce.weight),P9&&Ce.weight!=Ce.stretch&&ce.push(Ce.stretch),r.font[de]={baseString:He,family:Be,weight:Ce.weight,stretch:Ce.stretch,style:Ce.style,variant:Ce.variant,width:{},kerning:{},metrics:BVt(Be,{origin:"top",fontSize:kc.baseFontSize,fontStyle:ce.join(" ")})},kc.fonts[He]=r.font[de]}}),(n||i)&&this.font.forEach(function(Ce,de){var te=xS.stringify({size:r.fontSize[de],family:Ce.family,stretch:P9?Ce.stretch:void 0,variant:Ce.variant,weight:Ce.weight,style:Ce.style});if(r.fontAtlas[de]=r.shader.atlas[te],!r.fontAtlas[de]){var Se=Ce.metrics;r.shader.atlas[te]=r.fontAtlas[de]={fontString:te,step:Math.ceil(r.fontSize[de]*Se.bottom*.5)*2,em:r.fontSize[de],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var l=!t.position[0].length,f=Ax.mallocFloat(this.count*2),c=0,h=0;c1?r.align[de]:r.align[0]:r.align;if(typeof te=="number")return te;switch(te){case"right":case"end":return-Ce;case"center":case"centre":case"middle":return-Ce*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ce,de){var te=(r.font[de]||r.font[0]).metrics,Se=0;return Se+=te.bottom*.5,typeof Ce=="number"?Se+=Ce-te.baseline:Se+=-te[Ce],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=MK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var j=t.color.length;G=Ax.mallocUint8(j);for(var W=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ae){var me=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(me);for(var Le=0;Le1?this.counts[Le]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Le]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Le*4,Le*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Le]:this.opacity,baseline:this.baselineOffset[Le]!=null?this.baselineOffset[Le]:this.baselineOffset[0],align:this.align?this.alignOffset[Le]!=null?this.alignOffset[Le]:this.alignOffset[0]:0,atlas:this.fontAtlas[Le]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Le*2,Le*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};kc.prototype.destroy=function(){};kc.prototype.kerning=!0;kc.prototype.position={constant:new Float32Array(2)};kc.prototype.translate=null;kc.prototype.scale=null;kc.prototype.font=null;kc.prototype.text="";kc.prototype.positionOffset=[0,0];kc.prototype.opacity=1;kc.prototype.color=new Uint8Array([0,0,0,255]);kc.prototype.alignOffset=[0,0];kc.maxAtlasSize=1024;kc.atlasCanvas=document.createElement("canvas");kc.atlasContext=kc.atlasCanvas.getContext("2d",{alpha:!1});kc.baseFontSize=64;kc.fonts={};function UVt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}YNe.exports=kc});var JNe=we((EK,kK)=>{(function(e,t){typeof EK=="object"&&typeof kK!="undefined"?kK.exports=t():e.createREGL=t()})(EK,function(){"use strict";var e=function(Fe,Bt){for(var tr=Object.keys(Bt),Qr=0;Qr1&&Bt===tr&&(Bt==='"'||Bt==="'"))return['"'+o(Fe.substr(1,Fe.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Fe);if(Qr)return s(Fe.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Fe.substr(Qr.index+Qr[0].length)));var vi=Fe.split(".");if(vi.length===1)return['"'+o(Fe)+'"'];for(var fi=[],di=0;di65535)<<4,Fe>>>=Bt,tr=(Fe>255)<<3,Fe>>>=tr,Bt|=tr,tr=(Fe>15)<<2,Fe>>>=tr,Bt|=tr,tr=(Fe>3)<<1,Fe>>>=tr,Bt|=tr,Bt|Fe>>1}function N(){var Fe=S(8,function(){return[]});function Bt(fi){var di=j(fi),nn=Fe[W(di)>>2];return nn.length>0?nn.pop():new ArrayBuffer(di)}function tr(fi){Fe[W(fi.byteLength)>>2].push(fi)}function Qr(fi,di){var nn=null;switch(fi){case m:nn=new Int8Array(Bt(di),0,di);break;case P:nn=new Uint8Array(Bt(di),0,di);break;case E:nn=new Int16Array(Bt(2*di),0,di);break;case O:nn=new Uint16Array(Bt(2*di),0,di);break;case F:nn=new Int32Array(Bt(4*di),0,di);break;case U:nn=new Uint32Array(Bt(4*di),0,di);break;case G:nn=new Float32Array(Bt(4*di),0,di);break;default:return null}return nn.length!==di?nn.subarray(0,di):nn}function vi(fi){tr(fi.buffer)}return{alloc:Bt,free:tr,allocType:Qr,freeType:vi}}var H=N();H.zero=N();var re=3408,ae=3410,me=3411,Le=3412,Ce=3413,de=3414,te=3415,Se=33901,Te=33902,be=3379,He=3386,Ie=34921,ge=36347,Be=36348,ce=35661,je=35660,rt=34930,bt=36349,Ot=34076,it=34024,Ke=7936,zt=7937,Mt=7938,kt=35724,$e=34047,De=36063,Me=34852,oe=3553,Ne=34067,vt=34069,lt=33984,We=6408,Ve=5126,et=5121,tt=36160,Lt=36053,jt=36064,or=16384,yr=function(Fe,Bt){var tr=1;Bt.ext_texture_filter_anisotropic&&(tr=Fe.getParameter($e));var Qr=1,vi=1;Bt.webgl_draw_buffers&&(Qr=Fe.getParameter(Me),vi=Fe.getParameter(De));var fi=!!Bt.oes_texture_float;if(fi){var di=Fe.createTexture();Fe.bindTexture(oe,di),Fe.texImage2D(oe,0,We,1,1,0,We,Ve,null);var nn=Fe.createFramebuffer();if(Fe.bindFramebuffer(tt,nn),Fe.framebufferTexture2D(tt,jt,oe,di,0),Fe.bindTexture(oe,null),Fe.checkFramebufferStatus(tt)!==Lt)fi=!1;else{Fe.viewport(0,0,1,1),Fe.clearColor(1,0,0,1),Fe.clear(or);var On=H.allocType(Ve,4);Fe.readPixels(0,0,1,1,We,Ve,On),Fe.getError()?fi=!1:(Fe.deleteFramebuffer(nn),Fe.deleteTexture(di),fi=On[0]===1),H.freeType(On)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Fe.createTexture(),ua=H.allocType(et,36);Fe.activeTexture(lt),Fe.bindTexture(Ne,Ls),Fe.texImage2D(vt,0,We,3,3,0,We,et,ua),H.freeType(ua),Fe.bindTexture(Ne,null),Fe.deleteTexture(Ls),wn=!Fe.getError()}return{colorBits:[Fe.getParameter(ae),Fe.getParameter(me),Fe.getParameter(Le),Fe.getParameter(Ce)],depthBits:Fe.getParameter(de),stencilBits:Fe.getParameter(te),subpixelBits:Fe.getParameter(re),extensions:Object.keys(Bt).filter(function(Hn){return!!Bt[Hn]}),maxAnisotropic:tr,maxDrawbuffers:Qr,maxColorAttachments:vi,pointSizeDims:Fe.getParameter(Se),lineWidthDims:Fe.getParameter(Te),maxViewportDims:Fe.getParameter(He),maxCombinedTextureUnits:Fe.getParameter(ce),maxCubeMapSize:Fe.getParameter(Ot),maxRenderbufferSize:Fe.getParameter(it),maxTextureUnits:Fe.getParameter(rt),maxTextureSize:Fe.getParameter(be),maxAttributes:Fe.getParameter(Ie),maxVertexUniforms:Fe.getParameter(ge),maxVertexTextureUnits:Fe.getParameter(je),maxVaryingVectors:Fe.getParameter(Be),maxFragmentUniforms:Fe.getParameter(bt),glsl:Fe.getParameter(kt),renderer:Fe.getParameter(zt),vendor:Fe.getParameter(Ke),version:Fe.getParameter(Mt),readFloat:fi,npotTextureCube:wn}},vr=function(Fe){return Fe instanceof Uint8Array||Fe instanceof Uint16Array||Fe instanceof Uint32Array||Fe instanceof Int8Array||Fe instanceof Int16Array||Fe instanceof Int32Array||Fe instanceof Float32Array||Fe instanceof Float64Array||Fe instanceof Uint8ClampedArray};function Vt(Fe){return!!Fe&&typeof Fe=="object"&&Array.isArray(Fe.shape)&&Array.isArray(Fe.stride)&&typeof Fe.offset=="number"&&Fe.shape.length===Fe.stride.length&&(Array.isArray(Fe.data)||vr(Fe.data))}var Pe=function(Fe){return Object.keys(Fe).map(function(Bt){return Fe[Bt]})},xe={shape:gt,flatten:st};function Oe(Fe,Bt,tr){for(var Qr=0;Qr0){var hs;if(Array.isArray(gi[0])){Kn=qr(gi);for(var Ji=1,Ui=1;Ui0){if(typeof Ji[0]=="number"){var Bn=H.allocType(Zi.dtype,Ji.length);mr(Bn,Ji),Kn(Bn,ro),H.freeType(Bn)}else if(Array.isArray(Ji[0])||vr(Ji[0])){na=qr(Ji);var In=hn(Ji,na,Zi.dtype);Kn(In,ro),H.freeType(In)}}}else if(Vt(Ji)){na=Ji.shape;var Va=Ji.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var al=Array.isArray(Ji.data)?Zi.dtype:Nt(Ji.data),pl=H.allocType(al,_s*ul);Lr(pl,Ji.data,_s,ul,Qn,Mo,Ji.offset),Kn(pl,ro),H.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Zi,ga.subdata=hs,tr.profile&&(ga.stats=Zi.stats),ga.destroy=function(){ua(Zi)},ga}function Ni(){Pe(fi).forEach(function(Wr){Wr.buffer=Fe.createBuffer(),Fe.bindBuffer(Wr.type,Wr.buffer),Fe.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return tr.profile&&(Bt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(gi){Wr+=fi[gi].stats.size}),Wr}),{create:Hn,createStream:On,destroyStream:Ln,clear:function(){Pe(fi).forEach(ua),nn.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof di?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Fr=0,Gr=0,Hr=1,mi=1,Ei=4,Vi=4,ti={points:Fr,point:Gr,lines:Hr,line:mi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Qi=0,Yr=1,oi=4,Fi=5120,rn=5121,tn=5122,Ri=5123,Ii=5124,xn=5125,xi=34963,Xr=35040,dt=35044;function $t(Fe,Bt,tr,Qr){var vi={},fi=0,di={uint8:rn,uint16:Ri};Bt.oes_element_index_uint&&(di.uint32=xn);function nn(Ni){this.id=fi++,vi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}nn.prototype.bind=function(){this.buffer.bind()};var On=[];function Ln(Ni){var Wr=On.pop();return Wr||(Wr=new nn(tr.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){On.push(Ni)}function Ls(Ni,Wr,gi,dn,En,Zi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!vr(Wr)||Vt(Wr)&&!vr(Wr.data))&&(hs=Bt.oes_element_index_uint?xn:Ri),tr._initBuffer(Ni.buffer,Wr,gi,hs,3)}else Fe.bufferData(xi,Zi,gi),Ni.buffer.dtype=Kn||rn,Ni.buffer.usage=gi,Ni.buffer.dimension=3,Ni.buffer.byteLength=Zi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case rn:case Fi:Kn=rn;break;case Ri:case tn:Kn=Ri;break;case xn:case Ii:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var Ji=En;Ji<0&&(Ji=Ni.buffer.byteLength,Kn===Ri?Ji>>=1:Kn===xn&&(Ji>>=2)),Ni.vertCount=Ji;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=Qi),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete vi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var gi=tr.create(null,xi,!0),dn=new nn(gi._buffer);Qr.elementsCount++;function En(Zi){if(!Zi)gi(),dn.primType=oi,dn.vertCount=0,dn.type=rn;else if(typeof Zi=="number")gi(Zi),dn.primType=oi,dn.vertCount=Zi|0,dn.type=rn;else{var ga=null,Kn=dt,hs=-1,Ji=-1,Ui=0,ro=0;Array.isArray(Zi)||vr(Zi)||Vt(Zi)?ga=Zi:("data"in Zi&&(ga=Zi.data),"usage"in Zi&&(Kn=ln[Zi.usage]),"primitive"in Zi&&(hs=ti[Zi.primitive]),"count"in Zi&&(Ji=Zi.count|0),"type"in Zi&&(ro=di[Zi.type]),"length"in Zi?Ui=Zi.length|0:(Ui=Ji,ro===Ri||ro===tn?Ui*=2:(ro===xn||ro===Ii)&&(Ui*=4))),Ls(dn,ga,Kn,hs,Ji,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Zi,ga){return gi.subdata(Zi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof nn?Ni._elements:null},clear:function(){Pe(vi).forEach(ua)}}}var fr=new Float32Array(1),gr=new Uint32Array(fr.buffer),Zr=5123;function wi(Fe){for(var Bt=H.allocType(Zr,Fe.length),tr=0;tr>>31<<15,fi=(Qr<<1>>>24)-127,di=Qr>>13&1023;if(fi<-24)Bt[tr]=vi;else if(fi<-14){var nn=-14-fi;Bt[tr]=vi+(di+1024>>nn)}else fi>15?Bt[tr]=vi+31744:Bt[tr]=vi+(fi+15<<10)+di}return Bt}function $i(Fe){return Array.isArray(Fe)||vr(Fe)}var ni=34467,Xi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,Wi=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Oa=5121,Ko=5123,Qo=5125,Hi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Ba=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Da=33984,Xn=[mo,jn,No,Go],sn=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Fe){return"[object "+Fe+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(xt).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Oa]=1,Na[Hi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var en=[];en[so]=2,en[Kr]=2,en[Ia]=2,en[uo]=4,en[mn]=.5,en[ra]=.5,en[wa]=1,en[ws]=1,en[Co]=.5,en[Po]=1,en[Wi]=1,en[gn]=.5,en[Ps]=.25,en[Ha]=.5,en[Sn]=.25,en[ao]=.5;function Pa(Fe){return Array.isArray(Fe)&&(Fe.length===0||typeof Fe[0]=="number")}function to(Fe){if(!Array.isArray(Fe))return!1;var Bt=Fe.length;return!(Bt===0||!$i(Fe[0]))}function yo(Fe){return Object.prototype.toString.call(Fe)}function Jo(Fe){return yo(Fe)===qn}function Ao(Fe){return yo(Fe)===Eo}function Rn(Fe){return yo(Fe)===Ja}function _a(Fe){return yo(Fe)===lo}function Ws(Fe){return yo(Fe)===eo}function Ca(Fe){return yo(Fe)===sa}function Es(Fe){if(!Fe)return!1;var Bt=yo(Fe);return es.indexOf(Bt)>=0?!0:Pa(Fe)||to(Fe)||Vt(Fe)}function Ts(Fe){return xt[Object.prototype.toString.call(Fe)]|0}function Ho(Fe,Bt){var tr=Bt.length;switch(Fe.type){case Oa:case Ko:case Qo:case Hi:var Qr=H.allocType(Fe.type,tr);Qr.set(Bt),Fe.data=Qr;break;case fo:Fe.data=wi(Bt);break;default:}}function Wa(Fe,Bt){return H.allocType(Fe.type===fo?Hi:Fe.type,Bt)}function To(Fe,Bt){Fe.type===fo?(Fe.data=wi(Bt),H.freeType(Bt)):Fe.data=Bt}function ts(Fe,Bt,tr,Qr,vi,fi){for(var di=Fe.width,nn=Fe.height,On=Fe.channels,Ln=di*nn*On,wn=Wa(Fe,Ln),Ls=0,ua=0;ua=1;)nn+=di*On*On,On/=2;return nn}else return di*tr*Qr}function qa(Fe,Bt,tr,Qr,vi,fi,di){var nn={"don't care":qs,"dont care":qs,nice:Ba,fast:Ns},On={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Oa,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};Bt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),Bt.oes_texture_float&&(ua.float32=ua.float=Hi),Bt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),Bt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),Bt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),Bt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":Wi}),Bt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),Bt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Fe.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Ee=Ni[ne];Wr.indexOf(Ee)>=0&&(Hn[ne]=Ee)});var gi=Object.keys(Hn);tr.textureFormats=gi;var dn=[];Object.keys(Hn).forEach(function(ne){var Ee=Hn[ne];dn[Ee]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Ee=ua[ne];En[Ee]=ne});var Zi=[];Object.keys(Ln).forEach(function(ne){var Ee=Ln[ne];Zi[Ee]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Ee=wn[ne];ga[Ee]=ne});var Kn=[];Object.keys(On).forEach(function(ne){var Ee=On[ne];Kn[Ee]=ne});var hs=gi.reduce(function(ne,Ee){var Je=Hn[Ee];return Je===oa||Je===Ga||Je===oa||Je===ka||Je===ys||Je===uo||Bt.ext_srgb&&(Je===ls||Je===$a)?ne[Je]=Je:Je===Kr||Ee.indexOf("rgba")>=0?ne[Je]=Un:ne[Je]=ma,ne},{});function Ji(){this.internalformat=Un,this.format=Un,this.type=Oa,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Ee){ne.internalformat=Ee.internalformat,ne.format=Ee.format,ne.type=Ee.type,ne.compressed=Ee.compressed,ne.premultiplyAlpha=Ee.premultiplyAlpha,ne.flipY=Ee.flipY,ne.unpackAlignment=Ee.unpackAlignment,ne.colorSpace=Ee.colorSpace,ne.width=Ee.width,ne.height=Ee.height,ne.channels=Ee.channels}function ro(ne,Ee){if(!(typeof Ee!="object"||!Ee)){if("premultiplyAlpha"in Ee&&(ne.premultiplyAlpha=Ee.premultiplyAlpha),"flipY"in Ee&&(ne.flipY=Ee.flipY),"alignment"in Ee&&(ne.unpackAlignment=Ee.alignment),"colorSpace"in Ee&&(ne.colorSpace=Ls[Ee.colorSpace]),"type"in Ee){var Je=Ee.type;ne.type=ua[Je]}var Ct=ne.width,ur=ne.height,Sr=ne.channels,nr=!1;"shape"in Ee?(Ct=Ee.shape[0],ur=Ee.shape[1],Ee.shape.length===3&&(Sr=Ee.shape[2],nr=!0)):("radius"in Ee&&(Ct=ur=Ee.radius),"width"in Ee&&(Ct=Ee.width),"height"in Ee&&(ur=Ee.height),"channels"in Ee&&(Sr=Ee.channels,nr=!0)),ne.width=Ct|0,ne.height=ur|0,ne.channels=Sr|0;var Qe=!1;if("format"in Ee){var pt=Ee.format,Tt=ne.internalformat=Hn[pt];ne.format=hs[Tt],pt in ua&&("type"in Ee||(ne.type=ua[pt])),pt in Ni&&(ne.compressed=!0),Qe=!0}!nr&&Qe?ne.channels=$n[ne.format]:nr&&!Qe&&ne.channels!==sn[ne.format]&&(ne.format=ne.internalformat=sn[ne.channels])}}function na(ne){Fe.pixelStorei(Ya,ne.flipY),Fe.pixelStorei(_n,ne.premultiplyAlpha),Fe.pixelStorei(Vn,ne.colorSpace),Fe.pixelStorei(Vs,ne.unpackAlignment)}function Bn(){Ji.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Ee){var Je=null;if(Es(Ee)?Je=Ee:Ee&&(ro(ne,Ee),"x"in Ee&&(ne.xOffset=Ee.x|0),"y"in Ee&&(ne.yOffset=Ee.y|0),Es(Ee.data)&&(Je=Ee.data)),Ee.copy){var Ct=vi.viewportWidth,ur=vi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||ur-ne.yOffset,ne.needsCopy=!0}else if(!Je)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(vr(Je))ne.channels=ne.channels||4,ne.data=Je,!("type"in Ee)&&ne.type===Oa&&(ne.type=Ts(Je));else if(Pa(Je))ne.channels=ne.channels||4,Ho(ne,Je),ne.alignment=1,ne.needsFree=!0;else if(Vt(Je)){var Sr=Je.data;!Array.isArray(Sr)&&ne.type===Oa&&(ne.type=Ts(Sr));var nr=Je.shape,Qe=Je.stride,pt,Tt,Xt,ir,Kt,ar;nr.length===3?(Xt=nr[2],ar=Qe[2]):(Xt=1,ar=1),pt=nr[0],Tt=nr[1],ir=Qe[0],Kt=Qe[1],ne.alignment=1,ne.width=pt,ne.height=Tt,ne.channels=Xt,ne.format=ne.internalformat=sn[Xt],ne.needsFree=!0,ts(ne,Sr,ir,Kt,ar,Je.offset)}else if(Jo(Je)||Ao(Je)||Rn(Je))Jo(Je)||Ao(Je)?ne.element=Je:ne.element=Je.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Je))ne.element=Je,ne.width=Je.width,ne.height=Je.height,ne.channels=4;else if(Ws(Je))ne.element=Je,ne.width=Je.naturalWidth,ne.height=Je.naturalHeight,ne.channels=4;else if(Ca(Je))ne.element=Je,ne.width=Je.videoWidth,ne.height=Je.videoHeight,ne.channels=4;else if(to(Je)){var Jt=ne.width||Je[0].length,Ft=ne.height||Je.length,Zt=ne.channels;$i(Je[0][0])?Zt=Zt||Je[0][0].length:Zt=Zt||1;for(var Pt=xe.shape(Je),Ar=1,Br=0;Br>=ur,Je.height>>=ur,In(Je,Ct[ur]),ne.mipmask|=1<=0&&!("faces"in Ee)&&(ne.genMipmaps=!0)}if("mag"in Ee){var Ct=Ee.mag;ne.magFilter=Ln[Ct]}var ur=ne.wrapS,Sr=ne.wrapT;if("wrap"in Ee){var nr=Ee.wrap;typeof nr=="string"?ur=Sr=On[nr]:Array.isArray(nr)&&(ur=On[nr[0]],Sr=On[nr[1]])}else{if("wrapS"in Ee){var Qe=Ee.wrapS;ur=On[Qe]}if("wrapT"in Ee){var pt=Ee.wrapT;Sr=On[pt]}}if(ne.wrapS=ur,ne.wrapT=Sr,"anisotropic"in Ee){var Tt=Ee.anisotropic;ne.anisotropic=Ee.anisotropic}if("mipmap"in Ee){var Xt=!1;switch(typeof Ee.mipmap){case"string":ne.mipmapHint=nn[Ee.mipmap],ne.genMipmaps=!0,Xt=!0;break;case"boolean":Xt=ne.genMipmaps=Ee.mipmap;break;case"object":ne.genMipmaps=!1,Xt=!0;break;default:}Xt&&!("min"in Ee)&&(ne.minFilter=mo)}}function xf(ne,Ee){Fe.texParameteri(Ee,As,ne.minFilter),Fe.texParameteri(Ee,vo,ne.magFilter),Fe.texParameteri(Ee,Sa,ne.wrapS),Fe.texParameteri(Ee,Qa,ne.wrapT),Bt.ext_texture_filter_anisotropic&&Fe.texParameteri(Ee,ha,ne.anisotropic),ne.genMipmaps&&(Fe.hint(Ys,ne.mipmapHint),Fe.generateMipmap(Ee))}var Cf=0,Gu={},cf=tr.maxTextureUnits,mf=Array(cf).map(function(){return null});function Fl(ne){Ji.call(this),this.mipmask=0,this.internalformat=Un,this.id=Cf++,this.refCount=1,this.target=ne,this.texture=Fe.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,di.profile&&(this.stats={size:0})}function bf(ne){Fe.activeTexture(Da),Fe.bindTexture(ne.target,ne.texture)}function cu(){var ne=mf[0];ne?Fe.bindTexture(ne.target,ne.texture):Fe.bindTexture(Xi,null)}function Y(ne){var Ee=ne.texture,Je=ne.unit,Ct=ne.target;Je>=0&&(Fe.activeTexture(Da+Je),Fe.bindTexture(Ct,null),mf[Je]=null),Fe.deleteTexture(Ee),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Gu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Ee=ne.unit;if(Ee<0){for(var Je=0;Je0)continue;Ct.unit=-1}mf[Je]=ne,Ee=Je;break}Ee>=cf,di.profile&&fi.maxTextureUnits>Kt)-Xt,ar.height=ar.height||(Je.height>>Kt)-ir,bf(Je),_s(ar,Xi,Xt,ir,Kt),cu(),Mo(ar),Ct}function Sr(nr,Qe){var pt=nr|0,Tt=Qe|0||pt;if(pt===Je.width&&Tt===Je.height)return Ct;Ct.width=Je.width=pt,Ct.height=Je.height=Tt,bf(Je);for(var Xt=0;Je.mipmask>>Xt;++Xt){var ir=pt>>Xt,Kt=Tt>>Xt;if(!ir||!Kt)break;Fe.texImage2D(Xi,Xt,Je.format,ir,Kt,0,Je.format,Je.type,null)}return cu(),di.profile&&(Je.stats.size=Wo(Je.internalformat,Je.type,pt,Tt,!1,!1)),Ct}return Ct(ne,Ee),Ct.subimage=ur,Ct.resize=Sr,Ct._reglType="texture2d",Ct._texture=Je,di.profile&&(Ct.stats=Je.stats),Ct.destroy=function(){Je.decRef()},Ct}function J(ne,Ee,Je,Ct,ur,Sr){var nr=new Fl(aa);Gu[nr.id]=nr,fi.cubeCount++;var Qe=new Array(6);function pt(ir,Kt,ar,Jt,Ft,Zt){var Pt,Ar=nr.texInfo;for(Cu.call(Ar),Pt=0;Pt<6;++Pt)Qe[Pt]=Ql();if(typeof ir=="number"||!ir){var Br=ir|0||1;for(Pt=0;Pt<6;++Pt)pl(Qe[Pt],Br,Br)}else if(typeof ir=="object")if(Kt)Rl(Qe[0],ir),Rl(Qe[1],Kt),Rl(Qe[2],ar),Rl(Qe[3],Jt),Rl(Qe[4],Ft),Rl(Qe[5],Zt);else if(gf(Ar,ir),ro(nr,ir),"faces"in ir){var ci=ir.faces;for(Pt=0;Pt<6;++Pt)Ui(Qe[Pt],nr),Rl(Qe[Pt],ci[Pt])}else for(Pt=0;Pt<6;++Pt)Rl(Qe[Pt],ir);for(Ui(nr,Qe[0]),Ar.genMipmaps?nr.mipmask=(Qe[0].width<<1)-1:nr.mipmask=Qe[0].mipmask,nr.internalformat=Qe[0].internalformat,pt.width=Qe[0].width,pt.height=Qe[0].height,bf(nr),Pt=0;Pt<6;++Pt)Ou(Qe[Pt],Mn+Pt);for(xf(Ar,aa),cu(),di.profile&&(nr.stats.size=Wo(nr.internalformat,nr.type,pt.width,pt.height,Ar.genMipmaps,!0)),pt.format=dn[nr.internalformat],pt.type=En[nr.type],pt.mag=Zi[Ar.magFilter],pt.min=ga[Ar.minFilter],pt.wrapS=Kn[Ar.wrapS],pt.wrapT=Kn[Ar.wrapT],Pt=0;Pt<6;++Pt)Ef(Qe[Pt]);return pt}function Tt(ir,Kt,ar,Jt,Ft){var Zt=ar|0,Pt=Jt|0,Ar=Ft|0,Br=Qn();return Ui(Br,nr),Br.width=0,Br.height=0,In(Br,Kt),Br.width=Br.width||(nr.width>>Ar)-Zt,Br.height=Br.height||(nr.height>>Ar)-Pt,bf(nr),_s(Br,Mn+ir,Zt,Pt,Ar),cu(),Mo(Br),pt}function Xt(ir){var Kt=ir|0;if(Kt!==nr.width){pt.width=nr.width=Kt,pt.height=nr.height=Kt,bf(nr);for(var ar=0;ar<6;++ar)for(var Jt=0;nr.mipmask>>Jt;++Jt)Fe.texImage2D(Mn+ar,Jt,nr.format,Kt>>Jt,Kt>>Jt,0,nr.format,nr.type,null);return cu(),di.profile&&(nr.stats.size=Wo(nr.internalformat,nr.type,pt.width,pt.height,!1,!0)),pt}}return pt(ne,Ee,Je,Ct,ur,Sr),pt.subimage=Tt,pt.resize=Xt,pt._reglType="textureCube",pt._texture=nr,di.profile&&(pt.stats=nr.stats),pt.destroy=function(){nr.decRef()},pt}function B(){for(var ne=0;ne>Ct,Je.height>>Ct,0,Je.internalformat,Je.type,null);else for(var ur=0;ur<6;++ur)Fe.texImage2D(Mn+ur,Ct,Je.internalformat,Je.width>>Ct,Je.height>>Ct,0,Je.internalformat,Je.type,null);xf(Je.texInfo,Je.target)})}function ye(){for(var ne=0;ne=0?Ef=!0:On.indexOf(Cu)>=0&&(Ef=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(mf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Ou=Fl.depth:(Cf=Fl.depth,vf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?vf=Fl.stencil:(Gu=Fl.stencil,Ou=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Ou=vf=Fl.depthStencil:(cf=Fl.depthStencil,Ou=!1,vf=!1))}var cu=null,Y=null,D=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(xf),al=0;al0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:al,height:al,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var al=Va.color;for(Qn=0;Qn=al.byteLength?pl.subdata(al):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=vi.create(Qn,Ss,!1,!0)),Mo.buffer=vi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else vi.getBuffer(Qn)?(Mo.buffer=vi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):vi.getBuffer(Qn.buffer)?(Mo.buffer=vi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=Ai[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Rl=0;Rl1)for(var na=0;naWr&&(Wr=gi.stats.uniformsCount)}),Wr},tr.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(gi){gi.stats.attributesCount>Wr&&(Wr=gi.stats.attributesCount)}),Wr});function Ni(){vi={},fi={};for(var Wr=0;Wr16&&(tr=Li(tr,Fe.length*8));for(var Qr=Array(16),vi=Array(16),fi=0;fi<16;fi++)Qr[fi]=tr[fi]^909522486,vi[fi]=tr[fi]^1549556828;var di=Li(Qr.concat(Os(Bt)),512+Bt.length*8);return St(Li(vi.concat(di),768))}function Ms(Fe){for(var Bt=Do?"0123456789ABCDEF":"0123456789abcdef",tr="",Qr,vi=0;vi>>4&15)+Bt.charAt(Qr&15);return tr}function jo(Fe){for(var Bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tr="",Qr=Fe.length,vi=0;viFe.length*8?tr+=tl:tr+=Bt.charAt(fi>>>6*(3-di)&63);return tr}function Ds(Fe,Bt){var tr=Bt.length,Qr=Array(),vi,fi,di,nn,On=Array(Math.ceil(Fe.length/2));for(vi=0;vi0;){for(nn=Array(),di=0,vi=0;vi0||fi>0)&&(nn[nn.length]=fi);Qr[Qr.length]=di,On=nn}var Ln="";for(vi=Qr.length-1;vi>=0;vi--)Ln+=Bt.charAt(Qr[vi]);var wn=Math.ceil(Fe.length*8/(Math.log(Bt.length)/Math.log(2)));for(vi=Ln.length;vi>>6&31,128|Qr&63):Qr<=65535?Bt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(Bt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return Bt}function Os(Fe){for(var Bt=Array(Fe.length>>2),tr=0;tr>5]|=(Fe.charCodeAt(tr/8)&255)<<24-tr%32;return Bt}function St(Fe){for(var Bt="",tr=0;tr>5]>>>24-tr%32&255);return Bt}function Ut(Fe,Bt){return Fe>>>Bt|Fe<<32-Bt}function xr(Fe,Bt){return Fe>>>Bt}function dr(Fe,Bt,tr){return Fe&Bt^~Fe&tr}function Rr(Fe,Bt,tr){return Fe&Bt^Fe&tr^Bt&tr}function yi(Fe){return Ut(Fe,2)^Ut(Fe,13)^Ut(Fe,22)}function Ti(Fe){return Ut(Fe,6)^Ut(Fe,11)^Ut(Fe,25)}function ki(Fe){return Ut(Fe,7)^Ut(Fe,18)^xr(Fe,3)}function Ki(Fe){return Ut(Fe,17)^Ut(Fe,19)^xr(Fe,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Li(Fe,Bt){var tr=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Fe[Bt>>5]|=128<<24-Bt%32,Fe[(Bt+64>>9<<4)+15]=Bt,ua=0;ua>16)+(Bt>>16)+(tr>>16);return Qr<<16|tr&65535}function Ci(Fe){return Array.prototype.slice.call(Fe)}function Si(Fe){return Ci(Fe).join("")}function Gn(Fe){var Bt=Fe&&Fe.cache,tr=0,Qr=[],vi=[],fi=[];function di(Ni,Wr){var gi=Wr&&Wr.stable;if(!gi){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Ci(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([gi.length>0?"var "+gi.join(",")+";":"",Si(Ni)])}})}function On(){var Ni=nn(),Wr=nn(),gi=Ni.toString,dn=Wr.toString;function En(Zi,ga){Wr(Zi,ga,"=",Ni.def(Zi,ga),";")}return e(function(){Ni.apply(Ni,Ci(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Zi,ga,Kn){En(Zi,ga),Ni(Zi,ga,"=",Kn,";")},toString:function(){return gi()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=On(),gi=On(),dn=Wr.toString,En=gi.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Ci(arguments)),this},else:function(){return gi.apply(gi,Ci(arguments)),this},toString:function(){var Zi=En();return Zi&&(Zi="else{"+Zi+"}"),Si(["if(",Ni,"){",dn(),"}",Zi])}})}var wn=nn(),Ls={};function ua(Ni,Wr){var gi=[];function dn(){var hs="a"+gi.length;return gi.push(hs),hs}Wr=Wr||0;for(var En=0;En2){for(var a=Array(t.position.length*.5),o=0;o2){for(var l=!t.position[0].length,f=Ax.mallocFloat(this.count*2),c=0,h=0;c1?r.align[de]:r.align[0]:r.align;if(typeof te=="number")return te;switch(te){case"right":case"end":return-Ee;case"center":case"centre":case"middle":return-Ee*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ee,de){var te=(r.font[de]||r.font[0]).metrics,Se=0;return Se+=te.bottom*.5,typeof Ee=="number"?Se+=Ee-te.baseline:Se+=-te[Ee],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=CK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var j=t.color.length;G=Ax.mallocUint8(j);for(var W=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ae){var me=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(me);for(var Ce=0;Ce1?this.counts[Ce]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ce]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ce*4,Ce*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ce]:this.opacity,baseline:this.baselineOffset[Ce]!=null?this.baselineOffset[Ce]:this.baselineOffset[0],align:this.align?this.alignOffset[Ce]!=null?this.alignOffset[Ce]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ce]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ce*2,Ce*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};kc.prototype.destroy=function(){};kc.prototype.kerning=!0;kc.prototype.position={constant:new Float32Array(2)};kc.prototype.translate=null;kc.prototype.scale=null;kc.prototype.font=null;kc.prototype.text="";kc.prototype.positionOffset=[0,0];kc.prototype.opacity=1;kc.prototype.color=new Uint8Array([0,0,0,255]);kc.prototype.alignOffset=[0,0];kc.maxAtlasSize=1024;kc.atlasCanvas=document.createElement("canvas");kc.atlasContext=kc.atlasCanvas.getContext("2d",{alpha:!1});kc.baseFontSize=64;kc.fonts={};function nGt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}e7e.exports=kc});var r7e=we((LK,PK)=>{(function(e,t){typeof LK=="object"&&typeof PK!="undefined"?PK.exports=t():e.createREGL=t()})(LK,(function(){"use strict";var e=function(Fe,Bt){for(var tr=Object.keys(Bt),Qr=0;Qr1&&Bt===tr&&(Bt==='"'||Bt==="'"))return['"'+o(Fe.substr(1,Fe.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Fe);if(Qr)return s(Fe.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Fe.substr(Qr.index+Qr[0].length)));var vi=Fe.split(".");if(vi.length===1)return['"'+o(Fe)+'"'];for(var fi=[],di=0;di65535)<<4,Fe>>>=Bt,tr=(Fe>255)<<3,Fe>>>=tr,Bt|=tr,tr=(Fe>15)<<2,Fe>>>=tr,Bt|=tr,tr=(Fe>3)<<1,Fe>>>=tr,Bt|=tr,Bt|Fe>>1}function N(){var Fe=S(8,function(){return[]});function Bt(fi){var di=j(fi),nn=Fe[W(di)>>2];return nn.length>0?nn.pop():new ArrayBuffer(di)}function tr(fi){Fe[W(fi.byteLength)>>2].push(fi)}function Qr(fi,di){var nn=null;switch(fi){case m:nn=new Int8Array(Bt(di),0,di);break;case P:nn=new Uint8Array(Bt(di),0,di);break;case M:nn=new Int16Array(Bt(2*di),0,di);break;case O:nn=new Uint16Array(Bt(2*di),0,di);break;case F:nn=new Int32Array(Bt(4*di),0,di);break;case U:nn=new Uint32Array(Bt(4*di),0,di);break;case G:nn=new Float32Array(Bt(4*di),0,di);break;default:return null}return nn.length!==di?nn.subarray(0,di):nn}function vi(fi){tr(fi.buffer)}return{alloc:Bt,free:tr,allocType:Qr,freeType:vi}}var H=N();H.zero=N();var re=3408,ae=3410,me=3411,Ce=3412,Ee=3413,de=3414,te=3415,Se=33901,Te=33902,be=3379,He=3386,Ie=34921,ge=36347,Be=36348,ce=35661,je=35660,rt=34930,bt=36349,Ot=34076,it=34024,Ke=7936,zt=7937,Mt=7938,kt=35724,$e=34047,Re=36063,Me=34852,oe=3553,Ne=34067,vt=34069,lt=33984,We=6408,Ve=5126,et=5121,tt=36160,Lt=36053,jt=36064,or=16384,yr=function(Fe,Bt){var tr=1;Bt.ext_texture_filter_anisotropic&&(tr=Fe.getParameter($e));var Qr=1,vi=1;Bt.webgl_draw_buffers&&(Qr=Fe.getParameter(Me),vi=Fe.getParameter(Re));var fi=!!Bt.oes_texture_float;if(fi){var di=Fe.createTexture();Fe.bindTexture(oe,di),Fe.texImage2D(oe,0,We,1,1,0,We,Ve,null);var nn=Fe.createFramebuffer();if(Fe.bindFramebuffer(tt,nn),Fe.framebufferTexture2D(tt,jt,oe,di,0),Fe.bindTexture(oe,null),Fe.checkFramebufferStatus(tt)!==Lt)fi=!1;else{Fe.viewport(0,0,1,1),Fe.clearColor(1,0,0,1),Fe.clear(or);var On=H.allocType(Ve,4);Fe.readPixels(0,0,1,1,We,Ve,On),Fe.getError()?fi=!1:(Fe.deleteFramebuffer(nn),Fe.deleteTexture(di),fi=On[0]===1),H.freeType(On)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Fe.createTexture(),ua=H.allocType(et,36);Fe.activeTexture(lt),Fe.bindTexture(Ne,Ls),Fe.texImage2D(vt,0,We,3,3,0,We,et,ua),H.freeType(ua),Fe.bindTexture(Ne,null),Fe.deleteTexture(Ls),wn=!Fe.getError()}return{colorBits:[Fe.getParameter(ae),Fe.getParameter(me),Fe.getParameter(Ce),Fe.getParameter(Ee)],depthBits:Fe.getParameter(de),stencilBits:Fe.getParameter(te),subpixelBits:Fe.getParameter(re),extensions:Object.keys(Bt).filter(function(Hn){return!!Bt[Hn]}),maxAnisotropic:tr,maxDrawbuffers:Qr,maxColorAttachments:vi,pointSizeDims:Fe.getParameter(Se),lineWidthDims:Fe.getParameter(Te),maxViewportDims:Fe.getParameter(He),maxCombinedTextureUnits:Fe.getParameter(ce),maxCubeMapSize:Fe.getParameter(Ot),maxRenderbufferSize:Fe.getParameter(it),maxTextureUnits:Fe.getParameter(rt),maxTextureSize:Fe.getParameter(be),maxAttributes:Fe.getParameter(Ie),maxVertexUniforms:Fe.getParameter(ge),maxVertexTextureUnits:Fe.getParameter(je),maxVaryingVectors:Fe.getParameter(Be),maxFragmentUniforms:Fe.getParameter(bt),glsl:Fe.getParameter(kt),renderer:Fe.getParameter(zt),vendor:Fe.getParameter(Ke),version:Fe.getParameter(Mt),readFloat:fi,npotTextureCube:wn}},vr=function(Fe){return Fe instanceof Uint8Array||Fe instanceof Uint16Array||Fe instanceof Uint32Array||Fe instanceof Int8Array||Fe instanceof Int16Array||Fe instanceof Int32Array||Fe instanceof Float32Array||Fe instanceof Float64Array||Fe instanceof Uint8ClampedArray};function Vt(Fe){return!!Fe&&typeof Fe=="object"&&Array.isArray(Fe.shape)&&Array.isArray(Fe.stride)&&typeof Fe.offset=="number"&&Fe.shape.length===Fe.stride.length&&(Array.isArray(Fe.data)||vr(Fe.data))}var Pe=function(Fe){return Object.keys(Fe).map(function(Bt){return Fe[Bt]})},xe={shape:gt,flatten:st};function Oe(Fe,Bt,tr){for(var Qr=0;Qr0){var hs;if(Array.isArray(gi[0])){Kn=qr(gi);for(var Ji=1,Ui=1;Ui0){if(typeof Ji[0]=="number"){var Bn=H.allocType(Zi.dtype,Ji.length);mr(Bn,Ji),Kn(Bn,ro),H.freeType(Bn)}else if(Array.isArray(Ji[0])||vr(Ji[0])){na=qr(Ji);var In=hn(Ji,na,Zi.dtype);Kn(In,ro),H.freeType(In)}}}else if(Vt(Ji)){na=Ji.shape;var Va=Ji.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var al=Array.isArray(Ji.data)?Zi.dtype:Nt(Ji.data),pl=H.allocType(al,_s*ul);Lr(pl,Ji.data,_s,ul,Qn,Mo,Ji.offset),Kn(pl,ro),H.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Zi,ga.subdata=hs,tr.profile&&(ga.stats=Zi.stats),ga.destroy=function(){ua(Zi)},ga}function Ni(){Pe(fi).forEach(function(Wr){Wr.buffer=Fe.createBuffer(),Fe.bindBuffer(Wr.type,Wr.buffer),Fe.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return tr.profile&&(Bt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(gi){Wr+=fi[gi].stats.size}),Wr}),{create:Hn,createStream:On,destroyStream:Ln,clear:function(){Pe(fi).forEach(ua),nn.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof di?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Fr=0,Hr=0,Gr=1,mi=1,Ei=4,Vi=4,ti={points:Fr,point:Hr,lines:Gr,line:mi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Qi=0,Yr=1,oi=4,Fi=5120,rn=5121,tn=5122,Di=5123,Ii=5124,xn=5125,xi=34963,Xr=35040,dt=35044;function $t(Fe,Bt,tr,Qr){var vi={},fi=0,di={uint8:rn,uint16:Di};Bt.oes_element_index_uint&&(di.uint32=xn);function nn(Ni){this.id=fi++,vi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}nn.prototype.bind=function(){this.buffer.bind()};var On=[];function Ln(Ni){var Wr=On.pop();return Wr||(Wr=new nn(tr.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){On.push(Ni)}function Ls(Ni,Wr,gi,dn,En,Zi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!vr(Wr)||Vt(Wr)&&!vr(Wr.data))&&(hs=Bt.oes_element_index_uint?xn:Di),tr._initBuffer(Ni.buffer,Wr,gi,hs,3)}else Fe.bufferData(xi,Zi,gi),Ni.buffer.dtype=Kn||rn,Ni.buffer.usage=gi,Ni.buffer.dimension=3,Ni.buffer.byteLength=Zi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case rn:case Fi:Kn=rn;break;case Di:case tn:Kn=Di;break;case xn:case Ii:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var Ji=En;Ji<0&&(Ji=Ni.buffer.byteLength,Kn===Di?Ji>>=1:Kn===xn&&(Ji>>=2)),Ni.vertCount=Ji;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=Qi),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete vi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var gi=tr.create(null,xi,!0),dn=new nn(gi._buffer);Qr.elementsCount++;function En(Zi){if(!Zi)gi(),dn.primType=oi,dn.vertCount=0,dn.type=rn;else if(typeof Zi=="number")gi(Zi),dn.primType=oi,dn.vertCount=Zi|0,dn.type=rn;else{var ga=null,Kn=dt,hs=-1,Ji=-1,Ui=0,ro=0;Array.isArray(Zi)||vr(Zi)||Vt(Zi)?ga=Zi:("data"in Zi&&(ga=Zi.data),"usage"in Zi&&(Kn=ln[Zi.usage]),"primitive"in Zi&&(hs=ti[Zi.primitive]),"count"in Zi&&(Ji=Zi.count|0),"type"in Zi&&(ro=di[Zi.type]),"length"in Zi?Ui=Zi.length|0:(Ui=Ji,ro===Di||ro===tn?Ui*=2:(ro===xn||ro===Ii)&&(Ui*=4))),Ls(dn,ga,Kn,hs,Ji,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Zi,ga){return gi.subdata(Zi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof nn?Ni._elements:null},clear:function(){Pe(vi).forEach(ua)}}}var fr=new Float32Array(1),gr=new Uint32Array(fr.buffer),Zr=5123;function wi(Fe){for(var Bt=H.allocType(Zr,Fe.length),tr=0;tr>>31<<15,fi=(Qr<<1>>>24)-127,di=Qr>>13&1023;if(fi<-24)Bt[tr]=vi;else if(fi<-14){var nn=-14-fi;Bt[tr]=vi+(di+1024>>nn)}else fi>15?Bt[tr]=vi+31744:Bt[tr]=vi+(fi+15<<10)+di}return Bt}function $i(Fe){return Array.isArray(Fe)||vr(Fe)}var ni=34467,Xi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,Wi=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Oa=5121,Ko=5123,Qo=5125,Hi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Ba=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],sn=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Fe){return"[object "+Fe+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(xt).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Oa]=1,Na[Hi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var en=[];en[so]=2,en[Kr]=2,en[Ia]=2,en[uo]=4,en[mn]=.5,en[ra]=.5,en[wa]=1,en[ws]=1,en[Co]=.5,en[Po]=1,en[Wi]=1,en[gn]=.5,en[Ps]=.25,en[Ha]=.5,en[Sn]=.25,en[ao]=.5;function Pa(Fe){return Array.isArray(Fe)&&(Fe.length===0||typeof Fe[0]=="number")}function to(Fe){if(!Array.isArray(Fe))return!1;var Bt=Fe.length;return!(Bt===0||!$i(Fe[0]))}function yo(Fe){return Object.prototype.toString.call(Fe)}function Jo(Fe){return yo(Fe)===qn}function Ao(Fe){return yo(Fe)===Eo}function Dn(Fe){return yo(Fe)===Ja}function _a(Fe){return yo(Fe)===lo}function Ws(Fe){return yo(Fe)===eo}function Ca(Fe){return yo(Fe)===sa}function Es(Fe){if(!Fe)return!1;var Bt=yo(Fe);return es.indexOf(Bt)>=0?!0:Pa(Fe)||to(Fe)||Vt(Fe)}function Ts(Fe){return xt[Object.prototype.toString.call(Fe)]|0}function Ho(Fe,Bt){var tr=Bt.length;switch(Fe.type){case Oa:case Ko:case Qo:case Hi:var Qr=H.allocType(Fe.type,tr);Qr.set(Bt),Fe.data=Qr;break;case fo:Fe.data=wi(Bt);break;default:}}function Wa(Fe,Bt){return H.allocType(Fe.type===fo?Hi:Fe.type,Bt)}function To(Fe,Bt){Fe.type===fo?(Fe.data=wi(Bt),H.freeType(Bt)):Fe.data=Bt}function ts(Fe,Bt,tr,Qr,vi,fi){for(var di=Fe.width,nn=Fe.height,On=Fe.channels,Ln=di*nn*On,wn=Wa(Fe,Ln),Ls=0,ua=0;ua=1;)nn+=di*On*On,On/=2;return nn}else return di*tr*Qr}function qa(Fe,Bt,tr,Qr,vi,fi,di){var nn={"don't care":qs,"dont care":qs,nice:Ba,fast:Ns},On={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Oa,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};Bt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),Bt.oes_texture_float&&(ua.float32=ua.float=Hi),Bt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),Bt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),Bt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),Bt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":Wi}),Bt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),Bt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Fe.getParameter(ni));Object.keys(Ni).forEach(function(ne){var ke=Ni[ne];Wr.indexOf(ke)>=0&&(Hn[ne]=ke)});var gi=Object.keys(Hn);tr.textureFormats=gi;var dn=[];Object.keys(Hn).forEach(function(ne){var ke=Hn[ne];dn[ke]=ne});var En=[];Object.keys(ua).forEach(function(ne){var ke=ua[ne];En[ke]=ne});var Zi=[];Object.keys(Ln).forEach(function(ne){var ke=Ln[ne];Zi[ke]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var ke=wn[ne];ga[ke]=ne});var Kn=[];Object.keys(On).forEach(function(ne){var ke=On[ne];Kn[ke]=ne});var hs=gi.reduce(function(ne,ke){var Je=Hn[ke];return Je===oa||Je===Ga||Je===oa||Je===ka||Je===ys||Je===uo||Bt.ext_srgb&&(Je===ls||Je===$a)?ne[Je]=Je:Je===Kr||ke.indexOf("rgba")>=0?ne[Je]=Un:ne[Je]=ma,ne},{});function Ji(){this.internalformat=Un,this.format=Un,this.type=Oa,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,ke){ne.internalformat=ke.internalformat,ne.format=ke.format,ne.type=ke.type,ne.compressed=ke.compressed,ne.premultiplyAlpha=ke.premultiplyAlpha,ne.flipY=ke.flipY,ne.unpackAlignment=ke.unpackAlignment,ne.colorSpace=ke.colorSpace,ne.width=ke.width,ne.height=ke.height,ne.channels=ke.channels}function ro(ne,ke){if(!(typeof ke!="object"||!ke)){if("premultiplyAlpha"in ke&&(ne.premultiplyAlpha=ke.premultiplyAlpha),"flipY"in ke&&(ne.flipY=ke.flipY),"alignment"in ke&&(ne.unpackAlignment=ke.alignment),"colorSpace"in ke&&(ne.colorSpace=Ls[ke.colorSpace]),"type"in ke){var Je=ke.type;ne.type=ua[Je]}var Ct=ne.width,ur=ne.height,Sr=ne.channels,nr=!1;"shape"in ke?(Ct=ke.shape[0],ur=ke.shape[1],ke.shape.length===3&&(Sr=ke.shape[2],nr=!0)):("radius"in ke&&(Ct=ur=ke.radius),"width"in ke&&(Ct=ke.width),"height"in ke&&(ur=ke.height),"channels"in ke&&(Sr=ke.channels,nr=!0)),ne.width=Ct|0,ne.height=ur|0,ne.channels=Sr|0;var Qe=!1;if("format"in ke){var pt=ke.format,Tt=ne.internalformat=Hn[pt];ne.format=hs[Tt],pt in ua&&("type"in ke||(ne.type=ua[pt])),pt in Ni&&(ne.compressed=!0),Qe=!0}!nr&&Qe?ne.channels=$n[ne.format]:nr&&!Qe&&ne.channels!==sn[ne.format]&&(ne.format=ne.internalformat=sn[ne.channels])}}function na(ne){Fe.pixelStorei(Ya,ne.flipY),Fe.pixelStorei(_n,ne.premultiplyAlpha),Fe.pixelStorei(Vn,ne.colorSpace),Fe.pixelStorei(Vs,ne.unpackAlignment)}function Bn(){Ji.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,ke){var Je=null;if(Es(ke)?Je=ke:ke&&(ro(ne,ke),"x"in ke&&(ne.xOffset=ke.x|0),"y"in ke&&(ne.yOffset=ke.y|0),Es(ke.data)&&(Je=ke.data)),ke.copy){var Ct=vi.viewportWidth,ur=vi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||ur-ne.yOffset,ne.needsCopy=!0}else if(!Je)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(vr(Je))ne.channels=ne.channels||4,ne.data=Je,!("type"in ke)&&ne.type===Oa&&(ne.type=Ts(Je));else if(Pa(Je))ne.channels=ne.channels||4,Ho(ne,Je),ne.alignment=1,ne.needsFree=!0;else if(Vt(Je)){var Sr=Je.data;!Array.isArray(Sr)&&ne.type===Oa&&(ne.type=Ts(Sr));var nr=Je.shape,Qe=Je.stride,pt,Tt,Xt,ir,Kt,ar;nr.length===3?(Xt=nr[2],ar=Qe[2]):(Xt=1,ar=1),pt=nr[0],Tt=nr[1],ir=Qe[0],Kt=Qe[1],ne.alignment=1,ne.width=pt,ne.height=Tt,ne.channels=Xt,ne.format=ne.internalformat=sn[Xt],ne.needsFree=!0,ts(ne,Sr,ir,Kt,ar,Je.offset)}else if(Jo(Je)||Ao(Je)||Dn(Je))Jo(Je)||Ao(Je)?ne.element=Je:ne.element=Je.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Je))ne.element=Je,ne.width=Je.width,ne.height=Je.height,ne.channels=4;else if(Ws(Je))ne.element=Je,ne.width=Je.naturalWidth,ne.height=Je.naturalHeight,ne.channels=4;else if(Ca(Je))ne.element=Je,ne.width=Je.videoWidth,ne.height=Je.videoHeight,ne.channels=4;else if(to(Je)){var Jt=ne.width||Je[0].length,Ft=ne.height||Je.length,Zt=ne.channels;$i(Je[0][0])?Zt=Zt||Je[0][0].length:Zt=Zt||1;for(var Pt=xe.shape(Je),Ar=1,Br=0;Br>=ur,Je.height>>=ur,In(Je,Ct[ur]),ne.mipmask|=1<=0&&!("faces"in ke)&&(ne.genMipmaps=!0)}if("mag"in ke){var Ct=ke.mag;ne.magFilter=Ln[Ct]}var ur=ne.wrapS,Sr=ne.wrapT;if("wrap"in ke){var nr=ke.wrap;typeof nr=="string"?ur=Sr=On[nr]:Array.isArray(nr)&&(ur=On[nr[0]],Sr=On[nr[1]])}else{if("wrapS"in ke){var Qe=ke.wrapS;ur=On[Qe]}if("wrapT"in ke){var pt=ke.wrapT;Sr=On[pt]}}if(ne.wrapS=ur,ne.wrapT=Sr,"anisotropic"in ke){var Tt=ke.anisotropic;ne.anisotropic=ke.anisotropic}if("mipmap"in ke){var Xt=!1;switch(typeof ke.mipmap){case"string":ne.mipmapHint=nn[ke.mipmap],ne.genMipmaps=!0,Xt=!0;break;case"boolean":Xt=ne.genMipmaps=ke.mipmap;break;case"object":ne.genMipmaps=!1,Xt=!0;break;default:}Xt&&!("min"in ke)&&(ne.minFilter=mo)}}function xf(ne,ke){Fe.texParameteri(ke,As,ne.minFilter),Fe.texParameteri(ke,vo,ne.magFilter),Fe.texParameteri(ke,Sa,ne.wrapS),Fe.texParameteri(ke,Qa,ne.wrapT),Bt.ext_texture_filter_anisotropic&&Fe.texParameteri(ke,ha,ne.anisotropic),ne.genMipmaps&&(Fe.hint(Ys,ne.mipmapHint),Fe.generateMipmap(ke))}var Cf=0,Gu={},cf=tr.maxTextureUnits,mf=Array(cf).map(function(){return null});function Fl(ne){Ji.call(this),this.mipmask=0,this.internalformat=Un,this.id=Cf++,this.refCount=1,this.target=ne,this.texture=Fe.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,di.profile&&(this.stats={size:0})}function bf(ne){Fe.activeTexture(Ra),Fe.bindTexture(ne.target,ne.texture)}function cu(){var ne=mf[0];ne?Fe.bindTexture(ne.target,ne.texture):Fe.bindTexture(Xi,null)}function Y(ne){var ke=ne.texture,Je=ne.unit,Ct=ne.target;Je>=0&&(Fe.activeTexture(Ra+Je),Fe.bindTexture(Ct,null),mf[Je]=null),Fe.deleteTexture(ke),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Gu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var ke=ne.unit;if(ke<0){for(var Je=0;Je0)continue;Ct.unit=-1}mf[Je]=ne,ke=Je;break}ke>=cf,di.profile&&fi.maxTextureUnits>Kt)-Xt,ar.height=ar.height||(Je.height>>Kt)-ir,bf(Je),_s(ar,Xi,Xt,ir,Kt),cu(),Mo(ar),Ct}function Sr(nr,Qe){var pt=nr|0,Tt=Qe|0||pt;if(pt===Je.width&&Tt===Je.height)return Ct;Ct.width=Je.width=pt,Ct.height=Je.height=Tt,bf(Je);for(var Xt=0;Je.mipmask>>Xt;++Xt){var ir=pt>>Xt,Kt=Tt>>Xt;if(!ir||!Kt)break;Fe.texImage2D(Xi,Xt,Je.format,ir,Kt,0,Je.format,Je.type,null)}return cu(),di.profile&&(Je.stats.size=Wo(Je.internalformat,Je.type,pt,Tt,!1,!1)),Ct}return Ct(ne,ke),Ct.subimage=ur,Ct.resize=Sr,Ct._reglType="texture2d",Ct._texture=Je,di.profile&&(Ct.stats=Je.stats),Ct.destroy=function(){Je.decRef()},Ct}function J(ne,ke,Je,Ct,ur,Sr){var nr=new Fl(aa);Gu[nr.id]=nr,fi.cubeCount++;var Qe=new Array(6);function pt(ir,Kt,ar,Jt,Ft,Zt){var Pt,Ar=nr.texInfo;for(Cu.call(Ar),Pt=0;Pt<6;++Pt)Qe[Pt]=Ql();if(typeof ir=="number"||!ir){var Br=ir|0||1;for(Pt=0;Pt<6;++Pt)pl(Qe[Pt],Br,Br)}else if(typeof ir=="object")if(Kt)Dl(Qe[0],ir),Dl(Qe[1],Kt),Dl(Qe[2],ar),Dl(Qe[3],Jt),Dl(Qe[4],Ft),Dl(Qe[5],Zt);else if(gf(Ar,ir),ro(nr,ir),"faces"in ir){var ci=ir.faces;for(Pt=0;Pt<6;++Pt)Ui(Qe[Pt],nr),Dl(Qe[Pt],ci[Pt])}else for(Pt=0;Pt<6;++Pt)Dl(Qe[Pt],ir);for(Ui(nr,Qe[0]),Ar.genMipmaps?nr.mipmask=(Qe[0].width<<1)-1:nr.mipmask=Qe[0].mipmask,nr.internalformat=Qe[0].internalformat,pt.width=Qe[0].width,pt.height=Qe[0].height,bf(nr),Pt=0;Pt<6;++Pt)Ou(Qe[Pt],Mn+Pt);for(xf(Ar,aa),cu(),di.profile&&(nr.stats.size=Wo(nr.internalformat,nr.type,pt.width,pt.height,Ar.genMipmaps,!0)),pt.format=dn[nr.internalformat],pt.type=En[nr.type],pt.mag=Zi[Ar.magFilter],pt.min=ga[Ar.minFilter],pt.wrapS=Kn[Ar.wrapS],pt.wrapT=Kn[Ar.wrapT],Pt=0;Pt<6;++Pt)Mf(Qe[Pt]);return pt}function Tt(ir,Kt,ar,Jt,Ft){var Zt=ar|0,Pt=Jt|0,Ar=Ft|0,Br=Qn();return Ui(Br,nr),Br.width=0,Br.height=0,In(Br,Kt),Br.width=Br.width||(nr.width>>Ar)-Zt,Br.height=Br.height||(nr.height>>Ar)-Pt,bf(nr),_s(Br,Mn+ir,Zt,Pt,Ar),cu(),Mo(Br),pt}function Xt(ir){var Kt=ir|0;if(Kt!==nr.width){pt.width=nr.width=Kt,pt.height=nr.height=Kt,bf(nr);for(var ar=0;ar<6;++ar)for(var Jt=0;nr.mipmask>>Jt;++Jt)Fe.texImage2D(Mn+ar,Jt,nr.format,Kt>>Jt,Kt>>Jt,0,nr.format,nr.type,null);return cu(),di.profile&&(nr.stats.size=Wo(nr.internalformat,nr.type,pt.width,pt.height,!1,!0)),pt}}return pt(ne,ke,Je,Ct,ur,Sr),pt.subimage=Tt,pt.resize=Xt,pt._reglType="textureCube",pt._texture=nr,di.profile&&(pt.stats=nr.stats),pt.destroy=function(){nr.decRef()},pt}function B(){for(var ne=0;ne>Ct,Je.height>>Ct,0,Je.internalformat,Je.type,null);else for(var ur=0;ur<6;++ur)Fe.texImage2D(Mn+ur,Ct,Je.internalformat,Je.width>>Ct,Je.height>>Ct,0,Je.internalformat,Je.type,null);xf(Je.texInfo,Je.target)})}function ye(){for(var ne=0;ne=0?Mf=!0:On.indexOf(Cu)>=0&&(Mf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(mf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Ou=Fl.depth:(Cf=Fl.depth,vf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?vf=Fl.stencil:(Gu=Fl.stencil,Ou=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Ou=vf=Fl.depthStencil:(cf=Fl.depthStencil,Ou=!1,vf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(xf),al=0;al0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:al,height:al,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var al=Va.color;for(Qn=0;Qn=al.byteLength?pl.subdata(al):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=vi.create(Qn,Ss,!1,!0)),Mo.buffer=vi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else vi.getBuffer(Qn)?(Mo.buffer=vi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):vi.getBuffer(Qn.buffer)?(Mo.buffer=vi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=Ai[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naWr&&(Wr=gi.stats.uniformsCount)}),Wr},tr.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(gi){gi.stats.attributesCount>Wr&&(Wr=gi.stats.attributesCount)}),Wr});function Ni(){vi={},fi={};for(var Wr=0;Wr16&&(tr=Li(tr,Fe.length*8));for(var Qr=Array(16),vi=Array(16),fi=0;fi<16;fi++)Qr[fi]=tr[fi]^909522486,vi[fi]=tr[fi]^1549556828;var di=Li(Qr.concat(Os(Bt)),512+Bt.length*8);return St(Li(vi.concat(di),768))}function Ms(Fe){for(var Bt=Ro?"0123456789ABCDEF":"0123456789abcdef",tr="",Qr,vi=0;vi>>4&15)+Bt.charAt(Qr&15);return tr}function jo(Fe){for(var Bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tr="",Qr=Fe.length,vi=0;viFe.length*8?tr+=tl:tr+=Bt.charAt(fi>>>6*(3-di)&63);return tr}function Rs(Fe,Bt){var tr=Bt.length,Qr=Array(),vi,fi,di,nn,On=Array(Math.ceil(Fe.length/2));for(vi=0;vi0;){for(nn=Array(),di=0,vi=0;vi0||fi>0)&&(nn[nn.length]=fi);Qr[Qr.length]=di,On=nn}var Ln="";for(vi=Qr.length-1;vi>=0;vi--)Ln+=Bt.charAt(Qr[vi]);var wn=Math.ceil(Fe.length*8/(Math.log(Bt.length)/Math.log(2)));for(vi=Ln.length;vi>>6&31,128|Qr&63):Qr<=65535?Bt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(Bt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return Bt}function Os(Fe){for(var Bt=Array(Fe.length>>2),tr=0;tr>5]|=(Fe.charCodeAt(tr/8)&255)<<24-tr%32;return Bt}function St(Fe){for(var Bt="",tr=0;tr>5]>>>24-tr%32&255);return Bt}function Ut(Fe,Bt){return Fe>>>Bt|Fe<<32-Bt}function xr(Fe,Bt){return Fe>>>Bt}function dr(Fe,Bt,tr){return Fe&Bt^~Fe&tr}function Dr(Fe,Bt,tr){return Fe&Bt^Fe&tr^Bt&tr}function yi(Fe){return Ut(Fe,2)^Ut(Fe,13)^Ut(Fe,22)}function Ti(Fe){return Ut(Fe,6)^Ut(Fe,11)^Ut(Fe,25)}function ki(Fe){return Ut(Fe,7)^Ut(Fe,18)^xr(Fe,3)}function Ki(Fe){return Ut(Fe,17)^Ut(Fe,19)^xr(Fe,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Li(Fe,Bt){var tr=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Fe[Bt>>5]|=128<<24-Bt%32,Fe[(Bt+64>>9<<4)+15]=Bt,ua=0;ua>16)+(Bt>>16)+(tr>>16);return Qr<<16|tr&65535}function Ci(Fe){return Array.prototype.slice.call(Fe)}function Si(Fe){return Ci(Fe).join("")}function Gn(Fe){var Bt=Fe&&Fe.cache,tr=0,Qr=[],vi=[],fi=[];function di(Ni,Wr){var gi=Wr&&Wr.stable;if(!gi){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Ci(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([gi.length>0?"var "+gi.join(",")+";":"",Si(Ni)])}})}function On(){var Ni=nn(),Wr=nn(),gi=Ni.toString,dn=Wr.toString;function En(Zi,ga){Wr(Zi,ga,"=",Ni.def(Zi,ga),";")}return e(function(){Ni.apply(Ni,Ci(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Zi,ga,Kn){En(Zi,ga),Ni(Zi,ga,"=",Kn,";")},toString:function(){return gi()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=On(),gi=On(),dn=Wr.toString,En=gi.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Ci(arguments)),this},else:function(){return gi.apply(gi,Ci(arguments)),this},toString:function(){var Zi=En();return Zi&&(Zi="else{"+Zi+"}"),Si(["if(",Ni,"){",dn(),"}",Zi])}})}var wn=nn(),Ls={};function ua(Ni,Wr){var gi=[];function dn(){var hs="a"+gi.length;return gi.push(hs),hs}Wr=Wr||0;for(var En=0;En":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Pi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ji={cw:ke,ccw:Ye};function pn(Fe){return Array.isArray(Fe)||vr(Fe)||Vt(Fe)}function an(Fe){return Fe.sort(function(Bt,tr){return Bt===ee?-1:tr===ee?1:Bt=1,Qr>=2,Bt)}else if(tr===Ks){var vi=Fe.data;return new bi(vi.thisDep,vi.contextDep,vi.propDep,Bt)}else{if(tr===dl)return new bi(!1,!1,!1,Bt);if(tr===xl){for(var fi=!1,di=!1,nn=!1,On=0;On=1&&(di=!0),wn>=2&&(nn=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,di=di||Ln.data.contextDep,nn=nn||Ln.data.propDep)}return new bi(fi,di,nn,Bt)}else return new bi(tr===Cs,tr===is,tr===zn,Bt)}}var js=new bi(!1,!1,!1,function(){});function El(Fe,Bt,tr,Qr,vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr){var gi=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};tr.ext_blend_minmax&&(dn.min=nt,dn.max=ut);var En=tr.angle_instanced_arrays,Zi=tr.webgl_draw_buffers,ga=tr.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},Ji=[],Ui={},ro={};function na(Qe){return Qe.replace(".","_")}function Bn(Qe,pt,Tt){var Xt=na(Qe);Ji.push(Qe),hs[Xt]=Kn[Xt]=!!Tt,Ui[Xt]=pt}function In(Qe,pt,Tt){var Xt=na(Qe);Ji.push(Qe),Array.isArray(Tt)?(Kn[Xt]=Tt.slice(),hs[Xt]=Tt.slice()):Kn[Xt]=hs[Xt]=Tt,ro[Xt]=pt}function Va(Qe){return!!isNaN(Qe)}Bn(Bl,cn),Bn(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,lr,Cr,lr]),Bn(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),Bn(ll,si),In(nl,"cullFace",le),In(zl,zl,Ye),In(Ml,Ml,1),Bn(Dl,Fo),In(Al,"polygonOffset",[0,0]),Bn(Ll,vl),Bn(ms,Us),In(Bs,"sampleCoverage",[1,!1]),Bn(Xl,Zn),In(Gl,"stencilMask",-1),In(Nl,"stencilFunc",[Ht,0,-1]),In(ue,"stencilOpSeparate",[Z,wt,wt,wt]),In(w,"stencilOpSeparate",[le,wt,wt,wt]),Bn(q,Ua),In(Q,"scissor",[0,0,Fe.drawingBufferWidth,Fe.drawingBufferHeight]),In(ee,ee,[0,0,Fe.drawingBufferWidth,Fe.drawingBufferHeight]);var _s={gl:Fe,context:ua,strings:Bt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:vi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:On,framebuffer:nn,extensions:tr,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:pi,blendFuncs:un,blendEquations:dn,stencilOps:Pi,glTypes:Ai,orientationType:ji};Zi&&(ul.backBuffer=[le],ul.drawBuffer=S(Qr.maxDrawbuffers,function(Qe){return Qe===0?[0]:S(Qe,function(pt){return Oi+pt})}));var Qn=0;function Mo(){var Qe=Gn({cache:Ni}),pt=Qe.link,Tt=Qe.global;Qe.id=Qn++,Qe.batchId="0";var Xt=pt(_s),ir=Qe.shared={props:"a0"};Object.keys(_s).forEach(function(Zt){ir[Zt]=Tt.def(Xt,".",Zt)});var Kt=Qe.next={},ar=Qe.current={};Object.keys(ro).forEach(function(Zt){Array.isArray(Kn[Zt])&&(Kt[Zt]=Tt.def(ir.next,".",Zt),ar[Zt]=Tt.def(ir.current,".",Zt))});var Jt=Qe.constants={};Object.keys(ul).forEach(function(Zt){Jt[Zt]=Tt.def(JSON.stringify(ul[Zt]))}),Qe.invoke=function(Zt,Pt){switch(Pt.type){case va:var Ar=["this",ir.context,ir.props,Qe.batchId];return Zt.def(pt(Pt.data),".call(",Ar.slice(0,Math.max(Pt.data.length+1,4)),")");case zn:return Zt.def(ir.props,Pt.data);case is:return Zt.def(ir.context,Pt.data);case Cs:return Zt.def("this",Pt.data);case Ks:return Pt.data.append(Qe,Zt),Pt.data.ref;case dl:return Pt.data.toString();case xl:return Pt.data.map(function(Br){return Qe.invoke(Zt,Br)})}},Qe.attribCache={};var Ft={};return Qe.scopeAttrib=function(Zt){var Pt=Bt.id(Zt);if(Pt in Ft)return Ft[Pt];var Ar=Ln.scope[Pt];Ar||(Ar=Ln.scope[Pt]=new gi);var Br=Ft[Pt]=pt(Ar);return Br},Qe}function al(Qe){var pt=Qe.static,Tt=Qe.dynamic,Xt;if(fe in pt){var ir=!!pt[fe];Xt=no(function(ar,Jt){return ir}),Xt.enable=ir}else if(fe in Tt){var Kt=Tt[fe];Xt=Xo(Kt,function(ar,Jt){return ar.invoke(Jt,Kt)})}return Xt}function pl(Qe,pt){var Tt=Qe.static,Xt=Qe.dynamic;if(Ue in Tt){var ir=Tt[Ue];return ir?(ir=nn.getFramebuffer(ir),no(function(ar,Jt){var Ft=ar.link(ir),Zt=ar.shared;Jt.set(Zt.framebuffer,".next",Ft);var Pt=Zt.context;return Jt.set(Pt,"."+Ge,Ft+".width"),Jt.set(Pt,"."+ft,Ft+".height"),Ft})):no(function(ar,Jt){var Ft=ar.shared;Jt.set(Ft.framebuffer,".next","null");var Zt=Ft.context;return Jt.set(Zt,"."+Ge,Zt+"."+er),Jt.set(Zt,"."+ft,Zt+"."+sr),"null"})}else if(Ue in Xt){var Kt=Xt[Ue];return Xo(Kt,function(ar,Jt){var Ft=ar.invoke(Jt,Kt),Zt=ar.shared,Pt=Zt.framebuffer,Ar=Jt.def(Pt,".getFramebuffer(",Ft,")");Jt.set(Pt,".next",Ar);var Br=Zt.context;return Jt.set(Br,"."+Ge,Ar+"?"+Ar+".width:"+Br+"."+er),Jt.set(Br,"."+ft,Ar+"?"+Ar+".height:"+Br+"."+sr),Ar})}else return null}function Rl(Qe,pt,Tt){var Xt=Qe.static,ir=Qe.dynamic;function Kt(Ft){if(Ft in Xt){var Zt=Xt[Ft],Pt=!0,Ar=Zt.x|0,Br=Zt.y|0,ci,Cn;return"width"in Zt?ci=Zt.width|0:Pt=!1,"height"in Zt?Cn=Zt.height|0:Pt=!1,new bi(!Pt&&pt&&pt.thisDep,!Pt&&pt&&pt.contextDep,!Pt&&pt&&pt.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Zt||(Pn=ca.def(Tn,".",Ge,"-",Ar));var Nn=Cn;return"height"in Zt||(Nn=ca.def(Tn,".",ft,"-",Br)),[Ar,Br,Pn,Nn]})}else if(Ft in ir){var Yi=ir[Ft],yn=Xo(Yi,function(Xa,ca){var Tn=Xa.invoke(ca,Yi),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",Ge,"-",Nn,")"),iu=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",ft,"-",xa,")");return[Nn,xa,Zo,iu]});return pt&&(yn.thisDep=yn.thisDep||pt.thisDep,yn.contextDep=yn.contextDep||pt.contextDep,yn.propDep=yn.propDep||pt.propDep),yn}else return pt?new bi(pt.thisDep,pt.contextDep,pt.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",Ge),ca.def(Tn,".",ft)]}):null}var ar=Kt(ee);if(ar){var Jt=ar;ar=new bi(ar.thisDep,ar.contextDep,ar.propDep,function(Ft,Zt){var Pt=Jt.append(Ft,Zt),Ar=Ft.shared.context;return Zt.set(Ar,"."+ot,Pt[2]),Zt.set(Ar,"."+mt,Pt[3]),Pt})}return{viewport:ar,scissor_box:Kt(Q)}}function Ou(Qe,pt){var Tt=Qe.static,Xt=typeof Tt[yt]=="string"&&typeof Tt[at]=="string";if(Xt){if(Object.keys(pt.dynamic).length>0)return null;var ir=pt.static,Kt=Object.keys(ir);if(Kt.length>0&&typeof ir[Kt[0]]=="number"){for(var ar=[],Jt=0;Jt"+Nn+"?"+Pt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Pt,".buffer)){",Xa,"=",Cn,".createStream(",Ir,",",Pt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Pt,".buffer);","}",ca,'="type" in ',Pt,"?",Br.glTypes,"[",Pt,".type]:",Xa,".dtype;",Yi.normalized,"=!!",Pt,".normalized;");function Tn(Pn){Zt(Yi[Pn],"=",Pt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Zt("}}"),Zt.exit("if(",Yi.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Yi}ir[Kt]=Xo(ar,Jt)}),ir}function xf(Qe){var pt=Qe.static,Tt=Qe.dynamic,Xt={};return Object.keys(pt).forEach(function(ir){var Kt=pt[ir];Xt[ir]=no(function(ar,Jt){return typeof Kt=="number"||typeof Kt=="boolean"?""+Kt:ar.link(Kt)})}),Object.keys(Tt).forEach(function(ir){var Kt=Tt[ir];Xt[ir]=Xo(Kt,function(ar,Jt){return ar.invoke(Jt,Kt)})}),Xt}function Cf(Qe,pt,Tt,Xt,ir){var Kt=Qe.static,ar=Qe.dynamic,Jt=Ou(Qe,pt),Ft=pl(Qe,ir),Zt=Rl(Qe,Ft,ir),Pt=Ql(Qe,ir),Ar=Ef(Qe,ir),Br=vf(Qe,ir,Jt);function ci(Tn){var Pn=Zt[Tn];Pn&&(Ar[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Ar).length>0,Yi={framebuffer:Ft,draw:Pt,shader:Br,state:Ar,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Yi.profile=al(Qe,ir),Yi.uniforms=Cu(Tt,ir),Yi.drawVAO=Yi.scopeVAO=Pt.vao,!Yi.drawVAO&&Br.program&&!Jt&&tr.angle_instanced_arrays&&Pt.static.elements){var yn=!0,Xa=Br.program.attributes.map(function(Tn){var Pn=pt.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Pt.static.elements}));Yi.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Yi.useVAO=!0}}return Jt?Yi.useVAO=!0:Yi.attributes=gf(pt,ir),Yi.context=xf(Xt,ir),Yi}function Gu(Qe,pt,Tt){var Xt=Qe.shared,ir=Xt.context,Kt=Qe.scope();Object.keys(Tt).forEach(function(ar){pt.save(ir,"."+ar);var Jt=Tt[ar],Ft=Jt.append(Qe,pt);Array.isArray(Ft)?Kt(ir,".",ar,"=[",Ft.join(),"];"):Kt(ir,".",ar,"=",Ft,";")}),pt(Kt)}function cf(Qe,pt,Tt,Xt){var ir=Qe.shared,Kt=ir.gl,ar=ir.framebuffer,Jt;Zi&&(Jt=pt.def(ir.extensions,".webgl_draw_buffers"));var Ft=Qe.constants,Zt=Ft.drawBuffer,Pt=Ft.backBuffer,Ar;Tt?Ar=Tt.append(Qe,pt):Ar=pt.def(ar,".next"),Xt||pt("if(",Ar,"!==",ar,".cur){"),pt("if(",Ar,"){",Kt,".bindFramebuffer(",$r,",",Ar,".framebuffer);"),Zi&&pt(Jt,".drawBuffersWEBGL(",Zt,"[",Ar,".colorAttachments.length]);"),pt("}else{",Kt,".bindFramebuffer(",$r,",null);"),Zi&&pt(Jt,".drawBuffersWEBGL(",Pt,");"),pt("}",ar,".cur=",Ar,";"),Xt||pt("}")}function mf(Qe,pt,Tt){var Xt=Qe.shared,ir=Xt.gl,Kt=Qe.current,ar=Qe.next,Jt=Xt.current,Ft=Xt.next,Zt=Qe.cond(Jt,".dirty");Ji.forEach(function(Pt){var Ar=na(Pt);if(!(Ar in Tt.state)){var Br,ci;if(Ar in ar){Br=ar[Ar],ci=Kt[Ar];var Cn=S(Kn[Ar].length,function(yn){return Zt.def(Br,"[",yn,"]")});Zt(Qe.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(ir,".",ro[Ar],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Br=Zt.def(Ft,".",Ar);var Yi=Qe.cond(Br,"!==",Jt,".",Ar);Zt(Yi),Ar in Ui?Yi(Qe.cond(Br).then(ir,".enable(",Ui[Ar],");").else(ir,".disable(",Ui[Ar],");"),Jt,".",Ar,"=",Br,";"):Yi(ir,".",ro[Ar],"(",Br,");",Jt,".",Ar,"=",Br,";")}}}),Object.keys(Tt.state).length===0&&Zt(Jt,".dirty=false;"),pt(Zt)}function Fl(Qe,pt,Tt,Xt){var ir=Qe.shared,Kt=Qe.current,ar=ir.current,Jt=ir.gl,Ft;an(Object.keys(Tt)).forEach(function(Zt){var Pt=Tt[Zt];if(!(Xt&&!Xt(Pt))){var Ar=Pt.append(Qe,pt);if(Ui[Zt]){var Br=Ui[Zt];xo(Pt)?(Ft=Qe.link(Ar,{stable:!0}),pt(Qe.cond(Ft).then(Jt,".enable(",Br,");").else(Jt,".disable(",Br,");")),pt(ar,".",Zt,"=",Ft,";")):(pt(Qe.cond(Ar).then(Jt,".enable(",Br,");").else(Jt,".disable(",Br,");")),pt(ar,".",Zt,"=",Ar,";"))}else if($i(Ar)){var ci=Kt[Zt];pt(Jt,".",ro[Zt],"(",Ar,");",Ar.map(function(Cn,Yi){return ci+"["+Yi+"]="+Cn}).join(";"),";")}else xo(Pt)?(Ft=Qe.link(Ar,{stable:!0}),pt(Jt,".",ro[Zt],"(",Ft,");",ar,".",Zt,"=",Ft,";")):pt(Jt,".",ro[Zt],"(",Ar,");",ar,".",Zt,"=",Ar,";")}})}function bf(Qe,pt){En&&(Qe.instancing=pt.def(Qe.shared.extensions,".angle_instanced_arrays"))}function cu(Qe,pt,Tt,Xt,ir){var Kt=Qe.shared,ar=Qe.stats,Jt=Kt.current,Ft=Kt.timer,Zt=Tt.profile;function Pt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Ar,Br;function ci(Tn){Ar=pt.def(),Tn(Ar,"=",Pt(),";"),typeof ir=="string"?Tn(ar,".count+=",ir,";"):Tn(ar,".count++;"),Hn&&(Xt?(Br=pt.def(),Tn(Br,"=",Ft,".getNumPendingQueries();")):Tn(Ft,".beginQuery(",ar,");"))}function Cn(Tn){Tn(ar,".cpuTime+=",Pt(),"-",Ar,";"),Hn&&(Xt?Tn(Ft,".pushScopeStats(",Br,",",Ft,".getNumPendingQueries(),",ar,");"):Tn(Ft,".endQuery();"))}function Yi(Tn){var Pn=pt.def(Jt,".profile");pt(Jt,".profile=",Tn,";"),pt.exit(Jt,".profile=",Pn,";")}var yn;if(Zt){if(xo(Zt)){Zt.enable?(ci(pt),Cn(pt.exit),Yi("true")):Yi("false");return}yn=Zt.append(Qe,pt),Yi(yn)}else yn=pt.def(Jt,".profile");var Xa=Qe.block();ci(Xa),pt("if(",yn,"){",Xa,"}");var ca=Qe.block();Cn(ca),pt.exit("if(",yn,"){",ca,"}")}function Y(Qe,pt,Tt,Xt,ir){var Kt=Qe.shared;function ar(Ft){switch(Ft){case au:case ou:case Hu:return 2;case Sl:case Pu:case $u:return 3;case Yl:case nu:case Ku:return 4;default:return 1}}function Jt(Ft,Zt,Pt){var Ar=Kt.gl,Br=pt.def(Ft,".location"),ci=pt.def(Kt.attributes,"[",Br,"]"),Cn=Pt.state,Yi=Pt.buffer,yn=[Pt.x,Pt.y,Pt.z,Pt.w],Xa=["buffer","normalized","offset","stride"];function ca(){pt("if(!",ci,".buffer){",Ar,".enableVertexAttribArray(",Br,");}");var Pn=Pt.type,Nn;if(Pt.size?Nn=pt.def(Pt.size,"||",Zt):Nn=Zt,pt("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Pt[Zo]}).join("||"),"){",Ar,".bindBuffer(",Ir,",",Yi,".buffer);",Ar,".vertexAttribPointer(",[Br,Nn,Pn,Pt.normalized,Pt.stride,Pt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Pt[Zo]+";"}).join(""),"}"),En){var xa=Pt.divisor;pt("if(",ci,".divisor!==",xa,"){",Qe.instancing,".vertexAttribDivisorANGLE(",[Br,xa],");",ci,".divisor=",xa,";}")}}function Tn(){pt("if(",ci,".buffer){",Ar,".disableVertexAttribArray(",Br,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Ar,".vertexAttrib4f(",Br,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(pt("if(",Cn,"===",ia,"){"),ca(),pt("}else{"),Tn(),pt("}"))}Xt.forEach(function(Ft){var Zt=Ft.name,Pt=Tt.attributes[Zt],Ar;if(Pt){if(!ir(Pt))return;Ar=Pt.append(Qe,pt)}else{if(!ir(js))return;var Br=Qe.scopeAttrib(Zt);Ar={},Object.keys(new gi).forEach(function(ci){Ar[ci]=pt.def(Br,".",ci)})}Jt(Qe.link(Ft),ar(Ft.info.type),Ar)})}function D(Qe,pt,Tt,Xt,ir,Kt){for(var ar=Qe.shared,Jt=ar.gl,Ft,Zt=0;Zt1){for(var yu=[],Fu=[],vu=0;vu>1)",Yi],");")}function xa(){Tt(yn,".drawArraysInstancedANGLE(",[Br,ci,Cn,Yi],");")}Pt&&Pt!=="null"?ca?Nn():(Tt("if(",Pt,"){"),Nn(),Tt("}else{"),xa(),Tt("}")):xa()}function Pn(){function Nn(){Tt(Kt+".drawElements("+[Br,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){Tt(Kt+".drawArrays("+[Br,ci,Cn]+");")}Pt&&Pt!=="null"?ca?Nn():(Tt("if(",Pt,"){"),Nn(),Tt("}else{"),xa(),Tt("}")):xa()}En&&(typeof Yi!="number"||Yi>=0)?typeof Yi=="string"?(Tt("if(",Yi,">0){"),Tn(),Tt("}else if(",Yi,"<0){"),Pn(),Tt("}")):Tn():Pn()}function B(Qe,pt,Tt,Xt,ir){var Kt=Mo(),ar=Kt.proc("body",ir);return En&&(Kt.instancing=ar.def(Kt.shared.extensions,".angle_instanced_arrays")),Qe(Kt,ar,Tt,Xt),Kt.compile().body}function K(Qe,pt,Tt,Xt){bf(Qe,pt),Tt.useVAO?Tt.drawVAO?pt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,pt),");"):pt(Qe.shared.vao,".setVAO(",Qe.shared.vao,".targetVAO);"):(pt(Qe.shared.vao,".setVAO(null);"),Y(Qe,pt,Tt,Xt.attributes,function(){return!0})),D(Qe,pt,Tt,Xt.uniforms,function(){return!0},!1),J(Qe,pt,pt,Tt)}function ye(Qe,pt){var Tt=Qe.proc("draw",1);bf(Qe,Tt),Gu(Qe,Tt,pt.context),cf(Qe,Tt,pt.framebuffer),mf(Qe,Tt,pt),Fl(Qe,Tt,pt.state),cu(Qe,Tt,pt,!1,!0);var Xt=pt.shader.progVar.append(Qe,Tt);if(Tt(Qe.shared.gl,".useProgram(",Xt,".program);"),pt.shader.program)K(Qe,Tt,pt,pt.shader.program);else{Tt(Qe.shared.vao,".setVAO(null);");var ir=Qe.global.def("{}"),Kt=Tt.def(Xt,".id"),ar=Tt.def(ir,"[",Kt,"]");Tt(Qe.cond(ar).then(ar,".call(this,a0);").else(ar,"=",ir,"[",Kt,"]=",Qe.link(function(Jt){return B(K,Qe,pt,Jt,1)}),"(",Xt,");",ar,".call(this,a0);"))}Object.keys(pt.state).length>0&&Tt(Qe.shared.current,".dirty=true;"),Qe.shared.vao&&Tt(Qe.shared.vao,".setVAO(null);")}function ne(Qe,pt,Tt,Xt){Qe.batchId="a1",bf(Qe,pt);function ir(){return!0}Y(Qe,pt,Tt,Xt.attributes,ir),D(Qe,pt,Tt,Xt.uniforms,ir,!1),J(Qe,pt,pt,Tt)}function Ee(Qe,pt,Tt,Xt){bf(Qe,pt);var ir=Tt.contextDep,Kt=pt.def(),ar="a0",Jt="a1",Ft=pt.def();Qe.shared.props=Ft,Qe.batchId=Kt;var Zt=Qe.scope(),Pt=Qe.scope();pt(Zt.entry,"for(",Kt,"=0;",Kt,"<",Jt,";++",Kt,"){",Ft,"=",ar,"[",Kt,"];",Pt,"}",Zt.exit);function Ar(Xa){return Xa.contextDep&&ir||Xa.propDep}function Br(Xa){return!Ar(Xa)}if(Tt.needsContext&&Gu(Qe,Pt,Tt.context),Tt.needsFramebuffer&&cf(Qe,Pt,Tt.framebuffer),Fl(Qe,Pt,Tt.state,Ar),Tt.profile&&Ar(Tt.profile)&&cu(Qe,Pt,Tt,!1,!0),Xt)Tt.useVAO?Tt.drawVAO?Ar(Tt.drawVAO)?Pt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,Pt),");"):Zt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,Zt),");"):Zt(Qe.shared.vao,".setVAO(",Qe.shared.vao,".targetVAO);"):(Zt(Qe.shared.vao,".setVAO(null);"),Y(Qe,Zt,Tt,Xt.attributes,Br),Y(Qe,Pt,Tt,Xt.attributes,Ar)),D(Qe,Zt,Tt,Xt.uniforms,Br,!1),D(Qe,Pt,Tt,Xt.uniforms,Ar,!0),J(Qe,Zt,Pt,Tt);else{var ci=Qe.global.def("{}"),Cn=Tt.shader.progVar.append(Qe,Pt),Yi=Pt.def(Cn,".id"),yn=Pt.def(ci,"[",Yi,"]");Pt(Qe.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Yi,"]=",Qe.link(function(Xa){return B(ne,Qe,Tt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Kt,"],",Kt,");")}}function Je(Qe,pt){var Tt=Qe.proc("batch",2);Qe.batchId="0",bf(Qe,Tt);var Xt=!1,ir=!0;Object.keys(pt.context).forEach(function(ci){Xt=Xt||pt.context[ci].propDep}),Xt||(Gu(Qe,Tt,pt.context),ir=!1);var Kt=pt.framebuffer,ar=!1;Kt?(Kt.propDep?Xt=ar=!0:Kt.contextDep&&Xt&&(ar=!0),ar||cf(Qe,Tt,Kt)):cf(Qe,Tt,null),pt.state.viewport&&pt.state.viewport.propDep&&(Xt=!0);function Jt(ci){return ci.contextDep&&Xt||ci.propDep}mf(Qe,Tt,pt),Fl(Qe,Tt,pt.state,function(ci){return!Jt(ci)}),(!pt.profile||!Jt(pt.profile))&&cu(Qe,Tt,pt,!1,"a1"),pt.contextDep=Xt,pt.needsContext=ir,pt.needsFramebuffer=ar;var Ft=pt.shader.progVar;if(Ft.contextDep&&Xt||Ft.propDep)Ee(Qe,Tt,pt,null);else{var Zt=Ft.append(Qe,Tt);if(Tt(Qe.shared.gl,".useProgram(",Zt,".program);"),pt.shader.program)Ee(Qe,Tt,pt,pt.shader.program);else{Tt(Qe.shared.vao,".setVAO(null);");var Pt=Qe.global.def("{}"),Ar=Tt.def(Zt,".id"),Br=Tt.def(Pt,"[",Ar,"]");Tt(Qe.cond(Br).then(Br,".call(this,a0,a1);").else(Br,"=",Pt,"[",Ar,"]=",Qe.link(function(ci){return B(Ee,Qe,pt,ci,2)}),"(",Zt,");",Br,".call(this,a0,a1);"))}}Object.keys(pt.state).length>0&&Tt(Qe.shared.current,".dirty=true;"),Qe.shared.vao&&Tt(Qe.shared.vao,".setVAO(null);")}function Ct(Qe,pt){var Tt=Qe.proc("scope",3);Qe.batchId="a2";var Xt=Qe.shared,ir=Xt.current;if(Gu(Qe,Tt,pt.context),pt.framebuffer&&pt.framebuffer.append(Qe,Tt),an(Object.keys(pt.state)).forEach(function(Jt){var Ft=pt.state[Jt],Zt=Ft.append(Qe,Tt);$i(Zt)?Zt.forEach(function(Pt,Ar){Va(Pt)?Tt.set(Qe.next[Jt],"["+Ar+"]",Pt):Tt.set(Qe.next[Jt],"["+Ar+"]",Qe.link(Pt,{stable:!0}))}):xo(Ft)?Tt.set(Xt.next,"."+Jt,Qe.link(Zt,{stable:!0})):Tt.set(Xt.next,"."+Jt,Zt)}),cu(Qe,Tt,pt,!0,!0),[Dt,Mr,rr,Ur,Qt].forEach(function(Jt){var Ft=pt.draw[Jt];if(Ft){var Zt=Ft.append(Qe,Tt);Va(Zt)?Tt.set(Xt.draw,"."+Jt,Zt):Tt.set(Xt.draw,"."+Jt,Qe.link(Zt),{stable:!0})}}),Object.keys(pt.uniforms).forEach(function(Jt){var Ft=pt.uniforms[Jt].append(Qe,Tt);Array.isArray(Ft)&&(Ft="["+Ft.map(function(Zt){return Va(Zt)?Zt:Qe.link(Zt,{stable:!0})})+"]"),Tt.set(Xt.uniforms,"["+Qe.link(Bt.id(Jt),{stable:!0})+"]",Ft)}),Object.keys(pt.attributes).forEach(function(Jt){var Ft=pt.attributes[Jt].append(Qe,Tt),Zt=Qe.scopeAttrib(Jt);Object.keys(new gi).forEach(function(Pt){Tt.set(Zt,"."+Pt,Ft[Pt])})}),pt.scopeVAO){var Kt=pt.scopeVAO.append(Qe,Tt);Va(Kt)?Tt.set(Xt.vao,".targetVAO",Kt):Tt.set(Xt.vao,".targetVAO",Qe.link(Kt,{stable:!0}))}function ar(Jt){var Ft=pt.shader[Jt];if(Ft){var Zt=Ft.append(Qe,Tt);Va(Zt)?Tt.set(Xt.shader,"."+Jt,Zt):Tt.set(Xt.shader,"."+Jt,Qe.link(Zt,{stable:!0}))}}ar(at),ar(yt),Object.keys(pt.state).length>0&&(Tt(ir,".dirty=true;"),Tt.exit(ir,".dirty=true;")),Tt("a1(",Qe.shared.context,",a0,",Qe.batchId,");")}function ur(Qe){if(!(typeof Qe!="object"||$i(Qe))){for(var pt=Object.keys(Qe),Tt=0;Tt=0;--B){var K=_s[B];K&&K(Ni,null,0)}tr.flush(),wn&&wn.update()}function Rl(){!al&&_s.length>0&&(al=d.next(pl))}function Ou(){al&&(d.cancel(pl),al=null)}function vf(B){B.preventDefault(),vi=!0,Ou(),ul.forEach(function(K){K()})}function Ql(B){tr.getError(),vi=!1,fi.restore(),hs.restore(),En.restore(),Ji.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Rl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,vf,!1),Va.addEventListener(Tu,Ql,!1));function Ef(){_s.length=0,Ou(),Va&&(Va.removeEventListener(Au,vf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),Ji.clear(),Zi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(B){B()})}function Cu(B){function K(Kt){var ar=e({},Kt);delete ar.uniforms,delete ar.attributes,delete ar.context,delete ar.vao,"stencil"in ar&&ar.stencil.op&&(ar.stencil.opBack=ar.stencil.opFront=ar.stencil.op,delete ar.stencil.op);function Jt(Ft){if(Ft in ar){var Zt=ar[Ft];delete ar[Ft],Object.keys(Zt).forEach(function(Pt){ar[Ft+"."+Pt]=Zt[Pt]})}}return Jt("blend"),Jt("depth"),Jt("cull"),Jt("stencil"),Jt("polygonOffset"),Jt("scissor"),Jt("sample"),"vao"in Kt&&(ar.vao=Kt.vao),ar}function ye(Kt,ar){var Jt={},Ft={};return Object.keys(Kt).forEach(function(Zt){var Pt=Kt[Zt];if(h.isDynamic(Pt)){Ft[Zt]=h.unbox(Pt,Zt);return}else if(ar&&Array.isArray(Pt)){for(var Ar=0;Ar0)return Qe.call(this,Xt(Kt|0),Kt|0)}else if(Array.isArray(Kt)){if(Kt.length)return Qe.call(this,Kt,Kt.length)}else return nr.call(this,Kt)}return e(ir,{stats:ur,destroy:function(){Sr.destroy()}})}var gf=ro.setFBO=Cu({framebuffer:h.define.call(null,lf,"framebuffer")});function xf(B,K){var ye=0;na.procs.poll();var ne=K.color;ne&&(tr.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),ye|=Vu),"depth"in K&&(tr.clearDepth(+K.depth),ye|=tf),"stencil"in K&&(tr.clearStencil(K.stencil|0),ye|=ds),tr.clear(ye)}function Cf(B){if("framebuffer"in B)if(B.framebuffer&&B.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)gf(e({framebuffer:B.framebuffer.faces[K]},B),xf);else gf(B,xf);else xf(null,B)}function Gu(B){_s.push(B);function K(){var ye=pf(_s,B);function ne(){var Ee=pf(_s,ne);_s[Ee]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Ou()}_s[ye]=ne}return Rl(),{cancel:K}}function cf(){var B=In.viewport,K=In.scissor_box;B[0]=B[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=B[2]=K[2]=tr.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=B[3]=K[3]=tr.drawingBufferHeight}function mf(){Ni.tick+=1,Ni.time=bf(),cf(),na.procs.poll()}function Fl(){Ji.refresh(),cf(),na.procs.refresh(),wn&&wn.update()}function bf(){return(p()-Ls)/1e3}Fl();function cu(B,K){var ye;switch(B){case"frame":return Gu(K);case"lost":ye=ul;break;case"restore":ye=Qn;break;case"destroy":ye=Mo;break;default:}return ye.push(K),{cancel:function(){for(var ne=0;ne=0},read:Bn,destroy:Ef,_gl:tr,_refresh:Fl,poll:function(){mf(),wn&&wn.update()},now:bf,stats:nn,getCachedCode:Y,preloadCachedCode:D});return Bt.onDone(null,J),J}return fc})});var z9=we((sbr,$Ne)=>{"use strict";var VVt=XX(),GVt=JNe();$Ne.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=GVt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||VVt({container:i._glcontainer.node()}),a}});var PK=we((LK,i7e)=>{"use strict";var QNe=LY(),e7e=sK(),HVt=Uqe(),t7e=KNe(),CK=ei(),WVt=Cm().selectMode,jVt=z9(),XVt=lc(),ZVt=OU(),YVt=MY().styleTextSelection,r7e={};function KVt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,u=i.b*n,l=i.r*n,f=i.t*n,c=i.w*n,h=i.h*n;return[s+t.domain[0]*c,u+r.domain[0]*h,a-l-(1-t.domain[1])*c,o-f-(1-r.domain[1])*h]}var LK=i7e.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,u,l;if(a){var f=jVt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],r7e);if(!f){a.init();return}var c=a.count,h=i._glcanvas.data()[0].regl;if(ZVt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=HVt(h)),a.line2d===!0&&(a.line2d=e7e(h)),a.scatter2d===!0&&(a.scatter2d=QNe(h)),a.fill2d===!0&&(a.fill2d=e7e(h)),a.glText===!0)for(a.glText=new Array(c),u=0;ua.glText.length){var d=c-a.glText.length;for(u=0;ure&&(isNaN(H[ae])||isNaN(H[ae+1]));)ae-=2;N.positions=H.slice(re,ae+2)}return N}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=CK.repeat(null,c),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(N,H){var re=n[H];if(!(!N||!re||!re[0]||!re[0].trace)){var ae=re[0],me=ae.trace,Le=ae.t,Ce=a.lineOptions[H],de,te,Se=[];me._ownfill&&Se.push(H),me._nexttrace&&Se.push(H+1),Se.length&&(a.fillOrder[H]=Se);var Te=[],be=Ce&&Ce.positions||Le.positions,He,Ie;if(me.fill==="tozeroy"){for(He=0;HeHe&&isNaN(be[Ie+1]);)Ie-=2;be[He+1]!==0&&(Te=[be[He],0]),Te=Te.concat(be.slice(He,Ie+2)),be[Ie+1]!==0&&(Te=Te.concat([be[Ie],0]))}else if(me.fill==="tozerox"){for(He=0;HeHe&&isNaN(be[Ie]);)Ie-=2;be[He]!==0&&(Te=[0,be[He+1]]),Te=Te.concat(be.slice(He,Ie+2)),be[Ie]!==0&&(Te=Te.concat([0,be[Ie+1]]))}else if(me.fill==="toself"||me.fill==="tonext"){for(Te=[],de=0,N.splitNull=!0,te=0;te-1;for(let[N]of n)if(N){var A=N.trace,L=N.t,x=L.index,k=A._length,S=L.x,m=L.y;if(A.selectedpoints||C||M){if(C||(C=!0),A.selectedpoints){var P=a.selectBatch[x]=CK.selIndices2selPoints(A),E={};for(l=0;l{n7e.exports=function(t,r,n){"use strict";var i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr;return i=t.gl,a=t.context,o=t.strings,s=t.next,u=t.current,l=t.draw,f=t.elements,c=t.buffer,h=t.shader,d=t.attributes,p=t.vao,y=t.uniforms,b=t.framebuffer,v=t.extensions,C=t.timer,M=t.isBufferArgs,A=s.blend_color,L=u.blend_color,x=s.blend_equation,k=u.blend_equation,S=s.blend_func,m=u.blend_func,P=s.depth_range,E=u.depth_range,O=s.colorMask,F=u.colorMask,U=s.polygonOffset_offset,G=u.polygonOffset_offset,j=s.sample_coverage,W=u.sample_coverage,N=s.stencil_func,H=u.stencil_func,re=s.stencil_opFront,ae=u.stencil_opFront,me=s.stencil_opBack,Le=u.stencil_opBack,Ce=s.scissor_box,de=u.scissor_box,te=s.viewport,Se=u.viewport,Te={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},be={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},He={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ie={add:32774,subtract:32778,"reverse subtract":32779},ge={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Be={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ce={cw:2304,ccw:2305},je=s.blend_color,rt=u.blend_color,bt=s.blend_equation,Ot=u.blend_equation,it=s.blend_func,Ke=u.blend_func,zt=s.depth_range,Mt=u.depth_range,kt=s.colorMask,$e=u.colorMask,De=s.polygonOffset_offset,Me=u.polygonOffset_offset,oe=s.sample_coverage,Ne=u.sample_coverage,vt=s.stencil_func,lt=u.stencil_func,We=s.stencil_opFront,Ve=u.stencil_opFront,et=s.stencil_opBack,tt=u.stencil_opBack,Lt=s.scissor_box,jt=u.scissor_box,or=s.viewport,yr=u.viewport,{poll:function(){var vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di;u.dirty=!1,Vt=s.dither,Pe=s.blend_enable,xe=s.depth_enable,Oe=s.cull_enable,ze=s.polygonOffset_enable,Re=s.sample_alpha,ht=s.sample_enable,st=s.stencil_enable,gt=s.scissor_enable,xt=s.depth_func,pr=u.depth_func,br=s.depth_mask,cr=u.depth_mask,Er=s.cull_face,ii=u.cull_face,jr=s.frontFace,kr=u.frontFace,Vr=s.lineWidth,Ai=u.lineWidth,Bi=s.stencil_mask,Di=u.stencil_mask,vr=b.next,vr!==b.cur&&(vr?i.bindFramebuffer(36160,vr.framebuffer):i.bindFramebuffer(36160,null),b.cur=vr),Vt!==u.dither&&(Vt?i.enable(3024):i.disable(3024),u.dither=Vt),Pe!==u.blend_enable&&(Pe?i.enable(3042):i.disable(3042),u.blend_enable=Pe),xe!==u.depth_enable&&(xe?i.enable(2929):i.disable(2929),u.depth_enable=xe),Oe!==u.cull_enable&&(Oe?i.enable(2884):i.disable(2884),u.cull_enable=Oe),ze!==u.polygonOffset_enable&&(ze?i.enable(32823):i.disable(32823),u.polygonOffset_enable=ze),Re!==u.sample_alpha&&(Re?i.enable(32926):i.disable(32926),u.sample_alpha=Re),ht!==u.sample_enable&&(ht?i.enable(32928):i.disable(32928),u.sample_enable=ht),st!==u.stencil_enable&&(st?i.enable(2960):i.disable(2960),u.stencil_enable=st),gt!==u.scissor_enable&&(gt?i.enable(3089):i.disable(3089),u.scissor_enable=gt),(je[0]!==rt[0]||je[1]!==rt[1]||je[2]!==rt[2]||je[3]!==rt[3])&&(i.blendColor(je[0],je[1],je[2],je[3]),rt[0]=je[0],rt[1]=je[1],rt[2]=je[2],rt[3]=je[3]),(bt[0]!==Ot[0]||bt[1]!==Ot[1])&&(i.blendEquationSeparate(bt[0],bt[1]),Ot[0]=bt[0],Ot[1]=bt[1]),(it[0]!==Ke[0]||it[1]!==Ke[1]||it[2]!==Ke[2]||it[3]!==Ke[3])&&(i.blendFuncSeparate(it[0],it[1],it[2],it[3]),Ke[0]=it[0],Ke[1]=it[1],Ke[2]=it[2],Ke[3]=it[3]),xt!==pr&&(i.depthFunc(xt),u.depth_func=xt),(zt[0]!==Mt[0]||zt[1]!==Mt[1])&&(i.depthRange(zt[0],zt[1]),Mt[0]=zt[0],Mt[1]=zt[1]),br!==cr&&(i.depthMask(br),u.depth_mask=br),(kt[0]!==$e[0]||kt[1]!==$e[1]||kt[2]!==$e[2]||kt[3]!==$e[3])&&(i.colorMask(kt[0],kt[1],kt[2],kt[3]),$e[0]=kt[0],$e[1]=kt[1],$e[2]=kt[2],$e[3]=kt[3]),Er!==ii&&(i.cullFace(Er),u.cull_face=Er),jr!==kr&&(i.frontFace(jr),u.frontFace=jr),Vr!==Ai&&(i.lineWidth(Vr),u.lineWidth=Vr),(De[0]!==Me[0]||De[1]!==Me[1])&&(i.polygonOffset(De[0],De[1]),Me[0]=De[0],Me[1]=De[1]),(oe[0]!==Ne[0]||oe[1]!==Ne[1])&&(i.sampleCoverage(oe[0],oe[1]),Ne[0]=oe[0],Ne[1]=oe[1]),Bi!==Di&&(i.stencilMask(Bi),u.stencil_mask=Bi),(vt[0]!==lt[0]||vt[1]!==lt[1]||vt[2]!==lt[2])&&(i.stencilFunc(vt[0],vt[1],vt[2]),lt[0]=vt[0],lt[1]=vt[1],lt[2]=vt[2]),(We[0]!==Ve[0]||We[1]!==Ve[1]||We[2]!==Ve[2]||We[3]!==Ve[3])&&(i.stencilOpSeparate(We[0],We[1],We[2],We[3]),Ve[0]=We[0],Ve[1]=We[1],Ve[2]=We[2],Ve[3]=We[3]),(et[0]!==tt[0]||et[1]!==tt[1]||et[2]!==tt[2]||et[3]!==tt[3])&&(i.stencilOpSeparate(et[0],et[1],et[2],et[3]),tt[0]=et[0],tt[1]=et[1],tt[2]=et[2],tt[3]=et[3]),(Lt[0]!==jt[0]||Lt[1]!==jt[1]||Lt[2]!==jt[2]||Lt[3]!==jt[3])&&(i.scissor(Lt[0],Lt[1],Lt[2],Lt[3]),jt[0]=Lt[0],jt[1]=Lt[1],jt[2]=Lt[2],jt[3]=Lt[3]),(or[0]!==yr[0]||or[1]!==yr[1]||or[2]!==yr[2]||or[3]!==yr[3])&&(i.viewport(or[0],or[1],or[2],or[3]),yr[0]=or[0],yr[1]=or[1],yr[2]=or[2],yr[3]=or[3])},refresh:function(){var vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn;u.dirty=!1,xe=s.dither,Oe=s.blend_enable,ze=s.depth_enable,Re=s.cull_enable,ht=s.polygonOffset_enable,st=s.sample_alpha,gt=s.sample_enable,xt=s.stencil_enable,pr=s.scissor_enable,br=s.depth_func,cr=u.depth_func,Er=s.depth_mask,ii=u.depth_mask,jr=s.cull_face,kr=u.cull_face,Vr=s.frontFace,Ai=u.frontFace,Bi=s.lineWidth,Di=u.lineWidth,ln=s.stencil_mask,hn=u.stencil_mask,vr=b.next,vr?i.bindFramebuffer(36160,vr.framebuffer):i.bindFramebuffer(36160,null),b.cur=vr,Vt=d,Pe=0;for(var qr=0;qr{a7e.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,y=t.elements,b=t.buffer,v=t.shader,C=t.attributes,M=t.vao,A=t.uniforms,L=t.framebuffer,x=t.extensions,k=t.timer,S=t.isBufferArgs,m=h.blend_color,P=d.blend_color,E=h.blend_equation,O=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,W=h.colorMask,N=d.colorMask,H=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,me=d.sample_coverage,Le=h.stencil_func,Ce=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,Se=h.stencil_opBack,Te=d.stencil_opBack,be=h.scissor_box,He=d.scissor_box,Ie=h.viewport,ge=d.viewport,Be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},je={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rt={add:32774,subtract:32778,"reverse subtract":32779},bt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ot={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ke={},zt={},{draw:function(Mt){var kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe;if(kt=x.angle_instanced_arrays,$e=Mt.framebuffer,De=L.getFramebuffer($e),Me=L.next,L.next=De,oe=f.framebufferWidth,f.framebufferWidth=De?De.width:f.drawingBufferWidth,Ne=f.framebufferHeight,f.framebufferHeight=De?De.height:f.drawingBufferHeight,De!==L.cur&&(De?l.bindFramebuffer(36160,De.framebuffer):l.bindFramebuffer(36160,null),L.cur=De),d.dirty){var xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii;xe=h.dither,xe!==d.dither&&(xe?l.enable(3024):l.disable(3024),d.dither=xe),Oe=h.blend_enable,Oe!==d.blend_enable&&(Oe?l.enable(3042):l.disable(3042),d.blend_enable=Oe),ze=m[0],Re=m[1],ht=m[2],st=m[3],(ze!==P[0]||Re!==P[1]||ht!==P[2]||st!==P[3])&&(l.blendColor(ze,Re,ht,st),P[0]=ze,P[1]=Re,P[2]=ht,P[3]=st),gt=E[0],xt=E[1],(gt!==O[0]||xt!==O[1])&&(l.blendEquationSeparate(gt,xt),O[0]=gt,O[1]=xt),pr=F[0],br=F[1],cr=F[2],Er=F[3],(pr!==U[0]||br!==U[1]||cr!==U[2]||Er!==U[3])&&(l.blendFuncSeparate(pr,br,cr,Er),U[0]=pr,U[1]=br,U[2]=cr,U[3]=Er),ii=h.depth_enable,ii!==d.depth_enable&&(ii?l.enable(2929):l.disable(2929),d.depth_enable=ii),jr=h.depth_func,jr!==d.depth_func&&(l.depthFunc(jr),d.depth_func=jr),kr=G[0],Vr=G[1],(kr!==j[0]||Vr!==j[1])&&(l.depthRange(kr,Vr),j[0]=kr,j[1]=Vr),Ai=h.depth_mask,Ai!==d.depth_mask&&(l.depthMask(Ai),d.depth_mask=Ai),Bi=W[0],Di=W[1],ln=W[2],hn=W[3],(Bi!==N[0]||Di!==N[1]||ln!==N[2]||hn!==N[3])&&(l.colorMask(Bi,Di,ln,hn),N[0]=Bi,N[1]=Di,N[2]=ln,N[3]=hn),qr=h.cull_enable,qr!==d.cull_enable&&(qr?l.enable(2884):l.disable(2884),d.cull_enable=qr),_i=h.cull_face,_i!==d.cull_face&&(l.cullFace(_i),d.cull_face=_i),zi=h.frontFace,zi!==d.frontFace&&(l.frontFace(zi),d.frontFace=zi),Rt=h.lineWidth,Rt!==d.lineWidth&&(l.lineWidth(Rt),d.lineWidth=Rt),_t=h.polygonOffset_enable,_t!==d.polygonOffset_enable&&(_t?l.enable(32823):l.disable(32823),d.polygonOffset_enable=_t),qt=H[0],Nt=H[1],(qt!==re[0]||Nt!==re[1])&&(l.polygonOffset(qt,Nt),re[0]=qt,re[1]=Nt),mr=h.sample_alpha,mr!==d.sample_alpha&&(mr?l.enable(32926):l.disable(32926),d.sample_alpha=mr),Lr=h.sample_enable,Lr!==d.sample_enable&&(Lr?l.enable(32928):l.disable(32928),d.sample_enable=Lr),Nr=ae[0],Fr=ae[1],(Nr!==me[0]||Fr!==me[1])&&(l.sampleCoverage(Nr,Fr),me[0]=Nr,me[1]=Fr),Gr=h.stencil_enable,Gr!==d.stencil_enable&&(Gr?l.enable(2960):l.disable(2960),d.stencil_enable=Gr),Hr=h.stencil_mask,Hr!==d.stencil_mask&&(l.stencilMask(Hr),d.stencil_mask=Hr),mi=Le[0],Ei=Le[1],Vi=Le[2],(mi!==Ce[0]||Ei!==Ce[1]||Vi!==Ce[2])&&(l.stencilFunc(mi,Ei,Vi),Ce[0]=mi,Ce[1]=Ei,Ce[2]=Vi),ti=de[0],Qi=de[1],Yr=de[2],oi=de[3],(ti!==te[0]||Qi!==te[1]||Yr!==te[2]||oi!==te[3])&&(l.stencilOpSeparate(ti,Qi,Yr,oi),te[0]=ti,te[1]=Qi,te[2]=Yr,te[3]=oi),Fi=Se[0],rn=Se[1],tn=Se[2],Ri=Se[3],(Fi!==Te[0]||rn!==Te[1]||tn!==Te[2]||Ri!==Te[3])&&(l.stencilOpSeparate(Fi,rn,tn,Ri),Te[0]=Fi,Te[1]=rn,Te[2]=tn,Te[3]=Ri),Ii=h.scissor_enable,Ii!==d.scissor_enable&&(Ii?l.enable(3089):l.disable(3089),d.scissor_enable=Ii)}vt=f.framebufferWidth,lt=f.framebufferHeight,We=f.viewportWidth,f.viewportWidth=vt,Ve=f.viewportHeight,f.viewportHeight=lt,l.viewport(0,0,vt,lt),ge[0]=0,ge[1]=0,ge[2]=vt,ge[3]=lt,et=f.framebufferWidth,tt=f.framebufferHeight,l.scissor(0,0,et,tt),He[0]=0,He[1]=0,He[2]=et,He[3]=tt,Lt=d.profile,Lt&&(jt=performance.now(),r.count++),or=v.frag,yr=v.vert,vr=v.program(yr,or),l.useProgram(vr.program),M.setVAO(null),Vt=vr.id,Pe=Ke[Vt],Pe?Pe.call(this,Mt):(Pe=Ke[Vt]=n(vr),Pe.call(this,Mt)),d.dirty=!0,M.setVAO(null),L.next=Me,f.framebufferWidth=oe,f.framebufferHeight=Ne,f.viewportWidth=We,f.viewportHeight=Ve,Lt&&(r.cpuTime+=performance.now()-jt)},scope:function(Mt,kt,$e){var De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re;De=Mt.framebuffer,Me=L.getFramebuffer(De),oe=L.next,L.next=Me,Ne=f.framebufferWidth,f.framebufferWidth=Me?Me.width:f.drawingBufferWidth,vt=f.framebufferHeight,f.framebufferHeight=Me?Me.height:f.drawingBufferHeight,lt=f.framebufferWidth,We=f.framebufferHeight,Ve=f.viewportWidth,f.viewportWidth=lt,et=f.viewportHeight,f.viewportHeight=We,tt=Ie[0],Ie[0]=i,Lt=Ie[1],Ie[1]=a,jt=Ie[2],Ie[2]=lt,or=Ie[3],Ie[3]=We,yr=f.framebufferWidth,vr=f.framebufferHeight,Vt=be[0],be[0]=o,Pe=be[1],be[1]=s,xe=be[2],be[2]=yr,Oe=be[3],be[3]=vr,ze=d.profile,ze&&(Re=performance.now(),r.count++),d.dirty=!0,kt(f,Mt,$e),L.next=oe,f.framebufferWidth=Ne,f.framebufferHeight=vt,f.viewportWidth=Ve,f.viewportHeight=et,Ie[0]=tt,Ie[1]=Lt,Ie[2]=jt,Ie[3]=or,be[0]=Vt,be[1]=Pe,be[2]=xe,be[3]=Oe,ze&&(r.cpuTime+=performance.now()-Re),d.dirty=!0},batch:function(Mt,kt){var $e,De,Me,oe,Ne,vt,lt,We;if($e=x.angle_instanced_arrays,d.dirty){var Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei;Ve=h.dither,Ve!==d.dither&&(Ve?l.enable(3024):l.disable(3024),d.dither=Ve),et=h.blend_enable,et!==d.blend_enable&&(et?l.enable(3042):l.disable(3042),d.blend_enable=et),tt=m[0],Lt=m[1],jt=m[2],or=m[3],(tt!==P[0]||Lt!==P[1]||jt!==P[2]||or!==P[3])&&(l.blendColor(tt,Lt,jt,or),P[0]=tt,P[1]=Lt,P[2]=jt,P[3]=or),yr=E[0],vr=E[1],(yr!==O[0]||vr!==O[1])&&(l.blendEquationSeparate(yr,vr),O[0]=yr,O[1]=vr),Vt=F[0],Pe=F[1],xe=F[2],Oe=F[3],(Vt!==U[0]||Pe!==U[1]||xe!==U[2]||Oe!==U[3])&&(l.blendFuncSeparate(Vt,Pe,xe,Oe),U[0]=Vt,U[1]=Pe,U[2]=xe,U[3]=Oe),ze=h.depth_enable,ze!==d.depth_enable&&(ze?l.enable(2929):l.disable(2929),d.depth_enable=ze),Re=h.depth_func,Re!==d.depth_func&&(l.depthFunc(Re),d.depth_func=Re),ht=G[0],st=G[1],(ht!==j[0]||st!==j[1])&&(l.depthRange(ht,st),j[0]=ht,j[1]=st),gt=h.depth_mask,gt!==d.depth_mask&&(l.depthMask(gt),d.depth_mask=gt),xt=W[0],pr=W[1],br=W[2],cr=W[3],(xt!==N[0]||pr!==N[1]||br!==N[2]||cr!==N[3])&&(l.colorMask(xt,pr,br,cr),N[0]=xt,N[1]=pr,N[2]=br,N[3]=cr),Er=h.cull_enable,Er!==d.cull_enable&&(Er?l.enable(2884):l.disable(2884),d.cull_enable=Er),ii=h.cull_face,ii!==d.cull_face&&(l.cullFace(ii),d.cull_face=ii),jr=h.frontFace,jr!==d.frontFace&&(l.frontFace(jr),d.frontFace=jr),kr=h.lineWidth,kr!==d.lineWidth&&(l.lineWidth(kr),d.lineWidth=kr),Vr=h.polygonOffset_enable,Vr!==d.polygonOffset_enable&&(Vr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Vr),Ai=H[0],Bi=H[1],(Ai!==re[0]||Bi!==re[1])&&(l.polygonOffset(Ai,Bi),re[0]=Ai,re[1]=Bi),Di=h.sample_alpha,Di!==d.sample_alpha&&(Di?l.enable(32926):l.disable(32926),d.sample_alpha=Di),ln=h.sample_enable,ln!==d.sample_enable&&(ln?l.enable(32928):l.disable(32928),d.sample_enable=ln),hn=ae[0],qr=ae[1],(hn!==me[0]||qr!==me[1])&&(l.sampleCoverage(hn,qr),me[0]=hn,me[1]=qr),_i=h.stencil_enable,_i!==d.stencil_enable&&(_i?l.enable(2960):l.disable(2960),d.stencil_enable=_i),zi=h.stencil_mask,zi!==d.stencil_mask&&(l.stencilMask(zi),d.stencil_mask=zi),Rt=Le[0],_t=Le[1],qt=Le[2],(Rt!==Ce[0]||_t!==Ce[1]||qt!==Ce[2])&&(l.stencilFunc(Rt,_t,qt),Ce[0]=Rt,Ce[1]=_t,Ce[2]=qt),Nt=de[0],mr=de[1],Lr=de[2],Nr=de[3],(Nt!==te[0]||mr!==te[1]||Lr!==te[2]||Nr!==te[3])&&(l.stencilOpSeparate(Nt,mr,Lr,Nr),te[0]=Nt,te[1]=mr,te[2]=Lr,te[3]=Nr),Fr=Se[0],Gr=Se[1],Hr=Se[2],mi=Se[3],(Fr!==Te[0]||Gr!==Te[1]||Hr!==Te[2]||mi!==Te[3])&&(l.stencilOpSeparate(Fr,Gr,Hr,mi),Te[0]=Fr,Te[1]=Gr,Te[2]=Hr,Te[3]=mi),Ei=h.scissor_enable,Ei!==d.scissor_enable&&(Ei?l.enable(3089):l.disable(3089),d.scissor_enable=Ei)}De=d.profile,De&&(Me=performance.now(),r.count+=kt),oe=v.frag,Ne=v.vert,vt=v.program(Ne,oe),l.useProgram(vt.program),M.setVAO(null),lt=vt.id,We=zt[lt],We?We.call(this,Mt,kt):(We=zt[lt]=u(vt),We.call(this,Mt,kt)),d.dirty=!0,M.setVAO(null),De&&(r.cpuTime+=performance.now()-Me)}}}});var R9=we((fbr,o7e)=>{o7e.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,y=t.vao,b=t.uniforms,v=t.framebuffer,C=t.extensions,M=t.timer,A=t.isBufferArgs,L=u.blend_color,x=l.blend_color,k=u.blend_equation,S=l.blend_equation,m=u.blend_func,P=l.blend_func,E=u.depth_range,O=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,W=u.sample_coverage,N=l.sample_coverage,H=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,me=l.stencil_opFront,Le=u.stencil_opBack,Ce=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,Se=u.viewport,Te=l.viewport,be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},He={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ie={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ge={add:32774,subtract:32778,"reverse subtract":32779},Be={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},je={cw:2304,ccw:2305},rt={},bt={},{draw:function(Ot){var it,Ke,zt,Mt,kt,$e,De,Me,oe;if(it=C.angle_instanced_arrays,Ke=v.next,Ke!==v.cur&&(Ke?a.bindFramebuffer(36160,Ke.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ke),l.dirty){var Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr;Ne=u.dither,Ne!==l.dither&&(Ne?a.enable(3024):a.disable(3024),l.dither=Ne),vt=u.blend_enable,vt!==l.blend_enable&&(vt?a.enable(3042):a.disable(3042),l.blend_enable=vt),lt=L[0],We=L[1],Ve=L[2],et=L[3],(lt!==x[0]||We!==x[1]||Ve!==x[2]||et!==x[3])&&(a.blendColor(lt,We,Ve,et),x[0]=lt,x[1]=We,x[2]=Ve,x[3]=et),tt=k[0],Lt=k[1],(tt!==S[0]||Lt!==S[1])&&(a.blendEquationSeparate(tt,Lt),S[0]=tt,S[1]=Lt),jt=m[0],or=m[1],yr=m[2],vr=m[3],(jt!==P[0]||or!==P[1]||yr!==P[2]||vr!==P[3])&&(a.blendFuncSeparate(jt,or,yr,vr),P[0]=jt,P[1]=or,P[2]=yr,P[3]=vr),Vt=u.depth_enable,Vt!==l.depth_enable&&(Vt?a.enable(2929):a.disable(2929),l.depth_enable=Vt),Pe=u.depth_func,Pe!==l.depth_func&&(a.depthFunc(Pe),l.depth_func=Pe),xe=E[0],Oe=E[1],(xe!==O[0]||Oe!==O[1])&&(a.depthRange(xe,Oe),O[0]=xe,O[1]=Oe),ze=u.depth_mask,ze!==l.depth_mask&&(a.depthMask(ze),l.depth_mask=ze),Re=F[0],ht=F[1],st=F[2],gt=F[3],(Re!==U[0]||ht!==U[1]||st!==U[2]||gt!==U[3])&&(a.colorMask(Re,ht,st,gt),U[0]=Re,U[1]=ht,U[2]=st,U[3]=gt),xt=u.cull_enable,xt!==l.cull_enable&&(xt?a.enable(2884):a.disable(2884),l.cull_enable=xt),pr=u.cull_face,pr!==l.cull_face&&(a.cullFace(pr),l.cull_face=pr),br=u.frontFace,br!==l.frontFace&&(a.frontFace(br),l.frontFace=br),cr=u.lineWidth,cr!==l.lineWidth&&(a.lineWidth(cr),l.lineWidth=cr),Er=u.polygonOffset_enable,Er!==l.polygonOffset_enable&&(Er?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Er),ii=G[0],jr=G[1],(ii!==j[0]||jr!==j[1])&&(a.polygonOffset(ii,jr),j[0]=ii,j[1]=jr),kr=u.sample_alpha,kr!==l.sample_alpha&&(kr?a.enable(32926):a.disable(32926),l.sample_alpha=kr),Vr=u.sample_enable,Vr!==l.sample_enable&&(Vr?a.enable(32928):a.disable(32928),l.sample_enable=Vr),Ai=W[0],Bi=W[1],(Ai!==N[0]||Bi!==N[1])&&(a.sampleCoverage(Ai,Bi),N[0]=Ai,N[1]=Bi),Di=u.stencil_enable,Di!==l.stencil_enable&&(Di?a.enable(2960):a.disable(2960),l.stencil_enable=Di),ln=u.stencil_mask,ln!==l.stencil_mask&&(a.stencilMask(ln),l.stencil_mask=ln),hn=H[0],qr=H[1],_i=H[2],(hn!==re[0]||qr!==re[1]||_i!==re[2])&&(a.stencilFunc(hn,qr,_i),re[0]=hn,re[1]=qr,re[2]=_i),zi=ae[0],Rt=ae[1],_t=ae[2],qt=ae[3],(zi!==me[0]||Rt!==me[1]||_t!==me[2]||qt!==me[3])&&(a.stencilOpSeparate(zi,Rt,_t,qt),me[0]=zi,me[1]=Rt,me[2]=_t,me[3]=qt),Nt=Le[0],mr=Le[1],Lr=Le[2],Nr=Le[3],(Nt!==Ce[0]||mr!==Ce[1]||Lr!==Ce[2]||Nr!==Ce[3])&&(a.stencilOpSeparate(Nt,mr,Lr,Nr),Ce[0]=Nt,Ce[1]=mr,Ce[2]=Lr,Ce[3]=Nr),Fr=u.scissor_enable,Fr!==l.scissor_enable&&(Fr?a.enable(3089):a.disable(3089),l.scissor_enable=Fr),Gr=de[0],Hr=de[1],mi=de[2],Ei=de[3],(Gr!==te[0]||Hr!==te[1]||mi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,Hr,mi,Ei),te[0]=Gr,te[1]=Hr,te[2]=mi,te[3]=Ei),Vi=Se[0],ti=Se[1],Qi=Se[2],Yr=Se[3],(Vi!==Te[0]||ti!==Te[1]||Qi!==Te[2]||Yr!==Te[3])&&(a.viewport(Vi,ti,Qi,Yr),Te[0]=Vi,Te[1]=ti,Te[2]=Qi,Te[3]=Yr),l.dirty=!1}zt=l.profile,zt&&(Mt=performance.now(),r.count++),kt=d.frag,$e=d.vert,De=d.program($e,kt),a.useProgram(De.program),y.setVAO(null),Me=De.id,oe=rt[Me],oe?oe.call(this,Ot):(oe=rt[Me]=n(De),oe.call(this,Ot)),y.setVAO(null),zt&&(r.cpuTime+=performance.now()-Mt)},scope:function(Ot,it,Ke){var zt,Mt;zt=l.profile,zt&&(Mt=performance.now(),r.count++),it(o,Ot,Ke),zt&&(r.cpuTime+=performance.now()-Mt)},batch:function(Ot,it){var Ke,zt,Mt,kt,$e,De,Me,oe,Ne;if(Ke=C.angle_instanced_arrays,zt=v.next,zt!==v.cur&&(zt?a.bindFramebuffer(36160,zt.framebuffer):a.bindFramebuffer(36160,null),v.cur=zt),l.dirty){var vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi;vt=u.dither,vt!==l.dither&&(vt?a.enable(3024):a.disable(3024),l.dither=vt),lt=u.blend_enable,lt!==l.blend_enable&&(lt?a.enable(3042):a.disable(3042),l.blend_enable=lt),We=L[0],Ve=L[1],et=L[2],tt=L[3],(We!==x[0]||Ve!==x[1]||et!==x[2]||tt!==x[3])&&(a.blendColor(We,Ve,et,tt),x[0]=We,x[1]=Ve,x[2]=et,x[3]=tt),Lt=k[0],jt=k[1],(Lt!==S[0]||jt!==S[1])&&(a.blendEquationSeparate(Lt,jt),S[0]=Lt,S[1]=jt),or=m[0],yr=m[1],vr=m[2],Vt=m[3],(or!==P[0]||yr!==P[1]||vr!==P[2]||Vt!==P[3])&&(a.blendFuncSeparate(or,yr,vr,Vt),P[0]=or,P[1]=yr,P[2]=vr,P[3]=Vt),Pe=u.depth_enable,Pe!==l.depth_enable&&(Pe?a.enable(2929):a.disable(2929),l.depth_enable=Pe),xe=u.depth_func,xe!==l.depth_func&&(a.depthFunc(xe),l.depth_func=xe),Oe=E[0],ze=E[1],(Oe!==O[0]||ze!==O[1])&&(a.depthRange(Oe,ze),O[0]=Oe,O[1]=ze),Re=u.depth_mask,Re!==l.depth_mask&&(a.depthMask(Re),l.depth_mask=Re),ht=F[0],st=F[1],gt=F[2],xt=F[3],(ht!==U[0]||st!==U[1]||gt!==U[2]||xt!==U[3])&&(a.colorMask(ht,st,gt,xt),U[0]=ht,U[1]=st,U[2]=gt,U[3]=xt),pr=u.cull_enable,pr!==l.cull_enable&&(pr?a.enable(2884):a.disable(2884),l.cull_enable=pr),br=u.cull_face,br!==l.cull_face&&(a.cullFace(br),l.cull_face=br),cr=u.frontFace,cr!==l.frontFace&&(a.frontFace(cr),l.frontFace=cr),Er=u.lineWidth,Er!==l.lineWidth&&(a.lineWidth(Er),l.lineWidth=Er),ii=u.polygonOffset_enable,ii!==l.polygonOffset_enable&&(ii?a.enable(32823):a.disable(32823),l.polygonOffset_enable=ii),jr=G[0],kr=G[1],(jr!==j[0]||kr!==j[1])&&(a.polygonOffset(jr,kr),j[0]=jr,j[1]=kr),Vr=u.sample_alpha,Vr!==l.sample_alpha&&(Vr?a.enable(32926):a.disable(32926),l.sample_alpha=Vr),Ai=u.sample_enable,Ai!==l.sample_enable&&(Ai?a.enable(32928):a.disable(32928),l.sample_enable=Ai),Bi=W[0],Di=W[1],(Bi!==N[0]||Di!==N[1])&&(a.sampleCoverage(Bi,Di),N[0]=Bi,N[1]=Di),ln=u.stencil_enable,ln!==l.stencil_enable&&(ln?a.enable(2960):a.disable(2960),l.stencil_enable=ln),hn=u.stencil_mask,hn!==l.stencil_mask&&(a.stencilMask(hn),l.stencil_mask=hn),qr=H[0],_i=H[1],zi=H[2],(qr!==re[0]||_i!==re[1]||zi!==re[2])&&(a.stencilFunc(qr,_i,zi),re[0]=qr,re[1]=_i,re[2]=zi),Rt=ae[0],_t=ae[1],qt=ae[2],Nt=ae[3],(Rt!==me[0]||_t!==me[1]||qt!==me[2]||Nt!==me[3])&&(a.stencilOpSeparate(Rt,_t,qt,Nt),me[0]=Rt,me[1]=_t,me[2]=qt,me[3]=Nt),mr=Le[0],Lr=Le[1],Nr=Le[2],Fr=Le[3],(mr!==Ce[0]||Lr!==Ce[1]||Nr!==Ce[2]||Fr!==Ce[3])&&(a.stencilOpSeparate(mr,Lr,Nr,Fr),Ce[0]=mr,Ce[1]=Lr,Ce[2]=Nr,Ce[3]=Fr),Gr=u.scissor_enable,Gr!==l.scissor_enable&&(Gr?a.enable(3089):a.disable(3089),l.scissor_enable=Gr),Hr=de[0],mi=de[1],Ei=de[2],Vi=de[3],(Hr!==te[0]||mi!==te[1]||Ei!==te[2]||Vi!==te[3])&&(a.scissor(Hr,mi,Ei,Vi),te[0]=Hr,te[1]=mi,te[2]=Ei,te[3]=Vi),ti=Se[0],Qi=Se[1],Yr=Se[2],oi=Se[3],(ti!==Te[0]||Qi!==Te[1]||Yr!==Te[2]||oi!==Te[3])&&(a.viewport(ti,Qi,Yr,oi),Te[0]=ti,Te[1]=Qi,Te[2]=Yr,Te[3]=oi),l.dirty=!1}Mt=l.profile,Mt&&(kt=performance.now(),r.count+=it),$e=d.frag,De=d.vert,Me=d.program(De,$e),a.useProgram(Me.program),y.setVAO(null),oe=Me.id,Ne=bt[oe],Ne?Ne.call(this,Ot,it):(Ne=bt[oe]=i(Me),Ne.call(this,Ot,it)),y.setVAO(null),Mt&&(r.cpuTime+=performance.now()-kt)}}}});var F9=we((cbr,s7e)=>{s7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et){"use strict";var tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn;return tt=t.gl,Lt=t.context,jt=t.strings,or=t.next,yr=t.current,vr=t.draw,Vt=t.elements,Pe=t.buffer,xe=t.shader,Oe=t.attributes,ze=t.vao,Re=t.uniforms,ht=t.framebuffer,st=t.extensions,gt=t.timer,xt=t.isBufferArgs,pr=or.blend_color,br=yr.blend_color,cr=or.blend_equation,Er=yr.blend_equation,ii=or.blend_func,jr=yr.blend_func,kr=or.depth_range,Vr=yr.depth_range,Ai=or.colorMask,Bi=yr.colorMask,Di=or.polygonOffset_offset,ln=yr.polygonOffset_offset,hn=or.sample_coverage,qr=yr.sample_coverage,_i=or.stencil_func,zi=yr.stencil_func,Rt=or.stencil_opFront,_t=yr.stencil_opFront,qt=or.stencil_opBack,Nt=yr.stencil_opBack,mr=or.scissor_box,Lr=yr.scissor_box,Nr=or.viewport,Fr=yr.viewport,Gr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Hr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},mi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ei={add:32774,subtract:32778,"reverse subtract":32779},Vi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ti={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Qi={cw:2304,ccw:2305},Yr={},Yr.stride=8,Yr.offset=8,Yr.divisor=1,oi={},oi.stride=8,oi.offset=16,oi.divisor=1,Fi={},Fi.stride=8,Fi.offset=8,Fi.divisor=1,rn={},rn.stride=8,rn.offset=16,rn.divisor=1,tn={},tn.stride=4,tn.offset=0,tn.divisor=1,{draw:function(Ri){var Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa;if(Ii=st.angle_instanced_arrays,xn=ht.next,xn!==ht.cur&&(xn?tt.bindFramebuffer(36160,xn.framebuffer):tt.bindFramebuffer(36160,null),ht.cur=xn),yr.dirty){var os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi;os=or.dither,os!==yr.dither&&(os?tt.enable(3024):tt.disable(3024),yr.dither=os),_l=or.depth_func,_l!==yr.depth_func&&(tt.depthFunc(_l),yr.depth_func=_l),Ss=kr[0],po=kr[1],(Ss!==Vr[0]||po!==Vr[1])&&(tt.depthRange(Ss,po),Vr[0]=Ss,Vr[1]=po),go=or.depth_mask,go!==yr.depth_mask&&(tt.depthMask(go),yr.depth_mask=go),ss=Ai[0],qo=Ai[1],zo=Ai[2],io=Ai[3],(ss!==Bi[0]||qo!==Bi[1]||zo!==Bi[2]||io!==Bi[3])&&(tt.colorMask(ss,qo,zo,io),Bi[0]=ss,Bi[1]=qo,Bi[2]=zo,Bi[3]=io),Io=or.cull_enable,Io!==yr.cull_enable&&(Io?tt.enable(2884):tt.disable(2884),yr.cull_enable=Io),Ra=or.cull_face,Ra!==yr.cull_face&&(tt.cullFace(Ra),yr.cull_face=Ra),vs=or.frontFace,vs!==yr.frontFace&&(tt.frontFace(vs),yr.frontFace=vs),fs=or.lineWidth,fs!==yr.lineWidth&&(tt.lineWidth(fs),yr.lineWidth=fs),cl=or.polygonOffset_enable,cl!==yr.polygonOffset_enable&&(cl?tt.enable(32823):tt.disable(32823),yr.polygonOffset_enable=cl),el=Di[0],Hs=Di[1],(el!==ln[0]||Hs!==ln[1])&&(tt.polygonOffset(el,Hs),ln[0]=el,ln[1]=Hs),Do=or.sample_alpha,Do!==yr.sample_alpha&&(Do?tt.enable(32926):tt.disable(32926),yr.sample_alpha=Do),tl=or.sample_enable,tl!==yr.sample_enable&&(tl?tt.enable(32928):tt.disable(32928),yr.sample_enable=tl),Fs=hn[0],hl=hn[1],(Fs!==qr[0]||hl!==qr[1])&&(tt.sampleCoverage(Fs,hl),qr[0]=Fs,qr[1]=hl),Fa=or.stencil_mask,Fa!==yr.stencil_mask&&(tt.stencilMask(Fa),yr.stencil_mask=Fa),Ms=_i[0],jo=_i[1],Ds=_i[2],(Ms!==zi[0]||jo!==zi[1]||Ds!==zi[2])&&(tt.stencilFunc(Ms,jo,Ds),zi[0]=Ms,zi[1]=jo,zi[2]=Ds),Is=Rt[0],Os=Rt[1],St=Rt[2],Ut=Rt[3],(Is!==_t[0]||Os!==_t[1]||St!==_t[2]||Ut!==_t[3])&&(tt.stencilOpSeparate(Is,Os,St,Ut),_t[0]=Is,_t[1]=Os,_t[2]=St,_t[3]=Ut),xr=qt[0],dr=qt[1],Rr=qt[2],yi=qt[3],(xr!==Nt[0]||dr!==Nt[1]||Rr!==Nt[2]||yi!==Nt[3])&&(tt.stencilOpSeparate(xr,dr,Rr,yi),Nt[0]=xr,Nt[1]=dr,Nt[2]=Rr,Nt[3]=yi)}xi=Ri.viewport,Xr=xi.x|0,dt=xi.y|0,$t="width"in xi?xi.width|0:Lt.framebufferWidth-Xr,fr="height"in xi?xi.height|0:Lt.framebufferHeight-dt,gr=Lt.viewportWidth,Lt.viewportWidth=$t,Zr=Lt.viewportHeight,Lt.viewportHeight=fr,tt.viewport(Xr,dt,$t,fr),Fr[0]=Xr,Fr[1]=dt,Fr[2]=$t,Fr[3]=fr,tt.blendColor(0,0,0,0),br[0]=0,br[1]=0,br[2]=0,br[3]=0,n?tt.enable(3042):tt.disable(3042),yr.blend_enable=n,tt.blendEquationSeparate(32774,32774),Er[0]=32774,Er[1]=32774,tt.blendFuncSeparate(770,771,773,1),jr[0]=770,jr[1]=771,jr[2]=773,jr[3]=1,wi=i.call(this,Lt,Ri,0),wi?tt.enable(2929):tt.disable(2929),yr.depth_enable=wi,$i=Ri.viewport,ni=$i.x|0,Xi=$i.y|0,aa="width"in $i?$i.width|0:Lt.framebufferWidth-ni,Mn="height"in $i?$i.height|0:Lt.framebufferHeight-Xi,tt.scissor(ni,Xi,aa,Mn),Lr[0]=ni,Lr[1]=Xi,Lr[2]=aa,Lr[3]=Mn,a?tt.enable(3089):tt.disable(3089),yr.scissor_enable=a,o?tt.enable(2960):tt.disable(2960),yr.stencil_enable=o,Un=yr.profile,Un&&(Ga=performance.now(),r.count++),tt.useProgram(s.program),ma=st.angle_instanced_arrays,ze.setVAO(null),oa=Ri.positionBuffer,Yr.buffer=oa,ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,xt(Yr)?(ka=!0,kn=Pe.createStream(34962,Yr),uo=kn.dtype):(kn=Pe.getBuffer(Yr),kn?uo=kn.dtype:"constant"in Yr?(so=2,typeof Yr.constant=="number"?(Kr=Yr.constant,Ia=Yo=fa=0):(Kr=Yr.constant.length>0?Yr.constant[0]:0,Ia=Yr.constant.length>1?Yr.constant[1]:0,Yo=Yr.constant.length>2?Yr.constant[2]:0,fa=Yr.constant.length>3?Yr.constant[3]:0)):(xt(Yr.buffer)?kn=Pe.createStream(34962,Yr.buffer):kn=Pe.getBuffer(Yr.buffer),uo="type"in Yr?ti[Yr.type]:kn.dtype,ys=!!Yr.normalized,Ta=Yr.size|0,ls=Yr.offset|0,$a=Yr.stride|0,fo=Yr.divisor|0)),mn=u.location,ra=Oe[mn],so===1?(ra.buffer||tt.enableVertexAttribArray(mn),wa=Ta||2,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(tt.bindBuffer(34962,kn.buffer),tt.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&(tt.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(tt.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=Ri.positionFractBuffer,Fi.buffer=ws,Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Oa=!1,Ko=5126,Qo=0,Hi=0,Sa=0,xt(Fi)?(Co=!0,Sn=Pe.createStream(34962,Fi),Ko=Sn.dtype):(Sn=Pe.getBuffer(Fi),Sn?Ko=Sn.dtype:"constant"in Fi?(Po=2,typeof Fi.constant=="number"?(Wi=Fi.constant,gn=Ps=Ha=0):(Wi=Fi.constant.length>0?Fi.constant[0]:0,gn=Fi.constant.length>1?Fi.constant[1]:0,Ps=Fi.constant.length>2?Fi.constant[2]:0,Ha=Fi.constant.length>3?Fi.constant[3]:0)):(xt(Fi.buffer)?Sn=Pe.createStream(34962,Fi.buffer):Sn=Pe.getBuffer(Fi.buffer),Ko="type"in Fi?ti[Fi.type]:Sn.dtype,Oa=!!Fi.normalized,ao=Fi.size|0,Qo=Fi.offset|0,Hi=Fi.stride|0,Sa=Fi.divisor|0)),Qa=l.location,vn=Oe[Qa],Po===1?(vn.buffer||tt.enableVertexAttribArray(Qa),da=ao||2,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Oa||vn.offset!==Qo||vn.stride!==Hi)&&(tt.bindBuffer(34962,Sn.buffer),tt.vertexAttribPointer(Qa,da,Ko,Oa,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Oa,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(tt.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(tt.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=Ri.positionBuffer,oi.buffer=la,vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Ba=0,ha=0,xt(oi)?(vo=!0,jn=Pe.createStream(34962,oi),qs=jn.dtype):(jn=Pe.getBuffer(oi),jn?qs=jn.dtype:"constant"in oi?(As=2,typeof oi.constant=="number"?(ps=oi.constant,co=mo=No=0):(ps=oi.constant.length>0?oi.constant[0]:0,co=oi.constant.length>1?oi.constant[1]:0,mo=oi.constant.length>2?oi.constant[2]:0,No=oi.constant.length>3?oi.constant[3]:0)):(xt(oi.buffer)?jn=Pe.createStream(34962,oi.buffer):jn=Pe.getBuffer(oi.buffer),qs="type"in oi?ti[oi.type]:jn.dtype,Ys=!!oi.normalized,Go=oi.size|0,Ns=oi.offset|0,Ba=oi.stride|0,ha=oi.divisor|0)),Vs=f.location,Ya=Oe[Vs],As===1?(Ya.buffer||tt.enableVertexAttribArray(Vs),_n=Go||2,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Ba)&&(tt.bindBuffer(34962,jn.buffer),tt.vertexAttribPointer(Vs,_n,qs,Ys,Ba,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Ba),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(tt.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(tt.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=Ri.positionFractBuffer,rn.buffer=Vn,wo=!1,Da=1,Xn=0,sn=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,xt(rn)?(wo=!0,qn=Pe.createStream(34962,rn),lo=qn.dtype):(qn=Pe.getBuffer(rn),qn?lo=qn.dtype:"constant"in rn?(Da=2,typeof rn.constant=="number"?(Xn=rn.constant,sn=$n=Ka=0):(Xn=rn.constant.length>0?rn.constant[0]:0,sn=rn.constant.length>1?rn.constant[1]:0,$n=rn.constant.length>2?rn.constant[2]:0,Ka=rn.constant.length>3?rn.constant[3]:0)):(xt(rn.buffer)?qn=Pe.createStream(34962,rn.buffer):qn=Pe.getBuffer(rn.buffer),lo="type"in rn?ti[rn.type]:qn.dtype,Ja=!!rn.normalized,Eo=rn.size|0,eo=rn.offset|0,sa=rn.stride|0,es=rn.divisor|0)),Na=c.location,en=Oe[Na],Da===1?(en.buffer||tt.enableVertexAttribArray(Na),Pa=Eo||2,(en.type!==lo||en.size!==Pa||en.buffer!==qn||en.normalized!==Ja||en.offset!==eo||en.stride!==sa)&&(tt.bindBuffer(34962,qn.buffer),tt.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),en.type=lo,en.size=Pa,en.buffer=qn,en.normalized=Ja,en.offset=eo,en.stride=sa),en.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),en.divisor=es)):(en.buffer&&(tt.disableVertexAttribArray(Na),en.buffer=null),(en.x!==Xn||en.y!==sn||en.z!==$n||en.w!==Ka)&&(tt.vertexAttrib4f(Na,Xn,sn,$n,Ka),en.x=Xn,en.y=sn,en.z=$n,en.w=Ka)),to=Ri.colorBuffer,tn.buffer=to,yo=!1,Jo=1,Ao=0,Rn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,xt(tn)?(yo=!0,Ca=Pe.createStream(34962,tn),Ho=Ca.dtype):(Ca=Pe.getBuffer(tn),Ca?Ho=Ca.dtype:"constant"in tn?(Jo=2,typeof tn.constant=="number"?(Ao=tn.constant,Rn=_a=Ws=0):(Ao=tn.constant.length>0?tn.constant[0]:0,Rn=tn.constant.length>1?tn.constant[1]:0,_a=tn.constant.length>2?tn.constant[2]:0,Ws=tn.constant.length>3?tn.constant[3]:0)):(xt(tn.buffer)?Ca=Pe.createStream(34962,tn.buffer):Ca=Pe.getBuffer(tn.buffer),Ho="type"in tn?ti[tn.type]:Ca.dtype,Ts=!!tn.normalized,Es=tn.size|0,Wa=tn.offset|0,To=tn.stride|0,ts=tn.divisor|0)),Wo=h.location,qa=Oe[Wo],Jo===1?(qa.buffer||tt.enableVertexAttribArray(Wo),on=Es||4,(qa.type!==Ho||qa.size!==on||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(tt.bindBuffer(34962,Ca.buffer),tt.vertexAttribPointer(Wo,on,Ho,Ts,To,Wa),qa.type=Ho,qa.size=on,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(tt.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Rn||qa.z!==_a||qa.w!==Ws)&&(tt.vertexAttrib4f(Wo,Ao,Rn,_a,Ws),qa.x=Ao,qa.y=Rn,qa.z=_a,qa.w=Ws)),Oo=p.location,ko=Oe[Oo],ko.buffer||tt.enableVertexAttribArray(Oo),(ko.type!==5126||ko.size!==1||ko.buffer!==d||ko.normalized!==!1||ko.offset!==0||ko.stride!==8)&&(tt.bindBuffer(34962,d.buffer),tt.vertexAttribPointer(Oo,1,5126,!1,8,0),ko.type=5126,ko.size=1,ko.buffer=d,ko.normalized=!1,ko.offset=0,ko.stride=8),ko.divisor!==0&&(ma.vertexAttribDivisorANGLE(Oo,0),ko.divisor=0),oo=y.location,za=Oe[oo],za.buffer||tt.enableVertexAttribArray(oo),(za.type!==5126||za.size!==1||za.buffer!==d||za.normalized!==!1||za.offset!==4||za.stride!==8)&&(tt.bindBuffer(34962,d.buffer),tt.vertexAttribPointer(oo,1,5126,!1,8,4),za.type=5126,za.size=1,za.buffer=d,za.normalized=!1,za.offset=4,za.stride=8),za.divisor!==0&&(ma.vertexAttribDivisorANGLE(oo,0),za.divisor=0),ea=Ri.dashLength,tt.uniform1f(b.location,ea),rs=Ri.dashTexture,rs&&rs._reglType==="framebuffer"&&(rs=rs.color[0]),$s=rs._texture,tt.uniform1i(v.location,$s.bind()),us=Ri.depth,tt.uniform1f(C.location,us),Rs=Ri.opacity,tt.uniform1f(M.location,Rs),fl=Ri.scale,as=fl[0],Ma=fl[1],tt.uniform2f(A.location,as,Ma),Qs=Ri.scaleFract,ho=Qs[0],gs=Qs[1],tt.uniform2f(L.location,ho,gs),Vo=Ri.thickness,tt.uniform1f(x.location,Vo),Ro=Ri.translate,Lo=Ro[0],xs=Ro[1],tt.uniform2f(k.location,Lo,xs),ks=Ri.translateFract,Ea=ks[0],Jn=ks[1],tt.uniform2f(S.location,Ea,Jn),Bo=P.call(this,Lt,Ri,0),rl=Bo[0],Gs=Bo[1],bs=Bo[2],zs=Bo[3],tt.uniform4f(m.location,rl,Gs,bs,zs),$o=vr.elements,$o?tt.bindBuffer(34963,$o.buffer.buffer):ze.currentVAO&&($o=Vt.getElements(ze.currentVAO.elements),$o&&tt.bindBuffer(34963,$o.buffer.buffer)),Aa=Ri.count,Aa>0?$o?ma.drawElementsInstancedANGLE(5,4,$o.type,0<<($o.type-5121>>1),Aa):ma.drawArraysInstancedANGLE(5,0,4,Aa):Aa<0&&($o?tt.drawElements(5,4,$o.type,0<<($o.type-5121>>1)):tt.drawArrays(5,0,4)),yr.dirty=!0,ze.setVAO(null),Lt.viewportWidth=gr,Lt.viewportHeight=Zr,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Pe.destroyStream(kn),Co&&Pe.destroyStream(Sn),vo&&Pe.destroyStream(jn),wo&&Pe.destroyStream(qn),yo&&Pe.destroyStream(Ca),$s.unbind()},scope:function(Ri,Ii,xn){var xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Dl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt;xi=Ri.viewport,Xr=xi.x|0,dt=xi.y|0,$t="width"in xi?xi.width|0:Lt.framebufferWidth-Xr,fr="height"in xi?xi.height|0:Lt.framebufferHeight-dt,gr=Lt.viewportWidth,Lt.viewportWidth=$t,Zr=Lt.viewportHeight,Lt.viewportHeight=fr,wi=Nr[0],Nr[0]=Xr,$i=Nr[1],Nr[1]=dt,ni=Nr[2],Nr[2]=$t,Xi=Nr[3],Nr[3]=fr,aa=pr[0],pr[0]=E,Mn=pr[1],pr[1]=O,Un=pr[2],pr[2]=F,Ga=pr[3],pr[3]=U,ma=or.blend_enable,or.blend_enable=G,oa=cr[0],cr[0]=j,ka=cr[1],cr[1]=W,so=ii[0],ii[0]=N,Kr=ii[1],ii[1]=H,Ia=ii[2],ii[2]=re,Yo=ii[3],ii[3]=ae,fa=i.call(this,Lt,Ri,xn),kn=or.depth_enable,or.depth_enable=fa,Ta=Ri.viewport,ys=Ta.x|0,uo=Ta.y|0,ls="width"in Ta?Ta.width|0:Lt.framebufferWidth-ys,$a="height"in Ta?Ta.height|0:Lt.framebufferHeight-uo,fo=mr[0],mr[0]=ys,mn=mr[1],mr[1]=uo,ra=mr[2],mr[2]=ls,wa=mr[3],mr[3]=$a,ws=or.scissor_enable,or.scissor_enable=me,Co=or.stencil_enable,or.stencil_enable=Le,Po=yr.profile,Po&&(Wi=performance.now(),r.count++),gn=vr.offset,vr.offset=Ce,Ps=vr.count,vr.count=de,Ha=Ri.count,Sn=vr.instances,vr.instances=Ha,ao=vr.primitive,vr.primitive=te,Oa=Se.call(this,Lt,Ri,xn),Ko=Re[Te],Re[Te]=Oa,Qo=Ri.miterLimit,Hi=Re[be],Re[be]=Qo,Sa=Ri.scale,Qa=Re[He],Re[He]=Sa,vn=Ri.scaleFract,da=Re[Ie],Re[Ie]=vn,la=Ri.translateFract,vo=Re[ge],Re[ge]=la,As=Ri.translate,ps=Re[Be],Re[Be]=As,co=Ri.thickness,mo=Re[ce],Re[ce]=co,No=Ri.dashTexture,jn=Re[je],Re[je]=No,Go=Ri.opacity,Ys=Re[rt],Re[rt]=Go,qs=Lt.pixelRatio,Ns=Re[bt],Re[bt]=qs,Ba=Ri.id,ha=Re[Ot],Re[Ot]=Ba,Vs=Ri.dashLength,Ya=Re[it],Re[it]=Vs,_n=P.call(this,Lt,Ri,xn),Vn=Re[Ke],Re[Ke]=_n,wo=Ri.depth,Da=Re[zt],Re[zt]=wo,Xn=Mt.state,Mt.state=1,sn=Mt.x,Mt.x=0,$n=Mt.y,Mt.y=0,Ka=Mt.z,Mt.z=0,qn=Mt.w,Mt.w=0,Eo=Mt.buffer,Mt.buffer=d,Ja=Mt.size,Mt.size=0,lo=Mt.normalized,Mt.normalized=!1,eo=Mt.type,Mt.type=5126,sa=Mt.offset,Mt.offset=0,es=Mt.stride,Mt.stride=8,Na=Mt.divisor,Mt.divisor=0,en=kt.state,kt.state=1,Pa=kt.x,kt.x=0,to=kt.y,kt.y=0,yo=kt.z,kt.z=0,Jo=kt.w,kt.w=0,Ao=kt.buffer,kt.buffer=d,Rn=kt.size,kt.size=0,_a=kt.normalized,kt.normalized=!1,Ws=kt.type,kt.type=5126,Ca=kt.offset,kt.offset=4,Es=kt.stride,kt.stride=8,Ts=kt.divisor,kt.divisor=0,Ho=Ri.positionBuffer,Yr.buffer=Ho,Wa=!1,To=1,ts=0,Wo=0,qa=0,on=0,Oo=null,ko=0,oo=!1,za=5126,ea=0,rs=0,$s=0,xt(Yr)?(Wa=!0,Oo=Pe.createStream(34962,Yr),za=Oo.dtype):(Oo=Pe.getBuffer(Yr),Oo?za=Oo.dtype:"constant"in Yr?(To=2,typeof Yr.constant=="number"?(ts=Yr.constant,Wo=qa=on=0):(ts=Yr.constant.length>0?Yr.constant[0]:0,Wo=Yr.constant.length>1?Yr.constant[1]:0,qa=Yr.constant.length>2?Yr.constant[2]:0,on=Yr.constant.length>3?Yr.constant[3]:0)):(xt(Yr.buffer)?Oo=Pe.createStream(34962,Yr.buffer):Oo=Pe.getBuffer(Yr.buffer),za="type"in Yr?ti[Yr.type]:Oo.dtype,oo=!!Yr.normalized,ko=Yr.size|0,ea=Yr.offset|0,rs=Yr.stride|0,$s=Yr.divisor|0)),us=$e.state,$e.state=To,Rs=$e.x,$e.x=ts,fl=$e.y,$e.y=Wo,as=$e.z,$e.z=qa,Ma=$e.w,$e.w=on,Qs=$e.buffer,$e.buffer=Oo,ho=$e.size,$e.size=ko,gs=$e.normalized,$e.normalized=oo,Vo=$e.type,$e.type=za,Ro=$e.offset,$e.offset=ea,Lo=$e.stride,$e.stride=rs,xs=$e.divisor,$e.divisor=$s,ks=Ri.positionBuffer,oi.buffer=ks,Ea=!1,Jn=1,Bo=0,rl=0,Gs=0,bs=0,zs=null,$o=0,Aa=!1,os=5126,_l=0,Ss=0,po=0,xt(oi)?(Ea=!0,zs=Pe.createStream(34962,oi),os=zs.dtype):(zs=Pe.getBuffer(oi),zs?os=zs.dtype:"constant"in oi?(Jn=2,typeof oi.constant=="number"?(Bo=oi.constant,rl=Gs=bs=0):(Bo=oi.constant.length>0?oi.constant[0]:0,rl=oi.constant.length>1?oi.constant[1]:0,Gs=oi.constant.length>2?oi.constant[2]:0,bs=oi.constant.length>3?oi.constant[3]:0)):(xt(oi.buffer)?zs=Pe.createStream(34962,oi.buffer):zs=Pe.getBuffer(oi.buffer),os="type"in oi?ti[oi.type]:zs.dtype,Aa=!!oi.normalized,$o=oi.size|0,_l=oi.offset|0,Ss=oi.stride|0,po=oi.divisor|0)),go=De.state,De.state=Jn,ss=De.x,De.x=Bo,qo=De.y,De.y=rl,zo=De.z,De.z=Gs,io=De.w,De.w=bs,Io=De.buffer,De.buffer=zs,Ra=De.size,De.size=$o,vs=De.normalized,De.normalized=Aa,fs=De.type,De.type=os,cl=De.offset,De.offset=_l,el=De.stride,De.stride=Ss,Hs=De.divisor,De.divisor=po,Do=Ri.positionFractBuffer,Fi.buffer=Do,tl=!1,Fs=1,hl=0,Fa=0,Ms=0,jo=0,Ds=null,Is=0,Os=!1,St=5126,Ut=0,xr=0,dr=0,xt(Fi)?(tl=!0,Ds=Pe.createStream(34962,Fi),St=Ds.dtype):(Ds=Pe.getBuffer(Fi),Ds?St=Ds.dtype:"constant"in Fi?(Fs=2,typeof Fi.constant=="number"?(hl=Fi.constant,Fa=Ms=jo=0):(hl=Fi.constant.length>0?Fi.constant[0]:0,Fa=Fi.constant.length>1?Fi.constant[1]:0,Ms=Fi.constant.length>2?Fi.constant[2]:0,jo=Fi.constant.length>3?Fi.constant[3]:0)):(xt(Fi.buffer)?Ds=Pe.createStream(34962,Fi.buffer):Ds=Pe.getBuffer(Fi.buffer),St="type"in Fi?ti[Fi.type]:Ds.dtype,Os=!!Fi.normalized,Is=Fi.size|0,Ut=Fi.offset|0,xr=Fi.stride|0,dr=Fi.divisor|0)),Rr=Me.state,Me.state=Fs,yi=Me.x,Me.x=hl,Ti=Me.y,Me.y=Fa,ki=Me.z,Me.z=Ms,Ki=Me.w,Me.w=jo,Fn=Me.buffer,Me.buffer=Ds,Li=Me.size,Me.size=Is,hi=Me.normalized,Me.normalized=Os,Ci=Me.type,Me.type=St,Si=Me.offset,Me.offset=Ut,Gn=Me.stride,Me.stride=xr,ta=Me.divisor,Me.divisor=dr,ya=Ri.positionFractBuffer,rn.buffer=ya,ia=!1,pa=1,va=0,zn=0,is=0,Cs=0,Ks=null,dl=0,xl=!1,Bl=5126,bl=0,eu=0,Zl=0,xt(rn)?(ia=!0,Ks=Pe.createStream(34962,rn),Bl=Ks.dtype):(Ks=Pe.getBuffer(rn),Ks?Bl=Ks.dtype:"constant"in rn?(pa=2,typeof rn.constant=="number"?(va=rn.constant,zn=is=Cs=0):(va=rn.constant.length>0?rn.constant[0]:0,zn=rn.constant.length>1?rn.constant[1]:0,is=rn.constant.length>2?rn.constant[2]:0,Cs=rn.constant.length>3?rn.constant[3]:0)):(xt(rn.buffer)?Ks=Pe.createStream(34962,rn.buffer):Ks=Pe.getBuffer(rn.buffer),Bl="type"in rn?ti[rn.type]:Ks.dtype,xl=!!rn.normalized,dl=rn.size|0,bl=rn.offset|0,eu=rn.stride|0,Zl=rn.divisor|0)),Vl=oe.state,oe.state=pa,ja=oe.x,oe.x=va,ns=oe.y,oe.y=zn,Js=oe.z,oe.z=is,cs=oe.w,oe.w=Cs,sl=oe.buffer,oe.buffer=Ks,ll=oe.size,oe.size=dl,nl=oe.normalized,oe.normalized=xl,zl=oe.type,oe.type=Bl,Ml=oe.offset,oe.offset=bl,Dl=oe.stride,oe.stride=eu,Al=oe.divisor,oe.divisor=Zl,Ll=Ri.colorBuffer,tn.buffer=Ll,ms=!1,Bs=1,Xl=0,Gl=0,Nl=0,ue=0,w=null,q=0,Q=!1,ee=5126,fe=0,Ue=0,at=0,xt(tn)?(ms=!0,w=Pe.createStream(34962,tn),ee=w.dtype):(w=Pe.getBuffer(tn),w?ee=w.dtype:"constant"in tn?(Bs=2,typeof tn.constant=="number"?(Xl=tn.constant,Gl=Nl=ue=0):(Xl=tn.constant.length>0?tn.constant[0]:0,Gl=tn.constant.length>1?tn.constant[1]:0,Nl=tn.constant.length>2?tn.constant[2]:0,ue=tn.constant.length>3?tn.constant[3]:0)):(xt(tn.buffer)?w=Pe.createStream(34962,tn.buffer):w=Pe.getBuffer(tn.buffer),ee="type"in tn?ti[tn.type]:w.dtype,Q=!!tn.normalized,q=tn.size|0,fe=tn.offset|0,Ue=tn.stride|0,at=tn.divisor|0)),yt=Ne.state,Ne.state=Bs,Dt=Ne.x,Ne.x=Xl,Qt=Ne.y,Ne.y=Gl,rr=Ne.z,Ne.z=Nl,Mr=Ne.w,Ne.w=ue,Ur=Ne.buffer,Ne.buffer=w,he=Ne.size,Ne.size=q,Ae=Ne.normalized,Ne.normalized=Q,qe=Ne.type,Ne.type=ee,Ge=Ne.offset,Ne.offset=fe,ft=Ne.stride,Ne.stride=Ue,ot=Ne.divisor,Ne.divisor=at,mt=xe.vert,xe.vert=vt,Gt=xe.frag,xe.frag=lt,yr.dirty=!0,Ii(Lt,Ri,xn),Lt.viewportWidth=gr,Lt.viewportHeight=Zr,Nr[0]=wi,Nr[1]=$i,Nr[2]=ni,Nr[3]=Xi,pr[0]=aa,pr[1]=Mn,pr[2]=Un,pr[3]=Ga,or.blend_enable=ma,cr[0]=oa,cr[1]=ka,ii[0]=so,ii[1]=Kr,ii[2]=Ia,ii[3]=Yo,or.depth_enable=kn,mr[0]=fo,mr[1]=mn,mr[2]=ra,mr[3]=wa,or.scissor_enable=ws,or.stencil_enable=Co,Po&&(r.cpuTime+=performance.now()-Wi),vr.offset=gn,vr.count=Ps,vr.instances=Sn,vr.primitive=ao,Re[Te]=Ko,Re[be]=Hi,Re[He]=Qa,Re[Ie]=da,Re[ge]=vo,Re[Be]=ps,Re[ce]=mo,Re[je]=jn,Re[rt]=Ys,Re[bt]=Ns,Re[Ot]=ha,Re[it]=Ya,Re[Ke]=Vn,Re[zt]=Da,Mt.state=Xn,Mt.x=sn,Mt.y=$n,Mt.z=Ka,Mt.w=qn,Mt.buffer=Eo,Mt.size=Ja,Mt.normalized=lo,Mt.type=eo,Mt.offset=sa,Mt.stride=es,Mt.divisor=Na,kt.state=en,kt.x=Pa,kt.y=to,kt.z=yo,kt.w=Jo,kt.buffer=Ao,kt.size=Rn,kt.normalized=_a,kt.type=Ws,kt.offset=Ca,kt.stride=Es,kt.divisor=Ts,Wa&&Pe.destroyStream(Oo),$e.state=us,$e.x=Rs,$e.y=fl,$e.z=as,$e.w=Ma,$e.buffer=Qs,$e.size=ho,$e.normalized=gs,$e.type=Vo,$e.offset=Ro,$e.stride=Lo,$e.divisor=xs,Ea&&Pe.destroyStream(zs),De.state=go,De.x=ss,De.y=qo,De.z=zo,De.w=io,De.buffer=Io,De.size=Ra,De.normalized=vs,De.type=fs,De.offset=cl,De.stride=el,De.divisor=Hs,tl&&Pe.destroyStream(Ds),Me.state=Rr,Me.x=yi,Me.y=Ti,Me.z=ki,Me.w=Ki,Me.buffer=Fn,Me.size=Li,Me.normalized=hi,Me.type=Ci,Me.offset=Si,Me.stride=Gn,Me.divisor=ta,ia&&Pe.destroyStream(Ks),oe.state=Vl,oe.x=ja,oe.y=ns,oe.z=Js,oe.w=cs,oe.buffer=sl,oe.size=ll,oe.normalized=nl,oe.type=zl,oe.offset=Ml,oe.stride=Dl,oe.divisor=Al,ms&&Pe.destroyStream(w),Ne.state=yt,Ne.x=Dt,Ne.y=Qt,Ne.z=rr,Ne.w=Mr,Ne.buffer=Ur,Ne.size=he,Ne.normalized=Ae,Ne.type=qe,Ne.offset=Ge,Ne.stride=ft,Ne.divisor=ot,xe.vert=mt,xe.frag=Gt,yr.dirty=!0},batch:function(Ri,Ii){var xn,xi,Xr,dt,$t,fr,gr;if(xn=st.angle_instanced_arrays,xi=ht.next,xi!==ht.cur&&(xi?tt.bindFramebuffer(36160,xi.framebuffer):tt.bindFramebuffer(36160,null),ht.cur=xi),yr.dirty){var Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn;Zr=or.dither,Zr!==yr.dither&&(Zr?tt.enable(3024):tt.disable(3024),yr.dither=Zr),wi=or.depth_func,wi!==yr.depth_func&&(tt.depthFunc(wi),yr.depth_func=wi),$i=kr[0],ni=kr[1],($i!==Vr[0]||ni!==Vr[1])&&(tt.depthRange($i,ni),Vr[0]=$i,Vr[1]=ni),Xi=or.depth_mask,Xi!==yr.depth_mask&&(tt.depthMask(Xi),yr.depth_mask=Xi),aa=Ai[0],Mn=Ai[1],Un=Ai[2],Ga=Ai[3],(aa!==Bi[0]||Mn!==Bi[1]||Un!==Bi[2]||Ga!==Bi[3])&&(tt.colorMask(aa,Mn,Un,Ga),Bi[0]=aa,Bi[1]=Mn,Bi[2]=Un,Bi[3]=Ga),ma=or.cull_enable,ma!==yr.cull_enable&&(ma?tt.enable(2884):tt.disable(2884),yr.cull_enable=ma),oa=or.cull_face,oa!==yr.cull_face&&(tt.cullFace(oa),yr.cull_face=oa),ka=or.frontFace,ka!==yr.frontFace&&(tt.frontFace(ka),yr.frontFace=ka),so=or.lineWidth,so!==yr.lineWidth&&(tt.lineWidth(so),yr.lineWidth=so),Kr=or.polygonOffset_enable,Kr!==yr.polygonOffset_enable&&(Kr?tt.enable(32823):tt.disable(32823),yr.polygonOffset_enable=Kr),Ia=Di[0],Yo=Di[1],(Ia!==ln[0]||Yo!==ln[1])&&(tt.polygonOffset(Ia,Yo),ln[0]=Ia,ln[1]=Yo),fa=or.sample_alpha,fa!==yr.sample_alpha&&(fa?tt.enable(32926):tt.disable(32926),yr.sample_alpha=fa),kn=or.sample_enable,kn!==yr.sample_enable&&(kn?tt.enable(32928):tt.disable(32928),yr.sample_enable=kn),Ta=hn[0],ys=hn[1],(Ta!==qr[0]||ys!==qr[1])&&(tt.sampleCoverage(Ta,ys),qr[0]=Ta,qr[1]=ys),uo=or.stencil_mask,uo!==yr.stencil_mask&&(tt.stencilMask(uo),yr.stencil_mask=uo),ls=_i[0],$a=_i[1],fo=_i[2],(ls!==zi[0]||$a!==zi[1]||fo!==zi[2])&&(tt.stencilFunc(ls,$a,fo),zi[0]=ls,zi[1]=$a,zi[2]=fo),mn=Rt[0],ra=Rt[1],wa=Rt[2],ws=Rt[3],(mn!==_t[0]||ra!==_t[1]||wa!==_t[2]||ws!==_t[3])&&(tt.stencilOpSeparate(mn,ra,wa,ws),_t[0]=mn,_t[1]=ra,_t[2]=wa,_t[3]=ws),Co=qt[0],Po=qt[1],Wi=qt[2],gn=qt[3],(Co!==Nt[0]||Po!==Nt[1]||Wi!==Nt[2]||gn!==Nt[3])&&(tt.stencilOpSeparate(Co,Po,Wi,gn),Nt[0]=Co,Nt[1]=Po,Nt[2]=Wi,Nt[3]=gn)}tt.blendColor(0,0,0,0),br[0]=0,br[1]=0,br[2]=0,br[3]=0,We?tt.enable(3042):tt.disable(3042),yr.blend_enable=We,tt.blendEquationSeparate(32774,32774),Er[0]=32774,Er[1]=32774,tt.blendFuncSeparate(770,771,773,1),jr[0]=770,jr[1]=771,jr[2]=773,jr[3]=1,Ve?tt.enable(3089):tt.disable(3089),yr.scissor_enable=Ve,et?tt.enable(2960):tt.disable(2960),yr.stencil_enable=et,Xr=yr.profile,Xr&&(dt=performance.now(),r.count+=Ii),tt.useProgram(s.program),$t=st.angle_instanced_arrays;var Ps,Ha,Sn,ao,Oa;for(ze.setVAO(null),Ps=p.location,Ha=Oe[Ps],Ha.buffer||tt.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==1||Ha.buffer!==d||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==8)&&(tt.bindBuffer(34962,d.buffer),tt.vertexAttribPointer(Ps,1,5126,!1,8,0),Ha.type=5126,Ha.size=1,Ha.buffer=d,Ha.normalized=!1,Ha.offset=0,Ha.stride=8),Ha.divisor!==0&&($t.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=y.location,ao=Oe[Sn],ao.buffer||tt.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==1||ao.buffer!==d||ao.normalized!==!1||ao.offset!==4||ao.stride!==8)&&(tt.bindBuffer(34962,d.buffer),tt.vertexAttribPointer(Sn,1,5126,!1,8,4),ao.type=5126,ao.size=1,ao.buffer=d,ao.normalized=!1,ao.offset=4,ao.stride=8),ao.divisor!==0&&($t.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Oa=vr.elements,Oa?tt.bindBuffer(34963,Oa.buffer.buffer):ze.currentVAO&&(Oa=Vt.getElements(ze.currentVAO.elements),Oa&&tt.bindBuffer(34963,Oa.buffer.buffer)),fr=0;fr0?Yr.constant[0]:0,qs=Yr.constant.length>1?Yr.constant[1]:0,Ns=Yr.constant.length>2?Yr.constant[2]:0,Ba=Yr.constant.length>3?Yr.constant[3]:0)):(xt(Yr.buffer)?ha=Pe.createStream(34962,Yr.buffer):ha=Pe.getBuffer(Yr.buffer),_n="type"in Yr?ti[Yr.type]:ha.dtype,Ya=!!Yr.normalized,Vs=Yr.size|0,Vn=Yr.offset|0,wo=Yr.stride|0,Da=Yr.divisor|0)),Xn=u.location,sn=Oe[Xn],Go===1?(sn.buffer||tt.enableVertexAttribArray(Xn),$n=Vs||2,(sn.type!==_n||sn.size!==$n||sn.buffer!==ha||sn.normalized!==Ya||sn.offset!==Vn||sn.stride!==wo)&&(tt.bindBuffer(34962,ha.buffer),tt.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),sn.type=_n,sn.size=$n,sn.buffer=ha,sn.normalized=Ya,sn.offset=Vn,sn.stride=wo),sn.divisor!==Da&&($t.vertexAttribDivisorANGLE(Xn,Da),sn.divisor=Da)):(sn.buffer&&(tt.disableVertexAttribArray(Xn),sn.buffer=null),(sn.x!==Ys||sn.y!==qs||sn.z!==Ns||sn.w!==Ba)&&(tt.vertexAttrib4f(Xn,Ys,qs,Ns,Ba),sn.x=Ys,sn.y=qs,sn.z=Ns,sn.w=Ba)),Ka=gr.positionFractBuffer,Fi.buffer=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,en=!1,Pa=5126,to=0,yo=0,Jo=0,xt(Fi)?(qn=!0,es=Pe.createStream(34962,Fi),Pa=es.dtype):(es=Pe.getBuffer(Fi),es?Pa=es.dtype:"constant"in Fi?(Eo=2,typeof Fi.constant=="number"?(Ja=Fi.constant,lo=eo=sa=0):(Ja=Fi.constant.length>0?Fi.constant[0]:0,lo=Fi.constant.length>1?Fi.constant[1]:0,eo=Fi.constant.length>2?Fi.constant[2]:0,sa=Fi.constant.length>3?Fi.constant[3]:0)):(xt(Fi.buffer)?es=Pe.createStream(34962,Fi.buffer):es=Pe.getBuffer(Fi.buffer),Pa="type"in Fi?ti[Fi.type]:es.dtype,en=!!Fi.normalized,Na=Fi.size|0,to=Fi.offset|0,yo=Fi.stride|0,Jo=Fi.divisor|0)),Ao=l.location,Rn=Oe[Ao],Eo===1?(Rn.buffer||tt.enableVertexAttribArray(Ao),_a=Na||2,(Rn.type!==Pa||Rn.size!==_a||Rn.buffer!==es||Rn.normalized!==en||Rn.offset!==to||Rn.stride!==yo)&&(tt.bindBuffer(34962,es.buffer),tt.vertexAttribPointer(Ao,_a,Pa,en,yo,to),Rn.type=Pa,Rn.size=_a,Rn.buffer=es,Rn.normalized=en,Rn.offset=to,Rn.stride=yo),Rn.divisor!==Jo&&($t.vertexAttribDivisorANGLE(Ao,Jo),Rn.divisor=Jo)):(Rn.buffer&&(tt.disableVertexAttribArray(Ao),Rn.buffer=null),(Rn.x!==Ja||Rn.y!==lo||Rn.z!==eo||Rn.w!==sa)&&(tt.vertexAttrib4f(Ao,Ja,lo,eo,sa),Rn.x=Ja,Rn.y=lo,Rn.z=eo,Rn.w=sa)),Ws=gr.positionBuffer,oi.buffer=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,on=5126,Oo=0,ko=0,oo=0,xt(oi)?(Ca=!0,ts=Pe.createStream(34962,oi),on=ts.dtype):(ts=Pe.getBuffer(oi),ts?on=ts.dtype:"constant"in oi?(Es=2,typeof oi.constant=="number"?(Ts=oi.constant,Ho=Wa=To=0):(Ts=oi.constant.length>0?oi.constant[0]:0,Ho=oi.constant.length>1?oi.constant[1]:0,Wa=oi.constant.length>2?oi.constant[2]:0,To=oi.constant.length>3?oi.constant[3]:0)):(xt(oi.buffer)?ts=Pe.createStream(34962,oi.buffer):ts=Pe.getBuffer(oi.buffer),on="type"in oi?ti[oi.type]:ts.dtype,qa=!!oi.normalized,Wo=oi.size|0,Oo=oi.offset|0,ko=oi.stride|0,oo=oi.divisor|0)),za=f.location,ea=Oe[za],Es===1?(ea.buffer||tt.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==on||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Oo||ea.stride!==ko)&&(tt.bindBuffer(34962,ts.buffer),tt.vertexAttribPointer(za,rs,on,qa,ko,Oo),ea.type=on,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Oo,ea.stride=ko),ea.divisor!==oo&&($t.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(tt.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(tt.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=gr.positionFractBuffer,rn.buffer=$s,us=!1,Rs=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Ro=5126,Lo=0,xs=0,ks=0,xt(rn)?(us=!0,ho=Pe.createStream(34962,rn),Ro=ho.dtype):(ho=Pe.getBuffer(rn),ho?Ro=ho.dtype:"constant"in rn?(Rs=2,typeof rn.constant=="number"?(fl=rn.constant,as=Ma=Qs=0):(fl=rn.constant.length>0?rn.constant[0]:0,as=rn.constant.length>1?rn.constant[1]:0,Ma=rn.constant.length>2?rn.constant[2]:0,Qs=rn.constant.length>3?rn.constant[3]:0)):(xt(rn.buffer)?ho=Pe.createStream(34962,rn.buffer):ho=Pe.getBuffer(rn.buffer),Ro="type"in rn?ti[rn.type]:ho.dtype,Vo=!!rn.normalized,gs=rn.size|0,Lo=rn.offset|0,xs=rn.stride|0,ks=rn.divisor|0)),Ea=c.location,Jn=Oe[Ea],Rs===1?(Jn.buffer||tt.enableVertexAttribArray(Ea),Bo=gs||2,(Jn.type!==Ro||Jn.size!==Bo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(tt.bindBuffer(34962,ho.buffer),tt.vertexAttribPointer(Ea,Bo,Ro,Vo,xs,Lo),Jn.type=Ro,Jn.size=Bo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&($t.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(tt.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(tt.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=gr.colorBuffer,tn.buffer=rl,Gs=!1,bs=1,zs=0,$o=0,Aa=0,os=0,_l=null,Ss=0,po=!1,go=5126,ss=0,qo=0,zo=0,xt(tn)?(Gs=!0,_l=Pe.createStream(34962,tn),go=_l.dtype):(_l=Pe.getBuffer(tn),_l?go=_l.dtype:"constant"in tn?(bs=2,typeof tn.constant=="number"?(zs=tn.constant,$o=Aa=os=0):(zs=tn.constant.length>0?tn.constant[0]:0,$o=tn.constant.length>1?tn.constant[1]:0,Aa=tn.constant.length>2?tn.constant[2]:0,os=tn.constant.length>3?tn.constant[3]:0)):(xt(tn.buffer)?_l=Pe.createStream(34962,tn.buffer):_l=Pe.getBuffer(tn.buffer),go="type"in tn?ti[tn.type]:_l.dtype,po=!!tn.normalized,Ss=tn.size|0,ss=tn.offset|0,qo=tn.stride|0,zo=tn.divisor|0)),io=h.location,Io=Oe[io],bs===1?(Io.buffer||tt.enableVertexAttribArray(io),Ra=Ss||4,(Io.type!==go||Io.size!==Ra||Io.buffer!==_l||Io.normalized!==po||Io.offset!==ss||Io.stride!==qo)&&(tt.bindBuffer(34962,_l.buffer),tt.vertexAttribPointer(io,Ra,go,po,qo,ss),Io.type=go,Io.size=Ra,Io.buffer=_l,Io.normalized=po,Io.offset=ss,Io.stride=qo),Io.divisor!==zo&&($t.vertexAttribDivisorANGLE(io,zo),Io.divisor=zo)):(Io.buffer&&(tt.disableVertexAttribArray(io),Io.buffer=null),(Io.x!==zs||Io.y!==$o||Io.z!==Aa||Io.w!==os)&&(tt.vertexAttrib4f(io,zs,$o,Aa,os),Io.x=zs,Io.y=$o,Io.z=Aa,Io.w=os)),vs=gr.dashLength,(!fr||fs!==vs)&&(fs=vs,tt.uniform1f(b.location,vs)),cl=gr.dashTexture,cl&&cl._reglType==="framebuffer"&&(cl=cl.color[0]),el=cl._texture,tt.uniform1i(v.location,el.bind()),Hs=gr.depth,(!fr||Do!==Hs)&&(Do=Hs,tt.uniform1f(C.location,Hs)),tl=gr.opacity,(!fr||Fs!==tl)&&(Fs=tl,tt.uniform1f(M.location,tl)),hl=gr.scale,Fa=hl[0],jo=hl[1],(!fr||Ms!==Fa||Ds!==jo)&&(Ms=Fa,Ds=jo,tt.uniform2f(A.location,Fa,jo)),Is=gr.scaleFract,Os=Is[0],Ut=Is[1],(!fr||St!==Os||xr!==Ut)&&(St=Os,xr=Ut,tt.uniform2f(L.location,Os,Ut)),dr=gr.thickness,(!fr||Rr!==dr)&&(Rr=dr,tt.uniform1f(x.location,dr)),yi=gr.translate,Ti=yi[0],Ki=yi[1],(!fr||ki!==Ti||Fn!==Ki)&&(ki=Ti,Fn=Ki,tt.uniform2f(k.location,Ti,Ki)),Li=gr.translateFract,hi=Li[0],Si=Li[1],(!fr||Ci!==hi||Gn!==Si)&&(Ci=hi,Gn=Si,tt.uniform2f(S.location,hi,Si)),ta=P.call(this,Lt,gr,fr),ya=ta[0],pa=ta[1],zn=ta[2],Cs=ta[3],(!fr||ia!==ya||va!==pa||is!==zn||Ks!==Cs)&&(ia=ya,va=pa,is=zn,Ks=Cs,tt.uniform4f(m.location,ya,pa,zn,Cs)),dl=gr.count,dl>0?Oa?$t.drawElementsInstancedANGLE(5,4,Oa.type,0<<(Oa.type-5121>>1),dl):$t.drawArraysInstancedANGLE(5,0,4,dl):dl<0&&(Oa?tt.drawElements(5,4,Oa.type,0<<(Oa.type-5121>>1)):tt.drawArrays(5,0,4)),Lt.viewportWidth=vn,Lt.viewportHeight=da,jn&&Pe.destroyStream(ha),qn&&Pe.destroyStream(es),Ca&&Pe.destroyStream(ts),us&&Pe.destroyStream(ho),Gs&&Pe.destroyStream(_l),el.unbind()}yr.dirty=!0,ze.setVAO(null),Xr&&(r.cpuTime+=performance.now()-dt)}}}});var O9=we((hbr,l7e)=>{l7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe){"use strict";var xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii,xn,xi,Xr,dt,$t,fr,gr;return xe=t.gl,Oe=t.context,ze=t.strings,Re=t.next,ht=t.current,st=t.draw,gt=t.elements,xt=t.buffer,pr=t.shader,br=t.attributes,cr=t.vao,Er=t.uniforms,ii=t.framebuffer,jr=t.extensions,kr=t.timer,Vr=t.isBufferArgs,Ai=Re.blend_color,Bi=ht.blend_color,Di=Re.blend_equation,ln=ht.blend_equation,hn=Re.blend_func,qr=ht.blend_func,_i=Re.depth_range,zi=ht.depth_range,Rt=Re.colorMask,_t=ht.colorMask,qt=Re.polygonOffset_offset,Nt=ht.polygonOffset_offset,mr=Re.sample_coverage,Lr=ht.sample_coverage,Nr=Re.stencil_func,Fr=ht.stencil_func,Gr=Re.stencil_opFront,Hr=ht.stencil_opFront,mi=Re.stencil_opBack,Ei=ht.stencil_opBack,Vi=Re.scissor_box,ti=ht.scissor_box,Qi=Re.viewport,Yr=ht.viewport,oi={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Fi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},rn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},tn={add:32774,subtract:32778,"reverse subtract":32779},Ri={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ii={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},xn={cw:2304,ccw:2305},xi={},xi.stride=4,xi.offset=0,xi.divisor=1,Xr={},Xr.stride=4,Xr.offset=4,Xr.divisor=1,dt={},dt.stride=8,dt.offset=0,dt.divisor=1,$t={},$t.stride=8,$t.offset=8,$t.divisor=1,fr={},fr.stride=8,fr.offset=16,fr.divisor=1,gr={},gr.stride=8,gr.offset=24,gr.divisor=1,{draw:function(Zr){var wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms;if(wi=jr.angle_instanced_arrays,$i=ii.next,$i!==ii.cur&&($i?xe.bindFramebuffer(36160,$i.framebuffer):xe.bindFramebuffer(36160,null),ii.cur=$i),ht.dirty){var jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl;jo=Re.dither,jo!==ht.dither&&(jo?xe.enable(3024):xe.disable(3024),ht.dither=jo),Ds=Re.depth_func,Ds!==ht.depth_func&&(xe.depthFunc(Ds),ht.depth_func=Ds),Is=_i[0],Os=_i[1],(Is!==zi[0]||Os!==zi[1])&&(xe.depthRange(Is,Os),zi[0]=Is,zi[1]=Os),St=Re.depth_mask,St!==ht.depth_mask&&(xe.depthMask(St),ht.depth_mask=St),Ut=Rt[0],xr=Rt[1],dr=Rt[2],Rr=Rt[3],(Ut!==_t[0]||xr!==_t[1]||dr!==_t[2]||Rr!==_t[3])&&(xe.colorMask(Ut,xr,dr,Rr),_t[0]=Ut,_t[1]=xr,_t[2]=dr,_t[3]=Rr),yi=Re.frontFace,yi!==ht.frontFace&&(xe.frontFace(yi),ht.frontFace=yi),Ti=Re.lineWidth,Ti!==ht.lineWidth&&(xe.lineWidth(Ti),ht.lineWidth=Ti),ki=Re.polygonOffset_enable,ki!==ht.polygonOffset_enable&&(ki?xe.enable(32823):xe.disable(32823),ht.polygonOffset_enable=ki),Ki=qt[0],Fn=qt[1],(Ki!==Nt[0]||Fn!==Nt[1])&&(xe.polygonOffset(Ki,Fn),Nt[0]=Ki,Nt[1]=Fn),Li=Re.sample_alpha,Li!==ht.sample_alpha&&(Li?xe.enable(32926):xe.disable(32926),ht.sample_alpha=Li),hi=Re.sample_enable,hi!==ht.sample_enable&&(hi?xe.enable(32928):xe.disable(32928),ht.sample_enable=hi),Ci=mr[0],Si=mr[1],(Ci!==Lr[0]||Si!==Lr[1])&&(xe.sampleCoverage(Ci,Si),Lr[0]=Ci,Lr[1]=Si),Gn=Re.stencil_mask,Gn!==ht.stencil_mask&&(xe.stencilMask(Gn),ht.stencil_mask=Gn),ta=Nr[0],ya=Nr[1],ia=Nr[2],(ta!==Fr[0]||ya!==Fr[1]||ia!==Fr[2])&&(xe.stencilFunc(ta,ya,ia),Fr[0]=ta,Fr[1]=ya,Fr[2]=ia),pa=Gr[0],va=Gr[1],zn=Gr[2],is=Gr[3],(pa!==Hr[0]||va!==Hr[1]||zn!==Hr[2]||is!==Hr[3])&&(xe.stencilOpSeparate(pa,va,zn,is),Hr[0]=pa,Hr[1]=va,Hr[2]=zn,Hr[3]=is),Cs=mi[0],Ks=mi[1],dl=mi[2],xl=mi[3],(Cs!==Ei[0]||Ks!==Ei[1]||dl!==Ei[2]||xl!==Ei[3])&&(xe.stencilOpSeparate(Cs,Ks,dl,xl),Ei[0]=Cs,Ei[1]=Ks,Ei[2]=dl,Ei[3]=xl)}ni=Zr.viewport,Xi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Xi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,xe.viewport(Xi,aa,Mn,Un),Yr[0]=Xi,Yr[1]=aa,Yr[2]=Mn,Yr[3]=Un,xe.blendColor(0,0,0,0),Bi[0]=0,Bi[1]=0,Bi[2]=0,Bi[3]=0,n?xe.enable(3042):xe.disable(3042),ht.blend_enable=n,xe.blendEquationSeparate(32774,32774),ln[0]=32774,ln[1]=32774,xe.blendFuncSeparate(770,771,773,1),qr[0]=770,qr[1]=771,qr[2]=773,qr[3]=1,i?xe.enable(2884):xe.disable(2884),ht.cull_enable=i,xe.cullFace(a),ht.cull_face=a,oa=o.call(this,Oe,Zr,0),oa?xe.enable(2929):xe.disable(2929),ht.depth_enable=oa,ka=Zr.viewport,so=ka.x|0,Kr=ka.y|0,Ia="width"in ka?ka.width|0:Oe.framebufferWidth-so,Yo="height"in ka?ka.height|0:Oe.framebufferHeight-Kr,xe.scissor(so,Kr,Ia,Yo),ti[0]=so,ti[1]=Kr,ti[2]=Ia,ti[3]=Yo,s?xe.enable(3089):xe.disable(3089),ht.scissor_enable=s,u?xe.enable(2960):xe.disable(2960),ht.stencil_enable=u,fa=ht.profile,fa&&(kn=performance.now(),r.count++),xe.useProgram(l.program),Ta=jr.angle_instanced_arrays,cr.setVAO(null),ys=Zr.colorBuffer,xi.buffer=ys,uo=!1,ls=1,$a=0,fo=0,mn=0,ra=0,wa=null,ws=0,Co=!1,Po=5126,Wi=0,gn=0,Ps=0,Vr(xi)?(uo=!0,wa=xt.createStream(34962,xi),Po=wa.dtype):(wa=xt.getBuffer(xi),wa?Po=wa.dtype:"constant"in xi?(ls=2,typeof xi.constant=="number"?($a=xi.constant,fo=mn=ra=0):($a=xi.constant.length>0?xi.constant[0]:0,fo=xi.constant.length>1?xi.constant[1]:0,mn=xi.constant.length>2?xi.constant[2]:0,ra=xi.constant.length>3?xi.constant[3]:0)):(Vr(xi.buffer)?wa=xt.createStream(34962,xi.buffer):wa=xt.getBuffer(xi.buffer),Po="type"in xi?Ii[xi.type]:wa.dtype,Co=!!xi.normalized,ws=xi.size|0,Wi=xi.offset|0,gn=xi.stride|0,Ps=xi.divisor|0)),Ha=f.location,Sn=br[Ha],ls===1?(Sn.buffer||xe.enableVertexAttribArray(Ha),ao=ws||4,(Sn.type!==Po||Sn.size!==ao||Sn.buffer!==wa||Sn.normalized!==Co||Sn.offset!==Wi||Sn.stride!==gn)&&(xe.bindBuffer(34962,wa.buffer),xe.vertexAttribPointer(Ha,ao,Po,Co,gn,Wi),Sn.type=Po,Sn.size=ao,Sn.buffer=wa,Sn.normalized=Co,Sn.offset=Wi,Sn.stride=gn),Sn.divisor!==Ps&&(Ta.vertexAttribDivisorANGLE(Ha,Ps),Sn.divisor=Ps)):(Sn.buffer&&(xe.disableVertexAttribArray(Ha),Sn.buffer=null),(Sn.x!==$a||Sn.y!==fo||Sn.z!==mn||Sn.w!==ra)&&(xe.vertexAttrib4f(Ha,$a,fo,mn,ra),Sn.x=$a,Sn.y=fo,Sn.z=mn,Sn.w=ra)),Oa=Zr.positionBuffer,$t.buffer=Oa,Ko=!1,Qo=1,Hi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,Vr($t)?(Ko=!0,da=xt.createStream(34962,$t),As=da.dtype):(da=xt.getBuffer($t),da?As=da.dtype:"constant"in $t?(Qo=2,typeof $t.constant=="number"?(Hi=$t.constant,Sa=Qa=vn=0):(Hi=$t.constant.length>0?$t.constant[0]:0,Sa=$t.constant.length>1?$t.constant[1]:0,Qa=$t.constant.length>2?$t.constant[2]:0,vn=$t.constant.length>3?$t.constant[3]:0)):(Vr($t.buffer)?da=xt.createStream(34962,$t.buffer):da=xt.getBuffer($t.buffer),As="type"in $t?Ii[$t.type]:da.dtype,vo=!!$t.normalized,la=$t.size|0,ps=$t.offset|0,co=$t.stride|0,mo=$t.divisor|0)),No=c.location,jn=br[No],Qo===1?(jn.buffer||xe.enableVertexAttribArray(No),Go=la||2,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(xe.bindBuffer(34962,da.buffer),xe.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(Ta.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(xe.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Hi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(xe.vertexAttrib4f(No,Hi,Sa,Qa,vn),jn.x=Hi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=Zr.colorBuffer,Xr.buffer=Ys,qs=!1,Ns=1,Ba=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Da=5126,Xn=0,sn=0,$n=0,Vr(Xr)?(qs=!0,_n=xt.createStream(34962,Xr),Da=_n.dtype):(_n=xt.getBuffer(Xr),_n?Da=_n.dtype:"constant"in Xr?(Ns=2,typeof Xr.constant=="number"?(Ba=Xr.constant,ha=Vs=Ya=0):(Ba=Xr.constant.length>0?Xr.constant[0]:0,ha=Xr.constant.length>1?Xr.constant[1]:0,Vs=Xr.constant.length>2?Xr.constant[2]:0,Ya=Xr.constant.length>3?Xr.constant[3]:0)):(Vr(Xr.buffer)?_n=xt.createStream(34962,Xr.buffer):_n=xt.getBuffer(Xr.buffer),Da="type"in Xr?Ii[Xr.type]:_n.dtype,wo=!!Xr.normalized,Vn=Xr.size|0,Xn=Xr.offset|0,sn=Xr.stride|0,$n=Xr.divisor|0)),Ka=h.location,qn=br[Ka],Ns===1?(qn.buffer||xe.enableVertexAttribArray(Ka),Eo=Vn||4,(qn.type!==Da||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==sn)&&(xe.bindBuffer(34962,_n.buffer),xe.vertexAttribPointer(Ka,Eo,Da,wo,sn,Xn),qn.type=Da,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=sn),qn.divisor!==$n&&(Ta.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(xe.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Ba||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(xe.vertexAttrib4f(Ka,Ba,ha,Vs,Ya),qn.x=Ba,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=Zr.positionBuffer,fr.buffer=Ja,lo=!1,eo=1,sa=0,es=0,Na=0,en=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Rn=0,_a=0,Vr(fr)?(lo=!0,Pa=xt.createStream(34962,fr),Jo=Pa.dtype):(Pa=xt.getBuffer(fr),Pa?Jo=Pa.dtype:"constant"in fr?(eo=2,typeof fr.constant=="number"?(sa=fr.constant,es=Na=en=0):(sa=fr.constant.length>0?fr.constant[0]:0,es=fr.constant.length>1?fr.constant[1]:0,Na=fr.constant.length>2?fr.constant[2]:0,en=fr.constant.length>3?fr.constant[3]:0)):(Vr(fr.buffer)?Pa=xt.createStream(34962,fr.buffer):Pa=xt.getBuffer(fr.buffer),Jo="type"in fr?Ii[fr.type]:Pa.dtype,yo=!!fr.normalized,to=fr.size|0,Ao=fr.offset|0,Rn=fr.stride|0,_a=fr.divisor|0)),Ws=d.location,Ca=br[Ws],eo===1?(Ca.buffer||xe.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Rn)&&(xe.bindBuffer(34962,Pa.buffer),xe.vertexAttribPointer(Ws,Es,Jo,yo,Rn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Rn),Ca.divisor!==_a&&(Ta.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(xe.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==en)&&(xe.vertexAttrib4f(Ws,sa,es,Na,en),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=en)),Ts=y.location,Ho=br[Ts],Ho.buffer||xe.enableVertexAttribArray(Ts),(Ho.type!==5126||Ho.size!==1||Ho.buffer!==p||Ho.normalized!==!1||Ho.offset!==0||Ho.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Ts,1,5126,!1,8,0),Ho.type=5126,Ho.size=1,Ho.buffer=p,Ho.normalized=!1,Ho.offset=0,Ho.stride=8),Ho.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Ts,0),Ho.divisor=0),Wa=b.location,To=br[Wa],To.buffer||xe.enableVertexAttribArray(Wa),(To.type!==5126||To.size!==1||To.buffer!==p||To.normalized!==!1||To.offset!==4||To.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wa,1,5126,!1,8,4),To.type=5126,To.size=1,To.buffer=p,To.normalized=!1,To.offset=4,To.stride=8),To.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Wa,0),To.divisor=0),ts=Zr.positionBuffer,gr.buffer=ts,Wo=!1,qa=1,on=0,Oo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Rs=0,fl=0,Vr(gr)?(Wo=!0,za=xt.createStream(34962,gr),$s=za.dtype):(za=xt.getBuffer(gr),za?$s=za.dtype:"constant"in gr?(qa=2,typeof gr.constant=="number"?(on=gr.constant,Oo=ko=oo=0):(on=gr.constant.length>0?gr.constant[0]:0,Oo=gr.constant.length>1?gr.constant[1]:0,ko=gr.constant.length>2?gr.constant[2]:0,oo=gr.constant.length>3?gr.constant[3]:0)):(Vr(gr.buffer)?za=xt.createStream(34962,gr.buffer):za=xt.getBuffer(gr.buffer),$s="type"in gr?Ii[gr.type]:za.dtype,rs=!!gr.normalized,ea=gr.size|0,us=gr.offset|0,Rs=gr.stride|0,fl=gr.divisor|0)),as=v.location,Ma=br[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||2,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Rs)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Rs,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Rs),Ma.divisor!==fl&&(Ta.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==on||Ma.y!==Oo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,on,Oo,ko,oo),Ma.x=on,Ma.y=Oo,Ma.z=ko,Ma.w=oo)),ho=Zr.positionBuffer,dt.buffer=ho,gs=!1,Vo=1,Ro=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Bo=!1,rl=5126,Gs=0,bs=0,zs=0,Vr(dt)?(gs=!0,Ea=xt.createStream(34962,dt),rl=Ea.dtype):(Ea=xt.getBuffer(dt),Ea?rl=Ea.dtype:"constant"in dt?(Vo=2,typeof dt.constant=="number"?(Ro=dt.constant,Lo=xs=ks=0):(Ro=dt.constant.length>0?dt.constant[0]:0,Lo=dt.constant.length>1?dt.constant[1]:0,xs=dt.constant.length>2?dt.constant[2]:0,ks=dt.constant.length>3?dt.constant[3]:0)):(Vr(dt.buffer)?Ea=xt.createStream(34962,dt.buffer):Ea=xt.getBuffer(dt.buffer),rl="type"in dt?Ii[dt.type]:Ea.dtype,Bo=!!dt.normalized,Jn=dt.size|0,Gs=dt.offset|0,bs=dt.stride|0,zs=dt.divisor|0)),$o=C.location,Aa=br[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Bo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Bo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Bo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Ta.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Ro||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Ro,Lo,xs,ks),Aa.x=Ro,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Zr.dashLength,xe.uniform1f(M.location,_l),Ss=Zr.dashTexture,Ss&&Ss._reglType==="framebuffer"&&(Ss=Ss.color[0]),po=Ss._texture,xe.uniform1i(A.location,po.bind()),go=Zr.depth,xe.uniform1f(L.location,go),ss=Zr.miterLimit,xe.uniform1f(x.location,ss),qo=S.call(this,Oe,Zr,0),xe.uniform1f(k.location,qo),zo=Zr.opacity,xe.uniform1f(m.location,zo),io=Zr.scale,Io=io[0],Ra=io[1],xe.uniform2f(P.location,Io,Ra),vs=Zr.thickness,xe.uniform1f(E.location,vs),fs=Zr.translate,cl=fs[0],el=fs[1],xe.uniform2f(O.location,cl,el),Hs=U.call(this,Oe,Zr,0),Do=Hs[0],tl=Hs[1],Fs=Hs[2],hl=Hs[3],xe.uniform4f(F.location,Do,tl,Fs,hl),Fa=st.elements,Fa?xe.bindBuffer(34963,Fa.buffer.buffer):cr.currentVAO&&(Fa=gt.getElements(cr.currentVAO.elements),Fa&&xe.bindBuffer(34963,Fa.buffer.buffer)),Ms=Zr.count,Ms>0?Fa?Ta.drawElementsInstancedANGLE(5,4,Fa.type,0<<(Fa.type-5121>>1),Ms):Ta.drawArraysInstancedANGLE(5,0,4,Ms):Ms<0&&(Fa?xe.drawElements(5,4,Fa.type,0<<(Fa.type-5121>>1)):xe.drawArrays(5,0,4)),ht.dirty=!0,cr.setVAO(null),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,fa&&(r.cpuTime+=performance.now()-kn),uo&&xt.destroyStream(wa),Ko&&xt.destroyStream(da),qs&&xt.destroyStream(_n),lo&&xt.destroyStream(Pa),Wo&&xt.destroyStream(za),gs&&xt.destroyStream(Ea),po.unbind()},scope:function(Zr,wi,$i){var ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Dl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr,Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,nu,ru,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,le,ke,Ye,nt;ni=Zr.viewport,Xi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Xi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,oa=Qi[0],Qi[0]=Xi,ka=Qi[1],Qi[1]=aa,so=Qi[2],Qi[2]=Mn,Kr=Qi[3],Qi[3]=Un,Ia=Ai[0],Ai[0]=G,Yo=Ai[1],Ai[1]=j,fa=Ai[2],Ai[2]=W,kn=Ai[3],Ai[3]=N,Ta=Re.blend_enable,Re.blend_enable=H,ys=Di[0],Di[0]=re,uo=Di[1],Di[1]=ae,ls=hn[0],hn[0]=me,$a=hn[1],hn[1]=Le,fo=hn[2],hn[2]=Ce,mn=hn[3],hn[3]=de,ra=Re.cull_enable,Re.cull_enable=te,wa=Re.cull_face,Re.cull_face=Se,ws=o.call(this,Oe,Zr,$i),Co=Re.depth_enable,Re.depth_enable=ws,Po=Zr.viewport,Wi=Po.x|0,gn=Po.y|0,Ps="width"in Po?Po.width|0:Oe.framebufferWidth-Wi,Ha="height"in Po?Po.height|0:Oe.framebufferHeight-gn,Sn=Vi[0],Vi[0]=Wi,ao=Vi[1],Vi[1]=gn,Oa=Vi[2],Vi[2]=Ps,Ko=Vi[3],Vi[3]=Ha,Qo=Re.scissor_enable,Re.scissor_enable=Te,Hi=Re.stencil_enable,Re.stencil_enable=be,Sa=ht.profile,Sa&&(Qa=performance.now(),r.count++),vn=st.offset,st.offset=He,da=st.count,st.count=Ie,la=Zr.count,vo=st.instances,st.instances=la,As=st.primitive,st.primitive=ge,ps=S.call(this,Oe,Zr,$i),co=Er[Be],Er[Be]=ps,mo=Zr.miterLimit,No=Er[ce],Er[ce]=mo,jn=Zr.scale,Go=Er[je],Er[je]=jn,Ys=Zr.scaleFract,qs=Er[rt],Er[rt]=Ys,Ns=Zr.translateFract,Ba=Er[bt],Er[bt]=Ns,ha=Zr.translate,Vs=Er[Ot],Er[Ot]=ha,Ya=Zr.thickness,_n=Er[it],Er[it]=Ya,Vn=Zr.dashTexture,wo=Er[Ke],Er[Ke]=Vn,Da=Zr.opacity,Xn=Er[zt],Er[zt]=Da,sn=Oe.pixelRatio,$n=Er[Mt],Er[Mt]=sn,Ka=Zr.id,qn=Er[kt],Er[kt]=Ka,Eo=Zr.dashLength,Ja=Er[$e],Er[$e]=Eo,lo=U.call(this,Oe,Zr,$i),eo=Er[De],Er[De]=lo,sa=Zr.depth,es=Er[Me],Er[Me]=sa,Na=oe.state,oe.state=1,en=oe.x,oe.x=0,Pa=oe.y,oe.y=0,to=oe.z,oe.z=0,yo=oe.w,oe.w=0,Jo=oe.buffer,oe.buffer=p,Ao=oe.size,oe.size=0,Rn=oe.normalized,oe.normalized=!1,_a=oe.type,oe.type=5126,Ws=oe.offset,oe.offset=0,Ca=oe.stride,oe.stride=8,Es=oe.divisor,oe.divisor=0,Ts=Ne.state,Ne.state=1,Ho=Ne.x,Ne.x=0,Wa=Ne.y,Ne.y=0,To=Ne.z,Ne.z=0,ts=Ne.w,Ne.w=0,Wo=Ne.buffer,Ne.buffer=p,qa=Ne.size,Ne.size=0,on=Ne.normalized,Ne.normalized=!1,Oo=Ne.type,Ne.type=5126,ko=Ne.offset,Ne.offset=4,oo=Ne.stride,Ne.stride=8,za=Ne.divisor,Ne.divisor=0,ea=Zr.colorBuffer,xi.buffer=ea,rs=!1,$s=1,us=0,Rs=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Ro=0,Lo=0,Vr(xi)?(rs=!0,Ma=xt.createStream(34962,xi),gs=Ma.dtype):(Ma=xt.getBuffer(xi),Ma?gs=Ma.dtype:"constant"in xi?($s=2,typeof xi.constant=="number"?(us=xi.constant,Rs=fl=as=0):(us=xi.constant.length>0?xi.constant[0]:0,Rs=xi.constant.length>1?xi.constant[1]:0,fl=xi.constant.length>2?xi.constant[2]:0,as=xi.constant.length>3?xi.constant[3]:0)):(Vr(xi.buffer)?Ma=xt.createStream(34962,xi.buffer):Ma=xt.getBuffer(xi.buffer),gs="type"in xi?Ii[xi.type]:Ma.dtype,ho=!!xi.normalized,Qs=xi.size|0,Vo=xi.offset|0,Ro=xi.stride|0,Lo=xi.divisor|0)),xs=vt.state,vt.state=$s,ks=vt.x,vt.x=us,Ea=vt.y,vt.y=Rs,Jn=vt.z,vt.z=fl,Bo=vt.w,vt.w=as,rl=vt.buffer,vt.buffer=Ma,Gs=vt.size,vt.size=Qs,bs=vt.normalized,vt.normalized=ho,zs=vt.type,vt.type=gs,$o=vt.offset,vt.offset=Vo,Aa=vt.stride,vt.stride=Ro,os=vt.divisor,vt.divisor=Lo,_l=Zr.colorBuffer,Xr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Ra=!1,vs=5126,fs=0,cl=0,el=0,Vr(Xr)?(Ss=!0,io=xt.createStream(34962,Xr),vs=io.dtype):(io=xt.getBuffer(Xr),io?vs=io.dtype:"constant"in Xr?(po=2,typeof Xr.constant=="number"?(go=Xr.constant,ss=qo=zo=0):(go=Xr.constant.length>0?Xr.constant[0]:0,ss=Xr.constant.length>1?Xr.constant[1]:0,qo=Xr.constant.length>2?Xr.constant[2]:0,zo=Xr.constant.length>3?Xr.constant[3]:0)):(Vr(Xr.buffer)?io=xt.createStream(34962,Xr.buffer):io=xt.getBuffer(Xr.buffer),vs="type"in Xr?Ii[Xr.type]:io.dtype,Ra=!!Xr.normalized,Io=Xr.size|0,fs=Xr.offset|0,cl=Xr.stride|0,el=Xr.divisor|0)),Hs=lt.state,lt.state=po,Do=lt.x,lt.x=go,tl=lt.y,lt.y=ss,Fs=lt.z,lt.z=qo,hl=lt.w,lt.w=zo,Fa=lt.buffer,lt.buffer=io,Ms=lt.size,lt.size=Io,jo=lt.normalized,lt.normalized=Ra,Ds=lt.type,lt.type=vs,Is=lt.offset,lt.offset=fs,Os=lt.stride,lt.stride=cl,St=lt.divisor,lt.divisor=el,Ut=Zr.positionBuffer,dt.buffer=Ut,xr=!1,dr=1,Rr=0,yi=0,Ti=0,ki=0,Ki=null,Fn=0,Li=!1,hi=5126,Ci=0,Si=0,Gn=0,Vr(dt)?(xr=!0,Ki=xt.createStream(34962,dt),hi=Ki.dtype):(Ki=xt.getBuffer(dt),Ki?hi=Ki.dtype:"constant"in dt?(dr=2,typeof dt.constant=="number"?(Rr=dt.constant,yi=Ti=ki=0):(Rr=dt.constant.length>0?dt.constant[0]:0,yi=dt.constant.length>1?dt.constant[1]:0,Ti=dt.constant.length>2?dt.constant[2]:0,ki=dt.constant.length>3?dt.constant[3]:0)):(Vr(dt.buffer)?Ki=xt.createStream(34962,dt.buffer):Ki=xt.getBuffer(dt.buffer),hi="type"in dt?Ii[dt.type]:Ki.dtype,Li=!!dt.normalized,Fn=dt.size|0,Ci=dt.offset|0,Si=dt.stride|0,Gn=dt.divisor|0)),ta=We.state,We.state=dr,ya=We.x,We.x=Rr,ia=We.y,We.y=yi,pa=We.z,We.z=Ti,va=We.w,We.w=ki,zn=We.buffer,We.buffer=Ki,is=We.size,We.size=Fn,Cs=We.normalized,We.normalized=Li,Ks=We.type,We.type=hi,dl=We.offset,We.offset=Ci,xl=We.stride,We.stride=Si,Bl=We.divisor,We.divisor=Gn,bl=Zr.positionBuffer,$t.buffer=bl,eu=!1,Zl=1,Vl=0,ja=0,ns=0,Js=0,cs=null,sl=0,ll=!1,nl=5126,zl=0,Ml=0,Dl=0,Vr($t)?(eu=!0,cs=xt.createStream(34962,$t),nl=cs.dtype):(cs=xt.getBuffer($t),cs?nl=cs.dtype:"constant"in $t?(Zl=2,typeof $t.constant=="number"?(Vl=$t.constant,ja=ns=Js=0):(Vl=$t.constant.length>0?$t.constant[0]:0,ja=$t.constant.length>1?$t.constant[1]:0,ns=$t.constant.length>2?$t.constant[2]:0,Js=$t.constant.length>3?$t.constant[3]:0)):(Vr($t.buffer)?cs=xt.createStream(34962,$t.buffer):cs=xt.getBuffer($t.buffer),nl="type"in $t?Ii[$t.type]:cs.dtype,ll=!!$t.normalized,sl=$t.size|0,zl=$t.offset|0,Ml=$t.stride|0,Dl=$t.divisor|0)),Al=Ve.state,Ve.state=Zl,Ll=Ve.x,Ve.x=Vl,ms=Ve.y,Ve.y=ja,Bs=Ve.z,Ve.z=ns,Xl=Ve.w,Ve.w=Js,Gl=Ve.buffer,Ve.buffer=cs,Nl=Ve.size,Ve.size=sl,ue=Ve.normalized,Ve.normalized=ll,w=Ve.type,Ve.type=nl,q=Ve.offset,Ve.offset=zl,Q=Ve.stride,Ve.stride=Ml,ee=Ve.divisor,Ve.divisor=Dl,fe=Zr.positionBuffer,fr.buffer=fe,Ue=!1,at=1,yt=0,Dt=0,Qt=0,rr=0,Mr=null,Ur=0,he=!1,Ae=5126,qe=0,Ge=0,ft=0,Vr(fr)?(Ue=!0,Mr=xt.createStream(34962,fr),Ae=Mr.dtype):(Mr=xt.getBuffer(fr),Mr?Ae=Mr.dtype:"constant"in fr?(at=2,typeof fr.constant=="number"?(yt=fr.constant,Dt=Qt=rr=0):(yt=fr.constant.length>0?fr.constant[0]:0,Dt=fr.constant.length>1?fr.constant[1]:0,Qt=fr.constant.length>2?fr.constant[2]:0,rr=fr.constant.length>3?fr.constant[3]:0)):(Vr(fr.buffer)?Mr=xt.createStream(34962,fr.buffer):Mr=xt.getBuffer(fr.buffer),Ae="type"in fr?Ii[fr.type]:Mr.dtype,he=!!fr.normalized,Ur=fr.size|0,qe=fr.offset|0,Ge=fr.stride|0,ft=fr.divisor|0)),ot=et.state,et.state=at,mt=et.x,et.x=yt,Gt=et.y,et.y=Dt,er=et.z,et.z=Qt,sr=et.w,et.w=rr,wr=et.buffer,et.buffer=Mr,Ir=et.size,et.size=Ur,ri=et.normalized,et.normalized=he,si=et.type,et.type=Ae,Mi=et.offset,et.offset=qe,cn=et.stride,et.stride=Ge,Zn=et.divisor,et.divisor=ft,Yn=Zr.positionBuffer,gr.buffer=Yn,Ua=!1,Fo=1,vl=0,Us=0,ml=0,au=0,Sl=null,Yl=0,ql=!1,ou=5126,Pu=0,nu=0,ru=0,Vr(gr)?(Ua=!0,Sl=xt.createStream(34962,gr),ou=Sl.dtype):(Sl=xt.getBuffer(gr),Sl?ou=Sl.dtype:"constant"in gr?(Fo=2,typeof gr.constant=="number"?(vl=gr.constant,Us=ml=au=0):(vl=gr.constant.length>0?gr.constant[0]:0,Us=gr.constant.length>1?gr.constant[1]:0,ml=gr.constant.length>2?gr.constant[2]:0,au=gr.constant.length>3?gr.constant[3]:0)):(Vr(gr.buffer)?Sl=xt.createStream(34962,gr.buffer):Sl=xt.getBuffer(gr.buffer),ou="type"in gr?Ii[gr.type]:Sl.dtype,ql=!!gr.normalized,Yl=gr.size|0,Pu=gr.offset|0,nu=gr.stride|0,ru=gr.divisor|0)),Hu=tt.state,tt.state=Fo,$u=tt.x,tt.x=vl,Ku=tt.y,tt.y=Us,Wu=tt.z,tt.z=ml,ju=tt.w,tt.w=au,sf=tt.buffer,tt.buffer=Sl,_f=tt.size,tt.size=Yl,Qu=tt.normalized,tt.normalized=ql,ef=tt.type,tt.type=ou,Z=tt.offset,tt.offset=Pu,le=tt.stride,tt.stride=nu,ke=tt.divisor,tt.divisor=ru,Ye=pr.vert,pr.vert=Lt,nt=pr.frag,pr.frag=jt,ht.dirty=!0,wi(Oe,Zr,$i),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,Qi[0]=oa,Qi[1]=ka,Qi[2]=so,Qi[3]=Kr,Ai[0]=Ia,Ai[1]=Yo,Ai[2]=fa,Ai[3]=kn,Re.blend_enable=Ta,Di[0]=ys,Di[1]=uo,hn[0]=ls,hn[1]=$a,hn[2]=fo,hn[3]=mn,Re.cull_enable=ra,Re.cull_face=wa,Re.depth_enable=Co,Vi[0]=Sn,Vi[1]=ao,Vi[2]=Oa,Vi[3]=Ko,Re.scissor_enable=Qo,Re.stencil_enable=Hi,Sa&&(r.cpuTime+=performance.now()-Qa),st.offset=vn,st.count=da,st.instances=vo,st.primitive=As,Er[Be]=co,Er[ce]=No,Er[je]=Go,Er[rt]=qs,Er[bt]=Ba,Er[Ot]=Vs,Er[it]=_n,Er[Ke]=wo,Er[zt]=Xn,Er[Mt]=$n,Er[kt]=qn,Er[$e]=Ja,Er[De]=eo,Er[Me]=es,oe.state=Na,oe.x=en,oe.y=Pa,oe.z=to,oe.w=yo,oe.buffer=Jo,oe.size=Ao,oe.normalized=Rn,oe.type=_a,oe.offset=Ws,oe.stride=Ca,oe.divisor=Es,Ne.state=Ts,Ne.x=Ho,Ne.y=Wa,Ne.z=To,Ne.w=ts,Ne.buffer=Wo,Ne.size=qa,Ne.normalized=on,Ne.type=Oo,Ne.offset=ko,Ne.stride=oo,Ne.divisor=za,rs&&xt.destroyStream(Ma),vt.state=xs,vt.x=ks,vt.y=Ea,vt.z=Jn,vt.w=Bo,vt.buffer=rl,vt.size=Gs,vt.normalized=bs,vt.type=zs,vt.offset=$o,vt.stride=Aa,vt.divisor=os,Ss&&xt.destroyStream(io),lt.state=Hs,lt.x=Do,lt.y=tl,lt.z=Fs,lt.w=hl,lt.buffer=Fa,lt.size=Ms,lt.normalized=jo,lt.type=Ds,lt.offset=Is,lt.stride=Os,lt.divisor=St,xr&&xt.destroyStream(Ki),We.state=ta,We.x=ya,We.y=ia,We.z=pa,We.w=va,We.buffer=zn,We.size=is,We.normalized=Cs,We.type=Ks,We.offset=dl,We.stride=xl,We.divisor=Bl,eu&&xt.destroyStream(cs),Ve.state=Al,Ve.x=Ll,Ve.y=ms,Ve.z=Bs,Ve.w=Xl,Ve.buffer=Gl,Ve.size=Nl,Ve.normalized=ue,Ve.type=w,Ve.offset=q,Ve.stride=Q,Ve.divisor=ee,Ue&&xt.destroyStream(Mr),et.state=ot,et.x=mt,et.y=Gt,et.z=er,et.w=sr,et.buffer=wr,et.size=Ir,et.normalized=ri,et.type=si,et.offset=Mi,et.stride=cn,et.divisor=Zn,Ua&&xt.destroyStream(Sl),tt.state=Hu,tt.x=$u,tt.y=Ku,tt.z=Wu,tt.w=ju,tt.buffer=sf,tt.size=_f,tt.normalized=Qu,tt.type=ef,tt.offset=Z,tt.stride=le,tt.divisor=ke,pr.vert=Ye,pr.frag=nt,ht.dirty=!0},batch:function(Zr,wi){var $i,ni,Xi,aa,Mn,Un,Ga;if($i=jr.angle_instanced_arrays,ni=ii.next,ni!==ii.cur&&(ni?xe.bindFramebuffer(36160,ni.framebuffer):xe.bindFramebuffer(36160,null),ii.cur=ni),ht.dirty){var ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo;ma=Re.dither,ma!==ht.dither&&(ma?xe.enable(3024):xe.disable(3024),ht.dither=ma),oa=Re.depth_func,oa!==ht.depth_func&&(xe.depthFunc(oa),ht.depth_func=oa),ka=_i[0],so=_i[1],(ka!==zi[0]||so!==zi[1])&&(xe.depthRange(ka,so),zi[0]=ka,zi[1]=so),Kr=Re.depth_mask,Kr!==ht.depth_mask&&(xe.depthMask(Kr),ht.depth_mask=Kr),Ia=Rt[0],Yo=Rt[1],fa=Rt[2],kn=Rt[3],(Ia!==_t[0]||Yo!==_t[1]||fa!==_t[2]||kn!==_t[3])&&(xe.colorMask(Ia,Yo,fa,kn),_t[0]=Ia,_t[1]=Yo,_t[2]=fa,_t[3]=kn),Ta=Re.frontFace,Ta!==ht.frontFace&&(xe.frontFace(Ta),ht.frontFace=Ta),ys=Re.lineWidth,ys!==ht.lineWidth&&(xe.lineWidth(ys),ht.lineWidth=ys),uo=Re.polygonOffset_enable,uo!==ht.polygonOffset_enable&&(uo?xe.enable(32823):xe.disable(32823),ht.polygonOffset_enable=uo),ls=qt[0],$a=qt[1],(ls!==Nt[0]||$a!==Nt[1])&&(xe.polygonOffset(ls,$a),Nt[0]=ls,Nt[1]=$a),fo=Re.sample_alpha,fo!==ht.sample_alpha&&(fo?xe.enable(32926):xe.disable(32926),ht.sample_alpha=fo),mn=Re.sample_enable,mn!==ht.sample_enable&&(mn?xe.enable(32928):xe.disable(32928),ht.sample_enable=mn),ra=mr[0],wa=mr[1],(ra!==Lr[0]||wa!==Lr[1])&&(xe.sampleCoverage(ra,wa),Lr[0]=ra,Lr[1]=wa),ws=Re.stencil_mask,ws!==ht.stencil_mask&&(xe.stencilMask(ws),ht.stencil_mask=ws),Co=Nr[0],Po=Nr[1],Wi=Nr[2],(Co!==Fr[0]||Po!==Fr[1]||Wi!==Fr[2])&&(xe.stencilFunc(Co,Po,Wi),Fr[0]=Co,Fr[1]=Po,Fr[2]=Wi),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==Hr[0]||Ps!==Hr[1]||Ha!==Hr[2]||Sn!==Hr[3])&&(xe.stencilOpSeparate(gn,Ps,Ha,Sn),Hr[0]=gn,Hr[1]=Ps,Hr[2]=Ha,Hr[3]=Sn),ao=mi[0],Oa=mi[1],Ko=mi[2],Qo=mi[3],(ao!==Ei[0]||Oa!==Ei[1]||Ko!==Ei[2]||Qo!==Ei[3])&&(xe.stencilOpSeparate(ao,Oa,Ko,Qo),Ei[0]=ao,Ei[1]=Oa,Ei[2]=Ko,Ei[3]=Qo)}xe.blendColor(0,0,0,0),Bi[0]=0,Bi[1]=0,Bi[2]=0,Bi[3]=0,or?xe.enable(3042):xe.disable(3042),ht.blend_enable=or,xe.blendEquationSeparate(32774,32774),ln[0]=32774,ln[1]=32774,xe.blendFuncSeparate(770,771,773,1),qr[0]=770,qr[1]=771,qr[2]=773,qr[3]=1,yr?xe.enable(2884):xe.disable(2884),ht.cull_enable=yr,xe.cullFace(vr),ht.cull_face=vr,Vt?xe.enable(3089):xe.disable(3089),ht.scissor_enable=Vt,Pe?xe.enable(2960):xe.disable(2960),ht.stencil_enable=Pe,Xi=ht.profile,Xi&&(aa=performance.now(),r.count+=wi),xe.useProgram(l.program),Mn=jr.angle_instanced_arrays;var Hi,Sa,Qa,vn,da;for(cr.setVAO(null),Hi=y.location,Sa=br[Hi],Sa.buffer||xe.enableVertexAttribArray(Hi),(Sa.type!==5126||Sa.size!==1||Sa.buffer!==p||Sa.normalized!==!1||Sa.offset!==0||Sa.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Hi,1,5126,!1,8,0),Sa.type=5126,Sa.size=1,Sa.buffer=p,Sa.normalized=!1,Sa.offset=0,Sa.stride=8),Sa.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Hi,0),Sa.divisor=0),Qa=b.location,vn=br[Qa],vn.buffer||xe.enableVertexAttribArray(Qa),(vn.type!==5126||vn.size!==1||vn.buffer!==p||vn.normalized!==!1||vn.offset!==4||vn.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Qa,1,5126,!1,8,4),vn.type=5126,vn.size=1,vn.buffer=p,vn.normalized=!1,vn.offset=4,vn.stride=8),vn.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Qa,0),vn.divisor=0),da=st.elements,da?xe.bindBuffer(34963,da.buffer.buffer):cr.currentVAO&&(da=gt.getElements(cr.currentVAO.elements),da&&xe.bindBuffer(34963,da.buffer.buffer)),Un=0;Un0?xi.constant[0]:0,Vn=xi.constant.length>1?xi.constant[1]:0,wo=xi.constant.length>2?xi.constant[2]:0,Da=xi.constant.length>3?xi.constant[3]:0)):(Vr(xi.buffer)?Xn=xt.createStream(34962,xi.buffer):Xn=xt.getBuffer(xi.buffer),Ka="type"in xi?Ii[xi.type]:Xn.dtype,$n=!!xi.normalized,sn=xi.size|0,qn=xi.offset|0,Eo=xi.stride|0,Ja=xi.divisor|0)),lo=f.location,eo=br[lo],Ya===1?(eo.buffer||xe.enableVertexAttribArray(lo),sa=sn||4,(eo.type!==Ka||eo.size!==sa||eo.buffer!==Xn||eo.normalized!==$n||eo.offset!==qn||eo.stride!==Eo)&&(xe.bindBuffer(34962,Xn.buffer),xe.vertexAttribPointer(lo,sa,Ka,$n,Eo,qn),eo.type=Ka,eo.size=sa,eo.buffer=Xn,eo.normalized=$n,eo.offset=qn,eo.stride=Eo),eo.divisor!==Ja&&(Mn.vertexAttribDivisorANGLE(lo,Ja),eo.divisor=Ja)):(eo.buffer&&(xe.disableVertexAttribArray(lo),eo.buffer=null),(eo.x!==_n||eo.y!==Vn||eo.z!==wo||eo.w!==Da)&&(xe.vertexAttrib4f(lo,_n,Vn,wo,Da),eo.x=_n,eo.y=Vn,eo.z=wo,eo.w=Da)),es=Ga.positionBuffer,$t.buffer=es,Na=!1,en=1,Pa=0,to=0,yo=0,Jo=0,Ao=null,Rn=0,_a=!1,Ws=5126,Ca=0,Es=0,Ts=0,Vr($t)?(Na=!0,Ao=xt.createStream(34962,$t),Ws=Ao.dtype):(Ao=xt.getBuffer($t),Ao?Ws=Ao.dtype:"constant"in $t?(en=2,typeof $t.constant=="number"?(Pa=$t.constant,to=yo=Jo=0):(Pa=$t.constant.length>0?$t.constant[0]:0,to=$t.constant.length>1?$t.constant[1]:0,yo=$t.constant.length>2?$t.constant[2]:0,Jo=$t.constant.length>3?$t.constant[3]:0)):(Vr($t.buffer)?Ao=xt.createStream(34962,$t.buffer):Ao=xt.getBuffer($t.buffer),Ws="type"in $t?Ii[$t.type]:Ao.dtype,_a=!!$t.normalized,Rn=$t.size|0,Ca=$t.offset|0,Es=$t.stride|0,Ts=$t.divisor|0)),Ho=c.location,Wa=br[Ho],en===1?(Wa.buffer||xe.enableVertexAttribArray(Ho),To=Rn||2,(Wa.type!==Ws||Wa.size!==To||Wa.buffer!==Ao||Wa.normalized!==_a||Wa.offset!==Ca||Wa.stride!==Es)&&(xe.bindBuffer(34962,Ao.buffer),xe.vertexAttribPointer(Ho,To,Ws,_a,Es,Ca),Wa.type=Ws,Wa.size=To,Wa.buffer=Ao,Wa.normalized=_a,Wa.offset=Ca,Wa.stride=Es),Wa.divisor!==Ts&&(Mn.vertexAttribDivisorANGLE(Ho,Ts),Wa.divisor=Ts)):(Wa.buffer&&(xe.disableVertexAttribArray(Ho),Wa.buffer=null),(Wa.x!==Pa||Wa.y!==to||Wa.z!==yo||Wa.w!==Jo)&&(xe.vertexAttrib4f(Ho,Pa,to,yo,Jo),Wa.x=Pa,Wa.y=to,Wa.z=yo,Wa.w=Jo)),ts=Ga.colorBuffer,Xr.buffer=ts,Wo=!1,qa=1,on=0,Oo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Rs=0,fl=0,Vr(Xr)?(Wo=!0,za=xt.createStream(34962,Xr),$s=za.dtype):(za=xt.getBuffer(Xr),za?$s=za.dtype:"constant"in Xr?(qa=2,typeof Xr.constant=="number"?(on=Xr.constant,Oo=ko=oo=0):(on=Xr.constant.length>0?Xr.constant[0]:0,Oo=Xr.constant.length>1?Xr.constant[1]:0,ko=Xr.constant.length>2?Xr.constant[2]:0,oo=Xr.constant.length>3?Xr.constant[3]:0)):(Vr(Xr.buffer)?za=xt.createStream(34962,Xr.buffer):za=xt.getBuffer(Xr.buffer),$s="type"in Xr?Ii[Xr.type]:za.dtype,rs=!!Xr.normalized,ea=Xr.size|0,us=Xr.offset|0,Rs=Xr.stride|0,fl=Xr.divisor|0)),as=h.location,Ma=br[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||4,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Rs)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Rs,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Rs),Ma.divisor!==fl&&(Mn.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==on||Ma.y!==Oo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,on,Oo,ko,oo),Ma.x=on,Ma.y=Oo,Ma.z=ko,Ma.w=oo)),ho=Ga.positionBuffer,fr.buffer=ho,gs=!1,Vo=1,Ro=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Bo=!1,rl=5126,Gs=0,bs=0,zs=0,Vr(fr)?(gs=!0,Ea=xt.createStream(34962,fr),rl=Ea.dtype):(Ea=xt.getBuffer(fr),Ea?rl=Ea.dtype:"constant"in fr?(Vo=2,typeof fr.constant=="number"?(Ro=fr.constant,Lo=xs=ks=0):(Ro=fr.constant.length>0?fr.constant[0]:0,Lo=fr.constant.length>1?fr.constant[1]:0,xs=fr.constant.length>2?fr.constant[2]:0,ks=fr.constant.length>3?fr.constant[3]:0)):(Vr(fr.buffer)?Ea=xt.createStream(34962,fr.buffer):Ea=xt.getBuffer(fr.buffer),rl="type"in fr?Ii[fr.type]:Ea.dtype,Bo=!!fr.normalized,Jn=fr.size|0,Gs=fr.offset|0,bs=fr.stride|0,zs=fr.divisor|0)),$o=d.location,Aa=br[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Bo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Bo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Bo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Mn.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Ro||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Ro,Lo,xs,ks),Aa.x=Ro,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Ga.positionBuffer,gr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Ra=!1,vs=5126,fs=0,cl=0,el=0,Vr(gr)?(Ss=!0,io=xt.createStream(34962,gr),vs=io.dtype):(io=xt.getBuffer(gr),io?vs=io.dtype:"constant"in gr?(po=2,typeof gr.constant=="number"?(go=gr.constant,ss=qo=zo=0):(go=gr.constant.length>0?gr.constant[0]:0,ss=gr.constant.length>1?gr.constant[1]:0,qo=gr.constant.length>2?gr.constant[2]:0,zo=gr.constant.length>3?gr.constant[3]:0)):(Vr(gr.buffer)?io=xt.createStream(34962,gr.buffer):io=xt.getBuffer(gr.buffer),vs="type"in gr?Ii[gr.type]:io.dtype,Ra=!!gr.normalized,Io=gr.size|0,fs=gr.offset|0,cl=gr.stride|0,el=gr.divisor|0)),Hs=v.location,Do=br[Hs],po===1?(Do.buffer||xe.enableVertexAttribArray(Hs),tl=Io||2,(Do.type!==vs||Do.size!==tl||Do.buffer!==io||Do.normalized!==Ra||Do.offset!==fs||Do.stride!==cl)&&(xe.bindBuffer(34962,io.buffer),xe.vertexAttribPointer(Hs,tl,vs,Ra,cl,fs),Do.type=vs,Do.size=tl,Do.buffer=io,Do.normalized=Ra,Do.offset=fs,Do.stride=cl),Do.divisor!==el&&(Mn.vertexAttribDivisorANGLE(Hs,el),Do.divisor=el)):(Do.buffer&&(xe.disableVertexAttribArray(Hs),Do.buffer=null),(Do.x!==go||Do.y!==ss||Do.z!==qo||Do.w!==zo)&&(xe.vertexAttrib4f(Hs,go,ss,qo,zo),Do.x=go,Do.y=ss,Do.z=qo,Do.w=zo)),Fs=Ga.positionBuffer,dt.buffer=Fs,hl=!1,Fa=1,Ms=0,jo=0,Ds=0,Is=0,Os=null,St=0,Ut=!1,xr=5126,dr=0,Rr=0,yi=0,Vr(dt)?(hl=!0,Os=xt.createStream(34962,dt),xr=Os.dtype):(Os=xt.getBuffer(dt),Os?xr=Os.dtype:"constant"in dt?(Fa=2,typeof dt.constant=="number"?(Ms=dt.constant,jo=Ds=Is=0):(Ms=dt.constant.length>0?dt.constant[0]:0,jo=dt.constant.length>1?dt.constant[1]:0,Ds=dt.constant.length>2?dt.constant[2]:0,Is=dt.constant.length>3?dt.constant[3]:0)):(Vr(dt.buffer)?Os=xt.createStream(34962,dt.buffer):Os=xt.getBuffer(dt.buffer),xr="type"in dt?Ii[dt.type]:Os.dtype,Ut=!!dt.normalized,St=dt.size|0,dr=dt.offset|0,Rr=dt.stride|0,yi=dt.divisor|0)),Ti=C.location,ki=br[Ti],Fa===1?(ki.buffer||xe.enableVertexAttribArray(Ti),Ki=St||2,(ki.type!==xr||ki.size!==Ki||ki.buffer!==Os||ki.normalized!==Ut||ki.offset!==dr||ki.stride!==Rr)&&(xe.bindBuffer(34962,Os.buffer),xe.vertexAttribPointer(Ti,Ki,xr,Ut,Rr,dr),ki.type=xr,ki.size=Ki,ki.buffer=Os,ki.normalized=Ut,ki.offset=dr,ki.stride=Rr),ki.divisor!==yi&&(Mn.vertexAttribDivisorANGLE(Ti,yi),ki.divisor=yi)):(ki.buffer&&(xe.disableVertexAttribArray(Ti),ki.buffer=null),(ki.x!==Ms||ki.y!==jo||ki.z!==Ds||ki.w!==Is)&&(xe.vertexAttrib4f(Ti,Ms,jo,Ds,Is),ki.x=Ms,ki.y=jo,ki.z=Ds,ki.w=Is)),Fn=Ga.dashLength,(!Un||Li!==Fn)&&(Li=Fn,xe.uniform1f(M.location,Fn)),hi=Ga.dashTexture,hi&&hi._reglType==="framebuffer"&&(hi=hi.color[0]),Ci=hi._texture,xe.uniform1i(A.location,Ci.bind()),Si=Ga.depth,(!Un||Gn!==Si)&&(Gn=Si,xe.uniform1f(L.location,Si)),ta=Ga.miterLimit,(!Un||ya!==ta)&&(ya=ta,xe.uniform1f(x.location,ta)),ia=S.call(this,Oe,Ga,Un),(!Un||pa!==ia)&&(pa=ia,xe.uniform1f(k.location,ia)),va=Ga.opacity,(!Un||zn!==va)&&(zn=va,xe.uniform1f(m.location,va)),is=Ga.scale,Cs=is[0],dl=is[1],(!Un||Ks!==Cs||xl!==dl)&&(Ks=Cs,xl=dl,xe.uniform2f(P.location,Cs,dl)),Bl=Ga.thickness,(!Un||bl!==Bl)&&(bl=Bl,xe.uniform1f(E.location,Bl)),eu=Ga.translate,Zl=eu[0],ja=eu[1],(!Un||Vl!==Zl||ns!==ja)&&(Vl=Zl,ns=ja,xe.uniform2f(O.location,Zl,ja)),Js=U.call(this,Oe,Ga,Un),cs=Js[0],ll=Js[1],zl=Js[2],Dl=Js[3],(!Un||sl!==cs||nl!==ll||Ml!==zl||Al!==Dl)&&(sl=cs,nl=ll,Ml=zl,Al=Dl,xe.uniform4f(F.location,cs,ll,zl,Dl)),Ll=Ga.count,Ll>0?da?Mn.drawElementsInstancedANGLE(5,4,da.type,0<<(da.type-5121>>1),Ll):Mn.drawArraysInstancedANGLE(5,0,4,Ll):Ll<0&&(da?xe.drawElements(5,4,da.type,0<<(da.type-5121>>1)):xe.drawArrays(5,0,4)),Oe.viewportWidth=mo,Oe.viewportHeight=No,Vs&&xt.destroyStream(Xn),Na&&xt.destroyStream(Ao),Wo&&xt.destroyStream(za),gs&&xt.destroyStream(Ea),Ss&&xt.destroyStream(io),hl&&xt.destroyStream(Os),Ci.unbind()}ht.dirty=!0,cr.setVAO(null),Xi&&(r.cpuTime+=performance.now()-aa)}}}});var B9=we((dbr,u7e)=>{u7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je){"use strict";var rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i;return rt=t.gl,bt=t.context,Ot=t.strings,it=t.next,Ke=t.current,zt=t.draw,Mt=t.elements,kt=t.buffer,$e=t.shader,De=t.attributes,Me=t.vao,oe=t.uniforms,Ne=t.framebuffer,vt=t.extensions,lt=t.timer,We=t.isBufferArgs,Ve=it.blend_color,et=Ke.blend_color,tt=it.blend_equation,Lt=Ke.blend_equation,jt=it.blend_func,or=Ke.blend_func,yr=it.depth_range,vr=Ke.depth_range,Vt=it.colorMask,Pe=Ke.colorMask,xe=it.polygonOffset_offset,Oe=Ke.polygonOffset_offset,ze=it.sample_coverage,Re=Ke.sample_coverage,ht=it.stencil_func,st=Ke.stencil_func,gt=it.stencil_opFront,xt=Ke.stencil_opFront,pr=it.stencil_opBack,br=Ke.stencil_opBack,cr=it.scissor_box,Er=Ke.scissor_box,ii=it.viewport,jr=Ke.viewport,kr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Vr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ai={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Bi={add:32774,subtract:32778,"reverse subtract":32779},Di={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ln={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},hn={cw:2304,ccw:2305},qr={},qr.stride=8,qr.offset=8,_i={},_i.stride=8,_i.offset=8,{draw:function(zi){var Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo;if(Rt=vt.angle_instanced_arrays,_t=Ne.next,_t!==Ne.cur&&(_t?rt.bindFramebuffer(36160,_t.framebuffer):rt.bindFramebuffer(36160,null),Ne.cur=_t),Ke.dirty){var As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa;As=it.dither,As!==Ke.dither&&(As?rt.enable(3024):rt.disable(3024),Ke.dither=As),ps=it.depth_func,ps!==Ke.depth_func&&(rt.depthFunc(ps),Ke.depth_func=ps),co=yr[0],mo=yr[1],(co!==vr[0]||mo!==vr[1])&&(rt.depthRange(co,mo),vr[0]=co,vr[1]=mo),No=it.depth_mask,No!==Ke.depth_mask&&(rt.depthMask(No),Ke.depth_mask=No),jn=Vt[0],Go=Vt[1],Ys=Vt[2],qs=Vt[3],(jn!==Pe[0]||Go!==Pe[1]||Ys!==Pe[2]||qs!==Pe[3])&&(rt.colorMask(jn,Go,Ys,qs),Pe[0]=jn,Pe[1]=Go,Pe[2]=Ys,Pe[3]=qs),Ns=it.cull_enable,Ns!==Ke.cull_enable&&(Ns?rt.enable(2884):rt.disable(2884),Ke.cull_enable=Ns),Ba=it.cull_face,Ba!==Ke.cull_face&&(rt.cullFace(Ba),Ke.cull_face=Ba),ha=it.frontFace,ha!==Ke.frontFace&&(rt.frontFace(ha),Ke.frontFace=ha),Vs=it.lineWidth,Vs!==Ke.lineWidth&&(rt.lineWidth(Vs),Ke.lineWidth=Vs),Ya=it.polygonOffset_enable,Ya!==Ke.polygonOffset_enable&&(Ya?rt.enable(32823):rt.disable(32823),Ke.polygonOffset_enable=Ya),_n=xe[0],Vn=xe[1],(_n!==Oe[0]||Vn!==Oe[1])&&(rt.polygonOffset(_n,Vn),Oe[0]=_n,Oe[1]=Vn),wo=it.sample_alpha,wo!==Ke.sample_alpha&&(wo?rt.enable(32926):rt.disable(32926),Ke.sample_alpha=wo),Da=it.sample_enable,Da!==Ke.sample_enable&&(Da?rt.enable(32928):rt.disable(32928),Ke.sample_enable=Da),Xn=ze[0],sn=ze[1],(Xn!==Re[0]||sn!==Re[1])&&(rt.sampleCoverage(Xn,sn),Re[0]=Xn,Re[1]=sn),$n=it.stencil_mask,$n!==Ke.stencil_mask&&(rt.stencilMask($n),Ke.stencil_mask=$n),Ka=ht[0],qn=ht[1],Eo=ht[2],(Ka!==st[0]||qn!==st[1]||Eo!==st[2])&&(rt.stencilFunc(Ka,qn,Eo),st[0]=Ka,st[1]=qn,st[2]=Eo),Ja=gt[0],lo=gt[1],eo=gt[2],sa=gt[3],(Ja!==xt[0]||lo!==xt[1]||eo!==xt[2]||sa!==xt[3])&&(rt.stencilOpSeparate(Ja,lo,eo,sa),xt[0]=Ja,xt[1]=lo,xt[2]=eo,xt[3]=sa),es=pr[0],Na=pr[1],en=pr[2],Pa=pr[3],(es!==br[0]||Na!==br[1]||en!==br[2]||Pa!==br[3])&&(rt.stencilOpSeparate(es,Na,en,Pa),br[0]=es,br[1]=Na,br[2]=en,br[3]=Pa)}qt=zi.viewport,Nt=qt.x|0,mr=qt.y|0,Lr="width"in qt?qt.width|0:bt.framebufferWidth-Nt,Nr="height"in qt?qt.height|0:bt.framebufferHeight-mr,Fr=bt.viewportWidth,bt.viewportWidth=Lr,Gr=bt.viewportHeight,bt.viewportHeight=Nr,rt.viewport(Nt,mr,Lr,Nr),jr[0]=Nt,jr[1]=mr,jr[2]=Lr,jr[3]=Nr,rt.blendColor(0,0,0,0),et[0]=0,et[1]=0,et[2]=0,et[3]=0,n?rt.enable(3042):rt.disable(3042),Ke.blend_enable=n,rt.blendEquationSeparate(32774,32774),Lt[0]=32774,Lt[1]=32774,rt.blendFuncSeparate(770,771,773,1),or[0]=770,or[1]=771,or[2]=773,or[3]=1,i?rt.enable(2929):rt.disable(2929),Ke.depth_enable=i,Hr=zi.viewport,mi=Hr.x|0,Ei=Hr.y|0,Vi="width"in Hr?Hr.width|0:bt.framebufferWidth-mi,ti="height"in Hr?Hr.height|0:bt.framebufferHeight-Ei,rt.scissor(mi,Ei,Vi,ti),Er[0]=mi,Er[1]=Ei,Er[2]=Vi,Er[3]=ti,a?rt.enable(3089):rt.disable(3089),Ke.scissor_enable=a,o?rt.enable(2960):rt.disable(2960),Ke.stencil_enable=o,Qi=Ke.profile,Qi&&(Yr=performance.now(),r.count++),rt.useProgram(s.program),oi=vt.angle_instanced_arrays,Me.setVAO(null),Fi=zi.positionBuffer,qr.buffer=Fi,rn=!1,tn=1,Ri=0,Ii=0,xn=0,xi=0,Xr=null,dt=0,$t=!1,fr=5126,gr=0,Zr=0,wi=0,We(qr)?(rn=!0,Xr=kt.createStream(34962,qr),fr=Xr.dtype):(Xr=kt.getBuffer(qr),Xr?fr=Xr.dtype:"constant"in qr?(tn=2,typeof qr.constant=="number"?(Ri=qr.constant,Ii=xn=xi=0):(Ri=qr.constant.length>0?qr.constant[0]:0,Ii=qr.constant.length>1?qr.constant[1]:0,xn=qr.constant.length>2?qr.constant[2]:0,xi=qr.constant.length>3?qr.constant[3]:0)):(We(qr.buffer)?Xr=kt.createStream(34962,qr.buffer):Xr=kt.getBuffer(qr.buffer),fr="type"in qr?ln[qr.type]:Xr.dtype,$t=!!qr.normalized,dt=qr.size|0,gr=qr.offset|0,Zr=qr.stride|0,wi=qr.divisor|0)),$i=u.location,ni=De[$i],tn===1?(ni.buffer||rt.enableVertexAttribArray($i),Xi=dt||2,(ni.type!==fr||ni.size!==Xi||ni.buffer!==Xr||ni.normalized!==$t||ni.offset!==gr||ni.stride!==Zr)&&(rt.bindBuffer(34962,Xr.buffer),rt.vertexAttribPointer($i,Xi,fr,$t,Zr,gr),ni.type=fr,ni.size=Xi,ni.buffer=Xr,ni.normalized=$t,ni.offset=gr,ni.stride=Zr),ni.divisor!==wi&&(oi.vertexAttribDivisorANGLE($i,wi),ni.divisor=wi)):(ni.buffer&&(rt.disableVertexAttribArray($i),ni.buffer=null),(ni.x!==Ri||ni.y!==Ii||ni.z!==xn||ni.w!==xi)&&(rt.vertexAttrib4f($i,Ri,Ii,xn,xi),ni.x=Ri,ni.y=Ii,ni.z=xn,ni.w=xi)),aa=zi.positionFractBuffer,_i.buffer=aa,Mn=!1,Un=1,Ga=0,ma=0,oa=0,ka=0,so=null,Kr=0,Ia=!1,Yo=5126,fa=0,kn=0,Ta=0,We(_i)?(Mn=!0,so=kt.createStream(34962,_i),Yo=so.dtype):(so=kt.getBuffer(_i),so?Yo=so.dtype:"constant"in _i?(Un=2,typeof _i.constant=="number"?(Ga=_i.constant,ma=oa=ka=0):(Ga=_i.constant.length>0?_i.constant[0]:0,ma=_i.constant.length>1?_i.constant[1]:0,oa=_i.constant.length>2?_i.constant[2]:0,ka=_i.constant.length>3?_i.constant[3]:0)):(We(_i.buffer)?so=kt.createStream(34962,_i.buffer):so=kt.getBuffer(_i.buffer),Yo="type"in _i?ln[_i.type]:so.dtype,Ia=!!_i.normalized,Kr=_i.size|0,fa=_i.offset|0,kn=_i.stride|0,Ta=_i.divisor|0)),ys=l.location,uo=De[ys],Un===1?(uo.buffer||rt.enableVertexAttribArray(ys),ls=Kr||2,(uo.type!==Yo||uo.size!==ls||uo.buffer!==so||uo.normalized!==Ia||uo.offset!==fa||uo.stride!==kn)&&(rt.bindBuffer(34962,so.buffer),rt.vertexAttribPointer(ys,ls,Yo,Ia,kn,fa),uo.type=Yo,uo.size=ls,uo.buffer=so,uo.normalized=Ia,uo.offset=fa,uo.stride=kn),uo.divisor!==Ta&&(oi.vertexAttribDivisorANGLE(ys,Ta),uo.divisor=Ta)):(uo.buffer&&(rt.disableVertexAttribArray(ys),uo.buffer=null),(uo.x!==Ga||uo.y!==ma||uo.z!==oa||uo.w!==ka)&&(rt.vertexAttrib4f(ys,Ga,ma,oa,ka),uo.x=Ga,uo.y=ma,uo.z=oa,uo.w=ka)),$a=zi.fill,fo=$a[0],mn=$a[1],ra=$a[2],wa=$a[3],rt.uniform4f(f.location,fo,mn,ra,wa),ws=zi.id,rt.uniform1f(c.location,ws),Co=zi.opacity,rt.uniform1f(h.location,Co),Po=zi.scale,Wi=Po[0],gn=Po[1],rt.uniform2f(d.location,Wi,gn),Ps=zi.scaleFract,Ha=Ps[0],Sn=Ps[1],rt.uniform2f(p.location,Ha,Sn),ao=zi.translate,Oa=ao[0],Ko=ao[1],rt.uniform2f(y.location,Oa,Ko),Qo=zi.translateFract,Hi=Qo[0],Sa=Qo[1],rt.uniform2f(b.location,Hi,Sa),Qa=v.call(this,bt,zi,0),vn=null,da=We(Qa),da?vn=Mt.createStream(Qa):vn=Mt.getElements(Qa),vn&&rt.bindBuffer(34963,vn.buffer.buffer),la=vn?vn.vertCount:-1,la&&(vo=zt.instances,vo>0?vn?oi.drawElementsInstancedANGLE(4,la,vn.type,0<<(vn.type-5121>>1),vo):oi.drawArraysInstancedANGLE(4,0,la,vo):vo<0&&(vn?rt.drawElements(4,la,vn.type,0<<(vn.type-5121>>1)):rt.drawArrays(4,0,la)),Ke.dirty=!0,Me.setVAO(null),bt.viewportWidth=Fr,bt.viewportHeight=Gr,Qi&&(r.cpuTime+=performance.now()-Yr),rn&&kt.destroyStream(Xr),Mn&&kt.destroyStream(so),da&&Mt.destroyStream(vn))},scope:function(zi,Rt,_t){var qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho;qt=zi.viewport,Nt=qt.x|0,mr=qt.y|0,Lr="width"in qt?qt.width|0:bt.framebufferWidth-Nt,Nr="height"in qt?qt.height|0:bt.framebufferHeight-mr,Fr=bt.viewportWidth,bt.viewportWidth=Lr,Gr=bt.viewportHeight,bt.viewportHeight=Nr,Hr=ii[0],ii[0]=Nt,mi=ii[1],ii[1]=mr,Ei=ii[2],ii[2]=Lr,Vi=ii[3],ii[3]=Nr,ti=Ve[0],Ve[0]=C,Qi=Ve[1],Ve[1]=M,Yr=Ve[2],Ve[2]=A,oi=Ve[3],Ve[3]=L,Fi=it.blend_enable,it.blend_enable=x,rn=tt[0],tt[0]=k,tn=tt[1],tt[1]=S,Ri=jt[0],jt[0]=m,Ii=jt[1],jt[1]=P,xn=jt[2],jt[2]=E,xi=jt[3],jt[3]=O,Xr=it.depth_enable,it.depth_enable=F,dt=zi.viewport,$t=dt.x|0,fr=dt.y|0,gr="width"in dt?dt.width|0:bt.framebufferWidth-$t,Zr="height"in dt?dt.height|0:bt.framebufferHeight-fr,wi=cr[0],cr[0]=$t,$i=cr[1],cr[1]=fr,ni=cr[2],cr[2]=gr,Xi=cr[3],cr[3]=Zr,aa=it.scissor_enable,it.scissor_enable=U,Mn=it.stencil_enable,it.stencil_enable=G,Un=Ke.profile,Un&&(Ga=performance.now(),r.count++),ma=v.call(this,bt,zi,_t),oa=null,ka=We(ma),ka?oa=Mt.createStream(ma):oa=Mt.getElements(ma),so=zt.elements,zt.elements=oa,Kr=zt.offset,zt.offset=j,Ia=oa?oa.vertCount:-1,Yo=zt.count,zt.count=Ia,fa=zt.primitive,zt.primitive=W,kn=zi.scale,Ta=oe[N],oe[N]=kn,ys=zi.fill,uo=oe[H],oe[H]=ys,ls=zi.scaleFract,$a=oe[re],oe[re]=ls,fo=zi.translateFract,mn=oe[ae],oe[ae]=fo,ra=zi.translate,wa=oe[me],oe[me]=ra,ws=zi.opacity,Co=oe[Le],oe[Le]=ws,Po=bt.pixelRatio,Wi=oe[Ce],oe[Ce]=Po,gn=zi.id,Ps=oe[de],oe[de]=gn,Ha=te.call(this,bt,zi,_t),Sn=oe[Se],oe[Se]=Ha,ao=zi.positionBuffer,qr.buffer=ao,Oa=!1,Ko=1,Qo=0,Hi=0,Sa=0,Qa=0,vn=null,da=0,la=!1,vo=5126,As=0,ps=0,co=0,We(qr)?(Oa=!0,vn=kt.createStream(34962,qr),vo=vn.dtype):(vn=kt.getBuffer(qr),vn?vo=vn.dtype:"constant"in qr?(Ko=2,typeof qr.constant=="number"?(Qo=qr.constant,Hi=Sa=Qa=0):(Qo=qr.constant.length>0?qr.constant[0]:0,Hi=qr.constant.length>1?qr.constant[1]:0,Sa=qr.constant.length>2?qr.constant[2]:0,Qa=qr.constant.length>3?qr.constant[3]:0)):(We(qr.buffer)?vn=kt.createStream(34962,qr.buffer):vn=kt.getBuffer(qr.buffer),vo="type"in qr?ln[qr.type]:vn.dtype,la=!!qr.normalized,da=qr.size|0,As=qr.offset|0,ps=qr.stride|0,co=qr.divisor|0)),mo=Te.state,Te.state=Ko,No=Te.x,Te.x=Qo,jn=Te.y,Te.y=Hi,Go=Te.z,Te.z=Sa,Ys=Te.w,Te.w=Qa,qs=Te.buffer,Te.buffer=vn,Ns=Te.size,Te.size=da,Ba=Te.normalized,Te.normalized=la,ha=Te.type,Te.type=vo,Vs=Te.offset,Te.offset=As,Ya=Te.stride,Te.stride=ps,_n=Te.divisor,Te.divisor=co,Vn=zi.positionFractBuffer,_i.buffer=Vn,wo=!1,Da=1,Xn=0,sn=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,We(_i)?(wo=!0,qn=kt.createStream(34962,_i),lo=qn.dtype):(qn=kt.getBuffer(_i),qn?lo=qn.dtype:"constant"in _i?(Da=2,typeof _i.constant=="number"?(Xn=_i.constant,sn=$n=Ka=0):(Xn=_i.constant.length>0?_i.constant[0]:0,sn=_i.constant.length>1?_i.constant[1]:0,$n=_i.constant.length>2?_i.constant[2]:0,Ka=_i.constant.length>3?_i.constant[3]:0)):(We(_i.buffer)?qn=kt.createStream(34962,_i.buffer):qn=kt.getBuffer(_i.buffer),lo="type"in _i?ln[_i.type]:qn.dtype,Ja=!!_i.normalized,Eo=_i.size|0,eo=_i.offset|0,sa=_i.stride|0,es=_i.divisor|0)),Na=be.state,be.state=Da,en=be.x,be.x=Xn,Pa=be.y,be.y=sn,to=be.z,be.z=$n,yo=be.w,be.w=Ka,Jo=be.buffer,be.buffer=qn,Ao=be.size,be.size=Eo,Rn=be.normalized,be.normalized=Ja,_a=be.type,be.type=lo,Ws=be.offset,be.offset=eo,Ca=be.stride,be.stride=sa,Es=be.divisor,be.divisor=es,Ts=$e.vert,$e.vert=He,Ho=$e.frag,$e.frag=Ie,Ke.dirty=!0,Rt(bt,zi,_t),bt.viewportWidth=Fr,bt.viewportHeight=Gr,ii[0]=Hr,ii[1]=mi,ii[2]=Ei,ii[3]=Vi,Ve[0]=ti,Ve[1]=Qi,Ve[2]=Yr,Ve[3]=oi,it.blend_enable=Fi,tt[0]=rn,tt[1]=tn,jt[0]=Ri,jt[1]=Ii,jt[2]=xn,jt[3]=xi,it.depth_enable=Xr,cr[0]=wi,cr[1]=$i,cr[2]=ni,cr[3]=Xi,it.scissor_enable=aa,it.stencil_enable=Mn,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Mt.destroyStream(oa),zt.elements=so,zt.offset=Kr,zt.count=Yo,zt.primitive=fa,oe[N]=Ta,oe[H]=uo,oe[re]=$a,oe[ae]=mn,oe[me]=wa,oe[Le]=Co,oe[Ce]=Wi,oe[de]=Ps,oe[Se]=Sn,Oa&&kt.destroyStream(vn),Te.state=mo,Te.x=No,Te.y=jn,Te.z=Go,Te.w=Ys,Te.buffer=qs,Te.size=Ns,Te.normalized=Ba,Te.type=ha,Te.offset=Vs,Te.stride=Ya,Te.divisor=_n,wo&&kt.destroyStream(qn),be.state=Na,be.x=en,be.y=Pa,be.z=to,be.w=yo,be.buffer=Jo,be.size=Ao,be.normalized=Rn,be.type=_a,be.offset=Ws,be.stride=Ca,be.divisor=Es,$e.vert=Ts,$e.frag=Ho,Ke.dirty=!0},batch:function(zi,Rt){var _t,qt,Nt,mr,Lr,Nr,Fr;if(_t=vt.angle_instanced_arrays,qt=Ne.next,qt!==Ne.cur&&(qt?rt.bindFramebuffer(36160,qt.framebuffer):rt.bindFramebuffer(36160,null),Ne.cur=qt),Ke.dirty){var Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa;Gr=it.dither,Gr!==Ke.dither&&(Gr?rt.enable(3024):rt.disable(3024),Ke.dither=Gr),Hr=it.depth_func,Hr!==Ke.depth_func&&(rt.depthFunc(Hr),Ke.depth_func=Hr),mi=yr[0],Ei=yr[1],(mi!==vr[0]||Ei!==vr[1])&&(rt.depthRange(mi,Ei),vr[0]=mi,vr[1]=Ei),Vi=it.depth_mask,Vi!==Ke.depth_mask&&(rt.depthMask(Vi),Ke.depth_mask=Vi),ti=Vt[0],Qi=Vt[1],Yr=Vt[2],oi=Vt[3],(ti!==Pe[0]||Qi!==Pe[1]||Yr!==Pe[2]||oi!==Pe[3])&&(rt.colorMask(ti,Qi,Yr,oi),Pe[0]=ti,Pe[1]=Qi,Pe[2]=Yr,Pe[3]=oi),Fi=it.cull_enable,Fi!==Ke.cull_enable&&(Fi?rt.enable(2884):rt.disable(2884),Ke.cull_enable=Fi),rn=it.cull_face,rn!==Ke.cull_face&&(rt.cullFace(rn),Ke.cull_face=rn),tn=it.frontFace,tn!==Ke.frontFace&&(rt.frontFace(tn),Ke.frontFace=tn),Ri=it.lineWidth,Ri!==Ke.lineWidth&&(rt.lineWidth(Ri),Ke.lineWidth=Ri),Ii=it.polygonOffset_enable,Ii!==Ke.polygonOffset_enable&&(Ii?rt.enable(32823):rt.disable(32823),Ke.polygonOffset_enable=Ii),xn=xe[0],xi=xe[1],(xn!==Oe[0]||xi!==Oe[1])&&(rt.polygonOffset(xn,xi),Oe[0]=xn,Oe[1]=xi),Xr=it.sample_alpha,Xr!==Ke.sample_alpha&&(Xr?rt.enable(32926):rt.disable(32926),Ke.sample_alpha=Xr),dt=it.sample_enable,dt!==Ke.sample_enable&&(dt?rt.enable(32928):rt.disable(32928),Ke.sample_enable=dt),$t=ze[0],fr=ze[1],($t!==Re[0]||fr!==Re[1])&&(rt.sampleCoverage($t,fr),Re[0]=$t,Re[1]=fr),gr=it.stencil_mask,gr!==Ke.stencil_mask&&(rt.stencilMask(gr),Ke.stencil_mask=gr),Zr=ht[0],wi=ht[1],$i=ht[2],(Zr!==st[0]||wi!==st[1]||$i!==st[2])&&(rt.stencilFunc(Zr,wi,$i),st[0]=Zr,st[1]=wi,st[2]=$i),ni=gt[0],Xi=gt[1],aa=gt[2],Mn=gt[3],(ni!==xt[0]||Xi!==xt[1]||aa!==xt[2]||Mn!==xt[3])&&(rt.stencilOpSeparate(ni,Xi,aa,Mn),xt[0]=ni,xt[1]=Xi,xt[2]=aa,xt[3]=Mn),Un=pr[0],Ga=pr[1],ma=pr[2],oa=pr[3],(Un!==br[0]||Ga!==br[1]||ma!==br[2]||oa!==br[3])&&(rt.stencilOpSeparate(Un,Ga,ma,oa),br[0]=Un,br[1]=Ga,br[2]=ma,br[3]=oa)}rt.blendColor(0,0,0,0),et[0]=0,et[1]=0,et[2]=0,et[3]=0,ge?rt.enable(3042):rt.disable(3042),Ke.blend_enable=ge,rt.blendEquationSeparate(32774,32774),Lt[0]=32774,Lt[1]=32774,rt.blendFuncSeparate(770,771,773,1),or[0]=770,or[1]=771,or[2]=773,or[3]=1,Be?rt.enable(2929):rt.disable(2929),Ke.depth_enable=Be,ce?rt.enable(3089):rt.disable(3089),Ke.scissor_enable=ce,je?rt.enable(2960):rt.disable(2960),Ke.stencil_enable=je,Nt=Ke.profile,Nt&&(mr=performance.now(),r.count+=Rt),rt.useProgram(s.program),Lr=vt.angle_instanced_arrays;var ka;for(Me.setVAO(null),ka=zt.instances,Nr=0;Nr0?qr.constant[0]:0,Co=qr.constant.length>1?qr.constant[1]:0,Po=qr.constant.length>2?qr.constant[2]:0,Wi=qr.constant.length>3?qr.constant[3]:0)):(We(qr.buffer)?gn=kt.createStream(34962,qr.buffer):gn=kt.getBuffer(qr.buffer),Sn="type"in qr?ln[qr.type]:gn.dtype,Ha=!!qr.normalized,Ps=qr.size|0,ao=qr.offset|0,Oa=qr.stride|0,Ko=qr.divisor|0)),Qo=u.location,Hi=De[Qo],wa===1?(Hi.buffer||rt.enableVertexAttribArray(Qo),Sa=Ps||2,(Hi.type!==Sn||Hi.size!==Sa||Hi.buffer!==gn||Hi.normalized!==Ha||Hi.offset!==ao||Hi.stride!==Oa)&&(rt.bindBuffer(34962,gn.buffer),rt.vertexAttribPointer(Qo,Sa,Sn,Ha,Oa,ao),Hi.type=Sn,Hi.size=Sa,Hi.buffer=gn,Hi.normalized=Ha,Hi.offset=ao,Hi.stride=Oa),Hi.divisor!==Ko&&(Lr.vertexAttribDivisorANGLE(Qo,Ko),Hi.divisor=Ko)):(Hi.buffer&&(rt.disableVertexAttribArray(Qo),Hi.buffer=null),(Hi.x!==ws||Hi.y!==Co||Hi.z!==Po||Hi.w!==Wi)&&(rt.vertexAttrib4f(Qo,ws,Co,Po,Wi),Hi.x=ws,Hi.y=Co,Hi.z=Po,Hi.w=Wi)),Qa=Fr.positionFractBuffer,_i.buffer=Qa,vn=!1,da=1,la=0,vo=0,As=0,ps=0,co=null,mo=0,No=!1,jn=5126,Go=0,Ys=0,qs=0,We(_i)?(vn=!0,co=kt.createStream(34962,_i),jn=co.dtype):(co=kt.getBuffer(_i),co?jn=co.dtype:"constant"in _i?(da=2,typeof _i.constant=="number"?(la=_i.constant,vo=As=ps=0):(la=_i.constant.length>0?_i.constant[0]:0,vo=_i.constant.length>1?_i.constant[1]:0,As=_i.constant.length>2?_i.constant[2]:0,ps=_i.constant.length>3?_i.constant[3]:0)):(We(_i.buffer)?co=kt.createStream(34962,_i.buffer):co=kt.getBuffer(_i.buffer),jn="type"in _i?ln[_i.type]:co.dtype,No=!!_i.normalized,mo=_i.size|0,Go=_i.offset|0,Ys=_i.stride|0,qs=_i.divisor|0)),Ns=l.location,Ba=De[Ns],da===1?(Ba.buffer||rt.enableVertexAttribArray(Ns),ha=mo||2,(Ba.type!==jn||Ba.size!==ha||Ba.buffer!==co||Ba.normalized!==No||Ba.offset!==Go||Ba.stride!==Ys)&&(rt.bindBuffer(34962,co.buffer),rt.vertexAttribPointer(Ns,ha,jn,No,Ys,Go),Ba.type=jn,Ba.size=ha,Ba.buffer=co,Ba.normalized=No,Ba.offset=Go,Ba.stride=Ys),Ba.divisor!==qs&&(Lr.vertexAttribDivisorANGLE(Ns,qs),Ba.divisor=qs)):(Ba.buffer&&(rt.disableVertexAttribArray(Ns),Ba.buffer=null),(Ba.x!==la||Ba.y!==vo||Ba.z!==As||Ba.w!==ps)&&(rt.vertexAttrib4f(Ns,la,vo,As,ps),Ba.x=la,Ba.y=vo,Ba.z=As,Ba.w=ps)),Vs=Fr.fill,Ya=Vs[0],Vn=Vs[1],Da=Vs[2],sn=Vs[3],(!Nr||_n!==Ya||wo!==Vn||Xn!==Da||$n!==sn)&&(_n=Ya,wo=Vn,Xn=Da,$n=sn,rt.uniform4f(f.location,Ya,Vn,Da,sn)),Ka=Fr.id,(!Nr||qn!==Ka)&&(qn=Ka,rt.uniform1f(c.location,Ka)),Eo=Fr.opacity,(!Nr||Ja!==Eo)&&(Ja=Eo,rt.uniform1f(h.location,Eo)),lo=Fr.scale,eo=lo[0],es=lo[1],(!Nr||sa!==eo||Na!==es)&&(sa=eo,Na=es,rt.uniform2f(d.location,eo,es)),en=Fr.scaleFract,Pa=en[0],yo=en[1],(!Nr||to!==Pa||Jo!==yo)&&(to=Pa,Jo=yo,rt.uniform2f(p.location,Pa,yo)),Ao=Fr.translate,Rn=Ao[0],Ws=Ao[1],(!Nr||_a!==Rn||Ca!==Ws)&&(_a=Rn,Ca=Ws,rt.uniform2f(y.location,Rn,Ws)),Es=Fr.translateFract,Ts=Es[0],Wa=Es[1],(!Nr||Ho!==Ts||To!==Wa)&&(Ho=Ts,To=Wa,rt.uniform2f(b.location,Ts,Wa)),ts=v.call(this,bt,Fr,Nr),Wo=null,qa=We(ts),qa?Wo=Mt.createStream(ts):Wo=Mt.getElements(ts),Wo&&rt.bindBuffer(34963,Wo.buffer.buffer),on=Wo?Wo.vertCount:-1,on&&(ka>0?Wo?Lr.drawElementsInstancedANGLE(4,on,Wo.type,0<<(Wo.type-5121>>1),ka):Lr.drawArraysInstancedANGLE(4,0,on,ka):ka<0&&(Wo?rt.drawElements(4,on,Wo.type,0<<(Wo.type-5121>>1)):rt.drawArrays(4,0,on)),bt.viewportWidth=kn,bt.viewportHeight=Ta,ra&&kt.destroyStream(gn),vn&&kt.destroyStream(co),qa&&Mt.destroyStream(Wo))}Ke.dirty=!0,Me.setVAO(null),Nt&&(r.cpuTime+=performance.now()-mr)}}}});var q9=we((pbr,f7e)=>{f7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt){"use strict";var Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii;return Pe=t.gl,xe=t.context,Oe=t.strings,ze=t.next,Re=t.current,ht=t.draw,st=t.elements,gt=t.buffer,xt=t.shader,pr=t.attributes,br=t.vao,cr=t.uniforms,Er=t.framebuffer,ii=t.extensions,jr=t.timer,kr=t.isBufferArgs,Vr=ze.blend_color,Ai=Re.blend_color,Bi=ze.blend_equation,Di=Re.blend_equation,ln=ze.blend_func,hn=Re.blend_func,qr=ze.depth_range,_i=Re.depth_range,zi=ze.colorMask,Rt=Re.colorMask,_t=ze.polygonOffset_offset,qt=Re.polygonOffset_offset,Nt=ze.sample_coverage,mr=Re.sample_coverage,Lr=ze.stencil_func,Nr=Re.stencil_func,Fr=ze.stencil_opFront,Gr=Re.stencil_opFront,Hr=ze.stencil_opBack,mi=Re.stencil_opBack,Ei=ze.scissor_box,Vi=Re.scissor_box,ti=ze.viewport,Qi=Re.viewport,Yr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},oi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rn={add:32774,subtract:32778,"reverse subtract":32779},tn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ri={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ii={cw:2304,ccw:2305},{draw:function(xn){var xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl;if(xi=ii.angle_instanced_arrays,Xr=Er.next,Xr!==Er.cur&&(Xr?Pe.bindFramebuffer(36160,Xr.framebuffer):Pe.bindFramebuffer(36160,null),Er.cur=Xr),Re.dirty){var Ml,Dl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr;Ml=ze.dither,Ml!==Re.dither&&(Ml?Pe.enable(3024):Pe.disable(3024),Re.dither=Ml),Dl=Bi[0],Al=Bi[1],(Dl!==Di[0]||Al!==Di[1])&&(Pe.blendEquationSeparate(Dl,Al),Di[0]=Dl,Di[1]=Al),Ll=ze.depth_func,Ll!==Re.depth_func&&(Pe.depthFunc(Ll),Re.depth_func=Ll),ms=qr[0],Bs=qr[1],(ms!==_i[0]||Bs!==_i[1])&&(Pe.depthRange(ms,Bs),_i[0]=ms,_i[1]=Bs),Xl=ze.depth_mask,Xl!==Re.depth_mask&&(Pe.depthMask(Xl),Re.depth_mask=Xl),Gl=zi[0],Nl=zi[1],ue=zi[2],w=zi[3],(Gl!==Rt[0]||Nl!==Rt[1]||ue!==Rt[2]||w!==Rt[3])&&(Pe.colorMask(Gl,Nl,ue,w),Rt[0]=Gl,Rt[1]=Nl,Rt[2]=ue,Rt[3]=w),q=ze.cull_enable,q!==Re.cull_enable&&(q?Pe.enable(2884):Pe.disable(2884),Re.cull_enable=q),Q=ze.cull_face,Q!==Re.cull_face&&(Pe.cullFace(Q),Re.cull_face=Q),ee=ze.frontFace,ee!==Re.frontFace&&(Pe.frontFace(ee),Re.frontFace=ee),fe=ze.lineWidth,fe!==Re.lineWidth&&(Pe.lineWidth(fe),Re.lineWidth=fe),Ue=ze.polygonOffset_enable,Ue!==Re.polygonOffset_enable&&(Ue?Pe.enable(32823):Pe.disable(32823),Re.polygonOffset_enable=Ue),at=_t[0],yt=_t[1],(at!==qt[0]||yt!==qt[1])&&(Pe.polygonOffset(at,yt),qt[0]=at,qt[1]=yt),Dt=ze.sample_alpha,Dt!==Re.sample_alpha&&(Dt?Pe.enable(32926):Pe.disable(32926),Re.sample_alpha=Dt),Qt=ze.sample_enable,Qt!==Re.sample_enable&&(Qt?Pe.enable(32928):Pe.disable(32928),Re.sample_enable=Qt),rr=Nt[0],Mr=Nt[1],(rr!==mr[0]||Mr!==mr[1])&&(Pe.sampleCoverage(rr,Mr),mr[0]=rr,mr[1]=Mr),Ur=ze.stencil_mask,Ur!==Re.stencil_mask&&(Pe.stencilMask(Ur),Re.stencil_mask=Ur),he=Lr[0],Ae=Lr[1],qe=Lr[2],(he!==Nr[0]||Ae!==Nr[1]||qe!==Nr[2])&&(Pe.stencilFunc(he,Ae,qe),Nr[0]=he,Nr[1]=Ae,Nr[2]=qe),Ge=Fr[0],ft=Fr[1],ot=Fr[2],mt=Fr[3],(Ge!==Gr[0]||ft!==Gr[1]||ot!==Gr[2]||mt!==Gr[3])&&(Pe.stencilOpSeparate(Ge,ft,ot,mt),Gr[0]=Ge,Gr[1]=ft,Gr[2]=ot,Gr[3]=mt),Gt=Hr[0],er=Hr[1],sr=Hr[2],wr=Hr[3],(Gt!==mi[0]||er!==mi[1]||sr!==mi[2]||wr!==mi[3])&&(Pe.stencilOpSeparate(Gt,er,sr,wr),mi[0]=Gt,mi[1]=er,mi[2]=sr,mi[3]=wr)}dt=xn.viewport,$t=dt.x|0,fr=dt.y|0,gr="width"in dt?dt.width|0:xe.framebufferWidth-$t,Zr="height"in dt?dt.height|0:xe.framebufferHeight-fr,wi=xe.viewportWidth,xe.viewportWidth=gr,$i=xe.viewportHeight,xe.viewportHeight=Zr,Pe.viewport($t,fr,gr,Zr),Qi[0]=$t,Qi[1]=fr,Qi[2]=gr,Qi[3]=Zr,Pe.blendColor(0,0,0,1),Ai[0]=0,Ai[1]=0,Ai[2]=0,Ai[3]=1,n?Pe.enable(3042):Pe.disable(3042),Re.blend_enable=n,Pe.blendFuncSeparate(770,771,773,1),hn[0]=770,hn[1]=771,hn[2]=773,hn[3]=1,i?Pe.enable(2929):Pe.disable(2929),Re.depth_enable=i,ni=xn.viewport,Xi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:xe.framebufferWidth-Xi,Un="height"in ni?ni.height|0:xe.framebufferHeight-aa,Pe.scissor(Xi,aa,Mn,Un),Vi[0]=Xi,Vi[1]=aa,Vi[2]=Mn,Vi[3]=Un,a?Pe.enable(3089):Pe.disable(3089),Re.scissor_enable=a,o?Pe.enable(2960):Pe.disable(2960),Re.stencil_enable=o,Ga=Re.profile,Ga&&(ma=performance.now(),r.count++),Pe.useProgram(s.program),oa=ii.angle_instanced_arrays,br.setVAO(null),ka=u.call(this,xe,xn,0),so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,kr(ka)?(so=!0,Ta=gt.createStream(34962,ka),ls=Ta.dtype):(Ta=gt.getBuffer(ka),Ta?ls=Ta.dtype:"constant"in ka?(Kr=2,typeof ka.constant=="number"?(Ia=ka.constant,Yo=fa=kn=0):(Ia=ka.constant.length>0?ka.constant[0]:0,Yo=ka.constant.length>1?ka.constant[1]:0,fa=ka.constant.length>2?ka.constant[2]:0,kn=ka.constant.length>3?ka.constant[3]:0)):(kr(ka.buffer)?Ta=gt.createStream(34962,ka.buffer):Ta=gt.getBuffer(ka.buffer),ls="type"in ka?Ri[ka.type]:Ta.dtype,uo=!!ka.normalized,ys=ka.size|0,$a=ka.offset|0,fo=ka.stride|0,mn=ka.divisor|0)),ra=l.location,wa=pr[ra],Kr===1?(wa.buffer||Pe.enableVertexAttribArray(ra),ws=ys||4,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Pe.bindBuffer(34962,Ta.buffer),Pe.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(oa.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Pe.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Pe.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=f.call(this,xe,xn,0),Po=!1,Wi=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Oa=0,Ko=!1,Qo=5126,Hi=0,Sa=0,Qa=0,kr(Co)?(Po=!0,ao=gt.createStream(34962,Co),Qo=ao.dtype):(ao=gt.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(Wi=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(kr(Co.buffer)?ao=gt.createStream(34962,Co.buffer):ao=gt.getBuffer(Co.buffer),Qo="type"in Co?Ri[Co.type]:ao.dtype,Ko=!!Co.normalized,Oa=Co.size|0,Hi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=c.location,da=pr[vn],Wi===1?(da.buffer||Pe.enableVertexAttribArray(vn),la=Oa||1,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Hi||da.stride!==Sa)&&(Pe.bindBuffer(34962,ao.buffer),Pe.vertexAttribPointer(vn,la,Qo,Ko,Sa,Hi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Hi,da.stride=Sa),da.divisor!==Qa&&(oa.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Pe.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Pe.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=h.call(this,xe,xn,0),As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Ba=0,ha=0,Vs=0,kr(vo)?(As=!0,Go=gt.createStream(34962,vo),Ns=Go.dtype):(Go=gt.getBuffer(vo),Go?Ns=Go.dtype:"constant"in vo?(ps=2,typeof vo.constant=="number"?(co=vo.constant,mo=No=jn=0):(co=vo.constant.length>0?vo.constant[0]:0,mo=vo.constant.length>1?vo.constant[1]:0,No=vo.constant.length>2?vo.constant[2]:0,jn=vo.constant.length>3?vo.constant[3]:0)):(kr(vo.buffer)?Go=gt.createStream(34962,vo.buffer):Go=gt.getBuffer(vo.buffer),Ns="type"in vo?Ri[vo.type]:Go.dtype,qs=!!vo.normalized,Ys=vo.size|0,Ba=vo.offset|0,ha=vo.stride|0,Vs=vo.divisor|0)),Ya=d.location,_n=pr[Ya],ps===1?(_n.buffer||Pe.enableVertexAttribArray(Ya),Vn=Ys||4,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Ba||_n.stride!==ha)&&(Pe.bindBuffer(34962,Go.buffer),Pe.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Ba),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Ba,_n.stride=ha),_n.divisor!==Vs&&(oa.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Pe.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Pe.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=p.call(this,xe,xn,0),Da=!1,Xn=1,sn=0,$n=0,Ka=0,qn=0,Eo=null,Ja=0,lo=!1,eo=5126,sa=0,es=0,Na=0,kr(wo)?(Da=!0,Eo=gt.createStream(34962,wo),eo=Eo.dtype):(Eo=gt.getBuffer(wo),Eo?eo=Eo.dtype:"constant"in wo?(Xn=2,typeof wo.constant=="number"?(sn=wo.constant,$n=Ka=qn=0):(sn=wo.constant.length>0?wo.constant[0]:0,$n=wo.constant.length>1?wo.constant[1]:0,Ka=wo.constant.length>2?wo.constant[2]:0,qn=wo.constant.length>3?wo.constant[3]:0)):(kr(wo.buffer)?Eo=gt.createStream(34962,wo.buffer):Eo=gt.getBuffer(wo.buffer),eo="type"in wo?Ri[wo.type]:Eo.dtype,lo=!!wo.normalized,Ja=wo.size|0,sa=wo.offset|0,es=wo.stride|0,Na=wo.divisor|0)),en=y.location,Pa=pr[en],Xn===1?(Pa.buffer||Pe.enableVertexAttribArray(en),to=Ja||1,(Pa.type!==eo||Pa.size!==to||Pa.buffer!==Eo||Pa.normalized!==lo||Pa.offset!==sa||Pa.stride!==es)&&(Pe.bindBuffer(34962,Eo.buffer),Pe.vertexAttribPointer(en,to,eo,lo,es,sa),Pa.type=eo,Pa.size=to,Pa.buffer=Eo,Pa.normalized=lo,Pa.offset=sa,Pa.stride=es),Pa.divisor!==Na&&(oa.vertexAttribDivisorANGLE(en,Na),Pa.divisor=Na)):(Pa.buffer&&(Pe.disableVertexAttribArray(en),Pa.buffer=null),(Pa.x!==sn||Pa.y!==$n||Pa.z!==Ka||Pa.w!==qn)&&(Pe.vertexAttrib4f(en,sn,$n,Ka,qn),Pa.x=sn,Pa.y=$n,Pa.z=Ka,Pa.w=qn)),yo=b.call(this,xe,xn,0),Jo=!1,Ao=1,Rn=0,_a=0,Ws=0,Ca=0,Es=null,Ts=0,Ho=!1,Wa=5126,To=0,ts=0,Wo=0,kr(yo)?(Jo=!0,Es=gt.createStream(34962,yo),Wa=Es.dtype):(Es=gt.getBuffer(yo),Es?Wa=Es.dtype:"constant"in yo?(Ao=2,typeof yo.constant=="number"?(Rn=yo.constant,_a=Ws=Ca=0):(Rn=yo.constant.length>0?yo.constant[0]:0,_a=yo.constant.length>1?yo.constant[1]:0,Ws=yo.constant.length>2?yo.constant[2]:0,Ca=yo.constant.length>3?yo.constant[3]:0)):(kr(yo.buffer)?Es=gt.createStream(34962,yo.buffer):Es=gt.getBuffer(yo.buffer),Wa="type"in yo?Ri[yo.type]:Es.dtype,Ho=!!yo.normalized,Ts=yo.size|0,To=yo.offset|0,ts=yo.stride|0,Wo=yo.divisor|0)),qa=v.location,on=pr[qa],Ao===1?(on.buffer||Pe.enableVertexAttribArray(qa),Oo=Ts||1,(on.type!==Wa||on.size!==Oo||on.buffer!==Es||on.normalized!==Ho||on.offset!==To||on.stride!==ts)&&(Pe.bindBuffer(34962,Es.buffer),Pe.vertexAttribPointer(qa,Oo,Wa,Ho,ts,To),on.type=Wa,on.size=Oo,on.buffer=Es,on.normalized=Ho,on.offset=To,on.stride=ts),on.divisor!==Wo&&(oa.vertexAttribDivisorANGLE(qa,Wo),on.divisor=Wo)):(on.buffer&&(Pe.disableVertexAttribArray(qa),on.buffer=null),(on.x!==Rn||on.y!==_a||on.z!==Ws||on.w!==Ca)&&(Pe.vertexAttrib4f(qa,Rn,_a,Ws,Ca),on.x=Rn,on.y=_a,on.z=Ws,on.w=Ca)),ko=C.call(this,xe,xn,0),oo=!1,za=1,ea=0,rs=0,$s=0,us=0,Rs=null,fl=0,as=!1,Ma=5126,Qs=0,ho=0,gs=0,kr(ko)?(oo=!0,Rs=gt.createStream(34962,ko),Ma=Rs.dtype):(Rs=gt.getBuffer(ko),Rs?Ma=Rs.dtype:"constant"in ko?(za=2,typeof ko.constant=="number"?(ea=ko.constant,rs=$s=us=0):(ea=ko.constant.length>0?ko.constant[0]:0,rs=ko.constant.length>1?ko.constant[1]:0,$s=ko.constant.length>2?ko.constant[2]:0,us=ko.constant.length>3?ko.constant[3]:0)):(kr(ko.buffer)?Rs=gt.createStream(34962,ko.buffer):Rs=gt.getBuffer(ko.buffer),Ma="type"in ko?Ri[ko.type]:Rs.dtype,as=!!ko.normalized,fl=ko.size|0,Qs=ko.offset|0,ho=ko.stride|0,gs=ko.divisor|0)),Vo=M.location,Ro=pr[Vo],za===1?(Ro.buffer||Pe.enableVertexAttribArray(Vo),Lo=fl||1,(Ro.type!==Ma||Ro.size!==Lo||Ro.buffer!==Rs||Ro.normalized!==as||Ro.offset!==Qs||Ro.stride!==ho)&&(Pe.bindBuffer(34962,Rs.buffer),Pe.vertexAttribPointer(Vo,Lo,Ma,as,ho,Qs),Ro.type=Ma,Ro.size=Lo,Ro.buffer=Rs,Ro.normalized=as,Ro.offset=Qs,Ro.stride=ho),Ro.divisor!==gs&&(oa.vertexAttribDivisorANGLE(Vo,gs),Ro.divisor=gs)):(Ro.buffer&&(Pe.disableVertexAttribArray(Vo),Ro.buffer=null),(Ro.x!==ea||Ro.y!==rs||Ro.z!==$s||Ro.w!==us)&&(Pe.vertexAttrib4f(Vo,ea,rs,$s,us),Ro.x=ea,Ro.y=rs,Ro.z=$s,Ro.w=us)),xs=A.call(this,xe,xn,0),ks=!1,Ea=1,Jn=0,Bo=0,rl=0,Gs=0,bs=null,zs=0,$o=!1,Aa=5126,os=0,_l=0,Ss=0,kr(xs)?(ks=!0,bs=gt.createStream(34962,xs),Aa=bs.dtype):(bs=gt.getBuffer(xs),bs?Aa=bs.dtype:"constant"in xs?(Ea=2,typeof xs.constant=="number"?(Jn=xs.constant,Bo=rl=Gs=0):(Jn=xs.constant.length>0?xs.constant[0]:0,Bo=xs.constant.length>1?xs.constant[1]:0,rl=xs.constant.length>2?xs.constant[2]:0,Gs=xs.constant.length>3?xs.constant[3]:0)):(kr(xs.buffer)?bs=gt.createStream(34962,xs.buffer):bs=gt.getBuffer(xs.buffer),Aa="type"in xs?Ri[xs.type]:bs.dtype,$o=!!xs.normalized,zs=xs.size|0,os=xs.offset|0,_l=xs.stride|0,Ss=xs.divisor|0)),po=L.location,go=pr[po],Ea===1?(go.buffer||Pe.enableVertexAttribArray(po),ss=zs||1,(go.type!==Aa||go.size!==ss||go.buffer!==bs||go.normalized!==$o||go.offset!==os||go.stride!==_l)&&(Pe.bindBuffer(34962,bs.buffer),Pe.vertexAttribPointer(po,ss,Aa,$o,_l,os),go.type=Aa,go.size=ss,go.buffer=bs,go.normalized=$o,go.offset=os,go.stride=_l),go.divisor!==Ss&&(oa.vertexAttribDivisorANGLE(po,Ss),go.divisor=Ss)):(go.buffer&&(Pe.disableVertexAttribArray(po),go.buffer=null),(go.x!==Jn||go.y!==Bo||go.z!==rl||go.w!==Gs)&&(Pe.vertexAttrib4f(po,Jn,Bo,rl,Gs),go.x=Jn,go.y=Bo,go.z=rl,go.w=Gs)),qo=x.call(this,xe,xn,0),zo=!1,io=1,Io=0,Ra=0,vs=0,fs=0,cl=null,el=0,Hs=!1,Do=5126,tl=0,Fs=0,hl=0,kr(qo)?(zo=!0,cl=gt.createStream(34962,qo),Do=cl.dtype):(cl=gt.getBuffer(qo),cl?Do=cl.dtype:"constant"in qo?(io=2,typeof qo.constant=="number"?(Io=qo.constant,Ra=vs=fs=0):(Io=qo.constant.length>0?qo.constant[0]:0,Ra=qo.constant.length>1?qo.constant[1]:0,vs=qo.constant.length>2?qo.constant[2]:0,fs=qo.constant.length>3?qo.constant[3]:0)):(kr(qo.buffer)?cl=gt.createStream(34962,qo.buffer):cl=gt.getBuffer(qo.buffer),Do="type"in qo?Ri[qo.type]:cl.dtype,Hs=!!qo.normalized,el=qo.size|0,tl=qo.offset|0,Fs=qo.stride|0,hl=qo.divisor|0)),Fa=k.location,Ms=pr[Fa],io===1?(Ms.buffer||Pe.enableVertexAttribArray(Fa),jo=el||1,(Ms.type!==Do||Ms.size!==jo||Ms.buffer!==cl||Ms.normalized!==Hs||Ms.offset!==tl||Ms.stride!==Fs)&&(Pe.bindBuffer(34962,cl.buffer),Pe.vertexAttribPointer(Fa,jo,Do,Hs,Fs,tl),Ms.type=Do,Ms.size=jo,Ms.buffer=cl,Ms.normalized=Hs,Ms.offset=tl,Ms.stride=Fs),Ms.divisor!==hl&&(oa.vertexAttribDivisorANGLE(Fa,hl),Ms.divisor=hl)):(Ms.buffer&&(Pe.disableVertexAttribArray(Fa),Ms.buffer=null),(Ms.x!==Io||Ms.y!==Ra||Ms.z!==vs||Ms.w!==fs)&&(Pe.vertexAttrib4f(Fa,Io,Ra,vs,fs),Ms.x=Io,Ms.y=Ra,Ms.z=vs,Ms.w=fs)),Ds=S.call(this,xe,xn,0),Is=!1,Os=1,St=0,Ut=0,xr=0,dr=0,Rr=null,yi=0,Ti=!1,ki=5126,Ki=0,Fn=0,Li=0,kr(Ds)?(Is=!0,Rr=gt.createStream(34962,Ds),ki=Rr.dtype):(Rr=gt.getBuffer(Ds),Rr?ki=Rr.dtype:"constant"in Ds?(Os=2,typeof Ds.constant=="number"?(St=Ds.constant,Ut=xr=dr=0):(St=Ds.constant.length>0?Ds.constant[0]:0,Ut=Ds.constant.length>1?Ds.constant[1]:0,xr=Ds.constant.length>2?Ds.constant[2]:0,dr=Ds.constant.length>3?Ds.constant[3]:0)):(kr(Ds.buffer)?Rr=gt.createStream(34962,Ds.buffer):Rr=gt.getBuffer(Ds.buffer),ki="type"in Ds?Ri[Ds.type]:Rr.dtype,Ti=!!Ds.normalized,yi=Ds.size|0,Ki=Ds.offset|0,Fn=Ds.stride|0,Li=Ds.divisor|0)),hi=m.location,Ci=pr[hi],Os===1?(Ci.buffer||Pe.enableVertexAttribArray(hi),Si=yi||1,(Ci.type!==ki||Ci.size!==Si||Ci.buffer!==Rr||Ci.normalized!==Ti||Ci.offset!==Ki||Ci.stride!==Fn)&&(Pe.bindBuffer(34962,Rr.buffer),Pe.vertexAttribPointer(hi,Si,ki,Ti,Fn,Ki),Ci.type=ki,Ci.size=Si,Ci.buffer=Rr,Ci.normalized=Ti,Ci.offset=Ki,Ci.stride=Fn),Ci.divisor!==Li&&(oa.vertexAttribDivisorANGLE(hi,Li),Ci.divisor=Li)):(Ci.buffer&&(Pe.disableVertexAttribArray(hi),Ci.buffer=null),(Ci.x!==St||Ci.y!==Ut||Ci.z!==xr||Ci.w!==dr)&&(Pe.vertexAttrib4f(hi,St,Ut,xr,dr),Ci.x=St,Ci.y=Ut,Ci.z=xr,Ci.w=dr)),Pe.uniform1i(P.location,!1),Gn=xn.markerTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),ta=Gn._texture,Pe.uniform1i(E.location,ta.bind()),ya=xn.opacity,Pe.uniform1f(O.location,ya),ia=U.call(this,xe,xn,0),pa=ia[0],va=ia[1],Pe.uniform2f(F.location,pa,va),Pe.uniform1i(G.location,j.bind()),zn=xe.pixelRatio,Pe.uniform1f(W.location,zn),is=xn.scale,Cs=is[0],Ks=is[1],Pe.uniform2f(N.location,Cs,Ks),dl=xn.scaleFract,xl=dl[0],Bl=dl[1],Pe.uniform2f(H.location,xl,Bl),bl=xn.translate,eu=bl[0],Zl=bl[1],Pe.uniform2f(re.location,eu,Zl),Vl=xn.translateFract,ja=Vl[0],ns=Vl[1],Pe.uniform2f(ae.location,ja,ns),Js=xn.elements,cs=null,sl=kr(Js),sl?cs=st.createStream(Js):cs=st.getElements(Js),cs&&Pe.bindBuffer(34963,cs.buffer.buffer),ll=xn.offset,nl=xn.count,nl&&(zl=ht.instances,zl>0?cs?oa.drawElementsInstancedANGLE(0,nl,cs.type,ll<<(cs.type-5121>>1),zl):oa.drawArraysInstancedANGLE(0,ll,nl,zl):zl<0&&(cs?Pe.drawElements(0,nl,cs.type,ll<<(cs.type-5121>>1)):Pe.drawArrays(0,ll,nl)),Re.dirty=!0,br.setVAO(null),xe.viewportWidth=wi,xe.viewportHeight=$i,Ga&&(r.cpuTime+=performance.now()-ma),so&>.destroyStream(Ta),Po&>.destroyStream(ao),As&>.destroyStream(Go),Da&>.destroyStream(Eo),Jo&>.destroyStream(Es),oo&>.destroyStream(Rs),ks&>.destroyStream(bs),zo&>.destroyStream(cl),Is&>.destroyStream(Rr),ta.unbind(),j.unbind(),sl&&st.destroyStream(cs))},scope:function(xn,xi,Xr){var dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Dl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr,Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,nu,ru,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,le,ke,Ye,nt,ut,Ht,wt,lr,Cr,zr,ui,$r,Oi,un,pi,Pi,ji,pn,an,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Mf,pf;dt=xn.viewport,$t=dt.x|0,fr=dt.y|0,gr="width"in dt?dt.width|0:xe.framebufferWidth-$t,Zr="height"in dt?dt.height|0:xe.framebufferHeight-fr,wi=xe.viewportWidth,xe.viewportWidth=gr,$i=xe.viewportHeight,xe.viewportHeight=Zr,ni=ti[0],ti[0]=$t,Xi=ti[1],ti[1]=fr,aa=ti[2],ti[2]=gr,Mn=ti[3],ti[3]=Zr,Un=Vr[0],Vr[0]=me,Ga=Vr[1],Vr[1]=Le,ma=Vr[2],Vr[2]=Ce,oa=Vr[3],Vr[3]=de,ka=ze.blend_enable,ze.blend_enable=te,so=ln[0],ln[0]=Se,Kr=ln[1],ln[1]=Te,Ia=ln[2],ln[2]=be,Yo=ln[3],ln[3]=He,fa=ze.depth_enable,ze.depth_enable=Ie,kn=xn.viewport,Ta=kn.x|0,ys=kn.y|0,uo="width"in kn?kn.width|0:xe.framebufferWidth-Ta,ls="height"in kn?kn.height|0:xe.framebufferHeight-ys,$a=Ei[0],Ei[0]=Ta,fo=Ei[1],Ei[1]=ys,mn=Ei[2],Ei[2]=uo,ra=Ei[3],Ei[3]=ls,wa=ze.scissor_enable,ze.scissor_enable=ge,ws=ze.stencil_enable,ze.stencil_enable=Be,Co=Re.profile,Co&&(Po=performance.now(),r.count++),Wi=xn.elements,gn=null,Ps=kr(Wi),Ps?gn=st.createStream(Wi):gn=st.getElements(Wi),Ha=ht.elements,ht.elements=gn,Sn=xn.offset,ao=ht.offset,ht.offset=Sn,Oa=xn.count,Ko=ht.count,ht.count=Oa,Qo=ht.primitive,ht.primitive=ce,Hi=cr[je],cr[je]=!1,Sa=cr[bt],cr[bt]=rt,Qa=xn.opacity,vn=cr[Ot],cr[Ot]=Qa,da=U.call(this,xe,xn,Xr),la=cr[it],cr[it]=da,vo=xe.pixelRatio,As=cr[Ke],cr[Ke]=vo,ps=xn.scale,co=cr[zt],cr[zt]=ps,mo=xn.scaleFract,No=cr[Mt],cr[Mt]=mo,jn=xn.translate,Go=cr[kt],cr[kt]=jn,Ys=xn.translateFract,qs=cr[$e],cr[$e]=Ys,Ns=xn.markerTexture,Ba=cr[De],cr[De]=Ns,ha=C.call(this,xe,xn,Xr),Vs=!1,Ya=1,_n=0,Vn=0,wo=0,Da=0,Xn=null,sn=0,$n=!1,Ka=5126,qn=0,Eo=0,Ja=0,kr(ha)?(Vs=!0,Xn=gt.createStream(34962,ha),Ka=Xn.dtype):(Xn=gt.getBuffer(ha),Xn?Ka=Xn.dtype:"constant"in ha?(Ya=2,typeof ha.constant=="number"?(_n=ha.constant,Vn=wo=Da=0):(_n=ha.constant.length>0?ha.constant[0]:0,Vn=ha.constant.length>1?ha.constant[1]:0,wo=ha.constant.length>2?ha.constant[2]:0,Da=ha.constant.length>3?ha.constant[3]:0)):(kr(ha.buffer)?Xn=gt.createStream(34962,ha.buffer):Xn=gt.getBuffer(ha.buffer),Ka="type"in ha?Ri[ha.type]:Xn.dtype,$n=!!ha.normalized,sn=ha.size|0,qn=ha.offset|0,Eo=ha.stride|0,Ja=ha.divisor|0)),lo=Me.state,Me.state=Ya,eo=Me.x,Me.x=_n,sa=Me.y,Me.y=Vn,es=Me.z,Me.z=wo,Na=Me.w,Me.w=Da,en=Me.buffer,Me.buffer=Xn,Pa=Me.size,Me.size=sn,to=Me.normalized,Me.normalized=$n,yo=Me.type,Me.type=Ka,Jo=Me.offset,Me.offset=qn,Ao=Me.stride,Me.stride=Eo,Rn=Me.divisor,Me.divisor=Ja,_a=x.call(this,xe,xn,Xr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,on=0,Oo=0,ko=0,kr(_a)?(Ws=!0,To=gt.createStream(34962,_a),qa=To.dtype):(To=gt.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(kr(_a.buffer)?To=gt.createStream(34962,_a.buffer):To=gt.getBuffer(_a.buffer),qa="type"in _a?Ri[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,on=_a.offset|0,Oo=_a.stride|0,ko=_a.divisor|0)),oo=oe.state,oe.state=Ca,za=oe.x,oe.x=Es,ea=oe.y,oe.y=Ts,rs=oe.z,oe.z=Ho,$s=oe.w,oe.w=Wa,us=oe.buffer,oe.buffer=To,Rs=oe.size,oe.size=ts,fl=oe.normalized,oe.normalized=Wo,as=oe.type,oe.type=qa,Ma=oe.offset,oe.offset=on,Qs=oe.stride,oe.stride=Oo,ho=oe.divisor,oe.divisor=ko,gs=A.call(this,xe,xn,Xr),Vo=!1,Ro=1,Lo=0,xs=0,ks=0,Ea=0,Jn=null,Bo=0,rl=!1,Gs=5126,bs=0,zs=0,$o=0,kr(gs)?(Vo=!0,Jn=gt.createStream(34962,gs),Gs=Jn.dtype):(Jn=gt.getBuffer(gs),Jn?Gs=Jn.dtype:"constant"in gs?(Ro=2,typeof gs.constant=="number"?(Lo=gs.constant,xs=ks=Ea=0):(Lo=gs.constant.length>0?gs.constant[0]:0,xs=gs.constant.length>1?gs.constant[1]:0,ks=gs.constant.length>2?gs.constant[2]:0,Ea=gs.constant.length>3?gs.constant[3]:0)):(kr(gs.buffer)?Jn=gt.createStream(34962,gs.buffer):Jn=gt.getBuffer(gs.buffer),Gs="type"in gs?Ri[gs.type]:Jn.dtype,rl=!!gs.normalized,Bo=gs.size|0,bs=gs.offset|0,zs=gs.stride|0,$o=gs.divisor|0)),Aa=Ne.state,Ne.state=Ro,os=Ne.x,Ne.x=Lo,_l=Ne.y,Ne.y=xs,Ss=Ne.z,Ne.z=ks,po=Ne.w,Ne.w=Ea,go=Ne.buffer,Ne.buffer=Jn,ss=Ne.size,Ne.size=Bo,qo=Ne.normalized,Ne.normalized=rl,zo=Ne.type,Ne.type=Gs,io=Ne.offset,Ne.offset=bs,Io=Ne.stride,Ne.stride=zs,Ra=Ne.divisor,Ne.divisor=$o,vs=S.call(this,xe,xn,Xr),fs=!1,cl=1,el=0,Hs=0,Do=0,tl=0,Fs=null,hl=0,Fa=!1,Ms=5126,jo=0,Ds=0,Is=0,kr(vs)?(fs=!0,Fs=gt.createStream(34962,vs),Ms=Fs.dtype):(Fs=gt.getBuffer(vs),Fs?Ms=Fs.dtype:"constant"in vs?(cl=2,typeof vs.constant=="number"?(el=vs.constant,Hs=Do=tl=0):(el=vs.constant.length>0?vs.constant[0]:0,Hs=vs.constant.length>1?vs.constant[1]:0,Do=vs.constant.length>2?vs.constant[2]:0,tl=vs.constant.length>3?vs.constant[3]:0)):(kr(vs.buffer)?Fs=gt.createStream(34962,vs.buffer):Fs=gt.getBuffer(vs.buffer),Ms="type"in vs?Ri[vs.type]:Fs.dtype,Fa=!!vs.normalized,hl=vs.size|0,jo=vs.offset|0,Ds=vs.stride|0,Is=vs.divisor|0)),Os=vt.state,vt.state=cl,St=vt.x,vt.x=el,Ut=vt.y,vt.y=Hs,xr=vt.z,vt.z=Do,dr=vt.w,vt.w=tl,Rr=vt.buffer,vt.buffer=Fs,yi=vt.size,vt.size=hl,Ti=vt.normalized,vt.normalized=Fa,ki=vt.type,vt.type=Ms,Ki=vt.offset,vt.offset=jo,Fn=vt.stride,vt.stride=Ds,Li=vt.divisor,vt.divisor=Is,hi=b.call(this,xe,xn,Xr),Ci=!1,Si=1,Gn=0,ta=0,ya=0,ia=0,pa=null,va=0,zn=!1,is=5126,Cs=0,Ks=0,dl=0,kr(hi)?(Ci=!0,pa=gt.createStream(34962,hi),is=pa.dtype):(pa=gt.getBuffer(hi),pa?is=pa.dtype:"constant"in hi?(Si=2,typeof hi.constant=="number"?(Gn=hi.constant,ta=ya=ia=0):(Gn=hi.constant.length>0?hi.constant[0]:0,ta=hi.constant.length>1?hi.constant[1]:0,ya=hi.constant.length>2?hi.constant[2]:0,ia=hi.constant.length>3?hi.constant[3]:0)):(kr(hi.buffer)?pa=gt.createStream(34962,hi.buffer):pa=gt.getBuffer(hi.buffer),is="type"in hi?Ri[hi.type]:pa.dtype,zn=!!hi.normalized,va=hi.size|0,Cs=hi.offset|0,Ks=hi.stride|0,dl=hi.divisor|0)),xl=lt.state,lt.state=Si,Bl=lt.x,lt.x=Gn,bl=lt.y,lt.y=ta,eu=lt.z,lt.z=ya,Zl=lt.w,lt.w=ia,Vl=lt.buffer,lt.buffer=pa,ja=lt.size,lt.size=va,ns=lt.normalized,lt.normalized=zn,Js=lt.type,lt.type=is,cs=lt.offset,lt.offset=Cs,sl=lt.stride,lt.stride=Ks,ll=lt.divisor,lt.divisor=dl,nl=f.call(this,xe,xn,Xr),zl=!1,Ml=1,Dl=0,Al=0,Ll=0,ms=0,Bs=null,Xl=0,Gl=!1,Nl=5126,ue=0,w=0,q=0,kr(nl)?(zl=!0,Bs=gt.createStream(34962,nl),Nl=Bs.dtype):(Bs=gt.getBuffer(nl),Bs?Nl=Bs.dtype:"constant"in nl?(Ml=2,typeof nl.constant=="number"?(Dl=nl.constant,Al=Ll=ms=0):(Dl=nl.constant.length>0?nl.constant[0]:0,Al=nl.constant.length>1?nl.constant[1]:0,Ll=nl.constant.length>2?nl.constant[2]:0,ms=nl.constant.length>3?nl.constant[3]:0)):(kr(nl.buffer)?Bs=gt.createStream(34962,nl.buffer):Bs=gt.getBuffer(nl.buffer),Nl="type"in nl?Ri[nl.type]:Bs.dtype,Gl=!!nl.normalized,Xl=nl.size|0,ue=nl.offset|0,w=nl.stride|0,q=nl.divisor|0)),Q=We.state,We.state=Ml,ee=We.x,We.x=Dl,fe=We.y,We.y=Al,Ue=We.z,We.z=Ll,at=We.w,We.w=ms,yt=We.buffer,We.buffer=Bs,Dt=We.size,We.size=Xl,Qt=We.normalized,We.normalized=Gl,rr=We.type,We.type=Nl,Mr=We.offset,We.offset=ue,Ur=We.stride,We.stride=w,he=We.divisor,We.divisor=q,Ae=h.call(this,xe,xn,Xr),qe=!1,Ge=1,ft=0,ot=0,mt=0,Gt=0,er=null,sr=0,wr=!1,Ir=5126,ri=0,si=0,Mi=0,kr(Ae)?(qe=!0,er=gt.createStream(34962,Ae),Ir=er.dtype):(er=gt.getBuffer(Ae),er?Ir=er.dtype:"constant"in Ae?(Ge=2,typeof Ae.constant=="number"?(ft=Ae.constant,ot=mt=Gt=0):(ft=Ae.constant.length>0?Ae.constant[0]:0,ot=Ae.constant.length>1?Ae.constant[1]:0,mt=Ae.constant.length>2?Ae.constant[2]:0,Gt=Ae.constant.length>3?Ae.constant[3]:0)):(kr(Ae.buffer)?er=gt.createStream(34962,Ae.buffer):er=gt.getBuffer(Ae.buffer),Ir="type"in Ae?Ri[Ae.type]:er.dtype,wr=!!Ae.normalized,sr=Ae.size|0,ri=Ae.offset|0,si=Ae.stride|0,Mi=Ae.divisor|0)),cn=Ve.state,Ve.state=Ge,Zn=Ve.x,Ve.x=ft,Yn=Ve.y,Ve.y=ot,Ua=Ve.z,Ve.z=mt,Fo=Ve.w,Ve.w=Gt,vl=Ve.buffer,Ve.buffer=er,Us=Ve.size,Ve.size=sr,ml=Ve.normalized,Ve.normalized=wr,au=Ve.type,Ve.type=Ir,Sl=Ve.offset,Ve.offset=ri,Yl=Ve.stride,Ve.stride=si,ql=Ve.divisor,Ve.divisor=Mi,ou=u.call(this,xe,xn,Xr),Pu=!1,nu=1,ru=0,Hu=0,$u=0,Ku=0,Wu=null,ju=0,sf=!1,_f=5126,Qu=0,ef=0,Z=0,kr(ou)?(Pu=!0,Wu=gt.createStream(34962,ou),_f=Wu.dtype):(Wu=gt.getBuffer(ou),Wu?_f=Wu.dtype:"constant"in ou?(nu=2,typeof ou.constant=="number"?(ru=ou.constant,Hu=$u=Ku=0):(ru=ou.constant.length>0?ou.constant[0]:0,Hu=ou.constant.length>1?ou.constant[1]:0,$u=ou.constant.length>2?ou.constant[2]:0,Ku=ou.constant.length>3?ou.constant[3]:0)):(kr(ou.buffer)?Wu=gt.createStream(34962,ou.buffer):Wu=gt.getBuffer(ou.buffer),_f="type"in ou?Ri[ou.type]:Wu.dtype,sf=!!ou.normalized,ju=ou.size|0,Qu=ou.offset|0,ef=ou.stride|0,Z=ou.divisor|0)),le=et.state,et.state=nu,ke=et.x,et.x=ru,Ye=et.y,et.y=Hu,nt=et.z,et.z=$u,ut=et.w,et.w=Ku,Ht=et.buffer,et.buffer=Wu,wt=et.size,et.size=ju,lr=et.normalized,et.normalized=sf,Cr=et.type,et.type=_f,zr=et.offset,et.offset=Qu,ui=et.stride,et.stride=ef,$r=et.divisor,et.divisor=Z,Oi=p.call(this,xe,xn,Xr),un=!1,pi=1,Pi=0,ji=0,pn=0,an=0,bi=null,xo=0,no=!1,Xo=5126,js=0,El=0,Pl=0,kr(Oi)?(un=!0,bi=gt.createStream(34962,Oi),Xo=bi.dtype):(bi=gt.getBuffer(Oi),bi?Xo=bi.dtype:"constant"in Oi?(pi=2,typeof Oi.constant=="number"?(Pi=Oi.constant,ji=pn=an=0):(Pi=Oi.constant.length>0?Oi.constant[0]:0,ji=Oi.constant.length>1?Oi.constant[1]:0,pn=Oi.constant.length>2?Oi.constant[2]:0,an=Oi.constant.length>3?Oi.constant[3]:0)):(kr(Oi.buffer)?bi=gt.createStream(34962,Oi.buffer):bi=gt.getBuffer(Oi.buffer),Xo="type"in Oi?Ri[Oi.type]:bi.dtype,no=!!Oi.normalized,xo=Oi.size|0,js=Oi.offset|0,El=Oi.stride|0,Pl=Oi.divisor|0)),pu=tt.state,tt.state=pi,Il=tt.x,tt.x=Pi,fu=tt.y,tt.y=ji,Xu=tt.z,tt.z=pn,Vu=tt.w,tt.w=an,tf=tt.buffer,tt.buffer=bi,ds=tt.size,tt.size=xo,Wl=tt.normalized,tt.normalized=no,Au=tt.type,tt.type=Xo,Tu=tt.offset,tt.offset=js,lf=tt.stride,tt.stride=El,hf=tt.divisor,tt.divisor=Pl,Mf=xt.vert,xt.vert=Lt,pf=xt.frag,xt.frag=jt,Re.dirty=!0,xi(xe,xn,Xr),xe.viewportWidth=wi,xe.viewportHeight=$i,ti[0]=ni,ti[1]=Xi,ti[2]=aa,ti[3]=Mn,Vr[0]=Un,Vr[1]=Ga,Vr[2]=ma,Vr[3]=oa,ze.blend_enable=ka,ln[0]=so,ln[1]=Kr,ln[2]=Ia,ln[3]=Yo,ze.depth_enable=fa,Ei[0]=$a,Ei[1]=fo,Ei[2]=mn,Ei[3]=ra,ze.scissor_enable=wa,ze.stencil_enable=ws,Co&&(r.cpuTime+=performance.now()-Po),Ps&&st.destroyStream(gn),ht.elements=Ha,ht.offset=ao,ht.count=Ko,ht.primitive=Qo,cr[je]=Hi,cr[bt]=Sa,cr[Ot]=vn,cr[it]=la,cr[Ke]=As,cr[zt]=co,cr[Mt]=No,cr[kt]=Go,cr[$e]=qs,cr[De]=Ba,Vs&>.destroyStream(Xn),Me.state=lo,Me.x=eo,Me.y=sa,Me.z=es,Me.w=Na,Me.buffer=en,Me.size=Pa,Me.normalized=to,Me.type=yo,Me.offset=Jo,Me.stride=Ao,Me.divisor=Rn,Ws&>.destroyStream(To),oe.state=oo,oe.x=za,oe.y=ea,oe.z=rs,oe.w=$s,oe.buffer=us,oe.size=Rs,oe.normalized=fl,oe.type=as,oe.offset=Ma,oe.stride=Qs,oe.divisor=ho,Vo&>.destroyStream(Jn),Ne.state=Aa,Ne.x=os,Ne.y=_l,Ne.z=Ss,Ne.w=po,Ne.buffer=go,Ne.size=ss,Ne.normalized=qo,Ne.type=zo,Ne.offset=io,Ne.stride=Io,Ne.divisor=Ra,fs&>.destroyStream(Fs),vt.state=Os,vt.x=St,vt.y=Ut,vt.z=xr,vt.w=dr,vt.buffer=Rr,vt.size=yi,vt.normalized=Ti,vt.type=ki,vt.offset=Ki,vt.stride=Fn,vt.divisor=Li,Ci&>.destroyStream(pa),lt.state=xl,lt.x=Bl,lt.y=bl,lt.z=eu,lt.w=Zl,lt.buffer=Vl,lt.size=ja,lt.normalized=ns,lt.type=Js,lt.offset=cs,lt.stride=sl,lt.divisor=ll,zl&>.destroyStream(Bs),We.state=Q,We.x=ee,We.y=fe,We.z=Ue,We.w=at,We.buffer=yt,We.size=Dt,We.normalized=Qt,We.type=rr,We.offset=Mr,We.stride=Ur,We.divisor=he,qe&>.destroyStream(er),Ve.state=cn,Ve.x=Zn,Ve.y=Yn,Ve.z=Ua,Ve.w=Fo,Ve.buffer=vl,Ve.size=Us,Ve.normalized=ml,Ve.type=au,Ve.offset=Sl,Ve.stride=Yl,Ve.divisor=ql,Pu&>.destroyStream(Wu),et.state=le,et.x=ke,et.y=Ye,et.z=nt,et.w=ut,et.buffer=Ht,et.size=wt,et.normalized=lr,et.type=Cr,et.offset=zr,et.stride=ui,et.divisor=$r,un&>.destroyStream(bi),tt.state=pu,tt.x=Il,tt.y=fu,tt.z=Xu,tt.w=Vu,tt.buffer=tf,tt.size=ds,tt.normalized=Wl,tt.type=Au,tt.offset=Tu,tt.stride=lf,tt.divisor=hf,xt.vert=Mf,xt.frag=pf,Re.dirty=!0},batch:function(xn,xi){var Xr,dt,$t,fr,gr,Zr,wi;if(Xr=ii.angle_instanced_arrays,dt=Er.next,dt!==Er.cur&&(dt?Pe.bindFramebuffer(36160,dt.framebuffer):Pe.bindFramebuffer(36160,null),Er.cur=dt),Re.dirty){var $i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao;$i=ze.dither,$i!==Re.dither&&($i?Pe.enable(3024):Pe.disable(3024),Re.dither=$i),ni=Bi[0],Xi=Bi[1],(ni!==Di[0]||Xi!==Di[1])&&(Pe.blendEquationSeparate(ni,Xi),Di[0]=ni,Di[1]=Xi),aa=ze.depth_func,aa!==Re.depth_func&&(Pe.depthFunc(aa),Re.depth_func=aa),Mn=qr[0],Un=qr[1],(Mn!==_i[0]||Un!==_i[1])&&(Pe.depthRange(Mn,Un),_i[0]=Mn,_i[1]=Un),Ga=ze.depth_mask,Ga!==Re.depth_mask&&(Pe.depthMask(Ga),Re.depth_mask=Ga),ma=zi[0],oa=zi[1],ka=zi[2],so=zi[3],(ma!==Rt[0]||oa!==Rt[1]||ka!==Rt[2]||so!==Rt[3])&&(Pe.colorMask(ma,oa,ka,so),Rt[0]=ma,Rt[1]=oa,Rt[2]=ka,Rt[3]=so),Kr=ze.cull_enable,Kr!==Re.cull_enable&&(Kr?Pe.enable(2884):Pe.disable(2884),Re.cull_enable=Kr),Ia=ze.cull_face,Ia!==Re.cull_face&&(Pe.cullFace(Ia),Re.cull_face=Ia),Yo=ze.frontFace,Yo!==Re.frontFace&&(Pe.frontFace(Yo),Re.frontFace=Yo),fa=ze.lineWidth,fa!==Re.lineWidth&&(Pe.lineWidth(fa),Re.lineWidth=fa),kn=ze.polygonOffset_enable,kn!==Re.polygonOffset_enable&&(kn?Pe.enable(32823):Pe.disable(32823),Re.polygonOffset_enable=kn),Ta=_t[0],ys=_t[1],(Ta!==qt[0]||ys!==qt[1])&&(Pe.polygonOffset(Ta,ys),qt[0]=Ta,qt[1]=ys),uo=ze.sample_alpha,uo!==Re.sample_alpha&&(uo?Pe.enable(32926):Pe.disable(32926),Re.sample_alpha=uo),ls=ze.sample_enable,ls!==Re.sample_enable&&(ls?Pe.enable(32928):Pe.disable(32928),Re.sample_enable=ls),$a=Nt[0],fo=Nt[1],($a!==mr[0]||fo!==mr[1])&&(Pe.sampleCoverage($a,fo),mr[0]=$a,mr[1]=fo),mn=ze.stencil_mask,mn!==Re.stencil_mask&&(Pe.stencilMask(mn),Re.stencil_mask=mn),ra=Lr[0],wa=Lr[1],ws=Lr[2],(ra!==Nr[0]||wa!==Nr[1]||ws!==Nr[2])&&(Pe.stencilFunc(ra,wa,ws),Nr[0]=ra,Nr[1]=wa,Nr[2]=ws),Co=Fr[0],Po=Fr[1],Wi=Fr[2],gn=Fr[3],(Co!==Gr[0]||Po!==Gr[1]||Wi!==Gr[2]||gn!==Gr[3])&&(Pe.stencilOpSeparate(Co,Po,Wi,gn),Gr[0]=Co,Gr[1]=Po,Gr[2]=Wi,Gr[3]=gn),Ps=Hr[0],Ha=Hr[1],Sn=Hr[2],ao=Hr[3],(Ps!==mi[0]||Ha!==mi[1]||Sn!==mi[2]||ao!==mi[3])&&(Pe.stencilOpSeparate(Ps,Ha,Sn,ao),mi[0]=Ps,mi[1]=Ha,mi[2]=Sn,mi[3]=ao)}Pe.blendColor(0,0,0,1),Ai[0]=0,Ai[1]=0,Ai[2]=0,Ai[3]=1,or?Pe.enable(3042):Pe.disable(3042),Re.blend_enable=or,Pe.blendFuncSeparate(770,771,773,1),hn[0]=770,hn[1]=771,hn[2]=773,hn[3]=1,yr?Pe.enable(2929):Pe.disable(2929),Re.depth_enable=yr,vr?Pe.enable(3089):Pe.disable(3089),Re.scissor_enable=vr,Vt?Pe.enable(2960):Pe.disable(2960),Re.stencil_enable=Vt,$t=Re.profile,$t&&(fr=performance.now(),r.count+=xi),Pe.useProgram(s.program),gr=ii.angle_instanced_arrays;var Oa;for(br.setVAO(null),Pe.uniform1i(P.location,!1),Pe.uniform1i(G.location,j.bind()),Oa=ht.instances,Zr=0;Zr0?mo.constant[0]:0,Ys=mo.constant.length>1?mo.constant[1]:0,qs=mo.constant.length>2?mo.constant[2]:0,Ns=mo.constant.length>3?mo.constant[3]:0)):(kr(mo.buffer)?Ba=gt.createStream(34962,mo.buffer):Ba=gt.getBuffer(mo.buffer),Ya="type"in mo?Ri[mo.type]:Ba.dtype,Vs=!!mo.normalized,ha=mo.size|0,_n=mo.offset|0,Vn=mo.stride|0,wo=mo.divisor|0)),Da=l.location,Xn=pr[Da],jn===1?(Xn.buffer||Pe.enableVertexAttribArray(Da),sn=ha||4,(Xn.type!==Ya||Xn.size!==sn||Xn.buffer!==Ba||Xn.normalized!==Vs||Xn.offset!==_n||Xn.stride!==Vn)&&(Pe.bindBuffer(34962,Ba.buffer),Pe.vertexAttribPointer(Da,sn,Ya,Vs,Vn,_n),Xn.type=Ya,Xn.size=sn,Xn.buffer=Ba,Xn.normalized=Vs,Xn.offset=_n,Xn.stride=Vn),Xn.divisor!==wo&&(gr.vertexAttribDivisorANGLE(Da,wo),Xn.divisor=wo)):(Xn.buffer&&(Pe.disableVertexAttribArray(Da),Xn.buffer=null),(Xn.x!==Go||Xn.y!==Ys||Xn.z!==qs||Xn.w!==Ns)&&(Pe.vertexAttrib4f(Da,Go,Ys,qs,Ns),Xn.x=Go,Xn.y=Ys,Xn.z=qs,Xn.w=Ns)),$n=f.call(this,xe,wi,Zr),Ka=!1,qn=1,Eo=0,Ja=0,lo=0,eo=0,sa=null,es=0,Na=!1,en=5126,Pa=0,to=0,yo=0,kr($n)?(Ka=!0,sa=gt.createStream(34962,$n),en=sa.dtype):(sa=gt.getBuffer($n),sa?en=sa.dtype:"constant"in $n?(qn=2,typeof $n.constant=="number"?(Eo=$n.constant,Ja=lo=eo=0):(Eo=$n.constant.length>0?$n.constant[0]:0,Ja=$n.constant.length>1?$n.constant[1]:0,lo=$n.constant.length>2?$n.constant[2]:0,eo=$n.constant.length>3?$n.constant[3]:0)):(kr($n.buffer)?sa=gt.createStream(34962,$n.buffer):sa=gt.getBuffer($n.buffer),en="type"in $n?Ri[$n.type]:sa.dtype,Na=!!$n.normalized,es=$n.size|0,Pa=$n.offset|0,to=$n.stride|0,yo=$n.divisor|0)),Jo=c.location,Ao=pr[Jo],qn===1?(Ao.buffer||Pe.enableVertexAttribArray(Jo),Rn=es||1,(Ao.type!==en||Ao.size!==Rn||Ao.buffer!==sa||Ao.normalized!==Na||Ao.offset!==Pa||Ao.stride!==to)&&(Pe.bindBuffer(34962,sa.buffer),Pe.vertexAttribPointer(Jo,Rn,en,Na,to,Pa),Ao.type=en,Ao.size=Rn,Ao.buffer=sa,Ao.normalized=Na,Ao.offset=Pa,Ao.stride=to),Ao.divisor!==yo&&(gr.vertexAttribDivisorANGLE(Jo,yo),Ao.divisor=yo)):(Ao.buffer&&(Pe.disableVertexAttribArray(Jo),Ao.buffer=null),(Ao.x!==Eo||Ao.y!==Ja||Ao.z!==lo||Ao.w!==eo)&&(Pe.vertexAttrib4f(Jo,Eo,Ja,lo,eo),Ao.x=Eo,Ao.y=Ja,Ao.z=lo,Ao.w=eo)),_a=h.call(this,xe,wi,Zr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,on=0,Oo=0,ko=0,kr(_a)?(Ws=!0,To=gt.createStream(34962,_a),qa=To.dtype):(To=gt.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(kr(_a.buffer)?To=gt.createStream(34962,_a.buffer):To=gt.getBuffer(_a.buffer),qa="type"in _a?Ri[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,on=_a.offset|0,Oo=_a.stride|0,ko=_a.divisor|0)),oo=d.location,za=pr[oo],Ca===1?(za.buffer||Pe.enableVertexAttribArray(oo),ea=ts||4,(za.type!==qa||za.size!==ea||za.buffer!==To||za.normalized!==Wo||za.offset!==on||za.stride!==Oo)&&(Pe.bindBuffer(34962,To.buffer),Pe.vertexAttribPointer(oo,ea,qa,Wo,Oo,on),za.type=qa,za.size=ea,za.buffer=To,za.normalized=Wo,za.offset=on,za.stride=Oo),za.divisor!==ko&&(gr.vertexAttribDivisorANGLE(oo,ko),za.divisor=ko)):(za.buffer&&(Pe.disableVertexAttribArray(oo),za.buffer=null),(za.x!==Es||za.y!==Ts||za.z!==Ho||za.w!==Wa)&&(Pe.vertexAttrib4f(oo,Es,Ts,Ho,Wa),za.x=Es,za.y=Ts,za.z=Ho,za.w=Wa)),rs=p.call(this,xe,wi,Zr),$s=!1,us=1,Rs=0,fl=0,as=0,Ma=0,Qs=null,ho=0,gs=!1,Vo=5126,Ro=0,Lo=0,xs=0,kr(rs)?($s=!0,Qs=gt.createStream(34962,rs),Vo=Qs.dtype):(Qs=gt.getBuffer(rs),Qs?Vo=Qs.dtype:"constant"in rs?(us=2,typeof rs.constant=="number"?(Rs=rs.constant,fl=as=Ma=0):(Rs=rs.constant.length>0?rs.constant[0]:0,fl=rs.constant.length>1?rs.constant[1]:0,as=rs.constant.length>2?rs.constant[2]:0,Ma=rs.constant.length>3?rs.constant[3]:0)):(kr(rs.buffer)?Qs=gt.createStream(34962,rs.buffer):Qs=gt.getBuffer(rs.buffer),Vo="type"in rs?Ri[rs.type]:Qs.dtype,gs=!!rs.normalized,ho=rs.size|0,Ro=rs.offset|0,Lo=rs.stride|0,xs=rs.divisor|0)),ks=y.location,Ea=pr[ks],us===1?(Ea.buffer||Pe.enableVertexAttribArray(ks),Jn=ho||1,(Ea.type!==Vo||Ea.size!==Jn||Ea.buffer!==Qs||Ea.normalized!==gs||Ea.offset!==Ro||Ea.stride!==Lo)&&(Pe.bindBuffer(34962,Qs.buffer),Pe.vertexAttribPointer(ks,Jn,Vo,gs,Lo,Ro),Ea.type=Vo,Ea.size=Jn,Ea.buffer=Qs,Ea.normalized=gs,Ea.offset=Ro,Ea.stride=Lo),Ea.divisor!==xs&&(gr.vertexAttribDivisorANGLE(ks,xs),Ea.divisor=xs)):(Ea.buffer&&(Pe.disableVertexAttribArray(ks),Ea.buffer=null),(Ea.x!==Rs||Ea.y!==fl||Ea.z!==as||Ea.w!==Ma)&&(Pe.vertexAttrib4f(ks,Rs,fl,as,Ma),Ea.x=Rs,Ea.y=fl,Ea.z=as,Ea.w=Ma)),Bo=b.call(this,xe,wi,Zr),rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,kr(Bo)?(rl=!0,os=gt.createStream(34962,Bo),po=os.dtype):(os=gt.getBuffer(Bo),os?po=os.dtype:"constant"in Bo?(Gs=2,typeof Bo.constant=="number"?(bs=Bo.constant,zs=$o=Aa=0):(bs=Bo.constant.length>0?Bo.constant[0]:0,zs=Bo.constant.length>1?Bo.constant[1]:0,$o=Bo.constant.length>2?Bo.constant[2]:0,Aa=Bo.constant.length>3?Bo.constant[3]:0)):(kr(Bo.buffer)?os=gt.createStream(34962,Bo.buffer):os=gt.getBuffer(Bo.buffer),po="type"in Bo?Ri[Bo.type]:os.dtype,Ss=!!Bo.normalized,_l=Bo.size|0,go=Bo.offset|0,ss=Bo.stride|0,qo=Bo.divisor|0)),zo=v.location,io=pr[zo],Gs===1?(io.buffer||Pe.enableVertexAttribArray(zo),Io=_l||1,(io.type!==po||io.size!==Io||io.buffer!==os||io.normalized!==Ss||io.offset!==go||io.stride!==ss)&&(Pe.bindBuffer(34962,os.buffer),Pe.vertexAttribPointer(zo,Io,po,Ss,ss,go),io.type=po,io.size=Io,io.buffer=os,io.normalized=Ss,io.offset=go,io.stride=ss),io.divisor!==qo&&(gr.vertexAttribDivisorANGLE(zo,qo),io.divisor=qo)):(io.buffer&&(Pe.disableVertexAttribArray(zo),io.buffer=null),(io.x!==bs||io.y!==zs||io.z!==$o||io.w!==Aa)&&(Pe.vertexAttrib4f(zo,bs,zs,$o,Aa),io.x=bs,io.y=zs,io.z=$o,io.w=Aa)),Ra=C.call(this,xe,wi,Zr),vs=!1,fs=1,cl=0,el=0,Hs=0,Do=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Ds=0,kr(Ra)?(vs=!0,tl=gt.createStream(34962,Ra),Fa=tl.dtype):(tl=gt.getBuffer(Ra),tl?Fa=tl.dtype:"constant"in Ra?(fs=2,typeof Ra.constant=="number"?(cl=Ra.constant,el=Hs=Do=0):(cl=Ra.constant.length>0?Ra.constant[0]:0,el=Ra.constant.length>1?Ra.constant[1]:0,Hs=Ra.constant.length>2?Ra.constant[2]:0,Do=Ra.constant.length>3?Ra.constant[3]:0)):(kr(Ra.buffer)?tl=gt.createStream(34962,Ra.buffer):tl=gt.getBuffer(Ra.buffer),Fa="type"in Ra?Ri[Ra.type]:tl.dtype,hl=!!Ra.normalized,Fs=Ra.size|0,Ms=Ra.offset|0,jo=Ra.stride|0,Ds=Ra.divisor|0)),Is=M.location,Os=pr[Is],fs===1?(Os.buffer||Pe.enableVertexAttribArray(Is),St=Fs||1,(Os.type!==Fa||Os.size!==St||Os.buffer!==tl||Os.normalized!==hl||Os.offset!==Ms||Os.stride!==jo)&&(Pe.bindBuffer(34962,tl.buffer),Pe.vertexAttribPointer(Is,St,Fa,hl,jo,Ms),Os.type=Fa,Os.size=St,Os.buffer=tl,Os.normalized=hl,Os.offset=Ms,Os.stride=jo),Os.divisor!==Ds&&(gr.vertexAttribDivisorANGLE(Is,Ds),Os.divisor=Ds)):(Os.buffer&&(Pe.disableVertexAttribArray(Is),Os.buffer=null),(Os.x!==cl||Os.y!==el||Os.z!==Hs||Os.w!==Do)&&(Pe.vertexAttrib4f(Is,cl,el,Hs,Do),Os.x=cl,Os.y=el,Os.z=Hs,Os.w=Do)),Ut=A.call(this,xe,wi,Zr),xr=!1,dr=1,Rr=0,yi=0,Ti=0,ki=0,Ki=null,Fn=0,Li=!1,hi=5126,Ci=0,Si=0,Gn=0,kr(Ut)?(xr=!0,Ki=gt.createStream(34962,Ut),hi=Ki.dtype):(Ki=gt.getBuffer(Ut),Ki?hi=Ki.dtype:"constant"in Ut?(dr=2,typeof Ut.constant=="number"?(Rr=Ut.constant,yi=Ti=ki=0):(Rr=Ut.constant.length>0?Ut.constant[0]:0,yi=Ut.constant.length>1?Ut.constant[1]:0,Ti=Ut.constant.length>2?Ut.constant[2]:0,ki=Ut.constant.length>3?Ut.constant[3]:0)):(kr(Ut.buffer)?Ki=gt.createStream(34962,Ut.buffer):Ki=gt.getBuffer(Ut.buffer),hi="type"in Ut?Ri[Ut.type]:Ki.dtype,Li=!!Ut.normalized,Fn=Ut.size|0,Ci=Ut.offset|0,Si=Ut.stride|0,Gn=Ut.divisor|0)),ta=L.location,ya=pr[ta],dr===1?(ya.buffer||Pe.enableVertexAttribArray(ta),ia=Fn||1,(ya.type!==hi||ya.size!==ia||ya.buffer!==Ki||ya.normalized!==Li||ya.offset!==Ci||ya.stride!==Si)&&(Pe.bindBuffer(34962,Ki.buffer),Pe.vertexAttribPointer(ta,ia,hi,Li,Si,Ci),ya.type=hi,ya.size=ia,ya.buffer=Ki,ya.normalized=Li,ya.offset=Ci,ya.stride=Si),ya.divisor!==Gn&&(gr.vertexAttribDivisorANGLE(ta,Gn),ya.divisor=Gn)):(ya.buffer&&(Pe.disableVertexAttribArray(ta),ya.buffer=null),(ya.x!==Rr||ya.y!==yi||ya.z!==Ti||ya.w!==ki)&&(Pe.vertexAttrib4f(ta,Rr,yi,Ti,ki),ya.x=Rr,ya.y=yi,ya.z=Ti,ya.w=ki)),pa=x.call(this,xe,wi,Zr),va=!1,zn=1,is=0,Cs=0,Ks=0,dl=0,xl=null,Bl=0,bl=!1,eu=5126,Zl=0,Vl=0,ja=0,kr(pa)?(va=!0,xl=gt.createStream(34962,pa),eu=xl.dtype):(xl=gt.getBuffer(pa),xl?eu=xl.dtype:"constant"in pa?(zn=2,typeof pa.constant=="number"?(is=pa.constant,Cs=Ks=dl=0):(is=pa.constant.length>0?pa.constant[0]:0,Cs=pa.constant.length>1?pa.constant[1]:0,Ks=pa.constant.length>2?pa.constant[2]:0,dl=pa.constant.length>3?pa.constant[3]:0)):(kr(pa.buffer)?xl=gt.createStream(34962,pa.buffer):xl=gt.getBuffer(pa.buffer),eu="type"in pa?Ri[pa.type]:xl.dtype,bl=!!pa.normalized,Bl=pa.size|0,Zl=pa.offset|0,Vl=pa.stride|0,ja=pa.divisor|0)),ns=k.location,Js=pr[ns],zn===1?(Js.buffer||Pe.enableVertexAttribArray(ns),cs=Bl||1,(Js.type!==eu||Js.size!==cs||Js.buffer!==xl||Js.normalized!==bl||Js.offset!==Zl||Js.stride!==Vl)&&(Pe.bindBuffer(34962,xl.buffer),Pe.vertexAttribPointer(ns,cs,eu,bl,Vl,Zl),Js.type=eu,Js.size=cs,Js.buffer=xl,Js.normalized=bl,Js.offset=Zl,Js.stride=Vl),Js.divisor!==ja&&(gr.vertexAttribDivisorANGLE(ns,ja),Js.divisor=ja)):(Js.buffer&&(Pe.disableVertexAttribArray(ns),Js.buffer=null),(Js.x!==is||Js.y!==Cs||Js.z!==Ks||Js.w!==dl)&&(Pe.vertexAttrib4f(ns,is,Cs,Ks,dl),Js.x=is,Js.y=Cs,Js.z=Ks,Js.w=dl)),sl=S.call(this,xe,wi,Zr),ll=!1,nl=1,zl=0,Ml=0,Dl=0,Al=0,Ll=null,ms=0,Bs=!1,Xl=5126,Gl=0,Nl=0,ue=0,kr(sl)?(ll=!0,Ll=gt.createStream(34962,sl),Xl=Ll.dtype):(Ll=gt.getBuffer(sl),Ll?Xl=Ll.dtype:"constant"in sl?(nl=2,typeof sl.constant=="number"?(zl=sl.constant,Ml=Dl=Al=0):(zl=sl.constant.length>0?sl.constant[0]:0,Ml=sl.constant.length>1?sl.constant[1]:0,Dl=sl.constant.length>2?sl.constant[2]:0,Al=sl.constant.length>3?sl.constant[3]:0)):(kr(sl.buffer)?Ll=gt.createStream(34962,sl.buffer):Ll=gt.getBuffer(sl.buffer),Xl="type"in sl?Ri[sl.type]:Ll.dtype,Bs=!!sl.normalized,ms=sl.size|0,Gl=sl.offset|0,Nl=sl.stride|0,ue=sl.divisor|0)),w=m.location,q=pr[w],nl===1?(q.buffer||Pe.enableVertexAttribArray(w),Q=ms||1,(q.type!==Xl||q.size!==Q||q.buffer!==Ll||q.normalized!==Bs||q.offset!==Gl||q.stride!==Nl)&&(Pe.bindBuffer(34962,Ll.buffer),Pe.vertexAttribPointer(w,Q,Xl,Bs,Nl,Gl),q.type=Xl,q.size=Q,q.buffer=Ll,q.normalized=Bs,q.offset=Gl,q.stride=Nl),q.divisor!==ue&&(gr.vertexAttribDivisorANGLE(w,ue),q.divisor=ue)):(q.buffer&&(Pe.disableVertexAttribArray(w),q.buffer=null),(q.x!==zl||q.y!==Ml||q.z!==Dl||q.w!==Al)&&(Pe.vertexAttrib4f(w,zl,Ml,Dl,Al),q.x=zl,q.y=Ml,q.z=Dl,q.w=Al)),ee=wi.markerTexture,ee&&ee._reglType==="framebuffer"&&(ee=ee.color[0]),fe=ee._texture,Pe.uniform1i(E.location,fe.bind()),Ue=wi.opacity,(!Zr||at!==Ue)&&(at=Ue,Pe.uniform1f(O.location,Ue)),yt=U.call(this,xe,wi,Zr),Dt=yt[0],rr=yt[1],(!Zr||Qt!==Dt||Mr!==rr)&&(Qt=Dt,Mr=rr,Pe.uniform2f(F.location,Dt,rr)),Ur=xe.pixelRatio,(!Zr||he!==Ur)&&(he=Ur,Pe.uniform1f(W.location,Ur)),Ae=wi.scale,qe=Ae[0],ft=Ae[1],(!Zr||Ge!==qe||ot!==ft)&&(Ge=qe,ot=ft,Pe.uniform2f(N.location,qe,ft)),mt=wi.scaleFract,Gt=mt[0],sr=mt[1],(!Zr||er!==Gt||wr!==sr)&&(er=Gt,wr=sr,Pe.uniform2f(H.location,Gt,sr)),Ir=wi.translate,ri=Ir[0],Mi=Ir[1],(!Zr||si!==ri||cn!==Mi)&&(si=ri,cn=Mi,Pe.uniform2f(re.location,ri,Mi)),Zn=wi.translateFract,Yn=Zn[0],Fo=Zn[1],(!Zr||Ua!==Yn||vl!==Fo)&&(Ua=Yn,vl=Fo,Pe.uniform2f(ae.location,Yn,Fo)),Us=wi.elements,ml=null,au=kr(Us),au?ml=st.createStream(Us):ml=st.getElements(Us),ml&&Pe.bindBuffer(34963,ml.buffer.buffer),Sl=wi.offset,Yl=wi.count,Yl&&(Oa>0?ml?gr.drawElementsInstancedANGLE(0,Yl,ml.type,Sl<<(ml.type-5121>>1),Oa):gr.drawArraysInstancedANGLE(0,Sl,Yl,Oa):Oa<0&&(ml?Pe.drawElements(0,Yl,ml.type,Sl<<(ml.type-5121>>1)):Pe.drawArrays(0,Sl,Yl)),xe.viewportWidth=vn,xe.viewportHeight=da,No&>.destroyStream(Ba),Ka&>.destroyStream(sa),Ws&>.destroyStream(To),$s&>.destroyStream(Qs),rl&>.destroyStream(os),vs&>.destroyStream(tl),xr&>.destroyStream(Ki),va&>.destroyStream(xl),ll&>.destroyStream(Ll),fe.unbind(),au&&st.destroyStream(ml))}j.unbind(),Re.dirty=!0,br.setVAO(null),$t&&(r.cpuTime+=performance.now()-fr)}}}});var N9=we((vbr,c7e)=>{c7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr){"use strict";var Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri;return Vt=t.gl,Pe=t.context,xe=t.strings,Oe=t.next,ze=t.current,Re=t.draw,ht=t.elements,st=t.buffer,gt=t.shader,xt=t.attributes,pr=t.vao,br=t.uniforms,cr=t.framebuffer,Er=t.extensions,ii=t.timer,jr=t.isBufferArgs,kr=Oe.blend_color,Vr=ze.blend_color,Ai=Oe.blend_equation,Bi=ze.blend_equation,Di=Oe.blend_func,ln=ze.blend_func,hn=Oe.depth_range,qr=ze.depth_range,_i=Oe.colorMask,zi=ze.colorMask,Rt=Oe.polygonOffset_offset,_t=ze.polygonOffset_offset,qt=Oe.sample_coverage,Nt=ze.sample_coverage,mr=Oe.stencil_func,Lr=ze.stencil_func,Nr=Oe.stencil_opFront,Fr=ze.stencil_opFront,Gr=Oe.stencil_opBack,Hr=ze.stencil_opBack,mi=Oe.scissor_box,Ei=ze.scissor_box,Vi=Oe.viewport,ti=ze.viewport,Qi={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},oi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Fi={add:32774,subtract:32778,"reverse subtract":32779},rn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},tn={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ri={cw:2304,ccw:2305},{draw:function(Ii){var xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl;if(xn=Er.angle_instanced_arrays,xi=cr.next,xi!==cr.cur&&(xi?Vt.bindFramebuffer(36160,xi.framebuffer):Vt.bindFramebuffer(36160,null),cr.cur=xi),ze.dirty){var ll,nl,zl,Ml,Dl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt;ll=Oe.dither,ll!==ze.dither&&(ll?Vt.enable(3024):Vt.disable(3024),ze.dither=ll),nl=Ai[0],zl=Ai[1],(nl!==Bi[0]||zl!==Bi[1])&&(Vt.blendEquationSeparate(nl,zl),Bi[0]=nl,Bi[1]=zl),Ml=Oe.depth_func,Ml!==ze.depth_func&&(Vt.depthFunc(Ml),ze.depth_func=Ml),Dl=hn[0],Al=hn[1],(Dl!==qr[0]||Al!==qr[1])&&(Vt.depthRange(Dl,Al),qr[0]=Dl,qr[1]=Al),Ll=Oe.depth_mask,Ll!==ze.depth_mask&&(Vt.depthMask(Ll),ze.depth_mask=Ll),ms=_i[0],Bs=_i[1],Xl=_i[2],Gl=_i[3],(ms!==zi[0]||Bs!==zi[1]||Xl!==zi[2]||Gl!==zi[3])&&(Vt.colorMask(ms,Bs,Xl,Gl),zi[0]=ms,zi[1]=Bs,zi[2]=Xl,zi[3]=Gl),Nl=Oe.cull_enable,Nl!==ze.cull_enable&&(Nl?Vt.enable(2884):Vt.disable(2884),ze.cull_enable=Nl),ue=Oe.cull_face,ue!==ze.cull_face&&(Vt.cullFace(ue),ze.cull_face=ue),w=Oe.frontFace,w!==ze.frontFace&&(Vt.frontFace(w),ze.frontFace=w),q=Oe.lineWidth,q!==ze.lineWidth&&(Vt.lineWidth(q),ze.lineWidth=q),Q=Oe.polygonOffset_enable,Q!==ze.polygonOffset_enable&&(Q?Vt.enable(32823):Vt.disable(32823),ze.polygonOffset_enable=Q),ee=Rt[0],fe=Rt[1],(ee!==_t[0]||fe!==_t[1])&&(Vt.polygonOffset(ee,fe),_t[0]=ee,_t[1]=fe),Ue=Oe.sample_alpha,Ue!==ze.sample_alpha&&(Ue?Vt.enable(32926):Vt.disable(32926),ze.sample_alpha=Ue),at=Oe.sample_enable,at!==ze.sample_enable&&(at?Vt.enable(32928):Vt.disable(32928),ze.sample_enable=at),yt=qt[0],Dt=qt[1],(yt!==Nt[0]||Dt!==Nt[1])&&(Vt.sampleCoverage(yt,Dt),Nt[0]=yt,Nt[1]=Dt),Qt=Oe.stencil_mask,Qt!==ze.stencil_mask&&(Vt.stencilMask(Qt),ze.stencil_mask=Qt),rr=mr[0],Mr=mr[1],Ur=mr[2],(rr!==Lr[0]||Mr!==Lr[1]||Ur!==Lr[2])&&(Vt.stencilFunc(rr,Mr,Ur),Lr[0]=rr,Lr[1]=Mr,Lr[2]=Ur),he=Nr[0],Ae=Nr[1],qe=Nr[2],Ge=Nr[3],(he!==Fr[0]||Ae!==Fr[1]||qe!==Fr[2]||Ge!==Fr[3])&&(Vt.stencilOpSeparate(he,Ae,qe,Ge),Fr[0]=he,Fr[1]=Ae,Fr[2]=qe,Fr[3]=Ge),ft=Gr[0],ot=Gr[1],mt=Gr[2],Gt=Gr[3],(ft!==Hr[0]||ot!==Hr[1]||mt!==Hr[2]||Gt!==Hr[3])&&(Vt.stencilOpSeparate(ft,ot,mt,Gt),Hr[0]=ft,Hr[1]=ot,Hr[2]=mt,Hr[3]=Gt)}Xr=Ii.viewport,dt=Xr.x|0,$t=Xr.y|0,fr="width"in Xr?Xr.width|0:Pe.framebufferWidth-dt,gr="height"in Xr?Xr.height|0:Pe.framebufferHeight-$t,Zr=Pe.viewportWidth,Pe.viewportWidth=fr,wi=Pe.viewportHeight,Pe.viewportHeight=gr,Vt.viewport(dt,$t,fr,gr),ti[0]=dt,ti[1]=$t,ti[2]=fr,ti[3]=gr,Vt.blendColor(0,0,0,1),Vr[0]=0,Vr[1]=0,Vr[2]=0,Vr[3]=1,n?Vt.enable(3042):Vt.disable(3042),ze.blend_enable=n,Vt.blendFuncSeparate(770,771,773,1),ln[0]=770,ln[1]=771,ln[2]=773,ln[3]=1,i?Vt.enable(2929):Vt.disable(2929),ze.depth_enable=i,$i=Ii.viewport,ni=$i.x|0,Xi=$i.y|0,aa="width"in $i?$i.width|0:Pe.framebufferWidth-ni,Mn="height"in $i?$i.height|0:Pe.framebufferHeight-Xi,Vt.scissor(ni,Xi,aa,Mn),Ei[0]=ni,Ei[1]=Xi,Ei[2]=aa,Ei[3]=Mn,a?Vt.enable(3089):Vt.disable(3089),ze.scissor_enable=a,o?Vt.enable(2960):Vt.disable(2960),ze.stencil_enable=o,Un=ze.profile,Un&&(Ga=performance.now(),r.count++),Vt.useProgram(s.program),ma=Er.angle_instanced_arrays,pr.setVAO(null),oa=u.call(this,Pe,Ii,0),ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,jr(oa)?(ka=!0,kn=st.createStream(34962,oa),uo=kn.dtype):(kn=st.getBuffer(oa),kn?uo=kn.dtype:"constant"in oa?(so=2,typeof oa.constant=="number"?(Kr=oa.constant,Ia=Yo=fa=0):(Kr=oa.constant.length>0?oa.constant[0]:0,Ia=oa.constant.length>1?oa.constant[1]:0,Yo=oa.constant.length>2?oa.constant[2]:0,fa=oa.constant.length>3?oa.constant[3]:0)):(jr(oa.buffer)?kn=st.createStream(34962,oa.buffer):kn=st.getBuffer(oa.buffer),uo="type"in oa?tn[oa.type]:kn.dtype,ys=!!oa.normalized,Ta=oa.size|0,ls=oa.offset|0,$a=oa.stride|0,fo=oa.divisor|0)),mn=l.location,ra=xt[mn],so===1?(ra.buffer||Vt.enableVertexAttribArray(mn),wa=Ta||4,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(Vt.bindBuffer(34962,kn.buffer),Vt.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&(Vt.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(Vt.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=f.call(this,Pe,Ii,0),Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Oa=!1,Ko=5126,Qo=0,Hi=0,Sa=0,jr(ws)?(Co=!0,Sn=st.createStream(34962,ws),Ko=Sn.dtype):(Sn=st.getBuffer(ws),Sn?Ko=Sn.dtype:"constant"in ws?(Po=2,typeof ws.constant=="number"?(Wi=ws.constant,gn=Ps=Ha=0):(Wi=ws.constant.length>0?ws.constant[0]:0,gn=ws.constant.length>1?ws.constant[1]:0,Ps=ws.constant.length>2?ws.constant[2]:0,Ha=ws.constant.length>3?ws.constant[3]:0)):(jr(ws.buffer)?Sn=st.createStream(34962,ws.buffer):Sn=st.getBuffer(ws.buffer),Ko="type"in ws?tn[ws.type]:Sn.dtype,Oa=!!ws.normalized,ao=ws.size|0,Qo=ws.offset|0,Hi=ws.stride|0,Sa=ws.divisor|0)),Qa=c.location,vn=xt[Qa],Po===1?(vn.buffer||Vt.enableVertexAttribArray(Qa),da=ao||1,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Oa||vn.offset!==Qo||vn.stride!==Hi)&&(Vt.bindBuffer(34962,Sn.buffer),Vt.vertexAttribPointer(Qa,da,Ko,Oa,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Oa,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Vt.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Vt.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=h.call(this,Pe,Ii,0),vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Ba=0,ha=0,jr(la)?(vo=!0,jn=st.createStream(34962,la),qs=jn.dtype):(jn=st.getBuffer(la),jn?qs=jn.dtype:"constant"in la?(As=2,typeof la.constant=="number"?(ps=la.constant,co=mo=No=0):(ps=la.constant.length>0?la.constant[0]:0,co=la.constant.length>1?la.constant[1]:0,mo=la.constant.length>2?la.constant[2]:0,No=la.constant.length>3?la.constant[3]:0)):(jr(la.buffer)?jn=st.createStream(34962,la.buffer):jn=st.getBuffer(la.buffer),qs="type"in la?tn[la.type]:jn.dtype,Ys=!!la.normalized,Go=la.size|0,Ns=la.offset|0,Ba=la.stride|0,ha=la.divisor|0)),Vs=d.location,Ya=xt[Vs],As===1?(Ya.buffer||Vt.enableVertexAttribArray(Vs),_n=Go||4,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Ba)&&(Vt.bindBuffer(34962,jn.buffer),Vt.vertexAttribPointer(Vs,_n,qs,Ys,Ba,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Ba),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(Vt.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(Vt.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=p.call(this,Pe,Ii,0),wo=!1,Da=1,Xn=0,sn=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,jr(Vn)?(wo=!0,qn=st.createStream(34962,Vn),lo=qn.dtype):(qn=st.getBuffer(Vn),qn?lo=qn.dtype:"constant"in Vn?(Da=2,typeof Vn.constant=="number"?(Xn=Vn.constant,sn=$n=Ka=0):(Xn=Vn.constant.length>0?Vn.constant[0]:0,sn=Vn.constant.length>1?Vn.constant[1]:0,$n=Vn.constant.length>2?Vn.constant[2]:0,Ka=Vn.constant.length>3?Vn.constant[3]:0)):(jr(Vn.buffer)?qn=st.createStream(34962,Vn.buffer):qn=st.getBuffer(Vn.buffer),lo="type"in Vn?tn[Vn.type]:qn.dtype,Ja=!!Vn.normalized,Eo=Vn.size|0,eo=Vn.offset|0,sa=Vn.stride|0,es=Vn.divisor|0)),Na=y.location,en=xt[Na],Da===1?(en.buffer||Vt.enableVertexAttribArray(Na),Pa=Eo||1,(en.type!==lo||en.size!==Pa||en.buffer!==qn||en.normalized!==Ja||en.offset!==eo||en.stride!==sa)&&(Vt.bindBuffer(34962,qn.buffer),Vt.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),en.type=lo,en.size=Pa,en.buffer=qn,en.normalized=Ja,en.offset=eo,en.stride=sa),en.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),en.divisor=es)):(en.buffer&&(Vt.disableVertexAttribArray(Na),en.buffer=null),(en.x!==Xn||en.y!==sn||en.z!==$n||en.w!==Ka)&&(Vt.vertexAttrib4f(Na,Xn,sn,$n,Ka),en.x=Xn,en.y=sn,en.z=$n,en.w=Ka)),to=b.call(this,Pe,Ii,0),yo=!1,Jo=1,Ao=0,Rn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,jr(to)?(yo=!0,Ca=st.createStream(34962,to),Ho=Ca.dtype):(Ca=st.getBuffer(to),Ca?Ho=Ca.dtype:"constant"in to?(Jo=2,typeof to.constant=="number"?(Ao=to.constant,Rn=_a=Ws=0):(Ao=to.constant.length>0?to.constant[0]:0,Rn=to.constant.length>1?to.constant[1]:0,_a=to.constant.length>2?to.constant[2]:0,Ws=to.constant.length>3?to.constant[3]:0)):(jr(to.buffer)?Ca=st.createStream(34962,to.buffer):Ca=st.getBuffer(to.buffer),Ho="type"in to?tn[to.type]:Ca.dtype,Ts=!!to.normalized,Es=to.size|0,Wa=to.offset|0,To=to.stride|0,ts=to.divisor|0)),Wo=v.location,qa=xt[Wo],Jo===1?(qa.buffer||Vt.enableVertexAttribArray(Wo),on=Es||1,(qa.type!==Ho||qa.size!==on||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(Vt.bindBuffer(34962,Ca.buffer),Vt.vertexAttribPointer(Wo,on,Ho,Ts,To,Wa),qa.type=Ho,qa.size=on,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(Vt.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Rn||qa.z!==_a||qa.w!==Ws)&&(Vt.vertexAttrib4f(Wo,Ao,Rn,_a,Ws),qa.x=Ao,qa.y=Rn,qa.z=_a,qa.w=Ws)),Oo=C.call(this,Pe,Ii,0),ko=!1,oo=1,za=0,ea=0,rs=0,$s=0,us=null,Rs=0,fl=!1,as=5126,Ma=0,Qs=0,ho=0,jr(Oo)?(ko=!0,us=st.createStream(34962,Oo),as=us.dtype):(us=st.getBuffer(Oo),us?as=us.dtype:"constant"in Oo?(oo=2,typeof Oo.constant=="number"?(za=Oo.constant,ea=rs=$s=0):(za=Oo.constant.length>0?Oo.constant[0]:0,ea=Oo.constant.length>1?Oo.constant[1]:0,rs=Oo.constant.length>2?Oo.constant[2]:0,$s=Oo.constant.length>3?Oo.constant[3]:0)):(jr(Oo.buffer)?us=st.createStream(34962,Oo.buffer):us=st.getBuffer(Oo.buffer),as="type"in Oo?tn[Oo.type]:us.dtype,fl=!!Oo.normalized,Rs=Oo.size|0,Ma=Oo.offset|0,Qs=Oo.stride|0,ho=Oo.divisor|0)),gs=M.location,Vo=xt[gs],oo===1?(Vo.buffer||Vt.enableVertexAttribArray(gs),Ro=Rs||1,(Vo.type!==as||Vo.size!==Ro||Vo.buffer!==us||Vo.normalized!==fl||Vo.offset!==Ma||Vo.stride!==Qs)&&(Vt.bindBuffer(34962,us.buffer),Vt.vertexAttribPointer(gs,Ro,as,fl,Qs,Ma),Vo.type=as,Vo.size=Ro,Vo.buffer=us,Vo.normalized=fl,Vo.offset=Ma,Vo.stride=Qs),Vo.divisor!==ho&&(ma.vertexAttribDivisorANGLE(gs,ho),Vo.divisor=ho)):(Vo.buffer&&(Vt.disableVertexAttribArray(gs),Vo.buffer=null),(Vo.x!==za||Vo.y!==ea||Vo.z!==rs||Vo.w!==$s)&&(Vt.vertexAttrib4f(gs,za,ea,rs,$s),Vo.x=za,Vo.y=ea,Vo.z=rs,Vo.w=$s)),Lo=A.call(this,Pe,Ii,0),xs=!1,ks=1,Ea=0,Jn=0,Bo=0,rl=0,Gs=null,bs=0,zs=!1,$o=5126,Aa=0,os=0,_l=0,jr(Lo)?(xs=!0,Gs=st.createStream(34962,Lo),$o=Gs.dtype):(Gs=st.getBuffer(Lo),Gs?$o=Gs.dtype:"constant"in Lo?(ks=2,typeof Lo.constant=="number"?(Ea=Lo.constant,Jn=Bo=rl=0):(Ea=Lo.constant.length>0?Lo.constant[0]:0,Jn=Lo.constant.length>1?Lo.constant[1]:0,Bo=Lo.constant.length>2?Lo.constant[2]:0,rl=Lo.constant.length>3?Lo.constant[3]:0)):(jr(Lo.buffer)?Gs=st.createStream(34962,Lo.buffer):Gs=st.getBuffer(Lo.buffer),$o="type"in Lo?tn[Lo.type]:Gs.dtype,zs=!!Lo.normalized,bs=Lo.size|0,Aa=Lo.offset|0,os=Lo.stride|0,_l=Lo.divisor|0)),Ss=L.location,po=xt[Ss],ks===1?(po.buffer||Vt.enableVertexAttribArray(Ss),go=bs||1,(po.type!==$o||po.size!==go||po.buffer!==Gs||po.normalized!==zs||po.offset!==Aa||po.stride!==os)&&(Vt.bindBuffer(34962,Gs.buffer),Vt.vertexAttribPointer(Ss,go,$o,zs,os,Aa),po.type=$o,po.size=go,po.buffer=Gs,po.normalized=zs,po.offset=Aa,po.stride=os),po.divisor!==_l&&(ma.vertexAttribDivisorANGLE(Ss,_l),po.divisor=_l)):(po.buffer&&(Vt.disableVertexAttribArray(Ss),po.buffer=null),(po.x!==Ea||po.y!==Jn||po.z!==Bo||po.w!==rl)&&(Vt.vertexAttrib4f(Ss,Ea,Jn,Bo,rl),po.x=Ea,po.y=Jn,po.z=Bo,po.w=rl)),ss=x.call(this,Pe,Ii,0),qo=!1,zo=1,io=0,Io=0,Ra=0,vs=0,fs=null,cl=0,el=!1,Hs=5126,Do=0,tl=0,Fs=0,jr(ss)?(qo=!0,fs=st.createStream(34962,ss),Hs=fs.dtype):(fs=st.getBuffer(ss),fs?Hs=fs.dtype:"constant"in ss?(zo=2,typeof ss.constant=="number"?(io=ss.constant,Io=Ra=vs=0):(io=ss.constant.length>0?ss.constant[0]:0,Io=ss.constant.length>1?ss.constant[1]:0,Ra=ss.constant.length>2?ss.constant[2]:0,vs=ss.constant.length>3?ss.constant[3]:0)):(jr(ss.buffer)?fs=st.createStream(34962,ss.buffer):fs=st.getBuffer(ss.buffer),Hs="type"in ss?tn[ss.type]:fs.dtype,el=!!ss.normalized,cl=ss.size|0,Do=ss.offset|0,tl=ss.stride|0,Fs=ss.divisor|0)),hl=k.location,Fa=xt[hl],zo===1?(Fa.buffer||Vt.enableVertexAttribArray(hl),Ms=cl||1,(Fa.type!==Hs||Fa.size!==Ms||Fa.buffer!==fs||Fa.normalized!==el||Fa.offset!==Do||Fa.stride!==tl)&&(Vt.bindBuffer(34962,fs.buffer),Vt.vertexAttribPointer(hl,Ms,Hs,el,tl,Do),Fa.type=Hs,Fa.size=Ms,Fa.buffer=fs,Fa.normalized=el,Fa.offset=Do,Fa.stride=tl),Fa.divisor!==Fs&&(ma.vertexAttribDivisorANGLE(hl,Fs),Fa.divisor=Fs)):(Fa.buffer&&(Vt.disableVertexAttribArray(hl),Fa.buffer=null),(Fa.x!==io||Fa.y!==Io||Fa.z!==Ra||Fa.w!==vs)&&(Vt.vertexAttrib4f(hl,io,Io,Ra,vs),Fa.x=io,Fa.y=Io,Fa.z=Ra,Fa.w=vs)),jo=S.call(this,Pe,Ii,0),Ds=!1,Is=1,Os=0,St=0,Ut=0,xr=0,dr=null,Rr=0,yi=!1,Ti=5126,ki=0,Ki=0,Fn=0,jr(jo)?(Ds=!0,dr=st.createStream(34962,jo),Ti=dr.dtype):(dr=st.getBuffer(jo),dr?Ti=dr.dtype:"constant"in jo?(Is=2,typeof jo.constant=="number"?(Os=jo.constant,St=Ut=xr=0):(Os=jo.constant.length>0?jo.constant[0]:0,St=jo.constant.length>1?jo.constant[1]:0,Ut=jo.constant.length>2?jo.constant[2]:0,xr=jo.constant.length>3?jo.constant[3]:0)):(jr(jo.buffer)?dr=st.createStream(34962,jo.buffer):dr=st.getBuffer(jo.buffer),Ti="type"in jo?tn[jo.type]:dr.dtype,yi=!!jo.normalized,Rr=jo.size|0,ki=jo.offset|0,Ki=jo.stride|0,Fn=jo.divisor|0)),Li=m.location,hi=xt[Li],Is===1?(hi.buffer||Vt.enableVertexAttribArray(Li),Ci=Rr||1,(hi.type!==Ti||hi.size!==Ci||hi.buffer!==dr||hi.normalized!==yi||hi.offset!==ki||hi.stride!==Ki)&&(Vt.bindBuffer(34962,dr.buffer),Vt.vertexAttribPointer(Li,Ci,Ti,yi,Ki,ki),hi.type=Ti,hi.size=Ci,hi.buffer=dr,hi.normalized=yi,hi.offset=ki,hi.stride=Ki),hi.divisor!==Fn&&(ma.vertexAttribDivisorANGLE(Li,Fn),hi.divisor=Fn)):(hi.buffer&&(Vt.disableVertexAttribArray(Li),hi.buffer=null),(hi.x!==Os||hi.y!==St||hi.z!==Ut||hi.w!==xr)&&(Vt.vertexAttrib4f(Li,Os,St,Ut,xr),hi.x=Os,hi.y=St,hi.z=Ut,hi.w=xr)),Vt.uniform1i(P.location,!1),Si=Ii.opacity,Vt.uniform1f(E.location,Si),Gn=F.call(this,Pe,Ii,0),ta=Gn[0],ya=Gn[1],Vt.uniform2f(O.location,ta,ya),Vt.uniform1i(U.location,G.bind()),ia=Pe.pixelRatio,Vt.uniform1f(j.location,ia),pa=Ii.scale,va=pa[0],zn=pa[1],Vt.uniform2f(W.location,va,zn),is=Ii.scaleFract,Cs=is[0],Ks=is[1],Vt.uniform2f(N.location,Cs,Ks),dl=Ii.translate,xl=dl[0],Bl=dl[1],Vt.uniform2f(H.location,xl,Bl),bl=Ii.translateFract,eu=bl[0],Zl=bl[1],Vt.uniform2f(re.location,eu,Zl),Vl=Ii.elements,ja=null,ns=jr(Vl),ns?ja=ht.createStream(Vl):ja=ht.getElements(Vl),ja&&Vt.bindBuffer(34963,ja.buffer.buffer),Js=Ii.offset,cs=Ii.count,cs&&(sl=Re.instances,sl>0?ja?ma.drawElementsInstancedANGLE(0,cs,ja.type,Js<<(ja.type-5121>>1),sl):ma.drawArraysInstancedANGLE(0,Js,cs,sl):sl<0&&(ja?Vt.drawElements(0,cs,ja.type,Js<<(ja.type-5121>>1)):Vt.drawArrays(0,Js,cs)),ze.dirty=!0,pr.setVAO(null),Pe.viewportWidth=Zr,Pe.viewportHeight=wi,Un&&(r.cpuTime+=performance.now()-Ga),ka&&st.destroyStream(kn),Co&&st.destroyStream(Sn),vo&&st.destroyStream(jn),wo&&st.destroyStream(qn),yo&&st.destroyStream(Ca),ko&&st.destroyStream(us),xs&&st.destroyStream(Gs),qo&&st.destroyStream(fs),Ds&&st.destroyStream(dr),G.unbind(),ns&&ht.destroyStream(ja))},scope:function(Ii,xn,xi){var Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Dl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr,Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,nu,ru,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,le,ke,Ye,nt,ut,Ht,wt,lr,Cr,zr,ui,$r,Oi,un,pi,Pi,ji,pn,an,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Mf;Xr=Ii.viewport,dt=Xr.x|0,$t=Xr.y|0,fr="width"in Xr?Xr.width|0:Pe.framebufferWidth-dt,gr="height"in Xr?Xr.height|0:Pe.framebufferHeight-$t,Zr=Pe.viewportWidth,Pe.viewportWidth=fr,wi=Pe.viewportHeight,Pe.viewportHeight=gr,$i=Vi[0],Vi[0]=dt,ni=Vi[1],Vi[1]=$t,Xi=Vi[2],Vi[2]=fr,aa=Vi[3],Vi[3]=gr,Mn=kr[0],kr[0]=ae,Un=kr[1],kr[1]=me,Ga=kr[2],kr[2]=Le,ma=kr[3],kr[3]=Ce,oa=Oe.blend_enable,Oe.blend_enable=de,ka=Di[0],Di[0]=te,so=Di[1],Di[1]=Se,Kr=Di[2],Di[2]=Te,Ia=Di[3],Di[3]=be,Yo=Oe.depth_enable,Oe.depth_enable=He,fa=Ii.viewport,kn=fa.x|0,Ta=fa.y|0,ys="width"in fa?fa.width|0:Pe.framebufferWidth-kn,uo="height"in fa?fa.height|0:Pe.framebufferHeight-Ta,ls=mi[0],mi[0]=kn,$a=mi[1],mi[1]=Ta,fo=mi[2],mi[2]=ys,mn=mi[3],mi[3]=uo,ra=Oe.scissor_enable,Oe.scissor_enable=Ie,wa=Oe.stencil_enable,Oe.stencil_enable=ge,ws=ze.profile,ws&&(Co=performance.now(),r.count++),Po=Ii.elements,Wi=null,gn=jr(Po),gn?Wi=ht.createStream(Po):Wi=ht.getElements(Po),Ps=Re.elements,Re.elements=Wi,Ha=Ii.offset,Sn=Re.offset,Re.offset=Ha,ao=Ii.count,Oa=Re.count,Re.count=ao,Ko=Re.primitive,Re.primitive=Be,Qo=br[ce],br[ce]=!1,Hi=br[rt],br[rt]=je,Sa=Ii.opacity,Qa=br[bt],br[bt]=Sa,vn=F.call(this,Pe,Ii,xi),da=br[Ot],br[Ot]=vn,la=Pe.pixelRatio,vo=br[it],br[it]=la,As=Ii.scale,ps=br[Ke],br[Ke]=As,co=Ii.scaleFract,mo=br[zt],br[zt]=co,No=Ii.translate,jn=br[Mt],br[Mt]=No,Go=Ii.translateFract,Ys=br[kt],br[kt]=Go,qs=Ii.markerTexture,Ns=br[$e],br[$e]=qs,Ba=C.call(this,Pe,Ii,xi),ha=!1,Vs=1,Ya=0,_n=0,Vn=0,wo=0,Da=null,Xn=0,sn=!1,$n=5126,Ka=0,qn=0,Eo=0,jr(Ba)?(ha=!0,Da=st.createStream(34962,Ba),$n=Da.dtype):(Da=st.getBuffer(Ba),Da?$n=Da.dtype:"constant"in Ba?(Vs=2,typeof Ba.constant=="number"?(Ya=Ba.constant,_n=Vn=wo=0):(Ya=Ba.constant.length>0?Ba.constant[0]:0,_n=Ba.constant.length>1?Ba.constant[1]:0,Vn=Ba.constant.length>2?Ba.constant[2]:0,wo=Ba.constant.length>3?Ba.constant[3]:0)):(jr(Ba.buffer)?Da=st.createStream(34962,Ba.buffer):Da=st.getBuffer(Ba.buffer),$n="type"in Ba?tn[Ba.type]:Da.dtype,sn=!!Ba.normalized,Xn=Ba.size|0,Ka=Ba.offset|0,qn=Ba.stride|0,Eo=Ba.divisor|0)),Ja=De.state,De.state=Vs,lo=De.x,De.x=Ya,eo=De.y,De.y=_n,sa=De.z,De.z=Vn,es=De.w,De.w=wo,Na=De.buffer,De.buffer=Da,en=De.size,De.size=Xn,Pa=De.normalized,De.normalized=sn,to=De.type,De.type=$n,yo=De.offset,De.offset=Ka,Jo=De.stride,De.stride=qn,Ao=De.divisor,De.divisor=Eo,Rn=x.call(this,Pe,Ii,xi),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,on=0,Oo=0,jr(Rn)?(_a=!0,Wa=st.createStream(34962,Rn),Wo=Wa.dtype):(Wa=st.getBuffer(Rn),Wa?Wo=Wa.dtype:"constant"in Rn?(Ws=2,typeof Rn.constant=="number"?(Ca=Rn.constant,Es=Ts=Ho=0):(Ca=Rn.constant.length>0?Rn.constant[0]:0,Es=Rn.constant.length>1?Rn.constant[1]:0,Ts=Rn.constant.length>2?Rn.constant[2]:0,Ho=Rn.constant.length>3?Rn.constant[3]:0)):(jr(Rn.buffer)?Wa=st.createStream(34962,Rn.buffer):Wa=st.getBuffer(Rn.buffer),Wo="type"in Rn?tn[Rn.type]:Wa.dtype,ts=!!Rn.normalized,To=Rn.size|0,qa=Rn.offset|0,on=Rn.stride|0,Oo=Rn.divisor|0)),ko=Me.state,Me.state=Ws,oo=Me.x,Me.x=Ca,za=Me.y,Me.y=Es,ea=Me.z,Me.z=Ts,rs=Me.w,Me.w=Ho,$s=Me.buffer,Me.buffer=Wa,us=Me.size,Me.size=To,Rs=Me.normalized,Me.normalized=ts,fl=Me.type,Me.type=Wo,as=Me.offset,Me.offset=qa,Ma=Me.stride,Me.stride=on,Qs=Me.divisor,Me.divisor=Oo,ho=A.call(this,Pe,Ii,xi),gs=!1,Vo=1,Ro=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Bo=!1,rl=5126,Gs=0,bs=0,zs=0,jr(ho)?(gs=!0,Ea=st.createStream(34962,ho),rl=Ea.dtype):(Ea=st.getBuffer(ho),Ea?rl=Ea.dtype:"constant"in ho?(Vo=2,typeof ho.constant=="number"?(Ro=ho.constant,Lo=xs=ks=0):(Ro=ho.constant.length>0?ho.constant[0]:0,Lo=ho.constant.length>1?ho.constant[1]:0,xs=ho.constant.length>2?ho.constant[2]:0,ks=ho.constant.length>3?ho.constant[3]:0)):(jr(ho.buffer)?Ea=st.createStream(34962,ho.buffer):Ea=st.getBuffer(ho.buffer),rl="type"in ho?tn[ho.type]:Ea.dtype,Bo=!!ho.normalized,Jn=ho.size|0,Gs=ho.offset|0,bs=ho.stride|0,zs=ho.divisor|0)),$o=oe.state,oe.state=Vo,Aa=oe.x,oe.x=Ro,os=oe.y,oe.y=Lo,_l=oe.z,oe.z=xs,Ss=oe.w,oe.w=ks,po=oe.buffer,oe.buffer=Ea,go=oe.size,oe.size=Jn,ss=oe.normalized,oe.normalized=Bo,qo=oe.type,oe.type=rl,zo=oe.offset,oe.offset=Gs,io=oe.stride,oe.stride=bs,Io=oe.divisor,oe.divisor=zs,Ra=S.call(this,Pe,Ii,xi),vs=!1,fs=1,cl=0,el=0,Hs=0,Do=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Ds=0,jr(Ra)?(vs=!0,tl=st.createStream(34962,Ra),Fa=tl.dtype):(tl=st.getBuffer(Ra),tl?Fa=tl.dtype:"constant"in Ra?(fs=2,typeof Ra.constant=="number"?(cl=Ra.constant,el=Hs=Do=0):(cl=Ra.constant.length>0?Ra.constant[0]:0,el=Ra.constant.length>1?Ra.constant[1]:0,Hs=Ra.constant.length>2?Ra.constant[2]:0,Do=Ra.constant.length>3?Ra.constant[3]:0)):(jr(Ra.buffer)?tl=st.createStream(34962,Ra.buffer):tl=st.getBuffer(Ra.buffer),Fa="type"in Ra?tn[Ra.type]:tl.dtype,hl=!!Ra.normalized,Fs=Ra.size|0,Ms=Ra.offset|0,jo=Ra.stride|0,Ds=Ra.divisor|0)),Is=Ne.state,Ne.state=fs,Os=Ne.x,Ne.x=cl,St=Ne.y,Ne.y=el,Ut=Ne.z,Ne.z=Hs,xr=Ne.w,Ne.w=Do,dr=Ne.buffer,Ne.buffer=tl,Rr=Ne.size,Ne.size=Fs,yi=Ne.normalized,Ne.normalized=hl,Ti=Ne.type,Ne.type=Fa,ki=Ne.offset,Ne.offset=Ms,Ki=Ne.stride,Ne.stride=jo,Fn=Ne.divisor,Ne.divisor=Ds,Li=b.call(this,Pe,Ii,xi),hi=!1,Ci=1,Si=0,Gn=0,ta=0,ya=0,ia=null,pa=0,va=!1,zn=5126,is=0,Cs=0,Ks=0,jr(Li)?(hi=!0,ia=st.createStream(34962,Li),zn=ia.dtype):(ia=st.getBuffer(Li),ia?zn=ia.dtype:"constant"in Li?(Ci=2,typeof Li.constant=="number"?(Si=Li.constant,Gn=ta=ya=0):(Si=Li.constant.length>0?Li.constant[0]:0,Gn=Li.constant.length>1?Li.constant[1]:0,ta=Li.constant.length>2?Li.constant[2]:0,ya=Li.constant.length>3?Li.constant[3]:0)):(jr(Li.buffer)?ia=st.createStream(34962,Li.buffer):ia=st.getBuffer(Li.buffer),zn="type"in Li?tn[Li.type]:ia.dtype,va=!!Li.normalized,pa=Li.size|0,is=Li.offset|0,Cs=Li.stride|0,Ks=Li.divisor|0)),dl=vt.state,vt.state=Ci,xl=vt.x,vt.x=Si,Bl=vt.y,vt.y=Gn,bl=vt.z,vt.z=ta,eu=vt.w,vt.w=ya,Zl=vt.buffer,vt.buffer=ia,Vl=vt.size,vt.size=pa,ja=vt.normalized,vt.normalized=va,ns=vt.type,vt.type=zn,Js=vt.offset,vt.offset=is,cs=vt.stride,vt.stride=Cs,sl=vt.divisor,vt.divisor=Ks,ll=f.call(this,Pe,Ii,xi),nl=!1,zl=1,Ml=0,Dl=0,Al=0,Ll=0,ms=null,Bs=0,Xl=!1,Gl=5126,Nl=0,ue=0,w=0,jr(ll)?(nl=!0,ms=st.createStream(34962,ll),Gl=ms.dtype):(ms=st.getBuffer(ll),ms?Gl=ms.dtype:"constant"in ll?(zl=2,typeof ll.constant=="number"?(Ml=ll.constant,Dl=Al=Ll=0):(Ml=ll.constant.length>0?ll.constant[0]:0,Dl=ll.constant.length>1?ll.constant[1]:0,Al=ll.constant.length>2?ll.constant[2]:0,Ll=ll.constant.length>3?ll.constant[3]:0)):(jr(ll.buffer)?ms=st.createStream(34962,ll.buffer):ms=st.getBuffer(ll.buffer),Gl="type"in ll?tn[ll.type]:ms.dtype,Xl=!!ll.normalized,Bs=ll.size|0,Nl=ll.offset|0,ue=ll.stride|0,w=ll.divisor|0)),q=lt.state,lt.state=zl,Q=lt.x,lt.x=Ml,ee=lt.y,lt.y=Dl,fe=lt.z,lt.z=Al,Ue=lt.w,lt.w=Ll,at=lt.buffer,lt.buffer=ms,yt=lt.size,lt.size=Bs,Dt=lt.normalized,lt.normalized=Xl,Qt=lt.type,lt.type=Gl,rr=lt.offset,lt.offset=Nl,Mr=lt.stride,lt.stride=ue,Ur=lt.divisor,lt.divisor=w,he=h.call(this,Pe,Ii,xi),Ae=!1,qe=1,Ge=0,ft=0,ot=0,mt=0,Gt=null,er=0,sr=!1,wr=5126,Ir=0,ri=0,si=0,jr(he)?(Ae=!0,Gt=st.createStream(34962,he),wr=Gt.dtype):(Gt=st.getBuffer(he),Gt?wr=Gt.dtype:"constant"in he?(qe=2,typeof he.constant=="number"?(Ge=he.constant,ft=ot=mt=0):(Ge=he.constant.length>0?he.constant[0]:0,ft=he.constant.length>1?he.constant[1]:0,ot=he.constant.length>2?he.constant[2]:0,mt=he.constant.length>3?he.constant[3]:0)):(jr(he.buffer)?Gt=st.createStream(34962,he.buffer):Gt=st.getBuffer(he.buffer),wr="type"in he?tn[he.type]:Gt.dtype,sr=!!he.normalized,er=he.size|0,Ir=he.offset|0,ri=he.stride|0,si=he.divisor|0)),Mi=We.state,We.state=qe,cn=We.x,We.x=Ge,Zn=We.y,We.y=ft,Yn=We.z,We.z=ot,Ua=We.w,We.w=mt,Fo=We.buffer,We.buffer=Gt,vl=We.size,We.size=er,Us=We.normalized,We.normalized=sr,ml=We.type,We.type=wr,au=We.offset,We.offset=Ir,Sl=We.stride,We.stride=ri,Yl=We.divisor,We.divisor=si,ql=u.call(this,Pe,Ii,xi),ou=!1,Pu=1,nu=0,ru=0,Hu=0,$u=0,Ku=null,Wu=0,ju=!1,sf=5126,_f=0,Qu=0,ef=0,jr(ql)?(ou=!0,Ku=st.createStream(34962,ql),sf=Ku.dtype):(Ku=st.getBuffer(ql),Ku?sf=Ku.dtype:"constant"in ql?(Pu=2,typeof ql.constant=="number"?(nu=ql.constant,ru=Hu=$u=0):(nu=ql.constant.length>0?ql.constant[0]:0,ru=ql.constant.length>1?ql.constant[1]:0,Hu=ql.constant.length>2?ql.constant[2]:0,$u=ql.constant.length>3?ql.constant[3]:0)):(jr(ql.buffer)?Ku=st.createStream(34962,ql.buffer):Ku=st.getBuffer(ql.buffer),sf="type"in ql?tn[ql.type]:Ku.dtype,ju=!!ql.normalized,Wu=ql.size|0,_f=ql.offset|0,Qu=ql.stride|0,ef=ql.divisor|0)),Z=Ve.state,Ve.state=Pu,le=Ve.x,Ve.x=nu,ke=Ve.y,Ve.y=ru,Ye=Ve.z,Ve.z=Hu,nt=Ve.w,Ve.w=$u,ut=Ve.buffer,Ve.buffer=Ku,Ht=Ve.size,Ve.size=Wu,wt=Ve.normalized,Ve.normalized=ju,lr=Ve.type,Ve.type=sf,Cr=Ve.offset,Ve.offset=_f,zr=Ve.stride,Ve.stride=Qu,ui=Ve.divisor,Ve.divisor=ef,$r=p.call(this,Pe,Ii,xi),Oi=!1,un=1,pi=0,Pi=0,ji=0,pn=0,an=null,bi=0,xo=!1,no=5126,Xo=0,js=0,El=0,jr($r)?(Oi=!0,an=st.createStream(34962,$r),no=an.dtype):(an=st.getBuffer($r),an?no=an.dtype:"constant"in $r?(un=2,typeof $r.constant=="number"?(pi=$r.constant,Pi=ji=pn=0):(pi=$r.constant.length>0?$r.constant[0]:0,Pi=$r.constant.length>1?$r.constant[1]:0,ji=$r.constant.length>2?$r.constant[2]:0,pn=$r.constant.length>3?$r.constant[3]:0)):(jr($r.buffer)?an=st.createStream(34962,$r.buffer):an=st.getBuffer($r.buffer),no="type"in $r?tn[$r.type]:an.dtype,xo=!!$r.normalized,bi=$r.size|0,Xo=$r.offset|0,js=$r.stride|0,El=$r.divisor|0)),Pl=et.state,et.state=un,pu=et.x,et.x=pi,Il=et.y,et.y=Pi,fu=et.z,et.z=ji,Xu=et.w,et.w=pn,Vu=et.buffer,et.buffer=an,tf=et.size,et.size=bi,ds=et.normalized,et.normalized=xo,Wl=et.type,et.type=no,Au=et.offset,et.offset=Xo,Tu=et.stride,et.stride=js,lf=et.divisor,et.divisor=El,hf=gt.vert,gt.vert=tt,Mf=gt.frag,gt.frag=Lt,ze.dirty=!0,xn(Pe,Ii,xi),Pe.viewportWidth=Zr,Pe.viewportHeight=wi,Vi[0]=$i,Vi[1]=ni,Vi[2]=Xi,Vi[3]=aa,kr[0]=Mn,kr[1]=Un,kr[2]=Ga,kr[3]=ma,Oe.blend_enable=oa,Di[0]=ka,Di[1]=so,Di[2]=Kr,Di[3]=Ia,Oe.depth_enable=Yo,mi[0]=ls,mi[1]=$a,mi[2]=fo,mi[3]=mn,Oe.scissor_enable=ra,Oe.stencil_enable=wa,ws&&(r.cpuTime+=performance.now()-Co),gn&&ht.destroyStream(Wi),Re.elements=Ps,Re.offset=Sn,Re.count=Oa,Re.primitive=Ko,br[ce]=Qo,br[rt]=Hi,br[bt]=Qa,br[Ot]=da,br[it]=vo,br[Ke]=ps,br[zt]=mo,br[Mt]=jn,br[kt]=Ys,br[$e]=Ns,ha&&st.destroyStream(Da),De.state=Ja,De.x=lo,De.y=eo,De.z=sa,De.w=es,De.buffer=Na,De.size=en,De.normalized=Pa,De.type=to,De.offset=yo,De.stride=Jo,De.divisor=Ao,_a&&st.destroyStream(Wa),Me.state=ko,Me.x=oo,Me.y=za,Me.z=ea,Me.w=rs,Me.buffer=$s,Me.size=us,Me.normalized=Rs,Me.type=fl,Me.offset=as,Me.stride=Ma,Me.divisor=Qs,gs&&st.destroyStream(Ea),oe.state=$o,oe.x=Aa,oe.y=os,oe.z=_l,oe.w=Ss,oe.buffer=po,oe.size=go,oe.normalized=ss,oe.type=qo,oe.offset=zo,oe.stride=io,oe.divisor=Io,vs&&st.destroyStream(tl),Ne.state=Is,Ne.x=Os,Ne.y=St,Ne.z=Ut,Ne.w=xr,Ne.buffer=dr,Ne.size=Rr,Ne.normalized=yi,Ne.type=Ti,Ne.offset=ki,Ne.stride=Ki,Ne.divisor=Fn,hi&&st.destroyStream(ia),vt.state=dl,vt.x=xl,vt.y=Bl,vt.z=bl,vt.w=eu,vt.buffer=Zl,vt.size=Vl,vt.normalized=ja,vt.type=ns,vt.offset=Js,vt.stride=cs,vt.divisor=sl,nl&&st.destroyStream(ms),lt.state=q,lt.x=Q,lt.y=ee,lt.z=fe,lt.w=Ue,lt.buffer=at,lt.size=yt,lt.normalized=Dt,lt.type=Qt,lt.offset=rr,lt.stride=Mr,lt.divisor=Ur,Ae&&st.destroyStream(Gt),We.state=Mi,We.x=cn,We.y=Zn,We.z=Yn,We.w=Ua,We.buffer=Fo,We.size=vl,We.normalized=Us,We.type=ml,We.offset=au,We.stride=Sl,We.divisor=Yl,ou&&st.destroyStream(Ku),Ve.state=Z,Ve.x=le,Ve.y=ke,Ve.z=Ye,Ve.w=nt,Ve.buffer=ut,Ve.size=Ht,Ve.normalized=wt,Ve.type=lr,Ve.offset=Cr,Ve.stride=zr,Ve.divisor=ui,Oi&&st.destroyStream(an),et.state=Pl,et.x=pu,et.y=Il,et.z=fu,et.w=Xu,et.buffer=Vu,et.size=tf,et.normalized=ds,et.type=Wl,et.offset=Au,et.stride=Tu,et.divisor=lf,gt.vert=hf,gt.frag=Mf,ze.dirty=!0},batch:function(Ii,xn){var xi,Xr,dt,$t,fr,gr,Zr;if(xi=Er.angle_instanced_arrays,Xr=cr.next,Xr!==cr.cur&&(Xr?Vt.bindFramebuffer(36160,Xr.framebuffer):Vt.bindFramebuffer(36160,null),cr.cur=Xr),ze.dirty){var wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn;wi=Oe.dither,wi!==ze.dither&&(wi?Vt.enable(3024):Vt.disable(3024),ze.dither=wi),$i=Ai[0],ni=Ai[1],($i!==Bi[0]||ni!==Bi[1])&&(Vt.blendEquationSeparate($i,ni),Bi[0]=$i,Bi[1]=ni),Xi=Oe.depth_func,Xi!==ze.depth_func&&(Vt.depthFunc(Xi),ze.depth_func=Xi),aa=hn[0],Mn=hn[1],(aa!==qr[0]||Mn!==qr[1])&&(Vt.depthRange(aa,Mn),qr[0]=aa,qr[1]=Mn),Un=Oe.depth_mask,Un!==ze.depth_mask&&(Vt.depthMask(Un),ze.depth_mask=Un),Ga=_i[0],ma=_i[1],oa=_i[2],ka=_i[3],(Ga!==zi[0]||ma!==zi[1]||oa!==zi[2]||ka!==zi[3])&&(Vt.colorMask(Ga,ma,oa,ka),zi[0]=Ga,zi[1]=ma,zi[2]=oa,zi[3]=ka),so=Oe.cull_enable,so!==ze.cull_enable&&(so?Vt.enable(2884):Vt.disable(2884),ze.cull_enable=so),Kr=Oe.cull_face,Kr!==ze.cull_face&&(Vt.cullFace(Kr),ze.cull_face=Kr),Ia=Oe.frontFace,Ia!==ze.frontFace&&(Vt.frontFace(Ia),ze.frontFace=Ia),Yo=Oe.lineWidth,Yo!==ze.lineWidth&&(Vt.lineWidth(Yo),ze.lineWidth=Yo),fa=Oe.polygonOffset_enable,fa!==ze.polygonOffset_enable&&(fa?Vt.enable(32823):Vt.disable(32823),ze.polygonOffset_enable=fa),kn=Rt[0],Ta=Rt[1],(kn!==_t[0]||Ta!==_t[1])&&(Vt.polygonOffset(kn,Ta),_t[0]=kn,_t[1]=Ta),ys=Oe.sample_alpha,ys!==ze.sample_alpha&&(ys?Vt.enable(32926):Vt.disable(32926),ze.sample_alpha=ys),uo=Oe.sample_enable,uo!==ze.sample_enable&&(uo?Vt.enable(32928):Vt.disable(32928),ze.sample_enable=uo),ls=qt[0],$a=qt[1],(ls!==Nt[0]||$a!==Nt[1])&&(Vt.sampleCoverage(ls,$a),Nt[0]=ls,Nt[1]=$a),fo=Oe.stencil_mask,fo!==ze.stencil_mask&&(Vt.stencilMask(fo),ze.stencil_mask=fo),mn=mr[0],ra=mr[1],wa=mr[2],(mn!==Lr[0]||ra!==Lr[1]||wa!==Lr[2])&&(Vt.stencilFunc(mn,ra,wa),Lr[0]=mn,Lr[1]=ra,Lr[2]=wa),ws=Nr[0],Co=Nr[1],Po=Nr[2],Wi=Nr[3],(ws!==Fr[0]||Co!==Fr[1]||Po!==Fr[2]||Wi!==Fr[3])&&(Vt.stencilOpSeparate(ws,Co,Po,Wi),Fr[0]=ws,Fr[1]=Co,Fr[2]=Po,Fr[3]=Wi),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==Hr[0]||Ps!==Hr[1]||Ha!==Hr[2]||Sn!==Hr[3])&&(Vt.stencilOpSeparate(gn,Ps,Ha,Sn),Hr[0]=gn,Hr[1]=Ps,Hr[2]=Ha,Hr[3]=Sn)}Vt.blendColor(0,0,0,1),Vr[0]=0,Vr[1]=0,Vr[2]=0,Vr[3]=1,jt?Vt.enable(3042):Vt.disable(3042),ze.blend_enable=jt,Vt.blendFuncSeparate(770,771,773,1),ln[0]=770,ln[1]=771,ln[2]=773,ln[3]=1,or?Vt.enable(2929):Vt.disable(2929),ze.depth_enable=or,yr?Vt.enable(3089):Vt.disable(3089),ze.scissor_enable=yr,vr?Vt.enable(2960):Vt.disable(2960),ze.stencil_enable=vr,dt=ze.profile,dt&&($t=performance.now(),r.count+=xn),Vt.useProgram(s.program),fr=Er.angle_instanced_arrays;var ao;for(pr.setVAO(null),Vt.uniform1i(P.location,!1),Vt.uniform1i(U.location,G.bind()),ao=Re.instances,gr=0;gr0?co.constant[0]:0,Go=co.constant.length>1?co.constant[1]:0,Ys=co.constant.length>2?co.constant[2]:0,qs=co.constant.length>3?co.constant[3]:0)):(jr(co.buffer)?Ns=st.createStream(34962,co.buffer):Ns=st.getBuffer(co.buffer),Vs="type"in co?tn[co.type]:Ns.dtype,ha=!!co.normalized,Ba=co.size|0,Ya=co.offset|0,_n=co.stride|0,Vn=co.divisor|0)),wo=l.location,Da=xt[wo],No===1?(Da.buffer||Vt.enableVertexAttribArray(wo),Xn=Ba||4,(Da.type!==Vs||Da.size!==Xn||Da.buffer!==Ns||Da.normalized!==ha||Da.offset!==Ya||Da.stride!==_n)&&(Vt.bindBuffer(34962,Ns.buffer),Vt.vertexAttribPointer(wo,Xn,Vs,ha,_n,Ya),Da.type=Vs,Da.size=Xn,Da.buffer=Ns,Da.normalized=ha,Da.offset=Ya,Da.stride=_n),Da.divisor!==Vn&&(fr.vertexAttribDivisorANGLE(wo,Vn),Da.divisor=Vn)):(Da.buffer&&(Vt.disableVertexAttribArray(wo),Da.buffer=null),(Da.x!==jn||Da.y!==Go||Da.z!==Ys||Da.w!==qs)&&(Vt.vertexAttrib4f(wo,jn,Go,Ys,qs),Da.x=jn,Da.y=Go,Da.z=Ys,Da.w=qs)),sn=f.call(this,Pe,Zr,gr),$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,en=0,Pa=0,to=0,jr(sn)?($n=!0,eo=st.createStream(34962,sn),Na=eo.dtype):(eo=st.getBuffer(sn),eo?Na=eo.dtype:"constant"in sn?(Ka=2,typeof sn.constant=="number"?(qn=sn.constant,Eo=Ja=lo=0):(qn=sn.constant.length>0?sn.constant[0]:0,Eo=sn.constant.length>1?sn.constant[1]:0,Ja=sn.constant.length>2?sn.constant[2]:0,lo=sn.constant.length>3?sn.constant[3]:0)):(jr(sn.buffer)?eo=st.createStream(34962,sn.buffer):eo=st.getBuffer(sn.buffer),Na="type"in sn?tn[sn.type]:eo.dtype,es=!!sn.normalized,sa=sn.size|0,en=sn.offset|0,Pa=sn.stride|0,to=sn.divisor|0)),yo=c.location,Jo=xt[yo],Ka===1?(Jo.buffer||Vt.enableVertexAttribArray(yo),Ao=sa||1,(Jo.type!==Na||Jo.size!==Ao||Jo.buffer!==eo||Jo.normalized!==es||Jo.offset!==en||Jo.stride!==Pa)&&(Vt.bindBuffer(34962,eo.buffer),Vt.vertexAttribPointer(yo,Ao,Na,es,Pa,en),Jo.type=Na,Jo.size=Ao,Jo.buffer=eo,Jo.normalized=es,Jo.offset=en,Jo.stride=Pa),Jo.divisor!==to&&(fr.vertexAttribDivisorANGLE(yo,to),Jo.divisor=to)):(Jo.buffer&&(Vt.disableVertexAttribArray(yo),Jo.buffer=null),(Jo.x!==qn||Jo.y!==Eo||Jo.z!==Ja||Jo.w!==lo)&&(Vt.vertexAttrib4f(yo,qn,Eo,Ja,lo),Jo.x=qn,Jo.y=Eo,Jo.z=Ja,Jo.w=lo)),Rn=h.call(this,Pe,Zr,gr),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,on=0,Oo=0,jr(Rn)?(_a=!0,Wa=st.createStream(34962,Rn),Wo=Wa.dtype):(Wa=st.getBuffer(Rn),Wa?Wo=Wa.dtype:"constant"in Rn?(Ws=2,typeof Rn.constant=="number"?(Ca=Rn.constant,Es=Ts=Ho=0):(Ca=Rn.constant.length>0?Rn.constant[0]:0,Es=Rn.constant.length>1?Rn.constant[1]:0,Ts=Rn.constant.length>2?Rn.constant[2]:0,Ho=Rn.constant.length>3?Rn.constant[3]:0)):(jr(Rn.buffer)?Wa=st.createStream(34962,Rn.buffer):Wa=st.getBuffer(Rn.buffer),Wo="type"in Rn?tn[Rn.type]:Wa.dtype,ts=!!Rn.normalized,To=Rn.size|0,qa=Rn.offset|0,on=Rn.stride|0,Oo=Rn.divisor|0)),ko=d.location,oo=xt[ko],Ws===1?(oo.buffer||Vt.enableVertexAttribArray(ko),za=To||4,(oo.type!==Wo||oo.size!==za||oo.buffer!==Wa||oo.normalized!==ts||oo.offset!==qa||oo.stride!==on)&&(Vt.bindBuffer(34962,Wa.buffer),Vt.vertexAttribPointer(ko,za,Wo,ts,on,qa),oo.type=Wo,oo.size=za,oo.buffer=Wa,oo.normalized=ts,oo.offset=qa,oo.stride=on),oo.divisor!==Oo&&(fr.vertexAttribDivisorANGLE(ko,Oo),oo.divisor=Oo)):(oo.buffer&&(Vt.disableVertexAttribArray(ko),oo.buffer=null),(oo.x!==Ca||oo.y!==Es||oo.z!==Ts||oo.w!==Ho)&&(Vt.vertexAttrib4f(ko,Ca,Es,Ts,Ho),oo.x=Ca,oo.y=Es,oo.z=Ts,oo.w=Ho)),ea=p.call(this,Pe,Zr,gr),rs=!1,$s=1,us=0,Rs=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Ro=0,Lo=0,jr(ea)?(rs=!0,Ma=st.createStream(34962,ea),gs=Ma.dtype):(Ma=st.getBuffer(ea),Ma?gs=Ma.dtype:"constant"in ea?($s=2,typeof ea.constant=="number"?(us=ea.constant,Rs=fl=as=0):(us=ea.constant.length>0?ea.constant[0]:0,Rs=ea.constant.length>1?ea.constant[1]:0,fl=ea.constant.length>2?ea.constant[2]:0,as=ea.constant.length>3?ea.constant[3]:0)):(jr(ea.buffer)?Ma=st.createStream(34962,ea.buffer):Ma=st.getBuffer(ea.buffer),gs="type"in ea?tn[ea.type]:Ma.dtype,ho=!!ea.normalized,Qs=ea.size|0,Vo=ea.offset|0,Ro=ea.stride|0,Lo=ea.divisor|0)),xs=y.location,ks=xt[xs],$s===1?(ks.buffer||Vt.enableVertexAttribArray(xs),Ea=Qs||1,(ks.type!==gs||ks.size!==Ea||ks.buffer!==Ma||ks.normalized!==ho||ks.offset!==Vo||ks.stride!==Ro)&&(Vt.bindBuffer(34962,Ma.buffer),Vt.vertexAttribPointer(xs,Ea,gs,ho,Ro,Vo),ks.type=gs,ks.size=Ea,ks.buffer=Ma,ks.normalized=ho,ks.offset=Vo,ks.stride=Ro),ks.divisor!==Lo&&(fr.vertexAttribDivisorANGLE(xs,Lo),ks.divisor=Lo)):(ks.buffer&&(Vt.disableVertexAttribArray(xs),ks.buffer=null),(ks.x!==us||ks.y!==Rs||ks.z!==fl||ks.w!==as)&&(Vt.vertexAttrib4f(xs,us,Rs,fl,as),ks.x=us,ks.y=Rs,ks.z=fl,ks.w=as)),Jn=b.call(this,Pe,Zr,gr),Bo=!1,rl=1,Gs=0,bs=0,zs=0,$o=0,Aa=null,os=0,_l=!1,Ss=5126,po=0,go=0,ss=0,jr(Jn)?(Bo=!0,Aa=st.createStream(34962,Jn),Ss=Aa.dtype):(Aa=st.getBuffer(Jn),Aa?Ss=Aa.dtype:"constant"in Jn?(rl=2,typeof Jn.constant=="number"?(Gs=Jn.constant,bs=zs=$o=0):(Gs=Jn.constant.length>0?Jn.constant[0]:0,bs=Jn.constant.length>1?Jn.constant[1]:0,zs=Jn.constant.length>2?Jn.constant[2]:0,$o=Jn.constant.length>3?Jn.constant[3]:0)):(jr(Jn.buffer)?Aa=st.createStream(34962,Jn.buffer):Aa=st.getBuffer(Jn.buffer),Ss="type"in Jn?tn[Jn.type]:Aa.dtype,_l=!!Jn.normalized,os=Jn.size|0,po=Jn.offset|0,go=Jn.stride|0,ss=Jn.divisor|0)),qo=v.location,zo=xt[qo],rl===1?(zo.buffer||Vt.enableVertexAttribArray(qo),io=os||1,(zo.type!==Ss||zo.size!==io||zo.buffer!==Aa||zo.normalized!==_l||zo.offset!==po||zo.stride!==go)&&(Vt.bindBuffer(34962,Aa.buffer),Vt.vertexAttribPointer(qo,io,Ss,_l,go,po),zo.type=Ss,zo.size=io,zo.buffer=Aa,zo.normalized=_l,zo.offset=po,zo.stride=go),zo.divisor!==ss&&(fr.vertexAttribDivisorANGLE(qo,ss),zo.divisor=ss)):(zo.buffer&&(Vt.disableVertexAttribArray(qo),zo.buffer=null),(zo.x!==Gs||zo.y!==bs||zo.z!==zs||zo.w!==$o)&&(Vt.vertexAttrib4f(qo,Gs,bs,zs,$o),zo.x=Gs,zo.y=bs,zo.z=zs,zo.w=$o)),Io=C.call(this,Pe,Zr,gr),Ra=!1,vs=1,fs=0,cl=0,el=0,Hs=0,Do=null,tl=0,Fs=!1,hl=5126,Fa=0,Ms=0,jo=0,jr(Io)?(Ra=!0,Do=st.createStream(34962,Io),hl=Do.dtype):(Do=st.getBuffer(Io),Do?hl=Do.dtype:"constant"in Io?(vs=2,typeof Io.constant=="number"?(fs=Io.constant,cl=el=Hs=0):(fs=Io.constant.length>0?Io.constant[0]:0,cl=Io.constant.length>1?Io.constant[1]:0,el=Io.constant.length>2?Io.constant[2]:0,Hs=Io.constant.length>3?Io.constant[3]:0)):(jr(Io.buffer)?Do=st.createStream(34962,Io.buffer):Do=st.getBuffer(Io.buffer),hl="type"in Io?tn[Io.type]:Do.dtype,Fs=!!Io.normalized,tl=Io.size|0,Fa=Io.offset|0,Ms=Io.stride|0,jo=Io.divisor|0)),Ds=M.location,Is=xt[Ds],vs===1?(Is.buffer||Vt.enableVertexAttribArray(Ds),Os=tl||1,(Is.type!==hl||Is.size!==Os||Is.buffer!==Do||Is.normalized!==Fs||Is.offset!==Fa||Is.stride!==Ms)&&(Vt.bindBuffer(34962,Do.buffer),Vt.vertexAttribPointer(Ds,Os,hl,Fs,Ms,Fa),Is.type=hl,Is.size=Os,Is.buffer=Do,Is.normalized=Fs,Is.offset=Fa,Is.stride=Ms),Is.divisor!==jo&&(fr.vertexAttribDivisorANGLE(Ds,jo),Is.divisor=jo)):(Is.buffer&&(Vt.disableVertexAttribArray(Ds),Is.buffer=null),(Is.x!==fs||Is.y!==cl||Is.z!==el||Is.w!==Hs)&&(Vt.vertexAttrib4f(Ds,fs,cl,el,Hs),Is.x=fs,Is.y=cl,Is.z=el,Is.w=Hs)),St=A.call(this,Pe,Zr,gr),Ut=!1,xr=1,dr=0,Rr=0,yi=0,Ti=0,ki=null,Ki=0,Fn=!1,Li=5126,hi=0,Ci=0,Si=0,jr(St)?(Ut=!0,ki=st.createStream(34962,St),Li=ki.dtype):(ki=st.getBuffer(St),ki?Li=ki.dtype:"constant"in St?(xr=2,typeof St.constant=="number"?(dr=St.constant,Rr=yi=Ti=0):(dr=St.constant.length>0?St.constant[0]:0,Rr=St.constant.length>1?St.constant[1]:0,yi=St.constant.length>2?St.constant[2]:0,Ti=St.constant.length>3?St.constant[3]:0)):(jr(St.buffer)?ki=st.createStream(34962,St.buffer):ki=st.getBuffer(St.buffer),Li="type"in St?tn[St.type]:ki.dtype,Fn=!!St.normalized,Ki=St.size|0,hi=St.offset|0,Ci=St.stride|0,Si=St.divisor|0)),Gn=L.location,ta=xt[Gn],xr===1?(ta.buffer||Vt.enableVertexAttribArray(Gn),ya=Ki||1,(ta.type!==Li||ta.size!==ya||ta.buffer!==ki||ta.normalized!==Fn||ta.offset!==hi||ta.stride!==Ci)&&(Vt.bindBuffer(34962,ki.buffer),Vt.vertexAttribPointer(Gn,ya,Li,Fn,Ci,hi),ta.type=Li,ta.size=ya,ta.buffer=ki,ta.normalized=Fn,ta.offset=hi,ta.stride=Ci),ta.divisor!==Si&&(fr.vertexAttribDivisorANGLE(Gn,Si),ta.divisor=Si)):(ta.buffer&&(Vt.disableVertexAttribArray(Gn),ta.buffer=null),(ta.x!==dr||ta.y!==Rr||ta.z!==yi||ta.w!==Ti)&&(Vt.vertexAttrib4f(Gn,dr,Rr,yi,Ti),ta.x=dr,ta.y=Rr,ta.z=yi,ta.w=Ti)),ia=x.call(this,Pe,Zr,gr),pa=!1,va=1,zn=0,is=0,Cs=0,Ks=0,dl=null,xl=0,Bl=!1,bl=5126,eu=0,Zl=0,Vl=0,jr(ia)?(pa=!0,dl=st.createStream(34962,ia),bl=dl.dtype):(dl=st.getBuffer(ia),dl?bl=dl.dtype:"constant"in ia?(va=2,typeof ia.constant=="number"?(zn=ia.constant,is=Cs=Ks=0):(zn=ia.constant.length>0?ia.constant[0]:0,is=ia.constant.length>1?ia.constant[1]:0,Cs=ia.constant.length>2?ia.constant[2]:0,Ks=ia.constant.length>3?ia.constant[3]:0)):(jr(ia.buffer)?dl=st.createStream(34962,ia.buffer):dl=st.getBuffer(ia.buffer),bl="type"in ia?tn[ia.type]:dl.dtype,Bl=!!ia.normalized,xl=ia.size|0,eu=ia.offset|0,Zl=ia.stride|0,Vl=ia.divisor|0)),ja=k.location,ns=xt[ja],va===1?(ns.buffer||Vt.enableVertexAttribArray(ja),Js=xl||1,(ns.type!==bl||ns.size!==Js||ns.buffer!==dl||ns.normalized!==Bl||ns.offset!==eu||ns.stride!==Zl)&&(Vt.bindBuffer(34962,dl.buffer),Vt.vertexAttribPointer(ja,Js,bl,Bl,Zl,eu),ns.type=bl,ns.size=Js,ns.buffer=dl,ns.normalized=Bl,ns.offset=eu,ns.stride=Zl),ns.divisor!==Vl&&(fr.vertexAttribDivisorANGLE(ja,Vl),ns.divisor=Vl)):(ns.buffer&&(Vt.disableVertexAttribArray(ja),ns.buffer=null),(ns.x!==zn||ns.y!==is||ns.z!==Cs||ns.w!==Ks)&&(Vt.vertexAttrib4f(ja,zn,is,Cs,Ks),ns.x=zn,ns.y=is,ns.z=Cs,ns.w=Ks)),cs=S.call(this,Pe,Zr,gr),sl=!1,ll=1,nl=0,zl=0,Ml=0,Dl=0,Al=null,Ll=0,ms=!1,Bs=5126,Xl=0,Gl=0,Nl=0,jr(cs)?(sl=!0,Al=st.createStream(34962,cs),Bs=Al.dtype):(Al=st.getBuffer(cs),Al?Bs=Al.dtype:"constant"in cs?(ll=2,typeof cs.constant=="number"?(nl=cs.constant,zl=Ml=Dl=0):(nl=cs.constant.length>0?cs.constant[0]:0,zl=cs.constant.length>1?cs.constant[1]:0,Ml=cs.constant.length>2?cs.constant[2]:0,Dl=cs.constant.length>3?cs.constant[3]:0)):(jr(cs.buffer)?Al=st.createStream(34962,cs.buffer):Al=st.getBuffer(cs.buffer),Bs="type"in cs?tn[cs.type]:Al.dtype,ms=!!cs.normalized,Ll=cs.size|0,Xl=cs.offset|0,Gl=cs.stride|0,Nl=cs.divisor|0)),ue=m.location,w=xt[ue],ll===1?(w.buffer||Vt.enableVertexAttribArray(ue),q=Ll||1,(w.type!==Bs||w.size!==q||w.buffer!==Al||w.normalized!==ms||w.offset!==Xl||w.stride!==Gl)&&(Vt.bindBuffer(34962,Al.buffer),Vt.vertexAttribPointer(ue,q,Bs,ms,Gl,Xl),w.type=Bs,w.size=q,w.buffer=Al,w.normalized=ms,w.offset=Xl,w.stride=Gl),w.divisor!==Nl&&(fr.vertexAttribDivisorANGLE(ue,Nl),w.divisor=Nl)):(w.buffer&&(Vt.disableVertexAttribArray(ue),w.buffer=null),(w.x!==nl||w.y!==zl||w.z!==Ml||w.w!==Dl)&&(Vt.vertexAttrib4f(ue,nl,zl,Ml,Dl),w.x=nl,w.y=zl,w.z=Ml,w.w=Dl)),Q=Zr.opacity,(!gr||ee!==Q)&&(ee=Q,Vt.uniform1f(E.location,Q)),fe=F.call(this,Pe,Zr,gr),Ue=fe[0],yt=fe[1],(!gr||at!==Ue||Dt!==yt)&&(at=Ue,Dt=yt,Vt.uniform2f(O.location,Ue,yt)),Qt=Pe.pixelRatio,(!gr||rr!==Qt)&&(rr=Qt,Vt.uniform1f(j.location,Qt)),Mr=Zr.scale,Ur=Mr[0],Ae=Mr[1],(!gr||he!==Ur||qe!==Ae)&&(he=Ur,qe=Ae,Vt.uniform2f(W.location,Ur,Ae)),Ge=Zr.scaleFract,ft=Ge[0],mt=Ge[1],(!gr||ot!==ft||Gt!==mt)&&(ot=ft,Gt=mt,Vt.uniform2f(N.location,ft,mt)),er=Zr.translate,sr=er[0],Ir=er[1],(!gr||wr!==sr||ri!==Ir)&&(wr=sr,ri=Ir,Vt.uniform2f(H.location,sr,Ir)),si=Zr.translateFract,Mi=si[0],Zn=si[1],(!gr||cn!==Mi||Yn!==Zn)&&(cn=Mi,Yn=Zn,Vt.uniform2f(re.location,Mi,Zn)),Ua=Zr.elements,Fo=null,vl=jr(Ua),vl?Fo=ht.createStream(Ua):Fo=ht.getElements(Ua),Fo&&Vt.bindBuffer(34963,Fo.buffer.buffer),Us=Zr.offset,ml=Zr.count,ml&&(ao>0?Fo?fr.drawElementsInstancedANGLE(0,ml,Fo.type,Us<<(Fo.type-5121>>1),ao):fr.drawArraysInstancedANGLE(0,Us,ml,ao):ao<0&&(Fo?Vt.drawElements(0,ml,Fo.type,Us<<(Fo.type-5121>>1)):Vt.drawArrays(0,Us,ml)),Pe.viewportWidth=Qa,Pe.viewportHeight=vn,mo&&st.destroyStream(Ns),$n&&st.destroyStream(eo),_a&&st.destroyStream(Wa),rs&&st.destroyStream(Ma),Bo&&st.destroyStream(Aa),Ra&&st.destroyStream(Do),Ut&&st.destroyStream(ki),pa&&st.destroyStream(dl),sl&&st.destroyStream(Al),vl&&ht.destroyStream(Fo))}G.unbind(),ze.dirty=!0,pr.setVAO(null),dt&&(r.cpuTime+=performance.now()-$t)}}}});var U9=we((mbr,h7e)=>{h7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We){"use strict";var Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi;return Ve=t.gl,et=t.context,tt=t.strings,Lt=t.next,jt=t.current,or=t.draw,yr=t.elements,vr=t.buffer,Vt=t.shader,Pe=t.attributes,xe=t.vao,Oe=t.uniforms,ze=t.framebuffer,Re=t.extensions,ht=t.timer,st=t.isBufferArgs,gt=Lt.blend_color,xt=jt.blend_color,pr=Lt.blend_equation,br=jt.blend_equation,cr=Lt.blend_func,Er=jt.blend_func,ii=Lt.depth_range,jr=jt.depth_range,kr=Lt.colorMask,Vr=jt.colorMask,Ai=Lt.polygonOffset_offset,Bi=jt.polygonOffset_offset,Di=Lt.sample_coverage,ln=jt.sample_coverage,hn=Lt.stencil_func,qr=jt.stencil_func,_i=Lt.stencil_opFront,zi=jt.stencil_opFront,Rt=Lt.stencil_opBack,_t=jt.stencil_opBack,qt=Lt.scissor_box,Nt=jt.scissor_box,mr=Lt.viewport,Lr=jt.viewport,Nr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Fr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Gr={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Hr={add:32774,subtract:32778,"reverse subtract":32779},mi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ei={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Vi={cw:2304,ccw:2305},ti={},ti.buffer=n,ti.divisor=1,Qi={},Qi.buffer=i,Qi.divisor=1,Yr={},Yr.buffer=a,Yr.divisor=1,oi={},oi.buffer=o,oi.divisor=1,{draw:function(Fi){var rn,tn,Ri,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us;if(rn=Re.angle_instanced_arrays,tn=ze.next,tn!==ze.cur&&(tn?Ve.bindFramebuffer(36160,tn.framebuffer):Ve.bindFramebuffer(36160,null),ze.cur=tn),jt.dirty){var Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs;Rs=Lt.dither,Rs!==jt.dither&&(Rs?Ve.enable(3024):Ve.disable(3024),jt.dither=Rs),fl=Lt.depth_func,fl!==jt.depth_func&&(Ve.depthFunc(fl),jt.depth_func=fl),as=ii[0],Ma=ii[1],(as!==jr[0]||Ma!==jr[1])&&(Ve.depthRange(as,Ma),jr[0]=as,jr[1]=Ma),Qs=Lt.depth_mask,Qs!==jt.depth_mask&&(Ve.depthMask(Qs),jt.depth_mask=Qs),ho=kr[0],gs=kr[1],Vo=kr[2],Ro=kr[3],(ho!==Vr[0]||gs!==Vr[1]||Vo!==Vr[2]||Ro!==Vr[3])&&(Ve.colorMask(ho,gs,Vo,Ro),Vr[0]=ho,Vr[1]=gs,Vr[2]=Vo,Vr[3]=Ro),Lo=Lt.cull_enable,Lo!==jt.cull_enable&&(Lo?Ve.enable(2884):Ve.disable(2884),jt.cull_enable=Lo),xs=Lt.cull_face,xs!==jt.cull_face&&(Ve.cullFace(xs),jt.cull_face=xs),ks=Lt.frontFace,ks!==jt.frontFace&&(Ve.frontFace(ks),jt.frontFace=ks),Ea=Lt.lineWidth,Ea!==jt.lineWidth&&(Ve.lineWidth(Ea),jt.lineWidth=Ea),Jn=Lt.polygonOffset_enable,Jn!==jt.polygonOffset_enable&&(Jn?Ve.enable(32823):Ve.disable(32823),jt.polygonOffset_enable=Jn),Bo=Ai[0],rl=Ai[1],(Bo!==Bi[0]||rl!==Bi[1])&&(Ve.polygonOffset(Bo,rl),Bi[0]=Bo,Bi[1]=rl),Gs=Lt.sample_alpha,Gs!==jt.sample_alpha&&(Gs?Ve.enable(32926):Ve.disable(32926),jt.sample_alpha=Gs),bs=Lt.sample_enable,bs!==jt.sample_enable&&(bs?Ve.enable(32928):Ve.disable(32928),jt.sample_enable=bs),zs=Di[0],$o=Di[1],(zs!==ln[0]||$o!==ln[1])&&(Ve.sampleCoverage(zs,$o),ln[0]=zs,ln[1]=$o),Aa=Lt.stencil_enable,Aa!==jt.stencil_enable&&(Aa?Ve.enable(2960):Ve.disable(2960),jt.stencil_enable=Aa),os=Lt.stencil_mask,os!==jt.stencil_mask&&(Ve.stencilMask(os),jt.stencil_mask=os),_l=hn[0],Ss=hn[1],po=hn[2],(_l!==qr[0]||Ss!==qr[1]||po!==qr[2])&&(Ve.stencilFunc(_l,Ss,po),qr[0]=_l,qr[1]=Ss,qr[2]=po),go=_i[0],ss=_i[1],qo=_i[2],zo=_i[3],(go!==zi[0]||ss!==zi[1]||qo!==zi[2]||zo!==zi[3])&&(Ve.stencilOpSeparate(go,ss,qo,zo),zi[0]=go,zi[1]=ss,zi[2]=qo,zi[3]=zo),io=Rt[0],Io=Rt[1],Ra=Rt[2],vs=Rt[3],(io!==_t[0]||Io!==_t[1]||Ra!==_t[2]||vs!==_t[3])&&(Ve.stencilOpSeparate(io,Io,Ra,vs),_t[0]=io,_t[1]=Io,_t[2]=Ra,_t[3]=vs)}Ri=Fi.viewport,Ii=Ri.x|0,xn=Ri.y|0,xi="width"in Ri?Ri.width|0:et.framebufferWidth-Ii,Xr="height"in Ri?Ri.height|0:et.framebufferHeight-xn,dt=et.viewportWidth,et.viewportWidth=xi,$t=et.viewportHeight,et.viewportHeight=Xr,Ve.viewport(Ii,xn,xi,Xr),Lr[0]=Ii,Lr[1]=xn,Lr[2]=xi,Lr[3]=Xr,Ve.blendColor(0,0,0,0),xt[0]=0,xt[1]=0,xt[2]=0,xt[3]=0,s?Ve.enable(3042):Ve.disable(3042),jt.blend_enable=s,Ve.blendEquationSeparate(32774,32774),br[0]=32774,br[1]=32774,Ve.blendFuncSeparate(770,771,773,1),Er[0]=770,Er[1]=771,Er[2]=773,Er[3]=1,u?Ve.enable(2929):Ve.disable(2929),jt.depth_enable=u,fr=Fi.viewport,gr=fr.x|0,Zr=fr.y|0,wi="width"in fr?fr.width|0:et.framebufferWidth-gr,$i="height"in fr?fr.height|0:et.framebufferHeight-Zr,Ve.scissor(gr,Zr,wi,$i),Nt[0]=gr,Nt[1]=Zr,Nt[2]=wi,Nt[3]=$i,l?Ve.enable(3089):Ve.disable(3089),jt.scissor_enable=l,ni=jt.profile,ni&&(Xi=performance.now(),r.count++),Ve.useProgram(f.program),aa=Re.angle_instanced_arrays,xe.setVAO(null),Mn=h.location,Un=Pe[Mn],Un.buffer||Ve.enableVertexAttribArray(Mn),(Un.type!==5126||Un.size!==2||Un.buffer!==c||Un.normalized!==!1||Un.offset!==16||Un.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(Mn,2,5126,!1,24,16),Un.type=5126,Un.size=2,Un.buffer=c,Un.normalized=!1,Un.offset=16,Un.stride=24),Un.divisor!==0&&(aa.vertexAttribDivisorANGLE(Mn,0),Un.divisor=0),Ga=d.call(this,et,Fi,0),ti.offset=Ga,ma=!1,oa=1,ka=0,so=0,Kr=0,Ia=0,Yo=null,fa=0,kn=!1,Ta=5126,ys=0,uo=0,ls=0,st(ti)?(ma=!0,Yo=vr.createStream(34962,ti),Ta=Yo.dtype):(Yo=vr.getBuffer(ti),Yo?Ta=Yo.dtype:"constant"in ti?(oa=2,typeof ti.constant=="number"?(ka=ti.constant,so=Kr=Ia=0):(ka=ti.constant.length>0?ti.constant[0]:0,so=ti.constant.length>1?ti.constant[1]:0,Kr=ti.constant.length>2?ti.constant[2]:0,Ia=ti.constant.length>3?ti.constant[3]:0)):(st(ti.buffer)?Yo=vr.createStream(34962,ti.buffer):Yo=vr.getBuffer(ti.buffer),Ta="type"in ti?Ei[ti.type]:Yo.dtype,kn=!!ti.normalized,fa=ti.size|0,ys=ti.offset|0,uo=ti.stride|0,ls=ti.divisor|0)),$a=p.location,fo=Pe[$a],oa===1?(fo.buffer||Ve.enableVertexAttribArray($a),mn=fa||4,(fo.type!==Ta||fo.size!==mn||fo.buffer!==Yo||fo.normalized!==kn||fo.offset!==ys||fo.stride!==uo)&&(Ve.bindBuffer(34962,Yo.buffer),Ve.vertexAttribPointer($a,mn,Ta,kn,uo,ys),fo.type=Ta,fo.size=mn,fo.buffer=Yo,fo.normalized=kn,fo.offset=ys,fo.stride=uo),fo.divisor!==ls&&(aa.vertexAttribDivisorANGLE($a,ls),fo.divisor=ls)):(fo.buffer&&(Ve.disableVertexAttribArray($a),fo.buffer=null),(fo.x!==ka||fo.y!==so||fo.z!==Kr||fo.w!==Ia)&&(Ve.vertexAttrib4f($a,ka,so,Kr,Ia),fo.x=ka,fo.y=so,fo.z=Kr,fo.w=Ia)),ra=y.location,wa=Pe[ra],wa.buffer||Ve.enableVertexAttribArray(ra),(wa.type!==5126||wa.size!==2||wa.buffer!==c||wa.normalized!==!1||wa.offset!==0||wa.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(ra,2,5126,!1,24,0),wa.type=5126,wa.size=2,wa.buffer=c,wa.normalized=!1,wa.offset=0,wa.stride=24),wa.divisor!==0&&(aa.vertexAttribDivisorANGLE(ra,0),wa.divisor=0),ws=b.call(this,et,Fi,0),oi.offset=ws,Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Oa=!1,Ko=5126,Qo=0,Hi=0,Sa=0,st(oi)?(Co=!0,Sn=vr.createStream(34962,oi),Ko=Sn.dtype):(Sn=vr.getBuffer(oi),Sn?Ko=Sn.dtype:"constant"in oi?(Po=2,typeof oi.constant=="number"?(Wi=oi.constant,gn=Ps=Ha=0):(Wi=oi.constant.length>0?oi.constant[0]:0,gn=oi.constant.length>1?oi.constant[1]:0,Ps=oi.constant.length>2?oi.constant[2]:0,Ha=oi.constant.length>3?oi.constant[3]:0)):(st(oi.buffer)?Sn=vr.createStream(34962,oi.buffer):Sn=vr.getBuffer(oi.buffer),Ko="type"in oi?Ei[oi.type]:Sn.dtype,Oa=!!oi.normalized,ao=oi.size|0,Qo=oi.offset|0,Hi=oi.stride|0,Sa=oi.divisor|0)),Qa=v.location,vn=Pe[Qa],Po===1?(vn.buffer||Ve.enableVertexAttribArray(Qa),da=ao||4,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Oa||vn.offset!==Qo||vn.stride!==Hi)&&(Ve.bindBuffer(34962,Sn.buffer),Ve.vertexAttribPointer(Qa,da,Ko,Oa,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Oa,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(aa.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ve.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ve.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=C.location,vo=Pe[la],vo.buffer||Ve.enableVertexAttribArray(la),(vo.type!==5126||vo.size!==2||vo.buffer!==c||vo.normalized!==!1||vo.offset!==8||vo.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(la,2,5126,!1,24,8),vo.type=5126,vo.size=2,vo.buffer=c,vo.normalized=!1,vo.offset=8,vo.stride=24),vo.divisor!==0&&(aa.vertexAttribDivisorANGLE(la,0),vo.divisor=0),As=M.call(this,et,Fi,0),Qi.offset=As,ps=!1,co=1,mo=0,No=0,jn=0,Go=0,Ys=null,qs=0,Ns=!1,Ba=5126,ha=0,Vs=0,Ya=0,st(Qi)?(ps=!0,Ys=vr.createStream(34962,Qi),Ba=Ys.dtype):(Ys=vr.getBuffer(Qi),Ys?Ba=Ys.dtype:"constant"in Qi?(co=2,typeof Qi.constant=="number"?(mo=Qi.constant,No=jn=Go=0):(mo=Qi.constant.length>0?Qi.constant[0]:0,No=Qi.constant.length>1?Qi.constant[1]:0,jn=Qi.constant.length>2?Qi.constant[2]:0,Go=Qi.constant.length>3?Qi.constant[3]:0)):(st(Qi.buffer)?Ys=vr.createStream(34962,Qi.buffer):Ys=vr.getBuffer(Qi.buffer),Ba="type"in Qi?Ei[Qi.type]:Ys.dtype,Ns=!!Qi.normalized,qs=Qi.size|0,ha=Qi.offset|0,Vs=Qi.stride|0,Ya=Qi.divisor|0)),_n=A.location,Vn=Pe[_n],co===1?(Vn.buffer||Ve.enableVertexAttribArray(_n),wo=qs||2,(Vn.type!==Ba||Vn.size!==wo||Vn.buffer!==Ys||Vn.normalized!==Ns||Vn.offset!==ha||Vn.stride!==Vs)&&(Ve.bindBuffer(34962,Ys.buffer),Ve.vertexAttribPointer(_n,wo,Ba,Ns,Vs,ha),Vn.type=Ba,Vn.size=wo,Vn.buffer=Ys,Vn.normalized=Ns,Vn.offset=ha,Vn.stride=Vs),Vn.divisor!==Ya&&(aa.vertexAttribDivisorANGLE(_n,Ya),Vn.divisor=Ya)):(Vn.buffer&&(Ve.disableVertexAttribArray(_n),Vn.buffer=null),(Vn.x!==mo||Vn.y!==No||Vn.z!==jn||Vn.w!==Go)&&(Ve.vertexAttrib4f(_n,mo,No,jn,Go),Vn.x=mo,Vn.y=No,Vn.z=jn,Vn.w=Go)),Da=L.call(this,et,Fi,0),Yr.offset=Da,Xn=!1,sn=1,$n=0,Ka=0,qn=0,Eo=0,Ja=null,lo=0,eo=!1,sa=5126,es=0,Na=0,en=0,st(Yr)?(Xn=!0,Ja=vr.createStream(34962,Yr),sa=Ja.dtype):(Ja=vr.getBuffer(Yr),Ja?sa=Ja.dtype:"constant"in Yr?(sn=2,typeof Yr.constant=="number"?($n=Yr.constant,Ka=qn=Eo=0):($n=Yr.constant.length>0?Yr.constant[0]:0,Ka=Yr.constant.length>1?Yr.constant[1]:0,qn=Yr.constant.length>2?Yr.constant[2]:0,Eo=Yr.constant.length>3?Yr.constant[3]:0)):(st(Yr.buffer)?Ja=vr.createStream(34962,Yr.buffer):Ja=vr.getBuffer(Yr.buffer),sa="type"in Yr?Ei[Yr.type]:Ja.dtype,eo=!!Yr.normalized,lo=Yr.size|0,es=Yr.offset|0,Na=Yr.stride|0,en=Yr.divisor|0)),Pa=x.location,to=Pe[Pa],sn===1?(to.buffer||Ve.enableVertexAttribArray(Pa),yo=lo||2,(to.type!==sa||to.size!==yo||to.buffer!==Ja||to.normalized!==eo||to.offset!==es||to.stride!==Na)&&(Ve.bindBuffer(34962,Ja.buffer),Ve.vertexAttribPointer(Pa,yo,sa,eo,Na,es),to.type=sa,to.size=yo,to.buffer=Ja,to.normalized=eo,to.offset=es,to.stride=Na),to.divisor!==en&&(aa.vertexAttribDivisorANGLE(Pa,en),to.divisor=en)):(to.buffer&&(Ve.disableVertexAttribArray(Pa),to.buffer=null),(to.x!==$n||to.y!==Ka||to.z!==qn||to.w!==Eo)&&(Ve.vertexAttrib4f(Pa,$n,Ka,qn,Eo),to.x=$n,to.y=Ka,to.z=qn,to.w=Eo)),Jo=Fi.capSize,Ve.uniform1f(k.location,Jo),Ao=Fi.lineWidth,Ve.uniform1f(S.location,Ao),Rn=Fi.opacity,Ve.uniform1f(m.location,Rn),_a=Fi.scale,Ws=_a[0],Ca=_a[1],Ve.uniform2f(P.location,Ws,Ca),Es=Fi.scaleFract,Ts=Es[0],Ho=Es[1],Ve.uniform2f(E.location,Ts,Ho),Wa=Fi.translate,To=Wa[0],ts=Wa[1],Ve.uniform2f(O.location,To,ts),Wo=Fi.translateFract,qa=Wo[0],on=Wo[1],Ve.uniform2f(F.location,qa,on),Oo=G.call(this,et,Fi,0),ko=Oo[0],oo=Oo[1],za=Oo[2],ea=Oo[3],Ve.uniform4f(U.location,ko,oo,za,ea),rs=or.elements,rs?Ve.bindBuffer(34963,rs.buffer.buffer):xe.currentVAO&&(rs=yr.getElements(xe.currentVAO.elements),rs&&Ve.bindBuffer(34963,rs.buffer.buffer)),$s=or.offset,us=Fi.count,us>0?rs?aa.drawElementsInstancedANGLE(4,36,rs.type,$s<<(rs.type-5121>>1),us):aa.drawArraysInstancedANGLE(4,$s,36,us):us<0&&(rs?Ve.drawElements(4,36,rs.type,$s<<(rs.type-5121>>1)):Ve.drawArrays(4,$s,36)),jt.dirty=!0,xe.setVAO(null),et.viewportWidth=dt,et.viewportHeight=$t,ni&&(r.cpuTime+=performance.now()-Xi),ma&&vr.destroyStream(Yo),Co&&vr.destroyStream(Sn),ps&&vr.destroyStream(Ys),Xn&&vr.destroyStream(Ja)},scope:function(Fi,rn,tn){var Ri,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml;Ri=Fi.viewport,Ii=Ri.x|0,xn=Ri.y|0,xi="width"in Ri?Ri.width|0:et.framebufferWidth-Ii,Xr="height"in Ri?Ri.height|0:et.framebufferHeight-xn,dt=et.viewportWidth,et.viewportWidth=xi,$t=et.viewportHeight,et.viewportHeight=Xr,fr=mr[0],mr[0]=Ii,gr=mr[1],mr[1]=xn,Zr=mr[2],mr[2]=xi,wi=mr[3],mr[3]=Xr,$i=gt[0],gt[0]=j,ni=gt[1],gt[1]=W,Xi=gt[2],gt[2]=N,aa=gt[3],gt[3]=H,Mn=Lt.blend_enable,Lt.blend_enable=re,Un=pr[0],pr[0]=ae,Ga=pr[1],pr[1]=me,ma=cr[0],cr[0]=Le,oa=cr[1],cr[1]=Ce,ka=cr[2],cr[2]=de,so=cr[3],cr[3]=te,Kr=Lt.depth_enable,Lt.depth_enable=Se,Ia=Fi.viewport,Yo=Ia.x|0,fa=Ia.y|0,kn="width"in Ia?Ia.width|0:et.framebufferWidth-Yo,Ta="height"in Ia?Ia.height|0:et.framebufferHeight-fa,ys=qt[0],qt[0]=Yo,uo=qt[1],qt[1]=fa,ls=qt[2],qt[2]=kn,$a=qt[3],qt[3]=Ta,fo=Lt.scissor_enable,Lt.scissor_enable=Te,mn=jt.profile,mn&&(ra=performance.now(),r.count++),wa=or.count,or.count=be,ws=Fi.count,Co=or.instances,or.instances=ws,Po=or.primitive,or.primitive=He,Wi=Fi.range,gn=Oe[Ie],Oe[Ie]=Wi,Ps=Fi.lineWidth,Ha=Oe[ge],Oe[ge]=Ps,Sn=Fi.capSize,ao=Oe[Be],Oe[Be]=Sn,Oa=Fi.opacity,Ko=Oe[ce],Oe[ce]=Oa,Qo=Fi.scale,Hi=Oe[je],Oe[je]=Qo,Sa=Fi.translate,Qa=Oe[rt],Oe[rt]=Sa,vn=Fi.scaleFract,da=Oe[bt],Oe[bt]=vn,la=Fi.translateFract,vo=Oe[Ot],Oe[Ot]=la,As=G.call(this,et,Fi,tn),ps=Oe[it],Oe[it]=As,co=Ke.state,Ke.state=1,mo=Ke.x,Ke.x=0,No=Ke.y,Ke.y=0,jn=Ke.z,Ke.z=0,Go=Ke.w,Ke.w=0,Ys=Ke.buffer,Ke.buffer=c,qs=Ke.size,Ke.size=0,Ns=Ke.normalized,Ke.normalized=!1,Ba=Ke.type,Ke.type=5126,ha=Ke.offset,Ke.offset=0,Vs=Ke.stride,Ke.stride=24,Ya=Ke.divisor,Ke.divisor=0,_n=zt.state,zt.state=1,Vn=zt.x,zt.x=0,wo=zt.y,zt.y=0,Da=zt.z,zt.z=0,Xn=zt.w,zt.w=0,sn=zt.buffer,zt.buffer=c,$n=zt.size,zt.size=0,Ka=zt.normalized,zt.normalized=!1,qn=zt.type,zt.type=5126,Eo=zt.offset,zt.offset=8,Ja=zt.stride,zt.stride=24,lo=zt.divisor,zt.divisor=0,eo=Mt.state,Mt.state=1,sa=Mt.x,Mt.x=0,es=Mt.y,Mt.y=0,Na=Mt.z,Mt.z=0,en=Mt.w,Mt.w=0,Pa=Mt.buffer,Mt.buffer=c,to=Mt.size,Mt.size=0,yo=Mt.normalized,Mt.normalized=!1,Jo=Mt.type,Mt.type=5126,Ao=Mt.offset,Mt.offset=16,Rn=Mt.stride,Mt.stride=24,_a=Mt.divisor,Mt.divisor=0,Ws=d.call(this,et,Fi,tn),ti.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,on=5126,Oo=0,ko=0,oo=0,st(ti)?(Ca=!0,ts=vr.createStream(34962,ti),on=ts.dtype):(ts=vr.getBuffer(ti),ts?on=ts.dtype:"constant"in ti?(Es=2,typeof ti.constant=="number"?(Ts=ti.constant,Ho=Wa=To=0):(Ts=ti.constant.length>0?ti.constant[0]:0,Ho=ti.constant.length>1?ti.constant[1]:0,Wa=ti.constant.length>2?ti.constant[2]:0,To=ti.constant.length>3?ti.constant[3]:0)):(st(ti.buffer)?ts=vr.createStream(34962,ti.buffer):ts=vr.getBuffer(ti.buffer),on="type"in ti?Ei[ti.type]:ts.dtype,qa=!!ti.normalized,Wo=ti.size|0,Oo=ti.offset|0,ko=ti.stride|0,oo=ti.divisor|0)),za=kt.state,kt.state=Es,ea=kt.x,kt.x=Ts,rs=kt.y,kt.y=Ho,$s=kt.z,kt.z=Wa,us=kt.w,kt.w=To,Rs=kt.buffer,kt.buffer=ts,fl=kt.size,kt.size=Wo,as=kt.normalized,kt.normalized=qa,Ma=kt.type,kt.type=on,Qs=kt.offset,kt.offset=Oo,ho=kt.stride,kt.stride=ko,gs=kt.divisor,kt.divisor=oo,Vo=M.call(this,et,Fi,tn),Qi.offset=Vo,Ro=!1,Lo=1,xs=0,ks=0,Ea=0,Jn=0,Bo=null,rl=0,Gs=!1,bs=5126,zs=0,$o=0,Aa=0,st(Qi)?(Ro=!0,Bo=vr.createStream(34962,Qi),bs=Bo.dtype):(Bo=vr.getBuffer(Qi),Bo?bs=Bo.dtype:"constant"in Qi?(Lo=2,typeof Qi.constant=="number"?(xs=Qi.constant,ks=Ea=Jn=0):(xs=Qi.constant.length>0?Qi.constant[0]:0,ks=Qi.constant.length>1?Qi.constant[1]:0,Ea=Qi.constant.length>2?Qi.constant[2]:0,Jn=Qi.constant.length>3?Qi.constant[3]:0)):(st(Qi.buffer)?Bo=vr.createStream(34962,Qi.buffer):Bo=vr.getBuffer(Qi.buffer),bs="type"in Qi?Ei[Qi.type]:Bo.dtype,Gs=!!Qi.normalized,rl=Qi.size|0,zs=Qi.offset|0,$o=Qi.stride|0,Aa=Qi.divisor|0)),os=$e.state,$e.state=Lo,_l=$e.x,$e.x=xs,Ss=$e.y,$e.y=ks,po=$e.z,$e.z=Ea,go=$e.w,$e.w=Jn,ss=$e.buffer,$e.buffer=Bo,qo=$e.size,$e.size=rl,zo=$e.normalized,$e.normalized=Gs,io=$e.type,$e.type=bs,Io=$e.offset,$e.offset=zs,Ra=$e.stride,$e.stride=$o,vs=$e.divisor,$e.divisor=Aa,fs=L.call(this,et,Fi,tn),Yr.offset=fs,cl=!1,el=1,Hs=0,Do=0,tl=0,Fs=0,hl=null,Fa=0,Ms=!1,jo=5126,Ds=0,Is=0,Os=0,st(Yr)?(cl=!0,hl=vr.createStream(34962,Yr),jo=hl.dtype):(hl=vr.getBuffer(Yr),hl?jo=hl.dtype:"constant"in Yr?(el=2,typeof Yr.constant=="number"?(Hs=Yr.constant,Do=tl=Fs=0):(Hs=Yr.constant.length>0?Yr.constant[0]:0,Do=Yr.constant.length>1?Yr.constant[1]:0,tl=Yr.constant.length>2?Yr.constant[2]:0,Fs=Yr.constant.length>3?Yr.constant[3]:0)):(st(Yr.buffer)?hl=vr.createStream(34962,Yr.buffer):hl=vr.getBuffer(Yr.buffer),jo="type"in Yr?Ei[Yr.type]:hl.dtype,Ms=!!Yr.normalized,Fa=Yr.size|0,Ds=Yr.offset|0,Is=Yr.stride|0,Os=Yr.divisor|0)),St=De.state,De.state=el,Ut=De.x,De.x=Hs,xr=De.y,De.y=Do,dr=De.z,De.z=tl,Rr=De.w,De.w=Fs,yi=De.buffer,De.buffer=hl,Ti=De.size,De.size=Fa,ki=De.normalized,De.normalized=Ms,Ki=De.type,De.type=jo,Fn=De.offset,De.offset=Ds,Li=De.stride,De.stride=Is,hi=De.divisor,De.divisor=Os,Ci=b.call(this,et,Fi,tn),oi.offset=Ci,Si=!1,Gn=1,ta=0,ya=0,ia=0,pa=0,va=null,zn=0,is=!1,Cs=5126,Ks=0,dl=0,xl=0,st(oi)?(Si=!0,va=vr.createStream(34962,oi),Cs=va.dtype):(va=vr.getBuffer(oi),va?Cs=va.dtype:"constant"in oi?(Gn=2,typeof oi.constant=="number"?(ta=oi.constant,ya=ia=pa=0):(ta=oi.constant.length>0?oi.constant[0]:0,ya=oi.constant.length>1?oi.constant[1]:0,ia=oi.constant.length>2?oi.constant[2]:0,pa=oi.constant.length>3?oi.constant[3]:0)):(st(oi.buffer)?va=vr.createStream(34962,oi.buffer):va=vr.getBuffer(oi.buffer),Cs="type"in oi?Ei[oi.type]:va.dtype,is=!!oi.normalized,zn=oi.size|0,Ks=oi.offset|0,dl=oi.stride|0,xl=oi.divisor|0)),Bl=Me.state,Me.state=Gn,bl=Me.x,Me.x=ta,eu=Me.y,Me.y=ya,Zl=Me.z,Me.z=ia,Vl=Me.w,Me.w=pa,ja=Me.buffer,Me.buffer=va,ns=Me.size,Me.size=zn,Js=Me.normalized,Me.normalized=is,cs=Me.type,Me.type=Cs,sl=Me.offset,Me.offset=Ks,ll=Me.stride,Me.stride=dl,nl=Me.divisor,Me.divisor=xl,zl=Vt.vert,Vt.vert=oe,Ml=Vt.frag,Vt.frag=Ne,jt.dirty=!0,rn(et,Fi,tn),et.viewportWidth=dt,et.viewportHeight=$t,mr[0]=fr,mr[1]=gr,mr[2]=Zr,mr[3]=wi,gt[0]=$i,gt[1]=ni,gt[2]=Xi,gt[3]=aa,Lt.blend_enable=Mn,pr[0]=Un,pr[1]=Ga,cr[0]=ma,cr[1]=oa,cr[2]=ka,cr[3]=so,Lt.depth_enable=Kr,qt[0]=ys,qt[1]=uo,qt[2]=ls,qt[3]=$a,Lt.scissor_enable=fo,mn&&(r.cpuTime+=performance.now()-ra),or.count=wa,or.instances=Co,or.primitive=Po,Oe[Ie]=gn,Oe[ge]=Ha,Oe[Be]=ao,Oe[ce]=Ko,Oe[je]=Hi,Oe[rt]=Qa,Oe[bt]=da,Oe[Ot]=vo,Oe[it]=ps,Ke.state=co,Ke.x=mo,Ke.y=No,Ke.z=jn,Ke.w=Go,Ke.buffer=Ys,Ke.size=qs,Ke.normalized=Ns,Ke.type=Ba,Ke.offset=ha,Ke.stride=Vs,Ke.divisor=Ya,zt.state=_n,zt.x=Vn,zt.y=wo,zt.z=Da,zt.w=Xn,zt.buffer=sn,zt.size=$n,zt.normalized=Ka,zt.type=qn,zt.offset=Eo,zt.stride=Ja,zt.divisor=lo,Mt.state=eo,Mt.x=sa,Mt.y=es,Mt.z=Na,Mt.w=en,Mt.buffer=Pa,Mt.size=to,Mt.normalized=yo,Mt.type=Jo,Mt.offset=Ao,Mt.stride=Rn,Mt.divisor=_a,Ca&&vr.destroyStream(ts),kt.state=za,kt.x=ea,kt.y=rs,kt.z=$s,kt.w=us,kt.buffer=Rs,kt.size=fl,kt.normalized=as,kt.type=Ma,kt.offset=Qs,kt.stride=ho,kt.divisor=gs,Ro&&vr.destroyStream(Bo),$e.state=os,$e.x=_l,$e.y=Ss,$e.z=po,$e.w=go,$e.buffer=ss,$e.size=qo,$e.normalized=zo,$e.type=io,$e.offset=Io,$e.stride=Ra,$e.divisor=vs,cl&&vr.destroyStream(hl),De.state=St,De.x=Ut,De.y=xr,De.z=dr,De.w=Rr,De.buffer=yi,De.size=Ti,De.normalized=ki,De.type=Ki,De.offset=Fn,De.stride=Li,De.divisor=hi,Si&&vr.destroyStream(va),Me.state=Bl,Me.x=bl,Me.y=eu,Me.z=Zl,Me.w=Vl,Me.buffer=ja,Me.size=ns,Me.normalized=Js,Me.type=cs,Me.offset=sl,Me.stride=ll,Me.divisor=nl,Vt.vert=zl,Vt.frag=Ml,jt.dirty=!0},batch:function(Fi,rn){var tn,Ri,Ii,xn,xi,Xr,dt;if(tn=Re.angle_instanced_arrays,Ri=ze.next,Ri!==ze.cur&&(Ri?Ve.bindFramebuffer(36160,Ri.framebuffer):Ve.bindFramebuffer(36160,null),ze.cur=Ri),jt.dirty){var $t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po;$t=Lt.dither,$t!==jt.dither&&($t?Ve.enable(3024):Ve.disable(3024),jt.dither=$t),fr=Lt.depth_func,fr!==jt.depth_func&&(Ve.depthFunc(fr),jt.depth_func=fr),gr=ii[0],Zr=ii[1],(gr!==jr[0]||Zr!==jr[1])&&(Ve.depthRange(gr,Zr),jr[0]=gr,jr[1]=Zr),wi=Lt.depth_mask,wi!==jt.depth_mask&&(Ve.depthMask(wi),jt.depth_mask=wi),$i=kr[0],ni=kr[1],Xi=kr[2],aa=kr[3],($i!==Vr[0]||ni!==Vr[1]||Xi!==Vr[2]||aa!==Vr[3])&&(Ve.colorMask($i,ni,Xi,aa),Vr[0]=$i,Vr[1]=ni,Vr[2]=Xi,Vr[3]=aa),Mn=Lt.cull_enable,Mn!==jt.cull_enable&&(Mn?Ve.enable(2884):Ve.disable(2884),jt.cull_enable=Mn),Un=Lt.cull_face,Un!==jt.cull_face&&(Ve.cullFace(Un),jt.cull_face=Un),Ga=Lt.frontFace,Ga!==jt.frontFace&&(Ve.frontFace(Ga),jt.frontFace=Ga),ma=Lt.lineWidth,ma!==jt.lineWidth&&(Ve.lineWidth(ma),jt.lineWidth=ma),oa=Lt.polygonOffset_enable,oa!==jt.polygonOffset_enable&&(oa?Ve.enable(32823):Ve.disable(32823),jt.polygonOffset_enable=oa),ka=Ai[0],so=Ai[1],(ka!==Bi[0]||so!==Bi[1])&&(Ve.polygonOffset(ka,so),Bi[0]=ka,Bi[1]=so),Kr=Lt.sample_alpha,Kr!==jt.sample_alpha&&(Kr?Ve.enable(32926):Ve.disable(32926),jt.sample_alpha=Kr),Ia=Lt.sample_enable,Ia!==jt.sample_enable&&(Ia?Ve.enable(32928):Ve.disable(32928),jt.sample_enable=Ia),Yo=Di[0],fa=Di[1],(Yo!==ln[0]||fa!==ln[1])&&(Ve.sampleCoverage(Yo,fa),ln[0]=Yo,ln[1]=fa),kn=Lt.stencil_enable,kn!==jt.stencil_enable&&(kn?Ve.enable(2960):Ve.disable(2960),jt.stencil_enable=kn),Ta=Lt.stencil_mask,Ta!==jt.stencil_mask&&(Ve.stencilMask(Ta),jt.stencil_mask=Ta),ys=hn[0],uo=hn[1],ls=hn[2],(ys!==qr[0]||uo!==qr[1]||ls!==qr[2])&&(Ve.stencilFunc(ys,uo,ls),qr[0]=ys,qr[1]=uo,qr[2]=ls),$a=_i[0],fo=_i[1],mn=_i[2],ra=_i[3],($a!==zi[0]||fo!==zi[1]||mn!==zi[2]||ra!==zi[3])&&(Ve.stencilOpSeparate($a,fo,mn,ra),zi[0]=$a,zi[1]=fo,zi[2]=mn,zi[3]=ra),wa=Rt[0],ws=Rt[1],Co=Rt[2],Po=Rt[3],(wa!==_t[0]||ws!==_t[1]||Co!==_t[2]||Po!==_t[3])&&(Ve.stencilOpSeparate(wa,ws,Co,Po),_t[0]=wa,_t[1]=ws,_t[2]=Co,_t[3]=Po)}Ve.blendColor(0,0,0,0),xt[0]=0,xt[1]=0,xt[2]=0,xt[3]=0,vt?Ve.enable(3042):Ve.disable(3042),jt.blend_enable=vt,Ve.blendEquationSeparate(32774,32774),br[0]=32774,br[1]=32774,Ve.blendFuncSeparate(770,771,773,1),Er[0]=770,Er[1]=771,Er[2]=773,Er[3]=1,lt?Ve.enable(2929):Ve.disable(2929),jt.depth_enable=lt,We?Ve.enable(3089):Ve.disable(3089),jt.scissor_enable=We,Ii=jt.profile,Ii&&(xn=performance.now(),r.count+=rn),Ve.useProgram(f.program),xi=Re.angle_instanced_arrays;var Wi,gn,Ps,Ha,Sn,ao,Oa,Ko;for(xe.setVAO(null),Wi=h.location,gn=Pe[Wi],gn.buffer||Ve.enableVertexAttribArray(Wi),(gn.type!==5126||gn.size!==2||gn.buffer!==c||gn.normalized!==!1||gn.offset!==16||gn.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(Wi,2,5126,!1,24,16),gn.type=5126,gn.size=2,gn.buffer=c,gn.normalized=!1,gn.offset=16,gn.stride=24),gn.divisor!==0&&(xi.vertexAttribDivisorANGLE(Wi,0),gn.divisor=0),Ps=y.location,Ha=Pe[Ps],Ha.buffer||Ve.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==2||Ha.buffer!==c||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(Ps,2,5126,!1,24,0),Ha.type=5126,Ha.size=2,Ha.buffer=c,Ha.normalized=!1,Ha.offset=0,Ha.stride=24),Ha.divisor!==0&&(xi.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=C.location,ao=Pe[Sn],ao.buffer||Ve.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==2||ao.buffer!==c||ao.normalized!==!1||ao.offset!==8||ao.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(Sn,2,5126,!1,24,8),ao.type=5126,ao.size=2,ao.buffer=c,ao.normalized=!1,ao.offset=8,ao.stride=24),ao.divisor!==0&&(xi.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Oa=or.elements,Oa?Ve.bindBuffer(34963,Oa.buffer.buffer):xe.currentVAO&&(Oa=yr.getElements(xe.currentVAO.elements),Oa&&Ve.bindBuffer(34963,Oa.buffer.buffer)),Ko=or.offset,Xr=0;Xr0?ti.constant[0]:0,qs=ti.constant.length>1?ti.constant[1]:0,Ns=ti.constant.length>2?ti.constant[2]:0,Ba=ti.constant.length>3?ti.constant[3]:0)):(st(ti.buffer)?ha=vr.createStream(34962,ti.buffer):ha=vr.getBuffer(ti.buffer),_n="type"in ti?Ei[ti.type]:ha.dtype,Ya=!!ti.normalized,Vs=ti.size|0,Vn=ti.offset|0,wo=ti.stride|0,Da=ti.divisor|0)),Xn=p.location,sn=Pe[Xn],Go===1?(sn.buffer||Ve.enableVertexAttribArray(Xn),$n=Vs||4,(sn.type!==_n||sn.size!==$n||sn.buffer!==ha||sn.normalized!==Ya||sn.offset!==Vn||sn.stride!==wo)&&(Ve.bindBuffer(34962,ha.buffer),Ve.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),sn.type=_n,sn.size=$n,sn.buffer=ha,sn.normalized=Ya,sn.offset=Vn,sn.stride=wo),sn.divisor!==Da&&(xi.vertexAttribDivisorANGLE(Xn,Da),sn.divisor=Da)):(sn.buffer&&(Ve.disableVertexAttribArray(Xn),sn.buffer=null),(sn.x!==Ys||sn.y!==qs||sn.z!==Ns||sn.w!==Ba)&&(Ve.vertexAttrib4f(Xn,Ys,qs,Ns,Ba),sn.x=Ys,sn.y=qs,sn.z=Ns,sn.w=Ba)),Ka=b.call(this,et,dt,Xr),oi.offset=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,en=!1,Pa=5126,to=0,yo=0,Jo=0,st(oi)?(qn=!0,es=vr.createStream(34962,oi),Pa=es.dtype):(es=vr.getBuffer(oi),es?Pa=es.dtype:"constant"in oi?(Eo=2,typeof oi.constant=="number"?(Ja=oi.constant,lo=eo=sa=0):(Ja=oi.constant.length>0?oi.constant[0]:0,lo=oi.constant.length>1?oi.constant[1]:0,eo=oi.constant.length>2?oi.constant[2]:0,sa=oi.constant.length>3?oi.constant[3]:0)):(st(oi.buffer)?es=vr.createStream(34962,oi.buffer):es=vr.getBuffer(oi.buffer),Pa="type"in oi?Ei[oi.type]:es.dtype,en=!!oi.normalized,Na=oi.size|0,to=oi.offset|0,yo=oi.stride|0,Jo=oi.divisor|0)),Ao=v.location,Rn=Pe[Ao],Eo===1?(Rn.buffer||Ve.enableVertexAttribArray(Ao),_a=Na||4,(Rn.type!==Pa||Rn.size!==_a||Rn.buffer!==es||Rn.normalized!==en||Rn.offset!==to||Rn.stride!==yo)&&(Ve.bindBuffer(34962,es.buffer),Ve.vertexAttribPointer(Ao,_a,Pa,en,yo,to),Rn.type=Pa,Rn.size=_a,Rn.buffer=es,Rn.normalized=en,Rn.offset=to,Rn.stride=yo),Rn.divisor!==Jo&&(xi.vertexAttribDivisorANGLE(Ao,Jo),Rn.divisor=Jo)):(Rn.buffer&&(Ve.disableVertexAttribArray(Ao),Rn.buffer=null),(Rn.x!==Ja||Rn.y!==lo||Rn.z!==eo||Rn.w!==sa)&&(Ve.vertexAttrib4f(Ao,Ja,lo,eo,sa),Rn.x=Ja,Rn.y=lo,Rn.z=eo,Rn.w=sa)),Ws=M.call(this,et,dt,Xr),Qi.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,on=5126,Oo=0,ko=0,oo=0,st(Qi)?(Ca=!0,ts=vr.createStream(34962,Qi),on=ts.dtype):(ts=vr.getBuffer(Qi),ts?on=ts.dtype:"constant"in Qi?(Es=2,typeof Qi.constant=="number"?(Ts=Qi.constant,Ho=Wa=To=0):(Ts=Qi.constant.length>0?Qi.constant[0]:0,Ho=Qi.constant.length>1?Qi.constant[1]:0,Wa=Qi.constant.length>2?Qi.constant[2]:0,To=Qi.constant.length>3?Qi.constant[3]:0)):(st(Qi.buffer)?ts=vr.createStream(34962,Qi.buffer):ts=vr.getBuffer(Qi.buffer),on="type"in Qi?Ei[Qi.type]:ts.dtype,qa=!!Qi.normalized,Wo=Qi.size|0,Oo=Qi.offset|0,ko=Qi.stride|0,oo=Qi.divisor|0)),za=A.location,ea=Pe[za],Es===1?(ea.buffer||Ve.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==on||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Oo||ea.stride!==ko)&&(Ve.bindBuffer(34962,ts.buffer),Ve.vertexAttribPointer(za,rs,on,qa,ko,Oo),ea.type=on,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Oo,ea.stride=ko),ea.divisor!==oo&&(xi.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(Ve.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(Ve.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=L.call(this,et,dt,Xr),Yr.offset=$s,us=!1,Rs=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Ro=5126,Lo=0,xs=0,ks=0,st(Yr)?(us=!0,ho=vr.createStream(34962,Yr),Ro=ho.dtype):(ho=vr.getBuffer(Yr),ho?Ro=ho.dtype:"constant"in Yr?(Rs=2,typeof Yr.constant=="number"?(fl=Yr.constant,as=Ma=Qs=0):(fl=Yr.constant.length>0?Yr.constant[0]:0,as=Yr.constant.length>1?Yr.constant[1]:0,Ma=Yr.constant.length>2?Yr.constant[2]:0,Qs=Yr.constant.length>3?Yr.constant[3]:0)):(st(Yr.buffer)?ho=vr.createStream(34962,Yr.buffer):ho=vr.getBuffer(Yr.buffer),Ro="type"in Yr?Ei[Yr.type]:ho.dtype,Vo=!!Yr.normalized,gs=Yr.size|0,Lo=Yr.offset|0,xs=Yr.stride|0,ks=Yr.divisor|0)),Ea=x.location,Jn=Pe[Ea],Rs===1?(Jn.buffer||Ve.enableVertexAttribArray(Ea),Bo=gs||2,(Jn.type!==Ro||Jn.size!==Bo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(Ve.bindBuffer(34962,ho.buffer),Ve.vertexAttribPointer(Ea,Bo,Ro,Vo,xs,Lo),Jn.type=Ro,Jn.size=Bo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(xi.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(Ve.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(Ve.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=dt.capSize,(!Xr||Gs!==rl)&&(Gs=rl,Ve.uniform1f(k.location,rl)),bs=dt.lineWidth,(!Xr||zs!==bs)&&(zs=bs,Ve.uniform1f(S.location,bs)),$o=dt.opacity,(!Xr||Aa!==$o)&&(Aa=$o,Ve.uniform1f(m.location,$o)),os=dt.scale,_l=os[0],po=os[1],(!Xr||Ss!==_l||go!==po)&&(Ss=_l,go=po,Ve.uniform2f(P.location,_l,po)),ss=dt.scaleFract,qo=ss[0],io=ss[1],(!Xr||zo!==qo||Io!==io)&&(zo=qo,Io=io,Ve.uniform2f(E.location,qo,io)),Ra=dt.translate,vs=Ra[0],cl=Ra[1],(!Xr||fs!==vs||el!==cl)&&(fs=vs,el=cl,Ve.uniform2f(O.location,vs,cl)),Hs=dt.translateFract,Do=Hs[0],Fs=Hs[1],(!Xr||tl!==Do||hl!==Fs)&&(tl=Do,hl=Fs,Ve.uniform2f(F.location,Do,Fs)),Fa=G.call(this,et,dt,Xr),Ms=Fa[0],Ds=Fa[1],Os=Fa[2],Ut=Fa[3],(!Xr||jo!==Ms||Is!==Ds||St!==Os||xr!==Ut)&&(jo=Ms,Is=Ds,St=Os,xr=Ut,Ve.uniform4f(U.location,Ms,Ds,Os,Ut)),dr=dt.count,dr>0?Oa?xi.drawElementsInstancedANGLE(4,36,Oa.type,Ko<<(Oa.type-5121>>1),dr):xi.drawArraysInstancedANGLE(4,Ko,36,dr):dr<0&&(Oa?Ve.drawElements(4,36,Oa.type,Ko<<(Oa.type-5121>>1)):Ve.drawArrays(4,Ko,36)),et.viewportWidth=da,et.viewportHeight=la,jn&&vr.destroyStream(ha),qn&&vr.destroyStream(es),Ca&&vr.destroyStream(ts),us&&vr.destroyStream(ho)}jt.dirty=!0,xe.setVAO(null),Ii&&(r.cpuTime+=performance.now()-xn)}}}});var V9=we((ybr,d7e)=>{d7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me){"use strict";var oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr;return oe=t.gl,Ne=t.context,vt=t.strings,lt=t.next,We=t.current,Ve=t.draw,et=t.elements,tt=t.buffer,Lt=t.shader,jt=t.attributes,or=t.vao,yr=t.uniforms,vr=t.framebuffer,Vt=t.extensions,Pe=t.timer,xe=t.isBufferArgs,Oe=lt.blend_color,ze=We.blend_color,Re=lt.blend_equation,ht=We.blend_equation,st=lt.blend_func,gt=We.blend_func,xt=lt.depth_range,pr=We.depth_range,br=lt.colorMask,cr=We.colorMask,Er=lt.polygonOffset_offset,ii=We.polygonOffset_offset,jr=lt.sample_coverage,kr=We.sample_coverage,Vr=lt.stencil_func,Ai=We.stencil_func,Bi=lt.stencil_opFront,Di=We.stencil_opFront,ln=lt.stencil_opBack,hn=We.stencil_opBack,qr=lt.scissor_box,_i=We.scissor_box,zi=lt.viewport,Rt=We.viewport,_t={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},qt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Nt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},mr={add:32774,subtract:32778,"reverse subtract":32779},Lr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nr={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Fr={cw:2304,ccw:2305},Gr={},Gr.offset=4,Gr.stride=8,Hr={},Hr.offset=0,Hr.stride=8,{draw:function(mi){var Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo;if(Ei=Vt.angle_instanced_arrays,Vi=vr.next,Vi!==vr.cur&&(Vi?oe.bindFramebuffer(36160,Vi.framebuffer):oe.bindFramebuffer(36160,null),vr.cur=Vi),We.dirty){var za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs;za=lt.dither,za!==We.dither&&(za?oe.enable(3024):oe.disable(3024),We.dither=za),ea=Re[0],rs=Re[1],(ea!==ht[0]||rs!==ht[1])&&(oe.blendEquationSeparate(ea,rs),ht[0]=ea,ht[1]=rs),$s=lt.depth_func,$s!==We.depth_func&&(oe.depthFunc($s),We.depth_func=$s),us=xt[0],Rs=xt[1],(us!==pr[0]||Rs!==pr[1])&&(oe.depthRange(us,Rs),pr[0]=us,pr[1]=Rs),fl=lt.depth_mask,fl!==We.depth_mask&&(oe.depthMask(fl),We.depth_mask=fl),as=br[0],Ma=br[1],Qs=br[2],ho=br[3],(as!==cr[0]||Ma!==cr[1]||Qs!==cr[2]||ho!==cr[3])&&(oe.colorMask(as,Ma,Qs,ho),cr[0]=as,cr[1]=Ma,cr[2]=Qs,cr[3]=ho),gs=lt.cull_enable,gs!==We.cull_enable&&(gs?oe.enable(2884):oe.disable(2884),We.cull_enable=gs),Vo=lt.cull_face,Vo!==We.cull_face&&(oe.cullFace(Vo),We.cull_face=Vo),Ro=lt.frontFace,Ro!==We.frontFace&&(oe.frontFace(Ro),We.frontFace=Ro),Lo=lt.lineWidth,Lo!==We.lineWidth&&(oe.lineWidth(Lo),We.lineWidth=Lo),xs=lt.polygonOffset_enable,xs!==We.polygonOffset_enable&&(xs?oe.enable(32823):oe.disable(32823),We.polygonOffset_enable=xs),ks=Er[0],Ea=Er[1],(ks!==ii[0]||Ea!==ii[1])&&(oe.polygonOffset(ks,Ea),ii[0]=ks,ii[1]=Ea),Jn=lt.sample_alpha,Jn!==We.sample_alpha&&(Jn?oe.enable(32926):oe.disable(32926),We.sample_alpha=Jn),Bo=lt.sample_enable,Bo!==We.sample_enable&&(Bo?oe.enable(32928):oe.disable(32928),We.sample_enable=Bo),rl=jr[0],Gs=jr[1],(rl!==kr[0]||Gs!==kr[1])&&(oe.sampleCoverage(rl,Gs),kr[0]=rl,kr[1]=Gs),bs=lt.stencil_mask,bs!==We.stencil_mask&&(oe.stencilMask(bs),We.stencil_mask=bs),zs=Vr[0],$o=Vr[1],Aa=Vr[2],(zs!==Ai[0]||$o!==Ai[1]||Aa!==Ai[2])&&(oe.stencilFunc(zs,$o,Aa),Ai[0]=zs,Ai[1]=$o,Ai[2]=Aa),os=Bi[0],_l=Bi[1],Ss=Bi[2],po=Bi[3],(os!==Di[0]||_l!==Di[1]||Ss!==Di[2]||po!==Di[3])&&(oe.stencilOpSeparate(os,_l,Ss,po),Di[0]=os,Di[1]=_l,Di[2]=Ss,Di[3]=po),go=ln[0],ss=ln[1],qo=ln[2],zo=ln[3],(go!==hn[0]||ss!==hn[1]||qo!==hn[2]||zo!==hn[3])&&(oe.stencilOpSeparate(go,ss,qo,zo),hn[0]=go,hn[1]=ss,hn[2]=qo,hn[3]=zo),io=lt.scissor_enable,io!==We.scissor_enable&&(io?oe.enable(3089):oe.disable(3089),We.scissor_enable=io),Io=qr[0],Ra=qr[1],vs=qr[2],fs=qr[3],(Io!==_i[0]||Ra!==_i[1]||vs!==_i[2]||fs!==_i[3])&&(oe.scissor(Io,Ra,vs,fs),_i[0]=Io,_i[1]=Ra,_i[2]=vs,_i[3]=fs)}ti=this.viewport,Qi=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:Ne.framebufferWidth-Qi,Fi="height"in ti?ti.height|0:Ne.framebufferHeight-Yr,rn=Ne.viewportWidth,Ne.viewportWidth=oi,tn=Ne.viewportHeight,Ne.viewportHeight=Fi,oe.viewport(Qi,Yr,oi,Fi),Rt[0]=Qi,Rt[1]=Yr,Rt[2]=oi,Rt[3]=Fi,oe.blendColor(0,0,0,1),ze[0]=0,ze[1]=0,ze[2]=0,ze[3]=1,n?oe.enable(3042):oe.disable(3042),We.blend_enable=n,oe.blendFuncSeparate(770,771,773,1),gt[0]=770,gt[1]=771,gt[2]=773,gt[3]=1,i?oe.enable(2929):oe.disable(2929),We.depth_enable=i,a?oe.enable(2960):oe.disable(2960),We.stencil_enable=a,Ri=We.profile,Ri&&(Ii=performance.now(),r.count++),oe.useProgram(o.program),xn=Vt.angle_instanced_arrays,or.setVAO(null),xi=this.charBuffer,Xr=!1,dt=1,$t=0,fr=0,gr=0,Zr=0,wi=null,$i=0,ni=!1,Xi=5126,aa=0,Mn=0,Un=0,xe(xi)?(Xr=!0,wi=tt.createStream(34962,xi),Xi=wi.dtype):(wi=tt.getBuffer(xi),wi?Xi=wi.dtype:"constant"in xi?(dt=2,typeof xi.constant=="number"?($t=xi.constant,fr=gr=Zr=0):($t=xi.constant.length>0?xi.constant[0]:0,fr=xi.constant.length>1?xi.constant[1]:0,gr=xi.constant.length>2?xi.constant[2]:0,Zr=xi.constant.length>3?xi.constant[3]:0)):(xe(xi.buffer)?wi=tt.createStream(34962,xi.buffer):wi=tt.getBuffer(xi.buffer),Xi="type"in xi?Nr[xi.type]:wi.dtype,ni=!!xi.normalized,$i=xi.size|0,aa=xi.offset|0,Mn=xi.stride|0,Un=xi.divisor|0)),Ga=s.location,ma=jt[Ga],dt===1?(ma.buffer||oe.enableVertexAttribArray(Ga),oa=$i||1,(ma.type!==Xi||ma.size!==oa||ma.buffer!==wi||ma.normalized!==ni||ma.offset!==aa||ma.stride!==Mn)&&(oe.bindBuffer(34962,wi.buffer),oe.vertexAttribPointer(Ga,oa,Xi,ni,Mn,aa),ma.type=Xi,ma.size=oa,ma.buffer=wi,ma.normalized=ni,ma.offset=aa,ma.stride=Mn),ma.divisor!==Un&&(xn.vertexAttribDivisorANGLE(Ga,Un),ma.divisor=Un)):(ma.buffer&&(oe.disableVertexAttribArray(Ga),ma.buffer=null),(ma.x!==$t||ma.y!==fr||ma.z!==gr||ma.w!==Zr)&&(oe.vertexAttrib4f(Ga,$t,fr,gr,Zr),ma.x=$t,ma.y=fr,ma.z=gr,ma.w=Zr)),ka=this.sizeBuffer,Gr.buffer=ka,so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,xe(Gr)?(so=!0,Ta=tt.createStream(34962,Gr),ls=Ta.dtype):(Ta=tt.getBuffer(Gr),Ta?ls=Ta.dtype:"constant"in Gr?(Kr=2,typeof Gr.constant=="number"?(Ia=Gr.constant,Yo=fa=kn=0):(Ia=Gr.constant.length>0?Gr.constant[0]:0,Yo=Gr.constant.length>1?Gr.constant[1]:0,fa=Gr.constant.length>2?Gr.constant[2]:0,kn=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?Ta=tt.createStream(34962,Gr.buffer):Ta=tt.getBuffer(Gr.buffer),ls="type"in Gr?Nr[Gr.type]:Ta.dtype,uo=!!Gr.normalized,ys=Gr.size|0,$a=Gr.offset|0,fo=Gr.stride|0,mn=Gr.divisor|0)),ra=u.location,wa=jt[ra],Kr===1?(wa.buffer||oe.enableVertexAttribArray(ra),ws=ys||1,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(oe.bindBuffer(34962,Ta.buffer),oe.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(xn.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(oe.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(oe.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=this.position,Po=!1,Wi=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Oa=0,Ko=!1,Qo=5126,Hi=0,Sa=0,Qa=0,xe(Co)?(Po=!0,ao=tt.createStream(34962,Co),Qo=ao.dtype):(ao=tt.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(Wi=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(xe(Co.buffer)?ao=tt.createStream(34962,Co.buffer):ao=tt.getBuffer(Co.buffer),Qo="type"in Co?Nr[Co.type]:ao.dtype,Ko=!!Co.normalized,Oa=Co.size|0,Hi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=l.location,da=jt[vn],Wi===1?(da.buffer||oe.enableVertexAttribArray(vn),la=Oa||2,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Hi||da.stride!==Sa)&&(oe.bindBuffer(34962,ao.buffer),oe.vertexAttribPointer(vn,la,Qo,Ko,Sa,Hi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Hi,da.stride=Sa),da.divisor!==Qa&&(xn.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(oe.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(oe.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=this.sizeBuffer,Hr.buffer=vo,As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Ba=0,ha=0,Vs=0,xe(Hr)?(As=!0,Go=tt.createStream(34962,Hr),Ns=Go.dtype):(Go=tt.getBuffer(Hr),Go?Ns=Go.dtype:"constant"in Hr?(ps=2,typeof Hr.constant=="number"?(co=Hr.constant,mo=No=jn=0):(co=Hr.constant.length>0?Hr.constant[0]:0,mo=Hr.constant.length>1?Hr.constant[1]:0,No=Hr.constant.length>2?Hr.constant[2]:0,jn=Hr.constant.length>3?Hr.constant[3]:0)):(xe(Hr.buffer)?Go=tt.createStream(34962,Hr.buffer):Go=tt.getBuffer(Hr.buffer),Ns="type"in Hr?Nr[Hr.type]:Go.dtype,qs=!!Hr.normalized,Ys=Hr.size|0,Ba=Hr.offset|0,ha=Hr.stride|0,Vs=Hr.divisor|0)),Ya=f.location,_n=jt[Ya],ps===1?(_n.buffer||oe.enableVertexAttribArray(Ya),Vn=Ys||1,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Ba||_n.stride!==ha)&&(oe.bindBuffer(34962,Go.buffer),oe.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Ba),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Ba,_n.stride=ha),_n.divisor!==Vs&&(xn.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(oe.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(oe.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=mi.align,oe.uniform1f(c.location,wo),Da=d.call(this,Ne,mi,0),Da&&Da._reglType==="framebuffer"&&(Da=Da.color[0]),Xn=Da._texture,oe.uniform1i(h.location,Xn.bind()),sn=y.call(this,Ne,mi,0),$n=sn[0],Ka=sn[1],oe.uniform2f(p.location,$n,Ka),qn=v.call(this,Ne,mi,0),Eo=qn[0],Ja=qn[1],oe.uniform2f(b.location,Eo,Ja),lo=mi.baseline,oe.uniform1f(C.location,lo),eo=A.call(this,Ne,mi,0),oe.uniform1f(M.location,eo),sa=mi.color,es=sa[0],Na=sa[1],en=sa[2],Pa=sa[3],oe.uniform4f(L.location,es,Na,en,Pa),to=k.call(this,Ne,mi,0),oe.uniform1f(x.location,to),yo=mi.opacity,oe.uniform1f(S.location,yo),Jo=mi.positionOffset,Ao=Jo[0],Rn=Jo[1],oe.uniform2f(m.location,Ao,Rn),_a=this.scale,Ws=_a[0],Ca=_a[1],oe.uniform2f(P.location,Ws,Ca),Es=this.translate,Ts=Es[0],Ho=Es[1],oe.uniform2f(E.location,Ts,Ho),Wa=this.viewportArray,To=Wa[0],ts=Wa[1],Wo=Wa[2],qa=Wa[3],oe.uniform4f(O.location,To,ts,Wo,qa),on=Ve.elements,on?oe.bindBuffer(34963,on.buffer.buffer):or.currentVAO&&(on=et.getElements(or.currentVAO.elements),on&&oe.bindBuffer(34963,on.buffer.buffer)),Oo=mi.offset,ko=mi.count,ko&&(oo=Ve.instances,oo>0?on?xn.drawElementsInstancedANGLE(0,ko,on.type,Oo<<(on.type-5121>>1),oo):xn.drawArraysInstancedANGLE(0,Oo,ko,oo):oo<0&&(on?oe.drawElements(0,ko,on.type,Oo<<(on.type-5121>>1)):oe.drawArrays(0,Oo,ko)),We.dirty=!0,or.setVAO(null),Ne.viewportWidth=rn,Ne.viewportHeight=tn,Ri&&(r.cpuTime+=performance.now()-Ii),Xr&&tt.destroyStream(wi),so&&tt.destroyStream(Ta),Po&&tt.destroyStream(ao),As&&tt.destroyStream(Go),Xn.unbind())},scope:function(mi,Ei,Vi){var ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa;ti=this.viewport,Qi=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:Ne.framebufferWidth-Qi,Fi="height"in ti?ti.height|0:Ne.framebufferHeight-Yr,rn=Ne.viewportWidth,Ne.viewportWidth=oi,tn=Ne.viewportHeight,Ne.viewportHeight=Fi,Ri=zi[0],zi[0]=Qi,Ii=zi[1],zi[1]=Yr,xn=zi[2],zi[2]=oi,xi=zi[3],zi[3]=Fi,Xr=Oe[0],Oe[0]=F,dt=Oe[1],Oe[1]=U,$t=Oe[2],Oe[2]=G,fr=Oe[3],Oe[3]=j,gr=lt.blend_enable,lt.blend_enable=W,Zr=st[0],st[0]=N,wi=st[1],st[1]=H,$i=st[2],st[2]=re,ni=st[3],st[3]=ae,Xi=lt.depth_enable,lt.depth_enable=me,aa=lt.stencil_enable,lt.stencil_enable=Le,Mn=We.profile,Mn&&(Un=performance.now(),r.count++),Ga=mi.offset,ma=Ve.offset,Ve.offset=Ga,oa=mi.count,ka=Ve.count,Ve.count=oa,so=Ve.primitive,Ve.primitive=Ce,Kr=v.call(this,Ne,mi,Vi),Ia=yr[de],yr[de]=Kr,Yo=y.call(this,Ne,mi,Vi),fa=yr[te],yr[te]=Yo,kn=d.call(this,Ne,mi,Vi),Ta=yr[Se],yr[Se]=kn,ys=A.call(this,Ne,mi,Vi),uo=yr[Te],yr[Te]=ys,ls=k.call(this,Ne,mi,Vi),$a=yr[be],yr[be]=ls,fo=mi.color,mn=yr[He],yr[He]=fo,ra=mi.opacity,wa=yr[Ie],yr[Ie]=ra,ws=this.viewportArray,Co=yr[ge],yr[ge]=ws,Po=this.scale,Wi=yr[Be],yr[Be]=Po,gn=mi.align,Ps=yr[ce],yr[ce]=gn,Ha=mi.baseline,Sn=yr[je],yr[je]=Ha,ao=this.translate,Oa=yr[rt],yr[rt]=ao,Ko=mi.positionOffset,Qo=yr[bt],yr[bt]=Ko,Hi=this.charBuffer,Sa=!1,Qa=1,vn=0,da=0,la=0,vo=0,As=null,ps=0,co=!1,mo=5126,No=0,jn=0,Go=0,xe(Hi)?(Sa=!0,As=tt.createStream(34962,Hi),mo=As.dtype):(As=tt.getBuffer(Hi),As?mo=As.dtype:"constant"in Hi?(Qa=2,typeof Hi.constant=="number"?(vn=Hi.constant,da=la=vo=0):(vn=Hi.constant.length>0?Hi.constant[0]:0,da=Hi.constant.length>1?Hi.constant[1]:0,la=Hi.constant.length>2?Hi.constant[2]:0,vo=Hi.constant.length>3?Hi.constant[3]:0)):(xe(Hi.buffer)?As=tt.createStream(34962,Hi.buffer):As=tt.getBuffer(Hi.buffer),mo="type"in Hi?Nr[Hi.type]:As.dtype,co=!!Hi.normalized,ps=Hi.size|0,No=Hi.offset|0,jn=Hi.stride|0,Go=Hi.divisor|0)),Ys=Ot.state,Ot.state=Qa,qs=Ot.x,Ot.x=vn,Ns=Ot.y,Ot.y=da,Ba=Ot.z,Ot.z=la,ha=Ot.w,Ot.w=vo,Vs=Ot.buffer,Ot.buffer=As,Ya=Ot.size,Ot.size=ps,_n=Ot.normalized,Ot.normalized=co,Vn=Ot.type,Ot.type=mo,wo=Ot.offset,Ot.offset=No,Da=Ot.stride,Ot.stride=jn,Xn=Ot.divisor,Ot.divisor=Go,sn=this.position,$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,en=0,Pa=0,to=0,xe(sn)?($n=!0,eo=tt.createStream(34962,sn),Na=eo.dtype):(eo=tt.getBuffer(sn),eo?Na=eo.dtype:"constant"in sn?(Ka=2,typeof sn.constant=="number"?(qn=sn.constant,Eo=Ja=lo=0):(qn=sn.constant.length>0?sn.constant[0]:0,Eo=sn.constant.length>1?sn.constant[1]:0,Ja=sn.constant.length>2?sn.constant[2]:0,lo=sn.constant.length>3?sn.constant[3]:0)):(xe(sn.buffer)?eo=tt.createStream(34962,sn.buffer):eo=tt.getBuffer(sn.buffer),Na="type"in sn?Nr[sn.type]:eo.dtype,es=!!sn.normalized,sa=sn.size|0,en=sn.offset|0,Pa=sn.stride|0,to=sn.divisor|0)),yo=it.state,it.state=Ka,Jo=it.x,it.x=qn,Ao=it.y,it.y=Eo,Rn=it.z,it.z=Ja,_a=it.w,it.w=lo,Ws=it.buffer,it.buffer=eo,Ca=it.size,it.size=sa,Es=it.normalized,it.normalized=es,Ts=it.type,it.type=Na,Ho=it.offset,it.offset=en,Wa=it.stride,it.stride=Pa,To=it.divisor,it.divisor=to,ts=this.sizeBuffer,Gr.buffer=ts,Wo=!1,qa=1,on=0,Oo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Rs=0,fl=0,xe(Gr)?(Wo=!0,za=tt.createStream(34962,Gr),$s=za.dtype):(za=tt.getBuffer(Gr),za?$s=za.dtype:"constant"in Gr?(qa=2,typeof Gr.constant=="number"?(on=Gr.constant,Oo=ko=oo=0):(on=Gr.constant.length>0?Gr.constant[0]:0,Oo=Gr.constant.length>1?Gr.constant[1]:0,ko=Gr.constant.length>2?Gr.constant[2]:0,oo=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?za=tt.createStream(34962,Gr.buffer):za=tt.getBuffer(Gr.buffer),$s="type"in Gr?Nr[Gr.type]:za.dtype,rs=!!Gr.normalized,ea=Gr.size|0,us=Gr.offset|0,Rs=Gr.stride|0,fl=Gr.divisor|0)),as=Ke.state,Ke.state=qa,Ma=Ke.x,Ke.x=on,Qs=Ke.y,Ke.y=Oo,ho=Ke.z,Ke.z=ko,gs=Ke.w,Ke.w=oo,Vo=Ke.buffer,Ke.buffer=za,Ro=Ke.size,Ke.size=ea,Lo=Ke.normalized,Ke.normalized=rs,xs=Ke.type,Ke.type=$s,ks=Ke.offset,Ke.offset=us,Ea=Ke.stride,Ke.stride=Rs,Jn=Ke.divisor,Ke.divisor=fl,Bo=this.sizeBuffer,Hr.buffer=Bo,rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,xe(Hr)?(rl=!0,os=tt.createStream(34962,Hr),po=os.dtype):(os=tt.getBuffer(Hr),os?po=os.dtype:"constant"in Hr?(Gs=2,typeof Hr.constant=="number"?(bs=Hr.constant,zs=$o=Aa=0):(bs=Hr.constant.length>0?Hr.constant[0]:0,zs=Hr.constant.length>1?Hr.constant[1]:0,$o=Hr.constant.length>2?Hr.constant[2]:0,Aa=Hr.constant.length>3?Hr.constant[3]:0)):(xe(Hr.buffer)?os=tt.createStream(34962,Hr.buffer):os=tt.getBuffer(Hr.buffer),po="type"in Hr?Nr[Hr.type]:os.dtype,Ss=!!Hr.normalized,_l=Hr.size|0,go=Hr.offset|0,ss=Hr.stride|0,qo=Hr.divisor|0)),zo=zt.state,zt.state=Gs,io=zt.x,zt.x=bs,Io=zt.y,zt.y=zs,Ra=zt.z,zt.z=$o,vs=zt.w,zt.w=Aa,fs=zt.buffer,zt.buffer=os,cl=zt.size,zt.size=_l,el=zt.normalized,zt.normalized=Ss,Hs=zt.type,zt.type=po,Do=zt.offset,zt.offset=go,tl=zt.stride,zt.stride=ss,Fs=zt.divisor,zt.divisor=qo,hl=Lt.vert,Lt.vert=Mt,Fa=Lt.frag,Lt.frag=kt,We.dirty=!0,Ei(Ne,mi,Vi),Ne.viewportWidth=rn,Ne.viewportHeight=tn,zi[0]=Ri,zi[1]=Ii,zi[2]=xn,zi[3]=xi,Oe[0]=Xr,Oe[1]=dt,Oe[2]=$t,Oe[3]=fr,lt.blend_enable=gr,st[0]=Zr,st[1]=wi,st[2]=$i,st[3]=ni,lt.depth_enable=Xi,lt.stencil_enable=aa,Mn&&(r.cpuTime+=performance.now()-Un),Ve.offset=ma,Ve.count=ka,Ve.primitive=so,yr[de]=Ia,yr[te]=fa,yr[Se]=Ta,yr[Te]=uo,yr[be]=$a,yr[He]=mn,yr[Ie]=wa,yr[ge]=Co,yr[Be]=Wi,yr[ce]=Ps,yr[je]=Sn,yr[rt]=Oa,yr[bt]=Qo,Sa&&tt.destroyStream(As),Ot.state=Ys,Ot.x=qs,Ot.y=Ns,Ot.z=Ba,Ot.w=ha,Ot.buffer=Vs,Ot.size=Ya,Ot.normalized=_n,Ot.type=Vn,Ot.offset=wo,Ot.stride=Da,Ot.divisor=Xn,$n&&tt.destroyStream(eo),it.state=yo,it.x=Jo,it.y=Ao,it.z=Rn,it.w=_a,it.buffer=Ws,it.size=Ca,it.normalized=Es,it.type=Ts,it.offset=Ho,it.stride=Wa,it.divisor=To,Wo&&tt.destroyStream(za),Ke.state=as,Ke.x=Ma,Ke.y=Qs,Ke.z=ho,Ke.w=gs,Ke.buffer=Vo,Ke.size=Ro,Ke.normalized=Lo,Ke.type=xs,Ke.offset=ks,Ke.stride=Ea,Ke.divisor=Jn,rl&&tt.destroyStream(os),zt.state=zo,zt.x=io,zt.y=Io,zt.z=Ra,zt.w=vs,zt.buffer=fs,zt.size=cl,zt.normalized=el,zt.type=Hs,zt.offset=Do,zt.stride=tl,zt.divisor=Fs,Lt.vert=hl,Lt.frag=Fa,We.dirty=!0},batch:function(mi,Ei){var Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii,xn,xi,Xr,dt;if(Vi=Vt.angle_instanced_arrays,ti=vr.next,ti!==vr.cur&&(ti?oe.bindFramebuffer(36160,ti.framebuffer):oe.bindFramebuffer(36160,null),vr.cur=ti),We.dirty){var $t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao;$t=lt.dither,$t!==We.dither&&($t?oe.enable(3024):oe.disable(3024),We.dither=$t),fr=Re[0],gr=Re[1],(fr!==ht[0]||gr!==ht[1])&&(oe.blendEquationSeparate(fr,gr),ht[0]=fr,ht[1]=gr),Zr=lt.depth_func,Zr!==We.depth_func&&(oe.depthFunc(Zr),We.depth_func=Zr),wi=xt[0],$i=xt[1],(wi!==pr[0]||$i!==pr[1])&&(oe.depthRange(wi,$i),pr[0]=wi,pr[1]=$i),ni=lt.depth_mask,ni!==We.depth_mask&&(oe.depthMask(ni),We.depth_mask=ni),Xi=br[0],aa=br[1],Mn=br[2],Un=br[3],(Xi!==cr[0]||aa!==cr[1]||Mn!==cr[2]||Un!==cr[3])&&(oe.colorMask(Xi,aa,Mn,Un),cr[0]=Xi,cr[1]=aa,cr[2]=Mn,cr[3]=Un),Ga=lt.cull_enable,Ga!==We.cull_enable&&(Ga?oe.enable(2884):oe.disable(2884),We.cull_enable=Ga),ma=lt.cull_face,ma!==We.cull_face&&(oe.cullFace(ma),We.cull_face=ma),oa=lt.frontFace,oa!==We.frontFace&&(oe.frontFace(oa),We.frontFace=oa),ka=lt.lineWidth,ka!==We.lineWidth&&(oe.lineWidth(ka),We.lineWidth=ka),so=lt.polygonOffset_enable,so!==We.polygonOffset_enable&&(so?oe.enable(32823):oe.disable(32823),We.polygonOffset_enable=so),Kr=Er[0],Ia=Er[1],(Kr!==ii[0]||Ia!==ii[1])&&(oe.polygonOffset(Kr,Ia),ii[0]=Kr,ii[1]=Ia),Yo=lt.sample_alpha,Yo!==We.sample_alpha&&(Yo?oe.enable(32926):oe.disable(32926),We.sample_alpha=Yo),fa=lt.sample_enable,fa!==We.sample_enable&&(fa?oe.enable(32928):oe.disable(32928),We.sample_enable=fa),kn=jr[0],Ta=jr[1],(kn!==kr[0]||Ta!==kr[1])&&(oe.sampleCoverage(kn,Ta),kr[0]=kn,kr[1]=Ta),ys=lt.stencil_mask,ys!==We.stencil_mask&&(oe.stencilMask(ys),We.stencil_mask=ys),uo=Vr[0],ls=Vr[1],$a=Vr[2],(uo!==Ai[0]||ls!==Ai[1]||$a!==Ai[2])&&(oe.stencilFunc(uo,ls,$a),Ai[0]=uo,Ai[1]=ls,Ai[2]=$a),fo=Bi[0],mn=Bi[1],ra=Bi[2],wa=Bi[3],(fo!==Di[0]||mn!==Di[1]||ra!==Di[2]||wa!==Di[3])&&(oe.stencilOpSeparate(fo,mn,ra,wa),Di[0]=fo,Di[1]=mn,Di[2]=ra,Di[3]=wa),ws=ln[0],Co=ln[1],Po=ln[2],Wi=ln[3],(ws!==hn[0]||Co!==hn[1]||Po!==hn[2]||Wi!==hn[3])&&(oe.stencilOpSeparate(ws,Co,Po,Wi),hn[0]=ws,hn[1]=Co,hn[2]=Po,hn[3]=Wi),gn=lt.scissor_enable,gn!==We.scissor_enable&&(gn?oe.enable(3089):oe.disable(3089),We.scissor_enable=gn),Ps=qr[0],Ha=qr[1],Sn=qr[2],ao=qr[3],(Ps!==_i[0]||Ha!==_i[1]||Sn!==_i[2]||ao!==_i[3])&&(oe.scissor(Ps,Ha,Sn,ao),_i[0]=Ps,_i[1]=Ha,_i[2]=Sn,_i[3]=ao)}Qi=this.viewport,Yr=Qi.x|0,oi=Qi.y|0,Fi="width"in Qi?Qi.width|0:Ne.framebufferWidth-Yr,rn="height"in Qi?Qi.height|0:Ne.framebufferHeight-oi,tn=Ne.viewportWidth,Ne.viewportWidth=Fi,Ri=Ne.viewportHeight,Ne.viewportHeight=rn,oe.viewport(Yr,oi,Fi,rn),Rt[0]=Yr,Rt[1]=oi,Rt[2]=Fi,Rt[3]=rn,oe.blendColor(0,0,0,1),ze[0]=0,ze[1]=0,ze[2]=0,ze[3]=1,$e?oe.enable(3042):oe.disable(3042),We.blend_enable=$e,oe.blendFuncSeparate(770,771,773,1),gt[0]=770,gt[1]=771,gt[2]=773,gt[3]=1,De?oe.enable(2929):oe.disable(2929),We.depth_enable=De,Me?oe.enable(2960):oe.disable(2960),We.stencil_enable=Me,Ii=We.profile,Ii&&(xn=performance.now(),r.count+=Ei),oe.useProgram(o.program),xi=Vt.angle_instanced_arrays;var Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn;for(or.setVAO(null),Oa=this.charBuffer,Ko=!1,Qo=1,Hi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,xe(Oa)?(Ko=!0,da=tt.createStream(34962,Oa),As=da.dtype):(da=tt.getBuffer(Oa),da?As=da.dtype:"constant"in Oa?(Qo=2,typeof Oa.constant=="number"?(Hi=Oa.constant,Sa=Qa=vn=0):(Hi=Oa.constant.length>0?Oa.constant[0]:0,Sa=Oa.constant.length>1?Oa.constant[1]:0,Qa=Oa.constant.length>2?Oa.constant[2]:0,vn=Oa.constant.length>3?Oa.constant[3]:0)):(xe(Oa.buffer)?da=tt.createStream(34962,Oa.buffer):da=tt.getBuffer(Oa.buffer),As="type"in Oa?Nr[Oa.type]:da.dtype,vo=!!Oa.normalized,la=Oa.size|0,ps=Oa.offset|0,co=Oa.stride|0,mo=Oa.divisor|0)),No=s.location,jn=jt[No],Qo===1?(jn.buffer||oe.enableVertexAttribArray(No),Go=la||1,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(oe.bindBuffer(34962,da.buffer),oe.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(xi.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(oe.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Hi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(oe.vertexAttrib4f(No,Hi,Sa,Qa,vn),jn.x=Hi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=this.sizeBuffer,Gr.buffer=Ys,qs=!1,Ns=1,Ba=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Da=5126,Xn=0,sn=0,$n=0,xe(Gr)?(qs=!0,_n=tt.createStream(34962,Gr),Da=_n.dtype):(_n=tt.getBuffer(Gr),_n?Da=_n.dtype:"constant"in Gr?(Ns=2,typeof Gr.constant=="number"?(Ba=Gr.constant,ha=Vs=Ya=0):(Ba=Gr.constant.length>0?Gr.constant[0]:0,ha=Gr.constant.length>1?Gr.constant[1]:0,Vs=Gr.constant.length>2?Gr.constant[2]:0,Ya=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?_n=tt.createStream(34962,Gr.buffer):_n=tt.getBuffer(Gr.buffer),Da="type"in Gr?Nr[Gr.type]:_n.dtype,wo=!!Gr.normalized,Vn=Gr.size|0,Xn=Gr.offset|0,sn=Gr.stride|0,$n=Gr.divisor|0)),Ka=u.location,qn=jt[Ka],Ns===1?(qn.buffer||oe.enableVertexAttribArray(Ka),Eo=Vn||1,(qn.type!==Da||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==sn)&&(oe.bindBuffer(34962,_n.buffer),oe.vertexAttribPointer(Ka,Eo,Da,wo,sn,Xn),qn.type=Da,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=sn),qn.divisor!==$n&&(xi.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(oe.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Ba||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(oe.vertexAttrib4f(Ka,Ba,ha,Vs,Ya),qn.x=Ba,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=this.position,lo=!1,eo=1,sa=0,es=0,Na=0,en=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Rn=0,_a=0,xe(Ja)?(lo=!0,Pa=tt.createStream(34962,Ja),Jo=Pa.dtype):(Pa=tt.getBuffer(Ja),Pa?Jo=Pa.dtype:"constant"in Ja?(eo=2,typeof Ja.constant=="number"?(sa=Ja.constant,es=Na=en=0):(sa=Ja.constant.length>0?Ja.constant[0]:0,es=Ja.constant.length>1?Ja.constant[1]:0,Na=Ja.constant.length>2?Ja.constant[2]:0,en=Ja.constant.length>3?Ja.constant[3]:0)):(xe(Ja.buffer)?Pa=tt.createStream(34962,Ja.buffer):Pa=tt.getBuffer(Ja.buffer),Jo="type"in Ja?Nr[Ja.type]:Pa.dtype,yo=!!Ja.normalized,to=Ja.size|0,Ao=Ja.offset|0,Rn=Ja.stride|0,_a=Ja.divisor|0)),Ws=l.location,Ca=jt[Ws],eo===1?(Ca.buffer||oe.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Rn)&&(oe.bindBuffer(34962,Pa.buffer),oe.vertexAttribPointer(Ws,Es,Jo,yo,Rn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Rn),Ca.divisor!==_a&&(xi.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(oe.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==en)&&(oe.vertexAttrib4f(Ws,sa,es,Na,en),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=en)),Ts=this.sizeBuffer,Hr.buffer=Ts,Ho=!1,Wa=1,To=0,ts=0,Wo=0,qa=0,on=null,Oo=0,ko=!1,oo=5126,za=0,ea=0,rs=0,xe(Hr)?(Ho=!0,on=tt.createStream(34962,Hr),oo=on.dtype):(on=tt.getBuffer(Hr),on?oo=on.dtype:"constant"in Hr?(Wa=2,typeof Hr.constant=="number"?(To=Hr.constant,ts=Wo=qa=0):(To=Hr.constant.length>0?Hr.constant[0]:0,ts=Hr.constant.length>1?Hr.constant[1]:0,Wo=Hr.constant.length>2?Hr.constant[2]:0,qa=Hr.constant.length>3?Hr.constant[3]:0)):(xe(Hr.buffer)?on=tt.createStream(34962,Hr.buffer):on=tt.getBuffer(Hr.buffer),oo="type"in Hr?Nr[Hr.type]:on.dtype,ko=!!Hr.normalized,Oo=Hr.size|0,za=Hr.offset|0,ea=Hr.stride|0,rs=Hr.divisor|0)),$s=f.location,us=jt[$s],Wa===1?(us.buffer||oe.enableVertexAttribArray($s),Rs=Oo||1,(us.type!==oo||us.size!==Rs||us.buffer!==on||us.normalized!==ko||us.offset!==za||us.stride!==ea)&&(oe.bindBuffer(34962,on.buffer),oe.vertexAttribPointer($s,Rs,oo,ko,ea,za),us.type=oo,us.size=Rs,us.buffer=on,us.normalized=ko,us.offset=za,us.stride=ea),us.divisor!==rs&&(xi.vertexAttribDivisorANGLE($s,rs),us.divisor=rs)):(us.buffer&&(oe.disableVertexAttribArray($s),us.buffer=null),(us.x!==To||us.y!==ts||us.z!==Wo||us.w!==qa)&&(oe.vertexAttrib4f($s,To,ts,Wo,qa),us.x=To,us.y=ts,us.z=Wo,us.w=qa)),fl=this.scale,as=fl[0],Ma=fl[1],oe.uniform2f(P.location,as,Ma),Qs=this.translate,ho=Qs[0],gs=Qs[1],oe.uniform2f(E.location,ho,gs),Vo=this.viewportArray,Ro=Vo[0],Lo=Vo[1],xs=Vo[2],ks=Vo[3],oe.uniform4f(O.location,Ro,Lo,xs,ks),Ea=Ve.elements,Ea?oe.bindBuffer(34963,Ea.buffer.buffer):or.currentVAO&&(Ea=et.getElements(or.currentVAO.elements),Ea&&oe.bindBuffer(34963,Ea.buffer.buffer)),Jn=Ve.instances,Xr=0;Xr0?Ea?xi.drawElementsInstancedANGLE(0,Rr,Ea.type,dr<<(Ea.type-5121>>1),Jn):xi.drawArraysInstancedANGLE(0,dr,Rr,Jn):Jn<0&&(Ea?oe.drawElements(0,Rr,Ea.type,dr<<(Ea.type-5121>>1)):oe.drawArrays(0,dr,Rr)),bs.unbind())}Ko&&tt.destroyStream(da),qs&&tt.destroyStream(_n),lo&&tt.destroyStream(Pa),Ho&&tt.destroyStream(on),We.dirty=!0,or.setVAO(null),Ne.viewportWidth=tn,Ne.viewportHeight=Ri,Ii&&(r.cpuTime+=performance.now()-xn)}}}});var zK=we((gbr,p7e)=>{"use strict";var JVt=I9(),$Vt=D9(),QVt=R9(),eGt=F9(),tGt=O9(),rGt=B9(),iGt=q9(),nGt=N9(),aGt=U9(),oGt=V9();p7e.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":JVt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:$Vt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":QVt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:eGt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:tGt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":rGt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:iGt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:nGt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":aGt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":oGt}});var y7e=we((_br,m7e)=>{"use strict";var v7e=PK(),sGt=zK();Object.assign(v7e.reglPrecompiled,sGt);m7e.exports=v7e});var x7e=we((xbr,_7e)=>{"use strict";var g7e=w8e();g7e.plot=y7e();_7e.exports=g7e});var IK=we((bbr,T7e)=>{"use strict";var lGt=Zc(),A7e=nc(),b7e=Xc().axisHoverFormat,{hovertemplateAttrs:uGt,templatefallbackAttrs:fGt}=Ff(),Ok=yk(),cGt=qh().idRegex,hGt=Lf().templatedArray,bS=Su().extendFlat,d1=lGt.marker,dGt=d1.line,pGt=bS(A7e("marker.line",{editTypeOverride:"calc"}),{width:bS({},dGt.width,{editType:"calc"}),editType:"calc"}),G9=bS(A7e("marker"),{symbol:d1.symbol,angle:d1.angle,size:bS({},d1.size,{editType:"markerSize"}),sizeref:d1.sizeref,sizemin:d1.sizemin,sizemode:d1.sizemode,opacity:d1.opacity,colorbar:d1.colorbar,line:pGt,editType:"calc"});G9.color.editType=G9.cmin.editType=G9.cmax.editType="style";function w7e(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:cGt[e],editType:"plot"}}}T7e.exports={dimensions:hGt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:bS({},Ok.text,{}),hovertext:bS({},Ok.hovertext,{}),hovertemplate:uGt(),hovertemplatefallback:fGt(),xhoverformat:b7e("x"),yhoverformat:b7e("y"),marker:G9,xaxes:w7e("x"),yaxes:w7e("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:Ok.selected.marker,editType:"calc"},unselected:{marker:Ok.unselected.marker,editType:"calc"},opacity:Ok.opacity}});var H9=we((wbr,S7e)=>{"use strict";S7e.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var DK=ei(),vGt=$d(),M7e=IK(),mGt=lc(),yGt=$v(),gGt=H9(),_Gt=ZF().isOpenSymbol;E7e.exports=function(t,r,n,i){function a(d,p){return DK.coerce(t,r,M7e,d,p)}var o=vGt(t,r,{name:"dimensions",handleItemDefaults:xGt}),s=a("diagonal.visible"),u=a("showupperhalf"),l=a("showlowerhalf"),f=gGt(r,o,"values");if(!f||!s&&!u&&!l){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),yGt(t,r,n,i,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=_Gt(r.marker.symbol),h=mGt.isBubble(r);a("marker.line.width",c||h?1:0),bGt(t,r,i,a),DK.coerceSelectionMarkerOpacity(r,a)};function xGt(e,t){function r(i,a){return DK.coerce(e,t,M7e.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function bGt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,u=t.diagonal.visible,l,f,c=new Array(a),h=new Array(a);for(l=0;lf&&o||l{"use strict";var C7e=ei();L7e.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},u=a[r.uid];return u||(u=a[i]=C7e.extendFlat({},o,s),u.draw=function(){u.matrix&&u.matrix.draw&&(u.selectBatch.length||u.unselectBatch.length?u.matrix.draw(u.unselectBatch,u.selectBatch):u.matrix.draw()),u.dirty=!1},u.destroy=function(){u.matrix&&u.matrix.destroy&&u.matrix.destroy(),u.matrixOptions=null,u.selectBatch=null,u.unselectBatch=null,u=null}),u.dirty||C7e.extendFlat(u,o),u}});var D7e=we((Sbr,I7e)=>{"use strict";var RK=ei(),W9=jc(),wGt=B0().calcMarkerSize,AGt=B0().calcAxisExpansion,TGt=F0(),z7e=lw().markerSelection,SGt=lw().markerStyle,MGt=P7e(),EGt=rf().BADNUM,kGt=mx().TOO_MANY_POINTS;I7e.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],u=r._visibleDims=[],l,f,c,h,d;function p(M,A){for(var L=M.makeCalcdata({v:A.values,vcalendar:r.calendar},"v"),x=0;xkGt,v;for(b?v=a.sizeAvg||Math.max(a.size,3):v=wGt(r,i),f=0;f{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?Bk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Bk.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(Bk.exports=function(){return Date.now()-r},r=Date.now()):(Bk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(R7e)});var B7e=we((Mbr,Z9)=>{var CGt=F7e(),p1=window,j9=["moz","webkit"],AS="AnimationFrame",TS=p1["request"+AS],qk=p1["cancel"+AS]||p1["cancelRequest"+AS];for(wS=0;!TS&&wS{q7e.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,u=t;s{"use strict";var LGt=LY(),PGt=tg(),zGt=nw(),U7e=B7e(),IGt=N7e(),OK=lS(),DGt=aw();G7e.exports=Sx;function Sx(e,t){if(!(this instanceof Sx))return new Sx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=LGt(e),this.canvas=this.scatter.canvas}Sx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=U7e(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,U7e(()=>{this.dirty=!1})),this)};Sx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&y{t[a+s]=n})}this.scatter.draw(...t)}return this};Sx.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function RGt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function Y9(e,t,r){let n,i,a,o,s,u,l,f,c=e[t],h=e[r];return c.length>2?(n=c[0],a=c[2],i=c[1],o=c[3]):c.length?(n=i=c[0],a=o=c[1]):(n=c.x,i=c.y,a=c.x+c.width,o=c.y+c.height),h.length>2?(s=h[0],l=h[2],u=h[1],f=h[3]):h.length?(s=u=h[0],l=f=h[1]):(s=h.x,u=h.y,l=h.x+h.width,f=h.y+h.height),[s,i,l,o]}function V7e(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=OK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var j7e=we((Cbr,W7e)=>{"use strict";var FGt=H7e(),BK=ei(),K9=jc(),OGt=Cm().selectMode;W7e.exports=function(t,r,n){if(n.length)for(var i=0;i-1,E=OGt(f)||!!i.selectedpoints||P,O=!0;if(E){var F=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";X7e.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var Z7e=qK(),qGt=XF().calcHover,Y7e=wu().getFromId,NGt=Su().extendFlat;function UGt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=K7e(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var u=(a?e.xa:e.ya)._subplotsWith,l=i.gd,f=NGt({},e),c=0;c{"use strict";var rUe=ei(),Q7e=rUe.pushUnique,eUe=lc(),tUe=qK();iUe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,u=t.xaxis,l=t.yaxis,f=[];if(!o)return f;var c=!eUe.hasMarkers(i)&&!eUe.hasText(i);if(i.visible!==!0||c)return f;var h=tUe.getDimIndex(i,u),d=tUe.getDimIndex(i,l);if(h===!1||d===!1)return f;var p=a.xpx[h],y=a.ypx[d],b=s[h],v=s[d],C=(t.scene.selectBatch||[]).slice(),M=[];if(r!==!1&&!r.degenerate)for(var A=0;A{"use strict";var aUe=ei(),VGt=F0(),GGt=lw().markerStyle;oUe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){VGt(t,n),aUe.extendFlat(i.matrixOptions,GGt(t,n));var a=aUe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var uUe=we((Dbr,lUe)=>{"use strict";var HGt=$l(),WGt=LV();lUe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:IK(),supplyDefaults:k7e(),colorbar:tp(),calc:D7e(),plot:j7e(),hoverPoints:$7e().hoverPoints,selectPoints:nUe(),editStyle:sUe(),meta:{}};HGt.register(WGt)});var vUe=we((Rbr,pUe)=>{"use strict";var jGt=sK(),XGt=$l(),ZGt=z9(),YGt=Dd().getModuleCalcData,Mx=Mh(),fUe=jc().getFromId,cUe=wu().shouldShowZeroLine,hUe="splom",dUe={};function KGt(e){var t=e._fullLayout,r=XGt.getModule(hUe),n=YGt(e.calcdata,r)[0],i=ZGt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],dUe);i&&(t._hasOnlyLargeSploms&&NK(e),r.plot(e,{},n))}function JGt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&NK(e);for(var n=0;n{"use strict";var tHt=I9(),rHt=D9(),iHt=R9(),nHt=q9(),aHt=N9(),oHt=F9(),sHt=O9(),lHt=B9(),uHt=U9(),fHt=V9();mUe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":tHt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:rHt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":iHt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:nHt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:aHt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:oHt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:sHt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":lHt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":uHt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":fHt}});var xUe=we((Obr,_Ue)=>{"use strict";var gUe=vUe(),cHt=yUe();Object.assign(gUe.reglPrecompiled,cHt);_Ue.exports=gUe});var AUe=we((Bbr,wUe)=>{"use strict";var bUe=uUe();bUe.basePlotModule=xUe(),wUe.exports=bUe});var GK=we((qbr,TUe)=>{"use strict";var hHt=nc(),UK=Rd(),VK=gc(),dHt=zc().attributes,J9=Su().extendFlat,pHt=Lf().templatedArray;TUe.exports={domain:dHt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:VK({editType:"plot"}),tickfont:VK({autoShadowDflt:!0,editType:"plot"}),rangefont:VK({editType:"plot"}),dimensions:pHt("dimension",{label:{valType:"string",editType:"plot"},tickvals:J9({},UK.tickvals,{editType:"plot"}),ticktext:J9({},UK.ticktext,{editType:"plot"}),tickformat:J9({},UK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:J9({editType:"calc"},hHt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Nk=we((Nbr,SUe)=>{"use strict";SUe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var ng=we((Ubr,EUe)=>{"use strict";var vHt=YM();function MUe(e){return[e]}EUe.exports={keyFun:function(e){return e.key},repeat:MUe,descend:vHt,wrap:MUe,unwrap:function(e){return e[0]}}});var jK=we((Vbr,BUe)=>{"use strict";var zh=Nk(),iy=Jl(),mHt=ng().keyFun,$9=ng().repeat,SS=ei().sorterAsc,yHt=ei().strTranslate,kUe=zh.bar.snapRatio;function CUe(e,t){return e*(1-kUe)+t*kUe}var LUe=zh.bar.snapClose;function gHt(e,t){return e*(1-LUe)+t*LUe}function e8(e,t,r,n){if(_Ht(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var u=t[a],l=u,f=a;i*f=t[r][0]&&e<=t[r][1])return!0;return!1}function xHt(e){e.attr("x",-zh.bar.captureWidth/2).attr("width",zh.bar.captureWidth)}function bHt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function wHt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=PUe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function zUe(){iy.select(document.body).style("cursor",null)}function WK(e){e.attr("stroke-dasharray",wHt)}function Q9(e,t){var r=iy.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(zh.bar.snapDuration).each("end",t):r;WK(n)}function IUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,u=r.filter.getConsolidated(),l=PUe(u,s),f=NaN,c=NaN,h=NaN;for(o=0;o<=l.length;o++){var d=l[o];if(d&&d[0]<=t&&t<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=f,isNaN(i)&&(isNaN(c)||isNaN(h)?i=isNaN(c)?h:c:i=t-l[c][1]=C[0]&&v<=C[1]){a.clickableOrdinalRange=C;break}}}return a}function THt(e,t){iy.event.sourceEvent.stopPropagation();var r=t.height-iy.mouse(e)[1]-2*zh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=IUe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var u=o.map(t.unitToPaddedPx);s.grabPoint=r-u[0]-zh.verticalPadding,s.barLength=u[1]-u[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(l){return l[0]!==o[0]&&l[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function DUe(e,t){iy.event.sourceEvent.stopPropagation();var r=t.height-iy.mouse(e)[1]-2*zh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(SS),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),Q9(e.parentNode)}function SHt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(RUe(e,t),DUe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=iy.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,zUe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&HK(r)):HK(r),i.brushCallback(t),Q9(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var u=t.unitTickvals;u[u.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(l?[i.newExtent]:[]),i.extent.length||HK(r),i.brushCallback(t),l?Q9(e.parentNode,s):(s(),Q9(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function RUe(e,t){var r=t.height-iy.mouse(e)[1]-2*zh.verticalPadding,n=IUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),iy.select(document.body).style("cursor",i)}function MHt(e){e.on("mousemove",function(t){iy.event.preventDefault(),t.parent.inBrushDrag||RUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||zUe()}).call(iy.behavior.drag().on("dragstart",function(t){THt(this,t)}).on("drag",function(t){DUe(this,t)}).on("dragend",function(t){SHt(this,t)}))}function FUe(e,t){return e[0]-t[0]}function EHt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data($9);i.enter().append("rect").classed("background",!0).call(xHt).call(bHt).style("pointer-events",n?"none":"auto").attr("transform",yHt(0,zh.verticalPadding)),i.call(MHt).attr("height",function(s){return s.height-zh.verticalPadding});var a=e.selectAll(".highlight-shadow").data($9);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-zh.bar.width/2).attr("stroke-width",zh.bar.width+zh.bar.strokeWidth).attr("stroke",t).attr("opacity",zh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(WK);var o=e.selectAll(".highlight").data($9);o.enter().append("line").classed("highlight",!0).attr("x",-zh.bar.width/2).attr("stroke-width",zh.bar.width-zh.bar.strokeWidth).attr("stroke",zh.bar.fillColor).attr("opacity",zh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(WK)}function kHt(e,t,r){var n=e.selectAll("."+zh.cn.axisBrush).data($9,mHt);n.enter().append("g").classed(zh.cn.axisBrush,!0),EHt(n,t,r)}function CHt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function HK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function LHt(e){return function(r){var n=r.brush,i=CHt(n),a=i.slice();n.filter.set(a),e()}}function OUe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function PHt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(SS)}).sort(FUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=OUe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function zHt(e,t,r,n,i,a){var o=PHt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:LHt(i),brushEndCallback:a}}}function IHt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(SS)}),t.multiselect?e=OUe(e.sort(FUe)):e=[e[0]]):e=[e.sort(SS)],t.tickvals){var r=t.tickvals.slice().sort(SS);if(e=e.map(function(n){var i=[e8(0,r,n[0],[]),e8(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}BUe.exports={makeBrush:zHt,ensureAxisBrush:kHt,cleanRanges:IHt}});var UUe=we((Gbr,NUe)=>{"use strict";var Ex=ei(),DHt=yp().hasColorscale,RHt=nd(),FHt=zc().defaults,OHt=$d(),BHt=wu(),qUe=GK(),qHt=jK(),XK=Nk().maxDimensionCount,NHt=H9();function UHt(e,t,r,n,i){var a=i("line.color",r);if(DHt(e,"line")&&Ex.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),RHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function VHt(e,t,r,n){function i(l,f){return Ex.coerce(e,t,qUe.dimensions,l,f)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},BHt.setConvert(t._ax,n.layout),i("multiselect");var u=i("constraintrange");u&&(t.constraintrange=qHt.cleanRanges(u,t))}}NUe.exports=function(t,r,n,i){function a(f,c){return Ex.coerce(t,r,qUe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>XK&&(Ex.log("parcoords traces support up to "+XK+" dimensions at the moment"),o.splice(XK));var s=OHt(t,r,{name:"dimensions",layout:i,handleItemDefaults:VHt}),u=UHt(t,r,n,i,a);FHt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),NHt(r,s,"values",u);var l=Ex.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});Ex.coerceFont(a,"labelfont",l),Ex.coerceFont(a,"tickfont",l,{autoShadowDflt:!0}),Ex.coerceFont(a,"rangefont",l),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var GUe=we((Hbr,VUe)=>{"use strict";var GHt=ei().isArrayOrTypedArray,ZK=_c(),HHt=ng().wrap;VUe.exports=function(t,r){var n,i;return ZK.hasColorscale(r,"line")&&GHt(r.line.color)?(n=r.line.color,i=ZK.extractOpts(r.line).colorscale,ZK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=WHt(r._length),i=[[0,r.line.color],[1,r.line.color]]),HHt({lineColor:n,cscale:i})};function WHt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),YK.default[e])r=YK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var u=t[1];i=u.replace(/a$/,"");var l=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(HUe[h]!==void 0)return HUe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>l?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((c=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var YK,WUe,HUe,jUe=tc(()=>{YK=prt(DX(),1),WUe=jHt,HUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Uk,KK=tc(()=>{Uk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var t8,XUe=tc(()=>{KK();t8={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}};Uk.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,u,l;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]}});var YUe={};Lee(YUe,{default:()=>ZUe});function ZUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=WUe(e);if(!i.space)return[];let a=i.space[0]==="h"?t8.min:Uk.min,o=i.space[0]==="h"?t8.max:Uk.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=t8.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var KUe=tc(()=>{jUe();KK();XUe()});var JK=we(r8=>{"use strict";var XHt=ei().isTypedArray;r8.convertTypedArray=function(e){return XHt(e)?Array.prototype.slice.call(e):e};r8.isOrdinal=function(e){return!!e.tickvals};r8.isVisible=function(e){return e.visible||!("visible"in e)}});var oVe=we((Qbr,aVe)=>{"use strict";var ZHt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` -`),YHt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),Vk=Nk().maxDimensionCount,rVe=ei(),JUe=1e-6,i8=2048,KHt=new Uint8Array(4),$Ue=new Uint8Array(4),QUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function JHt(e){e.read({x:0,y:0,width:1,height:1,data:KHt})}function iVe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function $Ht(e,t,r,n,i,a){var o=a.key;function s(u){var l=Math.min(n,i-u*n);u===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],iVe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*l,a.offset=2*u*n,t(a),u*n+l>>8*t)%256/255}function tWt(e,t,r){for(var n=new Array(e*(Vk+4)),i=0,a=0;aj&&(j=S[O].dim1.canvasX,U=O);E===0&&iVe(i,0,0,l.canvasWidth,l.canvasHeight);var W=M(r);for(O=0;O{"use strict";var Ud=Jl(),v1=ei(),QK=v1.isArrayOrTypedArray,hVe=v1.numberFormat,dVe=(KUe(),mb(YUe)).default,pVe=wu(),oWt=v1.strRotate,ag=v1.strTranslate,sWt=Wf(),n8=Mu(),sVe=_c(),rJ=ng(),im=rJ.keyFun,og=rJ.repeat,vVe=rJ.unwrap,MS=JK(),Nf=Nk(),mVe=jK(),lWt=oVe();function lVe(e,t,r){return v1.aggNums(e,null,t,r)}function yVe(e,t){return iJ(lVe(Math.min,e,t),lVe(Math.max,e,t))}function a8(e){var t=e.range;return t?iJ(t[0],t[1]):yVe(e.values,e._length)}function iJ(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function uWt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function fWt(e,t,r,n,i){var a=a8(r);return n?Ud.scale.ordinal().domain(n.map(uWt(hVe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Ud.scale.linear().domain(a).range([e-t,t])}function cWt(e,t){return Ud.scale.linear().range([t,e-t])}function hWt(e,t){return Ud.scale.linear().domain(a8(e)).range([t,1-t])}function dWt(e){if(e.tickvals){var t=a8(e);return Ud.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function pWt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=dVe(a[1]);return Ud.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Ud.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function tJ(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function vWt(e,t,r){var n=vVe(t),i=n.trace,a=MS.convertTypedArray(n.lineColor),o=i.line,s={color:dVe(i.unselected.line.color),opacity:i.unselected.line.opacity},u=sVe.extractOpts(o),l=u.reversescale?sVe.flipScale(n.cscale):n.cscale,f=i.domain,c=i.dimensions,h=e.width,d=i.labelangle,p=i.labelside,y=i.labelfont,b=i.tickfont,v=i.rangefont,C=v1.extendDeepNoArrays({},o,{color:a.map(Ud.scale.linear().domain(a8({values:a,range:[u.min,u.max],_length:i._length}))),blockLineCount:Nf.blockLineCount,canvasOverdrag:Nf.overdrag*Nf.canvasPixelRatio}),M=Math.floor(h*(f.x[1]-f.x[0])),A=Math.floor(e.height*(f.y[1]-f.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},x=M,k=A;return{key:r,colCount:c.filter(MS.isVisible).length,dimensions:c,tickDistance:Nf.tickDistance,unitToColor:pWt(l),lines:C,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:y,tickFont:b,rangeFont:v,layoutWidth:h,layoutHeight:e.height,domain:f,translateX:f.x[0]*h,translateY:e.height-f.y[1]*e.height,pad:L,canvasWidth:x*Nf.canvasPixelRatio+2*C.canvasOverdrag,canvasHeight:k*Nf.canvasPixelRatio,width:x,height:k,canvasPixelRatio:Nf.canvasPixelRatio}}function mWt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},u=Nf.verticalPadding/i,l=cWt(i,Nf.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(MS.isVisible).map(function(h,d){var p=hWt(h,u),y=c[h.label];c[h.label]=(y||0)+1;var b=h.label+(y?"__"+y:""),v=h.constraintrange,C=v&&v.length;C&&!QK(v[0])&&(v=[v]);var M=C?v.map(function(F){return F.map(p)}):[[-1/0,1/0]],A=function(){var F=f;F.focusLayer&&F.focusLayer.render(F.panels,!0);var U=tJ(F);!e.contextShown()&&U?(F.contextLayer&&F.contextLayer.render(F.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(F.contextLayer&&F.contextLayer.render(F.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var x=h.tickvals,k;function S(F,U){return{val:F,text:k[U]}}function m(F,U){return F.val-U.val}if(QK(x)&&x.length){v1.isTypedArray(x)&&(x=Array.from(x)),k=h.ticktext,!QK(k)||!k.length?k=x.map(hVe(h.tickformat)):k.length>x.length?k=k.slice(0,x.length):x.length>k.length&&(x=x.slice(0,k.length));for(var P=1;P=U||N>=G)return;var H=O.lineLayer.readPixel(W,G-1-N),re=H[3]!==0,ae=re?H[2]+256*(H[1]+256*H[0]):null,me={x:W,y:N,clientX:F.clientX,clientY:F.clientY,dataIndex:O.model.key,curveNumber:ae};ae!==p&&(re?i.hover(me):i.unhover&&i.unhover(me),p=ae)}}),d.style("opacity",function(O){return O.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Nf.cn.parcoords).data(h,im);b.exit().remove(),b.enter().append("g").classed(Nf.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(O){return ag(O.model.translateX,O.model.translateY)});var v=b.selectAll("."+Nf.cn.parcoordsControlView).data(og,im);v.enter().append("g").classed(Nf.cn.parcoordsControlView,!0),v.attr("transform",function(O){return ag(O.model.pad.l,O.model.pad.t)});var C=v.selectAll("."+Nf.cn.yAxis).data(function(O){return O.dimensions},im);C.enter().append("g").classed(Nf.cn.yAxis,!0),v.each(function(O){eJ(C,O,l)}),d.each(function(O){if(O.viewModel){!O.lineLayer||i?O.lineLayer=lWt(this,O):O.lineLayer.update(O),(O.key||O.key===0)&&(O.viewModel[O.key]=O.lineLayer);var F=!O.context||i;O.lineLayer.render(O.viewModel.panels,F)}}),C.attr("transform",function(O){return ag(O.xScale(O.xIndex),0)}),C.call(Ud.behavior.drag().origin(function(O){return O}).on("drag",function(O){var F=O.parent;c.linePickActive(!1),O.x=Math.max(-Nf.overdrag,Math.min(O.model.width+Nf.overdrag,Ud.event.x)),O.canvasX=O.x*O.model.canvasPixelRatio,C.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=O===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),eJ(C,F,l),C.filter(function(U){return Math.abs(O.xIndex-U.xIndex)!==0}).attr("transform",function(U){return ag(U.xScale(U.xIndex),0)}),Ud.select(this).attr("transform",ag(O.x,0)),C.each(function(U,G,j){j===O.parent.key&&(F.dimensions[G]=U)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!tJ(F)),F.focusLayer.render&&F.focusLayer.render(F.panels)}).on("dragend",function(O){var F=O.parent;O.x=O.xScale(O.xIndex),O.canvasX=O.x*O.model.canvasPixelRatio,eJ(C,F,l),Ud.select(this).attr("transform",function(U){return ag(U.x,0)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!tJ(F)),F.focusLayer&&F.focusLayer.render(F.panels),F.pickLayer&&F.pickLayer.render(F.panels,!0),c.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(F.key,F.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),C.exit().remove();var M=C.selectAll("."+Nf.cn.axisOverlays).data(og,im);M.enter().append("g").classed(Nf.cn.axisOverlays,!0),M.selectAll("."+Nf.cn.axis).remove();var A=M.selectAll("."+Nf.cn.axis).data(og,im);A.enter().append("g").classed(Nf.cn.axis,!0),A.each(function(O){var F=O.model.height/O.model.tickDistance,U=O.domainScale,G=U.domain();Ud.select(this).call(Ud.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(F,O.tickFormat).tickValues(O.ordinal?G:null).tickFormat(function(j){return MS.isOrdinal(O)?j:gVe(O.model.dimensions[O.visibleIndex],j)}).scale(U)),n8.font(A.selectAll("text"),O.model.tickFont)}),A.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),A.selectAll("text").style("cursor","default");var L=M.selectAll("."+Nf.cn.axisHeading).data(og,im);L.enter().append("g").classed(Nf.cn.axisHeading,!0);var x=L.selectAll("."+Nf.cn.axisTitle).data(og,im);x.enter().append("text").classed(Nf.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(O){return O.label}).each(function(O){var F=Ud.select(this);n8.font(F,O.model.labelFont),sWt.convertToTspans(F,t)}).attr("transform",function(O){var F=fVe(O.model.labelAngle,O.model.labelSide),U=Nf.axisTitleOffset;return(F.dir>0?"":ag(0,2*U+O.model.height))+oWt(F.degrees)+ag(-U*F.dx,-U*F.dy)}).attr("text-anchor",function(O){var F=fVe(O.model.labelAngle,O.model.labelSide),U=Math.abs(F.dx),G=Math.abs(F.dy);return 2*U>G?F.dir*F.dx<0?"start":"end":"middle"});var k=M.selectAll("."+Nf.cn.axisExtent).data(og,im);k.enter().append("g").classed(Nf.cn.axisExtent,!0);var S=k.selectAll("."+Nf.cn.axisExtentTop).data(og,im);S.enter().append("g").classed(Nf.cn.axisExtentTop,!0),S.attr("transform",ag(0,-Nf.axisExtentOffset));var m=S.selectAll("."+Nf.cn.axisExtentTopText).data(og,im);m.enter().append("text").classed(Nf.cn.axisExtentTopText,!0).call(uVe),m.text(function(O){return cVe(O,!0)}).each(function(O){n8.font(Ud.select(this),O.model.rangeFont)});var P=k.selectAll("."+Nf.cn.axisExtentBottom).data(og,im);P.enter().append("g").classed(Nf.cn.axisExtentBottom,!0),P.attr("transform",function(O){return ag(0,O.model.height+Nf.axisExtentOffset)});var E=P.selectAll("."+Nf.cn.axisExtentBottomText).data(og,im);E.enter().append("text").classed(Nf.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(uVe),E.text(function(O){return cVe(O,!1)}).each(function(O){n8.font(Ud.select(this),O.model.rangeFont)}),mVe.ensureAxisBrush(M,f,t)}});var aJ=we((nJ,TVe)=>{"use strict";var _Wt=xVe(),xWt=z9(),bVe=JK().isVisible,AVe={};function wVe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function bWt(e,t){return function(n,i){return wVe(e,t,n)-wVe(e,t,i)}}var nJ=TVe.exports=function(t,r){var n=t._fullLayout,i=xWt(t,[],AVe);if(i){var a={},o={},s={},u={},l=n._size;r.forEach(function(p,y){var b=p[0].trace;s[y]=b.index;var v=u[y]=b.index;a[y]=t.data[v].dimensions,o[y]=t.data[v].dimensions.slice()});var f=function(p,y,b){var v=o[p][y],C=b.map(function(S){return S.slice()}),M="dimensions["+y+"].constraintrange",A=n._tracePreGUI[t._fullData[s[p]]._fullInput.uid];if(A[M]===void 0){var L=v.constraintrange;A[M]=L||null}var x=t._fullData[s[p]].dimensions[y];C.length?(C.length===1&&(C=C[0]),v.constraintrange=C,x.constraintrange=C.slice(),C=[C]):(delete v.constraintrange,delete x.constraintrange,C=null);var k={};k[M]=C,t.emit("plotly_restyle",[k,[u[p]]])},c=function(p){t.emit("plotly_hover",p)},h=function(p){t.emit("plotly_unhover",p)},d=function(p,y){var b=bWt(y,o[p].filter(bVe));a[p].sort(b),o[p].filter(function(v){return!bVe(v)}).sort(function(v){return o[p].indexOf(v)}).forEach(function(v){a[p].splice(a[p].indexOf(v),1),a[p].splice(o[p].indexOf(v),0,v)}),t.emit("plotly_restyle",[{dimensions:[a[p]]},[u[p]]])};_Wt(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:f,hover:c,unhover:h,axesMoved:d})}};nJ.reglPrecompiled=AVe});var MVe=we(Gk=>{"use strict";var SVe=Jl(),wWt=Dd().getModuleCalcData,AWt=aJ(),TWt=jv();Gk.name="parcoords";Gk.plot=function(e){var t=wWt(e.calcdata,"parcoords")[0];t.length&&AWt(e,t)};Gk.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};Gk.toSVG=function(e){var t=e._fullLayout._glimages,r=SVe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:TWt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){SVe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var kVe=we((r2r,EVe)=>{"use strict";EVe.exports={attributes:GK(),supplyDefaults:UUe(),calc:GUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:MVe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var LVe=we((i2r,CVe)=>{CVe.exports=function(t,r){"use strict";var n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or;return n=t.gl,i=t.context,a=t.strings,o=t.next,s=t.current,u=t.draw,l=t.elements,f=t.buffer,c=t.shader,h=t.attributes,d=t.vao,p=t.uniforms,y=t.framebuffer,b=t.extensions,v=t.timer,C=t.isBufferArgs,M=o.blend_color,A=s.blend_color,L=o.blend_equation,x=s.blend_equation,k=o.blend_func,S=s.blend_func,m=o.depth_range,P=s.depth_range,E=o.colorMask,O=s.colorMask,F=o.polygonOffset_offset,U=s.polygonOffset_offset,G=o.sample_coverage,j=s.sample_coverage,W=o.stencil_func,N=s.stencil_func,H=o.stencil_opFront,re=s.stencil_opFront,ae=o.stencil_opBack,me=s.stencil_opBack,Le=o.scissor_box,Ce=s.scissor_box,de=o.viewport,te=s.viewport,Se={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Te={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},be={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},He={add:32774,subtract:32778,"reverse subtract":32779},Ie={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ge={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Be={cw:2304,ccw:2305},ce=o.blend_color,je=s.blend_color,rt=o.blend_equation,bt=s.blend_equation,Ot=o.blend_func,it=s.blend_func,Ke=o.depth_range,zt=s.depth_range,Mt=o.colorMask,kt=s.colorMask,$e=o.polygonOffset_offset,De=s.polygonOffset_offset,Me=o.sample_coverage,oe=s.sample_coverage,Ne=o.stencil_func,vt=s.stencil_func,lt=o.stencil_opFront,We=s.stencil_opFront,Ve=o.stencil_opBack,et=s.stencil_opBack,tt=o.scissor_box,Lt=s.scissor_box,jt=o.viewport,or=s.viewport,{poll:function(){var yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi;s.dirty=!1,vr=o.dither,Vt=o.blend_enable,Pe=o.depth_enable,xe=o.cull_enable,Oe=o.polygonOffset_enable,ze=o.sample_alpha,Re=o.sample_enable,ht=o.stencil_enable,st=o.scissor_enable,gt=o.depth_func,xt=s.depth_func,pr=o.depth_mask,br=s.depth_mask,cr=o.cull_face,Er=s.cull_face,ii=o.frontFace,jr=s.frontFace,kr=o.lineWidth,Vr=s.lineWidth,Ai=o.stencil_mask,Bi=s.stencil_mask,yr=y.next,yr!==y.cur&&(yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),y.cur=yr),vr!==s.dither&&(vr?n.enable(3024):n.disable(3024),s.dither=vr),Vt!==s.blend_enable&&(Vt?n.enable(3042):n.disable(3042),s.blend_enable=Vt),Pe!==s.depth_enable&&(Pe?n.enable(2929):n.disable(2929),s.depth_enable=Pe),xe!==s.cull_enable&&(xe?n.enable(2884):n.disable(2884),s.cull_enable=xe),Oe!==s.polygonOffset_enable&&(Oe?n.enable(32823):n.disable(32823),s.polygonOffset_enable=Oe),ze!==s.sample_alpha&&(ze?n.enable(32926):n.disable(32926),s.sample_alpha=ze),Re!==s.sample_enable&&(Re?n.enable(32928):n.disable(32928),s.sample_enable=Re),ht!==s.stencil_enable&&(ht?n.enable(2960):n.disable(2960),s.stencil_enable=ht),st!==s.scissor_enable&&(st?n.enable(3089):n.disable(3089),s.scissor_enable=st),(ce[0]!==je[0]||ce[1]!==je[1]||ce[2]!==je[2]||ce[3]!==je[3])&&(n.blendColor(ce[0],ce[1],ce[2],ce[3]),je[0]=ce[0],je[1]=ce[1],je[2]=ce[2],je[3]=ce[3]),(rt[0]!==bt[0]||rt[1]!==bt[1])&&(n.blendEquationSeparate(rt[0],rt[1]),bt[0]=rt[0],bt[1]=rt[1]),(Ot[0]!==it[0]||Ot[1]!==it[1]||Ot[2]!==it[2]||Ot[3]!==it[3])&&(n.blendFuncSeparate(Ot[0],Ot[1],Ot[2],Ot[3]),it[0]=Ot[0],it[1]=Ot[1],it[2]=Ot[2],it[3]=Ot[3]),gt!==xt&&(n.depthFunc(gt),s.depth_func=gt),(Ke[0]!==zt[0]||Ke[1]!==zt[1])&&(n.depthRange(Ke[0],Ke[1]),zt[0]=Ke[0],zt[1]=Ke[1]),pr!==br&&(n.depthMask(pr),s.depth_mask=pr),(Mt[0]!==kt[0]||Mt[1]!==kt[1]||Mt[2]!==kt[2]||Mt[3]!==kt[3])&&(n.colorMask(Mt[0],Mt[1],Mt[2],Mt[3]),kt[0]=Mt[0],kt[1]=Mt[1],kt[2]=Mt[2],kt[3]=Mt[3]),cr!==Er&&(n.cullFace(cr),s.cull_face=cr),ii!==jr&&(n.frontFace(ii),s.frontFace=ii),kr!==Vr&&(n.lineWidth(kr),s.lineWidth=kr),($e[0]!==De[0]||$e[1]!==De[1])&&(n.polygonOffset($e[0],$e[1]),De[0]=$e[0],De[1]=$e[1]),(Me[0]!==oe[0]||Me[1]!==oe[1])&&(n.sampleCoverage(Me[0],Me[1]),oe[0]=Me[0],oe[1]=Me[1]),Ai!==Bi&&(n.stencilMask(Ai),s.stencil_mask=Ai),(Ne[0]!==vt[0]||Ne[1]!==vt[1]||Ne[2]!==vt[2])&&(n.stencilFunc(Ne[0],Ne[1],Ne[2]),vt[0]=Ne[0],vt[1]=Ne[1],vt[2]=Ne[2]),(lt[0]!==We[0]||lt[1]!==We[1]||lt[2]!==We[2]||lt[3]!==We[3])&&(n.stencilOpSeparate(lt[0],lt[1],lt[2],lt[3]),We[0]=lt[0],We[1]=lt[1],We[2]=lt[2],We[3]=lt[3]),(Ve[0]!==et[0]||Ve[1]!==et[1]||Ve[2]!==et[2]||Ve[3]!==et[3])&&(n.stencilOpSeparate(Ve[0],Ve[1],Ve[2],Ve[3]),et[0]=Ve[0],et[1]=Ve[1],et[2]=Ve[2],et[3]=Ve[3]),(tt[0]!==Lt[0]||tt[1]!==Lt[1]||tt[2]!==Lt[2]||tt[3]!==Lt[3])&&(n.scissor(tt[0],tt[1],tt[2],tt[3]),Lt[0]=tt[0],Lt[1]=tt[1],Lt[2]=tt[2],Lt[3]=tt[3]),(jt[0]!==or[0]||jt[1]!==or[1]||jt[2]!==or[2]||jt[3]!==or[3])&&(n.viewport(jt[0],jt[1],jt[2],jt[3]),or[0]=jt[0],or[1]=jt[1],or[2]=jt[2],or[3]=jt[3])},refresh:function(){var yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln;s.dirty=!1,Pe=o.dither,xe=o.blend_enable,Oe=o.depth_enable,ze=o.cull_enable,Re=o.polygonOffset_enable,ht=o.sample_alpha,st=o.sample_enable,gt=o.stencil_enable,xt=o.scissor_enable,pr=o.depth_func,br=s.depth_func,cr=o.depth_mask,Er=s.depth_mask,ii=o.cull_face,jr=s.cull_face,kr=o.frontFace,Vr=s.frontFace,Ai=o.lineWidth,Bi=s.lineWidth,Di=o.stencil_mask,ln=s.stencil_mask,yr=y.next,yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),y.cur=yr,vr=h,Vt=0;for(var hn=0;hn{PVe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,y=t.elements,b=t.buffer,v=t.shader,C=t.attributes,M=t.vao,A=t.uniforms,L=t.framebuffer,x=t.extensions,k=t.timer,S=t.isBufferArgs,m=h.blend_color,P=d.blend_color,E=h.blend_equation,O=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,W=h.colorMask,N=d.colorMask,H=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,me=d.sample_coverage,Le=h.stencil_func,Ce=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,Se=h.stencil_opBack,Te=d.stencil_opBack,be=h.scissor_box,He=d.scissor_box,Ie=h.viewport,ge=d.viewport,Be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},je={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rt={add:32774,subtract:32778,"reverse subtract":32779},bt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ot={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ke={},zt={},{draw:function(Mt){var kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt;if(kt=Mt.framebuffer,$e=L.getFramebuffer(kt),De=L.next,L.next=$e,Me=f.framebufferWidth,f.framebufferWidth=$e?$e.width:f.drawingBufferWidth,oe=f.framebufferHeight,f.framebufferHeight=$e?$e.height:f.drawingBufferHeight,$e!==L.cur&&($e?l.bindFramebuffer(36160,$e.framebuffer):l.bindFramebuffer(36160,null),L.cur=$e),d.dirty){var Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri;Pe=h.dither,Pe!==d.dither&&(Pe?l.enable(3024):l.disable(3024),d.dither=Pe),xe=h.blend_enable,xe!==d.blend_enable&&(xe?l.enable(3042):l.disable(3042),d.blend_enable=xe),Oe=m[0],ze=m[1],Re=m[2],ht=m[3],(Oe!==P[0]||ze!==P[1]||Re!==P[2]||ht!==P[3])&&(l.blendColor(Oe,ze,Re,ht),P[0]=Oe,P[1]=ze,P[2]=Re,P[3]=ht),st=E[0],gt=E[1],(st!==O[0]||gt!==O[1])&&(l.blendEquationSeparate(st,gt),O[0]=st,O[1]=gt),xt=F[0],pr=F[1],br=F[2],cr=F[3],(xt!==U[0]||pr!==U[1]||br!==U[2]||cr!==U[3])&&(l.blendFuncSeparate(xt,pr,br,cr),U[0]=xt,U[1]=pr,U[2]=br,U[3]=cr),Er=h.depth_enable,Er!==d.depth_enable&&(Er?l.enable(2929):l.disable(2929),d.depth_enable=Er),ii=h.depth_func,ii!==d.depth_func&&(l.depthFunc(ii),d.depth_func=ii),jr=G[0],kr=G[1],(jr!==j[0]||kr!==j[1])&&(l.depthRange(jr,kr),j[0]=jr,j[1]=kr),Vr=h.depth_mask,Vr!==d.depth_mask&&(l.depthMask(Vr),d.depth_mask=Vr),Ai=W[0],Bi=W[1],Di=W[2],ln=W[3],(Ai!==N[0]||Bi!==N[1]||Di!==N[2]||ln!==N[3])&&(l.colorMask(Ai,Bi,Di,ln),N[0]=Ai,N[1]=Bi,N[2]=Di,N[3]=ln),hn=h.cull_enable,hn!==d.cull_enable&&(hn?l.enable(2884):l.disable(2884),d.cull_enable=hn),qr=h.cull_face,qr!==d.cull_face&&(l.cullFace(qr),d.cull_face=qr),_i=h.frontFace,_i!==d.frontFace&&(l.frontFace(_i),d.frontFace=_i),zi=h.lineWidth,zi!==d.lineWidth&&(l.lineWidth(zi),d.lineWidth=zi),Rt=h.polygonOffset_enable,Rt!==d.polygonOffset_enable&&(Rt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Rt),_t=H[0],qt=H[1],(_t!==re[0]||qt!==re[1])&&(l.polygonOffset(_t,qt),re[0]=_t,re[1]=qt),Nt=h.sample_alpha,Nt!==d.sample_alpha&&(Nt?l.enable(32926):l.disable(32926),d.sample_alpha=Nt),mr=h.sample_enable,mr!==d.sample_enable&&(mr?l.enable(32928):l.disable(32928),d.sample_enable=mr),Lr=ae[0],Nr=ae[1],(Lr!==me[0]||Nr!==me[1])&&(l.sampleCoverage(Lr,Nr),me[0]=Lr,me[1]=Nr),Fr=h.stencil_enable,Fr!==d.stencil_enable&&(Fr?l.enable(2960):l.disable(2960),d.stencil_enable=Fr),Gr=h.stencil_mask,Gr!==d.stencil_mask&&(l.stencilMask(Gr),d.stencil_mask=Gr),Hr=Le[0],mi=Le[1],Ei=Le[2],(Hr!==Ce[0]||mi!==Ce[1]||Ei!==Ce[2])&&(l.stencilFunc(Hr,mi,Ei),Ce[0]=Hr,Ce[1]=mi,Ce[2]=Ei),Vi=de[0],ti=de[1],Qi=de[2],Yr=de[3],(Vi!==te[0]||ti!==te[1]||Qi!==te[2]||Yr!==te[3])&&(l.stencilOpSeparate(Vi,ti,Qi,Yr),te[0]=Vi,te[1]=ti,te[2]=Qi,te[3]=Yr),oi=Se[0],Fi=Se[1],rn=Se[2],tn=Se[3],(oi!==Te[0]||Fi!==Te[1]||rn!==Te[2]||tn!==Te[3])&&(l.stencilOpSeparate(oi,Fi,rn,tn),Te[0]=oi,Te[1]=Fi,Te[2]=rn,Te[3]=tn),Ri=h.scissor_enable,Ri!==d.scissor_enable&&(Ri?l.enable(3089):l.disable(3089),d.scissor_enable=Ri)}Ne=f.framebufferWidth,vt=f.framebufferHeight,lt=f.viewportWidth,f.viewportWidth=Ne,We=f.viewportHeight,f.viewportHeight=vt,l.viewport(0,0,Ne,vt),ge[0]=0,ge[1]=0,ge[2]=Ne,ge[3]=vt,Ve=f.framebufferWidth,et=f.framebufferHeight,l.scissor(0,0,Ve,et),He[0]=0,He[1]=0,He[2]=Ve,He[3]=et,tt=d.profile,tt&&(Lt=performance.now(),r.count++),jt=v.frag,or=v.vert,yr=v.program(or,jt),l.useProgram(yr.program),M.setVAO(null),vr=yr.id,Vt=Ke[vr],Vt?Vt.call(this,Mt):(Vt=Ke[vr]=n(yr),Vt.call(this,Mt)),d.dirty=!0,M.setVAO(null),L.next=De,f.framebufferWidth=Me,f.framebufferHeight=oe,f.viewportWidth=lt,f.viewportHeight=We,tt&&(r.cpuTime+=performance.now()-Lt)},scope:function(Mt,kt,$e){var De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re;De=Mt.framebuffer,Me=L.getFramebuffer(De),oe=L.next,L.next=Me,Ne=f.framebufferWidth,f.framebufferWidth=Me?Me.width:f.drawingBufferWidth,vt=f.framebufferHeight,f.framebufferHeight=Me?Me.height:f.drawingBufferHeight,lt=f.framebufferWidth,We=f.framebufferHeight,Ve=f.viewportWidth,f.viewportWidth=lt,et=f.viewportHeight,f.viewportHeight=We,tt=Ie[0],Ie[0]=i,Lt=Ie[1],Ie[1]=a,jt=Ie[2],Ie[2]=lt,or=Ie[3],Ie[3]=We,yr=f.framebufferWidth,vr=f.framebufferHeight,Vt=be[0],be[0]=o,Pe=be[1],be[1]=s,xe=be[2],be[2]=yr,Oe=be[3],be[3]=vr,ze=d.profile,ze&&(Re=performance.now(),r.count++),d.dirty=!0,kt(f,Mt,$e),L.next=oe,f.framebufferWidth=Ne,f.framebufferHeight=vt,f.viewportWidth=Ve,f.viewportHeight=et,Ie[0]=tt,Ie[1]=Lt,Ie[2]=jt,Ie[3]=or,be[0]=Vt,be[1]=Pe,be[2]=xe,be[3]=Oe,ze&&(r.cpuTime+=performance.now()-Re),d.dirty=!0},batch:function(Mt,kt){var $e,De,Me,oe,Ne,vt,lt;if(d.dirty){var We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi;We=h.dither,We!==d.dither&&(We?l.enable(3024):l.disable(3024),d.dither=We),Ve=h.blend_enable,Ve!==d.blend_enable&&(Ve?l.enable(3042):l.disable(3042),d.blend_enable=Ve),et=m[0],tt=m[1],Lt=m[2],jt=m[3],(et!==P[0]||tt!==P[1]||Lt!==P[2]||jt!==P[3])&&(l.blendColor(et,tt,Lt,jt),P[0]=et,P[1]=tt,P[2]=Lt,P[3]=jt),or=E[0],yr=E[1],(or!==O[0]||yr!==O[1])&&(l.blendEquationSeparate(or,yr),O[0]=or,O[1]=yr),vr=F[0],Vt=F[1],Pe=F[2],xe=F[3],(vr!==U[0]||Vt!==U[1]||Pe!==U[2]||xe!==U[3])&&(l.blendFuncSeparate(vr,Vt,Pe,xe),U[0]=vr,U[1]=Vt,U[2]=Pe,U[3]=xe),Oe=h.depth_enable,Oe!==d.depth_enable&&(Oe?l.enable(2929):l.disable(2929),d.depth_enable=Oe),ze=h.depth_func,ze!==d.depth_func&&(l.depthFunc(ze),d.depth_func=ze),Re=G[0],ht=G[1],(Re!==j[0]||ht!==j[1])&&(l.depthRange(Re,ht),j[0]=Re,j[1]=ht),st=h.depth_mask,st!==d.depth_mask&&(l.depthMask(st),d.depth_mask=st),gt=W[0],xt=W[1],pr=W[2],br=W[3],(gt!==N[0]||xt!==N[1]||pr!==N[2]||br!==N[3])&&(l.colorMask(gt,xt,pr,br),N[0]=gt,N[1]=xt,N[2]=pr,N[3]=br),cr=h.cull_enable,cr!==d.cull_enable&&(cr?l.enable(2884):l.disable(2884),d.cull_enable=cr),Er=h.cull_face,Er!==d.cull_face&&(l.cullFace(Er),d.cull_face=Er),ii=h.frontFace,ii!==d.frontFace&&(l.frontFace(ii),d.frontFace=ii),jr=h.lineWidth,jr!==d.lineWidth&&(l.lineWidth(jr),d.lineWidth=jr),kr=h.polygonOffset_enable,kr!==d.polygonOffset_enable&&(kr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=kr),Vr=H[0],Ai=H[1],(Vr!==re[0]||Ai!==re[1])&&(l.polygonOffset(Vr,Ai),re[0]=Vr,re[1]=Ai),Bi=h.sample_alpha,Bi!==d.sample_alpha&&(Bi?l.enable(32926):l.disable(32926),d.sample_alpha=Bi),Di=h.sample_enable,Di!==d.sample_enable&&(Di?l.enable(32928):l.disable(32928),d.sample_enable=Di),ln=ae[0],hn=ae[1],(ln!==me[0]||hn!==me[1])&&(l.sampleCoverage(ln,hn),me[0]=ln,me[1]=hn),qr=h.stencil_enable,qr!==d.stencil_enable&&(qr?l.enable(2960):l.disable(2960),d.stencil_enable=qr),_i=h.stencil_mask,_i!==d.stencil_mask&&(l.stencilMask(_i),d.stencil_mask=_i),zi=Le[0],Rt=Le[1],_t=Le[2],(zi!==Ce[0]||Rt!==Ce[1]||_t!==Ce[2])&&(l.stencilFunc(zi,Rt,_t),Ce[0]=zi,Ce[1]=Rt,Ce[2]=_t),qt=de[0],Nt=de[1],mr=de[2],Lr=de[3],(qt!==te[0]||Nt!==te[1]||mr!==te[2]||Lr!==te[3])&&(l.stencilOpSeparate(qt,Nt,mr,Lr),te[0]=qt,te[1]=Nt,te[2]=mr,te[3]=Lr),Nr=Se[0],Fr=Se[1],Gr=Se[2],Hr=Se[3],(Nr!==Te[0]||Fr!==Te[1]||Gr!==Te[2]||Hr!==Te[3])&&(l.stencilOpSeparate(Nr,Fr,Gr,Hr),Te[0]=Nr,Te[1]=Fr,Te[2]=Gr,Te[3]=Hr),mi=h.scissor_enable,mi!==d.scissor_enable&&(mi?l.enable(3089):l.disable(3089),d.scissor_enable=mi)}$e=d.profile,$e&&(De=performance.now(),r.count+=kt),Me=v.frag,oe=v.vert,Ne=v.program(oe,Me),l.useProgram(Ne.program),M.setVAO(null),vt=Ne.id,lt=zt[vt],lt?lt.call(this,Mt,kt):(lt=zt[vt]=u(Ne),lt.call(this,Mt,kt)),d.dirty=!0,M.setVAO(null),$e&&(r.cpuTime+=performance.now()-De)}}}});var DVe=we((a2r,IVe)=>{IVe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,y=t.vao,b=t.uniforms,v=t.framebuffer,C=t.extensions,M=t.timer,A=t.isBufferArgs,L=u.blend_color,x=l.blend_color,k=u.blend_equation,S=l.blend_equation,m=u.blend_func,P=l.blend_func,E=u.depth_range,O=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,W=u.sample_coverage,N=l.sample_coverage,H=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,me=l.stencil_opFront,Le=u.stencil_opBack,Ce=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,Se=u.viewport,Te=l.viewport,be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},He={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ie={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ge={add:32774,subtract:32778,"reverse subtract":32779},Be={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},je={cw:2304,ccw:2305},rt={},bt={},{draw:function(Ot){var it,Ke,zt,Mt,kt,$e,De,Me;if(it=v.next,it!==v.cur&&(it?a.bindFramebuffer(36160,it.framebuffer):a.bindFramebuffer(36160,null),v.cur=it),l.dirty){var oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi;oe=u.dither,oe!==l.dither&&(oe?a.enable(3024):a.disable(3024),l.dither=oe),Ne=u.blend_enable,Ne!==l.blend_enable&&(Ne?a.enable(3042):a.disable(3042),l.blend_enable=Ne),vt=L[0],lt=L[1],We=L[2],Ve=L[3],(vt!==x[0]||lt!==x[1]||We!==x[2]||Ve!==x[3])&&(a.blendColor(vt,lt,We,Ve),x[0]=vt,x[1]=lt,x[2]=We,x[3]=Ve),et=k[0],tt=k[1],(et!==S[0]||tt!==S[1])&&(a.blendEquationSeparate(et,tt),S[0]=et,S[1]=tt),Lt=m[0],jt=m[1],or=m[2],yr=m[3],(Lt!==P[0]||jt!==P[1]||or!==P[2]||yr!==P[3])&&(a.blendFuncSeparate(Lt,jt,or,yr),P[0]=Lt,P[1]=jt,P[2]=or,P[3]=yr),vr=u.depth_enable,vr!==l.depth_enable&&(vr?a.enable(2929):a.disable(2929),l.depth_enable=vr),Vt=u.depth_func,Vt!==l.depth_func&&(a.depthFunc(Vt),l.depth_func=Vt),Pe=E[0],xe=E[1],(Pe!==O[0]||xe!==O[1])&&(a.depthRange(Pe,xe),O[0]=Pe,O[1]=xe),Oe=u.depth_mask,Oe!==l.depth_mask&&(a.depthMask(Oe),l.depth_mask=Oe),ze=F[0],Re=F[1],ht=F[2],st=F[3],(ze!==U[0]||Re!==U[1]||ht!==U[2]||st!==U[3])&&(a.colorMask(ze,Re,ht,st),U[0]=ze,U[1]=Re,U[2]=ht,U[3]=st),gt=u.cull_enable,gt!==l.cull_enable&&(gt?a.enable(2884):a.disable(2884),l.cull_enable=gt),xt=u.cull_face,xt!==l.cull_face&&(a.cullFace(xt),l.cull_face=xt),pr=u.frontFace,pr!==l.frontFace&&(a.frontFace(pr),l.frontFace=pr),br=u.lineWidth,br!==l.lineWidth&&(a.lineWidth(br),l.lineWidth=br),cr=u.polygonOffset_enable,cr!==l.polygonOffset_enable&&(cr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=cr),Er=G[0],ii=G[1],(Er!==j[0]||ii!==j[1])&&(a.polygonOffset(Er,ii),j[0]=Er,j[1]=ii),jr=u.sample_alpha,jr!==l.sample_alpha&&(jr?a.enable(32926):a.disable(32926),l.sample_alpha=jr),kr=u.sample_enable,kr!==l.sample_enable&&(kr?a.enable(32928):a.disable(32928),l.sample_enable=kr),Vr=W[0],Ai=W[1],(Vr!==N[0]||Ai!==N[1])&&(a.sampleCoverage(Vr,Ai),N[0]=Vr,N[1]=Ai),Bi=u.stencil_enable,Bi!==l.stencil_enable&&(Bi?a.enable(2960):a.disable(2960),l.stencil_enable=Bi),Di=u.stencil_mask,Di!==l.stencil_mask&&(a.stencilMask(Di),l.stencil_mask=Di),ln=H[0],hn=H[1],qr=H[2],(ln!==re[0]||hn!==re[1]||qr!==re[2])&&(a.stencilFunc(ln,hn,qr),re[0]=ln,re[1]=hn,re[2]=qr),_i=ae[0],zi=ae[1],Rt=ae[2],_t=ae[3],(_i!==me[0]||zi!==me[1]||Rt!==me[2]||_t!==me[3])&&(a.stencilOpSeparate(_i,zi,Rt,_t),me[0]=_i,me[1]=zi,me[2]=Rt,me[3]=_t),qt=Le[0],Nt=Le[1],mr=Le[2],Lr=Le[3],(qt!==Ce[0]||Nt!==Ce[1]||mr!==Ce[2]||Lr!==Ce[3])&&(a.stencilOpSeparate(qt,Nt,mr,Lr),Ce[0]=qt,Ce[1]=Nt,Ce[2]=mr,Ce[3]=Lr),Nr=u.scissor_enable,Nr!==l.scissor_enable&&(Nr?a.enable(3089):a.disable(3089),l.scissor_enable=Nr),Fr=de[0],Gr=de[1],Hr=de[2],mi=de[3],(Fr!==te[0]||Gr!==te[1]||Hr!==te[2]||mi!==te[3])&&(a.scissor(Fr,Gr,Hr,mi),te[0]=Fr,te[1]=Gr,te[2]=Hr,te[3]=mi),Ei=Se[0],Vi=Se[1],ti=Se[2],Qi=Se[3],(Ei!==Te[0]||Vi!==Te[1]||ti!==Te[2]||Qi!==Te[3])&&(a.viewport(Ei,Vi,ti,Qi),Te[0]=Ei,Te[1]=Vi,Te[2]=ti,Te[3]=Qi),l.dirty=!1}Ke=l.profile,Ke&&(zt=performance.now(),r.count++),Mt=d.frag,kt=d.vert,$e=d.program(kt,Mt),a.useProgram($e.program),y.setVAO(null),De=$e.id,Me=rt[De],Me?Me.call(this,Ot):(Me=rt[De]=n($e),Me.call(this,Ot)),y.setVAO(null),Ke&&(r.cpuTime+=performance.now()-zt)},scope:function(Ot,it,Ke){var zt,Mt;zt=l.profile,zt&&(Mt=performance.now(),r.count++),it(o,Ot,Ke),zt&&(r.cpuTime+=performance.now()-Mt)},batch:function(Ot,it){var Ke,zt,Mt,kt,$e,De,Me,oe;if(Ke=v.next,Ke!==v.cur&&(Ke?a.bindFramebuffer(36160,Ke.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ke),l.dirty){var Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr;Ne=u.dither,Ne!==l.dither&&(Ne?a.enable(3024):a.disable(3024),l.dither=Ne),vt=u.blend_enable,vt!==l.blend_enable&&(vt?a.enable(3042):a.disable(3042),l.blend_enable=vt),lt=L[0],We=L[1],Ve=L[2],et=L[3],(lt!==x[0]||We!==x[1]||Ve!==x[2]||et!==x[3])&&(a.blendColor(lt,We,Ve,et),x[0]=lt,x[1]=We,x[2]=Ve,x[3]=et),tt=k[0],Lt=k[1],(tt!==S[0]||Lt!==S[1])&&(a.blendEquationSeparate(tt,Lt),S[0]=tt,S[1]=Lt),jt=m[0],or=m[1],yr=m[2],vr=m[3],(jt!==P[0]||or!==P[1]||yr!==P[2]||vr!==P[3])&&(a.blendFuncSeparate(jt,or,yr,vr),P[0]=jt,P[1]=or,P[2]=yr,P[3]=vr),Vt=u.depth_enable,Vt!==l.depth_enable&&(Vt?a.enable(2929):a.disable(2929),l.depth_enable=Vt),Pe=u.depth_func,Pe!==l.depth_func&&(a.depthFunc(Pe),l.depth_func=Pe),xe=E[0],Oe=E[1],(xe!==O[0]||Oe!==O[1])&&(a.depthRange(xe,Oe),O[0]=xe,O[1]=Oe),ze=u.depth_mask,ze!==l.depth_mask&&(a.depthMask(ze),l.depth_mask=ze),Re=F[0],ht=F[1],st=F[2],gt=F[3],(Re!==U[0]||ht!==U[1]||st!==U[2]||gt!==U[3])&&(a.colorMask(Re,ht,st,gt),U[0]=Re,U[1]=ht,U[2]=st,U[3]=gt),xt=u.cull_enable,xt!==l.cull_enable&&(xt?a.enable(2884):a.disable(2884),l.cull_enable=xt),pr=u.cull_face,pr!==l.cull_face&&(a.cullFace(pr),l.cull_face=pr),br=u.frontFace,br!==l.frontFace&&(a.frontFace(br),l.frontFace=br),cr=u.lineWidth,cr!==l.lineWidth&&(a.lineWidth(cr),l.lineWidth=cr),Er=u.polygonOffset_enable,Er!==l.polygonOffset_enable&&(Er?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Er),ii=G[0],jr=G[1],(ii!==j[0]||jr!==j[1])&&(a.polygonOffset(ii,jr),j[0]=ii,j[1]=jr),kr=u.sample_alpha,kr!==l.sample_alpha&&(kr?a.enable(32926):a.disable(32926),l.sample_alpha=kr),Vr=u.sample_enable,Vr!==l.sample_enable&&(Vr?a.enable(32928):a.disable(32928),l.sample_enable=Vr),Ai=W[0],Bi=W[1],(Ai!==N[0]||Bi!==N[1])&&(a.sampleCoverage(Ai,Bi),N[0]=Ai,N[1]=Bi),Di=u.stencil_enable,Di!==l.stencil_enable&&(Di?a.enable(2960):a.disable(2960),l.stencil_enable=Di),ln=u.stencil_mask,ln!==l.stencil_mask&&(a.stencilMask(ln),l.stencil_mask=ln),hn=H[0],qr=H[1],_i=H[2],(hn!==re[0]||qr!==re[1]||_i!==re[2])&&(a.stencilFunc(hn,qr,_i),re[0]=hn,re[1]=qr,re[2]=_i),zi=ae[0],Rt=ae[1],_t=ae[2],qt=ae[3],(zi!==me[0]||Rt!==me[1]||_t!==me[2]||qt!==me[3])&&(a.stencilOpSeparate(zi,Rt,_t,qt),me[0]=zi,me[1]=Rt,me[2]=_t,me[3]=qt),Nt=Le[0],mr=Le[1],Lr=Le[2],Nr=Le[3],(Nt!==Ce[0]||mr!==Ce[1]||Lr!==Ce[2]||Nr!==Ce[3])&&(a.stencilOpSeparate(Nt,mr,Lr,Nr),Ce[0]=Nt,Ce[1]=mr,Ce[2]=Lr,Ce[3]=Nr),Fr=u.scissor_enable,Fr!==l.scissor_enable&&(Fr?a.enable(3089):a.disable(3089),l.scissor_enable=Fr),Gr=de[0],Hr=de[1],mi=de[2],Ei=de[3],(Gr!==te[0]||Hr!==te[1]||mi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,Hr,mi,Ei),te[0]=Gr,te[1]=Hr,te[2]=mi,te[3]=Ei),Vi=Se[0],ti=Se[1],Qi=Se[2],Yr=Se[3],(Vi!==Te[0]||ti!==Te[1]||Qi!==Te[2]||Yr!==Te[3])&&(a.viewport(Vi,ti,Qi,Yr),Te[0]=Vi,Te[1]=ti,Te[2]=Qi,Te[3]=Yr),l.dirty=!1}zt=l.profile,zt&&(Mt=performance.now(),r.count+=it),kt=d.frag,$e=d.vert,De=d.program($e,kt),a.useProgram(De.program),y.setVAO(null),Me=De.id,oe=bt[Me],oe?oe.call(this,Ot,it):(oe=bt[Me]=i(De),oe.call(this,Ot,it)),y.setVAO(null),zt&&(r.cpuTime+=performance.now()-Mt)}}}});var FVe=we((o2r,RVe)=>{RVe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,M,A,L,x,k,S,m,P,E,O,F,U,G,j,W,N,H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,De,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,Re,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Di,ln,hn,qr,_i,zi,Rt,_t,qt,Nt,mr,Lr,Nr,Fr,Gr,Hr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Ri,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so){"use strict";var Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Da,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Rn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa;return Kr=t.gl,Ia=t.context,Yo=t.strings,fa=t.next,kn=t.current,Ta=t.draw,ys=t.elements,uo=t.buffer,ls=t.shader,$a=t.attributes,fo=t.vao,mn=t.uniforms,ra=t.framebuffer,wa=t.extensions,ws=t.timer,Co=t.isBufferArgs,Po=fa.blend_color,Wi=kn.blend_color,gn=fa.blend_equation,Ps=kn.blend_equation,Ha=fa.blend_func,Sn=kn.blend_func,ao=fa.depth_range,Oa=kn.depth_range,Ko=fa.colorMask,Qo=kn.colorMask,Hi=fa.polygonOffset_offset,Sa=kn.polygonOffset_offset,Qa=fa.sample_coverage,vn=kn.sample_coverage,da=fa.stencil_func,la=kn.stencil_func,vo=fa.stencil_opFront,As=kn.stencil_opFront,ps=fa.stencil_opBack,co=kn.stencil_opBack,mo=fa.scissor_box,No=kn.scissor_box,jn=fa.viewport,Go=kn.viewport,Ys={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},qs={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ns={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ba={add:32774,subtract:32778,"reverse subtract":32779},ha={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Vs={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ya={cw:2304,ccw:2305},_n={},Vn={},wo=new Float32Array(16),Da=new Float32Array(16),Xn=new Float32Array(16),sn=new Float32Array(16),$n=new Float32Array(16),Ka=new Float32Array(16),qn=new Float32Array(16),Eo=new Float32Array(16),Ja=new Float32Array(16),lo=new Float32Array(16),eo=new Float32Array(16),sa=new Float32Array(16),es=new Float32Array(16),Na=new Float32Array(16),en=new Float32Array(16),Pa=new Float32Array(16),to=new Float32Array(16),yo=new Float32Array(16),Jo=new Float32Array(16),Ao=new Float32Array(16),Rn=new Float32Array(16),_a=new Float32Array(16),Ws=new Float32Array(16),Ca=new Float32Array(16),Es=new Float32Array(16),Ts=new Float32Array(16),Ho=new Float32Array(16),Wa=new Float32Array(16),To=new Float32Array(16),ts=new Float32Array(16),Wo=new Float32Array(16),qa=new Float32Array(16),{draw:function(on){var Oo,ko,oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js;if(Oo=ra.next,Oo!==ra.cur&&(Oo?Kr.bindFramebuffer(36160,Oo.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=Oo),kn.dirty){var cs,sl,ll,nl,zl,Ml,Dl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt;cs=Ko[0],sl=Ko[1],ll=Ko[2],nl=Ko[3],(cs!==Qo[0]||sl!==Qo[1]||ll!==Qo[2]||nl!==Qo[3])&&(Kr.colorMask(cs,sl,ll,nl),Qo[0]=cs,Qo[1]=sl,Qo[2]=ll,Qo[3]=nl),zl=fa.frontFace,zl!==kn.frontFace&&(Kr.frontFace(zl),kn.frontFace=zl),Ml=fa.polygonOffset_enable,Ml!==kn.polygonOffset_enable&&(Ml?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=Ml),Dl=Hi[0],Al=Hi[1],(Dl!==Sa[0]||Al!==Sa[1])&&(Kr.polygonOffset(Dl,Al),Sa[0]=Dl,Sa[1]=Al),Ll=fa.sample_alpha,Ll!==kn.sample_alpha&&(Ll?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=Ll),ms=fa.sample_enable,ms!==kn.sample_enable&&(ms?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=ms),Bs=Qa[0],Xl=Qa[1],(Bs!==vn[0]||Xl!==vn[1])&&(Kr.sampleCoverage(Bs,Xl),vn[0]=Bs,vn[1]=Xl),Gl=fa.stencil_enable,Gl!==kn.stencil_enable&&(Gl?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Gl),Nl=fa.stencil_mask,Nl!==kn.stencil_mask&&(Kr.stencilMask(Nl),kn.stencil_mask=Nl),ue=da[0],w=da[1],q=da[2],(ue!==la[0]||w!==la[1]||q!==la[2])&&(Kr.stencilFunc(ue,w,q),la[0]=ue,la[1]=w,la[2]=q),Q=vo[0],ee=vo[1],fe=vo[2],Ue=vo[3],(Q!==As[0]||ee!==As[1]||fe!==As[2]||Ue!==As[3])&&(Kr.stencilOpSeparate(Q,ee,fe,Ue),As[0]=Q,As[1]=ee,As[2]=fe,As[3]=Ue),at=ps[0],yt=ps[1],Dt=ps[2],Qt=ps[3],(at!==co[0]||yt!==co[1]||Dt!==co[2]||Qt!==co[3])&&(Kr.stencilOpSeparate(at,yt,Dt,Qt),co[0]=at,co[1]=yt,co[2]=Dt,co[3]=Qt)}ko=on.viewportX,_n.x=ko,oo=on.viewportY,_n.y=oo,za=on.viewportWidth,_n.width=za,ea=on.viewportHeight,_n.height=ea,rs=_n.x|0,$s=_n.y|0,us="width"in _n?_n.width|0:Ia.framebufferWidth-rs,Rs="height"in _n?_n.height|0:Ia.framebufferHeight-$s,fl=Ia.viewportWidth,Ia.viewportWidth=us,as=Ia.viewportHeight,Ia.viewportHeight=Rs,Kr.viewport(rs,$s,us,Rs),Go[0]=rs,Go[1]=$s,Go[2]=us,Go[3]=Rs,Kr.blendColor(0,0,0,0),Wi[0]=0,Wi[1]=0,Wi[2]=0,Wi[3]=0,n?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=n,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,i?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=i,Kr.cullFace(a),kn.cull_face=a,o?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=o,Kr.depthFunc(s),kn.depth_func=s,Kr.depthMask(u),kn.depth_mask=u,Kr.depthRange(0,1),Oa[0]=0,Oa[1]=1,l?Kr.enable(3024):Kr.disable(3024),kn.dither=l,Kr.lineWidth(f),kn.lineWidth=f,Ma=on.scissorX,Vn.x=Ma,Qs=on.scissorY,Vn.y=Qs,ho=on.scissorWidth,Vn.width=ho,gs=on.scissorHeight,Vn.height=gs,Vo=Vn.x|0,Ro=Vn.y|0,Lo="width"in Vn?Vn.width|0:Ia.framebufferWidth-Vo,xs="height"in Vn?Vn.height|0:Ia.framebufferHeight-Ro,Kr.scissor(Vo,Ro,Lo,xs),No[0]=Vo,No[1]=Ro,No[2]=Lo,No[3]=xs,c?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=c,ks=kn.profile,kn.profile=!1,Kr.useProgram(h.program),fo.setVAO(null),Ea=p.location,Jn=$a[Ea],Jn.buffer||Kr.enableVertexAttribArray(Ea),(Jn.type!==d.dtype||Jn.size!==4||Jn.buffer!==d||Jn.normalized!==!1||Jn.offset!==0||Jn.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(Ea,4,d.dtype,!1,0,0),Jn.type=d.dtype,Jn.size=4,Jn.buffer=d,Jn.normalized=!1,Jn.offset=0,Jn.stride=0),Bo=b.location,rl=$a[Bo],rl.buffer||Kr.enableVertexAttribArray(Bo),(rl.type!==y.dtype||rl.size!==4||rl.buffer!==y||rl.normalized!==!1||rl.offset!==0||rl.stride!==0)&&(Kr.bindBuffer(34962,y.buffer),Kr.vertexAttribPointer(Bo,4,y.dtype,!1,0,0),rl.type=y.dtype,rl.size=4,rl.buffer=y,rl.normalized=!1,rl.offset=0,rl.stride=0),Gs=C.location,bs=$a[Gs],bs.buffer||Kr.enableVertexAttribArray(Gs),(bs.type!==v.dtype||bs.size!==4||bs.buffer!==v||bs.normalized!==!1||bs.offset!==0||bs.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(Gs,4,v.dtype,!1,0,0),bs.type=v.dtype,bs.size=4,bs.buffer=v,bs.normalized=!1,bs.offset=0,bs.stride=0),zs=A.location,$o=$a[zs],$o.buffer||Kr.enableVertexAttribArray(zs),($o.type!==M.dtype||$o.size!==4||$o.buffer!==M||$o.normalized!==!1||$o.offset!==0||$o.stride!==0)&&(Kr.bindBuffer(34962,M.buffer),Kr.vertexAttribPointer(zs,4,M.dtype,!1,0,0),$o.type=M.dtype,$o.size=4,$o.buffer=M,$o.normalized=!1,$o.offset=0,$o.stride=0),Aa=x.location,os=$a[Aa],os.buffer||Kr.enableVertexAttribArray(Aa),(os.type!==L.dtype||os.size!==4||os.buffer!==L||os.normalized!==!1||os.offset!==0||os.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Aa,4,L.dtype,!1,0,0),os.type=L.dtype,os.size=4,os.buffer=L,os.normalized=!1,os.offset=0,os.stride=0),_l=S.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==k.dtype||Ss.size!==4||Ss.buffer!==k||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,k.buffer),Kr.vertexAttribPointer(_l,4,k.dtype,!1,0,0),Ss.type=k.dtype,Ss.size=4,Ss.buffer=k,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=P.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==m.dtype||go.size!==4||go.buffer!==m||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(po,4,m.dtype,!1,0,0),go.type=m.dtype,go.size=4,go.buffer=m,go.normalized=!1,go.offset=0,go.stride=0),ss=O.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==E.dtype||qo.size!==4||qo.buffer!==E||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(ss,4,E.dtype,!1,0,0),qo.type=E.dtype,qo.size=4,qo.buffer=E,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=U.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==F.dtype||io.size!==4||io.buffer!==F||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(zo,4,F.dtype,!1,0,0),io.type=F.dtype,io.size=4,io.buffer=F,io.normalized=!1,io.offset=0,io.stride=0),Io=j.location,Ra=$a[Io],Ra.buffer||Kr.enableVertexAttribArray(Io),(Ra.type!==G.dtype||Ra.size!==4||Ra.buffer!==G||Ra.normalized!==!1||Ra.offset!==0||Ra.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(Io,4,G.dtype,!1,0,0),Ra.type=G.dtype,Ra.size=4,Ra.buffer=G,Ra.normalized=!1,Ra.offset=0,Ra.stride=0),vs=N.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==W.dtype||fs.size!==4||fs.buffer!==W||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(vs,4,W.dtype,!1,0,0),fs.type=W.dtype,fs.size=4,fs.buffer=W,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=re.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==H.dtype||el.size!==4||el.buffer!==H||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(cl,4,H.dtype,!1,0,0),el.type=H.dtype,el.size=4,el.buffer=H,el.normalized=!1,el.offset=0,el.stride=0),Hs=me.location,Do=$a[Hs],Do.buffer||Kr.enableVertexAttribArray(Hs),(Do.type!==ae.dtype||Do.size!==4||Do.buffer!==ae||Do.normalized!==!1||Do.offset!==0||Do.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Hs,4,ae.dtype,!1,0,0),Do.type=ae.dtype,Do.size=4,Do.buffer=ae,Do.normalized=!1,Do.offset=0,Do.stride=0),tl=Ce.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==Le.dtype||Fs.size!==4||Fs.buffer!==Le||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,Le.buffer),Kr.vertexAttribPointer(tl,4,Le.dtype,!1,0,0),Fs.type=Le.dtype,Fs.size=4,Fs.buffer=Le,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=te.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==de.dtype||Fa.size!==4||Fa.buffer!==de||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(hl,4,de.dtype,!1,0,0),Fa.type=de.dtype,Fa.size=4,Fa.buffer=de,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=Te.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==Se.dtype||jo.size!==4||jo.buffer!==Se||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,Se.buffer),Kr.vertexAttribPointer(Ms,4,Se.dtype,!1,0,0),jo.type=Se.dtype,jo.size=4,jo.buffer=Se,jo.normalized=!1,jo.offset=0,jo.stride=0),Ds=on.contextColor,Is=Ds[0],Os=Ds[1],St=Ds[2],Ut=Ds[3],Kr.uniform4f(be.location,Is,Os,St,Ut),xr=on.dim0A,Kr.uniformMatrix4fv(He.location,!1,Array.isArray(xr)||xr instanceof Float32Array?xr:(wo[0]=xr[0],wo[1]=xr[1],wo[2]=xr[2],wo[3]=xr[3],wo[4]=xr[4],wo[5]=xr[5],wo[6]=xr[6],wo[7]=xr[7],wo[8]=xr[8],wo[9]=xr[9],wo[10]=xr[10],wo[11]=xr[11],wo[12]=xr[12],wo[13]=xr[13],wo[14]=xr[14],wo[15]=xr[15],wo)),dr=on.dim0B,Kr.uniformMatrix4fv(Ie.location,!1,Array.isArray(dr)||dr instanceof Float32Array?dr:(Da[0]=dr[0],Da[1]=dr[1],Da[2]=dr[2],Da[3]=dr[3],Da[4]=dr[4],Da[5]=dr[5],Da[6]=dr[6],Da[7]=dr[7],Da[8]=dr[8],Da[9]=dr[9],Da[10]=dr[10],Da[11]=dr[11],Da[12]=dr[12],Da[13]=dr[13],Da[14]=dr[14],Da[15]=dr[15],Da)),Rr=on.dim0C,Kr.uniformMatrix4fv(ge.location,!1,Array.isArray(Rr)||Rr instanceof Float32Array?Rr:(Xn[0]=Rr[0],Xn[1]=Rr[1],Xn[2]=Rr[2],Xn[3]=Rr[3],Xn[4]=Rr[4],Xn[5]=Rr[5],Xn[6]=Rr[6],Xn[7]=Rr[7],Xn[8]=Rr[8],Xn[9]=Rr[9],Xn[10]=Rr[10],Xn[11]=Rr[11],Xn[12]=Rr[12],Xn[13]=Rr[13],Xn[14]=Rr[14],Xn[15]=Rr[15],Xn)),yi=on.dim0D,Kr.uniformMatrix4fv(Be.location,!1,Array.isArray(yi)||yi instanceof Float32Array?yi:(sn[0]=yi[0],sn[1]=yi[1],sn[2]=yi[2],sn[3]=yi[3],sn[4]=yi[4],sn[5]=yi[5],sn[6]=yi[6],sn[7]=yi[7],sn[8]=yi[8],sn[9]=yi[9],sn[10]=yi[10],sn[11]=yi[11],sn[12]=yi[12],sn[13]=yi[13],sn[14]=yi[14],sn[15]=yi[15],sn)),Ti=on.dim1A,Kr.uniformMatrix4fv(ce.location,!1,Array.isArray(Ti)||Ti instanceof Float32Array?Ti:($n[0]=Ti[0],$n[1]=Ti[1],$n[2]=Ti[2],$n[3]=Ti[3],$n[4]=Ti[4],$n[5]=Ti[5],$n[6]=Ti[6],$n[7]=Ti[7],$n[8]=Ti[8],$n[9]=Ti[9],$n[10]=Ti[10],$n[11]=Ti[11],$n[12]=Ti[12],$n[13]=Ti[13],$n[14]=Ti[14],$n[15]=Ti[15],$n)),ki=on.dim1B,Kr.uniformMatrix4fv(je.location,!1,Array.isArray(ki)||ki instanceof Float32Array?ki:(Ka[0]=ki[0],Ka[1]=ki[1],Ka[2]=ki[2],Ka[3]=ki[3],Ka[4]=ki[4],Ka[5]=ki[5],Ka[6]=ki[6],Ka[7]=ki[7],Ka[8]=ki[8],Ka[9]=ki[9],Ka[10]=ki[10],Ka[11]=ki[11],Ka[12]=ki[12],Ka[13]=ki[13],Ka[14]=ki[14],Ka[15]=ki[15],Ka)),Ki=on.dim1C,Kr.uniformMatrix4fv(rt.location,!1,Array.isArray(Ki)||Ki instanceof Float32Array?Ki:(qn[0]=Ki[0],qn[1]=Ki[1],qn[2]=Ki[2],qn[3]=Ki[3],qn[4]=Ki[4],qn[5]=Ki[5],qn[6]=Ki[6],qn[7]=Ki[7],qn[8]=Ki[8],qn[9]=Ki[9],qn[10]=Ki[10],qn[11]=Ki[11],qn[12]=Ki[12],qn[13]=Ki[13],qn[14]=Ki[14],qn[15]=Ki[15],qn)),Fn=on.dim1D,Kr.uniformMatrix4fv(bt.location,!1,Array.isArray(Fn)||Fn instanceof Float32Array?Fn:(Eo[0]=Fn[0],Eo[1]=Fn[1],Eo[2]=Fn[2],Eo[3]=Fn[3],Eo[4]=Fn[4],Eo[5]=Fn[5],Eo[6]=Fn[6],Eo[7]=Fn[7],Eo[8]=Fn[8],Eo[9]=Fn[9],Eo[10]=Fn[10],Eo[11]=Fn[11],Eo[12]=Fn[12],Eo[13]=Fn[13],Eo[14]=Fn[14],Eo[15]=Fn[15],Eo)),Li=on.drwLayer,Kr.uniform1f(Ot.location,Li),hi=on.hiA,Kr.uniformMatrix4fv(it.location,!1,Array.isArray(hi)||hi instanceof Float32Array?hi:(Ja[0]=hi[0],Ja[1]=hi[1],Ja[2]=hi[2],Ja[3]=hi[3],Ja[4]=hi[4],Ja[5]=hi[5],Ja[6]=hi[6],Ja[7]=hi[7],Ja[8]=hi[8],Ja[9]=hi[9],Ja[10]=hi[10],Ja[11]=hi[11],Ja[12]=hi[12],Ja[13]=hi[13],Ja[14]=hi[14],Ja[15]=hi[15],Ja)),Ci=on.hiB,Kr.uniformMatrix4fv(Ke.location,!1,Array.isArray(Ci)||Ci instanceof Float32Array?Ci:(lo[0]=Ci[0],lo[1]=Ci[1],lo[2]=Ci[2],lo[3]=Ci[3],lo[4]=Ci[4],lo[5]=Ci[5],lo[6]=Ci[6],lo[7]=Ci[7],lo[8]=Ci[8],lo[9]=Ci[9],lo[10]=Ci[10],lo[11]=Ci[11],lo[12]=Ci[12],lo[13]=Ci[13],lo[14]=Ci[14],lo[15]=Ci[15],lo)),Si=on.hiC,Kr.uniformMatrix4fv(zt.location,!1,Array.isArray(Si)||Si instanceof Float32Array?Si:(eo[0]=Si[0],eo[1]=Si[1],eo[2]=Si[2],eo[3]=Si[3],eo[4]=Si[4],eo[5]=Si[5],eo[6]=Si[6],eo[7]=Si[7],eo[8]=Si[8],eo[9]=Si[9],eo[10]=Si[10],eo[11]=Si[11],eo[12]=Si[12],eo[13]=Si[13],eo[14]=Si[14],eo[15]=Si[15],eo)),Gn=on.hiD,Kr.uniformMatrix4fv(Mt.location,!1,Array.isArray(Gn)||Gn instanceof Float32Array?Gn:(sa[0]=Gn[0],sa[1]=Gn[1],sa[2]=Gn[2],sa[3]=Gn[3],sa[4]=Gn[4],sa[5]=Gn[5],sa[6]=Gn[6],sa[7]=Gn[7],sa[8]=Gn[8],sa[9]=Gn[9],sa[10]=Gn[10],sa[11]=Gn[11],sa[12]=Gn[12],sa[13]=Gn[13],sa[14]=Gn[14],sa[15]=Gn[15],sa)),ta=on.loA,Kr.uniformMatrix4fv(kt.location,!1,Array.isArray(ta)||ta instanceof Float32Array?ta:(es[0]=ta[0],es[1]=ta[1],es[2]=ta[2],es[3]=ta[3],es[4]=ta[4],es[5]=ta[5],es[6]=ta[6],es[7]=ta[7],es[8]=ta[8],es[9]=ta[9],es[10]=ta[10],es[11]=ta[11],es[12]=ta[12],es[13]=ta[13],es[14]=ta[14],es[15]=ta[15],es)),ya=on.loB,Kr.uniformMatrix4fv($e.location,!1,Array.isArray(ya)||ya instanceof Float32Array?ya:(Na[0]=ya[0],Na[1]=ya[1],Na[2]=ya[2],Na[3]=ya[3],Na[4]=ya[4],Na[5]=ya[5],Na[6]=ya[6],Na[7]=ya[7],Na[8]=ya[8],Na[9]=ya[9],Na[10]=ya[10],Na[11]=ya[11],Na[12]=ya[12],Na[13]=ya[13],Na[14]=ya[14],Na[15]=ya[15],Na)),ia=on.loC,Kr.uniformMatrix4fv(De.location,!1,Array.isArray(ia)||ia instanceof Float32Array?ia:(en[0]=ia[0],en[1]=ia[1],en[2]=ia[2],en[3]=ia[3],en[4]=ia[4],en[5]=ia[5],en[6]=ia[6],en[7]=ia[7],en[8]=ia[8],en[9]=ia[9],en[10]=ia[10],en[11]=ia[11],en[12]=ia[12],en[13]=ia[13],en[14]=ia[14],en[15]=ia[15],en)),pa=on.loD,Kr.uniformMatrix4fv(Me.location,!1,Array.isArray(pa)||pa instanceof Float32Array?pa:(Pa[0]=pa[0],Pa[1]=pa[1],Pa[2]=pa[2],Pa[3]=pa[3],Pa[4]=pa[4],Pa[5]=pa[5],Pa[6]=pa[6],Pa[7]=pa[7],Pa[8]=pa[8],Pa[9]=pa[9],Pa[10]=pa[10],Pa[11]=pa[11],Pa[12]=pa[12],Pa[13]=pa[13],Pa[14]=pa[14],Pa[15]=pa[15],Pa)),va=on.maskHeight,Kr.uniform1f(oe.location,va),zn=on.maskTexture,zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),is=zn._texture,Kr.uniform1i(Ne.location,is.bind()),Kr.uniform1i(vt.location,lt.bind()),Cs=on.resolution,Ks=Cs[0],dl=Cs[1],Kr.uniform2f(We.location,Ks,dl),xl=on.viewBoxPos,Bl=xl[0],bl=xl[1],Kr.uniform2f(Ve.location,Bl,bl),eu=on.viewBoxSize,Zl=eu[0],Vl=eu[1],Kr.uniform2f(et.location,Zl,Vl),ja=Ta.elements,ja?Kr.bindBuffer(34963,ja.buffer.buffer):fo.currentVAO&&(ja=ys.getElements(fo.currentVAO.elements),ja&&Kr.bindBuffer(34963,ja.buffer.buffer)),ns=on.offset,Js=on.count,Js&&(ja?Kr.drawElements(1,Js,ja.type,ns<<(ja.type-5121>>1)):Kr.drawArrays(1,ns,Js),kn.dirty=!0,fo.setVAO(null),Ia.viewportWidth=fl,Ia.viewportHeight=as,kn.profile=ks,is.unbind(),lt.unbind())},scope:function(on,Oo,ko){var oo,za,ea,rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Dl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr,Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,nu,ru,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,le,ke,Ye,nt,ut,Ht,wt,lr,Cr,zr,ui,$r,Oi,un,pi,Pi,ji,pn,an,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Mf,pf,fc,Fe,Bt,tr,Qr,vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr,gi,dn,En,Zi,ga,Kn,hs,Ji,Ui,ro,na,Bn,In,Va,_s,ul,Qn,Mo,al,pl,Rl,Ou,vf,Ql,Ef,Cu,gf,xf,Cf,Gu,cf,mf,Fl,bf,cu,Y,D,J,B,K,ye,ne,Ee,Je,Ct,ur,Sr,nr,Qe,pt,Tt,Xt,ir,Kt,ar,Jt,Ft,Zt,Pt,Ar,Br,ci,Cn,Yi,yn,Xa,ca,Tn,Pn,Nn,xa,Zo,iu,yu,Fu,vu,zu,Ju,Vf,wd,Ad;oo=on.viewportX,_n.x=oo,za=on.viewportY,_n.y=za,ea=on.viewportWidth,_n.width=ea,rs=on.viewportHeight,_n.height=rs,$s=_n.x|0,us=_n.y|0,Rs="width"in _n?_n.width|0:Ia.framebufferWidth-$s,fl="height"in _n?_n.height|0:Ia.framebufferHeight-us,as=Ia.viewportWidth,Ia.viewportWidth=Rs,Ma=Ia.viewportHeight,Ia.viewportHeight=fl,Qs=jn[0],jn[0]=$s,ho=jn[1],jn[1]=us,gs=jn[2],jn[2]=Rs,Vo=jn[3],jn[3]=fl,Ro=Po[0],Po[0]=tt,Lo=Po[1],Po[1]=Lt,xs=Po[2],Po[2]=jt,ks=Po[3],Po[3]=or,Ea=fa.blend_enable,fa.blend_enable=yr,Jn=gn[0],gn[0]=vr,Bo=gn[1],gn[1]=Vt,rl=Ha[0],Ha[0]=Pe,Gs=Ha[1],Ha[1]=xe,bs=Ha[2],Ha[2]=Oe,zs=Ha[3],Ha[3]=ze,$o=fa.cull_enable,fa.cull_enable=Re,Aa=fa.cull_face,fa.cull_face=ht,os=fa.depth_enable,fa.depth_enable=st,_l=fa.depth_func,fa.depth_func=gt,Ss=fa.depth_mask,fa.depth_mask=xt,po=ao[0],ao[0]=pr,go=ao[1],ao[1]=br,ss=fa.dither,fa.dither=cr,qo=fa.lineWidth,fa.lineWidth=Er,zo=on.scissorX,Vn.x=zo,io=on.scissorY,Vn.y=io,Io=on.scissorWidth,Vn.width=Io,Ra=on.scissorHeight,Vn.height=Ra,vs=Vn.x|0,fs=Vn.y|0,cl="width"in Vn?Vn.width|0:Ia.framebufferWidth-vs,el="height"in Vn?Vn.height|0:Ia.framebufferHeight-fs,Hs=mo[0],mo[0]=vs,Do=mo[1],mo[1]=fs,tl=mo[2],mo[2]=cl,Fs=mo[3],mo[3]=el,hl=fa.scissor_enable,fa.scissor_enable=ii,Fa=kn.profile,kn.profile=!1,Ms=on.offset,jo=Ta.offset,Ta.offset=Ms,Ds=on.count,Is=Ta.count,Ta.count=Ds,Os=Ta.primitive,Ta.primitive=jr,St=mn[Vr],mn[Vr]=kr,Ut=on.resolution,xr=mn[Ai],mn[Ai]=Ut,dr=on.viewBoxPos,Rr=mn[Bi],mn[Bi]=dr,yi=on.viewBoxSize,Ti=mn[Di],mn[Di]=yi,ki=on.dim0A,Ki=mn[ln],mn[ln]=ki,Fn=on.dim1A,Li=mn[hn],mn[hn]=Fn,hi=on.dim0B,Ci=mn[qr],mn[qr]=hi,Si=on.dim1B,Gn=mn[_i],mn[_i]=Si,ta=on.dim0C,ya=mn[zi],mn[zi]=ta,ia=on.dim1C,pa=mn[Rt],mn[Rt]=ia,va=on.dim0D,zn=mn[_t],mn[_t]=va,is=on.dim1D,Cs=mn[qt],mn[qt]=is,Ks=on.loA,dl=mn[Nt],mn[Nt]=Ks,xl=on.hiA,Bl=mn[mr],mn[mr]=xl,bl=on.loB,eu=mn[Lr],mn[Lr]=bl,Zl=on.hiB,Vl=mn[Nr],mn[Nr]=Zl,ja=on.loC,ns=mn[Fr],mn[Fr]=ja,Js=on.hiC,cs=mn[Gr],mn[Gr]=Js,sl=on.loD,ll=mn[Hr],mn[Hr]=sl,nl=on.hiD,zl=mn[mi],mn[mi]=nl,Ml=on.contextColor,Dl=mn[Ei],mn[Ei]=Ml,Al=on.maskTexture,Ll=mn[Vi],mn[Vi]=Al,ms=on.drwLayer,Bs=mn[ti],mn[ti]=ms,Xl=on.maskHeight,Gl=mn[Qi],mn[Qi]=Xl,Nl=Yr.state,Yr.state=1,ue=Yr.x,Yr.x=0,w=Yr.y,Yr.y=0,q=Yr.z,Yr.z=0,Q=Yr.w,Yr.w=0,ee=Yr.buffer,Yr.buffer=y,fe=Yr.size,Yr.size=0,Ue=Yr.normalized,Yr.normalized=!1,at=Yr.type,Yr.type=y.dtype,yt=Yr.offset,Yr.offset=0,Dt=Yr.stride,Yr.stride=0,Qt=Yr.divisor,Yr.divisor=0,rr=oi.state,oi.state=1,Mr=oi.x,oi.x=0,Ur=oi.y,oi.y=0,he=oi.z,oi.z=0,Ae=oi.w,oi.w=0,qe=oi.buffer,oi.buffer=v,Ge=oi.size,oi.size=0,ft=oi.normalized,oi.normalized=!1,ot=oi.type,oi.type=v.dtype,mt=oi.offset,oi.offset=0,Gt=oi.stride,oi.stride=0,er=oi.divisor,oi.divisor=0,sr=Fi.state,Fi.state=1,wr=Fi.x,Fi.x=0,Ir=Fi.y,Fi.y=0,ri=Fi.z,Fi.z=0,si=Fi.w,Fi.w=0,Mi=Fi.buffer,Fi.buffer=M,cn=Fi.size,Fi.size=0,Zn=Fi.normalized,Fi.normalized=!1,Yn=Fi.type,Fi.type=M.dtype,Ua=Fi.offset,Fi.offset=0,Fo=Fi.stride,Fi.stride=0,vl=Fi.divisor,Fi.divisor=0,Us=rn.state,rn.state=1,ml=rn.x,rn.x=0,au=rn.y,rn.y=0,Sl=rn.z,rn.z=0,Yl=rn.w,rn.w=0,ql=rn.buffer,rn.buffer=L,ou=rn.size,rn.size=0,Pu=rn.normalized,rn.normalized=!1,nu=rn.type,rn.type=L.dtype,ru=rn.offset,rn.offset=0,Hu=rn.stride,rn.stride=0,$u=rn.divisor,rn.divisor=0,Ku=tn.state,tn.state=1,Wu=tn.x,tn.x=0,ju=tn.y,tn.y=0,sf=tn.z,tn.z=0,_f=tn.w,tn.w=0,Qu=tn.buffer,tn.buffer=k,ef=tn.size,tn.size=0,Z=tn.normalized,tn.normalized=!1,le=tn.type,tn.type=k.dtype,ke=tn.offset,tn.offset=0,Ye=tn.stride,tn.stride=0,nt=tn.divisor,tn.divisor=0,ut=Ri.state,Ri.state=1,Ht=Ri.x,Ri.x=0,wt=Ri.y,Ri.y=0,lr=Ri.z,Ri.z=0,Cr=Ri.w,Ri.w=0,zr=Ri.buffer,Ri.buffer=m,ui=Ri.size,Ri.size=0,$r=Ri.normalized,Ri.normalized=!1,Oi=Ri.type,Ri.type=m.dtype,un=Ri.offset,Ri.offset=0,pi=Ri.stride,Ri.stride=0,Pi=Ri.divisor,Ri.divisor=0,ji=Ii.state,Ii.state=1,pn=Ii.x,Ii.x=0,an=Ii.y,Ii.y=0,bi=Ii.z,Ii.z=0,xo=Ii.w,Ii.w=0,no=Ii.buffer,Ii.buffer=E,Xo=Ii.size,Ii.size=0,js=Ii.normalized,Ii.normalized=!1,El=Ii.type,Ii.type=E.dtype,Pl=Ii.offset,Ii.offset=0,pu=Ii.stride,Ii.stride=0,Il=Ii.divisor,Ii.divisor=0,fu=xn.state,xn.state=1,Xu=xn.x,xn.x=0,Vu=xn.y,xn.y=0,tf=xn.z,xn.z=0,ds=xn.w,xn.w=0,Wl=xn.buffer,xn.buffer=F,Au=xn.size,xn.size=0,Tu=xn.normalized,xn.normalized=!1,lf=xn.type,xn.type=F.dtype,hf=xn.offset,xn.offset=0,Mf=xn.stride,xn.stride=0,pf=xn.divisor,xn.divisor=0,fc=xi.state,xi.state=1,Fe=xi.x,xi.x=0,Bt=xi.y,xi.y=0,tr=xi.z,xi.z=0,Qr=xi.w,xi.w=0,vi=xi.buffer,xi.buffer=G,fi=xi.size,xi.size=0,di=xi.normalized,xi.normalized=!1,nn=xi.type,xi.type=G.dtype,On=xi.offset,xi.offset=0,Ln=xi.stride,xi.stride=0,wn=xi.divisor,xi.divisor=0,Ls=Xr.state,Xr.state=1,ua=Xr.x,Xr.x=0,Hn=Xr.y,Xr.y=0,Ni=Xr.z,Xr.z=0,Wr=Xr.w,Xr.w=0,gi=Xr.buffer,Xr.buffer=W,dn=Xr.size,Xr.size=0,En=Xr.normalized,Xr.normalized=!1,Zi=Xr.type,Xr.type=W.dtype,ga=Xr.offset,Xr.offset=0,Kn=Xr.stride,Xr.stride=0,hs=Xr.divisor,Xr.divisor=0,Ji=dt.state,dt.state=1,Ui=dt.x,dt.x=0,ro=dt.y,dt.y=0,na=dt.z,dt.z=0,Bn=dt.w,dt.w=0,In=dt.buffer,dt.buffer=H,Va=dt.size,dt.size=0,_s=dt.normalized,dt.normalized=!1,ul=dt.type,dt.type=H.dtype,Qn=dt.offset,dt.offset=0,Mo=dt.stride,dt.stride=0,al=dt.divisor,dt.divisor=0,pl=$t.state,$t.state=1,Rl=$t.x,$t.x=0,Ou=$t.y,$t.y=0,vf=$t.z,$t.z=0,Ql=$t.w,$t.w=0,Ef=$t.buffer,$t.buffer=ae,Cu=$t.size,$t.size=0,gf=$t.normalized,$t.normalized=!1,xf=$t.type,$t.type=ae.dtype,Cf=$t.offset,$t.offset=0,Gu=$t.stride,$t.stride=0,cf=$t.divisor,$t.divisor=0,mf=fr.state,fr.state=1,Fl=fr.x,fr.x=0,bf=fr.y,fr.y=0,cu=fr.z,fr.z=0,Y=fr.w,fr.w=0,D=fr.buffer,fr.buffer=Le,J=fr.size,fr.size=0,B=fr.normalized,fr.normalized=!1,K=fr.type,fr.type=Le.dtype,ye=fr.offset,fr.offset=0,ne=fr.stride,fr.stride=0,Ee=fr.divisor,fr.divisor=0,Je=gr.state,gr.state=1,Ct=gr.x,gr.x=0,ur=gr.y,gr.y=0,Sr=gr.z,gr.z=0,nr=gr.w,gr.w=0,Qe=gr.buffer,gr.buffer=de,pt=gr.size,gr.size=0,Tt=gr.normalized,gr.normalized=!1,Xt=gr.type,gr.type=de.dtype,ir=gr.offset,gr.offset=0,Kt=gr.stride,gr.stride=0,ar=gr.divisor,gr.divisor=0,Jt=Zr.state,Zr.state=1,Ft=Zr.x,Zr.x=0,Zt=Zr.y,Zr.y=0,Pt=Zr.z,Zr.z=0,Ar=Zr.w,Zr.w=0,Br=Zr.buffer,Zr.buffer=Se,ci=Zr.size,Zr.size=0,Cn=Zr.normalized,Zr.normalized=!1,Yi=Zr.type,Zr.type=Se.dtype,yn=Zr.offset,Zr.offset=0,Xa=Zr.stride,Zr.stride=0,ca=Zr.divisor,Zr.divisor=0,Tn=wi.state,wi.state=1,Pn=wi.x,wi.x=0,Nn=wi.y,wi.y=0,xa=wi.z,wi.z=0,Zo=wi.w,wi.w=0,iu=wi.buffer,wi.buffer=d,yu=wi.size,wi.size=0,Fu=wi.normalized,wi.normalized=!1,vu=wi.type,wi.type=d.dtype,zu=wi.offset,wi.offset=0,Ju=wi.stride,wi.stride=0,Vf=wi.divisor,wi.divisor=0,wd=ls.vert,ls.vert=$i,Ad=ls.frag,ls.frag=ni,kn.dirty=!0,Oo(Ia,on,ko),Ia.viewportWidth=as,Ia.viewportHeight=Ma,jn[0]=Qs,jn[1]=ho,jn[2]=gs,jn[3]=Vo,Po[0]=Ro,Po[1]=Lo,Po[2]=xs,Po[3]=ks,fa.blend_enable=Ea,gn[0]=Jn,gn[1]=Bo,Ha[0]=rl,Ha[1]=Gs,Ha[2]=bs,Ha[3]=zs,fa.cull_enable=$o,fa.cull_face=Aa,fa.depth_enable=os,fa.depth_func=_l,fa.depth_mask=Ss,ao[0]=po,ao[1]=go,fa.dither=ss,fa.lineWidth=qo,mo[0]=Hs,mo[1]=Do,mo[2]=tl,mo[3]=Fs,fa.scissor_enable=hl,kn.profile=Fa,Ta.offset=jo,Ta.count=Is,Ta.primitive=Os,mn[Vr]=St,mn[Ai]=xr,mn[Bi]=Rr,mn[Di]=Ti,mn[ln]=Ki,mn[hn]=Li,mn[qr]=Ci,mn[_i]=Gn,mn[zi]=ya,mn[Rt]=pa,mn[_t]=zn,mn[qt]=Cs,mn[Nt]=dl,mn[mr]=Bl,mn[Lr]=eu,mn[Nr]=Vl,mn[Fr]=ns,mn[Gr]=cs,mn[Hr]=ll,mn[mi]=zl,mn[Ei]=Dl,mn[Vi]=Ll,mn[ti]=Bs,mn[Qi]=Gl,Yr.state=Nl,Yr.x=ue,Yr.y=w,Yr.z=q,Yr.w=Q,Yr.buffer=ee,Yr.size=fe,Yr.normalized=Ue,Yr.type=at,Yr.offset=yt,Yr.stride=Dt,Yr.divisor=Qt,oi.state=rr,oi.x=Mr,oi.y=Ur,oi.z=he,oi.w=Ae,oi.buffer=qe,oi.size=Ge,oi.normalized=ft,oi.type=ot,oi.offset=mt,oi.stride=Gt,oi.divisor=er,Fi.state=sr,Fi.x=wr,Fi.y=Ir,Fi.z=ri,Fi.w=si,Fi.buffer=Mi,Fi.size=cn,Fi.normalized=Zn,Fi.type=Yn,Fi.offset=Ua,Fi.stride=Fo,Fi.divisor=vl,rn.state=Us,rn.x=ml,rn.y=au,rn.z=Sl,rn.w=Yl,rn.buffer=ql,rn.size=ou,rn.normalized=Pu,rn.type=nu,rn.offset=ru,rn.stride=Hu,rn.divisor=$u,tn.state=Ku,tn.x=Wu,tn.y=ju,tn.z=sf,tn.w=_f,tn.buffer=Qu,tn.size=ef,tn.normalized=Z,tn.type=le,tn.offset=ke,tn.stride=Ye,tn.divisor=nt,Ri.state=ut,Ri.x=Ht,Ri.y=wt,Ri.z=lr,Ri.w=Cr,Ri.buffer=zr,Ri.size=ui,Ri.normalized=$r,Ri.type=Oi,Ri.offset=un,Ri.stride=pi,Ri.divisor=Pi,Ii.state=ji,Ii.x=pn,Ii.y=an,Ii.z=bi,Ii.w=xo,Ii.buffer=no,Ii.size=Xo,Ii.normalized=js,Ii.type=El,Ii.offset=Pl,Ii.stride=pu,Ii.divisor=Il,xn.state=fu,xn.x=Xu,xn.y=Vu,xn.z=tf,xn.w=ds,xn.buffer=Wl,xn.size=Au,xn.normalized=Tu,xn.type=lf,xn.offset=hf,xn.stride=Mf,xn.divisor=pf,xi.state=fc,xi.x=Fe,xi.y=Bt,xi.z=tr,xi.w=Qr,xi.buffer=vi,xi.size=fi,xi.normalized=di,xi.type=nn,xi.offset=On,xi.stride=Ln,xi.divisor=wn,Xr.state=Ls,Xr.x=ua,Xr.y=Hn,Xr.z=Ni,Xr.w=Wr,Xr.buffer=gi,Xr.size=dn,Xr.normalized=En,Xr.type=Zi,Xr.offset=ga,Xr.stride=Kn,Xr.divisor=hs,dt.state=Ji,dt.x=Ui,dt.y=ro,dt.z=na,dt.w=Bn,dt.buffer=In,dt.size=Va,dt.normalized=_s,dt.type=ul,dt.offset=Qn,dt.stride=Mo,dt.divisor=al,$t.state=pl,$t.x=Rl,$t.y=Ou,$t.z=vf,$t.w=Ql,$t.buffer=Ef,$t.size=Cu,$t.normalized=gf,$t.type=xf,$t.offset=Cf,$t.stride=Gu,$t.divisor=cf,fr.state=mf,fr.x=Fl,fr.y=bf,fr.z=cu,fr.w=Y,fr.buffer=D,fr.size=J,fr.normalized=B,fr.type=K,fr.offset=ye,fr.stride=ne,fr.divisor=Ee,gr.state=Je,gr.x=Ct,gr.y=ur,gr.z=Sr,gr.w=nr,gr.buffer=Qe,gr.size=pt,gr.normalized=Tt,gr.type=Xt,gr.offset=ir,gr.stride=Kt,gr.divisor=ar,Zr.state=Jt,Zr.x=Ft,Zr.y=Zt,Zr.z=Pt,Zr.w=Ar,Zr.buffer=Br,Zr.size=ci,Zr.normalized=Cn,Zr.type=Yi,Zr.offset=yn,Zr.stride=Xa,Zr.divisor=ca,wi.state=Tn,wi.x=Pn,wi.y=Nn,wi.z=xa,wi.w=Zo,wi.buffer=iu,wi.size=yu,wi.normalized=Fu,wi.type=vu,wi.offset=zu,wi.stride=Ju,wi.divisor=Vf,ls.vert=wd,ls.frag=Ad,kn.dirty=!0},batch:function(on,Oo){var ko,oo,za,ea;if(ko=ra.next,ko!==ra.cur&&(ko?Kr.bindFramebuffer(36160,ko.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=ko),kn.dirty){var rs,$s,us,Rs,fl,as,Ma,Qs,ho,gs,Vo,Ro,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os;rs=Ko[0],$s=Ko[1],us=Ko[2],Rs=Ko[3],(rs!==Qo[0]||$s!==Qo[1]||us!==Qo[2]||Rs!==Qo[3])&&(Kr.colorMask(rs,$s,us,Rs),Qo[0]=rs,Qo[1]=$s,Qo[2]=us,Qo[3]=Rs),fl=fa.frontFace,fl!==kn.frontFace&&(Kr.frontFace(fl),kn.frontFace=fl),as=fa.polygonOffset_enable,as!==kn.polygonOffset_enable&&(as?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=as),Ma=Hi[0],Qs=Hi[1],(Ma!==Sa[0]||Qs!==Sa[1])&&(Kr.polygonOffset(Ma,Qs),Sa[0]=Ma,Sa[1]=Qs),ho=fa.sample_alpha,ho!==kn.sample_alpha&&(ho?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=ho),gs=fa.sample_enable,gs!==kn.sample_enable&&(gs?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=gs),Vo=Qa[0],Ro=Qa[1],(Vo!==vn[0]||Ro!==vn[1])&&(Kr.sampleCoverage(Vo,Ro),vn[0]=Vo,vn[1]=Ro),Lo=fa.stencil_enable,Lo!==kn.stencil_enable&&(Lo?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Lo),xs=fa.stencil_mask,xs!==kn.stencil_mask&&(Kr.stencilMask(xs),kn.stencil_mask=xs),ks=da[0],Ea=da[1],Jn=da[2],(ks!==la[0]||Ea!==la[1]||Jn!==la[2])&&(Kr.stencilFunc(ks,Ea,Jn),la[0]=ks,la[1]=Ea,la[2]=Jn),Bo=vo[0],rl=vo[1],Gs=vo[2],bs=vo[3],(Bo!==As[0]||rl!==As[1]||Gs!==As[2]||bs!==As[3])&&(Kr.stencilOpSeparate(Bo,rl,Gs,bs),As[0]=Bo,As[1]=rl,As[2]=Gs,As[3]=bs),zs=ps[0],$o=ps[1],Aa=ps[2],os=ps[3],(zs!==co[0]||$o!==co[1]||Aa!==co[2]||os!==co[3])&&(Kr.stencilOpSeparate(zs,$o,Aa,os),co[0]=zs,co[1]=$o,co[2]=Aa,co[3]=os)}Kr.blendColor(0,0,0,0),Wi[0]=0,Wi[1]=0,Wi[2]=0,Wi[3]=0,Xi?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=Xi,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,aa?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=aa,Kr.cullFace(Mn),kn.cull_face=Mn,Un?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=Un,Kr.depthFunc(Ga),kn.depth_func=Ga,Kr.depthMask(ma),kn.depth_mask=ma,Kr.depthRange(0,1),Oa[0]=0,Oa[1]=1,oa?Kr.enable(3024):Kr.disable(3024),kn.dither=oa,Kr.lineWidth(ka),kn.lineWidth=ka,so?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=so,oo=kn.profile,kn.profile=!1,Kr.useProgram(h.program);var _l,Ss,po,go,ss,qo,zo,io,Io,Ra,vs,fs,cl,el,Hs,Do,tl,Fs,hl,Fa,Ms,jo,Ds,Is,Os,St,Ut,xr,dr,Rr,yi,Ti,ki;for(fo.setVAO(null),_l=p.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==d.dtype||Ss.size!==4||Ss.buffer!==d||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(_l,4,d.dtype,!1,0,0),Ss.type=d.dtype,Ss.size=4,Ss.buffer=d,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=b.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==y.dtype||go.size!==4||go.buffer!==y||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,y.buffer),Kr.vertexAttribPointer(po,4,y.dtype,!1,0,0),go.type=y.dtype,go.size=4,go.buffer=y,go.normalized=!1,go.offset=0,go.stride=0),ss=C.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==v.dtype||qo.size!==4||qo.buffer!==v||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(ss,4,v.dtype,!1,0,0),qo.type=v.dtype,qo.size=4,qo.buffer=v,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=A.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==M.dtype||io.size!==4||io.buffer!==M||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,M.buffer),Kr.vertexAttribPointer(zo,4,M.dtype,!1,0,0),io.type=M.dtype,io.size=4,io.buffer=M,io.normalized=!1,io.offset=0,io.stride=0),Io=x.location,Ra=$a[Io],Ra.buffer||Kr.enableVertexAttribArray(Io),(Ra.type!==L.dtype||Ra.size!==4||Ra.buffer!==L||Ra.normalized!==!1||Ra.offset!==0||Ra.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Io,4,L.dtype,!1,0,0),Ra.type=L.dtype,Ra.size=4,Ra.buffer=L,Ra.normalized=!1,Ra.offset=0,Ra.stride=0),vs=S.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==k.dtype||fs.size!==4||fs.buffer!==k||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,k.buffer),Kr.vertexAttribPointer(vs,4,k.dtype,!1,0,0),fs.type=k.dtype,fs.size=4,fs.buffer=k,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=P.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==m.dtype||el.size!==4||el.buffer!==m||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(cl,4,m.dtype,!1,0,0),el.type=m.dtype,el.size=4,el.buffer=m,el.normalized=!1,el.offset=0,el.stride=0),Hs=O.location,Do=$a[Hs],Do.buffer||Kr.enableVertexAttribArray(Hs),(Do.type!==E.dtype||Do.size!==4||Do.buffer!==E||Do.normalized!==!1||Do.offset!==0||Do.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(Hs,4,E.dtype,!1,0,0),Do.type=E.dtype,Do.size=4,Do.buffer=E,Do.normalized=!1,Do.offset=0,Do.stride=0),tl=U.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==F.dtype||Fs.size!==4||Fs.buffer!==F||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(tl,4,F.dtype,!1,0,0),Fs.type=F.dtype,Fs.size=4,Fs.buffer=F,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=j.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==G.dtype||Fa.size!==4||Fa.buffer!==G||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(hl,4,G.dtype,!1,0,0),Fa.type=G.dtype,Fa.size=4,Fa.buffer=G,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=N.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==W.dtype||jo.size!==4||jo.buffer!==W||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(Ms,4,W.dtype,!1,0,0),jo.type=W.dtype,jo.size=4,jo.buffer=W,jo.normalized=!1,jo.offset=0,jo.stride=0),Ds=re.location,Is=$a[Ds],Is.buffer||Kr.enableVertexAttribArray(Ds),(Is.type!==H.dtype||Is.size!==4||Is.buffer!==H||Is.normalized!==!1||Is.offset!==0||Is.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(Ds,4,H.dtype,!1,0,0),Is.type=H.dtype,Is.size=4,Is.buffer=H,Is.normalized=!1,Is.offset=0,Is.stride=0),Os=me.location,St=$a[Os],St.buffer||Kr.enableVertexAttribArray(Os),(St.type!==ae.dtype||St.size!==4||St.buffer!==ae||St.normalized!==!1||St.offset!==0||St.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Os,4,ae.dtype,!1,0,0),St.type=ae.dtype,St.size=4,St.buffer=ae,St.normalized=!1,St.offset=0,St.stride=0),Ut=Ce.location,xr=$a[Ut],xr.buffer||Kr.enableVertexAttribArray(Ut),(xr.type!==Le.dtype||xr.size!==4||xr.buffer!==Le||xr.normalized!==!1||xr.offset!==0||xr.stride!==0)&&(Kr.bindBuffer(34962,Le.buffer),Kr.vertexAttribPointer(Ut,4,Le.dtype,!1,0,0),xr.type=Le.dtype,xr.size=4,xr.buffer=Le,xr.normalized=!1,xr.offset=0,xr.stride=0),dr=te.location,Rr=$a[dr],Rr.buffer||Kr.enableVertexAttribArray(dr),(Rr.type!==de.dtype||Rr.size!==4||Rr.buffer!==de||Rr.normalized!==!1||Rr.offset!==0||Rr.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(dr,4,de.dtype,!1,0,0),Rr.type=de.dtype,Rr.size=4,Rr.buffer=de,Rr.normalized=!1,Rr.offset=0,Rr.stride=0),yi=Te.location,Ti=$a[yi],Ti.buffer||Kr.enableVertexAttribArray(yi),(Ti.type!==Se.dtype||Ti.size!==4||Ti.buffer!==Se||Ti.normalized!==!1||Ti.offset!==0||Ti.stride!==0)&&(Kr.bindBuffer(34962,Se.buffer),Kr.vertexAttribPointer(yi,4,Se.dtype,!1,0,0),Ti.type=Se.dtype,Ti.size=4,Ti.buffer=Se,Ti.normalized=!1,Ti.offset=0,Ti.stride=0),Kr.uniform1i(vt.location,lt.bind()),ki=Ta.elements,ki?Kr.bindBuffer(34963,ki.buffer.buffer):fo.currentVAO&&(ki=ys.getElements(fo.currentVAO.elements),ki&&Kr.bindBuffer(34963,ki.buffer.buffer)),za=0;za>1)):Kr.drawArrays(1,wr,Ir),Ia.viewportWidth=ya,Ia.viewportHeight=ia,yt.unbind())}lt.unbind(),kn.dirty=!0,fo.setVAO(null),kn.profile=oo}}}});var BVe=we((s2r,OVe)=>{"use strict";var SWt=LVe(),MWt=zVe(),EWt=DVe(),kWt=FVe();OVe.exports={"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":SWt,"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":MWt,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:EWt,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":kWt}});var UVe=we((l2r,NVe)=>{"use strict";var qVe=aJ(),CWt=BVe();Object.assign(qVe.reglPrecompiled,CWt);NVe.exports=qVe});var HVe=we((u2r,GVe)=>{"use strict";var VVe=kVe();VVe.plot=UVe();GVe.exports=VVe});var oJ=we((f2r,YVe)=>{"use strict";var jVe=Su().extendFlat,LWt=Gf(),WVe=gc(),PWt=nc(),{hovertemplateAttrs:XVe,templatefallbackAttrs:ZVe}=Ff(),zWt=zc().attributes,IWt=jVe({editType:"calc"},PWt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:XVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:ZVe({editType:"plot"})});YVe.exports={domain:zWt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:jVe({},LWt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:XVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:ZVe({editType:"plot"}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:WVe({editType:"calc"}),tickfont:WVe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:IWt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var $Ve=we((c2r,JVe)=>{"use strict";var ES=ei(),DWt=yp().hasColorscale,RWt=nd(),FWt=zc().defaults,OWt=$d(),KVe=oJ(),BWt=H9(),qWt=Jd().isTypedArraySpec;function NWt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate"),i("line.hovertemplatefallback");var a=i("line.color",n.colorway[0]);if(DWt(e,"line")&&ES.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),RWt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function UWt(e,t){function r(l,f){return ES.coerce(e,t,KVe.dimensions,l,f)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=ES.isArrayOrTypedArray(a)&&a.length>0||qWt(a),s;o&&(s="array");var u=r("categoryorder",s);u==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&u==="array"&&(t.categoryorder="trace")}}JVe.exports=function(t,r,n,i){function a(l,f){return ES.coerce(t,r,KVe,l,f)}var o=OWt(t,r,{name:"dimensions",handleItemDefaults:UWt}),s=NWt(t,r,n,i,a);FWt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),BWt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var u=i.font;ES.coerceFont(a,"labelfont",u,{overrideDflt:{size:Math.round(u.size)}}),ES.coerceFont(a,"tickfont",u,{autoShadowDflt:!0,overrideDflt:{size:Math.round(u.size/1.2)}})}});var eGe=we((h2r,QVe)=>{"use strict";var VWt=ng().wrap,GWt=yp().hasColorscale,HWt=gp(),WWt=dq(),jWt=Mu(),Hk=ei(),XWt=ku();QVe.exports=function(t,r){var n=Hk.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(m){var P;if(m.categoryorder==="trace")P=null;else if(m.categoryorder==="array")P=m.categoryarray;else{P=WWt(m.values);for(var E=!0,O=0;O=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var uGe=we((d2r,lGe)=>{"use strict";var Uf=Jl(),njt=(W2(),mb(H2)).interpolateNumber,ajt=Yz(),Xk=Vc(),kx=ei(),Wk=kx.strTranslate,tGe=Mu(),sJ=hd(),ojt=Wf();function sjt(e,t,r,n){var i=t._context.staticPlot,a=e.map(wjt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,m1),u=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(C){return Wk(C.x,C.y)}),u.append("g").attr("class","paths");var l=s.select("g.paths"),f=l.selectAll("path.path").data(function(C){return C.paths},m1);f.attr("fill",function(C){return C.model.color});var c=f.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(C){return C.model.color}).attr("fill-opacity",0);fJ(c),f.attr("d",function(C){return C.svgD}),c.empty()||f.sort(lJ),f.exit().remove(),f.on("mouseover",ljt).on("mouseout",ujt).on("click",fjt),u.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(C){return C.dimensions},m1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(C){return Wk(C.x,0)}),d.exit().remove();var p=d.selectAll("g.category").data(function(C){return C.categories},m1),y=p.enter().append("g").attr("class","category");p.attr("transform",function(C){return Wk(0,C.y)}),y.append("rect").attr("class","catrect").attr("pointer-events","none"),p.select("rect.catrect").attr("fill","none").attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),iGe(y);var b=p.selectAll("rect.bandrect").data(function(C){return C.bands},m1);b.each(function(){kx.raiseToTop(this)}),b.attr("fill",function(C){return C.color});var v=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(C){return C.color}).attr("fill-opacity",0);b.attr("fill",function(C){return C.color}).attr("width",function(C){return C.width}).attr("height",function(C){return C.height}).attr("y",function(C){return C.y}).attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":C.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),hJ(v),b.exit().remove(),y.append("text").attr("class","catlabel").attr("pointer-events","none"),p.select("text.catlabel").attr("text-anchor",function(C){return jk(C)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(C){return jk(C)?C.width+5:-5}).attr("y",function(C){return C.height/2}).text(function(C){return C.model.categoryLabel}).each(function(C){tGe.font(Uf.select(this),C.parcatsViewModel.categorylabelfont),ojt.convertToTspans(Uf.select(this),t)}),y.append("text").attr("class","dimlabel"),p.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(C){return C.width/2}).attr("y",-5).text(function(C,M){return M===0?C.parcatsViewModel.model.dimensions[C.model.dimensionInd].dimensionLabel:null}).each(function(C){tGe.font(Uf.select(this),C.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",yjt).on("mouseout",gjt),p.exit().remove(),d.call(Uf.behavior.drag().origin(function(C){return{x:C.x,y:0}}).on("dragstart",_jt).on("drag",xjt).on("dragend",bjt)),s.each(function(C){C.traceSelection=Uf.select(this),C.pathSelection=Uf.select(this).selectAll("g.paths").selectAll("path.path"),C.dimensionSelection=Uf.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}lGe.exports=function(e,t,r,n){sjt(r,e,n,t)};function m1(e){return e.key}function jk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function lJ(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),x=Uf.mouse(i)[0];Xk.loneHover({trace:a,x:p-s.left+u.left,y:y-s.top+u.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:x1&&l.displayInd===u.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var p=s.model.count,y=s.model.categoryLabel,b=p/s.parcatsViewModel.model.count,v={countLabel:p,categoryLabel:y,probabilityLabel:b.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",v.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&C.push(["P("+v.categoryLabel+"):",v.probabilityLabel].join(" "));var M=C.join("
");return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:M,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:v,eventData:[{data:f._input,fullData:f,count:p,category:y,probability:b}]}}function vjt(e,t,r){var n=[];return Uf.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(nGe(e,t,i))}),n}function mjt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Uf.select(r).datum(),s=o.categoryViewModel,u=s.parcatsViewModel,l=u.model.dimensions[s.model.dimensionInd],f=u.trace,c=a.y+a.height/2,h,d;u.dimensions.length>1&&l.displayInd===u.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var p=s.model.categoryLabel,y=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var v=s.model.count,C=0;u.pathSelection.each(function(P){P.model.color===o.color&&(C+=P.model.count)});var M=b/y,A=b/C,L=b/v,x={countLabel:b,categoryLabel:p,probabilityLabel:M.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(k.push("P(color \u2229 "+p+"): "+x.probabilityLabel),k.push("P("+p+" | color): "+A.toFixed(3)),k.push("P(color | "+p+"): "+L.toFixed(3)));var S=k.join("
"),m=sJ.mostReadable(o.color,["black","white"]);return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:S,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:m,fontSize:10,idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:x,eventData:[{data:f._input,fullData:f,category:p,count:y,probability:M,categorycount:v,colorcount:C,bandcolorcount:b}]}}function yjt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Uf.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(pjt(o),pJ(o,"plotly_hover",Uf.event)):(djt(o),dJ(o,"plotly_hover",Uf.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=nGe(r,i,o):a==="color"?s=mjt(r,i,o):a==="dimension"&&(s=vjt(r,i,o)),s&&Xk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function gjt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(fJ(t.pathSelection),iGe(t.dimensionSelection.selectAll("g.category")),hJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Xk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(lJ),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?pJ(n,"plotly_unhover",Uf.event):dJ(n,"plotly_unhover",Uf.event)}}function _jt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Uf.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Uf.mouse(this)[0],n=Uf.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,kx.raiseToTop(this.parentNode),Uf.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yf.y+f.height/2&&(a.model.displayInd=f.model.displayInd,f.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Uf.event.x;var c=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];c!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}mJ(e.parcatsViewModel),vJ(e.parcatsViewModel),sGe(e.parcatsViewModel),oGe(e.parcatsViewModel)}}function bjt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Uf.select(this).selectAll("text").attr("font-weight","normal");var t={},r=aGe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var p=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+p+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),u=s.map(function(h){return h.categoryValue}),l=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[u],t["dimensions["+e.model.containerInd+"].ticktext"]=[l],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?pJ(e.potentialClickBand,"plotly_click",Uf.event.sourceEvent):dJ(e.potentialClickBand,"plotly_click",Uf.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var f=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];f.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,mJ(e.parcatsViewModel),vJ(e.parcatsViewModel);var c=Uf.transition().duration(300).ease("cubic-in-out");c.each(function(){sGe(e.parcatsViewModel,!0),oGe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&ajt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function aGe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;u--)l+="C"+o[u]+","+(t[u+1]+n)+" "+a[u]+","+(t[u]+n)+" "+(e[u]+r[u])+","+(t[u]+n),l+="l-"+r[u]+",0 ";return l+="Z",l}function vJ(e){var t=e.dimensions,r=e.model,n=t.map(function(F){return F.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(F){return F.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(F){return F.displayInd}),o=e.dimensions.map(function(F){return F.model.dimensionInd}),s=t.map(function(F){return F.x}),u=t.map(function(F){return F.width}),l=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&l.push(r.paths[f]);function c(F){var U=F.categoryInds.map(function(j,W){return i[W][j]}),G=o.map(function(j){return U[j]});return G}l.sort(function(F,U){var G=c(F),j=c(U);return e.sortpaths==="backward"&&(G.reverse(),j.reverse()),G.push(F.valueInds[0]),j.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(F.rawColor),j.unshift(U.rawColor)),Gj?1:0});for(var h=new Array(l.length),d=t[0].model.count,p=t[0].categories.map(function(F){return F.height}).reduce(function(F,U){return F+U}),y=0;y0?v=p*(b.count/d):v=0;for(var C=new Array(n.length),M=0;M1?o=(e.width-2*r-n)/(i-1):o=0,s=r,u=s+o*a;var l=[],f=e.model.maxCats,c=t.categories.length,h=8,d=t.count,p=e.height-h*(f-1),y,b,v,C,M,A=(f-c)*h/2,L=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(L.sort(function(x,k){return x.displayInd-k.displayInd}),M=0;M0?y=b.count/d*p:y=0,v={key:b.valueInds[0],model:b,width:n,height:y,y:b.dragY!==null?b.dragY:A,bands:[],parcatsViewModel:e},A=A+y+h,l.push(v);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:u,y:0,width:n,model:t,categories:l,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var yJ=we((p2r,fGe)=>{"use strict";var Tjt=uGe();fGe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;Tjt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var hGe=we(s8=>{"use strict";var Sjt=Dd().getModuleCalcData,Mjt=yJ(),cGe="parcats";s8.name=cGe;s8.plot=function(e,t,r,n){var i=Sjt(e.calcdata,cGe);if(i.length){var a=i[0];Mjt(e,a,r,n)}};s8.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var pGe=we((m2r,dGe)=>{"use strict";dGe.exports={attributes:oJ(),supplyDefaults:$Ve(),calc:eGe(),plot:yJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:hGe(),categories:["noOpacity"],meta:{}}});var mGe=we((y2r,vGe)=>{"use strict";vGe.exports=pGe()});var y1=we((g2r,AGe)=>{"use strict";var Ejt=t_(),yGe="1.13.4",bGe='\xA9 OpenStreetMap contributors',gGe=['\xA9 Carto',bGe].join(" "),_Ge=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),kjt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),wGe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:bGe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:gGe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:gGe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:_Ge,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:_Ge,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:kjt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},xGe=Ejt(wGe);AGe.exports={requiredVersion:yGe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:wGe,styleValuesNonMapbox:xGe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+yGe+"."].join(` +`),gi;if(Bt&&(gi=Fs(Wr),Bt[gi]))return Bt[gi].apply(null,vi);var dn=Function.apply(null,Qr.concat(Wr));return Bt&&(Bt[gi]=dn),dn.apply(null,vi)}return{global:wn,link:di,block:nn,proc:ua,scope:On,cond:Ln,compile:Hn}}var ta="xyzw".split(""),ya=5121,ia=1,pa=2,va=0,zn=1,is=2,Cs=3,Ks=4,dl=5,xl=6,Bl="dither",bl="blend.enable",eu="blend.color",Zl="blend.equation",Vl="blend.func",ja="depth.enable",ns="depth.func",Js="depth.range",cs="depth.mask",sl="colorMask",ll="cull.enable",nl="cull.face",zl="frontFace",Ml="lineWidth",Rl="polygonOffset.enable",Al="polygonOffset.offset",Ll="sample.alpha",ms="sample.enable",Bs="sample.coverage",Xl="stencil.enable",Gl="stencil.mask",Nl="stencil.func",ue="stencil.opFront",w="stencil.opBack",q="scissor.enable",Q="scissor.box",ee="viewport",fe="profile",Ue="framebuffer",at="vert",yt="frag",Rt="elements",Qt="primitive",rr="count",Mr="offset",Ur="instances",he="vao",Ae="Width",qe="Height",Ge=Ue+Ae,ft=Ue+qe,ot=ee+Ae,mt=ee+qe,Gt="drawingBuffer",er=Gt+Ae,sr=Gt+qe,wr=[Vl,Zl,Nl,ue,w,Bs,ee,Q,Al],Ir=34962,ri=34963,si=2884,Mi=3042,cn=3024,Zn=2960,Yn=2929,Ua=3089,Fo=32823,vl=32926,Us=32928,ml=5126,au=35664,Sl=35665,Yl=35666,ql=5124,ou=35667,Pu=35668,nu=35669,ru=35670,Hu=35671,$u=35672,Ku=35673,Wu=35674,ju=35675,sf=35676,_f=35678,Qu=35680,ef=4,Z=1028,le=1029,Le=2304,Ye=2305,nt=32775,ut=32776,Ht=519,wt=7680,lr=0,Cr=1,zr=32774,ui=513,$r=36160,Oi=36064,un={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},pi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Pi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ji={cw:Le,ccw:Ye};function pn(Fe){return Array.isArray(Fe)||vr(Fe)||Vt(Fe)}function an(Fe){return Fe.sort(function(Bt,tr){return Bt===ee?-1:tr===ee?1:Bt=1,Qr>=2,Bt)}else if(tr===Ks){var vi=Fe.data;return new bi(vi.thisDep,vi.contextDep,vi.propDep,Bt)}else{if(tr===dl)return new bi(!1,!1,!1,Bt);if(tr===xl){for(var fi=!1,di=!1,nn=!1,On=0;On=1&&(di=!0),wn>=2&&(nn=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,di=di||Ln.data.contextDep,nn=nn||Ln.data.propDep)}return new bi(fi,di,nn,Bt)}else return new bi(tr===Cs,tr===is,tr===zn,Bt)}}var js=new bi(!1,!1,!1,function(){});function El(Fe,Bt,tr,Qr,vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr){var gi=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};tr.ext_blend_minmax&&(dn.min=nt,dn.max=ut);var En=tr.angle_instanced_arrays,Zi=tr.webgl_draw_buffers,ga=tr.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},Ji=[],Ui={},ro={};function na(Qe){return Qe.replace(".","_")}function Bn(Qe,pt,Tt){var Xt=na(Qe);Ji.push(Qe),hs[Xt]=Kn[Xt]=!!Tt,Ui[Xt]=pt}function In(Qe,pt,Tt){var Xt=na(Qe);Ji.push(Qe),Array.isArray(Tt)?(Kn[Xt]=Tt.slice(),hs[Xt]=Tt.slice()):Kn[Xt]=hs[Xt]=Tt,ro[Xt]=pt}function Va(Qe){return!!isNaN(Qe)}Bn(Bl,cn),Bn(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,lr,Cr,lr]),Bn(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),Bn(ll,si),In(nl,"cullFace",le),In(zl,zl,Ye),In(Ml,Ml,1),Bn(Rl,Fo),In(Al,"polygonOffset",[0,0]),Bn(Ll,vl),Bn(ms,Us),In(Bs,"sampleCoverage",[1,!1]),Bn(Xl,Zn),In(Gl,"stencilMask",-1),In(Nl,"stencilFunc",[Ht,0,-1]),In(ue,"stencilOpSeparate",[Z,wt,wt,wt]),In(w,"stencilOpSeparate",[le,wt,wt,wt]),Bn(q,Ua),In(Q,"scissor",[0,0,Fe.drawingBufferWidth,Fe.drawingBufferHeight]),In(ee,ee,[0,0,Fe.drawingBufferWidth,Fe.drawingBufferHeight]);var _s={gl:Fe,context:ua,strings:Bt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:vi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:On,framebuffer:nn,extensions:tr,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:pi,blendFuncs:un,blendEquations:dn,stencilOps:Pi,glTypes:Ai,orientationType:ji};Zi&&(ul.backBuffer=[le],ul.drawBuffer=S(Qr.maxDrawbuffers,function(Qe){return Qe===0?[0]:S(Qe,function(pt){return Oi+pt})}));var Qn=0;function Mo(){var Qe=Gn({cache:Ni}),pt=Qe.link,Tt=Qe.global;Qe.id=Qn++,Qe.batchId="0";var Xt=pt(_s),ir=Qe.shared={props:"a0"};Object.keys(_s).forEach(function(Zt){ir[Zt]=Tt.def(Xt,".",Zt)});var Kt=Qe.next={},ar=Qe.current={};Object.keys(ro).forEach(function(Zt){Array.isArray(Kn[Zt])&&(Kt[Zt]=Tt.def(ir.next,".",Zt),ar[Zt]=Tt.def(ir.current,".",Zt))});var Jt=Qe.constants={};Object.keys(ul).forEach(function(Zt){Jt[Zt]=Tt.def(JSON.stringify(ul[Zt]))}),Qe.invoke=function(Zt,Pt){switch(Pt.type){case va:var Ar=["this",ir.context,ir.props,Qe.batchId];return Zt.def(pt(Pt.data),".call(",Ar.slice(0,Math.max(Pt.data.length+1,4)),")");case zn:return Zt.def(ir.props,Pt.data);case is:return Zt.def(ir.context,Pt.data);case Cs:return Zt.def("this",Pt.data);case Ks:return Pt.data.append(Qe,Zt),Pt.data.ref;case dl:return Pt.data.toString();case xl:return Pt.data.map(function(Br){return Qe.invoke(Zt,Br)})}},Qe.attribCache={};var Ft={};return Qe.scopeAttrib=function(Zt){var Pt=Bt.id(Zt);if(Pt in Ft)return Ft[Pt];var Ar=Ln.scope[Pt];Ar||(Ar=Ln.scope[Pt]=new gi);var Br=Ft[Pt]=pt(Ar);return Br},Qe}function al(Qe){var pt=Qe.static,Tt=Qe.dynamic,Xt;if(fe in pt){var ir=!!pt[fe];Xt=no(function(ar,Jt){return ir}),Xt.enable=ir}else if(fe in Tt){var Kt=Tt[fe];Xt=Xo(Kt,function(ar,Jt){return ar.invoke(Jt,Kt)})}return Xt}function pl(Qe,pt){var Tt=Qe.static,Xt=Qe.dynamic;if(Ue in Tt){var ir=Tt[Ue];return ir?(ir=nn.getFramebuffer(ir),no(function(ar,Jt){var Ft=ar.link(ir),Zt=ar.shared;Jt.set(Zt.framebuffer,".next",Ft);var Pt=Zt.context;return Jt.set(Pt,"."+Ge,Ft+".width"),Jt.set(Pt,"."+ft,Ft+".height"),Ft})):no(function(ar,Jt){var Ft=ar.shared;Jt.set(Ft.framebuffer,".next","null");var Zt=Ft.context;return Jt.set(Zt,"."+Ge,Zt+"."+er),Jt.set(Zt,"."+ft,Zt+"."+sr),"null"})}else if(Ue in Xt){var Kt=Xt[Ue];return Xo(Kt,function(ar,Jt){var Ft=ar.invoke(Jt,Kt),Zt=ar.shared,Pt=Zt.framebuffer,Ar=Jt.def(Pt,".getFramebuffer(",Ft,")");Jt.set(Pt,".next",Ar);var Br=Zt.context;return Jt.set(Br,"."+Ge,Ar+"?"+Ar+".width:"+Br+"."+er),Jt.set(Br,"."+ft,Ar+"?"+Ar+".height:"+Br+"."+sr),Ar})}else return null}function Dl(Qe,pt,Tt){var Xt=Qe.static,ir=Qe.dynamic;function Kt(Ft){if(Ft in Xt){var Zt=Xt[Ft],Pt=!0,Ar=Zt.x|0,Br=Zt.y|0,ci,Cn;return"width"in Zt?ci=Zt.width|0:Pt=!1,"height"in Zt?Cn=Zt.height|0:Pt=!1,new bi(!Pt&&pt&&pt.thisDep,!Pt&&pt&&pt.contextDep,!Pt&&pt&&pt.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Zt||(Pn=ca.def(Tn,".",Ge,"-",Ar));var Nn=Cn;return"height"in Zt||(Nn=ca.def(Tn,".",ft,"-",Br)),[Ar,Br,Pn,Nn]})}else if(Ft in ir){var Yi=ir[Ft],yn=Xo(Yi,function(Xa,ca){var Tn=Xa.invoke(ca,Yi),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",Ge,"-",Nn,")"),iu=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",ft,"-",xa,")");return[Nn,xa,Zo,iu]});return pt&&(yn.thisDep=yn.thisDep||pt.thisDep,yn.contextDep=yn.contextDep||pt.contextDep,yn.propDep=yn.propDep||pt.propDep),yn}else return pt?new bi(pt.thisDep,pt.contextDep,pt.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",Ge),ca.def(Tn,".",ft)]}):null}var ar=Kt(ee);if(ar){var Jt=ar;ar=new bi(ar.thisDep,ar.contextDep,ar.propDep,function(Ft,Zt){var Pt=Jt.append(Ft,Zt),Ar=Ft.shared.context;return Zt.set(Ar,"."+ot,Pt[2]),Zt.set(Ar,"."+mt,Pt[3]),Pt})}return{viewport:ar,scissor_box:Kt(Q)}}function Ou(Qe,pt){var Tt=Qe.static,Xt=typeof Tt[yt]=="string"&&typeof Tt[at]=="string";if(Xt){if(Object.keys(pt.dynamic).length>0)return null;var ir=pt.static,Kt=Object.keys(ir);if(Kt.length>0&&typeof ir[Kt[0]]=="number"){for(var ar=[],Jt=0;Jt"+Nn+"?"+Pt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Pt,".buffer)){",Xa,"=",Cn,".createStream(",Ir,",",Pt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Pt,".buffer);","}",ca,'="type" in ',Pt,"?",Br.glTypes,"[",Pt,".type]:",Xa,".dtype;",Yi.normalized,"=!!",Pt,".normalized;");function Tn(Pn){Zt(Yi[Pn],"=",Pt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Zt("}}"),Zt.exit("if(",Yi.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Yi}ir[Kt]=Xo(ar,Jt)}),ir}function xf(Qe){var pt=Qe.static,Tt=Qe.dynamic,Xt={};return Object.keys(pt).forEach(function(ir){var Kt=pt[ir];Xt[ir]=no(function(ar,Jt){return typeof Kt=="number"||typeof Kt=="boolean"?""+Kt:ar.link(Kt)})}),Object.keys(Tt).forEach(function(ir){var Kt=Tt[ir];Xt[ir]=Xo(Kt,function(ar,Jt){return ar.invoke(Jt,Kt)})}),Xt}function Cf(Qe,pt,Tt,Xt,ir){var Kt=Qe.static,ar=Qe.dynamic,Jt=Ou(Qe,pt),Ft=pl(Qe,ir),Zt=Dl(Qe,Ft,ir),Pt=Ql(Qe,ir),Ar=Mf(Qe,ir),Br=vf(Qe,ir,Jt);function ci(Tn){var Pn=Zt[Tn];Pn&&(Ar[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Ar).length>0,Yi={framebuffer:Ft,draw:Pt,shader:Br,state:Ar,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Yi.profile=al(Qe,ir),Yi.uniforms=Cu(Tt,ir),Yi.drawVAO=Yi.scopeVAO=Pt.vao,!Yi.drawVAO&&Br.program&&!Jt&&tr.angle_instanced_arrays&&Pt.static.elements){var yn=!0,Xa=Br.program.attributes.map(function(Tn){var Pn=pt.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Pt.static.elements}));Yi.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Yi.useVAO=!0}}return Jt?Yi.useVAO=!0:Yi.attributes=gf(pt,ir),Yi.context=xf(Xt,ir),Yi}function Gu(Qe,pt,Tt){var Xt=Qe.shared,ir=Xt.context,Kt=Qe.scope();Object.keys(Tt).forEach(function(ar){pt.save(ir,"."+ar);var Jt=Tt[ar],Ft=Jt.append(Qe,pt);Array.isArray(Ft)?Kt(ir,".",ar,"=[",Ft.join(),"];"):Kt(ir,".",ar,"=",Ft,";")}),pt(Kt)}function cf(Qe,pt,Tt,Xt){var ir=Qe.shared,Kt=ir.gl,ar=ir.framebuffer,Jt;Zi&&(Jt=pt.def(ir.extensions,".webgl_draw_buffers"));var Ft=Qe.constants,Zt=Ft.drawBuffer,Pt=Ft.backBuffer,Ar;Tt?Ar=Tt.append(Qe,pt):Ar=pt.def(ar,".next"),Xt||pt("if(",Ar,"!==",ar,".cur){"),pt("if(",Ar,"){",Kt,".bindFramebuffer(",$r,",",Ar,".framebuffer);"),Zi&&pt(Jt,".drawBuffersWEBGL(",Zt,"[",Ar,".colorAttachments.length]);"),pt("}else{",Kt,".bindFramebuffer(",$r,",null);"),Zi&&pt(Jt,".drawBuffersWEBGL(",Pt,");"),pt("}",ar,".cur=",Ar,";"),Xt||pt("}")}function mf(Qe,pt,Tt){var Xt=Qe.shared,ir=Xt.gl,Kt=Qe.current,ar=Qe.next,Jt=Xt.current,Ft=Xt.next,Zt=Qe.cond(Jt,".dirty");Ji.forEach(function(Pt){var Ar=na(Pt);if(!(Ar in Tt.state)){var Br,ci;if(Ar in ar){Br=ar[Ar],ci=Kt[Ar];var Cn=S(Kn[Ar].length,function(yn){return Zt.def(Br,"[",yn,"]")});Zt(Qe.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(ir,".",ro[Ar],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Br=Zt.def(Ft,".",Ar);var Yi=Qe.cond(Br,"!==",Jt,".",Ar);Zt(Yi),Ar in Ui?Yi(Qe.cond(Br).then(ir,".enable(",Ui[Ar],");").else(ir,".disable(",Ui[Ar],");"),Jt,".",Ar,"=",Br,";"):Yi(ir,".",ro[Ar],"(",Br,");",Jt,".",Ar,"=",Br,";")}}}),Object.keys(Tt.state).length===0&&Zt(Jt,".dirty=false;"),pt(Zt)}function Fl(Qe,pt,Tt,Xt){var ir=Qe.shared,Kt=Qe.current,ar=ir.current,Jt=ir.gl,Ft;an(Object.keys(Tt)).forEach(function(Zt){var Pt=Tt[Zt];if(!(Xt&&!Xt(Pt))){var Ar=Pt.append(Qe,pt);if(Ui[Zt]){var Br=Ui[Zt];xo(Pt)?(Ft=Qe.link(Ar,{stable:!0}),pt(Qe.cond(Ft).then(Jt,".enable(",Br,");").else(Jt,".disable(",Br,");")),pt(ar,".",Zt,"=",Ft,";")):(pt(Qe.cond(Ar).then(Jt,".enable(",Br,");").else(Jt,".disable(",Br,");")),pt(ar,".",Zt,"=",Ar,";"))}else if($i(Ar)){var ci=Kt[Zt];pt(Jt,".",ro[Zt],"(",Ar,");",Ar.map(function(Cn,Yi){return ci+"["+Yi+"]="+Cn}).join(";"),";")}else xo(Pt)?(Ft=Qe.link(Ar,{stable:!0}),pt(Jt,".",ro[Zt],"(",Ft,");",ar,".",Zt,"=",Ft,";")):pt(Jt,".",ro[Zt],"(",Ar,");",ar,".",Zt,"=",Ar,";")}})}function bf(Qe,pt){En&&(Qe.instancing=pt.def(Qe.shared.extensions,".angle_instanced_arrays"))}function cu(Qe,pt,Tt,Xt,ir){var Kt=Qe.shared,ar=Qe.stats,Jt=Kt.current,Ft=Kt.timer,Zt=Tt.profile;function Pt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Ar,Br;function ci(Tn){Ar=pt.def(),Tn(Ar,"=",Pt(),";"),typeof ir=="string"?Tn(ar,".count+=",ir,";"):Tn(ar,".count++;"),Hn&&(Xt?(Br=pt.def(),Tn(Br,"=",Ft,".getNumPendingQueries();")):Tn(Ft,".beginQuery(",ar,");"))}function Cn(Tn){Tn(ar,".cpuTime+=",Pt(),"-",Ar,";"),Hn&&(Xt?Tn(Ft,".pushScopeStats(",Br,",",Ft,".getNumPendingQueries(),",ar,");"):Tn(Ft,".endQuery();"))}function Yi(Tn){var Pn=pt.def(Jt,".profile");pt(Jt,".profile=",Tn,";"),pt.exit(Jt,".profile=",Pn,";")}var yn;if(Zt){if(xo(Zt)){Zt.enable?(ci(pt),Cn(pt.exit),Yi("true")):Yi("false");return}yn=Zt.append(Qe,pt),Yi(yn)}else yn=pt.def(Jt,".profile");var Xa=Qe.block();ci(Xa),pt("if(",yn,"){",Xa,"}");var ca=Qe.block();Cn(ca),pt.exit("if(",yn,"){",ca,"}")}function Y(Qe,pt,Tt,Xt,ir){var Kt=Qe.shared;function ar(Ft){switch(Ft){case au:case ou:case Hu:return 2;case Sl:case Pu:case $u:return 3;case Yl:case nu:case Ku:return 4;default:return 1}}function Jt(Ft,Zt,Pt){var Ar=Kt.gl,Br=pt.def(Ft,".location"),ci=pt.def(Kt.attributes,"[",Br,"]"),Cn=Pt.state,Yi=Pt.buffer,yn=[Pt.x,Pt.y,Pt.z,Pt.w],Xa=["buffer","normalized","offset","stride"];function ca(){pt("if(!",ci,".buffer){",Ar,".enableVertexAttribArray(",Br,");}");var Pn=Pt.type,Nn;if(Pt.size?Nn=pt.def(Pt.size,"||",Zt):Nn=Zt,pt("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Pt[Zo]}).join("||"),"){",Ar,".bindBuffer(",Ir,",",Yi,".buffer);",Ar,".vertexAttribPointer(",[Br,Nn,Pn,Pt.normalized,Pt.stride,Pt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Pt[Zo]+";"}).join(""),"}"),En){var xa=Pt.divisor;pt("if(",ci,".divisor!==",xa,"){",Qe.instancing,".vertexAttribDivisorANGLE(",[Br,xa],");",ci,".divisor=",xa,";}")}}function Tn(){pt("if(",ci,".buffer){",Ar,".disableVertexAttribArray(",Br,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Ar,".vertexAttrib4f(",Br,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(pt("if(",Cn,"===",ia,"){"),ca(),pt("}else{"),Tn(),pt("}"))}Xt.forEach(function(Ft){var Zt=Ft.name,Pt=Tt.attributes[Zt],Ar;if(Pt){if(!ir(Pt))return;Ar=Pt.append(Qe,pt)}else{if(!ir(js))return;var Br=Qe.scopeAttrib(Zt);Ar={},Object.keys(new gi).forEach(function(ci){Ar[ci]=pt.def(Br,".",ci)})}Jt(Qe.link(Ft),ar(Ft.info.type),Ar)})}function R(Qe,pt,Tt,Xt,ir,Kt){for(var ar=Qe.shared,Jt=ar.gl,Ft,Zt=0;Zt1){for(var yu=[],Fu=[],vu=0;vu>1)",Yi],");")}function xa(){Tt(yn,".drawArraysInstancedANGLE(",[Br,ci,Cn,Yi],");")}Pt&&Pt!=="null"?ca?Nn():(Tt("if(",Pt,"){"),Nn(),Tt("}else{"),xa(),Tt("}")):xa()}function Pn(){function Nn(){Tt(Kt+".drawElements("+[Br,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){Tt(Kt+".drawArrays("+[Br,ci,Cn]+");")}Pt&&Pt!=="null"?ca?Nn():(Tt("if(",Pt,"){"),Nn(),Tt("}else{"),xa(),Tt("}")):xa()}En&&(typeof Yi!="number"||Yi>=0)?typeof Yi=="string"?(Tt("if(",Yi,">0){"),Tn(),Tt("}else if(",Yi,"<0){"),Pn(),Tt("}")):Tn():Pn()}function B(Qe,pt,Tt,Xt,ir){var Kt=Mo(),ar=Kt.proc("body",ir);return En&&(Kt.instancing=ar.def(Kt.shared.extensions,".angle_instanced_arrays")),Qe(Kt,ar,Tt,Xt),Kt.compile().body}function K(Qe,pt,Tt,Xt){bf(Qe,pt),Tt.useVAO?Tt.drawVAO?pt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,pt),");"):pt(Qe.shared.vao,".setVAO(",Qe.shared.vao,".targetVAO);"):(pt(Qe.shared.vao,".setVAO(null);"),Y(Qe,pt,Tt,Xt.attributes,function(){return!0})),R(Qe,pt,Tt,Xt.uniforms,function(){return!0},!1),J(Qe,pt,pt,Tt)}function ye(Qe,pt){var Tt=Qe.proc("draw",1);bf(Qe,Tt),Gu(Qe,Tt,pt.context),cf(Qe,Tt,pt.framebuffer),mf(Qe,Tt,pt),Fl(Qe,Tt,pt.state),cu(Qe,Tt,pt,!1,!0);var Xt=pt.shader.progVar.append(Qe,Tt);if(Tt(Qe.shared.gl,".useProgram(",Xt,".program);"),pt.shader.program)K(Qe,Tt,pt,pt.shader.program);else{Tt(Qe.shared.vao,".setVAO(null);");var ir=Qe.global.def("{}"),Kt=Tt.def(Xt,".id"),ar=Tt.def(ir,"[",Kt,"]");Tt(Qe.cond(ar).then(ar,".call(this,a0);").else(ar,"=",ir,"[",Kt,"]=",Qe.link(function(Jt){return B(K,Qe,pt,Jt,1)}),"(",Xt,");",ar,".call(this,a0);"))}Object.keys(pt.state).length>0&&Tt(Qe.shared.current,".dirty=true;"),Qe.shared.vao&&Tt(Qe.shared.vao,".setVAO(null);")}function ne(Qe,pt,Tt,Xt){Qe.batchId="a1",bf(Qe,pt);function ir(){return!0}Y(Qe,pt,Tt,Xt.attributes,ir),R(Qe,pt,Tt,Xt.uniforms,ir,!1),J(Qe,pt,pt,Tt)}function ke(Qe,pt,Tt,Xt){bf(Qe,pt);var ir=Tt.contextDep,Kt=pt.def(),ar="a0",Jt="a1",Ft=pt.def();Qe.shared.props=Ft,Qe.batchId=Kt;var Zt=Qe.scope(),Pt=Qe.scope();pt(Zt.entry,"for(",Kt,"=0;",Kt,"<",Jt,";++",Kt,"){",Ft,"=",ar,"[",Kt,"];",Pt,"}",Zt.exit);function Ar(Xa){return Xa.contextDep&&ir||Xa.propDep}function Br(Xa){return!Ar(Xa)}if(Tt.needsContext&&Gu(Qe,Pt,Tt.context),Tt.needsFramebuffer&&cf(Qe,Pt,Tt.framebuffer),Fl(Qe,Pt,Tt.state,Ar),Tt.profile&&Ar(Tt.profile)&&cu(Qe,Pt,Tt,!1,!0),Xt)Tt.useVAO?Tt.drawVAO?Ar(Tt.drawVAO)?Pt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,Pt),");"):Zt(Qe.shared.vao,".setVAO(",Tt.drawVAO.append(Qe,Zt),");"):Zt(Qe.shared.vao,".setVAO(",Qe.shared.vao,".targetVAO);"):(Zt(Qe.shared.vao,".setVAO(null);"),Y(Qe,Zt,Tt,Xt.attributes,Br),Y(Qe,Pt,Tt,Xt.attributes,Ar)),R(Qe,Zt,Tt,Xt.uniforms,Br,!1),R(Qe,Pt,Tt,Xt.uniforms,Ar,!0),J(Qe,Zt,Pt,Tt);else{var ci=Qe.global.def("{}"),Cn=Tt.shader.progVar.append(Qe,Pt),Yi=Pt.def(Cn,".id"),yn=Pt.def(ci,"[",Yi,"]");Pt(Qe.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Yi,"]=",Qe.link(function(Xa){return B(ne,Qe,Tt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Kt,"],",Kt,");")}}function Je(Qe,pt){var Tt=Qe.proc("batch",2);Qe.batchId="0",bf(Qe,Tt);var Xt=!1,ir=!0;Object.keys(pt.context).forEach(function(ci){Xt=Xt||pt.context[ci].propDep}),Xt||(Gu(Qe,Tt,pt.context),ir=!1);var Kt=pt.framebuffer,ar=!1;Kt?(Kt.propDep?Xt=ar=!0:Kt.contextDep&&Xt&&(ar=!0),ar||cf(Qe,Tt,Kt)):cf(Qe,Tt,null),pt.state.viewport&&pt.state.viewport.propDep&&(Xt=!0);function Jt(ci){return ci.contextDep&&Xt||ci.propDep}mf(Qe,Tt,pt),Fl(Qe,Tt,pt.state,function(ci){return!Jt(ci)}),(!pt.profile||!Jt(pt.profile))&&cu(Qe,Tt,pt,!1,"a1"),pt.contextDep=Xt,pt.needsContext=ir,pt.needsFramebuffer=ar;var Ft=pt.shader.progVar;if(Ft.contextDep&&Xt||Ft.propDep)ke(Qe,Tt,pt,null);else{var Zt=Ft.append(Qe,Tt);if(Tt(Qe.shared.gl,".useProgram(",Zt,".program);"),pt.shader.program)ke(Qe,Tt,pt,pt.shader.program);else{Tt(Qe.shared.vao,".setVAO(null);");var Pt=Qe.global.def("{}"),Ar=Tt.def(Zt,".id"),Br=Tt.def(Pt,"[",Ar,"]");Tt(Qe.cond(Br).then(Br,".call(this,a0,a1);").else(Br,"=",Pt,"[",Ar,"]=",Qe.link(function(ci){return B(ke,Qe,pt,ci,2)}),"(",Zt,");",Br,".call(this,a0,a1);"))}}Object.keys(pt.state).length>0&&Tt(Qe.shared.current,".dirty=true;"),Qe.shared.vao&&Tt(Qe.shared.vao,".setVAO(null);")}function Ct(Qe,pt){var Tt=Qe.proc("scope",3);Qe.batchId="a2";var Xt=Qe.shared,ir=Xt.current;if(Gu(Qe,Tt,pt.context),pt.framebuffer&&pt.framebuffer.append(Qe,Tt),an(Object.keys(pt.state)).forEach(function(Jt){var Ft=pt.state[Jt],Zt=Ft.append(Qe,Tt);$i(Zt)?Zt.forEach(function(Pt,Ar){Va(Pt)?Tt.set(Qe.next[Jt],"["+Ar+"]",Pt):Tt.set(Qe.next[Jt],"["+Ar+"]",Qe.link(Pt,{stable:!0}))}):xo(Ft)?Tt.set(Xt.next,"."+Jt,Qe.link(Zt,{stable:!0})):Tt.set(Xt.next,"."+Jt,Zt)}),cu(Qe,Tt,pt,!0,!0),[Rt,Mr,rr,Ur,Qt].forEach(function(Jt){var Ft=pt.draw[Jt];if(Ft){var Zt=Ft.append(Qe,Tt);Va(Zt)?Tt.set(Xt.draw,"."+Jt,Zt):Tt.set(Xt.draw,"."+Jt,Qe.link(Zt),{stable:!0})}}),Object.keys(pt.uniforms).forEach(function(Jt){var Ft=pt.uniforms[Jt].append(Qe,Tt);Array.isArray(Ft)&&(Ft="["+Ft.map(function(Zt){return Va(Zt)?Zt:Qe.link(Zt,{stable:!0})})+"]"),Tt.set(Xt.uniforms,"["+Qe.link(Bt.id(Jt),{stable:!0})+"]",Ft)}),Object.keys(pt.attributes).forEach(function(Jt){var Ft=pt.attributes[Jt].append(Qe,Tt),Zt=Qe.scopeAttrib(Jt);Object.keys(new gi).forEach(function(Pt){Tt.set(Zt,"."+Pt,Ft[Pt])})}),pt.scopeVAO){var Kt=pt.scopeVAO.append(Qe,Tt);Va(Kt)?Tt.set(Xt.vao,".targetVAO",Kt):Tt.set(Xt.vao,".targetVAO",Qe.link(Kt,{stable:!0}))}function ar(Jt){var Ft=pt.shader[Jt];if(Ft){var Zt=Ft.append(Qe,Tt);Va(Zt)?Tt.set(Xt.shader,"."+Jt,Zt):Tt.set(Xt.shader,"."+Jt,Qe.link(Zt,{stable:!0}))}}ar(at),ar(yt),Object.keys(pt.state).length>0&&(Tt(ir,".dirty=true;"),Tt.exit(ir,".dirty=true;")),Tt("a1(",Qe.shared.context,",a0,",Qe.batchId,");")}function ur(Qe){if(!(typeof Qe!="object"||$i(Qe))){for(var pt=Object.keys(Qe),Tt=0;Tt=0;--B){var K=_s[B];K&&K(Ni,null,0)}tr.flush(),wn&&wn.update()}function Dl(){!al&&_s.length>0&&(al=d.next(pl))}function Ou(){al&&(d.cancel(pl),al=null)}function vf(B){B.preventDefault(),vi=!0,Ou(),ul.forEach(function(K){K()})}function Ql(B){tr.getError(),vi=!1,fi.restore(),hs.restore(),En.restore(),Ji.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,vf,!1),Va.addEventListener(Tu,Ql,!1));function Mf(){_s.length=0,Ou(),Va&&(Va.removeEventListener(Au,vf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),Ji.clear(),Zi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(B){B()})}function Cu(B){function K(Kt){var ar=e({},Kt);delete ar.uniforms,delete ar.attributes,delete ar.context,delete ar.vao,"stencil"in ar&&ar.stencil.op&&(ar.stencil.opBack=ar.stencil.opFront=ar.stencil.op,delete ar.stencil.op);function Jt(Ft){if(Ft in ar){var Zt=ar[Ft];delete ar[Ft],Object.keys(Zt).forEach(function(Pt){ar[Ft+"."+Pt]=Zt[Pt]})}}return Jt("blend"),Jt("depth"),Jt("cull"),Jt("stencil"),Jt("polygonOffset"),Jt("scissor"),Jt("sample"),"vao"in Kt&&(ar.vao=Kt.vao),ar}function ye(Kt,ar){var Jt={},Ft={};return Object.keys(Kt).forEach(function(Zt){var Pt=Kt[Zt];if(h.isDynamic(Pt)){Ft[Zt]=h.unbox(Pt,Zt);return}else if(ar&&Array.isArray(Pt)){for(var Ar=0;Ar0)return Qe.call(this,Xt(Kt|0),Kt|0)}else if(Array.isArray(Kt)){if(Kt.length)return Qe.call(this,Kt,Kt.length)}else return nr.call(this,Kt)}return e(ir,{stats:ur,destroy:function(){Sr.destroy()}})}var gf=ro.setFBO=Cu({framebuffer:h.define.call(null,lf,"framebuffer")});function xf(B,K){var ye=0;na.procs.poll();var ne=K.color;ne&&(tr.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),ye|=Vu),"depth"in K&&(tr.clearDepth(+K.depth),ye|=tf),"stencil"in K&&(tr.clearStencil(K.stencil|0),ye|=ds),tr.clear(ye)}function Cf(B){if("framebuffer"in B)if(B.framebuffer&&B.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)gf(e({framebuffer:B.framebuffer.faces[K]},B),xf);else gf(B,xf);else xf(null,B)}function Gu(B){_s.push(B);function K(){var ye=pf(_s,B);function ne(){var ke=pf(_s,ne);_s[ke]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Ou()}_s[ye]=ne}return Dl(),{cancel:K}}function cf(){var B=In.viewport,K=In.scissor_box;B[0]=B[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=B[2]=K[2]=tr.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=B[3]=K[3]=tr.drawingBufferHeight}function mf(){Ni.tick+=1,Ni.time=bf(),cf(),na.procs.poll()}function Fl(){Ji.refresh(),cf(),na.procs.refresh(),wn&&wn.update()}function bf(){return(p()-Ls)/1e3}Fl();function cu(B,K){var ye;switch(B){case"frame":return Gu(K);case"lost":ye=ul;break;case"restore":ye=Qn;break;case"destroy":ye=Mo;break;default:}return ye.push(K),{cancel:function(){for(var ne=0;ne=0},read:Bn,destroy:Mf,_gl:tr,_refresh:Fl,poll:function(){mf(),wn&&wn.update()},now:bf,stats:nn,getCachedCode:Y,preloadCachedCode:R});return Bt.onDone(null,J),J}return fc}))});var R8=we((Sbr,i7e)=>{"use strict";var aGt=YX(),oGt=r7e();i7e.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=oGt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||aGt({container:i._glcontainer.node()}),a}});var RK=we((IK,l7e)=>{"use strict";var n7e=IY(),a7e=fK(),sGt=jqe(),o7e=t7e(),zK=ei(),lGt=Cm().selectMode,uGt=R8(),fGt=lc(),cGt=qU(),hGt=CY().styleTextSelection,s7e={};function dGt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,u=i.b*n,l=i.r*n,f=i.t*n,c=i.w*n,h=i.h*n;return[s+t.domain[0]*c,u+r.domain[0]*h,a-l-(1-t.domain[1])*c,o-f-(1-r.domain[1])*h]}var IK=l7e.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,u,l;if(a){var f=uGt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],s7e);if(!f){a.init();return}var c=a.count,h=i._glcanvas.data()[0].regl;if(cGt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=sGt(h)),a.line2d===!0&&(a.line2d=a7e(h)),a.scatter2d===!0&&(a.scatter2d=n7e(h)),a.fill2d===!0&&(a.fill2d=a7e(h)),a.glText===!0)for(a.glText=new Array(c),u=0;ua.glText.length){var d=c-a.glText.length;for(u=0;ure&&(isNaN(H[ae])||isNaN(H[ae+1]));)ae-=2;N.positions=H.slice(re,ae+2)}return N}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]).map(function(N){return N||{positions:[],errors:[]}});a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=zK.repeat(null,c),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(N,H){var re=n[H];if(!(!N||!re||!re[0]||!re[0].trace)){var ae=re[0],me=ae.trace,Ce=ae.t,Ee=a.lineOptions[H],de,te,Se=[];me._ownfill&&Se.push(H),me._nexttrace&&Se.push(H+1),Se.length&&(a.fillOrder[H]=Se);var Te=[],be=Ee&&Ee.positions||Ce.positions,He,Ie;if(me.fill==="tozeroy"){for(He=0;HeHe&&isNaN(be[Ie+1]);)Ie-=2;be[He+1]!==0&&(Te=[be[He],0]),Te=Te.concat(be.slice(He,Ie+2)),be[Ie+1]!==0&&(Te=Te.concat([be[Ie],0]))}else if(me.fill==="tozerox"){for(He=0;HeHe&&isNaN(be[Ie]);)Ie-=2;be[He]!==0&&(Te=[0,be[He+1]]),Te=Te.concat(be.slice(He,Ie+2)),be[Ie]!==0&&(Te=Te.concat([0,be[Ie+1]]))}else if(me.fill==="toself"||me.fill==="tonext"){for(Te=[],de=0,N.splitNull=!0,te=0;te-1;for(let[N]of n)if(N){var A=N.trace,L=N.t,x=L.index,k=A._length,S=L.x,m=L.y;if(A.selectedpoints||C||E){if(C||(C=!0),A.selectedpoints){var P=a.selectBatch[x]=zK.selIndices2selPoints(A),M={};for(l=0;l{u7e.exports=function(t,r,n){"use strict";var i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr;return i=t.gl,a=t.context,o=t.strings,s=t.next,u=t.current,l=t.draw,f=t.elements,c=t.buffer,h=t.shader,d=t.attributes,p=t.vao,y=t.uniforms,b=t.framebuffer,v=t.extensions,C=t.timer,E=t.isBufferArgs,A=s.blend_color,L=u.blend_color,x=s.blend_equation,k=u.blend_equation,S=s.blend_func,m=u.blend_func,P=s.depth_range,M=u.depth_range,O=s.colorMask,F=u.colorMask,U=s.polygonOffset_offset,G=u.polygonOffset_offset,j=s.sample_coverage,W=u.sample_coverage,N=s.stencil_func,H=u.stencil_func,re=s.stencil_opFront,ae=u.stencil_opFront,me=s.stencil_opBack,Ce=u.stencil_opBack,Ee=s.scissor_box,de=u.scissor_box,te=s.viewport,Se=u.viewport,Te={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},be={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},He={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ie={add:32774,subtract:32778,"reverse subtract":32779},ge={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Be={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ce={cw:2304,ccw:2305},je=s.blend_color,rt=u.blend_color,bt=s.blend_equation,Ot=u.blend_equation,it=s.blend_func,Ke=u.blend_func,zt=s.depth_range,Mt=u.depth_range,kt=s.colorMask,$e=u.colorMask,Re=s.polygonOffset_offset,Me=u.polygonOffset_offset,oe=s.sample_coverage,Ne=u.sample_coverage,vt=s.stencil_func,lt=u.stencil_func,We=s.stencil_opFront,Ve=u.stencil_opFront,et=s.stencil_opBack,tt=u.stencil_opBack,Lt=s.scissor_box,jt=u.scissor_box,or=s.viewport,yr=u.viewport,{poll:function(){var vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri;u.dirty=!1,Vt=s.dither,Pe=s.blend_enable,xe=s.depth_enable,Oe=s.cull_enable,ze=s.polygonOffset_enable,De=s.sample_alpha,ht=s.sample_enable,st=s.stencil_enable,gt=s.scissor_enable,xt=s.depth_func,pr=u.depth_func,br=s.depth_mask,cr=u.depth_mask,Er=s.cull_face,ii=u.cull_face,jr=s.frontFace,kr=u.frontFace,Vr=s.lineWidth,Ai=u.lineWidth,Bi=s.stencil_mask,Ri=u.stencil_mask,vr=b.next,vr!==b.cur&&(vr?i.bindFramebuffer(36160,vr.framebuffer):i.bindFramebuffer(36160,null),b.cur=vr),Vt!==u.dither&&(Vt?i.enable(3024):i.disable(3024),u.dither=Vt),Pe!==u.blend_enable&&(Pe?i.enable(3042):i.disable(3042),u.blend_enable=Pe),xe!==u.depth_enable&&(xe?i.enable(2929):i.disable(2929),u.depth_enable=xe),Oe!==u.cull_enable&&(Oe?i.enable(2884):i.disable(2884),u.cull_enable=Oe),ze!==u.polygonOffset_enable&&(ze?i.enable(32823):i.disable(32823),u.polygonOffset_enable=ze),De!==u.sample_alpha&&(De?i.enable(32926):i.disable(32926),u.sample_alpha=De),ht!==u.sample_enable&&(ht?i.enable(32928):i.disable(32928),u.sample_enable=ht),st!==u.stencil_enable&&(st?i.enable(2960):i.disable(2960),u.stencil_enable=st),gt!==u.scissor_enable&&(gt?i.enable(3089):i.disable(3089),u.scissor_enable=gt),(je[0]!==rt[0]||je[1]!==rt[1]||je[2]!==rt[2]||je[3]!==rt[3])&&(i.blendColor(je[0],je[1],je[2],je[3]),rt[0]=je[0],rt[1]=je[1],rt[2]=je[2],rt[3]=je[3]),(bt[0]!==Ot[0]||bt[1]!==Ot[1])&&(i.blendEquationSeparate(bt[0],bt[1]),Ot[0]=bt[0],Ot[1]=bt[1]),(it[0]!==Ke[0]||it[1]!==Ke[1]||it[2]!==Ke[2]||it[3]!==Ke[3])&&(i.blendFuncSeparate(it[0],it[1],it[2],it[3]),Ke[0]=it[0],Ke[1]=it[1],Ke[2]=it[2],Ke[3]=it[3]),xt!==pr&&(i.depthFunc(xt),u.depth_func=xt),(zt[0]!==Mt[0]||zt[1]!==Mt[1])&&(i.depthRange(zt[0],zt[1]),Mt[0]=zt[0],Mt[1]=zt[1]),br!==cr&&(i.depthMask(br),u.depth_mask=br),(kt[0]!==$e[0]||kt[1]!==$e[1]||kt[2]!==$e[2]||kt[3]!==$e[3])&&(i.colorMask(kt[0],kt[1],kt[2],kt[3]),$e[0]=kt[0],$e[1]=kt[1],$e[2]=kt[2],$e[3]=kt[3]),Er!==ii&&(i.cullFace(Er),u.cull_face=Er),jr!==kr&&(i.frontFace(jr),u.frontFace=jr),Vr!==Ai&&(i.lineWidth(Vr),u.lineWidth=Vr),(Re[0]!==Me[0]||Re[1]!==Me[1])&&(i.polygonOffset(Re[0],Re[1]),Me[0]=Re[0],Me[1]=Re[1]),(oe[0]!==Ne[0]||oe[1]!==Ne[1])&&(i.sampleCoverage(oe[0],oe[1]),Ne[0]=oe[0],Ne[1]=oe[1]),Bi!==Ri&&(i.stencilMask(Bi),u.stencil_mask=Bi),(vt[0]!==lt[0]||vt[1]!==lt[1]||vt[2]!==lt[2])&&(i.stencilFunc(vt[0],vt[1],vt[2]),lt[0]=vt[0],lt[1]=vt[1],lt[2]=vt[2]),(We[0]!==Ve[0]||We[1]!==Ve[1]||We[2]!==Ve[2]||We[3]!==Ve[3])&&(i.stencilOpSeparate(We[0],We[1],We[2],We[3]),Ve[0]=We[0],Ve[1]=We[1],Ve[2]=We[2],Ve[3]=We[3]),(et[0]!==tt[0]||et[1]!==tt[1]||et[2]!==tt[2]||et[3]!==tt[3])&&(i.stencilOpSeparate(et[0],et[1],et[2],et[3]),tt[0]=et[0],tt[1]=et[1],tt[2]=et[2],tt[3]=et[3]),(Lt[0]!==jt[0]||Lt[1]!==jt[1]||Lt[2]!==jt[2]||Lt[3]!==jt[3])&&(i.scissor(Lt[0],Lt[1],Lt[2],Lt[3]),jt[0]=Lt[0],jt[1]=Lt[1],jt[2]=Lt[2],jt[3]=Lt[3]),(or[0]!==yr[0]||or[1]!==yr[1]||or[2]!==yr[2]||or[3]!==yr[3])&&(i.viewport(or[0],or[1],or[2],or[3]),yr[0]=or[0],yr[1]=or[1],yr[2]=or[2],yr[3]=or[3])},refresh:function(){var vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn;u.dirty=!1,xe=s.dither,Oe=s.blend_enable,ze=s.depth_enable,De=s.cull_enable,ht=s.polygonOffset_enable,st=s.sample_alpha,gt=s.sample_enable,xt=s.stencil_enable,pr=s.scissor_enable,br=s.depth_func,cr=u.depth_func,Er=s.depth_mask,ii=u.depth_mask,jr=s.cull_face,kr=u.cull_face,Vr=s.frontFace,Ai=u.frontFace,Bi=s.lineWidth,Ri=u.lineWidth,ln=s.stencil_mask,hn=u.stencil_mask,vr=b.next,vr?i.bindFramebuffer(36160,vr.framebuffer):i.bindFramebuffer(36160,null),b.cur=vr,Vt=d,Pe=0;for(var qr=0;qr{f7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je){"use strict";var rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i;return rt=t.gl,bt=t.context,Ot=t.strings,it=t.next,Ke=t.current,zt=t.draw,Mt=t.elements,kt=t.buffer,$e=t.shader,Re=t.attributes,Me=t.vao,oe=t.uniforms,Ne=t.framebuffer,vt=t.extensions,lt=t.timer,We=t.isBufferArgs,Ve=it.blend_color,et=Ke.blend_color,tt=it.blend_equation,Lt=Ke.blend_equation,jt=it.blend_func,or=Ke.blend_func,yr=it.depth_range,vr=Ke.depth_range,Vt=it.colorMask,Pe=Ke.colorMask,xe=it.polygonOffset_offset,Oe=Ke.polygonOffset_offset,ze=it.sample_coverage,De=Ke.sample_coverage,ht=it.stencil_func,st=Ke.stencil_func,gt=it.stencil_opFront,xt=Ke.stencil_opFront,pr=it.stencil_opBack,br=Ke.stencil_opBack,cr=it.scissor_box,Er=Ke.scissor_box,ii=it.viewport,jr=Ke.viewport,kr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Vr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ai={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Bi={add:32774,subtract:32778,"reverse subtract":32779},Ri={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ln={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},hn={cw:2304,ccw:2305},qr={},qr.stride=8,qr.offset=8,_i={},_i.stride=8,_i.offset=8,{draw:function(zi){var Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo;if(Dt=vt.angle_instanced_arrays,_t=Ne.next,_t!==Ne.cur&&(_t?rt.bindFramebuffer(36160,_t.framebuffer):rt.bindFramebuffer(36160,null),Ne.cur=_t),Ke.dirty){var As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa;As=it.dither,As!==Ke.dither&&(As?rt.enable(3024):rt.disable(3024),Ke.dither=As),ps=it.depth_func,ps!==Ke.depth_func&&(rt.depthFunc(ps),Ke.depth_func=ps),co=yr[0],mo=yr[1],(co!==vr[0]||mo!==vr[1])&&(rt.depthRange(co,mo),vr[0]=co,vr[1]=mo),No=it.depth_mask,No!==Ke.depth_mask&&(rt.depthMask(No),Ke.depth_mask=No),jn=Vt[0],Go=Vt[1],Ys=Vt[2],qs=Vt[3],(jn!==Pe[0]||Go!==Pe[1]||Ys!==Pe[2]||qs!==Pe[3])&&(rt.colorMask(jn,Go,Ys,qs),Pe[0]=jn,Pe[1]=Go,Pe[2]=Ys,Pe[3]=qs),Ns=it.cull_enable,Ns!==Ke.cull_enable&&(Ns?rt.enable(2884):rt.disable(2884),Ke.cull_enable=Ns),Ba=it.cull_face,Ba!==Ke.cull_face&&(rt.cullFace(Ba),Ke.cull_face=Ba),ha=it.frontFace,ha!==Ke.frontFace&&(rt.frontFace(ha),Ke.frontFace=ha),Vs=it.lineWidth,Vs!==Ke.lineWidth&&(rt.lineWidth(Vs),Ke.lineWidth=Vs),Ya=it.polygonOffset_enable,Ya!==Ke.polygonOffset_enable&&(Ya?rt.enable(32823):rt.disable(32823),Ke.polygonOffset_enable=Ya),_n=xe[0],Vn=xe[1],(_n!==Oe[0]||Vn!==Oe[1])&&(rt.polygonOffset(_n,Vn),Oe[0]=_n,Oe[1]=Vn),wo=it.sample_alpha,wo!==Ke.sample_alpha&&(wo?rt.enable(32926):rt.disable(32926),Ke.sample_alpha=wo),Ra=it.sample_enable,Ra!==Ke.sample_enable&&(Ra?rt.enable(32928):rt.disable(32928),Ke.sample_enable=Ra),Xn=ze[0],sn=ze[1],(Xn!==De[0]||sn!==De[1])&&(rt.sampleCoverage(Xn,sn),De[0]=Xn,De[1]=sn),$n=it.stencil_mask,$n!==Ke.stencil_mask&&(rt.stencilMask($n),Ke.stencil_mask=$n),Ka=ht[0],qn=ht[1],Eo=ht[2],(Ka!==st[0]||qn!==st[1]||Eo!==st[2])&&(rt.stencilFunc(Ka,qn,Eo),st[0]=Ka,st[1]=qn,st[2]=Eo),Ja=gt[0],lo=gt[1],eo=gt[2],sa=gt[3],(Ja!==xt[0]||lo!==xt[1]||eo!==xt[2]||sa!==xt[3])&&(rt.stencilOpSeparate(Ja,lo,eo,sa),xt[0]=Ja,xt[1]=lo,xt[2]=eo,xt[3]=sa),es=pr[0],Na=pr[1],en=pr[2],Pa=pr[3],(es!==br[0]||Na!==br[1]||en!==br[2]||Pa!==br[3])&&(rt.stencilOpSeparate(es,Na,en,Pa),br[0]=es,br[1]=Na,br[2]=en,br[3]=Pa)}qt=zi.viewport,Nt=qt.x|0,mr=qt.y|0,Lr="width"in qt?qt.width|0:bt.framebufferWidth-Nt,Nr="height"in qt?qt.height|0:bt.framebufferHeight-mr,Fr=bt.viewportWidth,bt.viewportWidth=Lr,Hr=bt.viewportHeight,bt.viewportHeight=Nr,rt.viewport(Nt,mr,Lr,Nr),jr[0]=Nt,jr[1]=mr,jr[2]=Lr,jr[3]=Nr,rt.blendColor(0,0,0,0),et[0]=0,et[1]=0,et[2]=0,et[3]=0,n?rt.enable(3042):rt.disable(3042),Ke.blend_enable=n,rt.blendEquationSeparate(32774,32774),Lt[0]=32774,Lt[1]=32774,rt.blendFuncSeparate(770,771,773,1),or[0]=770,or[1]=771,or[2]=773,or[3]=1,i?rt.enable(2929):rt.disable(2929),Ke.depth_enable=i,Gr=zi.viewport,mi=Gr.x|0,Ei=Gr.y|0,Vi="width"in Gr?Gr.width|0:bt.framebufferWidth-mi,ti="height"in Gr?Gr.height|0:bt.framebufferHeight-Ei,rt.scissor(mi,Ei,Vi,ti),Er[0]=mi,Er[1]=Ei,Er[2]=Vi,Er[3]=ti,a?rt.enable(3089):rt.disable(3089),Ke.scissor_enable=a,o?rt.enable(2960):rt.disable(2960),Ke.stencil_enable=o,Qi=Ke.profile,Qi&&(Yr=performance.now(),r.count++),rt.useProgram(s.program),oi=vt.angle_instanced_arrays,Me.setVAO(null),Fi=zi.positionBuffer,qr.buffer=Fi,rn=!1,tn=1,Di=0,Ii=0,xn=0,xi=0,Xr=null,dt=0,$t=!1,fr=5126,gr=0,Zr=0,wi=0,We(qr)?(rn=!0,Xr=kt.createStream(34962,qr),fr=Xr.dtype):(Xr=kt.getBuffer(qr),Xr?fr=Xr.dtype:"constant"in qr?(tn=2,typeof qr.constant=="number"?(Di=qr.constant,Ii=xn=xi=0):(Di=qr.constant.length>0?qr.constant[0]:0,Ii=qr.constant.length>1?qr.constant[1]:0,xn=qr.constant.length>2?qr.constant[2]:0,xi=qr.constant.length>3?qr.constant[3]:0)):(We(qr.buffer)?Xr=kt.createStream(34962,qr.buffer):Xr=kt.getBuffer(qr.buffer),fr="type"in qr?ln[qr.type]:Xr.dtype,$t=!!qr.normalized,dt=qr.size|0,gr=qr.offset|0,Zr=qr.stride|0,wi=qr.divisor|0)),$i=u.location,ni=Re[$i],tn===1?(ni.buffer||rt.enableVertexAttribArray($i),Xi=dt||2,(ni.type!==fr||ni.size!==Xi||ni.buffer!==Xr||ni.normalized!==$t||ni.offset!==gr||ni.stride!==Zr)&&(rt.bindBuffer(34962,Xr.buffer),rt.vertexAttribPointer($i,Xi,fr,$t,Zr,gr),ni.type=fr,ni.size=Xi,ni.buffer=Xr,ni.normalized=$t,ni.offset=gr,ni.stride=Zr),ni.divisor!==wi&&(oi.vertexAttribDivisorANGLE($i,wi),ni.divisor=wi)):(ni.buffer&&(rt.disableVertexAttribArray($i),ni.buffer=null),(ni.x!==Di||ni.y!==Ii||ni.z!==xn||ni.w!==xi)&&(rt.vertexAttrib4f($i,Di,Ii,xn,xi),ni.x=Di,ni.y=Ii,ni.z=xn,ni.w=xi)),aa=zi.positionFractBuffer,_i.buffer=aa,Mn=!1,Un=1,Ga=0,ma=0,oa=0,ka=0,so=null,Kr=0,Ia=!1,Yo=5126,fa=0,kn=0,Ta=0,We(_i)?(Mn=!0,so=kt.createStream(34962,_i),Yo=so.dtype):(so=kt.getBuffer(_i),so?Yo=so.dtype:"constant"in _i?(Un=2,typeof _i.constant=="number"?(Ga=_i.constant,ma=oa=ka=0):(Ga=_i.constant.length>0?_i.constant[0]:0,ma=_i.constant.length>1?_i.constant[1]:0,oa=_i.constant.length>2?_i.constant[2]:0,ka=_i.constant.length>3?_i.constant[3]:0)):(We(_i.buffer)?so=kt.createStream(34962,_i.buffer):so=kt.getBuffer(_i.buffer),Yo="type"in _i?ln[_i.type]:so.dtype,Ia=!!_i.normalized,Kr=_i.size|0,fa=_i.offset|0,kn=_i.stride|0,Ta=_i.divisor|0)),ys=l.location,uo=Re[ys],Un===1?(uo.buffer||rt.enableVertexAttribArray(ys),ls=Kr||2,(uo.type!==Yo||uo.size!==ls||uo.buffer!==so||uo.normalized!==Ia||uo.offset!==fa||uo.stride!==kn)&&(rt.bindBuffer(34962,so.buffer),rt.vertexAttribPointer(ys,ls,Yo,Ia,kn,fa),uo.type=Yo,uo.size=ls,uo.buffer=so,uo.normalized=Ia,uo.offset=fa,uo.stride=kn),uo.divisor!==Ta&&(oi.vertexAttribDivisorANGLE(ys,Ta),uo.divisor=Ta)):(uo.buffer&&(rt.disableVertexAttribArray(ys),uo.buffer=null),(uo.x!==Ga||uo.y!==ma||uo.z!==oa||uo.w!==ka)&&(rt.vertexAttrib4f(ys,Ga,ma,oa,ka),uo.x=Ga,uo.y=ma,uo.z=oa,uo.w=ka)),$a=zi.fill,fo=$a[0],mn=$a[1],ra=$a[2],wa=$a[3],rt.uniform4f(f.location,fo,mn,ra,wa),ws=zi.id,rt.uniform1f(c.location,ws),Co=zi.opacity,rt.uniform1f(h.location,Co),Po=zi.scale,Wi=Po[0],gn=Po[1],rt.uniform2f(d.location,Wi,gn),Ps=zi.scaleFract,Ha=Ps[0],Sn=Ps[1],rt.uniform2f(p.location,Ha,Sn),ao=zi.translate,Oa=ao[0],Ko=ao[1],rt.uniform2f(y.location,Oa,Ko),Qo=zi.translateFract,Hi=Qo[0],Sa=Qo[1],rt.uniform2f(b.location,Hi,Sa),Qa=v.call(this,bt,zi,0),vn=null,da=We(Qa),da?vn=Mt.createStream(Qa):vn=Mt.getElements(Qa),vn&&rt.bindBuffer(34963,vn.buffer.buffer),la=vn?vn.vertCount:-1,la&&(vo=zt.instances,vo>0?vn?oi.drawElementsInstancedANGLE(4,la,vn.type,0<<(vn.type-5121>>1),vo):oi.drawArraysInstancedANGLE(4,0,la,vo):vo<0&&(vn?rt.drawElements(4,la,vn.type,0<<(vn.type-5121>>1)):rt.drawArrays(4,0,la)),Ke.dirty=!0,Me.setVAO(null),bt.viewportWidth=Fr,bt.viewportHeight=Hr,Qi&&(r.cpuTime+=performance.now()-Yr),rn&&kt.destroyStream(Xr),Mn&&kt.destroyStream(so),da&&Mt.destroyStream(vn))},scope:function(zi,Dt,_t){var qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho;qt=zi.viewport,Nt=qt.x|0,mr=qt.y|0,Lr="width"in qt?qt.width|0:bt.framebufferWidth-Nt,Nr="height"in qt?qt.height|0:bt.framebufferHeight-mr,Fr=bt.viewportWidth,bt.viewportWidth=Lr,Hr=bt.viewportHeight,bt.viewportHeight=Nr,Gr=ii[0],ii[0]=Nt,mi=ii[1],ii[1]=mr,Ei=ii[2],ii[2]=Lr,Vi=ii[3],ii[3]=Nr,ti=Ve[0],Ve[0]=C,Qi=Ve[1],Ve[1]=E,Yr=Ve[2],Ve[2]=A,oi=Ve[3],Ve[3]=L,Fi=it.blend_enable,it.blend_enable=x,rn=tt[0],tt[0]=k,tn=tt[1],tt[1]=S,Di=jt[0],jt[0]=m,Ii=jt[1],jt[1]=P,xn=jt[2],jt[2]=M,xi=jt[3],jt[3]=O,Xr=it.depth_enable,it.depth_enable=F,dt=zi.viewport,$t=dt.x|0,fr=dt.y|0,gr="width"in dt?dt.width|0:bt.framebufferWidth-$t,Zr="height"in dt?dt.height|0:bt.framebufferHeight-fr,wi=cr[0],cr[0]=$t,$i=cr[1],cr[1]=fr,ni=cr[2],cr[2]=gr,Xi=cr[3],cr[3]=Zr,aa=it.scissor_enable,it.scissor_enable=U,Mn=it.stencil_enable,it.stencil_enable=G,Un=Ke.profile,Un&&(Ga=performance.now(),r.count++),ma=v.call(this,bt,zi,_t),oa=null,ka=We(ma),ka?oa=Mt.createStream(ma):oa=Mt.getElements(ma),so=zt.elements,zt.elements=oa,Kr=zt.offset,zt.offset=j,Ia=oa?oa.vertCount:-1,Yo=zt.count,zt.count=Ia,fa=zt.primitive,zt.primitive=W,kn=zi.scale,Ta=oe[N],oe[N]=kn,ys=zi.fill,uo=oe[H],oe[H]=ys,ls=zi.scaleFract,$a=oe[re],oe[re]=ls,fo=zi.translateFract,mn=oe[ae],oe[ae]=fo,ra=zi.translate,wa=oe[me],oe[me]=ra,ws=zi.opacity,Co=oe[Ce],oe[Ce]=ws,Po=bt.pixelRatio,Wi=oe[Ee],oe[Ee]=Po,gn=zi.id,Ps=oe[de],oe[de]=gn,Ha=te.call(this,bt,zi,_t),Sn=oe[Se],oe[Se]=Ha,ao=zi.positionBuffer,qr.buffer=ao,Oa=!1,Ko=1,Qo=0,Hi=0,Sa=0,Qa=0,vn=null,da=0,la=!1,vo=5126,As=0,ps=0,co=0,We(qr)?(Oa=!0,vn=kt.createStream(34962,qr),vo=vn.dtype):(vn=kt.getBuffer(qr),vn?vo=vn.dtype:"constant"in qr?(Ko=2,typeof qr.constant=="number"?(Qo=qr.constant,Hi=Sa=Qa=0):(Qo=qr.constant.length>0?qr.constant[0]:0,Hi=qr.constant.length>1?qr.constant[1]:0,Sa=qr.constant.length>2?qr.constant[2]:0,Qa=qr.constant.length>3?qr.constant[3]:0)):(We(qr.buffer)?vn=kt.createStream(34962,qr.buffer):vn=kt.getBuffer(qr.buffer),vo="type"in qr?ln[qr.type]:vn.dtype,la=!!qr.normalized,da=qr.size|0,As=qr.offset|0,ps=qr.stride|0,co=qr.divisor|0)),mo=Te.state,Te.state=Ko,No=Te.x,Te.x=Qo,jn=Te.y,Te.y=Hi,Go=Te.z,Te.z=Sa,Ys=Te.w,Te.w=Qa,qs=Te.buffer,Te.buffer=vn,Ns=Te.size,Te.size=da,Ba=Te.normalized,Te.normalized=la,ha=Te.type,Te.type=vo,Vs=Te.offset,Te.offset=As,Ya=Te.stride,Te.stride=ps,_n=Te.divisor,Te.divisor=co,Vn=zi.positionFractBuffer,_i.buffer=Vn,wo=!1,Ra=1,Xn=0,sn=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,We(_i)?(wo=!0,qn=kt.createStream(34962,_i),lo=qn.dtype):(qn=kt.getBuffer(_i),qn?lo=qn.dtype:"constant"in _i?(Ra=2,typeof _i.constant=="number"?(Xn=_i.constant,sn=$n=Ka=0):(Xn=_i.constant.length>0?_i.constant[0]:0,sn=_i.constant.length>1?_i.constant[1]:0,$n=_i.constant.length>2?_i.constant[2]:0,Ka=_i.constant.length>3?_i.constant[3]:0)):(We(_i.buffer)?qn=kt.createStream(34962,_i.buffer):qn=kt.getBuffer(_i.buffer),lo="type"in _i?ln[_i.type]:qn.dtype,Ja=!!_i.normalized,Eo=_i.size|0,eo=_i.offset|0,sa=_i.stride|0,es=_i.divisor|0)),Na=be.state,be.state=Ra,en=be.x,be.x=Xn,Pa=be.y,be.y=sn,to=be.z,be.z=$n,yo=be.w,be.w=Ka,Jo=be.buffer,be.buffer=qn,Ao=be.size,be.size=Eo,Dn=be.normalized,be.normalized=Ja,_a=be.type,be.type=lo,Ws=be.offset,be.offset=eo,Ca=be.stride,be.stride=sa,Es=be.divisor,be.divisor=es,Ts=$e.vert,$e.vert=He,Ho=$e.frag,$e.frag=Ie,Ke.dirty=!0,Dt(bt,zi,_t),bt.viewportWidth=Fr,bt.viewportHeight=Hr,ii[0]=Gr,ii[1]=mi,ii[2]=Ei,ii[3]=Vi,Ve[0]=ti,Ve[1]=Qi,Ve[2]=Yr,Ve[3]=oi,it.blend_enable=Fi,tt[0]=rn,tt[1]=tn,jt[0]=Di,jt[1]=Ii,jt[2]=xn,jt[3]=xi,it.depth_enable=Xr,cr[0]=wi,cr[1]=$i,cr[2]=ni,cr[3]=Xi,it.scissor_enable=aa,it.stencil_enable=Mn,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Mt.destroyStream(oa),zt.elements=so,zt.offset=Kr,zt.count=Yo,zt.primitive=fa,oe[N]=Ta,oe[H]=uo,oe[re]=$a,oe[ae]=mn,oe[me]=wa,oe[Ce]=Co,oe[Ee]=Wi,oe[de]=Ps,oe[Se]=Sn,Oa&&kt.destroyStream(vn),Te.state=mo,Te.x=No,Te.y=jn,Te.z=Go,Te.w=Ys,Te.buffer=qs,Te.size=Ns,Te.normalized=Ba,Te.type=ha,Te.offset=Vs,Te.stride=Ya,Te.divisor=_n,wo&&kt.destroyStream(qn),be.state=Na,be.x=en,be.y=Pa,be.z=to,be.w=yo,be.buffer=Jo,be.size=Ao,be.normalized=Dn,be.type=_a,be.offset=Ws,be.stride=Ca,be.divisor=Es,$e.vert=Ts,$e.frag=Ho,Ke.dirty=!0},batch:function(zi,Dt){var _t,qt,Nt,mr,Lr,Nr,Fr;if(_t=vt.angle_instanced_arrays,qt=Ne.next,qt!==Ne.cur&&(qt?rt.bindFramebuffer(36160,qt.framebuffer):rt.bindFramebuffer(36160,null),Ne.cur=qt),Ke.dirty){var Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa;Hr=it.dither,Hr!==Ke.dither&&(Hr?rt.enable(3024):rt.disable(3024),Ke.dither=Hr),Gr=it.depth_func,Gr!==Ke.depth_func&&(rt.depthFunc(Gr),Ke.depth_func=Gr),mi=yr[0],Ei=yr[1],(mi!==vr[0]||Ei!==vr[1])&&(rt.depthRange(mi,Ei),vr[0]=mi,vr[1]=Ei),Vi=it.depth_mask,Vi!==Ke.depth_mask&&(rt.depthMask(Vi),Ke.depth_mask=Vi),ti=Vt[0],Qi=Vt[1],Yr=Vt[2],oi=Vt[3],(ti!==Pe[0]||Qi!==Pe[1]||Yr!==Pe[2]||oi!==Pe[3])&&(rt.colorMask(ti,Qi,Yr,oi),Pe[0]=ti,Pe[1]=Qi,Pe[2]=Yr,Pe[3]=oi),Fi=it.cull_enable,Fi!==Ke.cull_enable&&(Fi?rt.enable(2884):rt.disable(2884),Ke.cull_enable=Fi),rn=it.cull_face,rn!==Ke.cull_face&&(rt.cullFace(rn),Ke.cull_face=rn),tn=it.frontFace,tn!==Ke.frontFace&&(rt.frontFace(tn),Ke.frontFace=tn),Di=it.lineWidth,Di!==Ke.lineWidth&&(rt.lineWidth(Di),Ke.lineWidth=Di),Ii=it.polygonOffset_enable,Ii!==Ke.polygonOffset_enable&&(Ii?rt.enable(32823):rt.disable(32823),Ke.polygonOffset_enable=Ii),xn=xe[0],xi=xe[1],(xn!==Oe[0]||xi!==Oe[1])&&(rt.polygonOffset(xn,xi),Oe[0]=xn,Oe[1]=xi),Xr=it.sample_alpha,Xr!==Ke.sample_alpha&&(Xr?rt.enable(32926):rt.disable(32926),Ke.sample_alpha=Xr),dt=it.sample_enable,dt!==Ke.sample_enable&&(dt?rt.enable(32928):rt.disable(32928),Ke.sample_enable=dt),$t=ze[0],fr=ze[1],($t!==De[0]||fr!==De[1])&&(rt.sampleCoverage($t,fr),De[0]=$t,De[1]=fr),gr=it.stencil_mask,gr!==Ke.stencil_mask&&(rt.stencilMask(gr),Ke.stencil_mask=gr),Zr=ht[0],wi=ht[1],$i=ht[2],(Zr!==st[0]||wi!==st[1]||$i!==st[2])&&(rt.stencilFunc(Zr,wi,$i),st[0]=Zr,st[1]=wi,st[2]=$i),ni=gt[0],Xi=gt[1],aa=gt[2],Mn=gt[3],(ni!==xt[0]||Xi!==xt[1]||aa!==xt[2]||Mn!==xt[3])&&(rt.stencilOpSeparate(ni,Xi,aa,Mn),xt[0]=ni,xt[1]=Xi,xt[2]=aa,xt[3]=Mn),Un=pr[0],Ga=pr[1],ma=pr[2],oa=pr[3],(Un!==br[0]||Ga!==br[1]||ma!==br[2]||oa!==br[3])&&(rt.stencilOpSeparate(Un,Ga,ma,oa),br[0]=Un,br[1]=Ga,br[2]=ma,br[3]=oa)}rt.blendColor(0,0,0,0),et[0]=0,et[1]=0,et[2]=0,et[3]=0,ge?rt.enable(3042):rt.disable(3042),Ke.blend_enable=ge,rt.blendEquationSeparate(32774,32774),Lt[0]=32774,Lt[1]=32774,rt.blendFuncSeparate(770,771,773,1),or[0]=770,or[1]=771,or[2]=773,or[3]=1,Be?rt.enable(2929):rt.disable(2929),Ke.depth_enable=Be,ce?rt.enable(3089):rt.disable(3089),Ke.scissor_enable=ce,je?rt.enable(2960):rt.disable(2960),Ke.stencil_enable=je,Nt=Ke.profile,Nt&&(mr=performance.now(),r.count+=Dt),rt.useProgram(s.program),Lr=vt.angle_instanced_arrays;var ka;for(Me.setVAO(null),ka=zt.instances,Nr=0;Nr0?qr.constant[0]:0,Co=qr.constant.length>1?qr.constant[1]:0,Po=qr.constant.length>2?qr.constant[2]:0,Wi=qr.constant.length>3?qr.constant[3]:0)):(We(qr.buffer)?gn=kt.createStream(34962,qr.buffer):gn=kt.getBuffer(qr.buffer),Sn="type"in qr?ln[qr.type]:gn.dtype,Ha=!!qr.normalized,Ps=qr.size|0,ao=qr.offset|0,Oa=qr.stride|0,Ko=qr.divisor|0)),Qo=u.location,Hi=Re[Qo],wa===1?(Hi.buffer||rt.enableVertexAttribArray(Qo),Sa=Ps||2,(Hi.type!==Sn||Hi.size!==Sa||Hi.buffer!==gn||Hi.normalized!==Ha||Hi.offset!==ao||Hi.stride!==Oa)&&(rt.bindBuffer(34962,gn.buffer),rt.vertexAttribPointer(Qo,Sa,Sn,Ha,Oa,ao),Hi.type=Sn,Hi.size=Sa,Hi.buffer=gn,Hi.normalized=Ha,Hi.offset=ao,Hi.stride=Oa),Hi.divisor!==Ko&&(Lr.vertexAttribDivisorANGLE(Qo,Ko),Hi.divisor=Ko)):(Hi.buffer&&(rt.disableVertexAttribArray(Qo),Hi.buffer=null),(Hi.x!==ws||Hi.y!==Co||Hi.z!==Po||Hi.w!==Wi)&&(rt.vertexAttrib4f(Qo,ws,Co,Po,Wi),Hi.x=ws,Hi.y=Co,Hi.z=Po,Hi.w=Wi)),Qa=Fr.positionFractBuffer,_i.buffer=Qa,vn=!1,da=1,la=0,vo=0,As=0,ps=0,co=null,mo=0,No=!1,jn=5126,Go=0,Ys=0,qs=0,We(_i)?(vn=!0,co=kt.createStream(34962,_i),jn=co.dtype):(co=kt.getBuffer(_i),co?jn=co.dtype:"constant"in _i?(da=2,typeof _i.constant=="number"?(la=_i.constant,vo=As=ps=0):(la=_i.constant.length>0?_i.constant[0]:0,vo=_i.constant.length>1?_i.constant[1]:0,As=_i.constant.length>2?_i.constant[2]:0,ps=_i.constant.length>3?_i.constant[3]:0)):(We(_i.buffer)?co=kt.createStream(34962,_i.buffer):co=kt.getBuffer(_i.buffer),jn="type"in _i?ln[_i.type]:co.dtype,No=!!_i.normalized,mo=_i.size|0,Go=_i.offset|0,Ys=_i.stride|0,qs=_i.divisor|0)),Ns=l.location,Ba=Re[Ns],da===1?(Ba.buffer||rt.enableVertexAttribArray(Ns),ha=mo||2,(Ba.type!==jn||Ba.size!==ha||Ba.buffer!==co||Ba.normalized!==No||Ba.offset!==Go||Ba.stride!==Ys)&&(rt.bindBuffer(34962,co.buffer),rt.vertexAttribPointer(Ns,ha,jn,No,Ys,Go),Ba.type=jn,Ba.size=ha,Ba.buffer=co,Ba.normalized=No,Ba.offset=Go,Ba.stride=Ys),Ba.divisor!==qs&&(Lr.vertexAttribDivisorANGLE(Ns,qs),Ba.divisor=qs)):(Ba.buffer&&(rt.disableVertexAttribArray(Ns),Ba.buffer=null),(Ba.x!==la||Ba.y!==vo||Ba.z!==As||Ba.w!==ps)&&(rt.vertexAttrib4f(Ns,la,vo,As,ps),Ba.x=la,Ba.y=vo,Ba.z=As,Ba.w=ps)),Vs=Fr.fill,Ya=Vs[0],Vn=Vs[1],Ra=Vs[2],sn=Vs[3],(!Nr||_n!==Ya||wo!==Vn||Xn!==Ra||$n!==sn)&&(_n=Ya,wo=Vn,Xn=Ra,$n=sn,rt.uniform4f(f.location,Ya,Vn,Ra,sn)),Ka=Fr.id,(!Nr||qn!==Ka)&&(qn=Ka,rt.uniform1f(c.location,Ka)),Eo=Fr.opacity,(!Nr||Ja!==Eo)&&(Ja=Eo,rt.uniform1f(h.location,Eo)),lo=Fr.scale,eo=lo[0],es=lo[1],(!Nr||sa!==eo||Na!==es)&&(sa=eo,Na=es,rt.uniform2f(d.location,eo,es)),en=Fr.scaleFract,Pa=en[0],yo=en[1],(!Nr||to!==Pa||Jo!==yo)&&(to=Pa,Jo=yo,rt.uniform2f(p.location,Pa,yo)),Ao=Fr.translate,Dn=Ao[0],Ws=Ao[1],(!Nr||_a!==Dn||Ca!==Ws)&&(_a=Dn,Ca=Ws,rt.uniform2f(y.location,Dn,Ws)),Es=Fr.translateFract,Ts=Es[0],Wa=Es[1],(!Nr||Ho!==Ts||To!==Wa)&&(Ho=Ts,To=Wa,rt.uniform2f(b.location,Ts,Wa)),ts=v.call(this,bt,Fr,Nr),Wo=null,qa=We(ts),qa?Wo=Mt.createStream(ts):Wo=Mt.getElements(ts),Wo&&rt.bindBuffer(34963,Wo.buffer.buffer),on=Wo?Wo.vertCount:-1,on&&(ka>0?Wo?Lr.drawElementsInstancedANGLE(4,on,Wo.type,0<<(Wo.type-5121>>1),ka):Lr.drawArraysInstancedANGLE(4,0,on,ka):ka<0&&(Wo?rt.drawElements(4,on,Wo.type,0<<(Wo.type-5121>>1)):rt.drawArrays(4,0,on)),bt.viewportWidth=kn,bt.viewportHeight=Ta,ra&&kt.destroyStream(gn),vn&&kt.destroyStream(co),qa&&Mt.destroyStream(Wo))}Ke.dirty=!0,Me.setVAO(null),Nt&&(r.cpuTime+=performance.now()-mr)}}}});var O8=we((kbr,c7e)=>{c7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We){"use strict";var Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi;return Ve=t.gl,et=t.context,tt=t.strings,Lt=t.next,jt=t.current,or=t.draw,yr=t.elements,vr=t.buffer,Vt=t.shader,Pe=t.attributes,xe=t.vao,Oe=t.uniforms,ze=t.framebuffer,De=t.extensions,ht=t.timer,st=t.isBufferArgs,gt=Lt.blend_color,xt=jt.blend_color,pr=Lt.blend_equation,br=jt.blend_equation,cr=Lt.blend_func,Er=jt.blend_func,ii=Lt.depth_range,jr=jt.depth_range,kr=Lt.colorMask,Vr=jt.colorMask,Ai=Lt.polygonOffset_offset,Bi=jt.polygonOffset_offset,Ri=Lt.sample_coverage,ln=jt.sample_coverage,hn=Lt.stencil_func,qr=jt.stencil_func,_i=Lt.stencil_opFront,zi=jt.stencil_opFront,Dt=Lt.stencil_opBack,_t=jt.stencil_opBack,qt=Lt.scissor_box,Nt=jt.scissor_box,mr=Lt.viewport,Lr=jt.viewport,Nr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Fr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Hr={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Gr={add:32774,subtract:32778,"reverse subtract":32779},mi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ei={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Vi={cw:2304,ccw:2305},ti={},ti.buffer=n,ti.divisor=1,Qi={},Qi.buffer=i,Qi.divisor=1,Yr={},Yr.buffer=a,Yr.divisor=1,oi={},oi.buffer=o,oi.divisor=1,{draw:function(Fi){var rn,tn,Di,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us;if(rn=De.angle_instanced_arrays,tn=ze.next,tn!==ze.cur&&(tn?Ve.bindFramebuffer(36160,tn.framebuffer):Ve.bindFramebuffer(36160,null),ze.cur=tn),jt.dirty){var Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs;Ds=Lt.dither,Ds!==jt.dither&&(Ds?Ve.enable(3024):Ve.disable(3024),jt.dither=Ds),fl=Lt.depth_func,fl!==jt.depth_func&&(Ve.depthFunc(fl),jt.depth_func=fl),as=ii[0],Ma=ii[1],(as!==jr[0]||Ma!==jr[1])&&(Ve.depthRange(as,Ma),jr[0]=as,jr[1]=Ma),Qs=Lt.depth_mask,Qs!==jt.depth_mask&&(Ve.depthMask(Qs),jt.depth_mask=Qs),ho=kr[0],gs=kr[1],Vo=kr[2],Do=kr[3],(ho!==Vr[0]||gs!==Vr[1]||Vo!==Vr[2]||Do!==Vr[3])&&(Ve.colorMask(ho,gs,Vo,Do),Vr[0]=ho,Vr[1]=gs,Vr[2]=Vo,Vr[3]=Do),Lo=Lt.cull_enable,Lo!==jt.cull_enable&&(Lo?Ve.enable(2884):Ve.disable(2884),jt.cull_enable=Lo),xs=Lt.cull_face,xs!==jt.cull_face&&(Ve.cullFace(xs),jt.cull_face=xs),ks=Lt.frontFace,ks!==jt.frontFace&&(Ve.frontFace(ks),jt.frontFace=ks),Ea=Lt.lineWidth,Ea!==jt.lineWidth&&(Ve.lineWidth(Ea),jt.lineWidth=Ea),Jn=Lt.polygonOffset_enable,Jn!==jt.polygonOffset_enable&&(Jn?Ve.enable(32823):Ve.disable(32823),jt.polygonOffset_enable=Jn),Bo=Ai[0],rl=Ai[1],(Bo!==Bi[0]||rl!==Bi[1])&&(Ve.polygonOffset(Bo,rl),Bi[0]=Bo,Bi[1]=rl),Gs=Lt.sample_alpha,Gs!==jt.sample_alpha&&(Gs?Ve.enable(32926):Ve.disable(32926),jt.sample_alpha=Gs),bs=Lt.sample_enable,bs!==jt.sample_enable&&(bs?Ve.enable(32928):Ve.disable(32928),jt.sample_enable=bs),zs=Ri[0],$o=Ri[1],(zs!==ln[0]||$o!==ln[1])&&(Ve.sampleCoverage(zs,$o),ln[0]=zs,ln[1]=$o),Aa=Lt.stencil_enable,Aa!==jt.stencil_enable&&(Aa?Ve.enable(2960):Ve.disable(2960),jt.stencil_enable=Aa),os=Lt.stencil_mask,os!==jt.stencil_mask&&(Ve.stencilMask(os),jt.stencil_mask=os),_l=hn[0],Ss=hn[1],po=hn[2],(_l!==qr[0]||Ss!==qr[1]||po!==qr[2])&&(Ve.stencilFunc(_l,Ss,po),qr[0]=_l,qr[1]=Ss,qr[2]=po),go=_i[0],ss=_i[1],qo=_i[2],zo=_i[3],(go!==zi[0]||ss!==zi[1]||qo!==zi[2]||zo!==zi[3])&&(Ve.stencilOpSeparate(go,ss,qo,zo),zi[0]=go,zi[1]=ss,zi[2]=qo,zi[3]=zo),io=Dt[0],Io=Dt[1],Da=Dt[2],vs=Dt[3],(io!==_t[0]||Io!==_t[1]||Da!==_t[2]||vs!==_t[3])&&(Ve.stencilOpSeparate(io,Io,Da,vs),_t[0]=io,_t[1]=Io,_t[2]=Da,_t[3]=vs)}Di=Fi.viewport,Ii=Di.x|0,xn=Di.y|0,xi="width"in Di?Di.width|0:et.framebufferWidth-Ii,Xr="height"in Di?Di.height|0:et.framebufferHeight-xn,dt=et.viewportWidth,et.viewportWidth=xi,$t=et.viewportHeight,et.viewportHeight=Xr,Ve.viewport(Ii,xn,xi,Xr),Lr[0]=Ii,Lr[1]=xn,Lr[2]=xi,Lr[3]=Xr,Ve.blendColor(0,0,0,0),xt[0]=0,xt[1]=0,xt[2]=0,xt[3]=0,s?Ve.enable(3042):Ve.disable(3042),jt.blend_enable=s,Ve.blendEquationSeparate(32774,32774),br[0]=32774,br[1]=32774,Ve.blendFuncSeparate(770,771,773,1),Er[0]=770,Er[1]=771,Er[2]=773,Er[3]=1,u?Ve.enable(2929):Ve.disable(2929),jt.depth_enable=u,fr=Fi.viewport,gr=fr.x|0,Zr=fr.y|0,wi="width"in fr?fr.width|0:et.framebufferWidth-gr,$i="height"in fr?fr.height|0:et.framebufferHeight-Zr,Ve.scissor(gr,Zr,wi,$i),Nt[0]=gr,Nt[1]=Zr,Nt[2]=wi,Nt[3]=$i,l?Ve.enable(3089):Ve.disable(3089),jt.scissor_enable=l,ni=jt.profile,ni&&(Xi=performance.now(),r.count++),Ve.useProgram(f.program),aa=De.angle_instanced_arrays,xe.setVAO(null),Mn=h.location,Un=Pe[Mn],Un.buffer||Ve.enableVertexAttribArray(Mn),(Un.type!==5126||Un.size!==2||Un.buffer!==c||Un.normalized!==!1||Un.offset!==16||Un.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(Mn,2,5126,!1,24,16),Un.type=5126,Un.size=2,Un.buffer=c,Un.normalized=!1,Un.offset=16,Un.stride=24),Un.divisor!==0&&(aa.vertexAttribDivisorANGLE(Mn,0),Un.divisor=0),Ga=d.call(this,et,Fi,0),ti.offset=Ga,ma=!1,oa=1,ka=0,so=0,Kr=0,Ia=0,Yo=null,fa=0,kn=!1,Ta=5126,ys=0,uo=0,ls=0,st(ti)?(ma=!0,Yo=vr.createStream(34962,ti),Ta=Yo.dtype):(Yo=vr.getBuffer(ti),Yo?Ta=Yo.dtype:"constant"in ti?(oa=2,typeof ti.constant=="number"?(ka=ti.constant,so=Kr=Ia=0):(ka=ti.constant.length>0?ti.constant[0]:0,so=ti.constant.length>1?ti.constant[1]:0,Kr=ti.constant.length>2?ti.constant[2]:0,Ia=ti.constant.length>3?ti.constant[3]:0)):(st(ti.buffer)?Yo=vr.createStream(34962,ti.buffer):Yo=vr.getBuffer(ti.buffer),Ta="type"in ti?Ei[ti.type]:Yo.dtype,kn=!!ti.normalized,fa=ti.size|0,ys=ti.offset|0,uo=ti.stride|0,ls=ti.divisor|0)),$a=p.location,fo=Pe[$a],oa===1?(fo.buffer||Ve.enableVertexAttribArray($a),mn=fa||4,(fo.type!==Ta||fo.size!==mn||fo.buffer!==Yo||fo.normalized!==kn||fo.offset!==ys||fo.stride!==uo)&&(Ve.bindBuffer(34962,Yo.buffer),Ve.vertexAttribPointer($a,mn,Ta,kn,uo,ys),fo.type=Ta,fo.size=mn,fo.buffer=Yo,fo.normalized=kn,fo.offset=ys,fo.stride=uo),fo.divisor!==ls&&(aa.vertexAttribDivisorANGLE($a,ls),fo.divisor=ls)):(fo.buffer&&(Ve.disableVertexAttribArray($a),fo.buffer=null),(fo.x!==ka||fo.y!==so||fo.z!==Kr||fo.w!==Ia)&&(Ve.vertexAttrib4f($a,ka,so,Kr,Ia),fo.x=ka,fo.y=so,fo.z=Kr,fo.w=Ia)),ra=y.location,wa=Pe[ra],wa.buffer||Ve.enableVertexAttribArray(ra),(wa.type!==5126||wa.size!==2||wa.buffer!==c||wa.normalized!==!1||wa.offset!==0||wa.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(ra,2,5126,!1,24,0),wa.type=5126,wa.size=2,wa.buffer=c,wa.normalized=!1,wa.offset=0,wa.stride=24),wa.divisor!==0&&(aa.vertexAttribDivisorANGLE(ra,0),wa.divisor=0),ws=b.call(this,et,Fi,0),oi.offset=ws,Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Oa=!1,Ko=5126,Qo=0,Hi=0,Sa=0,st(oi)?(Co=!0,Sn=vr.createStream(34962,oi),Ko=Sn.dtype):(Sn=vr.getBuffer(oi),Sn?Ko=Sn.dtype:"constant"in oi?(Po=2,typeof oi.constant=="number"?(Wi=oi.constant,gn=Ps=Ha=0):(Wi=oi.constant.length>0?oi.constant[0]:0,gn=oi.constant.length>1?oi.constant[1]:0,Ps=oi.constant.length>2?oi.constant[2]:0,Ha=oi.constant.length>3?oi.constant[3]:0)):(st(oi.buffer)?Sn=vr.createStream(34962,oi.buffer):Sn=vr.getBuffer(oi.buffer),Ko="type"in oi?Ei[oi.type]:Sn.dtype,Oa=!!oi.normalized,ao=oi.size|0,Qo=oi.offset|0,Hi=oi.stride|0,Sa=oi.divisor|0)),Qa=v.location,vn=Pe[Qa],Po===1?(vn.buffer||Ve.enableVertexAttribArray(Qa),da=ao||4,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Oa||vn.offset!==Qo||vn.stride!==Hi)&&(Ve.bindBuffer(34962,Sn.buffer),Ve.vertexAttribPointer(Qa,da,Ko,Oa,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Oa,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(aa.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ve.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ve.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=C.location,vo=Pe[la],vo.buffer||Ve.enableVertexAttribArray(la),(vo.type!==5126||vo.size!==2||vo.buffer!==c||vo.normalized!==!1||vo.offset!==8||vo.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(la,2,5126,!1,24,8),vo.type=5126,vo.size=2,vo.buffer=c,vo.normalized=!1,vo.offset=8,vo.stride=24),vo.divisor!==0&&(aa.vertexAttribDivisorANGLE(la,0),vo.divisor=0),As=E.call(this,et,Fi,0),Qi.offset=As,ps=!1,co=1,mo=0,No=0,jn=0,Go=0,Ys=null,qs=0,Ns=!1,Ba=5126,ha=0,Vs=0,Ya=0,st(Qi)?(ps=!0,Ys=vr.createStream(34962,Qi),Ba=Ys.dtype):(Ys=vr.getBuffer(Qi),Ys?Ba=Ys.dtype:"constant"in Qi?(co=2,typeof Qi.constant=="number"?(mo=Qi.constant,No=jn=Go=0):(mo=Qi.constant.length>0?Qi.constant[0]:0,No=Qi.constant.length>1?Qi.constant[1]:0,jn=Qi.constant.length>2?Qi.constant[2]:0,Go=Qi.constant.length>3?Qi.constant[3]:0)):(st(Qi.buffer)?Ys=vr.createStream(34962,Qi.buffer):Ys=vr.getBuffer(Qi.buffer),Ba="type"in Qi?Ei[Qi.type]:Ys.dtype,Ns=!!Qi.normalized,qs=Qi.size|0,ha=Qi.offset|0,Vs=Qi.stride|0,Ya=Qi.divisor|0)),_n=A.location,Vn=Pe[_n],co===1?(Vn.buffer||Ve.enableVertexAttribArray(_n),wo=qs||2,(Vn.type!==Ba||Vn.size!==wo||Vn.buffer!==Ys||Vn.normalized!==Ns||Vn.offset!==ha||Vn.stride!==Vs)&&(Ve.bindBuffer(34962,Ys.buffer),Ve.vertexAttribPointer(_n,wo,Ba,Ns,Vs,ha),Vn.type=Ba,Vn.size=wo,Vn.buffer=Ys,Vn.normalized=Ns,Vn.offset=ha,Vn.stride=Vs),Vn.divisor!==Ya&&(aa.vertexAttribDivisorANGLE(_n,Ya),Vn.divisor=Ya)):(Vn.buffer&&(Ve.disableVertexAttribArray(_n),Vn.buffer=null),(Vn.x!==mo||Vn.y!==No||Vn.z!==jn||Vn.w!==Go)&&(Ve.vertexAttrib4f(_n,mo,No,jn,Go),Vn.x=mo,Vn.y=No,Vn.z=jn,Vn.w=Go)),Ra=L.call(this,et,Fi,0),Yr.offset=Ra,Xn=!1,sn=1,$n=0,Ka=0,qn=0,Eo=0,Ja=null,lo=0,eo=!1,sa=5126,es=0,Na=0,en=0,st(Yr)?(Xn=!0,Ja=vr.createStream(34962,Yr),sa=Ja.dtype):(Ja=vr.getBuffer(Yr),Ja?sa=Ja.dtype:"constant"in Yr?(sn=2,typeof Yr.constant=="number"?($n=Yr.constant,Ka=qn=Eo=0):($n=Yr.constant.length>0?Yr.constant[0]:0,Ka=Yr.constant.length>1?Yr.constant[1]:0,qn=Yr.constant.length>2?Yr.constant[2]:0,Eo=Yr.constant.length>3?Yr.constant[3]:0)):(st(Yr.buffer)?Ja=vr.createStream(34962,Yr.buffer):Ja=vr.getBuffer(Yr.buffer),sa="type"in Yr?Ei[Yr.type]:Ja.dtype,eo=!!Yr.normalized,lo=Yr.size|0,es=Yr.offset|0,Na=Yr.stride|0,en=Yr.divisor|0)),Pa=x.location,to=Pe[Pa],sn===1?(to.buffer||Ve.enableVertexAttribArray(Pa),yo=lo||2,(to.type!==sa||to.size!==yo||to.buffer!==Ja||to.normalized!==eo||to.offset!==es||to.stride!==Na)&&(Ve.bindBuffer(34962,Ja.buffer),Ve.vertexAttribPointer(Pa,yo,sa,eo,Na,es),to.type=sa,to.size=yo,to.buffer=Ja,to.normalized=eo,to.offset=es,to.stride=Na),to.divisor!==en&&(aa.vertexAttribDivisorANGLE(Pa,en),to.divisor=en)):(to.buffer&&(Ve.disableVertexAttribArray(Pa),to.buffer=null),(to.x!==$n||to.y!==Ka||to.z!==qn||to.w!==Eo)&&(Ve.vertexAttrib4f(Pa,$n,Ka,qn,Eo),to.x=$n,to.y=Ka,to.z=qn,to.w=Eo)),Jo=Fi.capSize,Ve.uniform1f(k.location,Jo),Ao=Fi.lineWidth,Ve.uniform1f(S.location,Ao),Dn=Fi.opacity,Ve.uniform1f(m.location,Dn),_a=Fi.scale,Ws=_a[0],Ca=_a[1],Ve.uniform2f(P.location,Ws,Ca),Es=Fi.scaleFract,Ts=Es[0],Ho=Es[1],Ve.uniform2f(M.location,Ts,Ho),Wa=Fi.translate,To=Wa[0],ts=Wa[1],Ve.uniform2f(O.location,To,ts),Wo=Fi.translateFract,qa=Wo[0],on=Wo[1],Ve.uniform2f(F.location,qa,on),Oo=G.call(this,et,Fi,0),ko=Oo[0],oo=Oo[1],za=Oo[2],ea=Oo[3],Ve.uniform4f(U.location,ko,oo,za,ea),rs=or.elements,rs?Ve.bindBuffer(34963,rs.buffer.buffer):xe.currentVAO&&(rs=yr.getElements(xe.currentVAO.elements),rs&&Ve.bindBuffer(34963,rs.buffer.buffer)),$s=or.offset,us=Fi.count,us>0?rs?aa.drawElementsInstancedANGLE(4,36,rs.type,$s<<(rs.type-5121>>1),us):aa.drawArraysInstancedANGLE(4,$s,36,us):us<0&&(rs?Ve.drawElements(4,36,rs.type,$s<<(rs.type-5121>>1)):Ve.drawArrays(4,$s,36)),jt.dirty=!0,xe.setVAO(null),et.viewportWidth=dt,et.viewportHeight=$t,ni&&(r.cpuTime+=performance.now()-Xi),ma&&vr.destroyStream(Yo),Co&&vr.destroyStream(Sn),ps&&vr.destroyStream(Ys),Xn&&vr.destroyStream(Ja)},scope:function(Fi,rn,tn){var Di,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml;Di=Fi.viewport,Ii=Di.x|0,xn=Di.y|0,xi="width"in Di?Di.width|0:et.framebufferWidth-Ii,Xr="height"in Di?Di.height|0:et.framebufferHeight-xn,dt=et.viewportWidth,et.viewportWidth=xi,$t=et.viewportHeight,et.viewportHeight=Xr,fr=mr[0],mr[0]=Ii,gr=mr[1],mr[1]=xn,Zr=mr[2],mr[2]=xi,wi=mr[3],mr[3]=Xr,$i=gt[0],gt[0]=j,ni=gt[1],gt[1]=W,Xi=gt[2],gt[2]=N,aa=gt[3],gt[3]=H,Mn=Lt.blend_enable,Lt.blend_enable=re,Un=pr[0],pr[0]=ae,Ga=pr[1],pr[1]=me,ma=cr[0],cr[0]=Ce,oa=cr[1],cr[1]=Ee,ka=cr[2],cr[2]=de,so=cr[3],cr[3]=te,Kr=Lt.depth_enable,Lt.depth_enable=Se,Ia=Fi.viewport,Yo=Ia.x|0,fa=Ia.y|0,kn="width"in Ia?Ia.width|0:et.framebufferWidth-Yo,Ta="height"in Ia?Ia.height|0:et.framebufferHeight-fa,ys=qt[0],qt[0]=Yo,uo=qt[1],qt[1]=fa,ls=qt[2],qt[2]=kn,$a=qt[3],qt[3]=Ta,fo=Lt.scissor_enable,Lt.scissor_enable=Te,mn=jt.profile,mn&&(ra=performance.now(),r.count++),wa=or.count,or.count=be,ws=Fi.count,Co=or.instances,or.instances=ws,Po=or.primitive,or.primitive=He,Wi=Fi.range,gn=Oe[Ie],Oe[Ie]=Wi,Ps=Fi.lineWidth,Ha=Oe[ge],Oe[ge]=Ps,Sn=Fi.capSize,ao=Oe[Be],Oe[Be]=Sn,Oa=Fi.opacity,Ko=Oe[ce],Oe[ce]=Oa,Qo=Fi.scale,Hi=Oe[je],Oe[je]=Qo,Sa=Fi.translate,Qa=Oe[rt],Oe[rt]=Sa,vn=Fi.scaleFract,da=Oe[bt],Oe[bt]=vn,la=Fi.translateFract,vo=Oe[Ot],Oe[Ot]=la,As=G.call(this,et,Fi,tn),ps=Oe[it],Oe[it]=As,co=Ke.state,Ke.state=1,mo=Ke.x,Ke.x=0,No=Ke.y,Ke.y=0,jn=Ke.z,Ke.z=0,Go=Ke.w,Ke.w=0,Ys=Ke.buffer,Ke.buffer=c,qs=Ke.size,Ke.size=0,Ns=Ke.normalized,Ke.normalized=!1,Ba=Ke.type,Ke.type=5126,ha=Ke.offset,Ke.offset=0,Vs=Ke.stride,Ke.stride=24,Ya=Ke.divisor,Ke.divisor=0,_n=zt.state,zt.state=1,Vn=zt.x,zt.x=0,wo=zt.y,zt.y=0,Ra=zt.z,zt.z=0,Xn=zt.w,zt.w=0,sn=zt.buffer,zt.buffer=c,$n=zt.size,zt.size=0,Ka=zt.normalized,zt.normalized=!1,qn=zt.type,zt.type=5126,Eo=zt.offset,zt.offset=8,Ja=zt.stride,zt.stride=24,lo=zt.divisor,zt.divisor=0,eo=Mt.state,Mt.state=1,sa=Mt.x,Mt.x=0,es=Mt.y,Mt.y=0,Na=Mt.z,Mt.z=0,en=Mt.w,Mt.w=0,Pa=Mt.buffer,Mt.buffer=c,to=Mt.size,Mt.size=0,yo=Mt.normalized,Mt.normalized=!1,Jo=Mt.type,Mt.type=5126,Ao=Mt.offset,Mt.offset=16,Dn=Mt.stride,Mt.stride=24,_a=Mt.divisor,Mt.divisor=0,Ws=d.call(this,et,Fi,tn),ti.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,on=5126,Oo=0,ko=0,oo=0,st(ti)?(Ca=!0,ts=vr.createStream(34962,ti),on=ts.dtype):(ts=vr.getBuffer(ti),ts?on=ts.dtype:"constant"in ti?(Es=2,typeof ti.constant=="number"?(Ts=ti.constant,Ho=Wa=To=0):(Ts=ti.constant.length>0?ti.constant[0]:0,Ho=ti.constant.length>1?ti.constant[1]:0,Wa=ti.constant.length>2?ti.constant[2]:0,To=ti.constant.length>3?ti.constant[3]:0)):(st(ti.buffer)?ts=vr.createStream(34962,ti.buffer):ts=vr.getBuffer(ti.buffer),on="type"in ti?Ei[ti.type]:ts.dtype,qa=!!ti.normalized,Wo=ti.size|0,Oo=ti.offset|0,ko=ti.stride|0,oo=ti.divisor|0)),za=kt.state,kt.state=Es,ea=kt.x,kt.x=Ts,rs=kt.y,kt.y=Ho,$s=kt.z,kt.z=Wa,us=kt.w,kt.w=To,Ds=kt.buffer,kt.buffer=ts,fl=kt.size,kt.size=Wo,as=kt.normalized,kt.normalized=qa,Ma=kt.type,kt.type=on,Qs=kt.offset,kt.offset=Oo,ho=kt.stride,kt.stride=ko,gs=kt.divisor,kt.divisor=oo,Vo=E.call(this,et,Fi,tn),Qi.offset=Vo,Do=!1,Lo=1,xs=0,ks=0,Ea=0,Jn=0,Bo=null,rl=0,Gs=!1,bs=5126,zs=0,$o=0,Aa=0,st(Qi)?(Do=!0,Bo=vr.createStream(34962,Qi),bs=Bo.dtype):(Bo=vr.getBuffer(Qi),Bo?bs=Bo.dtype:"constant"in Qi?(Lo=2,typeof Qi.constant=="number"?(xs=Qi.constant,ks=Ea=Jn=0):(xs=Qi.constant.length>0?Qi.constant[0]:0,ks=Qi.constant.length>1?Qi.constant[1]:0,Ea=Qi.constant.length>2?Qi.constant[2]:0,Jn=Qi.constant.length>3?Qi.constant[3]:0)):(st(Qi.buffer)?Bo=vr.createStream(34962,Qi.buffer):Bo=vr.getBuffer(Qi.buffer),bs="type"in Qi?Ei[Qi.type]:Bo.dtype,Gs=!!Qi.normalized,rl=Qi.size|0,zs=Qi.offset|0,$o=Qi.stride|0,Aa=Qi.divisor|0)),os=$e.state,$e.state=Lo,_l=$e.x,$e.x=xs,Ss=$e.y,$e.y=ks,po=$e.z,$e.z=Ea,go=$e.w,$e.w=Jn,ss=$e.buffer,$e.buffer=Bo,qo=$e.size,$e.size=rl,zo=$e.normalized,$e.normalized=Gs,io=$e.type,$e.type=bs,Io=$e.offset,$e.offset=zs,Da=$e.stride,$e.stride=$o,vs=$e.divisor,$e.divisor=Aa,fs=L.call(this,et,Fi,tn),Yr.offset=fs,cl=!1,el=1,Hs=0,Ro=0,tl=0,Fs=0,hl=null,Fa=0,Ms=!1,jo=5126,Rs=0,Is=0,Os=0,st(Yr)?(cl=!0,hl=vr.createStream(34962,Yr),jo=hl.dtype):(hl=vr.getBuffer(Yr),hl?jo=hl.dtype:"constant"in Yr?(el=2,typeof Yr.constant=="number"?(Hs=Yr.constant,Ro=tl=Fs=0):(Hs=Yr.constant.length>0?Yr.constant[0]:0,Ro=Yr.constant.length>1?Yr.constant[1]:0,tl=Yr.constant.length>2?Yr.constant[2]:0,Fs=Yr.constant.length>3?Yr.constant[3]:0)):(st(Yr.buffer)?hl=vr.createStream(34962,Yr.buffer):hl=vr.getBuffer(Yr.buffer),jo="type"in Yr?Ei[Yr.type]:hl.dtype,Ms=!!Yr.normalized,Fa=Yr.size|0,Rs=Yr.offset|0,Is=Yr.stride|0,Os=Yr.divisor|0)),St=Re.state,Re.state=el,Ut=Re.x,Re.x=Hs,xr=Re.y,Re.y=Ro,dr=Re.z,Re.z=tl,Dr=Re.w,Re.w=Fs,yi=Re.buffer,Re.buffer=hl,Ti=Re.size,Re.size=Fa,ki=Re.normalized,Re.normalized=Ms,Ki=Re.type,Re.type=jo,Fn=Re.offset,Re.offset=Rs,Li=Re.stride,Re.stride=Is,hi=Re.divisor,Re.divisor=Os,Ci=b.call(this,et,Fi,tn),oi.offset=Ci,Si=!1,Gn=1,ta=0,ya=0,ia=0,pa=0,va=null,zn=0,is=!1,Cs=5126,Ks=0,dl=0,xl=0,st(oi)?(Si=!0,va=vr.createStream(34962,oi),Cs=va.dtype):(va=vr.getBuffer(oi),va?Cs=va.dtype:"constant"in oi?(Gn=2,typeof oi.constant=="number"?(ta=oi.constant,ya=ia=pa=0):(ta=oi.constant.length>0?oi.constant[0]:0,ya=oi.constant.length>1?oi.constant[1]:0,ia=oi.constant.length>2?oi.constant[2]:0,pa=oi.constant.length>3?oi.constant[3]:0)):(st(oi.buffer)?va=vr.createStream(34962,oi.buffer):va=vr.getBuffer(oi.buffer),Cs="type"in oi?Ei[oi.type]:va.dtype,is=!!oi.normalized,zn=oi.size|0,Ks=oi.offset|0,dl=oi.stride|0,xl=oi.divisor|0)),Bl=Me.state,Me.state=Gn,bl=Me.x,Me.x=ta,eu=Me.y,Me.y=ya,Zl=Me.z,Me.z=ia,Vl=Me.w,Me.w=pa,ja=Me.buffer,Me.buffer=va,ns=Me.size,Me.size=zn,Js=Me.normalized,Me.normalized=is,cs=Me.type,Me.type=Cs,sl=Me.offset,Me.offset=Ks,ll=Me.stride,Me.stride=dl,nl=Me.divisor,Me.divisor=xl,zl=Vt.vert,Vt.vert=oe,Ml=Vt.frag,Vt.frag=Ne,jt.dirty=!0,rn(et,Fi,tn),et.viewportWidth=dt,et.viewportHeight=$t,mr[0]=fr,mr[1]=gr,mr[2]=Zr,mr[3]=wi,gt[0]=$i,gt[1]=ni,gt[2]=Xi,gt[3]=aa,Lt.blend_enable=Mn,pr[0]=Un,pr[1]=Ga,cr[0]=ma,cr[1]=oa,cr[2]=ka,cr[3]=so,Lt.depth_enable=Kr,qt[0]=ys,qt[1]=uo,qt[2]=ls,qt[3]=$a,Lt.scissor_enable=fo,mn&&(r.cpuTime+=performance.now()-ra),or.count=wa,or.instances=Co,or.primitive=Po,Oe[Ie]=gn,Oe[ge]=Ha,Oe[Be]=ao,Oe[ce]=Ko,Oe[je]=Hi,Oe[rt]=Qa,Oe[bt]=da,Oe[Ot]=vo,Oe[it]=ps,Ke.state=co,Ke.x=mo,Ke.y=No,Ke.z=jn,Ke.w=Go,Ke.buffer=Ys,Ke.size=qs,Ke.normalized=Ns,Ke.type=Ba,Ke.offset=ha,Ke.stride=Vs,Ke.divisor=Ya,zt.state=_n,zt.x=Vn,zt.y=wo,zt.z=Ra,zt.w=Xn,zt.buffer=sn,zt.size=$n,zt.normalized=Ka,zt.type=qn,zt.offset=Eo,zt.stride=Ja,zt.divisor=lo,Mt.state=eo,Mt.x=sa,Mt.y=es,Mt.z=Na,Mt.w=en,Mt.buffer=Pa,Mt.size=to,Mt.normalized=yo,Mt.type=Jo,Mt.offset=Ao,Mt.stride=Dn,Mt.divisor=_a,Ca&&vr.destroyStream(ts),kt.state=za,kt.x=ea,kt.y=rs,kt.z=$s,kt.w=us,kt.buffer=Ds,kt.size=fl,kt.normalized=as,kt.type=Ma,kt.offset=Qs,kt.stride=ho,kt.divisor=gs,Do&&vr.destroyStream(Bo),$e.state=os,$e.x=_l,$e.y=Ss,$e.z=po,$e.w=go,$e.buffer=ss,$e.size=qo,$e.normalized=zo,$e.type=io,$e.offset=Io,$e.stride=Da,$e.divisor=vs,cl&&vr.destroyStream(hl),Re.state=St,Re.x=Ut,Re.y=xr,Re.z=dr,Re.w=Dr,Re.buffer=yi,Re.size=Ti,Re.normalized=ki,Re.type=Ki,Re.offset=Fn,Re.stride=Li,Re.divisor=hi,Si&&vr.destroyStream(va),Me.state=Bl,Me.x=bl,Me.y=eu,Me.z=Zl,Me.w=Vl,Me.buffer=ja,Me.size=ns,Me.normalized=Js,Me.type=cs,Me.offset=sl,Me.stride=ll,Me.divisor=nl,Vt.vert=zl,Vt.frag=Ml,jt.dirty=!0},batch:function(Fi,rn){var tn,Di,Ii,xn,xi,Xr,dt;if(tn=De.angle_instanced_arrays,Di=ze.next,Di!==ze.cur&&(Di?Ve.bindFramebuffer(36160,Di.framebuffer):Ve.bindFramebuffer(36160,null),ze.cur=Di),jt.dirty){var $t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po;$t=Lt.dither,$t!==jt.dither&&($t?Ve.enable(3024):Ve.disable(3024),jt.dither=$t),fr=Lt.depth_func,fr!==jt.depth_func&&(Ve.depthFunc(fr),jt.depth_func=fr),gr=ii[0],Zr=ii[1],(gr!==jr[0]||Zr!==jr[1])&&(Ve.depthRange(gr,Zr),jr[0]=gr,jr[1]=Zr),wi=Lt.depth_mask,wi!==jt.depth_mask&&(Ve.depthMask(wi),jt.depth_mask=wi),$i=kr[0],ni=kr[1],Xi=kr[2],aa=kr[3],($i!==Vr[0]||ni!==Vr[1]||Xi!==Vr[2]||aa!==Vr[3])&&(Ve.colorMask($i,ni,Xi,aa),Vr[0]=$i,Vr[1]=ni,Vr[2]=Xi,Vr[3]=aa),Mn=Lt.cull_enable,Mn!==jt.cull_enable&&(Mn?Ve.enable(2884):Ve.disable(2884),jt.cull_enable=Mn),Un=Lt.cull_face,Un!==jt.cull_face&&(Ve.cullFace(Un),jt.cull_face=Un),Ga=Lt.frontFace,Ga!==jt.frontFace&&(Ve.frontFace(Ga),jt.frontFace=Ga),ma=Lt.lineWidth,ma!==jt.lineWidth&&(Ve.lineWidth(ma),jt.lineWidth=ma),oa=Lt.polygonOffset_enable,oa!==jt.polygonOffset_enable&&(oa?Ve.enable(32823):Ve.disable(32823),jt.polygonOffset_enable=oa),ka=Ai[0],so=Ai[1],(ka!==Bi[0]||so!==Bi[1])&&(Ve.polygonOffset(ka,so),Bi[0]=ka,Bi[1]=so),Kr=Lt.sample_alpha,Kr!==jt.sample_alpha&&(Kr?Ve.enable(32926):Ve.disable(32926),jt.sample_alpha=Kr),Ia=Lt.sample_enable,Ia!==jt.sample_enable&&(Ia?Ve.enable(32928):Ve.disable(32928),jt.sample_enable=Ia),Yo=Ri[0],fa=Ri[1],(Yo!==ln[0]||fa!==ln[1])&&(Ve.sampleCoverage(Yo,fa),ln[0]=Yo,ln[1]=fa),kn=Lt.stencil_enable,kn!==jt.stencil_enable&&(kn?Ve.enable(2960):Ve.disable(2960),jt.stencil_enable=kn),Ta=Lt.stencil_mask,Ta!==jt.stencil_mask&&(Ve.stencilMask(Ta),jt.stencil_mask=Ta),ys=hn[0],uo=hn[1],ls=hn[2],(ys!==qr[0]||uo!==qr[1]||ls!==qr[2])&&(Ve.stencilFunc(ys,uo,ls),qr[0]=ys,qr[1]=uo,qr[2]=ls),$a=_i[0],fo=_i[1],mn=_i[2],ra=_i[3],($a!==zi[0]||fo!==zi[1]||mn!==zi[2]||ra!==zi[3])&&(Ve.stencilOpSeparate($a,fo,mn,ra),zi[0]=$a,zi[1]=fo,zi[2]=mn,zi[3]=ra),wa=Dt[0],ws=Dt[1],Co=Dt[2],Po=Dt[3],(wa!==_t[0]||ws!==_t[1]||Co!==_t[2]||Po!==_t[3])&&(Ve.stencilOpSeparate(wa,ws,Co,Po),_t[0]=wa,_t[1]=ws,_t[2]=Co,_t[3]=Po)}Ve.blendColor(0,0,0,0),xt[0]=0,xt[1]=0,xt[2]=0,xt[3]=0,vt?Ve.enable(3042):Ve.disable(3042),jt.blend_enable=vt,Ve.blendEquationSeparate(32774,32774),br[0]=32774,br[1]=32774,Ve.blendFuncSeparate(770,771,773,1),Er[0]=770,Er[1]=771,Er[2]=773,Er[3]=1,lt?Ve.enable(2929):Ve.disable(2929),jt.depth_enable=lt,We?Ve.enable(3089):Ve.disable(3089),jt.scissor_enable=We,Ii=jt.profile,Ii&&(xn=performance.now(),r.count+=rn),Ve.useProgram(f.program),xi=De.angle_instanced_arrays;var Wi,gn,Ps,Ha,Sn,ao,Oa,Ko;for(xe.setVAO(null),Wi=h.location,gn=Pe[Wi],gn.buffer||Ve.enableVertexAttribArray(Wi),(gn.type!==5126||gn.size!==2||gn.buffer!==c||gn.normalized!==!1||gn.offset!==16||gn.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(Wi,2,5126,!1,24,16),gn.type=5126,gn.size=2,gn.buffer=c,gn.normalized=!1,gn.offset=16,gn.stride=24),gn.divisor!==0&&(xi.vertexAttribDivisorANGLE(Wi,0),gn.divisor=0),Ps=y.location,Ha=Pe[Ps],Ha.buffer||Ve.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==2||Ha.buffer!==c||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(Ps,2,5126,!1,24,0),Ha.type=5126,Ha.size=2,Ha.buffer=c,Ha.normalized=!1,Ha.offset=0,Ha.stride=24),Ha.divisor!==0&&(xi.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=C.location,ao=Pe[Sn],ao.buffer||Ve.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==2||ao.buffer!==c||ao.normalized!==!1||ao.offset!==8||ao.stride!==24)&&(Ve.bindBuffer(34962,c.buffer),Ve.vertexAttribPointer(Sn,2,5126,!1,24,8),ao.type=5126,ao.size=2,ao.buffer=c,ao.normalized=!1,ao.offset=8,ao.stride=24),ao.divisor!==0&&(xi.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Oa=or.elements,Oa?Ve.bindBuffer(34963,Oa.buffer.buffer):xe.currentVAO&&(Oa=yr.getElements(xe.currentVAO.elements),Oa&&Ve.bindBuffer(34963,Oa.buffer.buffer)),Ko=or.offset,Xr=0;Xr0?ti.constant[0]:0,qs=ti.constant.length>1?ti.constant[1]:0,Ns=ti.constant.length>2?ti.constant[2]:0,Ba=ti.constant.length>3?ti.constant[3]:0)):(st(ti.buffer)?ha=vr.createStream(34962,ti.buffer):ha=vr.getBuffer(ti.buffer),_n="type"in ti?Ei[ti.type]:ha.dtype,Ya=!!ti.normalized,Vs=ti.size|0,Vn=ti.offset|0,wo=ti.stride|0,Ra=ti.divisor|0)),Xn=p.location,sn=Pe[Xn],Go===1?(sn.buffer||Ve.enableVertexAttribArray(Xn),$n=Vs||4,(sn.type!==_n||sn.size!==$n||sn.buffer!==ha||sn.normalized!==Ya||sn.offset!==Vn||sn.stride!==wo)&&(Ve.bindBuffer(34962,ha.buffer),Ve.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),sn.type=_n,sn.size=$n,sn.buffer=ha,sn.normalized=Ya,sn.offset=Vn,sn.stride=wo),sn.divisor!==Ra&&(xi.vertexAttribDivisorANGLE(Xn,Ra),sn.divisor=Ra)):(sn.buffer&&(Ve.disableVertexAttribArray(Xn),sn.buffer=null),(sn.x!==Ys||sn.y!==qs||sn.z!==Ns||sn.w!==Ba)&&(Ve.vertexAttrib4f(Xn,Ys,qs,Ns,Ba),sn.x=Ys,sn.y=qs,sn.z=Ns,sn.w=Ba)),Ka=b.call(this,et,dt,Xr),oi.offset=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,en=!1,Pa=5126,to=0,yo=0,Jo=0,st(oi)?(qn=!0,es=vr.createStream(34962,oi),Pa=es.dtype):(es=vr.getBuffer(oi),es?Pa=es.dtype:"constant"in oi?(Eo=2,typeof oi.constant=="number"?(Ja=oi.constant,lo=eo=sa=0):(Ja=oi.constant.length>0?oi.constant[0]:0,lo=oi.constant.length>1?oi.constant[1]:0,eo=oi.constant.length>2?oi.constant[2]:0,sa=oi.constant.length>3?oi.constant[3]:0)):(st(oi.buffer)?es=vr.createStream(34962,oi.buffer):es=vr.getBuffer(oi.buffer),Pa="type"in oi?Ei[oi.type]:es.dtype,en=!!oi.normalized,Na=oi.size|0,to=oi.offset|0,yo=oi.stride|0,Jo=oi.divisor|0)),Ao=v.location,Dn=Pe[Ao],Eo===1?(Dn.buffer||Ve.enableVertexAttribArray(Ao),_a=Na||4,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==en||Dn.offset!==to||Dn.stride!==yo)&&(Ve.bindBuffer(34962,es.buffer),Ve.vertexAttribPointer(Ao,_a,Pa,en,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=en,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(xi.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&(Ve.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&(Ve.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=E.call(this,et,dt,Xr),Qi.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,on=5126,Oo=0,ko=0,oo=0,st(Qi)?(Ca=!0,ts=vr.createStream(34962,Qi),on=ts.dtype):(ts=vr.getBuffer(Qi),ts?on=ts.dtype:"constant"in Qi?(Es=2,typeof Qi.constant=="number"?(Ts=Qi.constant,Ho=Wa=To=0):(Ts=Qi.constant.length>0?Qi.constant[0]:0,Ho=Qi.constant.length>1?Qi.constant[1]:0,Wa=Qi.constant.length>2?Qi.constant[2]:0,To=Qi.constant.length>3?Qi.constant[3]:0)):(st(Qi.buffer)?ts=vr.createStream(34962,Qi.buffer):ts=vr.getBuffer(Qi.buffer),on="type"in Qi?Ei[Qi.type]:ts.dtype,qa=!!Qi.normalized,Wo=Qi.size|0,Oo=Qi.offset|0,ko=Qi.stride|0,oo=Qi.divisor|0)),za=A.location,ea=Pe[za],Es===1?(ea.buffer||Ve.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==on||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Oo||ea.stride!==ko)&&(Ve.bindBuffer(34962,ts.buffer),Ve.vertexAttribPointer(za,rs,on,qa,ko,Oo),ea.type=on,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Oo,ea.stride=ko),ea.divisor!==oo&&(xi.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(Ve.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(Ve.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=L.call(this,et,dt,Xr),Yr.offset=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,st(Yr)?(us=!0,ho=vr.createStream(34962,Yr),Do=ho.dtype):(ho=vr.getBuffer(Yr),ho?Do=ho.dtype:"constant"in Yr?(Ds=2,typeof Yr.constant=="number"?(fl=Yr.constant,as=Ma=Qs=0):(fl=Yr.constant.length>0?Yr.constant[0]:0,as=Yr.constant.length>1?Yr.constant[1]:0,Ma=Yr.constant.length>2?Yr.constant[2]:0,Qs=Yr.constant.length>3?Yr.constant[3]:0)):(st(Yr.buffer)?ho=vr.createStream(34962,Yr.buffer):ho=vr.getBuffer(Yr.buffer),Do="type"in Yr?Ei[Yr.type]:ho.dtype,Vo=!!Yr.normalized,gs=Yr.size|0,Lo=Yr.offset|0,xs=Yr.stride|0,ks=Yr.divisor|0)),Ea=x.location,Jn=Pe[Ea],Ds===1?(Jn.buffer||Ve.enableVertexAttribArray(Ea),Bo=gs||2,(Jn.type!==Do||Jn.size!==Bo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(Ve.bindBuffer(34962,ho.buffer),Ve.vertexAttribPointer(Ea,Bo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Bo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(xi.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(Ve.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(Ve.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=dt.capSize,(!Xr||Gs!==rl)&&(Gs=rl,Ve.uniform1f(k.location,rl)),bs=dt.lineWidth,(!Xr||zs!==bs)&&(zs=bs,Ve.uniform1f(S.location,bs)),$o=dt.opacity,(!Xr||Aa!==$o)&&(Aa=$o,Ve.uniform1f(m.location,$o)),os=dt.scale,_l=os[0],po=os[1],(!Xr||Ss!==_l||go!==po)&&(Ss=_l,go=po,Ve.uniform2f(P.location,_l,po)),ss=dt.scaleFract,qo=ss[0],io=ss[1],(!Xr||zo!==qo||Io!==io)&&(zo=qo,Io=io,Ve.uniform2f(M.location,qo,io)),Da=dt.translate,vs=Da[0],cl=Da[1],(!Xr||fs!==vs||el!==cl)&&(fs=vs,el=cl,Ve.uniform2f(O.location,vs,cl)),Hs=dt.translateFract,Ro=Hs[0],Fs=Hs[1],(!Xr||tl!==Ro||hl!==Fs)&&(tl=Ro,hl=Fs,Ve.uniform2f(F.location,Ro,Fs)),Fa=G.call(this,et,dt,Xr),Ms=Fa[0],Rs=Fa[1],Os=Fa[2],Ut=Fa[3],(!Xr||jo!==Ms||Is!==Rs||St!==Os||xr!==Ut)&&(jo=Ms,Is=Rs,St=Os,xr=Ut,Ve.uniform4f(U.location,Ms,Rs,Os,Ut)),dr=dt.count,dr>0?Oa?xi.drawElementsInstancedANGLE(4,36,Oa.type,Ko<<(Oa.type-5121>>1),dr):xi.drawArraysInstancedANGLE(4,Ko,36,dr):dr<0&&(Oa?Ve.drawElements(4,36,Oa.type,Ko<<(Oa.type-5121>>1)):Ve.drawArrays(4,Ko,36)),et.viewportWidth=da,et.viewportHeight=la,jn&&vr.destroyStream(ha),qn&&vr.destroyStream(es),Ca&&vr.destroyStream(ts),us&&vr.destroyStream(ho)}jt.dirty=!0,xe.setVAO(null),Ii&&(r.cpuTime+=performance.now()-xn)}}}});var B8=we((Cbr,h7e)=>{h7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me){"use strict";var oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr;return oe=t.gl,Ne=t.context,vt=t.strings,lt=t.next,We=t.current,Ve=t.draw,et=t.elements,tt=t.buffer,Lt=t.shader,jt=t.attributes,or=t.vao,yr=t.uniforms,vr=t.framebuffer,Vt=t.extensions,Pe=t.timer,xe=t.isBufferArgs,Oe=lt.blend_color,ze=We.blend_color,De=lt.blend_equation,ht=We.blend_equation,st=lt.blend_func,gt=We.blend_func,xt=lt.depth_range,pr=We.depth_range,br=lt.colorMask,cr=We.colorMask,Er=lt.polygonOffset_offset,ii=We.polygonOffset_offset,jr=lt.sample_coverage,kr=We.sample_coverage,Vr=lt.stencil_func,Ai=We.stencil_func,Bi=lt.stencil_opFront,Ri=We.stencil_opFront,ln=lt.stencil_opBack,hn=We.stencil_opBack,qr=lt.scissor_box,_i=We.scissor_box,zi=lt.viewport,Dt=We.viewport,_t={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},qt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Nt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},mr={add:32774,subtract:32778,"reverse subtract":32779},Lr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nr={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Fr={cw:2304,ccw:2305},Hr={},Hr.offset=4,Hr.stride=8,Gr={},Gr.offset=0,Gr.stride=8,{draw:function(mi){var Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo;if(Ei=Vt.angle_instanced_arrays,Vi=vr.next,Vi!==vr.cur&&(Vi?oe.bindFramebuffer(36160,Vi.framebuffer):oe.bindFramebuffer(36160,null),vr.cur=Vi),We.dirty){var za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs;za=lt.dither,za!==We.dither&&(za?oe.enable(3024):oe.disable(3024),We.dither=za),ea=De[0],rs=De[1],(ea!==ht[0]||rs!==ht[1])&&(oe.blendEquationSeparate(ea,rs),ht[0]=ea,ht[1]=rs),$s=lt.depth_func,$s!==We.depth_func&&(oe.depthFunc($s),We.depth_func=$s),us=xt[0],Ds=xt[1],(us!==pr[0]||Ds!==pr[1])&&(oe.depthRange(us,Ds),pr[0]=us,pr[1]=Ds),fl=lt.depth_mask,fl!==We.depth_mask&&(oe.depthMask(fl),We.depth_mask=fl),as=br[0],Ma=br[1],Qs=br[2],ho=br[3],(as!==cr[0]||Ma!==cr[1]||Qs!==cr[2]||ho!==cr[3])&&(oe.colorMask(as,Ma,Qs,ho),cr[0]=as,cr[1]=Ma,cr[2]=Qs,cr[3]=ho),gs=lt.cull_enable,gs!==We.cull_enable&&(gs?oe.enable(2884):oe.disable(2884),We.cull_enable=gs),Vo=lt.cull_face,Vo!==We.cull_face&&(oe.cullFace(Vo),We.cull_face=Vo),Do=lt.frontFace,Do!==We.frontFace&&(oe.frontFace(Do),We.frontFace=Do),Lo=lt.lineWidth,Lo!==We.lineWidth&&(oe.lineWidth(Lo),We.lineWidth=Lo),xs=lt.polygonOffset_enable,xs!==We.polygonOffset_enable&&(xs?oe.enable(32823):oe.disable(32823),We.polygonOffset_enable=xs),ks=Er[0],Ea=Er[1],(ks!==ii[0]||Ea!==ii[1])&&(oe.polygonOffset(ks,Ea),ii[0]=ks,ii[1]=Ea),Jn=lt.sample_alpha,Jn!==We.sample_alpha&&(Jn?oe.enable(32926):oe.disable(32926),We.sample_alpha=Jn),Bo=lt.sample_enable,Bo!==We.sample_enable&&(Bo?oe.enable(32928):oe.disable(32928),We.sample_enable=Bo),rl=jr[0],Gs=jr[1],(rl!==kr[0]||Gs!==kr[1])&&(oe.sampleCoverage(rl,Gs),kr[0]=rl,kr[1]=Gs),bs=lt.stencil_mask,bs!==We.stencil_mask&&(oe.stencilMask(bs),We.stencil_mask=bs),zs=Vr[0],$o=Vr[1],Aa=Vr[2],(zs!==Ai[0]||$o!==Ai[1]||Aa!==Ai[2])&&(oe.stencilFunc(zs,$o,Aa),Ai[0]=zs,Ai[1]=$o,Ai[2]=Aa),os=Bi[0],_l=Bi[1],Ss=Bi[2],po=Bi[3],(os!==Ri[0]||_l!==Ri[1]||Ss!==Ri[2]||po!==Ri[3])&&(oe.stencilOpSeparate(os,_l,Ss,po),Ri[0]=os,Ri[1]=_l,Ri[2]=Ss,Ri[3]=po),go=ln[0],ss=ln[1],qo=ln[2],zo=ln[3],(go!==hn[0]||ss!==hn[1]||qo!==hn[2]||zo!==hn[3])&&(oe.stencilOpSeparate(go,ss,qo,zo),hn[0]=go,hn[1]=ss,hn[2]=qo,hn[3]=zo),io=lt.scissor_enable,io!==We.scissor_enable&&(io?oe.enable(3089):oe.disable(3089),We.scissor_enable=io),Io=qr[0],Da=qr[1],vs=qr[2],fs=qr[3],(Io!==_i[0]||Da!==_i[1]||vs!==_i[2]||fs!==_i[3])&&(oe.scissor(Io,Da,vs,fs),_i[0]=Io,_i[1]=Da,_i[2]=vs,_i[3]=fs)}ti=this.viewport,Qi=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:Ne.framebufferWidth-Qi,Fi="height"in ti?ti.height|0:Ne.framebufferHeight-Yr,rn=Ne.viewportWidth,Ne.viewportWidth=oi,tn=Ne.viewportHeight,Ne.viewportHeight=Fi,oe.viewport(Qi,Yr,oi,Fi),Dt[0]=Qi,Dt[1]=Yr,Dt[2]=oi,Dt[3]=Fi,oe.blendColor(0,0,0,1),ze[0]=0,ze[1]=0,ze[2]=0,ze[3]=1,n?oe.enable(3042):oe.disable(3042),We.blend_enable=n,oe.blendFuncSeparate(770,771,773,1),gt[0]=770,gt[1]=771,gt[2]=773,gt[3]=1,i?oe.enable(2929):oe.disable(2929),We.depth_enable=i,a?oe.enable(2960):oe.disable(2960),We.stencil_enable=a,Di=We.profile,Di&&(Ii=performance.now(),r.count++),oe.useProgram(o.program),xn=Vt.angle_instanced_arrays,or.setVAO(null),xi=this.charBuffer,Xr=!1,dt=1,$t=0,fr=0,gr=0,Zr=0,wi=null,$i=0,ni=!1,Xi=5126,aa=0,Mn=0,Un=0,xe(xi)?(Xr=!0,wi=tt.createStream(34962,xi),Xi=wi.dtype):(wi=tt.getBuffer(xi),wi?Xi=wi.dtype:"constant"in xi?(dt=2,typeof xi.constant=="number"?($t=xi.constant,fr=gr=Zr=0):($t=xi.constant.length>0?xi.constant[0]:0,fr=xi.constant.length>1?xi.constant[1]:0,gr=xi.constant.length>2?xi.constant[2]:0,Zr=xi.constant.length>3?xi.constant[3]:0)):(xe(xi.buffer)?wi=tt.createStream(34962,xi.buffer):wi=tt.getBuffer(xi.buffer),Xi="type"in xi?Nr[xi.type]:wi.dtype,ni=!!xi.normalized,$i=xi.size|0,aa=xi.offset|0,Mn=xi.stride|0,Un=xi.divisor|0)),Ga=s.location,ma=jt[Ga],dt===1?(ma.buffer||oe.enableVertexAttribArray(Ga),oa=$i||1,(ma.type!==Xi||ma.size!==oa||ma.buffer!==wi||ma.normalized!==ni||ma.offset!==aa||ma.stride!==Mn)&&(oe.bindBuffer(34962,wi.buffer),oe.vertexAttribPointer(Ga,oa,Xi,ni,Mn,aa),ma.type=Xi,ma.size=oa,ma.buffer=wi,ma.normalized=ni,ma.offset=aa,ma.stride=Mn),ma.divisor!==Un&&(xn.vertexAttribDivisorANGLE(Ga,Un),ma.divisor=Un)):(ma.buffer&&(oe.disableVertexAttribArray(Ga),ma.buffer=null),(ma.x!==$t||ma.y!==fr||ma.z!==gr||ma.w!==Zr)&&(oe.vertexAttrib4f(Ga,$t,fr,gr,Zr),ma.x=$t,ma.y=fr,ma.z=gr,ma.w=Zr)),ka=this.sizeBuffer,Hr.buffer=ka,so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,xe(Hr)?(so=!0,Ta=tt.createStream(34962,Hr),ls=Ta.dtype):(Ta=tt.getBuffer(Hr),Ta?ls=Ta.dtype:"constant"in Hr?(Kr=2,typeof Hr.constant=="number"?(Ia=Hr.constant,Yo=fa=kn=0):(Ia=Hr.constant.length>0?Hr.constant[0]:0,Yo=Hr.constant.length>1?Hr.constant[1]:0,fa=Hr.constant.length>2?Hr.constant[2]:0,kn=Hr.constant.length>3?Hr.constant[3]:0)):(xe(Hr.buffer)?Ta=tt.createStream(34962,Hr.buffer):Ta=tt.getBuffer(Hr.buffer),ls="type"in Hr?Nr[Hr.type]:Ta.dtype,uo=!!Hr.normalized,ys=Hr.size|0,$a=Hr.offset|0,fo=Hr.stride|0,mn=Hr.divisor|0)),ra=u.location,wa=jt[ra],Kr===1?(wa.buffer||oe.enableVertexAttribArray(ra),ws=ys||1,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(oe.bindBuffer(34962,Ta.buffer),oe.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(xn.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(oe.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(oe.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=this.position,Po=!1,Wi=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Oa=0,Ko=!1,Qo=5126,Hi=0,Sa=0,Qa=0,xe(Co)?(Po=!0,ao=tt.createStream(34962,Co),Qo=ao.dtype):(ao=tt.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(Wi=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(xe(Co.buffer)?ao=tt.createStream(34962,Co.buffer):ao=tt.getBuffer(Co.buffer),Qo="type"in Co?Nr[Co.type]:ao.dtype,Ko=!!Co.normalized,Oa=Co.size|0,Hi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=l.location,da=jt[vn],Wi===1?(da.buffer||oe.enableVertexAttribArray(vn),la=Oa||2,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Hi||da.stride!==Sa)&&(oe.bindBuffer(34962,ao.buffer),oe.vertexAttribPointer(vn,la,Qo,Ko,Sa,Hi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Hi,da.stride=Sa),da.divisor!==Qa&&(xn.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(oe.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(oe.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=this.sizeBuffer,Gr.buffer=vo,As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Ba=0,ha=0,Vs=0,xe(Gr)?(As=!0,Go=tt.createStream(34962,Gr),Ns=Go.dtype):(Go=tt.getBuffer(Gr),Go?Ns=Go.dtype:"constant"in Gr?(ps=2,typeof Gr.constant=="number"?(co=Gr.constant,mo=No=jn=0):(co=Gr.constant.length>0?Gr.constant[0]:0,mo=Gr.constant.length>1?Gr.constant[1]:0,No=Gr.constant.length>2?Gr.constant[2]:0,jn=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?Go=tt.createStream(34962,Gr.buffer):Go=tt.getBuffer(Gr.buffer),Ns="type"in Gr?Nr[Gr.type]:Go.dtype,qs=!!Gr.normalized,Ys=Gr.size|0,Ba=Gr.offset|0,ha=Gr.stride|0,Vs=Gr.divisor|0)),Ya=f.location,_n=jt[Ya],ps===1?(_n.buffer||oe.enableVertexAttribArray(Ya),Vn=Ys||1,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Ba||_n.stride!==ha)&&(oe.bindBuffer(34962,Go.buffer),oe.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Ba),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Ba,_n.stride=ha),_n.divisor!==Vs&&(xn.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(oe.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(oe.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=mi.align,oe.uniform1f(c.location,wo),Ra=d.call(this,Ne,mi,0),Ra&&Ra._reglType==="framebuffer"&&(Ra=Ra.color[0]),Xn=Ra._texture,oe.uniform1i(h.location,Xn.bind()),sn=y.call(this,Ne,mi,0),$n=sn[0],Ka=sn[1],oe.uniform2f(p.location,$n,Ka),qn=v.call(this,Ne,mi,0),Eo=qn[0],Ja=qn[1],oe.uniform2f(b.location,Eo,Ja),lo=mi.baseline,oe.uniform1f(C.location,lo),eo=A.call(this,Ne,mi,0),oe.uniform1f(E.location,eo),sa=mi.color,es=sa[0],Na=sa[1],en=sa[2],Pa=sa[3],oe.uniform4f(L.location,es,Na,en,Pa),to=k.call(this,Ne,mi,0),oe.uniform1f(x.location,to),yo=mi.opacity,oe.uniform1f(S.location,yo),Jo=mi.positionOffset,Ao=Jo[0],Dn=Jo[1],oe.uniform2f(m.location,Ao,Dn),_a=this.scale,Ws=_a[0],Ca=_a[1],oe.uniform2f(P.location,Ws,Ca),Es=this.translate,Ts=Es[0],Ho=Es[1],oe.uniform2f(M.location,Ts,Ho),Wa=this.viewportArray,To=Wa[0],ts=Wa[1],Wo=Wa[2],qa=Wa[3],oe.uniform4f(O.location,To,ts,Wo,qa),on=Ve.elements,on?oe.bindBuffer(34963,on.buffer.buffer):or.currentVAO&&(on=et.getElements(or.currentVAO.elements),on&&oe.bindBuffer(34963,on.buffer.buffer)),Oo=mi.offset,ko=mi.count,ko&&(oo=Ve.instances,oo>0?on?xn.drawElementsInstancedANGLE(0,ko,on.type,Oo<<(on.type-5121>>1),oo):xn.drawArraysInstancedANGLE(0,Oo,ko,oo):oo<0&&(on?oe.drawElements(0,ko,on.type,Oo<<(on.type-5121>>1)):oe.drawArrays(0,Oo,ko)),We.dirty=!0,or.setVAO(null),Ne.viewportWidth=rn,Ne.viewportHeight=tn,Di&&(r.cpuTime+=performance.now()-Ii),Xr&&tt.destroyStream(wi),so&&tt.destroyStream(Ta),Po&&tt.destroyStream(ao),As&&tt.destroyStream(Go),Xn.unbind())},scope:function(mi,Ei,Vi){var ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa;ti=this.viewport,Qi=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:Ne.framebufferWidth-Qi,Fi="height"in ti?ti.height|0:Ne.framebufferHeight-Yr,rn=Ne.viewportWidth,Ne.viewportWidth=oi,tn=Ne.viewportHeight,Ne.viewportHeight=Fi,Di=zi[0],zi[0]=Qi,Ii=zi[1],zi[1]=Yr,xn=zi[2],zi[2]=oi,xi=zi[3],zi[3]=Fi,Xr=Oe[0],Oe[0]=F,dt=Oe[1],Oe[1]=U,$t=Oe[2],Oe[2]=G,fr=Oe[3],Oe[3]=j,gr=lt.blend_enable,lt.blend_enable=W,Zr=st[0],st[0]=N,wi=st[1],st[1]=H,$i=st[2],st[2]=re,ni=st[3],st[3]=ae,Xi=lt.depth_enable,lt.depth_enable=me,aa=lt.stencil_enable,lt.stencil_enable=Ce,Mn=We.profile,Mn&&(Un=performance.now(),r.count++),Ga=mi.offset,ma=Ve.offset,Ve.offset=Ga,oa=mi.count,ka=Ve.count,Ve.count=oa,so=Ve.primitive,Ve.primitive=Ee,Kr=v.call(this,Ne,mi,Vi),Ia=yr[de],yr[de]=Kr,Yo=y.call(this,Ne,mi,Vi),fa=yr[te],yr[te]=Yo,kn=d.call(this,Ne,mi,Vi),Ta=yr[Se],yr[Se]=kn,ys=A.call(this,Ne,mi,Vi),uo=yr[Te],yr[Te]=ys,ls=k.call(this,Ne,mi,Vi),$a=yr[be],yr[be]=ls,fo=mi.color,mn=yr[He],yr[He]=fo,ra=mi.opacity,wa=yr[Ie],yr[Ie]=ra,ws=this.viewportArray,Co=yr[ge],yr[ge]=ws,Po=this.scale,Wi=yr[Be],yr[Be]=Po,gn=mi.align,Ps=yr[ce],yr[ce]=gn,Ha=mi.baseline,Sn=yr[je],yr[je]=Ha,ao=this.translate,Oa=yr[rt],yr[rt]=ao,Ko=mi.positionOffset,Qo=yr[bt],yr[bt]=Ko,Hi=this.charBuffer,Sa=!1,Qa=1,vn=0,da=0,la=0,vo=0,As=null,ps=0,co=!1,mo=5126,No=0,jn=0,Go=0,xe(Hi)?(Sa=!0,As=tt.createStream(34962,Hi),mo=As.dtype):(As=tt.getBuffer(Hi),As?mo=As.dtype:"constant"in Hi?(Qa=2,typeof Hi.constant=="number"?(vn=Hi.constant,da=la=vo=0):(vn=Hi.constant.length>0?Hi.constant[0]:0,da=Hi.constant.length>1?Hi.constant[1]:0,la=Hi.constant.length>2?Hi.constant[2]:0,vo=Hi.constant.length>3?Hi.constant[3]:0)):(xe(Hi.buffer)?As=tt.createStream(34962,Hi.buffer):As=tt.getBuffer(Hi.buffer),mo="type"in Hi?Nr[Hi.type]:As.dtype,co=!!Hi.normalized,ps=Hi.size|0,No=Hi.offset|0,jn=Hi.stride|0,Go=Hi.divisor|0)),Ys=Ot.state,Ot.state=Qa,qs=Ot.x,Ot.x=vn,Ns=Ot.y,Ot.y=da,Ba=Ot.z,Ot.z=la,ha=Ot.w,Ot.w=vo,Vs=Ot.buffer,Ot.buffer=As,Ya=Ot.size,Ot.size=ps,_n=Ot.normalized,Ot.normalized=co,Vn=Ot.type,Ot.type=mo,wo=Ot.offset,Ot.offset=No,Ra=Ot.stride,Ot.stride=jn,Xn=Ot.divisor,Ot.divisor=Go,sn=this.position,$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,en=0,Pa=0,to=0,xe(sn)?($n=!0,eo=tt.createStream(34962,sn),Na=eo.dtype):(eo=tt.getBuffer(sn),eo?Na=eo.dtype:"constant"in sn?(Ka=2,typeof sn.constant=="number"?(qn=sn.constant,Eo=Ja=lo=0):(qn=sn.constant.length>0?sn.constant[0]:0,Eo=sn.constant.length>1?sn.constant[1]:0,Ja=sn.constant.length>2?sn.constant[2]:0,lo=sn.constant.length>3?sn.constant[3]:0)):(xe(sn.buffer)?eo=tt.createStream(34962,sn.buffer):eo=tt.getBuffer(sn.buffer),Na="type"in sn?Nr[sn.type]:eo.dtype,es=!!sn.normalized,sa=sn.size|0,en=sn.offset|0,Pa=sn.stride|0,to=sn.divisor|0)),yo=it.state,it.state=Ka,Jo=it.x,it.x=qn,Ao=it.y,it.y=Eo,Dn=it.z,it.z=Ja,_a=it.w,it.w=lo,Ws=it.buffer,it.buffer=eo,Ca=it.size,it.size=sa,Es=it.normalized,it.normalized=es,Ts=it.type,it.type=Na,Ho=it.offset,it.offset=en,Wa=it.stride,it.stride=Pa,To=it.divisor,it.divisor=to,ts=this.sizeBuffer,Hr.buffer=ts,Wo=!1,qa=1,on=0,Oo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,xe(Hr)?(Wo=!0,za=tt.createStream(34962,Hr),$s=za.dtype):(za=tt.getBuffer(Hr),za?$s=za.dtype:"constant"in Hr?(qa=2,typeof Hr.constant=="number"?(on=Hr.constant,Oo=ko=oo=0):(on=Hr.constant.length>0?Hr.constant[0]:0,Oo=Hr.constant.length>1?Hr.constant[1]:0,ko=Hr.constant.length>2?Hr.constant[2]:0,oo=Hr.constant.length>3?Hr.constant[3]:0)):(xe(Hr.buffer)?za=tt.createStream(34962,Hr.buffer):za=tt.getBuffer(Hr.buffer),$s="type"in Hr?Nr[Hr.type]:za.dtype,rs=!!Hr.normalized,ea=Hr.size|0,us=Hr.offset|0,Ds=Hr.stride|0,fl=Hr.divisor|0)),as=Ke.state,Ke.state=qa,Ma=Ke.x,Ke.x=on,Qs=Ke.y,Ke.y=Oo,ho=Ke.z,Ke.z=ko,gs=Ke.w,Ke.w=oo,Vo=Ke.buffer,Ke.buffer=za,Do=Ke.size,Ke.size=ea,Lo=Ke.normalized,Ke.normalized=rs,xs=Ke.type,Ke.type=$s,ks=Ke.offset,Ke.offset=us,Ea=Ke.stride,Ke.stride=Ds,Jn=Ke.divisor,Ke.divisor=fl,Bo=this.sizeBuffer,Gr.buffer=Bo,rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,xe(Gr)?(rl=!0,os=tt.createStream(34962,Gr),po=os.dtype):(os=tt.getBuffer(Gr),os?po=os.dtype:"constant"in Gr?(Gs=2,typeof Gr.constant=="number"?(bs=Gr.constant,zs=$o=Aa=0):(bs=Gr.constant.length>0?Gr.constant[0]:0,zs=Gr.constant.length>1?Gr.constant[1]:0,$o=Gr.constant.length>2?Gr.constant[2]:0,Aa=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?os=tt.createStream(34962,Gr.buffer):os=tt.getBuffer(Gr.buffer),po="type"in Gr?Nr[Gr.type]:os.dtype,Ss=!!Gr.normalized,_l=Gr.size|0,go=Gr.offset|0,ss=Gr.stride|0,qo=Gr.divisor|0)),zo=zt.state,zt.state=Gs,io=zt.x,zt.x=bs,Io=zt.y,zt.y=zs,Da=zt.z,zt.z=$o,vs=zt.w,zt.w=Aa,fs=zt.buffer,zt.buffer=os,cl=zt.size,zt.size=_l,el=zt.normalized,zt.normalized=Ss,Hs=zt.type,zt.type=po,Ro=zt.offset,zt.offset=go,tl=zt.stride,zt.stride=ss,Fs=zt.divisor,zt.divisor=qo,hl=Lt.vert,Lt.vert=Mt,Fa=Lt.frag,Lt.frag=kt,We.dirty=!0,Ei(Ne,mi,Vi),Ne.viewportWidth=rn,Ne.viewportHeight=tn,zi[0]=Di,zi[1]=Ii,zi[2]=xn,zi[3]=xi,Oe[0]=Xr,Oe[1]=dt,Oe[2]=$t,Oe[3]=fr,lt.blend_enable=gr,st[0]=Zr,st[1]=wi,st[2]=$i,st[3]=ni,lt.depth_enable=Xi,lt.stencil_enable=aa,Mn&&(r.cpuTime+=performance.now()-Un),Ve.offset=ma,Ve.count=ka,Ve.primitive=so,yr[de]=Ia,yr[te]=fa,yr[Se]=Ta,yr[Te]=uo,yr[be]=$a,yr[He]=mn,yr[Ie]=wa,yr[ge]=Co,yr[Be]=Wi,yr[ce]=Ps,yr[je]=Sn,yr[rt]=Oa,yr[bt]=Qo,Sa&&tt.destroyStream(As),Ot.state=Ys,Ot.x=qs,Ot.y=Ns,Ot.z=Ba,Ot.w=ha,Ot.buffer=Vs,Ot.size=Ya,Ot.normalized=_n,Ot.type=Vn,Ot.offset=wo,Ot.stride=Ra,Ot.divisor=Xn,$n&&tt.destroyStream(eo),it.state=yo,it.x=Jo,it.y=Ao,it.z=Dn,it.w=_a,it.buffer=Ws,it.size=Ca,it.normalized=Es,it.type=Ts,it.offset=Ho,it.stride=Wa,it.divisor=To,Wo&&tt.destroyStream(za),Ke.state=as,Ke.x=Ma,Ke.y=Qs,Ke.z=ho,Ke.w=gs,Ke.buffer=Vo,Ke.size=Do,Ke.normalized=Lo,Ke.type=xs,Ke.offset=ks,Ke.stride=Ea,Ke.divisor=Jn,rl&&tt.destroyStream(os),zt.state=zo,zt.x=io,zt.y=Io,zt.z=Da,zt.w=vs,zt.buffer=fs,zt.size=cl,zt.normalized=el,zt.type=Hs,zt.offset=Ro,zt.stride=tl,zt.divisor=Fs,Lt.vert=hl,Lt.frag=Fa,We.dirty=!0},batch:function(mi,Ei){var Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii,xn,xi,Xr,dt;if(Vi=Vt.angle_instanced_arrays,ti=vr.next,ti!==vr.cur&&(ti?oe.bindFramebuffer(36160,ti.framebuffer):oe.bindFramebuffer(36160,null),vr.cur=ti),We.dirty){var $t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao;$t=lt.dither,$t!==We.dither&&($t?oe.enable(3024):oe.disable(3024),We.dither=$t),fr=De[0],gr=De[1],(fr!==ht[0]||gr!==ht[1])&&(oe.blendEquationSeparate(fr,gr),ht[0]=fr,ht[1]=gr),Zr=lt.depth_func,Zr!==We.depth_func&&(oe.depthFunc(Zr),We.depth_func=Zr),wi=xt[0],$i=xt[1],(wi!==pr[0]||$i!==pr[1])&&(oe.depthRange(wi,$i),pr[0]=wi,pr[1]=$i),ni=lt.depth_mask,ni!==We.depth_mask&&(oe.depthMask(ni),We.depth_mask=ni),Xi=br[0],aa=br[1],Mn=br[2],Un=br[3],(Xi!==cr[0]||aa!==cr[1]||Mn!==cr[2]||Un!==cr[3])&&(oe.colorMask(Xi,aa,Mn,Un),cr[0]=Xi,cr[1]=aa,cr[2]=Mn,cr[3]=Un),Ga=lt.cull_enable,Ga!==We.cull_enable&&(Ga?oe.enable(2884):oe.disable(2884),We.cull_enable=Ga),ma=lt.cull_face,ma!==We.cull_face&&(oe.cullFace(ma),We.cull_face=ma),oa=lt.frontFace,oa!==We.frontFace&&(oe.frontFace(oa),We.frontFace=oa),ka=lt.lineWidth,ka!==We.lineWidth&&(oe.lineWidth(ka),We.lineWidth=ka),so=lt.polygonOffset_enable,so!==We.polygonOffset_enable&&(so?oe.enable(32823):oe.disable(32823),We.polygonOffset_enable=so),Kr=Er[0],Ia=Er[1],(Kr!==ii[0]||Ia!==ii[1])&&(oe.polygonOffset(Kr,Ia),ii[0]=Kr,ii[1]=Ia),Yo=lt.sample_alpha,Yo!==We.sample_alpha&&(Yo?oe.enable(32926):oe.disable(32926),We.sample_alpha=Yo),fa=lt.sample_enable,fa!==We.sample_enable&&(fa?oe.enable(32928):oe.disable(32928),We.sample_enable=fa),kn=jr[0],Ta=jr[1],(kn!==kr[0]||Ta!==kr[1])&&(oe.sampleCoverage(kn,Ta),kr[0]=kn,kr[1]=Ta),ys=lt.stencil_mask,ys!==We.stencil_mask&&(oe.stencilMask(ys),We.stencil_mask=ys),uo=Vr[0],ls=Vr[1],$a=Vr[2],(uo!==Ai[0]||ls!==Ai[1]||$a!==Ai[2])&&(oe.stencilFunc(uo,ls,$a),Ai[0]=uo,Ai[1]=ls,Ai[2]=$a),fo=Bi[0],mn=Bi[1],ra=Bi[2],wa=Bi[3],(fo!==Ri[0]||mn!==Ri[1]||ra!==Ri[2]||wa!==Ri[3])&&(oe.stencilOpSeparate(fo,mn,ra,wa),Ri[0]=fo,Ri[1]=mn,Ri[2]=ra,Ri[3]=wa),ws=ln[0],Co=ln[1],Po=ln[2],Wi=ln[3],(ws!==hn[0]||Co!==hn[1]||Po!==hn[2]||Wi!==hn[3])&&(oe.stencilOpSeparate(ws,Co,Po,Wi),hn[0]=ws,hn[1]=Co,hn[2]=Po,hn[3]=Wi),gn=lt.scissor_enable,gn!==We.scissor_enable&&(gn?oe.enable(3089):oe.disable(3089),We.scissor_enable=gn),Ps=qr[0],Ha=qr[1],Sn=qr[2],ao=qr[3],(Ps!==_i[0]||Ha!==_i[1]||Sn!==_i[2]||ao!==_i[3])&&(oe.scissor(Ps,Ha,Sn,ao),_i[0]=Ps,_i[1]=Ha,_i[2]=Sn,_i[3]=ao)}Qi=this.viewport,Yr=Qi.x|0,oi=Qi.y|0,Fi="width"in Qi?Qi.width|0:Ne.framebufferWidth-Yr,rn="height"in Qi?Qi.height|0:Ne.framebufferHeight-oi,tn=Ne.viewportWidth,Ne.viewportWidth=Fi,Di=Ne.viewportHeight,Ne.viewportHeight=rn,oe.viewport(Yr,oi,Fi,rn),Dt[0]=Yr,Dt[1]=oi,Dt[2]=Fi,Dt[3]=rn,oe.blendColor(0,0,0,1),ze[0]=0,ze[1]=0,ze[2]=0,ze[3]=1,$e?oe.enable(3042):oe.disable(3042),We.blend_enable=$e,oe.blendFuncSeparate(770,771,773,1),gt[0]=770,gt[1]=771,gt[2]=773,gt[3]=1,Re?oe.enable(2929):oe.disable(2929),We.depth_enable=Re,Me?oe.enable(2960):oe.disable(2960),We.stencil_enable=Me,Ii=We.profile,Ii&&(xn=performance.now(),r.count+=Ei),oe.useProgram(o.program),xi=Vt.angle_instanced_arrays;var Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn;for(or.setVAO(null),Oa=this.charBuffer,Ko=!1,Qo=1,Hi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,xe(Oa)?(Ko=!0,da=tt.createStream(34962,Oa),As=da.dtype):(da=tt.getBuffer(Oa),da?As=da.dtype:"constant"in Oa?(Qo=2,typeof Oa.constant=="number"?(Hi=Oa.constant,Sa=Qa=vn=0):(Hi=Oa.constant.length>0?Oa.constant[0]:0,Sa=Oa.constant.length>1?Oa.constant[1]:0,Qa=Oa.constant.length>2?Oa.constant[2]:0,vn=Oa.constant.length>3?Oa.constant[3]:0)):(xe(Oa.buffer)?da=tt.createStream(34962,Oa.buffer):da=tt.getBuffer(Oa.buffer),As="type"in Oa?Nr[Oa.type]:da.dtype,vo=!!Oa.normalized,la=Oa.size|0,ps=Oa.offset|0,co=Oa.stride|0,mo=Oa.divisor|0)),No=s.location,jn=jt[No],Qo===1?(jn.buffer||oe.enableVertexAttribArray(No),Go=la||1,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(oe.bindBuffer(34962,da.buffer),oe.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(xi.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(oe.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Hi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(oe.vertexAttrib4f(No,Hi,Sa,Qa,vn),jn.x=Hi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=this.sizeBuffer,Hr.buffer=Ys,qs=!1,Ns=1,Ba=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,sn=0,$n=0,xe(Hr)?(qs=!0,_n=tt.createStream(34962,Hr),Ra=_n.dtype):(_n=tt.getBuffer(Hr),_n?Ra=_n.dtype:"constant"in Hr?(Ns=2,typeof Hr.constant=="number"?(Ba=Hr.constant,ha=Vs=Ya=0):(Ba=Hr.constant.length>0?Hr.constant[0]:0,ha=Hr.constant.length>1?Hr.constant[1]:0,Vs=Hr.constant.length>2?Hr.constant[2]:0,Ya=Hr.constant.length>3?Hr.constant[3]:0)):(xe(Hr.buffer)?_n=tt.createStream(34962,Hr.buffer):_n=tt.getBuffer(Hr.buffer),Ra="type"in Hr?Nr[Hr.type]:_n.dtype,wo=!!Hr.normalized,Vn=Hr.size|0,Xn=Hr.offset|0,sn=Hr.stride|0,$n=Hr.divisor|0)),Ka=u.location,qn=jt[Ka],Ns===1?(qn.buffer||oe.enableVertexAttribArray(Ka),Eo=Vn||1,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==sn)&&(oe.bindBuffer(34962,_n.buffer),oe.vertexAttribPointer(Ka,Eo,Ra,wo,sn,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=sn),qn.divisor!==$n&&(xi.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(oe.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Ba||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(oe.vertexAttrib4f(Ka,Ba,ha,Vs,Ya),qn.x=Ba,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=this.position,lo=!1,eo=1,sa=0,es=0,Na=0,en=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,xe(Ja)?(lo=!0,Pa=tt.createStream(34962,Ja),Jo=Pa.dtype):(Pa=tt.getBuffer(Ja),Pa?Jo=Pa.dtype:"constant"in Ja?(eo=2,typeof Ja.constant=="number"?(sa=Ja.constant,es=Na=en=0):(sa=Ja.constant.length>0?Ja.constant[0]:0,es=Ja.constant.length>1?Ja.constant[1]:0,Na=Ja.constant.length>2?Ja.constant[2]:0,en=Ja.constant.length>3?Ja.constant[3]:0)):(xe(Ja.buffer)?Pa=tt.createStream(34962,Ja.buffer):Pa=tt.getBuffer(Ja.buffer),Jo="type"in Ja?Nr[Ja.type]:Pa.dtype,yo=!!Ja.normalized,to=Ja.size|0,Ao=Ja.offset|0,Dn=Ja.stride|0,_a=Ja.divisor|0)),Ws=l.location,Ca=jt[Ws],eo===1?(Ca.buffer||oe.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(oe.bindBuffer(34962,Pa.buffer),oe.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(xi.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(oe.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==en)&&(oe.vertexAttrib4f(Ws,sa,es,Na,en),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=en)),Ts=this.sizeBuffer,Gr.buffer=Ts,Ho=!1,Wa=1,To=0,ts=0,Wo=0,qa=0,on=null,Oo=0,ko=!1,oo=5126,za=0,ea=0,rs=0,xe(Gr)?(Ho=!0,on=tt.createStream(34962,Gr),oo=on.dtype):(on=tt.getBuffer(Gr),on?oo=on.dtype:"constant"in Gr?(Wa=2,typeof Gr.constant=="number"?(To=Gr.constant,ts=Wo=qa=0):(To=Gr.constant.length>0?Gr.constant[0]:0,ts=Gr.constant.length>1?Gr.constant[1]:0,Wo=Gr.constant.length>2?Gr.constant[2]:0,qa=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?on=tt.createStream(34962,Gr.buffer):on=tt.getBuffer(Gr.buffer),oo="type"in Gr?Nr[Gr.type]:on.dtype,ko=!!Gr.normalized,Oo=Gr.size|0,za=Gr.offset|0,ea=Gr.stride|0,rs=Gr.divisor|0)),$s=f.location,us=jt[$s],Wa===1?(us.buffer||oe.enableVertexAttribArray($s),Ds=Oo||1,(us.type!==oo||us.size!==Ds||us.buffer!==on||us.normalized!==ko||us.offset!==za||us.stride!==ea)&&(oe.bindBuffer(34962,on.buffer),oe.vertexAttribPointer($s,Ds,oo,ko,ea,za),us.type=oo,us.size=Ds,us.buffer=on,us.normalized=ko,us.offset=za,us.stride=ea),us.divisor!==rs&&(xi.vertexAttribDivisorANGLE($s,rs),us.divisor=rs)):(us.buffer&&(oe.disableVertexAttribArray($s),us.buffer=null),(us.x!==To||us.y!==ts||us.z!==Wo||us.w!==qa)&&(oe.vertexAttrib4f($s,To,ts,Wo,qa),us.x=To,us.y=ts,us.z=Wo,us.w=qa)),fl=this.scale,as=fl[0],Ma=fl[1],oe.uniform2f(P.location,as,Ma),Qs=this.translate,ho=Qs[0],gs=Qs[1],oe.uniform2f(M.location,ho,gs),Vo=this.viewportArray,Do=Vo[0],Lo=Vo[1],xs=Vo[2],ks=Vo[3],oe.uniform4f(O.location,Do,Lo,xs,ks),Ea=Ve.elements,Ea?oe.bindBuffer(34963,Ea.buffer.buffer):or.currentVAO&&(Ea=et.getElements(or.currentVAO.elements),Ea&&oe.bindBuffer(34963,Ea.buffer.buffer)),Jn=Ve.instances,Xr=0;Xr0?Ea?xi.drawElementsInstancedANGLE(0,Dr,Ea.type,dr<<(Ea.type-5121>>1),Jn):xi.drawArraysInstancedANGLE(0,dr,Dr,Jn):Jn<0&&(Ea?oe.drawElements(0,Dr,Ea.type,dr<<(Ea.type-5121>>1)):oe.drawArrays(0,dr,Dr)),bs.unbind())}Ko&&tt.destroyStream(da),qs&&tt.destroyStream(_n),lo&&tt.destroyStream(Pa),Ho&&tt.destroyStream(on),We.dirty=!0,or.setVAO(null),Ne.viewportWidth=tn,Ne.viewportHeight=Di,Ii&&(r.cpuTime+=performance.now()-xn)}}}});var q8=we((Lbr,d7e)=>{d7e.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,y=t.vao,b=t.uniforms,v=t.framebuffer,C=t.extensions,E=t.timer,A=t.isBufferArgs,L=u.blend_color,x=l.blend_color,k=u.blend_equation,S=l.blend_equation,m=u.blend_func,P=l.blend_func,M=u.depth_range,O=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,W=u.sample_coverage,N=l.sample_coverage,H=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,me=l.stencil_opFront,Ce=u.stencil_opBack,Ee=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,Se=u.viewport,Te=l.viewport,be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},He={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ie={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ge={add:32774,subtract:32778,"reverse subtract":32779},Be={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},je={cw:2304,ccw:2305},rt={},bt={},{draw:function(Ot){var it,Ke,zt,Mt,kt,$e,Re,Me,oe;if(it=C.angle_instanced_arrays,Ke=v.next,Ke!==v.cur&&(Ke?a.bindFramebuffer(36160,Ke.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ke),l.dirty){var Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr;Ne=u.dither,Ne!==l.dither&&(Ne?a.enable(3024):a.disable(3024),l.dither=Ne),vt=u.blend_enable,vt!==l.blend_enable&&(vt?a.enable(3042):a.disable(3042),l.blend_enable=vt),lt=L[0],We=L[1],Ve=L[2],et=L[3],(lt!==x[0]||We!==x[1]||Ve!==x[2]||et!==x[3])&&(a.blendColor(lt,We,Ve,et),x[0]=lt,x[1]=We,x[2]=Ve,x[3]=et),tt=k[0],Lt=k[1],(tt!==S[0]||Lt!==S[1])&&(a.blendEquationSeparate(tt,Lt),S[0]=tt,S[1]=Lt),jt=m[0],or=m[1],yr=m[2],vr=m[3],(jt!==P[0]||or!==P[1]||yr!==P[2]||vr!==P[3])&&(a.blendFuncSeparate(jt,or,yr,vr),P[0]=jt,P[1]=or,P[2]=yr,P[3]=vr),Vt=u.depth_enable,Vt!==l.depth_enable&&(Vt?a.enable(2929):a.disable(2929),l.depth_enable=Vt),Pe=u.depth_func,Pe!==l.depth_func&&(a.depthFunc(Pe),l.depth_func=Pe),xe=M[0],Oe=M[1],(xe!==O[0]||Oe!==O[1])&&(a.depthRange(xe,Oe),O[0]=xe,O[1]=Oe),ze=u.depth_mask,ze!==l.depth_mask&&(a.depthMask(ze),l.depth_mask=ze),De=F[0],ht=F[1],st=F[2],gt=F[3],(De!==U[0]||ht!==U[1]||st!==U[2]||gt!==U[3])&&(a.colorMask(De,ht,st,gt),U[0]=De,U[1]=ht,U[2]=st,U[3]=gt),xt=u.cull_enable,xt!==l.cull_enable&&(xt?a.enable(2884):a.disable(2884),l.cull_enable=xt),pr=u.cull_face,pr!==l.cull_face&&(a.cullFace(pr),l.cull_face=pr),br=u.frontFace,br!==l.frontFace&&(a.frontFace(br),l.frontFace=br),cr=u.lineWidth,cr!==l.lineWidth&&(a.lineWidth(cr),l.lineWidth=cr),Er=u.polygonOffset_enable,Er!==l.polygonOffset_enable&&(Er?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Er),ii=G[0],jr=G[1],(ii!==j[0]||jr!==j[1])&&(a.polygonOffset(ii,jr),j[0]=ii,j[1]=jr),kr=u.sample_alpha,kr!==l.sample_alpha&&(kr?a.enable(32926):a.disable(32926),l.sample_alpha=kr),Vr=u.sample_enable,Vr!==l.sample_enable&&(Vr?a.enable(32928):a.disable(32928),l.sample_enable=Vr),Ai=W[0],Bi=W[1],(Ai!==N[0]||Bi!==N[1])&&(a.sampleCoverage(Ai,Bi),N[0]=Ai,N[1]=Bi),Ri=u.stencil_enable,Ri!==l.stencil_enable&&(Ri?a.enable(2960):a.disable(2960),l.stencil_enable=Ri),ln=u.stencil_mask,ln!==l.stencil_mask&&(a.stencilMask(ln),l.stencil_mask=ln),hn=H[0],qr=H[1],_i=H[2],(hn!==re[0]||qr!==re[1]||_i!==re[2])&&(a.stencilFunc(hn,qr,_i),re[0]=hn,re[1]=qr,re[2]=_i),zi=ae[0],Dt=ae[1],_t=ae[2],qt=ae[3],(zi!==me[0]||Dt!==me[1]||_t!==me[2]||qt!==me[3])&&(a.stencilOpSeparate(zi,Dt,_t,qt),me[0]=zi,me[1]=Dt,me[2]=_t,me[3]=qt),Nt=Ce[0],mr=Ce[1],Lr=Ce[2],Nr=Ce[3],(Nt!==Ee[0]||mr!==Ee[1]||Lr!==Ee[2]||Nr!==Ee[3])&&(a.stencilOpSeparate(Nt,mr,Lr,Nr),Ee[0]=Nt,Ee[1]=mr,Ee[2]=Lr,Ee[3]=Nr),Fr=u.scissor_enable,Fr!==l.scissor_enable&&(Fr?a.enable(3089):a.disable(3089),l.scissor_enable=Fr),Hr=de[0],Gr=de[1],mi=de[2],Ei=de[3],(Hr!==te[0]||Gr!==te[1]||mi!==te[2]||Ei!==te[3])&&(a.scissor(Hr,Gr,mi,Ei),te[0]=Hr,te[1]=Gr,te[2]=mi,te[3]=Ei),Vi=Se[0],ti=Se[1],Qi=Se[2],Yr=Se[3],(Vi!==Te[0]||ti!==Te[1]||Qi!==Te[2]||Yr!==Te[3])&&(a.viewport(Vi,ti,Qi,Yr),Te[0]=Vi,Te[1]=ti,Te[2]=Qi,Te[3]=Yr),l.dirty=!1}zt=l.profile,zt&&(Mt=performance.now(),r.count++),kt=d.frag,$e=d.vert,Re=d.program($e,kt),a.useProgram(Re.program),y.setVAO(null),Me=Re.id,oe=rt[Me],oe?oe.call(this,Ot):(oe=rt[Me]=n(Re),oe.call(this,Ot)),y.setVAO(null),zt&&(r.cpuTime+=performance.now()-Mt)},scope:function(Ot,it,Ke){var zt,Mt;zt=l.profile,zt&&(Mt=performance.now(),r.count++),it(o,Ot,Ke),zt&&(r.cpuTime+=performance.now()-Mt)},batch:function(Ot,it){var Ke,zt,Mt,kt,$e,Re,Me,oe,Ne;if(Ke=C.angle_instanced_arrays,zt=v.next,zt!==v.cur&&(zt?a.bindFramebuffer(36160,zt.framebuffer):a.bindFramebuffer(36160,null),v.cur=zt),l.dirty){var vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi;vt=u.dither,vt!==l.dither&&(vt?a.enable(3024):a.disable(3024),l.dither=vt),lt=u.blend_enable,lt!==l.blend_enable&&(lt?a.enable(3042):a.disable(3042),l.blend_enable=lt),We=L[0],Ve=L[1],et=L[2],tt=L[3],(We!==x[0]||Ve!==x[1]||et!==x[2]||tt!==x[3])&&(a.blendColor(We,Ve,et,tt),x[0]=We,x[1]=Ve,x[2]=et,x[3]=tt),Lt=k[0],jt=k[1],(Lt!==S[0]||jt!==S[1])&&(a.blendEquationSeparate(Lt,jt),S[0]=Lt,S[1]=jt),or=m[0],yr=m[1],vr=m[2],Vt=m[3],(or!==P[0]||yr!==P[1]||vr!==P[2]||Vt!==P[3])&&(a.blendFuncSeparate(or,yr,vr,Vt),P[0]=or,P[1]=yr,P[2]=vr,P[3]=Vt),Pe=u.depth_enable,Pe!==l.depth_enable&&(Pe?a.enable(2929):a.disable(2929),l.depth_enable=Pe),xe=u.depth_func,xe!==l.depth_func&&(a.depthFunc(xe),l.depth_func=xe),Oe=M[0],ze=M[1],(Oe!==O[0]||ze!==O[1])&&(a.depthRange(Oe,ze),O[0]=Oe,O[1]=ze),De=u.depth_mask,De!==l.depth_mask&&(a.depthMask(De),l.depth_mask=De),ht=F[0],st=F[1],gt=F[2],xt=F[3],(ht!==U[0]||st!==U[1]||gt!==U[2]||xt!==U[3])&&(a.colorMask(ht,st,gt,xt),U[0]=ht,U[1]=st,U[2]=gt,U[3]=xt),pr=u.cull_enable,pr!==l.cull_enable&&(pr?a.enable(2884):a.disable(2884),l.cull_enable=pr),br=u.cull_face,br!==l.cull_face&&(a.cullFace(br),l.cull_face=br),cr=u.frontFace,cr!==l.frontFace&&(a.frontFace(cr),l.frontFace=cr),Er=u.lineWidth,Er!==l.lineWidth&&(a.lineWidth(Er),l.lineWidth=Er),ii=u.polygonOffset_enable,ii!==l.polygonOffset_enable&&(ii?a.enable(32823):a.disable(32823),l.polygonOffset_enable=ii),jr=G[0],kr=G[1],(jr!==j[0]||kr!==j[1])&&(a.polygonOffset(jr,kr),j[0]=jr,j[1]=kr),Vr=u.sample_alpha,Vr!==l.sample_alpha&&(Vr?a.enable(32926):a.disable(32926),l.sample_alpha=Vr),Ai=u.sample_enable,Ai!==l.sample_enable&&(Ai?a.enable(32928):a.disable(32928),l.sample_enable=Ai),Bi=W[0],Ri=W[1],(Bi!==N[0]||Ri!==N[1])&&(a.sampleCoverage(Bi,Ri),N[0]=Bi,N[1]=Ri),ln=u.stencil_enable,ln!==l.stencil_enable&&(ln?a.enable(2960):a.disable(2960),l.stencil_enable=ln),hn=u.stencil_mask,hn!==l.stencil_mask&&(a.stencilMask(hn),l.stencil_mask=hn),qr=H[0],_i=H[1],zi=H[2],(qr!==re[0]||_i!==re[1]||zi!==re[2])&&(a.stencilFunc(qr,_i,zi),re[0]=qr,re[1]=_i,re[2]=zi),Dt=ae[0],_t=ae[1],qt=ae[2],Nt=ae[3],(Dt!==me[0]||_t!==me[1]||qt!==me[2]||Nt!==me[3])&&(a.stencilOpSeparate(Dt,_t,qt,Nt),me[0]=Dt,me[1]=_t,me[2]=qt,me[3]=Nt),mr=Ce[0],Lr=Ce[1],Nr=Ce[2],Fr=Ce[3],(mr!==Ee[0]||Lr!==Ee[1]||Nr!==Ee[2]||Fr!==Ee[3])&&(a.stencilOpSeparate(mr,Lr,Nr,Fr),Ee[0]=mr,Ee[1]=Lr,Ee[2]=Nr,Ee[3]=Fr),Hr=u.scissor_enable,Hr!==l.scissor_enable&&(Hr?a.enable(3089):a.disable(3089),l.scissor_enable=Hr),Gr=de[0],mi=de[1],Ei=de[2],Vi=de[3],(Gr!==te[0]||mi!==te[1]||Ei!==te[2]||Vi!==te[3])&&(a.scissor(Gr,mi,Ei,Vi),te[0]=Gr,te[1]=mi,te[2]=Ei,te[3]=Vi),ti=Se[0],Qi=Se[1],Yr=Se[2],oi=Se[3],(ti!==Te[0]||Qi!==Te[1]||Yr!==Te[2]||oi!==Te[3])&&(a.viewport(ti,Qi,Yr,oi),Te[0]=ti,Te[1]=Qi,Te[2]=Yr,Te[3]=oi),l.dirty=!1}Mt=l.profile,Mt&&(kt=performance.now(),r.count+=it),$e=d.frag,Re=d.vert,Me=d.program(Re,$e),a.useProgram(Me.program),y.setVAO(null),oe=Me.id,Ne=bt[oe],Ne?Ne.call(this,Ot,it):(Ne=bt[oe]=i(Me),Ne.call(this,Ot,it)),y.setVAO(null),Mt&&(r.cpuTime+=performance.now()-kt)}}}});var N8=we((Pbr,p7e)=>{p7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr){"use strict";var Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di;return Vt=t.gl,Pe=t.context,xe=t.strings,Oe=t.next,ze=t.current,De=t.draw,ht=t.elements,st=t.buffer,gt=t.shader,xt=t.attributes,pr=t.vao,br=t.uniforms,cr=t.framebuffer,Er=t.extensions,ii=t.timer,jr=t.isBufferArgs,kr=Oe.blend_color,Vr=ze.blend_color,Ai=Oe.blend_equation,Bi=ze.blend_equation,Ri=Oe.blend_func,ln=ze.blend_func,hn=Oe.depth_range,qr=ze.depth_range,_i=Oe.colorMask,zi=ze.colorMask,Dt=Oe.polygonOffset_offset,_t=ze.polygonOffset_offset,qt=Oe.sample_coverage,Nt=ze.sample_coverage,mr=Oe.stencil_func,Lr=ze.stencil_func,Nr=Oe.stencil_opFront,Fr=ze.stencil_opFront,Hr=Oe.stencil_opBack,Gr=ze.stencil_opBack,mi=Oe.scissor_box,Ei=ze.scissor_box,Vi=Oe.viewport,ti=ze.viewport,Qi={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},oi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Fi={add:32774,subtract:32778,"reverse subtract":32779},rn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},tn={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Di={cw:2304,ccw:2305},{draw:function(Ii){var xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl;if(xn=Er.angle_instanced_arrays,xi=cr.next,xi!==cr.cur&&(xi?Vt.bindFramebuffer(36160,xi.framebuffer):Vt.bindFramebuffer(36160,null),cr.cur=xi),ze.dirty){var ll,nl,zl,Ml,Rl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt;ll=Oe.dither,ll!==ze.dither&&(ll?Vt.enable(3024):Vt.disable(3024),ze.dither=ll),nl=Ai[0],zl=Ai[1],(nl!==Bi[0]||zl!==Bi[1])&&(Vt.blendEquationSeparate(nl,zl),Bi[0]=nl,Bi[1]=zl),Ml=Oe.depth_func,Ml!==ze.depth_func&&(Vt.depthFunc(Ml),ze.depth_func=Ml),Rl=hn[0],Al=hn[1],(Rl!==qr[0]||Al!==qr[1])&&(Vt.depthRange(Rl,Al),qr[0]=Rl,qr[1]=Al),Ll=Oe.depth_mask,Ll!==ze.depth_mask&&(Vt.depthMask(Ll),ze.depth_mask=Ll),ms=_i[0],Bs=_i[1],Xl=_i[2],Gl=_i[3],(ms!==zi[0]||Bs!==zi[1]||Xl!==zi[2]||Gl!==zi[3])&&(Vt.colorMask(ms,Bs,Xl,Gl),zi[0]=ms,zi[1]=Bs,zi[2]=Xl,zi[3]=Gl),Nl=Oe.cull_enable,Nl!==ze.cull_enable&&(Nl?Vt.enable(2884):Vt.disable(2884),ze.cull_enable=Nl),ue=Oe.cull_face,ue!==ze.cull_face&&(Vt.cullFace(ue),ze.cull_face=ue),w=Oe.frontFace,w!==ze.frontFace&&(Vt.frontFace(w),ze.frontFace=w),q=Oe.lineWidth,q!==ze.lineWidth&&(Vt.lineWidth(q),ze.lineWidth=q),Q=Oe.polygonOffset_enable,Q!==ze.polygonOffset_enable&&(Q?Vt.enable(32823):Vt.disable(32823),ze.polygonOffset_enable=Q),ee=Dt[0],fe=Dt[1],(ee!==_t[0]||fe!==_t[1])&&(Vt.polygonOffset(ee,fe),_t[0]=ee,_t[1]=fe),Ue=Oe.sample_alpha,Ue!==ze.sample_alpha&&(Ue?Vt.enable(32926):Vt.disable(32926),ze.sample_alpha=Ue),at=Oe.sample_enable,at!==ze.sample_enable&&(at?Vt.enable(32928):Vt.disable(32928),ze.sample_enable=at),yt=qt[0],Rt=qt[1],(yt!==Nt[0]||Rt!==Nt[1])&&(Vt.sampleCoverage(yt,Rt),Nt[0]=yt,Nt[1]=Rt),Qt=Oe.stencil_mask,Qt!==ze.stencil_mask&&(Vt.stencilMask(Qt),ze.stencil_mask=Qt),rr=mr[0],Mr=mr[1],Ur=mr[2],(rr!==Lr[0]||Mr!==Lr[1]||Ur!==Lr[2])&&(Vt.stencilFunc(rr,Mr,Ur),Lr[0]=rr,Lr[1]=Mr,Lr[2]=Ur),he=Nr[0],Ae=Nr[1],qe=Nr[2],Ge=Nr[3],(he!==Fr[0]||Ae!==Fr[1]||qe!==Fr[2]||Ge!==Fr[3])&&(Vt.stencilOpSeparate(he,Ae,qe,Ge),Fr[0]=he,Fr[1]=Ae,Fr[2]=qe,Fr[3]=Ge),ft=Hr[0],ot=Hr[1],mt=Hr[2],Gt=Hr[3],(ft!==Gr[0]||ot!==Gr[1]||mt!==Gr[2]||Gt!==Gr[3])&&(Vt.stencilOpSeparate(ft,ot,mt,Gt),Gr[0]=ft,Gr[1]=ot,Gr[2]=mt,Gr[3]=Gt)}Xr=Ii.viewport,dt=Xr.x|0,$t=Xr.y|0,fr="width"in Xr?Xr.width|0:Pe.framebufferWidth-dt,gr="height"in Xr?Xr.height|0:Pe.framebufferHeight-$t,Zr=Pe.viewportWidth,Pe.viewportWidth=fr,wi=Pe.viewportHeight,Pe.viewportHeight=gr,Vt.viewport(dt,$t,fr,gr),ti[0]=dt,ti[1]=$t,ti[2]=fr,ti[3]=gr,Vt.blendColor(0,0,0,1),Vr[0]=0,Vr[1]=0,Vr[2]=0,Vr[3]=1,n?Vt.enable(3042):Vt.disable(3042),ze.blend_enable=n,Vt.blendFuncSeparate(770,771,773,1),ln[0]=770,ln[1]=771,ln[2]=773,ln[3]=1,i?Vt.enable(2929):Vt.disable(2929),ze.depth_enable=i,$i=Ii.viewport,ni=$i.x|0,Xi=$i.y|0,aa="width"in $i?$i.width|0:Pe.framebufferWidth-ni,Mn="height"in $i?$i.height|0:Pe.framebufferHeight-Xi,Vt.scissor(ni,Xi,aa,Mn),Ei[0]=ni,Ei[1]=Xi,Ei[2]=aa,Ei[3]=Mn,a?Vt.enable(3089):Vt.disable(3089),ze.scissor_enable=a,o?Vt.enable(2960):Vt.disable(2960),ze.stencil_enable=o,Un=ze.profile,Un&&(Ga=performance.now(),r.count++),Vt.useProgram(s.program),ma=Er.angle_instanced_arrays,pr.setVAO(null),oa=u.call(this,Pe,Ii,0),ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,jr(oa)?(ka=!0,kn=st.createStream(34962,oa),uo=kn.dtype):(kn=st.getBuffer(oa),kn?uo=kn.dtype:"constant"in oa?(so=2,typeof oa.constant=="number"?(Kr=oa.constant,Ia=Yo=fa=0):(Kr=oa.constant.length>0?oa.constant[0]:0,Ia=oa.constant.length>1?oa.constant[1]:0,Yo=oa.constant.length>2?oa.constant[2]:0,fa=oa.constant.length>3?oa.constant[3]:0)):(jr(oa.buffer)?kn=st.createStream(34962,oa.buffer):kn=st.getBuffer(oa.buffer),uo="type"in oa?tn[oa.type]:kn.dtype,ys=!!oa.normalized,Ta=oa.size|0,ls=oa.offset|0,$a=oa.stride|0,fo=oa.divisor|0)),mn=l.location,ra=xt[mn],so===1?(ra.buffer||Vt.enableVertexAttribArray(mn),wa=Ta||4,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(Vt.bindBuffer(34962,kn.buffer),Vt.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&(Vt.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(Vt.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=f.call(this,Pe,Ii,0),Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Oa=!1,Ko=5126,Qo=0,Hi=0,Sa=0,jr(ws)?(Co=!0,Sn=st.createStream(34962,ws),Ko=Sn.dtype):(Sn=st.getBuffer(ws),Sn?Ko=Sn.dtype:"constant"in ws?(Po=2,typeof ws.constant=="number"?(Wi=ws.constant,gn=Ps=Ha=0):(Wi=ws.constant.length>0?ws.constant[0]:0,gn=ws.constant.length>1?ws.constant[1]:0,Ps=ws.constant.length>2?ws.constant[2]:0,Ha=ws.constant.length>3?ws.constant[3]:0)):(jr(ws.buffer)?Sn=st.createStream(34962,ws.buffer):Sn=st.getBuffer(ws.buffer),Ko="type"in ws?tn[ws.type]:Sn.dtype,Oa=!!ws.normalized,ao=ws.size|0,Qo=ws.offset|0,Hi=ws.stride|0,Sa=ws.divisor|0)),Qa=c.location,vn=xt[Qa],Po===1?(vn.buffer||Vt.enableVertexAttribArray(Qa),da=ao||1,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Oa||vn.offset!==Qo||vn.stride!==Hi)&&(Vt.bindBuffer(34962,Sn.buffer),Vt.vertexAttribPointer(Qa,da,Ko,Oa,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Oa,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Vt.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Vt.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=h.call(this,Pe,Ii,0),vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Ba=0,ha=0,jr(la)?(vo=!0,jn=st.createStream(34962,la),qs=jn.dtype):(jn=st.getBuffer(la),jn?qs=jn.dtype:"constant"in la?(As=2,typeof la.constant=="number"?(ps=la.constant,co=mo=No=0):(ps=la.constant.length>0?la.constant[0]:0,co=la.constant.length>1?la.constant[1]:0,mo=la.constant.length>2?la.constant[2]:0,No=la.constant.length>3?la.constant[3]:0)):(jr(la.buffer)?jn=st.createStream(34962,la.buffer):jn=st.getBuffer(la.buffer),qs="type"in la?tn[la.type]:jn.dtype,Ys=!!la.normalized,Go=la.size|0,Ns=la.offset|0,Ba=la.stride|0,ha=la.divisor|0)),Vs=d.location,Ya=xt[Vs],As===1?(Ya.buffer||Vt.enableVertexAttribArray(Vs),_n=Go||4,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Ba)&&(Vt.bindBuffer(34962,jn.buffer),Vt.vertexAttribPointer(Vs,_n,qs,Ys,Ba,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Ba),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(Vt.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(Vt.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=p.call(this,Pe,Ii,0),wo=!1,Ra=1,Xn=0,sn=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,jr(Vn)?(wo=!0,qn=st.createStream(34962,Vn),lo=qn.dtype):(qn=st.getBuffer(Vn),qn?lo=qn.dtype:"constant"in Vn?(Ra=2,typeof Vn.constant=="number"?(Xn=Vn.constant,sn=$n=Ka=0):(Xn=Vn.constant.length>0?Vn.constant[0]:0,sn=Vn.constant.length>1?Vn.constant[1]:0,$n=Vn.constant.length>2?Vn.constant[2]:0,Ka=Vn.constant.length>3?Vn.constant[3]:0)):(jr(Vn.buffer)?qn=st.createStream(34962,Vn.buffer):qn=st.getBuffer(Vn.buffer),lo="type"in Vn?tn[Vn.type]:qn.dtype,Ja=!!Vn.normalized,Eo=Vn.size|0,eo=Vn.offset|0,sa=Vn.stride|0,es=Vn.divisor|0)),Na=y.location,en=xt[Na],Ra===1?(en.buffer||Vt.enableVertexAttribArray(Na),Pa=Eo||1,(en.type!==lo||en.size!==Pa||en.buffer!==qn||en.normalized!==Ja||en.offset!==eo||en.stride!==sa)&&(Vt.bindBuffer(34962,qn.buffer),Vt.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),en.type=lo,en.size=Pa,en.buffer=qn,en.normalized=Ja,en.offset=eo,en.stride=sa),en.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),en.divisor=es)):(en.buffer&&(Vt.disableVertexAttribArray(Na),en.buffer=null),(en.x!==Xn||en.y!==sn||en.z!==$n||en.w!==Ka)&&(Vt.vertexAttrib4f(Na,Xn,sn,$n,Ka),en.x=Xn,en.y=sn,en.z=$n,en.w=Ka)),to=b.call(this,Pe,Ii,0),yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,jr(to)?(yo=!0,Ca=st.createStream(34962,to),Ho=Ca.dtype):(Ca=st.getBuffer(to),Ca?Ho=Ca.dtype:"constant"in to?(Jo=2,typeof to.constant=="number"?(Ao=to.constant,Dn=_a=Ws=0):(Ao=to.constant.length>0?to.constant[0]:0,Dn=to.constant.length>1?to.constant[1]:0,_a=to.constant.length>2?to.constant[2]:0,Ws=to.constant.length>3?to.constant[3]:0)):(jr(to.buffer)?Ca=st.createStream(34962,to.buffer):Ca=st.getBuffer(to.buffer),Ho="type"in to?tn[to.type]:Ca.dtype,Ts=!!to.normalized,Es=to.size|0,Wa=to.offset|0,To=to.stride|0,ts=to.divisor|0)),Wo=v.location,qa=xt[Wo],Jo===1?(qa.buffer||Vt.enableVertexAttribArray(Wo),on=Es||1,(qa.type!==Ho||qa.size!==on||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(Vt.bindBuffer(34962,Ca.buffer),Vt.vertexAttribPointer(Wo,on,Ho,Ts,To,Wa),qa.type=Ho,qa.size=on,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(Vt.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&(Vt.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Oo=C.call(this,Pe,Ii,0),ko=!1,oo=1,za=0,ea=0,rs=0,$s=0,us=null,Ds=0,fl=!1,as=5126,Ma=0,Qs=0,ho=0,jr(Oo)?(ko=!0,us=st.createStream(34962,Oo),as=us.dtype):(us=st.getBuffer(Oo),us?as=us.dtype:"constant"in Oo?(oo=2,typeof Oo.constant=="number"?(za=Oo.constant,ea=rs=$s=0):(za=Oo.constant.length>0?Oo.constant[0]:0,ea=Oo.constant.length>1?Oo.constant[1]:0,rs=Oo.constant.length>2?Oo.constant[2]:0,$s=Oo.constant.length>3?Oo.constant[3]:0)):(jr(Oo.buffer)?us=st.createStream(34962,Oo.buffer):us=st.getBuffer(Oo.buffer),as="type"in Oo?tn[Oo.type]:us.dtype,fl=!!Oo.normalized,Ds=Oo.size|0,Ma=Oo.offset|0,Qs=Oo.stride|0,ho=Oo.divisor|0)),gs=E.location,Vo=xt[gs],oo===1?(Vo.buffer||Vt.enableVertexAttribArray(gs),Do=Ds||1,(Vo.type!==as||Vo.size!==Do||Vo.buffer!==us||Vo.normalized!==fl||Vo.offset!==Ma||Vo.stride!==Qs)&&(Vt.bindBuffer(34962,us.buffer),Vt.vertexAttribPointer(gs,Do,as,fl,Qs,Ma),Vo.type=as,Vo.size=Do,Vo.buffer=us,Vo.normalized=fl,Vo.offset=Ma,Vo.stride=Qs),Vo.divisor!==ho&&(ma.vertexAttribDivisorANGLE(gs,ho),Vo.divisor=ho)):(Vo.buffer&&(Vt.disableVertexAttribArray(gs),Vo.buffer=null),(Vo.x!==za||Vo.y!==ea||Vo.z!==rs||Vo.w!==$s)&&(Vt.vertexAttrib4f(gs,za,ea,rs,$s),Vo.x=za,Vo.y=ea,Vo.z=rs,Vo.w=$s)),Lo=A.call(this,Pe,Ii,0),xs=!1,ks=1,Ea=0,Jn=0,Bo=0,rl=0,Gs=null,bs=0,zs=!1,$o=5126,Aa=0,os=0,_l=0,jr(Lo)?(xs=!0,Gs=st.createStream(34962,Lo),$o=Gs.dtype):(Gs=st.getBuffer(Lo),Gs?$o=Gs.dtype:"constant"in Lo?(ks=2,typeof Lo.constant=="number"?(Ea=Lo.constant,Jn=Bo=rl=0):(Ea=Lo.constant.length>0?Lo.constant[0]:0,Jn=Lo.constant.length>1?Lo.constant[1]:0,Bo=Lo.constant.length>2?Lo.constant[2]:0,rl=Lo.constant.length>3?Lo.constant[3]:0)):(jr(Lo.buffer)?Gs=st.createStream(34962,Lo.buffer):Gs=st.getBuffer(Lo.buffer),$o="type"in Lo?tn[Lo.type]:Gs.dtype,zs=!!Lo.normalized,bs=Lo.size|0,Aa=Lo.offset|0,os=Lo.stride|0,_l=Lo.divisor|0)),Ss=L.location,po=xt[Ss],ks===1?(po.buffer||Vt.enableVertexAttribArray(Ss),go=bs||1,(po.type!==$o||po.size!==go||po.buffer!==Gs||po.normalized!==zs||po.offset!==Aa||po.stride!==os)&&(Vt.bindBuffer(34962,Gs.buffer),Vt.vertexAttribPointer(Ss,go,$o,zs,os,Aa),po.type=$o,po.size=go,po.buffer=Gs,po.normalized=zs,po.offset=Aa,po.stride=os),po.divisor!==_l&&(ma.vertexAttribDivisorANGLE(Ss,_l),po.divisor=_l)):(po.buffer&&(Vt.disableVertexAttribArray(Ss),po.buffer=null),(po.x!==Ea||po.y!==Jn||po.z!==Bo||po.w!==rl)&&(Vt.vertexAttrib4f(Ss,Ea,Jn,Bo,rl),po.x=Ea,po.y=Jn,po.z=Bo,po.w=rl)),ss=x.call(this,Pe,Ii,0),qo=!1,zo=1,io=0,Io=0,Da=0,vs=0,fs=null,cl=0,el=!1,Hs=5126,Ro=0,tl=0,Fs=0,jr(ss)?(qo=!0,fs=st.createStream(34962,ss),Hs=fs.dtype):(fs=st.getBuffer(ss),fs?Hs=fs.dtype:"constant"in ss?(zo=2,typeof ss.constant=="number"?(io=ss.constant,Io=Da=vs=0):(io=ss.constant.length>0?ss.constant[0]:0,Io=ss.constant.length>1?ss.constant[1]:0,Da=ss.constant.length>2?ss.constant[2]:0,vs=ss.constant.length>3?ss.constant[3]:0)):(jr(ss.buffer)?fs=st.createStream(34962,ss.buffer):fs=st.getBuffer(ss.buffer),Hs="type"in ss?tn[ss.type]:fs.dtype,el=!!ss.normalized,cl=ss.size|0,Ro=ss.offset|0,tl=ss.stride|0,Fs=ss.divisor|0)),hl=k.location,Fa=xt[hl],zo===1?(Fa.buffer||Vt.enableVertexAttribArray(hl),Ms=cl||1,(Fa.type!==Hs||Fa.size!==Ms||Fa.buffer!==fs||Fa.normalized!==el||Fa.offset!==Ro||Fa.stride!==tl)&&(Vt.bindBuffer(34962,fs.buffer),Vt.vertexAttribPointer(hl,Ms,Hs,el,tl,Ro),Fa.type=Hs,Fa.size=Ms,Fa.buffer=fs,Fa.normalized=el,Fa.offset=Ro,Fa.stride=tl),Fa.divisor!==Fs&&(ma.vertexAttribDivisorANGLE(hl,Fs),Fa.divisor=Fs)):(Fa.buffer&&(Vt.disableVertexAttribArray(hl),Fa.buffer=null),(Fa.x!==io||Fa.y!==Io||Fa.z!==Da||Fa.w!==vs)&&(Vt.vertexAttrib4f(hl,io,Io,Da,vs),Fa.x=io,Fa.y=Io,Fa.z=Da,Fa.w=vs)),jo=S.call(this,Pe,Ii,0),Rs=!1,Is=1,Os=0,St=0,Ut=0,xr=0,dr=null,Dr=0,yi=!1,Ti=5126,ki=0,Ki=0,Fn=0,jr(jo)?(Rs=!0,dr=st.createStream(34962,jo),Ti=dr.dtype):(dr=st.getBuffer(jo),dr?Ti=dr.dtype:"constant"in jo?(Is=2,typeof jo.constant=="number"?(Os=jo.constant,St=Ut=xr=0):(Os=jo.constant.length>0?jo.constant[0]:0,St=jo.constant.length>1?jo.constant[1]:0,Ut=jo.constant.length>2?jo.constant[2]:0,xr=jo.constant.length>3?jo.constant[3]:0)):(jr(jo.buffer)?dr=st.createStream(34962,jo.buffer):dr=st.getBuffer(jo.buffer),Ti="type"in jo?tn[jo.type]:dr.dtype,yi=!!jo.normalized,Dr=jo.size|0,ki=jo.offset|0,Ki=jo.stride|0,Fn=jo.divisor|0)),Li=m.location,hi=xt[Li],Is===1?(hi.buffer||Vt.enableVertexAttribArray(Li),Ci=Dr||1,(hi.type!==Ti||hi.size!==Ci||hi.buffer!==dr||hi.normalized!==yi||hi.offset!==ki||hi.stride!==Ki)&&(Vt.bindBuffer(34962,dr.buffer),Vt.vertexAttribPointer(Li,Ci,Ti,yi,Ki,ki),hi.type=Ti,hi.size=Ci,hi.buffer=dr,hi.normalized=yi,hi.offset=ki,hi.stride=Ki),hi.divisor!==Fn&&(ma.vertexAttribDivisorANGLE(Li,Fn),hi.divisor=Fn)):(hi.buffer&&(Vt.disableVertexAttribArray(Li),hi.buffer=null),(hi.x!==Os||hi.y!==St||hi.z!==Ut||hi.w!==xr)&&(Vt.vertexAttrib4f(Li,Os,St,Ut,xr),hi.x=Os,hi.y=St,hi.z=Ut,hi.w=xr)),Vt.uniform1i(P.location,!1),Si=Ii.opacity,Vt.uniform1f(M.location,Si),Gn=F.call(this,Pe,Ii,0),ta=Gn[0],ya=Gn[1],Vt.uniform2f(O.location,ta,ya),Vt.uniform1i(U.location,G.bind()),ia=Pe.pixelRatio,Vt.uniform1f(j.location,ia),pa=Ii.scale,va=pa[0],zn=pa[1],Vt.uniform2f(W.location,va,zn),is=Ii.scaleFract,Cs=is[0],Ks=is[1],Vt.uniform2f(N.location,Cs,Ks),dl=Ii.translate,xl=dl[0],Bl=dl[1],Vt.uniform2f(H.location,xl,Bl),bl=Ii.translateFract,eu=bl[0],Zl=bl[1],Vt.uniform2f(re.location,eu,Zl),Vl=Ii.elements,ja=null,ns=jr(Vl),ns?ja=ht.createStream(Vl):ja=ht.getElements(Vl),ja&&Vt.bindBuffer(34963,ja.buffer.buffer),Js=Ii.offset,cs=Ii.count,cs&&(sl=De.instances,sl>0?ja?ma.drawElementsInstancedANGLE(0,cs,ja.type,Js<<(ja.type-5121>>1),sl):ma.drawArraysInstancedANGLE(0,Js,cs,sl):sl<0&&(ja?Vt.drawElements(0,cs,ja.type,Js<<(ja.type-5121>>1)):Vt.drawArrays(0,Js,cs)),ze.dirty=!0,pr.setVAO(null),Pe.viewportWidth=Zr,Pe.viewportHeight=wi,Un&&(r.cpuTime+=performance.now()-Ga),ka&&st.destroyStream(kn),Co&&st.destroyStream(Sn),vo&&st.destroyStream(jn),wo&&st.destroyStream(qn),yo&&st.destroyStream(Ca),ko&&st.destroyStream(us),xs&&st.destroyStream(Gs),qo&&st.destroyStream(fs),Rs&&st.destroyStream(dr),G.unbind(),ns&&ht.destroyStream(ja))},scope:function(Ii,xn,xi){var Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Rl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr,Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,nu,ru,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,le,Le,Ye,nt,ut,Ht,wt,lr,Cr,zr,ui,$r,Oi,un,pi,Pi,ji,pn,an,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Sf;Xr=Ii.viewport,dt=Xr.x|0,$t=Xr.y|0,fr="width"in Xr?Xr.width|0:Pe.framebufferWidth-dt,gr="height"in Xr?Xr.height|0:Pe.framebufferHeight-$t,Zr=Pe.viewportWidth,Pe.viewportWidth=fr,wi=Pe.viewportHeight,Pe.viewportHeight=gr,$i=Vi[0],Vi[0]=dt,ni=Vi[1],Vi[1]=$t,Xi=Vi[2],Vi[2]=fr,aa=Vi[3],Vi[3]=gr,Mn=kr[0],kr[0]=ae,Un=kr[1],kr[1]=me,Ga=kr[2],kr[2]=Ce,ma=kr[3],kr[3]=Ee,oa=Oe.blend_enable,Oe.blend_enable=de,ka=Ri[0],Ri[0]=te,so=Ri[1],Ri[1]=Se,Kr=Ri[2],Ri[2]=Te,Ia=Ri[3],Ri[3]=be,Yo=Oe.depth_enable,Oe.depth_enable=He,fa=Ii.viewport,kn=fa.x|0,Ta=fa.y|0,ys="width"in fa?fa.width|0:Pe.framebufferWidth-kn,uo="height"in fa?fa.height|0:Pe.framebufferHeight-Ta,ls=mi[0],mi[0]=kn,$a=mi[1],mi[1]=Ta,fo=mi[2],mi[2]=ys,mn=mi[3],mi[3]=uo,ra=Oe.scissor_enable,Oe.scissor_enable=Ie,wa=Oe.stencil_enable,Oe.stencil_enable=ge,ws=ze.profile,ws&&(Co=performance.now(),r.count++),Po=Ii.elements,Wi=null,gn=jr(Po),gn?Wi=ht.createStream(Po):Wi=ht.getElements(Po),Ps=De.elements,De.elements=Wi,Ha=Ii.offset,Sn=De.offset,De.offset=Ha,ao=Ii.count,Oa=De.count,De.count=ao,Ko=De.primitive,De.primitive=Be,Qo=br[ce],br[ce]=!1,Hi=br[rt],br[rt]=je,Sa=Ii.opacity,Qa=br[bt],br[bt]=Sa,vn=F.call(this,Pe,Ii,xi),da=br[Ot],br[Ot]=vn,la=Pe.pixelRatio,vo=br[it],br[it]=la,As=Ii.scale,ps=br[Ke],br[Ke]=As,co=Ii.scaleFract,mo=br[zt],br[zt]=co,No=Ii.translate,jn=br[Mt],br[Mt]=No,Go=Ii.translateFract,Ys=br[kt],br[kt]=Go,qs=Ii.markerTexture,Ns=br[$e],br[$e]=qs,Ba=C.call(this,Pe,Ii,xi),ha=!1,Vs=1,Ya=0,_n=0,Vn=0,wo=0,Ra=null,Xn=0,sn=!1,$n=5126,Ka=0,qn=0,Eo=0,jr(Ba)?(ha=!0,Ra=st.createStream(34962,Ba),$n=Ra.dtype):(Ra=st.getBuffer(Ba),Ra?$n=Ra.dtype:"constant"in Ba?(Vs=2,typeof Ba.constant=="number"?(Ya=Ba.constant,_n=Vn=wo=0):(Ya=Ba.constant.length>0?Ba.constant[0]:0,_n=Ba.constant.length>1?Ba.constant[1]:0,Vn=Ba.constant.length>2?Ba.constant[2]:0,wo=Ba.constant.length>3?Ba.constant[3]:0)):(jr(Ba.buffer)?Ra=st.createStream(34962,Ba.buffer):Ra=st.getBuffer(Ba.buffer),$n="type"in Ba?tn[Ba.type]:Ra.dtype,sn=!!Ba.normalized,Xn=Ba.size|0,Ka=Ba.offset|0,qn=Ba.stride|0,Eo=Ba.divisor|0)),Ja=Re.state,Re.state=Vs,lo=Re.x,Re.x=Ya,eo=Re.y,Re.y=_n,sa=Re.z,Re.z=Vn,es=Re.w,Re.w=wo,Na=Re.buffer,Re.buffer=Ra,en=Re.size,Re.size=Xn,Pa=Re.normalized,Re.normalized=sn,to=Re.type,Re.type=$n,yo=Re.offset,Re.offset=Ka,Jo=Re.stride,Re.stride=qn,Ao=Re.divisor,Re.divisor=Eo,Dn=x.call(this,Pe,Ii,xi),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,on=0,Oo=0,jr(Dn)?(_a=!0,Wa=st.createStream(34962,Dn),Wo=Wa.dtype):(Wa=st.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(jr(Dn.buffer)?Wa=st.createStream(34962,Dn.buffer):Wa=st.getBuffer(Dn.buffer),Wo="type"in Dn?tn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,on=Dn.stride|0,Oo=Dn.divisor|0)),ko=Me.state,Me.state=Ws,oo=Me.x,Me.x=Ca,za=Me.y,Me.y=Es,ea=Me.z,Me.z=Ts,rs=Me.w,Me.w=Ho,$s=Me.buffer,Me.buffer=Wa,us=Me.size,Me.size=To,Ds=Me.normalized,Me.normalized=ts,fl=Me.type,Me.type=Wo,as=Me.offset,Me.offset=qa,Ma=Me.stride,Me.stride=on,Qs=Me.divisor,Me.divisor=Oo,ho=A.call(this,Pe,Ii,xi),gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Bo=!1,rl=5126,Gs=0,bs=0,zs=0,jr(ho)?(gs=!0,Ea=st.createStream(34962,ho),rl=Ea.dtype):(Ea=st.getBuffer(ho),Ea?rl=Ea.dtype:"constant"in ho?(Vo=2,typeof ho.constant=="number"?(Do=ho.constant,Lo=xs=ks=0):(Do=ho.constant.length>0?ho.constant[0]:0,Lo=ho.constant.length>1?ho.constant[1]:0,xs=ho.constant.length>2?ho.constant[2]:0,ks=ho.constant.length>3?ho.constant[3]:0)):(jr(ho.buffer)?Ea=st.createStream(34962,ho.buffer):Ea=st.getBuffer(ho.buffer),rl="type"in ho?tn[ho.type]:Ea.dtype,Bo=!!ho.normalized,Jn=ho.size|0,Gs=ho.offset|0,bs=ho.stride|0,zs=ho.divisor|0)),$o=oe.state,oe.state=Vo,Aa=oe.x,oe.x=Do,os=oe.y,oe.y=Lo,_l=oe.z,oe.z=xs,Ss=oe.w,oe.w=ks,po=oe.buffer,oe.buffer=Ea,go=oe.size,oe.size=Jn,ss=oe.normalized,oe.normalized=Bo,qo=oe.type,oe.type=rl,zo=oe.offset,oe.offset=Gs,io=oe.stride,oe.stride=bs,Io=oe.divisor,oe.divisor=zs,Da=S.call(this,Pe,Ii,xi),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,jr(Da)?(vs=!0,tl=st.createStream(34962,Da),Fa=tl.dtype):(tl=st.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(jr(Da.buffer)?tl=st.createStream(34962,Da.buffer):tl=st.getBuffer(Da.buffer),Fa="type"in Da?tn[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=Ne.state,Ne.state=fs,Os=Ne.x,Ne.x=cl,St=Ne.y,Ne.y=el,Ut=Ne.z,Ne.z=Hs,xr=Ne.w,Ne.w=Ro,dr=Ne.buffer,Ne.buffer=tl,Dr=Ne.size,Ne.size=Fs,yi=Ne.normalized,Ne.normalized=hl,Ti=Ne.type,Ne.type=Fa,ki=Ne.offset,Ne.offset=Ms,Ki=Ne.stride,Ne.stride=jo,Fn=Ne.divisor,Ne.divisor=Rs,Li=b.call(this,Pe,Ii,xi),hi=!1,Ci=1,Si=0,Gn=0,ta=0,ya=0,ia=null,pa=0,va=!1,zn=5126,is=0,Cs=0,Ks=0,jr(Li)?(hi=!0,ia=st.createStream(34962,Li),zn=ia.dtype):(ia=st.getBuffer(Li),ia?zn=ia.dtype:"constant"in Li?(Ci=2,typeof Li.constant=="number"?(Si=Li.constant,Gn=ta=ya=0):(Si=Li.constant.length>0?Li.constant[0]:0,Gn=Li.constant.length>1?Li.constant[1]:0,ta=Li.constant.length>2?Li.constant[2]:0,ya=Li.constant.length>3?Li.constant[3]:0)):(jr(Li.buffer)?ia=st.createStream(34962,Li.buffer):ia=st.getBuffer(Li.buffer),zn="type"in Li?tn[Li.type]:ia.dtype,va=!!Li.normalized,pa=Li.size|0,is=Li.offset|0,Cs=Li.stride|0,Ks=Li.divisor|0)),dl=vt.state,vt.state=Ci,xl=vt.x,vt.x=Si,Bl=vt.y,vt.y=Gn,bl=vt.z,vt.z=ta,eu=vt.w,vt.w=ya,Zl=vt.buffer,vt.buffer=ia,Vl=vt.size,vt.size=pa,ja=vt.normalized,vt.normalized=va,ns=vt.type,vt.type=zn,Js=vt.offset,vt.offset=is,cs=vt.stride,vt.stride=Cs,sl=vt.divisor,vt.divisor=Ks,ll=f.call(this,Pe,Ii,xi),nl=!1,zl=1,Ml=0,Rl=0,Al=0,Ll=0,ms=null,Bs=0,Xl=!1,Gl=5126,Nl=0,ue=0,w=0,jr(ll)?(nl=!0,ms=st.createStream(34962,ll),Gl=ms.dtype):(ms=st.getBuffer(ll),ms?Gl=ms.dtype:"constant"in ll?(zl=2,typeof ll.constant=="number"?(Ml=ll.constant,Rl=Al=Ll=0):(Ml=ll.constant.length>0?ll.constant[0]:0,Rl=ll.constant.length>1?ll.constant[1]:0,Al=ll.constant.length>2?ll.constant[2]:0,Ll=ll.constant.length>3?ll.constant[3]:0)):(jr(ll.buffer)?ms=st.createStream(34962,ll.buffer):ms=st.getBuffer(ll.buffer),Gl="type"in ll?tn[ll.type]:ms.dtype,Xl=!!ll.normalized,Bs=ll.size|0,Nl=ll.offset|0,ue=ll.stride|0,w=ll.divisor|0)),q=lt.state,lt.state=zl,Q=lt.x,lt.x=Ml,ee=lt.y,lt.y=Rl,fe=lt.z,lt.z=Al,Ue=lt.w,lt.w=Ll,at=lt.buffer,lt.buffer=ms,yt=lt.size,lt.size=Bs,Rt=lt.normalized,lt.normalized=Xl,Qt=lt.type,lt.type=Gl,rr=lt.offset,lt.offset=Nl,Mr=lt.stride,lt.stride=ue,Ur=lt.divisor,lt.divisor=w,he=h.call(this,Pe,Ii,xi),Ae=!1,qe=1,Ge=0,ft=0,ot=0,mt=0,Gt=null,er=0,sr=!1,wr=5126,Ir=0,ri=0,si=0,jr(he)?(Ae=!0,Gt=st.createStream(34962,he),wr=Gt.dtype):(Gt=st.getBuffer(he),Gt?wr=Gt.dtype:"constant"in he?(qe=2,typeof he.constant=="number"?(Ge=he.constant,ft=ot=mt=0):(Ge=he.constant.length>0?he.constant[0]:0,ft=he.constant.length>1?he.constant[1]:0,ot=he.constant.length>2?he.constant[2]:0,mt=he.constant.length>3?he.constant[3]:0)):(jr(he.buffer)?Gt=st.createStream(34962,he.buffer):Gt=st.getBuffer(he.buffer),wr="type"in he?tn[he.type]:Gt.dtype,sr=!!he.normalized,er=he.size|0,Ir=he.offset|0,ri=he.stride|0,si=he.divisor|0)),Mi=We.state,We.state=qe,cn=We.x,We.x=Ge,Zn=We.y,We.y=ft,Yn=We.z,We.z=ot,Ua=We.w,We.w=mt,Fo=We.buffer,We.buffer=Gt,vl=We.size,We.size=er,Us=We.normalized,We.normalized=sr,ml=We.type,We.type=wr,au=We.offset,We.offset=Ir,Sl=We.stride,We.stride=ri,Yl=We.divisor,We.divisor=si,ql=u.call(this,Pe,Ii,xi),ou=!1,Pu=1,nu=0,ru=0,Hu=0,$u=0,Ku=null,Wu=0,ju=!1,sf=5126,_f=0,Qu=0,ef=0,jr(ql)?(ou=!0,Ku=st.createStream(34962,ql),sf=Ku.dtype):(Ku=st.getBuffer(ql),Ku?sf=Ku.dtype:"constant"in ql?(Pu=2,typeof ql.constant=="number"?(nu=ql.constant,ru=Hu=$u=0):(nu=ql.constant.length>0?ql.constant[0]:0,ru=ql.constant.length>1?ql.constant[1]:0,Hu=ql.constant.length>2?ql.constant[2]:0,$u=ql.constant.length>3?ql.constant[3]:0)):(jr(ql.buffer)?Ku=st.createStream(34962,ql.buffer):Ku=st.getBuffer(ql.buffer),sf="type"in ql?tn[ql.type]:Ku.dtype,ju=!!ql.normalized,Wu=ql.size|0,_f=ql.offset|0,Qu=ql.stride|0,ef=ql.divisor|0)),Z=Ve.state,Ve.state=Pu,le=Ve.x,Ve.x=nu,Le=Ve.y,Ve.y=ru,Ye=Ve.z,Ve.z=Hu,nt=Ve.w,Ve.w=$u,ut=Ve.buffer,Ve.buffer=Ku,Ht=Ve.size,Ve.size=Wu,wt=Ve.normalized,Ve.normalized=ju,lr=Ve.type,Ve.type=sf,Cr=Ve.offset,Ve.offset=_f,zr=Ve.stride,Ve.stride=Qu,ui=Ve.divisor,Ve.divisor=ef,$r=p.call(this,Pe,Ii,xi),Oi=!1,un=1,pi=0,Pi=0,ji=0,pn=0,an=null,bi=0,xo=!1,no=5126,Xo=0,js=0,El=0,jr($r)?(Oi=!0,an=st.createStream(34962,$r),no=an.dtype):(an=st.getBuffer($r),an?no=an.dtype:"constant"in $r?(un=2,typeof $r.constant=="number"?(pi=$r.constant,Pi=ji=pn=0):(pi=$r.constant.length>0?$r.constant[0]:0,Pi=$r.constant.length>1?$r.constant[1]:0,ji=$r.constant.length>2?$r.constant[2]:0,pn=$r.constant.length>3?$r.constant[3]:0)):(jr($r.buffer)?an=st.createStream(34962,$r.buffer):an=st.getBuffer($r.buffer),no="type"in $r?tn[$r.type]:an.dtype,xo=!!$r.normalized,bi=$r.size|0,Xo=$r.offset|0,js=$r.stride|0,El=$r.divisor|0)),Pl=et.state,et.state=un,pu=et.x,et.x=pi,Il=et.y,et.y=Pi,fu=et.z,et.z=ji,Xu=et.w,et.w=pn,Vu=et.buffer,et.buffer=an,tf=et.size,et.size=bi,ds=et.normalized,et.normalized=xo,Wl=et.type,et.type=no,Au=et.offset,et.offset=Xo,Tu=et.stride,et.stride=js,lf=et.divisor,et.divisor=El,hf=gt.vert,gt.vert=tt,Sf=gt.frag,gt.frag=Lt,ze.dirty=!0,xn(Pe,Ii,xi),Pe.viewportWidth=Zr,Pe.viewportHeight=wi,Vi[0]=$i,Vi[1]=ni,Vi[2]=Xi,Vi[3]=aa,kr[0]=Mn,kr[1]=Un,kr[2]=Ga,kr[3]=ma,Oe.blend_enable=oa,Ri[0]=ka,Ri[1]=so,Ri[2]=Kr,Ri[3]=Ia,Oe.depth_enable=Yo,mi[0]=ls,mi[1]=$a,mi[2]=fo,mi[3]=mn,Oe.scissor_enable=ra,Oe.stencil_enable=wa,ws&&(r.cpuTime+=performance.now()-Co),gn&&ht.destroyStream(Wi),De.elements=Ps,De.offset=Sn,De.count=Oa,De.primitive=Ko,br[ce]=Qo,br[rt]=Hi,br[bt]=Qa,br[Ot]=da,br[it]=vo,br[Ke]=ps,br[zt]=mo,br[Mt]=jn,br[kt]=Ys,br[$e]=Ns,ha&&st.destroyStream(Ra),Re.state=Ja,Re.x=lo,Re.y=eo,Re.z=sa,Re.w=es,Re.buffer=Na,Re.size=en,Re.normalized=Pa,Re.type=to,Re.offset=yo,Re.stride=Jo,Re.divisor=Ao,_a&&st.destroyStream(Wa),Me.state=ko,Me.x=oo,Me.y=za,Me.z=ea,Me.w=rs,Me.buffer=$s,Me.size=us,Me.normalized=Ds,Me.type=fl,Me.offset=as,Me.stride=Ma,Me.divisor=Qs,gs&&st.destroyStream(Ea),oe.state=$o,oe.x=Aa,oe.y=os,oe.z=_l,oe.w=Ss,oe.buffer=po,oe.size=go,oe.normalized=ss,oe.type=qo,oe.offset=zo,oe.stride=io,oe.divisor=Io,vs&&st.destroyStream(tl),Ne.state=Is,Ne.x=Os,Ne.y=St,Ne.z=Ut,Ne.w=xr,Ne.buffer=dr,Ne.size=Dr,Ne.normalized=yi,Ne.type=Ti,Ne.offset=ki,Ne.stride=Ki,Ne.divisor=Fn,hi&&st.destroyStream(ia),vt.state=dl,vt.x=xl,vt.y=Bl,vt.z=bl,vt.w=eu,vt.buffer=Zl,vt.size=Vl,vt.normalized=ja,vt.type=ns,vt.offset=Js,vt.stride=cs,vt.divisor=sl,nl&&st.destroyStream(ms),lt.state=q,lt.x=Q,lt.y=ee,lt.z=fe,lt.w=Ue,lt.buffer=at,lt.size=yt,lt.normalized=Rt,lt.type=Qt,lt.offset=rr,lt.stride=Mr,lt.divisor=Ur,Ae&&st.destroyStream(Gt),We.state=Mi,We.x=cn,We.y=Zn,We.z=Yn,We.w=Ua,We.buffer=Fo,We.size=vl,We.normalized=Us,We.type=ml,We.offset=au,We.stride=Sl,We.divisor=Yl,ou&&st.destroyStream(Ku),Ve.state=Z,Ve.x=le,Ve.y=Le,Ve.z=Ye,Ve.w=nt,Ve.buffer=ut,Ve.size=Ht,Ve.normalized=wt,Ve.type=lr,Ve.offset=Cr,Ve.stride=zr,Ve.divisor=ui,Oi&&st.destroyStream(an),et.state=Pl,et.x=pu,et.y=Il,et.z=fu,et.w=Xu,et.buffer=Vu,et.size=tf,et.normalized=ds,et.type=Wl,et.offset=Au,et.stride=Tu,et.divisor=lf,gt.vert=hf,gt.frag=Sf,ze.dirty=!0},batch:function(Ii,xn){var xi,Xr,dt,$t,fr,gr,Zr;if(xi=Er.angle_instanced_arrays,Xr=cr.next,Xr!==cr.cur&&(Xr?Vt.bindFramebuffer(36160,Xr.framebuffer):Vt.bindFramebuffer(36160,null),cr.cur=Xr),ze.dirty){var wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn;wi=Oe.dither,wi!==ze.dither&&(wi?Vt.enable(3024):Vt.disable(3024),ze.dither=wi),$i=Ai[0],ni=Ai[1],($i!==Bi[0]||ni!==Bi[1])&&(Vt.blendEquationSeparate($i,ni),Bi[0]=$i,Bi[1]=ni),Xi=Oe.depth_func,Xi!==ze.depth_func&&(Vt.depthFunc(Xi),ze.depth_func=Xi),aa=hn[0],Mn=hn[1],(aa!==qr[0]||Mn!==qr[1])&&(Vt.depthRange(aa,Mn),qr[0]=aa,qr[1]=Mn),Un=Oe.depth_mask,Un!==ze.depth_mask&&(Vt.depthMask(Un),ze.depth_mask=Un),Ga=_i[0],ma=_i[1],oa=_i[2],ka=_i[3],(Ga!==zi[0]||ma!==zi[1]||oa!==zi[2]||ka!==zi[3])&&(Vt.colorMask(Ga,ma,oa,ka),zi[0]=Ga,zi[1]=ma,zi[2]=oa,zi[3]=ka),so=Oe.cull_enable,so!==ze.cull_enable&&(so?Vt.enable(2884):Vt.disable(2884),ze.cull_enable=so),Kr=Oe.cull_face,Kr!==ze.cull_face&&(Vt.cullFace(Kr),ze.cull_face=Kr),Ia=Oe.frontFace,Ia!==ze.frontFace&&(Vt.frontFace(Ia),ze.frontFace=Ia),Yo=Oe.lineWidth,Yo!==ze.lineWidth&&(Vt.lineWidth(Yo),ze.lineWidth=Yo),fa=Oe.polygonOffset_enable,fa!==ze.polygonOffset_enable&&(fa?Vt.enable(32823):Vt.disable(32823),ze.polygonOffset_enable=fa),kn=Dt[0],Ta=Dt[1],(kn!==_t[0]||Ta!==_t[1])&&(Vt.polygonOffset(kn,Ta),_t[0]=kn,_t[1]=Ta),ys=Oe.sample_alpha,ys!==ze.sample_alpha&&(ys?Vt.enable(32926):Vt.disable(32926),ze.sample_alpha=ys),uo=Oe.sample_enable,uo!==ze.sample_enable&&(uo?Vt.enable(32928):Vt.disable(32928),ze.sample_enable=uo),ls=qt[0],$a=qt[1],(ls!==Nt[0]||$a!==Nt[1])&&(Vt.sampleCoverage(ls,$a),Nt[0]=ls,Nt[1]=$a),fo=Oe.stencil_mask,fo!==ze.stencil_mask&&(Vt.stencilMask(fo),ze.stencil_mask=fo),mn=mr[0],ra=mr[1],wa=mr[2],(mn!==Lr[0]||ra!==Lr[1]||wa!==Lr[2])&&(Vt.stencilFunc(mn,ra,wa),Lr[0]=mn,Lr[1]=ra,Lr[2]=wa),ws=Nr[0],Co=Nr[1],Po=Nr[2],Wi=Nr[3],(ws!==Fr[0]||Co!==Fr[1]||Po!==Fr[2]||Wi!==Fr[3])&&(Vt.stencilOpSeparate(ws,Co,Po,Wi),Fr[0]=ws,Fr[1]=Co,Fr[2]=Po,Fr[3]=Wi),gn=Hr[0],Ps=Hr[1],Ha=Hr[2],Sn=Hr[3],(gn!==Gr[0]||Ps!==Gr[1]||Ha!==Gr[2]||Sn!==Gr[3])&&(Vt.stencilOpSeparate(gn,Ps,Ha,Sn),Gr[0]=gn,Gr[1]=Ps,Gr[2]=Ha,Gr[3]=Sn)}Vt.blendColor(0,0,0,1),Vr[0]=0,Vr[1]=0,Vr[2]=0,Vr[3]=1,jt?Vt.enable(3042):Vt.disable(3042),ze.blend_enable=jt,Vt.blendFuncSeparate(770,771,773,1),ln[0]=770,ln[1]=771,ln[2]=773,ln[3]=1,or?Vt.enable(2929):Vt.disable(2929),ze.depth_enable=or,yr?Vt.enable(3089):Vt.disable(3089),ze.scissor_enable=yr,vr?Vt.enable(2960):Vt.disable(2960),ze.stencil_enable=vr,dt=ze.profile,dt&&($t=performance.now(),r.count+=xn),Vt.useProgram(s.program),fr=Er.angle_instanced_arrays;var ao;for(pr.setVAO(null),Vt.uniform1i(P.location,!1),Vt.uniform1i(U.location,G.bind()),ao=De.instances,gr=0;gr0?co.constant[0]:0,Go=co.constant.length>1?co.constant[1]:0,Ys=co.constant.length>2?co.constant[2]:0,qs=co.constant.length>3?co.constant[3]:0)):(jr(co.buffer)?Ns=st.createStream(34962,co.buffer):Ns=st.getBuffer(co.buffer),Vs="type"in co?tn[co.type]:Ns.dtype,ha=!!co.normalized,Ba=co.size|0,Ya=co.offset|0,_n=co.stride|0,Vn=co.divisor|0)),wo=l.location,Ra=xt[wo],No===1?(Ra.buffer||Vt.enableVertexAttribArray(wo),Xn=Ba||4,(Ra.type!==Vs||Ra.size!==Xn||Ra.buffer!==Ns||Ra.normalized!==ha||Ra.offset!==Ya||Ra.stride!==_n)&&(Vt.bindBuffer(34962,Ns.buffer),Vt.vertexAttribPointer(wo,Xn,Vs,ha,_n,Ya),Ra.type=Vs,Ra.size=Xn,Ra.buffer=Ns,Ra.normalized=ha,Ra.offset=Ya,Ra.stride=_n),Ra.divisor!==Vn&&(fr.vertexAttribDivisorANGLE(wo,Vn),Ra.divisor=Vn)):(Ra.buffer&&(Vt.disableVertexAttribArray(wo),Ra.buffer=null),(Ra.x!==jn||Ra.y!==Go||Ra.z!==Ys||Ra.w!==qs)&&(Vt.vertexAttrib4f(wo,jn,Go,Ys,qs),Ra.x=jn,Ra.y=Go,Ra.z=Ys,Ra.w=qs)),sn=f.call(this,Pe,Zr,gr),$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,en=0,Pa=0,to=0,jr(sn)?($n=!0,eo=st.createStream(34962,sn),Na=eo.dtype):(eo=st.getBuffer(sn),eo?Na=eo.dtype:"constant"in sn?(Ka=2,typeof sn.constant=="number"?(qn=sn.constant,Eo=Ja=lo=0):(qn=sn.constant.length>0?sn.constant[0]:0,Eo=sn.constant.length>1?sn.constant[1]:0,Ja=sn.constant.length>2?sn.constant[2]:0,lo=sn.constant.length>3?sn.constant[3]:0)):(jr(sn.buffer)?eo=st.createStream(34962,sn.buffer):eo=st.getBuffer(sn.buffer),Na="type"in sn?tn[sn.type]:eo.dtype,es=!!sn.normalized,sa=sn.size|0,en=sn.offset|0,Pa=sn.stride|0,to=sn.divisor|0)),yo=c.location,Jo=xt[yo],Ka===1?(Jo.buffer||Vt.enableVertexAttribArray(yo),Ao=sa||1,(Jo.type!==Na||Jo.size!==Ao||Jo.buffer!==eo||Jo.normalized!==es||Jo.offset!==en||Jo.stride!==Pa)&&(Vt.bindBuffer(34962,eo.buffer),Vt.vertexAttribPointer(yo,Ao,Na,es,Pa,en),Jo.type=Na,Jo.size=Ao,Jo.buffer=eo,Jo.normalized=es,Jo.offset=en,Jo.stride=Pa),Jo.divisor!==to&&(fr.vertexAttribDivisorANGLE(yo,to),Jo.divisor=to)):(Jo.buffer&&(Vt.disableVertexAttribArray(yo),Jo.buffer=null),(Jo.x!==qn||Jo.y!==Eo||Jo.z!==Ja||Jo.w!==lo)&&(Vt.vertexAttrib4f(yo,qn,Eo,Ja,lo),Jo.x=qn,Jo.y=Eo,Jo.z=Ja,Jo.w=lo)),Dn=h.call(this,Pe,Zr,gr),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,on=0,Oo=0,jr(Dn)?(_a=!0,Wa=st.createStream(34962,Dn),Wo=Wa.dtype):(Wa=st.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(jr(Dn.buffer)?Wa=st.createStream(34962,Dn.buffer):Wa=st.getBuffer(Dn.buffer),Wo="type"in Dn?tn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,on=Dn.stride|0,Oo=Dn.divisor|0)),ko=d.location,oo=xt[ko],Ws===1?(oo.buffer||Vt.enableVertexAttribArray(ko),za=To||4,(oo.type!==Wo||oo.size!==za||oo.buffer!==Wa||oo.normalized!==ts||oo.offset!==qa||oo.stride!==on)&&(Vt.bindBuffer(34962,Wa.buffer),Vt.vertexAttribPointer(ko,za,Wo,ts,on,qa),oo.type=Wo,oo.size=za,oo.buffer=Wa,oo.normalized=ts,oo.offset=qa,oo.stride=on),oo.divisor!==Oo&&(fr.vertexAttribDivisorANGLE(ko,Oo),oo.divisor=Oo)):(oo.buffer&&(Vt.disableVertexAttribArray(ko),oo.buffer=null),(oo.x!==Ca||oo.y!==Es||oo.z!==Ts||oo.w!==Ho)&&(Vt.vertexAttrib4f(ko,Ca,Es,Ts,Ho),oo.x=Ca,oo.y=Es,oo.z=Ts,oo.w=Ho)),ea=p.call(this,Pe,Zr,gr),rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,jr(ea)?(rs=!0,Ma=st.createStream(34962,ea),gs=Ma.dtype):(Ma=st.getBuffer(ea),Ma?gs=Ma.dtype:"constant"in ea?($s=2,typeof ea.constant=="number"?(us=ea.constant,Ds=fl=as=0):(us=ea.constant.length>0?ea.constant[0]:0,Ds=ea.constant.length>1?ea.constant[1]:0,fl=ea.constant.length>2?ea.constant[2]:0,as=ea.constant.length>3?ea.constant[3]:0)):(jr(ea.buffer)?Ma=st.createStream(34962,ea.buffer):Ma=st.getBuffer(ea.buffer),gs="type"in ea?tn[ea.type]:Ma.dtype,ho=!!ea.normalized,Qs=ea.size|0,Vo=ea.offset|0,Do=ea.stride|0,Lo=ea.divisor|0)),xs=y.location,ks=xt[xs],$s===1?(ks.buffer||Vt.enableVertexAttribArray(xs),Ea=Qs||1,(ks.type!==gs||ks.size!==Ea||ks.buffer!==Ma||ks.normalized!==ho||ks.offset!==Vo||ks.stride!==Do)&&(Vt.bindBuffer(34962,Ma.buffer),Vt.vertexAttribPointer(xs,Ea,gs,ho,Do,Vo),ks.type=gs,ks.size=Ea,ks.buffer=Ma,ks.normalized=ho,ks.offset=Vo,ks.stride=Do),ks.divisor!==Lo&&(fr.vertexAttribDivisorANGLE(xs,Lo),ks.divisor=Lo)):(ks.buffer&&(Vt.disableVertexAttribArray(xs),ks.buffer=null),(ks.x!==us||ks.y!==Ds||ks.z!==fl||ks.w!==as)&&(Vt.vertexAttrib4f(xs,us,Ds,fl,as),ks.x=us,ks.y=Ds,ks.z=fl,ks.w=as)),Jn=b.call(this,Pe,Zr,gr),Bo=!1,rl=1,Gs=0,bs=0,zs=0,$o=0,Aa=null,os=0,_l=!1,Ss=5126,po=0,go=0,ss=0,jr(Jn)?(Bo=!0,Aa=st.createStream(34962,Jn),Ss=Aa.dtype):(Aa=st.getBuffer(Jn),Aa?Ss=Aa.dtype:"constant"in Jn?(rl=2,typeof Jn.constant=="number"?(Gs=Jn.constant,bs=zs=$o=0):(Gs=Jn.constant.length>0?Jn.constant[0]:0,bs=Jn.constant.length>1?Jn.constant[1]:0,zs=Jn.constant.length>2?Jn.constant[2]:0,$o=Jn.constant.length>3?Jn.constant[3]:0)):(jr(Jn.buffer)?Aa=st.createStream(34962,Jn.buffer):Aa=st.getBuffer(Jn.buffer),Ss="type"in Jn?tn[Jn.type]:Aa.dtype,_l=!!Jn.normalized,os=Jn.size|0,po=Jn.offset|0,go=Jn.stride|0,ss=Jn.divisor|0)),qo=v.location,zo=xt[qo],rl===1?(zo.buffer||Vt.enableVertexAttribArray(qo),io=os||1,(zo.type!==Ss||zo.size!==io||zo.buffer!==Aa||zo.normalized!==_l||zo.offset!==po||zo.stride!==go)&&(Vt.bindBuffer(34962,Aa.buffer),Vt.vertexAttribPointer(qo,io,Ss,_l,go,po),zo.type=Ss,zo.size=io,zo.buffer=Aa,zo.normalized=_l,zo.offset=po,zo.stride=go),zo.divisor!==ss&&(fr.vertexAttribDivisorANGLE(qo,ss),zo.divisor=ss)):(zo.buffer&&(Vt.disableVertexAttribArray(qo),zo.buffer=null),(zo.x!==Gs||zo.y!==bs||zo.z!==zs||zo.w!==$o)&&(Vt.vertexAttrib4f(qo,Gs,bs,zs,$o),zo.x=Gs,zo.y=bs,zo.z=zs,zo.w=$o)),Io=C.call(this,Pe,Zr,gr),Da=!1,vs=1,fs=0,cl=0,el=0,Hs=0,Ro=null,tl=0,Fs=!1,hl=5126,Fa=0,Ms=0,jo=0,jr(Io)?(Da=!0,Ro=st.createStream(34962,Io),hl=Ro.dtype):(Ro=st.getBuffer(Io),Ro?hl=Ro.dtype:"constant"in Io?(vs=2,typeof Io.constant=="number"?(fs=Io.constant,cl=el=Hs=0):(fs=Io.constant.length>0?Io.constant[0]:0,cl=Io.constant.length>1?Io.constant[1]:0,el=Io.constant.length>2?Io.constant[2]:0,Hs=Io.constant.length>3?Io.constant[3]:0)):(jr(Io.buffer)?Ro=st.createStream(34962,Io.buffer):Ro=st.getBuffer(Io.buffer),hl="type"in Io?tn[Io.type]:Ro.dtype,Fs=!!Io.normalized,tl=Io.size|0,Fa=Io.offset|0,Ms=Io.stride|0,jo=Io.divisor|0)),Rs=E.location,Is=xt[Rs],vs===1?(Is.buffer||Vt.enableVertexAttribArray(Rs),Os=tl||1,(Is.type!==hl||Is.size!==Os||Is.buffer!==Ro||Is.normalized!==Fs||Is.offset!==Fa||Is.stride!==Ms)&&(Vt.bindBuffer(34962,Ro.buffer),Vt.vertexAttribPointer(Rs,Os,hl,Fs,Ms,Fa),Is.type=hl,Is.size=Os,Is.buffer=Ro,Is.normalized=Fs,Is.offset=Fa,Is.stride=Ms),Is.divisor!==jo&&(fr.vertexAttribDivisorANGLE(Rs,jo),Is.divisor=jo)):(Is.buffer&&(Vt.disableVertexAttribArray(Rs),Is.buffer=null),(Is.x!==fs||Is.y!==cl||Is.z!==el||Is.w!==Hs)&&(Vt.vertexAttrib4f(Rs,fs,cl,el,Hs),Is.x=fs,Is.y=cl,Is.z=el,Is.w=Hs)),St=A.call(this,Pe,Zr,gr),Ut=!1,xr=1,dr=0,Dr=0,yi=0,Ti=0,ki=null,Ki=0,Fn=!1,Li=5126,hi=0,Ci=0,Si=0,jr(St)?(Ut=!0,ki=st.createStream(34962,St),Li=ki.dtype):(ki=st.getBuffer(St),ki?Li=ki.dtype:"constant"in St?(xr=2,typeof St.constant=="number"?(dr=St.constant,Dr=yi=Ti=0):(dr=St.constant.length>0?St.constant[0]:0,Dr=St.constant.length>1?St.constant[1]:0,yi=St.constant.length>2?St.constant[2]:0,Ti=St.constant.length>3?St.constant[3]:0)):(jr(St.buffer)?ki=st.createStream(34962,St.buffer):ki=st.getBuffer(St.buffer),Li="type"in St?tn[St.type]:ki.dtype,Fn=!!St.normalized,Ki=St.size|0,hi=St.offset|0,Ci=St.stride|0,Si=St.divisor|0)),Gn=L.location,ta=xt[Gn],xr===1?(ta.buffer||Vt.enableVertexAttribArray(Gn),ya=Ki||1,(ta.type!==Li||ta.size!==ya||ta.buffer!==ki||ta.normalized!==Fn||ta.offset!==hi||ta.stride!==Ci)&&(Vt.bindBuffer(34962,ki.buffer),Vt.vertexAttribPointer(Gn,ya,Li,Fn,Ci,hi),ta.type=Li,ta.size=ya,ta.buffer=ki,ta.normalized=Fn,ta.offset=hi,ta.stride=Ci),ta.divisor!==Si&&(fr.vertexAttribDivisorANGLE(Gn,Si),ta.divisor=Si)):(ta.buffer&&(Vt.disableVertexAttribArray(Gn),ta.buffer=null),(ta.x!==dr||ta.y!==Dr||ta.z!==yi||ta.w!==Ti)&&(Vt.vertexAttrib4f(Gn,dr,Dr,yi,Ti),ta.x=dr,ta.y=Dr,ta.z=yi,ta.w=Ti)),ia=x.call(this,Pe,Zr,gr),pa=!1,va=1,zn=0,is=0,Cs=0,Ks=0,dl=null,xl=0,Bl=!1,bl=5126,eu=0,Zl=0,Vl=0,jr(ia)?(pa=!0,dl=st.createStream(34962,ia),bl=dl.dtype):(dl=st.getBuffer(ia),dl?bl=dl.dtype:"constant"in ia?(va=2,typeof ia.constant=="number"?(zn=ia.constant,is=Cs=Ks=0):(zn=ia.constant.length>0?ia.constant[0]:0,is=ia.constant.length>1?ia.constant[1]:0,Cs=ia.constant.length>2?ia.constant[2]:0,Ks=ia.constant.length>3?ia.constant[3]:0)):(jr(ia.buffer)?dl=st.createStream(34962,ia.buffer):dl=st.getBuffer(ia.buffer),bl="type"in ia?tn[ia.type]:dl.dtype,Bl=!!ia.normalized,xl=ia.size|0,eu=ia.offset|0,Zl=ia.stride|0,Vl=ia.divisor|0)),ja=k.location,ns=xt[ja],va===1?(ns.buffer||Vt.enableVertexAttribArray(ja),Js=xl||1,(ns.type!==bl||ns.size!==Js||ns.buffer!==dl||ns.normalized!==Bl||ns.offset!==eu||ns.stride!==Zl)&&(Vt.bindBuffer(34962,dl.buffer),Vt.vertexAttribPointer(ja,Js,bl,Bl,Zl,eu),ns.type=bl,ns.size=Js,ns.buffer=dl,ns.normalized=Bl,ns.offset=eu,ns.stride=Zl),ns.divisor!==Vl&&(fr.vertexAttribDivisorANGLE(ja,Vl),ns.divisor=Vl)):(ns.buffer&&(Vt.disableVertexAttribArray(ja),ns.buffer=null),(ns.x!==zn||ns.y!==is||ns.z!==Cs||ns.w!==Ks)&&(Vt.vertexAttrib4f(ja,zn,is,Cs,Ks),ns.x=zn,ns.y=is,ns.z=Cs,ns.w=Ks)),cs=S.call(this,Pe,Zr,gr),sl=!1,ll=1,nl=0,zl=0,Ml=0,Rl=0,Al=null,Ll=0,ms=!1,Bs=5126,Xl=0,Gl=0,Nl=0,jr(cs)?(sl=!0,Al=st.createStream(34962,cs),Bs=Al.dtype):(Al=st.getBuffer(cs),Al?Bs=Al.dtype:"constant"in cs?(ll=2,typeof cs.constant=="number"?(nl=cs.constant,zl=Ml=Rl=0):(nl=cs.constant.length>0?cs.constant[0]:0,zl=cs.constant.length>1?cs.constant[1]:0,Ml=cs.constant.length>2?cs.constant[2]:0,Rl=cs.constant.length>3?cs.constant[3]:0)):(jr(cs.buffer)?Al=st.createStream(34962,cs.buffer):Al=st.getBuffer(cs.buffer),Bs="type"in cs?tn[cs.type]:Al.dtype,ms=!!cs.normalized,Ll=cs.size|0,Xl=cs.offset|0,Gl=cs.stride|0,Nl=cs.divisor|0)),ue=m.location,w=xt[ue],ll===1?(w.buffer||Vt.enableVertexAttribArray(ue),q=Ll||1,(w.type!==Bs||w.size!==q||w.buffer!==Al||w.normalized!==ms||w.offset!==Xl||w.stride!==Gl)&&(Vt.bindBuffer(34962,Al.buffer),Vt.vertexAttribPointer(ue,q,Bs,ms,Gl,Xl),w.type=Bs,w.size=q,w.buffer=Al,w.normalized=ms,w.offset=Xl,w.stride=Gl),w.divisor!==Nl&&(fr.vertexAttribDivisorANGLE(ue,Nl),w.divisor=Nl)):(w.buffer&&(Vt.disableVertexAttribArray(ue),w.buffer=null),(w.x!==nl||w.y!==zl||w.z!==Ml||w.w!==Rl)&&(Vt.vertexAttrib4f(ue,nl,zl,Ml,Rl),w.x=nl,w.y=zl,w.z=Ml,w.w=Rl)),Q=Zr.opacity,(!gr||ee!==Q)&&(ee=Q,Vt.uniform1f(M.location,Q)),fe=F.call(this,Pe,Zr,gr),Ue=fe[0],yt=fe[1],(!gr||at!==Ue||Rt!==yt)&&(at=Ue,Rt=yt,Vt.uniform2f(O.location,Ue,yt)),Qt=Pe.pixelRatio,(!gr||rr!==Qt)&&(rr=Qt,Vt.uniform1f(j.location,Qt)),Mr=Zr.scale,Ur=Mr[0],Ae=Mr[1],(!gr||he!==Ur||qe!==Ae)&&(he=Ur,qe=Ae,Vt.uniform2f(W.location,Ur,Ae)),Ge=Zr.scaleFract,ft=Ge[0],mt=Ge[1],(!gr||ot!==ft||Gt!==mt)&&(ot=ft,Gt=mt,Vt.uniform2f(N.location,ft,mt)),er=Zr.translate,sr=er[0],Ir=er[1],(!gr||wr!==sr||ri!==Ir)&&(wr=sr,ri=Ir,Vt.uniform2f(H.location,sr,Ir)),si=Zr.translateFract,Mi=si[0],Zn=si[1],(!gr||cn!==Mi||Yn!==Zn)&&(cn=Mi,Yn=Zn,Vt.uniform2f(re.location,Mi,Zn)),Ua=Zr.elements,Fo=null,vl=jr(Ua),vl?Fo=ht.createStream(Ua):Fo=ht.getElements(Ua),Fo&&Vt.bindBuffer(34963,Fo.buffer.buffer),Us=Zr.offset,ml=Zr.count,ml&&(ao>0?Fo?fr.drawElementsInstancedANGLE(0,ml,Fo.type,Us<<(Fo.type-5121>>1),ao):fr.drawArraysInstancedANGLE(0,Us,ml,ao):ao<0&&(Fo?Vt.drawElements(0,ml,Fo.type,Us<<(Fo.type-5121>>1)):Vt.drawArrays(0,Us,ml)),Pe.viewportWidth=Qa,Pe.viewportHeight=vn,mo&&st.destroyStream(Ns),$n&&st.destroyStream(eo),_a&&st.destroyStream(Wa),rs&&st.destroyStream(Ma),Bo&&st.destroyStream(Aa),Da&&st.destroyStream(Ro),Ut&&st.destroyStream(ki),pa&&st.destroyStream(dl),sl&&st.destroyStream(Al),vl&&ht.destroyStream(Fo))}G.unbind(),ze.dirty=!0,pr.setVAO(null),dt&&(r.cpuTime+=performance.now()-$t)}}}});var U8=we((zbr,v7e)=>{v7e.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,y=t.elements,b=t.buffer,v=t.shader,C=t.attributes,E=t.vao,A=t.uniforms,L=t.framebuffer,x=t.extensions,k=t.timer,S=t.isBufferArgs,m=h.blend_color,P=d.blend_color,M=h.blend_equation,O=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,W=h.colorMask,N=d.colorMask,H=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,me=d.sample_coverage,Ce=h.stencil_func,Ee=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,Se=h.stencil_opBack,Te=d.stencil_opBack,be=h.scissor_box,He=d.scissor_box,Ie=h.viewport,ge=d.viewport,Be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},je={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rt={add:32774,subtract:32778,"reverse subtract":32779},bt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ot={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ke={},zt={},{draw:function(Mt){var kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe;if(kt=x.angle_instanced_arrays,$e=Mt.framebuffer,Re=L.getFramebuffer($e),Me=L.next,L.next=Re,oe=f.framebufferWidth,f.framebufferWidth=Re?Re.width:f.drawingBufferWidth,Ne=f.framebufferHeight,f.framebufferHeight=Re?Re.height:f.drawingBufferHeight,Re!==L.cur&&(Re?l.bindFramebuffer(36160,Re.framebuffer):l.bindFramebuffer(36160,null),L.cur=Re),d.dirty){var xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii;xe=h.dither,xe!==d.dither&&(xe?l.enable(3024):l.disable(3024),d.dither=xe),Oe=h.blend_enable,Oe!==d.blend_enable&&(Oe?l.enable(3042):l.disable(3042),d.blend_enable=Oe),ze=m[0],De=m[1],ht=m[2],st=m[3],(ze!==P[0]||De!==P[1]||ht!==P[2]||st!==P[3])&&(l.blendColor(ze,De,ht,st),P[0]=ze,P[1]=De,P[2]=ht,P[3]=st),gt=M[0],xt=M[1],(gt!==O[0]||xt!==O[1])&&(l.blendEquationSeparate(gt,xt),O[0]=gt,O[1]=xt),pr=F[0],br=F[1],cr=F[2],Er=F[3],(pr!==U[0]||br!==U[1]||cr!==U[2]||Er!==U[3])&&(l.blendFuncSeparate(pr,br,cr,Er),U[0]=pr,U[1]=br,U[2]=cr,U[3]=Er),ii=h.depth_enable,ii!==d.depth_enable&&(ii?l.enable(2929):l.disable(2929),d.depth_enable=ii),jr=h.depth_func,jr!==d.depth_func&&(l.depthFunc(jr),d.depth_func=jr),kr=G[0],Vr=G[1],(kr!==j[0]||Vr!==j[1])&&(l.depthRange(kr,Vr),j[0]=kr,j[1]=Vr),Ai=h.depth_mask,Ai!==d.depth_mask&&(l.depthMask(Ai),d.depth_mask=Ai),Bi=W[0],Ri=W[1],ln=W[2],hn=W[3],(Bi!==N[0]||Ri!==N[1]||ln!==N[2]||hn!==N[3])&&(l.colorMask(Bi,Ri,ln,hn),N[0]=Bi,N[1]=Ri,N[2]=ln,N[3]=hn),qr=h.cull_enable,qr!==d.cull_enable&&(qr?l.enable(2884):l.disable(2884),d.cull_enable=qr),_i=h.cull_face,_i!==d.cull_face&&(l.cullFace(_i),d.cull_face=_i),zi=h.frontFace,zi!==d.frontFace&&(l.frontFace(zi),d.frontFace=zi),Dt=h.lineWidth,Dt!==d.lineWidth&&(l.lineWidth(Dt),d.lineWidth=Dt),_t=h.polygonOffset_enable,_t!==d.polygonOffset_enable&&(_t?l.enable(32823):l.disable(32823),d.polygonOffset_enable=_t),qt=H[0],Nt=H[1],(qt!==re[0]||Nt!==re[1])&&(l.polygonOffset(qt,Nt),re[0]=qt,re[1]=Nt),mr=h.sample_alpha,mr!==d.sample_alpha&&(mr?l.enable(32926):l.disable(32926),d.sample_alpha=mr),Lr=h.sample_enable,Lr!==d.sample_enable&&(Lr?l.enable(32928):l.disable(32928),d.sample_enable=Lr),Nr=ae[0],Fr=ae[1],(Nr!==me[0]||Fr!==me[1])&&(l.sampleCoverage(Nr,Fr),me[0]=Nr,me[1]=Fr),Hr=h.stencil_enable,Hr!==d.stencil_enable&&(Hr?l.enable(2960):l.disable(2960),d.stencil_enable=Hr),Gr=h.stencil_mask,Gr!==d.stencil_mask&&(l.stencilMask(Gr),d.stencil_mask=Gr),mi=Ce[0],Ei=Ce[1],Vi=Ce[2],(mi!==Ee[0]||Ei!==Ee[1]||Vi!==Ee[2])&&(l.stencilFunc(mi,Ei,Vi),Ee[0]=mi,Ee[1]=Ei,Ee[2]=Vi),ti=de[0],Qi=de[1],Yr=de[2],oi=de[3],(ti!==te[0]||Qi!==te[1]||Yr!==te[2]||oi!==te[3])&&(l.stencilOpSeparate(ti,Qi,Yr,oi),te[0]=ti,te[1]=Qi,te[2]=Yr,te[3]=oi),Fi=Se[0],rn=Se[1],tn=Se[2],Di=Se[3],(Fi!==Te[0]||rn!==Te[1]||tn!==Te[2]||Di!==Te[3])&&(l.stencilOpSeparate(Fi,rn,tn,Di),Te[0]=Fi,Te[1]=rn,Te[2]=tn,Te[3]=Di),Ii=h.scissor_enable,Ii!==d.scissor_enable&&(Ii?l.enable(3089):l.disable(3089),d.scissor_enable=Ii)}vt=f.framebufferWidth,lt=f.framebufferHeight,We=f.viewportWidth,f.viewportWidth=vt,Ve=f.viewportHeight,f.viewportHeight=lt,l.viewport(0,0,vt,lt),ge[0]=0,ge[1]=0,ge[2]=vt,ge[3]=lt,et=f.framebufferWidth,tt=f.framebufferHeight,l.scissor(0,0,et,tt),He[0]=0,He[1]=0,He[2]=et,He[3]=tt,Lt=d.profile,Lt&&(jt=performance.now(),r.count++),or=v.frag,yr=v.vert,vr=v.program(yr,or),l.useProgram(vr.program),E.setVAO(null),Vt=vr.id,Pe=Ke[Vt],Pe?Pe.call(this,Mt):(Pe=Ke[Vt]=n(vr),Pe.call(this,Mt)),d.dirty=!0,E.setVAO(null),L.next=Me,f.framebufferWidth=oe,f.framebufferHeight=Ne,f.viewportWidth=We,f.viewportHeight=Ve,Lt&&(r.cpuTime+=performance.now()-jt)},scope:function(Mt,kt,$e){var Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De;Re=Mt.framebuffer,Me=L.getFramebuffer(Re),oe=L.next,L.next=Me,Ne=f.framebufferWidth,f.framebufferWidth=Me?Me.width:f.drawingBufferWidth,vt=f.framebufferHeight,f.framebufferHeight=Me?Me.height:f.drawingBufferHeight,lt=f.framebufferWidth,We=f.framebufferHeight,Ve=f.viewportWidth,f.viewportWidth=lt,et=f.viewportHeight,f.viewportHeight=We,tt=Ie[0],Ie[0]=i,Lt=Ie[1],Ie[1]=a,jt=Ie[2],Ie[2]=lt,or=Ie[3],Ie[3]=We,yr=f.framebufferWidth,vr=f.framebufferHeight,Vt=be[0],be[0]=o,Pe=be[1],be[1]=s,xe=be[2],be[2]=yr,Oe=be[3],be[3]=vr,ze=d.profile,ze&&(De=performance.now(),r.count++),d.dirty=!0,kt(f,Mt,$e),L.next=oe,f.framebufferWidth=Ne,f.framebufferHeight=vt,f.viewportWidth=Ve,f.viewportHeight=et,Ie[0]=tt,Ie[1]=Lt,Ie[2]=jt,Ie[3]=or,be[0]=Vt,be[1]=Pe,be[2]=xe,be[3]=Oe,ze&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(Mt,kt){var $e,Re,Me,oe,Ne,vt,lt,We;if($e=x.angle_instanced_arrays,d.dirty){var Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei;Ve=h.dither,Ve!==d.dither&&(Ve?l.enable(3024):l.disable(3024),d.dither=Ve),et=h.blend_enable,et!==d.blend_enable&&(et?l.enable(3042):l.disable(3042),d.blend_enable=et),tt=m[0],Lt=m[1],jt=m[2],or=m[3],(tt!==P[0]||Lt!==P[1]||jt!==P[2]||or!==P[3])&&(l.blendColor(tt,Lt,jt,or),P[0]=tt,P[1]=Lt,P[2]=jt,P[3]=or),yr=M[0],vr=M[1],(yr!==O[0]||vr!==O[1])&&(l.blendEquationSeparate(yr,vr),O[0]=yr,O[1]=vr),Vt=F[0],Pe=F[1],xe=F[2],Oe=F[3],(Vt!==U[0]||Pe!==U[1]||xe!==U[2]||Oe!==U[3])&&(l.blendFuncSeparate(Vt,Pe,xe,Oe),U[0]=Vt,U[1]=Pe,U[2]=xe,U[3]=Oe),ze=h.depth_enable,ze!==d.depth_enable&&(ze?l.enable(2929):l.disable(2929),d.depth_enable=ze),De=h.depth_func,De!==d.depth_func&&(l.depthFunc(De),d.depth_func=De),ht=G[0],st=G[1],(ht!==j[0]||st!==j[1])&&(l.depthRange(ht,st),j[0]=ht,j[1]=st),gt=h.depth_mask,gt!==d.depth_mask&&(l.depthMask(gt),d.depth_mask=gt),xt=W[0],pr=W[1],br=W[2],cr=W[3],(xt!==N[0]||pr!==N[1]||br!==N[2]||cr!==N[3])&&(l.colorMask(xt,pr,br,cr),N[0]=xt,N[1]=pr,N[2]=br,N[3]=cr),Er=h.cull_enable,Er!==d.cull_enable&&(Er?l.enable(2884):l.disable(2884),d.cull_enable=Er),ii=h.cull_face,ii!==d.cull_face&&(l.cullFace(ii),d.cull_face=ii),jr=h.frontFace,jr!==d.frontFace&&(l.frontFace(jr),d.frontFace=jr),kr=h.lineWidth,kr!==d.lineWidth&&(l.lineWidth(kr),d.lineWidth=kr),Vr=h.polygonOffset_enable,Vr!==d.polygonOffset_enable&&(Vr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Vr),Ai=H[0],Bi=H[1],(Ai!==re[0]||Bi!==re[1])&&(l.polygonOffset(Ai,Bi),re[0]=Ai,re[1]=Bi),Ri=h.sample_alpha,Ri!==d.sample_alpha&&(Ri?l.enable(32926):l.disable(32926),d.sample_alpha=Ri),ln=h.sample_enable,ln!==d.sample_enable&&(ln?l.enable(32928):l.disable(32928),d.sample_enable=ln),hn=ae[0],qr=ae[1],(hn!==me[0]||qr!==me[1])&&(l.sampleCoverage(hn,qr),me[0]=hn,me[1]=qr),_i=h.stencil_enable,_i!==d.stencil_enable&&(_i?l.enable(2960):l.disable(2960),d.stencil_enable=_i),zi=h.stencil_mask,zi!==d.stencil_mask&&(l.stencilMask(zi),d.stencil_mask=zi),Dt=Ce[0],_t=Ce[1],qt=Ce[2],(Dt!==Ee[0]||_t!==Ee[1]||qt!==Ee[2])&&(l.stencilFunc(Dt,_t,qt),Ee[0]=Dt,Ee[1]=_t,Ee[2]=qt),Nt=de[0],mr=de[1],Lr=de[2],Nr=de[3],(Nt!==te[0]||mr!==te[1]||Lr!==te[2]||Nr!==te[3])&&(l.stencilOpSeparate(Nt,mr,Lr,Nr),te[0]=Nt,te[1]=mr,te[2]=Lr,te[3]=Nr),Fr=Se[0],Hr=Se[1],Gr=Se[2],mi=Se[3],(Fr!==Te[0]||Hr!==Te[1]||Gr!==Te[2]||mi!==Te[3])&&(l.stencilOpSeparate(Fr,Hr,Gr,mi),Te[0]=Fr,Te[1]=Hr,Te[2]=Gr,Te[3]=mi),Ei=h.scissor_enable,Ei!==d.scissor_enable&&(Ei?l.enable(3089):l.disable(3089),d.scissor_enable=Ei)}Re=d.profile,Re&&(Me=performance.now(),r.count+=kt),oe=v.frag,Ne=v.vert,vt=v.program(Ne,oe),l.useProgram(vt.program),E.setVAO(null),lt=vt.id,We=zt[lt],We?We.call(this,Mt,kt):(We=zt[lt]=u(vt),We.call(this,Mt,kt)),d.dirty=!0,E.setVAO(null),Re&&(r.cpuTime+=performance.now()-Me)}}}});var V8=we((Ibr,m7e)=>{m7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe){"use strict";var xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii,xn,xi,Xr,dt,$t,fr,gr;return xe=t.gl,Oe=t.context,ze=t.strings,De=t.next,ht=t.current,st=t.draw,gt=t.elements,xt=t.buffer,pr=t.shader,br=t.attributes,cr=t.vao,Er=t.uniforms,ii=t.framebuffer,jr=t.extensions,kr=t.timer,Vr=t.isBufferArgs,Ai=De.blend_color,Bi=ht.blend_color,Ri=De.blend_equation,ln=ht.blend_equation,hn=De.blend_func,qr=ht.blend_func,_i=De.depth_range,zi=ht.depth_range,Dt=De.colorMask,_t=ht.colorMask,qt=De.polygonOffset_offset,Nt=ht.polygonOffset_offset,mr=De.sample_coverage,Lr=ht.sample_coverage,Nr=De.stencil_func,Fr=ht.stencil_func,Hr=De.stencil_opFront,Gr=ht.stencil_opFront,mi=De.stencil_opBack,Ei=ht.stencil_opBack,Vi=De.scissor_box,ti=ht.scissor_box,Qi=De.viewport,Yr=ht.viewport,oi={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Fi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},rn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},tn={add:32774,subtract:32778,"reverse subtract":32779},Di={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ii={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},xn={cw:2304,ccw:2305},xi={},xi.stride=4,xi.offset=0,xi.divisor=1,Xr={},Xr.stride=4,Xr.offset=4,Xr.divisor=1,dt={},dt.stride=8,dt.offset=0,dt.divisor=1,$t={},$t.stride=8,$t.offset=8,$t.divisor=1,fr={},fr.stride=8,fr.offset=16,fr.divisor=1,gr={},gr.stride=8,gr.offset=24,gr.divisor=1,{draw:function(Zr){var wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms;if(wi=jr.angle_instanced_arrays,$i=ii.next,$i!==ii.cur&&($i?xe.bindFramebuffer(36160,$i.framebuffer):xe.bindFramebuffer(36160,null),ii.cur=$i),ht.dirty){var jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl;jo=De.dither,jo!==ht.dither&&(jo?xe.enable(3024):xe.disable(3024),ht.dither=jo),Rs=De.depth_func,Rs!==ht.depth_func&&(xe.depthFunc(Rs),ht.depth_func=Rs),Is=_i[0],Os=_i[1],(Is!==zi[0]||Os!==zi[1])&&(xe.depthRange(Is,Os),zi[0]=Is,zi[1]=Os),St=De.depth_mask,St!==ht.depth_mask&&(xe.depthMask(St),ht.depth_mask=St),Ut=Dt[0],xr=Dt[1],dr=Dt[2],Dr=Dt[3],(Ut!==_t[0]||xr!==_t[1]||dr!==_t[2]||Dr!==_t[3])&&(xe.colorMask(Ut,xr,dr,Dr),_t[0]=Ut,_t[1]=xr,_t[2]=dr,_t[3]=Dr),yi=De.frontFace,yi!==ht.frontFace&&(xe.frontFace(yi),ht.frontFace=yi),Ti=De.lineWidth,Ti!==ht.lineWidth&&(xe.lineWidth(Ti),ht.lineWidth=Ti),ki=De.polygonOffset_enable,ki!==ht.polygonOffset_enable&&(ki?xe.enable(32823):xe.disable(32823),ht.polygonOffset_enable=ki),Ki=qt[0],Fn=qt[1],(Ki!==Nt[0]||Fn!==Nt[1])&&(xe.polygonOffset(Ki,Fn),Nt[0]=Ki,Nt[1]=Fn),Li=De.sample_alpha,Li!==ht.sample_alpha&&(Li?xe.enable(32926):xe.disable(32926),ht.sample_alpha=Li),hi=De.sample_enable,hi!==ht.sample_enable&&(hi?xe.enable(32928):xe.disable(32928),ht.sample_enable=hi),Ci=mr[0],Si=mr[1],(Ci!==Lr[0]||Si!==Lr[1])&&(xe.sampleCoverage(Ci,Si),Lr[0]=Ci,Lr[1]=Si),Gn=De.stencil_mask,Gn!==ht.stencil_mask&&(xe.stencilMask(Gn),ht.stencil_mask=Gn),ta=Nr[0],ya=Nr[1],ia=Nr[2],(ta!==Fr[0]||ya!==Fr[1]||ia!==Fr[2])&&(xe.stencilFunc(ta,ya,ia),Fr[0]=ta,Fr[1]=ya,Fr[2]=ia),pa=Hr[0],va=Hr[1],zn=Hr[2],is=Hr[3],(pa!==Gr[0]||va!==Gr[1]||zn!==Gr[2]||is!==Gr[3])&&(xe.stencilOpSeparate(pa,va,zn,is),Gr[0]=pa,Gr[1]=va,Gr[2]=zn,Gr[3]=is),Cs=mi[0],Ks=mi[1],dl=mi[2],xl=mi[3],(Cs!==Ei[0]||Ks!==Ei[1]||dl!==Ei[2]||xl!==Ei[3])&&(xe.stencilOpSeparate(Cs,Ks,dl,xl),Ei[0]=Cs,Ei[1]=Ks,Ei[2]=dl,Ei[3]=xl)}ni=Zr.viewport,Xi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Xi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,xe.viewport(Xi,aa,Mn,Un),Yr[0]=Xi,Yr[1]=aa,Yr[2]=Mn,Yr[3]=Un,xe.blendColor(0,0,0,0),Bi[0]=0,Bi[1]=0,Bi[2]=0,Bi[3]=0,n?xe.enable(3042):xe.disable(3042),ht.blend_enable=n,xe.blendEquationSeparate(32774,32774),ln[0]=32774,ln[1]=32774,xe.blendFuncSeparate(770,771,773,1),qr[0]=770,qr[1]=771,qr[2]=773,qr[3]=1,i?xe.enable(2884):xe.disable(2884),ht.cull_enable=i,xe.cullFace(a),ht.cull_face=a,oa=o.call(this,Oe,Zr,0),oa?xe.enable(2929):xe.disable(2929),ht.depth_enable=oa,ka=Zr.viewport,so=ka.x|0,Kr=ka.y|0,Ia="width"in ka?ka.width|0:Oe.framebufferWidth-so,Yo="height"in ka?ka.height|0:Oe.framebufferHeight-Kr,xe.scissor(so,Kr,Ia,Yo),ti[0]=so,ti[1]=Kr,ti[2]=Ia,ti[3]=Yo,s?xe.enable(3089):xe.disable(3089),ht.scissor_enable=s,u?xe.enable(2960):xe.disable(2960),ht.stencil_enable=u,fa=ht.profile,fa&&(kn=performance.now(),r.count++),xe.useProgram(l.program),Ta=jr.angle_instanced_arrays,cr.setVAO(null),ys=Zr.colorBuffer,xi.buffer=ys,uo=!1,ls=1,$a=0,fo=0,mn=0,ra=0,wa=null,ws=0,Co=!1,Po=5126,Wi=0,gn=0,Ps=0,Vr(xi)?(uo=!0,wa=xt.createStream(34962,xi),Po=wa.dtype):(wa=xt.getBuffer(xi),wa?Po=wa.dtype:"constant"in xi?(ls=2,typeof xi.constant=="number"?($a=xi.constant,fo=mn=ra=0):($a=xi.constant.length>0?xi.constant[0]:0,fo=xi.constant.length>1?xi.constant[1]:0,mn=xi.constant.length>2?xi.constant[2]:0,ra=xi.constant.length>3?xi.constant[3]:0)):(Vr(xi.buffer)?wa=xt.createStream(34962,xi.buffer):wa=xt.getBuffer(xi.buffer),Po="type"in xi?Ii[xi.type]:wa.dtype,Co=!!xi.normalized,ws=xi.size|0,Wi=xi.offset|0,gn=xi.stride|0,Ps=xi.divisor|0)),Ha=f.location,Sn=br[Ha],ls===1?(Sn.buffer||xe.enableVertexAttribArray(Ha),ao=ws||4,(Sn.type!==Po||Sn.size!==ao||Sn.buffer!==wa||Sn.normalized!==Co||Sn.offset!==Wi||Sn.stride!==gn)&&(xe.bindBuffer(34962,wa.buffer),xe.vertexAttribPointer(Ha,ao,Po,Co,gn,Wi),Sn.type=Po,Sn.size=ao,Sn.buffer=wa,Sn.normalized=Co,Sn.offset=Wi,Sn.stride=gn),Sn.divisor!==Ps&&(Ta.vertexAttribDivisorANGLE(Ha,Ps),Sn.divisor=Ps)):(Sn.buffer&&(xe.disableVertexAttribArray(Ha),Sn.buffer=null),(Sn.x!==$a||Sn.y!==fo||Sn.z!==mn||Sn.w!==ra)&&(xe.vertexAttrib4f(Ha,$a,fo,mn,ra),Sn.x=$a,Sn.y=fo,Sn.z=mn,Sn.w=ra)),Oa=Zr.positionBuffer,$t.buffer=Oa,Ko=!1,Qo=1,Hi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,Vr($t)?(Ko=!0,da=xt.createStream(34962,$t),As=da.dtype):(da=xt.getBuffer($t),da?As=da.dtype:"constant"in $t?(Qo=2,typeof $t.constant=="number"?(Hi=$t.constant,Sa=Qa=vn=0):(Hi=$t.constant.length>0?$t.constant[0]:0,Sa=$t.constant.length>1?$t.constant[1]:0,Qa=$t.constant.length>2?$t.constant[2]:0,vn=$t.constant.length>3?$t.constant[3]:0)):(Vr($t.buffer)?da=xt.createStream(34962,$t.buffer):da=xt.getBuffer($t.buffer),As="type"in $t?Ii[$t.type]:da.dtype,vo=!!$t.normalized,la=$t.size|0,ps=$t.offset|0,co=$t.stride|0,mo=$t.divisor|0)),No=c.location,jn=br[No],Qo===1?(jn.buffer||xe.enableVertexAttribArray(No),Go=la||2,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(xe.bindBuffer(34962,da.buffer),xe.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(Ta.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(xe.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Hi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(xe.vertexAttrib4f(No,Hi,Sa,Qa,vn),jn.x=Hi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=Zr.colorBuffer,Xr.buffer=Ys,qs=!1,Ns=1,Ba=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,sn=0,$n=0,Vr(Xr)?(qs=!0,_n=xt.createStream(34962,Xr),Ra=_n.dtype):(_n=xt.getBuffer(Xr),_n?Ra=_n.dtype:"constant"in Xr?(Ns=2,typeof Xr.constant=="number"?(Ba=Xr.constant,ha=Vs=Ya=0):(Ba=Xr.constant.length>0?Xr.constant[0]:0,ha=Xr.constant.length>1?Xr.constant[1]:0,Vs=Xr.constant.length>2?Xr.constant[2]:0,Ya=Xr.constant.length>3?Xr.constant[3]:0)):(Vr(Xr.buffer)?_n=xt.createStream(34962,Xr.buffer):_n=xt.getBuffer(Xr.buffer),Ra="type"in Xr?Ii[Xr.type]:_n.dtype,wo=!!Xr.normalized,Vn=Xr.size|0,Xn=Xr.offset|0,sn=Xr.stride|0,$n=Xr.divisor|0)),Ka=h.location,qn=br[Ka],Ns===1?(qn.buffer||xe.enableVertexAttribArray(Ka),Eo=Vn||4,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==sn)&&(xe.bindBuffer(34962,_n.buffer),xe.vertexAttribPointer(Ka,Eo,Ra,wo,sn,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=sn),qn.divisor!==$n&&(Ta.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(xe.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Ba||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(xe.vertexAttrib4f(Ka,Ba,ha,Vs,Ya),qn.x=Ba,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=Zr.positionBuffer,fr.buffer=Ja,lo=!1,eo=1,sa=0,es=0,Na=0,en=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,Vr(fr)?(lo=!0,Pa=xt.createStream(34962,fr),Jo=Pa.dtype):(Pa=xt.getBuffer(fr),Pa?Jo=Pa.dtype:"constant"in fr?(eo=2,typeof fr.constant=="number"?(sa=fr.constant,es=Na=en=0):(sa=fr.constant.length>0?fr.constant[0]:0,es=fr.constant.length>1?fr.constant[1]:0,Na=fr.constant.length>2?fr.constant[2]:0,en=fr.constant.length>3?fr.constant[3]:0)):(Vr(fr.buffer)?Pa=xt.createStream(34962,fr.buffer):Pa=xt.getBuffer(fr.buffer),Jo="type"in fr?Ii[fr.type]:Pa.dtype,yo=!!fr.normalized,to=fr.size|0,Ao=fr.offset|0,Dn=fr.stride|0,_a=fr.divisor|0)),Ws=d.location,Ca=br[Ws],eo===1?(Ca.buffer||xe.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(xe.bindBuffer(34962,Pa.buffer),xe.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(Ta.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(xe.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==en)&&(xe.vertexAttrib4f(Ws,sa,es,Na,en),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=en)),Ts=y.location,Ho=br[Ts],Ho.buffer||xe.enableVertexAttribArray(Ts),(Ho.type!==5126||Ho.size!==1||Ho.buffer!==p||Ho.normalized!==!1||Ho.offset!==0||Ho.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Ts,1,5126,!1,8,0),Ho.type=5126,Ho.size=1,Ho.buffer=p,Ho.normalized=!1,Ho.offset=0,Ho.stride=8),Ho.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Ts,0),Ho.divisor=0),Wa=b.location,To=br[Wa],To.buffer||xe.enableVertexAttribArray(Wa),(To.type!==5126||To.size!==1||To.buffer!==p||To.normalized!==!1||To.offset!==4||To.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wa,1,5126,!1,8,4),To.type=5126,To.size=1,To.buffer=p,To.normalized=!1,To.offset=4,To.stride=8),To.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Wa,0),To.divisor=0),ts=Zr.positionBuffer,gr.buffer=ts,Wo=!1,qa=1,on=0,Oo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Vr(gr)?(Wo=!0,za=xt.createStream(34962,gr),$s=za.dtype):(za=xt.getBuffer(gr),za?$s=za.dtype:"constant"in gr?(qa=2,typeof gr.constant=="number"?(on=gr.constant,Oo=ko=oo=0):(on=gr.constant.length>0?gr.constant[0]:0,Oo=gr.constant.length>1?gr.constant[1]:0,ko=gr.constant.length>2?gr.constant[2]:0,oo=gr.constant.length>3?gr.constant[3]:0)):(Vr(gr.buffer)?za=xt.createStream(34962,gr.buffer):za=xt.getBuffer(gr.buffer),$s="type"in gr?Ii[gr.type]:za.dtype,rs=!!gr.normalized,ea=gr.size|0,us=gr.offset|0,Ds=gr.stride|0,fl=gr.divisor|0)),as=v.location,Ma=br[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||2,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Ta.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==on||Ma.y!==Oo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,on,Oo,ko,oo),Ma.x=on,Ma.y=Oo,Ma.z=ko,Ma.w=oo)),ho=Zr.positionBuffer,dt.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Bo=!1,rl=5126,Gs=0,bs=0,zs=0,Vr(dt)?(gs=!0,Ea=xt.createStream(34962,dt),rl=Ea.dtype):(Ea=xt.getBuffer(dt),Ea?rl=Ea.dtype:"constant"in dt?(Vo=2,typeof dt.constant=="number"?(Do=dt.constant,Lo=xs=ks=0):(Do=dt.constant.length>0?dt.constant[0]:0,Lo=dt.constant.length>1?dt.constant[1]:0,xs=dt.constant.length>2?dt.constant[2]:0,ks=dt.constant.length>3?dt.constant[3]:0)):(Vr(dt.buffer)?Ea=xt.createStream(34962,dt.buffer):Ea=xt.getBuffer(dt.buffer),rl="type"in dt?Ii[dt.type]:Ea.dtype,Bo=!!dt.normalized,Jn=dt.size|0,Gs=dt.offset|0,bs=dt.stride|0,zs=dt.divisor|0)),$o=C.location,Aa=br[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Bo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Bo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Bo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Ta.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Zr.dashLength,xe.uniform1f(E.location,_l),Ss=Zr.dashTexture,Ss&&Ss._reglType==="framebuffer"&&(Ss=Ss.color[0]),po=Ss._texture,xe.uniform1i(A.location,po.bind()),go=Zr.depth,xe.uniform1f(L.location,go),ss=Zr.miterLimit,xe.uniform1f(x.location,ss),qo=S.call(this,Oe,Zr,0),xe.uniform1f(k.location,qo),zo=Zr.opacity,xe.uniform1f(m.location,zo),io=Zr.scale,Io=io[0],Da=io[1],xe.uniform2f(P.location,Io,Da),vs=Zr.thickness,xe.uniform1f(M.location,vs),fs=Zr.translate,cl=fs[0],el=fs[1],xe.uniform2f(O.location,cl,el),Hs=U.call(this,Oe,Zr,0),Ro=Hs[0],tl=Hs[1],Fs=Hs[2],hl=Hs[3],xe.uniform4f(F.location,Ro,tl,Fs,hl),Fa=st.elements,Fa?xe.bindBuffer(34963,Fa.buffer.buffer):cr.currentVAO&&(Fa=gt.getElements(cr.currentVAO.elements),Fa&&xe.bindBuffer(34963,Fa.buffer.buffer)),Ms=Zr.count,Ms>0?Fa?Ta.drawElementsInstancedANGLE(5,4,Fa.type,0<<(Fa.type-5121>>1),Ms):Ta.drawArraysInstancedANGLE(5,0,4,Ms):Ms<0&&(Fa?xe.drawElements(5,4,Fa.type,0<<(Fa.type-5121>>1)):xe.drawArrays(5,0,4)),ht.dirty=!0,cr.setVAO(null),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,fa&&(r.cpuTime+=performance.now()-kn),uo&&xt.destroyStream(wa),Ko&&xt.destroyStream(da),qs&&xt.destroyStream(_n),lo&&xt.destroyStream(Pa),Wo&&xt.destroyStream(za),gs&&xt.destroyStream(Ea),po.unbind()},scope:function(Zr,wi,$i){var ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Rl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr,Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,nu,ru,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,le,Le,Ye,nt;ni=Zr.viewport,Xi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Xi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,oa=Qi[0],Qi[0]=Xi,ka=Qi[1],Qi[1]=aa,so=Qi[2],Qi[2]=Mn,Kr=Qi[3],Qi[3]=Un,Ia=Ai[0],Ai[0]=G,Yo=Ai[1],Ai[1]=j,fa=Ai[2],Ai[2]=W,kn=Ai[3],Ai[3]=N,Ta=De.blend_enable,De.blend_enable=H,ys=Ri[0],Ri[0]=re,uo=Ri[1],Ri[1]=ae,ls=hn[0],hn[0]=me,$a=hn[1],hn[1]=Ce,fo=hn[2],hn[2]=Ee,mn=hn[3],hn[3]=de,ra=De.cull_enable,De.cull_enable=te,wa=De.cull_face,De.cull_face=Se,ws=o.call(this,Oe,Zr,$i),Co=De.depth_enable,De.depth_enable=ws,Po=Zr.viewport,Wi=Po.x|0,gn=Po.y|0,Ps="width"in Po?Po.width|0:Oe.framebufferWidth-Wi,Ha="height"in Po?Po.height|0:Oe.framebufferHeight-gn,Sn=Vi[0],Vi[0]=Wi,ao=Vi[1],Vi[1]=gn,Oa=Vi[2],Vi[2]=Ps,Ko=Vi[3],Vi[3]=Ha,Qo=De.scissor_enable,De.scissor_enable=Te,Hi=De.stencil_enable,De.stencil_enable=be,Sa=ht.profile,Sa&&(Qa=performance.now(),r.count++),vn=st.offset,st.offset=He,da=st.count,st.count=Ie,la=Zr.count,vo=st.instances,st.instances=la,As=st.primitive,st.primitive=ge,ps=S.call(this,Oe,Zr,$i),co=Er[Be],Er[Be]=ps,mo=Zr.miterLimit,No=Er[ce],Er[ce]=mo,jn=Zr.scale,Go=Er[je],Er[je]=jn,Ys=Zr.scaleFract,qs=Er[rt],Er[rt]=Ys,Ns=Zr.translateFract,Ba=Er[bt],Er[bt]=Ns,ha=Zr.translate,Vs=Er[Ot],Er[Ot]=ha,Ya=Zr.thickness,_n=Er[it],Er[it]=Ya,Vn=Zr.dashTexture,wo=Er[Ke],Er[Ke]=Vn,Ra=Zr.opacity,Xn=Er[zt],Er[zt]=Ra,sn=Oe.pixelRatio,$n=Er[Mt],Er[Mt]=sn,Ka=Zr.id,qn=Er[kt],Er[kt]=Ka,Eo=Zr.dashLength,Ja=Er[$e],Er[$e]=Eo,lo=U.call(this,Oe,Zr,$i),eo=Er[Re],Er[Re]=lo,sa=Zr.depth,es=Er[Me],Er[Me]=sa,Na=oe.state,oe.state=1,en=oe.x,oe.x=0,Pa=oe.y,oe.y=0,to=oe.z,oe.z=0,yo=oe.w,oe.w=0,Jo=oe.buffer,oe.buffer=p,Ao=oe.size,oe.size=0,Dn=oe.normalized,oe.normalized=!1,_a=oe.type,oe.type=5126,Ws=oe.offset,oe.offset=0,Ca=oe.stride,oe.stride=8,Es=oe.divisor,oe.divisor=0,Ts=Ne.state,Ne.state=1,Ho=Ne.x,Ne.x=0,Wa=Ne.y,Ne.y=0,To=Ne.z,Ne.z=0,ts=Ne.w,Ne.w=0,Wo=Ne.buffer,Ne.buffer=p,qa=Ne.size,Ne.size=0,on=Ne.normalized,Ne.normalized=!1,Oo=Ne.type,Ne.type=5126,ko=Ne.offset,Ne.offset=4,oo=Ne.stride,Ne.stride=8,za=Ne.divisor,Ne.divisor=0,ea=Zr.colorBuffer,xi.buffer=ea,rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,Vr(xi)?(rs=!0,Ma=xt.createStream(34962,xi),gs=Ma.dtype):(Ma=xt.getBuffer(xi),Ma?gs=Ma.dtype:"constant"in xi?($s=2,typeof xi.constant=="number"?(us=xi.constant,Ds=fl=as=0):(us=xi.constant.length>0?xi.constant[0]:0,Ds=xi.constant.length>1?xi.constant[1]:0,fl=xi.constant.length>2?xi.constant[2]:0,as=xi.constant.length>3?xi.constant[3]:0)):(Vr(xi.buffer)?Ma=xt.createStream(34962,xi.buffer):Ma=xt.getBuffer(xi.buffer),gs="type"in xi?Ii[xi.type]:Ma.dtype,ho=!!xi.normalized,Qs=xi.size|0,Vo=xi.offset|0,Do=xi.stride|0,Lo=xi.divisor|0)),xs=vt.state,vt.state=$s,ks=vt.x,vt.x=us,Ea=vt.y,vt.y=Ds,Jn=vt.z,vt.z=fl,Bo=vt.w,vt.w=as,rl=vt.buffer,vt.buffer=Ma,Gs=vt.size,vt.size=Qs,bs=vt.normalized,vt.normalized=ho,zs=vt.type,vt.type=gs,$o=vt.offset,vt.offset=Vo,Aa=vt.stride,vt.stride=Do,os=vt.divisor,vt.divisor=Lo,_l=Zr.colorBuffer,Xr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Vr(Xr)?(Ss=!0,io=xt.createStream(34962,Xr),vs=io.dtype):(io=xt.getBuffer(Xr),io?vs=io.dtype:"constant"in Xr?(po=2,typeof Xr.constant=="number"?(go=Xr.constant,ss=qo=zo=0):(go=Xr.constant.length>0?Xr.constant[0]:0,ss=Xr.constant.length>1?Xr.constant[1]:0,qo=Xr.constant.length>2?Xr.constant[2]:0,zo=Xr.constant.length>3?Xr.constant[3]:0)):(Vr(Xr.buffer)?io=xt.createStream(34962,Xr.buffer):io=xt.getBuffer(Xr.buffer),vs="type"in Xr?Ii[Xr.type]:io.dtype,Da=!!Xr.normalized,Io=Xr.size|0,fs=Xr.offset|0,cl=Xr.stride|0,el=Xr.divisor|0)),Hs=lt.state,lt.state=po,Ro=lt.x,lt.x=go,tl=lt.y,lt.y=ss,Fs=lt.z,lt.z=qo,hl=lt.w,lt.w=zo,Fa=lt.buffer,lt.buffer=io,Ms=lt.size,lt.size=Io,jo=lt.normalized,lt.normalized=Da,Rs=lt.type,lt.type=vs,Is=lt.offset,lt.offset=fs,Os=lt.stride,lt.stride=cl,St=lt.divisor,lt.divisor=el,Ut=Zr.positionBuffer,dt.buffer=Ut,xr=!1,dr=1,Dr=0,yi=0,Ti=0,ki=0,Ki=null,Fn=0,Li=!1,hi=5126,Ci=0,Si=0,Gn=0,Vr(dt)?(xr=!0,Ki=xt.createStream(34962,dt),hi=Ki.dtype):(Ki=xt.getBuffer(dt),Ki?hi=Ki.dtype:"constant"in dt?(dr=2,typeof dt.constant=="number"?(Dr=dt.constant,yi=Ti=ki=0):(Dr=dt.constant.length>0?dt.constant[0]:0,yi=dt.constant.length>1?dt.constant[1]:0,Ti=dt.constant.length>2?dt.constant[2]:0,ki=dt.constant.length>3?dt.constant[3]:0)):(Vr(dt.buffer)?Ki=xt.createStream(34962,dt.buffer):Ki=xt.getBuffer(dt.buffer),hi="type"in dt?Ii[dt.type]:Ki.dtype,Li=!!dt.normalized,Fn=dt.size|0,Ci=dt.offset|0,Si=dt.stride|0,Gn=dt.divisor|0)),ta=We.state,We.state=dr,ya=We.x,We.x=Dr,ia=We.y,We.y=yi,pa=We.z,We.z=Ti,va=We.w,We.w=ki,zn=We.buffer,We.buffer=Ki,is=We.size,We.size=Fn,Cs=We.normalized,We.normalized=Li,Ks=We.type,We.type=hi,dl=We.offset,We.offset=Ci,xl=We.stride,We.stride=Si,Bl=We.divisor,We.divisor=Gn,bl=Zr.positionBuffer,$t.buffer=bl,eu=!1,Zl=1,Vl=0,ja=0,ns=0,Js=0,cs=null,sl=0,ll=!1,nl=5126,zl=0,Ml=0,Rl=0,Vr($t)?(eu=!0,cs=xt.createStream(34962,$t),nl=cs.dtype):(cs=xt.getBuffer($t),cs?nl=cs.dtype:"constant"in $t?(Zl=2,typeof $t.constant=="number"?(Vl=$t.constant,ja=ns=Js=0):(Vl=$t.constant.length>0?$t.constant[0]:0,ja=$t.constant.length>1?$t.constant[1]:0,ns=$t.constant.length>2?$t.constant[2]:0,Js=$t.constant.length>3?$t.constant[3]:0)):(Vr($t.buffer)?cs=xt.createStream(34962,$t.buffer):cs=xt.getBuffer($t.buffer),nl="type"in $t?Ii[$t.type]:cs.dtype,ll=!!$t.normalized,sl=$t.size|0,zl=$t.offset|0,Ml=$t.stride|0,Rl=$t.divisor|0)),Al=Ve.state,Ve.state=Zl,Ll=Ve.x,Ve.x=Vl,ms=Ve.y,Ve.y=ja,Bs=Ve.z,Ve.z=ns,Xl=Ve.w,Ve.w=Js,Gl=Ve.buffer,Ve.buffer=cs,Nl=Ve.size,Ve.size=sl,ue=Ve.normalized,Ve.normalized=ll,w=Ve.type,Ve.type=nl,q=Ve.offset,Ve.offset=zl,Q=Ve.stride,Ve.stride=Ml,ee=Ve.divisor,Ve.divisor=Rl,fe=Zr.positionBuffer,fr.buffer=fe,Ue=!1,at=1,yt=0,Rt=0,Qt=0,rr=0,Mr=null,Ur=0,he=!1,Ae=5126,qe=0,Ge=0,ft=0,Vr(fr)?(Ue=!0,Mr=xt.createStream(34962,fr),Ae=Mr.dtype):(Mr=xt.getBuffer(fr),Mr?Ae=Mr.dtype:"constant"in fr?(at=2,typeof fr.constant=="number"?(yt=fr.constant,Rt=Qt=rr=0):(yt=fr.constant.length>0?fr.constant[0]:0,Rt=fr.constant.length>1?fr.constant[1]:0,Qt=fr.constant.length>2?fr.constant[2]:0,rr=fr.constant.length>3?fr.constant[3]:0)):(Vr(fr.buffer)?Mr=xt.createStream(34962,fr.buffer):Mr=xt.getBuffer(fr.buffer),Ae="type"in fr?Ii[fr.type]:Mr.dtype,he=!!fr.normalized,Ur=fr.size|0,qe=fr.offset|0,Ge=fr.stride|0,ft=fr.divisor|0)),ot=et.state,et.state=at,mt=et.x,et.x=yt,Gt=et.y,et.y=Rt,er=et.z,et.z=Qt,sr=et.w,et.w=rr,wr=et.buffer,et.buffer=Mr,Ir=et.size,et.size=Ur,ri=et.normalized,et.normalized=he,si=et.type,et.type=Ae,Mi=et.offset,et.offset=qe,cn=et.stride,et.stride=Ge,Zn=et.divisor,et.divisor=ft,Yn=Zr.positionBuffer,gr.buffer=Yn,Ua=!1,Fo=1,vl=0,Us=0,ml=0,au=0,Sl=null,Yl=0,ql=!1,ou=5126,Pu=0,nu=0,ru=0,Vr(gr)?(Ua=!0,Sl=xt.createStream(34962,gr),ou=Sl.dtype):(Sl=xt.getBuffer(gr),Sl?ou=Sl.dtype:"constant"in gr?(Fo=2,typeof gr.constant=="number"?(vl=gr.constant,Us=ml=au=0):(vl=gr.constant.length>0?gr.constant[0]:0,Us=gr.constant.length>1?gr.constant[1]:0,ml=gr.constant.length>2?gr.constant[2]:0,au=gr.constant.length>3?gr.constant[3]:0)):(Vr(gr.buffer)?Sl=xt.createStream(34962,gr.buffer):Sl=xt.getBuffer(gr.buffer),ou="type"in gr?Ii[gr.type]:Sl.dtype,ql=!!gr.normalized,Yl=gr.size|0,Pu=gr.offset|0,nu=gr.stride|0,ru=gr.divisor|0)),Hu=tt.state,tt.state=Fo,$u=tt.x,tt.x=vl,Ku=tt.y,tt.y=Us,Wu=tt.z,tt.z=ml,ju=tt.w,tt.w=au,sf=tt.buffer,tt.buffer=Sl,_f=tt.size,tt.size=Yl,Qu=tt.normalized,tt.normalized=ql,ef=tt.type,tt.type=ou,Z=tt.offset,tt.offset=Pu,le=tt.stride,tt.stride=nu,Le=tt.divisor,tt.divisor=ru,Ye=pr.vert,pr.vert=Lt,nt=pr.frag,pr.frag=jt,ht.dirty=!0,wi(Oe,Zr,$i),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,Qi[0]=oa,Qi[1]=ka,Qi[2]=so,Qi[3]=Kr,Ai[0]=Ia,Ai[1]=Yo,Ai[2]=fa,Ai[3]=kn,De.blend_enable=Ta,Ri[0]=ys,Ri[1]=uo,hn[0]=ls,hn[1]=$a,hn[2]=fo,hn[3]=mn,De.cull_enable=ra,De.cull_face=wa,De.depth_enable=Co,Vi[0]=Sn,Vi[1]=ao,Vi[2]=Oa,Vi[3]=Ko,De.scissor_enable=Qo,De.stencil_enable=Hi,Sa&&(r.cpuTime+=performance.now()-Qa),st.offset=vn,st.count=da,st.instances=vo,st.primitive=As,Er[Be]=co,Er[ce]=No,Er[je]=Go,Er[rt]=qs,Er[bt]=Ba,Er[Ot]=Vs,Er[it]=_n,Er[Ke]=wo,Er[zt]=Xn,Er[Mt]=$n,Er[kt]=qn,Er[$e]=Ja,Er[Re]=eo,Er[Me]=es,oe.state=Na,oe.x=en,oe.y=Pa,oe.z=to,oe.w=yo,oe.buffer=Jo,oe.size=Ao,oe.normalized=Dn,oe.type=_a,oe.offset=Ws,oe.stride=Ca,oe.divisor=Es,Ne.state=Ts,Ne.x=Ho,Ne.y=Wa,Ne.z=To,Ne.w=ts,Ne.buffer=Wo,Ne.size=qa,Ne.normalized=on,Ne.type=Oo,Ne.offset=ko,Ne.stride=oo,Ne.divisor=za,rs&&xt.destroyStream(Ma),vt.state=xs,vt.x=ks,vt.y=Ea,vt.z=Jn,vt.w=Bo,vt.buffer=rl,vt.size=Gs,vt.normalized=bs,vt.type=zs,vt.offset=$o,vt.stride=Aa,vt.divisor=os,Ss&&xt.destroyStream(io),lt.state=Hs,lt.x=Ro,lt.y=tl,lt.z=Fs,lt.w=hl,lt.buffer=Fa,lt.size=Ms,lt.normalized=jo,lt.type=Rs,lt.offset=Is,lt.stride=Os,lt.divisor=St,xr&&xt.destroyStream(Ki),We.state=ta,We.x=ya,We.y=ia,We.z=pa,We.w=va,We.buffer=zn,We.size=is,We.normalized=Cs,We.type=Ks,We.offset=dl,We.stride=xl,We.divisor=Bl,eu&&xt.destroyStream(cs),Ve.state=Al,Ve.x=Ll,Ve.y=ms,Ve.z=Bs,Ve.w=Xl,Ve.buffer=Gl,Ve.size=Nl,Ve.normalized=ue,Ve.type=w,Ve.offset=q,Ve.stride=Q,Ve.divisor=ee,Ue&&xt.destroyStream(Mr),et.state=ot,et.x=mt,et.y=Gt,et.z=er,et.w=sr,et.buffer=wr,et.size=Ir,et.normalized=ri,et.type=si,et.offset=Mi,et.stride=cn,et.divisor=Zn,Ua&&xt.destroyStream(Sl),tt.state=Hu,tt.x=$u,tt.y=Ku,tt.z=Wu,tt.w=ju,tt.buffer=sf,tt.size=_f,tt.normalized=Qu,tt.type=ef,tt.offset=Z,tt.stride=le,tt.divisor=Le,pr.vert=Ye,pr.frag=nt,ht.dirty=!0},batch:function(Zr,wi){var $i,ni,Xi,aa,Mn,Un,Ga;if($i=jr.angle_instanced_arrays,ni=ii.next,ni!==ii.cur&&(ni?xe.bindFramebuffer(36160,ni.framebuffer):xe.bindFramebuffer(36160,null),ii.cur=ni),ht.dirty){var ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo;ma=De.dither,ma!==ht.dither&&(ma?xe.enable(3024):xe.disable(3024),ht.dither=ma),oa=De.depth_func,oa!==ht.depth_func&&(xe.depthFunc(oa),ht.depth_func=oa),ka=_i[0],so=_i[1],(ka!==zi[0]||so!==zi[1])&&(xe.depthRange(ka,so),zi[0]=ka,zi[1]=so),Kr=De.depth_mask,Kr!==ht.depth_mask&&(xe.depthMask(Kr),ht.depth_mask=Kr),Ia=Dt[0],Yo=Dt[1],fa=Dt[2],kn=Dt[3],(Ia!==_t[0]||Yo!==_t[1]||fa!==_t[2]||kn!==_t[3])&&(xe.colorMask(Ia,Yo,fa,kn),_t[0]=Ia,_t[1]=Yo,_t[2]=fa,_t[3]=kn),Ta=De.frontFace,Ta!==ht.frontFace&&(xe.frontFace(Ta),ht.frontFace=Ta),ys=De.lineWidth,ys!==ht.lineWidth&&(xe.lineWidth(ys),ht.lineWidth=ys),uo=De.polygonOffset_enable,uo!==ht.polygonOffset_enable&&(uo?xe.enable(32823):xe.disable(32823),ht.polygonOffset_enable=uo),ls=qt[0],$a=qt[1],(ls!==Nt[0]||$a!==Nt[1])&&(xe.polygonOffset(ls,$a),Nt[0]=ls,Nt[1]=$a),fo=De.sample_alpha,fo!==ht.sample_alpha&&(fo?xe.enable(32926):xe.disable(32926),ht.sample_alpha=fo),mn=De.sample_enable,mn!==ht.sample_enable&&(mn?xe.enable(32928):xe.disable(32928),ht.sample_enable=mn),ra=mr[0],wa=mr[1],(ra!==Lr[0]||wa!==Lr[1])&&(xe.sampleCoverage(ra,wa),Lr[0]=ra,Lr[1]=wa),ws=De.stencil_mask,ws!==ht.stencil_mask&&(xe.stencilMask(ws),ht.stencil_mask=ws),Co=Nr[0],Po=Nr[1],Wi=Nr[2],(Co!==Fr[0]||Po!==Fr[1]||Wi!==Fr[2])&&(xe.stencilFunc(Co,Po,Wi),Fr[0]=Co,Fr[1]=Po,Fr[2]=Wi),gn=Hr[0],Ps=Hr[1],Ha=Hr[2],Sn=Hr[3],(gn!==Gr[0]||Ps!==Gr[1]||Ha!==Gr[2]||Sn!==Gr[3])&&(xe.stencilOpSeparate(gn,Ps,Ha,Sn),Gr[0]=gn,Gr[1]=Ps,Gr[2]=Ha,Gr[3]=Sn),ao=mi[0],Oa=mi[1],Ko=mi[2],Qo=mi[3],(ao!==Ei[0]||Oa!==Ei[1]||Ko!==Ei[2]||Qo!==Ei[3])&&(xe.stencilOpSeparate(ao,Oa,Ko,Qo),Ei[0]=ao,Ei[1]=Oa,Ei[2]=Ko,Ei[3]=Qo)}xe.blendColor(0,0,0,0),Bi[0]=0,Bi[1]=0,Bi[2]=0,Bi[3]=0,or?xe.enable(3042):xe.disable(3042),ht.blend_enable=or,xe.blendEquationSeparate(32774,32774),ln[0]=32774,ln[1]=32774,xe.blendFuncSeparate(770,771,773,1),qr[0]=770,qr[1]=771,qr[2]=773,qr[3]=1,yr?xe.enable(2884):xe.disable(2884),ht.cull_enable=yr,xe.cullFace(vr),ht.cull_face=vr,Vt?xe.enable(3089):xe.disable(3089),ht.scissor_enable=Vt,Pe?xe.enable(2960):xe.disable(2960),ht.stencil_enable=Pe,Xi=ht.profile,Xi&&(aa=performance.now(),r.count+=wi),xe.useProgram(l.program),Mn=jr.angle_instanced_arrays;var Hi,Sa,Qa,vn,da;for(cr.setVAO(null),Hi=y.location,Sa=br[Hi],Sa.buffer||xe.enableVertexAttribArray(Hi),(Sa.type!==5126||Sa.size!==1||Sa.buffer!==p||Sa.normalized!==!1||Sa.offset!==0||Sa.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Hi,1,5126,!1,8,0),Sa.type=5126,Sa.size=1,Sa.buffer=p,Sa.normalized=!1,Sa.offset=0,Sa.stride=8),Sa.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Hi,0),Sa.divisor=0),Qa=b.location,vn=br[Qa],vn.buffer||xe.enableVertexAttribArray(Qa),(vn.type!==5126||vn.size!==1||vn.buffer!==p||vn.normalized!==!1||vn.offset!==4||vn.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Qa,1,5126,!1,8,4),vn.type=5126,vn.size=1,vn.buffer=p,vn.normalized=!1,vn.offset=4,vn.stride=8),vn.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Qa,0),vn.divisor=0),da=st.elements,da?xe.bindBuffer(34963,da.buffer.buffer):cr.currentVAO&&(da=gt.getElements(cr.currentVAO.elements),da&&xe.bindBuffer(34963,da.buffer.buffer)),Un=0;Un0?xi.constant[0]:0,Vn=xi.constant.length>1?xi.constant[1]:0,wo=xi.constant.length>2?xi.constant[2]:0,Ra=xi.constant.length>3?xi.constant[3]:0)):(Vr(xi.buffer)?Xn=xt.createStream(34962,xi.buffer):Xn=xt.getBuffer(xi.buffer),Ka="type"in xi?Ii[xi.type]:Xn.dtype,$n=!!xi.normalized,sn=xi.size|0,qn=xi.offset|0,Eo=xi.stride|0,Ja=xi.divisor|0)),lo=f.location,eo=br[lo],Ya===1?(eo.buffer||xe.enableVertexAttribArray(lo),sa=sn||4,(eo.type!==Ka||eo.size!==sa||eo.buffer!==Xn||eo.normalized!==$n||eo.offset!==qn||eo.stride!==Eo)&&(xe.bindBuffer(34962,Xn.buffer),xe.vertexAttribPointer(lo,sa,Ka,$n,Eo,qn),eo.type=Ka,eo.size=sa,eo.buffer=Xn,eo.normalized=$n,eo.offset=qn,eo.stride=Eo),eo.divisor!==Ja&&(Mn.vertexAttribDivisorANGLE(lo,Ja),eo.divisor=Ja)):(eo.buffer&&(xe.disableVertexAttribArray(lo),eo.buffer=null),(eo.x!==_n||eo.y!==Vn||eo.z!==wo||eo.w!==Ra)&&(xe.vertexAttrib4f(lo,_n,Vn,wo,Ra),eo.x=_n,eo.y=Vn,eo.z=wo,eo.w=Ra)),es=Ga.positionBuffer,$t.buffer=es,Na=!1,en=1,Pa=0,to=0,yo=0,Jo=0,Ao=null,Dn=0,_a=!1,Ws=5126,Ca=0,Es=0,Ts=0,Vr($t)?(Na=!0,Ao=xt.createStream(34962,$t),Ws=Ao.dtype):(Ao=xt.getBuffer($t),Ao?Ws=Ao.dtype:"constant"in $t?(en=2,typeof $t.constant=="number"?(Pa=$t.constant,to=yo=Jo=0):(Pa=$t.constant.length>0?$t.constant[0]:0,to=$t.constant.length>1?$t.constant[1]:0,yo=$t.constant.length>2?$t.constant[2]:0,Jo=$t.constant.length>3?$t.constant[3]:0)):(Vr($t.buffer)?Ao=xt.createStream(34962,$t.buffer):Ao=xt.getBuffer($t.buffer),Ws="type"in $t?Ii[$t.type]:Ao.dtype,_a=!!$t.normalized,Dn=$t.size|0,Ca=$t.offset|0,Es=$t.stride|0,Ts=$t.divisor|0)),Ho=c.location,Wa=br[Ho],en===1?(Wa.buffer||xe.enableVertexAttribArray(Ho),To=Dn||2,(Wa.type!==Ws||Wa.size!==To||Wa.buffer!==Ao||Wa.normalized!==_a||Wa.offset!==Ca||Wa.stride!==Es)&&(xe.bindBuffer(34962,Ao.buffer),xe.vertexAttribPointer(Ho,To,Ws,_a,Es,Ca),Wa.type=Ws,Wa.size=To,Wa.buffer=Ao,Wa.normalized=_a,Wa.offset=Ca,Wa.stride=Es),Wa.divisor!==Ts&&(Mn.vertexAttribDivisorANGLE(Ho,Ts),Wa.divisor=Ts)):(Wa.buffer&&(xe.disableVertexAttribArray(Ho),Wa.buffer=null),(Wa.x!==Pa||Wa.y!==to||Wa.z!==yo||Wa.w!==Jo)&&(xe.vertexAttrib4f(Ho,Pa,to,yo,Jo),Wa.x=Pa,Wa.y=to,Wa.z=yo,Wa.w=Jo)),ts=Ga.colorBuffer,Xr.buffer=ts,Wo=!1,qa=1,on=0,Oo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Vr(Xr)?(Wo=!0,za=xt.createStream(34962,Xr),$s=za.dtype):(za=xt.getBuffer(Xr),za?$s=za.dtype:"constant"in Xr?(qa=2,typeof Xr.constant=="number"?(on=Xr.constant,Oo=ko=oo=0):(on=Xr.constant.length>0?Xr.constant[0]:0,Oo=Xr.constant.length>1?Xr.constant[1]:0,ko=Xr.constant.length>2?Xr.constant[2]:0,oo=Xr.constant.length>3?Xr.constant[3]:0)):(Vr(Xr.buffer)?za=xt.createStream(34962,Xr.buffer):za=xt.getBuffer(Xr.buffer),$s="type"in Xr?Ii[Xr.type]:za.dtype,rs=!!Xr.normalized,ea=Xr.size|0,us=Xr.offset|0,Ds=Xr.stride|0,fl=Xr.divisor|0)),as=h.location,Ma=br[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||4,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Mn.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==on||Ma.y!==Oo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,on,Oo,ko,oo),Ma.x=on,Ma.y=Oo,Ma.z=ko,Ma.w=oo)),ho=Ga.positionBuffer,fr.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Bo=!1,rl=5126,Gs=0,bs=0,zs=0,Vr(fr)?(gs=!0,Ea=xt.createStream(34962,fr),rl=Ea.dtype):(Ea=xt.getBuffer(fr),Ea?rl=Ea.dtype:"constant"in fr?(Vo=2,typeof fr.constant=="number"?(Do=fr.constant,Lo=xs=ks=0):(Do=fr.constant.length>0?fr.constant[0]:0,Lo=fr.constant.length>1?fr.constant[1]:0,xs=fr.constant.length>2?fr.constant[2]:0,ks=fr.constant.length>3?fr.constant[3]:0)):(Vr(fr.buffer)?Ea=xt.createStream(34962,fr.buffer):Ea=xt.getBuffer(fr.buffer),rl="type"in fr?Ii[fr.type]:Ea.dtype,Bo=!!fr.normalized,Jn=fr.size|0,Gs=fr.offset|0,bs=fr.stride|0,zs=fr.divisor|0)),$o=d.location,Aa=br[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Bo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Bo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Bo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Mn.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Ga.positionBuffer,gr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Vr(gr)?(Ss=!0,io=xt.createStream(34962,gr),vs=io.dtype):(io=xt.getBuffer(gr),io?vs=io.dtype:"constant"in gr?(po=2,typeof gr.constant=="number"?(go=gr.constant,ss=qo=zo=0):(go=gr.constant.length>0?gr.constant[0]:0,ss=gr.constant.length>1?gr.constant[1]:0,qo=gr.constant.length>2?gr.constant[2]:0,zo=gr.constant.length>3?gr.constant[3]:0)):(Vr(gr.buffer)?io=xt.createStream(34962,gr.buffer):io=xt.getBuffer(gr.buffer),vs="type"in gr?Ii[gr.type]:io.dtype,Da=!!gr.normalized,Io=gr.size|0,fs=gr.offset|0,cl=gr.stride|0,el=gr.divisor|0)),Hs=v.location,Ro=br[Hs],po===1?(Ro.buffer||xe.enableVertexAttribArray(Hs),tl=Io||2,(Ro.type!==vs||Ro.size!==tl||Ro.buffer!==io||Ro.normalized!==Da||Ro.offset!==fs||Ro.stride!==cl)&&(xe.bindBuffer(34962,io.buffer),xe.vertexAttribPointer(Hs,tl,vs,Da,cl,fs),Ro.type=vs,Ro.size=tl,Ro.buffer=io,Ro.normalized=Da,Ro.offset=fs,Ro.stride=cl),Ro.divisor!==el&&(Mn.vertexAttribDivisorANGLE(Hs,el),Ro.divisor=el)):(Ro.buffer&&(xe.disableVertexAttribArray(Hs),Ro.buffer=null),(Ro.x!==go||Ro.y!==ss||Ro.z!==qo||Ro.w!==zo)&&(xe.vertexAttrib4f(Hs,go,ss,qo,zo),Ro.x=go,Ro.y=ss,Ro.z=qo,Ro.w=zo)),Fs=Ga.positionBuffer,dt.buffer=Fs,hl=!1,Fa=1,Ms=0,jo=0,Rs=0,Is=0,Os=null,St=0,Ut=!1,xr=5126,dr=0,Dr=0,yi=0,Vr(dt)?(hl=!0,Os=xt.createStream(34962,dt),xr=Os.dtype):(Os=xt.getBuffer(dt),Os?xr=Os.dtype:"constant"in dt?(Fa=2,typeof dt.constant=="number"?(Ms=dt.constant,jo=Rs=Is=0):(Ms=dt.constant.length>0?dt.constant[0]:0,jo=dt.constant.length>1?dt.constant[1]:0,Rs=dt.constant.length>2?dt.constant[2]:0,Is=dt.constant.length>3?dt.constant[3]:0)):(Vr(dt.buffer)?Os=xt.createStream(34962,dt.buffer):Os=xt.getBuffer(dt.buffer),xr="type"in dt?Ii[dt.type]:Os.dtype,Ut=!!dt.normalized,St=dt.size|0,dr=dt.offset|0,Dr=dt.stride|0,yi=dt.divisor|0)),Ti=C.location,ki=br[Ti],Fa===1?(ki.buffer||xe.enableVertexAttribArray(Ti),Ki=St||2,(ki.type!==xr||ki.size!==Ki||ki.buffer!==Os||ki.normalized!==Ut||ki.offset!==dr||ki.stride!==Dr)&&(xe.bindBuffer(34962,Os.buffer),xe.vertexAttribPointer(Ti,Ki,xr,Ut,Dr,dr),ki.type=xr,ki.size=Ki,ki.buffer=Os,ki.normalized=Ut,ki.offset=dr,ki.stride=Dr),ki.divisor!==yi&&(Mn.vertexAttribDivisorANGLE(Ti,yi),ki.divisor=yi)):(ki.buffer&&(xe.disableVertexAttribArray(Ti),ki.buffer=null),(ki.x!==Ms||ki.y!==jo||ki.z!==Rs||ki.w!==Is)&&(xe.vertexAttrib4f(Ti,Ms,jo,Rs,Is),ki.x=Ms,ki.y=jo,ki.z=Rs,ki.w=Is)),Fn=Ga.dashLength,(!Un||Li!==Fn)&&(Li=Fn,xe.uniform1f(E.location,Fn)),hi=Ga.dashTexture,hi&&hi._reglType==="framebuffer"&&(hi=hi.color[0]),Ci=hi._texture,xe.uniform1i(A.location,Ci.bind()),Si=Ga.depth,(!Un||Gn!==Si)&&(Gn=Si,xe.uniform1f(L.location,Si)),ta=Ga.miterLimit,(!Un||ya!==ta)&&(ya=ta,xe.uniform1f(x.location,ta)),ia=S.call(this,Oe,Ga,Un),(!Un||pa!==ia)&&(pa=ia,xe.uniform1f(k.location,ia)),va=Ga.opacity,(!Un||zn!==va)&&(zn=va,xe.uniform1f(m.location,va)),is=Ga.scale,Cs=is[0],dl=is[1],(!Un||Ks!==Cs||xl!==dl)&&(Ks=Cs,xl=dl,xe.uniform2f(P.location,Cs,dl)),Bl=Ga.thickness,(!Un||bl!==Bl)&&(bl=Bl,xe.uniform1f(M.location,Bl)),eu=Ga.translate,Zl=eu[0],ja=eu[1],(!Un||Vl!==Zl||ns!==ja)&&(Vl=Zl,ns=ja,xe.uniform2f(O.location,Zl,ja)),Js=U.call(this,Oe,Ga,Un),cs=Js[0],ll=Js[1],zl=Js[2],Rl=Js[3],(!Un||sl!==cs||nl!==ll||Ml!==zl||Al!==Rl)&&(sl=cs,nl=ll,Ml=zl,Al=Rl,xe.uniform4f(F.location,cs,ll,zl,Rl)),Ll=Ga.count,Ll>0?da?Mn.drawElementsInstancedANGLE(5,4,da.type,0<<(da.type-5121>>1),Ll):Mn.drawArraysInstancedANGLE(5,0,4,Ll):Ll<0&&(da?xe.drawElements(5,4,da.type,0<<(da.type-5121>>1)):xe.drawArrays(5,0,4)),Oe.viewportWidth=mo,Oe.viewportHeight=No,Vs&&xt.destroyStream(Xn),Na&&xt.destroyStream(Ao),Wo&&xt.destroyStream(za),gs&&xt.destroyStream(Ea),Ss&&xt.destroyStream(io),hl&&xt.destroyStream(Os),Ci.unbind()}ht.dirty=!0,cr.setVAO(null),Xi&&(r.cpuTime+=performance.now()-aa)}}}});var G8=we((Rbr,y7e)=>{y7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt){"use strict";var Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii;return Pe=t.gl,xe=t.context,Oe=t.strings,ze=t.next,De=t.current,ht=t.draw,st=t.elements,gt=t.buffer,xt=t.shader,pr=t.attributes,br=t.vao,cr=t.uniforms,Er=t.framebuffer,ii=t.extensions,jr=t.timer,kr=t.isBufferArgs,Vr=ze.blend_color,Ai=De.blend_color,Bi=ze.blend_equation,Ri=De.blend_equation,ln=ze.blend_func,hn=De.blend_func,qr=ze.depth_range,_i=De.depth_range,zi=ze.colorMask,Dt=De.colorMask,_t=ze.polygonOffset_offset,qt=De.polygonOffset_offset,Nt=ze.sample_coverage,mr=De.sample_coverage,Lr=ze.stencil_func,Nr=De.stencil_func,Fr=ze.stencil_opFront,Hr=De.stencil_opFront,Gr=ze.stencil_opBack,mi=De.stencil_opBack,Ei=ze.scissor_box,Vi=De.scissor_box,ti=ze.viewport,Qi=De.viewport,Yr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},oi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rn={add:32774,subtract:32778,"reverse subtract":32779},tn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Di={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ii={cw:2304,ccw:2305},{draw:function(xn){var xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl;if(xi=ii.angle_instanced_arrays,Xr=Er.next,Xr!==Er.cur&&(Xr?Pe.bindFramebuffer(36160,Xr.framebuffer):Pe.bindFramebuffer(36160,null),Er.cur=Xr),De.dirty){var Ml,Rl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr;Ml=ze.dither,Ml!==De.dither&&(Ml?Pe.enable(3024):Pe.disable(3024),De.dither=Ml),Rl=Bi[0],Al=Bi[1],(Rl!==Ri[0]||Al!==Ri[1])&&(Pe.blendEquationSeparate(Rl,Al),Ri[0]=Rl,Ri[1]=Al),Ll=ze.depth_func,Ll!==De.depth_func&&(Pe.depthFunc(Ll),De.depth_func=Ll),ms=qr[0],Bs=qr[1],(ms!==_i[0]||Bs!==_i[1])&&(Pe.depthRange(ms,Bs),_i[0]=ms,_i[1]=Bs),Xl=ze.depth_mask,Xl!==De.depth_mask&&(Pe.depthMask(Xl),De.depth_mask=Xl),Gl=zi[0],Nl=zi[1],ue=zi[2],w=zi[3],(Gl!==Dt[0]||Nl!==Dt[1]||ue!==Dt[2]||w!==Dt[3])&&(Pe.colorMask(Gl,Nl,ue,w),Dt[0]=Gl,Dt[1]=Nl,Dt[2]=ue,Dt[3]=w),q=ze.cull_enable,q!==De.cull_enable&&(q?Pe.enable(2884):Pe.disable(2884),De.cull_enable=q),Q=ze.cull_face,Q!==De.cull_face&&(Pe.cullFace(Q),De.cull_face=Q),ee=ze.frontFace,ee!==De.frontFace&&(Pe.frontFace(ee),De.frontFace=ee),fe=ze.lineWidth,fe!==De.lineWidth&&(Pe.lineWidth(fe),De.lineWidth=fe),Ue=ze.polygonOffset_enable,Ue!==De.polygonOffset_enable&&(Ue?Pe.enable(32823):Pe.disable(32823),De.polygonOffset_enable=Ue),at=_t[0],yt=_t[1],(at!==qt[0]||yt!==qt[1])&&(Pe.polygonOffset(at,yt),qt[0]=at,qt[1]=yt),Rt=ze.sample_alpha,Rt!==De.sample_alpha&&(Rt?Pe.enable(32926):Pe.disable(32926),De.sample_alpha=Rt),Qt=ze.sample_enable,Qt!==De.sample_enable&&(Qt?Pe.enable(32928):Pe.disable(32928),De.sample_enable=Qt),rr=Nt[0],Mr=Nt[1],(rr!==mr[0]||Mr!==mr[1])&&(Pe.sampleCoverage(rr,Mr),mr[0]=rr,mr[1]=Mr),Ur=ze.stencil_mask,Ur!==De.stencil_mask&&(Pe.stencilMask(Ur),De.stencil_mask=Ur),he=Lr[0],Ae=Lr[1],qe=Lr[2],(he!==Nr[0]||Ae!==Nr[1]||qe!==Nr[2])&&(Pe.stencilFunc(he,Ae,qe),Nr[0]=he,Nr[1]=Ae,Nr[2]=qe),Ge=Fr[0],ft=Fr[1],ot=Fr[2],mt=Fr[3],(Ge!==Hr[0]||ft!==Hr[1]||ot!==Hr[2]||mt!==Hr[3])&&(Pe.stencilOpSeparate(Ge,ft,ot,mt),Hr[0]=Ge,Hr[1]=ft,Hr[2]=ot,Hr[3]=mt),Gt=Gr[0],er=Gr[1],sr=Gr[2],wr=Gr[3],(Gt!==mi[0]||er!==mi[1]||sr!==mi[2]||wr!==mi[3])&&(Pe.stencilOpSeparate(Gt,er,sr,wr),mi[0]=Gt,mi[1]=er,mi[2]=sr,mi[3]=wr)}dt=xn.viewport,$t=dt.x|0,fr=dt.y|0,gr="width"in dt?dt.width|0:xe.framebufferWidth-$t,Zr="height"in dt?dt.height|0:xe.framebufferHeight-fr,wi=xe.viewportWidth,xe.viewportWidth=gr,$i=xe.viewportHeight,xe.viewportHeight=Zr,Pe.viewport($t,fr,gr,Zr),Qi[0]=$t,Qi[1]=fr,Qi[2]=gr,Qi[3]=Zr,Pe.blendColor(0,0,0,1),Ai[0]=0,Ai[1]=0,Ai[2]=0,Ai[3]=1,n?Pe.enable(3042):Pe.disable(3042),De.blend_enable=n,Pe.blendFuncSeparate(770,771,773,1),hn[0]=770,hn[1]=771,hn[2]=773,hn[3]=1,i?Pe.enable(2929):Pe.disable(2929),De.depth_enable=i,ni=xn.viewport,Xi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:xe.framebufferWidth-Xi,Un="height"in ni?ni.height|0:xe.framebufferHeight-aa,Pe.scissor(Xi,aa,Mn,Un),Vi[0]=Xi,Vi[1]=aa,Vi[2]=Mn,Vi[3]=Un,a?Pe.enable(3089):Pe.disable(3089),De.scissor_enable=a,o?Pe.enable(2960):Pe.disable(2960),De.stencil_enable=o,Ga=De.profile,Ga&&(ma=performance.now(),r.count++),Pe.useProgram(s.program),oa=ii.angle_instanced_arrays,br.setVAO(null),ka=u.call(this,xe,xn,0),so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,kr(ka)?(so=!0,Ta=gt.createStream(34962,ka),ls=Ta.dtype):(Ta=gt.getBuffer(ka),Ta?ls=Ta.dtype:"constant"in ka?(Kr=2,typeof ka.constant=="number"?(Ia=ka.constant,Yo=fa=kn=0):(Ia=ka.constant.length>0?ka.constant[0]:0,Yo=ka.constant.length>1?ka.constant[1]:0,fa=ka.constant.length>2?ka.constant[2]:0,kn=ka.constant.length>3?ka.constant[3]:0)):(kr(ka.buffer)?Ta=gt.createStream(34962,ka.buffer):Ta=gt.getBuffer(ka.buffer),ls="type"in ka?Di[ka.type]:Ta.dtype,uo=!!ka.normalized,ys=ka.size|0,$a=ka.offset|0,fo=ka.stride|0,mn=ka.divisor|0)),ra=l.location,wa=pr[ra],Kr===1?(wa.buffer||Pe.enableVertexAttribArray(ra),ws=ys||4,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Pe.bindBuffer(34962,Ta.buffer),Pe.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(oa.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Pe.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Pe.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=f.call(this,xe,xn,0),Po=!1,Wi=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Oa=0,Ko=!1,Qo=5126,Hi=0,Sa=0,Qa=0,kr(Co)?(Po=!0,ao=gt.createStream(34962,Co),Qo=ao.dtype):(ao=gt.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(Wi=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(kr(Co.buffer)?ao=gt.createStream(34962,Co.buffer):ao=gt.getBuffer(Co.buffer),Qo="type"in Co?Di[Co.type]:ao.dtype,Ko=!!Co.normalized,Oa=Co.size|0,Hi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=c.location,da=pr[vn],Wi===1?(da.buffer||Pe.enableVertexAttribArray(vn),la=Oa||1,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Hi||da.stride!==Sa)&&(Pe.bindBuffer(34962,ao.buffer),Pe.vertexAttribPointer(vn,la,Qo,Ko,Sa,Hi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Hi,da.stride=Sa),da.divisor!==Qa&&(oa.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Pe.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Pe.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=h.call(this,xe,xn,0),As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Ba=0,ha=0,Vs=0,kr(vo)?(As=!0,Go=gt.createStream(34962,vo),Ns=Go.dtype):(Go=gt.getBuffer(vo),Go?Ns=Go.dtype:"constant"in vo?(ps=2,typeof vo.constant=="number"?(co=vo.constant,mo=No=jn=0):(co=vo.constant.length>0?vo.constant[0]:0,mo=vo.constant.length>1?vo.constant[1]:0,No=vo.constant.length>2?vo.constant[2]:0,jn=vo.constant.length>3?vo.constant[3]:0)):(kr(vo.buffer)?Go=gt.createStream(34962,vo.buffer):Go=gt.getBuffer(vo.buffer),Ns="type"in vo?Di[vo.type]:Go.dtype,qs=!!vo.normalized,Ys=vo.size|0,Ba=vo.offset|0,ha=vo.stride|0,Vs=vo.divisor|0)),Ya=d.location,_n=pr[Ya],ps===1?(_n.buffer||Pe.enableVertexAttribArray(Ya),Vn=Ys||4,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Ba||_n.stride!==ha)&&(Pe.bindBuffer(34962,Go.buffer),Pe.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Ba),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Ba,_n.stride=ha),_n.divisor!==Vs&&(oa.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Pe.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Pe.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=p.call(this,xe,xn,0),Ra=!1,Xn=1,sn=0,$n=0,Ka=0,qn=0,Eo=null,Ja=0,lo=!1,eo=5126,sa=0,es=0,Na=0,kr(wo)?(Ra=!0,Eo=gt.createStream(34962,wo),eo=Eo.dtype):(Eo=gt.getBuffer(wo),Eo?eo=Eo.dtype:"constant"in wo?(Xn=2,typeof wo.constant=="number"?(sn=wo.constant,$n=Ka=qn=0):(sn=wo.constant.length>0?wo.constant[0]:0,$n=wo.constant.length>1?wo.constant[1]:0,Ka=wo.constant.length>2?wo.constant[2]:0,qn=wo.constant.length>3?wo.constant[3]:0)):(kr(wo.buffer)?Eo=gt.createStream(34962,wo.buffer):Eo=gt.getBuffer(wo.buffer),eo="type"in wo?Di[wo.type]:Eo.dtype,lo=!!wo.normalized,Ja=wo.size|0,sa=wo.offset|0,es=wo.stride|0,Na=wo.divisor|0)),en=y.location,Pa=pr[en],Xn===1?(Pa.buffer||Pe.enableVertexAttribArray(en),to=Ja||1,(Pa.type!==eo||Pa.size!==to||Pa.buffer!==Eo||Pa.normalized!==lo||Pa.offset!==sa||Pa.stride!==es)&&(Pe.bindBuffer(34962,Eo.buffer),Pe.vertexAttribPointer(en,to,eo,lo,es,sa),Pa.type=eo,Pa.size=to,Pa.buffer=Eo,Pa.normalized=lo,Pa.offset=sa,Pa.stride=es),Pa.divisor!==Na&&(oa.vertexAttribDivisorANGLE(en,Na),Pa.divisor=Na)):(Pa.buffer&&(Pe.disableVertexAttribArray(en),Pa.buffer=null),(Pa.x!==sn||Pa.y!==$n||Pa.z!==Ka||Pa.w!==qn)&&(Pe.vertexAttrib4f(en,sn,$n,Ka,qn),Pa.x=sn,Pa.y=$n,Pa.z=Ka,Pa.w=qn)),yo=b.call(this,xe,xn,0),Jo=!1,Ao=1,Dn=0,_a=0,Ws=0,Ca=0,Es=null,Ts=0,Ho=!1,Wa=5126,To=0,ts=0,Wo=0,kr(yo)?(Jo=!0,Es=gt.createStream(34962,yo),Wa=Es.dtype):(Es=gt.getBuffer(yo),Es?Wa=Es.dtype:"constant"in yo?(Ao=2,typeof yo.constant=="number"?(Dn=yo.constant,_a=Ws=Ca=0):(Dn=yo.constant.length>0?yo.constant[0]:0,_a=yo.constant.length>1?yo.constant[1]:0,Ws=yo.constant.length>2?yo.constant[2]:0,Ca=yo.constant.length>3?yo.constant[3]:0)):(kr(yo.buffer)?Es=gt.createStream(34962,yo.buffer):Es=gt.getBuffer(yo.buffer),Wa="type"in yo?Di[yo.type]:Es.dtype,Ho=!!yo.normalized,Ts=yo.size|0,To=yo.offset|0,ts=yo.stride|0,Wo=yo.divisor|0)),qa=v.location,on=pr[qa],Ao===1?(on.buffer||Pe.enableVertexAttribArray(qa),Oo=Ts||1,(on.type!==Wa||on.size!==Oo||on.buffer!==Es||on.normalized!==Ho||on.offset!==To||on.stride!==ts)&&(Pe.bindBuffer(34962,Es.buffer),Pe.vertexAttribPointer(qa,Oo,Wa,Ho,ts,To),on.type=Wa,on.size=Oo,on.buffer=Es,on.normalized=Ho,on.offset=To,on.stride=ts),on.divisor!==Wo&&(oa.vertexAttribDivisorANGLE(qa,Wo),on.divisor=Wo)):(on.buffer&&(Pe.disableVertexAttribArray(qa),on.buffer=null),(on.x!==Dn||on.y!==_a||on.z!==Ws||on.w!==Ca)&&(Pe.vertexAttrib4f(qa,Dn,_a,Ws,Ca),on.x=Dn,on.y=_a,on.z=Ws,on.w=Ca)),ko=C.call(this,xe,xn,0),oo=!1,za=1,ea=0,rs=0,$s=0,us=0,Ds=null,fl=0,as=!1,Ma=5126,Qs=0,ho=0,gs=0,kr(ko)?(oo=!0,Ds=gt.createStream(34962,ko),Ma=Ds.dtype):(Ds=gt.getBuffer(ko),Ds?Ma=Ds.dtype:"constant"in ko?(za=2,typeof ko.constant=="number"?(ea=ko.constant,rs=$s=us=0):(ea=ko.constant.length>0?ko.constant[0]:0,rs=ko.constant.length>1?ko.constant[1]:0,$s=ko.constant.length>2?ko.constant[2]:0,us=ko.constant.length>3?ko.constant[3]:0)):(kr(ko.buffer)?Ds=gt.createStream(34962,ko.buffer):Ds=gt.getBuffer(ko.buffer),Ma="type"in ko?Di[ko.type]:Ds.dtype,as=!!ko.normalized,fl=ko.size|0,Qs=ko.offset|0,ho=ko.stride|0,gs=ko.divisor|0)),Vo=E.location,Do=pr[Vo],za===1?(Do.buffer||Pe.enableVertexAttribArray(Vo),Lo=fl||1,(Do.type!==Ma||Do.size!==Lo||Do.buffer!==Ds||Do.normalized!==as||Do.offset!==Qs||Do.stride!==ho)&&(Pe.bindBuffer(34962,Ds.buffer),Pe.vertexAttribPointer(Vo,Lo,Ma,as,ho,Qs),Do.type=Ma,Do.size=Lo,Do.buffer=Ds,Do.normalized=as,Do.offset=Qs,Do.stride=ho),Do.divisor!==gs&&(oa.vertexAttribDivisorANGLE(Vo,gs),Do.divisor=gs)):(Do.buffer&&(Pe.disableVertexAttribArray(Vo),Do.buffer=null),(Do.x!==ea||Do.y!==rs||Do.z!==$s||Do.w!==us)&&(Pe.vertexAttrib4f(Vo,ea,rs,$s,us),Do.x=ea,Do.y=rs,Do.z=$s,Do.w=us)),xs=A.call(this,xe,xn,0),ks=!1,Ea=1,Jn=0,Bo=0,rl=0,Gs=0,bs=null,zs=0,$o=!1,Aa=5126,os=0,_l=0,Ss=0,kr(xs)?(ks=!0,bs=gt.createStream(34962,xs),Aa=bs.dtype):(bs=gt.getBuffer(xs),bs?Aa=bs.dtype:"constant"in xs?(Ea=2,typeof xs.constant=="number"?(Jn=xs.constant,Bo=rl=Gs=0):(Jn=xs.constant.length>0?xs.constant[0]:0,Bo=xs.constant.length>1?xs.constant[1]:0,rl=xs.constant.length>2?xs.constant[2]:0,Gs=xs.constant.length>3?xs.constant[3]:0)):(kr(xs.buffer)?bs=gt.createStream(34962,xs.buffer):bs=gt.getBuffer(xs.buffer),Aa="type"in xs?Di[xs.type]:bs.dtype,$o=!!xs.normalized,zs=xs.size|0,os=xs.offset|0,_l=xs.stride|0,Ss=xs.divisor|0)),po=L.location,go=pr[po],Ea===1?(go.buffer||Pe.enableVertexAttribArray(po),ss=zs||1,(go.type!==Aa||go.size!==ss||go.buffer!==bs||go.normalized!==$o||go.offset!==os||go.stride!==_l)&&(Pe.bindBuffer(34962,bs.buffer),Pe.vertexAttribPointer(po,ss,Aa,$o,_l,os),go.type=Aa,go.size=ss,go.buffer=bs,go.normalized=$o,go.offset=os,go.stride=_l),go.divisor!==Ss&&(oa.vertexAttribDivisorANGLE(po,Ss),go.divisor=Ss)):(go.buffer&&(Pe.disableVertexAttribArray(po),go.buffer=null),(go.x!==Jn||go.y!==Bo||go.z!==rl||go.w!==Gs)&&(Pe.vertexAttrib4f(po,Jn,Bo,rl,Gs),go.x=Jn,go.y=Bo,go.z=rl,go.w=Gs)),qo=x.call(this,xe,xn,0),zo=!1,io=1,Io=0,Da=0,vs=0,fs=0,cl=null,el=0,Hs=!1,Ro=5126,tl=0,Fs=0,hl=0,kr(qo)?(zo=!0,cl=gt.createStream(34962,qo),Ro=cl.dtype):(cl=gt.getBuffer(qo),cl?Ro=cl.dtype:"constant"in qo?(io=2,typeof qo.constant=="number"?(Io=qo.constant,Da=vs=fs=0):(Io=qo.constant.length>0?qo.constant[0]:0,Da=qo.constant.length>1?qo.constant[1]:0,vs=qo.constant.length>2?qo.constant[2]:0,fs=qo.constant.length>3?qo.constant[3]:0)):(kr(qo.buffer)?cl=gt.createStream(34962,qo.buffer):cl=gt.getBuffer(qo.buffer),Ro="type"in qo?Di[qo.type]:cl.dtype,Hs=!!qo.normalized,el=qo.size|0,tl=qo.offset|0,Fs=qo.stride|0,hl=qo.divisor|0)),Fa=k.location,Ms=pr[Fa],io===1?(Ms.buffer||Pe.enableVertexAttribArray(Fa),jo=el||1,(Ms.type!==Ro||Ms.size!==jo||Ms.buffer!==cl||Ms.normalized!==Hs||Ms.offset!==tl||Ms.stride!==Fs)&&(Pe.bindBuffer(34962,cl.buffer),Pe.vertexAttribPointer(Fa,jo,Ro,Hs,Fs,tl),Ms.type=Ro,Ms.size=jo,Ms.buffer=cl,Ms.normalized=Hs,Ms.offset=tl,Ms.stride=Fs),Ms.divisor!==hl&&(oa.vertexAttribDivisorANGLE(Fa,hl),Ms.divisor=hl)):(Ms.buffer&&(Pe.disableVertexAttribArray(Fa),Ms.buffer=null),(Ms.x!==Io||Ms.y!==Da||Ms.z!==vs||Ms.w!==fs)&&(Pe.vertexAttrib4f(Fa,Io,Da,vs,fs),Ms.x=Io,Ms.y=Da,Ms.z=vs,Ms.w=fs)),Rs=S.call(this,xe,xn,0),Is=!1,Os=1,St=0,Ut=0,xr=0,dr=0,Dr=null,yi=0,Ti=!1,ki=5126,Ki=0,Fn=0,Li=0,kr(Rs)?(Is=!0,Dr=gt.createStream(34962,Rs),ki=Dr.dtype):(Dr=gt.getBuffer(Rs),Dr?ki=Dr.dtype:"constant"in Rs?(Os=2,typeof Rs.constant=="number"?(St=Rs.constant,Ut=xr=dr=0):(St=Rs.constant.length>0?Rs.constant[0]:0,Ut=Rs.constant.length>1?Rs.constant[1]:0,xr=Rs.constant.length>2?Rs.constant[2]:0,dr=Rs.constant.length>3?Rs.constant[3]:0)):(kr(Rs.buffer)?Dr=gt.createStream(34962,Rs.buffer):Dr=gt.getBuffer(Rs.buffer),ki="type"in Rs?Di[Rs.type]:Dr.dtype,Ti=!!Rs.normalized,yi=Rs.size|0,Ki=Rs.offset|0,Fn=Rs.stride|0,Li=Rs.divisor|0)),hi=m.location,Ci=pr[hi],Os===1?(Ci.buffer||Pe.enableVertexAttribArray(hi),Si=yi||1,(Ci.type!==ki||Ci.size!==Si||Ci.buffer!==Dr||Ci.normalized!==Ti||Ci.offset!==Ki||Ci.stride!==Fn)&&(Pe.bindBuffer(34962,Dr.buffer),Pe.vertexAttribPointer(hi,Si,ki,Ti,Fn,Ki),Ci.type=ki,Ci.size=Si,Ci.buffer=Dr,Ci.normalized=Ti,Ci.offset=Ki,Ci.stride=Fn),Ci.divisor!==Li&&(oa.vertexAttribDivisorANGLE(hi,Li),Ci.divisor=Li)):(Ci.buffer&&(Pe.disableVertexAttribArray(hi),Ci.buffer=null),(Ci.x!==St||Ci.y!==Ut||Ci.z!==xr||Ci.w!==dr)&&(Pe.vertexAttrib4f(hi,St,Ut,xr,dr),Ci.x=St,Ci.y=Ut,Ci.z=xr,Ci.w=dr)),Pe.uniform1i(P.location,!1),Gn=xn.markerTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),ta=Gn._texture,Pe.uniform1i(M.location,ta.bind()),ya=xn.opacity,Pe.uniform1f(O.location,ya),ia=U.call(this,xe,xn,0),pa=ia[0],va=ia[1],Pe.uniform2f(F.location,pa,va),Pe.uniform1i(G.location,j.bind()),zn=xe.pixelRatio,Pe.uniform1f(W.location,zn),is=xn.scale,Cs=is[0],Ks=is[1],Pe.uniform2f(N.location,Cs,Ks),dl=xn.scaleFract,xl=dl[0],Bl=dl[1],Pe.uniform2f(H.location,xl,Bl),bl=xn.translate,eu=bl[0],Zl=bl[1],Pe.uniform2f(re.location,eu,Zl),Vl=xn.translateFract,ja=Vl[0],ns=Vl[1],Pe.uniform2f(ae.location,ja,ns),Js=xn.elements,cs=null,sl=kr(Js),sl?cs=st.createStream(Js):cs=st.getElements(Js),cs&&Pe.bindBuffer(34963,cs.buffer.buffer),ll=xn.offset,nl=xn.count,nl&&(zl=ht.instances,zl>0?cs?oa.drawElementsInstancedANGLE(0,nl,cs.type,ll<<(cs.type-5121>>1),zl):oa.drawArraysInstancedANGLE(0,ll,nl,zl):zl<0&&(cs?Pe.drawElements(0,nl,cs.type,ll<<(cs.type-5121>>1)):Pe.drawArrays(0,ll,nl)),De.dirty=!0,br.setVAO(null),xe.viewportWidth=wi,xe.viewportHeight=$i,Ga&&(r.cpuTime+=performance.now()-ma),so&>.destroyStream(Ta),Po&>.destroyStream(ao),As&>.destroyStream(Go),Ra&>.destroyStream(Eo),Jo&>.destroyStream(Es),oo&>.destroyStream(Ds),ks&>.destroyStream(bs),zo&>.destroyStream(cl),Is&>.destroyStream(Dr),ta.unbind(),j.unbind(),sl&&st.destroyStream(cs))},scope:function(xn,xi,Xr){var dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Rl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr,Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,nu,ru,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,le,Le,Ye,nt,ut,Ht,wt,lr,Cr,zr,ui,$r,Oi,un,pi,Pi,ji,pn,an,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Sf,pf;dt=xn.viewport,$t=dt.x|0,fr=dt.y|0,gr="width"in dt?dt.width|0:xe.framebufferWidth-$t,Zr="height"in dt?dt.height|0:xe.framebufferHeight-fr,wi=xe.viewportWidth,xe.viewportWidth=gr,$i=xe.viewportHeight,xe.viewportHeight=Zr,ni=ti[0],ti[0]=$t,Xi=ti[1],ti[1]=fr,aa=ti[2],ti[2]=gr,Mn=ti[3],ti[3]=Zr,Un=Vr[0],Vr[0]=me,Ga=Vr[1],Vr[1]=Ce,ma=Vr[2],Vr[2]=Ee,oa=Vr[3],Vr[3]=de,ka=ze.blend_enable,ze.blend_enable=te,so=ln[0],ln[0]=Se,Kr=ln[1],ln[1]=Te,Ia=ln[2],ln[2]=be,Yo=ln[3],ln[3]=He,fa=ze.depth_enable,ze.depth_enable=Ie,kn=xn.viewport,Ta=kn.x|0,ys=kn.y|0,uo="width"in kn?kn.width|0:xe.framebufferWidth-Ta,ls="height"in kn?kn.height|0:xe.framebufferHeight-ys,$a=Ei[0],Ei[0]=Ta,fo=Ei[1],Ei[1]=ys,mn=Ei[2],Ei[2]=uo,ra=Ei[3],Ei[3]=ls,wa=ze.scissor_enable,ze.scissor_enable=ge,ws=ze.stencil_enable,ze.stencil_enable=Be,Co=De.profile,Co&&(Po=performance.now(),r.count++),Wi=xn.elements,gn=null,Ps=kr(Wi),Ps?gn=st.createStream(Wi):gn=st.getElements(Wi),Ha=ht.elements,ht.elements=gn,Sn=xn.offset,ao=ht.offset,ht.offset=Sn,Oa=xn.count,Ko=ht.count,ht.count=Oa,Qo=ht.primitive,ht.primitive=ce,Hi=cr[je],cr[je]=!1,Sa=cr[bt],cr[bt]=rt,Qa=xn.opacity,vn=cr[Ot],cr[Ot]=Qa,da=U.call(this,xe,xn,Xr),la=cr[it],cr[it]=da,vo=xe.pixelRatio,As=cr[Ke],cr[Ke]=vo,ps=xn.scale,co=cr[zt],cr[zt]=ps,mo=xn.scaleFract,No=cr[Mt],cr[Mt]=mo,jn=xn.translate,Go=cr[kt],cr[kt]=jn,Ys=xn.translateFract,qs=cr[$e],cr[$e]=Ys,Ns=xn.markerTexture,Ba=cr[Re],cr[Re]=Ns,ha=C.call(this,xe,xn,Xr),Vs=!1,Ya=1,_n=0,Vn=0,wo=0,Ra=0,Xn=null,sn=0,$n=!1,Ka=5126,qn=0,Eo=0,Ja=0,kr(ha)?(Vs=!0,Xn=gt.createStream(34962,ha),Ka=Xn.dtype):(Xn=gt.getBuffer(ha),Xn?Ka=Xn.dtype:"constant"in ha?(Ya=2,typeof ha.constant=="number"?(_n=ha.constant,Vn=wo=Ra=0):(_n=ha.constant.length>0?ha.constant[0]:0,Vn=ha.constant.length>1?ha.constant[1]:0,wo=ha.constant.length>2?ha.constant[2]:0,Ra=ha.constant.length>3?ha.constant[3]:0)):(kr(ha.buffer)?Xn=gt.createStream(34962,ha.buffer):Xn=gt.getBuffer(ha.buffer),Ka="type"in ha?Di[ha.type]:Xn.dtype,$n=!!ha.normalized,sn=ha.size|0,qn=ha.offset|0,Eo=ha.stride|0,Ja=ha.divisor|0)),lo=Me.state,Me.state=Ya,eo=Me.x,Me.x=_n,sa=Me.y,Me.y=Vn,es=Me.z,Me.z=wo,Na=Me.w,Me.w=Ra,en=Me.buffer,Me.buffer=Xn,Pa=Me.size,Me.size=sn,to=Me.normalized,Me.normalized=$n,yo=Me.type,Me.type=Ka,Jo=Me.offset,Me.offset=qn,Ao=Me.stride,Me.stride=Eo,Dn=Me.divisor,Me.divisor=Ja,_a=x.call(this,xe,xn,Xr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,on=0,Oo=0,ko=0,kr(_a)?(Ws=!0,To=gt.createStream(34962,_a),qa=To.dtype):(To=gt.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(kr(_a.buffer)?To=gt.createStream(34962,_a.buffer):To=gt.getBuffer(_a.buffer),qa="type"in _a?Di[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,on=_a.offset|0,Oo=_a.stride|0,ko=_a.divisor|0)),oo=oe.state,oe.state=Ca,za=oe.x,oe.x=Es,ea=oe.y,oe.y=Ts,rs=oe.z,oe.z=Ho,$s=oe.w,oe.w=Wa,us=oe.buffer,oe.buffer=To,Ds=oe.size,oe.size=ts,fl=oe.normalized,oe.normalized=Wo,as=oe.type,oe.type=qa,Ma=oe.offset,oe.offset=on,Qs=oe.stride,oe.stride=Oo,ho=oe.divisor,oe.divisor=ko,gs=A.call(this,xe,xn,Xr),Vo=!1,Do=1,Lo=0,xs=0,ks=0,Ea=0,Jn=null,Bo=0,rl=!1,Gs=5126,bs=0,zs=0,$o=0,kr(gs)?(Vo=!0,Jn=gt.createStream(34962,gs),Gs=Jn.dtype):(Jn=gt.getBuffer(gs),Jn?Gs=Jn.dtype:"constant"in gs?(Do=2,typeof gs.constant=="number"?(Lo=gs.constant,xs=ks=Ea=0):(Lo=gs.constant.length>0?gs.constant[0]:0,xs=gs.constant.length>1?gs.constant[1]:0,ks=gs.constant.length>2?gs.constant[2]:0,Ea=gs.constant.length>3?gs.constant[3]:0)):(kr(gs.buffer)?Jn=gt.createStream(34962,gs.buffer):Jn=gt.getBuffer(gs.buffer),Gs="type"in gs?Di[gs.type]:Jn.dtype,rl=!!gs.normalized,Bo=gs.size|0,bs=gs.offset|0,zs=gs.stride|0,$o=gs.divisor|0)),Aa=Ne.state,Ne.state=Do,os=Ne.x,Ne.x=Lo,_l=Ne.y,Ne.y=xs,Ss=Ne.z,Ne.z=ks,po=Ne.w,Ne.w=Ea,go=Ne.buffer,Ne.buffer=Jn,ss=Ne.size,Ne.size=Bo,qo=Ne.normalized,Ne.normalized=rl,zo=Ne.type,Ne.type=Gs,io=Ne.offset,Ne.offset=bs,Io=Ne.stride,Ne.stride=zs,Da=Ne.divisor,Ne.divisor=$o,vs=S.call(this,xe,xn,Xr),fs=!1,cl=1,el=0,Hs=0,Ro=0,tl=0,Fs=null,hl=0,Fa=!1,Ms=5126,jo=0,Rs=0,Is=0,kr(vs)?(fs=!0,Fs=gt.createStream(34962,vs),Ms=Fs.dtype):(Fs=gt.getBuffer(vs),Fs?Ms=Fs.dtype:"constant"in vs?(cl=2,typeof vs.constant=="number"?(el=vs.constant,Hs=Ro=tl=0):(el=vs.constant.length>0?vs.constant[0]:0,Hs=vs.constant.length>1?vs.constant[1]:0,Ro=vs.constant.length>2?vs.constant[2]:0,tl=vs.constant.length>3?vs.constant[3]:0)):(kr(vs.buffer)?Fs=gt.createStream(34962,vs.buffer):Fs=gt.getBuffer(vs.buffer),Ms="type"in vs?Di[vs.type]:Fs.dtype,Fa=!!vs.normalized,hl=vs.size|0,jo=vs.offset|0,Rs=vs.stride|0,Is=vs.divisor|0)),Os=vt.state,vt.state=cl,St=vt.x,vt.x=el,Ut=vt.y,vt.y=Hs,xr=vt.z,vt.z=Ro,dr=vt.w,vt.w=tl,Dr=vt.buffer,vt.buffer=Fs,yi=vt.size,vt.size=hl,Ti=vt.normalized,vt.normalized=Fa,ki=vt.type,vt.type=Ms,Ki=vt.offset,vt.offset=jo,Fn=vt.stride,vt.stride=Rs,Li=vt.divisor,vt.divisor=Is,hi=b.call(this,xe,xn,Xr),Ci=!1,Si=1,Gn=0,ta=0,ya=0,ia=0,pa=null,va=0,zn=!1,is=5126,Cs=0,Ks=0,dl=0,kr(hi)?(Ci=!0,pa=gt.createStream(34962,hi),is=pa.dtype):(pa=gt.getBuffer(hi),pa?is=pa.dtype:"constant"in hi?(Si=2,typeof hi.constant=="number"?(Gn=hi.constant,ta=ya=ia=0):(Gn=hi.constant.length>0?hi.constant[0]:0,ta=hi.constant.length>1?hi.constant[1]:0,ya=hi.constant.length>2?hi.constant[2]:0,ia=hi.constant.length>3?hi.constant[3]:0)):(kr(hi.buffer)?pa=gt.createStream(34962,hi.buffer):pa=gt.getBuffer(hi.buffer),is="type"in hi?Di[hi.type]:pa.dtype,zn=!!hi.normalized,va=hi.size|0,Cs=hi.offset|0,Ks=hi.stride|0,dl=hi.divisor|0)),xl=lt.state,lt.state=Si,Bl=lt.x,lt.x=Gn,bl=lt.y,lt.y=ta,eu=lt.z,lt.z=ya,Zl=lt.w,lt.w=ia,Vl=lt.buffer,lt.buffer=pa,ja=lt.size,lt.size=va,ns=lt.normalized,lt.normalized=zn,Js=lt.type,lt.type=is,cs=lt.offset,lt.offset=Cs,sl=lt.stride,lt.stride=Ks,ll=lt.divisor,lt.divisor=dl,nl=f.call(this,xe,xn,Xr),zl=!1,Ml=1,Rl=0,Al=0,Ll=0,ms=0,Bs=null,Xl=0,Gl=!1,Nl=5126,ue=0,w=0,q=0,kr(nl)?(zl=!0,Bs=gt.createStream(34962,nl),Nl=Bs.dtype):(Bs=gt.getBuffer(nl),Bs?Nl=Bs.dtype:"constant"in nl?(Ml=2,typeof nl.constant=="number"?(Rl=nl.constant,Al=Ll=ms=0):(Rl=nl.constant.length>0?nl.constant[0]:0,Al=nl.constant.length>1?nl.constant[1]:0,Ll=nl.constant.length>2?nl.constant[2]:0,ms=nl.constant.length>3?nl.constant[3]:0)):(kr(nl.buffer)?Bs=gt.createStream(34962,nl.buffer):Bs=gt.getBuffer(nl.buffer),Nl="type"in nl?Di[nl.type]:Bs.dtype,Gl=!!nl.normalized,Xl=nl.size|0,ue=nl.offset|0,w=nl.stride|0,q=nl.divisor|0)),Q=We.state,We.state=Ml,ee=We.x,We.x=Rl,fe=We.y,We.y=Al,Ue=We.z,We.z=Ll,at=We.w,We.w=ms,yt=We.buffer,We.buffer=Bs,Rt=We.size,We.size=Xl,Qt=We.normalized,We.normalized=Gl,rr=We.type,We.type=Nl,Mr=We.offset,We.offset=ue,Ur=We.stride,We.stride=w,he=We.divisor,We.divisor=q,Ae=h.call(this,xe,xn,Xr),qe=!1,Ge=1,ft=0,ot=0,mt=0,Gt=0,er=null,sr=0,wr=!1,Ir=5126,ri=0,si=0,Mi=0,kr(Ae)?(qe=!0,er=gt.createStream(34962,Ae),Ir=er.dtype):(er=gt.getBuffer(Ae),er?Ir=er.dtype:"constant"in Ae?(Ge=2,typeof Ae.constant=="number"?(ft=Ae.constant,ot=mt=Gt=0):(ft=Ae.constant.length>0?Ae.constant[0]:0,ot=Ae.constant.length>1?Ae.constant[1]:0,mt=Ae.constant.length>2?Ae.constant[2]:0,Gt=Ae.constant.length>3?Ae.constant[3]:0)):(kr(Ae.buffer)?er=gt.createStream(34962,Ae.buffer):er=gt.getBuffer(Ae.buffer),Ir="type"in Ae?Di[Ae.type]:er.dtype,wr=!!Ae.normalized,sr=Ae.size|0,ri=Ae.offset|0,si=Ae.stride|0,Mi=Ae.divisor|0)),cn=Ve.state,Ve.state=Ge,Zn=Ve.x,Ve.x=ft,Yn=Ve.y,Ve.y=ot,Ua=Ve.z,Ve.z=mt,Fo=Ve.w,Ve.w=Gt,vl=Ve.buffer,Ve.buffer=er,Us=Ve.size,Ve.size=sr,ml=Ve.normalized,Ve.normalized=wr,au=Ve.type,Ve.type=Ir,Sl=Ve.offset,Ve.offset=ri,Yl=Ve.stride,Ve.stride=si,ql=Ve.divisor,Ve.divisor=Mi,ou=u.call(this,xe,xn,Xr),Pu=!1,nu=1,ru=0,Hu=0,$u=0,Ku=0,Wu=null,ju=0,sf=!1,_f=5126,Qu=0,ef=0,Z=0,kr(ou)?(Pu=!0,Wu=gt.createStream(34962,ou),_f=Wu.dtype):(Wu=gt.getBuffer(ou),Wu?_f=Wu.dtype:"constant"in ou?(nu=2,typeof ou.constant=="number"?(ru=ou.constant,Hu=$u=Ku=0):(ru=ou.constant.length>0?ou.constant[0]:0,Hu=ou.constant.length>1?ou.constant[1]:0,$u=ou.constant.length>2?ou.constant[2]:0,Ku=ou.constant.length>3?ou.constant[3]:0)):(kr(ou.buffer)?Wu=gt.createStream(34962,ou.buffer):Wu=gt.getBuffer(ou.buffer),_f="type"in ou?Di[ou.type]:Wu.dtype,sf=!!ou.normalized,ju=ou.size|0,Qu=ou.offset|0,ef=ou.stride|0,Z=ou.divisor|0)),le=et.state,et.state=nu,Le=et.x,et.x=ru,Ye=et.y,et.y=Hu,nt=et.z,et.z=$u,ut=et.w,et.w=Ku,Ht=et.buffer,et.buffer=Wu,wt=et.size,et.size=ju,lr=et.normalized,et.normalized=sf,Cr=et.type,et.type=_f,zr=et.offset,et.offset=Qu,ui=et.stride,et.stride=ef,$r=et.divisor,et.divisor=Z,Oi=p.call(this,xe,xn,Xr),un=!1,pi=1,Pi=0,ji=0,pn=0,an=0,bi=null,xo=0,no=!1,Xo=5126,js=0,El=0,Pl=0,kr(Oi)?(un=!0,bi=gt.createStream(34962,Oi),Xo=bi.dtype):(bi=gt.getBuffer(Oi),bi?Xo=bi.dtype:"constant"in Oi?(pi=2,typeof Oi.constant=="number"?(Pi=Oi.constant,ji=pn=an=0):(Pi=Oi.constant.length>0?Oi.constant[0]:0,ji=Oi.constant.length>1?Oi.constant[1]:0,pn=Oi.constant.length>2?Oi.constant[2]:0,an=Oi.constant.length>3?Oi.constant[3]:0)):(kr(Oi.buffer)?bi=gt.createStream(34962,Oi.buffer):bi=gt.getBuffer(Oi.buffer),Xo="type"in Oi?Di[Oi.type]:bi.dtype,no=!!Oi.normalized,xo=Oi.size|0,js=Oi.offset|0,El=Oi.stride|0,Pl=Oi.divisor|0)),pu=tt.state,tt.state=pi,Il=tt.x,tt.x=Pi,fu=tt.y,tt.y=ji,Xu=tt.z,tt.z=pn,Vu=tt.w,tt.w=an,tf=tt.buffer,tt.buffer=bi,ds=tt.size,tt.size=xo,Wl=tt.normalized,tt.normalized=no,Au=tt.type,tt.type=Xo,Tu=tt.offset,tt.offset=js,lf=tt.stride,tt.stride=El,hf=tt.divisor,tt.divisor=Pl,Sf=xt.vert,xt.vert=Lt,pf=xt.frag,xt.frag=jt,De.dirty=!0,xi(xe,xn,Xr),xe.viewportWidth=wi,xe.viewportHeight=$i,ti[0]=ni,ti[1]=Xi,ti[2]=aa,ti[3]=Mn,Vr[0]=Un,Vr[1]=Ga,Vr[2]=ma,Vr[3]=oa,ze.blend_enable=ka,ln[0]=so,ln[1]=Kr,ln[2]=Ia,ln[3]=Yo,ze.depth_enable=fa,Ei[0]=$a,Ei[1]=fo,Ei[2]=mn,Ei[3]=ra,ze.scissor_enable=wa,ze.stencil_enable=ws,Co&&(r.cpuTime+=performance.now()-Po),Ps&&st.destroyStream(gn),ht.elements=Ha,ht.offset=ao,ht.count=Ko,ht.primitive=Qo,cr[je]=Hi,cr[bt]=Sa,cr[Ot]=vn,cr[it]=la,cr[Ke]=As,cr[zt]=co,cr[Mt]=No,cr[kt]=Go,cr[$e]=qs,cr[Re]=Ba,Vs&>.destroyStream(Xn),Me.state=lo,Me.x=eo,Me.y=sa,Me.z=es,Me.w=Na,Me.buffer=en,Me.size=Pa,Me.normalized=to,Me.type=yo,Me.offset=Jo,Me.stride=Ao,Me.divisor=Dn,Ws&>.destroyStream(To),oe.state=oo,oe.x=za,oe.y=ea,oe.z=rs,oe.w=$s,oe.buffer=us,oe.size=Ds,oe.normalized=fl,oe.type=as,oe.offset=Ma,oe.stride=Qs,oe.divisor=ho,Vo&>.destroyStream(Jn),Ne.state=Aa,Ne.x=os,Ne.y=_l,Ne.z=Ss,Ne.w=po,Ne.buffer=go,Ne.size=ss,Ne.normalized=qo,Ne.type=zo,Ne.offset=io,Ne.stride=Io,Ne.divisor=Da,fs&>.destroyStream(Fs),vt.state=Os,vt.x=St,vt.y=Ut,vt.z=xr,vt.w=dr,vt.buffer=Dr,vt.size=yi,vt.normalized=Ti,vt.type=ki,vt.offset=Ki,vt.stride=Fn,vt.divisor=Li,Ci&>.destroyStream(pa),lt.state=xl,lt.x=Bl,lt.y=bl,lt.z=eu,lt.w=Zl,lt.buffer=Vl,lt.size=ja,lt.normalized=ns,lt.type=Js,lt.offset=cs,lt.stride=sl,lt.divisor=ll,zl&>.destroyStream(Bs),We.state=Q,We.x=ee,We.y=fe,We.z=Ue,We.w=at,We.buffer=yt,We.size=Rt,We.normalized=Qt,We.type=rr,We.offset=Mr,We.stride=Ur,We.divisor=he,qe&>.destroyStream(er),Ve.state=cn,Ve.x=Zn,Ve.y=Yn,Ve.z=Ua,Ve.w=Fo,Ve.buffer=vl,Ve.size=Us,Ve.normalized=ml,Ve.type=au,Ve.offset=Sl,Ve.stride=Yl,Ve.divisor=ql,Pu&>.destroyStream(Wu),et.state=le,et.x=Le,et.y=Ye,et.z=nt,et.w=ut,et.buffer=Ht,et.size=wt,et.normalized=lr,et.type=Cr,et.offset=zr,et.stride=ui,et.divisor=$r,un&>.destroyStream(bi),tt.state=pu,tt.x=Il,tt.y=fu,tt.z=Xu,tt.w=Vu,tt.buffer=tf,tt.size=ds,tt.normalized=Wl,tt.type=Au,tt.offset=Tu,tt.stride=lf,tt.divisor=hf,xt.vert=Sf,xt.frag=pf,De.dirty=!0},batch:function(xn,xi){var Xr,dt,$t,fr,gr,Zr,wi;if(Xr=ii.angle_instanced_arrays,dt=Er.next,dt!==Er.cur&&(dt?Pe.bindFramebuffer(36160,dt.framebuffer):Pe.bindFramebuffer(36160,null),Er.cur=dt),De.dirty){var $i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao;$i=ze.dither,$i!==De.dither&&($i?Pe.enable(3024):Pe.disable(3024),De.dither=$i),ni=Bi[0],Xi=Bi[1],(ni!==Ri[0]||Xi!==Ri[1])&&(Pe.blendEquationSeparate(ni,Xi),Ri[0]=ni,Ri[1]=Xi),aa=ze.depth_func,aa!==De.depth_func&&(Pe.depthFunc(aa),De.depth_func=aa),Mn=qr[0],Un=qr[1],(Mn!==_i[0]||Un!==_i[1])&&(Pe.depthRange(Mn,Un),_i[0]=Mn,_i[1]=Un),Ga=ze.depth_mask,Ga!==De.depth_mask&&(Pe.depthMask(Ga),De.depth_mask=Ga),ma=zi[0],oa=zi[1],ka=zi[2],so=zi[3],(ma!==Dt[0]||oa!==Dt[1]||ka!==Dt[2]||so!==Dt[3])&&(Pe.colorMask(ma,oa,ka,so),Dt[0]=ma,Dt[1]=oa,Dt[2]=ka,Dt[3]=so),Kr=ze.cull_enable,Kr!==De.cull_enable&&(Kr?Pe.enable(2884):Pe.disable(2884),De.cull_enable=Kr),Ia=ze.cull_face,Ia!==De.cull_face&&(Pe.cullFace(Ia),De.cull_face=Ia),Yo=ze.frontFace,Yo!==De.frontFace&&(Pe.frontFace(Yo),De.frontFace=Yo),fa=ze.lineWidth,fa!==De.lineWidth&&(Pe.lineWidth(fa),De.lineWidth=fa),kn=ze.polygonOffset_enable,kn!==De.polygonOffset_enable&&(kn?Pe.enable(32823):Pe.disable(32823),De.polygonOffset_enable=kn),Ta=_t[0],ys=_t[1],(Ta!==qt[0]||ys!==qt[1])&&(Pe.polygonOffset(Ta,ys),qt[0]=Ta,qt[1]=ys),uo=ze.sample_alpha,uo!==De.sample_alpha&&(uo?Pe.enable(32926):Pe.disable(32926),De.sample_alpha=uo),ls=ze.sample_enable,ls!==De.sample_enable&&(ls?Pe.enable(32928):Pe.disable(32928),De.sample_enable=ls),$a=Nt[0],fo=Nt[1],($a!==mr[0]||fo!==mr[1])&&(Pe.sampleCoverage($a,fo),mr[0]=$a,mr[1]=fo),mn=ze.stencil_mask,mn!==De.stencil_mask&&(Pe.stencilMask(mn),De.stencil_mask=mn),ra=Lr[0],wa=Lr[1],ws=Lr[2],(ra!==Nr[0]||wa!==Nr[1]||ws!==Nr[2])&&(Pe.stencilFunc(ra,wa,ws),Nr[0]=ra,Nr[1]=wa,Nr[2]=ws),Co=Fr[0],Po=Fr[1],Wi=Fr[2],gn=Fr[3],(Co!==Hr[0]||Po!==Hr[1]||Wi!==Hr[2]||gn!==Hr[3])&&(Pe.stencilOpSeparate(Co,Po,Wi,gn),Hr[0]=Co,Hr[1]=Po,Hr[2]=Wi,Hr[3]=gn),Ps=Gr[0],Ha=Gr[1],Sn=Gr[2],ao=Gr[3],(Ps!==mi[0]||Ha!==mi[1]||Sn!==mi[2]||ao!==mi[3])&&(Pe.stencilOpSeparate(Ps,Ha,Sn,ao),mi[0]=Ps,mi[1]=Ha,mi[2]=Sn,mi[3]=ao)}Pe.blendColor(0,0,0,1),Ai[0]=0,Ai[1]=0,Ai[2]=0,Ai[3]=1,or?Pe.enable(3042):Pe.disable(3042),De.blend_enable=or,Pe.blendFuncSeparate(770,771,773,1),hn[0]=770,hn[1]=771,hn[2]=773,hn[3]=1,yr?Pe.enable(2929):Pe.disable(2929),De.depth_enable=yr,vr?Pe.enable(3089):Pe.disable(3089),De.scissor_enable=vr,Vt?Pe.enable(2960):Pe.disable(2960),De.stencil_enable=Vt,$t=De.profile,$t&&(fr=performance.now(),r.count+=xi),Pe.useProgram(s.program),gr=ii.angle_instanced_arrays;var Oa;for(br.setVAO(null),Pe.uniform1i(P.location,!1),Pe.uniform1i(G.location,j.bind()),Oa=ht.instances,Zr=0;Zr0?mo.constant[0]:0,Ys=mo.constant.length>1?mo.constant[1]:0,qs=mo.constant.length>2?mo.constant[2]:0,Ns=mo.constant.length>3?mo.constant[3]:0)):(kr(mo.buffer)?Ba=gt.createStream(34962,mo.buffer):Ba=gt.getBuffer(mo.buffer),Ya="type"in mo?Di[mo.type]:Ba.dtype,Vs=!!mo.normalized,ha=mo.size|0,_n=mo.offset|0,Vn=mo.stride|0,wo=mo.divisor|0)),Ra=l.location,Xn=pr[Ra],jn===1?(Xn.buffer||Pe.enableVertexAttribArray(Ra),sn=ha||4,(Xn.type!==Ya||Xn.size!==sn||Xn.buffer!==Ba||Xn.normalized!==Vs||Xn.offset!==_n||Xn.stride!==Vn)&&(Pe.bindBuffer(34962,Ba.buffer),Pe.vertexAttribPointer(Ra,sn,Ya,Vs,Vn,_n),Xn.type=Ya,Xn.size=sn,Xn.buffer=Ba,Xn.normalized=Vs,Xn.offset=_n,Xn.stride=Vn),Xn.divisor!==wo&&(gr.vertexAttribDivisorANGLE(Ra,wo),Xn.divisor=wo)):(Xn.buffer&&(Pe.disableVertexAttribArray(Ra),Xn.buffer=null),(Xn.x!==Go||Xn.y!==Ys||Xn.z!==qs||Xn.w!==Ns)&&(Pe.vertexAttrib4f(Ra,Go,Ys,qs,Ns),Xn.x=Go,Xn.y=Ys,Xn.z=qs,Xn.w=Ns)),$n=f.call(this,xe,wi,Zr),Ka=!1,qn=1,Eo=0,Ja=0,lo=0,eo=0,sa=null,es=0,Na=!1,en=5126,Pa=0,to=0,yo=0,kr($n)?(Ka=!0,sa=gt.createStream(34962,$n),en=sa.dtype):(sa=gt.getBuffer($n),sa?en=sa.dtype:"constant"in $n?(qn=2,typeof $n.constant=="number"?(Eo=$n.constant,Ja=lo=eo=0):(Eo=$n.constant.length>0?$n.constant[0]:0,Ja=$n.constant.length>1?$n.constant[1]:0,lo=$n.constant.length>2?$n.constant[2]:0,eo=$n.constant.length>3?$n.constant[3]:0)):(kr($n.buffer)?sa=gt.createStream(34962,$n.buffer):sa=gt.getBuffer($n.buffer),en="type"in $n?Di[$n.type]:sa.dtype,Na=!!$n.normalized,es=$n.size|0,Pa=$n.offset|0,to=$n.stride|0,yo=$n.divisor|0)),Jo=c.location,Ao=pr[Jo],qn===1?(Ao.buffer||Pe.enableVertexAttribArray(Jo),Dn=es||1,(Ao.type!==en||Ao.size!==Dn||Ao.buffer!==sa||Ao.normalized!==Na||Ao.offset!==Pa||Ao.stride!==to)&&(Pe.bindBuffer(34962,sa.buffer),Pe.vertexAttribPointer(Jo,Dn,en,Na,to,Pa),Ao.type=en,Ao.size=Dn,Ao.buffer=sa,Ao.normalized=Na,Ao.offset=Pa,Ao.stride=to),Ao.divisor!==yo&&(gr.vertexAttribDivisorANGLE(Jo,yo),Ao.divisor=yo)):(Ao.buffer&&(Pe.disableVertexAttribArray(Jo),Ao.buffer=null),(Ao.x!==Eo||Ao.y!==Ja||Ao.z!==lo||Ao.w!==eo)&&(Pe.vertexAttrib4f(Jo,Eo,Ja,lo,eo),Ao.x=Eo,Ao.y=Ja,Ao.z=lo,Ao.w=eo)),_a=h.call(this,xe,wi,Zr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,on=0,Oo=0,ko=0,kr(_a)?(Ws=!0,To=gt.createStream(34962,_a),qa=To.dtype):(To=gt.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(kr(_a.buffer)?To=gt.createStream(34962,_a.buffer):To=gt.getBuffer(_a.buffer),qa="type"in _a?Di[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,on=_a.offset|0,Oo=_a.stride|0,ko=_a.divisor|0)),oo=d.location,za=pr[oo],Ca===1?(za.buffer||Pe.enableVertexAttribArray(oo),ea=ts||4,(za.type!==qa||za.size!==ea||za.buffer!==To||za.normalized!==Wo||za.offset!==on||za.stride!==Oo)&&(Pe.bindBuffer(34962,To.buffer),Pe.vertexAttribPointer(oo,ea,qa,Wo,Oo,on),za.type=qa,za.size=ea,za.buffer=To,za.normalized=Wo,za.offset=on,za.stride=Oo),za.divisor!==ko&&(gr.vertexAttribDivisorANGLE(oo,ko),za.divisor=ko)):(za.buffer&&(Pe.disableVertexAttribArray(oo),za.buffer=null),(za.x!==Es||za.y!==Ts||za.z!==Ho||za.w!==Wa)&&(Pe.vertexAttrib4f(oo,Es,Ts,Ho,Wa),za.x=Es,za.y=Ts,za.z=Ho,za.w=Wa)),rs=p.call(this,xe,wi,Zr),$s=!1,us=1,Ds=0,fl=0,as=0,Ma=0,Qs=null,ho=0,gs=!1,Vo=5126,Do=0,Lo=0,xs=0,kr(rs)?($s=!0,Qs=gt.createStream(34962,rs),Vo=Qs.dtype):(Qs=gt.getBuffer(rs),Qs?Vo=Qs.dtype:"constant"in rs?(us=2,typeof rs.constant=="number"?(Ds=rs.constant,fl=as=Ma=0):(Ds=rs.constant.length>0?rs.constant[0]:0,fl=rs.constant.length>1?rs.constant[1]:0,as=rs.constant.length>2?rs.constant[2]:0,Ma=rs.constant.length>3?rs.constant[3]:0)):(kr(rs.buffer)?Qs=gt.createStream(34962,rs.buffer):Qs=gt.getBuffer(rs.buffer),Vo="type"in rs?Di[rs.type]:Qs.dtype,gs=!!rs.normalized,ho=rs.size|0,Do=rs.offset|0,Lo=rs.stride|0,xs=rs.divisor|0)),ks=y.location,Ea=pr[ks],us===1?(Ea.buffer||Pe.enableVertexAttribArray(ks),Jn=ho||1,(Ea.type!==Vo||Ea.size!==Jn||Ea.buffer!==Qs||Ea.normalized!==gs||Ea.offset!==Do||Ea.stride!==Lo)&&(Pe.bindBuffer(34962,Qs.buffer),Pe.vertexAttribPointer(ks,Jn,Vo,gs,Lo,Do),Ea.type=Vo,Ea.size=Jn,Ea.buffer=Qs,Ea.normalized=gs,Ea.offset=Do,Ea.stride=Lo),Ea.divisor!==xs&&(gr.vertexAttribDivisorANGLE(ks,xs),Ea.divisor=xs)):(Ea.buffer&&(Pe.disableVertexAttribArray(ks),Ea.buffer=null),(Ea.x!==Ds||Ea.y!==fl||Ea.z!==as||Ea.w!==Ma)&&(Pe.vertexAttrib4f(ks,Ds,fl,as,Ma),Ea.x=Ds,Ea.y=fl,Ea.z=as,Ea.w=Ma)),Bo=b.call(this,xe,wi,Zr),rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,kr(Bo)?(rl=!0,os=gt.createStream(34962,Bo),po=os.dtype):(os=gt.getBuffer(Bo),os?po=os.dtype:"constant"in Bo?(Gs=2,typeof Bo.constant=="number"?(bs=Bo.constant,zs=$o=Aa=0):(bs=Bo.constant.length>0?Bo.constant[0]:0,zs=Bo.constant.length>1?Bo.constant[1]:0,$o=Bo.constant.length>2?Bo.constant[2]:0,Aa=Bo.constant.length>3?Bo.constant[3]:0)):(kr(Bo.buffer)?os=gt.createStream(34962,Bo.buffer):os=gt.getBuffer(Bo.buffer),po="type"in Bo?Di[Bo.type]:os.dtype,Ss=!!Bo.normalized,_l=Bo.size|0,go=Bo.offset|0,ss=Bo.stride|0,qo=Bo.divisor|0)),zo=v.location,io=pr[zo],Gs===1?(io.buffer||Pe.enableVertexAttribArray(zo),Io=_l||1,(io.type!==po||io.size!==Io||io.buffer!==os||io.normalized!==Ss||io.offset!==go||io.stride!==ss)&&(Pe.bindBuffer(34962,os.buffer),Pe.vertexAttribPointer(zo,Io,po,Ss,ss,go),io.type=po,io.size=Io,io.buffer=os,io.normalized=Ss,io.offset=go,io.stride=ss),io.divisor!==qo&&(gr.vertexAttribDivisorANGLE(zo,qo),io.divisor=qo)):(io.buffer&&(Pe.disableVertexAttribArray(zo),io.buffer=null),(io.x!==bs||io.y!==zs||io.z!==$o||io.w!==Aa)&&(Pe.vertexAttrib4f(zo,bs,zs,$o,Aa),io.x=bs,io.y=zs,io.z=$o,io.w=Aa)),Da=C.call(this,xe,wi,Zr),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,kr(Da)?(vs=!0,tl=gt.createStream(34962,Da),Fa=tl.dtype):(tl=gt.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(kr(Da.buffer)?tl=gt.createStream(34962,Da.buffer):tl=gt.getBuffer(Da.buffer),Fa="type"in Da?Di[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=E.location,Os=pr[Is],fs===1?(Os.buffer||Pe.enableVertexAttribArray(Is),St=Fs||1,(Os.type!==Fa||Os.size!==St||Os.buffer!==tl||Os.normalized!==hl||Os.offset!==Ms||Os.stride!==jo)&&(Pe.bindBuffer(34962,tl.buffer),Pe.vertexAttribPointer(Is,St,Fa,hl,jo,Ms),Os.type=Fa,Os.size=St,Os.buffer=tl,Os.normalized=hl,Os.offset=Ms,Os.stride=jo),Os.divisor!==Rs&&(gr.vertexAttribDivisorANGLE(Is,Rs),Os.divisor=Rs)):(Os.buffer&&(Pe.disableVertexAttribArray(Is),Os.buffer=null),(Os.x!==cl||Os.y!==el||Os.z!==Hs||Os.w!==Ro)&&(Pe.vertexAttrib4f(Is,cl,el,Hs,Ro),Os.x=cl,Os.y=el,Os.z=Hs,Os.w=Ro)),Ut=A.call(this,xe,wi,Zr),xr=!1,dr=1,Dr=0,yi=0,Ti=0,ki=0,Ki=null,Fn=0,Li=!1,hi=5126,Ci=0,Si=0,Gn=0,kr(Ut)?(xr=!0,Ki=gt.createStream(34962,Ut),hi=Ki.dtype):(Ki=gt.getBuffer(Ut),Ki?hi=Ki.dtype:"constant"in Ut?(dr=2,typeof Ut.constant=="number"?(Dr=Ut.constant,yi=Ti=ki=0):(Dr=Ut.constant.length>0?Ut.constant[0]:0,yi=Ut.constant.length>1?Ut.constant[1]:0,Ti=Ut.constant.length>2?Ut.constant[2]:0,ki=Ut.constant.length>3?Ut.constant[3]:0)):(kr(Ut.buffer)?Ki=gt.createStream(34962,Ut.buffer):Ki=gt.getBuffer(Ut.buffer),hi="type"in Ut?Di[Ut.type]:Ki.dtype,Li=!!Ut.normalized,Fn=Ut.size|0,Ci=Ut.offset|0,Si=Ut.stride|0,Gn=Ut.divisor|0)),ta=L.location,ya=pr[ta],dr===1?(ya.buffer||Pe.enableVertexAttribArray(ta),ia=Fn||1,(ya.type!==hi||ya.size!==ia||ya.buffer!==Ki||ya.normalized!==Li||ya.offset!==Ci||ya.stride!==Si)&&(Pe.bindBuffer(34962,Ki.buffer),Pe.vertexAttribPointer(ta,ia,hi,Li,Si,Ci),ya.type=hi,ya.size=ia,ya.buffer=Ki,ya.normalized=Li,ya.offset=Ci,ya.stride=Si),ya.divisor!==Gn&&(gr.vertexAttribDivisorANGLE(ta,Gn),ya.divisor=Gn)):(ya.buffer&&(Pe.disableVertexAttribArray(ta),ya.buffer=null),(ya.x!==Dr||ya.y!==yi||ya.z!==Ti||ya.w!==ki)&&(Pe.vertexAttrib4f(ta,Dr,yi,Ti,ki),ya.x=Dr,ya.y=yi,ya.z=Ti,ya.w=ki)),pa=x.call(this,xe,wi,Zr),va=!1,zn=1,is=0,Cs=0,Ks=0,dl=0,xl=null,Bl=0,bl=!1,eu=5126,Zl=0,Vl=0,ja=0,kr(pa)?(va=!0,xl=gt.createStream(34962,pa),eu=xl.dtype):(xl=gt.getBuffer(pa),xl?eu=xl.dtype:"constant"in pa?(zn=2,typeof pa.constant=="number"?(is=pa.constant,Cs=Ks=dl=0):(is=pa.constant.length>0?pa.constant[0]:0,Cs=pa.constant.length>1?pa.constant[1]:0,Ks=pa.constant.length>2?pa.constant[2]:0,dl=pa.constant.length>3?pa.constant[3]:0)):(kr(pa.buffer)?xl=gt.createStream(34962,pa.buffer):xl=gt.getBuffer(pa.buffer),eu="type"in pa?Di[pa.type]:xl.dtype,bl=!!pa.normalized,Bl=pa.size|0,Zl=pa.offset|0,Vl=pa.stride|0,ja=pa.divisor|0)),ns=k.location,Js=pr[ns],zn===1?(Js.buffer||Pe.enableVertexAttribArray(ns),cs=Bl||1,(Js.type!==eu||Js.size!==cs||Js.buffer!==xl||Js.normalized!==bl||Js.offset!==Zl||Js.stride!==Vl)&&(Pe.bindBuffer(34962,xl.buffer),Pe.vertexAttribPointer(ns,cs,eu,bl,Vl,Zl),Js.type=eu,Js.size=cs,Js.buffer=xl,Js.normalized=bl,Js.offset=Zl,Js.stride=Vl),Js.divisor!==ja&&(gr.vertexAttribDivisorANGLE(ns,ja),Js.divisor=ja)):(Js.buffer&&(Pe.disableVertexAttribArray(ns),Js.buffer=null),(Js.x!==is||Js.y!==Cs||Js.z!==Ks||Js.w!==dl)&&(Pe.vertexAttrib4f(ns,is,Cs,Ks,dl),Js.x=is,Js.y=Cs,Js.z=Ks,Js.w=dl)),sl=S.call(this,xe,wi,Zr),ll=!1,nl=1,zl=0,Ml=0,Rl=0,Al=0,Ll=null,ms=0,Bs=!1,Xl=5126,Gl=0,Nl=0,ue=0,kr(sl)?(ll=!0,Ll=gt.createStream(34962,sl),Xl=Ll.dtype):(Ll=gt.getBuffer(sl),Ll?Xl=Ll.dtype:"constant"in sl?(nl=2,typeof sl.constant=="number"?(zl=sl.constant,Ml=Rl=Al=0):(zl=sl.constant.length>0?sl.constant[0]:0,Ml=sl.constant.length>1?sl.constant[1]:0,Rl=sl.constant.length>2?sl.constant[2]:0,Al=sl.constant.length>3?sl.constant[3]:0)):(kr(sl.buffer)?Ll=gt.createStream(34962,sl.buffer):Ll=gt.getBuffer(sl.buffer),Xl="type"in sl?Di[sl.type]:Ll.dtype,Bs=!!sl.normalized,ms=sl.size|0,Gl=sl.offset|0,Nl=sl.stride|0,ue=sl.divisor|0)),w=m.location,q=pr[w],nl===1?(q.buffer||Pe.enableVertexAttribArray(w),Q=ms||1,(q.type!==Xl||q.size!==Q||q.buffer!==Ll||q.normalized!==Bs||q.offset!==Gl||q.stride!==Nl)&&(Pe.bindBuffer(34962,Ll.buffer),Pe.vertexAttribPointer(w,Q,Xl,Bs,Nl,Gl),q.type=Xl,q.size=Q,q.buffer=Ll,q.normalized=Bs,q.offset=Gl,q.stride=Nl),q.divisor!==ue&&(gr.vertexAttribDivisorANGLE(w,ue),q.divisor=ue)):(q.buffer&&(Pe.disableVertexAttribArray(w),q.buffer=null),(q.x!==zl||q.y!==Ml||q.z!==Rl||q.w!==Al)&&(Pe.vertexAttrib4f(w,zl,Ml,Rl,Al),q.x=zl,q.y=Ml,q.z=Rl,q.w=Al)),ee=wi.markerTexture,ee&&ee._reglType==="framebuffer"&&(ee=ee.color[0]),fe=ee._texture,Pe.uniform1i(M.location,fe.bind()),Ue=wi.opacity,(!Zr||at!==Ue)&&(at=Ue,Pe.uniform1f(O.location,Ue)),yt=U.call(this,xe,wi,Zr),Rt=yt[0],rr=yt[1],(!Zr||Qt!==Rt||Mr!==rr)&&(Qt=Rt,Mr=rr,Pe.uniform2f(F.location,Rt,rr)),Ur=xe.pixelRatio,(!Zr||he!==Ur)&&(he=Ur,Pe.uniform1f(W.location,Ur)),Ae=wi.scale,qe=Ae[0],ft=Ae[1],(!Zr||Ge!==qe||ot!==ft)&&(Ge=qe,ot=ft,Pe.uniform2f(N.location,qe,ft)),mt=wi.scaleFract,Gt=mt[0],sr=mt[1],(!Zr||er!==Gt||wr!==sr)&&(er=Gt,wr=sr,Pe.uniform2f(H.location,Gt,sr)),Ir=wi.translate,ri=Ir[0],Mi=Ir[1],(!Zr||si!==ri||cn!==Mi)&&(si=ri,cn=Mi,Pe.uniform2f(re.location,ri,Mi)),Zn=wi.translateFract,Yn=Zn[0],Fo=Zn[1],(!Zr||Ua!==Yn||vl!==Fo)&&(Ua=Yn,vl=Fo,Pe.uniform2f(ae.location,Yn,Fo)),Us=wi.elements,ml=null,au=kr(Us),au?ml=st.createStream(Us):ml=st.getElements(Us),ml&&Pe.bindBuffer(34963,ml.buffer.buffer),Sl=wi.offset,Yl=wi.count,Yl&&(Oa>0?ml?gr.drawElementsInstancedANGLE(0,Yl,ml.type,Sl<<(ml.type-5121>>1),Oa):gr.drawArraysInstancedANGLE(0,Sl,Yl,Oa):Oa<0&&(ml?Pe.drawElements(0,Yl,ml.type,Sl<<(ml.type-5121>>1)):Pe.drawArrays(0,Sl,Yl)),xe.viewportWidth=vn,xe.viewportHeight=da,No&>.destroyStream(Ba),Ka&>.destroyStream(sa),Ws&>.destroyStream(To),$s&>.destroyStream(Qs),rl&>.destroyStream(os),vs&>.destroyStream(tl),xr&>.destroyStream(Ki),va&>.destroyStream(xl),ll&>.destroyStream(Ll),fe.unbind(),au&&st.destroyStream(ml))}j.unbind(),De.dirty=!0,br.setVAO(null),$t&&(r.cpuTime+=performance.now()-fr)}}}});var H8=we((Dbr,g7e)=>{g7e.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et){"use strict";var tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn;return tt=t.gl,Lt=t.context,jt=t.strings,or=t.next,yr=t.current,vr=t.draw,Vt=t.elements,Pe=t.buffer,xe=t.shader,Oe=t.attributes,ze=t.vao,De=t.uniforms,ht=t.framebuffer,st=t.extensions,gt=t.timer,xt=t.isBufferArgs,pr=or.blend_color,br=yr.blend_color,cr=or.blend_equation,Er=yr.blend_equation,ii=or.blend_func,jr=yr.blend_func,kr=or.depth_range,Vr=yr.depth_range,Ai=or.colorMask,Bi=yr.colorMask,Ri=or.polygonOffset_offset,ln=yr.polygonOffset_offset,hn=or.sample_coverage,qr=yr.sample_coverage,_i=or.stencil_func,zi=yr.stencil_func,Dt=or.stencil_opFront,_t=yr.stencil_opFront,qt=or.stencil_opBack,Nt=yr.stencil_opBack,mr=or.scissor_box,Lr=yr.scissor_box,Nr=or.viewport,Fr=yr.viewport,Hr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Gr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},mi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ei={add:32774,subtract:32778,"reverse subtract":32779},Vi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ti={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Qi={cw:2304,ccw:2305},Yr={},Yr.stride=8,Yr.offset=8,Yr.divisor=1,oi={},oi.stride=8,oi.offset=16,oi.divisor=1,Fi={},Fi.stride=8,Fi.offset=8,Fi.divisor=1,rn={},rn.stride=8,rn.offset=16,rn.divisor=1,tn={},tn.stride=4,tn.offset=0,tn.divisor=1,{draw:function(Di){var Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa;if(Ii=st.angle_instanced_arrays,xn=ht.next,xn!==ht.cur&&(xn?tt.bindFramebuffer(36160,xn.framebuffer):tt.bindFramebuffer(36160,null),ht.cur=xn),yr.dirty){var os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi;os=or.dither,os!==yr.dither&&(os?tt.enable(3024):tt.disable(3024),yr.dither=os),_l=or.depth_func,_l!==yr.depth_func&&(tt.depthFunc(_l),yr.depth_func=_l),Ss=kr[0],po=kr[1],(Ss!==Vr[0]||po!==Vr[1])&&(tt.depthRange(Ss,po),Vr[0]=Ss,Vr[1]=po),go=or.depth_mask,go!==yr.depth_mask&&(tt.depthMask(go),yr.depth_mask=go),ss=Ai[0],qo=Ai[1],zo=Ai[2],io=Ai[3],(ss!==Bi[0]||qo!==Bi[1]||zo!==Bi[2]||io!==Bi[3])&&(tt.colorMask(ss,qo,zo,io),Bi[0]=ss,Bi[1]=qo,Bi[2]=zo,Bi[3]=io),Io=or.cull_enable,Io!==yr.cull_enable&&(Io?tt.enable(2884):tt.disable(2884),yr.cull_enable=Io),Da=or.cull_face,Da!==yr.cull_face&&(tt.cullFace(Da),yr.cull_face=Da),vs=or.frontFace,vs!==yr.frontFace&&(tt.frontFace(vs),yr.frontFace=vs),fs=or.lineWidth,fs!==yr.lineWidth&&(tt.lineWidth(fs),yr.lineWidth=fs),cl=or.polygonOffset_enable,cl!==yr.polygonOffset_enable&&(cl?tt.enable(32823):tt.disable(32823),yr.polygonOffset_enable=cl),el=Ri[0],Hs=Ri[1],(el!==ln[0]||Hs!==ln[1])&&(tt.polygonOffset(el,Hs),ln[0]=el,ln[1]=Hs),Ro=or.sample_alpha,Ro!==yr.sample_alpha&&(Ro?tt.enable(32926):tt.disable(32926),yr.sample_alpha=Ro),tl=or.sample_enable,tl!==yr.sample_enable&&(tl?tt.enable(32928):tt.disable(32928),yr.sample_enable=tl),Fs=hn[0],hl=hn[1],(Fs!==qr[0]||hl!==qr[1])&&(tt.sampleCoverage(Fs,hl),qr[0]=Fs,qr[1]=hl),Fa=or.stencil_mask,Fa!==yr.stencil_mask&&(tt.stencilMask(Fa),yr.stencil_mask=Fa),Ms=_i[0],jo=_i[1],Rs=_i[2],(Ms!==zi[0]||jo!==zi[1]||Rs!==zi[2])&&(tt.stencilFunc(Ms,jo,Rs),zi[0]=Ms,zi[1]=jo,zi[2]=Rs),Is=Dt[0],Os=Dt[1],St=Dt[2],Ut=Dt[3],(Is!==_t[0]||Os!==_t[1]||St!==_t[2]||Ut!==_t[3])&&(tt.stencilOpSeparate(Is,Os,St,Ut),_t[0]=Is,_t[1]=Os,_t[2]=St,_t[3]=Ut),xr=qt[0],dr=qt[1],Dr=qt[2],yi=qt[3],(xr!==Nt[0]||dr!==Nt[1]||Dr!==Nt[2]||yi!==Nt[3])&&(tt.stencilOpSeparate(xr,dr,Dr,yi),Nt[0]=xr,Nt[1]=dr,Nt[2]=Dr,Nt[3]=yi)}xi=Di.viewport,Xr=xi.x|0,dt=xi.y|0,$t="width"in xi?xi.width|0:Lt.framebufferWidth-Xr,fr="height"in xi?xi.height|0:Lt.framebufferHeight-dt,gr=Lt.viewportWidth,Lt.viewportWidth=$t,Zr=Lt.viewportHeight,Lt.viewportHeight=fr,tt.viewport(Xr,dt,$t,fr),Fr[0]=Xr,Fr[1]=dt,Fr[2]=$t,Fr[3]=fr,tt.blendColor(0,0,0,0),br[0]=0,br[1]=0,br[2]=0,br[3]=0,n?tt.enable(3042):tt.disable(3042),yr.blend_enable=n,tt.blendEquationSeparate(32774,32774),Er[0]=32774,Er[1]=32774,tt.blendFuncSeparate(770,771,773,1),jr[0]=770,jr[1]=771,jr[2]=773,jr[3]=1,wi=i.call(this,Lt,Di,0),wi?tt.enable(2929):tt.disable(2929),yr.depth_enable=wi,$i=Di.viewport,ni=$i.x|0,Xi=$i.y|0,aa="width"in $i?$i.width|0:Lt.framebufferWidth-ni,Mn="height"in $i?$i.height|0:Lt.framebufferHeight-Xi,tt.scissor(ni,Xi,aa,Mn),Lr[0]=ni,Lr[1]=Xi,Lr[2]=aa,Lr[3]=Mn,a?tt.enable(3089):tt.disable(3089),yr.scissor_enable=a,o?tt.enable(2960):tt.disable(2960),yr.stencil_enable=o,Un=yr.profile,Un&&(Ga=performance.now(),r.count++),tt.useProgram(s.program),ma=st.angle_instanced_arrays,ze.setVAO(null),oa=Di.positionBuffer,Yr.buffer=oa,ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,xt(Yr)?(ka=!0,kn=Pe.createStream(34962,Yr),uo=kn.dtype):(kn=Pe.getBuffer(Yr),kn?uo=kn.dtype:"constant"in Yr?(so=2,typeof Yr.constant=="number"?(Kr=Yr.constant,Ia=Yo=fa=0):(Kr=Yr.constant.length>0?Yr.constant[0]:0,Ia=Yr.constant.length>1?Yr.constant[1]:0,Yo=Yr.constant.length>2?Yr.constant[2]:0,fa=Yr.constant.length>3?Yr.constant[3]:0)):(xt(Yr.buffer)?kn=Pe.createStream(34962,Yr.buffer):kn=Pe.getBuffer(Yr.buffer),uo="type"in Yr?ti[Yr.type]:kn.dtype,ys=!!Yr.normalized,Ta=Yr.size|0,ls=Yr.offset|0,$a=Yr.stride|0,fo=Yr.divisor|0)),mn=u.location,ra=Oe[mn],so===1?(ra.buffer||tt.enableVertexAttribArray(mn),wa=Ta||2,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(tt.bindBuffer(34962,kn.buffer),tt.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&(tt.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(tt.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=Di.positionFractBuffer,Fi.buffer=ws,Co=!1,Po=1,Wi=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Oa=!1,Ko=5126,Qo=0,Hi=0,Sa=0,xt(Fi)?(Co=!0,Sn=Pe.createStream(34962,Fi),Ko=Sn.dtype):(Sn=Pe.getBuffer(Fi),Sn?Ko=Sn.dtype:"constant"in Fi?(Po=2,typeof Fi.constant=="number"?(Wi=Fi.constant,gn=Ps=Ha=0):(Wi=Fi.constant.length>0?Fi.constant[0]:0,gn=Fi.constant.length>1?Fi.constant[1]:0,Ps=Fi.constant.length>2?Fi.constant[2]:0,Ha=Fi.constant.length>3?Fi.constant[3]:0)):(xt(Fi.buffer)?Sn=Pe.createStream(34962,Fi.buffer):Sn=Pe.getBuffer(Fi.buffer),Ko="type"in Fi?ti[Fi.type]:Sn.dtype,Oa=!!Fi.normalized,ao=Fi.size|0,Qo=Fi.offset|0,Hi=Fi.stride|0,Sa=Fi.divisor|0)),Qa=l.location,vn=Oe[Qa],Po===1?(vn.buffer||tt.enableVertexAttribArray(Qa),da=ao||2,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Oa||vn.offset!==Qo||vn.stride!==Hi)&&(tt.bindBuffer(34962,Sn.buffer),tt.vertexAttribPointer(Qa,da,Ko,Oa,Hi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Oa,vn.offset=Qo,vn.stride=Hi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(tt.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==Wi||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(tt.vertexAttrib4f(Qa,Wi,gn,Ps,Ha),vn.x=Wi,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=Di.positionBuffer,oi.buffer=la,vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Ba=0,ha=0,xt(oi)?(vo=!0,jn=Pe.createStream(34962,oi),qs=jn.dtype):(jn=Pe.getBuffer(oi),jn?qs=jn.dtype:"constant"in oi?(As=2,typeof oi.constant=="number"?(ps=oi.constant,co=mo=No=0):(ps=oi.constant.length>0?oi.constant[0]:0,co=oi.constant.length>1?oi.constant[1]:0,mo=oi.constant.length>2?oi.constant[2]:0,No=oi.constant.length>3?oi.constant[3]:0)):(xt(oi.buffer)?jn=Pe.createStream(34962,oi.buffer):jn=Pe.getBuffer(oi.buffer),qs="type"in oi?ti[oi.type]:jn.dtype,Ys=!!oi.normalized,Go=oi.size|0,Ns=oi.offset|0,Ba=oi.stride|0,ha=oi.divisor|0)),Vs=f.location,Ya=Oe[Vs],As===1?(Ya.buffer||tt.enableVertexAttribArray(Vs),_n=Go||2,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Ba)&&(tt.bindBuffer(34962,jn.buffer),tt.vertexAttribPointer(Vs,_n,qs,Ys,Ba,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Ba),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(tt.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(tt.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=Di.positionFractBuffer,rn.buffer=Vn,wo=!1,Ra=1,Xn=0,sn=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,xt(rn)?(wo=!0,qn=Pe.createStream(34962,rn),lo=qn.dtype):(qn=Pe.getBuffer(rn),qn?lo=qn.dtype:"constant"in rn?(Ra=2,typeof rn.constant=="number"?(Xn=rn.constant,sn=$n=Ka=0):(Xn=rn.constant.length>0?rn.constant[0]:0,sn=rn.constant.length>1?rn.constant[1]:0,$n=rn.constant.length>2?rn.constant[2]:0,Ka=rn.constant.length>3?rn.constant[3]:0)):(xt(rn.buffer)?qn=Pe.createStream(34962,rn.buffer):qn=Pe.getBuffer(rn.buffer),lo="type"in rn?ti[rn.type]:qn.dtype,Ja=!!rn.normalized,Eo=rn.size|0,eo=rn.offset|0,sa=rn.stride|0,es=rn.divisor|0)),Na=c.location,en=Oe[Na],Ra===1?(en.buffer||tt.enableVertexAttribArray(Na),Pa=Eo||2,(en.type!==lo||en.size!==Pa||en.buffer!==qn||en.normalized!==Ja||en.offset!==eo||en.stride!==sa)&&(tt.bindBuffer(34962,qn.buffer),tt.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),en.type=lo,en.size=Pa,en.buffer=qn,en.normalized=Ja,en.offset=eo,en.stride=sa),en.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),en.divisor=es)):(en.buffer&&(tt.disableVertexAttribArray(Na),en.buffer=null),(en.x!==Xn||en.y!==sn||en.z!==$n||en.w!==Ka)&&(tt.vertexAttrib4f(Na,Xn,sn,$n,Ka),en.x=Xn,en.y=sn,en.z=$n,en.w=Ka)),to=Di.colorBuffer,tn.buffer=to,yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,xt(tn)?(yo=!0,Ca=Pe.createStream(34962,tn),Ho=Ca.dtype):(Ca=Pe.getBuffer(tn),Ca?Ho=Ca.dtype:"constant"in tn?(Jo=2,typeof tn.constant=="number"?(Ao=tn.constant,Dn=_a=Ws=0):(Ao=tn.constant.length>0?tn.constant[0]:0,Dn=tn.constant.length>1?tn.constant[1]:0,_a=tn.constant.length>2?tn.constant[2]:0,Ws=tn.constant.length>3?tn.constant[3]:0)):(xt(tn.buffer)?Ca=Pe.createStream(34962,tn.buffer):Ca=Pe.getBuffer(tn.buffer),Ho="type"in tn?ti[tn.type]:Ca.dtype,Ts=!!tn.normalized,Es=tn.size|0,Wa=tn.offset|0,To=tn.stride|0,ts=tn.divisor|0)),Wo=h.location,qa=Oe[Wo],Jo===1?(qa.buffer||tt.enableVertexAttribArray(Wo),on=Es||4,(qa.type!==Ho||qa.size!==on||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(tt.bindBuffer(34962,Ca.buffer),tt.vertexAttribPointer(Wo,on,Ho,Ts,To,Wa),qa.type=Ho,qa.size=on,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(tt.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&(tt.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Oo=p.location,ko=Oe[Oo],ko.buffer||tt.enableVertexAttribArray(Oo),(ko.type!==5126||ko.size!==1||ko.buffer!==d||ko.normalized!==!1||ko.offset!==0||ko.stride!==8)&&(tt.bindBuffer(34962,d.buffer),tt.vertexAttribPointer(Oo,1,5126,!1,8,0),ko.type=5126,ko.size=1,ko.buffer=d,ko.normalized=!1,ko.offset=0,ko.stride=8),ko.divisor!==0&&(ma.vertexAttribDivisorANGLE(Oo,0),ko.divisor=0),oo=y.location,za=Oe[oo],za.buffer||tt.enableVertexAttribArray(oo),(za.type!==5126||za.size!==1||za.buffer!==d||za.normalized!==!1||za.offset!==4||za.stride!==8)&&(tt.bindBuffer(34962,d.buffer),tt.vertexAttribPointer(oo,1,5126,!1,8,4),za.type=5126,za.size=1,za.buffer=d,za.normalized=!1,za.offset=4,za.stride=8),za.divisor!==0&&(ma.vertexAttribDivisorANGLE(oo,0),za.divisor=0),ea=Di.dashLength,tt.uniform1f(b.location,ea),rs=Di.dashTexture,rs&&rs._reglType==="framebuffer"&&(rs=rs.color[0]),$s=rs._texture,tt.uniform1i(v.location,$s.bind()),us=Di.depth,tt.uniform1f(C.location,us),Ds=Di.opacity,tt.uniform1f(E.location,Ds),fl=Di.scale,as=fl[0],Ma=fl[1],tt.uniform2f(A.location,as,Ma),Qs=Di.scaleFract,ho=Qs[0],gs=Qs[1],tt.uniform2f(L.location,ho,gs),Vo=Di.thickness,tt.uniform1f(x.location,Vo),Do=Di.translate,Lo=Do[0],xs=Do[1],tt.uniform2f(k.location,Lo,xs),ks=Di.translateFract,Ea=ks[0],Jn=ks[1],tt.uniform2f(S.location,Ea,Jn),Bo=P.call(this,Lt,Di,0),rl=Bo[0],Gs=Bo[1],bs=Bo[2],zs=Bo[3],tt.uniform4f(m.location,rl,Gs,bs,zs),$o=vr.elements,$o?tt.bindBuffer(34963,$o.buffer.buffer):ze.currentVAO&&($o=Vt.getElements(ze.currentVAO.elements),$o&&tt.bindBuffer(34963,$o.buffer.buffer)),Aa=Di.count,Aa>0?$o?ma.drawElementsInstancedANGLE(5,4,$o.type,0<<($o.type-5121>>1),Aa):ma.drawArraysInstancedANGLE(5,0,4,Aa):Aa<0&&($o?tt.drawElements(5,4,$o.type,0<<($o.type-5121>>1)):tt.drawArrays(5,0,4)),yr.dirty=!0,ze.setVAO(null),Lt.viewportWidth=gr,Lt.viewportHeight=Zr,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Pe.destroyStream(kn),Co&&Pe.destroyStream(Sn),vo&&Pe.destroyStream(jn),wo&&Pe.destroyStream(qn),yo&&Pe.destroyStream(Ca),$s.unbind()},scope:function(Di,Ii,xn){var xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,on,Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Rl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt;xi=Di.viewport,Xr=xi.x|0,dt=xi.y|0,$t="width"in xi?xi.width|0:Lt.framebufferWidth-Xr,fr="height"in xi?xi.height|0:Lt.framebufferHeight-dt,gr=Lt.viewportWidth,Lt.viewportWidth=$t,Zr=Lt.viewportHeight,Lt.viewportHeight=fr,wi=Nr[0],Nr[0]=Xr,$i=Nr[1],Nr[1]=dt,ni=Nr[2],Nr[2]=$t,Xi=Nr[3],Nr[3]=fr,aa=pr[0],pr[0]=M,Mn=pr[1],pr[1]=O,Un=pr[2],pr[2]=F,Ga=pr[3],pr[3]=U,ma=or.blend_enable,or.blend_enable=G,oa=cr[0],cr[0]=j,ka=cr[1],cr[1]=W,so=ii[0],ii[0]=N,Kr=ii[1],ii[1]=H,Ia=ii[2],ii[2]=re,Yo=ii[3],ii[3]=ae,fa=i.call(this,Lt,Di,xn),kn=or.depth_enable,or.depth_enable=fa,Ta=Di.viewport,ys=Ta.x|0,uo=Ta.y|0,ls="width"in Ta?Ta.width|0:Lt.framebufferWidth-ys,$a="height"in Ta?Ta.height|0:Lt.framebufferHeight-uo,fo=mr[0],mr[0]=ys,mn=mr[1],mr[1]=uo,ra=mr[2],mr[2]=ls,wa=mr[3],mr[3]=$a,ws=or.scissor_enable,or.scissor_enable=me,Co=or.stencil_enable,or.stencil_enable=Ce,Po=yr.profile,Po&&(Wi=performance.now(),r.count++),gn=vr.offset,vr.offset=Ee,Ps=vr.count,vr.count=de,Ha=Di.count,Sn=vr.instances,vr.instances=Ha,ao=vr.primitive,vr.primitive=te,Oa=Se.call(this,Lt,Di,xn),Ko=De[Te],De[Te]=Oa,Qo=Di.miterLimit,Hi=De[be],De[be]=Qo,Sa=Di.scale,Qa=De[He],De[He]=Sa,vn=Di.scaleFract,da=De[Ie],De[Ie]=vn,la=Di.translateFract,vo=De[ge],De[ge]=la,As=Di.translate,ps=De[Be],De[Be]=As,co=Di.thickness,mo=De[ce],De[ce]=co,No=Di.dashTexture,jn=De[je],De[je]=No,Go=Di.opacity,Ys=De[rt],De[rt]=Go,qs=Lt.pixelRatio,Ns=De[bt],De[bt]=qs,Ba=Di.id,ha=De[Ot],De[Ot]=Ba,Vs=Di.dashLength,Ya=De[it],De[it]=Vs,_n=P.call(this,Lt,Di,xn),Vn=De[Ke],De[Ke]=_n,wo=Di.depth,Ra=De[zt],De[zt]=wo,Xn=Mt.state,Mt.state=1,sn=Mt.x,Mt.x=0,$n=Mt.y,Mt.y=0,Ka=Mt.z,Mt.z=0,qn=Mt.w,Mt.w=0,Eo=Mt.buffer,Mt.buffer=d,Ja=Mt.size,Mt.size=0,lo=Mt.normalized,Mt.normalized=!1,eo=Mt.type,Mt.type=5126,sa=Mt.offset,Mt.offset=0,es=Mt.stride,Mt.stride=8,Na=Mt.divisor,Mt.divisor=0,en=kt.state,kt.state=1,Pa=kt.x,kt.x=0,to=kt.y,kt.y=0,yo=kt.z,kt.z=0,Jo=kt.w,kt.w=0,Ao=kt.buffer,kt.buffer=d,Dn=kt.size,kt.size=0,_a=kt.normalized,kt.normalized=!1,Ws=kt.type,kt.type=5126,Ca=kt.offset,kt.offset=4,Es=kt.stride,kt.stride=8,Ts=kt.divisor,kt.divisor=0,Ho=Di.positionBuffer,Yr.buffer=Ho,Wa=!1,To=1,ts=0,Wo=0,qa=0,on=0,Oo=null,ko=0,oo=!1,za=5126,ea=0,rs=0,$s=0,xt(Yr)?(Wa=!0,Oo=Pe.createStream(34962,Yr),za=Oo.dtype):(Oo=Pe.getBuffer(Yr),Oo?za=Oo.dtype:"constant"in Yr?(To=2,typeof Yr.constant=="number"?(ts=Yr.constant,Wo=qa=on=0):(ts=Yr.constant.length>0?Yr.constant[0]:0,Wo=Yr.constant.length>1?Yr.constant[1]:0,qa=Yr.constant.length>2?Yr.constant[2]:0,on=Yr.constant.length>3?Yr.constant[3]:0)):(xt(Yr.buffer)?Oo=Pe.createStream(34962,Yr.buffer):Oo=Pe.getBuffer(Yr.buffer),za="type"in Yr?ti[Yr.type]:Oo.dtype,oo=!!Yr.normalized,ko=Yr.size|0,ea=Yr.offset|0,rs=Yr.stride|0,$s=Yr.divisor|0)),us=$e.state,$e.state=To,Ds=$e.x,$e.x=ts,fl=$e.y,$e.y=Wo,as=$e.z,$e.z=qa,Ma=$e.w,$e.w=on,Qs=$e.buffer,$e.buffer=Oo,ho=$e.size,$e.size=ko,gs=$e.normalized,$e.normalized=oo,Vo=$e.type,$e.type=za,Do=$e.offset,$e.offset=ea,Lo=$e.stride,$e.stride=rs,xs=$e.divisor,$e.divisor=$s,ks=Di.positionBuffer,oi.buffer=ks,Ea=!1,Jn=1,Bo=0,rl=0,Gs=0,bs=0,zs=null,$o=0,Aa=!1,os=5126,_l=0,Ss=0,po=0,xt(oi)?(Ea=!0,zs=Pe.createStream(34962,oi),os=zs.dtype):(zs=Pe.getBuffer(oi),zs?os=zs.dtype:"constant"in oi?(Jn=2,typeof oi.constant=="number"?(Bo=oi.constant,rl=Gs=bs=0):(Bo=oi.constant.length>0?oi.constant[0]:0,rl=oi.constant.length>1?oi.constant[1]:0,Gs=oi.constant.length>2?oi.constant[2]:0,bs=oi.constant.length>3?oi.constant[3]:0)):(xt(oi.buffer)?zs=Pe.createStream(34962,oi.buffer):zs=Pe.getBuffer(oi.buffer),os="type"in oi?ti[oi.type]:zs.dtype,Aa=!!oi.normalized,$o=oi.size|0,_l=oi.offset|0,Ss=oi.stride|0,po=oi.divisor|0)),go=Re.state,Re.state=Jn,ss=Re.x,Re.x=Bo,qo=Re.y,Re.y=rl,zo=Re.z,Re.z=Gs,io=Re.w,Re.w=bs,Io=Re.buffer,Re.buffer=zs,Da=Re.size,Re.size=$o,vs=Re.normalized,Re.normalized=Aa,fs=Re.type,Re.type=os,cl=Re.offset,Re.offset=_l,el=Re.stride,Re.stride=Ss,Hs=Re.divisor,Re.divisor=po,Ro=Di.positionFractBuffer,Fi.buffer=Ro,tl=!1,Fs=1,hl=0,Fa=0,Ms=0,jo=0,Rs=null,Is=0,Os=!1,St=5126,Ut=0,xr=0,dr=0,xt(Fi)?(tl=!0,Rs=Pe.createStream(34962,Fi),St=Rs.dtype):(Rs=Pe.getBuffer(Fi),Rs?St=Rs.dtype:"constant"in Fi?(Fs=2,typeof Fi.constant=="number"?(hl=Fi.constant,Fa=Ms=jo=0):(hl=Fi.constant.length>0?Fi.constant[0]:0,Fa=Fi.constant.length>1?Fi.constant[1]:0,Ms=Fi.constant.length>2?Fi.constant[2]:0,jo=Fi.constant.length>3?Fi.constant[3]:0)):(xt(Fi.buffer)?Rs=Pe.createStream(34962,Fi.buffer):Rs=Pe.getBuffer(Fi.buffer),St="type"in Fi?ti[Fi.type]:Rs.dtype,Os=!!Fi.normalized,Is=Fi.size|0,Ut=Fi.offset|0,xr=Fi.stride|0,dr=Fi.divisor|0)),Dr=Me.state,Me.state=Fs,yi=Me.x,Me.x=hl,Ti=Me.y,Me.y=Fa,ki=Me.z,Me.z=Ms,Ki=Me.w,Me.w=jo,Fn=Me.buffer,Me.buffer=Rs,Li=Me.size,Me.size=Is,hi=Me.normalized,Me.normalized=Os,Ci=Me.type,Me.type=St,Si=Me.offset,Me.offset=Ut,Gn=Me.stride,Me.stride=xr,ta=Me.divisor,Me.divisor=dr,ya=Di.positionFractBuffer,rn.buffer=ya,ia=!1,pa=1,va=0,zn=0,is=0,Cs=0,Ks=null,dl=0,xl=!1,Bl=5126,bl=0,eu=0,Zl=0,xt(rn)?(ia=!0,Ks=Pe.createStream(34962,rn),Bl=Ks.dtype):(Ks=Pe.getBuffer(rn),Ks?Bl=Ks.dtype:"constant"in rn?(pa=2,typeof rn.constant=="number"?(va=rn.constant,zn=is=Cs=0):(va=rn.constant.length>0?rn.constant[0]:0,zn=rn.constant.length>1?rn.constant[1]:0,is=rn.constant.length>2?rn.constant[2]:0,Cs=rn.constant.length>3?rn.constant[3]:0)):(xt(rn.buffer)?Ks=Pe.createStream(34962,rn.buffer):Ks=Pe.getBuffer(rn.buffer),Bl="type"in rn?ti[rn.type]:Ks.dtype,xl=!!rn.normalized,dl=rn.size|0,bl=rn.offset|0,eu=rn.stride|0,Zl=rn.divisor|0)),Vl=oe.state,oe.state=pa,ja=oe.x,oe.x=va,ns=oe.y,oe.y=zn,Js=oe.z,oe.z=is,cs=oe.w,oe.w=Cs,sl=oe.buffer,oe.buffer=Ks,ll=oe.size,oe.size=dl,nl=oe.normalized,oe.normalized=xl,zl=oe.type,oe.type=Bl,Ml=oe.offset,oe.offset=bl,Rl=oe.stride,oe.stride=eu,Al=oe.divisor,oe.divisor=Zl,Ll=Di.colorBuffer,tn.buffer=Ll,ms=!1,Bs=1,Xl=0,Gl=0,Nl=0,ue=0,w=null,q=0,Q=!1,ee=5126,fe=0,Ue=0,at=0,xt(tn)?(ms=!0,w=Pe.createStream(34962,tn),ee=w.dtype):(w=Pe.getBuffer(tn),w?ee=w.dtype:"constant"in tn?(Bs=2,typeof tn.constant=="number"?(Xl=tn.constant,Gl=Nl=ue=0):(Xl=tn.constant.length>0?tn.constant[0]:0,Gl=tn.constant.length>1?tn.constant[1]:0,Nl=tn.constant.length>2?tn.constant[2]:0,ue=tn.constant.length>3?tn.constant[3]:0)):(xt(tn.buffer)?w=Pe.createStream(34962,tn.buffer):w=Pe.getBuffer(tn.buffer),ee="type"in tn?ti[tn.type]:w.dtype,Q=!!tn.normalized,q=tn.size|0,fe=tn.offset|0,Ue=tn.stride|0,at=tn.divisor|0)),yt=Ne.state,Ne.state=Bs,Rt=Ne.x,Ne.x=Xl,Qt=Ne.y,Ne.y=Gl,rr=Ne.z,Ne.z=Nl,Mr=Ne.w,Ne.w=ue,Ur=Ne.buffer,Ne.buffer=w,he=Ne.size,Ne.size=q,Ae=Ne.normalized,Ne.normalized=Q,qe=Ne.type,Ne.type=ee,Ge=Ne.offset,Ne.offset=fe,ft=Ne.stride,Ne.stride=Ue,ot=Ne.divisor,Ne.divisor=at,mt=xe.vert,xe.vert=vt,Gt=xe.frag,xe.frag=lt,yr.dirty=!0,Ii(Lt,Di,xn),Lt.viewportWidth=gr,Lt.viewportHeight=Zr,Nr[0]=wi,Nr[1]=$i,Nr[2]=ni,Nr[3]=Xi,pr[0]=aa,pr[1]=Mn,pr[2]=Un,pr[3]=Ga,or.blend_enable=ma,cr[0]=oa,cr[1]=ka,ii[0]=so,ii[1]=Kr,ii[2]=Ia,ii[3]=Yo,or.depth_enable=kn,mr[0]=fo,mr[1]=mn,mr[2]=ra,mr[3]=wa,or.scissor_enable=ws,or.stencil_enable=Co,Po&&(r.cpuTime+=performance.now()-Wi),vr.offset=gn,vr.count=Ps,vr.instances=Sn,vr.primitive=ao,De[Te]=Ko,De[be]=Hi,De[He]=Qa,De[Ie]=da,De[ge]=vo,De[Be]=ps,De[ce]=mo,De[je]=jn,De[rt]=Ys,De[bt]=Ns,De[Ot]=ha,De[it]=Ya,De[Ke]=Vn,De[zt]=Ra,Mt.state=Xn,Mt.x=sn,Mt.y=$n,Mt.z=Ka,Mt.w=qn,Mt.buffer=Eo,Mt.size=Ja,Mt.normalized=lo,Mt.type=eo,Mt.offset=sa,Mt.stride=es,Mt.divisor=Na,kt.state=en,kt.x=Pa,kt.y=to,kt.z=yo,kt.w=Jo,kt.buffer=Ao,kt.size=Dn,kt.normalized=_a,kt.type=Ws,kt.offset=Ca,kt.stride=Es,kt.divisor=Ts,Wa&&Pe.destroyStream(Oo),$e.state=us,$e.x=Ds,$e.y=fl,$e.z=as,$e.w=Ma,$e.buffer=Qs,$e.size=ho,$e.normalized=gs,$e.type=Vo,$e.offset=Do,$e.stride=Lo,$e.divisor=xs,Ea&&Pe.destroyStream(zs),Re.state=go,Re.x=ss,Re.y=qo,Re.z=zo,Re.w=io,Re.buffer=Io,Re.size=Da,Re.normalized=vs,Re.type=fs,Re.offset=cl,Re.stride=el,Re.divisor=Hs,tl&&Pe.destroyStream(Rs),Me.state=Dr,Me.x=yi,Me.y=Ti,Me.z=ki,Me.w=Ki,Me.buffer=Fn,Me.size=Li,Me.normalized=hi,Me.type=Ci,Me.offset=Si,Me.stride=Gn,Me.divisor=ta,ia&&Pe.destroyStream(Ks),oe.state=Vl,oe.x=ja,oe.y=ns,oe.z=Js,oe.w=cs,oe.buffer=sl,oe.size=ll,oe.normalized=nl,oe.type=zl,oe.offset=Ml,oe.stride=Rl,oe.divisor=Al,ms&&Pe.destroyStream(w),Ne.state=yt,Ne.x=Rt,Ne.y=Qt,Ne.z=rr,Ne.w=Mr,Ne.buffer=Ur,Ne.size=he,Ne.normalized=Ae,Ne.type=qe,Ne.offset=Ge,Ne.stride=ft,Ne.divisor=ot,xe.vert=mt,xe.frag=Gt,yr.dirty=!0},batch:function(Di,Ii){var xn,xi,Xr,dt,$t,fr,gr;if(xn=st.angle_instanced_arrays,xi=ht.next,xi!==ht.cur&&(xi?tt.bindFramebuffer(36160,xi.framebuffer):tt.bindFramebuffer(36160,null),ht.cur=xi),yr.dirty){var Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn;Zr=or.dither,Zr!==yr.dither&&(Zr?tt.enable(3024):tt.disable(3024),yr.dither=Zr),wi=or.depth_func,wi!==yr.depth_func&&(tt.depthFunc(wi),yr.depth_func=wi),$i=kr[0],ni=kr[1],($i!==Vr[0]||ni!==Vr[1])&&(tt.depthRange($i,ni),Vr[0]=$i,Vr[1]=ni),Xi=or.depth_mask,Xi!==yr.depth_mask&&(tt.depthMask(Xi),yr.depth_mask=Xi),aa=Ai[0],Mn=Ai[1],Un=Ai[2],Ga=Ai[3],(aa!==Bi[0]||Mn!==Bi[1]||Un!==Bi[2]||Ga!==Bi[3])&&(tt.colorMask(aa,Mn,Un,Ga),Bi[0]=aa,Bi[1]=Mn,Bi[2]=Un,Bi[3]=Ga),ma=or.cull_enable,ma!==yr.cull_enable&&(ma?tt.enable(2884):tt.disable(2884),yr.cull_enable=ma),oa=or.cull_face,oa!==yr.cull_face&&(tt.cullFace(oa),yr.cull_face=oa),ka=or.frontFace,ka!==yr.frontFace&&(tt.frontFace(ka),yr.frontFace=ka),so=or.lineWidth,so!==yr.lineWidth&&(tt.lineWidth(so),yr.lineWidth=so),Kr=or.polygonOffset_enable,Kr!==yr.polygonOffset_enable&&(Kr?tt.enable(32823):tt.disable(32823),yr.polygonOffset_enable=Kr),Ia=Ri[0],Yo=Ri[1],(Ia!==ln[0]||Yo!==ln[1])&&(tt.polygonOffset(Ia,Yo),ln[0]=Ia,ln[1]=Yo),fa=or.sample_alpha,fa!==yr.sample_alpha&&(fa?tt.enable(32926):tt.disable(32926),yr.sample_alpha=fa),kn=or.sample_enable,kn!==yr.sample_enable&&(kn?tt.enable(32928):tt.disable(32928),yr.sample_enable=kn),Ta=hn[0],ys=hn[1],(Ta!==qr[0]||ys!==qr[1])&&(tt.sampleCoverage(Ta,ys),qr[0]=Ta,qr[1]=ys),uo=or.stencil_mask,uo!==yr.stencil_mask&&(tt.stencilMask(uo),yr.stencil_mask=uo),ls=_i[0],$a=_i[1],fo=_i[2],(ls!==zi[0]||$a!==zi[1]||fo!==zi[2])&&(tt.stencilFunc(ls,$a,fo),zi[0]=ls,zi[1]=$a,zi[2]=fo),mn=Dt[0],ra=Dt[1],wa=Dt[2],ws=Dt[3],(mn!==_t[0]||ra!==_t[1]||wa!==_t[2]||ws!==_t[3])&&(tt.stencilOpSeparate(mn,ra,wa,ws),_t[0]=mn,_t[1]=ra,_t[2]=wa,_t[3]=ws),Co=qt[0],Po=qt[1],Wi=qt[2],gn=qt[3],(Co!==Nt[0]||Po!==Nt[1]||Wi!==Nt[2]||gn!==Nt[3])&&(tt.stencilOpSeparate(Co,Po,Wi,gn),Nt[0]=Co,Nt[1]=Po,Nt[2]=Wi,Nt[3]=gn)}tt.blendColor(0,0,0,0),br[0]=0,br[1]=0,br[2]=0,br[3]=0,We?tt.enable(3042):tt.disable(3042),yr.blend_enable=We,tt.blendEquationSeparate(32774,32774),Er[0]=32774,Er[1]=32774,tt.blendFuncSeparate(770,771,773,1),jr[0]=770,jr[1]=771,jr[2]=773,jr[3]=1,Ve?tt.enable(3089):tt.disable(3089),yr.scissor_enable=Ve,et?tt.enable(2960):tt.disable(2960),yr.stencil_enable=et,Xr=yr.profile,Xr&&(dt=performance.now(),r.count+=Ii),tt.useProgram(s.program),$t=st.angle_instanced_arrays;var Ps,Ha,Sn,ao,Oa;for(ze.setVAO(null),Ps=p.location,Ha=Oe[Ps],Ha.buffer||tt.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==1||Ha.buffer!==d||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==8)&&(tt.bindBuffer(34962,d.buffer),tt.vertexAttribPointer(Ps,1,5126,!1,8,0),Ha.type=5126,Ha.size=1,Ha.buffer=d,Ha.normalized=!1,Ha.offset=0,Ha.stride=8),Ha.divisor!==0&&($t.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=y.location,ao=Oe[Sn],ao.buffer||tt.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==1||ao.buffer!==d||ao.normalized!==!1||ao.offset!==4||ao.stride!==8)&&(tt.bindBuffer(34962,d.buffer),tt.vertexAttribPointer(Sn,1,5126,!1,8,4),ao.type=5126,ao.size=1,ao.buffer=d,ao.normalized=!1,ao.offset=4,ao.stride=8),ao.divisor!==0&&($t.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Oa=vr.elements,Oa?tt.bindBuffer(34963,Oa.buffer.buffer):ze.currentVAO&&(Oa=Vt.getElements(ze.currentVAO.elements),Oa&&tt.bindBuffer(34963,Oa.buffer.buffer)),fr=0;fr0?Yr.constant[0]:0,qs=Yr.constant.length>1?Yr.constant[1]:0,Ns=Yr.constant.length>2?Yr.constant[2]:0,Ba=Yr.constant.length>3?Yr.constant[3]:0)):(xt(Yr.buffer)?ha=Pe.createStream(34962,Yr.buffer):ha=Pe.getBuffer(Yr.buffer),_n="type"in Yr?ti[Yr.type]:ha.dtype,Ya=!!Yr.normalized,Vs=Yr.size|0,Vn=Yr.offset|0,wo=Yr.stride|0,Ra=Yr.divisor|0)),Xn=u.location,sn=Oe[Xn],Go===1?(sn.buffer||tt.enableVertexAttribArray(Xn),$n=Vs||2,(sn.type!==_n||sn.size!==$n||sn.buffer!==ha||sn.normalized!==Ya||sn.offset!==Vn||sn.stride!==wo)&&(tt.bindBuffer(34962,ha.buffer),tt.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),sn.type=_n,sn.size=$n,sn.buffer=ha,sn.normalized=Ya,sn.offset=Vn,sn.stride=wo),sn.divisor!==Ra&&($t.vertexAttribDivisorANGLE(Xn,Ra),sn.divisor=Ra)):(sn.buffer&&(tt.disableVertexAttribArray(Xn),sn.buffer=null),(sn.x!==Ys||sn.y!==qs||sn.z!==Ns||sn.w!==Ba)&&(tt.vertexAttrib4f(Xn,Ys,qs,Ns,Ba),sn.x=Ys,sn.y=qs,sn.z=Ns,sn.w=Ba)),Ka=gr.positionFractBuffer,Fi.buffer=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,en=!1,Pa=5126,to=0,yo=0,Jo=0,xt(Fi)?(qn=!0,es=Pe.createStream(34962,Fi),Pa=es.dtype):(es=Pe.getBuffer(Fi),es?Pa=es.dtype:"constant"in Fi?(Eo=2,typeof Fi.constant=="number"?(Ja=Fi.constant,lo=eo=sa=0):(Ja=Fi.constant.length>0?Fi.constant[0]:0,lo=Fi.constant.length>1?Fi.constant[1]:0,eo=Fi.constant.length>2?Fi.constant[2]:0,sa=Fi.constant.length>3?Fi.constant[3]:0)):(xt(Fi.buffer)?es=Pe.createStream(34962,Fi.buffer):es=Pe.getBuffer(Fi.buffer),Pa="type"in Fi?ti[Fi.type]:es.dtype,en=!!Fi.normalized,Na=Fi.size|0,to=Fi.offset|0,yo=Fi.stride|0,Jo=Fi.divisor|0)),Ao=l.location,Dn=Oe[Ao],Eo===1?(Dn.buffer||tt.enableVertexAttribArray(Ao),_a=Na||2,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==en||Dn.offset!==to||Dn.stride!==yo)&&(tt.bindBuffer(34962,es.buffer),tt.vertexAttribPointer(Ao,_a,Pa,en,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=en,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&($t.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&(tt.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&(tt.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=gr.positionBuffer,oi.buffer=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,on=5126,Oo=0,ko=0,oo=0,xt(oi)?(Ca=!0,ts=Pe.createStream(34962,oi),on=ts.dtype):(ts=Pe.getBuffer(oi),ts?on=ts.dtype:"constant"in oi?(Es=2,typeof oi.constant=="number"?(Ts=oi.constant,Ho=Wa=To=0):(Ts=oi.constant.length>0?oi.constant[0]:0,Ho=oi.constant.length>1?oi.constant[1]:0,Wa=oi.constant.length>2?oi.constant[2]:0,To=oi.constant.length>3?oi.constant[3]:0)):(xt(oi.buffer)?ts=Pe.createStream(34962,oi.buffer):ts=Pe.getBuffer(oi.buffer),on="type"in oi?ti[oi.type]:ts.dtype,qa=!!oi.normalized,Wo=oi.size|0,Oo=oi.offset|0,ko=oi.stride|0,oo=oi.divisor|0)),za=f.location,ea=Oe[za],Es===1?(ea.buffer||tt.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==on||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Oo||ea.stride!==ko)&&(tt.bindBuffer(34962,ts.buffer),tt.vertexAttribPointer(za,rs,on,qa,ko,Oo),ea.type=on,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Oo,ea.stride=ko),ea.divisor!==oo&&($t.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(tt.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(tt.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=gr.positionFractBuffer,rn.buffer=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,xt(rn)?(us=!0,ho=Pe.createStream(34962,rn),Do=ho.dtype):(ho=Pe.getBuffer(rn),ho?Do=ho.dtype:"constant"in rn?(Ds=2,typeof rn.constant=="number"?(fl=rn.constant,as=Ma=Qs=0):(fl=rn.constant.length>0?rn.constant[0]:0,as=rn.constant.length>1?rn.constant[1]:0,Ma=rn.constant.length>2?rn.constant[2]:0,Qs=rn.constant.length>3?rn.constant[3]:0)):(xt(rn.buffer)?ho=Pe.createStream(34962,rn.buffer):ho=Pe.getBuffer(rn.buffer),Do="type"in rn?ti[rn.type]:ho.dtype,Vo=!!rn.normalized,gs=rn.size|0,Lo=rn.offset|0,xs=rn.stride|0,ks=rn.divisor|0)),Ea=c.location,Jn=Oe[Ea],Ds===1?(Jn.buffer||tt.enableVertexAttribArray(Ea),Bo=gs||2,(Jn.type!==Do||Jn.size!==Bo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(tt.bindBuffer(34962,ho.buffer),tt.vertexAttribPointer(Ea,Bo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Bo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&($t.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(tt.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(tt.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=gr.colorBuffer,tn.buffer=rl,Gs=!1,bs=1,zs=0,$o=0,Aa=0,os=0,_l=null,Ss=0,po=!1,go=5126,ss=0,qo=0,zo=0,xt(tn)?(Gs=!0,_l=Pe.createStream(34962,tn),go=_l.dtype):(_l=Pe.getBuffer(tn),_l?go=_l.dtype:"constant"in tn?(bs=2,typeof tn.constant=="number"?(zs=tn.constant,$o=Aa=os=0):(zs=tn.constant.length>0?tn.constant[0]:0,$o=tn.constant.length>1?tn.constant[1]:0,Aa=tn.constant.length>2?tn.constant[2]:0,os=tn.constant.length>3?tn.constant[3]:0)):(xt(tn.buffer)?_l=Pe.createStream(34962,tn.buffer):_l=Pe.getBuffer(tn.buffer),go="type"in tn?ti[tn.type]:_l.dtype,po=!!tn.normalized,Ss=tn.size|0,ss=tn.offset|0,qo=tn.stride|0,zo=tn.divisor|0)),io=h.location,Io=Oe[io],bs===1?(Io.buffer||tt.enableVertexAttribArray(io),Da=Ss||4,(Io.type!==go||Io.size!==Da||Io.buffer!==_l||Io.normalized!==po||Io.offset!==ss||Io.stride!==qo)&&(tt.bindBuffer(34962,_l.buffer),tt.vertexAttribPointer(io,Da,go,po,qo,ss),Io.type=go,Io.size=Da,Io.buffer=_l,Io.normalized=po,Io.offset=ss,Io.stride=qo),Io.divisor!==zo&&($t.vertexAttribDivisorANGLE(io,zo),Io.divisor=zo)):(Io.buffer&&(tt.disableVertexAttribArray(io),Io.buffer=null),(Io.x!==zs||Io.y!==$o||Io.z!==Aa||Io.w!==os)&&(tt.vertexAttrib4f(io,zs,$o,Aa,os),Io.x=zs,Io.y=$o,Io.z=Aa,Io.w=os)),vs=gr.dashLength,(!fr||fs!==vs)&&(fs=vs,tt.uniform1f(b.location,vs)),cl=gr.dashTexture,cl&&cl._reglType==="framebuffer"&&(cl=cl.color[0]),el=cl._texture,tt.uniform1i(v.location,el.bind()),Hs=gr.depth,(!fr||Ro!==Hs)&&(Ro=Hs,tt.uniform1f(C.location,Hs)),tl=gr.opacity,(!fr||Fs!==tl)&&(Fs=tl,tt.uniform1f(E.location,tl)),hl=gr.scale,Fa=hl[0],jo=hl[1],(!fr||Ms!==Fa||Rs!==jo)&&(Ms=Fa,Rs=jo,tt.uniform2f(A.location,Fa,jo)),Is=gr.scaleFract,Os=Is[0],Ut=Is[1],(!fr||St!==Os||xr!==Ut)&&(St=Os,xr=Ut,tt.uniform2f(L.location,Os,Ut)),dr=gr.thickness,(!fr||Dr!==dr)&&(Dr=dr,tt.uniform1f(x.location,dr)),yi=gr.translate,Ti=yi[0],Ki=yi[1],(!fr||ki!==Ti||Fn!==Ki)&&(ki=Ti,Fn=Ki,tt.uniform2f(k.location,Ti,Ki)),Li=gr.translateFract,hi=Li[0],Si=Li[1],(!fr||Ci!==hi||Gn!==Si)&&(Ci=hi,Gn=Si,tt.uniform2f(S.location,hi,Si)),ta=P.call(this,Lt,gr,fr),ya=ta[0],pa=ta[1],zn=ta[2],Cs=ta[3],(!fr||ia!==ya||va!==pa||is!==zn||Ks!==Cs)&&(ia=ya,va=pa,is=zn,Ks=Cs,tt.uniform4f(m.location,ya,pa,zn,Cs)),dl=gr.count,dl>0?Oa?$t.drawElementsInstancedANGLE(5,4,Oa.type,0<<(Oa.type-5121>>1),dl):$t.drawArraysInstancedANGLE(5,0,4,dl):dl<0&&(Oa?tt.drawElements(5,4,Oa.type,0<<(Oa.type-5121>>1)):tt.drawArrays(5,0,4)),Lt.viewportWidth=vn,Lt.viewportHeight=da,jn&&Pe.destroyStream(ha),qn&&Pe.destroyStream(es),Ca&&Pe.destroyStream(ts),us&&Pe.destroyStream(ho),Gs&&Pe.destroyStream(_l),el.unbind()}yr.dirty=!0,ze.setVAO(null),Xr&&(r.cpuTime+=performance.now()-dt)}}}});var DK=we((Fbr,_7e)=>{"use strict";var pGt=D8(),vGt=F8(),mGt=O8(),yGt=B8(),gGt=q8(),_Gt=N8(),xGt=U8(),bGt=V8(),wGt=G8(),AGt=H8();_7e.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":pGt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":vGt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":mGt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":yGt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":gGt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:_Gt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:xGt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:bGt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:wGt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:AGt}});var w7e=we((Obr,b7e)=>{"use strict";var x7e=RK(),TGt=DK();Object.assign(x7e.reglPrecompiled,TGt);b7e.exports=x7e});var S7e=we((Bbr,T7e)=>{"use strict";var A7e=E9e();A7e.plot=w7e();T7e.exports=A7e});var FK=we((qbr,C7e)=>{"use strict";var SGt=Zc(),k7e=nc(),M7e=Xc().axisHoverFormat,{hovertemplateAttrs:MGt,templatefallbackAttrs:EGt}=Of(),qk=_k(),kGt=qh().idRegex,CGt=Lf().templatedArray,AS=Su().extendFlat,p1=SGt.marker,LGt=p1.line,PGt=AS(k7e("marker.line",{editTypeOverride:"calc"}),{width:AS({},LGt.width,{editType:"calc"}),editType:"calc"}),W8=AS(k7e("marker"),{symbol:p1.symbol,angle:p1.angle,size:AS({},p1.size,{editType:"markerSize"}),sizeref:p1.sizeref,sizemin:p1.sizemin,sizemode:p1.sizemode,opacity:p1.opacity,colorbar:p1.colorbar,line:PGt,editType:"calc"});W8.color.editType=W8.cmin.editType=W8.cmax.editType="style";function E7e(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:kGt[e],editType:"plot"}}}C7e.exports={dimensions:CGt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:AS({},qk.text,{}),hovertext:AS({},qk.hovertext,{}),hovertemplate:MGt(),hovertemplatefallback:EGt(),xhoverformat:M7e("x"),yhoverformat:M7e("y"),marker:W8,xaxes:E7e("x"),yaxes:E7e("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:qk.selected.marker,editType:"calc"},unselected:{marker:qk.unselected.marker,editType:"calc"},opacity:qk.opacity}});var j8=we((Nbr,L7e)=>{"use strict";L7e.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var OK=ei(),zGt=$d(),P7e=FK(),IGt=lc(),RGt=$v(),DGt=j8(),FGt=KF().isOpenSymbol;z7e.exports=function(t,r,n,i){function a(d,p){return OK.coerce(t,r,P7e,d,p)}var o=zGt(t,r,{name:"dimensions",handleItemDefaults:OGt}),s=a("diagonal.visible"),u=a("showupperhalf"),l=a("showlowerhalf"),f=DGt(r,o,"values");if(!f||!s&&!u&&!l){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),RGt(t,r,n,i,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=FGt(r.marker.symbol),h=IGt.isBubble(r);a("marker.line.width",c||h?1:0),BGt(t,r,i,a),OK.coerceSelectionMarkerOpacity(r,a)};function OGt(e,t){function r(i,a){return OK.coerce(e,t,P7e.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function BGt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,u=t.diagonal.visible,l,f,c=new Array(a),h=new Array(a);for(l=0;lf&&o||l{"use strict";var R7e=ei();D7e.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},u=a[r.uid];return u||(u=a[i]=R7e.extendFlat({},o,s),u.draw=function(){u.matrix&&u.matrix.draw&&(u.selectBatch.length||u.unselectBatch.length?u.matrix.draw(u.unselectBatch,u.selectBatch):u.matrix.draw()),u.dirty=!1},u.destroy=function(){u.matrix&&u.matrix.destroy&&u.matrix.destroy(),u.matrixOptions=null,u.selectBatch=null,u.unselectBatch=null,u=null}),u.dirty||R7e.extendFlat(u,o),u}});var q7e=we((Gbr,B7e)=>{"use strict";var BK=ei(),X8=jc(),qGt=B0().calcMarkerSize,NGt=B0().calcAxisExpansion,UGt=F0(),O7e=fw().markerSelection,VGt=fw().markerStyle,GGt=F7e(),HGt=rf().BADNUM,WGt=mx().TOO_MANY_POINTS;B7e.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],u=r._visibleDims=[],l,f,c,h,d;function p(E,A){for(var L=E.makeCalcdata({v:A.values,vcalendar:r.calendar},"v"),x=0;xWGt,v;for(b?v=a.sizeAvg||Math.max(a.size,3):v=qGt(r,i),f=0;f{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?Nk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Nk.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(Nk.exports=function(){return Date.now()-r},r=Date.now()):(Nk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(N7e)});var G7e=we((Hbr,K8)=>{var jGt=U7e(),v1=window,Z8=["moz","webkit"],SS="AnimationFrame",MS=v1["request"+SS],Uk=v1["cancel"+SS]||v1["cancelRequest"+SS];for(TS=0;!MS&&TS{H7e.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,u=t;s{"use strict";var XGt=IY(),ZGt=rg(),YGt=ow(),j7e=G7e(),KGt=W7e(),NK=fS(),JGt=sw();Z7e.exports=Sx;function Sx(e,t){if(!(this instanceof Sx))return new Sx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=XGt(e),this.canvas=this.scatter.canvas}Sx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=j7e(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,j7e(()=>{this.dirty=!1})),this)};Sx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&y{t[a+s]=n})}this.scatter.draw(...t)}return this};Sx.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function $Gt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function J8(e,t,r){let n,i,a,o,s,u,l,f,c=e[t],h=e[r];return c.length>2?(n=c[0],a=c[2],i=c[1],o=c[3]):c.length?(n=i=c[0],a=o=c[1]):(n=c.x,i=c.y,a=c.x+c.width,o=c.y+c.height),h.length>2?(s=h[0],l=h[2],u=h[1],f=h[3]):h.length?(s=u=h[0],l=f=h[1]):(s=h.x,u=h.y,l=h.x+h.width,f=h.y+h.height),[s,i,l,o]}function X7e(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=NK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var J7e=we((Xbr,K7e)=>{"use strict";var QGt=Y7e(),UK=ei(),$8=jc(),eHt=Cm().selectMode;K7e.exports=function(t,r,n){if(n.length)for(var i=0;i-1,M=eHt(f)||!!i.selectedpoints||P,O=!0;if(M){var F=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";$7e.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var Q7e=VK(),rHt=YF().calcHover,eUe=wu().getFromId,iHt=Su().extendFlat;function nHt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=tUe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var u=(a?e.xa:e.ya)._subplotsWith,l=i.gd,f=iHt({},e),c=0;c{"use strict";var sUe=ei(),nUe=sUe.pushUnique,aUe=lc(),oUe=VK();lUe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,u=t.xaxis,l=t.yaxis,f=[];if(!o)return f;var c=!aUe.hasMarkers(i)&&!aUe.hasText(i);if(i.visible!==!0||c)return f;var h=oUe.getDimIndex(i,u),d=oUe.getDimIndex(i,l);if(h===!1||d===!1)return f;var p=a.xpx[h],y=a.ypx[d],b=s[h],v=s[d],C=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var A=0;A{"use strict";var fUe=ei(),aHt=F0(),oHt=fw().markerStyle;cUe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){aHt(t,n),fUe.extendFlat(i.matrixOptions,oHt(t,n));var a=fUe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var pUe=we(($br,dUe)=>{"use strict";var sHt=$l(),lHt=zV();dUe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:FK(),supplyDefaults:I7e(),colorbar:tp(),calc:q7e(),plot:J7e(),hoverPoints:iUe().hoverPoints,selectPoints:uUe(),editStyle:hUe(),meta:{}};sHt.register(lHt)});var xUe=we((Qbr,_Ue)=>{"use strict";var uHt=fK(),fHt=$l(),cHt=R8(),hHt=Rd().getModuleCalcData,Mx=Mh(),vUe=jc().getFromId,mUe=wu().shouldShowZeroLine,yUe="splom",gUe={};function dHt(e){var t=e._fullLayout,r=fHt.getModule(yUe),n=hHt(e.calcdata,r)[0],i=cHt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],gUe);i&&(t._hasOnlyLargeSploms&&GK(e),r.plot(e,{},n))}function pHt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&GK(e);for(var n=0;n{"use strict";var gHt=D8(),_Ht=F8(),xHt=O8(),bHt=B8(),wHt=q8(),AHt=N8(),THt=U8(),SHt=V8(),MHt=G8(),EHt=H8();bUe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":gHt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":_Ht,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":xHt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":bHt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":wHt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:AHt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:THt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:SHt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:MHt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:EHt}});var SUe=we((t2r,TUe)=>{"use strict";var AUe=xUe(),kHt=wUe();Object.assign(AUe.reglPrecompiled,kHt);TUe.exports=AUe});var kUe=we((r2r,EUe)=>{"use strict";var MUe=pUe();MUe.basePlotModule=SUe(),EUe.exports=MUe});var jK=we((i2r,CUe)=>{"use strict";var CHt=nc(),HK=Dd(),WK=gc(),LHt=zc().attributes,Q8=Su().extendFlat,PHt=Lf().templatedArray;CUe.exports={domain:LHt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:WK({editType:"plot"}),tickfont:WK({autoShadowDflt:!0,editType:"plot"}),rangefont:WK({editType:"plot"}),dimensions:PHt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Q8({},HK.tickvals,{editType:"plot"}),ticktext:Q8({},HK.ticktext,{editType:"plot"}),tickformat:Q8({},HK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:Q8({editType:"calc"},CHt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Vk=we((n2r,LUe)=>{"use strict";LUe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var ag=we((a2r,zUe)=>{"use strict";var zHt=$M();function PUe(e){return[e]}zUe.exports={keyFun:function(e){return e.key},repeat:PUe,descend:zHt,wrap:PUe,unwrap:function(e){return e[0]}}});var YK=we((o2r,GUe)=>{"use strict";var zh=Vk(),iy=Kl(),IHt=ag().keyFun,e9=ag().repeat,ES=ei().sorterAsc,RHt=ei().strTranslate,IUe=zh.bar.snapRatio;function RUe(e,t){return e*(1-IUe)+t*IUe}var DUe=zh.bar.snapClose;function DHt(e,t){return e*(1-DUe)+t*DUe}function r9(e,t,r,n){if(FHt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var u=t[a],l=u,f=a;i*f=t[r][0]&&e<=t[r][1])return!0;return!1}function OHt(e){e.attr("x",-zh.bar.captureWidth/2).attr("width",zh.bar.captureWidth)}function BHt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function qHt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=FUe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function OUe(){iy.select(document.body).style("cursor",null)}function ZK(e){e.attr("stroke-dasharray",qHt)}function t9(e,t){var r=iy.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(zh.bar.snapDuration).each("end",t):r;ZK(n)}function BUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,u=r.filter.getConsolidated(),l=FUe(u,s),f=NaN,c=NaN,h=NaN;for(o=0;o<=l.length;o++){var d=l[o];if(d&&d[0]<=t&&t<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=f,isNaN(i)&&(isNaN(c)||isNaN(h)?i=isNaN(c)?h:c:i=t-l[c][1]=C[0]&&v<=C[1]){a.clickableOrdinalRange=C;break}}}return a}function UHt(e,t){iy.event.sourceEvent.stopPropagation();var r=t.height-iy.mouse(e)[1]-2*zh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=BUe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var u=o.map(t.unitToPaddedPx);s.grabPoint=r-u[0]-zh.verticalPadding,s.barLength=u[1]-u[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(l){return l[0]!==o[0]&&l[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function qUe(e,t){iy.event.sourceEvent.stopPropagation();var r=t.height-iy.mouse(e)[1]-2*zh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(ES),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),t9(e.parentNode)}function VHt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(NUe(e,t),qUe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=iy.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,OUe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&XK(r)):XK(r),i.brushCallback(t),t9(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var u=t.unitTickvals;u[u.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(l?[i.newExtent]:[]),i.extent.length||XK(r),i.brushCallback(t),l?t9(e.parentNode,s):(s(),t9(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function NUe(e,t){var r=t.height-iy.mouse(e)[1]-2*zh.verticalPadding,n=BUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),iy.select(document.body).style("cursor",i)}function GHt(e){e.on("mousemove",function(t){iy.event.preventDefault(),t.parent.inBrushDrag||NUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||OUe()}).call(iy.behavior.drag().on("dragstart",function(t){UHt(this,t)}).on("drag",function(t){qUe(this,t)}).on("dragend",function(t){VHt(this,t)}))}function UUe(e,t){return e[0]-t[0]}function HHt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(e9);i.enter().append("rect").classed("background",!0).call(OHt).call(BHt).style("pointer-events",n?"none":"auto").attr("transform",RHt(0,zh.verticalPadding)),i.call(GHt).attr("height",function(s){return s.height-zh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(e9);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-zh.bar.width/2).attr("stroke-width",zh.bar.width+zh.bar.strokeWidth).attr("stroke",t).attr("opacity",zh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(ZK);var o=e.selectAll(".highlight").data(e9);o.enter().append("line").classed("highlight",!0).attr("x",-zh.bar.width/2).attr("stroke-width",zh.bar.width-zh.bar.strokeWidth).attr("stroke",zh.bar.fillColor).attr("opacity",zh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(ZK)}function WHt(e,t,r){var n=e.selectAll("."+zh.cn.axisBrush).data(e9,IHt);n.enter().append("g").classed(zh.cn.axisBrush,!0),HHt(n,t,r)}function jHt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function XK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function XHt(e){return function(r){var n=r.brush,i=jHt(n),a=i.slice();n.filter.set(a),e()}}function VUe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function ZHt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(ES)}).sort(UUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=VUe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function YHt(e,t,r,n,i,a){var o=ZHt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:XHt(i),brushEndCallback:a}}}function KHt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(ES)}),t.multiselect?e=VUe(e.sort(UUe)):e=[e[0]]):e=[e.sort(ES)],t.tickvals){var r=t.tickvals.slice().sort(ES);if(e=e.map(function(n){var i=[r9(0,r,n[0],[]),r9(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}GUe.exports={makeBrush:YHt,ensureAxisBrush:WHt,cleanRanges:KHt}});var jUe=we((s2r,WUe)=>{"use strict";var Ex=ei(),JHt=yp().hasColorscale,$Ht=nd(),QHt=zc().defaults,eWt=$d(),tWt=wu(),HUe=jK(),rWt=YK(),KK=Vk().maxDimensionCount,iWt=j8();function nWt(e,t,r,n,i){var a=i("line.color",r);if(JHt(e,"line")&&Ex.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),$Ht(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function aWt(e,t,r,n){function i(l,f){return Ex.coerce(e,t,HUe.dimensions,l,f)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},tWt.setConvert(t._ax,n.layout),i("multiselect");var u=i("constraintrange");u&&(t.constraintrange=rWt.cleanRanges(u,t))}}WUe.exports=function(t,r,n,i){function a(f,c){return Ex.coerce(t,r,HUe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>KK&&(Ex.log("parcoords traces support up to "+KK+" dimensions at the moment"),o.splice(KK));var s=eWt(t,r,{name:"dimensions",layout:i,handleItemDefaults:aWt}),u=nWt(t,r,n,i,a);QHt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),iWt(r,s,"values",u);var l=Ex.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});Ex.coerceFont(a,"labelfont",l),Ex.coerceFont(a,"tickfont",l,{autoShadowDflt:!0}),Ex.coerceFont(a,"rangefont",l),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var ZUe=we((l2r,XUe)=>{"use strict";var oWt=ei().isArrayOrTypedArray,JK=_c(),sWt=ag().wrap;XUe.exports=function(t,r){var n,i;return JK.hasColorscale(r,"line")&&oWt(r.line.color)?(n=r.line.color,i=JK.extractOpts(r.line).colorscale,JK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=lWt(r._length),i=[[0,r.line.color],[1,r.line.color]]),sWt({lineColor:n,cscale:i})};function lWt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),$K.default[e])r=$K.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var u=t[1];i=u.replace(/a$/,"");var l=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(YUe[h]!==void 0)return YUe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>l?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((c=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var $K,KUe,YUe,JUe=tc(()=>{$K=_rt(FX(),1),KUe=uWt,YUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Gk,QK=tc(()=>{Gk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var i9,$Ue=tc(()=>{QK();i9={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}};Gk.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,u,l;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]}});var eVe={};Iee(eVe,{default:()=>QUe});function QUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=KUe(e);if(!i.space)return[];let a=i.space[0]==="h"?i9.min:Gk.min,o=i.space[0]==="h"?i9.max:Gk.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=i9.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var tVe=tc(()=>{JUe();QK();$Ue()});var eJ=we(n9=>{"use strict";var fWt=ei().isTypedArray;n9.convertTypedArray=function(e){return fWt(e)?Array.prototype.slice.call(e):e};n9.isOrdinal=function(e){return!!e.tickvals};n9.isVisible=function(e){return e.visible||!("visible"in e)}});var cVe=we((y2r,fVe)=>{"use strict";var cWt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),hWt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),Hk=Vk().maxDimensionCount,sVe=ei(),rVe=1e-6,a9=2048,dWt=new Uint8Array(4),iVe=new Uint8Array(4),nVe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function pWt(e){e.read({x:0,y:0,width:1,height:1,data:dWt})}function lVe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function vWt(e,t,r,n,i,a){var o=a.key;function s(u){var l=Math.min(n,i-u*n);u===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],lVe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*l,a.offset=2*u*n,t(a),u*n+l>>8*t)%256/255}function gWt(e,t,r){for(var n=new Array(e*(Hk+4)),i=0,a=0;aj&&(j=S[O].dim1.canvasX,U=O);M===0&&lVe(i,0,0,l.canvasWidth,l.canvasHeight);var W=E(r);for(O=0;O{"use strict";var Ud=Kl(),m1=ei(),rJ=m1.isArrayOrTypedArray,yVe=m1.numberFormat,gVe=(tVe(),mb(eVe)).default,_Ve=wu(),AWt=m1.strRotate,og=m1.strTranslate,TWt=Wf(),o9=Mu(),hVe=_c(),aJ=ag(),im=aJ.keyFun,sg=aJ.repeat,xVe=aJ.unwrap,kS=eJ(),qf=Vk(),bVe=YK(),SWt=cVe();function dVe(e,t,r){return m1.aggNums(e,null,t,r)}function wVe(e,t){return oJ(dVe(Math.min,e,t),dVe(Math.max,e,t))}function s9(e){var t=e.range;return t?oJ(t[0],t[1]):wVe(e.values,e._length)}function oJ(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function MWt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function EWt(e,t,r,n,i){var a=s9(r);return n?Ud.scale.ordinal().domain(n.map(MWt(yVe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Ud.scale.linear().domain(a).range([e-t,t])}function kWt(e,t){return Ud.scale.linear().range([t,e-t])}function CWt(e,t){return Ud.scale.linear().domain(s9(e)).range([t,1-t])}function LWt(e){if(e.tickvals){var t=s9(e);return Ud.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function PWt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=gVe(a[1]);return Ud.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Ud.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function nJ(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function zWt(e,t,r){var n=xVe(t),i=n.trace,a=kS.convertTypedArray(n.lineColor),o=i.line,s={color:gVe(i.unselected.line.color),opacity:i.unselected.line.opacity},u=hVe.extractOpts(o),l=u.reversescale?hVe.flipScale(n.cscale):n.cscale,f=i.domain,c=i.dimensions,h=e.width,d=i.labelangle,p=i.labelside,y=i.labelfont,b=i.tickfont,v=i.rangefont,C=m1.extendDeepNoArrays({},o,{color:a.map(Ud.scale.linear().domain(s9({values:a,range:[u.min,u.max],_length:i._length}))),blockLineCount:qf.blockLineCount,canvasOverdrag:qf.overdrag*qf.canvasPixelRatio}),E=Math.floor(h*(f.x[1]-f.x[0])),A=Math.floor(e.height*(f.y[1]-f.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},x=E,k=A;return{key:r,colCount:c.filter(kS.isVisible).length,dimensions:c,tickDistance:qf.tickDistance,unitToColor:PWt(l),lines:C,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:y,tickFont:b,rangeFont:v,layoutWidth:h,layoutHeight:e.height,domain:f,translateX:f.x[0]*h,translateY:e.height-f.y[1]*e.height,pad:L,canvasWidth:x*qf.canvasPixelRatio+2*C.canvasOverdrag,canvasHeight:k*qf.canvasPixelRatio,width:x,height:k,canvasPixelRatio:qf.canvasPixelRatio}}function IWt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},u=qf.verticalPadding/i,l=kWt(i,qf.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(kS.isVisible).map(function(h,d){var p=CWt(h,u),y=c[h.label];c[h.label]=(y||0)+1;var b=h.label+(y?"__"+y:""),v=h.constraintrange,C=v&&v.length;C&&!rJ(v[0])&&(v=[v]);var E=C?v.map(function(F){return F.map(p)}):[[-1/0,1/0]],A=function(){var F=f;F.focusLayer&&F.focusLayer.render(F.panels,!0);var U=nJ(F);!e.contextShown()&&U?(F.contextLayer&&F.contextLayer.render(F.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(F.contextLayer&&F.contextLayer.render(F.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var x=h.tickvals,k;function S(F,U){return{val:F,text:k[U]}}function m(F,U){return F.val-U.val}if(rJ(x)&&x.length){m1.isTypedArray(x)&&(x=Array.from(x)),k=h.ticktext,!rJ(k)||!k.length?k=x.map(yVe(h.tickformat)):k.length>x.length?k=k.slice(0,x.length):x.length>k.length&&(x=x.slice(0,k.length));for(var P=1;P=U||N>=G)return;var H=O.lineLayer.readPixel(W,G-1-N),re=H[3]!==0,ae=re?H[2]+256*(H[1]+256*H[0]):null,me={x:W,y:N,clientX:F.clientX,clientY:F.clientY,dataIndex:O.model.key,curveNumber:ae};ae!==p&&(re?i.hover(me):i.unhover&&i.unhover(me),p=ae)}}),d.style("opacity",function(O){return O.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+qf.cn.parcoords).data(h,im);b.exit().remove(),b.enter().append("g").classed(qf.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(O){return og(O.model.translateX,O.model.translateY)});var v=b.selectAll("."+qf.cn.parcoordsControlView).data(sg,im);v.enter().append("g").classed(qf.cn.parcoordsControlView,!0),v.attr("transform",function(O){return og(O.model.pad.l,O.model.pad.t)});var C=v.selectAll("."+qf.cn.yAxis).data(function(O){return O.dimensions},im);C.enter().append("g").classed(qf.cn.yAxis,!0),v.each(function(O){iJ(C,O,l)}),d.each(function(O){if(O.viewModel){!O.lineLayer||i?O.lineLayer=SWt(this,O):O.lineLayer.update(O),(O.key||O.key===0)&&(O.viewModel[O.key]=O.lineLayer);var F=!O.context||i;O.lineLayer.render(O.viewModel.panels,F)}}),C.attr("transform",function(O){return og(O.xScale(O.xIndex),0)}),C.call(Ud.behavior.drag().origin(function(O){return O}).on("drag",function(O){var F=O.parent;c.linePickActive(!1),O.x=Math.max(-qf.overdrag,Math.min(O.model.width+qf.overdrag,Ud.event.x)),O.canvasX=O.x*O.model.canvasPixelRatio,C.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=O===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),iJ(C,F,l),C.filter(function(U){return Math.abs(O.xIndex-U.xIndex)!==0}).attr("transform",function(U){return og(U.xScale(U.xIndex),0)}),Ud.select(this).attr("transform",og(O.x,0)),C.each(function(U,G,j){j===O.parent.key&&(F.dimensions[G]=U)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!nJ(F)),F.focusLayer.render&&F.focusLayer.render(F.panels)}).on("dragend",function(O){var F=O.parent;O.x=O.xScale(O.xIndex),O.canvasX=O.x*O.model.canvasPixelRatio,iJ(C,F,l),Ud.select(this).attr("transform",function(U){return og(U.x,0)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!nJ(F)),F.focusLayer&&F.focusLayer.render(F.panels),F.pickLayer&&F.pickLayer.render(F.panels,!0),c.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(F.key,F.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),C.exit().remove();var E=C.selectAll("."+qf.cn.axisOverlays).data(sg,im);E.enter().append("g").classed(qf.cn.axisOverlays,!0),E.selectAll("."+qf.cn.axis).remove();var A=E.selectAll("."+qf.cn.axis).data(sg,im);A.enter().append("g").classed(qf.cn.axis,!0),A.each(function(O){var F=O.model.height/O.model.tickDistance,U=O.domainScale,G=U.domain();Ud.select(this).call(Ud.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(F,O.tickFormat).tickValues(O.ordinal?G:null).tickFormat(function(j){return kS.isOrdinal(O)?j:AVe(O.model.dimensions[O.visibleIndex],j)}).scale(U)),o9.font(A.selectAll("text"),O.model.tickFont)}),A.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),A.selectAll("text").style("cursor","default");var L=E.selectAll("."+qf.cn.axisHeading).data(sg,im);L.enter().append("g").classed(qf.cn.axisHeading,!0);var x=L.selectAll("."+qf.cn.axisTitle).data(sg,im);x.enter().append("text").classed(qf.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(O){return O.label}).each(function(O){var F=Ud.select(this);o9.font(F,O.model.labelFont),TWt.convertToTspans(F,t)}).attr("transform",function(O){var F=vVe(O.model.labelAngle,O.model.labelSide),U=qf.axisTitleOffset;return(F.dir>0?"":og(0,2*U+O.model.height))+AWt(F.degrees)+og(-U*F.dx,-U*F.dy)}).attr("text-anchor",function(O){var F=vVe(O.model.labelAngle,O.model.labelSide),U=Math.abs(F.dx),G=Math.abs(F.dy);return 2*U>G?F.dir*F.dx<0?"start":"end":"middle"});var k=E.selectAll("."+qf.cn.axisExtent).data(sg,im);k.enter().append("g").classed(qf.cn.axisExtent,!0);var S=k.selectAll("."+qf.cn.axisExtentTop).data(sg,im);S.enter().append("g").classed(qf.cn.axisExtentTop,!0),S.attr("transform",og(0,-qf.axisExtentOffset));var m=S.selectAll("."+qf.cn.axisExtentTopText).data(sg,im);m.enter().append("text").classed(qf.cn.axisExtentTopText,!0).call(pVe),m.text(function(O){return mVe(O,!0)}).each(function(O){o9.font(Ud.select(this),O.model.rangeFont)});var P=k.selectAll("."+qf.cn.axisExtentBottom).data(sg,im);P.enter().append("g").classed(qf.cn.axisExtentBottom,!0),P.attr("transform",function(O){return og(0,O.model.height+qf.axisExtentOffset)});var M=P.selectAll("."+qf.cn.axisExtentBottomText).data(sg,im);M.enter().append("text").classed(qf.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(pVe),M.text(function(O){return mVe(O,!1)}).each(function(O){o9.font(Ud.select(this),O.model.rangeFont)}),bVe.ensureAxisBrush(E,f,t)}});var lJ=we((sJ,CVe)=>{"use strict";var FWt=SVe(),OWt=R8(),MVe=eJ().isVisible,kVe={};function EVe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function BWt(e,t){return function(n,i){return EVe(e,t,n)-EVe(e,t,i)}}var sJ=CVe.exports=function(t,r){var n=t._fullLayout,i=OWt(t,[],kVe);if(i){var a={},o={},s={},u={},l=n._size;r.forEach(function(p,y){var b=p[0].trace;s[y]=b.index;var v=u[y]=b.index;a[y]=t.data[v].dimensions,o[y]=t.data[v].dimensions.slice()});var f=function(p,y,b){var v=o[p][y],C=b.map(function(S){return S.slice()}),E="dimensions["+y+"].constraintrange",A=n._tracePreGUI[t._fullData[s[p]]._fullInput.uid];if(A[E]===void 0){var L=v.constraintrange;A[E]=L||null}var x=t._fullData[s[p]].dimensions[y];C.length?(C.length===1&&(C=C[0]),v.constraintrange=C,x.constraintrange=C.slice(),C=[C]):(delete v.constraintrange,delete x.constraintrange,C=null);var k={};k[E]=C,t.emit("plotly_restyle",[k,[u[p]]])},c=function(p){t.emit("plotly_hover",p)},h=function(p){t.emit("plotly_unhover",p)},d=function(p,y){var b=BWt(y,o[p].filter(MVe));a[p].sort(b),o[p].filter(function(v){return!MVe(v)}).sort(function(v){return o[p].indexOf(v)}).forEach(function(v){a[p].splice(a[p].indexOf(v),1),a[p].splice(o[p].indexOf(v),0,v)}),t.emit("plotly_restyle",[{dimensions:[a[p]]},[u[p]]])};FWt(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:f,hover:c,unhover:h,axesMoved:d})}};sJ.reglPrecompiled=kVe});var PVe=we(Wk=>{"use strict";var LVe=Kl(),qWt=Rd().getModuleCalcData,NWt=lJ(),UWt=jv();Wk.name="parcoords";Wk.plot=function(e){var t=qWt(e.calcdata,"parcoords")[0];t.length&&NWt(e,t)};Wk.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};Wk.toSVG=function(e){var t=e._fullLayout._glimages,r=LVe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:UWt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){LVe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var IVe=we((x2r,zVe)=>{"use strict";zVe.exports={attributes:jK(),supplyDefaults:jUe(),calc:ZUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:PVe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var DVe=we((b2r,RVe)=>{RVe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,y=t.elements,b=t.buffer,v=t.shader,C=t.attributes,E=t.vao,A=t.uniforms,L=t.framebuffer,x=t.extensions,k=t.timer,S=t.isBufferArgs,m=h.blend_color,P=d.blend_color,M=h.blend_equation,O=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,W=h.colorMask,N=d.colorMask,H=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,me=d.sample_coverage,Ce=h.stencil_func,Ee=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,Se=h.stencil_opBack,Te=d.stencil_opBack,be=h.scissor_box,He=d.scissor_box,Ie=h.viewport,ge=d.viewport,Be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},je={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rt={add:32774,subtract:32778,"reverse subtract":32779},bt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ot={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ke={},zt={},{draw:function(Mt){var kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt;if(kt=Mt.framebuffer,$e=L.getFramebuffer(kt),Re=L.next,L.next=$e,Me=f.framebufferWidth,f.framebufferWidth=$e?$e.width:f.drawingBufferWidth,oe=f.framebufferHeight,f.framebufferHeight=$e?$e.height:f.drawingBufferHeight,$e!==L.cur&&($e?l.bindFramebuffer(36160,$e.framebuffer):l.bindFramebuffer(36160,null),L.cur=$e),d.dirty){var Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di;Pe=h.dither,Pe!==d.dither&&(Pe?l.enable(3024):l.disable(3024),d.dither=Pe),xe=h.blend_enable,xe!==d.blend_enable&&(xe?l.enable(3042):l.disable(3042),d.blend_enable=xe),Oe=m[0],ze=m[1],De=m[2],ht=m[3],(Oe!==P[0]||ze!==P[1]||De!==P[2]||ht!==P[3])&&(l.blendColor(Oe,ze,De,ht),P[0]=Oe,P[1]=ze,P[2]=De,P[3]=ht),st=M[0],gt=M[1],(st!==O[0]||gt!==O[1])&&(l.blendEquationSeparate(st,gt),O[0]=st,O[1]=gt),xt=F[0],pr=F[1],br=F[2],cr=F[3],(xt!==U[0]||pr!==U[1]||br!==U[2]||cr!==U[3])&&(l.blendFuncSeparate(xt,pr,br,cr),U[0]=xt,U[1]=pr,U[2]=br,U[3]=cr),Er=h.depth_enable,Er!==d.depth_enable&&(Er?l.enable(2929):l.disable(2929),d.depth_enable=Er),ii=h.depth_func,ii!==d.depth_func&&(l.depthFunc(ii),d.depth_func=ii),jr=G[0],kr=G[1],(jr!==j[0]||kr!==j[1])&&(l.depthRange(jr,kr),j[0]=jr,j[1]=kr),Vr=h.depth_mask,Vr!==d.depth_mask&&(l.depthMask(Vr),d.depth_mask=Vr),Ai=W[0],Bi=W[1],Ri=W[2],ln=W[3],(Ai!==N[0]||Bi!==N[1]||Ri!==N[2]||ln!==N[3])&&(l.colorMask(Ai,Bi,Ri,ln),N[0]=Ai,N[1]=Bi,N[2]=Ri,N[3]=ln),hn=h.cull_enable,hn!==d.cull_enable&&(hn?l.enable(2884):l.disable(2884),d.cull_enable=hn),qr=h.cull_face,qr!==d.cull_face&&(l.cullFace(qr),d.cull_face=qr),_i=h.frontFace,_i!==d.frontFace&&(l.frontFace(_i),d.frontFace=_i),zi=h.lineWidth,zi!==d.lineWidth&&(l.lineWidth(zi),d.lineWidth=zi),Dt=h.polygonOffset_enable,Dt!==d.polygonOffset_enable&&(Dt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Dt),_t=H[0],qt=H[1],(_t!==re[0]||qt!==re[1])&&(l.polygonOffset(_t,qt),re[0]=_t,re[1]=qt),Nt=h.sample_alpha,Nt!==d.sample_alpha&&(Nt?l.enable(32926):l.disable(32926),d.sample_alpha=Nt),mr=h.sample_enable,mr!==d.sample_enable&&(mr?l.enable(32928):l.disable(32928),d.sample_enable=mr),Lr=ae[0],Nr=ae[1],(Lr!==me[0]||Nr!==me[1])&&(l.sampleCoverage(Lr,Nr),me[0]=Lr,me[1]=Nr),Fr=h.stencil_enable,Fr!==d.stencil_enable&&(Fr?l.enable(2960):l.disable(2960),d.stencil_enable=Fr),Hr=h.stencil_mask,Hr!==d.stencil_mask&&(l.stencilMask(Hr),d.stencil_mask=Hr),Gr=Ce[0],mi=Ce[1],Ei=Ce[2],(Gr!==Ee[0]||mi!==Ee[1]||Ei!==Ee[2])&&(l.stencilFunc(Gr,mi,Ei),Ee[0]=Gr,Ee[1]=mi,Ee[2]=Ei),Vi=de[0],ti=de[1],Qi=de[2],Yr=de[3],(Vi!==te[0]||ti!==te[1]||Qi!==te[2]||Yr!==te[3])&&(l.stencilOpSeparate(Vi,ti,Qi,Yr),te[0]=Vi,te[1]=ti,te[2]=Qi,te[3]=Yr),oi=Se[0],Fi=Se[1],rn=Se[2],tn=Se[3],(oi!==Te[0]||Fi!==Te[1]||rn!==Te[2]||tn!==Te[3])&&(l.stencilOpSeparate(oi,Fi,rn,tn),Te[0]=oi,Te[1]=Fi,Te[2]=rn,Te[3]=tn),Di=h.scissor_enable,Di!==d.scissor_enable&&(Di?l.enable(3089):l.disable(3089),d.scissor_enable=Di)}Ne=f.framebufferWidth,vt=f.framebufferHeight,lt=f.viewportWidth,f.viewportWidth=Ne,We=f.viewportHeight,f.viewportHeight=vt,l.viewport(0,0,Ne,vt),ge[0]=0,ge[1]=0,ge[2]=Ne,ge[3]=vt,Ve=f.framebufferWidth,et=f.framebufferHeight,l.scissor(0,0,Ve,et),He[0]=0,He[1]=0,He[2]=Ve,He[3]=et,tt=d.profile,tt&&(Lt=performance.now(),r.count++),jt=v.frag,or=v.vert,yr=v.program(or,jt),l.useProgram(yr.program),E.setVAO(null),vr=yr.id,Vt=Ke[vr],Vt?Vt.call(this,Mt):(Vt=Ke[vr]=n(yr),Vt.call(this,Mt)),d.dirty=!0,E.setVAO(null),L.next=Re,f.framebufferWidth=Me,f.framebufferHeight=oe,f.viewportWidth=lt,f.viewportHeight=We,tt&&(r.cpuTime+=performance.now()-Lt)},scope:function(Mt,kt,$e){var Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De;Re=Mt.framebuffer,Me=L.getFramebuffer(Re),oe=L.next,L.next=Me,Ne=f.framebufferWidth,f.framebufferWidth=Me?Me.width:f.drawingBufferWidth,vt=f.framebufferHeight,f.framebufferHeight=Me?Me.height:f.drawingBufferHeight,lt=f.framebufferWidth,We=f.framebufferHeight,Ve=f.viewportWidth,f.viewportWidth=lt,et=f.viewportHeight,f.viewportHeight=We,tt=Ie[0],Ie[0]=i,Lt=Ie[1],Ie[1]=a,jt=Ie[2],Ie[2]=lt,or=Ie[3],Ie[3]=We,yr=f.framebufferWidth,vr=f.framebufferHeight,Vt=be[0],be[0]=o,Pe=be[1],be[1]=s,xe=be[2],be[2]=yr,Oe=be[3],be[3]=vr,ze=d.profile,ze&&(De=performance.now(),r.count++),d.dirty=!0,kt(f,Mt,$e),L.next=oe,f.framebufferWidth=Ne,f.framebufferHeight=vt,f.viewportWidth=Ve,f.viewportHeight=et,Ie[0]=tt,Ie[1]=Lt,Ie[2]=jt,Ie[3]=or,be[0]=Vt,be[1]=Pe,be[2]=xe,be[3]=Oe,ze&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(Mt,kt){var $e,Re,Me,oe,Ne,vt,lt;if(d.dirty){var We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi;We=h.dither,We!==d.dither&&(We?l.enable(3024):l.disable(3024),d.dither=We),Ve=h.blend_enable,Ve!==d.blend_enable&&(Ve?l.enable(3042):l.disable(3042),d.blend_enable=Ve),et=m[0],tt=m[1],Lt=m[2],jt=m[3],(et!==P[0]||tt!==P[1]||Lt!==P[2]||jt!==P[3])&&(l.blendColor(et,tt,Lt,jt),P[0]=et,P[1]=tt,P[2]=Lt,P[3]=jt),or=M[0],yr=M[1],(or!==O[0]||yr!==O[1])&&(l.blendEquationSeparate(or,yr),O[0]=or,O[1]=yr),vr=F[0],Vt=F[1],Pe=F[2],xe=F[3],(vr!==U[0]||Vt!==U[1]||Pe!==U[2]||xe!==U[3])&&(l.blendFuncSeparate(vr,Vt,Pe,xe),U[0]=vr,U[1]=Vt,U[2]=Pe,U[3]=xe),Oe=h.depth_enable,Oe!==d.depth_enable&&(Oe?l.enable(2929):l.disable(2929),d.depth_enable=Oe),ze=h.depth_func,ze!==d.depth_func&&(l.depthFunc(ze),d.depth_func=ze),De=G[0],ht=G[1],(De!==j[0]||ht!==j[1])&&(l.depthRange(De,ht),j[0]=De,j[1]=ht),st=h.depth_mask,st!==d.depth_mask&&(l.depthMask(st),d.depth_mask=st),gt=W[0],xt=W[1],pr=W[2],br=W[3],(gt!==N[0]||xt!==N[1]||pr!==N[2]||br!==N[3])&&(l.colorMask(gt,xt,pr,br),N[0]=gt,N[1]=xt,N[2]=pr,N[3]=br),cr=h.cull_enable,cr!==d.cull_enable&&(cr?l.enable(2884):l.disable(2884),d.cull_enable=cr),Er=h.cull_face,Er!==d.cull_face&&(l.cullFace(Er),d.cull_face=Er),ii=h.frontFace,ii!==d.frontFace&&(l.frontFace(ii),d.frontFace=ii),jr=h.lineWidth,jr!==d.lineWidth&&(l.lineWidth(jr),d.lineWidth=jr),kr=h.polygonOffset_enable,kr!==d.polygonOffset_enable&&(kr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=kr),Vr=H[0],Ai=H[1],(Vr!==re[0]||Ai!==re[1])&&(l.polygonOffset(Vr,Ai),re[0]=Vr,re[1]=Ai),Bi=h.sample_alpha,Bi!==d.sample_alpha&&(Bi?l.enable(32926):l.disable(32926),d.sample_alpha=Bi),Ri=h.sample_enable,Ri!==d.sample_enable&&(Ri?l.enable(32928):l.disable(32928),d.sample_enable=Ri),ln=ae[0],hn=ae[1],(ln!==me[0]||hn!==me[1])&&(l.sampleCoverage(ln,hn),me[0]=ln,me[1]=hn),qr=h.stencil_enable,qr!==d.stencil_enable&&(qr?l.enable(2960):l.disable(2960),d.stencil_enable=qr),_i=h.stencil_mask,_i!==d.stencil_mask&&(l.stencilMask(_i),d.stencil_mask=_i),zi=Ce[0],Dt=Ce[1],_t=Ce[2],(zi!==Ee[0]||Dt!==Ee[1]||_t!==Ee[2])&&(l.stencilFunc(zi,Dt,_t),Ee[0]=zi,Ee[1]=Dt,Ee[2]=_t),qt=de[0],Nt=de[1],mr=de[2],Lr=de[3],(qt!==te[0]||Nt!==te[1]||mr!==te[2]||Lr!==te[3])&&(l.stencilOpSeparate(qt,Nt,mr,Lr),te[0]=qt,te[1]=Nt,te[2]=mr,te[3]=Lr),Nr=Se[0],Fr=Se[1],Hr=Se[2],Gr=Se[3],(Nr!==Te[0]||Fr!==Te[1]||Hr!==Te[2]||Gr!==Te[3])&&(l.stencilOpSeparate(Nr,Fr,Hr,Gr),Te[0]=Nr,Te[1]=Fr,Te[2]=Hr,Te[3]=Gr),mi=h.scissor_enable,mi!==d.scissor_enable&&(mi?l.enable(3089):l.disable(3089),d.scissor_enable=mi)}$e=d.profile,$e&&(Re=performance.now(),r.count+=kt),Me=v.frag,oe=v.vert,Ne=v.program(oe,Me),l.useProgram(Ne.program),E.setVAO(null),vt=Ne.id,lt=zt[vt],lt?lt.call(this,Mt,kt):(lt=zt[vt]=u(Ne),lt.call(this,Mt,kt)),d.dirty=!0,E.setVAO(null),$e&&(r.cpuTime+=performance.now()-Re)}}}});var OVe=we((w2r,FVe)=>{FVe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr,oi,Fi,rn,tn,Di,Ii,xn,xi,Xr,dt,$t,fr,gr,Zr,wi,$i,ni,Xi,aa,Mn,Un,Ga,ma,oa,ka,so){"use strict";var Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,Wi,gn,Ps,Ha,Sn,ao,Oa,Ko,Qo,Hi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Ba,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,sn,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,en,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa;return Kr=t.gl,Ia=t.context,Yo=t.strings,fa=t.next,kn=t.current,Ta=t.draw,ys=t.elements,uo=t.buffer,ls=t.shader,$a=t.attributes,fo=t.vao,mn=t.uniforms,ra=t.framebuffer,wa=t.extensions,ws=t.timer,Co=t.isBufferArgs,Po=fa.blend_color,Wi=kn.blend_color,gn=fa.blend_equation,Ps=kn.blend_equation,Ha=fa.blend_func,Sn=kn.blend_func,ao=fa.depth_range,Oa=kn.depth_range,Ko=fa.colorMask,Qo=kn.colorMask,Hi=fa.polygonOffset_offset,Sa=kn.polygonOffset_offset,Qa=fa.sample_coverage,vn=kn.sample_coverage,da=fa.stencil_func,la=kn.stencil_func,vo=fa.stencil_opFront,As=kn.stencil_opFront,ps=fa.stencil_opBack,co=kn.stencil_opBack,mo=fa.scissor_box,No=kn.scissor_box,jn=fa.viewport,Go=kn.viewport,Ys={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},qs={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ns={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ba={add:32774,subtract:32778,"reverse subtract":32779},ha={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Vs={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ya={cw:2304,ccw:2305},_n={},Vn={},wo=new Float32Array(16),Ra=new Float32Array(16),Xn=new Float32Array(16),sn=new Float32Array(16),$n=new Float32Array(16),Ka=new Float32Array(16),qn=new Float32Array(16),Eo=new Float32Array(16),Ja=new Float32Array(16),lo=new Float32Array(16),eo=new Float32Array(16),sa=new Float32Array(16),es=new Float32Array(16),Na=new Float32Array(16),en=new Float32Array(16),Pa=new Float32Array(16),to=new Float32Array(16),yo=new Float32Array(16),Jo=new Float32Array(16),Ao=new Float32Array(16),Dn=new Float32Array(16),_a=new Float32Array(16),Ws=new Float32Array(16),Ca=new Float32Array(16),Es=new Float32Array(16),Ts=new Float32Array(16),Ho=new Float32Array(16),Wa=new Float32Array(16),To=new Float32Array(16),ts=new Float32Array(16),Wo=new Float32Array(16),qa=new Float32Array(16),{draw:function(on){var Oo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js;if(Oo=ra.next,Oo!==ra.cur&&(Oo?Kr.bindFramebuffer(36160,Oo.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=Oo),kn.dirty){var cs,sl,ll,nl,zl,Ml,Rl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt;cs=Ko[0],sl=Ko[1],ll=Ko[2],nl=Ko[3],(cs!==Qo[0]||sl!==Qo[1]||ll!==Qo[2]||nl!==Qo[3])&&(Kr.colorMask(cs,sl,ll,nl),Qo[0]=cs,Qo[1]=sl,Qo[2]=ll,Qo[3]=nl),zl=fa.frontFace,zl!==kn.frontFace&&(Kr.frontFace(zl),kn.frontFace=zl),Ml=fa.polygonOffset_enable,Ml!==kn.polygonOffset_enable&&(Ml?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=Ml),Rl=Hi[0],Al=Hi[1],(Rl!==Sa[0]||Al!==Sa[1])&&(Kr.polygonOffset(Rl,Al),Sa[0]=Rl,Sa[1]=Al),Ll=fa.sample_alpha,Ll!==kn.sample_alpha&&(Ll?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=Ll),ms=fa.sample_enable,ms!==kn.sample_enable&&(ms?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=ms),Bs=Qa[0],Xl=Qa[1],(Bs!==vn[0]||Xl!==vn[1])&&(Kr.sampleCoverage(Bs,Xl),vn[0]=Bs,vn[1]=Xl),Gl=fa.stencil_enable,Gl!==kn.stencil_enable&&(Gl?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Gl),Nl=fa.stencil_mask,Nl!==kn.stencil_mask&&(Kr.stencilMask(Nl),kn.stencil_mask=Nl),ue=da[0],w=da[1],q=da[2],(ue!==la[0]||w!==la[1]||q!==la[2])&&(Kr.stencilFunc(ue,w,q),la[0]=ue,la[1]=w,la[2]=q),Q=vo[0],ee=vo[1],fe=vo[2],Ue=vo[3],(Q!==As[0]||ee!==As[1]||fe!==As[2]||Ue!==As[3])&&(Kr.stencilOpSeparate(Q,ee,fe,Ue),As[0]=Q,As[1]=ee,As[2]=fe,As[3]=Ue),at=ps[0],yt=ps[1],Rt=ps[2],Qt=ps[3],(at!==co[0]||yt!==co[1]||Rt!==co[2]||Qt!==co[3])&&(Kr.stencilOpSeparate(at,yt,Rt,Qt),co[0]=at,co[1]=yt,co[2]=Rt,co[3]=Qt)}ko=on.viewportX,_n.x=ko,oo=on.viewportY,_n.y=oo,za=on.viewportWidth,_n.width=za,ea=on.viewportHeight,_n.height=ea,rs=_n.x|0,$s=_n.y|0,us="width"in _n?_n.width|0:Ia.framebufferWidth-rs,Ds="height"in _n?_n.height|0:Ia.framebufferHeight-$s,fl=Ia.viewportWidth,Ia.viewportWidth=us,as=Ia.viewportHeight,Ia.viewportHeight=Ds,Kr.viewport(rs,$s,us,Ds),Go[0]=rs,Go[1]=$s,Go[2]=us,Go[3]=Ds,Kr.blendColor(0,0,0,0),Wi[0]=0,Wi[1]=0,Wi[2]=0,Wi[3]=0,n?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=n,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,i?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=i,Kr.cullFace(a),kn.cull_face=a,o?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=o,Kr.depthFunc(s),kn.depth_func=s,Kr.depthMask(u),kn.depth_mask=u,Kr.depthRange(0,1),Oa[0]=0,Oa[1]=1,l?Kr.enable(3024):Kr.disable(3024),kn.dither=l,Kr.lineWidth(f),kn.lineWidth=f,Ma=on.scissorX,Vn.x=Ma,Qs=on.scissorY,Vn.y=Qs,ho=on.scissorWidth,Vn.width=ho,gs=on.scissorHeight,Vn.height=gs,Vo=Vn.x|0,Do=Vn.y|0,Lo="width"in Vn?Vn.width|0:Ia.framebufferWidth-Vo,xs="height"in Vn?Vn.height|0:Ia.framebufferHeight-Do,Kr.scissor(Vo,Do,Lo,xs),No[0]=Vo,No[1]=Do,No[2]=Lo,No[3]=xs,c?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=c,ks=kn.profile,kn.profile=!1,Kr.useProgram(h.program),fo.setVAO(null),Ea=p.location,Jn=$a[Ea],Jn.buffer||Kr.enableVertexAttribArray(Ea),(Jn.type!==d.dtype||Jn.size!==4||Jn.buffer!==d||Jn.normalized!==!1||Jn.offset!==0||Jn.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(Ea,4,d.dtype,!1,0,0),Jn.type=d.dtype,Jn.size=4,Jn.buffer=d,Jn.normalized=!1,Jn.offset=0,Jn.stride=0),Bo=b.location,rl=$a[Bo],rl.buffer||Kr.enableVertexAttribArray(Bo),(rl.type!==y.dtype||rl.size!==4||rl.buffer!==y||rl.normalized!==!1||rl.offset!==0||rl.stride!==0)&&(Kr.bindBuffer(34962,y.buffer),Kr.vertexAttribPointer(Bo,4,y.dtype,!1,0,0),rl.type=y.dtype,rl.size=4,rl.buffer=y,rl.normalized=!1,rl.offset=0,rl.stride=0),Gs=C.location,bs=$a[Gs],bs.buffer||Kr.enableVertexAttribArray(Gs),(bs.type!==v.dtype||bs.size!==4||bs.buffer!==v||bs.normalized!==!1||bs.offset!==0||bs.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(Gs,4,v.dtype,!1,0,0),bs.type=v.dtype,bs.size=4,bs.buffer=v,bs.normalized=!1,bs.offset=0,bs.stride=0),zs=A.location,$o=$a[zs],$o.buffer||Kr.enableVertexAttribArray(zs),($o.type!==E.dtype||$o.size!==4||$o.buffer!==E||$o.normalized!==!1||$o.offset!==0||$o.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zs,4,E.dtype,!1,0,0),$o.type=E.dtype,$o.size=4,$o.buffer=E,$o.normalized=!1,$o.offset=0,$o.stride=0),Aa=x.location,os=$a[Aa],os.buffer||Kr.enableVertexAttribArray(Aa),(os.type!==L.dtype||os.size!==4||os.buffer!==L||os.normalized!==!1||os.offset!==0||os.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Aa,4,L.dtype,!1,0,0),os.type=L.dtype,os.size=4,os.buffer=L,os.normalized=!1,os.offset=0,os.stride=0),_l=S.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==k.dtype||Ss.size!==4||Ss.buffer!==k||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,k.buffer),Kr.vertexAttribPointer(_l,4,k.dtype,!1,0,0),Ss.type=k.dtype,Ss.size=4,Ss.buffer=k,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=P.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==m.dtype||go.size!==4||go.buffer!==m||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(po,4,m.dtype,!1,0,0),go.type=m.dtype,go.size=4,go.buffer=m,go.normalized=!1,go.offset=0,go.stride=0),ss=O.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==M.dtype||qo.size!==4||qo.buffer!==M||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,M.buffer),Kr.vertexAttribPointer(ss,4,M.dtype,!1,0,0),qo.type=M.dtype,qo.size=4,qo.buffer=M,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=U.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==F.dtype||io.size!==4||io.buffer!==F||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(zo,4,F.dtype,!1,0,0),io.type=F.dtype,io.size=4,io.buffer=F,io.normalized=!1,io.offset=0,io.stride=0),Io=j.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==G.dtype||Da.size!==4||Da.buffer!==G||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(Io,4,G.dtype,!1,0,0),Da.type=G.dtype,Da.size=4,Da.buffer=G,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=N.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==W.dtype||fs.size!==4||fs.buffer!==W||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(vs,4,W.dtype,!1,0,0),fs.type=W.dtype,fs.size=4,fs.buffer=W,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=re.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==H.dtype||el.size!==4||el.buffer!==H||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(cl,4,H.dtype,!1,0,0),el.type=H.dtype,el.size=4,el.buffer=H,el.normalized=!1,el.offset=0,el.stride=0),Hs=me.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==ae.dtype||Ro.size!==4||Ro.buffer!==ae||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Hs,4,ae.dtype,!1,0,0),Ro.type=ae.dtype,Ro.size=4,Ro.buffer=ae,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=Ee.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==Ce.dtype||Fs.size!==4||Fs.buffer!==Ce||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,Ce.buffer),Kr.vertexAttribPointer(tl,4,Ce.dtype,!1,0,0),Fs.type=Ce.dtype,Fs.size=4,Fs.buffer=Ce,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=te.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==de.dtype||Fa.size!==4||Fa.buffer!==de||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(hl,4,de.dtype,!1,0,0),Fa.type=de.dtype,Fa.size=4,Fa.buffer=de,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=Te.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==Se.dtype||jo.size!==4||jo.buffer!==Se||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,Se.buffer),Kr.vertexAttribPointer(Ms,4,Se.dtype,!1,0,0),jo.type=Se.dtype,jo.size=4,jo.buffer=Se,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=on.contextColor,Is=Rs[0],Os=Rs[1],St=Rs[2],Ut=Rs[3],Kr.uniform4f(be.location,Is,Os,St,Ut),xr=on.dim0A,Kr.uniformMatrix4fv(He.location,!1,Array.isArray(xr)||xr instanceof Float32Array?xr:(wo[0]=xr[0],wo[1]=xr[1],wo[2]=xr[2],wo[3]=xr[3],wo[4]=xr[4],wo[5]=xr[5],wo[6]=xr[6],wo[7]=xr[7],wo[8]=xr[8],wo[9]=xr[9],wo[10]=xr[10],wo[11]=xr[11],wo[12]=xr[12],wo[13]=xr[13],wo[14]=xr[14],wo[15]=xr[15],wo)),dr=on.dim0B,Kr.uniformMatrix4fv(Ie.location,!1,Array.isArray(dr)||dr instanceof Float32Array?dr:(Ra[0]=dr[0],Ra[1]=dr[1],Ra[2]=dr[2],Ra[3]=dr[3],Ra[4]=dr[4],Ra[5]=dr[5],Ra[6]=dr[6],Ra[7]=dr[7],Ra[8]=dr[8],Ra[9]=dr[9],Ra[10]=dr[10],Ra[11]=dr[11],Ra[12]=dr[12],Ra[13]=dr[13],Ra[14]=dr[14],Ra[15]=dr[15],Ra)),Dr=on.dim0C,Kr.uniformMatrix4fv(ge.location,!1,Array.isArray(Dr)||Dr instanceof Float32Array?Dr:(Xn[0]=Dr[0],Xn[1]=Dr[1],Xn[2]=Dr[2],Xn[3]=Dr[3],Xn[4]=Dr[4],Xn[5]=Dr[5],Xn[6]=Dr[6],Xn[7]=Dr[7],Xn[8]=Dr[8],Xn[9]=Dr[9],Xn[10]=Dr[10],Xn[11]=Dr[11],Xn[12]=Dr[12],Xn[13]=Dr[13],Xn[14]=Dr[14],Xn[15]=Dr[15],Xn)),yi=on.dim0D,Kr.uniformMatrix4fv(Be.location,!1,Array.isArray(yi)||yi instanceof Float32Array?yi:(sn[0]=yi[0],sn[1]=yi[1],sn[2]=yi[2],sn[3]=yi[3],sn[4]=yi[4],sn[5]=yi[5],sn[6]=yi[6],sn[7]=yi[7],sn[8]=yi[8],sn[9]=yi[9],sn[10]=yi[10],sn[11]=yi[11],sn[12]=yi[12],sn[13]=yi[13],sn[14]=yi[14],sn[15]=yi[15],sn)),Ti=on.dim1A,Kr.uniformMatrix4fv(ce.location,!1,Array.isArray(Ti)||Ti instanceof Float32Array?Ti:($n[0]=Ti[0],$n[1]=Ti[1],$n[2]=Ti[2],$n[3]=Ti[3],$n[4]=Ti[4],$n[5]=Ti[5],$n[6]=Ti[6],$n[7]=Ti[7],$n[8]=Ti[8],$n[9]=Ti[9],$n[10]=Ti[10],$n[11]=Ti[11],$n[12]=Ti[12],$n[13]=Ti[13],$n[14]=Ti[14],$n[15]=Ti[15],$n)),ki=on.dim1B,Kr.uniformMatrix4fv(je.location,!1,Array.isArray(ki)||ki instanceof Float32Array?ki:(Ka[0]=ki[0],Ka[1]=ki[1],Ka[2]=ki[2],Ka[3]=ki[3],Ka[4]=ki[4],Ka[5]=ki[5],Ka[6]=ki[6],Ka[7]=ki[7],Ka[8]=ki[8],Ka[9]=ki[9],Ka[10]=ki[10],Ka[11]=ki[11],Ka[12]=ki[12],Ka[13]=ki[13],Ka[14]=ki[14],Ka[15]=ki[15],Ka)),Ki=on.dim1C,Kr.uniformMatrix4fv(rt.location,!1,Array.isArray(Ki)||Ki instanceof Float32Array?Ki:(qn[0]=Ki[0],qn[1]=Ki[1],qn[2]=Ki[2],qn[3]=Ki[3],qn[4]=Ki[4],qn[5]=Ki[5],qn[6]=Ki[6],qn[7]=Ki[7],qn[8]=Ki[8],qn[9]=Ki[9],qn[10]=Ki[10],qn[11]=Ki[11],qn[12]=Ki[12],qn[13]=Ki[13],qn[14]=Ki[14],qn[15]=Ki[15],qn)),Fn=on.dim1D,Kr.uniformMatrix4fv(bt.location,!1,Array.isArray(Fn)||Fn instanceof Float32Array?Fn:(Eo[0]=Fn[0],Eo[1]=Fn[1],Eo[2]=Fn[2],Eo[3]=Fn[3],Eo[4]=Fn[4],Eo[5]=Fn[5],Eo[6]=Fn[6],Eo[7]=Fn[7],Eo[8]=Fn[8],Eo[9]=Fn[9],Eo[10]=Fn[10],Eo[11]=Fn[11],Eo[12]=Fn[12],Eo[13]=Fn[13],Eo[14]=Fn[14],Eo[15]=Fn[15],Eo)),Li=on.drwLayer,Kr.uniform1f(Ot.location,Li),hi=on.hiA,Kr.uniformMatrix4fv(it.location,!1,Array.isArray(hi)||hi instanceof Float32Array?hi:(Ja[0]=hi[0],Ja[1]=hi[1],Ja[2]=hi[2],Ja[3]=hi[3],Ja[4]=hi[4],Ja[5]=hi[5],Ja[6]=hi[6],Ja[7]=hi[7],Ja[8]=hi[8],Ja[9]=hi[9],Ja[10]=hi[10],Ja[11]=hi[11],Ja[12]=hi[12],Ja[13]=hi[13],Ja[14]=hi[14],Ja[15]=hi[15],Ja)),Ci=on.hiB,Kr.uniformMatrix4fv(Ke.location,!1,Array.isArray(Ci)||Ci instanceof Float32Array?Ci:(lo[0]=Ci[0],lo[1]=Ci[1],lo[2]=Ci[2],lo[3]=Ci[3],lo[4]=Ci[4],lo[5]=Ci[5],lo[6]=Ci[6],lo[7]=Ci[7],lo[8]=Ci[8],lo[9]=Ci[9],lo[10]=Ci[10],lo[11]=Ci[11],lo[12]=Ci[12],lo[13]=Ci[13],lo[14]=Ci[14],lo[15]=Ci[15],lo)),Si=on.hiC,Kr.uniformMatrix4fv(zt.location,!1,Array.isArray(Si)||Si instanceof Float32Array?Si:(eo[0]=Si[0],eo[1]=Si[1],eo[2]=Si[2],eo[3]=Si[3],eo[4]=Si[4],eo[5]=Si[5],eo[6]=Si[6],eo[7]=Si[7],eo[8]=Si[8],eo[9]=Si[9],eo[10]=Si[10],eo[11]=Si[11],eo[12]=Si[12],eo[13]=Si[13],eo[14]=Si[14],eo[15]=Si[15],eo)),Gn=on.hiD,Kr.uniformMatrix4fv(Mt.location,!1,Array.isArray(Gn)||Gn instanceof Float32Array?Gn:(sa[0]=Gn[0],sa[1]=Gn[1],sa[2]=Gn[2],sa[3]=Gn[3],sa[4]=Gn[4],sa[5]=Gn[5],sa[6]=Gn[6],sa[7]=Gn[7],sa[8]=Gn[8],sa[9]=Gn[9],sa[10]=Gn[10],sa[11]=Gn[11],sa[12]=Gn[12],sa[13]=Gn[13],sa[14]=Gn[14],sa[15]=Gn[15],sa)),ta=on.loA,Kr.uniformMatrix4fv(kt.location,!1,Array.isArray(ta)||ta instanceof Float32Array?ta:(es[0]=ta[0],es[1]=ta[1],es[2]=ta[2],es[3]=ta[3],es[4]=ta[4],es[5]=ta[5],es[6]=ta[6],es[7]=ta[7],es[8]=ta[8],es[9]=ta[9],es[10]=ta[10],es[11]=ta[11],es[12]=ta[12],es[13]=ta[13],es[14]=ta[14],es[15]=ta[15],es)),ya=on.loB,Kr.uniformMatrix4fv($e.location,!1,Array.isArray(ya)||ya instanceof Float32Array?ya:(Na[0]=ya[0],Na[1]=ya[1],Na[2]=ya[2],Na[3]=ya[3],Na[4]=ya[4],Na[5]=ya[5],Na[6]=ya[6],Na[7]=ya[7],Na[8]=ya[8],Na[9]=ya[9],Na[10]=ya[10],Na[11]=ya[11],Na[12]=ya[12],Na[13]=ya[13],Na[14]=ya[14],Na[15]=ya[15],Na)),ia=on.loC,Kr.uniformMatrix4fv(Re.location,!1,Array.isArray(ia)||ia instanceof Float32Array?ia:(en[0]=ia[0],en[1]=ia[1],en[2]=ia[2],en[3]=ia[3],en[4]=ia[4],en[5]=ia[5],en[6]=ia[6],en[7]=ia[7],en[8]=ia[8],en[9]=ia[9],en[10]=ia[10],en[11]=ia[11],en[12]=ia[12],en[13]=ia[13],en[14]=ia[14],en[15]=ia[15],en)),pa=on.loD,Kr.uniformMatrix4fv(Me.location,!1,Array.isArray(pa)||pa instanceof Float32Array?pa:(Pa[0]=pa[0],Pa[1]=pa[1],Pa[2]=pa[2],Pa[3]=pa[3],Pa[4]=pa[4],Pa[5]=pa[5],Pa[6]=pa[6],Pa[7]=pa[7],Pa[8]=pa[8],Pa[9]=pa[9],Pa[10]=pa[10],Pa[11]=pa[11],Pa[12]=pa[12],Pa[13]=pa[13],Pa[14]=pa[14],Pa[15]=pa[15],Pa)),va=on.maskHeight,Kr.uniform1f(oe.location,va),zn=on.maskTexture,zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),is=zn._texture,Kr.uniform1i(Ne.location,is.bind()),Kr.uniform1i(vt.location,lt.bind()),Cs=on.resolution,Ks=Cs[0],dl=Cs[1],Kr.uniform2f(We.location,Ks,dl),xl=on.viewBoxPos,Bl=xl[0],bl=xl[1],Kr.uniform2f(Ve.location,Bl,bl),eu=on.viewBoxSize,Zl=eu[0],Vl=eu[1],Kr.uniform2f(et.location,Zl,Vl),ja=Ta.elements,ja?Kr.bindBuffer(34963,ja.buffer.buffer):fo.currentVAO&&(ja=ys.getElements(fo.currentVAO.elements),ja&&Kr.bindBuffer(34963,ja.buffer.buffer)),ns=on.offset,Js=on.count,Js&&(ja?Kr.drawElements(1,Js,ja.type,ns<<(ja.type-5121>>1)):Kr.drawArrays(1,ns,Js),kn.dirty=!0,fo.setVAO(null),Ia.viewportWidth=fl,Ia.viewportHeight=as,kn.profile=ks,is.unbind(),lt.unbind())},scope:function(on,Oo,ko){var oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki,Ki,Fn,Li,hi,Ci,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Bl,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,nl,zl,Ml,Rl,Al,Ll,ms,Bs,Xl,Gl,Nl,ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot,mt,Gt,er,sr,wr,Ir,ri,si,Mi,cn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,nu,ru,Hu,$u,Ku,Wu,ju,sf,_f,Qu,ef,Z,le,Le,Ye,nt,ut,Ht,wt,lr,Cr,zr,ui,$r,Oi,un,pi,Pi,ji,pn,an,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Xu,Vu,tf,ds,Wl,Au,Tu,lf,hf,Sf,pf,fc,Fe,Bt,tr,Qr,vi,fi,di,nn,On,Ln,wn,Ls,ua,Hn,Ni,Wr,gi,dn,En,Zi,ga,Kn,hs,Ji,Ui,ro,na,Bn,In,Va,_s,ul,Qn,Mo,al,pl,Dl,Ou,vf,Ql,Mf,Cu,gf,xf,Cf,Gu,cf,mf,Fl,bf,cu,Y,R,J,B,K,ye,ne,ke,Je,Ct,ur,Sr,nr,Qe,pt,Tt,Xt,ir,Kt,ar,Jt,Ft,Zt,Pt,Ar,Br,ci,Cn,Yi,yn,Xa,ca,Tn,Pn,Nn,xa,Zo,iu,yu,Fu,vu,zu,Ju,Uf,wd,Ad;oo=on.viewportX,_n.x=oo,za=on.viewportY,_n.y=za,ea=on.viewportWidth,_n.width=ea,rs=on.viewportHeight,_n.height=rs,$s=_n.x|0,us=_n.y|0,Ds="width"in _n?_n.width|0:Ia.framebufferWidth-$s,fl="height"in _n?_n.height|0:Ia.framebufferHeight-us,as=Ia.viewportWidth,Ia.viewportWidth=Ds,Ma=Ia.viewportHeight,Ia.viewportHeight=fl,Qs=jn[0],jn[0]=$s,ho=jn[1],jn[1]=us,gs=jn[2],jn[2]=Ds,Vo=jn[3],jn[3]=fl,Do=Po[0],Po[0]=tt,Lo=Po[1],Po[1]=Lt,xs=Po[2],Po[2]=jt,ks=Po[3],Po[3]=or,Ea=fa.blend_enable,fa.blend_enable=yr,Jn=gn[0],gn[0]=vr,Bo=gn[1],gn[1]=Vt,rl=Ha[0],Ha[0]=Pe,Gs=Ha[1],Ha[1]=xe,bs=Ha[2],Ha[2]=Oe,zs=Ha[3],Ha[3]=ze,$o=fa.cull_enable,fa.cull_enable=De,Aa=fa.cull_face,fa.cull_face=ht,os=fa.depth_enable,fa.depth_enable=st,_l=fa.depth_func,fa.depth_func=gt,Ss=fa.depth_mask,fa.depth_mask=xt,po=ao[0],ao[0]=pr,go=ao[1],ao[1]=br,ss=fa.dither,fa.dither=cr,qo=fa.lineWidth,fa.lineWidth=Er,zo=on.scissorX,Vn.x=zo,io=on.scissorY,Vn.y=io,Io=on.scissorWidth,Vn.width=Io,Da=on.scissorHeight,Vn.height=Da,vs=Vn.x|0,fs=Vn.y|0,cl="width"in Vn?Vn.width|0:Ia.framebufferWidth-vs,el="height"in Vn?Vn.height|0:Ia.framebufferHeight-fs,Hs=mo[0],mo[0]=vs,Ro=mo[1],mo[1]=fs,tl=mo[2],mo[2]=cl,Fs=mo[3],mo[3]=el,hl=fa.scissor_enable,fa.scissor_enable=ii,Fa=kn.profile,kn.profile=!1,Ms=on.offset,jo=Ta.offset,Ta.offset=Ms,Rs=on.count,Is=Ta.count,Ta.count=Rs,Os=Ta.primitive,Ta.primitive=jr,St=mn[Vr],mn[Vr]=kr,Ut=on.resolution,xr=mn[Ai],mn[Ai]=Ut,dr=on.viewBoxPos,Dr=mn[Bi],mn[Bi]=dr,yi=on.viewBoxSize,Ti=mn[Ri],mn[Ri]=yi,ki=on.dim0A,Ki=mn[ln],mn[ln]=ki,Fn=on.dim1A,Li=mn[hn],mn[hn]=Fn,hi=on.dim0B,Ci=mn[qr],mn[qr]=hi,Si=on.dim1B,Gn=mn[_i],mn[_i]=Si,ta=on.dim0C,ya=mn[zi],mn[zi]=ta,ia=on.dim1C,pa=mn[Dt],mn[Dt]=ia,va=on.dim0D,zn=mn[_t],mn[_t]=va,is=on.dim1D,Cs=mn[qt],mn[qt]=is,Ks=on.loA,dl=mn[Nt],mn[Nt]=Ks,xl=on.hiA,Bl=mn[mr],mn[mr]=xl,bl=on.loB,eu=mn[Lr],mn[Lr]=bl,Zl=on.hiB,Vl=mn[Nr],mn[Nr]=Zl,ja=on.loC,ns=mn[Fr],mn[Fr]=ja,Js=on.hiC,cs=mn[Hr],mn[Hr]=Js,sl=on.loD,ll=mn[Gr],mn[Gr]=sl,nl=on.hiD,zl=mn[mi],mn[mi]=nl,Ml=on.contextColor,Rl=mn[Ei],mn[Ei]=Ml,Al=on.maskTexture,Ll=mn[Vi],mn[Vi]=Al,ms=on.drwLayer,Bs=mn[ti],mn[ti]=ms,Xl=on.maskHeight,Gl=mn[Qi],mn[Qi]=Xl,Nl=Yr.state,Yr.state=1,ue=Yr.x,Yr.x=0,w=Yr.y,Yr.y=0,q=Yr.z,Yr.z=0,Q=Yr.w,Yr.w=0,ee=Yr.buffer,Yr.buffer=y,fe=Yr.size,Yr.size=0,Ue=Yr.normalized,Yr.normalized=!1,at=Yr.type,Yr.type=y.dtype,yt=Yr.offset,Yr.offset=0,Rt=Yr.stride,Yr.stride=0,Qt=Yr.divisor,Yr.divisor=0,rr=oi.state,oi.state=1,Mr=oi.x,oi.x=0,Ur=oi.y,oi.y=0,he=oi.z,oi.z=0,Ae=oi.w,oi.w=0,qe=oi.buffer,oi.buffer=v,Ge=oi.size,oi.size=0,ft=oi.normalized,oi.normalized=!1,ot=oi.type,oi.type=v.dtype,mt=oi.offset,oi.offset=0,Gt=oi.stride,oi.stride=0,er=oi.divisor,oi.divisor=0,sr=Fi.state,Fi.state=1,wr=Fi.x,Fi.x=0,Ir=Fi.y,Fi.y=0,ri=Fi.z,Fi.z=0,si=Fi.w,Fi.w=0,Mi=Fi.buffer,Fi.buffer=E,cn=Fi.size,Fi.size=0,Zn=Fi.normalized,Fi.normalized=!1,Yn=Fi.type,Fi.type=E.dtype,Ua=Fi.offset,Fi.offset=0,Fo=Fi.stride,Fi.stride=0,vl=Fi.divisor,Fi.divisor=0,Us=rn.state,rn.state=1,ml=rn.x,rn.x=0,au=rn.y,rn.y=0,Sl=rn.z,rn.z=0,Yl=rn.w,rn.w=0,ql=rn.buffer,rn.buffer=L,ou=rn.size,rn.size=0,Pu=rn.normalized,rn.normalized=!1,nu=rn.type,rn.type=L.dtype,ru=rn.offset,rn.offset=0,Hu=rn.stride,rn.stride=0,$u=rn.divisor,rn.divisor=0,Ku=tn.state,tn.state=1,Wu=tn.x,tn.x=0,ju=tn.y,tn.y=0,sf=tn.z,tn.z=0,_f=tn.w,tn.w=0,Qu=tn.buffer,tn.buffer=k,ef=tn.size,tn.size=0,Z=tn.normalized,tn.normalized=!1,le=tn.type,tn.type=k.dtype,Le=tn.offset,tn.offset=0,Ye=tn.stride,tn.stride=0,nt=tn.divisor,tn.divisor=0,ut=Di.state,Di.state=1,Ht=Di.x,Di.x=0,wt=Di.y,Di.y=0,lr=Di.z,Di.z=0,Cr=Di.w,Di.w=0,zr=Di.buffer,Di.buffer=m,ui=Di.size,Di.size=0,$r=Di.normalized,Di.normalized=!1,Oi=Di.type,Di.type=m.dtype,un=Di.offset,Di.offset=0,pi=Di.stride,Di.stride=0,Pi=Di.divisor,Di.divisor=0,ji=Ii.state,Ii.state=1,pn=Ii.x,Ii.x=0,an=Ii.y,Ii.y=0,bi=Ii.z,Ii.z=0,xo=Ii.w,Ii.w=0,no=Ii.buffer,Ii.buffer=M,Xo=Ii.size,Ii.size=0,js=Ii.normalized,Ii.normalized=!1,El=Ii.type,Ii.type=M.dtype,Pl=Ii.offset,Ii.offset=0,pu=Ii.stride,Ii.stride=0,Il=Ii.divisor,Ii.divisor=0,fu=xn.state,xn.state=1,Xu=xn.x,xn.x=0,Vu=xn.y,xn.y=0,tf=xn.z,xn.z=0,ds=xn.w,xn.w=0,Wl=xn.buffer,xn.buffer=F,Au=xn.size,xn.size=0,Tu=xn.normalized,xn.normalized=!1,lf=xn.type,xn.type=F.dtype,hf=xn.offset,xn.offset=0,Sf=xn.stride,xn.stride=0,pf=xn.divisor,xn.divisor=0,fc=xi.state,xi.state=1,Fe=xi.x,xi.x=0,Bt=xi.y,xi.y=0,tr=xi.z,xi.z=0,Qr=xi.w,xi.w=0,vi=xi.buffer,xi.buffer=G,fi=xi.size,xi.size=0,di=xi.normalized,xi.normalized=!1,nn=xi.type,xi.type=G.dtype,On=xi.offset,xi.offset=0,Ln=xi.stride,xi.stride=0,wn=xi.divisor,xi.divisor=0,Ls=Xr.state,Xr.state=1,ua=Xr.x,Xr.x=0,Hn=Xr.y,Xr.y=0,Ni=Xr.z,Xr.z=0,Wr=Xr.w,Xr.w=0,gi=Xr.buffer,Xr.buffer=W,dn=Xr.size,Xr.size=0,En=Xr.normalized,Xr.normalized=!1,Zi=Xr.type,Xr.type=W.dtype,ga=Xr.offset,Xr.offset=0,Kn=Xr.stride,Xr.stride=0,hs=Xr.divisor,Xr.divisor=0,Ji=dt.state,dt.state=1,Ui=dt.x,dt.x=0,ro=dt.y,dt.y=0,na=dt.z,dt.z=0,Bn=dt.w,dt.w=0,In=dt.buffer,dt.buffer=H,Va=dt.size,dt.size=0,_s=dt.normalized,dt.normalized=!1,ul=dt.type,dt.type=H.dtype,Qn=dt.offset,dt.offset=0,Mo=dt.stride,dt.stride=0,al=dt.divisor,dt.divisor=0,pl=$t.state,$t.state=1,Dl=$t.x,$t.x=0,Ou=$t.y,$t.y=0,vf=$t.z,$t.z=0,Ql=$t.w,$t.w=0,Mf=$t.buffer,$t.buffer=ae,Cu=$t.size,$t.size=0,gf=$t.normalized,$t.normalized=!1,xf=$t.type,$t.type=ae.dtype,Cf=$t.offset,$t.offset=0,Gu=$t.stride,$t.stride=0,cf=$t.divisor,$t.divisor=0,mf=fr.state,fr.state=1,Fl=fr.x,fr.x=0,bf=fr.y,fr.y=0,cu=fr.z,fr.z=0,Y=fr.w,fr.w=0,R=fr.buffer,fr.buffer=Ce,J=fr.size,fr.size=0,B=fr.normalized,fr.normalized=!1,K=fr.type,fr.type=Ce.dtype,ye=fr.offset,fr.offset=0,ne=fr.stride,fr.stride=0,ke=fr.divisor,fr.divisor=0,Je=gr.state,gr.state=1,Ct=gr.x,gr.x=0,ur=gr.y,gr.y=0,Sr=gr.z,gr.z=0,nr=gr.w,gr.w=0,Qe=gr.buffer,gr.buffer=de,pt=gr.size,gr.size=0,Tt=gr.normalized,gr.normalized=!1,Xt=gr.type,gr.type=de.dtype,ir=gr.offset,gr.offset=0,Kt=gr.stride,gr.stride=0,ar=gr.divisor,gr.divisor=0,Jt=Zr.state,Zr.state=1,Ft=Zr.x,Zr.x=0,Zt=Zr.y,Zr.y=0,Pt=Zr.z,Zr.z=0,Ar=Zr.w,Zr.w=0,Br=Zr.buffer,Zr.buffer=Se,ci=Zr.size,Zr.size=0,Cn=Zr.normalized,Zr.normalized=!1,Yi=Zr.type,Zr.type=Se.dtype,yn=Zr.offset,Zr.offset=0,Xa=Zr.stride,Zr.stride=0,ca=Zr.divisor,Zr.divisor=0,Tn=wi.state,wi.state=1,Pn=wi.x,wi.x=0,Nn=wi.y,wi.y=0,xa=wi.z,wi.z=0,Zo=wi.w,wi.w=0,iu=wi.buffer,wi.buffer=d,yu=wi.size,wi.size=0,Fu=wi.normalized,wi.normalized=!1,vu=wi.type,wi.type=d.dtype,zu=wi.offset,wi.offset=0,Ju=wi.stride,wi.stride=0,Uf=wi.divisor,wi.divisor=0,wd=ls.vert,ls.vert=$i,Ad=ls.frag,ls.frag=ni,kn.dirty=!0,Oo(Ia,on,ko),Ia.viewportWidth=as,Ia.viewportHeight=Ma,jn[0]=Qs,jn[1]=ho,jn[2]=gs,jn[3]=Vo,Po[0]=Do,Po[1]=Lo,Po[2]=xs,Po[3]=ks,fa.blend_enable=Ea,gn[0]=Jn,gn[1]=Bo,Ha[0]=rl,Ha[1]=Gs,Ha[2]=bs,Ha[3]=zs,fa.cull_enable=$o,fa.cull_face=Aa,fa.depth_enable=os,fa.depth_func=_l,fa.depth_mask=Ss,ao[0]=po,ao[1]=go,fa.dither=ss,fa.lineWidth=qo,mo[0]=Hs,mo[1]=Ro,mo[2]=tl,mo[3]=Fs,fa.scissor_enable=hl,kn.profile=Fa,Ta.offset=jo,Ta.count=Is,Ta.primitive=Os,mn[Vr]=St,mn[Ai]=xr,mn[Bi]=Dr,mn[Ri]=Ti,mn[ln]=Ki,mn[hn]=Li,mn[qr]=Ci,mn[_i]=Gn,mn[zi]=ya,mn[Dt]=pa,mn[_t]=zn,mn[qt]=Cs,mn[Nt]=dl,mn[mr]=Bl,mn[Lr]=eu,mn[Nr]=Vl,mn[Fr]=ns,mn[Hr]=cs,mn[Gr]=ll,mn[mi]=zl,mn[Ei]=Rl,mn[Vi]=Ll,mn[ti]=Bs,mn[Qi]=Gl,Yr.state=Nl,Yr.x=ue,Yr.y=w,Yr.z=q,Yr.w=Q,Yr.buffer=ee,Yr.size=fe,Yr.normalized=Ue,Yr.type=at,Yr.offset=yt,Yr.stride=Rt,Yr.divisor=Qt,oi.state=rr,oi.x=Mr,oi.y=Ur,oi.z=he,oi.w=Ae,oi.buffer=qe,oi.size=Ge,oi.normalized=ft,oi.type=ot,oi.offset=mt,oi.stride=Gt,oi.divisor=er,Fi.state=sr,Fi.x=wr,Fi.y=Ir,Fi.z=ri,Fi.w=si,Fi.buffer=Mi,Fi.size=cn,Fi.normalized=Zn,Fi.type=Yn,Fi.offset=Ua,Fi.stride=Fo,Fi.divisor=vl,rn.state=Us,rn.x=ml,rn.y=au,rn.z=Sl,rn.w=Yl,rn.buffer=ql,rn.size=ou,rn.normalized=Pu,rn.type=nu,rn.offset=ru,rn.stride=Hu,rn.divisor=$u,tn.state=Ku,tn.x=Wu,tn.y=ju,tn.z=sf,tn.w=_f,tn.buffer=Qu,tn.size=ef,tn.normalized=Z,tn.type=le,tn.offset=Le,tn.stride=Ye,tn.divisor=nt,Di.state=ut,Di.x=Ht,Di.y=wt,Di.z=lr,Di.w=Cr,Di.buffer=zr,Di.size=ui,Di.normalized=$r,Di.type=Oi,Di.offset=un,Di.stride=pi,Di.divisor=Pi,Ii.state=ji,Ii.x=pn,Ii.y=an,Ii.z=bi,Ii.w=xo,Ii.buffer=no,Ii.size=Xo,Ii.normalized=js,Ii.type=El,Ii.offset=Pl,Ii.stride=pu,Ii.divisor=Il,xn.state=fu,xn.x=Xu,xn.y=Vu,xn.z=tf,xn.w=ds,xn.buffer=Wl,xn.size=Au,xn.normalized=Tu,xn.type=lf,xn.offset=hf,xn.stride=Sf,xn.divisor=pf,xi.state=fc,xi.x=Fe,xi.y=Bt,xi.z=tr,xi.w=Qr,xi.buffer=vi,xi.size=fi,xi.normalized=di,xi.type=nn,xi.offset=On,xi.stride=Ln,xi.divisor=wn,Xr.state=Ls,Xr.x=ua,Xr.y=Hn,Xr.z=Ni,Xr.w=Wr,Xr.buffer=gi,Xr.size=dn,Xr.normalized=En,Xr.type=Zi,Xr.offset=ga,Xr.stride=Kn,Xr.divisor=hs,dt.state=Ji,dt.x=Ui,dt.y=ro,dt.z=na,dt.w=Bn,dt.buffer=In,dt.size=Va,dt.normalized=_s,dt.type=ul,dt.offset=Qn,dt.stride=Mo,dt.divisor=al,$t.state=pl,$t.x=Dl,$t.y=Ou,$t.z=vf,$t.w=Ql,$t.buffer=Mf,$t.size=Cu,$t.normalized=gf,$t.type=xf,$t.offset=Cf,$t.stride=Gu,$t.divisor=cf,fr.state=mf,fr.x=Fl,fr.y=bf,fr.z=cu,fr.w=Y,fr.buffer=R,fr.size=J,fr.normalized=B,fr.type=K,fr.offset=ye,fr.stride=ne,fr.divisor=ke,gr.state=Je,gr.x=Ct,gr.y=ur,gr.z=Sr,gr.w=nr,gr.buffer=Qe,gr.size=pt,gr.normalized=Tt,gr.type=Xt,gr.offset=ir,gr.stride=Kt,gr.divisor=ar,Zr.state=Jt,Zr.x=Ft,Zr.y=Zt,Zr.z=Pt,Zr.w=Ar,Zr.buffer=Br,Zr.size=ci,Zr.normalized=Cn,Zr.type=Yi,Zr.offset=yn,Zr.stride=Xa,Zr.divisor=ca,wi.state=Tn,wi.x=Pn,wi.y=Nn,wi.z=xa,wi.w=Zo,wi.buffer=iu,wi.size=yu,wi.normalized=Fu,wi.type=vu,wi.offset=zu,wi.stride=Ju,wi.divisor=Uf,ls.vert=wd,ls.frag=Ad,kn.dirty=!0},batch:function(on,Oo){var ko,oo,za,ea;if(ko=ra.next,ko!==ra.cur&&(ko?Kr.bindFramebuffer(36160,ko.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=ko),kn.dirty){var rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Bo,rl,Gs,bs,zs,$o,Aa,os;rs=Ko[0],$s=Ko[1],us=Ko[2],Ds=Ko[3],(rs!==Qo[0]||$s!==Qo[1]||us!==Qo[2]||Ds!==Qo[3])&&(Kr.colorMask(rs,$s,us,Ds),Qo[0]=rs,Qo[1]=$s,Qo[2]=us,Qo[3]=Ds),fl=fa.frontFace,fl!==kn.frontFace&&(Kr.frontFace(fl),kn.frontFace=fl),as=fa.polygonOffset_enable,as!==kn.polygonOffset_enable&&(as?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=as),Ma=Hi[0],Qs=Hi[1],(Ma!==Sa[0]||Qs!==Sa[1])&&(Kr.polygonOffset(Ma,Qs),Sa[0]=Ma,Sa[1]=Qs),ho=fa.sample_alpha,ho!==kn.sample_alpha&&(ho?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=ho),gs=fa.sample_enable,gs!==kn.sample_enable&&(gs?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=gs),Vo=Qa[0],Do=Qa[1],(Vo!==vn[0]||Do!==vn[1])&&(Kr.sampleCoverage(Vo,Do),vn[0]=Vo,vn[1]=Do),Lo=fa.stencil_enable,Lo!==kn.stencil_enable&&(Lo?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Lo),xs=fa.stencil_mask,xs!==kn.stencil_mask&&(Kr.stencilMask(xs),kn.stencil_mask=xs),ks=da[0],Ea=da[1],Jn=da[2],(ks!==la[0]||Ea!==la[1]||Jn!==la[2])&&(Kr.stencilFunc(ks,Ea,Jn),la[0]=ks,la[1]=Ea,la[2]=Jn),Bo=vo[0],rl=vo[1],Gs=vo[2],bs=vo[3],(Bo!==As[0]||rl!==As[1]||Gs!==As[2]||bs!==As[3])&&(Kr.stencilOpSeparate(Bo,rl,Gs,bs),As[0]=Bo,As[1]=rl,As[2]=Gs,As[3]=bs),zs=ps[0],$o=ps[1],Aa=ps[2],os=ps[3],(zs!==co[0]||$o!==co[1]||Aa!==co[2]||os!==co[3])&&(Kr.stencilOpSeparate(zs,$o,Aa,os),co[0]=zs,co[1]=$o,co[2]=Aa,co[3]=os)}Kr.blendColor(0,0,0,0),Wi[0]=0,Wi[1]=0,Wi[2]=0,Wi[3]=0,Xi?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=Xi,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,aa?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=aa,Kr.cullFace(Mn),kn.cull_face=Mn,Un?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=Un,Kr.depthFunc(Ga),kn.depth_func=Ga,Kr.depthMask(ma),kn.depth_mask=ma,Kr.depthRange(0,1),Oa[0]=0,Oa[1]=1,oa?Kr.enable(3024):Kr.disable(3024),kn.dither=oa,Kr.lineWidth(ka),kn.lineWidth=ka,so?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=so,oo=kn.profile,kn.profile=!1,Kr.useProgram(h.program);var _l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Os,St,Ut,xr,dr,Dr,yi,Ti,ki;for(fo.setVAO(null),_l=p.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==d.dtype||Ss.size!==4||Ss.buffer!==d||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(_l,4,d.dtype,!1,0,0),Ss.type=d.dtype,Ss.size=4,Ss.buffer=d,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=b.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==y.dtype||go.size!==4||go.buffer!==y||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,y.buffer),Kr.vertexAttribPointer(po,4,y.dtype,!1,0,0),go.type=y.dtype,go.size=4,go.buffer=y,go.normalized=!1,go.offset=0,go.stride=0),ss=C.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==v.dtype||qo.size!==4||qo.buffer!==v||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(ss,4,v.dtype,!1,0,0),qo.type=v.dtype,qo.size=4,qo.buffer=v,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=A.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==E.dtype||io.size!==4||io.buffer!==E||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zo,4,E.dtype,!1,0,0),io.type=E.dtype,io.size=4,io.buffer=E,io.normalized=!1,io.offset=0,io.stride=0),Io=x.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==L.dtype||Da.size!==4||Da.buffer!==L||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Io,4,L.dtype,!1,0,0),Da.type=L.dtype,Da.size=4,Da.buffer=L,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=S.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==k.dtype||fs.size!==4||fs.buffer!==k||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,k.buffer),Kr.vertexAttribPointer(vs,4,k.dtype,!1,0,0),fs.type=k.dtype,fs.size=4,fs.buffer=k,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=P.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==m.dtype||el.size!==4||el.buffer!==m||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(cl,4,m.dtype,!1,0,0),el.type=m.dtype,el.size=4,el.buffer=m,el.normalized=!1,el.offset=0,el.stride=0),Hs=O.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==M.dtype||Ro.size!==4||Ro.buffer!==M||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,M.buffer),Kr.vertexAttribPointer(Hs,4,M.dtype,!1,0,0),Ro.type=M.dtype,Ro.size=4,Ro.buffer=M,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=U.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==F.dtype||Fs.size!==4||Fs.buffer!==F||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(tl,4,F.dtype,!1,0,0),Fs.type=F.dtype,Fs.size=4,Fs.buffer=F,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=j.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==G.dtype||Fa.size!==4||Fa.buffer!==G||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(hl,4,G.dtype,!1,0,0),Fa.type=G.dtype,Fa.size=4,Fa.buffer=G,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=N.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==W.dtype||jo.size!==4||jo.buffer!==W||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(Ms,4,W.dtype,!1,0,0),jo.type=W.dtype,jo.size=4,jo.buffer=W,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=re.location,Is=$a[Rs],Is.buffer||Kr.enableVertexAttribArray(Rs),(Is.type!==H.dtype||Is.size!==4||Is.buffer!==H||Is.normalized!==!1||Is.offset!==0||Is.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(Rs,4,H.dtype,!1,0,0),Is.type=H.dtype,Is.size=4,Is.buffer=H,Is.normalized=!1,Is.offset=0,Is.stride=0),Os=me.location,St=$a[Os],St.buffer||Kr.enableVertexAttribArray(Os),(St.type!==ae.dtype||St.size!==4||St.buffer!==ae||St.normalized!==!1||St.offset!==0||St.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Os,4,ae.dtype,!1,0,0),St.type=ae.dtype,St.size=4,St.buffer=ae,St.normalized=!1,St.offset=0,St.stride=0),Ut=Ee.location,xr=$a[Ut],xr.buffer||Kr.enableVertexAttribArray(Ut),(xr.type!==Ce.dtype||xr.size!==4||xr.buffer!==Ce||xr.normalized!==!1||xr.offset!==0||xr.stride!==0)&&(Kr.bindBuffer(34962,Ce.buffer),Kr.vertexAttribPointer(Ut,4,Ce.dtype,!1,0,0),xr.type=Ce.dtype,xr.size=4,xr.buffer=Ce,xr.normalized=!1,xr.offset=0,xr.stride=0),dr=te.location,Dr=$a[dr],Dr.buffer||Kr.enableVertexAttribArray(dr),(Dr.type!==de.dtype||Dr.size!==4||Dr.buffer!==de||Dr.normalized!==!1||Dr.offset!==0||Dr.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(dr,4,de.dtype,!1,0,0),Dr.type=de.dtype,Dr.size=4,Dr.buffer=de,Dr.normalized=!1,Dr.offset=0,Dr.stride=0),yi=Te.location,Ti=$a[yi],Ti.buffer||Kr.enableVertexAttribArray(yi),(Ti.type!==Se.dtype||Ti.size!==4||Ti.buffer!==Se||Ti.normalized!==!1||Ti.offset!==0||Ti.stride!==0)&&(Kr.bindBuffer(34962,Se.buffer),Kr.vertexAttribPointer(yi,4,Se.dtype,!1,0,0),Ti.type=Se.dtype,Ti.size=4,Ti.buffer=Se,Ti.normalized=!1,Ti.offset=0,Ti.stride=0),Kr.uniform1i(vt.location,lt.bind()),ki=Ta.elements,ki?Kr.bindBuffer(34963,ki.buffer.buffer):fo.currentVAO&&(ki=ys.getElements(fo.currentVAO.elements),ki&&Kr.bindBuffer(34963,ki.buffer.buffer)),za=0;za>1)):Kr.drawArrays(1,wr,Ir),Ia.viewportWidth=ya,Ia.viewportHeight=ia,yt.unbind())}lt.unbind(),kn.dirty=!0,fo.setVAO(null),kn.profile=oo}}}});var qVe=we((A2r,BVe)=>{BVe.exports=function(t,r){"use strict";var n,i,a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt,Ot,it,Ke,zt,Mt,kt,$e,Re,Me,oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or;return n=t.gl,i=t.context,a=t.strings,o=t.next,s=t.current,u=t.draw,l=t.elements,f=t.buffer,c=t.shader,h=t.attributes,d=t.vao,p=t.uniforms,y=t.framebuffer,b=t.extensions,v=t.timer,C=t.isBufferArgs,E=o.blend_color,A=s.blend_color,L=o.blend_equation,x=s.blend_equation,k=o.blend_func,S=s.blend_func,m=o.depth_range,P=s.depth_range,M=o.colorMask,O=s.colorMask,F=o.polygonOffset_offset,U=s.polygonOffset_offset,G=o.sample_coverage,j=s.sample_coverage,W=o.stencil_func,N=s.stencil_func,H=o.stencil_opFront,re=s.stencil_opFront,ae=o.stencil_opBack,me=s.stencil_opBack,Ce=o.scissor_box,Ee=s.scissor_box,de=o.viewport,te=s.viewport,Se={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Te={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},be={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},He={add:32774,subtract:32778,"reverse subtract":32779},Ie={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ge={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Be={cw:2304,ccw:2305},ce=o.blend_color,je=s.blend_color,rt=o.blend_equation,bt=s.blend_equation,Ot=o.blend_func,it=s.blend_func,Ke=o.depth_range,zt=s.depth_range,Mt=o.colorMask,kt=s.colorMask,$e=o.polygonOffset_offset,Re=s.polygonOffset_offset,Me=o.sample_coverage,oe=s.sample_coverage,Ne=o.stencil_func,vt=s.stencil_func,lt=o.stencil_opFront,We=s.stencil_opFront,Ve=o.stencil_opBack,et=s.stencil_opBack,tt=o.scissor_box,Lt=s.scissor_box,jt=o.viewport,or=s.viewport,{poll:function(){var yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi;s.dirty=!1,vr=o.dither,Vt=o.blend_enable,Pe=o.depth_enable,xe=o.cull_enable,Oe=o.polygonOffset_enable,ze=o.sample_alpha,De=o.sample_enable,ht=o.stencil_enable,st=o.scissor_enable,gt=o.depth_func,xt=s.depth_func,pr=o.depth_mask,br=s.depth_mask,cr=o.cull_face,Er=s.cull_face,ii=o.frontFace,jr=s.frontFace,kr=o.lineWidth,Vr=s.lineWidth,Ai=o.stencil_mask,Bi=s.stencil_mask,yr=y.next,yr!==y.cur&&(yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),y.cur=yr),vr!==s.dither&&(vr?n.enable(3024):n.disable(3024),s.dither=vr),Vt!==s.blend_enable&&(Vt?n.enable(3042):n.disable(3042),s.blend_enable=Vt),Pe!==s.depth_enable&&(Pe?n.enable(2929):n.disable(2929),s.depth_enable=Pe),xe!==s.cull_enable&&(xe?n.enable(2884):n.disable(2884),s.cull_enable=xe),Oe!==s.polygonOffset_enable&&(Oe?n.enable(32823):n.disable(32823),s.polygonOffset_enable=Oe),ze!==s.sample_alpha&&(ze?n.enable(32926):n.disable(32926),s.sample_alpha=ze),De!==s.sample_enable&&(De?n.enable(32928):n.disable(32928),s.sample_enable=De),ht!==s.stencil_enable&&(ht?n.enable(2960):n.disable(2960),s.stencil_enable=ht),st!==s.scissor_enable&&(st?n.enable(3089):n.disable(3089),s.scissor_enable=st),(ce[0]!==je[0]||ce[1]!==je[1]||ce[2]!==je[2]||ce[3]!==je[3])&&(n.blendColor(ce[0],ce[1],ce[2],ce[3]),je[0]=ce[0],je[1]=ce[1],je[2]=ce[2],je[3]=ce[3]),(rt[0]!==bt[0]||rt[1]!==bt[1])&&(n.blendEquationSeparate(rt[0],rt[1]),bt[0]=rt[0],bt[1]=rt[1]),(Ot[0]!==it[0]||Ot[1]!==it[1]||Ot[2]!==it[2]||Ot[3]!==it[3])&&(n.blendFuncSeparate(Ot[0],Ot[1],Ot[2],Ot[3]),it[0]=Ot[0],it[1]=Ot[1],it[2]=Ot[2],it[3]=Ot[3]),gt!==xt&&(n.depthFunc(gt),s.depth_func=gt),(Ke[0]!==zt[0]||Ke[1]!==zt[1])&&(n.depthRange(Ke[0],Ke[1]),zt[0]=Ke[0],zt[1]=Ke[1]),pr!==br&&(n.depthMask(pr),s.depth_mask=pr),(Mt[0]!==kt[0]||Mt[1]!==kt[1]||Mt[2]!==kt[2]||Mt[3]!==kt[3])&&(n.colorMask(Mt[0],Mt[1],Mt[2],Mt[3]),kt[0]=Mt[0],kt[1]=Mt[1],kt[2]=Mt[2],kt[3]=Mt[3]),cr!==Er&&(n.cullFace(cr),s.cull_face=cr),ii!==jr&&(n.frontFace(ii),s.frontFace=ii),kr!==Vr&&(n.lineWidth(kr),s.lineWidth=kr),($e[0]!==Re[0]||$e[1]!==Re[1])&&(n.polygonOffset($e[0],$e[1]),Re[0]=$e[0],Re[1]=$e[1]),(Me[0]!==oe[0]||Me[1]!==oe[1])&&(n.sampleCoverage(Me[0],Me[1]),oe[0]=Me[0],oe[1]=Me[1]),Ai!==Bi&&(n.stencilMask(Ai),s.stencil_mask=Ai),(Ne[0]!==vt[0]||Ne[1]!==vt[1]||Ne[2]!==vt[2])&&(n.stencilFunc(Ne[0],Ne[1],Ne[2]),vt[0]=Ne[0],vt[1]=Ne[1],vt[2]=Ne[2]),(lt[0]!==We[0]||lt[1]!==We[1]||lt[2]!==We[2]||lt[3]!==We[3])&&(n.stencilOpSeparate(lt[0],lt[1],lt[2],lt[3]),We[0]=lt[0],We[1]=lt[1],We[2]=lt[2],We[3]=lt[3]),(Ve[0]!==et[0]||Ve[1]!==et[1]||Ve[2]!==et[2]||Ve[3]!==et[3])&&(n.stencilOpSeparate(Ve[0],Ve[1],Ve[2],Ve[3]),et[0]=Ve[0],et[1]=Ve[1],et[2]=Ve[2],et[3]=Ve[3]),(tt[0]!==Lt[0]||tt[1]!==Lt[1]||tt[2]!==Lt[2]||tt[3]!==Lt[3])&&(n.scissor(tt[0],tt[1],tt[2],tt[3]),Lt[0]=tt[0],Lt[1]=tt[1],Lt[2]=tt[2],Lt[3]=tt[3]),(jt[0]!==or[0]||jt[1]!==or[1]||jt[2]!==or[2]||jt[3]!==or[3])&&(n.viewport(jt[0],jt[1],jt[2],jt[3]),or[0]=jt[0],or[1]=jt[1],or[2]=jt[2],or[3]=jt[3])},refresh:function(){var yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln;s.dirty=!1,Pe=o.dither,xe=o.blend_enable,Oe=o.depth_enable,ze=o.cull_enable,De=o.polygonOffset_enable,ht=o.sample_alpha,st=o.sample_enable,gt=o.stencil_enable,xt=o.scissor_enable,pr=o.depth_func,br=s.depth_func,cr=o.depth_mask,Er=s.depth_mask,ii=o.cull_face,jr=s.cull_face,kr=o.frontFace,Vr=s.frontFace,Ai=o.lineWidth,Bi=s.lineWidth,Ri=o.stencil_mask,ln=s.stencil_mask,yr=y.next,yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),y.cur=yr,vr=h,Vt=0;for(var hn=0;hn{NVe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,y,b,v,C,E,A,L,x,k,S,m,P,M,O,F,U,G,j,W,N,H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie,ge,Be,ce,je,rt,bt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,y=t.vao,b=t.uniforms,v=t.framebuffer,C=t.extensions,E=t.timer,A=t.isBufferArgs,L=u.blend_color,x=l.blend_color,k=u.blend_equation,S=l.blend_equation,m=u.blend_func,P=l.blend_func,M=u.depth_range,O=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,W=u.sample_coverage,N=l.sample_coverage,H=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,me=l.stencil_opFront,Ce=u.stencil_opBack,Ee=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,Se=u.viewport,Te=l.viewport,be={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},He={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ie={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ge={add:32774,subtract:32778,"reverse subtract":32779},Be={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},je={cw:2304,ccw:2305},rt={},bt={},{draw:function(Ot){var it,Ke,zt,Mt,kt,$e,Re,Me;if(it=v.next,it!==v.cur&&(it?a.bindFramebuffer(36160,it.framebuffer):a.bindFramebuffer(36160,null),v.cur=it),l.dirty){var oe,Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi;oe=u.dither,oe!==l.dither&&(oe?a.enable(3024):a.disable(3024),l.dither=oe),Ne=u.blend_enable,Ne!==l.blend_enable&&(Ne?a.enable(3042):a.disable(3042),l.blend_enable=Ne),vt=L[0],lt=L[1],We=L[2],Ve=L[3],(vt!==x[0]||lt!==x[1]||We!==x[2]||Ve!==x[3])&&(a.blendColor(vt,lt,We,Ve),x[0]=vt,x[1]=lt,x[2]=We,x[3]=Ve),et=k[0],tt=k[1],(et!==S[0]||tt!==S[1])&&(a.blendEquationSeparate(et,tt),S[0]=et,S[1]=tt),Lt=m[0],jt=m[1],or=m[2],yr=m[3],(Lt!==P[0]||jt!==P[1]||or!==P[2]||yr!==P[3])&&(a.blendFuncSeparate(Lt,jt,or,yr),P[0]=Lt,P[1]=jt,P[2]=or,P[3]=yr),vr=u.depth_enable,vr!==l.depth_enable&&(vr?a.enable(2929):a.disable(2929),l.depth_enable=vr),Vt=u.depth_func,Vt!==l.depth_func&&(a.depthFunc(Vt),l.depth_func=Vt),Pe=M[0],xe=M[1],(Pe!==O[0]||xe!==O[1])&&(a.depthRange(Pe,xe),O[0]=Pe,O[1]=xe),Oe=u.depth_mask,Oe!==l.depth_mask&&(a.depthMask(Oe),l.depth_mask=Oe),ze=F[0],De=F[1],ht=F[2],st=F[3],(ze!==U[0]||De!==U[1]||ht!==U[2]||st!==U[3])&&(a.colorMask(ze,De,ht,st),U[0]=ze,U[1]=De,U[2]=ht,U[3]=st),gt=u.cull_enable,gt!==l.cull_enable&&(gt?a.enable(2884):a.disable(2884),l.cull_enable=gt),xt=u.cull_face,xt!==l.cull_face&&(a.cullFace(xt),l.cull_face=xt),pr=u.frontFace,pr!==l.frontFace&&(a.frontFace(pr),l.frontFace=pr),br=u.lineWidth,br!==l.lineWidth&&(a.lineWidth(br),l.lineWidth=br),cr=u.polygonOffset_enable,cr!==l.polygonOffset_enable&&(cr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=cr),Er=G[0],ii=G[1],(Er!==j[0]||ii!==j[1])&&(a.polygonOffset(Er,ii),j[0]=Er,j[1]=ii),jr=u.sample_alpha,jr!==l.sample_alpha&&(jr?a.enable(32926):a.disable(32926),l.sample_alpha=jr),kr=u.sample_enable,kr!==l.sample_enable&&(kr?a.enable(32928):a.disable(32928),l.sample_enable=kr),Vr=W[0],Ai=W[1],(Vr!==N[0]||Ai!==N[1])&&(a.sampleCoverage(Vr,Ai),N[0]=Vr,N[1]=Ai),Bi=u.stencil_enable,Bi!==l.stencil_enable&&(Bi?a.enable(2960):a.disable(2960),l.stencil_enable=Bi),Ri=u.stencil_mask,Ri!==l.stencil_mask&&(a.stencilMask(Ri),l.stencil_mask=Ri),ln=H[0],hn=H[1],qr=H[2],(ln!==re[0]||hn!==re[1]||qr!==re[2])&&(a.stencilFunc(ln,hn,qr),re[0]=ln,re[1]=hn,re[2]=qr),_i=ae[0],zi=ae[1],Dt=ae[2],_t=ae[3],(_i!==me[0]||zi!==me[1]||Dt!==me[2]||_t!==me[3])&&(a.stencilOpSeparate(_i,zi,Dt,_t),me[0]=_i,me[1]=zi,me[2]=Dt,me[3]=_t),qt=Ce[0],Nt=Ce[1],mr=Ce[2],Lr=Ce[3],(qt!==Ee[0]||Nt!==Ee[1]||mr!==Ee[2]||Lr!==Ee[3])&&(a.stencilOpSeparate(qt,Nt,mr,Lr),Ee[0]=qt,Ee[1]=Nt,Ee[2]=mr,Ee[3]=Lr),Nr=u.scissor_enable,Nr!==l.scissor_enable&&(Nr?a.enable(3089):a.disable(3089),l.scissor_enable=Nr),Fr=de[0],Hr=de[1],Gr=de[2],mi=de[3],(Fr!==te[0]||Hr!==te[1]||Gr!==te[2]||mi!==te[3])&&(a.scissor(Fr,Hr,Gr,mi),te[0]=Fr,te[1]=Hr,te[2]=Gr,te[3]=mi),Ei=Se[0],Vi=Se[1],ti=Se[2],Qi=Se[3],(Ei!==Te[0]||Vi!==Te[1]||ti!==Te[2]||Qi!==Te[3])&&(a.viewport(Ei,Vi,ti,Qi),Te[0]=Ei,Te[1]=Vi,Te[2]=ti,Te[3]=Qi),l.dirty=!1}Ke=l.profile,Ke&&(zt=performance.now(),r.count++),Mt=d.frag,kt=d.vert,$e=d.program(kt,Mt),a.useProgram($e.program),y.setVAO(null),Re=$e.id,Me=rt[Re],Me?Me.call(this,Ot):(Me=rt[Re]=n($e),Me.call(this,Ot)),y.setVAO(null),Ke&&(r.cpuTime+=performance.now()-zt)},scope:function(Ot,it,Ke){var zt,Mt;zt=l.profile,zt&&(Mt=performance.now(),r.count++),it(o,Ot,Ke),zt&&(r.cpuTime+=performance.now()-Mt)},batch:function(Ot,it){var Ke,zt,Mt,kt,$e,Re,Me,oe;if(Ke=v.next,Ke!==v.cur&&(Ke?a.bindFramebuffer(36160,Ke.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ke),l.dirty){var Ne,vt,lt,We,Ve,et,tt,Lt,jt,or,yr,vr,Vt,Pe,xe,Oe,ze,De,ht,st,gt,xt,pr,br,cr,Er,ii,jr,kr,Vr,Ai,Bi,Ri,ln,hn,qr,_i,zi,Dt,_t,qt,Nt,mr,Lr,Nr,Fr,Hr,Gr,mi,Ei,Vi,ti,Qi,Yr;Ne=u.dither,Ne!==l.dither&&(Ne?a.enable(3024):a.disable(3024),l.dither=Ne),vt=u.blend_enable,vt!==l.blend_enable&&(vt?a.enable(3042):a.disable(3042),l.blend_enable=vt),lt=L[0],We=L[1],Ve=L[2],et=L[3],(lt!==x[0]||We!==x[1]||Ve!==x[2]||et!==x[3])&&(a.blendColor(lt,We,Ve,et),x[0]=lt,x[1]=We,x[2]=Ve,x[3]=et),tt=k[0],Lt=k[1],(tt!==S[0]||Lt!==S[1])&&(a.blendEquationSeparate(tt,Lt),S[0]=tt,S[1]=Lt),jt=m[0],or=m[1],yr=m[2],vr=m[3],(jt!==P[0]||or!==P[1]||yr!==P[2]||vr!==P[3])&&(a.blendFuncSeparate(jt,or,yr,vr),P[0]=jt,P[1]=or,P[2]=yr,P[3]=vr),Vt=u.depth_enable,Vt!==l.depth_enable&&(Vt?a.enable(2929):a.disable(2929),l.depth_enable=Vt),Pe=u.depth_func,Pe!==l.depth_func&&(a.depthFunc(Pe),l.depth_func=Pe),xe=M[0],Oe=M[1],(xe!==O[0]||Oe!==O[1])&&(a.depthRange(xe,Oe),O[0]=xe,O[1]=Oe),ze=u.depth_mask,ze!==l.depth_mask&&(a.depthMask(ze),l.depth_mask=ze),De=F[0],ht=F[1],st=F[2],gt=F[3],(De!==U[0]||ht!==U[1]||st!==U[2]||gt!==U[3])&&(a.colorMask(De,ht,st,gt),U[0]=De,U[1]=ht,U[2]=st,U[3]=gt),xt=u.cull_enable,xt!==l.cull_enable&&(xt?a.enable(2884):a.disable(2884),l.cull_enable=xt),pr=u.cull_face,pr!==l.cull_face&&(a.cullFace(pr),l.cull_face=pr),br=u.frontFace,br!==l.frontFace&&(a.frontFace(br),l.frontFace=br),cr=u.lineWidth,cr!==l.lineWidth&&(a.lineWidth(cr),l.lineWidth=cr),Er=u.polygonOffset_enable,Er!==l.polygonOffset_enable&&(Er?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Er),ii=G[0],jr=G[1],(ii!==j[0]||jr!==j[1])&&(a.polygonOffset(ii,jr),j[0]=ii,j[1]=jr),kr=u.sample_alpha,kr!==l.sample_alpha&&(kr?a.enable(32926):a.disable(32926),l.sample_alpha=kr),Vr=u.sample_enable,Vr!==l.sample_enable&&(Vr?a.enable(32928):a.disable(32928),l.sample_enable=Vr),Ai=W[0],Bi=W[1],(Ai!==N[0]||Bi!==N[1])&&(a.sampleCoverage(Ai,Bi),N[0]=Ai,N[1]=Bi),Ri=u.stencil_enable,Ri!==l.stencil_enable&&(Ri?a.enable(2960):a.disable(2960),l.stencil_enable=Ri),ln=u.stencil_mask,ln!==l.stencil_mask&&(a.stencilMask(ln),l.stencil_mask=ln),hn=H[0],qr=H[1],_i=H[2],(hn!==re[0]||qr!==re[1]||_i!==re[2])&&(a.stencilFunc(hn,qr,_i),re[0]=hn,re[1]=qr,re[2]=_i),zi=ae[0],Dt=ae[1],_t=ae[2],qt=ae[3],(zi!==me[0]||Dt!==me[1]||_t!==me[2]||qt!==me[3])&&(a.stencilOpSeparate(zi,Dt,_t,qt),me[0]=zi,me[1]=Dt,me[2]=_t,me[3]=qt),Nt=Ce[0],mr=Ce[1],Lr=Ce[2],Nr=Ce[3],(Nt!==Ee[0]||mr!==Ee[1]||Lr!==Ee[2]||Nr!==Ee[3])&&(a.stencilOpSeparate(Nt,mr,Lr,Nr),Ee[0]=Nt,Ee[1]=mr,Ee[2]=Lr,Ee[3]=Nr),Fr=u.scissor_enable,Fr!==l.scissor_enable&&(Fr?a.enable(3089):a.disable(3089),l.scissor_enable=Fr),Hr=de[0],Gr=de[1],mi=de[2],Ei=de[3],(Hr!==te[0]||Gr!==te[1]||mi!==te[2]||Ei!==te[3])&&(a.scissor(Hr,Gr,mi,Ei),te[0]=Hr,te[1]=Gr,te[2]=mi,te[3]=Ei),Vi=Se[0],ti=Se[1],Qi=Se[2],Yr=Se[3],(Vi!==Te[0]||ti!==Te[1]||Qi!==Te[2]||Yr!==Te[3])&&(a.viewport(Vi,ti,Qi,Yr),Te[0]=Vi,Te[1]=ti,Te[2]=Qi,Te[3]=Yr),l.dirty=!1}zt=l.profile,zt&&(Mt=performance.now(),r.count+=it),kt=d.frag,$e=d.vert,Re=d.program($e,kt),a.useProgram(Re.program),y.setVAO(null),Me=Re.id,oe=bt[Me],oe?oe.call(this,Ot,it):(oe=bt[Me]=i(Re),oe.call(this,Ot,it)),y.setVAO(null),zt&&(r.cpuTime+=performance.now()-Mt)}}}});var GVe=we((S2r,VVe)=>{"use strict";var VWt=DVe(),GWt=OVe(),HWt=qVe(),WWt=UVe();VVe.exports={"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":VWt,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":GWt,"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":HWt,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:WWt}});var jVe=we((M2r,WVe)=>{"use strict";var HVe=lJ(),jWt=GVe();Object.assign(HVe.reglPrecompiled,jWt);WVe.exports=HVe});var YVe=we((E2r,ZVe)=>{"use strict";var XVe=IVe();XVe.plot=jVe();ZVe.exports=XVe});var uJ=we((k2r,eGe)=>{"use strict";var JVe=Su().extendFlat,XWt=Vf(),KVe=gc(),ZWt=nc(),{hovertemplateAttrs:$Ve,templatefallbackAttrs:QVe}=Of(),YWt=zc().attributes,KWt=JVe({editType:"calc"},ZWt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:$Ve({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:QVe({editType:"plot"})});eGe.exports={domain:YWt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:JVe({},XWt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:$Ve({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:QVe({editType:"plot"}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:KVe({editType:"calc"}),tickfont:KVe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:KWt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var iGe=we((C2r,rGe)=>{"use strict";var CS=ei(),JWt=yp().hasColorscale,$Wt=nd(),QWt=zc().defaults,ejt=$d(),tGe=uJ(),tjt=j8(),rjt=Jd().isTypedArraySpec;function ijt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate"),i("line.hovertemplatefallback");var a=i("line.color",n.colorway[0]);if(JWt(e,"line")&&CS.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),$Wt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function njt(e,t){function r(l,f){return CS.coerce(e,t,tGe.dimensions,l,f)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=CS.isArrayOrTypedArray(a)&&a.length>0||rjt(a),s;o&&(s="array");var u=r("categoryorder",s);u==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&u==="array"&&(t.categoryorder="trace")}}rGe.exports=function(t,r,n,i){function a(l,f){return CS.coerce(t,r,tGe,l,f)}var o=ejt(t,r,{name:"dimensions",handleItemDefaults:njt}),s=ijt(t,r,n,i,a);QWt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),tjt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var u=i.font;CS.coerceFont(a,"labelfont",u,{overrideDflt:{size:Math.round(u.size)}}),CS.coerceFont(a,"tickfont",u,{autoShadowDflt:!0,overrideDflt:{size:Math.round(u.size/1.2)}})}});var aGe=we((L2r,nGe)=>{"use strict";var ajt=ag().wrap,ojt=yp().hasColorscale,sjt=gp(),ljt=vq(),ujt=Mu(),jk=ei(),fjt=ku();nGe.exports=function(t,r){var n=jk.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(m){var P;if(m.categoryorder==="trace")P=null;else if(m.categoryorder==="array")P=m.categoryarray;else{P=ljt(m.values);for(var M=!0,O=0;O=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var pGe=we((P2r,dGe)=>{"use strict";var Nf=Kl(),bjt=(j2(),mb(W2)).interpolateNumber,wjt=Jz(),Yk=Vc(),kx=ei(),Xk=kx.strTranslate,oGe=Mu(),fJ=hd(),Ajt=Wf();function Tjt(e,t,r,n){var i=t._context.staticPlot,a=e.map(qjt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,y1),u=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(C){return Xk(C.x,C.y)}),u.append("g").attr("class","paths");var l=s.select("g.paths"),f=l.selectAll("path.path").data(function(C){return C.paths},y1);f.attr("fill",function(C){return C.model.color});var c=f.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(C){return C.model.color}).attr("fill-opacity",0);dJ(c),f.attr("d",function(C){return C.svgD}),c.empty()||f.sort(cJ),f.exit().remove(),f.on("mouseover",Sjt).on("mouseout",Mjt).on("click",Ejt),u.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(C){return C.dimensions},y1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(C){return Xk(C.x,0)}),d.exit().remove();var p=d.selectAll("g.category").data(function(C){return C.categories},y1),y=p.enter().append("g").attr("class","category");p.attr("transform",function(C){return Xk(0,C.y)}),y.append("rect").attr("class","catrect").attr("pointer-events","none"),p.select("rect.catrect").attr("fill","none").attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),lGe(y);var b=p.selectAll("rect.bandrect").data(function(C){return C.bands},y1);b.each(function(){kx.raiseToTop(this)}),b.attr("fill",function(C){return C.color});var v=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(C){return C.color}).attr("fill-opacity",0);b.attr("fill",function(C){return C.color}).attr("width",function(C){return C.width}).attr("height",function(C){return C.height}).attr("y",function(C){return C.y}).attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":C.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),vJ(v),b.exit().remove(),y.append("text").attr("class","catlabel").attr("pointer-events","none"),p.select("text.catlabel").attr("text-anchor",function(C){return Zk(C)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(C){return Zk(C)?C.width+5:-5}).attr("y",function(C){return C.height/2}).text(function(C){return C.model.categoryLabel}).each(function(C){oGe.font(Nf.select(this),C.parcatsViewModel.categorylabelfont),Ajt.convertToTspans(Nf.select(this),t)}),y.append("text").attr("class","dimlabel"),p.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(C){return C.width/2}).attr("y",-5).text(function(C,E){return E===0?C.parcatsViewModel.model.dimensions[C.model.dimensionInd].dimensionLabel:null}).each(function(C){oGe.font(Nf.select(this),C.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",Rjt).on("mouseout",Djt),p.exit().remove(),d.call(Nf.behavior.drag().origin(function(C){return{x:C.x,y:0}}).on("dragstart",Fjt).on("drag",Ojt).on("dragend",Bjt)),s.each(function(C){C.traceSelection=Nf.select(this),C.pathSelection=Nf.select(this).selectAll("g.paths").selectAll("path.path"),C.dimensionSelection=Nf.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}dGe.exports=function(e,t,r,n){Tjt(r,e,n,t)};function y1(e){return e.key}function Zk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function cJ(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),x=Nf.mouse(i)[0];Yk.loneHover({trace:a,x:p-s.left+u.left,y:y-s.top+u.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:x1&&l.displayInd===u.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var p=s.model.count,y=s.model.categoryLabel,b=p/s.parcatsViewModel.model.count,v={countLabel:p,categoryLabel:y,probabilityLabel:b.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",v.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&C.push(["P("+v.categoryLabel+"):",v.probabilityLabel].join(" "));var E=C.join("
");return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:v,eventData:[{data:f._input,fullData:f,count:p,category:y,probability:b}]}}function zjt(e,t,r){var n=[];return Nf.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(uGe(e,t,i))}),n}function Ijt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Nf.select(r).datum(),s=o.categoryViewModel,u=s.parcatsViewModel,l=u.model.dimensions[s.model.dimensionInd],f=u.trace,c=a.y+a.height/2,h,d;u.dimensions.length>1&&l.displayInd===u.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var p=s.model.categoryLabel,y=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var v=s.model.count,C=0;u.pathSelection.each(function(P){P.model.color===o.color&&(C+=P.model.count)});var E=b/y,A=b/C,L=b/v,x={countLabel:b,categoryLabel:p,probabilityLabel:E.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(k.push("P(color \u2229 "+p+"): "+x.probabilityLabel),k.push("P("+p+" | color): "+A.toFixed(3)),k.push("P(color | "+p+"): "+L.toFixed(3)));var S=k.join("
"),m=fJ.mostReadable(o.color,["black","white"]);return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:S,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:m,fontSize:10,idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:x,eventData:[{data:f._input,fullData:f,category:p,count:y,probability:E,categorycount:v,colorcount:C,bandcolorcount:b}]}}function Rjt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Nf.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(Pjt(o),yJ(o,"plotly_hover",Nf.event)):(Ljt(o),mJ(o,"plotly_hover",Nf.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=uGe(r,i,o):a==="color"?s=Ijt(r,i,o):a==="dimension"&&(s=zjt(r,i,o)),s&&Yk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function Djt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(dJ(t.pathSelection),lGe(t.dimensionSelection.selectAll("g.category")),vJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Yk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(cJ),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?yJ(n,"plotly_unhover",Nf.event):mJ(n,"plotly_unhover",Nf.event)}}function Fjt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Nf.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Nf.mouse(this)[0],n=Nf.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,kx.raiseToTop(this.parentNode),Nf.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yf.y+f.height/2&&(a.model.displayInd=f.model.displayInd,f.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Nf.event.x;var c=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];c!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}_J(e.parcatsViewModel),gJ(e.parcatsViewModel),hGe(e.parcatsViewModel),cGe(e.parcatsViewModel)}}function Bjt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Nf.select(this).selectAll("text").attr("font-weight","normal");var t={},r=fGe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var p=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+p+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),u=s.map(function(h){return h.categoryValue}),l=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[u],t["dimensions["+e.model.containerInd+"].ticktext"]=[l],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?yJ(e.potentialClickBand,"plotly_click",Nf.event.sourceEvent):mJ(e.potentialClickBand,"plotly_click",Nf.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var f=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];f.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,_J(e.parcatsViewModel),gJ(e.parcatsViewModel);var c=Nf.transition().duration(300).ease("cubic-in-out");c.each(function(){hGe(e.parcatsViewModel,!0),cGe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&wjt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function fGe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;u--)l+="C"+o[u]+","+(t[u+1]+n)+" "+a[u]+","+(t[u]+n)+" "+(e[u]+r[u])+","+(t[u]+n),l+="l-"+r[u]+",0 ";return l+="Z",l}function gJ(e){var t=e.dimensions,r=e.model,n=t.map(function(F){return F.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(F){return F.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(F){return F.displayInd}),o=e.dimensions.map(function(F){return F.model.dimensionInd}),s=t.map(function(F){return F.x}),u=t.map(function(F){return F.width}),l=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&l.push(r.paths[f]);function c(F){var U=F.categoryInds.map(function(j,W){return i[W][j]}),G=o.map(function(j){return U[j]});return G}l.sort(function(F,U){var G=c(F),j=c(U);return e.sortpaths==="backward"&&(G.reverse(),j.reverse()),G.push(F.valueInds[0]),j.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(F.rawColor),j.unshift(U.rawColor)),Gj?1:0});for(var h=new Array(l.length),d=t[0].model.count,p=t[0].categories.map(function(F){return F.height}).reduce(function(F,U){return F+U}),y=0;y0?v=p*(b.count/d):v=0;for(var C=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,u=s+o*a;var l=[],f=e.model.maxCats,c=t.categories.length,h=8,d=t.count,p=e.height-h*(f-1),y,b,v,C,E,A=(f-c)*h/2,L=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(L.sort(function(x,k){return x.displayInd-k.displayInd}),E=0;E0?y=b.count/d*p:y=0,v={key:b.valueInds[0],model:b,width:n,height:y,y:b.dragY!==null?b.dragY:A,bands:[],parcatsViewModel:e},A=A+y+h,l.push(v);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:u,y:0,width:n,model:t,categories:l,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var xJ=we((z2r,vGe)=>{"use strict";var Ujt=pGe();vGe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;Ujt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var yGe=we(u9=>{"use strict";var Vjt=Rd().getModuleCalcData,Gjt=xJ(),mGe="parcats";u9.name=mGe;u9.plot=function(e,t,r,n){var i=Vjt(e.calcdata,mGe);if(i.length){var a=i[0];Gjt(e,a,r,n)}};u9.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var _Ge=we((R2r,gGe)=>{"use strict";gGe.exports={attributes:uJ(),supplyDefaults:iGe(),calc:aGe(),plot:xJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:yGe(),categories:["noOpacity"],meta:{}}});var bGe=we((D2r,xGe)=>{"use strict";xGe.exports=_Ge()});var g1=we((F2r,kGe)=>{"use strict";var Hjt=r_(),wGe="1.13.4",MGe='\xA9 OpenStreetMap contributors',AGe=['\xA9 Carto',MGe].join(" "),TGe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),Wjt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),EGe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:MGe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:AGe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:AGe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:TGe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:TGe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:Wjt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},SGe=Hjt(EGe);kGe.exports={requiredVersion:wGe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:EGe,styleValuesNonMapbox:SGe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+wGe+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",xGe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",SGe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var Yk=we((_2r,EGe)=>{"use strict";var TGe=ei(),SGe=jl().defaultLine,Cjt=zc().attributes,Ljt=gc(),Pjt=Zc().textposition,zjt=Sc().overrideAll,Ijt=Lf().templatedArray,gJ=y1(),MGe=Ljt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});MGe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Djt=EGe.exports=zjt({_arrayAttrRegexps:[TGe.counterRegex("mapbox",".layers",!0)],domain:Cjt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:gJ.styleValuesMapbox.concat(gJ.styleValuesNonMapbox),dflt:gJ.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Ijt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:SGe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:SGe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:MGe,textposition:TGe.extendFlat({},Pjt,{arrayOk:!1})}})},"plot","from-root");Djt.uirevision={valType:"any",editType:"none"}});var l8=we((x2r,PGe)=>{"use strict";var{hovertemplateAttrs:Rjt,texttemplateAttrs:Fjt,templatefallbackAttrs:kGe}=Ff(),Ojt=Pm(),Kk=tw(),kS=Zc(),CGe=Yk(),Bjt=Gf(),qjt=nc(),dw=Su().extendFlat,Njt=Sc().overrideAll,Ujt=Yk(),LGe=Kk.line,CS=Kk.marker;PGe.exports=Njt({lon:Kk.lon,lat:Kk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:dw({},Ujt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:dw({},CS.opacity,{dflt:1})},mode:dw({},kS.mode,{dflt:"markers"}),text:dw({},kS.text,{}),texttemplate:Fjt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:kGe({editType:"plot"}),hovertext:dw({},kS.hovertext,{}),line:{color:LGe.color,width:LGe.width},connectgaps:kS.connectgaps,marker:dw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:CS.opacity,size:CS.size,sizeref:CS.sizeref,sizemin:CS.sizemin,sizemode:CS.sizemode},qjt("marker")),fill:Kk.fill,fillcolor:Ojt(),textfont:CGe.layers.symbol.textfont,textposition:CGe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:kS.selected.marker},unselected:{marker:kS.unselected.marker},hoverinfo:dw({},Bjt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Rjt(),hovertemplatefallback:kGe()},"calc","nested")});var _J=we((b2r,zGe)=>{"use strict";var Vjt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];zGe.exports={isSupportedFont:function(e){return Vjt.indexOf(e)!==-1}}});var RGe=we((w2r,DGe)=>{"use strict";var Jk=ei(),xJ=lc(),Gjt=$v(),Hjt=D0(),Wjt=R0(),jjt=Rm(),IGe=l8(),Xjt=_J().isSupportedFont;DGe.exports=function(t,r,n,i){function a(v,C){return Jk.coerce(t,r,IGe,v,C)}function o(v,C){return Jk.coerce2(t,r,IGe,v,C)}var s=Zjt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),xJ.hasMarkers(r)){Gjt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Jk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Jk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}xJ.hasLines(r)&&(Hjt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,y=a("cluster.enabled",p);if(y||xJ.hasText(r)){var b=i.font.family;Wjt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Xjt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&jjt(t,r,n,a),Jk.coerceSelectionMarkerOpacity(r,a)};function Zjt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var bJ=we((A2r,OGe)=>{"use strict";var FGe=wu();OGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=FGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=FGe.tickText(o,o.c2l(s[1]),!0).text,i}});var wJ=we((T2r,qGe)=>{"use strict";var BGe=ei();qGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=BGe.isArrayOrTypedArray(r)?BGe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var WGe=we((S2r,HGe)=>{"use strict";var VGe=ku(),lp=ei(),Yjt=rf().BADNUM,f8=cx(),NGe=_c(),Kjt=Mu(),Jjt=q3(),c8=lc(),$jt=_J().isSupportedFont,Qjt=wJ(),eXt=iv().appendArrayPointValue,tXt=Wf().NEWLINES,rXt=Wf().BR_TAG_ALL;HGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=c8.hasLines(n),s=c8.hasMarkers(n),u=c8.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=u8("fill"),d=u8("line"),p=u8("circle"),y=u8("symbol"),b={fill:h,line:d,circle:p,symbol:y};if(!i)return b;var v;if((a||o)&&(v=f8.calcTraceToLineCoords(r)),a&&(h.geojson=f8.makePolygon(v),h.layout.visibility="visible",lp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=f8.makeLine(v),d.layout.visibility="visible",lp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var C=iXt(r);p.geojson=C.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":TJ(n.cluster.color,n.cluster.step),"circle-radius":TJ(n.cluster.size,n.cluster.step),"circle-opacity":TJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":UGe(n),"text-size":12}}),lp.extendFlat(p.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(y.geojson=nXt(r,t),lp.extendFlat(y.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(lp.extendFlat(y.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&lp.extendFlat(y.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),y.layout["icon-allow-overlap"]=n.marker.allowoverlap,lp.extendFlat(y.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var M=(n.marker||{}).size,A=Qjt(n.textposition,M);lp.extendFlat(y.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":UGe(n)}),lp.extendFlat(y.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function u8(e){return{type:e,geojson:f8.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function iXt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=lp.isArrayOrTypedArray(r.color),a=lp.isArrayOrTypedArray(r.size),o=lp.isArrayOrTypedArray(r.opacity),s;function u(M){return t.opacity*M}function l(M){return M/2}var f;i&&(NGe.hasColorscale(t,"marker")?f=NGe.makeColorScaleFuncFromTrace(r):f=lp.identity);var c;a&&(c=Jjt(t));var h;o&&(h=function(M){var A=VGe(M)?+lp.constrain(M,0,1):0;return u(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),$jt(s)||(s=r);var u=s.split(", ");return u}});var YGe=we((M2r,ZGe)=>{"use strict";var aXt=ei(),jGe=WGe(),LS=y1().traceLayerPrefix,nm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function XGe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:LS+t+"-fill",line:LS+t+"-line",circle:LS+t+"-circle",symbol:LS+t+"-symbol",cluster:LS+t+"-cluster",clusterCount:LS+t+"-cluster-count"},this.below=null}var $k=XGe.prototype;$k.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&aXt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};$k.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};$k.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=A[L];i.removeLayer(l.layerIds[x])}M||i.removeSource(l.sourceIds.circle)}function h(M){for(var A=nm.nonCluster,L=0;L=0;L--){var x=A[L];i.removeLayer(l.layerIds[x]),M||i.removeSource(l.sourceIds[x])}}function p(M){u?c(M):d(M)}function y(M){s?f(M):h(M)}function b(){for(var M=s?nm.cluster:nm.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};ZGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new XGe(t,n.uid,i,a),s=jGe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var oXt=Vc(),SJ=ei(),sXt=gA(),lXt=SJ.fillText,uXt=rf().BADNUM,fXt=y1().traceLayerPrefix;function cXt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=fXt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function y(S){var m=S.lonlat;if(m[0]===uXt||f&&u.indexOf(S.i+1)===-1)return 1/0;var P=SJ.modHalf(m[0],360),E=m[1],O=s.project([P,E]),F=O.x-a.c2p([p,E]),U=O.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(oXt.getClosest(n,y,e),e.index!==!1){var b=n[e.index],v=b.lonlat,C=[SJ.modHalf(v[0],360)+d,v[1]],M=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=M-L,e.x1=M+L,e.y0=A-L,e.y1=A+L;var x={};x[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,x);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=sXt(i,b),e.extraText=KGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function KGe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&lXt(t,e,l),l.join("
")}JGe.exports={hoverPoints:cXt,getExtraText:KGe}});var QGe=we((k2r,$Ge)=>{"use strict";$Ge.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var tHe=we((C2r,eHe)=>{"use strict";var hXt=ei(),dXt=lc(),pXt=rf().BADNUM;eHe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!dXt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof MJ=="object"&&typeof EJ!="undefined"?EJ.exports=t():(e=e||self,e.mapboxgl=t())})(MJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(g,_){return _={exports:{}},g(_,_.exports),_.exports}var o="1.13.4",s=u;function u(g,_,z,V){this.cx=3*g,this.bx=3*(z-g)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*_,this.by=3*(V-_)-this.cy,this.ay=1-this.cy-this.by,this.p1x=g,this.p1y=V,this.p2x=z,this.p2y=V}u.prototype.sampleCurveX=function(g){return((this.ax*g+this.bx)*g+this.cx)*g},u.prototype.sampleCurveY=function(g){return((this.ay*g+this.by)*g+this.cy)*g},u.prototype.sampleCurveDerivativeX=function(g){return(3*this.ax*g+2*this.bx)*g+this.cx},u.prototype.solveCurveX=function(g,_){typeof _=="undefined"&&(_=1e-6);var z,V,$,se,ve;for($=g,ve=0;ve<8;ve++){if(se=this.sampleCurveX($)-g,Math.abs(se)<_)return $;var Ze=this.sampleCurveDerivativeX($);if(Math.abs(Ze)<1e-6)break;$=$-se/Ze}if(z=0,V=1,$=g,$V)return V;for(;zse?z=$:V=$,$=(V-z)*.5+z}return $},u.prototype.solve=function(g,_){return this.sampleCurveY(this.solveCurveX(g,_))};var l=f;function f(g,_){this.x=g,this.y=_}f.prototype={clone:function(){return new f(this.x,this.y)},add:function(g){return this.clone()._add(g)},sub:function(g){return this.clone()._sub(g)},multByPoint:function(g){return this.clone()._multByPoint(g)},divByPoint:function(g){return this.clone()._divByPoint(g)},mult:function(g){return this.clone()._mult(g)},div:function(g){return this.clone()._div(g)},rotate:function(g){return this.clone()._rotate(g)},rotateAround:function(g,_){return this.clone()._rotateAround(g,_)},matMult:function(g){return this.clone()._matMult(g)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(g){return this.x===g.x&&this.y===g.y},dist:function(g){return Math.sqrt(this.distSqr(g))},distSqr:function(g){var _=g.x-this.x,z=g.y-this.y;return _*_+z*z},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(g){return Math.atan2(this.y-g.y,this.x-g.x)},angleWith:function(g){return this.angleWithSep(g.x,g.y)},angleWithSep:function(g,_){return Math.atan2(this.x*_-this.y*g,this.x*g+this.y*_)},_matMult:function(g){var _=g[0]*this.x+g[1]*this.y,z=g[2]*this.x+g[3]*this.y;return this.x=_,this.y=z,this},_add:function(g){return this.x+=g.x,this.y+=g.y,this},_sub:function(g){return this.x-=g.x,this.y-=g.y,this},_mult:function(g){return this.x*=g,this.y*=g,this},_div:function(g){return this.x/=g,this.y/=g,this},_multByPoint:function(g){return this.x*=g.x,this.y*=g.y,this},_divByPoint:function(g){return this.x/=g.x,this.y/=g.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var g=this.y;return this.y=this.x,this.x=-g,this},_rotate:function(g){var _=Math.cos(g),z=Math.sin(g),V=_*this.x-z*this.y,$=z*this.x+_*this.y;return this.x=V,this.y=$,this},_rotateAround:function(g,_){var z=Math.cos(g),V=Math.sin(g),$=_.x+z*(this.x-_.x)-V*(this.y-_.y),se=_.y+V*(this.x-_.x)+z*(this.y-_.y);return this.x=$,this.y=se,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(g){return g instanceof f?g:Array.isArray(g)?new f(g[0],g[1]):g};var c=typeof self!="undefined"?self:{};function h(g,_){if(Array.isArray(g)){if(!Array.isArray(_)||g.length!==_.length)return!1;for(var z=0;z=1)return 1;var _=g*g,z=_*g;return 4*(g<.5?z:3*(g-_)+z-.75)}function y(g,_,z,V){var $=new s(g,_,z,V);return function(se){return $.solve(se)}}var b=y(.25,.1,.25,1);function v(g,_,z){return Math.min(z,Math.max(_,g))}function C(g,_,z){var V=z-_,$=((g-_)%V+V)%V+_;return $===_?z:$}function M(g,_,z){if(!g.length)return z(null,[]);var V=g.length,$=new Array(g.length),se=null;g.forEach(function(ve,Ze){_(ve,function(At,It){At&&(se=At),$[Ze]=It,--V===0&&z(se,$)})})}function A(g){var _=[];for(var z in g)_.push(g[z]);return _}function L(g,_){var z=[];for(var V in g)V in _||z.push(V);return z}function x(g){for(var _=[],z=arguments.length-1;z-- >0;)_[z]=arguments[z+1];for(var V=0,$=_;V<$.length;V+=1){var se=$[V];for(var ve in se)g[ve]=se[ve]}return g}function k(g,_){for(var z={},V=0;V<_.length;V++){var $=_[V];$ in g&&(z[$]=g[$])}return z}var S=1;function m(){return S++}function P(){function g(_){return _?(_^Math.random()*16>>_/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,g)}return g()}function E(g){return g<=1?1:Math.pow(2,Math.ceil(Math.log(g)/Math.LN2))}function O(g){return g?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(g):!1}function F(g,_){g.forEach(function(z){_[z]&&(_[z]=_[z].bind(_))})}function U(g,_){return g.indexOf(_,g.length-_.length)!==-1}function G(g,_,z){var V={};for(var $ in g)V[$]=_.call(z||this,g[$],$,g);return V}function j(g,_,z){var V={};for(var $ in g)_.call(z||this,g[$],$,g)&&(V[$]=g[$]);return V}function W(g){return Array.isArray(g)?g.map(W):typeof g=="object"&&g?G(g,W):g}function N(g,_){for(var z=0;z=0)return!0;return!1}var H={};function re(g){H[g]||(typeof console!="undefined"&&console.warn(g),H[g]=!0)}function ae(g,_,z){return(z.y-g.y)*(_.x-g.x)>(_.y-g.y)*(z.x-g.x)}function me(g){for(var _=0,z=0,V=g.length,$=V-1,se=void 0,ve=void 0;z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,z={};if(g.replace(_,function($,se,ve,Ze){var At=ve||Ze;return z[se]=At?At.toLowerCase():!0,""}),z["max-age"]){var V=parseInt(z["max-age"],10);isNaN(V)?delete z["max-age"]:z["max-age"]=V}return z}var te=null;function Se(g){if(te==null){var _=g.navigator?g.navigator.userAgent:null;te=!!g.safari||!!(_&&(/\b(iPad|iPhone|iPod)\b/.test(_)||_.match("Safari")&&!_.match("Chrome")))}return te}function Te(g){try{var _=c[g];return _.setItem("_mapbox_test_",1),_.removeItem("_mapbox_test_"),!0}catch(z){return!1}}function be(g){return c.btoa(encodeURIComponent(g).replace(/%([0-9A-F]{2})/g,function(_,z){return String.fromCharCode(+("0x"+z))}))}function He(g){return decodeURIComponent(c.atob(g).split("").map(function(_){return"%"+("00"+_.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Ie=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now.bind(Date),ge=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame||c.msRequestAnimationFrame,Be=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame||c.msCancelAnimationFrame,ce,je,rt={now:Ie,frame:function(_){var z=ge(_);return{cancel:function(){return Be(z)}}},getImageData:function(_,z){z===void 0&&(z=0);var V=c.document.createElement("canvas"),$=V.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return V.width=_.width,V.height=_.height,$.drawImage(_,0,0,_.width,_.height),$.getImageData(-z,-z,_.width+2*z,_.height+2*z)},resolveURL:function(_){return ce||(ce=c.document.createElement("a")),ce.href=_,ce.href},hardwareConcurrency:c.navigator&&c.navigator.hardwareConcurrency||4,get devicePixelRatio(){return c.devicePixelRatio},get prefersReducedMotion(){return c.matchMedia?(je==null&&(je=c.matchMedia("(prefers-reduced-motion: reduce)")),je.matches):!1}},bt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Ot={supported:!1,testSupport:kt},it,Ke=!1,zt,Mt=!1;c.document&&(zt=c.document.createElement("img"),zt.onload=function(){it&&$e(it),it=null,Mt=!0},zt.onerror=function(){Ke=!0,it=null},zt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function kt(g){Ke||!zt||(Mt?$e(g):it=g)}function $e(g){var _=g.createTexture();g.bindTexture(g.TEXTURE_2D,_);try{if(g.texImage2D(g.TEXTURE_2D,0,g.RGBA,g.RGBA,g.UNSIGNED_BYTE,zt),g.isContextLost())return;Ot.supported=!0}catch(z){}g.deleteTexture(_),Ke=!0}var De="01";function Me(){for(var g="1",_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",z="",V=0;V<10;V++)z+=_[Math.floor(Math.random()*62)];var $=12*60*60*1e3,se=[g,De,z].join(""),ve=Date.now()+$;return{token:se,tokenExpiresAt:ve}}var oe=function(_,z){this._transformRequestFn=_,this._customAccessToken=z,this._createSkuToken()};oe.prototype._createSkuToken=function(){var _=Me();this._skuToken=_.token,this._skuTokenExpiresAt=_.tokenExpiresAt},oe.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},oe.prototype.transformRequest=function(_,z){return this._transformRequestFn?this._transformRequestFn(_,z)||{url:_}:{url:_}},oe.prototype.normalizeStyleURL=function(_,z){if(!Ne(_))return _;var V=tt(_);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},oe.prototype.normalizeGlyphsURL=function(_,z){if(!Ne(_))return _;var V=tt(_);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},oe.prototype.normalizeSourceURL=function(_,z){if(!Ne(_))return _;var V=tt(_);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||z)},oe.prototype.normalizeSpriteURL=function(_,z,V,$){var se=tt(_);return Ne(_)?(se.path="/styles/v1"+se.path+"/sprite"+z+V,this._makeAPIURL(se,this._customAccessToken||$)):(se.path+=""+z+V,Lt(se))},oe.prototype.normalizeTileURL=function(_,z){if(this._isSkuTokenExpired()&&this._createSkuToken(),_&&!Ne(_))return _;var V=tt(_),$=/(\.(png|jpg)\d*)(?=$)/,se=/^.+\/v4\//,ve=rt.devicePixelRatio>=2||z===512?"@2x":"",Ze=Ot.supported?".webp":"$1";V.path=V.path.replace($,""+ve+Ze),V.path=V.path.replace(se,"/"),V.path="/v4"+V.path;var At=this._customAccessToken||Ve(V.params)||bt.ACCESS_TOKEN;return bt.REQUIRE_ACCESS_TOKEN&&At&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,At)},oe.prototype.canonicalizeTileURL=function(_,z){var V="/v4/",$=/\.[\w]+$/,se=tt(_);if(!se.path.match(/(^\/v4\/)/)||!se.path.match($))return _;var ve="mapbox://tiles/";ve+=se.path.replace(V,"");var Ze=se.params;return z&&(Ze=Ze.filter(function(At){return!At.match(/^access_token=/)})),Ze.length&&(ve+="?"+Ze.join("&")),ve},oe.prototype.canonicalizeTileset=function(_,z){for(var V=z?Ne(z):!1,$=[],se=0,ve=_.tiles||[];se=0&&_.params.splice(se,1)}if($.path!=="/"&&(_.path=""+$.path+_.path),!bt.REQUIRE_ACCESS_TOKEN)return Lt(_);if(z=z||bt.ACCESS_TOKEN,!z)throw new Error("An API access token is required to use Mapbox GL. "+V);if(z[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+V);return _.params=_.params.filter(function(ve){return ve.indexOf("access_token")===-1}),_.params.push("access_token="+z),Lt(_)};function Ne(g){return g.indexOf("mapbox:")===0}var vt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function lt(g){return vt.test(g)}function We(g){return g.indexOf("sku=")>0&<(g)}function Ve(g){for(var _=0,z=g;_=1&&c.localStorage.setItem(z,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},yr.prototype.processRequests=function(_){},yr.prototype.postEvent=function(_,z,V,$){var se=this;if(bt.EVENTS_URL){var ve=tt(bt.EVENTS_URL);ve.params.push("access_token="+($||bt.ACCESS_TOKEN||""));var Ze={event:this.type,created:new Date(_).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:De,userId:this.anonId},At=z?x(Ze,z):Ze,It={url:Lt(ve),headers:{"Content-Type":"text/plain"},body:JSON.stringify([At])};this.pendingRequest=Fr(It,function(Wt){se.pendingRequest=null,V(Wt),se.saveEventData(),se.processRequests($)})}},yr.prototype.queueRequest=function(_,z){this.queue.push(_),this.processRequests(z)};var vr=function(g){function _(){g.call(this,"map.load"),this.success={},this.skuToken=""}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.postMapLoadEvent=function(V,$,se,ve){this.skuToken=se,(bt.EVENTS_URL&&ve||bt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(Ze){return Ne(Ze)||lt(Ze)}))&&this.queueRequest({id:$,timestamp:Date.now()},ve)},_.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var se=this.queue.shift(),ve=se.id,Ze=se.timestamp;ve&&this.success[ve]||(this.anonId||this.fetchEventData(),O(this.anonId)||(this.anonId=P()),this.postEvent(Ze,{skuToken:this.skuToken},function(At){At||ve&&($.success[ve]=!0)},V))}},_}(yr),Vt=function(g){function _(z){g.call(this,"appUserTurnstile"),this._customAccessToken=z}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.postTurnstileEvent=function(V,$){bt.EVENTS_URL&&bt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(se){return Ne(se)||lt(se)})&&this.queueRequest(Date.now(),$)},_.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var se=or(bt.ACCESS_TOKEN),ve=se?se.u:bt.ACCESS_TOKEN,Ze=ve!==this.eventData.tokenU;O(this.anonId)||(this.anonId=P(),Ze=!0);var At=this.queue.shift();if(this.eventData.lastSuccess){var It=new Date(this.eventData.lastSuccess),Wt=new Date(At),_r=(At-this.eventData.lastSuccess)/(24*60*60*1e3);Ze=Ze||_r>=1||_r<-1||It.getDate()!==Wt.getDate()}else Ze=!0;if(!Ze)return this.processRequests();this.postEvent(At,{"enabled.telemetry":!1},function(Or){Or||($.eventData.lastSuccess=At,$.eventData.tokenU=ve)},V)}},_}(yr),Pe=new Vt,xe=Pe.postTurnstileEvent.bind(Pe),Oe=new vr,ze=Oe.postMapLoadEvent.bind(Oe),Re="mapbox-tiles",ht=500,st=50,gt=1e3*60*7,xt;function pr(){c.caches&&!xt&&(xt=c.caches.open(Re))}var br;function cr(g,_){if(br===void 0)try{new Response(new ReadableStream),br=!0}catch(z){br=!1}br?_(g.body):g.blob().then(_)}function Er(g,_,z){if(pr(),!!xt){var V={status:_.status,statusText:_.statusText,headers:new c.Headers};_.headers.forEach(function(ve,Ze){return V.headers.set(Ze,ve)});var $=de(_.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(z+$["max-age"]*1e3).toUTCString());var se=new Date(V.headers.get("Expires")).getTime()-z;seDate.now()&&!z["no-cache"]}var Vr=1/0;function Ai(g){Vr++,Vr>st&&(g.getActor().send("enforceCacheSizeLimit",ht),Vr=0)}function Bi(g){pr(),xt&&xt.then(function(_){_.keys().then(function(z){for(var V=0;V=200&&z.status<300||z.status===0)&&z.response!==null){var $=z.response;if(g.type==="json")try{$=JSON.parse(z.response)}catch(se){return _(se)}_(null,$,z.getResponseHeader("Cache-Control"),z.getResponseHeader("Expires"))}else _(new zi(z.statusText,z.status,g.url))},z.send(g.body),{cancel:function(){return z.abort()}}}var mr=function(g,_){if(!_t(g.url)){if(c.fetch&&c.Request&&c.AbortController&&c.Request.prototype.hasOwnProperty("signal"))return qt(g,_);if(Ce()&&self.worker&&self.worker.actor){var z=!0;return self.worker.actor.send("getResource",g,_,void 0,z)}}return Nt(g,_)},Lr=function(g,_){return mr(x(g,{type:"json"}),_)},Nr=function(g,_){return mr(x(g,{type:"arrayBuffer"}),_)},Fr=function(g,_){return mr(x(g,{method:"POST"}),_)};function Gr(g){var _=c.document.createElement("a");return _.href=g,_.protocol===c.document.location.protocol&&_.host===c.document.location.host}var Hr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function mi(g,_,z,V){var $=new c.Image,se=c.URL;$.onload=function(){_(null,$),se.revokeObjectURL($.src),$.onload=null,c.requestAnimationFrame(function(){$.src=Hr})},$.onerror=function(){return _(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var ve=new c.Blob([new Uint8Array(g)],{type:"image/png"});$.cacheControl=z,$.expires=V,$.src=g.byteLength?se.createObjectURL(ve):Hr}function Ei(g,_){var z=new c.Blob([new Uint8Array(g)],{type:"image/png"});c.createImageBitmap(z).then(function(V){_(null,V)}).catch(function(V){_(new Error("Could not load image because of "+V.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Vi,ti,Qi=function(){Vi=[],ti=0};Qi();var Yr=function(g,_){if(Ot.supported&&(g.headers||(g.headers={}),g.headers.accept="image/webp,*/*"),ti>=bt.MAX_PARALLEL_IMAGE_REQUESTS){var z={requestParameters:g,callback:_,cancelled:!1,cancel:function(){this.cancelled=!0}};return Vi.push(z),z}ti++;var V=!1,$=function(){if(!V)for(V=!0,ti--;Vi.length&&ti0||this._oneTimeListeners&&this._oneTimeListeners[_]&&this._oneTimeListeners[_].length>0||this._eventedParent&&this._eventedParent.listens(_)},Ii.prototype.setEventedParent=function(_,z){return this._eventedParent=_,this._eventedParentData=z,this};var xn=8,xi={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},Xr={"*":{type:"source"}},dt=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],$t={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},gr={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Zr={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},wi={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},$i={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ni={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Xi=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],aa={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Mn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Un={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ga={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ma={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},oa={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ka={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},so={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Kr={type:"array",value:"*"},Ia={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Yo={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},fa={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},kn={type:"array",value:"*",minimum:1},Ta={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},ys=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],uo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},ls={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},$a={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},fo={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mn={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},ra={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},wa={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ws={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Co={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Po={"*":{type:"string"}},Wi={$version:xn,$root:xi,sources:Xr,source:dt,source_vector:$t,source_raster:fr,source_raster_dem:gr,source_geojson:Zr,source_video:wi,source_image:$i,layer:ni,layout:Xi,layout_background:aa,layout_fill:Mn,layout_circle:Un,layout_heatmap:Ga,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:ma,layout_symbol:oa,layout_raster:ka,layout_hillshade:so,filter:Kr,filter_operator:Ia,geometry_type:Yo,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:fa,expression:kn,light:Ta,paint:ys,paint_fill:uo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:ls,paint_circle:$a,paint_heatmap:fo,paint_symbol:mn,paint_raster:ra,paint_hillshade:wa,paint_background:ws,transition:Co,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:Po},gn=function(_,z,V,$){this.message=(_?_+": ":"")+V,$&&(this.identifier=$),z!=null&&z.__line__&&(this.line=z.__line__)};function Ps(g){var _=g.key,z=g.value;return z?[new gn(_,z,"constants have been deprecated as of v8")]:[]}function Ha(g){for(var _=[],z=arguments.length-1;z-- >0;)_[z]=arguments[z+1];for(var V=0,$=_;V<$.length;V+=1){var se=$[V];for(var ve in se)g[ve]=se[ve]}return g}function Sn(g){return g instanceof Number||g instanceof String||g instanceof Boolean?g.valueOf():g}function ao(g){if(Array.isArray(g))return g.map(ao);if(g instanceof Object&&!(g instanceof Number||g instanceof String||g instanceof Boolean)){var _={};for(var z in g)_[z]=ao(g[z]);return _}return Sn(g)}var Oa=function(g){function _(z,V){g.call(this,V),this.message=V,this.key=z}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_}(Error),Ko=function(_,z){z===void 0&&(z=[]),this.parent=_,this.bindings={};for(var V=0,$=z;V<$.length;V+=1){var se=$[V],ve=se[0],Ze=se[1];this.bindings[ve]=Ze}};Ko.prototype.concat=function(_){return new Ko(this,_)},Ko.prototype.get=function(_){if(this.bindings[_])return this.bindings[_];if(this.parent)return this.parent.get(_);throw new Error(_+" not found in scope.")},Ko.prototype.has=function(_){return this.bindings[_]?!0:this.parent?this.parent.has(_):!1};var Qo={kind:"null"},Hi={kind:"number"},Sa={kind:"string"},Qa={kind:"boolean"},vn={kind:"color"},da={kind:"object"},la={kind:"value"},vo={kind:"error"},As={kind:"collator"},ps={kind:"formatted"},co={kind:"resolvedImage"};function mo(g,_){return{kind:"array",itemType:g,N:_}}function No(g){if(g.kind==="array"){var _=No(g.itemType);return typeof g.N=="number"?"array<"+_+", "+g.N+">":g.itemType.kind==="value"?"array":"array<"+_+">"}else return g.kind}var jn=[Qo,Hi,Sa,Qa,vn,ps,da,mo(la),co];function Go(g,_){if(_.kind==="error")return null;if(g.kind==="array"){if(_.kind==="array"&&(_.N===0&&_.itemType.kind==="value"||!Go(g.itemType,_.itemType))&&(typeof g.N!="number"||g.N===_.N))return null}else{if(g.kind===_.kind)return null;if(g.kind==="value")for(var z=0,V=jn;z255?255:It}function $(It){return It<0?0:It>1?1:It}function se(It){return It[It.length-1]==="%"?V(parseFloat(It)/100*255):V(parseInt(It))}function ve(It){return It[It.length-1]==="%"?$(parseFloat(It)/100):$(parseFloat(It))}function Ze(It,Wt,_r){return _r<0?_r+=1:_r>1&&(_r-=1),_r*6<1?It+(Wt-It)*_r*6:_r*2<1?Wt:_r*3<2?It+(Wt-It)*(2/3-_r)*6:It}function At(It){var Wt=It.replace(/ /g,"").toLowerCase();if(Wt in z)return z[Wt].slice();if(Wt[0]==="#"){if(Wt.length===4){var _r=parseInt(Wt.substr(1),16);return _r>=0&&_r<=4095?[(_r&3840)>>4|(_r&3840)>>8,_r&240|(_r&240)>>4,_r&15|(_r&15)<<4,1]:null}else if(Wt.length===7){var _r=parseInt(Wt.substr(1),16);return _r>=0&&_r<=16777215?[(_r&16711680)>>16,(_r&65280)>>8,_r&255,1]:null}return null}var Or=Wt.indexOf("("),Pr=Wt.indexOf(")");if(Or!==-1&&Pr+1===Wt.length){var ai=Wt.substr(0,Or),qi=Wt.substr(Or+1,Pr-(Or+1)).split(","),Wn=1;switch(ai){case"rgba":if(qi.length!==4)return null;Wn=ve(qi.pop());case"rgb":return qi.length!==3?null:[se(qi[0]),se(qi[1]),se(qi[2]),Wn];case"hsla":if(qi.length!==4)return null;Wn=ve(qi.pop());case"hsl":if(qi.length!==3)return null;var bn=(parseFloat(qi[0])%360+360)%360/360,bo=ve(qi[1]),ba=ve(qi[2]),_o=ba<=.5?ba*(bo+1):ba+bo-ba*bo,Uo=ba*2-_o;return[V(Ze(Uo,_o,bn+1/3)*255),V(Ze(Uo,_o,bn)*255),V(Ze(Uo,_o,bn-1/3)*255),Wn];default:return null}}return null}try{_.parseCSSColor=At}catch(It){}}),Ba=Ns.parseCSSColor,ha=function(_,z,V,$){$===void 0&&($=1),this.r=_,this.g=z,this.b=V,this.a=$};ha.parse=function(_){if(_){if(_ instanceof ha)return _;if(typeof _=="string"){var z=Ba(_);if(z)return new ha(z[0]/255*z[3],z[1]/255*z[3],z[2]/255*z[3],z[3])}}},ha.prototype.toString=function(){var _=this.toArray(),z=_[0],V=_[1],$=_[2],se=_[3];return"rgba("+Math.round(z)+","+Math.round(V)+","+Math.round($)+","+se+")"},ha.prototype.toArray=function(){var _=this,z=_.r,V=_.g,$=_.b,se=_.a;return se===0?[0,0,0,0]:[z*255/se,V*255/se,$*255/se,se]},ha.black=new ha(0,0,0,1),ha.white=new ha(1,1,1,1),ha.transparent=new ha(0,0,0,0),ha.red=new ha(1,0,0,1);var Vs=function(_,z,V){_?this.sensitivity=z?"variant":"case":this.sensitivity=z?"accent":"base",this.locale=V,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Vs.prototype.compare=function(_,z){return this.collator.compare(_,z)},Vs.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ya=function(_,z,V,$,se){this.text=_,this.image=z,this.scale=V,this.fontStack=$,this.textColor=se},_n=function(_){this.sections=_};_n.fromString=function(_){return new _n([new Ya(_,null,null,null,null)])},_n.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(_){return _.text.length!==0||_.image&&_.image.name.length!==0})},_n.factory=function(_){return _ instanceof _n?_:_n.fromString(_)},_n.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(_){return _.text}).join("")},_n.prototype.serialize=function(){for(var _=["format"],z=0,V=this.sections;z=0&&g<=255&&typeof _=="number"&&_>=0&&_<=255&&typeof z=="number"&&z>=0&&z<=255)){var $=typeof V=="number"?[g,_,z,V]:[g,_,z];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof V=="undefined"||typeof V=="number"&&V>=0&&V<=1?null:"Invalid rgba value ["+[g,_,z,V].join(", ")+"]: 'a' must be between 0 and 1."}function Da(g){if(g===null)return!0;if(typeof g=="string")return!0;if(typeof g=="boolean")return!0;if(typeof g=="number")return!0;if(g instanceof ha)return!0;if(g instanceof Vs)return!0;if(g instanceof _n)return!0;if(g instanceof Vn)return!0;if(Array.isArray(g)){for(var _=0,z=g;_2){var Ze=_[1];if(typeof Ze!="string"||!(Ze in qn)||Ze==="object")return z.error('The item type argument of "array" must be one of string, number, boolean',1);ve=qn[Ze],V++}else ve=la;var At;if(_.length>3){if(_[2]!==null&&(typeof _[2]!="number"||_[2]<0||_[2]!==Math.floor(_[2])))return z.error('The length argument to "array" must be a positive integer literal',2);At=_[2],V++}$=mo(ve,At)}else $=qn[se];for(var It=[];V<_.length;V++){var Wt=z.parse(_[V],V,la);if(!Wt)return null;It.push(Wt)}return new Eo($,It)},Eo.prototype.evaluate=function(_){for(var z=0;z1)&&z.push($)}}return z.concat(this.args.map(function(se){return se.serialize()}))};var Ja=function(_){this.type=ps,this.sections=_};Ja.parse=function(_,z){if(_.length<2)return z.error("Expected at least one argument.");var V=_[1];if(!Array.isArray(V)&&typeof V=="object")return z.error("First argument must be an image or text section.");for(var $=[],se=!1,ve=1;ve<=_.length-1;++ve){var Ze=_[ve];if(se&&typeof Ze=="object"&&!Array.isArray(Ze)){se=!1;var At=null;if(Ze["font-scale"]&&(At=z.parse(Ze["font-scale"],1,Hi),!At))return null;var It=null;if(Ze["text-font"]&&(It=z.parse(Ze["text-font"],1,mo(Sa)),!It))return null;var Wt=null;if(Ze["text-color"]&&(Wt=z.parse(Ze["text-color"],1,vn),!Wt))return null;var _r=$[$.length-1];_r.scale=At,_r.font=It,_r.textColor=Wt}else{var Or=z.parse(_[ve],1,la);if(!Or)return null;var Pr=Or.type.kind;if(Pr!=="string"&&Pr!=="value"&&Pr!=="null"&&Pr!=="resolvedImage")return z.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");se=!0,$.push({content:Or,scale:null,font:null,textColor:null})}}return new Ja($)},Ja.prototype.evaluate=function(_){var z=function(V){var $=V.content.evaluate(_);return Xn($)===co?new Ya("",$,null,null,null):new Ya(sn($),null,V.scale?V.scale.evaluate(_):null,V.font?V.font.evaluate(_).join(","):null,V.textColor?V.textColor.evaluate(_):null)};return new _n(this.sections.map(z))},Ja.prototype.eachChild=function(_){for(var z=0,V=this.sections;z-1),V},lo.prototype.eachChild=function(_){_(this.input)},lo.prototype.outputDefined=function(){return!1},lo.prototype.serialize=function(){return["image",this.input.serialize()]};var eo={"to-boolean":Qa,"to-color":vn,"to-number":Hi,"to-string":Sa},sa=function(_,z){this.type=_,this.args=z};sa.parse=function(_,z){if(_.length<2)return z.error("Expected at least one argument.");var V=_[0];if((V==="to-boolean"||V==="to-string")&&_.length!==2)return z.error("Expected one argument.");for(var $=eo[V],se=[],ve=1;ve<_.length;ve++){var Ze=z.parse(_[ve],ve,la);if(!Ze)return null;se.push(Ze)}return new sa($,se)},sa.prototype.evaluate=function(_){if(this.type.kind==="boolean")return!!this.args[0].evaluate(_);if(this.type.kind==="color"){for(var z,V,$=0,se=this.args;$4?V="Invalid rbga value "+JSON.stringify(z)+": expected an array containing either three or four numeric values.":V=wo(z[0],z[1],z[2],z[3]),!V))return new ha(z[0]/255,z[1]/255,z[2]/255,z[3])}throw new Ka(V||"Could not parse color from value '"+(typeof z=="string"?z:String(JSON.stringify(z)))+"'")}else if(this.type.kind==="number"){for(var At=null,It=0,Wt=this.args;It=_[2]||g[1]<=_[1]||g[3]>=_[3])}function Ws(g,_){var z=Ao(g[0]),V=Rn(g[1]),$=Math.pow(2,_.z);return[Math.round(z*$*yo),Math.round(V*$*yo)]}function Ca(g,_,z){var V=g[0]-_[0],$=g[1]-_[1],se=g[0]-z[0],ve=g[1]-z[1];return V*ve-se*$===0&&V*se<=0&&$*ve<=0}function Es(g,_,z){return _[1]>g[1]!=z[1]>g[1]&&g[0]<(z[0]-_[0])*(g[1]-_[1])/(z[1]-_[1])+_[0]}function Ts(g,_){for(var z=!1,V=0,$=_.length;V<$;V++)for(var se=_[V],ve=0,Ze=se.length;ve0&&_r<0||Wt<0&&_r>0}function ts(g,_,z,V){var $=[_[0]-g[0],_[1]-g[1]],se=[V[0]-z[0],V[1]-z[1]];return Wa(se,$)===0?!1:!!(To(g,_,z,V)&&To(z,V,g,_))}function Wo(g,_,z){for(var V=0,$=z;V<$.length;V+=1)for(var se=$[V],ve=0;vez[2]){var $=V*.5,se=g[0]-z[0]>$?-V:z[0]-g[0]>$?V:0;se===0&&(se=g[0]-z[2]>$?-V:z[2]-g[0]>$?V:0),g[0]+=se}Jo(_,g)}function za(g){g[0]=g[1]=1/0,g[2]=g[3]=-1/0}function ea(g,_,z,V){for(var $=Math.pow(2,V.z)*yo,se=[V.x*yo,V.y*yo],ve=[],Ze=0,At=g;Ze=0)return!1;var z=!0;return g.eachChild(function(V){z&&!Ma(V,_)&&(z=!1)}),z}var Qs=function(_,z){this.type=z.type,this.name=_,this.boundExpression=z};Qs.parse=function(_,z){if(_.length!==2||typeof _[1]!="string")return z.error("'var' expression requires exactly one string literal argument.");var V=_[1];return z.scope.has(V)?new Qs(V,z.scope.get(V)):z.error('Unknown variable "'+V+'". Make sure "'+V+'" has been bound in an enclosing "let" expression before using it.',1)},Qs.prototype.evaluate=function(_){return this.boundExpression.evaluate(_)},Qs.prototype.eachChild=function(){},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){return["var",this.name]};var ho=function(_,z,V,$,se){z===void 0&&(z=[]),$===void 0&&($=new Ko),se===void 0&&(se=[]),this.registry=_,this.path=z,this.key=z.map(function(ve){return"["+ve+"]"}).join(""),this.scope=$,this.errors=se,this.expectedType=V};ho.prototype.parse=function(_,z,V,$,se){return se===void 0&&(se={}),z?this.concat(z,V,$)._parse(_,se):this._parse(_,se)},ho.prototype._parse=function(_,z){(_===null||typeof _=="string"||typeof _=="boolean"||typeof _=="number")&&(_=["literal",_]);function V(Wt,_r,Or){return Or==="assert"?new Eo(_r,[Wt]):Or==="coerce"?new sa(_r,[Wt]):Wt}if(Array.isArray(_)){if(_.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=_[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var se=this.registry[$];if(se){var ve=se.parse(_,this);if(!ve)return null;if(this.expectedType){var Ze=this.expectedType,At=ve.type;if((Ze.kind==="string"||Ze.kind==="number"||Ze.kind==="boolean"||Ze.kind==="object"||Ze.kind==="array")&&At.kind==="value")ve=V(ve,Ze,z.typeAnnotation||"assert");else if((Ze.kind==="color"||Ze.kind==="formatted"||Ze.kind==="resolvedImage")&&(At.kind==="value"||At.kind==="string"))ve=V(ve,Ze,z.typeAnnotation||"coerce");else if(this.checkSubtype(Ze,At))return null}if(!(ve instanceof $n)&&ve.type.kind!=="resolvedImage"&&gs(ve)){var It=new Na;try{ve=new $n(ve.type,ve.evaluate(It))}catch(Wt){return this.error(Wt.message),null}}return ve}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof _=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof _=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof _+" instead.")},ho.prototype.concat=function(_,z,V){var $=typeof _=="number"?this.path.concat(_):this.path,se=V?this.scope.concat(V):this.scope;return new ho(this.registry,$,z||null,se,this.errors)},ho.prototype.error=function(_){for(var z=[],V=arguments.length-1;V-- >0;)z[V]=arguments[V+1];var $=""+this.key+z.map(function(se){return"["+se+"]"}).join("");this.errors.push(new Oa($,_))},ho.prototype.checkSubtype=function(_,z){var V=Go(_,z);return V&&this.error(V),V};function gs(g){if(g instanceof Qs)return gs(g.boundExpression);if(g instanceof en&&g.name==="error")return!1;if(g instanceof to)return!1;if(g instanceof Rs)return!1;var _=g instanceof sa||g instanceof Eo,z=!0;return g.eachChild(function(V){_?z=z&&gs(V):z=z&&V instanceof $n}),z?fl(g)&&Ma(g,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Vo(g,_){for(var z=g.length-1,V=0,$=z,se=0,ve,Ze;V<=$;)if(se=Math.floor((V+$)/2),ve=g[se],Ze=g[se+1],ve<=_){if(se===z||__)$=se-1;else throw new Ka("Input is not a number.");return 0}var Ro=function(_,z,V){this.type=_,this.input=z,this.labels=[],this.outputs=[];for(var $=0,se=V;$=Ze)return z.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',It);var _r=z.parse(At,Wt,se);if(!_r)return null;se=se||_r.type,$.push([Ze,_r])}return new Ro(se,V,$)},Ro.prototype.evaluate=function(_){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(_);var $=this.input.evaluate(_);if($<=z[0])return V[0].evaluate(_);var se=z.length;if($>=z[se-1])return V[se-1].evaluate(_);var ve=Vo(z,$);return V[ve].evaluate(_)},Ro.prototype.eachChild=function(_){_(this.input);for(var z=0,V=this.outputs;z0&&_.push(this.labels[z]),_.push(this.outputs[z].serialize());return _};function Lo(g,_,z){return g*(1-z)+_*z}function xs(g,_,z){return new ha(Lo(g.r,_.r,z),Lo(g.g,_.g,z),Lo(g.b,_.b,z),Lo(g.a,_.a,z))}function ks(g,_,z){return g.map(function(V,$){return Lo(V,_[$],z)})}var Ea=Object.freeze({__proto__:null,number:Lo,color:xs,array:ks}),Jn=.95047,Bo=1,rl=1.08883,Gs=4/29,bs=6/29,zs=3*bs*bs,$o=bs*bs*bs,Aa=Math.PI/180,os=180/Math.PI;function _l(g){return g>$o?Math.pow(g,1/3):g/zs+Gs}function Ss(g){return g>bs?g*g*g:zs*(g-Gs)}function po(g){return 255*(g<=.0031308?12.92*g:1.055*Math.pow(g,1/2.4)-.055)}function go(g){return g/=255,g<=.04045?g/12.92:Math.pow((g+.055)/1.055,2.4)}function ss(g){var _=go(g.r),z=go(g.g),V=go(g.b),$=_l((.4124564*_+.3575761*z+.1804375*V)/Jn),se=_l((.2126729*_+.7151522*z+.072175*V)/Bo),ve=_l((.0193339*_+.119192*z+.9503041*V)/rl);return{l:116*se-16,a:500*($-se),b:200*(se-ve),alpha:g.a}}function qo(g){var _=(g.l+16)/116,z=isNaN(g.a)?_:_+g.a/500,V=isNaN(g.b)?_:_-g.b/200;return _=Bo*Ss(_),z=Jn*Ss(z),V=rl*Ss(V),new ha(po(3.2404542*z-1.5371385*_-.4985314*V),po(-.969266*z+1.8760108*_+.041556*V),po(.0556434*z-.2040259*_+1.0572252*V),g.alpha)}function zo(g,_,z){return{l:Lo(g.l,_.l,z),a:Lo(g.a,_.a,z),b:Lo(g.b,_.b,z),alpha:Lo(g.alpha,_.alpha,z)}}function io(g){var _=ss(g),z=_.l,V=_.a,$=_.b,se=Math.atan2($,V)*os;return{h:se<0?se+360:se,c:Math.sqrt(V*V+$*$),l:z,alpha:g.a}}function Io(g){var _=g.h*Aa,z=g.c,V=g.l;return qo({l:V,a:Math.cos(_)*z,b:Math.sin(_)*z,alpha:g.alpha})}function Ra(g,_,z){var V=_-g;return g+z*(V>180||V<-180?V-360*Math.round(V/360):V)}function vs(g,_,z){return{h:Ra(g.h,_.h,z),c:Lo(g.c,_.c,z),l:Lo(g.l,_.l,z),alpha:Lo(g.alpha,_.alpha,z)}}var fs={forward:ss,reverse:qo,interpolate:zo},cl={forward:io,reverse:Io,interpolate:vs},el=Object.freeze({__proto__:null,lab:fs,hcl:cl}),Hs=function(_,z,V,$,se){this.type=_,this.operator=z,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var ve=0,Ze=se;ve1}))return z.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:At}}else return z.error("Unknown interpolation type "+String($[0]),1,0);if(_.length-1<4)return z.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if((_.length-1)%2!==0)return z.error("Expected an even number of arguments.");if(se=z.parse(se,2,Hi),!se)return null;var It=[],Wt=null;V==="interpolate-hcl"||V==="interpolate-lab"?Wt=vn:z.expectedType&&z.expectedType.kind!=="value"&&(Wt=z.expectedType);for(var _r=0;_r=Or)return z.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ai);var Wn=z.parse(Pr,qi,Wt);if(!Wn)return null;Wt=Wt||Wn.type,It.push([Or,Wn])}return Wt.kind!=="number"&&Wt.kind!=="color"&&!(Wt.kind==="array"&&Wt.itemType.kind==="number"&&typeof Wt.N=="number")?z.error("Type "+No(Wt)+" is not interpolatable."):new Hs(Wt,V,$,se,It)},Hs.prototype.evaluate=function(_){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(_);var $=this.input.evaluate(_);if($<=z[0])return V[0].evaluate(_);var se=z.length;if($>=z[se-1])return V[se-1].evaluate(_);var ve=Vo(z,$),Ze=z[ve],At=z[ve+1],It=Hs.interpolationFactor(this.interpolation,$,Ze,At),Wt=V[ve].evaluate(_),_r=V[ve+1].evaluate(_);return this.operator==="interpolate"?Ea[this.type.kind.toLowerCase()](Wt,_r,It):this.operator==="interpolate-hcl"?cl.reverse(cl.interpolate(cl.forward(Wt),cl.forward(_r),It)):fs.reverse(fs.interpolate(fs.forward(Wt),fs.forward(_r),It))},Hs.prototype.eachChild=function(_){_(this.input);for(var z=0,V=this.outputs;z=V.length)throw new Ka("Array index out of bounds: "+z+" > "+(V.length-1)+".");if(z!==Math.floor(z))throw new Ka("Array index must be an integer, but found "+z+" instead.");return V[z]},hl.prototype.eachChild=function(_){_(this.index),_(this.input)},hl.prototype.outputDefined=function(){return!1},hl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Fa=function(_,z){this.type=Qa,this.needle=_,this.haystack=z};Fa.parse=function(_,z){if(_.length!==3)return z.error("Expected 2 arguments, but found "+(_.length-1)+" instead.");var V=z.parse(_[1],1,la),$=z.parse(_[2],2,la);return!V||!$?null:Ys(V.type,[Qa,Sa,Hi,Qo,la])?new Fa(V,$):z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead")},Fa.prototype.evaluate=function(_){var z=this.needle.evaluate(_),V=this.haystack.evaluate(_);if(!V)return!1;if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");return V.indexOf(z)>=0},Fa.prototype.eachChild=function(_){_(this.needle),_(this.haystack)},Fa.prototype.outputDefined=function(){return!0},Fa.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ms=function(_,z,V){this.type=Hi,this.needle=_,this.haystack=z,this.fromIndex=V};Ms.parse=function(_,z){if(_.length<=2||_.length>=5)return z.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var V=z.parse(_[1],1,la),$=z.parse(_[2],2,la);if(!V||!$)return null;if(!Ys(V.type,[Qa,Sa,Hi,Qo,la]))return z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead");if(_.length===4){var se=z.parse(_[3],3,Hi);return se?new Ms(V,$,se):null}else return new Ms(V,$)},Ms.prototype.evaluate=function(_){var z=this.needle.evaluate(_),V=this.haystack.evaluate(_);if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(_);return V.indexOf(z,$)}return V.indexOf(z)},Ms.prototype.eachChild=function(_){_(this.needle),_(this.haystack),this.fromIndex&&_(this.fromIndex)},Ms.prototype.outputDefined=function(){return!1},Ms.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var _=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),_]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var jo=function(_,z,V,$,se,ve){this.inputType=_,this.type=z,this.input=V,this.cases=$,this.outputs=se,this.otherwise=ve};jo.parse=function(_,z){if(_.length<5)return z.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if(_.length%2!==1)return z.error("Expected an even number of arguments.");var V,$;z.expectedType&&z.expectedType.kind!=="value"&&($=z.expectedType);for(var se={},ve=[],Ze=2;Ze<_.length-1;Ze+=2){var At=_[Ze],It=_[Ze+1];Array.isArray(At)||(At=[At]);var Wt=z.concat(Ze);if(At.length===0)return Wt.error("Expected at least one branch label.");for(var _r=0,Or=At;_rNumber.MAX_SAFE_INTEGER)return Wt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return Wt.error("Numeric branch labels must be integer values.");if(!V)V=Xn(Pr);else if(Wt.checkSubtype(V,Xn(Pr)))return null;if(typeof se[String(Pr)]!="undefined")return Wt.error("Branch labels must be unique.");se[String(Pr)]=ve.length}var ai=z.parse(It,Ze,$);if(!ai)return null;$=$||ai.type,ve.push(ai)}var qi=z.parse(_[1],1,la);if(!qi)return null;var Wn=z.parse(_[_.length-1],_.length-1,$);return!Wn||qi.type.kind!=="value"&&z.concat(1).checkSubtype(V,qi.type)?null:new jo(V,$,qi,se,ve,Wn)},jo.prototype.evaluate=function(_){var z=this.input.evaluate(_),V=Xn(z)===this.inputType&&this.outputs[this.cases[z]]||this.otherwise;return V.evaluate(_)},jo.prototype.eachChild=function(_){_(this.input),this.outputs.forEach(_),_(this.otherwise)},jo.prototype.outputDefined=function(){return this.outputs.every(function(_){return _.outputDefined()})&&this.otherwise.outputDefined()},jo.prototype.serialize=function(){for(var _=this,z=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],se={},ve=0,Ze=V;ve=5)return z.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var V=z.parse(_[1],1,la),$=z.parse(_[2],2,Hi);if(!V||!$)return null;if(!Ys(V.type,[mo(la),Sa,la]))return z.error("Expected first argument to be of type array or string, but found "+No(V.type)+" instead");if(_.length===4){var se=z.parse(_[3],3,Hi);return se?new Is(V.type,V,$,se):null}else return new Is(V.type,V,$)},Is.prototype.evaluate=function(_){var z=this.input.evaluate(_),V=this.beginIndex.evaluate(_);if(!qs(z,["string","array"]))throw new Ka("Expected first argument to be of type array or string, but found "+No(Xn(z))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(_);return z.slice(V,$)}return z.slice(V)},Is.prototype.eachChild=function(_){_(this.input),_(this.beginIndex),this.endIndex&&_(this.endIndex)},Is.prototype.outputDefined=function(){return!1},Is.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var _=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),_]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Os(g,_){return g==="=="||g==="!="?_.kind==="boolean"||_.kind==="string"||_.kind==="number"||_.kind==="null"||_.kind==="value":_.kind==="string"||_.kind==="number"||_.kind==="value"}function St(g,_,z){return _===z}function Ut(g,_,z){return _!==z}function xr(g,_,z){return _z}function Rr(g,_,z){return _<=z}function yi(g,_,z){return _>=z}function Ti(g,_,z,V){return V.compare(_,z)===0}function ki(g,_,z,V){return!Ti(g,_,z,V)}function Ki(g,_,z,V){return V.compare(_,z)<0}function Fn(g,_,z,V){return V.compare(_,z)>0}function Li(g,_,z,V){return V.compare(_,z)<=0}function hi(g,_,z,V){return V.compare(_,z)>=0}function Ci(g,_,z){var V=g!=="=="&&g!=="!=";return function(){function $(se,ve,Ze){this.type=Qa,this.lhs=se,this.rhs=ve,this.collator=Ze,this.hasUntypedArgument=se.type.kind==="value"||ve.type.kind==="value"}return $.parse=function(ve,Ze){if(ve.length!==3&&ve.length!==4)return Ze.error("Expected two or three arguments.");var At=ve[0],It=Ze.parse(ve[1],1,la);if(!It)return null;if(!Os(At,It.type))return Ze.concat(1).error('"'+At+`" comparisons are not supported for type '`+No(It.type)+"'.");var Wt=Ze.parse(ve[2],2,la);if(!Wt)return null;if(!Os(At,Wt.type))return Ze.concat(2).error('"'+At+`" comparisons are not supported for type '`+No(Wt.type)+"'.");if(It.type.kind!==Wt.type.kind&&It.type.kind!=="value"&&Wt.type.kind!=="value")return Ze.error("Cannot compare types '"+No(It.type)+"' and '"+No(Wt.type)+"'.");V&&(It.type.kind==="value"&&Wt.type.kind!=="value"?It=new Eo(Wt.type,[It]):It.type.kind!=="value"&&Wt.type.kind==="value"&&(Wt=new Eo(It.type,[Wt])));var _r=null;if(ve.length===4){if(It.type.kind!=="string"&&Wt.type.kind!=="string"&&It.type.kind!=="value"&&Wt.type.kind!=="value")return Ze.error("Cannot use collator to compare non-string types.");if(_r=Ze.parse(ve[3],3,As),!_r)return null}return new $(It,Wt,_r)},$.prototype.evaluate=function(ve){var Ze=this.lhs.evaluate(ve),At=this.rhs.evaluate(ve);if(V&&this.hasUntypedArgument){var It=Xn(Ze),Wt=Xn(At);if(It.kind!==Wt.kind||!(It.kind==="string"||It.kind==="number"))throw new Ka('Expected arguments for "'+g+'" to be (string, string) or (number, number), but found ('+It.kind+", "+Wt.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var _r=Xn(Ze),Or=Xn(At);if(_r.kind!=="string"||Or.kind!=="string")return _(ve,Ze,At)}return this.collator?z(ve,Ze,At,this.collator.evaluate(ve)):_(ve,Ze,At)},$.prototype.eachChild=function(ve){ve(this.lhs),ve(this.rhs),this.collator&&ve(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var ve=[g];return this.eachChild(function(Ze){ve.push(Ze.serialize())}),ve},$}()}var Si=Ci("==",St,Ti),Gn=Ci("!=",Ut,ki),ta=Ci("<",xr,Ki),ya=Ci(">",dr,Fn),ia=Ci("<=",Rr,Li),pa=Ci(">=",yi,hi),va=function(_,z,V,$,se){this.type=Sa,this.number=_,this.locale=z,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=se};va.parse=function(_,z){if(_.length!==3)return z.error("Expected two arguments.");var V=z.parse(_[1],1,Hi);if(!V)return null;var $=_[2];if(typeof $!="object"||Array.isArray($))return z.error("NumberFormat options argument must be an object.");var se=null;if($.locale&&(se=z.parse($.locale,1,Sa),!se))return null;var ve=null;if($.currency&&(ve=z.parse($.currency,1,Sa),!ve))return null;var Ze=null;if($["min-fraction-digits"]&&(Ze=z.parse($["min-fraction-digits"],1,Hi),!Ze))return null;var At=null;return $["max-fraction-digits"]&&(At=z.parse($["max-fraction-digits"],1,Hi),!At)?null:new va(V,se,ve,Ze,At)},va.prototype.evaluate=function(_){return new Intl.NumberFormat(this.locale?this.locale.evaluate(_):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(_):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(_):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(_):void 0}).format(this.number.evaluate(_))},va.prototype.eachChild=function(_){_(this.number),this.locale&&_(this.locale),this.currency&&_(this.currency),this.minFractionDigits&&_(this.minFractionDigits),this.maxFractionDigits&&_(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var _={};return this.locale&&(_.locale=this.locale.serialize()),this.currency&&(_.currency=this.currency.serialize()),this.minFractionDigits&&(_["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(_["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),_]};var zn=function(_){this.type=Hi,this.input=_};zn.parse=function(_,z){if(_.length!==2)return z.error("Expected 1 argument, but found "+(_.length-1)+" instead.");var V=z.parse(_[1],1);return V?V.type.kind!=="array"&&V.type.kind!=="string"&&V.type.kind!=="value"?z.error("Expected argument of type string or array, but found "+No(V.type)+" instead."):new zn(V):null},zn.prototype.evaluate=function(_){var z=this.input.evaluate(_);if(typeof z=="string")return z.length;if(Array.isArray(z))return z.length;throw new Ka("Expected value to be of type string or array, but found "+No(Xn(z))+" instead.")},zn.prototype.eachChild=function(_){_(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var _=["length"];return this.eachChild(function(z){_.push(z.serialize())}),_};var is={"==":Si,"!=":Gn,">":ya,"<":ta,">=":pa,"<=":ia,array:Eo,at:hl,boolean:Eo,case:Ds,coalesce:tl,collator:to,format:Ja,image:lo,in:Fa,"index-of":Ms,interpolate:Hs,"interpolate-hcl":Hs,"interpolate-lab":Hs,length:zn,let:Fs,literal:$n,match:jo,number:Eo,"number-format":va,object:Eo,slice:Is,step:Ro,string:Eo,"to-boolean":sa,"to-color":sa,"to-number":sa,"to-string":sa,var:Qs,within:Rs};function Cs(g,_){var z=_[0],V=_[1],$=_[2],se=_[3];z=z.evaluate(g),V=V.evaluate(g),$=$.evaluate(g);var ve=se?se.evaluate(g):1,Ze=wo(z,V,$,ve);if(Ze)throw new Ka(Ze);return new ha(z/255*ve,V/255*ve,$/255*ve,ve)}function Ks(g,_){return g in _}function dl(g,_){var z=_[g];return typeof z=="undefined"?null:z}function xl(g,_,z,V){for(;z<=V;){var $=z+V>>1;if(_[$]===g)return!0;_[$]>g?V=$-1:z=$+1}return!1}function Bl(g){return{type:g}}en.register(is,{error:[vo,[Sa],function(g,_){var z=_[0];throw new Ka(z.evaluate(g))}],typeof:[Sa,[la],function(g,_){var z=_[0];return No(Xn(z.evaluate(g)))}],"to-rgba":[mo(Hi,4),[vn],function(g,_){var z=_[0];return z.evaluate(g).toArray()}],rgb:[vn,[Hi,Hi,Hi],Cs],rgba:[vn,[Hi,Hi,Hi,Hi],Cs],has:{type:Qa,overloads:[[[Sa],function(g,_){var z=_[0];return Ks(z.evaluate(g),g.properties())}],[[Sa,da],function(g,_){var z=_[0],V=_[1];return Ks(z.evaluate(g),V.evaluate(g))}]]},get:{type:la,overloads:[[[Sa],function(g,_){var z=_[0];return dl(z.evaluate(g),g.properties())}],[[Sa,da],function(g,_){var z=_[0],V=_[1];return dl(z.evaluate(g),V.evaluate(g))}]]},"feature-state":[la,[Sa],function(g,_){var z=_[0];return dl(z.evaluate(g),g.featureState||{})}],properties:[da,[],function(g){return g.properties()}],"geometry-type":[Sa,[],function(g){return g.geometryType()}],id:[la,[],function(g){return g.id()}],zoom:[Hi,[],function(g){return g.globals.zoom}],"heatmap-density":[Hi,[],function(g){return g.globals.heatmapDensity||0}],"line-progress":[Hi,[],function(g){return g.globals.lineProgress||0}],accumulated:[la,[],function(g){return g.globals.accumulated===void 0?null:g.globals.accumulated}],"+":[Hi,Bl(Hi),function(g,_){for(var z=0,V=0,$=_;V<$.length;V+=1){var se=$[V];z+=se.evaluate(g)}return z}],"*":[Hi,Bl(Hi),function(g,_){for(var z=1,V=0,$=_;V<$.length;V+=1){var se=$[V];z*=se.evaluate(g)}return z}],"-":{type:Hi,overloads:[[[Hi,Hi],function(g,_){var z=_[0],V=_[1];return z.evaluate(g)-V.evaluate(g)}],[[Hi],function(g,_){var z=_[0];return-z.evaluate(g)}]]},"/":[Hi,[Hi,Hi],function(g,_){var z=_[0],V=_[1];return z.evaluate(g)/V.evaluate(g)}],"%":[Hi,[Hi,Hi],function(g,_){var z=_[0],V=_[1];return z.evaluate(g)%V.evaluate(g)}],ln2:[Hi,[],function(){return Math.LN2}],pi:[Hi,[],function(){return Math.PI}],e:[Hi,[],function(){return Math.E}],"^":[Hi,[Hi,Hi],function(g,_){var z=_[0],V=_[1];return Math.pow(z.evaluate(g),V.evaluate(g))}],sqrt:[Hi,[Hi],function(g,_){var z=_[0];return Math.sqrt(z.evaluate(g))}],log10:[Hi,[Hi],function(g,_){var z=_[0];return Math.log(z.evaluate(g))/Math.LN10}],ln:[Hi,[Hi],function(g,_){var z=_[0];return Math.log(z.evaluate(g))}],log2:[Hi,[Hi],function(g,_){var z=_[0];return Math.log(z.evaluate(g))/Math.LN2}],sin:[Hi,[Hi],function(g,_){var z=_[0];return Math.sin(z.evaluate(g))}],cos:[Hi,[Hi],function(g,_){var z=_[0];return Math.cos(z.evaluate(g))}],tan:[Hi,[Hi],function(g,_){var z=_[0];return Math.tan(z.evaluate(g))}],asin:[Hi,[Hi],function(g,_){var z=_[0];return Math.asin(z.evaluate(g))}],acos:[Hi,[Hi],function(g,_){var z=_[0];return Math.acos(z.evaluate(g))}],atan:[Hi,[Hi],function(g,_){var z=_[0];return Math.atan(z.evaluate(g))}],min:[Hi,Bl(Hi),function(g,_){return Math.min.apply(Math,_.map(function(z){return z.evaluate(g)}))}],max:[Hi,Bl(Hi),function(g,_){return Math.max.apply(Math,_.map(function(z){return z.evaluate(g)}))}],abs:[Hi,[Hi],function(g,_){var z=_[0];return Math.abs(z.evaluate(g))}],round:[Hi,[Hi],function(g,_){var z=_[0],V=z.evaluate(g);return V<0?-Math.round(-V):Math.round(V)}],floor:[Hi,[Hi],function(g,_){var z=_[0];return Math.floor(z.evaluate(g))}],ceil:[Hi,[Hi],function(g,_){var z=_[0];return Math.ceil(z.evaluate(g))}],"filter-==":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1];return g.properties()[z.value]===V.value}],"filter-id-==":[Qa,[la],function(g,_){var z=_[0];return g.id()===z.value}],"filter-type-==":[Qa,[Sa],function(g,_){var z=_[0];return g.geometryType()===z.value}],"filter-<":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1],$=g.properties()[z.value],se=V.value;return typeof $==typeof se&&$":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1],$=g.properties()[z.value],se=V.value;return typeof $==typeof se&&$>se}],"filter-id->":[Qa,[la],function(g,_){var z=_[0],V=g.id(),$=z.value;return typeof V==typeof $&&V>$}],"filter-<=":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1],$=g.properties()[z.value],se=V.value;return typeof $==typeof se&&$<=se}],"filter-id-<=":[Qa,[la],function(g,_){var z=_[0],V=g.id(),$=z.value;return typeof V==typeof $&&V<=$}],"filter->=":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1],$=g.properties()[z.value],se=V.value;return typeof $==typeof se&&$>=se}],"filter-id->=":[Qa,[la],function(g,_){var z=_[0],V=g.id(),$=z.value;return typeof V==typeof $&&V>=$}],"filter-has":[Qa,[la],function(g,_){var z=_[0];return z.value in g.properties()}],"filter-has-id":[Qa,[],function(g){return g.id()!==null&&g.id()!==void 0}],"filter-type-in":[Qa,[mo(Sa)],function(g,_){var z=_[0];return z.value.indexOf(g.geometryType())>=0}],"filter-id-in":[Qa,[mo(la)],function(g,_){var z=_[0];return z.value.indexOf(g.id())>=0}],"filter-in-small":[Qa,[Sa,mo(la)],function(g,_){var z=_[0],V=_[1];return V.value.indexOf(g.properties()[z.value])>=0}],"filter-in-large":[Qa,[Sa,mo(la)],function(g,_){var z=_[0],V=_[1];return xl(g.properties()[z.value],V.value,0,V.value.length-1)}],all:{type:Qa,overloads:[[[Qa,Qa],function(g,_){var z=_[0],V=_[1];return z.evaluate(g)&&V.evaluate(g)}],[Bl(Qa),function(g,_){for(var z=0,V=_;z-1}function ja(g){return!!g.expression&&g.expression.interpolated}function ns(g){return g instanceof Number?"number":g instanceof String?"string":g instanceof Boolean?"boolean":Array.isArray(g)?"array":g===null?"null":typeof g}function Js(g){return typeof g=="object"&&g!==null&&!Array.isArray(g)}function cs(g){return g}function sl(g,_){var z=_.type==="color",V=g.stops&&typeof g.stops[0][0]=="object",$=V||g.property!==void 0,se=V||!$,ve=g.type||(ja(_)?"exponential":"interval");if(z&&(g=Ha({},g),g.stops&&(g.stops=g.stops.map(function(Tl){return[Tl[0],ha.parse(Tl[1])]})),g.default?g.default=ha.parse(g.default):g.default=ha.parse(_.default)),g.colorSpace&&g.colorSpace!=="rgb"&&!el[g.colorSpace])throw new Error("Unknown color space: "+g.colorSpace);var Ze,At,It;if(ve==="exponential")Ze=Ml;else if(ve==="interval")Ze=zl;else if(ve==="categorical"){Ze=nl,At=Object.create(null);for(var Wt=0,_r=g.stops;Wt<_r.length;Wt+=1){var Or=_r[Wt];At[Or[0]]=Or[1]}It=typeof g.stops[0][0]}else if(ve==="identity")Ze=Dl;else throw new Error('Unknown function type "'+ve+'"');if(V){for(var Pr={},ai=[],qi=0;qi=g.stops[V-1][0])return g.stops[V-1][1];var $=Vo(g.stops.map(function(se){return se[0]}),z);return g.stops[$][1]}function Ml(g,_,z){var V=g.base!==void 0?g.base:1;if(ns(z)!=="number")return ll(g.default,_.default);var $=g.stops.length;if($===1||z<=g.stops[0][0])return g.stops[0][1];if(z>=g.stops[$-1][0])return g.stops[$-1][1];var se=Vo(g.stops.map(function(_r){return _r[0]}),z),ve=Al(z,V,g.stops[se][0],g.stops[se+1][0]),Ze=g.stops[se][1],At=g.stops[se+1][1],It=Ea[_.type]||cs;if(g.colorSpace&&g.colorSpace!=="rgb"){var Wt=el[g.colorSpace];It=function(_r,Or){return Wt.reverse(Wt.interpolate(Wt.forward(_r),Wt.forward(Or),ve))}}return typeof Ze.evaluate=="function"?{evaluate:function(){for(var Or=[],Pr=arguments.length;Pr--;)Or[Pr]=arguments[Pr];var ai=Ze.evaluate.apply(void 0,Or),qi=At.evaluate.apply(void 0,Or);if(!(ai===void 0||qi===void 0))return It(ai,qi,ve)}}:It(Ze,At,ve)}function Dl(g,_,z){return _.type==="color"?z=ha.parse(z):_.type==="formatted"?z=_n.fromString(z.toString()):_.type==="resolvedImage"?z=Vn.fromString(z.toString()):ns(z)!==_.type&&(_.type!=="enum"||!_.values[z])&&(z=void 0),ll(z,g.default,_.default)}function Al(g,_,z,V){var $=V-z,se=g-z;return $===0?0:_===1?se/$:(Math.pow(_,se)-1)/(Math.pow(_,$)-1)}var Ll=function(_,z){this.expression=_,this._warningHistory={},this._evaluator=new Na,this._defaultValue=z?ee(z):null,this._enumValues=z&&z.type==="enum"?z.values:null};Ll.prototype.evaluateWithoutErrorHandling=function(_,z,V,$,se,ve){return this._evaluator.globals=_,this._evaluator.feature=z,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=se||null,this._evaluator.formattedSection=ve,this.expression.evaluate(this._evaluator)},Ll.prototype.evaluate=function(_,z,V,$,se,ve){this._evaluator.globals=_,this._evaluator.feature=z||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=se||null,this._evaluator.formattedSection=ve||null;try{var Ze=this.expression.evaluate(this._evaluator);if(Ze==null||typeof Ze=="number"&&Ze!==Ze)return this._defaultValue;if(this._enumValues&&!(Ze in this._enumValues))throw new Ka("Expected value to be one of "+Object.keys(this._enumValues).map(function(At){return JSON.stringify(At)}).join(", ")+", but found "+JSON.stringify(Ze)+" instead.");return Ze}catch(At){return this._warningHistory[At.message]||(this._warningHistory[At.message]=!0,typeof console!="undefined"&&console.warn(At.message)),this._defaultValue}};function ms(g){return Array.isArray(g)&&g.length>0&&typeof g[0]=="string"&&g[0]in is}function Bs(g,_){var z=new ho(is,[],_?Q(_):void 0),V=z.parse(g,void 0,void 0,void 0,_&&_.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?bl(new Ll(V,_)):eu(z.errors)}var Xl=function(_,z){this.kind=_,this._styleExpression=z,this.isStateDependent=_!=="constant"&&!as(z.expression)};Xl.prototype.evaluateWithoutErrorHandling=function(_,z,V,$,se,ve){return this._styleExpression.evaluateWithoutErrorHandling(_,z,V,$,se,ve)},Xl.prototype.evaluate=function(_,z,V,$,se,ve){return this._styleExpression.evaluate(_,z,V,$,se,ve)};var Gl=function(_,z,V,$){this.kind=_,this.zoomStops=V,this._styleExpression=z,this.isStateDependent=_!=="camera"&&!as(z.expression),this.interpolationType=$};Gl.prototype.evaluateWithoutErrorHandling=function(_,z,V,$,se,ve){return this._styleExpression.evaluateWithoutErrorHandling(_,z,V,$,se,ve)},Gl.prototype.evaluate=function(_,z,V,$,se,ve){return this._styleExpression.evaluate(_,z,V,$,se,ve)},Gl.prototype.interpolationFactor=function(_,z,V){return this.interpolationType?Hs.interpolationFactor(this.interpolationType,_,z,V):0};function Nl(g,_){if(g=Bs(g,_),g.result==="error")return g;var z=g.value.expression,V=fl(z);if(!V&&!Zl(_))return eu([new Oa("","data expressions not supported")]);var $=Ma(z,["zoom"]);if(!$&&!Vl(_))return eu([new Oa("","zoom expressions not supported")]);var se=q(z);if(!se&&!$)return eu([new Oa("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(se instanceof Oa)return eu([se]);if(se instanceof Hs&&!ja(_))return eu([new Oa("",'"interpolate" expressions cannot be used with this property')]);if(!se)return bl(V?new Xl("constant",g.value):new Xl("source",g.value));var ve=se instanceof Hs?se.interpolation:void 0;return bl(V?new Gl("camera",g.value,se.labels,ve):new Gl("composite",g.value,se.labels,ve))}var ue=function(_,z){this._parameters=_,this._specification=z,Ha(this,sl(this._parameters,this._specification))};ue.deserialize=function(_){return new ue(_._parameters,_._specification)},ue.serialize=function(_){return{_parameters:_._parameters,_specification:_._specification}};function w(g,_){if(Js(g))return new ue(g,_);if(ms(g)){var z=Nl(g,_);if(z.result==="error")throw new Error(z.value.map(function($){return $.key+": "+$.message}).join(", "));return z.value}else{var V=g;return typeof g=="string"&&_.type==="color"&&(V=ha.parse(g)),{kind:"constant",evaluate:function(){return V}}}}function q(g){var _=null;if(g instanceof Fs)_=q(g.result);else if(g instanceof tl)for(var z=0,V=g.args;zV.maximum?[new gn(_,z,z+" is greater than the maximum value "+V.maximum)]:[]}function yt(g){var _=g.valueSpec,z=Sn(g.value.type),V,$={},se,ve,Ze=z!=="categorical"&&g.value.property===void 0,At=!Ze,It=ns(g.value.stops)==="array"&&ns(g.value.stops[0])==="array"&&ns(g.value.stops[0][0])==="object",Wt=fe({key:g.key,value:g.value,valueSpec:g.styleSpec.function,style:g.style,styleSpec:g.styleSpec,objectElementValidators:{stops:_r,default:ai}});return z==="identity"&&Ze&&Wt.push(new gn(g.key,g.value,'missing required property "property"')),z!=="identity"&&!g.value.stops&&Wt.push(new gn(g.key,g.value,'missing required property "stops"')),z==="exponential"&&g.valueSpec.expression&&!ja(g.valueSpec)&&Wt.push(new gn(g.key,g.value,"exponential functions not supported")),g.styleSpec.$version>=8&&(At&&!Zl(g.valueSpec)?Wt.push(new gn(g.key,g.value,"property functions not supported")):Ze&&!Vl(g.valueSpec)&&Wt.push(new gn(g.key,g.value,"zoom functions not supported"))),(z==="categorical"||It)&&g.value.property===void 0&&Wt.push(new gn(g.key,g.value,'"property" property is required')),Wt;function _r(qi){if(z==="identity")return[new gn(qi.key,qi.value,'identity function may not have a "stops" property')];var Wn=[],bn=qi.value;return Wn=Wn.concat(Ue({key:qi.key,value:bn,valueSpec:qi.valueSpec,style:qi.style,styleSpec:qi.styleSpec,arrayElementValidator:Or})),ns(bn)==="array"&&bn.length===0&&Wn.push(new gn(qi.key,bn,"array must have at least one stop")),Wn}function Or(qi){var Wn=[],bn=qi.value,bo=qi.key;if(ns(bn)!=="array")return[new gn(bo,bn,"array expected, "+ns(bn)+" found")];if(bn.length!==2)return[new gn(bo,bn,"array length 2 expected, length "+bn.length+" found")];if(It){if(ns(bn[0])!=="object")return[new gn(bo,bn,"object expected, "+ns(bn[0])+" found")];if(bn[0].zoom===void 0)return[new gn(bo,bn,"object stop key must have zoom")];if(bn[0].value===void 0)return[new gn(bo,bn,"object stop key must have value")];if(ve&&ve>Sn(bn[0].zoom))return[new gn(bo,bn[0].zoom,"stop zoom values must appear in ascending order")];Sn(bn[0].zoom)!==ve&&(ve=Sn(bn[0].zoom),se=void 0,$={}),Wn=Wn.concat(fe({key:bo+"[0]",value:bn[0],valueSpec:{zoom:{}},style:qi.style,styleSpec:qi.styleSpec,objectElementValidators:{zoom:at,value:Pr}}))}else Wn=Wn.concat(Pr({key:bo+"[0]",value:bn[0],valueSpec:{},style:qi.style,styleSpec:qi.styleSpec},bn));return ms(ao(bn[1]))?Wn.concat([new gn(bo+"[1]",bn[1],"expressions are not allowed in function stops.")]):Wn.concat(Sl({key:bo+"[1]",value:bn[1],valueSpec:_,style:qi.style,styleSpec:qi.styleSpec}))}function Pr(qi,Wn){var bn=ns(qi.value),bo=Sn(qi.value),ba=qi.value!==null?qi.value:Wn;if(!V)V=bn;else if(bn!==V)return[new gn(qi.key,ba,bn+" stop domain type must match previous stop domain type "+V)];if(bn!=="number"&&bn!=="string"&&bn!=="boolean")return[new gn(qi.key,ba,"stop domain value must be a number, string, or boolean")];if(bn!=="number"&&z!=="categorical"){var _o="number expected, "+bn+" found";return Zl(_)&&z===void 0&&(_o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new gn(qi.key,ba,_o)]}return z==="categorical"&&bn==="number"&&(!isFinite(bo)||Math.floor(bo)!==bo)?[new gn(qi.key,ba,"integer expected, found "+bo)]:z!=="categorical"&&bn==="number"&&se!==void 0&&bo=2&&g[1]!=="$id"&&g[1]!=="$type";case"in":return g.length>=3&&(typeof g[1]!="string"||Array.isArray(g[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return g.length!==3||Array.isArray(g[1])||Array.isArray(g[2]);case"any":case"all":for(var _=0,z=g.slice(1);__?1:0}function Ge(g){if(!Array.isArray(g))return!1;if(g[0]==="within")return!0;for(var _=1;_"||_==="<="||_===">="?ot(g[1],g[2],_):_==="any"?mt(g.slice(1)):_==="all"?["all"].concat(g.slice(1).map(ft)):_==="none"?["all"].concat(g.slice(1).map(ft).map(sr)):_==="in"?Gt(g[1],g.slice(2)):_==="!in"?sr(Gt(g[1],g.slice(2))):_==="has"?er(g[1]):_==="!has"?sr(er(g[1])):_==="within"?g:!0;return z}function ot(g,_,z){switch(g){case"$type":return["filter-type-"+z,_];case"$id":return["filter-id-"+z,_];default:return["filter-"+z,g,_]}}function mt(g){return["any"].concat(g.map(ft))}function Gt(g,_){if(_.length===0)return!1;switch(g){case"$type":return["filter-type-in",["literal",_]];case"$id":return["filter-id-in",["literal",_]];default:return _.length>200&&!_.some(function(z){return typeof z!=typeof _[0]})?["filter-in-large",g,["literal",_.sort(qe)]]:["filter-in-small",g,["literal",_]]}}function er(g){switch(g){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",g]}}function sr(g){return["!",g]}function wr(g){return Ur(ao(g.value))?Dt(Ha({},g,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ir(g)}function Ir(g){var _=g.value,z=g.key;if(ns(_)!=="array")return[new gn(z,_,"array expected, "+ns(_)+" found")];var V=g.styleSpec,$,se=[];if(_.length<1)return[new gn(z,_,"filter array must have at least 1 element")];switch(se=se.concat(Mr({key:z+"[0]",value:_[0],valueSpec:V.filter_operator,style:g.style,styleSpec:g.styleSpec})),Sn(_[0])){case"<":case"<=":case">":case">=":_.length>=2&&Sn(_[1])==="$type"&&se.push(new gn(z,_,'"$type" cannot be use with operator "'+_[0]+'"'));case"==":case"!=":_.length!==3&&se.push(new gn(z,_,'filter array for operator "'+_[0]+'" must have 3 elements'));case"in":case"!in":_.length>=2&&($=ns(_[1]),$!=="string"&&se.push(new gn(z+"[1]",_[1],"string expected, "+$+" found")));for(var ve=2;ve<_.length;ve++)$=ns(_[ve]),Sn(_[1])==="$type"?se=se.concat(Mr({key:z+"["+ve+"]",value:_[ve],valueSpec:V.geometry_type,style:g.style,styleSpec:g.styleSpec})):$!=="string"&&$!=="number"&&$!=="boolean"&&se.push(new gn(z+"["+ve+"]",_[ve],"string, number, or boolean expected, "+$+" found"));break;case"any":case"all":case"none":for(var Ze=1;Ze<_.length;Ze++)se=se.concat(Ir({key:z+"["+Ze+"]",value:_[Ze],style:g.style,styleSpec:g.styleSpec}));break;case"has":case"!has":$=ns(_[1]),_.length!==2?se.push(new gn(z,_,'filter array for "'+_[0]+'" operator must have 2 elements')):$!=="string"&&se.push(new gn(z+"[1]",_[1],"string expected, "+$+" found"));break;case"within":$=ns(_[1]),_.length!==2?se.push(new gn(z,_,'filter array for "'+_[0]+'" operator must have 2 elements')):$!=="object"&&se.push(new gn(z+"[1]",_[1],"object expected, "+$+" found"));break}return se}function ri(g,_){var z=g.key,V=g.style,$=g.styleSpec,se=g.value,ve=g.objectKey,Ze=$[_+"_"+g.layerType];if(!Ze)return[];var At=ve.match(/^(.*)-transition$/);if(_==="paint"&&At&&Ze[At[1]]&&Ze[At[1]].transition)return Sl({key:z,value:se,valueSpec:$.transition,style:V,styleSpec:$});var It=g.valueSpec||Ze[ve];if(!It)return[new gn(z,se,'unknown property "'+ve+'"')];var Wt;if(ns(se)==="string"&&Zl(It)&&!It.tokens&&(Wt=/^{([^}]+)}$/.exec(se)))return[new gn(z,se,'"'+ve+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(Wt[1])+" }`.")];var _r=[];return g.layerType==="symbol"&&(ve==="text-field"&&V&&!V.glyphs&&_r.push(new gn(z,se,'use of "text-field" requires a style "glyphs" property')),ve==="text-font"&&Js(ao(se))&&Sn(se.type)==="identity"&&_r.push(new gn(z,se,'"text-font" does not support identity functions'))),_r.concat(Sl({key:g.key,value:se,valueSpec:It,style:V,styleSpec:$,expressionContext:"property",propertyType:_,propertyKey:ve}))}function si(g){return ri(g,"paint")}function Mi(g){return ri(g,"layout")}function cn(g){var _=[],z=g.value,V=g.key,$=g.style,se=g.styleSpec;!z.type&&!z.ref&&_.push(new gn(V,z,'either "type" or "ref" is required'));var ve=Sn(z.type),Ze=Sn(z.ref);if(z.id)for(var At=Sn(z.id),It=0;It=Wt[Pr+0]&&V>=Wt[Pr+1])?(ve[Or]=!0,se.push(It[Or])):ve[Or]=!1}}},sf.prototype._forEachCell=function(g,_,z,V,$,se,ve,Ze){for(var At=this._convertToCellCoord(g),It=this._convertToCellCoord(_),Wt=this._convertToCellCoord(z),_r=this._convertToCellCoord(V),Or=At;Or<=Wt;Or++)for(var Pr=It;Pr<=_r;Pr++){var ai=this.d*Pr+Or;if(!(Ze&&!Ze(this._convertFromCellCoord(Or),this._convertFromCellCoord(Pr),this._convertFromCellCoord(Or+1),this._convertFromCellCoord(Pr+1)))&&$.call(this,g,_,z,V,ai,se,ve,Ze))return}},sf.prototype._convertFromCellCoord=function(g){return(g-this.padding)/this.scale},sf.prototype._convertToCellCoord=function(g){return Math.max(0,Math.min(this.d-1,Math.floor(g*this.scale)+this.padding))},sf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var g=this.cells,_=ju+this.cells.length+1+1,z=0,V=0;V=0)){var _r=g[Wt];It[Wt]=ef[At].shallow.indexOf(Wt)>=0?_r:nt(_r,_)}g instanceof Error&&(It.message=g.message)}if(It.$name)throw new Error("$name property is reserved for worker serialization logic.");return At!=="Object"&&(It.$name=At),It}throw new Error("can't serialize object of type "+typeof g)}function ut(g){if(g==null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||g instanceof Boolean||g instanceof Number||g instanceof String||g instanceof Date||g instanceof RegExp||ke(g)||Ye(g)||ArrayBuffer.isView(g)||g instanceof _f)return g;if(Array.isArray(g))return g.map(ut);if(typeof g=="object"){var _=g.$name||"Object",z=ef[_],V=z.klass;if(!V)throw new Error("can't deserialize unregistered class "+_);if(V.deserialize)return V.deserialize(g);for(var $=Object.create(V.prototype),se=0,ve=Object.keys(g);se=0?At:ut(At)}}return $}throw new Error("can't deserialize object of type "+typeof g)}var Ht=function(){this.first=!0};Ht.prototype.update=function(_,z){var V=Math.floor(_);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=_,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=z):this.lastFloorZoom=128&&g<=255},Arabic:function(g){return g>=1536&&g<=1791},"Arabic Supplement":function(g){return g>=1872&&g<=1919},"Arabic Extended-A":function(g){return g>=2208&&g<=2303},"Hangul Jamo":function(g){return g>=4352&&g<=4607},"Unified Canadian Aboriginal Syllabics":function(g){return g>=5120&&g<=5759},Khmer:function(g){return g>=6016&&g<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(g){return g>=6320&&g<=6399},"General Punctuation":function(g){return g>=8192&&g<=8303},"Letterlike Symbols":function(g){return g>=8448&&g<=8527},"Number Forms":function(g){return g>=8528&&g<=8591},"Miscellaneous Technical":function(g){return g>=8960&&g<=9215},"Control Pictures":function(g){return g>=9216&&g<=9279},"Optical Character Recognition":function(g){return g>=9280&&g<=9311},"Enclosed Alphanumerics":function(g){return g>=9312&&g<=9471},"Geometric Shapes":function(g){return g>=9632&&g<=9727},"Miscellaneous Symbols":function(g){return g>=9728&&g<=9983},"Miscellaneous Symbols and Arrows":function(g){return g>=11008&&g<=11263},"CJK Radicals Supplement":function(g){return g>=11904&&g<=12031},"Kangxi Radicals":function(g){return g>=12032&&g<=12255},"Ideographic Description Characters":function(g){return g>=12272&&g<=12287},"CJK Symbols and Punctuation":function(g){return g>=12288&&g<=12351},Hiragana:function(g){return g>=12352&&g<=12447},Katakana:function(g){return g>=12448&&g<=12543},Bopomofo:function(g){return g>=12544&&g<=12591},"Hangul Compatibility Jamo":function(g){return g>=12592&&g<=12687},Kanbun:function(g){return g>=12688&&g<=12703},"Bopomofo Extended":function(g){return g>=12704&&g<=12735},"CJK Strokes":function(g){return g>=12736&&g<=12783},"Katakana Phonetic Extensions":function(g){return g>=12784&&g<=12799},"Enclosed CJK Letters and Months":function(g){return g>=12800&&g<=13055},"CJK Compatibility":function(g){return g>=13056&&g<=13311},"CJK Unified Ideographs Extension A":function(g){return g>=13312&&g<=19903},"Yijing Hexagram Symbols":function(g){return g>=19904&&g<=19967},"CJK Unified Ideographs":function(g){return g>=19968&&g<=40959},"Yi Syllables":function(g){return g>=40960&&g<=42127},"Yi Radicals":function(g){return g>=42128&&g<=42191},"Hangul Jamo Extended-A":function(g){return g>=43360&&g<=43391},"Hangul Syllables":function(g){return g>=44032&&g<=55215},"Hangul Jamo Extended-B":function(g){return g>=55216&&g<=55295},"Private Use Area":function(g){return g>=57344&&g<=63743},"CJK Compatibility Ideographs":function(g){return g>=63744&&g<=64255},"Arabic Presentation Forms-A":function(g){return g>=64336&&g<=65023},"Vertical Forms":function(g){return g>=65040&&g<=65055},"CJK Compatibility Forms":function(g){return g>=65072&&g<=65103},"Small Form Variants":function(g){return g>=65104&&g<=65135},"Arabic Presentation Forms-B":function(g){return g>=65136&&g<=65279},"Halfwidth and Fullwidth Forms":function(g){return g>=65280&&g<=65519}};function lr(g){for(var _=0,z=g;_=65097&&g<=65103)||wt["CJK Compatibility Ideographs"](g)||wt["CJK Compatibility"](g)||wt["CJK Radicals Supplement"](g)||wt["CJK Strokes"](g)||wt["CJK Symbols and Punctuation"](g)&&!(g>=12296&&g<=12305)&&!(g>=12308&&g<=12319)&&g!==12336||wt["CJK Unified Ideographs Extension A"](g)||wt["CJK Unified Ideographs"](g)||wt["Enclosed CJK Letters and Months"](g)||wt["Hangul Compatibility Jamo"](g)||wt["Hangul Jamo Extended-A"](g)||wt["Hangul Jamo Extended-B"](g)||wt["Hangul Jamo"](g)||wt["Hangul Syllables"](g)||wt.Hiragana(g)||wt["Ideographic Description Characters"](g)||wt.Kanbun(g)||wt["Kangxi Radicals"](g)||wt["Katakana Phonetic Extensions"](g)||wt.Katakana(g)&&g!==12540||wt["Halfwidth and Fullwidth Forms"](g)&&g!==65288&&g!==65289&&g!==65293&&!(g>=65306&&g<=65310)&&g!==65339&&g!==65341&&g!==65343&&!(g>=65371&&g<=65503)&&g!==65507&&!(g>=65512&&g<=65519)||wt["Small Form Variants"](g)&&!(g>=65112&&g<=65118)&&!(g>=65123&&g<=65126)||wt["Unified Canadian Aboriginal Syllabics"](g)||wt["Unified Canadian Aboriginal Syllabics Extended"](g)||wt["Vertical Forms"](g)||wt["Yijing Hexagram Symbols"](g)||wt["Yi Syllables"](g)||wt["Yi Radicals"](g))}function Oi(g){return!!(wt["Latin-1 Supplement"](g)&&(g===167||g===169||g===174||g===177||g===188||g===189||g===190||g===215||g===247)||wt["General Punctuation"](g)&&(g===8214||g===8224||g===8225||g===8240||g===8241||g===8251||g===8252||g===8258||g===8263||g===8264||g===8265||g===8273)||wt["Letterlike Symbols"](g)||wt["Number Forms"](g)||wt["Miscellaneous Technical"](g)&&(g>=8960&&g<=8967||g>=8972&&g<=8991||g>=8996&&g<=9e3||g===9003||g>=9085&&g<=9114||g>=9150&&g<=9165||g===9167||g>=9169&&g<=9179||g>=9186&&g<=9215)||wt["Control Pictures"](g)&&g!==9251||wt["Optical Character Recognition"](g)||wt["Enclosed Alphanumerics"](g)||wt["Geometric Shapes"](g)||wt["Miscellaneous Symbols"](g)&&!(g>=9754&&g<=9759)||wt["Miscellaneous Symbols and Arrows"](g)&&(g>=11026&&g<=11055||g>=11088&&g<=11097||g>=11192&&g<=11243)||wt["CJK Symbols and Punctuation"](g)||wt.Katakana(g)||wt["Private Use Area"](g)||wt["CJK Compatibility Forms"](g)||wt["Small Form Variants"](g)||wt["Halfwidth and Fullwidth Forms"](g)||g===8734||g===8756||g===8757||g>=9984&&g<=10087||g>=10102&&g<=10131||g===65532||g===65533)}function un(g){return!($r(g)||Oi(g))}function pi(g){return wt.Arabic(g)||wt["Arabic Supplement"](g)||wt["Arabic Extended-A"](g)||wt["Arabic Presentation Forms-A"](g)||wt["Arabic Presentation Forms-B"](g)}function Pi(g){return g>=1424&&g<=2303||wt["Arabic Presentation Forms-A"](g)||wt["Arabic Presentation Forms-B"](g)}function ji(g,_){return!(!_&&Pi(g)||g>=2304&&g<=3583||g>=3840&&g<=4255||wt.Khmer(g))}function pn(g){for(var _=0,z=g;_-1&&(no=bi.error),xo&&xo(g)};function El(){Pl.fire(new tn("pluginStateChange",{pluginStatus:no,pluginURL:Xo}))}var Pl=new Ii,pu=function(){return no},Il=function(g){return g({pluginStatus:no,pluginURL:Xo}),Pl.on("pluginStateChange",g),g},fu=function(g,_,z){if(z===void 0&&(z=!1),no===bi.deferred||no===bi.loading||no===bi.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Xo=rt.resolveURL(g),no=bi.deferred,xo=_,El(),z||Xu()},Xu=function(){if(no!==bi.deferred||!Xo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");no=bi.loading,El(),Xo&&Nr({url:Xo},function(g){g?js(g):(no=bi.loaded,El())})},Vu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return no===bi.loaded||Vu.applyArabicShaping!=null},isLoading:function(){return no===bi.loading},setState:function(_){no=_.pluginStatus,Xo=_.pluginURL},isParsed:function(){return Vu.applyArabicShaping!=null&&Vu.processBidirectionalText!=null&&Vu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xo}},tf=function(){!Vu.isLoading()&&!Vu.isLoaded()&&pu()==="deferred"&&Xu()},ds=function(_,z){this.zoom=_,z?(this.now=z.now,this.fadeDuration=z.fadeDuration,this.zoomHistory=z.zoomHistory,this.transition=z.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Ht,this.transition={})};ds.prototype.isSupportedScript=function(_){return an(_,Vu.isLoaded())},ds.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ds.prototype.getCrossfadeParameters=function(){var _=this.zoom,z=_-Math.floor(_),V=this.crossFadingFactor();return _>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:z+(1-z)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*z}};var Wl=function(_,z){this.property=_,this.value=z,this.expression=w(z===void 0?_.specification.default:z,_.specification)};Wl.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wl.prototype.possiblyEvaluate=function(_,z,V){return this.property.possiblyEvaluate(this,_,z,V)};var Au=function(_){this.property=_,this.value=new Wl(_,void 0)};Au.prototype.transitioned=function(_,z){return new lf(this.property,this.value,z,x({},_.transition,this.transition),_.now)},Au.prototype.untransitioned=function(){return new lf(this.property,this.value,null,{},0)};var Tu=function(_){this._properties=_,this._values=Object.create(_.defaultTransitionablePropertyValues)};Tu.prototype.getValue=function(_){return W(this._values[_].value.value)},Tu.prototype.setValue=function(_,z){this._values.hasOwnProperty(_)||(this._values[_]=new Au(this._values[_].property)),this._values[_].value=new Wl(this._values[_].property,z===null?void 0:W(z))},Tu.prototype.getTransition=function(_){return W(this._values[_].transition)},Tu.prototype.setTransition=function(_,z){this._values.hasOwnProperty(_)||(this._values[_]=new Au(this._values[_].property)),this._values[_].transition=W(z)||void 0},Tu.prototype.serialize=function(){for(var _={},z=0,V=Object.keys(this._values);zthis.end)return this.prior=null,se;if(this.value.isDataDriven())return this.prior=null,se;if($ve.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:se,to:$}},_.prototype.interpolate=function(V){return V},_}(Bt),Qr=function(_){this.specification=_};Qr.prototype.possiblyEvaluate=function(_,z,V,$){if(_.value!==void 0)if(_.expression.kind==="constant"){var se=_.expression.evaluate(z,null,{},V,$);return this._calculate(se,se,se,z)}else return this._calculate(_.expression.evaluate(new ds(Math.floor(z.zoom-1),z)),_.expression.evaluate(new ds(Math.floor(z.zoom),z)),_.expression.evaluate(new ds(Math.floor(z.zoom+1),z)),z)},Qr.prototype._calculate=function(_,z,V,$){var se=$.zoom;return se>$.zoomHistory.lastIntegerZoom?{from:_,to:z}:{from:V,to:z}},Qr.prototype.interpolate=function(_){return _};var vi=function(_){this.specification=_};vi.prototype.possiblyEvaluate=function(_,z,V,$){return!!_.expression.evaluate(z,null,{},V,$)},vi.prototype.interpolate=function(){return!1};var fi=function(_){this.properties=_,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var z in _){var V=_[z];V.specification.overridable&&this.overridableProperties.push(z);var $=this.defaultPropertyValues[z]=new Wl(V,void 0),se=this.defaultTransitionablePropertyValues[z]=new Au(V);this.defaultTransitioningPropertyValues[z]=se.untransitioned(),this.defaultPossiblyEvaluatedValues[z]=$.possiblyEvaluate({})}};Z("DataDrivenProperty",Bt),Z("DataConstantProperty",Fe),Z("CrossFadedDataDrivenProperty",tr),Z("CrossFadedProperty",Qr),Z("ColorRampProperty",vi);var di="-transition",nn=function(g){function _(z,V){if(g.call(this),this.id=z.id,this.type=z.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},z.type!=="custom"&&(z=z,this.metadata=z.metadata,this.minzoom=z.minzoom,this.maxzoom=z.maxzoom,z.type!=="background"&&(this.source=z.source,this.sourceLayer=z["source-layer"],this.filter=z.filter),V.layout&&(this._unevaluatedLayout=new Mf(V.layout)),V.paint)){this._transitionablePaint=new Tu(V.paint);for(var $ in z.paint)this.setPaintProperty($,z.paint[$],{validate:!1});for(var se in z.layout)this.setLayoutProperty(se,z.layout[se],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new fc(V.paint)}}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},_.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},_.prototype.setLayoutProperty=function(V,$,se){if(se===void 0&&(se={}),$!=null){var ve="layers."+this.id+".layout."+V;if(this._validate($u,ve,V,$,se))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},_.prototype.getPaintProperty=function(V){return U(V,di)?this._transitionablePaint.getTransition(V.slice(0,-di.length)):this._transitionablePaint.getValue(V)},_.prototype.setPaintProperty=function(V,$,se){if(se===void 0&&(se={}),$!=null){var ve="layers."+this.id+".paint."+V;if(this._validate(Hu,ve,V,$,se))return!1}if(U(V,di))return this._transitionablePaint.setTransition(V.slice(0,-di.length),$||void 0),!1;var Ze=this._transitionablePaint._values[V],At=Ze.property.specification["property-type"]==="cross-faded-data-driven",It=Ze.value.isDataDriven(),Wt=Ze.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var _r=this._transitionablePaint._values[V].value,Or=_r.isDataDriven();return Or||It||At||this._handleOverridablePaintPropertyUpdate(V,Wt,_r)},_.prototype._handleSpecialPaintPropertyUpdate=function(V){},_.prototype._handleOverridablePaintPropertyUpdate=function(V,$,se){return!1},_.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},_.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},_.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},_.prototype.recalculate=function(V,$){V.getCrossfadeParameters&&(this._crossfadeParameters=V.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(V,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(V,void 0,$)},_.prototype.serialize=function(){var V={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(V.layout=V.layout||{},V.layout.visibility=this.visibility),j(V,function($,se){return $!==void 0&&!(se==="layout"&&!Object.keys($).length)&&!(se==="paint"&&!Object.keys($).length)})},_.prototype._validate=function(V,$,se,ve,Ze){return Ze===void 0&&(Ze={}),Ze&&Ze.validate===!1?!1:Ku(this,V.call(nu,{key:$,layerType:this.type,objectKey:se,value:ve,styleSpec:Wi,style:{glyphs:!0,sprite:!0}}))},_.prototype.is3D=function(){return!1},_.prototype.isTileClipped=function(){return!1},_.prototype.hasOffscreenPass=function(){return!1},_.prototype.resize=function(){},_.prototype.isStateDependent=function(){for(var V in this.paint._values){var $=this.paint.get(V);if(!(!($ instanceof pf)||!Zl($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},_}(Ii),On={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ln=function(_,z){this._structArray=_,this._pos1=z*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wn=128,Ls=5,ua=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};ua.serialize=function(_,z){return _._trim(),z&&(_.isTransferred=!0,z.push(_.arrayBuffer)),{length:_.length,arrayBuffer:_.arrayBuffer}},ua.deserialize=function(_){var z=Object.create(this.prototype);return z.arrayBuffer=_.arrayBuffer,z.length=_.length,z.capacity=_.arrayBuffer.byteLength/z.bytesPerElement,z._refreshViews(),z},ua.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ua.prototype.clear=function(){this.length=0},ua.prototype.resize=function(_){this.reserve(_),this.length=_},ua.prototype.reserve=function(_){if(_>this.capacity){this.capacity=Math.max(_,Math.floor(this.capacity*Ls),wn),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var z=this.uint8;this._refreshViews(),z&&this.uint8.set(z)}},ua.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Hn(g,_){_===void 0&&(_=1);var z=0,V=0,$=g.map(function(ve){var Ze=Ni(ve.type),At=z=Wr(z,Math.max(_,Ze)),It=ve.components||1;return V=Math.max(V,Ze),z+=Ze*It,{name:ve.name,type:ve.type,components:It,offset:At}}),se=Wr(z,Math.max(V,_));return{members:$,size:se,alignment:_}}function Ni(g){return On[g].BYTES_PER_ELEMENT}function Wr(g,_){return Math.ceil(g/_)*_}var gi=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$){var se=this.length;return this.resize(se+1),this.emplace(se,V,$)},_.prototype.emplace=function(V,$,se){var ve=V*2;return this.int16[ve+0]=$,this.int16[ve+1]=se,V},_}(ua);gi.prototype.bytesPerElement=4,Z("StructArrayLayout2i4",gi);var dn=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve){var Ze=this.length;return this.resize(Ze+1),this.emplace(Ze,V,$,se,ve)},_.prototype.emplace=function(V,$,se,ve,Ze){var At=V*4;return this.int16[At+0]=$,this.int16[At+1]=se,this.int16[At+2]=ve,this.int16[At+3]=Ze,V},_}(ua);dn.prototype.bytesPerElement=8,Z("StructArrayLayout4i8",dn);var En=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At){var It=this.length;return this.resize(It+1),this.emplace(It,V,$,se,ve,Ze,At)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It){var Wt=V*6;return this.int16[Wt+0]=$,this.int16[Wt+1]=se,this.int16[Wt+2]=ve,this.int16[Wt+3]=Ze,this.int16[Wt+4]=At,this.int16[Wt+5]=It,V},_}(ua);En.prototype.bytesPerElement=12,Z("StructArrayLayout2i4i12",En);var Zi=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At){var It=this.length;return this.resize(It+1),this.emplace(It,V,$,se,ve,Ze,At)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It){var Wt=V*4,_r=V*8;return this.int16[Wt+0]=$,this.int16[Wt+1]=se,this.uint8[_r+4]=ve,this.uint8[_r+5]=Ze,this.uint8[_r+6]=At,this.uint8[_r+7]=It,V},_}(ua);Zi.prototype.bytesPerElement=8,Z("StructArrayLayout2i4ub8",Zi);var ga=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$){var se=this.length;return this.resize(se+1),this.emplace(se,V,$)},_.prototype.emplace=function(V,$,se){var ve=V*2;return this.float32[ve+0]=$,this.float32[ve+1]=se,V},_}(ua);ga.prototype.bytesPerElement=8,Z("StructArrayLayout2f8",ga);var Kn=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r,Or){var Pr=this.length;return this.resize(Pr+1),this.emplace(Pr,V,$,se,ve,Ze,At,It,Wt,_r,Or)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr){var ai=V*10;return this.uint16[ai+0]=$,this.uint16[ai+1]=se,this.uint16[ai+2]=ve,this.uint16[ai+3]=Ze,this.uint16[ai+4]=At,this.uint16[ai+5]=It,this.uint16[ai+6]=Wt,this.uint16[ai+7]=_r,this.uint16[ai+8]=Or,this.uint16[ai+9]=Pr,V},_}(ua);Kn.prototype.bytesPerElement=20,Z("StructArrayLayout10ui20",Kn);var hs=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai){var qi=this.length;return this.resize(qi+1),this.emplace(qi,V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi){var Wn=V*12;return this.int16[Wn+0]=$,this.int16[Wn+1]=se,this.int16[Wn+2]=ve,this.int16[Wn+3]=Ze,this.uint16[Wn+4]=At,this.uint16[Wn+5]=It,this.uint16[Wn+6]=Wt,this.uint16[Wn+7]=_r,this.int16[Wn+8]=Or,this.int16[Wn+9]=Pr,this.int16[Wn+10]=ai,this.int16[Wn+11]=qi,V},_}(ua);hs.prototype.bytesPerElement=24,Z("StructArrayLayout4i4ui4i24",hs);var Ji=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se){var ve=this.length;return this.resize(ve+1),this.emplace(ve,V,$,se)},_.prototype.emplace=function(V,$,se,ve){var Ze=V*3;return this.float32[Ze+0]=$,this.float32[Ze+1]=se,this.float32[Ze+2]=ve,V},_}(ua);Ji.prototype.bytesPerElement=12,Z("StructArrayLayout3f12",Ji);var Ui=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},_.prototype.emplace=function(V,$){var se=V*1;return this.uint32[se+0]=$,V},_}(ua);Ui.prototype.bytesPerElement=4,Z("StructArrayLayout1ul4",Ui);var ro=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r){var Or=this.length;return this.resize(Or+1),this.emplace(Or,V,$,se,ve,Ze,At,It,Wt,_r)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or){var Pr=V*10,ai=V*5;return this.int16[Pr+0]=$,this.int16[Pr+1]=se,this.int16[Pr+2]=ve,this.int16[Pr+3]=Ze,this.int16[Pr+4]=At,this.int16[Pr+5]=It,this.uint32[ai+3]=Wt,this.uint16[Pr+8]=_r,this.uint16[Pr+9]=Or,V},_}(ua);ro.prototype.bytesPerElement=20,Z("StructArrayLayout6i1ul2ui20",ro);var na=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At){var It=this.length;return this.resize(It+1),this.emplace(It,V,$,se,ve,Ze,At)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It){var Wt=V*6;return this.int16[Wt+0]=$,this.int16[Wt+1]=se,this.int16[Wt+2]=ve,this.int16[Wt+3]=Ze,this.int16[Wt+4]=At,this.int16[Wt+5]=It,V},_}(ua);na.prototype.bytesPerElement=12,Z("StructArrayLayout2i2i2i12",na);var Bn=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze){var At=this.length;return this.resize(At+1),this.emplace(At,V,$,se,ve,Ze)},_.prototype.emplace=function(V,$,se,ve,Ze,At){var It=V*4,Wt=V*8;return this.float32[It+0]=$,this.float32[It+1]=se,this.float32[It+2]=ve,this.int16[Wt+6]=Ze,this.int16[Wt+7]=At,V},_}(ua);Bn.prototype.bytesPerElement=16,Z("StructArrayLayout2f1f2i16",Bn);var In=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve){var Ze=this.length;return this.resize(Ze+1),this.emplace(Ze,V,$,se,ve)},_.prototype.emplace=function(V,$,se,ve,Ze){var At=V*12,It=V*3;return this.uint8[At+0]=$,this.uint8[At+1]=se,this.float32[It+1]=ve,this.float32[It+2]=Ze,V},_}(ua);In.prototype.bytesPerElement=12,Z("StructArrayLayout2ub2f12",In);var Va=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se){var ve=this.length;return this.resize(ve+1),this.emplace(ve,V,$,se)},_.prototype.emplace=function(V,$,se,ve){var Ze=V*3;return this.uint16[Ze+0]=$,this.uint16[Ze+1]=se,this.uint16[Ze+2]=ve,V},_}(ua);Va.prototype.bytesPerElement=6,Z("StructArrayLayout3ui6",Va);var _s=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba){var _o=this.length;return this.resize(_o+1),this.emplace(_o,V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba,_o){var Uo=V*24,Zs=V*12,Cl=V*48;return this.int16[Uo+0]=$,this.int16[Uo+1]=se,this.uint16[Uo+2]=ve,this.uint16[Uo+3]=Ze,this.uint32[Zs+2]=At,this.uint32[Zs+3]=It,this.uint32[Zs+4]=Wt,this.uint16[Uo+10]=_r,this.uint16[Uo+11]=Or,this.uint16[Uo+12]=Pr,this.float32[Zs+7]=ai,this.float32[Zs+8]=qi,this.uint8[Cl+36]=Wn,this.uint8[Cl+37]=bn,this.uint8[Cl+38]=bo,this.uint32[Zs+10]=ba,this.int16[Uo+22]=_o,V},_}(ua);_s.prototype.bytesPerElement=48,Z("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",_s);var ul=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu){var uf=this.length;return this.resize(uf+1),this.emplace(uf,V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu,uf){var Du=V*34,If=V*17;return this.int16[Du+0]=$,this.int16[Du+1]=se,this.int16[Du+2]=ve,this.int16[Du+3]=Ze,this.int16[Du+4]=At,this.int16[Du+5]=It,this.int16[Du+6]=Wt,this.int16[Du+7]=_r,this.uint16[Du+8]=Or,this.uint16[Du+9]=Pr,this.uint16[Du+10]=ai,this.uint16[Du+11]=qi,this.uint16[Du+12]=Wn,this.uint16[Du+13]=bn,this.uint16[Du+14]=bo,this.uint16[Du+15]=ba,this.uint16[Du+16]=_o,this.uint16[Du+17]=Uo,this.uint16[Du+18]=Zs,this.uint16[Du+19]=Cl,this.uint16[Du+20]=Tl,this.uint16[Du+21]=hu,this.uint16[Du+22]=Kl,this.uint32[If+12]=lu,this.float32[If+13]=Bu,this.float32[If+14]=du,this.float32[If+15]=gu,this.float32[If+16]=uf,V},_}(ua);ul.prototype.bytesPerElement=68,Z("StructArrayLayout8i15ui1ul4f68",ul);var Qn=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},_.prototype.emplace=function(V,$){var se=V*1;return this.float32[se+0]=$,V},_}(ua);Qn.prototype.bytesPerElement=4,Z("StructArrayLayout1f4",Qn);var Mo=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se){var ve=this.length;return this.resize(ve+1),this.emplace(ve,V,$,se)},_.prototype.emplace=function(V,$,se,ve){var Ze=V*3;return this.int16[Ze+0]=$,this.int16[Ze+1]=se,this.int16[Ze+2]=ve,V},_}(ua);Mo.prototype.bytesPerElement=6,Z("StructArrayLayout3i6",Mo);var al=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se){var ve=this.length;return this.resize(ve+1),this.emplace(ve,V,$,se)},_.prototype.emplace=function(V,$,se,ve){var Ze=V*2,At=V*4;return this.uint32[Ze+0]=$,this.uint16[At+2]=se,this.uint16[At+3]=ve,V},_}(ua);al.prototype.bytesPerElement=8,Z("StructArrayLayout1ul2ui8",al);var pl=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$){var se=this.length;return this.resize(se+1),this.emplace(se,V,$)},_.prototype.emplace=function(V,$,se){var ve=V*2;return this.uint16[ve+0]=$,this.uint16[ve+1]=se,V},_}(ua);pl.prototype.bytesPerElement=4,Z("StructArrayLayout2ui4",pl);var Rl=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},_.prototype.emplace=function(V,$){var se=V*1;return this.uint16[se+0]=$,V},_}(ua);Rl.prototype.bytesPerElement=2,Z("StructArrayLayout1ui2",Rl);var Ou=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve){var Ze=this.length;return this.resize(Ze+1),this.emplace(Ze,V,$,se,ve)},_.prototype.emplace=function(V,$,se,ve,Ze){var At=V*4;return this.float32[At+0]=$,this.float32[At+1]=se,this.float32[At+2]=ve,this.float32[At+3]=Ze,V},_}(ua);Ou.prototype.bytesPerElement=16,Z("StructArrayLayout4f16",Ou);var vf=function(g){function _(){g.apply(this,arguments)}g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_;var z={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return z.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},z.x1.get=function(){return this._structArray.int16[this._pos2+2]},z.y1.get=function(){return this._structArray.int16[this._pos2+3]},z.x2.get=function(){return this._structArray.int16[this._pos2+4]},z.y2.get=function(){return this._structArray.int16[this._pos2+5]},z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.anchorPoint.get=function(){return new l(this.anchorPointX,this.anchorPointY)},Object.defineProperties(_.prototype,z),_}(Ln);vf.prototype.size=20;var Ql=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.get=function(V){return new vf(this,V)},_}(ro);Z("CollisionBoxArray",Ql);var Ef=function(g){function _(){g.apply(this,arguments)}g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},z.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},z.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},z.segment.get=function(){return this._structArray.uint16[this._pos2+10]},z.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},z.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},z.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},z.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},z.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},z.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},z.placedOrientation.set=function(V){this._structArray.uint8[this._pos1+37]=V},z.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},z.hidden.set=function(V){this._structArray.uint8[this._pos1+38]=V},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+10]=V},z.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(_.prototype,z),_}(Ln);Ef.prototype.size=48;var Cu=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.get=function(V){return new Ef(this,V)},_}(_s);Z("PlacedSymbolArray",Cu);var gf=function(g){function _(){g.apply(this,arguments)}g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},z.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},z.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},z.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},z.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},z.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},z.key.get=function(){return this._structArray.uint16[this._pos2+8]},z.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},z.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},z.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},z.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},z.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},z.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},z.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},z.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},z.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},z.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},z.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},z.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},z.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+12]=V},z.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},z.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},z.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},z.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(_.prototype,z),_}(Ln);gf.prototype.size=68;var xf=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.get=function(V){return new gf(this,V)},_}(ul);Z("SymbolInstanceArray",xf);var Cf=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.getoffsetX=function(V){return this.float32[V*1+0]},_}(Qn);Z("GlyphOffsetArray",Cf);var Gu=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.getx=function(V){return this.int16[V*3+0]},_.prototype.gety=function(V){return this.int16[V*3+1]},_.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},_}(Mo);Z("SymbolLineVertexArray",Gu);var cf=function(g){function _(){g.apply(this,arguments)}g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_;var z={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(_.prototype,z),_}(Ln);cf.prototype.size=8;var mf=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.get=function(V){return new cf(this,V)},_}(al);Z("FeatureIndexArray",mf);var Fl=Hn([{name:"a_pos",components:2,type:"Int16"}],4),bf=Fl.members,cu=function(_){_===void 0&&(_=[]),this.segments=_};cu.prototype.prepareSegment=function(_,z,V,$){var se=this.segments[this.segments.length-1];return _>cu.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+cu.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+_),(!se||se.vertexLength+_>cu.MAX_VERTEX_ARRAY_LENGTH||se.sortKey!==$)&&(se={vertexOffset:z.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(se.sortKey=$),this.segments.push(se)),se},cu.prototype.get=function(){return this.segments},cu.prototype.destroy=function(){for(var _=0,z=this.segments;_>>16)*At&65535)<<16)&4294967295,Wt=Wt<<15|Wt>>>17,Wt=(Wt&65535)*It+(((Wt>>>16)*It&65535)<<16)&4294967295,ve^=Wt,ve=ve<<13|ve>>>19,Ze=(ve&65535)*5+(((ve>>>16)*5&65535)<<16)&4294967295,ve=(Ze&65535)+27492+(((Ze>>>16)+58964&65535)<<16);switch(Wt=0,$){case 3:Wt^=(z.charCodeAt(_r+2)&255)<<16;case 2:Wt^=(z.charCodeAt(_r+1)&255)<<8;case 1:Wt^=z.charCodeAt(_r)&255,Wt=(Wt&65535)*At+(((Wt>>>16)*At&65535)<<16)&4294967295,Wt=Wt<<15|Wt>>>17,Wt=(Wt&65535)*It+(((Wt>>>16)*It&65535)<<16)&4294967295,ve^=Wt}return ve^=z.length,ve^=ve>>>16,ve=(ve&65535)*2246822507+(((ve>>>16)*2246822507&65535)<<16)&4294967295,ve^=ve>>>13,ve=(ve&65535)*3266489909+(((ve>>>16)*3266489909&65535)<<16)&4294967295,ve^=ve>>>16,ve>>>0}g.exports=_}),B=a(function(g){function _(z,V){for(var $=z.length,se=V^$,ve=0,Ze;$>=4;)Ze=z.charCodeAt(ve)&255|(z.charCodeAt(++ve)&255)<<8|(z.charCodeAt(++ve)&255)<<16|(z.charCodeAt(++ve)&255)<<24,Ze=(Ze&65535)*1540483477+(((Ze>>>16)*1540483477&65535)<<16),Ze^=Ze>>>24,Ze=(Ze&65535)*1540483477+(((Ze>>>16)*1540483477&65535)<<16),se=(se&65535)*1540483477+(((se>>>16)*1540483477&65535)<<16)^Ze,$-=4,++ve;switch($){case 3:se^=(z.charCodeAt(ve+2)&255)<<16;case 2:se^=(z.charCodeAt(ve+1)&255)<<8;case 1:se^=z.charCodeAt(ve)&255,se=(se&65535)*1540483477+(((se>>>16)*1540483477&65535)<<16)}return se^=se>>>13,se=(se&65535)*1540483477+(((se>>>16)*1540483477&65535)<<16),se^=se>>>15,se>>>0}g.exports=_}),K=J,ye=J,ne=B;K.murmur3=ye,K.murmur2=ne;var Ee=function(){this.ids=[],this.positions=[],this.indexed=!1};Ee.prototype.add=function(_,z,V,$){this.ids.push(Ct(_)),this.positions.push(z,V,$)},Ee.prototype.getPositions=function(_){for(var z=Ct(_),V=0,$=this.ids.length-1;V<$;){var se=V+$>>1;this.ids[se]>=z?$=se:V=se+1}for(var ve=[];this.ids[V]===z;){var Ze=this.positions[3*V],At=this.positions[3*V+1],It=this.positions[3*V+2];ve.push({index:Ze,start:At,end:It}),V++}return ve},Ee.serialize=function(_,z){var V=new Float64Array(_.ids),$=new Uint32Array(_.positions);return ur(V,$,0,V.length-1),z&&z.push(V.buffer,$.buffer),{ids:V,positions:$}},Ee.deserialize=function(_){var z=new Ee;return z.ids=_.ids,z.positions=_.positions,z.indexed=!0,z};var Je=Math.pow(2,53)-1;function Ct(g){var _=+g;return!isNaN(_)&&_<=Je?_:K(String(g))}function ur(g,_,z,V){for(;z>1],se=z-1,ve=V+1;;){do se++;while(g[se]<$);do ve--;while(g[ve]>$);if(se>=ve)break;Sr(g,se,ve),Sr(_,3*se,3*ve),Sr(_,3*se+1,3*ve+1),Sr(_,3*se+2,3*ve+2)}ve-zve.x+1||Atve.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return z}function iu(g,_){return{type:g.type,id:g.id,properties:g.properties,geometry:_?Zo(g):[]}}function yu(g,_,z,V,$){g.emplaceBack(_*2+(V+1)/2,z*2+($+1)/2)}var Fu=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new gi,this.indexArray=new Va,this.segments=new cu,this.programConfigurations=new Yi(_.layers,_.zoom),this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Fu.prototype.populate=function(_,z,V){var $=this.layers[0],se=[],ve=null;$.type==="circle"&&(ve=$.layout.get("circle-sort-key"));for(var Ze=0,At=_;Ze=Tn||Or<0||Or>=Tn)){var Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,_.sortKey),ai=Pr.vertexLength;yu(this.layoutVertexArray,_r,Or,-1,-1),yu(this.layoutVertexArray,_r,Or,1,-1),yu(this.layoutVertexArray,_r,Or,1,1),yu(this.layoutVertexArray,_r,Or,-1,1),this.indexArray.emplaceBack(ai,ai+1,ai+2),this.indexArray.emplaceBack(ai,ai+3,ai+2),Pr.vertexLength+=4,Pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,_,V,{},$)},Z("CircleBucket",Fu,{omit:["layers"]});function vu(g,_){for(var z=0;z=3){for(var se=0;se<$.length;se++)if(Sd(g,$[se]))return!0}if(wd(g,$,z))return!0}return!1}function wd(g,_,z){if(g.length>1){if(Ad(g,_))return!0;for(var V=0;V<_.length;V++)if(Kp(_[V],g,z))return!0}for(var $=0;$1?g.distSqr(z):g.distSqr(z.sub(_)._mult($)._add(_))}function mv(g,_){for(var z=!1,V,$,se,ve=0;ve_.y!=se.y>_.y&&_.x<(se.x-$.x)*(_.y-$.y)/(se.y-$.y)+$.x&&(z=!z)}return z}function Sd(g,_){for(var z=!1,V=0,$=g.length-1;V_.y!=ve.y>_.y&&_.x<(ve.x-se.x)*(_.y-se.y)/(ve.y-se.y)+se.x&&(z=!z)}return z}function yv(g,_,z,V,$){for(var se=0,ve=g;se=Ze.x&&$>=Ze.y)return!0}var At=[new l(_,z),new l(_,$),new l(V,$),new l(V,z)];if(g.length>2)for(var It=0,Wt=At;It$.x&&_.x>$.x||g.y$.y&&_.y>$.y)return!1;var se=ae(g,_,z[0]);return se!==ae(g,_,z[1])||se!==ae(g,_,z[2])||se!==ae(g,_,z[3])}function Md(g,_,z){var V=_.paint.get(g).value;return V.kind==="constant"?V.value:z.programConfigurations.get(_.id).getMaxValue(g)}function Pp(g){return Math.sqrt(g[0]*g[0]+g[1]*g[1])}function Jp(g,_,z,V,$){if(!_[0]&&!_[1])return g;var se=l.convert(_)._mult($);z==="viewport"&&se._rotate(-V);for(var ve=[],Ze=0;Ze0&&(se=1/Math.sqrt(se)),g[0]=_[0]*se,g[1]=_[1]*se,g[2]=_[2]*se,g}function eB(g,_){return g[0]*_[0]+g[1]*_[1]+g[2]*_[2]}function tB(g,_,z){var V=_[0],$=_[1],se=_[2],ve=z[0],Ze=z[1],At=z[2];return g[0]=$*At-se*Ze,g[1]=se*ve-V*At,g[2]=V*Ze-$*ve,g}function rB(g,_,z){var V=_[0],$=_[1],se=_[2];return g[0]=V*z[0]+$*z[3]+se*z[6],g[1]=V*z[1]+$*z[4]+se*z[7],g[2]=V*z[2]+$*z[5]+se*z[8],g}var iB=uy,KQ=function(){var g=ly();return function(_,z,V,$,se,ve){var Ze,At;for(z||(z=3),V||(V=0),$?At=Math.min($*z+V,_.length):At=_.length,Ze=V;Zeg.width||$.height>g.height||z.x>g.width-$.width||z.y>g.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>_.width||$.height>_.height||V.x>_.width-$.width||V.y>_.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var ve=g.data,Ze=_.data,At=0;At<$.height;At++)for(var It=((z.y+At)*g.width+z.x)*se,Wt=((V.y+At)*_.width+V.x)*se,_r=0;_r<$.width*se;_r++)Ze[Wt+_r]=ve[It+_r];return _}var Dp=function(_,z){kd(this,_,1,z)};Dp.prototype.resize=function(_){Uw(this,_,1)},Dp.prototype.clone=function(){return new Dp({width:this.width,height:this.height},new Uint8Array(this.data))},Dp.copy=function(_,z,V,$,se){Vw(_,z,V,$,se,1)};var Ih=function(_,z){kd(this,_,4,z)};Ih.prototype.resize=function(_){Uw(this,_,4)},Ih.prototype.replace=function(_,z){z?this.data.set(_):_ instanceof Uint8ClampedArray?this.data=new Uint8Array(_.buffer):this.data=_},Ih.prototype.clone=function(){return new Ih({width:this.width,height:this.height},new Uint8Array(this.data))},Ih.copy=function(_,z,V,$,se){Vw(_,z,V,$,se,4)},Z("AlphaImage",Dp),Z("RGBAImage",Ih);var Qx=new fi({"heatmap-radius":new Bt(Wi.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Bt(Wi.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Fe(Wi.paint_heatmap["heatmap-intensity"]),"heatmap-color":new vi(Wi.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Fe(Wi.paint_heatmap["heatmap-opacity"])}),P1={paint:Qx};function eb(g){var _={},z=g.resolution||256,V=g.clips?g.clips.length:1,$=g.image||new Ih({width:z,height:V}),se=function(bo,ba,_o){_[g.evaluationKey]=_o;var Uo=g.expression.evaluate(_);$.data[bo+ba+0]=Math.floor(Uo.r*255/Uo.a),$.data[bo+ba+1]=Math.floor(Uo.g*255/Uo.a),$.data[bo+ba+2]=Math.floor(Uo.b*255/Uo.a),$.data[bo+ba+3]=Math.floor(Uo.a*255)};if(g.clips)for(var It=0,Wt=0;It80*z){Ze=It=g[0],At=Wt=g[1];for(var ai=z;ai<$;ai+=z)_r=g[ai],Or=g[ai+1],_rIt&&(It=_r),Or>Wt&&(Wt=Or);Pr=Math.max(It-Ze,Wt-At),Pr=Pr!==0?1/Pr:0}return tb(se,ve,z,Ze,At,Pr),ve}function Ww(g,_,z,V,$){var se,ve;if($===gM(g,_,z,V)>0)for(se=_;se=_;se-=V)ve=FC(se,g[se],g[se+1],ve);return ve&&ib(ve,ve.next)&&(ob(ve),ve=ve.next),ve}function fy(g,_){if(!g)return g;_||(_=g);var z=g,V;do if(V=!1,!z.steiner&&(ib(z,z.next)||Jc(z.prev,z,z.next)===0)){if(ob(z),z=_=z.prev,z===z.next)break;V=!0}else z=z.next;while(V||z!==_);return _}function tb(g,_,z,V,$,se,ve){if(g){!ve&&se&&jw(g,V,$,se);for(var Ze=g,At,It;g.prev!==g.next;){if(At=g.prev,It=g.next,se?IC(g,V,$,se):zC(g)){_.push(At.i/z),_.push(g.i/z),_.push(It.i/z),ob(g),g=It.next,Ze=It.next;continue}if(g=It,g===Ze){ve?ve===1?(g=rb(fy(g),_,z),tb(g,_,z,V,$,se,2)):ve===2&&p0(g,_,z,V,$,se):tb(fy(g),_,z,V,$,se,1);break}}}}function zC(g){var _=g.prev,z=g,V=g.next;if(Jc(_,z,V)>=0)return!1;for(var $=g.next.next;$!==g.prev;){if(hy(_.x,_.y,z.x,z.y,V.x,V.y,$.x,$.y)&&Jc($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function IC(g,_,z,V){var $=g.prev,se=g,ve=g.next;if(Jc($,se,ve)>=0)return!1;for(var Ze=$.xse.x?$.x>ve.x?$.x:ve.x:se.x>ve.x?se.x:ve.x,Wt=$.y>se.y?$.y>ve.y?$.y:ve.y:se.y>ve.y?se.y:ve.y,_r=pM(Ze,At,_,z,V),Or=pM(It,Wt,_,z,V),Pr=g.prevZ,ai=g.nextZ;Pr&&Pr.z>=_r&&ai&&ai.z<=Or;){if(Pr!==g.prev&&Pr!==g.next&&hy($.x,$.y,se.x,se.y,ve.x,ve.y,Pr.x,Pr.y)&&Jc(Pr.prev,Pr,Pr.next)>=0||(Pr=Pr.prevZ,ai!==g.prev&&ai!==g.next&&hy($.x,$.y,se.x,se.y,ve.x,ve.y,ai.x,ai.y)&&Jc(ai.prev,ai,ai.next)>=0))return!1;ai=ai.nextZ}for(;Pr&&Pr.z>=_r;){if(Pr!==g.prev&&Pr!==g.next&&hy($.x,$.y,se.x,se.y,ve.x,ve.y,Pr.x,Pr.y)&&Jc(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.prevZ}for(;ai&&ai.z<=Or;){if(ai!==g.prev&&ai!==g.next&&hy($.x,$.y,se.x,se.y,ve.x,ve.y,ai.x,ai.y)&&Jc(ai.prev,ai,ai.next)>=0)return!1;ai=ai.nextZ}return!0}function rb(g,_,z){var V=g;do{var $=V.prev,se=V.next.next;!ib($,se)&&Xw($,V,V.next,se)&&ab($,se)&&ab(se,$)&&(_.push($.i/z),_.push(V.i/z),_.push(se.i/z),ob(V),ob(V.next),V=g=se),V=V.next}while(V!==g);return fy(V)}function p0(g,_,z,V,$,se){var ve=g;do{for(var Ze=ve.next.next;Ze!==ve.prev;){if(ve.i!==Ze.i&&I1(ve,Ze)){var At=mM(ve,Ze);ve=fy(ve,ve.next),At=fy(At,At.next),tb(ve,_,z,V,$,se),tb(At,_,z,V,$,se);return}Ze=Ze.next}ve=ve.next}while(ve!==g)}function cy(g,_,z,V){var $=[],se,ve,Ze,At,It;for(se=0,ve=_.length;se=z.next.y&&z.next.y!==z.y){var Ze=z.x+($-z.y)*(z.next.x-z.x)/(z.next.y-z.y);if(Ze<=V&&Ze>se){if(se=Ze,Ze===V){if($===z.y)return z;if($===z.next.y)return z.next}ve=z.x=z.x&&z.x>=It&&V!==z.x&&hy($ve.x||z.x===ve.x&&hB(ve,z)))&&(ve=z,_r=Or)),z=z.next;while(z!==At);return ve}function hB(g,_){return Jc(g.prev,g,_.prev)<0&&Jc(_.next,g,g.next)<0}function jw(g,_,z,V){var $=g;do $.z===null&&($.z=pM($.x,$.y,_,z,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==g);$.prevZ.nextZ=null,$.prevZ=null,dM($)}function dM(g){var _,z,V,$,se,ve,Ze,At,It=1;do{for(z=g,g=null,se=null,ve=0;z;){for(ve++,V=z,Ze=0,_=0;_0||At>0&&V;)Ze!==0&&(At===0||!V||z.z<=V.z)?($=z,z=z.nextZ,Ze--):($=V,V=V.nextZ,At--),se?se.nextZ=$:g=$,$.prevZ=se,se=$;z=V}se.nextZ=null,It*=2}while(ve>1);return g}function pM(g,_,z,V,$){return g=32767*(g-z)*$,_=32767*(_-V)*$,g=(g|g<<8)&16711935,g=(g|g<<4)&252645135,g=(g|g<<2)&858993459,g=(g|g<<1)&1431655765,_=(_|_<<8)&16711935,_=(_|_<<4)&252645135,_=(_|_<<2)&858993459,_=(_|_<<1)&1431655765,g|_<<1}function vM(g){var _=g,z=g;do(_.x=0&&(g-ve)*(V-Ze)-(z-ve)*(_-Ze)>=0&&(z-ve)*(se-Ze)-($-ve)*(V-Ze)>=0}function I1(g,_){return g.next.i!==_.i&&g.prev.i!==_.i&&!RC(g,_)&&(ab(g,_)&&ab(_,g)&&dB(g,_)&&(Jc(g.prev,g,_.prev)||Jc(g,_.prev,_))||ib(g,_)&&Jc(g.prev,g,g.next)>0&&Jc(_.prev,_,_.next)>0)}function Jc(g,_,z){return(_.y-g.y)*(z.x-_.x)-(_.x-g.x)*(z.y-_.y)}function ib(g,_){return g.x===_.x&&g.y===_.y}function Xw(g,_,z,V){var $=yg(Jc(g,_,z)),se=yg(Jc(g,_,V)),ve=yg(Jc(z,V,g)),Ze=yg(Jc(z,V,_));return!!($!==se&&ve!==Ze||$===0&&nb(g,z,_)||se===0&&nb(g,V,_)||ve===0&&nb(z,g,V)||Ze===0&&nb(z,_,V))}function nb(g,_,z){return _.x<=Math.max(g.x,z.x)&&_.x>=Math.min(g.x,z.x)&&_.y<=Math.max(g.y,z.y)&&_.y>=Math.min(g.y,z.y)}function yg(g){return g>0?1:g<0?-1:0}function RC(g,_){var z=g;do{if(z.i!==g.i&&z.next.i!==g.i&&z.i!==_.i&&z.next.i!==_.i&&Xw(z,z.next,g,_))return!0;z=z.next}while(z!==g);return!1}function ab(g,_){return Jc(g.prev,g,g.next)<0?Jc(g,_,g.next)>=0&&Jc(g,g.prev,_)>=0:Jc(g,_,g.prev)<0||Jc(g,g.next,_)<0}function dB(g,_){var z=g,V=!1,$=(g.x+_.x)/2,se=(g.y+_.y)/2;do z.y>se!=z.next.y>se&&z.next.y!==z.y&&$<(z.next.x-z.x)*(se-z.y)/(z.next.y-z.y)+z.x&&(V=!V),z=z.next;while(z!==g);return V}function mM(g,_){var z=new yM(g.i,g.x,g.y),V=new yM(_.i,_.x,_.y),$=g.next,se=_.prev;return g.next=_,_.prev=g,z.next=$,$.prev=z,V.next=z,z.prev=V,se.next=V,V.prev=se,V}function FC(g,_,z,V){var $=new yM(g,_,z);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function ob(g){g.next.prev=g.prev,g.prev.next=g.next,g.prevZ&&(g.prevZ.nextZ=g.nextZ),g.nextZ&&(g.nextZ.prevZ=g.prevZ)}function yM(g,_,z){this.i=g,this.x=_,this.y=z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}z1.deviation=function(g,_,z,V){var $=_&&_.length,se=$?_[0]*z:g.length,ve=Math.abs(gM(g,0,se,z));if($)for(var Ze=0,At=_.length;Ze0&&(V+=g[$-1].length,z.holes.push(V))}return z},Hw.default=PC;function _M(g,_,z,V,$){vm(g,_,z||0,V||g.length-1,$||OC)}function vm(g,_,z,V,$){for(;V>z;){if(V-z>600){var se=V-z+1,ve=_-z+1,Ze=Math.log(se),At=.5*Math.exp(2*Ze/3),It=.5*Math.sqrt(Ze*At*(se-At)/se)*(ve-se/2<0?-1:1),Wt=Math.max(z,Math.floor(_-ve*At/se+It)),_r=Math.min(V,Math.floor(_+(se-ve)*At/se+It));vm(g,_,Wt,_r,$)}var Or=g[_],Pr=z,ai=V;for(D1(g,z,_),$(g[V],Or)>0&&D1(g,z,V);Pr0;)ai--}$(g[z],Or)===0?D1(g,z,ai):(ai++,D1(g,ai,V)),ai<=_&&(z=ai+1),_<=ai&&(V=ai-1)}}function D1(g,_,z){var V=g[_];g[_]=g[z],g[z]=V}function OC(g,_){return g<_?-1:g>_?1:0}function Zw(g,_){var z=g.length;if(z<=1)return[g];for(var V=[],$,se,ve=0;ve1)for(var At=0;At>3}if(V--,z===1||z===2)$+=g.readSVarint(),se+=g.readSVarint(),z===1&&(Ze&&ve.push(Ze),Ze=[]),Ze.push(new l($,se));else if(z===7)Ze&&Ze.push(Ze[0].clone());else throw new Error("unknown command "+z)}return Ze&&ve.push(Ze),ve},gg.prototype.bbox=function(){var g=this._pbf;g.pos=this._geometry;for(var _=g.readVarint()+g.pos,z=1,V=0,$=0,se=0,ve=1/0,Ze=-1/0,At=1/0,It=-1/0;g.pos<_;){if(V<=0){var Wt=g.readVarint();z=Wt&7,V=Wt>>3}if(V--,z===1||z===2)$+=g.readSVarint(),se+=g.readSVarint(),$Ze&&(Ze=$),seIt&&(It=se);else if(z!==7)throw new Error("unknown command "+z)}return[ve,At,Ze,It]},gg.prototype.toGeoJSON=function(g,_,z){var V=this.extent*Math.pow(2,z),$=this.extent*g,se=this.extent*_,ve=this.loadGeometry(),Ze=gg.types[this.type],At,It;function Wt(Pr){for(var ai=0;ai>3;_=V===1?g.readString():V===2?g.readFloat():V===3?g.readDouble():V===4?g.readVarint64():V===5?g.readVarint():V===6?g.readSVarint():V===7?g.readBoolean():null}return _}wM.prototype.feature=function(g){if(g<0||g>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[g];var _=this._pbf.readVarint()+this._pbf.pos;return new bM(this._pbf,_,this.extent,this._keys,this._values)};var XC=vB;function vB(g,_){this.layers=g.readFields(mB,{},_)}function mB(g,_,z){if(g===3){var V=new mm(z,z.readVarint()+z.pos);V.length&&(_[V.name]=V)}}var ZC=XC,R1=bM,YC=mm,ym={VectorTile:ZC,VectorTileFeature:R1,VectorTileLayer:YC},KC=ym.VectorTileFeature.types,Kw=500,F1=Math.pow(2,13);function dy(g,_,z,V,$,se,ve,Ze){g.emplaceBack(_,z,Math.floor(V*F1)*2+ve,$*F1*2,se*F1*2,Math.round(Ze))}var Vv=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new En,this.indexArray=new Va,this.programConfigurations=new Yi(_.layers,_.zoom),this.segments=new cu,this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Vv.prototype.populate=function(_,z,V){this.features=[],this.hasPattern=Yw("fill-extrusion",this.layers,z);for(var $=0,se=_;$=1){var _o=Wn[bo-1];if(!yB(ba,_o)){Pr.vertexLength+4>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Uo=ba.sub(_o)._perp()._unit(),Zs=_o.dist(ba);bn+Zs>32768&&(bn=0),dy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,0,bn),dy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,1,bn),bn+=Zs,dy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,0,bn),dy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,1,bn);var Cl=Pr.vertexLength;this.indexArray.emplaceBack(Cl,Cl+2,Cl+1),this.indexArray.emplaceBack(Cl+1,Cl+2,Cl+3),Pr.vertexLength+=4,Pr.primitiveLength+=2}}}}if(Pr.vertexLength+It>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(It,this.layoutVertexArray,this.indexArray)),KC[_.type]==="Polygon"){for(var Tl=[],hu=[],Kl=Pr.vertexLength,lu=0,Bu=At;luTn)||g.y===_.y&&(g.y<0||g.y>Tn)}function gB(g){return g.every(function(_){return _.x<0})||g.every(function(_){return _.x>Tn})||g.every(function(_){return _.y<0})||g.every(function(_){return _.y>Tn})}var O1=new fi({"fill-extrusion-opacity":new Fe(Wi["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Bt(Wi["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Fe(Wi["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Fe(Wi["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new tr(Wi["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Bt(Wi["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Bt(Wi["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Fe(Wi["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ud={paint:O1},py=function(g){function _(z){g.call(this,z,ud)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.createBucket=function(V){return new Vv(V)},_.prototype.queryRadius=function(){return Pp(this.paint.get("fill-extrusion-translate"))},_.prototype.is3D=function(){return!0},_.prototype.queryIntersectsFeature=function(V,$,se,ve,Ze,At,It,Wt){var _r=Jp(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),At.angle,It),Or=this.paint.get("fill-extrusion-height").evaluate($,se),Pr=this.paint.get("fill-extrusion-base").evaluate($,se),ai=_B(_r,Wt,At,0),qi=TM(ve,Pr,Or,Wt),Wn=qi[0],bn=qi[1];return JC(Wn,bn,ai)},_}(nn);function _g(g,_){return g.x*_.x+g.y*_.y}function AM(g,_){if(g.length===1){for(var z=0,V=_[z++],$;!$||V.equals($);)if($=_[z++],!$)return 1/0;for(;z<_.length;z++){var se=_[z],ve=g[0],Ze=$.sub(V),At=se.sub(V),It=ve.sub(V),Wt=_g(Ze,Ze),_r=_g(Ze,At),Or=_g(At,At),Pr=_g(It,Ze),ai=_g(It,At),qi=Wt*Or-_r*_r,Wn=(Or*Pr-_r*ai)/qi,bn=(Wt*ai-_r*Pr)/qi,bo=1-Wn-bn,ba=V.z*bo+$.z*Wn+se.z*bn;if(isFinite(ba))return ba}return 1/0}else{for(var _o=1/0,Uo=0,Zs=_;Uo=2&&_[It-1].equals(_[It-2]);)It--;for(var Wt=0;Wt0;if(Tl&&bo>Wt){var Kl=Pr.dist(ai);if(Kl>2*_r){var lu=Pr.sub(Pr.sub(ai)._mult(_r/Kl)._round());this.updateDistance(ai,lu),this.addCurrentVertex(lu,Wn,0,0,Or),ai=lu}}var Bu=ai&&qi,du=Bu?V:At?"butt":$;if(Bu&&du==="round"&&(Zsse&&(du="bevel"),du==="bevel"&&(Zs>2&&(du="flipbevel"),Zs100)ba=bn.mult(-1);else{var gu=Zs*Wn.add(bn).mag()/Wn.sub(bn).mag();ba._perp()._mult(gu*(hu?-1:1))}this.addCurrentVertex(Pr,ba,0,0,Or),this.addCurrentVertex(Pr,ba.mult(-1),0,0,Or)}else if(du==="bevel"||du==="fakeround"){var uf=-Math.sqrt(Zs*Zs-1),Du=hu?uf:0,If=hu?0:uf;if(ai&&this.addCurrentVertex(Pr,Wn,Du,If,Or),du==="fakeround")for(var sc=Math.round(Cl*180/Math.PI/MM),Df=1;Df2*_r){var _h=Pr.add(qi.sub(Pr)._mult(_r/td)._round());this.updateDistance(Pr,_h),this.addCurrentVertex(_h,bn,0,0,Or),Pr=_h}}}}},mh.prototype.addCurrentVertex=function(_,z,V,$,se,ve){ve===void 0&&(ve=!1);var Ze=z.x+z.y*V,At=z.y-z.x*V,It=-z.x+z.y*$,Wt=-z.y-z.x*$;this.addHalfVertex(_,Ze,At,ve,!1,V,se),this.addHalfVertex(_,It,Wt,ve,!0,-$,se),this.distance>cb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(_,z,V,$,se,ve))},mh.prototype.addHalfVertex=function(_,z,V,$,se,ve,Ze){var At=_.x,It=_.y,Wt=this.lineClips?this.scaledDistance*(cb-1):this.scaledDistance,_r=Wt*$w;if(this.layoutVertexArray.emplaceBack((At<<1)+($?1:0),(It<<1)+(se?1:0),Math.round(Jw*z)+128,Math.round(Jw*V)+128,(ve===0?0:ve<0?-1:1)+1|(_r&63)<<2,_r>>6),this.lineClips){var Or=this.scaledDistance-this.lineClips.start,Pr=this.lineClips.end-this.lineClips.start,ai=Or/Pr;this.layoutVertexArray2.emplaceBack(ai,this.lineClipsArray.length)}var qi=Ze.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qi),Ze.primitiveLength++),se?this.e2=qi:this.e1=qi},mh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},mh.prototype.updateDistance=function(_,z){this.distance+=_.dist(z),this.updateScaledDistance()},Z("LineBucket",mh,{omit:["layers","patternFeatures"]});var EM=new fi({"line-cap":new Fe(Wi.layout_line["line-cap"]),"line-join":new Bt(Wi.layout_line["line-join"]),"line-miter-limit":new Fe(Wi.layout_line["line-miter-limit"]),"line-round-limit":new Fe(Wi.layout_line["line-round-limit"]),"line-sort-key":new Bt(Wi.layout_line["line-sort-key"])}),kM=new fi({"line-opacity":new Bt(Wi.paint_line["line-opacity"]),"line-color":new Bt(Wi.paint_line["line-color"]),"line-translate":new Fe(Wi.paint_line["line-translate"]),"line-translate-anchor":new Fe(Wi.paint_line["line-translate-anchor"]),"line-width":new Bt(Wi.paint_line["line-width"]),"line-gap-width":new Bt(Wi.paint_line["line-gap-width"]),"line-offset":new Bt(Wi.paint_line["line-offset"]),"line-blur":new Bt(Wi.paint_line["line-blur"]),"line-dasharray":new Qr(Wi.paint_line["line-dasharray"]),"line-pattern":new tr(Wi.paint_line["line-pattern"]),"line-gradient":new vi(Wi.paint_line["line-gradient"])}),Qw={paint:kM,layout:EM},bB=function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.possiblyEvaluate=function(V,$){return $=new ds(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),g.prototype.possiblyEvaluate.call(this,V,$)},_.prototype.evaluate=function(V,$,se,ve){return $=x({},$,{zoom:Math.floor($.zoom)}),g.prototype.evaluate.call(this,V,$,se,ve)},_}(Bt),I=new bB(Qw.paint.properties["line-width"].specification);I.useIntegerZoom=!0;var T=function(g){function _(z){g.call(this,z,Qw),this.gradientVersion=0}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._handleSpecialPaintPropertyUpdate=function(V){if(V==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof Ro,this.gradientVersion=(this.gradientVersion+1)%d}},_.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},_.prototype.recalculate=function(V,$){g.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=I.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},_.prototype.createBucket=function(V){return new mh(V)},_.prototype.queryRadius=function(V){var $=V,se=R(Md("line-width",this,$),Md("line-gap-width",this,$)),ve=Md("line-offset",this,$);return se/2+Math.abs(ve)+Pp(this.paint.get("line-translate"))},_.prototype.queryIntersectsFeature=function(V,$,se,ve,Ze,At,It){var Wt=Jp(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),At.angle,It),_r=It/2*R(this.paint.get("line-width").evaluate($,se),this.paint.get("line-gap-width").evaluate($,se)),Or=this.paint.get("line-offset").evaluate($,se);return Or&&(ve=X(ve,Or*It)),Vf(Wt,ve,_r)},_.prototype.isTileClipped=function(){return!0},_}(nn);function R(g,_){return _>0?_+2*g:g}function X(g,_){for(var z=[],V=new l(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function La(g){for(var _="",z=0;z>1,Wt=-7,_r=z?$-1:0,Or=z?-1:1,Pr=g[_+_r];for(_r+=Or,se=Pr&(1<<-Wt)-1,Pr>>=-Wt,Wt+=Ze;Wt>0;se=se*256+g[_+_r],_r+=Or,Wt-=8);for(ve=se&(1<<-Wt)-1,se>>=-Wt,Wt+=V;Wt>0;ve=ve*256+g[_+_r],_r+=Or,Wt-=8);if(se===0)se=1-It;else{if(se===At)return ve?NaN:(Pr?-1:1)*(1/0);ve=ve+Math.pow(2,V),se=se-It}return(Pr?-1:1)*ve*Math.pow(2,se-V)},mu=function(g,_,z,V,$,se){var ve,Ze,At,It=se*8-$-1,Wt=(1<>1,Or=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pr=V?0:se-1,ai=V?1:-1,qi=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(Ze=isNaN(_)?1:0,ve=Wt):(ve=Math.floor(Math.log(_)/Math.LN2),_*(At=Math.pow(2,-ve))<1&&(ve--,At*=2),ve+_r>=1?_+=Or/At:_+=Or*Math.pow(2,1-_r),_*At>=2&&(ve++,At/=2),ve+_r>=Wt?(Ze=0,ve=Wt):ve+_r>=1?(Ze=(_*At-1)*Math.pow(2,$),ve=ve+_r):(Ze=_*Math.pow(2,_r-1)*Math.pow(2,$),ve=0));$>=8;g[z+Pr]=Ze&255,Pr+=ai,Ze/=256,$-=8);for(ve=ve<<$|Ze,It+=$;It>0;g[z+Pr]=ve&255,Pr+=ai,ve/=256,It-=8);g[z+Pr-ai]|=qi*128},Iu={read:kl,write:mu},su=yl;function yl(g){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(g)?g:new Uint8Array(g||0),this.pos=0,this.type=0,this.length=this.buf.length}yl.Varint=0,yl.Fixed64=1,yl.Bytes=2,yl.Fixed32=5;var Eu=65536*65536,bu=1/Eu,_u=12,Xs=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");yl.prototype={destroy:function(){this.buf=null},readFields:function(g,_,z){for(z=z||this.length;this.pos>3,se=this.pos;this.type=V&7,g($,_,this),this.pos===se&&this.skip(V)}return _},readMessage:function(g,_){return this.readFields(g,_,this.readVarint()+this.pos)},readFixed32:function(){var g=$h(this.buf,this.pos);return this.pos+=4,g},readSFixed32:function(){var g=Rp(this.buf,this.pos);return this.pos+=4,g},readFixed64:function(){var g=$h(this.buf,this.pos)+$h(this.buf,this.pos+4)*Eu;return this.pos+=8,g},readSFixed64:function(){var g=$h(this.buf,this.pos)+Rp(this.buf,this.pos+4)*Eu;return this.pos+=8,g},readFloat:function(){var g=Iu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,g},readDouble:function(){var g=Iu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,g},readVarint:function(g){var _=this.buf,z,V;return V=_[this.pos++],z=V&127,V<128||(V=_[this.pos++],z|=(V&127)<<7,V<128)||(V=_[this.pos++],z|=(V&127)<<14,V<128)||(V=_[this.pos++],z|=(V&127)<<21,V<128)?z:(V=_[this.pos],z|=(V&15)<<28,Lu(z,g,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var g=this.readVarint();return g%2===1?(g+1)/-2:g/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var g=this.readVarint()+this.pos,_=this.pos;return this.pos=g,g-_>=_u&&Xs?Xf(this.buf,_,g):cp(this.buf,_,g)},readBytes:function(){var g=this.readVarint()+this.pos,_=this.buf.subarray(this.pos,g);return this.pos=g,_},readPackedVarint:function(g,_){if(this.type!==yl.Bytes)return g.push(this.readVarint(_));var z=xu(this);for(g=g||[];this.pos127;);else if(_===yl.Bytes)this.pos=this.readVarint()+this.pos;else if(_===yl.Fixed32)this.pos+=4;else if(_===yl.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+_)},writeTag:function(g,_){this.writeVarint(g<<3|_)},realloc:function(g){for(var _=this.length||16;_268435455||g<0){vc(g,this);return}this.realloc(4),this.buf[this.pos++]=g&127|(g>127?128:0),!(g<=127)&&(this.buf[this.pos++]=(g>>>=7)&127|(g>127?128:0),!(g<=127)&&(this.buf[this.pos++]=(g>>>=7)&127|(g>127?128:0),!(g<=127)&&(this.buf[this.pos++]=g>>>7&127)))},writeSVarint:function(g){this.writeVarint(g<0?-g*2-1:g*2)},writeBoolean:function(g){this.writeVarint(!!g)},writeString:function(g){g=String(g),this.realloc(g.length*4),this.pos++;var _=this.pos;this.pos=Ac(this.buf,g,this.pos);var z=this.pos-_;z>=128&&Qp(_,z,this),this.pos=_-1,this.writeVarint(z),this.pos+=z},writeFloat:function(g){this.realloc(4),Iu.write(this.buf,g,this.pos,!0,23,4),this.pos+=4},writeDouble:function(g){this.realloc(8),Iu.write(this.buf,g,this.pos,!0,52,8),this.pos+=8},writeBytes:function(g){var _=g.length;this.writeVarint(_),this.realloc(_);for(var z=0;z<_;z++)this.buf[this.pos++]=g[z]},writeRawMessage:function(g,_){this.pos++;var z=this.pos;g(_,this);var V=this.pos-z;V>=128&&Qp(z,V,this),this.pos=z-1,this.writeVarint(V),this.pos+=V},writeMessage:function(g,_,z){this.writeTag(g,yl.Bytes),this.writeRawMessage(_,z)},writePackedVarint:function(g,_){_.length&&this.writeMessage(g,fd,_)},writePackedSVarint:function(g,_){_.length&&this.writeMessage(g,Rh,_)},writePackedBoolean:function(g,_){_.length&&this.writeMessage(g,Xd,_)},writePackedFloat:function(g,_){_.length&&this.writeMessage(g,Wd,_)},writePackedDouble:function(g,_){_.length&&this.writeMessage(g,jd,_)},writePackedFixed32:function(g,_){_.length&&this.writeMessage(g,$c,_)},writePackedSFixed32:function(g,_){_.length&&this.writeMessage(g,Fh,_)},writePackedFixed64:function(g,_){_.length&&this.writeMessage(g,Cd,_)},writePackedSFixed64:function(g,_){_.length&&this.writeMessage(g,cd,_)},writeBytesField:function(g,_){this.writeTag(g,yl.Bytes),this.writeBytes(_)},writeFixed32Field:function(g,_){this.writeTag(g,yl.Fixed32),this.writeFixed32(_)},writeSFixed32Field:function(g,_){this.writeTag(g,yl.Fixed32),this.writeSFixed32(_)},writeFixed64Field:function(g,_){this.writeTag(g,yl.Fixed64),this.writeFixed64(_)},writeSFixed64Field:function(g,_){this.writeTag(g,yl.Fixed64),this.writeSFixed64(_)},writeVarintField:function(g,_){this.writeTag(g,yl.Varint),this.writeVarint(_)},writeSVarintField:function(g,_){this.writeTag(g,yl.Varint),this.writeSVarint(_)},writeStringField:function(g,_){this.writeTag(g,yl.Bytes),this.writeString(_)},writeFloatField:function(g,_){this.writeTag(g,yl.Fixed32),this.writeFloat(_)},writeDoubleField:function(g,_){this.writeTag(g,yl.Fixed64),this.writeDouble(_)},writeBooleanField:function(g,_){this.writeVarintField(g,!!_)}};function Lu(g,_,z){var V=z.buf,$,se;if(se=V[z.pos++],$=(se&112)>>4,se<128||(se=V[z.pos++],$|=(se&127)<<3,se<128)||(se=V[z.pos++],$|=(se&127)<<10,se<128)||(se=V[z.pos++],$|=(se&127)<<17,se<128)||(se=V[z.pos++],$|=(se&127)<<24,se<128)||(se=V[z.pos++],$|=(se&1)<<31,se<128))return qu(g,$,_);throw new Error("Expected varint not more than 10 bytes")}function xu(g){return g.type===yl.Bytes?g.readVarint()+g.pos:g.pos+1}function qu(g,_,z){return z?_*4294967296+(g>>>0):(_>>>0)*4294967296+(g>>>0)}function vc(g,_){var z,V;if(g>=0?(z=g%4294967296|0,V=g/4294967296|0):(z=~(-g%4294967296),V=~(-g/4294967296),z^4294967295?z=z+1|0:(z=0,V=V+1|0)),g>=18446744073709552e3||g<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");_.realloc(10),cc(z,V,_),Dh(V,_)}function cc(g,_,z){z.buf[z.pos++]=g&127|128,g>>>=7,z.buf[z.pos++]=g&127|128,g>>>=7,z.buf[z.pos++]=g&127|128,g>>>=7,z.buf[z.pos++]=g&127|128,g>>>=7,z.buf[z.pos]=g&127}function Dh(g,_){var z=(g&7)<<4;_.buf[_.pos++]|=z|((g>>>=3)?128:0),g&&(_.buf[_.pos++]=g&127|((g>>>=7)?128:0),g&&(_.buf[_.pos++]=g&127|((g>>>=7)?128:0),g&&(_.buf[_.pos++]=g&127|((g>>>=7)?128:0),g&&(_.buf[_.pos++]=g&127|((g>>>=7)?128:0),g&&(_.buf[_.pos++]=g&127)))))}function Qp(g,_,z){var V=_<=16383?1:_<=2097151?2:_<=268435455?3:Math.floor(Math.log(_)/(Math.LN2*7));z.realloc(V);for(var $=z.pos-1;$>=g;$--)z.buf[$+V]=z.buf[$]}function fd(g,_){for(var z=0;z>>8,g[z+2]=_>>>16,g[z+3]=_>>>24}function Rp(g,_){return(g[_]|g[_+1]<<8|g[_+2]<<16)+(g[_+3]<<24)}function cp(g,_,z){for(var V="",$=_;$239?4:se>223?3:se>191?2:1;if($+Ze>z)break;var At,It,Wt;Ze===1?se<128&&(ve=se):Ze===2?(At=g[$+1],(At&192)===128&&(ve=(se&31)<<6|At&63,ve<=127&&(ve=null))):Ze===3?(At=g[$+1],It=g[$+2],(At&192)===128&&(It&192)===128&&(ve=(se&15)<<12|(At&63)<<6|It&63,(ve<=2047||ve>=55296&&ve<=57343)&&(ve=null))):Ze===4&&(At=g[$+1],It=g[$+2],Wt=g[$+3],(At&192)===128&&(It&192)===128&&(Wt&192)===128&&(ve=(se&15)<<18|(At&63)<<12|(It&63)<<6|Wt&63,(ve<=65535||ve>=1114112)&&(ve=null))),ve===null?(ve=65533,Ze=1):ve>65535&&(ve-=65536,V+=String.fromCharCode(ve>>>10&1023|55296),ve=56320|ve&1023),V+=String.fromCharCode(ve),$+=Ze}return V}function Xf(g,_,z){return Xs.decode(g.subarray(_,z))}function Ac(g,_,z){for(var V=0,$,se;V<_.length;V++){if($=_.charCodeAt(V),$>55295&&$<57344)if(se)if($<56320){g[z++]=239,g[z++]=191,g[z++]=189,se=$;continue}else $=se-55296<<10|$-56320|65536,se=null;else{$>56319||V+1===_.length?(g[z++]=239,g[z++]=191,g[z++]=189):se=$;continue}else se&&(g[z++]=239,g[z++]=191,g[z++]=189,se=null);$<128?g[z++]=$:($<2048?g[z++]=$>>6|192:($<65536?g[z++]=$>>12|224:(g[z++]=$>>18|240,g[z++]=$>>12&63|128),g[z++]=$>>6&63|128),g[z++]=$&63|128)}return z}var mc=3;function Fp(g,_,z){g===1&&z.readMessage(Wc,_)}function Wc(g,_,z){if(g===3){var V=z.readMessage(B1,{}),$=V.id,se=V.bitmap,ve=V.width,Ze=V.height,At=V.left,It=V.top,Wt=V.advance;_.push({id:$,bitmap:new Dp({width:ve+2*mc,height:Ze+2*mc},se),metrics:{width:ve,height:Ze,left:At,top:It,advance:Wt}})}}function B1(g,_,z){g===1?_.id=z.readVarint():g===2?_.bitmap=z.readBytes():g===3?_.width=z.readVarint():g===4?_.height=z.readVarint():g===5?_.left=z.readSVarint():g===6?_.top=z.readSVarint():g===7&&(_.advance=z.readVarint())}function v0(g){return new su(g).readFields(Fp,[])}var Gv=mc;function ev(g){for(var _=0,z=0,V=0,$=g;V<$.length;V+=1){var se=$[V];_+=se.w*se.h,z=Math.max(z,se.w)}g.sort(function(Wn,bn){return bn.h-Wn.h});for(var ve=Math.max(Math.ceil(Math.sqrt(_/.95)),z),Ze=[{x:0,y:0,w:ve,h:1/0}],At=0,It=0,Wt=0,_r=g;Wt<_r.length;Wt+=1)for(var Or=_r[Wt],Pr=Ze.length-1;Pr>=0;Pr--){var ai=Ze[Pr];if(!(Or.w>ai.w||Or.h>ai.h)){if(Or.x=ai.x,Or.y=ai.y,It=Math.max(It,Or.y+Or.h),At=Math.max(At,Or.x+Or.w),Or.w===ai.w&&Or.h===ai.h){var qi=Ze.pop();Pr=0&&$>=_&&y0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(_,V),this.sectionIndex=this.sectionIndex.slice(_,V)},Qh.prototype.substring=function(_,z){var V=new Qh;return V.text=this.text.substring(_,z),V.sectionIndex=this.sectionIndex.slice(_,z),V.sections=this.sections,V},Qh.prototype.toString=function(){return this.text},Qh.prototype.getMaxScale=function(){var _=this;return this.sectionIndex.reduce(function(z,V){return Math.max(z,_.sections[V].scale)},0)},Qh.prototype.addTextSection=function(_,z){this.text+=_.text,this.sections.push(xg.forText(_.scale,_.fontStack||z));for(var V=this.sections.length-1,$=0;$<_.text.length;++$)this.sectionIndex.push(V)},Qh.prototype.addImageSection=function(_){var z=_.image?_.image.name:"";if(z.length===0){re("Can't add FormattedSection with an empty image.");return}var V=this.getNextImageSectionCharCode();if(!V){re("Reached maximum number of images "+(m0-e3+2));return}this.text+=String.fromCharCode(V),this.sections.push(xg.forImage(z)),this.sectionIndex.push(this.sections.length-1)},Qh.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=m0?null:++this.imageSectionID:(this.imageSectionID=e3,this.imageSectionID)};function wB(g,_){for(var z=[],V=g.text,$=0,se=0,ve=_;se=0,Wt=0,_r=0;_r0&&_h>hu&&(hu=_h)}else{var Rf=z[lu.fontStack],Pf=Rf&&Rf[du];if(Pf&&Pf.rect)Du=Pf.rect,uf=Pf.metrics;else{var yc=_[lu.fontStack],Tc=yc&&yc[du];if(!Tc)continue;uf=Tc.metrics}gu=(Uo-lu.scale)*So}Df?(g.verticalizable=!0,Tl.push({glyph:du,imageName:If,x:Or,y:Pr+gu,vertical:Df,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:uf,rect:Du}),Or+=sc*lu.scale+It):(Tl.push({glyph:du,imageName:If,x:Or,y:Pr+gu,vertical:Df,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:uf,rect:Du}),Or+=uf.advance*lu.scale+It)}if(Tl.length!==0){var Yd=Or-It;ai=Math.max(Yd,ai),MB(Tl,0,Tl.length-1,Wn,hu)}Or=0;var Kd=se*Uo+hu;Cl.lineOffset=Math.max(hu,Zs),Pr+=Kd,qi=Math.max(Kd,qi),++bn}var rd=Pr-q1,pp=LM(ve),vp=pp.horizontalAlign,Oh=pp.verticalAlign;Ld(g.positionedLines,Wn,vp,Oh,ai,qi,se,rd,$.length),g.top+=-Oh*rd,g.bottom=g.top+rd,g.left+=-vp*ai,g.right=g.left+ai}function MB(g,_,z,V,$){if(!(!V&&!$))for(var se=g[z],ve=se.metrics.advance*se.scale,Ze=(g[z].x+ve)*V,At=_;At<=z;At++)g[At].x-=Ze,g[At].y+=$}function Ld(g,_,z,V,$,se,ve,Ze,At){var It=(_-z)*$,Wt=0;se!==ve?Wt=-Ze*V-q1:Wt=(-V*At+.5)*ve;for(var _r=0,Or=g;_r-z/2;){if(ve--,ve<0)return!1;Ze-=g[ve].dist(se),se=g[ve]}Ze+=g[ve].dist(g[ve+1]),ve++;for(var At=[],It=0;ZeV;)It-=At.shift().angleDelta;if(It>$)return!1;ve++,Ze+=_r.dist(Or)}return!0}function tee(g){for(var _=0,z=0;zIt){var ai=(It-At)/Pr,qi=Lo(_r.x,Or.x,ai),Wn=Lo(_r.y,Or.y,ai),bn=new Zd(qi,Wn,Or.angleTo(_r),Wt);return bn._round(),!ve||eee(g,bn,Ze,ve,_)?bn:void 0}At+=Pr}}function Stt(g,_,z,V,$,se,ve,Ze,At){var It=ree(V,se,ve),Wt=iee(V,$),_r=Wt*ve,Or=g[0].x===0||g[0].x===At||g[0].y===0||g[0].y===At;_-_r<_/4&&(_=_r+_/4);var Pr=se*2,ai=Or?_/2*Ze%_:(Wt/2+Pr)*ve*Ze%_;return nee(g,ai,_,It,z,_r,Or,!1,At)}function nee(g,_,z,V,$,se,ve,Ze,At){for(var It=se/2,Wt=tee(g),_r=0,Or=_-z,Pr=[],ai=0;ai=0&&_o=0&&Uo=0&&Or+It<=Wt){var Zs=new Zd(_o,Uo,bo,ai);Zs._round(),(!V||eee(g,Zs,se,V,$))&&Pr.push(Zs)}}_r+=bn}return!Ze&&!Pr.length&&!ve&&(Pr=nee(g,_r/2,z,V,$,se,ve,!0,At)),Pr}function aee(g,_,z,V,$){for(var se=[],ve=0;ve=V&&_r.x>=V)&&(Wt.x>=V?Wt=new l(V,Wt.y+(_r.y-Wt.y)*((V-Wt.x)/(_r.x-Wt.x)))._round():_r.x>=V&&(_r=new l(V,Wt.y+(_r.y-Wt.y)*((V-Wt.x)/(_r.x-Wt.x)))._round()),!(Wt.y>=$&&_r.y>=$)&&(Wt.y>=$?Wt=new l(Wt.x+(_r.x-Wt.x)*(($-Wt.y)/(_r.y-Wt.y)),$)._round():_r.y>=$&&(_r=new l(Wt.x+(_r.x-Wt.x)*(($-Wt.y)/(_r.y-Wt.y)),$)._round()),(!At||!Wt.equals(At[At.length-1]))&&(At=[Wt],se.push(At)),At.push(_r)))))}return se}var i3=Dc;function oee(g,_,z,V){var $=[],se=g.image,ve=se.pixelRatio,Ze=se.paddedRect.w-2*i3,At=se.paddedRect.h-2*i3,It=g.right-g.left,Wt=g.bottom-g.top,_r=se.stretchX||[[0,Ze]],Or=se.stretchY||[[0,At]],Pr=function(Rf,Pf){return Rf+Pf[1]-Pf[0]},ai=_r.reduce(Pr,0),qi=Or.reduce(Pr,0),Wn=Ze-ai,bn=At-qi,bo=0,ba=ai,_o=0,Uo=qi,Zs=0,Cl=Wn,Tl=0,hu=bn;if(se.content&&V){var Kl=se.content;bo=aL(_r,0,Kl[0]),_o=aL(Or,0,Kl[1]),ba=aL(_r,Kl[0],Kl[2]),Uo=aL(Or,Kl[1],Kl[3]),Zs=Kl[0]-bo,Tl=Kl[1]-_o,Cl=Kl[2]-Kl[0]-ba,hu=Kl[3]-Kl[1]-Uo}var lu=function(Rf,Pf,yc,Tc){var Qc=oL(Rf.stretch-bo,ba,It,g.left),nh=sL(Rf.fixed-Zs,Cl,Rf.stretch,ai),td=oL(Pf.stretch-_o,Uo,Wt,g.top),_h=sL(Pf.fixed-Tl,hu,Pf.stretch,qi),Yd=oL(yc.stretch-bo,ba,It,g.left),Kd=sL(yc.fixed-Zs,Cl,yc.stretch,ai),rd=oL(Tc.stretch-_o,Uo,Wt,g.top),pp=sL(Tc.fixed-Tl,hu,Tc.stretch,qi),vp=new l(Qc,td),Oh=new l(Yd,td),mp=new l(Yd,rd),bv=new l(Qc,rd),Ag=new l(nh/ve,_h/ve),V1=new l(Kd/ve,pp/ve),G1=_*Math.PI/180;if(G1){var H1=Math.sin(G1),c3=Math.cos(G1),g0=[c3,-H1,H1,c3];vp._matMult(g0),Oh._matMult(g0),bv._matMult(g0),mp._matMult(g0)}var dL=Rf.stretch+Rf.fixed,DB=yc.stretch+yc.fixed,pL=Pf.stretch+Pf.fixed,RB=Tc.stretch+Tc.fixed,Hv={x:se.paddedRect.x+i3+dL,y:se.paddedRect.y+i3+pL,w:DB-dL,h:RB-pL},h3=Cl/ve/It,vL=hu/ve/Wt;return{tl:vp,tr:Oh,bl:bv,br:mp,tex:Hv,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Ag,pixelOffsetBR:V1,minFontScaleX:h3,minFontScaleY:vL,isSDF:z}};if(!V||!se.stretchX&&!se.stretchY)$.push(lu({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Ze+1},{fixed:0,stretch:At+1}));else for(var Bu=see(_r,Wn,ai),du=see(Or,bn,qi),gu=0;gu0&&(ai=Math.max(10,ai),this.circleDiameter=ai)}else{var qi=ve.top*Ze-At,Wn=ve.bottom*Ze+At,bn=ve.left*Ze-At,bo=ve.right*Ze+At,ba=ve.collisionPadding;if(ba&&(bn-=ba[0]*Ze,qi-=ba[1]*Ze,bo+=ba[2]*Ze,Wn+=ba[3]*Ze),Wt){var _o=new l(bn,qi),Uo=new l(bo,qi),Zs=new l(bn,Wn),Cl=new l(bo,Wn),Tl=Wt*Math.PI/180;_o._rotate(Tl),Uo._rotate(Tl),Zs._rotate(Tl),Cl._rotate(Tl),bn=Math.min(_o.x,Uo.x,Zs.x,Cl.x),bo=Math.max(_o.x,Uo.x,Zs.x,Cl.x),qi=Math.min(_o.y,Uo.y,Zs.y,Cl.y),Wn=Math.max(_o.y,Uo.y,Zs.y,Cl.y)}_.emplaceBack(z.x,z.y,bn,qi,bo,Wn,V,$,se)}this.boxEndIndex=_.length},n3=function(_,z){if(_===void 0&&(_=[]),z===void 0&&(z=Ett),this.data=_,this.length=this.data.length,this.compare=z,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};n3.prototype.push=function(_){this.data.push(_),this.length++,this._up(this.length-1)},n3.prototype.pop=function(){if(this.length!==0){var _=this.data[0],z=this.data.pop();return this.length--,this.length>0&&(this.data[0]=z,this._down(0)),_}},n3.prototype.peek=function(){return this.data[0]},n3.prototype._up=function(_){for(var z=this,V=z.data,$=z.compare,se=V[_];_>0;){var ve=_-1>>1,Ze=V[ve];if($(se,Ze)>=0)break;V[_]=Ze,_=ve}V[_]=se},n3.prototype._down=function(_){for(var z=this,V=z.data,$=z.compare,se=this.length>>1,ve=V[_];_=0)break;V[_]=At,_=Ze}V[_]=ve};function Ett(g,_){return g<_?-1:g>_?1:0}function ktt(g,_,z){_===void 0&&(_=1),z===void 0&&(z=!1);for(var V=1/0,$=1/0,se=-1/0,ve=-1/0,Ze=g[0],At=0;Atse)&&(se=It.x),(!At||It.y>ve)&&(ve=It.y)}var Wt=se-V,_r=ve-$,Or=Math.min(Wt,_r),Pr=Or/2,ai=new n3([],Ctt);if(Or===0)return new l(V,$);for(var qi=V;qibn.d||!bn.d)&&(bn=ba,z&&console.log("found best %d after %d probes",Math.round(1e4*ba.d)/1e4,bo)),!(ba.max-bn.d<=_)&&(Pr=ba.h/2,ai.push(new a3(ba.p.x-Pr,ba.p.y-Pr,Pr,g)),ai.push(new a3(ba.p.x+Pr,ba.p.y-Pr,Pr,g)),ai.push(new a3(ba.p.x-Pr,ba.p.y+Pr,Pr,g)),ai.push(new a3(ba.p.x+Pr,ba.p.y+Pr,Pr,g)),bo+=4)}return z&&(console.log("num probes: "+bo),console.log("best distance: "+bn.d)),bn.p}function Ctt(g,_){return _.max-g.max}function a3(g,_,z,V){this.p=new l(g,_),this.h=z,this.d=Ltt(this.p,V),this.max=this.d+this.h*Math.SQRT2}function Ltt(g,_){for(var z=!1,V=1/0,$=0;$<_.length;$++)for(var se=_[$],ve=0,Ze=se.length,At=Ze-1;veg.y!=Wt.y>g.y&&g.x<(Wt.x-It.x)*(g.y-It.y)/(Wt.y-It.y)+It.x&&(z=!z),V=Math.min(V,hm(g,It,Wt))}return(z?1:-1)*Math.sqrt(V)}function Ptt(g){for(var _=0,z=0,V=0,$=g[0],se=0,ve=$.length,Ze=ve-1;se=Tn||g0.y<0||g0.y>=Tn||Dtt(g,g0,c3,z,V,$,du,g.layers[0],g.collisionBoxArray,_.index,_.sourceLayerIndex,g.index,bn,Uo,Tl,At,ba,Zs,hu,Pr,_,se,It,Wt,ve)};if(Kl==="line")for(var uf=0,Du=aee(_.geometry,0,0,Tn,Tn);uf1){var td=Ttt(nh,Cl,z.vertical||ai,V,qi,bo);td&&gu(nh,td)}}else if(_.type==="Polygon")for(var _h=0,Yd=Zw(_.geometry,0);_hN1&&re(g.layerIds[0]+': Value for "text-size" is >= '+PM+'. Reduce your "text-size".')):Wn.kind==="composite"&&(bn=[Pd*Pr.compositeTextSizes[0].evaluate(ve,{},ai),Pd*Pr.compositeTextSizes[1].evaluate(ve,{},ai)],(bn[0]>N1||bn[1]>N1)&&re(g.layerIds[0]+': Value for "text-size" is >= '+PM+'. Reduce your "text-size".')),g.addSymbols(g.text,qi,bn,Ze,se,ve,It,_,At.lineStartIndex,At.lineLength,Or,ai);for(var bo=0,ba=Wt;boN1&&re(g.layerIds[0]+': Value for "icon-size" is >= '+PM+'. Reduce your "icon-size".')):vp.kind==="composite"&&(Oh=[Pd*Uo.compositeIconSizes[0].evaluate(_o,{},Cl),Pd*Uo.compositeIconSizes[1].evaluate(_o,{},Cl)],(Oh[0]>N1||Oh[1]>N1)&&re(g.layerIds[0]+': Value for "icon-size" is >= '+PM+'. Reduce your "icon-size".')),g.addSymbols(g.icon,rd,Oh,ba,bo,_o,!1,_,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Df=g.icon.placedSymbolArray.length-1,pp&&(Du=pp.length*4,g.addSymbols(g.icon,pp,Oh,ba,bo,_o,hp.vertical,_,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Rf=g.icon.placedSymbolArray.length-1)}for(var mp in V.horizontal){var bv=V.horizontal[mp];if(!lu){yc=K(bv.text);var Ag=Ze.layout.get("text-rotate").evaluate(_o,{},Cl);lu=new lL(At,_,It,Wt,_r,bv,Or,Pr,ai,Ag)}var V1=bv.positionedLines.length===1;if(If+=uee(g,_,bv,se,Ze,ai,_o,qi,Kl,V.vertical?hp.horizontal:hp.horizontalOnly,V1?Object.keys(V.horizontal):[mp],Pf,Df,Uo,Cl),V1)break}V.vertical&&(sc+=uee(g,_,V.vertical,se,Ze,ai,_o,qi,Kl,hp.vertical,["vertical"],Pf,Rf,Uo,Cl));var G1=lu?lu.boxStartIndex:g.collisionBoxArray.length,H1=lu?lu.boxEndIndex:g.collisionBoxArray.length,c3=du?du.boxStartIndex:g.collisionBoxArray.length,g0=du?du.boxEndIndex:g.collisionBoxArray.length,dL=Bu?Bu.boxStartIndex:g.collisionBoxArray.length,DB=Bu?Bu.boxEndIndex:g.collisionBoxArray.length,pL=gu?gu.boxStartIndex:g.collisionBoxArray.length,RB=gu?gu.boxEndIndex:g.collisionBoxArray.length,Hv=-1,h3=function(DM,Mee){return DM&&DM.circleDiameter?Math.max(DM.circleDiameter,Mee):Mee};Hv=h3(lu,Hv),Hv=h3(du,Hv),Hv=h3(Bu,Hv),Hv=h3(gu,Hv);var vL=Hv>-1?1:0;vL&&(Hv*=Tl/So),g.glyphOffsetArray.length>=oc.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),_o.sortKey!==void 0&&g.addToSortKeyRanges(g.symbolInstances.length,_o.sortKey),g.symbolInstances.emplaceBack(_.x,_.y,Pf.right>=0?Pf.right:-1,Pf.center>=0?Pf.center:-1,Pf.left>=0?Pf.left:-1,Pf.vertical||-1,Df,Rf,yc,G1,H1,c3,g0,dL,DB,pL,RB,It,If,sc,uf,Du,vL,0,Or,Tc,Qc,Hv)}function Rtt(g,_,z,V){var $=g.compareText;if(!(_ in $))$[_]=[];else for(var se=$[_],ve=se.length-1;ve>=0;ve--)if(V.dist(se[ve])0)&&(ve.value.kind!=="constant"||ve.value.value.length>0),Wt=At.value.kind!=="constant"||!!At.value.value||Object.keys(At.parameters).length>0,_r=se.get("symbol-sort-key");if(this.features=[],!(!It&&!Wt)){for(var Or=z.iconDependencies,Pr=z.glyphDependencies,ai=z.availableImages,qi=new ds(this.zoom),Wn=0,bn=_;Wn=0;for(var sc=0,Df=hu.sections;sc=0;At--)ve[At]={x:z[At].x,y:z[At].y,tileUnitDistanceFromAnchor:se},At>0&&(se+=z[At-1].dist(z[At]));for(var It=0;It0},oc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},oc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},oc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},oc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},oc.prototype.addIndicesForPlacedSymbol=function(_,z){for(var V=_.placedSymbolArray.get(z),$=V.vertexStartIndex+V.numGlyphs*4,se=V.vertexStartIndex;se<$;se+=4)_.indexArray.emplaceBack(se,se+1,se+2),_.indexArray.emplaceBack(se+1,se+2,se+3)},oc.prototype.getSortedSymbolIndexes=function(_){if(this.sortedAngle===_&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var z=Math.sin(_),V=Math.cos(_),$=[],se=[],ve=[],Ze=0;Ze1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(_),this.sortedAngle=_,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var se=$[V],ve=this.symbolInstances.get(se);this.featureSortOrder.push(ve.featureIndex),[ve.rightJustifiedTextSymbolIndex,ve.centerJustifiedTextSymbolIndex,ve.leftJustifiedTextSymbolIndex].forEach(function(Ze,At,It){Ze>=0&&It.indexOf(Ze)===At&&z.addIndicesForPlacedSymbol(z.text,Ze)}),ve.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,ve.verticalPlacedTextSymbolIndex),ve.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ve.placedIconSymbolIndex),ve.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ve.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Z("SymbolBucket",oc,{omit:["layers","collisionBoxArray","features","compareText"]}),oc.MAX_GLYPHS=65535,oc.addDynamicAttributes=CB;function qtt(g,_){return _.replace(/{([^{}]+)}/g,function(z,V){return V in g?String(g[V]):""})}var Ntt=new fi({"symbol-placement":new Fe(Wi.layout_symbol["symbol-placement"]),"symbol-spacing":new Fe(Wi.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Fe(Wi.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Bt(Wi.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Fe(Wi.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Fe(Wi.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Fe(Wi.layout_symbol["icon-ignore-placement"]),"icon-optional":new Fe(Wi.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Fe(Wi.layout_symbol["icon-rotation-alignment"]),"icon-size":new Bt(Wi.layout_symbol["icon-size"]),"icon-text-fit":new Fe(Wi.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Fe(Wi.layout_symbol["icon-text-fit-padding"]),"icon-image":new Bt(Wi.layout_symbol["icon-image"]),"icon-rotate":new Bt(Wi.layout_symbol["icon-rotate"]),"icon-padding":new Fe(Wi.layout_symbol["icon-padding"]),"icon-keep-upright":new Fe(Wi.layout_symbol["icon-keep-upright"]),"icon-offset":new Bt(Wi.layout_symbol["icon-offset"]),"icon-anchor":new Bt(Wi.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Fe(Wi.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Fe(Wi.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Fe(Wi.layout_symbol["text-rotation-alignment"]),"text-field":new Bt(Wi.layout_symbol["text-field"]),"text-font":new Bt(Wi.layout_symbol["text-font"]),"text-size":new Bt(Wi.layout_symbol["text-size"]),"text-max-width":new Bt(Wi.layout_symbol["text-max-width"]),"text-line-height":new Fe(Wi.layout_symbol["text-line-height"]),"text-letter-spacing":new Bt(Wi.layout_symbol["text-letter-spacing"]),"text-justify":new Bt(Wi.layout_symbol["text-justify"]),"text-radial-offset":new Bt(Wi.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Fe(Wi.layout_symbol["text-variable-anchor"]),"text-anchor":new Bt(Wi.layout_symbol["text-anchor"]),"text-max-angle":new Fe(Wi.layout_symbol["text-max-angle"]),"text-writing-mode":new Fe(Wi.layout_symbol["text-writing-mode"]),"text-rotate":new Bt(Wi.layout_symbol["text-rotate"]),"text-padding":new Fe(Wi.layout_symbol["text-padding"]),"text-keep-upright":new Fe(Wi.layout_symbol["text-keep-upright"]),"text-transform":new Bt(Wi.layout_symbol["text-transform"]),"text-offset":new Bt(Wi.layout_symbol["text-offset"]),"text-allow-overlap":new Fe(Wi.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Fe(Wi.layout_symbol["text-ignore-placement"]),"text-optional":new Fe(Wi.layout_symbol["text-optional"])}),Utt=new fi({"icon-opacity":new Bt(Wi.paint_symbol["icon-opacity"]),"icon-color":new Bt(Wi.paint_symbol["icon-color"]),"icon-halo-color":new Bt(Wi.paint_symbol["icon-halo-color"]),"icon-halo-width":new Bt(Wi.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Bt(Wi.paint_symbol["icon-halo-blur"]),"icon-translate":new Fe(Wi.paint_symbol["icon-translate"]),"icon-translate-anchor":new Fe(Wi.paint_symbol["icon-translate-anchor"]),"text-opacity":new Bt(Wi.paint_symbol["text-opacity"]),"text-color":new Bt(Wi.paint_symbol["text-color"],{runtimeType:vn,getOverride:function(g){return g.textColor},hasOverride:function(g){return!!g.textColor}}),"text-halo-color":new Bt(Wi.paint_symbol["text-halo-color"]),"text-halo-width":new Bt(Wi.paint_symbol["text-halo-width"]),"text-halo-blur":new Bt(Wi.paint_symbol["text-halo-blur"]),"text-translate":new Fe(Wi.paint_symbol["text-translate"]),"text-translate-anchor":new Fe(Wi.paint_symbol["text-translate-anchor"])}),LB={paint:Utt,layout:Ntt},l3=function(_){this.type=_.property.overrides?_.property.overrides.runtimeType:Qo,this.defaultValue=_};l3.prototype.evaluate=function(_){if(_.formattedSection){var z=this.defaultValue.property.overrides;if(z&&z.hasOverride(_.formattedSection))return z.getOverride(_.formattedSection)}return _.feature&&_.featureState?this.defaultValue.evaluate(_.feature,_.featureState):this.defaultValue.property.specification.default},l3.prototype.eachChild=function(_){if(!this.defaultValue.isConstant()){var z=this.defaultValue.value;_(z._styleExpression.expression)}},l3.prototype.outputDefined=function(){return!1},l3.prototype.serialize=function(){return null},Z("FormatSectionOverride",l3,{omit:["defaultValue"]});var Vtt=function(g){function _(z){g.call(this,z,LB)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.recalculate=function(V,$){if(g.prototype.recalculate.call(this,V,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var se=this.layout.get("text-writing-mode");if(se){for(var ve=[],Ze=0,At=se;Ze",targetMapId:$,sourceMapId:ve.mapId})}}},u3.prototype.receive=function(_){var z=_.data,V=z.id;if(V&&!(z.targetMapId&&this.mapId!==z.targetMapId))if(z.type===""){delete this.tasks[V];var $=this.cancelCallbacks[V];delete this.cancelCallbacks[V],$&&$()}else Ce()||z.mustQueue?(this.tasks[V]=z,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,z)},u3.prototype.process=function(){if(this.taskQueue.length){var _=this.taskQueue.shift(),z=this.tasks[_];delete this.tasks[_],this.taskQueue.length&&this.invoker.trigger(),z&&this.processTask(_,z)}},u3.prototype.processTask=function(_,z){var V=this;if(z.type===""){var $=this.callbacks[_];delete this.callbacks[_],$&&(z.error?$(ut(z.error)):$(null,ut(z.data)))}else{var se=!1,ve=Se(this.globalScope)?void 0:[],Ze=z.hasCallback?function(Or,Pr){se=!0,delete V.cancelCallbacks[_],V.target.postMessage({id:_,type:"",sourceMapId:V.mapId,error:Or?nt(Or):null,data:nt(Pr,ve)},ve)}:function(Or){se=!0},At=null,It=ut(z.data);if(this.parent[z.type])At=this.parent[z.type](z.sourceMapId,It,Ze);else if(this.parent.getWorkerSource){var Wt=z.type.split("."),_r=this.parent.getWorkerSource(z.sourceMapId,Wt[0],It.source);At=_r[Wt[1]](It,Ze)}else Ze(new Error("Could not find function "+z.type));!se&&At&&At.cancel&&(this.cancelCallbacks[_]=At.cancel)}},u3.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function Qtt(g,_,z){_=Math.pow(2,z)-_-1;var V=vee(g*256,_*256,z),$=vee((g+1)*256,(_+1)*256,z);return V[0]+","+V[1]+","+$[0]+","+$[1]}function vee(g,_,z){var V=2*Math.PI*6378137/256/Math.pow(2,z),$=g*V-2*Math.PI*6378137/2,se=_*V-2*Math.PI*6378137/2;return[$,se]}var yh=function(_,z){_&&(z?this.setSouthWest(_).setNorthEast(z):_.length===4?this.setSouthWest([_[0],_[1]]).setNorthEast([_[2],_[3]]):this.setSouthWest(_[0]).setNorthEast(_[1]))};yh.prototype.setNorthEast=function(_){return this._ne=_ instanceof Rc?new Rc(_.lng,_.lat):Rc.convert(_),this},yh.prototype.setSouthWest=function(_){return this._sw=_ instanceof Rc?new Rc(_.lng,_.lat):Rc.convert(_),this},yh.prototype.extend=function(_){var z=this._sw,V=this._ne,$,se;if(_ instanceof Rc)$=_,se=_;else if(_ instanceof yh){if($=_._sw,se=_._ne,!$||!se)return this}else{if(Array.isArray(_))if(_.length===4||_.every(Array.isArray)){var ve=_;return this.extend(yh.convert(ve))}else{var Ze=_;return this.extend(Rc.convert(Ze))}return this}return!z&&!V?(this._sw=new Rc($.lng,$.lat),this._ne=new Rc(se.lng,se.lat)):(z.lng=Math.min($.lng,z.lng),z.lat=Math.min($.lat,z.lat),V.lng=Math.max(se.lng,V.lng),V.lat=Math.max(se.lat,V.lat)),this},yh.prototype.getCenter=function(){return new Rc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},yh.prototype.getSouthWest=function(){return this._sw},yh.prototype.getNorthEast=function(){return this._ne},yh.prototype.getNorthWest=function(){return new Rc(this.getWest(),this.getNorth())},yh.prototype.getSouthEast=function(){return new Rc(this.getEast(),this.getSouth())},yh.prototype.getWest=function(){return this._sw.lng},yh.prototype.getSouth=function(){return this._sw.lat},yh.prototype.getEast=function(){return this._ne.lng},yh.prototype.getNorth=function(){return this._ne.lat},yh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},yh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},yh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},yh.prototype.contains=function(_){var z=Rc.convert(_),V=z.lng,$=z.lat,se=this._sw.lat<=$&&$<=this._ne.lat,ve=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ve=this._sw.lng>=V&&V>=this._ne.lng),se&&ve},yh.convert=function(_){return!_||_ instanceof yh?_:new yh(_)};var mee=63710088e-1,Rc=function(_,z){if(isNaN(_)||isNaN(z))throw new Error("Invalid LngLat object: ("+_+", "+z+")");if(this.lng=+_,this.lat=+z,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Rc.prototype.wrap=function(){return new Rc(C(this.lng,-180,180),this.lat)},Rc.prototype.toArray=function(){return[this.lng,this.lat]},Rc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Rc.prototype.distanceTo=function(_){var z=Math.PI/180,V=this.lat*z,$=_.lat*z,se=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((_.lng-this.lng)*z),ve=mee*Math.acos(Math.min(se,1));return ve},Rc.prototype.toBounds=function(_){_===void 0&&(_=0);var z=40075017,V=360*_/z,$=V/Math.cos(Math.PI/180*this.lat);return new yh(new Rc(this.lng-$,this.lat-V),new Rc(this.lng+$,this.lat+V))},Rc.convert=function(_){if(_ instanceof Rc)return _;if(Array.isArray(_)&&(_.length===2||_.length===3))return new Rc(Number(_[0]),Number(_[1]));if(!Array.isArray(_)&&typeof _=="object"&&_!==null)return new Rc(Number("lng"in _?_.lng:_.lon),Number(_.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var yee=2*Math.PI*mee;function gee(g){return yee*Math.cos(g*Math.PI/180)}function _ee(g){return(180+g)/360}function xee(g){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+g*Math.PI/360)))/360}function bee(g,_){return g/gee(_)}function ert(g){return g*360-180}function zB(g){var _=180-g*360;return 360/Math.PI*Math.atan(Math.exp(_*Math.PI/180))-90}function trt(g,_){return g*gee(zB(_))}function rrt(g){return 1/Math.cos(g*Math.PI/180)}var pb=function(_,z,V){V===void 0&&(V=0),this.x=+_,this.y=+z,this.z=+V};pb.fromLngLat=function(_,z){z===void 0&&(z=0);var V=Rc.convert(_);return new pb(_ee(V.lng),xee(V.lat),bee(z,V.lat))},pb.prototype.toLngLat=function(){return new Rc(ert(this.x),zB(this.y))},pb.prototype.toAltitude=function(){return trt(this.z,this.y)},pb.prototype.meterInMercatorCoordinateUnits=function(){return 1/yee*rrt(zB(this.y))};var vb=function(_,z,V){this.z=_,this.x=z,this.y=V,this.key=IM(0,_,_,z,V)};vb.prototype.equals=function(_){return this.z===_.z&&this.x===_.x&&this.y===_.y},vb.prototype.url=function(_,z){var V=Qtt(this.x,this.y,this.z),$=irt(this.z,this.x,this.y);return _[(this.x+this.y)%_.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(z==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",V)},vb.prototype.getTilePoint=function(_){var z=Math.pow(2,this.z);return new l((_.x*z-this.x)*Tn,(_.y*z-this.y)*Tn)},vb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var wee=function(_,z){this.wrap=_,this.canonical=z,this.key=IM(_,z.z,z.z,z.x,z.y)},gh=function(_,z,V,$,se){this.overscaledZ=_,this.wrap=z,this.canonical=new vb(V,+$,+se),this.key=IM(z,_,V,$,se)};gh.prototype.equals=function(_){return this.overscaledZ===_.overscaledZ&&this.wrap===_.wrap&&this.canonical.equals(_.canonical)},gh.prototype.scaledTo=function(_){var z=this.canonical.z-_;return _>this.canonical.z?new gh(_,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gh(_,this.wrap,_,this.canonical.x>>z,this.canonical.y>>z)},gh.prototype.calculateScaledKey=function(_,z){var V=this.canonical.z-_;return _>this.canonical.z?IM(this.wrap*+z,_,this.canonical.z,this.canonical.x,this.canonical.y):IM(this.wrap*+z,_,_,this.canonical.x>>V,this.canonical.y>>V)},gh.prototype.isChildOf=function(_){if(_.wrap!==this.wrap)return!1;var z=this.canonical.z-_.canonical.z;return _.overscaledZ===0||_.overscaledZ>z&&_.canonical.y===this.canonical.y>>z},gh.prototype.children=function(_){if(this.overscaledZ>=_)return[new gh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var z=this.canonical.z+1,V=this.canonical.x*2,$=this.canonical.y*2;return[new gh(z,this.wrap,z,V,$),new gh(z,this.wrap,z,V+1,$),new gh(z,this.wrap,z,V,$+1),new gh(z,this.wrap,z,V+1,$+1)]},gh.prototype.isLessThan=function(_){return this.wrap<_.wrap?!0:this.wrap>_.wrap?!1:this.overscaledZ<_.overscaledZ?!0:this.overscaledZ>_.overscaledZ?!1:this.canonical.x<_.canonical.x?!0:this.canonical.x>_.canonical.x?!1:this.canonical.y<_.canonical.y},gh.prototype.wrapped=function(){return new gh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},gh.prototype.unwrapTo=function(_){return new gh(this.overscaledZ,_,this.canonical.z,this.canonical.x,this.canonical.y)},gh.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},gh.prototype.toUnwrapped=function(){return new wee(this.wrap,this.canonical)},gh.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},gh.prototype.getTilePoint=function(_){return this.canonical.getTilePoint(new pb(_.x-this.wrap,_.y))};function IM(g,_,z,V,$){g*=2,g<0&&(g=g*-1-1);var se=1<0;se--)$=1<=this.dim+1||z<-1||z>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(z+1)*this.stride+(_+1)},bg.prototype._unpackMapbox=function(_,z,V){return(_*256*256+z*256+V)/10-1e4},bg.prototype._unpackTerrarium=function(_,z,V){return _*256+z+V/256-32768},bg.prototype.getPixels=function(){return new Ih({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},bg.prototype.backfillBorder=function(_,z,V){if(this.dim!==_.dim)throw new Error("dem dimension mismatch");var $=z*this.dim,se=z*this.dim+this.dim,ve=V*this.dim,Ze=V*this.dim+this.dim;switch(z){case-1:$=se-1;break;case 1:se=$+1;break}switch(V){case-1:ve=Ze-1;break;case 1:Ze=ve+1;break}for(var At=-z*this.dim,It=-V*this.dim,Wt=ve;Wt=0&&_r[3]>=0&&At.insert(Ze,_r[0],_r[1],_r[2],_r[3])}},wg.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new ym.VectorTile(new su(this.rawTileData)).layers,this.sourceLayerCoder=new cL(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},wg.prototype.query=function(_,z,V,$){var se=this;this.loadVTLayers();for(var ve=_.params||{},Ze=Tn/_.tileSize/_.scale,At=Ae(ve.filter),It=_.queryGeometry,Wt=_.queryPadding*Ze,_r=Tee(It),Or=this.grid.query(_r.minX-Wt,_r.minY-Wt,_r.maxX+Wt,_r.maxY+Wt),Pr=Tee(_.cameraQueryGeometry),ai=this.grid3D.query(Pr.minX-Wt,Pr.minY-Wt,Pr.maxX+Wt,Pr.maxY+Wt,function(Zs,Cl,Tl,hu){return yv(_.cameraQueryGeometry,Zs-Wt,Cl-Wt,Tl+Wt,hu+Wt)}),qi=0,Wn=ai;qi$)se=!1;else if(!z)se=!0;else if(this.expirationTime=xn.maxzoom)&&xn.visibility!=="none"){h(Ii,this.zoom,Nt);var xi=Hr[xn.id]=xn.createBucket({index:Gr.bucketLayerIDs.length,layers:Ii,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Qi,sourceID:this.source});xi.populate(Yr,mi,this.tileID.canonical),Gr.bucketLayerIDs.push(Ii.map(function(ni){return ni.id}))}}}}var Xr,dt,$t,fr,gr=i.mapObject(mi.glyphDependencies,function(ni){return Object.keys(ni).map(Number)});Object.keys(gr).length?mr.send("getGlyphs",{uid:this.uid,stacks:gr},function(ni,Xi){Xr||(Xr=ni,dt=Xi,$i.call(Nr))}):dt={};var Zr=Object.keys(mi.iconDependencies);Zr.length?mr.send("getImages",{icons:Zr,source:this.source,tileID:this.tileID,type:"icons"},function(ni,Xi){Xr||(Xr=ni,$t=Xi,$i.call(Nr))}):$t={};var wi=Object.keys(mi.patternDependencies);wi.length?mr.send("getImages",{icons:wi,source:this.source,tileID:this.tileID,type:"patterns"},function(ni,Xi){Xr||(Xr=ni,fr=Xi,$i.call(Nr))}):fr={},$i.call(this);function $i(){if(Xr)return Lr(Xr);if(dt&&$t&&fr){var ni=new f(dt),Xi=new i.ImageAtlas($t,fr);for(var aa in Hr){var Mn=Hr[aa];Mn instanceof i.SymbolBucket?(h(Mn.layers,this.zoom,Nt),i.performSymbolLayout(Mn,dt,ni.positions,$t,Xi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Mn.hasPattern&&(Mn instanceof i.LineBucket||Mn instanceof i.FillBucket||Mn instanceof i.FillExtrusionBucket)&&(h(Mn.layers,this.zoom,Nt),Mn.addFeatures(mi,this.tileID.canonical,Xi.patternPositions))}this.status="done",Lr(null,{buckets:i.values(Hr).filter(function(Un){return!Un.isEmpty()}),featureIndex:Gr,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ni.image,imageAtlas:Xi,glyphMap:this.returnDependencies?dt:null,iconMap:this.returnDependencies?$t:null,glyphPositions:this.returnDependencies?ni.positions:null})}}};function h(Rt,_t,qt){for(var Nt=new i.EvaluationParameters(_t),mr=0,Lr=Rt;mr=0!=!!_t&&Rt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(_t){this._feature=_t,this.extent=i.EXTENT,this.type=_t.type,this.properties=_t.tags,"id"in _t&&!isNaN(_t.id)&&(this.id=parseInt(_t.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var _t=[],qt=0,Nt=this._feature.geometry;qt>31}function Ce(Rt,_t){for(var qt=Rt.loadGeometry(),Nt=Rt.type,mr=0,Lr=0,Nr=qt.length,Fr=0;Fr>1;Se(Rt,_t,Nr,Nt,mr,Lr%2),te(Rt,_t,qt,Nt,Nr-1,Lr+1),te(Rt,_t,qt,Nr+1,mr,Lr+1)}}function Se(Rt,_t,qt,Nt,mr,Lr){for(;mr>Nt;){if(mr-Nt>600){var Nr=mr-Nt+1,Fr=qt-Nt+1,Gr=Math.log(Nr),Hr=.5*Math.exp(2*Gr/3),mi=.5*Math.sqrt(Gr*Hr*(Nr-Hr)/Nr)*(Fr-Nr/2<0?-1:1),Ei=Math.max(Nt,Math.floor(qt-Fr*Hr/Nr+mi)),Vi=Math.min(mr,Math.floor(qt+(Nr-Fr)*Hr/Nr+mi));Se(Rt,_t,qt,Ei,Vi,Lr)}var ti=_t[2*qt+Lr],Qi=Nt,Yr=mr;for(Te(Rt,_t,Nt,qt),_t[2*mr+Lr]>ti&&Te(Rt,_t,Nt,mr);Qiti;)Yr--}_t[2*Nt+Lr]===ti?Te(Rt,_t,Nt,Yr):(Yr++,Te(Rt,_t,Yr,mr)),Yr<=qt&&(Nt=Yr+1),qt<=Yr&&(mr=Yr-1)}}function Te(Rt,_t,qt,Nt){be(Rt,qt,Nt),be(_t,2*qt,2*Nt),be(_t,2*qt+1,2*Nt+1)}function be(Rt,_t,qt){var Nt=Rt[_t];Rt[_t]=Rt[qt],Rt[qt]=Nt}function He(Rt,_t,qt,Nt,mr,Lr,Nr){for(var Fr=[0,Rt.length-1,0],Gr=[],Hr,mi;Fr.length;){var Ei=Fr.pop(),Vi=Fr.pop(),ti=Fr.pop();if(Vi-ti<=Nr){for(var Qi=ti;Qi<=Vi;Qi++)Hr=_t[2*Qi],mi=_t[2*Qi+1],Hr>=qt&&Hr<=mr&&mi>=Nt&&mi<=Lr&&Gr.push(Rt[Qi]);continue}var Yr=Math.floor((ti+Vi)/2);Hr=_t[2*Yr],mi=_t[2*Yr+1],Hr>=qt&&Hr<=mr&&mi>=Nt&&mi<=Lr&&Gr.push(Rt[Yr]);var oi=(Ei+1)%2;(Ei===0?qt<=Hr:Nt<=mi)&&(Fr.push(ti),Fr.push(Yr-1),Fr.push(oi)),(Ei===0?mr>=Hr:Lr>=mi)&&(Fr.push(Yr+1),Fr.push(Vi),Fr.push(oi))}return Gr}function Ie(Rt,_t,qt,Nt,mr,Lr){for(var Nr=[0,Rt.length-1,0],Fr=[],Gr=mr*mr;Nr.length;){var Hr=Nr.pop(),mi=Nr.pop(),Ei=Nr.pop();if(mi-Ei<=Lr){for(var Vi=Ei;Vi<=mi;Vi++)ge(_t[2*Vi],_t[2*Vi+1],qt,Nt)<=Gr&&Fr.push(Rt[Vi]);continue}var ti=Math.floor((Ei+mi)/2),Qi=_t[2*ti],Yr=_t[2*ti+1];ge(Qi,Yr,qt,Nt)<=Gr&&Fr.push(Rt[ti]);var oi=(Hr+1)%2;(Hr===0?qt-mr<=Qi:Nt-mr<=Yr)&&(Nr.push(Ei),Nr.push(ti-1),Nr.push(oi)),(Hr===0?qt+mr>=Qi:Nt+mr>=Yr)&&(Nr.push(ti+1),Nr.push(mi),Nr.push(oi))}return Fr}function ge(Rt,_t,qt,Nt){var mr=Rt-qt,Lr=_t-Nt;return mr*mr+Lr*Lr}var Be=function(Rt){return Rt[0]},ce=function(Rt){return Rt[1]},je=function(_t,qt,Nt,mr,Lr){qt===void 0&&(qt=Be),Nt===void 0&&(Nt=ce),mr===void 0&&(mr=64),Lr===void 0&&(Lr=Float64Array),this.nodeSize=mr,this.points=_t;for(var Nr=_t.length<65536?Uint16Array:Uint32Array,Fr=this.ids=new Nr(_t.length),Gr=this.coords=new Lr(_t.length*2),Hr=0;Hr<_t.length;Hr++)Fr[Hr]=Hr,Gr[2*Hr]=qt(_t[Hr]),Gr[2*Hr+1]=Nt(_t[Hr]);te(Fr,Gr,mr,0,Fr.length-1,0)};je.prototype.range=function(_t,qt,Nt,mr){return He(this.ids,this.coords,_t,qt,Nt,mr,this.nodeSize)},je.prototype.within=function(_t,qt,Nt){return Ie(this.ids,this.coords,_t,qt,Nt,this.nodeSize)};var rt={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Rt){return Rt}},bt=function(_t){this.options=Me(Object.create(rt),_t),this.trees=new Array(this.options.maxZoom+1)};bt.prototype.load=function(_t){var qt=this.options,Nt=qt.log,mr=qt.minZoom,Lr=qt.maxZoom,Nr=qt.nodeSize;Nt&&console.time("total time");var Fr="prepare "+_t.length+" points";Nt&&console.time(Fr),this.points=_t;for(var Gr=[],Hr=0;Hr<_t.length;Hr++)_t[Hr].geometry&&Gr.push(it(_t[Hr],Hr));this.trees[Lr+1]=new je(Gr,oe,Ne,Nr,Float32Array),Nt&&console.timeEnd(Fr);for(var mi=Lr;mi>=mr;mi--){var Ei=+Date.now();Gr=this._cluster(Gr,mi),this.trees[mi]=new je(Gr,oe,Ne,Nr,Float32Array),Nt&&console.log("z%d: %d clusters in %dms",mi,Gr.length,+Date.now()-Ei)}return Nt&&console.timeEnd("total time"),this},bt.prototype.getClusters=function(_t,qt){var Nt=((_t[0]+180)%360+360)%360-180,mr=Math.max(-90,Math.min(90,_t[1])),Lr=_t[2]===180?180:((_t[2]+180)%360+360)%360-180,Nr=Math.max(-90,Math.min(90,_t[3]));if(_t[2]-_t[0]>=360)Nt=-180,Lr=180;else if(Nt>Lr){var Fr=this.getClusters([Nt,mr,180,Nr],qt),Gr=this.getClusters([-180,mr,Lr,Nr],qt);return Fr.concat(Gr)}for(var Hr=this.trees[this._limitZoom(qt)],mi=Hr.range(Mt(Nt),kt(Nr),Mt(Lr),kt(mr)),Ei=[],Vi=0,ti=mi;Viqt&&(Yr+=tn.numPoints||1)}if(Yr>=Gr){for(var Ri=Ei.x*Qi,Ii=Ei.y*Qi,xn=Fr&&Qi>1?this._map(Ei,!0):null,xi=(mi<<5)+(qt+1)+this.points.length,Xr=0,dt=ti;Xr1)for(var Zr=0,wi=ti;Zr>5},bt.prototype._getOriginZoom=function(_t){return(_t-this.points.length)%32},bt.prototype._map=function(_t,qt){if(_t.numPoints)return qt?Me({},_t.properties):_t.properties;var Nt=this.points[_t.index].properties,mr=this.options.map(Nt);return qt&&mr===Nt?Me({},mr):mr};function Ot(Rt,_t,qt,Nt,mr){return{x:Rt,y:_t,zoom:1/0,id:qt,parentId:-1,numPoints:Nt,properties:mr}}function it(Rt,_t){var qt=Rt.geometry.coordinates,Nt=qt[0],mr=qt[1];return{x:Mt(Nt),y:kt(mr),zoom:1/0,index:_t,parentId:-1}}function Ke(Rt){return{type:"Feature",id:Rt.id,properties:zt(Rt),geometry:{type:"Point",coordinates:[$e(Rt.x),De(Rt.y)]}}}function zt(Rt){var _t=Rt.numPoints,qt=_t>=1e4?Math.round(_t/1e3)+"k":_t>=1e3?Math.round(_t/100)/10+"k":_t;return Me(Me({},Rt.properties),{cluster:!0,cluster_id:Rt.id,point_count:_t,point_count_abbreviated:qt})}function Mt(Rt){return Rt/360+.5}function kt(Rt){var _t=Math.sin(Rt*Math.PI/180),qt=.5-.25*Math.log((1+_t)/(1-_t))/Math.PI;return qt<0?0:qt>1?1:qt}function $e(Rt){return(Rt-.5)*360}function De(Rt){var _t=(180-Rt*360)*Math.PI/180;return 360*Math.atan(Math.exp(_t))/Math.PI-90}function Me(Rt,_t){for(var qt in _t)Rt[qt]=_t[qt];return Rt}function oe(Rt){return Rt.x}function Ne(Rt){return Rt.y}function vt(Rt,_t,qt,Nt){for(var mr=Nt,Lr=qt-_t>>1,Nr=qt-_t,Fr,Gr=Rt[_t],Hr=Rt[_t+1],mi=Rt[qt],Ei=Rt[qt+1],Vi=_t+3;Vimr)Fr=Vi,mr=ti;else if(ti===mr){var Qi=Math.abs(Vi-Lr);QiNt&&(Fr-_t>3&&vt(Rt,_t,Fr,Nt),Rt[Fr+2]=mr,qt-Fr>3&&vt(Rt,Fr,qt,Nt))}function lt(Rt,_t,qt,Nt,mr,Lr){var Nr=mr-qt,Fr=Lr-Nt;if(Nr!==0||Fr!==0){var Gr=((Rt-qt)*Nr+(_t-Nt)*Fr)/(Nr*Nr+Fr*Fr);Gr>1?(qt=mr,Nt=Lr):Gr>0&&(qt+=Nr*Gr,Nt+=Fr*Gr)}return Nr=Rt-qt,Fr=_t-Nt,Nr*Nr+Fr*Fr}function We(Rt,_t,qt,Nt){var mr={id:typeof Rt=="undefined"?null:Rt,type:_t,geometry:qt,tags:Nt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Ve(mr),mr}function Ve(Rt){var _t=Rt.geometry,qt=Rt.type;if(qt==="Point"||qt==="MultiPoint"||qt==="LineString")et(Rt,_t);else if(qt==="Polygon"||qt==="MultiLineString")for(var Nt=0;Nt<_t.length;Nt++)et(Rt,_t[Nt]);else if(qt==="MultiPolygon")for(Nt=0;Nt<_t.length;Nt++)for(var mr=0;mr<_t[Nt].length;mr++)et(Rt,_t[Nt][mr])}function et(Rt,_t){for(var qt=0;qt<_t.length;qt+=3)Rt.minX=Math.min(Rt.minX,_t[qt]),Rt.minY=Math.min(Rt.minY,_t[qt+1]),Rt.maxX=Math.max(Rt.maxX,_t[qt]),Rt.maxY=Math.max(Rt.maxY,_t[qt+1])}function tt(Rt,_t){var qt=[];if(Rt.type==="FeatureCollection")for(var Nt=0;Nt0&&(Nt?Nr+=(mr*Hr-Gr*Lr)/2:Nr+=Math.sqrt(Math.pow(Gr-mr,2)+Math.pow(Hr-Lr,2))),mr=Gr,Lr=Hr}var mi=_t.length-3;_t[2]=1,vt(_t,0,mi,qt),_t[mi+2]=1,_t.size=Math.abs(Nr),_t.start=0,_t.end=_t.size}function yr(Rt,_t,qt,Nt){for(var mr=0;mr1?1:qt}function Pe(Rt,_t,qt,Nt,mr,Lr,Nr,Fr){if(qt/=_t,Nt/=_t,Lr>=qt&&Nr=Nt)return null;for(var Gr=[],Hr=0;Hr=qt&&Qi=Nt)continue;var Yr=[];if(Vi==="Point"||Vi==="MultiPoint")xe(Ei,Yr,qt,Nt,mr);else if(Vi==="LineString")Oe(Ei,Yr,qt,Nt,mr,!1,Fr.lineMetrics);else if(Vi==="MultiLineString")Re(Ei,Yr,qt,Nt,mr,!1);else if(Vi==="Polygon")Re(Ei,Yr,qt,Nt,mr,!0);else if(Vi==="MultiPolygon")for(var oi=0;oi=qt&&Nr<=Nt&&(_t.push(Rt[Lr]),_t.push(Rt[Lr+1]),_t.push(Rt[Lr+2]))}}function Oe(Rt,_t,qt,Nt,mr,Lr,Nr){for(var Fr=ze(Rt),Gr=mr===0?st:gt,Hr=Rt.start,mi,Ei,Vi=0;Viqt&&(Ei=Gr(Fr,ti,Qi,oi,Fi,qt),Nr&&(Fr.start=Hr+mi*Ei)):rn>Nt?tn=qt&&(Ei=Gr(Fr,ti,Qi,oi,Fi,qt),Ri=!0),tn>Nt&&rn<=Nt&&(Ei=Gr(Fr,ti,Qi,oi,Fi,Nt),Ri=!0),!Lr&&Ri&&(Nr&&(Fr.end=Hr+mi*Ei),_t.push(Fr),Fr=ze(Rt)),Nr&&(Hr+=mi)}var Ii=Rt.length-3;ti=Rt[Ii],Qi=Rt[Ii+1],Yr=Rt[Ii+2],rn=mr===0?ti:Qi,rn>=qt&&rn<=Nt&&ht(Fr,ti,Qi,Yr),Ii=Fr.length-3,Lr&&Ii>=3&&(Fr[Ii]!==Fr[0]||Fr[Ii+1]!==Fr[1])&&ht(Fr,Fr[0],Fr[1],Fr[2]),Fr.length&&_t.push(Fr)}function ze(Rt){var _t=[];return _t.size=Rt.size,_t.start=Rt.start,_t.end=Rt.end,_t}function Re(Rt,_t,qt,Nt,mr,Lr){for(var Nr=0;NrNr.maxX&&(Nr.maxX=mi),Ei>Nr.maxY&&(Nr.maxY=Ei)}return Nr}function jr(Rt,_t,qt,Nt){var mr=_t.geometry,Lr=_t.type,Nr=[];if(Lr==="Point"||Lr==="MultiPoint")for(var Fr=0;Fr0&&_t.size<(mr?Nr:Nt)){qt.numPoints+=_t.length/3;return}for(var Fr=[],Gr=0;Gr<_t.length;Gr+=3)(Nt===0||_t[Gr+2]>Nr)&&(qt.numSimplified++,Fr.push(_t[Gr]),Fr.push(_t[Gr+1])),qt.numPoints++;mr&&Vr(Fr,Lr),Rt.push(Fr)}function Vr(Rt,_t){for(var qt=0,Nt=0,mr=Rt.length,Lr=mr-2;Nt0===_t)for(Nt=0,mr=Rt.length;Nt24)throw new Error("maxZoom should be in the 0-24 range");if(_t.promoteId&&_t.generateId)throw new Error("promoteId and generateId cannot be used together.");var Nt=tt(Rt,_t);this.tiles={},this.tileCoords=[],qt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",_t.indexMaxZoom,_t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Nt=xt(Nt,_t),Nt.length&&this.splitTile(Nt,0,0,0),qt&&(Nt.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Bi.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Bi.prototype.splitTile=function(Rt,_t,qt,Nt,mr,Lr,Nr){for(var Fr=[Rt,_t,qt,Nt],Gr=this.options,Hr=Gr.debug;Fr.length;){Nt=Fr.pop(),qt=Fr.pop(),_t=Fr.pop(),Rt=Fr.pop();var mi=1<<_t,Ei=Di(_t,qt,Nt),Vi=this.tiles[Ei];if(!Vi&&(Hr>1&&console.time("creation"),Vi=this.tiles[Ei]=ii(Rt,_t,qt,Nt,Gr),this.tileCoords.push({z:_t,x:qt,y:Nt}),Hr)){Hr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",_t,qt,Nt,Vi.numFeatures,Vi.numPoints,Vi.numSimplified),console.timeEnd("creation"));var ti="z"+_t;this.stats[ti]=(this.stats[ti]||0)+1,this.total++}if(Vi.source=Rt,mr){if(_t===Gr.maxZoom||_t===mr)continue;var Qi=1<1&&console.time("clipping");var Yr=.5*Gr.buffer/Gr.extent,oi=.5-Yr,Fi=.5+Yr,rn=1+Yr,tn,Ri,Ii,xn,xi,Xr;tn=Ri=Ii=xn=null,xi=Pe(Rt,mi,qt-Yr,qt+Fi,0,Vi.minX,Vi.maxX,Gr),Xr=Pe(Rt,mi,qt+oi,qt+rn,0,Vi.minX,Vi.maxX,Gr),Rt=null,xi&&(tn=Pe(xi,mi,Nt-Yr,Nt+Fi,1,Vi.minY,Vi.maxY,Gr),Ri=Pe(xi,mi,Nt+oi,Nt+rn,1,Vi.minY,Vi.maxY,Gr),xi=null),Xr&&(Ii=Pe(Xr,mi,Nt-Yr,Nt+Fi,1,Vi.minY,Vi.maxY,Gr),xn=Pe(Xr,mi,Nt+oi,Nt+rn,1,Vi.minY,Vi.maxY,Gr),Xr=null),Hr>1&&console.timeEnd("clipping"),Fr.push(tn||[],_t+1,qt*2,Nt*2),Fr.push(Ri||[],_t+1,qt*2,Nt*2+1),Fr.push(Ii||[],_t+1,qt*2+1,Nt*2),Fr.push(xn||[],_t+1,qt*2+1,Nt*2+1)}}},Bi.prototype.getTile=function(Rt,_t,qt){var Nt=this.options,mr=Nt.extent,Lr=Nt.debug;if(Rt<0||Rt>24)return null;var Nr=1<1&&console.log("drilling down to z%d-%d-%d",Rt,_t,qt);for(var Gr=Rt,Hr=_t,mi=qt,Ei;!Ei&&Gr>0;)Gr--,Hr=Math.floor(Hr/2),mi=Math.floor(mi/2),Ei=this.tiles[Di(Gr,Hr,mi)];return!Ei||!Ei.source?null:(Lr>1&&console.log("found parent tile z%d-%d-%d",Gr,Hr,mi),Lr>1&&console.time("drilling down"),this.splitTile(Ei.source,Gr,Hr,mi,Rt,_t,qt),Lr>1&&console.timeEnd("drilling down"),this.tiles[Fr]?cr(this.tiles[Fr],mr):null)};function Di(Rt,_t,qt){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function y(Y,D,J){var B,K,ye,ne=i.browser.devicePixelRatio>1?"@2x":"",Ee=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(ur,Sr){Ee=null,ye||(ye=ur,B=Sr,Ct())}),Je=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(ur,Sr){Je=null,ye||(ye=ur,K=Sr,Ct())});function Ct(){if(ye)J(ye);else if(B&&K){var ur=i.browser.getImageData(K),Sr={};for(var nr in B){var Qe=B[nr],pt=Qe.width,Tt=Qe.height,Xt=Qe.x,ir=Qe.y,Kt=Qe.sdf,ar=Qe.pixelRatio,Jt=Qe.stretchX,Ft=Qe.stretchY,Zt=Qe.content,Pt=new i.RGBAImage({width:pt,height:Tt});i.RGBAImage.copy(ur,Pt,{x:Xt,y:ir},{x:0,y:0},{width:pt,height:Tt}),Sr[nr]={data:Pt,pixelRatio:ar,sdf:Kt,stretchX:Jt,stretchY:Ft,content:Zt}}J(null,Sr)}}return{cancel:function(){Ee&&(Ee.cancel(),Ee=null),Je&&(Je.cancel(),Je=null)}}}function b(Y){var D=Y.userImage;if(D&&D.render){var J=D.render();if(J)return Y.data.replace(new Uint8Array(D.data.buffer)),!0}return!1}var v=1,C=function(Y){function D(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.isLoaded=function(){return this.loaded},D.prototype.setLoaded=function(B){if(this.loaded!==B&&(this.loaded=B,B)){for(var K=0,ye=this.requestors;K=0?1.2:1))}k.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var D=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),B=0;B65535){ur(new Error("glyphs > 65535 not supported"));return}if(Qe.ranges[Tt]){ur(null,{stack:Sr,id:nr,glyph:pt});return}var Xt=Qe.requests[Tt];Xt||(Xt=Qe.requests[Tt]=[],P.loadGlyphRange(Sr,Tt,B.url,B.requestManager,function(ir,Kt){if(Kt){for(var ar in Kt)B._doesCharSupportLocalGlyph(+ar)||(Qe.glyphs[+ar]=Kt[+ar]);Qe.ranges[Tt]=!0}for(var Jt=0,Ft=Xt;Jt1&&(Ct=D[++Je]);var Sr=Math.abs(ur-Ct.left),nr=Math.abs(ur-Ct.right),Qe=Math.min(Sr,nr),pt=void 0,Tt=ye/B*(K+1);if(Ct.isDash){var Xt=K-Math.abs(Tt);pt=Math.sqrt(Qe*Qe+Xt*Xt)}else pt=K-Math.sqrt(Qe*Qe+Tt*Tt);this.data[Ee+ur]=Math.max(0,Math.min(255,pt+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var B=D[J],K=D[J+1];B.zeroLength?D.splice(J,1):K&&K.isDash===B.isDash&&(K.left=B.left,D.splice(J,1))}var ye=D[0],ne=D[D.length-1];ye.isDash===ne.isDash&&(ye.left=ne.left-this.width,ne.right=ye.right+this.width);for(var Ee=this.width*this.nextRow,Je=0,Ct=D[Je],ur=0;ur1&&(Ct=D[++Je]);var Sr=Math.abs(ur-Ct.left),nr=Math.abs(ur-Ct.right),Qe=Math.min(Sr,nr),pt=Ct.isDash?Qe:-Qe;this.data[Ee+ur]=Math.max(0,Math.min(255,pt+128))}},G.prototype.addDash=function(D,J){var B=J?7:0,K=2*B+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ye=0,ne=0;ne=B.minX&&D.x=B.minY&&D.y0&&(ur[new i.OverscaledTileID(B.overscaledZ,Ee,K.z,ne,K.y-1).key]={backfilled:!1},ur[new i.OverscaledTileID(B.overscaledZ,B.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},ur[new i.OverscaledTileID(B.overscaledZ,Ct,K.z,Je,K.y-1).key]={backfilled:!1}),K.y+10&&(ye.resourceTiming=B._resourceTiming,B._resourceTiming=[]),B.fire(new i.Event("data",ye))})},D.prototype.onAdd=function(B){this.map=B,this.load()},D.prototype.setData=function(B){var K=this;return this._data=B,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ye){if(ye){K.fire(new i.ErrorEvent(ye));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},D.prototype.getClusterExpansionZoom=function(B,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:B,source:this.id},K),this},D.prototype.getClusterChildren=function(B,K){return this.actor.send("geojson.getClusterChildren",{clusterId:B,source:this.id},K),this},D.prototype.getClusterLeaves=function(B,K,ye,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:B,limit:K,offset:ye},ne),this},D.prototype._updateWorkerData=function(B){var K=this;this._loaded=!1;var ye=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(ye.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),ye.request.collectResourceTiming=this._collectResourceTiming):ye.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",ye,function(Ee,Je){K._removed||Je&&Je.abandoned||(K._loaded=!0,Je&&Je.resourceTiming&&Je.resourceTiming[K.id]&&(K._resourceTiming=Je.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:ye.source},null),B(Ee))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(B,K){var ye=this,ne=B.actor?"reloadTile":"loadTile";B.actor=this.actor;var Ee={type:this.type,uid:B.uid,tileID:B.tileID,zoom:B.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};B.request=this.actor.send(ne,Ee,function(Je,Ct){return delete B.request,B.unloadVectorData(),B.aborted?K(null):Je?K(Je):(B.loadVectorData(Ct,ye.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(B){B.request&&(B.request.cancel(),delete B.request),B.aborted=!0},D.prototype.unloadTile=function(B){B.unloadVectorData(),this.actor.send("removeTile",{uid:B.uid,type:this.type,source:this.id})},D.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},D.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},D.prototype.hasTransition=function(){return!1},D}(i.Evented),Le=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ce=function(Y){function D(J,B,K,ye){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ye),this.options=B}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(B,K){var ye=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,Ee){ye._loaded=!0,ne?ye.fire(new i.ErrorEvent(ne)):Ee&&(ye.image=Ee,B&&(ye.coordinates=B),K&&K(),ye._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(B){var K=this;return!this.image||!B.url?this:(this.options.url=B.url,this.load(B.coordinates,function(){K.texture=null}),this)},D.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},D.prototype.onAdd=function(B){this.map=B,this.load()},D.prototype.setCoordinates=function(B){var K=this;this.coordinates=B;var ye=B.map(i.MercatorCoordinate.fromLngLat);this.tileID=de(ye),this.minzoom=this.maxzoom=this.tileID.z;var ne=ye.map(function(Ee){return K.tileID.getTilePoint(Ee)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var B=this.map.painter.context,K=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,Le.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(B,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var ye in this.tiles){var ne=this.tiles[ye];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.loadTile=function(B,K){this.tileID&&this.tileID.equals(B.tileID.canonical)?(this.tiles[String(B.tileID.wrap)]=B,B.buckets={},K(null)):(B.state="errored",K(null))},D.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return!1},D}(i.Evented);function de(Y){for(var D=1/0,J=1/0,B=-1/0,K=-1/0,ye=0,ne=Y;yeK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=B}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(B){this.map||(this.map=B,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var B=this.map.painter.context,K=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,Le.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(B,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var ye in this.tiles){var ne=this.tiles[ye];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this.video&&!this.video.paused},D}(Ce),Se=function(Y){function D(J,B,K,ye){Y.call(this,J,B,K,ye),B.coordinates?(!Array.isArray(B.coordinates)||B.coordinates.length!==4||B.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(Ee){return typeof Ee!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas!="string"&&!(B.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate!==void 0?B.animate:!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},D.prototype.getCanvas=function(){return this.canvas},D.prototype.onAdd=function(B){this.map=B,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var B=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,B=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,B=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,ye=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Le.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(B||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,ye.RGBA,{premultiply:!0});for(var ne in this.tiles){var Ee=this.tiles[ne];Ee.state!=="loaded"&&(Ee.state="loaded",Ee.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this._playing},D.prototype._hasInvalidDimensions=function(){for(var B=0,K=[this.canvas.width,this.canvas.height];Bthis.max){var Ee=this._getAndRemoveByKey(this.order[0]);Ee&&this.onRemove(Ee)}return this},it.prototype.has=function(D){return D.wrapped().key in this.data},it.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},it.prototype._getAndRemoveByKey=function(D){var J=this.data[D].shift();return J.timeout&&clearTimeout(J.timeout),this.data[D].length===0&&delete this.data[D],this.order.splice(this.order.indexOf(D),1),J.value},it.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},it.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},it.prototype.remove=function(D,J){if(!this.has(D))return this;var B=D.wrapped().key,K=J===void 0?0:this.data[B].indexOf(J),ye=this.data[B][K];return this.data[B].splice(K,1),ye.timeout&&clearTimeout(ye.timeout),this.data[B].length===0&&delete this.data[B],this.onRemove(ye.value),this.order.splice(this.order.indexOf(B),1),this},it.prototype.setMaxSize=function(D){for(this.max=D;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},it.prototype.filter=function(D){var J=[];for(var B in this.data)for(var K=0,ye=this.data[B];K1||(Math.abs(Sr)>1&&(Math.abs(Sr+Qe)===1?Sr+=Qe:Math.abs(Sr-Qe)===1&&(Sr-=Qe)),!(!ur.dem||!Ct.dem)&&(Ct.dem.backfillBorder(ur.dem,Sr,nr),Ct.neighboringTiles&&Ct.neighboringTiles[pt]&&(Ct.neighboringTiles[pt].backfilled=!0)))}},D.prototype.getTile=function(B){return this.getTileByID(B.key)},D.prototype.getTileByID=function(B){return this._tiles[B]},D.prototype._retainLoadedChildren=function(B,K,ye,ne){for(var Ee in this._tiles){var Je=this._tiles[Ee];if(!(ne[Ee]||!Je.hasData()||Je.tileID.overscaledZ<=K||Je.tileID.overscaledZ>ye)){for(var Ct=Je.tileID;Je&&Je.tileID.overscaledZ>K+1;){var ur=Je.tileID.scaledTo(Je.tileID.overscaledZ-1);Je=this._tiles[ur.key],Je&&Je.hasData()&&(Ct=ur)}for(var Sr=Ct;Sr.overscaledZ>K;)if(Sr=Sr.scaledTo(Sr.overscaledZ-1),B[Sr.key]){ne[Ct.key]=Ct;break}}}},D.prototype.findLoadedParent=function(B,K){if(B.key in this._loadedParentTiles){var ye=this._loadedParentTiles[B.key];return ye&&ye.tileID.overscaledZ>=K?ye:null}for(var ne=B.overscaledZ-1;ne>=K;ne--){var Ee=B.scaledTo(ne),Je=this._getLoadedTile(Ee);if(Je)return Je}},D.prototype._getLoadedTile=function(B){var K=this._tiles[B.key];if(K&&K.hasData())return K;var ye=this._cache.getByKey(B.wrapped().key);return ye},D.prototype.updateCacheSize=function(B){var K=Math.ceil(B.width/this._source.tileSize)+1,ye=Math.ceil(B.height/this._source.tileSize)+1,ne=K*ye,Ee=5,Je=Math.floor(ne*Ee),Ct=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Je):Je;this._cache.setMaxSize(Ct)},D.prototype.handleWrapJump=function(B){var K=this._prevLng===void 0?B:this._prevLng,ye=B-K,ne=ye/360,Ee=Math.round(ne);if(this._prevLng=B,Ee){var Je={};for(var Ct in this._tiles){var ur=this._tiles[Ct];ur.tileID=ur.tileID.unwrapTo(ur.tileID.wrap+Ee),Je[ur.tileID.key]=ur}this._tiles=Je;for(var Sr in this._timers)clearTimeout(this._timers[Sr]),delete this._timers[Sr];for(var nr in this._tiles){var Qe=this._tiles[nr];this._setTileReloadTimer(nr,Qe)}}},D.prototype.update=function(B){var K=this;if(this.transform=B,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(B),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var ye;this.used?this._source.tileID?ye=B.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(ci){return new i.OverscaledTileID(ci.canonical.z,ci.wrap,ci.canonical.z,ci.canonical.x,ci.canonical.y)}):(ye=B.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ye=ye.filter(function(ci){return K._source.hasTile(ci)}))):ye=[];var ne=B.coveringZoomLevel(this._source),Ee=Math.max(ne-D.maxOverzooming,this._source.minzoom),Je=Math.max(ne+D.maxUnderzooming,this._source.minzoom),Ct=this._updateRetainedTiles(ye,ne);if(Gr(this._source.type)){for(var ur={},Sr={},nr=Object.keys(Ct),Qe=0,pt=nr;Qethis._source.maxzoom){var Kt=Xt.children(this._source.maxzoom)[0],ar=this.getTile(Kt);if(ar&&ar.hasData()){ye[Kt.key]=Kt;continue}}else{var Jt=Xt.children(this._source.maxzoom);if(ye[Jt[0].key]&&ye[Jt[1].key]&&ye[Jt[2].key]&&ye[Jt[3].key])continue}for(var Ft=ir.wasRequested(),Zt=Xt.overscaledZ-1;Zt>=Ee;--Zt){var Pt=Xt.scaledTo(Zt);if(ne[Pt.key]||(ne[Pt.key]=!0,ir=this.getTile(Pt),!ir&&Ft&&(ir=this._addTile(Pt)),ir&&(ye[Pt.key]=Pt,Ft=ir.wasRequested(),ir.hasData())))break}}}return ye},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var B in this._tiles){for(var K=[],ye=void 0,ne=this._tiles[B].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){ye=this._loadedParentTiles[ne.key];break}K.push(ne.key);var Ee=ne.scaledTo(ne.overscaledZ-1);if(ye=this._getLoadedTile(Ee),ye)break;ne=Ee}for(var Je=0,Ct=K;Je0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},D.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var B in this._tiles)this._removeTile(B);this._cache.reset()},D.prototype.tilesIn=function(B,K,ye){var ne=this,Ee=[],Je=this.transform;if(!Je)return Ee;for(var Ct=ye?Je.getCameraQueryGeometry(B):B,ur=B.map(function(Zt){return Je.pointCoordinate(Zt)}),Sr=Ct.map(function(Zt){return Je.pointCoordinate(Zt)}),nr=this.getIds(),Qe=1/0,pt=1/0,Tt=-1/0,Xt=-1/0,ir=0,Kt=Sr;ir=0&&Cn[1].y+ci>=0){var Yi=ur.map(function(Xa){return Ar.getTilePoint(Xa)}),yn=Sr.map(function(Xa){return Ar.getTilePoint(Xa)});Ee.push({tile:Pt,tileID:Ar,queryGeometry:Yi,cameraQueryGeometry:yn,scale:Br})}}},Ft=0;Ft=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(B,K,ye){B=B||"_geojsonTileLayer",this._state.updateState(B,K,ye)},D.prototype.removeFeatureState=function(B,K,ye){B=B||"_geojsonTileLayer",this._state.removeFeatureState(B,K,ye)},D.prototype.getFeatureState=function(B,K){return B=B||"_geojsonTileLayer",this._state.getState(B,K)},D.prototype.setDependencies=function(B,K,ye){var ne=this._tiles[B];ne&&ne.setDependencies(K,ye)},D.prototype.reloadTilesForDependencies=function(B,K){for(var ye in this._tiles){var ne=this._tiles[ye];ne.hasDependency(B,K)&&this._reloadTile(ye,"reloading")}this._cache.filter(function(Ee){return!Ee.hasDependency(B,K)})},D}(i.Evented);Nr.maxOverzooming=10,Nr.maxUnderzooming=3;function Fr(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),B=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||B-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function Gr(Y){return Y==="raster"||Y==="image"||Y==="video"}function Hr(){return new i.window.Worker(cu.workerUrl)}var mi="mapboxgl_preloaded_worker_pool",Ei=function(){this.active={}};Ei.prototype.acquire=function(D){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/Ee:0;return this.points[ye].mult(1-Je).add(this.points[J].mult(Je))};var ni=function(D,J,B){var K=this.boxCells=[],ye=this.circleCells=[];this.xCellCount=Math.ceil(D/B),this.yCellCount=Math.ceil(J/B);for(var ne=0;nethis.width||K<0||J>this.height)return ye?!1:[];var Ee=[];if(D<=0&&J<=0&&this.width<=B&&this.height<=K){if(ye)return!0;for(var Je=0;Je0:Ee}},ni.prototype._queryCircle=function(D,J,B,K,ye){var ne=D-B,Ee=D+B,Je=J-B,Ct=J+B;if(Ee<0||ne>this.width||Ct<0||Je>this.height)return K?!1:[];var ur=[],Sr={hitTest:K,circle:{x:D,y:J,radius:B},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Je,Ee,Ct,this._queryCellCircle,ur,Sr,ye),K?ur.length>0:ur},ni.prototype.query=function(D,J,B,K,ye){return this._query(D,J,B,K,!1,ye)},ni.prototype.hitTest=function(D,J,B,K,ye){return this._query(D,J,B,K,!0,ye)},ni.prototype.hitTestCircle=function(D,J,B,K){return this._queryCircle(D,J,B,!0,K)},ni.prototype._queryCell=function(D,J,B,K,ye,ne,Ee,Je){var Ct=Ee.seenUids,ur=this.boxCells[ye];if(ur!==null)for(var Sr=this.bboxes,nr=0,Qe=ur;nr=Sr[Tt+0]&&K>=Sr[Tt+1]&&(!Je||Je(this.boxKeys[pt]))){if(Ee.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[pt],x1:Sr[Tt],y1:Sr[Tt+1],x2:Sr[Tt+2],y2:Sr[Tt+3]})}}}var Xt=this.circleCells[ye];if(Xt!==null)for(var ir=this.circles,Kt=0,ar=Xt;KtEe*Ee+Je*Je},ni.prototype._circleAndRectCollide=function(D,J,B,K,ye,ne,Ee){var Je=(ne-K)/2,Ct=Math.abs(D-(K+Je));if(Ct>Je+B)return!1;var ur=(Ee-ye)/2,Sr=Math.abs(J-(ye+ur));if(Sr>ur+B)return!1;if(Ct<=Je||Sr<=ur)return!0;var nr=Ct-Je,Qe=Sr-ur;return nr*nr+Qe*Qe<=B*B};function Xi(Y,D,J,B,K){var ye=i.create();return D?(i.scale(ye,ye,[1/K,1/K,1]),J||i.rotateZ(ye,ye,B.angle)):i.multiply(ye,B.labelPlaneMatrix,Y),ye}function aa(Y,D,J,B,K){if(D){var ye=i.clone(Y);return i.scale(ye,ye,[K,K,1]),J||i.rotateZ(ye,ye,-B.angle),ye}else return B.glCoordMatrix}function Mn(Y,D){var J=[Y.x,Y.y,0,1];kn(J,J,D);var B=J[3];return{point:new i.Point(J[0]/B,J[1]/B),signedDistanceFromCamera:B}}function Un(Y,D){return .5+.5*(Y/D)}function Ga(Y,D){var J=Y[0]/Y[3],B=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&B>=-D[1]&&B<=D[1];return K}function ma(Y,D,J,B,K,ye,ne,Ee){var Je=B?Y.textSizeData:Y.iconSizeData,Ct=i.evaluateSizeForZoom(Je,J.transform.zoom),ur=[256/J.width*2+1,256/J.height*2+1],Sr=B?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;Sr.clear();for(var nr=Y.lineVertexArray,Qe=B?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,pt=J.transform.width/J.transform.height,Tt=!1,Xt=0;Xtye)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function so(Y,D,J,B,K,ye,ne,Ee,Je,Ct,ur,Sr,nr,Qe){var pt=D/24,Tt=Y.lineOffsetX*pt,Xt=Y.lineOffsetY*pt,ir;if(Y.numGlyphs>1){var Kt=Y.glyphStartIndex+Y.numGlyphs,ar=Y.lineStartIndex,Jt=Y.lineStartIndex+Y.lineLength,Ft=oa(pt,Ee,Tt,Xt,J,ur,Sr,Y,Je,ye,nr);if(!Ft)return{notEnoughRoom:!0};var Zt=Mn(Ft.first.point,ne).point,Pt=Mn(Ft.last.point,ne).point;if(B&&!J){var Ar=ka(Y.writingMode,Zt,Pt,Qe);if(Ar)return Ar}ir=[Ft.first];for(var Br=Y.glyphStartIndex+1;Br0?yn.point:Kr(Sr,Yi,ci,1,K),ca=ka(Y.writingMode,ci,Xa,Qe);if(ca)return ca}var Tn=Ia(pt*Ee.getoffsetX(Y.glyphStartIndex),Tt,Xt,J,ur,Sr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Je,ye,nr);if(!Tn)return{notEnoughRoom:!0};ir=[Tn]}for(var Pn=0,Nn=ir;Pn0?1:-1,pt=0;B&&(Qe*=-1,pt=Math.PI),Qe<0&&(pt+=Math.PI);for(var Tt=Qe>0?Ee+ne:Ee+ne+1,Xt=K,ir=K,Kt=0,ar=0,Jt=Math.abs(nr),Ft=[];Kt+ar<=Jt;){if(Tt+=Qe,Tt=Je)return null;if(ir=Xt,Ft.push(Xt),Xt=Sr[Tt],Xt===void 0){var Zt=new i.Point(Ct.getx(Tt),Ct.gety(Tt)),Pt=Mn(Zt,ur);if(Pt.signedDistanceFromCamera>0)Xt=Sr[Tt]=Pt.point;else{var Ar=Tt-Qe,Br=Kt===0?ye:new i.Point(Ct.getx(Ar),Ct.gety(Ar));Xt=Kr(Br,Zt,ir,Jt-Kt+1,ur)}}Kt+=ar,ar=ir.dist(Xt)}var ci=(Jt-Kt)/ar,Cn=Xt.sub(ir),Yi=Cn.mult(ci)._add(ir);Yi._add(Cn._unit()._perp()._mult(J*Qe));var yn=pt+Math.atan2(Xt.y-ir.y,Xt.x-ir.x);return Ft.push(Yi),{point:Yi,angle:yn,path:Ft}}var Yo=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function fa(Y,D){for(var J=0;J=1;xa--)Nn.push(Tn.path[xa]);for(var Zo=1;Zo0){for(var vu=Nn[0].clone(),zu=Nn[0].clone(),Ju=1;Ju=yn.x&&zu.x<=Xa.x&&vu.y>=yn.y&&zu.y<=Xa.y?Fu=[Nn]:zu.xXa.x||zu.yXa.y?Fu=[]:Fu=i.clipLine([Nn],yn.x,yn.y,Xa.x,Xa.y)}for(var Vf=0,wd=Fu;Vf=this.screenRightBoundary||Kthis.screenBottomBoundary},ys.prototype.isInsideGrid=function(D,J,B,K){return B>=0&&D=0&&J0){var Jt;return this.prevPlacement&&this.prevPlacement.variableOffsets[nr.crossTileID]&&this.prevPlacement.placements[nr.crossTileID]&&this.prevPlacement.placements[nr.crossTileID].text&&(Jt=this.prevPlacement.variableOffsets[nr.crossTileID].anchor),this.variableOffsets[nr.crossTileID]={textOffset:Xt,width:B,height:K,anchor:D,textBoxScale:ye,prevAnchor:Jt},this.markUsedJustification(Qe,D,nr,pt),Qe.allowVerticalPlacement&&(this.markUsedOrientation(Qe,pt,nr),this.placedOrientations[nr.crossTileID]=pt),{shift:ir,placedGlyphBoxes:Kt}}},Po.prototype.placeLayerBucketPart=function(D,J,B){var K=this,ye=D.parameters,ne=ye.bucket,Ee=ye.layout,Je=ye.posMatrix,Ct=ye.textLabelPlaneMatrix,ur=ye.labelToScreenMatrix,Sr=ye.textPixelRatio,nr=ye.holdingForFade,Qe=ye.collisionBoxArray,pt=ye.partiallyEvaluatedTextSize,Tt=ye.collisionGroup,Xt=Ee.get("text-optional"),ir=Ee.get("icon-optional"),Kt=Ee.get("text-allow-overlap"),ar=Ee.get("icon-allow-overlap"),Jt=Ee.get("text-rotation-alignment")==="map",Ft=Ee.get("text-pitch-alignment")==="map",Zt=Ee.get("icon-text-fit")!=="none",Pt=Ee.get("symbol-z-order")==="viewport-y",Ar=Kt&&(ar||!ne.hasIconData()||ir),Br=ar&&(Kt||!ne.hasTextData()||Xt);!ne.collisionArrays&&Qe&&ne.deserializeCollisionBoxes(Qe);var ci=function(Tn,Pn){if(!J[Tn.crossTileID]){if(nr){K.placements[Tn.crossTileID]=new fo(!1,!1,!1);return}var Nn=!1,xa=!1,Zo=!0,iu=null,yu={box:null,offscreen:null},Fu={box:null,offscreen:null},vu=null,zu=null,Ju=null,Vf=0,wd=0,Ad=0;Pn.textFeatureIndex?Vf=Pn.textFeatureIndex:Tn.useRuntimeCollisionCircles&&(Vf=Tn.featureIndex),Pn.verticalTextFeatureIndex&&(wd=Pn.verticalTextFeatureIndex);var Td=Pn.textBox;if(Td){var Kp=function(wc){var jf=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!wc&&K.prevPlacement){var Ed=K.prevPlacement.placedOrientations[Tn.crossTileID];Ed&&(K.placedOrientations[Tn.crossTileID]=Ed,jf=Ed,K.markUsedOrientation(ne,jf,Tn))}return jf},hm=function(wc,jf){if(ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&Pn.verticalTextBox)for(var Ed=0,vg=ne.writingModes;Ed0&&(Hd=Hd.filter(function(wc){return wc!==Md.anchor}),Hd.unshift(Md.anchor))}var Pp=function(wc,jf,Ed){for(var vg=wc.x2-wc.x1,L1=wc.y2-wc.y1,ic=Tn.textBoxScale,Kx=Zt&&!ar?jf:null,ly={box:[],offscreen:!1},qw=Kt?Hd.length*2:Hd.length,Ip=0;Ip=Hd.length,Jx=K.attemptAnchorPlacement(uy,wc,vg,L1,ic,Jt,Ft,Sr,Je,Tt,Nw,Tn,ne,Ed,Kx);if(Jx&&(ly=Jx.placedGlyphBoxes,ly&&ly.box&&ly.box.length)){Nn=!0,iu=Jx.shift;break}}return ly},Jp=function(){return Pp(Td,Pn.iconBox,i.WritingMode.horizontal)},zp=function(){var wc=Pn.verticalTextBox,jf=yu&&yu.box&&yu.box.length;return ne.allowVerticalPlacement&&!jf&&Tn.numVerticalGlyphVertices>0&&wc?Pp(wc,Pn.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};hm(Jp,zp),yu&&(Nn=yu.box,Zo=yu.offscreen);var hg=Kp(yu&&yu.box);if(!Nn&&K.prevPlacement){var dm=K.prevPlacement.variableOffsets[Tn.crossTileID];dm&&(K.variableOffsets[Tn.crossTileID]=dm,K.markUsedJustification(ne,dm.anchor,Tn,hg))}}else{var mv=function(wc,jf){var Ed=K.collisionIndex.placeCollisionBox(wc,Kt,Sr,Je,Tt.predicate);return Ed&&Ed.box&&Ed.box.length&&(K.markUsedOrientation(ne,jf,Tn),K.placedOrientations[Tn.crossTileID]=jf),Ed},Sd=function(){return mv(Td,i.WritingMode.horizontal)},yv=function(){var wc=Pn.verticalTextBox;return ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&wc?mv(wc,i.WritingMode.vertical):{box:null,offscreen:null}};hm(Sd,yv),Kp(yu&&yu.box&&yu.box.length)}}if(vu=yu,Nn=vu&&vu.box&&vu.box.length>0,Zo=vu&&vu.offscreen,Tn.useRuntimeCollisionCircles){var vh=ne.text.placedSymbolArray.get(Tn.centerJustifiedTextSymbolIndex),pm=i.evaluateSizeForFeature(ne.textSizeData,pt,vh),dg=Ee.get("text-padding"),Jh=Tn.collisionCircleDiameter;zu=K.collisionIndex.placeCollisionCircles(Kt,vh,ne.lineVertexArray,ne.glyphOffsetArray,pm,Je,Ct,ur,B,Ft,Tt.predicate,Jh,dg),Nn=Kt||zu.circles.length>0&&!zu.collisionDetected,Zo=Zo&&zu.offscreen}if(Pn.iconFeatureIndex&&(Ad=Pn.iconFeatureIndex),Pn.iconBox){var ay=function(wc){var jf=Zt&&iu?Co(wc,iu.x,iu.y,Jt,Ft,K.transform.angle):wc;return K.collisionIndex.placeCollisionBox(jf,ar,Sr,Je,Tt.predicate)};Fu&&Fu.box&&Fu.box.length&&Pn.verticalIconBox?(Ju=ay(Pn.verticalIconBox),xa=Ju.box.length>0):(Ju=ay(Pn.iconBox),xa=Ju.box.length>0),Zo=Zo&&Ju.offscreen}var k1=Xt||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,C1=ir||Tn.numIconVertices===0;if(!k1&&!C1?xa=Nn=xa&&Nn:C1?k1||(xa=xa&&Nn):Nn=xa&&Nn,Nn&&vu&&vu.box&&(Fu&&Fu.box&&wd?K.collisionIndex.insertCollisionBox(vu.box,Ee.get("text-ignore-placement"),ne.bucketInstanceId,wd,Tt.ID):K.collisionIndex.insertCollisionBox(vu.box,Ee.get("text-ignore-placement"),ne.bucketInstanceId,Vf,Tt.ID)),xa&&Ju&&K.collisionIndex.insertCollisionBox(Ju.box,Ee.get("icon-ignore-placement"),ne.bucketInstanceId,Ad,Tt.ID),zu&&(Nn&&K.collisionIndex.insertCollisionCircles(zu.circles,Ee.get("text-ignore-placement"),ne.bucketInstanceId,Vf,Tt.ID),B)){var pg=ne.bucketInstanceId,oy=K.collisionCircleArrays[pg];oy===void 0&&(oy=K.collisionCircleArrays[pg]=new mn);for(var sy=0;sy=0;--Yi){var yn=Cn[Yi];ci(ne.symbolInstances.get(yn),ne.collisionArrays[yn])}else for(var Xa=D.symbolInstanceStart;Xa=0&&(ne>=0&&ur!==ne?D.text.placedSymbolArray.get(ur).crossTileID=0:D.text.placedSymbolArray.get(ur).crossTileID=B.crossTileID)}},Po.prototype.markUsedOrientation=function(D,J,B){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,ye=J===i.WritingMode.vertical?J:0,ne=[B.leftJustifiedTextSymbolIndex,B.centerJustifiedTextSymbolIndex,B.rightJustifiedTextSymbolIndex],Ee=0,Je=ne;Ee0||Ft>0,ci=ar.numIconVertices>0,Cn=K.placedOrientations[ar.crossTileID],Yi=Cn===i.WritingMode.vertical,yn=Cn===i.WritingMode.horizontal||Cn===i.WritingMode.horizontalOnly;if(Br){var Xa=Qo(Ar.text),ca=Yi?Hi:Xa;pt(D.text,Jt,ca);var Tn=yn?Hi:Xa;pt(D.text,Ft,Tn);var Pn=Ar.text.isHidden();[ar.rightJustifiedTextSymbolIndex,ar.centerJustifiedTextSymbolIndex,ar.leftJustifiedTextSymbolIndex].forEach(function(Ad){Ad>=0&&(D.text.placedSymbolArray.get(Ad).hidden=Pn||Yi?1:0)}),ar.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(ar.verticalPlacedTextSymbolIndex).hidden=Pn||yn?1:0);var Nn=K.variableOffsets[ar.crossTileID];Nn&&K.markUsedJustification(D,Nn.anchor,ar,Cn);var xa=K.placedOrientations[ar.crossTileID];xa&&(K.markUsedJustification(D,"left",ar,xa),K.markUsedOrientation(D,xa,ar))}if(ci){var Zo=Qo(Ar.icon),iu=!(nr&&ar.verticalPlacedIconSymbolIndex&&Yi);if(ar.placedIconSymbolIndex>=0){var yu=iu?Zo:Hi;pt(D.icon,ar.numIconVertices,yu),D.icon.placedSymbolArray.get(ar.placedIconSymbolIndex).hidden=Ar.icon.isHidden()}if(ar.verticalPlacedIconSymbolIndex>=0){var Fu=iu?Hi:Zo;pt(D.icon,ar.numVerticalIconVertices,Fu),D.icon.placedSymbolArray.get(ar.verticalPlacedIconSymbolIndex).hidden=Ar.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var vu=D.collisionArrays[Kt];if(vu){var zu=new i.Point(0,0);if(vu.textBox||vu.verticalTextBox){var Ju=!0;if(Ct){var Vf=K.variableOffsets[Zt];Vf?(zu=ws(Vf.anchor,Vf.width,Vf.height,Vf.textOffset,Vf.textBoxScale),ur&&zu._rotate(Sr?K.transform.angle:-K.transform.angle)):Ju=!1}vu.textBox&&Wi(D.textCollisionBox.collisionVertexArray,Ar.text.placed,!Ju||Yi,zu.x,zu.y),vu.verticalTextBox&&Wi(D.textCollisionBox.collisionVertexArray,Ar.text.placed,!Ju||yn,zu.x,zu.y)}var wd=!!(!yn&&vu.verticalIconBox);vu.iconBox&&Wi(D.iconCollisionBox.collisionVertexArray,Ar.icon.placed,wd,nr?zu.x:0,nr?zu.y:0),vu.verticalIconBox&&Wi(D.iconCollisionBox.collisionVertexArray,Ar.icon.placed,!wd,nr?zu.x:0,nr?zu.y:0)}}},Xt=0;XtD},Po.prototype.setStale=function(){this.stale=!0};function Wi(Y,D,J,B,K){Y.emplaceBack(D?1:0,J?1:0,B||0,K||0),Y.emplaceBack(D?1:0,J?1:0,B||0,K||0),Y.emplaceBack(D?1:0,J?1:0,B||0,K||0),Y.emplaceBack(D?1:0,J?1:0,B||0,K||0)}var gn=Math.pow(2,25),Ps=Math.pow(2,24),Ha=Math.pow(2,17),Sn=Math.pow(2,16),ao=Math.pow(2,9),Oa=Math.pow(2,8),Ko=Math.pow(2,1);function Qo(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var D=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*gn+D*Ps+J*Ha+D*Sn+J*ao+D*Oa+J*Ko+D}var Hi=0,Sa=function(D){this._sortAcrossTiles=D.layout.get("symbol-z-order")!=="viewport-y"&&D.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Sa.prototype.continuePlacement=function(D,J,B,K,ye){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Ee=D[this._currentPlacementIndex],Je=J[Ee],Ct=this.placement.collisionIndex.transform.zoom;if(Je.type==="symbol"&&(!Je.minzoom||Je.minzoom<=Ct)&&(!Je.maxzoom||Je.maxzoom>Ct)){this._inProgressLayer||(this._inProgressLayer=new Sa(Je));var ur=this._inProgressLayer.continuePlacement(B[Je.source],this.placement,this._showCollisionBoxes,Je,ne);if(ur)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Qa.prototype.commit=function(D){return this.placement.commit(D),this.placement};var vn=512/i.EXTENT/2,da=function(D,J,B){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=B;for(var K=0;KD.overscaledZ)for(var Ct in Je){var ur=Je[Ct];ur.tileID.isChildOf(D)&&ur.findMatches(J.symbolInstances,D,ne)}else{var Sr=D.scaledTo(Number(Ee)),nr=Je[Sr.key];nr&&nr.findMatches(J.symbolInstances,D,ne)}}for(var Qe=0;Qe0)throw new Error("Unimplemented: "+ne.map(function(Ee){return Ee.command}).join(", ")+".");return ye.forEach(function(Ee){Ee.command!=="setTransition"&&K[Ee.command].apply(K,Ee.args)}),this.stylesheet=B,!0},D.prototype.addImage=function(B,K){if(this.getImage(B))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(B,K),this._afterImageUpdated(B)},D.prototype.updateImage=function(B,K){this.imageManager.updateImage(B,K)},D.prototype.getImage=function(B){return this.imageManager.getImage(B)},D.prototype.removeImage=function(B){if(!this.getImage(B))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(B),this._afterImageUpdated(B)},D.prototype._afterImageUpdated=function(B){this._availableImages=this.imageManager.listImages(),this._changedImages[B]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},D.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},D.prototype.addSource=function(B,K,ye){var ne=this;if(ye===void 0&&(ye={}),this._checkLoaded(),this.sourceCaches[B]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var Ee=["vector","raster","geojson","video","image"],Je=Ee.indexOf(K.type)>=0;if(!(Je&&this._validate(i.validateStyle.source,"sources."+B,K,null,ye))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var Ct=this.sourceCaches[B]=new Nr(B,K,this.dispatcher);Ct.style=this,Ct.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:Ct.serialize(),sourceId:B}}),Ct.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(B){if(this._checkLoaded(),this.sourceCaches[B]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===B)return this.fire(new i.ErrorEvent(new Error('Source "'+B+'" cannot be removed while layer "'+K+'" is using it.')));var ye=this.sourceCaches[B];delete this.sourceCaches[B],delete this._updatedSources[B],ye.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:B})),ye.setEventedParent(null),ye.clearTiles(),ye.onRemove&&ye.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(B,K){this._checkLoaded();var ye=this.sourceCaches[B].getSource();ye.setData(K),this._changed=!0},D.prototype.getSource=function(B){return this.sourceCaches[B]&&this.sourceCaches[B].getSource()},D.prototype.addLayer=function(B,K,ye){ye===void 0&&(ye={}),this._checkLoaded();var ne=B.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var Ee;if(B.type==="custom"){if(ps(this,i.validateCustomStyleLayer(B)))return;Ee=i.createStyleLayer(B)}else{if(typeof B.source=="object"&&(this.addSource(ne,B.source),B=i.clone$1(B),B=i.extend(B,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,B,{arrayIndex:-1},ye))return;Ee=i.createStyleLayer(B),this._validateLayer(Ee),Ee.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[Ee.id]=Ee.serialize()}var Je=K?this._order.indexOf(K):this._order.length;if(K&&Je===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Je,0,ne),this._layerOrderChanged=!0,this._layers[ne]=Ee,this._removedLayers[ne]&&Ee.source&&Ee.type!=="custom"){var Ct=this._removedLayers[ne];delete this._removedLayers[ne],Ct.type!==Ee.type?this._updatedSources[Ee.source]="clear":(this._updatedSources[Ee.source]="reload",this.sourceCaches[Ee.source].pause())}this._updateLayer(Ee),Ee.onAdd&&Ee.onAdd(this.map)},D.prototype.moveLayer=function(B,K){this._checkLoaded(),this._changed=!0;var ye=this._layers[B];if(!ye){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be moved.")));return}if(B!==K){var ne=this._order.indexOf(B);this._order.splice(ne,1);var Ee=K?this._order.indexOf(K):this._order.length;if(K&&Ee===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(Ee,0,B),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(B){this._checkLoaded();var K=this._layers[B];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var ye=this._order.indexOf(B);this._order.splice(ye,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[B]=K,delete this._layers[B],delete this._serializedLayers[B],delete this._updatedLayers[B],delete this._updatedPaintProps[B],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(B){return this._layers[B]},D.prototype.hasLayer=function(B){return B in this._layers},D.prototype.setLayerZoomRange=function(B,K,ye){this._checkLoaded();var ne=this.getLayer(B);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===ye||(K!=null&&(ne.minzoom=K),ye!=null&&(ne.maxzoom=ye),this._updateLayer(ne))},D.prototype.setFilter=function(B,K,ye){ye===void 0&&(ye={}),this._checkLoaded();var ne=this.getLayer(B);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,ye)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},D.prototype.getFilter=function(B){return i.clone$1(this.getLayer(B).filter)},D.prototype.setLayoutProperty=function(B,K,ye,ne){ne===void 0&&(ne={}),this._checkLoaded();var Ee=this.getLayer(B);if(!Ee){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(Ee.getLayoutProperty(K),ye)||(Ee.setLayoutProperty(K,ye,ne),this._updateLayer(Ee))},D.prototype.getLayoutProperty=function(B,K){var ye=this.getLayer(B);if(!ye){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style.")));return}return ye.getLayoutProperty(K)},D.prototype.setPaintProperty=function(B,K,ye,ne){ne===void 0&&(ne={}),this._checkLoaded();var Ee=this.getLayer(B);if(!Ee){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(Ee.getPaintProperty(K),ye)){var Je=Ee.setPaintProperty(K,ye,ne);Je&&this._updateLayer(Ee),this._changed=!0,this._updatedPaintProps[B]=!0}},D.prototype.getPaintProperty=function(B,K){return this.getLayer(B).getPaintProperty(K)},D.prototype.setFeatureState=function(B,K){this._checkLoaded();var ye=B.source,ne=B.sourceLayer,Ee=this.sourceCaches[ye];if(Ee===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+ye+"' does not exist in the map's style.")));return}var Je=Ee.getSource().type;if(Je==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Je==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}B.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),Ee.setFeatureState(ne,B.id,K)},D.prototype.removeFeatureState=function(B,K){this._checkLoaded();var ye=B.source,ne=this.sourceCaches[ye];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+ye+"' does not exist in the map's style.")));return}var Ee=ne.getSource().type,Je=Ee==="vector"?B.sourceLayer:void 0;if(Ee==="vector"&&!Je){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof B.id!="string"&&typeof B.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Je,B.id,K)},D.prototype.getFeatureState=function(B){this._checkLoaded();var K=B.source,ye=B.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var Ee=ne.getSource().type;if(Ee==="vector"&&!ye){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return B.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(ye,B.id)},D.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},D.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(B){return B.serialize()}),layers:this._serializeLayers(this._order)},function(B){return B!==void 0})},D.prototype._updateLayer=function(B){this._updatedLayers[B.id]=!0,B.source&&!this._updatedSources[B.source]&&this.sourceCaches[B.source].getSource().type!=="raster"&&(this._updatedSources[B.source]="reload",this.sourceCaches[B.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(B){for(var K=this,ye=function(yn){return K._layers[yn].type==="fill-extrusion"},ne={},Ee=[],Je=this._order.length-1;Je>=0;Je--){var Ct=this._order[Je];if(ye(Ct)){ne[Ct]=Je;for(var ur=0,Sr=B;ur=0;Kt--){var ar=this._order[Kt];if(ye(ar))for(var Jt=Ee.length-1;Jt>=0;Jt--){var Ft=Ee[Jt].feature;if(ne[Ft.layer.id] .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var Jk=we((O2r,zGe)=>{"use strict";var CGe=ei(),LGe=jl().defaultLine,jjt=zc().attributes,Xjt=gc(),Zjt=Zc().textposition,Yjt=Sc().overrideAll,Kjt=Lf().templatedArray,bJ=g1(),PGe=Xjt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});PGe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Jjt=zGe.exports=Yjt({_arrayAttrRegexps:[CGe.counterRegex("mapbox",".layers",!0)],domain:jjt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:bJ.styleValuesMapbox.concat(bJ.styleValuesNonMapbox),dflt:bJ.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Kjt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:LGe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:LGe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:PGe,textposition:CGe.extendFlat({},Zjt,{arrayOk:!1})}})},"plot","from-root");Jjt.uirevision={valType:"any",editType:"none"}});var f9=we((B2r,FGe)=>{"use strict";var{hovertemplateAttrs:$jt,texttemplateAttrs:Qjt,templatefallbackAttrs:IGe}=Of(),eXt=Pm(),$k=rw(),LS=Zc(),RGe=Jk(),tXt=Vf(),rXt=nc(),vw=Su().extendFlat,iXt=Sc().overrideAll,nXt=Jk(),DGe=$k.line,PS=$k.marker;FGe.exports=iXt({lon:$k.lon,lat:$k.lat,cluster:{enabled:{valType:"boolean"},maxzoom:vw({},nXt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:vw({},PS.opacity,{dflt:1})},mode:vw({},LS.mode,{dflt:"markers"}),text:vw({},LS.text,{}),texttemplate:Qjt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:IGe({editType:"plot"}),hovertext:vw({},LS.hovertext,{}),line:{color:DGe.color,width:DGe.width},connectgaps:LS.connectgaps,marker:vw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:PS.opacity,size:PS.size,sizeref:PS.sizeref,sizemin:PS.sizemin,sizemode:PS.sizemode},rXt("marker")),fill:$k.fill,fillcolor:eXt(),textfont:RGe.layers.symbol.textfont,textposition:RGe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:LS.selected.marker},unselected:{marker:LS.unselected.marker},hoverinfo:vw({},tXt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:$jt(),hovertemplatefallback:IGe()},"calc","nested")});var wJ=we((q2r,OGe)=>{"use strict";var aXt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];OGe.exports={isSupportedFont:function(e){return aXt.indexOf(e)!==-1}}});var NGe=we((N2r,qGe)=>{"use strict";var Qk=ei(),AJ=lc(),oXt=$v(),sXt=R0(),lXt=D0(),uXt=Dm(),BGe=f9(),fXt=wJ().isSupportedFont;qGe.exports=function(t,r,n,i){function a(v,C){return Qk.coerce(t,r,BGe,v,C)}function o(v,C){return Qk.coerce2(t,r,BGe,v,C)}var s=cXt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),AJ.hasMarkers(r)){oXt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Qk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Qk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}AJ.hasLines(r)&&(sXt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,y=a("cluster.enabled",p);if(y||AJ.hasText(r)){var b=i.font.family;lXt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:fXt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&uXt(t,r,n,a),Qk.coerceSelectionMarkerOpacity(r,a)};function cXt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var TJ=we((U2r,VGe)=>{"use strict";var UGe=wu();VGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=UGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=UGe.tickText(o,o.c2l(s[1]),!0).text,i}});var SJ=we((V2r,HGe)=>{"use strict";var GGe=ei();HGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=GGe.isArrayOrTypedArray(r)?GGe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var KGe=we((G2r,YGe)=>{"use strict";var XGe=ku(),lp=ei(),hXt=rf().BADNUM,h9=hx(),WGe=_c(),dXt=Mu(),pXt=U3(),d9=lc(),vXt=wJ().isSupportedFont,mXt=SJ(),yXt=iv().appendArrayPointValue,gXt=Wf().NEWLINES,_Xt=Wf().BR_TAG_ALL;YGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=d9.hasLines(n),s=d9.hasMarkers(n),u=d9.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=c9("fill"),d=c9("line"),p=c9("circle"),y=c9("symbol"),b={fill:h,line:d,circle:p,symbol:y};if(!i)return b;var v;if((a||o)&&(v=h9.calcTraceToLineCoords(r)),a&&(h.geojson=h9.makePolygon(v),h.layout.visibility="visible",lp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=h9.makeLine(v),d.layout.visibility="visible",lp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var C=xXt(r);p.geojson=C.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":EJ(n.cluster.color,n.cluster.step),"circle-radius":EJ(n.cluster.size,n.cluster.step),"circle-opacity":EJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":jGe(n),"text-size":12}}),lp.extendFlat(p.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(y.geojson=bXt(r,t),lp.extendFlat(y.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(lp.extendFlat(y.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&lp.extendFlat(y.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),y.layout["icon-allow-overlap"]=n.marker.allowoverlap,lp.extendFlat(y.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,A=mXt(n.textposition,E);lp.extendFlat(y.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":jGe(n)}),lp.extendFlat(y.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function c9(e){return{type:e,geojson:h9.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function xXt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=lp.isArrayOrTypedArray(r.color),a=lp.isArrayOrTypedArray(r.size),o=lp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(WGe.hasColorscale(t,"marker")?f=WGe.makeColorScaleFuncFromTrace(r):f=lp.identity);var c;a&&(c=pXt(t));var h;o&&(h=function(E){var A=XGe(E)?+lp.constrain(E,0,1):0;return u(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),vXt(s)||(s=r);var u=s.split(", ");return u}});var eHe=we((H2r,QGe)=>{"use strict";var wXt=ei(),JGe=KGe(),zS=g1().traceLayerPrefix,nm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function $Ge(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:zS+t+"-fill",line:zS+t+"-line",circle:zS+t+"-circle",symbol:zS+t+"-symbol",cluster:zS+t+"-cluster",clusterCount:zS+t+"-cluster-count"},this.below=null}var eC=$Ge.prototype;eC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&wXt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};eC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};eC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=A[L];i.removeLayer(l.layerIds[x])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var A=nm.nonCluster,L=0;L=0;L--){var x=A[L];i.removeLayer(l.layerIds[x]),E||i.removeSource(l.sourceIds[x])}}function p(E){u?c(E):d(E)}function y(E){s?f(E):h(E)}function b(){for(var E=s?nm.cluster:nm.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};QGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new $Ge(t,n.uid,i,a),s=JGe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var AXt=Vc(),kJ=ei(),TXt=xA(),SXt=kJ.fillText,MXt=rf().BADNUM,EXt=g1().traceLayerPrefix;function kXt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=EXt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function y(S){var m=S.lonlat;if(m[0]===MXt||f&&u.indexOf(S.i+1)===-1)return 1/0;var P=kJ.modHalf(m[0],360),M=m[1],O=s.project([P,M]),F=O.x-a.c2p([p,M]),U=O.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(AXt.getClosest(n,y,e),e.index!==!1){var b=n[e.index],v=b.lonlat,C=[kJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var x={};x[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,x);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=TXt(i,b),e.extraText=tHe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function tHe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&SXt(t,e,l),l.join("
")}rHe.exports={hoverPoints:kXt,getExtraText:tHe}});var nHe=we((j2r,iHe)=>{"use strict";iHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var oHe=we((X2r,aHe)=>{"use strict";var CXt=ei(),LXt=lc(),PXt=rf().BADNUM;aHe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!LXt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof CJ=="object"&&typeof LJ!="undefined"?LJ.exports=t():(e=e||self,e.mapboxgl=t())})(CJ,(function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(g,_){return _={exports:{}},g(_,_.exports),_.exports}var o="1.13.4",s=u;function u(g,_,z,V){this.cx=3*g,this.bx=3*(z-g)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*_,this.by=3*(V-_)-this.cy,this.ay=1-this.cy-this.by,this.p1x=g,this.p1y=V,this.p2x=z,this.p2y=V}u.prototype.sampleCurveX=function(g){return((this.ax*g+this.bx)*g+this.cx)*g},u.prototype.sampleCurveY=function(g){return((this.ay*g+this.by)*g+this.cy)*g},u.prototype.sampleCurveDerivativeX=function(g){return(3*this.ax*g+2*this.bx)*g+this.cx},u.prototype.solveCurveX=function(g,_){typeof _=="undefined"&&(_=1e-6);var z,V,$,se,ve;for($=g,ve=0;ve<8;ve++){if(se=this.sampleCurveX($)-g,Math.abs(se)<_)return $;var Ze=this.sampleCurveDerivativeX($);if(Math.abs(Ze)<1e-6)break;$=$-se/Ze}if(z=0,V=1,$=g,$V)return V;for(;zse?z=$:V=$,$=(V-z)*.5+z}return $},u.prototype.solve=function(g,_){return this.sampleCurveY(this.solveCurveX(g,_))};var l=f;function f(g,_){this.x=g,this.y=_}f.prototype={clone:function(){return new f(this.x,this.y)},add:function(g){return this.clone()._add(g)},sub:function(g){return this.clone()._sub(g)},multByPoint:function(g){return this.clone()._multByPoint(g)},divByPoint:function(g){return this.clone()._divByPoint(g)},mult:function(g){return this.clone()._mult(g)},div:function(g){return this.clone()._div(g)},rotate:function(g){return this.clone()._rotate(g)},rotateAround:function(g,_){return this.clone()._rotateAround(g,_)},matMult:function(g){return this.clone()._matMult(g)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(g){return this.x===g.x&&this.y===g.y},dist:function(g){return Math.sqrt(this.distSqr(g))},distSqr:function(g){var _=g.x-this.x,z=g.y-this.y;return _*_+z*z},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(g){return Math.atan2(this.y-g.y,this.x-g.x)},angleWith:function(g){return this.angleWithSep(g.x,g.y)},angleWithSep:function(g,_){return Math.atan2(this.x*_-this.y*g,this.x*g+this.y*_)},_matMult:function(g){var _=g[0]*this.x+g[1]*this.y,z=g[2]*this.x+g[3]*this.y;return this.x=_,this.y=z,this},_add:function(g){return this.x+=g.x,this.y+=g.y,this},_sub:function(g){return this.x-=g.x,this.y-=g.y,this},_mult:function(g){return this.x*=g,this.y*=g,this},_div:function(g){return this.x/=g,this.y/=g,this},_multByPoint:function(g){return this.x*=g.x,this.y*=g.y,this},_divByPoint:function(g){return this.x/=g.x,this.y/=g.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var g=this.y;return this.y=this.x,this.x=-g,this},_rotate:function(g){var _=Math.cos(g),z=Math.sin(g),V=_*this.x-z*this.y,$=z*this.x+_*this.y;return this.x=V,this.y=$,this},_rotateAround:function(g,_){var z=Math.cos(g),V=Math.sin(g),$=_.x+z*(this.x-_.x)-V*(this.y-_.y),se=_.y+V*(this.x-_.x)+z*(this.y-_.y);return this.x=$,this.y=se,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(g){return g instanceof f?g:Array.isArray(g)?new f(g[0],g[1]):g};var c=typeof self!="undefined"?self:{};function h(g,_){if(Array.isArray(g)){if(!Array.isArray(_)||g.length!==_.length)return!1;for(var z=0;z=1)return 1;var _=g*g,z=_*g;return 4*(g<.5?z:3*(g-_)+z-.75)}function y(g,_,z,V){var $=new s(g,_,z,V);return function(se){return $.solve(se)}}var b=y(.25,.1,.25,1);function v(g,_,z){return Math.min(z,Math.max(_,g))}function C(g,_,z){var V=z-_,$=((g-_)%V+V)%V+_;return $===_?z:$}function E(g,_,z){if(!g.length)return z(null,[]);var V=g.length,$=new Array(g.length),se=null;g.forEach(function(ve,Ze){_(ve,function(At,It){At&&(se=At),$[Ze]=It,--V===0&&z(se,$)})})}function A(g){var _=[];for(var z in g)_.push(g[z]);return _}function L(g,_){var z=[];for(var V in g)V in _||z.push(V);return z}function x(g){for(var _=[],z=arguments.length-1;z-- >0;)_[z]=arguments[z+1];for(var V=0,$=_;V<$.length;V+=1){var se=$[V];for(var ve in se)g[ve]=se[ve]}return g}function k(g,_){for(var z={},V=0;V<_.length;V++){var $=_[V];$ in g&&(z[$]=g[$])}return z}var S=1;function m(){return S++}function P(){function g(_){return _?(_^Math.random()*16>>_/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,g)}return g()}function M(g){return g<=1?1:Math.pow(2,Math.ceil(Math.log(g)/Math.LN2))}function O(g){return g?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(g):!1}function F(g,_){g.forEach(function(z){_[z]&&(_[z]=_[z].bind(_))})}function U(g,_){return g.indexOf(_,g.length-_.length)!==-1}function G(g,_,z){var V={};for(var $ in g)V[$]=_.call(z||this,g[$],$,g);return V}function j(g,_,z){var V={};for(var $ in g)_.call(z||this,g[$],$,g)&&(V[$]=g[$]);return V}function W(g){return Array.isArray(g)?g.map(W):typeof g=="object"&&g?G(g,W):g}function N(g,_){for(var z=0;z=0)return!0;return!1}var H={};function re(g){H[g]||(typeof console!="undefined"&&console.warn(g),H[g]=!0)}function ae(g,_,z){return(z.y-g.y)*(_.x-g.x)>(_.y-g.y)*(z.x-g.x)}function me(g){for(var _=0,z=0,V=g.length,$=V-1,se=void 0,ve=void 0;z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,z={};if(g.replace(_,function($,se,ve,Ze){var At=ve||Ze;return z[se]=At?At.toLowerCase():!0,""}),z["max-age"]){var V=parseInt(z["max-age"],10);isNaN(V)?delete z["max-age"]:z["max-age"]=V}return z}var te=null;function Se(g){if(te==null){var _=g.navigator?g.navigator.userAgent:null;te=!!g.safari||!!(_&&(/\b(iPad|iPhone|iPod)\b/.test(_)||_.match("Safari")&&!_.match("Chrome")))}return te}function Te(g){try{var _=c[g];return _.setItem("_mapbox_test_",1),_.removeItem("_mapbox_test_"),!0}catch(z){return!1}}function be(g){return c.btoa(encodeURIComponent(g).replace(/%([0-9A-F]{2})/g,function(_,z){return String.fromCharCode(+("0x"+z))}))}function He(g){return decodeURIComponent(c.atob(g).split("").map(function(_){return"%"+("00"+_.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Ie=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now.bind(Date),ge=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame||c.msRequestAnimationFrame,Be=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame||c.msCancelAnimationFrame,ce,je,rt={now:Ie,frame:function(_){var z=ge(_);return{cancel:function(){return Be(z)}}},getImageData:function(_,z){z===void 0&&(z=0);var V=c.document.createElement("canvas"),$=V.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return V.width=_.width,V.height=_.height,$.drawImage(_,0,0,_.width,_.height),$.getImageData(-z,-z,_.width+2*z,_.height+2*z)},resolveURL:function(_){return ce||(ce=c.document.createElement("a")),ce.href=_,ce.href},hardwareConcurrency:c.navigator&&c.navigator.hardwareConcurrency||4,get devicePixelRatio(){return c.devicePixelRatio},get prefersReducedMotion(){return c.matchMedia?(je==null&&(je=c.matchMedia("(prefers-reduced-motion: reduce)")),je.matches):!1}},bt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Ot={supported:!1,testSupport:kt},it,Ke=!1,zt,Mt=!1;c.document&&(zt=c.document.createElement("img"),zt.onload=function(){it&&$e(it),it=null,Mt=!0},zt.onerror=function(){Ke=!0,it=null},zt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function kt(g){Ke||!zt||(Mt?$e(g):it=g)}function $e(g){var _=g.createTexture();g.bindTexture(g.TEXTURE_2D,_);try{if(g.texImage2D(g.TEXTURE_2D,0,g.RGBA,g.RGBA,g.UNSIGNED_BYTE,zt),g.isContextLost())return;Ot.supported=!0}catch(z){}g.deleteTexture(_),Ke=!0}var Re="01";function Me(){for(var g="1",_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",z="",V=0;V<10;V++)z+=_[Math.floor(Math.random()*62)];var $=720*60*1e3,se=[g,Re,z].join(""),ve=Date.now()+$;return{token:se,tokenExpiresAt:ve}}var oe=function(_,z){this._transformRequestFn=_,this._customAccessToken=z,this._createSkuToken()};oe.prototype._createSkuToken=function(){var _=Me();this._skuToken=_.token,this._skuTokenExpiresAt=_.tokenExpiresAt},oe.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},oe.prototype.transformRequest=function(_,z){return this._transformRequestFn?this._transformRequestFn(_,z)||{url:_}:{url:_}},oe.prototype.normalizeStyleURL=function(_,z){if(!Ne(_))return _;var V=tt(_);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},oe.prototype.normalizeGlyphsURL=function(_,z){if(!Ne(_))return _;var V=tt(_);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},oe.prototype.normalizeSourceURL=function(_,z){if(!Ne(_))return _;var V=tt(_);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||z)},oe.prototype.normalizeSpriteURL=function(_,z,V,$){var se=tt(_);return Ne(_)?(se.path="/styles/v1"+se.path+"/sprite"+z+V,this._makeAPIURL(se,this._customAccessToken||$)):(se.path+=""+z+V,Lt(se))},oe.prototype.normalizeTileURL=function(_,z){if(this._isSkuTokenExpired()&&this._createSkuToken(),_&&!Ne(_))return _;var V=tt(_),$=/(\.(png|jpg)\d*)(?=$)/,se=/^.+\/v4\//,ve=rt.devicePixelRatio>=2||z===512?"@2x":"",Ze=Ot.supported?".webp":"$1";V.path=V.path.replace($,""+ve+Ze),V.path=V.path.replace(se,"/"),V.path="/v4"+V.path;var At=this._customAccessToken||Ve(V.params)||bt.ACCESS_TOKEN;return bt.REQUIRE_ACCESS_TOKEN&&At&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,At)},oe.prototype.canonicalizeTileURL=function(_,z){var V="/v4/",$=/\.[\w]+$/,se=tt(_);if(!se.path.match(/(^\/v4\/)/)||!se.path.match($))return _;var ve="mapbox://tiles/";ve+=se.path.replace(V,"");var Ze=se.params;return z&&(Ze=Ze.filter(function(At){return!At.match(/^access_token=/)})),Ze.length&&(ve+="?"+Ze.join("&")),ve},oe.prototype.canonicalizeTileset=function(_,z){for(var V=z?Ne(z):!1,$=[],se=0,ve=_.tiles||[];se=0&&_.params.splice(se,1)}if($.path!=="/"&&(_.path=""+$.path+_.path),!bt.REQUIRE_ACCESS_TOKEN)return Lt(_);if(z=z||bt.ACCESS_TOKEN,!z)throw new Error("An API access token is required to use Mapbox GL. "+V);if(z[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+V);return _.params=_.params.filter(function(ve){return ve.indexOf("access_token")===-1}),_.params.push("access_token="+z),Lt(_)};function Ne(g){return g.indexOf("mapbox:")===0}var vt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function lt(g){return vt.test(g)}function We(g){return g.indexOf("sku=")>0&<(g)}function Ve(g){for(var _=0,z=g;_=1&&c.localStorage.setItem(z,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},yr.prototype.processRequests=function(_){},yr.prototype.postEvent=function(_,z,V,$){var se=this;if(bt.EVENTS_URL){var ve=tt(bt.EVENTS_URL);ve.params.push("access_token="+($||bt.ACCESS_TOKEN||""));var Ze={event:this.type,created:new Date(_).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Re,userId:this.anonId},At=z?x(Ze,z):Ze,It={url:Lt(ve),headers:{"Content-Type":"text/plain"},body:JSON.stringify([At])};this.pendingRequest=Fr(It,function(Wt){se.pendingRequest=null,V(Wt),se.saveEventData(),se.processRequests($)})}},yr.prototype.queueRequest=function(_,z){this.queue.push(_),this.processRequests(z)};var vr=(function(g){function _(){g.call(this,"map.load"),this.success={},this.skuToken=""}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.postMapLoadEvent=function(V,$,se,ve){this.skuToken=se,(bt.EVENTS_URL&&ve||bt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(Ze){return Ne(Ze)||lt(Ze)}))&&this.queueRequest({id:$,timestamp:Date.now()},ve)},_.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var se=this.queue.shift(),ve=se.id,Ze=se.timestamp;ve&&this.success[ve]||(this.anonId||this.fetchEventData(),O(this.anonId)||(this.anonId=P()),this.postEvent(Ze,{skuToken:this.skuToken},function(At){At||ve&&($.success[ve]=!0)},V))}},_})(yr),Vt=(function(g){function _(z){g.call(this,"appUserTurnstile"),this._customAccessToken=z}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.postTurnstileEvent=function(V,$){bt.EVENTS_URL&&bt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(se){return Ne(se)||lt(se)})&&this.queueRequest(Date.now(),$)},_.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var se=or(bt.ACCESS_TOKEN),ve=se?se.u:bt.ACCESS_TOKEN,Ze=ve!==this.eventData.tokenU;O(this.anonId)||(this.anonId=P(),Ze=!0);var At=this.queue.shift();if(this.eventData.lastSuccess){var It=new Date(this.eventData.lastSuccess),Wt=new Date(At),_r=(At-this.eventData.lastSuccess)/(1440*60*1e3);Ze=Ze||_r>=1||_r<-1||It.getDate()!==Wt.getDate()}else Ze=!0;if(!Ze)return this.processRequests();this.postEvent(At,{"enabled.telemetry":!1},function(Or){Or||($.eventData.lastSuccess=At,$.eventData.tokenU=ve)},V)}},_})(yr),Pe=new Vt,xe=Pe.postTurnstileEvent.bind(Pe),Oe=new vr,ze=Oe.postMapLoadEvent.bind(Oe),De="mapbox-tiles",ht=500,st=50,gt=1e3*60*7,xt;function pr(){c.caches&&!xt&&(xt=c.caches.open(De))}var br;function cr(g,_){if(br===void 0)try{new Response(new ReadableStream),br=!0}catch(z){br=!1}br?_(g.body):g.blob().then(_)}function Er(g,_,z){if(pr(),!!xt){var V={status:_.status,statusText:_.statusText,headers:new c.Headers};_.headers.forEach(function(ve,Ze){return V.headers.set(Ze,ve)});var $=de(_.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(z+$["max-age"]*1e3).toUTCString());var se=new Date(V.headers.get("Expires")).getTime()-z;seDate.now()&&!z["no-cache"]}var Vr=1/0;function Ai(g){Vr++,Vr>st&&(g.getActor().send("enforceCacheSizeLimit",ht),Vr=0)}function Bi(g){pr(),xt&&xt.then(function(_){_.keys().then(function(z){for(var V=0;V=200&&z.status<300||z.status===0)&&z.response!==null){var $=z.response;if(g.type==="json")try{$=JSON.parse(z.response)}catch(se){return _(se)}_(null,$,z.getResponseHeader("Cache-Control"),z.getResponseHeader("Expires"))}else _(new zi(z.statusText,z.status,g.url))},z.send(g.body),{cancel:function(){return z.abort()}}}var mr=function(g,_){if(!_t(g.url)){if(c.fetch&&c.Request&&c.AbortController&&c.Request.prototype.hasOwnProperty("signal"))return qt(g,_);if(Ee()&&self.worker&&self.worker.actor){var z=!0;return self.worker.actor.send("getResource",g,_,void 0,z)}}return Nt(g,_)},Lr=function(g,_){return mr(x(g,{type:"json"}),_)},Nr=function(g,_){return mr(x(g,{type:"arrayBuffer"}),_)},Fr=function(g,_){return mr(x(g,{method:"POST"}),_)};function Hr(g){var _=c.document.createElement("a");return _.href=g,_.protocol===c.document.location.protocol&&_.host===c.document.location.host}var Gr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function mi(g,_,z,V){var $=new c.Image,se=c.URL;$.onload=function(){_(null,$),se.revokeObjectURL($.src),$.onload=null,c.requestAnimationFrame(function(){$.src=Gr})},$.onerror=function(){return _(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var ve=new c.Blob([new Uint8Array(g)],{type:"image/png"});$.cacheControl=z,$.expires=V,$.src=g.byteLength?se.createObjectURL(ve):Gr}function Ei(g,_){var z=new c.Blob([new Uint8Array(g)],{type:"image/png"});c.createImageBitmap(z).then(function(V){_(null,V)}).catch(function(V){_(new Error("Could not load image because of "+V.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Vi,ti,Qi=function(){Vi=[],ti=0};Qi();var Yr=function(g,_){if(Ot.supported&&(g.headers||(g.headers={}),g.headers.accept="image/webp,*/*"),ti>=bt.MAX_PARALLEL_IMAGE_REQUESTS){var z={requestParameters:g,callback:_,cancelled:!1,cancel:function(){this.cancelled=!0}};return Vi.push(z),z}ti++;var V=!1,$=function(){if(!V)for(V=!0,ti--;Vi.length&&ti0||this._oneTimeListeners&&this._oneTimeListeners[_]&&this._oneTimeListeners[_].length>0||this._eventedParent&&this._eventedParent.listens(_)},Ii.prototype.setEventedParent=function(_,z){return this._eventedParent=_,this._eventedParentData=z,this};var xn=8,xi={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},Xr={"*":{type:"source"}},dt=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],$t={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},gr={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Zr={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},wi={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},$i={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ni={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Xi=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],aa={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Mn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Un={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ga={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ma={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},oa={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ka={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},so={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Kr={type:"array",value:"*"},Ia={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Yo={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},fa={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},kn={type:"array",value:"*",minimum:1},Ta={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},ys=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],uo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},ls={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},$a={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},fo={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mn={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},ra={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},wa={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ws={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Co={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Po={"*":{type:"string"}},Wi={$version:xn,$root:xi,sources:Xr,source:dt,source_vector:$t,source_raster:fr,source_raster_dem:gr,source_geojson:Zr,source_video:wi,source_image:$i,layer:ni,layout:Xi,layout_background:aa,layout_fill:Mn,layout_circle:Un,layout_heatmap:Ga,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:ma,layout_symbol:oa,layout_raster:ka,layout_hillshade:so,filter:Kr,filter_operator:Ia,geometry_type:Yo,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:fa,expression:kn,light:Ta,paint:ys,paint_fill:uo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:ls,paint_circle:$a,paint_heatmap:fo,paint_symbol:mn,paint_raster:ra,paint_hillshade:wa,paint_background:ws,transition:Co,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:Po},gn=function(_,z,V,$){this.message=(_?_+": ":"")+V,$&&(this.identifier=$),z!=null&&z.__line__&&(this.line=z.__line__)};function Ps(g){var _=g.key,z=g.value;return z?[new gn(_,z,"constants have been deprecated as of v8")]:[]}function Ha(g){for(var _=[],z=arguments.length-1;z-- >0;)_[z]=arguments[z+1];for(var V=0,$=_;V<$.length;V+=1){var se=$[V];for(var ve in se)g[ve]=se[ve]}return g}function Sn(g){return g instanceof Number||g instanceof String||g instanceof Boolean?g.valueOf():g}function ao(g){if(Array.isArray(g))return g.map(ao);if(g instanceof Object&&!(g instanceof Number||g instanceof String||g instanceof Boolean)){var _={};for(var z in g)_[z]=ao(g[z]);return _}return Sn(g)}var Oa=(function(g){function _(z,V){g.call(this,V),this.message=V,this.key=z}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_})(Error),Ko=function(_,z){z===void 0&&(z=[]),this.parent=_,this.bindings={};for(var V=0,$=z;V<$.length;V+=1){var se=$[V],ve=se[0],Ze=se[1];this.bindings[ve]=Ze}};Ko.prototype.concat=function(_){return new Ko(this,_)},Ko.prototype.get=function(_){if(this.bindings[_])return this.bindings[_];if(this.parent)return this.parent.get(_);throw new Error(_+" not found in scope.")},Ko.prototype.has=function(_){return this.bindings[_]?!0:this.parent?this.parent.has(_):!1};var Qo={kind:"null"},Hi={kind:"number"},Sa={kind:"string"},Qa={kind:"boolean"},vn={kind:"color"},da={kind:"object"},la={kind:"value"},vo={kind:"error"},As={kind:"collator"},ps={kind:"formatted"},co={kind:"resolvedImage"};function mo(g,_){return{kind:"array",itemType:g,N:_}}function No(g){if(g.kind==="array"){var _=No(g.itemType);return typeof g.N=="number"?"array<"+_+", "+g.N+">":g.itemType.kind==="value"?"array":"array<"+_+">"}else return g.kind}var jn=[Qo,Hi,Sa,Qa,vn,ps,da,mo(la),co];function Go(g,_){if(_.kind==="error")return null;if(g.kind==="array"){if(_.kind==="array"&&(_.N===0&&_.itemType.kind==="value"||!Go(g.itemType,_.itemType))&&(typeof g.N!="number"||g.N===_.N))return null}else{if(g.kind===_.kind)return null;if(g.kind==="value")for(var z=0,V=jn;z255?255:It}function $(It){return It<0?0:It>1?1:It}function se(It){return It[It.length-1]==="%"?V(parseFloat(It)/100*255):V(parseInt(It))}function ve(It){return It[It.length-1]==="%"?$(parseFloat(It)/100):$(parseFloat(It))}function Ze(It,Wt,_r){return _r<0?_r+=1:_r>1&&(_r-=1),_r*6<1?It+(Wt-It)*_r*6:_r*2<1?Wt:_r*3<2?It+(Wt-It)*(2/3-_r)*6:It}function At(It){var Wt=It.replace(/ /g,"").toLowerCase();if(Wt in z)return z[Wt].slice();if(Wt[0]==="#"){if(Wt.length===4){var _r=parseInt(Wt.substr(1),16);return _r>=0&&_r<=4095?[(_r&3840)>>4|(_r&3840)>>8,_r&240|(_r&240)>>4,_r&15|(_r&15)<<4,1]:null}else if(Wt.length===7){var _r=parseInt(Wt.substr(1),16);return _r>=0&&_r<=16777215?[(_r&16711680)>>16,(_r&65280)>>8,_r&255,1]:null}return null}var Or=Wt.indexOf("("),Pr=Wt.indexOf(")");if(Or!==-1&&Pr+1===Wt.length){var ai=Wt.substr(0,Or),qi=Wt.substr(Or+1,Pr-(Or+1)).split(","),Wn=1;switch(ai){case"rgba":if(qi.length!==4)return null;Wn=ve(qi.pop());case"rgb":return qi.length!==3?null:[se(qi[0]),se(qi[1]),se(qi[2]),Wn];case"hsla":if(qi.length!==4)return null;Wn=ve(qi.pop());case"hsl":if(qi.length!==3)return null;var bn=(parseFloat(qi[0])%360+360)%360/360,bo=ve(qi[1]),ba=ve(qi[2]),_o=ba<=.5?ba*(bo+1):ba+bo-ba*bo,Uo=ba*2-_o;return[V(Ze(Uo,_o,bn+1/3)*255),V(Ze(Uo,_o,bn)*255),V(Ze(Uo,_o,bn-1/3)*255),Wn];default:return null}}return null}try{_.parseCSSColor=At}catch(It){}}),Ba=Ns.parseCSSColor,ha=function(_,z,V,$){$===void 0&&($=1),this.r=_,this.g=z,this.b=V,this.a=$};ha.parse=function(_){if(_){if(_ instanceof ha)return _;if(typeof _=="string"){var z=Ba(_);if(z)return new ha(z[0]/255*z[3],z[1]/255*z[3],z[2]/255*z[3],z[3])}}},ha.prototype.toString=function(){var _=this.toArray(),z=_[0],V=_[1],$=_[2],se=_[3];return"rgba("+Math.round(z)+","+Math.round(V)+","+Math.round($)+","+se+")"},ha.prototype.toArray=function(){var _=this,z=_.r,V=_.g,$=_.b,se=_.a;return se===0?[0,0,0,0]:[z*255/se,V*255/se,$*255/se,se]},ha.black=new ha(0,0,0,1),ha.white=new ha(1,1,1,1),ha.transparent=new ha(0,0,0,0),ha.red=new ha(1,0,0,1);var Vs=function(_,z,V){_?this.sensitivity=z?"variant":"case":this.sensitivity=z?"accent":"base",this.locale=V,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Vs.prototype.compare=function(_,z){return this.collator.compare(_,z)},Vs.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ya=function(_,z,V,$,se){this.text=_,this.image=z,this.scale=V,this.fontStack=$,this.textColor=se},_n=function(_){this.sections=_};_n.fromString=function(_){return new _n([new Ya(_,null,null,null,null)])},_n.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(_){return _.text.length!==0||_.image&&_.image.name.length!==0})},_n.factory=function(_){return _ instanceof _n?_:_n.fromString(_)},_n.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(_){return _.text}).join("")},_n.prototype.serialize=function(){for(var _=["format"],z=0,V=this.sections;z=0&&g<=255&&typeof _=="number"&&_>=0&&_<=255&&typeof z=="number"&&z>=0&&z<=255)){var $=typeof V=="number"?[g,_,z,V]:[g,_,z];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof V=="undefined"||typeof V=="number"&&V>=0&&V<=1?null:"Invalid rgba value ["+[g,_,z,V].join(", ")+"]: 'a' must be between 0 and 1."}function Ra(g){if(g===null)return!0;if(typeof g=="string")return!0;if(typeof g=="boolean")return!0;if(typeof g=="number")return!0;if(g instanceof ha)return!0;if(g instanceof Vs)return!0;if(g instanceof _n)return!0;if(g instanceof Vn)return!0;if(Array.isArray(g)){for(var _=0,z=g;_2){var Ze=_[1];if(typeof Ze!="string"||!(Ze in qn)||Ze==="object")return z.error('The item type argument of "array" must be one of string, number, boolean',1);ve=qn[Ze],V++}else ve=la;var At;if(_.length>3){if(_[2]!==null&&(typeof _[2]!="number"||_[2]<0||_[2]!==Math.floor(_[2])))return z.error('The length argument to "array" must be a positive integer literal',2);At=_[2],V++}$=mo(ve,At)}else $=qn[se];for(var It=[];V<_.length;V++){var Wt=z.parse(_[V],V,la);if(!Wt)return null;It.push(Wt)}return new Eo($,It)},Eo.prototype.evaluate=function(_){for(var z=0;z1)&&z.push($)}}return z.concat(this.args.map(function(se){return se.serialize()}))};var Ja=function(_){this.type=ps,this.sections=_};Ja.parse=function(_,z){if(_.length<2)return z.error("Expected at least one argument.");var V=_[1];if(!Array.isArray(V)&&typeof V=="object")return z.error("First argument must be an image or text section.");for(var $=[],se=!1,ve=1;ve<=_.length-1;++ve){var Ze=_[ve];if(se&&typeof Ze=="object"&&!Array.isArray(Ze)){se=!1;var At=null;if(Ze["font-scale"]&&(At=z.parse(Ze["font-scale"],1,Hi),!At))return null;var It=null;if(Ze["text-font"]&&(It=z.parse(Ze["text-font"],1,mo(Sa)),!It))return null;var Wt=null;if(Ze["text-color"]&&(Wt=z.parse(Ze["text-color"],1,vn),!Wt))return null;var _r=$[$.length-1];_r.scale=At,_r.font=It,_r.textColor=Wt}else{var Or=z.parse(_[ve],1,la);if(!Or)return null;var Pr=Or.type.kind;if(Pr!=="string"&&Pr!=="value"&&Pr!=="null"&&Pr!=="resolvedImage")return z.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");se=!0,$.push({content:Or,scale:null,font:null,textColor:null})}}return new Ja($)},Ja.prototype.evaluate=function(_){var z=function(V){var $=V.content.evaluate(_);return Xn($)===co?new Ya("",$,null,null,null):new Ya(sn($),null,V.scale?V.scale.evaluate(_):null,V.font?V.font.evaluate(_).join(","):null,V.textColor?V.textColor.evaluate(_):null)};return new _n(this.sections.map(z))},Ja.prototype.eachChild=function(_){for(var z=0,V=this.sections;z-1),V},lo.prototype.eachChild=function(_){_(this.input)},lo.prototype.outputDefined=function(){return!1},lo.prototype.serialize=function(){return["image",this.input.serialize()]};var eo={"to-boolean":Qa,"to-color":vn,"to-number":Hi,"to-string":Sa},sa=function(_,z){this.type=_,this.args=z};sa.parse=function(_,z){if(_.length<2)return z.error("Expected at least one argument.");var V=_[0];if((V==="to-boolean"||V==="to-string")&&_.length!==2)return z.error("Expected one argument.");for(var $=eo[V],se=[],ve=1;ve<_.length;ve++){var Ze=z.parse(_[ve],ve,la);if(!Ze)return null;se.push(Ze)}return new sa($,se)},sa.prototype.evaluate=function(_){if(this.type.kind==="boolean")return!!this.args[0].evaluate(_);if(this.type.kind==="color"){for(var z,V,$=0,se=this.args;$4?V="Invalid rbga value "+JSON.stringify(z)+": expected an array containing either three or four numeric values.":V=wo(z[0],z[1],z[2],z[3]),!V))return new ha(z[0]/255,z[1]/255,z[2]/255,z[3])}throw new Ka(V||"Could not parse color from value '"+(typeof z=="string"?z:String(JSON.stringify(z)))+"'")}else if(this.type.kind==="number"){for(var At=null,It=0,Wt=this.args;It=_[2]||g[1]<=_[1]||g[3]>=_[3])}function Ws(g,_){var z=Ao(g[0]),V=Dn(g[1]),$=Math.pow(2,_.z);return[Math.round(z*$*yo),Math.round(V*$*yo)]}function Ca(g,_,z){var V=g[0]-_[0],$=g[1]-_[1],se=g[0]-z[0],ve=g[1]-z[1];return V*ve-se*$===0&&V*se<=0&&$*ve<=0}function Es(g,_,z){return _[1]>g[1]!=z[1]>g[1]&&g[0]<(z[0]-_[0])*(g[1]-_[1])/(z[1]-_[1])+_[0]}function Ts(g,_){for(var z=!1,V=0,$=_.length;V<$;V++)for(var se=_[V],ve=0,Ze=se.length;ve0&&_r<0||Wt<0&&_r>0}function ts(g,_,z,V){var $=[_[0]-g[0],_[1]-g[1]],se=[V[0]-z[0],V[1]-z[1]];return Wa(se,$)===0?!1:!!(To(g,_,z,V)&&To(z,V,g,_))}function Wo(g,_,z){for(var V=0,$=z;V<$.length;V+=1)for(var se=$[V],ve=0;vez[2]){var $=V*.5,se=g[0]-z[0]>$?-V:z[0]-g[0]>$?V:0;se===0&&(se=g[0]-z[2]>$?-V:z[2]-g[0]>$?V:0),g[0]+=se}Jo(_,g)}function za(g){g[0]=g[1]=1/0,g[2]=g[3]=-1/0}function ea(g,_,z,V){for(var $=Math.pow(2,V.z)*yo,se=[V.x*yo,V.y*yo],ve=[],Ze=0,At=g;Ze=0)return!1;var z=!0;return g.eachChild(function(V){z&&!Ma(V,_)&&(z=!1)}),z}var Qs=function(_,z){this.type=z.type,this.name=_,this.boundExpression=z};Qs.parse=function(_,z){if(_.length!==2||typeof _[1]!="string")return z.error("'var' expression requires exactly one string literal argument.");var V=_[1];return z.scope.has(V)?new Qs(V,z.scope.get(V)):z.error('Unknown variable "'+V+'". Make sure "'+V+'" has been bound in an enclosing "let" expression before using it.',1)},Qs.prototype.evaluate=function(_){return this.boundExpression.evaluate(_)},Qs.prototype.eachChild=function(){},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){return["var",this.name]};var ho=function(_,z,V,$,se){z===void 0&&(z=[]),$===void 0&&($=new Ko),se===void 0&&(se=[]),this.registry=_,this.path=z,this.key=z.map(function(ve){return"["+ve+"]"}).join(""),this.scope=$,this.errors=se,this.expectedType=V};ho.prototype.parse=function(_,z,V,$,se){return se===void 0&&(se={}),z?this.concat(z,V,$)._parse(_,se):this._parse(_,se)},ho.prototype._parse=function(_,z){(_===null||typeof _=="string"||typeof _=="boolean"||typeof _=="number")&&(_=["literal",_]);function V(Wt,_r,Or){return Or==="assert"?new Eo(_r,[Wt]):Or==="coerce"?new sa(_r,[Wt]):Wt}if(Array.isArray(_)){if(_.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=_[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var se=this.registry[$];if(se){var ve=se.parse(_,this);if(!ve)return null;if(this.expectedType){var Ze=this.expectedType,At=ve.type;if((Ze.kind==="string"||Ze.kind==="number"||Ze.kind==="boolean"||Ze.kind==="object"||Ze.kind==="array")&&At.kind==="value")ve=V(ve,Ze,z.typeAnnotation||"assert");else if((Ze.kind==="color"||Ze.kind==="formatted"||Ze.kind==="resolvedImage")&&(At.kind==="value"||At.kind==="string"))ve=V(ve,Ze,z.typeAnnotation||"coerce");else if(this.checkSubtype(Ze,At))return null}if(!(ve instanceof $n)&&ve.type.kind!=="resolvedImage"&&gs(ve)){var It=new Na;try{ve=new $n(ve.type,ve.evaluate(It))}catch(Wt){return this.error(Wt.message),null}}return ve}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof _=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof _=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof _+" instead.")},ho.prototype.concat=function(_,z,V){var $=typeof _=="number"?this.path.concat(_):this.path,se=V?this.scope.concat(V):this.scope;return new ho(this.registry,$,z||null,se,this.errors)},ho.prototype.error=function(_){for(var z=[],V=arguments.length-1;V-- >0;)z[V]=arguments[V+1];var $=""+this.key+z.map(function(se){return"["+se+"]"}).join("");this.errors.push(new Oa($,_))},ho.prototype.checkSubtype=function(_,z){var V=Go(_,z);return V&&this.error(V),V};function gs(g){if(g instanceof Qs)return gs(g.boundExpression);if(g instanceof en&&g.name==="error")return!1;if(g instanceof to)return!1;if(g instanceof Ds)return!1;var _=g instanceof sa||g instanceof Eo,z=!0;return g.eachChild(function(V){_?z=z&&gs(V):z=z&&V instanceof $n}),z?fl(g)&&Ma(g,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Vo(g,_){for(var z=g.length-1,V=0,$=z,se=0,ve,Ze;V<=$;)if(se=Math.floor((V+$)/2),ve=g[se],Ze=g[se+1],ve<=_){if(se===z||__)$=se-1;else throw new Ka("Input is not a number.");return 0}var Do=function(_,z,V){this.type=_,this.input=z,this.labels=[],this.outputs=[];for(var $=0,se=V;$=Ze)return z.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',It);var _r=z.parse(At,Wt,se);if(!_r)return null;se=se||_r.type,$.push([Ze,_r])}return new Do(se,V,$)},Do.prototype.evaluate=function(_){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(_);var $=this.input.evaluate(_);if($<=z[0])return V[0].evaluate(_);var se=z.length;if($>=z[se-1])return V[se-1].evaluate(_);var ve=Vo(z,$);return V[ve].evaluate(_)},Do.prototype.eachChild=function(_){_(this.input);for(var z=0,V=this.outputs;z0&&_.push(this.labels[z]),_.push(this.outputs[z].serialize());return _};function Lo(g,_,z){return g*(1-z)+_*z}function xs(g,_,z){return new ha(Lo(g.r,_.r,z),Lo(g.g,_.g,z),Lo(g.b,_.b,z),Lo(g.a,_.a,z))}function ks(g,_,z){return g.map(function(V,$){return Lo(V,_[$],z)})}var Ea=Object.freeze({__proto__:null,number:Lo,color:xs,array:ks}),Jn=.95047,Bo=1,rl=1.08883,Gs=4/29,bs=6/29,zs=3*bs*bs,$o=bs*bs*bs,Aa=Math.PI/180,os=180/Math.PI;function _l(g){return g>$o?Math.pow(g,1/3):g/zs+Gs}function Ss(g){return g>bs?g*g*g:zs*(g-Gs)}function po(g){return 255*(g<=.0031308?12.92*g:1.055*Math.pow(g,1/2.4)-.055)}function go(g){return g/=255,g<=.04045?g/12.92:Math.pow((g+.055)/1.055,2.4)}function ss(g){var _=go(g.r),z=go(g.g),V=go(g.b),$=_l((.4124564*_+.3575761*z+.1804375*V)/Jn),se=_l((.2126729*_+.7151522*z+.072175*V)/Bo),ve=_l((.0193339*_+.119192*z+.9503041*V)/rl);return{l:116*se-16,a:500*($-se),b:200*(se-ve),alpha:g.a}}function qo(g){var _=(g.l+16)/116,z=isNaN(g.a)?_:_+g.a/500,V=isNaN(g.b)?_:_-g.b/200;return _=Bo*Ss(_),z=Jn*Ss(z),V=rl*Ss(V),new ha(po(3.2404542*z-1.5371385*_-.4985314*V),po(-.969266*z+1.8760108*_+.041556*V),po(.0556434*z-.2040259*_+1.0572252*V),g.alpha)}function zo(g,_,z){return{l:Lo(g.l,_.l,z),a:Lo(g.a,_.a,z),b:Lo(g.b,_.b,z),alpha:Lo(g.alpha,_.alpha,z)}}function io(g){var _=ss(g),z=_.l,V=_.a,$=_.b,se=Math.atan2($,V)*os;return{h:se<0?se+360:se,c:Math.sqrt(V*V+$*$),l:z,alpha:g.a}}function Io(g){var _=g.h*Aa,z=g.c,V=g.l;return qo({l:V,a:Math.cos(_)*z,b:Math.sin(_)*z,alpha:g.alpha})}function Da(g,_,z){var V=_-g;return g+z*(V>180||V<-180?V-360*Math.round(V/360):V)}function vs(g,_,z){return{h:Da(g.h,_.h,z),c:Lo(g.c,_.c,z),l:Lo(g.l,_.l,z),alpha:Lo(g.alpha,_.alpha,z)}}var fs={forward:ss,reverse:qo,interpolate:zo},cl={forward:io,reverse:Io,interpolate:vs},el=Object.freeze({__proto__:null,lab:fs,hcl:cl}),Hs=function(_,z,V,$,se){this.type=_,this.operator=z,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var ve=0,Ze=se;ve1}))return z.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:At}}else return z.error("Unknown interpolation type "+String($[0]),1,0);if(_.length-1<4)return z.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if((_.length-1)%2!==0)return z.error("Expected an even number of arguments.");if(se=z.parse(se,2,Hi),!se)return null;var It=[],Wt=null;V==="interpolate-hcl"||V==="interpolate-lab"?Wt=vn:z.expectedType&&z.expectedType.kind!=="value"&&(Wt=z.expectedType);for(var _r=0;_r=Or)return z.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ai);var Wn=z.parse(Pr,qi,Wt);if(!Wn)return null;Wt=Wt||Wn.type,It.push([Or,Wn])}return Wt.kind!=="number"&&Wt.kind!=="color"&&!(Wt.kind==="array"&&Wt.itemType.kind==="number"&&typeof Wt.N=="number")?z.error("Type "+No(Wt)+" is not interpolatable."):new Hs(Wt,V,$,se,It)},Hs.prototype.evaluate=function(_){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(_);var $=this.input.evaluate(_);if($<=z[0])return V[0].evaluate(_);var se=z.length;if($>=z[se-1])return V[se-1].evaluate(_);var ve=Vo(z,$),Ze=z[ve],At=z[ve+1],It=Hs.interpolationFactor(this.interpolation,$,Ze,At),Wt=V[ve].evaluate(_),_r=V[ve+1].evaluate(_);return this.operator==="interpolate"?Ea[this.type.kind.toLowerCase()](Wt,_r,It):this.operator==="interpolate-hcl"?cl.reverse(cl.interpolate(cl.forward(Wt),cl.forward(_r),It)):fs.reverse(fs.interpolate(fs.forward(Wt),fs.forward(_r),It))},Hs.prototype.eachChild=function(_){_(this.input);for(var z=0,V=this.outputs;z=V.length)throw new Ka("Array index out of bounds: "+z+" > "+(V.length-1)+".");if(z!==Math.floor(z))throw new Ka("Array index must be an integer, but found "+z+" instead.");return V[z]},hl.prototype.eachChild=function(_){_(this.index),_(this.input)},hl.prototype.outputDefined=function(){return!1},hl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Fa=function(_,z){this.type=Qa,this.needle=_,this.haystack=z};Fa.parse=function(_,z){if(_.length!==3)return z.error("Expected 2 arguments, but found "+(_.length-1)+" instead.");var V=z.parse(_[1],1,la),$=z.parse(_[2],2,la);return!V||!$?null:Ys(V.type,[Qa,Sa,Hi,Qo,la])?new Fa(V,$):z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead")},Fa.prototype.evaluate=function(_){var z=this.needle.evaluate(_),V=this.haystack.evaluate(_);if(!V)return!1;if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");return V.indexOf(z)>=0},Fa.prototype.eachChild=function(_){_(this.needle),_(this.haystack)},Fa.prototype.outputDefined=function(){return!0},Fa.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ms=function(_,z,V){this.type=Hi,this.needle=_,this.haystack=z,this.fromIndex=V};Ms.parse=function(_,z){if(_.length<=2||_.length>=5)return z.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var V=z.parse(_[1],1,la),$=z.parse(_[2],2,la);if(!V||!$)return null;if(!Ys(V.type,[Qa,Sa,Hi,Qo,la]))return z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead");if(_.length===4){var se=z.parse(_[3],3,Hi);return se?new Ms(V,$,se):null}else return new Ms(V,$)},Ms.prototype.evaluate=function(_){var z=this.needle.evaluate(_),V=this.haystack.evaluate(_);if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(_);return V.indexOf(z,$)}return V.indexOf(z)},Ms.prototype.eachChild=function(_){_(this.needle),_(this.haystack),this.fromIndex&&_(this.fromIndex)},Ms.prototype.outputDefined=function(){return!1},Ms.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var _=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),_]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var jo=function(_,z,V,$,se,ve){this.inputType=_,this.type=z,this.input=V,this.cases=$,this.outputs=se,this.otherwise=ve};jo.parse=function(_,z){if(_.length<5)return z.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if(_.length%2!==1)return z.error("Expected an even number of arguments.");var V,$;z.expectedType&&z.expectedType.kind!=="value"&&($=z.expectedType);for(var se={},ve=[],Ze=2;Ze<_.length-1;Ze+=2){var At=_[Ze],It=_[Ze+1];Array.isArray(At)||(At=[At]);var Wt=z.concat(Ze);if(At.length===0)return Wt.error("Expected at least one branch label.");for(var _r=0,Or=At;_rNumber.MAX_SAFE_INTEGER)return Wt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return Wt.error("Numeric branch labels must be integer values.");if(!V)V=Xn(Pr);else if(Wt.checkSubtype(V,Xn(Pr)))return null;if(typeof se[String(Pr)]!="undefined")return Wt.error("Branch labels must be unique.");se[String(Pr)]=ve.length}var ai=z.parse(It,Ze,$);if(!ai)return null;$=$||ai.type,ve.push(ai)}var qi=z.parse(_[1],1,la);if(!qi)return null;var Wn=z.parse(_[_.length-1],_.length-1,$);return!Wn||qi.type.kind!=="value"&&z.concat(1).checkSubtype(V,qi.type)?null:new jo(V,$,qi,se,ve,Wn)},jo.prototype.evaluate=function(_){var z=this.input.evaluate(_),V=Xn(z)===this.inputType&&this.outputs[this.cases[z]]||this.otherwise;return V.evaluate(_)},jo.prototype.eachChild=function(_){_(this.input),this.outputs.forEach(_),_(this.otherwise)},jo.prototype.outputDefined=function(){return this.outputs.every(function(_){return _.outputDefined()})&&this.otherwise.outputDefined()},jo.prototype.serialize=function(){for(var _=this,z=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],se={},ve=0,Ze=V;ve=5)return z.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var V=z.parse(_[1],1,la),$=z.parse(_[2],2,Hi);if(!V||!$)return null;if(!Ys(V.type,[mo(la),Sa,la]))return z.error("Expected first argument to be of type array or string, but found "+No(V.type)+" instead");if(_.length===4){var se=z.parse(_[3],3,Hi);return se?new Is(V.type,V,$,se):null}else return new Is(V.type,V,$)},Is.prototype.evaluate=function(_){var z=this.input.evaluate(_),V=this.beginIndex.evaluate(_);if(!qs(z,["string","array"]))throw new Ka("Expected first argument to be of type array or string, but found "+No(Xn(z))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(_);return z.slice(V,$)}return z.slice(V)},Is.prototype.eachChild=function(_){_(this.input),_(this.beginIndex),this.endIndex&&_(this.endIndex)},Is.prototype.outputDefined=function(){return!1},Is.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var _=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),_]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Os(g,_){return g==="=="||g==="!="?_.kind==="boolean"||_.kind==="string"||_.kind==="number"||_.kind==="null"||_.kind==="value":_.kind==="string"||_.kind==="number"||_.kind==="value"}function St(g,_,z){return _===z}function Ut(g,_,z){return _!==z}function xr(g,_,z){return _z}function Dr(g,_,z){return _<=z}function yi(g,_,z){return _>=z}function Ti(g,_,z,V){return V.compare(_,z)===0}function ki(g,_,z,V){return!Ti(g,_,z,V)}function Ki(g,_,z,V){return V.compare(_,z)<0}function Fn(g,_,z,V){return V.compare(_,z)>0}function Li(g,_,z,V){return V.compare(_,z)<=0}function hi(g,_,z,V){return V.compare(_,z)>=0}function Ci(g,_,z){var V=g!=="=="&&g!=="!=";return(function(){function $(se,ve,Ze){this.type=Qa,this.lhs=se,this.rhs=ve,this.collator=Ze,this.hasUntypedArgument=se.type.kind==="value"||ve.type.kind==="value"}return $.parse=function(ve,Ze){if(ve.length!==3&&ve.length!==4)return Ze.error("Expected two or three arguments.");var At=ve[0],It=Ze.parse(ve[1],1,la);if(!It)return null;if(!Os(At,It.type))return Ze.concat(1).error('"'+At+`" comparisons are not supported for type '`+No(It.type)+"'.");var Wt=Ze.parse(ve[2],2,la);if(!Wt)return null;if(!Os(At,Wt.type))return Ze.concat(2).error('"'+At+`" comparisons are not supported for type '`+No(Wt.type)+"'.");if(It.type.kind!==Wt.type.kind&&It.type.kind!=="value"&&Wt.type.kind!=="value")return Ze.error("Cannot compare types '"+No(It.type)+"' and '"+No(Wt.type)+"'.");V&&(It.type.kind==="value"&&Wt.type.kind!=="value"?It=new Eo(Wt.type,[It]):It.type.kind!=="value"&&Wt.type.kind==="value"&&(Wt=new Eo(It.type,[Wt])));var _r=null;if(ve.length===4){if(It.type.kind!=="string"&&Wt.type.kind!=="string"&&It.type.kind!=="value"&&Wt.type.kind!=="value")return Ze.error("Cannot use collator to compare non-string types.");if(_r=Ze.parse(ve[3],3,As),!_r)return null}return new $(It,Wt,_r)},$.prototype.evaluate=function(ve){var Ze=this.lhs.evaluate(ve),At=this.rhs.evaluate(ve);if(V&&this.hasUntypedArgument){var It=Xn(Ze),Wt=Xn(At);if(It.kind!==Wt.kind||!(It.kind==="string"||It.kind==="number"))throw new Ka('Expected arguments for "'+g+'" to be (string, string) or (number, number), but found ('+It.kind+", "+Wt.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var _r=Xn(Ze),Or=Xn(At);if(_r.kind!=="string"||Or.kind!=="string")return _(ve,Ze,At)}return this.collator?z(ve,Ze,At,this.collator.evaluate(ve)):_(ve,Ze,At)},$.prototype.eachChild=function(ve){ve(this.lhs),ve(this.rhs),this.collator&&ve(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var ve=[g];return this.eachChild(function(Ze){ve.push(Ze.serialize())}),ve},$})()}var Si=Ci("==",St,Ti),Gn=Ci("!=",Ut,ki),ta=Ci("<",xr,Ki),ya=Ci(">",dr,Fn),ia=Ci("<=",Dr,Li),pa=Ci(">=",yi,hi),va=function(_,z,V,$,se){this.type=Sa,this.number=_,this.locale=z,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=se};va.parse=function(_,z){if(_.length!==3)return z.error("Expected two arguments.");var V=z.parse(_[1],1,Hi);if(!V)return null;var $=_[2];if(typeof $!="object"||Array.isArray($))return z.error("NumberFormat options argument must be an object.");var se=null;if($.locale&&(se=z.parse($.locale,1,Sa),!se))return null;var ve=null;if($.currency&&(ve=z.parse($.currency,1,Sa),!ve))return null;var Ze=null;if($["min-fraction-digits"]&&(Ze=z.parse($["min-fraction-digits"],1,Hi),!Ze))return null;var At=null;return $["max-fraction-digits"]&&(At=z.parse($["max-fraction-digits"],1,Hi),!At)?null:new va(V,se,ve,Ze,At)},va.prototype.evaluate=function(_){return new Intl.NumberFormat(this.locale?this.locale.evaluate(_):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(_):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(_):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(_):void 0}).format(this.number.evaluate(_))},va.prototype.eachChild=function(_){_(this.number),this.locale&&_(this.locale),this.currency&&_(this.currency),this.minFractionDigits&&_(this.minFractionDigits),this.maxFractionDigits&&_(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var _={};return this.locale&&(_.locale=this.locale.serialize()),this.currency&&(_.currency=this.currency.serialize()),this.minFractionDigits&&(_["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(_["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),_]};var zn=function(_){this.type=Hi,this.input=_};zn.parse=function(_,z){if(_.length!==2)return z.error("Expected 1 argument, but found "+(_.length-1)+" instead.");var V=z.parse(_[1],1);return V?V.type.kind!=="array"&&V.type.kind!=="string"&&V.type.kind!=="value"?z.error("Expected argument of type string or array, but found "+No(V.type)+" instead."):new zn(V):null},zn.prototype.evaluate=function(_){var z=this.input.evaluate(_);if(typeof z=="string")return z.length;if(Array.isArray(z))return z.length;throw new Ka("Expected value to be of type string or array, but found "+No(Xn(z))+" instead.")},zn.prototype.eachChild=function(_){_(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var _=["length"];return this.eachChild(function(z){_.push(z.serialize())}),_};var is={"==":Si,"!=":Gn,">":ya,"<":ta,">=":pa,"<=":ia,array:Eo,at:hl,boolean:Eo,case:Rs,coalesce:tl,collator:to,format:Ja,image:lo,in:Fa,"index-of":Ms,interpolate:Hs,"interpolate-hcl":Hs,"interpolate-lab":Hs,length:zn,let:Fs,literal:$n,match:jo,number:Eo,"number-format":va,object:Eo,slice:Is,step:Do,string:Eo,"to-boolean":sa,"to-color":sa,"to-number":sa,"to-string":sa,var:Qs,within:Ds};function Cs(g,_){var z=_[0],V=_[1],$=_[2],se=_[3];z=z.evaluate(g),V=V.evaluate(g),$=$.evaluate(g);var ve=se?se.evaluate(g):1,Ze=wo(z,V,$,ve);if(Ze)throw new Ka(Ze);return new ha(z/255*ve,V/255*ve,$/255*ve,ve)}function Ks(g,_){return g in _}function dl(g,_){var z=_[g];return typeof z=="undefined"?null:z}function xl(g,_,z,V){for(;z<=V;){var $=z+V>>1;if(_[$]===g)return!0;_[$]>g?V=$-1:z=$+1}return!1}function Bl(g){return{type:g}}en.register(is,{error:[vo,[Sa],function(g,_){var z=_[0];throw new Ka(z.evaluate(g))}],typeof:[Sa,[la],function(g,_){var z=_[0];return No(Xn(z.evaluate(g)))}],"to-rgba":[mo(Hi,4),[vn],function(g,_){var z=_[0];return z.evaluate(g).toArray()}],rgb:[vn,[Hi,Hi,Hi],Cs],rgba:[vn,[Hi,Hi,Hi,Hi],Cs],has:{type:Qa,overloads:[[[Sa],function(g,_){var z=_[0];return Ks(z.evaluate(g),g.properties())}],[[Sa,da],function(g,_){var z=_[0],V=_[1];return Ks(z.evaluate(g),V.evaluate(g))}]]},get:{type:la,overloads:[[[Sa],function(g,_){var z=_[0];return dl(z.evaluate(g),g.properties())}],[[Sa,da],function(g,_){var z=_[0],V=_[1];return dl(z.evaluate(g),V.evaluate(g))}]]},"feature-state":[la,[Sa],function(g,_){var z=_[0];return dl(z.evaluate(g),g.featureState||{})}],properties:[da,[],function(g){return g.properties()}],"geometry-type":[Sa,[],function(g){return g.geometryType()}],id:[la,[],function(g){return g.id()}],zoom:[Hi,[],function(g){return g.globals.zoom}],"heatmap-density":[Hi,[],function(g){return g.globals.heatmapDensity||0}],"line-progress":[Hi,[],function(g){return g.globals.lineProgress||0}],accumulated:[la,[],function(g){return g.globals.accumulated===void 0?null:g.globals.accumulated}],"+":[Hi,Bl(Hi),function(g,_){for(var z=0,V=0,$=_;V<$.length;V+=1){var se=$[V];z+=se.evaluate(g)}return z}],"*":[Hi,Bl(Hi),function(g,_){for(var z=1,V=0,$=_;V<$.length;V+=1){var se=$[V];z*=se.evaluate(g)}return z}],"-":{type:Hi,overloads:[[[Hi,Hi],function(g,_){var z=_[0],V=_[1];return z.evaluate(g)-V.evaluate(g)}],[[Hi],function(g,_){var z=_[0];return-z.evaluate(g)}]]},"/":[Hi,[Hi,Hi],function(g,_){var z=_[0],V=_[1];return z.evaluate(g)/V.evaluate(g)}],"%":[Hi,[Hi,Hi],function(g,_){var z=_[0],V=_[1];return z.evaluate(g)%V.evaluate(g)}],ln2:[Hi,[],function(){return Math.LN2}],pi:[Hi,[],function(){return Math.PI}],e:[Hi,[],function(){return Math.E}],"^":[Hi,[Hi,Hi],function(g,_){var z=_[0],V=_[1];return Math.pow(z.evaluate(g),V.evaluate(g))}],sqrt:[Hi,[Hi],function(g,_){var z=_[0];return Math.sqrt(z.evaluate(g))}],log10:[Hi,[Hi],function(g,_){var z=_[0];return Math.log(z.evaluate(g))/Math.LN10}],ln:[Hi,[Hi],function(g,_){var z=_[0];return Math.log(z.evaluate(g))}],log2:[Hi,[Hi],function(g,_){var z=_[0];return Math.log(z.evaluate(g))/Math.LN2}],sin:[Hi,[Hi],function(g,_){var z=_[0];return Math.sin(z.evaluate(g))}],cos:[Hi,[Hi],function(g,_){var z=_[0];return Math.cos(z.evaluate(g))}],tan:[Hi,[Hi],function(g,_){var z=_[0];return Math.tan(z.evaluate(g))}],asin:[Hi,[Hi],function(g,_){var z=_[0];return Math.asin(z.evaluate(g))}],acos:[Hi,[Hi],function(g,_){var z=_[0];return Math.acos(z.evaluate(g))}],atan:[Hi,[Hi],function(g,_){var z=_[0];return Math.atan(z.evaluate(g))}],min:[Hi,Bl(Hi),function(g,_){return Math.min.apply(Math,_.map(function(z){return z.evaluate(g)}))}],max:[Hi,Bl(Hi),function(g,_){return Math.max.apply(Math,_.map(function(z){return z.evaluate(g)}))}],abs:[Hi,[Hi],function(g,_){var z=_[0];return Math.abs(z.evaluate(g))}],round:[Hi,[Hi],function(g,_){var z=_[0],V=z.evaluate(g);return V<0?-Math.round(-V):Math.round(V)}],floor:[Hi,[Hi],function(g,_){var z=_[0];return Math.floor(z.evaluate(g))}],ceil:[Hi,[Hi],function(g,_){var z=_[0];return Math.ceil(z.evaluate(g))}],"filter-==":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1];return g.properties()[z.value]===V.value}],"filter-id-==":[Qa,[la],function(g,_){var z=_[0];return g.id()===z.value}],"filter-type-==":[Qa,[Sa],function(g,_){var z=_[0];return g.geometryType()===z.value}],"filter-<":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1],$=g.properties()[z.value],se=V.value;return typeof $==typeof se&&$":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1],$=g.properties()[z.value],se=V.value;return typeof $==typeof se&&$>se}],"filter-id->":[Qa,[la],function(g,_){var z=_[0],V=g.id(),$=z.value;return typeof V==typeof $&&V>$}],"filter-<=":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1],$=g.properties()[z.value],se=V.value;return typeof $==typeof se&&$<=se}],"filter-id-<=":[Qa,[la],function(g,_){var z=_[0],V=g.id(),$=z.value;return typeof V==typeof $&&V<=$}],"filter->=":[Qa,[Sa,la],function(g,_){var z=_[0],V=_[1],$=g.properties()[z.value],se=V.value;return typeof $==typeof se&&$>=se}],"filter-id->=":[Qa,[la],function(g,_){var z=_[0],V=g.id(),$=z.value;return typeof V==typeof $&&V>=$}],"filter-has":[Qa,[la],function(g,_){var z=_[0];return z.value in g.properties()}],"filter-has-id":[Qa,[],function(g){return g.id()!==null&&g.id()!==void 0}],"filter-type-in":[Qa,[mo(Sa)],function(g,_){var z=_[0];return z.value.indexOf(g.geometryType())>=0}],"filter-id-in":[Qa,[mo(la)],function(g,_){var z=_[0];return z.value.indexOf(g.id())>=0}],"filter-in-small":[Qa,[Sa,mo(la)],function(g,_){var z=_[0],V=_[1];return V.value.indexOf(g.properties()[z.value])>=0}],"filter-in-large":[Qa,[Sa,mo(la)],function(g,_){var z=_[0],V=_[1];return xl(g.properties()[z.value],V.value,0,V.value.length-1)}],all:{type:Qa,overloads:[[[Qa,Qa],function(g,_){var z=_[0],V=_[1];return z.evaluate(g)&&V.evaluate(g)}],[Bl(Qa),function(g,_){for(var z=0,V=_;z-1}function ja(g){return!!g.expression&&g.expression.interpolated}function ns(g){return g instanceof Number?"number":g instanceof String?"string":g instanceof Boolean?"boolean":Array.isArray(g)?"array":g===null?"null":typeof g}function Js(g){return typeof g=="object"&&g!==null&&!Array.isArray(g)}function cs(g){return g}function sl(g,_){var z=_.type==="color",V=g.stops&&typeof g.stops[0][0]=="object",$=V||g.property!==void 0,se=V||!$,ve=g.type||(ja(_)?"exponential":"interval");if(z&&(g=Ha({},g),g.stops&&(g.stops=g.stops.map(function(Tl){return[Tl[0],ha.parse(Tl[1])]})),g.default?g.default=ha.parse(g.default):g.default=ha.parse(_.default)),g.colorSpace&&g.colorSpace!=="rgb"&&!el[g.colorSpace])throw new Error("Unknown color space: "+g.colorSpace);var Ze,At,It;if(ve==="exponential")Ze=Ml;else if(ve==="interval")Ze=zl;else if(ve==="categorical"){Ze=nl,At=Object.create(null);for(var Wt=0,_r=g.stops;Wt<_r.length;Wt+=1){var Or=_r[Wt];At[Or[0]]=Or[1]}It=typeof g.stops[0][0]}else if(ve==="identity")Ze=Rl;else throw new Error('Unknown function type "'+ve+'"');if(V){for(var Pr={},ai=[],qi=0;qi=g.stops[V-1][0])return g.stops[V-1][1];var $=Vo(g.stops.map(function(se){return se[0]}),z);return g.stops[$][1]}function Ml(g,_,z){var V=g.base!==void 0?g.base:1;if(ns(z)!=="number")return ll(g.default,_.default);var $=g.stops.length;if($===1||z<=g.stops[0][0])return g.stops[0][1];if(z>=g.stops[$-1][0])return g.stops[$-1][1];var se=Vo(g.stops.map(function(_r){return _r[0]}),z),ve=Al(z,V,g.stops[se][0],g.stops[se+1][0]),Ze=g.stops[se][1],At=g.stops[se+1][1],It=Ea[_.type]||cs;if(g.colorSpace&&g.colorSpace!=="rgb"){var Wt=el[g.colorSpace];It=function(_r,Or){return Wt.reverse(Wt.interpolate(Wt.forward(_r),Wt.forward(Or),ve))}}return typeof Ze.evaluate=="function"?{evaluate:function(){for(var Or=[],Pr=arguments.length;Pr--;)Or[Pr]=arguments[Pr];var ai=Ze.evaluate.apply(void 0,Or),qi=At.evaluate.apply(void 0,Or);if(!(ai===void 0||qi===void 0))return It(ai,qi,ve)}}:It(Ze,At,ve)}function Rl(g,_,z){return _.type==="color"?z=ha.parse(z):_.type==="formatted"?z=_n.fromString(z.toString()):_.type==="resolvedImage"?z=Vn.fromString(z.toString()):ns(z)!==_.type&&(_.type!=="enum"||!_.values[z])&&(z=void 0),ll(z,g.default,_.default)}function Al(g,_,z,V){var $=V-z,se=g-z;return $===0?0:_===1?se/$:(Math.pow(_,se)-1)/(Math.pow(_,$)-1)}var Ll=function(_,z){this.expression=_,this._warningHistory={},this._evaluator=new Na,this._defaultValue=z?ee(z):null,this._enumValues=z&&z.type==="enum"?z.values:null};Ll.prototype.evaluateWithoutErrorHandling=function(_,z,V,$,se,ve){return this._evaluator.globals=_,this._evaluator.feature=z,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=se||null,this._evaluator.formattedSection=ve,this.expression.evaluate(this._evaluator)},Ll.prototype.evaluate=function(_,z,V,$,se,ve){this._evaluator.globals=_,this._evaluator.feature=z||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=se||null,this._evaluator.formattedSection=ve||null;try{var Ze=this.expression.evaluate(this._evaluator);if(Ze==null||typeof Ze=="number"&&Ze!==Ze)return this._defaultValue;if(this._enumValues&&!(Ze in this._enumValues))throw new Ka("Expected value to be one of "+Object.keys(this._enumValues).map(function(At){return JSON.stringify(At)}).join(", ")+", but found "+JSON.stringify(Ze)+" instead.");return Ze}catch(At){return this._warningHistory[At.message]||(this._warningHistory[At.message]=!0,typeof console!="undefined"&&console.warn(At.message)),this._defaultValue}};function ms(g){return Array.isArray(g)&&g.length>0&&typeof g[0]=="string"&&g[0]in is}function Bs(g,_){var z=new ho(is,[],_?Q(_):void 0),V=z.parse(g,void 0,void 0,void 0,_&&_.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?bl(new Ll(V,_)):eu(z.errors)}var Xl=function(_,z){this.kind=_,this._styleExpression=z,this.isStateDependent=_!=="constant"&&!as(z.expression)};Xl.prototype.evaluateWithoutErrorHandling=function(_,z,V,$,se,ve){return this._styleExpression.evaluateWithoutErrorHandling(_,z,V,$,se,ve)},Xl.prototype.evaluate=function(_,z,V,$,se,ve){return this._styleExpression.evaluate(_,z,V,$,se,ve)};var Gl=function(_,z,V,$){this.kind=_,this.zoomStops=V,this._styleExpression=z,this.isStateDependent=_!=="camera"&&!as(z.expression),this.interpolationType=$};Gl.prototype.evaluateWithoutErrorHandling=function(_,z,V,$,se,ve){return this._styleExpression.evaluateWithoutErrorHandling(_,z,V,$,se,ve)},Gl.prototype.evaluate=function(_,z,V,$,se,ve){return this._styleExpression.evaluate(_,z,V,$,se,ve)},Gl.prototype.interpolationFactor=function(_,z,V){return this.interpolationType?Hs.interpolationFactor(this.interpolationType,_,z,V):0};function Nl(g,_){if(g=Bs(g,_),g.result==="error")return g;var z=g.value.expression,V=fl(z);if(!V&&!Zl(_))return eu([new Oa("","data expressions not supported")]);var $=Ma(z,["zoom"]);if(!$&&!Vl(_))return eu([new Oa("","zoom expressions not supported")]);var se=q(z);if(!se&&!$)return eu([new Oa("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(se instanceof Oa)return eu([se]);if(se instanceof Hs&&!ja(_))return eu([new Oa("",'"interpolate" expressions cannot be used with this property')]);if(!se)return bl(V?new Xl("constant",g.value):new Xl("source",g.value));var ve=se instanceof Hs?se.interpolation:void 0;return bl(V?new Gl("camera",g.value,se.labels,ve):new Gl("composite",g.value,se.labels,ve))}var ue=function(_,z){this._parameters=_,this._specification=z,Ha(this,sl(this._parameters,this._specification))};ue.deserialize=function(_){return new ue(_._parameters,_._specification)},ue.serialize=function(_){return{_parameters:_._parameters,_specification:_._specification}};function w(g,_){if(Js(g))return new ue(g,_);if(ms(g)){var z=Nl(g,_);if(z.result==="error")throw new Error(z.value.map(function($){return $.key+": "+$.message}).join(", "));return z.value}else{var V=g;return typeof g=="string"&&_.type==="color"&&(V=ha.parse(g)),{kind:"constant",evaluate:function(){return V}}}}function q(g){var _=null;if(g instanceof Fs)_=q(g.result);else if(g instanceof tl)for(var z=0,V=g.args;zV.maximum?[new gn(_,z,z+" is greater than the maximum value "+V.maximum)]:[]}function yt(g){var _=g.valueSpec,z=Sn(g.value.type),V,$={},se,ve,Ze=z!=="categorical"&&g.value.property===void 0,At=!Ze,It=ns(g.value.stops)==="array"&&ns(g.value.stops[0])==="array"&&ns(g.value.stops[0][0])==="object",Wt=fe({key:g.key,value:g.value,valueSpec:g.styleSpec.function,style:g.style,styleSpec:g.styleSpec,objectElementValidators:{stops:_r,default:ai}});return z==="identity"&&Ze&&Wt.push(new gn(g.key,g.value,'missing required property "property"')),z!=="identity"&&!g.value.stops&&Wt.push(new gn(g.key,g.value,'missing required property "stops"')),z==="exponential"&&g.valueSpec.expression&&!ja(g.valueSpec)&&Wt.push(new gn(g.key,g.value,"exponential functions not supported")),g.styleSpec.$version>=8&&(At&&!Zl(g.valueSpec)?Wt.push(new gn(g.key,g.value,"property functions not supported")):Ze&&!Vl(g.valueSpec)&&Wt.push(new gn(g.key,g.value,"zoom functions not supported"))),(z==="categorical"||It)&&g.value.property===void 0&&Wt.push(new gn(g.key,g.value,'"property" property is required')),Wt;function _r(qi){if(z==="identity")return[new gn(qi.key,qi.value,'identity function may not have a "stops" property')];var Wn=[],bn=qi.value;return Wn=Wn.concat(Ue({key:qi.key,value:bn,valueSpec:qi.valueSpec,style:qi.style,styleSpec:qi.styleSpec,arrayElementValidator:Or})),ns(bn)==="array"&&bn.length===0&&Wn.push(new gn(qi.key,bn,"array must have at least one stop")),Wn}function Or(qi){var Wn=[],bn=qi.value,bo=qi.key;if(ns(bn)!=="array")return[new gn(bo,bn,"array expected, "+ns(bn)+" found")];if(bn.length!==2)return[new gn(bo,bn,"array length 2 expected, length "+bn.length+" found")];if(It){if(ns(bn[0])!=="object")return[new gn(bo,bn,"object expected, "+ns(bn[0])+" found")];if(bn[0].zoom===void 0)return[new gn(bo,bn,"object stop key must have zoom")];if(bn[0].value===void 0)return[new gn(bo,bn,"object stop key must have value")];if(ve&&ve>Sn(bn[0].zoom))return[new gn(bo,bn[0].zoom,"stop zoom values must appear in ascending order")];Sn(bn[0].zoom)!==ve&&(ve=Sn(bn[0].zoom),se=void 0,$={}),Wn=Wn.concat(fe({key:bo+"[0]",value:bn[0],valueSpec:{zoom:{}},style:qi.style,styleSpec:qi.styleSpec,objectElementValidators:{zoom:at,value:Pr}}))}else Wn=Wn.concat(Pr({key:bo+"[0]",value:bn[0],valueSpec:{},style:qi.style,styleSpec:qi.styleSpec},bn));return ms(ao(bn[1]))?Wn.concat([new gn(bo+"[1]",bn[1],"expressions are not allowed in function stops.")]):Wn.concat(Sl({key:bo+"[1]",value:bn[1],valueSpec:_,style:qi.style,styleSpec:qi.styleSpec}))}function Pr(qi,Wn){var bn=ns(qi.value),bo=Sn(qi.value),ba=qi.value!==null?qi.value:Wn;if(!V)V=bn;else if(bn!==V)return[new gn(qi.key,ba,bn+" stop domain type must match previous stop domain type "+V)];if(bn!=="number"&&bn!=="string"&&bn!=="boolean")return[new gn(qi.key,ba,"stop domain value must be a number, string, or boolean")];if(bn!=="number"&&z!=="categorical"){var _o="number expected, "+bn+" found";return Zl(_)&&z===void 0&&(_o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new gn(qi.key,ba,_o)]}return z==="categorical"&&bn==="number"&&(!isFinite(bo)||Math.floor(bo)!==bo)?[new gn(qi.key,ba,"integer expected, found "+bo)]:z!=="categorical"&&bn==="number"&&se!==void 0&&bo=2&&g[1]!=="$id"&&g[1]!=="$type";case"in":return g.length>=3&&(typeof g[1]!="string"||Array.isArray(g[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return g.length!==3||Array.isArray(g[1])||Array.isArray(g[2]);case"any":case"all":for(var _=0,z=g.slice(1);__?1:0}function Ge(g){if(!Array.isArray(g))return!1;if(g[0]==="within")return!0;for(var _=1;_"||_==="<="||_===">="?ot(g[1],g[2],_):_==="any"?mt(g.slice(1)):_==="all"?["all"].concat(g.slice(1).map(ft)):_==="none"?["all"].concat(g.slice(1).map(ft).map(sr)):_==="in"?Gt(g[1],g.slice(2)):_==="!in"?sr(Gt(g[1],g.slice(2))):_==="has"?er(g[1]):_==="!has"?sr(er(g[1])):_==="within"?g:!0;return z}function ot(g,_,z){switch(g){case"$type":return["filter-type-"+z,_];case"$id":return["filter-id-"+z,_];default:return["filter-"+z,g,_]}}function mt(g){return["any"].concat(g.map(ft))}function Gt(g,_){if(_.length===0)return!1;switch(g){case"$type":return["filter-type-in",["literal",_]];case"$id":return["filter-id-in",["literal",_]];default:return _.length>200&&!_.some(function(z){return typeof z!=typeof _[0]})?["filter-in-large",g,["literal",_.sort(qe)]]:["filter-in-small",g,["literal",_]]}}function er(g){switch(g){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",g]}}function sr(g){return["!",g]}function wr(g){return Ur(ao(g.value))?Rt(Ha({},g,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ir(g)}function Ir(g){var _=g.value,z=g.key;if(ns(_)!=="array")return[new gn(z,_,"array expected, "+ns(_)+" found")];var V=g.styleSpec,$,se=[];if(_.length<1)return[new gn(z,_,"filter array must have at least 1 element")];switch(se=se.concat(Mr({key:z+"[0]",value:_[0],valueSpec:V.filter_operator,style:g.style,styleSpec:g.styleSpec})),Sn(_[0])){case"<":case"<=":case">":case">=":_.length>=2&&Sn(_[1])==="$type"&&se.push(new gn(z,_,'"$type" cannot be use with operator "'+_[0]+'"'));case"==":case"!=":_.length!==3&&se.push(new gn(z,_,'filter array for operator "'+_[0]+'" must have 3 elements'));case"in":case"!in":_.length>=2&&($=ns(_[1]),$!=="string"&&se.push(new gn(z+"[1]",_[1],"string expected, "+$+" found")));for(var ve=2;ve<_.length;ve++)$=ns(_[ve]),Sn(_[1])==="$type"?se=se.concat(Mr({key:z+"["+ve+"]",value:_[ve],valueSpec:V.geometry_type,style:g.style,styleSpec:g.styleSpec})):$!=="string"&&$!=="number"&&$!=="boolean"&&se.push(new gn(z+"["+ve+"]",_[ve],"string, number, or boolean expected, "+$+" found"));break;case"any":case"all":case"none":for(var Ze=1;Ze<_.length;Ze++)se=se.concat(Ir({key:z+"["+Ze+"]",value:_[Ze],style:g.style,styleSpec:g.styleSpec}));break;case"has":case"!has":$=ns(_[1]),_.length!==2?se.push(new gn(z,_,'filter array for "'+_[0]+'" operator must have 2 elements')):$!=="string"&&se.push(new gn(z+"[1]",_[1],"string expected, "+$+" found"));break;case"within":$=ns(_[1]),_.length!==2?se.push(new gn(z,_,'filter array for "'+_[0]+'" operator must have 2 elements')):$!=="object"&&se.push(new gn(z+"[1]",_[1],"object expected, "+$+" found"));break}return se}function ri(g,_){var z=g.key,V=g.style,$=g.styleSpec,se=g.value,ve=g.objectKey,Ze=$[_+"_"+g.layerType];if(!Ze)return[];var At=ve.match(/^(.*)-transition$/);if(_==="paint"&&At&&Ze[At[1]]&&Ze[At[1]].transition)return Sl({key:z,value:se,valueSpec:$.transition,style:V,styleSpec:$});var It=g.valueSpec||Ze[ve];if(!It)return[new gn(z,se,'unknown property "'+ve+'"')];var Wt;if(ns(se)==="string"&&Zl(It)&&!It.tokens&&(Wt=/^{([^}]+)}$/.exec(se)))return[new gn(z,se,'"'+ve+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(Wt[1])+" }`.")];var _r=[];return g.layerType==="symbol"&&(ve==="text-field"&&V&&!V.glyphs&&_r.push(new gn(z,se,'use of "text-field" requires a style "glyphs" property')),ve==="text-font"&&Js(ao(se))&&Sn(se.type)==="identity"&&_r.push(new gn(z,se,'"text-font" does not support identity functions'))),_r.concat(Sl({key:g.key,value:se,valueSpec:It,style:V,styleSpec:$,expressionContext:"property",propertyType:_,propertyKey:ve}))}function si(g){return ri(g,"paint")}function Mi(g){return ri(g,"layout")}function cn(g){var _=[],z=g.value,V=g.key,$=g.style,se=g.styleSpec;!z.type&&!z.ref&&_.push(new gn(V,z,'either "type" or "ref" is required'));var ve=Sn(z.type),Ze=Sn(z.ref);if(z.id)for(var At=Sn(z.id),It=0;It=Wt[Pr+0]&&V>=Wt[Pr+1])?(ve[Or]=!0,se.push(It[Or])):ve[Or]=!1}}},sf.prototype._forEachCell=function(g,_,z,V,$,se,ve,Ze){for(var At=this._convertToCellCoord(g),It=this._convertToCellCoord(_),Wt=this._convertToCellCoord(z),_r=this._convertToCellCoord(V),Or=At;Or<=Wt;Or++)for(var Pr=It;Pr<=_r;Pr++){var ai=this.d*Pr+Or;if(!(Ze&&!Ze(this._convertFromCellCoord(Or),this._convertFromCellCoord(Pr),this._convertFromCellCoord(Or+1),this._convertFromCellCoord(Pr+1)))&&$.call(this,g,_,z,V,ai,se,ve,Ze))return}},sf.prototype._convertFromCellCoord=function(g){return(g-this.padding)/this.scale},sf.prototype._convertToCellCoord=function(g){return Math.max(0,Math.min(this.d-1,Math.floor(g*this.scale)+this.padding))},sf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var g=this.cells,_=ju+this.cells.length+1+1,z=0,V=0;V=0)){var _r=g[Wt];It[Wt]=ef[At].shallow.indexOf(Wt)>=0?_r:nt(_r,_)}g instanceof Error&&(It.message=g.message)}if(It.$name)throw new Error("$name property is reserved for worker serialization logic.");return At!=="Object"&&(It.$name=At),It}throw new Error("can't serialize object of type "+typeof g)}function ut(g){if(g==null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||g instanceof Boolean||g instanceof Number||g instanceof String||g instanceof Date||g instanceof RegExp||Le(g)||Ye(g)||ArrayBuffer.isView(g)||g instanceof _f)return g;if(Array.isArray(g))return g.map(ut);if(typeof g=="object"){var _=g.$name||"Object",z=ef[_],V=z.klass;if(!V)throw new Error("can't deserialize unregistered class "+_);if(V.deserialize)return V.deserialize(g);for(var $=Object.create(V.prototype),se=0,ve=Object.keys(g);se=0?At:ut(At)}}return $}throw new Error("can't deserialize object of type "+typeof g)}var Ht=function(){this.first=!0};Ht.prototype.update=function(_,z){var V=Math.floor(_);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=_,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=z):this.lastFloorZoom=128&&g<=255},Arabic:function(g){return g>=1536&&g<=1791},"Arabic Supplement":function(g){return g>=1872&&g<=1919},"Arabic Extended-A":function(g){return g>=2208&&g<=2303},"Hangul Jamo":function(g){return g>=4352&&g<=4607},"Unified Canadian Aboriginal Syllabics":function(g){return g>=5120&&g<=5759},Khmer:function(g){return g>=6016&&g<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(g){return g>=6320&&g<=6399},"General Punctuation":function(g){return g>=8192&&g<=8303},"Letterlike Symbols":function(g){return g>=8448&&g<=8527},"Number Forms":function(g){return g>=8528&&g<=8591},"Miscellaneous Technical":function(g){return g>=8960&&g<=9215},"Control Pictures":function(g){return g>=9216&&g<=9279},"Optical Character Recognition":function(g){return g>=9280&&g<=9311},"Enclosed Alphanumerics":function(g){return g>=9312&&g<=9471},"Geometric Shapes":function(g){return g>=9632&&g<=9727},"Miscellaneous Symbols":function(g){return g>=9728&&g<=9983},"Miscellaneous Symbols and Arrows":function(g){return g>=11008&&g<=11263},"CJK Radicals Supplement":function(g){return g>=11904&&g<=12031},"Kangxi Radicals":function(g){return g>=12032&&g<=12255},"Ideographic Description Characters":function(g){return g>=12272&&g<=12287},"CJK Symbols and Punctuation":function(g){return g>=12288&&g<=12351},Hiragana:function(g){return g>=12352&&g<=12447},Katakana:function(g){return g>=12448&&g<=12543},Bopomofo:function(g){return g>=12544&&g<=12591},"Hangul Compatibility Jamo":function(g){return g>=12592&&g<=12687},Kanbun:function(g){return g>=12688&&g<=12703},"Bopomofo Extended":function(g){return g>=12704&&g<=12735},"CJK Strokes":function(g){return g>=12736&&g<=12783},"Katakana Phonetic Extensions":function(g){return g>=12784&&g<=12799},"Enclosed CJK Letters and Months":function(g){return g>=12800&&g<=13055},"CJK Compatibility":function(g){return g>=13056&&g<=13311},"CJK Unified Ideographs Extension A":function(g){return g>=13312&&g<=19903},"Yijing Hexagram Symbols":function(g){return g>=19904&&g<=19967},"CJK Unified Ideographs":function(g){return g>=19968&&g<=40959},"Yi Syllables":function(g){return g>=40960&&g<=42127},"Yi Radicals":function(g){return g>=42128&&g<=42191},"Hangul Jamo Extended-A":function(g){return g>=43360&&g<=43391},"Hangul Syllables":function(g){return g>=44032&&g<=55215},"Hangul Jamo Extended-B":function(g){return g>=55216&&g<=55295},"Private Use Area":function(g){return g>=57344&&g<=63743},"CJK Compatibility Ideographs":function(g){return g>=63744&&g<=64255},"Arabic Presentation Forms-A":function(g){return g>=64336&&g<=65023},"Vertical Forms":function(g){return g>=65040&&g<=65055},"CJK Compatibility Forms":function(g){return g>=65072&&g<=65103},"Small Form Variants":function(g){return g>=65104&&g<=65135},"Arabic Presentation Forms-B":function(g){return g>=65136&&g<=65279},"Halfwidth and Fullwidth Forms":function(g){return g>=65280&&g<=65519}};function lr(g){for(var _=0,z=g;_=65097&&g<=65103)||wt["CJK Compatibility Ideographs"](g)||wt["CJK Compatibility"](g)||wt["CJK Radicals Supplement"](g)||wt["CJK Strokes"](g)||wt["CJK Symbols and Punctuation"](g)&&!(g>=12296&&g<=12305)&&!(g>=12308&&g<=12319)&&g!==12336||wt["CJK Unified Ideographs Extension A"](g)||wt["CJK Unified Ideographs"](g)||wt["Enclosed CJK Letters and Months"](g)||wt["Hangul Compatibility Jamo"](g)||wt["Hangul Jamo Extended-A"](g)||wt["Hangul Jamo Extended-B"](g)||wt["Hangul Jamo"](g)||wt["Hangul Syllables"](g)||wt.Hiragana(g)||wt["Ideographic Description Characters"](g)||wt.Kanbun(g)||wt["Kangxi Radicals"](g)||wt["Katakana Phonetic Extensions"](g)||wt.Katakana(g)&&g!==12540||wt["Halfwidth and Fullwidth Forms"](g)&&g!==65288&&g!==65289&&g!==65293&&!(g>=65306&&g<=65310)&&g!==65339&&g!==65341&&g!==65343&&!(g>=65371&&g<=65503)&&g!==65507&&!(g>=65512&&g<=65519)||wt["Small Form Variants"](g)&&!(g>=65112&&g<=65118)&&!(g>=65123&&g<=65126)||wt["Unified Canadian Aboriginal Syllabics"](g)||wt["Unified Canadian Aboriginal Syllabics Extended"](g)||wt["Vertical Forms"](g)||wt["Yijing Hexagram Symbols"](g)||wt["Yi Syllables"](g)||wt["Yi Radicals"](g))}function Oi(g){return!!(wt["Latin-1 Supplement"](g)&&(g===167||g===169||g===174||g===177||g===188||g===189||g===190||g===215||g===247)||wt["General Punctuation"](g)&&(g===8214||g===8224||g===8225||g===8240||g===8241||g===8251||g===8252||g===8258||g===8263||g===8264||g===8265||g===8273)||wt["Letterlike Symbols"](g)||wt["Number Forms"](g)||wt["Miscellaneous Technical"](g)&&(g>=8960&&g<=8967||g>=8972&&g<=8991||g>=8996&&g<=9e3||g===9003||g>=9085&&g<=9114||g>=9150&&g<=9165||g===9167||g>=9169&&g<=9179||g>=9186&&g<=9215)||wt["Control Pictures"](g)&&g!==9251||wt["Optical Character Recognition"](g)||wt["Enclosed Alphanumerics"](g)||wt["Geometric Shapes"](g)||wt["Miscellaneous Symbols"](g)&&!(g>=9754&&g<=9759)||wt["Miscellaneous Symbols and Arrows"](g)&&(g>=11026&&g<=11055||g>=11088&&g<=11097||g>=11192&&g<=11243)||wt["CJK Symbols and Punctuation"](g)||wt.Katakana(g)||wt["Private Use Area"](g)||wt["CJK Compatibility Forms"](g)||wt["Small Form Variants"](g)||wt["Halfwidth and Fullwidth Forms"](g)||g===8734||g===8756||g===8757||g>=9984&&g<=10087||g>=10102&&g<=10131||g===65532||g===65533)}function un(g){return!($r(g)||Oi(g))}function pi(g){return wt.Arabic(g)||wt["Arabic Supplement"](g)||wt["Arabic Extended-A"](g)||wt["Arabic Presentation Forms-A"](g)||wt["Arabic Presentation Forms-B"](g)}function Pi(g){return g>=1424&&g<=2303||wt["Arabic Presentation Forms-A"](g)||wt["Arabic Presentation Forms-B"](g)}function ji(g,_){return!(!_&&Pi(g)||g>=2304&&g<=3583||g>=3840&&g<=4255||wt.Khmer(g))}function pn(g){for(var _=0,z=g;_-1&&(no=bi.error),xo&&xo(g)};function El(){Pl.fire(new tn("pluginStateChange",{pluginStatus:no,pluginURL:Xo}))}var Pl=new Ii,pu=function(){return no},Il=function(g){return g({pluginStatus:no,pluginURL:Xo}),Pl.on("pluginStateChange",g),g},fu=function(g,_,z){if(z===void 0&&(z=!1),no===bi.deferred||no===bi.loading||no===bi.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Xo=rt.resolveURL(g),no=bi.deferred,xo=_,El(),z||Xu()},Xu=function(){if(no!==bi.deferred||!Xo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");no=bi.loading,El(),Xo&&Nr({url:Xo},function(g){g?js(g):(no=bi.loaded,El())})},Vu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return no===bi.loaded||Vu.applyArabicShaping!=null},isLoading:function(){return no===bi.loading},setState:function(_){no=_.pluginStatus,Xo=_.pluginURL},isParsed:function(){return Vu.applyArabicShaping!=null&&Vu.processBidirectionalText!=null&&Vu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xo}},tf=function(){!Vu.isLoading()&&!Vu.isLoaded()&&pu()==="deferred"&&Xu()},ds=function(_,z){this.zoom=_,z?(this.now=z.now,this.fadeDuration=z.fadeDuration,this.zoomHistory=z.zoomHistory,this.transition=z.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Ht,this.transition={})};ds.prototype.isSupportedScript=function(_){return an(_,Vu.isLoaded())},ds.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ds.prototype.getCrossfadeParameters=function(){var _=this.zoom,z=_-Math.floor(_),V=this.crossFadingFactor();return _>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:z+(1-z)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*z}};var Wl=function(_,z){this.property=_,this.value=z,this.expression=w(z===void 0?_.specification.default:z,_.specification)};Wl.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wl.prototype.possiblyEvaluate=function(_,z,V){return this.property.possiblyEvaluate(this,_,z,V)};var Au=function(_){this.property=_,this.value=new Wl(_,void 0)};Au.prototype.transitioned=function(_,z){return new lf(this.property,this.value,z,x({},_.transition,this.transition),_.now)},Au.prototype.untransitioned=function(){return new lf(this.property,this.value,null,{},0)};var Tu=function(_){this._properties=_,this._values=Object.create(_.defaultTransitionablePropertyValues)};Tu.prototype.getValue=function(_){return W(this._values[_].value.value)},Tu.prototype.setValue=function(_,z){this._values.hasOwnProperty(_)||(this._values[_]=new Au(this._values[_].property)),this._values[_].value=new Wl(this._values[_].property,z===null?void 0:W(z))},Tu.prototype.getTransition=function(_){return W(this._values[_].transition)},Tu.prototype.setTransition=function(_,z){this._values.hasOwnProperty(_)||(this._values[_]=new Au(this._values[_].property)),this._values[_].transition=W(z)||void 0},Tu.prototype.serialize=function(){for(var _={},z=0,V=Object.keys(this._values);zthis.end)return this.prior=null,se;if(this.value.isDataDriven())return this.prior=null,se;if($ve.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:se,to:$}},_.prototype.interpolate=function(V){return V},_})(Bt),Qr=function(_){this.specification=_};Qr.prototype.possiblyEvaluate=function(_,z,V,$){if(_.value!==void 0)if(_.expression.kind==="constant"){var se=_.expression.evaluate(z,null,{},V,$);return this._calculate(se,se,se,z)}else return this._calculate(_.expression.evaluate(new ds(Math.floor(z.zoom-1),z)),_.expression.evaluate(new ds(Math.floor(z.zoom),z)),_.expression.evaluate(new ds(Math.floor(z.zoom+1),z)),z)},Qr.prototype._calculate=function(_,z,V,$){var se=$.zoom;return se>$.zoomHistory.lastIntegerZoom?{from:_,to:z}:{from:V,to:z}},Qr.prototype.interpolate=function(_){return _};var vi=function(_){this.specification=_};vi.prototype.possiblyEvaluate=function(_,z,V,$){return!!_.expression.evaluate(z,null,{},V,$)},vi.prototype.interpolate=function(){return!1};var fi=function(_){this.properties=_,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var z in _){var V=_[z];V.specification.overridable&&this.overridableProperties.push(z);var $=this.defaultPropertyValues[z]=new Wl(V,void 0),se=this.defaultTransitionablePropertyValues[z]=new Au(V);this.defaultTransitioningPropertyValues[z]=se.untransitioned(),this.defaultPossiblyEvaluatedValues[z]=$.possiblyEvaluate({})}};Z("DataDrivenProperty",Bt),Z("DataConstantProperty",Fe),Z("CrossFadedDataDrivenProperty",tr),Z("CrossFadedProperty",Qr),Z("ColorRampProperty",vi);var di="-transition",nn=(function(g){function _(z,V){if(g.call(this),this.id=z.id,this.type=z.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},z.type!=="custom"&&(z=z,this.metadata=z.metadata,this.minzoom=z.minzoom,this.maxzoom=z.maxzoom,z.type!=="background"&&(this.source=z.source,this.sourceLayer=z["source-layer"],this.filter=z.filter),V.layout&&(this._unevaluatedLayout=new Sf(V.layout)),V.paint)){this._transitionablePaint=new Tu(V.paint);for(var $ in z.paint)this.setPaintProperty($,z.paint[$],{validate:!1});for(var se in z.layout)this.setLayoutProperty(se,z.layout[se],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new fc(V.paint)}}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},_.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},_.prototype.setLayoutProperty=function(V,$,se){if(se===void 0&&(se={}),$!=null){var ve="layers."+this.id+".layout."+V;if(this._validate($u,ve,V,$,se))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},_.prototype.getPaintProperty=function(V){return U(V,di)?this._transitionablePaint.getTransition(V.slice(0,-di.length)):this._transitionablePaint.getValue(V)},_.prototype.setPaintProperty=function(V,$,se){if(se===void 0&&(se={}),$!=null){var ve="layers."+this.id+".paint."+V;if(this._validate(Hu,ve,V,$,se))return!1}if(U(V,di))return this._transitionablePaint.setTransition(V.slice(0,-di.length),$||void 0),!1;var Ze=this._transitionablePaint._values[V],At=Ze.property.specification["property-type"]==="cross-faded-data-driven",It=Ze.value.isDataDriven(),Wt=Ze.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var _r=this._transitionablePaint._values[V].value,Or=_r.isDataDriven();return Or||It||At||this._handleOverridablePaintPropertyUpdate(V,Wt,_r)},_.prototype._handleSpecialPaintPropertyUpdate=function(V){},_.prototype._handleOverridablePaintPropertyUpdate=function(V,$,se){return!1},_.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},_.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},_.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},_.prototype.recalculate=function(V,$){V.getCrossfadeParameters&&(this._crossfadeParameters=V.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(V,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(V,void 0,$)},_.prototype.serialize=function(){var V={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(V.layout=V.layout||{},V.layout.visibility=this.visibility),j(V,function($,se){return $!==void 0&&!(se==="layout"&&!Object.keys($).length)&&!(se==="paint"&&!Object.keys($).length)})},_.prototype._validate=function(V,$,se,ve,Ze){return Ze===void 0&&(Ze={}),Ze&&Ze.validate===!1?!1:Ku(this,V.call(nu,{key:$,layerType:this.type,objectKey:se,value:ve,styleSpec:Wi,style:{glyphs:!0,sprite:!0}}))},_.prototype.is3D=function(){return!1},_.prototype.isTileClipped=function(){return!1},_.prototype.hasOffscreenPass=function(){return!1},_.prototype.resize=function(){},_.prototype.isStateDependent=function(){for(var V in this.paint._values){var $=this.paint.get(V);if(!(!($ instanceof pf)||!Zl($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},_})(Ii),On={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ln=function(_,z){this._structArray=_,this._pos1=z*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wn=128,Ls=5,ua=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};ua.serialize=function(_,z){return _._trim(),z&&(_.isTransferred=!0,z.push(_.arrayBuffer)),{length:_.length,arrayBuffer:_.arrayBuffer}},ua.deserialize=function(_){var z=Object.create(this.prototype);return z.arrayBuffer=_.arrayBuffer,z.length=_.length,z.capacity=_.arrayBuffer.byteLength/z.bytesPerElement,z._refreshViews(),z},ua.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ua.prototype.clear=function(){this.length=0},ua.prototype.resize=function(_){this.reserve(_),this.length=_},ua.prototype.reserve=function(_){if(_>this.capacity){this.capacity=Math.max(_,Math.floor(this.capacity*Ls),wn),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var z=this.uint8;this._refreshViews(),z&&this.uint8.set(z)}},ua.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Hn(g,_){_===void 0&&(_=1);var z=0,V=0,$=g.map(function(ve){var Ze=Ni(ve.type),At=z=Wr(z,Math.max(_,Ze)),It=ve.components||1;return V=Math.max(V,Ze),z+=Ze*It,{name:ve.name,type:ve.type,components:It,offset:At}}),se=Wr(z,Math.max(V,_));return{members:$,size:se,alignment:_}}function Ni(g){return On[g].BYTES_PER_ELEMENT}function Wr(g,_){return Math.ceil(g/_)*_}var gi=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$){var se=this.length;return this.resize(se+1),this.emplace(se,V,$)},_.prototype.emplace=function(V,$,se){var ve=V*2;return this.int16[ve+0]=$,this.int16[ve+1]=se,V},_})(ua);gi.prototype.bytesPerElement=4,Z("StructArrayLayout2i4",gi);var dn=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve){var Ze=this.length;return this.resize(Ze+1),this.emplace(Ze,V,$,se,ve)},_.prototype.emplace=function(V,$,se,ve,Ze){var At=V*4;return this.int16[At+0]=$,this.int16[At+1]=se,this.int16[At+2]=ve,this.int16[At+3]=Ze,V},_})(ua);dn.prototype.bytesPerElement=8,Z("StructArrayLayout4i8",dn);var En=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At){var It=this.length;return this.resize(It+1),this.emplace(It,V,$,se,ve,Ze,At)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It){var Wt=V*6;return this.int16[Wt+0]=$,this.int16[Wt+1]=se,this.int16[Wt+2]=ve,this.int16[Wt+3]=Ze,this.int16[Wt+4]=At,this.int16[Wt+5]=It,V},_})(ua);En.prototype.bytesPerElement=12,Z("StructArrayLayout2i4i12",En);var Zi=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At){var It=this.length;return this.resize(It+1),this.emplace(It,V,$,se,ve,Ze,At)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It){var Wt=V*4,_r=V*8;return this.int16[Wt+0]=$,this.int16[Wt+1]=se,this.uint8[_r+4]=ve,this.uint8[_r+5]=Ze,this.uint8[_r+6]=At,this.uint8[_r+7]=It,V},_})(ua);Zi.prototype.bytesPerElement=8,Z("StructArrayLayout2i4ub8",Zi);var ga=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$){var se=this.length;return this.resize(se+1),this.emplace(se,V,$)},_.prototype.emplace=function(V,$,se){var ve=V*2;return this.float32[ve+0]=$,this.float32[ve+1]=se,V},_})(ua);ga.prototype.bytesPerElement=8,Z("StructArrayLayout2f8",ga);var Kn=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r,Or){var Pr=this.length;return this.resize(Pr+1),this.emplace(Pr,V,$,se,ve,Ze,At,It,Wt,_r,Or)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr){var ai=V*10;return this.uint16[ai+0]=$,this.uint16[ai+1]=se,this.uint16[ai+2]=ve,this.uint16[ai+3]=Ze,this.uint16[ai+4]=At,this.uint16[ai+5]=It,this.uint16[ai+6]=Wt,this.uint16[ai+7]=_r,this.uint16[ai+8]=Or,this.uint16[ai+9]=Pr,V},_})(ua);Kn.prototype.bytesPerElement=20,Z("StructArrayLayout10ui20",Kn);var hs=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai){var qi=this.length;return this.resize(qi+1),this.emplace(qi,V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi){var Wn=V*12;return this.int16[Wn+0]=$,this.int16[Wn+1]=se,this.int16[Wn+2]=ve,this.int16[Wn+3]=Ze,this.uint16[Wn+4]=At,this.uint16[Wn+5]=It,this.uint16[Wn+6]=Wt,this.uint16[Wn+7]=_r,this.int16[Wn+8]=Or,this.int16[Wn+9]=Pr,this.int16[Wn+10]=ai,this.int16[Wn+11]=qi,V},_})(ua);hs.prototype.bytesPerElement=24,Z("StructArrayLayout4i4ui4i24",hs);var Ji=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se){var ve=this.length;return this.resize(ve+1),this.emplace(ve,V,$,se)},_.prototype.emplace=function(V,$,se,ve){var Ze=V*3;return this.float32[Ze+0]=$,this.float32[Ze+1]=se,this.float32[Ze+2]=ve,V},_})(ua);Ji.prototype.bytesPerElement=12,Z("StructArrayLayout3f12",Ji);var Ui=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},_.prototype.emplace=function(V,$){var se=V*1;return this.uint32[se+0]=$,V},_})(ua);Ui.prototype.bytesPerElement=4,Z("StructArrayLayout1ul4",Ui);var ro=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r){var Or=this.length;return this.resize(Or+1),this.emplace(Or,V,$,se,ve,Ze,At,It,Wt,_r)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or){var Pr=V*10,ai=V*5;return this.int16[Pr+0]=$,this.int16[Pr+1]=se,this.int16[Pr+2]=ve,this.int16[Pr+3]=Ze,this.int16[Pr+4]=At,this.int16[Pr+5]=It,this.uint32[ai+3]=Wt,this.uint16[Pr+8]=_r,this.uint16[Pr+9]=Or,V},_})(ua);ro.prototype.bytesPerElement=20,Z("StructArrayLayout6i1ul2ui20",ro);var na=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At){var It=this.length;return this.resize(It+1),this.emplace(It,V,$,se,ve,Ze,At)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It){var Wt=V*6;return this.int16[Wt+0]=$,this.int16[Wt+1]=se,this.int16[Wt+2]=ve,this.int16[Wt+3]=Ze,this.int16[Wt+4]=At,this.int16[Wt+5]=It,V},_})(ua);na.prototype.bytesPerElement=12,Z("StructArrayLayout2i2i2i12",na);var Bn=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze){var At=this.length;return this.resize(At+1),this.emplace(At,V,$,se,ve,Ze)},_.prototype.emplace=function(V,$,se,ve,Ze,At){var It=V*4,Wt=V*8;return this.float32[It+0]=$,this.float32[It+1]=se,this.float32[It+2]=ve,this.int16[Wt+6]=Ze,this.int16[Wt+7]=At,V},_})(ua);Bn.prototype.bytesPerElement=16,Z("StructArrayLayout2f1f2i16",Bn);var In=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve){var Ze=this.length;return this.resize(Ze+1),this.emplace(Ze,V,$,se,ve)},_.prototype.emplace=function(V,$,se,ve,Ze){var At=V*12,It=V*3;return this.uint8[At+0]=$,this.uint8[At+1]=se,this.float32[It+1]=ve,this.float32[It+2]=Ze,V},_})(ua);In.prototype.bytesPerElement=12,Z("StructArrayLayout2ub2f12",In);var Va=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se){var ve=this.length;return this.resize(ve+1),this.emplace(ve,V,$,se)},_.prototype.emplace=function(V,$,se,ve){var Ze=V*3;return this.uint16[Ze+0]=$,this.uint16[Ze+1]=se,this.uint16[Ze+2]=ve,V},_})(ua);Va.prototype.bytesPerElement=6,Z("StructArrayLayout3ui6",Va);var _s=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba){var _o=this.length;return this.resize(_o+1),this.emplace(_o,V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba,_o){var Uo=V*24,Zs=V*12,Cl=V*48;return this.int16[Uo+0]=$,this.int16[Uo+1]=se,this.uint16[Uo+2]=ve,this.uint16[Uo+3]=Ze,this.uint32[Zs+2]=At,this.uint32[Zs+3]=It,this.uint32[Zs+4]=Wt,this.uint16[Uo+10]=_r,this.uint16[Uo+11]=Or,this.uint16[Uo+12]=Pr,this.float32[Zs+7]=ai,this.float32[Zs+8]=qi,this.uint8[Cl+36]=Wn,this.uint8[Cl+37]=bn,this.uint8[Cl+38]=bo,this.uint32[Zs+10]=ba,this.int16[Uo+22]=_o,V},_})(ua);_s.prototype.bytesPerElement=48,Z("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",_s);var ul=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Jl,lu,Bu,du,gu){var uf=this.length;return this.resize(uf+1),this.emplace(uf,V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Jl,lu,Bu,du,gu)},_.prototype.emplace=function(V,$,se,ve,Ze,At,It,Wt,_r,Or,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Jl,lu,Bu,du,gu,uf){var Ru=V*34,Rf=V*17;return this.int16[Ru+0]=$,this.int16[Ru+1]=se,this.int16[Ru+2]=ve,this.int16[Ru+3]=Ze,this.int16[Ru+4]=At,this.int16[Ru+5]=It,this.int16[Ru+6]=Wt,this.int16[Ru+7]=_r,this.uint16[Ru+8]=Or,this.uint16[Ru+9]=Pr,this.uint16[Ru+10]=ai,this.uint16[Ru+11]=qi,this.uint16[Ru+12]=Wn,this.uint16[Ru+13]=bn,this.uint16[Ru+14]=bo,this.uint16[Ru+15]=ba,this.uint16[Ru+16]=_o,this.uint16[Ru+17]=Uo,this.uint16[Ru+18]=Zs,this.uint16[Ru+19]=Cl,this.uint16[Ru+20]=Tl,this.uint16[Ru+21]=hu,this.uint16[Ru+22]=Jl,this.uint32[Rf+12]=lu,this.float32[Rf+13]=Bu,this.float32[Rf+14]=du,this.float32[Rf+15]=gu,this.float32[Rf+16]=uf,V},_})(ua);ul.prototype.bytesPerElement=68,Z("StructArrayLayout8i15ui1ul4f68",ul);var Qn=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},_.prototype.emplace=function(V,$){var se=V*1;return this.float32[se+0]=$,V},_})(ua);Qn.prototype.bytesPerElement=4,Z("StructArrayLayout1f4",Qn);var Mo=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se){var ve=this.length;return this.resize(ve+1),this.emplace(ve,V,$,se)},_.prototype.emplace=function(V,$,se,ve){var Ze=V*3;return this.int16[Ze+0]=$,this.int16[Ze+1]=se,this.int16[Ze+2]=ve,V},_})(ua);Mo.prototype.bytesPerElement=6,Z("StructArrayLayout3i6",Mo);var al=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se){var ve=this.length;return this.resize(ve+1),this.emplace(ve,V,$,se)},_.prototype.emplace=function(V,$,se,ve){var Ze=V*2,At=V*4;return this.uint32[Ze+0]=$,this.uint16[At+2]=se,this.uint16[At+3]=ve,V},_})(ua);al.prototype.bytesPerElement=8,Z("StructArrayLayout1ul2ui8",al);var pl=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$){var se=this.length;return this.resize(se+1),this.emplace(se,V,$)},_.prototype.emplace=function(V,$,se){var ve=V*2;return this.uint16[ve+0]=$,this.uint16[ve+1]=se,V},_})(ua);pl.prototype.bytesPerElement=4,Z("StructArrayLayout2ui4",pl);var Dl=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},_.prototype.emplace=function(V,$){var se=V*1;return this.uint16[se+0]=$,V},_})(ua);Dl.prototype.bytesPerElement=2,Z("StructArrayLayout1ui2",Dl);var Ou=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(V,$,se,ve){var Ze=this.length;return this.resize(Ze+1),this.emplace(Ze,V,$,se,ve)},_.prototype.emplace=function(V,$,se,ve,Ze){var At=V*4;return this.float32[At+0]=$,this.float32[At+1]=se,this.float32[At+2]=ve,this.float32[At+3]=Ze,V},_})(ua);Ou.prototype.bytesPerElement=16,Z("StructArrayLayout4f16",Ou);var vf=(function(g){function _(){g.apply(this,arguments)}g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_;var z={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return z.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},z.x1.get=function(){return this._structArray.int16[this._pos2+2]},z.y1.get=function(){return this._structArray.int16[this._pos2+3]},z.x2.get=function(){return this._structArray.int16[this._pos2+4]},z.y2.get=function(){return this._structArray.int16[this._pos2+5]},z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.anchorPoint.get=function(){return new l(this.anchorPointX,this.anchorPointY)},Object.defineProperties(_.prototype,z),_})(Ln);vf.prototype.size=20;var Ql=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.get=function(V){return new vf(this,V)},_})(ro);Z("CollisionBoxArray",Ql);var Mf=(function(g){function _(){g.apply(this,arguments)}g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},z.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},z.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},z.segment.get=function(){return this._structArray.uint16[this._pos2+10]},z.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},z.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},z.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},z.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},z.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},z.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},z.placedOrientation.set=function(V){this._structArray.uint8[this._pos1+37]=V},z.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},z.hidden.set=function(V){this._structArray.uint8[this._pos1+38]=V},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+10]=V},z.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(_.prototype,z),_})(Ln);Mf.prototype.size=48;var Cu=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.get=function(V){return new Mf(this,V)},_})(_s);Z("PlacedSymbolArray",Cu);var gf=(function(g){function _(){g.apply(this,arguments)}g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},z.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},z.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},z.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},z.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},z.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},z.key.get=function(){return this._structArray.uint16[this._pos2+8]},z.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},z.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},z.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},z.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},z.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},z.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},z.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},z.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},z.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},z.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},z.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},z.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},z.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+12]=V},z.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},z.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},z.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},z.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(_.prototype,z),_})(Ln);gf.prototype.size=68;var xf=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.get=function(V){return new gf(this,V)},_})(ul);Z("SymbolInstanceArray",xf);var Cf=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.getoffsetX=function(V){return this.float32[V*1+0]},_})(Qn);Z("GlyphOffsetArray",Cf);var Gu=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.getx=function(V){return this.int16[V*3+0]},_.prototype.gety=function(V){return this.int16[V*3+1]},_.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},_})(Mo);Z("SymbolLineVertexArray",Gu);var cf=(function(g){function _(){g.apply(this,arguments)}g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_;var z={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(_.prototype,z),_})(Ln);cf.prototype.size=8;var mf=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.get=function(V){return new cf(this,V)},_})(al);Z("FeatureIndexArray",mf);var Fl=Hn([{name:"a_pos",components:2,type:"Int16"}],4),bf=Fl.members,cu=function(_){_===void 0&&(_=[]),this.segments=_};cu.prototype.prepareSegment=function(_,z,V,$){var se=this.segments[this.segments.length-1];return _>cu.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+cu.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+_),(!se||se.vertexLength+_>cu.MAX_VERTEX_ARRAY_LENGTH||se.sortKey!==$)&&(se={vertexOffset:z.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(se.sortKey=$),this.segments.push(se)),se},cu.prototype.get=function(){return this.segments},cu.prototype.destroy=function(){for(var _=0,z=this.segments;_>>16)*At&65535)<<16)&4294967295,Wt=Wt<<15|Wt>>>17,Wt=(Wt&65535)*It+(((Wt>>>16)*It&65535)<<16)&4294967295,ve^=Wt,ve=ve<<13|ve>>>19,Ze=(ve&65535)*5+(((ve>>>16)*5&65535)<<16)&4294967295,ve=(Ze&65535)+27492+(((Ze>>>16)+58964&65535)<<16);switch(Wt=0,$){case 3:Wt^=(z.charCodeAt(_r+2)&255)<<16;case 2:Wt^=(z.charCodeAt(_r+1)&255)<<8;case 1:Wt^=z.charCodeAt(_r)&255,Wt=(Wt&65535)*At+(((Wt>>>16)*At&65535)<<16)&4294967295,Wt=Wt<<15|Wt>>>17,Wt=(Wt&65535)*It+(((Wt>>>16)*It&65535)<<16)&4294967295,ve^=Wt}return ve^=z.length,ve^=ve>>>16,ve=(ve&65535)*2246822507+(((ve>>>16)*2246822507&65535)<<16)&4294967295,ve^=ve>>>13,ve=(ve&65535)*3266489909+(((ve>>>16)*3266489909&65535)<<16)&4294967295,ve^=ve>>>16,ve>>>0}g.exports=_}),B=a(function(g){function _(z,V){for(var $=z.length,se=V^$,ve=0,Ze;$>=4;)Ze=z.charCodeAt(ve)&255|(z.charCodeAt(++ve)&255)<<8|(z.charCodeAt(++ve)&255)<<16|(z.charCodeAt(++ve)&255)<<24,Ze=(Ze&65535)*1540483477+(((Ze>>>16)*1540483477&65535)<<16),Ze^=Ze>>>24,Ze=(Ze&65535)*1540483477+(((Ze>>>16)*1540483477&65535)<<16),se=(se&65535)*1540483477+(((se>>>16)*1540483477&65535)<<16)^Ze,$-=4,++ve;switch($){case 3:se^=(z.charCodeAt(ve+2)&255)<<16;case 2:se^=(z.charCodeAt(ve+1)&255)<<8;case 1:se^=z.charCodeAt(ve)&255,se=(se&65535)*1540483477+(((se>>>16)*1540483477&65535)<<16)}return se^=se>>>13,se=(se&65535)*1540483477+(((se>>>16)*1540483477&65535)<<16),se^=se>>>15,se>>>0}g.exports=_}),K=J,ye=J,ne=B;K.murmur3=ye,K.murmur2=ne;var ke=function(){this.ids=[],this.positions=[],this.indexed=!1};ke.prototype.add=function(_,z,V,$){this.ids.push(Ct(_)),this.positions.push(z,V,$)},ke.prototype.getPositions=function(_){for(var z=Ct(_),V=0,$=this.ids.length-1;V<$;){var se=V+$>>1;this.ids[se]>=z?$=se:V=se+1}for(var ve=[];this.ids[V]===z;){var Ze=this.positions[3*V],At=this.positions[3*V+1],It=this.positions[3*V+2];ve.push({index:Ze,start:At,end:It}),V++}return ve},ke.serialize=function(_,z){var V=new Float64Array(_.ids),$=new Uint32Array(_.positions);return ur(V,$,0,V.length-1),z&&z.push(V.buffer,$.buffer),{ids:V,positions:$}},ke.deserialize=function(_){var z=new ke;return z.ids=_.ids,z.positions=_.positions,z.indexed=!0,z};var Je=Math.pow(2,53)-1;function Ct(g){var _=+g;return!isNaN(_)&&_<=Je?_:K(String(g))}function ur(g,_,z,V){for(;z>1],se=z-1,ve=V+1;;){do se++;while(g[se]<$);do ve--;while(g[ve]>$);if(se>=ve)break;Sr(g,se,ve),Sr(_,3*se,3*ve),Sr(_,3*se+1,3*ve+1),Sr(_,3*se+2,3*ve+2)}ve-zve.x+1||Atve.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return z}function iu(g,_){return{type:g.type,id:g.id,properties:g.properties,geometry:_?Zo(g):[]}}function yu(g,_,z,V,$){g.emplaceBack(_*2+(V+1)/2,z*2+($+1)/2)}var Fu=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new gi,this.indexArray=new Va,this.segments=new cu,this.programConfigurations=new Yi(_.layers,_.zoom),this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Fu.prototype.populate=function(_,z,V){var $=this.layers[0],se=[],ve=null;$.type==="circle"&&(ve=$.layout.get("circle-sort-key"));for(var Ze=0,At=_;Ze=Tn||Or<0||Or>=Tn)){var Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,_.sortKey),ai=Pr.vertexLength;yu(this.layoutVertexArray,_r,Or,-1,-1),yu(this.layoutVertexArray,_r,Or,1,-1),yu(this.layoutVertexArray,_r,Or,1,1),yu(this.layoutVertexArray,_r,Or,-1,1),this.indexArray.emplaceBack(ai,ai+1,ai+2),this.indexArray.emplaceBack(ai,ai+3,ai+2),Pr.vertexLength+=4,Pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,_,V,{},$)},Z("CircleBucket",Fu,{omit:["layers"]});function vu(g,_){for(var z=0;z=3){for(var se=0;se<$.length;se++)if(Sd(g,$[se]))return!0}if(wd(g,$,z))return!0}return!1}function wd(g,_,z){if(g.length>1){if(Ad(g,_))return!0;for(var V=0;V<_.length;V++)if(Kp(_[V],g,z))return!0}for(var $=0;$1?g.distSqr(z):g.distSqr(z.sub(_)._mult($)._add(_))}function mv(g,_){for(var z=!1,V,$,se,ve=0;ve_.y!=se.y>_.y&&_.x<(se.x-$.x)*(_.y-$.y)/(se.y-$.y)+$.x&&(z=!z)}return z}function Sd(g,_){for(var z=!1,V=0,$=g.length-1;V_.y!=ve.y>_.y&&_.x<(ve.x-se.x)*(_.y-se.y)/(ve.y-se.y)+se.x&&(z=!z)}return z}function yv(g,_,z,V,$){for(var se=0,ve=g;se=Ze.x&&$>=Ze.y)return!0}var At=[new l(_,z),new l(_,$),new l(V,$),new l(V,z)];if(g.length>2)for(var It=0,Wt=At;It$.x&&_.x>$.x||g.y$.y&&_.y>$.y)return!1;var se=ae(g,_,z[0]);return se!==ae(g,_,z[1])||se!==ae(g,_,z[2])||se!==ae(g,_,z[3])}function Md(g,_,z){var V=_.paint.get(g).value;return V.kind==="constant"?V.value:z.programConfigurations.get(_.id).getMaxValue(g)}function Pp(g){return Math.sqrt(g[0]*g[0]+g[1]*g[1])}function Jp(g,_,z,V,$){if(!_[0]&&!_[1])return g;var se=l.convert(_)._mult($);z==="viewport"&&se._rotate(-V);for(var ve=[],Ze=0;Ze0&&(se=1/Math.sqrt(se)),g[0]=_[0]*se,g[1]=_[1]*se,g[2]=_[2]*se,g}function rB(g,_){return g[0]*_[0]+g[1]*_[1]+g[2]*_[2]}function iB(g,_,z){var V=_[0],$=_[1],se=_[2],ve=z[0],Ze=z[1],At=z[2];return g[0]=$*At-se*Ze,g[1]=se*ve-V*At,g[2]=V*Ze-$*ve,g}function nB(g,_,z){var V=_[0],$=_[1],se=_[2];return g[0]=V*z[0]+$*z[3]+se*z[6],g[1]=V*z[1]+$*z[4]+se*z[7],g[2]=V*z[2]+$*z[5]+se*z[8],g}var aB=uy,QQ=(function(){var g=ly();return function(_,z,V,$,se,ve){var Ze,At;for(z||(z=3),V||(V=0),$?At=Math.min($*z+V,_.length):At=_.length,Ze=V;Zeg.width||$.height>g.height||z.x>g.width-$.width||z.y>g.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>_.width||$.height>_.height||V.x>_.width-$.width||V.y>_.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var ve=g.data,Ze=_.data,At=0;At<$.height;At++)for(var It=((z.y+At)*g.width+z.x)*se,Wt=((V.y+At)*_.width+V.x)*se,_r=0;_r<$.width*se;_r++)Ze[Wt+_r]=ve[It+_r];return _}var Rp=function(_,z){kd(this,_,1,z)};Rp.prototype.resize=function(_){Gw(this,_,1)},Rp.prototype.clone=function(){return new Rp({width:this.width,height:this.height},new Uint8Array(this.data))},Rp.copy=function(_,z,V,$,se){Hw(_,z,V,$,se,1)};var Ih=function(_,z){kd(this,_,4,z)};Ih.prototype.resize=function(_){Gw(this,_,4)},Ih.prototype.replace=function(_,z){z?this.data.set(_):_ instanceof Uint8ClampedArray?this.data=new Uint8Array(_.buffer):this.data=_},Ih.prototype.clone=function(){return new Ih({width:this.width,height:this.height},new Uint8Array(this.data))},Ih.copy=function(_,z,V,$,se){Hw(_,z,V,$,se,4)},Z("AlphaImage",Rp),Z("RGBAImage",Ih);var Qx=new fi({"heatmap-radius":new Bt(Wi.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Bt(Wi.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Fe(Wi.paint_heatmap["heatmap-intensity"]),"heatmap-color":new vi(Wi.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Fe(Wi.paint_heatmap["heatmap-opacity"])}),z1={paint:Qx};function eb(g){var _={},z=g.resolution||256,V=g.clips?g.clips.length:1,$=g.image||new Ih({width:z,height:V}),se=function(bo,ba,_o){_[g.evaluationKey]=_o;var Uo=g.expression.evaluate(_);$.data[bo+ba+0]=Math.floor(Uo.r*255/Uo.a),$.data[bo+ba+1]=Math.floor(Uo.g*255/Uo.a),$.data[bo+ba+2]=Math.floor(Uo.b*255/Uo.a),$.data[bo+ba+3]=Math.floor(Uo.a*255)};if(g.clips)for(var It=0,Wt=0;It80*z){Ze=It=g[0],At=Wt=g[1];for(var ai=z;ai<$;ai+=z)_r=g[ai],Or=g[ai+1],_rIt&&(It=_r),Or>Wt&&(Wt=Or);Pr=Math.max(It-Ze,Wt-At),Pr=Pr!==0?1/Pr:0}return tb(se,ve,z,Ze,At,Pr),ve}function Xw(g,_,z,V,$){var se,ve;if($===xM(g,_,z,V)>0)for(se=_;se=_;se-=V)ve=BC(se,g[se],g[se+1],ve);return ve&&ib(ve,ve.next)&&(ob(ve),ve=ve.next),ve}function fy(g,_){if(!g)return g;_||(_=g);var z=g,V;do if(V=!1,!z.steiner&&(ib(z,z.next)||Jc(z.prev,z,z.next)===0)){if(ob(z),z=_=z.prev,z===z.next)break;V=!0}else z=z.next;while(V||z!==_);return _}function tb(g,_,z,V,$,se,ve){if(g){!ve&&se&&Zw(g,V,$,se);for(var Ze=g,At,It;g.prev!==g.next;){if(At=g.prev,It=g.next,se?DC(g,V,$,se):RC(g)){_.push(At.i/z),_.push(g.i/z),_.push(It.i/z),ob(g),g=It.next,Ze=It.next;continue}if(g=It,g===Ze){ve?ve===1?(g=rb(fy(g),_,z),tb(g,_,z,V,$,se,2)):ve===2&&p0(g,_,z,V,$,se):tb(fy(g),_,z,V,$,se,1);break}}}}function RC(g){var _=g.prev,z=g,V=g.next;if(Jc(_,z,V)>=0)return!1;for(var $=g.next.next;$!==g.prev;){if(hy(_.x,_.y,z.x,z.y,V.x,V.y,$.x,$.y)&&Jc($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function DC(g,_,z,V){var $=g.prev,se=g,ve=g.next;if(Jc($,se,ve)>=0)return!1;for(var Ze=$.xse.x?$.x>ve.x?$.x:ve.x:se.x>ve.x?se.x:ve.x,Wt=$.y>se.y?$.y>ve.y?$.y:ve.y:se.y>ve.y?se.y:ve.y,_r=mM(Ze,At,_,z,V),Or=mM(It,Wt,_,z,V),Pr=g.prevZ,ai=g.nextZ;Pr&&Pr.z>=_r&&ai&&ai.z<=Or;){if(Pr!==g.prev&&Pr!==g.next&&hy($.x,$.y,se.x,se.y,ve.x,ve.y,Pr.x,Pr.y)&&Jc(Pr.prev,Pr,Pr.next)>=0||(Pr=Pr.prevZ,ai!==g.prev&&ai!==g.next&&hy($.x,$.y,se.x,se.y,ve.x,ve.y,ai.x,ai.y)&&Jc(ai.prev,ai,ai.next)>=0))return!1;ai=ai.nextZ}for(;Pr&&Pr.z>=_r;){if(Pr!==g.prev&&Pr!==g.next&&hy($.x,$.y,se.x,se.y,ve.x,ve.y,Pr.x,Pr.y)&&Jc(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.prevZ}for(;ai&&ai.z<=Or;){if(ai!==g.prev&&ai!==g.next&&hy($.x,$.y,se.x,se.y,ve.x,ve.y,ai.x,ai.y)&&Jc(ai.prev,ai,ai.next)>=0)return!1;ai=ai.nextZ}return!0}function rb(g,_,z){var V=g;do{var $=V.prev,se=V.next.next;!ib($,se)&&Yw($,V,V.next,se)&&ab($,se)&&ab(se,$)&&(_.push($.i/z),_.push(V.i/z),_.push(se.i/z),ob(V),ob(V.next),V=g=se),V=V.next}while(V!==g);return fy(V)}function p0(g,_,z,V,$,se){var ve=g;do{for(var Ze=ve.next.next;Ze!==ve.prev;){if(ve.i!==Ze.i&&R1(ve,Ze)){var At=gM(ve,Ze);ve=fy(ve,ve.next),At=fy(At,At.next),tb(ve,_,z,V,$,se),tb(At,_,z,V,$,se);return}Ze=Ze.next}ve=ve.next}while(ve!==g)}function cy(g,_,z,V){var $=[],se,ve,Ze,At,It;for(se=0,ve=_.length;se=z.next.y&&z.next.y!==z.y){var Ze=z.x+($-z.y)*(z.next.x-z.x)/(z.next.y-z.y);if(Ze<=V&&Ze>se){if(se=Ze,Ze===V){if($===z.y)return z;if($===z.next.y)return z.next}ve=z.x=z.x&&z.x>=It&&V!==z.x&&hy($ve.x||z.x===ve.x&&pB(ve,z)))&&(ve=z,_r=Or)),z=z.next;while(z!==At);return ve}function pB(g,_){return Jc(g.prev,g,_.prev)<0&&Jc(_.next,g,g.next)<0}function Zw(g,_,z,V){var $=g;do $.z===null&&($.z=mM($.x,$.y,_,z,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==g);$.prevZ.nextZ=null,$.prevZ=null,vM($)}function vM(g){var _,z,V,$,se,ve,Ze,At,It=1;do{for(z=g,g=null,se=null,ve=0;z;){for(ve++,V=z,Ze=0,_=0;_0||At>0&&V;)Ze!==0&&(At===0||!V||z.z<=V.z)?($=z,z=z.nextZ,Ze--):($=V,V=V.nextZ,At--),se?se.nextZ=$:g=$,$.prevZ=se,se=$;z=V}se.nextZ=null,It*=2}while(ve>1);return g}function mM(g,_,z,V,$){return g=32767*(g-z)*$,_=32767*(_-V)*$,g=(g|g<<8)&16711935,g=(g|g<<4)&252645135,g=(g|g<<2)&858993459,g=(g|g<<1)&1431655765,_=(_|_<<8)&16711935,_=(_|_<<4)&252645135,_=(_|_<<2)&858993459,_=(_|_<<1)&1431655765,g|_<<1}function yM(g){var _=g,z=g;do(_.x=0&&(g-ve)*(V-Ze)-(z-ve)*(_-Ze)>=0&&(z-ve)*(se-Ze)-($-ve)*(V-Ze)>=0}function R1(g,_){return g.next.i!==_.i&&g.prev.i!==_.i&&!OC(g,_)&&(ab(g,_)&&ab(_,g)&&vB(g,_)&&(Jc(g.prev,g,_.prev)||Jc(g,_.prev,_))||ib(g,_)&&Jc(g.prev,g,g.next)>0&&Jc(_.prev,_,_.next)>0)}function Jc(g,_,z){return(_.y-g.y)*(z.x-_.x)-(_.x-g.x)*(z.y-_.y)}function ib(g,_){return g.x===_.x&&g.y===_.y}function Yw(g,_,z,V){var $=gg(Jc(g,_,z)),se=gg(Jc(g,_,V)),ve=gg(Jc(z,V,g)),Ze=gg(Jc(z,V,_));return!!($!==se&&ve!==Ze||$===0&&nb(g,z,_)||se===0&&nb(g,V,_)||ve===0&&nb(z,g,V)||Ze===0&&nb(z,_,V))}function nb(g,_,z){return _.x<=Math.max(g.x,z.x)&&_.x>=Math.min(g.x,z.x)&&_.y<=Math.max(g.y,z.y)&&_.y>=Math.min(g.y,z.y)}function gg(g){return g>0?1:g<0?-1:0}function OC(g,_){var z=g;do{if(z.i!==g.i&&z.next.i!==g.i&&z.i!==_.i&&z.next.i!==_.i&&Yw(z,z.next,g,_))return!0;z=z.next}while(z!==g);return!1}function ab(g,_){return Jc(g.prev,g,g.next)<0?Jc(g,_,g.next)>=0&&Jc(g,g.prev,_)>=0:Jc(g,_,g.prev)<0||Jc(g,g.next,_)<0}function vB(g,_){var z=g,V=!1,$=(g.x+_.x)/2,se=(g.y+_.y)/2;do z.y>se!=z.next.y>se&&z.next.y!==z.y&&$<(z.next.x-z.x)*(se-z.y)/(z.next.y-z.y)+z.x&&(V=!V),z=z.next;while(z!==g);return V}function gM(g,_){var z=new _M(g.i,g.x,g.y),V=new _M(_.i,_.x,_.y),$=g.next,se=_.prev;return g.next=_,_.prev=g,z.next=$,$.prev=z,V.next=z,z.prev=V,se.next=V,V.prev=se,V}function BC(g,_,z,V){var $=new _M(g,_,z);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function ob(g){g.next.prev=g.prev,g.prev.next=g.next,g.prevZ&&(g.prevZ.nextZ=g.nextZ),g.nextZ&&(g.nextZ.prevZ=g.prevZ)}function _M(g,_,z){this.i=g,this.x=_,this.y=z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}I1.deviation=function(g,_,z,V){var $=_&&_.length,se=$?_[0]*z:g.length,ve=Math.abs(xM(g,0,se,z));if($)for(var Ze=0,At=_.length;Ze0&&(V+=g[$-1].length,z.holes.push(V))}return z},jw.default=IC;function bM(g,_,z,V,$){vm(g,_,z||0,V||g.length-1,$||qC)}function vm(g,_,z,V,$){for(;V>z;){if(V-z>600){var se=V-z+1,ve=_-z+1,Ze=Math.log(se),At=.5*Math.exp(2*Ze/3),It=.5*Math.sqrt(Ze*At*(se-At)/se)*(ve-se/2<0?-1:1),Wt=Math.max(z,Math.floor(_-ve*At/se+It)),_r=Math.min(V,Math.floor(_+(se-ve)*At/se+It));vm(g,_,Wt,_r,$)}var Or=g[_],Pr=z,ai=V;for(D1(g,z,_),$(g[V],Or)>0&&D1(g,z,V);Pr0;)ai--}$(g[z],Or)===0?D1(g,z,ai):(ai++,D1(g,ai,V)),ai<=_&&(z=ai+1),_<=ai&&(V=ai-1)}}function D1(g,_,z){var V=g[_];g[_]=g[z],g[z]=V}function qC(g,_){return g<_?-1:g>_?1:0}function Kw(g,_){var z=g.length;if(z<=1)return[g];for(var V=[],$,se,ve=0;ve1)for(var At=0;At>3}if(V--,z===1||z===2)$+=g.readSVarint(),se+=g.readSVarint(),z===1&&(Ze&&ve.push(Ze),Ze=[]),Ze.push(new l($,se));else if(z===7)Ze&&Ze.push(Ze[0].clone());else throw new Error("unknown command "+z)}return Ze&&ve.push(Ze),ve},_g.prototype.bbox=function(){var g=this._pbf;g.pos=this._geometry;for(var _=g.readVarint()+g.pos,z=1,V=0,$=0,se=0,ve=1/0,Ze=-1/0,At=1/0,It=-1/0;g.pos<_;){if(V<=0){var Wt=g.readVarint();z=Wt&7,V=Wt>>3}if(V--,z===1||z===2)$+=g.readSVarint(),se+=g.readSVarint(),$Ze&&(Ze=$),seIt&&(It=se);else if(z!==7)throw new Error("unknown command "+z)}return[ve,At,Ze,It]},_g.prototype.toGeoJSON=function(g,_,z){var V=this.extent*Math.pow(2,z),$=this.extent*g,se=this.extent*_,ve=this.loadGeometry(),Ze=_g.types[this.type],At,It;function Wt(Pr){for(var ai=0;ai>3;_=V===1?g.readString():V===2?g.readFloat():V===3?g.readDouble():V===4?g.readVarint64():V===5?g.readVarint():V===6?g.readSVarint():V===7?g.readBoolean():null}return _}TM.prototype.feature=function(g){if(g<0||g>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[g];var _=this._pbf.readVarint()+this._pbf.pos;return new AM(this._pbf,_,this.extent,this._keys,this._values)};var YC=yB;function yB(g,_){this.layers=g.readFields(gB,{},_)}function gB(g,_,z){if(g===3){var V=new mm(z,z.readVarint()+z.pos);V.length&&(_[V.name]=V)}}var KC=YC,F1=AM,JC=mm,ym={VectorTile:KC,VectorTileFeature:F1,VectorTileLayer:JC},$C=ym.VectorTileFeature.types,$w=500,O1=Math.pow(2,13);function dy(g,_,z,V,$,se,ve,Ze){g.emplaceBack(_,z,Math.floor(V*O1)*2+ve,$*O1*2,se*O1*2,Math.round(Ze))}var Vv=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new En,this.indexArray=new Va,this.programConfigurations=new Yi(_.layers,_.zoom),this.segments=new cu,this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Vv.prototype.populate=function(_,z,V){this.features=[],this.hasPattern=Jw("fill-extrusion",this.layers,z);for(var $=0,se=_;$=1){var _o=Wn[bo-1];if(!_B(ba,_o)){Pr.vertexLength+4>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Uo=ba.sub(_o)._perp()._unit(),Zs=_o.dist(ba);bn+Zs>32768&&(bn=0),dy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,0,bn),dy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,1,bn),bn+=Zs,dy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,0,bn),dy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,1,bn);var Cl=Pr.vertexLength;this.indexArray.emplaceBack(Cl,Cl+2,Cl+1),this.indexArray.emplaceBack(Cl+1,Cl+2,Cl+3),Pr.vertexLength+=4,Pr.primitiveLength+=2}}}}if(Pr.vertexLength+It>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(It,this.layoutVertexArray,this.indexArray)),$C[_.type]==="Polygon"){for(var Tl=[],hu=[],Jl=Pr.vertexLength,lu=0,Bu=At;luTn)||g.y===_.y&&(g.y<0||g.y>Tn)}function xB(g){return g.every(function(_){return _.x<0})||g.every(function(_){return _.x>Tn})||g.every(function(_){return _.y<0})||g.every(function(_){return _.y>Tn})}var B1=new fi({"fill-extrusion-opacity":new Fe(Wi["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Bt(Wi["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Fe(Wi["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Fe(Wi["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new tr(Wi["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Bt(Wi["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Bt(Wi["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Fe(Wi["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ud={paint:B1},py=(function(g){function _(z){g.call(this,z,ud)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.createBucket=function(V){return new Vv(V)},_.prototype.queryRadius=function(){return Pp(this.paint.get("fill-extrusion-translate"))},_.prototype.is3D=function(){return!0},_.prototype.queryIntersectsFeature=function(V,$,se,ve,Ze,At,It,Wt){var _r=Jp(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),At.angle,It),Or=this.paint.get("fill-extrusion-height").evaluate($,se),Pr=this.paint.get("fill-extrusion-base").evaluate($,se),ai=bB(_r,Wt,At,0),qi=MM(ve,Pr,Or,Wt),Wn=qi[0],bn=qi[1];return QC(Wn,bn,ai)},_})(nn);function xg(g,_){return g.x*_.x+g.y*_.y}function SM(g,_){if(g.length===1){for(var z=0,V=_[z++],$;!$||V.equals($);)if($=_[z++],!$)return 1/0;for(;z<_.length;z++){var se=_[z],ve=g[0],Ze=$.sub(V),At=se.sub(V),It=ve.sub(V),Wt=xg(Ze,Ze),_r=xg(Ze,At),Or=xg(At,At),Pr=xg(It,Ze),ai=xg(It,At),qi=Wt*Or-_r*_r,Wn=(Or*Pr-_r*ai)/qi,bn=(Wt*ai-_r*Pr)/qi,bo=1-Wn-bn,ba=V.z*bo+$.z*Wn+se.z*bn;if(isFinite(ba))return ba}return 1/0}else{for(var _o=1/0,Uo=0,Zs=_;Uo=2&&_[It-1].equals(_[It-2]);)It--;for(var Wt=0;Wt0;if(Tl&&bo>Wt){var Jl=Pr.dist(ai);if(Jl>2*_r){var lu=Pr.sub(Pr.sub(ai)._mult(_r/Jl)._round());this.updateDistance(ai,lu),this.addCurrentVertex(lu,Wn,0,0,Or),ai=lu}}var Bu=ai&&qi,du=Bu?V:At?"butt":$;if(Bu&&du==="round"&&(Zsse&&(du="bevel"),du==="bevel"&&(Zs>2&&(du="flipbevel"),Zs100)ba=bn.mult(-1);else{var gu=Zs*Wn.add(bn).mag()/Wn.sub(bn).mag();ba._perp()._mult(gu*(hu?-1:1))}this.addCurrentVertex(Pr,ba,0,0,Or),this.addCurrentVertex(Pr,ba.mult(-1),0,0,Or)}else if(du==="bevel"||du==="fakeround"){var uf=-Math.sqrt(Zs*Zs-1),Ru=hu?uf:0,Rf=hu?0:uf;if(ai&&this.addCurrentVertex(Pr,Wn,Ru,Rf,Or),du==="fakeround")for(var sc=Math.round(Cl*180/Math.PI/kM),Df=1;Df2*_r){var _h=Pr.add(qi.sub(Pr)._mult(_r/td)._round());this.updateDistance(Pr,_h),this.addCurrentVertex(_h,bn,0,0,Or),Pr=_h}}}}},mh.prototype.addCurrentVertex=function(_,z,V,$,se,ve){ve===void 0&&(ve=!1);var Ze=z.x+z.y*V,At=z.y-z.x*V,It=-z.x+z.y*$,Wt=-z.y-z.x*$;this.addHalfVertex(_,Ze,At,ve,!1,V,se),this.addHalfVertex(_,It,Wt,ve,!0,-$,se),this.distance>cb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(_,z,V,$,se,ve))},mh.prototype.addHalfVertex=function(_,z,V,$,se,ve,Ze){var At=_.x,It=_.y,Wt=this.lineClips?this.scaledDistance*(cb-1):this.scaledDistance,_r=Wt*e3;if(this.layoutVertexArray.emplaceBack((At<<1)+($?1:0),(It<<1)+(se?1:0),Math.round(Qw*z)+128,Math.round(Qw*V)+128,(ve===0?0:ve<0?-1:1)+1|(_r&63)<<2,_r>>6),this.lineClips){var Or=this.scaledDistance-this.lineClips.start,Pr=this.lineClips.end-this.lineClips.start,ai=Or/Pr;this.layoutVertexArray2.emplaceBack(ai,this.lineClipsArray.length)}var qi=Ze.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qi),Ze.primitiveLength++),se?this.e2=qi:this.e1=qi},mh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},mh.prototype.updateDistance=function(_,z){this.distance+=_.dist(z),this.updateScaledDistance()},Z("LineBucket",mh,{omit:["layers","patternFeatures"]});var CM=new fi({"line-cap":new Fe(Wi.layout_line["line-cap"]),"line-join":new Bt(Wi.layout_line["line-join"]),"line-miter-limit":new Fe(Wi.layout_line["line-miter-limit"]),"line-round-limit":new Fe(Wi.layout_line["line-round-limit"]),"line-sort-key":new Bt(Wi.layout_line["line-sort-key"])}),LM=new fi({"line-opacity":new Bt(Wi.paint_line["line-opacity"]),"line-color":new Bt(Wi.paint_line["line-color"]),"line-translate":new Fe(Wi.paint_line["line-translate"]),"line-translate-anchor":new Fe(Wi.paint_line["line-translate-anchor"]),"line-width":new Bt(Wi.paint_line["line-width"]),"line-gap-width":new Bt(Wi.paint_line["line-gap-width"]),"line-offset":new Bt(Wi.paint_line["line-offset"]),"line-blur":new Bt(Wi.paint_line["line-blur"]),"line-dasharray":new Qr(Wi.paint_line["line-dasharray"]),"line-pattern":new tr(Wi.paint_line["line-pattern"]),"line-gradient":new vi(Wi.paint_line["line-gradient"])}),t3={paint:LM,layout:CM},AB=(function(g){function _(){g.apply(this,arguments)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.possiblyEvaluate=function(V,$){return $=new ds(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),g.prototype.possiblyEvaluate.call(this,V,$)},_.prototype.evaluate=function(V,$,se,ve){return $=x({},$,{zoom:Math.floor($.zoom)}),g.prototype.evaluate.call(this,V,$,se,ve)},_})(Bt),I=new AB(t3.paint.properties["line-width"].specification);I.useIntegerZoom=!0;var T=(function(g){function _(z){g.call(this,z,t3),this.gradientVersion=0}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype._handleSpecialPaintPropertyUpdate=function(V){if(V==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof Do,this.gradientVersion=(this.gradientVersion+1)%d}},_.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},_.prototype.recalculate=function(V,$){g.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=I.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},_.prototype.createBucket=function(V){return new mh(V)},_.prototype.queryRadius=function(V){var $=V,se=D(Md("line-width",this,$),Md("line-gap-width",this,$)),ve=Md("line-offset",this,$);return se/2+Math.abs(ve)+Pp(this.paint.get("line-translate"))},_.prototype.queryIntersectsFeature=function(V,$,se,ve,Ze,At,It){var Wt=Jp(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),At.angle,It),_r=It/2*D(this.paint.get("line-width").evaluate($,se),this.paint.get("line-gap-width").evaluate($,se)),Or=this.paint.get("line-offset").evaluate($,se);return Or&&(ve=X(ve,Or*It)),Uf(Wt,ve,_r)},_.prototype.isTileClipped=function(){return!0},_})(nn);function D(g,_){return _>0?_+2*g:g}function X(g,_){for(var z=[],V=new l(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function La(g){for(var _="",z=0;z>1,Wt=-7,_r=z?$-1:0,Or=z?-1:1,Pr=g[_+_r];for(_r+=Or,se=Pr&(1<<-Wt)-1,Pr>>=-Wt,Wt+=Ze;Wt>0;se=se*256+g[_+_r],_r+=Or,Wt-=8);for(ve=se&(1<<-Wt)-1,se>>=-Wt,Wt+=V;Wt>0;ve=ve*256+g[_+_r],_r+=Or,Wt-=8);if(se===0)se=1-It;else{if(se===At)return ve?NaN:(Pr?-1:1)*(1/0);ve=ve+Math.pow(2,V),se=se-It}return(Pr?-1:1)*ve*Math.pow(2,se-V)},mu=function(g,_,z,V,$,se){var ve,Ze,At,It=se*8-$-1,Wt=(1<>1,Or=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pr=V?0:se-1,ai=V?1:-1,qi=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(Ze=isNaN(_)?1:0,ve=Wt):(ve=Math.floor(Math.log(_)/Math.LN2),_*(At=Math.pow(2,-ve))<1&&(ve--,At*=2),ve+_r>=1?_+=Or/At:_+=Or*Math.pow(2,1-_r),_*At>=2&&(ve++,At/=2),ve+_r>=Wt?(Ze=0,ve=Wt):ve+_r>=1?(Ze=(_*At-1)*Math.pow(2,$),ve=ve+_r):(Ze=_*Math.pow(2,_r-1)*Math.pow(2,$),ve=0));$>=8;g[z+Pr]=Ze&255,Pr+=ai,Ze/=256,$-=8);for(ve=ve<<$|Ze,It+=$;It>0;g[z+Pr]=ve&255,Pr+=ai,ve/=256,It-=8);g[z+Pr-ai]|=qi*128},Iu={read:kl,write:mu},su=yl;function yl(g){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(g)?g:new Uint8Array(g||0),this.pos=0,this.type=0,this.length=this.buf.length}yl.Varint=0,yl.Fixed64=1,yl.Bytes=2,yl.Fixed32=5;var Eu=65536*65536,bu=1/Eu,_u=12,Xs=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");yl.prototype={destroy:function(){this.buf=null},readFields:function(g,_,z){for(z=z||this.length;this.pos>3,se=this.pos;this.type=V&7,g($,_,this),this.pos===se&&this.skip(V)}return _},readMessage:function(g,_){return this.readFields(g,_,this.readVarint()+this.pos)},readFixed32:function(){var g=$h(this.buf,this.pos);return this.pos+=4,g},readSFixed32:function(){var g=Dp(this.buf,this.pos);return this.pos+=4,g},readFixed64:function(){var g=$h(this.buf,this.pos)+$h(this.buf,this.pos+4)*Eu;return this.pos+=8,g},readSFixed64:function(){var g=$h(this.buf,this.pos)+Dp(this.buf,this.pos+4)*Eu;return this.pos+=8,g},readFloat:function(){var g=Iu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,g},readDouble:function(){var g=Iu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,g},readVarint:function(g){var _=this.buf,z,V;return V=_[this.pos++],z=V&127,V<128||(V=_[this.pos++],z|=(V&127)<<7,V<128)||(V=_[this.pos++],z|=(V&127)<<14,V<128)||(V=_[this.pos++],z|=(V&127)<<21,V<128)?z:(V=_[this.pos],z|=(V&15)<<28,Lu(z,g,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var g=this.readVarint();return g%2===1?(g+1)/-2:g/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var g=this.readVarint()+this.pos,_=this.pos;return this.pos=g,g-_>=_u&&Xs?Xf(this.buf,_,g):cp(this.buf,_,g)},readBytes:function(){var g=this.readVarint()+this.pos,_=this.buf.subarray(this.pos,g);return this.pos=g,_},readPackedVarint:function(g,_){if(this.type!==yl.Bytes)return g.push(this.readVarint(_));var z=xu(this);for(g=g||[];this.pos127;);else if(_===yl.Bytes)this.pos=this.readVarint()+this.pos;else if(_===yl.Fixed32)this.pos+=4;else if(_===yl.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+_)},writeTag:function(g,_){this.writeVarint(g<<3|_)},realloc:function(g){for(var _=this.length||16;_268435455||g<0){vc(g,this);return}this.realloc(4),this.buf[this.pos++]=g&127|(g>127?128:0),!(g<=127)&&(this.buf[this.pos++]=(g>>>=7)&127|(g>127?128:0),!(g<=127)&&(this.buf[this.pos++]=(g>>>=7)&127|(g>127?128:0),!(g<=127)&&(this.buf[this.pos++]=g>>>7&127)))},writeSVarint:function(g){this.writeVarint(g<0?-g*2-1:g*2)},writeBoolean:function(g){this.writeVarint(!!g)},writeString:function(g){g=String(g),this.realloc(g.length*4),this.pos++;var _=this.pos;this.pos=Ac(this.buf,g,this.pos);var z=this.pos-_;z>=128&&Qp(_,z,this),this.pos=_-1,this.writeVarint(z),this.pos+=z},writeFloat:function(g){this.realloc(4),Iu.write(this.buf,g,this.pos,!0,23,4),this.pos+=4},writeDouble:function(g){this.realloc(8),Iu.write(this.buf,g,this.pos,!0,52,8),this.pos+=8},writeBytes:function(g){var _=g.length;this.writeVarint(_),this.realloc(_);for(var z=0;z<_;z++)this.buf[this.pos++]=g[z]},writeRawMessage:function(g,_){this.pos++;var z=this.pos;g(_,this);var V=this.pos-z;V>=128&&Qp(z,V,this),this.pos=z-1,this.writeVarint(V),this.pos+=V},writeMessage:function(g,_,z){this.writeTag(g,yl.Bytes),this.writeRawMessage(_,z)},writePackedVarint:function(g,_){_.length&&this.writeMessage(g,fd,_)},writePackedSVarint:function(g,_){_.length&&this.writeMessage(g,Dh,_)},writePackedBoolean:function(g,_){_.length&&this.writeMessage(g,Xd,_)},writePackedFloat:function(g,_){_.length&&this.writeMessage(g,Wd,_)},writePackedDouble:function(g,_){_.length&&this.writeMessage(g,jd,_)},writePackedFixed32:function(g,_){_.length&&this.writeMessage(g,$c,_)},writePackedSFixed32:function(g,_){_.length&&this.writeMessage(g,Fh,_)},writePackedFixed64:function(g,_){_.length&&this.writeMessage(g,Cd,_)},writePackedSFixed64:function(g,_){_.length&&this.writeMessage(g,cd,_)},writeBytesField:function(g,_){this.writeTag(g,yl.Bytes),this.writeBytes(_)},writeFixed32Field:function(g,_){this.writeTag(g,yl.Fixed32),this.writeFixed32(_)},writeSFixed32Field:function(g,_){this.writeTag(g,yl.Fixed32),this.writeSFixed32(_)},writeFixed64Field:function(g,_){this.writeTag(g,yl.Fixed64),this.writeFixed64(_)},writeSFixed64Field:function(g,_){this.writeTag(g,yl.Fixed64),this.writeSFixed64(_)},writeVarintField:function(g,_){this.writeTag(g,yl.Varint),this.writeVarint(_)},writeSVarintField:function(g,_){this.writeTag(g,yl.Varint),this.writeSVarint(_)},writeStringField:function(g,_){this.writeTag(g,yl.Bytes),this.writeString(_)},writeFloatField:function(g,_){this.writeTag(g,yl.Fixed32),this.writeFloat(_)},writeDoubleField:function(g,_){this.writeTag(g,yl.Fixed64),this.writeDouble(_)},writeBooleanField:function(g,_){this.writeVarintField(g,!!_)}};function Lu(g,_,z){var V=z.buf,$,se;if(se=V[z.pos++],$=(se&112)>>4,se<128||(se=V[z.pos++],$|=(se&127)<<3,se<128)||(se=V[z.pos++],$|=(se&127)<<10,se<128)||(se=V[z.pos++],$|=(se&127)<<17,se<128)||(se=V[z.pos++],$|=(se&127)<<24,se<128)||(se=V[z.pos++],$|=(se&1)<<31,se<128))return qu(g,$,_);throw new Error("Expected varint not more than 10 bytes")}function xu(g){return g.type===yl.Bytes?g.readVarint()+g.pos:g.pos+1}function qu(g,_,z){return z?_*4294967296+(g>>>0):(_>>>0)*4294967296+(g>>>0)}function vc(g,_){var z,V;if(g>=0?(z=g%4294967296|0,V=g/4294967296|0):(z=~(-g%4294967296),V=~(-g/4294967296),z^4294967295?z=z+1|0:(z=0,V=V+1|0)),g>=18446744073709552e3||g<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");_.realloc(10),cc(z,V,_),Rh(V,_)}function cc(g,_,z){z.buf[z.pos++]=g&127|128,g>>>=7,z.buf[z.pos++]=g&127|128,g>>>=7,z.buf[z.pos++]=g&127|128,g>>>=7,z.buf[z.pos++]=g&127|128,g>>>=7,z.buf[z.pos]=g&127}function Rh(g,_){var z=(g&7)<<4;_.buf[_.pos++]|=z|((g>>>=3)?128:0),g&&(_.buf[_.pos++]=g&127|((g>>>=7)?128:0),g&&(_.buf[_.pos++]=g&127|((g>>>=7)?128:0),g&&(_.buf[_.pos++]=g&127|((g>>>=7)?128:0),g&&(_.buf[_.pos++]=g&127|((g>>>=7)?128:0),g&&(_.buf[_.pos++]=g&127)))))}function Qp(g,_,z){var V=_<=16383?1:_<=2097151?2:_<=268435455?3:Math.floor(Math.log(_)/(Math.LN2*7));z.realloc(V);for(var $=z.pos-1;$>=g;$--)z.buf[$+V]=z.buf[$]}function fd(g,_){for(var z=0;z>>8,g[z+2]=_>>>16,g[z+3]=_>>>24}function Dp(g,_){return(g[_]|g[_+1]<<8|g[_+2]<<16)+(g[_+3]<<24)}function cp(g,_,z){for(var V="",$=_;$239?4:se>223?3:se>191?2:1;if($+Ze>z)break;var At,It,Wt;Ze===1?se<128&&(ve=se):Ze===2?(At=g[$+1],(At&192)===128&&(ve=(se&31)<<6|At&63,ve<=127&&(ve=null))):Ze===3?(At=g[$+1],It=g[$+2],(At&192)===128&&(It&192)===128&&(ve=(se&15)<<12|(At&63)<<6|It&63,(ve<=2047||ve>=55296&&ve<=57343)&&(ve=null))):Ze===4&&(At=g[$+1],It=g[$+2],Wt=g[$+3],(At&192)===128&&(It&192)===128&&(Wt&192)===128&&(ve=(se&15)<<18|(At&63)<<12|(It&63)<<6|Wt&63,(ve<=65535||ve>=1114112)&&(ve=null))),ve===null?(ve=65533,Ze=1):ve>65535&&(ve-=65536,V+=String.fromCharCode(ve>>>10&1023|55296),ve=56320|ve&1023),V+=String.fromCharCode(ve),$+=Ze}return V}function Xf(g,_,z){return Xs.decode(g.subarray(_,z))}function Ac(g,_,z){for(var V=0,$,se;V<_.length;V++){if($=_.charCodeAt(V),$>55295&&$<57344)if(se)if($<56320){g[z++]=239,g[z++]=191,g[z++]=189,se=$;continue}else $=se-55296<<10|$-56320|65536,se=null;else{$>56319||V+1===_.length?(g[z++]=239,g[z++]=191,g[z++]=189):se=$;continue}else se&&(g[z++]=239,g[z++]=191,g[z++]=189,se=null);$<128?g[z++]=$:($<2048?g[z++]=$>>6|192:($<65536?g[z++]=$>>12|224:(g[z++]=$>>18|240,g[z++]=$>>12&63|128),g[z++]=$>>6&63|128),g[z++]=$&63|128)}return z}var mc=3;function Fp(g,_,z){g===1&&z.readMessage(Wc,_)}function Wc(g,_,z){if(g===3){var V=z.readMessage(q1,{}),$=V.id,se=V.bitmap,ve=V.width,Ze=V.height,At=V.left,It=V.top,Wt=V.advance;_.push({id:$,bitmap:new Rp({width:ve+2*mc,height:Ze+2*mc},se),metrics:{width:ve,height:Ze,left:At,top:It,advance:Wt}})}}function q1(g,_,z){g===1?_.id=z.readVarint():g===2?_.bitmap=z.readBytes():g===3?_.width=z.readVarint():g===4?_.height=z.readVarint():g===5?_.left=z.readSVarint():g===6?_.top=z.readSVarint():g===7&&(_.advance=z.readVarint())}function v0(g){return new su(g).readFields(Fp,[])}var Gv=mc;function ev(g){for(var _=0,z=0,V=0,$=g;V<$.length;V+=1){var se=$[V];_+=se.w*se.h,z=Math.max(z,se.w)}g.sort(function(Wn,bn){return bn.h-Wn.h});for(var ve=Math.max(Math.ceil(Math.sqrt(_/.95)),z),Ze=[{x:0,y:0,w:ve,h:1/0}],At=0,It=0,Wt=0,_r=g;Wt<_r.length;Wt+=1)for(var Or=_r[Wt],Pr=Ze.length-1;Pr>=0;Pr--){var ai=Ze[Pr];if(!(Or.w>ai.w||Or.h>ai.h)){if(Or.x=ai.x,Or.y=ai.y,It=Math.max(It,Or.y+Or.h),At=Math.max(At,Or.x+Or.w),Or.w===ai.w&&Or.h===ai.h){var qi=Ze.pop();Pr=0&&$>=_&&y0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(_,V),this.sectionIndex=this.sectionIndex.slice(_,V)},Qh.prototype.substring=function(_,z){var V=new Qh;return V.text=this.text.substring(_,z),V.sectionIndex=this.sectionIndex.slice(_,z),V.sections=this.sections,V},Qh.prototype.toString=function(){return this.text},Qh.prototype.getMaxScale=function(){var _=this;return this.sectionIndex.reduce(function(z,V){return Math.max(z,_.sections[V].scale)},0)},Qh.prototype.addTextSection=function(_,z){this.text+=_.text,this.sections.push(bg.forText(_.scale,_.fontStack||z));for(var V=this.sections.length-1,$=0;$<_.text.length;++$)this.sectionIndex.push(V)},Qh.prototype.addImageSection=function(_){var z=_.image?_.image.name:"";if(z.length===0){re("Can't add FormattedSection with an empty image.");return}var V=this.getNextImageSectionCharCode();if(!V){re("Reached maximum number of images "+(m0-r3+2));return}this.text+=String.fromCharCode(V),this.sections.push(bg.forImage(z)),this.sectionIndex.push(this.sections.length-1)},Qh.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=m0?null:++this.imageSectionID:(this.imageSectionID=r3,this.imageSectionID)};function TB(g,_){for(var z=[],V=g.text,$=0,se=0,ve=_;se=0,Wt=0,_r=0;_r0&&_h>hu&&(hu=_h)}else{var Ff=z[lu.fontStack],Pf=Ff&&Ff[du];if(Pf&&Pf.rect)Ru=Pf.rect,uf=Pf.metrics;else{var yc=_[lu.fontStack],Tc=yc&&yc[du];if(!Tc)continue;uf=Tc.metrics}gu=(Uo-lu.scale)*So}Df?(g.verticalizable=!0,Tl.push({glyph:du,imageName:Rf,x:Or,y:Pr+gu,vertical:Df,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:uf,rect:Ru}),Or+=sc*lu.scale+It):(Tl.push({glyph:du,imageName:Rf,x:Or,y:Pr+gu,vertical:Df,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:uf,rect:Ru}),Or+=uf.advance*lu.scale+It)}if(Tl.length!==0){var Yd=Or-It;ai=Math.max(Yd,ai),kB(Tl,0,Tl.length-1,Wn,hu)}Or=0;var Kd=se*Uo+hu;Cl.lineOffset=Math.max(hu,Zs),Pr+=Kd,qi=Math.max(Kd,qi),++bn}var rd=Pr-N1,pp=zM(ve),vp=pp.horizontalAlign,Oh=pp.verticalAlign;Ld(g.positionedLines,Wn,vp,Oh,ai,qi,se,rd,$.length),g.top+=-Oh*rd,g.bottom=g.top+rd,g.left+=-vp*ai,g.right=g.left+ai}function kB(g,_,z,V,$){if(!(!V&&!$))for(var se=g[z],ve=se.metrics.advance*se.scale,Ze=(g[z].x+ve)*V,At=_;At<=z;At++)g[At].x-=Ze,g[At].y+=$}function Ld(g,_,z,V,$,se,ve,Ze,At){var It=(_-z)*$,Wt=0;se!==ve?Wt=-Ze*V-N1:Wt=(-V*At+.5)*ve;for(var _r=0,Or=g;_r-z/2;){if(ve--,ve<0)return!1;Ze-=g[ve].dist(se),se=g[ve]}Ze+=g[ve].dist(g[ve+1]),ve++;for(var At=[],It=0;ZeV;)It-=At.shift().angleDelta;if(It>$)return!1;ve++,Ze+=_r.dist(Or)}return!0}function nee(g){for(var _=0,z=0;zIt){var ai=(It-At)/Pr,qi=Lo(_r.x,Or.x,ai),Wn=Lo(_r.y,Or.y,ai),bn=new Zd(qi,Wn,Or.angleTo(_r),Wt);return bn._round(),!ve||iee(g,bn,Ze,ve,_)?bn:void 0}At+=Pr}}function Ltt(g,_,z,V,$,se,ve,Ze,At){var It=aee(V,se,ve),Wt=oee(V,$),_r=Wt*ve,Or=g[0].x===0||g[0].x===At||g[0].y===0||g[0].y===At;_-_r<_/4&&(_=_r+_/4);var Pr=se*2,ai=Or?_/2*Ze%_:(Wt/2+Pr)*ve*Ze%_;return see(g,ai,_,It,z,_r,Or,!1,At)}function see(g,_,z,V,$,se,ve,Ze,At){for(var It=se/2,Wt=nee(g),_r=0,Or=_-z,Pr=[],ai=0;ai=0&&_o=0&&Uo=0&&Or+It<=Wt){var Zs=new Zd(_o,Uo,bo,ai);Zs._round(),(!V||iee(g,Zs,se,V,$))&&Pr.push(Zs)}}_r+=bn}return!Ze&&!Pr.length&&!ve&&(Pr=see(g,_r/2,z,V,$,se,ve,!0,At)),Pr}function lee(g,_,z,V,$){for(var se=[],ve=0;ve=V&&_r.x>=V)&&(Wt.x>=V?Wt=new l(V,Wt.y+(_r.y-Wt.y)*((V-Wt.x)/(_r.x-Wt.x)))._round():_r.x>=V&&(_r=new l(V,Wt.y+(_r.y-Wt.y)*((V-Wt.x)/(_r.x-Wt.x)))._round()),!(Wt.y>=$&&_r.y>=$)&&(Wt.y>=$?Wt=new l(Wt.x+(_r.x-Wt.x)*(($-Wt.y)/(_r.y-Wt.y)),$)._round():_r.y>=$&&(_r=new l(Wt.x+(_r.x-Wt.x)*(($-Wt.y)/(_r.y-Wt.y)),$)._round()),(!At||!Wt.equals(At[At.length-1]))&&(At=[Wt],se.push(At)),At.push(_r)))))}return se}var a3=Rc;function uee(g,_,z,V){var $=[],se=g.image,ve=se.pixelRatio,Ze=se.paddedRect.w-2*a3,At=se.paddedRect.h-2*a3,It=g.right-g.left,Wt=g.bottom-g.top,_r=se.stretchX||[[0,Ze]],Or=se.stretchY||[[0,At]],Pr=function(Ff,Pf){return Ff+Pf[1]-Pf[0]},ai=_r.reduce(Pr,0),qi=Or.reduce(Pr,0),Wn=Ze-ai,bn=At-qi,bo=0,ba=ai,_o=0,Uo=qi,Zs=0,Cl=Wn,Tl=0,hu=bn;if(se.content&&V){var Jl=se.content;bo=sL(_r,0,Jl[0]),_o=sL(Or,0,Jl[1]),ba=sL(_r,Jl[0],Jl[2]),Uo=sL(Or,Jl[1],Jl[3]),Zs=Jl[0]-bo,Tl=Jl[1]-_o,Cl=Jl[2]-Jl[0]-ba,hu=Jl[3]-Jl[1]-Uo}var lu=function(Ff,Pf,yc,Tc){var Qc=lL(Ff.stretch-bo,ba,It,g.left),nh=uL(Ff.fixed-Zs,Cl,Ff.stretch,ai),td=lL(Pf.stretch-_o,Uo,Wt,g.top),_h=uL(Pf.fixed-Tl,hu,Pf.stretch,qi),Yd=lL(yc.stretch-bo,ba,It,g.left),Kd=uL(yc.fixed-Zs,Cl,yc.stretch,ai),rd=lL(Tc.stretch-_o,Uo,Wt,g.top),pp=uL(Tc.fixed-Tl,hu,Tc.stretch,qi),vp=new l(Qc,td),Oh=new l(Yd,td),mp=new l(Yd,rd),bv=new l(Qc,rd),Tg=new l(nh/ve,_h/ve),G1=new l(Kd/ve,pp/ve),H1=_*Math.PI/180;if(H1){var W1=Math.sin(H1),d3=Math.cos(H1),g0=[d3,-W1,W1,d3];vp._matMult(g0),Oh._matMult(g0),bv._matMult(g0),mp._matMult(g0)}var vL=Ff.stretch+Ff.fixed,FB=yc.stretch+yc.fixed,mL=Pf.stretch+Pf.fixed,OB=Tc.stretch+Tc.fixed,Hv={x:se.paddedRect.x+a3+vL,y:se.paddedRect.y+a3+mL,w:FB-vL,h:OB-mL},p3=Cl/ve/It,yL=hu/ve/Wt;return{tl:vp,tr:Oh,bl:bv,br:mp,tex:Hv,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Tg,pixelOffsetBR:G1,minFontScaleX:p3,minFontScaleY:yL,isSDF:z}};if(!V||!se.stretchX&&!se.stretchY)$.push(lu({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Ze+1},{fixed:0,stretch:At+1}));else for(var Bu=fee(_r,Wn,ai),du=fee(Or,bn,qi),gu=0;gu0&&(ai=Math.max(10,ai),this.circleDiameter=ai)}else{var qi=ve.top*Ze-At,Wn=ve.bottom*Ze+At,bn=ve.left*Ze-At,bo=ve.right*Ze+At,ba=ve.collisionPadding;if(ba&&(bn-=ba[0]*Ze,qi-=ba[1]*Ze,bo+=ba[2]*Ze,Wn+=ba[3]*Ze),Wt){var _o=new l(bn,qi),Uo=new l(bo,qi),Zs=new l(bn,Wn),Cl=new l(bo,Wn),Tl=Wt*Math.PI/180;_o._rotate(Tl),Uo._rotate(Tl),Zs._rotate(Tl),Cl._rotate(Tl),bn=Math.min(_o.x,Uo.x,Zs.x,Cl.x),bo=Math.max(_o.x,Uo.x,Zs.x,Cl.x),qi=Math.min(_o.y,Uo.y,Zs.y,Cl.y),Wn=Math.max(_o.y,Uo.y,Zs.y,Cl.y)}_.emplaceBack(z.x,z.y,bn,qi,bo,Wn,V,$,se)}this.boxEndIndex=_.length},o3=function(_,z){if(_===void 0&&(_=[]),z===void 0&&(z=ztt),this.data=_,this.length=this.data.length,this.compare=z,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};o3.prototype.push=function(_){this.data.push(_),this.length++,this._up(this.length-1)},o3.prototype.pop=function(){if(this.length!==0){var _=this.data[0],z=this.data.pop();return this.length--,this.length>0&&(this.data[0]=z,this._down(0)),_}},o3.prototype.peek=function(){return this.data[0]},o3.prototype._up=function(_){for(var z=this,V=z.data,$=z.compare,se=V[_];_>0;){var ve=_-1>>1,Ze=V[ve];if($(se,Ze)>=0)break;V[_]=Ze,_=ve}V[_]=se},o3.prototype._down=function(_){for(var z=this,V=z.data,$=z.compare,se=this.length>>1,ve=V[_];_=0)break;V[_]=At,_=Ze}V[_]=ve};function ztt(g,_){return g<_?-1:g>_?1:0}function Itt(g,_,z){_===void 0&&(_=1),z===void 0&&(z=!1);for(var V=1/0,$=1/0,se=-1/0,ve=-1/0,Ze=g[0],At=0;Atse)&&(se=It.x),(!At||It.y>ve)&&(ve=It.y)}var Wt=se-V,_r=ve-$,Or=Math.min(Wt,_r),Pr=Or/2,ai=new o3([],Rtt);if(Or===0)return new l(V,$);for(var qi=V;qibn.d||!bn.d)&&(bn=ba,z&&console.log("found best %d after %d probes",Math.round(1e4*ba.d)/1e4,bo)),!(ba.max-bn.d<=_)&&(Pr=ba.h/2,ai.push(new s3(ba.p.x-Pr,ba.p.y-Pr,Pr,g)),ai.push(new s3(ba.p.x+Pr,ba.p.y-Pr,Pr,g)),ai.push(new s3(ba.p.x-Pr,ba.p.y+Pr,Pr,g)),ai.push(new s3(ba.p.x+Pr,ba.p.y+Pr,Pr,g)),bo+=4)}return z&&(console.log("num probes: "+bo),console.log("best distance: "+bn.d)),bn.p}function Rtt(g,_){return _.max-g.max}function s3(g,_,z,V){this.p=new l(g,_),this.h=z,this.d=Dtt(this.p,V),this.max=this.d+this.h*Math.SQRT2}function Dtt(g,_){for(var z=!1,V=1/0,$=0;$<_.length;$++)for(var se=_[$],ve=0,Ze=se.length,At=Ze-1;veg.y!=Wt.y>g.y&&g.x<(Wt.x-It.x)*(g.y-It.y)/(Wt.y-It.y)+It.x&&(z=!z),V=Math.min(V,hm(g,It,Wt))}return(z?1:-1)*Math.sqrt(V)}function Ftt(g){for(var _=0,z=0,V=0,$=g[0],se=0,ve=$.length,Ze=ve-1;se=Tn||g0.y<0||g0.y>=Tn||qtt(g,g0,d3,z,V,$,du,g.layers[0],g.collisionBoxArray,_.index,_.sourceLayerIndex,g.index,bn,Uo,Tl,At,ba,Zs,hu,Pr,_,se,It,Wt,ve)};if(Jl==="line")for(var uf=0,Ru=lee(_.geometry,0,0,Tn,Tn);uf1){var td=Ctt(nh,Cl,z.vertical||ai,V,qi,bo);td&&gu(nh,td)}}else if(_.type==="Polygon")for(var _h=0,Yd=Kw(_.geometry,0);_hU1&&re(g.layerIds[0]+': Value for "text-size" is >= '+IM+'. Reduce your "text-size".')):Wn.kind==="composite"&&(bn=[Pd*Pr.compositeTextSizes[0].evaluate(ve,{},ai),Pd*Pr.compositeTextSizes[1].evaluate(ve,{},ai)],(bn[0]>U1||bn[1]>U1)&&re(g.layerIds[0]+': Value for "text-size" is >= '+IM+'. Reduce your "text-size".')),g.addSymbols(g.text,qi,bn,Ze,se,ve,It,_,At.lineStartIndex,At.lineLength,Or,ai);for(var bo=0,ba=Wt;boU1&&re(g.layerIds[0]+': Value for "icon-size" is >= '+IM+'. Reduce your "icon-size".')):vp.kind==="composite"&&(Oh=[Pd*Uo.compositeIconSizes[0].evaluate(_o,{},Cl),Pd*Uo.compositeIconSizes[1].evaluate(_o,{},Cl)],(Oh[0]>U1||Oh[1]>U1)&&re(g.layerIds[0]+': Value for "icon-size" is >= '+IM+'. Reduce your "icon-size".')),g.addSymbols(g.icon,rd,Oh,ba,bo,_o,!1,_,Jl.lineStartIndex,Jl.lineLength,-1,Cl),Df=g.icon.placedSymbolArray.length-1,pp&&(Ru=pp.length*4,g.addSymbols(g.icon,pp,Oh,ba,bo,_o,hp.vertical,_,Jl.lineStartIndex,Jl.lineLength,-1,Cl),Ff=g.icon.placedSymbolArray.length-1)}for(var mp in V.horizontal){var bv=V.horizontal[mp];if(!lu){yc=K(bv.text);var Tg=Ze.layout.get("text-rotate").evaluate(_o,{},Cl);lu=new fL(At,_,It,Wt,_r,bv,Or,Pr,ai,Tg)}var G1=bv.positionedLines.length===1;if(Rf+=hee(g,_,bv,se,Ze,ai,_o,qi,Jl,V.vertical?hp.horizontal:hp.horizontalOnly,G1?Object.keys(V.horizontal):[mp],Pf,Df,Uo,Cl),G1)break}V.vertical&&(sc+=hee(g,_,V.vertical,se,Ze,ai,_o,qi,Jl,hp.vertical,["vertical"],Pf,Ff,Uo,Cl));var H1=lu?lu.boxStartIndex:g.collisionBoxArray.length,W1=lu?lu.boxEndIndex:g.collisionBoxArray.length,d3=du?du.boxStartIndex:g.collisionBoxArray.length,g0=du?du.boxEndIndex:g.collisionBoxArray.length,vL=Bu?Bu.boxStartIndex:g.collisionBoxArray.length,FB=Bu?Bu.boxEndIndex:g.collisionBoxArray.length,mL=gu?gu.boxStartIndex:g.collisionBoxArray.length,OB=gu?gu.boxEndIndex:g.collisionBoxArray.length,Hv=-1,p3=function(FM,Cee){return FM&&FM.circleDiameter?Math.max(FM.circleDiameter,Cee):Cee};Hv=p3(lu,Hv),Hv=p3(du,Hv),Hv=p3(Bu,Hv),Hv=p3(gu,Hv);var yL=Hv>-1?1:0;yL&&(Hv*=Tl/So),g.glyphOffsetArray.length>=oc.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),_o.sortKey!==void 0&&g.addToSortKeyRanges(g.symbolInstances.length,_o.sortKey),g.symbolInstances.emplaceBack(_.x,_.y,Pf.right>=0?Pf.right:-1,Pf.center>=0?Pf.center:-1,Pf.left>=0?Pf.left:-1,Pf.vertical||-1,Df,Ff,yc,H1,W1,d3,g0,vL,FB,mL,OB,It,Rf,sc,uf,Ru,yL,0,Or,Tc,Qc,Hv)}function Ntt(g,_,z,V){var $=g.compareText;if(!(_ in $))$[_]=[];else for(var se=$[_],ve=se.length-1;ve>=0;ve--)if(V.dist(se[ve])0)&&(ve.value.kind!=="constant"||ve.value.value.length>0),Wt=At.value.kind!=="constant"||!!At.value.value||Object.keys(At.parameters).length>0,_r=se.get("symbol-sort-key");if(this.features=[],!(!It&&!Wt)){for(var Or=z.iconDependencies,Pr=z.glyphDependencies,ai=z.availableImages,qi=new ds(this.zoom),Wn=0,bn=_;Wn=0;for(var sc=0,Df=hu.sections;sc=0;At--)ve[At]={x:z[At].x,y:z[At].y,tileUnitDistanceFromAnchor:se},At>0&&(se+=z[At-1].dist(z[At]));for(var It=0;It0},oc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},oc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},oc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},oc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},oc.prototype.addIndicesForPlacedSymbol=function(_,z){for(var V=_.placedSymbolArray.get(z),$=V.vertexStartIndex+V.numGlyphs*4,se=V.vertexStartIndex;se<$;se+=4)_.indexArray.emplaceBack(se,se+1,se+2),_.indexArray.emplaceBack(se+1,se+2,se+3)},oc.prototype.getSortedSymbolIndexes=function(_){if(this.sortedAngle===_&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var z=Math.sin(_),V=Math.cos(_),$=[],se=[],ve=[],Ze=0;Ze1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(_),this.sortedAngle=_,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var se=$[V],ve=this.symbolInstances.get(se);this.featureSortOrder.push(ve.featureIndex),[ve.rightJustifiedTextSymbolIndex,ve.centerJustifiedTextSymbolIndex,ve.leftJustifiedTextSymbolIndex].forEach(function(Ze,At,It){Ze>=0&&It.indexOf(Ze)===At&&z.addIndicesForPlacedSymbol(z.text,Ze)}),ve.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,ve.verticalPlacedTextSymbolIndex),ve.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ve.placedIconSymbolIndex),ve.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ve.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Z("SymbolBucket",oc,{omit:["layers","collisionBoxArray","features","compareText"]}),oc.MAX_GLYPHS=65535,oc.addDynamicAttributes=PB;function Htt(g,_){return _.replace(/{([^{}]+)}/g,function(z,V){return V in g?String(g[V]):""})}var Wtt=new fi({"symbol-placement":new Fe(Wi.layout_symbol["symbol-placement"]),"symbol-spacing":new Fe(Wi.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Fe(Wi.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Bt(Wi.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Fe(Wi.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Fe(Wi.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Fe(Wi.layout_symbol["icon-ignore-placement"]),"icon-optional":new Fe(Wi.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Fe(Wi.layout_symbol["icon-rotation-alignment"]),"icon-size":new Bt(Wi.layout_symbol["icon-size"]),"icon-text-fit":new Fe(Wi.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Fe(Wi.layout_symbol["icon-text-fit-padding"]),"icon-image":new Bt(Wi.layout_symbol["icon-image"]),"icon-rotate":new Bt(Wi.layout_symbol["icon-rotate"]),"icon-padding":new Fe(Wi.layout_symbol["icon-padding"]),"icon-keep-upright":new Fe(Wi.layout_symbol["icon-keep-upright"]),"icon-offset":new Bt(Wi.layout_symbol["icon-offset"]),"icon-anchor":new Bt(Wi.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Fe(Wi.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Fe(Wi.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Fe(Wi.layout_symbol["text-rotation-alignment"]),"text-field":new Bt(Wi.layout_symbol["text-field"]),"text-font":new Bt(Wi.layout_symbol["text-font"]),"text-size":new Bt(Wi.layout_symbol["text-size"]),"text-max-width":new Bt(Wi.layout_symbol["text-max-width"]),"text-line-height":new Fe(Wi.layout_symbol["text-line-height"]),"text-letter-spacing":new Bt(Wi.layout_symbol["text-letter-spacing"]),"text-justify":new Bt(Wi.layout_symbol["text-justify"]),"text-radial-offset":new Bt(Wi.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Fe(Wi.layout_symbol["text-variable-anchor"]),"text-anchor":new Bt(Wi.layout_symbol["text-anchor"]),"text-max-angle":new Fe(Wi.layout_symbol["text-max-angle"]),"text-writing-mode":new Fe(Wi.layout_symbol["text-writing-mode"]),"text-rotate":new Bt(Wi.layout_symbol["text-rotate"]),"text-padding":new Fe(Wi.layout_symbol["text-padding"]),"text-keep-upright":new Fe(Wi.layout_symbol["text-keep-upright"]),"text-transform":new Bt(Wi.layout_symbol["text-transform"]),"text-offset":new Bt(Wi.layout_symbol["text-offset"]),"text-allow-overlap":new Fe(Wi.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Fe(Wi.layout_symbol["text-ignore-placement"]),"text-optional":new Fe(Wi.layout_symbol["text-optional"])}),jtt=new fi({"icon-opacity":new Bt(Wi.paint_symbol["icon-opacity"]),"icon-color":new Bt(Wi.paint_symbol["icon-color"]),"icon-halo-color":new Bt(Wi.paint_symbol["icon-halo-color"]),"icon-halo-width":new Bt(Wi.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Bt(Wi.paint_symbol["icon-halo-blur"]),"icon-translate":new Fe(Wi.paint_symbol["icon-translate"]),"icon-translate-anchor":new Fe(Wi.paint_symbol["icon-translate-anchor"]),"text-opacity":new Bt(Wi.paint_symbol["text-opacity"]),"text-color":new Bt(Wi.paint_symbol["text-color"],{runtimeType:vn,getOverride:function(g){return g.textColor},hasOverride:function(g){return!!g.textColor}}),"text-halo-color":new Bt(Wi.paint_symbol["text-halo-color"]),"text-halo-width":new Bt(Wi.paint_symbol["text-halo-width"]),"text-halo-blur":new Bt(Wi.paint_symbol["text-halo-blur"]),"text-translate":new Fe(Wi.paint_symbol["text-translate"]),"text-translate-anchor":new Fe(Wi.paint_symbol["text-translate-anchor"])}),zB={paint:jtt,layout:Wtt},f3=function(_){this.type=_.property.overrides?_.property.overrides.runtimeType:Qo,this.defaultValue=_};f3.prototype.evaluate=function(_){if(_.formattedSection){var z=this.defaultValue.property.overrides;if(z&&z.hasOverride(_.formattedSection))return z.getOverride(_.formattedSection)}return _.feature&&_.featureState?this.defaultValue.evaluate(_.feature,_.featureState):this.defaultValue.property.specification.default},f3.prototype.eachChild=function(_){if(!this.defaultValue.isConstant()){var z=this.defaultValue.value;_(z._styleExpression.expression)}},f3.prototype.outputDefined=function(){return!1},f3.prototype.serialize=function(){return null},Z("FormatSectionOverride",f3,{omit:["defaultValue"]});var Xtt=(function(g){function _(z){g.call(this,z,zB)}return g&&(_.__proto__=g),_.prototype=Object.create(g&&g.prototype),_.prototype.constructor=_,_.prototype.recalculate=function(V,$){if(g.prototype.recalculate.call(this,V,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var se=this.layout.get("text-writing-mode");if(se){for(var ve=[],Ze=0,At=se;Ze",targetMapId:$,sourceMapId:ve.mapId})}}},c3.prototype.receive=function(_){var z=_.data,V=z.id;if(V&&!(z.targetMapId&&this.mapId!==z.targetMapId))if(z.type===""){delete this.tasks[V];var $=this.cancelCallbacks[V];delete this.cancelCallbacks[V],$&&$()}else Ee()||z.mustQueue?(this.tasks[V]=z,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,z)},c3.prototype.process=function(){if(this.taskQueue.length){var _=this.taskQueue.shift(),z=this.tasks[_];delete this.tasks[_],this.taskQueue.length&&this.invoker.trigger(),z&&this.processTask(_,z)}},c3.prototype.processTask=function(_,z){var V=this;if(z.type===""){var $=this.callbacks[_];delete this.callbacks[_],$&&(z.error?$(ut(z.error)):$(null,ut(z.data)))}else{var se=!1,ve=Se(this.globalScope)?void 0:[],Ze=z.hasCallback?function(Or,Pr){se=!0,delete V.cancelCallbacks[_],V.target.postMessage({id:_,type:"",sourceMapId:V.mapId,error:Or?nt(Or):null,data:nt(Pr,ve)},ve)}:function(Or){se=!0},At=null,It=ut(z.data);if(this.parent[z.type])At=this.parent[z.type](z.sourceMapId,It,Ze);else if(this.parent.getWorkerSource){var Wt=z.type.split("."),_r=this.parent.getWorkerSource(z.sourceMapId,Wt[0],It.source);At=_r[Wt[1]](It,Ze)}else Ze(new Error("Could not find function "+z.type));!se&&At&&At.cancel&&(this.cancelCallbacks[_]=At.cancel)}},c3.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function nrt(g,_,z){_=Math.pow(2,z)-_-1;var V=gee(g*256,_*256,z),$=gee((g+1)*256,(_+1)*256,z);return V[0]+","+V[1]+","+$[0]+","+$[1]}function gee(g,_,z){var V=2*Math.PI*6378137/256/Math.pow(2,z),$=g*V-2*Math.PI*6378137/2,se=_*V-2*Math.PI*6378137/2;return[$,se]}var yh=function(_,z){_&&(z?this.setSouthWest(_).setNorthEast(z):_.length===4?this.setSouthWest([_[0],_[1]]).setNorthEast([_[2],_[3]]):this.setSouthWest(_[0]).setNorthEast(_[1]))};yh.prototype.setNorthEast=function(_){return this._ne=_ instanceof Dc?new Dc(_.lng,_.lat):Dc.convert(_),this},yh.prototype.setSouthWest=function(_){return this._sw=_ instanceof Dc?new Dc(_.lng,_.lat):Dc.convert(_),this},yh.prototype.extend=function(_){var z=this._sw,V=this._ne,$,se;if(_ instanceof Dc)$=_,se=_;else if(_ instanceof yh){if($=_._sw,se=_._ne,!$||!se)return this}else{if(Array.isArray(_))if(_.length===4||_.every(Array.isArray)){var ve=_;return this.extend(yh.convert(ve))}else{var Ze=_;return this.extend(Dc.convert(Ze))}return this}return!z&&!V?(this._sw=new Dc($.lng,$.lat),this._ne=new Dc(se.lng,se.lat)):(z.lng=Math.min($.lng,z.lng),z.lat=Math.min($.lat,z.lat),V.lng=Math.max(se.lng,V.lng),V.lat=Math.max(se.lat,V.lat)),this},yh.prototype.getCenter=function(){return new Dc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},yh.prototype.getSouthWest=function(){return this._sw},yh.prototype.getNorthEast=function(){return this._ne},yh.prototype.getNorthWest=function(){return new Dc(this.getWest(),this.getNorth())},yh.prototype.getSouthEast=function(){return new Dc(this.getEast(),this.getSouth())},yh.prototype.getWest=function(){return this._sw.lng},yh.prototype.getSouth=function(){return this._sw.lat},yh.prototype.getEast=function(){return this._ne.lng},yh.prototype.getNorth=function(){return this._ne.lat},yh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},yh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},yh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},yh.prototype.contains=function(_){var z=Dc.convert(_),V=z.lng,$=z.lat,se=this._sw.lat<=$&&$<=this._ne.lat,ve=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ve=this._sw.lng>=V&&V>=this._ne.lng),se&&ve},yh.convert=function(_){return!_||_ instanceof yh?_:new yh(_)};var _ee=63710088e-1,Dc=function(_,z){if(isNaN(_)||isNaN(z))throw new Error("Invalid LngLat object: ("+_+", "+z+")");if(this.lng=+_,this.lat=+z,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Dc.prototype.wrap=function(){return new Dc(C(this.lng,-180,180),this.lat)},Dc.prototype.toArray=function(){return[this.lng,this.lat]},Dc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Dc.prototype.distanceTo=function(_){var z=Math.PI/180,V=this.lat*z,$=_.lat*z,se=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((_.lng-this.lng)*z),ve=_ee*Math.acos(Math.min(se,1));return ve},Dc.prototype.toBounds=function(_){_===void 0&&(_=0);var z=40075017,V=360*_/z,$=V/Math.cos(Math.PI/180*this.lat);return new yh(new Dc(this.lng-$,this.lat-V),new Dc(this.lng+$,this.lat+V))},Dc.convert=function(_){if(_ instanceof Dc)return _;if(Array.isArray(_)&&(_.length===2||_.length===3))return new Dc(Number(_[0]),Number(_[1]));if(!Array.isArray(_)&&typeof _=="object"&&_!==null)return new Dc(Number("lng"in _?_.lng:_.lon),Number(_.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var xee=2*Math.PI*_ee;function bee(g){return xee*Math.cos(g*Math.PI/180)}function wee(g){return(180+g)/360}function Aee(g){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+g*Math.PI/360)))/360}function Tee(g,_){return g/bee(_)}function art(g){return g*360-180}function RB(g){var _=180-g*360;return 360/Math.PI*Math.atan(Math.exp(_*Math.PI/180))-90}function ort(g,_){return g*bee(RB(_))}function srt(g){return 1/Math.cos(g*Math.PI/180)}var pb=function(_,z,V){V===void 0&&(V=0),this.x=+_,this.y=+z,this.z=+V};pb.fromLngLat=function(_,z){z===void 0&&(z=0);var V=Dc.convert(_);return new pb(wee(V.lng),Aee(V.lat),Tee(z,V.lat))},pb.prototype.toLngLat=function(){return new Dc(art(this.x),RB(this.y))},pb.prototype.toAltitude=function(){return ort(this.z,this.y)},pb.prototype.meterInMercatorCoordinateUnits=function(){return 1/xee*srt(RB(this.y))};var vb=function(_,z,V){this.z=_,this.x=z,this.y=V,this.key=DM(0,_,_,z,V)};vb.prototype.equals=function(_){return this.z===_.z&&this.x===_.x&&this.y===_.y},vb.prototype.url=function(_,z){var V=nrt(this.x,this.y,this.z),$=lrt(this.z,this.x,this.y);return _[(this.x+this.y)%_.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(z==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",V)},vb.prototype.getTilePoint=function(_){var z=Math.pow(2,this.z);return new l((_.x*z-this.x)*Tn,(_.y*z-this.y)*Tn)},vb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var See=function(_,z){this.wrap=_,this.canonical=z,this.key=DM(_,z.z,z.z,z.x,z.y)},gh=function(_,z,V,$,se){this.overscaledZ=_,this.wrap=z,this.canonical=new vb(V,+$,+se),this.key=DM(z,_,V,$,se)};gh.prototype.equals=function(_){return this.overscaledZ===_.overscaledZ&&this.wrap===_.wrap&&this.canonical.equals(_.canonical)},gh.prototype.scaledTo=function(_){var z=this.canonical.z-_;return _>this.canonical.z?new gh(_,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gh(_,this.wrap,_,this.canonical.x>>z,this.canonical.y>>z)},gh.prototype.calculateScaledKey=function(_,z){var V=this.canonical.z-_;return _>this.canonical.z?DM(this.wrap*+z,_,this.canonical.z,this.canonical.x,this.canonical.y):DM(this.wrap*+z,_,_,this.canonical.x>>V,this.canonical.y>>V)},gh.prototype.isChildOf=function(_){if(_.wrap!==this.wrap)return!1;var z=this.canonical.z-_.canonical.z;return _.overscaledZ===0||_.overscaledZ>z&&_.canonical.y===this.canonical.y>>z},gh.prototype.children=function(_){if(this.overscaledZ>=_)return[new gh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var z=this.canonical.z+1,V=this.canonical.x*2,$=this.canonical.y*2;return[new gh(z,this.wrap,z,V,$),new gh(z,this.wrap,z,V+1,$),new gh(z,this.wrap,z,V,$+1),new gh(z,this.wrap,z,V+1,$+1)]},gh.prototype.isLessThan=function(_){return this.wrap<_.wrap?!0:this.wrap>_.wrap?!1:this.overscaledZ<_.overscaledZ?!0:this.overscaledZ>_.overscaledZ?!1:this.canonical.x<_.canonical.x?!0:this.canonical.x>_.canonical.x?!1:this.canonical.y<_.canonical.y},gh.prototype.wrapped=function(){return new gh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},gh.prototype.unwrapTo=function(_){return new gh(this.overscaledZ,_,this.canonical.z,this.canonical.x,this.canonical.y)},gh.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},gh.prototype.toUnwrapped=function(){return new See(this.wrap,this.canonical)},gh.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},gh.prototype.getTilePoint=function(_){return this.canonical.getTilePoint(new pb(_.x-this.wrap,_.y))};function DM(g,_,z,V,$){g*=2,g<0&&(g=g*-1-1);var se=1<0;se--)$=1<=this.dim+1||z<-1||z>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(z+1)*this.stride+(_+1)},wg.prototype._unpackMapbox=function(_,z,V){return(_*256*256+z*256+V)/10-1e4},wg.prototype._unpackTerrarium=function(_,z,V){return _*256+z+V/256-32768},wg.prototype.getPixels=function(){return new Ih({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},wg.prototype.backfillBorder=function(_,z,V){if(this.dim!==_.dim)throw new Error("dem dimension mismatch");var $=z*this.dim,se=z*this.dim+this.dim,ve=V*this.dim,Ze=V*this.dim+this.dim;switch(z){case-1:$=se-1;break;case 1:se=$+1;break}switch(V){case-1:ve=Ze-1;break;case 1:Ze=ve+1;break}for(var At=-z*this.dim,It=-V*this.dim,Wt=ve;Wt=0&&_r[3]>=0&&At.insert(Ze,_r[0],_r[1],_r[2],_r[3])}},Ag.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new ym.VectorTile(new su(this.rawTileData)).layers,this.sourceLayerCoder=new dL(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Ag.prototype.query=function(_,z,V,$){var se=this;this.loadVTLayers();for(var ve=_.params||{},Ze=Tn/_.tileSize/_.scale,At=Ae(ve.filter),It=_.queryGeometry,Wt=_.queryPadding*Ze,_r=Eee(It),Or=this.grid.query(_r.minX-Wt,_r.minY-Wt,_r.maxX+Wt,_r.maxY+Wt),Pr=Eee(_.cameraQueryGeometry),ai=this.grid3D.query(Pr.minX-Wt,Pr.minY-Wt,Pr.maxX+Wt,Pr.maxY+Wt,function(Zs,Cl,Tl,hu){return yv(_.cameraQueryGeometry,Zs-Wt,Cl-Wt,Tl+Wt,hu+Wt)}),qi=0,Wn=ai;qi$)se=!1;else if(!z)se=!0;else if(this.expirationTime=xn.maxzoom)&&xn.visibility!=="none"){h(Ii,this.zoom,Nt);var xi=Gr[xn.id]=xn.createBucket({index:Hr.bucketLayerIDs.length,layers:Ii,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Qi,sourceID:this.source});xi.populate(Yr,mi,this.tileID.canonical),Hr.bucketLayerIDs.push(Ii.map(function(ni){return ni.id}))}}}}var Xr,dt,$t,fr,gr=i.mapObject(mi.glyphDependencies,function(ni){return Object.keys(ni).map(Number)});Object.keys(gr).length?mr.send("getGlyphs",{uid:this.uid,stacks:gr},function(ni,Xi){Xr||(Xr=ni,dt=Xi,$i.call(Nr))}):dt={};var Zr=Object.keys(mi.iconDependencies);Zr.length?mr.send("getImages",{icons:Zr,source:this.source,tileID:this.tileID,type:"icons"},function(ni,Xi){Xr||(Xr=ni,$t=Xi,$i.call(Nr))}):$t={};var wi=Object.keys(mi.patternDependencies);wi.length?mr.send("getImages",{icons:wi,source:this.source,tileID:this.tileID,type:"patterns"},function(ni,Xi){Xr||(Xr=ni,fr=Xi,$i.call(Nr))}):fr={},$i.call(this);function $i(){if(Xr)return Lr(Xr);if(dt&&$t&&fr){var ni=new f(dt),Xi=new i.ImageAtlas($t,fr);for(var aa in Gr){var Mn=Gr[aa];Mn instanceof i.SymbolBucket?(h(Mn.layers,this.zoom,Nt),i.performSymbolLayout(Mn,dt,ni.positions,$t,Xi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Mn.hasPattern&&(Mn instanceof i.LineBucket||Mn instanceof i.FillBucket||Mn instanceof i.FillExtrusionBucket)&&(h(Mn.layers,this.zoom,Nt),Mn.addFeatures(mi,this.tileID.canonical,Xi.patternPositions))}this.status="done",Lr(null,{buckets:i.values(Gr).filter(function(Un){return!Un.isEmpty()}),featureIndex:Hr,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ni.image,imageAtlas:Xi,glyphMap:this.returnDependencies?dt:null,iconMap:this.returnDependencies?$t:null,glyphPositions:this.returnDependencies?ni.positions:null})}}};function h(Dt,_t,qt){for(var Nt=new i.EvaluationParameters(_t),mr=0,Lr=Dt;mr=0!=!!_t&&Dt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(_t){this._feature=_t,this.extent=i.EXTENT,this.type=_t.type,this.properties=_t.tags,"id"in _t&&!isNaN(_t.id)&&(this.id=parseInt(_t.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var _t=[],qt=0,Nt=this._feature.geometry;qt>31}function Ee(Dt,_t){for(var qt=Dt.loadGeometry(),Nt=Dt.type,mr=0,Lr=0,Nr=qt.length,Fr=0;Fr>1;Se(Dt,_t,Nr,Nt,mr,Lr%2),te(Dt,_t,qt,Nt,Nr-1,Lr+1),te(Dt,_t,qt,Nr+1,mr,Lr+1)}}function Se(Dt,_t,qt,Nt,mr,Lr){for(;mr>Nt;){if(mr-Nt>600){var Nr=mr-Nt+1,Fr=qt-Nt+1,Hr=Math.log(Nr),Gr=.5*Math.exp(2*Hr/3),mi=.5*Math.sqrt(Hr*Gr*(Nr-Gr)/Nr)*(Fr-Nr/2<0?-1:1),Ei=Math.max(Nt,Math.floor(qt-Fr*Gr/Nr+mi)),Vi=Math.min(mr,Math.floor(qt+(Nr-Fr)*Gr/Nr+mi));Se(Dt,_t,qt,Ei,Vi,Lr)}var ti=_t[2*qt+Lr],Qi=Nt,Yr=mr;for(Te(Dt,_t,Nt,qt),_t[2*mr+Lr]>ti&&Te(Dt,_t,Nt,mr);Qiti;)Yr--}_t[2*Nt+Lr]===ti?Te(Dt,_t,Nt,Yr):(Yr++,Te(Dt,_t,Yr,mr)),Yr<=qt&&(Nt=Yr+1),qt<=Yr&&(mr=Yr-1)}}function Te(Dt,_t,qt,Nt){be(Dt,qt,Nt),be(_t,2*qt,2*Nt),be(_t,2*qt+1,2*Nt+1)}function be(Dt,_t,qt){var Nt=Dt[_t];Dt[_t]=Dt[qt],Dt[qt]=Nt}function He(Dt,_t,qt,Nt,mr,Lr,Nr){for(var Fr=[0,Dt.length-1,0],Hr=[],Gr,mi;Fr.length;){var Ei=Fr.pop(),Vi=Fr.pop(),ti=Fr.pop();if(Vi-ti<=Nr){for(var Qi=ti;Qi<=Vi;Qi++)Gr=_t[2*Qi],mi=_t[2*Qi+1],Gr>=qt&&Gr<=mr&&mi>=Nt&&mi<=Lr&&Hr.push(Dt[Qi]);continue}var Yr=Math.floor((ti+Vi)/2);Gr=_t[2*Yr],mi=_t[2*Yr+1],Gr>=qt&&Gr<=mr&&mi>=Nt&&mi<=Lr&&Hr.push(Dt[Yr]);var oi=(Ei+1)%2;(Ei===0?qt<=Gr:Nt<=mi)&&(Fr.push(ti),Fr.push(Yr-1),Fr.push(oi)),(Ei===0?mr>=Gr:Lr>=mi)&&(Fr.push(Yr+1),Fr.push(Vi),Fr.push(oi))}return Hr}function Ie(Dt,_t,qt,Nt,mr,Lr){for(var Nr=[0,Dt.length-1,0],Fr=[],Hr=mr*mr;Nr.length;){var Gr=Nr.pop(),mi=Nr.pop(),Ei=Nr.pop();if(mi-Ei<=Lr){for(var Vi=Ei;Vi<=mi;Vi++)ge(_t[2*Vi],_t[2*Vi+1],qt,Nt)<=Hr&&Fr.push(Dt[Vi]);continue}var ti=Math.floor((Ei+mi)/2),Qi=_t[2*ti],Yr=_t[2*ti+1];ge(Qi,Yr,qt,Nt)<=Hr&&Fr.push(Dt[ti]);var oi=(Gr+1)%2;(Gr===0?qt-mr<=Qi:Nt-mr<=Yr)&&(Nr.push(Ei),Nr.push(ti-1),Nr.push(oi)),(Gr===0?qt+mr>=Qi:Nt+mr>=Yr)&&(Nr.push(ti+1),Nr.push(mi),Nr.push(oi))}return Fr}function ge(Dt,_t,qt,Nt){var mr=Dt-qt,Lr=_t-Nt;return mr*mr+Lr*Lr}var Be=function(Dt){return Dt[0]},ce=function(Dt){return Dt[1]},je=function(_t,qt,Nt,mr,Lr){qt===void 0&&(qt=Be),Nt===void 0&&(Nt=ce),mr===void 0&&(mr=64),Lr===void 0&&(Lr=Float64Array),this.nodeSize=mr,this.points=_t;for(var Nr=_t.length<65536?Uint16Array:Uint32Array,Fr=this.ids=new Nr(_t.length),Hr=this.coords=new Lr(_t.length*2),Gr=0;Gr<_t.length;Gr++)Fr[Gr]=Gr,Hr[2*Gr]=qt(_t[Gr]),Hr[2*Gr+1]=Nt(_t[Gr]);te(Fr,Hr,mr,0,Fr.length-1,0)};je.prototype.range=function(_t,qt,Nt,mr){return He(this.ids,this.coords,_t,qt,Nt,mr,this.nodeSize)},je.prototype.within=function(_t,qt,Nt){return Ie(this.ids,this.coords,_t,qt,Nt,this.nodeSize)};var rt={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Dt){return Dt}},bt=function(_t){this.options=Me(Object.create(rt),_t),this.trees=new Array(this.options.maxZoom+1)};bt.prototype.load=function(_t){var qt=this.options,Nt=qt.log,mr=qt.minZoom,Lr=qt.maxZoom,Nr=qt.nodeSize;Nt&&console.time("total time");var Fr="prepare "+_t.length+" points";Nt&&console.time(Fr),this.points=_t;for(var Hr=[],Gr=0;Gr<_t.length;Gr++)_t[Gr].geometry&&Hr.push(it(_t[Gr],Gr));this.trees[Lr+1]=new je(Hr,oe,Ne,Nr,Float32Array),Nt&&console.timeEnd(Fr);for(var mi=Lr;mi>=mr;mi--){var Ei=+Date.now();Hr=this._cluster(Hr,mi),this.trees[mi]=new je(Hr,oe,Ne,Nr,Float32Array),Nt&&console.log("z%d: %d clusters in %dms",mi,Hr.length,+Date.now()-Ei)}return Nt&&console.timeEnd("total time"),this},bt.prototype.getClusters=function(_t,qt){var Nt=((_t[0]+180)%360+360)%360-180,mr=Math.max(-90,Math.min(90,_t[1])),Lr=_t[2]===180?180:((_t[2]+180)%360+360)%360-180,Nr=Math.max(-90,Math.min(90,_t[3]));if(_t[2]-_t[0]>=360)Nt=-180,Lr=180;else if(Nt>Lr){var Fr=this.getClusters([Nt,mr,180,Nr],qt),Hr=this.getClusters([-180,mr,Lr,Nr],qt);return Fr.concat(Hr)}for(var Gr=this.trees[this._limitZoom(qt)],mi=Gr.range(Mt(Nt),kt(Nr),Mt(Lr),kt(mr)),Ei=[],Vi=0,ti=mi;Viqt&&(Yr+=tn.numPoints||1)}if(Yr>=Hr){for(var Di=Ei.x*Qi,Ii=Ei.y*Qi,xn=Fr&&Qi>1?this._map(Ei,!0):null,xi=(mi<<5)+(qt+1)+this.points.length,Xr=0,dt=ti;Xr1)for(var Zr=0,wi=ti;Zr>5},bt.prototype._getOriginZoom=function(_t){return(_t-this.points.length)%32},bt.prototype._map=function(_t,qt){if(_t.numPoints)return qt?Me({},_t.properties):_t.properties;var Nt=this.points[_t.index].properties,mr=this.options.map(Nt);return qt&&mr===Nt?Me({},mr):mr};function Ot(Dt,_t,qt,Nt,mr){return{x:Dt,y:_t,zoom:1/0,id:qt,parentId:-1,numPoints:Nt,properties:mr}}function it(Dt,_t){var qt=Dt.geometry.coordinates,Nt=qt[0],mr=qt[1];return{x:Mt(Nt),y:kt(mr),zoom:1/0,index:_t,parentId:-1}}function Ke(Dt){return{type:"Feature",id:Dt.id,properties:zt(Dt),geometry:{type:"Point",coordinates:[$e(Dt.x),Re(Dt.y)]}}}function zt(Dt){var _t=Dt.numPoints,qt=_t>=1e4?Math.round(_t/1e3)+"k":_t>=1e3?Math.round(_t/100)/10+"k":_t;return Me(Me({},Dt.properties),{cluster:!0,cluster_id:Dt.id,point_count:_t,point_count_abbreviated:qt})}function Mt(Dt){return Dt/360+.5}function kt(Dt){var _t=Math.sin(Dt*Math.PI/180),qt=.5-.25*Math.log((1+_t)/(1-_t))/Math.PI;return qt<0?0:qt>1?1:qt}function $e(Dt){return(Dt-.5)*360}function Re(Dt){var _t=(180-Dt*360)*Math.PI/180;return 360*Math.atan(Math.exp(_t))/Math.PI-90}function Me(Dt,_t){for(var qt in _t)Dt[qt]=_t[qt];return Dt}function oe(Dt){return Dt.x}function Ne(Dt){return Dt.y}function vt(Dt,_t,qt,Nt){for(var mr=Nt,Lr=qt-_t>>1,Nr=qt-_t,Fr,Hr=Dt[_t],Gr=Dt[_t+1],mi=Dt[qt],Ei=Dt[qt+1],Vi=_t+3;Vimr)Fr=Vi,mr=ti;else if(ti===mr){var Qi=Math.abs(Vi-Lr);QiNt&&(Fr-_t>3&&vt(Dt,_t,Fr,Nt),Dt[Fr+2]=mr,qt-Fr>3&&vt(Dt,Fr,qt,Nt))}function lt(Dt,_t,qt,Nt,mr,Lr){var Nr=mr-qt,Fr=Lr-Nt;if(Nr!==0||Fr!==0){var Hr=((Dt-qt)*Nr+(_t-Nt)*Fr)/(Nr*Nr+Fr*Fr);Hr>1?(qt=mr,Nt=Lr):Hr>0&&(qt+=Nr*Hr,Nt+=Fr*Hr)}return Nr=Dt-qt,Fr=_t-Nt,Nr*Nr+Fr*Fr}function We(Dt,_t,qt,Nt){var mr={id:typeof Dt=="undefined"?null:Dt,type:_t,geometry:qt,tags:Nt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Ve(mr),mr}function Ve(Dt){var _t=Dt.geometry,qt=Dt.type;if(qt==="Point"||qt==="MultiPoint"||qt==="LineString")et(Dt,_t);else if(qt==="Polygon"||qt==="MultiLineString")for(var Nt=0;Nt<_t.length;Nt++)et(Dt,_t[Nt]);else if(qt==="MultiPolygon")for(Nt=0;Nt<_t.length;Nt++)for(var mr=0;mr<_t[Nt].length;mr++)et(Dt,_t[Nt][mr])}function et(Dt,_t){for(var qt=0;qt<_t.length;qt+=3)Dt.minX=Math.min(Dt.minX,_t[qt]),Dt.minY=Math.min(Dt.minY,_t[qt+1]),Dt.maxX=Math.max(Dt.maxX,_t[qt]),Dt.maxY=Math.max(Dt.maxY,_t[qt+1])}function tt(Dt,_t){var qt=[];if(Dt.type==="FeatureCollection")for(var Nt=0;Nt0&&(Nt?Nr+=(mr*Gr-Hr*Lr)/2:Nr+=Math.sqrt(Math.pow(Hr-mr,2)+Math.pow(Gr-Lr,2))),mr=Hr,Lr=Gr}var mi=_t.length-3;_t[2]=1,vt(_t,0,mi,qt),_t[mi+2]=1,_t.size=Math.abs(Nr),_t.start=0,_t.end=_t.size}function yr(Dt,_t,qt,Nt){for(var mr=0;mr1?1:qt}function Pe(Dt,_t,qt,Nt,mr,Lr,Nr,Fr){if(qt/=_t,Nt/=_t,Lr>=qt&&Nr=Nt)return null;for(var Hr=[],Gr=0;Gr=qt&&Qi=Nt)continue;var Yr=[];if(Vi==="Point"||Vi==="MultiPoint")xe(Ei,Yr,qt,Nt,mr);else if(Vi==="LineString")Oe(Ei,Yr,qt,Nt,mr,!1,Fr.lineMetrics);else if(Vi==="MultiLineString")De(Ei,Yr,qt,Nt,mr,!1);else if(Vi==="Polygon")De(Ei,Yr,qt,Nt,mr,!0);else if(Vi==="MultiPolygon")for(var oi=0;oi=qt&&Nr<=Nt&&(_t.push(Dt[Lr]),_t.push(Dt[Lr+1]),_t.push(Dt[Lr+2]))}}function Oe(Dt,_t,qt,Nt,mr,Lr,Nr){for(var Fr=ze(Dt),Hr=mr===0?st:gt,Gr=Dt.start,mi,Ei,Vi=0;Viqt&&(Ei=Hr(Fr,ti,Qi,oi,Fi,qt),Nr&&(Fr.start=Gr+mi*Ei)):rn>Nt?tn=qt&&(Ei=Hr(Fr,ti,Qi,oi,Fi,qt),Di=!0),tn>Nt&&rn<=Nt&&(Ei=Hr(Fr,ti,Qi,oi,Fi,Nt),Di=!0),!Lr&&Di&&(Nr&&(Fr.end=Gr+mi*Ei),_t.push(Fr),Fr=ze(Dt)),Nr&&(Gr+=mi)}var Ii=Dt.length-3;ti=Dt[Ii],Qi=Dt[Ii+1],Yr=Dt[Ii+2],rn=mr===0?ti:Qi,rn>=qt&&rn<=Nt&&ht(Fr,ti,Qi,Yr),Ii=Fr.length-3,Lr&&Ii>=3&&(Fr[Ii]!==Fr[0]||Fr[Ii+1]!==Fr[1])&&ht(Fr,Fr[0],Fr[1],Fr[2]),Fr.length&&_t.push(Fr)}function ze(Dt){var _t=[];return _t.size=Dt.size,_t.start=Dt.start,_t.end=Dt.end,_t}function De(Dt,_t,qt,Nt,mr,Lr){for(var Nr=0;NrNr.maxX&&(Nr.maxX=mi),Ei>Nr.maxY&&(Nr.maxY=Ei)}return Nr}function jr(Dt,_t,qt,Nt){var mr=_t.geometry,Lr=_t.type,Nr=[];if(Lr==="Point"||Lr==="MultiPoint")for(var Fr=0;Fr0&&_t.size<(mr?Nr:Nt)){qt.numPoints+=_t.length/3;return}for(var Fr=[],Hr=0;Hr<_t.length;Hr+=3)(Nt===0||_t[Hr+2]>Nr)&&(qt.numSimplified++,Fr.push(_t[Hr]),Fr.push(_t[Hr+1])),qt.numPoints++;mr&&Vr(Fr,Lr),Dt.push(Fr)}function Vr(Dt,_t){for(var qt=0,Nt=0,mr=Dt.length,Lr=mr-2;Nt0===_t)for(Nt=0,mr=Dt.length;Nt24)throw new Error("maxZoom should be in the 0-24 range");if(_t.promoteId&&_t.generateId)throw new Error("promoteId and generateId cannot be used together.");var Nt=tt(Dt,_t);this.tiles={},this.tileCoords=[],qt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",_t.indexMaxZoom,_t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Nt=xt(Nt,_t),Nt.length&&this.splitTile(Nt,0,0,0),qt&&(Nt.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Bi.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Bi.prototype.splitTile=function(Dt,_t,qt,Nt,mr,Lr,Nr){for(var Fr=[Dt,_t,qt,Nt],Hr=this.options,Gr=Hr.debug;Fr.length;){Nt=Fr.pop(),qt=Fr.pop(),_t=Fr.pop(),Dt=Fr.pop();var mi=1<<_t,Ei=Ri(_t,qt,Nt),Vi=this.tiles[Ei];if(!Vi&&(Gr>1&&console.time("creation"),Vi=this.tiles[Ei]=ii(Dt,_t,qt,Nt,Hr),this.tileCoords.push({z:_t,x:qt,y:Nt}),Gr)){Gr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",_t,qt,Nt,Vi.numFeatures,Vi.numPoints,Vi.numSimplified),console.timeEnd("creation"));var ti="z"+_t;this.stats[ti]=(this.stats[ti]||0)+1,this.total++}if(Vi.source=Dt,mr){if(_t===Hr.maxZoom||_t===mr)continue;var Qi=1<1&&console.time("clipping");var Yr=.5*Hr.buffer/Hr.extent,oi=.5-Yr,Fi=.5+Yr,rn=1+Yr,tn,Di,Ii,xn,xi,Xr;tn=Di=Ii=xn=null,xi=Pe(Dt,mi,qt-Yr,qt+Fi,0,Vi.minX,Vi.maxX,Hr),Xr=Pe(Dt,mi,qt+oi,qt+rn,0,Vi.minX,Vi.maxX,Hr),Dt=null,xi&&(tn=Pe(xi,mi,Nt-Yr,Nt+Fi,1,Vi.minY,Vi.maxY,Hr),Di=Pe(xi,mi,Nt+oi,Nt+rn,1,Vi.minY,Vi.maxY,Hr),xi=null),Xr&&(Ii=Pe(Xr,mi,Nt-Yr,Nt+Fi,1,Vi.minY,Vi.maxY,Hr),xn=Pe(Xr,mi,Nt+oi,Nt+rn,1,Vi.minY,Vi.maxY,Hr),Xr=null),Gr>1&&console.timeEnd("clipping"),Fr.push(tn||[],_t+1,qt*2,Nt*2),Fr.push(Di||[],_t+1,qt*2,Nt*2+1),Fr.push(Ii||[],_t+1,qt*2+1,Nt*2),Fr.push(xn||[],_t+1,qt*2+1,Nt*2+1)}}},Bi.prototype.getTile=function(Dt,_t,qt){var Nt=this.options,mr=Nt.extent,Lr=Nt.debug;if(Dt<0||Dt>24)return null;var Nr=1<1&&console.log("drilling down to z%d-%d-%d",Dt,_t,qt);for(var Hr=Dt,Gr=_t,mi=qt,Ei;!Ei&&Hr>0;)Hr--,Gr=Math.floor(Gr/2),mi=Math.floor(mi/2),Ei=this.tiles[Ri(Hr,Gr,mi)];return!Ei||!Ei.source?null:(Lr>1&&console.log("found parent tile z%d-%d-%d",Hr,Gr,mi),Lr>1&&console.time("drilling down"),this.splitTile(Ei.source,Hr,Gr,mi,Dt,_t,qt),Lr>1&&console.timeEnd("drilling down"),this.tiles[Fr]?cr(this.tiles[Fr],mr):null)};function Ri(Dt,_t,qt){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function y(Y,R,J){var B,K,ye,ne=i.browser.devicePixelRatio>1?"@2x":"",ke=i.getJSON(R.transformRequest(R.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(ur,Sr){ke=null,ye||(ye=ur,B=Sr,Ct())}),Je=i.getImage(R.transformRequest(R.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(ur,Sr){Je=null,ye||(ye=ur,K=Sr,Ct())});function Ct(){if(ye)J(ye);else if(B&&K){var ur=i.browser.getImageData(K),Sr={};for(var nr in B){var Qe=B[nr],pt=Qe.width,Tt=Qe.height,Xt=Qe.x,ir=Qe.y,Kt=Qe.sdf,ar=Qe.pixelRatio,Jt=Qe.stretchX,Ft=Qe.stretchY,Zt=Qe.content,Pt=new i.RGBAImage({width:pt,height:Tt});i.RGBAImage.copy(ur,Pt,{x:Xt,y:ir},{x:0,y:0},{width:pt,height:Tt}),Sr[nr]={data:Pt,pixelRatio:ar,sdf:Kt,stretchX:Jt,stretchY:Ft,content:Zt}}J(null,Sr)}}return{cancel:function(){ke&&(ke.cancel(),ke=null),Je&&(Je.cancel(),Je=null)}}}function b(Y){var R=Y.userImage;if(R&&R.render){var J=R.render();if(J)return Y.data.replace(new Uint8Array(R.data.buffer)),!0}return!1}var v=1,C=(function(Y){function R(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.isLoaded=function(){return this.loaded},R.prototype.setLoaded=function(B){if(this.loaded!==B&&(this.loaded=B,B)){for(var K=0,ye=this.requestors;K=0?1.2:1))}k.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var R=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),B=0;B65535){ur(new Error("glyphs > 65535 not supported"));return}if(Qe.ranges[Tt]){ur(null,{stack:Sr,id:nr,glyph:pt});return}var Xt=Qe.requests[Tt];Xt||(Xt=Qe.requests[Tt]=[],P.loadGlyphRange(Sr,Tt,B.url,B.requestManager,function(ir,Kt){if(Kt){for(var ar in Kt)B._doesCharSupportLocalGlyph(+ar)||(Qe.glyphs[+ar]=Kt[+ar]);Qe.ranges[Tt]=!0}for(var Jt=0,Ft=Xt;Jt1&&(Ct=R[++Je]);var Sr=Math.abs(ur-Ct.left),nr=Math.abs(ur-Ct.right),Qe=Math.min(Sr,nr),pt=void 0,Tt=ye/B*(K+1);if(Ct.isDash){var Xt=K-Math.abs(Tt);pt=Math.sqrt(Qe*Qe+Xt*Xt)}else pt=K-Math.sqrt(Qe*Qe+Tt*Tt);this.data[ke+ur]=Math.max(0,Math.min(255,pt+128))}},G.prototype.addRegularDash=function(R){for(var J=R.length-1;J>=0;--J){var B=R[J],K=R[J+1];B.zeroLength?R.splice(J,1):K&&K.isDash===B.isDash&&(K.left=B.left,R.splice(J,1))}var ye=R[0],ne=R[R.length-1];ye.isDash===ne.isDash&&(ye.left=ne.left-this.width,ne.right=ye.right+this.width);for(var ke=this.width*this.nextRow,Je=0,Ct=R[Je],ur=0;ur1&&(Ct=R[++Je]);var Sr=Math.abs(ur-Ct.left),nr=Math.abs(ur-Ct.right),Qe=Math.min(Sr,nr),pt=Ct.isDash?Qe:-Qe;this.data[ke+ur]=Math.max(0,Math.min(255,pt+128))}},G.prototype.addDash=function(R,J){var B=J?7:0,K=2*B+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ye=0,ne=0;ne=B.minX&&R.x=B.minY&&R.y0&&(ur[new i.OverscaledTileID(B.overscaledZ,ke,K.z,ne,K.y-1).key]={backfilled:!1},ur[new i.OverscaledTileID(B.overscaledZ,B.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},ur[new i.OverscaledTileID(B.overscaledZ,Ct,K.z,Je,K.y-1).key]={backfilled:!1}),K.y+10&&(ye.resourceTiming=B._resourceTiming,B._resourceTiming=[]),B.fire(new i.Event("data",ye))})},R.prototype.onAdd=function(B){this.map=B,this.load()},R.prototype.setData=function(B){var K=this;return this._data=B,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ye){if(ye){K.fire(new i.ErrorEvent(ye));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},R.prototype.getClusterExpansionZoom=function(B,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:B,source:this.id},K),this},R.prototype.getClusterChildren=function(B,K){return this.actor.send("geojson.getClusterChildren",{clusterId:B,source:this.id},K),this},R.prototype.getClusterLeaves=function(B,K,ye,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:B,limit:K,offset:ye},ne),this},R.prototype._updateWorkerData=function(B){var K=this;this._loaded=!1;var ye=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(ye.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),ye.request.collectResourceTiming=this._collectResourceTiming):ye.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",ye,function(ke,Je){K._removed||Je&&Je.abandoned||(K._loaded=!0,Je&&Je.resourceTiming&&Je.resourceTiming[K.id]&&(K._resourceTiming=Je.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:ye.source},null),B(ke))})},R.prototype.loaded=function(){return this._loaded},R.prototype.loadTile=function(B,K){var ye=this,ne=B.actor?"reloadTile":"loadTile";B.actor=this.actor;var ke={type:this.type,uid:B.uid,tileID:B.tileID,zoom:B.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};B.request=this.actor.send(ne,ke,function(Je,Ct){return delete B.request,B.unloadVectorData(),B.aborted?K(null):Je?K(Je):(B.loadVectorData(Ct,ye.map.painter,ne==="reloadTile"),K(null))})},R.prototype.abortTile=function(B){B.request&&(B.request.cancel(),delete B.request),B.aborted=!0},R.prototype.unloadTile=function(B){B.unloadVectorData(),this.actor.send("removeTile",{uid:B.uid,type:this.type,source:this.id})},R.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},R.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},R.prototype.hasTransition=function(){return!1},R})(i.Evented),Ce=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ee=(function(Y){function R(J,B,K,ye){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ye),this.options=B}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(B,K){var ye=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,ke){ye._loaded=!0,ne?ye.fire(new i.ErrorEvent(ne)):ke&&(ye.image=ke,B&&(ye.coordinates=B),K&&K(),ye._finishLoading())})},R.prototype.loaded=function(){return this._loaded},R.prototype.updateImage=function(B){var K=this;return!this.image||!B.url?this:(this.options.url=B.url,this.load(B.coordinates,function(){K.texture=null}),this)},R.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},R.prototype.onAdd=function(B){this.map=B,this.load()},R.prototype.setCoordinates=function(B){var K=this;this.coordinates=B;var ye=B.map(i.MercatorCoordinate.fromLngLat);this.tileID=de(ye),this.minzoom=this.maxzoom=this.tileID.z;var ne=ye.map(function(ke){return K.tileID.getTilePoint(ke)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var B=this.map.painter.context,K=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(B,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var ye in this.tiles){var ne=this.tiles[ye];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.loadTile=function(B,K){this.tileID&&this.tileID.equals(B.tileID.canonical)?(this.tiles[String(B.tileID.wrap)]=B,B.buckets={},K(null)):(B.state="errored",K(null))},R.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return!1},R})(i.Evented);function de(Y){for(var R=1/0,J=1/0,B=-1/0,K=-1/0,ye=0,ne=Y;yeK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=B}},R.prototype.getVideo=function(){return this.video},R.prototype.onAdd=function(B){this.map||(this.map=B,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var B=this.map.painter.context,K=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(B,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var ye in this.tiles){var ne=this.tiles[ye];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this.video&&!this.video.paused},R})(Ee),Se=(function(Y){function R(J,B,K,ye){Y.call(this,J,B,K,ye),B.coordinates?(!Array.isArray(B.coordinates)||B.coordinates.length!==4||B.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(ke){return typeof ke!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas!="string"&&!(B.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate!==void 0?B.animate:!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},R.prototype.getCanvas=function(){return this.canvas},R.prototype.onAdd=function(B){this.map=B,this.load(),this.canvas&&this.animate&&this.play()},R.prototype.onRemove=function(){this.pause()},R.prototype.prepare=function(){var B=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,B=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,B=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,ye=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(B||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,ye.RGBA,{premultiply:!0});for(var ne in this.tiles){var ke=this.tiles[ne];ke.state!=="loaded"&&(ke.state="loaded",ke.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this._playing},R.prototype._hasInvalidDimensions=function(){for(var B=0,K=[this.canvas.width,this.canvas.height];Bthis.max){var ke=this._getAndRemoveByKey(this.order[0]);ke&&this.onRemove(ke)}return this},it.prototype.has=function(R){return R.wrapped().key in this.data},it.prototype.getAndRemove=function(R){return this.has(R)?this._getAndRemoveByKey(R.wrapped().key):null},it.prototype._getAndRemoveByKey=function(R){var J=this.data[R].shift();return J.timeout&&clearTimeout(J.timeout),this.data[R].length===0&&delete this.data[R],this.order.splice(this.order.indexOf(R),1),J.value},it.prototype.getByKey=function(R){var J=this.data[R];return J?J[0].value:null},it.prototype.get=function(R){if(!this.has(R))return null;var J=this.data[R.wrapped().key][0];return J.value},it.prototype.remove=function(R,J){if(!this.has(R))return this;var B=R.wrapped().key,K=J===void 0?0:this.data[B].indexOf(J),ye=this.data[B][K];return this.data[B].splice(K,1),ye.timeout&&clearTimeout(ye.timeout),this.data[B].length===0&&delete this.data[B],this.onRemove(ye.value),this.order.splice(this.order.indexOf(B),1),this},it.prototype.setMaxSize=function(R){for(this.max=R;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},it.prototype.filter=function(R){var J=[];for(var B in this.data)for(var K=0,ye=this.data[B];K1||(Math.abs(Sr)>1&&(Math.abs(Sr+Qe)===1?Sr+=Qe:Math.abs(Sr-Qe)===1&&(Sr-=Qe)),!(!ur.dem||!Ct.dem)&&(Ct.dem.backfillBorder(ur.dem,Sr,nr),Ct.neighboringTiles&&Ct.neighboringTiles[pt]&&(Ct.neighboringTiles[pt].backfilled=!0)))}},R.prototype.getTile=function(B){return this.getTileByID(B.key)},R.prototype.getTileByID=function(B){return this._tiles[B]},R.prototype._retainLoadedChildren=function(B,K,ye,ne){for(var ke in this._tiles){var Je=this._tiles[ke];if(!(ne[ke]||!Je.hasData()||Je.tileID.overscaledZ<=K||Je.tileID.overscaledZ>ye)){for(var Ct=Je.tileID;Je&&Je.tileID.overscaledZ>K+1;){var ur=Je.tileID.scaledTo(Je.tileID.overscaledZ-1);Je=this._tiles[ur.key],Je&&Je.hasData()&&(Ct=ur)}for(var Sr=Ct;Sr.overscaledZ>K;)if(Sr=Sr.scaledTo(Sr.overscaledZ-1),B[Sr.key]){ne[Ct.key]=Ct;break}}}},R.prototype.findLoadedParent=function(B,K){if(B.key in this._loadedParentTiles){var ye=this._loadedParentTiles[B.key];return ye&&ye.tileID.overscaledZ>=K?ye:null}for(var ne=B.overscaledZ-1;ne>=K;ne--){var ke=B.scaledTo(ne),Je=this._getLoadedTile(ke);if(Je)return Je}},R.prototype._getLoadedTile=function(B){var K=this._tiles[B.key];if(K&&K.hasData())return K;var ye=this._cache.getByKey(B.wrapped().key);return ye},R.prototype.updateCacheSize=function(B){var K=Math.ceil(B.width/this._source.tileSize)+1,ye=Math.ceil(B.height/this._source.tileSize)+1,ne=K*ye,ke=5,Je=Math.floor(ne*ke),Ct=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Je):Je;this._cache.setMaxSize(Ct)},R.prototype.handleWrapJump=function(B){var K=this._prevLng===void 0?B:this._prevLng,ye=B-K,ne=ye/360,ke=Math.round(ne);if(this._prevLng=B,ke){var Je={};for(var Ct in this._tiles){var ur=this._tiles[Ct];ur.tileID=ur.tileID.unwrapTo(ur.tileID.wrap+ke),Je[ur.tileID.key]=ur}this._tiles=Je;for(var Sr in this._timers)clearTimeout(this._timers[Sr]),delete this._timers[Sr];for(var nr in this._tiles){var Qe=this._tiles[nr];this._setTileReloadTimer(nr,Qe)}}},R.prototype.update=function(B){var K=this;if(this.transform=B,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(B),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var ye;this.used?this._source.tileID?ye=B.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(ci){return new i.OverscaledTileID(ci.canonical.z,ci.wrap,ci.canonical.z,ci.canonical.x,ci.canonical.y)}):(ye=B.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ye=ye.filter(function(ci){return K._source.hasTile(ci)}))):ye=[];var ne=B.coveringZoomLevel(this._source),ke=Math.max(ne-R.maxOverzooming,this._source.minzoom),Je=Math.max(ne+R.maxUnderzooming,this._source.minzoom),Ct=this._updateRetainedTiles(ye,ne);if(Hr(this._source.type)){for(var ur={},Sr={},nr=Object.keys(Ct),Qe=0,pt=nr;Qethis._source.maxzoom){var Kt=Xt.children(this._source.maxzoom)[0],ar=this.getTile(Kt);if(ar&&ar.hasData()){ye[Kt.key]=Kt;continue}}else{var Jt=Xt.children(this._source.maxzoom);if(ye[Jt[0].key]&&ye[Jt[1].key]&&ye[Jt[2].key]&&ye[Jt[3].key])continue}for(var Ft=ir.wasRequested(),Zt=Xt.overscaledZ-1;Zt>=ke;--Zt){var Pt=Xt.scaledTo(Zt);if(ne[Pt.key]||(ne[Pt.key]=!0,ir=this.getTile(Pt),!ir&&Ft&&(ir=this._addTile(Pt)),ir&&(ye[Pt.key]=Pt,Ft=ir.wasRequested(),ir.hasData())))break}}}return ye},R.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var B in this._tiles){for(var K=[],ye=void 0,ne=this._tiles[B].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){ye=this._loadedParentTiles[ne.key];break}K.push(ne.key);var ke=ne.scaledTo(ne.overscaledZ-1);if(ye=this._getLoadedTile(ke),ye)break;ne=ke}for(var Je=0,Ct=K;Je0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},R.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var B in this._tiles)this._removeTile(B);this._cache.reset()},R.prototype.tilesIn=function(B,K,ye){var ne=this,ke=[],Je=this.transform;if(!Je)return ke;for(var Ct=ye?Je.getCameraQueryGeometry(B):B,ur=B.map(function(Zt){return Je.pointCoordinate(Zt)}),Sr=Ct.map(function(Zt){return Je.pointCoordinate(Zt)}),nr=this.getIds(),Qe=1/0,pt=1/0,Tt=-1/0,Xt=-1/0,ir=0,Kt=Sr;ir=0&&Cn[1].y+ci>=0){var Yi=ur.map(function(Xa){return Ar.getTilePoint(Xa)}),yn=Sr.map(function(Xa){return Ar.getTilePoint(Xa)});ke.push({tile:Pt,tileID:Ar,queryGeometry:Yi,cameraQueryGeometry:yn,scale:Br})}}},Ft=0;Ft=i.browser.now())return!0}return!1},R.prototype.setFeatureState=function(B,K,ye){B=B||"_geojsonTileLayer",this._state.updateState(B,K,ye)},R.prototype.removeFeatureState=function(B,K,ye){B=B||"_geojsonTileLayer",this._state.removeFeatureState(B,K,ye)},R.prototype.getFeatureState=function(B,K){return B=B||"_geojsonTileLayer",this._state.getState(B,K)},R.prototype.setDependencies=function(B,K,ye){var ne=this._tiles[B];ne&&ne.setDependencies(K,ye)},R.prototype.reloadTilesForDependencies=function(B,K){for(var ye in this._tiles){var ne=this._tiles[ye];ne.hasDependency(B,K)&&this._reloadTile(ye,"reloading")}this._cache.filter(function(ke){return!ke.hasDependency(B,K)})},R})(i.Evented);Nr.maxOverzooming=10,Nr.maxUnderzooming=3;function Fr(Y,R){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),B=Math.abs(R.wrap*2)-+(R.wrap<0);return Y.overscaledZ-R.overscaledZ||B-J||R.canonical.y-Y.canonical.y||R.canonical.x-Y.canonical.x}function Hr(Y){return Y==="raster"||Y==="image"||Y==="video"}function Gr(){return new i.window.Worker(cu.workerUrl)}var mi="mapboxgl_preloaded_worker_pool",Ei=function(){this.active={}};Ei.prototype.acquire=function(R){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/ke:0;return this.points[ye].mult(1-Je).add(this.points[J].mult(Je))};var ni=function(R,J,B){var K=this.boxCells=[],ye=this.circleCells=[];this.xCellCount=Math.ceil(R/B),this.yCellCount=Math.ceil(J/B);for(var ne=0;nethis.width||K<0||J>this.height)return ye?!1:[];var ke=[];if(R<=0&&J<=0&&this.width<=B&&this.height<=K){if(ye)return!0;for(var Je=0;Je0:ke}},ni.prototype._queryCircle=function(R,J,B,K,ye){var ne=R-B,ke=R+B,Je=J-B,Ct=J+B;if(ke<0||ne>this.width||Ct<0||Je>this.height)return K?!1:[];var ur=[],Sr={hitTest:K,circle:{x:R,y:J,radius:B},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Je,ke,Ct,this._queryCellCircle,ur,Sr,ye),K?ur.length>0:ur},ni.prototype.query=function(R,J,B,K,ye){return this._query(R,J,B,K,!1,ye)},ni.prototype.hitTest=function(R,J,B,K,ye){return this._query(R,J,B,K,!0,ye)},ni.prototype.hitTestCircle=function(R,J,B,K){return this._queryCircle(R,J,B,!0,K)},ni.prototype._queryCell=function(R,J,B,K,ye,ne,ke,Je){var Ct=ke.seenUids,ur=this.boxCells[ye];if(ur!==null)for(var Sr=this.bboxes,nr=0,Qe=ur;nr=Sr[Tt+0]&&K>=Sr[Tt+1]&&(!Je||Je(this.boxKeys[pt]))){if(ke.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[pt],x1:Sr[Tt],y1:Sr[Tt+1],x2:Sr[Tt+2],y2:Sr[Tt+3]})}}}var Xt=this.circleCells[ye];if(Xt!==null)for(var ir=this.circles,Kt=0,ar=Xt;Ktke*ke+Je*Je},ni.prototype._circleAndRectCollide=function(R,J,B,K,ye,ne,ke){var Je=(ne-K)/2,Ct=Math.abs(R-(K+Je));if(Ct>Je+B)return!1;var ur=(ke-ye)/2,Sr=Math.abs(J-(ye+ur));if(Sr>ur+B)return!1;if(Ct<=Je||Sr<=ur)return!0;var nr=Ct-Je,Qe=Sr-ur;return nr*nr+Qe*Qe<=B*B};function Xi(Y,R,J,B,K){var ye=i.create();return R?(i.scale(ye,ye,[1/K,1/K,1]),J||i.rotateZ(ye,ye,B.angle)):i.multiply(ye,B.labelPlaneMatrix,Y),ye}function aa(Y,R,J,B,K){if(R){var ye=i.clone(Y);return i.scale(ye,ye,[K,K,1]),J||i.rotateZ(ye,ye,-B.angle),ye}else return B.glCoordMatrix}function Mn(Y,R){var J=[Y.x,Y.y,0,1];kn(J,J,R);var B=J[3];return{point:new i.Point(J[0]/B,J[1]/B),signedDistanceFromCamera:B}}function Un(Y,R){return .5+.5*(Y/R)}function Ga(Y,R){var J=Y[0]/Y[3],B=Y[1]/Y[3],K=J>=-R[0]&&J<=R[0]&&B>=-R[1]&&B<=R[1];return K}function ma(Y,R,J,B,K,ye,ne,ke){var Je=B?Y.textSizeData:Y.iconSizeData,Ct=i.evaluateSizeForZoom(Je,J.transform.zoom),ur=[256/J.width*2+1,256/J.height*2+1],Sr=B?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;Sr.clear();for(var nr=Y.lineVertexArray,Qe=B?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,pt=J.transform.width/J.transform.height,Tt=!1,Xt=0;Xtye)return{useVertical:!0}}return(Y===i.WritingMode.vertical?R.yJ.x)?{needsFlipping:!0}:null}function so(Y,R,J,B,K,ye,ne,ke,Je,Ct,ur,Sr,nr,Qe){var pt=R/24,Tt=Y.lineOffsetX*pt,Xt=Y.lineOffsetY*pt,ir;if(Y.numGlyphs>1){var Kt=Y.glyphStartIndex+Y.numGlyphs,ar=Y.lineStartIndex,Jt=Y.lineStartIndex+Y.lineLength,Ft=oa(pt,ke,Tt,Xt,J,ur,Sr,Y,Je,ye,nr);if(!Ft)return{notEnoughRoom:!0};var Zt=Mn(Ft.first.point,ne).point,Pt=Mn(Ft.last.point,ne).point;if(B&&!J){var Ar=ka(Y.writingMode,Zt,Pt,Qe);if(Ar)return Ar}ir=[Ft.first];for(var Br=Y.glyphStartIndex+1;Br0?yn.point:Kr(Sr,Yi,ci,1,K),ca=ka(Y.writingMode,ci,Xa,Qe);if(ca)return ca}var Tn=Ia(pt*ke.getoffsetX(Y.glyphStartIndex),Tt,Xt,J,ur,Sr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Je,ye,nr);if(!Tn)return{notEnoughRoom:!0};ir=[Tn]}for(var Pn=0,Nn=ir;Pn0?1:-1,pt=0;B&&(Qe*=-1,pt=Math.PI),Qe<0&&(pt+=Math.PI);for(var Tt=Qe>0?ke+ne:ke+ne+1,Xt=K,ir=K,Kt=0,ar=0,Jt=Math.abs(nr),Ft=[];Kt+ar<=Jt;){if(Tt+=Qe,Tt=Je)return null;if(ir=Xt,Ft.push(Xt),Xt=Sr[Tt],Xt===void 0){var Zt=new i.Point(Ct.getx(Tt),Ct.gety(Tt)),Pt=Mn(Zt,ur);if(Pt.signedDistanceFromCamera>0)Xt=Sr[Tt]=Pt.point;else{var Ar=Tt-Qe,Br=Kt===0?ye:new i.Point(Ct.getx(Ar),Ct.gety(Ar));Xt=Kr(Br,Zt,ir,Jt-Kt+1,ur)}}Kt+=ar,ar=ir.dist(Xt)}var ci=(Jt-Kt)/ar,Cn=Xt.sub(ir),Yi=Cn.mult(ci)._add(ir);Yi._add(Cn._unit()._perp()._mult(J*Qe));var yn=pt+Math.atan2(Xt.y-ir.y,Xt.x-ir.x);return Ft.push(Yi),{point:Yi,angle:yn,path:Ft}}var Yo=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function fa(Y,R){for(var J=0;J=1;xa--)Nn.push(Tn.path[xa]);for(var Zo=1;Zo0){for(var vu=Nn[0].clone(),zu=Nn[0].clone(),Ju=1;Ju=yn.x&&zu.x<=Xa.x&&vu.y>=yn.y&&zu.y<=Xa.y?Fu=[Nn]:zu.xXa.x||zu.yXa.y?Fu=[]:Fu=i.clipLine([Nn],yn.x,yn.y,Xa.x,Xa.y)}for(var Uf=0,wd=Fu;Uf=this.screenRightBoundary||Kthis.screenBottomBoundary},ys.prototype.isInsideGrid=function(R,J,B,K){return B>=0&&R=0&&J0){var Jt;return this.prevPlacement&&this.prevPlacement.variableOffsets[nr.crossTileID]&&this.prevPlacement.placements[nr.crossTileID]&&this.prevPlacement.placements[nr.crossTileID].text&&(Jt=this.prevPlacement.variableOffsets[nr.crossTileID].anchor),this.variableOffsets[nr.crossTileID]={textOffset:Xt,width:B,height:K,anchor:R,textBoxScale:ye,prevAnchor:Jt},this.markUsedJustification(Qe,R,nr,pt),Qe.allowVerticalPlacement&&(this.markUsedOrientation(Qe,pt,nr),this.placedOrientations[nr.crossTileID]=pt),{shift:ir,placedGlyphBoxes:Kt}}},Po.prototype.placeLayerBucketPart=function(R,J,B){var K=this,ye=R.parameters,ne=ye.bucket,ke=ye.layout,Je=ye.posMatrix,Ct=ye.textLabelPlaneMatrix,ur=ye.labelToScreenMatrix,Sr=ye.textPixelRatio,nr=ye.holdingForFade,Qe=ye.collisionBoxArray,pt=ye.partiallyEvaluatedTextSize,Tt=ye.collisionGroup,Xt=ke.get("text-optional"),ir=ke.get("icon-optional"),Kt=ke.get("text-allow-overlap"),ar=ke.get("icon-allow-overlap"),Jt=ke.get("text-rotation-alignment")==="map",Ft=ke.get("text-pitch-alignment")==="map",Zt=ke.get("icon-text-fit")!=="none",Pt=ke.get("symbol-z-order")==="viewport-y",Ar=Kt&&(ar||!ne.hasIconData()||ir),Br=ar&&(Kt||!ne.hasTextData()||Xt);!ne.collisionArrays&&Qe&&ne.deserializeCollisionBoxes(Qe);var ci=function(Tn,Pn){if(!J[Tn.crossTileID]){if(nr){K.placements[Tn.crossTileID]=new fo(!1,!1,!1);return}var Nn=!1,xa=!1,Zo=!0,iu=null,yu={box:null,offscreen:null},Fu={box:null,offscreen:null},vu=null,zu=null,Ju=null,Uf=0,wd=0,Ad=0;Pn.textFeatureIndex?Uf=Pn.textFeatureIndex:Tn.useRuntimeCollisionCircles&&(Uf=Tn.featureIndex),Pn.verticalTextFeatureIndex&&(wd=Pn.verticalTextFeatureIndex);var Td=Pn.textBox;if(Td){var Kp=function(wc){var jf=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!wc&&K.prevPlacement){var Ed=K.prevPlacement.placedOrientations[Tn.crossTileID];Ed&&(K.placedOrientations[Tn.crossTileID]=Ed,jf=Ed,K.markUsedOrientation(ne,jf,Tn))}return jf},hm=function(wc,jf){if(ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&Pn.verticalTextBox)for(var Ed=0,mg=ne.writingModes;Ed0&&(Hd=Hd.filter(function(wc){return wc!==Md.anchor}),Hd.unshift(Md.anchor))}var Pp=function(wc,jf,Ed){for(var mg=wc.x2-wc.x1,P1=wc.y2-wc.y1,ic=Tn.textBoxScale,Kx=Zt&&!ar?jf:null,ly={box:[],offscreen:!1},Uw=Kt?Hd.length*2:Hd.length,Ip=0;Ip=Hd.length,Jx=K.attemptAnchorPlacement(uy,wc,mg,P1,ic,Jt,Ft,Sr,Je,Tt,Vw,Tn,ne,Ed,Kx);if(Jx&&(ly=Jx.placedGlyphBoxes,ly&&ly.box&&ly.box.length)){Nn=!0,iu=Jx.shift;break}}return ly},Jp=function(){return Pp(Td,Pn.iconBox,i.WritingMode.horizontal)},zp=function(){var wc=Pn.verticalTextBox,jf=yu&&yu.box&&yu.box.length;return ne.allowVerticalPlacement&&!jf&&Tn.numVerticalGlyphVertices>0&&wc?Pp(wc,Pn.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};hm(Jp,zp),yu&&(Nn=yu.box,Zo=yu.offscreen);var dg=Kp(yu&&yu.box);if(!Nn&&K.prevPlacement){var dm=K.prevPlacement.variableOffsets[Tn.crossTileID];dm&&(K.variableOffsets[Tn.crossTileID]=dm,K.markUsedJustification(ne,dm.anchor,Tn,dg))}}else{var mv=function(wc,jf){var Ed=K.collisionIndex.placeCollisionBox(wc,Kt,Sr,Je,Tt.predicate);return Ed&&Ed.box&&Ed.box.length&&(K.markUsedOrientation(ne,jf,Tn),K.placedOrientations[Tn.crossTileID]=jf),Ed},Sd=function(){return mv(Td,i.WritingMode.horizontal)},yv=function(){var wc=Pn.verticalTextBox;return ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&wc?mv(wc,i.WritingMode.vertical):{box:null,offscreen:null}};hm(Sd,yv),Kp(yu&&yu.box&&yu.box.length)}}if(vu=yu,Nn=vu&&vu.box&&vu.box.length>0,Zo=vu&&vu.offscreen,Tn.useRuntimeCollisionCircles){var vh=ne.text.placedSymbolArray.get(Tn.centerJustifiedTextSymbolIndex),pm=i.evaluateSizeForFeature(ne.textSizeData,pt,vh),pg=ke.get("text-padding"),Jh=Tn.collisionCircleDiameter;zu=K.collisionIndex.placeCollisionCircles(Kt,vh,ne.lineVertexArray,ne.glyphOffsetArray,pm,Je,Ct,ur,B,Ft,Tt.predicate,Jh,pg),Nn=Kt||zu.circles.length>0&&!zu.collisionDetected,Zo=Zo&&zu.offscreen}if(Pn.iconFeatureIndex&&(Ad=Pn.iconFeatureIndex),Pn.iconBox){var ay=function(wc){var jf=Zt&&iu?Co(wc,iu.x,iu.y,Jt,Ft,K.transform.angle):wc;return K.collisionIndex.placeCollisionBox(jf,ar,Sr,Je,Tt.predicate)};Fu&&Fu.box&&Fu.box.length&&Pn.verticalIconBox?(Ju=ay(Pn.verticalIconBox),xa=Ju.box.length>0):(Ju=ay(Pn.iconBox),xa=Ju.box.length>0),Zo=Zo&&Ju.offscreen}var C1=Xt||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,L1=ir||Tn.numIconVertices===0;if(!C1&&!L1?xa=Nn=xa&&Nn:L1?C1||(xa=xa&&Nn):Nn=xa&&Nn,Nn&&vu&&vu.box&&(Fu&&Fu.box&&wd?K.collisionIndex.insertCollisionBox(vu.box,ke.get("text-ignore-placement"),ne.bucketInstanceId,wd,Tt.ID):K.collisionIndex.insertCollisionBox(vu.box,ke.get("text-ignore-placement"),ne.bucketInstanceId,Uf,Tt.ID)),xa&&Ju&&K.collisionIndex.insertCollisionBox(Ju.box,ke.get("icon-ignore-placement"),ne.bucketInstanceId,Ad,Tt.ID),zu&&(Nn&&K.collisionIndex.insertCollisionCircles(zu.circles,ke.get("text-ignore-placement"),ne.bucketInstanceId,Uf,Tt.ID),B)){var vg=ne.bucketInstanceId,oy=K.collisionCircleArrays[vg];oy===void 0&&(oy=K.collisionCircleArrays[vg]=new mn);for(var sy=0;sy=0;--Yi){var yn=Cn[Yi];ci(ne.symbolInstances.get(yn),ne.collisionArrays[yn])}else for(var Xa=R.symbolInstanceStart;Xa=0&&(ne>=0&&ur!==ne?R.text.placedSymbolArray.get(ur).crossTileID=0:R.text.placedSymbolArray.get(ur).crossTileID=B.crossTileID)}},Po.prototype.markUsedOrientation=function(R,J,B){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,ye=J===i.WritingMode.vertical?J:0,ne=[B.leftJustifiedTextSymbolIndex,B.centerJustifiedTextSymbolIndex,B.rightJustifiedTextSymbolIndex],ke=0,Je=ne;ke0||Ft>0,ci=ar.numIconVertices>0,Cn=K.placedOrientations[ar.crossTileID],Yi=Cn===i.WritingMode.vertical,yn=Cn===i.WritingMode.horizontal||Cn===i.WritingMode.horizontalOnly;if(Br){var Xa=Qo(Ar.text),ca=Yi?Hi:Xa;pt(R.text,Jt,ca);var Tn=yn?Hi:Xa;pt(R.text,Ft,Tn);var Pn=Ar.text.isHidden();[ar.rightJustifiedTextSymbolIndex,ar.centerJustifiedTextSymbolIndex,ar.leftJustifiedTextSymbolIndex].forEach(function(Ad){Ad>=0&&(R.text.placedSymbolArray.get(Ad).hidden=Pn||Yi?1:0)}),ar.verticalPlacedTextSymbolIndex>=0&&(R.text.placedSymbolArray.get(ar.verticalPlacedTextSymbolIndex).hidden=Pn||yn?1:0);var Nn=K.variableOffsets[ar.crossTileID];Nn&&K.markUsedJustification(R,Nn.anchor,ar,Cn);var xa=K.placedOrientations[ar.crossTileID];xa&&(K.markUsedJustification(R,"left",ar,xa),K.markUsedOrientation(R,xa,ar))}if(ci){var Zo=Qo(Ar.icon),iu=!(nr&&ar.verticalPlacedIconSymbolIndex&&Yi);if(ar.placedIconSymbolIndex>=0){var yu=iu?Zo:Hi;pt(R.icon,ar.numIconVertices,yu),R.icon.placedSymbolArray.get(ar.placedIconSymbolIndex).hidden=Ar.icon.isHidden()}if(ar.verticalPlacedIconSymbolIndex>=0){var Fu=iu?Hi:Zo;pt(R.icon,ar.numVerticalIconVertices,Fu),R.icon.placedSymbolArray.get(ar.verticalPlacedIconSymbolIndex).hidden=Ar.icon.isHidden()}}if(R.hasIconCollisionBoxData()||R.hasTextCollisionBoxData()){var vu=R.collisionArrays[Kt];if(vu){var zu=new i.Point(0,0);if(vu.textBox||vu.verticalTextBox){var Ju=!0;if(Ct){var Uf=K.variableOffsets[Zt];Uf?(zu=ws(Uf.anchor,Uf.width,Uf.height,Uf.textOffset,Uf.textBoxScale),ur&&zu._rotate(Sr?K.transform.angle:-K.transform.angle)):Ju=!1}vu.textBox&&Wi(R.textCollisionBox.collisionVertexArray,Ar.text.placed,!Ju||Yi,zu.x,zu.y),vu.verticalTextBox&&Wi(R.textCollisionBox.collisionVertexArray,Ar.text.placed,!Ju||yn,zu.x,zu.y)}var wd=!!(!yn&&vu.verticalIconBox);vu.iconBox&&Wi(R.iconCollisionBox.collisionVertexArray,Ar.icon.placed,wd,nr?zu.x:0,nr?zu.y:0),vu.verticalIconBox&&Wi(R.iconCollisionBox.collisionVertexArray,Ar.icon.placed,!wd,nr?zu.x:0,nr?zu.y:0)}}},Xt=0;XtR},Po.prototype.setStale=function(){this.stale=!0};function Wi(Y,R,J,B,K){Y.emplaceBack(R?1:0,J?1:0,B||0,K||0),Y.emplaceBack(R?1:0,J?1:0,B||0,K||0),Y.emplaceBack(R?1:0,J?1:0,B||0,K||0),Y.emplaceBack(R?1:0,J?1:0,B||0,K||0)}var gn=Math.pow(2,25),Ps=Math.pow(2,24),Ha=Math.pow(2,17),Sn=Math.pow(2,16),ao=Math.pow(2,9),Oa=Math.pow(2,8),Ko=Math.pow(2,1);function Qo(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var R=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*gn+R*Ps+J*Ha+R*Sn+J*ao+R*Oa+J*Ko+R}var Hi=0,Sa=function(R){this._sortAcrossTiles=R.layout.get("symbol-z-order")!=="viewport-y"&&R.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Sa.prototype.continuePlacement=function(R,J,B,K,ye){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var ke=R[this._currentPlacementIndex],Je=J[ke],Ct=this.placement.collisionIndex.transform.zoom;if(Je.type==="symbol"&&(!Je.minzoom||Je.minzoom<=Ct)&&(!Je.maxzoom||Je.maxzoom>Ct)){this._inProgressLayer||(this._inProgressLayer=new Sa(Je));var ur=this._inProgressLayer.continuePlacement(B[Je.source],this.placement,this._showCollisionBoxes,Je,ne);if(ur)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Qa.prototype.commit=function(R){return this.placement.commit(R),this.placement};var vn=512/i.EXTENT/2,da=function(R,J,B){this.tileID=R,this.indexedSymbolInstances={},this.bucketInstanceId=B;for(var K=0;KR.overscaledZ)for(var Ct in Je){var ur=Je[Ct];ur.tileID.isChildOf(R)&&ur.findMatches(J.symbolInstances,R,ne)}else{var Sr=R.scaledTo(Number(ke)),nr=Je[Sr.key];nr&&nr.findMatches(J.symbolInstances,R,ne)}}for(var Qe=0;Qe0)throw new Error("Unimplemented: "+ne.map(function(ke){return ke.command}).join(", ")+".");return ye.forEach(function(ke){ke.command!=="setTransition"&&K[ke.command].apply(K,ke.args)}),this.stylesheet=B,!0},R.prototype.addImage=function(B,K){if(this.getImage(B))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(B,K),this._afterImageUpdated(B)},R.prototype.updateImage=function(B,K){this.imageManager.updateImage(B,K)},R.prototype.getImage=function(B){return this.imageManager.getImage(B)},R.prototype.removeImage=function(B){if(!this.getImage(B))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(B),this._afterImageUpdated(B)},R.prototype._afterImageUpdated=function(B){this._availableImages=this.imageManager.listImages(),this._changedImages[B]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},R.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},R.prototype.addSource=function(B,K,ye){var ne=this;if(ye===void 0&&(ye={}),this._checkLoaded(),this.sourceCaches[B]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var ke=["vector","raster","geojson","video","image"],Je=ke.indexOf(K.type)>=0;if(!(Je&&this._validate(i.validateStyle.source,"sources."+B,K,null,ye))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var Ct=this.sourceCaches[B]=new Nr(B,K,this.dispatcher);Ct.style=this,Ct.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:Ct.serialize(),sourceId:B}}),Ct.onAdd(this.map),this._changed=!0}},R.prototype.removeSource=function(B){if(this._checkLoaded(),this.sourceCaches[B]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===B)return this.fire(new i.ErrorEvent(new Error('Source "'+B+'" cannot be removed while layer "'+K+'" is using it.')));var ye=this.sourceCaches[B];delete this.sourceCaches[B],delete this._updatedSources[B],ye.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:B})),ye.setEventedParent(null),ye.clearTiles(),ye.onRemove&&ye.onRemove(this.map),this._changed=!0},R.prototype.setGeoJSONSourceData=function(B,K){this._checkLoaded();var ye=this.sourceCaches[B].getSource();ye.setData(K),this._changed=!0},R.prototype.getSource=function(B){return this.sourceCaches[B]&&this.sourceCaches[B].getSource()},R.prototype.addLayer=function(B,K,ye){ye===void 0&&(ye={}),this._checkLoaded();var ne=B.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var ke;if(B.type==="custom"){if(ps(this,i.validateCustomStyleLayer(B)))return;ke=i.createStyleLayer(B)}else{if(typeof B.source=="object"&&(this.addSource(ne,B.source),B=i.clone$1(B),B=i.extend(B,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,B,{arrayIndex:-1},ye))return;ke=i.createStyleLayer(B),this._validateLayer(ke),ke.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[ke.id]=ke.serialize()}var Je=K?this._order.indexOf(K):this._order.length;if(K&&Je===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Je,0,ne),this._layerOrderChanged=!0,this._layers[ne]=ke,this._removedLayers[ne]&&ke.source&&ke.type!=="custom"){var Ct=this._removedLayers[ne];delete this._removedLayers[ne],Ct.type!==ke.type?this._updatedSources[ke.source]="clear":(this._updatedSources[ke.source]="reload",this.sourceCaches[ke.source].pause())}this._updateLayer(ke),ke.onAdd&&ke.onAdd(this.map)},R.prototype.moveLayer=function(B,K){this._checkLoaded(),this._changed=!0;var ye=this._layers[B];if(!ye){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be moved.")));return}if(B!==K){var ne=this._order.indexOf(B);this._order.splice(ne,1);var ke=K?this._order.indexOf(K):this._order.length;if(K&&ke===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(ke,0,B),this._layerOrderChanged=!0}},R.prototype.removeLayer=function(B){this._checkLoaded();var K=this._layers[B];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var ye=this._order.indexOf(B);this._order.splice(ye,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[B]=K,delete this._layers[B],delete this._serializedLayers[B],delete this._updatedLayers[B],delete this._updatedPaintProps[B],K.onRemove&&K.onRemove(this.map)},R.prototype.getLayer=function(B){return this._layers[B]},R.prototype.hasLayer=function(B){return B in this._layers},R.prototype.setLayerZoomRange=function(B,K,ye){this._checkLoaded();var ne=this.getLayer(B);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===ye||(K!=null&&(ne.minzoom=K),ye!=null&&(ne.maxzoom=ye),this._updateLayer(ne))},R.prototype.setFilter=function(B,K,ye){ye===void 0&&(ye={}),this._checkLoaded();var ne=this.getLayer(B);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,ye)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},R.prototype.getFilter=function(B){return i.clone$1(this.getLayer(B).filter)},R.prototype.setLayoutProperty=function(B,K,ye,ne){ne===void 0&&(ne={}),this._checkLoaded();var ke=this.getLayer(B);if(!ke){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(ke.getLayoutProperty(K),ye)||(ke.setLayoutProperty(K,ye,ne),this._updateLayer(ke))},R.prototype.getLayoutProperty=function(B,K){var ye=this.getLayer(B);if(!ye){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style.")));return}return ye.getLayoutProperty(K)},R.prototype.setPaintProperty=function(B,K,ye,ne){ne===void 0&&(ne={}),this._checkLoaded();var ke=this.getLayer(B);if(!ke){this.fire(new i.ErrorEvent(new Error("The layer '"+B+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(ke.getPaintProperty(K),ye)){var Je=ke.setPaintProperty(K,ye,ne);Je&&this._updateLayer(ke),this._changed=!0,this._updatedPaintProps[B]=!0}},R.prototype.getPaintProperty=function(B,K){return this.getLayer(B).getPaintProperty(K)},R.prototype.setFeatureState=function(B,K){this._checkLoaded();var ye=B.source,ne=B.sourceLayer,ke=this.sourceCaches[ye];if(ke===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+ye+"' does not exist in the map's style.")));return}var Je=ke.getSource().type;if(Je==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Je==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}B.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ke.setFeatureState(ne,B.id,K)},R.prototype.removeFeatureState=function(B,K){this._checkLoaded();var ye=B.source,ne=this.sourceCaches[ye];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+ye+"' does not exist in the map's style.")));return}var ke=ne.getSource().type,Je=ke==="vector"?B.sourceLayer:void 0;if(ke==="vector"&&!Je){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof B.id!="string"&&typeof B.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Je,B.id,K)},R.prototype.getFeatureState=function(B){this._checkLoaded();var K=B.source,ye=B.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var ke=ne.getSource().type;if(ke==="vector"&&!ye){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return B.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(ye,B.id)},R.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},R.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(B){return B.serialize()}),layers:this._serializeLayers(this._order)},function(B){return B!==void 0})},R.prototype._updateLayer=function(B){this._updatedLayers[B.id]=!0,B.source&&!this._updatedSources[B.source]&&this.sourceCaches[B.source].getSource().type!=="raster"&&(this._updatedSources[B.source]="reload",this.sourceCaches[B.source].pause()),this._changed=!0},R.prototype._flattenAndSortRenderedFeatures=function(B){for(var K=this,ye=function(yn){return K._layers[yn].type==="fill-extrusion"},ne={},ke=[],Je=this._order.length-1;Je>=0;Je--){var Ct=this._order[Je];if(ye(Ct)){ne[Ct]=Je;for(var ur=0,Sr=B;ur=0;Kt--){var ar=this._order[Kt];if(ye(ar))for(var Jt=ke.length-1;Jt>=0;Jt--){var Ft=ke[Jt].feature;if(ne[Ft.layer.id] 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,Rs=`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,Ds=`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; @@ -3160,7 +3160,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,as=zo(Ys,qs),Ma=zo(Ns,Ba),Qs=zo(ha,Vs),ho=zo(Ya,_n),gs=zo(Vn,wo),Vo=zo(Da,Xn),Ro=zo(sn,$n),Lo=zo(Ka,qn),xs=zo(Eo,Ja),ks=zo(lo,eo),Ea=zo(sa,es),Jn=zo(Na,en),Bo=zo(Pa,to),rl=zo(yo,Jo),Gs=zo(Ao,Rn),bs=zo(_a,Ws),zs=zo(Ca,Es),$o=zo(Ts,Ho),Aa=zo(Wa,To),os=zo(ts,Wo),_l=zo(qa,on),Ss=zo(Oo,ko),po=zo(oo,za),go=zo(ea,rs),ss=zo($s,us),qo=zo(Rs,fl);function zo(Y,D){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,B=D.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ye=D.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=ye?ye.concat(K):K,Ee={};return Y=Y.replace(J,function(Je,Ct,ur,Sr,nr){return Ee[nr]=!0,Ct==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,as=zo(Ys,qs),Ma=zo(Ns,Ba),Qs=zo(ha,Vs),ho=zo(Ya,_n),gs=zo(Vn,wo),Vo=zo(Ra,Xn),Do=zo(sn,$n),Lo=zo(Ka,qn),xs=zo(Eo,Ja),ks=zo(lo,eo),Ea=zo(sa,es),Jn=zo(Na,en),Bo=zo(Pa,to),rl=zo(yo,Jo),Gs=zo(Ao,Dn),bs=zo(_a,Ws),zs=zo(Ca,Es),$o=zo(Ts,Ho),Aa=zo(Wa,To),os=zo(ts,Wo),_l=zo(qa,on),Ss=zo(Oo,ko),po=zo(oo,za),go=zo(ea,rs),ss=zo($s,us),qo=zo(Ds,fl);function zo(Y,R){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,B=R.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ye=R.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=ye?ye.concat(K):K,ke={};return Y=Y.replace(J,function(Je,Ct,ur,Sr,nr){return ke[nr]=!0,Ct==="define"?` #ifndef HAS_UNIFORM_u_`+nr+` varying `+ur+" "+Sr+" "+nr+`; #else @@ -3170,7 +3170,7 @@ uniform `+ur+" "+Sr+" u_"+nr+`; #ifdef HAS_UNIFORM_u_`+nr+` `+ur+" "+Sr+" "+nr+" = u_"+nr+`; #endif -`}),D=D.replace(J,function(Je,Ct,ur,Sr,nr){var Qe=Sr==="float"?"vec2":"vec4",pt=nr.match(/color/)?"color":Qe;return Ee[nr]?Ct==="define"?` +`}),R=R.replace(J,function(Je,Ct,ur,Sr,nr){var Qe=Sr==="float"?"vec2":"vec4",pt=nr.match(/color/)?"color":Qe;return ke[nr]?Ct==="define"?` #ifndef HAS_UNIFORM_u_`+nr+` uniform lowp float u_`+nr+`_t; attribute `+ur+" "+Qe+" a_"+nr+`; @@ -3209,9 +3209,9 @@ uniform `+ur+" "+Sr+" u_"+nr+`; #else `+ur+" "+Sr+" "+nr+" = u_"+nr+`; #endif -`}),{fragmentSource:Y,vertexSource:D,staticAttributes:B,staticUniforms:ne}}var io=Object.freeze({__proto__:null,prelude:as,background:Ma,backgroundPattern:Qs,circle:ho,clippingMask:gs,heatmap:Vo,heatmapTexture:Ro,collisionBox:Lo,collisionCircle:xs,debug:ks,fill:Ea,fillOutline:Jn,fillOutlinePattern:Bo,fillPattern:rl,fillExtrusion:Gs,fillExtrusionPattern:bs,hillshadePrepare:zs,hillshade:$o,line:Aa,lineGradient:os,linePattern:_l,lineSDF:Ss,raster:po,symbolIcon:go,symbolSDF:ss,symbolTextAndIcon:qo}),Io=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Io.prototype.bind=function(D,J,B,K,ye,ne,Ee,Je){this.context=D;for(var Ct=this.boundPaintVertexBuffers.length!==K.length,ur=0;!Ct&&ur>16,Ee>>16],u_pixel_coord_lower:[ne&65535,Ee&65535]}}function cl(Y,D,J,B){var K=J.imageManager.getPattern(Y.from.toString()),ye=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),Ee=ne.width,Je=ne.height,Ct=Math.pow(2,B.tileID.overscaledZ),ur=B.tileSize*Math.pow(2,J.transform.tileZoom)/Ct,Sr=ur*(B.tileID.canonical.x+B.tileID.wrap*Ct),nr=ur*B.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:ye.tl,u_pattern_br_b:ye.br,u_texsize:[Ee,Je],u_mix:D.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:ye.displaySize,u_scale_a:D.fromScale,u_scale_b:D.toScale,u_tile_units_to_pixels:1/uo(B,1,J.transform.tileZoom),u_pixel_coord_upper:[Sr>>16,nr>>16],u_pixel_coord_lower:[Sr&65535,nr&65535]}}var el=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Hs=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,D.u_height_factor),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Do=function(Y,D,J,B){var K=D.style.light,ye=K.properties.get("position"),ne=[ye.x,ye.y,ye.z],Ee=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(Ee,-D.transform.angle),i.transformMat3(ne,ne,Ee);var Je=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Je.r,Je.g,Je.b],u_vertical_gradient:+J,u_opacity:B}},tl=function(Y,D,J,B,K,ye,ne){return i.extend(Do(Y,D,J,B),fs(ye,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Fs=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},hl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},Fa=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world)}},Ms=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},jo=function(Y){return{u_matrix:Y}},Ds=function(Y,D,J,B){return i.extend(jo(Y),fs(J,D,B))},Is=function(Y,D){return{u_matrix:Y,u_world:D}},Os=function(Y,D,J,B,K){return i.extend(Ds(Y,D,J,B),{u_world:K})},St=function(Y,D){return{u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,D.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Ut=function(Y,D,J,B){var K=Y.transform,ye,ne;if(B.paint.get("circle-pitch-alignment")==="map"){var Ee=uo(J,1,K.zoom);ye=!0,ne=[Ee,Ee]}else ye=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(B.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,B.paint.get("circle-translate"),B.paint.get("circle-translate-anchor")),u_pitch_with_map:+ye,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},xr=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,D.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,D.u_overscale_factor)}},dr=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,D.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,D.u_viewport_size)}},Rr=function(Y,D,J){var B=uo(J,1,D.zoom),K=Math.pow(2,D.zoom-J.tileID.overscaledZ),ye=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:D.cameraToCenterDistance,u_pixels_to_tile_units:B,u_extrude_scale:[D.pixelsToGLUnits[0]/(B*K),D.pixelsToGLUnits[1]/(B*K)],u_overscale_factor:ye}},yi=function(Y,D,J){return{u_matrix:Y,u_inv_matrix:D,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Ti=function(Y,D){return{u_color:new i.UniformColor(Y,D.u_color),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_overlay:new i.Uniform1i(Y,D.u_overlay),u_overlay_scale:new i.Uniform1f(Y,D.u_overlay_scale)}},ki=function(Y,D,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:D,u_overlay:0,u_overlay_scale:J}},Ki=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Fn=function(Y){return{u_matrix:Y}},Li=function(Y,D){return{u_extrude_scale:new i.Uniform1f(Y,D.u_extrude_scale),u_intensity:new i.Uniform1f(Y,D.u_intensity),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},hi=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_color_ramp:new i.Uniform1i(Y,D.u_color_ramp),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Ci=function(Y,D,J,B){return{u_matrix:Y,u_extrude_scale:uo(D,1,J),u_intensity:B}},Si=function(Y,D,J,B){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var ye=Y.context.gl;return{u_matrix:K,u_world:[ye.drawingBufferWidth,ye.drawingBufferHeight],u_image:J,u_color_ramp:B,u_opacity:D.paint.get("heatmap-opacity")}},Gn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_latrange:new i.Uniform2f(Y,D.u_latrange),u_light:new i.Uniform2f(Y,D.u_light),u_shadow:new i.UniformColor(Y,D.u_shadow),u_highlight:new i.UniformColor(Y,D.u_highlight),u_accent:new i.UniformColor(Y,D.u_accent)}},ta=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_dimension:new i.Uniform2f(Y,D.u_dimension),u_zoom:new i.Uniform1f(Y,D.u_zoom),u_unpack:new i.Uniform4f(Y,D.u_unpack)}},ya=function(Y,D,J){var B=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),ye=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var Ee=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(D.tileID.toUnwrapped(),Ee),u_image:0,u_latrange:pa(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:B,u_highlight:K,u_accent:ye}},ia=function(Y,D){var J=D.stride,B=i.create();return i.ortho(B,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(B,B,[0,-i.EXTENT,0]),{u_matrix:B,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function pa(Y,D){var J=Math.pow(2,D.canonical.z),B=D.canonical.y;return[new i.MercatorCoordinate(0,B/J).toLngLat().lat,new i.MercatorCoordinate(0,(B+1)/J).toLngLat().lat]}var va=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels)}},zn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_image:new i.Uniform1i(Y,D.u_image),u_image_height:new i.Uniform1f(Y,D.u_image_height)}},is=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,D.u_image),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},Cs=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,D.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,D.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,D.u_sdfgamma),u_image:new i.Uniform1i(Y,D.u_image),u_tex_y_a:new i.Uniform1f(Y,D.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,D.u_tex_y_b),u_mix:new i.Uniform1f(Y,D.u_mix)}},Ks=function(Y,D,J){var B=Y.transform;return{u_matrix:eu(Y,D,J),u_ratio:1/uo(D,1,B.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/B.pixelsToGLUnits[0],1/B.pixelsToGLUnits[1]]}},dl=function(Y,D,J,B){return i.extend(Ks(Y,D,J),{u_image:0,u_image_height:B})},xl=function(Y,D,J,B){var K=Y.transform,ye=bl(D,K);return{u_matrix:eu(Y,D,J),u_texsize:D.imageAtlasTexture.size,u_ratio:1/uo(D,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[ye,B.fromScale,B.toScale],u_fade:B.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Bl=function(Y,D,J,B,K){var ye=Y.transform,ne=Y.lineAtlas,Ee=bl(D,ye),Je=J.layout.get("line-cap")==="round",Ct=ne.getDash(B.from,Je),ur=ne.getDash(B.to,Je),Sr=Ct.width*K.fromScale,nr=ur.width*K.toScale;return i.extend(Ks(Y,D,J),{u_patternscale_a:[Ee/Sr,-Ct.height/2],u_patternscale_b:[Ee/nr,-ur.height/2],u_sdfgamma:ne.width/(Math.min(Sr,nr)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Ct.y,u_tex_y_b:ur.y,u_mix:K.t})};function bl(Y,D){return 1/uo(Y,1,D.tileZoom)}function eu(Y,D,J){return Y.translatePosMatrix(D.tileID.posMatrix,D,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Zl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_tl_parent:new i.Uniform2f(Y,D.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,D.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,D.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,D.u_fade_t),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image0:new i.Uniform1i(Y,D.u_image0),u_image1:new i.Uniform1i(Y,D.u_image1),u_brightness_low:new i.Uniform1f(Y,D.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,D.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,D.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,D.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,D.u_spin_weights)}},Vl=function(Y,D,J,B,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:B.mix,u_opacity:B.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:Js(K.paint.get("raster-saturation")),u_contrast_factor:ns(K.paint.get("raster-contrast")),u_spin_weights:ja(K.paint.get("raster-hue-rotate"))}};function ja(Y){Y*=Math.PI/180;var D=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*D-J+1)/3,(Math.sqrt(3)*D-J+1)/3]}function ns(Y){return Y>0?1/(1-Y):1+Y}function Js(Y){return Y>0?1-1/(1.001-Y):-Y}var cs=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture)}},sl=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},ll=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texsize_icon:new i.Uniform2f(Y,D.u_texsize_icon),u_texture:new i.Uniform1i(Y,D.u_texture),u_texture_icon:new i.Uniform1i(Y,D.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},nl=function(Y,D,J,B,K,ye,ne,Ee,Je,Ct){var ur=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:D?D.uSizeT:0,u_size:D?D.uSize:0,u_camera_to_center_distance:ur.cameraToCenterDistance,u_pitch:ur.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:ur.width/ur.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:ye,u_label_plane_matrix:ne,u_coord_matrix:Ee,u_is_text:+Je,u_pitch_with_map:+B,u_texsize:Ct,u_texture:0}},zl=function(Y,D,J,B,K,ye,ne,Ee,Je,Ct,ur){var Sr=K.transform;return i.extend(nl(Y,D,J,B,K,ye,ne,Ee,Je,Ct),{u_gamma_scale:B?Math.cos(Sr._pitch)*Sr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+ur})},Ml=function(Y,D,J,B,K,ye,ne,Ee,Je,Ct){return i.extend(zl(Y,D,J,B,K,ye,ne,Ee,!0,Je,!0),{u_texsize_icon:Ct,u_texture_icon:1})},Dl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_color:new i.UniformColor(Y,D.u_color)}},Al=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image:new i.Uniform1i(Y,D.u_image),u_pattern_tl_a:new i.Uniform2f(Y,D.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,D.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,D.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,D.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_mix:new i.Uniform1f(Y,D.u_mix),u_pattern_size_a:new i.Uniform2f(Y,D.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,D.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,D.u_scale_a),u_scale_b:new i.Uniform1f(Y,D.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,D.u_tile_units_to_pixels)}},Ll=function(Y,D,J){return{u_matrix:Y,u_opacity:D,u_color:J}},ms=function(Y,D,J,B,K,ye){return i.extend(cl(B,ye,J,K),{u_matrix:Y,u_opacity:D})},Bs={fillExtrusion:el,fillExtrusionPattern:Hs,fill:Fs,fillPattern:hl,fillOutline:Fa,fillOutlinePattern:Ms,circle:St,collisionBox:xr,collisionCircle:dr,debug:Ti,clippingMask:Ki,heatmap:Li,heatmapTexture:hi,hillshade:Gn,hillshadePrepare:ta,line:va,lineGradient:zn,linePattern:is,lineSDF:Cs,raster:Zl,symbolIcon:cs,symbolSDF:sl,symbolTextAndIcon:ll,background:Dl,backgroundPattern:Al},Xl;function Gl(Y,D,J,B,K,ye,ne){for(var Ee=Y.context,Je=Ee.gl,Ct=Y.useProgram("collisionBox"),ur=[],Sr=0,nr=0,Qe=0;Qe0){var Jt=i.create(),Ft=ir;i.mul(Jt,Xt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Jt,Jt,Xt.placementViewportMatrix),ur.push({circleArray:ar,circleOffset:nr,transform:Ft,invTransform:Jt}),Sr+=ar.length/4,nr=Sr}Kt&&Ct.draw(Ee,Je.LINES,Di.disabled,qr.disabled,Y.colorModeForRenderPass(),mr.disabled,Rr(ir,Y.transform,Tt),J.id,Kt.layoutVertexBuffer,Kt.indexBuffer,Kt.segments,null,Y.transform.zoom,null,null,Kt.collisionVertexBuffer)}}if(!(!ne||!ur.length)){var Zt=Y.useProgram("collisionCircle"),Pt=new i.StructArrayLayout2f1f2i16;Pt.resize(Sr*4),Pt._trim();for(var Ar=0,Br=0,ci=ur;Br=0&&(pt[Xt.associatedIconIndex]={shiftedAnchor:yn,angle:Xa})}}if(ur){Qe.clear();for(var Tn=Y.icon.placedSymbolArray,Pn=0;Pn0){var ne=i.browser.now(),Ee=(ne-Y.timeAdded)/ye,Je=D?(ne-D.timeAdded)/ye:-1,Ct=J.getSource(),ur=K.coveringZoomLevel({tileSize:Ct.tileSize,roundZoom:Ct.roundZoom}),Sr=!D||Math.abs(D.tileID.overscaledZ-ur)>Math.abs(Y.tileID.overscaledZ-ur),nr=Sr&&Y.refreshedUponExpiration?1:i.clamp(Sr?Ee:1-Je,0,1);return Y.refreshedUponExpiration&&Ee>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-nr}:{opacity:nr,mix:0}}else return{opacity:1,mix:0}}function sr(Y,D,J){var B=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var ye=Y.context,ne=ye.gl,Ee=Y.transform,Je=Ee.tileSize,Ct=J.paint.get("background-pattern");if(!Y.isPatternMissing(Ct)){var ur=!Ct&&B.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===ur){var Sr=qr.disabled,nr=Y.depthModeForSublayer(0,ur==="opaque"?Di.ReadWrite:Di.ReadOnly),Qe=Y.colorModeForRenderPass(),pt=Y.useProgram(Ct?"backgroundPattern":"background"),Tt=Ee.coveringTiles({tileSize:Je});Ct&&(ye.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Xt=J.getCrossfadeParameters(),ir=0,Kt=Tt;ir "+J.overscaledZ);var ir=Xt+" "+Qe+"kb";ml(Y,ir),ne.draw(B,K.TRIANGLES,Ee,Je,_t.alphaBlended,mr.disabled,ki(ye,i.Color.transparent,Tt),ur,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function ml(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,B=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(D,5,5),K.strokeText(D,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}function au(Y,D,J){var B=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var ye=K.prerender;ye&&(Y.setCustomLayerDefaults(),B.setColorMode(Y.colorModeForRenderPass()),ye.call(K,B.gl,Y.transform.customLayerMatrix()),B.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),B.setColorMode(Y.colorModeForRenderPass()),B.setStencilMode(qr.disabled);var ne=K.renderingMode==="3d"?new Di(Y.context.gl.LEQUAL,Di.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,Di.ReadOnly);B.setDepthMode(ne),K.render(B.gl,Y.transform.customLayerMatrix()),B.setDirty(),Y.setBaseState(),B.bindFramebuffer.set(null)}}var Sl={symbol:w,circle:yt,heatmap:Dt,line:Ur,fill:he,"fill-extrusion":qe,hillshade:ft,raster:Gt,background:sr,debug:vl,custom:au},Yl=function(D,J){this.context=new Lr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=Nr.maxUnderzooming+Nr.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new As,this.gpuTimers={}};Yl.prototype.resize=function(D,J){if(this.width=D*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var B=0,K=this.style._order;B256&&this.clearStencil(),B.setColorMode(_t.disabled),B.setDepthMode(Di.disabled);var ye=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,Ee=J;ne256&&this.clearStencil();var D=this.nextStencilID++,J=this.context.gl;return new qr({func:J.NOTEQUAL,mask:255},D,255,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilModeForClipping=function(D){var J=this.context.gl;return new qr({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilConfigForOverlap=function(D){var J,B=this.context.gl,K=D.sort(function(Ct,ur){return ur.overscaledZ-Ct.overscaledZ}),ye=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-ye+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var Ee={},Je=0;Je=0;this.currentLayer--){var Jt=this.style._layers[K[this.currentLayer]],Ft=ye[Jt.source],Zt=Je[Jt.source];this._renderTileClippingMasks(Jt,Zt),this.renderLayer(this,Ft,Jt,Zt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},Yl.prototype.isPatternMissing=function(D){if(!D)return!1;if(!D.from||!D.to)return!0;var J=this.imageManager.getPattern(D.from.toString()),B=this.imageManager.getPattern(D.to.toString());return!J||!B},Yl.prototype.useProgram=function(D,J){this.cache=this.cache||{};var B=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[B]||(this.cache[B]=new vs(this.context,D,io[D],J,Bs[D],this._showOverdrawInspector)),this.cache[B]},Yl.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Yl.prototype.setBaseState=function(){var D=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(D.FUNC_ADD)},Yl.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var D=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,D.RGBA)}},Yl.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var ql=function(D,J){this.points=D,this.planes=J};ql.fromInvProjectionMatrix=function(D,J,B){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],ye=Math.pow(2,B),ne=K.map(function(Ct){return i.transformMat4([],Ct,D)}).map(function(Ct){return i.scale$1([],Ct,1/Ct[3]/J*ye)}),Ee=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Je=Ee.map(function(Ct){var ur=i.sub([],ne[Ct[0]],ne[Ct[1]]),Sr=i.sub([],ne[Ct[2]],ne[Ct[1]]),nr=i.normalize([],i.cross([],ur,Sr)),Qe=-i.dot(nr,ne[Ct[1]]);return nr.concat(Qe)});return new ql(ne,Je)};var ou=function(D,J){this.min=D,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};ou.prototype.quadrant=function(D){for(var J=[D%2===0,D<2],B=i.clone$2(this.min),K=i.clone$2(this.max),ye=0;ye=0;if(ne===0)return 0;ne!==J.length&&(B=!1)}if(B)return 2;for(var Je=0;Je<3;Je++){for(var Ct=Number.MAX_VALUE,ur=-Number.MAX_VALUE,Sr=0;Srthis.max[Je]-this.min[Je])return 0}return 1};var Pu=function(D,J,B,K){if(D===void 0&&(D=0),J===void 0&&(J=0),B===void 0&&(B=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(B)||B<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=D,this.bottom=J,this.left=B,this.right=K};Pu.prototype.interpolate=function(D,J,B){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,B)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,B)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,B)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,B)),this},Pu.prototype.getCenter=function(D,J){var B=i.clamp((this.left+D-this.right)/2,0,D),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(B,K)},Pu.prototype.equals=function(D){return this.top===D.top&&this.bottom===D.bottom&&this.left===D.left&&this.right===D.right},Pu.prototype.clone=function(){return new Pu(this.top,this.bottom,this.left,this.right)},Pu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var nu=function(D,J,B,K,ye){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ye===void 0?!0:ye,this._minZoom=D||0,this._maxZoom=J||22,this._minPitch=B==null?0:B,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Pu,this._posMatrixCache={},this._alignedPosMatrixCache={}},ru={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};nu.prototype.clone=function(){var D=new nu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return D.tileSize=this.tileSize,D.latRange=this.latRange,D.width=this.width,D.height=this.height,D._center=this._center,D.zoom=this.zoom,D.angle=this.angle,D._fov=this._fov,D._pitch=this._pitch,D._unmodified=this._unmodified,D._edgeInsets=this._edgeInsets.clone(),D._calcMatrices(),D},ru.minZoom.get=function(){return this._minZoom},ru.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},ru.maxZoom.get=function(){return this._maxZoom},ru.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},ru.minPitch.get=function(){return this._minPitch},ru.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},ru.maxPitch.get=function(){return this._maxPitch},ru.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},ru.renderWorldCopies.get=function(){return this._renderWorldCopies},ru.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},ru.worldSize.get=function(){return this.tileSize*this.scale},ru.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},ru.size.get=function(){return new i.Point(this.width,this.height)},ru.bearing.get=function(){return-this.angle/Math.PI*180},ru.bearing.set=function(Y){var D=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==D&&(this._unmodified=!1,this.angle=D,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},ru.pitch.get=function(){return this._pitch/Math.PI*180},ru.pitch.set=function(Y){var D=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==D&&(this._unmodified=!1,this._pitch=D,this._calcMatrices())},ru.fov.get=function(){return this._fov/Math.PI*180},ru.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},ru.zoom.get=function(){return this._zoom},ru.zoom.set=function(Y){var D=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==D&&(this._unmodified=!1,this._zoom=D,this.scale=this.zoomScale(D),this.tileZoom=Math.floor(D),this.zoomFraction=D-this.tileZoom,this._constrain(),this._calcMatrices())},ru.center.get=function(){return this._center},ru.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},ru.padding.get=function(){return this._edgeInsets.toJSON()},ru.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},ru.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},nu.prototype.isPaddingEqual=function(D){return this._edgeInsets.equals(D)},nu.prototype.interpolatePadding=function(D,J,B){this._unmodified=!1,this._edgeInsets.interpolate(D,J,B),this._constrain(),this._calcMatrices()},nu.prototype.coveringZoomLevel=function(D){var J=(D.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/D.tileSize));return Math.max(0,J)},nu.prototype.getVisibleUnwrappedCoordinates=function(D){var J=[new i.UnwrappedTileID(0,D)];if(this._renderWorldCopies)for(var B=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),ye=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),Ee=Math.floor(Math.min(B.x,K.x,ye.x,ne.x)),Je=Math.floor(Math.max(B.x,K.x,ye.x,ne.x)),Ct=1,ur=Ee-Ct;ur<=Je+Ct;ur++)ur!==0&&J.push(new i.UnwrappedTileID(ur,D));return J},nu.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),B=J;if(D.minzoom!==void 0&&JD.maxzoom&&(J=D.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),ye=Math.pow(2,J),ne=[ye*K.x,ye*K.y,0],Ee=ql.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Je=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Je=J);var Ct=3,ur=function(Yi){return{aabb:new ou([Yi*ye,0,0],[(Yi+1)*ye,ye,0]),zoom:0,x:0,y:0,wrap:Yi,fullyVisible:!1}},Sr=[],nr=[],Qe=J,pt=D.reparseOverscaled?B:J;if(this._renderWorldCopies)for(var Tt=1;Tt<=3;Tt++)Sr.push(ur(-Tt)),Sr.push(ur(Tt));for(Sr.push(ur(0));Sr.length>0;){var Xt=Sr.pop(),ir=Xt.x,Kt=Xt.y,ar=Xt.fullyVisible;if(!ar){var Jt=Xt.aabb.intersects(Ee);if(Jt===0)continue;ar=Jt===2}var Ft=Xt.aabb.distanceX(ne),Zt=Xt.aabb.distanceY(ne),Pt=Math.max(Math.abs(Ft),Math.abs(Zt)),Ar=Ct+(1<Ar&&Xt.zoom>=Je){nr.push({tileID:new i.OverscaledTileID(Xt.zoom===Qe?pt:Xt.zoom,Xt.wrap,Xt.zoom,ir,Kt),distanceSq:i.sqrLen([ne[0]-.5-ir,ne[1]-.5-Kt])});continue}for(var Br=0;Br<4;Br++){var ci=(ir<<1)+Br%2,Cn=(Kt<<1)+(Br>>1);Sr.push({aabb:Xt.aabb.quadrant(Br),zoom:Xt.zoom+1,x:ci,y:Cn,wrap:Xt.wrap,fullyVisible:ar})}}return nr.sort(function(Yi,yn){return Yi.distanceSq-yn.distanceSq}).map(function(Yi){return Yi.tileID})},nu.prototype.resize=function(D,J){this.width=D,this.height=J,this.pixelsToGLUnits=[2/D,-2/J],this._constrain(),this._calcMatrices()},ru.unmodified.get=function(){return this._unmodified},nu.prototype.zoomScale=function(D){return Math.pow(2,D)},nu.prototype.scaleZoom=function(D){return Math.log(D)/Math.LN2},nu.prototype.project=function(D){var J=i.clamp(D.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(D.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},nu.prototype.unproject=function(D){return new i.MercatorCoordinate(D.x/this.worldSize,D.y/this.worldSize).toLngLat()},ru.point.get=function(){return this.project(this.center)},nu.prototype.setLocationAtPoint=function(D,J){var B=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),ye=this.locationCoordinate(D),ne=new i.MercatorCoordinate(ye.x-(B.x-K.x),ye.y-(B.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},nu.prototype.locationPoint=function(D){return this.coordinatePoint(this.locationCoordinate(D))},nu.prototype.pointLocation=function(D){return this.coordinateLocation(this.pointCoordinate(D))},nu.prototype.locationCoordinate=function(D){return i.MercatorCoordinate.fromLngLat(D)},nu.prototype.coordinateLocation=function(D){return D.toLngLat()},nu.prototype.pointCoordinate=function(D){var J=0,B=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(B,B,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var ye=B[3],ne=K[3],Ee=B[0]/ye,Je=K[0]/ne,Ct=B[1]/ye,ur=K[1]/ne,Sr=B[2]/ye,nr=K[2]/ne,Qe=Sr===nr?0:(J-Sr)/(nr-Sr);return new i.MercatorCoordinate(i.number(Ee,Je,Qe)/this.worldSize,i.number(Ct,ur,Qe)/this.worldSize)},nu.prototype.coordinatePoint=function(D){var J=[D.x*this.worldSize,D.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},nu.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},nu.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},nu.prototype.setMaxBounds=function(D){D?(this.lngRange=[D.getWest(),D.getEast()],this.latRange=[D.getSouth(),D.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},nu.prototype.calculatePosMatrix=function(D,J){J===void 0&&(J=!1);var B=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[B])return K[B];var ye=D.canonical,ne=this.worldSize/this.zoomScale(ye.z),Ee=ye.x+Math.pow(2,ye.z)*D.wrap,Je=i.identity(new Float64Array(16));return i.translate(Je,Je,[Ee*ne,ye.y*ne,0]),i.scale(Je,Je,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Je,J?this.alignedProjMatrix:this.projMatrix,Je),K[B]=new Float32Array(Je),K[B]},nu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},nu.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var D=-90,J=90,B=-180,K=180,ye,ne,Ee,Je,Ct=this.size,ur=this._unmodified;if(this.latRange){var Sr=this.latRange;D=i.mercatorYfromLat(Sr[1])*this.worldSize,J=i.mercatorYfromLat(Sr[0])*this.worldSize,ye=J-DJ&&(Je=J-Xt)}if(this.lngRange){var ir=Qe.x,Kt=Ct.x/2;ir-KtK&&(Ee=K-Kt)}(Ee!==void 0||Je!==void 0)&&(this.center=this.unproject(new i.Point(Ee!==void 0?Ee:Qe.x,Je!==void 0?Je:Qe.y))),this._unmodified=ur,this._constraining=!1}},nu.prototype._calcMatrices=function(){if(this.height){var D=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(D)*this.height;var B=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),ye=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-B-K,.01,Math.PI-.01)),ne=this.point,Ee=ne.x,Je=ne.y,Ct=Math.cos(Math.PI/2-this._pitch)*ye+this.cameraToCenterDistance,ur=Ct*1.01,Sr=this.height/50,nr=new Float64Array(16);i.perspective(nr,this._fov,this.width/this.height,Sr,ur),nr[8]=-J.x*2/this.width,nr[9]=J.y*2/this.height,i.scale(nr,nr,[1,-1,1]),i.translate(nr,nr,[0,0,-this.cameraToCenterDistance]),i.rotateX(nr,nr,this._pitch),i.rotateZ(nr,nr,this.angle),i.translate(nr,nr,[-Ee,-Je,0]),this.mercatorMatrix=i.scale([],nr,[this.worldSize,this.worldSize,this.worldSize]),i.scale(nr,nr,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=nr,this.invProjMatrix=i.invert([],this.projMatrix);var Qe=this.width%2/2,pt=this.height%2/2,Tt=Math.cos(this.angle),Xt=Math.sin(this.angle),ir=Ee-Math.round(Ee)+Tt*Qe+Xt*pt,Kt=Je-Math.round(Je)+Tt*pt+Xt*Qe,ar=new Float64Array(nr);if(i.translate(ar,ar,[ir>.5?ir-1:ir,Kt>.5?Kt-1:Kt,0]),this.alignedProjMatrix=ar,nr=i.create(),i.scale(nr,nr,[this.width/2,-this.height/2,1]),i.translate(nr,nr,[1,-1,0]),this.labelPlaneMatrix=nr,nr=i.create(),i.scale(nr,nr,[1,-1,1]),i.translate(nr,nr,[-1,-1,0]),i.scale(nr,nr,[2/this.width,2/this.height,1]),this.glCoordMatrix=nr,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),nr=i.invert(new Float64Array(16),this.pixelMatrix),!nr)throw new Error("failed to invert matrix");this.pixelMatrixInverse=nr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},nu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var D=this.pointCoordinate(new i.Point(0,0)),J=[D.x*this.worldSize,D.y*this.worldSize,0,1],B=i.transformMat4(J,J,this.pixelMatrix);return B[3]/this.cameraToCenterDistance},nu.prototype.getCameraPoint=function(){var D=this._pitch,J=Math.tan(D)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},nu.prototype.getCameraQueryGeometry=function(D){var J=this.getCameraPoint();if(D.length===1)return[D[0],J];for(var B=J.x,K=J.y,ye=J.x,ne=J.y,Ee=0,Je=D;Ee=3&&!D.some(function(B){return isNaN(B)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(D[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+D[2],+D[1]],zoom:+D[0],bearing:J,pitch:+(D[4]||0)}),!0}return!1},$u.prototype._updateHashUnthrottled=function(){var D=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,D)}catch(J){}};var Ku={linearity:.3,easing:i.bezier(0,0,.3,1)},Wu=i.extend({deceleration:2500,maxSpeed:1400},Ku),ju=i.extend({deceleration:20,maxSpeed:1400},Ku),sf=i.extend({deceleration:1e3,maxSpeed:360},Ku),_f=i.extend({deceleration:1e3,maxSpeed:90},Ku),Qu=function(D){this._map=D,this.clear()};Qu.prototype.clear=function(){this._inertiaBuffer=[]},Qu.prototype.record=function(D){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:D})},Qu.prototype._drainInertiaBuffer=function(){for(var D=this._inertiaBuffer,J=i.browser.now(),B=160;D.length>0&&J-D[0].time>B;)D.shift()},Qu.prototype._onMoveEnd=function(D){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},B=0,K=this._inertiaBuffer;B=this._clickTolerance||this._map.fire(new le(D.type,this._map,D))},nt.prototype.dblclick=function(D){return this._firePreventable(new le(D.type,this._map,D))},nt.prototype.mouseover=function(D){this._map.fire(new le(D.type,this._map,D))},nt.prototype.mouseout=function(D){this._map.fire(new le(D.type,this._map,D))},nt.prototype.touchstart=function(D){return this._firePreventable(new ke(D.type,this._map,D))},nt.prototype.touchmove=function(D){this._map.fire(new ke(D.type,this._map,D))},nt.prototype.touchend=function(D){this._map.fire(new ke(D.type,this._map,D))},nt.prototype.touchcancel=function(D){this._map.fire(new ke(D.type,this._map,D))},nt.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},nt.prototype.isEnabled=function(){return!0},nt.prototype.isActive=function(){return!1},nt.prototype.enable=function(){},nt.prototype.disable=function(){};var ut=function(D){this._map=D};ut.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},ut.prototype.mousemove=function(D){this._map.fire(new le(D.type,this._map,D))},ut.prototype.mousedown=function(){this._delayContextMenu=!0},ut.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new le("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},ut.prototype.contextmenu=function(D){this._delayContextMenu?this._contextMenuEvent=D:this._map.fire(new le(D.type,this._map,D)),this._map.listens("contextmenu")&&D.preventDefault()},ut.prototype.isEnabled=function(){return!0},ut.prototype.isActive=function(){return!1},ut.prototype.enable=function(){},ut.prototype.disable=function(){};var Ht=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};Ht.prototype.isEnabled=function(){return!!this._enabled},Ht.prototype.isActive=function(){return!!this._active},Ht.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Ht.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ht.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},Ht.prototype.mousemoveWindow=function(D,J){if(this._active){var B=J;if(!(this._lastPos.equals(B)||!this._box&&B.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),B.length===this.numTouches&&(this.centroid=lr(J),this.touches=wt(B,J)))},$r.prototype.touchmove=function(D,J,B){if(!(this.aborted||!this.centroid)){var K=wt(B,J);for(var ye in this.touches){var ne=this.touches[ye],Ee=K[ye];(!Ee||Ee.dist(ne)>ui)&&(this.aborted=!0)}}},$r.prototype.touchend=function(D,J,B){if((!this.centroid||D.timeStamp-this.startTime>zr)&&(this.aborted=!0),B.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var Oi=function(D){this.singleTap=new $r(D),this.numTaps=D.numTaps,this.reset()};Oi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Oi.prototype.touchstart=function(D,J,B){this.singleTap.touchstart(D,J,B)},Oi.prototype.touchmove=function(D,J,B){this.singleTap.touchmove(D,J,B)},Oi.prototype.touchend=function(D,J,B){var K=this.singleTap.touchend(D,J,B);if(K){var ye=D.timeStamp-this.lastTime0&&(this._active=!0);var K=wt(B,J),ye=new i.Point(0,0),ne=new i.Point(0,0),Ee=0;for(var Je in K){var Ct=K[Je],ur=this._touches[Je];ur&&(ye._add(Ct),ne._add(Ct.sub(ur)),Ee++,K[Je]=Ct)}if(this._touches=K,!(EeMath.abs(Y.x)}var ds=100,Wl=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},D.prototype._start=function(B){this._lastPoints=B,tf(B[0].sub(B[1]))&&(this._valid=!1)},D.prototype._move=function(B,K,ye){var ne=B[0].sub(this._lastPoints[0]),Ee=B[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,Ee,ye.timeStamp),!!this._valid){this._lastPoints=B,this._active=!0;var Je=(ne.y+Ee.y)/2,Ct=-.5;return{pitchDelta:Je*Ct}}},D.prototype.gestureBeginsVertically=function(B,K,ye){if(this._valid!==void 0)return this._valid;var ne=2,Ee=B.mag()>=ne,Je=K.mag()>=ne;if(!(!Ee&&!Je)){if(!Ee||!Je)return this._firstMove===void 0&&(this._firstMove=ye),ye-this._firstMove0==K.y>0;return tf(B)&&tf(K)&&Ct}},D}(js),Au={panStep:100,bearingStep:15,pitchStep:10},Tu=function(){var D=Au;this._panStep=D.panStep,this._bearingStep=D.bearingStep,this._pitchStep=D.pitchStep,this._rotationDisabled=!1};Tu.prototype.reset=function(){this._active=!1},Tu.prototype.keydown=function(D){var J=this;if(!(D.altKey||D.ctrlKey||D.metaKey)){var B=0,K=0,ye=0,ne=0,Ee=0;switch(D.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:D.shiftKey?K=-1:(D.preventDefault(),ne=-1);break;case 39:D.shiftKey?K=1:(D.preventDefault(),ne=1);break;case 38:D.shiftKey?ye=1:(D.preventDefault(),Ee=-1);break;case 40:D.shiftKey?ye=-1:(D.preventDefault(),Ee=1);break;default:return}return this._rotationDisabled&&(K=0,ye=0),{cameraAnimation:function(Je){var Ct=Je.getZoom();Je.easeTo({duration:300,easeId:"keyboardHandler",easing:lf,zoom:B?Math.round(Ct)+B*(D.shiftKey?2:1):Ct,bearing:Je.getBearing()+K*J._bearingStep,pitch:Je.getPitch()+ye*J._pitchStep,offset:[-ne*J._panStep,-Ee*J._panStep],center:Je.getCenter()},{originalEvent:D})}}}},Tu.prototype.enable=function(){this._enabled=!0},Tu.prototype.disable=function(){this._enabled=!1,this.reset()},Tu.prototype.isEnabled=function(){return this._enabled},Tu.prototype.isActive=function(){return this._active},Tu.prototype.disableRotation=function(){this._rotationDisabled=!0},Tu.prototype.enableRotation=function(){this._rotationDisabled=!1};function lf(Y){return Y*(2-Y)}var hf=4.000244140625,Mf=1/100,pf=1/450,fc=2,Fe=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=Mf,this._wheelZoomRate=pf,i.bindAll(["_onTimeout"],this)};Fe.prototype.setZoomRate=function(D){this._defaultZoomRate=D},Fe.prototype.setWheelZoomRate=function(D){this._wheelZoomRate=D},Fe.prototype.isEnabled=function(){return!!this._enabled},Fe.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Fe.prototype.isZooming=function(){return!!this._zooming},Fe.prototype.enable=function(D){this.isEnabled()||(this._enabled=!0,this._aroundCenter=D&&D.around==="center")},Fe.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Fe.prototype.wheel=function(D){if(this.isEnabled()){var J=D.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?D.deltaY*40:D.deltaY,B=i.browser.now(),K=B-(this._lastWheelEventTime||0);this._lastWheelEventTime=B,J!==0&&J%hf===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,D)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),D.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=D,this._delta-=J,this._active||this._start(D)),D.preventDefault()}},Fe.prototype._onTimeout=function(D){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(D)},Fe.prototype._start=function(D){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,D);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Fe.prototype.renderFrame=function(){var D=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var B=this._type==="wheel"&&Math.abs(this._delta)>hf?this._wheelZoomRate:this._defaultZoomRate,K=fc/(1+Math.exp(-Math.abs(this._delta*B)));this._delta<0&&K!==0&&(K=1/K);var ye=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(ye*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,Ee=this._startZoom,Je=this._easing,Ct=!1,ur;if(this._type==="wheel"&&Ee&&Je){var Sr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),nr=Je(Sr);ur=i.number(Ee,ne,nr),Sr<1?this._frameId||(this._frameId=!0):Ct=!0}else ur=ne,Ct=!0;return this._active=!0,Ct&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ct,zoomDelta:ur-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Fe.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var B=this._prevEase,K=(i.browser.now()-B.start)/B.duration,ye=B.easing(K+.01)-B.easing(K),ne=.27/Math.sqrt(ye*ye+1e-4)*.01,Ee=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,Ee,.25,1)}return this._prevEase={start:i.browser.now(),duration:D,easing:J},J},Fe.prototype.reset=function(){this._active=!1};var Bt=function(D,J){this._clickZoom=D,this._tapZoom=J};Bt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Bt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Bt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Bt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var tr=function(){this.reset()};tr.prototype.reset=function(){this._active=!1},tr.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(B){B.easeTo({duration:300,zoom:B.getZoom()+(D.shiftKey?-1:1),around:B.unproject(J)},{originalEvent:D})}}},tr.prototype.enable=function(){this._enabled=!0},tr.prototype.disable=function(){this._enabled=!1,this.reset()},tr.prototype.isEnabled=function(){return this._enabled},tr.prototype.isActive=function(){return this._active};var Qr=function(){this._tap=new Oi({numTouches:1,numTaps:1}),this.reset()};Qr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Qr.prototype.touchstart=function(D,J,B){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?B.length>0&&(this._swipePoint=J[0],this._swipeTouch=B[0].identifier):this._tap.touchstart(D,J,B))},Qr.prototype.touchmove=function(D,J,B){if(!this._tapTime)this._tap.touchmove(D,J,B);else if(this._swipePoint){if(B[0].identifier!==this._swipeTouch)return;var K=J[0],ye=K.y-this._swipePoint.y;return this._swipePoint=K,D.preventDefault(),this._active=!0,{zoomDelta:ye/128}}},Qr.prototype.touchend=function(D,J,B){if(this._tapTime)this._swipePoint&&B.length===0&&this.reset();else{var K=this._tap.touchend(D,J,B);K&&(this._tapTime=D.timeStamp)}},Qr.prototype.touchcancel=function(){this.reset()},Qr.prototype.enable=function(){this._enabled=!0},Qr.prototype.disable=function(){this._enabled=!1,this.reset()},Qr.prototype.isEnabled=function(){return this._enabled},Qr.prototype.isActive=function(){return this._active};var vi=function(D,J,B){this._el=D,this._mousePan=J,this._touchPan=B};vi.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},vi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},vi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},vi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fi=function(D,J,B){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=B};fi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(D,J,B,K){this._el=D,this._touchZoom=J,this._touchRotate=B,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(D){this._touchZoom.enable(D),this._rotationDisabled||this._touchRotate.enable(D),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var nn=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},On=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D}(i.Event);function Ln(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var wn=function(D,J){this._map=D,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Qu(D),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var B=this._el;this._listeners=[[B,"touchstart",{passive:!0}],[B,"touchmove",{passive:!1}],[B,"touchend",void 0],[B,"touchcancel",void 0],[B,"mousedown",void 0],[B,"mousemove",void 0],[B,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[B,"mouseover",void 0],[B,"mouseout",void 0],[B,"dblclick",void 0],[B,"click",void 0],[B,"keydown",{capture:!1}],[B,"keyup",void 0],[B,"wheel",{passive:!1}],[B,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,ye=this._listeners;KEe?Math.min(2,Ft):Math.max(.5,Ft),Yi=Math.pow(Cn,1-Br),yn=ne.unproject(ar.add(Jt.mult(Br*Yi)).mult(ci));ne.setLocationAtPoint(ne.renderWorldCopies?yn.wrap():yn,Xt)}ye._fireMoveEvents(K)},function(Br){ye._afterEase(K,Br)},B),this},D.prototype._prepareEase=function(B,K,ye){ye===void 0&&(ye={}),this._moving=!0,!K&&!ye.moving&&this.fire(new i.Event("movestart",B)),this._zooming&&!ye.zooming&&this.fire(new i.Event("zoomstart",B)),this._rotating&&!ye.rotating&&this.fire(new i.Event("rotatestart",B)),this._pitching&&!ye.pitching&&this.fire(new i.Event("pitchstart",B))},D.prototype._fireMoveEvents=function(B){this.fire(new i.Event("move",B)),this._zooming&&this.fire(new i.Event("zoom",B)),this._rotating&&this.fire(new i.Event("rotate",B)),this._pitching&&this.fire(new i.Event("pitch",B))},D.prototype._afterEase=function(B,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var ye=this._zooming,ne=this._rotating,Ee=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ye&&this.fire(new i.Event("zoomend",B)),ne&&this.fire(new i.Event("rotateend",B)),Ee&&this.fire(new i.Event("pitchend",B)),this.fire(new i.Event("moveend",B))}},D.prototype.flyTo=function(B,K){var ye=this;if(!B.essential&&i.browser.prefersReducedMotion){var ne=i.pick(B,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),B=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},B);var Ee=this.transform,Je=this.getZoom(),Ct=this.getBearing(),ur=this.getPitch(),Sr=this.getPadding(),nr="zoom"in B?i.clamp(+B.zoom,Ee.minZoom,Ee.maxZoom):Je,Qe="bearing"in B?this._normalizeBearing(B.bearing,Ct):Ct,pt="pitch"in B?+B.pitch:ur,Tt="padding"in B?B.padding:Ee.padding,Xt=Ee.zoomScale(nr-Je),ir=i.Point.convert(B.offset),Kt=Ee.centerPoint.add(ir),ar=Ee.pointLocation(Kt),Jt=i.LngLat.convert(B.center||ar);this._normalizeCenter(Jt);var Ft=Ee.project(ar),Zt=Ee.project(Jt).sub(Ft),Pt=B.curve,Ar=Math.max(Ee.width,Ee.height),Br=Ar/Xt,ci=Zt.mag();if("minZoom"in B){var Cn=i.clamp(Math.min(B.minZoom,Je,nr),Ee.minZoom,Ee.maxZoom),Yi=Ar/Ee.zoomScale(Cn-Je);Pt=Math.sqrt(Yi/ci*2)}var yn=Pt*Pt;function Xa(vu){var zu=(Br*Br-Ar*Ar+(vu?-1:1)*yn*yn*ci*ci)/(2*(vu?Br:Ar)*yn*ci);return Math.log(Math.sqrt(zu*zu+1)-zu)}function ca(vu){return(Math.exp(vu)-Math.exp(-vu))/2}function Tn(vu){return(Math.exp(vu)+Math.exp(-vu))/2}function Pn(vu){return ca(vu)/Tn(vu)}var Nn=Xa(0),xa=function(vu){return Tn(Nn)/Tn(Nn+Pt*vu)},Zo=function(vu){return Ar*((Tn(Nn)*Pn(Nn+Pt*vu)-ca(Nn))/yn)/ci},iu=(Xa(1)-Nn)/Pt;if(Math.abs(ci)<1e-6||!isFinite(iu)){if(Math.abs(Ar-Br)<1e-6)return this.easeTo(B,K);var yu=BrB.maxDuration&&(B.duration=0),this._zooming=!0,this._rotating=Ct!==Qe,this._pitching=pt!==ur,this._padding=!Ee.isPaddingEqual(Tt),this._prepareEase(K,!1),this._ease(function(vu){var zu=vu*iu,Ju=1/xa(zu);Ee.zoom=vu===1?nr:Je+Ee.scaleZoom(Ju),ye._rotating&&(Ee.bearing=i.number(Ct,Qe,vu)),ye._pitching&&(Ee.pitch=i.number(ur,pt,vu)),ye._padding&&(Ee.interpolatePadding(Sr,Tt,vu),Kt=Ee.centerPoint.add(ir));var Vf=vu===1?Jt:Ee.unproject(Ft.add(Zt.mult(Zo(zu))).mult(Ju));Ee.setLocationAtPoint(Ee.renderWorldCopies?Vf.wrap():Vf,Kt),ye._fireMoveEvents(K)},function(){return ye._afterEase(K)},B),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(B,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ye=this._onEaseEnd;delete this._onEaseEnd,ye.call(this,K)}if(!B){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(B,K,ye){ye.animate===!1||ye.duration===0?(B(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=ye,this._onEaseFrame=B,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var B=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(B)),B<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(B,K){B=i.wrap(B,-180,180);var ye=Math.abs(B-K);return Math.abs(B-360-K)180?-360:ye<-180?360:0}},D}(i.Evented),ua=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ua.prototype.getDefaultPosition=function(){return"bottom-right"},ua.prototype.onAdd=function(D){var J=this.options&&this.options.compact;return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ua.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ua.prototype._setElementTitle=function(D,J){var B=this._map._getUIString("AttributionControl."+J);D.title=B,D.setAttribute("aria-label",B)},ua.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ua.prototype._updateEditLink=function(){var D=this._editLink;D||(D=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(D){var B=J.reduce(function(K,ye,ne){return ye.value&&(K+=ye.key+"="+ye.value+(ne=0)return!1;return!0});var Ee=D.join(" | ");Ee!==this._attribHTML&&(this._attribHTML=Ee,D.length?(this._innerContainer.innerHTML=Ee,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ua.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hn=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};Hn.prototype.onAdd=function(D){this._map=D,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hn.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hn.prototype.getDefaultPosition=function(){return"bottom-left"},Hn.prototype._updateLogo=function(D){(!D||D.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Hn.prototype._logoRequired=function(){if(this._map.style){var D=this._map.style.sourceCaches;for(var J in D){var B=D[J].getSource();if(B.mapbox_logo)return!0}return!1}},Hn.prototype._updateCompact=function(){var D=this._container.children;if(D.length){var J=D[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var Ni=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ni.prototype.add=function(D){var J=++this._id,B=this._queue;return B.push({callback:D,id:J,cancelled:!1}),J},Ni.prototype.remove=function(D){for(var J=this._currentlyRunning,B=J?this._queue.concat(J):this._queue,K=0,ye=B;KB.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(B.minPitch!=null&&B.maxPitch!=null&&B.minPitch>B.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(B.minPitch!=null&&B.minPitchhs)throw new Error("maxPitch must be less than or equal to "+hs);var ye=new nu(B.minZoom,B.maxZoom,B.minPitch,B.maxPitch,B.renderWorldCopies);if(Y.call(this,ye,B),this._interactive=B.interactive,this._maxTileCacheSize=B.maxTileCacheSize,this._failIfMajorPerformanceCaveat=B.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=B.preserveDrawingBuffer,this._antialias=B.antialias,this._trackResize=B.trackResize,this._bearingSnap=B.bearingSnap,this._refreshExpiredTiles=B.refreshExpiredTiles,this._fadeDuration=B.fadeDuration,this._crossSourceCollisions=B.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=B.collectResourceTiming,this._renderTaskQueue=new Ni,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Wr,B.locale),this._clickTolerance=B.clickTolerance,this._requestManager=new i.RequestManager(B.transformRequest,B.accessToken),typeof B.container=="string"){if(this._container=i.window.document.getElementById(B.container),!this._container)throw new Error("Container '"+B.container+"' not found.")}else if(B.container instanceof dn)this._container=B.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(B.maxBounds&&this.setMaxBounds(B.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new wn(this,B);var ne=typeof B.hash=="string"&&B.hash||void 0;this._hash=B.hash&&new $u(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:B.center,zoom:B.zoom,bearing:B.bearing,pitch:B.pitch}),B.bounds&&(this.resize(),this.fitBounds(B.bounds,i.extend({},B.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=B.localIdeographFontFamily,B.style&&this.setStyle(B.style,{localIdeographFontFamily:B.localIdeographFontFamily}),B.attributionControl&&this.addControl(new ua({customAttribution:B.customAttribution})),this.addControl(new Hn,B.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(Ee){K._update(Ee.dataType==="style"),K.fire(new i.Event(Ee.dataType+"data",Ee))}),this.on("dataloading",function(Ee){K.fire(new i.Event(Ee.dataType+"dataloading",Ee))})}Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return D.prototype._getMapId=function(){return this._mapId},D.prototype.addControl=function(K,ye){if(ye===void 0&&(K.getDefaultPosition?ye=K.getDefaultPosition():ye="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var Ee=this._controlPositions[ye];return ye.indexOf("bottom")!==-1?Ee.insertBefore(ne,Ee.firstChild):Ee.appendChild(ne),this},D.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ye=this._controls.indexOf(K);return ye>-1&&this._controls.splice(ye,1),K.onRemove(this),this},D.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},D.prototype.resize=function(K){var ye=this._containerDimensions(),ne=ye[0],Ee=ye[1];this._resizeCanvas(ne,Ee),this.transform.resize(ne,Ee),this.painter.resize(ne,Ee);var Je=!this._moving;return Je&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Je&&this.fire(new i.Event("moveend",K)),this},D.prototype.getBounds=function(){return this.transform.getBounds()},D.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},D.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},D.prototype.setMinZoom=function(K){if(K=K==null?Zi:K,K>=Zi&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},D.prototype.getMaxZoom=function(){return this.transform.maxZoom},D.prototype.setMinPitch=function(K){if(K=K==null?Kn:K,K=Kn&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()hs)throw new Error("maxPitch must be less than or equal to "+hs);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},D.prototype.getMaxPitch=function(){return this.transform.maxPitch},D.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},D.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},D.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},D.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},D.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},D.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},D.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},D.prototype._createDelegatedListener=function(K,ye,ne){var Ee=this,Je;if(K==="mouseenter"||K==="mouseover"){var Ct=!1,ur=function(Xt){var ir=Ee.getLayer(ye)?Ee.queryRenderedFeatures(Xt.point,{layers:[ye]}):[];ir.length?Ct||(Ct=!0,ne.call(Ee,new le(K,Ee,Xt.originalEvent,{features:ir}))):Ct=!1},Sr=function(){Ct=!1};return{layer:ye,listener:ne,delegates:{mousemove:ur,mouseout:Sr}}}else if(K==="mouseleave"||K==="mouseout"){var nr=!1,Qe=function(Xt){var ir=Ee.getLayer(ye)?Ee.queryRenderedFeatures(Xt.point,{layers:[ye]}):[];ir.length?nr=!0:nr&&(nr=!1,ne.call(Ee,new le(K,Ee,Xt.originalEvent)))},pt=function(Xt){nr&&(nr=!1,ne.call(Ee,new le(K,Ee,Xt.originalEvent)))};return{layer:ye,listener:ne,delegates:{mousemove:Qe,mouseout:pt}}}else{var Tt=function(Xt){var ir=Ee.getLayer(ye)?Ee.queryRenderedFeatures(Xt.point,{layers:[ye]}):[];ir.length&&(Xt.features=ir,ne.call(Ee,Xt),delete Xt.features)};return{layer:ye,listener:ne,delegates:(Je={},Je[K]=Tt,Je)}}},D.prototype.on=function(K,ye,ne){if(ne===void 0)return Y.prototype.on.call(this,K,ye);var Ee=this._createDelegatedListener(K,ye,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(Ee);for(var Je in Ee.delegates)this.on(Je,Ee.delegates[Je]);return this},D.prototype.once=function(K,ye,ne){if(ne===void 0)return Y.prototype.once.call(this,K,ye);var Ee=this._createDelegatedListener(K,ye,ne);for(var Je in Ee.delegates)this.once(Je,Ee.delegates[Je]);return this},D.prototype.off=function(K,ye,ne){var Ee=this;if(ne===void 0)return Y.prototype.off.call(this,K,ye);var Je=function(Ct){for(var ur=Ct[K],Sr=0;Sr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var _s={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ul(Y,D,J){var B=Y.classList;for(var K in _s)B.remove("mapboxgl-"+J+"-anchor-"+K);B.add("mapboxgl-"+J+"-anchor-"+D)}var Qn=function(Y){function D(J,B){if(Y.call(this),(J instanceof i.window.HTMLElement||B)&&(J=i.extend({element:J},B)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),ye=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",ye+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+ye);var Ee=o.createNS("http://www.w3.org/2000/svg","g");Ee.setAttributeNS(null,"stroke","none"),Ee.setAttributeNS(null,"stroke-width","1"),Ee.setAttributeNS(null,"fill","none"),Ee.setAttributeNS(null,"fill-rule","evenodd");var Je=o.createNS("http://www.w3.org/2000/svg","g");Je.setAttributeNS(null,"fill-rule","nonzero");var Ct=o.createNS("http://www.w3.org/2000/svg","g");Ct.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ct.setAttributeNS(null,"fill","#000000");for(var ur=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],Sr=0,nr=ur;Sr=K}this._isDragging&&(this._pos=B.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},D.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},D.prototype._addDragHandler=function(B){this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},D.prototype.setDraggable=function(B){return this._draggable=!!B,this._map&&(B?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},D.prototype.isDraggable=function(){return this._draggable},D.prototype.setRotation=function(B){return this._rotation=B||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(B){return this._rotationAlignment=B||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(B){return this._pitchAlignment=B&&B!=="auto"?B:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D}(i.Evented),Mo={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},al;function pl(Y){al!==void 0?Y(al):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){al=D.state!=="denied",Y(al)}):(al=!!i.window.navigator.geolocation,Y(al))}var Rl=0,Ou=!1,vf=function(Y){function D(J){Y.call(this),this.options=i.extend({},Mo,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.onAdd=function(B){return this._map=B,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),pl(this._setupUI),this._container},D.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Rl=0,Ou=!1},D.prototype._isOutOfMapMaxBounds=function(B){var K=this._map.getMaxBounds(),ye=B.coords;return K&&(ye.longitudeK.getEast()||ye.latitudeK.getNorth())},D.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},D.prototype._onSuccess=function(B){if(this._map){if(this._isOutOfMapMaxBounds(B)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",B)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=B,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(B),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(B),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",B)),this._finish()}},D.prototype._updateCamera=function(B){var K=new i.LngLat(B.coords.longitude,B.coords.latitude),ye=B.coords.accuracy,ne=this._map.getBearing(),Ee=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(ye),Ee,{geolocateSource:!0})},D.prototype._updateMarker=function(B){if(B){var K=new i.LngLat(B.coords.longitude,B.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=B.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var B=this._map._container.clientHeight/2,K=this._map.unproject([0,B]),ye=this._map.unproject([1,B]),ne=K.distanceTo(ye),Ee=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=Ee+"px",this._circleElement.style.height=Ee+"px"},D.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},D.prototype._onError=function(B){if(this._map){if(this.options.trackUserLocation)if(B.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(B.code===3&&Ou)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",B)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(B){var K=this;if(this._container.addEventListener("contextmenu",function(Ee){return Ee.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",B===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ye=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ye,this._geolocateButton.setAttribute("aria-label",ye)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Qn(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Qn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(Ee){var Je=Ee.originalEvent&&Ee.originalEvent.type==="resize";!Ee.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Je&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},D.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Rl--,Ou=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Rl++;var B;Rl>1?(B={maximumAge:6e5,timeout:0},Ou=!0):(B=this.options.positionOptions,Ou=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,B)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},D.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},D}(i.Evented),Ql={maxWidth:100,unit:"metric"},Ef=function(D){this.options=i.extend({},Ql,D),i.bindAll(["_onMove","setUnit"],this)};Ef.prototype.getDefaultPosition=function(){return"bottom-left"},Ef.prototype._onMove=function(){Cu(this._map,this._container,this.options)},Ef.prototype.onAdd=function(D){return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",D.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ef.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ef.prototype.setUnit=function(D){this.options.unit=D,Cu(this._map,this._container,this.options)};function Cu(Y,D,J){var B=J&&J.maxWidth||100,K=Y._container.clientHeight/2,ye=Y.unproject([0,K]),ne=Y.unproject([B,K]),Ee=ye.distanceTo(ne);if(J&&J.unit==="imperial"){var Je=3.2808*Ee;if(Je>5280){var Ct=Je/5280;gf(D,B,Ct,Y._getUIString("ScaleControl.Miles"))}else gf(D,B,Je,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var ur=Ee/1852;gf(D,B,ur,Y._getUIString("ScaleControl.NauticalMiles"))}else Ee>=1e3?gf(D,B,Ee/1e3,Y._getUIString("ScaleControl.Kilometers")):gf(D,B,Ee,Y._getUIString("ScaleControl.Meters"))}function gf(Y,D,J,B){var K=Cf(J),ye=K/J;Y.style.width=D*ye+"px",Y.innerHTML=K+" "+B}function xf(Y){var D=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*D)/D}function Cf(Y){var D=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/D;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:xf(J),D*J}var Gu=function(D){this._fullscreen=!1,D&&D.container&&(D.container instanceof i.window.HTMLElement?this._container=D.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};Gu.prototype.onAdd=function(D){return this._map=D,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Gu.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Gu.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},Gu.prototype._setupUI=function(){var D=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",D).setAttribute("aria-hidden",!0),D.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Gu.prototype._updateTitle=function(){var D=this._getTitle();this._fullscreenButton.setAttribute("aria-label",D),this._fullscreenButton.title=D},Gu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Gu.prototype._isFullscreen=function(){return this._fullscreen},Gu.prototype._changeIcon=function(){var D=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;D===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Gu.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var cf={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},mf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Fl=function(Y){function D(J){Y.call(this),this.options=i.extend(Object.create(cf),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.addTo=function(B){return this._map&&this.remove(),this._map=B,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},D.prototype.isOpen=function(){return!!this._map},D.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},D.prototype.getLngLat=function(){return this._lngLat},D.prototype.setLngLat=function(B){return this._lngLat=i.LngLat.convert(B),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},D.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},D.prototype.getElement=function(){return this._container},D.prototype.setText=function(B){return this.setDOMContent(i.window.document.createTextNode(B))},D.prototype.setHTML=function(B){var K=i.window.document.createDocumentFragment(),ye=i.window.document.createElement("body"),ne;for(ye.innerHTML=B;ne=ye.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},D.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},D.prototype.setMaxWidth=function(B){return this.options.maxWidth=B,this._update(),this},D.prototype.setDOMContent=function(B){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(B),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(B){this._container&&this._container.classList.add(B)},D.prototype.removeClassName=function(B){this._container&&this._container.classList.remove(B)},D.prototype.setOffset=function(B){return this.options.offset=B,this._update(),this},D.prototype.toggleClassName=function(B){if(this._container)return this._container.classList.toggle(B)},D.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},D.prototype._onMouseUp=function(B){this._update(B.point)},D.prototype._onMouseMove=function(B){this._update(B.point)},D.prototype._onDrag=function(B){this._update(B.point)},D.prototype._update=function(B){var K=this,ye=this._lngLat||this._trackPointer;if(!(!this._map||!ye||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Qe){return K._container.classList.add(Qe)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Va(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!B))){var ne=this._pos=this._trackPointer&&B?B:this._map.project(this._lngLat),Ee=this.options.anchor,Je=bf(this.options.offset);if(!Ee){var Ct=this._container.offsetWidth,ur=this._container.offsetHeight,Sr;ne.y+Je.bottom.ythis._map.transform.height-ur?Sr=["bottom"]:Sr=[],ne.xthis._map.transform.width-Ct/2&&Sr.push("right"),Sr.length===0?Ee="bottom":Ee=Sr.join("-")}var nr=ne.add(Je[Ee]).round();o.setTransform(this._container,_s[Ee]+" translate("+nr.x+"px,"+nr.y+"px)"),ul(this._container,Ee,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var B=this._container.querySelector(mf);B&&B.focus()}},D.prototype._onClose=function(){this.remove()},D}(i.Evented);function bf(Y){if(Y)if(typeof Y=="number"){var D=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(D,D),"top-right":new i.Point(-D,D),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(D,-D),"bottom-right":new i.Point(-D,-D),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return bf(new i.Point(0,0))}var cu={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ui,NavigationControl:Bn,GeolocateControl:vf,AttributionControl:ua,ScaleControl:Ef,FullscreenControl:Gu,Popup:Fl,Marker:Qn,Style:jn,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Yr,clearPrewarmedResources:oi,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return Ei.workerCount},set workerCount(Y){Ei.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(D){i.clearTileCache(D)},workerUrl:""};return cu}),r})});var oHe=we((L2r,aHe)=>{"use strict";var pw=ei(),vXt=Wf().sanitizeHTML,mXt=wJ(),rHe=y1();function iHe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=rHe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var am=iHe.prototype;am.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=p8(t)};am.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};am.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};am.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};am.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};am.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};am.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!p8(e)){var r=yXt(e);t.addSource(this.idSource,r)}};am.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function nHe(e){var t={},r={};switch(e.type){case"circle":pw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":pw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":pw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=mXt(n.textposition,n.iconsize);pw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),pw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":pw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function yXt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=vXt(e.sourceattribution)),n}aHe.exports=function(t,r,n){var i=new iHe(t,r);return i.update(n),i}});var vHe=we((P2r,pHe)=>{"use strict";var CJ=kJ(),LJ=ei(),fHe=dx(),sHe=$l(),gXt=wu(),_Xt=xp(),v8=Vc(),cHe=Cm(),xXt=cHe.drawMode,bXt=cHe.selectMode,wXt=oh().prepSelect,AXt=oh().clearOutline,TXt=oh().clearSelectionsCache,SXt=oh().selectOnClick,Cx=y1(),MXt=oHe();function hHe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Yh=hHe.prototype;Yh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};Yh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=dHe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new CJ.Map({container:i.div,style:o.style,center:PJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new CJ.AttributionControl({compact:!0}));l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(c){l.once("load",c)})),f=f.concat(fHe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Yh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=dHe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(fHe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Yh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&SXt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&v8.click(n,u.originalEvent)}}};Yh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=LJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),bXt(a)||xXt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){wXt(u,l,f,t.dragOptions,a)},_Xt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Yh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Yh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var zJ=ei(),EXt=O_(),kXt=$d(),mHe=Yk();yHe.exports=function(t,r,n){EXt(t,r,n,{type:"mapbox",attributes:mHe,handleDefaults:CXt,partition:"y",accessToken:r._mapboxAccessToken})};function CXt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,kXt(e,t,{name:"layers",handleItemDefaults:LXt}),t._input=e}function LXt(e,t){function r(u,l){return zJ.coerce(e,t,mHe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",zJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),zJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var m8=we(Nv=>{"use strict";var _He=kJ(),ny=ei(),IJ=ny.strTranslate,PXt=ny.strScale,zXt=Dd().getSubplotCalcData,IXt=jv(),DXt=Jl(),xHe=Mu(),RXt=Wf(),FXt=vHe(),Lx="mapbox",sg=Nv.constants=y1();Nv.name=Lx;Nv.attr="subplot";Nv.idRoot=Lx;Nv.idRegex=Nv.attrRegex=ny.counterRegex(Lx);var OXt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Nv.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Nv.layoutAttributes=Yk();Nv.supplyLayoutDefaults=gHe();var bHe=!0;Nv.plot=function(t){bHe&&(bHe=!1,ny.warn(OXt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[Lx];if(_He.version!==sg.requiredVersion)throw new Error(sg.wrongVersionErrorMsg);var a=BXt(t,i);_He.accessToken=a;for(var o=0;ov/2){var C=d.split("|").join("
");y.text(C).attr("data-unformatted",C).call(RXt.convertToTspans,e),b=xHe.bBox(y.node())}y.attr("transform",IJ(-3,-b.height+8)),p.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var M=1;b.width+6>v&&(M=v/(b.width+6));var A=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];p.attr("transform",IJ(A[0],A[1])+PXt(M))}};function BXt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,u=0;u1&&ny.warn(sg.multipleTokensErrorMsg),i[0]):(a.length&&ny.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function wHe(e){return typeof e=="string"&&(sg.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Nv.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Lx],n=0;n{"use strict";var D2r=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");AHe.exports={attributes:l8(),supplyDefaults:RGe(),colorbar:tp(),formatLabels:bJ(),calc:bF(),plot:YGe(),hoverPoints:d8().hoverPoints,eventData:QGe(),selectPoints:tHe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:m8(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var MHe=we((F2r,SHe)=>{"use strict";SHe.exports=THe()});var DJ=we((O2r,EHe)=>{"use strict";var g1=oS(),qXt=nc(),{hovertemplateAttrs:NXt,templatefallbackAttrs:UXt}=Ff(),VXt=Gf(),Px=Su().extendFlat;EHe.exports=Px({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Px({},g1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:g1.text,hovertext:g1.hovertext,marker:{line:{color:Px({},g1.marker.line.color,{editType:"plot"}),width:Px({},g1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Px({},g1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Px({},g1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Px({},g1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:g1.hoverinfo,hovertemplate:NXt({},{keys:["properties"]}),hovertemplatefallback:UXt(),showlegend:Px({},VXt.showlegend,{dflt:!1})},qXt("",{cLetter:"z",editTypeOverride:"calc"}))});var CHe=we((B2r,kHe)=>{"use strict";var Qk=ei(),GXt=nd(),HXt=DJ();kHe.exports=function(t,r,n,i){function a(f,c){return Qk.coerce(t,r,HXt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!Qk.isArrayOrTypedArray(o)||!o.length||!Qk.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||Qk.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),GXt(t,r,i,a,{prefix:"",cLetter:"z"}),Qk.coerceSelectionMarkerOpacity(r,a)}});var RJ=we((q2r,zHe)=>{"use strict";var WXt=ku(),_1=ei(),jXt=_c(),XXt=Mu(),ZXt=cx().makeBlank,LHe=dx();function YXt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:ZXt()};if(!r)return a;var o=LHe.extractTraceFeature(e);if(!o)return a;var s=jXt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;_1.isArrayOrTypedArray(u.opacity)&&(f=function(C){var M=C.mo;return WXt(M)?+_1.constrain(M,0,1):0});var c;_1.isArrayOrTypedArray(l.color)&&(c=function(C){return C.mlc});var h;_1.isArrayOrTypedArray(l.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var DHe=RJ().convert,KXt=RJ().convertOnSelect,IHe=y1().traceLayerPrefix;function RHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",IHe+t+"-fill"],["line",IHe+t+"-line"]],this.below=null}var PS=RHe.prototype;PS.update=function(e){this._update(DHe(e)),e[0].trace._glTrace=this};PS.updateOnSelect=function(e){this._update(KXt(e))};PS._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};PS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};FHe.exports=function(t,r){var n=r[0].trace,i=new RHe(t,n.uid),a=i.sourceId,o=DHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var qHe=we((V2r,BHe)=>{"use strict";var U2r=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");BHe.exports={attributes:DJ(),supplyDefaults:CHe(),colorbar:D_(),calc:VF(),plot:OHe(),hoverPoints:HF(),eventData:WF(),selectPoints:jF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";NHe.exports=qHe()});var OJ=we((H2r,GHe)=>{"use strict";var JXt=nc(),{hovertemplateAttrs:$Xt,templatefallbackAttrs:QXt}=Ff(),VHe=Gf(),y8=l8(),FJ=Su().extendFlat;GHe.exports=FJ({lon:y8.lon,lat:y8.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:y8.text,hovertext:y8.hovertext,hoverinfo:FJ({},VHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:$Xt(),hovertemplatefallback:QXt(),showlegend:FJ({},VHe.showlegend,{dflt:!1})},JXt("",{cLetter:"z",editTypeOverride:"calc"}))});var WHe=we((W2r,HHe)=>{"use strict";var eZt=ei(),tZt=nd(),rZt=OJ();HHe.exports=function(t,r,n,i){function a(l,f){return eZt.coerce(t,r,rZt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),tZt(t,r,i,a,{prefix:"",cLetter:"z"})}});var ZHe=we((j2r,XHe)=>{"use strict";var BJ=ku(),iZt=ei().isArrayOrTypedArray,qJ=rf().BADNUM,nZt=gp(),jHe=ei()._;XHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=iZt(a)&&a.length,s=0;s{"use strict";var aZt=ku(),NJ=ei(),YHe=jl(),KHe=_c(),JHe=rf().BADNUM,oZt=cx().makeBlank;$He.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:oZt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=NJ.isArrayOrTypedArray(u)&&u.length,c=NJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=KHe.extractOpts(r),v=b.reversescale?KHe.flipScale(b.colorscale):b.colorscale,C=v[0][1],M=YHe.opacity(C)<1?C:YHe.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,M];for(s=1;s{"use strict";var eWe=QHe(),sZt=y1().traceLayerPrefix;function tWe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",sZt+t+"-heatmap"]],this.below=null}var g8=tWe.prototype;g8.update=function(e){var t=this.subplot,r=this.layerList,n=eWe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};g8.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};rWe.exports=function(t,r){var n=r[0].trace,i=new tWe(t,n.uid),a=i.sourceId,o=eWe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var aWe=we((Y2r,nWe)=>{"use strict";var lZt=wu(),uZt=d8().hoverPoints,fZt=d8().getExtraText;nWe.exports=function(t,r,n){var i=uZt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=lZt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=fZt(s,u,o[0].t.labels),[a]}}});var sWe=we((K2r,oWe)=>{"use strict";oWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var uWe=we(($2r,lWe)=>{"use strict";var J2r=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");lWe.exports={attributes:OJ(),supplyDefaults:WHe(),colorbar:D_(),formatLabels:bJ(),calc:ZHe(),plot:iWe(),hoverPoints:aWe(),eventData:sWe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";fWe.exports=uWe()});var dWe=we((ewr,hWe)=>{hWe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} +`),Ft=ke.createShader(ke.FRAGMENT_SHADER);if(ke.isContextLost()){this.failedToCreate=!0;return}ke.shaderSource(Ft,ar),ke.compileShader(Ft),ke.attachShader(this.program,Ft);var Zt=ke.createShader(ke.VERTEX_SHADER);if(ke.isContextLost()){this.failedToCreate=!0;return}ke.shaderSource(Zt,Jt),ke.compileShader(Zt),ke.attachShader(this.program,Zt),this.attributes={};var Pt={};this.numAttributes=ur.length;for(var Ar=0;Ar>16,ke>>16],u_pixel_coord_lower:[ne&65535,ke&65535]}}function cl(Y,R,J,B){var K=J.imageManager.getPattern(Y.from.toString()),ye=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),ke=ne.width,Je=ne.height,Ct=Math.pow(2,B.tileID.overscaledZ),ur=B.tileSize*Math.pow(2,J.transform.tileZoom)/Ct,Sr=ur*(B.tileID.canonical.x+B.tileID.wrap*Ct),nr=ur*B.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:ye.tl,u_pattern_br_b:ye.br,u_texsize:[ke,Je],u_mix:R.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:ye.displaySize,u_scale_a:R.fromScale,u_scale_b:R.toScale,u_tile_units_to_pixels:1/uo(B,1,J.transform.tileZoom),u_pixel_coord_upper:[Sr>>16,nr>>16],u_pixel_coord_lower:[Sr&65535,nr&65535]}}var el=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Hs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,R.u_height_factor),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Ro=function(Y,R,J,B){var K=R.style.light,ye=K.properties.get("position"),ne=[ye.x,ye.y,ye.z],ke=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(ke,-R.transform.angle),i.transformMat3(ne,ne,ke);var Je=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Je.r,Je.g,Je.b],u_vertical_gradient:+J,u_opacity:B}},tl=function(Y,R,J,B,K,ye,ne){return i.extend(Ro(Y,R,J,B),fs(ye,R,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Fs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Fa=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world)}},Ms=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},jo=function(Y){return{u_matrix:Y}},Rs=function(Y,R,J,B){return i.extend(jo(Y),fs(J,R,B))},Is=function(Y,R){return{u_matrix:Y,u_world:R}},Os=function(Y,R,J,B,K){return i.extend(Rs(Y,R,J,B),{u_world:K})},St=function(Y,R){return{u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,R.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Ut=function(Y,R,J,B){var K=Y.transform,ye,ne;if(B.paint.get("circle-pitch-alignment")==="map"){var ke=uo(J,1,K.zoom);ye=!0,ne=[ke,ke]}else ye=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(B.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(R.posMatrix,J,B.paint.get("circle-translate"),B.paint.get("circle-translate-anchor")),u_pitch_with_map:+ye,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},xr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,R.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,R.u_overscale_factor)}},dr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,R.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,R.u_viewport_size)}},Dr=function(Y,R,J){var B=uo(J,1,R.zoom),K=Math.pow(2,R.zoom-J.tileID.overscaledZ),ye=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:R.cameraToCenterDistance,u_pixels_to_tile_units:B,u_extrude_scale:[R.pixelsToGLUnits[0]/(B*K),R.pixelsToGLUnits[1]/(B*K)],u_overscale_factor:ye}},yi=function(Y,R,J){return{u_matrix:Y,u_inv_matrix:R,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Ti=function(Y,R){return{u_color:new i.UniformColor(Y,R.u_color),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_overlay:new i.Uniform1i(Y,R.u_overlay),u_overlay_scale:new i.Uniform1f(Y,R.u_overlay_scale)}},ki=function(Y,R,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:R,u_overlay:0,u_overlay_scale:J}},Ki=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Fn=function(Y){return{u_matrix:Y}},Li=function(Y,R){return{u_extrude_scale:new i.Uniform1f(Y,R.u_extrude_scale),u_intensity:new i.Uniform1f(Y,R.u_intensity),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hi=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_color_ramp:new i.Uniform1i(Y,R.u_color_ramp),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Ci=function(Y,R,J,B){return{u_matrix:Y,u_extrude_scale:uo(R,1,J),u_intensity:B}},Si=function(Y,R,J,B){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var ye=Y.context.gl;return{u_matrix:K,u_world:[ye.drawingBufferWidth,ye.drawingBufferHeight],u_image:J,u_color_ramp:B,u_opacity:R.paint.get("heatmap-opacity")}},Gn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_latrange:new i.Uniform2f(Y,R.u_latrange),u_light:new i.Uniform2f(Y,R.u_light),u_shadow:new i.UniformColor(Y,R.u_shadow),u_highlight:new i.UniformColor(Y,R.u_highlight),u_accent:new i.UniformColor(Y,R.u_accent)}},ta=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_dimension:new i.Uniform2f(Y,R.u_dimension),u_zoom:new i.Uniform1f(Y,R.u_zoom),u_unpack:new i.Uniform4f(Y,R.u_unpack)}},ya=function(Y,R,J){var B=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),ye=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var ke=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(R.tileID.toUnwrapped(),ke),u_image:0,u_latrange:pa(Y,R.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:B,u_highlight:K,u_accent:ye}},ia=function(Y,R){var J=R.stride,B=i.create();return i.ortho(B,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(B,B,[0,-i.EXTENT,0]),{u_matrix:B,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:R.getUnpackVector()}};function pa(Y,R){var J=Math.pow(2,R.canonical.z),B=R.canonical.y;return[new i.MercatorCoordinate(0,B/J).toLngLat().lat,new i.MercatorCoordinate(0,(B+1)/J).toLngLat().lat]}var va=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels)}},zn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_image:new i.Uniform1i(Y,R.u_image),u_image_height:new i.Uniform1f(Y,R.u_image_height)}},is=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,R.u_image),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Cs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,R.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,R.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,R.u_sdfgamma),u_image:new i.Uniform1i(Y,R.u_image),u_tex_y_a:new i.Uniform1f(Y,R.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,R.u_tex_y_b),u_mix:new i.Uniform1f(Y,R.u_mix)}},Ks=function(Y,R,J){var B=Y.transform;return{u_matrix:eu(Y,R,J),u_ratio:1/uo(R,1,B.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/B.pixelsToGLUnits[0],1/B.pixelsToGLUnits[1]]}},dl=function(Y,R,J,B){return i.extend(Ks(Y,R,J),{u_image:0,u_image_height:B})},xl=function(Y,R,J,B){var K=Y.transform,ye=bl(R,K);return{u_matrix:eu(Y,R,J),u_texsize:R.imageAtlasTexture.size,u_ratio:1/uo(R,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[ye,B.fromScale,B.toScale],u_fade:B.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Bl=function(Y,R,J,B,K){var ye=Y.transform,ne=Y.lineAtlas,ke=bl(R,ye),Je=J.layout.get("line-cap")==="round",Ct=ne.getDash(B.from,Je),ur=ne.getDash(B.to,Je),Sr=Ct.width*K.fromScale,nr=ur.width*K.toScale;return i.extend(Ks(Y,R,J),{u_patternscale_a:[ke/Sr,-Ct.height/2],u_patternscale_b:[ke/nr,-ur.height/2],u_sdfgamma:ne.width/(Math.min(Sr,nr)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Ct.y,u_tex_y_b:ur.y,u_mix:K.t})};function bl(Y,R){return 1/uo(Y,1,R.tileZoom)}function eu(Y,R,J){return Y.translatePosMatrix(R.tileID.posMatrix,R,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Zl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_tl_parent:new i.Uniform2f(Y,R.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,R.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,R.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,R.u_fade_t),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image0:new i.Uniform1i(Y,R.u_image0),u_image1:new i.Uniform1i(Y,R.u_image1),u_brightness_low:new i.Uniform1f(Y,R.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,R.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,R.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,R.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,R.u_spin_weights)}},Vl=function(Y,R,J,B,K){return{u_matrix:Y,u_tl_parent:R,u_scale_parent:J,u_buffer_scale:1,u_fade_t:B.mix,u_opacity:B.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:Js(K.paint.get("raster-saturation")),u_contrast_factor:ns(K.paint.get("raster-contrast")),u_spin_weights:ja(K.paint.get("raster-hue-rotate"))}};function ja(Y){Y*=Math.PI/180;var R=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*R-J+1)/3,(Math.sqrt(3)*R-J+1)/3]}function ns(Y){return Y>0?1/(1-Y):1+Y}function Js(Y){return Y>0?1-1/(1.001-Y):-Y}var cs=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture)}},sl=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},ll=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texsize_icon:new i.Uniform2f(Y,R.u_texsize_icon),u_texture:new i.Uniform1i(Y,R.u_texture),u_texture_icon:new i.Uniform1i(Y,R.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},nl=function(Y,R,J,B,K,ye,ne,ke,Je,Ct){var ur=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:R?R.uSizeT:0,u_size:R?R.uSize:0,u_camera_to_center_distance:ur.cameraToCenterDistance,u_pitch:ur.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:ur.width/ur.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:ye,u_label_plane_matrix:ne,u_coord_matrix:ke,u_is_text:+Je,u_pitch_with_map:+B,u_texsize:Ct,u_texture:0}},zl=function(Y,R,J,B,K,ye,ne,ke,Je,Ct,ur){var Sr=K.transform;return i.extend(nl(Y,R,J,B,K,ye,ne,ke,Je,Ct),{u_gamma_scale:B?Math.cos(Sr._pitch)*Sr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+ur})},Ml=function(Y,R,J,B,K,ye,ne,ke,Je,Ct){return i.extend(zl(Y,R,J,B,K,ye,ne,ke,!0,Je,!0),{u_texsize_icon:Ct,u_texture_icon:1})},Rl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_color:new i.UniformColor(Y,R.u_color)}},Al=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image:new i.Uniform1i(Y,R.u_image),u_pattern_tl_a:new i.Uniform2f(Y,R.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,R.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,R.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,R.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_mix:new i.Uniform1f(Y,R.u_mix),u_pattern_size_a:new i.Uniform2f(Y,R.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,R.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,R.u_scale_a),u_scale_b:new i.Uniform1f(Y,R.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,R.u_tile_units_to_pixels)}},Ll=function(Y,R,J){return{u_matrix:Y,u_opacity:R,u_color:J}},ms=function(Y,R,J,B,K,ye){return i.extend(cl(B,ye,J,K),{u_matrix:Y,u_opacity:R})},Bs={fillExtrusion:el,fillExtrusionPattern:Hs,fill:Fs,fillPattern:hl,fillOutline:Fa,fillOutlinePattern:Ms,circle:St,collisionBox:xr,collisionCircle:dr,debug:Ti,clippingMask:Ki,heatmap:Li,heatmapTexture:hi,hillshade:Gn,hillshadePrepare:ta,line:va,lineGradient:zn,linePattern:is,lineSDF:Cs,raster:Zl,symbolIcon:cs,symbolSDF:sl,symbolTextAndIcon:ll,background:Rl,backgroundPattern:Al},Xl;function Gl(Y,R,J,B,K,ye,ne){for(var ke=Y.context,Je=ke.gl,Ct=Y.useProgram("collisionBox"),ur=[],Sr=0,nr=0,Qe=0;Qe0){var Jt=i.create(),Ft=ir;i.mul(Jt,Xt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Jt,Jt,Xt.placementViewportMatrix),ur.push({circleArray:ar,circleOffset:nr,transform:Ft,invTransform:Jt}),Sr+=ar.length/4,nr=Sr}Kt&&Ct.draw(ke,Je.LINES,Ri.disabled,qr.disabled,Y.colorModeForRenderPass(),mr.disabled,Dr(ir,Y.transform,Tt),J.id,Kt.layoutVertexBuffer,Kt.indexBuffer,Kt.segments,null,Y.transform.zoom,null,null,Kt.collisionVertexBuffer)}}if(!(!ne||!ur.length)){var Zt=Y.useProgram("collisionCircle"),Pt=new i.StructArrayLayout2f1f2i16;Pt.resize(Sr*4),Pt._trim();for(var Ar=0,Br=0,ci=ur;Br=0&&(pt[Xt.associatedIconIndex]={shiftedAnchor:yn,angle:Xa})}}if(ur){Qe.clear();for(var Tn=Y.icon.placedSymbolArray,Pn=0;Pn0){var ne=i.browser.now(),ke=(ne-Y.timeAdded)/ye,Je=R?(ne-R.timeAdded)/ye:-1,Ct=J.getSource(),ur=K.coveringZoomLevel({tileSize:Ct.tileSize,roundZoom:Ct.roundZoom}),Sr=!R||Math.abs(R.tileID.overscaledZ-ur)>Math.abs(Y.tileID.overscaledZ-ur),nr=Sr&&Y.refreshedUponExpiration?1:i.clamp(Sr?ke:1-Je,0,1);return Y.refreshedUponExpiration&&ke>=1&&(Y.refreshedUponExpiration=!1),R?{opacity:1,mix:1-nr}:{opacity:nr,mix:0}}else return{opacity:1,mix:0}}function sr(Y,R,J){var B=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var ye=Y.context,ne=ye.gl,ke=Y.transform,Je=ke.tileSize,Ct=J.paint.get("background-pattern");if(!Y.isPatternMissing(Ct)){var ur=!Ct&&B.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===ur){var Sr=qr.disabled,nr=Y.depthModeForSublayer(0,ur==="opaque"?Ri.ReadWrite:Ri.ReadOnly),Qe=Y.colorModeForRenderPass(),pt=Y.useProgram(Ct?"backgroundPattern":"background"),Tt=ke.coveringTiles({tileSize:Je});Ct&&(ye.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Xt=J.getCrossfadeParameters(),ir=0,Kt=Tt;ir "+J.overscaledZ);var ir=Xt+" "+Qe+"kb";ml(Y,ir),ne.draw(B,K.TRIANGLES,ke,Je,_t.alphaBlended,mr.disabled,ki(ye,i.Color.transparent,Tt),ur,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function ml(Y,R){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,B=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(R,5,5),K.strokeText(R,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}function au(Y,R,J){var B=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var ye=K.prerender;ye&&(Y.setCustomLayerDefaults(),B.setColorMode(Y.colorModeForRenderPass()),ye.call(K,B.gl,Y.transform.customLayerMatrix()),B.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),B.setColorMode(Y.colorModeForRenderPass()),B.setStencilMode(qr.disabled);var ne=K.renderingMode==="3d"?new Ri(Y.context.gl.LEQUAL,Ri.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,Ri.ReadOnly);B.setDepthMode(ne),K.render(B.gl,Y.transform.customLayerMatrix()),B.setDirty(),Y.setBaseState(),B.bindFramebuffer.set(null)}}var Sl={symbol:w,circle:yt,heatmap:Rt,line:Ur,fill:he,"fill-extrusion":qe,hillshade:ft,raster:Gt,background:sr,debug:vl,custom:au},Yl=function(R,J){this.context=new Lr(R),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=Nr.maxUnderzooming+Nr.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new As,this.gpuTimers={}};Yl.prototype.resize=function(R,J){if(this.width=R*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var B=0,K=this.style._order;B256&&this.clearStencil(),B.setColorMode(_t.disabled),B.setDepthMode(Ri.disabled);var ye=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,ke=J;ne256&&this.clearStencil();var R=this.nextStencilID++,J=this.context.gl;return new qr({func:J.NOTEQUAL,mask:255},R,255,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilModeForClipping=function(R){var J=this.context.gl;return new qr({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[R.key],0,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilConfigForOverlap=function(R){var J,B=this.context.gl,K=R.sort(function(Ct,ur){return ur.overscaledZ-Ct.overscaledZ}),ye=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-ye+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var ke={},Je=0;Je=0;this.currentLayer--){var Jt=this.style._layers[K[this.currentLayer]],Ft=ye[Jt.source],Zt=Je[Jt.source];this._renderTileClippingMasks(Jt,Zt),this.renderLayer(this,Ft,Jt,Zt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},Yl.prototype.isPatternMissing=function(R){if(!R)return!1;if(!R.from||!R.to)return!0;var J=this.imageManager.getPattern(R.from.toString()),B=this.imageManager.getPattern(R.to.toString());return!J||!B},Yl.prototype.useProgram=function(R,J){this.cache=this.cache||{};var B=""+R+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[B]||(this.cache[B]=new vs(this.context,R,io[R],J,Bs[R],this._showOverdrawInspector)),this.cache[B]},Yl.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Yl.prototype.setBaseState=function(){var R=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(R.FUNC_ADD)},Yl.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var R=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,R.RGBA)}},Yl.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var ql=function(R,J){this.points=R,this.planes=J};ql.fromInvProjectionMatrix=function(R,J,B){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],ye=Math.pow(2,B),ne=K.map(function(Ct){return i.transformMat4([],Ct,R)}).map(function(Ct){return i.scale$1([],Ct,1/Ct[3]/J*ye)}),ke=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Je=ke.map(function(Ct){var ur=i.sub([],ne[Ct[0]],ne[Ct[1]]),Sr=i.sub([],ne[Ct[2]],ne[Ct[1]]),nr=i.normalize([],i.cross([],ur,Sr)),Qe=-i.dot(nr,ne[Ct[1]]);return nr.concat(Qe)});return new ql(ne,Je)};var ou=function(R,J){this.min=R,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};ou.prototype.quadrant=function(R){for(var J=[R%2===0,R<2],B=i.clone$2(this.min),K=i.clone$2(this.max),ye=0;ye=0;if(ne===0)return 0;ne!==J.length&&(B=!1)}if(B)return 2;for(var Je=0;Je<3;Je++){for(var Ct=Number.MAX_VALUE,ur=-Number.MAX_VALUE,Sr=0;Srthis.max[Je]-this.min[Je])return 0}return 1};var Pu=function(R,J,B,K){if(R===void 0&&(R=0),J===void 0&&(J=0),B===void 0&&(B=0),K===void 0&&(K=0),isNaN(R)||R<0||isNaN(J)||J<0||isNaN(B)||B<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=R,this.bottom=J,this.left=B,this.right=K};Pu.prototype.interpolate=function(R,J,B){return J.top!=null&&R.top!=null&&(this.top=i.number(R.top,J.top,B)),J.bottom!=null&&R.bottom!=null&&(this.bottom=i.number(R.bottom,J.bottom,B)),J.left!=null&&R.left!=null&&(this.left=i.number(R.left,J.left,B)),J.right!=null&&R.right!=null&&(this.right=i.number(R.right,J.right,B)),this},Pu.prototype.getCenter=function(R,J){var B=i.clamp((this.left+R-this.right)/2,0,R),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(B,K)},Pu.prototype.equals=function(R){return this.top===R.top&&this.bottom===R.bottom&&this.left===R.left&&this.right===R.right},Pu.prototype.clone=function(){return new Pu(this.top,this.bottom,this.left,this.right)},Pu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var nu=function(R,J,B,K,ye){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ye===void 0?!0:ye,this._minZoom=R||0,this._maxZoom=J||22,this._minPitch=B==null?0:B,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Pu,this._posMatrixCache={},this._alignedPosMatrixCache={}},ru={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};nu.prototype.clone=function(){var R=new nu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return R.tileSize=this.tileSize,R.latRange=this.latRange,R.width=this.width,R.height=this.height,R._center=this._center,R.zoom=this.zoom,R.angle=this.angle,R._fov=this._fov,R._pitch=this._pitch,R._unmodified=this._unmodified,R._edgeInsets=this._edgeInsets.clone(),R._calcMatrices(),R},ru.minZoom.get=function(){return this._minZoom},ru.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},ru.maxZoom.get=function(){return this._maxZoom},ru.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},ru.minPitch.get=function(){return this._minPitch},ru.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},ru.maxPitch.get=function(){return this._maxPitch},ru.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},ru.renderWorldCopies.get=function(){return this._renderWorldCopies},ru.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},ru.worldSize.get=function(){return this.tileSize*this.scale},ru.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},ru.size.get=function(){return new i.Point(this.width,this.height)},ru.bearing.get=function(){return-this.angle/Math.PI*180},ru.bearing.set=function(Y){var R=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==R&&(this._unmodified=!1,this.angle=R,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},ru.pitch.get=function(){return this._pitch/Math.PI*180},ru.pitch.set=function(Y){var R=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==R&&(this._unmodified=!1,this._pitch=R,this._calcMatrices())},ru.fov.get=function(){return this._fov/Math.PI*180},ru.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},ru.zoom.get=function(){return this._zoom},ru.zoom.set=function(Y){var R=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==R&&(this._unmodified=!1,this._zoom=R,this.scale=this.zoomScale(R),this.tileZoom=Math.floor(R),this.zoomFraction=R-this.tileZoom,this._constrain(),this._calcMatrices())},ru.center.get=function(){return this._center},ru.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},ru.padding.get=function(){return this._edgeInsets.toJSON()},ru.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},ru.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},nu.prototype.isPaddingEqual=function(R){return this._edgeInsets.equals(R)},nu.prototype.interpolatePadding=function(R,J,B){this._unmodified=!1,this._edgeInsets.interpolate(R,J,B),this._constrain(),this._calcMatrices()},nu.prototype.coveringZoomLevel=function(R){var J=(R.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/R.tileSize));return Math.max(0,J)},nu.prototype.getVisibleUnwrappedCoordinates=function(R){var J=[new i.UnwrappedTileID(0,R)];if(this._renderWorldCopies)for(var B=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),ye=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),ke=Math.floor(Math.min(B.x,K.x,ye.x,ne.x)),Je=Math.floor(Math.max(B.x,K.x,ye.x,ne.x)),Ct=1,ur=ke-Ct;ur<=Je+Ct;ur++)ur!==0&&J.push(new i.UnwrappedTileID(ur,R));return J},nu.prototype.coveringTiles=function(R){var J=this.coveringZoomLevel(R),B=J;if(R.minzoom!==void 0&&JR.maxzoom&&(J=R.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),ye=Math.pow(2,J),ne=[ye*K.x,ye*K.y,0],ke=ql.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Je=R.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Je=J);var Ct=3,ur=function(Yi){return{aabb:new ou([Yi*ye,0,0],[(Yi+1)*ye,ye,0]),zoom:0,x:0,y:0,wrap:Yi,fullyVisible:!1}},Sr=[],nr=[],Qe=J,pt=R.reparseOverscaled?B:J;if(this._renderWorldCopies)for(var Tt=1;Tt<=3;Tt++)Sr.push(ur(-Tt)),Sr.push(ur(Tt));for(Sr.push(ur(0));Sr.length>0;){var Xt=Sr.pop(),ir=Xt.x,Kt=Xt.y,ar=Xt.fullyVisible;if(!ar){var Jt=Xt.aabb.intersects(ke);if(Jt===0)continue;ar=Jt===2}var Ft=Xt.aabb.distanceX(ne),Zt=Xt.aabb.distanceY(ne),Pt=Math.max(Math.abs(Ft),Math.abs(Zt)),Ar=Ct+(1<Ar&&Xt.zoom>=Je){nr.push({tileID:new i.OverscaledTileID(Xt.zoom===Qe?pt:Xt.zoom,Xt.wrap,Xt.zoom,ir,Kt),distanceSq:i.sqrLen([ne[0]-.5-ir,ne[1]-.5-Kt])});continue}for(var Br=0;Br<4;Br++){var ci=(ir<<1)+Br%2,Cn=(Kt<<1)+(Br>>1);Sr.push({aabb:Xt.aabb.quadrant(Br),zoom:Xt.zoom+1,x:ci,y:Cn,wrap:Xt.wrap,fullyVisible:ar})}}return nr.sort(function(Yi,yn){return Yi.distanceSq-yn.distanceSq}).map(function(Yi){return Yi.tileID})},nu.prototype.resize=function(R,J){this.width=R,this.height=J,this.pixelsToGLUnits=[2/R,-2/J],this._constrain(),this._calcMatrices()},ru.unmodified.get=function(){return this._unmodified},nu.prototype.zoomScale=function(R){return Math.pow(2,R)},nu.prototype.scaleZoom=function(R){return Math.log(R)/Math.LN2},nu.prototype.project=function(R){var J=i.clamp(R.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(R.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},nu.prototype.unproject=function(R){return new i.MercatorCoordinate(R.x/this.worldSize,R.y/this.worldSize).toLngLat()},ru.point.get=function(){return this.project(this.center)},nu.prototype.setLocationAtPoint=function(R,J){var B=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),ye=this.locationCoordinate(R),ne=new i.MercatorCoordinate(ye.x-(B.x-K.x),ye.y-(B.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},nu.prototype.locationPoint=function(R){return this.coordinatePoint(this.locationCoordinate(R))},nu.prototype.pointLocation=function(R){return this.coordinateLocation(this.pointCoordinate(R))},nu.prototype.locationCoordinate=function(R){return i.MercatorCoordinate.fromLngLat(R)},nu.prototype.coordinateLocation=function(R){return R.toLngLat()},nu.prototype.pointCoordinate=function(R){var J=0,B=[R.x,R.y,0,1],K=[R.x,R.y,1,1];i.transformMat4(B,B,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var ye=B[3],ne=K[3],ke=B[0]/ye,Je=K[0]/ne,Ct=B[1]/ye,ur=K[1]/ne,Sr=B[2]/ye,nr=K[2]/ne,Qe=Sr===nr?0:(J-Sr)/(nr-Sr);return new i.MercatorCoordinate(i.number(ke,Je,Qe)/this.worldSize,i.number(Ct,ur,Qe)/this.worldSize)},nu.prototype.coordinatePoint=function(R){var J=[R.x*this.worldSize,R.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},nu.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},nu.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},nu.prototype.setMaxBounds=function(R){R?(this.lngRange=[R.getWest(),R.getEast()],this.latRange=[R.getSouth(),R.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},nu.prototype.calculatePosMatrix=function(R,J){J===void 0&&(J=!1);var B=R.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[B])return K[B];var ye=R.canonical,ne=this.worldSize/this.zoomScale(ye.z),ke=ye.x+Math.pow(2,ye.z)*R.wrap,Je=i.identity(new Float64Array(16));return i.translate(Je,Je,[ke*ne,ye.y*ne,0]),i.scale(Je,Je,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Je,J?this.alignedProjMatrix:this.projMatrix,Je),K[B]=new Float32Array(Je),K[B]},nu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},nu.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var R=-90,J=90,B=-180,K=180,ye,ne,ke,Je,Ct=this.size,ur=this._unmodified;if(this.latRange){var Sr=this.latRange;R=i.mercatorYfromLat(Sr[1])*this.worldSize,J=i.mercatorYfromLat(Sr[0])*this.worldSize,ye=J-RJ&&(Je=J-Xt)}if(this.lngRange){var ir=Qe.x,Kt=Ct.x/2;ir-KtK&&(ke=K-Kt)}(ke!==void 0||Je!==void 0)&&(this.center=this.unproject(new i.Point(ke!==void 0?ke:Qe.x,Je!==void 0?Je:Qe.y))),this._unmodified=ur,this._constraining=!1}},nu.prototype._calcMatrices=function(){if(this.height){var R=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(R)*this.height;var B=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),ye=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-B-K,.01,Math.PI-.01)),ne=this.point,ke=ne.x,Je=ne.y,Ct=Math.cos(Math.PI/2-this._pitch)*ye+this.cameraToCenterDistance,ur=Ct*1.01,Sr=this.height/50,nr=new Float64Array(16);i.perspective(nr,this._fov,this.width/this.height,Sr,ur),nr[8]=-J.x*2/this.width,nr[9]=J.y*2/this.height,i.scale(nr,nr,[1,-1,1]),i.translate(nr,nr,[0,0,-this.cameraToCenterDistance]),i.rotateX(nr,nr,this._pitch),i.rotateZ(nr,nr,this.angle),i.translate(nr,nr,[-ke,-Je,0]),this.mercatorMatrix=i.scale([],nr,[this.worldSize,this.worldSize,this.worldSize]),i.scale(nr,nr,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=nr,this.invProjMatrix=i.invert([],this.projMatrix);var Qe=this.width%2/2,pt=this.height%2/2,Tt=Math.cos(this.angle),Xt=Math.sin(this.angle),ir=ke-Math.round(ke)+Tt*Qe+Xt*pt,Kt=Je-Math.round(Je)+Tt*pt+Xt*Qe,ar=new Float64Array(nr);if(i.translate(ar,ar,[ir>.5?ir-1:ir,Kt>.5?Kt-1:Kt,0]),this.alignedProjMatrix=ar,nr=i.create(),i.scale(nr,nr,[this.width/2,-this.height/2,1]),i.translate(nr,nr,[1,-1,0]),this.labelPlaneMatrix=nr,nr=i.create(),i.scale(nr,nr,[1,-1,1]),i.translate(nr,nr,[-1,-1,0]),i.scale(nr,nr,[2/this.width,2/this.height,1]),this.glCoordMatrix=nr,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),nr=i.invert(new Float64Array(16),this.pixelMatrix),!nr)throw new Error("failed to invert matrix");this.pixelMatrixInverse=nr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},nu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var R=this.pointCoordinate(new i.Point(0,0)),J=[R.x*this.worldSize,R.y*this.worldSize,0,1],B=i.transformMat4(J,J,this.pixelMatrix);return B[3]/this.cameraToCenterDistance},nu.prototype.getCameraPoint=function(){var R=this._pitch,J=Math.tan(R)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},nu.prototype.getCameraQueryGeometry=function(R){var J=this.getCameraPoint();if(R.length===1)return[R[0],J];for(var B=J.x,K=J.y,ye=J.x,ne=J.y,ke=0,Je=R;ke=3&&!R.some(function(B){return isNaN(B)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(R[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+R[2],+R[1]],zoom:+R[0],bearing:J,pitch:+(R[4]||0)}),!0}return!1},$u.prototype._updateHashUnthrottled=function(){var R=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,R)}catch(J){}};var Ku={linearity:.3,easing:i.bezier(0,0,.3,1)},Wu=i.extend({deceleration:2500,maxSpeed:1400},Ku),ju=i.extend({deceleration:20,maxSpeed:1400},Ku),sf=i.extend({deceleration:1e3,maxSpeed:360},Ku),_f=i.extend({deceleration:1e3,maxSpeed:90},Ku),Qu=function(R){this._map=R,this.clear()};Qu.prototype.clear=function(){this._inertiaBuffer=[]},Qu.prototype.record=function(R){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:R})},Qu.prototype._drainInertiaBuffer=function(){for(var R=this._inertiaBuffer,J=i.browser.now(),B=160;R.length>0&&J-R[0].time>B;)R.shift()},Qu.prototype._onMoveEnd=function(R){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},B=0,K=this._inertiaBuffer;B=this._clickTolerance||this._map.fire(new le(R.type,this._map,R))},nt.prototype.dblclick=function(R){return this._firePreventable(new le(R.type,this._map,R))},nt.prototype.mouseover=function(R){this._map.fire(new le(R.type,this._map,R))},nt.prototype.mouseout=function(R){this._map.fire(new le(R.type,this._map,R))},nt.prototype.touchstart=function(R){return this._firePreventable(new Le(R.type,this._map,R))},nt.prototype.touchmove=function(R){this._map.fire(new Le(R.type,this._map,R))},nt.prototype.touchend=function(R){this._map.fire(new Le(R.type,this._map,R))},nt.prototype.touchcancel=function(R){this._map.fire(new Le(R.type,this._map,R))},nt.prototype._firePreventable=function(R){if(this._map.fire(R),R.defaultPrevented)return{}},nt.prototype.isEnabled=function(){return!0},nt.prototype.isActive=function(){return!1},nt.prototype.enable=function(){},nt.prototype.disable=function(){};var ut=function(R){this._map=R};ut.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},ut.prototype.mousemove=function(R){this._map.fire(new le(R.type,this._map,R))},ut.prototype.mousedown=function(){this._delayContextMenu=!0},ut.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new le("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},ut.prototype.contextmenu=function(R){this._delayContextMenu?this._contextMenuEvent=R:this._map.fire(new le(R.type,this._map,R)),this._map.listens("contextmenu")&&R.preventDefault()},ut.prototype.isEnabled=function(){return!0},ut.prototype.isActive=function(){return!1},ut.prototype.enable=function(){},ut.prototype.disable=function(){};var Ht=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._container=R.getContainer(),this._clickTolerance=J.clickTolerance||1};Ht.prototype.isEnabled=function(){return!!this._enabled},Ht.prototype.isActive=function(){return!!this._active},Ht.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Ht.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ht.prototype.mousedown=function(R,J){this.isEnabled()&&R.shiftKey&&R.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},Ht.prototype.mousemoveWindow=function(R,J){if(this._active){var B=J;if(!(this._lastPos.equals(B)||!this._box&&B.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=R.timeStamp),B.length===this.numTouches&&(this.centroid=lr(J),this.touches=wt(B,J)))},$r.prototype.touchmove=function(R,J,B){if(!(this.aborted||!this.centroid)){var K=wt(B,J);for(var ye in this.touches){var ne=this.touches[ye],ke=K[ye];(!ke||ke.dist(ne)>ui)&&(this.aborted=!0)}}},$r.prototype.touchend=function(R,J,B){if((!this.centroid||R.timeStamp-this.startTime>zr)&&(this.aborted=!0),B.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var Oi=function(R){this.singleTap=new $r(R),this.numTaps=R.numTaps,this.reset()};Oi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Oi.prototype.touchstart=function(R,J,B){this.singleTap.touchstart(R,J,B)},Oi.prototype.touchmove=function(R,J,B){this.singleTap.touchmove(R,J,B)},Oi.prototype.touchend=function(R,J,B){var K=this.singleTap.touchend(R,J,B);if(K){var ye=R.timeStamp-this.lastTime0&&(this._active=!0);var K=wt(B,J),ye=new i.Point(0,0),ne=new i.Point(0,0),ke=0;for(var Je in K){var Ct=K[Je],ur=this._touches[Je];ur&&(ye._add(Ct),ne._add(Ct.sub(ur)),ke++,K[Je]=Ct)}if(this._touches=K,!(keMath.abs(Y.x)}var ds=100,Wl=(function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},R.prototype._start=function(B){this._lastPoints=B,tf(B[0].sub(B[1]))&&(this._valid=!1)},R.prototype._move=function(B,K,ye){var ne=B[0].sub(this._lastPoints[0]),ke=B[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,ke,ye.timeStamp),!!this._valid){this._lastPoints=B,this._active=!0;var Je=(ne.y+ke.y)/2,Ct=-.5;return{pitchDelta:Je*Ct}}},R.prototype.gestureBeginsVertically=function(B,K,ye){if(this._valid!==void 0)return this._valid;var ne=2,ke=B.mag()>=ne,Je=K.mag()>=ne;if(!(!ke&&!Je)){if(!ke||!Je)return this._firstMove===void 0&&(this._firstMove=ye),ye-this._firstMove0==K.y>0;return tf(B)&&tf(K)&&Ct}},R})(js),Au={panStep:100,bearingStep:15,pitchStep:10},Tu=function(){var R=Au;this._panStep=R.panStep,this._bearingStep=R.bearingStep,this._pitchStep=R.pitchStep,this._rotationDisabled=!1};Tu.prototype.reset=function(){this._active=!1},Tu.prototype.keydown=function(R){var J=this;if(!(R.altKey||R.ctrlKey||R.metaKey)){var B=0,K=0,ye=0,ne=0,ke=0;switch(R.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:R.shiftKey?K=-1:(R.preventDefault(),ne=-1);break;case 39:R.shiftKey?K=1:(R.preventDefault(),ne=1);break;case 38:R.shiftKey?ye=1:(R.preventDefault(),ke=-1);break;case 40:R.shiftKey?ye=-1:(R.preventDefault(),ke=1);break;default:return}return this._rotationDisabled&&(K=0,ye=0),{cameraAnimation:function(Je){var Ct=Je.getZoom();Je.easeTo({duration:300,easeId:"keyboardHandler",easing:lf,zoom:B?Math.round(Ct)+B*(R.shiftKey?2:1):Ct,bearing:Je.getBearing()+K*J._bearingStep,pitch:Je.getPitch()+ye*J._pitchStep,offset:[-ne*J._panStep,-ke*J._panStep],center:Je.getCenter()},{originalEvent:R})}}}},Tu.prototype.enable=function(){this._enabled=!0},Tu.prototype.disable=function(){this._enabled=!1,this.reset()},Tu.prototype.isEnabled=function(){return this._enabled},Tu.prototype.isActive=function(){return this._active},Tu.prototype.disableRotation=function(){this._rotationDisabled=!0},Tu.prototype.enableRotation=function(){this._rotationDisabled=!1};function lf(Y){return Y*(2-Y)}var hf=4.000244140625,Sf=1/100,pf=1/450,fc=2,Fe=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=Sf,this._wheelZoomRate=pf,i.bindAll(["_onTimeout"],this)};Fe.prototype.setZoomRate=function(R){this._defaultZoomRate=R},Fe.prototype.setWheelZoomRate=function(R){this._wheelZoomRate=R},Fe.prototype.isEnabled=function(){return!!this._enabled},Fe.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Fe.prototype.isZooming=function(){return!!this._zooming},Fe.prototype.enable=function(R){this.isEnabled()||(this._enabled=!0,this._aroundCenter=R&&R.around==="center")},Fe.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Fe.prototype.wheel=function(R){if(this.isEnabled()){var J=R.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?R.deltaY*40:R.deltaY,B=i.browser.now(),K=B-(this._lastWheelEventTime||0);this._lastWheelEventTime=B,J!==0&&J%hf===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,R)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),R.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=R,this._delta-=J,this._active||this._start(R)),R.preventDefault()}},Fe.prototype._onTimeout=function(R){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(R)},Fe.prototype._start=function(R){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,R);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Fe.prototype.renderFrame=function(){var R=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var B=this._type==="wheel"&&Math.abs(this._delta)>hf?this._wheelZoomRate:this._defaultZoomRate,K=fc/(1+Math.exp(-Math.abs(this._delta*B)));this._delta<0&&K!==0&&(K=1/K);var ye=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(ye*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,ke=this._startZoom,Je=this._easing,Ct=!1,ur;if(this._type==="wheel"&&ke&&Je){var Sr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),nr=Je(Sr);ur=i.number(ke,ne,nr),Sr<1?this._frameId||(this._frameId=!0):Ct=!0}else ur=ne,Ct=!0;return this._active=!0,Ct&&(this._active=!1,this._finishTimeout=setTimeout(function(){R._zooming=!1,R._handler._triggerRenderFrame(),delete R._targetZoom,delete R._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ct,zoomDelta:ur-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Fe.prototype._smoothOutEasing=function(R){var J=i.ease;if(this._prevEase){var B=this._prevEase,K=(i.browser.now()-B.start)/B.duration,ye=B.easing(K+.01)-B.easing(K),ne=.27/Math.sqrt(ye*ye+1e-4)*.01,ke=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,ke,.25,1)}return this._prevEase={start:i.browser.now(),duration:R,easing:J},J},Fe.prototype.reset=function(){this._active=!1};var Bt=function(R,J){this._clickZoom=R,this._tapZoom=J};Bt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Bt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Bt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Bt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var tr=function(){this.reset()};tr.prototype.reset=function(){this._active=!1},tr.prototype.dblclick=function(R,J){return R.preventDefault(),{cameraAnimation:function(B){B.easeTo({duration:300,zoom:B.getZoom()+(R.shiftKey?-1:1),around:B.unproject(J)},{originalEvent:R})}}},tr.prototype.enable=function(){this._enabled=!0},tr.prototype.disable=function(){this._enabled=!1,this.reset()},tr.prototype.isEnabled=function(){return this._enabled},tr.prototype.isActive=function(){return this._active};var Qr=function(){this._tap=new Oi({numTouches:1,numTaps:1}),this.reset()};Qr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Qr.prototype.touchstart=function(R,J,B){this._swipePoint||(this._tapTime&&R.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?B.length>0&&(this._swipePoint=J[0],this._swipeTouch=B[0].identifier):this._tap.touchstart(R,J,B))},Qr.prototype.touchmove=function(R,J,B){if(!this._tapTime)this._tap.touchmove(R,J,B);else if(this._swipePoint){if(B[0].identifier!==this._swipeTouch)return;var K=J[0],ye=K.y-this._swipePoint.y;return this._swipePoint=K,R.preventDefault(),this._active=!0,{zoomDelta:ye/128}}},Qr.prototype.touchend=function(R,J,B){if(this._tapTime)this._swipePoint&&B.length===0&&this.reset();else{var K=this._tap.touchend(R,J,B);K&&(this._tapTime=R.timeStamp)}},Qr.prototype.touchcancel=function(){this.reset()},Qr.prototype.enable=function(){this._enabled=!0},Qr.prototype.disable=function(){this._enabled=!1,this.reset()},Qr.prototype.isEnabled=function(){return this._enabled},Qr.prototype.isActive=function(){return this._active};var vi=function(R,J,B){this._el=R,this._mousePan=J,this._touchPan=B};vi.prototype.enable=function(R){this._inertiaOptions=R||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},vi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},vi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},vi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fi=function(R,J,B){this._pitchWithRotate=R.pitchWithRotate,this._mouseRotate=J,this._mousePitch=B};fi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(R,J,B,K){this._el=R,this._touchZoom=J,this._touchRotate=B,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(R){this._touchZoom.enable(R),this._rotationDisabled||this._touchRotate.enable(R),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var nn=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},On=(function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R})(i.Event);function Ln(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var wn=function(R,J){this._map=R,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Qu(R),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var B=this._el;this._listeners=[[B,"touchstart",{passive:!0}],[B,"touchmove",{passive:!1}],[B,"touchend",void 0],[B,"touchcancel",void 0],[B,"mousedown",void 0],[B,"mousemove",void 0],[B,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[B,"mouseover",void 0],[B,"mouseout",void 0],[B,"dblclick",void 0],[B,"click",void 0],[B,"keydown",{capture:!1}],[B,"keyup",void 0],[B,"wheel",{passive:!1}],[B,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,ye=this._listeners;Kke?Math.min(2,Ft):Math.max(.5,Ft),Yi=Math.pow(Cn,1-Br),yn=ne.unproject(ar.add(Jt.mult(Br*Yi)).mult(ci));ne.setLocationAtPoint(ne.renderWorldCopies?yn.wrap():yn,Xt)}ye._fireMoveEvents(K)},function(Br){ye._afterEase(K,Br)},B),this},R.prototype._prepareEase=function(B,K,ye){ye===void 0&&(ye={}),this._moving=!0,!K&&!ye.moving&&this.fire(new i.Event("movestart",B)),this._zooming&&!ye.zooming&&this.fire(new i.Event("zoomstart",B)),this._rotating&&!ye.rotating&&this.fire(new i.Event("rotatestart",B)),this._pitching&&!ye.pitching&&this.fire(new i.Event("pitchstart",B))},R.prototype._fireMoveEvents=function(B){this.fire(new i.Event("move",B)),this._zooming&&this.fire(new i.Event("zoom",B)),this._rotating&&this.fire(new i.Event("rotate",B)),this._pitching&&this.fire(new i.Event("pitch",B))},R.prototype._afterEase=function(B,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var ye=this._zooming,ne=this._rotating,ke=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ye&&this.fire(new i.Event("zoomend",B)),ne&&this.fire(new i.Event("rotateend",B)),ke&&this.fire(new i.Event("pitchend",B)),this.fire(new i.Event("moveend",B))}},R.prototype.flyTo=function(B,K){var ye=this;if(!B.essential&&i.browser.prefersReducedMotion){var ne=i.pick(B,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),B=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},B);var ke=this.transform,Je=this.getZoom(),Ct=this.getBearing(),ur=this.getPitch(),Sr=this.getPadding(),nr="zoom"in B?i.clamp(+B.zoom,ke.minZoom,ke.maxZoom):Je,Qe="bearing"in B?this._normalizeBearing(B.bearing,Ct):Ct,pt="pitch"in B?+B.pitch:ur,Tt="padding"in B?B.padding:ke.padding,Xt=ke.zoomScale(nr-Je),ir=i.Point.convert(B.offset),Kt=ke.centerPoint.add(ir),ar=ke.pointLocation(Kt),Jt=i.LngLat.convert(B.center||ar);this._normalizeCenter(Jt);var Ft=ke.project(ar),Zt=ke.project(Jt).sub(Ft),Pt=B.curve,Ar=Math.max(ke.width,ke.height),Br=Ar/Xt,ci=Zt.mag();if("minZoom"in B){var Cn=i.clamp(Math.min(B.minZoom,Je,nr),ke.minZoom,ke.maxZoom),Yi=Ar/ke.zoomScale(Cn-Je);Pt=Math.sqrt(Yi/ci*2)}var yn=Pt*Pt;function Xa(vu){var zu=(Br*Br-Ar*Ar+(vu?-1:1)*yn*yn*ci*ci)/(2*(vu?Br:Ar)*yn*ci);return Math.log(Math.sqrt(zu*zu+1)-zu)}function ca(vu){return(Math.exp(vu)-Math.exp(-vu))/2}function Tn(vu){return(Math.exp(vu)+Math.exp(-vu))/2}function Pn(vu){return ca(vu)/Tn(vu)}var Nn=Xa(0),xa=function(vu){return Tn(Nn)/Tn(Nn+Pt*vu)},Zo=function(vu){return Ar*((Tn(Nn)*Pn(Nn+Pt*vu)-ca(Nn))/yn)/ci},iu=(Xa(1)-Nn)/Pt;if(Math.abs(ci)<1e-6||!isFinite(iu)){if(Math.abs(Ar-Br)<1e-6)return this.easeTo(B,K);var yu=BrB.maxDuration&&(B.duration=0),this._zooming=!0,this._rotating=Ct!==Qe,this._pitching=pt!==ur,this._padding=!ke.isPaddingEqual(Tt),this._prepareEase(K,!1),this._ease(function(vu){var zu=vu*iu,Ju=1/xa(zu);ke.zoom=vu===1?nr:Je+ke.scaleZoom(Ju),ye._rotating&&(ke.bearing=i.number(Ct,Qe,vu)),ye._pitching&&(ke.pitch=i.number(ur,pt,vu)),ye._padding&&(ke.interpolatePadding(Sr,Tt,vu),Kt=ke.centerPoint.add(ir));var Uf=vu===1?Jt:ke.unproject(Ft.add(Zt.mult(Zo(zu))).mult(Ju));ke.setLocationAtPoint(ke.renderWorldCopies?Uf.wrap():Uf,Kt),ye._fireMoveEvents(K)},function(){return ye._afterEase(K)},B),this},R.prototype.isEasing=function(){return!!this._easeFrameId},R.prototype.stop=function(){return this._stop()},R.prototype._stop=function(B,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ye=this._onEaseEnd;delete this._onEaseEnd,ye.call(this,K)}if(!B){var ne=this.handlers;ne&&ne.stop(!1)}return this},R.prototype._ease=function(B,K,ye){ye.animate===!1||ye.duration===0?(B(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=ye,this._onEaseFrame=B,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},R.prototype._renderFrameCallback=function(){var B=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(B)),B<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},R.prototype._normalizeBearing=function(B,K){B=i.wrap(B,-180,180);var ye=Math.abs(B-K);return Math.abs(B-360-K)180?-360:ye<-180?360:0}},R})(i.Evented),ua=function(R){R===void 0&&(R={}),this.options=R,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ua.prototype.getDefaultPosition=function(){return"bottom-right"},ua.prototype.onAdd=function(R){var J=this.options&&this.options.compact;return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ua.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ua.prototype._setElementTitle=function(R,J){var B=this._map._getUIString("AttributionControl."+J);R.title=B,R.setAttribute("aria-label",B)},ua.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ua.prototype._updateEditLink=function(){var R=this._editLink;R||(R=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(R){var B=J.reduce(function(K,ye,ne){return ye.value&&(K+=ye.key+"="+ye.value+(ne=0)return!1;return!0});var ke=R.join(" | ");ke!==this._attribHTML&&(this._attribHTML=ke,R.length?(this._innerContainer.innerHTML=ke,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ua.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hn=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};Hn.prototype.onAdd=function(R){this._map=R,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hn.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hn.prototype.getDefaultPosition=function(){return"bottom-left"},Hn.prototype._updateLogo=function(R){(!R||R.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Hn.prototype._logoRequired=function(){if(this._map.style){var R=this._map.style.sourceCaches;for(var J in R){var B=R[J].getSource();if(B.mapbox_logo)return!0}return!1}},Hn.prototype._updateCompact=function(){var R=this._container.children;if(R.length){var J=R[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var Ni=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ni.prototype.add=function(R){var J=++this._id,B=this._queue;return B.push({callback:R,id:J,cancelled:!1}),J},Ni.prototype.remove=function(R){for(var J=this._currentlyRunning,B=J?this._queue.concat(J):this._queue,K=0,ye=B;KB.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(B.minPitch!=null&&B.maxPitch!=null&&B.minPitch>B.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(B.minPitch!=null&&B.minPitchhs)throw new Error("maxPitch must be less than or equal to "+hs);var ye=new nu(B.minZoom,B.maxZoom,B.minPitch,B.maxPitch,B.renderWorldCopies);if(Y.call(this,ye,B),this._interactive=B.interactive,this._maxTileCacheSize=B.maxTileCacheSize,this._failIfMajorPerformanceCaveat=B.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=B.preserveDrawingBuffer,this._antialias=B.antialias,this._trackResize=B.trackResize,this._bearingSnap=B.bearingSnap,this._refreshExpiredTiles=B.refreshExpiredTiles,this._fadeDuration=B.fadeDuration,this._crossSourceCollisions=B.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=B.collectResourceTiming,this._renderTaskQueue=new Ni,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Wr,B.locale),this._clickTolerance=B.clickTolerance,this._requestManager=new i.RequestManager(B.transformRequest,B.accessToken),typeof B.container=="string"){if(this._container=i.window.document.getElementById(B.container),!this._container)throw new Error("Container '"+B.container+"' not found.")}else if(B.container instanceof dn)this._container=B.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(B.maxBounds&&this.setMaxBounds(B.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new wn(this,B);var ne=typeof B.hash=="string"&&B.hash||void 0;this._hash=B.hash&&new $u(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:B.center,zoom:B.zoom,bearing:B.bearing,pitch:B.pitch}),B.bounds&&(this.resize(),this.fitBounds(B.bounds,i.extend({},B.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=B.localIdeographFontFamily,B.style&&this.setStyle(B.style,{localIdeographFontFamily:B.localIdeographFontFamily}),B.attributionControl&&this.addControl(new ua({customAttribution:B.customAttribution})),this.addControl(new Hn,B.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(ke){K._update(ke.dataType==="style"),K.fire(new i.Event(ke.dataType+"data",ke))}),this.on("dataloading",function(ke){K.fire(new i.Event(ke.dataType+"dataloading",ke))})}Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return R.prototype._getMapId=function(){return this._mapId},R.prototype.addControl=function(K,ye){if(ye===void 0&&(K.getDefaultPosition?ye=K.getDefaultPosition():ye="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var ke=this._controlPositions[ye];return ye.indexOf("bottom")!==-1?ke.insertBefore(ne,ke.firstChild):ke.appendChild(ne),this},R.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ye=this._controls.indexOf(K);return ye>-1&&this._controls.splice(ye,1),K.onRemove(this),this},R.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},R.prototype.resize=function(K){var ye=this._containerDimensions(),ne=ye[0],ke=ye[1];this._resizeCanvas(ne,ke),this.transform.resize(ne,ke),this.painter.resize(ne,ke);var Je=!this._moving;return Je&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Je&&this.fire(new i.Event("moveend",K)),this},R.prototype.getBounds=function(){return this.transform.getBounds()},R.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},R.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},R.prototype.setMinZoom=function(K){if(K=K==null?Zi:K,K>=Zi&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},R.prototype.getMaxZoom=function(){return this.transform.maxZoom},R.prototype.setMinPitch=function(K){if(K=K==null?Kn:K,K=Kn&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()hs)throw new Error("maxPitch must be less than or equal to "+hs);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},R.prototype.getMaxPitch=function(){return this.transform.maxPitch},R.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},R.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},R.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},R.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},R.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},R.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},R.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},R.prototype._createDelegatedListener=function(K,ye,ne){var ke=this,Je;if(K==="mouseenter"||K==="mouseover"){var Ct=!1,ur=function(Xt){var ir=ke.getLayer(ye)?ke.queryRenderedFeatures(Xt.point,{layers:[ye]}):[];ir.length?Ct||(Ct=!0,ne.call(ke,new le(K,ke,Xt.originalEvent,{features:ir}))):Ct=!1},Sr=function(){Ct=!1};return{layer:ye,listener:ne,delegates:{mousemove:ur,mouseout:Sr}}}else if(K==="mouseleave"||K==="mouseout"){var nr=!1,Qe=function(Xt){var ir=ke.getLayer(ye)?ke.queryRenderedFeatures(Xt.point,{layers:[ye]}):[];ir.length?nr=!0:nr&&(nr=!1,ne.call(ke,new le(K,ke,Xt.originalEvent)))},pt=function(Xt){nr&&(nr=!1,ne.call(ke,new le(K,ke,Xt.originalEvent)))};return{layer:ye,listener:ne,delegates:{mousemove:Qe,mouseout:pt}}}else{var Tt=function(Xt){var ir=ke.getLayer(ye)?ke.queryRenderedFeatures(Xt.point,{layers:[ye]}):[];ir.length&&(Xt.features=ir,ne.call(ke,Xt),delete Xt.features)};return{layer:ye,listener:ne,delegates:(Je={},Je[K]=Tt,Je)}}},R.prototype.on=function(K,ye,ne){if(ne===void 0)return Y.prototype.on.call(this,K,ye);var ke=this._createDelegatedListener(K,ye,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(ke);for(var Je in ke.delegates)this.on(Je,ke.delegates[Je]);return this},R.prototype.once=function(K,ye,ne){if(ne===void 0)return Y.prototype.once.call(this,K,ye);var ke=this._createDelegatedListener(K,ye,ne);for(var Je in ke.delegates)this.once(Je,ke.delegates[Je]);return this},R.prototype.off=function(K,ye,ne){var ke=this;if(ne===void 0)return Y.prototype.off.call(this,K,ye);var Je=function(Ct){for(var ur=Ct[K],Sr=0;Sr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var _s={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ul(Y,R,J){var B=Y.classList;for(var K in _s)B.remove("mapboxgl-"+J+"-anchor-"+K);B.add("mapboxgl-"+J+"-anchor-"+R)}var Qn=(function(Y){function R(J,B){if(Y.call(this),(J instanceof i.window.HTMLElement||B)&&(J=i.extend({element:J},B)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),ye=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",ye+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+ye);var ke=o.createNS("http://www.w3.org/2000/svg","g");ke.setAttributeNS(null,"stroke","none"),ke.setAttributeNS(null,"stroke-width","1"),ke.setAttributeNS(null,"fill","none"),ke.setAttributeNS(null,"fill-rule","evenodd");var Je=o.createNS("http://www.w3.org/2000/svg","g");Je.setAttributeNS(null,"fill-rule","nonzero");var Ct=o.createNS("http://www.w3.org/2000/svg","g");Ct.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ct.setAttributeNS(null,"fill","#000000");for(var ur=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],Sr=0,nr=ur;Sr=K}this._isDragging&&(this._pos=B.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},R.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},R.prototype._addDragHandler=function(B){this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},R.prototype.setDraggable=function(B){return this._draggable=!!B,this._map&&(B?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},R.prototype.isDraggable=function(){return this._draggable},R.prototype.setRotation=function(B){return this._rotation=B||0,this._update(),this},R.prototype.getRotation=function(){return this._rotation},R.prototype.setRotationAlignment=function(B){return this._rotationAlignment=B||"auto",this._update(),this},R.prototype.getRotationAlignment=function(){return this._rotationAlignment},R.prototype.setPitchAlignment=function(B){return this._pitchAlignment=B&&B!=="auto"?B:this._rotationAlignment,this._update(),this},R.prototype.getPitchAlignment=function(){return this._pitchAlignment},R})(i.Evented),Mo={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},al;function pl(Y){al!==void 0?Y(al):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(R){al=R.state!=="denied",Y(al)}):(al=!!i.window.navigator.geolocation,Y(al))}var Dl=0,Ou=!1,vf=(function(Y){function R(J){Y.call(this),this.options=i.extend({},Mo,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.onAdd=function(B){return this._map=B,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),pl(this._setupUI),this._container},R.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Dl=0,Ou=!1},R.prototype._isOutOfMapMaxBounds=function(B){var K=this._map.getMaxBounds(),ye=B.coords;return K&&(ye.longitudeK.getEast()||ye.latitudeK.getNorth())},R.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},R.prototype._onSuccess=function(B){if(this._map){if(this._isOutOfMapMaxBounds(B)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",B)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=B,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(B),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(B),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",B)),this._finish()}},R.prototype._updateCamera=function(B){var K=new i.LngLat(B.coords.longitude,B.coords.latitude),ye=B.coords.accuracy,ne=this._map.getBearing(),ke=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(ye),ke,{geolocateSource:!0})},R.prototype._updateMarker=function(B){if(B){var K=new i.LngLat(B.coords.longitude,B.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=B.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},R.prototype._updateCircleRadius=function(){var B=this._map._container.clientHeight/2,K=this._map.unproject([0,B]),ye=this._map.unproject([1,B]),ne=K.distanceTo(ye),ke=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=ke+"px",this._circleElement.style.height=ke+"px"},R.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},R.prototype._onError=function(B){if(this._map){if(this.options.trackUserLocation)if(B.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(B.code===3&&Ou)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",B)),this._finish()}},R.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},R.prototype._setupUI=function(B){var K=this;if(this._container.addEventListener("contextmenu",function(ke){return ke.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",B===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ye=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ye,this._geolocateButton.setAttribute("aria-label",ye)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Qn(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Qn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(ke){var Je=ke.originalEvent&&ke.originalEvent.type==="resize";!ke.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Je&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},R.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Dl--,Ou=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Dl++;var B;Dl>1?(B={maximumAge:6e5,timeout:0},Ou=!0):(B=this.options.positionOptions,Ou=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,B)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},R.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},R})(i.Evented),Ql={maxWidth:100,unit:"metric"},Mf=function(R){this.options=i.extend({},Ql,R),i.bindAll(["_onMove","setUnit"],this)};Mf.prototype.getDefaultPosition=function(){return"bottom-left"},Mf.prototype._onMove=function(){Cu(this._map,this._container,this.options)},Mf.prototype.onAdd=function(R){return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",R.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Mf.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Mf.prototype.setUnit=function(R){this.options.unit=R,Cu(this._map,this._container,this.options)};function Cu(Y,R,J){var B=J&&J.maxWidth||100,K=Y._container.clientHeight/2,ye=Y.unproject([0,K]),ne=Y.unproject([B,K]),ke=ye.distanceTo(ne);if(J&&J.unit==="imperial"){var Je=3.2808*ke;if(Je>5280){var Ct=Je/5280;gf(R,B,Ct,Y._getUIString("ScaleControl.Miles"))}else gf(R,B,Je,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var ur=ke/1852;gf(R,B,ur,Y._getUIString("ScaleControl.NauticalMiles"))}else ke>=1e3?gf(R,B,ke/1e3,Y._getUIString("ScaleControl.Kilometers")):gf(R,B,ke,Y._getUIString("ScaleControl.Meters"))}function gf(Y,R,J,B){var K=Cf(J),ye=K/J;Y.style.width=R*ye+"px",Y.innerHTML=K+" "+B}function xf(Y){var R=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*R)/R}function Cf(Y){var R=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/R;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:xf(J),R*J}var Gu=function(R){this._fullscreen=!1,R&&R.container&&(R.container instanceof i.window.HTMLElement?this._container=R.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};Gu.prototype.onAdd=function(R){return this._map=R,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Gu.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Gu.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},Gu.prototype._setupUI=function(){var R=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",R).setAttribute("aria-hidden",!0),R.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Gu.prototype._updateTitle=function(){var R=this._getTitle();this._fullscreenButton.setAttribute("aria-label",R),this._fullscreenButton.title=R},Gu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Gu.prototype._isFullscreen=function(){return this._fullscreen},Gu.prototype._changeIcon=function(){var R=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;R===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Gu.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var cf={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},mf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Fl=(function(Y){function R(J){Y.call(this),this.options=i.extend(Object.create(cf),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.addTo=function(B){return this._map&&this.remove(),this._map=B,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},R.prototype.isOpen=function(){return!!this._map},R.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},R.prototype.getLngLat=function(){return this._lngLat},R.prototype.setLngLat=function(B){return this._lngLat=i.LngLat.convert(B),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},R.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},R.prototype.getElement=function(){return this._container},R.prototype.setText=function(B){return this.setDOMContent(i.window.document.createTextNode(B))},R.prototype.setHTML=function(B){var K=i.window.document.createDocumentFragment(),ye=i.window.document.createElement("body"),ne;for(ye.innerHTML=B;ne=ye.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},R.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},R.prototype.setMaxWidth=function(B){return this.options.maxWidth=B,this._update(),this},R.prototype.setDOMContent=function(B){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(B),this._createCloseButton(),this._update(),this._focusFirstElement(),this},R.prototype.addClassName=function(B){this._container&&this._container.classList.add(B)},R.prototype.removeClassName=function(B){this._container&&this._container.classList.remove(B)},R.prototype.setOffset=function(B){return this.options.offset=B,this._update(),this},R.prototype.toggleClassName=function(B){if(this._container)return this._container.classList.toggle(B)},R.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},R.prototype._onMouseUp=function(B){this._update(B.point)},R.prototype._onMouseMove=function(B){this._update(B.point)},R.prototype._onDrag=function(B){this._update(B.point)},R.prototype._update=function(B){var K=this,ye=this._lngLat||this._trackPointer;if(!(!this._map||!ye||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Qe){return K._container.classList.add(Qe)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Va(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!B))){var ne=this._pos=this._trackPointer&&B?B:this._map.project(this._lngLat),ke=this.options.anchor,Je=bf(this.options.offset);if(!ke){var Ct=this._container.offsetWidth,ur=this._container.offsetHeight,Sr;ne.y+Je.bottom.ythis._map.transform.height-ur?Sr=["bottom"]:Sr=[],ne.xthis._map.transform.width-Ct/2&&Sr.push("right"),Sr.length===0?ke="bottom":ke=Sr.join("-")}var nr=ne.add(Je[ke]).round();o.setTransform(this._container,_s[ke]+" translate("+nr.x+"px,"+nr.y+"px)"),ul(this._container,ke,"popup")}},R.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var B=this._container.querySelector(mf);B&&B.focus()}},R.prototype._onClose=function(){this.remove()},R})(i.Evented);function bf(Y){if(Y)if(typeof Y=="number"){var R=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(R,R),"top-right":new i.Point(-R,R),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(R,-R),"bottom-right":new i.Point(-R,-R),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return bf(new i.Point(0,0))}var cu={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ui,NavigationControl:Bn,GeolocateControl:vf,AttributionControl:ua,ScaleControl:Mf,FullscreenControl:Gu,Popup:Fl,Marker:Qn,Style:jn,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Yr,clearPrewarmedResources:oi,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return Ei.workerCount},set workerCount(Y){Ei.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(R){i.clearTileCache(R)},workerUrl:""};return cu}),r}))});var cHe=we((Z2r,fHe)=>{"use strict";var mw=ei(),zXt=Wf().sanitizeHTML,IXt=SJ(),sHe=g1();function lHe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=sHe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var am=lHe.prototype;am.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=m9(t)};am.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};am.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};am.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};am.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};am.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};am.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!m9(e)){var r=RXt(e);t.addSource(this.idSource,r)}};am.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function uHe(e){var t={},r={};switch(e.type){case"circle":mw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":mw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":mw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=IXt(n.textposition,n.iconsize);mw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),mw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":mw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function RXt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=zXt(e.sourceattribution)),n}fHe.exports=function(t,r,n){var i=new lHe(t,r);return i.update(n),i}});var xHe=we((Y2r,_He)=>{"use strict";var zJ=PJ(),IJ=ei(),vHe=eg(),hHe=$l(),DXt=wu(),FXt=xp(),y9=Vc(),mHe=Cm(),OXt=mHe.drawMode,BXt=mHe.selectMode,qXt=oh().prepSelect,NXt=oh().clearOutline,UXt=oh().clearSelectionsCache,VXt=oh().selectOnClick,Cx=g1(),GXt=cHe();function yHe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Yh=yHe.prototype;Yh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};Yh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=gHe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new zJ.Map({container:i.div,style:o.style,center:RJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new zJ.AttributionControl({compact:!0}));l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(c){l.once("load",c)})),f=f.concat(vHe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Yh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=gHe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(vHe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Yh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&VXt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&y9.click(n,u.originalEvent)}}};Yh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=IJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),BXt(a)||OXt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){qXt(u,l,f,t.dragOptions,a)},FXt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Yh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Yh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var DJ=ei(),HXt=B_(),WXt=$d(),bHe=Jk();wHe.exports=function(t,r,n){HXt(t,r,n,{type:"mapbox",attributes:bHe,handleDefaults:jXt,partition:"y",accessToken:r._mapboxAccessToken})};function jXt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,WXt(e,t,{name:"layers",handleItemDefaults:XXt}),t._input=e}function XXt(e,t){function r(u,l){return DJ.coerce(e,t,bHe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",DJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),DJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var g9=we(Nv=>{"use strict";var THe=PJ(),ny=ei(),FJ=ny.strTranslate,ZXt=ny.strScale,YXt=Rd().getSubplotCalcData,KXt=jv(),JXt=Kl(),SHe=Mu(),$Xt=Wf(),QXt=xHe(),Lx="mapbox",lg=Nv.constants=g1();Nv.name=Lx;Nv.attr="subplot";Nv.idRoot=Lx;Nv.idRegex=Nv.attrRegex=ny.counterRegex(Lx);var eZt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Nv.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Nv.layoutAttributes=Jk();Nv.supplyLayoutDefaults=AHe();var MHe=!0;Nv.plot=function(t){MHe&&(MHe=!1,ny.warn(eZt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[Lx];if(THe.version!==lg.requiredVersion)throw new Error(lg.wrongVersionErrorMsg);var a=tZt(t,i);THe.accessToken=a;for(var o=0;ov/2){var C=d.split("|").join("
");y.text(C).attr("data-unformatted",C).call($Xt.convertToTspans,e),b=SHe.bBox(y.node())}y.attr("transform",FJ(-3,-b.height+8)),p.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>v&&(E=v/(b.width+6));var A=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];p.attr("transform",FJ(A[0],A[1])+ZXt(E))}};function tZt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,u=0;u1&&ny.warn(lg.multipleTokensErrorMsg),i[0]):(a.length&&ny.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function EHe(e){return typeof e=="string"&&(lg.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Nv.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Lx],n=0;n{"use strict";var $2r=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");kHe.exports={attributes:f9(),supplyDefaults:NGe(),colorbar:tp(),formatLabels:TJ(),calc:AF(),plot:eHe(),hoverPoints:v9().hoverPoints,eventData:nHe(),selectPoints:oHe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:g9(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var PHe=we((ewr,LHe)=>{"use strict";LHe.exports=CHe()});var OJ=we((twr,zHe)=>{"use strict";var _1=lS(),rZt=nc(),{hovertemplateAttrs:iZt,templatefallbackAttrs:nZt}=Of(),aZt=Vf(),Px=Su().extendFlat;zHe.exports=Px({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Px({},_1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:_1.text,hovertext:_1.hovertext,marker:{line:{color:Px({},_1.marker.line.color,{editType:"plot"}),width:Px({},_1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Px({},_1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Px({},_1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Px({},_1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:_1.hoverinfo,hovertemplate:iZt({},{keys:["properties"]}),hovertemplatefallback:nZt(),showlegend:Px({},aZt.showlegend,{dflt:!1})},rZt("",{cLetter:"z",editTypeOverride:"calc"}))});var RHe=we((rwr,IHe)=>{"use strict";var tC=ei(),oZt=nd(),sZt=OJ();IHe.exports=function(t,r,n,i){function a(f,c){return tC.coerce(t,r,sZt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!tC.isArrayOrTypedArray(o)||!o.length||!tC.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||tC.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),oZt(t,r,i,a,{prefix:"",cLetter:"z"}),tC.coerceSelectionMarkerOpacity(r,a)}});var BJ=we((iwr,OHe)=>{"use strict";var lZt=ku(),x1=ei(),uZt=_c(),fZt=Mu(),cZt=hx().makeBlank,DHe=eg();function hZt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:cZt()};if(!r)return a;var o=DHe.extractTraceFeature(e);if(!o)return a;var s=uZt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;x1.isArrayOrTypedArray(u.opacity)&&(f=function(C){var E=C.mo;return lZt(E)?+x1.constrain(E,0,1):0});var c;x1.isArrayOrTypedArray(l.color)&&(c=function(C){return C.mlc});var h;x1.isArrayOrTypedArray(l.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var qHe=BJ().convert,dZt=BJ().convertOnSelect,BHe=g1().traceLayerPrefix;function NHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",BHe+t+"-fill"],["line",BHe+t+"-line"]],this.below=null}var IS=NHe.prototype;IS.update=function(e){this._update(qHe(e)),e[0].trace._glTrace=this};IS.updateOnSelect=function(e){this._update(dZt(e))};IS._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};IS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};UHe.exports=function(t,r){var n=r[0].trace,i=new NHe(t,n.uid),a=i.sourceId,o=qHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var HHe=we((owr,GHe)=>{"use strict";var awr=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");GHe.exports={attributes:OJ(),supplyDefaults:RHe(),colorbar:D_(),calc:HF(),plot:VHe(),hoverPoints:jF(),eventData:XF(),selectPoints:ZF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";WHe.exports=HHe()});var NJ=we((lwr,ZHe)=>{"use strict";var pZt=nc(),{hovertemplateAttrs:vZt,templatefallbackAttrs:mZt}=Of(),XHe=Vf(),_9=f9(),qJ=Su().extendFlat;ZHe.exports=qJ({lon:_9.lon,lat:_9.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:_9.text,hovertext:_9.hovertext,hoverinfo:qJ({},XHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:vZt(),hovertemplatefallback:mZt(),showlegend:qJ({},XHe.showlegend,{dflt:!1})},pZt("",{cLetter:"z",editTypeOverride:"calc"}))});var KHe=we((uwr,YHe)=>{"use strict";var yZt=ei(),gZt=nd(),_Zt=NJ();YHe.exports=function(t,r,n,i){function a(l,f){return yZt.coerce(t,r,_Zt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),gZt(t,r,i,a,{prefix:"",cLetter:"z"})}});var QHe=we((fwr,$He)=>{"use strict";var UJ=ku(),xZt=ei().isArrayOrTypedArray,VJ=rf().BADNUM,bZt=gp(),JHe=ei()._;$He.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=xZt(a)&&a.length,s=0;s{"use strict";var wZt=ku(),GJ=ei(),eWe=jl(),tWe=_c(),rWe=rf().BADNUM,AZt=hx().makeBlank;iWe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:AZt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=GJ.isArrayOrTypedArray(u)&&u.length,c=GJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=tWe.extractOpts(r),v=b.reversescale?tWe.flipScale(b.colorscale):b.colorscale,C=v[0][1],E=eWe.opacity(C)<1?C:eWe.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var aWe=nWe(),TZt=g1().traceLayerPrefix;function oWe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",TZt+t+"-heatmap"]],this.below=null}var x9=oWe.prototype;x9.update=function(e){var t=this.subplot,r=this.layerList,n=aWe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};x9.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};sWe.exports=function(t,r){var n=r[0].trace,i=new oWe(t,n.uid),a=i.sourceId,o=aWe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var fWe=we((dwr,uWe)=>{"use strict";var SZt=wu(),MZt=v9().hoverPoints,EZt=v9().getExtraText;uWe.exports=function(t,r,n){var i=MZt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=SZt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=EZt(s,u,o[0].t.labels),[a]}}});var hWe=we((pwr,cWe)=>{"use strict";cWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var pWe=we((mwr,dWe)=>{"use strict";var vwr=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");dWe.exports={attributes:NJ(),supplyDefaults:KHe(),colorbar:D_(),formatLabels:TJ(),calc:QHe(),plot:lWe(),hoverPoints:fWe(),eventData:hWe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";vWe.exports=pWe()});var gWe=we((gwr,yWe)=>{yWe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} {name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} @@ -3222,10 +3222,10 @@ uniform `+ur+" "+Sr+" u_"+nr+`; {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} -{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var vWe=we((twr,pWe)=>{pWe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var zx=we((rwr,xWe)=>{"use strict";var cZt=t_(),hZt=dWe(),dZt=vWe(),pZt='\xA9 OpenStreetMap contributors',mWe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",yWe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",_8="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",vZt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",mZt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",yZt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",_We={basic:_8,streets:_8,outdoors:_8,light:mWe,dark:yWe,satellite:dZt,"satellite-streets":hZt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:pZt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":mWe,"carto-darkmatter":yWe,"carto-voyager":_8,"carto-positron-nolabels":vZt,"carto-darkmatter-nolabels":mZt,"carto-voyager-nolabels":yZt},gWe=cZt(_We);xWe.exports={styleValueDflt:"basic",stylesMap:_We,styleValuesMap:gWe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",gWe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error."}});var eC=we((iwr,SWe)=>{"use strict";var bWe=ei(),wWe=jl().defaultLine,gZt=zc().attributes,_Zt=gc(),xZt=Zc().textposition,bZt=Sc().overrideAll,wZt=Lf().templatedArray,AWe=zx(),TWe=_Zt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});TWe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var AZt=SWe.exports=bZt({_arrayAttrRegexps:[bWe.counterRegex("map",".layers",!0)],domain:gZt({name:"map"}),style:{valType:"any",values:AWe.styleValuesMap,dflt:AWe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:wZt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:wWe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:wWe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:TWe,textposition:bWe.extendFlat({},xZt,{arrayOk:!1})}})},"plot","from-root");AZt.uirevision={valType:"any",editType:"none"}});var x8=we((nwr,CWe)=>{"use strict";var{hovertemplateAttrs:TZt,texttemplateAttrs:SZt,templatefallbackAttrs:MWe}=Ff(),MZt=Pm(),tC=tw(),zS=Zc(),EWe=eC(),EZt=Gf(),kZt=nc(),vw=Su().extendFlat,CZt=Sc().overrideAll,LZt=eC(),kWe=tC.line,IS=tC.marker;CWe.exports=CZt({lon:tC.lon,lat:tC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:vw({},LZt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:vw({},IS.opacity,{dflt:1})},mode:vw({},zS.mode,{dflt:"markers"}),text:vw({},zS.text,{}),texttemplate:SZt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:MWe({editType:"plot"}),hovertext:vw({},zS.hovertext,{}),line:{color:kWe.color,width:kWe.width},connectgaps:zS.connectgaps,marker:vw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:IS.opacity,size:IS.size,sizeref:IS.sizeref,sizemin:IS.sizemin,sizemode:IS.sizemode},kZt("marker")),fill:tC.fill,fillcolor:MZt(),textfont:EWe.layers.symbol.textfont,textposition:EWe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:zS.selected.marker},unselected:{marker:zS.unselected.marker},hoverinfo:vw({},EZt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:TZt(),hovertemplatefallback:MWe()},"calc","nested")});var UJ=we((awr,LWe)=>{"use strict";var PZt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];LWe.exports={isSupportedFont:function(e){return PZt.indexOf(e)!==-1}}});var IWe=we((owr,zWe)=>{"use strict";var rC=ei(),VJ=lc(),zZt=$v(),IZt=D0(),DZt=R0(),RZt=Rm(),PWe=x8(),FZt=UJ().isSupportedFont;zWe.exports=function(t,r,n,i){function a(v,C){return rC.coerce(t,r,PWe,v,C)}function o(v,C){return rC.coerce2(t,r,PWe,v,C)}var s=OZt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),VJ.hasMarkers(r)){zZt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(rC.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),rC.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}VJ.hasLines(r)&&(IZt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,y=a("cluster.enabled",p);if(y||VJ.hasText(r)){var b=i.font.family;DZt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:FZt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&RZt(t,r,n,a),rC.coerceSelectionMarkerOpacity(r,a)};function OZt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var GJ=we((swr,RWe)=>{"use strict";var DWe=wu();RWe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=DWe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=DWe.tickText(o,o.c2l(s[1]),!0).text,i}});var HJ=we((lwr,OWe)=>{"use strict";var FWe=ei();OWe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=FWe.isArrayOrTypedArray(r)?FWe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var GWe=we((uwr,VWe)=>{"use strict";var NWe=ku(),up=ei(),BZt=rf().BADNUM,w8=cx(),BWe=_c(),qZt=Mu(),NZt=q3(),A8=lc(),UZt=UJ().isSupportedFont,VZt=HJ(),GZt=iv().appendArrayPointValue,HZt=Wf().NEWLINES,WZt=Wf().BR_TAG_ALL;VWe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=A8.hasLines(n),s=A8.hasMarkers(n),u=A8.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=b8("fill"),d=b8("line"),p=b8("circle"),y=b8("symbol"),b={fill:h,line:d,circle:p,symbol:y};if(!i)return b;var v;if((a||o)&&(v=w8.calcTraceToLineCoords(r)),a&&(h.geojson=w8.makePolygon(v),h.layout.visibility="visible",up.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=w8.makeLine(v),d.layout.visibility="visible",up.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var C=jZt(r);p.geojson=C.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":jJ(n.cluster.color,n.cluster.step),"circle-radius":jJ(n.cluster.size,n.cluster.step),"circle-opacity":jJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":qWe(n),"text-size":12}}),up.extendFlat(p.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(y.geojson=XZt(r,t),up.extendFlat(y.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(up.extendFlat(y.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&up.extendFlat(y.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),y.layout["icon-allow-overlap"]=n.marker.allowoverlap,up.extendFlat(y.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var M=(n.marker||{}).size,A=VZt(n.textposition,M);up.extendFlat(y.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":qWe(n)}),up.extendFlat(y.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function b8(e){return{type:e,geojson:w8.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function jZt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=up.isArrayOrTypedArray(r.color),a=up.isArrayOrTypedArray(r.size),o=up.isArrayOrTypedArray(r.opacity),s;function u(M){return t.opacity*M}function l(M){return M/2}var f;i&&(BWe.hasColorscale(t,"marker")?f=BWe.makeColorScaleFuncFromTrace(r):f=up.identity);var c;a&&(c=NZt(t));var h;o&&(h=function(M){var A=NWe(M)?+up.constrain(M,0,1):0;return u(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),UZt(s)||(s=r);var u=s.split(", ");return u}});var XWe=we((fwr,jWe)=>{"use strict";var ZZt=ei(),HWe=GWe(),DS=zx().traceLayerPrefix,om={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function WWe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:DS+t+"-fill",line:DS+t+"-line",circle:DS+t+"-circle",symbol:DS+t+"-symbol",cluster:DS+t+"-cluster",clusterCount:DS+t+"-cluster-count"},this.below=null}var iC=WWe.prototype;iC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&ZZt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};iC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};iC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=A[L];i.removeLayer(l.layerIds[x])}M||i.removeSource(l.sourceIds.circle)}function h(M){for(var A=om.nonCluster,L=0;L=0;L--){var x=A[L];i.removeLayer(l.layerIds[x]),M||i.removeSource(l.sourceIds[x])}}function p(M){u?c(M):d(M)}function y(M){s?f(M):h(M)}function b(){for(var M=s?om.cluster:om.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};jWe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new WWe(t,n.uid,i,a),s=HWe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var YZt=Vc(),XJ=ei(),KZt=gA(),JZt=XJ.fillText,$Zt=rf().BADNUM,QZt=zx().traceLayerPrefix;function eYt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=QZt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function y(S){var m=S.lonlat;if(m[0]===$Zt||f&&u.indexOf(S.i+1)===-1)return 1/0;var P=XJ.modHalf(m[0],360),E=m[1],O=s.project([P,E]),F=O.x-a.c2p([p,E]),U=O.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(YZt.getClosest(n,y,e),e.index!==!1){var b=n[e.index],v=b.lonlat,C=[XJ.modHalf(v[0],360)+d,v[1]],M=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=M-L,e.x1=M+L,e.y0=A-L,e.y1=A+L;var x={};x[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,x);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=KZt(i,b),e.extraText=ZWe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function ZWe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&JZt(t,e,l),l.join("
")}YWe.exports={hoverPoints:eYt,getExtraText:ZWe}});var JWe=we((hwr,KWe)=>{"use strict";KWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var QWe=we((dwr,$We)=>{"use strict";var tYt=ei(),rYt=lc(),iYt=rf().BADNUM;$We.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!rYt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof ZJ=="object"&&typeof YJ!="undefined"?YJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(ZJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",u={};return t.shared(u),t.index(e,u),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(I,T,R,X){return new(R||(R=Promise))(function(ie,pe){function _e(Et){try{ct(X.next(Et))}catch(Yt){pe(Yt)}}function Xe(Et){try{ct(X.throw(Et))}catch(Yt){pe(Yt)}}function ct(Et){var Yt;Et.done?ie(Et.value):(Yt=Et.value,Yt instanceof R?Yt:new R(function(hr){hr(Yt)})).then(_e,Xe)}ct((X=X.apply(I,T||[])).next())})}function o(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}typeof SuppressedError=="function"&&SuppressedError;var s=u;function u(I,T){this.x=I,this.y=T}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(I){return this.clone()._add(I)},sub:function(I){return this.clone()._sub(I)},multByPoint:function(I){return this.clone()._multByPoint(I)},divByPoint:function(I){return this.clone()._divByPoint(I)},mult:function(I){return this.clone()._mult(I)},div:function(I){return this.clone()._div(I)},rotate:function(I){return this.clone()._rotate(I)},rotateAround:function(I,T){return this.clone()._rotateAround(I,T)},matMult:function(I){return this.clone()._matMult(I)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(I){return this.x===I.x&&this.y===I.y},dist:function(I){return Math.sqrt(this.distSqr(I))},distSqr:function(I){var T=I.x-this.x,R=I.y-this.y;return T*T+R*R},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(I){return Math.atan2(this.y-I.y,this.x-I.x)},angleWith:function(I){return this.angleWithSep(I.x,I.y)},angleWithSep:function(I,T){return Math.atan2(this.x*T-this.y*I,this.x*I+this.y*T)},_matMult:function(I){var T=I[2]*this.x+I[3]*this.y;return this.x=I[0]*this.x+I[1]*this.y,this.y=T,this},_add:function(I){return this.x+=I.x,this.y+=I.y,this},_sub:function(I){return this.x-=I.x,this.y-=I.y,this},_mult:function(I){return this.x*=I,this.y*=I,this},_div:function(I){return this.x/=I,this.y/=I,this},_multByPoint:function(I){return this.x*=I.x,this.y*=I.y,this},_divByPoint:function(I){return this.x/=I.x,this.y/=I.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var I=this.y;return this.y=this.x,this.x=-I,this},_rotate:function(I){var T=Math.cos(I),R=Math.sin(I),X=R*this.x+T*this.y;return this.x=T*this.x-R*this.y,this.y=X,this},_rotateAround:function(I,T){var R=Math.cos(I),X=Math.sin(I),ie=T.y+X*(this.x-T.x)+R*(this.y-T.y);return this.x=T.x+R*(this.x-T.x)-X*(this.y-T.y),this.y=ie,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(I){return I instanceof u?I:Array.isArray(I)?new u(I[0],I[1]):I};var l=o(s),f=c;function c(I,T,R,X){this.cx=3*I,this.bx=3*(R-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*T,this.by=3*(X-T)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=T,this.p2x=R,this.p2y=X}c.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,T){if(T===void 0&&(T=1e-6),I<0)return 0;if(I>1)return 1;for(var R=I,X=0;X<8;X++){var ie=this.sampleCurveX(R)-I;if(Math.abs(ie)ie?_e=R:Xe=R,R=.5*(Xe-_e)+_e;return R},solve:function(I,T){return this.sampleCurveY(this.solveCurveX(I,T))}};var h=o(f);let d,p;function y(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(p==null&&(p=!1,y())){let T=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(T){for(let X=0;X<5*5;X++){let ie=4*X;T.fillStyle=`rgb(${ie},${ie+1},${ie+2})`,T.fillRect(X%5,Math.floor(X/5),1,1)}let R=T.getImageData(0,0,5,5).data;for(let X=0;X<5*5*4;X++)if(X%4!=3&&R[X]!==X){p=!0;break}}}return p||!1}function v(I,T,R,X){let ie=new h(I,T,R,X);return pe=>ie.solve(pe)}let C=v(.25,.1,.25,1);function M(I,T,R){return Math.min(R,Math.max(T,I))}function A(I,T,R){let X=R-T,ie=((I-T)%X+X)%X+T;return ie===T?R:ie}function L(I,...T){for(let R of T)for(let X in R)I[X]=R[X];return I}let x=1;function k(I,T,R){let X={};for(let ie in I)X[ie]=T.call(this,I[ie],ie,I);return X}function S(I,T,R){let X={};for(let ie in I)T.call(this,I[ie],ie,I)&&(X[ie]=I[ie]);return X}function m(I){return Array.isArray(I)?I.map(m):typeof I=="object"&&I?k(I,m):I}let P={};function E(I){P[I]||(typeof console!="undefined"&&console.warn(I),P[I]=!0)}function O(I,T,R){return(R.y-I.y)*(T.x-I.x)>(T.y-I.y)*(R.x-I.x)}function F(I){return typeof WorkerGlobalScope!="undefined"&&I!==void 0&&I instanceof WorkerGlobalScope}let U=null;function G(I){return typeof ImageBitmap!="undefined"&&I instanceof ImageBitmap}let j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function W(I,T,R,X,ie){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let pe=new VideoFrame(I,{timestamp:0});try{let _e=pe==null?void 0:pe.format;if(!_e||!_e.startsWith("BGR")&&!_e.startsWith("RGB"))throw new Error(`Unrecognized format ${_e}`);let Xe=_e.startsWith("BGR"),ct=new Uint8ClampedArray(X*ie*4);if(yield pe.copyTo(ct,function(Et,Yt,hr,Tr,Dr){let Jr=4*Math.max(-Yt,0),li=(Math.max(0,hr)-hr)*Tr*4+Jr,Gi=4*Tr,fn=Math.max(0,Yt),Za=Math.max(0,hr);return{rect:{x:fn,y:Za,width:Math.min(Et.width,Yt+Tr)-fn,height:Math.min(Et.height,hr+Dr)-Za},layout:[{offset:li,stride:Gi}]}}(I,T,R,X,ie)),Xe)for(let Et=0;EtF(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(I,T){if(/:\/\//.test(I.url)&&!/^https?:|^file:/.test(I.url)){let X=Le(I.url);if(X)return X(I,T);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,targetMapId:Ce},T)}if(!(/^file:/.test(R=I.url)||/^file:/.test(te())&&!/^\w+:/.test(R))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(X,ie){return a(this,void 0,void 0,function*(){let pe=new Request(X.url,{method:X.method||"GET",body:X.body,credentials:X.credentials,headers:X.headers,cache:X.cache,referrer:te(),signal:ie.signal});X.type!=="json"||pe.headers.has("Accept")||pe.headers.set("Accept","application/json");let _e=yield fetch(pe);if(!_e.ok){let Et=yield _e.blob();throw new de(_e.status,_e.statusText,X.url,Et)}let Xe;Xe=X.type==="arrayBuffer"||X.type==="image"?_e.arrayBuffer():X.type==="json"?_e.json():_e.text();let ct=yield Xe;if(ie.signal.aborted)throw ae();return{data:ct,cacheControl:_e.headers.get("Cache-Control"),expires:_e.headers.get("Expires")}})}(I,T);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,mustQueue:!0,targetMapId:Ce},T)}var R;return function(X,ie){return new Promise((pe,_e)=>{var Xe;let ct=new XMLHttpRequest;ct.open(X.method||"GET",X.url,!0),X.type!=="arrayBuffer"&&X.type!=="image"||(ct.responseType="arraybuffer");for(let Et in X.headers)ct.setRequestHeader(Et,X.headers[Et]);X.type==="json"&&(ct.responseType="text",!((Xe=X.headers)===null||Xe===void 0)&&Xe.Accept||ct.setRequestHeader("Accept","application/json")),ct.withCredentials=X.credentials==="include",ct.onerror=()=>{_e(new Error(ct.statusText))},ct.onload=()=>{if(!ie.signal.aborted)if((ct.status>=200&&ct.status<300||ct.status===0)&&ct.response!==null){let Et=ct.response;if(X.type==="json")try{Et=JSON.parse(ct.response)}catch(Yt){return void _e(Yt)}pe({data:Et,cacheControl:ct.getResponseHeader("Cache-Control"),expires:ct.getResponseHeader("Expires")})}else{let Et=new Blob([ct.response],{type:ct.getResponseHeader("Content-Type")});_e(new de(ct.status,ct.statusText,X.url,Et))}},ie.signal.addEventListener("abort",()=>{ct.abort(),_e(ae())}),ct.send(X.body)})}(I,T)};function Te(I){if(!I||I.indexOf("://")<=0||I.indexOf("data:image/")===0||I.indexOf("blob:")===0)return!0;let T=new URL(I),R=window.location;return T.protocol===R.protocol&&T.host===R.host}function be(I,T,R){R[I]&&R[I].indexOf(T)!==-1||(R[I]=R[I]||[],R[I].push(T))}function He(I,T,R){if(R&&R[I]){let X=R[I].indexOf(T);X!==-1&&R[I].splice(X,1)}}class Ie{constructor(T,R={}){L(this,R),this.type=T}}class ge extends Ie{constructor(T,R={}){super("error",L({error:T},R))}}class Be{on(T,R){return this._listeners=this._listeners||{},be(T,R,this._listeners),this}off(T,R){return He(T,R,this._listeners),He(T,R,this._oneTimeListeners),this}once(T,R){return R?(this._oneTimeListeners=this._oneTimeListeners||{},be(T,R,this._oneTimeListeners),this):new Promise(X=>this.once(T,X))}fire(T,R){typeof T=="string"&&(T=new Ie(T,R||{}));let X=T.type;if(this.listens(X)){T.target=this;let ie=this._listeners&&this._listeners[X]?this._listeners[X].slice():[];for(let Xe of ie)Xe.call(this,T);let pe=this._oneTimeListeners&&this._oneTimeListeners[X]?this._oneTimeListeners[X].slice():[];for(let Xe of pe)He(X,Xe,this._oneTimeListeners),Xe.call(this,T);let _e=this._eventedParent;_e&&(L(T,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),_e.fire(T))}else T instanceof ge&&console.error(T.error);return this}listens(T){return this._listeners&&this._listeners[T]&&this._listeners[T].length>0||this._oneTimeListeners&&this._oneTimeListeners[T]&&this._oneTimeListeners[T].length>0||this._eventedParent&&this._eventedParent.listens(T)}setEventedParent(T,R){return this._eventedParent=T,this._eventedParentData=R,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let je=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function rt(I,T){let R={};for(let X in I)X!=="ref"&&(R[X]=I[X]);return je.forEach(X=>{X in T&&(R[X]=T[X])}),R}function bt(I,T){if(Array.isArray(I)){if(!Array.isArray(T)||I.length!==T.length)return!1;for(let R=0;R`:I.itemType.kind==="value"?"array":`array<${T}>`}return I.kind}let ze=[lt,We,Ve,et,tt,yr,Lt,xe(jt),vr,Vt,Pe];function Re(I,T){if(T.kind==="error")return null;if(I.kind==="array"){if(T.kind==="array"&&(T.N===0&&T.itemType.kind==="value"||!Re(I.itemType,T.itemType))&&(typeof I.N!="number"||I.N===T.N))return null}else{if(I.kind===T.kind)return null;if(I.kind==="value"){for(let R of ze)if(!Re(R,T))return null}}return`Expected ${Oe(I)} but found ${Oe(T)} instead.`}function ht(I,T){return T.some(R=>R.kind===I.kind)}function st(I,T){return T.some(R=>R==="null"?I===null:R==="array"?Array.isArray(I):R==="object"?I&&!Array.isArray(I)&&typeof I=="object":R===typeof I)}function gt(I,T){return I.kind==="array"&&T.kind==="array"?I.itemType.kind===T.itemType.kind&&typeof I.N=="number":I.kind===T.kind}let xt=.96422,pr=.82521,br=4/29,cr=6/29,Er=3*cr*cr,ii=cr*cr*cr,jr=Math.PI/180,kr=180/Math.PI;function Vr(I){return(I%=360)<0&&(I+=360),I}function Ai([I,T,R,X]){let ie,pe,_e=Di((.2225045*(I=Bi(I))+.7168786*(T=Bi(T))+.0606169*(R=Bi(R)))/1);I===T&&T===R?ie=pe=_e:(ie=Di((.4360747*I+.3850649*T+.1430804*R)/xt),pe=Di((.0139322*I+.0971045*T+.7141733*R)/pr));let Xe=116*_e-16;return[Xe<0?0:Xe,500*(ie-_e),200*(_e-pe),X]}function Bi(I){return I<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Di(I){return I>ii?Math.pow(I,1/3):I/Er+br}function ln([I,T,R,X]){let ie=(I+16)/116,pe=isNaN(T)?ie:ie+T/500,_e=isNaN(R)?ie:ie-R/200;return ie=1*qr(ie),pe=xt*qr(pe),_e=pr*qr(_e),[hn(3.1338561*pe-1.6168667*ie-.4906146*_e),hn(-.9787684*pe+1.9161415*ie+.033454*_e),hn(.0719453*pe-.2289914*ie+1.4052427*_e),X]}function hn(I){return(I=I<=.00304?12.92*I:1.055*Math.pow(I,1/2.4)-.055)<0?0:I>1?1:I}function qr(I){return I>cr?I*I*I:Er*(I-br)}function _i(I){return parseInt(I.padEnd(2,I),16)/255}function zi(I,T){return Rt(T?I/100:I,0,1)}function Rt(I,T,R){return Math.min(Math.max(T,I),R)}function _t(I){return!I.some(Number.isNaN)}let qt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Nt{constructor(T,R,X,ie=1,pe=!0){this.r=T,this.g=R,this.b=X,this.a=ie,pe||(this.r*=ie,this.g*=ie,this.b*=ie,ie||this.overwriteGetter("rgb",[T,R,X,ie]))}static parse(T){if(T instanceof Nt)return T;if(typeof T!="string")return;let R=function(X){if((X=X.toLowerCase().trim())==="transparent")return[0,0,0,0];let ie=qt[X];if(ie){let[_e,Xe,ct]=ie;return[_e/255,Xe/255,ct/255,1]}if(X.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(X)){let _e=X.length<6?1:2,Xe=1;return[_i(X.slice(Xe,Xe+=_e)),_i(X.slice(Xe,Xe+=_e)),_i(X.slice(Xe,Xe+=_e)),_i(X.slice(Xe,Xe+_e)||"ff")]}if(X.startsWith("rgb")){let _e=X.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(_e){let[Xe,ct,Et,Yt,hr,Tr,Dr,Jr,li,Gi,fn,Za]=_e,Dn=[Yt||" ",Dr||" ",Gi].join("");if(Dn===" "||Dn===" /"||Dn===",,"||Dn===",,,"){let La=[Et,Tr,li].join(""),So=La==="%%%"?100:La===""?255:0;if(So){let kl=[Rt(+ct/So,0,1),Rt(+hr/So,0,1),Rt(+Jr/So,0,1),fn?zi(+fn,Za):1];if(_t(kl))return kl}}return}}let pe=X.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(pe){let[_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr]=pe,li=[ct||" ",Yt||" ",Tr].join("");if(li===" "||li===" /"||li===",,"||li===",,,"){let Gi=[+Xe,Rt(+Et,0,100),Rt(+hr,0,100),Dr?zi(+Dr,Jr):1];if(_t(Gi))return function([fn,Za,Dn,La]){function So(kl){let mu=(kl+fn/30)%12,Iu=Za*Math.min(Dn,1-Dn);return Dn-Iu*Math.max(-1,Math.min(mu-3,9-mu,1))}return fn=Vr(fn),Za/=100,Dn/=100,[So(0),So(8),So(4),La]}(Gi)}}}(T);return R?new Nt(...R,!1):void 0}get rgb(){let{r:T,g:R,b:X,a:ie}=this,pe=ie||1/0;return this.overwriteGetter("rgb",[T/pe,R/pe,X/pe,ie])}get hcl(){return this.overwriteGetter("hcl",function(T){let[R,X,ie,pe]=Ai(T),_e=Math.sqrt(X*X+ie*ie);return[Math.round(1e4*_e)?Vr(Math.atan2(ie,X)*kr):NaN,_e,R,pe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Ai(this.rgb))}overwriteGetter(T,R){return Object.defineProperty(this,T,{value:R}),R}toString(){let[T,R,X,ie]=this.rgb;return`rgba(${[T,R,X].map(pe=>Math.round(255*pe)).join(",")},${ie})`}}Nt.black=new Nt(0,0,0,1),Nt.white=new Nt(1,1,1,1),Nt.transparent=new Nt(0,0,0,0),Nt.red=new Nt(1,0,0,1);class mr{constructor(T,R,X){this.sensitivity=T?R?"variant":"case":R?"accent":"base",this.locale=X,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(T,R){return this.collator.compare(T,R)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Lr{constructor(T,R,X,ie,pe){this.text=T,this.image=R,this.scale=X,this.fontStack=ie,this.textColor=pe}}class Nr{constructor(T){this.sections=T}static fromString(T){return new Nr([new Lr(T,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(T=>T.text.length!==0||T.image&&T.image.name.length!==0)}static factory(T){return T instanceof Nr?T:Nr.fromString(T)}toString(){return this.sections.length===0?"":this.sections.map(T=>T.text).join("")}}class Fr{constructor(T){this.values=T.slice()}static parse(T){if(T instanceof Fr)return T;if(typeof T=="number")return new Fr([T,T,T,T]);if(Array.isArray(T)&&!(T.length<1||T.length>4)){for(let R of T)if(typeof R!="number")return;switch(T.length){case 1:T=[T[0],T[0],T[0],T[0]];break;case 2:T=[T[0],T[1],T[0],T[1]];break;case 3:T=[T[0],T[1],T[2],T[1]]}return new Fr(T)}}toString(){return JSON.stringify(this.values)}}let Gr=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Hr{constructor(T){this.values=T.slice()}static parse(T){if(T instanceof Hr)return T;if(Array.isArray(T)&&!(T.length<1)&&T.length%2==0){for(let R=0;R=0&&I<=255&&typeof T=="number"&&T>=0&&T<=255&&typeof R=="number"&&R>=0&&R<=255?X===void 0||typeof X=="number"&&X>=0&&X<=1?null:`Invalid rgba value [${[I,T,R,X].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof X=="number"?[I,T,R,X]:[I,T,R]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Vi(I){if(I===null||typeof I=="string"||typeof I=="boolean"||typeof I=="number"||I instanceof Nt||I instanceof mr||I instanceof Nr||I instanceof Fr||I instanceof Hr||I instanceof mi)return!0;if(Array.isArray(I)){for(let T of I)if(!Vi(T))return!1;return!0}if(typeof I=="object"){for(let T in I)if(!Vi(I[T]))return!1;return!0}return!1}function ti(I){if(I===null)return lt;if(typeof I=="string")return Ve;if(typeof I=="boolean")return et;if(typeof I=="number")return We;if(I instanceof Nt)return tt;if(I instanceof mr)return or;if(I instanceof Nr)return yr;if(I instanceof Fr)return vr;if(I instanceof Hr)return Pe;if(I instanceof mi)return Vt;if(Array.isArray(I)){let T=I.length,R;for(let X of I){let ie=ti(X);if(R){if(R===ie)continue;R=jt;break}R=ie}return xe(R||jt,T)}return Lt}function Qi(I){let T=typeof I;return I===null?"":T==="string"||T==="number"||T==="boolean"?String(I):I instanceof Nt||I instanceof Nr||I instanceof Fr||I instanceof Hr||I instanceof mi?I.toString():JSON.stringify(I)}class Yr{constructor(T,R){this.type=T,this.value=R}static parse(T,R){if(T.length!==2)return R.error(`'literal' expression requires exactly one argument, but found ${T.length-1} instead.`);if(!Vi(T[1]))return R.error("invalid value");let X=T[1],ie=ti(X),pe=R.expectedType;return ie.kind!=="array"||ie.N!==0||!pe||pe.kind!=="array"||typeof pe.N=="number"&&pe.N!==0||(ie=pe),new Yr(ie,X)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class oi{constructor(T){this.name="ExpressionEvaluationError",this.message=T}toJSON(){return this.message}}let Fi={string:Ve,number:We,boolean:et,object:Lt};class rn{constructor(T,R){this.type=T,this.args=R}static parse(T,R){if(T.length<2)return R.error("Expected at least one argument.");let X,ie=1,pe=T[0];if(pe==="array"){let Xe,ct;if(T.length>2){let Et=T[1];if(typeof Et!="string"||!(Et in Fi)||Et==="object")return R.error('The item type argument of "array" must be one of string, number, boolean',1);Xe=Fi[Et],ie++}else Xe=jt;if(T.length>3){if(T[2]!==null&&(typeof T[2]!="number"||T[2]<0||T[2]!==Math.floor(T[2])))return R.error('The length argument to "array" must be a positive integer literal',2);ct=T[2],ie++}X=xe(Xe,ct)}else{if(!Fi[pe])throw new Error(`Types doesn't contain name = ${pe}`);X=Fi[pe]}let _e=[];for(;ieT.outputDefined())}}let tn={"to-boolean":et,"to-color":tt,"to-number":We,"to-string":Ve};class Ri{constructor(T,R){this.type=T,this.args=R}static parse(T,R){if(T.length<2)return R.error("Expected at least one argument.");let X=T[0];if(!tn[X])throw new Error(`Can't parse ${X} as it is not part of the known types`);if((X==="to-boolean"||X==="to-string")&&T.length!==2)return R.error("Expected one argument.");let ie=tn[X],pe=[];for(let _e=1;_e4?`Invalid rbga value ${JSON.stringify(R)}: expected an array containing either three or four numeric values.`:Ei(R[0],R[1],R[2],R[3]),!X))return new Nt(R[0]/255,R[1]/255,R[2]/255,R[3])}throw new oi(X||`Could not parse color from value '${typeof R=="string"?R:JSON.stringify(R)}'`)}case"padding":{let R;for(let X of this.args){R=X.evaluate(T);let ie=Fr.parse(R);if(ie)return ie}throw new oi(`Could not parse padding from value '${typeof R=="string"?R:JSON.stringify(R)}'`)}case"variableAnchorOffsetCollection":{let R;for(let X of this.args){R=X.evaluate(T);let ie=Hr.parse(R);if(ie)return ie}throw new oi(`Could not parse variableAnchorOffsetCollection from value '${typeof R=="string"?R:JSON.stringify(R)}'`)}case"number":{let R=null;for(let X of this.args){if(R=X.evaluate(T),R===null)return 0;let ie=Number(R);if(!isNaN(ie))return ie}throw new oi(`Could not convert ${JSON.stringify(R)} to number.`)}case"formatted":return Nr.fromString(Qi(this.args[0].evaluate(T)));case"resolvedImage":return mi.fromString(Qi(this.args[0].evaluate(T)));default:return Qi(this.args[0].evaluate(T))}}eachChild(T){this.args.forEach(T)}outputDefined(){return this.args.every(T=>T.outputDefined())}}let Ii=["Unknown","Point","LineString","Polygon"];class xn{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ii[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(T){let R=this._parseColorCache[T];return R||(R=this._parseColorCache[T]=Nt.parse(T)),R}}class xi{constructor(T,R,X=[],ie,pe=new vt,_e=[]){this.registry=T,this.path=X,this.key=X.map(Xe=>`[${Xe}]`).join(""),this.scope=pe,this.errors=_e,this.expectedType=ie,this._isConstant=R}parse(T,R,X,ie,pe={}){return R?this.concat(R,X,ie)._parse(T,pe):this._parse(T,pe)}_parse(T,R){function X(ie,pe,_e){return _e==="assert"?new rn(pe,[ie]):_e==="coerce"?new Ri(pe,[ie]):ie}if(T!==null&&typeof T!="string"&&typeof T!="boolean"&&typeof T!="number"||(T=["literal",T]),Array.isArray(T)){if(T.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let ie=T[0];if(typeof ie!="string")return this.error(`Expression name must be a string, but found ${typeof ie} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let pe=this.registry[ie];if(pe){let _e=pe.parse(T,this);if(!_e)return null;if(this.expectedType){let Xe=this.expectedType,ct=_e.type;if(Xe.kind!=="string"&&Xe.kind!=="number"&&Xe.kind!=="boolean"&&Xe.kind!=="object"&&Xe.kind!=="array"||ct.kind!=="value")if(Xe.kind!=="color"&&Xe.kind!=="formatted"&&Xe.kind!=="resolvedImage"||ct.kind!=="value"&&ct.kind!=="string")if(Xe.kind!=="padding"||ct.kind!=="value"&&ct.kind!=="number"&&ct.kind!=="array")if(Xe.kind!=="variableAnchorOffsetCollection"||ct.kind!=="value"&&ct.kind!=="array"){if(this.checkSubtype(Xe,ct))return null}else _e=X(_e,Xe,R.typeAnnotation||"coerce");else _e=X(_e,Xe,R.typeAnnotation||"coerce");else _e=X(_e,Xe,R.typeAnnotation||"coerce");else _e=X(_e,Xe,R.typeAnnotation||"assert")}if(!(_e instanceof Yr)&&_e.type.kind!=="resolvedImage"&&this._isConstant(_e)){let Xe=new xn;try{_e=new Yr(_e.type,_e.evaluate(Xe))}catch(ct){return this.error(ct.message),null}}return _e}return this.error(`Unknown expression "${ie}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(T===void 0?"'undefined' value invalid. Use null instead.":typeof T=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof T} instead.`)}concat(T,R,X){let ie=typeof T=="number"?this.path.concat(T):this.path,pe=X?this.scope.concat(X):this.scope;return new xi(this.registry,this._isConstant,ie,R||null,pe,this.errors)}error(T,...R){let X=`${this.key}${R.map(ie=>`[${ie}]`).join("")}`;this.errors.push(new Ne(X,T))}checkSubtype(T,R){let X=Re(T,R);return X&&this.error(X),X}}class Xr{constructor(T,R){this.type=R.type,this.bindings=[].concat(T),this.result=R}evaluate(T){return this.result.evaluate(T)}eachChild(T){for(let R of this.bindings)T(R[1]);T(this.result)}static parse(T,R){if(T.length<4)return R.error(`Expected at least 3 arguments, but found ${T.length-1} instead.`);let X=[];for(let pe=1;pe=X.length)throw new oi(`Array index out of bounds: ${R} > ${X.length-1}.`);if(R!==Math.floor(R))throw new oi(`Array index must be an integer, but found ${R} instead.`);return X[R]}eachChild(T){T(this.index),T(this.input)}outputDefined(){return!1}}class fr{constructor(T,R){this.type=et,this.needle=T,this.haystack=R}static parse(T,R){if(T.length!==3)return R.error(`Expected 2 arguments, but found ${T.length-1} instead.`);let X=R.parse(T[1],1,jt),ie=R.parse(T[2],2,jt);return X&&ie?ht(X.type,[et,Ve,We,lt,jt])?new fr(X,ie):R.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`):null}evaluate(T){let R=this.needle.evaluate(T),X=this.haystack.evaluate(T);if(!X)return!1;if(!st(R,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(R))} instead.`);if(!st(X,["string","array"]))throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`);return X.indexOf(R)>=0}eachChild(T){T(this.needle),T(this.haystack)}outputDefined(){return!0}}class gr{constructor(T,R,X){this.type=We,this.needle=T,this.haystack=R,this.fromIndex=X}static parse(T,R){if(T.length<=2||T.length>=5)return R.error(`Expected 3 or 4 arguments, but found ${T.length-1} instead.`);let X=R.parse(T[1],1,jt),ie=R.parse(T[2],2,jt);if(!X||!ie)return null;if(!ht(X.type,[et,Ve,We,lt,jt]))return R.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`);if(T.length===4){let pe=R.parse(T[3],3,We);return pe?new gr(X,ie,pe):null}return new gr(X,ie)}evaluate(T){let R=this.needle.evaluate(T),X=this.haystack.evaluate(T);if(!st(R,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(R))} instead.`);let ie;if(this.fromIndex&&(ie=this.fromIndex.evaluate(T)),st(X,["string"])){let pe=X.indexOf(R,ie);return pe===-1?-1:[...X.slice(0,pe)].length}if(st(X,["array"]))return X.indexOf(R,ie);throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`)}eachChild(T){T(this.needle),T(this.haystack),this.fromIndex&&T(this.fromIndex)}outputDefined(){return!1}}class Zr{constructor(T,R,X,ie,pe,_e){this.inputType=T,this.type=R,this.input=X,this.cases=ie,this.outputs=pe,this.otherwise=_e}static parse(T,R){if(T.length<5)return R.error(`Expected at least 4 arguments, but found only ${T.length-1}.`);if(T.length%2!=1)return R.error("Expected an even number of arguments.");let X,ie;R.expectedType&&R.expectedType.kind!=="value"&&(ie=R.expectedType);let pe={},_e=[];for(let Et=2;EtNumber.MAX_SAFE_INTEGER)return Tr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Jr=="number"&&Math.floor(Jr)!==Jr)return Tr.error("Numeric branch labels must be integer values.");if(X){if(Tr.checkSubtype(X,ti(Jr)))return null}else X=ti(Jr);if(pe[String(Jr)]!==void 0)return Tr.error("Branch labels must be unique.");pe[String(Jr)]=_e.length}let Dr=R.parse(hr,Et,ie);if(!Dr)return null;ie=ie||Dr.type,_e.push(Dr)}let Xe=R.parse(T[1],1,jt);if(!Xe)return null;let ct=R.parse(T[T.length-1],T.length-1,ie);return ct?Xe.type.kind!=="value"&&R.concat(1).checkSubtype(X,Xe.type)?null:new Zr(X,ie,Xe,pe,_e,ct):null}evaluate(T){let R=this.input.evaluate(T);return(ti(R)===this.inputType&&this.outputs[this.cases[R]]||this.otherwise).evaluate(T)}eachChild(T){T(this.input),this.outputs.forEach(T),T(this.otherwise)}outputDefined(){return this.outputs.every(T=>T.outputDefined())&&this.otherwise.outputDefined()}}class wi{constructor(T,R,X){this.type=T,this.branches=R,this.otherwise=X}static parse(T,R){if(T.length<4)return R.error(`Expected at least 3 arguments, but found only ${T.length-1}.`);if(T.length%2!=0)return R.error("Expected an odd number of arguments.");let X;R.expectedType&&R.expectedType.kind!=="value"&&(X=R.expectedType);let ie=[];for(let _e=1;_eR.outputDefined())&&this.otherwise.outputDefined()}}class $i{constructor(T,R,X,ie){this.type=T,this.input=R,this.beginIndex=X,this.endIndex=ie}static parse(T,R){if(T.length<=2||T.length>=5)return R.error(`Expected 3 or 4 arguments, but found ${T.length-1} instead.`);let X=R.parse(T[1],1,jt),ie=R.parse(T[2],2,We);if(!X||!ie)return null;if(!ht(X.type,[xe(jt),Ve,jt]))return R.error(`Expected first argument to be of type array or string, but found ${Oe(X.type)} instead`);if(T.length===4){let pe=R.parse(T[3],3,We);return pe?new $i(X.type,X,ie,pe):null}return new $i(X.type,X,ie)}evaluate(T){let R=this.input.evaluate(T),X=this.beginIndex.evaluate(T),ie;if(this.endIndex&&(ie=this.endIndex.evaluate(T)),st(R,["string"]))return[...R].slice(X,ie).join("");if(st(R,["array"]))return R.slice(X,ie);throw new oi(`Expected first argument to be of type array or string, but found ${Oe(ti(R))} instead.`)}eachChild(T){T(this.input),T(this.beginIndex),this.endIndex&&T(this.endIndex)}outputDefined(){return!1}}function ni(I,T){let R=I.length-1,X,ie,pe=0,_e=R,Xe=0;for(;pe<=_e;)if(Xe=Math.floor((pe+_e)/2),X=I[Xe],ie=I[Xe+1],X<=T){if(Xe===R||TT))throw new oi("Input is not a number.");_e=Xe-1}return 0}class Xi{constructor(T,R,X){this.type=T,this.input=R,this.labels=[],this.outputs=[];for(let[ie,pe]of X)this.labels.push(ie),this.outputs.push(pe)}static parse(T,R){if(T.length-1<4)return R.error(`Expected at least 4 arguments, but found only ${T.length-1}.`);if((T.length-1)%2!=0)return R.error("Expected an even number of arguments.");let X=R.parse(T[1],1,We);if(!X)return null;let ie=[],pe=null;R.expectedType&&R.expectedType.kind!=="value"&&(pe=R.expectedType);for(let _e=1;_e=Xe)return R.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Et);let hr=R.parse(ct,Yt,pe);if(!hr)return null;pe=pe||hr.type,ie.push([Xe,hr])}return new Xi(pe,X,ie)}evaluate(T){let R=this.labels,X=this.outputs;if(R.length===1)return X[0].evaluate(T);let ie=this.input.evaluate(T);if(ie<=R[0])return X[0].evaluate(T);let pe=R.length;return ie>=R[pe-1]?X[pe-1].evaluate(T):X[ni(R,ie)].evaluate(T)}eachChild(T){T(this.input);for(let R of this.outputs)T(R)}outputDefined(){return this.outputs.every(T=>T.outputDefined())}}function aa(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}var Mn=Un;function Un(I,T,R,X){this.cx=3*I,this.bx=3*(R-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*T,this.by=3*(X-T)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=T,this.p2x=R,this.p2y=X}Un.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,T){if(T===void 0&&(T=1e-6),I<0)return 0;if(I>1)return 1;for(var R=I,X=0;X<8;X++){var ie=this.sampleCurveX(R)-I;if(Math.abs(ie)ie?_e=R:Xe=R,R=.5*(Xe-_e)+_e;return R},solve:function(I,T){return this.sampleCurveY(this.solveCurveX(I,T))}};var Ga=aa(Mn);function ma(I,T,R){return I+R*(T-I)}function oa(I,T,R){return I.map((X,ie)=>ma(X,T[ie],R))}let ka={number:ma,color:function(I,T,R,X="rgb"){switch(X){case"rgb":{let[ie,pe,_e,Xe]=oa(I.rgb,T.rgb,R);return new Nt(ie,pe,_e,Xe,!1)}case"hcl":{let[ie,pe,_e,Xe]=I.hcl,[ct,Et,Yt,hr]=T.hcl,Tr,Dr;if(isNaN(ie)||isNaN(ct))isNaN(ie)?isNaN(ct)?Tr=NaN:(Tr=ct,_e!==1&&_e!==0||(Dr=Et)):(Tr=ie,Yt!==1&&Yt!==0||(Dr=pe));else{let Za=ct-ie;ct>ie&&Za>180?Za-=360:ct180&&(Za+=360),Tr=ie+R*Za}let[Jr,li,Gi,fn]=function([Za,Dn,La,So]){return Za=isNaN(Za)?0:Za*jr,ln([La,Math.cos(Za)*Dn,Math.sin(Za)*Dn,So])}([Tr,Dr!=null?Dr:ma(pe,Et,R),ma(_e,Yt,R),ma(Xe,hr,R)]);return new Nt(Jr,li,Gi,fn,!1)}case"lab":{let[ie,pe,_e,Xe]=ln(oa(I.lab,T.lab,R));return new Nt(ie,pe,_e,Xe,!1)}}},array:oa,padding:function(I,T,R){return new Fr(oa(I.values,T.values,R))},variableAnchorOffsetCollection:function(I,T,R){let X=I.values,ie=T.values;if(X.length!==ie.length)throw new oi(`Cannot interpolate values of different length. from: ${I.toString()}, to: ${T.toString()}`);let pe=[];for(let _e=0;_etypeof Yt!="number"||Yt<0||Yt>1))return R.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ie={name:"cubic-bezier",controlPoints:Et}}}if(T.length-1<4)return R.error(`Expected at least 4 arguments, but found only ${T.length-1}.`);if((T.length-1)%2!=0)return R.error("Expected an even number of arguments.");if(pe=R.parse(pe,2,We),!pe)return null;let Xe=[],ct=null;X==="interpolate-hcl"||X==="interpolate-lab"?ct=tt:R.expectedType&&R.expectedType.kind!=="value"&&(ct=R.expectedType);for(let Et=0;Et<_e.length;Et+=2){let Yt=_e[Et],hr=_e[Et+1],Tr=Et+3,Dr=Et+4;if(typeof Yt!="number")return R.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',Tr);if(Xe.length&&Xe[Xe.length-1][0]>=Yt)return R.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Tr);let Jr=R.parse(hr,Dr,ct);if(!Jr)return null;ct=ct||Jr.type,Xe.push([Yt,Jr])}return gt(ct,We)||gt(ct,tt)||gt(ct,vr)||gt(ct,Pe)||gt(ct,xe(We))?new so(ct,X,ie,pe,Xe):R.error(`Type ${Oe(ct)} is not interpolatable.`)}evaluate(T){let R=this.labels,X=this.outputs;if(R.length===1)return X[0].evaluate(T);let ie=this.input.evaluate(T);if(ie<=R[0])return X[0].evaluate(T);let pe=R.length;if(ie>=R[pe-1])return X[pe-1].evaluate(T);let _e=ni(R,ie),Xe=so.interpolationFactor(this.interpolation,ie,R[_e],R[_e+1]),ct=X[_e].evaluate(T),Et=X[_e+1].evaluate(T);switch(this.operator){case"interpolate":return ka[this.type.kind](ct,Et,Xe);case"interpolate-hcl":return ka.color(ct,Et,Xe,"hcl");case"interpolate-lab":return ka.color(ct,Et,Xe,"lab")}}eachChild(T){T(this.input);for(let R of this.outputs)T(R)}outputDefined(){return this.outputs.every(T=>T.outputDefined())}}function Kr(I,T,R,X){let ie=X-R,pe=I-R;return ie===0?0:T===1?pe/ie:(Math.pow(T,pe)-1)/(Math.pow(T,ie)-1)}class Ia{constructor(T,R){this.type=T,this.args=R}static parse(T,R){if(T.length<2)return R.error("Expectected at least one argument.");let X=null,ie=R.expectedType;ie&&ie.kind!=="value"&&(X=ie);let pe=[];for(let Xe of T.slice(1)){let ct=R.parse(Xe,1+pe.length,X,void 0,{typeAnnotation:"omit"});if(!ct)return null;X=X||ct.type,pe.push(ct)}if(!X)throw new Error("No output type");let _e=ie&&pe.some(Xe=>Re(ie,Xe.type));return new Ia(_e?jt:X,pe)}evaluate(T){let R,X=null,ie=0;for(let pe of this.args)if(ie++,X=pe.evaluate(T),X&&X instanceof mi&&!X.available&&(R||(R=X.name),X=null,ie===this.args.length&&(X=R)),X!==null)break;return X}eachChild(T){this.args.forEach(T)}outputDefined(){return this.args.every(T=>T.outputDefined())}}function Yo(I,T){return I==="=="||I==="!="?T.kind==="boolean"||T.kind==="string"||T.kind==="number"||T.kind==="null"||T.kind==="value":T.kind==="string"||T.kind==="number"||T.kind==="value"}function fa(I,T,R,X){return X.compare(T,R)===0}function kn(I,T,R){let X=I!=="=="&&I!=="!=";return class eje{constructor(pe,_e,Xe){this.type=et,this.lhs=pe,this.rhs=_e,this.collator=Xe,this.hasUntypedArgument=pe.type.kind==="value"||_e.type.kind==="value"}static parse(pe,_e){if(pe.length!==3&&pe.length!==4)return _e.error("Expected two or three arguments.");let Xe=pe[0],ct=_e.parse(pe[1],1,jt);if(!ct)return null;if(!Yo(Xe,ct.type))return _e.concat(1).error(`"${Xe}" comparisons are not supported for type '${Oe(ct.type)}'.`);let Et=_e.parse(pe[2],2,jt);if(!Et)return null;if(!Yo(Xe,Et.type))return _e.concat(2).error(`"${Xe}" comparisons are not supported for type '${Oe(Et.type)}'.`);if(ct.type.kind!==Et.type.kind&&ct.type.kind!=="value"&&Et.type.kind!=="value")return _e.error(`Cannot compare types '${Oe(ct.type)}' and '${Oe(Et.type)}'.`);X&&(ct.type.kind==="value"&&Et.type.kind!=="value"?ct=new rn(Et.type,[ct]):ct.type.kind!=="value"&&Et.type.kind==="value"&&(Et=new rn(ct.type,[Et])));let Yt=null;if(pe.length===4){if(ct.type.kind!=="string"&&Et.type.kind!=="string"&&ct.type.kind!=="value"&&Et.type.kind!=="value")return _e.error("Cannot use collator to compare non-string types.");if(Yt=_e.parse(pe[3],3,or),!Yt)return null}return new eje(ct,Et,Yt)}evaluate(pe){let _e=this.lhs.evaluate(pe),Xe=this.rhs.evaluate(pe);if(X&&this.hasUntypedArgument){let ct=ti(_e),Et=ti(Xe);if(ct.kind!==Et.kind||ct.kind!=="string"&&ct.kind!=="number")throw new oi(`Expected arguments for "${I}" to be (string, string) or (number, number), but found (${ct.kind}, ${Et.kind}) instead.`)}if(this.collator&&!X&&this.hasUntypedArgument){let ct=ti(_e),Et=ti(Xe);if(ct.kind!=="string"||Et.kind!=="string")return T(pe,_e,Xe)}return this.collator?R(pe,_e,Xe,this.collator.evaluate(pe)):T(pe,_e,Xe)}eachChild(pe){pe(this.lhs),pe(this.rhs),this.collator&&pe(this.collator)}outputDefined(){return!0}}}let Ta=kn("==",function(I,T,R){return T===R},fa),ys=kn("!=",function(I,T,R){return T!==R},function(I,T,R,X){return!fa(0,T,R,X)}),uo=kn("<",function(I,T,R){return T",function(I,T,R){return T>R},function(I,T,R,X){return X.compare(T,R)>0}),$a=kn("<=",function(I,T,R){return T<=R},function(I,T,R,X){return X.compare(T,R)<=0}),fo=kn(">=",function(I,T,R){return T>=R},function(I,T,R,X){return X.compare(T,R)>=0});class mn{constructor(T,R,X){this.type=or,this.locale=X,this.caseSensitive=T,this.diacriticSensitive=R}static parse(T,R){if(T.length!==2)return R.error("Expected one argument.");let X=T[1];if(typeof X!="object"||Array.isArray(X))return R.error("Collator options argument must be an object.");let ie=R.parse(X["case-sensitive"]!==void 0&&X["case-sensitive"],1,et);if(!ie)return null;let pe=R.parse(X["diacritic-sensitive"]!==void 0&&X["diacritic-sensitive"],1,et);if(!pe)return null;let _e=null;return X.locale&&(_e=R.parse(X.locale,1,Ve),!_e)?null:new mn(ie,pe,_e)}evaluate(T){return new mr(this.caseSensitive.evaluate(T),this.diacriticSensitive.evaluate(T),this.locale?this.locale.evaluate(T):null)}eachChild(T){T(this.caseSensitive),T(this.diacriticSensitive),this.locale&&T(this.locale)}outputDefined(){return!1}}class ra{constructor(T,R,X,ie,pe){this.type=Ve,this.number=T,this.locale=R,this.currency=X,this.minFractionDigits=ie,this.maxFractionDigits=pe}static parse(T,R){if(T.length!==3)return R.error("Expected two arguments.");let X=R.parse(T[1],1,We);if(!X)return null;let ie=T[2];if(typeof ie!="object"||Array.isArray(ie))return R.error("NumberFormat options argument must be an object.");let pe=null;if(ie.locale&&(pe=R.parse(ie.locale,1,Ve),!pe))return null;let _e=null;if(ie.currency&&(_e=R.parse(ie.currency,1,Ve),!_e))return null;let Xe=null;if(ie["min-fraction-digits"]&&(Xe=R.parse(ie["min-fraction-digits"],1,We),!Xe))return null;let ct=null;return ie["max-fraction-digits"]&&(ct=R.parse(ie["max-fraction-digits"],1,We),!ct)?null:new ra(X,pe,_e,Xe,ct)}evaluate(T){return new Intl.NumberFormat(this.locale?this.locale.evaluate(T):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(T):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(T):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(T):void 0}).format(this.number.evaluate(T))}eachChild(T){T(this.number),this.locale&&T(this.locale),this.currency&&T(this.currency),this.minFractionDigits&&T(this.minFractionDigits),this.maxFractionDigits&&T(this.maxFractionDigits)}outputDefined(){return!1}}class wa{constructor(T){this.type=yr,this.sections=T}static parse(T,R){if(T.length<2)return R.error("Expected at least one argument.");let X=T[1];if(!Array.isArray(X)&&typeof X=="object")return R.error("First argument must be an image or text section.");let ie=[],pe=!1;for(let _e=1;_e<=T.length-1;++_e){let Xe=T[_e];if(pe&&typeof Xe=="object"&&!Array.isArray(Xe)){pe=!1;let ct=null;if(Xe["font-scale"]&&(ct=R.parse(Xe["font-scale"],1,We),!ct))return null;let Et=null;if(Xe["text-font"]&&(Et=R.parse(Xe["text-font"],1,xe(Ve)),!Et))return null;let Yt=null;if(Xe["text-color"]&&(Yt=R.parse(Xe["text-color"],1,tt),!Yt))return null;let hr=ie[ie.length-1];hr.scale=ct,hr.font=Et,hr.textColor=Yt}else{let ct=R.parse(T[_e],1,jt);if(!ct)return null;let Et=ct.type.kind;if(Et!=="string"&&Et!=="value"&&Et!=="null"&&Et!=="resolvedImage")return R.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");pe=!0,ie.push({content:ct,scale:null,font:null,textColor:null})}}return new wa(ie)}evaluate(T){return new Nr(this.sections.map(R=>{let X=R.content.evaluate(T);return ti(X)===Vt?new Lr("",X,null,null,null):new Lr(Qi(X),null,R.scale?R.scale.evaluate(T):null,R.font?R.font.evaluate(T).join(","):null,R.textColor?R.textColor.evaluate(T):null)}))}eachChild(T){for(let R of this.sections)T(R.content),R.scale&&T(R.scale),R.font&&T(R.font),R.textColor&&T(R.textColor)}outputDefined(){return!1}}class ws{constructor(T){this.type=Vt,this.input=T}static parse(T,R){if(T.length!==2)return R.error("Expected two arguments.");let X=R.parse(T[1],1,Ve);return X?new ws(X):R.error("No image name provided.")}evaluate(T){let R=this.input.evaluate(T),X=mi.fromString(R);return X&&T.availableImages&&(X.available=T.availableImages.indexOf(R)>-1),X}eachChild(T){T(this.input)}outputDefined(){return!1}}class Co{constructor(T){this.type=We,this.input=T}static parse(T,R){if(T.length!==2)return R.error(`Expected 1 argument, but found ${T.length-1} instead.`);let X=R.parse(T[1],1);return X?X.type.kind!=="array"&&X.type.kind!=="string"&&X.type.kind!=="value"?R.error(`Expected argument of type string or array, but found ${Oe(X.type)} instead.`):new Co(X):null}evaluate(T){let R=this.input.evaluate(T);if(typeof R=="string")return[...R].length;if(Array.isArray(R))return R.length;throw new oi(`Expected value to be of type string or array, but found ${Oe(ti(R))} instead.`)}eachChild(T){T(this.input)}outputDefined(){return!1}}let Po=8192;function Wi(I,T){let R=(180+I[0])/360,X=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I[1]*Math.PI/360)))/360,ie=Math.pow(2,T.z);return[Math.round(R*ie*Po),Math.round(X*ie*Po)]}function gn(I,T){let R=Math.pow(2,T.z);return[(ie=(I[0]/Po+T.x)/R,360*ie-180),(X=(I[1]/Po+T.y)/R,360/Math.PI*Math.atan(Math.exp((180-360*X)*Math.PI/180))-90)];var X,ie}function Ps(I,T){I[0]=Math.min(I[0],T[0]),I[1]=Math.min(I[1],T[1]),I[2]=Math.max(I[2],T[0]),I[3]=Math.max(I[3],T[1])}function Ha(I,T){return!(I[0]<=T[0]||I[2]>=T[2]||I[1]<=T[1]||I[3]>=T[3])}function Sn(I,T,R){let X=I[0]-T[0],ie=I[1]-T[1],pe=I[0]-R[0],_e=I[1]-R[1];return X*_e-pe*ie==0&&X*pe<=0&&ie*_e<=0}function ao(I,T,R,X){return(ie=[X[0]-R[0],X[1]-R[1]])[0]*(pe=[T[0]-I[0],T[1]-I[1]])[1]-ie[1]*pe[0]!=0&&!(!Qa(I,T,R,X)||!Qa(R,X,I,T));var ie,pe}function Oa(I,T,R){for(let X of R)for(let ie=0;ie(ie=I)[1]!=(_e=Xe[ct+1])[1]>ie[1]&&ie[0]<(_e[0]-pe[0])*(ie[1]-pe[1])/(_e[1]-pe[1])+pe[0]&&(X=!X)}var ie,pe,_e;return X}function Qo(I,T){for(let R of T)if(Ko(I,R))return!0;return!1}function Hi(I,T){for(let R of I)if(!Ko(R,T))return!1;for(let R=0;R0&&Xe<0||_e<0&&Xe>0}function vn(I,T,R){let X=[];for(let ie=0;ieR[2]){let ie=.5*X,pe=I[0]-R[0]>ie?-X:R[0]-I[0]>ie?X:0;pe===0&&(pe=I[0]-R[2]>ie?-X:R[2]-I[0]>ie?X:0),I[0]+=pe}Ps(T,I)}function vo(I,T,R,X){let ie=Math.pow(2,X.z)*Po,pe=[X.x*Po,X.y*Po],_e=[];for(let Xe of I)for(let ct of Xe){let Et=[ct.x+pe[0],ct.y+pe[1]];la(Et,T,R,ie),_e.push(Et)}return _e}function As(I,T,R,X){let ie=Math.pow(2,X.z)*Po,pe=[X.x*Po,X.y*Po],_e=[];for(let ct of I){let Et=[];for(let Yt of ct){let hr=[Yt.x+pe[0],Yt.y+pe[1]];Ps(T,hr),Et.push(hr)}_e.push(Et)}if(T[2]-T[0]<=ie/2){(Xe=T)[0]=Xe[1]=1/0,Xe[2]=Xe[3]=-1/0;for(let ct of _e)for(let Et of ct)la(Et,T,R,ie)}var Xe;return _e}class ps{constructor(T,R){this.type=et,this.geojson=T,this.geometries=R}static parse(T,R){if(T.length!==2)return R.error(`'within' expression requires exactly one argument, but found ${T.length-1} instead.`);if(Vi(T[1])){let X=T[1];if(X.type==="FeatureCollection"){let ie=[];for(let pe of X.features){let{type:_e,coordinates:Xe}=pe.geometry;_e==="Polygon"&&ie.push(Xe),_e==="MultiPolygon"&&ie.push(...Xe)}if(ie.length)return new ps(X,{type:"MultiPolygon",coordinates:ie})}else if(X.type==="Feature"){let ie=X.geometry.type;if(ie==="Polygon"||ie==="MultiPolygon")return new ps(X,X.geometry)}else if(X.type==="Polygon"||X.type==="MultiPolygon")return new ps(X,X)}return R.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(T){if(T.geometry()!=null&&T.canonicalID()!=null){if(T.geometryType()==="Point")return function(R,X){let ie=[1/0,1/0,-1/0,-1/0],pe=[1/0,1/0,-1/0,-1/0],_e=R.canonicalID();if(X.type==="Polygon"){let Xe=vn(X.coordinates,pe,_e),ct=vo(R.geometry(),ie,pe,_e);if(!Ha(ie,pe))return!1;for(let Et of ct)if(!Ko(Et,Xe))return!1}if(X.type==="MultiPolygon"){let Xe=da(X.coordinates,pe,_e),ct=vo(R.geometry(),ie,pe,_e);if(!Ha(ie,pe))return!1;for(let Et of ct)if(!Qo(Et,Xe))return!1}return!0}(T,this.geometries);if(T.geometryType()==="LineString")return function(R,X){let ie=[1/0,1/0,-1/0,-1/0],pe=[1/0,1/0,-1/0,-1/0],_e=R.canonicalID();if(X.type==="Polygon"){let Xe=vn(X.coordinates,pe,_e),ct=As(R.geometry(),ie,pe,_e);if(!Ha(ie,pe))return!1;for(let Et of ct)if(!Hi(Et,Xe))return!1}if(X.type==="MultiPolygon"){let Xe=da(X.coordinates,pe,_e),ct=As(R.geometry(),ie,pe,_e);if(!Ha(ie,pe))return!1;for(let Et of ct)if(!Sa(Et,Xe))return!1}return!0}(T,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let co=class{constructor(I=[],T=(R,X)=>RX?1:0){if(this.data=I,this.length=this.data.length,this.compare=T,this.length>0)for(let R=(this.length>>1)-1;R>=0;R--)this._down(R)}push(I){this.data.push(I),this._up(this.length++)}pop(){if(this.length===0)return;let I=this.data[0],T=this.data.pop();return--this.length>0&&(this.data[0]=T,this._down(0)),I}peek(){return this.data[0]}_up(I){let{data:T,compare:R}=this,X=T[I];for(;I>0;){let ie=I-1>>1,pe=T[ie];if(R(X,pe)>=0)break;T[I]=pe,I=ie}T[I]=X}_down(I){let{data:T,compare:R}=this,X=this.length>>1,ie=T[I];for(;I=0)break;T[I]=T[pe],I=pe}T[I]=ie}};function mo(I,T,R,X,ie){No(I,T,R,X||I.length-1,ie||Go)}function No(I,T,R,X,ie){for(;X>R;){if(X-R>600){var pe=X-R+1,_e=T-R+1,Xe=Math.log(pe),ct=.5*Math.exp(2*Xe/3),Et=.5*Math.sqrt(Xe*ct*(pe-ct)/pe)*(_e-pe/2<0?-1:1);No(I,T,Math.max(R,Math.floor(T-_e*ct/pe+Et)),Math.min(X,Math.floor(T+(pe-_e)*ct/pe+Et)),ie)}var Yt=I[T],hr=R,Tr=X;for(jn(I,R,T),ie(I[X],Yt)>0&&jn(I,R,X);hr0;)Tr--}ie(I[R],Yt)===0?jn(I,R,Tr):jn(I,++Tr,X),Tr<=T&&(R=Tr+1),T<=Tr&&(X=Tr-1)}}function jn(I,T,R){var X=I[T];I[T]=I[R],I[R]=X}function Go(I,T){return IT?1:0}function Ys(I,T){if(I.length<=1)return[I];let R=[],X,ie;for(let pe of I){let _e=Ns(pe);_e!==0&&(pe.area=Math.abs(_e),ie===void 0&&(ie=_e<0),ie===_e<0?(X&&R.push(X),X=[pe]):X.push(pe))}if(X&&R.push(X),T>1)for(let pe=0;pe1?(Et=T[ct+1][0],Yt=T[ct+1][1]):Dr>0&&(Et+=hr/this.kx*Dr,Yt+=Tr/this.ky*Dr)),hr=this.wrap(R[0]-Et)*this.kx,Tr=(R[1]-Yt)*this.ky;let Jr=hr*hr+Tr*Tr;Jr180;)T-=360;return T}}function _n(I,T){return T[0]-I[0]}function Vn(I){return I[1]-I[0]+1}function wo(I,T){return I[1]>=I[0]&&I[1]I[1])return[null,null];let R=Vn(I);if(T){if(R===2)return[I,null];let ie=Math.floor(R/2);return[[I[0],I[0]+ie],[I[0]+ie,I[1]]]}if(R===1)return[I,null];let X=Math.floor(R/2)-1;return[[I[0],I[0]+X],[I[0]+X+1,I[1]]]}function Xn(I,T){if(!wo(T,I.length))return[1/0,1/0,-1/0,-1/0];let R=[1/0,1/0,-1/0,-1/0];for(let X=T[0];X<=T[1];++X)Ps(R,I[X]);return R}function sn(I){let T=[1/0,1/0,-1/0,-1/0];for(let R of I)for(let X of R)Ps(T,X);return T}function $n(I){return I[0]!==-1/0&&I[1]!==-1/0&&I[2]!==1/0&&I[3]!==1/0}function Ka(I,T,R){if(!$n(I)||!$n(T))return NaN;let X=0,ie=0;return I[2]T[2]&&(X=I[0]-T[2]),I[1]>T[3]&&(ie=I[1]-T[3]),I[3]=X)return X;if(Ha(ie,pe)){if(es(I,T))return 0}else if(es(T,I))return 0;let _e=1/0;for(let Xe of I)for(let ct=0,Et=Xe.length,Yt=Et-1;ct0;){let ct=_e.pop();if(ct[0]>=pe)continue;let Et=ct[1],Yt=T?50:100;if(Vn(Et)<=Yt){if(!wo(Et,I.length))return NaN;if(T){let hr=sa(I,Et,R,X);if(isNaN(hr)||hr===0)return hr;pe=Math.min(pe,hr)}else for(let hr=Et[0];hr<=Et[1];++hr){let Tr=eo(I[hr],R,X);if(pe=Math.min(pe,Tr),pe===0)return 0}}else{let hr=Da(Et,T);en(_e,pe,X,I,Xe,hr[0]),en(_e,pe,X,I,Xe,hr[1])}}return pe}function yo(I,T,R,X,ie,pe=1/0){let _e=Math.min(pe,ie.distance(I[0],R[0]));if(_e===0)return _e;let Xe=new co([[0,[0,I.length-1],[0,R.length-1]]],_n);for(;Xe.length>0;){let ct=Xe.pop();if(ct[0]>=_e)continue;let Et=ct[1],Yt=ct[2],hr=T?50:100,Tr=X?50:100;if(Vn(Et)<=hr&&Vn(Yt)<=Tr){if(!wo(Et,I.length)&&wo(Yt,R.length))return NaN;let Dr;if(T&&X)Dr=Ja(I,Et,R,Yt,ie),_e=Math.min(_e,Dr);else if(T&&!X){let Jr=I.slice(Et[0],Et[1]+1);for(let li=Yt[0];li<=Yt[1];++li)if(Dr=qn(R[li],Jr,ie),_e=Math.min(_e,Dr),_e===0)return _e}else if(!T&&X){let Jr=R.slice(Yt[0],Yt[1]+1);for(let li=Et[0];li<=Et[1];++li)if(Dr=qn(I[li],Jr,ie),_e=Math.min(_e,Dr),_e===0)return _e}else Dr=lo(I,Et,R,Yt,ie),_e=Math.min(_e,Dr)}else{let Dr=Da(Et,T),Jr=Da(Yt,X);Pa(Xe,_e,ie,I,R,Dr[0],Jr[0]),Pa(Xe,_e,ie,I,R,Dr[0],Jr[1]),Pa(Xe,_e,ie,I,R,Dr[1],Jr[0]),Pa(Xe,_e,ie,I,R,Dr[1],Jr[1])}}return _e}function Jo(I){return I.type==="MultiPolygon"?I.coordinates.map(T=>({type:"Polygon",coordinates:T})):I.type==="MultiLineString"?I.coordinates.map(T=>({type:"LineString",coordinates:T})):I.type==="MultiPoint"?I.coordinates.map(T=>({type:"Point",coordinates:T})):[I]}class Ao{constructor(T,R){this.type=We,this.geojson=T,this.geometries=R}static parse(T,R){if(T.length!==2)return R.error(`'distance' expression requires exactly one argument, but found ${T.length-1} instead.`);if(Vi(T[1])){let X=T[1];if(X.type==="FeatureCollection")return new Ao(X,X.features.map(ie=>Jo(ie.geometry)).flat());if(X.type==="Feature")return new Ao(X,Jo(X.geometry));if("type"in X&&"coordinates"in X)return new Ao(X,Jo(X))}return R.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(T){if(T.geometry()!=null&&T.canonicalID()!=null){if(T.geometryType()==="Point")return function(R,X){let ie=R.geometry(),pe=ie.flat().map(ct=>gn([ct.x,ct.y],R.canonical));if(ie.length===0)return NaN;let _e=new Ya(pe[0][1]),Xe=1/0;for(let ct of X){switch(ct.type){case"Point":Xe=Math.min(Xe,yo(pe,!1,[ct.coordinates],!1,_e,Xe));break;case"LineString":Xe=Math.min(Xe,yo(pe,!1,ct.coordinates,!0,_e,Xe));break;case"Polygon":Xe=Math.min(Xe,to(pe,!1,ct.coordinates,_e,Xe))}if(Xe===0)return Xe}return Xe}(T,this.geometries);if(T.geometryType()==="LineString")return function(R,X){let ie=R.geometry(),pe=ie.flat().map(ct=>gn([ct.x,ct.y],R.canonical));if(ie.length===0)return NaN;let _e=new Ya(pe[0][1]),Xe=1/0;for(let ct of X){switch(ct.type){case"Point":Xe=Math.min(Xe,yo(pe,!0,[ct.coordinates],!1,_e,Xe));break;case"LineString":Xe=Math.min(Xe,yo(pe,!0,ct.coordinates,!0,_e,Xe));break;case"Polygon":Xe=Math.min(Xe,to(pe,!0,ct.coordinates,_e,Xe))}if(Xe===0)return Xe}return Xe}(T,this.geometries);if(T.geometryType()==="Polygon")return function(R,X){let ie=R.geometry();if(ie.length===0||ie[0].length===0)return NaN;let pe=Ys(ie,0).map(ct=>ct.map(Et=>Et.map(Yt=>gn([Yt.x,Yt.y],R.canonical)))),_e=new Ya(pe[0][0][0][1]),Xe=1/0;for(let ct of X)for(let Et of pe){switch(ct.type){case"Point":Xe=Math.min(Xe,to([ct.coordinates],!1,Et,_e,Xe));break;case"LineString":Xe=Math.min(Xe,to(ct.coordinates,!0,Et,_e,Xe));break;case"Polygon":Xe=Math.min(Xe,Na(Et,ct.coordinates,_e,Xe))}if(Xe===0)return Xe}return Xe}(T,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Rn={"==":Ta,"!=":ys,">":ls,"<":uo,">=":fo,"<=":$a,array:rn,at:$t,boolean:rn,case:wi,coalesce:Ia,collator:mn,format:wa,image:ws,in:fr,"index-of":gr,interpolate:so,"interpolate-hcl":so,"interpolate-lab":so,length:Co,let:Xr,literal:Yr,match:Zr,number:rn,"number-format":ra,object:rn,slice:$i,step:Xi,string:rn,"to-boolean":Ri,"to-color":Ri,"to-number":Ri,"to-string":Ri,var:dt,within:ps,distance:Ao};class _a{constructor(T,R,X,ie){this.name=T,this.type=R,this._evaluate=X,this.args=ie}evaluate(T){return this._evaluate(T,this.args)}eachChild(T){this.args.forEach(T)}outputDefined(){return!1}static parse(T,R){let X=T[0],ie=_a.definitions[X];if(!ie)return R.error(`Unknown expression "${X}". If you wanted a literal array, use ["literal", [...]].`,0);let pe=Array.isArray(ie)?ie[0]:ie.type,_e=Array.isArray(ie)?[[ie[1],ie[2]]]:ie.overloads,Xe=_e.filter(([Et])=>!Array.isArray(Et)||Et.length===T.length-1),ct=null;for(let[Et,Yt]of Xe){ct=new xi(R.registry,Ho,R.path,null,R.scope);let hr=[],Tr=!1;for(let Dr=1;Dr{return Tr=hr,Array.isArray(Tr)?`(${Tr.map(Oe).join(", ")})`:`(${Oe(Tr.type)}...)`;var Tr}).join(" | "),Yt=[];for(let hr=1;hr{R=T?R&&Ho(X):R&&X instanceof Yr}),!!R&&Wa(I)&&ts(I,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Wa(I){if(I instanceof _a&&(I.name==="get"&&I.args.length===1||I.name==="feature-state"||I.name==="has"&&I.args.length===1||I.name==="properties"||I.name==="geometry-type"||I.name==="id"||/^filter-/.test(I.name))||I instanceof ps||I instanceof Ao)return!1;let T=!0;return I.eachChild(R=>{T&&!Wa(R)&&(T=!1)}),T}function To(I){if(I instanceof _a&&I.name==="feature-state")return!1;let T=!0;return I.eachChild(R=>{T&&!To(R)&&(T=!1)}),T}function ts(I,T){if(I instanceof _a&&T.indexOf(I.name)>=0)return!1;let R=!0;return I.eachChild(X=>{R&&!ts(X,T)&&(R=!1)}),R}function Wo(I){return{result:"success",value:I}}function qa(I){return{result:"error",value:I}}function on(I){return I["property-type"]==="data-driven"||I["property-type"]==="cross-faded-data-driven"}function Oo(I){return!!I.expression&&I.expression.parameters.indexOf("zoom")>-1}function ko(I){return!!I.expression&&I.expression.interpolated}function oo(I){return I instanceof Number?"number":I instanceof String?"string":I instanceof Boolean?"boolean":Array.isArray(I)?"array":I===null?"null":typeof I}function za(I){return typeof I=="object"&&I!==null&&!Array.isArray(I)}function ea(I){return I}function rs(I,T){let R=T.type==="color",X=I.stops&&typeof I.stops[0][0]=="object",ie=X||!(X||I.property!==void 0),pe=I.type||(ko(T)?"exponential":"interval");if(R||T.type==="padding"){let Yt=R?Nt.parse:Fr.parse;(I=oe({},I)).stops&&(I.stops=I.stops.map(hr=>[hr[0],Yt(hr[1])])),I.default=Yt(I.default?I.default:T.default)}if(I.colorSpace&&(_e=I.colorSpace)!=="rgb"&&_e!=="hcl"&&_e!=="lab")throw new Error(`Unknown color space: "${I.colorSpace}"`);var _e;let Xe,ct,Et;if(pe==="exponential")Xe=fl;else if(pe==="interval")Xe=Rs;else if(pe==="categorical"){Xe=us,ct=Object.create(null);for(let Yt of I.stops)ct[Yt[0]]=Yt[1];Et=typeof I.stops[0][0]}else{if(pe!=="identity")throw new Error(`Unknown function type "${pe}"`);Xe=as}if(X){let Yt={},hr=[];for(let Jr=0;JrJr[0]),evaluate:({zoom:Jr},li)=>fl({stops:Tr,base:I.base},T,Jr).evaluate(Jr,li)}}if(ie){let Yt=pe==="exponential"?{name:"exponential",base:I.base!==void 0?I.base:1}:null;return{kind:"camera",interpolationType:Yt,interpolationFactor:so.interpolationFactor.bind(void 0,Yt),zoomStops:I.stops.map(hr=>hr[0]),evaluate:({zoom:hr})=>Xe(I,T,hr,ct,Et)}}return{kind:"source",evaluate(Yt,hr){let Tr=hr&&hr.properties?hr.properties[I.property]:void 0;return Tr===void 0?$s(I.default,T.default):Xe(I,T,Tr,ct,Et)}}}function $s(I,T,R){return I!==void 0?I:T!==void 0?T:R!==void 0?R:void 0}function us(I,T,R,X,ie){return $s(typeof R===ie?X[R]:void 0,I.default,T.default)}function Rs(I,T,R){if(oo(R)!=="number")return $s(I.default,T.default);let X=I.stops.length;if(X===1||R<=I.stops[0][0])return I.stops[0][1];if(R>=I.stops[X-1][0])return I.stops[X-1][1];let ie=ni(I.stops.map(pe=>pe[0]),R);return I.stops[ie][1]}function fl(I,T,R){let X=I.base!==void 0?I.base:1;if(oo(R)!=="number")return $s(I.default,T.default);let ie=I.stops.length;if(ie===1||R<=I.stops[0][0])return I.stops[0][1];if(R>=I.stops[ie-1][0])return I.stops[ie-1][1];let pe=ni(I.stops.map(Yt=>Yt[0]),R),_e=function(Yt,hr,Tr,Dr){let Jr=Dr-Tr,li=Yt-Tr;return Jr===0?0:hr===1?li/Jr:(Math.pow(hr,li)-1)/(Math.pow(hr,Jr)-1)}(R,X,I.stops[pe][0],I.stops[pe+1][0]),Xe=I.stops[pe][1],ct=I.stops[pe+1][1],Et=ka[T.type]||ea;return typeof Xe.evaluate=="function"?{evaluate(...Yt){let hr=Xe.evaluate.apply(void 0,Yt),Tr=ct.evaluate.apply(void 0,Yt);if(hr!==void 0&&Tr!==void 0)return Et(hr,Tr,_e,I.colorSpace)}}:Et(Xe,ct,_e,I.colorSpace)}function as(I,T,R){switch(T.type){case"color":R=Nt.parse(R);break;case"formatted":R=Nr.fromString(R.toString());break;case"resolvedImage":R=mi.fromString(R.toString());break;case"padding":R=Fr.parse(R);break;default:oo(R)===T.type||T.type==="enum"&&T.values[R]||(R=void 0)}return $s(R,I.default,T.default)}_a.register(Rn,{error:[{kind:"error"},[Ve],(I,[T])=>{throw new oi(T.evaluate(I))}],typeof:[Ve,[jt],(I,[T])=>Oe(ti(T.evaluate(I)))],"to-rgba":[xe(We,4),[tt],(I,[T])=>{let[R,X,ie,pe]=T.evaluate(I).rgb;return[255*R,255*X,255*ie,pe]}],rgb:[tt,[We,We,We],Ws],rgba:[tt,[We,We,We,We],Ws],has:{type:et,overloads:[[[Ve],(I,[T])=>Ca(T.evaluate(I),I.properties())],[[Ve,Lt],(I,[T,R])=>Ca(T.evaluate(I),R.evaluate(I))]]},get:{type:jt,overloads:[[[Ve],(I,[T])=>Es(T.evaluate(I),I.properties())],[[Ve,Lt],(I,[T,R])=>Es(T.evaluate(I),R.evaluate(I))]]},"feature-state":[jt,[Ve],(I,[T])=>Es(T.evaluate(I),I.featureState||{})],properties:[Lt,[],I=>I.properties()],"geometry-type":[Ve,[],I=>I.geometryType()],id:[jt,[],I=>I.id()],zoom:[We,[],I=>I.globals.zoom],"heatmap-density":[We,[],I=>I.globals.heatmapDensity||0],"line-progress":[We,[],I=>I.globals.lineProgress||0],accumulated:[jt,[],I=>I.globals.accumulated===void 0?null:I.globals.accumulated],"+":[We,Ts(We),(I,T)=>{let R=0;for(let X of T)R+=X.evaluate(I);return R}],"*":[We,Ts(We),(I,T)=>{let R=1;for(let X of T)R*=X.evaluate(I);return R}],"-":{type:We,overloads:[[[We,We],(I,[T,R])=>T.evaluate(I)-R.evaluate(I)],[[We],(I,[T])=>-T.evaluate(I)]]},"/":[We,[We,We],(I,[T,R])=>T.evaluate(I)/R.evaluate(I)],"%":[We,[We,We],(I,[T,R])=>T.evaluate(I)%R.evaluate(I)],ln2:[We,[],()=>Math.LN2],pi:[We,[],()=>Math.PI],e:[We,[],()=>Math.E],"^":[We,[We,We],(I,[T,R])=>Math.pow(T.evaluate(I),R.evaluate(I))],sqrt:[We,[We],(I,[T])=>Math.sqrt(T.evaluate(I))],log10:[We,[We],(I,[T])=>Math.log(T.evaluate(I))/Math.LN10],ln:[We,[We],(I,[T])=>Math.log(T.evaluate(I))],log2:[We,[We],(I,[T])=>Math.log(T.evaluate(I))/Math.LN2],sin:[We,[We],(I,[T])=>Math.sin(T.evaluate(I))],cos:[We,[We],(I,[T])=>Math.cos(T.evaluate(I))],tan:[We,[We],(I,[T])=>Math.tan(T.evaluate(I))],asin:[We,[We],(I,[T])=>Math.asin(T.evaluate(I))],acos:[We,[We],(I,[T])=>Math.acos(T.evaluate(I))],atan:[We,[We],(I,[T])=>Math.atan(T.evaluate(I))],min:[We,Ts(We),(I,T)=>Math.min(...T.map(R=>R.evaluate(I)))],max:[We,Ts(We),(I,T)=>Math.max(...T.map(R=>R.evaluate(I)))],abs:[We,[We],(I,[T])=>Math.abs(T.evaluate(I))],round:[We,[We],(I,[T])=>{let R=T.evaluate(I);return R<0?-Math.round(-R):Math.round(R)}],floor:[We,[We],(I,[T])=>Math.floor(T.evaluate(I))],ceil:[We,[We],(I,[T])=>Math.ceil(T.evaluate(I))],"filter-==":[et,[Ve,jt],(I,[T,R])=>I.properties()[T.value]===R.value],"filter-id-==":[et,[jt],(I,[T])=>I.id()===T.value],"filter-type-==":[et,[Ve],(I,[T])=>I.geometryType()===T.value],"filter-<":[et,[Ve,jt],(I,[T,R])=>{let X=I.properties()[T.value],ie=R.value;return typeof X==typeof ie&&X{let R=I.id(),X=T.value;return typeof R==typeof X&&R":[et,[Ve,jt],(I,[T,R])=>{let X=I.properties()[T.value],ie=R.value;return typeof X==typeof ie&&X>ie}],"filter-id->":[et,[jt],(I,[T])=>{let R=I.id(),X=T.value;return typeof R==typeof X&&R>X}],"filter-<=":[et,[Ve,jt],(I,[T,R])=>{let X=I.properties()[T.value],ie=R.value;return typeof X==typeof ie&&X<=ie}],"filter-id-<=":[et,[jt],(I,[T])=>{let R=I.id(),X=T.value;return typeof R==typeof X&&R<=X}],"filter->=":[et,[Ve,jt],(I,[T,R])=>{let X=I.properties()[T.value],ie=R.value;return typeof X==typeof ie&&X>=ie}],"filter-id->=":[et,[jt],(I,[T])=>{let R=I.id(),X=T.value;return typeof R==typeof X&&R>=X}],"filter-has":[et,[jt],(I,[T])=>T.value in I.properties()],"filter-has-id":[et,[],I=>I.id()!==null&&I.id()!==void 0],"filter-type-in":[et,[xe(Ve)],(I,[T])=>T.value.indexOf(I.geometryType())>=0],"filter-id-in":[et,[xe(jt)],(I,[T])=>T.value.indexOf(I.id())>=0],"filter-in-small":[et,[Ve,xe(jt)],(I,[T,R])=>R.value.indexOf(I.properties()[T.value])>=0],"filter-in-large":[et,[Ve,xe(jt)],(I,[T,R])=>function(X,ie,pe,_e){for(;pe<=_e;){let Xe=pe+_e>>1;if(ie[Xe]===X)return!0;ie[Xe]>X?_e=Xe-1:pe=Xe+1}return!1}(I.properties()[T.value],R.value,0,R.value.length-1)],all:{type:et,overloads:[[[et,et],(I,[T,R])=>T.evaluate(I)&&R.evaluate(I)],[Ts(et),(I,T)=>{for(let R of T)if(!R.evaluate(I))return!1;return!0}]]},any:{type:et,overloads:[[[et,et],(I,[T,R])=>T.evaluate(I)||R.evaluate(I)],[Ts(et),(I,T)=>{for(let R of T)if(R.evaluate(I))return!0;return!1}]]},"!":[et,[et],(I,[T])=>!T.evaluate(I)],"is-supported-script":[et,[Ve],(I,[T])=>{let R=I.globals&&I.globals.isSupportedScript;return!R||R(T.evaluate(I))}],upcase:[Ve,[Ve],(I,[T])=>T.evaluate(I).toUpperCase()],downcase:[Ve,[Ve],(I,[T])=>T.evaluate(I).toLowerCase()],concat:[Ve,Ts(jt),(I,T)=>T.map(R=>Qi(R.evaluate(I))).join("")],"resolved-locale":[Ve,[or],(I,[T])=>T.evaluate(I).resolvedLocale()]});class Ma{constructor(T,R){var X;this.expression=T,this._warningHistory={},this._evaluator=new xn,this._defaultValue=R?(X=R).type==="color"&&za(X.default)?new Nt(0,0,0,0):X.type==="color"?Nt.parse(X.default)||null:X.type==="padding"?Fr.parse(X.default)||null:X.type==="variableAnchorOffsetCollection"?Hr.parse(X.default)||null:X.default===void 0?null:X.default:null,this._enumValues=R&&R.type==="enum"?R.values:null}evaluateWithoutErrorHandling(T,R,X,ie,pe,_e){return this._evaluator.globals=T,this._evaluator.feature=R,this._evaluator.featureState=X,this._evaluator.canonical=ie,this._evaluator.availableImages=pe||null,this._evaluator.formattedSection=_e,this.expression.evaluate(this._evaluator)}evaluate(T,R,X,ie,pe,_e){this._evaluator.globals=T,this._evaluator.feature=R||null,this._evaluator.featureState=X||null,this._evaluator.canonical=ie,this._evaluator.availableImages=pe||null,this._evaluator.formattedSection=_e||null;try{let Xe=this.expression.evaluate(this._evaluator);if(Xe==null||typeof Xe=="number"&&Xe!=Xe)return this._defaultValue;if(this._enumValues&&!(Xe in this._enumValues))throw new oi(`Expected value to be one of ${Object.keys(this._enumValues).map(ct=>JSON.stringify(ct)).join(", ")}, but found ${JSON.stringify(Xe)} instead.`);return Xe}catch(Xe){return this._warningHistory[Xe.message]||(this._warningHistory[Xe.message]=!0,typeof console!="undefined"&&console.warn(Xe.message)),this._defaultValue}}}function Qs(I){return Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&I[0]in Rn}function ho(I,T){let R=new xi(Rn,Ho,[],T?function(ie){let pe={color:tt,string:Ve,number:We,enum:Ve,boolean:et,formatted:yr,padding:vr,resolvedImage:Vt,variableAnchorOffsetCollection:Pe};return ie.type==="array"?xe(pe[ie.value]||jt,ie.length):pe[ie.type]}(T):void 0),X=R.parse(I,void 0,void 0,void 0,T&&T.type==="string"?{typeAnnotation:"coerce"}:void 0);return X?Wo(new Ma(X,T)):qa(R.errors)}class gs{constructor(T,R){this.kind=T,this._styleExpression=R,this.isStateDependent=T!=="constant"&&!To(R.expression)}evaluateWithoutErrorHandling(T,R,X,ie,pe,_e){return this._styleExpression.evaluateWithoutErrorHandling(T,R,X,ie,pe,_e)}evaluate(T,R,X,ie,pe,_e){return this._styleExpression.evaluate(T,R,X,ie,pe,_e)}}class Vo{constructor(T,R,X,ie){this.kind=T,this.zoomStops=X,this._styleExpression=R,this.isStateDependent=T!=="camera"&&!To(R.expression),this.interpolationType=ie}evaluateWithoutErrorHandling(T,R,X,ie,pe,_e){return this._styleExpression.evaluateWithoutErrorHandling(T,R,X,ie,pe,_e)}evaluate(T,R,X,ie,pe,_e){return this._styleExpression.evaluate(T,R,X,ie,pe,_e)}interpolationFactor(T,R,X){return this.interpolationType?so.interpolationFactor(this.interpolationType,T,R,X):0}}function Ro(I,T){let R=ho(I,T);if(R.result==="error")return R;let X=R.value.expression,ie=Wa(X);if(!ie&&!on(T))return qa([new Ne("","data expressions not supported")]);let pe=ts(X,["zoom"]);if(!pe&&!Oo(T))return qa([new Ne("","zoom expressions not supported")]);let _e=xs(X);return _e||pe?_e instanceof Ne?qa([_e]):_e instanceof so&&!ko(T)?qa([new Ne("",'"interpolate" expressions cannot be used with this property')]):Wo(_e?new Vo(ie?"camera":"composite",R.value,_e.labels,_e instanceof so?_e.interpolation:void 0):new gs(ie?"constant":"source",R.value)):qa([new Ne("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Lo{constructor(T,R){this._parameters=T,this._specification=R,oe(this,rs(this._parameters,this._specification))}static deserialize(T){return new Lo(T._parameters,T._specification)}static serialize(T){return{_parameters:T._parameters,_specification:T._specification}}}function xs(I){let T=null;if(I instanceof Xr)T=xs(I.result);else if(I instanceof Ia){for(let R of I.args)if(T=xs(R),T)break}else(I instanceof Xi||I instanceof so)&&I.input instanceof _a&&I.input.name==="zoom"&&(T=I);return T instanceof Ne||I.eachChild(R=>{let X=xs(R);X instanceof Ne?T=X:!T&&X?T=new Ne("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):T&&X&&T!==X&&(T=new Ne("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),T}function ks(I){if(I===!0||I===!1)return!0;if(!Array.isArray(I)||I.length===0)return!1;switch(I[0]){case"has":return I.length>=2&&I[1]!=="$id"&&I[1]!=="$type";case"in":return I.length>=3&&(typeof I[1]!="string"||Array.isArray(I[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return I.length!==3||Array.isArray(I[1])||Array.isArray(I[2]);case"any":case"all":for(let T of I.slice(1))if(!ks(T)&&typeof T!="boolean")return!1;return!0;default:return!0}}let Ea={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Jn(I){if(I==null)return{filter:()=>!0,needGeometry:!1};ks(I)||(I=Gs(I));let T=ho(I,Ea);if(T.result==="error")throw new Error(T.value.map(R=>`${R.key}: ${R.message}`).join(", "));return{filter:(R,X,ie)=>T.value.evaluate(R,X,{},ie),needGeometry:rl(I)}}function Bo(I,T){return IT?1:0}function rl(I){if(!Array.isArray(I))return!1;if(I[0]==="within"||I[0]==="distance")return!0;for(let T=1;T"||T==="<="||T===">="?bs(I[1],I[2],T):T==="any"?(R=I.slice(1),["any"].concat(R.map(Gs))):T==="all"?["all"].concat(I.slice(1).map(Gs)):T==="none"?["all"].concat(I.slice(1).map(Gs).map(Aa)):T==="in"?zs(I[1],I.slice(2)):T==="!in"?Aa(zs(I[1],I.slice(2))):T==="has"?$o(I[1]):T!=="!has"||Aa($o(I[1]));var R}function bs(I,T,R){switch(I){case"$type":return[`filter-type-${R}`,T];case"$id":return[`filter-id-${R}`,T];default:return[`filter-${R}`,I,T]}}function zs(I,T){if(T.length===0)return!1;switch(I){case"$type":return["filter-type-in",["literal",T]];case"$id":return["filter-id-in",["literal",T]];default:return T.length>200&&!T.some(R=>typeof R!=typeof T[0])?["filter-in-large",I,["literal",T.sort(Bo)]]:["filter-in-small",I,["literal",T]]}}function $o(I){switch(I){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",I]}}function Aa(I){return["!",I]}function os(I){let T=typeof I;if(T==="number"||T==="boolean"||T==="string"||I==null)return JSON.stringify(I);if(Array.isArray(I)){let ie="[";for(let pe of I)ie+=`${os(pe)},`;return`${ie}]`}let R=Object.keys(I).sort(),X="{";for(let ie=0;ieX.maximum?[new Me(T,R,`${R} is greater than the maximum value ${X.maximum}`)]:[]}function io(I){let T=I.valueSpec,R=po(I.value.type),X,ie,pe,_e={},Xe=R!=="categorical"&&I.value.property===void 0,ct=!Xe,Et=oo(I.value.stops)==="array"&&oo(I.value.stops[0])==="array"&&oo(I.value.stops[0][0])==="object",Yt=ss({key:I.key,value:I.value,valueSpec:I.styleSpec.function,validateSpec:I.validateSpec,style:I.style,styleSpec:I.styleSpec,objectElementValidators:{stops:function(Dr){if(R==="identity")return[new Me(Dr.key,Dr.value,'identity function may not have a "stops" property')];let Jr=[],li=Dr.value;return Jr=Jr.concat(qo({key:Dr.key,value:li,valueSpec:Dr.valueSpec,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec,arrayElementValidator:hr})),oo(li)==="array"&&li.length===0&&Jr.push(new Me(Dr.key,li,"array must have at least one stop")),Jr},default:function(Dr){return Dr.validateSpec({key:Dr.key,value:Dr.value,valueSpec:T,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec})}}});return R==="identity"&&Xe&&Yt.push(new Me(I.key,I.value,'missing required property "property"')),R==="identity"||I.value.stops||Yt.push(new Me(I.key,I.value,'missing required property "stops"')),R==="exponential"&&I.valueSpec.expression&&!ko(I.valueSpec)&&Yt.push(new Me(I.key,I.value,"exponential functions not supported")),I.styleSpec.$version>=8&&(ct&&!on(I.valueSpec)?Yt.push(new Me(I.key,I.value,"property functions not supported")):Xe&&!Oo(I.valueSpec)&&Yt.push(new Me(I.key,I.value,"zoom functions not supported"))),R!=="categorical"&&!Et||I.value.property!==void 0||Yt.push(new Me(I.key,I.value,'"property" property is required')),Yt;function hr(Dr){let Jr=[],li=Dr.value,Gi=Dr.key;if(oo(li)!=="array")return[new Me(Gi,li,`array expected, ${oo(li)} found`)];if(li.length!==2)return[new Me(Gi,li,`array length 2 expected, length ${li.length} found`)];if(Et){if(oo(li[0])!=="object")return[new Me(Gi,li,`object expected, ${oo(li[0])} found`)];if(li[0].zoom===void 0)return[new Me(Gi,li,"object stop key must have zoom")];if(li[0].value===void 0)return[new Me(Gi,li,"object stop key must have value")];if(pe&&pe>po(li[0].zoom))return[new Me(Gi,li[0].zoom,"stop zoom values must appear in ascending order")];po(li[0].zoom)!==pe&&(pe=po(li[0].zoom),ie=void 0,_e={}),Jr=Jr.concat(ss({key:`${Gi}[0]`,value:li[0],valueSpec:{zoom:{}},validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec,objectElementValidators:{zoom:zo,value:Tr}}))}else Jr=Jr.concat(Tr({key:`${Gi}[0]`,value:li[0],valueSpec:{},validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec},li));return Qs(go(li[1]))?Jr.concat([new Me(`${Gi}[1]`,li[1],"expressions are not allowed in function stops.")]):Jr.concat(Dr.validateSpec({key:`${Gi}[1]`,value:li[1],valueSpec:T,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec}))}function Tr(Dr,Jr){let li=oo(Dr.value),Gi=po(Dr.value),fn=Dr.value!==null?Dr.value:Jr;if(X){if(li!==X)return[new Me(Dr.key,fn,`${li} stop domain type must match previous stop domain type ${X}`)]}else X=li;if(li!=="number"&&li!=="string"&&li!=="boolean")return[new Me(Dr.key,fn,"stop domain value must be a number, string, or boolean")];if(li!=="number"&&R!=="categorical"){let Za=`number expected, ${li} found`;return on(T)&&R===void 0&&(Za+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Me(Dr.key,fn,Za)]}return R!=="categorical"||li!=="number"||isFinite(Gi)&&Math.floor(Gi)===Gi?R!=="categorical"&&li==="number"&&ie!==void 0&&Ginew Me(`${I.key}${X.key}`,I.value,X.message));let R=T.value.expression||T.value._styleExpression.expression;if(I.expressionContext==="property"&&I.propertyKey==="text-font"&&!R.outputDefined())return[new Me(I.key,I.value,`Invalid data expression for "${I.propertyKey}". Output values must be contained as literals within the expression.`)];if(I.expressionContext==="property"&&I.propertyType==="layout"&&!To(R))return[new Me(I.key,I.value,'"feature-state" data expressions are not supported with layout properties.')];if(I.expressionContext==="filter"&&!To(R))return[new Me(I.key,I.value,'"feature-state" data expressions are not supported with filters.')];if(I.expressionContext&&I.expressionContext.indexOf("cluster")===0){if(!ts(R,["zoom","feature-state"]))return[new Me(I.key,I.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(I.expressionContext==="cluster-initial"&&!Wa(R))return[new Me(I.key,I.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Ra(I){let T=I.key,R=I.value,X=I.valueSpec,ie=[];return Array.isArray(X.values)?X.values.indexOf(po(R))===-1&&ie.push(new Me(T,R,`expected one of [${X.values.join(", ")}], ${JSON.stringify(R)} found`)):Object.keys(X.values).indexOf(po(R))===-1&&ie.push(new Me(T,R,`expected one of [${Object.keys(X.values).join(", ")}], ${JSON.stringify(R)} found`)),ie}function vs(I){return ks(go(I.value))?Io(oe({},I,{expressionContext:"filter",valueSpec:{value:"boolean"}})):fs(I)}function fs(I){let T=I.value,R=I.key;if(oo(T)!=="array")return[new Me(R,T,`array expected, ${oo(T)} found`)];let X=I.styleSpec,ie,pe=[];if(T.length<1)return[new Me(R,T,"filter array must have at least 1 element")];switch(pe=pe.concat(Ra({key:`${R}[0]`,value:T[0],valueSpec:X.filter_operator,style:I.style,styleSpec:I.styleSpec})),po(T[0])){case"<":case"<=":case">":case">=":T.length>=2&&po(T[1])==="$type"&&pe.push(new Me(R,T,`"$type" cannot be use with operator "${T[0]}"`));case"==":case"!=":T.length!==3&&pe.push(new Me(R,T,`filter array for operator "${T[0]}" must have 3 elements`));case"in":case"!in":T.length>=2&&(ie=oo(T[1]),ie!=="string"&&pe.push(new Me(`${R}[1]`,T[1],`string expected, ${ie} found`)));for(let _e=2;_e{Et in R&&T.push(new Me(X,R[Et],`"${Et}" is prohibited for ref layers`))}),ie.layers.forEach(Et=>{po(Et.id)===Xe&&(ct=Et)}),ct?ct.ref?T.push(new Me(X,R.ref,"ref cannot reference another ref layer")):_e=po(ct.type):T.push(new Me(X,R.ref,`ref layer "${Xe}" not found`))}else if(_e!=="background")if(R.source){let ct=ie.sources&&ie.sources[R.source],Et=ct&&po(ct.type);ct?Et==="vector"&&_e==="raster"?T.push(new Me(X,R.source,`layer "${R.id}" requires a raster source`)):Et!=="raster-dem"&&_e==="hillshade"?T.push(new Me(X,R.source,`layer "${R.id}" requires a raster-dem source`)):Et==="raster"&&_e!=="raster"?T.push(new Me(X,R.source,`layer "${R.id}" requires a vector source`)):Et!=="vector"||R["source-layer"]?Et==="raster-dem"&&_e!=="hillshade"?T.push(new Me(X,R.source,"raster-dem source can only be used with layer type 'hillshade'.")):_e!=="line"||!R.paint||!R.paint["line-gradient"]||Et==="geojson"&&ct.lineMetrics||T.push(new Me(X,R,`layer "${R.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):T.push(new Me(X,R,`layer "${R.id}" must specify a "source-layer"`)):T.push(new Me(X,R.source,`source "${R.source}" not found`))}else T.push(new Me(X,R,'missing required property "source"'));return T=T.concat(ss({key:X,value:R,valueSpec:pe.layer,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,objectElementValidators:{"*":()=>[],type:()=>I.validateSpec({key:`${X}.type`,value:R.type,valueSpec:pe.layer.type,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,object:R,objectKey:"type"}),filter:vs,layout:ct=>ss({layer:R,key:ct.key,value:ct.value,style:ct.style,styleSpec:ct.styleSpec,validateSpec:ct.validateSpec,objectElementValidators:{"*":Et=>Hs(oe({layerType:_e},Et))}}),paint:ct=>ss({layer:R,key:ct.key,value:ct.value,style:ct.style,styleSpec:ct.styleSpec,validateSpec:ct.validateSpec,objectElementValidators:{"*":Et=>el(oe({layerType:_e},Et))}})}})),T}function tl(I){let T=I.value,R=I.key,X=oo(T);return X!=="string"?[new Me(R,T,`string expected, ${X} found`)]:[]}let Fs={promoteId:function({key:I,value:T}){if(oo(T)==="string")return tl({key:I,value:T});{let R=[];for(let X in T)R.push(...tl({key:`${I}.${X}`,value:T[X]}));return R}}};function hl(I){let T=I.value,R=I.key,X=I.styleSpec,ie=I.style,pe=I.validateSpec;if(!T.type)return[new Me(R,T,'"type" is required')];let _e=po(T.type),Xe;switch(_e){case"vector":case"raster":return Xe=ss({key:R,value:T,valueSpec:X[`source_${_e.replace("-","_")}`],style:I.style,styleSpec:X,objectElementValidators:Fs,validateSpec:pe}),Xe;case"raster-dem":return Xe=function(ct){var Et;let Yt=(Et=ct.sourceName)!==null&&Et!==void 0?Et:"",hr=ct.value,Tr=ct.styleSpec,Dr=Tr.source_raster_dem,Jr=ct.style,li=[],Gi=oo(hr);if(hr===void 0)return li;if(Gi!=="object")return li.push(new Me("source_raster_dem",hr,`object expected, ${Gi} found`)),li;let fn=po(hr.encoding)==="custom",Za=["redFactor","greenFactor","blueFactor","baseShift"],Dn=ct.value.encoding?`"${ct.value.encoding}"`:"Default";for(let La in hr)!fn&&Za.includes(La)?li.push(new Me(La,hr[La],`In "${Yt}": "${La}" is only valid when "encoding" is set to "custom". ${Dn} encoding found`)):Dr[La]?li=li.concat(ct.validateSpec({key:La,value:hr[La],valueSpec:Dr[La],validateSpec:ct.validateSpec,style:Jr,styleSpec:Tr})):li.push(new Me(La,hr[La],`unknown property "${La}"`));return li}({sourceName:R,value:T,style:I.style,styleSpec:X,validateSpec:pe}),Xe;case"geojson":if(Xe=ss({key:R,value:T,valueSpec:X.source_geojson,style:ie,styleSpec:X,validateSpec:pe,objectElementValidators:Fs}),T.cluster)for(let ct in T.clusterProperties){let[Et,Yt]=T.clusterProperties[ct],hr=typeof Et=="string"?[Et,["accumulated"],["get",ct]]:Et;Xe.push(...Io({key:`${R}.${ct}.map`,value:Yt,validateSpec:pe,expressionContext:"cluster-map"})),Xe.push(...Io({key:`${R}.${ct}.reduce`,value:hr,validateSpec:pe,expressionContext:"cluster-reduce"}))}return Xe;case"video":return ss({key:R,value:T,valueSpec:X.source_video,style:ie,validateSpec:pe,styleSpec:X});case"image":return ss({key:R,value:T,valueSpec:X.source_image,style:ie,validateSpec:pe,styleSpec:X});case"canvas":return[new Me(R,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Ra({key:`${R}.type`,value:T.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:ie,validateSpec:pe,styleSpec:X})}}function Fa(I){let T=I.value,R=I.styleSpec,X=R.light,ie=I.style,pe=[],_e=oo(T);if(T===void 0)return pe;if(_e!=="object")return pe=pe.concat([new Me("light",T,`object expected, ${_e} found`)]),pe;for(let Xe in T){let ct=Xe.match(/^(.*)-transition$/);pe=pe.concat(ct&&X[ct[1]]&&X[ct[1]].transition?I.validateSpec({key:Xe,value:T[Xe],valueSpec:R.transition,validateSpec:I.validateSpec,style:ie,styleSpec:R}):X[Xe]?I.validateSpec({key:Xe,value:T[Xe],valueSpec:X[Xe],validateSpec:I.validateSpec,style:ie,styleSpec:R}):[new Me(Xe,T[Xe],`unknown property "${Xe}"`)])}return pe}function Ms(I){let T=I.value,R=I.styleSpec,X=R.sky,ie=I.style,pe=oo(T);if(T===void 0)return[];if(pe!=="object")return[new Me("sky",T,`object expected, ${pe} found`)];let _e=[];for(let Xe in T)_e=_e.concat(X[Xe]?I.validateSpec({key:Xe,value:T[Xe],valueSpec:X[Xe],style:ie,styleSpec:R}):[new Me(Xe,T[Xe],`unknown property "${Xe}"`)]);return _e}function jo(I){let T=I.value,R=I.styleSpec,X=R.terrain,ie=I.style,pe=[],_e=oo(T);if(T===void 0)return pe;if(_e!=="object")return pe=pe.concat([new Me("terrain",T,`object expected, ${_e} found`)]),pe;for(let Xe in T)pe=pe.concat(X[Xe]?I.validateSpec({key:Xe,value:T[Xe],valueSpec:X[Xe],validateSpec:I.validateSpec,style:ie,styleSpec:R}):[new Me(Xe,T[Xe],`unknown property "${Xe}"`)]);return pe}function Ds(I){let T=[],R=I.value,X=I.key;if(Array.isArray(R)){let ie=[],pe=[];for(let _e in R)R[_e].id&&ie.includes(R[_e].id)&&T.push(new Me(X,R,`all the sprites' ids must be unique, but ${R[_e].id} is duplicated`)),ie.push(R[_e].id),R[_e].url&&pe.includes(R[_e].url)&&T.push(new Me(X,R,`all the sprites' URLs must be unique, but ${R[_e].url} is duplicated`)),pe.push(R[_e].url),T=T.concat(ss({key:`${X}[${_e}]`,value:R[_e],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:I.validateSpec}));return T}return tl({key:X,value:R})}let Is={"*":()=>[],array:qo,boolean:function(I){let T=I.value,R=I.key,X=oo(T);return X!=="boolean"?[new Me(R,T,`boolean expected, ${X} found`)]:[]},number:zo,color:function(I){let T=I.key,R=I.value,X=oo(R);return X!=="string"?[new Me(T,R,`color expected, ${X} found`)]:Nt.parse(String(R))?[]:[new Me(T,R,`color expected, "${R}" found`)]},constants:Ss,enum:Ra,filter:vs,function:io,layer:Do,object:ss,source:hl,light:Fa,sky:Ms,terrain:jo,projection:function(I){let T=I.value,R=I.styleSpec,X=R.projection,ie=I.style,pe=oo(T);if(T===void 0)return[];if(pe!=="object")return[new Me("projection",T,`object expected, ${pe} found`)];let _e=[];for(let Xe in T)_e=_e.concat(X[Xe]?I.validateSpec({key:Xe,value:T[Xe],valueSpec:X[Xe],style:ie,styleSpec:R}):[new Me(Xe,T[Xe],`unknown property "${Xe}"`)]);return _e},string:tl,formatted:function(I){return tl(I).length===0?[]:Io(I)},resolvedImage:function(I){return tl(I).length===0?[]:Io(I)},padding:function(I){let T=I.key,R=I.value;if(oo(R)==="array"){if(R.length<1||R.length>4)return[new Me(T,R,`padding requires 1 to 4 values; ${R.length} values found`)];let X={type:"number"},ie=[];for(let pe=0;pe[]}})),I.constants&&(R=R.concat(Ss({key:"constants",value:I.constants,style:I,styleSpec:T,validateSpec:Os}))),dr(R)}function xr(I){return function(T){return I(W1(_m({},T),{validateSpec:Os}))}}function dr(I){return[].concat(I).sort((T,R)=>T.line-R.line)}function Rr(I){return function(...T){return dr(I.apply(this,T))}}Ut.source=Rr(xr(hl)),Ut.sprite=Rr(xr(Ds)),Ut.glyphs=Rr(xr(St)),Ut.light=Rr(xr(Fa)),Ut.sky=Rr(xr(Ms)),Ut.terrain=Rr(xr(jo)),Ut.layer=Rr(xr(Do)),Ut.filter=Rr(xr(vs)),Ut.paintProperty=Rr(xr(el)),Ut.layoutProperty=Rr(xr(Hs));let yi=Ut,Ti=yi.light,ki=yi.sky,Ki=yi.paintProperty,Fn=yi.layoutProperty;function Li(I,T){let R=!1;if(T&&T.length)for(let X of T)I.fire(new ge(new Error(X.message))),R=!0;return R}class hi{constructor(T,R,X){let ie=this.cells=[];if(T instanceof ArrayBuffer){this.arrayBuffer=T;let _e=new Int32Array(this.arrayBuffer);T=_e[0],this.d=(R=_e[1])+2*(X=_e[2]);for(let ct=0;ct=hr[Jr+0]&&ie>=hr[Jr+1])?(Xe[Dr]=!0,_e.push(Yt[Dr])):Xe[Dr]=!1}}}}_forEachCell(T,R,X,ie,pe,_e,Xe,ct){let Et=this._convertToCellCoord(T),Yt=this._convertToCellCoord(R),hr=this._convertToCellCoord(X),Tr=this._convertToCellCoord(ie);for(let Dr=Et;Dr<=hr;Dr++)for(let Jr=Yt;Jr<=Tr;Jr++){let li=this.d*Jr+Dr;if((!ct||ct(this._convertFromCellCoord(Dr),this._convertFromCellCoord(Jr),this._convertFromCellCoord(Dr+1),this._convertFromCellCoord(Jr+1)))&&pe.call(this,T,R,X,ie,li,_e,Xe,ct))return}}_convertFromCellCoord(T){return(T-this.padding)/this.scale}_convertToCellCoord(T){return Math.max(0,Math.min(this.d-1,Math.floor(T*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let T=this.cells,R=3+this.cells.length+1+1,X=0;for(let _e=0;_e=0)continue;let _e=I[pe];ie[pe]=Ci[R].shallow.indexOf(pe)>=0?_e:ia(_e,T)}I instanceof Error&&(ie.message=I.message)}if(ie.$name)throw new Error("$name property is reserved for worker serialization logic.");return R!=="Object"&&(ie.$name=R),ie}function pa(I){if(ya(I))return I;if(Array.isArray(I))return I.map(pa);if(typeof I!="object")throw new Error("can't deserialize object of type "+typeof I);let T=ta(I)||"Object";if(!Ci[T])throw new Error(`can't deserialize unregistered class ${T}`);let{klass:R}=Ci[T];if(!R)throw new Error(`can't deserialize unregistered class ${T}`);if(R.deserialize)return R.deserialize(I);let X=Object.create(R.prototype);for(let ie of Object.keys(I)){if(ie==="$name")continue;let pe=I[ie];X[ie]=Ci[T].shallow.indexOf(ie)>=0?pe:pa(pe)}return X}class va{constructor(){this.first=!0}update(T,R){let X=Math.floor(T);return this.first?(this.first=!1,this.lastIntegerZoom=X,this.lastIntegerZoomTime=0,this.lastZoom=T,this.lastFloorZoom=X,!0):(this.lastFloorZoom>X?(this.lastIntegerZoom=X+1,this.lastIntegerZoomTime=R):this.lastFloorZoomI>=128&&I<=255,"Hangul Jamo":I=>I>=4352&&I<=4607,Khmer:I=>I>=6016&&I<=6143,"General Punctuation":I=>I>=8192&&I<=8303,"Letterlike Symbols":I=>I>=8448&&I<=8527,"Number Forms":I=>I>=8528&&I<=8591,"Miscellaneous Technical":I=>I>=8960&&I<=9215,"Control Pictures":I=>I>=9216&&I<=9279,"Optical Character Recognition":I=>I>=9280&&I<=9311,"Enclosed Alphanumerics":I=>I>=9312&&I<=9471,"Geometric Shapes":I=>I>=9632&&I<=9727,"Miscellaneous Symbols":I=>I>=9728&&I<=9983,"Miscellaneous Symbols and Arrows":I=>I>=11008&&I<=11263,"Ideographic Description Characters":I=>I>=12272&&I<=12287,"CJK Symbols and Punctuation":I=>I>=12288&&I<=12351,Katakana:I=>I>=12448&&I<=12543,Kanbun:I=>I>=12688&&I<=12703,"CJK Strokes":I=>I>=12736&&I<=12783,"Enclosed CJK Letters and Months":I=>I>=12800&&I<=13055,"CJK Compatibility":I=>I>=13056&&I<=13311,"Yijing Hexagram Symbols":I=>I>=19904&&I<=19967,"Private Use Area":I=>I>=57344&&I<=63743,"Vertical Forms":I=>I>=65040&&I<=65055,"CJK Compatibility Forms":I=>I>=65072&&I<=65103,"Small Form Variants":I=>I>=65104&&I<=65135,"Halfwidth and Fullwidth Forms":I=>I>=65280&&I<=65519};function is(I){for(let T of I)if(bl(T.charCodeAt(0)))return!0;return!1}function Cs(I){for(let T of I)if(!xl(T.charCodeAt(0)))return!1;return!0}function Ks(I){let T=I.map(R=>{try{return new RegExp(`\\p{sc=${R}}`,"u").source}catch(X){return null}}).filter(R=>R);return new RegExp(T.join("|"),"u")}let dl=Ks(["Arab","Dupl","Mong","Ougr","Syrc"]);function xl(I){return!dl.test(String.fromCodePoint(I))}let Bl=Ks(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function bl(I){return!(I!==746&&I!==747&&(I<4352||!(zn["CJK Compatibility Forms"](I)&&!(I>=65097&&I<=65103)||zn["CJK Compatibility"](I)||zn["CJK Strokes"](I)||!(!zn["CJK Symbols and Punctuation"](I)||I>=12296&&I<=12305||I>=12308&&I<=12319||I===12336)||zn["Enclosed CJK Letters and Months"](I)||zn["Ideographic Description Characters"](I)||zn.Kanbun(I)||zn.Katakana(I)&&I!==12540||!(!zn["Halfwidth and Fullwidth Forms"](I)||I===65288||I===65289||I===65293||I>=65306&&I<=65310||I===65339||I===65341||I===65343||I>=65371&&I<=65503||I===65507||I>=65512&&I<=65519)||!(!zn["Small Form Variants"](I)||I>=65112&&I<=65118||I>=65123&&I<=65126)||zn["Vertical Forms"](I)||zn["Yijing Hexagram Symbols"](I)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(I))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(I))||Bl.test(String.fromCodePoint(I)))))}function eu(I){return!(bl(I)||function(T){return!!(zn["Latin-1 Supplement"](T)&&(T===167||T===169||T===174||T===177||T===188||T===189||T===190||T===215||T===247)||zn["General Punctuation"](T)&&(T===8214||T===8224||T===8225||T===8240||T===8241||T===8251||T===8252||T===8258||T===8263||T===8264||T===8265||T===8273)||zn["Letterlike Symbols"](T)||zn["Number Forms"](T)||zn["Miscellaneous Technical"](T)&&(T>=8960&&T<=8967||T>=8972&&T<=8991||T>=8996&&T<=9e3||T===9003||T>=9085&&T<=9114||T>=9150&&T<=9165||T===9167||T>=9169&&T<=9179||T>=9186&&T<=9215)||zn["Control Pictures"](T)&&T!==9251||zn["Optical Character Recognition"](T)||zn["Enclosed Alphanumerics"](T)||zn["Geometric Shapes"](T)||zn["Miscellaneous Symbols"](T)&&!(T>=9754&&T<=9759)||zn["Miscellaneous Symbols and Arrows"](T)&&(T>=11026&&T<=11055||T>=11088&&T<=11097||T>=11192&&T<=11243)||zn["CJK Symbols and Punctuation"](T)||zn.Katakana(T)||zn["Private Use Area"](T)||zn["CJK Compatibility Forms"](T)||zn["Small Form Variants"](T)||zn["Halfwidth and Fullwidth Forms"](T)||T===8734||T===8756||T===8757||T>=9984&&T<=10087||T>=10102&&T<=10131||T===65532||T===65533)}(I))}let Zl=Ks(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Vl(I){return Zl.test(String.fromCodePoint(I))}function ja(I,T){return!(!T&&Vl(I)||I>=2304&&I<=3583||I>=3840&&I<=4255||zn.Khmer(I))}function ns(I){for(let T of I)if(Vl(T.charCodeAt(0)))return!0;return!1}let Js=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(I){this.pluginStatus=I.pluginStatus,this.pluginURL=I.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(I){this.applyArabicShaping=I.applyArabicShaping,this.processBidirectionalText=I.processBidirectionalText,this.processStyledBidirectionalText=I.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class cs{constructor(T,R){this.zoom=T,R?(this.now=R.now,this.fadeDuration=R.fadeDuration,this.zoomHistory=R.zoomHistory,this.transition=R.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new va,this.transition={})}isSupportedScript(T){return function(R,X){for(let ie of R)if(!ja(ie.charCodeAt(0),X))return!1;return!0}(T,Js.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let T=this.zoom,R=T-Math.floor(T),X=this.crossFadingFactor();return T>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:R+(1-R)*X}:{fromScale:.5,toScale:1,t:1-(1-X)*R}}}class sl{constructor(T,R){this.property=T,this.value=R,this.expression=function(X,ie){if(za(X))return new Lo(X,ie);if(Qs(X)){let pe=Ro(X,ie);if(pe.result==="error")throw new Error(pe.value.map(_e=>`${_e.key}: ${_e.message}`).join(", "));return pe.value}{let pe=X;return ie.type==="color"&&typeof X=="string"?pe=Nt.parse(X):ie.type!=="padding"||typeof X!="number"&&!Array.isArray(X)?ie.type==="variableAnchorOffsetCollection"&&Array.isArray(X)&&(pe=Hr.parse(X)):pe=Fr.parse(X),{kind:"constant",evaluate:()=>pe}}}(R===void 0?T.specification.default:R,T.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(T,R,X){return this.property.possiblyEvaluate(this,T,R,X)}}class ll{constructor(T){this.property=T,this.value=new sl(T,void 0)}transitioned(T,R){return new zl(this.property,this.value,R,L({},T.transition,this.transition),T.now)}untransitioned(){return new zl(this.property,this.value,null,{},0)}}class nl{constructor(T){this._properties=T,this._values=Object.create(T.defaultTransitionablePropertyValues)}getValue(T){return m(this._values[T].value.value)}setValue(T,R){Object.prototype.hasOwnProperty.call(this._values,T)||(this._values[T]=new ll(this._values[T].property)),this._values[T].value=new sl(this._values[T].property,R===null?void 0:m(R))}getTransition(T){return m(this._values[T].transition)}setTransition(T,R){Object.prototype.hasOwnProperty.call(this._values,T)||(this._values[T]=new ll(this._values[T].property)),this._values[T].transition=m(R)||void 0}serialize(){let T={};for(let R of Object.keys(this._values)){let X=this.getValue(R);X!==void 0&&(T[R]=X);let ie=this.getTransition(R);ie!==void 0&&(T[`${R}-transition`]=ie)}return T}transitioned(T,R){let X=new Ml(this._properties);for(let ie of Object.keys(this._values))X._values[ie]=this._values[ie].transitioned(T,R._values[ie]);return X}untransitioned(){let T=new Ml(this._properties);for(let R of Object.keys(this._values))T._values[R]=this._values[R].untransitioned();return T}}class zl{constructor(T,R,X,ie,pe){this.property=T,this.value=R,this.begin=pe+ie.delay||0,this.end=this.begin+ie.duration||0,T.specification.transition&&(ie.delay||ie.duration)&&(this.prior=X)}possiblyEvaluate(T,R,X){let ie=T.now||0,pe=this.value.possiblyEvaluate(T,R,X),_e=this.prior;if(_e){if(ie>this.end)return this.prior=null,pe;if(this.value.isDataDriven())return this.prior=null,pe;if(ie=1)return 1;let Et=ct*ct,Yt=Et*ct;return 4*(ct<.5?Yt:3*(ct-Et)+Yt-.75)}(Xe))}}return pe}}class Ml{constructor(T){this._properties=T,this._values=Object.create(T.defaultTransitioningPropertyValues)}possiblyEvaluate(T,R,X){let ie=new Ll(this._properties);for(let pe of Object.keys(this._values))ie._values[pe]=this._values[pe].possiblyEvaluate(T,R,X);return ie}hasTransition(){for(let T of Object.keys(this._values))if(this._values[T].prior)return!0;return!1}}class Dl{constructor(T){this._properties=T,this._values=Object.create(T.defaultPropertyValues)}hasValue(T){return this._values[T].value!==void 0}getValue(T){return m(this._values[T].value)}setValue(T,R){this._values[T]=new sl(this._values[T].property,R===null?void 0:m(R))}serialize(){let T={};for(let R of Object.keys(this._values)){let X=this.getValue(R);X!==void 0&&(T[R]=X)}return T}possiblyEvaluate(T,R,X){let ie=new Ll(this._properties);for(let pe of Object.keys(this._values))ie._values[pe]=this._values[pe].possiblyEvaluate(T,R,X);return ie}}class Al{constructor(T,R,X){this.property=T,this.value=R,this.parameters=X}isConstant(){return this.value.kind==="constant"}constantOr(T){return this.value.kind==="constant"?this.value.value:T}evaluate(T,R,X,ie){return this.property.evaluate(this.value,this.parameters,T,R,X,ie)}}class Ll{constructor(T){this._properties=T,this._values=Object.create(T.defaultPossiblyEvaluatedValues)}get(T){return this._values[T]}}class ms{constructor(T){this.specification=T}possiblyEvaluate(T,R){if(T.isDataDriven())throw new Error("Value should not be data driven");return T.expression.evaluate(R)}interpolate(T,R,X){let ie=ka[this.specification.type];return ie?ie(T,R,X):T}}class Bs{constructor(T,R){this.specification=T,this.overrides=R}possiblyEvaluate(T,R,X,ie){return new Al(this,T.expression.kind==="constant"||T.expression.kind==="camera"?{kind:"constant",value:T.expression.evaluate(R,null,{},X,ie)}:T.expression,R)}interpolate(T,R,X){if(T.value.kind!=="constant"||R.value.kind!=="constant")return T;if(T.value.value===void 0||R.value.value===void 0)return new Al(this,{kind:"constant",value:void 0},T.parameters);let ie=ka[this.specification.type];if(ie){let pe=ie(T.value.value,R.value.value,X);return new Al(this,{kind:"constant",value:pe},T.parameters)}return T}evaluate(T,R,X,ie,pe,_e){return T.kind==="constant"?T.value:T.evaluate(R,X,ie,pe,_e)}}class Xl extends Bs{possiblyEvaluate(T,R,X,ie){if(T.value===void 0)return new Al(this,{kind:"constant",value:void 0},R);if(T.expression.kind==="constant"){let pe=T.expression.evaluate(R,null,{},X,ie),_e=T.property.specification.type==="resolvedImage"&&typeof pe!="string"?pe.name:pe,Xe=this._calculate(_e,_e,_e,R);return new Al(this,{kind:"constant",value:Xe},R)}if(T.expression.kind==="camera"){let pe=this._calculate(T.expression.evaluate({zoom:R.zoom-1}),T.expression.evaluate({zoom:R.zoom}),T.expression.evaluate({zoom:R.zoom+1}),R);return new Al(this,{kind:"constant",value:pe},R)}return new Al(this,T.expression,R)}evaluate(T,R,X,ie,pe,_e){if(T.kind==="source"){let Xe=T.evaluate(R,X,ie,pe,_e);return this._calculate(Xe,Xe,Xe,R)}return T.kind==="composite"?this._calculate(T.evaluate({zoom:Math.floor(R.zoom)-1},X,ie),T.evaluate({zoom:Math.floor(R.zoom)},X,ie),T.evaluate({zoom:Math.floor(R.zoom)+1},X,ie),R):T.value}_calculate(T,R,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:T,to:R}:{from:X,to:R}}interpolate(T){return T}}class Gl{constructor(T){this.specification=T}possiblyEvaluate(T,R,X,ie){if(T.value!==void 0){if(T.expression.kind==="constant"){let pe=T.expression.evaluate(R,null,{},X,ie);return this._calculate(pe,pe,pe,R)}return this._calculate(T.expression.evaluate(new cs(Math.floor(R.zoom-1),R)),T.expression.evaluate(new cs(Math.floor(R.zoom),R)),T.expression.evaluate(new cs(Math.floor(R.zoom+1),R)),R)}}_calculate(T,R,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:T,to:R}:{from:X,to:R}}interpolate(T){return T}}class Nl{constructor(T){this.specification=T}possiblyEvaluate(T,R,X,ie){return!!T.expression.evaluate(R,null,{},X,ie)}interpolate(){return!1}}class ue{constructor(T){this.properties=T,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let R in T){let X=T[R];X.specification.overridable&&this.overridableProperties.push(R);let ie=this.defaultPropertyValues[R]=new sl(X,void 0),pe=this.defaultTransitionablePropertyValues[R]=new ll(X);this.defaultTransitioningPropertyValues[R]=pe.untransitioned(),this.defaultPossiblyEvaluatedValues[R]=ie.possiblyEvaluate({})}}}Si("DataDrivenProperty",Bs),Si("DataConstantProperty",ms),Si("CrossFadedDataDrivenProperty",Xl),Si("CrossFadedProperty",Gl),Si("ColorRampProperty",Nl);let w="-transition";class q extends Be{constructor(T,R){if(super(),this.id=T.id,this.type=T.type,this._featureFilter={filter:()=>!0,needGeometry:!1},T.type!=="custom"&&(this.metadata=T.metadata,this.minzoom=T.minzoom,this.maxzoom=T.maxzoom,T.type!=="background"&&(this.source=T.source,this.sourceLayer=T["source-layer"],this.filter=T.filter),R.layout&&(this._unevaluatedLayout=new Dl(R.layout)),R.paint)){this._transitionablePaint=new nl(R.paint);for(let X in T.paint)this.setPaintProperty(X,T.paint[X],{validate:!1});for(let X in T.layout)this.setLayoutProperty(X,T.layout[X],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ll(R.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(T){return T==="visibility"?this.visibility:this._unevaluatedLayout.getValue(T)}setLayoutProperty(T,R,X={}){R!=null&&this._validate(Fn,`layers.${this.id}.layout.${T}`,T,R,X)||(T!=="visibility"?this._unevaluatedLayout.setValue(T,R):this.visibility=R)}getPaintProperty(T){return T.endsWith(w)?this._transitionablePaint.getTransition(T.slice(0,-11)):this._transitionablePaint.getValue(T)}setPaintProperty(T,R,X={}){if(R!=null&&this._validate(Ki,`layers.${this.id}.paint.${T}`,T,R,X))return!1;if(T.endsWith(w))return this._transitionablePaint.setTransition(T.slice(0,-11),R||void 0),!1;{let ie=this._transitionablePaint._values[T],pe=ie.property.specification["property-type"]==="cross-faded-data-driven",_e=ie.value.isDataDriven(),Xe=ie.value;this._transitionablePaint.setValue(T,R),this._handleSpecialPaintPropertyUpdate(T);let ct=this._transitionablePaint._values[T].value;return ct.isDataDriven()||_e||pe||this._handleOverridablePaintPropertyUpdate(T,Xe,ct)}}_handleSpecialPaintPropertyUpdate(T){}_handleOverridablePaintPropertyUpdate(T,R,X){return!1}isHidden(T){return!!(this.minzoom&&T=this.maxzoom)||this.visibility==="none"}updateTransitions(T){this._transitioningPaint=this._transitionablePaint.transitioned(T,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(T,R){T.getCrossfadeParameters&&(this._crossfadeParameters=T.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(T,void 0,R)),this.paint=this._transitioningPaint.possiblyEvaluate(T,void 0,R)}serialize(){let T={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(T.layout=T.layout||{},T.layout.visibility=this.visibility),S(T,(R,X)=>!(R===void 0||X==="layout"&&!Object.keys(R).length||X==="paint"&&!Object.keys(R).length))}_validate(T,R,X,ie,pe={}){return(!pe||pe.validate!==!1)&&Li(this,T.call(yi,{key:R,layerType:this.type,objectKey:X,value:ie,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let T in this.paint._values){let R=this.paint.get(T);if(R instanceof Al&&on(R.property.specification)&&(R.value.kind==="source"||R.value.kind==="composite")&&R.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(T,R){this._structArray=T,this._pos1=R*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class fe{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(T,R){return T._trim(),R&&(T.isTransferred=!0,R.push(T.arrayBuffer)),{length:T.length,arrayBuffer:T.arrayBuffer}}static deserialize(T){let R=Object.create(this.prototype);return R.arrayBuffer=T.arrayBuffer,R.length=T.length,R.capacity=T.arrayBuffer.byteLength/R.bytesPerElement,R._refreshViews(),R}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(T){this.reserve(T),this.length=T}reserve(T){if(T>this.capacity){this.capacity=Math.max(T,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let R=this.uint8;this._refreshViews(),R&&this.uint8.set(R)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Ue(I,T=1){let R=0,X=0;return{members:I.map(ie=>{let pe=Q[ie.type].BYTES_PER_ELEMENT,_e=R=at(R,Math.max(T,pe)),Xe=ie.components||1;return X=Math.max(X,pe),R+=pe*Xe,{name:ie.name,type:ie.type,components:Xe,offset:_e}}),size:at(R,Math.max(X,T)),alignment:T}}function at(I,T){return Math.ceil(I/T)*T}class yt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,R){let X=this.length;return this.resize(X+1),this.emplace(X,T,R)}emplace(T,R,X){let ie=2*T;return this.int16[ie+0]=R,this.int16[ie+1]=X,T}}yt.prototype.bytesPerElement=4,Si("StructArrayLayout2i4",yt);class Dt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,R,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,R,X)}emplace(T,R,X,ie){let pe=3*T;return this.int16[pe+0]=R,this.int16[pe+1]=X,this.int16[pe+2]=ie,T}}Dt.prototype.bytesPerElement=6,Si("StructArrayLayout3i6",Dt);class Qt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,R,X,ie){let pe=this.length;return this.resize(pe+1),this.emplace(pe,T,R,X,ie)}emplace(T,R,X,ie,pe){let _e=4*T;return this.int16[_e+0]=R,this.int16[_e+1]=X,this.int16[_e+2]=ie,this.int16[_e+3]=pe,T}}Qt.prototype.bytesPerElement=8,Si("StructArrayLayout4i8",Qt);class rr extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe,_e){let Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,T,R,X,ie,pe,_e)}emplace(T,R,X,ie,pe,_e,Xe){let ct=6*T;return this.int16[ct+0]=R,this.int16[ct+1]=X,this.int16[ct+2]=ie,this.int16[ct+3]=pe,this.int16[ct+4]=_e,this.int16[ct+5]=Xe,T}}rr.prototype.bytesPerElement=12,Si("StructArrayLayout2i4i12",rr);class Mr extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe,_e){let Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,T,R,X,ie,pe,_e)}emplace(T,R,X,ie,pe,_e,Xe){let ct=4*T,Et=8*T;return this.int16[ct+0]=R,this.int16[ct+1]=X,this.uint8[Et+4]=ie,this.uint8[Et+5]=pe,this.uint8[Et+6]=_e,this.uint8[Et+7]=Xe,T}}Mr.prototype.bytesPerElement=8,Si("StructArrayLayout2i4ub8",Mr);class Ur extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,R){let X=this.length;return this.resize(X+1),this.emplace(X,T,R)}emplace(T,R,X){let ie=2*T;return this.float32[ie+0]=R,this.float32[ie+1]=X,T}}Ur.prototype.bytesPerElement=8,Si("StructArrayLayout2f8",Ur);class he extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe,_e,Xe,ct,Et,Yt){let hr=this.length;return this.resize(hr+1),this.emplace(hr,T,R,X,ie,pe,_e,Xe,ct,Et,Yt)}emplace(T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr){let Tr=10*T;return this.uint16[Tr+0]=R,this.uint16[Tr+1]=X,this.uint16[Tr+2]=ie,this.uint16[Tr+3]=pe,this.uint16[Tr+4]=_e,this.uint16[Tr+5]=Xe,this.uint16[Tr+6]=ct,this.uint16[Tr+7]=Et,this.uint16[Tr+8]=Yt,this.uint16[Tr+9]=hr,T}}he.prototype.bytesPerElement=20,Si("StructArrayLayout10ui20",he);class Ae extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr){let Dr=this.length;return this.resize(Dr+1),this.emplace(Dr,T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr)}emplace(T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr){let Jr=12*T;return this.int16[Jr+0]=R,this.int16[Jr+1]=X,this.int16[Jr+2]=ie,this.int16[Jr+3]=pe,this.uint16[Jr+4]=_e,this.uint16[Jr+5]=Xe,this.uint16[Jr+6]=ct,this.uint16[Jr+7]=Et,this.int16[Jr+8]=Yt,this.int16[Jr+9]=hr,this.int16[Jr+10]=Tr,this.int16[Jr+11]=Dr,T}}Ae.prototype.bytesPerElement=24,Si("StructArrayLayout4i4ui4i24",Ae);class qe extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,R,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,R,X)}emplace(T,R,X,ie){let pe=3*T;return this.float32[pe+0]=R,this.float32[pe+1]=X,this.float32[pe+2]=ie,T}}qe.prototype.bytesPerElement=12,Si("StructArrayLayout3f12",qe);class Ge extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(T){let R=this.length;return this.resize(R+1),this.emplace(R,T)}emplace(T,R){return this.uint32[1*T+0]=R,T}}Ge.prototype.bytesPerElement=4,Si("StructArrayLayout1ul4",Ge);class ft extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe,_e,Xe,ct,Et){let Yt=this.length;return this.resize(Yt+1),this.emplace(Yt,T,R,X,ie,pe,_e,Xe,ct,Et)}emplace(T,R,X,ie,pe,_e,Xe,ct,Et,Yt){let hr=10*T,Tr=5*T;return this.int16[hr+0]=R,this.int16[hr+1]=X,this.int16[hr+2]=ie,this.int16[hr+3]=pe,this.int16[hr+4]=_e,this.int16[hr+5]=Xe,this.uint32[Tr+3]=ct,this.uint16[hr+8]=Et,this.uint16[hr+9]=Yt,T}}ft.prototype.bytesPerElement=20,Si("StructArrayLayout6i1ul2ui20",ft);class ot extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe,_e){let Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,T,R,X,ie,pe,_e)}emplace(T,R,X,ie,pe,_e,Xe){let ct=6*T;return this.int16[ct+0]=R,this.int16[ct+1]=X,this.int16[ct+2]=ie,this.int16[ct+3]=pe,this.int16[ct+4]=_e,this.int16[ct+5]=Xe,T}}ot.prototype.bytesPerElement=12,Si("StructArrayLayout2i2i2i12",ot);class mt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe){let _e=this.length;return this.resize(_e+1),this.emplace(_e,T,R,X,ie,pe)}emplace(T,R,X,ie,pe,_e){let Xe=4*T,ct=8*T;return this.float32[Xe+0]=R,this.float32[Xe+1]=X,this.float32[Xe+2]=ie,this.int16[ct+6]=pe,this.int16[ct+7]=_e,T}}mt.prototype.bytesPerElement=16,Si("StructArrayLayout2f1f2i16",mt);class Gt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe,_e){let Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,T,R,X,ie,pe,_e)}emplace(T,R,X,ie,pe,_e,Xe){let ct=16*T,Et=4*T,Yt=8*T;return this.uint8[ct+0]=R,this.uint8[ct+1]=X,this.float32[Et+1]=ie,this.float32[Et+2]=pe,this.int16[Yt+6]=_e,this.int16[Yt+7]=Xe,T}}Gt.prototype.bytesPerElement=16,Si("StructArrayLayout2ub2f2i16",Gt);class er extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,R,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,R,X)}emplace(T,R,X,ie){let pe=3*T;return this.uint16[pe+0]=R,this.uint16[pe+1]=X,this.uint16[pe+2]=ie,T}}er.prototype.bytesPerElement=6,Si("StructArrayLayout3ui6",er);class sr extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr,li,Gi,fn){let Za=this.length;return this.resize(Za+1),this.emplace(Za,T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr,li,Gi,fn)}emplace(T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr,li,Gi,fn,Za){let Dn=24*T,La=12*T,So=48*T;return this.int16[Dn+0]=R,this.int16[Dn+1]=X,this.uint16[Dn+2]=ie,this.uint16[Dn+3]=pe,this.uint32[La+2]=_e,this.uint32[La+3]=Xe,this.uint32[La+4]=ct,this.uint16[Dn+10]=Et,this.uint16[Dn+11]=Yt,this.uint16[Dn+12]=hr,this.float32[La+7]=Tr,this.float32[La+8]=Dr,this.uint8[So+36]=Jr,this.uint8[So+37]=li,this.uint8[So+38]=Gi,this.uint32[La+10]=fn,this.int16[Dn+22]=Za,T}}sr.prototype.bytesPerElement=48,Si("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",sr);class wr extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr,li,Gi,fn,Za,Dn,La,So,kl,mu,Iu,su,yl,Eu,bu){let _u=this.length;return this.resize(_u+1),this.emplace(_u,T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr,li,Gi,fn,Za,Dn,La,So,kl,mu,Iu,su,yl,Eu,bu)}emplace(T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr,li,Gi,fn,Za,Dn,La,So,kl,mu,Iu,su,yl,Eu,bu,_u){let Xs=32*T,Lu=16*T;return this.int16[Xs+0]=R,this.int16[Xs+1]=X,this.int16[Xs+2]=ie,this.int16[Xs+3]=pe,this.int16[Xs+4]=_e,this.int16[Xs+5]=Xe,this.int16[Xs+6]=ct,this.int16[Xs+7]=Et,this.uint16[Xs+8]=Yt,this.uint16[Xs+9]=hr,this.uint16[Xs+10]=Tr,this.uint16[Xs+11]=Dr,this.uint16[Xs+12]=Jr,this.uint16[Xs+13]=li,this.uint16[Xs+14]=Gi,this.uint16[Xs+15]=fn,this.uint16[Xs+16]=Za,this.uint16[Xs+17]=Dn,this.uint16[Xs+18]=La,this.uint16[Xs+19]=So,this.uint16[Xs+20]=kl,this.uint16[Xs+21]=mu,this.uint16[Xs+22]=Iu,this.uint32[Lu+12]=su,this.float32[Lu+13]=yl,this.float32[Lu+14]=Eu,this.uint16[Xs+30]=bu,this.uint16[Xs+31]=_u,T}}wr.prototype.bytesPerElement=64,Si("StructArrayLayout8i15ui1ul2f2ui64",wr);class Ir extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T){let R=this.length;return this.resize(R+1),this.emplace(R,T)}emplace(T,R){return this.float32[1*T+0]=R,T}}Ir.prototype.bytesPerElement=4,Si("StructArrayLayout1f4",Ir);class ri extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,R,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,R,X)}emplace(T,R,X,ie){let pe=3*T;return this.uint16[6*T+0]=R,this.float32[pe+1]=X,this.float32[pe+2]=ie,T}}ri.prototype.bytesPerElement=12,Si("StructArrayLayout1ui2f12",ri);class si extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,R,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,R,X)}emplace(T,R,X,ie){let pe=4*T;return this.uint32[2*T+0]=R,this.uint16[pe+2]=X,this.uint16[pe+3]=ie,T}}si.prototype.bytesPerElement=8,Si("StructArrayLayout1ul2ui8",si);class Mi extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,R){let X=this.length;return this.resize(X+1),this.emplace(X,T,R)}emplace(T,R,X){let ie=2*T;return this.uint16[ie+0]=R,this.uint16[ie+1]=X,T}}Mi.prototype.bytesPerElement=4,Si("StructArrayLayout2ui4",Mi);class cn extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T){let R=this.length;return this.resize(R+1),this.emplace(R,T)}emplace(T,R){return this.uint16[1*T+0]=R,T}}cn.prototype.bytesPerElement=2,Si("StructArrayLayout1ui2",cn);class Zn extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,R,X,ie){let pe=this.length;return this.resize(pe+1),this.emplace(pe,T,R,X,ie)}emplace(T,R,X,ie,pe){let _e=4*T;return this.float32[_e+0]=R,this.float32[_e+1]=X,this.float32[_e+2]=ie,this.float32[_e+3]=pe,T}}Zn.prototype.bytesPerElement=16,Si("StructArrayLayout4f16",Zn);class Yn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new l(this.anchorPointX,this.anchorPointY)}}Yn.prototype.size=20;class Ua extends ft{get(T){return new Yn(this,T)}}Si("CollisionBoxArray",Ua);class Fo extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(T){this._structArray.uint8[this._pos1+37]=T}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(T){this._structArray.uint8[this._pos1+38]=T}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(T){this._structArray.uint32[this._pos4+10]=T}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Fo.prototype.size=48;class vl extends sr{get(T){return new Fo(this,T)}}Si("PlacedSymbolArray",vl);class Us extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(T){this._structArray.uint32[this._pos4+12]=T}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Us.prototype.size=64;class ml extends wr{get(T){return new Us(this,T)}}Si("SymbolInstanceArray",ml);class au extends Ir{getoffsetX(T){return this.float32[1*T+0]}}Si("GlyphOffsetArray",au);class Sl extends Dt{getx(T){return this.int16[3*T+0]}gety(T){return this.int16[3*T+1]}gettileUnitDistanceFromAnchor(T){return this.int16[3*T+2]}}Si("SymbolLineVertexArray",Sl);class Yl extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Yl.prototype.size=12;class ql extends ri{get(T){return new Yl(this,T)}}Si("TextAnchorOffsetArray",ql);class ou extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}ou.prototype.size=8;class Pu extends si{get(T){return new ou(this,T)}}Si("FeatureIndexArray",Pu);class nu extends yt{}class ru extends yt{}class Hu extends yt{}class $u extends rr{}class Ku extends Mr{}class Wu extends Ur{}class ju extends he{}class sf extends Ae{}class _f extends qe{}class Qu extends Ge{}class ef extends ot{}class Z extends Gt{}class le extends er{}class ke extends Mi{}let Ye=Ue([{name:"a_pos",components:2,type:"Int16"}],4),{members:nt}=Ye;class ut{constructor(T=[]){this.segments=T}prepareSegment(T,R,X,ie){let pe=this.segments[this.segments.length-1];return T>ut.MAX_VERTEX_ARRAY_LENGTH&&E(`Max vertices per segment is ${ut.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${T}`),(!pe||pe.vertexLength+T>ut.MAX_VERTEX_ARRAY_LENGTH||pe.sortKey!==ie)&&(pe={vertexOffset:R.length,primitiveOffset:X.length,vertexLength:0,primitiveLength:0},ie!==void 0&&(pe.sortKey=ie),this.segments.push(pe)),pe}get(){return this.segments}destroy(){for(let T of this.segments)for(let R in T.vaos)T.vaos[R].destroy()}static simpleSegment(T,R,X,ie){return new ut([{vertexOffset:T,primitiveOffset:R,vertexLength:X,primitiveLength:ie,vaos:{},sortKey:0}])}}function Ht(I,T){return 256*(I=M(Math.floor(I),0,255))+M(Math.floor(T),0,255)}ut.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Si("SegmentVector",ut);let wt=Ue([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var lr={exports:{}},Cr={exports:{}};Cr.exports=function(I,T){var R,X,ie,pe,_e,Xe,ct,Et;for(X=I.length-(R=3&I.length),ie=T,_e=3432918353,Xe=461845907,Et=0;Et>>16)*_e&65535)<<16)&4294967295)<<15|ct>>>17))*Xe+(((ct>>>16)*Xe&65535)<<16)&4294967295)<<13|ie>>>19))+((5*(ie>>>16)&65535)<<16)&4294967295))+((58964+(pe>>>16)&65535)<<16);switch(ct=0,R){case 3:ct^=(255&I.charCodeAt(Et+2))<<16;case 2:ct^=(255&I.charCodeAt(Et+1))<<8;case 1:ie^=ct=(65535&(ct=(ct=(65535&(ct^=255&I.charCodeAt(Et)))*_e+(((ct>>>16)*_e&65535)<<16)&4294967295)<<15|ct>>>17))*Xe+(((ct>>>16)*Xe&65535)<<16)&4294967295}return ie^=I.length,ie=2246822507*(65535&(ie^=ie>>>16))+((2246822507*(ie>>>16)&65535)<<16)&4294967295,ie=3266489909*(65535&(ie^=ie>>>13))+((3266489909*(ie>>>16)&65535)<<16)&4294967295,(ie^=ie>>>16)>>>0};var zr=Cr.exports,ui={exports:{}};ui.exports=function(I,T){for(var R,X=I.length,ie=T^X,pe=0;X>=4;)R=1540483477*(65535&(R=255&I.charCodeAt(pe)|(255&I.charCodeAt(++pe))<<8|(255&I.charCodeAt(++pe))<<16|(255&I.charCodeAt(++pe))<<24))+((1540483477*(R>>>16)&65535)<<16),ie=1540483477*(65535&ie)+((1540483477*(ie>>>16)&65535)<<16)^(R=1540483477*(65535&(R^=R>>>24))+((1540483477*(R>>>16)&65535)<<16)),X-=4,++pe;switch(X){case 3:ie^=(255&I.charCodeAt(pe+2))<<16;case 2:ie^=(255&I.charCodeAt(pe+1))<<8;case 1:ie=1540483477*(65535&(ie^=255&I.charCodeAt(pe)))+((1540483477*(ie>>>16)&65535)<<16)}return ie=1540483477*(65535&(ie^=ie>>>13))+((1540483477*(ie>>>16)&65535)<<16),(ie^=ie>>>15)>>>0};var $r=zr,Oi=ui.exports;lr.exports=$r,lr.exports.murmur3=$r,lr.exports.murmur2=Oi;var un=o(lr.exports);class pi{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(T,R,X,ie){this.ids.push(Pi(T)),this.positions.push(R,X,ie)}getPositions(T){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let R=Pi(T),X=0,ie=this.ids.length-1;for(;X>1;this.ids[_e]>=R?ie=_e:X=_e+1}let pe=[];for(;this.ids[X]===R;)pe.push({index:this.positions[3*X],start:this.positions[3*X+1],end:this.positions[3*X+2]}),X++;return pe}static serialize(T,R){let X=new Float64Array(T.ids),ie=new Uint32Array(T.positions);return ji(X,ie,0,X.length-1),R&&R.push(X.buffer,ie.buffer),{ids:X,positions:ie}}static deserialize(T){let R=new pi;return R.ids=T.ids,R.positions=T.positions,R.indexed=!0,R}}function Pi(I){let T=+I;return!isNaN(T)&&T<=Number.MAX_SAFE_INTEGER?T:un(String(I))}function ji(I,T,R,X){for(;R>1],pe=R-1,_e=X+1;for(;;){do pe++;while(I[pe]ie);if(pe>=_e)break;pn(I,pe,_e),pn(T,3*pe,3*_e),pn(T,3*pe+1,3*_e+1),pn(T,3*pe+2,3*_e+2)}_e-R`u_${ie}`),this.type=X}setUniform(T,R,X){T.set(X.constantOr(this.value))}getBinding(T,R,X){return this.type==="color"?new no(T,R):new bi(T,R)}}class Pl{constructor(T,R){this.uniformNames=R.map(X=>`u_${X}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(T,R){this.pixelRatioFrom=R.pixelRatio,this.pixelRatioTo=T.pixelRatio,this.patternFrom=R.tlbr,this.patternTo=T.tlbr}setUniform(T,R,X,ie){let pe=ie==="u_pattern_to"?this.patternTo:ie==="u_pattern_from"?this.patternFrom:ie==="u_pixel_ratio_to"?this.pixelRatioTo:ie==="u_pixel_ratio_from"?this.pixelRatioFrom:null;pe&&T.set(pe)}getBinding(T,R,X){return X.substr(0,9)==="u_pattern"?new xo(T,R):new bi(T,R)}}class pu{constructor(T,R,X,ie){this.expression=T,this.type=X,this.maxValue=0,this.paintVertexAttributes=R.map(pe=>({name:`a_${pe}`,type:"Float32",components:X==="color"?2:1,offset:0})),this.paintVertexArray=new ie}populatePaintArray(T,R,X,ie,pe){let _e=this.paintVertexArray.length,Xe=this.expression.evaluate(new cs(0),R,{},ie,[],pe);this.paintVertexArray.resize(T),this._setPaintValue(_e,T,Xe)}updatePaintArray(T,R,X,ie){let pe=this.expression.evaluate({zoom:0},X,ie);this._setPaintValue(T,R,pe)}_setPaintValue(T,R,X){if(this.type==="color"){let ie=js(X);for(let pe=T;pe`u_${Xe}_t`),this.type=X,this.useIntegerZoom=ie,this.zoom=pe,this.maxValue=0,this.paintVertexAttributes=R.map(Xe=>({name:`a_${Xe}`,type:"Float32",components:X==="color"?4:2,offset:0})),this.paintVertexArray=new _e}populatePaintArray(T,R,X,ie,pe){let _e=this.expression.evaluate(new cs(this.zoom),R,{},ie,[],pe),Xe=this.expression.evaluate(new cs(this.zoom+1),R,{},ie,[],pe),ct=this.paintVertexArray.length;this.paintVertexArray.resize(T),this._setPaintValue(ct,T,_e,Xe)}updatePaintArray(T,R,X,ie){let pe=this.expression.evaluate({zoom:this.zoom},X,ie),_e=this.expression.evaluate({zoom:this.zoom+1},X,ie);this._setPaintValue(T,R,pe,_e)}_setPaintValue(T,R,X,ie){if(this.type==="color"){let pe=js(X),_e=js(ie);for(let Xe=T;Xe`#define HAS_UNIFORM_${ie}`))}return T}getBinderAttributes(){let T=[];for(let R in this.binders){let X=this.binders[R];if(X instanceof pu||X instanceof Il)for(let ie=0;ie!0){this.programConfigurations={};for(let ie of T)this.programConfigurations[ie.id]=new Xu(ie,R,X);this.needsUpload=!1,this._featureMap=new pi,this._bufferOffset=0}populatePaintArrays(T,R,X,ie,pe,_e){for(let Xe in this.programConfigurations)this.programConfigurations[Xe].populatePaintArrays(T,R,ie,pe,_e);R.id!==void 0&&this._featureMap.add(R.id,X,this._bufferOffset,T),this._bufferOffset=T,this.needsUpload=!0}updatePaintArrays(T,R,X,ie){for(let pe of X)this.needsUpload=this.programConfigurations[pe.id].updatePaintArrays(T,this._featureMap,R,pe,ie)||this.needsUpload}get(T){return this.programConfigurations[T]}upload(T){if(this.needsUpload){for(let R in this.programConfigurations)this.programConfigurations[R].upload(T);this.needsUpload=!1}}destroy(){for(let T in this.programConfigurations)this.programConfigurations[T].destroy()}}function tf(I,T){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[I]||[I.replace(`${T}-`,"").replace(/-/g,"_")]}function ds(I,T,R){let X={color:{source:Ur,composite:Zn},number:{source:Ir,composite:Ur}},ie=function(pe){return{"line-pattern":{source:ju,composite:ju},"fill-pattern":{source:ju,composite:ju},"fill-extrusion-pattern":{source:ju,composite:ju}}[pe]}(I);return ie&&ie[R]||X[T][R]}Si("ConstantBinder",El),Si("CrossFadedConstantBinder",Pl),Si("SourceExpressionBinder",pu),Si("CrossFadedCompositeBinder",fu),Si("CompositeExpressionBinder",Il),Si("ProgramConfiguration",Xu,{omit:["_buffers"]}),Si("ProgramConfigurationSet",Vu);let Wl=8192,Au=Math.pow(2,14)-1,Tu=-Au-1;function lf(I){let T=Wl/I.extent,R=I.loadGeometry();for(let X=0;X_e.x+1||ct<_e.y||ct>_e.y+1)&&E("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return R}function hf(I,T){return{type:I.type,id:I.id,properties:I.properties,geometry:T?lf(I):[]}}function Mf(I,T,R,X,ie){I.emplaceBack(2*T+(X+1)/2,2*R+(ie+1)/2)}class pf{constructor(T){this.zoom=T.zoom,this.overscaling=T.overscaling,this.layers=T.layers,this.layerIds=this.layers.map(R=>R.id),this.index=T.index,this.hasPattern=!1,this.layoutVertexArray=new ru,this.indexArray=new le,this.segments=new ut,this.programConfigurations=new Vu(T.layers,T.zoom),this.stateDependentLayerIds=this.layers.filter(R=>R.isStateDependent()).map(R=>R.id)}populate(T,R,X){let ie=this.layers[0],pe=[],_e=null,Xe=!1;ie.type==="circle"&&(_e=ie.layout.get("circle-sort-key"),Xe=!_e.isConstant());for(let{feature:ct,id:Et,index:Yt,sourceLayerIndex:hr}of T){let Tr=this.layers[0]._featureFilter.needGeometry,Dr=hf(ct,Tr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Dr,X))continue;let Jr=Xe?_e.evaluate(Dr,{},X):void 0,li={id:Et,properties:ct.properties,type:ct.type,sourceLayerIndex:hr,index:Yt,geometry:Tr?Dr.geometry:lf(ct),patterns:{},sortKey:Jr};pe.push(li)}Xe&&pe.sort((ct,Et)=>ct.sortKey-Et.sortKey);for(let ct of pe){let{geometry:Et,index:Yt,sourceLayerIndex:hr}=ct,Tr=T[Yt].feature;this.addFeature(ct,Et,Yt,X),R.featureIndex.insert(Tr,Et,Yt,hr,this.index)}}update(T,R,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(T,R,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(T){this.uploaded||(this.layoutVertexBuffer=T.createVertexBuffer(this.layoutVertexArray,nt),this.indexBuffer=T.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(T),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(T,R,X,ie){for(let pe of R)for(let _e of pe){let Xe=_e.x,ct=_e.y;if(Xe<0||Xe>=Wl||ct<0||ct>=Wl)continue;let Et=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,T.sortKey),Yt=Et.vertexLength;Mf(this.layoutVertexArray,Xe,ct,-1,-1),Mf(this.layoutVertexArray,Xe,ct,1,-1),Mf(this.layoutVertexArray,Xe,ct,1,1),Mf(this.layoutVertexArray,Xe,ct,-1,1),this.indexArray.emplaceBack(Yt,Yt+1,Yt+2),this.indexArray.emplaceBack(Yt,Yt+3,Yt+2),Et.vertexLength+=4,Et.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,T,X,{},ie)}}function fc(I,T){for(let R=0;R1){if(Qr(I,T))return!0;for(let X=0;X1?R:R.sub(T)._mult(ie)._add(T))}function nn(I,T){let R,X,ie,pe=!1;for(let _e=0;_eT.y!=ie.y>T.y&&T.x<(ie.x-X.x)*(T.y-X.y)/(ie.y-X.y)+X.x&&(pe=!pe)}return pe}function On(I,T){let R=!1;for(let X=0,ie=I.length-1;XT.y!=_e.y>T.y&&T.x<(_e.x-pe.x)*(T.y-pe.y)/(_e.y-pe.y)+pe.x&&(R=!R)}return R}function Ln(I,T,R){let X=R[0],ie=R[2];if(I.xie.x&&T.x>ie.x||I.yie.y&&T.y>ie.y)return!1;let pe=O(I,T,R[0]);return pe!==O(I,T,R[1])||pe!==O(I,T,R[2])||pe!==O(I,T,R[3])}function wn(I,T,R){let X=T.paint.get(I).value;return X.kind==="constant"?X.value:R.programConfigurations.get(T.id).getMaxValue(I)}function Ls(I){return Math.sqrt(I[0]*I[0]+I[1]*I[1])}function ua(I,T,R,X,ie){if(!T[0]&&!T[1])return I;let pe=l.convert(T)._mult(ie);R==="viewport"&&pe._rotate(-X);let _e=[];for(let Xe=0;XeUi(Gi,li))}(Et,ct),Dr=hr?Yt*Xe:Yt;for(let Jr of ie)for(let li of Jr){let Gi=hr?li:Ui(li,ct),fn=Dr,Za=hs([],[li.x,li.y,0,1],ct);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?fn*=Za[3]/_e.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(fn*=_e.cameraToCenterDistance/Za[3]),Fe(Tr,Gi,fn))return!0}return!1}}function Ui(I,T){let R=hs([],[I.x,I.y,0,1],T);return new l(R[0]/R[3],R[1]/R[3])}class ro extends pf{}let na;Si("HeatmapBucket",ro,{omit:["layers"]});var Bn={get paint(){return na=na||new ue({"heatmap-radius":new Bs(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Bs(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new ms(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Nl(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new ms(ce.paint_heatmap["heatmap-opacity"])})}};function In(I,{width:T,height:R},X,ie){if(ie){if(ie instanceof Uint8ClampedArray)ie=new Uint8Array(ie.buffer);else if(ie.length!==T*R*X)throw new RangeError(`mismatched image size. expected: ${ie.length} but got: ${T*R*X}`)}else ie=new Uint8Array(T*R*X);return I.width=T,I.height=R,I.data=ie,I}function Va(I,{width:T,height:R},X){if(T===I.width&&R===I.height)return;let ie=In({},{width:T,height:R},X);_s(I,ie,{x:0,y:0},{x:0,y:0},{width:Math.min(I.width,T),height:Math.min(I.height,R)},X),I.width=T,I.height=R,I.data=ie.data}function _s(I,T,R,X,ie,pe){if(ie.width===0||ie.height===0)return T;if(ie.width>I.width||ie.height>I.height||R.x>I.width-ie.width||R.y>I.height-ie.height)throw new RangeError("out of range source coordinates for image copy");if(ie.width>T.width||ie.height>T.height||X.x>T.width-ie.width||X.y>T.height-ie.height)throw new RangeError("out of range destination coordinates for image copy");let _e=I.data,Xe=T.data;if(_e===Xe)throw new Error("srcData equals dstData, so image is already copied");for(let ct=0;ct{T[I.evaluationKey]=ct;let Et=I.expression.evaluate(T);ie.data[_e+Xe+0]=Math.floor(255*Et.r/Et.a),ie.data[_e+Xe+1]=Math.floor(255*Et.g/Et.a),ie.data[_e+Xe+2]=Math.floor(255*Et.b/Et.a),ie.data[_e+Xe+3]=Math.floor(255*Et.a)};if(I.clips)for(let _e=0,Xe=0;_e80*R){Xe=1/0,ct=1/0;let Yt=-1/0,hr=-1/0;for(let Tr=R;TrYt&&(Yt=Dr),Jr>hr&&(hr=Jr)}Et=Math.max(Yt-Xe,hr-ct),Et=Et!==0?32767/Et:0}return Cf(pe,_e,R,Xe,ct,Et,0),_e}function gf(I,T,R,X,ie){let pe;if(ie===function(_e,Xe,ct,Et){let Yt=0;for(let hr=Xe,Tr=ct-Et;hr0)for(let _e=T;_e=T;_e-=X)pe=nr(_e/X|0,I[_e],I[_e+1],pe);return pe&&ne(pe,pe.next)&&(Qe(pe),pe=pe.next),pe}function xf(I,T){if(!I)return I;T||(T=I);let R,X=I;do if(R=!1,X.steiner||!ne(X,X.next)&&ye(X.prev,X,X.next)!==0)X=X.next;else{if(Qe(X),X=T=X.prev,X===X.next)break;R=!0}while(R||X!==T);return T}function Cf(I,T,R,X,ie,pe,_e){if(!I)return;!_e&&pe&&function(ct,Et,Yt,hr){let Tr=ct;do Tr.z===0&&(Tr.z=D(Tr.x,Tr.y,Et,Yt,hr)),Tr.prevZ=Tr.prev,Tr.nextZ=Tr.next,Tr=Tr.next;while(Tr!==ct);Tr.prevZ.nextZ=null,Tr.prevZ=null,function(Dr){let Jr,li=1;do{let Gi,fn=Dr;Dr=null;let Za=null;for(Jr=0;fn;){Jr++;let Dn=fn,La=0;for(let kl=0;kl0||So>0&&Dn;)La!==0&&(So===0||!Dn||fn.z<=Dn.z)?(Gi=fn,fn=fn.nextZ,La--):(Gi=Dn,Dn=Dn.nextZ,So--),Za?Za.nextZ=Gi:Dr=Gi,Gi.prevZ=Za,Za=Gi;fn=Dn}Za.nextZ=null,li*=2}while(Jr>1)}(Tr)}(I,X,ie,pe);let Xe=I;for(;I.prev!==I.next;){let ct=I.prev,Et=I.next;if(pe?cf(I,X,ie,pe):Gu(I))T.push(ct.i,I.i,Et.i),Qe(I),I=Et.next,Xe=Et.next;else if((I=Et)===Xe){_e?_e===1?Cf(I=mf(xf(I),T),T,R,X,ie,pe,2):_e===2&&Fl(I,T,R,X,ie,pe):Cf(xf(I),T,R,X,ie,pe,1);break}}}function Gu(I){let T=I.prev,R=I,X=I.next;if(ye(T,R,X)>=0)return!1;let ie=T.x,pe=R.x,_e=X.x,Xe=T.y,ct=R.y,Et=X.y,Yt=iepe?ie>_e?ie:_e:pe>_e?pe:_e,Dr=Xe>ct?Xe>Et?Xe:Et:ct>Et?ct:Et,Jr=X.next;for(;Jr!==T;){if(Jr.x>=Yt&&Jr.x<=Tr&&Jr.y>=hr&&Jr.y<=Dr&&B(ie,Xe,pe,ct,_e,Et,Jr.x,Jr.y)&&ye(Jr.prev,Jr,Jr.next)>=0)return!1;Jr=Jr.next}return!0}function cf(I,T,R,X){let ie=I.prev,pe=I,_e=I.next;if(ye(ie,pe,_e)>=0)return!1;let Xe=ie.x,ct=pe.x,Et=_e.x,Yt=ie.y,hr=pe.y,Tr=_e.y,Dr=Xect?Xe>Et?Xe:Et:ct>Et?ct:Et,Gi=Yt>hr?Yt>Tr?Yt:Tr:hr>Tr?hr:Tr,fn=D(Dr,Jr,T,R,X),Za=D(li,Gi,T,R,X),Dn=I.prevZ,La=I.nextZ;for(;Dn&&Dn.z>=fn&&La&&La.z<=Za;){if(Dn.x>=Dr&&Dn.x<=li&&Dn.y>=Jr&&Dn.y<=Gi&&Dn!==ie&&Dn!==_e&&B(Xe,Yt,ct,hr,Et,Tr,Dn.x,Dn.y)&&ye(Dn.prev,Dn,Dn.next)>=0||(Dn=Dn.prevZ,La.x>=Dr&&La.x<=li&&La.y>=Jr&&La.y<=Gi&&La!==ie&&La!==_e&&B(Xe,Yt,ct,hr,Et,Tr,La.x,La.y)&&ye(La.prev,La,La.next)>=0))return!1;La=La.nextZ}for(;Dn&&Dn.z>=fn;){if(Dn.x>=Dr&&Dn.x<=li&&Dn.y>=Jr&&Dn.y<=Gi&&Dn!==ie&&Dn!==_e&&B(Xe,Yt,ct,hr,Et,Tr,Dn.x,Dn.y)&&ye(Dn.prev,Dn,Dn.next)>=0)return!1;Dn=Dn.prevZ}for(;La&&La.z<=Za;){if(La.x>=Dr&&La.x<=li&&La.y>=Jr&&La.y<=Gi&&La!==ie&&La!==_e&&B(Xe,Yt,ct,hr,Et,Tr,La.x,La.y)&&ye(La.prev,La,La.next)>=0)return!1;La=La.nextZ}return!0}function mf(I,T){let R=I;do{let X=R.prev,ie=R.next.next;!ne(X,ie)&&Ee(X,R,R.next,ie)&&ur(X,ie)&&ur(ie,X)&&(T.push(X.i,R.i,ie.i),Qe(R),Qe(R.next),R=I=ie),R=R.next}while(R!==I);return xf(R)}function Fl(I,T,R,X,ie,pe){let _e=I;do{let Xe=_e.next.next;for(;Xe!==_e.prev;){if(_e.i!==Xe.i&&K(_e,Xe)){let ct=Sr(_e,Xe);return _e=xf(_e,_e.next),ct=xf(ct,ct.next),Cf(_e,T,R,X,ie,pe,0),void Cf(ct,T,R,X,ie,pe,0)}Xe=Xe.next}_e=_e.next}while(_e!==I)}function bf(I,T){return I.x-T.x}function cu(I,T){let R=function(ie,pe){let _e=pe,Xe=ie.x,ct=ie.y,Et,Yt=-1/0;do{if(ct<=_e.y&&ct>=_e.next.y&&_e.next.y!==_e.y){let li=_e.x+(ct-_e.y)*(_e.next.x-_e.x)/(_e.next.y-_e.y);if(li<=Xe&&li>Yt&&(Yt=li,Et=_e.x<_e.next.x?_e:_e.next,li===Xe))return Et}_e=_e.next}while(_e!==pe);if(!Et)return null;let hr=Et,Tr=Et.x,Dr=Et.y,Jr=1/0;_e=Et;do{if(Xe>=_e.x&&_e.x>=Tr&&Xe!==_e.x&&B(ctEt.x||_e.x===Et.x&&Y(Et,_e)))&&(Et=_e,Jr=li)}_e=_e.next}while(_e!==hr);return Et}(I,T);if(!R)return T;let X=Sr(R,I);return xf(X,X.next),xf(R,R.next)}function Y(I,T){return ye(I.prev,I,T.prev)<0&&ye(T.next,I,I.next)<0}function D(I,T,R,X,ie){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=(I-R)*ie|0)|I<<8))|I<<4))|I<<2))|I<<1))|(T=1431655765&((T=858993459&((T=252645135&((T=16711935&((T=(T-X)*ie|0)|T<<8))|T<<4))|T<<2))|T<<1))<<1}function J(I){let T=I,R=I;do(T.x=(I-_e)*(pe-Xe)&&(I-_e)*(X-Xe)>=(R-_e)*(T-Xe)&&(R-_e)*(pe-Xe)>=(ie-_e)*(X-Xe)}function K(I,T){return I.next.i!==T.i&&I.prev.i!==T.i&&!function(R,X){let ie=R;do{if(ie.i!==R.i&&ie.next.i!==R.i&&ie.i!==X.i&&ie.next.i!==X.i&&Ee(ie,ie.next,R,X))return!0;ie=ie.next}while(ie!==R);return!1}(I,T)&&(ur(I,T)&&ur(T,I)&&function(R,X){let ie=R,pe=!1,_e=(R.x+X.x)/2,Xe=(R.y+X.y)/2;do ie.y>Xe!=ie.next.y>Xe&&ie.next.y!==ie.y&&_e<(ie.next.x-ie.x)*(Xe-ie.y)/(ie.next.y-ie.y)+ie.x&&(pe=!pe),ie=ie.next;while(ie!==R);return pe}(I,T)&&(ye(I.prev,I,T.prev)||ye(I,T.prev,T))||ne(I,T)&&ye(I.prev,I,I.next)>0&&ye(T.prev,T,T.next)>0)}function ye(I,T,R){return(T.y-I.y)*(R.x-T.x)-(T.x-I.x)*(R.y-T.y)}function ne(I,T){return I.x===T.x&&I.y===T.y}function Ee(I,T,R,X){let ie=Ct(ye(I,T,R)),pe=Ct(ye(I,T,X)),_e=Ct(ye(R,X,I)),Xe=Ct(ye(R,X,T));return ie!==pe&&_e!==Xe||!(ie!==0||!Je(I,R,T))||!(pe!==0||!Je(I,X,T))||!(_e!==0||!Je(R,I,X))||!(Xe!==0||!Je(R,T,X))}function Je(I,T,R){return T.x<=Math.max(I.x,R.x)&&T.x>=Math.min(I.x,R.x)&&T.y<=Math.max(I.y,R.y)&&T.y>=Math.min(I.y,R.y)}function Ct(I){return I>0?1:I<0?-1:0}function ur(I,T){return ye(I.prev,I,I.next)<0?ye(I,T,I.next)>=0&&ye(I,I.prev,T)>=0:ye(I,T,I.prev)<0||ye(I,I.next,T)<0}function Sr(I,T){let R=pt(I.i,I.x,I.y),X=pt(T.i,T.x,T.y),ie=I.next,pe=T.prev;return I.next=T,T.prev=I,R.next=ie,ie.prev=R,X.next=R,R.prev=X,pe.next=X,X.prev=pe,X}function nr(I,T,R,X){let ie=pt(I,T,R);return X?(ie.next=X.next,ie.prev=X,X.next.prev=ie,X.next=ie):(ie.prev=ie,ie.next=ie),ie}function Qe(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function pt(I,T,R){return{i:I,x:T,y:R,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Tt(I,T,R){let X=R.patternDependencies,ie=!1;for(let pe of T){let _e=pe.paint.get(`${I}-pattern`);_e.isConstant()||(ie=!0);let Xe=_e.constantOr(null);Xe&&(ie=!0,X[Xe.to]=!0,X[Xe.from]=!0)}return ie}function Xt(I,T,R,X,ie){let pe=ie.patternDependencies;for(let _e of T){let Xe=_e.paint.get(`${I}-pattern`).value;if(Xe.kind!=="constant"){let ct=Xe.evaluate({zoom:X-1},R,{},ie.availableImages),Et=Xe.evaluate({zoom:X},R,{},ie.availableImages),Yt=Xe.evaluate({zoom:X+1},R,{},ie.availableImages);ct=ct&&ct.name?ct.name:ct,Et=Et&&Et.name?Et.name:Et,Yt=Yt&&Yt.name?Yt.name:Yt,pe[ct]=!0,pe[Et]=!0,pe[Yt]=!0,R.patterns[_e.id]={min:ct,mid:Et,max:Yt}}}return R}class ir{constructor(T){this.zoom=T.zoom,this.overscaling=T.overscaling,this.layers=T.layers,this.layerIds=this.layers.map(R=>R.id),this.index=T.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Hu,this.indexArray=new le,this.indexArray2=new ke,this.programConfigurations=new Vu(T.layers,T.zoom),this.segments=new ut,this.segments2=new ut,this.stateDependentLayerIds=this.layers.filter(R=>R.isStateDependent()).map(R=>R.id)}populate(T,R,X){this.hasPattern=Tt("fill",this.layers,R);let ie=this.layers[0].layout.get("fill-sort-key"),pe=!ie.isConstant(),_e=[];for(let{feature:Xe,id:ct,index:Et,sourceLayerIndex:Yt}of T){let hr=this.layers[0]._featureFilter.needGeometry,Tr=hf(Xe,hr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Tr,X))continue;let Dr=pe?ie.evaluate(Tr,{},X,R.availableImages):void 0,Jr={id:ct,properties:Xe.properties,type:Xe.type,sourceLayerIndex:Yt,index:Et,geometry:hr?Tr.geometry:lf(Xe),patterns:{},sortKey:Dr};_e.push(Jr)}pe&&_e.sort((Xe,ct)=>Xe.sortKey-ct.sortKey);for(let Xe of _e){let{geometry:ct,index:Et,sourceLayerIndex:Yt}=Xe;if(this.hasPattern){let hr=Xt("fill",this.layers,Xe,this.zoom,R);this.patternFeatures.push(hr)}else this.addFeature(Xe,ct,Et,X,{});R.featureIndex.insert(T[Et].feature,ct,Et,Yt,this.index)}}update(T,R,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(T,R,this.stateDependentLayers,X)}addFeatures(T,R,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,R,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(T){this.uploaded||(this.layoutVertexBuffer=T.createVertexBuffer(this.layoutVertexArray,Ef),this.indexBuffer=T.createIndexBuffer(this.indexArray),this.indexBuffer2=T.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(T),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(T,R,X,ie,pe){for(let _e of Ys(R,500)){let Xe=0;for(let Dr of _e)Xe+=Dr.length;let ct=this.segments.prepareSegment(Xe,this.layoutVertexArray,this.indexArray),Et=ct.vertexLength,Yt=[],hr=[];for(let Dr of _e){if(Dr.length===0)continue;Dr!==_e[0]&&hr.push(Yt.length/2);let Jr=this.segments2.prepareSegment(Dr.length,this.layoutVertexArray,this.indexArray2),li=Jr.vertexLength;this.layoutVertexArray.emplaceBack(Dr[0].x,Dr[0].y),this.indexArray2.emplaceBack(li+Dr.length-1,li),Yt.push(Dr[0].x),Yt.push(Dr[0].y);for(let Gi=1;Gi>3}if(ie--,X===1||X===2)pe+=I.readSVarint(),_e+=I.readSVarint(),X===1&&(T&&Xe.push(T),T=[]),T.push(new ci(pe,_e));else{if(X!==7)throw new Error("unknown command "+X);T&&T.push(T[0].clone())}}return T&&Xe.push(T),Xe},Yi.prototype.bbox=function(){var I=this._pbf;I.pos=this._geometry;for(var T=I.readVarint()+I.pos,R=1,X=0,ie=0,pe=0,_e=1/0,Xe=-1/0,ct=1/0,Et=-1/0;I.pos>3}if(X--,R===1||R===2)(ie+=I.readSVarint())<_e&&(_e=ie),ie>Xe&&(Xe=ie),(pe+=I.readSVarint())Et&&(Et=pe);else if(R!==7)throw new Error("unknown command "+R)}return[_e,ct,Xe,Et]},Yi.prototype.toGeoJSON=function(I,T,R){var X,ie,pe=this.extent*Math.pow(2,R),_e=this.extent*I,Xe=this.extent*T,ct=this.loadGeometry(),Et=Yi.types[this.type];function Yt(Dr){for(var Jr=0;Jr>3;ie=_e===1?X.readString():_e===2?X.readFloat():_e===3?X.readDouble():_e===4?X.readVarint64():_e===5?X.readVarint():_e===6?X.readSVarint():_e===7?X.readBoolean():null}return ie}(R))}Pn.prototype.feature=function(I){if(I<0||I>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[I];var T=this._pbf.readVarint()+this._pbf.pos;return new ca(this._pbf,T,this.extent,this._keys,this._values)};var xa=Tn;function Zo(I,T,R){if(I===3){var X=new xa(R,R.readVarint()+R.pos);X.length&&(T[X.name]=X)}}Br.VectorTile=function(I,T){this.layers=I.readFields(Zo,{},T)},Br.VectorTileFeature=Cn,Br.VectorTileLayer=Tn;let iu=Br.VectorTileFeature.types,yu=Math.pow(2,13);function Fu(I,T,R,X,ie,pe,_e,Xe){I.emplaceBack(T,R,2*Math.floor(X*yu)+_e,ie*yu*2,pe*yu*2,Math.round(Xe))}class vu{constructor(T){this.zoom=T.zoom,this.overscaling=T.overscaling,this.layers=T.layers,this.layerIds=this.layers.map(R=>R.id),this.index=T.index,this.hasPattern=!1,this.layoutVertexArray=new $u,this.centroidVertexArray=new nu,this.indexArray=new le,this.programConfigurations=new Vu(T.layers,T.zoom),this.segments=new ut,this.stateDependentLayerIds=this.layers.filter(R=>R.isStateDependent()).map(R=>R.id)}populate(T,R,X){this.features=[],this.hasPattern=Tt("fill-extrusion",this.layers,R);for(let{feature:ie,id:pe,index:_e,sourceLayerIndex:Xe}of T){let ct=this.layers[0]._featureFilter.needGeometry,Et=hf(ie,ct);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Et,X))continue;let Yt={id:pe,sourceLayerIndex:Xe,index:_e,geometry:ct?Et.geometry:lf(ie),properties:ie.properties,type:ie.type,patterns:{}};this.hasPattern?this.features.push(Xt("fill-extrusion",this.layers,Yt,this.zoom,R)):this.addFeature(Yt,Yt.geometry,_e,X,{}),R.featureIndex.insert(ie,Yt.geometry,_e,Xe,this.index,!0)}}addFeatures(T,R,X){for(let ie of this.features){let{geometry:pe}=ie;this.addFeature(ie,pe,ie.index,R,X)}}update(T,R,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(T,R,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(T){this.uploaded||(this.layoutVertexBuffer=T.createVertexBuffer(this.layoutVertexArray,Ar),this.centroidVertexBuffer=T.createVertexBuffer(this.centroidVertexArray,Pt.members,!0),this.indexBuffer=T.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(T),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(T,R,X,ie,pe){for(let _e of Ys(R,500)){let Xe={x:0,y:0,vertexCount:0},ct=0;for(let Jr of _e)ct+=Jr.length;let Et=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Jr of _e){if(Jr.length===0||Ju(Jr))continue;let li=0;for(let Gi=0;Gi=1){let Za=Jr[Gi-1];if(!zu(fn,Za)){Et.vertexLength+4>ut.MAX_VERTEX_ARRAY_LENGTH&&(Et=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Dn=fn.sub(Za)._perp()._unit(),La=Za.dist(fn);li+La>32768&&(li=0),Fu(this.layoutVertexArray,fn.x,fn.y,Dn.x,Dn.y,0,0,li),Fu(this.layoutVertexArray,fn.x,fn.y,Dn.x,Dn.y,0,1,li),Xe.x+=2*fn.x,Xe.y+=2*fn.y,Xe.vertexCount+=2,li+=La,Fu(this.layoutVertexArray,Za.x,Za.y,Dn.x,Dn.y,0,0,li),Fu(this.layoutVertexArray,Za.x,Za.y,Dn.x,Dn.y,0,1,li),Xe.x+=2*Za.x,Xe.y+=2*Za.y,Xe.vertexCount+=2;let So=Et.vertexLength;this.indexArray.emplaceBack(So,So+2,So+1),this.indexArray.emplaceBack(So+1,So+2,So+3),Et.vertexLength+=4,Et.primitiveLength+=2}}}}if(Et.vertexLength+ct>ut.MAX_VERTEX_ARRAY_LENGTH&&(Et=this.segments.prepareSegment(ct,this.layoutVertexArray,this.indexArray)),iu[T.type]!=="Polygon")continue;let Yt=[],hr=[],Tr=Et.vertexLength;for(let Jr of _e)if(Jr.length!==0){Jr!==_e[0]&&hr.push(Yt.length/2);for(let li=0;liWl)||I.y===T.y&&(I.y<0||I.y>Wl)}function Ju(I){return I.every(T=>T.x<0)||I.every(T=>T.x>Wl)||I.every(T=>T.y<0)||I.every(T=>T.y>Wl)}let Vf;Si("FillExtrusionBucket",vu,{omit:["layers","features"]});var wd={get paint(){return Vf=Vf||new ue({"fill-extrusion-opacity":new ms(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Bs(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Xl(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Bs(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Bs(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ms(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ad extends q{constructor(T){super(T,wd)}createBucket(T){return new vu(T)}queryRadius(){return Ls(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(T,R,X,ie,pe,_e,Xe,ct){let Et=ua(T,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),_e.angle,Xe),Yt=this.paint.get("fill-extrusion-height").evaluate(R,X),hr=this.paint.get("fill-extrusion-base").evaluate(R,X),Tr=function(Jr,li,Gi,fn){let Za=[];for(let Dn of Jr){let La=[Dn.x,Dn.y,0,1];hs(La,La,li),Za.push(new l(La[0]/La[3],La[1]/La[3]))}return Za}(Et,ct),Dr=function(Jr,li,Gi,fn){let Za=[],Dn=[],La=fn[8]*li,So=fn[9]*li,kl=fn[10]*li,mu=fn[11]*li,Iu=fn[8]*Gi,su=fn[9]*Gi,yl=fn[10]*Gi,Eu=fn[11]*Gi;for(let bu of Jr){let _u=[],Xs=[];for(let Lu of bu){let xu=Lu.x,qu=Lu.y,vc=fn[0]*xu+fn[4]*qu+fn[12],cc=fn[1]*xu+fn[5]*qu+fn[13],Dh=fn[2]*xu+fn[6]*qu+fn[14],Qp=fn[3]*xu+fn[7]*qu+fn[15],fd=Dh+kl,Rh=Qp+mu,Wd=vc+Iu,jd=cc+su,Xd=Dh+yl,$c=Qp+Eu,Fh=new l((vc+La)/Rh,(cc+So)/Rh);Fh.z=fd/Rh,_u.push(Fh);let Cd=new l(Wd/$c,jd/$c);Cd.z=Xd/$c,Xs.push(Cd)}Za.push(_u),Dn.push(Xs)}return[Za,Dn]}(ie,hr,Yt,ct);return function(Jr,li,Gi){let fn=1/0;Bt(Gi,li)&&(fn=Kp(Gi,li[0]));for(let Za=0;ZaR.id),this.index=T.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(R=>{this.gradients[R.id]={}}),this.layoutVertexArray=new Ku,this.layoutVertexArray2=new Wu,this.indexArray=new le,this.programConfigurations=new Vu(T.layers,T.zoom),this.segments=new ut,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(R=>R.isStateDependent()).map(R=>R.id)}populate(T,R,X){this.hasPattern=Tt("line",this.layers,R);let ie=this.layers[0].layout.get("line-sort-key"),pe=!ie.isConstant(),_e=[];for(let{feature:Xe,id:ct,index:Et,sourceLayerIndex:Yt}of T){let hr=this.layers[0]._featureFilter.needGeometry,Tr=hf(Xe,hr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Tr,X))continue;let Dr=pe?ie.evaluate(Tr,{},X):void 0,Jr={id:ct,properties:Xe.properties,type:Xe.type,sourceLayerIndex:Yt,index:Et,geometry:hr?Tr.geometry:lf(Xe),patterns:{},sortKey:Dr};_e.push(Jr)}pe&&_e.sort((Xe,ct)=>Xe.sortKey-ct.sortKey);for(let Xe of _e){let{geometry:ct,index:Et,sourceLayerIndex:Yt}=Xe;if(this.hasPattern){let hr=Xt("line",this.layers,Xe,this.zoom,R);this.patternFeatures.push(hr)}else this.addFeature(Xe,ct,Et,X,{});R.featureIndex.insert(T[Et].feature,ct,Et,Yt,this.index)}}update(T,R,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(T,R,this.stateDependentLayers,X)}addFeatures(T,R,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,R,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(T){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=T.createVertexBuffer(this.layoutVertexArray2,yv)),this.layoutVertexBuffer=T.createVertexBuffer(this.layoutVertexArray,mv),this.indexBuffer=T.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(T),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(T){if(T.properties&&Object.prototype.hasOwnProperty.call(T.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(T.properties,"mapbox_clip_end"))return{start:+T.properties.mapbox_clip_start,end:+T.properties.mapbox_clip_end}}addFeature(T,R,X,ie,pe){let _e=this.layers[0].layout,Xe=_e.get("line-join").evaluate(T,{}),ct=_e.get("line-cap"),Et=_e.get("line-miter-limit"),Yt=_e.get("line-round-limit");this.lineClips=this.lineFeatureClips(T);for(let hr of R)this.addLine(hr,T,Xe,ct,Et,Yt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,T,X,pe,ie)}addLine(T,R,X,ie,pe,_e){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let fn=0;fn=2&&T[ct-1].equals(T[ct-2]);)ct--;let Et=0;for(;Et0;if(mu&&fn>Et){let Eu=Tr.dist(Dr);if(Eu>2*Yt){let bu=Tr.sub(Tr.sub(Dr)._mult(Yt/Eu)._round());this.updateDistance(Dr,bu),this.addCurrentVertex(bu,li,0,0,hr),Dr=bu}}let su=Dr&&Jr,yl=su?X:Xe?"butt":ie;if(su&&yl==="round"&&(So<_e?yl="miter":So<=2&&(yl="fakeround")),yl==="miter"&&So>pe&&(yl="bevel"),yl==="bevel"&&(So>2&&(yl="flipbevel"),So100)Za=Gi.mult(-1);else{let Eu=So*li.add(Gi).mag()/li.sub(Gi).mag();Za._perp()._mult(Eu*(Iu?-1:1))}this.addCurrentVertex(Tr,Za,0,0,hr),this.addCurrentVertex(Tr,Za.mult(-1),0,0,hr)}else if(yl==="bevel"||yl==="fakeround"){let Eu=-Math.sqrt(So*So-1),bu=Iu?Eu:0,_u=Iu?0:Eu;if(Dr&&this.addCurrentVertex(Tr,li,bu,_u,hr),yl==="fakeround"){let Xs=Math.round(180*kl/Math.PI/20);for(let Lu=1;Lu2*Yt){let bu=Tr.add(Jr.sub(Tr)._mult(Yt/Eu)._round());this.updateDistance(Tr,bu),this.addCurrentVertex(bu,Gi,0,0,hr),Tr=bu}}}}addCurrentVertex(T,R,X,ie,pe,_e=!1){let Xe=R.y*ie-R.x,ct=-R.y-R.x*ie;this.addHalfVertex(T,R.x+R.y*X,R.y-R.x*X,_e,!1,X,pe),this.addHalfVertex(T,Xe,ct,_e,!0,-ie,pe),this.distance>Pp/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(T,R,X,ie,pe,_e))}addHalfVertex({x:T,y:R},X,ie,pe,_e,Xe,ct){let Et=.5*(this.lineClips?this.scaledDistance*(Pp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((T<<1)+(pe?1:0),(R<<1)+(_e?1:0),Math.round(63*X)+128,Math.round(63*ie)+128,1+(Xe===0?0:Xe<0?-1:1)|(63&Et)<<2,Et>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Yt=ct.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Yt),ct.primitiveLength++),_e?this.e2=Yt:this.e1=Yt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(T,R){this.distance+=T.dist(R),this.updateScaledDistance()}}let zp,hg;Si("LineBucket",Jp,{omit:["layers","patternFeatures"]});var dm={get paint(){return hg=hg||new ue({"line-opacity":new Bs(ce.paint_line["line-opacity"]),"line-color":new Bs(ce.paint_line["line-color"]),"line-translate":new ms(ce.paint_line["line-translate"]),"line-translate-anchor":new ms(ce.paint_line["line-translate-anchor"]),"line-width":new Bs(ce.paint_line["line-width"]),"line-gap-width":new Bs(ce.paint_line["line-gap-width"]),"line-offset":new Bs(ce.paint_line["line-offset"]),"line-blur":new Bs(ce.paint_line["line-blur"]),"line-dasharray":new Gl(ce.paint_line["line-dasharray"]),"line-pattern":new Xl(ce.paint_line["line-pattern"]),"line-gradient":new Nl(ce.paint_line["line-gradient"])})},get layout(){return zp=zp||new ue({"line-cap":new ms(ce.layout_line["line-cap"]),"line-join":new Bs(ce.layout_line["line-join"]),"line-miter-limit":new ms(ce.layout_line["line-miter-limit"]),"line-round-limit":new ms(ce.layout_line["line-round-limit"]),"line-sort-key":new Bs(ce.layout_line["line-sort-key"])})}};class vh extends Bs{possiblyEvaluate(T,R){return R=new cs(Math.floor(R.zoom),{now:R.now,fadeDuration:R.fadeDuration,zoomHistory:R.zoomHistory,transition:R.transition}),super.possiblyEvaluate(T,R)}evaluate(T,R,X,ie){return R=L({},R,{zoom:Math.floor(R.zoom)}),super.evaluate(T,R,X,ie)}}let pm;class dg extends q{constructor(T){super(T,dm),this.gradientVersion=0,pm||(pm=new vh(dm.paint.properties["line-width"].specification),pm.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(T){if(T==="line-gradient"){let R=this.gradientExpression();this.stepInterpolant=!!function(X){return X._styleExpression!==void 0}(R)&&R._styleExpression.expression instanceof Xi,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(T,R){super.recalculate(T,R),this.paint._values["line-floorwidth"]=pm.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,T)}createBucket(T){return new Jp(T)}queryRadius(T){let R=T,X=Jh(wn("line-width",this,R),wn("line-gap-width",this,R)),ie=wn("line-offset",this,R);return X/2+Math.abs(ie)+Ls(this.paint.get("line-translate"))}queryIntersectsFeature(T,R,X,ie,pe,_e,Xe){let ct=ua(T,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),_e.angle,Xe),Et=Xe/2*Jh(this.paint.get("line-width").evaluate(R,X),this.paint.get("line-gap-width").evaluate(R,X)),Yt=this.paint.get("line-offset").evaluate(R,X);return Yt&&(ie=function(hr,Tr){let Dr=[];for(let Jr=0;Jr=3){for(let Gi=0;Gi0?T+2*I:I}let ay=Ue([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),k1=Ue([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ue([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let C1=Ue([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Ue([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let pg=Ue([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),oy=Ue([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function sy(I,T,R){return I.sections.forEach(X=>{X.text=function(ie,pe,_e){let Xe=pe.layout.get("text-transform").evaluate(_e,{});return Xe==="uppercase"?ie=ie.toLocaleUpperCase():Xe==="lowercase"&&(ie=ie.toLocaleLowerCase()),Js.applyArabicShaping&&(ie=Js.applyArabicShaping(ie)),ie}(X.text,T,R)}),I}Ue([{name:"triangle",components:3,type:"Uint16"}]),Ue([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ue([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Ue([{type:"Float32",name:"offsetX"}]),Ue([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Ue([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let wc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var jf=24,Ed=ic,vg=function(I,T,R,X,ie){var pe,_e,Xe=8*ie-X-1,ct=(1<>1,Yt=-7,hr=R?ie-1:0,Tr=R?-1:1,Dr=I[T+hr];for(hr+=Tr,pe=Dr&(1<<-Yt)-1,Dr>>=-Yt,Yt+=Xe;Yt>0;pe=256*pe+I[T+hr],hr+=Tr,Yt-=8);for(_e=pe&(1<<-Yt)-1,pe>>=-Yt,Yt+=X;Yt>0;_e=256*_e+I[T+hr],hr+=Tr,Yt-=8);if(pe===0)pe=1-Et;else{if(pe===ct)return _e?NaN:1/0*(Dr?-1:1);_e+=Math.pow(2,X),pe-=Et}return(Dr?-1:1)*_e*Math.pow(2,pe-X)},L1=function(I,T,R,X,ie,pe){var _e,Xe,ct,Et=8*pe-ie-1,Yt=(1<>1,Tr=ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Dr=X?0:pe-1,Jr=X?1:-1,li=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(Xe=isNaN(T)?1:0,_e=Yt):(_e=Math.floor(Math.log(T)/Math.LN2),T*(ct=Math.pow(2,-_e))<1&&(_e--,ct*=2),(T+=_e+hr>=1?Tr/ct:Tr*Math.pow(2,1-hr))*ct>=2&&(_e++,ct/=2),_e+hr>=Yt?(Xe=0,_e=Yt):_e+hr>=1?(Xe=(T*ct-1)*Math.pow(2,ie),_e+=hr):(Xe=T*Math.pow(2,hr-1)*Math.pow(2,ie),_e=0));ie>=8;I[R+Dr]=255&Xe,Dr+=Jr,Xe/=256,ie-=8);for(_e=_e<0;I[R+Dr]=255&_e,Dr+=Jr,_e/=256,Et-=8);I[R+Dr-Jr]|=128*li};function ic(I){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(I)?I:new Uint8Array(I||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var Kx=4294967296,ly=1/Kx,qw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Ip(I){return I.type===ic.Bytes?I.readVarint()+I.pos:I.pos+1}function uy(I,T,R){return R?4294967296*T+(I>>>0):4294967296*(T>>>0)+(I>>>0)}function Nw(I,T,R){var X=T<=16383?1:T<=2097151?2:T<=268435455?3:Math.floor(Math.log(T)/(7*Math.LN2));R.realloc(X);for(var ie=R.pos-1;ie>=I;ie--)R.buf[ie+X]=R.buf[ie]}function Jx(I,T){for(var R=0;R>>8,I[R+2]=T>>>16,I[R+3]=T>>>24}function MC(I,T){return(I[T]|I[T+1]<<8|I[T+2]<<16)+(I[T+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(I,T,R){for(R=R||this.length;this.pos>3,pe=this.pos;this.type=7&X,I(ie,T,this),this.pos===pe&&this.skip(X)}return T},readMessage:function(I,T){return this.readFields(I,T,this.readVarint()+this.pos)},readFixed32:function(){var I=mg(this.buf,this.pos);return this.pos+=4,I},readSFixed32:function(){var I=MC(this.buf,this.pos);return this.pos+=4,I},readFixed64:function(){var I=mg(this.buf,this.pos)+mg(this.buf,this.pos+4)*Kx;return this.pos+=8,I},readSFixed64:function(){var I=mg(this.buf,this.pos)+MC(this.buf,this.pos+4)*Kx;return this.pos+=8,I},readFloat:function(){var I=vg(this.buf,this.pos,!0,23,4);return this.pos+=4,I},readDouble:function(){var I=vg(this.buf,this.pos,!0,52,8);return this.pos+=8,I},readVarint:function(I){var T,R,X=this.buf;return T=127&(R=X[this.pos++]),R<128?T:(T|=(127&(R=X[this.pos++]))<<7,R<128?T:(T|=(127&(R=X[this.pos++]))<<14,R<128?T:(T|=(127&(R=X[this.pos++]))<<21,R<128?T:function(ie,pe,_e){var Xe,ct,Et=_e.buf;if(Xe=(112&(ct=Et[_e.pos++]))>>4,ct<128||(Xe|=(127&(ct=Et[_e.pos++]))<<3,ct<128)||(Xe|=(127&(ct=Et[_e.pos++]))<<10,ct<128)||(Xe|=(127&(ct=Et[_e.pos++]))<<17,ct<128)||(Xe|=(127&(ct=Et[_e.pos++]))<<24,ct<128)||(Xe|=(1&(ct=Et[_e.pos++]))<<31,ct<128))return uy(ie,Xe,pe);throw new Error("Expected varint not more than 10 bytes")}(T|=(15&(R=X[this.pos]))<<28,I,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var I=this.readVarint();return I%2==1?(I+1)/-2:I/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var I=this.readVarint()+this.pos,T=this.pos;return this.pos=I,I-T>=12&&qw?function(R,X,ie){return qw.decode(R.subarray(X,ie))}(this.buf,T,I):function(R,X,ie){for(var pe="",_e=X;_e239?4:Yt>223?3:Yt>191?2:1;if(_e+Tr>ie)break;Tr===1?Yt<128&&(hr=Yt):Tr===2?(192&(Xe=R[_e+1]))==128&&(hr=(31&Yt)<<6|63&Xe)<=127&&(hr=null):Tr===3?(ct=R[_e+2],(192&(Xe=R[_e+1]))==128&&(192&ct)==128&&((hr=(15&Yt)<<12|(63&Xe)<<6|63&ct)<=2047||hr>=55296&&hr<=57343)&&(hr=null)):Tr===4&&(ct=R[_e+2],Et=R[_e+3],(192&(Xe=R[_e+1]))==128&&(192&ct)==128&&(192&Et)==128&&((hr=(15&Yt)<<18|(63&Xe)<<12|(63&ct)<<6|63&Et)<=65535||hr>=1114112)&&(hr=null)),hr===null?(hr=65533,Tr=1):hr>65535&&(hr-=65536,pe+=String.fromCharCode(hr>>>10&1023|55296),hr=56320|1023&hr),pe+=String.fromCharCode(hr),_e+=Tr}return pe}(this.buf,T,I)},readBytes:function(){var I=this.readVarint()+this.pos,T=this.buf.subarray(this.pos,I);return this.pos=I,T},readPackedVarint:function(I,T){if(this.type!==ic.Bytes)return I.push(this.readVarint(T));var R=Ip(this);for(I=I||[];this.pos127;);else if(T===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(T===ic.Fixed32)this.pos+=4;else{if(T!==ic.Fixed64)throw new Error("Unimplemented type: "+T);this.pos+=8}},writeTag:function(I,T){this.writeVarint(I<<3|T)},realloc:function(I){for(var T=this.length||16;T268435455||I<0?function(T,R){var X,ie;if(T>=0?(X=T%4294967296|0,ie=T/4294967296|0):(ie=~(-T/4294967296),4294967295^(X=~(-T%4294967296))?X=X+1|0:(X=0,ie=ie+1|0)),T>=18446744073709552e3||T<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");R.realloc(10),function(pe,_e,Xe){Xe.buf[Xe.pos++]=127&pe|128,pe>>>=7,Xe.buf[Xe.pos++]=127&pe|128,pe>>>=7,Xe.buf[Xe.pos++]=127&pe|128,pe>>>=7,Xe.buf[Xe.pos++]=127&pe|128,Xe.buf[Xe.pos]=127&(pe>>>=7)}(X,0,R),function(pe,_e){var Xe=(7&pe)<<4;_e.buf[_e.pos++]|=Xe|((pe>>>=3)?128:0),pe&&(_e.buf[_e.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(_e.buf[_e.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(_e.buf[_e.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(_e.buf[_e.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(_e.buf[_e.pos++]=127&pe)))))}(ie,R)}(I,this):(this.realloc(4),this.buf[this.pos++]=127&I|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=I>>>7&127))))},writeSVarint:function(I){this.writeVarint(I<0?2*-I-1:2*I)},writeBoolean:function(I){this.writeVarint(!!I)},writeString:function(I){I=String(I),this.realloc(4*I.length),this.pos++;var T=this.pos;this.pos=function(X,ie,pe){for(var _e,Xe,ct=0;ct55295&&_e<57344){if(!Xe){_e>56319||ct+1===ie.length?(X[pe++]=239,X[pe++]=191,X[pe++]=189):Xe=_e;continue}if(_e<56320){X[pe++]=239,X[pe++]=191,X[pe++]=189,Xe=_e;continue}_e=Xe-55296<<10|_e-56320|65536,Xe=null}else Xe&&(X[pe++]=239,X[pe++]=191,X[pe++]=189,Xe=null);_e<128?X[pe++]=_e:(_e<2048?X[pe++]=_e>>6|192:(_e<65536?X[pe++]=_e>>12|224:(X[pe++]=_e>>18|240,X[pe++]=_e>>12&63|128),X[pe++]=_e>>6&63|128),X[pe++]=63&_e|128)}return pe}(this.buf,I,this.pos);var R=this.pos-T;R>=128&&Nw(T,R,this),this.pos=T-1,this.writeVarint(R),this.pos+=R},writeFloat:function(I){this.realloc(4),L1(this.buf,I,this.pos,!0,23,4),this.pos+=4},writeDouble:function(I){this.realloc(8),L1(this.buf,I,this.pos,!0,52,8),this.pos+=8},writeBytes:function(I){var T=I.length;this.writeVarint(T),this.realloc(T);for(var R=0;R=128&&Nw(R,X,this),this.pos=R-1,this.writeVarint(X),this.pos+=X},writeMessage:function(I,T,R){this.writeTag(I,ic.Bytes),this.writeRawMessage(T,R)},writePackedVarint:function(I,T){T.length&&this.writeMessage(I,Jx,T)},writePackedSVarint:function(I,T){T.length&&this.writeMessage(I,eB,T)},writePackedBoolean:function(I,T){T.length&&this.writeMessage(I,iB,T)},writePackedFloat:function(I,T){T.length&&this.writeMessage(I,tB,T)},writePackedDouble:function(I,T){T.length&&this.writeMessage(I,rB,T)},writePackedFixed32:function(I,T){T.length&&this.writeMessage(I,KQ,T)},writePackedSFixed32:function(I,T){T.length&&this.writeMessage(I,nB,T)},writePackedFixed64:function(I,T){T.length&&this.writeMessage(I,aB,T)},writePackedSFixed64:function(I,T){T.length&&this.writeMessage(I,oB,T)},writeBytesField:function(I,T){this.writeTag(I,ic.Bytes),this.writeBytes(T)},writeFixed32Field:function(I,T){this.writeTag(I,ic.Fixed32),this.writeFixed32(T)},writeSFixed32Field:function(I,T){this.writeTag(I,ic.Fixed32),this.writeSFixed32(T)},writeFixed64Field:function(I,T){this.writeTag(I,ic.Fixed64),this.writeFixed64(T)},writeSFixed64Field:function(I,T){this.writeTag(I,ic.Fixed64),this.writeSFixed64(T)},writeVarintField:function(I,T){this.writeTag(I,ic.Varint),this.writeVarint(T)},writeSVarintField:function(I,T){this.writeTag(I,ic.Varint),this.writeSVarint(T)},writeStringField:function(I,T){this.writeTag(I,ic.Bytes),this.writeString(T)},writeFloatField:function(I,T){this.writeTag(I,ic.Fixed32),this.writeFloat(T)},writeDoubleField:function(I,T){this.writeTag(I,ic.Fixed64),this.writeDouble(T)},writeBooleanField:function(I,T){this.writeVarintField(I,!!T)}};var uM=o(Ed);let fM=3;function JQ(I,T,R){I===1&&R.readMessage(sB,T)}function sB(I,T,R){if(I===3){let{id:X,bitmap:ie,width:pe,height:_e,left:Xe,top:ct,advance:Et}=R.readMessage(EC,{});T.push({id:X,bitmap:new ul({width:pe+2*fM,height:_e+2*fM},ie),metrics:{width:pe,height:_e,left:Xe,top:ct,advance:Et}})}}function EC(I,T,R){I===1?T.id=R.readVarint():I===2?T.bitmap=R.readBytes():I===3?T.width=R.readVarint():I===4?T.height=R.readVarint():I===5?T.left=R.readSVarint():I===6?T.top=R.readSVarint():I===7&&(T.advance=R.readVarint())}let kC=fM;function cM(I){let T=0,R=0;for(let _e of I)T+=_e.w*_e.h,R=Math.max(R,_e.w);I.sort((_e,Xe)=>Xe.h-_e.h);let X=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(T/.95)),R),h:1/0}],ie=0,pe=0;for(let _e of I)for(let Xe=X.length-1;Xe>=0;Xe--){let ct=X[Xe];if(!(_e.w>ct.w||_e.h>ct.h)){if(_e.x=ct.x,_e.y=ct.y,pe=Math.max(pe,_e.y+_e.h),ie=Math.max(ie,_e.x+_e.w),_e.w===ct.w&&_e.h===ct.h){let Et=X.pop();Xe=0&&X>=T&&Gw[this.text.charCodeAt(X)];X--)R--;this.text=this.text.substring(T,R),this.sectionIndex=this.sectionIndex.slice(T,R)}substring(T,R){let X=new P1;return X.text=this.text.substring(T,R),X.sectionIndex=this.sectionIndex.slice(T,R),X.sections=this.sections,X}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((T,R)=>Math.max(T,this.sections[R].scale),0)}addTextSection(T,R){this.text+=T.text,this.sections.push(Qx.forText(T.scale,T.fontStack||R));let X=this.sections.length-1;for(let ie=0;ie=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function eb(I,T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr){let li=P1.fromFeature(I,ie),Gi;hr===i.ah.vertical&&li.verticalizePunctuation();let{processBidirectionalText:fn,processStyledBidirectionalText:Za}=Js;if(fn&&li.sections.length===1){Gi=[];let So=fn(li.toString(),z1(li,Et,pe,T,X,Dr));for(let kl of So){let mu=new P1;mu.text=kl,mu.sections=li.sections;for(let Iu=0;Iu0&&tv>ih&&(ih=tv)}else{let Dc=mu[Xf.fontStack],ch=Dc&&Dc[mc];if(ch&&ch.rect)B1=ch.rect,Wc=ch.metrics;else{let tv=kl[Xf.fontStack],gm=tv&&tv[mc];if(!gm)continue;Wc=gm.metrics}Fp=(Fh-Xf.scale)*jf}ev?(So.verticalizable=!0,$h.push({glyph:mc,imageName:v0,x:qu,y:vc+Fp,vertical:ev,scale:Xf.scale,fontStack:Xf.fontStack,sectionIndex:Ac,metrics:Wc,rect:B1}),qu+=Gv*Xf.scale+Xs):($h.push({glyph:mc,imageName:v0,x:qu,y:vc+Fp,vertical:ev,scale:Xf.scale,fontStack:Xf.fontStack,sectionIndex:Ac,metrics:Wc,rect:B1}),qu+=Wc.advance*Xf.scale+Xs)}$h.length!==0&&(cc=Math.max(qu-Xs,cc),fy($h,0,$h.length-1,Qp,ih)),qu=0;let Rp=yl*Fh+ih;cd.lineOffset=Math.max(ih,Cd),vc+=Rp,Dh=Math.max(Rp,Dh),++fd}var Rh;let Wd=vc-Ih,{horizontalAlign:jd,verticalAlign:Xd}=Ww(Eu);(function($c,Fh,Cd,cd,$h,ih,Rp,cp,Xf){let Ac=(Fh-Cd)*$h,mc=0;mc=ih!==Rp?-cp*cd-Ih:(-cd*Xf+.5)*Rp;for(let Fp of $c)for(let Wc of Fp.positionedGlyphs)Wc.x+=Ac,Wc.y+=mc})(So.positionedLines,Qp,jd,Xd,cc,Dh,yl,Wd,su.length),So.top+=-Xd*Wd,So.bottom=So.top+Wd,So.left+=-jd*cc,So.right=So.left+cc}(La,T,R,X,Gi,_e,Xe,ct,hr,Et,Tr,Jr),!function(So){for(let kl of So)if(kl.positionedGlyphs.length!==0)return!1;return!0}(Dn)&&La}let Gw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},lB={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},uB={40:!0};function CC(I,T,R,X,ie,pe){if(T.imageName){let _e=X[T.imageName];return _e?_e.displaySize[0]*T.scale*jf/pe+ie:0}{let _e=R[T.fontStack],Xe=_e&&_e[I];return Xe?Xe.metrics.advance*T.scale+ie:0}}function LC(I,T,R,X){let ie=Math.pow(I-T,2);return X?I=0,Et=0;for(let hr=0;hrEt){let Yt=Math.ceil(pe/Et);ie*=Yt/_e,_e=Yt}return{x1:X,y1:ie,x2:X+pe,y2:ie+_e}}function IC(I,T,R,X,ie,pe){let _e=I.image,Xe;if(_e.content){let Gi=_e.content,fn=_e.pixelRatio||1;Xe=[Gi[0]/fn,Gi[1]/fn,_e.displaySize[0]-Gi[2]/fn,_e.displaySize[1]-Gi[3]/fn]}let ct=T.left*pe,Et=T.right*pe,Yt,hr,Tr,Dr;R==="width"||R==="both"?(Dr=ie[0]+ct-X[3],hr=ie[0]+Et+X[1]):(Dr=ie[0]+(ct+Et-_e.displaySize[0])/2,hr=Dr+_e.displaySize[0]);let Jr=T.top*pe,li=T.bottom*pe;return R==="height"||R==="both"?(Yt=ie[1]+Jr-X[0],Tr=ie[1]+li+X[2]):(Yt=ie[1]+(Jr+li-_e.displaySize[1])/2,Tr=Yt+_e.displaySize[1]),{image:_e,top:Yt,right:hr,bottom:Tr,left:Dr,collisionPadding:Xe}}let rb=255,p0=128,cy=rb*p0;function DC(I,T){let{expression:R}=T;if(R.kind==="constant")return{kind:"constant",layoutSize:R.evaluate(new cs(I+1))};if(R.kind==="source")return{kind:"source"};{let{zoomStops:X,interpolationType:ie}=R,pe=0;for(;pe_e.id),this.index=T.index,this.pixelRatio=T.pixelRatio,this.sourceLayerIndex=T.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=En([]),this.placementViewportMatrix=En([]);let R=this.layers[0]._unevaluatedLayout._values;this.textSizeData=DC(this.zoom,R["text-size"]),this.iconSizeData=DC(this.zoom,R["icon-size"]);let X=this.layers[0].layout,ie=X.get("symbol-sort-key"),pe=X.get("symbol-z-order");this.canOverlap=hM(X,"text-overlap","text-allow-overlap")!=="never"||hM(X,"icon-overlap","icon-allow-overlap")!=="never"||X.get("text-ignore-placement")||X.get("icon-ignore-placement"),this.sortFeaturesByKey=pe!=="viewport-y"&&!ie.isConstant(),this.sortFeaturesByY=(pe==="viewport-y"||pe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,X.get("symbol-placement")==="point"&&(this.writingModes=X.get("text-writing-mode").map(_e=>i.ah[_e])),this.stateDependentLayerIds=this.layers.filter(_e=>_e.isStateDependent()).map(_e=>_e.id),this.sourceID=T.sourceID}createArrays(){this.text=new vM(new Vu(this.layers,this.zoom,T=>/^text/.test(T))),this.icon=new vM(new Vu(this.layers,this.zoom,T=>/^icon/.test(T))),this.glyphOffsetArray=new au,this.lineVertexArray=new Sl,this.symbolInstances=new ml,this.textAnchorOffsets=new ql}calculateGlyphDependencies(T,R,X,ie,pe){for(let _e=0;_e0)&&(_e.value.kind!=="constant"||_e.value.value.length>0),Yt=ct.value.kind!=="constant"||!!ct.value.value||Object.keys(ct.parameters).length>0,hr=pe.get("symbol-sort-key");if(this.features=[],!Et&&!Yt)return;let Tr=R.iconDependencies,Dr=R.glyphDependencies,Jr=R.availableImages,li=new cs(this.zoom);for(let{feature:Gi,id:fn,index:Za,sourceLayerIndex:Dn}of T){let La=ie._featureFilter.needGeometry,So=hf(Gi,La);if(!ie._featureFilter.filter(li,So,X))continue;let kl,mu;if(La||(So.geometry=lf(Gi)),Et){let su=ie.getValueAndResolveTokens("text-field",So,X,Jr),yl=Nr.factory(su),Eu=this.hasRTLText=this.hasRTLText||pM(yl);(!Eu||Js.getRTLTextPluginStatus()==="unavailable"||Eu&&Js.isParsed())&&(kl=sy(yl,ie,So))}if(Yt){let su=ie.getValueAndResolveTokens("icon-image",So,X,Jr);mu=su instanceof mi?su:mi.fromString(su)}if(!kl&&!mu)continue;let Iu=this.sortFeaturesByKey?hr.evaluate(So,{},X):void 0;if(this.features.push({id:fn,text:kl,icon:mu,index:Za,sourceLayerIndex:Dn,geometry:So.geometry,properties:Gi.properties,type:cB[Gi.type],sortKey:Iu}),mu&&(Tr[mu.name]=!0),kl){let su=_e.evaluate(So,{},X).join(","),yl=pe.get("text-rotation-alignment")!=="viewport"&&pe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Eu of kl.sections)if(Eu.image)Tr[Eu.image.name]=!0;else{let bu=is(kl.toString()),_u=Eu.fontStack||su,Xs=Dr[_u]=Dr[_u]||{};this.calculateGlyphDependencies(Eu.text,Xs,yl,this.allowVerticalPlacement,bu)}}}pe.get("symbol-placement")==="line"&&(this.features=function(Gi){let fn={},Za={},Dn=[],La=0;function So(su){Dn.push(Gi[su]),La++}function kl(su,yl,Eu){let bu=Za[su];return delete Za[su],Za[yl]=bu,Dn[bu].geometry[0].pop(),Dn[bu].geometry[0]=Dn[bu].geometry[0].concat(Eu[0]),bu}function mu(su,yl,Eu){let bu=fn[yl];return delete fn[yl],fn[su]=bu,Dn[bu].geometry[0].shift(),Dn[bu].geometry[0]=Eu[0].concat(Dn[bu].geometry[0]),bu}function Iu(su,yl,Eu){let bu=Eu?yl[0][yl[0].length-1]:yl[0][0];return`${su}:${bu.x}:${bu.y}`}for(let su=0;susu.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((Gi,fn)=>Gi.sortKey-fn.sortKey)}update(T,R,X){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(T,R,this.layers,X),this.icon.programConfigurations.updatePaintArrays(T,R,this.layers,X))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(T){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(T),this.iconCollisionBox.upload(T)),this.text.upload(T,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(T,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(T,R){let X=this.lineVertexArray.length;if(T.segment!==void 0){let ie=T.dist(R[T.segment+1]),pe=T.dist(R[T.segment]),_e={};for(let Xe=T.segment+1;Xe=0;Xe--)_e[Xe]={x:R[Xe].x,y:R[Xe].y,tileUnitDistanceFromAnchor:pe},Xe>0&&(pe+=R[Xe-1].dist(R[Xe]));for(let Xe=0;Xe0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(T,R){let X=T.placedSymbolArray.get(R),ie=X.vertexStartIndex+4*X.numGlyphs;for(let pe=X.vertexStartIndex;peie[Xe]-ie[ct]||pe[ct]-pe[Xe]),_e}addToSortKeyRanges(T,R){let X=this.sortKeyRanges[this.sortKeyRanges.length-1];X&&X.sortKey===R?X.symbolInstanceEnd=T+1:this.sortKeyRanges.push({sortKey:R,symbolInstanceStart:T,symbolInstanceEnd:T+1})}sortFeatures(T){if(this.sortFeaturesByY&&this.sortedAngle!==T&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(T),this.sortedAngle=T,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let R of this.symbolInstanceIndexes){let X=this.symbolInstances.get(R);this.featureSortOrder.push(X.featureIndex),[X.rightJustifiedTextSymbolIndex,X.centerJustifiedTextSymbolIndex,X.leftJustifiedTextSymbolIndex].forEach((ie,pe,_e)=>{ie>=0&&_e.indexOf(ie)===pe&&this.addIndicesForPlacedSymbol(this.text,ie)}),X.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,X.verticalPlacedTextSymbolIndex),X.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.placedIconSymbolIndex),X.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Jc,ib;Si("SymbolBucket",I1,{omit:["layers","collisionBoxArray","features","compareText"]}),I1.MAX_GLYPHS=65535,I1.addDynamicAttributes=dM;var Xw={get paint(){return ib=ib||new ue({"icon-opacity":new Bs(ce.paint_symbol["icon-opacity"]),"icon-color":new Bs(ce.paint_symbol["icon-color"]),"icon-halo-color":new Bs(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new Bs(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Bs(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new ms(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new ms(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new Bs(ce.paint_symbol["text-opacity"]),"text-color":new Bs(ce.paint_symbol["text-color"],{runtimeType:tt,getOverride:I=>I.textColor,hasOverride:I=>!!I.textColor}),"text-halo-color":new Bs(ce.paint_symbol["text-halo-color"]),"text-halo-width":new Bs(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new Bs(ce.paint_symbol["text-halo-blur"]),"text-translate":new ms(ce.paint_symbol["text-translate"]),"text-translate-anchor":new ms(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Jc=Jc||new ue({"symbol-placement":new ms(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new ms(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ms(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Bs(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ms(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ms(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new ms(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new ms(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new ms(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ms(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new Bs(ce.layout_symbol["icon-size"]),"icon-text-fit":new ms(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ms(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new Bs(ce.layout_symbol["icon-image"]),"icon-rotate":new Bs(ce.layout_symbol["icon-rotate"]),"icon-padding":new Bs(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new ms(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new Bs(ce.layout_symbol["icon-offset"]),"icon-anchor":new Bs(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ms(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ms(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ms(ce.layout_symbol["text-rotation-alignment"]),"text-field":new Bs(ce.layout_symbol["text-field"]),"text-font":new Bs(ce.layout_symbol["text-font"]),"text-size":new Bs(ce.layout_symbol["text-size"]),"text-max-width":new Bs(ce.layout_symbol["text-max-width"]),"text-line-height":new ms(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new Bs(ce.layout_symbol["text-letter-spacing"]),"text-justify":new Bs(ce.layout_symbol["text-justify"]),"text-radial-offset":new Bs(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ms(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Bs(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Bs(ce.layout_symbol["text-anchor"]),"text-max-angle":new ms(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new ms(ce.layout_symbol["text-writing-mode"]),"text-rotate":new Bs(ce.layout_symbol["text-rotate"]),"text-padding":new ms(ce.layout_symbol["text-padding"]),"text-keep-upright":new ms(ce.layout_symbol["text-keep-upright"]),"text-transform":new Bs(ce.layout_symbol["text-transform"]),"text-offset":new Bs(ce.layout_symbol["text-offset"]),"text-allow-overlap":new ms(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new ms(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new ms(ce.layout_symbol["text-ignore-placement"]),"text-optional":new ms(ce.layout_symbol["text-optional"])})}};class nb{constructor(T){if(T.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=T.property.overrides?T.property.overrides.runtimeType:lt,this.defaultValue=T}evaluate(T){if(T.formattedSection){let R=this.defaultValue.property.overrides;if(R&&R.hasOverride(T.formattedSection))return R.getOverride(T.formattedSection)}return T.feature&&T.featureState?this.defaultValue.evaluate(T.feature,T.featureState):this.defaultValue.property.specification.default}eachChild(T){this.defaultValue.isConstant()||T(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Si("FormatSectionOverride",nb,{omit:["defaultValue"]});class yg extends q{constructor(T){super(T,Xw)}recalculate(T,R){if(super.recalculate(T,R),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let X=this.layout.get("text-writing-mode");if(X){let ie=[];for(let pe of X)ie.indexOf(pe)<0&&ie.push(pe);this.layout._values["text-writing-mode"]=ie}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(T,R,X,ie){let pe=this.layout.get(T).evaluate(R,{},X,ie),_e=this._unevaluatedLayout._values[T];return _e.isDataDriven()||Qs(_e.value)||!pe?pe:function(Xe,ct){return ct.replace(/{([^{}]+)}/g,(Et,Yt)=>Xe&&Yt in Xe?String(Xe[Yt]):"")}(R.properties,pe)}createBucket(T){return new I1(T)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let T of Xw.paint.overridableProperties){if(!yg.hasPaintOverride(this.layout,T))continue;let R=this.paint.get(T),X=new nb(R),ie=new Ma(X,R.property.specification),pe=null;pe=R.value.kind==="constant"||R.value.kind==="source"?new gs("source",ie):new Vo("composite",ie,R.value.zoomStops),this.paint._values[T]=new Al(R.property,pe,R.parameters)}}_handleOverridablePaintPropertyUpdate(T,R,X){return!(!this.layout||R.isDataDriven()||X.isDataDriven())&&yg.hasPaintOverride(this.layout,T)}static hasPaintOverride(T,R){let X=T.get("text-field"),ie=Xw.paint.properties[R],pe=!1,_e=Xe=>{for(let ct of Xe)if(ie.overrides&&ie.overrides.hasOverride(ct))return void(pe=!0)};if(X.value.kind==="constant"&&X.value.value instanceof Nr)_e(X.value.value.sections);else if(X.value.kind==="source"){let Xe=Et=>{pe||(Et instanceof Yr&&ti(Et.value)===yr?_e(Et.value.sections):Et instanceof wa?_e(Et.sections):Et.eachChild(Xe))},ct=X.value;ct._styleExpression&&Xe(ct._styleExpression.expression)}return pe}}let RC;var ab={get paint(){return RC=RC||new ue({"background-color":new ms(ce.paint_background["background-color"]),"background-pattern":new Gl(ce.paint_background["background-pattern"]),"background-opacity":new ms(ce.paint_background["background-opacity"])})}};class dB extends q{constructor(T){super(T,ab)}}let mM;var FC={get paint(){return mM=mM||new ue({"raster-opacity":new ms(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new ms(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ms(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ms(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new ms(ce.paint_raster["raster-saturation"]),"raster-contrast":new ms(ce.paint_raster["raster-contrast"]),"raster-resampling":new ms(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new ms(ce.paint_raster["raster-fade-duration"])})}};class ob extends q{constructor(T){super(T,FC)}}class yM extends q{constructor(T){super(T,{}),this.onAdd=R=>{this.implementation.onAdd&&this.implementation.onAdd(R,R.painter.context.gl)},this.onRemove=R=>{this.implementation.onRemove&&this.implementation.onRemove(R,R.painter.context.gl)},this.implementation=T}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class gM{constructor(T){this._methodToThrottle=T,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let _M=63710088e-1;class vm{constructor(T,R){if(isNaN(T)||isNaN(R))throw new Error(`Invalid LngLat object: (${T}, ${R})`);if(this.lng=+T,this.lat=+R,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new vm(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(T){let R=Math.PI/180,X=this.lat*R,ie=T.lat*R,pe=Math.sin(X)*Math.sin(ie)+Math.cos(X)*Math.cos(ie)*Math.cos((T.lng-this.lng)*R);return _M*Math.acos(Math.min(pe,1))}static convert(T){if(T instanceof vm)return T;if(Array.isArray(T)&&(T.length===2||T.length===3))return new vm(Number(T[0]),Number(T[1]));if(!Array.isArray(T)&&typeof T=="object"&&T!==null)return new vm(Number("lng"in T?T.lng:T.lon),Number(T.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let D1=2*Math.PI*_M;function OC(I){return D1*Math.cos(I*Math.PI/180)}function Zw(I){return(180+I)/360}function BC(I){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I*Math.PI/360)))/360}function Yw(I,T){return I/OC(T)}function sb(I){return 360/Math.PI*Math.atan(Math.exp((180-360*I)*Math.PI/180))-90}class lb{constructor(T,R,X=0){this.x=+T,this.y=+R,this.z=+X}static fromLngLat(T,R=0){let X=vm.convert(T);return new lb(Zw(X.lng),BC(X.lat),Yw(R,X.lat))}toLngLat(){return new vm(360*this.x-180,sb(this.y))}toAltitude(){return this.z*OC(sb(this.y))}meterInMercatorCoordinateUnits(){return 1/D1*(T=sb(this.y),1/Math.cos(T*Math.PI/180));var T}}function gv(I,T,R){var X=2*Math.PI*6378137/256/Math.pow(2,R);return[I*X-2*Math.PI*6378137/2,T*X-2*Math.PI*6378137/2]}class xM{constructor(T,R,X){if(!function(ie,pe,_e){return!(ie<0||ie>25||_e<0||_e>=Math.pow(2,ie)||pe<0||pe>=Math.pow(2,ie))}(T,R,X))throw new Error(`x=${R}, y=${X}, z=${T} outside of bounds. 0<=x<${Math.pow(2,T)}, 0<=y<${Math.pow(2,T)} 0<=z<=25 `);this.z=T,this.x=R,this.y=X,this.key=ub(0,T,T,R,X)}equals(T){return this.z===T.z&&this.x===T.x&&this.y===T.y}url(T,R,X){let ie=(_e=this.y,Xe=this.z,ct=gv(256*(pe=this.x),256*(_e=Math.pow(2,Xe)-_e-1),Xe),Et=gv(256*(pe+1),256*(_e+1),Xe),ct[0]+","+ct[1]+","+Et[0]+","+Et[1]);var pe,_e,Xe,ct,Et;let Yt=function(hr,Tr,Dr){let Jr,li="";for(let Gi=hr;Gi>0;Gi--)Jr=1<1?"@2x":"").replace(/{quadkey}/g,Yt).replace(/{bbox-epsg-3857}/g,ie)}isChildOf(T){let R=this.z-T.z;return R>0&&T.x===this.x>>R&&T.y===this.y>>R}getTilePoint(T){let R=Math.pow(2,this.z);return new l((T.x*R-this.x)*Wl,(T.y*R-this.y)*Wl)}toString(){return`${this.z}/${this.x}/${this.y}`}}class qC{constructor(T,R){this.wrap=T,this.canonical=R,this.key=ub(T,R.z,R.z,R.x,R.y)}}class $p{constructor(T,R,X,ie,pe){if(T= z; overscaledZ = ${T}; z = ${X}`);this.overscaledZ=T,this.wrap=R,this.canonical=new xM(X,+ie,+pe),this.key=ub(R,T,X,ie,pe)}clone(){return new $p(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(T){return this.overscaledZ===T.overscaledZ&&this.wrap===T.wrap&&this.canonical.equals(T.canonical)}scaledTo(T){if(T>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${T}; overscaledZ = ${this.overscaledZ}`);let R=this.canonical.z-T;return T>this.canonical.z?new $p(T,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $p(T,this.wrap,T,this.canonical.x>>R,this.canonical.y>>R)}calculateScaledKey(T,R){if(T>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${T}; overscaledZ = ${this.overscaledZ}`);let X=this.canonical.z-T;return T>this.canonical.z?ub(this.wrap*+R,T,this.canonical.z,this.canonical.x,this.canonical.y):ub(this.wrap*+R,T,T,this.canonical.x>>X,this.canonical.y>>X)}isChildOf(T){if(T.wrap!==this.wrap)return!1;let R=this.canonical.z-T.canonical.z;return T.overscaledZ===0||T.overscaledZ>R&&T.canonical.y===this.canonical.y>>R}children(T){if(this.overscaledZ>=T)return[new $p(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let R=this.canonical.z+1,X=2*this.canonical.x,ie=2*this.canonical.y;return[new $p(R,this.wrap,R,X,ie),new $p(R,this.wrap,R,X+1,ie),new $p(R,this.wrap,R,X,ie+1),new $p(R,this.wrap,R,X+1,ie+1)]}isLessThan(T){return this.wrapT.wrap)&&(this.overscaledZT.overscaledZ)&&(this.canonical.xT.canonical.x)&&this.canonical.ythis.max&&(this.max=hr),hr=this.dim+1||R<-1||R>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(R+1)*this.stride+(T+1)}unpack(T,R,X){return T*this.redFactor+R*this.greenFactor+X*this.blueFactor-this.baseShift}getPixels(){return new Qn({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(T,R,X){if(this.dim!==T.dim)throw new Error("dem dimension mismatch");let ie=R*this.dim,pe=R*this.dim+this.dim,_e=X*this.dim,Xe=X*this.dim+this.dim;switch(R){case-1:ie=pe-1;break;case 1:pe=ie+1}switch(X){case-1:_e=Xe-1;break;case 1:Xe=_e+1}let ct=-R*this.dim,Et=-X*this.dim;for(let Yt=_e;Yt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${T} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[T]}}class bM{constructor(T,R,X,ie,pe){this.type="Feature",this._vectorTileFeature=T,T._z=R,T._x=X,T._y=ie,this.properties=T.properties,this.id=pe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(T){this._geometry=T}toJSON(){let T={geometry:this.geometry};for(let R in this)R!=="_geometry"&&R!=="_vectorTileFeature"&&(T[R]=this[R]);return T}}class gg{constructor(T,R){this.tileID=T,this.x=T.canonical.x,this.y=T.canonical.y,this.z=T.canonical.z,this.grid=new hi(Wl,16,0),this.grid3D=new hi(Wl,16,0),this.featureIndexArray=new Pu,this.promoteId=R}insert(T,R,X,ie,pe,_e){let Xe=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(X,ie,pe);let ct=_e?this.grid3D:this.grid;for(let Et=0;Et=0&&hr[3]>=0&&ct.insert(Xe,hr[0],hr[1],hr[2],hr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Br.VectorTile(new uM(this.rawTileData)).layers,this.sourceLayerCoder=new UC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(T,R,X,ie){this.loadVTLayers();let pe=T.params||{},_e=Wl/T.tileSize/T.scale,Xe=Jn(pe.filter),ct=T.queryGeometry,Et=T.queryPadding*_e,Yt=GC(ct),hr=this.grid.query(Yt.minX-Et,Yt.minY-Et,Yt.maxX+Et,Yt.maxY+Et),Tr=GC(T.cameraQueryGeometry),Dr=this.grid3D.query(Tr.minX-Et,Tr.minY-Et,Tr.maxX+Et,Tr.maxY+Et,(Gi,fn,Za,Dn)=>function(La,So,kl,mu,Iu){for(let yl of La)if(So<=yl.x&&kl<=yl.y&&mu>=yl.x&&Iu>=yl.y)return!0;let su=[new l(So,kl),new l(So,Iu),new l(mu,Iu),new l(mu,kl)];if(La.length>2){for(let yl of su)if(On(La,yl))return!0}for(let yl=0;yl(Dn||(Dn=lf(La)),So.queryIntersectsFeature(ct,La,kl,Dn,this.z,T.transform,_e,T.pixelPosMatrix)))}return Jr}loadMatchingFeature(T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr){let Tr=this.bucketLayerIDs[R];if(_e&&!function(Gi,fn){for(let Za=0;Za=0)return!0;return!1}(_e,Tr))return;let Dr=this.sourceLayerCoder.decode(X),Jr=this.vtLayers[Dr].feature(ie);if(pe.needGeometry){let Gi=hf(Jr,!0);if(!pe.filter(new cs(this.tileID.overscaledZ),Gi,this.tileID.canonical))return}else if(!pe.filter(new cs(this.tileID.overscaledZ),Jr))return;let li=this.getId(Jr,Dr);for(let Gi=0;Gi{let Xe=T instanceof Ll?T.get(_e):null;return Xe&&Xe.evaluate?Xe.evaluate(R,X,ie):Xe})}function GC(I){let T=1/0,R=1/0,X=-1/0,ie=-1/0;for(let pe of I)T=Math.min(T,pe.x),R=Math.min(R,pe.y),X=Math.max(X,pe.x),ie=Math.max(ie,pe.y);return{minX:T,minY:R,maxX:X,maxY:ie}}function pB(I,T){return T-I}function HC(I,T,R,X,ie){let pe=[];for(let _e=0;_e=X&&hr.x>=X||(Yt.x>=X?Yt=new l(X,Yt.y+(X-Yt.x)/(hr.x-Yt.x)*(hr.y-Yt.y))._round():hr.x>=X&&(hr=new l(X,Yt.y+(X-Yt.x)/(hr.x-Yt.x)*(hr.y-Yt.y))._round()),Yt.y>=ie&&hr.y>=ie||(Yt.y>=ie?Yt=new l(Yt.x+(ie-Yt.y)/(hr.y-Yt.y)*(hr.x-Yt.x),ie)._round():hr.y>=ie&&(hr=new l(Yt.x+(ie-Yt.y)/(hr.y-Yt.y)*(hr.x-Yt.x),ie)._round()),ct&&Yt.equals(ct[ct.length-1])||(ct=[Yt],pe.push(ct)),ct.push(hr)))))}}return pe}Si("FeatureIndex",gg,{omit:["rawTileData","sourceLayerCoder"]});class mm extends l{constructor(T,R,X,ie){super(T,R),this.angle=X,ie!==void 0&&(this.segment=ie)}clone(){return new mm(this.x,this.y,this.angle,this.segment)}}function wM(I,T,R,X,ie){if(T.segment===void 0||R===0)return!0;let pe=T,_e=T.segment+1,Xe=0;for(;Xe>-R/2;){if(_e--,_e<0)return!1;Xe-=I[_e].dist(pe),pe=I[_e]}Xe+=I[_e].dist(I[_e+1]),_e++;let ct=[],Et=0;for(;XeX;)Et-=ct.shift().angleDelta;if(Et>ie)return!1;_e++,Xe+=Yt.dist(hr)}return!0}function WC(I){let T=0;for(let R=0;REt){let Jr=(Et-ct)/Dr,li=ka.number(hr.x,Tr.x,Jr),Gi=ka.number(hr.y,Tr.y,Jr),fn=new mm(li,Gi,Tr.angleTo(hr),Yt);return fn._round(),!_e||wM(I,fn,Xe,_e,T)?fn:void 0}ct+=Dr}}function mB(I,T,R,X,ie,pe,_e,Xe,ct){let Et=jC(X,pe,_e),Yt=XC(X,ie),hr=Yt*_e,Tr=I[0].x===0||I[0].x===ct||I[0].y===0||I[0].y===ct;return T-hr=0&&La=0&&So=0&&Tr+Et<=Yt){let kl=new mm(La,So,Za,Jr);kl._round(),X&&!wM(I,kl,pe,X,ie)||Dr.push(kl)}}hr+=fn}return Xe||Dr.length||_e||(Dr=ZC(I,hr/2,R,X,ie,pe,_e,!0,ct)),Dr}Si("Anchor",mm);let R1=kd;function YC(I,T,R,X){let ie=[],pe=I.image,_e=pe.pixelRatio,Xe=pe.paddedRect.w-2*R1,ct=pe.paddedRect.h-2*R1,Et={x1:I.left,y1:I.top,x2:I.right,y2:I.bottom},Yt=pe.stretchX||[[0,Xe]],hr=pe.stretchY||[[0,ct]],Tr=(Xs,Lu)=>Xs+Lu[1]-Lu[0],Dr=Yt.reduce(Tr,0),Jr=hr.reduce(Tr,0),li=Xe-Dr,Gi=ct-Jr,fn=0,Za=Dr,Dn=0,La=Jr,So=0,kl=li,mu=0,Iu=Gi;if(pe.content&&X){let Xs=pe.content,Lu=Xs[2]-Xs[0],xu=Xs[3]-Xs[1];(pe.textFitWidth||pe.textFitHeight)&&(Et=zC(I)),fn=ym(Yt,0,Xs[0]),Dn=ym(hr,0,Xs[1]),Za=ym(Yt,Xs[0],Xs[2]),La=ym(hr,Xs[1],Xs[3]),So=Xs[0]-fn,mu=Xs[1]-Dn,kl=Lu-Za,Iu=xu-La}let su=Et.x1,yl=Et.y1,Eu=Et.x2-su,bu=Et.y2-yl,_u=(Xs,Lu,xu,qu)=>{let vc=Kw(Xs.stretch-fn,Za,Eu,su),cc=F1(Xs.fixed-So,kl,Xs.stretch,Dr),Dh=Kw(Lu.stretch-Dn,La,bu,yl),Qp=F1(Lu.fixed-mu,Iu,Lu.stretch,Jr),fd=Kw(xu.stretch-fn,Za,Eu,su),Rh=F1(xu.fixed-So,kl,xu.stretch,Dr),Wd=Kw(qu.stretch-Dn,La,bu,yl),jd=F1(qu.fixed-mu,Iu,qu.stretch,Jr),Xd=new l(vc,Dh),$c=new l(fd,Dh),Fh=new l(fd,Wd),Cd=new l(vc,Wd),cd=new l(cc/_e,Qp/_e),$h=new l(Rh/_e,jd/_e),ih=T*Math.PI/180;if(ih){let Xf=Math.sin(ih),Ac=Math.cos(ih),mc=[Ac,-Xf,Xf,Ac];Xd._matMult(mc),$c._matMult(mc),Cd._matMult(mc),Fh._matMult(mc)}let Rp=Xs.stretch+Xs.fixed,cp=Lu.stretch+Lu.fixed;return{tl:Xd,tr:$c,bl:Cd,br:Fh,tex:{x:pe.paddedRect.x+R1+Rp,y:pe.paddedRect.y+R1+cp,w:xu.stretch+xu.fixed-Rp,h:qu.stretch+qu.fixed-cp},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:cd,pixelOffsetBR:$h,minFontScaleX:kl/_e/Eu,minFontScaleY:Iu/_e/bu,isSDF:R}};if(X&&(pe.stretchX||pe.stretchY)){let Xs=KC(Yt,li,Dr),Lu=KC(hr,Gi,Jr);for(let xu=0;xu0&&(li=Math.max(10,li),this.circleDiameter=li)}else{let Tr=!((hr=_e.image)===null||hr===void 0)&&hr.content&&(_e.image.textFitWidth||_e.image.textFitHeight)?zC(_e):{x1:_e.left,y1:_e.top,x2:_e.right,y2:_e.bottom};Tr.y1=Tr.y1*Xe-ct[0],Tr.y2=Tr.y2*Xe+ct[2],Tr.x1=Tr.x1*Xe-ct[3],Tr.x2=Tr.x2*Xe+ct[1];let Dr=_e.collisionPadding;if(Dr&&(Tr.x1-=Dr[0]*Xe,Tr.y1-=Dr[1]*Xe,Tr.x2+=Dr[2]*Xe,Tr.y2+=Dr[3]*Xe),Yt){let Jr=new l(Tr.x1,Tr.y1),li=new l(Tr.x2,Tr.y1),Gi=new l(Tr.x1,Tr.y2),fn=new l(Tr.x2,Tr.y2),Za=Yt*Math.PI/180;Jr._rotate(Za),li._rotate(Za),Gi._rotate(Za),fn._rotate(Za),Tr.x1=Math.min(Jr.x,li.x,Gi.x,fn.x),Tr.x2=Math.max(Jr.x,li.x,Gi.x,fn.x),Tr.y1=Math.min(Jr.y,li.y,Gi.y,fn.y),Tr.y2=Math.max(Jr.y,li.y,Gi.y,fn.y)}T.emplaceBack(R.x,R.y,Tr.x1,Tr.y1,Tr.x2,Tr.y2,X,ie,pe)}this.boxEndIndex=T.length}}class Vv{constructor(T=[],R=(X,ie)=>Xie?1:0){if(this.data=T,this.length=this.data.length,this.compare=R,this.length>0)for(let X=(this.length>>1)-1;X>=0;X--)this._down(X)}push(T){this.data.push(T),this._up(this.length++)}pop(){if(this.length===0)return;let T=this.data[0],R=this.data.pop();return--this.length>0&&(this.data[0]=R,this._down(0)),T}peek(){return this.data[0]}_up(T){let{data:R,compare:X}=this,ie=R[T];for(;T>0;){let pe=T-1>>1,_e=R[pe];if(X(ie,_e)>=0)break;R[T]=_e,T=pe}R[T]=ie}_down(T){let{data:R,compare:X}=this,ie=this.length>>1,pe=R[T];for(;T=0)break;R[T]=R[_e],T=_e}R[T]=pe}}function yB(I,T=1,R=!1){let X=1/0,ie=1/0,pe=-1/0,_e=-1/0,Xe=I[0];for(let Dr=0;Drpe)&&(pe=Jr.x),(!Dr||Jr.y>_e)&&(_e=Jr.y)}let ct=Math.min(pe-X,_e-ie),Et=ct/2,Yt=new Vv([],gB);if(ct===0)return new l(X,ie);for(let Dr=X;Drhr.d||!hr.d)&&(hr=Dr,R&&console.log("found best %d after %d probes",Math.round(1e4*Dr.d)/1e4,Tr)),Dr.max-hr.d<=T||(Et=Dr.h/2,Yt.push(new O1(Dr.p.x-Et,Dr.p.y-Et,Et,I)),Yt.push(new O1(Dr.p.x+Et,Dr.p.y-Et,Et,I)),Yt.push(new O1(Dr.p.x-Et,Dr.p.y+Et,Et,I)),Yt.push(new O1(Dr.p.x+Et,Dr.p.y+Et,Et,I)),Tr+=4)}return R&&(console.log(`num probes: ${Tr}`),console.log(`best distance: ${hr.d}`)),hr.p}function gB(I,T){return T.max-I.max}function O1(I,T,R,X){this.p=new l(I,T),this.h=R,this.d=function(ie,pe){let _e=!1,Xe=1/0;for(let ct=0;ctie.y!=Jr.y>ie.y&&ie.x<(Jr.x-Dr.x)*(ie.y-Dr.y)/(Jr.y-Dr.y)+Dr.x&&(_e=!_e),Xe=Math.min(Xe,di(ie,Dr,Jr))}}return(_e?1:-1)*Math.sqrt(Xe)}(this.p,X),this.max=this.d+this.h*Math.SQRT2}var ud;i.aq=void 0,(ud=i.aq||(i.aq={}))[ud.center=1]="center",ud[ud.left=2]="left",ud[ud.right=3]="right",ud[ud.top=4]="top",ud[ud.bottom=5]="bottom",ud[ud["top-left"]=6]="top-left",ud[ud["top-right"]=7]="top-right",ud[ud["bottom-left"]=8]="bottom-left",ud[ud["bottom-right"]=9]="bottom-right";let py=7,_g=Number.POSITIVE_INFINITY;function AM(I,T){return T[1]!==_g?function(R,X,ie){let pe=0,_e=0;switch(X=Math.abs(X),ie=Math.abs(ie),R){case"top-right":case"top-left":case"top":_e=ie-py;break;case"bottom-right":case"bottom-left":case"bottom":_e=-ie+py}switch(R){case"top-right":case"bottom-right":case"right":pe=-X;break;case"top-left":case"bottom-left":case"left":pe=X}return[pe,_e]}(I,T[0],T[1]):function(R,X){let ie=0,pe=0;X<0&&(X=0);let _e=X/Math.SQRT2;switch(R){case"top-right":case"top-left":pe=_e-py;break;case"bottom-right":case"bottom-left":pe=-_e+py;break;case"bottom":pe=-X+py;break;case"top":pe=X-py}switch(R){case"top-right":case"bottom-right":ie=-_e;break;case"top-left":case"bottom-left":ie=_e;break;case"left":ie=X;break;case"right":ie=-X}return[ie,pe]}(I,T[0])}function JC(I,T,R){var X;let ie=I.layout,pe=(X=ie.get("text-variable-anchor-offset"))===null||X===void 0?void 0:X.evaluate(T,{},R);if(pe){let Xe=pe.values,ct=[];for(let Et=0;EtTr*jf);Yt.startsWith("top")?hr[1]-=py:Yt.startsWith("bottom")&&(hr[1]+=py),ct[Et+1]=hr}return new Hr(ct)}let _e=ie.get("text-variable-anchor");if(_e){let Xe;Xe=I._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[ie.get("text-radial-offset").evaluate(T,{},R)*jf,_g]:ie.get("text-offset").evaluate(T,{},R).map(Et=>Et*jf);let ct=[];for(let Et of _e)ct.push(Et,AM(Et,Xe));return new Hr(ct)}return null}function TM(I){switch(I){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function _B(I,T,R,X,ie,pe,_e,Xe,ct,Et,Yt){let hr=pe.textMaxSize.evaluate(T,{});hr===void 0&&(hr=_e);let Tr=I.layers[0].layout,Dr=Tr.get("icon-offset").evaluate(T,{},Yt),Jr=QC(R.horizontal),li=_e/24,Gi=I.tilePixelRatio*li,fn=I.tilePixelRatio*hr/24,Za=I.tilePixelRatio*Xe,Dn=I.tilePixelRatio*Tr.get("symbol-spacing"),La=Tr.get("text-padding")*I.tilePixelRatio,So=function(Xs,Lu,xu,qu=1){let vc=Xs.get("icon-padding").evaluate(Lu,{},xu),cc=vc&&vc.values;return[cc[0]*qu,cc[1]*qu,cc[2]*qu,cc[3]*qu]}(Tr,T,Yt,I.tilePixelRatio),kl=Tr.get("text-max-angle")/180*Math.PI,mu=Tr.get("text-rotation-alignment")!=="viewport"&&Tr.get("symbol-placement")!=="point",Iu=Tr.get("icon-rotation-alignment")==="map"&&Tr.get("symbol-placement")!=="point",su=Tr.get("symbol-placement"),yl=Dn/2,Eu=Tr.get("icon-text-fit"),bu;X&&Eu!=="none"&&(I.allowVerticalPlacement&&R.vertical&&(bu=IC(X,R.vertical,Eu,Tr.get("icon-text-fit-padding"),Dr,li)),Jr&&(X=IC(X,Jr,Eu,Tr.get("icon-text-fit-padding"),Dr,li)));let _u=(Xs,Lu)=>{Lu.x<0||Lu.x>=Wl||Lu.y<0||Lu.y>=Wl||function(xu,qu,vc,cc,Dh,Qp,fd,Rh,Wd,jd,Xd,$c,Fh,Cd,cd,$h,ih,Rp,cp,Xf,Ac,mc,Fp,Wc,B1){let v0=xu.addToLineVertexArray(qu,vc),Gv,ev,Dc,ch,tv=0,gm=0,hp=0,q1=0,CM=-1,e3=-1,m0={},xg=un("");if(xu.allowVerticalPlacement&&cc.vertical){let Ld=Rh.layout.get("text-rotate").evaluate(Ac,{},Wc)+90;Dc=new dy(Wd,qu,jd,Xd,$c,cc.vertical,Fh,Cd,cd,Ld),fd&&(ch=new dy(Wd,qu,jd,Xd,$c,fd,ih,Rp,cd,Ld))}if(Dh){let Ld=Rh.layout.get("icon-rotate").evaluate(Ac,{}),rv=Rh.layout.get("icon-text-fit")!=="none",vy=YC(Dh,Ld,Fp,rv),Zd=fd?YC(fd,Ld,Fp,rv):void 0;ev=new dy(Wd,qu,jd,Xd,$c,Dh,ih,Rp,!1,Ld),tv=4*vy.length;let Pd=xu.iconSizeData,xv=null;Pd.kind==="source"?(xv=[p0*Rh.layout.get("icon-size").evaluate(Ac,{})],xv[0]>cy&&E(`${xu.layerIds[0]}: Value for "icon-size" is >= ${rb}. Reduce your "icon-size".`)):Pd.kind==="composite"&&(xv=[p0*mc.compositeIconSizes[0].evaluate(Ac,{},Wc),p0*mc.compositeIconSizes[1].evaluate(Ac,{},Wc)],(xv[0]>cy||xv[1]>cy)&&E(`${xu.layerIds[0]}: Value for "icon-size" is >= ${rb}. Reduce your "icon-size".`)),xu.addSymbols(xu.icon,vy,xv,Xf,cp,Ac,i.ah.none,qu,v0.lineStartIndex,v0.lineLength,-1,Wc),CM=xu.icon.placedSymbolArray.length-1,Zd&&(gm=4*Zd.length,xu.addSymbols(xu.icon,Zd,xv,Xf,cp,Ac,i.ah.vertical,qu,v0.lineStartIndex,v0.lineLength,-1,Wc),e3=xu.icon.placedSymbolArray.length-1)}let Qh=Object.keys(cc.horizontal);for(let Ld of Qh){let rv=cc.horizontal[Ld];if(!Gv){xg=un(rv.text);let Zd=Rh.layout.get("text-rotate").evaluate(Ac,{},Wc);Gv=new dy(Wd,qu,jd,Xd,$c,rv,Fh,Cd,cd,Zd)}let vy=rv.positionedLines.length===1;if(hp+=$C(xu,qu,rv,Qp,Rh,cd,Ac,$h,v0,cc.vertical?i.ah.horizontal:i.ah.horizontalOnly,vy?Qh:[Ld],m0,CM,mc,Wc),vy)break}cc.vertical&&(q1+=$C(xu,qu,cc.vertical,Qp,Rh,cd,Ac,$h,v0,i.ah.vertical,["vertical"],m0,e3,mc,Wc));let wB=Gv?Gv.boxStartIndex:xu.collisionBoxArray.length,t3=Gv?Gv.boxEndIndex:xu.collisionBoxArray.length,y0=Dc?Dc.boxStartIndex:xu.collisionBoxArray.length,dp=Dc?Dc.boxEndIndex:xu.collisionBoxArray.length,iL=ev?ev.boxStartIndex:xu.collisionBoxArray.length,AB=ev?ev.boxEndIndex:xu.collisionBoxArray.length,nL=ch?ch.boxStartIndex:xu.collisionBoxArray.length,TB=ch?ch.boxEndIndex:xu.collisionBoxArray.length,_v=-1,hb=(Ld,rv)=>Ld&&Ld.circleDiameter?Math.max(Ld.circleDiameter,rv):rv;_v=hb(Gv,_v),_v=hb(Dc,_v),_v=hb(ev,_v),_v=hb(ch,_v);let r3=_v>-1?1:0;r3&&(_v*=B1/jf),xu.glyphOffsetArray.length>=I1.MAX_GLYPHS&&E("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ac.sortKey!==void 0&&xu.addToSortKeyRanges(xu.symbolInstances.length,Ac.sortKey);let LM=JC(Rh,Ac,Wc),[SB,MB]=function(Ld,rv){let vy=Ld.length,Zd=rv==null?void 0:rv.values;if((Zd==null?void 0:Zd.length)>0)for(let Pd=0;Pd=0?m0.right:-1,m0.center>=0?m0.center:-1,m0.left>=0?m0.left:-1,m0.vertical||-1,CM,e3,xg,wB,t3,y0,dp,iL,AB,nL,TB,jd,hp,q1,tv,gm,r3,0,Fh,_v,SB,MB)}(I,Lu,Xs,R,X,ie,bu,I.layers[0],I.collisionBoxArray,T.index,T.sourceLayerIndex,I.index,Gi,[La,La,La,La],mu,ct,Za,So,Iu,Dr,T,pe,Et,Yt,_e)};if(su==="line")for(let Xs of HC(T.geometry,0,0,Wl,Wl)){let Lu=mB(Xs,Dn,kl,R.vertical||Jr,X,24,fn,I.overscaling,Wl);for(let xu of Lu)Jr&&xB(I,Jr.text,yl,xu)||_u(Xs,xu)}else if(su==="line-center"){for(let Xs of T.geometry)if(Xs.length>1){let Lu=vB(Xs,kl,R.vertical||Jr,X,24,fn);Lu&&_u(Xs,Lu)}}else if(T.type==="Polygon")for(let Xs of Ys(T.geometry,0)){let Lu=yB(Xs,16);_u(Xs[0],new mm(Lu.x,Lu.y,0))}else if(T.type==="LineString")for(let Xs of T.geometry)_u(Xs,new mm(Xs[0].x,Xs[0].y,0));else if(T.type==="Point")for(let Xs of T.geometry)for(let Lu of Xs)_u([Lu],new mm(Lu.x,Lu.y,0))}function $C(I,T,R,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr){let li=function(Za,Dn,La,So,kl,mu,Iu,su){let yl=So.layout.get("text-rotate").evaluate(mu,{})*Math.PI/180,Eu=[];for(let bu of Dn.positionedLines)for(let _u of bu.positionedGlyphs){if(!_u.rect)continue;let Xs=_u.rect||{},Lu=kC+1,xu=!0,qu=1,vc=0,cc=(kl||su)&&_u.vertical,Dh=_u.metrics.advance*_u.scale/2;if(su&&Dn.verticalizable&&(vc=bu.lineOffset/2-(_u.imageName?-(jf-_u.metrics.width*_u.scale)/2:(_u.scale-1)*jf)),_u.imageName){let Xf=Iu[_u.imageName];xu=Xf.sdf,qu=Xf.pixelRatio,Lu=kd/qu}let Qp=kl?[_u.x+Dh,_u.y]:[0,0],fd=kl?[0,0]:[_u.x+Dh+La[0],_u.y+La[1]-vc],Rh=[0,0];cc&&(Rh=fd,fd=[0,0]);let Wd=_u.metrics.isDoubleResolution?2:1,jd=(_u.metrics.left-Lu)*_u.scale-Dh+fd[0],Xd=(-_u.metrics.top-Lu)*_u.scale+fd[1],$c=jd+Xs.w/Wd*_u.scale/qu,Fh=Xd+Xs.h/Wd*_u.scale/qu,Cd=new l(jd,Xd),cd=new l($c,Xd),$h=new l(jd,Fh),ih=new l($c,Fh);if(cc){let Xf=new l(-Dh,Dh-Ih),Ac=-Math.PI/2,mc=jf/2-Dh,Fp=new l(5-Ih-mc,-(_u.imageName?mc:0)),Wc=new l(...Rh);Cd._rotateAround(Ac,Xf)._add(Fp)._add(Wc),cd._rotateAround(Ac,Xf)._add(Fp)._add(Wc),$h._rotateAround(Ac,Xf)._add(Fp)._add(Wc),ih._rotateAround(Ac,Xf)._add(Fp)._add(Wc)}if(yl){let Xf=Math.sin(yl),Ac=Math.cos(yl),mc=[Ac,-Xf,Xf,Ac];Cd._matMult(mc),cd._matMult(mc),$h._matMult(mc),ih._matMult(mc)}let Rp=new l(0,0),cp=new l(0,0);Eu.push({tl:Cd,tr:cd,bl:$h,br:ih,tex:Xs,writingMode:Dn.writingMode,glyphOffset:Qp,sectionIndex:_u.sectionIndex,isSDF:xu,pixelOffsetTL:Rp,pixelOffsetBR:cp,minFontScaleX:0,minFontScaleY:0})}return Eu}(0,R,Xe,ie,pe,_e,X,I.allowVerticalPlacement),Gi=I.textSizeData,fn=null;Gi.kind==="source"?(fn=[p0*ie.layout.get("text-size").evaluate(_e,{})],fn[0]>cy&&E(`${I.layerIds[0]}: Value for "text-size" is >= ${rb}. Reduce your "text-size".`)):Gi.kind==="composite"&&(fn=[p0*Dr.compositeTextSizes[0].evaluate(_e,{},Jr),p0*Dr.compositeTextSizes[1].evaluate(_e,{},Jr)],(fn[0]>cy||fn[1]>cy)&&E(`${I.layerIds[0]}: Value for "text-size" is >= ${rb}. Reduce your "text-size".`)),I.addSymbols(I.text,li,fn,Xe,pe,_e,Et,T,ct.lineStartIndex,ct.lineLength,Tr,Jr);for(let Za of Yt)hr[Za]=I.text.placedSymbolArray.length-1;return 4*li.length}function QC(I){for(let T in I)return I[T];return null}function xB(I,T,R,X){let ie=I.compareText;if(T in ie){let pe=ie[T];for(let _e=pe.length-1;_e>=0;_e--)if(X.dist(pe[_e])>4;if(ie!==1)throw new Error(`Got v${ie} data when expected v1.`);let pe=eL[15&X];if(!pe)throw new Error("Unrecognized array type.");let[_e]=new Uint16Array(T,2,1),[Xe]=new Uint32Array(T,4,1);return new SM(Xe,_e,pe,T)}constructor(T,R=64,X=Float64Array,ie){if(isNaN(T)||T<0)throw new Error(`Unpexpected numItems value: ${T}.`);this.numItems=+T,this.nodeSize=Math.min(Math.max(+R,2),65535),this.ArrayType=X,this.IndexArrayType=T<65536?Uint16Array:Uint32Array;let pe=eL.indexOf(this.ArrayType),_e=2*T*this.ArrayType.BYTES_PER_ELEMENT,Xe=T*this.IndexArrayType.BYTES_PER_ELEMENT,ct=(8-Xe%8)%8;if(pe<0)throw new Error(`Unexpected typed array class: ${X}.`);ie&&ie instanceof ArrayBuffer?(this.data=ie,this.ids=new this.IndexArrayType(this.data,8,T),this.coords=new this.ArrayType(this.data,8+Xe+ct,2*T),this._pos=2*T,this._finished=!0):(this.data=new ArrayBuffer(8+_e+Xe+ct),this.ids=new this.IndexArrayType(this.data,8,T),this.coords=new this.ArrayType(this.data,8+Xe+ct,2*T),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+pe]),new Uint16Array(this.data,2,1)[0]=R,new Uint32Array(this.data,4,1)[0]=T)}add(T,R){let X=this._pos>>1;return this.ids[X]=X,this.coords[this._pos++]=T,this.coords[this._pos++]=R,X}finish(){let T=this._pos>>1;if(T!==this.numItems)throw new Error(`Added ${T} items when expected ${this.numItems}.`);return Jw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(T,R,X,ie){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:pe,coords:_e,nodeSize:Xe}=this,ct=[0,pe.length-1,0],Et=[];for(;ct.length;){let Yt=ct.pop()||0,hr=ct.pop()||0,Tr=ct.pop()||0;if(hr-Tr<=Xe){for(let Gi=Tr;Gi<=hr;Gi++){let fn=_e[2*Gi],Za=_e[2*Gi+1];fn>=T&&fn<=X&&Za>=R&&Za<=ie&&Et.push(pe[Gi])}continue}let Dr=Tr+hr>>1,Jr=_e[2*Dr],li=_e[2*Dr+1];Jr>=T&&Jr<=X&&li>=R&&li<=ie&&Et.push(pe[Dr]),(Yt===0?T<=Jr:R<=li)&&(ct.push(Tr),ct.push(Dr-1),ct.push(1-Yt)),(Yt===0?X>=Jr:ie>=li)&&(ct.push(Dr+1),ct.push(hr),ct.push(1-Yt))}return Et}within(T,R,X){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ie,coords:pe,nodeSize:_e}=this,Xe=[0,ie.length-1,0],ct=[],Et=X*X;for(;Xe.length;){let Yt=Xe.pop()||0,hr=Xe.pop()||0,Tr=Xe.pop()||0;if(hr-Tr<=_e){for(let Gi=Tr;Gi<=hr;Gi++)rL(pe[2*Gi],pe[2*Gi+1],T,R)<=Et&&ct.push(ie[Gi]);continue}let Dr=Tr+hr>>1,Jr=pe[2*Dr],li=pe[2*Dr+1];rL(Jr,li,T,R)<=Et&&ct.push(ie[Dr]),(Yt===0?T-X<=Jr:R-X<=li)&&(Xe.push(Tr),Xe.push(Dr-1),Xe.push(1-Yt)),(Yt===0?T+X>=Jr:R+X>=li)&&(Xe.push(Dr+1),Xe.push(hr),Xe.push(1-Yt))}return ct}}function Jw(I,T,R,X,ie,pe){if(ie-X<=R)return;let _e=X+ie>>1;tL(I,T,_e,X,ie,pe),Jw(I,T,R,X,_e-1,1-pe),Jw(I,T,R,_e+1,ie,1-pe)}function tL(I,T,R,X,ie,pe){for(;ie>X;){if(ie-X>600){let Et=ie-X+1,Yt=R-X+1,hr=Math.log(Et),Tr=.5*Math.exp(2*hr/3),Dr=.5*Math.sqrt(hr*Tr*(Et-Tr)/Et)*(Yt-Et/2<0?-1:1);tL(I,T,R,Math.max(X,Math.floor(R-Yt*Tr/Et+Dr)),Math.min(ie,Math.floor(R+(Et-Yt)*Tr/Et+Dr)),pe)}let _e=T[2*R+pe],Xe=X,ct=ie;for(fb(I,T,X,R),T[2*ie+pe]>_e&&fb(I,T,X,ie);Xe_e;)ct--}T[2*X+pe]===_e?fb(I,T,X,ct):(ct++,fb(I,T,ct,ie)),ct<=R&&(X=ct+1),R<=ct&&(ie=ct-1)}}function fb(I,T,R,X){MM(I,R,X),MM(T,2*R,2*X),MM(T,2*R+1,2*X+1)}function MM(I,T,R){let X=I[T];I[T]=I[R],I[R]=X}function rL(I,T,R,X){let ie=I-R,pe=T-X;return ie*ie+pe*pe}var $w;i.bg=void 0,($w=i.bg||(i.bg={})).create="create",$w.load="load",$w.fullLoad="fullLoad";let cb=null,mh=[],EM=1e3/60,kM="loadTime",Qw="fullLoadTime",bB={mark(I){performance.mark(I)},frame(I){let T=I;cb!=null&&mh.push(T-cb),cb=T},clearMetrics(){cb=null,mh=[],performance.clearMeasures(kM),performance.clearMeasures(Qw);for(let I in i.bg)performance.clearMarks(i.bg[I])},getPerformanceMetrics(){performance.measure(kM,i.bg.create,i.bg.load),performance.measure(Qw,i.bg.create,i.bg.fullLoad);let I=performance.getEntriesByName(kM)[0].duration,T=performance.getEntriesByName(Qw)[0].duration,R=mh.length,X=1/(mh.reduce((pe,_e)=>pe+_e,0)/R/1e3),ie=mh.filter(pe=>pe>EM).reduce((pe,_e)=>pe+(_e-EM)/EM,0);return{loadTime:I,fullLoadTime:T,fps:X,percentDroppedFrames:ie/(R+ie)*100,totalFrames:R}}};i.$=class extends Qt{},i.A=dn,i.B=ki,i.C=function(I){if(U==null){let T=I.navigator?I.navigator.userAgent:null;U=!!I.safari||!(!T||!(/\b(iPad|iPhone|iPod)\b/.test(T)||T.match("Safari")&&!T.match("Chrome")))}return U},i.D=ms,i.E=Be,i.F=class{constructor(I,T){this.target=I,this.mapId=T,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new gM(()=>this.process()),this.subscription=function(R,X,ie,pe){return R.addEventListener(X,ie,!1),{unsubscribe:()=>{R.removeEventListener(X,ie,!1)}}}(this.target,"message",R=>this.receive(R)),this.globalScope=F(self)?I:window}registerMessageHandler(I,T){this.messageHandlers[I]=T}sendAsync(I,T){return new Promise((R,X)=>{let ie=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[ie]={resolve:R,reject:X},T&&T.signal.addEventListener("abort",()=>{delete this.resolveRejects[ie];let Xe={id:ie,type:"",origin:location.origin,targetMapId:I.targetMapId,sourceMapId:this.mapId};this.target.postMessage(Xe)},{once:!0});let pe=[],_e=Object.assign(Object.assign({},I),{id:ie,sourceMapId:this.mapId,origin:location.origin,data:ia(I.data,pe)});this.target.postMessage(_e,{transfer:pe})})}receive(I){let T=I.data,R=T.id;if(!(T.origin!=="file://"&&location.origin!=="file://"&&T.origin!=="resource://android"&&location.origin!=="resource://android"&&T.origin!==location.origin||T.targetMapId&&this.mapId!==T.targetMapId)){if(T.type===""){delete this.tasks[R];let X=this.abortControllers[R];return delete this.abortControllers[R],void(X&&X.abort())}if(F(self)||T.mustQueue)return this.tasks[R]=T,this.taskQueue.push(R),void this.invoker.trigger();this.processTask(R,T)}}process(){if(this.taskQueue.length===0)return;let I=this.taskQueue.shift(),T=this.tasks[I];delete this.tasks[I],this.taskQueue.length>0&&this.invoker.trigger(),T&&this.processTask(I,T)}processTask(I,T){return a(this,void 0,void 0,function*(){if(T.type===""){let ie=this.resolveRejects[I];return delete this.resolveRejects[I],ie?void(T.error?ie.reject(pa(T.error)):ie.resolve(pa(T.data))):void 0}if(!this.messageHandlers[T.type])return void this.completeTask(I,new Error(`Could not find a registered handler for ${T.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let R=pa(T.data),X=new AbortController;this.abortControllers[I]=X;try{let ie=yield this.messageHandlers[T.type](T.sourceMapId,R,X);this.completeTask(I,null,ie)}catch(ie){this.completeTask(I,ie)}})}completeTask(I,T,R){let X=[];delete this.abortControllers[I];let ie={id:I,type:"",sourceMapId:this.mapId,origin:location.origin,error:T?ia(T):null,data:ia(R,X)};this.target.postMessage(ie,{transfer:X})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Ce,i.H=function(){var I=new dn(16);return dn!=Float32Array&&(I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[11]=0,I[12]=0,I[13]=0,I[14]=0),I[0]=1,I[5]=1,I[10]=1,I[15]=1,I},i.I=Uw,i.J=function(I,T,R){var X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Dr,Jr,li=R[0],Gi=R[1],fn=R[2];return T===I?(I[12]=T[0]*li+T[4]*Gi+T[8]*fn+T[12],I[13]=T[1]*li+T[5]*Gi+T[9]*fn+T[13],I[14]=T[2]*li+T[6]*Gi+T[10]*fn+T[14],I[15]=T[3]*li+T[7]*Gi+T[11]*fn+T[15]):(ie=T[1],pe=T[2],_e=T[3],Xe=T[4],ct=T[5],Et=T[6],Yt=T[7],hr=T[8],Tr=T[9],Dr=T[10],Jr=T[11],I[0]=X=T[0],I[1]=ie,I[2]=pe,I[3]=_e,I[4]=Xe,I[5]=ct,I[6]=Et,I[7]=Yt,I[8]=hr,I[9]=Tr,I[10]=Dr,I[11]=Jr,I[12]=X*li+Xe*Gi+hr*fn+T[12],I[13]=ie*li+ct*Gi+Tr*fn+T[13],I[14]=pe*li+Et*Gi+Dr*fn+T[14],I[15]=_e*li+Yt*Gi+Jr*fn+T[15]),I},i.K=function(I,T,R){var X=R[0],ie=R[1],pe=R[2];return I[0]=T[0]*X,I[1]=T[1]*X,I[2]=T[2]*X,I[3]=T[3]*X,I[4]=T[4]*ie,I[5]=T[5]*ie,I[6]=T[6]*ie,I[7]=T[7]*ie,I[8]=T[8]*pe,I[9]=T[9]*pe,I[10]=T[10]*pe,I[11]=T[11]*pe,I[12]=T[12],I[13]=T[13],I[14]=T[14],I[15]=T[15],I},i.L=Zi,i.M=function(I,T){let R={};for(let X=0;X{let T=window.document.createElement("video");return T.muted=!0,new Promise(R=>{T.onloadstart=()=>{R(T)};for(let X of I){let ie=window.document.createElement("source");Te(X)||(T.crossOrigin="Anonymous"),ie.src=X,T.appendChild(ie)}})},i.a4=function(){return x++},i.a5=Ua,i.a6=I1,i.a7=Jn,i.a8=hf,i.a9=bM,i.aA=function(I){if(I.type==="custom")return new yM(I);switch(I.type){case"background":return new dB(I);case"circle":return new Ji(I);case"fill":return new Ft(I);case"fill-extrusion":return new Ad(I);case"heatmap":return new pl(I);case"hillshade":return new vf(I);case"line":return new dg(I);case"raster":return new ob(I);case"symbol":return new yg(I)}},i.aB=m,i.aC=function(I,T){if(!I)return[{command:"setStyle",args:[T]}];let R=[];try{if(!bt(I.version,T.version))return[{command:"setStyle",args:[T]}];bt(I.center,T.center)||R.push({command:"setCenter",args:[T.center]}),bt(I.zoom,T.zoom)||R.push({command:"setZoom",args:[T.zoom]}),bt(I.bearing,T.bearing)||R.push({command:"setBearing",args:[T.bearing]}),bt(I.pitch,T.pitch)||R.push({command:"setPitch",args:[T.pitch]}),bt(I.sprite,T.sprite)||R.push({command:"setSprite",args:[T.sprite]}),bt(I.glyphs,T.glyphs)||R.push({command:"setGlyphs",args:[T.glyphs]}),bt(I.transition,T.transition)||R.push({command:"setTransition",args:[T.transition]}),bt(I.light,T.light)||R.push({command:"setLight",args:[T.light]}),bt(I.terrain,T.terrain)||R.push({command:"setTerrain",args:[T.terrain]}),bt(I.sky,T.sky)||R.push({command:"setSky",args:[T.sky]}),bt(I.projection,T.projection)||R.push({command:"setProjection",args:[T.projection]});let X={},ie=[];(function(_e,Xe,ct,Et){let Yt;for(Yt in Xe=Xe||{},_e=_e||{})Object.prototype.hasOwnProperty.call(_e,Yt)&&(Object.prototype.hasOwnProperty.call(Xe,Yt)||Ke(Yt,ct,Et));for(Yt in Xe)Object.prototype.hasOwnProperty.call(Xe,Yt)&&(Object.prototype.hasOwnProperty.call(_e,Yt)?bt(_e[Yt],Xe[Yt])||(_e[Yt].type==="geojson"&&Xe[Yt].type==="geojson"&&Mt(_e,Xe,Yt)?Ot(ct,{command:"setGeoJSONSourceData",args:[Yt,Xe[Yt].data]}):zt(Yt,Xe,ct,Et)):it(Yt,Xe,ct))})(I.sources,T.sources,ie,X);let pe=[];I.layers&&I.layers.forEach(_e=>{"source"in _e&&X[_e.source]?R.push({command:"removeLayer",args:[_e.id]}):pe.push(_e)}),R=R.concat(ie),function(_e,Xe,ct){Xe=Xe||[];let Et=(_e=_e||[]).map($e),Yt=Xe.map($e),hr=_e.reduce(De,{}),Tr=Xe.reduce(De,{}),Dr=Et.slice(),Jr=Object.create(null),li,Gi,fn,Za,Dn;for(let La=0,So=0;La@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(R,X,ie,pe)=>{let _e=ie||pe;return T[X]=!_e||_e.toLowerCase(),""}),T["max-age"]){let R=parseInt(T["max-age"],10);isNaN(R)?delete T["max-age"]:T["max-age"]=R}return T},i.ab=function(I,T){let R=[];for(let X in I)X in T||R.push(X);return R},i.ac=M,i.ad=function(I,T,R){var X=Math.sin(R),ie=Math.cos(R),pe=T[0],_e=T[1],Xe=T[2],ct=T[3],Et=T[4],Yt=T[5],hr=T[6],Tr=T[7];return T!==I&&(I[8]=T[8],I[9]=T[9],I[10]=T[10],I[11]=T[11],I[12]=T[12],I[13]=T[13],I[14]=T[14],I[15]=T[15]),I[0]=pe*ie+Et*X,I[1]=_e*ie+Yt*X,I[2]=Xe*ie+hr*X,I[3]=ct*ie+Tr*X,I[4]=Et*ie-pe*X,I[5]=Yt*ie-_e*X,I[6]=hr*ie-Xe*X,I[7]=Tr*ie-ct*X,I},i.ae=function(I){var T=new dn(16);return T[0]=I[0],T[1]=I[1],T[2]=I[2],T[3]=I[3],T[4]=I[4],T[5]=I[5],T[6]=I[6],T[7]=I[7],T[8]=I[8],T[9]=I[9],T[10]=I[10],T[11]=I[11],T[12]=I[12],T[13]=I[13],T[14]=I[14],T[15]=I[15],T},i.af=hs,i.ag=function(I,T){let R=0,X=0;if(I.kind==="constant")X=I.layoutSize;else if(I.kind!=="source"){let{interpolationType:ie,minZoom:pe,maxZoom:_e}=I,Xe=ie?M(so.interpolationFactor(ie,T,pe,_e),0,1):0;I.kind==="camera"?X=ka.number(I.minSize,I.maxSize,Xe):R=Xe}return{uSizeT:R,uSize:X}},i.ai=function(I,{uSize:T,uSizeT:R},{lowerSize:X,upperSize:ie}){return I.kind==="source"?X/p0:I.kind==="composite"?ka.number(X/p0,ie/p0,R):T},i.aj=dM,i.ak=function(I,T,R,X){let ie=T.y-I.y,pe=T.x-I.x,_e=X.y-R.y,Xe=X.x-R.x,ct=_e*pe-Xe*ie;if(ct===0)return null;let Et=(Xe*(I.y-R.y)-_e*(I.x-R.x))/ct;return new l(I.x+Et*pe,I.y+Et*ie)},i.al=HC,i.am=fc,i.an=En,i.ao=function(I){let T=1/0,R=1/0,X=-1/0,ie=-1/0;for(let pe of I)T=Math.min(T,pe.x),R=Math.min(R,pe.y),X=Math.max(X,pe.x),ie=Math.max(ie,pe.y);return[T,R,X,ie]},i.ap=jf,i.ar=hM,i.as=function(I,T){var R=T[0],X=T[1],ie=T[2],pe=T[3],_e=T[4],Xe=T[5],ct=T[6],Et=T[7],Yt=T[8],hr=T[9],Tr=T[10],Dr=T[11],Jr=T[12],li=T[13],Gi=T[14],fn=T[15],Za=R*Xe-X*_e,Dn=R*ct-ie*_e,La=R*Et-pe*_e,So=X*ct-ie*Xe,kl=X*Et-pe*Xe,mu=ie*Et-pe*ct,Iu=Yt*li-hr*Jr,su=Yt*Gi-Tr*Jr,yl=Yt*fn-Dr*Jr,Eu=hr*Gi-Tr*li,bu=hr*fn-Dr*li,_u=Tr*fn-Dr*Gi,Xs=Za*_u-Dn*bu+La*Eu+So*yl-kl*su+mu*Iu;return Xs?(I[0]=(Xe*_u-ct*bu+Et*Eu)*(Xs=1/Xs),I[1]=(ie*bu-X*_u-pe*Eu)*Xs,I[2]=(li*mu-Gi*kl+fn*So)*Xs,I[3]=(Tr*kl-hr*mu-Dr*So)*Xs,I[4]=(ct*yl-_e*_u-Et*su)*Xs,I[5]=(R*_u-ie*yl+pe*su)*Xs,I[6]=(Gi*La-Jr*mu-fn*Dn)*Xs,I[7]=(Yt*mu-Tr*La+Dr*Dn)*Xs,I[8]=(_e*bu-Xe*yl+Et*Iu)*Xs,I[9]=(X*yl-R*bu-pe*Iu)*Xs,I[10]=(Jr*kl-li*La+fn*Za)*Xs,I[11]=(hr*La-Yt*kl-Dr*Za)*Xs,I[12]=(Xe*su-_e*Eu-ct*Iu)*Xs,I[13]=(R*Eu-X*su+ie*Iu)*Xs,I[14]=(li*Dn-Jr*So-Gi*Za)*Xs,I[15]=(Yt*So-hr*Dn+Tr*Za)*Xs,I):null},i.at=TM,i.au=Ww,i.av=SM,i.aw=function(){let I={},T=ce.$version;for(let R in ce.$root){let X=ce.$root[R];if(X.required){let ie=null;ie=R==="version"?T:X.type==="array"?[]:{},ie!=null&&(I[R]=ie)}}return I},i.ax=va,i.ay=te,i.az=function(I){I=I.slice();let T=Object.create(null);for(let R=0;R25||X<0||X>=1||R<0||R>=1)},i.bc=function(I,T){return I[0]=T[0],I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[5]=T[1],I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[10]=T[2],I[11]=0,I[12]=0,I[13]=0,I[14]=0,I[15]=1,I},i.bd=class extends Dt{},i.be=_M,i.bf=bB,i.bh=de,i.bi=function(I,T){me.REGISTERED_PROTOCOLS[I]=T},i.bj=function(I){delete me.REGISTERED_PROTOCOLS[I]},i.bk=function(I,T){let R={};for(let ie=0;ie_u*jf)}let su=_e?"center":R.get("text-justify").evaluate(Et,{},I.canonical),yl=R.get("symbol-placement")==="point"?R.get("text-max-width").evaluate(Et,{},I.canonical)*jf:1/0,Eu=()=>{I.bucket.allowVerticalPlacement&&is(La)&&(Jr.vertical=eb(li,I.glyphMap,I.glyphPositions,I.imagePositions,Yt,yl,pe,mu,"left",kl,fn,i.ah.vertical,!0,Tr,hr))};if(!_e&&Iu){let bu=new Set;if(su==="auto")for(let Xs=0;Xsa(void 0,void 0,void 0,function*(){if(I.byteLength===0)return createImageBitmap(new ImageData(1,1));let T=new Blob([new Uint8Array(I)],{type:"image/png"});try{return createImageBitmap(T)}catch(R){throw new Error(`Could not load image because of ${R.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=I=>new Promise((T,R)=>{let X=new Image;X.onload=()=>{T(X),URL.revokeObjectURL(X.src),X.onload=null,window.requestAnimationFrame(()=>{X.src=j})},X.onerror=()=>R(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let ie=new Blob([new Uint8Array(I)],{type:"image/png"});X.src=I.byteLength?URL.createObjectURL(ie):j}),i.g=Le,i.h=(I,T)=>Se(L(I,{type:"json"}),T),i.i=F,i.j=ge,i.k=Ie,i.l=(I,T)=>Se(L(I,{type:"arrayBuffer"}),T),i.m=Se,i.n=function(I){return new uM(I).readFields(JQ,[])},i.o=ul,i.p=cM,i.q=ue,i.r=Ti,i.s=Te,i.t=Li,i.u=yi,i.v=ce,i.w=E,i.x=function([I,T,R]){return T+=90,T*=Math.PI/180,R*=Math.PI/180,{x:I*Math.cos(T)*Math.sin(R),y:I*Math.sin(T)*Math.sin(R),z:I*Math.cos(R)}},i.y=ka,i.z=cs}),r("worker",["./shared"],function(i){"use strict";class a{constructor(xe){this.keyCache={},xe&&this.replace(xe)}replace(xe){this._layerConfigs={},this._layers={},this.update(xe,[])}update(xe,Oe){for(let Re of xe){this._layerConfigs[Re.id]=Re;let ht=this._layers[Re.id]=i.aA(Re);ht._featureFilter=i.a7(ht.filter),this.keyCache[Re.id]&&delete this.keyCache[Re.id]}for(let Re of Oe)delete this.keyCache[Re],delete this._layerConfigs[Re],delete this._layers[Re];this.familiesBySource={};let ze=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let Re of ze){let ht=Re.map(cr=>this._layers[cr.id]),st=ht[0];if(st.visibility==="none")continue;let gt=st.source||"",xt=this.familiesBySource[gt];xt||(xt=this.familiesBySource[gt]={});let pr=st.sourceLayer||"_geojsonTileLayer",br=xt[pr];br||(br=xt[pr]=[]),br.push(ht)}}}class o{constructor(xe){let Oe={},ze=[];for(let gt in xe){let xt=xe[gt],pr=Oe[gt]={};for(let br in xt){let cr=xt[+br];if(!cr||cr.bitmap.width===0||cr.bitmap.height===0)continue;let Er={x:0,y:0,w:cr.bitmap.width+2,h:cr.bitmap.height+2};ze.push(Er),pr[br]={rect:Er,metrics:cr.metrics}}}let{w:Re,h:ht}=i.p(ze),st=new i.o({width:Re||1,height:ht||1});for(let gt in xe){let xt=xe[gt];for(let pr in xt){let br=xt[+pr];if(!br||br.bitmap.width===0||br.bitmap.height===0)continue;let cr=Oe[gt][pr].rect;i.o.copy(br.bitmap,st,{x:0,y:0},{x:cr.x+1,y:cr.y+1},br.bitmap)}}this.image=st,this.positions=Oe}}i.bl("GlyphAtlas",o);class s{constructor(xe){this.tileID=new i.S(xe.tileID.overscaledZ,xe.tileID.wrap,xe.tileID.canonical.z,xe.tileID.canonical.x,xe.tileID.canonical.y),this.uid=xe.uid,this.zoom=xe.zoom,this.pixelRatio=xe.pixelRatio,this.tileSize=xe.tileSize,this.source=xe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=xe.showCollisionBoxes,this.collectResourceTiming=!!xe.collectResourceTiming,this.returnDependencies=!!xe.returnDependencies,this.promoteId=xe.promoteId,this.inFlightDependencies=[]}parse(xe,Oe,ze,Re){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=xe,this.collisionBoxArray=new i.a5;let ht=new i.bm(Object.keys(xe.layers).sort()),st=new i.bn(this.tileID,this.promoteId);st.bucketLayerIDs=[];let gt={},xt={featureIndex:st,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:ze},pr=Oe.familiesBySource[this.source];for(let hn in pr){let qr=xe.layers[hn];if(!qr)continue;qr.version===1&&i.w(`Vector tile source "${this.source}" layer "${hn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let _i=ht.encode(hn),zi=[];for(let Rt=0;Rt=_t.maxzoom||_t.visibility!=="none"&&(u(Rt,this.zoom,ze),(gt[_t.id]=_t.createBucket({index:st.bucketLayerIDs.length,layers:Rt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_i,sourceID:this.source})).populate(zi,xt,this.tileID.canonical),st.bucketLayerIDs.push(Rt.map(qt=>qt.id)))}}let br=i.aF(xt.glyphDependencies,hn=>Object.keys(hn).map(Number));this.inFlightDependencies.forEach(hn=>hn==null?void 0:hn.abort()),this.inFlightDependencies=[];let cr=Promise.resolve({});if(Object.keys(br).length){let hn=new AbortController;this.inFlightDependencies.push(hn),cr=Re.sendAsync({type:"GG",data:{stacks:br,source:this.source,tileID:this.tileID,type:"glyphs"}},hn)}let Er=Object.keys(xt.iconDependencies),ii=Promise.resolve({});if(Er.length){let hn=new AbortController;this.inFlightDependencies.push(hn),ii=Re.sendAsync({type:"GI",data:{icons:Er,source:this.source,tileID:this.tileID,type:"icons"}},hn)}let jr=Object.keys(xt.patternDependencies),kr=Promise.resolve({});if(jr.length){let hn=new AbortController;this.inFlightDependencies.push(hn),kr=Re.sendAsync({type:"GI",data:{icons:jr,source:this.source,tileID:this.tileID,type:"patterns"}},hn)}let[Vr,Ai,Bi]=yield Promise.all([cr,ii,kr]),Di=new o(Vr),ln=new i.bo(Ai,Bi);for(let hn in gt){let qr=gt[hn];qr instanceof i.a6?(u(qr.layers,this.zoom,ze),i.bp({bucket:qr,glyphMap:Vr,glyphPositions:Di.positions,imageMap:Ai,imagePositions:ln.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):qr.hasPattern&&(qr instanceof i.bq||qr instanceof i.br||qr instanceof i.bs)&&(u(qr.layers,this.zoom,ze),qr.addFeatures(xt,this.tileID.canonical,ln.patternPositions))}return this.status="done",{buckets:Object.values(gt).filter(hn=>!hn.isEmpty()),featureIndex:st,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Di.image,imageAtlas:ln,glyphMap:this.returnDependencies?Vr:null,iconMap:this.returnDependencies?Ai:null,glyphPositions:this.returnDependencies?Di.positions:null}})}}function u(Pe,xe,Oe){let ze=new i.z(xe);for(let Re of Pe)Re.recalculate(ze,Oe)}class l{constructor(xe,Oe,ze){this.actor=xe,this.layerIndex=Oe,this.availableImages=ze,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(xe,Oe){return i._(this,void 0,void 0,function*(){let ze=yield i.l(xe.request,Oe);try{return{vectorTile:new i.bt.VectorTile(new i.bu(ze.data)),rawData:ze.data,cacheControl:ze.cacheControl,expires:ze.expires}}catch(Re){let ht=new Uint8Array(ze.data),st=`Unable to parse the tile at ${xe.request.url}, `;throw st+=ht[0]===31&&ht[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${Re.message}`,new Error(st)}})}loadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid,ze=!!(xe&&xe.request&&xe.request.collectResourceTiming)&&new i.bv(xe.request),Re=new s(xe);this.loading[Oe]=Re;let ht=new AbortController;Re.abort=ht;try{let st=yield this.loadVectorTile(xe,ht);if(delete this.loading[Oe],!st)return null;let gt=st.rawData,xt={};st.expires&&(xt.expires=st.expires),st.cacheControl&&(xt.cacheControl=st.cacheControl);let pr={};if(ze){let cr=ze.finish();cr&&(pr.resourceTiming=JSON.parse(JSON.stringify(cr)))}Re.vectorTile=st.vectorTile;let br=Re.parse(st.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Oe]=Re,this.fetching[Oe]={rawTileData:gt,cacheControl:xt,resourceTiming:pr};try{let cr=yield br;return i.e({rawTileData:gt.slice(0)},cr,xt,pr)}finally{delete this.fetching[Oe]}}catch(st){throw delete this.loading[Oe],Re.status="done",this.loaded[Oe]=Re,st}})}reloadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid;if(!this.loaded||!this.loaded[Oe])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let ze=this.loaded[Oe];if(ze.showCollisionBoxes=xe.showCollisionBoxes,ze.status==="parsing"){let Re=yield ze.parse(ze.vectorTile,this.layerIndex,this.availableImages,this.actor),ht;if(this.fetching[Oe]){let{rawTileData:st,cacheControl:gt,resourceTiming:xt}=this.fetching[Oe];delete this.fetching[Oe],ht=i.e({rawTileData:st.slice(0)},Re,gt,xt)}else ht=Re;return ht}if(ze.status==="done"&&ze.vectorTile)return ze.parse(ze.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(xe){return i._(this,void 0,void 0,function*(){let Oe=this.loading,ze=xe.uid;Oe&&Oe[ze]&&Oe[ze].abort&&(Oe[ze].abort.abort(),delete Oe[ze])})}removeTile(xe){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[xe.uid]&&delete this.loaded[xe.uid]})}}class f{constructor(){this.loaded={}}loadTile(xe){return i._(this,void 0,void 0,function*(){let{uid:Oe,encoding:ze,rawImageData:Re,redFactor:ht,greenFactor:st,blueFactor:gt,baseShift:xt}=xe,pr=Re.width+2,br=Re.height+2,cr=i.b(Re)?new i.R({width:pr,height:br},yield i.bw(Re,-1,-1,pr,br)):Re,Er=new i.bx(Oe,cr,ze,ht,st,gt,xt);return this.loaded=this.loaded||{},this.loaded[Oe]=Er,Er})}removeTile(xe){let Oe=this.loaded,ze=xe.uid;Oe&&Oe[ze]&&delete Oe[ze]}}function c(Pe,xe){if(Pe.length!==0){h(Pe[0],xe);for(var Oe=1;Oe=Math.abs(gt)?Oe-xt+gt:gt-xt+Oe,Oe=xt}Oe+ze>=0!=!!xe&&Pe.reverse()}var d=i.by(function Pe(xe,Oe){var ze,Re=xe&&xe.type;if(Re==="FeatureCollection")for(ze=0;ze>31}function F(Pe,xe){for(var Oe=Pe.loadGeometry(),ze=Pe.type,Re=0,ht=0,st=Oe.length,gt=0;gtPe},W=Math.fround||(N=new Float32Array(1),Pe=>(N[0]=+Pe,N[0]));var N;let H=3,re=5,ae=6;class me{constructor(xe){this.options=Object.assign(Object.create(j),xe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(xe){let{log:Oe,minZoom:ze,maxZoom:Re}=this.options;Oe&&console.time("total time");let ht=`prepare ${xe.length} points`;Oe&&console.time(ht),this.points=xe;let st=[];for(let xt=0;xt=ze;xt--){let pr=+Date.now();gt=this.trees[xt]=this._createTree(this._cluster(gt,xt)),Oe&&console.log("z%d: %d clusters in %dms",xt,gt.numItems,+Date.now()-pr)}return Oe&&console.timeEnd("total time"),this}getClusters(xe,Oe){let ze=((xe[0]+180)%360+360)%360-180,Re=Math.max(-90,Math.min(90,xe[1])),ht=xe[2]===180?180:((xe[2]+180)%360+360)%360-180,st=Math.max(-90,Math.min(90,xe[3]));if(xe[2]-xe[0]>=360)ze=-180,ht=180;else if(ze>ht){let cr=this.getClusters([ze,Re,180,st],Oe),Er=this.getClusters([-180,Re,ht,st],Oe);return cr.concat(Er)}let gt=this.trees[this._limitZoom(Oe)],xt=gt.range(de(ze),te(st),de(ht),te(Re)),pr=gt.data,br=[];for(let cr of xt){let Er=this.stride*cr;br.push(pr[Er+re]>1?Le(pr,Er,this.clusterProps):this.points[pr[Er+H]])}return br}getChildren(xe){let Oe=this._getOriginId(xe),ze=this._getOriginZoom(xe),Re="No cluster with the specified id.",ht=this.trees[ze];if(!ht)throw new Error(Re);let st=ht.data;if(Oe*this.stride>=st.length)throw new Error(Re);let gt=this.options.radius/(this.options.extent*Math.pow(2,ze-1)),xt=ht.within(st[Oe*this.stride],st[Oe*this.stride+1],gt),pr=[];for(let br of xt){let cr=br*this.stride;st[cr+4]===xe&&pr.push(st[cr+re]>1?Le(st,cr,this.clusterProps):this.points[st[cr+H]])}if(pr.length===0)throw new Error(Re);return pr}getLeaves(xe,Oe,ze){let Re=[];return this._appendLeaves(Re,xe,Oe=Oe||10,ze=ze||0,0),Re}getTile(xe,Oe,ze){let Re=this.trees[this._limitZoom(xe)],ht=Math.pow(2,xe),{extent:st,radius:gt}=this.options,xt=gt/st,pr=(ze-xt)/ht,br=(ze+1+xt)/ht,cr={features:[]};return this._addTileFeatures(Re.range((Oe-xt)/ht,pr,(Oe+1+xt)/ht,br),Re.data,Oe,ze,ht,cr),Oe===0&&this._addTileFeatures(Re.range(1-xt/ht,pr,1,br),Re.data,ht,ze,ht,cr),Oe===ht-1&&this._addTileFeatures(Re.range(0,pr,xt/ht,br),Re.data,-1,ze,ht,cr),cr.features.length?cr:null}getClusterExpansionZoom(xe){let Oe=this._getOriginZoom(xe)-1;for(;Oe<=this.options.maxZoom;){let ze=this.getChildren(xe);if(Oe++,ze.length!==1)break;xe=ze[0].properties.cluster_id}return Oe}_appendLeaves(xe,Oe,ze,Re,ht){let st=this.getChildren(Oe);for(let gt of st){let xt=gt.properties;if(xt&&xt.cluster?ht+xt.point_count<=Re?ht+=xt.point_count:ht=this._appendLeaves(xe,xt.cluster_id,ze,Re,ht):ht1,br,cr,Er;if(pr)br=Ce(Oe,xt,this.clusterProps),cr=Oe[xt],Er=Oe[xt+1];else{let kr=this.points[Oe[xt+H]];br=kr.properties;let[Vr,Ai]=kr.geometry.coordinates;cr=de(Vr),Er=te(Ai)}let ii={type:1,geometry:[[Math.round(this.options.extent*(cr*ht-ze)),Math.round(this.options.extent*(Er*ht-Re))]],tags:br},jr;jr=pr||this.options.generateId?Oe[xt+H]:this.points[Oe[xt+H]].id,jr!==void 0&&(ii.id=jr),st.features.push(ii)}}_limitZoom(xe){return Math.max(this.options.minZoom,Math.min(Math.floor(+xe),this.options.maxZoom+1))}_cluster(xe,Oe){let{radius:ze,extent:Re,reduce:ht,minPoints:st}=this.options,gt=ze/(Re*Math.pow(2,Oe)),xt=xe.data,pr=[],br=this.stride;for(let cr=0;crOe&&(Vr+=xt[Bi+re])}if(Vr>kr&&Vr>=st){let Ai,Bi=Er*kr,Di=ii*kr,ln=-1,hn=((cr/br|0)<<5)+(Oe+1)+this.points.length;for(let qr of jr){let _i=qr*br;if(xt[_i+2]<=Oe)continue;xt[_i+2]=Oe;let zi=xt[_i+re];Bi+=xt[_i]*zi,Di+=xt[_i+1]*zi,xt[_i+4]=hn,ht&&(Ai||(Ai=this._map(xt,cr,!0),ln=this.clusterProps.length,this.clusterProps.push(Ai)),ht(Ai,this._map(xt,_i)))}xt[cr+4]=hn,pr.push(Bi/Vr,Di/Vr,1/0,hn,-1,Vr),ht&&pr.push(ln)}else{for(let Ai=0;Ai1)for(let Ai of jr){let Bi=Ai*br;if(!(xt[Bi+2]<=Oe)){xt[Bi+2]=Oe;for(let Di=0;Di>5}_getOriginZoom(xe){return(xe-this.points.length)%32}_map(xe,Oe,ze){if(xe[Oe+re]>1){let st=this.clusterProps[xe[Oe+ae]];return ze?Object.assign({},st):st}let Re=this.points[xe[Oe+H]].properties,ht=this.options.map(Re);return ze&&ht===Re?Object.assign({},ht):ht}}function Le(Pe,xe,Oe){return{type:"Feature",id:Pe[xe+H],properties:Ce(Pe,xe,Oe),geometry:{type:"Point",coordinates:[(ze=Pe[xe],360*(ze-.5)),Se(Pe[xe+1])]}};var ze}function Ce(Pe,xe,Oe){let ze=Pe[xe+re],Re=ze>=1e4?`${Math.round(ze/1e3)}k`:ze>=1e3?Math.round(ze/100)/10+"k":ze,ht=Pe[xe+ae],st=ht===-1?{}:Object.assign({},Oe[ht]);return Object.assign(st,{cluster:!0,cluster_id:Pe[xe+H],point_count:ze,point_count_abbreviated:Re})}function de(Pe){return Pe/360+.5}function te(Pe){let xe=Math.sin(Pe*Math.PI/180),Oe=.5-.25*Math.log((1+xe)/(1-xe))/Math.PI;return Oe<0?0:Oe>1?1:Oe}function Se(Pe){let xe=(180-360*Pe)*Math.PI/180;return 360*Math.atan(Math.exp(xe))/Math.PI-90}function Te(Pe,xe,Oe,ze){let Re=ze,ht=xe+(Oe-xe>>1),st,gt=Oe-xe,xt=Pe[xe],pr=Pe[xe+1],br=Pe[Oe],cr=Pe[Oe+1];for(let Er=xe+3;ErRe)st=Er,Re=ii;else if(ii===Re){let jr=Math.abs(Er-ht);jrze&&(st-xe>3&&Te(Pe,xe,st,ze),Pe[st+2]=Re,Oe-st>3&&Te(Pe,st,Oe,ze))}function be(Pe,xe,Oe,ze,Re,ht){let st=Re-Oe,gt=ht-ze;if(st!==0||gt!==0){let xt=((Pe-Oe)*st+(xe-ze)*gt)/(st*st+gt*gt);xt>1?(Oe=Re,ze=ht):xt>0&&(Oe+=st*xt,ze+=gt*xt)}return st=Pe-Oe,gt=xe-ze,st*st+gt*gt}function He(Pe,xe,Oe,ze){let Re={id:Pe==null?null:Pe,type:xe,geometry:Oe,tags:ze,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(xe==="Point"||xe==="MultiPoint"||xe==="LineString")Ie(Re,Oe);else if(xe==="Polygon")Ie(Re,Oe[0]);else if(xe==="MultiLineString")for(let ht of Oe)Ie(Re,ht);else if(xe==="MultiPolygon")for(let ht of Oe)Ie(Re,ht[0]);return Re}function Ie(Pe,xe){for(let Oe=0;Oe0&&(st+=ze?(Re*br-pr*ht)/2:Math.sqrt(Math.pow(pr-Re,2)+Math.pow(br-ht,2))),Re=pr,ht=br}let gt=xe.length-3;xe[2]=1,Te(xe,0,gt,Oe),xe[gt+2]=1,xe.size=Math.abs(st),xe.start=0,xe.end=xe.size}function je(Pe,xe,Oe,ze){for(let Re=0;Re1?1:Oe}function Ot(Pe,xe,Oe,ze,Re,ht,st,gt){if(ze/=xe,ht>=(Oe/=xe)&&st=ze)return null;let xt=[];for(let pr of Pe){let br=pr.geometry,cr=pr.type,Er=Re===0?pr.minX:pr.minY,ii=Re===0?pr.maxX:pr.maxY;if(Er>=Oe&&ii=ze)continue;let jr=[];if(cr==="Point"||cr==="MultiPoint")it(br,jr,Oe,ze,Re);else if(cr==="LineString")Ke(br,jr,Oe,ze,Re,!1,gt.lineMetrics);else if(cr==="MultiLineString")Mt(br,jr,Oe,ze,Re,!1);else if(cr==="Polygon")Mt(br,jr,Oe,ze,Re,!0);else if(cr==="MultiPolygon")for(let kr of br){let Vr=[];Mt(kr,Vr,Oe,ze,Re,!0),Vr.length&&jr.push(Vr)}if(jr.length){if(gt.lineMetrics&&cr==="LineString"){for(let kr of jr)xt.push(He(pr.id,cr,kr,pr.tags));continue}cr!=="LineString"&&cr!=="MultiLineString"||(jr.length===1?(cr="LineString",jr=jr[0]):cr="MultiLineString"),cr!=="Point"&&cr!=="MultiPoint"||(cr=jr.length===3?"Point":"MultiPoint"),xt.push(He(pr.id,cr,jr,pr.tags))}}return xt.length?xt:null}function it(Pe,xe,Oe,ze,Re){for(let ht=0;ht=Oe&&st<=ze&&kt(xe,Pe[ht],Pe[ht+1],Pe[ht+2])}}function Ke(Pe,xe,Oe,ze,Re,ht,st){let gt=zt(Pe),xt=Re===0?$e:De,pr,br,cr=Pe.start;for(let Vr=0;VrOe&&(br=xt(gt,Ai,Bi,ln,hn,Oe),st&&(gt.start=cr+pr*br)):qr>ze?_i=Oe&&(br=xt(gt,Ai,Bi,ln,hn,Oe),zi=!0),_i>ze&&qr<=ze&&(br=xt(gt,Ai,Bi,ln,hn,ze),zi=!0),!ht&&zi&&(st&&(gt.end=cr+pr*br),xe.push(gt),gt=zt(Pe)),st&&(cr+=pr)}let Er=Pe.length-3,ii=Pe[Er],jr=Pe[Er+1],kr=Re===0?ii:jr;kr>=Oe&&kr<=ze&&kt(gt,ii,jr,Pe[Er+2]),Er=gt.length-3,ht&&Er>=3&&(gt[Er]!==gt[0]||gt[Er+1]!==gt[1])&&kt(gt,gt[0],gt[1],gt[2]),gt.length&&xe.push(gt)}function zt(Pe){let xe=[];return xe.size=Pe.size,xe.start=Pe.start,xe.end=Pe.end,xe}function Mt(Pe,xe,Oe,ze,Re,ht){for(let st of Pe)Ke(st,xe,Oe,ze,Re,ht,!1)}function kt(Pe,xe,Oe,ze){Pe.push(xe,Oe,ze)}function $e(Pe,xe,Oe,ze,Re,ht){let st=(ht-xe)/(ze-xe);return kt(Pe,ht,Oe+(Re-Oe)*st,1),st}function De(Pe,xe,Oe,ze,Re,ht){let st=(ht-Oe)/(Re-Oe);return kt(Pe,xe+(ze-xe)*st,ht,1),st}function Me(Pe,xe){let Oe=[];for(let ze=0;ze0&&xe.size<(Re?st:ze))return void(Oe.numPoints+=xe.length/3);let gt=[];for(let xt=0;xtst)&&(Oe.numSimplified++,gt.push(xe[xt],xe[xt+1])),Oe.numPoints++;Re&&function(xt,pr){let br=0;for(let cr=0,Er=xt.length,ii=Er-2;cr0===pr)for(let cr=0,Er=xt.length;cr24)throw new Error("maxZoom should be in the 0-24 range");if(Oe.promoteId&&Oe.generateId)throw new Error("promoteId and generateId cannot be used together.");let Re=function(ht,st){let gt=[];if(ht.type==="FeatureCollection")for(let xt=0;xt1&&console.time("creation"),ii=this.tiles[Er]=lt(xe,Oe,ze,Re,pr),this.tileCoords.push({z:Oe,x:ze,y:Re}),br)){br>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Oe,ze,Re,ii.numFeatures,ii.numPoints,ii.numSimplified),console.timeEnd("creation"));let zi=`z${Oe}`;this.stats[zi]=(this.stats[zi]||0)+1,this.total++}if(ii.source=xe,ht==null){if(Oe===pr.indexMaxZoom||ii.numPoints<=pr.indexMaxPoints)continue}else{if(Oe===pr.maxZoom||Oe===ht)continue;if(ht!=null){let zi=ht-Oe;if(ze!==st>>zi||Re!==gt>>zi)continue}}if(ii.source=null,xe.length===0)continue;br>1&&console.time("clipping");let jr=.5*pr.buffer/pr.extent,kr=.5-jr,Vr=.5+jr,Ai=1+jr,Bi=null,Di=null,ln=null,hn=null,qr=Ot(xe,cr,ze-jr,ze+Vr,0,ii.minX,ii.maxX,pr),_i=Ot(xe,cr,ze+kr,ze+Ai,0,ii.minX,ii.maxX,pr);xe=null,qr&&(Bi=Ot(qr,cr,Re-jr,Re+Vr,1,ii.minY,ii.maxY,pr),Di=Ot(qr,cr,Re+kr,Re+Ai,1,ii.minY,ii.maxY,pr),qr=null),_i&&(ln=Ot(_i,cr,Re-jr,Re+Vr,1,ii.minY,ii.maxY,pr),hn=Ot(_i,cr,Re+kr,Re+Ai,1,ii.minY,ii.maxY,pr),_i=null),br>1&&console.timeEnd("clipping"),xt.push(Bi||[],Oe+1,2*ze,2*Re),xt.push(Di||[],Oe+1,2*ze,2*Re+1),xt.push(ln||[],Oe+1,2*ze+1,2*Re),xt.push(hn||[],Oe+1,2*ze+1,2*Re+1)}}getTile(xe,Oe,ze){xe=+xe,Oe=+Oe,ze=+ze;let Re=this.options,{extent:ht,debug:st}=Re;if(xe<0||xe>24)return null;let gt=1<1&&console.log("drilling down to z%d-%d-%d",xe,Oe,ze);let pr,br=xe,cr=Oe,Er=ze;for(;!pr&&br>0;)br--,cr>>=1,Er>>=1,pr=this.tiles[Lt(br,cr,Er)];return pr&&pr.source?(st>1&&(console.log("found parent tile z%d-%d-%d",br,cr,Er),console.time("drilling down")),this.splitTile(pr.source,br,cr,Er,xe,Oe,ze),st>1&&console.timeEnd("drilling down"),this.tiles[xt]?Ne(this.tiles[xt],ht):null):null}}function Lt(Pe,xe,Oe){return 32*((1<{cr.properties=ii;let jr={};for(let kr of Er)jr[kr]=xt[kr].evaluate(br,cr);return jr},st.reduce=(ii,jr)=>{cr.properties=jr;for(let kr of Er)br.accumulated=ii[kr],ii[kr]=pr[kr].evaluate(br,cr)},st}(xe)).load((yield this._pendingData).features):(Re=yield this._pendingData,new tt(Re,xe.geojsonVtOptions)),this.loaded={};let ht={};if(ze){let st=ze.finish();st&&(ht.resourceTiming={},ht.resourceTiming[xe.source]=JSON.parse(JSON.stringify(st)))}return ht}catch(ht){if(delete this._pendingRequest,i.bB(ht))return{abandoned:!0};throw ht}var Re})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(xe){let Oe=this.loaded;return Oe&&Oe[xe.uid]?super.reloadTile(xe):this.loadTile(xe)}loadAndProcessGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let ze=yield this.loadGeoJSON(xe,Oe);if(delete this._pendingRequest,typeof ze!="object")throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(d(ze,!0),xe.filter){let Re=i.bC(xe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Re.result==="error")throw new Error(Re.value.map(st=>`${st.key}: ${st.message}`).join(", "));ze={type:"FeatureCollection",features:ze.features.filter(st=>Re.value.evaluate({zoom:0},st))}}return ze})}loadGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let{promoteId:ze}=xe;if(xe.request){let Re=yield i.h(xe.request,Oe);return this._dataUpdateable=or(Re.data,ze)?yr(Re.data,ze):void 0,Re.data}if(typeof xe.data=="string")try{let Re=JSON.parse(xe.data);return this._dataUpdateable=or(Re,ze)?yr(Re,ze):void 0,Re}catch(Re){throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`)}if(!xe.dataDiff)throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${xe.source}`);return function(Re,ht,st){var gt,xt,pr,br;if(ht.removeAll&&Re.clear(),ht.remove)for(let cr of ht.remove)Re.delete(cr);if(ht.add)for(let cr of ht.add){let Er=jt(cr,st);Er!=null&&Re.set(Er,cr)}if(ht.update)for(let cr of ht.update){let Er=Re.get(cr.id);if(Er==null)continue;let ii=!cr.removeAllProperties&&(((gt=cr.removeProperties)===null||gt===void 0?void 0:gt.length)>0||((xt=cr.addOrUpdateProperties)===null||xt===void 0?void 0:xt.length)>0);if((cr.newGeometry||cr.removeAllProperties||ii)&&(Er=Object.assign({},Er),Re.set(cr.id,Er),ii&&(Er.properties=Object.assign({},Er.properties))),cr.newGeometry&&(Er.geometry=cr.newGeometry),cr.removeAllProperties)Er.properties={};else if(((pr=cr.removeProperties)===null||pr===void 0?void 0:pr.length)>0)for(let jr of cr.removeProperties)Object.prototype.hasOwnProperty.call(Er.properties,jr)&&delete Er.properties[jr];if(((br=cr.addOrUpdateProperties)===null||br===void 0?void 0:br.length)>0)for(let{key:jr,value:kr}of cr.addOrUpdateProperties)Er.properties[jr]=kr}}(this._dataUpdateable,xe.dataDiff,ze),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(xe){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(xe){return this._geoJSONIndex.getClusterExpansionZoom(xe.clusterId)}getClusterChildren(xe){return this._geoJSONIndex.getChildren(xe.clusterId)}getClusterLeaves(xe){return this._geoJSONIndex.getLeaves(xe.clusterId,xe.limit,xe.offset)}}class Vt{constructor(xe){this.self=xe,this.actor=new i.F(xe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Oe,ze)=>{if(this.externalWorkerSourceTypes[Oe])throw new Error(`Worker source with name "${Oe}" already registered.`);this.externalWorkerSourceTypes[Oe]=ze},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Oe=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Oe)},this.actor.registerMessageHandler("LDT",(Oe,ze)=>this._getDEMWorkerSource(Oe,ze.source).loadTile(ze)),this.actor.registerMessageHandler("RDT",(Oe,ze)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Oe,ze.source).removeTile(ze)})),this.actor.registerMessageHandler("GCEZ",(Oe,ze)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,ze.type,ze.source).getClusterExpansionZoom(ze)})),this.actor.registerMessageHandler("GCC",(Oe,ze)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,ze.type,ze.source).getClusterChildren(ze)})),this.actor.registerMessageHandler("GCL",(Oe,ze)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,ze.type,ze.source).getClusterLeaves(ze)})),this.actor.registerMessageHandler("LD",(Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).loadData(ze)),this.actor.registerMessageHandler("GD",(Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).getData()),this.actor.registerMessageHandler("LT",(Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).loadTile(ze)),this.actor.registerMessageHandler("RT",(Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).reloadTile(ze)),this.actor.registerMessageHandler("AT",(Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).abortTile(ze)),this.actor.registerMessageHandler("RMT",(Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).removeTile(ze)),this.actor.registerMessageHandler("RS",(Oe,ze)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Oe]||!this.workerSources[Oe][ze.type]||!this.workerSources[Oe][ze.type][ze.source])return;let Re=this.workerSources[Oe][ze.type][ze.source];delete this.workerSources[Oe][ze.type][ze.source],Re.removeSource!==void 0&&Re.removeSource(ze)})),this.actor.registerMessageHandler("RM",Oe=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Oe],delete this.availableImages[Oe],delete this.workerSources[Oe],delete this.demWorkerSources[Oe]})),this.actor.registerMessageHandler("SR",(Oe,ze)=>i._(this,void 0,void 0,function*(){this.referrer=ze})),this.actor.registerMessageHandler("SRPS",(Oe,ze)=>this._syncRTLPluginState(Oe,ze)),this.actor.registerMessageHandler("IS",(Oe,ze)=>i._(this,void 0,void 0,function*(){this.self.importScripts(ze)})),this.actor.registerMessageHandler("SI",(Oe,ze)=>this._setImages(Oe,ze)),this.actor.registerMessageHandler("UL",(Oe,ze)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).update(ze.layers,ze.removedIds)})),this.actor.registerMessageHandler("SL",(Oe,ze)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).replace(ze)}))}_setImages(xe,Oe){return i._(this,void 0,void 0,function*(){this.availableImages[xe]=Oe;for(let ze in this.workerSources[xe]){let Re=this.workerSources[xe][ze];for(let ht in Re)Re[ht].availableImages=Oe}})}_syncRTLPluginState(xe,Oe){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Oe.pluginStatus!=="loading")return i.bD.setState(Oe),Oe;let ze=Oe.pluginURL;if(this.self.importScripts(ze),i.bD.isParsed()){let Re={pluginStatus:"loaded",pluginURL:ze};return i.bD.setState(Re),Re}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${ze}`)})}_getAvailableImages(xe){let Oe=this.availableImages[xe];return Oe||(Oe=[]),Oe}_getLayerIndex(xe){let Oe=this.layerIndexes[xe];return Oe||(Oe=this.layerIndexes[xe]=new a),Oe}_getWorkerSource(xe,Oe,ze){if(this.workerSources[xe]||(this.workerSources[xe]={}),this.workerSources[xe][Oe]||(this.workerSources[xe][Oe]={}),!this.workerSources[xe][Oe][ze]){let Re={sendAsync:(ht,st)=>(ht.targetMapId=xe,this.actor.sendAsync(ht,st))};switch(Oe){case"vector":this.workerSources[xe][Oe][ze]=new l(Re,this._getLayerIndex(xe),this._getAvailableImages(xe));break;case"geojson":this.workerSources[xe][Oe][ze]=new vr(Re,this._getLayerIndex(xe),this._getAvailableImages(xe));break;default:this.workerSources[xe][Oe][ze]=new this.externalWorkerSourceTypes[Oe](Re,this._getLayerIndex(xe),this._getAvailableImages(xe))}}return this.workerSources[xe][Oe][ze]}_getDEMWorkerSource(xe,Oe){return this.demWorkerSources[xe]||(this.demWorkerSources[xe]={}),this.demWorkerSources[xe][Oe]||(this.demWorkerSources[xe][Oe]=new f),this.demWorkerSources[xe][Oe]}}return i.i(self)&&(self.worker=new Vt(self)),Vt}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,u,l={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise((w,q)=>{let Q=requestAnimationFrame(w);ue.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),q(a.c())})}),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),q=w.getContext("2d",{willReadFrequently:!0});if(!q)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,q.drawImage(ue,0,0,ue.width,ue.height),q},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(u==null&&(u=matchMedia("(prefers-reduced-motion: reduce)")),u.matches)}};class f{static testProp(w){if(!f.docStyle)return w[0];for(let q=0;q{window.removeEventListener("click",f.suppressClickInternal,!0)},0)}static getScale(w){let q=w.getBoundingClientRect();return{x:q.width/w.offsetWidth||1,y:q.height/w.offsetHeight||1,boundingClientRect:q}}static getPoint(w,q,Q){let ee=q.boundingClientRect;return new a.P((Q.clientX-ee.left)/q.x-w.clientLeft,(Q.clientY-ee.top)/q.y-w.clientTop)}static mousePos(w,q){let Q=f.getScale(w);return f.getPoint(w,Q,q)}static touchPos(w,q){let Q=[],ee=f.getScale(w);for(let fe=0;fe{h&&b(h),h=null,y=!0},d.onerror=()=>{p=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ue){let w,q,Q,ee;ue.resetRequestQueue=()=>{w=[],q=0,Q=0,ee={}},ue.addThrottleControl=yt=>{let Dt=Q++;return ee[Dt]=yt,Dt},ue.removeThrottleControl=yt=>{delete ee[yt],Ue()},ue.getImage=(yt,Dt,Qt=!0)=>new Promise((rr,Mr)=>{c.supported&&(yt.headers||(yt.headers={}),yt.headers.accept="image/webp,*/*"),a.e(yt,{type:"image"}),w.push({abortController:Dt,requestParameters:yt,supportImageRefresh:Qt,state:"queued",onError:Ur=>{Mr(Ur)},onSuccess:Ur=>{rr(Ur)}}),Ue()});let fe=yt=>a._(this,void 0,void 0,function*(){yt.state="running";let{requestParameters:Dt,supportImageRefresh:Qt,onError:rr,onSuccess:Mr,abortController:Ur}=yt,he=Qt===!1&&!a.i(self)&&!a.g(Dt.url)&&(!Dt.headers||Object.keys(Dt.headers).reduce((Ge,ft)=>Ge&&ft==="accept",!0));q++;let Ae=he?at(Dt,Ur):a.m(Dt,Ur);try{let Ge=yield Ae;delete yt.abortController,yt.state="completed",Ge.data instanceof HTMLImageElement||a.b(Ge.data)?Mr(Ge):Ge.data&&Mr({data:yield(qe=Ge.data,typeof createImageBitmap=="function"?a.d(qe):a.f(qe)),cacheControl:Ge.cacheControl,expires:Ge.expires})}catch(Ge){delete yt.abortController,rr(Ge)}finally{q--,Ue()}var qe}),Ue=()=>{let yt=(()=>{for(let Dt of Object.keys(ee))if(ee[Dt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Dt=q;Dt0;Dt++){let Qt=w.shift();Qt.abortController.signal.aborted?Dt--:fe(Qt)}},at=(yt,Dt)=>new Promise((Qt,rr)=>{let Mr=new Image,Ur=yt.url,he=yt.credentials;he&&he==="include"?Mr.crossOrigin="use-credentials":(he&&he==="same-origin"||!a.s(Ur))&&(Mr.crossOrigin="anonymous"),Dt.signal.addEventListener("abort",()=>{Mr.src="",rr(a.c())}),Mr.fetchPriority="high",Mr.onload=()=>{Mr.onerror=Mr.onload=null,Qt({data:Mr})},Mr.onerror=()=>{Mr.onerror=Mr.onload=null,Dt.signal.aborted||rr(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},Mr.src=Ur})}(v||(v={})),v.resetRequestQueue();class C{constructor(w){this._transformRequestFn=w}transformRequest(w,q){return this._transformRequestFn&&this._transformRequestFn(w,q)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function M(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var A,L=function(ue,w,q){return ue[0]=w[0]-q[0],ue[1]=w[1]-q[1],ue[2]=w[2]-q[2],ue};A=new a.A(3),a.A!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0);var x=function(ue){var w=ue[0],q=ue[1];return w*w+q*q};function k(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let q=[];for(let{id:Q,url:ee}of ue){let fe=`${Q}${ee}`;q.indexOf(fe)===-1&&(q.push(fe),w.push({id:Q,url:ee}))}}return w}function S(ue,w,q){let Q=ue.split("?");return Q[0]+=`${w}${q}`,Q.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class m{constructor(w,q,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(q,ee)}update(w,q,Q){let{width:ee,height:fe}=w,Ue=!(this.size&&this.size[0]===ee&&this.size[1]===fe||Q),{context:at}=this,{gl:yt}=at;if(this.useMipmap=!!(q&&q.useMipmap),yt.bindTexture(yt.TEXTURE_2D,this.texture),at.pixelStoreUnpackFlipY.set(!1),at.pixelStoreUnpack.set(1),at.pixelStoreUnpackPremultiplyAlpha.set(this.format===yt.RGBA&&(!q||q.premultiply!==!1)),Ue)this.size=[ee,fe],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?yt.texImage2D(yt.TEXTURE_2D,0,this.format,this.format,yt.UNSIGNED_BYTE,w):yt.texImage2D(yt.TEXTURE_2D,0,this.format,ee,fe,0,this.format,yt.UNSIGNED_BYTE,w.data);else{let{x:Dt,y:Qt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?yt.texSubImage2D(yt.TEXTURE_2D,0,Dt,Qt,yt.RGBA,yt.UNSIGNED_BYTE,w):yt.texSubImage2D(yt.TEXTURE_2D,0,Dt,Qt,ee,fe,yt.RGBA,yt.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&yt.generateMipmap(yt.TEXTURE_2D)}bind(w,q,Q){let{context:ee}=this,{gl:fe}=ee;fe.bindTexture(fe.TEXTURE_2D,this.texture),Q!==fe.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=fe.LINEAR),w!==this.filter&&(fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_MAG_FILTER,w),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_MIN_FILTER,Q||w),this.filter=w),q!==this.wrap&&(fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_WRAP_S,q),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_WRAP_T,q),this.wrap=q)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class E extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:q,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(q));this.requestors=[]}}getImage(w){let q=this.images[w];if(q&&!q.data&&q.spriteData){let Q=q.spriteData;q.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),q.spriteData=null}return q}addImage(w,q){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,q)&&(this.images[w]=q)}_validate(w,q){let Q=!0,ee=q.data||q.spriteData;return this._validateStretch(q.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(q.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(q.content,q)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,q){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let fe of w)this.images[fe]||(ee=!1);this.isLoaded()||ee?q(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:q})})}_getImagesForIds(w){let q={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?q[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return q}getPixelSize(){let{width:w,height:q}=this.atlasImage;return{width:w,height:q}}getPattern(w){let q=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(q&&q.position.version===Q.version)return q.position;if(q)q.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},fe=new a.I(ee,Q);this.patterns[w]={bin:ee,position:fe}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let q=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new m(w,this.atlasImage,q.RGBA),this.atlasTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let fe in this.patterns)w.push(this.patterns[fe].bin);let{w:q,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:q||1,height:Q||1});for(let fe in this.patterns){let{bin:Ue}=this.patterns[fe],at=Ue.x+1,yt=Ue.y+1,Dt=this.getImage(fe).data,Qt=Dt.width,rr=Dt.height;a.R.copy(Dt,ee,{x:0,y:0},{x:at,y:yt},{width:Qt,height:rr}),a.R.copy(Dt,ee,{x:0,y:rr-1},{x:at,y:yt-1},{width:Qt,height:1}),a.R.copy(Dt,ee,{x:0,y:0},{x:at,y:yt+rr},{width:Qt,height:1}),a.R.copy(Dt,ee,{x:Qt-1,y:0},{x:at-1,y:yt},{width:1,height:rr}),a.R.copy(Dt,ee,{x:0,y:0},{x:at+Qt,y:yt},{width:1,height:rr})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let q of w){if(this.callbackDispatchedThisFrame[q])continue;this.callbackDispatchedThisFrame[q]=!0;let Q=this.getImage(q);Q||a.w(`Image with ID: "${q}" was not found`),P(Q)&&this.updateImage(q,Q)}}}let O=1e20;function F(ue,w,q,Q,ee,fe,Ue,at,yt){for(let Dt=w;Dt-1);yt++,fe[yt]=at,Ue[yt]=Dt,Ue[yt+1]=O}for(let at=0,yt=0;at65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[fe])return{stack:w,id:q,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[fe]){let at=G.loadGlyphRange(w,fe,this.url,this.requestManager);Q.requests[fe]=at}let Ue=yield Q.requests[fe];for(let at in Ue)this._doesCharSupportLocalGlyph(+at)||(Q.glyphs[+at]=Ue[+at]);return Q.ranges[fe]=!0,{stack:w,id:q,glyph:Ue[q]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,q,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let fe=w.tinySDF;if(!fe){let at="400";/bold/i.test(q)?at="900":/medium/i.test(q)?at="500":/light/i.test(q)&&(at="200"),fe=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:at})}let Ue=fe.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Ue.width||60,height:Ue.height||60},Ue.data),metrics:{width:Ue.glyphWidth/2||24,height:Ue.glyphHeight/2||24,left:Ue.glyphLeft/2+.5||0,top:Ue.glyphTop/2-27.5||-8,advance:Ue.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(ue,w,q,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,fe=ee+255,Ue=Q.transformRequest(q.replace("{fontstack}",ue).replace("{range}",`${ee}-${fe}`),"Glyphs"),at=yield a.l(Ue,new AbortController);if(!at||!at.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${fe}`);let yt={};for(let Dt of a.n(at.data))yt[Dt.id]=Dt;return yt})},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:q=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:fe="normal",fontStyle:Ue="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=q;let at=this.size=ue+4*w,yt=this._createCanvas(at),Dt=this.ctx=yt.getContext("2d",{willReadFrequently:!0});Dt.font=`${Ue} ${fe} ${ue}px ${ee}`,Dt.textBaseline="alphabetic",Dt.textAlign="left",Dt.fillStyle="black",this.gridOuter=new Float64Array(at*at),this.gridInner=new Float64Array(at*at),this.f=new Float64Array(at),this.z=new Float64Array(at+1),this.v=new Uint16Array(at)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:q,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:fe}=this.ctx.measureText(ue),Ue=Math.ceil(q),at=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(fe-ee))),yt=Math.min(this.size-this.buffer,Ue+Math.ceil(Q)),Dt=at+2*this.buffer,Qt=yt+2*this.buffer,rr=Math.max(Dt*Qt,0),Mr=new Uint8ClampedArray(rr),Ur={data:Mr,width:Dt,height:Qt,glyphWidth:at,glyphHeight:yt,glyphTop:Ue,glyphLeft:0,glyphAdvance:w};if(at===0||yt===0)return Ur;let{ctx:he,buffer:Ae,gridInner:qe,gridOuter:Ge}=this;he.clearRect(Ae,Ae,at,yt),he.fillText(ue,Ae,Ae+Ue);let ft=he.getImageData(Ae,Ae,at,yt);Ge.fill(O,0,rr),qe.fill(0,0,rr);for(let ot=0;ot0?sr*sr:0,qe[er]=sr<0?sr*sr:0}}F(Ge,0,0,Dt,Qt,Dt,this.f,this.v,this.z),F(qe,Ae,Ae,at,yt,Dt,this.f,this.v,this.z);for(let ot=0;ot1&&(yt=w[++at]);let Qt=Math.abs(Dt-yt.left),rr=Math.abs(Dt-yt.right),Mr=Math.min(Qt,rr),Ur,he=fe/Q*(ee+1);if(yt.isDash){let Ae=ee-Math.abs(he);Ur=Math.sqrt(Mr*Mr+Ae*Ae)}else Ur=ee-Math.sqrt(Mr*Mr+he*he);this.data[Ue+Dt]=Math.max(0,Math.min(255,Ur+128))}}}addRegularDash(w){for(let at=w.length-1;at>=0;--at){let yt=w[at],Dt=w[at+1];yt.zeroLength?w.splice(at,1):Dt&&Dt.isDash===yt.isDash&&(Dt.left=yt.left,w.splice(at,1))}let q=w[0],Q=w[w.length-1];q.isDash===Q.isDash&&(q.left=Q.left-this.width,Q.right=q.right+this.width);let ee=this.width*this.nextRow,fe=0,Ue=w[fe];for(let at=0;at1&&(Ue=w[++fe]);let yt=Math.abs(at-Ue.left),Dt=Math.abs(at-Ue.right),Qt=Math.min(yt,Dt);this.data[ee+at]=Math.max(0,Math.min(255,(Ue.isDash?Qt:-Qt)+128))}}addDash(w,q){let Q=q?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let fe=0;for(let at=0;at{q.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[me]}numActive(){return Object.keys(this.active).length}}let Ce=Math.floor(l.hardwareConcurrency/2),de,te;function Se(){return de||(de=new Le),de}Le.workerCount=a.C(globalThis)?Math.max(Math.min(Ce,3),1):1;class Te{constructor(w,q){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=q;let Q=this.workerPool.acquire(q);for(let ee=0;ee{q.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,q){for(let Q of this.actors)Q.registerMessageHandler(w,q)}}function be(){return te||(te=new Te(Se(),a.G),te.registerMessageHandler("GR",(ue,w,q)=>a.m(w,q))),te}function He(ue,w){let q=a.H();return a.J(q,q,[1,1,0]),a.K(q,q,[.5*ue.width,.5*ue.height,1]),a.L(q,q,ue.calculatePosMatrix(w.toUnwrapped()))}function Ie(ue,w,q,Q,ee,fe){let Ue=function(rr,Mr,Ur){if(rr)for(let he of rr){let Ae=Mr[he];if(Ae&&Ae.source===Ur&&Ae.type==="fill-extrusion")return!0}else for(let he in Mr){let Ae=Mr[he];if(Ae.source===Ur&&Ae.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,ue.id),at=fe.maxPitchScaleFactor(),yt=ue.tilesIn(Q,at,Ue);yt.sort(ge);let Dt=[];for(let rr of yt)Dt.push({wrappedTileID:rr.tileID.wrapped().key,queryResults:rr.tile.queryRenderedFeatures(w,q,ue._state,rr.queryGeometry,rr.cameraQueryGeometry,rr.scale,ee,fe,at,He(ue.transform,rr.tileID))});let Qt=function(rr){let Mr={},Ur={};for(let he of rr){let Ae=he.queryResults,qe=he.wrappedTileID,Ge=Ur[qe]=Ur[qe]||{};for(let ft in Ae){let ot=Ae[ft],mt=Ge[ft]=Ge[ft]||{},Gt=Mr[ft]=Mr[ft]||[];for(let er of ot)mt[er.featureIndex]||(mt[er.featureIndex]=!0,Gt.push(er))}}return Mr}(Dt);for(let rr in Qt)Qt[rr].forEach(Mr=>{let Ur=Mr.feature,he=ue.getFeatureState(Ur.layer["source-layer"],Ur.id);Ur.source=Ur.layer.source,Ur.layer["source-layer"]&&(Ur.sourceLayer=Ur.layer["source-layer"]),Ur.state=he});return Qt}function ge(ue,w){let q=ue.tileID,Q=w.tileID;return q.overscaledZ-Q.overscaledZ||q.canonical.y-Q.canonical.y||q.wrap-Q.wrap||q.canonical.x-Q.canonical.x}function Be(ue,w,q){return a._(this,void 0,void 0,function*(){let Q=ue;if(ue.url?Q=(yield a.h(w.transformRequest(ue.url,"Source"),q)).data:yield l.frameAsync(q),!Q)return null;let ee=a.M(a.e(Q,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(fe=>fe.id)),ee})}class ce{constructor(w,q){w&&(q?this.setSouthWest(w).setNorthEast(q):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let q=this._sw,Q=this._ne,ee,fe;if(w instanceof a.N)ee=w,fe=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,fe=w._ne,!ee||!fe)return this}return q||Q?(q.lng=Math.min(ee.lng,q.lng),q.lat=Math.min(ee.lat,q.lat),Q.lng=Math.max(fe.lng,Q.lng),Q.lat=Math.max(fe.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(fe.lng,fe.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:q,lat:Q}=a.N.convert(w),ee=this._sw.lng<=q&&q<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=q&&q>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,q=0){let Q=360*q/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),q=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>q.lng?new a.N(q.lng+360,q.lat):q)}}class je{constructor(w,q,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=q||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let q=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*q),ee=Math.floor(a.Q(this.bounds.getNorth())*q),fe=Math.ceil(a.O(this.bounds.getEast())*q),Ue=Math.ceil(a.Q(this.bounds.getSouth())*q);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(q,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((fe,Ue)=>{w.reloadPromise={resolve:fe,reject:Ue}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let fe=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,fe)}catch(fe){if(delete w.abortController,w.aborted)return;if(fe&&fe.status!==404)throw fe;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,q){if(q&&q.resourceTiming&&(w.resourceTiming=q.resourceTiming),q&&this.map._refreshExpiredTiles&&w.setExpiryData(q),w.loadVectorData(q,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class bt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},q),a.e(this,a.M(q,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Be(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new je(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield v.getImage(this.map._requestManager.transformRequest(q,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,fe=ee.gl,Ue=Q.data;w.texture=this.map.painter.getTileTexture(Ue.width),w.texture?w.texture.update(Ue,{useMipmap:!0}):(w.texture=new m(ee,Ue,fe.RGBA,{useMipmap:!0}),w.texture.bind(fe.LINEAR,fe.CLAMP_TO_EDGE,fe.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Ot extends bt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},q),this.encoding=q.encoding||"mapbox",this.redFactor=q.redFactor,this.greenFactor=q.greenFactor,this.blueFactor=q.blueFactor,this.baseShift=q.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(q,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield v.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let fe=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Ue=a.b(fe)&&a.U()?fe:yield this.readImageNow(fe),at={type:this.type,uid:w.uid,source:this.id,rawImageData:Ue,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let yt=yield w.actor.sendAsync({type:"LDT",data:at});w.dem=yt,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let q=w.width+2,Q=w.height+2;try{return new a.R({width:q,height:Q},yield a.W(w,-1,-1,q,Q))}catch(ee){}}return l.getImageData(w,1)})}_getNeighboringTiles(w){let q=w.canonical,Q=Math.pow(2,q.z),ee=(q.x-1+Q)%Q,fe=q.x===0?w.wrap-1:w.wrap,Ue=(q.x+1+Q)%Q,at=q.x+1===Q?w.wrap+1:w.wrap,yt={};return yt[new a.S(w.overscaledZ,fe,q.z,ee,q.y).key]={backfilled:!1},yt[new a.S(w.overscaledZ,at,q.z,Ue,q.y).key]={backfilled:!1},q.y>0&&(yt[new a.S(w.overscaledZ,fe,q.z,ee,q.y-1).key]={backfilled:!1},yt[new a.S(w.overscaledZ,w.wrap,q.z,q.x,q.y-1).key]={backfilled:!1},yt[new a.S(w.overscaledZ,at,q.z,Ue,q.y-1).key]={backfilled:!1}),q.y+10&&a.e(fe,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},fe),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},fe),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:q,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,q==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Ke=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class zt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=q}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let q=yield v.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,q&&q.data&&(this.image=q.data,w&&(this.coordinates=w),this._finishLoading())}catch(q){this._request=null,this._loaded=!0,this.fire(new a.j(q))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let q=w.map(a.Z.fromLngLat);this.tileID=function(ee){let fe=1/0,Ue=1/0,at=-1/0,yt=-1/0;for(let Mr of ee)fe=Math.min(fe,Mr.x),Ue=Math.min(Ue,Mr.y),at=Math.max(at,Mr.x),yt=Math.max(yt,Mr.y);let Dt=Math.max(at-fe,yt-Ue),Qt=Math.max(0,Math.floor(-Math.log(Dt)/Math.LN2)),rr=Math.pow(2,Qt);return new a.a1(Qt,Math.floor((fe+at)/2*rr),Math.floor((Ue+yt)/2*rr))}(q),this.minzoom=this.maxzoom=this.tileID.z;let Q=q.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ke.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new m(w,this.image,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let fe=this.tiles[ee];fe.state!=="loaded"&&(fe.state="loaded",fe.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Mt extends zt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.roundZoom=!0,this.type="video",this.options=q}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let q of w.urls)this.urls.push(this.map._requestManager.transformRequest(q,"Source").url);try{let q=yield a.a3(this.urls);if(this._loaded=!0,!q)return;this.video=q,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(q){this.fire(new a.j(q))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let q=this.video.seekable;wq.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${q.start(0)} and ${q.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ke.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE),q.texSubImage2D(q.TEXTURE_2D,0,0,0,q.RGBA,q.UNSIGNED_BYTE,this.video)):(this.texture=new m(w,this.video,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let fe=this.tiles[ee];fe.state!=="loaded"&&(fe.state="loaded",fe.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class kt extends zt{constructor(w,q,Q,ee){super(w,q,Q,ee),q.coordinates?Array.isArray(q.coordinates)&&q.coordinates.length===4&&!q.coordinates.some(fe=>!Array.isArray(fe)||fe.length!==2||fe.some(Ue=>typeof Ue!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas=="string"||q.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate===void 0||q.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let q=this.map.painter.context,Q=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Ke.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new m(q,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let fe in this.tiles){let Ue=this.tiles[fe];Ue.state!=="loaded"&&(Ue.state="loaded",Ue.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let $e={},De=ue=>{switch(ue){case"geojson":return it;case"image":return zt;case"raster":return bt;case"raster-dem":return Ot;case"vector":return rt;case"video":return Mt;case"canvas":return kt}return $e[ue]},Me="RTLPluginLoaded";class oe extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=be()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(q=>{throw this.status="error",q})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(q,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=l.resolveURL(q),!this.url)throw new Error(`requested url ${q} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(Me))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let Ne=null;function vt(){return Ne||(Ne=new oe),Ne}class lt{constructor(w,q){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=q,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let q=w+this.timeAdded;qfe.getLayer(Dt)).filter(Boolean);if(yt.length!==0){at.layers=yt,at.stateDependentLayerIds&&(at.stateDependentLayers=at.stateDependentLayerIds.map(Dt=>yt.filter(Qt=>Qt.id===Dt)[0]));for(let Dt of yt)Ue[Dt.id]=at}}return Ue}(w.buckets,q.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let fe=this.buckets[ee];if(fe instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;fe.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let fe=this.buckets[ee];if(fe instanceof a.a6&&fe.hasRTLText){this.hasRTLText=!0,vt().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let fe=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,q.style.getLayer(ee).queryRadius(fe))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let q=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new m(w,this.imageAtlas.image,q.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new m(w,this.glyphAtlasImage,q.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,q,Q,ee,fe,Ue,at,yt,Dt,Qt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:fe,scale:Ue,tileSize:this.tileSize,pixelPosMatrix:Qt,transform:yt,params:at,queryPadding:this.queryPadding*Dt},w,q,Q):{}}querySourceFeatures(w,q){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),fe=q&&q.sourceLayer?q.sourceLayer:"",Ue=ee._geojsonTileLayer||ee[fe];if(!Ue)return;let at=a.a7(q&&q.filter),{z:yt,x:Dt,y:Qt}=this.tileID.canonical,rr={z:yt,x:Dt,y:Qt};for(let Mr=0;MrQ)ee=!1;else if(q)if(this.expirationTime{this.remove(w,fe)},Q)),this.data[ee].push(fe),this.order.push(ee),this.order.length>this.max){let Ue=this._getAndRemoveByKey(this.order[0]);Ue&&this.onRemove(Ue)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let q=this.data[w].shift();return q.timeout&&clearTimeout(q.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),q.value}getByKey(w){let q=this.data[w];return q?q[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,q){if(!this.has(w))return this;let Q=w.wrapped().key,ee=q===void 0?0:this.data[Q].indexOf(q),fe=this.data[Q][ee];return this.data[Q].splice(ee,1),fe.timeout&&clearTimeout(fe.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(fe.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let q=this._getAndRemoveByKey(this.order[0]);q&&this.onRemove(q)}return this}filter(w){let q=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||q.push(ee);for(let Q of q)this.remove(Q.value.tileID,Q)}}class Ve{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,q,Q){let ee=String(q);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let fe in this.state[w])fe!==ee&&(this.deletedStates[w][fe]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let fe in this.state[w][ee])Q[fe]||(this.deletedStates[w][ee][fe]=null)}else for(let fe in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][fe]===null&&delete this.deletedStates[w][ee][fe]}removeFeatureState(w,q,Q){if(this.deletedStates[w]===null)return;let ee=String(q);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&q!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(q!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,q){let Q=String(q),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let fe=this.deletedStates[w][q];if(fe===null)return{};for(let Ue in fe)delete ee[Ue]}return ee}initializeTileState(w,q){w.setFeatureState(this.state,q)}coalesceChanges(w,q){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let fe={};for(let Ue in this.stateChanges[ee])this.state[ee][Ue]||(this.state[ee][Ue]={}),a.e(this.state[ee][Ue],this.stateChanges[ee][Ue]),fe[Ue]=this.state[ee][Ue];Q[ee]=fe}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let fe={};if(this.deletedStates[ee]===null)for(let Ue in this.state[ee])fe[Ue]={},this.state[ee][Ue]={};else for(let Ue in this.deletedStates[ee]){if(this.deletedStates[ee][Ue]===null)this.state[ee][Ue]={};else for(let at of Object.keys(this.deletedStates[ee][Ue]))delete this.state[ee][Ue][at];fe[Ue]=this.state[ee][Ue]}Q[ee]=Q[ee]||{},a.e(Q[ee],fe)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,q)}}class et extends a.E{constructor(w,q,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,fe,Ue,at)=>{let yt=new(De(fe.type))(ee,fe,Ue,at);if(yt.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${yt.id}`);return yt})(w,q,Q,this),this._tiles={},this._cache=new We(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Ve,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let q=this._tiles[w];if(q.state!=="loaded"&&q.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,q,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,q,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let q in this._tiles){let Q=this._tiles[q];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort(tt).map(w=>w.key)}getRenderableIds(w){let q=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&q.push(this._tiles[Q]);return w?q.sort((Q,ee)=>{let fe=Q.tileID,Ue=ee.tileID,at=new a.P(fe.canonical.x,fe.canonical.y)._rotate(this.transform.angle),yt=new a.P(Ue.canonical.x,Ue.canonical.y)._rotate(this.transform.angle);return fe.overscaledZ-Ue.overscaledZ||yt.y-at.y||yt.x-at.x}).map(Q=>Q.tileID.key):q.map(Q=>Q.tileID).sort(tt).map(Q=>Q.key)}hasRenderableParent(w){let q=this.findLoadedParent(w,0);return!!q&&this._isIdRenderable(q.tileID.key)}_isIdRenderable(w,q){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(q||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,q){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=q),yield this._loadTile(Q,w,q))})}_tileLoaded(w,q,Q){w.timeAdded=l.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(q,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let q=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(Ue)>1&&(Math.abs(Ue+yt)===1?Ue+=yt:Math.abs(Ue-yt)===1&&(Ue-=yt)),fe.dem&&ee.dem&&(ee.dem.backfillBorder(fe.dem,Ue,at),ee.neighboringTiles&&ee.neighboringTiles[Dt]&&(ee.neighboringTiles[Dt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,q,Q,ee){for(let fe in this._tiles){let Ue=this._tiles[fe];if(ee[fe]||!Ue.hasData()||Ue.tileID.overscaledZ<=q||Ue.tileID.overscaledZ>Q)continue;let at=Ue.tileID;for(;Ue&&Ue.tileID.overscaledZ>q+1;){let Dt=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Dt.key],Ue&&Ue.hasData()&&(at=Dt)}let yt=at;for(;yt.overscaledZ>q;)if(yt=yt.scaledTo(yt.overscaledZ-1),w[yt.key]){ee[at.key]=at;break}}}findLoadedParent(w,q){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=q?Q:null}for(let Q=w.overscaledZ-1;Q>=q;Q--){let ee=w.scaledTo(Q),fe=this._getLoadedTile(ee);if(fe)return fe}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let q=this._tiles[w.key];return q&&q.hasData()?q:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let q=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(q*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),fe=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(fe)}handleWrapJump(w){let q=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,q){let Q={};for(let ee in this._tiles){let fe=this._tiles[ee];fe.tileID=fe.tileID.unwrapTo(fe.tileID.wrap+q),Q[fe.tileID.key]=fe}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,q,Q,ee,fe,Ue){let at={},yt={},Dt=Object.keys(w),Qt=l.now();for(let rr of Dt){let Mr=w[rr],Ur=this._tiles[rr];if(!Ur||Ur.fadeEndTime!==0&&Ur.fadeEndTime<=Qt)continue;let he=this.findLoadedParent(Mr,q),Ae=this.findLoadedSibling(Mr),qe=he||Ae||null;qe&&(this._addTile(qe.tileID),at[qe.tileID.key]=qe.tileID),yt[rr]=Mr}this._retainLoadedChildren(yt,ee,Q,w);for(let rr in at)w[rr]||(this._coveredTiles[rr]=!0,w[rr]=at[rr]);if(Ue){let rr={},Mr={};for(let Ur of fe)this._tiles[Ur.key].hasData()?rr[Ur.key]=Ur:Mr[Ur.key]=Ur;for(let Ur in Mr){let he=Mr[Ur].children(this._source.maxzoom);this._tiles[he[0].key]&&this._tiles[he[1].key]&&this._tiles[he[2].key]&&this._tiles[he[3].key]&&(rr[he[0].key]=w[he[0].key]=he[0],rr[he[1].key]=w[he[1].key]=he[1],rr[he[2].key]=w[he[2].key]=he[2],rr[he[3].key]=w[he[3].key]=he[3],delete Mr[Ur])}for(let Ur in Mr){let he=Mr[Ur],Ae=this.findLoadedParent(he,this._source.minzoom),qe=this.findLoadedSibling(he),Ge=Ae||qe||null;if(Ge){rr[Ge.tileID.key]=w[Ge.tileID.key]=Ge.tileID;for(let ft in rr)rr[ft].isChildOf(Ge.tileID)&&delete rr[ft]}}for(let Ur in this._tiles)rr[Ur]||(this._coveredTiles[Ur]=!0)}}update(w,q){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=q,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(Qt=>new a.S(Qt.canonical.z,Qt.wrap,Qt.canonical.z,Qt.canonical.x,Qt.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:q}),this._source.hasTile&&(Q=Q.filter(Qt=>this._source.hasTile(Qt)))):Q=[];let ee=w.coveringZoomLevel(this._source),fe=Math.max(ee-et.maxOverzooming,this._source.minzoom),Ue=Math.max(ee+et.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Qt={};for(let rr of Q)if(rr.canonical.z>this._source.minzoom){let Mr=rr.scaledTo(rr.canonical.z-1);Qt[Mr.key]=Mr;let Ur=rr.scaledTo(Math.max(this._source.minzoom,Math.min(rr.canonical.z,5)));Qt[Ur.key]=Ur}Q=Q.concat(Object.values(Qt))}let at=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,at&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let yt=this._updateRetainedTiles(Q,ee);Lt(this._source.type)&&this._updateCoveredAndRetainedTiles(yt,fe,Ue,ee,Q,q);for(let Qt in yt)this._tiles[Qt].clearFadeHold();let Dt=a.ab(this._tiles,yt);for(let Qt of Dt){let rr=this._tiles[Qt];rr.hasSymbolBuckets&&!rr.holdingForFade()?rr.setHoldDuration(this.map._fadeDuration):rr.hasSymbolBuckets&&!rr.symbolFadeFinished()||this._removeTile(Qt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,q){var Q;let ee={},fe={},Ue=Math.max(q-et.maxOverzooming,this._source.minzoom),at=Math.max(q+et.maxUnderzooming,this._source.minzoom),yt={};for(let Dt of w){let Qt=this._addTile(Dt);ee[Dt.key]=Dt,Qt.hasData()||qthis._source.maxzoom){let Mr=Dt.children(this._source.maxzoom)[0],Ur=this.getTile(Mr);if(Ur&&Ur.hasData()){ee[Mr.key]=Mr;continue}}else{let Mr=Dt.children(this._source.maxzoom);if(ee[Mr[0].key]&&ee[Mr[1].key]&&ee[Mr[2].key]&&ee[Mr[3].key])continue}let rr=Qt.wasRequested();for(let Mr=Dt.overscaledZ-1;Mr>=Ue;--Mr){let Ur=Dt.scaledTo(Mr);if(fe[Ur.key])break;if(fe[Ur.key]=!0,Qt=this.getTile(Ur),!Qt&&rr&&(Qt=this._addTile(Ur)),Qt){let he=Qt.hasData();if((he||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||rr)&&(ee[Ur.key]=Ur),rr=Qt.wasRequested(),he)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let q=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}q.push(ee.key);let fe=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(fe),Q)break;ee=fe}for(let fe of q)this._loadedParentTiles[fe]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let q=this._tiles[w].tileID,Q=this._getLoadedTile(q);this._loadedSiblingTiles[q.key]=Q}}_addTile(w){let q=this._tiles[w.key];if(q)return q;q=this._cache.getAndRemove(w),q&&(this._setTileReloadTimer(w.key,q),q.tileID=w,this._state.initializeTileState(q,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,q)));let Q=q;return q||(q=new lt(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(q,w.key,q.state)),q.uses++,this._tiles[w.key]=q,Q||this._source.fire(new a.k("dataloading",{tile:q,coord:q.tileID,dataType:"source"})),q}_setTileReloadTimer(w,q){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=q.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let q=this._tiles[w];q&&(q.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),q.uses>0||(q.hasData()&&q.state!=="reloading"?this._cache.add(q.tileID,q,q.getExpiryTimeout()):(q.aborted=!0,this._abortTile(q),this._unloadTile(q))))}_dataHandler(w){let q=w.sourceDataType;w.dataType==="source"&&q==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&q==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,q,Q){let ee=[],fe=this.transform;if(!fe)return ee;let Ue=Q?fe.getCameraQueryGeometry(w):w,at=w.map(he=>fe.pointCoordinate(he,this.terrain)),yt=Ue.map(he=>fe.pointCoordinate(he,this.terrain)),Dt=this.getIds(),Qt=1/0,rr=1/0,Mr=-1/0,Ur=-1/0;for(let he of yt)Qt=Math.min(Qt,he.x),rr=Math.min(rr,he.y),Mr=Math.max(Mr,he.x),Ur=Math.max(Ur,he.y);for(let he=0;he=0&&ot[1].y+ft>=0){let mt=at.map(er=>qe.getTilePoint(er)),Gt=yt.map(er=>qe.getTilePoint(er));ee.push({tile:Ae,tileID:qe,queryGeometry:mt,cameraQueryGeometry:Gt,scale:Ge})}}return ee}getVisibleCoordinates(w){let q=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of q)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return q}hasTransition(){if(this._source.hasTransition())return!0;if(Lt(this._source.type)){let w=l.now();for(let q in this._tiles)if(this._tiles[q].fadeEndTime>=w)return!0}return!1}setFeatureState(w,q,Q){this._state.updateState(w=w||"_geojsonTileLayer",q,Q)}removeFeatureState(w,q,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",q,Q)}getFeatureState(w,q){return this._state.getState(w=w||"_geojsonTileLayer",q)}setDependencies(w,q,Q){let ee=this._tiles[w];ee&&ee.setDependencies(q,Q)}reloadTilesForDependencies(w,q){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,q)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,q))}}function tt(ue,w){let q=Math.abs(2*ue.wrap)-+(ue.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||Q-q||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function Lt(ue){return ue==="raster"||ue==="image"||ue==="video"}et.maxOverzooming=10,et.maxUnderzooming=3;class jt{constructor(w,q){this.reset(w,q)}reset(w,q){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Ue)/at:0;return this.points[fe].mult(1-yt).add(this.points[q].mult(yt))}}function or(ue,w){let q=!0;return ue==="always"||ue!=="never"&&w!=="never"||(q=!1),q}class yr{constructor(w,q,Q){let ee=this.boxCells=[],fe=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(q/Q);for(let Ue=0;Uethis.width||ee<0||q>this.height)return[];let yt=[];if(w<=0&&q<=0&&this.width<=Q&&this.height<=ee){if(fe)return[{key:null,x1:w,y1:q,x2:Q,y2:ee}];for(let Dt=0;Dt0}hitTestCircle(w,q,Q,ee,fe){let Ue=w-Q,at=w+Q,yt=q-Q,Dt=q+Q;if(at<0||Ue>this.width||Dt<0||yt>this.height)return!1;let Qt=[];return this._forEachCell(Ue,yt,at,Dt,this._queryCellCircle,Qt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:q,radius:Q},seenUids:{box:{},circle:{}}},fe),Qt.length>0}_queryCell(w,q,Q,ee,fe,Ue,at,yt){let{seenUids:Dt,hitTest:Qt,overlapMode:rr}=at,Mr=this.boxCells[fe];if(Mr!==null){let he=this.bboxes;for(let Ae of Mr)if(!Dt.box[Ae]){Dt.box[Ae]=!0;let qe=4*Ae,Ge=this.boxKeys[Ae];if(w<=he[qe+2]&&q<=he[qe+3]&&Q>=he[qe+0]&&ee>=he[qe+1]&&(!yt||yt(Ge))&&(!Qt||!or(rr,Ge.overlapMode))&&(Ue.push({key:Ge,x1:he[qe],y1:he[qe+1],x2:he[qe+2],y2:he[qe+3]}),Qt))return!0}}let Ur=this.circleCells[fe];if(Ur!==null){let he=this.circles;for(let Ae of Ur)if(!Dt.circle[Ae]){Dt.circle[Ae]=!0;let qe=3*Ae,Ge=this.circleKeys[Ae];if(this._circleAndRectCollide(he[qe],he[qe+1],he[qe+2],w,q,Q,ee)&&(!yt||yt(Ge))&&(!Qt||!or(rr,Ge.overlapMode))){let ft=he[qe],ot=he[qe+1],mt=he[qe+2];if(Ue.push({key:Ge,x1:ft-mt,y1:ot-mt,x2:ft+mt,y2:ot+mt}),Qt)return!0}}}return!1}_queryCellCircle(w,q,Q,ee,fe,Ue,at,yt){let{circle:Dt,seenUids:Qt,overlapMode:rr}=at,Mr=this.boxCells[fe];if(Mr!==null){let he=this.bboxes;for(let Ae of Mr)if(!Qt.box[Ae]){Qt.box[Ae]=!0;let qe=4*Ae,Ge=this.boxKeys[Ae];if(this._circleAndRectCollide(Dt.x,Dt.y,Dt.radius,he[qe+0],he[qe+1],he[qe+2],he[qe+3])&&(!yt||yt(Ge))&&!or(rr,Ge.overlapMode))return Ue.push(!0),!0}}let Ur=this.circleCells[fe];if(Ur!==null){let he=this.circles;for(let Ae of Ur)if(!Qt.circle[Ae]){Qt.circle[Ae]=!0;let qe=3*Ae,Ge=this.circleKeys[Ae];if(this._circlesCollide(he[qe],he[qe+1],he[qe+2],Dt.x,Dt.y,Dt.radius)&&(!yt||yt(Ge))&&!or(rr,Ge.overlapMode))return Ue.push(!0),!0}}}_forEachCell(w,q,Q,ee,fe,Ue,at,yt){let Dt=this._convertToXCellCoord(w),Qt=this._convertToYCellCoord(q),rr=this._convertToXCellCoord(Q),Mr=this._convertToYCellCoord(ee);for(let Ur=Dt;Ur<=rr;Ur++)for(let he=Qt;he<=Mr;he++)if(fe.call(this,w,q,Q,ee,this.xCellCount*he+Ur,Ue,at,yt))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,q,Q,ee,fe,Ue){let at=ee-w,yt=fe-q,Dt=Q+Ue;return Dt*Dt>at*at+yt*yt}_circleAndRectCollide(w,q,Q,ee,fe,Ue,at){let yt=(Ue-ee)/2,Dt=Math.abs(w-(ee+yt));if(Dt>yt+Q)return!1;let Qt=(at-fe)/2,rr=Math.abs(q-(fe+Qt));if(rr>Qt+Q)return!1;if(Dt<=yt||rr<=Qt)return!0;let Mr=Dt-yt,Ur=rr-Qt;return Mr*Mr+Ur*Ur<=Q*Q}}function vr(ue,w,q,Q,ee){let fe=a.H();return w?(a.K(fe,fe,[1/ee,1/ee,1]),q||a.ad(fe,fe,Q.angle)):a.L(fe,Q.labelPlaneMatrix,ue),fe}function Vt(ue,w,q,Q,ee){if(w){let fe=a.ae(ue);return a.K(fe,fe,[ee,ee,1]),q||a.ad(fe,fe,-Q.angle),fe}return Q.glCoordMatrix}function Pe(ue,w,q,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,q)):(ee=[ue,w,0,1],kr(ee,ee,q));let fe=ee[3];return{point:new a.P(ee[0]/fe,ee[1]/fe),signedDistanceFromCamera:fe,isOccluded:!1}}function xe(ue,w){return .5+ue/w*.5}function Oe(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function ze(ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he){let Ae=Q?ue.textSizeData:ue.iconSizeData,qe=a.ag(Ae,q.transform.zoom),Ge=[256/q.width*2+1,256/q.height*2+1],ft=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;ft.clear();let ot=ue.lineVertexArray,mt=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Gt=q.transform.width/q.transform.height,er=!1;for(let sr=0;srMath.abs(q.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yq.x)?{needsFlipping:!0}:null}function st(ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt){let rr=q/24,Mr=w.lineOffsetX*rr,Ur=w.lineOffsetY*rr,he;if(w.numGlyphs>1){let Ae=w.glyphStartIndex+w.numGlyphs,qe=w.lineStartIndex,Ge=w.lineStartIndex+w.lineLength,ft=Re(rr,at,Mr,Ur,Q,w,Qt,ue);if(!ft)return{notEnoughRoom:!0};let ot=Pe(ft.first.point.x,ft.first.point.y,Ue,ue.getElevation).point,mt=Pe(ft.last.point.x,ft.last.point.y,Ue,ue.getElevation).point;if(ee&&!Q){let Gt=ht(w.writingMode,ot,mt,Dt);if(Gt)return Gt}he=[ft.first];for(let Gt=w.glyphStartIndex+1;Gt0?ot.point:function(er,sr,wr,Ir,ri,si){return gt(er,sr,wr,1,ri,si)}(ue.tileAnchorPoint,ft,qe,0,fe,ue),Gt=ht(w.writingMode,qe,mt,Dt);if(Gt)return Gt}let Ae=Er(rr*at.getoffsetX(w.glyphStartIndex),Mr,Ur,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Qt);if(!Ae||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};he=[Ae]}for(let Ae of he)a.aj(yt,Ae.point,Ae.angle);return{}}function gt(ue,w,q,Q,ee,fe){let Ue=ue.add(ue.sub(w)._unit()),at=ee!==void 0?Pe(Ue.x,Ue.y,ee,fe.getElevation).point:pr(Ue.x,Ue.y,fe).point,yt=q.sub(at);return q.add(yt._mult(Q/yt.mag()))}function xt(ue,w,q){let Q=w.projectionCache;if(Q.projections[ue])return Q.projections[ue];let ee=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),fe=pr(ee.x,ee.y,w);if(fe.signedDistanceFromCamera>0)return Q.projections[ue]=fe.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||fe.isOccluded,fe.point;let Ue=ue-q.direction;return function(at,yt,Dt,Qt,rr){return gt(at,yt,Dt,Qt,void 0,rr)}(q.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Ue),w.lineVertexArray.gety(Ue)),ee,q.previousVertex,q.absOffsetX-q.distanceFromAnchor+1,w)}function pr(ue,w,q){let Q=ue+q.translation[0],ee=w+q.translation[1],fe;return!q.pitchWithMap&&q.projection.useSpecialProjectionForSymbols?(fe=q.projection.projectTileCoordinates(Q,ee,q.unwrappedTileID,q.getElevation),fe.point.x=(.5*fe.point.x+.5)*q.width,fe.point.y=(.5*-fe.point.y+.5)*q.height):(fe=Pe(Q,ee,q.labelPlaneMatrix,q.getElevation),fe.isOccluded=!1),fe}function br(ue,w,q){return ue._unit()._perp()._mult(w*q)}function cr(ue,w,q,Q,ee,fe,Ue,at,yt){if(at.projectionCache.offsets[ue])return at.projectionCache.offsets[ue];let Dt=q.add(w);if(ue+yt.direction=ee)return at.projectionCache.offsets[ue]=Dt,Dt;let Qt=xt(ue+yt.direction,at,yt),rr=br(Qt.sub(q),Ue,yt.direction),Mr=q.add(rr),Ur=Qt.add(rr);return at.projectionCache.offsets[ue]=a.ak(fe,Dt,Mr,Ur)||Dt,at.projectionCache.offsets[ue]}function Er(ue,w,q,Q,ee,fe,Ue,at,yt){let Dt=Q?ue-w:ue+w,Qt=Dt>0?1:-1,rr=0;Q&&(Qt*=-1,rr=Math.PI),Qt<0&&(rr+=Math.PI);let Mr,Ur=Qt>0?fe+ee:fe+ee+1;at.projectionCache.cachedAnchorPoint?Mr=at.projectionCache.cachedAnchorPoint:(Mr=pr(at.tileAnchorPoint.x,at.tileAnchorPoint.y,at).point,at.projectionCache.cachedAnchorPoint=Mr);let he,Ae,qe=Mr,Ge=Mr,ft=0,ot=0,mt=Math.abs(Dt),Gt=[],er;for(;ft+ot<=mt;){if(Ur+=Qt,Ur=Ue)return null;ft+=ot,Ge=qe,Ae=he;let Ir={absOffsetX:mt,direction:Qt,distanceFromAnchor:ft,previousVertex:Ge};if(qe=xt(Ur,at,Ir),q===0)Gt.push(Ge),er=qe.sub(Ge);else{let ri,si=qe.sub(Ge);ri=si.mag()===0?br(xt(Ur+Qt,at,Ir).sub(qe),q,Qt):br(si,q,Qt),Ae||(Ae=Ge.add(ri)),he=cr(Ur,ri,qe,fe,Ue,Ae,q,at,Ir),Gt.push(Ae),er=he.sub(Ae)}ot=er.mag()}let sr=er._mult((mt-ft)/ot)._add(Ae||Ge),wr=rr+Math.atan2(qe.y-Ge.y,qe.x-Ge.x);return Gt.push(sr),{point:sr,angle:yt?wr:0,path:Gt}}let ii=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function jr(ue,w){for(let q=0;q=1;Us--)Ua.push(Zn.path[Us]);for(let Us=1;Usml.signedDistanceFromCamera<=0)?[]:Us.map(ml=>ml.point)}let vl=[];if(Ua.length>0){let Us=Ua[0].clone(),ml=Ua[0].clone();for(let au=1;au=si.x&&ml.x<=Mi.x&&Us.y>=si.y&&ml.y<=Mi.y?[Ua]:ml.xMi.x||ml.yMi.y?[]:a.al([Ua],si.x,si.y,Mi.x,Mi.y)}for(let Us of vl){cn.reset(Us,.25*ri);let ml=0;ml=cn.length<=.5*ri?1:Math.ceil(cn.paddedLength/Fo)+1;for(let au=0;auPe(ee.x,ee.y,Q,q.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let q=[],Q=1/0,ee=1/0,fe=-1/0,Ue=-1/0;for(let Qt of w){let rr=new a.P(Qt.x+Vr,Qt.y+Vr);Q=Math.min(Q,rr.x),ee=Math.min(ee,rr.y),fe=Math.max(fe,rr.x),Ue=Math.max(Ue,rr.y),q.push(rr)}let at=this.grid.query(Q,ee,fe,Ue).concat(this.ignoredGrid.query(Q,ee,fe,Ue)),yt={},Dt={};for(let Qt of at){let rr=Qt.key;if(yt[rr.bucketInstanceId]===void 0&&(yt[rr.bucketInstanceId]={}),yt[rr.bucketInstanceId][rr.featureIndex])continue;let Mr=[new a.P(Qt.x1,Qt.y1),new a.P(Qt.x2,Qt.y1),new a.P(Qt.x2,Qt.y2),new a.P(Qt.x1,Qt.y2)];a.am(q,Mr)&&(yt[rr.bucketInstanceId][rr.featureIndex]=!0,Dt[rr.bucketInstanceId]===void 0&&(Dt[rr.bucketInstanceId]=[]),Dt[rr.bucketInstanceId].push(rr.featureIndex))}return Dt}insertCollisionBox(w,q,Q,ee,fe,Ue){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:fe,collisionGroupID:Ue,overlapMode:q},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,q,Q,ee,fe,Ue){let at=Q?this.ignoredGrid:this.grid,yt={bucketInstanceId:ee,featureIndex:fe,collisionGroupID:Ue,overlapMode:q};for(let Dt=0;Dt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,q,Q,ee){return Q>=0&&w=0&&qthis.projectAndGetPerspectiveRatio(Q,ri.x,ri.y,ee,Dt));wr=Ir.some(ri=>!ri.isOccluded),sr=Ir.map(ri=>ri.point)}else wr=!0;return{box:a.ao(sr),allPointsOccluded:!wr}}}function Bi(ue,w,q){return w*(a.X/(ue.tileSize*Math.pow(2,q-ue.tileID.overscaledZ)))}class Di{constructor(w,q,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?q:-q))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class ln{constructor(w,q,Q,ee,fe){this.text=new Di(w?w.text:null,q,Q,fe),this.icon=new Di(w?w.icon:null,q,ee,fe)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class hn{constructor(w,q,Q){this.text=w,this.icon=q,this.skipFade=Q}}class qr{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class _i{constructor(w,q,Q,ee,fe){this.bucketInstanceId=w,this.featureIndex=q,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=fe}}class zi{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let q=++this.maxGroupID;this.collisionGroups[w]={ID:q,predicate:Q=>Q.collisionGroupID===q}}return this.collisionGroups[w]}}function Rt(ue,w,q,Q,ee){let{horizontalAlign:fe,verticalAlign:Ue}=a.au(ue);return new a.P(-(fe-.5)*w+Q[0]*ee,-(Ue-.5)*q+Q[1]*ee)}class _t{constructor(w,q,Q,ee,fe,Ue){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new Ai(this.transform,q),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new zi(fe),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Ue,Ue&&(Ue.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let q=this.terrain;return q?(Q,ee)=>q.getElevation(w,Q,ee):null}getBucketParts(w,q,Q,ee){let fe=Q.getBucket(q),Ue=Q.latestFeatureIndex;if(!fe||!Ue||q.id!==fe.layerIds[0])return;let at=Q.collisionBoxArray,yt=fe.layers[0].layout,Dt=fe.layers[0].paint,Qt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),rr=Q.tileSize/a.X,Mr=Q.tileID.toUnwrapped(),Ur=this.transform.calculatePosMatrix(Mr),he=yt.get("text-pitch-alignment")==="map",Ae=yt.get("text-rotation-alignment")==="map",qe=Bi(Q,1,this.transform.zoom),Ge=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Dt.get("text-translate"),Dt.get("text-translate-anchor")),ft=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Dt.get("icon-translate"),Dt.get("icon-translate-anchor")),ot=vr(Ur,he,Ae,this.transform,qe),mt=null;if(he){let er=Vt(Ur,he,Ae,this.transform,qe);mt=a.L([],this.transform.labelPlaneMatrix,er)}this.retainedQueryData[fe.bucketInstanceId]=new _i(fe.bucketInstanceId,Ue,fe.sourceLayerIndex,fe.index,Q.tileID);let Gt={bucket:fe,layout:yt,translationText:Ge,translationIcon:ft,posMatrix:Ur,unwrappedTileID:Mr,textLabelPlaneMatrix:ot,labelToScreenMatrix:mt,scale:Qt,textPixelRatio:rr,holdingForFade:Q.holdingForFade(),collisionBoxArray:at,partiallyEvaluatedTextSize:a.ag(fe.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(fe.sourceID)};if(ee)for(let er of fe.sortKeyRanges){let{sortKey:sr,symbolInstanceStart:wr,symbolInstanceEnd:Ir}=er;w.push({sortKey:sr,symbolInstanceStart:wr,symbolInstanceEnd:Ir,parameters:Gt})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:fe.symbolInstances.length,parameters:Gt})}attemptAnchorPlacement(w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot){let mt=a.aq[w.textAnchor],Gt=[w.textOffset0,w.textOffset1],er=Rt(mt,Q,ee,Gt,fe),sr=this.collisionIndex.placeCollisionBox(q,Mr,yt,Dt,Qt,at,Ue,qe,rr.predicate,ot,er);if((!ft||this.collisionIndex.placeCollisionBox(ft,Mr,yt,Dt,Qt,at,Ue,Ge,rr.predicate,ot,er).placeable)&&sr.placeable){let wr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Ur.crossTileID]&&this.prevPlacement.placements[Ur.crossTileID]&&this.prevPlacement.placements[Ur.crossTileID].text&&(wr=this.prevPlacement.variableOffsets[Ur.crossTileID].anchor),Ur.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Ur.crossTileID]={textOffset:Gt,width:Q,height:ee,anchor:mt,textBoxScale:fe,prevAnchor:wr},this.markUsedJustification(he,mt,Ur,Ae),he.allowVerticalPlacement&&(this.markUsedOrientation(he,Ae,Ur),this.placedOrientations[Ur.crossTileID]=Ae),{shift:er,placedGlyphBoxes:sr}}}placeLayerBucketPart(w,q,Q){let{bucket:ee,layout:fe,translationText:Ue,translationIcon:at,posMatrix:yt,unwrappedTileID:Dt,textLabelPlaneMatrix:Qt,labelToScreenMatrix:rr,textPixelRatio:Mr,holdingForFade:Ur,collisionBoxArray:he,partiallyEvaluatedTextSize:Ae,collisionGroup:qe}=w.parameters,Ge=fe.get("text-optional"),ft=fe.get("icon-optional"),ot=a.ar(fe,"text-overlap","text-allow-overlap"),mt=ot==="always",Gt=a.ar(fe,"icon-overlap","icon-allow-overlap"),er=Gt==="always",sr=fe.get("text-rotation-alignment")==="map",wr=fe.get("text-pitch-alignment")==="map",Ir=fe.get("icon-text-fit")!=="none",ri=fe.get("symbol-z-order")==="viewport-y",si=mt&&(er||!ee.hasIconData()||ft),Mi=er&&(mt||!ee.hasTextData()||Ge);!ee.collisionArrays&&he&&ee.deserializeCollisionBoxes(he);let cn=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),Zn=(Yn,Ua,Fo)=>{var vl,Us;if(q[Yn.crossTileID])return;if(Ur)return void(this.placements[Yn.crossTileID]=new hn(!1,!1,!1));let ml=!1,au=!1,Sl=!0,Yl=null,ql={box:null,placeable:!1,offscreen:null},ou={box:null,placeable:!1,offscreen:null},Pu=null,nu=null,ru=null,Hu=0,$u=0,Ku=0;Ua.textFeatureIndex?Hu=Ua.textFeatureIndex:Yn.useRuntimeCollisionCircles&&(Hu=Yn.featureIndex),Ua.verticalTextFeatureIndex&&($u=Ua.verticalTextFeatureIndex);let Wu=Ua.textBox;if(Wu){let Qu=ke=>{let Ye=a.ah.horizontal;if(ee.allowVerticalPlacement&&!ke&&this.prevPlacement){let nt=this.prevPlacement.placedOrientations[Yn.crossTileID];nt&&(this.placedOrientations[Yn.crossTileID]=nt,Ye=nt,this.markUsedOrientation(ee,Ye,Yn))}return Ye},ef=(ke,Ye)=>{if(ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ua.verticalTextBox){for(let nt of ee.writingModes)if(nt===a.ah.vertical?(ql=Ye(),ou=ql):ql=ke(),ql&&ql.placeable)break}else ql=ke()},Z=Yn.textAnchorOffsetStartIndex,le=Yn.textAnchorOffsetEndIndex;if(le===Z){let ke=(Ye,nt)=>{let ut=this.collisionIndex.placeCollisionBox(Ye,ot,Mr,yt,Dt,wr,sr,Ue,qe.predicate,cn);return ut&&ut.placeable&&(this.markUsedOrientation(ee,nt,Yn),this.placedOrientations[Yn.crossTileID]=nt),ut};ef(()=>ke(Wu,a.ah.horizontal),()=>{let Ye=Ua.verticalTextBox;return ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ye?ke(Ye,a.ah.vertical):{box:null,offscreen:null}}),Qu(ql&&ql.placeable)}else{let ke=a.aq[(Us=(vl=this.prevPlacement)===null||vl===void 0?void 0:vl.variableOffsets[Yn.crossTileID])===null||Us===void 0?void 0:Us.anchor],Ye=(ut,Ht,wt)=>{let lr=ut.x2-ut.x1,Cr=ut.y2-ut.y1,zr=Yn.textBoxScale,ui=Ir&&Gt==="never"?Ht:null,$r=null,Oi=ot==="never"?1:2,un="never";ke&&Oi++;for(let pi=0;piYe(Wu,Ua.iconBox,a.ah.horizontal),()=>{let ut=Ua.verticalTextBox;return ee.allowVerticalPlacement&&(!ql||!ql.placeable)&&Yn.numVerticalGlyphVertices>0&&ut?Ye(ut,Ua.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),ql&&(ml=ql.placeable,Sl=ql.offscreen);let nt=Qu(ql&&ql.placeable);if(!ml&&this.prevPlacement){let ut=this.prevPlacement.variableOffsets[Yn.crossTileID];ut&&(this.variableOffsets[Yn.crossTileID]=ut,this.markUsedJustification(ee,ut.anchor,Yn,nt))}}}if(Pu=ql,ml=Pu&&Pu.placeable,Sl=Pu&&Pu.offscreen,Yn.useRuntimeCollisionCircles){let Qu=ee.text.placedSymbolArray.get(Yn.centerJustifiedTextSymbolIndex),ef=a.ai(ee.textSizeData,Ae,Qu),Z=fe.get("text-padding");nu=this.collisionIndex.placeCollisionCircles(ot,Qu,ee.lineVertexArray,ee.glyphOffsetArray,ef,yt,Dt,Qt,rr,Q,wr,qe.predicate,Yn.collisionCircleDiameter,Z,Ue,cn),nu.circles.length&&nu.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),ml=mt||nu.circles.length>0&&!nu.collisionDetected,Sl=Sl&&nu.offscreen}if(Ua.iconFeatureIndex&&(Ku=Ua.iconFeatureIndex),Ua.iconBox){let Qu=ef=>this.collisionIndex.placeCollisionBox(ef,Gt,Mr,yt,Dt,wr,sr,at,qe.predicate,cn,Ir&&Yl?Yl:void 0);ou&&ou.placeable&&Ua.verticalIconBox?(ru=Qu(Ua.verticalIconBox),au=ru.placeable):(ru=Qu(Ua.iconBox),au=ru.placeable),Sl=Sl&&ru.offscreen}let ju=Ge||Yn.numHorizontalGlyphVertices===0&&Yn.numVerticalGlyphVertices===0,sf=ft||Yn.numIconVertices===0;ju||sf?sf?ju||(au=au&&ml):ml=au&&ml:au=ml=au&&ml;let _f=au&&ru.placeable;if(ml&&Pu.placeable&&this.collisionIndex.insertCollisionBox(Pu.box,ot,fe.get("text-ignore-placement"),ee.bucketInstanceId,ou&&ou.placeable&&$u?$u:Hu,qe.ID),_f&&this.collisionIndex.insertCollisionBox(ru.box,Gt,fe.get("icon-ignore-placement"),ee.bucketInstanceId,Ku,qe.ID),nu&&ml&&this.collisionIndex.insertCollisionCircles(nu.circles,ot,fe.get("text-ignore-placement"),ee.bucketInstanceId,Hu,qe.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Fo,Ua,Pu,ru,nu),Yn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Yn.crossTileID]=new hn(ml||si,au||Mi,Sl||ee.justReloaded),q[Yn.crossTileID]=!0};if(ri){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let Yn=ee.getSortedSymbolIndexes(this.transform.angle);for(let Ua=Yn.length-1;Ua>=0;--Ua){let Fo=Yn[Ua];Zn(ee.symbolInstances.get(Fo),ee.collisionArrays[Fo],Fo)}}else for(let Yn=w.symbolInstanceStart;Yn=0&&(w.text.placedSymbolArray.get(at).crossTileID=fe>=0&&at!==fe?0:Q.crossTileID)}markUsedOrientation(w,q,Q){let ee=q===a.ah.horizontal||q===a.ah.horizontalOnly?q:0,fe=q===a.ah.vertical?q:0,Ue=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let at of Ue)w.text.placedSymbolArray.get(at).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=fe)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let q=this.prevPlacement,Q=!1;this.prevZoomAdjustment=q?q.zoomAdjustment(this.transform.zoom):0;let ee=q?q.symbolFadeChange(w):1,fe=q?q.opacities:{},Ue=q?q.variableOffsets:{},at=q?q.placedOrientations:{};for(let yt in this.placements){let Dt=this.placements[yt],Qt=fe[yt];Qt?(this.opacities[yt]=new ln(Qt,ee,Dt.text,Dt.icon),Q=Q||Dt.text!==Qt.text.placed||Dt.icon!==Qt.icon.placed):(this.opacities[yt]=new ln(null,ee,Dt.text,Dt.icon,Dt.skipFade),Q=Q||Dt.text||Dt.icon)}for(let yt in fe){let Dt=fe[yt];if(!this.opacities[yt]){let Qt=new ln(Dt,ee,!1,!1);Qt.isHidden()||(this.opacities[yt]=Qt,Q=Q||Dt.text.placed||Dt.icon.placed)}}for(let yt in Ue)this.variableOffsets[yt]||!this.opacities[yt]||this.opacities[yt].isHidden()||(this.variableOffsets[yt]=Ue[yt]);for(let yt in at)this.placedOrientations[yt]||!this.opacities[yt]||this.opacities[yt].isHidden()||(this.placedOrientations[yt]=at[yt]);if(q&&q.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=q?q.lastPlacementChangeTime:w)}updateLayerOpacities(w,q){let Q={};for(let ee of q){let fe=ee.getBucket(w);fe&&ee.latestFeatureIndex&&w.id===fe.layerIds[0]&&this.updateBucketOpacities(fe,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,q,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let fe=w.layers[0],Ue=fe.layout,at=new ln(null,0,!1,!1,!0),yt=Ue.get("text-allow-overlap"),Dt=Ue.get("icon-allow-overlap"),Qt=fe._unevaluatedLayout.hasValue("text-variable-anchor")||fe._unevaluatedLayout.hasValue("text-variable-anchor-offset"),rr=Ue.get("text-rotation-alignment")==="map",Mr=Ue.get("text-pitch-alignment")==="map",Ur=Ue.get("icon-text-fit")!=="none",he=new ln(null,0,yt&&(Dt||!w.hasIconData()||Ue.get("icon-optional")),Dt&&(yt||!w.hasTextData()||Ue.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let Ae=(Ge,ft,ot)=>{for(let mt=0;mt0,wr=this.placedOrientations[ft.crossTileID],Ir=wr===a.ah.vertical,ri=wr===a.ah.horizontal||wr===a.ah.horizontalOnly;if(ot>0||mt>0){let Mi=mi(er.text);Ae(w.text,ot,Ir?Ei:Mi),Ae(w.text,mt,ri?Ei:Mi);let cn=er.text.isHidden();[ft.rightJustifiedTextSymbolIndex,ft.centerJustifiedTextSymbolIndex,ft.leftJustifiedTextSymbolIndex].forEach(Ua=>{Ua>=0&&(w.text.placedSymbolArray.get(Ua).hidden=cn||Ir?1:0)}),ft.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(ft.verticalPlacedTextSymbolIndex).hidden=cn||ri?1:0);let Zn=this.variableOffsets[ft.crossTileID];Zn&&this.markUsedJustification(w,Zn.anchor,ft,wr);let Yn=this.placedOrientations[ft.crossTileID];Yn&&(this.markUsedJustification(w,"left",ft,Yn),this.markUsedOrientation(w,Yn,ft))}if(sr){let Mi=mi(er.icon),cn=!(Ur&&ft.verticalPlacedIconSymbolIndex&&Ir);ft.placedIconSymbolIndex>=0&&(Ae(w.icon,ft.numIconVertices,cn?Mi:Ei),w.icon.placedSymbolArray.get(ft.placedIconSymbolIndex).hidden=er.icon.isHidden()),ft.verticalPlacedIconSymbolIndex>=0&&(Ae(w.icon,ft.numVerticalIconVertices,cn?Ei:Mi),w.icon.placedSymbolArray.get(ft.verticalPlacedIconSymbolIndex).hidden=er.icon.isHidden())}let si=qe&&qe.has(Ge)?qe.get(Ge):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let Mi=w.collisionArrays[Ge];if(Mi){let cn=new a.P(0,0);if(Mi.textBox||Mi.verticalTextBox){let Zn=!0;if(Qt){let Yn=this.variableOffsets[Gt];Yn?(cn=Rt(Yn.anchor,Yn.width,Yn.height,Yn.textOffset,Yn.textBoxScale),rr&&cn._rotate(Mr?this.transform.angle:-this.transform.angle)):Zn=!1}if(Mi.textBox||Mi.verticalTextBox){let Yn;Mi.textBox&&(Yn=Ir),Mi.verticalTextBox&&(Yn=ri),qt(w.textCollisionBox.collisionVertexArray,er.text.placed,!Zn||Yn,si.text,cn.x,cn.y)}}if(Mi.iconBox||Mi.verticalIconBox){let Zn=!!(!ri&&Mi.verticalIconBox),Yn;Mi.iconBox&&(Yn=Zn),Mi.verticalIconBox&&(Yn=!Zn),qt(w.iconCollisionBox.collisionVertexArray,er.icon.placed,Yn,si.icon,Ur?cn.x:0,Ur?cn.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let Ge=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Ge.invProjMatrix,w.placementViewportMatrix=Ge.viewportMatrix,w.collisionCircleArray=Ge.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function qt(ue,w,q,Q,ee,fe){Q&&Q.length!==0||(Q=[0,0,0,0]);let Ue=Q[0]-Vr,at=Q[1]-Vr,yt=Q[2]-Vr,Dt=Q[3]-Vr;ue.emplaceBack(w?1:0,q?1:0,ee||0,fe||0,Ue,at),ue.emplaceBack(w?1:0,q?1:0,ee||0,fe||0,yt,at),ue.emplaceBack(w?1:0,q?1:0,ee||0,fe||0,yt,Dt),ue.emplaceBack(w?1:0,q?1:0,ee||0,fe||0,Ue,Dt)}let Nt=Math.pow(2,25),mr=Math.pow(2,24),Lr=Math.pow(2,17),Nr=Math.pow(2,16),Fr=Math.pow(2,9),Gr=Math.pow(2,8),Hr=Math.pow(2,1);function mi(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,q=Math.floor(127*ue.opacity);return q*Nt+w*mr+q*Lr+w*Nr+q*Fr+w*Gr+q*Hr+w}let Ei=0;function Vi(){return{isOccluded:(ue,w,q)=>!1,getPitchedTextCorrection:(ue,w,q)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,q,Q){throw new Error("Not implemented.")},translatePosition:(ue,w,q,Q)=>function(ee,fe,Ue,at,yt=!1){if(!Ue[0]&&!Ue[1])return[0,0];let Dt=yt?at==="map"?ee.angle:0:at==="viewport"?-ee.angle:0;if(Dt){let Qt=Math.sin(Dt),rr=Math.cos(Dt);Ue=[Ue[0]*rr-Ue[1]*Qt,Ue[0]*Qt+Ue[1]*rr]}return[yt?Ue[0]:Bi(fe,Ue[0],ee.zoom),yt?Ue[1]:Bi(fe,Ue[1],ee.zoom)]}(ue,w,q,Q),getCircleRadiusCorrection:ue=>1}}class ti{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,q,Q,ee,fe){let Ue=this._bucketParts;for(;this._currentTileIndexat.sortKey-yt.sortKey));this._currentPartIndex!this._forceFullPlacement&&l.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Ue=q[w[this._currentPlacementIndex]],at=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=at)&&(!Ue.maxzoom||Ue.maxzoom>at)){if(this._inProgressLayer||(this._inProgressLayer=new ti(Ue)),this._inProgressLayer.continuePlacement(Q[Ue.source],this.placement,this._showCollisionBoxes,Ue,fe))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let Yr=512/a.X/2;class oi{constructor(w,q,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let fe=0;fe({x:Math.floor(yt.anchorX*Yr),y:Math.floor(yt.anchorY*Yr)})),crossTileIDs:Ue.map(yt=>yt.crossTileID)};if(at.positions.length>128){let yt=new a.av(at.positions.length,16,Uint16Array);for(let{x:Dt,y:Qt}of at.positions)yt.add(Dt,Qt);yt.finish(),delete at.positions,at.index=yt}this._symbolsByKey[fe]=at}}getScaledCoordinates(w,q){let{x:Q,y:ee,z:fe}=this.tileID.canonical,{x:Ue,y:at,z:yt}=q.canonical,Dt=Yr/Math.pow(2,yt-fe),Qt=(at*a.X+w.anchorY)*Dt,rr=ee*a.X*Yr;return{x:Math.floor((Ue*a.X+w.anchorX)*Dt-Q*a.X*Yr),y:Math.floor(Qt-rr)}}findMatches(w,q,Q){let ee=this.tileID.canonical.zw)}}class Fi{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class rn{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let q=Math.round((w-this.lng)/360);if(q!==0)for(let Q in this.indexes){let ee=this.indexes[Q],fe={};for(let Ue in ee){let at=ee[Ue];at.tileID=at.tileID.unwrapTo(at.tileID.wrap+q),fe[at.tileID.key]=at}this.indexes[Q]=fe}this.lng=w}addBucket(w,q,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===q.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let fe=0;few.overscaledZ)for(let at in Ue){let yt=Ue[at];yt.tileID.isChildOf(w)&&yt.findMatches(q.symbolInstances,w,ee)}else{let at=Ue[w.scaledTo(Number(fe)).key];at&&at.findMatches(q.symbolInstances,w,ee)}}for(let fe=0;fe{q[Q]=!0});for(let Q in this.layerIndexes)q[Q]||delete this.layerIndexes[Q]}}let Ri=(ue,w)=>a.t(ue,w&&w.filter(q=>q.identifier!=="source.canvas")),Ii=a.aw();class xn extends a.E{constructor(w,q={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Te(Se(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new E,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,q.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new tn,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),vt().on(Me,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let fe=ee.getSource();if(fe&&fe.vectorLayerIds)for(let Ue in this._layers){let at=this._layers[Ue];at.source===fe.id&&this._validateLayer(at)}})}loadURL(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),q.validate=typeof q.validate!="boolean"||q.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let fe=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(Ue=>{this._loadStyleRequest=null,this._load(Ue.data,q,Q)}).catch(Ue=>{this._loadStyleRequest=null,Ue&&!fe.signal.aborted&&this.fire(new a.j(Ue))})}loadJSON(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,q.validate=q.validate!==!1,this._load(w,q,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Ii,{validate:!1})}_load(w,q,Q){var ee;let fe=q.transformStyle?q.transformStyle(Q,w):w;if(!q.validate||!Ri(this,a.u(fe))){this._loaded=!0,this.stylesheet=fe;for(let Ue in fe.sources)this.addSource(Ue,fe.sources[Ue],{validate:!1});fe.sprite?this._loadSprite(fe.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(fe.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(q=>q.id),this._layers={},this._serializedLayers=null;for(let q of w){let Q=a.aA(q);Q.setEventedParent(this,{layer:{id:q.id}}),this._layers[q.id]=Q}}_loadSprite(w,q=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(fe,Ue,at,yt){return a._(this,void 0,void 0,function*(){let Dt=k(fe),Qt=at>1?"@2x":"",rr={},Mr={};for(let{id:Ur,url:he}of Dt){let Ae=Ue.transformRequest(S(he,Qt,".json"),"SpriteJSON");rr[Ur]=a.h(Ae,yt);let qe=Ue.transformRequest(S(he,Qt,".png"),"SpriteImage");Mr[Ur]=v.getImage(qe,yt)}return yield Promise.all([...Object.values(rr),...Object.values(Mr)]),function(Ur,he){return a._(this,void 0,void 0,function*(){let Ae={};for(let qe in Ur){Ae[qe]={};let Ge=l.getImageCanvasContext((yield he[qe]).data),ft=(yield Ur[qe]).data;for(let ot in ft){let{width:mt,height:Gt,x:er,y:sr,sdf:wr,pixelRatio:Ir,stretchX:ri,stretchY:si,content:Mi,textFitWidth:cn,textFitHeight:Zn}=ft[ot];Ae[qe][ot]={data:null,pixelRatio:Ir,sdf:wr,stretchX:ri,stretchY:si,content:Mi,textFitWidth:cn,textFitHeight:Zn,spriteData:{width:mt,height:Gt,x:er,y:sr,context:Ge}}}}return Ae})}(rr,Mr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(fe=>{if(this._spriteRequest=null,fe)for(let Ue in fe){this._spritesImagesIds[Ue]=[];let at=this._spritesImagesIds[Ue]?this._spritesImagesIds[Ue].filter(yt=>!(yt in fe)):[];for(let yt of at)this.imageManager.removeImage(yt),this._changedImages[yt]=!0;for(let yt in fe[Ue]){let Dt=Ue==="default"?yt:`${Ue}:${yt}`;this._spritesImagesIds[Ue].push(Dt),Dt in this.imageManager.images?this.imageManager.updateImage(Dt,fe[Ue][yt],!1):this.imageManager.addImage(Dt,fe[Ue][yt]),q&&(this._changedImages[Dt]=!0)}}}).catch(fe=>{this._spriteRequest=null,ee=fe,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),q&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let q=this.sourceCaches[w.source];if(!q)return;let Q=w.sourceLayer;if(!Q)return;let ee=q.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,q=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(q?a.aB(Q):Q);let ee=[];for(let fe of w)if(Q[fe]){let Ue=q?a.aB(Q[fe]):Q[fe];ee.push(Ue)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let q=Object.keys(this._layers);for(let Q of q){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let q=this._changed;if(q){let ee=Object.keys(this._updatedLayers),fe=Object.keys(this._removedLayers);(ee.length||fe.length)&&this._updateWorkerLayers(ee,fe);for(let Ue in this._updatedSources){let at=this._updatedSources[Ue];if(at==="reload")this._reloadSource(Ue);else{if(at!=="clear")throw new Error(`Invalid action ${at}`);this._clearSource(Ue)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Ue in this._updatedPaintProps)this._layers[Ue].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let fe=this.sourceCaches[ee];Q[ee]=fe.used,fe.used=!1}for(let ee of this._order){let fe=this._layers[ee];fe.recalculate(w,this._availableImages),!fe.isHidden(w.zoom)&&fe.source&&(this.sourceCaches[fe.source].used=!0)}for(let ee in Q){let fe=this.sourceCaches[ee];!!Q[ee]!=!!fe.used&&fe.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,q&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let q in this.sourceCaches)this.sourceCaches[q].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,q){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:q})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,q={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=q.transformStyle?q.transformStyle(ee,w):w,((Q=q.validate)===null||Q===void 0||Q)&&Ri(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let fe=a.aC(ee,w),Ue=this._getOperationsToPerform(fe);if(Ue.unimplemented.length>0)throw new Error(`Unimplemented: ${Ue.unimplemented.join(", ")}.`);if(Ue.operations.length===0)return!1;for(let at of Ue.operations)at();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let q=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":q.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":q.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":q.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":q.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":q.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":q.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":q.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":q.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":q.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":q.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":q.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":q.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":q.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":q.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":q.push(()=>{});break;default:Q.push(ee.command)}return{operations:q,unimplemented:Q}}addImage(w,q){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,q),this._afterImageUpdated(w)}updateImage(w,q){this.imageManager.updateImage(w,q)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,q,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!q.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(q).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(q.type)>=0&&this._validate(a.u.source,`sources.${w}`,q,null,Q))return;this.map&&this.map._collectResourceTiming&&(q.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new et(w,q,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let q=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],q.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),q.setEventedParent(null),q.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,q){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(q),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,q,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let fe;if(w.type==="custom"){if(Ri(this,a.aD(w)))return;fe=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;fe=a.aA(w),this._validateLayer(fe),fe.setEventedParent(this,{layer:{id:ee}})}let Ue=q?this._order.indexOf(q):this._order.length;if(q&&Ue===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${q}".`)));else{if(this._order.splice(Ue,0,ee),this._layerOrderChanged=!0,this._layers[ee]=fe,this._removedLayers[ee]&&fe.source&&fe.type!=="custom"){let at=this._removedLayers[ee];delete this._removedLayers[ee],at.type!==fe.type?this._updatedSources[fe.source]="clear":(this._updatedSources[fe.source]="reload",this.sourceCaches[fe.source].pause())}this._updateLayer(fe),fe.onAdd&&fe.onAdd(this.map)}}moveLayer(w,q){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===q)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=q?this._order.indexOf(q):this._order.length;q&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${q}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let q=this._layers[w];if(!q)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));q.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=q,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],q.onRemove&&q.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,q,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===q&&ee.maxzoom===Q||(q!=null&&(ee.minzoom=q),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,q,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,q))return q==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,q,null,Q)||(ee.filter=a.aB(q),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,q,Q,ee={}){this._checkLoaded();let fe=this.getLayer(w);fe?a.aE(fe.getLayoutProperty(q),Q)||(fe.setLayoutProperty(q,Q,ee),this._updateLayer(fe)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,q){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(q);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,q,Q,ee={}){this._checkLoaded();let fe=this.getLayer(w);fe?a.aE(fe.getPaintProperty(q),Q)||(fe.setPaintProperty(q,Q,ee)&&this._updateLayer(fe),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,q){return this.getLayer(w).getPaintProperty(q)}setFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,fe=this.sourceCaches[Q];if(fe===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Ue=fe.getSource().type;Ue==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ue!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),fe.setFeatureState(ee,w.id,q)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let fe=ee.getSource().type,Ue=fe==="vector"?w.sourceLayer:void 0;fe!=="vector"||Ue?q&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(Ue,w.id,q):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let q=w.source,Q=w.sourceLayer,ee=this.sourceCaches[q];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${q}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,fe=>fe.serialize()),q=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:q,terrain:Q},fe=>fe!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let q=Ue=>this._layers[Ue].type==="fill-extrusion",Q={},ee=[];for(let Ue=this._order.length-1;Ue>=0;Ue--){let at=this._order[Ue];if(q(at)){Q[at]=Ue;for(let yt of w){let Dt=yt[at];if(Dt)for(let Qt of Dt)ee.push(Qt)}}}ee.sort((Ue,at)=>at.intersectionZ-Ue.intersectionZ);let fe=[];for(let Ue=this._order.length-1;Ue>=0;Ue--){let at=this._order[Ue];if(q(at))for(let yt=ee.length-1;yt>=0;yt--){let Dt=ee[yt].feature;if(Q[Dt.layer.id]{let wr=Ge.featureSortOrder;if(wr){let Ir=wr.indexOf(er.featureIndex);return wr.indexOf(sr.featureIndex)-Ir}return sr.featureIndex-er.featureIndex});for(let er of Gt)mt.push(er)}}for(let Ge in he)he[Ge].forEach(ft=>{let ot=ft.feature,mt=Dt[at[Ge].source].getFeatureState(ot.layer["source-layer"],ot.id);ot.source=ot.layer.source,ot.layer["source-layer"]&&(ot.sourceLayer=ot.layer["source-layer"]),ot.state=mt});return he}(this._layers,Ue,this.sourceCaches,w,q,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(fe)}querySourceFeatures(w,q){q&&q.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",q.filter,null,q);let Q=this.sourceCaches[w];return Q?function(ee,fe){let Ue=ee.getRenderableIds().map(Dt=>ee.getTileByID(Dt)),at=[],yt={};for(let Dt=0;DtMr.getTileByID(Ur)).sort((Ur,he)=>he.tileID.overscaledZ-Ur.tileID.overscaledZ||(Ur.tileID.isLessThan(he.tileID)?-1:1))}let rr=this.crossTileSymbolIndex.addLayer(Qt,yt[Qt.source],w.center.lng);Ue=Ue||rr}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((fe=fe||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.now(),w.zoom))&&(this.pauseablePlacement=new Qi(w,this.map.terrain,this._order,fe,q,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,yt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.now()),at=!0),Ue&&this.pauseablePlacement.placement.setStale()),at||Ue)for(let Dt of this._order){let Qt=this._layers[Dt];Qt.type==="symbol"&&this.placement.updateLayerOpacities(Qt,yt[Qt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(l.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(q.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,q.icons),Q})}getGlyphs(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(q.stacks),ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,q={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,q)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,q,Q={},ee){this._checkLoaded();let fe=[{id:w,url:q}],Ue=[...k(this.stylesheet.sprite),...fe];this._validate(a.u.sprite,"sprite",Ue,null,Q)||(this.stylesheet.sprite=Ue,this._loadSprite(fe,!0,ee))}removeSprite(w){this._checkLoaded();let q=k(this.stylesheet.sprite);if(q.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;q.splice(q.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=q.length>0?q:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return k(this.stylesheet.sprite)}setSprite(w,q={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,q)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var xi=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Xr={prelude:dt(`#ifdef GL_ES +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var xWe=we((_wr,_We)=>{_We.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var zx=we((xwr,SWe)=>{"use strict";var kZt=r_(),CZt=gWe(),LZt=xWe(),PZt='\xA9 OpenStreetMap contributors',bWe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",wWe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",b9="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",zZt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",IZt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",RZt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",TWe={basic:b9,streets:b9,outdoors:b9,light:bWe,dark:wWe,satellite:LZt,"satellite-streets":CZt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:PZt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":bWe,"carto-darkmatter":wWe,"carto-voyager":b9,"carto-positron-nolabels":zZt,"carto-darkmatter-nolabels":IZt,"carto-voyager-nolabels":RZt},AWe=kZt(TWe);SWe.exports={styleValueDflt:"basic",stylesMap:TWe,styleValuesMap:AWe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",AWe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}});var rC=we((bwr,LWe)=>{"use strict";var MWe=ei(),EWe=jl().defaultLine,DZt=zc().attributes,FZt=gc(),OZt=Zc().textposition,BZt=Sc().overrideAll,qZt=Lf().templatedArray,kWe=zx(),CWe=FZt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});CWe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var NZt=LWe.exports=BZt({_arrayAttrRegexps:[MWe.counterRegex("map",".layers",!0)],domain:DZt({name:"map"}),style:{valType:"any",values:kWe.styleValuesMap,dflt:kWe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:qZt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:EWe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:EWe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:CWe,textposition:MWe.extendFlat({},OZt,{arrayOk:!1})}})},"plot","from-root");NZt.uirevision={valType:"any",editType:"none"}});var w9=we((wwr,RWe)=>{"use strict";var{hovertemplateAttrs:UZt,texttemplateAttrs:VZt,templatefallbackAttrs:PWe}=Of(),GZt=Pm(),iC=rw(),RS=Zc(),zWe=rC(),HZt=Vf(),WZt=nc(),yw=Su().extendFlat,jZt=Sc().overrideAll,XZt=rC(),IWe=iC.line,DS=iC.marker;RWe.exports=jZt({lon:iC.lon,lat:iC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:yw({},XZt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:yw({},DS.opacity,{dflt:1})},mode:yw({},RS.mode,{dflt:"markers"}),text:yw({},RS.text,{}),texttemplate:VZt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:PWe({editType:"plot"}),hovertext:yw({},RS.hovertext,{}),line:{color:IWe.color,width:IWe.width},connectgaps:RS.connectgaps,marker:yw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:DS.opacity,size:DS.size,sizeref:DS.sizeref,sizemin:DS.sizemin,sizemode:DS.sizemode},WZt("marker")),fill:iC.fill,fillcolor:GZt(),textfont:zWe.layers.symbol.textfont,textposition:zWe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:RS.selected.marker},unselected:{marker:RS.unselected.marker},hoverinfo:yw({},HZt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:UZt(),hovertemplatefallback:PWe()},"calc","nested")});var HJ=we((Awr,DWe)=>{"use strict";var ZZt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];DWe.exports={isSupportedFont:function(e){return ZZt.indexOf(e)!==-1}}});var BWe=we((Twr,OWe)=>{"use strict";var nC=ei(),WJ=lc(),YZt=$v(),KZt=R0(),JZt=D0(),$Zt=Dm(),FWe=w9(),QZt=HJ().isSupportedFont;OWe.exports=function(t,r,n,i){function a(v,C){return nC.coerce(t,r,FWe,v,C)}function o(v,C){return nC.coerce2(t,r,FWe,v,C)}var s=eYt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),WJ.hasMarkers(r)){YZt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(nC.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),nC.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}WJ.hasLines(r)&&(KZt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,y=a("cluster.enabled",p);if(y||WJ.hasText(r)){var b=i.font.family;JZt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:QZt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&$Zt(t,r,n,a),nC.coerceSelectionMarkerOpacity(r,a)};function eYt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var jJ=we((Swr,NWe)=>{"use strict";var qWe=wu();NWe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=qWe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=qWe.tickText(o,o.c2l(s[1]),!0).text,i}});var XJ=we((Mwr,VWe)=>{"use strict";var UWe=ei();VWe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=UWe.isArrayOrTypedArray(r)?UWe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var ZWe=we((Ewr,XWe)=>{"use strict";var WWe=ku(),up=ei(),tYt=rf().BADNUM,T9=hx(),GWe=_c(),rYt=Mu(),iYt=U3(),S9=lc(),nYt=HJ().isSupportedFont,aYt=XJ(),oYt=iv().appendArrayPointValue,sYt=Wf().NEWLINES,lYt=Wf().BR_TAG_ALL;XWe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=S9.hasLines(n),s=S9.hasMarkers(n),u=S9.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=A9("fill"),d=A9("line"),p=A9("circle"),y=A9("symbol"),b={fill:h,line:d,circle:p,symbol:y};if(!i)return b;var v;if((a||o)&&(v=T9.calcTraceToLineCoords(r)),a&&(h.geojson=T9.makePolygon(v),h.layout.visibility="visible",up.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=T9.makeLine(v),d.layout.visibility="visible",up.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var C=uYt(r);p.geojson=C.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":YJ(n.cluster.color,n.cluster.step),"circle-radius":YJ(n.cluster.size,n.cluster.step),"circle-opacity":YJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":HWe(n),"text-size":12}}),up.extendFlat(p.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(y.geojson=fYt(r,t),up.extendFlat(y.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(up.extendFlat(y.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&up.extendFlat(y.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),y.layout["icon-allow-overlap"]=n.marker.allowoverlap,up.extendFlat(y.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,A=aYt(n.textposition,E);up.extendFlat(y.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":HWe(n)}),up.extendFlat(y.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function A9(e){return{type:e,geojson:T9.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function uYt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=up.isArrayOrTypedArray(r.color),a=up.isArrayOrTypedArray(r.size),o=up.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(GWe.hasColorscale(t,"marker")?f=GWe.makeColorScaleFuncFromTrace(r):f=up.identity);var c;a&&(c=iYt(t));var h;o&&(h=function(E){var A=WWe(E)?+up.constrain(E,0,1):0;return u(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),nYt(s)||(s=r);var u=s.split(", ");return u}});var $We=we((kwr,JWe)=>{"use strict";var cYt=ei(),YWe=ZWe(),FS=zx().traceLayerPrefix,om={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function KWe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:FS+t+"-fill",line:FS+t+"-line",circle:FS+t+"-circle",symbol:FS+t+"-symbol",cluster:FS+t+"-cluster",clusterCount:FS+t+"-cluster-count"},this.below=null}var aC=KWe.prototype;aC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&cYt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};aC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};aC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=A[L];i.removeLayer(l.layerIds[x])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var A=om.nonCluster,L=0;L=0;L--){var x=A[L];i.removeLayer(l.layerIds[x]),E||i.removeSource(l.sourceIds[x])}}function p(E){u?c(E):d(E)}function y(E){s?f(E):h(E)}function b(){for(var E=s?om.cluster:om.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};JWe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new KWe(t,n.uid,i,a),s=YWe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var hYt=Vc(),KJ=ei(),dYt=xA(),pYt=KJ.fillText,vYt=rf().BADNUM,mYt=zx().traceLayerPrefix;function yYt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=mYt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function y(S){var m=S.lonlat;if(m[0]===vYt||f&&u.indexOf(S.i+1)===-1)return 1/0;var P=KJ.modHalf(m[0],360),M=m[1],O=s.project([P,M]),F=O.x-a.c2p([p,M]),U=O.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(hYt.getClosest(n,y,e),e.index!==!1){var b=n[e.index],v=b.lonlat,C=[KJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var x={};x[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,x);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=dYt(i,b),e.extraText=QWe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function QWe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&pYt(t,e,l),l.join("
")}eje.exports={hoverPoints:yYt,getExtraText:QWe}});var rje=we((Lwr,tje)=>{"use strict";tje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var nje=we((Pwr,ije)=>{"use strict";var gYt=ei(),_Yt=lc(),xYt=rf().BADNUM;ije.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!_Yt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof JJ=="object"&&typeof $J!="undefined"?$J.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(JJ,(function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",u={};return t.shared(u),t.index(e,u),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],(function(i){"use strict";function a(I,T,D,X){return new(D||(D=Promise))((function(ie,pe){function _e(Et){try{ct(X.next(Et))}catch(Yt){pe(Yt)}}function Xe(Et){try{ct(X.throw(Et))}catch(Yt){pe(Yt)}}function ct(Et){var Yt;Et.done?ie(Et.value):(Yt=Et.value,Yt instanceof D?Yt:new D((function(hr){hr(Yt)}))).then(_e,Xe)}ct((X=X.apply(I,T||[])).next())}))}function o(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}typeof SuppressedError=="function"&&SuppressedError;var s=u;function u(I,T){this.x=I,this.y=T}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(I){return this.clone()._add(I)},sub:function(I){return this.clone()._sub(I)},multByPoint:function(I){return this.clone()._multByPoint(I)},divByPoint:function(I){return this.clone()._divByPoint(I)},mult:function(I){return this.clone()._mult(I)},div:function(I){return this.clone()._div(I)},rotate:function(I){return this.clone()._rotate(I)},rotateAround:function(I,T){return this.clone()._rotateAround(I,T)},matMult:function(I){return this.clone()._matMult(I)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(I){return this.x===I.x&&this.y===I.y},dist:function(I){return Math.sqrt(this.distSqr(I))},distSqr:function(I){var T=I.x-this.x,D=I.y-this.y;return T*T+D*D},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(I){return Math.atan2(this.y-I.y,this.x-I.x)},angleWith:function(I){return this.angleWithSep(I.x,I.y)},angleWithSep:function(I,T){return Math.atan2(this.x*T-this.y*I,this.x*I+this.y*T)},_matMult:function(I){var T=I[2]*this.x+I[3]*this.y;return this.x=I[0]*this.x+I[1]*this.y,this.y=T,this},_add:function(I){return this.x+=I.x,this.y+=I.y,this},_sub:function(I){return this.x-=I.x,this.y-=I.y,this},_mult:function(I){return this.x*=I,this.y*=I,this},_div:function(I){return this.x/=I,this.y/=I,this},_multByPoint:function(I){return this.x*=I.x,this.y*=I.y,this},_divByPoint:function(I){return this.x/=I.x,this.y/=I.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var I=this.y;return this.y=this.x,this.x=-I,this},_rotate:function(I){var T=Math.cos(I),D=Math.sin(I),X=D*this.x+T*this.y;return this.x=T*this.x-D*this.y,this.y=X,this},_rotateAround:function(I,T){var D=Math.cos(I),X=Math.sin(I),ie=T.y+X*(this.x-T.x)+D*(this.y-T.y);return this.x=T.x+D*(this.x-T.x)-X*(this.y-T.y),this.y=ie,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(I){return I instanceof u?I:Array.isArray(I)?new u(I[0],I[1]):I};var l=o(s),f=c;function c(I,T,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*T,this.by=3*(X-T)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=T,this.p2x=D,this.p2y=X}c.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,T){if(T===void 0&&(T=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?_e=D:Xe=D,D=.5*(Xe-_e)+_e;return D},solve:function(I,T){return this.sampleCurveY(this.solveCurveX(I,T))}};var h=o(f);let d,p;function y(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(p==null&&(p=!1,y())){let T=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(T){for(let X=0;X<25;X++){let ie=4*X;T.fillStyle=`rgb(${ie},${ie+1},${ie+2})`,T.fillRect(X%5,Math.floor(X/5),1,1)}let D=T.getImageData(0,0,5,5).data;for(let X=0;X<100;X++)if(X%4!=3&&D[X]!==X){p=!0;break}}}return p||!1}function v(I,T,D,X){let ie=new h(I,T,D,X);return pe=>ie.solve(pe)}let C=v(.25,.1,.25,1);function E(I,T,D){return Math.min(D,Math.max(T,I))}function A(I,T,D){let X=D-T,ie=((I-T)%X+X)%X+T;return ie===T?D:ie}function L(I,...T){for(let D of T)for(let X in D)I[X]=D[X];return I}let x=1;function k(I,T,D){let X={};for(let ie in I)X[ie]=T.call(this,I[ie],ie,I);return X}function S(I,T,D){let X={};for(let ie in I)T.call(this,I[ie],ie,I)&&(X[ie]=I[ie]);return X}function m(I){return Array.isArray(I)?I.map(m):typeof I=="object"&&I?k(I,m):I}let P={};function M(I){P[I]||(typeof console!="undefined"&&console.warn(I),P[I]=!0)}function O(I,T,D){return(D.y-I.y)*(T.x-I.x)>(T.y-I.y)*(D.x-I.x)}function F(I){return typeof WorkerGlobalScope!="undefined"&&I!==void 0&&I instanceof WorkerGlobalScope}let U=null;function G(I){return typeof ImageBitmap!="undefined"&&I instanceof ImageBitmap}let j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function W(I,T,D,X,ie){return a(this,void 0,void 0,(function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let pe=new VideoFrame(I,{timestamp:0});try{let _e=pe==null?void 0:pe.format;if(!_e||!_e.startsWith("BGR")&&!_e.startsWith("RGB"))throw new Error(`Unrecognized format ${_e}`);let Xe=_e.startsWith("BGR"),ct=new Uint8ClampedArray(X*ie*4);if(yield pe.copyTo(ct,(function(Et,Yt,hr,Tr,Rr){let Jr=4*Math.max(-Yt,0),li=(Math.max(0,hr)-hr)*Tr*4+Jr,Gi=4*Tr,fn=Math.max(0,Yt),Za=Math.max(0,hr);return{rect:{x:fn,y:Za,width:Math.min(Et.width,Yt+Tr)-fn,height:Math.min(Et.height,hr+Rr)-Za},layout:[{offset:li,stride:Gi}]}})(I,T,D,X,ie)),Xe)for(let Et=0;EtF(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(I,T){if(/:\/\//.test(I.url)&&!/^https?:|^file:/.test(I.url)){let X=Ce(I.url);if(X)return X(I,T);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,targetMapId:Ee},T)}if(!(/^file:/.test(D=I.url)||/^file:/.test(te())&&!/^\w+:/.test(D))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return(function(X,ie){return a(this,void 0,void 0,(function*(){let pe=new Request(X.url,{method:X.method||"GET",body:X.body,credentials:X.credentials,headers:X.headers,cache:X.cache,referrer:te(),signal:ie.signal});X.type!=="json"||pe.headers.has("Accept")||pe.headers.set("Accept","application/json");let _e=yield fetch(pe);if(!_e.ok){let Et=yield _e.blob();throw new de(_e.status,_e.statusText,X.url,Et)}let Xe;Xe=X.type==="arrayBuffer"||X.type==="image"?_e.arrayBuffer():X.type==="json"?_e.json():_e.text();let ct=yield Xe;if(ie.signal.aborted)throw ae();return{data:ct,cacheControl:_e.headers.get("Cache-Control"),expires:_e.headers.get("Expires")}}))})(I,T);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,mustQueue:!0,targetMapId:Ee},T)}var D;return(function(X,ie){return new Promise(((pe,_e)=>{var Xe;let ct=new XMLHttpRequest;ct.open(X.method||"GET",X.url,!0),X.type!=="arrayBuffer"&&X.type!=="image"||(ct.responseType="arraybuffer");for(let Et in X.headers)ct.setRequestHeader(Et,X.headers[Et]);X.type==="json"&&(ct.responseType="text",!((Xe=X.headers)===null||Xe===void 0)&&Xe.Accept||ct.setRequestHeader("Accept","application/json")),ct.withCredentials=X.credentials==="include",ct.onerror=()=>{_e(new Error(ct.statusText))},ct.onload=()=>{if(!ie.signal.aborted)if((ct.status>=200&&ct.status<300||ct.status===0)&&ct.response!==null){let Et=ct.response;if(X.type==="json")try{Et=JSON.parse(ct.response)}catch(Yt){return void _e(Yt)}pe({data:Et,cacheControl:ct.getResponseHeader("Cache-Control"),expires:ct.getResponseHeader("Expires")})}else{let Et=new Blob([ct.response],{type:ct.getResponseHeader("Content-Type")});_e(new de(ct.status,ct.statusText,X.url,Et))}},ie.signal.addEventListener("abort",(()=>{ct.abort(),_e(ae())})),ct.send(X.body)}))})(I,T)};function Te(I){if(!I||I.indexOf("://")<=0||I.indexOf("data:image/")===0||I.indexOf("blob:")===0)return!0;let T=new URL(I),D=window.location;return T.protocol===D.protocol&&T.host===D.host}function be(I,T,D){D[I]&&D[I].indexOf(T)!==-1||(D[I]=D[I]||[],D[I].push(T))}function He(I,T,D){if(D&&D[I]){let X=D[I].indexOf(T);X!==-1&&D[I].splice(X,1)}}class Ie{constructor(T,D={}){L(this,D),this.type=T}}class ge extends Ie{constructor(T,D={}){super("error",L({error:T},D))}}class Be{on(T,D){return this._listeners=this._listeners||{},be(T,D,this._listeners),this}off(T,D){return He(T,D,this._listeners),He(T,D,this._oneTimeListeners),this}once(T,D){return D?(this._oneTimeListeners=this._oneTimeListeners||{},be(T,D,this._oneTimeListeners),this):new Promise((X=>this.once(T,X)))}fire(T,D){typeof T=="string"&&(T=new Ie(T,D||{}));let X=T.type;if(this.listens(X)){T.target=this;let ie=this._listeners&&this._listeners[X]?this._listeners[X].slice():[];for(let Xe of ie)Xe.call(this,T);let pe=this._oneTimeListeners&&this._oneTimeListeners[X]?this._oneTimeListeners[X].slice():[];for(let Xe of pe)He(X,Xe,this._oneTimeListeners),Xe.call(this,T);let _e=this._eventedParent;_e&&(L(T,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),_e.fire(T))}else T instanceof ge&&console.error(T.error);return this}listens(T){return this._listeners&&this._listeners[T]&&this._listeners[T].length>0||this._oneTimeListeners&&this._oneTimeListeners[T]&&this._oneTimeListeners[T].length>0||this._eventedParent&&this._eventedParent.listens(T)}setEventedParent(T,D){return this._eventedParent=T,this._eventedParentData=D,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let je=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function rt(I,T){let D={};for(let X in I)X!=="ref"&&(D[X]=I[X]);return je.forEach((X=>{X in T&&(D[X]=T[X])})),D}function bt(I,T){if(Array.isArray(I)){if(!Array.isArray(T)||I.length!==T.length)return!1;for(let D=0;D`:I.itemType.kind==="value"?"array":`array<${T}>`}return I.kind}let ze=[lt,We,Ve,et,tt,yr,Lt,xe(jt),vr,Vt,Pe];function De(I,T){if(T.kind==="error")return null;if(I.kind==="array"){if(T.kind==="array"&&(T.N===0&&T.itemType.kind==="value"||!De(I.itemType,T.itemType))&&(typeof I.N!="number"||I.N===T.N))return null}else{if(I.kind===T.kind)return null;if(I.kind==="value"){for(let D of ze)if(!De(D,T))return null}}return`Expected ${Oe(I)} but found ${Oe(T)} instead.`}function ht(I,T){return T.some((D=>D.kind===I.kind))}function st(I,T){return T.some((D=>D==="null"?I===null:D==="array"?Array.isArray(I):D==="object"?I&&!Array.isArray(I)&&typeof I=="object":D===typeof I))}function gt(I,T){return I.kind==="array"&&T.kind==="array"?I.itemType.kind===T.itemType.kind&&typeof I.N=="number":I.kind===T.kind}let xt=.96422,pr=.82521,br=4/29,cr=6/29,Er=3*cr*cr,ii=cr*cr*cr,jr=Math.PI/180,kr=180/Math.PI;function Vr(I){return(I%=360)<0&&(I+=360),I}function Ai([I,T,D,X]){let ie,pe,_e=Ri((.2225045*(I=Bi(I))+.7168786*(T=Bi(T))+.0606169*(D=Bi(D)))/1);I===T&&T===D?ie=pe=_e:(ie=Ri((.4360747*I+.3850649*T+.1430804*D)/xt),pe=Ri((.0139322*I+.0971045*T+.7141733*D)/pr));let Xe=116*_e-16;return[Xe<0?0:Xe,500*(ie-_e),200*(_e-pe),X]}function Bi(I){return I<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Ri(I){return I>ii?Math.pow(I,1/3):I/Er+br}function ln([I,T,D,X]){let ie=(I+16)/116,pe=isNaN(T)?ie:ie+T/500,_e=isNaN(D)?ie:ie-D/200;return ie=1*qr(ie),pe=xt*qr(pe),_e=pr*qr(_e),[hn(3.1338561*pe-1.6168667*ie-.4906146*_e),hn(-.9787684*pe+1.9161415*ie+.033454*_e),hn(.0719453*pe-.2289914*ie+1.4052427*_e),X]}function hn(I){return(I=I<=.00304?12.92*I:1.055*Math.pow(I,1/2.4)-.055)<0?0:I>1?1:I}function qr(I){return I>cr?I*I*I:Er*(I-br)}function _i(I){return parseInt(I.padEnd(2,I),16)/255}function zi(I,T){return Dt(T?I/100:I,0,1)}function Dt(I,T,D){return Math.min(Math.max(T,I),D)}function _t(I){return!I.some(Number.isNaN)}let qt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Nt{constructor(T,D,X,ie=1,pe=!0){this.r=T,this.g=D,this.b=X,this.a=ie,pe||(this.r*=ie,this.g*=ie,this.b*=ie,ie||this.overwriteGetter("rgb",[T,D,X,ie]))}static parse(T){if(T instanceof Nt)return T;if(typeof T!="string")return;let D=(function(X){if((X=X.toLowerCase().trim())==="transparent")return[0,0,0,0];let ie=qt[X];if(ie){let[_e,Xe,ct]=ie;return[_e/255,Xe/255,ct/255,1]}if(X.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(X)){let _e=X.length<6?1:2,Xe=1;return[_i(X.slice(Xe,Xe+=_e)),_i(X.slice(Xe,Xe+=_e)),_i(X.slice(Xe,Xe+=_e)),_i(X.slice(Xe,Xe+_e)||"ff")]}if(X.startsWith("rgb")){let _e=X.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(_e){let[Xe,ct,Et,Yt,hr,Tr,Rr,Jr,li,Gi,fn,Za]=_e,Rn=[Yt||" ",Rr||" ",Gi].join("");if(Rn===" "||Rn===" /"||Rn===",,"||Rn===",,,"){let La=[Et,Tr,li].join(""),So=La==="%%%"?100:La===""?255:0;if(So){let kl=[Dt(+ct/So,0,1),Dt(+hr/So,0,1),Dt(+Jr/So,0,1),fn?zi(+fn,Za):1];if(_t(kl))return kl}}return}}let pe=X.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(pe){let[_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr]=pe,li=[ct||" ",Yt||" ",Tr].join("");if(li===" "||li===" /"||li===",,"||li===",,,"){let Gi=[+Xe,Dt(+Et,0,100),Dt(+hr,0,100),Rr?zi(+Rr,Jr):1];if(_t(Gi))return(function([fn,Za,Rn,La]){function So(kl){let mu=(kl+fn/30)%12,Iu=Za*Math.min(Rn,1-Rn);return Rn-Iu*Math.max(-1,Math.min(mu-3,9-mu,1))}return fn=Vr(fn),Za/=100,Rn/=100,[So(0),So(8),So(4),La]})(Gi)}}})(T);return D?new Nt(...D,!1):void 0}get rgb(){let{r:T,g:D,b:X,a:ie}=this,pe=ie||1/0;return this.overwriteGetter("rgb",[T/pe,D/pe,X/pe,ie])}get hcl(){return this.overwriteGetter("hcl",(function(T){let[D,X,ie,pe]=Ai(T),_e=Math.sqrt(X*X+ie*ie);return[Math.round(1e4*_e)?Vr(Math.atan2(ie,X)*kr):NaN,_e,D,pe]})(this.rgb))}get lab(){return this.overwriteGetter("lab",Ai(this.rgb))}overwriteGetter(T,D){return Object.defineProperty(this,T,{value:D}),D}toString(){let[T,D,X,ie]=this.rgb;return`rgba(${[T,D,X].map((pe=>Math.round(255*pe))).join(",")},${ie})`}}Nt.black=new Nt(0,0,0,1),Nt.white=new Nt(1,1,1,1),Nt.transparent=new Nt(0,0,0,0),Nt.red=new Nt(1,0,0,1);class mr{constructor(T,D,X){this.sensitivity=T?D?"variant":"case":D?"accent":"base",this.locale=X,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(T,D){return this.collator.compare(T,D)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Lr{constructor(T,D,X,ie,pe){this.text=T,this.image=D,this.scale=X,this.fontStack=ie,this.textColor=pe}}class Nr{constructor(T){this.sections=T}static fromString(T){return new Nr([new Lr(T,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some((T=>T.text.length!==0||T.image&&T.image.name.length!==0))}static factory(T){return T instanceof Nr?T:Nr.fromString(T)}toString(){return this.sections.length===0?"":this.sections.map((T=>T.text)).join("")}}class Fr{constructor(T){this.values=T.slice()}static parse(T){if(T instanceof Fr)return T;if(typeof T=="number")return new Fr([T,T,T,T]);if(Array.isArray(T)&&!(T.length<1||T.length>4)){for(let D of T)if(typeof D!="number")return;switch(T.length){case 1:T=[T[0],T[0],T[0],T[0]];break;case 2:T=[T[0],T[1],T[0],T[1]];break;case 3:T=[T[0],T[1],T[2],T[1]]}return new Fr(T)}}toString(){return JSON.stringify(this.values)}}let Hr=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Gr{constructor(T){this.values=T.slice()}static parse(T){if(T instanceof Gr)return T;if(Array.isArray(T)&&!(T.length<1)&&T.length%2==0){for(let D=0;D=0&&I<=255&&typeof T=="number"&&T>=0&&T<=255&&typeof D=="number"&&D>=0&&D<=255?X===void 0||typeof X=="number"&&X>=0&&X<=1?null:`Invalid rgba value [${[I,T,D,X].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof X=="number"?[I,T,D,X]:[I,T,D]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Vi(I){if(I===null||typeof I=="string"||typeof I=="boolean"||typeof I=="number"||I instanceof Nt||I instanceof mr||I instanceof Nr||I instanceof Fr||I instanceof Gr||I instanceof mi)return!0;if(Array.isArray(I)){for(let T of I)if(!Vi(T))return!1;return!0}if(typeof I=="object"){for(let T in I)if(!Vi(I[T]))return!1;return!0}return!1}function ti(I){if(I===null)return lt;if(typeof I=="string")return Ve;if(typeof I=="boolean")return et;if(typeof I=="number")return We;if(I instanceof Nt)return tt;if(I instanceof mr)return or;if(I instanceof Nr)return yr;if(I instanceof Fr)return vr;if(I instanceof Gr)return Pe;if(I instanceof mi)return Vt;if(Array.isArray(I)){let T=I.length,D;for(let X of I){let ie=ti(X);if(D){if(D===ie)continue;D=jt;break}D=ie}return xe(D||jt,T)}return Lt}function Qi(I){let T=typeof I;return I===null?"":T==="string"||T==="number"||T==="boolean"?String(I):I instanceof Nt||I instanceof Nr||I instanceof Fr||I instanceof Gr||I instanceof mi?I.toString():JSON.stringify(I)}class Yr{constructor(T,D){this.type=T,this.value=D}static parse(T,D){if(T.length!==2)return D.error(`'literal' expression requires exactly one argument, but found ${T.length-1} instead.`);if(!Vi(T[1]))return D.error("invalid value");let X=T[1],ie=ti(X),pe=D.expectedType;return ie.kind!=="array"||ie.N!==0||!pe||pe.kind!=="array"||typeof pe.N=="number"&&pe.N!==0||(ie=pe),new Yr(ie,X)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class oi{constructor(T){this.name="ExpressionEvaluationError",this.message=T}toJSON(){return this.message}}let Fi={string:Ve,number:We,boolean:et,object:Lt};class rn{constructor(T,D){this.type=T,this.args=D}static parse(T,D){if(T.length<2)return D.error("Expected at least one argument.");let X,ie=1,pe=T[0];if(pe==="array"){let Xe,ct;if(T.length>2){let Et=T[1];if(typeof Et!="string"||!(Et in Fi)||Et==="object")return D.error('The item type argument of "array" must be one of string, number, boolean',1);Xe=Fi[Et],ie++}else Xe=jt;if(T.length>3){if(T[2]!==null&&(typeof T[2]!="number"||T[2]<0||T[2]!==Math.floor(T[2])))return D.error('The length argument to "array" must be a positive integer literal',2);ct=T[2],ie++}X=xe(Xe,ct)}else{if(!Fi[pe])throw new Error(`Types doesn't contain name = ${pe}`);X=Fi[pe]}let _e=[];for(;ieT.outputDefined()))}}let tn={"to-boolean":et,"to-color":tt,"to-number":We,"to-string":Ve};class Di{constructor(T,D){this.type=T,this.args=D}static parse(T,D){if(T.length<2)return D.error("Expected at least one argument.");let X=T[0];if(!tn[X])throw new Error(`Can't parse ${X} as it is not part of the known types`);if((X==="to-boolean"||X==="to-string")&&T.length!==2)return D.error("Expected one argument.");let ie=tn[X],pe=[];for(let _e=1;_e4?`Invalid rbga value ${JSON.stringify(D)}: expected an array containing either three or four numeric values.`:Ei(D[0],D[1],D[2],D[3]),!X))return new Nt(D[0]/255,D[1]/255,D[2]/255,D[3])}throw new oi(X||`Could not parse color from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"padding":{let D;for(let X of this.args){D=X.evaluate(T);let ie=Fr.parse(D);if(ie)return ie}throw new oi(`Could not parse padding from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"variableAnchorOffsetCollection":{let D;for(let X of this.args){D=X.evaluate(T);let ie=Gr.parse(D);if(ie)return ie}throw new oi(`Could not parse variableAnchorOffsetCollection from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"number":{let D=null;for(let X of this.args){if(D=X.evaluate(T),D===null)return 0;let ie=Number(D);if(!isNaN(ie))return ie}throw new oi(`Could not convert ${JSON.stringify(D)} to number.`)}case"formatted":return Nr.fromString(Qi(this.args[0].evaluate(T)));case"resolvedImage":return mi.fromString(Qi(this.args[0].evaluate(T)));default:return Qi(this.args[0].evaluate(T))}}eachChild(T){this.args.forEach(T)}outputDefined(){return this.args.every((T=>T.outputDefined()))}}let Ii=["Unknown","Point","LineString","Polygon"];class xn{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ii[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(T){let D=this._parseColorCache[T];return D||(D=this._parseColorCache[T]=Nt.parse(T)),D}}class xi{constructor(T,D,X=[],ie,pe=new vt,_e=[]){this.registry=T,this.path=X,this.key=X.map((Xe=>`[${Xe}]`)).join(""),this.scope=pe,this.errors=_e,this.expectedType=ie,this._isConstant=D}parse(T,D,X,ie,pe={}){return D?this.concat(D,X,ie)._parse(T,pe):this._parse(T,pe)}_parse(T,D){function X(ie,pe,_e){return _e==="assert"?new rn(pe,[ie]):_e==="coerce"?new Di(pe,[ie]):ie}if(T!==null&&typeof T!="string"&&typeof T!="boolean"&&typeof T!="number"||(T=["literal",T]),Array.isArray(T)){if(T.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let ie=T[0];if(typeof ie!="string")return this.error(`Expression name must be a string, but found ${typeof ie} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let pe=this.registry[ie];if(pe){let _e=pe.parse(T,this);if(!_e)return null;if(this.expectedType){let Xe=this.expectedType,ct=_e.type;if(Xe.kind!=="string"&&Xe.kind!=="number"&&Xe.kind!=="boolean"&&Xe.kind!=="object"&&Xe.kind!=="array"||ct.kind!=="value")if(Xe.kind!=="color"&&Xe.kind!=="formatted"&&Xe.kind!=="resolvedImage"||ct.kind!=="value"&&ct.kind!=="string")if(Xe.kind!=="padding"||ct.kind!=="value"&&ct.kind!=="number"&&ct.kind!=="array")if(Xe.kind!=="variableAnchorOffsetCollection"||ct.kind!=="value"&&ct.kind!=="array"){if(this.checkSubtype(Xe,ct))return null}else _e=X(_e,Xe,D.typeAnnotation||"coerce");else _e=X(_e,Xe,D.typeAnnotation||"coerce");else _e=X(_e,Xe,D.typeAnnotation||"coerce");else _e=X(_e,Xe,D.typeAnnotation||"assert")}if(!(_e instanceof Yr)&&_e.type.kind!=="resolvedImage"&&this._isConstant(_e)){let Xe=new xn;try{_e=new Yr(_e.type,_e.evaluate(Xe))}catch(ct){return this.error(ct.message),null}}return _e}return this.error(`Unknown expression "${ie}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(T===void 0?"'undefined' value invalid. Use null instead.":typeof T=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof T} instead.`)}concat(T,D,X){let ie=typeof T=="number"?this.path.concat(T):this.path,pe=X?this.scope.concat(X):this.scope;return new xi(this.registry,this._isConstant,ie,D||null,pe,this.errors)}error(T,...D){let X=`${this.key}${D.map((ie=>`[${ie}]`)).join("")}`;this.errors.push(new Ne(X,T))}checkSubtype(T,D){let X=De(T,D);return X&&this.error(X),X}}class Xr{constructor(T,D){this.type=D.type,this.bindings=[].concat(T),this.result=D}evaluate(T){return this.result.evaluate(T)}eachChild(T){for(let D of this.bindings)T(D[1]);T(this.result)}static parse(T,D){if(T.length<4)return D.error(`Expected at least 3 arguments, but found ${T.length-1} instead.`);let X=[];for(let pe=1;pe=X.length)throw new oi(`Array index out of bounds: ${D} > ${X.length-1}.`);if(D!==Math.floor(D))throw new oi(`Array index must be an integer, but found ${D} instead.`);return X[D]}eachChild(T){T(this.index),T(this.input)}outputDefined(){return!1}}class fr{constructor(T,D){this.type=et,this.needle=T,this.haystack=D}static parse(T,D){if(T.length!==3)return D.error(`Expected 2 arguments, but found ${T.length-1} instead.`);let X=D.parse(T[1],1,jt),ie=D.parse(T[2],2,jt);return X&&ie?ht(X.type,[et,Ve,We,lt,jt])?new fr(X,ie):D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`):null}evaluate(T){let D=this.needle.evaluate(T),X=this.haystack.evaluate(T);if(!X)return!1;if(!st(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);if(!st(X,["string","array"]))throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`);return X.indexOf(D)>=0}eachChild(T){T(this.needle),T(this.haystack)}outputDefined(){return!0}}class gr{constructor(T,D,X){this.type=We,this.needle=T,this.haystack=D,this.fromIndex=X}static parse(T,D){if(T.length<=2||T.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${T.length-1} instead.`);let X=D.parse(T[1],1,jt),ie=D.parse(T[2],2,jt);if(!X||!ie)return null;if(!ht(X.type,[et,Ve,We,lt,jt]))return D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`);if(T.length===4){let pe=D.parse(T[3],3,We);return pe?new gr(X,ie,pe):null}return new gr(X,ie)}evaluate(T){let D=this.needle.evaluate(T),X=this.haystack.evaluate(T);if(!st(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);let ie;if(this.fromIndex&&(ie=this.fromIndex.evaluate(T)),st(X,["string"])){let pe=X.indexOf(D,ie);return pe===-1?-1:[...X.slice(0,pe)].length}if(st(X,["array"]))return X.indexOf(D,ie);throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`)}eachChild(T){T(this.needle),T(this.haystack),this.fromIndex&&T(this.fromIndex)}outputDefined(){return!1}}class Zr{constructor(T,D,X,ie,pe,_e){this.inputType=T,this.type=D,this.input=X,this.cases=ie,this.outputs=pe,this.otherwise=_e}static parse(T,D){if(T.length<5)return D.error(`Expected at least 4 arguments, but found only ${T.length-1}.`);if(T.length%2!=1)return D.error("Expected an even number of arguments.");let X,ie;D.expectedType&&D.expectedType.kind!=="value"&&(ie=D.expectedType);let pe={},_e=[];for(let Et=2;EtNumber.MAX_SAFE_INTEGER)return Tr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Jr=="number"&&Math.floor(Jr)!==Jr)return Tr.error("Numeric branch labels must be integer values.");if(X){if(Tr.checkSubtype(X,ti(Jr)))return null}else X=ti(Jr);if(pe[String(Jr)]!==void 0)return Tr.error("Branch labels must be unique.");pe[String(Jr)]=_e.length}let Rr=D.parse(hr,Et,ie);if(!Rr)return null;ie=ie||Rr.type,_e.push(Rr)}let Xe=D.parse(T[1],1,jt);if(!Xe)return null;let ct=D.parse(T[T.length-1],T.length-1,ie);return ct?Xe.type.kind!=="value"&&D.concat(1).checkSubtype(X,Xe.type)?null:new Zr(X,ie,Xe,pe,_e,ct):null}evaluate(T){let D=this.input.evaluate(T);return(ti(D)===this.inputType&&this.outputs[this.cases[D]]||this.otherwise).evaluate(T)}eachChild(T){T(this.input),this.outputs.forEach(T),T(this.otherwise)}outputDefined(){return this.outputs.every((T=>T.outputDefined()))&&this.otherwise.outputDefined()}}class wi{constructor(T,D,X){this.type=T,this.branches=D,this.otherwise=X}static parse(T,D){if(T.length<4)return D.error(`Expected at least 3 arguments, but found only ${T.length-1}.`);if(T.length%2!=0)return D.error("Expected an odd number of arguments.");let X;D.expectedType&&D.expectedType.kind!=="value"&&(X=D.expectedType);let ie=[];for(let _e=1;_eD.outputDefined()))&&this.otherwise.outputDefined()}}class $i{constructor(T,D,X,ie){this.type=T,this.input=D,this.beginIndex=X,this.endIndex=ie}static parse(T,D){if(T.length<=2||T.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${T.length-1} instead.`);let X=D.parse(T[1],1,jt),ie=D.parse(T[2],2,We);if(!X||!ie)return null;if(!ht(X.type,[xe(jt),Ve,jt]))return D.error(`Expected first argument to be of type array or string, but found ${Oe(X.type)} instead`);if(T.length===4){let pe=D.parse(T[3],3,We);return pe?new $i(X.type,X,ie,pe):null}return new $i(X.type,X,ie)}evaluate(T){let D=this.input.evaluate(T),X=this.beginIndex.evaluate(T),ie;if(this.endIndex&&(ie=this.endIndex.evaluate(T)),st(D,["string"]))return[...D].slice(X,ie).join("");if(st(D,["array"]))return D.slice(X,ie);throw new oi(`Expected first argument to be of type array or string, but found ${Oe(ti(D))} instead.`)}eachChild(T){T(this.input),T(this.beginIndex),this.endIndex&&T(this.endIndex)}outputDefined(){return!1}}function ni(I,T){let D=I.length-1,X,ie,pe=0,_e=D,Xe=0;for(;pe<=_e;)if(Xe=Math.floor((pe+_e)/2),X=I[Xe],ie=I[Xe+1],X<=T){if(Xe===D||TT))throw new oi("Input is not a number.");_e=Xe-1}return 0}class Xi{constructor(T,D,X){this.type=T,this.input=D,this.labels=[],this.outputs=[];for(let[ie,pe]of X)this.labels.push(ie),this.outputs.push(pe)}static parse(T,D){if(T.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${T.length-1}.`);if((T.length-1)%2!=0)return D.error("Expected an even number of arguments.");let X=D.parse(T[1],1,We);if(!X)return null;let ie=[],pe=null;D.expectedType&&D.expectedType.kind!=="value"&&(pe=D.expectedType);for(let _e=1;_e=Xe)return D.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Et);let hr=D.parse(ct,Yt,pe);if(!hr)return null;pe=pe||hr.type,ie.push([Xe,hr])}return new Xi(pe,X,ie)}evaluate(T){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(T);let ie=this.input.evaluate(T);if(ie<=D[0])return X[0].evaluate(T);let pe=D.length;return ie>=D[pe-1]?X[pe-1].evaluate(T):X[ni(D,ie)].evaluate(T)}eachChild(T){T(this.input);for(let D of this.outputs)T(D)}outputDefined(){return this.outputs.every((T=>T.outputDefined()))}}function aa(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}var Mn=Un;function Un(I,T,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*T,this.by=3*(X-T)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=T,this.p2x=D,this.p2y=X}Un.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,T){if(T===void 0&&(T=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?_e=D:Xe=D,D=.5*(Xe-_e)+_e;return D},solve:function(I,T){return this.sampleCurveY(this.solveCurveX(I,T))}};var Ga=aa(Mn);function ma(I,T,D){return I+D*(T-I)}function oa(I,T,D){return I.map(((X,ie)=>ma(X,T[ie],D)))}let ka={number:ma,color:function(I,T,D,X="rgb"){switch(X){case"rgb":{let[ie,pe,_e,Xe]=oa(I.rgb,T.rgb,D);return new Nt(ie,pe,_e,Xe,!1)}case"hcl":{let[ie,pe,_e,Xe]=I.hcl,[ct,Et,Yt,hr]=T.hcl,Tr,Rr;if(isNaN(ie)||isNaN(ct))isNaN(ie)?isNaN(ct)?Tr=NaN:(Tr=ct,_e!==1&&_e!==0||(Rr=Et)):(Tr=ie,Yt!==1&&Yt!==0||(Rr=pe));else{let Za=ct-ie;ct>ie&&Za>180?Za-=360:ct180&&(Za+=360),Tr=ie+D*Za}let[Jr,li,Gi,fn]=(function([Za,Rn,La,So]){return Za=isNaN(Za)?0:Za*jr,ln([La,Math.cos(Za)*Rn,Math.sin(Za)*Rn,So])})([Tr,Rr!=null?Rr:ma(pe,Et,D),ma(_e,Yt,D),ma(Xe,hr,D)]);return new Nt(Jr,li,Gi,fn,!1)}case"lab":{let[ie,pe,_e,Xe]=ln(oa(I.lab,T.lab,D));return new Nt(ie,pe,_e,Xe,!1)}}},array:oa,padding:function(I,T,D){return new Fr(oa(I.values,T.values,D))},variableAnchorOffsetCollection:function(I,T,D){let X=I.values,ie=T.values;if(X.length!==ie.length)throw new oi(`Cannot interpolate values of different length. from: ${I.toString()}, to: ${T.toString()}`);let pe=[];for(let _e=0;_etypeof Yt!="number"||Yt<0||Yt>1)))return D.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ie={name:"cubic-bezier",controlPoints:Et}}}if(T.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${T.length-1}.`);if((T.length-1)%2!=0)return D.error("Expected an even number of arguments.");if(pe=D.parse(pe,2,We),!pe)return null;let Xe=[],ct=null;X==="interpolate-hcl"||X==="interpolate-lab"?ct=tt:D.expectedType&&D.expectedType.kind!=="value"&&(ct=D.expectedType);for(let Et=0;Et<_e.length;Et+=2){let Yt=_e[Et],hr=_e[Et+1],Tr=Et+3,Rr=Et+4;if(typeof Yt!="number")return D.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',Tr);if(Xe.length&&Xe[Xe.length-1][0]>=Yt)return D.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Tr);let Jr=D.parse(hr,Rr,ct);if(!Jr)return null;ct=ct||Jr.type,Xe.push([Yt,Jr])}return gt(ct,We)||gt(ct,tt)||gt(ct,vr)||gt(ct,Pe)||gt(ct,xe(We))?new so(ct,X,ie,pe,Xe):D.error(`Type ${Oe(ct)} is not interpolatable.`)}evaluate(T){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(T);let ie=this.input.evaluate(T);if(ie<=D[0])return X[0].evaluate(T);let pe=D.length;if(ie>=D[pe-1])return X[pe-1].evaluate(T);let _e=ni(D,ie),Xe=so.interpolationFactor(this.interpolation,ie,D[_e],D[_e+1]),ct=X[_e].evaluate(T),Et=X[_e+1].evaluate(T);switch(this.operator){case"interpolate":return ka[this.type.kind](ct,Et,Xe);case"interpolate-hcl":return ka.color(ct,Et,Xe,"hcl");case"interpolate-lab":return ka.color(ct,Et,Xe,"lab")}}eachChild(T){T(this.input);for(let D of this.outputs)T(D)}outputDefined(){return this.outputs.every((T=>T.outputDefined()))}}function Kr(I,T,D,X){let ie=X-D,pe=I-D;return ie===0?0:T===1?pe/ie:(Math.pow(T,pe)-1)/(Math.pow(T,ie)-1)}class Ia{constructor(T,D){this.type=T,this.args=D}static parse(T,D){if(T.length<2)return D.error("Expectected at least one argument.");let X=null,ie=D.expectedType;ie&&ie.kind!=="value"&&(X=ie);let pe=[];for(let Xe of T.slice(1)){let ct=D.parse(Xe,1+pe.length,X,void 0,{typeAnnotation:"omit"});if(!ct)return null;X=X||ct.type,pe.push(ct)}if(!X)throw new Error("No output type");let _e=ie&&pe.some((Xe=>De(ie,Xe.type)));return new Ia(_e?jt:X,pe)}evaluate(T){let D,X=null,ie=0;for(let pe of this.args)if(ie++,X=pe.evaluate(T),X&&X instanceof mi&&!X.available&&(D||(D=X.name),X=null,ie===this.args.length&&(X=D)),X!==null)break;return X}eachChild(T){this.args.forEach(T)}outputDefined(){return this.args.every((T=>T.outputDefined()))}}function Yo(I,T){return I==="=="||I==="!="?T.kind==="boolean"||T.kind==="string"||T.kind==="number"||T.kind==="null"||T.kind==="value":T.kind==="string"||T.kind==="number"||T.kind==="value"}function fa(I,T,D,X){return X.compare(T,D)===0}function kn(I,T,D){let X=I!=="=="&&I!=="!=";return class aje{constructor(pe,_e,Xe){this.type=et,this.lhs=pe,this.rhs=_e,this.collator=Xe,this.hasUntypedArgument=pe.type.kind==="value"||_e.type.kind==="value"}static parse(pe,_e){if(pe.length!==3&&pe.length!==4)return _e.error("Expected two or three arguments.");let Xe=pe[0],ct=_e.parse(pe[1],1,jt);if(!ct)return null;if(!Yo(Xe,ct.type))return _e.concat(1).error(`"${Xe}" comparisons are not supported for type '${Oe(ct.type)}'.`);let Et=_e.parse(pe[2],2,jt);if(!Et)return null;if(!Yo(Xe,Et.type))return _e.concat(2).error(`"${Xe}" comparisons are not supported for type '${Oe(Et.type)}'.`);if(ct.type.kind!==Et.type.kind&&ct.type.kind!=="value"&&Et.type.kind!=="value")return _e.error(`Cannot compare types '${Oe(ct.type)}' and '${Oe(Et.type)}'.`);X&&(ct.type.kind==="value"&&Et.type.kind!=="value"?ct=new rn(Et.type,[ct]):ct.type.kind!=="value"&&Et.type.kind==="value"&&(Et=new rn(ct.type,[Et])));let Yt=null;if(pe.length===4){if(ct.type.kind!=="string"&&Et.type.kind!=="string"&&ct.type.kind!=="value"&&Et.type.kind!=="value")return _e.error("Cannot use collator to compare non-string types.");if(Yt=_e.parse(pe[3],3,or),!Yt)return null}return new aje(ct,Et,Yt)}evaluate(pe){let _e=this.lhs.evaluate(pe),Xe=this.rhs.evaluate(pe);if(X&&this.hasUntypedArgument){let ct=ti(_e),Et=ti(Xe);if(ct.kind!==Et.kind||ct.kind!=="string"&&ct.kind!=="number")throw new oi(`Expected arguments for "${I}" to be (string, string) or (number, number), but found (${ct.kind}, ${Et.kind}) instead.`)}if(this.collator&&!X&&this.hasUntypedArgument){let ct=ti(_e),Et=ti(Xe);if(ct.kind!=="string"||Et.kind!=="string")return T(pe,_e,Xe)}return this.collator?D(pe,_e,Xe,this.collator.evaluate(pe)):T(pe,_e,Xe)}eachChild(pe){pe(this.lhs),pe(this.rhs),this.collator&&pe(this.collator)}outputDefined(){return!0}}}let Ta=kn("==",(function(I,T,D){return T===D}),fa),ys=kn("!=",(function(I,T,D){return T!==D}),(function(I,T,D,X){return!fa(0,T,D,X)})),uo=kn("<",(function(I,T,D){return T",(function(I,T,D){return T>D}),(function(I,T,D,X){return X.compare(T,D)>0})),$a=kn("<=",(function(I,T,D){return T<=D}),(function(I,T,D,X){return X.compare(T,D)<=0})),fo=kn(">=",(function(I,T,D){return T>=D}),(function(I,T,D,X){return X.compare(T,D)>=0}));class mn{constructor(T,D,X){this.type=or,this.locale=X,this.caseSensitive=T,this.diacriticSensitive=D}static parse(T,D){if(T.length!==2)return D.error("Expected one argument.");let X=T[1];if(typeof X!="object"||Array.isArray(X))return D.error("Collator options argument must be an object.");let ie=D.parse(X["case-sensitive"]!==void 0&&X["case-sensitive"],1,et);if(!ie)return null;let pe=D.parse(X["diacritic-sensitive"]!==void 0&&X["diacritic-sensitive"],1,et);if(!pe)return null;let _e=null;return X.locale&&(_e=D.parse(X.locale,1,Ve),!_e)?null:new mn(ie,pe,_e)}evaluate(T){return new mr(this.caseSensitive.evaluate(T),this.diacriticSensitive.evaluate(T),this.locale?this.locale.evaluate(T):null)}eachChild(T){T(this.caseSensitive),T(this.diacriticSensitive),this.locale&&T(this.locale)}outputDefined(){return!1}}class ra{constructor(T,D,X,ie,pe){this.type=Ve,this.number=T,this.locale=D,this.currency=X,this.minFractionDigits=ie,this.maxFractionDigits=pe}static parse(T,D){if(T.length!==3)return D.error("Expected two arguments.");let X=D.parse(T[1],1,We);if(!X)return null;let ie=T[2];if(typeof ie!="object"||Array.isArray(ie))return D.error("NumberFormat options argument must be an object.");let pe=null;if(ie.locale&&(pe=D.parse(ie.locale,1,Ve),!pe))return null;let _e=null;if(ie.currency&&(_e=D.parse(ie.currency,1,Ve),!_e))return null;let Xe=null;if(ie["min-fraction-digits"]&&(Xe=D.parse(ie["min-fraction-digits"],1,We),!Xe))return null;let ct=null;return ie["max-fraction-digits"]&&(ct=D.parse(ie["max-fraction-digits"],1,We),!ct)?null:new ra(X,pe,_e,Xe,ct)}evaluate(T){return new Intl.NumberFormat(this.locale?this.locale.evaluate(T):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(T):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(T):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(T):void 0}).format(this.number.evaluate(T))}eachChild(T){T(this.number),this.locale&&T(this.locale),this.currency&&T(this.currency),this.minFractionDigits&&T(this.minFractionDigits),this.maxFractionDigits&&T(this.maxFractionDigits)}outputDefined(){return!1}}class wa{constructor(T){this.type=yr,this.sections=T}static parse(T,D){if(T.length<2)return D.error("Expected at least one argument.");let X=T[1];if(!Array.isArray(X)&&typeof X=="object")return D.error("First argument must be an image or text section.");let ie=[],pe=!1;for(let _e=1;_e<=T.length-1;++_e){let Xe=T[_e];if(pe&&typeof Xe=="object"&&!Array.isArray(Xe)){pe=!1;let ct=null;if(Xe["font-scale"]&&(ct=D.parse(Xe["font-scale"],1,We),!ct))return null;let Et=null;if(Xe["text-font"]&&(Et=D.parse(Xe["text-font"],1,xe(Ve)),!Et))return null;let Yt=null;if(Xe["text-color"]&&(Yt=D.parse(Xe["text-color"],1,tt),!Yt))return null;let hr=ie[ie.length-1];hr.scale=ct,hr.font=Et,hr.textColor=Yt}else{let ct=D.parse(T[_e],1,jt);if(!ct)return null;let Et=ct.type.kind;if(Et!=="string"&&Et!=="value"&&Et!=="null"&&Et!=="resolvedImage")return D.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");pe=!0,ie.push({content:ct,scale:null,font:null,textColor:null})}}return new wa(ie)}evaluate(T){return new Nr(this.sections.map((D=>{let X=D.content.evaluate(T);return ti(X)===Vt?new Lr("",X,null,null,null):new Lr(Qi(X),null,D.scale?D.scale.evaluate(T):null,D.font?D.font.evaluate(T).join(","):null,D.textColor?D.textColor.evaluate(T):null)})))}eachChild(T){for(let D of this.sections)T(D.content),D.scale&&T(D.scale),D.font&&T(D.font),D.textColor&&T(D.textColor)}outputDefined(){return!1}}class ws{constructor(T){this.type=Vt,this.input=T}static parse(T,D){if(T.length!==2)return D.error("Expected two arguments.");let X=D.parse(T[1],1,Ve);return X?new ws(X):D.error("No image name provided.")}evaluate(T){let D=this.input.evaluate(T),X=mi.fromString(D);return X&&T.availableImages&&(X.available=T.availableImages.indexOf(D)>-1),X}eachChild(T){T(this.input)}outputDefined(){return!1}}class Co{constructor(T){this.type=We,this.input=T}static parse(T,D){if(T.length!==2)return D.error(`Expected 1 argument, but found ${T.length-1} instead.`);let X=D.parse(T[1],1);return X?X.type.kind!=="array"&&X.type.kind!=="string"&&X.type.kind!=="value"?D.error(`Expected argument of type string or array, but found ${Oe(X.type)} instead.`):new Co(X):null}evaluate(T){let D=this.input.evaluate(T);if(typeof D=="string")return[...D].length;if(Array.isArray(D))return D.length;throw new oi(`Expected value to be of type string or array, but found ${Oe(ti(D))} instead.`)}eachChild(T){T(this.input)}outputDefined(){return!1}}let Po=8192;function Wi(I,T){let D=(180+I[0])/360,X=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I[1]*Math.PI/360)))/360,ie=Math.pow(2,T.z);return[Math.round(D*ie*Po),Math.round(X*ie*Po)]}function gn(I,T){let D=Math.pow(2,T.z);return[(ie=(I[0]/Po+T.x)/D,360*ie-180),(X=(I[1]/Po+T.y)/D,360/Math.PI*Math.atan(Math.exp((180-360*X)*Math.PI/180))-90)];var X,ie}function Ps(I,T){I[0]=Math.min(I[0],T[0]),I[1]=Math.min(I[1],T[1]),I[2]=Math.max(I[2],T[0]),I[3]=Math.max(I[3],T[1])}function Ha(I,T){return!(I[0]<=T[0]||I[2]>=T[2]||I[1]<=T[1]||I[3]>=T[3])}function Sn(I,T,D){let X=I[0]-T[0],ie=I[1]-T[1],pe=I[0]-D[0],_e=I[1]-D[1];return X*_e-pe*ie==0&&X*pe<=0&&ie*_e<=0}function ao(I,T,D,X){return(ie=[X[0]-D[0],X[1]-D[1]])[0]*(pe=[T[0]-I[0],T[1]-I[1]])[1]-ie[1]*pe[0]!=0&&!(!Qa(I,T,D,X)||!Qa(D,X,I,T));var ie,pe}function Oa(I,T,D){for(let X of D)for(let ie=0;ie(ie=I)[1]!=(_e=Xe[ct+1])[1]>ie[1]&&ie[0]<(_e[0]-pe[0])*(ie[1]-pe[1])/(_e[1]-pe[1])+pe[0]&&(X=!X)}var ie,pe,_e;return X}function Qo(I,T){for(let D of T)if(Ko(I,D))return!0;return!1}function Hi(I,T){for(let D of I)if(!Ko(D,T))return!1;for(let D=0;D0&&Xe<0||_e<0&&Xe>0}function vn(I,T,D){let X=[];for(let ie=0;ieD[2]){let ie=.5*X,pe=I[0]-D[0]>ie?-X:D[0]-I[0]>ie?X:0;pe===0&&(pe=I[0]-D[2]>ie?-X:D[2]-I[0]>ie?X:0),I[0]+=pe}Ps(T,I)}function vo(I,T,D,X){let ie=Math.pow(2,X.z)*Po,pe=[X.x*Po,X.y*Po],_e=[];for(let Xe of I)for(let ct of Xe){let Et=[ct.x+pe[0],ct.y+pe[1]];la(Et,T,D,ie),_e.push(Et)}return _e}function As(I,T,D,X){let ie=Math.pow(2,X.z)*Po,pe=[X.x*Po,X.y*Po],_e=[];for(let ct of I){let Et=[];for(let Yt of ct){let hr=[Yt.x+pe[0],Yt.y+pe[1]];Ps(T,hr),Et.push(hr)}_e.push(Et)}if(T[2]-T[0]<=ie/2){(Xe=T)[0]=Xe[1]=1/0,Xe[2]=Xe[3]=-1/0;for(let ct of _e)for(let Et of ct)la(Et,T,D,ie)}var Xe;return _e}class ps{constructor(T,D){this.type=et,this.geojson=T,this.geometries=D}static parse(T,D){if(T.length!==2)return D.error(`'within' expression requires exactly one argument, but found ${T.length-1} instead.`);if(Vi(T[1])){let X=T[1];if(X.type==="FeatureCollection"){let ie=[];for(let pe of X.features){let{type:_e,coordinates:Xe}=pe.geometry;_e==="Polygon"&&ie.push(Xe),_e==="MultiPolygon"&&ie.push(...Xe)}if(ie.length)return new ps(X,{type:"MultiPolygon",coordinates:ie})}else if(X.type==="Feature"){let ie=X.geometry.type;if(ie==="Polygon"||ie==="MultiPolygon")return new ps(X,X.geometry)}else if(X.type==="Polygon"||X.type==="MultiPolygon")return new ps(X,X)}return D.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(T){if(T.geometry()!=null&&T.canonicalID()!=null){if(T.geometryType()==="Point")return(function(D,X){let ie=[1/0,1/0,-1/0,-1/0],pe=[1/0,1/0,-1/0,-1/0],_e=D.canonicalID();if(X.type==="Polygon"){let Xe=vn(X.coordinates,pe,_e),ct=vo(D.geometry(),ie,pe,_e);if(!Ha(ie,pe))return!1;for(let Et of ct)if(!Ko(Et,Xe))return!1}if(X.type==="MultiPolygon"){let Xe=da(X.coordinates,pe,_e),ct=vo(D.geometry(),ie,pe,_e);if(!Ha(ie,pe))return!1;for(let Et of ct)if(!Qo(Et,Xe))return!1}return!0})(T,this.geometries);if(T.geometryType()==="LineString")return(function(D,X){let ie=[1/0,1/0,-1/0,-1/0],pe=[1/0,1/0,-1/0,-1/0],_e=D.canonicalID();if(X.type==="Polygon"){let Xe=vn(X.coordinates,pe,_e),ct=As(D.geometry(),ie,pe,_e);if(!Ha(ie,pe))return!1;for(let Et of ct)if(!Hi(Et,Xe))return!1}if(X.type==="MultiPolygon"){let Xe=da(X.coordinates,pe,_e),ct=As(D.geometry(),ie,pe,_e);if(!Ha(ie,pe))return!1;for(let Et of ct)if(!Sa(Et,Xe))return!1}return!0})(T,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let co=class{constructor(I=[],T=((D,X)=>DX?1:0)){if(this.data=I,this.length=this.data.length,this.compare=T,this.length>0)for(let D=(this.length>>1)-1;D>=0;D--)this._down(D)}push(I){this.data.push(I),this._up(this.length++)}pop(){if(this.length===0)return;let I=this.data[0],T=this.data.pop();return--this.length>0&&(this.data[0]=T,this._down(0)),I}peek(){return this.data[0]}_up(I){let{data:T,compare:D}=this,X=T[I];for(;I>0;){let ie=I-1>>1,pe=T[ie];if(D(X,pe)>=0)break;T[I]=pe,I=ie}T[I]=X}_down(I){let{data:T,compare:D}=this,X=this.length>>1,ie=T[I];for(;I=0)break;T[I]=T[pe],I=pe}T[I]=ie}};function mo(I,T,D,X,ie){No(I,T,D,X||I.length-1,ie||Go)}function No(I,T,D,X,ie){for(;X>D;){if(X-D>600){var pe=X-D+1,_e=T-D+1,Xe=Math.log(pe),ct=.5*Math.exp(2*Xe/3),Et=.5*Math.sqrt(Xe*ct*(pe-ct)/pe)*(_e-pe/2<0?-1:1);No(I,T,Math.max(D,Math.floor(T-_e*ct/pe+Et)),Math.min(X,Math.floor(T+(pe-_e)*ct/pe+Et)),ie)}var Yt=I[T],hr=D,Tr=X;for(jn(I,D,T),ie(I[X],Yt)>0&&jn(I,D,X);hr0;)Tr--}ie(I[D],Yt)===0?jn(I,D,Tr):jn(I,++Tr,X),Tr<=T&&(D=Tr+1),T<=Tr&&(X=Tr-1)}}function jn(I,T,D){var X=I[T];I[T]=I[D],I[D]=X}function Go(I,T){return IT?1:0}function Ys(I,T){if(I.length<=1)return[I];let D=[],X,ie;for(let pe of I){let _e=Ns(pe);_e!==0&&(pe.area=Math.abs(_e),ie===void 0&&(ie=_e<0),ie===_e<0?(X&&D.push(X),X=[pe]):X.push(pe))}if(X&&D.push(X),T>1)for(let pe=0;pe1?(Et=T[ct+1][0],Yt=T[ct+1][1]):Rr>0&&(Et+=hr/this.kx*Rr,Yt+=Tr/this.ky*Rr)),hr=this.wrap(D[0]-Et)*this.kx,Tr=(D[1]-Yt)*this.ky;let Jr=hr*hr+Tr*Tr;Jr180;)T-=360;return T}}function _n(I,T){return T[0]-I[0]}function Vn(I){return I[1]-I[0]+1}function wo(I,T){return I[1]>=I[0]&&I[1]I[1])return[null,null];let D=Vn(I);if(T){if(D===2)return[I,null];let ie=Math.floor(D/2);return[[I[0],I[0]+ie],[I[0]+ie,I[1]]]}if(D===1)return[I,null];let X=Math.floor(D/2)-1;return[[I[0],I[0]+X],[I[0]+X+1,I[1]]]}function Xn(I,T){if(!wo(T,I.length))return[1/0,1/0,-1/0,-1/0];let D=[1/0,1/0,-1/0,-1/0];for(let X=T[0];X<=T[1];++X)Ps(D,I[X]);return D}function sn(I){let T=[1/0,1/0,-1/0,-1/0];for(let D of I)for(let X of D)Ps(T,X);return T}function $n(I){return I[0]!==-1/0&&I[1]!==-1/0&&I[2]!==1/0&&I[3]!==1/0}function Ka(I,T,D){if(!$n(I)||!$n(T))return NaN;let X=0,ie=0;return I[2]T[2]&&(X=I[0]-T[2]),I[1]>T[3]&&(ie=I[1]-T[3]),I[3]=X)return X;if(Ha(ie,pe)){if(es(I,T))return 0}else if(es(T,I))return 0;let _e=1/0;for(let Xe of I)for(let ct=0,Et=Xe.length,Yt=Et-1;ct0;){let ct=_e.pop();if(ct[0]>=pe)continue;let Et=ct[1],Yt=T?50:100;if(Vn(Et)<=Yt){if(!wo(Et,I.length))return NaN;if(T){let hr=sa(I,Et,D,X);if(isNaN(hr)||hr===0)return hr;pe=Math.min(pe,hr)}else for(let hr=Et[0];hr<=Et[1];++hr){let Tr=eo(I[hr],D,X);if(pe=Math.min(pe,Tr),pe===0)return 0}}else{let hr=Ra(Et,T);en(_e,pe,X,I,Xe,hr[0]),en(_e,pe,X,I,Xe,hr[1])}}return pe}function yo(I,T,D,X,ie,pe=1/0){let _e=Math.min(pe,ie.distance(I[0],D[0]));if(_e===0)return _e;let Xe=new co([[0,[0,I.length-1],[0,D.length-1]]],_n);for(;Xe.length>0;){let ct=Xe.pop();if(ct[0]>=_e)continue;let Et=ct[1],Yt=ct[2],hr=T?50:100,Tr=X?50:100;if(Vn(Et)<=hr&&Vn(Yt)<=Tr){if(!wo(Et,I.length)&&wo(Yt,D.length))return NaN;let Rr;if(T&&X)Rr=Ja(I,Et,D,Yt,ie),_e=Math.min(_e,Rr);else if(T&&!X){let Jr=I.slice(Et[0],Et[1]+1);for(let li=Yt[0];li<=Yt[1];++li)if(Rr=qn(D[li],Jr,ie),_e=Math.min(_e,Rr),_e===0)return _e}else if(!T&&X){let Jr=D.slice(Yt[0],Yt[1]+1);for(let li=Et[0];li<=Et[1];++li)if(Rr=qn(I[li],Jr,ie),_e=Math.min(_e,Rr),_e===0)return _e}else Rr=lo(I,Et,D,Yt,ie),_e=Math.min(_e,Rr)}else{let Rr=Ra(Et,T),Jr=Ra(Yt,X);Pa(Xe,_e,ie,I,D,Rr[0],Jr[0]),Pa(Xe,_e,ie,I,D,Rr[0],Jr[1]),Pa(Xe,_e,ie,I,D,Rr[1],Jr[0]),Pa(Xe,_e,ie,I,D,Rr[1],Jr[1])}}return _e}function Jo(I){return I.type==="MultiPolygon"?I.coordinates.map((T=>({type:"Polygon",coordinates:T}))):I.type==="MultiLineString"?I.coordinates.map((T=>({type:"LineString",coordinates:T}))):I.type==="MultiPoint"?I.coordinates.map((T=>({type:"Point",coordinates:T}))):[I]}class Ao{constructor(T,D){this.type=We,this.geojson=T,this.geometries=D}static parse(T,D){if(T.length!==2)return D.error(`'distance' expression requires exactly one argument, but found ${T.length-1} instead.`);if(Vi(T[1])){let X=T[1];if(X.type==="FeatureCollection")return new Ao(X,X.features.map((ie=>Jo(ie.geometry))).flat());if(X.type==="Feature")return new Ao(X,Jo(X.geometry));if("type"in X&&"coordinates"in X)return new Ao(X,Jo(X))}return D.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(T){if(T.geometry()!=null&&T.canonicalID()!=null){if(T.geometryType()==="Point")return(function(D,X){let ie=D.geometry(),pe=ie.flat().map((ct=>gn([ct.x,ct.y],D.canonical)));if(ie.length===0)return NaN;let _e=new Ya(pe[0][1]),Xe=1/0;for(let ct of X){switch(ct.type){case"Point":Xe=Math.min(Xe,yo(pe,!1,[ct.coordinates],!1,_e,Xe));break;case"LineString":Xe=Math.min(Xe,yo(pe,!1,ct.coordinates,!0,_e,Xe));break;case"Polygon":Xe=Math.min(Xe,to(pe,!1,ct.coordinates,_e,Xe))}if(Xe===0)return Xe}return Xe})(T,this.geometries);if(T.geometryType()==="LineString")return(function(D,X){let ie=D.geometry(),pe=ie.flat().map((ct=>gn([ct.x,ct.y],D.canonical)));if(ie.length===0)return NaN;let _e=new Ya(pe[0][1]),Xe=1/0;for(let ct of X){switch(ct.type){case"Point":Xe=Math.min(Xe,yo(pe,!0,[ct.coordinates],!1,_e,Xe));break;case"LineString":Xe=Math.min(Xe,yo(pe,!0,ct.coordinates,!0,_e,Xe));break;case"Polygon":Xe=Math.min(Xe,to(pe,!0,ct.coordinates,_e,Xe))}if(Xe===0)return Xe}return Xe})(T,this.geometries);if(T.geometryType()==="Polygon")return(function(D,X){let ie=D.geometry();if(ie.length===0||ie[0].length===0)return NaN;let pe=Ys(ie,0).map((ct=>ct.map((Et=>Et.map((Yt=>gn([Yt.x,Yt.y],D.canonical))))))),_e=new Ya(pe[0][0][0][1]),Xe=1/0;for(let ct of X)for(let Et of pe){switch(ct.type){case"Point":Xe=Math.min(Xe,to([ct.coordinates],!1,Et,_e,Xe));break;case"LineString":Xe=Math.min(Xe,to(ct.coordinates,!0,Et,_e,Xe));break;case"Polygon":Xe=Math.min(Xe,Na(Et,ct.coordinates,_e,Xe))}if(Xe===0)return Xe}return Xe})(T,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Dn={"==":Ta,"!=":ys,">":ls,"<":uo,">=":fo,"<=":$a,array:rn,at:$t,boolean:rn,case:wi,coalesce:Ia,collator:mn,format:wa,image:ws,in:fr,"index-of":gr,interpolate:so,"interpolate-hcl":so,"interpolate-lab":so,length:Co,let:Xr,literal:Yr,match:Zr,number:rn,"number-format":ra,object:rn,slice:$i,step:Xi,string:rn,"to-boolean":Di,"to-color":Di,"to-number":Di,"to-string":Di,var:dt,within:ps,distance:Ao};class _a{constructor(T,D,X,ie){this.name=T,this.type=D,this._evaluate=X,this.args=ie}evaluate(T){return this._evaluate(T,this.args)}eachChild(T){this.args.forEach(T)}outputDefined(){return!1}static parse(T,D){let X=T[0],ie=_a.definitions[X];if(!ie)return D.error(`Unknown expression "${X}". If you wanted a literal array, use ["literal", [...]].`,0);let pe=Array.isArray(ie)?ie[0]:ie.type,_e=Array.isArray(ie)?[[ie[1],ie[2]]]:ie.overloads,Xe=_e.filter((([Et])=>!Array.isArray(Et)||Et.length===T.length-1)),ct=null;for(let[Et,Yt]of Xe){ct=new xi(D.registry,Ho,D.path,null,D.scope);let hr=[],Tr=!1;for(let Rr=1;Rr{return Tr=hr,Array.isArray(Tr)?`(${Tr.map(Oe).join(", ")})`:`(${Oe(Tr.type)}...)`;var Tr})).join(" | "),Yt=[];for(let hr=1;hr{D=T?D&&Ho(X):D&&X instanceof Yr})),!!D&&Wa(I)&&ts(I,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Wa(I){if(I instanceof _a&&(I.name==="get"&&I.args.length===1||I.name==="feature-state"||I.name==="has"&&I.args.length===1||I.name==="properties"||I.name==="geometry-type"||I.name==="id"||/^filter-/.test(I.name))||I instanceof ps||I instanceof Ao)return!1;let T=!0;return I.eachChild((D=>{T&&!Wa(D)&&(T=!1)})),T}function To(I){if(I instanceof _a&&I.name==="feature-state")return!1;let T=!0;return I.eachChild((D=>{T&&!To(D)&&(T=!1)})),T}function ts(I,T){if(I instanceof _a&&T.indexOf(I.name)>=0)return!1;let D=!0;return I.eachChild((X=>{D&&!ts(X,T)&&(D=!1)})),D}function Wo(I){return{result:"success",value:I}}function qa(I){return{result:"error",value:I}}function on(I){return I["property-type"]==="data-driven"||I["property-type"]==="cross-faded-data-driven"}function Oo(I){return!!I.expression&&I.expression.parameters.indexOf("zoom")>-1}function ko(I){return!!I.expression&&I.expression.interpolated}function oo(I){return I instanceof Number?"number":I instanceof String?"string":I instanceof Boolean?"boolean":Array.isArray(I)?"array":I===null?"null":typeof I}function za(I){return typeof I=="object"&&I!==null&&!Array.isArray(I)}function ea(I){return I}function rs(I,T){let D=T.type==="color",X=I.stops&&typeof I.stops[0][0]=="object",ie=X||!(X||I.property!==void 0),pe=I.type||(ko(T)?"exponential":"interval");if(D||T.type==="padding"){let Yt=D?Nt.parse:Fr.parse;(I=oe({},I)).stops&&(I.stops=I.stops.map((hr=>[hr[0],Yt(hr[1])]))),I.default=Yt(I.default?I.default:T.default)}if(I.colorSpace&&(_e=I.colorSpace)!=="rgb"&&_e!=="hcl"&&_e!=="lab")throw new Error(`Unknown color space: "${I.colorSpace}"`);var _e;let Xe,ct,Et;if(pe==="exponential")Xe=fl;else if(pe==="interval")Xe=Ds;else if(pe==="categorical"){Xe=us,ct=Object.create(null);for(let Yt of I.stops)ct[Yt[0]]=Yt[1];Et=typeof I.stops[0][0]}else{if(pe!=="identity")throw new Error(`Unknown function type "${pe}"`);Xe=as}if(X){let Yt={},hr=[];for(let Jr=0;JrJr[0])),evaluate:({zoom:Jr},li)=>fl({stops:Tr,base:I.base},T,Jr).evaluate(Jr,li)}}if(ie){let Yt=pe==="exponential"?{name:"exponential",base:I.base!==void 0?I.base:1}:null;return{kind:"camera",interpolationType:Yt,interpolationFactor:so.interpolationFactor.bind(void 0,Yt),zoomStops:I.stops.map((hr=>hr[0])),evaluate:({zoom:hr})=>Xe(I,T,hr,ct,Et)}}return{kind:"source",evaluate(Yt,hr){let Tr=hr&&hr.properties?hr.properties[I.property]:void 0;return Tr===void 0?$s(I.default,T.default):Xe(I,T,Tr,ct,Et)}}}function $s(I,T,D){return I!==void 0?I:T!==void 0?T:D!==void 0?D:void 0}function us(I,T,D,X,ie){return $s(typeof D===ie?X[D]:void 0,I.default,T.default)}function Ds(I,T,D){if(oo(D)!=="number")return $s(I.default,T.default);let X=I.stops.length;if(X===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[X-1][0])return I.stops[X-1][1];let ie=ni(I.stops.map((pe=>pe[0])),D);return I.stops[ie][1]}function fl(I,T,D){let X=I.base!==void 0?I.base:1;if(oo(D)!=="number")return $s(I.default,T.default);let ie=I.stops.length;if(ie===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[ie-1][0])return I.stops[ie-1][1];let pe=ni(I.stops.map((Yt=>Yt[0])),D),_e=(function(Yt,hr,Tr,Rr){let Jr=Rr-Tr,li=Yt-Tr;return Jr===0?0:hr===1?li/Jr:(Math.pow(hr,li)-1)/(Math.pow(hr,Jr)-1)})(D,X,I.stops[pe][0],I.stops[pe+1][0]),Xe=I.stops[pe][1],ct=I.stops[pe+1][1],Et=ka[T.type]||ea;return typeof Xe.evaluate=="function"?{evaluate(...Yt){let hr=Xe.evaluate.apply(void 0,Yt),Tr=ct.evaluate.apply(void 0,Yt);if(hr!==void 0&&Tr!==void 0)return Et(hr,Tr,_e,I.colorSpace)}}:Et(Xe,ct,_e,I.colorSpace)}function as(I,T,D){switch(T.type){case"color":D=Nt.parse(D);break;case"formatted":D=Nr.fromString(D.toString());break;case"resolvedImage":D=mi.fromString(D.toString());break;case"padding":D=Fr.parse(D);break;default:oo(D)===T.type||T.type==="enum"&&T.values[D]||(D=void 0)}return $s(D,I.default,T.default)}_a.register(Dn,{error:[{kind:"error"},[Ve],(I,[T])=>{throw new oi(T.evaluate(I))}],typeof:[Ve,[jt],(I,[T])=>Oe(ti(T.evaluate(I)))],"to-rgba":[xe(We,4),[tt],(I,[T])=>{let[D,X,ie,pe]=T.evaluate(I).rgb;return[255*D,255*X,255*ie,pe]}],rgb:[tt,[We,We,We],Ws],rgba:[tt,[We,We,We,We],Ws],has:{type:et,overloads:[[[Ve],(I,[T])=>Ca(T.evaluate(I),I.properties())],[[Ve,Lt],(I,[T,D])=>Ca(T.evaluate(I),D.evaluate(I))]]},get:{type:jt,overloads:[[[Ve],(I,[T])=>Es(T.evaluate(I),I.properties())],[[Ve,Lt],(I,[T,D])=>Es(T.evaluate(I),D.evaluate(I))]]},"feature-state":[jt,[Ve],(I,[T])=>Es(T.evaluate(I),I.featureState||{})],properties:[Lt,[],I=>I.properties()],"geometry-type":[Ve,[],I=>I.geometryType()],id:[jt,[],I=>I.id()],zoom:[We,[],I=>I.globals.zoom],"heatmap-density":[We,[],I=>I.globals.heatmapDensity||0],"line-progress":[We,[],I=>I.globals.lineProgress||0],accumulated:[jt,[],I=>I.globals.accumulated===void 0?null:I.globals.accumulated],"+":[We,Ts(We),(I,T)=>{let D=0;for(let X of T)D+=X.evaluate(I);return D}],"*":[We,Ts(We),(I,T)=>{let D=1;for(let X of T)D*=X.evaluate(I);return D}],"-":{type:We,overloads:[[[We,We],(I,[T,D])=>T.evaluate(I)-D.evaluate(I)],[[We],(I,[T])=>-T.evaluate(I)]]},"/":[We,[We,We],(I,[T,D])=>T.evaluate(I)/D.evaluate(I)],"%":[We,[We,We],(I,[T,D])=>T.evaluate(I)%D.evaluate(I)],ln2:[We,[],()=>Math.LN2],pi:[We,[],()=>Math.PI],e:[We,[],()=>Math.E],"^":[We,[We,We],(I,[T,D])=>Math.pow(T.evaluate(I),D.evaluate(I))],sqrt:[We,[We],(I,[T])=>Math.sqrt(T.evaluate(I))],log10:[We,[We],(I,[T])=>Math.log(T.evaluate(I))/Math.LN10],ln:[We,[We],(I,[T])=>Math.log(T.evaluate(I))],log2:[We,[We],(I,[T])=>Math.log(T.evaluate(I))/Math.LN2],sin:[We,[We],(I,[T])=>Math.sin(T.evaluate(I))],cos:[We,[We],(I,[T])=>Math.cos(T.evaluate(I))],tan:[We,[We],(I,[T])=>Math.tan(T.evaluate(I))],asin:[We,[We],(I,[T])=>Math.asin(T.evaluate(I))],acos:[We,[We],(I,[T])=>Math.acos(T.evaluate(I))],atan:[We,[We],(I,[T])=>Math.atan(T.evaluate(I))],min:[We,Ts(We),(I,T)=>Math.min(...T.map((D=>D.evaluate(I))))],max:[We,Ts(We),(I,T)=>Math.max(...T.map((D=>D.evaluate(I))))],abs:[We,[We],(I,[T])=>Math.abs(T.evaluate(I))],round:[We,[We],(I,[T])=>{let D=T.evaluate(I);return D<0?-Math.round(-D):Math.round(D)}],floor:[We,[We],(I,[T])=>Math.floor(T.evaluate(I))],ceil:[We,[We],(I,[T])=>Math.ceil(T.evaluate(I))],"filter-==":[et,[Ve,jt],(I,[T,D])=>I.properties()[T.value]===D.value],"filter-id-==":[et,[jt],(I,[T])=>I.id()===T.value],"filter-type-==":[et,[Ve],(I,[T])=>I.geometryType()===T.value],"filter-<":[et,[Ve,jt],(I,[T,D])=>{let X=I.properties()[T.value],ie=D.value;return typeof X==typeof ie&&X{let D=I.id(),X=T.value;return typeof D==typeof X&&D":[et,[Ve,jt],(I,[T,D])=>{let X=I.properties()[T.value],ie=D.value;return typeof X==typeof ie&&X>ie}],"filter-id->":[et,[jt],(I,[T])=>{let D=I.id(),X=T.value;return typeof D==typeof X&&D>X}],"filter-<=":[et,[Ve,jt],(I,[T,D])=>{let X=I.properties()[T.value],ie=D.value;return typeof X==typeof ie&&X<=ie}],"filter-id-<=":[et,[jt],(I,[T])=>{let D=I.id(),X=T.value;return typeof D==typeof X&&D<=X}],"filter->=":[et,[Ve,jt],(I,[T,D])=>{let X=I.properties()[T.value],ie=D.value;return typeof X==typeof ie&&X>=ie}],"filter-id->=":[et,[jt],(I,[T])=>{let D=I.id(),X=T.value;return typeof D==typeof X&&D>=X}],"filter-has":[et,[jt],(I,[T])=>T.value in I.properties()],"filter-has-id":[et,[],I=>I.id()!==null&&I.id()!==void 0],"filter-type-in":[et,[xe(Ve)],(I,[T])=>T.value.indexOf(I.geometryType())>=0],"filter-id-in":[et,[xe(jt)],(I,[T])=>T.value.indexOf(I.id())>=0],"filter-in-small":[et,[Ve,xe(jt)],(I,[T,D])=>D.value.indexOf(I.properties()[T.value])>=0],"filter-in-large":[et,[Ve,xe(jt)],(I,[T,D])=>(function(X,ie,pe,_e){for(;pe<=_e;){let Xe=pe+_e>>1;if(ie[Xe]===X)return!0;ie[Xe]>X?_e=Xe-1:pe=Xe+1}return!1})(I.properties()[T.value],D.value,0,D.value.length-1)],all:{type:et,overloads:[[[et,et],(I,[T,D])=>T.evaluate(I)&&D.evaluate(I)],[Ts(et),(I,T)=>{for(let D of T)if(!D.evaluate(I))return!1;return!0}]]},any:{type:et,overloads:[[[et,et],(I,[T,D])=>T.evaluate(I)||D.evaluate(I)],[Ts(et),(I,T)=>{for(let D of T)if(D.evaluate(I))return!0;return!1}]]},"!":[et,[et],(I,[T])=>!T.evaluate(I)],"is-supported-script":[et,[Ve],(I,[T])=>{let D=I.globals&&I.globals.isSupportedScript;return!D||D(T.evaluate(I))}],upcase:[Ve,[Ve],(I,[T])=>T.evaluate(I).toUpperCase()],downcase:[Ve,[Ve],(I,[T])=>T.evaluate(I).toLowerCase()],concat:[Ve,Ts(jt),(I,T)=>T.map((D=>Qi(D.evaluate(I)))).join("")],"resolved-locale":[Ve,[or],(I,[T])=>T.evaluate(I).resolvedLocale()]});class Ma{constructor(T,D){var X;this.expression=T,this._warningHistory={},this._evaluator=new xn,this._defaultValue=D?(X=D).type==="color"&&za(X.default)?new Nt(0,0,0,0):X.type==="color"?Nt.parse(X.default)||null:X.type==="padding"?Fr.parse(X.default)||null:X.type==="variableAnchorOffsetCollection"?Gr.parse(X.default)||null:X.default===void 0?null:X.default:null,this._enumValues=D&&D.type==="enum"?D.values:null}evaluateWithoutErrorHandling(T,D,X,ie,pe,_e){return this._evaluator.globals=T,this._evaluator.feature=D,this._evaluator.featureState=X,this._evaluator.canonical=ie,this._evaluator.availableImages=pe||null,this._evaluator.formattedSection=_e,this.expression.evaluate(this._evaluator)}evaluate(T,D,X,ie,pe,_e){this._evaluator.globals=T,this._evaluator.feature=D||null,this._evaluator.featureState=X||null,this._evaluator.canonical=ie,this._evaluator.availableImages=pe||null,this._evaluator.formattedSection=_e||null;try{let Xe=this.expression.evaluate(this._evaluator);if(Xe==null||typeof Xe=="number"&&Xe!=Xe)return this._defaultValue;if(this._enumValues&&!(Xe in this._enumValues))throw new oi(`Expected value to be one of ${Object.keys(this._enumValues).map((ct=>JSON.stringify(ct))).join(", ")}, but found ${JSON.stringify(Xe)} instead.`);return Xe}catch(Xe){return this._warningHistory[Xe.message]||(this._warningHistory[Xe.message]=!0,typeof console!="undefined"&&console.warn(Xe.message)),this._defaultValue}}}function Qs(I){return Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&I[0]in Dn}function ho(I,T){let D=new xi(Dn,Ho,[],T?(function(ie){let pe={color:tt,string:Ve,number:We,enum:Ve,boolean:et,formatted:yr,padding:vr,resolvedImage:Vt,variableAnchorOffsetCollection:Pe};return ie.type==="array"?xe(pe[ie.value]||jt,ie.length):pe[ie.type]})(T):void 0),X=D.parse(I,void 0,void 0,void 0,T&&T.type==="string"?{typeAnnotation:"coerce"}:void 0);return X?Wo(new Ma(X,T)):qa(D.errors)}class gs{constructor(T,D){this.kind=T,this._styleExpression=D,this.isStateDependent=T!=="constant"&&!To(D.expression)}evaluateWithoutErrorHandling(T,D,X,ie,pe,_e){return this._styleExpression.evaluateWithoutErrorHandling(T,D,X,ie,pe,_e)}evaluate(T,D,X,ie,pe,_e){return this._styleExpression.evaluate(T,D,X,ie,pe,_e)}}class Vo{constructor(T,D,X,ie){this.kind=T,this.zoomStops=X,this._styleExpression=D,this.isStateDependent=T!=="camera"&&!To(D.expression),this.interpolationType=ie}evaluateWithoutErrorHandling(T,D,X,ie,pe,_e){return this._styleExpression.evaluateWithoutErrorHandling(T,D,X,ie,pe,_e)}evaluate(T,D,X,ie,pe,_e){return this._styleExpression.evaluate(T,D,X,ie,pe,_e)}interpolationFactor(T,D,X){return this.interpolationType?so.interpolationFactor(this.interpolationType,T,D,X):0}}function Do(I,T){let D=ho(I,T);if(D.result==="error")return D;let X=D.value.expression,ie=Wa(X);if(!ie&&!on(T))return qa([new Ne("","data expressions not supported")]);let pe=ts(X,["zoom"]);if(!pe&&!Oo(T))return qa([new Ne("","zoom expressions not supported")]);let _e=xs(X);return _e||pe?_e instanceof Ne?qa([_e]):_e instanceof so&&!ko(T)?qa([new Ne("",'"interpolate" expressions cannot be used with this property')]):Wo(_e?new Vo(ie?"camera":"composite",D.value,_e.labels,_e instanceof so?_e.interpolation:void 0):new gs(ie?"constant":"source",D.value)):qa([new Ne("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Lo{constructor(T,D){this._parameters=T,this._specification=D,oe(this,rs(this._parameters,this._specification))}static deserialize(T){return new Lo(T._parameters,T._specification)}static serialize(T){return{_parameters:T._parameters,_specification:T._specification}}}function xs(I){let T=null;if(I instanceof Xr)T=xs(I.result);else if(I instanceof Ia){for(let D of I.args)if(T=xs(D),T)break}else(I instanceof Xi||I instanceof so)&&I.input instanceof _a&&I.input.name==="zoom"&&(T=I);return T instanceof Ne||I.eachChild((D=>{let X=xs(D);X instanceof Ne?T=X:!T&&X?T=new Ne("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):T&&X&&T!==X&&(T=new Ne("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),T}function ks(I){if(I===!0||I===!1)return!0;if(!Array.isArray(I)||I.length===0)return!1;switch(I[0]){case"has":return I.length>=2&&I[1]!=="$id"&&I[1]!=="$type";case"in":return I.length>=3&&(typeof I[1]!="string"||Array.isArray(I[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return I.length!==3||Array.isArray(I[1])||Array.isArray(I[2]);case"any":case"all":for(let T of I.slice(1))if(!ks(T)&&typeof T!="boolean")return!1;return!0;default:return!0}}let Ea={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Jn(I){if(I==null)return{filter:()=>!0,needGeometry:!1};ks(I)||(I=Gs(I));let T=ho(I,Ea);if(T.result==="error")throw new Error(T.value.map((D=>`${D.key}: ${D.message}`)).join(", "));return{filter:(D,X,ie)=>T.value.evaluate(D,X,{},ie),needGeometry:rl(I)}}function Bo(I,T){return IT?1:0}function rl(I){if(!Array.isArray(I))return!1;if(I[0]==="within"||I[0]==="distance")return!0;for(let T=1;T"||T==="<="||T===">="?bs(I[1],I[2],T):T==="any"?(D=I.slice(1),["any"].concat(D.map(Gs))):T==="all"?["all"].concat(I.slice(1).map(Gs)):T==="none"?["all"].concat(I.slice(1).map(Gs).map(Aa)):T==="in"?zs(I[1],I.slice(2)):T==="!in"?Aa(zs(I[1],I.slice(2))):T==="has"?$o(I[1]):T!=="!has"||Aa($o(I[1]));var D}function bs(I,T,D){switch(I){case"$type":return[`filter-type-${D}`,T];case"$id":return[`filter-id-${D}`,T];default:return[`filter-${D}`,I,T]}}function zs(I,T){if(T.length===0)return!1;switch(I){case"$type":return["filter-type-in",["literal",T]];case"$id":return["filter-id-in",["literal",T]];default:return T.length>200&&!T.some((D=>typeof D!=typeof T[0]))?["filter-in-large",I,["literal",T.sort(Bo)]]:["filter-in-small",I,["literal",T]]}}function $o(I){switch(I){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",I]}}function Aa(I){return["!",I]}function os(I){let T=typeof I;if(T==="number"||T==="boolean"||T==="string"||I==null)return JSON.stringify(I);if(Array.isArray(I)){let ie="[";for(let pe of I)ie+=`${os(pe)},`;return`${ie}]`}let D=Object.keys(I).sort(),X="{";for(let ie=0;ieX.maximum?[new Me(T,D,`${D} is greater than the maximum value ${X.maximum}`)]:[]}function io(I){let T=I.valueSpec,D=po(I.value.type),X,ie,pe,_e={},Xe=D!=="categorical"&&I.value.property===void 0,ct=!Xe,Et=oo(I.value.stops)==="array"&&oo(I.value.stops[0])==="array"&&oo(I.value.stops[0][0])==="object",Yt=ss({key:I.key,value:I.value,valueSpec:I.styleSpec.function,validateSpec:I.validateSpec,style:I.style,styleSpec:I.styleSpec,objectElementValidators:{stops:function(Rr){if(D==="identity")return[new Me(Rr.key,Rr.value,'identity function may not have a "stops" property')];let Jr=[],li=Rr.value;return Jr=Jr.concat(qo({key:Rr.key,value:li,valueSpec:Rr.valueSpec,validateSpec:Rr.validateSpec,style:Rr.style,styleSpec:Rr.styleSpec,arrayElementValidator:hr})),oo(li)==="array"&&li.length===0&&Jr.push(new Me(Rr.key,li,"array must have at least one stop")),Jr},default:function(Rr){return Rr.validateSpec({key:Rr.key,value:Rr.value,valueSpec:T,validateSpec:Rr.validateSpec,style:Rr.style,styleSpec:Rr.styleSpec})}}});return D==="identity"&&Xe&&Yt.push(new Me(I.key,I.value,'missing required property "property"')),D==="identity"||I.value.stops||Yt.push(new Me(I.key,I.value,'missing required property "stops"')),D==="exponential"&&I.valueSpec.expression&&!ko(I.valueSpec)&&Yt.push(new Me(I.key,I.value,"exponential functions not supported")),I.styleSpec.$version>=8&&(ct&&!on(I.valueSpec)?Yt.push(new Me(I.key,I.value,"property functions not supported")):Xe&&!Oo(I.valueSpec)&&Yt.push(new Me(I.key,I.value,"zoom functions not supported"))),D!=="categorical"&&!Et||I.value.property!==void 0||Yt.push(new Me(I.key,I.value,'"property" property is required')),Yt;function hr(Rr){let Jr=[],li=Rr.value,Gi=Rr.key;if(oo(li)!=="array")return[new Me(Gi,li,`array expected, ${oo(li)} found`)];if(li.length!==2)return[new Me(Gi,li,`array length 2 expected, length ${li.length} found`)];if(Et){if(oo(li[0])!=="object")return[new Me(Gi,li,`object expected, ${oo(li[0])} found`)];if(li[0].zoom===void 0)return[new Me(Gi,li,"object stop key must have zoom")];if(li[0].value===void 0)return[new Me(Gi,li,"object stop key must have value")];if(pe&&pe>po(li[0].zoom))return[new Me(Gi,li[0].zoom,"stop zoom values must appear in ascending order")];po(li[0].zoom)!==pe&&(pe=po(li[0].zoom),ie=void 0,_e={}),Jr=Jr.concat(ss({key:`${Gi}[0]`,value:li[0],valueSpec:{zoom:{}},validateSpec:Rr.validateSpec,style:Rr.style,styleSpec:Rr.styleSpec,objectElementValidators:{zoom:zo,value:Tr}}))}else Jr=Jr.concat(Tr({key:`${Gi}[0]`,value:li[0],valueSpec:{},validateSpec:Rr.validateSpec,style:Rr.style,styleSpec:Rr.styleSpec},li));return Qs(go(li[1]))?Jr.concat([new Me(`${Gi}[1]`,li[1],"expressions are not allowed in function stops.")]):Jr.concat(Rr.validateSpec({key:`${Gi}[1]`,value:li[1],valueSpec:T,validateSpec:Rr.validateSpec,style:Rr.style,styleSpec:Rr.styleSpec}))}function Tr(Rr,Jr){let li=oo(Rr.value),Gi=po(Rr.value),fn=Rr.value!==null?Rr.value:Jr;if(X){if(li!==X)return[new Me(Rr.key,fn,`${li} stop domain type must match previous stop domain type ${X}`)]}else X=li;if(li!=="number"&&li!=="string"&&li!=="boolean")return[new Me(Rr.key,fn,"stop domain value must be a number, string, or boolean")];if(li!=="number"&&D!=="categorical"){let Za=`number expected, ${li} found`;return on(T)&&D===void 0&&(Za+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Me(Rr.key,fn,Za)]}return D!=="categorical"||li!=="number"||isFinite(Gi)&&Math.floor(Gi)===Gi?D!=="categorical"&&li==="number"&&ie!==void 0&&Ginew Me(`${I.key}${X.key}`,I.value,X.message)));let D=T.value.expression||T.value._styleExpression.expression;if(I.expressionContext==="property"&&I.propertyKey==="text-font"&&!D.outputDefined())return[new Me(I.key,I.value,`Invalid data expression for "${I.propertyKey}". Output values must be contained as literals within the expression.`)];if(I.expressionContext==="property"&&I.propertyType==="layout"&&!To(D))return[new Me(I.key,I.value,'"feature-state" data expressions are not supported with layout properties.')];if(I.expressionContext==="filter"&&!To(D))return[new Me(I.key,I.value,'"feature-state" data expressions are not supported with filters.')];if(I.expressionContext&&I.expressionContext.indexOf("cluster")===0){if(!ts(D,["zoom","feature-state"]))return[new Me(I.key,I.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(I.expressionContext==="cluster-initial"&&!Wa(D))return[new Me(I.key,I.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Da(I){let T=I.key,D=I.value,X=I.valueSpec,ie=[];return Array.isArray(X.values)?X.values.indexOf(po(D))===-1&&ie.push(new Me(T,D,`expected one of [${X.values.join(", ")}], ${JSON.stringify(D)} found`)):Object.keys(X.values).indexOf(po(D))===-1&&ie.push(new Me(T,D,`expected one of [${Object.keys(X.values).join(", ")}], ${JSON.stringify(D)} found`)),ie}function vs(I){return ks(go(I.value))?Io(oe({},I,{expressionContext:"filter",valueSpec:{value:"boolean"}})):fs(I)}function fs(I){let T=I.value,D=I.key;if(oo(T)!=="array")return[new Me(D,T,`array expected, ${oo(T)} found`)];let X=I.styleSpec,ie,pe=[];if(T.length<1)return[new Me(D,T,"filter array must have at least 1 element")];switch(pe=pe.concat(Da({key:`${D}[0]`,value:T[0],valueSpec:X.filter_operator,style:I.style,styleSpec:I.styleSpec})),po(T[0])){case"<":case"<=":case">":case">=":T.length>=2&&po(T[1])==="$type"&&pe.push(new Me(D,T,`"$type" cannot be use with operator "${T[0]}"`));case"==":case"!=":T.length!==3&&pe.push(new Me(D,T,`filter array for operator "${T[0]}" must have 3 elements`));case"in":case"!in":T.length>=2&&(ie=oo(T[1]),ie!=="string"&&pe.push(new Me(`${D}[1]`,T[1],`string expected, ${ie} found`)));for(let _e=2;_e{Et in D&&T.push(new Me(X,D[Et],`"${Et}" is prohibited for ref layers`))})),ie.layers.forEach((Et=>{po(Et.id)===Xe&&(ct=Et)})),ct?ct.ref?T.push(new Me(X,D.ref,"ref cannot reference another ref layer")):_e=po(ct.type):T.push(new Me(X,D.ref,`ref layer "${Xe}" not found`))}else if(_e!=="background")if(D.source){let ct=ie.sources&&ie.sources[D.source],Et=ct&&po(ct.type);ct?Et==="vector"&&_e==="raster"?T.push(new Me(X,D.source,`layer "${D.id}" requires a raster source`)):Et!=="raster-dem"&&_e==="hillshade"?T.push(new Me(X,D.source,`layer "${D.id}" requires a raster-dem source`)):Et==="raster"&&_e!=="raster"?T.push(new Me(X,D.source,`layer "${D.id}" requires a vector source`)):Et!=="vector"||D["source-layer"]?Et==="raster-dem"&&_e!=="hillshade"?T.push(new Me(X,D.source,"raster-dem source can only be used with layer type 'hillshade'.")):_e!=="line"||!D.paint||!D.paint["line-gradient"]||Et==="geojson"&&ct.lineMetrics||T.push(new Me(X,D,`layer "${D.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):T.push(new Me(X,D,`layer "${D.id}" must specify a "source-layer"`)):T.push(new Me(X,D.source,`source "${D.source}" not found`))}else T.push(new Me(X,D,'missing required property "source"'));return T=T.concat(ss({key:X,value:D,valueSpec:pe.layer,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,objectElementValidators:{"*":()=>[],type:()=>I.validateSpec({key:`${X}.type`,value:D.type,valueSpec:pe.layer.type,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,object:D,objectKey:"type"}),filter:vs,layout:ct=>ss({layer:D,key:ct.key,value:ct.value,style:ct.style,styleSpec:ct.styleSpec,validateSpec:ct.validateSpec,objectElementValidators:{"*":Et=>Hs(oe({layerType:_e},Et))}}),paint:ct=>ss({layer:D,key:ct.key,value:ct.value,style:ct.style,styleSpec:ct.styleSpec,validateSpec:ct.validateSpec,objectElementValidators:{"*":Et=>el(oe({layerType:_e},Et))}})}})),T}function tl(I){let T=I.value,D=I.key,X=oo(T);return X!=="string"?[new Me(D,T,`string expected, ${X} found`)]:[]}let Fs={promoteId:function({key:I,value:T}){if(oo(T)==="string")return tl({key:I,value:T});{let D=[];for(let X in T)D.push(...tl({key:`${I}.${X}`,value:T[X]}));return D}}};function hl(I){let T=I.value,D=I.key,X=I.styleSpec,ie=I.style,pe=I.validateSpec;if(!T.type)return[new Me(D,T,'"type" is required')];let _e=po(T.type),Xe;switch(_e){case"vector":case"raster":return Xe=ss({key:D,value:T,valueSpec:X[`source_${_e.replace("-","_")}`],style:I.style,styleSpec:X,objectElementValidators:Fs,validateSpec:pe}),Xe;case"raster-dem":return Xe=(function(ct){var Et;let Yt=(Et=ct.sourceName)!==null&&Et!==void 0?Et:"",hr=ct.value,Tr=ct.styleSpec,Rr=Tr.source_raster_dem,Jr=ct.style,li=[],Gi=oo(hr);if(hr===void 0)return li;if(Gi!=="object")return li.push(new Me("source_raster_dem",hr,`object expected, ${Gi} found`)),li;let fn=po(hr.encoding)==="custom",Za=["redFactor","greenFactor","blueFactor","baseShift"],Rn=ct.value.encoding?`"${ct.value.encoding}"`:"Default";for(let La in hr)!fn&&Za.includes(La)?li.push(new Me(La,hr[La],`In "${Yt}": "${La}" is only valid when "encoding" is set to "custom". ${Rn} encoding found`)):Rr[La]?li=li.concat(ct.validateSpec({key:La,value:hr[La],valueSpec:Rr[La],validateSpec:ct.validateSpec,style:Jr,styleSpec:Tr})):li.push(new Me(La,hr[La],`unknown property "${La}"`));return li})({sourceName:D,value:T,style:I.style,styleSpec:X,validateSpec:pe}),Xe;case"geojson":if(Xe=ss({key:D,value:T,valueSpec:X.source_geojson,style:ie,styleSpec:X,validateSpec:pe,objectElementValidators:Fs}),T.cluster)for(let ct in T.clusterProperties){let[Et,Yt]=T.clusterProperties[ct],hr=typeof Et=="string"?[Et,["accumulated"],["get",ct]]:Et;Xe.push(...Io({key:`${D}.${ct}.map`,value:Yt,validateSpec:pe,expressionContext:"cluster-map"})),Xe.push(...Io({key:`${D}.${ct}.reduce`,value:hr,validateSpec:pe,expressionContext:"cluster-reduce"}))}return Xe;case"video":return ss({key:D,value:T,valueSpec:X.source_video,style:ie,validateSpec:pe,styleSpec:X});case"image":return ss({key:D,value:T,valueSpec:X.source_image,style:ie,validateSpec:pe,styleSpec:X});case"canvas":return[new Me(D,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Da({key:`${D}.type`,value:T.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:ie,validateSpec:pe,styleSpec:X})}}function Fa(I){let T=I.value,D=I.styleSpec,X=D.light,ie=I.style,pe=[],_e=oo(T);if(T===void 0)return pe;if(_e!=="object")return pe=pe.concat([new Me("light",T,`object expected, ${_e} found`)]),pe;for(let Xe in T){let ct=Xe.match(/^(.*)-transition$/);pe=pe.concat(ct&&X[ct[1]]&&X[ct[1]].transition?I.validateSpec({key:Xe,value:T[Xe],valueSpec:D.transition,validateSpec:I.validateSpec,style:ie,styleSpec:D}):X[Xe]?I.validateSpec({key:Xe,value:T[Xe],valueSpec:X[Xe],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Me(Xe,T[Xe],`unknown property "${Xe}"`)])}return pe}function Ms(I){let T=I.value,D=I.styleSpec,X=D.sky,ie=I.style,pe=oo(T);if(T===void 0)return[];if(pe!=="object")return[new Me("sky",T,`object expected, ${pe} found`)];let _e=[];for(let Xe in T)_e=_e.concat(X[Xe]?I.validateSpec({key:Xe,value:T[Xe],valueSpec:X[Xe],style:ie,styleSpec:D}):[new Me(Xe,T[Xe],`unknown property "${Xe}"`)]);return _e}function jo(I){let T=I.value,D=I.styleSpec,X=D.terrain,ie=I.style,pe=[],_e=oo(T);if(T===void 0)return pe;if(_e!=="object")return pe=pe.concat([new Me("terrain",T,`object expected, ${_e} found`)]),pe;for(let Xe in T)pe=pe.concat(X[Xe]?I.validateSpec({key:Xe,value:T[Xe],valueSpec:X[Xe],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Me(Xe,T[Xe],`unknown property "${Xe}"`)]);return pe}function Rs(I){let T=[],D=I.value,X=I.key;if(Array.isArray(D)){let ie=[],pe=[];for(let _e in D)D[_e].id&&ie.includes(D[_e].id)&&T.push(new Me(X,D,`all the sprites' ids must be unique, but ${D[_e].id} is duplicated`)),ie.push(D[_e].id),D[_e].url&&pe.includes(D[_e].url)&&T.push(new Me(X,D,`all the sprites' URLs must be unique, but ${D[_e].url} is duplicated`)),pe.push(D[_e].url),T=T.concat(ss({key:`${X}[${_e}]`,value:D[_e],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:I.validateSpec}));return T}return tl({key:X,value:D})}let Is={"*":()=>[],array:qo,boolean:function(I){let T=I.value,D=I.key,X=oo(T);return X!=="boolean"?[new Me(D,T,`boolean expected, ${X} found`)]:[]},number:zo,color:function(I){let T=I.key,D=I.value,X=oo(D);return X!=="string"?[new Me(T,D,`color expected, ${X} found`)]:Nt.parse(String(D))?[]:[new Me(T,D,`color expected, "${D}" found`)]},constants:Ss,enum:Da,filter:vs,function:io,layer:Ro,object:ss,source:hl,light:Fa,sky:Ms,terrain:jo,projection:function(I){let T=I.value,D=I.styleSpec,X=D.projection,ie=I.style,pe=oo(T);if(T===void 0)return[];if(pe!=="object")return[new Me("projection",T,`object expected, ${pe} found`)];let _e=[];for(let Xe in T)_e=_e.concat(X[Xe]?I.validateSpec({key:Xe,value:T[Xe],valueSpec:X[Xe],style:ie,styleSpec:D}):[new Me(Xe,T[Xe],`unknown property "${Xe}"`)]);return _e},string:tl,formatted:function(I){return tl(I).length===0?[]:Io(I)},resolvedImage:function(I){return tl(I).length===0?[]:Io(I)},padding:function(I){let T=I.key,D=I.value;if(oo(D)==="array"){if(D.length<1||D.length>4)return[new Me(T,D,`padding requires 1 to 4 values; ${D.length} values found`)];let X={type:"number"},ie=[];for(let pe=0;pe[]}})),I.constants&&(D=D.concat(Ss({key:"constants",value:I.constants,style:I,styleSpec:T,validateSpec:Os}))),dr(D)}function xr(I){return function(T){return I(j1(_m({},T),{validateSpec:Os}))}}function dr(I){return[].concat(I).sort(((T,D)=>T.line-D.line))}function Dr(I){return function(...T){return dr(I.apply(this,T))}}Ut.source=Dr(xr(hl)),Ut.sprite=Dr(xr(Rs)),Ut.glyphs=Dr(xr(St)),Ut.light=Dr(xr(Fa)),Ut.sky=Dr(xr(Ms)),Ut.terrain=Dr(xr(jo)),Ut.layer=Dr(xr(Ro)),Ut.filter=Dr(xr(vs)),Ut.paintProperty=Dr(xr(el)),Ut.layoutProperty=Dr(xr(Hs));let yi=Ut,Ti=yi.light,ki=yi.sky,Ki=yi.paintProperty,Fn=yi.layoutProperty;function Li(I,T){let D=!1;if(T&&T.length)for(let X of T)I.fire(new ge(new Error(X.message))),D=!0;return D}class hi{constructor(T,D,X){let ie=this.cells=[];if(T instanceof ArrayBuffer){this.arrayBuffer=T;let _e=new Int32Array(this.arrayBuffer);T=_e[0],this.d=(D=_e[1])+2*(X=_e[2]);for(let ct=0;ct=hr[Jr+0]&&ie>=hr[Jr+1])?(Xe[Rr]=!0,_e.push(Yt[Rr])):Xe[Rr]=!1}}}}_forEachCell(T,D,X,ie,pe,_e,Xe,ct){let Et=this._convertToCellCoord(T),Yt=this._convertToCellCoord(D),hr=this._convertToCellCoord(X),Tr=this._convertToCellCoord(ie);for(let Rr=Et;Rr<=hr;Rr++)for(let Jr=Yt;Jr<=Tr;Jr++){let li=this.d*Jr+Rr;if((!ct||ct(this._convertFromCellCoord(Rr),this._convertFromCellCoord(Jr),this._convertFromCellCoord(Rr+1),this._convertFromCellCoord(Jr+1)))&&pe.call(this,T,D,X,ie,li,_e,Xe,ct))return}}_convertFromCellCoord(T){return(T-this.padding)/this.scale}_convertToCellCoord(T){return Math.max(0,Math.min(this.d-1,Math.floor(T*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let T=this.cells,D=3+this.cells.length+1+1,X=0;for(let _e=0;_e=0)continue;let _e=I[pe];ie[pe]=Ci[D].shallow.indexOf(pe)>=0?_e:ia(_e,T)}I instanceof Error&&(ie.message=I.message)}if(ie.$name)throw new Error("$name property is reserved for worker serialization logic.");return D!=="Object"&&(ie.$name=D),ie}function pa(I){if(ya(I))return I;if(Array.isArray(I))return I.map(pa);if(typeof I!="object")throw new Error("can't deserialize object of type "+typeof I);let T=ta(I)||"Object";if(!Ci[T])throw new Error(`can't deserialize unregistered class ${T}`);let{klass:D}=Ci[T];if(!D)throw new Error(`can't deserialize unregistered class ${T}`);if(D.deserialize)return D.deserialize(I);let X=Object.create(D.prototype);for(let ie of Object.keys(I)){if(ie==="$name")continue;let pe=I[ie];X[ie]=Ci[T].shallow.indexOf(ie)>=0?pe:pa(pe)}return X}class va{constructor(){this.first=!0}update(T,D){let X=Math.floor(T);return this.first?(this.first=!1,this.lastIntegerZoom=X,this.lastIntegerZoomTime=0,this.lastZoom=T,this.lastFloorZoom=X,!0):(this.lastFloorZoom>X?(this.lastIntegerZoom=X+1,this.lastIntegerZoomTime=D):this.lastFloorZoomI>=128&&I<=255,"Hangul Jamo":I=>I>=4352&&I<=4607,Khmer:I=>I>=6016&&I<=6143,"General Punctuation":I=>I>=8192&&I<=8303,"Letterlike Symbols":I=>I>=8448&&I<=8527,"Number Forms":I=>I>=8528&&I<=8591,"Miscellaneous Technical":I=>I>=8960&&I<=9215,"Control Pictures":I=>I>=9216&&I<=9279,"Optical Character Recognition":I=>I>=9280&&I<=9311,"Enclosed Alphanumerics":I=>I>=9312&&I<=9471,"Geometric Shapes":I=>I>=9632&&I<=9727,"Miscellaneous Symbols":I=>I>=9728&&I<=9983,"Miscellaneous Symbols and Arrows":I=>I>=11008&&I<=11263,"Ideographic Description Characters":I=>I>=12272&&I<=12287,"CJK Symbols and Punctuation":I=>I>=12288&&I<=12351,Katakana:I=>I>=12448&&I<=12543,Kanbun:I=>I>=12688&&I<=12703,"CJK Strokes":I=>I>=12736&&I<=12783,"Enclosed CJK Letters and Months":I=>I>=12800&&I<=13055,"CJK Compatibility":I=>I>=13056&&I<=13311,"Yijing Hexagram Symbols":I=>I>=19904&&I<=19967,"Private Use Area":I=>I>=57344&&I<=63743,"Vertical Forms":I=>I>=65040&&I<=65055,"CJK Compatibility Forms":I=>I>=65072&&I<=65103,"Small Form Variants":I=>I>=65104&&I<=65135,"Halfwidth and Fullwidth Forms":I=>I>=65280&&I<=65519};function is(I){for(let T of I)if(bl(T.charCodeAt(0)))return!0;return!1}function Cs(I){for(let T of I)if(!xl(T.charCodeAt(0)))return!1;return!0}function Ks(I){let T=I.map((D=>{try{return new RegExp(`\\p{sc=${D}}`,"u").source}catch(X){return null}})).filter((D=>D));return new RegExp(T.join("|"),"u")}let dl=Ks(["Arab","Dupl","Mong","Ougr","Syrc"]);function xl(I){return!dl.test(String.fromCodePoint(I))}let Bl=Ks(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function bl(I){return!(I!==746&&I!==747&&(I<4352||!(zn["CJK Compatibility Forms"](I)&&!(I>=65097&&I<=65103)||zn["CJK Compatibility"](I)||zn["CJK Strokes"](I)||!(!zn["CJK Symbols and Punctuation"](I)||I>=12296&&I<=12305||I>=12308&&I<=12319||I===12336)||zn["Enclosed CJK Letters and Months"](I)||zn["Ideographic Description Characters"](I)||zn.Kanbun(I)||zn.Katakana(I)&&I!==12540||!(!zn["Halfwidth and Fullwidth Forms"](I)||I===65288||I===65289||I===65293||I>=65306&&I<=65310||I===65339||I===65341||I===65343||I>=65371&&I<=65503||I===65507||I>=65512&&I<=65519)||!(!zn["Small Form Variants"](I)||I>=65112&&I<=65118||I>=65123&&I<=65126)||zn["Vertical Forms"](I)||zn["Yijing Hexagram Symbols"](I)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(I))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(I))||Bl.test(String.fromCodePoint(I)))))}function eu(I){return!(bl(I)||(function(T){return!!(zn["Latin-1 Supplement"](T)&&(T===167||T===169||T===174||T===177||T===188||T===189||T===190||T===215||T===247)||zn["General Punctuation"](T)&&(T===8214||T===8224||T===8225||T===8240||T===8241||T===8251||T===8252||T===8258||T===8263||T===8264||T===8265||T===8273)||zn["Letterlike Symbols"](T)||zn["Number Forms"](T)||zn["Miscellaneous Technical"](T)&&(T>=8960&&T<=8967||T>=8972&&T<=8991||T>=8996&&T<=9e3||T===9003||T>=9085&&T<=9114||T>=9150&&T<=9165||T===9167||T>=9169&&T<=9179||T>=9186&&T<=9215)||zn["Control Pictures"](T)&&T!==9251||zn["Optical Character Recognition"](T)||zn["Enclosed Alphanumerics"](T)||zn["Geometric Shapes"](T)||zn["Miscellaneous Symbols"](T)&&!(T>=9754&&T<=9759)||zn["Miscellaneous Symbols and Arrows"](T)&&(T>=11026&&T<=11055||T>=11088&&T<=11097||T>=11192&&T<=11243)||zn["CJK Symbols and Punctuation"](T)||zn.Katakana(T)||zn["Private Use Area"](T)||zn["CJK Compatibility Forms"](T)||zn["Small Form Variants"](T)||zn["Halfwidth and Fullwidth Forms"](T)||T===8734||T===8756||T===8757||T>=9984&&T<=10087||T>=10102&&T<=10131||T===65532||T===65533)})(I))}let Zl=Ks(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Vl(I){return Zl.test(String.fromCodePoint(I))}function ja(I,T){return!(!T&&Vl(I)||I>=2304&&I<=3583||I>=3840&&I<=4255||zn.Khmer(I))}function ns(I){for(let T of I)if(Vl(T.charCodeAt(0)))return!0;return!1}let Js=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(I){this.pluginStatus=I.pluginStatus,this.pluginURL=I.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(I){this.applyArabicShaping=I.applyArabicShaping,this.processBidirectionalText=I.processBidirectionalText,this.processStyledBidirectionalText=I.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class cs{constructor(T,D){this.zoom=T,D?(this.now=D.now,this.fadeDuration=D.fadeDuration,this.zoomHistory=D.zoomHistory,this.transition=D.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new va,this.transition={})}isSupportedScript(T){return(function(D,X){for(let ie of D)if(!ja(ie.charCodeAt(0),X))return!1;return!0})(T,Js.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let T=this.zoom,D=T-Math.floor(T),X=this.crossFadingFactor();return T>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:D+(1-D)*X}:{fromScale:.5,toScale:1,t:1-(1-X)*D}}}class sl{constructor(T,D){this.property=T,this.value=D,this.expression=(function(X,ie){if(za(X))return new Lo(X,ie);if(Qs(X)){let pe=Do(X,ie);if(pe.result==="error")throw new Error(pe.value.map((_e=>`${_e.key}: ${_e.message}`)).join(", "));return pe.value}{let pe=X;return ie.type==="color"&&typeof X=="string"?pe=Nt.parse(X):ie.type!=="padding"||typeof X!="number"&&!Array.isArray(X)?ie.type==="variableAnchorOffsetCollection"&&Array.isArray(X)&&(pe=Gr.parse(X)):pe=Fr.parse(X),{kind:"constant",evaluate:()=>pe}}})(D===void 0?T.specification.default:D,T.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(T,D,X){return this.property.possiblyEvaluate(this,T,D,X)}}class ll{constructor(T){this.property=T,this.value=new sl(T,void 0)}transitioned(T,D){return new zl(this.property,this.value,D,L({},T.transition,this.transition),T.now)}untransitioned(){return new zl(this.property,this.value,null,{},0)}}class nl{constructor(T){this._properties=T,this._values=Object.create(T.defaultTransitionablePropertyValues)}getValue(T){return m(this._values[T].value.value)}setValue(T,D){Object.prototype.hasOwnProperty.call(this._values,T)||(this._values[T]=new ll(this._values[T].property)),this._values[T].value=new sl(this._values[T].property,D===null?void 0:m(D))}getTransition(T){return m(this._values[T].transition)}setTransition(T,D){Object.prototype.hasOwnProperty.call(this._values,T)||(this._values[T]=new ll(this._values[T].property)),this._values[T].transition=m(D)||void 0}serialize(){let T={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(T[D]=X);let ie=this.getTransition(D);ie!==void 0&&(T[`${D}-transition`]=ie)}return T}transitioned(T,D){let X=new Ml(this._properties);for(let ie of Object.keys(this._values))X._values[ie]=this._values[ie].transitioned(T,D._values[ie]);return X}untransitioned(){let T=new Ml(this._properties);for(let D of Object.keys(this._values))T._values[D]=this._values[D].untransitioned();return T}}class zl{constructor(T,D,X,ie,pe){this.property=T,this.value=D,this.begin=pe+ie.delay||0,this.end=this.begin+ie.duration||0,T.specification.transition&&(ie.delay||ie.duration)&&(this.prior=X)}possiblyEvaluate(T,D,X){let ie=T.now||0,pe=this.value.possiblyEvaluate(T,D,X),_e=this.prior;if(_e){if(ie>this.end)return this.prior=null,pe;if(this.value.isDataDriven())return this.prior=null,pe;if(ie=1)return 1;let Et=ct*ct,Yt=Et*ct;return 4*(ct<.5?Yt:3*(ct-Et)+Yt-.75)})(Xe))}}return pe}}class Ml{constructor(T){this._properties=T,this._values=Object.create(T.defaultTransitioningPropertyValues)}possiblyEvaluate(T,D,X){let ie=new Ll(this._properties);for(let pe of Object.keys(this._values))ie._values[pe]=this._values[pe].possiblyEvaluate(T,D,X);return ie}hasTransition(){for(let T of Object.keys(this._values))if(this._values[T].prior)return!0;return!1}}class Rl{constructor(T){this._properties=T,this._values=Object.create(T.defaultPropertyValues)}hasValue(T){return this._values[T].value!==void 0}getValue(T){return m(this._values[T].value)}setValue(T,D){this._values[T]=new sl(this._values[T].property,D===null?void 0:m(D))}serialize(){let T={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(T[D]=X)}return T}possiblyEvaluate(T,D,X){let ie=new Ll(this._properties);for(let pe of Object.keys(this._values))ie._values[pe]=this._values[pe].possiblyEvaluate(T,D,X);return ie}}class Al{constructor(T,D,X){this.property=T,this.value=D,this.parameters=X}isConstant(){return this.value.kind==="constant"}constantOr(T){return this.value.kind==="constant"?this.value.value:T}evaluate(T,D,X,ie){return this.property.evaluate(this.value,this.parameters,T,D,X,ie)}}class Ll{constructor(T){this._properties=T,this._values=Object.create(T.defaultPossiblyEvaluatedValues)}get(T){return this._values[T]}}class ms{constructor(T){this.specification=T}possiblyEvaluate(T,D){if(T.isDataDriven())throw new Error("Value should not be data driven");return T.expression.evaluate(D)}interpolate(T,D,X){let ie=ka[this.specification.type];return ie?ie(T,D,X):T}}class Bs{constructor(T,D){this.specification=T,this.overrides=D}possiblyEvaluate(T,D,X,ie){return new Al(this,T.expression.kind==="constant"||T.expression.kind==="camera"?{kind:"constant",value:T.expression.evaluate(D,null,{},X,ie)}:T.expression,D)}interpolate(T,D,X){if(T.value.kind!=="constant"||D.value.kind!=="constant")return T;if(T.value.value===void 0||D.value.value===void 0)return new Al(this,{kind:"constant",value:void 0},T.parameters);let ie=ka[this.specification.type];if(ie){let pe=ie(T.value.value,D.value.value,X);return new Al(this,{kind:"constant",value:pe},T.parameters)}return T}evaluate(T,D,X,ie,pe,_e){return T.kind==="constant"?T.value:T.evaluate(D,X,ie,pe,_e)}}class Xl extends Bs{possiblyEvaluate(T,D,X,ie){if(T.value===void 0)return new Al(this,{kind:"constant",value:void 0},D);if(T.expression.kind==="constant"){let pe=T.expression.evaluate(D,null,{},X,ie),_e=T.property.specification.type==="resolvedImage"&&typeof pe!="string"?pe.name:pe,Xe=this._calculate(_e,_e,_e,D);return new Al(this,{kind:"constant",value:Xe},D)}if(T.expression.kind==="camera"){let pe=this._calculate(T.expression.evaluate({zoom:D.zoom-1}),T.expression.evaluate({zoom:D.zoom}),T.expression.evaluate({zoom:D.zoom+1}),D);return new Al(this,{kind:"constant",value:pe},D)}return new Al(this,T.expression,D)}evaluate(T,D,X,ie,pe,_e){if(T.kind==="source"){let Xe=T.evaluate(D,X,ie,pe,_e);return this._calculate(Xe,Xe,Xe,D)}return T.kind==="composite"?this._calculate(T.evaluate({zoom:Math.floor(D.zoom)-1},X,ie),T.evaluate({zoom:Math.floor(D.zoom)},X,ie),T.evaluate({zoom:Math.floor(D.zoom)+1},X,ie),D):T.value}_calculate(T,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:T,to:D}:{from:X,to:D}}interpolate(T){return T}}class Gl{constructor(T){this.specification=T}possiblyEvaluate(T,D,X,ie){if(T.value!==void 0){if(T.expression.kind==="constant"){let pe=T.expression.evaluate(D,null,{},X,ie);return this._calculate(pe,pe,pe,D)}return this._calculate(T.expression.evaluate(new cs(Math.floor(D.zoom-1),D)),T.expression.evaluate(new cs(Math.floor(D.zoom),D)),T.expression.evaluate(new cs(Math.floor(D.zoom+1),D)),D)}}_calculate(T,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:T,to:D}:{from:X,to:D}}interpolate(T){return T}}class Nl{constructor(T){this.specification=T}possiblyEvaluate(T,D,X,ie){return!!T.expression.evaluate(D,null,{},X,ie)}interpolate(){return!1}}class ue{constructor(T){this.properties=T,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let D in T){let X=T[D];X.specification.overridable&&this.overridableProperties.push(D);let ie=this.defaultPropertyValues[D]=new sl(X,void 0),pe=this.defaultTransitionablePropertyValues[D]=new ll(X);this.defaultTransitioningPropertyValues[D]=pe.untransitioned(),this.defaultPossiblyEvaluatedValues[D]=ie.possiblyEvaluate({})}}}Si("DataDrivenProperty",Bs),Si("DataConstantProperty",ms),Si("CrossFadedDataDrivenProperty",Xl),Si("CrossFadedProperty",Gl),Si("ColorRampProperty",Nl);let w="-transition";class q extends Be{constructor(T,D){if(super(),this.id=T.id,this.type=T.type,this._featureFilter={filter:()=>!0,needGeometry:!1},T.type!=="custom"&&(this.metadata=T.metadata,this.minzoom=T.minzoom,this.maxzoom=T.maxzoom,T.type!=="background"&&(this.source=T.source,this.sourceLayer=T["source-layer"],this.filter=T.filter),D.layout&&(this._unevaluatedLayout=new Rl(D.layout)),D.paint)){this._transitionablePaint=new nl(D.paint);for(let X in T.paint)this.setPaintProperty(X,T.paint[X],{validate:!1});for(let X in T.layout)this.setLayoutProperty(X,T.layout[X],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ll(D.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(T){return T==="visibility"?this.visibility:this._unevaluatedLayout.getValue(T)}setLayoutProperty(T,D,X={}){D!=null&&this._validate(Fn,`layers.${this.id}.layout.${T}`,T,D,X)||(T!=="visibility"?this._unevaluatedLayout.setValue(T,D):this.visibility=D)}getPaintProperty(T){return T.endsWith(w)?this._transitionablePaint.getTransition(T.slice(0,-11)):this._transitionablePaint.getValue(T)}setPaintProperty(T,D,X={}){if(D!=null&&this._validate(Ki,`layers.${this.id}.paint.${T}`,T,D,X))return!1;if(T.endsWith(w))return this._transitionablePaint.setTransition(T.slice(0,-11),D||void 0),!1;{let ie=this._transitionablePaint._values[T],pe=ie.property.specification["property-type"]==="cross-faded-data-driven",_e=ie.value.isDataDriven(),Xe=ie.value;this._transitionablePaint.setValue(T,D),this._handleSpecialPaintPropertyUpdate(T);let ct=this._transitionablePaint._values[T].value;return ct.isDataDriven()||_e||pe||this._handleOverridablePaintPropertyUpdate(T,Xe,ct)}}_handleSpecialPaintPropertyUpdate(T){}_handleOverridablePaintPropertyUpdate(T,D,X){return!1}isHidden(T){return!!(this.minzoom&&T=this.maxzoom)||this.visibility==="none"}updateTransitions(T){this._transitioningPaint=this._transitionablePaint.transitioned(T,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(T,D){T.getCrossfadeParameters&&(this._crossfadeParameters=T.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(T,void 0,D)),this.paint=this._transitioningPaint.possiblyEvaluate(T,void 0,D)}serialize(){let T={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(T.layout=T.layout||{},T.layout.visibility=this.visibility),S(T,((D,X)=>!(D===void 0||X==="layout"&&!Object.keys(D).length||X==="paint"&&!Object.keys(D).length)))}_validate(T,D,X,ie,pe={}){return(!pe||pe.validate!==!1)&&Li(this,T.call(yi,{key:D,layerType:this.type,objectKey:X,value:ie,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let T in this.paint._values){let D=this.paint.get(T);if(D instanceof Al&&on(D.property.specification)&&(D.value.kind==="source"||D.value.kind==="composite")&&D.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(T,D){this._structArray=T,this._pos1=D*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class fe{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(T,D){return T._trim(),D&&(T.isTransferred=!0,D.push(T.arrayBuffer)),{length:T.length,arrayBuffer:T.arrayBuffer}}static deserialize(T){let D=Object.create(this.prototype);return D.arrayBuffer=T.arrayBuffer,D.length=T.length,D.capacity=T.arrayBuffer.byteLength/D.bytesPerElement,D._refreshViews(),D}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(T){this.reserve(T),this.length=T}reserve(T){if(T>this.capacity){this.capacity=Math.max(T,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let D=this.uint8;this._refreshViews(),D&&this.uint8.set(D)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Ue(I,T=1){let D=0,X=0;return{members:I.map((ie=>{let pe=Q[ie.type].BYTES_PER_ELEMENT,_e=D=at(D,Math.max(T,pe)),Xe=ie.components||1;return X=Math.max(X,pe),D+=pe*Xe,{name:ie.name,type:ie.type,components:Xe,offset:_e}})),size:at(D,Math.max(X,T)),alignment:T}}function at(I,T){return Math.ceil(I/T)*T}class yt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,D){let X=this.length;return this.resize(X+1),this.emplace(X,T,D)}emplace(T,D,X){let ie=2*T;return this.int16[ie+0]=D,this.int16[ie+1]=X,T}}yt.prototype.bytesPerElement=4,Si("StructArrayLayout2i4",yt);class Rt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,D,X)}emplace(T,D,X,ie){let pe=3*T;return this.int16[pe+0]=D,this.int16[pe+1]=X,this.int16[pe+2]=ie,T}}Rt.prototype.bytesPerElement=6,Si("StructArrayLayout3i6",Rt);class Qt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,D,X,ie){let pe=this.length;return this.resize(pe+1),this.emplace(pe,T,D,X,ie)}emplace(T,D,X,ie,pe){let _e=4*T;return this.int16[_e+0]=D,this.int16[_e+1]=X,this.int16[_e+2]=ie,this.int16[_e+3]=pe,T}}Qt.prototype.bytesPerElement=8,Si("StructArrayLayout4i8",Qt);class rr extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe,_e){let Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,T,D,X,ie,pe,_e)}emplace(T,D,X,ie,pe,_e,Xe){let ct=6*T;return this.int16[ct+0]=D,this.int16[ct+1]=X,this.int16[ct+2]=ie,this.int16[ct+3]=pe,this.int16[ct+4]=_e,this.int16[ct+5]=Xe,T}}rr.prototype.bytesPerElement=12,Si("StructArrayLayout2i4i12",rr);class Mr extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe,_e){let Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,T,D,X,ie,pe,_e)}emplace(T,D,X,ie,pe,_e,Xe){let ct=4*T,Et=8*T;return this.int16[ct+0]=D,this.int16[ct+1]=X,this.uint8[Et+4]=ie,this.uint8[Et+5]=pe,this.uint8[Et+6]=_e,this.uint8[Et+7]=Xe,T}}Mr.prototype.bytesPerElement=8,Si("StructArrayLayout2i4ub8",Mr);class Ur extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,D){let X=this.length;return this.resize(X+1),this.emplace(X,T,D)}emplace(T,D,X){let ie=2*T;return this.float32[ie+0]=D,this.float32[ie+1]=X,T}}Ur.prototype.bytesPerElement=8,Si("StructArrayLayout2f8",Ur);class he extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe,_e,Xe,ct,Et,Yt){let hr=this.length;return this.resize(hr+1),this.emplace(hr,T,D,X,ie,pe,_e,Xe,ct,Et,Yt)}emplace(T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr){let Tr=10*T;return this.uint16[Tr+0]=D,this.uint16[Tr+1]=X,this.uint16[Tr+2]=ie,this.uint16[Tr+3]=pe,this.uint16[Tr+4]=_e,this.uint16[Tr+5]=Xe,this.uint16[Tr+6]=ct,this.uint16[Tr+7]=Et,this.uint16[Tr+8]=Yt,this.uint16[Tr+9]=hr,T}}he.prototype.bytesPerElement=20,Si("StructArrayLayout10ui20",he);class Ae extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr){let Rr=this.length;return this.resize(Rr+1),this.emplace(Rr,T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr)}emplace(T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr){let Jr=12*T;return this.int16[Jr+0]=D,this.int16[Jr+1]=X,this.int16[Jr+2]=ie,this.int16[Jr+3]=pe,this.uint16[Jr+4]=_e,this.uint16[Jr+5]=Xe,this.uint16[Jr+6]=ct,this.uint16[Jr+7]=Et,this.int16[Jr+8]=Yt,this.int16[Jr+9]=hr,this.int16[Jr+10]=Tr,this.int16[Jr+11]=Rr,T}}Ae.prototype.bytesPerElement=24,Si("StructArrayLayout4i4ui4i24",Ae);class qe extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,D,X)}emplace(T,D,X,ie){let pe=3*T;return this.float32[pe+0]=D,this.float32[pe+1]=X,this.float32[pe+2]=ie,T}}qe.prototype.bytesPerElement=12,Si("StructArrayLayout3f12",qe);class Ge extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(T){let D=this.length;return this.resize(D+1),this.emplace(D,T)}emplace(T,D){return this.uint32[1*T+0]=D,T}}Ge.prototype.bytesPerElement=4,Si("StructArrayLayout1ul4",Ge);class ft extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe,_e,Xe,ct,Et){let Yt=this.length;return this.resize(Yt+1),this.emplace(Yt,T,D,X,ie,pe,_e,Xe,ct,Et)}emplace(T,D,X,ie,pe,_e,Xe,ct,Et,Yt){let hr=10*T,Tr=5*T;return this.int16[hr+0]=D,this.int16[hr+1]=X,this.int16[hr+2]=ie,this.int16[hr+3]=pe,this.int16[hr+4]=_e,this.int16[hr+5]=Xe,this.uint32[Tr+3]=ct,this.uint16[hr+8]=Et,this.uint16[hr+9]=Yt,T}}ft.prototype.bytesPerElement=20,Si("StructArrayLayout6i1ul2ui20",ft);class ot extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe,_e){let Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,T,D,X,ie,pe,_e)}emplace(T,D,X,ie,pe,_e,Xe){let ct=6*T;return this.int16[ct+0]=D,this.int16[ct+1]=X,this.int16[ct+2]=ie,this.int16[ct+3]=pe,this.int16[ct+4]=_e,this.int16[ct+5]=Xe,T}}ot.prototype.bytesPerElement=12,Si("StructArrayLayout2i2i2i12",ot);class mt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe){let _e=this.length;return this.resize(_e+1),this.emplace(_e,T,D,X,ie,pe)}emplace(T,D,X,ie,pe,_e){let Xe=4*T,ct=8*T;return this.float32[Xe+0]=D,this.float32[Xe+1]=X,this.float32[Xe+2]=ie,this.int16[ct+6]=pe,this.int16[ct+7]=_e,T}}mt.prototype.bytesPerElement=16,Si("StructArrayLayout2f1f2i16",mt);class Gt extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe,_e){let Xe=this.length;return this.resize(Xe+1),this.emplace(Xe,T,D,X,ie,pe,_e)}emplace(T,D,X,ie,pe,_e,Xe){let ct=16*T,Et=4*T,Yt=8*T;return this.uint8[ct+0]=D,this.uint8[ct+1]=X,this.float32[Et+1]=ie,this.float32[Et+2]=pe,this.int16[Yt+6]=_e,this.int16[Yt+7]=Xe,T}}Gt.prototype.bytesPerElement=16,Si("StructArrayLayout2ub2f2i16",Gt);class er extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,D,X)}emplace(T,D,X,ie){let pe=3*T;return this.uint16[pe+0]=D,this.uint16[pe+1]=X,this.uint16[pe+2]=ie,T}}er.prototype.bytesPerElement=6,Si("StructArrayLayout3ui6",er);class sr extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr,li,Gi,fn){let Za=this.length;return this.resize(Za+1),this.emplace(Za,T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr,li,Gi,fn)}emplace(T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr,li,Gi,fn,Za){let Rn=24*T,La=12*T,So=48*T;return this.int16[Rn+0]=D,this.int16[Rn+1]=X,this.uint16[Rn+2]=ie,this.uint16[Rn+3]=pe,this.uint32[La+2]=_e,this.uint32[La+3]=Xe,this.uint32[La+4]=ct,this.uint16[Rn+10]=Et,this.uint16[Rn+11]=Yt,this.uint16[Rn+12]=hr,this.float32[La+7]=Tr,this.float32[La+8]=Rr,this.uint8[So+36]=Jr,this.uint8[So+37]=li,this.uint8[So+38]=Gi,this.uint32[La+10]=fn,this.int16[Rn+22]=Za,T}}sr.prototype.bytesPerElement=48,Si("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",sr);class wr extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr,li,Gi,fn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu){let _u=this.length;return this.resize(_u+1),this.emplace(_u,T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr,li,Gi,fn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu)}emplace(T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr,li,Gi,fn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu,_u){let Xs=32*T,Lu=16*T;return this.int16[Xs+0]=D,this.int16[Xs+1]=X,this.int16[Xs+2]=ie,this.int16[Xs+3]=pe,this.int16[Xs+4]=_e,this.int16[Xs+5]=Xe,this.int16[Xs+6]=ct,this.int16[Xs+7]=Et,this.uint16[Xs+8]=Yt,this.uint16[Xs+9]=hr,this.uint16[Xs+10]=Tr,this.uint16[Xs+11]=Rr,this.uint16[Xs+12]=Jr,this.uint16[Xs+13]=li,this.uint16[Xs+14]=Gi,this.uint16[Xs+15]=fn,this.uint16[Xs+16]=Za,this.uint16[Xs+17]=Rn,this.uint16[Xs+18]=La,this.uint16[Xs+19]=So,this.uint16[Xs+20]=kl,this.uint16[Xs+21]=mu,this.uint16[Xs+22]=Iu,this.uint32[Lu+12]=su,this.float32[Lu+13]=yl,this.float32[Lu+14]=Eu,this.uint16[Xs+30]=bu,this.uint16[Xs+31]=_u,T}}wr.prototype.bytesPerElement=64,Si("StructArrayLayout8i15ui1ul2f2ui64",wr);class Ir extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T){let D=this.length;return this.resize(D+1),this.emplace(D,T)}emplace(T,D){return this.float32[1*T+0]=D,T}}Ir.prototype.bytesPerElement=4,Si("StructArrayLayout1f4",Ir);class ri extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,D,X)}emplace(T,D,X,ie){let pe=3*T;return this.uint16[6*T+0]=D,this.float32[pe+1]=X,this.float32[pe+2]=ie,T}}ri.prototype.bytesPerElement=12,Si("StructArrayLayout1ui2f12",ri);class si extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,T,D,X)}emplace(T,D,X,ie){let pe=4*T;return this.uint32[2*T+0]=D,this.uint16[pe+2]=X,this.uint16[pe+3]=ie,T}}si.prototype.bytesPerElement=8,Si("StructArrayLayout1ul2ui8",si);class Mi extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T,D){let X=this.length;return this.resize(X+1),this.emplace(X,T,D)}emplace(T,D,X){let ie=2*T;return this.uint16[ie+0]=D,this.uint16[ie+1]=X,T}}Mi.prototype.bytesPerElement=4,Si("StructArrayLayout2ui4",Mi);class cn extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(T){let D=this.length;return this.resize(D+1),this.emplace(D,T)}emplace(T,D){return this.uint16[1*T+0]=D,T}}cn.prototype.bytesPerElement=2,Si("StructArrayLayout1ui2",cn);class Zn extends fe{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(T,D,X,ie){let pe=this.length;return this.resize(pe+1),this.emplace(pe,T,D,X,ie)}emplace(T,D,X,ie,pe){let _e=4*T;return this.float32[_e+0]=D,this.float32[_e+1]=X,this.float32[_e+2]=ie,this.float32[_e+3]=pe,T}}Zn.prototype.bytesPerElement=16,Si("StructArrayLayout4f16",Zn);class Yn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new l(this.anchorPointX,this.anchorPointY)}}Yn.prototype.size=20;class Ua extends ft{get(T){return new Yn(this,T)}}Si("CollisionBoxArray",Ua);class Fo extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(T){this._structArray.uint8[this._pos1+37]=T}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(T){this._structArray.uint8[this._pos1+38]=T}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(T){this._structArray.uint32[this._pos4+10]=T}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Fo.prototype.size=48;class vl extends sr{get(T){return new Fo(this,T)}}Si("PlacedSymbolArray",vl);class Us extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(T){this._structArray.uint32[this._pos4+12]=T}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Us.prototype.size=64;class ml extends wr{get(T){return new Us(this,T)}}Si("SymbolInstanceArray",ml);class au extends Ir{getoffsetX(T){return this.float32[1*T+0]}}Si("GlyphOffsetArray",au);class Sl extends Rt{getx(T){return this.int16[3*T+0]}gety(T){return this.int16[3*T+1]}gettileUnitDistanceFromAnchor(T){return this.int16[3*T+2]}}Si("SymbolLineVertexArray",Sl);class Yl extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Yl.prototype.size=12;class ql extends ri{get(T){return new Yl(this,T)}}Si("TextAnchorOffsetArray",ql);class ou extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}ou.prototype.size=8;class Pu extends si{get(T){return new ou(this,T)}}Si("FeatureIndexArray",Pu);class nu extends yt{}class ru extends yt{}class Hu extends yt{}class $u extends rr{}class Ku extends Mr{}class Wu extends Ur{}class ju extends he{}class sf extends Ae{}class _f extends qe{}class Qu extends Ge{}class ef extends ot{}class Z extends Gt{}class le extends er{}class Le extends Mi{}let Ye=Ue([{name:"a_pos",components:2,type:"Int16"}],4),{members:nt}=Ye;class ut{constructor(T=[]){this.segments=T}prepareSegment(T,D,X,ie){let pe=this.segments[this.segments.length-1];return T>ut.MAX_VERTEX_ARRAY_LENGTH&&M(`Max vertices per segment is ${ut.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${T}`),(!pe||pe.vertexLength+T>ut.MAX_VERTEX_ARRAY_LENGTH||pe.sortKey!==ie)&&(pe={vertexOffset:D.length,primitiveOffset:X.length,vertexLength:0,primitiveLength:0},ie!==void 0&&(pe.sortKey=ie),this.segments.push(pe)),pe}get(){return this.segments}destroy(){for(let T of this.segments)for(let D in T.vaos)T.vaos[D].destroy()}static simpleSegment(T,D,X,ie){return new ut([{vertexOffset:T,primitiveOffset:D,vertexLength:X,primitiveLength:ie,vaos:{},sortKey:0}])}}function Ht(I,T){return 256*(I=E(Math.floor(I),0,255))+E(Math.floor(T),0,255)}ut.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Si("SegmentVector",ut);let wt=Ue([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var lr={exports:{}},Cr={exports:{}};Cr.exports=function(I,T){var D,X,ie,pe,_e,Xe,ct,Et;for(X=I.length-(D=3&I.length),ie=T,_e=3432918353,Xe=461845907,Et=0;Et>>16)*_e&65535)<<16)&4294967295)<<15|ct>>>17))*Xe+(((ct>>>16)*Xe&65535)<<16)&4294967295)<<13|ie>>>19))+((5*(ie>>>16)&65535)<<16)&4294967295))+((58964+(pe>>>16)&65535)<<16);switch(ct=0,D){case 3:ct^=(255&I.charCodeAt(Et+2))<<16;case 2:ct^=(255&I.charCodeAt(Et+1))<<8;case 1:ie^=ct=(65535&(ct=(ct=(65535&(ct^=255&I.charCodeAt(Et)))*_e+(((ct>>>16)*_e&65535)<<16)&4294967295)<<15|ct>>>17))*Xe+(((ct>>>16)*Xe&65535)<<16)&4294967295}return ie^=I.length,ie=2246822507*(65535&(ie^=ie>>>16))+((2246822507*(ie>>>16)&65535)<<16)&4294967295,ie=3266489909*(65535&(ie^=ie>>>13))+((3266489909*(ie>>>16)&65535)<<16)&4294967295,(ie^=ie>>>16)>>>0};var zr=Cr.exports,ui={exports:{}};ui.exports=function(I,T){for(var D,X=I.length,ie=T^X,pe=0;X>=4;)D=1540483477*(65535&(D=255&I.charCodeAt(pe)|(255&I.charCodeAt(++pe))<<8|(255&I.charCodeAt(++pe))<<16|(255&I.charCodeAt(++pe))<<24))+((1540483477*(D>>>16)&65535)<<16),ie=1540483477*(65535&ie)+((1540483477*(ie>>>16)&65535)<<16)^(D=1540483477*(65535&(D^=D>>>24))+((1540483477*(D>>>16)&65535)<<16)),X-=4,++pe;switch(X){case 3:ie^=(255&I.charCodeAt(pe+2))<<16;case 2:ie^=(255&I.charCodeAt(pe+1))<<8;case 1:ie=1540483477*(65535&(ie^=255&I.charCodeAt(pe)))+((1540483477*(ie>>>16)&65535)<<16)}return ie=1540483477*(65535&(ie^=ie>>>13))+((1540483477*(ie>>>16)&65535)<<16),(ie^=ie>>>15)>>>0};var $r=zr,Oi=ui.exports;lr.exports=$r,lr.exports.murmur3=$r,lr.exports.murmur2=Oi;var un=o(lr.exports);class pi{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(T,D,X,ie){this.ids.push(Pi(T)),this.positions.push(D,X,ie)}getPositions(T){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let D=Pi(T),X=0,ie=this.ids.length-1;for(;X>1;this.ids[_e]>=D?ie=_e:X=_e+1}let pe=[];for(;this.ids[X]===D;)pe.push({index:this.positions[3*X],start:this.positions[3*X+1],end:this.positions[3*X+2]}),X++;return pe}static serialize(T,D){let X=new Float64Array(T.ids),ie=new Uint32Array(T.positions);return ji(X,ie,0,X.length-1),D&&D.push(X.buffer,ie.buffer),{ids:X,positions:ie}}static deserialize(T){let D=new pi;return D.ids=T.ids,D.positions=T.positions,D.indexed=!0,D}}function Pi(I){let T=+I;return!isNaN(T)&&T<=Number.MAX_SAFE_INTEGER?T:un(String(I))}function ji(I,T,D,X){for(;D>1],pe=D-1,_e=X+1;for(;;){do pe++;while(I[pe]ie);if(pe>=_e)break;pn(I,pe,_e),pn(T,3*pe,3*_e),pn(T,3*pe+1,3*_e+1),pn(T,3*pe+2,3*_e+2)}_e-D`u_${ie}`)),this.type=X}setUniform(T,D,X){T.set(X.constantOr(this.value))}getBinding(T,D,X){return this.type==="color"?new no(T,D):new bi(T,D)}}class Pl{constructor(T,D){this.uniformNames=D.map((X=>`u_${X}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(T,D){this.pixelRatioFrom=D.pixelRatio,this.pixelRatioTo=T.pixelRatio,this.patternFrom=D.tlbr,this.patternTo=T.tlbr}setUniform(T,D,X,ie){let pe=ie==="u_pattern_to"?this.patternTo:ie==="u_pattern_from"?this.patternFrom:ie==="u_pixel_ratio_to"?this.pixelRatioTo:ie==="u_pixel_ratio_from"?this.pixelRatioFrom:null;pe&&T.set(pe)}getBinding(T,D,X){return X.substr(0,9)==="u_pattern"?new xo(T,D):new bi(T,D)}}class pu{constructor(T,D,X,ie){this.expression=T,this.type=X,this.maxValue=0,this.paintVertexAttributes=D.map((pe=>({name:`a_${pe}`,type:"Float32",components:X==="color"?2:1,offset:0}))),this.paintVertexArray=new ie}populatePaintArray(T,D,X,ie,pe){let _e=this.paintVertexArray.length,Xe=this.expression.evaluate(new cs(0),D,{},ie,[],pe);this.paintVertexArray.resize(T),this._setPaintValue(_e,T,Xe)}updatePaintArray(T,D,X,ie){let pe=this.expression.evaluate({zoom:0},X,ie);this._setPaintValue(T,D,pe)}_setPaintValue(T,D,X){if(this.type==="color"){let ie=js(X);for(let pe=T;pe`u_${Xe}_t`)),this.type=X,this.useIntegerZoom=ie,this.zoom=pe,this.maxValue=0,this.paintVertexAttributes=D.map((Xe=>({name:`a_${Xe}`,type:"Float32",components:X==="color"?4:2,offset:0}))),this.paintVertexArray=new _e}populatePaintArray(T,D,X,ie,pe){let _e=this.expression.evaluate(new cs(this.zoom),D,{},ie,[],pe),Xe=this.expression.evaluate(new cs(this.zoom+1),D,{},ie,[],pe),ct=this.paintVertexArray.length;this.paintVertexArray.resize(T),this._setPaintValue(ct,T,_e,Xe)}updatePaintArray(T,D,X,ie){let pe=this.expression.evaluate({zoom:this.zoom},X,ie),_e=this.expression.evaluate({zoom:this.zoom+1},X,ie);this._setPaintValue(T,D,pe,_e)}_setPaintValue(T,D,X,ie){if(this.type==="color"){let pe=js(X),_e=js(ie);for(let Xe=T;Xe`#define HAS_UNIFORM_${ie}`)))}return T}getBinderAttributes(){let T=[];for(let D in this.binders){let X=this.binders[D];if(X instanceof pu||X instanceof Il)for(let ie=0;ie!0)){this.programConfigurations={};for(let ie of T)this.programConfigurations[ie.id]=new Xu(ie,D,X);this.needsUpload=!1,this._featureMap=new pi,this._bufferOffset=0}populatePaintArrays(T,D,X,ie,pe,_e){for(let Xe in this.programConfigurations)this.programConfigurations[Xe].populatePaintArrays(T,D,ie,pe,_e);D.id!==void 0&&this._featureMap.add(D.id,X,this._bufferOffset,T),this._bufferOffset=T,this.needsUpload=!0}updatePaintArrays(T,D,X,ie){for(let pe of X)this.needsUpload=this.programConfigurations[pe.id].updatePaintArrays(T,this._featureMap,D,pe,ie)||this.needsUpload}get(T){return this.programConfigurations[T]}upload(T){if(this.needsUpload){for(let D in this.programConfigurations)this.programConfigurations[D].upload(T);this.needsUpload=!1}}destroy(){for(let T in this.programConfigurations)this.programConfigurations[T].destroy()}}function tf(I,T){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[I]||[I.replace(`${T}-`,"").replace(/-/g,"_")]}function ds(I,T,D){let X={color:{source:Ur,composite:Zn},number:{source:Ir,composite:Ur}},ie=(function(pe){return{"line-pattern":{source:ju,composite:ju},"fill-pattern":{source:ju,composite:ju},"fill-extrusion-pattern":{source:ju,composite:ju}}[pe]})(I);return ie&&ie[D]||X[T][D]}Si("ConstantBinder",El),Si("CrossFadedConstantBinder",Pl),Si("SourceExpressionBinder",pu),Si("CrossFadedCompositeBinder",fu),Si("CompositeExpressionBinder",Il),Si("ProgramConfiguration",Xu,{omit:["_buffers"]}),Si("ProgramConfigurationSet",Vu);let Wl=8192,Au=Math.pow(2,14)-1,Tu=-Au-1;function lf(I){let T=Wl/I.extent,D=I.loadGeometry();for(let X=0;X_e.x+1||ct<_e.y||ct>_e.y+1)&&M("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return D}function hf(I,T){return{type:I.type,id:I.id,properties:I.properties,geometry:T?lf(I):[]}}function Sf(I,T,D,X,ie){I.emplaceBack(2*T+(X+1)/2,2*D+(ie+1)/2)}class pf{constructor(T){this.zoom=T.zoom,this.overscaling=T.overscaling,this.layers=T.layers,this.layerIds=this.layers.map((D=>D.id)),this.index=T.index,this.hasPattern=!1,this.layoutVertexArray=new ru,this.indexArray=new le,this.segments=new ut,this.programConfigurations=new Vu(T.layers,T.zoom),this.stateDependentLayerIds=this.layers.filter((D=>D.isStateDependent())).map((D=>D.id))}populate(T,D,X){let ie=this.layers[0],pe=[],_e=null,Xe=!1;ie.type==="circle"&&(_e=ie.layout.get("circle-sort-key"),Xe=!_e.isConstant());for(let{feature:ct,id:Et,index:Yt,sourceLayerIndex:hr}of T){let Tr=this.layers[0]._featureFilter.needGeometry,Rr=hf(ct,Tr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Rr,X))continue;let Jr=Xe?_e.evaluate(Rr,{},X):void 0,li={id:Et,properties:ct.properties,type:ct.type,sourceLayerIndex:hr,index:Yt,geometry:Tr?Rr.geometry:lf(ct),patterns:{},sortKey:Jr};pe.push(li)}Xe&&pe.sort(((ct,Et)=>ct.sortKey-Et.sortKey));for(let ct of pe){let{geometry:Et,index:Yt,sourceLayerIndex:hr}=ct,Tr=T[Yt].feature;this.addFeature(ct,Et,Yt,X),D.featureIndex.insert(Tr,Et,Yt,hr,this.index)}}update(T,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(T,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(T){this.uploaded||(this.layoutVertexBuffer=T.createVertexBuffer(this.layoutVertexArray,nt),this.indexBuffer=T.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(T),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(T,D,X,ie){for(let pe of D)for(let _e of pe){let Xe=_e.x,ct=_e.y;if(Xe<0||Xe>=Wl||ct<0||ct>=Wl)continue;let Et=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,T.sortKey),Yt=Et.vertexLength;Sf(this.layoutVertexArray,Xe,ct,-1,-1),Sf(this.layoutVertexArray,Xe,ct,1,-1),Sf(this.layoutVertexArray,Xe,ct,1,1),Sf(this.layoutVertexArray,Xe,ct,-1,1),this.indexArray.emplaceBack(Yt,Yt+1,Yt+2),this.indexArray.emplaceBack(Yt,Yt+3,Yt+2),Et.vertexLength+=4,Et.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,T,X,{},ie)}}function fc(I,T){for(let D=0;D1){if(Qr(I,T))return!0;for(let X=0;X1?D:D.sub(T)._mult(ie)._add(T))}function nn(I,T){let D,X,ie,pe=!1;for(let _e=0;_eT.y!=ie.y>T.y&&T.x<(ie.x-X.x)*(T.y-X.y)/(ie.y-X.y)+X.x&&(pe=!pe)}return pe}function On(I,T){let D=!1;for(let X=0,ie=I.length-1;XT.y!=_e.y>T.y&&T.x<(_e.x-pe.x)*(T.y-pe.y)/(_e.y-pe.y)+pe.x&&(D=!D)}return D}function Ln(I,T,D){let X=D[0],ie=D[2];if(I.xie.x&&T.x>ie.x||I.yie.y&&T.y>ie.y)return!1;let pe=O(I,T,D[0]);return pe!==O(I,T,D[1])||pe!==O(I,T,D[2])||pe!==O(I,T,D[3])}function wn(I,T,D){let X=T.paint.get(I).value;return X.kind==="constant"?X.value:D.programConfigurations.get(T.id).getMaxValue(I)}function Ls(I){return Math.sqrt(I[0]*I[0]+I[1]*I[1])}function ua(I,T,D,X,ie){if(!T[0]&&!T[1])return I;let pe=l.convert(T)._mult(ie);D==="viewport"&&pe._rotate(-X);let _e=[];for(let Xe=0;XeUi(Gi,li)))})(Et,ct),Rr=hr?Yt*Xe:Yt;for(let Jr of ie)for(let li of Jr){let Gi=hr?li:Ui(li,ct),fn=Rr,Za=hs([],[li.x,li.y,0,1],ct);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?fn*=Za[3]/_e.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(fn*=_e.cameraToCenterDistance/Za[3]),Fe(Tr,Gi,fn))return!0}return!1}}function Ui(I,T){let D=hs([],[I.x,I.y,0,1],T);return new l(D[0]/D[3],D[1]/D[3])}class ro extends pf{}let na;Si("HeatmapBucket",ro,{omit:["layers"]});var Bn={get paint(){return na=na||new ue({"heatmap-radius":new Bs(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Bs(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new ms(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Nl(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new ms(ce.paint_heatmap["heatmap-opacity"])})}};function In(I,{width:T,height:D},X,ie){if(ie){if(ie instanceof Uint8ClampedArray)ie=new Uint8Array(ie.buffer);else if(ie.length!==T*D*X)throw new RangeError(`mismatched image size. expected: ${ie.length} but got: ${T*D*X}`)}else ie=new Uint8Array(T*D*X);return I.width=T,I.height=D,I.data=ie,I}function Va(I,{width:T,height:D},X){if(T===I.width&&D===I.height)return;let ie=In({},{width:T,height:D},X);_s(I,ie,{x:0,y:0},{x:0,y:0},{width:Math.min(I.width,T),height:Math.min(I.height,D)},X),I.width=T,I.height=D,I.data=ie.data}function _s(I,T,D,X,ie,pe){if(ie.width===0||ie.height===0)return T;if(ie.width>I.width||ie.height>I.height||D.x>I.width-ie.width||D.y>I.height-ie.height)throw new RangeError("out of range source coordinates for image copy");if(ie.width>T.width||ie.height>T.height||X.x>T.width-ie.width||X.y>T.height-ie.height)throw new RangeError("out of range destination coordinates for image copy");let _e=I.data,Xe=T.data;if(_e===Xe)throw new Error("srcData equals dstData, so image is already copied");for(let ct=0;ct{T[I.evaluationKey]=ct;let Et=I.expression.evaluate(T);ie.data[_e+Xe+0]=Math.floor(255*Et.r/Et.a),ie.data[_e+Xe+1]=Math.floor(255*Et.g/Et.a),ie.data[_e+Xe+2]=Math.floor(255*Et.b/Et.a),ie.data[_e+Xe+3]=Math.floor(255*Et.a)};if(I.clips)for(let _e=0,Xe=0;_e80*D){Xe=1/0,ct=1/0;let Yt=-1/0,hr=-1/0;for(let Tr=D;TrYt&&(Yt=Rr),Jr>hr&&(hr=Jr)}Et=Math.max(Yt-Xe,hr-ct),Et=Et!==0?32767/Et:0}return Cf(pe,_e,D,Xe,ct,Et,0),_e}function gf(I,T,D,X,ie){let pe;if(ie===(function(_e,Xe,ct,Et){let Yt=0;for(let hr=Xe,Tr=ct-Et;hr0)for(let _e=T;_e=T;_e-=X)pe=nr(_e/X|0,I[_e],I[_e+1],pe);return pe&&ne(pe,pe.next)&&(Qe(pe),pe=pe.next),pe}function xf(I,T){if(!I)return I;T||(T=I);let D,X=I;do if(D=!1,X.steiner||!ne(X,X.next)&&ye(X.prev,X,X.next)!==0)X=X.next;else{if(Qe(X),X=T=X.prev,X===X.next)break;D=!0}while(D||X!==T);return T}function Cf(I,T,D,X,ie,pe,_e){if(!I)return;!_e&&pe&&(function(ct,Et,Yt,hr){let Tr=ct;do Tr.z===0&&(Tr.z=R(Tr.x,Tr.y,Et,Yt,hr)),Tr.prevZ=Tr.prev,Tr.nextZ=Tr.next,Tr=Tr.next;while(Tr!==ct);Tr.prevZ.nextZ=null,Tr.prevZ=null,(function(Rr){let Jr,li=1;do{let Gi,fn=Rr;Rr=null;let Za=null;for(Jr=0;fn;){Jr++;let Rn=fn,La=0;for(let kl=0;kl0||So>0&&Rn;)La!==0&&(So===0||!Rn||fn.z<=Rn.z)?(Gi=fn,fn=fn.nextZ,La--):(Gi=Rn,Rn=Rn.nextZ,So--),Za?Za.nextZ=Gi:Rr=Gi,Gi.prevZ=Za,Za=Gi;fn=Rn}Za.nextZ=null,li*=2}while(Jr>1)})(Tr)})(I,X,ie,pe);let Xe=I;for(;I.prev!==I.next;){let ct=I.prev,Et=I.next;if(pe?cf(I,X,ie,pe):Gu(I))T.push(ct.i,I.i,Et.i),Qe(I),I=Et.next,Xe=Et.next;else if((I=Et)===Xe){_e?_e===1?Cf(I=mf(xf(I),T),T,D,X,ie,pe,2):_e===2&&Fl(I,T,D,X,ie,pe):Cf(xf(I),T,D,X,ie,pe,1);break}}}function Gu(I){let T=I.prev,D=I,X=I.next;if(ye(T,D,X)>=0)return!1;let ie=T.x,pe=D.x,_e=X.x,Xe=T.y,ct=D.y,Et=X.y,Yt=iepe?ie>_e?ie:_e:pe>_e?pe:_e,Rr=Xe>ct?Xe>Et?Xe:Et:ct>Et?ct:Et,Jr=X.next;for(;Jr!==T;){if(Jr.x>=Yt&&Jr.x<=Tr&&Jr.y>=hr&&Jr.y<=Rr&&B(ie,Xe,pe,ct,_e,Et,Jr.x,Jr.y)&&ye(Jr.prev,Jr,Jr.next)>=0)return!1;Jr=Jr.next}return!0}function cf(I,T,D,X){let ie=I.prev,pe=I,_e=I.next;if(ye(ie,pe,_e)>=0)return!1;let Xe=ie.x,ct=pe.x,Et=_e.x,Yt=ie.y,hr=pe.y,Tr=_e.y,Rr=Xect?Xe>Et?Xe:Et:ct>Et?ct:Et,Gi=Yt>hr?Yt>Tr?Yt:Tr:hr>Tr?hr:Tr,fn=R(Rr,Jr,T,D,X),Za=R(li,Gi,T,D,X),Rn=I.prevZ,La=I.nextZ;for(;Rn&&Rn.z>=fn&&La&&La.z<=Za;){if(Rn.x>=Rr&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Gi&&Rn!==ie&&Rn!==_e&&B(Xe,Yt,ct,hr,Et,Tr,Rn.x,Rn.y)&&ye(Rn.prev,Rn,Rn.next)>=0||(Rn=Rn.prevZ,La.x>=Rr&&La.x<=li&&La.y>=Jr&&La.y<=Gi&&La!==ie&&La!==_e&&B(Xe,Yt,ct,hr,Et,Tr,La.x,La.y)&&ye(La.prev,La,La.next)>=0))return!1;La=La.nextZ}for(;Rn&&Rn.z>=fn;){if(Rn.x>=Rr&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Gi&&Rn!==ie&&Rn!==_e&&B(Xe,Yt,ct,hr,Et,Tr,Rn.x,Rn.y)&&ye(Rn.prev,Rn,Rn.next)>=0)return!1;Rn=Rn.prevZ}for(;La&&La.z<=Za;){if(La.x>=Rr&&La.x<=li&&La.y>=Jr&&La.y<=Gi&&La!==ie&&La!==_e&&B(Xe,Yt,ct,hr,Et,Tr,La.x,La.y)&&ye(La.prev,La,La.next)>=0)return!1;La=La.nextZ}return!0}function mf(I,T){let D=I;do{let X=D.prev,ie=D.next.next;!ne(X,ie)&&ke(X,D,D.next,ie)&&ur(X,ie)&&ur(ie,X)&&(T.push(X.i,D.i,ie.i),Qe(D),Qe(D.next),D=I=ie),D=D.next}while(D!==I);return xf(D)}function Fl(I,T,D,X,ie,pe){let _e=I;do{let Xe=_e.next.next;for(;Xe!==_e.prev;){if(_e.i!==Xe.i&&K(_e,Xe)){let ct=Sr(_e,Xe);return _e=xf(_e,_e.next),ct=xf(ct,ct.next),Cf(_e,T,D,X,ie,pe,0),void Cf(ct,T,D,X,ie,pe,0)}Xe=Xe.next}_e=_e.next}while(_e!==I)}function bf(I,T){return I.x-T.x}function cu(I,T){let D=(function(ie,pe){let _e=pe,Xe=ie.x,ct=ie.y,Et,Yt=-1/0;do{if(ct<=_e.y&&ct>=_e.next.y&&_e.next.y!==_e.y){let li=_e.x+(ct-_e.y)*(_e.next.x-_e.x)/(_e.next.y-_e.y);if(li<=Xe&&li>Yt&&(Yt=li,Et=_e.x<_e.next.x?_e:_e.next,li===Xe))return Et}_e=_e.next}while(_e!==pe);if(!Et)return null;let hr=Et,Tr=Et.x,Rr=Et.y,Jr=1/0;_e=Et;do{if(Xe>=_e.x&&_e.x>=Tr&&Xe!==_e.x&&B(ctEt.x||_e.x===Et.x&&Y(Et,_e)))&&(Et=_e,Jr=li)}_e=_e.next}while(_e!==hr);return Et})(I,T);if(!D)return T;let X=Sr(D,I);return xf(X,X.next),xf(D,D.next)}function Y(I,T){return ye(I.prev,I,T.prev)<0&&ye(T.next,I,I.next)<0}function R(I,T,D,X,ie){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=(I-D)*ie|0)|I<<8))|I<<4))|I<<2))|I<<1))|(T=1431655765&((T=858993459&((T=252645135&((T=16711935&((T=(T-X)*ie|0)|T<<8))|T<<4))|T<<2))|T<<1))<<1}function J(I){let T=I,D=I;do(T.x=(I-_e)*(pe-Xe)&&(I-_e)*(X-Xe)>=(D-_e)*(T-Xe)&&(D-_e)*(pe-Xe)>=(ie-_e)*(X-Xe)}function K(I,T){return I.next.i!==T.i&&I.prev.i!==T.i&&!(function(D,X){let ie=D;do{if(ie.i!==D.i&&ie.next.i!==D.i&&ie.i!==X.i&&ie.next.i!==X.i&&ke(ie,ie.next,D,X))return!0;ie=ie.next}while(ie!==D);return!1})(I,T)&&(ur(I,T)&&ur(T,I)&&(function(D,X){let ie=D,pe=!1,_e=(D.x+X.x)/2,Xe=(D.y+X.y)/2;do ie.y>Xe!=ie.next.y>Xe&&ie.next.y!==ie.y&&_e<(ie.next.x-ie.x)*(Xe-ie.y)/(ie.next.y-ie.y)+ie.x&&(pe=!pe),ie=ie.next;while(ie!==D);return pe})(I,T)&&(ye(I.prev,I,T.prev)||ye(I,T.prev,T))||ne(I,T)&&ye(I.prev,I,I.next)>0&&ye(T.prev,T,T.next)>0)}function ye(I,T,D){return(T.y-I.y)*(D.x-T.x)-(T.x-I.x)*(D.y-T.y)}function ne(I,T){return I.x===T.x&&I.y===T.y}function ke(I,T,D,X){let ie=Ct(ye(I,T,D)),pe=Ct(ye(I,T,X)),_e=Ct(ye(D,X,I)),Xe=Ct(ye(D,X,T));return ie!==pe&&_e!==Xe||!(ie!==0||!Je(I,D,T))||!(pe!==0||!Je(I,X,T))||!(_e!==0||!Je(D,I,X))||!(Xe!==0||!Je(D,T,X))}function Je(I,T,D){return T.x<=Math.max(I.x,D.x)&&T.x>=Math.min(I.x,D.x)&&T.y<=Math.max(I.y,D.y)&&T.y>=Math.min(I.y,D.y)}function Ct(I){return I>0?1:I<0?-1:0}function ur(I,T){return ye(I.prev,I,I.next)<0?ye(I,T,I.next)>=0&&ye(I,I.prev,T)>=0:ye(I,T,I.prev)<0||ye(I,I.next,T)<0}function Sr(I,T){let D=pt(I.i,I.x,I.y),X=pt(T.i,T.x,T.y),ie=I.next,pe=T.prev;return I.next=T,T.prev=I,D.next=ie,ie.prev=D,X.next=D,D.prev=X,pe.next=X,X.prev=pe,X}function nr(I,T,D,X){let ie=pt(I,T,D);return X?(ie.next=X.next,ie.prev=X,X.next.prev=ie,X.next=ie):(ie.prev=ie,ie.next=ie),ie}function Qe(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function pt(I,T,D){return{i:I,x:T,y:D,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Tt(I,T,D){let X=D.patternDependencies,ie=!1;for(let pe of T){let _e=pe.paint.get(`${I}-pattern`);_e.isConstant()||(ie=!0);let Xe=_e.constantOr(null);Xe&&(ie=!0,X[Xe.to]=!0,X[Xe.from]=!0)}return ie}function Xt(I,T,D,X,ie){let pe=ie.patternDependencies;for(let _e of T){let Xe=_e.paint.get(`${I}-pattern`).value;if(Xe.kind!=="constant"){let ct=Xe.evaluate({zoom:X-1},D,{},ie.availableImages),Et=Xe.evaluate({zoom:X},D,{},ie.availableImages),Yt=Xe.evaluate({zoom:X+1},D,{},ie.availableImages);ct=ct&&ct.name?ct.name:ct,Et=Et&&Et.name?Et.name:Et,Yt=Yt&&Yt.name?Yt.name:Yt,pe[ct]=!0,pe[Et]=!0,pe[Yt]=!0,D.patterns[_e.id]={min:ct,mid:Et,max:Yt}}}return D}class ir{constructor(T){this.zoom=T.zoom,this.overscaling=T.overscaling,this.layers=T.layers,this.layerIds=this.layers.map((D=>D.id)),this.index=T.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Hu,this.indexArray=new le,this.indexArray2=new Le,this.programConfigurations=new Vu(T.layers,T.zoom),this.segments=new ut,this.segments2=new ut,this.stateDependentLayerIds=this.layers.filter((D=>D.isStateDependent())).map((D=>D.id))}populate(T,D,X){this.hasPattern=Tt("fill",this.layers,D);let ie=this.layers[0].layout.get("fill-sort-key"),pe=!ie.isConstant(),_e=[];for(let{feature:Xe,id:ct,index:Et,sourceLayerIndex:Yt}of T){let hr=this.layers[0]._featureFilter.needGeometry,Tr=hf(Xe,hr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Tr,X))continue;let Rr=pe?ie.evaluate(Tr,{},X,D.availableImages):void 0,Jr={id:ct,properties:Xe.properties,type:Xe.type,sourceLayerIndex:Yt,index:Et,geometry:hr?Tr.geometry:lf(Xe),patterns:{},sortKey:Rr};_e.push(Jr)}pe&&_e.sort(((Xe,ct)=>Xe.sortKey-ct.sortKey));for(let Xe of _e){let{geometry:ct,index:Et,sourceLayerIndex:Yt}=Xe;if(this.hasPattern){let hr=Xt("fill",this.layers,Xe,this.zoom,D);this.patternFeatures.push(hr)}else this.addFeature(Xe,ct,Et,X,{});D.featureIndex.insert(T[Et].feature,ct,Et,Yt,this.index)}}update(T,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(T,D,this.stateDependentLayers,X)}addFeatures(T,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(T){this.uploaded||(this.layoutVertexBuffer=T.createVertexBuffer(this.layoutVertexArray,Mf),this.indexBuffer=T.createIndexBuffer(this.indexArray),this.indexBuffer2=T.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(T),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(T,D,X,ie,pe){for(let _e of Ys(D,500)){let Xe=0;for(let Rr of _e)Xe+=Rr.length;let ct=this.segments.prepareSegment(Xe,this.layoutVertexArray,this.indexArray),Et=ct.vertexLength,Yt=[],hr=[];for(let Rr of _e){if(Rr.length===0)continue;Rr!==_e[0]&&hr.push(Yt.length/2);let Jr=this.segments2.prepareSegment(Rr.length,this.layoutVertexArray,this.indexArray2),li=Jr.vertexLength;this.layoutVertexArray.emplaceBack(Rr[0].x,Rr[0].y),this.indexArray2.emplaceBack(li+Rr.length-1,li),Yt.push(Rr[0].x),Yt.push(Rr[0].y);for(let Gi=1;Gi>3}if(ie--,X===1||X===2)pe+=I.readSVarint(),_e+=I.readSVarint(),X===1&&(T&&Xe.push(T),T=[]),T.push(new ci(pe,_e));else{if(X!==7)throw new Error("unknown command "+X);T&&T.push(T[0].clone())}}return T&&Xe.push(T),Xe},Yi.prototype.bbox=function(){var I=this._pbf;I.pos=this._geometry;for(var T=I.readVarint()+I.pos,D=1,X=0,ie=0,pe=0,_e=1/0,Xe=-1/0,ct=1/0,Et=-1/0;I.pos>3}if(X--,D===1||D===2)(ie+=I.readSVarint())<_e&&(_e=ie),ie>Xe&&(Xe=ie),(pe+=I.readSVarint())Et&&(Et=pe);else if(D!==7)throw new Error("unknown command "+D)}return[_e,ct,Xe,Et]},Yi.prototype.toGeoJSON=function(I,T,D){var X,ie,pe=this.extent*Math.pow(2,D),_e=this.extent*I,Xe=this.extent*T,ct=this.loadGeometry(),Et=Yi.types[this.type];function Yt(Rr){for(var Jr=0;Jr>3;ie=_e===1?X.readString():_e===2?X.readFloat():_e===3?X.readDouble():_e===4?X.readVarint64():_e===5?X.readVarint():_e===6?X.readSVarint():_e===7?X.readBoolean():null}return ie})(D))}Pn.prototype.feature=function(I){if(I<0||I>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[I];var T=this._pbf.readVarint()+this._pbf.pos;return new ca(this._pbf,T,this.extent,this._keys,this._values)};var xa=Tn;function Zo(I,T,D){if(I===3){var X=new xa(D,D.readVarint()+D.pos);X.length&&(T[X.name]=X)}}Br.VectorTile=function(I,T){this.layers=I.readFields(Zo,{},T)},Br.VectorTileFeature=Cn,Br.VectorTileLayer=Tn;let iu=Br.VectorTileFeature.types,yu=Math.pow(2,13);function Fu(I,T,D,X,ie,pe,_e,Xe){I.emplaceBack(T,D,2*Math.floor(X*yu)+_e,ie*yu*2,pe*yu*2,Math.round(Xe))}class vu{constructor(T){this.zoom=T.zoom,this.overscaling=T.overscaling,this.layers=T.layers,this.layerIds=this.layers.map((D=>D.id)),this.index=T.index,this.hasPattern=!1,this.layoutVertexArray=new $u,this.centroidVertexArray=new nu,this.indexArray=new le,this.programConfigurations=new Vu(T.layers,T.zoom),this.segments=new ut,this.stateDependentLayerIds=this.layers.filter((D=>D.isStateDependent())).map((D=>D.id))}populate(T,D,X){this.features=[],this.hasPattern=Tt("fill-extrusion",this.layers,D);for(let{feature:ie,id:pe,index:_e,sourceLayerIndex:Xe}of T){let ct=this.layers[0]._featureFilter.needGeometry,Et=hf(ie,ct);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Et,X))continue;let Yt={id:pe,sourceLayerIndex:Xe,index:_e,geometry:ct?Et.geometry:lf(ie),properties:ie.properties,type:ie.type,patterns:{}};this.hasPattern?this.features.push(Xt("fill-extrusion",this.layers,Yt,this.zoom,D)):this.addFeature(Yt,Yt.geometry,_e,X,{}),D.featureIndex.insert(ie,Yt.geometry,_e,Xe,this.index,!0)}}addFeatures(T,D,X){for(let ie of this.features){let{geometry:pe}=ie;this.addFeature(ie,pe,ie.index,D,X)}}update(T,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(T,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(T){this.uploaded||(this.layoutVertexBuffer=T.createVertexBuffer(this.layoutVertexArray,Ar),this.centroidVertexBuffer=T.createVertexBuffer(this.centroidVertexArray,Pt.members,!0),this.indexBuffer=T.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(T),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(T,D,X,ie,pe){for(let _e of Ys(D,500)){let Xe={x:0,y:0,vertexCount:0},ct=0;for(let Jr of _e)ct+=Jr.length;let Et=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Jr of _e){if(Jr.length===0||Ju(Jr))continue;let li=0;for(let Gi=0;Gi=1){let Za=Jr[Gi-1];if(!zu(fn,Za)){Et.vertexLength+4>ut.MAX_VERTEX_ARRAY_LENGTH&&(Et=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Rn=fn.sub(Za)._perp()._unit(),La=Za.dist(fn);li+La>32768&&(li=0),Fu(this.layoutVertexArray,fn.x,fn.y,Rn.x,Rn.y,0,0,li),Fu(this.layoutVertexArray,fn.x,fn.y,Rn.x,Rn.y,0,1,li),Xe.x+=2*fn.x,Xe.y+=2*fn.y,Xe.vertexCount+=2,li+=La,Fu(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,0,li),Fu(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,1,li),Xe.x+=2*Za.x,Xe.y+=2*Za.y,Xe.vertexCount+=2;let So=Et.vertexLength;this.indexArray.emplaceBack(So,So+2,So+1),this.indexArray.emplaceBack(So+1,So+2,So+3),Et.vertexLength+=4,Et.primitiveLength+=2}}}}if(Et.vertexLength+ct>ut.MAX_VERTEX_ARRAY_LENGTH&&(Et=this.segments.prepareSegment(ct,this.layoutVertexArray,this.indexArray)),iu[T.type]!=="Polygon")continue;let Yt=[],hr=[],Tr=Et.vertexLength;for(let Jr of _e)if(Jr.length!==0){Jr!==_e[0]&&hr.push(Yt.length/2);for(let li=0;liWl)||I.y===T.y&&(I.y<0||I.y>Wl)}function Ju(I){return I.every((T=>T.x<0))||I.every((T=>T.x>Wl))||I.every((T=>T.y<0))||I.every((T=>T.y>Wl))}let Uf;Si("FillExtrusionBucket",vu,{omit:["layers","features"]});var wd={get paint(){return Uf=Uf||new ue({"fill-extrusion-opacity":new ms(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Bs(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Xl(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Bs(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Bs(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ms(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ad extends q{constructor(T){super(T,wd)}createBucket(T){return new vu(T)}queryRadius(){return Ls(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(T,D,X,ie,pe,_e,Xe,ct){let Et=ua(T,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),_e.angle,Xe),Yt=this.paint.get("fill-extrusion-height").evaluate(D,X),hr=this.paint.get("fill-extrusion-base").evaluate(D,X),Tr=(function(Jr,li,Gi,fn){let Za=[];for(let Rn of Jr){let La=[Rn.x,Rn.y,0,1];hs(La,La,li),Za.push(new l(La[0]/La[3],La[1]/La[3]))}return Za})(Et,ct),Rr=(function(Jr,li,Gi,fn){let Za=[],Rn=[],La=fn[8]*li,So=fn[9]*li,kl=fn[10]*li,mu=fn[11]*li,Iu=fn[8]*Gi,su=fn[9]*Gi,yl=fn[10]*Gi,Eu=fn[11]*Gi;for(let bu of Jr){let _u=[],Xs=[];for(let Lu of bu){let xu=Lu.x,qu=Lu.y,vc=fn[0]*xu+fn[4]*qu+fn[12],cc=fn[1]*xu+fn[5]*qu+fn[13],Rh=fn[2]*xu+fn[6]*qu+fn[14],Qp=fn[3]*xu+fn[7]*qu+fn[15],fd=Rh+kl,Dh=Qp+mu,Wd=vc+Iu,jd=cc+su,Xd=Rh+yl,$c=Qp+Eu,Fh=new l((vc+La)/Dh,(cc+So)/Dh);Fh.z=fd/Dh,_u.push(Fh);let Cd=new l(Wd/$c,jd/$c);Cd.z=Xd/$c,Xs.push(Cd)}Za.push(_u),Rn.push(Xs)}return[Za,Rn]})(ie,hr,Yt,ct);return(function(Jr,li,Gi){let fn=1/0;Bt(Gi,li)&&(fn=Kp(Gi,li[0]));for(let Za=0;ZaD.id)),this.index=T.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((D=>{this.gradients[D.id]={}})),this.layoutVertexArray=new Ku,this.layoutVertexArray2=new Wu,this.indexArray=new le,this.programConfigurations=new Vu(T.layers,T.zoom),this.segments=new ut,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((D=>D.isStateDependent())).map((D=>D.id))}populate(T,D,X){this.hasPattern=Tt("line",this.layers,D);let ie=this.layers[0].layout.get("line-sort-key"),pe=!ie.isConstant(),_e=[];for(let{feature:Xe,id:ct,index:Et,sourceLayerIndex:Yt}of T){let hr=this.layers[0]._featureFilter.needGeometry,Tr=hf(Xe,hr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Tr,X))continue;let Rr=pe?ie.evaluate(Tr,{},X):void 0,Jr={id:ct,properties:Xe.properties,type:Xe.type,sourceLayerIndex:Yt,index:Et,geometry:hr?Tr.geometry:lf(Xe),patterns:{},sortKey:Rr};_e.push(Jr)}pe&&_e.sort(((Xe,ct)=>Xe.sortKey-ct.sortKey));for(let Xe of _e){let{geometry:ct,index:Et,sourceLayerIndex:Yt}=Xe;if(this.hasPattern){let hr=Xt("line",this.layers,Xe,this.zoom,D);this.patternFeatures.push(hr)}else this.addFeature(Xe,ct,Et,X,{});D.featureIndex.insert(T[Et].feature,ct,Et,Yt,this.index)}}update(T,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(T,D,this.stateDependentLayers,X)}addFeatures(T,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(T){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=T.createVertexBuffer(this.layoutVertexArray2,yv)),this.layoutVertexBuffer=T.createVertexBuffer(this.layoutVertexArray,mv),this.indexBuffer=T.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(T),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(T){if(T.properties&&Object.prototype.hasOwnProperty.call(T.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(T.properties,"mapbox_clip_end"))return{start:+T.properties.mapbox_clip_start,end:+T.properties.mapbox_clip_end}}addFeature(T,D,X,ie,pe){let _e=this.layers[0].layout,Xe=_e.get("line-join").evaluate(T,{}),ct=_e.get("line-cap"),Et=_e.get("line-miter-limit"),Yt=_e.get("line-round-limit");this.lineClips=this.lineFeatureClips(T);for(let hr of D)this.addLine(hr,T,Xe,ct,Et,Yt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,T,X,pe,ie)}addLine(T,D,X,ie,pe,_e){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let fn=0;fn=2&&T[ct-1].equals(T[ct-2]);)ct--;let Et=0;for(;Et0;if(mu&&fn>Et){let Eu=Tr.dist(Rr);if(Eu>2*Yt){let bu=Tr.sub(Tr.sub(Rr)._mult(Yt/Eu)._round());this.updateDistance(Rr,bu),this.addCurrentVertex(bu,li,0,0,hr),Rr=bu}}let su=Rr&&Jr,yl=su?X:Xe?"butt":ie;if(su&&yl==="round"&&(So<_e?yl="miter":So<=2&&(yl="fakeround")),yl==="miter"&&So>pe&&(yl="bevel"),yl==="bevel"&&(So>2&&(yl="flipbevel"),So100)Za=Gi.mult(-1);else{let Eu=So*li.add(Gi).mag()/li.sub(Gi).mag();Za._perp()._mult(Eu*(Iu?-1:1))}this.addCurrentVertex(Tr,Za,0,0,hr),this.addCurrentVertex(Tr,Za.mult(-1),0,0,hr)}else if(yl==="bevel"||yl==="fakeround"){let Eu=-Math.sqrt(So*So-1),bu=Iu?Eu:0,_u=Iu?0:Eu;if(Rr&&this.addCurrentVertex(Tr,li,bu,_u,hr),yl==="fakeround"){let Xs=Math.round(180*kl/Math.PI/20);for(let Lu=1;Lu2*Yt){let bu=Tr.add(Jr.sub(Tr)._mult(Yt/Eu)._round());this.updateDistance(Tr,bu),this.addCurrentVertex(bu,Gi,0,0,hr),Tr=bu}}}}addCurrentVertex(T,D,X,ie,pe,_e=!1){let Xe=D.y*ie-D.x,ct=-D.y-D.x*ie;this.addHalfVertex(T,D.x+D.y*X,D.y-D.x*X,_e,!1,X,pe),this.addHalfVertex(T,Xe,ct,_e,!0,-ie,pe),this.distance>Pp/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(T,D,X,ie,pe,_e))}addHalfVertex({x:T,y:D},X,ie,pe,_e,Xe,ct){let Et=.5*(this.lineClips?this.scaledDistance*(Pp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((T<<1)+(pe?1:0),(D<<1)+(_e?1:0),Math.round(63*X)+128,Math.round(63*ie)+128,1+(Xe===0?0:Xe<0?-1:1)|(63&Et)<<2,Et>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Yt=ct.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Yt),ct.primitiveLength++),_e?this.e2=Yt:this.e1=Yt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(T,D){this.distance+=T.dist(D),this.updateScaledDistance()}}let zp,dg;Si("LineBucket",Jp,{omit:["layers","patternFeatures"]});var dm={get paint(){return dg=dg||new ue({"line-opacity":new Bs(ce.paint_line["line-opacity"]),"line-color":new Bs(ce.paint_line["line-color"]),"line-translate":new ms(ce.paint_line["line-translate"]),"line-translate-anchor":new ms(ce.paint_line["line-translate-anchor"]),"line-width":new Bs(ce.paint_line["line-width"]),"line-gap-width":new Bs(ce.paint_line["line-gap-width"]),"line-offset":new Bs(ce.paint_line["line-offset"]),"line-blur":new Bs(ce.paint_line["line-blur"]),"line-dasharray":new Gl(ce.paint_line["line-dasharray"]),"line-pattern":new Xl(ce.paint_line["line-pattern"]),"line-gradient":new Nl(ce.paint_line["line-gradient"])})},get layout(){return zp=zp||new ue({"line-cap":new ms(ce.layout_line["line-cap"]),"line-join":new Bs(ce.layout_line["line-join"]),"line-miter-limit":new ms(ce.layout_line["line-miter-limit"]),"line-round-limit":new ms(ce.layout_line["line-round-limit"]),"line-sort-key":new Bs(ce.layout_line["line-sort-key"])})}};class vh extends Bs{possiblyEvaluate(T,D){return D=new cs(Math.floor(D.zoom),{now:D.now,fadeDuration:D.fadeDuration,zoomHistory:D.zoomHistory,transition:D.transition}),super.possiblyEvaluate(T,D)}evaluate(T,D,X,ie){return D=L({},D,{zoom:Math.floor(D.zoom)}),super.evaluate(T,D,X,ie)}}let pm;class pg extends q{constructor(T){super(T,dm),this.gradientVersion=0,pm||(pm=new vh(dm.paint.properties["line-width"].specification),pm.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(T){if(T==="line-gradient"){let D=this.gradientExpression();this.stepInterpolant=!!(function(X){return X._styleExpression!==void 0})(D)&&D._styleExpression.expression instanceof Xi,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(T,D){super.recalculate(T,D),this.paint._values["line-floorwidth"]=pm.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,T)}createBucket(T){return new Jp(T)}queryRadius(T){let D=T,X=Jh(wn("line-width",this,D),wn("line-gap-width",this,D)),ie=wn("line-offset",this,D);return X/2+Math.abs(ie)+Ls(this.paint.get("line-translate"))}queryIntersectsFeature(T,D,X,ie,pe,_e,Xe){let ct=ua(T,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),_e.angle,Xe),Et=Xe/2*Jh(this.paint.get("line-width").evaluate(D,X),this.paint.get("line-gap-width").evaluate(D,X)),Yt=this.paint.get("line-offset").evaluate(D,X);return Yt&&(ie=(function(hr,Tr){let Rr=[];for(let Jr=0;Jr=3){for(let Gi=0;Gi0?T+2*I:I}let ay=Ue([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),C1=Ue([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ue([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let L1=Ue([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Ue([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let vg=Ue([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),oy=Ue([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function sy(I,T,D){return I.sections.forEach((X=>{X.text=(function(ie,pe,_e){let Xe=pe.layout.get("text-transform").evaluate(_e,{});return Xe==="uppercase"?ie=ie.toLocaleUpperCase():Xe==="lowercase"&&(ie=ie.toLocaleLowerCase()),Js.applyArabicShaping&&(ie=Js.applyArabicShaping(ie)),ie})(X.text,T,D)})),I}Ue([{name:"triangle",components:3,type:"Uint16"}]),Ue([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ue([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Ue([{type:"Float32",name:"offsetX"}]),Ue([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Ue([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let wc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var jf=24,Ed=ic,mg=function(I,T,D,X,ie){var pe,_e,Xe=8*ie-X-1,ct=(1<>1,Yt=-7,hr=D?ie-1:0,Tr=D?-1:1,Rr=I[T+hr];for(hr+=Tr,pe=Rr&(1<<-Yt)-1,Rr>>=-Yt,Yt+=Xe;Yt>0;pe=256*pe+I[T+hr],hr+=Tr,Yt-=8);for(_e=pe&(1<<-Yt)-1,pe>>=-Yt,Yt+=X;Yt>0;_e=256*_e+I[T+hr],hr+=Tr,Yt-=8);if(pe===0)pe=1-Et;else{if(pe===ct)return _e?NaN:1/0*(Rr?-1:1);_e+=Math.pow(2,X),pe-=Et}return(Rr?-1:1)*_e*Math.pow(2,pe-X)},P1=function(I,T,D,X,ie,pe){var _e,Xe,ct,Et=8*pe-ie-1,Yt=(1<>1,Tr=ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Rr=X?0:pe-1,Jr=X?1:-1,li=T<0||T===0&&1/T<0?1:0;for(T=Math.abs(T),isNaN(T)||T===1/0?(Xe=isNaN(T)?1:0,_e=Yt):(_e=Math.floor(Math.log(T)/Math.LN2),T*(ct=Math.pow(2,-_e))<1&&(_e--,ct*=2),(T+=_e+hr>=1?Tr/ct:Tr*Math.pow(2,1-hr))*ct>=2&&(_e++,ct/=2),_e+hr>=Yt?(Xe=0,_e=Yt):_e+hr>=1?(Xe=(T*ct-1)*Math.pow(2,ie),_e+=hr):(Xe=T*Math.pow(2,hr-1)*Math.pow(2,ie),_e=0));ie>=8;I[D+Rr]=255&Xe,Rr+=Jr,Xe/=256,ie-=8);for(_e=_e<0;I[D+Rr]=255&_e,Rr+=Jr,_e/=256,Et-=8);I[D+Rr-Jr]|=128*li};function ic(I){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(I)?I:new Uint8Array(I||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var Kx=4294967296,ly=1/Kx,Uw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Ip(I){return I.type===ic.Bytes?I.readVarint()+I.pos:I.pos+1}function uy(I,T,D){return D?4294967296*T+(I>>>0):4294967296*(T>>>0)+(I>>>0)}function Vw(I,T,D){var X=T<=16383?1:T<=2097151?2:T<=268435455?3:Math.floor(Math.log(T)/(7*Math.LN2));D.realloc(X);for(var ie=D.pos-1;ie>=I;ie--)D.buf[ie+X]=D.buf[ie]}function Jx(I,T){for(var D=0;D>>8,I[D+2]=T>>>16,I[D+3]=T>>>24}function kC(I,T){return(I[T]|I[T+1]<<8|I[T+2]<<16)+(I[T+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(I,T,D){for(D=D||this.length;this.pos>3,pe=this.pos;this.type=7&X,I(ie,T,this),this.pos===pe&&this.skip(X)}return T},readMessage:function(I,T){return this.readFields(I,T,this.readVarint()+this.pos)},readFixed32:function(){var I=yg(this.buf,this.pos);return this.pos+=4,I},readSFixed32:function(){var I=kC(this.buf,this.pos);return this.pos+=4,I},readFixed64:function(){var I=yg(this.buf,this.pos)+yg(this.buf,this.pos+4)*Kx;return this.pos+=8,I},readSFixed64:function(){var I=yg(this.buf,this.pos)+kC(this.buf,this.pos+4)*Kx;return this.pos+=8,I},readFloat:function(){var I=mg(this.buf,this.pos,!0,23,4);return this.pos+=4,I},readDouble:function(){var I=mg(this.buf,this.pos,!0,52,8);return this.pos+=8,I},readVarint:function(I){var T,D,X=this.buf;return T=127&(D=X[this.pos++]),D<128?T:(T|=(127&(D=X[this.pos++]))<<7,D<128?T:(T|=(127&(D=X[this.pos++]))<<14,D<128?T:(T|=(127&(D=X[this.pos++]))<<21,D<128?T:(function(ie,pe,_e){var Xe,ct,Et=_e.buf;if(Xe=(112&(ct=Et[_e.pos++]))>>4,ct<128||(Xe|=(127&(ct=Et[_e.pos++]))<<3,ct<128)||(Xe|=(127&(ct=Et[_e.pos++]))<<10,ct<128)||(Xe|=(127&(ct=Et[_e.pos++]))<<17,ct<128)||(Xe|=(127&(ct=Et[_e.pos++]))<<24,ct<128)||(Xe|=(1&(ct=Et[_e.pos++]))<<31,ct<128))return uy(ie,Xe,pe);throw new Error("Expected varint not more than 10 bytes")})(T|=(15&(D=X[this.pos]))<<28,I,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var I=this.readVarint();return I%2==1?(I+1)/-2:I/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var I=this.readVarint()+this.pos,T=this.pos;return this.pos=I,I-T>=12&&Uw?(function(D,X,ie){return Uw.decode(D.subarray(X,ie))})(this.buf,T,I):(function(D,X,ie){for(var pe="",_e=X;_e239?4:Yt>223?3:Yt>191?2:1;if(_e+Tr>ie)break;Tr===1?Yt<128&&(hr=Yt):Tr===2?(192&(Xe=D[_e+1]))==128&&(hr=(31&Yt)<<6|63&Xe)<=127&&(hr=null):Tr===3?(ct=D[_e+2],(192&(Xe=D[_e+1]))==128&&(192&ct)==128&&((hr=(15&Yt)<<12|(63&Xe)<<6|63&ct)<=2047||hr>=55296&&hr<=57343)&&(hr=null)):Tr===4&&(ct=D[_e+2],Et=D[_e+3],(192&(Xe=D[_e+1]))==128&&(192&ct)==128&&(192&Et)==128&&((hr=(15&Yt)<<18|(63&Xe)<<12|(63&ct)<<6|63&Et)<=65535||hr>=1114112)&&(hr=null)),hr===null?(hr=65533,Tr=1):hr>65535&&(hr-=65536,pe+=String.fromCharCode(hr>>>10&1023|55296),hr=56320|1023&hr),pe+=String.fromCharCode(hr),_e+=Tr}return pe})(this.buf,T,I)},readBytes:function(){var I=this.readVarint()+this.pos,T=this.buf.subarray(this.pos,I);return this.pos=I,T},readPackedVarint:function(I,T){if(this.type!==ic.Bytes)return I.push(this.readVarint(T));var D=Ip(this);for(I=I||[];this.pos127;);else if(T===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(T===ic.Fixed32)this.pos+=4;else{if(T!==ic.Fixed64)throw new Error("Unimplemented type: "+T);this.pos+=8}},writeTag:function(I,T){this.writeVarint(I<<3|T)},realloc:function(I){for(var T=this.length||16;T268435455||I<0?(function(T,D){var X,ie;if(T>=0?(X=T%4294967296|0,ie=T/4294967296|0):(ie=~(-T/4294967296),4294967295^(X=~(-T%4294967296))?X=X+1|0:(X=0,ie=ie+1|0)),T>=18446744073709552e3||T<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");D.realloc(10),(function(pe,_e,Xe){Xe.buf[Xe.pos++]=127&pe|128,pe>>>=7,Xe.buf[Xe.pos++]=127&pe|128,pe>>>=7,Xe.buf[Xe.pos++]=127&pe|128,pe>>>=7,Xe.buf[Xe.pos++]=127&pe|128,Xe.buf[Xe.pos]=127&(pe>>>=7)})(X,0,D),(function(pe,_e){var Xe=(7&pe)<<4;_e.buf[_e.pos++]|=Xe|((pe>>>=3)?128:0),pe&&(_e.buf[_e.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(_e.buf[_e.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(_e.buf[_e.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(_e.buf[_e.pos++]=127&pe|((pe>>>=7)?128:0),pe&&(_e.buf[_e.pos++]=127&pe)))))})(ie,D)})(I,this):(this.realloc(4),this.buf[this.pos++]=127&I|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=I>>>7&127))))},writeSVarint:function(I){this.writeVarint(I<0?2*-I-1:2*I)},writeBoolean:function(I){this.writeVarint(!!I)},writeString:function(I){I=String(I),this.realloc(4*I.length),this.pos++;var T=this.pos;this.pos=(function(X,ie,pe){for(var _e,Xe,ct=0;ct55295&&_e<57344){if(!Xe){_e>56319||ct+1===ie.length?(X[pe++]=239,X[pe++]=191,X[pe++]=189):Xe=_e;continue}if(_e<56320){X[pe++]=239,X[pe++]=191,X[pe++]=189,Xe=_e;continue}_e=Xe-55296<<10|_e-56320|65536,Xe=null}else Xe&&(X[pe++]=239,X[pe++]=191,X[pe++]=189,Xe=null);_e<128?X[pe++]=_e:(_e<2048?X[pe++]=_e>>6|192:(_e<65536?X[pe++]=_e>>12|224:(X[pe++]=_e>>18|240,X[pe++]=_e>>12&63|128),X[pe++]=_e>>6&63|128),X[pe++]=63&_e|128)}return pe})(this.buf,I,this.pos);var D=this.pos-T;D>=128&&Vw(T,D,this),this.pos=T-1,this.writeVarint(D),this.pos+=D},writeFloat:function(I){this.realloc(4),P1(this.buf,I,this.pos,!0,23,4),this.pos+=4},writeDouble:function(I){this.realloc(8),P1(this.buf,I,this.pos,!0,52,8),this.pos+=8},writeBytes:function(I){var T=I.length;this.writeVarint(T),this.realloc(T);for(var D=0;D=128&&Vw(D,X,this),this.pos=D-1,this.writeVarint(X),this.pos+=X},writeMessage:function(I,T,D){this.writeTag(I,ic.Bytes),this.writeRawMessage(T,D)},writePackedVarint:function(I,T){T.length&&this.writeMessage(I,Jx,T)},writePackedSVarint:function(I,T){T.length&&this.writeMessage(I,rB,T)},writePackedBoolean:function(I,T){T.length&&this.writeMessage(I,aB,T)},writePackedFloat:function(I,T){T.length&&this.writeMessage(I,iB,T)},writePackedDouble:function(I,T){T.length&&this.writeMessage(I,nB,T)},writePackedFixed32:function(I,T){T.length&&this.writeMessage(I,QQ,T)},writePackedSFixed32:function(I,T){T.length&&this.writeMessage(I,oB,T)},writePackedFixed64:function(I,T){T.length&&this.writeMessage(I,sB,T)},writePackedSFixed64:function(I,T){T.length&&this.writeMessage(I,lB,T)},writeBytesField:function(I,T){this.writeTag(I,ic.Bytes),this.writeBytes(T)},writeFixed32Field:function(I,T){this.writeTag(I,ic.Fixed32),this.writeFixed32(T)},writeSFixed32Field:function(I,T){this.writeTag(I,ic.Fixed32),this.writeSFixed32(T)},writeFixed64Field:function(I,T){this.writeTag(I,ic.Fixed64),this.writeFixed64(T)},writeSFixed64Field:function(I,T){this.writeTag(I,ic.Fixed64),this.writeSFixed64(T)},writeVarintField:function(I,T){this.writeTag(I,ic.Varint),this.writeVarint(T)},writeSVarintField:function(I,T){this.writeTag(I,ic.Varint),this.writeSVarint(T)},writeStringField:function(I,T){this.writeTag(I,ic.Bytes),this.writeString(T)},writeFloatField:function(I,T){this.writeTag(I,ic.Fixed32),this.writeFloat(T)},writeDoubleField:function(I,T){this.writeTag(I,ic.Fixed64),this.writeDouble(T)},writeBooleanField:function(I,T){this.writeVarintField(I,!!T)}};var cM=o(Ed);let hM=3;function eee(I,T,D){I===1&&D.readMessage(uB,T)}function uB(I,T,D){if(I===3){let{id:X,bitmap:ie,width:pe,height:_e,left:Xe,top:ct,advance:Et}=D.readMessage(CC,{});T.push({id:X,bitmap:new ul({width:pe+2*hM,height:_e+2*hM},ie),metrics:{width:pe,height:_e,left:Xe,top:ct,advance:Et}})}}function CC(I,T,D){I===1?T.id=D.readVarint():I===2?T.bitmap=D.readBytes():I===3?T.width=D.readVarint():I===4?T.height=D.readVarint():I===5?T.left=D.readSVarint():I===6?T.top=D.readSVarint():I===7&&(T.advance=D.readVarint())}let LC=hM;function dM(I){let T=0,D=0;for(let _e of I)T+=_e.w*_e.h,D=Math.max(D,_e.w);I.sort(((_e,Xe)=>Xe.h-_e.h));let X=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(T/.95)),D),h:1/0}],ie=0,pe=0;for(let _e of I)for(let Xe=X.length-1;Xe>=0;Xe--){let ct=X[Xe];if(!(_e.w>ct.w||_e.h>ct.h)){if(_e.x=ct.x,_e.y=ct.y,pe=Math.max(pe,_e.y+_e.h),ie=Math.max(ie,_e.x+_e.w),_e.w===ct.w&&_e.h===ct.h){let Et=X.pop();Xe=0&&X>=T&&Ww[this.text.charCodeAt(X)];X--)D--;this.text=this.text.substring(T,D),this.sectionIndex=this.sectionIndex.slice(T,D)}substring(T,D){let X=new z1;return X.text=this.text.substring(T,D),X.sectionIndex=this.sectionIndex.slice(T,D),X.sections=this.sections,X}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((T,D)=>Math.max(T,this.sections[D].scale)),0)}addTextSection(T,D){this.text+=T.text,this.sections.push(Qx.forText(T.scale,T.fontStack||D));let X=this.sections.length-1;for(let ie=0;ie=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function eb(I,T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr){let li=z1.fromFeature(I,ie),Gi;hr===i.ah.vertical&&li.verticalizePunctuation();let{processBidirectionalText:fn,processStyledBidirectionalText:Za}=Js;if(fn&&li.sections.length===1){Gi=[];let So=fn(li.toString(),I1(li,Et,pe,T,X,Rr));for(let kl of So){let mu=new z1;mu.text=kl,mu.sections=li.sections;for(let Iu=0;Iu0&&tv>ih&&(ih=tv)}else{let Rc=mu[Xf.fontStack],ch=Rc&&Rc[mc];if(ch&&ch.rect)q1=ch.rect,Wc=ch.metrics;else{let tv=kl[Xf.fontStack],gm=tv&&tv[mc];if(!gm)continue;Wc=gm.metrics}Fp=(Fh-Xf.scale)*jf}ev?(So.verticalizable=!0,$h.push({glyph:mc,imageName:v0,x:qu,y:vc+Fp,vertical:ev,scale:Xf.scale,fontStack:Xf.fontStack,sectionIndex:Ac,metrics:Wc,rect:q1}),qu+=Gv*Xf.scale+Xs):($h.push({glyph:mc,imageName:v0,x:qu,y:vc+Fp,vertical:ev,scale:Xf.scale,fontStack:Xf.fontStack,sectionIndex:Ac,metrics:Wc,rect:q1}),qu+=Wc.advance*Xf.scale+Xs)}$h.length!==0&&(cc=Math.max(qu-Xs,cc),fy($h,0,$h.length-1,Qp,ih)),qu=0;let Dp=yl*Fh+ih;cd.lineOffset=Math.max(ih,Cd),vc+=Dp,Rh=Math.max(Dp,Rh),++fd}var Dh;let Wd=vc-Ih,{horizontalAlign:jd,verticalAlign:Xd}=Xw(Eu);(function($c,Fh,Cd,cd,$h,ih,Dp,cp,Xf){let Ac=(Fh-Cd)*$h,mc=0;mc=ih!==Dp?-cp*cd-Ih:(-cd*Xf+.5)*Dp;for(let Fp of $c)for(let Wc of Fp.positionedGlyphs)Wc.x+=Ac,Wc.y+=mc})(So.positionedLines,Qp,jd,Xd,cc,Rh,yl,Wd,su.length),So.top+=-Xd*Wd,So.bottom=So.top+Wd,So.left+=-jd*cc,So.right=So.left+cc})(La,T,D,X,Gi,_e,Xe,ct,hr,Et,Tr,Jr),!(function(So){for(let kl of So)if(kl.positionedGlyphs.length!==0)return!1;return!0})(Rn)&&La}let Ww={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},fB={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},cB={40:!0};function PC(I,T,D,X,ie,pe){if(T.imageName){let _e=X[T.imageName];return _e?_e.displaySize[0]*T.scale*jf/pe+ie:0}{let _e=D[T.fontStack],Xe=_e&&_e[I];return Xe?Xe.metrics.advance*T.scale+ie:0}}function zC(I,T,D,X){let ie=Math.pow(I-T,2);return X?I=0,Et=0;for(let hr=0;hrEt){let Yt=Math.ceil(pe/Et);ie*=Yt/_e,_e=Yt}return{x1:X,y1:ie,x2:X+pe,y2:ie+_e}}function DC(I,T,D,X,ie,pe){let _e=I.image,Xe;if(_e.content){let Gi=_e.content,fn=_e.pixelRatio||1;Xe=[Gi[0]/fn,Gi[1]/fn,_e.displaySize[0]-Gi[2]/fn,_e.displaySize[1]-Gi[3]/fn]}let ct=T.left*pe,Et=T.right*pe,Yt,hr,Tr,Rr;D==="width"||D==="both"?(Rr=ie[0]+ct-X[3],hr=ie[0]+Et+X[1]):(Rr=ie[0]+(ct+Et-_e.displaySize[0])/2,hr=Rr+_e.displaySize[0]);let Jr=T.top*pe,li=T.bottom*pe;return D==="height"||D==="both"?(Yt=ie[1]+Jr-X[0],Tr=ie[1]+li+X[2]):(Yt=ie[1]+(Jr+li-_e.displaySize[1])/2,Tr=Yt+_e.displaySize[1]),{image:_e,top:Yt,right:hr,bottom:Tr,left:Rr,collisionPadding:Xe}}let rb=255,p0=128,cy=rb*p0;function FC(I,T){let{expression:D}=T;if(D.kind==="constant")return{kind:"constant",layoutSize:D.evaluate(new cs(I+1))};if(D.kind==="source")return{kind:"source"};{let{zoomStops:X,interpolationType:ie}=D,pe=0;for(;pe_e.id)),this.index=T.index,this.pixelRatio=T.pixelRatio,this.sourceLayerIndex=T.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=En([]),this.placementViewportMatrix=En([]);let D=this.layers[0]._unevaluatedLayout._values;this.textSizeData=FC(this.zoom,D["text-size"]),this.iconSizeData=FC(this.zoom,D["icon-size"]);let X=this.layers[0].layout,ie=X.get("symbol-sort-key"),pe=X.get("symbol-z-order");this.canOverlap=pM(X,"text-overlap","text-allow-overlap")!=="never"||pM(X,"icon-overlap","icon-allow-overlap")!=="never"||X.get("text-ignore-placement")||X.get("icon-ignore-placement"),this.sortFeaturesByKey=pe!=="viewport-y"&&!ie.isConstant(),this.sortFeaturesByY=(pe==="viewport-y"||pe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,X.get("symbol-placement")==="point"&&(this.writingModes=X.get("text-writing-mode").map((_e=>i.ah[_e]))),this.stateDependentLayerIds=this.layers.filter((_e=>_e.isStateDependent())).map((_e=>_e.id)),this.sourceID=T.sourceID}createArrays(){this.text=new yM(new Vu(this.layers,this.zoom,(T=>/^text/.test(T)))),this.icon=new yM(new Vu(this.layers,this.zoom,(T=>/^icon/.test(T)))),this.glyphOffsetArray=new au,this.lineVertexArray=new Sl,this.symbolInstances=new ml,this.textAnchorOffsets=new ql}calculateGlyphDependencies(T,D,X,ie,pe){for(let _e=0;_e0)&&(_e.value.kind!=="constant"||_e.value.value.length>0),Yt=ct.value.kind!=="constant"||!!ct.value.value||Object.keys(ct.parameters).length>0,hr=pe.get("symbol-sort-key");if(this.features=[],!Et&&!Yt)return;let Tr=D.iconDependencies,Rr=D.glyphDependencies,Jr=D.availableImages,li=new cs(this.zoom);for(let{feature:Gi,id:fn,index:Za,sourceLayerIndex:Rn}of T){let La=ie._featureFilter.needGeometry,So=hf(Gi,La);if(!ie._featureFilter.filter(li,So,X))continue;let kl,mu;if(La||(So.geometry=lf(Gi)),Et){let su=ie.getValueAndResolveTokens("text-field",So,X,Jr),yl=Nr.factory(su),Eu=this.hasRTLText=this.hasRTLText||mM(yl);(!Eu||Js.getRTLTextPluginStatus()==="unavailable"||Eu&&Js.isParsed())&&(kl=sy(yl,ie,So))}if(Yt){let su=ie.getValueAndResolveTokens("icon-image",So,X,Jr);mu=su instanceof mi?su:mi.fromString(su)}if(!kl&&!mu)continue;let Iu=this.sortFeaturesByKey?hr.evaluate(So,{},X):void 0;if(this.features.push({id:fn,text:kl,icon:mu,index:Za,sourceLayerIndex:Rn,geometry:So.geometry,properties:Gi.properties,type:dB[Gi.type],sortKey:Iu}),mu&&(Tr[mu.name]=!0),kl){let su=_e.evaluate(So,{},X).join(","),yl=pe.get("text-rotation-alignment")!=="viewport"&&pe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Eu of kl.sections)if(Eu.image)Tr[Eu.image.name]=!0;else{let bu=is(kl.toString()),_u=Eu.fontStack||su,Xs=Rr[_u]=Rr[_u]||{};this.calculateGlyphDependencies(Eu.text,Xs,yl,this.allowVerticalPlacement,bu)}}}pe.get("symbol-placement")==="line"&&(this.features=(function(Gi){let fn={},Za={},Rn=[],La=0;function So(su){Rn.push(Gi[su]),La++}function kl(su,yl,Eu){let bu=Za[su];return delete Za[su],Za[yl]=bu,Rn[bu].geometry[0].pop(),Rn[bu].geometry[0]=Rn[bu].geometry[0].concat(Eu[0]),bu}function mu(su,yl,Eu){let bu=fn[yl];return delete fn[yl],fn[su]=bu,Rn[bu].geometry[0].shift(),Rn[bu].geometry[0]=Eu[0].concat(Rn[bu].geometry[0]),bu}function Iu(su,yl,Eu){let bu=Eu?yl[0][yl[0].length-1]:yl[0][0];return`${su}:${bu.x}:${bu.y}`}for(let su=0;susu.geometry))})(this.features)),this.sortFeaturesByKey&&this.features.sort(((Gi,fn)=>Gi.sortKey-fn.sortKey))}update(T,D,X){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(T,D,this.layers,X),this.icon.programConfigurations.updatePaintArrays(T,D,this.layers,X))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(T){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(T),this.iconCollisionBox.upload(T)),this.text.upload(T,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(T,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(T,D){let X=this.lineVertexArray.length;if(T.segment!==void 0){let ie=T.dist(D[T.segment+1]),pe=T.dist(D[T.segment]),_e={};for(let Xe=T.segment+1;Xe=0;Xe--)_e[Xe]={x:D[Xe].x,y:D[Xe].y,tileUnitDistanceFromAnchor:pe},Xe>0&&(pe+=D[Xe-1].dist(D[Xe]));for(let Xe=0;Xe0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(T,D){let X=T.placedSymbolArray.get(D),ie=X.vertexStartIndex+4*X.numGlyphs;for(let pe=X.vertexStartIndex;peie[Xe]-ie[ct]||pe[ct]-pe[Xe])),_e}addToSortKeyRanges(T,D){let X=this.sortKeyRanges[this.sortKeyRanges.length-1];X&&X.sortKey===D?X.symbolInstanceEnd=T+1:this.sortKeyRanges.push({sortKey:D,symbolInstanceStart:T,symbolInstanceEnd:T+1})}sortFeatures(T){if(this.sortFeaturesByY&&this.sortedAngle!==T&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(T),this.sortedAngle=T,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let D of this.symbolInstanceIndexes){let X=this.symbolInstances.get(D);this.featureSortOrder.push(X.featureIndex),[X.rightJustifiedTextSymbolIndex,X.centerJustifiedTextSymbolIndex,X.leftJustifiedTextSymbolIndex].forEach(((ie,pe,_e)=>{ie>=0&&_e.indexOf(ie)===pe&&this.addIndicesForPlacedSymbol(this.text,ie)})),X.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,X.verticalPlacedTextSymbolIndex),X.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.placedIconSymbolIndex),X.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Jc,ib;Si("SymbolBucket",R1,{omit:["layers","collisionBoxArray","features","compareText"]}),R1.MAX_GLYPHS=65535,R1.addDynamicAttributes=vM;var Yw={get paint(){return ib=ib||new ue({"icon-opacity":new Bs(ce.paint_symbol["icon-opacity"]),"icon-color":new Bs(ce.paint_symbol["icon-color"]),"icon-halo-color":new Bs(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new Bs(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Bs(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new ms(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new ms(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new Bs(ce.paint_symbol["text-opacity"]),"text-color":new Bs(ce.paint_symbol["text-color"],{runtimeType:tt,getOverride:I=>I.textColor,hasOverride:I=>!!I.textColor}),"text-halo-color":new Bs(ce.paint_symbol["text-halo-color"]),"text-halo-width":new Bs(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new Bs(ce.paint_symbol["text-halo-blur"]),"text-translate":new ms(ce.paint_symbol["text-translate"]),"text-translate-anchor":new ms(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Jc=Jc||new ue({"symbol-placement":new ms(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new ms(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ms(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Bs(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ms(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ms(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new ms(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new ms(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new ms(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ms(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new Bs(ce.layout_symbol["icon-size"]),"icon-text-fit":new ms(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ms(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new Bs(ce.layout_symbol["icon-image"]),"icon-rotate":new Bs(ce.layout_symbol["icon-rotate"]),"icon-padding":new Bs(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new ms(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new Bs(ce.layout_symbol["icon-offset"]),"icon-anchor":new Bs(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ms(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ms(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ms(ce.layout_symbol["text-rotation-alignment"]),"text-field":new Bs(ce.layout_symbol["text-field"]),"text-font":new Bs(ce.layout_symbol["text-font"]),"text-size":new Bs(ce.layout_symbol["text-size"]),"text-max-width":new Bs(ce.layout_symbol["text-max-width"]),"text-line-height":new ms(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new Bs(ce.layout_symbol["text-letter-spacing"]),"text-justify":new Bs(ce.layout_symbol["text-justify"]),"text-radial-offset":new Bs(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ms(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Bs(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Bs(ce.layout_symbol["text-anchor"]),"text-max-angle":new ms(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new ms(ce.layout_symbol["text-writing-mode"]),"text-rotate":new Bs(ce.layout_symbol["text-rotate"]),"text-padding":new ms(ce.layout_symbol["text-padding"]),"text-keep-upright":new ms(ce.layout_symbol["text-keep-upright"]),"text-transform":new Bs(ce.layout_symbol["text-transform"]),"text-offset":new Bs(ce.layout_symbol["text-offset"]),"text-allow-overlap":new ms(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new ms(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new ms(ce.layout_symbol["text-ignore-placement"]),"text-optional":new ms(ce.layout_symbol["text-optional"])})}};class nb{constructor(T){if(T.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=T.property.overrides?T.property.overrides.runtimeType:lt,this.defaultValue=T}evaluate(T){if(T.formattedSection){let D=this.defaultValue.property.overrides;if(D&&D.hasOverride(T.formattedSection))return D.getOverride(T.formattedSection)}return T.feature&&T.featureState?this.defaultValue.evaluate(T.feature,T.featureState):this.defaultValue.property.specification.default}eachChild(T){this.defaultValue.isConstant()||T(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Si("FormatSectionOverride",nb,{omit:["defaultValue"]});class gg extends q{constructor(T){super(T,Yw)}recalculate(T,D){if(super.recalculate(T,D),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let X=this.layout.get("text-writing-mode");if(X){let ie=[];for(let pe of X)ie.indexOf(pe)<0&&ie.push(pe);this.layout._values["text-writing-mode"]=ie}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(T,D,X,ie){let pe=this.layout.get(T).evaluate(D,{},X,ie),_e=this._unevaluatedLayout._values[T];return _e.isDataDriven()||Qs(_e.value)||!pe?pe:(function(Xe,ct){return ct.replace(/{([^{}]+)}/g,((Et,Yt)=>Xe&&Yt in Xe?String(Xe[Yt]):""))})(D.properties,pe)}createBucket(T){return new R1(T)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let T of Yw.paint.overridableProperties){if(!gg.hasPaintOverride(this.layout,T))continue;let D=this.paint.get(T),X=new nb(D),ie=new Ma(X,D.property.specification),pe=null;pe=D.value.kind==="constant"||D.value.kind==="source"?new gs("source",ie):new Vo("composite",ie,D.value.zoomStops),this.paint._values[T]=new Al(D.property,pe,D.parameters)}}_handleOverridablePaintPropertyUpdate(T,D,X){return!(!this.layout||D.isDataDriven()||X.isDataDriven())&&gg.hasPaintOverride(this.layout,T)}static hasPaintOverride(T,D){let X=T.get("text-field"),ie=Yw.paint.properties[D],pe=!1,_e=Xe=>{for(let ct of Xe)if(ie.overrides&&ie.overrides.hasOverride(ct))return void(pe=!0)};if(X.value.kind==="constant"&&X.value.value instanceof Nr)_e(X.value.value.sections);else if(X.value.kind==="source"){let Xe=Et=>{pe||(Et instanceof Yr&&ti(Et.value)===yr?_e(Et.value.sections):Et instanceof wa?_e(Et.sections):Et.eachChild(Xe))},ct=X.value;ct._styleExpression&&Xe(ct._styleExpression.expression)}return pe}}let OC;var ab={get paint(){return OC=OC||new ue({"background-color":new ms(ce.paint_background["background-color"]),"background-pattern":new Gl(ce.paint_background["background-pattern"]),"background-opacity":new ms(ce.paint_background["background-opacity"])})}};class vB extends q{constructor(T){super(T,ab)}}let gM;var BC={get paint(){return gM=gM||new ue({"raster-opacity":new ms(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new ms(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ms(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ms(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new ms(ce.paint_raster["raster-saturation"]),"raster-contrast":new ms(ce.paint_raster["raster-contrast"]),"raster-resampling":new ms(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new ms(ce.paint_raster["raster-fade-duration"])})}};class ob extends q{constructor(T){super(T,BC)}}class _M extends q{constructor(T){super(T,{}),this.onAdd=D=>{this.implementation.onAdd&&this.implementation.onAdd(D,D.painter.context.gl)},this.onRemove=D=>{this.implementation.onRemove&&this.implementation.onRemove(D,D.painter.context.gl)},this.implementation=T}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class xM{constructor(T){this._methodToThrottle=T,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._methodToThrottle()}),0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let bM=63710088e-1;class vm{constructor(T,D){if(isNaN(T)||isNaN(D))throw new Error(`Invalid LngLat object: (${T}, ${D})`);if(this.lng=+T,this.lat=+D,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new vm(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(T){let D=Math.PI/180,X=this.lat*D,ie=T.lat*D,pe=Math.sin(X)*Math.sin(ie)+Math.cos(X)*Math.cos(ie)*Math.cos((T.lng-this.lng)*D);return bM*Math.acos(Math.min(pe,1))}static convert(T){if(T instanceof vm)return T;if(Array.isArray(T)&&(T.length===2||T.length===3))return new vm(Number(T[0]),Number(T[1]));if(!Array.isArray(T)&&typeof T=="object"&&T!==null)return new vm(Number("lng"in T?T.lng:T.lon),Number(T.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let D1=2*Math.PI*bM;function qC(I){return D1*Math.cos(I*Math.PI/180)}function Kw(I){return(180+I)/360}function NC(I){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I*Math.PI/360)))/360}function Jw(I,T){return I/qC(T)}function sb(I){return 360/Math.PI*Math.atan(Math.exp((180-360*I)*Math.PI/180))-90}class lb{constructor(T,D,X=0){this.x=+T,this.y=+D,this.z=+X}static fromLngLat(T,D=0){let X=vm.convert(T);return new lb(Kw(X.lng),NC(X.lat),Jw(D,X.lat))}toLngLat(){return new vm(360*this.x-180,sb(this.y))}toAltitude(){return this.z*qC(sb(this.y))}meterInMercatorCoordinateUnits(){return 1/D1*(T=sb(this.y),1/Math.cos(T*Math.PI/180));var T}}function gv(I,T,D){var X=2*Math.PI*6378137/256/Math.pow(2,D);return[I*X-2*Math.PI*6378137/2,T*X-2*Math.PI*6378137/2]}class wM{constructor(T,D,X){if(!(function(ie,pe,_e){return!(ie<0||ie>25||_e<0||_e>=Math.pow(2,ie)||pe<0||pe>=Math.pow(2,ie))})(T,D,X))throw new Error(`x=${D}, y=${X}, z=${T} outside of bounds. 0<=x<${Math.pow(2,T)}, 0<=y<${Math.pow(2,T)} 0<=z<=25 `);this.z=T,this.x=D,this.y=X,this.key=ub(0,T,T,D,X)}equals(T){return this.z===T.z&&this.x===T.x&&this.y===T.y}url(T,D,X){let ie=(_e=this.y,Xe=this.z,ct=gv(256*(pe=this.x),256*(_e=Math.pow(2,Xe)-_e-1),Xe),Et=gv(256*(pe+1),256*(_e+1),Xe),ct[0]+","+ct[1]+","+Et[0]+","+Et[1]);var pe,_e,Xe,ct,Et;let Yt=(function(hr,Tr,Rr){let Jr,li="";for(let Gi=hr;Gi>0;Gi--)Jr=1<1?"@2x":"").replace(/{quadkey}/g,Yt).replace(/{bbox-epsg-3857}/g,ie)}isChildOf(T){let D=this.z-T.z;return D>0&&T.x===this.x>>D&&T.y===this.y>>D}getTilePoint(T){let D=Math.pow(2,this.z);return new l((T.x*D-this.x)*Wl,(T.y*D-this.y)*Wl)}toString(){return`${this.z}/${this.x}/${this.y}`}}class UC{constructor(T,D){this.wrap=T,this.canonical=D,this.key=ub(T,D.z,D.z,D.x,D.y)}}class $p{constructor(T,D,X,ie,pe){if(T= z; overscaledZ = ${T}; z = ${X}`);this.overscaledZ=T,this.wrap=D,this.canonical=new wM(X,+ie,+pe),this.key=ub(D,T,X,ie,pe)}clone(){return new $p(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(T){return this.overscaledZ===T.overscaledZ&&this.wrap===T.wrap&&this.canonical.equals(T.canonical)}scaledTo(T){if(T>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${T}; overscaledZ = ${this.overscaledZ}`);let D=this.canonical.z-T;return T>this.canonical.z?new $p(T,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $p(T,this.wrap,T,this.canonical.x>>D,this.canonical.y>>D)}calculateScaledKey(T,D){if(T>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${T}; overscaledZ = ${this.overscaledZ}`);let X=this.canonical.z-T;return T>this.canonical.z?ub(this.wrap*+D,T,this.canonical.z,this.canonical.x,this.canonical.y):ub(this.wrap*+D,T,T,this.canonical.x>>X,this.canonical.y>>X)}isChildOf(T){if(T.wrap!==this.wrap)return!1;let D=this.canonical.z-T.canonical.z;return T.overscaledZ===0||T.overscaledZ>D&&T.canonical.y===this.canonical.y>>D}children(T){if(this.overscaledZ>=T)return[new $p(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let D=this.canonical.z+1,X=2*this.canonical.x,ie=2*this.canonical.y;return[new $p(D,this.wrap,D,X,ie),new $p(D,this.wrap,D,X+1,ie),new $p(D,this.wrap,D,X,ie+1),new $p(D,this.wrap,D,X+1,ie+1)]}isLessThan(T){return this.wrapT.wrap)&&(this.overscaledZT.overscaledZ)&&(this.canonical.xT.canonical.x)&&this.canonical.ythis.max&&(this.max=hr),hr=this.dim+1||D<-1||D>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(D+1)*this.stride+(T+1)}unpack(T,D,X){return T*this.redFactor+D*this.greenFactor+X*this.blueFactor-this.baseShift}getPixels(){return new Qn({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(T,D,X){if(this.dim!==T.dim)throw new Error("dem dimension mismatch");let ie=D*this.dim,pe=D*this.dim+this.dim,_e=X*this.dim,Xe=X*this.dim+this.dim;switch(D){case-1:ie=pe-1;break;case 1:pe=ie+1}switch(X){case-1:_e=Xe-1;break;case 1:Xe=_e+1}let ct=-D*this.dim,Et=-X*this.dim;for(let Yt=_e;Yt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${T} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[T]}}class AM{constructor(T,D,X,ie,pe){this.type="Feature",this._vectorTileFeature=T,T._z=D,T._x=X,T._y=ie,this.properties=T.properties,this.id=pe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(T){this._geometry=T}toJSON(){let T={geometry:this.geometry};for(let D in this)D!=="_geometry"&&D!=="_vectorTileFeature"&&(T[D]=this[D]);return T}}class _g{constructor(T,D){this.tileID=T,this.x=T.canonical.x,this.y=T.canonical.y,this.z=T.canonical.z,this.grid=new hi(Wl,16,0),this.grid3D=new hi(Wl,16,0),this.featureIndexArray=new Pu,this.promoteId=D}insert(T,D,X,ie,pe,_e){let Xe=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(X,ie,pe);let ct=_e?this.grid3D:this.grid;for(let Et=0;Et=0&&hr[3]>=0&&ct.insert(Xe,hr[0],hr[1],hr[2],hr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Br.VectorTile(new cM(this.rawTileData)).layers,this.sourceLayerCoder=new GC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(T,D,X,ie){this.loadVTLayers();let pe=T.params||{},_e=Wl/T.tileSize/T.scale,Xe=Jn(pe.filter),ct=T.queryGeometry,Et=T.queryPadding*_e,Yt=WC(ct),hr=this.grid.query(Yt.minX-Et,Yt.minY-Et,Yt.maxX+Et,Yt.maxY+Et),Tr=WC(T.cameraQueryGeometry),Rr=this.grid3D.query(Tr.minX-Et,Tr.minY-Et,Tr.maxX+Et,Tr.maxY+Et,((Gi,fn,Za,Rn)=>(function(La,So,kl,mu,Iu){for(let yl of La)if(So<=yl.x&&kl<=yl.y&&mu>=yl.x&&Iu>=yl.y)return!0;let su=[new l(So,kl),new l(So,Iu),new l(mu,Iu),new l(mu,kl)];if(La.length>2){for(let yl of su)if(On(La,yl))return!0}for(let yl=0;yl(Rn||(Rn=lf(La)),So.queryIntersectsFeature(ct,La,kl,Rn,this.z,T.transform,_e,T.pixelPosMatrix))))}return Jr}loadMatchingFeature(T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr){let Tr=this.bucketLayerIDs[D];if(_e&&!(function(Gi,fn){for(let Za=0;Za=0)return!0;return!1})(_e,Tr))return;let Rr=this.sourceLayerCoder.decode(X),Jr=this.vtLayers[Rr].feature(ie);if(pe.needGeometry){let Gi=hf(Jr,!0);if(!pe.filter(new cs(this.tileID.overscaledZ),Gi,this.tileID.canonical))return}else if(!pe.filter(new cs(this.tileID.overscaledZ),Jr))return;let li=this.getId(Jr,Rr);for(let Gi=0;Gi{let Xe=T instanceof Ll?T.get(_e):null;return Xe&&Xe.evaluate?Xe.evaluate(D,X,ie):Xe}))}function WC(I){let T=1/0,D=1/0,X=-1/0,ie=-1/0;for(let pe of I)T=Math.min(T,pe.x),D=Math.min(D,pe.y),X=Math.max(X,pe.x),ie=Math.max(ie,pe.y);return{minX:T,minY:D,maxX:X,maxY:ie}}function mB(I,T){return T-I}function jC(I,T,D,X,ie){let pe=[];for(let _e=0;_e=X&&hr.x>=X||(Yt.x>=X?Yt=new l(X,Yt.y+(X-Yt.x)/(hr.x-Yt.x)*(hr.y-Yt.y))._round():hr.x>=X&&(hr=new l(X,Yt.y+(X-Yt.x)/(hr.x-Yt.x)*(hr.y-Yt.y))._round()),Yt.y>=ie&&hr.y>=ie||(Yt.y>=ie?Yt=new l(Yt.x+(ie-Yt.y)/(hr.y-Yt.y)*(hr.x-Yt.x),ie)._round():hr.y>=ie&&(hr=new l(Yt.x+(ie-Yt.y)/(hr.y-Yt.y)*(hr.x-Yt.x),ie)._round()),ct&&Yt.equals(ct[ct.length-1])||(ct=[Yt],pe.push(ct)),ct.push(hr)))))}}return pe}Si("FeatureIndex",_g,{omit:["rawTileData","sourceLayerCoder"]});class mm extends l{constructor(T,D,X,ie){super(T,D),this.angle=X,ie!==void 0&&(this.segment=ie)}clone(){return new mm(this.x,this.y,this.angle,this.segment)}}function TM(I,T,D,X,ie){if(T.segment===void 0||D===0)return!0;let pe=T,_e=T.segment+1,Xe=0;for(;Xe>-D/2;){if(_e--,_e<0)return!1;Xe-=I[_e].dist(pe),pe=I[_e]}Xe+=I[_e].dist(I[_e+1]),_e++;let ct=[],Et=0;for(;XeX;)Et-=ct.shift().angleDelta;if(Et>ie)return!1;_e++,Xe+=Yt.dist(hr)}return!0}function XC(I){let T=0;for(let D=0;DEt){let Jr=(Et-ct)/Rr,li=ka.number(hr.x,Tr.x,Jr),Gi=ka.number(hr.y,Tr.y,Jr),fn=new mm(li,Gi,Tr.angleTo(hr),Yt);return fn._round(),!_e||TM(I,fn,Xe,_e,T)?fn:void 0}ct+=Rr}}function gB(I,T,D,X,ie,pe,_e,Xe,ct){let Et=ZC(X,pe,_e),Yt=YC(X,ie),hr=Yt*_e,Tr=I[0].x===0||I[0].x===ct||I[0].y===0||I[0].y===ct;return T-hr=0&&La=0&&So=0&&Tr+Et<=Yt){let kl=new mm(La,So,Za,Jr);kl._round(),X&&!TM(I,kl,pe,X,ie)||Rr.push(kl)}}hr+=fn}return Xe||Rr.length||_e||(Rr=KC(I,hr/2,D,X,ie,pe,_e,!0,ct)),Rr}Si("Anchor",mm);let F1=kd;function JC(I,T,D,X){let ie=[],pe=I.image,_e=pe.pixelRatio,Xe=pe.paddedRect.w-2*F1,ct=pe.paddedRect.h-2*F1,Et={x1:I.left,y1:I.top,x2:I.right,y2:I.bottom},Yt=pe.stretchX||[[0,Xe]],hr=pe.stretchY||[[0,ct]],Tr=(Xs,Lu)=>Xs+Lu[1]-Lu[0],Rr=Yt.reduce(Tr,0),Jr=hr.reduce(Tr,0),li=Xe-Rr,Gi=ct-Jr,fn=0,Za=Rr,Rn=0,La=Jr,So=0,kl=li,mu=0,Iu=Gi;if(pe.content&&X){let Xs=pe.content,Lu=Xs[2]-Xs[0],xu=Xs[3]-Xs[1];(pe.textFitWidth||pe.textFitHeight)&&(Et=RC(I)),fn=ym(Yt,0,Xs[0]),Rn=ym(hr,0,Xs[1]),Za=ym(Yt,Xs[0],Xs[2]),La=ym(hr,Xs[1],Xs[3]),So=Xs[0]-fn,mu=Xs[1]-Rn,kl=Lu-Za,Iu=xu-La}let su=Et.x1,yl=Et.y1,Eu=Et.x2-su,bu=Et.y2-yl,_u=(Xs,Lu,xu,qu)=>{let vc=$w(Xs.stretch-fn,Za,Eu,su),cc=O1(Xs.fixed-So,kl,Xs.stretch,Rr),Rh=$w(Lu.stretch-Rn,La,bu,yl),Qp=O1(Lu.fixed-mu,Iu,Lu.stretch,Jr),fd=$w(xu.stretch-fn,Za,Eu,su),Dh=O1(xu.fixed-So,kl,xu.stretch,Rr),Wd=$w(qu.stretch-Rn,La,bu,yl),jd=O1(qu.fixed-mu,Iu,qu.stretch,Jr),Xd=new l(vc,Rh),$c=new l(fd,Rh),Fh=new l(fd,Wd),Cd=new l(vc,Wd),cd=new l(cc/_e,Qp/_e),$h=new l(Dh/_e,jd/_e),ih=T*Math.PI/180;if(ih){let Xf=Math.sin(ih),Ac=Math.cos(ih),mc=[Ac,-Xf,Xf,Ac];Xd._matMult(mc),$c._matMult(mc),Cd._matMult(mc),Fh._matMult(mc)}let Dp=Xs.stretch+Xs.fixed,cp=Lu.stretch+Lu.fixed;return{tl:Xd,tr:$c,bl:Cd,br:Fh,tex:{x:pe.paddedRect.x+F1+Dp,y:pe.paddedRect.y+F1+cp,w:xu.stretch+xu.fixed-Dp,h:qu.stretch+qu.fixed-cp},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:cd,pixelOffsetBR:$h,minFontScaleX:kl/_e/Eu,minFontScaleY:Iu/_e/bu,isSDF:D}};if(X&&(pe.stretchX||pe.stretchY)){let Xs=$C(Yt,li,Rr),Lu=$C(hr,Gi,Jr);for(let xu=0;xu0&&(li=Math.max(10,li),this.circleDiameter=li)}else{let Tr=!((hr=_e.image)===null||hr===void 0)&&hr.content&&(_e.image.textFitWidth||_e.image.textFitHeight)?RC(_e):{x1:_e.left,y1:_e.top,x2:_e.right,y2:_e.bottom};Tr.y1=Tr.y1*Xe-ct[0],Tr.y2=Tr.y2*Xe+ct[2],Tr.x1=Tr.x1*Xe-ct[3],Tr.x2=Tr.x2*Xe+ct[1];let Rr=_e.collisionPadding;if(Rr&&(Tr.x1-=Rr[0]*Xe,Tr.y1-=Rr[1]*Xe,Tr.x2+=Rr[2]*Xe,Tr.y2+=Rr[3]*Xe),Yt){let Jr=new l(Tr.x1,Tr.y1),li=new l(Tr.x2,Tr.y1),Gi=new l(Tr.x1,Tr.y2),fn=new l(Tr.x2,Tr.y2),Za=Yt*Math.PI/180;Jr._rotate(Za),li._rotate(Za),Gi._rotate(Za),fn._rotate(Za),Tr.x1=Math.min(Jr.x,li.x,Gi.x,fn.x),Tr.x2=Math.max(Jr.x,li.x,Gi.x,fn.x),Tr.y1=Math.min(Jr.y,li.y,Gi.y,fn.y),Tr.y2=Math.max(Jr.y,li.y,Gi.y,fn.y)}T.emplaceBack(D.x,D.y,Tr.x1,Tr.y1,Tr.x2,Tr.y2,X,ie,pe)}this.boxEndIndex=T.length}}class Vv{constructor(T=[],D=((X,ie)=>Xie?1:0)){if(this.data=T,this.length=this.data.length,this.compare=D,this.length>0)for(let X=(this.length>>1)-1;X>=0;X--)this._down(X)}push(T){this.data.push(T),this._up(this.length++)}pop(){if(this.length===0)return;let T=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),T}peek(){return this.data[0]}_up(T){let{data:D,compare:X}=this,ie=D[T];for(;T>0;){let pe=T-1>>1,_e=D[pe];if(X(ie,_e)>=0)break;D[T]=_e,T=pe}D[T]=ie}_down(T){let{data:D,compare:X}=this,ie=this.length>>1,pe=D[T];for(;T=0)break;D[T]=D[_e],T=_e}D[T]=pe}}function _B(I,T=1,D=!1){let X=1/0,ie=1/0,pe=-1/0,_e=-1/0,Xe=I[0];for(let Rr=0;Rrpe)&&(pe=Jr.x),(!Rr||Jr.y>_e)&&(_e=Jr.y)}let ct=Math.min(pe-X,_e-ie),Et=ct/2,Yt=new Vv([],xB);if(ct===0)return new l(X,ie);for(let Rr=X;Rrhr.d||!hr.d)&&(hr=Rr,D&&console.log("found best %d after %d probes",Math.round(1e4*Rr.d)/1e4,Tr)),Rr.max-hr.d<=T||(Et=Rr.h/2,Yt.push(new B1(Rr.p.x-Et,Rr.p.y-Et,Et,I)),Yt.push(new B1(Rr.p.x+Et,Rr.p.y-Et,Et,I)),Yt.push(new B1(Rr.p.x-Et,Rr.p.y+Et,Et,I)),Yt.push(new B1(Rr.p.x+Et,Rr.p.y+Et,Et,I)),Tr+=4)}return D&&(console.log(`num probes: ${Tr}`),console.log(`best distance: ${hr.d}`)),hr.p}function xB(I,T){return T.max-I.max}function B1(I,T,D,X){this.p=new l(I,T),this.h=D,this.d=(function(ie,pe){let _e=!1,Xe=1/0;for(let ct=0;ctie.y!=Jr.y>ie.y&&ie.x<(Jr.x-Rr.x)*(ie.y-Rr.y)/(Jr.y-Rr.y)+Rr.x&&(_e=!_e),Xe=Math.min(Xe,di(ie,Rr,Jr))}}return(_e?1:-1)*Math.sqrt(Xe)})(this.p,X),this.max=this.d+this.h*Math.SQRT2}var ud;i.aq=void 0,(ud=i.aq||(i.aq={}))[ud.center=1]="center",ud[ud.left=2]="left",ud[ud.right=3]="right",ud[ud.top=4]="top",ud[ud.bottom=5]="bottom",ud[ud["top-left"]=6]="top-left",ud[ud["top-right"]=7]="top-right",ud[ud["bottom-left"]=8]="bottom-left",ud[ud["bottom-right"]=9]="bottom-right";let py=7,xg=Number.POSITIVE_INFINITY;function SM(I,T){return T[1]!==xg?(function(D,X,ie){let pe=0,_e=0;switch(X=Math.abs(X),ie=Math.abs(ie),D){case"top-right":case"top-left":case"top":_e=ie-py;break;case"bottom-right":case"bottom-left":case"bottom":_e=-ie+py}switch(D){case"top-right":case"bottom-right":case"right":pe=-X;break;case"top-left":case"bottom-left":case"left":pe=X}return[pe,_e]})(I,T[0],T[1]):(function(D,X){let ie=0,pe=0;X<0&&(X=0);let _e=X/Math.SQRT2;switch(D){case"top-right":case"top-left":pe=_e-py;break;case"bottom-right":case"bottom-left":pe=-_e+py;break;case"bottom":pe=-X+py;break;case"top":pe=X-py}switch(D){case"top-right":case"bottom-right":ie=-_e;break;case"top-left":case"bottom-left":ie=_e;break;case"left":ie=X;break;case"right":ie=-X}return[ie,pe]})(I,T[0])}function QC(I,T,D){var X;let ie=I.layout,pe=(X=ie.get("text-variable-anchor-offset"))===null||X===void 0?void 0:X.evaluate(T,{},D);if(pe){let Xe=pe.values,ct=[];for(let Et=0;EtTr*jf));Yt.startsWith("top")?hr[1]-=py:Yt.startsWith("bottom")&&(hr[1]+=py),ct[Et+1]=hr}return new Gr(ct)}let _e=ie.get("text-variable-anchor");if(_e){let Xe;Xe=I._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[ie.get("text-radial-offset").evaluate(T,{},D)*jf,xg]:ie.get("text-offset").evaluate(T,{},D).map((Et=>Et*jf));let ct=[];for(let Et of _e)ct.push(Et,SM(Et,Xe));return new Gr(ct)}return null}function MM(I){switch(I){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function bB(I,T,D,X,ie,pe,_e,Xe,ct,Et,Yt){let hr=pe.textMaxSize.evaluate(T,{});hr===void 0&&(hr=_e);let Tr=I.layers[0].layout,Rr=Tr.get("icon-offset").evaluate(T,{},Yt),Jr=tL(D.horizontal),li=_e/24,Gi=I.tilePixelRatio*li,fn=I.tilePixelRatio*hr/24,Za=I.tilePixelRatio*Xe,Rn=I.tilePixelRatio*Tr.get("symbol-spacing"),La=Tr.get("text-padding")*I.tilePixelRatio,So=(function(Xs,Lu,xu,qu=1){let vc=Xs.get("icon-padding").evaluate(Lu,{},xu),cc=vc&&vc.values;return[cc[0]*qu,cc[1]*qu,cc[2]*qu,cc[3]*qu]})(Tr,T,Yt,I.tilePixelRatio),kl=Tr.get("text-max-angle")/180*Math.PI,mu=Tr.get("text-rotation-alignment")!=="viewport"&&Tr.get("symbol-placement")!=="point",Iu=Tr.get("icon-rotation-alignment")==="map"&&Tr.get("symbol-placement")!=="point",su=Tr.get("symbol-placement"),yl=Rn/2,Eu=Tr.get("icon-text-fit"),bu;X&&Eu!=="none"&&(I.allowVerticalPlacement&&D.vertical&&(bu=DC(X,D.vertical,Eu,Tr.get("icon-text-fit-padding"),Rr,li)),Jr&&(X=DC(X,Jr,Eu,Tr.get("icon-text-fit-padding"),Rr,li)));let _u=(Xs,Lu)=>{Lu.x<0||Lu.x>=Wl||Lu.y<0||Lu.y>=Wl||(function(xu,qu,vc,cc,Rh,Qp,fd,Dh,Wd,jd,Xd,$c,Fh,Cd,cd,$h,ih,Dp,cp,Xf,Ac,mc,Fp,Wc,q1){let v0=xu.addToLineVertexArray(qu,vc),Gv,ev,Rc,ch,tv=0,gm=0,hp=0,N1=0,PM=-1,r3=-1,m0={},bg=un("");if(xu.allowVerticalPlacement&&cc.vertical){let Ld=Dh.layout.get("text-rotate").evaluate(Ac,{},Wc)+90;Rc=new dy(Wd,qu,jd,Xd,$c,cc.vertical,Fh,Cd,cd,Ld),fd&&(ch=new dy(Wd,qu,jd,Xd,$c,fd,ih,Dp,cd,Ld))}if(Rh){let Ld=Dh.layout.get("icon-rotate").evaluate(Ac,{}),rv=Dh.layout.get("icon-text-fit")!=="none",vy=JC(Rh,Ld,Fp,rv),Zd=fd?JC(fd,Ld,Fp,rv):void 0;ev=new dy(Wd,qu,jd,Xd,$c,Rh,ih,Dp,!1,Ld),tv=4*vy.length;let Pd=xu.iconSizeData,xv=null;Pd.kind==="source"?(xv=[p0*Dh.layout.get("icon-size").evaluate(Ac,{})],xv[0]>cy&&M(`${xu.layerIds[0]}: Value for "icon-size" is >= ${rb}. Reduce your "icon-size".`)):Pd.kind==="composite"&&(xv=[p0*mc.compositeIconSizes[0].evaluate(Ac,{},Wc),p0*mc.compositeIconSizes[1].evaluate(Ac,{},Wc)],(xv[0]>cy||xv[1]>cy)&&M(`${xu.layerIds[0]}: Value for "icon-size" is >= ${rb}. Reduce your "icon-size".`)),xu.addSymbols(xu.icon,vy,xv,Xf,cp,Ac,i.ah.none,qu,v0.lineStartIndex,v0.lineLength,-1,Wc),PM=xu.icon.placedSymbolArray.length-1,Zd&&(gm=4*Zd.length,xu.addSymbols(xu.icon,Zd,xv,Xf,cp,Ac,i.ah.vertical,qu,v0.lineStartIndex,v0.lineLength,-1,Wc),r3=xu.icon.placedSymbolArray.length-1)}let Qh=Object.keys(cc.horizontal);for(let Ld of Qh){let rv=cc.horizontal[Ld];if(!Gv){bg=un(rv.text);let Zd=Dh.layout.get("text-rotate").evaluate(Ac,{},Wc);Gv=new dy(Wd,qu,jd,Xd,$c,rv,Fh,Cd,cd,Zd)}let vy=rv.positionedLines.length===1;if(hp+=eL(xu,qu,rv,Qp,Dh,cd,Ac,$h,v0,cc.vertical?i.ah.horizontal:i.ah.horizontalOnly,vy?Qh:[Ld],m0,PM,mc,Wc),vy)break}cc.vertical&&(N1+=eL(xu,qu,cc.vertical,Qp,Dh,cd,Ac,$h,v0,i.ah.vertical,["vertical"],m0,r3,mc,Wc));let TB=Gv?Gv.boxStartIndex:xu.collisionBoxArray.length,i3=Gv?Gv.boxEndIndex:xu.collisionBoxArray.length,y0=Rc?Rc.boxStartIndex:xu.collisionBoxArray.length,dp=Rc?Rc.boxEndIndex:xu.collisionBoxArray.length,aL=ev?ev.boxStartIndex:xu.collisionBoxArray.length,SB=ev?ev.boxEndIndex:xu.collisionBoxArray.length,oL=ch?ch.boxStartIndex:xu.collisionBoxArray.length,MB=ch?ch.boxEndIndex:xu.collisionBoxArray.length,_v=-1,hb=(Ld,rv)=>Ld&&Ld.circleDiameter?Math.max(Ld.circleDiameter,rv):rv;_v=hb(Gv,_v),_v=hb(Rc,_v),_v=hb(ev,_v),_v=hb(ch,_v);let n3=_v>-1?1:0;n3&&(_v*=q1/jf),xu.glyphOffsetArray.length>=R1.MAX_GLYPHS&&M("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ac.sortKey!==void 0&&xu.addToSortKeyRanges(xu.symbolInstances.length,Ac.sortKey);let zM=QC(Dh,Ac,Wc),[EB,kB]=(function(Ld,rv){let vy=Ld.length,Zd=rv==null?void 0:rv.values;if((Zd==null?void 0:Zd.length)>0)for(let Pd=0;Pd=0?m0.right:-1,m0.center>=0?m0.center:-1,m0.left>=0?m0.left:-1,m0.vertical||-1,PM,r3,bg,TB,i3,y0,dp,aL,SB,oL,MB,jd,hp,N1,tv,gm,n3,0,Fh,_v,EB,kB)})(I,Lu,Xs,D,X,ie,bu,I.layers[0],I.collisionBoxArray,T.index,T.sourceLayerIndex,I.index,Gi,[La,La,La,La],mu,ct,Za,So,Iu,Rr,T,pe,Et,Yt,_e)};if(su==="line")for(let Xs of jC(T.geometry,0,0,Wl,Wl)){let Lu=gB(Xs,Rn,kl,D.vertical||Jr,X,24,fn,I.overscaling,Wl);for(let xu of Lu)Jr&&wB(I,Jr.text,yl,xu)||_u(Xs,xu)}else if(su==="line-center"){for(let Xs of T.geometry)if(Xs.length>1){let Lu=yB(Xs,kl,D.vertical||Jr,X,24,fn);Lu&&_u(Xs,Lu)}}else if(T.type==="Polygon")for(let Xs of Ys(T.geometry,0)){let Lu=_B(Xs,16);_u(Xs[0],new mm(Lu.x,Lu.y,0))}else if(T.type==="LineString")for(let Xs of T.geometry)_u(Xs,new mm(Xs[0].x,Xs[0].y,0));else if(T.type==="Point")for(let Xs of T.geometry)for(let Lu of Xs)_u([Lu],new mm(Lu.x,Lu.y,0))}function eL(I,T,D,X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr){let li=(function(Za,Rn,La,So,kl,mu,Iu,su){let yl=So.layout.get("text-rotate").evaluate(mu,{})*Math.PI/180,Eu=[];for(let bu of Rn.positionedLines)for(let _u of bu.positionedGlyphs){if(!_u.rect)continue;let Xs=_u.rect||{},Lu=LC+1,xu=!0,qu=1,vc=0,cc=(kl||su)&&_u.vertical,Rh=_u.metrics.advance*_u.scale/2;if(su&&Rn.verticalizable&&(vc=bu.lineOffset/2-(_u.imageName?-(jf-_u.metrics.width*_u.scale)/2:(_u.scale-1)*jf)),_u.imageName){let Xf=Iu[_u.imageName];xu=Xf.sdf,qu=Xf.pixelRatio,Lu=kd/qu}let Qp=kl?[_u.x+Rh,_u.y]:[0,0],fd=kl?[0,0]:[_u.x+Rh+La[0],_u.y+La[1]-vc],Dh=[0,0];cc&&(Dh=fd,fd=[0,0]);let Wd=_u.metrics.isDoubleResolution?2:1,jd=(_u.metrics.left-Lu)*_u.scale-Rh+fd[0],Xd=(-_u.metrics.top-Lu)*_u.scale+fd[1],$c=jd+Xs.w/Wd*_u.scale/qu,Fh=Xd+Xs.h/Wd*_u.scale/qu,Cd=new l(jd,Xd),cd=new l($c,Xd),$h=new l(jd,Fh),ih=new l($c,Fh);if(cc){let Xf=new l(-Rh,Rh-Ih),Ac=-Math.PI/2,mc=jf/2-Rh,Fp=new l(5-Ih-mc,-(_u.imageName?mc:0)),Wc=new l(...Dh);Cd._rotateAround(Ac,Xf)._add(Fp)._add(Wc),cd._rotateAround(Ac,Xf)._add(Fp)._add(Wc),$h._rotateAround(Ac,Xf)._add(Fp)._add(Wc),ih._rotateAround(Ac,Xf)._add(Fp)._add(Wc)}if(yl){let Xf=Math.sin(yl),Ac=Math.cos(yl),mc=[Ac,-Xf,Xf,Ac];Cd._matMult(mc),cd._matMult(mc),$h._matMult(mc),ih._matMult(mc)}let Dp=new l(0,0),cp=new l(0,0);Eu.push({tl:Cd,tr:cd,bl:$h,br:ih,tex:Xs,writingMode:Rn.writingMode,glyphOffset:Qp,sectionIndex:_u.sectionIndex,isSDF:xu,pixelOffsetTL:Dp,pixelOffsetBR:cp,minFontScaleX:0,minFontScaleY:0})}return Eu})(0,D,Xe,ie,pe,_e,X,I.allowVerticalPlacement),Gi=I.textSizeData,fn=null;Gi.kind==="source"?(fn=[p0*ie.layout.get("text-size").evaluate(_e,{})],fn[0]>cy&&M(`${I.layerIds[0]}: Value for "text-size" is >= ${rb}. Reduce your "text-size".`)):Gi.kind==="composite"&&(fn=[p0*Rr.compositeTextSizes[0].evaluate(_e,{},Jr),p0*Rr.compositeTextSizes[1].evaluate(_e,{},Jr)],(fn[0]>cy||fn[1]>cy)&&M(`${I.layerIds[0]}: Value for "text-size" is >= ${rb}. Reduce your "text-size".`)),I.addSymbols(I.text,li,fn,Xe,pe,_e,Et,T,ct.lineStartIndex,ct.lineLength,Tr,Jr);for(let Za of Yt)hr[Za]=I.text.placedSymbolArray.length-1;return 4*li.length}function tL(I){for(let T in I)return I[T];return null}function wB(I,T,D,X){let ie=I.compareText;if(T in ie){let pe=ie[T];for(let _e=pe.length-1;_e>=0;_e--)if(X.dist(pe[_e])>4;if(ie!==1)throw new Error(`Got v${ie} data when expected v1.`);let pe=rL[15&X];if(!pe)throw new Error("Unrecognized array type.");let[_e]=new Uint16Array(T,2,1),[Xe]=new Uint32Array(T,4,1);return new EM(Xe,_e,pe,T)}constructor(T,D=64,X=Float64Array,ie){if(isNaN(T)||T<0)throw new Error(`Unpexpected numItems value: ${T}.`);this.numItems=+T,this.nodeSize=Math.min(Math.max(+D,2),65535),this.ArrayType=X,this.IndexArrayType=T<65536?Uint16Array:Uint32Array;let pe=rL.indexOf(this.ArrayType),_e=2*T*this.ArrayType.BYTES_PER_ELEMENT,Xe=T*this.IndexArrayType.BYTES_PER_ELEMENT,ct=(8-Xe%8)%8;if(pe<0)throw new Error(`Unexpected typed array class: ${X}.`);ie&&ie instanceof ArrayBuffer?(this.data=ie,this.ids=new this.IndexArrayType(this.data,8,T),this.coords=new this.ArrayType(this.data,8+Xe+ct,2*T),this._pos=2*T,this._finished=!0):(this.data=new ArrayBuffer(8+_e+Xe+ct),this.ids=new this.IndexArrayType(this.data,8,T),this.coords=new this.ArrayType(this.data,8+Xe+ct,2*T),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+pe]),new Uint16Array(this.data,2,1)[0]=D,new Uint32Array(this.data,4,1)[0]=T)}add(T,D){let X=this._pos>>1;return this.ids[X]=X,this.coords[this._pos++]=T,this.coords[this._pos++]=D,X}finish(){let T=this._pos>>1;if(T!==this.numItems)throw new Error(`Added ${T} items when expected ${this.numItems}.`);return Qw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(T,D,X,ie){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:pe,coords:_e,nodeSize:Xe}=this,ct=[0,pe.length-1,0],Et=[];for(;ct.length;){let Yt=ct.pop()||0,hr=ct.pop()||0,Tr=ct.pop()||0;if(hr-Tr<=Xe){for(let Gi=Tr;Gi<=hr;Gi++){let fn=_e[2*Gi],Za=_e[2*Gi+1];fn>=T&&fn<=X&&Za>=D&&Za<=ie&&Et.push(pe[Gi])}continue}let Rr=Tr+hr>>1,Jr=_e[2*Rr],li=_e[2*Rr+1];Jr>=T&&Jr<=X&&li>=D&&li<=ie&&Et.push(pe[Rr]),(Yt===0?T<=Jr:D<=li)&&(ct.push(Tr),ct.push(Rr-1),ct.push(1-Yt)),(Yt===0?X>=Jr:ie>=li)&&(ct.push(Rr+1),ct.push(hr),ct.push(1-Yt))}return Et}within(T,D,X){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ie,coords:pe,nodeSize:_e}=this,Xe=[0,ie.length-1,0],ct=[],Et=X*X;for(;Xe.length;){let Yt=Xe.pop()||0,hr=Xe.pop()||0,Tr=Xe.pop()||0;if(hr-Tr<=_e){for(let Gi=Tr;Gi<=hr;Gi++)nL(pe[2*Gi],pe[2*Gi+1],T,D)<=Et&&ct.push(ie[Gi]);continue}let Rr=Tr+hr>>1,Jr=pe[2*Rr],li=pe[2*Rr+1];nL(Jr,li,T,D)<=Et&&ct.push(ie[Rr]),(Yt===0?T-X<=Jr:D-X<=li)&&(Xe.push(Tr),Xe.push(Rr-1),Xe.push(1-Yt)),(Yt===0?T+X>=Jr:D+X>=li)&&(Xe.push(Rr+1),Xe.push(hr),Xe.push(1-Yt))}return ct}}function Qw(I,T,D,X,ie,pe){if(ie-X<=D)return;let _e=X+ie>>1;iL(I,T,_e,X,ie,pe),Qw(I,T,D,X,_e-1,1-pe),Qw(I,T,D,_e+1,ie,1-pe)}function iL(I,T,D,X,ie,pe){for(;ie>X;){if(ie-X>600){let Et=ie-X+1,Yt=D-X+1,hr=Math.log(Et),Tr=.5*Math.exp(2*hr/3),Rr=.5*Math.sqrt(hr*Tr*(Et-Tr)/Et)*(Yt-Et/2<0?-1:1);iL(I,T,D,Math.max(X,Math.floor(D-Yt*Tr/Et+Rr)),Math.min(ie,Math.floor(D+(Et-Yt)*Tr/Et+Rr)),pe)}let _e=T[2*D+pe],Xe=X,ct=ie;for(fb(I,T,X,D),T[2*ie+pe]>_e&&fb(I,T,X,ie);Xe_e;)ct--}T[2*X+pe]===_e?fb(I,T,X,ct):(ct++,fb(I,T,ct,ie)),ct<=D&&(X=ct+1),D<=ct&&(ie=ct-1)}}function fb(I,T,D,X){kM(I,D,X),kM(T,2*D,2*X),kM(T,2*D+1,2*X+1)}function kM(I,T,D){let X=I[T];I[T]=I[D],I[D]=X}function nL(I,T,D,X){let ie=I-D,pe=T-X;return ie*ie+pe*pe}var e3;i.bg=void 0,(e3=i.bg||(i.bg={})).create="create",e3.load="load",e3.fullLoad="fullLoad";let cb=null,mh=[],CM=1e3/60,LM="loadTime",t3="fullLoadTime",AB={mark(I){performance.mark(I)},frame(I){let T=I;cb!=null&&mh.push(T-cb),cb=T},clearMetrics(){cb=null,mh=[],performance.clearMeasures(LM),performance.clearMeasures(t3);for(let I in i.bg)performance.clearMarks(i.bg[I])},getPerformanceMetrics(){performance.measure(LM,i.bg.create,i.bg.load),performance.measure(t3,i.bg.create,i.bg.fullLoad);let I=performance.getEntriesByName(LM)[0].duration,T=performance.getEntriesByName(t3)[0].duration,D=mh.length,X=1/(mh.reduce(((pe,_e)=>pe+_e),0)/D/1e3),ie=mh.filter((pe=>pe>CM)).reduce(((pe,_e)=>pe+(_e-CM)/CM),0);return{loadTime:I,fullLoadTime:T,fps:X,percentDroppedFrames:ie/(D+ie)*100,totalFrames:D}}};i.$=class extends Qt{},i.A=dn,i.B=ki,i.C=function(I){if(U==null){let T=I.navigator?I.navigator.userAgent:null;U=!!I.safari||!(!T||!(/\b(iPad|iPhone|iPod)\b/.test(T)||T.match("Safari")&&!T.match("Chrome")))}return U},i.D=ms,i.E=Be,i.F=class{constructor(I,T){this.target=I,this.mapId=T,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new xM((()=>this.process())),this.subscription=(function(D,X,ie,pe){return D.addEventListener(X,ie,!1),{unsubscribe:()=>{D.removeEventListener(X,ie,!1)}}})(this.target,"message",(D=>this.receive(D))),this.globalScope=F(self)?I:window}registerMessageHandler(I,T){this.messageHandlers[I]=T}sendAsync(I,T){return new Promise(((D,X)=>{let ie=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[ie]={resolve:D,reject:X},T&&T.signal.addEventListener("abort",(()=>{delete this.resolveRejects[ie];let Xe={id:ie,type:"",origin:location.origin,targetMapId:I.targetMapId,sourceMapId:this.mapId};this.target.postMessage(Xe)}),{once:!0});let pe=[],_e=Object.assign(Object.assign({},I),{id:ie,sourceMapId:this.mapId,origin:location.origin,data:ia(I.data,pe)});this.target.postMessage(_e,{transfer:pe})}))}receive(I){let T=I.data,D=T.id;if(!(T.origin!=="file://"&&location.origin!=="file://"&&T.origin!=="resource://android"&&location.origin!=="resource://android"&&T.origin!==location.origin||T.targetMapId&&this.mapId!==T.targetMapId)){if(T.type===""){delete this.tasks[D];let X=this.abortControllers[D];return delete this.abortControllers[D],void(X&&X.abort())}if(F(self)||T.mustQueue)return this.tasks[D]=T,this.taskQueue.push(D),void this.invoker.trigger();this.processTask(D,T)}}process(){if(this.taskQueue.length===0)return;let I=this.taskQueue.shift(),T=this.tasks[I];delete this.tasks[I],this.taskQueue.length>0&&this.invoker.trigger(),T&&this.processTask(I,T)}processTask(I,T){return a(this,void 0,void 0,(function*(){if(T.type===""){let ie=this.resolveRejects[I];return delete this.resolveRejects[I],ie?void(T.error?ie.reject(pa(T.error)):ie.resolve(pa(T.data))):void 0}if(!this.messageHandlers[T.type])return void this.completeTask(I,new Error(`Could not find a registered handler for ${T.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let D=pa(T.data),X=new AbortController;this.abortControllers[I]=X;try{let ie=yield this.messageHandlers[T.type](T.sourceMapId,D,X);this.completeTask(I,null,ie)}catch(ie){this.completeTask(I,ie)}}))}completeTask(I,T,D){let X=[];delete this.abortControllers[I];let ie={id:I,type:"",sourceMapId:this.mapId,origin:location.origin,error:T?ia(T):null,data:ia(D,X)};this.target.postMessage(ie,{transfer:X})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Ee,i.H=function(){var I=new dn(16);return dn!=Float32Array&&(I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[11]=0,I[12]=0,I[13]=0,I[14]=0),I[0]=1,I[5]=1,I[10]=1,I[15]=1,I},i.I=Gw,i.J=function(I,T,D){var X,ie,pe,_e,Xe,ct,Et,Yt,hr,Tr,Rr,Jr,li=D[0],Gi=D[1],fn=D[2];return T===I?(I[12]=T[0]*li+T[4]*Gi+T[8]*fn+T[12],I[13]=T[1]*li+T[5]*Gi+T[9]*fn+T[13],I[14]=T[2]*li+T[6]*Gi+T[10]*fn+T[14],I[15]=T[3]*li+T[7]*Gi+T[11]*fn+T[15]):(ie=T[1],pe=T[2],_e=T[3],Xe=T[4],ct=T[5],Et=T[6],Yt=T[7],hr=T[8],Tr=T[9],Rr=T[10],Jr=T[11],I[0]=X=T[0],I[1]=ie,I[2]=pe,I[3]=_e,I[4]=Xe,I[5]=ct,I[6]=Et,I[7]=Yt,I[8]=hr,I[9]=Tr,I[10]=Rr,I[11]=Jr,I[12]=X*li+Xe*Gi+hr*fn+T[12],I[13]=ie*li+ct*Gi+Tr*fn+T[13],I[14]=pe*li+Et*Gi+Rr*fn+T[14],I[15]=_e*li+Yt*Gi+Jr*fn+T[15]),I},i.K=function(I,T,D){var X=D[0],ie=D[1],pe=D[2];return I[0]=T[0]*X,I[1]=T[1]*X,I[2]=T[2]*X,I[3]=T[3]*X,I[4]=T[4]*ie,I[5]=T[5]*ie,I[6]=T[6]*ie,I[7]=T[7]*ie,I[8]=T[8]*pe,I[9]=T[9]*pe,I[10]=T[10]*pe,I[11]=T[11]*pe,I[12]=T[12],I[13]=T[13],I[14]=T[14],I[15]=T[15],I},i.L=Zi,i.M=function(I,T){let D={};for(let X=0;X{let T=window.document.createElement("video");return T.muted=!0,new Promise((D=>{T.onloadstart=()=>{D(T)};for(let X of I){let ie=window.document.createElement("source");Te(X)||(T.crossOrigin="Anonymous"),ie.src=X,T.appendChild(ie)}}))},i.a4=function(){return x++},i.a5=Ua,i.a6=R1,i.a7=Jn,i.a8=hf,i.a9=AM,i.aA=function(I){if(I.type==="custom")return new _M(I);switch(I.type){case"background":return new vB(I);case"circle":return new Ji(I);case"fill":return new Ft(I);case"fill-extrusion":return new Ad(I);case"heatmap":return new pl(I);case"hillshade":return new vf(I);case"line":return new pg(I);case"raster":return new ob(I);case"symbol":return new gg(I)}},i.aB=m,i.aC=function(I,T){if(!I)return[{command:"setStyle",args:[T]}];let D=[];try{if(!bt(I.version,T.version))return[{command:"setStyle",args:[T]}];bt(I.center,T.center)||D.push({command:"setCenter",args:[T.center]}),bt(I.zoom,T.zoom)||D.push({command:"setZoom",args:[T.zoom]}),bt(I.bearing,T.bearing)||D.push({command:"setBearing",args:[T.bearing]}),bt(I.pitch,T.pitch)||D.push({command:"setPitch",args:[T.pitch]}),bt(I.sprite,T.sprite)||D.push({command:"setSprite",args:[T.sprite]}),bt(I.glyphs,T.glyphs)||D.push({command:"setGlyphs",args:[T.glyphs]}),bt(I.transition,T.transition)||D.push({command:"setTransition",args:[T.transition]}),bt(I.light,T.light)||D.push({command:"setLight",args:[T.light]}),bt(I.terrain,T.terrain)||D.push({command:"setTerrain",args:[T.terrain]}),bt(I.sky,T.sky)||D.push({command:"setSky",args:[T.sky]}),bt(I.projection,T.projection)||D.push({command:"setProjection",args:[T.projection]});let X={},ie=[];(function(_e,Xe,ct,Et){let Yt;for(Yt in Xe=Xe||{},_e=_e||{})Object.prototype.hasOwnProperty.call(_e,Yt)&&(Object.prototype.hasOwnProperty.call(Xe,Yt)||Ke(Yt,ct,Et));for(Yt in Xe)Object.prototype.hasOwnProperty.call(Xe,Yt)&&(Object.prototype.hasOwnProperty.call(_e,Yt)?bt(_e[Yt],Xe[Yt])||(_e[Yt].type==="geojson"&&Xe[Yt].type==="geojson"&&Mt(_e,Xe,Yt)?Ot(ct,{command:"setGeoJSONSourceData",args:[Yt,Xe[Yt].data]}):zt(Yt,Xe,ct,Et)):it(Yt,Xe,ct))})(I.sources,T.sources,ie,X);let pe=[];I.layers&&I.layers.forEach((_e=>{"source"in _e&&X[_e.source]?D.push({command:"removeLayer",args:[_e.id]}):pe.push(_e)})),D=D.concat(ie),(function(_e,Xe,ct){Xe=Xe||[];let Et=(_e=_e||[]).map($e),Yt=Xe.map($e),hr=_e.reduce(Re,{}),Tr=Xe.reduce(Re,{}),Rr=Et.slice(),Jr=Object.create(null),li,Gi,fn,Za,Rn;for(let La=0,So=0;La@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((D,X,ie,pe)=>{let _e=ie||pe;return T[X]=!_e||_e.toLowerCase(),""})),T["max-age"]){let D=parseInt(T["max-age"],10);isNaN(D)?delete T["max-age"]:T["max-age"]=D}return T},i.ab=function(I,T){let D=[];for(let X in I)X in T||D.push(X);return D},i.ac=E,i.ad=function(I,T,D){var X=Math.sin(D),ie=Math.cos(D),pe=T[0],_e=T[1],Xe=T[2],ct=T[3],Et=T[4],Yt=T[5],hr=T[6],Tr=T[7];return T!==I&&(I[8]=T[8],I[9]=T[9],I[10]=T[10],I[11]=T[11],I[12]=T[12],I[13]=T[13],I[14]=T[14],I[15]=T[15]),I[0]=pe*ie+Et*X,I[1]=_e*ie+Yt*X,I[2]=Xe*ie+hr*X,I[3]=ct*ie+Tr*X,I[4]=Et*ie-pe*X,I[5]=Yt*ie-_e*X,I[6]=hr*ie-Xe*X,I[7]=Tr*ie-ct*X,I},i.ae=function(I){var T=new dn(16);return T[0]=I[0],T[1]=I[1],T[2]=I[2],T[3]=I[3],T[4]=I[4],T[5]=I[5],T[6]=I[6],T[7]=I[7],T[8]=I[8],T[9]=I[9],T[10]=I[10],T[11]=I[11],T[12]=I[12],T[13]=I[13],T[14]=I[14],T[15]=I[15],T},i.af=hs,i.ag=function(I,T){let D=0,X=0;if(I.kind==="constant")X=I.layoutSize;else if(I.kind!=="source"){let{interpolationType:ie,minZoom:pe,maxZoom:_e}=I,Xe=ie?E(so.interpolationFactor(ie,T,pe,_e),0,1):0;I.kind==="camera"?X=ka.number(I.minSize,I.maxSize,Xe):D=Xe}return{uSizeT:D,uSize:X}},i.ai=function(I,{uSize:T,uSizeT:D},{lowerSize:X,upperSize:ie}){return I.kind==="source"?X/p0:I.kind==="composite"?ka.number(X/p0,ie/p0,D):T},i.aj=vM,i.ak=function(I,T,D,X){let ie=T.y-I.y,pe=T.x-I.x,_e=X.y-D.y,Xe=X.x-D.x,ct=_e*pe-Xe*ie;if(ct===0)return null;let Et=(Xe*(I.y-D.y)-_e*(I.x-D.x))/ct;return new l(I.x+Et*pe,I.y+Et*ie)},i.al=jC,i.am=fc,i.an=En,i.ao=function(I){let T=1/0,D=1/0,X=-1/0,ie=-1/0;for(let pe of I)T=Math.min(T,pe.x),D=Math.min(D,pe.y),X=Math.max(X,pe.x),ie=Math.max(ie,pe.y);return[T,D,X,ie]},i.ap=jf,i.ar=pM,i.as=function(I,T){var D=T[0],X=T[1],ie=T[2],pe=T[3],_e=T[4],Xe=T[5],ct=T[6],Et=T[7],Yt=T[8],hr=T[9],Tr=T[10],Rr=T[11],Jr=T[12],li=T[13],Gi=T[14],fn=T[15],Za=D*Xe-X*_e,Rn=D*ct-ie*_e,La=D*Et-pe*_e,So=X*ct-ie*Xe,kl=X*Et-pe*Xe,mu=ie*Et-pe*ct,Iu=Yt*li-hr*Jr,su=Yt*Gi-Tr*Jr,yl=Yt*fn-Rr*Jr,Eu=hr*Gi-Tr*li,bu=hr*fn-Rr*li,_u=Tr*fn-Rr*Gi,Xs=Za*_u-Rn*bu+La*Eu+So*yl-kl*su+mu*Iu;return Xs?(I[0]=(Xe*_u-ct*bu+Et*Eu)*(Xs=1/Xs),I[1]=(ie*bu-X*_u-pe*Eu)*Xs,I[2]=(li*mu-Gi*kl+fn*So)*Xs,I[3]=(Tr*kl-hr*mu-Rr*So)*Xs,I[4]=(ct*yl-_e*_u-Et*su)*Xs,I[5]=(D*_u-ie*yl+pe*su)*Xs,I[6]=(Gi*La-Jr*mu-fn*Rn)*Xs,I[7]=(Yt*mu-Tr*La+Rr*Rn)*Xs,I[8]=(_e*bu-Xe*yl+Et*Iu)*Xs,I[9]=(X*yl-D*bu-pe*Iu)*Xs,I[10]=(Jr*kl-li*La+fn*Za)*Xs,I[11]=(hr*La-Yt*kl-Rr*Za)*Xs,I[12]=(Xe*su-_e*Eu-ct*Iu)*Xs,I[13]=(D*Eu-X*su+ie*Iu)*Xs,I[14]=(li*Rn-Jr*So-Gi*Za)*Xs,I[15]=(Yt*So-hr*Rn+Tr*Za)*Xs,I):null},i.at=MM,i.au=Xw,i.av=EM,i.aw=function(){let I={},T=ce.$version;for(let D in ce.$root){let X=ce.$root[D];if(X.required){let ie=null;ie=D==="version"?T:X.type==="array"?[]:{},ie!=null&&(I[D]=ie)}}return I},i.ax=va,i.ay=te,i.az=function(I){I=I.slice();let T=Object.create(null);for(let D=0;D25||X<0||X>=1||D<0||D>=1)},i.bc=function(I,T){return I[0]=T[0],I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[5]=T[1],I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[10]=T[2],I[11]=0,I[12]=0,I[13]=0,I[14]=0,I[15]=1,I},i.bd=class extends Rt{},i.be=bM,i.bf=AB,i.bh=de,i.bi=function(I,T){me.REGISTERED_PROTOCOLS[I]=T},i.bj=function(I){delete me.REGISTERED_PROTOCOLS[I]},i.bk=function(I,T){let D={};for(let ie=0;ie_u*jf))}let su=_e?"center":D.get("text-justify").evaluate(Et,{},I.canonical),yl=D.get("symbol-placement")==="point"?D.get("text-max-width").evaluate(Et,{},I.canonical)*jf:1/0,Eu=()=>{I.bucket.allowVerticalPlacement&&is(La)&&(Jr.vertical=eb(li,I.glyphMap,I.glyphPositions,I.imagePositions,Yt,yl,pe,mu,"left",kl,fn,i.ah.vertical,!0,Tr,hr))};if(!_e&&Iu){let bu=new Set;if(su==="auto")for(let Xs=0;Xsa(void 0,void 0,void 0,(function*(){if(I.byteLength===0)return createImageBitmap(new ImageData(1,1));let T=new Blob([new Uint8Array(I)],{type:"image/png"});try{return createImageBitmap(T)}catch(D){throw new Error(`Could not load image because of ${D.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}})),i.e=L,i.f=I=>new Promise(((T,D)=>{let X=new Image;X.onload=()=>{T(X),URL.revokeObjectURL(X.src),X.onload=null,window.requestAnimationFrame((()=>{X.src=j}))},X.onerror=()=>D(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let ie=new Blob([new Uint8Array(I)],{type:"image/png"});X.src=I.byteLength?URL.createObjectURL(ie):j})),i.g=Ce,i.h=(I,T)=>Se(L(I,{type:"json"}),T),i.i=F,i.j=ge,i.k=Ie,i.l=(I,T)=>Se(L(I,{type:"arrayBuffer"}),T),i.m=Se,i.n=function(I){return new cM(I).readFields(eee,[])},i.o=ul,i.p=dM,i.q=ue,i.r=Ti,i.s=Te,i.t=Li,i.u=yi,i.v=ce,i.w=M,i.x=function([I,T,D]){return T+=90,T*=Math.PI/180,D*=Math.PI/180,{x:I*Math.cos(T)*Math.sin(D),y:I*Math.sin(T)*Math.sin(D),z:I*Math.cos(D)}},i.y=ka,i.z=cs})),r("worker",["./shared"],(function(i){"use strict";class a{constructor(xe){this.keyCache={},xe&&this.replace(xe)}replace(xe){this._layerConfigs={},this._layers={},this.update(xe,[])}update(xe,Oe){for(let De of xe){this._layerConfigs[De.id]=De;let ht=this._layers[De.id]=i.aA(De);ht._featureFilter=i.a7(ht.filter),this.keyCache[De.id]&&delete this.keyCache[De.id]}for(let De of Oe)delete this.keyCache[De],delete this._layerConfigs[De],delete this._layers[De];this.familiesBySource={};let ze=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let De of ze){let ht=De.map((cr=>this._layers[cr.id])),st=ht[0];if(st.visibility==="none")continue;let gt=st.source||"",xt=this.familiesBySource[gt];xt||(xt=this.familiesBySource[gt]={});let pr=st.sourceLayer||"_geojsonTileLayer",br=xt[pr];br||(br=xt[pr]=[]),br.push(ht)}}}class o{constructor(xe){let Oe={},ze=[];for(let gt in xe){let xt=xe[gt],pr=Oe[gt]={};for(let br in xt){let cr=xt[+br];if(!cr||cr.bitmap.width===0||cr.bitmap.height===0)continue;let Er={x:0,y:0,w:cr.bitmap.width+2,h:cr.bitmap.height+2};ze.push(Er),pr[br]={rect:Er,metrics:cr.metrics}}}let{w:De,h:ht}=i.p(ze),st=new i.o({width:De||1,height:ht||1});for(let gt in xe){let xt=xe[gt];for(let pr in xt){let br=xt[+pr];if(!br||br.bitmap.width===0||br.bitmap.height===0)continue;let cr=Oe[gt][pr].rect;i.o.copy(br.bitmap,st,{x:0,y:0},{x:cr.x+1,y:cr.y+1},br.bitmap)}}this.image=st,this.positions=Oe}}i.bl("GlyphAtlas",o);class s{constructor(xe){this.tileID=new i.S(xe.tileID.overscaledZ,xe.tileID.wrap,xe.tileID.canonical.z,xe.tileID.canonical.x,xe.tileID.canonical.y),this.uid=xe.uid,this.zoom=xe.zoom,this.pixelRatio=xe.pixelRatio,this.tileSize=xe.tileSize,this.source=xe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=xe.showCollisionBoxes,this.collectResourceTiming=!!xe.collectResourceTiming,this.returnDependencies=!!xe.returnDependencies,this.promoteId=xe.promoteId,this.inFlightDependencies=[]}parse(xe,Oe,ze,De){return i._(this,void 0,void 0,(function*(){this.status="parsing",this.data=xe,this.collisionBoxArray=new i.a5;let ht=new i.bm(Object.keys(xe.layers).sort()),st=new i.bn(this.tileID,this.promoteId);st.bucketLayerIDs=[];let gt={},xt={featureIndex:st,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:ze},pr=Oe.familiesBySource[this.source];for(let hn in pr){let qr=xe.layers[hn];if(!qr)continue;qr.version===1&&i.w(`Vector tile source "${this.source}" layer "${hn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let _i=ht.encode(hn),zi=[];for(let Dt=0;Dt=_t.maxzoom||_t.visibility!=="none"&&(u(Dt,this.zoom,ze),(gt[_t.id]=_t.createBucket({index:st.bucketLayerIDs.length,layers:Dt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_i,sourceID:this.source})).populate(zi,xt,this.tileID.canonical),st.bucketLayerIDs.push(Dt.map((qt=>qt.id))))}}let br=i.aF(xt.glyphDependencies,(hn=>Object.keys(hn).map(Number)));this.inFlightDependencies.forEach((hn=>hn==null?void 0:hn.abort())),this.inFlightDependencies=[];let cr=Promise.resolve({});if(Object.keys(br).length){let hn=new AbortController;this.inFlightDependencies.push(hn),cr=De.sendAsync({type:"GG",data:{stacks:br,source:this.source,tileID:this.tileID,type:"glyphs"}},hn)}let Er=Object.keys(xt.iconDependencies),ii=Promise.resolve({});if(Er.length){let hn=new AbortController;this.inFlightDependencies.push(hn),ii=De.sendAsync({type:"GI",data:{icons:Er,source:this.source,tileID:this.tileID,type:"icons"}},hn)}let jr=Object.keys(xt.patternDependencies),kr=Promise.resolve({});if(jr.length){let hn=new AbortController;this.inFlightDependencies.push(hn),kr=De.sendAsync({type:"GI",data:{icons:jr,source:this.source,tileID:this.tileID,type:"patterns"}},hn)}let[Vr,Ai,Bi]=yield Promise.all([cr,ii,kr]),Ri=new o(Vr),ln=new i.bo(Ai,Bi);for(let hn in gt){let qr=gt[hn];qr instanceof i.a6?(u(qr.layers,this.zoom,ze),i.bp({bucket:qr,glyphMap:Vr,glyphPositions:Ri.positions,imageMap:Ai,imagePositions:ln.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):qr.hasPattern&&(qr instanceof i.bq||qr instanceof i.br||qr instanceof i.bs)&&(u(qr.layers,this.zoom,ze),qr.addFeatures(xt,this.tileID.canonical,ln.patternPositions))}return this.status="done",{buckets:Object.values(gt).filter((hn=>!hn.isEmpty())),featureIndex:st,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ri.image,imageAtlas:ln,glyphMap:this.returnDependencies?Vr:null,iconMap:this.returnDependencies?Ai:null,glyphPositions:this.returnDependencies?Ri.positions:null}}))}}function u(Pe,xe,Oe){let ze=new i.z(xe);for(let De of Pe)De.recalculate(ze,Oe)}class l{constructor(xe,Oe,ze){this.actor=xe,this.layerIndex=Oe,this.availableImages=ze,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(xe,Oe){return i._(this,void 0,void 0,(function*(){let ze=yield i.l(xe.request,Oe);try{return{vectorTile:new i.bt.VectorTile(new i.bu(ze.data)),rawData:ze.data,cacheControl:ze.cacheControl,expires:ze.expires}}catch(De){let ht=new Uint8Array(ze.data),st=`Unable to parse the tile at ${xe.request.url}, `;throw st+=ht[0]===31&&ht[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${De.message}`,new Error(st)}}))}loadTile(xe){return i._(this,void 0,void 0,(function*(){let Oe=xe.uid,ze=!!(xe&&xe.request&&xe.request.collectResourceTiming)&&new i.bv(xe.request),De=new s(xe);this.loading[Oe]=De;let ht=new AbortController;De.abort=ht;try{let st=yield this.loadVectorTile(xe,ht);if(delete this.loading[Oe],!st)return null;let gt=st.rawData,xt={};st.expires&&(xt.expires=st.expires),st.cacheControl&&(xt.cacheControl=st.cacheControl);let pr={};if(ze){let cr=ze.finish();cr&&(pr.resourceTiming=JSON.parse(JSON.stringify(cr)))}De.vectorTile=st.vectorTile;let br=De.parse(st.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Oe]=De,this.fetching[Oe]={rawTileData:gt,cacheControl:xt,resourceTiming:pr};try{let cr=yield br;return i.e({rawTileData:gt.slice(0)},cr,xt,pr)}finally{delete this.fetching[Oe]}}catch(st){throw delete this.loading[Oe],De.status="done",this.loaded[Oe]=De,st}}))}reloadTile(xe){return i._(this,void 0,void 0,(function*(){let Oe=xe.uid;if(!this.loaded||!this.loaded[Oe])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let ze=this.loaded[Oe];if(ze.showCollisionBoxes=xe.showCollisionBoxes,ze.status==="parsing"){let De=yield ze.parse(ze.vectorTile,this.layerIndex,this.availableImages,this.actor),ht;if(this.fetching[Oe]){let{rawTileData:st,cacheControl:gt,resourceTiming:xt}=this.fetching[Oe];delete this.fetching[Oe],ht=i.e({rawTileData:st.slice(0)},De,gt,xt)}else ht=De;return ht}if(ze.status==="done"&&ze.vectorTile)return ze.parse(ze.vectorTile,this.layerIndex,this.availableImages,this.actor)}))}abortTile(xe){return i._(this,void 0,void 0,(function*(){let Oe=this.loading,ze=xe.uid;Oe&&Oe[ze]&&Oe[ze].abort&&(Oe[ze].abort.abort(),delete Oe[ze])}))}removeTile(xe){return i._(this,void 0,void 0,(function*(){this.loaded&&this.loaded[xe.uid]&&delete this.loaded[xe.uid]}))}}class f{constructor(){this.loaded={}}loadTile(xe){return i._(this,void 0,void 0,(function*(){let{uid:Oe,encoding:ze,rawImageData:De,redFactor:ht,greenFactor:st,blueFactor:gt,baseShift:xt}=xe,pr=De.width+2,br=De.height+2,cr=i.b(De)?new i.R({width:pr,height:br},yield i.bw(De,-1,-1,pr,br)):De,Er=new i.bx(Oe,cr,ze,ht,st,gt,xt);return this.loaded=this.loaded||{},this.loaded[Oe]=Er,Er}))}removeTile(xe){let Oe=this.loaded,ze=xe.uid;Oe&&Oe[ze]&&delete Oe[ze]}}function c(Pe,xe){if(Pe.length!==0){h(Pe[0],xe);for(var Oe=1;Oe=Math.abs(gt)?Oe-xt+gt:gt-xt+Oe,Oe=xt}Oe+ze>=0!=!!xe&&Pe.reverse()}var d=i.by((function Pe(xe,Oe){var ze,De=xe&&xe.type;if(De==="FeatureCollection")for(ze=0;ze>31}function F(Pe,xe){for(var Oe=Pe.loadGeometry(),ze=Pe.type,De=0,ht=0,st=Oe.length,gt=0;gtPe},W=Math.fround||(N=new Float32Array(1),Pe=>(N[0]=+Pe,N[0]));var N;let H=3,re=5,ae=6;class me{constructor(xe){this.options=Object.assign(Object.create(j),xe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(xe){let{log:Oe,minZoom:ze,maxZoom:De}=this.options;Oe&&console.time("total time");let ht=`prepare ${xe.length} points`;Oe&&console.time(ht),this.points=xe;let st=[];for(let xt=0;xt=ze;xt--){let pr=+Date.now();gt=this.trees[xt]=this._createTree(this._cluster(gt,xt)),Oe&&console.log("z%d: %d clusters in %dms",xt,gt.numItems,+Date.now()-pr)}return Oe&&console.timeEnd("total time"),this}getClusters(xe,Oe){let ze=((xe[0]+180)%360+360)%360-180,De=Math.max(-90,Math.min(90,xe[1])),ht=xe[2]===180?180:((xe[2]+180)%360+360)%360-180,st=Math.max(-90,Math.min(90,xe[3]));if(xe[2]-xe[0]>=360)ze=-180,ht=180;else if(ze>ht){let cr=this.getClusters([ze,De,180,st],Oe),Er=this.getClusters([-180,De,ht,st],Oe);return cr.concat(Er)}let gt=this.trees[this._limitZoom(Oe)],xt=gt.range(de(ze),te(st),de(ht),te(De)),pr=gt.data,br=[];for(let cr of xt){let Er=this.stride*cr;br.push(pr[Er+re]>1?Ce(pr,Er,this.clusterProps):this.points[pr[Er+H]])}return br}getChildren(xe){let Oe=this._getOriginId(xe),ze=this._getOriginZoom(xe),De="No cluster with the specified id.",ht=this.trees[ze];if(!ht)throw new Error(De);let st=ht.data;if(Oe*this.stride>=st.length)throw new Error(De);let gt=this.options.radius/(this.options.extent*Math.pow(2,ze-1)),xt=ht.within(st[Oe*this.stride],st[Oe*this.stride+1],gt),pr=[];for(let br of xt){let cr=br*this.stride;st[cr+4]===xe&&pr.push(st[cr+re]>1?Ce(st,cr,this.clusterProps):this.points[st[cr+H]])}if(pr.length===0)throw new Error(De);return pr}getLeaves(xe,Oe,ze){let De=[];return this._appendLeaves(De,xe,Oe=Oe||10,ze=ze||0,0),De}getTile(xe,Oe,ze){let De=this.trees[this._limitZoom(xe)],ht=Math.pow(2,xe),{extent:st,radius:gt}=this.options,xt=gt/st,pr=(ze-xt)/ht,br=(ze+1+xt)/ht,cr={features:[]};return this._addTileFeatures(De.range((Oe-xt)/ht,pr,(Oe+1+xt)/ht,br),De.data,Oe,ze,ht,cr),Oe===0&&this._addTileFeatures(De.range(1-xt/ht,pr,1,br),De.data,ht,ze,ht,cr),Oe===ht-1&&this._addTileFeatures(De.range(0,pr,xt/ht,br),De.data,-1,ze,ht,cr),cr.features.length?cr:null}getClusterExpansionZoom(xe){let Oe=this._getOriginZoom(xe)-1;for(;Oe<=this.options.maxZoom;){let ze=this.getChildren(xe);if(Oe++,ze.length!==1)break;xe=ze[0].properties.cluster_id}return Oe}_appendLeaves(xe,Oe,ze,De,ht){let st=this.getChildren(Oe);for(let gt of st){let xt=gt.properties;if(xt&&xt.cluster?ht+xt.point_count<=De?ht+=xt.point_count:ht=this._appendLeaves(xe,xt.cluster_id,ze,De,ht):ht1,br,cr,Er;if(pr)br=Ee(Oe,xt,this.clusterProps),cr=Oe[xt],Er=Oe[xt+1];else{let kr=this.points[Oe[xt+H]];br=kr.properties;let[Vr,Ai]=kr.geometry.coordinates;cr=de(Vr),Er=te(Ai)}let ii={type:1,geometry:[[Math.round(this.options.extent*(cr*ht-ze)),Math.round(this.options.extent*(Er*ht-De))]],tags:br},jr;jr=pr||this.options.generateId?Oe[xt+H]:this.points[Oe[xt+H]].id,jr!==void 0&&(ii.id=jr),st.features.push(ii)}}_limitZoom(xe){return Math.max(this.options.minZoom,Math.min(Math.floor(+xe),this.options.maxZoom+1))}_cluster(xe,Oe){let{radius:ze,extent:De,reduce:ht,minPoints:st}=this.options,gt=ze/(De*Math.pow(2,Oe)),xt=xe.data,pr=[],br=this.stride;for(let cr=0;crOe&&(Vr+=xt[Bi+re])}if(Vr>kr&&Vr>=st){let Ai,Bi=Er*kr,Ri=ii*kr,ln=-1,hn=((cr/br|0)<<5)+(Oe+1)+this.points.length;for(let qr of jr){let _i=qr*br;if(xt[_i+2]<=Oe)continue;xt[_i+2]=Oe;let zi=xt[_i+re];Bi+=xt[_i]*zi,Ri+=xt[_i+1]*zi,xt[_i+4]=hn,ht&&(Ai||(Ai=this._map(xt,cr,!0),ln=this.clusterProps.length,this.clusterProps.push(Ai)),ht(Ai,this._map(xt,_i)))}xt[cr+4]=hn,pr.push(Bi/Vr,Ri/Vr,1/0,hn,-1,Vr),ht&&pr.push(ln)}else{for(let Ai=0;Ai1)for(let Ai of jr){let Bi=Ai*br;if(!(xt[Bi+2]<=Oe)){xt[Bi+2]=Oe;for(let Ri=0;Ri>5}_getOriginZoom(xe){return(xe-this.points.length)%32}_map(xe,Oe,ze){if(xe[Oe+re]>1){let st=this.clusterProps[xe[Oe+ae]];return ze?Object.assign({},st):st}let De=this.points[xe[Oe+H]].properties,ht=this.options.map(De);return ze&&ht===De?Object.assign({},ht):ht}}function Ce(Pe,xe,Oe){return{type:"Feature",id:Pe[xe+H],properties:Ee(Pe,xe,Oe),geometry:{type:"Point",coordinates:[(ze=Pe[xe],360*(ze-.5)),Se(Pe[xe+1])]}};var ze}function Ee(Pe,xe,Oe){let ze=Pe[xe+re],De=ze>=1e4?`${Math.round(ze/1e3)}k`:ze>=1e3?Math.round(ze/100)/10+"k":ze,ht=Pe[xe+ae],st=ht===-1?{}:Object.assign({},Oe[ht]);return Object.assign(st,{cluster:!0,cluster_id:Pe[xe+H],point_count:ze,point_count_abbreviated:De})}function de(Pe){return Pe/360+.5}function te(Pe){let xe=Math.sin(Pe*Math.PI/180),Oe=.5-.25*Math.log((1+xe)/(1-xe))/Math.PI;return Oe<0?0:Oe>1?1:Oe}function Se(Pe){let xe=(180-360*Pe)*Math.PI/180;return 360*Math.atan(Math.exp(xe))/Math.PI-90}function Te(Pe,xe,Oe,ze){let De=ze,ht=xe+(Oe-xe>>1),st,gt=Oe-xe,xt=Pe[xe],pr=Pe[xe+1],br=Pe[Oe],cr=Pe[Oe+1];for(let Er=xe+3;ErDe)st=Er,De=ii;else if(ii===De){let jr=Math.abs(Er-ht);jrze&&(st-xe>3&&Te(Pe,xe,st,ze),Pe[st+2]=De,Oe-st>3&&Te(Pe,st,Oe,ze))}function be(Pe,xe,Oe,ze,De,ht){let st=De-Oe,gt=ht-ze;if(st!==0||gt!==0){let xt=((Pe-Oe)*st+(xe-ze)*gt)/(st*st+gt*gt);xt>1?(Oe=De,ze=ht):xt>0&&(Oe+=st*xt,ze+=gt*xt)}return st=Pe-Oe,gt=xe-ze,st*st+gt*gt}function He(Pe,xe,Oe,ze){let De={id:Pe==null?null:Pe,type:xe,geometry:Oe,tags:ze,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(xe==="Point"||xe==="MultiPoint"||xe==="LineString")Ie(De,Oe);else if(xe==="Polygon")Ie(De,Oe[0]);else if(xe==="MultiLineString")for(let ht of Oe)Ie(De,ht);else if(xe==="MultiPolygon")for(let ht of Oe)Ie(De,ht[0]);return De}function Ie(Pe,xe){for(let Oe=0;Oe0&&(st+=ze?(De*br-pr*ht)/2:Math.sqrt(Math.pow(pr-De,2)+Math.pow(br-ht,2))),De=pr,ht=br}let gt=xe.length-3;xe[2]=1,Te(xe,0,gt,Oe),xe[gt+2]=1,xe.size=Math.abs(st),xe.start=0,xe.end=xe.size}function je(Pe,xe,Oe,ze){for(let De=0;De1?1:Oe}function Ot(Pe,xe,Oe,ze,De,ht,st,gt){if(ze/=xe,ht>=(Oe/=xe)&&st=ze)return null;let xt=[];for(let pr of Pe){let br=pr.geometry,cr=pr.type,Er=De===0?pr.minX:pr.minY,ii=De===0?pr.maxX:pr.maxY;if(Er>=Oe&&ii=ze)continue;let jr=[];if(cr==="Point"||cr==="MultiPoint")it(br,jr,Oe,ze,De);else if(cr==="LineString")Ke(br,jr,Oe,ze,De,!1,gt.lineMetrics);else if(cr==="MultiLineString")Mt(br,jr,Oe,ze,De,!1);else if(cr==="Polygon")Mt(br,jr,Oe,ze,De,!0);else if(cr==="MultiPolygon")for(let kr of br){let Vr=[];Mt(kr,Vr,Oe,ze,De,!0),Vr.length&&jr.push(Vr)}if(jr.length){if(gt.lineMetrics&&cr==="LineString"){for(let kr of jr)xt.push(He(pr.id,cr,kr,pr.tags));continue}cr!=="LineString"&&cr!=="MultiLineString"||(jr.length===1?(cr="LineString",jr=jr[0]):cr="MultiLineString"),cr!=="Point"&&cr!=="MultiPoint"||(cr=jr.length===3?"Point":"MultiPoint"),xt.push(He(pr.id,cr,jr,pr.tags))}}return xt.length?xt:null}function it(Pe,xe,Oe,ze,De){for(let ht=0;ht=Oe&&st<=ze&&kt(xe,Pe[ht],Pe[ht+1],Pe[ht+2])}}function Ke(Pe,xe,Oe,ze,De,ht,st){let gt=zt(Pe),xt=De===0?$e:Re,pr,br,cr=Pe.start;for(let Vr=0;VrOe&&(br=xt(gt,Ai,Bi,ln,hn,Oe),st&&(gt.start=cr+pr*br)):qr>ze?_i=Oe&&(br=xt(gt,Ai,Bi,ln,hn,Oe),zi=!0),_i>ze&&qr<=ze&&(br=xt(gt,Ai,Bi,ln,hn,ze),zi=!0),!ht&&zi&&(st&&(gt.end=cr+pr*br),xe.push(gt),gt=zt(Pe)),st&&(cr+=pr)}let Er=Pe.length-3,ii=Pe[Er],jr=Pe[Er+1],kr=De===0?ii:jr;kr>=Oe&&kr<=ze&&kt(gt,ii,jr,Pe[Er+2]),Er=gt.length-3,ht&&Er>=3&&(gt[Er]!==gt[0]||gt[Er+1]!==gt[1])&&kt(gt,gt[0],gt[1],gt[2]),gt.length&&xe.push(gt)}function zt(Pe){let xe=[];return xe.size=Pe.size,xe.start=Pe.start,xe.end=Pe.end,xe}function Mt(Pe,xe,Oe,ze,De,ht){for(let st of Pe)Ke(st,xe,Oe,ze,De,ht,!1)}function kt(Pe,xe,Oe,ze){Pe.push(xe,Oe,ze)}function $e(Pe,xe,Oe,ze,De,ht){let st=(ht-xe)/(ze-xe);return kt(Pe,ht,Oe+(De-Oe)*st,1),st}function Re(Pe,xe,Oe,ze,De,ht){let st=(ht-Oe)/(De-Oe);return kt(Pe,xe+(ze-xe)*st,ht,1),st}function Me(Pe,xe){let Oe=[];for(let ze=0;ze0&&xe.size<(De?st:ze))return void(Oe.numPoints+=xe.length/3);let gt=[];for(let xt=0;xtst)&&(Oe.numSimplified++,gt.push(xe[xt],xe[xt+1])),Oe.numPoints++;De&&(function(xt,pr){let br=0;for(let cr=0,Er=xt.length,ii=Er-2;cr0===pr)for(let cr=0,Er=xt.length;cr24)throw new Error("maxZoom should be in the 0-24 range");if(Oe.promoteId&&Oe.generateId)throw new Error("promoteId and generateId cannot be used together.");let De=(function(ht,st){let gt=[];if(ht.type==="FeatureCollection")for(let xt=0;xt1&&console.time("creation"),ii=this.tiles[Er]=lt(xe,Oe,ze,De,pr),this.tileCoords.push({z:Oe,x:ze,y:De}),br)){br>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Oe,ze,De,ii.numFeatures,ii.numPoints,ii.numSimplified),console.timeEnd("creation"));let zi=`z${Oe}`;this.stats[zi]=(this.stats[zi]||0)+1,this.total++}if(ii.source=xe,ht==null){if(Oe===pr.indexMaxZoom||ii.numPoints<=pr.indexMaxPoints)continue}else{if(Oe===pr.maxZoom||Oe===ht)continue;if(ht!=null){let zi=ht-Oe;if(ze!==st>>zi||De!==gt>>zi)continue}}if(ii.source=null,xe.length===0)continue;br>1&&console.time("clipping");let jr=.5*pr.buffer/pr.extent,kr=.5-jr,Vr=.5+jr,Ai=1+jr,Bi=null,Ri=null,ln=null,hn=null,qr=Ot(xe,cr,ze-jr,ze+Vr,0,ii.minX,ii.maxX,pr),_i=Ot(xe,cr,ze+kr,ze+Ai,0,ii.minX,ii.maxX,pr);xe=null,qr&&(Bi=Ot(qr,cr,De-jr,De+Vr,1,ii.minY,ii.maxY,pr),Ri=Ot(qr,cr,De+kr,De+Ai,1,ii.minY,ii.maxY,pr),qr=null),_i&&(ln=Ot(_i,cr,De-jr,De+Vr,1,ii.minY,ii.maxY,pr),hn=Ot(_i,cr,De+kr,De+Ai,1,ii.minY,ii.maxY,pr),_i=null),br>1&&console.timeEnd("clipping"),xt.push(Bi||[],Oe+1,2*ze,2*De),xt.push(Ri||[],Oe+1,2*ze,2*De+1),xt.push(ln||[],Oe+1,2*ze+1,2*De),xt.push(hn||[],Oe+1,2*ze+1,2*De+1)}}getTile(xe,Oe,ze){xe=+xe,Oe=+Oe,ze=+ze;let De=this.options,{extent:ht,debug:st}=De;if(xe<0||xe>24)return null;let gt=1<1&&console.log("drilling down to z%d-%d-%d",xe,Oe,ze);let pr,br=xe,cr=Oe,Er=ze;for(;!pr&&br>0;)br--,cr>>=1,Er>>=1,pr=this.tiles[Lt(br,cr,Er)];return pr&&pr.source?(st>1&&(console.log("found parent tile z%d-%d-%d",br,cr,Er),console.time("drilling down")),this.splitTile(pr.source,br,cr,Er,xe,Oe,ze),st>1&&console.timeEnd("drilling down"),this.tiles[xt]?Ne(this.tiles[xt],ht):null):null}}function Lt(Pe,xe,Oe){return 32*((1<{cr.properties=ii;let jr={};for(let kr of Er)jr[kr]=xt[kr].evaluate(br,cr);return jr},st.reduce=(ii,jr)=>{cr.properties=jr;for(let kr of Er)br.accumulated=ii[kr],ii[kr]=pr[kr].evaluate(br,cr)},st})(xe)).load((yield this._pendingData).features):(De=yield this._pendingData,new tt(De,xe.geojsonVtOptions)),this.loaded={};let ht={};if(ze){let st=ze.finish();st&&(ht.resourceTiming={},ht.resourceTiming[xe.source]=JSON.parse(JSON.stringify(st)))}return ht}catch(ht){if(delete this._pendingRequest,i.bB(ht))return{abandoned:!0};throw ht}var De}))}getData(){return i._(this,void 0,void 0,(function*(){return this._pendingData}))}reloadTile(xe){let Oe=this.loaded;return Oe&&Oe[xe.uid]?super.reloadTile(xe):this.loadTile(xe)}loadAndProcessGeoJSON(xe,Oe){return i._(this,void 0,void 0,(function*(){let ze=yield this.loadGeoJSON(xe,Oe);if(delete this._pendingRequest,typeof ze!="object")throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(d(ze,!0),xe.filter){let De=i.bC(xe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(De.result==="error")throw new Error(De.value.map((st=>`${st.key}: ${st.message}`)).join(", "));ze={type:"FeatureCollection",features:ze.features.filter((st=>De.value.evaluate({zoom:0},st)))}}return ze}))}loadGeoJSON(xe,Oe){return i._(this,void 0,void 0,(function*(){let{promoteId:ze}=xe;if(xe.request){let De=yield i.h(xe.request,Oe);return this._dataUpdateable=or(De.data,ze)?yr(De.data,ze):void 0,De.data}if(typeof xe.data=="string")try{let De=JSON.parse(xe.data);return this._dataUpdateable=or(De,ze)?yr(De,ze):void 0,De}catch(De){throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`)}if(!xe.dataDiff)throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${xe.source}`);return(function(De,ht,st){var gt,xt,pr,br;if(ht.removeAll&&De.clear(),ht.remove)for(let cr of ht.remove)De.delete(cr);if(ht.add)for(let cr of ht.add){let Er=jt(cr,st);Er!=null&&De.set(Er,cr)}if(ht.update)for(let cr of ht.update){let Er=De.get(cr.id);if(Er==null)continue;let ii=!cr.removeAllProperties&&(((gt=cr.removeProperties)===null||gt===void 0?void 0:gt.length)>0||((xt=cr.addOrUpdateProperties)===null||xt===void 0?void 0:xt.length)>0);if((cr.newGeometry||cr.removeAllProperties||ii)&&(Er=Object.assign({},Er),De.set(cr.id,Er),ii&&(Er.properties=Object.assign({},Er.properties))),cr.newGeometry&&(Er.geometry=cr.newGeometry),cr.removeAllProperties)Er.properties={};else if(((pr=cr.removeProperties)===null||pr===void 0?void 0:pr.length)>0)for(let jr of cr.removeProperties)Object.prototype.hasOwnProperty.call(Er.properties,jr)&&delete Er.properties[jr];if(((br=cr.addOrUpdateProperties)===null||br===void 0?void 0:br.length)>0)for(let{key:jr,value:kr}of cr.addOrUpdateProperties)Er.properties[jr]=kr}})(this._dataUpdateable,xe.dataDiff,ze),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}}))}removeSource(xe){return i._(this,void 0,void 0,(function*(){this._pendingRequest&&this._pendingRequest.abort()}))}getClusterExpansionZoom(xe){return this._geoJSONIndex.getClusterExpansionZoom(xe.clusterId)}getClusterChildren(xe){return this._geoJSONIndex.getChildren(xe.clusterId)}getClusterLeaves(xe){return this._geoJSONIndex.getLeaves(xe.clusterId,xe.limit,xe.offset)}}class Vt{constructor(xe){this.self=xe,this.actor=new i.F(xe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Oe,ze)=>{if(this.externalWorkerSourceTypes[Oe])throw new Error(`Worker source with name "${Oe}" already registered.`);this.externalWorkerSourceTypes[Oe]=ze},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Oe=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Oe)},this.actor.registerMessageHandler("LDT",((Oe,ze)=>this._getDEMWorkerSource(Oe,ze.source).loadTile(ze))),this.actor.registerMessageHandler("RDT",((Oe,ze)=>i._(this,void 0,void 0,(function*(){this._getDEMWorkerSource(Oe,ze.source).removeTile(ze)})))),this.actor.registerMessageHandler("GCEZ",((Oe,ze)=>i._(this,void 0,void 0,(function*(){return this._getWorkerSource(Oe,ze.type,ze.source).getClusterExpansionZoom(ze)})))),this.actor.registerMessageHandler("GCC",((Oe,ze)=>i._(this,void 0,void 0,(function*(){return this._getWorkerSource(Oe,ze.type,ze.source).getClusterChildren(ze)})))),this.actor.registerMessageHandler("GCL",((Oe,ze)=>i._(this,void 0,void 0,(function*(){return this._getWorkerSource(Oe,ze.type,ze.source).getClusterLeaves(ze)})))),this.actor.registerMessageHandler("LD",((Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).loadData(ze))),this.actor.registerMessageHandler("GD",((Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).getData())),this.actor.registerMessageHandler("LT",((Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).loadTile(ze))),this.actor.registerMessageHandler("RT",((Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).reloadTile(ze))),this.actor.registerMessageHandler("AT",((Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).abortTile(ze))),this.actor.registerMessageHandler("RMT",((Oe,ze)=>this._getWorkerSource(Oe,ze.type,ze.source).removeTile(ze))),this.actor.registerMessageHandler("RS",((Oe,ze)=>i._(this,void 0,void 0,(function*(){if(!this.workerSources[Oe]||!this.workerSources[Oe][ze.type]||!this.workerSources[Oe][ze.type][ze.source])return;let De=this.workerSources[Oe][ze.type][ze.source];delete this.workerSources[Oe][ze.type][ze.source],De.removeSource!==void 0&&De.removeSource(ze)})))),this.actor.registerMessageHandler("RM",(Oe=>i._(this,void 0,void 0,(function*(){delete this.layerIndexes[Oe],delete this.availableImages[Oe],delete this.workerSources[Oe],delete this.demWorkerSources[Oe]})))),this.actor.registerMessageHandler("SR",((Oe,ze)=>i._(this,void 0,void 0,(function*(){this.referrer=ze})))),this.actor.registerMessageHandler("SRPS",((Oe,ze)=>this._syncRTLPluginState(Oe,ze))),this.actor.registerMessageHandler("IS",((Oe,ze)=>i._(this,void 0,void 0,(function*(){this.self.importScripts(ze)})))),this.actor.registerMessageHandler("SI",((Oe,ze)=>this._setImages(Oe,ze))),this.actor.registerMessageHandler("UL",((Oe,ze)=>i._(this,void 0,void 0,(function*(){this._getLayerIndex(Oe).update(ze.layers,ze.removedIds)})))),this.actor.registerMessageHandler("SL",((Oe,ze)=>i._(this,void 0,void 0,(function*(){this._getLayerIndex(Oe).replace(ze)}))))}_setImages(xe,Oe){return i._(this,void 0,void 0,(function*(){this.availableImages[xe]=Oe;for(let ze in this.workerSources[xe]){let De=this.workerSources[xe][ze];for(let ht in De)De[ht].availableImages=Oe}}))}_syncRTLPluginState(xe,Oe){return i._(this,void 0,void 0,(function*(){if(i.bD.isParsed())return i.bD.getState();if(Oe.pluginStatus!=="loading")return i.bD.setState(Oe),Oe;let ze=Oe.pluginURL;if(this.self.importScripts(ze),i.bD.isParsed()){let De={pluginStatus:"loaded",pluginURL:ze};return i.bD.setState(De),De}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${ze}`)}))}_getAvailableImages(xe){let Oe=this.availableImages[xe];return Oe||(Oe=[]),Oe}_getLayerIndex(xe){let Oe=this.layerIndexes[xe];return Oe||(Oe=this.layerIndexes[xe]=new a),Oe}_getWorkerSource(xe,Oe,ze){if(this.workerSources[xe]||(this.workerSources[xe]={}),this.workerSources[xe][Oe]||(this.workerSources[xe][Oe]={}),!this.workerSources[xe][Oe][ze]){let De={sendAsync:(ht,st)=>(ht.targetMapId=xe,this.actor.sendAsync(ht,st))};switch(Oe){case"vector":this.workerSources[xe][Oe][ze]=new l(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;case"geojson":this.workerSources[xe][Oe][ze]=new vr(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;default:this.workerSources[xe][Oe][ze]=new this.externalWorkerSourceTypes[Oe](De,this._getLayerIndex(xe),this._getAvailableImages(xe))}}return this.workerSources[xe][Oe][ze]}_getDEMWorkerSource(xe,Oe){return this.demWorkerSources[xe]||(this.demWorkerSources[xe]={}),this.demWorkerSources[xe][Oe]||(this.demWorkerSources[xe][Oe]=new f),this.demWorkerSources[xe][Oe]}}return i.i(self)&&(self.worker=new Vt(self)),Vt})),r("index",["exports","./shared"],(function(i,a){"use strict";var o="4.7.1";let s,u,l={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise(((w,q)=>{let Q=requestAnimationFrame(w);ue.signal.addEventListener("abort",(()=>{cancelAnimationFrame(Q),q(a.c())}))})),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),q=w.getContext("2d",{willReadFrequently:!0});if(!q)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,q.drawImage(ue,0,0,ue.width,ue.height),q},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(u==null&&(u=matchMedia("(prefers-reduced-motion: reduce)")),u.matches)}};class f{static testProp(w){if(!f.docStyle)return w[0];for(let q=0;q{window.removeEventListener("click",f.suppressClickInternal,!0)}),0)}static getScale(w){let q=w.getBoundingClientRect();return{x:q.width/w.offsetWidth||1,y:q.height/w.offsetHeight||1,boundingClientRect:q}}static getPoint(w,q,Q){let ee=q.boundingClientRect;return new a.P((Q.clientX-ee.left)/q.x-w.clientLeft,(Q.clientY-ee.top)/q.y-w.clientTop)}static mousePos(w,q){let Q=f.getScale(w);return f.getPoint(w,Q,q)}static touchPos(w,q){let Q=[],ee=f.getScale(w);for(let fe=0;fe{h&&b(h),h=null,y=!0},d.onerror=()=>{p=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),(function(ue){let w,q,Q,ee;ue.resetRequestQueue=()=>{w=[],q=0,Q=0,ee={}},ue.addThrottleControl=yt=>{let Rt=Q++;return ee[Rt]=yt,Rt},ue.removeThrottleControl=yt=>{delete ee[yt],Ue()},ue.getImage=(yt,Rt,Qt=!0)=>new Promise(((rr,Mr)=>{c.supported&&(yt.headers||(yt.headers={}),yt.headers.accept="image/webp,*/*"),a.e(yt,{type:"image"}),w.push({abortController:Rt,requestParameters:yt,supportImageRefresh:Qt,state:"queued",onError:Ur=>{Mr(Ur)},onSuccess:Ur=>{rr(Ur)}}),Ue()}));let fe=yt=>a._(this,void 0,void 0,(function*(){yt.state="running";let{requestParameters:Rt,supportImageRefresh:Qt,onError:rr,onSuccess:Mr,abortController:Ur}=yt,he=Qt===!1&&!a.i(self)&&!a.g(Rt.url)&&(!Rt.headers||Object.keys(Rt.headers).reduce(((Ge,ft)=>Ge&&ft==="accept"),!0));q++;let Ae=he?at(Rt,Ur):a.m(Rt,Ur);try{let Ge=yield Ae;delete yt.abortController,yt.state="completed",Ge.data instanceof HTMLImageElement||a.b(Ge.data)?Mr(Ge):Ge.data&&Mr({data:yield(qe=Ge.data,typeof createImageBitmap=="function"?a.d(qe):a.f(qe)),cacheControl:Ge.cacheControl,expires:Ge.expires})}catch(Ge){delete yt.abortController,rr(Ge)}finally{q--,Ue()}var qe})),Ue=()=>{let yt=(()=>{for(let Rt of Object.keys(ee))if(ee[Rt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Rt=q;Rt0;Rt++){let Qt=w.shift();Qt.abortController.signal.aborted?Rt--:fe(Qt)}},at=(yt,Rt)=>new Promise(((Qt,rr)=>{let Mr=new Image,Ur=yt.url,he=yt.credentials;he&&he==="include"?Mr.crossOrigin="use-credentials":(he&&he==="same-origin"||!a.s(Ur))&&(Mr.crossOrigin="anonymous"),Rt.signal.addEventListener("abort",(()=>{Mr.src="",rr(a.c())})),Mr.fetchPriority="high",Mr.onload=()=>{Mr.onerror=Mr.onload=null,Qt({data:Mr})},Mr.onerror=()=>{Mr.onerror=Mr.onload=null,Rt.signal.aborted||rr(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},Mr.src=Ur}))})(v||(v={})),v.resetRequestQueue();class C{constructor(w){this._transformRequestFn=w}transformRequest(w,q){return this._transformRequestFn&&this._transformRequestFn(w,q)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var A,L=function(ue,w,q){return ue[0]=w[0]-q[0],ue[1]=w[1]-q[1],ue[2]=w[2]-q[2],ue};A=new a.A(3),a.A!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0);var x=function(ue){var w=ue[0],q=ue[1];return w*w+q*q};function k(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let q=[];for(let{id:Q,url:ee}of ue){let fe=`${Q}${ee}`;q.indexOf(fe)===-1&&(q.push(fe),w.push({id:Q,url:ee}))}}return w}function S(ue,w,q){let Q=ue.split("?");return Q[0]+=`${w}${q}`,Q.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class m{constructor(w,q,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(q,ee)}update(w,q,Q){let{width:ee,height:fe}=w,Ue=!(this.size&&this.size[0]===ee&&this.size[1]===fe||Q),{context:at}=this,{gl:yt}=at;if(this.useMipmap=!!(q&&q.useMipmap),yt.bindTexture(yt.TEXTURE_2D,this.texture),at.pixelStoreUnpackFlipY.set(!1),at.pixelStoreUnpack.set(1),at.pixelStoreUnpackPremultiplyAlpha.set(this.format===yt.RGBA&&(!q||q.premultiply!==!1)),Ue)this.size=[ee,fe],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?yt.texImage2D(yt.TEXTURE_2D,0,this.format,this.format,yt.UNSIGNED_BYTE,w):yt.texImage2D(yt.TEXTURE_2D,0,this.format,ee,fe,0,this.format,yt.UNSIGNED_BYTE,w.data);else{let{x:Rt,y:Qt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?yt.texSubImage2D(yt.TEXTURE_2D,0,Rt,Qt,yt.RGBA,yt.UNSIGNED_BYTE,w):yt.texSubImage2D(yt.TEXTURE_2D,0,Rt,Qt,ee,fe,yt.RGBA,yt.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&yt.generateMipmap(yt.TEXTURE_2D)}bind(w,q,Q){let{context:ee}=this,{gl:fe}=ee;fe.bindTexture(fe.TEXTURE_2D,this.texture),Q!==fe.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=fe.LINEAR),w!==this.filter&&(fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_MAG_FILTER,w),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_MIN_FILTER,Q||w),this.filter=w),q!==this.wrap&&(fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_WRAP_S,q),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_WRAP_T,q),this.wrap=q)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class M extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:q,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(q));this.requestors=[]}}getImage(w){let q=this.images[w];if(q&&!q.data&&q.spriteData){let Q=q.spriteData;q.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),q.spriteData=null}return q}addImage(w,q){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,q)&&(this.images[w]=q)}_validate(w,q){let Q=!0,ee=q.data||q.spriteData;return this._validateStretch(q.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(q.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(q.content,q)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,q){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let fe of w)this.images[fe]||(ee=!1);this.isLoaded()||ee?q(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:q})}))}_getImagesForIds(w){let q={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?q[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return q}getPixelSize(){let{width:w,height:q}=this.atlasImage;return{width:w,height:q}}getPattern(w){let q=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(q&&q.position.version===Q.version)return q.position;if(q)q.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},fe=new a.I(ee,Q);this.patterns[w]={bin:ee,position:fe}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let q=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new m(w,this.atlasImage,q.RGBA),this.atlasTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let fe in this.patterns)w.push(this.patterns[fe].bin);let{w:q,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:q||1,height:Q||1});for(let fe in this.patterns){let{bin:Ue}=this.patterns[fe],at=Ue.x+1,yt=Ue.y+1,Rt=this.getImage(fe).data,Qt=Rt.width,rr=Rt.height;a.R.copy(Rt,ee,{x:0,y:0},{x:at,y:yt},{width:Qt,height:rr}),a.R.copy(Rt,ee,{x:0,y:rr-1},{x:at,y:yt-1},{width:Qt,height:1}),a.R.copy(Rt,ee,{x:0,y:0},{x:at,y:yt+rr},{width:Qt,height:1}),a.R.copy(Rt,ee,{x:Qt-1,y:0},{x:at-1,y:yt},{width:1,height:rr}),a.R.copy(Rt,ee,{x:0,y:0},{x:at+Qt,y:yt},{width:1,height:rr})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let q of w){if(this.callbackDispatchedThisFrame[q])continue;this.callbackDispatchedThisFrame[q]=!0;let Q=this.getImage(q);Q||a.w(`Image with ID: "${q}" was not found`),P(Q)&&this.updateImage(q,Q)}}}let O=1e20;function F(ue,w,q,Q,ee,fe,Ue,at,yt){for(let Rt=w;Rt-1);yt++,fe[yt]=at,Ue[yt]=Rt,Ue[yt+1]=O}for(let at=0,yt=0;at65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[fe])return{stack:w,id:q,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[fe]){let at=G.loadGlyphRange(w,fe,this.url,this.requestManager);Q.requests[fe]=at}let Ue=yield Q.requests[fe];for(let at in Ue)this._doesCharSupportLocalGlyph(+at)||(Q.glyphs[+at]=Ue[+at]);return Q.ranges[fe]=!0,{stack:w,id:q,glyph:Ue[q]||null}}))}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,q,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let fe=w.tinySDF;if(!fe){let at="400";/bold/i.test(q)?at="900":/medium/i.test(q)?at="500":/light/i.test(q)&&(at="200"),fe=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:at})}let Ue=fe.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Ue.width||60,height:Ue.height||60},Ue.data),metrics:{width:Ue.glyphWidth/2||24,height:Ue.glyphHeight/2||24,left:Ue.glyphLeft/2+.5||0,top:Ue.glyphTop/2-27.5||-8,advance:Ue.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(ue,w,q,Q){return a._(this,void 0,void 0,(function*(){let ee=256*w,fe=ee+255,Ue=Q.transformRequest(q.replace("{fontstack}",ue).replace("{range}",`${ee}-${fe}`),"Glyphs"),at=yield a.l(Ue,new AbortController);if(!at||!at.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${fe}`);let yt={};for(let Rt of a.n(at.data))yt[Rt.id]=Rt;return yt}))},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:q=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:fe="normal",fontStyle:Ue="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=q;let at=this.size=ue+4*w,yt=this._createCanvas(at),Rt=this.ctx=yt.getContext("2d",{willReadFrequently:!0});Rt.font=`${Ue} ${fe} ${ue}px ${ee}`,Rt.textBaseline="alphabetic",Rt.textAlign="left",Rt.fillStyle="black",this.gridOuter=new Float64Array(at*at),this.gridInner=new Float64Array(at*at),this.f=new Float64Array(at),this.z=new Float64Array(at+1),this.v=new Uint16Array(at)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:q,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:fe}=this.ctx.measureText(ue),Ue=Math.ceil(q),at=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(fe-ee))),yt=Math.min(this.size-this.buffer,Ue+Math.ceil(Q)),Rt=at+2*this.buffer,Qt=yt+2*this.buffer,rr=Math.max(Rt*Qt,0),Mr=new Uint8ClampedArray(rr),Ur={data:Mr,width:Rt,height:Qt,glyphWidth:at,glyphHeight:yt,glyphTop:Ue,glyphLeft:0,glyphAdvance:w};if(at===0||yt===0)return Ur;let{ctx:he,buffer:Ae,gridInner:qe,gridOuter:Ge}=this;he.clearRect(Ae,Ae,at,yt),he.fillText(ue,Ae,Ae+Ue);let ft=he.getImageData(Ae,Ae,at,yt);Ge.fill(O,0,rr),qe.fill(0,0,rr);for(let ot=0;ot0?sr*sr:0,qe[er]=sr<0?sr*sr:0}}F(Ge,0,0,Rt,Qt,Rt,this.f,this.v,this.z),F(qe,Ae,Ae,at,yt,Rt,this.f,this.v,this.z);for(let ot=0;ot1&&(yt=w[++at]);let Qt=Math.abs(Rt-yt.left),rr=Math.abs(Rt-yt.right),Mr=Math.min(Qt,rr),Ur,he=fe/Q*(ee+1);if(yt.isDash){let Ae=ee-Math.abs(he);Ur=Math.sqrt(Mr*Mr+Ae*Ae)}else Ur=ee-Math.sqrt(Mr*Mr+he*he);this.data[Ue+Rt]=Math.max(0,Math.min(255,Ur+128))}}}addRegularDash(w){for(let at=w.length-1;at>=0;--at){let yt=w[at],Rt=w[at+1];yt.zeroLength?w.splice(at,1):Rt&&Rt.isDash===yt.isDash&&(Rt.left=yt.left,w.splice(at,1))}let q=w[0],Q=w[w.length-1];q.isDash===Q.isDash&&(q.left=Q.left-this.width,Q.right=q.right+this.width);let ee=this.width*this.nextRow,fe=0,Ue=w[fe];for(let at=0;at1&&(Ue=w[++fe]);let yt=Math.abs(at-Ue.left),Rt=Math.abs(at-Ue.right),Qt=Math.min(yt,Rt);this.data[ee+at]=Math.max(0,Math.min(255,(Ue.isDash?Qt:-Qt)+128))}}addDash(w,q){let Q=q?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let fe=0;for(let at=0;at{q.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[me]}numActive(){return Object.keys(this.active).length}}let Ee=Math.floor(l.hardwareConcurrency/2),de,te;function Se(){return de||(de=new Ce),de}Ce.workerCount=a.C(globalThis)?Math.max(Math.min(Ee,3),1):1;class Te{constructor(w,q){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=q;let Q=this.workerPool.acquire(q);for(let ee=0;ee{q.remove()})),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,q){for(let Q of this.actors)Q.registerMessageHandler(w,q)}}function be(){return te||(te=new Te(Se(),a.G),te.registerMessageHandler("GR",((ue,w,q)=>a.m(w,q)))),te}function He(ue,w){let q=a.H();return a.J(q,q,[1,1,0]),a.K(q,q,[.5*ue.width,.5*ue.height,1]),a.L(q,q,ue.calculatePosMatrix(w.toUnwrapped()))}function Ie(ue,w,q,Q,ee,fe){let Ue=(function(rr,Mr,Ur){if(rr)for(let he of rr){let Ae=Mr[he];if(Ae&&Ae.source===Ur&&Ae.type==="fill-extrusion")return!0}else for(let he in Mr){let Ae=Mr[he];if(Ae.source===Ur&&Ae.type==="fill-extrusion")return!0}return!1})(ee&&ee.layers,w,ue.id),at=fe.maxPitchScaleFactor(),yt=ue.tilesIn(Q,at,Ue);yt.sort(ge);let Rt=[];for(let rr of yt)Rt.push({wrappedTileID:rr.tileID.wrapped().key,queryResults:rr.tile.queryRenderedFeatures(w,q,ue._state,rr.queryGeometry,rr.cameraQueryGeometry,rr.scale,ee,fe,at,He(ue.transform,rr.tileID))});let Qt=(function(rr){let Mr={},Ur={};for(let he of rr){let Ae=he.queryResults,qe=he.wrappedTileID,Ge=Ur[qe]=Ur[qe]||{};for(let ft in Ae){let ot=Ae[ft],mt=Ge[ft]=Ge[ft]||{},Gt=Mr[ft]=Mr[ft]||[];for(let er of ot)mt[er.featureIndex]||(mt[er.featureIndex]=!0,Gt.push(er))}}return Mr})(Rt);for(let rr in Qt)Qt[rr].forEach((Mr=>{let Ur=Mr.feature,he=ue.getFeatureState(Ur.layer["source-layer"],Ur.id);Ur.source=Ur.layer.source,Ur.layer["source-layer"]&&(Ur.sourceLayer=Ur.layer["source-layer"]),Ur.state=he}));return Qt}function ge(ue,w){let q=ue.tileID,Q=w.tileID;return q.overscaledZ-Q.overscaledZ||q.canonical.y-Q.canonical.y||q.wrap-Q.wrap||q.canonical.x-Q.canonical.x}function Be(ue,w,q){return a._(this,void 0,void 0,(function*(){let Q=ue;if(ue.url?Q=(yield a.h(w.transformRequest(ue.url,"Source"),q)).data:yield l.frameAsync(q),!Q)return null;let ee=a.M(a.e(Q,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map((fe=>fe.id))),ee}))}class ce{constructor(w,q){w&&(q?this.setSouthWest(w).setNorthEast(q):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let q=this._sw,Q=this._ne,ee,fe;if(w instanceof a.N)ee=w,fe=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,fe=w._ne,!ee||!fe)return this}return q||Q?(q.lng=Math.min(ee.lng,q.lng),q.lat=Math.min(ee.lat,q.lat),Q.lng=Math.max(fe.lng,Q.lng),Q.lat=Math.max(fe.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(fe.lng,fe.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:q,lat:Q}=a.N.convert(w),ee=this._sw.lng<=q&&q<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=q&&q>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,q=0){let Q=360*q/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),q=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>q.lng?new a.N(q.lng+360,q.lat):q)}}class je{constructor(w,q,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=q||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let q=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*q),ee=Math.floor(a.Q(this.bounds.getNorth())*q),fe=Math.ceil(a.O(this.bounds.getEast())*q),Ue=Math.ceil(a.Q(this.bounds.getSouth())*q);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w})),this}setUrl(w){return this.setSourceProperty((()=>{this.url=w,this._options.url=w})),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,(function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(q,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise(((fe,Ue)=>{w.reloadPromise={resolve:fe,reject:Ue}}))}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let fe=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,fe)}catch(fe){if(delete w.abortController,w.aborted)return;if(fe&&fe.status!==404)throw fe;this._afterTileLoadWorkerResponse(w,null)}}))}_afterTileLoadWorkerResponse(w,q){if(q&&q.resourceTiming&&(w.resourceTiming=q.resourceTiming),q&&this.map._refreshExpiredTiles&&w.setExpiryData(q),w.loadVectorData(q,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,(function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))}))}unloadTile(w){return a._(this,void 0,void 0,(function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))}))}hasTransition(){return!1}}class bt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},q),a.e(this,a.M(q,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,(function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Be(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new je(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}}))}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty((()=>{this._options.tiles=w})),this}setUrl(w){return this.setSourceProperty((()=>{this.url=w,this._options.url=w})),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,(function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield v.getImage(this.map._requestManager.transformRequest(q,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,fe=ee.gl,Ue=Q.data;w.texture=this.map.painter.getTileTexture(Ue.width),w.texture?w.texture.update(Ue,{useMipmap:!0}):(w.texture=new m(ee,Ue,fe.RGBA,{useMipmap:!0}),w.texture.bind(fe.LINEAR,fe.CLAMP_TO_EDGE,fe.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}}))}abortTile(w){return a._(this,void 0,void 0,(function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)}))}unloadTile(w){return a._(this,void 0,void 0,(function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)}))}hasTransition(){return!1}}class Ot extends bt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},q),this.encoding=q.encoding||"mapbox",this.redFactor=q.redFactor,this.greenFactor=q.greenFactor,this.blueFactor=q.blueFactor,this.baseShift=q.baseShift}loadTile(w){return a._(this,void 0,void 0,(function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(q,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield v.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let fe=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Ue=a.b(fe)&&a.U()?fe:yield this.readImageNow(fe),at={type:this.type,uid:w.uid,source:this.id,rawImageData:Ue,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let yt=yield w.actor.sendAsync({type:"LDT",data:at});w.dem=yt,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}}))}readImageNow(w){return a._(this,void 0,void 0,(function*(){if(typeof VideoFrame!="undefined"&&a.V()){let q=w.width+2,Q=w.height+2;try{return new a.R({width:q,height:Q},yield a.W(w,-1,-1,q,Q))}catch(ee){}}return l.getImageData(w,1)}))}_getNeighboringTiles(w){let q=w.canonical,Q=Math.pow(2,q.z),ee=(q.x-1+Q)%Q,fe=q.x===0?w.wrap-1:w.wrap,Ue=(q.x+1+Q)%Q,at=q.x+1===Q?w.wrap+1:w.wrap,yt={};return yt[new a.S(w.overscaledZ,fe,q.z,ee,q.y).key]={backfilled:!1},yt[new a.S(w.overscaledZ,at,q.z,Ue,q.y).key]={backfilled:!1},q.y>0&&(yt[new a.S(w.overscaledZ,fe,q.z,ee,q.y-1).key]={backfilled:!1},yt[new a.S(w.overscaledZ,w.wrap,q.z,q.x,q.y-1).key]={backfilled:!1},yt[new a.S(w.overscaledZ,at,q.z,Ue,q.y-1).key]={backfilled:!1}),q.y+10&&a.e(fe,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},fe),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},fe),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}}))}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,(function*(){let q=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:q,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,q==="RT")}))}abortTile(w){return a._(this,void 0,void 0,(function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0}))}unloadTile(w){return a._(this,void 0,void 0,(function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})}))}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Ke=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class zt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=q}load(w){return a._(this,void 0,void 0,(function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let q=yield v.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,q&&q.data&&(this.image=q.data,w&&(this.coordinates=w),this._finishLoading())}catch(q){this._request=null,this._loaded=!0,this.fire(new a.j(q))}}))}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally((()=>{this.texture=null})),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let q=w.map(a.Z.fromLngLat);this.tileID=(function(ee){let fe=1/0,Ue=1/0,at=-1/0,yt=-1/0;for(let Mr of ee)fe=Math.min(fe,Mr.x),Ue=Math.min(Ue,Mr.y),at=Math.max(at,Mr.x),yt=Math.max(yt,Mr.y);let Rt=Math.max(at-fe,yt-Ue),Qt=Math.max(0,Math.floor(-Math.log(Rt)/Math.LN2)),rr=Math.pow(2,Qt);return new a.a1(Qt,Math.floor((fe+at)/2*rr),Math.floor((Ue+yt)/2*rr))})(q),this.minzoom=this.maxzoom=this.tileID.z;let Q=q.map((ee=>this.tileID.getTilePoint(ee)._round()));return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ke.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new m(w,this.image,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let fe=this.tiles[ee];fe.state!=="loaded"&&(fe.state="loaded",fe.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,(function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"}))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Mt extends zt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.roundZoom=!0,this.type="video",this.options=q}load(){return a._(this,void 0,void 0,(function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let q of w.urls)this.urls.push(this.map._requestManager.transformRequest(q,"Source").url);try{let q=yield a.a3(this.urls);if(this._loaded=!0,!q)return;this.video=q,this.video.loop=!0,this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading()}catch(q){this.fire(new a.j(q))}}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let q=this.video.seekable;wq.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${q.start(0)} and ${q.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ke.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE),q.texSubImage2D(q.TEXTURE_2D,0,0,0,q.RGBA,q.UNSIGNED_BYTE,this.video)):(this.texture=new m(w,this.video,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let fe=this.tiles[ee];fe.state!=="loaded"&&(fe.state="loaded",fe.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class kt extends zt{constructor(w,q,Q,ee){super(w,q,Q,ee),q.coordinates?Array.isArray(q.coordinates)&&q.coordinates.length===4&&!q.coordinates.some((fe=>!Array.isArray(fe)||fe.length!==2||fe.some((Ue=>typeof Ue!="number"))))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas=="string"||q.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate===void 0||q.animate}load(){return a._(this,void 0,void 0,(function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}))}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let q=this.map.painter.context,Q=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Ke.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new m(q,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let fe in this.tiles){let Ue=this.tiles[fe];Ue.state!=="loaded"&&(Ue.state="loaded",Ue.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let $e={},Re=ue=>{switch(ue){case"geojson":return it;case"image":return zt;case"raster":return bt;case"raster-dem":return Ot;case"vector":return rt;case"video":return Mt;case"canvas":return kt}return $e[ue]},Me="RTLPluginLoaded";class oe extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=be()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch((q=>{throw this.status="error",q}))}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,(function*(q,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=l.resolveURL(q),!this.url)throw new Error(`requested url ${q} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()}))}_requestImport(){return a._(this,void 0,void 0,(function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(Me))}))}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let Ne=null;function vt(){return Ne||(Ne=new oe),Ne}class lt{constructor(w,q){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=q,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let q=w+this.timeAdded;qfe.getLayer(Rt))).filter(Boolean);if(yt.length!==0){at.layers=yt,at.stateDependentLayerIds&&(at.stateDependentLayers=at.stateDependentLayerIds.map((Rt=>yt.filter((Qt=>Qt.id===Rt))[0])));for(let Rt of yt)Ue[Rt.id]=at}}return Ue})(w.buckets,q.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let fe=this.buckets[ee];if(fe instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;fe.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let fe=this.buckets[ee];if(fe instanceof a.a6&&fe.hasRTLText){this.hasRTLText=!0,vt().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let fe=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,q.style.getLayer(ee).queryRadius(fe))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let q=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new m(w,this.imageAtlas.image,q.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new m(w,this.glyphAtlasImage,q.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,q,Q,ee,fe,Ue,at,yt,Rt,Qt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:fe,scale:Ue,tileSize:this.tileSize,pixelPosMatrix:Qt,transform:yt,params:at,queryPadding:this.queryPadding*Rt},w,q,Q):{}}querySourceFeatures(w,q){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),fe=q&&q.sourceLayer?q.sourceLayer:"",Ue=ee._geojsonTileLayer||ee[fe];if(!Ue)return;let at=a.a7(q&&q.filter),{z:yt,x:Rt,y:Qt}=this.tileID.canonical,rr={z:yt,x:Rt,y:Qt};for(let Mr=0;MrQ)ee=!1;else if(q)if(this.expirationTime{this.remove(w,fe)}),Q)),this.data[ee].push(fe),this.order.push(ee),this.order.length>this.max){let Ue=this._getAndRemoveByKey(this.order[0]);Ue&&this.onRemove(Ue)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let q=this.data[w].shift();return q.timeout&&clearTimeout(q.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),q.value}getByKey(w){let q=this.data[w];return q?q[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,q){if(!this.has(w))return this;let Q=w.wrapped().key,ee=q===void 0?0:this.data[Q].indexOf(q),fe=this.data[Q][ee];return this.data[Q].splice(ee,1),fe.timeout&&clearTimeout(fe.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(fe.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let q=this._getAndRemoveByKey(this.order[0]);q&&this.onRemove(q)}return this}filter(w){let q=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||q.push(ee);for(let Q of q)this.remove(Q.value.tileID,Q)}}class Ve{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,q,Q){let ee=String(q);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let fe in this.state[w])fe!==ee&&(this.deletedStates[w][fe]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let fe in this.state[w][ee])Q[fe]||(this.deletedStates[w][ee][fe]=null)}else for(let fe in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][fe]===null&&delete this.deletedStates[w][ee][fe]}removeFeatureState(w,q,Q){if(this.deletedStates[w]===null)return;let ee=String(q);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&q!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(q!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,q){let Q=String(q),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let fe=this.deletedStates[w][q];if(fe===null)return{};for(let Ue in fe)delete ee[Ue]}return ee}initializeTileState(w,q){w.setFeatureState(this.state,q)}coalesceChanges(w,q){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let fe={};for(let Ue in this.stateChanges[ee])this.state[ee][Ue]||(this.state[ee][Ue]={}),a.e(this.state[ee][Ue],this.stateChanges[ee][Ue]),fe[Ue]=this.state[ee][Ue];Q[ee]=fe}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let fe={};if(this.deletedStates[ee]===null)for(let Ue in this.state[ee])fe[Ue]={},this.state[ee][Ue]={};else for(let Ue in this.deletedStates[ee]){if(this.deletedStates[ee][Ue]===null)this.state[ee][Ue]={};else for(let at of Object.keys(this.deletedStates[ee][Ue]))delete this.state[ee][Ue][at];fe[Ue]=this.state[ee][Ue]}Q[ee]=Q[ee]||{},a.e(Q[ee],fe)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,q)}}class et extends a.E{constructor(w,q,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",(ee=>this._dataHandler(ee))),this.on("dataloading",(()=>{this._sourceErrored=!1})),this.on("error",(()=>{this._sourceErrored=this._source.loaded()})),this._source=((ee,fe,Ue,at)=>{let yt=new(Re(fe.type))(ee,fe,Ue,at);if(yt.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${yt.id}`);return yt})(w,q,Q,this),this._tiles={},this._cache=new We(0,(ee=>this._unloadTile(ee))),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Ve,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let q=this._tiles[w];if(q.state!=="loaded"&&q.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,q,Q){return a._(this,void 0,void 0,(function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,q,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}}))}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let q in this._tiles){let Q=this._tiles[q];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map((w=>w.tileID)).sort(tt).map((w=>w.key))}getRenderableIds(w){let q=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&q.push(this._tiles[Q]);return w?q.sort(((Q,ee)=>{let fe=Q.tileID,Ue=ee.tileID,at=new a.P(fe.canonical.x,fe.canonical.y)._rotate(this.transform.angle),yt=new a.P(Ue.canonical.x,Ue.canonical.y)._rotate(this.transform.angle);return fe.overscaledZ-Ue.overscaledZ||yt.y-at.y||yt.x-at.x})).map((Q=>Q.tileID.key)):q.map((Q=>Q.tileID)).sort(tt).map((Q=>Q.key))}hasRenderableParent(w){let q=this.findLoadedParent(w,0);return!!q&&this._isIdRenderable(q.tileID.key)}_isIdRenderable(w,q){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(q||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,q){return a._(this,void 0,void 0,(function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=q),yield this._loadTile(Q,w,q))}))}_tileLoaded(w,q,Q){w.timeAdded=l.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(q,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let q=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(Ue)>1&&(Math.abs(Ue+yt)===1?Ue+=yt:Math.abs(Ue-yt)===1&&(Ue-=yt)),fe.dem&&ee.dem&&(ee.dem.backfillBorder(fe.dem,Ue,at),ee.neighboringTiles&&ee.neighboringTiles[Rt]&&(ee.neighboringTiles[Rt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,q,Q,ee){for(let fe in this._tiles){let Ue=this._tiles[fe];if(ee[fe]||!Ue.hasData()||Ue.tileID.overscaledZ<=q||Ue.tileID.overscaledZ>Q)continue;let at=Ue.tileID;for(;Ue&&Ue.tileID.overscaledZ>q+1;){let Rt=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Rt.key],Ue&&Ue.hasData()&&(at=Rt)}let yt=at;for(;yt.overscaledZ>q;)if(yt=yt.scaledTo(yt.overscaledZ-1),w[yt.key]){ee[at.key]=at;break}}}findLoadedParent(w,q){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=q?Q:null}for(let Q=w.overscaledZ-1;Q>=q;Q--){let ee=w.scaledTo(Q),fe=this._getLoadedTile(ee);if(fe)return fe}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let q=this._tiles[w.key];return q&&q.hasData()?q:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let q=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(q*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),fe=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(fe)}handleWrapJump(w){let q=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,q){let Q={};for(let ee in this._tiles){let fe=this._tiles[ee];fe.tileID=fe.tileID.unwrapTo(fe.tileID.wrap+q),Q[fe.tileID.key]=fe}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,q,Q,ee,fe,Ue){let at={},yt={},Rt=Object.keys(w),Qt=l.now();for(let rr of Rt){let Mr=w[rr],Ur=this._tiles[rr];if(!Ur||Ur.fadeEndTime!==0&&Ur.fadeEndTime<=Qt)continue;let he=this.findLoadedParent(Mr,q),Ae=this.findLoadedSibling(Mr),qe=he||Ae||null;qe&&(this._addTile(qe.tileID),at[qe.tileID.key]=qe.tileID),yt[rr]=Mr}this._retainLoadedChildren(yt,ee,Q,w);for(let rr in at)w[rr]||(this._coveredTiles[rr]=!0,w[rr]=at[rr]);if(Ue){let rr={},Mr={};for(let Ur of fe)this._tiles[Ur.key].hasData()?rr[Ur.key]=Ur:Mr[Ur.key]=Ur;for(let Ur in Mr){let he=Mr[Ur].children(this._source.maxzoom);this._tiles[he[0].key]&&this._tiles[he[1].key]&&this._tiles[he[2].key]&&this._tiles[he[3].key]&&(rr[he[0].key]=w[he[0].key]=he[0],rr[he[1].key]=w[he[1].key]=he[1],rr[he[2].key]=w[he[2].key]=he[2],rr[he[3].key]=w[he[3].key]=he[3],delete Mr[Ur])}for(let Ur in Mr){let he=Mr[Ur],Ae=this.findLoadedParent(he,this._source.minzoom),qe=this.findLoadedSibling(he),Ge=Ae||qe||null;if(Ge){rr[Ge.tileID.key]=w[Ge.tileID.key]=Ge.tileID;for(let ft in rr)rr[ft].isChildOf(Ge.tileID)&&delete rr[ft]}}for(let Ur in this._tiles)rr[Ur]||(this._coveredTiles[Ur]=!0)}}update(w,q){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=q,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map((Qt=>new a.S(Qt.canonical.z,Qt.wrap,Qt.canonical.z,Qt.canonical.x,Qt.canonical.y))):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:q}),this._source.hasTile&&(Q=Q.filter((Qt=>this._source.hasTile(Qt))))):Q=[];let ee=w.coveringZoomLevel(this._source),fe=Math.max(ee-et.maxOverzooming,this._source.minzoom),Ue=Math.max(ee+et.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Qt={};for(let rr of Q)if(rr.canonical.z>this._source.minzoom){let Mr=rr.scaledTo(rr.canonical.z-1);Qt[Mr.key]=Mr;let Ur=rr.scaledTo(Math.max(this._source.minzoom,Math.min(rr.canonical.z,5)));Qt[Ur.key]=Ur}Q=Q.concat(Object.values(Qt))}let at=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,at&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let yt=this._updateRetainedTiles(Q,ee);Lt(this._source.type)&&this._updateCoveredAndRetainedTiles(yt,fe,Ue,ee,Q,q);for(let Qt in yt)this._tiles[Qt].clearFadeHold();let Rt=a.ab(this._tiles,yt);for(let Qt of Rt){let rr=this._tiles[Qt];rr.hasSymbolBuckets&&!rr.holdingForFade()?rr.setHoldDuration(this.map._fadeDuration):rr.hasSymbolBuckets&&!rr.symbolFadeFinished()||this._removeTile(Qt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,q){var Q;let ee={},fe={},Ue=Math.max(q-et.maxOverzooming,this._source.minzoom),at=Math.max(q+et.maxUnderzooming,this._source.minzoom),yt={};for(let Rt of w){let Qt=this._addTile(Rt);ee[Rt.key]=Rt,Qt.hasData()||qthis._source.maxzoom){let Mr=Rt.children(this._source.maxzoom)[0],Ur=this.getTile(Mr);if(Ur&&Ur.hasData()){ee[Mr.key]=Mr;continue}}else{let Mr=Rt.children(this._source.maxzoom);if(ee[Mr[0].key]&&ee[Mr[1].key]&&ee[Mr[2].key]&&ee[Mr[3].key])continue}let rr=Qt.wasRequested();for(let Mr=Rt.overscaledZ-1;Mr>=Ue;--Mr){let Ur=Rt.scaledTo(Mr);if(fe[Ur.key])break;if(fe[Ur.key]=!0,Qt=this.getTile(Ur),!Qt&&rr&&(Qt=this._addTile(Ur)),Qt){let he=Qt.hasData();if((he||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||rr)&&(ee[Ur.key]=Ur),rr=Qt.wasRequested(),he)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let q=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}q.push(ee.key);let fe=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(fe),Q)break;ee=fe}for(let fe of q)this._loadedParentTiles[fe]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let q=this._tiles[w].tileID,Q=this._getLoadedTile(q);this._loadedSiblingTiles[q.key]=Q}}_addTile(w){let q=this._tiles[w.key];if(q)return q;q=this._cache.getAndRemove(w),q&&(this._setTileReloadTimer(w.key,q),q.tileID=w,this._state.initializeTileState(q,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,q)));let Q=q;return q||(q=new lt(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(q,w.key,q.state)),q.uses++,this._tiles[w.key]=q,Q||this._source.fire(new a.k("dataloading",{tile:q,coord:q.tileID,dataType:"source"})),q}_setTileReloadTimer(w,q){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=q.getExpiryTimeout();Q&&(this._timers[w]=setTimeout((()=>{this._reloadTile(w,"expired"),delete this._timers[w]}),Q))}_removeTile(w){let q=this._tiles[w];q&&(q.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),q.uses>0||(q.hasData()&&q.state!=="reloading"?this._cache.add(q.tileID,q,q.getExpiryTimeout()):(q.aborted=!0,this._abortTile(q),this._unloadTile(q))))}_dataHandler(w){let q=w.sourceDataType;w.dataType==="source"&&q==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&q==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,q,Q){let ee=[],fe=this.transform;if(!fe)return ee;let Ue=Q?fe.getCameraQueryGeometry(w):w,at=w.map((he=>fe.pointCoordinate(he,this.terrain))),yt=Ue.map((he=>fe.pointCoordinate(he,this.terrain))),Rt=this.getIds(),Qt=1/0,rr=1/0,Mr=-1/0,Ur=-1/0;for(let he of yt)Qt=Math.min(Qt,he.x),rr=Math.min(rr,he.y),Mr=Math.max(Mr,he.x),Ur=Math.max(Ur,he.y);for(let he=0;he=0&&ot[1].y+ft>=0){let mt=at.map((er=>qe.getTilePoint(er))),Gt=yt.map((er=>qe.getTilePoint(er)));ee.push({tile:Ae,tileID:qe,queryGeometry:mt,cameraQueryGeometry:Gt,scale:Ge})}}return ee}getVisibleCoordinates(w){let q=this.getRenderableIds(w).map((Q=>this._tiles[Q].tileID));for(let Q of q)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return q}hasTransition(){if(this._source.hasTransition())return!0;if(Lt(this._source.type)){let w=l.now();for(let q in this._tiles)if(this._tiles[q].fadeEndTime>=w)return!0}return!1}setFeatureState(w,q,Q){this._state.updateState(w=w||"_geojsonTileLayer",q,Q)}removeFeatureState(w,q,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",q,Q)}getFeatureState(w,q){return this._state.getState(w=w||"_geojsonTileLayer",q)}setDependencies(w,q,Q){let ee=this._tiles[w];ee&&ee.setDependencies(q,Q)}reloadTilesForDependencies(w,q){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,q)&&this._reloadTile(Q,"reloading");this._cache.filter((Q=>!Q.hasDependency(w,q)))}}function tt(ue,w){let q=Math.abs(2*ue.wrap)-+(ue.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||Q-q||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function Lt(ue){return ue==="raster"||ue==="image"||ue==="video"}et.maxOverzooming=10,et.maxUnderzooming=3;class jt{constructor(w,q){this.reset(w,q)}reset(w,q){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Ue)/at:0;return this.points[fe].mult(1-yt).add(this.points[q].mult(yt))}}function or(ue,w){let q=!0;return ue==="always"||ue!=="never"&&w!=="never"||(q=!1),q}class yr{constructor(w,q,Q){let ee=this.boxCells=[],fe=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(q/Q);for(let Ue=0;Uethis.width||ee<0||q>this.height)return[];let yt=[];if(w<=0&&q<=0&&this.width<=Q&&this.height<=ee){if(fe)return[{key:null,x1:w,y1:q,x2:Q,y2:ee}];for(let Rt=0;Rt0}hitTestCircle(w,q,Q,ee,fe){let Ue=w-Q,at=w+Q,yt=q-Q,Rt=q+Q;if(at<0||Ue>this.width||Rt<0||yt>this.height)return!1;let Qt=[];return this._forEachCell(Ue,yt,at,Rt,this._queryCellCircle,Qt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:q,radius:Q},seenUids:{box:{},circle:{}}},fe),Qt.length>0}_queryCell(w,q,Q,ee,fe,Ue,at,yt){let{seenUids:Rt,hitTest:Qt,overlapMode:rr}=at,Mr=this.boxCells[fe];if(Mr!==null){let he=this.bboxes;for(let Ae of Mr)if(!Rt.box[Ae]){Rt.box[Ae]=!0;let qe=4*Ae,Ge=this.boxKeys[Ae];if(w<=he[qe+2]&&q<=he[qe+3]&&Q>=he[qe+0]&&ee>=he[qe+1]&&(!yt||yt(Ge))&&(!Qt||!or(rr,Ge.overlapMode))&&(Ue.push({key:Ge,x1:he[qe],y1:he[qe+1],x2:he[qe+2],y2:he[qe+3]}),Qt))return!0}}let Ur=this.circleCells[fe];if(Ur!==null){let he=this.circles;for(let Ae of Ur)if(!Rt.circle[Ae]){Rt.circle[Ae]=!0;let qe=3*Ae,Ge=this.circleKeys[Ae];if(this._circleAndRectCollide(he[qe],he[qe+1],he[qe+2],w,q,Q,ee)&&(!yt||yt(Ge))&&(!Qt||!or(rr,Ge.overlapMode))){let ft=he[qe],ot=he[qe+1],mt=he[qe+2];if(Ue.push({key:Ge,x1:ft-mt,y1:ot-mt,x2:ft+mt,y2:ot+mt}),Qt)return!0}}}return!1}_queryCellCircle(w,q,Q,ee,fe,Ue,at,yt){let{circle:Rt,seenUids:Qt,overlapMode:rr}=at,Mr=this.boxCells[fe];if(Mr!==null){let he=this.bboxes;for(let Ae of Mr)if(!Qt.box[Ae]){Qt.box[Ae]=!0;let qe=4*Ae,Ge=this.boxKeys[Ae];if(this._circleAndRectCollide(Rt.x,Rt.y,Rt.radius,he[qe+0],he[qe+1],he[qe+2],he[qe+3])&&(!yt||yt(Ge))&&!or(rr,Ge.overlapMode))return Ue.push(!0),!0}}let Ur=this.circleCells[fe];if(Ur!==null){let he=this.circles;for(let Ae of Ur)if(!Qt.circle[Ae]){Qt.circle[Ae]=!0;let qe=3*Ae,Ge=this.circleKeys[Ae];if(this._circlesCollide(he[qe],he[qe+1],he[qe+2],Rt.x,Rt.y,Rt.radius)&&(!yt||yt(Ge))&&!or(rr,Ge.overlapMode))return Ue.push(!0),!0}}}_forEachCell(w,q,Q,ee,fe,Ue,at,yt){let Rt=this._convertToXCellCoord(w),Qt=this._convertToYCellCoord(q),rr=this._convertToXCellCoord(Q),Mr=this._convertToYCellCoord(ee);for(let Ur=Rt;Ur<=rr;Ur++)for(let he=Qt;he<=Mr;he++)if(fe.call(this,w,q,Q,ee,this.xCellCount*he+Ur,Ue,at,yt))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,q,Q,ee,fe,Ue){let at=ee-w,yt=fe-q,Rt=Q+Ue;return Rt*Rt>at*at+yt*yt}_circleAndRectCollide(w,q,Q,ee,fe,Ue,at){let yt=(Ue-ee)/2,Rt=Math.abs(w-(ee+yt));if(Rt>yt+Q)return!1;let Qt=(at-fe)/2,rr=Math.abs(q-(fe+Qt));if(rr>Qt+Q)return!1;if(Rt<=yt||rr<=Qt)return!0;let Mr=Rt-yt,Ur=rr-Qt;return Mr*Mr+Ur*Ur<=Q*Q}}function vr(ue,w,q,Q,ee){let fe=a.H();return w?(a.K(fe,fe,[1/ee,1/ee,1]),q||a.ad(fe,fe,Q.angle)):a.L(fe,Q.labelPlaneMatrix,ue),fe}function Vt(ue,w,q,Q,ee){if(w){let fe=a.ae(ue);return a.K(fe,fe,[ee,ee,1]),q||a.ad(fe,fe,-Q.angle),fe}return Q.glCoordMatrix}function Pe(ue,w,q,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,q)):(ee=[ue,w,0,1],kr(ee,ee,q));let fe=ee[3];return{point:new a.P(ee[0]/fe,ee[1]/fe),signedDistanceFromCamera:fe,isOccluded:!1}}function xe(ue,w){return .5+ue/w*.5}function Oe(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function ze(ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he){let Ae=Q?ue.textSizeData:ue.iconSizeData,qe=a.ag(Ae,q.transform.zoom),Ge=[256/q.width*2+1,256/q.height*2+1],ft=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;ft.clear();let ot=ue.lineVertexArray,mt=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Gt=q.transform.width/q.transform.height,er=!1;for(let sr=0;srMath.abs(q.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yq.x)?{needsFlipping:!0}:null}function st(ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt){let rr=q/24,Mr=w.lineOffsetX*rr,Ur=w.lineOffsetY*rr,he;if(w.numGlyphs>1){let Ae=w.glyphStartIndex+w.numGlyphs,qe=w.lineStartIndex,Ge=w.lineStartIndex+w.lineLength,ft=De(rr,at,Mr,Ur,Q,w,Qt,ue);if(!ft)return{notEnoughRoom:!0};let ot=Pe(ft.first.point.x,ft.first.point.y,Ue,ue.getElevation).point,mt=Pe(ft.last.point.x,ft.last.point.y,Ue,ue.getElevation).point;if(ee&&!Q){let Gt=ht(w.writingMode,ot,mt,Rt);if(Gt)return Gt}he=[ft.first];for(let Gt=w.glyphStartIndex+1;Gt0?ot.point:(function(er,sr,wr,Ir,ri,si){return gt(er,sr,wr,1,ri,si)})(ue.tileAnchorPoint,ft,qe,0,fe,ue),Gt=ht(w.writingMode,qe,mt,Rt);if(Gt)return Gt}let Ae=Er(rr*at.getoffsetX(w.glyphStartIndex),Mr,Ur,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Qt);if(!Ae||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};he=[Ae]}for(let Ae of he)a.aj(yt,Ae.point,Ae.angle);return{}}function gt(ue,w,q,Q,ee,fe){let Ue=ue.add(ue.sub(w)._unit()),at=ee!==void 0?Pe(Ue.x,Ue.y,ee,fe.getElevation).point:pr(Ue.x,Ue.y,fe).point,yt=q.sub(at);return q.add(yt._mult(Q/yt.mag()))}function xt(ue,w,q){let Q=w.projectionCache;if(Q.projections[ue])return Q.projections[ue];let ee=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),fe=pr(ee.x,ee.y,w);if(fe.signedDistanceFromCamera>0)return Q.projections[ue]=fe.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||fe.isOccluded,fe.point;let Ue=ue-q.direction;return(function(at,yt,Rt,Qt,rr){return gt(at,yt,Rt,Qt,void 0,rr)})(q.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Ue),w.lineVertexArray.gety(Ue)),ee,q.previousVertex,q.absOffsetX-q.distanceFromAnchor+1,w)}function pr(ue,w,q){let Q=ue+q.translation[0],ee=w+q.translation[1],fe;return!q.pitchWithMap&&q.projection.useSpecialProjectionForSymbols?(fe=q.projection.projectTileCoordinates(Q,ee,q.unwrappedTileID,q.getElevation),fe.point.x=(.5*fe.point.x+.5)*q.width,fe.point.y=(.5*-fe.point.y+.5)*q.height):(fe=Pe(Q,ee,q.labelPlaneMatrix,q.getElevation),fe.isOccluded=!1),fe}function br(ue,w,q){return ue._unit()._perp()._mult(w*q)}function cr(ue,w,q,Q,ee,fe,Ue,at,yt){if(at.projectionCache.offsets[ue])return at.projectionCache.offsets[ue];let Rt=q.add(w);if(ue+yt.direction=ee)return at.projectionCache.offsets[ue]=Rt,Rt;let Qt=xt(ue+yt.direction,at,yt),rr=br(Qt.sub(q),Ue,yt.direction),Mr=q.add(rr),Ur=Qt.add(rr);return at.projectionCache.offsets[ue]=a.ak(fe,Rt,Mr,Ur)||Rt,at.projectionCache.offsets[ue]}function Er(ue,w,q,Q,ee,fe,Ue,at,yt){let Rt=Q?ue-w:ue+w,Qt=Rt>0?1:-1,rr=0;Q&&(Qt*=-1,rr=Math.PI),Qt<0&&(rr+=Math.PI);let Mr,Ur=Qt>0?fe+ee:fe+ee+1;at.projectionCache.cachedAnchorPoint?Mr=at.projectionCache.cachedAnchorPoint:(Mr=pr(at.tileAnchorPoint.x,at.tileAnchorPoint.y,at).point,at.projectionCache.cachedAnchorPoint=Mr);let he,Ae,qe=Mr,Ge=Mr,ft=0,ot=0,mt=Math.abs(Rt),Gt=[],er;for(;ft+ot<=mt;){if(Ur+=Qt,Ur=Ue)return null;ft+=ot,Ge=qe,Ae=he;let Ir={absOffsetX:mt,direction:Qt,distanceFromAnchor:ft,previousVertex:Ge};if(qe=xt(Ur,at,Ir),q===0)Gt.push(Ge),er=qe.sub(Ge);else{let ri,si=qe.sub(Ge);ri=si.mag()===0?br(xt(Ur+Qt,at,Ir).sub(qe),q,Qt):br(si,q,Qt),Ae||(Ae=Ge.add(ri)),he=cr(Ur,ri,qe,fe,Ue,Ae,q,at,Ir),Gt.push(Ae),er=he.sub(Ae)}ot=er.mag()}let sr=er._mult((mt-ft)/ot)._add(Ae||Ge),wr=rr+Math.atan2(qe.y-Ge.y,qe.x-Ge.x);return Gt.push(sr),{point:sr,angle:yt?wr:0,path:Gt}}let ii=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function jr(ue,w){for(let q=0;q=1;Us--)Ua.push(Zn.path[Us]);for(let Us=1;Usml.signedDistanceFromCamera<=0))?[]:Us.map((ml=>ml.point))}let vl=[];if(Ua.length>0){let Us=Ua[0].clone(),ml=Ua[0].clone();for(let au=1;au=si.x&&ml.x<=Mi.x&&Us.y>=si.y&&ml.y<=Mi.y?[Ua]:ml.xMi.x||ml.yMi.y?[]:a.al([Ua],si.x,si.y,Mi.x,Mi.y)}for(let Us of vl){cn.reset(Us,.25*ri);let ml=0;ml=cn.length<=.5*ri?1:Math.ceil(cn.paddedLength/Fo)+1;for(let au=0;auPe(ee.x,ee.y,Q,q.getElevation)))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let q=[],Q=1/0,ee=1/0,fe=-1/0,Ue=-1/0;for(let Qt of w){let rr=new a.P(Qt.x+Vr,Qt.y+Vr);Q=Math.min(Q,rr.x),ee=Math.min(ee,rr.y),fe=Math.max(fe,rr.x),Ue=Math.max(Ue,rr.y),q.push(rr)}let at=this.grid.query(Q,ee,fe,Ue).concat(this.ignoredGrid.query(Q,ee,fe,Ue)),yt={},Rt={};for(let Qt of at){let rr=Qt.key;if(yt[rr.bucketInstanceId]===void 0&&(yt[rr.bucketInstanceId]={}),yt[rr.bucketInstanceId][rr.featureIndex])continue;let Mr=[new a.P(Qt.x1,Qt.y1),new a.P(Qt.x2,Qt.y1),new a.P(Qt.x2,Qt.y2),new a.P(Qt.x1,Qt.y2)];a.am(q,Mr)&&(yt[rr.bucketInstanceId][rr.featureIndex]=!0,Rt[rr.bucketInstanceId]===void 0&&(Rt[rr.bucketInstanceId]=[]),Rt[rr.bucketInstanceId].push(rr.featureIndex))}return Rt}insertCollisionBox(w,q,Q,ee,fe,Ue){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:fe,collisionGroupID:Ue,overlapMode:q},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,q,Q,ee,fe,Ue){let at=Q?this.ignoredGrid:this.grid,yt={bucketInstanceId:ee,featureIndex:fe,collisionGroupID:Ue,overlapMode:q};for(let Rt=0;Rt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,q,Q,ee){return Q>=0&&w=0&&qthis.projectAndGetPerspectiveRatio(Q,ri.x,ri.y,ee,Rt)));wr=Ir.some((ri=>!ri.isOccluded)),sr=Ir.map((ri=>ri.point))}else wr=!0;return{box:a.ao(sr),allPointsOccluded:!wr}}}function Bi(ue,w,q){return w*(a.X/(ue.tileSize*Math.pow(2,q-ue.tileID.overscaledZ)))}class Ri{constructor(w,q,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?q:-q))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class ln{constructor(w,q,Q,ee,fe){this.text=new Ri(w?w.text:null,q,Q,fe),this.icon=new Ri(w?w.icon:null,q,ee,fe)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class hn{constructor(w,q,Q){this.text=w,this.icon=q,this.skipFade=Q}}class qr{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class _i{constructor(w,q,Q,ee,fe){this.bucketInstanceId=w,this.featureIndex=q,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=fe}}class zi{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let q=++this.maxGroupID;this.collisionGroups[w]={ID:q,predicate:Q=>Q.collisionGroupID===q}}return this.collisionGroups[w]}}function Dt(ue,w,q,Q,ee){let{horizontalAlign:fe,verticalAlign:Ue}=a.au(ue);return new a.P(-(fe-.5)*w+Q[0]*ee,-(Ue-.5)*q+Q[1]*ee)}class _t{constructor(w,q,Q,ee,fe,Ue){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new Ai(this.transform,q),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new zi(fe),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Ue,Ue&&(Ue.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let q=this.terrain;return q?(Q,ee)=>q.getElevation(w,Q,ee):null}getBucketParts(w,q,Q,ee){let fe=Q.getBucket(q),Ue=Q.latestFeatureIndex;if(!fe||!Ue||q.id!==fe.layerIds[0])return;let at=Q.collisionBoxArray,yt=fe.layers[0].layout,Rt=fe.layers[0].paint,Qt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),rr=Q.tileSize/a.X,Mr=Q.tileID.toUnwrapped(),Ur=this.transform.calculatePosMatrix(Mr),he=yt.get("text-pitch-alignment")==="map",Ae=yt.get("text-rotation-alignment")==="map",qe=Bi(Q,1,this.transform.zoom),Ge=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Rt.get("text-translate"),Rt.get("text-translate-anchor")),ft=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Rt.get("icon-translate"),Rt.get("icon-translate-anchor")),ot=vr(Ur,he,Ae,this.transform,qe),mt=null;if(he){let er=Vt(Ur,he,Ae,this.transform,qe);mt=a.L([],this.transform.labelPlaneMatrix,er)}this.retainedQueryData[fe.bucketInstanceId]=new _i(fe.bucketInstanceId,Ue,fe.sourceLayerIndex,fe.index,Q.tileID);let Gt={bucket:fe,layout:yt,translationText:Ge,translationIcon:ft,posMatrix:Ur,unwrappedTileID:Mr,textLabelPlaneMatrix:ot,labelToScreenMatrix:mt,scale:Qt,textPixelRatio:rr,holdingForFade:Q.holdingForFade(),collisionBoxArray:at,partiallyEvaluatedTextSize:a.ag(fe.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(fe.sourceID)};if(ee)for(let er of fe.sortKeyRanges){let{sortKey:sr,symbolInstanceStart:wr,symbolInstanceEnd:Ir}=er;w.push({sortKey:sr,symbolInstanceStart:wr,symbolInstanceEnd:Ir,parameters:Gt})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:fe.symbolInstances.length,parameters:Gt})}attemptAnchorPlacement(w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft,ot){let mt=a.aq[w.textAnchor],Gt=[w.textOffset0,w.textOffset1],er=Dt(mt,Q,ee,Gt,fe),sr=this.collisionIndex.placeCollisionBox(q,Mr,yt,Rt,Qt,at,Ue,qe,rr.predicate,ot,er);if((!ft||this.collisionIndex.placeCollisionBox(ft,Mr,yt,Rt,Qt,at,Ue,Ge,rr.predicate,ot,er).placeable)&&sr.placeable){let wr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Ur.crossTileID]&&this.prevPlacement.placements[Ur.crossTileID]&&this.prevPlacement.placements[Ur.crossTileID].text&&(wr=this.prevPlacement.variableOffsets[Ur.crossTileID].anchor),Ur.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Ur.crossTileID]={textOffset:Gt,width:Q,height:ee,anchor:mt,textBoxScale:fe,prevAnchor:wr},this.markUsedJustification(he,mt,Ur,Ae),he.allowVerticalPlacement&&(this.markUsedOrientation(he,Ae,Ur),this.placedOrientations[Ur.crossTileID]=Ae),{shift:er,placedGlyphBoxes:sr}}}placeLayerBucketPart(w,q,Q){let{bucket:ee,layout:fe,translationText:Ue,translationIcon:at,posMatrix:yt,unwrappedTileID:Rt,textLabelPlaneMatrix:Qt,labelToScreenMatrix:rr,textPixelRatio:Mr,holdingForFade:Ur,collisionBoxArray:he,partiallyEvaluatedTextSize:Ae,collisionGroup:qe}=w.parameters,Ge=fe.get("text-optional"),ft=fe.get("icon-optional"),ot=a.ar(fe,"text-overlap","text-allow-overlap"),mt=ot==="always",Gt=a.ar(fe,"icon-overlap","icon-allow-overlap"),er=Gt==="always",sr=fe.get("text-rotation-alignment")==="map",wr=fe.get("text-pitch-alignment")==="map",Ir=fe.get("icon-text-fit")!=="none",ri=fe.get("symbol-z-order")==="viewport-y",si=mt&&(er||!ee.hasIconData()||ft),Mi=er&&(mt||!ee.hasTextData()||Ge);!ee.collisionArrays&&he&&ee.deserializeCollisionBoxes(he);let cn=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),Zn=(Yn,Ua,Fo)=>{var vl,Us;if(q[Yn.crossTileID])return;if(Ur)return void(this.placements[Yn.crossTileID]=new hn(!1,!1,!1));let ml=!1,au=!1,Sl=!0,Yl=null,ql={box:null,placeable:!1,offscreen:null},ou={box:null,placeable:!1,offscreen:null},Pu=null,nu=null,ru=null,Hu=0,$u=0,Ku=0;Ua.textFeatureIndex?Hu=Ua.textFeatureIndex:Yn.useRuntimeCollisionCircles&&(Hu=Yn.featureIndex),Ua.verticalTextFeatureIndex&&($u=Ua.verticalTextFeatureIndex);let Wu=Ua.textBox;if(Wu){let Qu=Le=>{let Ye=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Le&&this.prevPlacement){let nt=this.prevPlacement.placedOrientations[Yn.crossTileID];nt&&(this.placedOrientations[Yn.crossTileID]=nt,Ye=nt,this.markUsedOrientation(ee,Ye,Yn))}return Ye},ef=(Le,Ye)=>{if(ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ua.verticalTextBox){for(let nt of ee.writingModes)if(nt===a.ah.vertical?(ql=Ye(),ou=ql):ql=Le(),ql&&ql.placeable)break}else ql=Le()},Z=Yn.textAnchorOffsetStartIndex,le=Yn.textAnchorOffsetEndIndex;if(le===Z){let Le=(Ye,nt)=>{let ut=this.collisionIndex.placeCollisionBox(Ye,ot,Mr,yt,Rt,wr,sr,Ue,qe.predicate,cn);return ut&&ut.placeable&&(this.markUsedOrientation(ee,nt,Yn),this.placedOrientations[Yn.crossTileID]=nt),ut};ef((()=>Le(Wu,a.ah.horizontal)),(()=>{let Ye=Ua.verticalTextBox;return ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ye?Le(Ye,a.ah.vertical):{box:null,offscreen:null}})),Qu(ql&&ql.placeable)}else{let Le=a.aq[(Us=(vl=this.prevPlacement)===null||vl===void 0?void 0:vl.variableOffsets[Yn.crossTileID])===null||Us===void 0?void 0:Us.anchor],Ye=(ut,Ht,wt)=>{let lr=ut.x2-ut.x1,Cr=ut.y2-ut.y1,zr=Yn.textBoxScale,ui=Ir&&Gt==="never"?Ht:null,$r=null,Oi=ot==="never"?1:2,un="never";Le&&Oi++;for(let pi=0;piYe(Wu,Ua.iconBox,a.ah.horizontal)),(()=>{let ut=Ua.verticalTextBox;return ee.allowVerticalPlacement&&(!ql||!ql.placeable)&&Yn.numVerticalGlyphVertices>0&&ut?Ye(ut,Ua.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}})),ql&&(ml=ql.placeable,Sl=ql.offscreen);let nt=Qu(ql&&ql.placeable);if(!ml&&this.prevPlacement){let ut=this.prevPlacement.variableOffsets[Yn.crossTileID];ut&&(this.variableOffsets[Yn.crossTileID]=ut,this.markUsedJustification(ee,ut.anchor,Yn,nt))}}}if(Pu=ql,ml=Pu&&Pu.placeable,Sl=Pu&&Pu.offscreen,Yn.useRuntimeCollisionCircles){let Qu=ee.text.placedSymbolArray.get(Yn.centerJustifiedTextSymbolIndex),ef=a.ai(ee.textSizeData,Ae,Qu),Z=fe.get("text-padding");nu=this.collisionIndex.placeCollisionCircles(ot,Qu,ee.lineVertexArray,ee.glyphOffsetArray,ef,yt,Rt,Qt,rr,Q,wr,qe.predicate,Yn.collisionCircleDiameter,Z,Ue,cn),nu.circles.length&&nu.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),ml=mt||nu.circles.length>0&&!nu.collisionDetected,Sl=Sl&&nu.offscreen}if(Ua.iconFeatureIndex&&(Ku=Ua.iconFeatureIndex),Ua.iconBox){let Qu=ef=>this.collisionIndex.placeCollisionBox(ef,Gt,Mr,yt,Rt,wr,sr,at,qe.predicate,cn,Ir&&Yl?Yl:void 0);ou&&ou.placeable&&Ua.verticalIconBox?(ru=Qu(Ua.verticalIconBox),au=ru.placeable):(ru=Qu(Ua.iconBox),au=ru.placeable),Sl=Sl&&ru.offscreen}let ju=Ge||Yn.numHorizontalGlyphVertices===0&&Yn.numVerticalGlyphVertices===0,sf=ft||Yn.numIconVertices===0;ju||sf?sf?ju||(au=au&&ml):ml=au&&ml:au=ml=au&&ml;let _f=au&&ru.placeable;if(ml&&Pu.placeable&&this.collisionIndex.insertCollisionBox(Pu.box,ot,fe.get("text-ignore-placement"),ee.bucketInstanceId,ou&&ou.placeable&&$u?$u:Hu,qe.ID),_f&&this.collisionIndex.insertCollisionBox(ru.box,Gt,fe.get("icon-ignore-placement"),ee.bucketInstanceId,Ku,qe.ID),nu&&ml&&this.collisionIndex.insertCollisionCircles(nu.circles,ot,fe.get("text-ignore-placement"),ee.bucketInstanceId,Hu,qe.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Fo,Ua,Pu,ru,nu),Yn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Yn.crossTileID]=new hn(ml||si,au||Mi,Sl||ee.justReloaded),q[Yn.crossTileID]=!0};if(ri){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let Yn=ee.getSortedSymbolIndexes(this.transform.angle);for(let Ua=Yn.length-1;Ua>=0;--Ua){let Fo=Yn[Ua];Zn(ee.symbolInstances.get(Fo),ee.collisionArrays[Fo],Fo)}}else for(let Yn=w.symbolInstanceStart;Yn=0&&(w.text.placedSymbolArray.get(at).crossTileID=fe>=0&&at!==fe?0:Q.crossTileID)}markUsedOrientation(w,q,Q){let ee=q===a.ah.horizontal||q===a.ah.horizontalOnly?q:0,fe=q===a.ah.vertical?q:0,Ue=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let at of Ue)w.text.placedSymbolArray.get(at).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=fe)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let q=this.prevPlacement,Q=!1;this.prevZoomAdjustment=q?q.zoomAdjustment(this.transform.zoom):0;let ee=q?q.symbolFadeChange(w):1,fe=q?q.opacities:{},Ue=q?q.variableOffsets:{},at=q?q.placedOrientations:{};for(let yt in this.placements){let Rt=this.placements[yt],Qt=fe[yt];Qt?(this.opacities[yt]=new ln(Qt,ee,Rt.text,Rt.icon),Q=Q||Rt.text!==Qt.text.placed||Rt.icon!==Qt.icon.placed):(this.opacities[yt]=new ln(null,ee,Rt.text,Rt.icon,Rt.skipFade),Q=Q||Rt.text||Rt.icon)}for(let yt in fe){let Rt=fe[yt];if(!this.opacities[yt]){let Qt=new ln(Rt,ee,!1,!1);Qt.isHidden()||(this.opacities[yt]=Qt,Q=Q||Rt.text.placed||Rt.icon.placed)}}for(let yt in Ue)this.variableOffsets[yt]||!this.opacities[yt]||this.opacities[yt].isHidden()||(this.variableOffsets[yt]=Ue[yt]);for(let yt in at)this.placedOrientations[yt]||!this.opacities[yt]||this.opacities[yt].isHidden()||(this.placedOrientations[yt]=at[yt]);if(q&&q.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=q?q.lastPlacementChangeTime:w)}updateLayerOpacities(w,q){let Q={};for(let ee of q){let fe=ee.getBucket(w);fe&&ee.latestFeatureIndex&&w.id===fe.layerIds[0]&&this.updateBucketOpacities(fe,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,q,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let fe=w.layers[0],Ue=fe.layout,at=new ln(null,0,!1,!1,!0),yt=Ue.get("text-allow-overlap"),Rt=Ue.get("icon-allow-overlap"),Qt=fe._unevaluatedLayout.hasValue("text-variable-anchor")||fe._unevaluatedLayout.hasValue("text-variable-anchor-offset"),rr=Ue.get("text-rotation-alignment")==="map",Mr=Ue.get("text-pitch-alignment")==="map",Ur=Ue.get("icon-text-fit")!=="none",he=new ln(null,0,yt&&(Rt||!w.hasIconData()||Ue.get("icon-optional")),Rt&&(yt||!w.hasTextData()||Ue.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let Ae=(Ge,ft,ot)=>{for(let mt=0;mt0,wr=this.placedOrientations[ft.crossTileID],Ir=wr===a.ah.vertical,ri=wr===a.ah.horizontal||wr===a.ah.horizontalOnly;if(ot>0||mt>0){let Mi=mi(er.text);Ae(w.text,ot,Ir?Ei:Mi),Ae(w.text,mt,ri?Ei:Mi);let cn=er.text.isHidden();[ft.rightJustifiedTextSymbolIndex,ft.centerJustifiedTextSymbolIndex,ft.leftJustifiedTextSymbolIndex].forEach((Ua=>{Ua>=0&&(w.text.placedSymbolArray.get(Ua).hidden=cn||Ir?1:0)})),ft.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(ft.verticalPlacedTextSymbolIndex).hidden=cn||ri?1:0);let Zn=this.variableOffsets[ft.crossTileID];Zn&&this.markUsedJustification(w,Zn.anchor,ft,wr);let Yn=this.placedOrientations[ft.crossTileID];Yn&&(this.markUsedJustification(w,"left",ft,Yn),this.markUsedOrientation(w,Yn,ft))}if(sr){let Mi=mi(er.icon),cn=!(Ur&&ft.verticalPlacedIconSymbolIndex&&Ir);ft.placedIconSymbolIndex>=0&&(Ae(w.icon,ft.numIconVertices,cn?Mi:Ei),w.icon.placedSymbolArray.get(ft.placedIconSymbolIndex).hidden=er.icon.isHidden()),ft.verticalPlacedIconSymbolIndex>=0&&(Ae(w.icon,ft.numVerticalIconVertices,cn?Ei:Mi),w.icon.placedSymbolArray.get(ft.verticalPlacedIconSymbolIndex).hidden=er.icon.isHidden())}let si=qe&&qe.has(Ge)?qe.get(Ge):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let Mi=w.collisionArrays[Ge];if(Mi){let cn=new a.P(0,0);if(Mi.textBox||Mi.verticalTextBox){let Zn=!0;if(Qt){let Yn=this.variableOffsets[Gt];Yn?(cn=Dt(Yn.anchor,Yn.width,Yn.height,Yn.textOffset,Yn.textBoxScale),rr&&cn._rotate(Mr?this.transform.angle:-this.transform.angle)):Zn=!1}if(Mi.textBox||Mi.verticalTextBox){let Yn;Mi.textBox&&(Yn=Ir),Mi.verticalTextBox&&(Yn=ri),qt(w.textCollisionBox.collisionVertexArray,er.text.placed,!Zn||Yn,si.text,cn.x,cn.y)}}if(Mi.iconBox||Mi.verticalIconBox){let Zn=!!(!ri&&Mi.verticalIconBox),Yn;Mi.iconBox&&(Yn=Zn),Mi.verticalIconBox&&(Yn=!Zn),qt(w.iconCollisionBox.collisionVertexArray,er.icon.placed,Yn,si.icon,Ur?cn.x:0,Ur?cn.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let Ge=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Ge.invProjMatrix,w.placementViewportMatrix=Ge.viewportMatrix,w.collisionCircleArray=Ge.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function qt(ue,w,q,Q,ee,fe){Q&&Q.length!==0||(Q=[0,0,0,0]);let Ue=Q[0]-Vr,at=Q[1]-Vr,yt=Q[2]-Vr,Rt=Q[3]-Vr;ue.emplaceBack(w?1:0,q?1:0,ee||0,fe||0,Ue,at),ue.emplaceBack(w?1:0,q?1:0,ee||0,fe||0,yt,at),ue.emplaceBack(w?1:0,q?1:0,ee||0,fe||0,yt,Rt),ue.emplaceBack(w?1:0,q?1:0,ee||0,fe||0,Ue,Rt)}let Nt=Math.pow(2,25),mr=Math.pow(2,24),Lr=Math.pow(2,17),Nr=Math.pow(2,16),Fr=Math.pow(2,9),Hr=Math.pow(2,8),Gr=Math.pow(2,1);function mi(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,q=Math.floor(127*ue.opacity);return q*Nt+w*mr+q*Lr+w*Nr+q*Fr+w*Hr+q*Gr+w}let Ei=0;function Vi(){return{isOccluded:(ue,w,q)=>!1,getPitchedTextCorrection:(ue,w,q)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,q,Q){throw new Error("Not implemented.")},translatePosition:(ue,w,q,Q)=>(function(ee,fe,Ue,at,yt=!1){if(!Ue[0]&&!Ue[1])return[0,0];let Rt=yt?at==="map"?ee.angle:0:at==="viewport"?-ee.angle:0;if(Rt){let Qt=Math.sin(Rt),rr=Math.cos(Rt);Ue=[Ue[0]*rr-Ue[1]*Qt,Ue[0]*Qt+Ue[1]*rr]}return[yt?Ue[0]:Bi(fe,Ue[0],ee.zoom),yt?Ue[1]:Bi(fe,Ue[1],ee.zoom)]})(ue,w,q,Q),getCircleRadiusCorrection:ue=>1}}class ti{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,q,Q,ee,fe){let Ue=this._bucketParts;for(;this._currentTileIndexat.sortKey-yt.sortKey)));this._currentPartIndex!this._forceFullPlacement&&l.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Ue=q[w[this._currentPlacementIndex]],at=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=at)&&(!Ue.maxzoom||Ue.maxzoom>at)){if(this._inProgressLayer||(this._inProgressLayer=new ti(Ue)),this._inProgressLayer.continuePlacement(Q[Ue.source],this.placement,this._showCollisionBoxes,Ue,fe))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let Yr=512/a.X/2;class oi{constructor(w,q,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let fe=0;fe({x:Math.floor(yt.anchorX*Yr),y:Math.floor(yt.anchorY*Yr)}))),crossTileIDs:Ue.map((yt=>yt.crossTileID))};if(at.positions.length>128){let yt=new a.av(at.positions.length,16,Uint16Array);for(let{x:Rt,y:Qt}of at.positions)yt.add(Rt,Qt);yt.finish(),delete at.positions,at.index=yt}this._symbolsByKey[fe]=at}}getScaledCoordinates(w,q){let{x:Q,y:ee,z:fe}=this.tileID.canonical,{x:Ue,y:at,z:yt}=q.canonical,Rt=Yr/Math.pow(2,yt-fe),Qt=(at*a.X+w.anchorY)*Rt,rr=ee*a.X*Yr;return{x:Math.floor((Ue*a.X+w.anchorX)*Rt-Q*a.X*Yr),y:Math.floor(Qt-rr)}}findMatches(w,q,Q){let ee=this.tileID.canonical.zw))}}class Fi{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class rn{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let q=Math.round((w-this.lng)/360);if(q!==0)for(let Q in this.indexes){let ee=this.indexes[Q],fe={};for(let Ue in ee){let at=ee[Ue];at.tileID=at.tileID.unwrapTo(at.tileID.wrap+q),fe[at.tileID.key]=at}this.indexes[Q]=fe}this.lng=w}addBucket(w,q,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===q.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let fe=0;few.overscaledZ)for(let at in Ue){let yt=Ue[at];yt.tileID.isChildOf(w)&&yt.findMatches(q.symbolInstances,w,ee)}else{let at=Ue[w.scaledTo(Number(fe)).key];at&&at.findMatches(q.symbolInstances,w,ee)}}for(let fe=0;fe{q[Q]=!0}));for(let Q in this.layerIndexes)q[Q]||delete this.layerIndexes[Q]}}let Di=(ue,w)=>a.t(ue,w&&w.filter((q=>q.identifier!=="source.canvas"))),Ii=a.aw();class xn extends a.E{constructor(w,q={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Te(Se(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",((Q,ee)=>this.getGlyphs(Q,ee))),this.dispatcher.registerMessageHandler("GI",((Q,ee)=>this.getImages(Q,ee))),this.imageManager=new M,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,q.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new tn,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),vt().on(Me,this._rtlPluginLoaded),this.on("data",(Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let fe=ee.getSource();if(fe&&fe.vectorLayerIds)for(let Ue in this._layers){let at=this._layers[Ue];at.source===fe.id&&this._validateLayer(at)}}))}loadURL(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),q.validate=typeof q.validate!="boolean"||q.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let fe=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then((Ue=>{this._loadStyleRequest=null,this._load(Ue.data,q,Q)})).catch((Ue=>{this._loadStyleRequest=null,Ue&&!fe.signal.aborted&&this.fire(new a.j(Ue))}))}loadJSON(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then((()=>{this._frameRequest=null,q.validate=q.validate!==!1,this._load(w,q,Q)})).catch((()=>{}))}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Ii,{validate:!1})}_load(w,q,Q){var ee;let fe=q.transformStyle?q.transformStyle(Q,w):w;if(!q.validate||!Di(this,a.u(fe))){this._loaded=!0,this.stylesheet=fe;for(let Ue in fe.sources)this.addSource(Ue,fe.sources[Ue],{validate:!1});fe.sprite?this._loadSprite(fe.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(fe.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map((q=>q.id)),this._layers={},this._serializedLayers=null;for(let q of w){let Q=a.aA(q);Q.setEventedParent(this,{layer:{id:q.id}}),this._layers[q.id]=Q}}_loadSprite(w,q=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,(function(fe,Ue,at,yt){return a._(this,void 0,void 0,(function*(){let Rt=k(fe),Qt=at>1?"@2x":"",rr={},Mr={};for(let{id:Ur,url:he}of Rt){let Ae=Ue.transformRequest(S(he,Qt,".json"),"SpriteJSON");rr[Ur]=a.h(Ae,yt);let qe=Ue.transformRequest(S(he,Qt,".png"),"SpriteImage");Mr[Ur]=v.getImage(qe,yt)}return yield Promise.all([...Object.values(rr),...Object.values(Mr)]),(function(Ur,he){return a._(this,void 0,void 0,(function*(){let Ae={};for(let qe in Ur){Ae[qe]={};let Ge=l.getImageCanvasContext((yield he[qe]).data),ft=(yield Ur[qe]).data;for(let ot in ft){let{width:mt,height:Gt,x:er,y:sr,sdf:wr,pixelRatio:Ir,stretchX:ri,stretchY:si,content:Mi,textFitWidth:cn,textFitHeight:Zn}=ft[ot];Ae[qe][ot]={data:null,pixelRatio:Ir,sdf:wr,stretchX:ri,stretchY:si,content:Mi,textFitWidth:cn,textFitHeight:Zn,spriteData:{width:mt,height:Gt,x:er,y:sr,context:Ge}}}}return Ae}))})(rr,Mr)}))})(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then((fe=>{if(this._spriteRequest=null,fe)for(let Ue in fe){this._spritesImagesIds[Ue]=[];let at=this._spritesImagesIds[Ue]?this._spritesImagesIds[Ue].filter((yt=>!(yt in fe))):[];for(let yt of at)this.imageManager.removeImage(yt),this._changedImages[yt]=!0;for(let yt in fe[Ue]){let Rt=Ue==="default"?yt:`${Ue}:${yt}`;this._spritesImagesIds[Ue].push(Rt),Rt in this.imageManager.images?this.imageManager.updateImage(Rt,fe[Ue][yt],!1):this.imageManager.addImage(Rt,fe[Ue][yt]),q&&(this._changedImages[Rt]=!0)}}})).catch((fe=>{this._spriteRequest=null,ee=fe,this.fire(new a.j(ee))})).finally((()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),q&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)}))}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let q=this.sourceCaches[w.source];if(!q)return;let Q=w.sourceLayer;if(!Q)return;let ee=q.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,q=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(q?a.aB(Q):Q);let ee=[];for(let fe of w)if(Q[fe]){let Ue=q?a.aB(Q[fe]):Q[fe];ee.push(Ue)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let q=Object.keys(this._layers);for(let Q of q){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let q=this._changed;if(q){let ee=Object.keys(this._updatedLayers),fe=Object.keys(this._removedLayers);(ee.length||fe.length)&&this._updateWorkerLayers(ee,fe);for(let Ue in this._updatedSources){let at=this._updatedSources[Ue];if(at==="reload")this._reloadSource(Ue);else{if(at!=="clear")throw new Error(`Invalid action ${at}`);this._clearSource(Ue)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Ue in this._updatedPaintProps)this._layers[Ue].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let fe=this.sourceCaches[ee];Q[ee]=fe.used,fe.used=!1}for(let ee of this._order){let fe=this._layers[ee];fe.recalculate(w,this._availableImages),!fe.isHidden(w.zoom)&&fe.source&&(this.sourceCaches[fe.source].used=!0)}for(let ee in Q){let fe=this.sourceCaches[ee];!!Q[ee]!=!!fe.used&&fe.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,q&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let q in this.sourceCaches)this.sourceCaches[q].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,q){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:q})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,q={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=q.transformStyle?q.transformStyle(ee,w):w,((Q=q.validate)===null||Q===void 0||Q)&&Di(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let fe=a.aC(ee,w),Ue=this._getOperationsToPerform(fe);if(Ue.unimplemented.length>0)throw new Error(`Unimplemented: ${Ue.unimplemented.join(", ")}.`);if(Ue.operations.length===0)return!1;for(let at of Ue.operations)at();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let q=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":q.push((()=>this.addLayer.apply(this,ee.args)));break;case"removeLayer":q.push((()=>this.removeLayer.apply(this,ee.args)));break;case"setPaintProperty":q.push((()=>this.setPaintProperty.apply(this,ee.args)));break;case"setLayoutProperty":q.push((()=>this.setLayoutProperty.apply(this,ee.args)));break;case"setFilter":q.push((()=>this.setFilter.apply(this,ee.args)));break;case"addSource":q.push((()=>this.addSource.apply(this,ee.args)));break;case"removeSource":q.push((()=>this.removeSource.apply(this,ee.args)));break;case"setLayerZoomRange":q.push((()=>this.setLayerZoomRange.apply(this,ee.args)));break;case"setLight":q.push((()=>this.setLight.apply(this,ee.args)));break;case"setGeoJSONSourceData":q.push((()=>this.setGeoJSONSourceData.apply(this,ee.args)));break;case"setGlyphs":q.push((()=>this.setGlyphs.apply(this,ee.args)));break;case"setSprite":q.push((()=>this.setSprite.apply(this,ee.args)));break;case"setSky":q.push((()=>this.setSky.apply(this,ee.args)));break;case"setTerrain":q.push((()=>this.map.setTerrain.apply(this,ee.args)));break;case"setTransition":q.push((()=>{}));break;default:Q.push(ee.command)}return{operations:q,unimplemented:Q}}addImage(w,q){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,q),this._afterImageUpdated(w)}updateImage(w,q){this.imageManager.updateImage(w,q)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,q,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!q.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(q).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(q.type)>=0&&this._validate(a.u.source,`sources.${w}`,q,null,Q))return;this.map&&this.map._collectResourceTiming&&(q.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new et(w,q,this.dispatcher);ee.style=this,ee.setEventedParent(this,(()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w}))),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let q=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],q.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),q.setEventedParent(null),q.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,q){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(q),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,q,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let fe;if(w.type==="custom"){if(Di(this,a.aD(w)))return;fe=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;fe=a.aA(w),this._validateLayer(fe),fe.setEventedParent(this,{layer:{id:ee}})}let Ue=q?this._order.indexOf(q):this._order.length;if(q&&Ue===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${q}".`)));else{if(this._order.splice(Ue,0,ee),this._layerOrderChanged=!0,this._layers[ee]=fe,this._removedLayers[ee]&&fe.source&&fe.type!=="custom"){let at=this._removedLayers[ee];delete this._removedLayers[ee],at.type!==fe.type?this._updatedSources[fe.source]="clear":(this._updatedSources[fe.source]="reload",this.sourceCaches[fe.source].pause())}this._updateLayer(fe),fe.onAdd&&fe.onAdd(this.map)}}moveLayer(w,q){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===q)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=q?this._order.indexOf(q):this._order.length;q&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${q}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let q=this._layers[w];if(!q)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));q.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=q,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],q.onRemove&&q.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,q,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===q&&ee.maxzoom===Q||(q!=null&&(ee.minzoom=q),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,q,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,q))return q==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,q,null,Q)||(ee.filter=a.aB(q),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,q,Q,ee={}){this._checkLoaded();let fe=this.getLayer(w);fe?a.aE(fe.getLayoutProperty(q),Q)||(fe.setLayoutProperty(q,Q,ee),this._updateLayer(fe)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,q){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(q);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,q,Q,ee={}){this._checkLoaded();let fe=this.getLayer(w);fe?a.aE(fe.getPaintProperty(q),Q)||(fe.setPaintProperty(q,Q,ee)&&this._updateLayer(fe),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,q){return this.getLayer(w).getPaintProperty(q)}setFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,fe=this.sourceCaches[Q];if(fe===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Ue=fe.getSource().type;Ue==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ue!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),fe.setFeatureState(ee,w.id,q)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let fe=ee.getSource().type,Ue=fe==="vector"?w.sourceLayer:void 0;fe!=="vector"||Ue?q&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(Ue,w.id,q):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let q=w.source,Q=w.sourceLayer,ee=this.sourceCaches[q];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${q}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,(fe=>fe.serialize())),q=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:q,terrain:Q},(fe=>fe!==void 0))}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let q=Ue=>this._layers[Ue].type==="fill-extrusion",Q={},ee=[];for(let Ue=this._order.length-1;Ue>=0;Ue--){let at=this._order[Ue];if(q(at)){Q[at]=Ue;for(let yt of w){let Rt=yt[at];if(Rt)for(let Qt of Rt)ee.push(Qt)}}}ee.sort(((Ue,at)=>at.intersectionZ-Ue.intersectionZ));let fe=[];for(let Ue=this._order.length-1;Ue>=0;Ue--){let at=this._order[Ue];if(q(at))for(let yt=ee.length-1;yt>=0;yt--){let Rt=ee[yt].feature;if(Q[Rt.layer.id]{let wr=Ge.featureSortOrder;if(wr){let Ir=wr.indexOf(er.featureIndex);return wr.indexOf(sr.featureIndex)-Ir}return sr.featureIndex-er.featureIndex}));for(let er of Gt)mt.push(er)}}for(let Ge in he)he[Ge].forEach((ft=>{let ot=ft.feature,mt=Rt[at[Ge].source].getFeatureState(ot.layer["source-layer"],ot.id);ot.source=ot.layer.source,ot.layer["source-layer"]&&(ot.sourceLayer=ot.layer["source-layer"]),ot.state=mt}));return he})(this._layers,Ue,this.sourceCaches,w,q,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(fe)}querySourceFeatures(w,q){q&&q.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",q.filter,null,q);let Q=this.sourceCaches[w];return Q?(function(ee,fe){let Ue=ee.getRenderableIds().map((Rt=>ee.getTileByID(Rt))),at=[],yt={};for(let Rt=0;RtMr.getTileByID(Ur))).sort(((Ur,he)=>he.tileID.overscaledZ-Ur.tileID.overscaledZ||(Ur.tileID.isLessThan(he.tileID)?-1:1)))}let rr=this.crossTileSymbolIndex.addLayer(Qt,yt[Qt.source],w.center.lng);Ue=Ue||rr}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((fe=fe||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.now(),w.zoom))&&(this.pauseablePlacement=new Qi(w,this.map.terrain,this._order,fe,q,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,yt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.now()),at=!0),Ue&&this.pauseablePlacement.placement.setStale()),at||Ue)for(let Rt of this._order){let Qt=this._layers[Rt];Qt.type==="symbol"&&this.placement.updateLayerOpacities(Qt,yt[Qt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(l.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,q){return a._(this,void 0,void 0,(function*(){let Q=yield this.imageManager.getImages(q.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,q.icons),Q}))}getGlyphs(w,q){return a._(this,void 0,void 0,(function*(){let Q=yield this.glyphManager.getGlyphs(q.stacks),ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,[""]),Q}))}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,q={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,q)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,q,Q={},ee){this._checkLoaded();let fe=[{id:w,url:q}],Ue=[...k(this.stylesheet.sprite),...fe];this._validate(a.u.sprite,"sprite",Ue,null,Q)||(this.stylesheet.sprite=Ue,this._loadSprite(fe,!0,ee))}removeSprite(w){this._checkLoaded();let q=k(this.stylesheet.sprite);if(q.find((Q=>Q.id===w))){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;q.splice(q.findIndex((Q=>Q.id===w)),1),this.stylesheet.sprite=q.length>0?q:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return k(this.stylesheet.sprite)}setSprite(w,q={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,q)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var xi=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Xr={prelude:dt(`#ifdef GL_ES precision mediump float; #else #if !defined(lowp) @@ -3749,7 +3749,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:dt("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:dt("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:dt("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:dt("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function dt(ue,w){let q=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Q=w.match(/attribute ([\w]+) ([\w]+)/g),ee=ue.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),fe=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ue=fe?fe.concat(ee):ee,at={};return{fragmentSource:ue=ue.replace(q,(yt,Dt,Qt,rr,Mr)=>(at[Mr]=!0,Dt==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:dt("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:dt("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:dt("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:dt("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function dt(ue,w){let q=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Q=w.match(/attribute ([\w]+) ([\w]+)/g),ee=ue.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),fe=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ue=fe?fe.concat(ee):ee,at={};return{fragmentSource:ue=ue.replace(q,((yt,Rt,Qt,rr,Mr)=>(at[Mr]=!0,Rt==="define"?` #ifndef HAS_UNIFORM_u_${Mr} varying ${Qt} ${rr} ${Mr}; #else @@ -3759,7 +3759,7 @@ uniform ${Qt} ${rr} u_${Mr}; #ifdef HAS_UNIFORM_u_${Mr} ${Qt} ${rr} ${Mr} = u_${Mr}; #endif -`)),vertexSource:w=w.replace(q,(yt,Dt,Qt,rr,Mr)=>{let Ur=rr==="float"?"vec2":"vec4",he=Mr.match(/color/)?"color":Ur;return at[Mr]?Dt==="define"?` +`))),vertexSource:w=w.replace(q,((yt,Rt,Qt,rr,Mr)=>{let Ur=rr==="float"?"vec2":"vec4",he=Mr.match(/color/)?"color":Ur;return at[Mr]?Rt==="define"?` #ifndef HAS_UNIFORM_u_${Mr} uniform lowp float u_${Mr}_t; attribute ${Qt} ${Ur} a_${Mr}; @@ -3779,7 +3779,7 @@ uniform ${Qt} ${rr} u_${Mr}; #else ${Qt} ${rr} ${Mr} = u_${Mr}; #endif -`:Dt==="define"?` +`:Rt==="define"?` #ifndef HAS_UNIFORM_u_${Mr} uniform lowp float u_${Mr}_t; attribute ${Qt} ${Ur} a_${Mr}; @@ -3798,9 +3798,9 @@ uniform ${Qt} ${rr} u_${Mr}; #else ${Qt} ${rr} ${Mr} = u_${Mr}; #endif -`}),staticAttributes:Q,staticUniforms:Ue}}class $t{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(w,q,Q,ee,fe,Ue,at,yt,Dt){this.context=w;let Qt=this.boundPaintVertexBuffers.length!==ee.length;for(let rr=0;!Qt&&rr({u_matrix:ue,u_texture:0,u_ele_delta:w,u_fog_matrix:q,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function gr(ue){let w=[];for(let q=0;q({u_matrix:ue,u_texture:0,u_ele_delta:w,u_fog_matrix:q,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function gr(ue){let w=[];for(let q=0;q({u_depth:new a.aH(er,sr.u_depth),u_terrain:new a.aH(er,sr.u_terrain),u_terrain_dim:new a.aI(er,sr.u_terrain_dim),u_terrain_matrix:new a.aJ(er,sr.u_terrain_matrix),u_terrain_unpack:new a.aK(er,sr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(er,sr.u_terrain_exaggeration)}))(w,Gt),this.binderUniforms=Q?Q.getUniforms(w,Gt):[]}draw(w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft){let ot=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(fe),w.setCullFace(Ue),yt){w.activeTexture.set(ot.TEXTURE2),ot.bindTexture(ot.TEXTURE_2D,yt.depthTexture),w.activeTexture.set(ot.TEXTURE3),ot.bindTexture(ot.TEXTURE_2D,yt.texture);for(let Gt in this.terrainUniforms)this.terrainUniforms[Gt].set(yt[Gt])}for(let Gt in this.fixedUniforms)this.fixedUniforms[Gt].set(at[Gt]);Ae&&Ae.setUniforms(w,this.binderUniforms,Ur,{zoom:he});let mt=0;switch(q){case ot.LINES:mt=2;break;case ot.TRIANGLES:mt=3;break;case ot.LINE_STRIP:mt=1}for(let Gt of Mr.get()){let er=Gt.vaos||(Gt.vaos={});(er[Dt]||(er[Dt]=new $t)).bind(w,this,Qt,Ae?Ae.getPaintVertexBuffers():[],rr,Gt.vertexOffset,qe,Ge,ft),ot.drawElements(q,Gt.primitiveLength*mt,ot.UNSIGNED_SHORT,Gt.primitiveOffset*mt*2)}}}function wi(ue,w,q){let Q=1/Bi(q,1,w.transform.tileZoom),ee=Math.pow(2,q.tileID.overscaledZ),fe=q.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Ue=fe*(q.tileID.canonical.x+q.tileID.wrap*ee),at=fe*q.tileID.canonical.y;return{u_image:0,u_texsize:q.imageAtlasTexture.size,u_scale:[Q,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[Ue>>16,at>>16],u_pixel_coord_lower:[65535&Ue,65535&at]}}let $i=(ue,w,q,Q)=>{let ee=w.style.light,fe=ee.properties.get("position"),Ue=[fe.x,fe.y,fe.z],at=function(){var Dt=new a.A(9);return a.A!=Float32Array&&(Dt[1]=0,Dt[2]=0,Dt[3]=0,Dt[5]=0,Dt[6]=0,Dt[7]=0),Dt[0]=1,Dt[4]=1,Dt[8]=1,Dt}();ee.properties.get("anchor")==="viewport"&&function(Dt,Qt){var rr=Math.sin(Qt),Mr=Math.cos(Qt);Dt[0]=Mr,Dt[1]=rr,Dt[2]=0,Dt[3]=-rr,Dt[4]=Mr,Dt[5]=0,Dt[6]=0,Dt[7]=0,Dt[8]=1}(at,-w.transform.angle),function(Dt,Qt,rr){var Mr=Qt[0],Ur=Qt[1],he=Qt[2];Dt[0]=Mr*rr[0]+Ur*rr[3]+he*rr[6],Dt[1]=Mr*rr[1]+Ur*rr[4]+he*rr[7],Dt[2]=Mr*rr[2]+Ur*rr[5]+he*rr[8]}(Ue,Ue,at);let yt=ee.properties.get("color");return{u_matrix:ue,u_lightpos:Ue,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[yt.r,yt.g,yt.b],u_vertical_gradient:+q,u_opacity:Q}},ni=(ue,w,q,Q,ee,fe,Ue)=>a.e($i(ue,w,q,Q),wi(fe,w,Ue),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Ue.tileSize/8}),Xi=ue=>({u_matrix:ue}),aa=(ue,w,q,Q)=>a.e(Xi(ue),wi(q,w,Q)),Mn=(ue,w)=>({u_matrix:ue,u_world:w}),Un=(ue,w,q,Q,ee)=>a.e(aa(ue,w,q,Q),{u_world:ee}),Ga=(ue,w,q,Q)=>{let ee=ue.transform,fe,Ue;if(Q.paint.get("circle-pitch-alignment")==="map"){let at=Bi(q,1,ee.zoom);fe=!0,Ue=[at,at]}else fe=!1,Ue=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,q,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+fe,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:Ue}},ma=(ue,w,q)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:q.cameraToCenterDistance,u_viewport_size:[q.width,q.height]}),oa=(ue,w,q=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:q}),ka=ue=>({u_matrix:ue}),so=(ue,w,q,Q)=>({u_matrix:ue,u_extrude_scale:Bi(w,1,q),u_intensity:Q}),Kr=(ue,w,q,Q)=>{let ee=a.H();a.aP(ee,0,ue.width,ue.height,0,0,1);let fe=ue.context.gl;return{u_matrix:ee,u_world:[fe.drawingBufferWidth,fe.drawingBufferHeight],u_image:q,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Ia(ue,w){let q=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/q).toLngLat().lat,new a.Z(0,(Q+1)/q).toLngLat().lat]}let Yo=(ue,w,q,Q)=>{let ee=ue.transform;return{u_matrix:uo(ue,w,q,Q),u_ratio:1/Bi(w,1,ee.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},fa=(ue,w,q,Q,ee)=>a.e(Yo(ue,w,q,ee),{u_image:0,u_image_height:Q}),kn=(ue,w,q,Q,ee)=>{let fe=ue.transform,Ue=ys(w,fe);return{u_matrix:uo(ue,w,q,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Bi(w,1,fe.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[Ue,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/fe.pixelsToGLUnits[0],1/fe.pixelsToGLUnits[1]]}},Ta=(ue,w,q,Q,ee,fe)=>{let Ue=ue.lineAtlas,at=ys(w,ue.transform),yt=q.layout.get("line-cap")==="round",Dt=Ue.getDash(Q.from,yt),Qt=Ue.getDash(Q.to,yt),rr=Dt.width*ee.fromScale,Mr=Qt.width*ee.toScale;return a.e(Yo(ue,w,q,fe),{u_patternscale_a:[at/rr,-Dt.height/2],u_patternscale_b:[at/Mr,-Qt.height/2],u_sdfgamma:Ue.width/(256*Math.min(rr,Mr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Dt.y,u_tex_y_b:Qt.y,u_mix:ee.t})};function ys(ue,w){return 1/Bi(ue,1,w.tileZoom)}function uo(ue,w,q,Q){return ue.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,q.paint.get("line-translate"),q.paint.get("line-translate-anchor"))}let ls=(ue,w,q,Q,ee)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:q,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(Ue=ee.paint.get("raster-saturation"),Ue>0?1-1/(1.001-Ue):-Ue),u_contrast_factor:(fe=ee.paint.get("raster-contrast"),fe>0?1/(1-fe):1+fe),u_spin_weights:$a(ee.paint.get("raster-hue-rotate"))};var fe,Ue};function $a(ue){ue*=Math.PI/180;let w=Math.sin(ue),q=Math.cos(ue);return[(2*q+1)/3,(-Math.sqrt(3)*w-q+1)/3,(Math.sqrt(3)*w-q+1)/3]}let fo=(ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur)=>{let he=Ue.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:he.cameraToCenterDistance,u_pitch:he.pitch/360*2*Math.PI,u_rotate_symbol:+q,u_aspect_ratio:he.width/he.height,u_fade_change:Ue.options.fadeDuration?Ue.symbolFadeChange:1,u_matrix:at,u_label_plane_matrix:yt,u_coord_matrix:Dt,u_is_text:+rr,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:fe,u_texsize:Mr,u_texture:0,u_translation:Qt,u_pitched_scale:Ur}},mn=(ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur,he)=>{let Ae=Ue.transform;return a.e(fo(ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,he),{u_gamma_scale:Q?Math.cos(Ae._pitch)*Ae.cameraToCenterDistance:1,u_device_pixel_ratio:Ue.pixelRatio,u_is_halo:+Ur})},ra=(ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,rr,Mr,Ur)=>a.e(mn(ue,w,q,Q,ee,fe,Ue,at,yt,Dt,Qt,!0,rr,!0,Ur),{u_texsize_icon:Mr,u_texture_icon:1}),wa=(ue,w,q)=>({u_matrix:ue,u_opacity:w,u_color:q}),ws=(ue,w,q,Q,ee,fe)=>a.e(function(Ue,at,yt,Dt){let Qt=yt.imageManager.getPattern(Ue.from.toString()),rr=yt.imageManager.getPattern(Ue.to.toString()),{width:Mr,height:Ur}=yt.imageManager.getPixelSize(),he=Math.pow(2,Dt.tileID.overscaledZ),Ae=Dt.tileSize*Math.pow(2,yt.transform.tileZoom)/he,qe=Ae*(Dt.tileID.canonical.x+Dt.tileID.wrap*he),Ge=Ae*Dt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Qt.tl,u_pattern_br_a:Qt.br,u_pattern_tl_b:rr.tl,u_pattern_br_b:rr.br,u_texsize:[Mr,Ur],u_mix:at.t,u_pattern_size_a:Qt.displaySize,u_pattern_size_b:rr.displaySize,u_scale_a:at.fromScale,u_scale_b:at.toScale,u_tile_units_to_pixels:1/Bi(Dt,1,yt.transform.tileZoom),u_pixel_coord_upper:[qe>>16,Ge>>16],u_pixel_coord_lower:[65535&qe,65535&Ge]}}(Q,fe,q,ee),{u_matrix:ue,u_opacity:w}),Co={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class Po{constructor(w,q,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let q=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),q.bufferSubData(q.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Wi={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class gn{constructor(w,q,Q,ee){this.length=q.length,this.attributes=Q,this.itemSize=q.bytesPerElement,this.dynamicDraw=ee,this.context=w;let fe=w.gl;this.buffer=fe.createBuffer(),w.bindVertexBuffer.set(this.buffer),fe.bufferData(fe.ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?fe.DYNAMIC_DRAW:fe.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let q=this.context.gl;this.bind(),q.bufferSubData(q.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,q){for(let Q=0;Q0){let er=a.H();a.aQ(er,ot.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(er,er,ot.placementViewportMatrix),yt.push({circleArray:Gt,circleOffset:Qt,transform:ft.posMatrix,invTransform:er,coord:ft}),Dt+=Gt.length/4,Qt=Dt}mt&&at.draw(fe,Ue.LINES,sa.disabled,Na.disabled,ue.colorModeForRenderPass(),en.disabled,{u_matrix:ft.posMatrix,u_pixel_extrude_scale:[1/(rr=ue.transform).width,1/rr.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(ft),q.id,mt.layoutVertexBuffer,mt.indexBuffer,mt.segments,null,ue.transform.zoom,null,null,mt.collisionVertexBuffer)}var rr;if(!ee||!yt.length)return;let Mr=ue.useProgram("collisionCircle"),Ur=new a.aR;Ur.resize(4*Dt),Ur._trim();let he=0;for(let Ge of yt)for(let ft=0;ft=0&&(Ge[ot.associatedIconIndex]={shiftedAnchor:Fo,angle:vl})}else jr(ot.numGlyphs,Ae)}if(Dt){qe.clear();let ft=ue.icon.placedSymbolArray;for(let ot=0;otue.style.map.terrain.getElevation(si,wt,lr):null,Ht=q.layout.get("text-rotation-alignment")==="map";ze(cn,si.posMatrix,ue,ee,$u,Wu,Ge,Dt,Ht,Ae,si.toUnwrapped(),he.width,he.height,ju,ut)}let Qu=si.posMatrix,ef=ee&&wr||_f,Z=ft||ef?yo:$u,le=Ku,ke=Ua&&q.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ye;Ye=Ua?cn.iconsInText?ra(Fo.kind,ml,ot,Ge,ft,ef,ue,Qu,Z,le,ju,Sl,Pu,ri):mn(Fo.kind,ml,ot,Ge,ft,ef,ue,Qu,Z,le,ju,ee,Sl,!0,ri):fo(Fo.kind,ml,ot,Ge,ft,ef,ue,Qu,Z,le,ju,ee,Sl,ri);let nt={program:Us,buffers:Zn,uniformValues:Ye,atlasTexture:Yl,atlasTextureIcon:nu,atlasInterpolation:ql,atlasInterpolationIcon:ou,isSDF:Ua,hasHalo:ke};if(Gt&&cn.canOverlap){er=!0;let ut=Zn.segments.get();for(let Ht of ut)Ir.push({segments:new a.a0([Ht]),sortKey:Ht.sortKey,state:nt,terrainData:au})}else Ir.push({segments:Zn.segments,sortKey:0,state:nt,terrainData:au})}er&&Ir.sort((si,Mi)=>si.sortKey-Mi.sortKey);for(let si of Ir){let Mi=si.state;if(Mr.activeTexture.set(Ur.TEXTURE0),Mi.atlasTexture.bind(Mi.atlasInterpolation,Ur.CLAMP_TO_EDGE),Mi.atlasTextureIcon&&(Mr.activeTexture.set(Ur.TEXTURE1),Mi.atlasTextureIcon&&Mi.atlasTextureIcon.bind(Mi.atlasInterpolationIcon,Ur.CLAMP_TO_EDGE)),Mi.isSDF){let cn=Mi.uniformValues;Mi.hasHalo&&(cn.u_is_halo=1,Ca(Mi.buffers,si.segments,q,ue,Mi.program,sr,Qt,rr,cn,si.terrainData)),cn.u_is_halo=0}Ca(Mi.buffers,si.segments,q,ue,Mi.program,sr,Qt,rr,Mi.uniformValues,si.terrainData)}}function Ca(ue,w,q,Q,ee,fe,Ue,at,yt,Dt){let Qt=Q.context;ee.draw(Qt,Qt.gl.TRIANGLES,fe,Ue,at,en.disabled,yt,Dt,q.id,ue.layoutVertexBuffer,ue.indexBuffer,w,q.paint,Q.transform.zoom,ue.programConfigurations.get(q.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function Es(ue,w,q,Q){let ee=ue.context,fe=ee.gl,Ue=Na.disabled,at=new lo([fe.ONE,fe.ONE],a.aM.transparent,[!0,!0,!0,!0]),yt=w.getBucket(q);if(!yt)return;let Dt=Q.key,Qt=q.heatmapFbos.get(Dt);Qt||(Qt=Ho(ee,w.tileSize,w.tileSize),q.heatmapFbos.set(Dt,Qt)),ee.bindFramebuffer.set(Qt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let rr=yt.programConfigurations.get(q.id),Mr=ue.useProgram("heatmap",rr),Ur=ue.style.map.terrain.getTerrainData(Q);Mr.draw(ee,fe.TRIANGLES,sa.disabled,Ue,at,en.disabled,so(Q.posMatrix,w,ue.transform.zoom,q.paint.get("heatmap-intensity")),Ur,q.id,yt.layoutVertexBuffer,yt.indexBuffer,yt.segments,q.paint,ue.transform.zoom,rr)}function Ts(ue,w,q){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let fe=Wa(Q,w),Ue=q.key,at=w.heatmapFbos.get(Ue);at&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,at.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),fe.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,sa.disabled,Na.disabled,ue.colorModeForRenderPass(),en.disabled,Kr(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),at.destroy(),w.heatmapFbos.delete(Ue))}function Ho(ue,w,q){var Q,ee;let fe=ue.gl,Ue=fe.createTexture();fe.bindTexture(fe.TEXTURE_2D,Ue),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_WRAP_S,fe.CLAMP_TO_EDGE),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_WRAP_T,fe.CLAMP_TO_EDGE),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_MIN_FILTER,fe.LINEAR),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_MAG_FILTER,fe.LINEAR);let at=(Q=ue.HALF_FLOAT)!==null&&Q!==void 0?Q:fe.UNSIGNED_BYTE,yt=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:fe.RGBA;fe.texImage2D(fe.TEXTURE_2D,0,yt,w,q,0,fe.RGBA,at,null);let Dt=ue.createFramebuffer(w,q,!1,!1);return Dt.colorAttachment.set(Ue),Dt}function Wa(ue,w){return w.colorRampTexture||(w.colorRampTexture=new m(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function To(ue,w,q,Q,ee){if(!q||!Q||!Q.imageAtlas)return;let fe=Q.imageAtlas.patternPositions,Ue=fe[q.to.toString()],at=fe[q.from.toString()];if(!Ue&&at&&(Ue=at),!at&&Ue&&(at=Ue),!Ue||!at){let yt=ee.getPaintProperty(w);Ue=fe[yt],at=fe[yt]}Ue&&at&&ue.setConstantPatternPositions(Ue,at)}function ts(ue,w,q,Q,ee,fe,Ue){let at=ue.context.gl,yt="fill-pattern",Dt=q.paint.get(yt),Qt=Dt&&Dt.constantOr(1),rr=q.getCrossfadeParameters(),Mr,Ur,he,Ae,qe;Ue?(Ur=Qt&&!q.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",Mr=at.LINES):(Ur=Qt?"fillPattern":"fill",Mr=at.TRIANGLES);let Ge=Dt.constantOr(null);for(let ft of Q){let ot=w.getTile(ft);if(Qt&&!ot.patternsLoaded())continue;let mt=ot.getBucket(q);if(!mt)continue;let Gt=mt.programConfigurations.get(q.id),er=ue.useProgram(Ur,Gt),sr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(ft);Qt&&(ue.context.activeTexture.set(at.TEXTURE0),ot.imageAtlasTexture.bind(at.LINEAR,at.CLAMP_TO_EDGE),Gt.updatePaintBuffers(rr)),To(Gt,yt,Ge,ot,q);let wr=sr?ft:null,Ir=ue.translatePosMatrix(wr?wr.posMatrix:ft.posMatrix,ot,q.paint.get("fill-translate"),q.paint.get("fill-translate-anchor"));if(Ue){Ae=mt.indexBuffer2,qe=mt.segments2;let ri=[at.drawingBufferWidth,at.drawingBufferHeight];he=Ur==="fillOutlinePattern"&&Qt?Un(Ir,ue,rr,ot,ri):Mn(Ir,ri)}else Ae=mt.indexBuffer,qe=mt.segments,he=Qt?aa(Ir,ue,rr,ot):Xi(Ir);er.draw(ue.context,Mr,ee,ue.stencilModeForClipping(ft),fe,en.disabled,he,sr,q.id,mt.layoutVertexBuffer,Ae,qe,q.paint,ue.transform.zoom,Gt)}}function Wo(ue,w,q,Q,ee,fe,Ue){let at=ue.context,yt=at.gl,Dt="fill-extrusion-pattern",Qt=q.paint.get(Dt),rr=Qt.constantOr(1),Mr=q.getCrossfadeParameters(),Ur=q.paint.get("fill-extrusion-opacity"),he=Qt.constantOr(null);for(let Ae of Q){let qe=w.getTile(Ae),Ge=qe.getBucket(q);if(!Ge)continue;let ft=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(Ae),ot=Ge.programConfigurations.get(q.id),mt=ue.useProgram(rr?"fillExtrusionPattern":"fillExtrusion",ot);rr&&(ue.context.activeTexture.set(yt.TEXTURE0),qe.imageAtlasTexture.bind(yt.LINEAR,yt.CLAMP_TO_EDGE),ot.updatePaintBuffers(Mr)),To(ot,Dt,he,qe,q);let Gt=ue.translatePosMatrix(Ae.posMatrix,qe,q.paint.get("fill-extrusion-translate"),q.paint.get("fill-extrusion-translate-anchor")),er=q.paint.get("fill-extrusion-vertical-gradient"),sr=rr?ni(Gt,ue,er,Ur,Ae,Mr,qe):$i(Gt,ue,er,Ur);mt.draw(at,at.gl.TRIANGLES,ee,fe,Ue,en.backCCW,sr,ft,q.id,Ge.layoutVertexBuffer,Ge.indexBuffer,Ge.segments,q.paint,ue.transform.zoom,ot,ue.style.map.terrain&&Ge.centroidVertexBuffer)}}function qa(ue,w,q,Q,ee,fe,Ue){let at=ue.context,yt=at.gl,Dt=q.fbo;if(!Dt)return;let Qt=ue.useProgram("hillshade"),rr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);at.activeTexture.set(yt.TEXTURE0),yt.bindTexture(yt.TEXTURE_2D,Dt.colorAttachment.get()),Qt.draw(at,yt.TRIANGLES,ee,fe,Ue,en.disabled,((Mr,Ur,he,Ae)=>{let qe=he.paint.get("hillshade-shadow-color"),Ge=he.paint.get("hillshade-highlight-color"),ft=he.paint.get("hillshade-accent-color"),ot=he.paint.get("hillshade-illumination-direction")*(Math.PI/180);he.paint.get("hillshade-illumination-anchor")==="viewport"&&(ot-=Mr.transform.angle);let mt=!Mr.options.moving;return{u_matrix:Ae?Ae.posMatrix:Mr.transform.calculatePosMatrix(Ur.tileID.toUnwrapped(),mt),u_image:0,u_latrange:Ia(0,Ur.tileID),u_light:[he.paint.get("hillshade-exaggeration"),ot],u_shadow:qe,u_highlight:Ge,u_accent:ft}})(ue,q,Q,rr?w:null),rr,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function on(ue,w,q,Q,ee,fe){let Ue=ue.context,at=Ue.gl,yt=w.dem;if(yt&&yt.data){let Dt=yt.dim,Qt=yt.stride,rr=yt.getPixels();if(Ue.activeTexture.set(at.TEXTURE1),Ue.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Qt),w.demTexture){let Ur=w.demTexture;Ur.update(rr,{premultiply:!1}),Ur.bind(at.NEAREST,at.CLAMP_TO_EDGE)}else w.demTexture=new m(Ue,rr,at.RGBA,{premultiply:!1}),w.demTexture.bind(at.NEAREST,at.CLAMP_TO_EDGE);Ue.activeTexture.set(at.TEXTURE0);let Mr=w.fbo;if(!Mr){let Ur=new m(Ue,{width:Dt,height:Dt,data:null},at.RGBA);Ur.bind(at.LINEAR,at.CLAMP_TO_EDGE),Mr=w.fbo=Ue.createFramebuffer(Dt,Dt,!0,!1),Mr.colorAttachment.set(Ur.texture)}Ue.bindFramebuffer.set(Mr.framebuffer),Ue.viewport.set([0,0,Dt,Dt]),ue.useProgram("hillshadePrepare").draw(Ue,at.TRIANGLES,Q,ee,fe,en.disabled,((Ur,he)=>{let Ae=he.stride,qe=a.H();return a.aP(qe,0,a.X,-a.X,0,0,1),a.J(qe,qe,[0,-a.X,0]),{u_matrix:qe,u_image:1,u_dimension:[Ae,Ae],u_zoom:Ur.overscaledZ,u_unpack:he.getUnpackVector()}})(w.tileID,yt),null,q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Oo(ue,w,q,Q,ee,fe){let Ue=Q.paint.get("raster-fade-duration");if(!fe&&Ue>0){let at=l.now(),yt=(at-ue.timeAdded)/Ue,Dt=w?(at-w.timeAdded)/Ue:-1,Qt=q.getSource(),rr=ee.coveringZoomLevel({tileSize:Qt.tileSize,roundZoom:Qt.roundZoom}),Mr=!w||Math.abs(w.tileID.overscaledZ-rr)>Math.abs(ue.tileID.overscaledZ-rr),Ur=Mr&&ue.refreshedUponExpiration?1:a.ac(Mr?yt:1-Dt,0,1);return ue.refreshedUponExpiration&&yt>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Ur}:{opacity:Ur,mix:0}}return{opacity:1,mix:0}}let ko=new a.aM(1,0,0,1),oo=new a.aM(0,1,0,1),za=new a.aM(0,0,1,1),ea=new a.aM(1,0,1,1),rs=new a.aM(0,1,1,1);function $s(ue,w,q,Q){Rs(ue,0,w+q/2,ue.transform.width,q,Q)}function us(ue,w,q,Q){Rs(ue,w-q/2,0,q,ue.transform.height,Q)}function Rs(ue,w,q,Q,ee,fe){let Ue=ue.context,at=Ue.gl;at.enable(at.SCISSOR_TEST),at.scissor(w*ue.pixelRatio,q*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),Ue.clear({color:fe}),at.disable(at.SCISSOR_TEST)}function fl(ue,w,q){let Q=ue.context,ee=Q.gl,fe=q.posMatrix,Ue=ue.useProgram("debug"),at=sa.disabled,yt=Na.disabled,Dt=ue.colorModeForRenderPass(),Qt="$debug",rr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(q);Q.activeTexture.set(ee.TEXTURE0);let Mr=w.getTileByID(q.key).latestRawTileData,Ur=Math.floor((Mr&&Mr.byteLength||0)/1024),he=w.getTile(q).tileSize,Ae=512/Math.min(he,512)*(q.overscaledZ/ue.transform.zoom)*.5,qe=q.canonical.toString();q.overscaledZ!==q.canonical.z&&(qe+=` => ${q.overscaledZ}`),function(Ge,ft){Ge.initDebugOverlayCanvas();let ot=Ge.debugOverlayCanvas,mt=Ge.context.gl,Gt=Ge.debugOverlayCanvas.getContext("2d");Gt.clearRect(0,0,ot.width,ot.height),Gt.shadowColor="white",Gt.shadowBlur=2,Gt.lineWidth=1.5,Gt.strokeStyle="white",Gt.textBaseline="top",Gt.font="bold 36px Open Sans, sans-serif",Gt.fillText(ft,5,5),Gt.strokeText(ft,5,5),Ge.debugOverlayTexture.update(ot),Ge.debugOverlayTexture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE)}(ue,`${qe} ${Ur}kB`),Ue.draw(Q,ee.TRIANGLES,at,yt,lo.alphaBlended,en.disabled,oa(fe,a.aM.transparent,Ae),null,Qt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),Ue.draw(Q,ee.LINE_STRIP,at,yt,Dt,en.disabled,oa(fe,a.aM.red),rr,Qt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function as(ue,w,q){let Q=ue.context,ee=Q.gl,fe=ue.colorModeForRenderPass(),Ue=new sa(ee.LEQUAL,sa.ReadWrite,ue.depthRangeFor3D),at=ue.useProgram("terrain"),yt=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Dt of q){let Qt=ue.renderToTexture.getTexture(Dt),rr=w.getTerrainData(Dt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Qt.texture);let Mr=ue.transform.calculatePosMatrix(Dt.tileID.toUnwrapped()),Ur=w.getMeshFrameDelta(ue.transform.zoom),he=ue.transform.calculateFogMatrix(Dt.tileID.toUnwrapped()),Ae=fr(Mr,Ur,he,ue.style.sky,ue.transform.pitch);at.draw(Q,ee.TRIANGLES,Ue,Na.disabled,fe,en.backCCW,Ae,rr,"terrain",yt.vertexBuffer,yt.indexBuffer,yt.segments)}}class Ma{constructor(w,q,Q){this.vertexBuffer=w,this.indexBuffer=q,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Qs{constructor(w,q){this.context=new eo(w),this.transform=q,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=et.maxUnderzooming+et.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new tn}resize(w,q,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(q*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,q=new a.aX;q.emplaceBack(0,0),q.emplaceBack(a.X,0),q.emplaceBack(0,a.X),q.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(q,xi.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,xi.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,Ke.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let fe=new a.aX;fe.emplaceBack(0,0),fe.emplaceBack(1,0),fe.emplaceBack(0,1),fe.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(fe,xi.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let Ue=new a.aZ;Ue.emplaceBack(0),Ue.emplaceBack(1),Ue.emplaceBack(3),Ue.emplaceBack(2),Ue.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Ue);let at=new a.aY;at.emplaceBack(0,1,2),at.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(at);let yt=this.context.gl;this.stencilClearMode=new Na({func:yt.ALWAYS,mask:0},0,255,yt.ZERO,yt.ZERO,yt.ZERO)}clearStencil(){let w=this.context,q=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[q.drawingBufferWidth,q.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,q.TRIANGLES,sa.disabled,this.stencilClearMode,lo.disabled,en.disabled,ka(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,q){if(this.currentStencilSource===w.source||!w.isTileClipped()||!q||!q.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+q.length>256&&this.clearStencil(),Q.setColorMode(lo.disabled),Q.setDepthMode(sa.disabled);let fe=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Ue of q){let at=this._tileClippingMaskIDs[Ue.key]=this.nextStencilID++,yt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Ue);fe.draw(Q,ee.TRIANGLES,sa.disabled,new Na({func:ee.ALWAYS,mask:0},at,255,ee.KEEP,ee.KEEP,ee.REPLACE),lo.disabled,en.disabled,ka(Ue.posMatrix),yt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,q=this.context.gl;return new Na({func:q.NOTEQUAL,mask:255},w,255,q.KEEP,q.KEEP,q.REPLACE)}stencilModeForClipping(w){let q=this.context.gl;return new Na({func:q.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,q.KEEP,q.KEEP,q.REPLACE)}stencilConfigForOverlap(w){let q=this.context.gl,Q=w.sort((Ue,at)=>at.overscaledZ-Ue.overscaledZ),ee=Q[Q.length-1].overscaledZ,fe=Q[0].overscaledZ-ee+1;if(fe>1){this.currentStencilSource=void 0,this.nextStencilID+fe>256&&this.clearStencil();let Ue={};for(let at=0;at({u_sky_color:Ge.properties.get("sky-color"),u_horizon_color:Ge.properties.get("horizon-color"),u_horizon:(ft.height/2+ft.getHorizon())*ot,u_sky_horizon_blend:Ge.properties.get("sky-horizon-blend")*ft.height/2*ot}))(Dt,yt.style.map.transform,yt.pixelRatio),Ur=new sa(rr.LEQUAL,sa.ReadWrite,[0,1]),he=Na.disabled,Ae=yt.colorModeForRenderPass(),qe=yt.useProgram("sky");if(!Dt.mesh){let Ge=new a.aX;Ge.emplaceBack(-1,-1),Ge.emplaceBack(1,-1),Ge.emplaceBack(1,1),Ge.emplaceBack(-1,1);let ft=new a.aY;ft.emplaceBack(0,1,2),ft.emplaceBack(0,2,3),Dt.mesh=new Ma(Qt.createVertexBuffer(Ge,xi.members),Qt.createIndexBuffer(ft),a.a0.simpleSegment(0,0,Ge.length,ft.length))}qe.draw(Qt,rr.TRIANGLES,Ur,he,Ae,en.disabled,Mr,void 0,"sky",Dt.mesh.vertexBuffer,Dt.mesh.indexBuffer,Dt.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=q.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let yt=this.style._layers[Q[this.currentLayer]],Dt=ee[yt.source],Qt=fe[yt.source];this._renderTileClippingMasks(yt,Qt),this.renderLayer(this,Dt,yt,Qt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerqe.source&&!qe.isHidden(Qt)?[Dt.sourceCaches[qe.source]]:[]),Ur=Mr.filter(qe=>qe.getSource().type==="vector"),he=Mr.filter(qe=>qe.getSource().type!=="vector"),Ae=qe=>{(!rr||rr.getSource().maxzoomAe(qe)),rr||he.forEach(qe=>Ae(qe)),rr}(this.style,this.transform.zoom);yt&&function(Dt,Qt,rr){for(let Mr=0;Mr0),ee&&(a.b0(q,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(fe,Ue){let at=fe.context,yt=at.gl,Dt=lo.unblended,Qt=new sa(yt.LEQUAL,sa.ReadWrite,[0,1]),rr=Ue.getTerrainMesh(),Mr=Ue.sourceCache.getRenderableTiles(),Ur=fe.useProgram("terrainDepth");at.bindFramebuffer.set(Ue.getFramebuffer("depth").framebuffer),at.viewport.set([0,0,fe.width/devicePixelRatio,fe.height/devicePixelRatio]),at.clear({color:a.aM.transparent,depth:1});for(let he of Mr){let Ae=Ue.getTerrainData(he.tileID),qe={u_matrix:fe.transform.calculatePosMatrix(he.tileID.toUnwrapped()),u_ele_delta:Ue.getMeshFrameDelta(fe.transform.zoom)};Ur.draw(at,yt.TRIANGLES,Qt,Na.disabled,Dt,en.backCCW,qe,Ae,"terrain",rr.vertexBuffer,rr.indexBuffer,rr.segments)}at.bindFramebuffer.set(null),at.viewport.set([0,0,fe.width,fe.height])}(this,this.style.map.terrain),function(fe,Ue){let at=fe.context,yt=at.gl,Dt=lo.unblended,Qt=new sa(yt.LEQUAL,sa.ReadWrite,[0,1]),rr=Ue.getTerrainMesh(),Mr=Ue.getCoordsTexture(),Ur=Ue.sourceCache.getRenderableTiles(),he=fe.useProgram("terrainCoords");at.bindFramebuffer.set(Ue.getFramebuffer("coords").framebuffer),at.viewport.set([0,0,fe.width/devicePixelRatio,fe.height/devicePixelRatio]),at.clear({color:a.aM.transparent,depth:1}),Ue.coordsIndex=[];for(let Ae of Ur){let qe=Ue.getTerrainData(Ae.tileID);at.activeTexture.set(yt.TEXTURE0),yt.bindTexture(yt.TEXTURE_2D,Mr.texture);let Ge={u_matrix:fe.transform.calculatePosMatrix(Ae.tileID.toUnwrapped()),u_terrain_coords_id:(255-Ue.coordsIndex.length)/255,u_texture:0,u_ele_delta:Ue.getMeshFrameDelta(fe.transform.zoom)};he.draw(at,yt.TRIANGLES,Qt,Na.disabled,Dt,en.backCCW,Ge,qe,"terrain",rr.vertexBuffer,rr.indexBuffer,rr.segments),Ue.coordsIndex.push(Ae.tileID.key)}at.bindFramebuffer.set(null),at.viewport.set([0,0,fe.width,fe.height])}(this,this.style.map.terrain))}renderLayer(w,q,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(fe,Ue,at,yt,Dt){if(fe.renderPass!=="translucent")return;let Qt=Na.disabled,rr=fe.colorModeForRenderPass();(at._unevaluatedLayout.hasValue("text-variable-anchor")||at._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(Mr,Ur,he,Ae,qe,Ge,ft,ot,mt){let Gt=Ur.transform,er=Vi(),sr=qe==="map",wr=Ge==="map";for(let Ir of Mr){let ri=Ae.getTile(Ir),si=ri.getBucket(he);if(!si||!si.text||!si.text.segments.get().length)continue;let Mi=a.ag(si.textSizeData,Gt.zoom),cn=Bi(ri,1,Ur.transform.zoom),Zn=vr(Ir.posMatrix,wr,sr,Ur.transform,cn),Yn=he.layout.get("icon-text-fit")!=="none"&&si.hasIconData();if(Mi){let Ua=Math.pow(2,Gt.zoom-ri.tileID.overscaledZ),Fo=Ur.style.map.terrain?(Us,ml)=>Ur.style.map.terrain.getElevation(Ir,Us,ml):null,vl=er.translatePosition(Gt,ri,ft,ot);Rn(si,sr,wr,mt,Gt,Zn,Ir.posMatrix,Ua,Mi,Yn,er,vl,Ir.toUnwrapped(),Fo)}}}(yt,fe,at,Ue,at.layout.get("text-rotation-alignment"),at.layout.get("text-pitch-alignment"),at.paint.get("text-translate"),at.paint.get("text-translate-anchor"),Dt),at.paint.get("icon-opacity").constantOr(1)!==0&&Ws(fe,Ue,at,yt,!1,at.paint.get("icon-translate"),at.paint.get("icon-translate-anchor"),at.layout.get("icon-rotation-alignment"),at.layout.get("icon-pitch-alignment"),at.layout.get("icon-keep-upright"),Qt,rr),at.paint.get("text-opacity").constantOr(1)!==0&&Ws(fe,Ue,at,yt,!0,at.paint.get("text-translate"),at.paint.get("text-translate-anchor"),at.layout.get("text-rotation-alignment"),at.layout.get("text-pitch-alignment"),at.layout.get("text-keep-upright"),Qt,rr),Ue.map.showCollisionBoxes&&(to(fe,Ue,at,yt,!0),to(fe,Ue,at,yt,!1))})(w,q,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(fe,Ue,at,yt){if(fe.renderPass!=="translucent")return;let Dt=at.paint.get("circle-opacity"),Qt=at.paint.get("circle-stroke-width"),rr=at.paint.get("circle-stroke-opacity"),Mr=!at.layout.get("circle-sort-key").isConstant();if(Dt.constantOr(1)===0&&(Qt.constantOr(1)===0||rr.constantOr(1)===0))return;let Ur=fe.context,he=Ur.gl,Ae=fe.depthModeForSublayer(0,sa.ReadOnly),qe=Na.disabled,Ge=fe.colorModeForRenderPass(),ft=[];for(let ot=0;otot.sortKey-mt.sortKey);for(let ot of ft){let{programConfiguration:mt,program:Gt,layoutVertexBuffer:er,indexBuffer:sr,uniformValues:wr,terrainData:Ir}=ot.state;Gt.draw(Ur,he.TRIANGLES,Ae,qe,Ge,en.disabled,wr,Ir,at.id,er,sr,ot.segments,at.paint,fe.transform.zoom,mt)}})(w,q,Q,ee);break;case"heatmap":(function(fe,Ue,at,yt){if(at.paint.get("heatmap-opacity")===0)return;let Dt=fe.context;if(fe.style.map.terrain){for(let Qt of yt){let rr=Ue.getTile(Qt);Ue.hasRenderableParent(Qt)||(fe.renderPass==="offscreen"?Es(fe,rr,at,Qt):fe.renderPass==="translucent"&&Ts(fe,at,Qt))}Dt.viewport.set([0,0,fe.width,fe.height])}else fe.renderPass==="offscreen"?function(Qt,rr,Mr,Ur){let he=Qt.context,Ae=he.gl,qe=Na.disabled,Ge=new lo([Ae.ONE,Ae.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(ft,ot,mt){let Gt=ft.gl;ft.activeTexture.set(Gt.TEXTURE1),ft.viewport.set([0,0,ot.width/4,ot.height/4]);let er=mt.heatmapFbos.get(a.aU);er?(Gt.bindTexture(Gt.TEXTURE_2D,er.colorAttachment.get()),ft.bindFramebuffer.set(er.framebuffer)):(er=Ho(ft,ot.width/4,ot.height/4),mt.heatmapFbos.set(a.aU,er))})(he,Qt,Mr),he.clear({color:a.aM.transparent});for(let ft=0;ft20&&Qt.texParameterf(Qt.TEXTURE_2D,Dt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Dt.extTextureFilterAnisotropicMax);let si=fe.style.map.terrain&&fe.style.map.terrain.getTerrainData(ft),Mi=si?ft:null,cn=Mi?Mi.posMatrix:fe.transform.calculatePosMatrix(ft.toUnwrapped(),Ge),Zn=ls(cn,Ir||[0,0],wr||1,sr,at);rr instanceof zt?Mr.draw(Dt,Qt.TRIANGLES,ot,Na.disabled,Ur,en.disabled,Zn,si,at.id,rr.boundsBuffer,fe.quadTriangleIndexBuffer,rr.boundsSegments):Mr.draw(Dt,Qt.TRIANGLES,ot,he[ft.overscaledZ],Ur,en.disabled,Zn,si,at.id,fe.rasterBoundsBuffer,fe.quadTriangleIndexBuffer,fe.rasterBoundsSegments)}})(w,q,Q,ee);break;case"background":(function(fe,Ue,at,yt){let Dt=at.paint.get("background-color"),Qt=at.paint.get("background-opacity");if(Qt===0)return;let rr=fe.context,Mr=rr.gl,Ur=fe.transform,he=Ur.tileSize,Ae=at.paint.get("background-pattern");if(fe.isPatternMissing(Ae))return;let qe=!Ae&&Dt.a===1&&Qt===1&&fe.opaquePassEnabledForLayer()?"opaque":"translucent";if(fe.renderPass!==qe)return;let Ge=Na.disabled,ft=fe.depthModeForSublayer(0,qe==="opaque"?sa.ReadWrite:sa.ReadOnly),ot=fe.colorModeForRenderPass(),mt=fe.useProgram(Ae?"backgroundPattern":"background"),Gt=yt||Ur.coveringTiles({tileSize:he,terrain:fe.style.map.terrain});Ae&&(rr.activeTexture.set(Mr.TEXTURE0),fe.imageManager.bind(fe.context));let er=at.getCrossfadeParameters();for(let sr of Gt){let wr=yt?sr.posMatrix:fe.transform.calculatePosMatrix(sr.toUnwrapped()),Ir=Ae?ws(wr,Qt,fe,Ae,{tileID:sr,tileSize:he},er):wa(wr,Qt,Dt),ri=fe.style.map.terrain&&fe.style.map.terrain.getTerrainData(sr);mt.draw(rr,Mr.TRIANGLES,ft,Ge,ot,en.disabled,Ir,ri,at.id,fe.tileExtentBuffer,fe.quadTriangleIndexBuffer,fe.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(fe,Ue,at){let yt=fe.context,Dt=at.implementation;if(fe.renderPass==="offscreen"){let Qt=Dt.prerender;Qt&&(fe.setCustomLayerDefaults(),yt.setColorMode(fe.colorModeForRenderPass()),Qt.call(Dt,yt.gl,fe.transform.customLayerMatrix()),yt.setDirty(),fe.setBaseState())}else if(fe.renderPass==="translucent"){fe.setCustomLayerDefaults(),yt.setColorMode(fe.colorModeForRenderPass()),yt.setStencilMode(Na.disabled);let Qt=Dt.renderingMode==="3d"?new sa(fe.context.gl.LEQUAL,sa.ReadWrite,fe.depthRangeFor3D):fe.depthModeForSublayer(0,sa.ReadOnly);yt.setDepthMode(Qt),Dt.render(yt.gl,fe.transform.customLayerMatrix(),{farZ:fe.transform.farZ,nearZ:fe.transform.nearZ,fov:fe.transform._fov,modelViewProjectionMatrix:fe.transform.modelViewProjectionMatrix,projectionMatrix:fe.transform.projectionMatrix}),yt.setDirty(),fe.setBaseState(),yt.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,q,Q,ee,fe){if(!Q[0]&&!Q[1])return w;let Ue=fe?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Ue){let Dt=Math.sin(Ue),Qt=Math.cos(Ue);Q=[Q[0]*Qt-Q[1]*Dt,Q[0]*Dt+Q[1]*Qt]}let at=[fe?Q[0]:Bi(q,Q[0],this.transform.zoom),fe?Q[1]:Bi(q,Q[1],this.transform.zoom),0],yt=new Float32Array(16);return a.J(yt,w,at),yt}saveTileTexture(w){let q=this._tileTextures[w.size[0]];q?q.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let q=this._tileTextures[w];return q&&q.length>0?q.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let q=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!q||!Q}useProgram(w,q){this.cache=this.cache||{};let Q=w+(q?q.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new Zr(this.context,Xr[w],q,Co[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new m(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:q}=this.context.gl;return this.width!==w||this.height!==q}}class ho{constructor(w,q){this.points=w,this.planes=q}static fromInvProjectionMatrix(w,q,Q){let ee=Math.pow(2,Q),fe=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(at=>{let yt=1/(at=a.af([],at,w))[3]/q*ee;return a.b1(at,at,[yt,yt,1/at[3],yt])}),Ue=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(at=>{let yt=function(Mr,Ur){var he=Ur[0],Ae=Ur[1],qe=Ur[2],Ge=he*he+Ae*Ae+qe*qe;return Ge>0&&(Ge=1/Math.sqrt(Ge)),Mr[0]=Ur[0]*Ge,Mr[1]=Ur[1]*Ge,Mr[2]=Ur[2]*Ge,Mr}([],function(Mr,Ur,he){var Ae=Ur[0],qe=Ur[1],Ge=Ur[2],ft=he[0],ot=he[1],mt=he[2];return Mr[0]=qe*mt-Ge*ot,Mr[1]=Ge*ft-Ae*mt,Mr[2]=Ae*ot-qe*ft,Mr}([],L([],fe[at[0]],fe[at[1]]),L([],fe[at[2]],fe[at[1]]))),Dt=-((Qt=yt)[0]*(rr=fe[at[1]])[0]+Qt[1]*rr[1]+Qt[2]*rr[2]);var Qt,rr;return yt.concat(Dt)});return new ho(fe,Ue)}}class gs{constructor(w,q){this.min=w,this.max=q,this.center=function(Q,ee,fe){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,fe){return Q[0]=ee[0]+fe[0],Q[1]=ee[1]+fe[1],Q[2]=ee[2]+fe[2],Q}([],this.min,this.max))}quadrant(w){let q=[w%2==0,w<2],Q=M(this.min),ee=M(this.max);for(let fe=0;fe=0&&Ue++;if(Ue===0)return 0;Ue!==q.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let fe=Number.MAX_VALUE,Ue=-Number.MAX_VALUE;for(let at=0;atthis.max[ee]-this.min[ee])return 0}return 1}}class Vo{constructor(w=0,q=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(q)||q<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=q,this.left=Q,this.right=ee}interpolate(w,q,Q){return q.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,q.top,Q)),q.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,q.bottom,Q)),q.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,q.left,Q)),q.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,q.right,Q)),this}getCenter(w,q){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+q-this.bottom)/2,0,q);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new Vo(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let Ro=85.051129;class Lo{constructor(w,q,Q,ee,fe){this.tileSize=512,this._renderWorldCopies=fe===void 0||!!fe,this._minZoom=w||0,this._maxZoom=q||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Vo,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new Lo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let q=-a.b3(w,-180,180)*Math.PI/180;this.angle!==q&&(this._unmodified=!1,this.angle=q,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,fe){var Ue=ee[0],at=ee[1],yt=ee[2],Dt=ee[3],Qt=Math.sin(fe),rr=Math.cos(fe);Q[0]=Ue*rr+yt*Qt,Q[1]=at*rr+Dt*Qt,Q[2]=Ue*-Qt+yt*rr,Q[3]=at*-Qt+Dt*rr}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let q=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==q&&(this._unmodified=!1,this._pitch=q,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let q=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==q&&(this._unmodified=!1,this._zoom=q,this.tileZoom=Math.max(0,Math.floor(q)),this.scale=this.zoomScale(q),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,q,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,q,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let q=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,q)}getVisibleUnwrappedCoordinates(w){let q=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),fe=this.pointCoordinate(new a.P(this.width,this.height)),Ue=this.pointCoordinate(new a.P(0,this.height)),at=Math.floor(Math.min(Q.x,ee.x,fe.x,Ue.x)),yt=Math.floor(Math.max(Q.x,ee.x,fe.x,Ue.x)),Dt=1;for(let Qt=at-Dt;Qt<=yt+Dt;Qt++)Qt!==0&&q.push(new a.b4(Qt,w))}return q}coveringTiles(w){var q,Q;let ee=this.coveringZoomLevel(w),fe=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Ue=this.pointCoordinate(this.getCameraPoint()),at=a.Z.fromLngLat(this.center),yt=Math.pow(2,ee),Dt=[yt*Ue.x,yt*Ue.y,0],Qt=[yt*at.x,yt*at.y,0],rr=ho.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),Mr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(Mr=ee);let Ur=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,he=ot=>({aabb:new gs([ot*yt,0,0],[(ot+1)*yt,yt,0]),zoom:0,x:0,y:0,wrap:ot,fullyVisible:!1}),Ae=[],qe=[],Ge=ee,ft=w.reparseOverscaled?fe:ee;if(this._renderWorldCopies)for(let ot=1;ot<=3;ot++)Ae.push(he(-ot)),Ae.push(he(ot));for(Ae.push(he(0));Ae.length>0;){let ot=Ae.pop(),mt=ot.x,Gt=ot.y,er=ot.fullyVisible;if(!er){let si=ot.aabb.intersects(rr);if(si===0)continue;er=si===2}let sr=w.terrain?Dt:Qt,wr=ot.aabb.distanceX(sr),Ir=ot.aabb.distanceY(sr),ri=Math.max(Math.abs(wr),Math.abs(Ir));if(ot.zoom===Ge||ri>Ur+(1<=Mr){let si=Ge-ot.zoom,Mi=Dt[0]-.5-(mt<>1),Zn=ot.zoom+1,Yn=ot.aabb.quadrant(si);if(w.terrain){let Ua=new a.S(Zn,ot.wrap,Zn,Mi,cn),Fo=w.terrain.getMinMaxElevation(Ua),vl=(q=Fo.minElevation)!==null&&q!==void 0?q:this.elevation,Us=(Q=Fo.maxElevation)!==null&&Q!==void 0?Q:this.elevation;Yn=new gs([Yn.min[0],Yn.min[1],vl],[Yn.max[0],Yn.max[1],Us])}Ae.push({aabb:Yn,zoom:Zn,x:Mi,y:cn,wrap:ot.wrap,fullyVisible:er})}}return qe.sort((ot,mt)=>ot.distanceSq-mt.distanceSq).map(ot=>ot.tileID)}resize(w,q){this.width=w,this.height=q,this.pixelsToGLUnits=[2/w,-2/q],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let q=a.ac(w.lat,-85.051129,Ro);return new a.P(a.O(w.lng)*this.worldSize,a.Q(q)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let q=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),fe=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-fe))return;let Ue=Q+q-fe,at=Math.cos(this._pitch)*this.cameraToCenterDistance/Ue/a.b5(1,ee.lat),yt=this.scaleZoom(at/this.tileSize);this._elevation=fe,this._center=ee,this.zoom=yt}setLocationAtPoint(w,q){let Q=this.pointCoordinate(q),ee=this.pointCoordinate(this.centerPoint),fe=this.locationCoordinate(w),Ue=new a.Z(fe.x-(Q.x-ee.x),fe.y-(Q.y-ee.y));this.center=this.coordinateLocation(Ue),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,q){return q?this.coordinatePoint(this.locationCoordinate(w),q.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,q){return this.coordinateLocation(this.pointCoordinate(w,q))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,q){if(q){let Mr=q.pointCoordinate(w);if(Mr!=null)return Mr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let fe=Q[3],Ue=ee[3],at=Q[1]/fe,yt=ee[1]/Ue,Dt=Q[2]/fe,Qt=ee[2]/Ue,rr=Dt===Qt?0:(0-Dt)/(Qt-Dt);return new a.Z(a.y.number(Q[0]/fe,ee[0]/Ue,rr)/this.worldSize,a.y.number(at,yt,rr)/this.worldSize)}coordinatePoint(w,q=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,q,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,Ro])}calculateTileMatrix(w){let q=w.canonical,Q=this.worldSize/this.zoomScale(q.z),ee=q.x+Math.pow(2,q.z)*w.wrap,fe=a.an(new Float64Array(16));return a.J(fe,fe,[ee*Q,q.y*Q,0]),a.K(fe,fe,[Q/a.X,Q/a.X,1]),fe}calculatePosMatrix(w,q=!1){let Q=w.key,ee=q?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let fe=this.calculateTileMatrix(w);return a.L(fe,q?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,fe),ee[Q]=new Float32Array(fe),ee[Q]}calculateFogMatrix(w){let q=w.key,Q=this._fogMatrixCache;if(Q[q])return Q[q];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[q]=new Float32Array(ee),Q[q]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,q){q=a.ac(+q,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:q},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let ot=179.9999999999;ee=[-ot,ot]}let fe=this.tileSize*this.zoomScale(Q.zoom),Ue=0,at=fe,yt=0,Dt=fe,Qt=0,rr=0,{x:Mr,y:Ur}=this.size;if(this.latRange){let ot=this.latRange;Ue=a.Q(ot[1])*fe,at=a.Q(ot[0])*fe,at-Ueat&&(Ge=at-ot)}if(ee){let ot=(yt+Dt)/2,mt=he;this._renderWorldCopies&&(mt=a.b3(he,ot-fe/2,ot+fe/2));let Gt=Mr/2;mt-GtDt&&(qe=Dt-Gt)}if(qe!==void 0||Ge!==void 0){let ot=new a.P(qe!=null?qe:he,Ge!=null?Ge:Ae);Q.center=this.unproject.call({worldSize:fe},ot).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:q,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=q,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,q=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let fe=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ue=Math.min(this.elevation,this.minElevationForCurrentTile),at=fe-Ue*this._pixelPerMeter/Math.cos(this._pitch),yt=Ue<0?at:fe,Dt=Math.PI/2+this._pitch,Qt=this._fov*(.5+w.y/this.height),rr=Math.sin(Qt)*yt/Math.sin(a.ac(Math.PI-Dt-Qt,.01,Math.PI-.01)),Mr=this.getHorizon(),Ur=2*Math.atan(Mr/this.cameraToCenterDistance)*(.5+w.y/(2*Mr)),he=Math.sin(Ur)*yt/Math.sin(a.ac(Math.PI-Dt-Ur,.01,Math.PI-.01)),Ae=Math.min(rr,he);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Ae+yt),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-q,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,fe,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-q,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let qe=this.width%2/2,Ge=this.height%2/2,ft=Math.cos(this.angle),ot=Math.sin(this.angle),mt=q-Math.round(q)+ft*qe+ot*Ge,Gt=Q-Math.round(Q)+ft*Ge+ot*qe,er=new Float64Array(ee);if(a.J(er,er,[mt>.5?mt-1:mt,Gt>.5?Gt-1:Gt,0]),this.alignedModelViewProjectionMatrix=er,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),q=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(q,q,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let q=this.getCameraPoint();if(w.length===1)return[w[0],q];{let Q=q.x,ee=q.y,fe=q.x,Ue=q.y;for(let at of w)Q=Math.min(Q,at.x),ee=Math.min(ee,at.y),fe=Math.max(fe,at.x),Ue=Math.max(Ue,at.y);return[new a.P(Q,ee),new a.P(fe,ee),new a.P(fe,Ue),new a.P(Q,Ue),new a.P(Q,ee)]}}lngLatToCameraDepth(w,q){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,q,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function xs(ue,w){let q,Q=!1,ee=null,fe=null,Ue=()=>{ee=null,Q&&(ue.apply(fe,q),ee=setTimeout(Ue,w),Q=!1)};return(...at)=>(Q=!0,fe=this,q=at,ee||Ue(),ee)}class ks{constructor(w){this._getCurrentHash=()=>{let q=window.location.hash.replace("#","");if(this._hashName){let Q;return q.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return q.split("/")},this._onHashChange=()=>{let q=this._getCurrentHash();if(q.length>=3&&!q.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(q[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+q[2],+q[1]],zoom:+q[0],bearing:Q,pitch:+(q[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let q=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,q)},this._removeHash=()=>{let q=this._getCurrentHash();if(q.length===0)return;let Q=q.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let fe=window.location.hash.replace(ee,"");fe.startsWith("#&")?fe=fe.slice(0,1)+fe.slice(2):fe==="#"&&(fe="");let Ue=window.location.href.replace(/(#.+)?$/,fe);Ue=Ue.replace("&&","&"),window.history.replaceState(window.history.state,null,Ue)},this._updateHash=xs(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let q=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),fe=Math.pow(10,ee),Ue=Math.round(q.lng*fe)/fe,at=Math.round(q.lat*fe)/fe,yt=this._map.getBearing(),Dt=this._map.getPitch(),Qt="";if(Qt+=w?`/${Ue}/${at}/${Q}`:`${Q}/${at}/${Ue}`,(yt||Dt)&&(Qt+="/"+Math.round(10*yt)/10),Dt&&(Qt+=`/${Math.round(Dt)}`),this._hashName){let rr=this._hashName,Mr=!1,Ur=window.location.hash.slice(1).split("&").map(he=>{let Ae=he.split("=")[0];return Ae===rr?(Mr=!0,`${Ae}=${Qt}`):he}).filter(he=>he);return Mr||Ur.push(`${rr}=${Qt}`),`#${Ur.join("&")}`}return`#${Qt}`}}let Ea={linearity:.3,easing:a.b8(0,0,.3,1)},Jn=a.e({deceleration:2500,maxSpeed:1400},Ea),Bo=a.e({deceleration:20,maxSpeed:1400},Ea),rl=a.e({deceleration:1e3,maxSpeed:360},Ea),Gs=a.e({deceleration:1e3,maxSpeed:90},Ea);class bs{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:l.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,q=l.now();for(;w.length>0&&q-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let q={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:fe}of this._inertiaBuffer)q.zoom+=fe.zoomDelta||0,q.bearing+=fe.bearingDelta||0,q.pitch+=fe.pitchDelta||0,fe.panDelta&&q.pan._add(fe.panDelta),fe.around&&(q.around=fe.around),fe.pinchAround&&(q.pinchAround=fe.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(q.pan.mag()){let fe=$o(q.pan.mag(),Q,a.e({},Jn,w||{}));ee.offset=q.pan.mult(fe.amount/q.pan.mag()),ee.center=this._map.transform.center,zs(ee,fe)}if(q.zoom){let fe=$o(q.zoom,Q,Bo);ee.zoom=this._map.transform.zoom+fe.amount,zs(ee,fe)}if(q.bearing){let fe=$o(q.bearing,Q,rl);ee.bearing=this._map.transform.bearing+a.ac(fe.amount,-179,179),zs(ee,fe)}if(q.pitch){let fe=$o(q.pitch,Q,Gs);ee.pitch=this._map.transform.pitch+fe.amount,zs(ee,fe)}if(ee.zoom||ee.bearing){let fe=q.pinchAround===void 0?q.around:q.pinchAround;ee.around=fe?this._map.unproject(fe):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function zs(ue,w){(!ue.duration||ue.durationq.unproject(yt)),at=fe.reduce((yt,Dt,Qt,rr)=>yt.add(Dt.div(rr.length)),new a.P(0,0));super(w,{points:fe,point:at,lngLats:Ue,lngLat:q.unproject(at),originalEvent:Q}),this._defaultPrevented=!1}}class _l extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,q,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Ss{constructor(w,q){this._map=w,this._clickTolerance=q.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new _l(w.type,this._map,w))}mousedown(w,q){return this._mousedownPos=q,this._firePreventable(new Aa(w.type,this._map,w))}mouseup(w){this._map.fire(new Aa(w.type,this._map,w))}click(w,q){this._mousedownPos&&this._mousedownPos.dist(q)>=this._clickTolerance||this._map.fire(new Aa(w.type,this._map,w))}dblclick(w){return this._firePreventable(new Aa(w.type,this._map,w))}mouseover(w){this._map.fire(new Aa(w.type,this._map,w))}mouseout(w){this._map.fire(new Aa(w.type,this._map,w))}touchstart(w){return this._firePreventable(new os(w.type,this._map,w))}touchmove(w){this._map.fire(new os(w.type,this._map,w))}touchend(w){this._map.fire(new os(w.type,this._map,w))}touchcancel(w){this._map.fire(new os(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class po{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new Aa(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Aa("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new Aa(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class go{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class ss{constructor(w,q){this._map=w,this._tr=new go(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=q.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,q){this.isEnabled()&&w.shiftKey&&w.button===0&&(f.disableDrag(),this._startPos=this._lastPos=q,this._active=!0)}mousemoveWindow(w,q){if(!this._active)return;let Q=q;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)fe.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(f.remove(this._box),this._box=null),f.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,q){return this._map.fire(new a.k(w,{originalEvent:q}))}}function qo(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let q={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let fe=new a.P(0,0);for(let Ue of ee)fe._add(Ue);return fe.div(ee.length)}(q),this.touches=qo(Q,q)))}touchmove(w,q,Q){if(this.aborted||!this.centroid)return;let ee=qo(Q,q);for(let fe in this.touches){let Ue=ee[fe];(!Ue||Ue.dist(this.touches[fe])>30)&&(this.aborted=!0)}}touchend(w,q,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class io{constructor(w){this.singleTap=new zo(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,q,Q){this.singleTap.touchstart(w,q,Q)}touchmove(w,q,Q){this.singleTap.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this.singleTap.touchend(w,q,Q);if(ee){let fe=w.timeStamp-this.lastTime<500,Ue=!this.lastTap||this.lastTap.dist(ee)<30;if(fe&&Ue||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class Io{constructor(w){this._tr=new go(w),this._zoomIn=new io({numTouches:1,numTaps:2}),this._zoomOut=new io({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,q,Q){this._zoomIn.touchstart(w,q,Q),this._zoomOut.touchstart(w,q,Q)}touchmove(w,q,Q){this._zoomIn.touchmove(w,q,Q),this._zoomOut.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this._zoomIn.touchend(w,q,Q),fe=this._zoomOut.touchend(w,q,Q),Ue=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:at=>at.easeTo({duration:300,zoom:Ue.zoom+1,around:Ue.unproject(ee)},{originalEvent:w})}):fe?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:at=>at.easeTo({duration:300,zoom:Ue.zoom-1,around:Ue.unproject(fe)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ra{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let q=this._moveFunction(...w);if(q.bearingDelta||q.pitchDelta||q.around||q.panDelta)return this._active=!0,q}dragStart(w,q){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=q.length?q[0]:q,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,q){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=q.length?q[0]:q;return!this._moved&&ee.dist(Q){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Hs=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:q=.8})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Ra({clickTolerance:w,move:(ee,fe)=>({bearingDelta:(fe.x-ee.x)*q}),moveStateManager:Q,enable:ue,assignEvents:el})},Do=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:q=-.5})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Ra({clickTolerance:w,move:(ee,fe)=>({pitchDelta:(fe.y-ee.y)*q}),moveStateManager:Q,enable:ue,assignEvents:el})};class tl{constructor(w,q){this._clickTolerance=w.clickTolerance||1,this._map=q,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,q,Q){return this._calculateTransform(w,q,Q)}touchmove(w,q,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,q,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,q,Q){this._calculateTransform(w,q,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,q,Q){Q.length>0&&(this._active=!0);let ee=qo(Q,q),fe=new a.P(0,0),Ue=new a.P(0,0),at=0;for(let Dt in ee){let Qt=ee[Dt],rr=this._touches[Dt];rr&&(fe._add(Qt),Ue._add(Qt.sub(rr)),at++,ee[Dt]=Qt)}if(this._touches=ee,this._shouldBePrevented(at)||!Ue.mag())return;let yt=Ue.div(at);return this._sum._add(yt),this._sum.mag()Math.abs(ue.x)}class Os extends Fs{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,q,Q){super.touchstart(w,q,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,Is(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,q,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),fe=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,fe,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+fe.y)/2*-.5}):void 0}gestureBeginsVertically(w,q,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,fe=q.mag()>=2;if(!ee&&!fe)return;if(!ee||!fe)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let Ue=w.y>0==q.y>0;return Is(w)&&Is(q)&&Ue}}let St={panStep:100,bearingStep:15,pitchStep:10};class Ut{constructor(w){this._tr=new go(w);let q=St;this._panStep=q.panStep,this._bearingStep=q.bearingStep,this._pitchStep=q.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let q=0,Q=0,ee=0,fe=0,Ue=0;switch(w.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),fe=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),fe=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),Ue=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Ue=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:at=>{let yt=this._tr;at.easeTo({duration:300,easeId:"keyboardHandler",easing:xr,zoom:q?Math.round(yt.zoom)+q*(w.shiftKey?2:1):yt.zoom,bearing:yt.bearing+Q*this._bearingStep,pitch:yt.pitch+ee*this._pitchStep,offset:[-fe*this._panStep,-Ue*this._panStep],center:yt.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function xr(ue){return ue*(2-ue)}let dr=4.000244140625;class Rr{constructor(w,q){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new go(w),this._triggerRenderFrame=q,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let q=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=l.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,q!==0&&q%dr==0?this._type="wheel":q!==0&&Math.abs(q)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=q,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*q)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,q+=this._lastValue)),w.shiftKey&&q&&(q/=4),this._type&&(this._lastWheelEvent=w,this._delta-=q,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let q=f.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=q.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(q)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let yt=this._type==="wheel"&&Math.abs(this._delta)>dr?this._wheelZoomRate:this._defaultZoomRate,Dt=2/(1+Math.exp(-Math.abs(this._delta*yt)));this._delta<0&&Dt!==0&&(Dt=1/Dt);let Qt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Qt*Dt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let q=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,fe,Ue=!1,at=l.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&at){let yt=Math.min(at/200,1),Dt=ee(yt);fe=a.y.number(Q,q,Dt),yt<1?this._frameId||(this._frameId=!0):Ue=!0}else fe=q,Ue=!0;return this._active=!0,Ue&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ue,zoomDelta:fe-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let q=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(l.now()-Q.start)/Q.duration,fe=Q.easing(ee+.01)-Q.easing(ee),Ue=.27/Math.sqrt(fe*fe+1e-4)*.01,at=Math.sqrt(.0729-Ue*Ue);q=a.b8(Ue,at,.25,1)}return this._prevEase={start:l.now(),duration:w,easing:q},q}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class yi{constructor(w,q){this._clickZoom=w,this._tapZoom=q}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Ti{constructor(w){this._tr=new go(w),this.reset()}reset(){this._active=!1}dblclick(w,q){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(q)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ki{constructor(){this._tap=new io({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,q,Q){if(!this._swipePoint)if(this._tapTime){let ee=q[0],fe=w.timeStamp-this._tapTime<500,Ue=this._tapPoint.dist(ee)<30;fe&&Ue?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,q,Q)}touchmove(w,q,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=q[0],fe=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:fe/128}}}else this._tap.touchmove(w,q,Q)}touchend(w,q,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,q,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ki{constructor(w,q,Q){this._el=w,this._mousePan=q,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Fn{constructor(w,q,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=q,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Li{constructor(w,q,Q,ee){this._el=w,this._touchZoom=q,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class hi{constructor(w,q){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=q,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=f.create("div","maplibregl-cooperative-gesture-screen",w);let q=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(q=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=q,this._container.appendChild(ee);let fe=document.createElement("div");fe.className="maplibregl-mobile-message",fe.textContent=Q,this._container.appendChild(fe),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(f.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,q){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:q})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let Ci=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Si extends a.k{}function Gn(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class ta{constructor(w,q){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,fe)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Ue=ee.type==="renderFrame"?void 0:ee,at={needsRenderFrame:!1},yt={},Dt={},Qt=ee.touches,rr=Qt?this._getMapTouches(Qt):void 0,Mr=rr?f.touchPos(this._map.getCanvas(),rr):f.mousePos(this._map.getCanvas(),ee);for(let{handlerName:Ae,handler:qe,allowed:Ge}of this._handlers){if(!qe.isEnabled())continue;let ft;this._blockedByActive(Dt,Ge,Ae)?qe.reset():qe[fe||ee.type]&&(ft=qe[fe||ee.type](ee,Mr,rr),this.mergeHandlerResult(at,yt,ft,Ae,Ue),ft&&ft.needsRenderFrame&&this._triggerRenderFrame()),(ft||qe.isActive())&&(Dt[Ae]=qe)}let Ur={};for(let Ae in this._previousActiveHandlers)Dt[Ae]||(Ur[Ae]=Ue);this._previousActiveHandlers=Dt,(Object.keys(Ur).length||Gn(at))&&(this._changes.push([at,yt,Ur]),this._triggerRenderFrame()),(Object.keys(Dt).length||Gn(at))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:he}=at;he&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],he(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new bs(w),this._bearingSnap=q.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(q);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,fe,Ue]of this._listeners)f.addEventListener(ee,fe,ee===document?this.handleWindowEvent:this.handleEvent,Ue)}destroy(){for(let[w,q,Q]of this._listeners)f.removeEventListener(w,q,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let q=this._map,Q=q.getCanvasContainer();this._add("mapEvent",new Ss(q,w));let ee=q.boxZoom=new ss(q,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let fe=q.cooperativeGestures=new hi(q,w.cooperativeGestures);this._add("cooperativeGestures",fe),w.cooperativeGestures&&fe.enable();let Ue=new Io(q),at=new Ti(q);q.doubleClickZoom=new yi(at,Ue),this._add("tapZoom",Ue),this._add("clickZoom",at),w.interactive&&w.doubleClickZoom&&q.doubleClickZoom.enable();let yt=new ki;this._add("tapDragZoom",yt);let Dt=q.touchPitch=new Os(q);this._add("touchPitch",Dt),w.interactive&&w.touchPitch&&q.touchPitch.enable(w.touchPitch);let Qt=Hs(w),rr=Do(w);q.dragRotate=new Fn(w,Qt,rr),this._add("mouseRotate",Qt,["mousePitch"]),this._add("mousePitch",rr,["mouseRotate"]),w.interactive&&w.dragRotate&&q.dragRotate.enable();let Mr=(({enable:ft,clickTolerance:ot})=>{let mt=new fs({checkCorrectEvent:Gt=>f.mouseButton(Gt)===0&&!Gt.ctrlKey});return new Ra({clickTolerance:ot,move:(Gt,er)=>({around:er,panDelta:er.sub(Gt)}),activateOnStart:!0,moveStateManager:mt,enable:ft,assignEvents:el})})(w),Ur=new tl(w,q);q.dragPan=new Ki(Q,Mr,Ur),this._add("mousePan",Mr),this._add("touchPan",Ur,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&q.dragPan.enable(w.dragPan);let he=new Ds,Ae=new Ms;q.touchZoomRotate=new Li(Q,Ae,he,yt),this._add("touchRotate",he,["touchPan","touchZoom"]),this._add("touchZoom",Ae,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&q.touchZoomRotate.enable(w.touchZoomRotate);let qe=q.scrollZoom=new Rr(q,()=>this._triggerRenderFrame());this._add("scrollZoom",qe,["mousePan"]),w.interactive&&w.scrollZoom&&q.scrollZoom.enable(w.scrollZoom);let Ge=q.keyboard=new Ut(q);this._add("keyboard",Ge),w.interactive&&w.keyboard&&q.keyboard.enable(),this._add("blockableMapEvent",new po(q))}_add(w,q,Q){this._handlers.push({handlerName:w,handler:q,allowed:Q}),this._handlersById[w]=q}stop(w){if(!this._updatingCamera){for(let{handler:q}of this._handlers)q.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Ci(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,q,Q){for(let ee in w)if(ee!==Q&&(!q||q.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let q=[];for(let Q of w)this._el.contains(Q.target)&&q.push(Q);return q}mergeHandlerResult(w,q,Q,ee,fe){if(!Q)return;a.e(w,Q);let Ue={handlerName:ee,originalEvent:Q.originalEvent||fe};Q.zoomDelta!==void 0&&(q.zoom=Ue),Q.panDelta!==void 0&&(q.drag=Ue),Q.pitchDelta!==void 0&&(q.pitch=Ue),Q.bearingDelta!==void 0&&(q.rotate=Ue)}_applyChanges(){let w={},q={},Q={};for(let[ee,fe,Ue]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(q,fe),a.e(Q,Ue);this._updateMapTransform(w,q,Q),this._changes=[]}_updateMapTransform(w,q,Q){let ee=this._map,fe=ee._getTransformForUpdate(),Ue=ee.terrain;if(!(Gn(w)||Ue&&this._terrainMovement))return this._fireEvents(q,Q,!0);let{panDelta:at,zoomDelta:yt,bearingDelta:Dt,pitchDelta:Qt,around:rr,pinchAround:Mr}=w;Mr!==void 0&&(rr=Mr),ee._stop(!0),rr=rr||ee.transform.centerPoint;let Ur=fe.pointLocation(at?rr.sub(at):rr);Dt&&(fe.bearing+=Dt),Qt&&(fe.pitch+=Qt),yt&&(fe.zoom+=yt),Ue?this._terrainMovement||!q.drag&&!q.zoom?q.drag&&this._terrainMovement?fe.center=fe.pointLocation(fe.centerPoint.sub(at)):fe.setLocationAtPoint(Ur,rr):(this._terrainMovement=!0,this._map._elevationFreeze=!0,fe.setLocationAtPoint(Ur,rr)):fe.setLocationAtPoint(Ur,rr),ee._applyUpdatedTransform(fe),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(q,Q,!0)}_fireEvents(w,q,Q){let ee=Ci(this._eventsInProgress),fe=Ci(w),Ue={};for(let rr in w){let{originalEvent:Mr}=w[rr];this._eventsInProgress[rr]||(Ue[`${rr}start`]=Mr),this._eventsInProgress[rr]=w[rr]}!ee&&fe&&this._fireEvent("movestart",fe.originalEvent);for(let rr in Ue)this._fireEvent(rr,Ue[rr]);fe&&this._fireEvent("move",fe.originalEvent);for(let rr in w){let{originalEvent:Mr}=w[rr];this._fireEvent(rr,Mr)}let at={},yt;for(let rr in this._eventsInProgress){let{handlerName:Mr,originalEvent:Ur}=this._eventsInProgress[rr];this._handlersById[Mr].isActive()||(delete this._eventsInProgress[rr],yt=q[Mr]||Ur,at[`${rr}end`]=yt)}for(let rr in at)this._fireEvent(rr,at[rr]);let Dt=Ci(this._eventsInProgress),Qt=(ee||fe)&&!Dt;if(Qt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let rr=this._map._getTransformForUpdate();rr.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(rr)}if(Q&&Qt){this._updatingCamera=!0;let rr=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),Mr=Ur=>Ur!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Si("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class ya extends a.E{constructor(w,q){super(),this._renderFrameCallback=()=>{let Q=Math.min((l.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=q.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,q){return this.jumpTo({center:w},q)}panBy(w,q,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},q),Q)}panTo(w,q,Q){return this.easeTo(a.e({center:w},q),Q)}getZoom(){return this.transform.zoom}setZoom(w,q){return this.jumpTo({zoom:w},q),this}zoomTo(w,q,Q){return this.easeTo(a.e({zoom:w},q),Q)}zoomIn(w,q){return this.zoomTo(this.getZoom()+1,w,q),this}zoomOut(w,q){return this.zoomTo(this.getZoom()-1,w,q),this}getBearing(){return this.transform.bearing}setBearing(w,q){return this.jumpTo({bearing:w},q),this}getPadding(){return this.transform.padding}setPadding(w,q){return this.jumpTo({padding:w},q),this}rotateTo(w,q,Q){return this.easeTo(a.e({bearing:w},q),Q)}resetNorth(w,q){return this.rotateTo(0,a.e({duration:1e3},w),q),this}resetNorthPitch(w,q){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),q),this}snapToNorth(w,q){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(fe,qe,sr)),this._rotating&&(ee.bearing=a.y.number(Ue,Dt,sr)),this._pitching&&(ee.pitch=a.y.number(at,Qt,sr)),this._padding&&(ee.interpolatePadding(yt,rr,sr),Ur=ee.centerPoint.add(Mr)),this.terrain&&!w.freezeElevation&&this._updateElevation(sr),mt)ee.setLocationAtPoint(mt,Gt);else{let wr=ee.zoomScale(ee.zoom-fe),Ir=qe>fe?Math.min(2,ot):Math.max(.5,ot),ri=Math.pow(Ir,1-sr),si=ee.unproject(Ge.add(ft.mult(sr*ri)).mult(wr));ee.setLocationAtPoint(ee.renderWorldCopies?si.wrap():si,Ur)}this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},sr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q,sr)},w),this}_prepareEase(w,q,Q={}){this._moving=!0,q||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let q=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&q!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(q-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=q}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let q=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(q.lngLat,w.zoom);if(q.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&q.push(ee=>this.transformCameraUpdate(ee)),!q.length)return;let Q=w.clone();for(let ee of q){let fe=Q.clone(),{center:Ue,zoom:at,pitch:yt,bearing:Dt,elevation:Qt}=ee(fe);Ue&&(fe.center=Ue),at!==void 0&&(fe.zoom=at),yt!==void 0&&(fe.pitch=yt),Dt!==void 0&&(fe.bearing=Dt),Qt!==void 0&&(fe.elevation=Qt),Q.apply(fe)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,q){if(this._easeId&&q&&this._easeId===q)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,fe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),fe&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,q){var Q;if(!w.essential&&l.prefersReducedMotion){let Ua=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ua,q)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),fe=ee.zoom,Ue=ee.bearing,at=ee.pitch,yt=ee.padding,Dt="bearing"in w?this._normalizeBearing(w.bearing,Ue):Ue,Qt="pitch"in w?+w.pitch:at,rr="padding"in w?w.padding:ee.padding,Mr=a.P.convert(w.offset),Ur=ee.centerPoint.add(Mr),he=ee.pointLocation(Ur),{center:Ae,zoom:qe}=ee.getConstrained(a.N.convert(w.center||he),(Q=w.zoom)!==null&&Q!==void 0?Q:fe);this._normalizeCenter(Ae,ee);let Ge=ee.zoomScale(qe-fe),ft=ee.project(he),ot=ee.project(Ae).sub(ft),mt=w.curve,Gt=Math.max(ee.width,ee.height),er=Gt/Ge,sr=ot.mag();if("minZoom"in w){let Ua=a.ac(Math.min(w.minZoom,fe,qe),ee.minZoom,ee.maxZoom),Fo=Gt/ee.zoomScale(Ua-fe);mt=Math.sqrt(Fo/sr*2)}let wr=mt*mt;function Ir(Ua){let Fo=(er*er-Gt*Gt+(Ua?-1:1)*wr*wr*sr*sr)/(2*(Ua?er:Gt)*wr*sr);return Math.log(Math.sqrt(Fo*Fo+1)-Fo)}function ri(Ua){return(Math.exp(Ua)-Math.exp(-Ua))/2}function si(Ua){return(Math.exp(Ua)+Math.exp(-Ua))/2}let Mi=Ir(!1),cn=function(Ua){return si(Mi)/si(Mi+mt*Ua)},Zn=function(Ua){return Gt*((si(Mi)*(ri(Fo=Mi+mt*Ua)/si(Fo))-ri(Mi))/wr)/sr;var Fo},Yn=(Ir(!0)-Mi)/mt;if(Math.abs(sr)<1e-6||!isFinite(Yn)){if(Math.abs(Gt-er)<1e-6)return this.easeTo(w,q);let Ua=er0,cn=Fo=>Math.exp(Ua*mt*Fo)}return w.duration="duration"in w?+w.duration:1e3*Yn/("screenSpeed"in w?+w.screenSpeed/mt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Ue!==Dt,this._pitching=Qt!==at,this._padding=!ee.isPaddingEqual(rr),this._prepareEase(q,!1),this.terrain&&this._prepareElevation(Ae),this._ease(Ua=>{let Fo=Ua*Yn,vl=1/cn(Fo);ee.zoom=Ua===1?qe:fe+ee.scaleZoom(vl),this._rotating&&(ee.bearing=a.y.number(Ue,Dt,Ua)),this._pitching&&(ee.pitch=a.y.number(at,Qt,Ua)),this._padding&&(ee.interpolatePadding(yt,rr,Ua),Ur=ee.centerPoint.add(Mr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ua);let Us=Ua===1?Ae:ee.unproject(ft.add(ot.mult(Zn(Fo))).mult(vl));ee.setLocationAtPoint(ee.renderWorldCopies?Us.wrap():Us,Ur),this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,q){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,q)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,q,Q){Q.animate===!1||Q.duration===0?(w(1),q()):(this._easeStart=l.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=q,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,q){w=a.b3(w,-180,180);let Q=Math.abs(w-q);return Math.abs(w-360-q)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let ia={compact:!0,customAttribution:'MapLibre'};class pa{constructor(w=ia){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=q=>{!q||q.sourceDataType!=="metadata"&&q.sourceDataType!=="visibility"&&q.dataType!=="style"&&q.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=f.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=f.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=f.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){f.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,q){let Q=this._map._getUIString(`AttributionControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let q=this._map.style.sourceCaches;for(let ee in q){let fe=q[ee];if(fe.used||fe.usedForTerrain){let Ue=fe.getSource();Ue.attribution&&w.indexOf(Ue.attribution)<0&&w.push(Ue.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,fe)=>ee.length-fe.length),w=w.filter((ee,fe)=>{for(let Ue=fe+1;Ue=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class va{constructor(w={}){this._updateCompact=()=>{let q=this._container.children;if(q.length){let Q=q[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=f.create("div","maplibregl-ctrl");let q=f.create("a","maplibregl-ctrl-logo");return q.target="_blank",q.rel="noopener nofollow",q.href="https://maplibre.org/",q.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),q.setAttribute("rel","noopener nofollow"),this._container.appendChild(q),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){f.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let q=++this._id;return this._queue.push({callback:w,id:q,cancelled:!1}),q}remove(w){let q=this._currentlyRunning,Q=q?this._queue.concat(q):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let q=this._currentlyRunning=this._queue;this._queue=[];for(let Q of q)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var is=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Cs extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,q){this.sourceCache.update(w,q),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:q}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new lt(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let q in this._tiles){let Q=this._tiles[q];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let q={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let fe=w.clone();fe.posMatrix=new Float64Array(16),a.aP(fe.posMatrix,0,a.X,0,a.X,0,1),q[Q]=fe}else if(ee.canonical.isChildOf(w.canonical)){let fe=w.clone();fe.posMatrix=new Float64Array(16);let Ue=ee.canonical.z-w.canonical.z,at=ee.canonical.x-(ee.canonical.x>>Ue<>Ue<>Ue;a.aP(fe.posMatrix,0,Dt,0,Dt,0,1),a.J(fe.posMatrix,fe.posMatrix,[-at*Dt,-yt*Dt,0]),q[Q]=fe}else if(w.canonical.isChildOf(ee.canonical)){let fe=w.clone();fe.posMatrix=new Float64Array(16);let Ue=w.canonical.z-ee.canonical.z,at=w.canonical.x-(w.canonical.x>>Ue<>Ue<>Ue;a.aP(fe.posMatrix,0,a.X,0,a.X,0,1),a.J(fe.posMatrix,fe.posMatrix,[at*Dt,yt*Dt,0]),a.K(fe.posMatrix,fe.posMatrix,[1/2**Ue,1/2**Ue,0]),q[Q]=fe}}return q}getSourceTile(w,q){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!fe||!fe.dem);)fe=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return fe}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(q=>q.timeAdded>=w)}}class Ks{constructor(w,q,Q){this.painter=w,this.sourceCache=new Cs(q),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,q,Q,ee=a.X){var fe;if(!(q>=0&&q=0&&Qw.canonical.z&&(w.canonical.z>=ee?fe=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Ue=w.canonical.x-(w.canonical.x>>fe<>fe<>8<<4|fe>>8,q[Ue+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(q.buffer)),ee=new m(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let q=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,fe=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Ue=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),at=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(fe,at-Ue-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,q),Q.bindFramebuffer.set(null);let yt=q[0]+(q[2]>>4<<8),Dt=q[1]+((15&q[2])<<8),Qt=this.coordsIndex[255-q[3]],rr=Qt&&this.sourceCache.getTileByID(Qt);if(!rr)return null;let Mr=this._coordsTextureSize,Ur=(1<w.id!==q),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let q of this._recentlyUsed)if(!this._objects[q].inUse)return this._objects[q];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let xl={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Bl{constructor(w,q){this.painter=w,this.terrain=q,this.pool=new dl(w.context,30,q.sourceCache.tileSize*q.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,q){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(q)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let fe of ee){let Ue=this.terrain.sourceCache.getTerrainCoords(fe);for(let at in Ue)this._coordsDescendingInv[Q][at]||(this._coordsDescendingInv[Q][at]=[]),this._coordsDescendingInv[Q][at].push(Ue[at])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],fe=ee.source;if(xl[ee.type]&&!this._coordsDescendingInvStr[fe]){this._coordsDescendingInvStr[fe]={};for(let Ue in this._coordsDescendingInv[fe])this._coordsDescendingInvStr[fe][Ue]=this._coordsDescendingInv[fe][Ue].map(at=>at.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let fe=this._coordsDescendingInvStr[ee][Q.tileID.key];fe&&fe!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let q=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(xl[q]&&(this._prevType&&xl[this._prevType]||this._stacks.push([]),this._prevType=q,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(xl[this._prevType]||xl[q]&&ee){this._prevType=q;let fe=this._stacks.length-1,Ue=this._stacks[fe]||[];for(let at of this._renderableTiles){if(this.pool.isFull()&&(as(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(at),at.rtt[fe]){let Dt=this.pool.getObjectForId(at.rtt[fe].id);if(Dt.stamp===at.rtt[fe].stamp){this.pool.useObject(Dt);continue}}let yt=this.pool.getOrCreateFreeObject();this.pool.useObject(yt),this.pool.stampObject(yt),at.rtt[fe]={id:yt.id,stamp:yt.stamp},Q.context.bindFramebuffer.set(yt.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Dt=0;Dt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},ja={showCompass:!0,showZoom:!0,visualizePitch:!1};class ns{constructor(w,q,Q=!1){this.mousedown=Ue=>{this.startMouse(a.e({},Ue,{ctrlKey:!0,preventDefault:()=>Ue.preventDefault()}),f.mousePos(this.element,Ue)),f.addEventListener(window,"mousemove",this.mousemove),f.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Ue=>{this.moveMouse(Ue,f.mousePos(this.element,Ue))},this.mouseup=Ue=>{this.mouseRotate.dragEnd(Ue),this.mousePitch&&this.mousePitch.dragEnd(Ue),this.offTemp()},this.touchstart=Ue=>{Ue.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=f.touchPos(this.element,Ue.targetTouches)[0],this.startTouch(Ue,this._startPos),f.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.addEventListener(window,"touchend",this.touchend))},this.touchmove=Ue=>{Ue.targetTouches.length!==1?this.reset():(this._lastPos=f.touchPos(this.element,Ue.targetTouches)[0],this.moveTouch(Ue,this._lastPos))},this.touchend=Ue=>{Ue.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),fe=w.dragRotate._mousePitch.getClickTolerance();this.element=q,this.mouseRotate=Hs({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Ue,clickTolerance:at,bearingDegreesPerPixelMoved:yt=.8})=>{let Dt=new cl;return new Ra({clickTolerance:at,move:(Qt,rr)=>({bearingDelta:(rr.x-Qt.x)*yt}),moveStateManager:Dt,enable:Ue,assignEvents:Vl})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=Do({clickTolerance:fe,enable:!0}),this.touchPitch=(({enable:Ue,clickTolerance:at,pitchDegreesPerPixelMoved:yt=-.5})=>{let Dt=new cl;return new Ra({clickTolerance:at,move:(Qt,rr)=>({pitchDelta:(rr.y-Qt.y)*yt}),moveStateManager:Dt,enable:Ue,assignEvents:Vl})})({clickTolerance:fe,enable:!0})),f.addEventListener(q,"mousedown",this.mousedown),f.addEventListener(q,"touchstart",this.touchstart,{passive:!1}),f.addEventListener(q,"touchcancel",this.reset)}startMouse(w,q){this.mouseRotate.dragStart(w,q),this.mousePitch&&this.mousePitch.dragStart(w,q),f.disableDrag()}startTouch(w,q){this.touchRotate.dragStart(w,q),this.touchPitch&&this.touchPitch.dragStart(w,q),f.disableDrag()}moveMouse(w,q){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:fe}=this.mousePitch.dragMove(w,q)||{};fe&&Q.setPitch(Q.getPitch()+fe)}}moveTouch(w,q){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:fe}=this.touchPitch.dragMove(w,q)||{};fe&&Q.setPitch(Q.getPitch()+fe)}}off(){let w=this.element;f.removeEventListener(w,"mousedown",this.mousedown),f.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend),f.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){f.enableDrag(),f.removeEventListener(window,"mousemove",this.mousemove),f.removeEventListener(window,"mouseup",this.mouseup),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend)}}let Js;function cs(ue,w,q){let Q=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let ee=new a.N(ue.lng-360,ue.lat),fe=new a.N(ue.lng+360,ue.lat),Ue=q.locationPoint(ue).distSqr(w);q.locationPoint(ee).distSqr(w)180;){let ee=q.locationPoint(ue);if(ee.x>=0&&ee.y>=0&&ee.x<=q.width&&ee.y<=q.height)break;ue.lng>q.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==Q.lng&&q.locationPoint(ue).y>q.height/2-q.getHorizon()?ue:Q}let sl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ll(ue,w,q){let Q=ue.classList;for(let ee in sl)Q.remove(`maplibregl-${q}-anchor-${ee}`);Q.add(`maplibregl-${q}-anchor-${w}`)}class nl extends a.E{constructor(w){if(super(),this._onKeyPress=q=>{let Q=q.code,ee=q.charCode||q.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=q=>{let Q=q.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=q=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((q==null?void 0:q.type)==="terrain"||(q==null?void 0:q.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?cs(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let fe="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?fe=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(fe=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Ue="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Ue="rotateX(0deg)":this._pitchAlignment==="map"&&(Ue=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||q&&q.type!=="moveend"||(this._pos=this._pos.round()),f.setTransform(this._element,`${sl[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Ue} ${fe}`),l.frameAsync(new AbortController).then(()=>{this._updateOpacity(q&&q.type==="moveend")}).catch(()=>{})},this._onMove=q=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=q.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=q=>{this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=f.create("div");let q=f.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;q.setAttributeNS(null,"display","block"),q.setAttributeNS(null,"height",`${Q}px`),q.setAttributeNS(null,"width",`${ee}px`),q.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let fe=f.createNS("http://www.w3.org/2000/svg","g");fe.setAttributeNS(null,"stroke","none"),fe.setAttributeNS(null,"stroke-width","1"),fe.setAttributeNS(null,"fill","none"),fe.setAttributeNS(null,"fill-rule","evenodd");let Ue=f.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");let at=f.createNS("http://www.w3.org/2000/svg","g");at.setAttributeNS(null,"transform","translate(3.0, 29.0)"),at.setAttributeNS(null,"fill","#000000");let yt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let Ge of yt){let ft=f.createNS("http://www.w3.org/2000/svg","ellipse");ft.setAttributeNS(null,"opacity","0.04"),ft.setAttributeNS(null,"cx","10.5"),ft.setAttributeNS(null,"cy","5.80029008"),ft.setAttributeNS(null,"rx",Ge.rx),ft.setAttributeNS(null,"ry",Ge.ry),at.appendChild(ft)}let Dt=f.createNS("http://www.w3.org/2000/svg","g");Dt.setAttributeNS(null,"fill",this._color);let Qt=f.createNS("http://www.w3.org/2000/svg","path");Qt.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Dt.appendChild(Qt);let rr=f.createNS("http://www.w3.org/2000/svg","g");rr.setAttributeNS(null,"opacity","0.25"),rr.setAttributeNS(null,"fill","#000000");let Mr=f.createNS("http://www.w3.org/2000/svg","path");Mr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),rr.appendChild(Mr);let Ur=f.createNS("http://www.w3.org/2000/svg","g");Ur.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Ur.setAttributeNS(null,"fill","#FFFFFF");let he=f.createNS("http://www.w3.org/2000/svg","g");he.setAttributeNS(null,"transform","translate(8.0, 8.0)");let Ae=f.createNS("http://www.w3.org/2000/svg","circle");Ae.setAttributeNS(null,"fill","#000000"),Ae.setAttributeNS(null,"opacity","0.25"),Ae.setAttributeNS(null,"cx","5.5"),Ae.setAttributeNS(null,"cy","5.5"),Ae.setAttributeNS(null,"r","5.4999962");let qe=f.createNS("http://www.w3.org/2000/svg","circle");qe.setAttributeNS(null,"fill","#FFFFFF"),qe.setAttributeNS(null,"cx","5.5"),qe.setAttributeNS(null,"cy","5.5"),qe.setAttributeNS(null,"r","5.4999962"),he.appendChild(Ae),he.appendChild(qe),Ue.appendChild(at),Ue.appendChild(Dt),Ue.appendChild(rr),Ue.appendChild(Ur),Ue.appendChild(he),q.appendChild(Ue),q.setAttributeNS(null,"height",Q*this._scale+"px"),q.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(q),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",q=>{q.preventDefault()}),this._element.addEventListener("mousedown",q=>{q.preventDefault()}),ll(this._element,this._anchor,"marker"),w&&w.className)for(let q of w.className.split(" "))this._element.classList.add(q);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),f.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var q,Q;if(!(!((q=this._map)===null||q===void 0)&&q.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,fe=ee.terrain.depthAtPoint(this._pos),Ue=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Ue)-fe<.006)return void(this._element.style.opacity=this._opacity);let at=-this._offset.y/ee.transform._pixelPerMeter,yt=Math.sin(ee.getPitch()*Math.PI/180)*at,Dt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Qt=ee.transform.lngLatToCameraDepth(this._lngLat,Ue+yt)-Dt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Qt&&this._popup.remove(),this._element.style.opacity=Qt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,q){return w===void 0&&q===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),q!==void 0&&(this._opacityWhenCovered=q),this._map&&this._updateOpacity(!0),this}}let zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ml=0,Dl=!1,Al={maxWidth:100,unit:"metric"};function Ll(ue,w,q){let Q=q&&q.maxWidth||100,ee=ue._container.clientHeight/2,fe=ue.unproject([0,ee]),Ue=ue.unproject([Q,ee]),at=fe.distanceTo(Ue);if(q&&q.unit==="imperial"){let yt=3.2808*at;yt>5280?ms(w,Q,yt/5280,ue._getUIString("ScaleControl.Miles")):ms(w,Q,yt,ue._getUIString("ScaleControl.Feet"))}else q&&q.unit==="nautical"?ms(w,Q,at/1852,ue._getUIString("ScaleControl.NauticalMiles")):at>=1e3?ms(w,Q,at/1e3,ue._getUIString("ScaleControl.Kilometers")):ms(w,Q,at,ue._getUIString("ScaleControl.Meters"))}function ms(ue,w,q,Q){let ee=function(fe){let Ue=Math.pow(10,`${Math.floor(fe)}`.length-1),at=fe/Ue;return at=at>=10?10:at>=5?5:at>=3?3:at>=2?2:at>=1?1:function(yt){let Dt=Math.pow(10,Math.ceil(-Math.log(yt)/Math.LN10));return Math.round(yt*Dt)/Dt}(at),Ue*at}(q);ue.style.width=w*(ee/q)+"px",ue.innerHTML=`${ee} ${Q}`}let Bs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Xl=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Gl(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return Gl(new a.P(0,0))}let Nl=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=pa,i.BoxZoomHandler=ss,i.CanvasSource=kt,i.CooperativeGesturesHandler=hi,i.DoubleClickZoomHandler=yi,i.DragPanHandler=Ki,i.DragRotateHandler=Fn,i.EdgeInsets=Vo,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let q=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=q==null?void 0:q.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)q=q.shadowRoot.fullscreenElement;q===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){f.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=f.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);f.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=it,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let q=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),fe=a.e({bearing:ee},this.options.fitBoundsOptions),Ue=ce.fromLngLat(q,Q);this._map.fitBounds(Ue,fe,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let q=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(q).addTo(this._map),this._userLocationDotMarker.setLngLat(q).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Dl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=f.create("button","maplibregl-ctrl-geolocate",this._container),f.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}else{let q=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=f.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new nl({element:this._dotElement}),this._circleElement=f.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new nl({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",q=>{q.geolocateSource||this._watchState!=="ACTIVE_LOCK"||q.originalEvent&&q.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},zl,ue)}onAdd(ue){return this._map=ue,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(Js!==void 0&&!w)return Js;if(window.navigator.permissions===void 0)return Js=!!window.navigator.geolocation,Js;try{Js=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(q){Js=!!window.navigator.geolocation}return Js})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),f.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ml=0,Dl=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),q=ue.coords;return w&&(q.longitudew.getEast()||q.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),q=ue.getNorthEast(),Q=w.distanceTo(q),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ml--,Dl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ml++,Ml>1?(ue={maximumAge:6e5,timeout:0},Dl=!0):(ue=this.options.positionOptions,Dl=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=ks,i.ImageSource=zt,i.KeyboardHandler=Ut,i.LngLatBounds=ce,i.LogoControl=va,i.Map=class extends ya{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Zl),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Lo(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=q=>{q.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:q}))},this._contextRestored=q=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:q}))},this._onMapScroll=q=>{if(q.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},bl),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=v.addThrottleControl(()=>this.isMoving()),this._requestManager=new C(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let q=!1,Q=xs(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{q?Q(ee):q=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ta(this,w),this._hash=w.hash&&new ks(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new pa(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new va,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",q=>{this._update(q.dataType==="style"),this.fire(new a.k(`${q.dataType}data`,q))}),this.on("dataloading",q=>{this.fire(new a.k(`${q.dataType}dataloading`,q))}),this.on("dataabort",q=>{this.fire(new a.k("sourcedataabort",q))})}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let q=ue.onAdd(this);this._controls.push(ue);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(q,Q.firstChild):Q.appendChild(q),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,q,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(q,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,q,Q)}resize(ue){var w;let q=this._containerDimensions(),Q=q[0],ee=q[1],fe=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,fe),this.painter.resize(Q,ee,fe),this.painter.overLimit()){let at=this.painter.context.gl;this._maxCanvasSize=[at.drawingBufferWidth,at.drawingBufferHeight];let yt=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,yt),this.painter.resize(Q,ee,yt)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Ue=!this._moving;return Ue&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),Ue&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:q,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),fe=ue*ee,Ue=w*ee;return Math.min(fe>q?q/fe:1,Ue>Q?Q/Ue:1)*ee}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(ce.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,q){if(ue==="mouseenter"||ue==="mouseover"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:fe=>{let Ue=w.filter(yt=>this.getLayer(yt)),at=Ue.length!==0?this.queryRenderedFeatures(fe.point,{layers:Ue}):[];at.length?Q||(Q=!0,q.call(this,new Aa(ue,this,fe.originalEvent,{features:at}))):Q=!1},mouseout:()=>{Q=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:Ue=>{let at=w.filter(yt=>this.getLayer(yt));(at.length!==0?this.queryRenderedFeatures(Ue.point,{layers:at}):[]).length?Q=!0:Q&&(Q=!1,q.call(this,new Aa(ue,this,Ue.originalEvent)))},mouseout:Ue=>{Q&&(Q=!1,q.call(this,new Aa(ue,this,Ue.originalEvent)))}}}}{let Q=ee=>{let fe=w.filter(at=>this.getLayer(at)),Ue=fe.length!==0?this.queryRenderedFeatures(ee.point,{layers:fe}):[];Ue.length&&(ee.features=Ue,q.call(this,ee),delete ee.features)};return{layers:w,listener:q,delegates:{[ue]:Q}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,q){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let Q=this._delegatedListeners[ue];for(let ee=0;eew.includes(Ue))){for(let Ue in fe.delegates)this.off(Ue,fe.delegates[Ue]);return void Q.splice(ee,1)}}}on(ue,w,q){if(q===void 0)return super.on(ue,w);let Q=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,q);this._saveDelegatedListener(ue,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(ue,w,q){if(q===void 0)return super.once(ue,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(ue,Q,q);for(let fe in ee.delegates){let Ue=ee.delegates[fe];ee.delegates[fe]=(...at)=>{this._removeDelegatedListener(ue,Q,q),Ue(...at)}}this._saveDelegatedListener(ue,ee);for(let fe in ee.delegates)this.once(fe,ee.delegates[fe]);return this}off(ue,w,q){return q===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,q),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let q,Q=ue instanceof a.P||Array.isArray(ue),ee=Q?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:ue)||{},ee instanceof a.P||typeof ee[0]=="number")q=[a.P.convert(ee)];else{let fe=a.P.convert(ee[0]),Ue=a.P.convert(ee[1]);q=[fe,new a.P(Ue.x,fe.y),Ue,new a.P(fe.x,Ue.y),fe]}return this.style.queryRenderedFeatures(q,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ue,w));let q=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new xn(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,q):this.style.loadJSON(ue,w,q),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new xn(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let q=this._requestManager.transformRequest(ue,"Style");a.h(q,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(q){a.w(`Unable to perform style diff: ${q.message||q.error||q}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let q in this.style._layers){let Q=this.style._layers[q];Q.type==="hillshade"&&Q.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Ks(this.painter,w,ue),this.painter.renderToTexture=new Bl(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=q=>{q.dataType==="style"?this.terrain.sourceCache.freeRtt():q.dataType==="source"&&q.tile&&(q.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(q.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let q=ue[w]._tiles;for(let Q in q){let ee=q[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,q={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:fe,stretchY:Ue,content:at,textFitWidth:yt,textFitHeight:Dt}=q;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:Qt,height:rr,data:Mr}=w,Ur=w;return this.style.addImage(ue,{data:new a.R({width:Qt,height:rr},new Uint8Array(Mr)),pixelRatio:Q,stretchX:fe,stretchY:Ue,content:at,textFitWidth:yt,textFitHeight:Dt,sdf:ee,version:0,userImage:Ur}),Ur.onAdd&&Ur.onAdd(this,ue),this}}{let{width:Qt,height:rr,data:Mr}=l.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Qt,height:rr},Mr),pixelRatio:Q,stretchX:fe,stretchY:Ue,content:at,textFitWidth:yt,textFitHeight:Dt,sdf:ee,version:0})}}updateImage(ue,w){let q=this.style.getImage(ue);if(!q)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?l.getImageData(w):w,{width:ee,height:fe,data:Ue}=Q;if(ee===void 0||fe===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==q.data.width||fe!==q.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let at=!(w instanceof HTMLImageElement||a.b(w));return q.data.replace(Ue,at),this.style.updateImage(ue,q),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return v.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,q){return this.style.setLayerZoomRange(ue,w,q),this._update(!0)}setFilter(ue,w,q={}){return this.style.setFilter(ue,w,q),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,q,Q={}){return this.style.setPaintProperty(ue,w,q,Q),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,q,Q={}){return this.style.setLayoutProperty(ue,w,q,Q),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,q={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,q,Q=>{Q||this._update(!0)}),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,q=>{q||this._update(!0)}),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=f.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=f.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let q=this._containerDimensions(),Q=this._getClampedPixelRatio(q[0],q[1]);this._resizeCanvas(q[0],q[1],Q);let ee=this._controlContainer=f.create("div","maplibregl-control-container",ue),fe=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Ue=>{fe[Ue]=f.create("div",`maplibregl-ctrl-${Ue} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,q){this._canvas.width=Math.floor(q*ue),this._canvas.height=Math.floor(q*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:ue},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let q=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!q){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Qs(q,this.transform),c.testSupport(q)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let q=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,fe=l.now();this.style.zoomHistory.update(ee,fe);let Ue=new a.z(ee,{now:fe,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),at=Ue.crossFadingFactor();at===1&&at===this._crossFadingFactor||(q=!0,this._crossFadingFactor=at),this.style.update(Ue)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||q)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let q of this._controls)q.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),v.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),f.remove(this._canvasContainer),f.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return eu}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=Aa,i.MapTouchEvent=os,i.MapWheelEvent=_l,i.Marker=nl,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),q=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=q,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",q.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,q)=>{let Q=this._map._getUIString(`NavigationControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},ja,ue),this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=f.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ns(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){f.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let q=f.create("button",ue,this._container);return q.type="button",q.addEventListener("click",w),q}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&f.remove(this._content),this._container&&(f.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var q;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=f.create("div","maplibregl-popup",this._map.getContainer()),this._tip=f.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let at of this.options.className.split(" "))this._container.classList.add(at);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?cs(this._lngLat,this._flatPos,this._map.transform):(q=this._lngLat)===null||q===void 0?void 0:q.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,fe=Gl(this.options.offset);if(!ee){let at=this._container.offsetWidth,yt=this._container.offsetHeight,Dt;Dt=Q.y+fe.bottom.ythis._map.transform.height-yt?["bottom"]:[],Q.xthis._map.transform.width-at/2&&Dt.push("right"),ee=Dt.length===0?"bottom":Dt.join("-")}let Ue=Q.add(fe[ee]);this.options.subpixelPositioning||(Ue=Ue.round()),f.setTransform(this._container,`${sl[ee]} translate(${Ue.x}px,${Ue.y}px)`),ll(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(Bs),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),q=document.createElement("body"),Q;for(q.innerHTML=ue;Q=q.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=f.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=f.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let ue=this._container.querySelector(Xl);ue&&ue.focus()}},i.RasterDEMTileSource=Ot,i.RasterTileSource=bt,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Ll(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ll(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},Al),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){f.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Rr,i.Style=xn,i.TerrainControl=class{constructor(ue){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ue}onAdd(ue){return this._map=ue,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=f.create("button","maplibregl-ctrl-terrain",this._container),f.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){f.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Os,i.TwoFingersTouchRotateHandler=Ds,i.TwoFingersTouchZoomHandler=Ms,i.TwoFingersTouchZoomRotateHandler=Li,i.VectorTileSource=rt,i.VideoSource=Mt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(De(ue))throw new Error(`A source type called "${ue}" already exists.`);((q,Q)=>{$e[q]=Q})(ue,w)}),i.clearPrewarmedResources=function(){let ue=de;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(me),de=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return vt().getRTLTextPluginStatus()},i.getVersion=function(){return Nl},i.getWorkerCount=function(){return Le.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return be().broadcast("IS",ue)},i.prewarm=function(){Se().acquire(me)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return vt().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Le.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}});var n=e;return n})});var oje=we((Bwr,aje)=>{"use strict";var mw=ei(),nYt=Wf().sanitizeHTML,aYt=HJ(),rje=zx();function ije(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=rje.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var sm=ije.prototype;sm.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=M8(t)};sm.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};sm.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};sm.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};sm.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};sm.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};sm.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!M8(e)){var r=oYt(e);t.addSource(this.idSource,r)}};sm.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function nje(e){var t={},r={};switch(e.type){case"circle":mw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":mw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":mw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=aYt(n.textposition,n.iconsize);mw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),mw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":mw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function oYt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=nYt(e.sourceattribution)),n}aje.exports=function(t,r,n){var i=new ije(t,r);return i.update(n),i}});var pje=we((qwr,dje)=>{"use strict";var KJ=tje(),JJ=ei(),uje=dx(),sje=$l(),sYt=wu(),lYt=xp(),E8=Vc(),fje=Cm(),uYt=fje.drawMode,fYt=fje.selectMode,cYt=oh().prepSelect,hYt=oh().clearOutline,dYt=oh().clearSelectionsCache,pYt=oh().selectOnClick,yw=zx(),vYt=oje();function cje(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Kh=cje.prototype;Kh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Kh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=hje(a.style),s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new KJ.Map({container:i.div,style:o.style,center:$J(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new KJ.AttributionControl({compact:!0})),f={};l.on("styleimagemissing",function(h){var d=h.id;if(!f[d]&&d.includes("-15")){f[d]=!0;var p=new Image(15,15);p.onload=function(){l.addImage(d,p)},p.crossOrigin="Anonymous",p.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),l.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(h){l.once("load",h)})),c=c.concat(uje.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Kh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=hje(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(uje.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Kh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&pYt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&E8.click(n,u.originalEvent)}}};Kh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=JJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),fYt(a)||uYt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){cYt(u,l,f,t.dragOptions,a)},lYt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Kh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Kh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var QJ=ei(),yYt=O_(),gYt=$d(),vje=eC();mje.exports=function(t,r,n){yYt(t,r,n,{type:"map",attributes:vje,handleDefaults:_Yt,partition:"y"})};function _Yt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,gYt(e,t,{name:"layers",handleItemDefaults:xYt}),t._input=e}function xYt(e,t){function r(u,l){return QJ.coerce(e,t,vje.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",QJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),QJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var C8=we(u0=>{"use strict";var k8=ei(),gje=k8.strTranslate,bYt=k8.strScale,wYt=Dd().getSubplotCalcData,AYt=jv(),TYt=Jl(),_je=Mu(),SYt=Wf(),MYt=pje(),Ix="map";u0.name=Ix;u0.attr="subplot";u0.idRoot=Ix;u0.idRegex=u0.attrRegex=k8.counterRegex(Ix);u0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};u0.layoutAttributes=eC();u0.supplyLayoutDefaults=yje();u0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Ix],a=0;ay/2){var b=c.split("|").join("
");d.text(b).attr("data-unformatted",b).call(SYt.convertToTspans,e),p=_je.bBox(d.node())}d.attr("transform",gje(-3,-p.height+8)),h.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var v=1;p.width+6>y&&(v=y/(p.width+6));var C=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",gje(C[0],C[1])+bYt(v))}};u0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Ix],n=0;n{"use strict";xje.exports={attributes:x8(),supplyDefaults:IWe(),colorbar:tp(),formatLabels:GJ(),calc:bF(),plot:XWe(),hoverPoints:S8().hoverPoints,eventData:JWe(),selectPoints:QWe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:C8(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var Aje=we((Gwr,wje)=>{"use strict";wje.exports=bje()});var e$=we((Hwr,Tje)=>{"use strict";var x1=oS(),EYt=nc(),{hovertemplateAttrs:kYt,templatefallbackAttrs:CYt}=Ff(),LYt=Gf(),Dx=Su().extendFlat;Tje.exports=Dx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Dx({},x1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:x1.text,hovertext:x1.hovertext,marker:{line:{color:Dx({},x1.marker.line.color,{editType:"plot"}),width:Dx({},x1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Dx({},x1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Dx({},x1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Dx({},x1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:x1.hoverinfo,hovertemplate:kYt({},{keys:["properties"]}),hovertemplatefallback:CYt(),showlegend:Dx({},LYt.showlegend,{dflt:!1})},EYt("",{cLetter:"z",editTypeOverride:"calc"}))});var Mje=we((Wwr,Sje)=>{"use strict";var nC=ei(),PYt=nd(),zYt=e$();Sje.exports=function(t,r,n,i){function a(f,c){return nC.coerce(t,r,zYt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!nC.isArrayOrTypedArray(o)||!o.length||!nC.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||nC.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),PYt(t,r,i,a,{prefix:"",cLetter:"z"}),nC.coerceSelectionMarkerOpacity(r,a)}});var t$=we((jwr,Cje)=>{"use strict";var IYt=ku(),b1=ei(),DYt=_c(),RYt=Mu(),FYt=cx().makeBlank,Eje=dx();function OYt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:FYt()};if(!r)return a;var o=Eje.extractTraceFeature(e);if(!o)return a;var s=DYt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;b1.isArrayOrTypedArray(u.opacity)&&(f=function(C){var M=C.mo;return IYt(M)?+b1.constrain(M,0,1):0});var c;b1.isArrayOrTypedArray(l.color)&&(c=function(C){return C.mlc});var h;b1.isArrayOrTypedArray(l.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var Pje=t$().convert,BYt=t$().convertOnSelect,Lje=zx().traceLayerPrefix;function zje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Lje+t+"-fill"],["line",Lje+t+"-line"]],this.below=null}var RS=zje.prototype;RS.update=function(e){this._update(Pje(e)),e[0].trace._glTrace=this};RS.updateOnSelect=function(e){this._update(BYt(e))};RS._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};RS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Ije.exports=function(t,r){var n=r[0].trace,i=new zje(t,n.uid),a=i.sourceId,o=Pje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var Fje=we((Zwr,Rje)=>{"use strict";Rje.exports={attributes:e$(),supplyDefaults:Mje(),colorbar:D_(),calc:VF(),plot:Dje(),hoverPoints:HF(),eventData:WF(),selectPoints:jF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";Oje.exports=Fje()});var i$=we((Kwr,Nje)=>{"use strict";var qYt=nc(),{hovertemplateAttrs:NYt,templatefallbackAttrs:UYt}=Ff(),qje=Gf(),L8=x8(),r$=Su().extendFlat;Nje.exports=r$({lon:L8.lon,lat:L8.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:L8.text,hovertext:L8.hovertext,hoverinfo:r$({},qje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:NYt(),hovertemplatefallback:UYt(),showlegend:r$({},qje.showlegend,{dflt:!1})},qYt("",{cLetter:"z",editTypeOverride:"calc"}))});var Vje=we((Jwr,Uje)=>{"use strict";var VYt=ei(),GYt=nd(),HYt=i$();Uje.exports=function(t,r,n,i){function a(l,f){return VYt.coerce(t,r,HYt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),GYt(t,r,i,a,{prefix:"",cLetter:"z"})}});var Wje=we(($wr,Hje)=>{"use strict";var n$=ku(),WYt=ei().isArrayOrTypedArray,a$=rf().BADNUM,jYt=gp(),Gje=ei()._;Hje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=WYt(a)&&a.length,s=0;s{"use strict";var XYt=ku(),o$=ei(),jje=jl(),Xje=_c(),Zje=rf().BADNUM,ZYt=cx().makeBlank;Yje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:ZYt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=o$.isArrayOrTypedArray(u)&&u.length,c=o$.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=Xje.extractOpts(r),v=b.reversescale?Xje.flipScale(b.colorscale):b.colorscale,C=v[0][1],M=jje.opacity(C)<1?C:jje.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,M];for(s=1;s{"use strict";var Jje=Kje(),YYt=zx().traceLayerPrefix;function $je(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",YYt+t+"-heatmap"]],this.below=null}var P8=$je.prototype;P8.update=function(e){var t=this.subplot,r=this.layerList,n=Jje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};P8.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Qje.exports=function(t,r){var n=r[0].trace,i=new $je(t,n.uid),a=i.sourceId,o=Jje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var rXe=we((t3r,tXe)=>{"use strict";var KYt=wu(),JYt=S8().hoverPoints,$Yt=S8().getExtraText;tXe.exports=function(t,r,n){var i=JYt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=KYt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=$Yt(s,u,o[0].t.labels),[a]}}});var nXe=we((r3r,iXe)=>{"use strict";iXe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var oXe=we((i3r,aXe)=>{"use strict";aXe.exports={attributes:i$(),supplyDefaults:Vje(),colorbar:D_(),formatLabels:GJ(),calc:Wje(),plot:eXe(),hoverPoints:rXe(),eventData:nXe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";sXe.exports=oXe()});var l$=we((o3r,dXe)=>{"use strict";var QYt=gc(),eKt=Gf(),uXe=Bh(),s$=m3(),tKt=zc().attributes,{hovertemplateAttrs:fXe,templatefallbackAttrs:cXe}=Ff(),rKt=nc(),iKt=Lf().templatedArray,nKt=Xc().descriptionOnlyNumbers,hXe=Su().extendFlat,aKt=Sc().overrideAll,a3r=dXe.exports=aKt({hoverinfo:hXe({},eKt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:s$.hoverlabel,domain:tKt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:nKt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:QYt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:uXe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:s$.hoverlabel,hovertemplate:fXe({},{keys:["value","label"]}),hovertemplatefallback:cXe(),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:uXe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:s$.hoverlabel,hovertemplate:fXe({},{keys:["value","label"]}),hovertemplatefallback:cXe(),colorscales:iKt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:hXe(rKt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var gXe=we((s3r,yXe)=>{"use strict";var FS=ei(),z8=l$(),oKt=jl(),pXe=hd(),sKt=zc().defaults,vXe=x5(),mXe=Lf(),lKt=$d();yXe.exports=function(t,r,n,i){function a(A,L){return FS.coerce(t,r,z8,A,L)}var o=FS.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,u=mXe.newContainer(r,"node");function l(A,L){return FS.coerce(s,u,z8.node,A,L)}l("label"),l("groups"),l("x"),l("y"),l("pad"),l("thickness"),l("line.color"),l("line.width"),l("hoverinfo",t.hoverinfo),vXe(s,u,l,o),l("hovertemplate"),l("align");var f=i.colorway,c=function(A){return f[A%f.length]};l("color",u.label.map(function(A,L){return oKt.addOpacity(c(L),.8)})),l("customdata");var h=t.link||{},d=mXe.newContainer(r,"link");function p(A,L){return FS.coerce(h,d,z8.link,A,L)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),vXe(h,d,p,o),p("hovertemplate");var y=pXe(i.paper_bgcolor).getLuminance()<.333,b=y?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",v=p("color",b);function C(A){var L=pXe(A);if(!L.isValid())return A;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=y?L.brighten():L.darken(),L.toRgbString()}p("hovercolor",Array.isArray(v)?v.map(C):C(v)),p("customdata"),lKt(h,d,{name:"colorscales",handleItemDefaults:uKt}),sKt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var M;u.x.length&&u.y.length&&(M="freeform"),a("arrangement",M),FS.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function uKt(e,t){function r(n,i){return FS.coerce(e,t,z8.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var u$=we((l3r,_Xe)=>{"use strict";_Xe.exports=fKt;function fKt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),u=0;u0;){b=C[C.length-1];var M=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=A}else{if(n[b]===r[b]){for(var x=[],k=[],S=0,A=v.length-1;A>=0;--A){var m=v[A];if(i[m]=!1,x.push(m),k.push(s[m]),S+=s[m].length,o[m]=f.length,m===b){v.length=A;break}}f.push(x);for(var P=new Array(S),A=0;A{"use strict";var cKt=u$(),OS=ei(),hKt=ng().wrap,aC=OS.isArrayOrTypedArray,xXe=OS.isIndex,bXe=_c();function dKt(e){var t=e.node,r=e.link,n=[],i=aC(r.color),a=aC(r.hovercolor),o=aC(r.customdata),s={},u={},l=r.colorscales.length,f;for(f=0;fp&&(p=r.source[f]),r.target[f]>p&&(p=r.target[f]);var y=p+1;e.node._count=y;var b,v=e.node.groups,C={};for(f=0;f0&&xXe(S,y)&&xXe(m,y)&&!(C.hasOwnProperty(S)&&C.hasOwnProperty(m)&&C[S]===C[m])){C.hasOwnProperty(m)&&(m=C[m]),C.hasOwnProperty(S)&&(S=C[S]),S=+S,m=+m,s[S]=s[m]=!0;var P="";r.label&&r.label[f]&&(P=r.label[f]);var E=null;P&&u.hasOwnProperty(P)&&(E=u[P]),n.push({pointNumber:f,label:P,color:i?r.color[f]:r.color,hovercolor:a?r.hovercolor[f]:r.hovercolor,customdata:o?r.customdata[f]:r.customdata,concentrationscale:E,source:S,target:m,value:+k}),x.source.push(S),x.target.push(m)}}var O=y+v.length,F=aC(t.color),U=aC(t.customdata),G=[];for(f=0;fy-1,childrenNodes:[],pointNumber:f,label:j,color:F?t.color[f]:t.color,customdata:U?t.customdata[f]:t.customdata})}var W=!1;return pKt(O,x.source,x.target)&&(W=!0),{circular:W,links:n,nodes:G,groups:v,groupLookup:C}}function pKt(e,t,r){for(var n=OS.init2dArray(e,0),i=0;i1})}wXe.exports=function(t,r){var n=dKt(r);return hKt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var SXe=we((I8,TXe)=>{(function(e,t){typeof I8=="object"&&typeof TXe!="undefined"?t(I8):(e=e||self,t(e.d3=e.d3||{}))})(I8,function(e){"use strict";function t(k){var S=+this._x.call(null,k),m=+this._y.call(null,k);return r(this.cover(S,m),S,m,k)}function r(k,S,m,P){if(isNaN(S)||isNaN(m))return k;var E,O=k._root,F={data:P},U=k._x0,G=k._y0,j=k._x1,W=k._y1,N,H,re,ae,me,Le,Ce,de;if(!O)return k._root=F,k;for(;O.length;)if((me=S>=(N=(U+j)/2))?U=N:j=N,(Le=m>=(H=(G+W)/2))?G=H:W=H,E=O,!(O=O[Ce=Le<<1|me]))return E[Ce]=F,k;if(re=+k._x.call(null,O.data),ae=+k._y.call(null,O.data),S===re&&m===ae)return F.next=O,E?E[Ce]=F:k._root=F,k;do E=E?E[Ce]=new Array(4):k._root=new Array(4),(me=S>=(N=(U+j)/2))?U=N:j=N,(Le=m>=(H=(G+W)/2))?G=H:W=H;while((Ce=Le<<1|me)===(de=(ae>=H)<<1|re>=N));return E[de]=O,E[Ce]=F,k}function n(k){var S,m,P=k.length,E,O,F=new Array(P),U=new Array(P),G=1/0,j=1/0,W=-1/0,N=-1/0;for(m=0;mW&&(W=E),ON&&(N=O));if(G>W||j>N)return this;for(this.cover(G,j).cover(W,N),m=0;mk||k>=E||P>S||S>=O;)switch(j=(SW||(U=ae.y0)>N||(G=ae.x1)=Ce)<<1|k>=Le)&&(ae=H[H.length-1],H[H.length-1]=H[H.length-1-me],H[H.length-1-me]=ae)}else{var de=k-+this._x.call(null,re.data),te=S-+this._y.call(null,re.data),Se=de*de+te*te;if(Se=(H=(F+G)/2))?F=H:G=H,(me=N>=(re=(U+j)/2))?U=re:j=re,S=m,!(m=m[Le=me<<1|ae]))return this;if(!m.length)break;(S[Le+1&3]||S[Le+2&3]||S[Le+3&3])&&(P=S,Ce=Le)}for(;m.data!==k;)if(E=m,!(m=m.next))return this;return(O=m.next)&&delete m.next,E?(O?E.next=O:delete E.next,this):S?(O?S[Le]=O:delete S[Le],(m=S[0]||S[1]||S[2]||S[3])&&m===(S[3]||S[2]||S[1]||S[0])&&!m.length&&(P?P[Ce]=m:this._root=m),this):(this._root=O,this)}function f(k){for(var S=0,m=k.length;S{(function(e,t){t(typeof D8=="object"&&typeof MXe!="undefined"?D8:e.d3=e.d3||{})})(D8,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(y){return t+y in this},get:function(y){return this[t+y]},set:function(y,b){return this[t+y]=b,this},remove:function(y){var b=t+y;return b in this&&delete this[b]},clear:function(){for(var y in this)y[0]===t&&delete this[y]},keys:function(){var y=[];for(var b in this)b[0]===t&&y.push(b.slice(1));return y},values:function(){var y=[];for(var b in this)b[0]===t&&y.push(this[b]);return y},entries:function(){var y=[];for(var b in this)b[0]===t&&y.push({key:b.slice(1),value:this[b]});return y},size:function(){var y=0;for(var b in this)b[0]===t&&++y;return y},empty:function(){for(var y in this)if(y[0]===t)return!1;return!0},each:function(y){for(var b in this)b[0]===t&&y(this[b],b.slice(1),this)}};function n(y,b){var v=new r;if(y instanceof r)y.each(function(x,k){v.set(k,x)});else if(Array.isArray(y)){var C=-1,M=y.length,A;if(b==null)for(;++C=y.length)return v!=null&&x.sort(v),C!=null?C(x):x;for(var P=-1,E=x.length,O=y[k++],F,U,G=n(),j,W=S();++Py.length)return x;var S,m=b[k-1];return C!=null&&k>=y.length?S=x.entries():(S=[],x.each(function(P,E){S.push({key:E,values:L(P,k)})})),m!=null?S.sort(function(P,E){return m(P.key,E.key)}):S}return M={object:function(x){return A(x,0,a,o)},map:function(x){return A(x,0,s,u)},entries:function(x){return L(A(x,0,s,u),0)},key:function(x){return y.push(x),M},sortKeys:function(x){return b[y.length-1]=x,M},sortValues:function(x){return v=x,M},rollup:function(x){return C=x,M}}}function a(){return{}}function o(y,b,v){y[b]=v}function s(){return n()}function u(y,b,v){y.set(b,v)}function l(){}var f=n.prototype;l.prototype=c.prototype={constructor:l,has:f.has,add:function(y){return y+="",this[t+y]=y,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(y,b){var v=new l;if(y instanceof l)y.each(function(A){v.add(A)});else if(y){var C=-1,M=y.length;if(b==null)for(;++C{(function(e,t){typeof F8=="object"&&typeof EXe!="undefined"?t(F8):(e=e||self,t(e.d3=e.d3||{}))})(F8,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,u=arguments.length,l={},f;s=0&&(f=l.slice(c+1),l=l.slice(0,c)),l&&!u.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:f}})}n.prototype=r.prototype={constructor:n,on:function(s,u){var l=this._,f=i(s+"",l),c,h=-1,d=f.length;if(arguments.length<2){for(;++h0)for(var l=new Array(c),f=0,c,h;f{(function(e,t){typeof O8=="object"&&typeof CXe!="undefined"?t(O8):(e=e||self,t(e.d3=e.d3||{}))})(O8,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,u=0,l=0,f=typeof performance=="object"&&performance.now?performance:Date,c=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(k){setTimeout(k,17)};function h(){return u||(c(d),u=f.now()+l)}function d(){u=0}function p(){this._call=this._time=this._next=null}p.prototype=y.prototype={constructor:p,restart:function(k,S,m){if(typeof k!="function")throw new TypeError("callback is not a function");m=(m==null?h():+m)+(S==null?0:+S),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=k,this._time=m,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function y(k,S,m){var P=new p;return P.restart(k,S,m),P}function b(){h(),++t;for(var k=a,S;k;)(S=u-k._time)>=0&&k._call.call(null,S),k=k._next;--t}function v(){u=(s=f.now())+l,t=r=0;try{b()}finally{t=0,M(),u=0}}function C(){var k=f.now(),S=k-s;S>i&&(l-=S,s=k)}function M(){for(var k,S=a,m,P=1/0;S;)S._call?(P>S._time&&(P=S._time),k=S,S=S._next):(m=S._next,S._next=null,S=k?k._next=m:a=m);o=k,A(P)}function A(k){if(!t){r&&(r=clearTimeout(r));var S=k-u;S>24?(k<1/0&&(r=setTimeout(v,k-f.now()-l)),n&&(n=clearInterval(n))):(n||(s=f.now(),n=setInterval(C,i)),t=1,c(v))}}function L(k,S,m){var P=new p;return S=S==null?0:+S,P.restart(function(E){P.stop(),k(E+S)},S,m),P}function x(k,S,m){var P=new p,E=S;return S==null?(P.restart(k,S,m),P):(S=+S,m=m==null?h():+m,P.restart(function O(F){F+=E,P.restart(O,E+=S,m),k(F)},S,m),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=y,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var zXe=we((B8,PXe)=>{(function(e,t){typeof B8=="object"&&typeof PXe!="undefined"?t(B8,SXe(),R8(),kXe(),LXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(B8,function(e,t,r,n,i){"use strict";function a(k,S){var m;k==null&&(k=0),S==null&&(S=0);function P(){var E,O=m.length,F,U=0,G=0;for(E=0;EN.index){var Be=H-He.x-He.vx,ce=re-He.y-He.vy,je=Be*Be+ce*ce;jeH+ge||Tere+ge||beG.r&&(G.r=G[j].r)}function U(){if(S){var G,j=S.length,W;for(m=new Array(j),G=0;G1?(me==null?U.remove(ae):U.set(ae,re(me)),S):U.get(ae)},find:function(ae,me,Le){var Ce=0,de=k.length,te,Se,Te,be,He;for(Le==null?Le=1/0:Le*=Le,Ce=0;Ce1?(j.on(ae,me),S):j.on(ae)}}}function M(){var k,S,m,P=o(-30),E,O=1,F=1/0,U=.81;function G(H){var re,ae=k.length,me=t.quadtree(k,p,y).visitAfter(W);for(m=H,re=0;re=F)return;(H.data!==S||H.next)&&(Le===0&&(Le=s(),te+=Le*Le),Ce===0&&(Ce=s(),te+=Ce*Ce),te{(function(e,t){typeof q8=="object"&&typeof IXe!="undefined"?t(q8):(e=e||self,t(e.d3=e.d3||{}))})(q8,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,u){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,u){this._+="L"+(this._x1=+s)+","+(this._y1=+u)},quadraticCurveTo:function(s,u,l,f){this._+="Q"+ +s+","+ +u+","+(this._x1=+l)+","+(this._y1=+f)},bezierCurveTo:function(s,u,l,f,c,h){this._+="C"+ +s+","+ +u+","+ +l+","+ +f+","+(this._x1=+c)+","+(this._y1=+h)},arcTo:function(s,u,l,f,c){s=+s,u=+u,l=+l,f=+f,c=+c;var h=this._x1,d=this._y1,p=l-s,y=f-u,b=h-s,v=d-u,C=b*b+v*v;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=u);else if(C>n)if(!(Math.abs(v*p-y*b)>n)||!c)this._+="L"+(this._x1=s)+","+(this._y1=u);else{var M=l-h,A=f-d,L=p*p+y*y,x=M*M+A*A,k=Math.sqrt(L),S=Math.sqrt(C),m=c*Math.tan((t-Math.acos((L+C-x)/(2*k*S)))/2),P=m/S,E=m/k;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(u+P*v)),this._+="A"+c+","+c+",0,0,"+ +(v*M>b*A)+","+(this._x1=s+E*p)+","+(this._y1=u+E*y)}},arc:function(s,u,l,f,c,h){s=+s,u=+u,l=+l,h=!!h;var d=l*Math.cos(f),p=l*Math.sin(f),y=s+d,b=u+p,v=1^h,C=h?f-c:c-f;if(l<0)throw new Error("negative radius: "+l);this._x1===null?this._+="M"+y+","+b:(Math.abs(this._x1-y)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+y+","+b),l&&(C<0&&(C=C%r+r),C>i?this._+="A"+l+","+l+",0,1,"+v+","+(s-d)+","+(u-p)+"A"+l+","+l+",0,1,"+v+","+(this._x1=y)+","+(this._y1=b):C>n&&(this._+="A"+l+","+l+",0,"+ +(C>=t)+","+v+","+(this._x1=s+l*Math.cos(c))+","+(this._y1=u+l*Math.sin(c))))},rect:function(s,u,l,f){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)+"h"+ +l+"v"+ +f+"h"+-l+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var f$=we((N8,RXe)=>{(function(e,t){typeof N8=="object"&&typeof RXe!="undefined"?t(N8,DXe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(N8,function(e,t){"use strict";function r(dt){return function(){return dt}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,u=Math.sin,l=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(dt){return dt>1?0:dt<-1?c:Math.acos(dt)}function y(dt){return dt>=1?h:dt<=-1?-h:Math.asin(dt)}function b(dt){return dt.innerRadius}function v(dt){return dt.outerRadius}function C(dt){return dt.startAngle}function M(dt){return dt.endAngle}function A(dt){return dt&&dt.padAngle}function L(dt,$t,fr,gr,Zr,wi,$i,ni){var Xi=fr-dt,aa=gr-$t,Mn=$i-Zr,Un=ni-wi,Ga=Un*Xi-Mn*aa;if(!(Ga*Gawa*wa+ws*ws&&(uo=$a,ls=fo),{cx:uo,cy:ls,x01:-Mn,y01:-Un,x11:uo*(Zr/kn-1),y11:ls*(Zr/kn-1)}}function k(){var dt=b,$t=v,fr=r(0),gr=null,Zr=C,wi=M,$i=A,ni=null;function Xi(){var aa,Mn,Un=+dt.apply(this,arguments),Ga=+$t.apply(this,arguments),ma=Zr.apply(this,arguments)-h,oa=wi.apply(this,arguments)-h,ka=n(oa-ma),so=oa>ma;if(ni||(ni=aa=t.path()),Gaf))ni.moveTo(0,0);else if(ka>d-f)ni.moveTo(Ga*a(ma),Ga*u(ma)),ni.arc(0,0,Ga,ma,oa,!so),Un>f&&(ni.moveTo(Un*a(oa),Un*u(oa)),ni.arc(0,0,Un,oa,ma,so));else{var Kr=ma,Ia=oa,Yo=ma,fa=oa,kn=ka,Ta=ka,ys=$i.apply(this,arguments)/2,uo=ys>f&&(gr?+gr.apply(this,arguments):l(Un*Un+Ga*Ga)),ls=s(n(Ga-Un)/2,+fr.apply(this,arguments)),$a=ls,fo=ls,mn,ra;if(uo>f){var wa=y(uo/Un*u(ys)),ws=y(uo/Ga*u(ys));(kn-=wa*2)>f?(wa*=so?1:-1,Yo+=wa,fa-=wa):(kn=0,Yo=fa=(ma+oa)/2),(Ta-=ws*2)>f?(ws*=so?1:-1,Kr+=ws,Ia-=ws):(Ta=0,Kr=Ia=(ma+oa)/2)}var Co=Ga*a(Kr),Po=Ga*u(Kr),Wi=Un*a(fa),gn=Un*u(fa);if(ls>f){var Ps=Ga*a(Ia),Ha=Ga*u(Ia),Sn=Un*a(Yo),ao=Un*u(Yo),Oa;if(kaf?fo>f?(mn=x(Sn,ao,Co,Po,Ga,fo,so),ra=x(Ps,Ha,Wi,gn,Ga,fo,so),ni.moveTo(mn.cx+mn.x01,mn.cy+mn.y01),fof)||!(kn>f)?ni.lineTo(Wi,gn):$a>f?(mn=x(Wi,gn,Ps,Ha,Un,-$a,so),ra=x(Co,Po,Sn,ao,Un,-$a,so),ni.lineTo(mn.cx+mn.x01,mn.cy+mn.y01),$a=Ga;--ma)ni.point(Ia[ma],Yo[ma]);ni.lineEnd(),ni.areaEnd()}so&&(Ia[Un]=+dt(ka,Un,Mn),Yo[Un]=+fr(ka,Un,Mn),ni.point($t?+$t(ka,Un,Mn):Ia[Un],gr?+gr(ka,Un,Mn):Yo[Un]))}if(Kr)return ni=null,Kr+""||null}function aa(){return O().defined(Zr).curve($i).context(wi)}return Xi.x=function(Mn){return arguments.length?(dt=typeof Mn=="function"?Mn:r(+Mn),$t=null,Xi):dt},Xi.x0=function(Mn){return arguments.length?(dt=typeof Mn=="function"?Mn:r(+Mn),Xi):dt},Xi.x1=function(Mn){return arguments.length?($t=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Xi):$t},Xi.y=function(Mn){return arguments.length?(fr=typeof Mn=="function"?Mn:r(+Mn),gr=null,Xi):fr},Xi.y0=function(Mn){return arguments.length?(fr=typeof Mn=="function"?Mn:r(+Mn),Xi):fr},Xi.y1=function(Mn){return arguments.length?(gr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Xi):gr},Xi.lineX0=Xi.lineY0=function(){return aa().x(dt).y(fr)},Xi.lineY1=function(){return aa().x(dt).y(gr)},Xi.lineX1=function(){return aa().x($t).y(fr)},Xi.defined=function(Mn){return arguments.length?(Zr=typeof Mn=="function"?Mn:r(!!Mn),Xi):Zr},Xi.curve=function(Mn){return arguments.length?($i=Mn,wi!=null&&(ni=$i(wi)),Xi):$i},Xi.context=function(Mn){return arguments.length?(Mn==null?wi=ni=null:ni=$i(wi=Mn),Xi):wi},Xi}function U(dt,$t){return $tdt?1:$t>=dt?0:NaN}function G(dt){return dt}function j(){var dt=G,$t=U,fr=null,gr=r(0),Zr=r(d),wi=r(0);function $i(ni){var Xi,aa=ni.length,Mn,Un,Ga=0,ma=new Array(aa),oa=new Array(aa),ka=+gr.apply(this,arguments),so=Math.min(d,Math.max(-d,Zr.apply(this,arguments)-ka)),Kr,Ia=Math.min(Math.abs(so)/aa,wi.apply(this,arguments)),Yo=Ia*(so<0?-1:1),fa;for(Xi=0;Xi0&&(Ga+=fa);for($t!=null?ma.sort(function(kn,Ta){return $t(oa[kn],oa[Ta])}):fr!=null&&ma.sort(function(kn,Ta){return fr(ni[kn],ni[Ta])}),Xi=0,Un=Ga?(so-aa*Yo)/Ga:0;Xi0?fa*Un:0)+Yo,oa[Mn]={data:ni[Mn],index:Xi,value:fa,startAngle:ka,endAngle:Kr,padAngle:Ia};return oa}return $i.value=function(ni){return arguments.length?(dt=typeof ni=="function"?ni:r(+ni),$i):dt},$i.sortValues=function(ni){return arguments.length?($t=ni,fr=null,$i):$t},$i.sort=function(ni){return arguments.length?(fr=ni,$t=null,$i):fr},$i.startAngle=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),$i):gr},$i.endAngle=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),$i):Zr},$i.padAngle=function(ni){return arguments.length?(wi=typeof ni=="function"?ni:r(+ni),$i):wi},$i}var W=H(m);function N(dt){this._curve=dt}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(dt,$t){this._curve.point($t*Math.sin(dt),$t*-Math.cos(dt))}};function H(dt){function $t(fr){return new N(dt(fr))}return $t._curve=dt,$t}function re(dt){var $t=dt.curve;return dt.angle=dt.x,delete dt.x,dt.radius=dt.y,delete dt.y,dt.curve=function(fr){return arguments.length?$t(H(fr)):$t()._curve},dt}function ae(){return re(O().curve(W))}function me(){var dt=F().curve(W),$t=dt.curve,fr=dt.lineX0,gr=dt.lineX1,Zr=dt.lineY0,wi=dt.lineY1;return dt.angle=dt.x,delete dt.x,dt.startAngle=dt.x0,delete dt.x0,dt.endAngle=dt.x1,delete dt.x1,dt.radius=dt.y,delete dt.y,dt.innerRadius=dt.y0,delete dt.y0,dt.outerRadius=dt.y1,delete dt.y1,dt.lineStartAngle=function(){return re(fr())},delete dt.lineX0,dt.lineEndAngle=function(){return re(gr())},delete dt.lineX1,dt.lineInnerRadius=function(){return re(Zr())},delete dt.lineY0,dt.lineOuterRadius=function(){return re(wi())},delete dt.lineY1,dt.curve=function($i){return arguments.length?$t(H($i)):$t()._curve},dt}function Le(dt,$t){return[($t=+$t)*Math.cos(dt-=Math.PI/2),$t*Math.sin(dt)]}var Ce=Array.prototype.slice;function de(dt){return dt.source}function te(dt){return dt.target}function Se(dt){var $t=de,fr=te,gr=P,Zr=E,wi=null;function $i(){var ni,Xi=Ce.call(arguments),aa=$t.apply(this,Xi),Mn=fr.apply(this,Xi);if(wi||(wi=ni=t.path()),dt(wi,+gr.apply(this,(Xi[0]=aa,Xi)),+Zr.apply(this,Xi),+gr.apply(this,(Xi[0]=Mn,Xi)),+Zr.apply(this,Xi)),ni)return wi=null,ni+""||null}return $i.source=function(ni){return arguments.length?($t=ni,$i):$t},$i.target=function(ni){return arguments.length?(fr=ni,$i):fr},$i.x=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),$i):gr},$i.y=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),$i):Zr},$i.context=function(ni){return arguments.length?(wi=ni==null?null:ni,$i):wi},$i}function Te(dt,$t,fr,gr,Zr){dt.moveTo($t,fr),dt.bezierCurveTo($t=($t+gr)/2,fr,$t,Zr,gr,Zr)}function be(dt,$t,fr,gr,Zr){dt.moveTo($t,fr),dt.bezierCurveTo($t,fr=(fr+Zr)/2,gr,fr,gr,Zr)}function He(dt,$t,fr,gr,Zr){var wi=Le($t,fr),$i=Le($t,fr=(fr+Zr)/2),ni=Le(gr,fr),Xi=Le(gr,Zr);dt.moveTo(wi[0],wi[1]),dt.bezierCurveTo($i[0],$i[1],ni[0],ni[1],Xi[0],Xi[1])}function Ie(){return Se(Te)}function ge(){return Se(be)}function Be(){var dt=Se(He);return dt.angle=dt.x,delete dt.x,dt.radius=dt.y,delete dt.y,dt}var ce={draw:function(dt,$t){var fr=Math.sqrt($t/c);dt.moveTo(fr,0),dt.arc(0,0,fr,0,d)}},je={draw:function(dt,$t){var fr=Math.sqrt($t/5)/2;dt.moveTo(-3*fr,-fr),dt.lineTo(-fr,-fr),dt.lineTo(-fr,-3*fr),dt.lineTo(fr,-3*fr),dt.lineTo(fr,-fr),dt.lineTo(3*fr,-fr),dt.lineTo(3*fr,fr),dt.lineTo(fr,fr),dt.lineTo(fr,3*fr),dt.lineTo(-fr,3*fr),dt.lineTo(-fr,fr),dt.lineTo(-3*fr,fr),dt.closePath()}},rt=Math.sqrt(1/3),bt=rt*2,Ot={draw:function(dt,$t){var fr=Math.sqrt($t/bt),gr=fr*rt;dt.moveTo(0,-fr),dt.lineTo(gr,0),dt.lineTo(0,fr),dt.lineTo(-gr,0),dt.closePath()}},it=.8908130915292852,Ke=Math.sin(c/10)/Math.sin(7*c/10),zt=Math.sin(d/10)*Ke,Mt=-Math.cos(d/10)*Ke,kt={draw:function(dt,$t){var fr=Math.sqrt($t*it),gr=zt*fr,Zr=Mt*fr;dt.moveTo(0,-fr),dt.lineTo(gr,Zr);for(var wi=1;wi<5;++wi){var $i=d*wi/5,ni=Math.cos($i),Xi=Math.sin($i);dt.lineTo(Xi*fr,-ni*fr),dt.lineTo(ni*gr-Xi*Zr,Xi*gr+ni*Zr)}dt.closePath()}},$e={draw:function(dt,$t){var fr=Math.sqrt($t),gr=-fr/2;dt.rect(gr,gr,fr,fr)}},De=Math.sqrt(3),Me={draw:function(dt,$t){var fr=-Math.sqrt($t/(De*3));dt.moveTo(0,fr*2),dt.lineTo(-De*fr,-fr),dt.lineTo(De*fr,-fr),dt.closePath()}},oe=-.5,Ne=Math.sqrt(3)/2,vt=1/Math.sqrt(12),lt=(vt/2+1)*3,We={draw:function(dt,$t){var fr=Math.sqrt($t/lt),gr=fr/2,Zr=fr*vt,wi=gr,$i=fr*vt+fr,ni=-wi,Xi=$i;dt.moveTo(gr,Zr),dt.lineTo(wi,$i),dt.lineTo(ni,Xi),dt.lineTo(oe*gr-Ne*Zr,Ne*gr+oe*Zr),dt.lineTo(oe*wi-Ne*$i,Ne*wi+oe*$i),dt.lineTo(oe*ni-Ne*Xi,Ne*ni+oe*Xi),dt.lineTo(oe*gr+Ne*Zr,oe*Zr-Ne*gr),dt.lineTo(oe*wi+Ne*$i,oe*$i-Ne*wi),dt.lineTo(oe*ni+Ne*Xi,oe*Xi-Ne*ni),dt.closePath()}},Ve=[ce,je,Ot,$e,kt,Me,We];function et(){var dt=r(ce),$t=r(64),fr=null;function gr(){var Zr;if(fr||(fr=Zr=t.path()),dt.apply(this,arguments).draw(fr,+$t.apply(this,arguments)),Zr)return fr=null,Zr+""||null}return gr.type=function(Zr){return arguments.length?(dt=typeof Zr=="function"?Zr:r(Zr),gr):dt},gr.size=function(Zr){return arguments.length?($t=typeof Zr=="function"?Zr:r(+Zr),gr):$t},gr.context=function(Zr){return arguments.length?(fr=Zr==null?null:Zr,gr):fr},gr}function tt(){}function Lt(dt,$t,fr){dt._context.bezierCurveTo((2*dt._x0+dt._x1)/3,(2*dt._y0+dt._y1)/3,(dt._x0+2*dt._x1)/3,(dt._y0+2*dt._y1)/3,(dt._x0+4*dt._x1+$t)/6,(dt._y0+4*dt._y1+fr)/6)}function jt(dt){this._context=dt}jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Lt(this,dt,$t);break}this._x0=this._x1,this._x1=dt,this._y0=this._y1,this._y1=$t}};function or(dt){return new jt(dt)}function yr(dt){this._context=dt}yr.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._x2=dt,this._y2=$t;break;case 1:this._point=2,this._x3=dt,this._y3=$t;break;case 2:this._point=3,this._x4=dt,this._y4=$t,this._context.moveTo((this._x0+4*this._x1+dt)/6,(this._y0+4*this._y1+$t)/6);break;default:Lt(this,dt,$t);break}this._x0=this._x1,this._x1=dt,this._y0=this._y1,this._y1=$t}};function vr(dt){return new yr(dt)}function Vt(dt){this._context=dt}Vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var fr=(this._x0+4*this._x1+dt)/6,gr=(this._y0+4*this._y1+$t)/6;this._line?this._context.lineTo(fr,gr):this._context.moveTo(fr,gr);break;case 3:this._point=4;default:Lt(this,dt,$t);break}this._x0=this._x1,this._x1=dt,this._y0=this._y1,this._y1=$t}};function Pe(dt){return new Vt(dt)}function xe(dt,$t){this._basis=new jt(dt),this._beta=$t}xe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var dt=this._x,$t=this._y,fr=dt.length-1;if(fr>0)for(var gr=dt[0],Zr=$t[0],wi=dt[fr]-gr,$i=$t[fr]-Zr,ni=-1,Xi;++ni<=fr;)Xi=ni/fr,this._basis.point(this._beta*dt[ni]+(1-this._beta)*(gr+Xi*wi),this._beta*$t[ni]+(1-this._beta)*(Zr+Xi*$i));this._x=this._y=null,this._basis.lineEnd()},point:function(dt,$t){this._x.push(+dt),this._y.push(+$t)}};var Oe=function dt($t){function fr(gr){return $t===1?new jt(gr):new xe(gr,$t)}return fr.beta=function(gr){return dt(+gr)},fr}(.85);function ze(dt,$t,fr){dt._context.bezierCurveTo(dt._x1+dt._k*(dt._x2-dt._x0),dt._y1+dt._k*(dt._y2-dt._y0),dt._x2+dt._k*(dt._x1-$t),dt._y2+dt._k*(dt._y1-fr),dt._x2,dt._y2)}function Re(dt,$t){this._context=dt,this._k=(1-$t)/6}Re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ze(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2,this._x1=dt,this._y1=$t;break;case 2:this._point=3;default:ze(this,dt,$t);break}this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var ht=function dt($t){function fr(gr){return new Re(gr,$t)}return fr.tension=function(gr){return dt(+gr)},fr}(0);function st(dt,$t){this._context=dt,this._k=(1-$t)/6}st.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._x3=dt,this._y3=$t;break;case 1:this._point=2,this._context.moveTo(this._x4=dt,this._y4=$t);break;case 2:this._point=3,this._x5=dt,this._y5=$t;break;default:ze(this,dt,$t);break}this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var gt=function dt($t){function fr(gr){return new st(gr,$t)}return fr.tension=function(gr){return dt(+gr)},fr}(0);function xt(dt,$t){this._context=dt,this._k=(1-$t)/6}xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ze(this,dt,$t);break}this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var pr=function dt($t){function fr(gr){return new xt(gr,$t)}return fr.tension=function(gr){return dt(+gr)},fr}(0);function br(dt,$t,fr){var gr=dt._x1,Zr=dt._y1,wi=dt._x2,$i=dt._y2;if(dt._l01_a>f){var ni=2*dt._l01_2a+3*dt._l01_a*dt._l12_a+dt._l12_2a,Xi=3*dt._l01_a*(dt._l01_a+dt._l12_a);gr=(gr*ni-dt._x0*dt._l12_2a+dt._x2*dt._l01_2a)/Xi,Zr=(Zr*ni-dt._y0*dt._l12_2a+dt._y2*dt._l01_2a)/Xi}if(dt._l23_a>f){var aa=2*dt._l23_2a+3*dt._l23_a*dt._l12_a+dt._l12_2a,Mn=3*dt._l23_a*(dt._l23_a+dt._l12_a);wi=(wi*aa+dt._x1*dt._l23_2a-$t*dt._l12_2a)/Mn,$i=($i*aa+dt._y1*dt._l23_2a-fr*dt._l12_2a)/Mn}dt._context.bezierCurveTo(gr,Zr,wi,$i,dt._x2,dt._y2)}function cr(dt,$t){this._context=dt,this._alpha=$t}cr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){if(dt=+dt,$t=+$t,this._point){var fr=this._x2-dt,gr=this._y2-$t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(fr*fr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2;break;case 2:this._point=3;default:br(this,dt,$t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var Er=function dt($t){function fr(gr){return $t?new cr(gr,$t):new Re(gr,0)}return fr.alpha=function(gr){return dt(+gr)},fr}(.5);function ii(dt,$t){this._context=dt,this._alpha=$t}ii.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(dt,$t){if(dt=+dt,$t=+$t,this._point){var fr=this._x2-dt,gr=this._y2-$t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(fr*fr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=dt,this._y3=$t;break;case 1:this._point=2,this._context.moveTo(this._x4=dt,this._y4=$t);break;case 2:this._point=3,this._x5=dt,this._y5=$t;break;default:br(this,dt,$t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var jr=function dt($t){function fr(gr){return $t?new ii(gr,$t):new st(gr,0)}return fr.alpha=function(gr){return dt(+gr)},fr}(.5);function kr(dt,$t){this._context=dt,this._alpha=$t}kr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){if(dt=+dt,$t=+$t,this._point){var fr=this._x2-dt,gr=this._y2-$t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(fr*fr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:br(this,dt,$t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var Vr=function dt($t){function fr(gr){return $t?new kr(gr,$t):new xt(gr,0)}return fr.alpha=function(gr){return dt(+gr)},fr}(.5);function Ai(dt){this._context=dt}Ai.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(dt,$t){dt=+dt,$t=+$t,this._point?this._context.lineTo(dt,$t):(this._point=1,this._context.moveTo(dt,$t))}};function Bi(dt){return new Ai(dt)}function Di(dt){return dt<0?-1:1}function ln(dt,$t,fr){var gr=dt._x1-dt._x0,Zr=$t-dt._x1,wi=(dt._y1-dt._y0)/(gr||Zr<0&&-0),$i=(fr-dt._y1)/(Zr||gr<0&&-0),ni=(wi*Zr+$i*gr)/(gr+Zr);return(Di(wi)+Di($i))*Math.min(Math.abs(wi),Math.abs($i),.5*Math.abs(ni))||0}function hn(dt,$t){var fr=dt._x1-dt._x0;return fr?(3*(dt._y1-dt._y0)/fr-$t)/2:$t}function qr(dt,$t,fr){var gr=dt._x0,Zr=dt._y0,wi=dt._x1,$i=dt._y1,ni=(wi-gr)/3;dt._context.bezierCurveTo(gr+ni,Zr+ni*$t,wi-ni,$i-ni*fr,wi,$i)}function _i(dt){this._context=dt}_i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:qr(this,this._t0,hn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){var fr=NaN;if(dt=+dt,$t=+$t,!(dt===this._x1&&$t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2;break;case 2:this._point=3,qr(this,hn(this,fr=ln(this,dt,$t)),fr);break;default:qr(this,this._t0,fr=ln(this,dt,$t));break}this._x0=this._x1,this._x1=dt,this._y0=this._y1,this._y1=$t,this._t0=fr}}};function zi(dt){this._context=new Rt(dt)}(zi.prototype=Object.create(_i.prototype)).point=function(dt,$t){_i.prototype.point.call(this,$t,dt)};function Rt(dt){this._context=dt}Rt.prototype={moveTo:function(dt,$t){this._context.moveTo($t,dt)},closePath:function(){this._context.closePath()},lineTo:function(dt,$t){this._context.lineTo($t,dt)},bezierCurveTo:function(dt,$t,fr,gr,Zr,wi){this._context.bezierCurveTo($t,dt,gr,fr,wi,Zr)}};function _t(dt){return new _i(dt)}function qt(dt){return new zi(dt)}function Nt(dt){this._context=dt}Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var dt=this._x,$t=this._y,fr=dt.length;if(fr)if(this._line?this._context.lineTo(dt[0],$t[0]):this._context.moveTo(dt[0],$t[0]),fr===2)this._context.lineTo(dt[1],$t[1]);else for(var gr=mr(dt),Zr=mr($t),wi=0,$i=1;$i=0;--$t)Zr[$t]=($i[$t]-Zr[$t+1])/wi[$t];for(wi[fr-1]=(dt[fr]+Zr[fr-1])/2,$t=0;$t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,$t),this._context.lineTo(dt,$t);else{var fr=this._x*(1-this._t)+dt*this._t;this._context.lineTo(fr,this._y),this._context.lineTo(fr,$t)}break}}this._x=dt,this._y=$t}};function Fr(dt){return new Nr(dt,.5)}function Gr(dt){return new Nr(dt,0)}function Hr(dt){return new Nr(dt,1)}function mi(dt,$t){if(($i=dt.length)>1)for(var fr=1,gr,Zr,wi=dt[$t[0]],$i,ni=wi.length;fr<$i;++fr)for(Zr=wi,wi=dt[$t[fr]],gr=0;gr=0;)fr[$t]=$t;return fr}function Vi(dt,$t){return dt[$t]}function ti(){var dt=r([]),$t=Ei,fr=mi,gr=Vi;function Zr(wi){var $i=dt.apply(this,arguments),ni,Xi=wi.length,aa=$i.length,Mn=new Array(aa),Un;for(ni=0;ni0){for(var fr,gr,Zr=0,wi=dt[0].length,$i;Zr0)for(var fr,gr=0,Zr,wi,$i,ni,Xi,aa=dt[$t[0]].length;gr0?(Zr[0]=$i,Zr[1]=$i+=wi):wi<0?(Zr[1]=ni,Zr[0]=ni+=wi):(Zr[0]=0,Zr[1]=wi)}function oi(dt,$t){if((Zr=dt.length)>0){for(var fr=0,gr=dt[$t[0]],Zr,wi=gr.length;fr0)||!((wi=(Zr=dt[$t[0]]).length)>0))){for(var fr=0,gr=1,Zr,wi,$i;grwi&&(wi=Zr,fr=$t);return fr}function Ri(dt){var $t=dt.map(Ii);return Ei(dt).sort(function(fr,gr){return $t[fr]-$t[gr]})}function Ii(dt){for(var $t=0,fr=-1,gr=dt.length,Zr;++fr{(function(e,t){typeof U8=="object"&&typeof FXe!="undefined"?t(U8,dk(),R8(),f$()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(U8,function(e,t,r,n){"use strict";function i(m){return m.target.depth}function a(m){return m.depth}function o(m,P){return P-1-m.height}function s(m,P){return m.sourceLinks.length?m.depth:P-1}function u(m){return m.targetLinks.length?m.depth:m.sourceLinks.length?t.min(m.sourceLinks,i)-1:0}function l(m){return function(){return m}}function f(m,P){return h(m.source,P.source)||m.index-P.index}function c(m,P){return h(m.target,P.target)||m.index-P.index}function h(m,P){return m.y0-P.y0}function d(m){return m.value}function p(m){return(m.y0+m.y1)/2}function y(m){return p(m.source)*m.value}function b(m){return p(m.target)*m.value}function v(m){return m.index}function C(m){return m.nodes}function M(m){return m.links}function A(m,P){var E=m.get(P);if(!E)throw new Error("missing: "+P);return E}var L=function(){var m=0,P=0,E=1,O=1,F=24,U=8,G=v,j=s,W=C,N=M,H=32,re=2/3;function ae(){var Se={nodes:W.apply(null,arguments),links:N.apply(null,arguments)};return me(Se),Le(Se),Ce(Se),de(Se,H),te(Se),Se}ae.update=function(Se){return te(Se),Se},ae.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:l(Se),ae):G},ae.nodeAlign=function(Se){return arguments.length?(j=typeof Se=="function"?Se:l(Se),ae):j},ae.nodeWidth=function(Se){return arguments.length?(F=+Se,ae):F},ae.nodePadding=function(Se){return arguments.length?(U=+Se,ae):U},ae.nodes=function(Se){return arguments.length?(W=typeof Se=="function"?Se:l(Se),ae):W},ae.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:l(Se),ae):N},ae.size=function(Se){return arguments.length?(m=P=0,E=+Se[0],O=+Se[1],ae):[E-m,O-P]},ae.extent=function(Se){return arguments.length?(m=+Se[0][0],E=+Se[1][0],P=+Se[0][1],O=+Se[1][1],ae):[[m,P],[E,O]]},ae.iterations=function(Se){return arguments.length?(H=+Se,ae):H};function me(Se){Se.nodes.forEach(function(be,He){be.index=He,be.sourceLinks=[],be.targetLinks=[]});var Te=r.map(Se.nodes,G);Se.links.forEach(function(be,He){be.index=He;var Ie=be.source,ge=be.target;typeof Ie!="object"&&(Ie=be.source=A(Te,Ie)),typeof ge!="object"&&(ge=be.target=A(Te,ge)),Ie.sourceLinks.push(be),ge.targetLinks.push(be)})}function Le(Se){Se.nodes.forEach(function(Te){Te.value=Math.max(t.sum(Te.sourceLinks,d),t.sum(Te.targetLinks,d))})}function Ce(Se){var Te,be,He;for(Te=Se.nodes,be=[],He=0;Te.length;++He,Te=be,be=[])Te.forEach(function(ge){ge.depth=He,ge.sourceLinks.forEach(function(Be){be.indexOf(Be.target)<0&&be.push(Be.target)})});for(Te=Se.nodes,be=[],He=0;Te.length;++He,Te=be,be=[])Te.forEach(function(ge){ge.height=He,ge.targetLinks.forEach(function(Be){be.indexOf(Be.source)<0&&be.push(Be.source)})});var Ie=(E-m-F)/(He-1);Se.nodes.forEach(function(ge){ge.x1=(ge.x0=m+Math.max(0,Math.min(He-1,Math.floor(j.call(null,ge,He))))*Ie)+F})}function de(Se){var Te=r.nest().key(function(je){return je.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(je){return je.values});Ie(),ce();for(var be=1,He=H;He>0;--He)Be(be*=.99),ce(),ge(be),ce();function Ie(){var je=t.max(Te,function(Ot){return Ot.length}),rt=re*(O-P)/(je-1);U>rt&&(U=rt);var bt=t.min(Te,function(Ot){return(O-P-(Ot.length-1)*U)/t.sum(Ot,d)});Te.forEach(function(Ot){Ot.forEach(function(it,Ke){it.y1=(it.y0=Ke)+it.value*bt})}),Se.links.forEach(function(Ot){Ot.width=Ot.value*bt})}function ge(je){Te.forEach(function(rt){rt.forEach(function(bt){if(bt.targetLinks.length){var Ot=(t.sum(bt.targetLinks,y)/t.sum(bt.targetLinks,d)-p(bt))*je;bt.y0+=Ot,bt.y1+=Ot}})})}function Be(je){Te.slice().reverse().forEach(function(rt){rt.forEach(function(bt){if(bt.sourceLinks.length){var Ot=(t.sum(bt.sourceLinks,b)/t.sum(bt.sourceLinks,d)-p(bt))*je;bt.y0+=Ot,bt.y1+=Ot}})})}function ce(){Te.forEach(function(je){var rt,bt,Ot=P,it=je.length,Ke;for(je.sort(h),Ke=0;Ke0&&(rt.y0+=bt,rt.y1+=bt),Ot=rt.y1+U;if(bt=Ot-U-O,bt>0)for(Ot=rt.y0-=bt,rt.y1-=bt,Ke=it-2;Ke>=0;--Ke)rt=je[Ke],bt=rt.y1+U-Ot,bt>0&&(rt.y0-=bt,rt.y1-=bt),Ot=rt.y0})}}function te(Se){Se.nodes.forEach(function(Te){Te.sourceLinks.sort(c),Te.targetLinks.sort(f)}),Se.nodes.forEach(function(Te){var be=Te.y0,He=be;Te.sourceLinks.forEach(function(Ie){Ie.y0=be+Ie.width/2,be+=Ie.width}),Te.targetLinks.forEach(function(Ie){Ie.y1=He+Ie.width/2,He+=Ie.width})})}return ae};function x(m){return[m.source.x1,m.y0]}function k(m){return[m.target.x0,m.y1]}var S=function(){return n.linkHorizontal().source(x).target(k)};e.sankey=L,e.sankeyCenter=u,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=S,Object.defineProperty(e,"__esModule",{value:!0})})});var qXe=we((f3r,BXe)=>{var vKt=u$();BXe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],u;function l(M){a[M]=!1,o.hasOwnProperty(M)&&Object.keys(o[M]).forEach(function(A){delete o[M][A],a[A]&&l(A)})}function f(M){var A=!1;i.push(M),a[M]=!0;var L,x;for(L=0;L=M})}function d(M){h(M);for(var A=t,L=vKt(A),x=L.components.filter(function(F){return F.length>1}),k=1/0,S,m=0;m{(function(e,t){typeof V8=="object"&&typeof NXe!="undefined"?t(V8,dk(),R8(),f$(),qXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(V8,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(it){return it.target.depth}function o(it){return it.depth}function s(it,Ke){return Ke-1-it.height}function u(it,Ke){return it.sourceLinks.length?it.depth:Ke-1}function l(it){return it.targetLinks.length?it.depth:it.sourceLinks.length?t.min(it.sourceLinks,a)-1:0}function f(it){return function(){return it}}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(it){return typeof it}:function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it};function h(it,Ke){return p(it.source,Ke.source)||it.index-Ke.index}function d(it,Ke){return p(it.target,Ke.target)||it.index-Ke.index}function p(it,Ke){return it.partOfCycle===Ke.partOfCycle?it.y0-Ke.y0:it.circularLinkType==="top"||Ke.circularLinkType==="bottom"?-1:1}function y(it){return it.value}function b(it){return(it.y0+it.y1)/2}function v(it){return b(it.source)}function C(it){return b(it.target)}function M(it){return it.index}function A(it){return it.nodes}function L(it){return it.links}function x(it,Ke){var zt=it.get(Ke);if(!zt)throw new Error("missing: "+Ke);return zt}function k(it,Ke){return Ke(it)}var S=25,m=10,P=.3;function E(){var it=0,Ke=0,zt=1,Mt=1,kt=24,$e,De=M,Me=u,oe=A,Ne=L,vt=32,lt=2,We,Ve=null;function et(){var Pe={nodes:oe.apply(null,arguments),links:Ne.apply(null,arguments)};tt(Pe),O(Pe,De,Ve),Lt(Pe),yr(Pe),F(Pe,De),vr(Pe,vt,De),Vt(Pe);for(var xe=4,Oe=0;Oe0?xe+S+m:xe,Oe=Oe>0?Oe+S+m:Oe,ze=ze>0?ze+S+m:ze,Re=Re>0?Re+S+m:Re,{top:xe,bottom:Oe,left:Re,right:ze}}function or(Pe,xe){var Oe=t.max(Pe.nodes,function(pr){return pr.column}),ze=zt-it,Re=Mt-Ke,ht=ze+xe.right+xe.left,st=Re+xe.top+xe.bottom,gt=ze/ht,xt=Re/st;return it=it*gt+xe.left,zt=xe.right==0?zt:zt*gt,Ke=Ke*xt+xe.top,Mt=Mt*xt,Pe.nodes.forEach(function(pr){pr.x0=it+pr.column*((zt-it-kt)/Oe),pr.x1=pr.x0+kt}),xt}function yr(Pe){var xe,Oe,ze;for(xe=Pe.nodes,Oe=[],ze=0;xe.length;++ze,xe=Oe,Oe=[])xe.forEach(function(Re){Re.depth=ze,Re.sourceLinks.forEach(function(ht){Oe.indexOf(ht.target)<0&&!ht.circular&&Oe.push(ht.target)})});for(xe=Pe.nodes,Oe=[],ze=0;xe.length;++ze,xe=Oe,Oe=[])xe.forEach(function(Re){Re.height=ze,Re.targetLinks.forEach(function(ht){Oe.indexOf(ht.source)<0&&!ht.circular&&Oe.push(ht.source)})});Pe.nodes.forEach(function(Re){Re.column=Math.floor(Me.call(null,Re,ze))})}function vr(Pe,xe,Oe){var ze=r.nest().key(function(pr){return pr.column}).sortKeys(t.ascending).entries(Pe.nodes).map(function(pr){return pr.values});st(Oe),xt();for(var Re=1,ht=xe;ht>0;--ht)gt(Re*=.99,Oe),xt();function st(pr){if(We){var br=1/0;ze.forEach(function(jr){var kr=Mt*We/(jr.length+1);br=kr0))if(jr==0&&ii==1)Vr=kr.y1-kr.y0,kr.y0=Mt/2-Vr/2,kr.y1=Mt/2+Vr/2;else if(jr==cr-1&&ii==1)Vr=kr.y1-kr.y0,kr.y0=Mt/2-Vr/2,kr.y1=Mt/2+Vr/2;else{var Ai=0,Bi=t.mean(kr.sourceLinks,C),Di=t.mean(kr.targetLinks,v);Bi&&Di?Ai=(Bi+Di)/2:Ai=Bi||Di;var ln=(Ai-b(kr))*pr;kr.y0+=ln,kr.y1+=ln}})})}function xt(){ze.forEach(function(pr){var br,cr,Er=Ke,ii=pr.length,jr;for(pr.sort(p),jr=0;jr0&&(br.y0+=cr,br.y1+=cr),Er=br.y1+$e;if(cr=Er-$e-Mt,cr>0)for(Er=br.y0-=cr,br.y1-=cr,jr=ii-2;jr>=0;--jr)br=pr[jr],cr=br.y1+$e-Er,cr>0&&(br.y0-=cr,br.y1-=cr),Er=br.y0})}}function Vt(Pe){Pe.nodes.forEach(function(xe){xe.sourceLinks.sort(d),xe.targetLinks.sort(h)}),Pe.nodes.forEach(function(xe){var Oe=xe.y0,ze=Oe,Re=xe.y1,ht=Re;xe.sourceLinks.forEach(function(st){st.circular?(st.y0=Re-st.width/2,Re=Re-st.width):(st.y0=Oe+st.width/2,Oe+=st.width)}),xe.targetLinks.forEach(function(st){st.circular?(st.y1=ht-st.width/2,ht=ht-st.width):(st.y1=ze+st.width/2,ze+=st.width)})})}return et}function O(it,Ke,zt){var Mt=0;if(zt===null){for(var kt=[],$e=0;$eKe.source.column)}function j(it,Ke){var zt=0;it.sourceLinks.forEach(function(kt){zt=kt.circular&&!bt(kt,Ke)?zt+1:zt});var Mt=0;return it.targetLinks.forEach(function(kt){Mt=kt.circular&&!bt(kt,Ke)?Mt+1:Mt}),zt+Mt}function W(it){var Ke=it.source.sourceLinks,zt=0;Ke.forEach(function($e){zt=$e.circular?zt+1:zt});var Mt=it.target.targetLinks,kt=0;return Mt.forEach(function($e){kt=$e.circular?kt+1:kt}),!(zt>1||kt>1)}function N(it,Ke,zt){return it.sort(ae),it.forEach(function(Mt,kt){var $e=0;if(bt(Mt,zt)&&W(Mt))Mt.circularPathData.verticalBuffer=$e+Mt.width/2;else{var De=0;for(De;De$e?Me:$e}Mt.circularPathData.verticalBuffer=$e+Mt.width/2}}),it}function H(it,Ke,zt,Mt){var kt=5,$e=t.min(it.links,function(oe){return oe.source.y0});it.links.forEach(function(oe){oe.circular&&(oe.circularPathData={})});var De=it.links.filter(function(oe){return oe.circularLinkType=="top"});N(De,Ke,Mt);var Me=it.links.filter(function(oe){return oe.circularLinkType=="bottom"});N(Me,Ke,Mt),it.links.forEach(function(oe){if(oe.circular){if(oe.circularPathData.arcRadius=oe.width+m,oe.circularPathData.leftNodeBuffer=kt,oe.circularPathData.rightNodeBuffer=kt,oe.circularPathData.sourceWidth=oe.source.x1-oe.source.x0,oe.circularPathData.sourceX=oe.source.x0+oe.circularPathData.sourceWidth,oe.circularPathData.targetX=oe.target.x0,oe.circularPathData.sourceY=oe.y0,oe.circularPathData.targetY=oe.y1,bt(oe,Mt)&&W(oe))oe.circularPathData.leftSmallArcRadius=m+oe.width/2,oe.circularPathData.leftLargeArcRadius=m+oe.width/2,oe.circularPathData.rightSmallArcRadius=m+oe.width/2,oe.circularPathData.rightLargeArcRadius=m+oe.width/2,oe.circularLinkType=="bottom"?(oe.circularPathData.verticalFullExtent=oe.source.y1+S+oe.circularPathData.verticalBuffer,oe.circularPathData.verticalLeftInnerExtent=oe.circularPathData.verticalFullExtent-oe.circularPathData.leftLargeArcRadius,oe.circularPathData.verticalRightInnerExtent=oe.circularPathData.verticalFullExtent-oe.circularPathData.rightLargeArcRadius):(oe.circularPathData.verticalFullExtent=oe.source.y0-S-oe.circularPathData.verticalBuffer,oe.circularPathData.verticalLeftInnerExtent=oe.circularPathData.verticalFullExtent+oe.circularPathData.leftLargeArcRadius,oe.circularPathData.verticalRightInnerExtent=oe.circularPathData.verticalFullExtent+oe.circularPathData.rightLargeArcRadius);else{var Ne=oe.source.column,vt=oe.circularLinkType,lt=it.links.filter(function(et){return et.source.column==Ne&&et.circularLinkType==vt});oe.circularLinkType=="bottom"?lt.sort(Le):lt.sort(me);var We=0;lt.forEach(function(et,tt){et.circularLinkID==oe.circularLinkID&&(oe.circularPathData.leftSmallArcRadius=m+oe.width/2+We,oe.circularPathData.leftLargeArcRadius=m+oe.width/2+tt*Ke+We),We=We+et.width}),Ne=oe.target.column,lt=it.links.filter(function(et){return et.target.column==Ne&&et.circularLinkType==vt}),oe.circularLinkType=="bottom"?lt.sort(de):lt.sort(Ce),We=0,lt.forEach(function(et,tt){et.circularLinkID==oe.circularLinkID&&(oe.circularPathData.rightSmallArcRadius=m+oe.width/2+We,oe.circularPathData.rightLargeArcRadius=m+oe.width/2+tt*Ke+We),We=We+et.width}),oe.circularLinkType=="bottom"?(oe.circularPathData.verticalFullExtent=Math.max(zt,oe.source.y1,oe.target.y1)+S+oe.circularPathData.verticalBuffer,oe.circularPathData.verticalLeftInnerExtent=oe.circularPathData.verticalFullExtent-oe.circularPathData.leftLargeArcRadius,oe.circularPathData.verticalRightInnerExtent=oe.circularPathData.verticalFullExtent-oe.circularPathData.rightLargeArcRadius):(oe.circularPathData.verticalFullExtent=$e-S-oe.circularPathData.verticalBuffer,oe.circularPathData.verticalLeftInnerExtent=oe.circularPathData.verticalFullExtent+oe.circularPathData.leftLargeArcRadius,oe.circularPathData.verticalRightInnerExtent=oe.circularPathData.verticalFullExtent+oe.circularPathData.rightLargeArcRadius)}oe.circularPathData.leftInnerExtent=oe.circularPathData.sourceX+oe.circularPathData.leftNodeBuffer,oe.circularPathData.rightInnerExtent=oe.circularPathData.targetX-oe.circularPathData.rightNodeBuffer,oe.circularPathData.leftFullExtent=oe.circularPathData.sourceX+oe.circularPathData.leftLargeArcRadius+oe.circularPathData.leftNodeBuffer,oe.circularPathData.rightFullExtent=oe.circularPathData.targetX-oe.circularPathData.rightLargeArcRadius-oe.circularPathData.rightNodeBuffer}if(oe.circular)oe.path=re(oe);else{var Ve=n.linkHorizontal().source(function(et){var tt=et.source.x0+(et.source.x1-et.source.x0),Lt=et.y0;return[tt,Lt]}).target(function(et){var tt=et.target.x0,Lt=et.y1;return[tt,Lt]});oe.path=Ve(oe)}})}function re(it){var Ke="";return it.circularLinkType=="top"?Ke="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 0 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY-it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 0 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 0 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY-it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 0 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY:Ke="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 1 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY+it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 1 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 1 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY+it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 1 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY,Ke}function ae(it,Ke){return te(it)==te(Ke)?it.circularLinkType=="bottom"?Le(it,Ke):me(it,Ke):te(Ke)-te(it)}function me(it,Ke){return it.y0-Ke.y0}function Le(it,Ke){return Ke.y0-it.y0}function Ce(it,Ke){return it.y1-Ke.y1}function de(it,Ke){return Ke.y1-it.y1}function te(it){return it.target.column-it.source.column}function Se(it){return it.target.x0-it.source.x1}function Te(it,Ke){var zt=U(it),Mt=Se(Ke)/Math.tan(zt),kt=rt(it)=="up"?it.y1+Mt:it.y1-Mt;return kt}function be(it,Ke){var zt=U(it),Mt=Se(Ke)/Math.tan(zt),kt=rt(it)=="up"?it.y1-Mt:it.y1+Mt;return kt}function He(it,Ke,zt,Mt){it.links.forEach(function(kt){if(!kt.circular&&kt.target.column-kt.source.column>1){var $e=kt.source.column+1,De=kt.target.column-1,Me=1,oe=De-$e+1;for(Me=1;$e<=De;$e++,Me++)it.nodes.forEach(function(Ne){if(Ne.column==$e){var vt=Me/(oe+1),lt=Math.pow(1-vt,3),We=3*vt*Math.pow(1-vt,2),Ve=3*Math.pow(vt,2)*(1-vt),et=Math.pow(vt,3),tt=lt*kt.y0+We*kt.y0+Ve*kt.y1+et*kt.y1,Lt=tt-kt.width/2,jt=tt+kt.width/2,or;Lt>Ne.y0&&LtNe.y0&&jtNe.y1&&ge(yr,or,Ke,zt)})):LtNe.y1&&(or=jt-Ne.y0+10,Ne=ge(Ne,or,Ke,zt),it.nodes.forEach(function(yr){k(yr,Mt)==k(Ne,Mt)||yr.column!=Ne.column||yr.y0Ne.y1&&ge(yr,or,Ke,zt)}))}})}})}function Ie(it,Ke){return it.y0>Ke.y0&&it.y0Ke.y0&&it.y1Ke.y1}function ge(it,Ke,zt,Mt){return it.y0+Ke>=zt&&it.y1+Ke<=Mt&&(it.y0=it.y0+Ke,it.y1=it.y1+Ke,it.targetLinks.forEach(function(kt){kt.y1=kt.y1+Ke}),it.sourceLinks.forEach(function(kt){kt.y0=kt.y0+Ke})),it}function Be(it,Ke,zt,Mt){it.nodes.forEach(function(kt){Mt&&kt.y+(kt.y1-kt.y0)>Ke&&(kt.y=kt.y-(kt.y+(kt.y1-kt.y0)-Ke));var $e=it.links.filter(function(oe){return k(oe.source,zt)==k(kt,zt)}),De=$e.length;De>1&&$e.sort(function(oe,Ne){if(!oe.circular&&!Ne.circular){if(oe.target.column==Ne.target.column)return oe.y1-Ne.y1;if(je(oe,Ne)){if(oe.target.column>Ne.target.column){var vt=be(Ne,oe);return oe.y1-vt}if(Ne.target.column>oe.target.column){var lt=be(oe,Ne);return lt-Ne.y1}}else return oe.y1-Ne.y1}if(oe.circular&&!Ne.circular)return oe.circularLinkType=="top"?-1:1;if(Ne.circular&&!oe.circular)return Ne.circularLinkType=="top"?1:-1;if(oe.circular&&Ne.circular)return oe.circularLinkType===Ne.circularLinkType&&oe.circularLinkType=="top"?oe.target.column===Ne.target.column?oe.target.y1-Ne.target.y1:Ne.target.column-oe.target.column:oe.circularLinkType===Ne.circularLinkType&&oe.circularLinkType=="bottom"?oe.target.column===Ne.target.column?Ne.target.y1-oe.target.y1:oe.target.column-Ne.target.column:oe.circularLinkType=="top"?-1:1});var Me=kt.y0;$e.forEach(function(oe){oe.y0=Me+oe.width/2,Me=Me+oe.width}),$e.forEach(function(oe,Ne){if(oe.circularLinkType=="bottom"){var vt=Ne+1,lt=0;for(vt;vt1&&kt.sort(function(Me,oe){if(!Me.circular&&!oe.circular){if(Me.source.column==oe.source.column)return Me.y0-oe.y0;if(je(Me,oe)){if(oe.source.column0?"up":"down"}function bt(it,Ke){return k(it.source,Ke)==k(it.target,Ke)}function Ot(it,Ke,zt){var Mt=it.nodes,kt=it.links,$e=!1,De=!1;if(kt.forEach(function(We){We.circularLinkType=="top"?$e=!0:We.circularLinkType=="bottom"&&(De=!0)}),$e==!1||De==!1){var Me=t.min(Mt,function(We){return We.y0}),oe=t.max(Mt,function(We){return We.y1}),Ne=oe-Me,vt=zt-Ke,lt=vt/Ne;Mt.forEach(function(We){var Ve=(We.y1-We.y0)*lt;We.y0=(We.y0-Me)*lt,We.y1=We.y0+Ve}),kt.forEach(function(We){We.y0=(We.y0-Me)*lt,We.y1=(We.y1-Me)*lt,We.width=We.width*lt})}}e.sankeyCircular=E,e.sankeyCenter=l,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=u,Object.defineProperty(e,"__esModule",{value:!0})})});var c$=we((c3r,VXe)=>{"use strict";VXe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var tZe=we((h3r,eZe)=>{"use strict";var GXe=zXe(),mKt=(W2(),mb(H2)).interpolateNumber,BS=Jl(),oC=OXe(),yKt=UXe(),dc=c$(),qS=hd(),gw=jl(),gKt=Mu(),w1=ei(),p$=w1.strTranslate,_Kt=w1.strRotate,v$=ng(),sC=v$.keyFun,G8=v$.repeat,YXe=v$.unwrap,HXe=Wf(),xKt=$l(),KXe=Nh(),bKt=KXe.CAP_SHIFT,wKt=KXe.LINE_SPACING,AKt=3;function TKt(e,t,r){var n=YXe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,u=i.node.thickness,l={justify:oC.sankeyJustify,left:oC.sankeyLeft,right:oC.sankeyRight,center:oC.sankeyCenter}[i.node.align],f=e.width*(a.x[1]-a.x[0]),c=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,p=n.circular,y;p?y=yKt.sankeyCircular().circularLinkGap(0):y=oC.sankey(),y.iterations(dc.sankeyIterations).size(o?[f,c]:[c,f]).nodeWidth(u).nodePadding(s).nodeId(function(U){return U.pointNumber}).nodeAlign(l).nodes(h).links(d);var b=y();y.nodePadding()=N||(W=N-j.y0,W>1e-6&&(j.y0+=W,j.y1+=W)),N=j.y1+s})}function P(U){var G=U.map(function(me,Le){return{x0:me.x0,index:Le}}).sort(function(me,Le){return me.x0-Le.x0}),j=[],W=-1,N,H=-1/0,re;for(v=0;vH+u&&(W+=1,N=ae.x0),H=ae.x0,j[W]||(j[W]=[]),j[W].push(ae),re=N-ae.x0,ae.x0+=re,ae.x1+=re}return j}if(i.node.x.length&&i.node.y.length){for(v=0;v0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function m$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return MKt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=mKt(a,o),u=s(e),l=s(1-e),f=r.link.y0-r.link.width/2,c=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,p="M"+a+","+f,y="C"+u+","+f+" "+l+","+h+" "+o+","+h,b="C"+l+","+d+" "+u+","+c+" "+a+","+c,v=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return v+="L"+o+","+d,p+y+v+b+"Z"}return t}function EKt(e,t){var r=qS(t.color),n=dc.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=w1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:gw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function d$(e){e.attr("transform",function(t){return p$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function kKt(e){e.call(d$)}function JXe(e,t){e.call(kKt),t.attr("d",m$())}function WXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function h$(e){return e.link.width>1||e.linkLineWidth>0}function jXe(e){var t=p$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function XXe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function CKt(e,t,r,n){var i=BS.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(w1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),w1.raiseToTop(this),a.interactionState.dragInProgress=a.node,ZXe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):LKt(e,o,a,n),PKt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=BS.event.x,s=BS.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),ZXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),JXe(e.filter(QXe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var u=r.node.originalX;r.node.x0=u-r.visibleWidth/2,r.node.x1=u+r.visibleWidth/2,$Xe(r,i)}})}function zKt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function $Xe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zp=Jl(),g$=ei(),H8=g$.numberFormat,FKt=tZe(),NS=Vc(),OKt=jl(),Rx=c$().cn,lC=g$._;function rZe(e){return e!==""}function US(e,t){return e.filter(function(r){return r.key===t.traceId})}function iZe(e,t){Zp.select(e).select("path").style("fill-opacity",t),Zp.select(e).select("rect").style("fill-opacity",t)}function nZe(e){Zp.select(e).select("text.name").style("fill","black")}function aZe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function oZe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function sZe(e,t,r){t&&r&&US(r,t).selectAll("."+Rx.sankeyLink).filter(aZe(t)).call(lZe.bind(0,t,r,!1))}function y$(e,t,r){t&&r&&US(r,t).selectAll("."+Rx.sankeyLink).filter(aZe(t)).call(uZe.bind(0,t,r,!1))}function lZe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&US(t,e).selectAll("."+Rx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&US(t,e).selectAll("."+Rx.sankeyNode).filter(oZe(e)).call(sZe)}function uZe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&US(t,e).selectAll("."+Rx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&US(t,e).selectAll(Rx.sankeyNode).filter(oZe(e)).call(y$)}function rh(e,t){var r=e.hoverlabel||{},n=g$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}fZe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:rh(k,"bgcolor")||OKt.addOpacity(O.color,1),borderColor:rh(k,"bordercolor"),fontFamily:rh(k,"font.family"),fontSize:rh(k,"font.size"),fontColor:rh(k,"font.color"),fontWeight:rh(k,"font.weight"),fontStyle:rh(k,"font.style"),fontVariant:rh(k,"font.variant"),fontTextcase:rh(k,"font.textcase"),fontLineposition:rh(k,"font.lineposition"),fontShadow:rh(k,"font.shadow"),nameLength:rh(k,"namelength"),textAlign:rh(k,"align"),idealAlign:Zp.event.x"),color:rh(k,"bgcolor")||x.tinyColorHue,borderColor:rh(k,"bordercolor"),fontFamily:rh(k,"font.family"),fontSize:rh(k,"font.size"),fontColor:rh(k,"font.color"),fontWeight:rh(k,"font.weight"),fontStyle:rh(k,"font.style"),fontVariant:rh(k,"font.variant"),fontTextcase:rh(k,"font.textcase"),fontLineposition:rh(k,"font.lineposition"),fontShadow:rh(k,"font.shadow"),nameLength:rh(k,"namelength"),textAlign:rh(k,"align"),idealAlign:"left",hovertemplate:k.hovertemplate,hovertemplateLabels:U,eventData:[x.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});iZe(W,.85),nZe(W)}}},A=function(L,x,k){t._fullLayout.hovermode!==!1&&(Zp.select(L).call(y$,x,k),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zp.event,points:[x.node]})),NS.loneUnhover(n._hoverlayer.node()))};FKt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:l,follow:y,unhover:b,select:u},nodeEvents:{hover:C,follow:M,unhover:A,select:v}})}});var cZe=we(_w=>{"use strict";var BKt=Sc().overrideAll,qKt=Dd().getModuleCalcData,NKt=_$(),UKt=j1(),VKt=Em(),GKt=xp(),HKt=oh().prepSelect,x$=ei(),WKt=$l(),W8="sankey";_w.name=W8;_w.baseLayoutAttrOverrides=BKt({hoverlabel:UKt.hoverlabel},"plot","nested");_w.plot=function(e){var t=qKt(e.calcdata,W8)[0];NKt(e,t),_w.updateFx(e)};_w.clean=function(e,t,r,n){var i=n._has&&n._has(W8),a=t._has&&t._has(W8);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};_w.updateFx=function(e){for(var t=0;t{"use strict";hZe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";pZe.exports={attributes:l$(),supplyDefaults:gXe(),calc:AXe(),plot:_$(),moduleType:"trace",name:"sankey",basePlotModule:cZe(),selectPoints:dZe(),categories:["noOpacity"],meta:{}}});var yZe=we((y3r,mZe)=>{"use strict";mZe.exports=vZe()});var _Ze=we(VS=>{"use strict";var gZe=Cc();VS.name="indicator";VS.plot=function(e,t,r,n){gZe.plotBasePlot(VS.name,e,t,r,n)};VS.clean=function(e,t,r,n){gZe.cleanBasePlot(VS.name,e,t,r,n)}});var w$=we((_3r,SZe)=>{"use strict";var Fx=Su().extendFlat,bZe=Su().extendDeep,XKt=Sc().overrideAll,wZe=gc(),AZe=Bh(),ZKt=zc().attributes,uh=Rd(),YKt=Lf().templatedArray,j8=QA(),xZe=Xc().descriptionOnlyNumbers,b$=wZe({editType:"plot",colorEditType:"plot"}),uC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:AZe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},TZe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},KKt=YKt("step",bZe({},uC,{range:TZe}));SZe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:ZKt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Fx({},b$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:xZe("value")},font:Fx({},b$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:xZe("value")},increasing:{symbol:{valType:"string",dflt:j8.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:j8.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:j8.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:j8.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Fx({},b$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:bZe({},uC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:AZe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:XKt({range:TZe,visible:Fx({},uh.visible,{dflt:!0}),tickmode:uh.minor.tickmode,nticks:uh.nticks,tick0:uh.tick0,dtick:uh.dtick,tickvals:uh.tickvals,ticktext:uh.ticktext,ticks:Fx({},uh.ticks,{dflt:"outside"}),ticklen:uh.ticklen,tickwidth:uh.tickwidth,tickcolor:uh.tickcolor,ticklabelstep:uh.ticklabelstep,showticklabels:uh.showticklabels,labelalias:uh.labelalias,tickfont:wZe({}),tickangle:uh.tickangle,tickformat:uh.tickformat,tickformatstops:uh.tickformatstops,tickprefix:uh.tickprefix,showtickprefix:uh.showtickprefix,ticksuffix:uh.ticksuffix,showticksuffix:uh.showticksuffix,separatethousands:uh.separatethousands,exponentformat:uh.exponentformat,minexponent:uh.minexponent,showexponent:uh.showexponent,editType:"plot"},"plot"),steps:KKt,threshold:{line:{color:Fx({},uC.line.color,{}),width:Fx({},uC.line.width,{dflt:1}),editType:"plot"},thickness:Fx({},uC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var A$=we((x3r,MZe)=>{"use strict";MZe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var CZe=we((b3r,kZe)=>{"use strict";var lg=ei(),Z8=w$(),JKt=zc().defaults,EZe=Lf(),$Kt=$d(),X8=A$(),QKt=Pb(),eJt=O3(),tJt=s_(),rJt=l_();function iJt(e,t,r,n){function i(x,k){return lg.coerce(e,t,Z8,x,k)}JKt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var u=lg.extendFlat({},n.font);u.size=void 0,lg.coerceFont(i,"number.font",u),t.number.font.size===void 0&&(t.number.font.size=X8.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var l;if(t._hasDelta){var f=lg.extendFlat({},n.font);f.size=void 0,lg.coerceFont(i,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||X8.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),l=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var c=lg.extendFlat({},n.font);c.size=.25*(s||l||X8.defaultNumberFontSize),lg.coerceFont(i,"title.font",c),i("title.text");var h,d,p,y;function b(x,k){return lg.coerce(h,d,Z8.gauge,x,k)}function v(x,k){return lg.coerce(p,y,Z8.gauge.axis,x,k)}if(t._hasGauge){h=e.gauge,h||(h={}),d=EZe.newContainer(t,"gauge"),b("shape");var C=t._isBullet=t.gauge.shape==="bullet";C||i("title.align","center");var M=t._isAngular=t.gauge.shape==="angular";M||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var A=X8.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",A),$Kt(h,d,{name:"steps",handleItemDefaults:nJt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),p={},h&&(p=h.axis||{}),y=EZe.newContainer(d,"axis"),v("visible"),t._range=v("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};QKt(p,y,v,"linear"),rJt(p,y,v,"linear",L),tJt(p,y,v,"linear",L),eJt(p,y,v,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function nJt(e,t){function r(n,i){return lg.coerce(e,t,Z8.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}kZe.exports={supplyDefaults:iJt}});var PZe=we((w3r,LZe)=>{"use strict";function aJt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}LZe.exports={calc:aJt}});var OZe=we((A3r,FZe)=>{"use strict";var Tw=Jl(),oJt=(W2(),mb(H2)).interpolate,zZe=(W2(),mb(H2)).interpolateNumber,Ox=ei(),sJt=Ox.strScale,cC=Ox.strTranslate,lJt=Ox.rad2deg,uJt=Nh().MID_SHIFT,Aw=Mu(),xw=A$(),K8=Wf(),fp=wu(),fJt=hE(),cJt=pI(),hJt=Rd(),GS=jl(),T$={left:"start",center:"middle",right:"end"},bw={left:0,center:.5,right:1},IZe=/[yzafpnµmkMGTPEZY]/;function hC(e){return e&&e.duration>0}FZe.exports=function(t,r,n,i){var a=t._fullLayout,o;hC(n)&&i&&(o=i()),Ox.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var u=s[0],l=u.trace,f=Tw.select(this),c=l._hasGauge,h=l._isAngular,d=l._isBullet,p=l.domain,y={w:a._size.w*(p.x[1]-p.x[0]),h:a._size.h*(p.y[1]-p.y[0]),l:a._size.l+a._size.w*p.x[0],r:a._size.r+a._size.w*(1-p.x[1]),t:a._size.t+a._size.h*(1-p.y[1]),b:a._size.b+a._size.h*p.y[0]},b=y.l+y.w/2,v=y.t+y.h/2,C=Math.min(y.w/2,y.h),M=xw.innerRadius*C,A,L,x,k=l.align||"center";if(L=v,!c)A=y.l+bw[k]*y.w,x=function(W){return DZe(W,y.w,y.h)};else if(h&&(A=b,L=v+C/2,x=function(W){return yJt(W,.9*M)}),d){var S=xw.bulletPadding,m=1-xw.bulletNumberDomainSize+S;A=y.l+(m+(1-m)*bw[k])*y.w,x=function(W){return DZe(W,(xw.bulletNumberDomainSize-S)*y.w,y.h)}}vJt(t,f,s,{numbersX:A,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,E;c&&(P={range:l.gauge.axis.range,color:l.gauge.bgcolor,line:{color:l.gauge.bordercolor,width:0},thickness:1},E={range:l.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:l.gauge.bordercolor,width:l.gauge.borderwidth},thickness:1});var O=f.selectAll("g.angular").data(h?s:[]);O.exit().remove();var F=f.selectAll("g.angularaxis").data(h?s:[]);F.exit().remove(),h&&pJt(t,f,s,{radius:C,innerRadius:M,gauge:O,layer:F,size:y,gaugeBg:P,gaugeOutline:E,transitionOpts:n,onComplete:o});var U=f.selectAll("g.bullet").data(d?s:[]);U.exit().remove();var G=f.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&dJt(t,f,s,{gauge:U,layer:G,size:y,gaugeBg:P,gaugeOutline:E,transitionOpts:n,onComplete:o});var j=f.selectAll("text.title").data(s);j.exit().remove(),j.enter().append("text").classed("title",!0),j.attr("text-anchor",function(){return d?T$.right:T$[l.title.align]}).text(l.title.text).call(Aw.font,l.title.font).call(K8.convertToTspans,t),j.attr("transform",function(){var W=y.l+y.w*bw[l.title.align],N,H=xw.titlePadding,re=Aw.bBox(j.node());if(c){if(h)if(l.gauge.axis.visible){var ae=Aw.bBox(F.node());N=ae.top-H-re.bottom}else N=y.t+y.h/2-C/2-re.bottom-H;d&&(N=L-(re.top+re.bottom)/2,W=y.l-xw.bulletPadding*y.w)}else N=l._numbersTop-H-re.bottom;return cC(W,N)})})};function dJt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,u=n.gaugeOutline,l=n.size,f=i.domain,c=n.transitionOpts,h=n.onComplete,d,p,y,b,v;a.enter().append("g").classed("bullet",!0),a.attr("transform",cC(l.l,l.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var C=l.h,M=i.gauge.bar.thickness*C,A=f.x[0],L=f.x[0]+(f.x[1]-f.x[0])*(i._hasNumber||i._hasDelta?1-xw.bulletNumberDomainSize:1);d=fC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[A,L],d.setScale(),p=fp.calcTicks(d),y=fp.makeTransTickFn(d),b=fp.getTickSigns(d)[2],v=l.t+l.h,d.visible&&(fp.drawTicks(e,d,{vals:d.ticks==="inside"?fp.clipEnds(d,p):p,layer:o,path:fp.makeTickPath(d,v,b),transFn:y}),fp.drawLabels(e,d,{vals:p,layer:o,transFn:y,labelFns:fp.makeLabelFns(d,v)}));function x(F){F.attr("width",function(U){return Math.max(0,d.c2p(U.range[1])-d.c2p(U.range[0]))}).attr("x",function(U){return d.c2p(U.range[0])}).attr("y",function(U){return .5*(1-U.thickness)*C}).attr("height",function(U){return U.thickness*C})}var k=[s].concat(i.gauge.steps),S=a.selectAll("g.bg-bullet").data(k);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(x).call(ww),S.exit().remove();var m=a.selectAll("g.value-bullet").data([i.gauge.bar]);m.enter().append("g").classed("value-bullet",!0).append("rect"),m.select("rect").attr("height",M).attr("y",(C-M)/2).call(ww),hC(c)?m.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):m.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),m.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),E=a.selectAll("g.threshold-bullet").data(P);E.enter().append("g").classed("threshold-bullet",!0).append("line"),E.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*C).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*C).call(GS.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),E.exit().remove();var O=a.selectAll("g.gauge-outline").data([u]);O.enter().append("g").classed("gauge-outline",!0).append("rect"),O.select("rect").call(x).call(ww),O.exit().remove()}function pJt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,u=n.gaugeBg,l=n.gaugeOutline,f=[a.l+a.w/2,a.t+a.h/2+o/2],c=n.gauge,h=n.layer,d=n.transitionOpts,p=n.onComplete,y=Math.PI/2;function b(me){var Le=i.gauge.axis.range[0],Ce=i.gauge.axis.range[1],de=(me-Le)/(Ce-Le)*Math.PI-y;return de<-y?-y:de>y?y:de}function v(me){return Tw.svg.arc().innerRadius((s+o)/2-me/2*(o-s)).outerRadius((s+o)/2+me/2*(o-s)).startAngle(-y)}function C(me){me.attr("d",function(Le){return v(Le.thickness).startAngle(b(Le.range[0])).endAngle(b(Le.range[1]))()})}var M,A,L,x;c.enter().append("g").classed("angular",!0),c.attr("transform",cC(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),M=fC(e,i.gauge.axis),M.type="linear",M.range=i.gauge.axis.range,M._id="xangularaxis",M.ticklabeloverflow="allow",M.setScale();var k=function(me){return(M.range[0]-me.x)/(M.range[1]-M.range[0])*Math.PI+Math.PI},S={},m=fp.makeLabelFns(M,0),P=m.labelStandoff;S.xFn=function(me){var Le=k(me);return Math.cos(Le)*P},S.yFn=function(me){var Le=k(me),Ce=Math.sin(Le)>0?.2:1;return-Math.sin(Le)*(P+me.fontSize*Ce)+Math.abs(Math.cos(Le))*(me.fontSize*uJt)},S.anchorFn=function(me){var Le=k(me),Ce=Math.cos(Le);return Math.abs(Ce)<.1?"middle":Ce>0?"start":"end"},S.heightFn=function(me,Le,Ce){var de=k(me);return-.5*(1+Math.sin(de))*Ce};var E=function(me){return cC(f[0]+o*Math.cos(me),f[1]-o*Math.sin(me))};L=function(me){return E(k(me))};var O=function(me){var Le=k(me);return E(Le)+"rotate("+-lJt(Le)+")"};if(A=fp.calcTicks(M),x=fp.getTickSigns(M)[2],M.visible){x=M.ticks==="inside"?-1:1;var F=(M.linewidth||1)/2;fp.drawTicks(e,M,{vals:A,layer:h,path:"M"+x*F+",0h"+x*M.ticklen,transFn:O}),fp.drawLabels(e,M,{vals:A,layer:h,transFn:L,labelFns:S})}var U=[u].concat(i.gauge.steps),G=c.selectAll("g.bg-arc").data(U);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(C).call(ww),G.exit().remove();var j=v(i.gauge.bar.thickness),W=c.selectAll("g.value-arc").data([i.gauge.bar]);W.enter().append("g").classed("value-arc",!0).append("path");var N=W.select("path");hC(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",mJt(j,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?j.endAngle(b(r[0].y)):"M0,0Z"),N.call(ww),W.exit().remove(),U=[];var H=i.gauge.threshold.value;(H||H===0)&&U.push({range:[H,H],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=c.selectAll("g.threshold-arc").data(U);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(C).call(ww),re.exit().remove();var ae=c.selectAll("g.gauge-outline").data([l]);ae.enter().append("g").classed("gauge-outline",!0).append("path"),ae.select("path").call(C).call(ww),ae.exit().remove()}function vJt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",u=T$[s],l=n.transitionOpts,f=n.onComplete,c=Ox.ensureSingle(t,"g","numbers"),h,d,p,y=[];i._hasNumber&&y.push("number"),i._hasDelta&&(y.push("delta"),i.delta.position==="left"&&y.reverse());var b=c.selectAll("text").data(y);b.enter().append("text"),b.attr("text-anchor",function(){return u}).attr("class",function(E){return E}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function v(E,O,F,U){if(E.match("s")&&F>=0!=U>=0&&!O(F).slice(-1).match(IZe)&&!O(U).slice(-1).match(IZe)){var G=E.slice().replace("s","f").replace(/\d+/,function(W){return parseInt(W)-1}),j=fC(e,{tickformat:G});return function(W){return Math.abs(W)<1?fp.tickText(j,W).text:O(W)}}else return O}function C(){var E=fC(e,{tickformat:i.number.valueformat},i._range);E.setScale(),fp.prepTicks(E);var O=function(W){return fp.tickText(E,W).text},F=i.number.suffix,U=i.number.prefix,G=c.select("text.number");function j(){var W=typeof r[0].y=="number"?U+O(r[0].y)+F:"-";G.text(W).call(Aw.font,i.number.font).call(K8.convertToTspans,e)}return hC(l)?G.transition().duration(l.duration).ease(l.easing).each("end",function(){j(),f&&f()}).each("interrupt",function(){j(),f&&f()}).attrTween("text",function(){var W=Tw.select(this),N=zZe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var H=v(i.number.valueformat,O,r[0].lastY,r[0].y);return function(re){W.text(U+H(N(re))+F)}}):j(),h=RZe(U+O(r[0].y)+F,i.number.font,u,e),G}function M(){var E=fC(e,{tickformat:i.delta.valueformat},i._range);E.setScale(),fp.prepTicks(E);var O=function(re){return fp.tickText(E,re).text},F=i.delta.suffix,U=i.delta.prefix,G=function(re){var ae=i.delta.relative?re.relativeDelta:re.delta;return ae},j=function(re,ae){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+U+ae(re)+F},W=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=c.select("text.delta");N.call(Aw.font,i.delta.font).call(GS.fill,W({delta:i._deltaLastValue}));function H(){N.text(j(G(r[0]),O)).call(GS.fill,W(r[0])).call(K8.convertToTspans,e)}return hC(l)?N.transition().duration(l.duration).ease(l.easing).tween("text",function(){var re=Tw.select(this),ae=G(r[0]),me=i._deltaLastValue,Le=v(i.delta.valueformat,O,me,ae),Ce=zZe(me,ae);return i._deltaLastValue=ae,function(de){re.text(j(Ce(de),Le)),re.call(GS.fill,W({delta:Ce(de)}))}}).each("end",function(){H(),f&&f()}).each("interrupt",function(){H(),f&&f()}):H(),d=RZe(j(G(r[0]),O),i.delta.font,u,e),N}var A=i.mode+i.align,L;if(i._hasDelta&&(L=M(),A+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,A+=i.delta.increasing.symbol+i.delta.decreasing.symbol,p=d),i._hasNumber&&(C(),A+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,p=h),i._hasDelta&&i._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],k=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,m,P=.75*i.delta.font.size;i.delta.position==="left"&&(S=Y8(i,"deltaPos",0,-1*(h.width*bw[i.align]+d.width*(1-bw[i.align])+P),A,Math.min),m=x[1]-k[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="right"&&(S=Y8(i,"deltaPos",0,h.width*(1-bw[i.align])+d.width*bw[i.align]+P,A,Math.max),m=x[1]-k[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="bottom"&&(S=null,m=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(S=null,m=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:S,dy:m})}(i._hasNumber||i._hasDelta)&&c.attr("transform",function(){var E=n.numbersScaler(p);A+=E[2];var O=Y8(i,"numbersScale",1,E[0],A,Math.min),F;i._scaleNumbers||(O=1),i._isAngular?F=o-O*p.bottom:F=o-O*(p.top+p.bottom)/2,i._numbersTop=O*p.top+F;var U=p[s];s==="center"&&(U=(p.left+p.right)/2);var G=a-O*U;return G=Y8(i,"numbersTranslate",0,G,A,Math.max),cC(G,F)+sJt(O)})}function ww(e){e.each(function(t){GS.stroke(Tw.select(this),t.line.color)}).each(function(t){GS.fill(Tw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function mJt(e,t,r){return function(){var n=oJt(t,r);return function(i){return e.endAngle(n(i))()}}}function fC(e,t,r){var n=e._fullLayout,i=Ox.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(u,l){return Ox.coerce(i,a,hJt,u,l)}return fJt(i,a,s,o,n),cJt(i,a,s,o),a}function DZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function yJt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function RZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=Tw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(K8.convertToTspans,n).call(Aw.font,t),Aw.bBox(a.node())}function Y8(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Ox.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var qZe=we((T3r,BZe)=>{"use strict";BZe.exports={moduleType:"trace",name:"indicator",basePlotModule:_Ze(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:w$(),supplyDefaults:CZe().supplyDefaults,calc:PZe().calc,plot:OZe(),meta:{}}});var UZe=we((S3r,NZe)=>{"use strict";NZe.exports=qZe()});var S$=we((E3r,WZe)=>{"use strict";var VZe=Qb(),J8=Su().extendFlat,gJt=Sc().overrideAll,GZe=gc(),_Jt=zc().attributes,HZe=Xc().descriptionOnlyNumbers,M3r=WZe.exports=gJt({domain:_Jt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:HZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:J8({},VZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:J8({},GZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:HZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:J8({},VZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:J8({},GZe({arrayOk:!0}))}},"calc","from-root")});var XZe=we((k3r,jZe)=>{"use strict";var M$=ei(),xJt=S$(),bJt=zc().defaults;function wJt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(u,l){return u-l}),o=i.map(function(u){return a.indexOf(u)}),s=o.length;s{"use strict";var AJt=ng().wrap;ZZe.exports=function(){return AJt({})}});var E$=we((L3r,KZe)=>{"use strict";KZe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var aYe=we((P3r,nYe)=>{"use strict";var JZe=E$(),C$=Su().extendFlat,TJt=ku(),SJt=Jd().isTypedArray,$8=Jd().isArrayOrTypedArray;nYe.exports=function(t,r){var n=k$(r.cells.values),i=function(m){return m.slice(r.header.values.length,m.length)},a=k$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=k$(a));var o=a.concat(i(n).map(function(){return iYe((a[0]||[""]).length)})),s=r.domain,u=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),l=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),f=r.header.values.length?o[0].map(function(){return r.header.height}):[JZe.emptyHeaderHeight],c=n.length?n[0].map(function(){return r.cells.height}):[],h=f.reduce($Ze,0),d=l-h,p=d+JZe.uplift,y=tYe(c,p),b=tYe(f,h),v=eYe(b,[]),C=eYe(y,v),M={},A=r._fullInput.columnorder;$8(A)&&(A=Array.from(A)),A=A.concat(i(n.map(function(m,P){return P})));var L=o.map(function(m,P){var E=$8(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return TJt(E)?Number(E):1}),x=L.reduce($Ze,0);L=L.map(function(m){return m/x*u});var k=Math.max(L$(r.header.line.width),L$(r.cells.line.width)),S={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:u,maxLineWidth:k,height:l,columnOrder:A,groupHeight:l,rowBlocks:C,headerRowBlocks:v,scrollY:0,cells:C$({},r.cells,{values:n}),headerCells:C$({},r.header,{values:o}),gdColumns:o.map(function(m){return m[0]}),gdColumnsOriginalOrder:o.map(function(m){return m[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(m,P){var E=M[m];M[m]=(E||0)+1;var O=m+"__"+M[m];return{key:O,label:m,specIndex:P,xIndex:A[P],xScale:QZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return S.columns.forEach(function(m){m.calcdata=S,m.x=QZe(m)}),S};function L$(e){if($8(e)){for(var t=0,r=0;r=t||l===e.length-1)&&(r[i]=o,o.key=u++,o.firstRowIndex=s,o.lastRowIndex=l,o=rYe(),i+=a,s=l+1,a=0);return r}function rYe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var oYe=we(P$=>{"use strict";var Q8=Su().extendFlat;P$.splitToPanels=function(e){var t=[0,0],r=Q8({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:Q8({},e.calcdata,{cells:e.calcdata.headerCells})}),n=Q8({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=Q8({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};P$.splitToCells=function(e){var t=MJt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function MJt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var U$=we((I3r,yYe)=>{"use strict";var uu=E$(),Hc=Jl(),z$=ei(),EJt=z$.numberFormat,pc=ng(),I$=Mu(),kJt=Wf(),CJt=ei().raiseToTop,lm=ei().strTranslate,LJt=ei().cancelTransition,PJt=aYe(),dYe=oYe(),sYe=jl();yYe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+uu.cn.table).data(r.map(function(C){var M=pc.unwrap(C),A=M.trace;return PJt(t,A)}),pc.keyFun);i.exit().remove(),i.enter().append("g").classed(uu.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(C){return C.width+C.size.l+C.size.r}).attr("height",function(C){return C.height+C.size.t+C.size.b}).attr("transform",function(C){return lm(C.translateX,C.translateY)});var a=i.selectAll("."+uu.cn.tableControlView).data(pc.repeat,pc.keyFun),o=a.enter().append("g").classed(uu.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(C){a.filter(function(M){return C===M}).call(dC,t)}).on(s,function(C){if(!C.scrollbarState.wheeling){C.scrollbarState.wheeling=!0;var M=C.scrollY+Hc.event.deltaY,A=tO(t,a,null,M)(C);A||(Hc.event.stopPropagation(),Hc.event.preventDefault()),C.scrollbarState.wheeling=!1}}).call(dC,t,!0)}a.attr("transform",function(C){return lm(C.size.l,C.size.t)});var u=a.selectAll("."+uu.cn.scrollBackground).data(pc.repeat,pc.keyFun);u.enter().append("rect").classed(uu.cn.scrollBackground,!0).attr("fill","none"),u.attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),a.each(function(C){I$.setClipUrl(Hc.select(this),lYe(t,C),t)});var l=a.selectAll("."+uu.cn.yColumn).data(function(C){return C.columns},pc.keyFun);l.enter().append("g").classed(uu.cn.yColumn,!0),l.exit().remove(),l.attr("transform",function(C){return lm(C.x,0)}),n&&l.call(Hc.behavior.drag().origin(function(C){var M=Hc.select(this);return cYe(M,C,-uu.uplift),CJt(this),C.calcdata.columnDragInProgress=!0,dC(a.filter(function(A){return C.calcdata.key===A.key}),t),C}).on("drag",function(C){var M=Hc.select(this),A=function(k){return(C===k?Hc.event.x:k.x)+k.columnWidth/2};C.x=Math.max(-uu.overdrag,Math.min(C.calcdata.width+uu.overdrag-C.columnWidth,Hc.event.x));var L=pYe(l).filter(function(k){return k.calcdata.key===C.calcdata.key}),x=L.sort(function(k,S){return A(k)-A(S)});x.forEach(function(k,S){k.xIndex=S,k.x=C===k?k.x:k.xScale(k)}),l.filter(function(k){return C!==k}).transition().ease(uu.transitionEase).duration(uu.transitionDuration).attr("transform",function(k){return lm(k.x,0)}),M.call(LJt).attr("transform",lm(C.x,-uu.uplift))}).on("dragend",function(C){var M=Hc.select(this),A=C.calcdata;C.x=C.xScale(C),C.calcdata.columnDragInProgress=!1,cYe(M,C,0),UJt(t,A,A.columns.map(function(L){return L.xIndex}))})),l.each(function(C){I$.setClipUrl(Hc.select(this),uYe(t,C),t)});var f=l.selectAll("."+uu.cn.columnBlock).data(dYe.splitToPanels,pc.keyFun);f.enter().append("g").classed(uu.cn.columnBlock,!0).attr("id",function(C){return C.key}),f.style("cursor",function(C){return C.dragHandle?"ew-resize":C.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var c=f.filter(VJt),h=f.filter(B$);n&&h.call(Hc.behavior.drag().origin(function(C){return Hc.event.stopPropagation(),C}).on("drag",tO(t,a,-1)).on("dragend",function(){})),D$(t,a,c,f),D$(t,a,h,f);var d=a.selectAll("."+uu.cn.scrollAreaClip).data(pc.repeat,pc.keyFun);d.enter().append("clipPath").classed(uu.cn.scrollAreaClip,!0).attr("id",function(C){return lYe(t,C)});var p=d.selectAll("."+uu.cn.scrollAreaClipRect).data(pc.repeat,pc.keyFun);p.enter().append("rect").classed(uu.cn.scrollAreaClipRect,!0).attr("x",-uu.overdrag).attr("y",-uu.uplift).attr("fill","none"),p.attr("width",function(C){return C.width+2*uu.overdrag}).attr("height",function(C){return C.height+uu.uplift});var y=l.selectAll("."+uu.cn.columnBoundary).data(pc.repeat,pc.keyFun);y.enter().append("g").classed(uu.cn.columnBoundary,!0);var b=l.selectAll("."+uu.cn.columnBoundaryClippath).data(pc.repeat,pc.keyFun);b.enter().append("clipPath").classed(uu.cn.columnBoundaryClippath,!0),b.attr("id",function(C){return uYe(t,C)});var v=b.selectAll("."+uu.cn.columnBoundaryRect).data(pc.repeat,pc.keyFun);v.enter().append("rect").classed(uu.cn.columnBoundaryRect,!0).attr("fill","none"),v.attr("width",function(C){return C.columnWidth+2*eO(C)}).attr("height",function(C){return C.calcdata.height+2*eO(C)+uu.uplift}).attr("x",function(C){return-eO(C)}).attr("y",function(C){return-eO(C)}),q$(null,h,a)};function eO(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function lYe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function uYe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function pYe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function dC(e,t,r){function n(l){var f=l.rowBlocks;return F$(f,f.length-1)+(f.length?rO(f[f.length-1],1/0):1)}var i=e.selectAll("."+uu.cn.scrollbarKit).data(pc.repeat,pc.keyFun);i.enter().append("g").classed(uu.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(l){var f=l.scrollbarState;f.totalHeight=n(l),f.scrollableAreaHeight=l.groupHeight-R$(l),f.currentlyVisibleHeight=Math.min(f.totalHeight,f.scrollableAreaHeight),f.ratio=f.currentlyVisibleHeight/f.totalHeight,f.barLength=Math.max(f.ratio*f.currentlyVisibleHeight,uu.goldenRatio*uu.scrollbarWidth),f.barWiggleRoom=f.currentlyVisibleHeight-f.barLength,f.wiggleRoom=Math.max(0,f.totalHeight-f.scrollableAreaHeight),f.topY=f.barWiggleRoom===0?0:l.scrollY/f.wiggleRoom*f.barWiggleRoom,f.bottomY=f.topY+f.barLength,f.dragMultiplier=f.wiggleRoom/f.barWiggleRoom}).attr("transform",function(l){var f=l.width+uu.scrollbarWidth/2+uu.scrollbarOffset;return lm(f,R$(l))});var a=i.selectAll("."+uu.cn.scrollbar).data(pc.repeat,pc.keyFun);a.enter().append("g").classed(uu.cn.scrollbar,!0);var o=a.selectAll("."+uu.cn.scrollbarSlider).data(pc.repeat,pc.keyFun);o.enter().append("g").classed(uu.cn.scrollbarSlider,!0),o.attr("transform",function(l){return lm(0,l.scrollbarState.topY||0)});var s=o.selectAll("."+uu.cn.scrollbarGlyph).data(pc.repeat,pc.keyFun);s.enter().append("line").classed(uu.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",uu.scrollbarWidth).attr("stroke-linecap","round").attr("y1",uu.scrollbarWidth/2),s.attr("y2",function(l){return l.scrollbarState.barLength-uu.scrollbarWidth/2}).attr("stroke-opacity",function(l){return l.columnDragInProgress||!l.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(uu.scrollbarHideDelay).duration(uu.scrollbarHideDuration).attr("stroke-opacity",0);var u=a.selectAll("."+uu.cn.scrollbarCaptureZone).data(pc.repeat,pc.keyFun);u.enter().append("line").classed(uu.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",uu.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(l){var f=Hc.event.y,c=this.getBoundingClientRect(),h=l.scrollbarState,d=f-c.top,p=Hc.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||tO(t,e,null,p(d-h.barLength/2))(l)}).call(Hc.behavior.drag().origin(function(l){return Hc.event.stopPropagation(),l.scrollbarState.scrollbarScrollInProgress=!0,l}).on("drag",tO(t,e)).on("dragend",function(){})),u.attr("y2",function(l){return l.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),u.remove())}function D$(e,t,r,n){var i=zJt(r),a=IJt(i);OJt(a);var o=DJt(a);qJt(o);var s=FJt(a),u=RJt(s);BJt(u),vYe(u,t,n,e),N$(a)}function zJt(e){var t=e.selectAll("."+uu.cn.columnCells).data(pc.repeat,pc.keyFun);return t.enter().append("g").classed(uu.cn.columnCells,!0),t.exit().remove(),t}function IJt(e){var t=e.selectAll("."+uu.cn.columnCell).data(dYe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.columnCell,!0),t.exit().remove(),t}function DJt(e){var t=e.selectAll("."+uu.cn.cellRect).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(uu.cn.cellRect,!0),t}function RJt(e){var t=e.selectAll("."+uu.cn.cellText).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(uu.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Hc.event.stopPropagation()}),t}function FJt(e){var t=e.selectAll("."+uu.cn.cellTextHolder).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function OJt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Yp(n.size,i,r),color:Yp(n.color,i,r),family:Yp(n.family,i,r),weight:Yp(n.weight,i,r),style:Yp(n.style,i,r),variant:Yp(n.variant,i,r),textcase:Yp(n.textcase,i,r),lineposition:Yp(n.lineposition,i,r),shadow:Yp(n.shadow,i,r)};t.rowNumber=t.key,t.align=Yp(t.calcdata.cells.align,i,r),t.cellBorderWidth=Yp(t.calcdata.cells.line.width,i,r),t.font=a})}function BJt(e){e.each(function(t){I$.font(Hc.select(this),t.font)})}function qJt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Hc.select(this);sYe.stroke(r,Yp(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),sYe.fill(r,Yp(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function vYe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,u=typeof s=="string",l=u&&s.match(/
/i),f=!u||l;i.mayHaveMarkup=u&&s.match(/[<&>]/);var c=NJt(s);i.latex=c;var h=c?"":Yp(i.calcdata.cells.prefix,a,o)||"",d=c?"":Yp(i.calcdata.cells.suffix,a,o)||"",p=c?null:Yp(i.calcdata.cells.format,a,o)||null,y=h+(p?EJt(p)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!f&&!c&&(b=fYe(y)),i.cellHeightMayIncrease=l||c||i.mayHaveMarkup||(b===void 0?fYe(y):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var v;if(i.wrappingNeeded){var C=uu.wrapSplitCharacter===" "?y.replace(/i&&n.push(a),i+=u}return n}function q$(e,t,r){var n=pYe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=F$(i,i.length),s=n.calcdata.groupHeight-R$(n),u=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),l=GJt(i,u,s);l.length===1&&(l[0]===i.length-1?l.unshift(l[0]-1):l.push(l[0]+1)),l[0]%2&&l.reverse(),t.each(function(f,c){f.page=l[c],f.scrollY=u}),t.attr("transform",function(f){var c=F$(f.rowBlocks,f.page)-f.scrollY;return lm(0,c)}),e&&(hYe(e,r,t,l,n.prevPages,n,0),hYe(e,r,t,l,n.prevPages,n,1),dC(r,e))}}function tO(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(c){return o.key===c.key}),u=r||o.scrollbarState.dragMultiplier,l=o.scrollY;o.scrollY=n===void 0?o.scrollY+u*Hc.event.dy:n;var f=s.selectAll("."+uu.cn.yColumn).selectAll("."+uu.cn.columnBlock).filter(B$);return q$(e,f,s),o.scrollY===l}}function hYe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var u=r.filter(function(l,f){return f===o&&n[f]!==i[f]});D$(e,t,u,r),i[o]=n[o]}))}function HJt(e,t,r,n){return function(){var a=Hc.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(y,b){s[b].width=this.getComputedTextLength()});var u=s[s.length-1].width,l=s.slice(0,-1),f=[],c,h,d=0,p=o.column.columnWidth-2*uu.cellPad;for(o.value="";l.length;)c=l.shift(),h=c.width+u,d+h>p&&(o.value+=f.join(uu.wrapSpacer)+uu.lineBreaker,f=[],d=0),f.push(c.text),d+=h;d&&(o.value+=f.join(uu.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),vYe(a.select("."+uu.cn.cellText),r,e,n),Hc.select(t.parentNode.parentNode).call(N$)}}function WJt(e,t,r,n,i){return function(){if(!i.settledY){var o=Hc.select(t.parentNode),s=O$(i),u=i.key-s.firstRowIndex,l=s.rows[u].rowHeight,f=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*uu.cellPad:l,c=Math.max(f,l),h=c-s.rows[u].rowHeight;h&&(s.rows[u].rowHeight=c,e.selectAll("."+uu.cn.columnCell).call(N$),q$(null,e.filter(B$),0),dC(r,n,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,y=p.getBoundingClientRect(),b=Hc.select(d.parentNode).select("."+uu.cn.cellRect).node().getBoundingClientRect(),v=d.transform.baseVal.consolidate(),C=b.top-y.top+(v?v.matrix.f:uu.cellPad);return lm(mYe(i,Hc.select(d.parentNode).select("."+uu.cn.cellTextHolder).node().getBoundingClientRect().width),C)}),i.settledY=!0}}}function mYe(e,t){switch(e.align){case"left":return uu.cellPad;case"right":return e.column.columnWidth-(t||0)-uu.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return uu.cellPad}}function N$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+rO(s,1/0)},0),n=O$(t),i=rO(n,t.key),a=i+r;return lm(0,a)}).selectAll("."+uu.cn.cellRect).attr("height",function(t){return XJt(O$(t),t.key).rowHeight})}function F$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=jJt(e[n]);return r}function rO(e,t){for(var r=0,n=0;n{"use strict";var ZJt=Dd().getModuleCalcData,YJt=U$(),iO="table";nO.name=iO;nO.plot=function(e){var t=ZJt(e.calcdata,iO)[0];t.length&&YJt(e,t)};nO.clean=function(e,t,r,n){var i=n._has&&n._has(iO),a=t._has&&t._has(iO);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var xYe=we((R3r,_Ye)=>{"use strict";_Ye.exports={attributes:S$(),supplyDefaults:XZe(),calc:YZe(),plot:U$(),moduleType:"trace",name:"table",basePlotModule:gYe(),categories:["noOpacity"],meta:{}}});var wYe=we((F3r,bYe)=>{"use strict";bYe.exports=xYe()});var EYe=we((O3r,MYe)=>{"use strict";var AYe=gc(),TYe=Bh(),V$=Rd(),KJt=Xc().descriptionWithDates,JJt=Sc().overrideAll,SYe=Id().dash,G$=Su().extendFlat;MYe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:AYe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:V$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:G$({},V$.labelalias,{editType:"calc"}),tickfont:AYe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:KJt("tick label")},tickformatstops:JJt(V$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:TYe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:G$({},SYe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:G$({},SYe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:TYe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var oO=we((B3r,LYe)=>{"use strict";var $Jt=gc(),kYe=EYe(),CYe=Bh(),aO=$Jt({editType:"calc"}),QJt=Zc().zorder;aO.family.dflt='"Open Sans", verdana, arial, sans-serif';aO.size.dflt=12;aO.color.dflt=CYe.defaultLine;LYe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:kYe,baxis:kYe,font:aO,color:{valType:"color",dflt:CYe.defaultLine,editType:"plot"},zorder:QJt}});var IYe=we((q3r,zYe)=>{"use strict";var PYe=ei().isArray1D;zYe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||PYe(i))&&(!s||PYe(o))){var u=a?i.length:1/0;s&&(u=Math.min(u,o.length)),r.a&&r.a.length&&(u=Math.min(u,r.a.length)),r.b&&r.b.length&&(u=Math.min(u,r.b.length)),r._length=u}else r._length=null;return!0}});var FYe=we((N3r,RYe)=>{"use strict";var e$t=oO(),DYe=jl().addOpacity,t$t=$l(),pC=ei(),r$t=Pb(),i$t=s_(),n$t=l_(),a$t=cI(),o$t=xy(),s$t=H3();RYe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=e$t[i+"axis"];function s(m,P){return pC.coerce(t,r,o,m,P)}function u(m,P){return pC.coerce2(t,r,o,m,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var l=s("type");if(l==="-"&&(n.data&&l$t(r,n.data),r.type==="-"?r.type="linear":l=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,l==="date"){var f=t$t.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",n.calendar)}o$t(r,n.fullLayout),r.c2p=pC.identity;var c=s("color",n.dfltColor),h=c===t.color?c:a.color,d=s("title.text");d&&(pC.coerceFont(s,"title.font",a,{overrideDflt:{size:pC.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var p=s("autorange",!r.isValidRange(t.range));p&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),r$t(t,r,s,l),n$t(t,r,s,l,n),i$t(t,r,s,l,n),a$t(t,r,s,{data:n.data,dataAttr:i});var y=u("gridcolor",DYe(c,.3)),b=u("gridwidth"),v=u("griddash"),C=s("showgrid");C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var M=u("startlinecolor",c),A=u("startlinewidth",b),L=s("startline",r.showgrid||!!M||!!A);L||(delete r.startlinecolor,delete r.startlinewidth);var x=u("endlinecolor",c),k=u("endlinewidth",b),S=s("endline",r.showgrid||!!x||!!k);return S||(delete r.endlinecolor,delete r.endlinewidth),C?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",v),s("minorgridcolor",DYe(y,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function l$t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=s$t(t,a,{autotypenumbers:e.autotypenumbers})}}});var BYe=we((U3r,OYe)=>{"use strict";var u$t=FYe(),f$t=Lf();OYe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),c$t(t,r,n,a)};function c$t(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},u=f$t.newContainer(t,a),l={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};u$t(s,u,l),u._categories=u._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var UYe=we((V3r,NYe)=>{"use strict";var qYe=ei(),h$t=IYe(),d$t=BYe(),p$t=oO(),v$t=Bh();NYe.exports=function(t,r,n,i){function a(u,l){return qYe.coerce(t,r,p$t,u,l)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",v$t.defaultLine);if(qYe.coerceFont(a,"font",i.font),a("carpet"),d$t(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=h$t(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var H$=we((G3r,VYe)=>{"use strict";var m$t=ei().isArrayOrTypedArray;VYe.exports=function(t,r,n){var i;for(m$t(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";GYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";HYe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),u=a[1]*t.dpdy(n),l=1,f=1;if(o){var c=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/c/h;f=Math.max(0,d)}var p=Math.atan2(u,s)*180/Math.PI;return p<-90?(p+=180,l=-l):p>90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(i,r,n),offsetMultplier:f}}});var QYe=we((j3r,$Ye)=>{"use strict";var fO=Jl(),sO=Mu(),lO=H$(),ZYe=W$(),vC=WYe(),j$=Wf(),Uv=ei(),YYe=Uv.strRotate,uO=Uv.strTranslate,KYe=Nh();$Ye.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,u=t._fullLayout,l=u._clips;Uv.makeTraceGroups(i,n,"trace").each(function(f){var c=fO.select(this),h=f[0],d=h.trace,p=d.aaxis,y=d.baxis,b=Uv.ensureSingle(c,"g","minorlayer"),v=Uv.ensureSingle(c,"g","majorlayer"),C=Uv.ensureSingle(c,"g","boundarylayer"),M=Uv.ensureSingle(c,"g","labellayer");c.style("opacity",d.opacity),HS(o,s,v,p,"a",p._gridlines,!0,a),HS(o,s,v,y,"b",y._gridlines,!0,a),HS(o,s,b,p,"a",p._minorgridlines,!0,a),HS(o,s,b,y,"b",y._minorgridlines,!0,a),HS(o,s,C,p,"a-boundary",p._boundarylines,a),HS(o,s,C,y,"b-boundary",y._boundarylines,a);var A=jYe(t,o,s,d,h,M,p._labels,"a-label"),L=jYe(t,o,s,d,h,M,y._labels,"b-label");g$t(t,M,d,h,o,s,A,L),y$t(d,h,l,o,s)})};function y$t(e,t,r,n,i){var a,o,s,u,l=r.select("#"+e._clipPathId);l.size()||(l=r.append("clipPath").classed("carpetclip",!0));var f=Uv.ensureSingle(l,"path","carpetboundary"),c=t.clipsegments,h=[];for(u=0;u0?"start":"end","data-notex":1}).call(sO.font,c.font).text(c.text).call(j$.convertToTspans,e),v=sO.bBox(this);b.attr("transform",uO(d.p[0],d.p[1])+YYe(d.angle)+uO(c.axis.labelpadding*y,v.height*.3)),l=Math.max(l,v.width+c.axis.labelpadding)}),u.exit().remove(),f.maxExtent=l,f}function g$t(e,t,r,n,i,a,o,s){var u,l,f,c,h=Uv.aggNums(Math.min,null,r.a),d=Uv.aggNums(Math.max,null,r.a),p=Uv.aggNums(Math.min,null,r.b),y=Uv.aggNums(Math.max,null,r.b);u=.5*(h+d),l=p,f=r.ab2xy(u,l,!0),c=r.dxyda_rough(u,l),o.angle===void 0&&Uv.extendFlat(o,vC(r,i,a,f,r.dxydb_rough(u,l))),XYe(e,t,r,n,f,c,r.aaxis,i,a,o,"a-title"),u=h,l=.5*(p+y),f=r.ab2xy(u,l,!0),c=r.dxydb_rough(u,l),s.angle===void 0&&Uv.extendFlat(s,vC(r,i,a,f,r.dxyda_rough(u,l))),XYe(e,t,r,n,f,c,r.baxis,i,a,s,"b-title")}var JYe=KYe.LINE_SPACING,_$t=(1-KYe.MID_SHIFT)/JYe+1;function XYe(e,t,r,n,i,a,o,s,u,l,f){var c=[];o.title.text&&c.push(o.title.text);var h=t.selectAll("text."+f).data(c),d=l.maxExtent;h.enter().append("text").classed(f,!0),h.each(function(){var p=vC(r,s,u,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var y=o.title.font.size;d+=y+o.title.offset;var b=l.angle+(l.flip<0?180:0),v=(b-p.angle+450)%360,C=v>90&&v<270,M=fO.select(this);M.text(o.title.text).call(j$.convertToTspans,e),C&&(d=(-j$.lineCount(M)+_$t)*JYe*y-d),M.attr("transform",uO(p.p[0],p.p[1])+YYe(p.angle)+uO(0,d)).attr("text-anchor","middle").call(sO.font,o.title.font)}),h.exit().remove()}});var tKe=we((X3r,eKe)=>{"use strict";var cO=ei().isArrayOrTypedArray;eKe.exports=function(e,t,r){var n,i,a,o,s,u,l=[],f=cO(e)?e.length:e,c=cO(t)?t.length:t,h=cO(e)?e:null,d=cO(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(f-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(c-1));var p,y=1/0,b=-1/0;for(i=0;i{"use strict";var rKe=ei().isArrayOrTypedArray;nKe.exports=function(e){return iKe(e,0)};function iKe(e,t){if(!rKe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var x$t=wu(),Bx=Su().extendFlat;oKe.exports=function(t,r,n){var i,a,o,s,u,l,f,c,h,d,p,y,b,v,C=t["_"+r],M=t[r+"axis"],A=M._gridlines=[],L=M._minorgridlines=[],x=M._boundarylines=[],k=t["_"+n],S=t[n+"axis"];M.tickmode==="array"&&(M.tickvals=C.slice());var m=t._xctrl,P=t._yctrl,E=m[0].length,O=m.length,F=t._a.length,U=t._b.length;x$t.prepTicks(M),M.tickmode==="array"&&delete M.tickvals;var G=M.smoothing?3:1;function j(N){var H,re,ae,me,Le,Ce,de,te,Se,Te,be,He,Ie=[],ge=[],Be={};if(r==="b")for(re=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(U-2,re))),me=re-ae,Be.length=U,Be.crossLength=F,Be.xy=function(ce){return t.evalxy([],ce,re)},Be.dxy=function(ce,je){return t.dxydi([],ce,ae,je,me)},H=0;H0&&(Se=t.dxydi([],H-1,ae,0,me),Ie.push(Le[0]+Se[0]/3),ge.push(Le[1]+Se[1]/3),Te=t.dxydi([],H-1,ae,1,me),Ie.push(te[0]-Te[0]/3),ge.push(te[1]-Te[1]/3)),Ie.push(te[0]),ge.push(te[1]),Le=te;else for(H=t.a2i(N),Ce=Math.floor(Math.max(0,Math.min(F-2,H))),de=H-Ce,Be.length=F,Be.crossLength=U,Be.xy=function(ce){return t.evalxy([],H,ce)},Be.dxy=function(ce,je){return t.dxydj([],Ce,ce,de,je)},re=0;re0&&(be=t.dxydj([],Ce,re-1,de,0),Ie.push(Le[0]+be[0]/3),ge.push(Le[1]+be[1]/3),He=t.dxydj([],Ce,re-1,de,1),Ie.push(te[0]-He[0]/3),ge.push(te[1]-He[1]/3)),Ie.push(te[0]),ge.push(te[1]),Le=te;return Be.axisLetter=r,Be.axis=M,Be.crossAxis=S,Be.value=N,Be.constvar=n,Be.index=c,Be.x=Ie,Be.y=ge,Be.smoothing=S.smoothing,Be}function W(N){var H,re,ae,me,Le,Ce=[],de=[],te={};if(te.length=C.length,te.crossLength=k.length,r==="b")for(ae=Math.max(0,Math.min(U-2,N)),Le=Math.min(1,Math.max(0,N-ae)),te.xy=function(Se){return t.evalxy([],Se,N)},te.dxy=function(Se,Te){return t.dxydi([],Se,ae,Te,Le)},H=0;HC.length-1)&&A.push(Bx(W(a),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(c=l;cC.length-1)&&!(p<0||p>C.length-1))for(y=C[o],b=C[p],i=0;iC[C.length-1])&&L.push(Bx(j(d),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash})));M.startline&&x.push(Bx(W(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&x.push(Bx(W(C.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(s=5e-15,u=[Math.floor((C[C.length-1]-M.tick0)/M.dtick*(1+s)),Math.ceil((C[0]-M.tick0)/M.dtick/(1+s))].sort(function(N,H){return N-H}),l=u[0],f=u[1],c=l;c<=f;c++)h=M.tick0+M.dtick*c,A.push(Bx(j(h),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(c=l-1;cC[C.length-1])&&L.push(Bx(j(d),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash}));M.startline&&x.push(Bx(j(C[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&x.push(Bx(j(C[C.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}});var cKe=we((K3r,fKe)=>{"use strict";var lKe=wu(),uKe=Su().extendFlat;fKe.exports=function(t,r){var n,i,a,o,s,u=r._labels=[],l=r._gridlines;for(n=0;n{"use strict";hKe.exports=function(t,r,n,i){var a,o,s,u=[],l=!!n.smoothing,f=!!i.smoothing,c=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=c;a++)o[a]=t[0][a],s[a]=r[0][a];for(u.push({x:o,y:s,bicubic:l}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][c],s[a]=r[a][c];for(u.push({x:o,y:s,bicubic:f}),a=c,o=[],s=[];a>=0;a--)o[c-a]=t[h][a],s[c-a]=r[h][a];for(u.push({x:o,y:s,bicubic:l}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return u.push({x:o,y:s,bicubic:f}),u}});var vKe=we(($3r,pKe)=>{"use strict";var b$t=ei();pKe.exports=function(t,r,n){var i,a,o,s=[],u=[],l=t[0].length,f=t.length;function c(ae,me){var Le=0,Ce,de=0;return ae>0&&(Ce=t[me][ae-1])!==void 0&&(de++,Le+=Ce),ae0&&(Ce=t[me-1][ae])!==void 0&&(de++,Le+=Ce),me0&&a0&&iS);return b$t.log("Smoother converged to",m,"after",E,"iterations"),t}});var yKe=we((Q3r,mKe)=>{"use strict";mKe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var xKe=we((eAr,_Ke)=>{"use strict";var gKe=.5;_Ke.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],u=n[1]-r[1],l=Math.pow(a*a+o*o,gKe/2),f=Math.pow(s*s+u*u,gKe/2),c=(f*f*a-l*l*s)*i,h=(f*f*o-l*l*u)*i,d=f*(l+f)*3,p=l*(l+f)*3;return[[r[0]+(d&&c/d),r[1]+(d&&h/d)],[r[0]-(p&&c/p),r[1]-(p&&h/p)]]}});var wKe=we((tAr,bKe)=>{"use strict";var X$=xKe(),hO=ei().ensureArray;function WS(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}bKe.exports=function(t,r,n,i,a,o){var s,u,l,f,c,h,d,p,y,b,v=n[0].length,C=n.length,M=a?3*v-2:v,A=o?3*C-2:C;for(t=hO(t,A),r=hO(r,A),l=0;l{"use strict";AKe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,u,l){s||(s=[]);var f,c,h,d,p,y,b=Math.max(0,Math.min(Math.floor(u),a)),v=Math.max(0,Math.min(Math.floor(l),o)),C=Math.max(0,Math.min(1,u-b)),M=Math.max(0,Math.min(1,l-v));b*=3,v*=3;var A=C*C,L=A*C,x=1-C,k=x*x,S=k*x,m=M*M,P=m*M,E=1-M,O=E*E,F=O*E;for(y=0;y{"use strict";SKe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,y=1-o,b=y*y,v=y*o*2,C=-3*b,M=3*(b-v),A=3*(v-p),L=3*p,x=s*s,k=x*s,S=1-s,m=S*S,P=m*S;for(d=0;d{"use strict";EKe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,y=p*o,b=1-o,v=b*b,C=v*b,M=s*s,A=1-s,L=A*A,x=A*s*2,k=-3*L,S=3*(L-x),m=3*(x-M),P=3*M;for(d=0;d{"use strict";var CKe=yKe(),LKe=VL().findBin,w$t=wKe(),A$t=TKe(),T$t=MKe(),S$t=kKe();PKe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,u=r[0],l=r[i-1],f=n[0],c=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],p=h*CKe.RELATIVE_CULL_TOLERANCE,y=d*CKe.RELATIVE_CULL_TOLERANCE;u-=p,l+=p,f-=y,c+=y,t.isVisible=function(b,v){return b>u&&bf&&vl||vc},t.setScale=function(){var b=t._x,v=t._y,C=w$t(t._xctrl,t._yctrl,b,v,o.smoothing,s.smoothing);t._xctrl=C[0],t._yctrl=C[1],t.evalxy=A$t([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=T$t([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=S$t([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var v=Math.max(0,Math.floor(b[0]),i-2),C=b[0]-v;return(1-C)*r[v]+C*r[v+1]},t.j2b=function(b){var v=Math.max(0,Math.floor(b[1]),i-2),C=b[1]-v;return(1-C)*n[v]+C*n[v+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var v=Math.max(0,Math.min(LKe(b,r),i-2)),C=r[v],M=r[v+1];return Math.max(0,Math.min(i-1,v+(b-C)/(M-C)))},t.b2j=function(b){var v=Math.max(0,Math.min(LKe(b,n),a-2)),C=n[v],M=n[v+1];return Math.max(0,Math.min(a-1,v+(b-C)/(M-C)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,v){return t.evalxy([],b,v)},t.ab2xy=function(b,v,C){if(!C&&(br[i-1]|vn[a-1]))return[!1,!1];var M=t.a2i(b),A=t.b2j(v),L=t.evalxy([],M,A);if(C){var x=0,k=0,S=[],m,P,E,O;br[i-1]?(m=i-2,P=1,x=(b-r[i-1])/(r[i-1]-r[i-2])):(m=Math.max(0,Math.min(i-2,Math.floor(M))),P=M-m),vn[a-1]?(E=a-2,O=1,k=(v-n[a-1])/(n[a-1]-n[a-2])):(E=Math.max(0,Math.min(a-2,Math.floor(A))),O=A-E),x&&(t.dxydi(S,m,E,P,O),L[0]+=S[0]*x,L[1]+=S[1]*x),k&&(t.dxydj(S,m,E,P,O),L[0]+=S[0]*k,L[1]+=S[1]*k)}return L},t.c2p=function(b,v,C){return[v.c2p(b[0]),C.c2p(b[1])]},t.p2x=function(b,v,C){return[v.p2c(b[0]),C.p2c(b[1])]},t.dadi=function(b){var v=Math.max(0,Math.min(r.length-2,b));return r[v+1]-r[v]},t.dbdj=function(b){var v=Math.max(0,Math.min(n.length-2,b));return n[v+1]-n[v]},t.dxyda=function(b,v,C,M){var A=t.dxydi(null,b,v,C,M),L=t.dadi(b,C);return[A[0]/L,A[1]/L]},t.dxydb=function(b,v,C,M){var A=t.dxydj(null,b,v,C,M),L=t.dbdj(v,M);return[A[0]/L,A[1]/L]},t.dxyda_rough=function(b,v,C){var M=h*(C||.1),A=t.ab2xy(b+M,v,!0),L=t.ab2xy(b-M,v,!0);return[(A[0]-L[0])*.5/M,(A[1]-L[1])*.5/M]},t.dxydb_rough=function(b,v,C){var M=d*(C||.1),A=t.ab2xy(b,v+M,!0),L=t.ab2xy(b,v-M,!0);return[(A[0]-L[0])*.5/M,(A[1]-L[1])*.5/M]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var NKe=we((oAr,qKe)=>{"use strict";var dO=wu(),IKe=ei().isArray1D,M$t=tKe(),DKe=aKe(),RKe=sKe(),FKe=cKe(),E$t=dKe(),OKe=fD(),BKe=vKe(),k$t=lD(),C$t=zKe();qKe.exports=function(t,r){var n=dO.getFromId(t,r.xaxis),i=dO.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,u=r.y,l=[];s&&IKe(s)&&l.push("x"),u&&IKe(u)&&l.push("y"),l.length&&k$t(r,a,o,"a","b",l);var f=r._a=r._a||r.a,c=r._b=r._b||r.b;s=r._x||r.x,u=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?f.length:f,p=o.cheatertype==="index"?c.length:c;s=M$t(d,p,r.cheaterslope)}r._x=s=OKe(s),r._y=u=OKe(u),BKe(s,f,c),BKe(u,f,c),C$t(r),r.setScale();var y=DKe(s),b=DKe(u),v=.5*(y[1]-y[0]),C=.5*(y[1]+y[0]),M=.5*(b[1]-b[0]),A=.5*(b[1]+b[0]),L=1.3;return y=[C-v*L,C+v*L],b=[A-M*L,A+M*L],r._extremes[n._id]=dO.findExtremes(n,y,{padded:!0}),r._extremes[i._id]=dO.findExtremes(i,b,{padded:!0}),RKe(r,"a","b"),RKe(r,"b","a"),FKe(r,a),FKe(r,o),h.clipsegments=E$t(r._xctrl,r._yctrl,a,o),h.x=s,h.y=u,h.a=f,h.b=c,[h]}});var VKe=we((sAr,UKe)=>{"use strict";UKe.exports={attributes:oO(),supplyDefaults:UYe(),plot:QYe(),calc:NKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Mh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var HKe=we((lAr,GKe)=>{"use strict";GKe.exports=VKe()});var Z$=we((uAr,ZKe)=>{"use strict";var L$t=Pm(),f0=Zc(),P$t=Gf(),{hovertemplateAttrs:z$t,texttemplateAttrs:I$t,templatefallbackAttrs:WKe}=Ff(),jKe=nc(),qx=Su().extendFlat,um=f0.marker,jS=f0.line,XKe=um.line;ZKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:qx({},f0.mode,{dflt:"markers"}),text:qx({},f0.text,{}),texttemplate:I$t({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:WKe({editType:"plot"}),hovertext:qx({},f0.hovertext,{}),line:{color:jS.color,width:jS.width,dash:jS.dash,backoff:jS.backoff,shape:qx({},jS.shape,{values:["linear","spline"]}),smoothing:jS.smoothing,editType:"calc"},connectgaps:f0.connectgaps,fill:qx({},f0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:L$t(),marker:qx({symbol:um.symbol,opacity:um.opacity,maxdisplayed:um.maxdisplayed,angle:um.angle,angleref:um.angleref,standoff:um.standoff,size:um.size,sizeref:um.sizeref,sizemin:um.sizemin,sizemode:um.sizemode,line:qx({width:XKe.width,dash:XKe.dash,editType:"calc"},jKe("marker.line")),gradient:um.gradient,editType:"calc"},jKe("marker")),textfont:f0.textfont,textposition:f0.textposition,selected:f0.selected,unselected:f0.unselected,hoverinfo:qx({},P$t.hoverinfo,{flags:["a","b","text","name"]}),hoveron:f0.hoveron,hovertemplate:z$t(),hovertemplatefallback:WKe(),zorder:f0.zorder}});var $Ke=we((fAr,JKe)=>{"use strict";var YKe=ei(),D$t=Py(),XS=lc(),R$t=$v(),F$t=D0(),KKe=uA(),O$t=R0(),B$t=Rm(),q$t=Z$();JKe.exports=function(t,r,n,i){function a(h,d){return YKe.coerce(t,r,q$t,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext");var l=u{"use strict";QKe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,u=Math.floor(a[1]),l=a[1]-u,f=i.evalxy([],o,u,s,l);return n.yLabel=f[1].toFixed(3),n}});var pO=we((hAr,tJe)=>{"use strict";tJe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var rJe=ku(),N$t=F0(),U$t=Dy(),V$t=O0(),G$t=B0().calcMarkerSize,H$t=pO();iJe.exports=function(t,r){var n=r._carpetTrace=H$t(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,u,l=!1;for(i=0;i{"use strict";var W$t=vA(),aJe=wu(),j$t=Mu();oJe.exports=function(t,r,n,i){var a,o,s,u=n[0][0].carpet,l=aJe.getFromId(t,u.xaxis||"x"),f=aJe.getFromId(t,u.yaxis||"y"),c={xaxis:l,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var X$t=_A(),Z$t=ei().fillText;lJe.exports=function(t,r,n,i){var a=X$t(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index];o.a=c.a,o.b=c.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,p=h._module.formatLabels(c,h);o.yLabel=p.yLabel,delete o.text;var y=[];function b(M,A){var L;M.labelprefix&&M.labelprefix.length>0?L=M.labelprefix.replace(/ = $/,""):L=M._hovertitle,y.push(L+": "+A.toFixed(3)+M.labelsuffix)}if(!h.hovertemplate){var v=c.hi||h.hoverinfo,C=v.split("+");C.indexOf("all")!==-1&&(C=["a","b","text"]),C.indexOf("a")!==-1&&b(d.aaxis,c.a),C.indexOf("b")!==-1&&b(d.baxis,c.b),y.push("y: "+o.yLabel),C.indexOf("text")!==-1&&Z$t(c,h,y),o.extraText=y.join("
")}return a}});var cJe=we((mAr,fJe)=>{"use strict";fJe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var dJe=we((yAr,hJe)=>{"use strict";hJe.exports={attributes:Z$(),supplyDefaults:$Ke(),colorbar:tp(),formatLabels:eJe(),calc:nJe(),plot:sJe(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:uJe(),selectPoints:xA(),eventData:cJe(),moduleType:"trace",name:"scattercarpet",basePlotModule:Mh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var vJe=we((gAr,pJe)=>{"use strict";pJe.exports=dJe()});var Y$=we((_Ar,mJe)=>{"use strict";var fm=OA(),A1=BE(),Y$t=nc(),K$t=Su().extendFlat,ug=A1.contours;mJe.exports=K$t({carpet:{valType:"string",editType:"calc"},z:fm.z,a:fm.x,a0:fm.x0,da:fm.dx,b:fm.y,b0:fm.y0,db:fm.dy,text:fm.text,hovertext:fm.hovertext,transpose:fm.transpose,atype:fm.xtype,btype:fm.ytype,fillcolor:A1.fillcolor,autocontour:A1.autocontour,ncontours:A1.ncontours,contours:{type:ug.type,start:ug.start,end:ug.end,size:ug.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:ug.showlines,showlabels:ug.showlabels,labelfont:ug.labelfont,labelformat:ug.labelformat,operation:ug.operation,value:ug.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:A1.line.color,width:A1.line.width,dash:A1.line.dash,smoothing:A1.line.smoothing,editType:"plot"},zorder:A1.zorder},Y$t("",{cLetter:"z",autoColorDflt:!1}))});var K$=we((xAr,_Je)=>{"use strict";var yJe=ei(),J$t=aD(),gJe=Y$(),$$t=WG(),Q$t=CD(),eQt=LD();_Je.exports=function(t,r,n,i){function a(l,f){return yJe.coerce(t,r,gJe,l,f)}function o(l){return yJe.coerce2(t,r,gJe,l)}if(a("carpet"),t.a&&t.b){var s=J$t(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var u=a("contours.type")==="constraint";u?$$t(t,r,a,i,n,{hasHover:!1}):(Q$t(t,r,a,o),eQt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var AJe=we((bAr,wJe)=>{"use strict";var tQt=gp(),xJe=ei(),rQt=lD(),iQt=fD(),nQt=cD(),aQt=hD(),bJe=pG(),oQt=K$(),sQt=pO(),lQt=IG();wJe.exports=function(t,r){var n=r._carpetTrace=sQt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),oQt(a,r,r._defaultColor,t._fullLayout)}var o=uQt(t,r);return lQt(r,r._z),o}};function uQt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,u,l,f,c;n._minDtick=0,i._minDtick=0,xJe.isArray1D(t.z)&&rQt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,u=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],u=u?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,l=t.b0||0,f=t.db||1,c=t._z=iQt(t._z||t.z,t.transpose),t._emptypoints=aQt(c),nQt(c,t._emptypoints);var h=xJe.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=bJe(t,d,o,s,h,n),y=t.ytype==="scaled"?"":u,b=bJe(t,y,l,f,c.length,i),v={a:p,b,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&tQt(e,t,{vals:c,containerStr:"",cLetter:"z"}),[v]}});var SJe=we((wAr,TJe)=>{"use strict";var fQt=ei().isArrayOrTypedArray;TJe.exports=function(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p,y,b,v=fQt(r)?"a":"b",C=v==="a"?e.aaxis:e.baxis,M=C.smoothing,A=v==="a"?e.a2i:e.b2j,L=v==="a"?r:n,x=v==="a"?n:r,k=v==="a"?t.a.length:t.b.length,S=v==="a"?t.b.length:t.a.length,m=Math.floor(v==="a"?e.b2j(x):e.a2i(x)),P=v==="a"?function(me){return e.evalxy([],me,m)}:function(me){return e.evalxy([],m,me)};M&&(o=Math.max(0,Math.min(S-2,m)),s=m-o,a=v==="a"?function(me,Le){return e.dxydi([],me,o,Le,s)}:function(me,Le){return e.dxydj([],o,me,s,Le)});var E=A(L[0]),O=A(L[1]),F=E0?Math.floor:Math.ceil,j=F>0?Math.ceil:Math.floor,W=F>0?Math.min:Math.max,N=F>0?Math.max:Math.min,H=G(E+U),re=j(O-U);f=P(E);var ae=[[f]];for(i=H;i*F{"use strict";var mO=Jl(),yO=H$(),LJe=W$(),mC=Mu(),T1=ei(),cQt=RG(),hQt=FG(),Sw=ID(),vO=NE(),dQt=NG(),pQt=qG(),vQt=UG(),mQt=pO(),MJe=SJe();PJe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;T1.makeTraceGroups(i,n,"contour").each(function(s){var u=mO.select(this),l=s[0],f=l.trace,c=f._carpetTrace=mQt(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=l.a,p=l.b,y=f.contours,b=pQt(y,r,l),v=y.type==="constraint",C=y._operation,M=v?C==="="?"lines":"fill":y.coloring;function A(G){var j=c.ab2xy(G[0],G[1],!0);return[a.c2p(j[0]),o.c2p(j[1])]}var L=[[d[0],p[p.length-1]],[d[d.length-1],p[p.length-1]],[d[d.length-1],p[0]],[d[0],p[0]]];cQt(b);var x=(d[d.length-1]-d[0])*1e-8,k=(p[p.length-1]-p[0])*1e-8;hQt(b,x,k);var S=b;y.type==="constraint"&&(S=dQt(b,C)),yQt(b,A);var m,P,E,O,F=[];for(O=h.clipsegments.length-1;O>=0;O--)m=h.clipsegments[O],P=yO([],m.x,a.c2p),E=yO([],m.y,o.c2p),P.reverse(),E.reverse(),F.push(LJe(P,E,m.bicubic));var U="M"+F.join("L")+"Z";xQt(u,h.clipsegments,a,o,v,M),bQt(f,u,a,o,S,L,A,c,h,M,U),gQt(u,b,t,l,y,r,c),mC.setClipUrl(u,c._clipPathId,t)})};function yQt(e,t){var r,n,i,a,o,s,u,l,f;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function EJe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function kJe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function CJe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function xQt(e,t,r,n,i,a){var o,s,u,l,f=T1.ensureSingle(e,"g","contourbg"),c=f.selectAll("path").data(a==="fill"&&!i?[0]:[]);c.enter().append("path"),c.exit().remove();var h=[];for(l=0;l=0&&(d=P,y=b):Math.abs(h[1]-d[1])=0&&(d=P,y=b):T1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(y>=0)break;l+=S(h,d),h=d}if(y===t.edgepaths.length){T1.log("unclosed perimeter path");break}u=y,c=f.indexOf(u)===-1,c&&(u=f[0],l+=S(h,d)+"Z",h=null)}for(u=0;u{"use strict";IJe.exports={attributes:Y$(),supplyDefaults:K$(),colorbar:FD(),calc:AJe(),plot:zJe(),style:RD(),moduleType:"trace",name:"contourcarpet",basePlotModule:Mh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var FJe=we((SAr,RJe)=>{"use strict";RJe.exports=DJe()});var _O=we((MAr,UJe)=>{"use strict";var gO=ei().extendFlat,yC=Zc(),OJe=Xc().axisHoverFormat,{hovertemplateAttrs:AQt,templatefallbackAttrs:TQt}=Ff(),qJe=Id().dash,SQt=m3(),NJe=QA(),MQt=NJe.INCREASING.COLOR,EQt=NJe.DECREASING.COLOR,J$=yC.line;function BJe(e){return{line:{color:gO({},J$.color,{dflt:e}),width:J$.width,dash:qJe,editType:"style"},editType:"style"}}UJe.exports={xperiod:yC.xperiod,xperiod0:yC.xperiod0,xperiodalignment:yC.xperiodalignment,xhoverformat:OJe("x"),yhoverformat:OJe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:gO({},J$.width,{}),dash:gO({},qJe,{}),editType:"style"},increasing:BJe(MQt),decreasing:BJe(EQt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:AQt({},{keys:["open","high","low","close"]}),hovertemplatefallback:TQt(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:gO({},SQt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:yC.zorder}});var $$=we((EAr,VJe)=>{"use strict";var kQt=$l(),CQt=ei();VJe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),u=n("low"),l=n("close");n("hoverlabel.split");var f=kQt.getComponentMethod("calendars","handleTraceDefaults");if(f(t,r,["x"],i),!!(o&&s&&u&&l)){var c=Math.min(o.length,s.length,u.length,l.length);return a&&(c=Math.min(c,CQt.minRowLength(a))),r._length=c,c}}});var WJe=we((kAr,HJe)=>{"use strict";var LQt=ei(),PQt=$$(),zQt=Dm(),IQt=_O();HJe.exports=function(t,r,n,i){function a(s,u){return LQt.coerce(t,r,IQt,s,u)}var o=PQt(t,r,a,i);if(!o){r.visible=!1;return}zQt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),GJe(t,r,a,"increasing"),GJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function GJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var Q$=we((CAr,XJe)=>{"use strict";var ZS=ei(),xO=ZS._,bO=wu(),DQt=Fm(),gC=rf().BADNUM;function RQt(e,t){var r=bO.getFromId(e,t.xaxis),n=bO.getFromId(e,t.yaxis),i=OQt(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var u=jJe(e,t,o,s,n,FQt);return t._extremes[r._id]=bO.findExtremes(r,s,{vpad:a/2}),u.length?(ZS.extendFlat(u[0].t,{wHover:a/2,tickLen:i}),u):[{t:{empty:!0}}]}function FQt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function jJe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),u=i.makeCalcdata(t,"low"),l=i.makeCalcdata(t,"close"),f=ZS.isArrayOrTypedArray(t.text),c=ZS.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,y=[],b=0;bd):h=L>C,d=L;var x=a(C,M,A,L);x.pos=v,x.yc=(C+L)/2,x.i=b,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[A,M],p&&(x.orig_p=r[b]),f&&(x.tx=t.text[b]),c&&(x.htx=t.hovertext[b]),y.push(x)}else y.push({pos:v,empty:!0})}return t._extremes[i._id]=bO.findExtremes(i,ZS.concat(u,s),{padded:!0}),y.length&&(y[0].t={labels:{open:xO(e,"open:")+" ",high:xO(e,"high:")+" ",low:xO(e,"low:")+" ",close:xO(e,"close:")+" "}}),y}function OQt(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var BQt=Jl(),ZJe=ei();YJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;ZJe.makeTraceGroups(i,n,"trace ohlc").each(function(u){var l=BQt.select(this),f=u[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){l.remove();return}var d=c.tickLen,p=l.selectAll("path").data(ZJe.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(y){if(y.empty)return"M0,0Z";var b=o.c2p(y.pos-d,!0),v=o.c2p(y.pos+d,!0),C=s?(b+v)/2:o.c2p(y.pos,!0),M=a.c2p(y.o,!0),A=a.c2p(y.h,!0),L=a.c2p(y.l,!0),x=a.c2p(y.c,!0);return"M"+b+","+M+"H"+C+"M"+C+","+A+"V"+L+"M"+v+","+x+"H"+C})})}});var $Je=we((PAr,JJe)=>{"use strict";var eQ=Jl(),qQt=Mu(),NQt=jl();JJe.exports=function(t,r,n){var i=n||eQ.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;eQ.select(this).selectAll("path").each(function(s){if(!s.empty){var u=o[s.dir].line;eQ.select(this).style("fill","none").call(NQt.stroke,u.color).call(qQt.dashLine,u.dash,u.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var rQ=we((zAr,i$e)=>{"use strict";var tQ=wu(),UQt=ei(),wO=Vc(),VQt=jl(),GQt=ei().fillText,QJe=QA(),HQt={increasing:QJe.INCREASING.SYMBOL,decreasing:QJe.DECREASING.SYMBOL};function WQt(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?t$e(e,t,r,n):r$e(e,t,r,n)}function e$e(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,u=o.type,l=u==="ohlc"?"l":"min",f=u==="ohlc"?"h":"max",c,h,d=s.bPos||0,p=function(P){return P.pos+d-t},y=s.bdPos||s.tickLen,b=s.wHover,v=Math.min(1,y/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-v,h=e.maxSpikeDistance-v;function C(P){var E=p(P);return wO.inbox(E-b,E+b,c)}function M(P){var E=P[l],O=P[f];return E===O||wO.inbox(E-r,O-r,c)}function A(P){return(C(P)+M(P))/2}var L=wO.getDistanceFunction(n,C,M,A);if(wO.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var k=x.dir,S=o[k],m=S.line.color;return VQt.opacity(m)&&S.line.width?e.color=m:e.color=S.fillcolor,e.x0=a.c2p(x.pos+d-y,!0),e.x1=a.c2p(x.pos+d+y,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=A(x)*h/c,e.xSpike=a.c2p(x.pos,!0),e}function t$e(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=[],l=e$e(e,t,r,n);if(!l)return[];var f=i[l.index],c=f.hi||o.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var h=["high","open","close","low"],d={},p=0;p"+s.labels[y]+tQ.hoverLabelText(a,b,o.yhoverformat)):(C=UQt.extendFlat({},l),C.y0=C.y1=v,C.yLabelVal=b,C.yLabel=s.labels[y]+tQ.hoverLabelText(a,b,o.yhoverformat),C.name="",u.push(C),d[b]=C)}return u}function r$e(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=e$e(e,t,r,n);if(!u)return[];var l=u.index,f=i[l],c=u.index=f.i,h=f.dir;function d(A){return s.labels[A]+tQ.hoverLabelText(a,o[A][c],o.yhoverformat)}var p=f.hi||o.hoverinfo||"",y=p.split("+"),b=p==="all",v=b||y.indexOf("y")!==-1,C=b||y.indexOf("text")!==-1,M=v?[d("open"),d("high"),d("low"),d("close")+" "+HQt[h]]:[];return C&&GQt(f,o,M),u.extraText=M.join("
"),u.y0=u.y1=a.c2p(f.yc,!0),[u]}i$e.exports={hoverPoints:WQt,hoverSplit:t$e,hoverOnPoints:r$e}});var iQ=we((IAr,n$e)=>{"use strict";n$e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";a$e.exports={moduleType:"trace",name:"ohlc",basePlotModule:Mh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:_O(),supplyDefaults:WJe(),calc:Q$().calc,plot:KJe(),style:$Je(),hoverPoints:rQ().hoverPoints,selectPoints:iQ()}});var l$e=we((RAr,s$e)=>{"use strict";s$e.exports=o$e()});var aQ=we((FAr,c$e)=>{"use strict";var nQ=ei().extendFlat,u$e=Xc().axisHoverFormat,pv=_O(),YS=CE();function f$e(e){return{line:{color:nQ({},YS.line.color,{dflt:e}),width:YS.line.width,editType:"style"},fillcolor:YS.fillcolor,editType:"style"}}c$e.exports={xperiod:pv.xperiod,xperiod0:pv.xperiod0,xperiodalignment:pv.xperiodalignment,xhoverformat:u$e("x"),yhoverformat:u$e("y"),x:pv.x,open:pv.open,high:pv.high,low:pv.low,close:pv.close,line:{width:nQ({},YS.line.width,{}),editType:"style"},increasing:f$e(pv.increasing.line.color.dflt),decreasing:f$e(pv.decreasing.line.color.dflt),text:pv.text,hovertext:pv.hovertext,hovertemplate:pv.hovertemplate,hovertemplatefallback:pv.hovertemplatefallback,whiskerwidth:nQ({},YS.whiskerwidth,{dflt:0}),hoverlabel:pv.hoverlabel,zorder:YS.zorder}});var p$e=we((OAr,d$e)=>{"use strict";var jQt=ei(),XQt=jl(),ZQt=$$(),YQt=Dm(),KQt=aQ();d$e.exports=function(t,r,n,i){function a(s,u){return jQt.coerce(t,r,KQt,s,u)}var o=ZQt(t,r,a,i);if(!o){r.visible=!1;return}YQt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),h$e(t,r,a,"increasing"),h$e(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function h$e(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",XQt.addOpacity(i,.5))}});var g$e=we((BAr,y$e)=>{"use strict";var v$e=ei(),m$e=wu(),JQt=Fm(),$Qt=Q$().calcCommon;y$e.exports=function(e,t){var r=e._fullLayout,n=m$e.getFromId(e,t.xaxis),i=m$e.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=JQt(t,n,"x",a).vals,s=$Qt(e,t,a,o,i,QQt);return s.length?(v$e.extendFlat(s[0].t,{num:r._numBoxes,dPos:v$e.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function QQt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var x$e=we((qAr,_$e)=>{"use strict";_$e.exports={moduleType:"trace",name:"candlestick",basePlotModule:Mh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:aQ(),layoutAttributes:LE(),supplyLayoutDefaults:QI().supplyLayoutDefaults,crossTraceCalc:tD().crossTraceCalc,supplyDefaults:p$e(),calc:g$e(),plot:rD().plot,layerName:"boxlayer",style:iD().style,hoverPoints:rQ().hoverPoints,selectPoints:iQ()}});var w$e=we((NAr,b$e)=>{"use strict";b$e.exports=x$e()});var sQ=we((UAr,A$e)=>{"use strict";var TO=ei(),eer=xy(),AO=TO.deg2rad,oQ=TO.rad2deg;A$e.exports=function(t,r,n){switch(eer(t,n),t._id){case"x":case"radialaxis":ter(t,r);break;case"angularaxis":ner(t,r);break}};function ter(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,u=n>i?function(l){return l<=0}:function(l){return l>=0};e.c2g=function(l){var f=e.c2l(l)-n;return(u(f)?f:0)+s},e.g2c=function(l){return e.l2c(l+n-s)},e.g2p=function(l){return l*o},e.c2p=function(l){return e.g2p(e.c2g(l))}}}function rer(e,t){return t==="degrees"?AO(e):e}function ier(e,t){return t==="degrees"?oQ(e):e}function ner(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return rer(n(a),o)},e.c2d=function(a,o){return i(ier(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],u=a._length,l,f,c=function(b){return e.d2c(b,a.thetaunit)};if(s)for(l=new Array(u),f=0;f{"use strict";T$e.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var EO=we((GAr,C$e)=>{"use strict";var Mw=ei(),S$e=F5().tester,lQ=Mw.findIndexOfMin,E$e=Mw.isAngleInsideSector,aer=Mw.angleDelta,M$e=Mw.angleDist;function oer(e,t,r,n,i){if(!E$e(t,n))return!1;var a,o;r[0]0?o:1/0},n=lQ(t,r),i=Mw.mod(n+1,t.length);return[t[n],t[i]]}function MO(e){return Math.abs(e)>1e-10?e:0}function uQ(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function L$e(e){return e<0?-1:e>0?1:0}function JS(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function $S(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function P$e(e,t){return t*e.radius}function per(e,t,r,n){var i=$S(e,JS([r,t])),a=i[0],o=i[1],s=$S(e,JS([n,t])),u=s[0],l=s[1];if(t===0)return["M"+a+","+o,"L"+u+","+l].join(" ");var f=P$e(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+u+","+l].join(" ")}function ver(e,t,r,n){var i=P$e(e,1/(t+1)),a=$S(e,JS([t,r])),o=a[0],s=a[1],u=$S(e,JS([t,n])),l=u[0],f=u[1];if(L$e(r)!==L$e(n)){var c=$S(e,JS([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var Ew=Jl(),mer=hd(),Cw=$l(),Bc=ei(),fg=Bc.strRotate,bd=Bc.strTranslate,cQ=jl(),_C=Mu(),yer=Cc(),vv=wu(),ger=xy(),_er=sQ(),xer=Mm().doAutoRange,S1=iU(),LO=xp(),I$e=Vc(),ber=Ob(),wer=oh().prepSelect,Aer=oh().selectOnClick,hQ=oh().clearOutline,D$e=Em(),R$e=w5(),F$e=L5().redrawReglTraces,Ter=Nh().MID_SHIFT,Nx=SO(),M1=EO(),PO=fQ(),kO=PO.smith,Ser=PO.reactanceArc,Mer=PO.resistanceArc,CO=PO.smithTransform,Eer=Bc._,O$e=Bc.mod,Ux=Bc.deg2rad,kw=Bc.rad2deg;function B$e(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Vd=B$e.prototype;U$e.exports=function(t,r,n){return new B$e(t,r,n)};Vd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(v=l,C=l*b,L=(f-C)/i.h/2,M=[s[0],s[1]],A=[u[0]+L,u[1]-L]):(v=f/b,C=f,L=(l-v)/i.w/2,M=[s[0]+L,s[1]-L],A=[u[0],u[1]]),r.xLength2=v,r.yLength2=C,r.xDomain2=M,r.yDomain2=A;var x=r.xOffset2=i.l+i.w*M[0],k=r.yOffset2=i.t+i.h*(1-A[1]),S=r.radius=v/d,m=r.innerRadius=r.getHole(t)*S,P=r.cx=x-S*h[0],E=r.cy=k+S*h[3],O=r.cxx=P-x,F=r.cyy=E-k,U=a.side,G;U==="counterclockwise"?(G=U,U="top"):U==="clockwise"&&(G=U,U="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:U,_trueSide:G,domain:[m/i.w,S/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:M}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:A});var j=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",j).attr("transform",bd(O,F)),n.frontplot.attr("transform",bd(x,k)).call(_C.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",j).attr("transform",bd(P,E)).call(cQ.fill,t.bgcolor)};Vd.mockAxis=function(e,t,r,n){var i=Bc.extendFlat({},r,n);return _er(i,t,e),i};Vd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Bc.extendFlat({type:"linear"},r);ger(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var u=n.sectorBBox,l=s[a],f=n.radialAxis._rl,c=(f[1]-f[0])/(1-n.getHole(t));o.range=[u[l[0]]*c,u[l[1]]*c]},o.isPtWithinRange=a==="x"&&!i?function(u){return n.isPtInside(u)}:function(){return!0},o.setRange(),o.setScale(),o};Vd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);xer(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var u=i.r2l(i.maxallowed);i._rl[0]90&&f<=270&&(c.tickangle=180);var p=d?function(S){var m=CO(r,kO([S.x,0]));return bd(m[0]-s,m[1]-u)}:function(S){return bd(c.l2p(S.x)+o,0)},y=d?function(S){return Mer(r,S.x,-1/0,1/0)}:function(S){return r.pathArc(c.r2p(S.x)+o)},b=q$e(l);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){c.setScale();var v=0,C=d?(c.tickvals||[]).filter(function(S){return S>=0}).map(function(S){return vv.tickText(c,S,!0,!1)}):vv.calcTicks(c),M=d?C:vv.clipEnds(c,C),A=vv.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(A=-A),c.ticks==="top"&&c.side==="top"&&(v=-c.ticklen),c.ticks==="bottom"&&c.side==="bottom"&&(v=c.ticklen)),vv.drawTicks(n,c,{vals:C,layer:i["radial-axis"],path:vv.makeTickPath(c,0,A),transFn:p,crisp:!1}),vv.drawGrid(n,c,{vals:M,layer:i["radial-grid"],path:y,transFn:Bc.noop,crisp:!1}),vv.drawLabels(n,c,{vals:C,layer:i["radial-axis"],transFn:p,labelFns:vv.makeLabelFns(c,v)})}var L=r.radialAxisAngle=r.vangles?kw(N$e(Ux(l.angle),r.vangles)):l.angle,x=bd(s,u),k=x+fg(-L);xC(i["radial-axis"],h&&(l.showticklabels||l.ticks),{transform:k}),xC(i["radial-grid"],h&&l.showgrid,{transform:d?"":x}),xC(i["radial-line"].select("line"),h&&l.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:k}).attr("stroke-width",l.linewidth).call(cQ.stroke,l.linecolor)};Vd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,u=n.getRadial(t),l=n.id+"title",f=0;if(u.title){var c=_C.bBox(n.layers["radial-axis"].node()).height,h=u.title.font.size,d=u.side;f=d==="top"?h:d==="counterclockwise"?-(c+h*.4):c+h*.8}var p=r!==void 0?r:n.radialAxisAngle,y=Ux(p),b=Math.cos(y),v=Math.sin(y),C=o+a/2*b+f*v,M=s-a/2*v+f*b;n.layers["radial-axis-title"]=ber.draw(i,l,{propContainer:u,propName:n.id+".radialaxis.title.text",placeholder:Eer(i,"Click to enter radial axis title"),attributes:{x:C,y:M,"text-anchor":"middle"},transform:{rotate:-p}})}};Vd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,u=r.cy,l=r.getAngular(t),f=r.angularAxis,c=r.isSmith;c||(r.fillViewInitialKey("angularaxis.rotation",l.rotation),f.setGeometry(),f.setScale());var h=c?function(m){var P=CO(r,kO([0,m.x]));return Math.atan2(P[0]-s,P[1]-u)-Math.PI/2}:function(m){return f.t2g(m.x)};f.type==="linear"&&f.thetaunit==="radians"&&(f.tick0=kw(f.tick0),f.dtick=kw(f.dtick));var d=function(m){return bd(s+a*Math.cos(m),u-a*Math.sin(m))},p=c?function(m){var P=CO(r,kO([0,m.x]));return bd(P[0],P[1])}:function(m){return d(h(m))},y=c?function(m){var P=CO(r,kO([0,m.x])),E=Math.atan2(P[0]-s,P[1]-u)-Math.PI/2;return bd(P[0],P[1])+fg(-kw(E))}:function(m){var P=h(m);return d(P)+fg(-kw(P))},b=c?function(m){return Ser(r,m.x,0,1/0)}:function(m){var P=h(m),E=Math.cos(P),O=Math.sin(P);return"M"+[s+o*E,u-o*O]+"L"+[s+a*E,u-a*O]},v=vv.makeLabelFns(f,0),C=v.labelStandoff,M={};M.xFn=function(m){var P=h(m);return Math.cos(P)*C},M.yFn=function(m){var P=h(m),E=Math.sin(P)>0?.2:1;return-Math.sin(P)*(C+m.fontSize*E)+Math.abs(Math.cos(P))*(m.fontSize*Ter)},M.anchorFn=function(m){var P=h(m),E=Math.cos(P);return Math.abs(E)<.1?"middle":E>0?"start":"end"},M.heightFn=function(m,P,E){var O=h(m);return-.5*(1+Math.sin(O))*E};var A=q$e(l);r.angularTickLayout!==A&&(i["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=A);var L=c?[1/0].concat(f.tickvals||[]).map(function(m){return vv.tickText(f,m,!0,!1)}):vv.calcTicks(f);c&&(L[0].text="\u221E",L[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=L.map(h),Bc.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,f.type==="category"&&(L=L.filter(function(m){return Bc.isAngleInsideSector(h(m),r.sectorInRad)})),f.visible){var k=f.ticks==="inside"?-1:1,S=(f.linewidth||1)/2;vv.drawTicks(n,f,{vals:L,layer:i["angular-axis"],path:"M"+k*S+",0h"+k*f.ticklen,transFn:y,crisp:!1}),vv.drawGrid(n,f,{vals:L,layer:i["angular-grid"],path:b,transFn:Bc.noop,crisp:!1}),vv.drawLabels(n,f,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:M})}xC(i["angular-line"].select("path"),l.showline,{d:r.pathSubplot(),transform:bd(s,u)}).attr("stroke-width",l.linewidth).call(cQ.stroke,l.linecolor)};Vd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Vd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Nx.MINZOOM,s=Nx.OFFEDGE,u=t.radius,l=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,y=t.vangles,b=t.radialAxis,v=M1.clampTiny,C=M1.findXYatLength,M=M1.findEnclosingVertexAngles,A=Nx.cornerHalfWidth,L=Nx.cornerLen/2,x,k,S=S1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");Ew.select(S).attr("d",t.pathSubplot()).attr("transform",bd(f,c)),S.onmousemove=function(ce){I$e.hover(n,ce,t.id),n._fullLayout._lasthover=S,n._fullLayout._hoversubplot=t.id},S.onmouseout=function(ce){n._dragging||LO.unhover(n,ce)};var m={element:S,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,E,O,F,U,G,j,W,N;function H(ce,je){return Math.sqrt(ce*ce+je*je)}function re(ce,je){return H(ce-h,je-d)}function ae(ce,je){return Math.atan2(d-je,ce-h)}function me(ce,je){return[ce*Math.cos(je),ce*Math.sin(-je)]}function Le(ce,je){if(ce===0)return t.pathSector(2*A);var rt=L/ce,bt=je-rt,Ot=je+rt,it=Math.max(0,Math.min(ce,u)),Ke=it-A,zt=it+A;return"M"+me(Ke,bt)+"A"+[Ke,Ke]+" 0,0,0 "+me(Ke,Ot)+"L"+me(zt,Ot)+"A"+[zt,zt]+" 0,0,1 "+me(zt,bt)+"Z"}function Ce(ce,je,rt){if(ce===0)return t.pathSector(2*A);var bt=me(ce,je),Ot=me(ce,rt),it=v((bt[0]+Ot[0])/2),Ke=v((bt[1]+Ot[1])/2),zt,Mt;if(it&&Ke){var kt=Ke/it,$e=-1/kt,De=C(A,kt,it,Ke);zt=C(L,$e,De[0][0],De[0][1]),Mt=C(L,$e,De[1][0],De[1][1])}else{var Me,oe;Ke?(Me=L,oe=A):(Me=A,oe=L),zt=[[it-Me,Ke-oe],[it+Me,Ke-oe]],Mt=[[it-Me,Ke+oe],[it+Me,Ke+oe]]}return"M"+zt.join("L")+"L"+Mt.reverse().join("L")+"Z"}function de(){O=null,F=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];j=mer(ce.bgcolor).getLuminance(),W=S1.makeZoombox(a,j,f,c,U),W.attr("fill-rule","evenodd"),N=S1.makeCorners(a,f,c),hQ(n)}function te(ce,je){return je=Math.max(Math.min(je,u),l),ceo?(ce-1&&ce===1&&Aer(je,n,[t.xaxis],[t.yaxis],t.id,m),rt.indexOf("event")>-1&&I$e.click(n,je,t.id)}m.prepFn=function(ce,je,rt){var bt=n._fullLayout.dragmode,Ot=S.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var it=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,k=n._fullLayout._invScaleY;var Ke=Bc.apply3DTransform(it)(je-Ot.left,rt-Ot.top);if(P=Ke[0],E=Ke[1],y){var zt=M1.findPolygonOffset(u,p[0],p[1],y);P+=h+zt[0],E+=d+zt[1]}switch(bt){case"zoom":m.clickFn=Be,r||(y?m.moveFn=He:m.moveFn=Te,m.doneFn=Ie,de(ce,je,rt));break;case"select":case"lasso":wer(ce,je,rt,m,bt);break}},LO.init(m)};Vd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,u=n.cx,l=n.cy,f=n.radialAxis,c=Nx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Ux(n.radialAxisAngle),p=f._rl,y=p[0],b=p[1],v=p[r],C=.75*(p[1]-p[0])/(1-n.getHole(t))/o,M,A,L;r?(M=u+(o+h)*Math.cos(d),A=l-(o+h)*Math.sin(d),L="radialdrag"):(M=u+(s-h)*Math.cos(d),A=l-(s-h)*Math.sin(d),L="radialdrag-inner");var x=S1.makeRectDragger(a,L,"crosshair",-h,-h,c,c),k={element:x,gd:i};e.dragmode===!1&&(k.dragmode=!1),xC(Ew.select(x),f.visible&&s0!=(r?P>y:P=90||i>90&&a>=450?d=1:s<=0&&l<=0?d=0:d=Math.max(s,l),i<=180&&a>=180||i>180&&a>=540?f=-1:o>=0&&u>=0?f=0:f=Math.min(o,u),i<=270&&a>=270||i>270&&a>=630?c=-1:s>=0&&l>=0?c=0:c=Math.min(s,l),a>=360?h=1:o<=0&&u<=0?h=0:h=Math.max(o,u),[f,c,h,d]}function N$e(e,t){var r=function(i){return Bc.angleDist(e,i)},n=Bc.findIndexOfMin(t,r);return t[n]}function xC(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var pQ=we((jAr,X$e)=>{"use strict";var Cer=Bh(),Yu=Rd(),Ler=zc().attributes,c0=ei().extendFlat,V$e=Sc().overrideAll,G$e=V$e({color:Yu.color,showline:c0({},Yu.showline,{dflt:!0}),linecolor:Yu.linecolor,linewidth:Yu.linewidth,showgrid:c0({},Yu.showgrid,{dflt:!0}),gridcolor:Yu.gridcolor,gridwidth:Yu.gridwidth,griddash:Yu.griddash},"plot","from-root"),H$e=V$e({tickmode:Yu.minor.tickmode,nticks:Yu.nticks,tick0:Yu.tick0,dtick:Yu.dtick,tickvals:Yu.tickvals,ticktext:Yu.ticktext,ticks:Yu.ticks,ticklen:Yu.ticklen,tickwidth:Yu.tickwidth,tickcolor:Yu.tickcolor,ticklabelstep:Yu.ticklabelstep,showticklabels:Yu.showticklabels,labelalias:Yu.labelalias,minorloglabels:Yu.minorloglabels,showtickprefix:Yu.showtickprefix,tickprefix:Yu.tickprefix,showticksuffix:Yu.showticksuffix,ticksuffix:Yu.ticksuffix,showexponent:Yu.showexponent,exponentformat:Yu.exponentformat,minexponent:Yu.minexponent,separatethousands:Yu.separatethousands,tickfont:Yu.tickfont,tickangle:Yu.tickangle,tickformat:Yu.tickformat,tickformatstops:Yu.tickformatstops,layer:Yu.layer},"plot","from-root"),W$e={visible:c0({},Yu.visible,{dflt:!0}),type:c0({},Yu.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Yu.autotypenumbers,autorangeoptions:{minallowed:Yu.autorangeoptions.minallowed,maxallowed:Yu.autorangeoptions.maxallowed,clipmin:Yu.autorangeoptions.clipmin,clipmax:Yu.autorangeoptions.clipmax,include:Yu.autorangeoptions.include,editType:"plot"},autorange:c0({},Yu.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:c0({},Yu.minallowed,{editType:"plot"}),maxallowed:c0({},Yu.maxallowed,{editType:"plot"}),range:c0({},Yu.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:Yu.categoryorder,categoryarray:Yu.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:Yu.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:c0({},Yu.title.text,{editType:"plot",dflt:""}),font:c0({},Yu.title.font,{editType:"plot"}),editType:"plot"},hoverformat:Yu.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(W$e,G$e,H$e);var j$e={visible:c0({},Yu.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:Yu.autotypenumbers,categoryorder:Yu.categoryorder,categoryarray:Yu.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:Yu.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(j$e,G$e,H$e);X$e.exports={domain:Ler({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:Cer.background},radialaxis:W$e,angularaxis:j$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var J$e=we((XAr,K$e)=>{"use strict";var zO=ei(),Per=jl(),zer=Lf(),Ier=O_(),Der=Dd().getSubplotData,Rer=Pb(),Fer=O3(),Oer=s_(),Ber=l_(),qer=cI(),Ner=fE(),Uer=RN(),Ver=H3(),Y$e=pQ(),Ger=sQ(),IO=SO(),Z$e=IO.axisNames;function Her(e,t,r,n){var i=r("bgcolor");n.bgColor=Per.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=Der(n.fullData,IO.name,n.id),s=n.layoutOut,u;function l(W,N){return r(u+"."+W,N)}for(var f=0;f{"use strict";var jer=Dd().getSubplotCalcData,Xer=ei().counterRegex,Zer=dQ(),Q$e=SO(),eQe=Q$e.attr,Lw=Q$e.name,$$e=Xer(Lw),tQe={};tQe[eQe]={valType:"subplotid",dflt:Lw,editType:"calc"};function Yer(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Lw],i=0;i{"use strict";var{hovertemplateAttrs:Jer,texttemplateAttrs:$er,templatefallbackAttrs:iQe}=Ff(),RO=Su().extendFlat,Qer=Pm(),h0=Zc(),etr=Gf(),QS=h0.line;nQe.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:$er({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:iQe({editType:"plot"}),hovertext:h0.hovertext,line:{color:QS.color,width:QS.width,dash:QS.dash,backoff:QS.backoff,shape:RO({},QS.shape,{values:["linear","spline"]}),smoothing:QS.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:RO({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:RO({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Qer(),hoverinfo:RO({},etr.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:Jer(),hovertemplatefallback:iQe(),selected:h0.selected,unselected:h0.unselected}});var OO=we((KAr,sQe)=>{"use strict";var FO=ei(),eM=lc(),ttr=$v(),rtr=D0(),aQe=uA(),itr=R0(),ntr=Rm(),atr=Py().PTS_LINESONLY,otr=bC();function str(e,t,r,n){function i(s,u){return FO.coerce(e,t,otr,s,u)}var a=oQe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var ltr=ei(),lQe=wu();uQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var u=o.c2l(t.r);i.rLabel=lQe.tickText(o,u,!0).text;var l=s.thetaunit==="degrees"?ltr.rad2deg(t.theta):t.theta;return i.thetaLabel=lQe.tickText(s,l,!0).text,i}});var hQe=we(($Ar,cQe)=>{"use strict";var fQe=ku(),utr=rf().BADNUM,ftr=wu(),ctr=F0(),htr=Dy(),dtr=O0(),ptr=B0().calcMarkerSize;cQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),u=o.makeCalcdata(r,"theta"),l=r._length,f=new Array(l),c=0;c{"use strict";var vtr=vA(),dQe=rf().BADNUM;pQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=r.radialAxis,l=r.angularAxis,f=0;f{"use strict";var mtr=_A();function ytr(e,t,r,n){var i=mtr(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,mQe(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function mQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["r","theta","text"]),c.indexOf("r")!==-1&&f(i,n.rLabel),c.indexOf("theta")!==-1&&f(a,n.thetaLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}yQe.exports={hoverPoints:ytr,makeHoverPointText:mQe}});var _Qe=we((tTr,gQe)=>{"use strict";gQe.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:DO(),categories:["polar","symbols","showLegend","scatter-like"],attributes:bC(),supplyDefaults:OO().supplyDefaults,colorbar:tp(),formatLabels:BO(),calc:hQe(),plot:vQe(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:qO().hoverPoints,selectPoints:xA(),meta:{}}});var bQe=we((rTr,xQe)=>{"use strict";xQe.exports=_Qe()});var vQ=we((aTr,AQe)=>{"use strict";var wQe=bC(),{cliponaxis:iTr,hoveron:nTr}=wQe,gtr=Cee(wQe,["cliponaxis","hoveron"]),{connectgaps:_tr,line:{color:xtr,dash:btr,width:wtr},fill:Atr,fillcolor:Ttr,marker:Str,textfont:Mtr,textposition:Etr}=yk();AQe.exports=W1(_m({},gtr),{connectgaps:_tr,fill:Atr,fillcolor:Ttr,line:{color:xtr,dash:btr,editType:"calc",width:wtr},marker:Str,textfont:Mtr,textposition:Etr})});var MQe=we((sTr,SQe)=>{"use strict";var TQe=ei(),mQ=lc(),ktr=OO().handleRThetaDefaults,Ctr=$v(),Ltr=D0(),Ptr=R0(),ztr=Rm(),Itr=Py().PTS_LINESONLY,Dtr=vQ();SQe.exports=function(t,r,n,i){function a(s,u){return TQe.coerce(t,r,Dtr,s,u)}var o=ktr(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var Rtr=BO();EQe.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),Rtr(t,r,n)}});var LQe=we((uTr,CQe)=>{"use strict";var Ftr=F0(),Otr=B0().calcMarkerSize,Btr=lw(),qtr=wu(),Ntr=mx().TOO_MANY_POINTS;CQe.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),u=r._theta=o.makeCalcdata(r,"theta"),l=r._length,f={};l{"use strict";var Utr=XF(),Vtr=qO().makeHoverPointText;function Gtr(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,u=Utr.hoverPoints(e,t,r,n);if(!(!u||u[0].index===!1)){var l=u[0];if(l.index===void 0)return u;var f=e.subplot,c=l.cd[l.index],h=l.trace;if(c.r=o[l.index],c.theta=s[l.index],!!f.isPtInside(c))return l.xLabelVal=void 0,l.yLabelVal=void 0,Vtr(c,h,f,l),u}}PQe.exports={hoverPoints:Gtr}});var DQe=we((cTr,IQe)=>{"use strict";IQe.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:DO(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:vQ(),supplyDefaults:MQe(),colorbar:tp(),formatLabels:kQe(),calc:LQe(),hoverPoints:zQe().hoverPoints,selectPoints:EY(),meta:{}}});var RQe=we((hTr,yQ)=>{"use strict";var Htr=KF(),Wtr=ku(),jtr=PK(),Xtr=TY(),NO=lw(),UO=ei(),Ztr=mx().TOO_MANY_POINTS,Ytr={};yQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Xtr(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var u=s[0],l=u.trace,f=u.t,c=l._length,h=f.r,d=f.theta,p=f.opts,y,b=h.slice(),v=d.slice();for(y=0;y=Ztr&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=C),p.line&&C.length>1&&UO.extendFlat(p.line,NO.linePositions(t,l,C)),p.text&&(UO.extendFlat(p.text,{positions:C},NO.textPosition(t,l,p.text,p.marker)),UO.extendFlat(p.textSel,{positions:C},NO.textPosition(t,l,p.text,p.markerSel)),UO.extendFlat(p.textUnsel,{positions:C},NO.textPosition(t,l,p.text,p.markerUnsel))),p.fill&&!o.fill2d&&(o.fill2d=!0),p.marker&&!o.scatter2d&&(o.scatter2d=!0),p.line&&!o.line2d&&(o.line2d=!0),p.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(p.line),o.fillOptions.push(p.fill),o.markerOptions.push(p.marker),o.markerSelectedOptions.push(p.markerSel),o.markerUnselectedOptions.push(p.markerUnsel),o.textOptions.push(p.text),o.textSelectedOptions.push(p.textSel),o.textUnselectedOptions.push(p.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),f.x=M,f.y=A,f.rawx=M,f.rawy=A,f.r=h,f.theta=d,f.positions=C,f._scene=o,f.index=o.count,o.count++}}),jtr(t,r,n)}};yQ.exports.reglPrecompiled=Ytr});var OQe=we((dTr,FQe)=>{"use strict";var Ktr=I9(),Jtr=D9(),$tr=R9(),Qtr=F9(),err=O9(),trr=B9(),rrr=q9(),irr=N9(),nrr=U9(),arr=V9();FQe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":Ktr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:Jtr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":$tr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:Qtr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:err,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":trr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:rrr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:irr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":nrr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":arr}});var qQe=we((pTr,BQe)=>{"use strict";var gQ=RQe(),orr=OQe(),srr=zK();Object.assign(gQ.reglPrecompiled,orr);Object.assign(gQ.reglPrecompiled,srr);BQe.exports=gQ});var VQe=we((vTr,UQe)=>{"use strict";var NQe=DQe();NQe.plot=qQe();UQe.exports=NQe});var _Q=we((mTr,GQe)=>{"use strict";var{hovertemplateAttrs:lrr,templatefallbackAttrs:urr}=Ff(),tM=Su().extendFlat,Vx=bC(),Gx=Oy();GQe.exports={r:Vx.r,theta:Vx.theta,r0:Vx.r0,dr:Vx.dr,theta0:Vx.theta0,dtheta:Vx.dtheta,thetaunit:Vx.thetaunit,base:tM({},Gx.base,{}),offset:tM({},Gx.offset,{}),width:tM({},Gx.width,{}),text:tM({},Gx.text,{}),hovertext:tM({},Gx.hovertext,{}),marker:frr(),hoverinfo:Vx.hoverinfo,hovertemplate:lrr(),hovertemplatefallback:urr(),selected:Gx.selected,unselected:Gx.unselected};function frr(){var e=tM({},Gx.marker);return delete e.cornerradius,e}});var xQ=we((yTr,HQe)=>{"use strict";HQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var XQe=we((gTr,jQe)=>{"use strict";var WQe=ei(),crr=OO().handleRThetaDefaults,hrr=XI(),drr=_Q();jQe.exports=function(t,r,n,i){function a(s,u){return WQe.coerce(t,r,drr,s,u)}var o=crr(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),hrr(t,r,a,n,i),WQe.coerceSelectionMarkerOpacity(r,a)}});var YQe=we((_Tr,ZQe)=>{"use strict";var prr=ei(),vrr=xQ();ZQe.exports=function(e,t,r){var n={},i;function a(u,l){return prr.coerce(e[i]||{},t[i],vrr,u,l)}for(var o=0;o{"use strict";var KQe=yp().hasColorscale,JQe=gp(),mrr=ei().isArrayOrTypedArray,yrr=SE(),grr=i2().setGroupPositions,_rr=O0(),xrr=$l().traceIs,brr=ei().extendFlat;function wrr(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),u=t._length,l=new Array(u),f=o,c=s,h=0;h{"use strict";var QQe=Jl(),VO=ku(),rM=ei(),Trr=Mu(),wQ=EO();eet.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,u=r.angularAxis,l=Srr(r),f=r.layers.frontplot.select("g.barlayer");rM.makeTraceGroups(f,n,"trace bars").each(function(){var c=QQe.select(this),h=rM.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(rM.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(p){var y=QQe.select(this),b=p.rp0=s.c2p(p.s0),v=p.rp1=s.c2p(p.s1),C=p.thetag0=u.c2g(p.p0),M=p.thetag1=u.c2g(p.p1),A;if(!VO(b)||!VO(v)||!VO(C)||!VO(M)||b===v||C===M)A="M0,0Z";else{var L=s.c2g(p.s1),x=(C+M)/2;p.ct=[a.c2p(L*Math.cos(x)),o.c2p(L*Math.sin(x))],A=l(b,v,C,M)}rM.ensureSingle(y,"path").attr("d",A)}),Trr.setClipUrl(c,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function Srr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,u;rM.angleDelta(a,o)>0?(s=a,u=o):(s=o,u=a);var l=wQ.findEnclosingVertexAngles(s,e.vangles)[0],f=wQ.findEnclosingVertexAngles(u,e.vangles)[1],c=[l,(s+u)/2,f];return wQ.pathPolygonAnnulus(n,i,s,u,c,t,r)}:function(n,i,a,o){return rM.pathAnnulus(n,i,a,o,t,r)}}});var iet=we((wTr,ret)=>{"use strict";var Mrr=Vc(),AQ=ei(),Err=IA().getTraceColor,krr=AQ.fillText,Crr=qO().makeHoverPointText,Lrr=EO().isPtInsidePolygon;ret.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,u=o.angularAxis,l=o.vangles,f=l?Lrr:AQ.isPtInsideSector,c=t.maxHoverDistance,h=u._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),p=Math.atan2(n,r);s.range[0]>s.range[1]&&(p+=Math.PI);var y=function(M){return f(d,p,[M.rp0,M.rp1],[M.thetag0,M.thetag1],l)?c+Math.min(1,Math.abs(M.thetag1-M.thetag0)/h)-1+(M.rp1-d)/(M.rp1-M.rp0)-1:1/0};if(Mrr.getClosest(i,y,t),t.index!==!1){var b=t.index,v=i[b];t.x0=t.x1=v.ct[0],t.y0=t.y1=v.ct[1];var C=AQ.extendFlat({},v,{r:v.s,theta:v.p});return krr(v,a,t),Crr(C,a,o,t),t.hovertemplate=a.hovertemplate,t.color=Err(a,v),t.xLabelVal=t.yLabelVal=void 0,v.s<0&&(t.idealAlign="left"),[t]}}});var aet=we((ATr,net)=>{"use strict";net.exports={moduleType:"trace",name:"barpolar",basePlotModule:DO(),categories:["polar","bar","showLegend"],attributes:_Q(),layoutAttributes:xQ(),supplyDefaults:XQe(),supplyLayoutDefaults:YQe(),calc:bQ().calc,crossTraceCalc:bQ().crossTraceCalc,plot:tet(),colorbar:tp(),formatLabels:BO(),style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:iet(),selectPoints:DA(),meta:{}}});var set=we((TTr,oet)=>{"use strict";oet.exports=aet()});var TQ=we((STr,uet)=>{"use strict";uet.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var SQ=we((MTr,det)=>{"use strict";var Prr=Bh(),fh=Rd(),zrr=zc().attributes,Hx=ei().extendFlat,fet=Sc().overrideAll,cet=fet({color:fh.color,showline:Hx({},fh.showline,{dflt:!0}),linecolor:fh.linecolor,linewidth:fh.linewidth,showgrid:Hx({},fh.showgrid,{dflt:!0}),gridcolor:fh.gridcolor,gridwidth:fh.gridwidth,griddash:fh.griddash},"plot","from-root"),het=fet({ticklen:fh.ticklen,tickwidth:Hx({},fh.tickwidth,{dflt:2}),tickcolor:fh.tickcolor,showticklabels:fh.showticklabels,labelalias:fh.labelalias,showtickprefix:fh.showtickprefix,tickprefix:fh.tickprefix,showticksuffix:fh.showticksuffix,ticksuffix:fh.ticksuffix,tickfont:fh.tickfont,tickformat:fh.tickformat,hoverformat:fh.hoverformat,layer:fh.layer},"plot","from-root"),Irr=Hx({visible:Hx({},fh.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Hx({},fh.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},cet,het),Drr=Hx({visible:Hx({},fh.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:fh.ticks,editType:"calc"},cet,het);det.exports={domain:zrr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:Prr.background},realaxis:Irr,imaginaryaxis:Drr,editType:"calc"}});var met=we((ETr,vet)=>{"use strict";var iM=ei(),Rrr=jl(),Frr=Lf(),Orr=O_(),Brr=Dd().getSubplotData,qrr=l_(),Nrr=s_(),Urr=fE(),Vrr=xy(),nM=SQ(),MQ=TQ(),pet=MQ.axisNames,Grr=Wrr(function(e){return iM.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function Hrr(e,t,r,n){var i=r("bgcolor");n.bgColor=Rrr.combine(i,n.paper_bgcolor);var a=Brr(n.fullData,MQ.name,n.id),o=n.layoutOut,s;function u(L,x){return r(s+"."+L,x)}for(var l=0;l{"use strict";var jrr=Dd().getSubplotCalcData,Xrr=ei().counterRegex,Zrr=dQ(),get=TQ(),_et=get.attr,Pw=get.name,yet=Xrr(Pw),xet={};xet[_et]={valType:"subplotid",dflt:Pw,editType:"calc"};function Yrr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Pw],i=0;i{"use strict";var{hovertemplateAttrs:Jrr,texttemplateAttrs:$rr,templatefallbackAttrs:Aet}=Ff(),GO=Su().extendFlat,Qrr=Pm(),d0=Zc(),eir=Gf(),aM=d0.line;Tet.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:$rr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:Aet({editType:"plot"}),hovertext:d0.hovertext,line:{color:aM.color,width:aM.width,dash:aM.dash,backoff:aM.backoff,shape:GO({},aM.shape,{values:["linear","spline"]}),smoothing:aM.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:GO({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:GO({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Qrr(),hoverinfo:GO({},eir.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:Jrr(),hovertemplatefallback:Aet(),selected:d0.selected,unselected:d0.unselected}});var ket=we((LTr,Eet)=>{"use strict";var HO=ei(),oM=lc(),tir=$v(),rir=D0(),Met=uA(),iir=R0(),nir=Rm(),air=Py().PTS_LINESONLY,oir=EQ();Eet.exports=function(t,r,n,i){function a(u,l){return HO.coerce(t,r,oir,u,l)}var o=sir(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var Cet=wu();Let.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=Cet.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=Cet.tickText(a.angularAxis,t.imag,!0).text,i}});var Det=we((zTr,Iet)=>{"use strict";var zet=ku(),lir=rf().BADNUM,uir=F0(),fir=Dy(),cir=O0(),hir=B0().calcMarkerSize;Iet.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),u=o.makeCalcdata(r,"imag"),l=r._length,f=new Array(l),c=0;c{"use strict";var dir=vA(),Ret=rf().BADNUM,pir=fQ(),vir=pir.smith;Fet.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=0;u{"use strict";var mir=_A();function yir(e,t,r,n){var i=mir(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,Bet(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function Bet(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["real","imag","text"]),c.indexOf("real")!==-1&&f(i,n.realLabel),c.indexOf("imag")!==-1&&f(a,n.imagLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}qet.exports={hoverPoints:yir,makeHoverPointText:Bet}});var Vet=we((RTr,Uet)=>{"use strict";Uet.exports={moduleType:"trace",name:"scattersmith",basePlotModule:wet(),categories:["smith","symbols","showLegend","scatter-like"],attributes:EQ(),supplyDefaults:ket(),colorbar:tp(),formatLabels:Pet(),calc:Det(),plot:Oet(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:Net().hoverPoints,selectPoints:xA(),meta:{}}});var Het=we((FTr,Get)=>{"use strict";Get.exports=Vet()});var Lp=we((OTr,jet)=>{var jO=jh();function Wet(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}jO(Wet.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function kQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(wf.local.invalidDate||wf.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function WO(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}jO(kQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(wf.local.invalidDate||wf.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(wf.local.differentCalendars||wf.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+WO(Math.abs(this.year()),4)+"-"+WO(this.month(),2)+"-"+WO(this.day(),2)}});function CQ(){this.shortYearCutoff="+10"}jO(CQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new kQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,wf.local.invalidYear||wf.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,wf.local.invalidYear||wf.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+WO(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,wf.local.invalidYear||wf.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,wf.local.invalidMonth||wf.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,wf.local.invalidMonth||wf.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,wf.local.invalidYear||wf.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,wf.local.invalidDate||wf.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(f){for(;oc-1+f.minMonth;)a++,o-=c,c=f.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var u=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,u}catch(l){throw this._validateLevel--,l}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,wf.local.invalidDate||wf.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),l=i-(u>2.5?4716:4715);return l<=0&&l--,this.newDate(l,u,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var wf=jet.exports=new Wet;wf.cdate=kQ;wf.baseCalendar=CQ;wf.calendars.gregorian=LQ});var Xet=we(()=>{var PQ=jh(),Gd=Lp();PQ(Gd.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Gd.local=Gd.regionalOptions[""];PQ(Gd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});PQ(Gd.baseCalendar.prototype,{UNIX_EPOCH:Gd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Gd.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Gd.local.invalidFormat||Gd.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,u=r.calculateWeek||this.local.calculateWeek,l=function(A,L){for(var x=1;M+x1},f=function(A,L,x,k){var S=""+L;if(l(A,k))for(;S.length1},C=function(O,F){var U=v(O,F),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(O)+1],j=new RegExp("^-?\\d{1,"+G+"}"),W=t.substring(S).match(j);if(!W)throw(Gd.local.missingNumberAt||Gd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=W[0].length,parseInt(W[0],10)},M=this,A=function(){if(typeof s=="function"){v("m");var O=s.call(M,t.substring(S));return S+=O.length,O}return C("m")},L=function(O,F,U,G){for(var j=v(O,G)?U:F,W=0;W-1){h=1,d=p;for(var E=this.daysInMonth(c,h);d>E;E=this.daysInMonth(c,h))h++,d-=E}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(c){}s=s.toLowerCase();for(var u=(s.match(/^c/)&&r?r.newDate():null)||a.today(),l=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=l.exec(s);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=l.exec(s);return u};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var Zet=we(()=>{var Wx=Lp(),gir=jh(),zQ=Wx.instance();function XO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}XO.prototype=new Wx.baseCalendar;gir(XO.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(xir);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(bir);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(wir);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Wx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Wx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Wx.local.invalidyear),i=Xx[n-Xx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,u;u=zQ.newDate(a,o,s),u.add(4-(u.dayOfWeek()||7),"d");var l=this.toJD(e,t,r)-u.toJD();return 1+Math.floor(l/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=jx[e-jx[0]],n=r>>13,i=n?12:11;if(t>i)throw Wx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Wx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Tir(e,a,r,i);return zQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=zQ.fromJD(e),r=Air(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(_ir),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(XO.prototype).add.call(this,e,t,r);if(r==="y"){var u=s.year(),l=s.month(),f=this.isIntercalaryMonth(u,o),c=a&&f?this.toMonthIndex(u,o,!0):this.toMonthIndex(u,o,!1);c!==l&&s.month(c)}return s}});var _ir=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,xir=/^\d?\d[iI]?/m,bir=/^闰?十?[一二三四五六七八九]?月/m,wir=/^闰?十?[一二三四五六七八九]?/m;Wx.calendars.chinese=XO;var jx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Xx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Air(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=31;if(!u)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var l=Xx[i.year-Xx[0]],f=i.year<<9|i.month<<5|i.day;a.year=f>=l?i.year:i.year-1,l=Xx[a.year-Xx[0]];var c=l>>9&4095,h=l>>5&15,d=l&31,p,y=new Date(c,h-1,d),b=new Date(i.year,i.month-1,i.day);p=Math.round((b-y)/(24*3600*1e3));var v=jx[a.year-jx[0]],C;for(C=0;C<13;C++){var M=v&1<<12-C?30:29;if(p>13;return!A||C=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var u=typeof t=="number"&&t>=1&&t<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=30;if(!l)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,a=n):(f=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:f}}var c;c=o.day-1;var h=jx[o.year-jx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y>9&4095,M=v>>5&15,A=v&31,L=new Date(C,M-1,A+c);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var Yet=we(()=>{var zw=Lp(),Sir=jh();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new zw.baseCalendar;Sir(IQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,zw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,zw.local.invalidYear||zw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,zw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,zw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});zw.calendars.coptic=IQ});var Ket=we(()=>{var E1=Lp(),Mir=jh();function DQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DQ.prototype=new E1.baseCalendar;Mir(DQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,E1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,E1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,E1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,E1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,E1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,E1.local.invalidDate);return{century:Eir[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,E1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var Eir={20:"Fruitbat",21:"Anchovy"};E1.calendars.discworld=DQ});var Jet=we(()=>{var Iw=Lp(),kir=jh();function RQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RQ.prototype=new Iw.baseCalendar;kir(RQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Iw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Iw.local.invalidYear||Iw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Iw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,Iw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});Iw.calendars.ethiopian=RQ});var $et=we(()=>{var Zx=Lp(),Cir=jh();function FQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FQ.prototype=new Zx.baseCalendar;Cir(FQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,ZO(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Zx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&ZO(this.daysInYear(e),10)===5?30:t===9&&ZO(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Zx.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Zx.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function ZO(e,t){return e-t*Math.floor(e/t)}Zx.calendars.hebrew=FQ});var Qet=we(()=>{var wC=Lp(),Lir=jh();function OQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}OQ.prototype=new wC.baseCalendar;Lir(OQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,wC.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,wC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,wC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});wC.calendars.islamic=OQ});var ett=we(()=>{var AC=Lp(),Pir=jh();function BQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BQ.prototype=new AC.baseCalendar;Pir(BQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,AC.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,AC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,AC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),u=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,u)}});AC.calendars.julian=BQ});var rtt=we(()=>{var cm=Lp(),zir=jh();function NQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NQ.prototype=new cm.baseCalendar;zir(NQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cm.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,cm.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cm.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,cm.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cm.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,cm.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,cm.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,cm.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,cm.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=qQ(e+8+17*20,365);return[Math.floor(t/20)+1,qQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[ttt(e+20,20),ttt(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,cm.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function qQ(e,t){return e-t*Math.floor(e/t)}function ttt(e,t){return qQ(e-1,t)+1}cm.calendars.mayan=NQ});var ntt=we(()=>{var Dw=Lp(),Iir=jh();function UQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}UQ.prototype=new Dw.baseCalendar;var itt=Dw.instance("gregorian");Iir(UQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Dw.local.invalidYear||Dw.regionalOptions[""].invalidYear);return itt.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Dw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Dw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});Dw.calendars.nanakshahi=UQ});var att=we(()=>{var Rw=Lp(),Dir=jh();function VQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}VQ.prototype=new Rw.baseCalendar;Dir(VQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Rw.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Rw.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,Rw.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=Rw.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var u=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(u))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(u,1,1).add(a,"d").toJD()},fromJD:function(e){var t=Rw.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],u=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>u;)o++,o>12&&(o=1,a++),u+=this.NEPALI_CALENDAR_DATA[a][o];var l=this.NEPALI_CALENDAR_DATA[a][o]-(u-i);return this.newDate(a,o,l)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var sM=Lp(),Rir=jh();function KO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function YO(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}KO.prototype=new sM.baseCalendar;Rir(KO.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,sM.local.invalidYear);return YO(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,sM.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,sM.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,YO(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});sM.calendars.persian=KO;sM.calendars.jalali=KO});var stt=we(()=>{var Fw=Lp(),Fir=jh(),JO=Fw.instance();function GQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GQ.prototype=new Fw.baseCalendar;Fir(GQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Fw.local.invalidYear),r=this._t2gYear(t.year());return JO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Fw.local.invalidYear),i=this._t2gYear(n.year());return JO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Fw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Fw.local.invalidDate),i=this._t2gYear(n.year());return JO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=JO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Fw.calendars.taiwan=GQ});var ltt=we(()=>{var Ow=Lp(),Oir=jh(),$O=Ow.instance();function HQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}HQ.prototype=new Ow.baseCalendar;Oir(HQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Ow.local.invalidYear),r=this._t2gYear(t.year());return $O.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Ow.local.invalidYear),i=this._t2gYear(n.year());return $O.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Ow.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Ow.local.invalidDate),i=this._t2gYear(n.year());return $O.toJD(i,n.month(),n.day())},fromJD:function(e){var t=$O.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ow.calendars.thai=HQ});var utt=we(()=>{var Bw=Lp(),Bir=jh();function WQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}WQ.prototype=new Bw.baseCalendar;Bir(WQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Bw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Bw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Yx[i]-Yx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Bw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Yx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,u=t-Yx[r-1]+1;return this.newDate(o,s,u)},isValid:function(e,t,r){var n=Bw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Bw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Bw.calendars.ummalqura=WQ;var Yx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var ctt=we((pSr,ftt)=>{"use strict";ftt.exports=Lp();Xet();Zet();Yet();Ket();Jet();$et();Qet();ett();rtt();ntt();att();ott();stt();ltt();utt()});var gtt=we((vSr,ytt)=>{"use strict";var dtt=ctt(),TC=ei(),ptt=rf(),qir=ptt.EPOCHJD,Nir=ptt.ONEDAY,ZQ={valType:"enumerated",values:TC.sortObjectKeys(dtt.calendars),editType:"calc",dflt:"gregorian"},vtt=function(e,t,r,n){var i={};return i[r]=ZQ,TC.coerce(e,t,i,r,n)},Uir=function(e,t,r,n){for(var i=0;i{"use strict";_tt.exports=gtt()});var Xir=we((ySr,wtt)=>{var btt=Age();btt.register([S1e(),h_e(),Mxe(),Xxe(),sbe(),i2e(),m2e(),nwe(),Iwe(),v3e(),rAe(),pke(),iCe(),ZLe(),FPe(),dze(),Oze(),lDe(),EDe(),WDe(),iRe(),yRe(),zRe(),ZRe(),SFe(),WFe(),x7e(),AUe(),HVe(),mGe(),MHe(),UHe(),cWe(),Aje(),Bje(),lXe(),yZe(),UZe(),wYe(),HKe(),vJe(),FJe(),l$e(),w$e(),bQe(),VQe(),set(),Het(),xtt()]);wtt.exports=btt});return Xir();})(); +`),ot=at.createShader(at.FRAGMENT_SHADER);if(at.isContextLost())return void(this.failedToCreate=!0);if(at.shaderSource(ot,Ge),at.compileShader(ot),!at.getShaderParameter(ot,at.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${at.getShaderInfoLog(ot)}`);at.attachShader(this.program,ot);let mt=at.createShader(at.VERTEX_SHADER);if(at.isContextLost())return void(this.failedToCreate=!0);if(at.shaderSource(mt,ft),at.compileShader(mt),!at.getShaderParameter(mt,at.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${at.getShaderInfoLog(mt)}`);at.attachShader(this.program,mt),this.attributes={};let Gt={};this.numAttributes=Qt.length;for(let er=0;er({u_depth:new a.aH(er,sr.u_depth),u_terrain:new a.aH(er,sr.u_terrain),u_terrain_dim:new a.aI(er,sr.u_terrain_dim),u_terrain_matrix:new a.aJ(er,sr.u_terrain_matrix),u_terrain_unpack:new a.aK(er,sr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(er,sr.u_terrain_exaggeration)}))(w,Gt),this.binderUniforms=Q?Q.getUniforms(w,Gt):[]}draw(w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he,Ae,qe,Ge,ft){let ot=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(fe),w.setCullFace(Ue),yt){w.activeTexture.set(ot.TEXTURE2),ot.bindTexture(ot.TEXTURE_2D,yt.depthTexture),w.activeTexture.set(ot.TEXTURE3),ot.bindTexture(ot.TEXTURE_2D,yt.texture);for(let Gt in this.terrainUniforms)this.terrainUniforms[Gt].set(yt[Gt])}for(let Gt in this.fixedUniforms)this.fixedUniforms[Gt].set(at[Gt]);Ae&&Ae.setUniforms(w,this.binderUniforms,Ur,{zoom:he});let mt=0;switch(q){case ot.LINES:mt=2;break;case ot.TRIANGLES:mt=3;break;case ot.LINE_STRIP:mt=1}for(let Gt of Mr.get()){let er=Gt.vaos||(Gt.vaos={});(er[Rt]||(er[Rt]=new $t)).bind(w,this,Qt,Ae?Ae.getPaintVertexBuffers():[],rr,Gt.vertexOffset,qe,Ge,ft),ot.drawElements(q,Gt.primitiveLength*mt,ot.UNSIGNED_SHORT,Gt.primitiveOffset*mt*2)}}}function wi(ue,w,q){let Q=1/Bi(q,1,w.transform.tileZoom),ee=Math.pow(2,q.tileID.overscaledZ),fe=q.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Ue=fe*(q.tileID.canonical.x+q.tileID.wrap*ee),at=fe*q.tileID.canonical.y;return{u_image:0,u_texsize:q.imageAtlasTexture.size,u_scale:[Q,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[Ue>>16,at>>16],u_pixel_coord_lower:[65535&Ue,65535&at]}}let $i=(ue,w,q,Q)=>{let ee=w.style.light,fe=ee.properties.get("position"),Ue=[fe.x,fe.y,fe.z],at=(function(){var Rt=new a.A(9);return a.A!=Float32Array&&(Rt[1]=0,Rt[2]=0,Rt[3]=0,Rt[5]=0,Rt[6]=0,Rt[7]=0),Rt[0]=1,Rt[4]=1,Rt[8]=1,Rt})();ee.properties.get("anchor")==="viewport"&&(function(Rt,Qt){var rr=Math.sin(Qt),Mr=Math.cos(Qt);Rt[0]=Mr,Rt[1]=rr,Rt[2]=0,Rt[3]=-rr,Rt[4]=Mr,Rt[5]=0,Rt[6]=0,Rt[7]=0,Rt[8]=1})(at,-w.transform.angle),(function(Rt,Qt,rr){var Mr=Qt[0],Ur=Qt[1],he=Qt[2];Rt[0]=Mr*rr[0]+Ur*rr[3]+he*rr[6],Rt[1]=Mr*rr[1]+Ur*rr[4]+he*rr[7],Rt[2]=Mr*rr[2]+Ur*rr[5]+he*rr[8]})(Ue,Ue,at);let yt=ee.properties.get("color");return{u_matrix:ue,u_lightpos:Ue,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[yt.r,yt.g,yt.b],u_vertical_gradient:+q,u_opacity:Q}},ni=(ue,w,q,Q,ee,fe,Ue)=>a.e($i(ue,w,q,Q),wi(fe,w,Ue),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Ue.tileSize/8}),Xi=ue=>({u_matrix:ue}),aa=(ue,w,q,Q)=>a.e(Xi(ue),wi(q,w,Q)),Mn=(ue,w)=>({u_matrix:ue,u_world:w}),Un=(ue,w,q,Q,ee)=>a.e(aa(ue,w,q,Q),{u_world:ee}),Ga=(ue,w,q,Q)=>{let ee=ue.transform,fe,Ue;if(Q.paint.get("circle-pitch-alignment")==="map"){let at=Bi(q,1,ee.zoom);fe=!0,Ue=[at,at]}else fe=!1,Ue=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,q,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+fe,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:Ue}},ma=(ue,w,q)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:q.cameraToCenterDistance,u_viewport_size:[q.width,q.height]}),oa=(ue,w,q=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:q}),ka=ue=>({u_matrix:ue}),so=(ue,w,q,Q)=>({u_matrix:ue,u_extrude_scale:Bi(w,1,q),u_intensity:Q}),Kr=(ue,w,q,Q)=>{let ee=a.H();a.aP(ee,0,ue.width,ue.height,0,0,1);let fe=ue.context.gl;return{u_matrix:ee,u_world:[fe.drawingBufferWidth,fe.drawingBufferHeight],u_image:q,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Ia(ue,w){let q=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/q).toLngLat().lat,new a.Z(0,(Q+1)/q).toLngLat().lat]}let Yo=(ue,w,q,Q)=>{let ee=ue.transform;return{u_matrix:uo(ue,w,q,Q),u_ratio:1/Bi(w,1,ee.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},fa=(ue,w,q,Q,ee)=>a.e(Yo(ue,w,q,ee),{u_image:0,u_image_height:Q}),kn=(ue,w,q,Q,ee)=>{let fe=ue.transform,Ue=ys(w,fe);return{u_matrix:uo(ue,w,q,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Bi(w,1,fe.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[Ue,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/fe.pixelsToGLUnits[0],1/fe.pixelsToGLUnits[1]]}},Ta=(ue,w,q,Q,ee,fe)=>{let Ue=ue.lineAtlas,at=ys(w,ue.transform),yt=q.layout.get("line-cap")==="round",Rt=Ue.getDash(Q.from,yt),Qt=Ue.getDash(Q.to,yt),rr=Rt.width*ee.fromScale,Mr=Qt.width*ee.toScale;return a.e(Yo(ue,w,q,fe),{u_patternscale_a:[at/rr,-Rt.height/2],u_patternscale_b:[at/Mr,-Qt.height/2],u_sdfgamma:Ue.width/(256*Math.min(rr,Mr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Rt.y,u_tex_y_b:Qt.y,u_mix:ee.t})};function ys(ue,w){return 1/Bi(ue,1,w.tileZoom)}function uo(ue,w,q,Q){return ue.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,q.paint.get("line-translate"),q.paint.get("line-translate-anchor"))}let ls=(ue,w,q,Q,ee)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:q,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(Ue=ee.paint.get("raster-saturation"),Ue>0?1-1/(1.001-Ue):-Ue),u_contrast_factor:(fe=ee.paint.get("raster-contrast"),fe>0?1/(1-fe):1+fe),u_spin_weights:$a(ee.paint.get("raster-hue-rotate"))};var fe,Ue};function $a(ue){ue*=Math.PI/180;let w=Math.sin(ue),q=Math.cos(ue);return[(2*q+1)/3,(-Math.sqrt(3)*w-q+1)/3,(Math.sqrt(3)*w-q+1)/3]}let fo=(ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur)=>{let he=Ue.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:he.cameraToCenterDistance,u_pitch:he.pitch/360*2*Math.PI,u_rotate_symbol:+q,u_aspect_ratio:he.width/he.height,u_fade_change:Ue.options.fadeDuration?Ue.symbolFadeChange:1,u_matrix:at,u_label_plane_matrix:yt,u_coord_matrix:Rt,u_is_text:+rr,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:fe,u_texsize:Mr,u_texture:0,u_translation:Qt,u_pitched_scale:Ur}},mn=(ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur,he)=>{let Ae=Ue.transform;return a.e(fo(ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,he),{u_gamma_scale:Q?Math.cos(Ae._pitch)*Ae.cameraToCenterDistance:1,u_device_pixel_ratio:Ue.pixelRatio,u_is_halo:+Ur})},ra=(ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,rr,Mr,Ur)=>a.e(mn(ue,w,q,Q,ee,fe,Ue,at,yt,Rt,Qt,!0,rr,!0,Ur),{u_texsize_icon:Mr,u_texture_icon:1}),wa=(ue,w,q)=>({u_matrix:ue,u_opacity:w,u_color:q}),ws=(ue,w,q,Q,ee,fe)=>a.e((function(Ue,at,yt,Rt){let Qt=yt.imageManager.getPattern(Ue.from.toString()),rr=yt.imageManager.getPattern(Ue.to.toString()),{width:Mr,height:Ur}=yt.imageManager.getPixelSize(),he=Math.pow(2,Rt.tileID.overscaledZ),Ae=Rt.tileSize*Math.pow(2,yt.transform.tileZoom)/he,qe=Ae*(Rt.tileID.canonical.x+Rt.tileID.wrap*he),Ge=Ae*Rt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Qt.tl,u_pattern_br_a:Qt.br,u_pattern_tl_b:rr.tl,u_pattern_br_b:rr.br,u_texsize:[Mr,Ur],u_mix:at.t,u_pattern_size_a:Qt.displaySize,u_pattern_size_b:rr.displaySize,u_scale_a:at.fromScale,u_scale_b:at.toScale,u_tile_units_to_pixels:1/Bi(Rt,1,yt.transform.tileZoom),u_pixel_coord_upper:[qe>>16,Ge>>16],u_pixel_coord_lower:[65535&qe,65535&Ge]}})(Q,fe,q,ee),{u_matrix:ue,u_opacity:w}),Co={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class Po{constructor(w,q,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let q=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),q.bufferSubData(q.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Wi={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class gn{constructor(w,q,Q,ee){this.length=q.length,this.attributes=Q,this.itemSize=q.bytesPerElement,this.dynamicDraw=ee,this.context=w;let fe=w.gl;this.buffer=fe.createBuffer(),w.bindVertexBuffer.set(this.buffer),fe.bufferData(fe.ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?fe.DYNAMIC_DRAW:fe.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let q=this.context.gl;this.bind(),q.bufferSubData(q.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,q){for(let Q=0;Q0){let er=a.H();a.aQ(er,ot.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(er,er,ot.placementViewportMatrix),yt.push({circleArray:Gt,circleOffset:Qt,transform:ft.posMatrix,invTransform:er,coord:ft}),Rt+=Gt.length/4,Qt=Rt}mt&&at.draw(fe,Ue.LINES,sa.disabled,Na.disabled,ue.colorModeForRenderPass(),en.disabled,{u_matrix:ft.posMatrix,u_pixel_extrude_scale:[1/(rr=ue.transform).width,1/rr.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(ft),q.id,mt.layoutVertexBuffer,mt.indexBuffer,mt.segments,null,ue.transform.zoom,null,null,mt.collisionVertexBuffer)}var rr;if(!ee||!yt.length)return;let Mr=ue.useProgram("collisionCircle"),Ur=new a.aR;Ur.resize(4*Rt),Ur._trim();let he=0;for(let Ge of yt)for(let ft=0;ft=0&&(Ge[ot.associatedIconIndex]={shiftedAnchor:Fo,angle:vl})}else jr(ot.numGlyphs,Ae)}if(Rt){qe.clear();let ft=ue.icon.placedSymbolArray;for(let ot=0;otue.style.map.terrain.getElevation(si,wt,lr):null,Ht=q.layout.get("text-rotation-alignment")==="map";ze(cn,si.posMatrix,ue,ee,$u,Wu,Ge,Rt,Ht,Ae,si.toUnwrapped(),he.width,he.height,ju,ut)}let Qu=si.posMatrix,ef=ee&&wr||_f,Z=ft||ef?yo:$u,le=Ku,Le=Ua&&q.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ye;Ye=Ua?cn.iconsInText?ra(Fo.kind,ml,ot,Ge,ft,ef,ue,Qu,Z,le,ju,Sl,Pu,ri):mn(Fo.kind,ml,ot,Ge,ft,ef,ue,Qu,Z,le,ju,ee,Sl,!0,ri):fo(Fo.kind,ml,ot,Ge,ft,ef,ue,Qu,Z,le,ju,ee,Sl,ri);let nt={program:Us,buffers:Zn,uniformValues:Ye,atlasTexture:Yl,atlasTextureIcon:nu,atlasInterpolation:ql,atlasInterpolationIcon:ou,isSDF:Ua,hasHalo:Le};if(Gt&&cn.canOverlap){er=!0;let ut=Zn.segments.get();for(let Ht of ut)Ir.push({segments:new a.a0([Ht]),sortKey:Ht.sortKey,state:nt,terrainData:au})}else Ir.push({segments:Zn.segments,sortKey:0,state:nt,terrainData:au})}er&&Ir.sort(((si,Mi)=>si.sortKey-Mi.sortKey));for(let si of Ir){let Mi=si.state;if(Mr.activeTexture.set(Ur.TEXTURE0),Mi.atlasTexture.bind(Mi.atlasInterpolation,Ur.CLAMP_TO_EDGE),Mi.atlasTextureIcon&&(Mr.activeTexture.set(Ur.TEXTURE1),Mi.atlasTextureIcon&&Mi.atlasTextureIcon.bind(Mi.atlasInterpolationIcon,Ur.CLAMP_TO_EDGE)),Mi.isSDF){let cn=Mi.uniformValues;Mi.hasHalo&&(cn.u_is_halo=1,Ca(Mi.buffers,si.segments,q,ue,Mi.program,sr,Qt,rr,cn,si.terrainData)),cn.u_is_halo=0}Ca(Mi.buffers,si.segments,q,ue,Mi.program,sr,Qt,rr,Mi.uniformValues,si.terrainData)}}function Ca(ue,w,q,Q,ee,fe,Ue,at,yt,Rt){let Qt=Q.context;ee.draw(Qt,Qt.gl.TRIANGLES,fe,Ue,at,en.disabled,yt,Rt,q.id,ue.layoutVertexBuffer,ue.indexBuffer,w,q.paint,Q.transform.zoom,ue.programConfigurations.get(q.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function Es(ue,w,q,Q){let ee=ue.context,fe=ee.gl,Ue=Na.disabled,at=new lo([fe.ONE,fe.ONE],a.aM.transparent,[!0,!0,!0,!0]),yt=w.getBucket(q);if(!yt)return;let Rt=Q.key,Qt=q.heatmapFbos.get(Rt);Qt||(Qt=Ho(ee,w.tileSize,w.tileSize),q.heatmapFbos.set(Rt,Qt)),ee.bindFramebuffer.set(Qt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let rr=yt.programConfigurations.get(q.id),Mr=ue.useProgram("heatmap",rr),Ur=ue.style.map.terrain.getTerrainData(Q);Mr.draw(ee,fe.TRIANGLES,sa.disabled,Ue,at,en.disabled,so(Q.posMatrix,w,ue.transform.zoom,q.paint.get("heatmap-intensity")),Ur,q.id,yt.layoutVertexBuffer,yt.indexBuffer,yt.segments,q.paint,ue.transform.zoom,rr)}function Ts(ue,w,q){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let fe=Wa(Q,w),Ue=q.key,at=w.heatmapFbos.get(Ue);at&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,at.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),fe.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,sa.disabled,Na.disabled,ue.colorModeForRenderPass(),en.disabled,Kr(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),at.destroy(),w.heatmapFbos.delete(Ue))}function Ho(ue,w,q){var Q,ee;let fe=ue.gl,Ue=fe.createTexture();fe.bindTexture(fe.TEXTURE_2D,Ue),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_WRAP_S,fe.CLAMP_TO_EDGE),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_WRAP_T,fe.CLAMP_TO_EDGE),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_MIN_FILTER,fe.LINEAR),fe.texParameteri(fe.TEXTURE_2D,fe.TEXTURE_MAG_FILTER,fe.LINEAR);let at=(Q=ue.HALF_FLOAT)!==null&&Q!==void 0?Q:fe.UNSIGNED_BYTE,yt=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:fe.RGBA;fe.texImage2D(fe.TEXTURE_2D,0,yt,w,q,0,fe.RGBA,at,null);let Rt=ue.createFramebuffer(w,q,!1,!1);return Rt.colorAttachment.set(Ue),Rt}function Wa(ue,w){return w.colorRampTexture||(w.colorRampTexture=new m(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function To(ue,w,q,Q,ee){if(!q||!Q||!Q.imageAtlas)return;let fe=Q.imageAtlas.patternPositions,Ue=fe[q.to.toString()],at=fe[q.from.toString()];if(!Ue&&at&&(Ue=at),!at&&Ue&&(at=Ue),!Ue||!at){let yt=ee.getPaintProperty(w);Ue=fe[yt],at=fe[yt]}Ue&&at&&ue.setConstantPatternPositions(Ue,at)}function ts(ue,w,q,Q,ee,fe,Ue){let at=ue.context.gl,yt="fill-pattern",Rt=q.paint.get(yt),Qt=Rt&&Rt.constantOr(1),rr=q.getCrossfadeParameters(),Mr,Ur,he,Ae,qe;Ue?(Ur=Qt&&!q.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",Mr=at.LINES):(Ur=Qt?"fillPattern":"fill",Mr=at.TRIANGLES);let Ge=Rt.constantOr(null);for(let ft of Q){let ot=w.getTile(ft);if(Qt&&!ot.patternsLoaded())continue;let mt=ot.getBucket(q);if(!mt)continue;let Gt=mt.programConfigurations.get(q.id),er=ue.useProgram(Ur,Gt),sr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(ft);Qt&&(ue.context.activeTexture.set(at.TEXTURE0),ot.imageAtlasTexture.bind(at.LINEAR,at.CLAMP_TO_EDGE),Gt.updatePaintBuffers(rr)),To(Gt,yt,Ge,ot,q);let wr=sr?ft:null,Ir=ue.translatePosMatrix(wr?wr.posMatrix:ft.posMatrix,ot,q.paint.get("fill-translate"),q.paint.get("fill-translate-anchor"));if(Ue){Ae=mt.indexBuffer2,qe=mt.segments2;let ri=[at.drawingBufferWidth,at.drawingBufferHeight];he=Ur==="fillOutlinePattern"&&Qt?Un(Ir,ue,rr,ot,ri):Mn(Ir,ri)}else Ae=mt.indexBuffer,qe=mt.segments,he=Qt?aa(Ir,ue,rr,ot):Xi(Ir);er.draw(ue.context,Mr,ee,ue.stencilModeForClipping(ft),fe,en.disabled,he,sr,q.id,mt.layoutVertexBuffer,Ae,qe,q.paint,ue.transform.zoom,Gt)}}function Wo(ue,w,q,Q,ee,fe,Ue){let at=ue.context,yt=at.gl,Rt="fill-extrusion-pattern",Qt=q.paint.get(Rt),rr=Qt.constantOr(1),Mr=q.getCrossfadeParameters(),Ur=q.paint.get("fill-extrusion-opacity"),he=Qt.constantOr(null);for(let Ae of Q){let qe=w.getTile(Ae),Ge=qe.getBucket(q);if(!Ge)continue;let ft=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(Ae),ot=Ge.programConfigurations.get(q.id),mt=ue.useProgram(rr?"fillExtrusionPattern":"fillExtrusion",ot);rr&&(ue.context.activeTexture.set(yt.TEXTURE0),qe.imageAtlasTexture.bind(yt.LINEAR,yt.CLAMP_TO_EDGE),ot.updatePaintBuffers(Mr)),To(ot,Rt,he,qe,q);let Gt=ue.translatePosMatrix(Ae.posMatrix,qe,q.paint.get("fill-extrusion-translate"),q.paint.get("fill-extrusion-translate-anchor")),er=q.paint.get("fill-extrusion-vertical-gradient"),sr=rr?ni(Gt,ue,er,Ur,Ae,Mr,qe):$i(Gt,ue,er,Ur);mt.draw(at,at.gl.TRIANGLES,ee,fe,Ue,en.backCCW,sr,ft,q.id,Ge.layoutVertexBuffer,Ge.indexBuffer,Ge.segments,q.paint,ue.transform.zoom,ot,ue.style.map.terrain&&Ge.centroidVertexBuffer)}}function qa(ue,w,q,Q,ee,fe,Ue){let at=ue.context,yt=at.gl,Rt=q.fbo;if(!Rt)return;let Qt=ue.useProgram("hillshade"),rr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);at.activeTexture.set(yt.TEXTURE0),yt.bindTexture(yt.TEXTURE_2D,Rt.colorAttachment.get()),Qt.draw(at,yt.TRIANGLES,ee,fe,Ue,en.disabled,((Mr,Ur,he,Ae)=>{let qe=he.paint.get("hillshade-shadow-color"),Ge=he.paint.get("hillshade-highlight-color"),ft=he.paint.get("hillshade-accent-color"),ot=he.paint.get("hillshade-illumination-direction")*(Math.PI/180);he.paint.get("hillshade-illumination-anchor")==="viewport"&&(ot-=Mr.transform.angle);let mt=!Mr.options.moving;return{u_matrix:Ae?Ae.posMatrix:Mr.transform.calculatePosMatrix(Ur.tileID.toUnwrapped(),mt),u_image:0,u_latrange:Ia(0,Ur.tileID),u_light:[he.paint.get("hillshade-exaggeration"),ot],u_shadow:qe,u_highlight:Ge,u_accent:ft}})(ue,q,Q,rr?w:null),rr,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function on(ue,w,q,Q,ee,fe){let Ue=ue.context,at=Ue.gl,yt=w.dem;if(yt&&yt.data){let Rt=yt.dim,Qt=yt.stride,rr=yt.getPixels();if(Ue.activeTexture.set(at.TEXTURE1),Ue.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Qt),w.demTexture){let Ur=w.demTexture;Ur.update(rr,{premultiply:!1}),Ur.bind(at.NEAREST,at.CLAMP_TO_EDGE)}else w.demTexture=new m(Ue,rr,at.RGBA,{premultiply:!1}),w.demTexture.bind(at.NEAREST,at.CLAMP_TO_EDGE);Ue.activeTexture.set(at.TEXTURE0);let Mr=w.fbo;if(!Mr){let Ur=new m(Ue,{width:Rt,height:Rt,data:null},at.RGBA);Ur.bind(at.LINEAR,at.CLAMP_TO_EDGE),Mr=w.fbo=Ue.createFramebuffer(Rt,Rt,!0,!1),Mr.colorAttachment.set(Ur.texture)}Ue.bindFramebuffer.set(Mr.framebuffer),Ue.viewport.set([0,0,Rt,Rt]),ue.useProgram("hillshadePrepare").draw(Ue,at.TRIANGLES,Q,ee,fe,en.disabled,((Ur,he)=>{let Ae=he.stride,qe=a.H();return a.aP(qe,0,a.X,-a.X,0,0,1),a.J(qe,qe,[0,-a.X,0]),{u_matrix:qe,u_image:1,u_dimension:[Ae,Ae],u_zoom:Ur.overscaledZ,u_unpack:he.getUnpackVector()}})(w.tileID,yt),null,q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Oo(ue,w,q,Q,ee,fe){let Ue=Q.paint.get("raster-fade-duration");if(!fe&&Ue>0){let at=l.now(),yt=(at-ue.timeAdded)/Ue,Rt=w?(at-w.timeAdded)/Ue:-1,Qt=q.getSource(),rr=ee.coveringZoomLevel({tileSize:Qt.tileSize,roundZoom:Qt.roundZoom}),Mr=!w||Math.abs(w.tileID.overscaledZ-rr)>Math.abs(ue.tileID.overscaledZ-rr),Ur=Mr&&ue.refreshedUponExpiration?1:a.ac(Mr?yt:1-Rt,0,1);return ue.refreshedUponExpiration&&yt>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Ur}:{opacity:Ur,mix:0}}return{opacity:1,mix:0}}let ko=new a.aM(1,0,0,1),oo=new a.aM(0,1,0,1),za=new a.aM(0,0,1,1),ea=new a.aM(1,0,1,1),rs=new a.aM(0,1,1,1);function $s(ue,w,q,Q){Ds(ue,0,w+q/2,ue.transform.width,q,Q)}function us(ue,w,q,Q){Ds(ue,w-q/2,0,q,ue.transform.height,Q)}function Ds(ue,w,q,Q,ee,fe){let Ue=ue.context,at=Ue.gl;at.enable(at.SCISSOR_TEST),at.scissor(w*ue.pixelRatio,q*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),Ue.clear({color:fe}),at.disable(at.SCISSOR_TEST)}function fl(ue,w,q){let Q=ue.context,ee=Q.gl,fe=q.posMatrix,Ue=ue.useProgram("debug"),at=sa.disabled,yt=Na.disabled,Rt=ue.colorModeForRenderPass(),Qt="$debug",rr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(q);Q.activeTexture.set(ee.TEXTURE0);let Mr=w.getTileByID(q.key).latestRawTileData,Ur=Math.floor((Mr&&Mr.byteLength||0)/1024),he=w.getTile(q).tileSize,Ae=512/Math.min(he,512)*(q.overscaledZ/ue.transform.zoom)*.5,qe=q.canonical.toString();q.overscaledZ!==q.canonical.z&&(qe+=` => ${q.overscaledZ}`),(function(Ge,ft){Ge.initDebugOverlayCanvas();let ot=Ge.debugOverlayCanvas,mt=Ge.context.gl,Gt=Ge.debugOverlayCanvas.getContext("2d");Gt.clearRect(0,0,ot.width,ot.height),Gt.shadowColor="white",Gt.shadowBlur=2,Gt.lineWidth=1.5,Gt.strokeStyle="white",Gt.textBaseline="top",Gt.font="bold 36px Open Sans, sans-serif",Gt.fillText(ft,5,5),Gt.strokeText(ft,5,5),Ge.debugOverlayTexture.update(ot),Ge.debugOverlayTexture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE)})(ue,`${qe} ${Ur}kB`),Ue.draw(Q,ee.TRIANGLES,at,yt,lo.alphaBlended,en.disabled,oa(fe,a.aM.transparent,Ae),null,Qt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),Ue.draw(Q,ee.LINE_STRIP,at,yt,Rt,en.disabled,oa(fe,a.aM.red),rr,Qt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function as(ue,w,q){let Q=ue.context,ee=Q.gl,fe=ue.colorModeForRenderPass(),Ue=new sa(ee.LEQUAL,sa.ReadWrite,ue.depthRangeFor3D),at=ue.useProgram("terrain"),yt=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Rt of q){let Qt=ue.renderToTexture.getTexture(Rt),rr=w.getTerrainData(Rt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Qt.texture);let Mr=ue.transform.calculatePosMatrix(Rt.tileID.toUnwrapped()),Ur=w.getMeshFrameDelta(ue.transform.zoom),he=ue.transform.calculateFogMatrix(Rt.tileID.toUnwrapped()),Ae=fr(Mr,Ur,he,ue.style.sky,ue.transform.pitch);at.draw(Q,ee.TRIANGLES,Ue,Na.disabled,fe,en.backCCW,Ae,rr,"terrain",yt.vertexBuffer,yt.indexBuffer,yt.segments)}}class Ma{constructor(w,q,Q){this.vertexBuffer=w,this.indexBuffer=q,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Qs{constructor(w,q){this.context=new eo(w),this.transform=q,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=et.maxUnderzooming+et.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new tn}resize(w,q,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(q*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,q=new a.aX;q.emplaceBack(0,0),q.emplaceBack(a.X,0),q.emplaceBack(0,a.X),q.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(q,xi.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,xi.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,Ke.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let fe=new a.aX;fe.emplaceBack(0,0),fe.emplaceBack(1,0),fe.emplaceBack(0,1),fe.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(fe,xi.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let Ue=new a.aZ;Ue.emplaceBack(0),Ue.emplaceBack(1),Ue.emplaceBack(3),Ue.emplaceBack(2),Ue.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Ue);let at=new a.aY;at.emplaceBack(0,1,2),at.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(at);let yt=this.context.gl;this.stencilClearMode=new Na({func:yt.ALWAYS,mask:0},0,255,yt.ZERO,yt.ZERO,yt.ZERO)}clearStencil(){let w=this.context,q=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[q.drawingBufferWidth,q.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,q.TRIANGLES,sa.disabled,this.stencilClearMode,lo.disabled,en.disabled,ka(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,q){if(this.currentStencilSource===w.source||!w.isTileClipped()||!q||!q.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+q.length>256&&this.clearStencil(),Q.setColorMode(lo.disabled),Q.setDepthMode(sa.disabled);let fe=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Ue of q){let at=this._tileClippingMaskIDs[Ue.key]=this.nextStencilID++,yt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Ue);fe.draw(Q,ee.TRIANGLES,sa.disabled,new Na({func:ee.ALWAYS,mask:0},at,255,ee.KEEP,ee.KEEP,ee.REPLACE),lo.disabled,en.disabled,ka(Ue.posMatrix),yt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,q=this.context.gl;return new Na({func:q.NOTEQUAL,mask:255},w,255,q.KEEP,q.KEEP,q.REPLACE)}stencilModeForClipping(w){let q=this.context.gl;return new Na({func:q.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,q.KEEP,q.KEEP,q.REPLACE)}stencilConfigForOverlap(w){let q=this.context.gl,Q=w.sort(((Ue,at)=>at.overscaledZ-Ue.overscaledZ)),ee=Q[Q.length-1].overscaledZ,fe=Q[0].overscaledZ-ee+1;if(fe>1){this.currentStencilSource=void 0,this.nextStencilID+fe>256&&this.clearStencil();let Ue={};for(let at=0;at({u_sky_color:Ge.properties.get("sky-color"),u_horizon_color:Ge.properties.get("horizon-color"),u_horizon:(ft.height/2+ft.getHorizon())*ot,u_sky_horizon_blend:Ge.properties.get("sky-horizon-blend")*ft.height/2*ot}))(Rt,yt.style.map.transform,yt.pixelRatio),Ur=new sa(rr.LEQUAL,sa.ReadWrite,[0,1]),he=Na.disabled,Ae=yt.colorModeForRenderPass(),qe=yt.useProgram("sky");if(!Rt.mesh){let Ge=new a.aX;Ge.emplaceBack(-1,-1),Ge.emplaceBack(1,-1),Ge.emplaceBack(1,1),Ge.emplaceBack(-1,1);let ft=new a.aY;ft.emplaceBack(0,1,2),ft.emplaceBack(0,2,3),Rt.mesh=new Ma(Qt.createVertexBuffer(Ge,xi.members),Qt.createIndexBuffer(ft),a.a0.simpleSegment(0,0,Ge.length,ft.length))}qe.draw(Qt,rr.TRIANGLES,Ur,he,Ae,en.disabled,Mr,void 0,"sky",Rt.mesh.vertexBuffer,Rt.mesh.indexBuffer,Rt.mesh.segments)})(this,this.style.sky),this._showOverdrawInspector=q.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let yt=this.style._layers[Q[this.currentLayer]],Rt=ee[yt.source],Qt=fe[yt.source];this._renderTileClippingMasks(yt,Qt),this.renderLayer(this,Rt,yt,Qt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerqe.source&&!qe.isHidden(Qt)?[Rt.sourceCaches[qe.source]]:[])),Ur=Mr.filter((qe=>qe.getSource().type==="vector")),he=Mr.filter((qe=>qe.getSource().type!=="vector")),Ae=qe=>{(!rr||rr.getSource().maxzoomAe(qe))),rr||he.forEach((qe=>Ae(qe))),rr})(this.style,this.transform.zoom);yt&&(function(Rt,Qt,rr){for(let Mr=0;Mr0),ee&&(a.b0(q,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,(function(fe,Ue){let at=fe.context,yt=at.gl,Rt=lo.unblended,Qt=new sa(yt.LEQUAL,sa.ReadWrite,[0,1]),rr=Ue.getTerrainMesh(),Mr=Ue.sourceCache.getRenderableTiles(),Ur=fe.useProgram("terrainDepth");at.bindFramebuffer.set(Ue.getFramebuffer("depth").framebuffer),at.viewport.set([0,0,fe.width/devicePixelRatio,fe.height/devicePixelRatio]),at.clear({color:a.aM.transparent,depth:1});for(let he of Mr){let Ae=Ue.getTerrainData(he.tileID),qe={u_matrix:fe.transform.calculatePosMatrix(he.tileID.toUnwrapped()),u_ele_delta:Ue.getMeshFrameDelta(fe.transform.zoom)};Ur.draw(at,yt.TRIANGLES,Qt,Na.disabled,Rt,en.backCCW,qe,Ae,"terrain",rr.vertexBuffer,rr.indexBuffer,rr.segments)}at.bindFramebuffer.set(null),at.viewport.set([0,0,fe.width,fe.height])})(this,this.style.map.terrain),(function(fe,Ue){let at=fe.context,yt=at.gl,Rt=lo.unblended,Qt=new sa(yt.LEQUAL,sa.ReadWrite,[0,1]),rr=Ue.getTerrainMesh(),Mr=Ue.getCoordsTexture(),Ur=Ue.sourceCache.getRenderableTiles(),he=fe.useProgram("terrainCoords");at.bindFramebuffer.set(Ue.getFramebuffer("coords").framebuffer),at.viewport.set([0,0,fe.width/devicePixelRatio,fe.height/devicePixelRatio]),at.clear({color:a.aM.transparent,depth:1}),Ue.coordsIndex=[];for(let Ae of Ur){let qe=Ue.getTerrainData(Ae.tileID);at.activeTexture.set(yt.TEXTURE0),yt.bindTexture(yt.TEXTURE_2D,Mr.texture);let Ge={u_matrix:fe.transform.calculatePosMatrix(Ae.tileID.toUnwrapped()),u_terrain_coords_id:(255-Ue.coordsIndex.length)/255,u_texture:0,u_ele_delta:Ue.getMeshFrameDelta(fe.transform.zoom)};he.draw(at,yt.TRIANGLES,Qt,Na.disabled,Rt,en.backCCW,Ge,qe,"terrain",rr.vertexBuffer,rr.indexBuffer,rr.segments),Ue.coordsIndex.push(Ae.tileID.key)}at.bindFramebuffer.set(null),at.viewport.set([0,0,fe.width,fe.height])})(this,this.style.map.terrain))}renderLayer(w,q,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(fe,Ue,at,yt,Rt){if(fe.renderPass!=="translucent")return;let Qt=Na.disabled,rr=fe.colorModeForRenderPass();(at._unevaluatedLayout.hasValue("text-variable-anchor")||at._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&(function(Mr,Ur,he,Ae,qe,Ge,ft,ot,mt){let Gt=Ur.transform,er=Vi(),sr=qe==="map",wr=Ge==="map";for(let Ir of Mr){let ri=Ae.getTile(Ir),si=ri.getBucket(he);if(!si||!si.text||!si.text.segments.get().length)continue;let Mi=a.ag(si.textSizeData,Gt.zoom),cn=Bi(ri,1,Ur.transform.zoom),Zn=vr(Ir.posMatrix,wr,sr,Ur.transform,cn),Yn=he.layout.get("icon-text-fit")!=="none"&&si.hasIconData();if(Mi){let Ua=Math.pow(2,Gt.zoom-ri.tileID.overscaledZ),Fo=Ur.style.map.terrain?(Us,ml)=>Ur.style.map.terrain.getElevation(Ir,Us,ml):null,vl=er.translatePosition(Gt,ri,ft,ot);Dn(si,sr,wr,mt,Gt,Zn,Ir.posMatrix,Ua,Mi,Yn,er,vl,Ir.toUnwrapped(),Fo)}}})(yt,fe,at,Ue,at.layout.get("text-rotation-alignment"),at.layout.get("text-pitch-alignment"),at.paint.get("text-translate"),at.paint.get("text-translate-anchor"),Rt),at.paint.get("icon-opacity").constantOr(1)!==0&&Ws(fe,Ue,at,yt,!1,at.paint.get("icon-translate"),at.paint.get("icon-translate-anchor"),at.layout.get("icon-rotation-alignment"),at.layout.get("icon-pitch-alignment"),at.layout.get("icon-keep-upright"),Qt,rr),at.paint.get("text-opacity").constantOr(1)!==0&&Ws(fe,Ue,at,yt,!0,at.paint.get("text-translate"),at.paint.get("text-translate-anchor"),at.layout.get("text-rotation-alignment"),at.layout.get("text-pitch-alignment"),at.layout.get("text-keep-upright"),Qt,rr),Ue.map.showCollisionBoxes&&(to(fe,Ue,at,yt,!0),to(fe,Ue,at,yt,!1))})(w,q,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(fe,Ue,at,yt){if(fe.renderPass!=="translucent")return;let Rt=at.paint.get("circle-opacity"),Qt=at.paint.get("circle-stroke-width"),rr=at.paint.get("circle-stroke-opacity"),Mr=!at.layout.get("circle-sort-key").isConstant();if(Rt.constantOr(1)===0&&(Qt.constantOr(1)===0||rr.constantOr(1)===0))return;let Ur=fe.context,he=Ur.gl,Ae=fe.depthModeForSublayer(0,sa.ReadOnly),qe=Na.disabled,Ge=fe.colorModeForRenderPass(),ft=[];for(let ot=0;otot.sortKey-mt.sortKey));for(let ot of ft){let{programConfiguration:mt,program:Gt,layoutVertexBuffer:er,indexBuffer:sr,uniformValues:wr,terrainData:Ir}=ot.state;Gt.draw(Ur,he.TRIANGLES,Ae,qe,Ge,en.disabled,wr,Ir,at.id,er,sr,ot.segments,at.paint,fe.transform.zoom,mt)}})(w,q,Q,ee);break;case"heatmap":(function(fe,Ue,at,yt){if(at.paint.get("heatmap-opacity")===0)return;let Rt=fe.context;if(fe.style.map.terrain){for(let Qt of yt){let rr=Ue.getTile(Qt);Ue.hasRenderableParent(Qt)||(fe.renderPass==="offscreen"?Es(fe,rr,at,Qt):fe.renderPass==="translucent"&&Ts(fe,at,Qt))}Rt.viewport.set([0,0,fe.width,fe.height])}else fe.renderPass==="offscreen"?(function(Qt,rr,Mr,Ur){let he=Qt.context,Ae=he.gl,qe=Na.disabled,Ge=new lo([Ae.ONE,Ae.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(ft,ot,mt){let Gt=ft.gl;ft.activeTexture.set(Gt.TEXTURE1),ft.viewport.set([0,0,ot.width/4,ot.height/4]);let er=mt.heatmapFbos.get(a.aU);er?(Gt.bindTexture(Gt.TEXTURE_2D,er.colorAttachment.get()),ft.bindFramebuffer.set(er.framebuffer)):(er=Ho(ft,ot.width/4,ot.height/4),mt.heatmapFbos.set(a.aU,er))})(he,Qt,Mr),he.clear({color:a.aM.transparent});for(let ft=0;ft20&&Qt.texParameterf(Qt.TEXTURE_2D,Rt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Rt.extTextureFilterAnisotropicMax);let si=fe.style.map.terrain&&fe.style.map.terrain.getTerrainData(ft),Mi=si?ft:null,cn=Mi?Mi.posMatrix:fe.transform.calculatePosMatrix(ft.toUnwrapped(),Ge),Zn=ls(cn,Ir||[0,0],wr||1,sr,at);rr instanceof zt?Mr.draw(Rt,Qt.TRIANGLES,ot,Na.disabled,Ur,en.disabled,Zn,si,at.id,rr.boundsBuffer,fe.quadTriangleIndexBuffer,rr.boundsSegments):Mr.draw(Rt,Qt.TRIANGLES,ot,he[ft.overscaledZ],Ur,en.disabled,Zn,si,at.id,fe.rasterBoundsBuffer,fe.quadTriangleIndexBuffer,fe.rasterBoundsSegments)}})(w,q,Q,ee);break;case"background":(function(fe,Ue,at,yt){let Rt=at.paint.get("background-color"),Qt=at.paint.get("background-opacity");if(Qt===0)return;let rr=fe.context,Mr=rr.gl,Ur=fe.transform,he=Ur.tileSize,Ae=at.paint.get("background-pattern");if(fe.isPatternMissing(Ae))return;let qe=!Ae&&Rt.a===1&&Qt===1&&fe.opaquePassEnabledForLayer()?"opaque":"translucent";if(fe.renderPass!==qe)return;let Ge=Na.disabled,ft=fe.depthModeForSublayer(0,qe==="opaque"?sa.ReadWrite:sa.ReadOnly),ot=fe.colorModeForRenderPass(),mt=fe.useProgram(Ae?"backgroundPattern":"background"),Gt=yt||Ur.coveringTiles({tileSize:he,terrain:fe.style.map.terrain});Ae&&(rr.activeTexture.set(Mr.TEXTURE0),fe.imageManager.bind(fe.context));let er=at.getCrossfadeParameters();for(let sr of Gt){let wr=yt?sr.posMatrix:fe.transform.calculatePosMatrix(sr.toUnwrapped()),Ir=Ae?ws(wr,Qt,fe,Ae,{tileID:sr,tileSize:he},er):wa(wr,Qt,Rt),ri=fe.style.map.terrain&&fe.style.map.terrain.getTerrainData(sr);mt.draw(rr,Mr.TRIANGLES,ft,Ge,ot,en.disabled,Ir,ri,at.id,fe.tileExtentBuffer,fe.quadTriangleIndexBuffer,fe.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(fe,Ue,at){let yt=fe.context,Rt=at.implementation;if(fe.renderPass==="offscreen"){let Qt=Rt.prerender;Qt&&(fe.setCustomLayerDefaults(),yt.setColorMode(fe.colorModeForRenderPass()),Qt.call(Rt,yt.gl,fe.transform.customLayerMatrix()),yt.setDirty(),fe.setBaseState())}else if(fe.renderPass==="translucent"){fe.setCustomLayerDefaults(),yt.setColorMode(fe.colorModeForRenderPass()),yt.setStencilMode(Na.disabled);let Qt=Rt.renderingMode==="3d"?new sa(fe.context.gl.LEQUAL,sa.ReadWrite,fe.depthRangeFor3D):fe.depthModeForSublayer(0,sa.ReadOnly);yt.setDepthMode(Qt),Rt.render(yt.gl,fe.transform.customLayerMatrix(),{farZ:fe.transform.farZ,nearZ:fe.transform.nearZ,fov:fe.transform._fov,modelViewProjectionMatrix:fe.transform.modelViewProjectionMatrix,projectionMatrix:fe.transform.projectionMatrix}),yt.setDirty(),fe.setBaseState(),yt.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,q,Q,ee,fe){if(!Q[0]&&!Q[1])return w;let Ue=fe?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Ue){let Rt=Math.sin(Ue),Qt=Math.cos(Ue);Q=[Q[0]*Qt-Q[1]*Rt,Q[0]*Rt+Q[1]*Qt]}let at=[fe?Q[0]:Bi(q,Q[0],this.transform.zoom),fe?Q[1]:Bi(q,Q[1],this.transform.zoom),0],yt=new Float32Array(16);return a.J(yt,w,at),yt}saveTileTexture(w){let q=this._tileTextures[w.size[0]];q?q.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let q=this._tileTextures[w];return q&&q.length>0?q.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let q=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!q||!Q}useProgram(w,q){this.cache=this.cache||{};let Q=w+(q?q.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new Zr(this.context,Xr[w],q,Co[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new m(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:q}=this.context.gl;return this.width!==w||this.height!==q}}class ho{constructor(w,q){this.points=w,this.planes=q}static fromInvProjectionMatrix(w,q,Q){let ee=Math.pow(2,Q),fe=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((at=>{let yt=1/(at=a.af([],at,w))[3]/q*ee;return a.b1(at,at,[yt,yt,1/at[3],yt])})),Ue=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((at=>{let yt=(function(Mr,Ur){var he=Ur[0],Ae=Ur[1],qe=Ur[2],Ge=he*he+Ae*Ae+qe*qe;return Ge>0&&(Ge=1/Math.sqrt(Ge)),Mr[0]=Ur[0]*Ge,Mr[1]=Ur[1]*Ge,Mr[2]=Ur[2]*Ge,Mr})([],(function(Mr,Ur,he){var Ae=Ur[0],qe=Ur[1],Ge=Ur[2],ft=he[0],ot=he[1],mt=he[2];return Mr[0]=qe*mt-Ge*ot,Mr[1]=Ge*ft-Ae*mt,Mr[2]=Ae*ot-qe*ft,Mr})([],L([],fe[at[0]],fe[at[1]]),L([],fe[at[2]],fe[at[1]]))),Rt=-((Qt=yt)[0]*(rr=fe[at[1]])[0]+Qt[1]*rr[1]+Qt[2]*rr[2]);var Qt,rr;return yt.concat(Rt)}));return new ho(fe,Ue)}}class gs{constructor(w,q){this.min=w,this.max=q,this.center=(function(Q,ee,fe){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q})([],(function(Q,ee,fe){return Q[0]=ee[0]+fe[0],Q[1]=ee[1]+fe[1],Q[2]=ee[2]+fe[2],Q})([],this.min,this.max))}quadrant(w){let q=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let fe=0;fe=0&&Ue++;if(Ue===0)return 0;Ue!==q.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let fe=Number.MAX_VALUE,Ue=-Number.MAX_VALUE;for(let at=0;atthis.max[ee]-this.min[ee])return 0}return 1}}class Vo{constructor(w=0,q=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(q)||q<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=q,this.left=Q,this.right=ee}interpolate(w,q,Q){return q.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,q.top,Q)),q.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,q.bottom,Q)),q.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,q.left,Q)),q.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,q.right,Q)),this}getCenter(w,q){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+q-this.bottom)/2,0,q);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new Vo(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let Do=85.051129;class Lo{constructor(w,q,Q,ee,fe){this.tileSize=512,this._renderWorldCopies=fe===void 0||!!fe,this._minZoom=w||0,this._maxZoom=q||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Vo,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new Lo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let q=-a.b3(w,-180,180)*Math.PI/180;this.angle!==q&&(this._unmodified=!1,this.angle=q,this._calcMatrices(),this.rotationMatrix=(function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q})(),(function(Q,ee,fe){var Ue=ee[0],at=ee[1],yt=ee[2],Rt=ee[3],Qt=Math.sin(fe),rr=Math.cos(fe);Q[0]=Ue*rr+yt*Qt,Q[1]=at*rr+Rt*Qt,Q[2]=Ue*-Qt+yt*rr,Q[3]=at*-Qt+Rt*rr})(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let q=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==q&&(this._unmodified=!1,this._pitch=q,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let q=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==q&&(this._unmodified=!1,this._zoom=q,this.tileZoom=Math.max(0,Math.floor(q)),this.scale=this.zoomScale(q),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,q,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,q,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let q=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,q)}getVisibleUnwrappedCoordinates(w){let q=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),fe=this.pointCoordinate(new a.P(this.width,this.height)),Ue=this.pointCoordinate(new a.P(0,this.height)),at=Math.floor(Math.min(Q.x,ee.x,fe.x,Ue.x)),yt=Math.floor(Math.max(Q.x,ee.x,fe.x,Ue.x)),Rt=1;for(let Qt=at-Rt;Qt<=yt+Rt;Qt++)Qt!==0&&q.push(new a.b4(Qt,w))}return q}coveringTiles(w){var q,Q;let ee=this.coveringZoomLevel(w),fe=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Ue=this.pointCoordinate(this.getCameraPoint()),at=a.Z.fromLngLat(this.center),yt=Math.pow(2,ee),Rt=[yt*Ue.x,yt*Ue.y,0],Qt=[yt*at.x,yt*at.y,0],rr=ho.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),Mr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(Mr=ee);let Ur=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,he=ot=>({aabb:new gs([ot*yt,0,0],[(ot+1)*yt,yt,0]),zoom:0,x:0,y:0,wrap:ot,fullyVisible:!1}),Ae=[],qe=[],Ge=ee,ft=w.reparseOverscaled?fe:ee;if(this._renderWorldCopies)for(let ot=1;ot<=3;ot++)Ae.push(he(-ot)),Ae.push(he(ot));for(Ae.push(he(0));Ae.length>0;){let ot=Ae.pop(),mt=ot.x,Gt=ot.y,er=ot.fullyVisible;if(!er){let si=ot.aabb.intersects(rr);if(si===0)continue;er=si===2}let sr=w.terrain?Rt:Qt,wr=ot.aabb.distanceX(sr),Ir=ot.aabb.distanceY(sr),ri=Math.max(Math.abs(wr),Math.abs(Ir));if(ot.zoom===Ge||ri>Ur+(1<=Mr){let si=Ge-ot.zoom,Mi=Rt[0]-.5-(mt<>1),Zn=ot.zoom+1,Yn=ot.aabb.quadrant(si);if(w.terrain){let Ua=new a.S(Zn,ot.wrap,Zn,Mi,cn),Fo=w.terrain.getMinMaxElevation(Ua),vl=(q=Fo.minElevation)!==null&&q!==void 0?q:this.elevation,Us=(Q=Fo.maxElevation)!==null&&Q!==void 0?Q:this.elevation;Yn=new gs([Yn.min[0],Yn.min[1],vl],[Yn.max[0],Yn.max[1],Us])}Ae.push({aabb:Yn,zoom:Zn,x:Mi,y:cn,wrap:ot.wrap,fullyVisible:er})}}return qe.sort(((ot,mt)=>ot.distanceSq-mt.distanceSq)).map((ot=>ot.tileID))}resize(w,q){this.width=w,this.height=q,this.pixelsToGLUnits=[2/w,-2/q],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let q=a.ac(w.lat,-85.051129,Do);return new a.P(a.O(w.lng)*this.worldSize,a.Q(q)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let q=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),fe=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-fe))return;let Ue=Q+q-fe,at=Math.cos(this._pitch)*this.cameraToCenterDistance/Ue/a.b5(1,ee.lat),yt=this.scaleZoom(at/this.tileSize);this._elevation=fe,this._center=ee,this.zoom=yt}setLocationAtPoint(w,q){let Q=this.pointCoordinate(q),ee=this.pointCoordinate(this.centerPoint),fe=this.locationCoordinate(w),Ue=new a.Z(fe.x-(Q.x-ee.x),fe.y-(Q.y-ee.y));this.center=this.coordinateLocation(Ue),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,q){return q?this.coordinatePoint(this.locationCoordinate(w),q.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,q){return this.coordinateLocation(this.pointCoordinate(w,q))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,q){if(q){let Mr=q.pointCoordinate(w);if(Mr!=null)return Mr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let fe=Q[3],Ue=ee[3],at=Q[1]/fe,yt=ee[1]/Ue,Rt=Q[2]/fe,Qt=ee[2]/Ue,rr=Rt===Qt?0:(0-Rt)/(Qt-Rt);return new a.Z(a.y.number(Q[0]/fe,ee[0]/Ue,rr)/this.worldSize,a.y.number(at,yt,rr)/this.worldSize)}coordinatePoint(w,q=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,q,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,Do])}calculateTileMatrix(w){let q=w.canonical,Q=this.worldSize/this.zoomScale(q.z),ee=q.x+Math.pow(2,q.z)*w.wrap,fe=a.an(new Float64Array(16));return a.J(fe,fe,[ee*Q,q.y*Q,0]),a.K(fe,fe,[Q/a.X,Q/a.X,1]),fe}calculatePosMatrix(w,q=!1){let Q=w.key,ee=q?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let fe=this.calculateTileMatrix(w);return a.L(fe,q?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,fe),ee[Q]=new Float32Array(fe),ee[Q]}calculateFogMatrix(w){let q=w.key,Q=this._fogMatrixCache;if(Q[q])return Q[q];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[q]=new Float32Array(ee),Q[q]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,q){q=a.ac(+q,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:q},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let ot=179.9999999999;ee=[-ot,ot]}let fe=this.tileSize*this.zoomScale(Q.zoom),Ue=0,at=fe,yt=0,Rt=fe,Qt=0,rr=0,{x:Mr,y:Ur}=this.size;if(this.latRange){let ot=this.latRange;Ue=a.Q(ot[1])*fe,at=a.Q(ot[0])*fe,at-Ueat&&(Ge=at-ot)}if(ee){let ot=(yt+Rt)/2,mt=he;this._renderWorldCopies&&(mt=a.b3(he,ot-fe/2,ot+fe/2));let Gt=Mr/2;mt-GtRt&&(qe=Rt-Gt)}if(qe!==void 0||Ge!==void 0){let ot=new a.P(qe!=null?qe:he,Ge!=null?Ge:Ae);Q.center=this.unproject.call({worldSize:fe},ot).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:q,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=q,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,q=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let fe=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ue=Math.min(this.elevation,this.minElevationForCurrentTile),at=fe-Ue*this._pixelPerMeter/Math.cos(this._pitch),yt=Ue<0?at:fe,Rt=Math.PI/2+this._pitch,Qt=this._fov*(.5+w.y/this.height),rr=Math.sin(Qt)*yt/Math.sin(a.ac(Math.PI-Rt-Qt,.01,Math.PI-.01)),Mr=this.getHorizon(),Ur=2*Math.atan(Mr/this.cameraToCenterDistance)*(.5+w.y/(2*Mr)),he=Math.sin(Ur)*yt/Math.sin(a.ac(Math.PI-Rt-Ur,.01,Math.PI-.01)),Ae=Math.min(rr,he);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Ae+yt),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-q,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,fe,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-q,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let qe=this.width%2/2,Ge=this.height%2/2,ft=Math.cos(this.angle),ot=Math.sin(this.angle),mt=q-Math.round(q)+ft*qe+ot*Ge,Gt=Q-Math.round(Q)+ft*Ge+ot*qe,er=new Float64Array(ee);if(a.J(er,er,[mt>.5?mt-1:mt,Gt>.5?Gt-1:Gt,0]),this.alignedModelViewProjectionMatrix=er,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),q=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(q,q,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let q=this.getCameraPoint();if(w.length===1)return[w[0],q];{let Q=q.x,ee=q.y,fe=q.x,Ue=q.y;for(let at of w)Q=Math.min(Q,at.x),ee=Math.min(ee,at.y),fe=Math.max(fe,at.x),Ue=Math.max(Ue,at.y);return[new a.P(Q,ee),new a.P(fe,ee),new a.P(fe,Ue),new a.P(Q,Ue),new a.P(Q,ee)]}}lngLatToCameraDepth(w,q){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,q,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function xs(ue,w){let q,Q=!1,ee=null,fe=null,Ue=()=>{ee=null,Q&&(ue.apply(fe,q),ee=setTimeout(Ue,w),Q=!1)};return(...at)=>(Q=!0,fe=this,q=at,ee||Ue(),ee)}class ks{constructor(w){this._getCurrentHash=()=>{let q=window.location.hash.replace("#","");if(this._hashName){let Q;return q.split("&").map((ee=>ee.split("="))).forEach((ee=>{ee[0]===this._hashName&&(Q=ee)})),(Q&&Q[1]||"").split("/")}return q.split("/")},this._onHashChange=()=>{let q=this._getCurrentHash();if(q.length>=3&&!q.some((Q=>isNaN(Q)))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(q[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+q[2],+q[1]],zoom:+q[0],bearing:Q,pitch:+(q[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let q=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,q)},this._removeHash=()=>{let q=this._getCurrentHash();if(q.length===0)return;let Q=q.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let fe=window.location.hash.replace(ee,"");fe.startsWith("#&")?fe=fe.slice(0,1)+fe.slice(2):fe==="#"&&(fe="");let Ue=window.location.href.replace(/(#.+)?$/,fe);Ue=Ue.replace("&&","&"),window.history.replaceState(window.history.state,null,Ue)},this._updateHash=xs(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let q=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),fe=Math.pow(10,ee),Ue=Math.round(q.lng*fe)/fe,at=Math.round(q.lat*fe)/fe,yt=this._map.getBearing(),Rt=this._map.getPitch(),Qt="";if(Qt+=w?`/${Ue}/${at}/${Q}`:`${Q}/${at}/${Ue}`,(yt||Rt)&&(Qt+="/"+Math.round(10*yt)/10),Rt&&(Qt+=`/${Math.round(Rt)}`),this._hashName){let rr=this._hashName,Mr=!1,Ur=window.location.hash.slice(1).split("&").map((he=>{let Ae=he.split("=")[0];return Ae===rr?(Mr=!0,`${Ae}=${Qt}`):he})).filter((he=>he));return Mr||Ur.push(`${rr}=${Qt}`),`#${Ur.join("&")}`}return`#${Qt}`}}let Ea={linearity:.3,easing:a.b8(0,0,.3,1)},Jn=a.e({deceleration:2500,maxSpeed:1400},Ea),Bo=a.e({deceleration:20,maxSpeed:1400},Ea),rl=a.e({deceleration:1e3,maxSpeed:360},Ea),Gs=a.e({deceleration:1e3,maxSpeed:90},Ea);class bs{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:l.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,q=l.now();for(;w.length>0&&q-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let q={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:fe}of this._inertiaBuffer)q.zoom+=fe.zoomDelta||0,q.bearing+=fe.bearingDelta||0,q.pitch+=fe.pitchDelta||0,fe.panDelta&&q.pan._add(fe.panDelta),fe.around&&(q.around=fe.around),fe.pinchAround&&(q.pinchAround=fe.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(q.pan.mag()){let fe=$o(q.pan.mag(),Q,a.e({},Jn,w||{}));ee.offset=q.pan.mult(fe.amount/q.pan.mag()),ee.center=this._map.transform.center,zs(ee,fe)}if(q.zoom){let fe=$o(q.zoom,Q,Bo);ee.zoom=this._map.transform.zoom+fe.amount,zs(ee,fe)}if(q.bearing){let fe=$o(q.bearing,Q,rl);ee.bearing=this._map.transform.bearing+a.ac(fe.amount,-179,179),zs(ee,fe)}if(q.pitch){let fe=$o(q.pitch,Q,Gs);ee.pitch=this._map.transform.pitch+fe.amount,zs(ee,fe)}if(ee.zoom||ee.bearing){let fe=q.pinchAround===void 0?q.around:q.pinchAround;ee.around=fe?this._map.unproject(fe):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function zs(ue,w){(!ue.duration||ue.durationq.unproject(yt))),at=fe.reduce(((yt,Rt,Qt,rr)=>yt.add(Rt.div(rr.length))),new a.P(0,0));super(w,{points:fe,point:at,lngLats:Ue,lngLat:q.unproject(at),originalEvent:Q}),this._defaultPrevented=!1}}class _l extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,q,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Ss{constructor(w,q){this._map=w,this._clickTolerance=q.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new _l(w.type,this._map,w))}mousedown(w,q){return this._mousedownPos=q,this._firePreventable(new Aa(w.type,this._map,w))}mouseup(w){this._map.fire(new Aa(w.type,this._map,w))}click(w,q){this._mousedownPos&&this._mousedownPos.dist(q)>=this._clickTolerance||this._map.fire(new Aa(w.type,this._map,w))}dblclick(w){return this._firePreventable(new Aa(w.type,this._map,w))}mouseover(w){this._map.fire(new Aa(w.type,this._map,w))}mouseout(w){this._map.fire(new Aa(w.type,this._map,w))}touchstart(w){return this._firePreventable(new os(w.type,this._map,w))}touchmove(w){this._map.fire(new os(w.type,this._map,w))}touchend(w){this._map.fire(new os(w.type,this._map,w))}touchcancel(w){this._map.fire(new os(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class po{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new Aa(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Aa("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new Aa(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class go{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class ss{constructor(w,q){this._map=w,this._tr=new go(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=q.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,q){this.isEnabled()&&w.shiftKey&&w.button===0&&(f.disableDrag(),this._startPos=this._lastPos=q,this._active=!0)}mousemoveWindow(w,q){if(!this._active)return;let Q=q;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)fe.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(f.remove(this._box),this._box=null),f.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,q){return this._map.fire(new a.k(w,{originalEvent:q}))}}function qo(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let q={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=(function(ee){let fe=new a.P(0,0);for(let Ue of ee)fe._add(Ue);return fe.div(ee.length)})(q),this.touches=qo(Q,q)))}touchmove(w,q,Q){if(this.aborted||!this.centroid)return;let ee=qo(Q,q);for(let fe in this.touches){let Ue=ee[fe];(!Ue||Ue.dist(this.touches[fe])>30)&&(this.aborted=!0)}}touchend(w,q,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class io{constructor(w){this.singleTap=new zo(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,q,Q){this.singleTap.touchstart(w,q,Q)}touchmove(w,q,Q){this.singleTap.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this.singleTap.touchend(w,q,Q);if(ee){let fe=w.timeStamp-this.lastTime<500,Ue=!this.lastTap||this.lastTap.dist(ee)<30;if(fe&&Ue||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class Io{constructor(w){this._tr=new go(w),this._zoomIn=new io({numTouches:1,numTaps:2}),this._zoomOut=new io({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,q,Q){this._zoomIn.touchstart(w,q,Q),this._zoomOut.touchstart(w,q,Q)}touchmove(w,q,Q){this._zoomIn.touchmove(w,q,Q),this._zoomOut.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this._zoomIn.touchend(w,q,Q),fe=this._zoomOut.touchend(w,q,Q),Ue=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:at=>at.easeTo({duration:300,zoom:Ue.zoom+1,around:Ue.unproject(ee)},{originalEvent:w})}):fe?(this._active=!0,w.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:at=>at.easeTo({duration:300,zoom:Ue.zoom-1,around:Ue.unproject(fe)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Da{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let q=this._moveFunction(...w);if(q.bearingDelta||q.pitchDelta||q.around||q.panDelta)return this._active=!0,q}dragStart(w,q){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=q.length?q[0]:q,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,q){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=q.length?q[0]:q;return!this._moved&&ee.dist(Q){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Hs=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:q=.8})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,fe)=>({bearingDelta:(fe.x-ee.x)*q}),moveStateManager:Q,enable:ue,assignEvents:el})},Ro=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:q=-.5})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,fe)=>({pitchDelta:(fe.y-ee.y)*q}),moveStateManager:Q,enable:ue,assignEvents:el})};class tl{constructor(w,q){this._clickTolerance=w.clickTolerance||1,this._map=q,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,q,Q){return this._calculateTransform(w,q,Q)}touchmove(w,q,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,q,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,q,Q){this._calculateTransform(w,q,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,q,Q){Q.length>0&&(this._active=!0);let ee=qo(Q,q),fe=new a.P(0,0),Ue=new a.P(0,0),at=0;for(let Rt in ee){let Qt=ee[Rt],rr=this._touches[Rt];rr&&(fe._add(Qt),Ue._add(Qt.sub(rr)),at++,ee[Rt]=Qt)}if(this._touches=ee,this._shouldBePrevented(at)||!Ue.mag())return;let yt=Ue.div(at);return this._sum._add(yt),this._sum.mag()Math.abs(ue.x)}class Os extends Fs{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,q,Q){super.touchstart(w,q,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,Is(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,q,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),fe=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,fe,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+fe.y)/2*-.5}):void 0}gestureBeginsVertically(w,q,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,fe=q.mag()>=2;if(!ee&&!fe)return;if(!ee||!fe)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let Ue=w.y>0==q.y>0;return Is(w)&&Is(q)&&Ue}}let St={panStep:100,bearingStep:15,pitchStep:10};class Ut{constructor(w){this._tr=new go(w);let q=St;this._panStep=q.panStep,this._bearingStep=q.bearingStep,this._pitchStep=q.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let q=0,Q=0,ee=0,fe=0,Ue=0;switch(w.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),fe=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),fe=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),Ue=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Ue=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:at=>{let yt=this._tr;at.easeTo({duration:300,easeId:"keyboardHandler",easing:xr,zoom:q?Math.round(yt.zoom)+q*(w.shiftKey?2:1):yt.zoom,bearing:yt.bearing+Q*this._bearingStep,pitch:yt.pitch+ee*this._pitchStep,offset:[-fe*this._panStep,-Ue*this._panStep],center:yt.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function xr(ue){return ue*(2-ue)}let dr=4.000244140625;class Dr{constructor(w,q){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new go(w),this._triggerRenderFrame=q,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let q=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=l.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,q!==0&&q%dr==0?this._type="wheel":q!==0&&Math.abs(q)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=q,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*q)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,q+=this._lastValue)),w.shiftKey&&q&&(q/=4),this._type&&(this._lastWheelEvent=w,this._delta-=q,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let q=f.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=q.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(q)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let yt=this._type==="wheel"&&Math.abs(this._delta)>dr?this._wheelZoomRate:this._defaultZoomRate,Rt=2/(1+Math.exp(-Math.abs(this._delta*yt)));this._delta<0&&Rt!==0&&(Rt=1/Rt);let Qt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Qt*Rt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let q=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,fe,Ue=!1,at=l.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&at){let yt=Math.min(at/200,1),Rt=ee(yt);fe=a.y.number(Q,q,Rt),yt<1?this._frameId||(this._frameId=!0):Ue=!0}else fe=q,Ue=!0;return this._active=!0,Ue&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!Ue,zoomDelta:fe-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let q=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(l.now()-Q.start)/Q.duration,fe=Q.easing(ee+.01)-Q.easing(ee),Ue=.27/Math.sqrt(fe*fe+1e-4)*.01,at=Math.sqrt(.0729-Ue*Ue);q=a.b8(Ue,at,.25,1)}return this._prevEase={start:l.now(),duration:w,easing:q},q}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class yi{constructor(w,q){this._clickZoom=w,this._tapZoom=q}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Ti{constructor(w){this._tr=new go(w),this.reset()}reset(){this._active=!1}dblclick(w,q){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(q)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ki{constructor(){this._tap=new io({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,q,Q){if(!this._swipePoint)if(this._tapTime){let ee=q[0],fe=w.timeStamp-this._tapTime<500,Ue=this._tapPoint.dist(ee)<30;fe&&Ue?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,q,Q)}touchmove(w,q,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=q[0],fe=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:fe/128}}}else this._tap.touchmove(w,q,Q)}touchend(w,q,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,q,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ki{constructor(w,q,Q){this._el=w,this._mousePan=q,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Fn{constructor(w,q,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=q,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Li{constructor(w,q,Q,ee){this._el=w,this._touchZoom=q,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class hi{constructor(w,q){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=q,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=f.create("div","maplibregl-cooperative-gesture-screen",w);let q=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(q=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=q,this._container.appendChild(ee);let fe=document.createElement("div");fe.className="maplibregl-mobile-message",fe.textContent=Q,this._container.appendChild(fe),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(f.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,q){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:q})),this._container.classList.add("maplibregl-show"),setTimeout((()=>{this._container.classList.remove("maplibregl-show")}),100))}}let Ci=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Si extends a.k{}function Gn(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class ta{constructor(w,q){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,fe)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Ue=ee.type==="renderFrame"?void 0:ee,at={needsRenderFrame:!1},yt={},Rt={},Qt=ee.touches,rr=Qt?this._getMapTouches(Qt):void 0,Mr=rr?f.touchPos(this._map.getCanvas(),rr):f.mousePos(this._map.getCanvas(),ee);for(let{handlerName:Ae,handler:qe,allowed:Ge}of this._handlers){if(!qe.isEnabled())continue;let ft;this._blockedByActive(Rt,Ge,Ae)?qe.reset():qe[fe||ee.type]&&(ft=qe[fe||ee.type](ee,Mr,rr),this.mergeHandlerResult(at,yt,ft,Ae,Ue),ft&&ft.needsRenderFrame&&this._triggerRenderFrame()),(ft||qe.isActive())&&(Rt[Ae]=qe)}let Ur={};for(let Ae in this._previousActiveHandlers)Rt[Ae]||(Ur[Ae]=Ue);this._previousActiveHandlers=Rt,(Object.keys(Ur).length||Gn(at))&&(this._changes.push([at,yt,Ur]),this._triggerRenderFrame()),(Object.keys(Rt).length||Gn(at))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:he}=at;he&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],he(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new bs(w),this._bearingSnap=q.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(q);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,fe,Ue]of this._listeners)f.addEventListener(ee,fe,ee===document?this.handleWindowEvent:this.handleEvent,Ue)}destroy(){for(let[w,q,Q]of this._listeners)f.removeEventListener(w,q,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let q=this._map,Q=q.getCanvasContainer();this._add("mapEvent",new Ss(q,w));let ee=q.boxZoom=new ss(q,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let fe=q.cooperativeGestures=new hi(q,w.cooperativeGestures);this._add("cooperativeGestures",fe),w.cooperativeGestures&&fe.enable();let Ue=new Io(q),at=new Ti(q);q.doubleClickZoom=new yi(at,Ue),this._add("tapZoom",Ue),this._add("clickZoom",at),w.interactive&&w.doubleClickZoom&&q.doubleClickZoom.enable();let yt=new ki;this._add("tapDragZoom",yt);let Rt=q.touchPitch=new Os(q);this._add("touchPitch",Rt),w.interactive&&w.touchPitch&&q.touchPitch.enable(w.touchPitch);let Qt=Hs(w),rr=Ro(w);q.dragRotate=new Fn(w,Qt,rr),this._add("mouseRotate",Qt,["mousePitch"]),this._add("mousePitch",rr,["mouseRotate"]),w.interactive&&w.dragRotate&&q.dragRotate.enable();let Mr=(({enable:ft,clickTolerance:ot})=>{let mt=new fs({checkCorrectEvent:Gt=>f.mouseButton(Gt)===0&&!Gt.ctrlKey});return new Da({clickTolerance:ot,move:(Gt,er)=>({around:er,panDelta:er.sub(Gt)}),activateOnStart:!0,moveStateManager:mt,enable:ft,assignEvents:el})})(w),Ur=new tl(w,q);q.dragPan=new Ki(Q,Mr,Ur),this._add("mousePan",Mr),this._add("touchPan",Ur,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&q.dragPan.enable(w.dragPan);let he=new Rs,Ae=new Ms;q.touchZoomRotate=new Li(Q,Ae,he,yt),this._add("touchRotate",he,["touchPan","touchZoom"]),this._add("touchZoom",Ae,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&q.touchZoomRotate.enable(w.touchZoomRotate);let qe=q.scrollZoom=new Dr(q,(()=>this._triggerRenderFrame()));this._add("scrollZoom",qe,["mousePan"]),w.interactive&&w.scrollZoom&&q.scrollZoom.enable(w.scrollZoom);let Ge=q.keyboard=new Ut(q);this._add("keyboard",Ge),w.interactive&&w.keyboard&&q.keyboard.enable(),this._add("blockableMapEvent",new po(q))}_add(w,q,Q){this._handlers.push({handlerName:w,handler:q,allowed:Q}),this._handlersById[w]=q}stop(w){if(!this._updatingCamera){for(let{handler:q}of this._handlers)q.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Ci(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,q,Q){for(let ee in w)if(ee!==Q&&(!q||q.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let q=[];for(let Q of w)this._el.contains(Q.target)&&q.push(Q);return q}mergeHandlerResult(w,q,Q,ee,fe){if(!Q)return;a.e(w,Q);let Ue={handlerName:ee,originalEvent:Q.originalEvent||fe};Q.zoomDelta!==void 0&&(q.zoom=Ue),Q.panDelta!==void 0&&(q.drag=Ue),Q.pitchDelta!==void 0&&(q.pitch=Ue),Q.bearingDelta!==void 0&&(q.rotate=Ue)}_applyChanges(){let w={},q={},Q={};for(let[ee,fe,Ue]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(q,fe),a.e(Q,Ue);this._updateMapTransform(w,q,Q),this._changes=[]}_updateMapTransform(w,q,Q){let ee=this._map,fe=ee._getTransformForUpdate(),Ue=ee.terrain;if(!(Gn(w)||Ue&&this._terrainMovement))return this._fireEvents(q,Q,!0);let{panDelta:at,zoomDelta:yt,bearingDelta:Rt,pitchDelta:Qt,around:rr,pinchAround:Mr}=w;Mr!==void 0&&(rr=Mr),ee._stop(!0),rr=rr||ee.transform.centerPoint;let Ur=fe.pointLocation(at?rr.sub(at):rr);Rt&&(fe.bearing+=Rt),Qt&&(fe.pitch+=Qt),yt&&(fe.zoom+=yt),Ue?this._terrainMovement||!q.drag&&!q.zoom?q.drag&&this._terrainMovement?fe.center=fe.pointLocation(fe.centerPoint.sub(at)):fe.setLocationAtPoint(Ur,rr):(this._terrainMovement=!0,this._map._elevationFreeze=!0,fe.setLocationAtPoint(Ur,rr)):fe.setLocationAtPoint(Ur,rr),ee._applyUpdatedTransform(fe),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(q,Q,!0)}_fireEvents(w,q,Q){let ee=Ci(this._eventsInProgress),fe=Ci(w),Ue={};for(let rr in w){let{originalEvent:Mr}=w[rr];this._eventsInProgress[rr]||(Ue[`${rr}start`]=Mr),this._eventsInProgress[rr]=w[rr]}!ee&&fe&&this._fireEvent("movestart",fe.originalEvent);for(let rr in Ue)this._fireEvent(rr,Ue[rr]);fe&&this._fireEvent("move",fe.originalEvent);for(let rr in w){let{originalEvent:Mr}=w[rr];this._fireEvent(rr,Mr)}let at={},yt;for(let rr in this._eventsInProgress){let{handlerName:Mr,originalEvent:Ur}=this._eventsInProgress[rr];this._handlersById[Mr].isActive()||(delete this._eventsInProgress[rr],yt=q[Mr]||Ur,at[`${rr}end`]=yt)}for(let rr in at)this._fireEvent(rr,at[rr]);let Rt=Ci(this._eventsInProgress),Qt=(ee||fe)&&!Rt;if(Qt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let rr=this._map._getTransformForUpdate();rr.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(rr)}if(Q&&Qt){this._updatingCamera=!0;let rr=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),Mr=Ur=>Ur!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Si("renderFrame",{timeStamp:w})),this._applyChanges()}))}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class ya extends a.E{constructor(w,q){super(),this._renderFrameCallback=()=>{let Q=Math.min((l.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=q.bearingSnap,this.on("moveend",(()=>{delete this._requestedCameraState}))}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,q){return this.jumpTo({center:w},q)}panBy(w,q,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},q),Q)}panTo(w,q,Q){return this.easeTo(a.e({center:w},q),Q)}getZoom(){return this.transform.zoom}setZoom(w,q){return this.jumpTo({zoom:w},q),this}zoomTo(w,q,Q){return this.easeTo(a.e({zoom:w},q),Q)}zoomIn(w,q){return this.zoomTo(this.getZoom()+1,w,q),this}zoomOut(w,q){return this.zoomTo(this.getZoom()-1,w,q),this}getBearing(){return this.transform.bearing}setBearing(w,q){return this.jumpTo({bearing:w},q),this}getPadding(){return this.transform.padding}setPadding(w,q){return this.jumpTo({padding:w},q),this}rotateTo(w,q,Q){return this.easeTo(a.e({bearing:w},q),Q)}resetNorth(w,q){return this.rotateTo(0,a.e({duration:1e3},w),q),this}resetNorthPitch(w,q){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),q),this}snapToNorth(w,q){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(fe,qe,sr)),this._rotating&&(ee.bearing=a.y.number(Ue,Rt,sr)),this._pitching&&(ee.pitch=a.y.number(at,Qt,sr)),this._padding&&(ee.interpolatePadding(yt,rr,sr),Ur=ee.centerPoint.add(Mr)),this.terrain&&!w.freezeElevation&&this._updateElevation(sr),mt)ee.setLocationAtPoint(mt,Gt);else{let wr=ee.zoomScale(ee.zoom-fe),Ir=qe>fe?Math.min(2,ot):Math.max(.5,ot),ri=Math.pow(Ir,1-sr),si=ee.unproject(Ge.add(ft.mult(sr*ri)).mult(wr));ee.setLocationAtPoint(ee.renderWorldCopies?si.wrap():si,Ur)}this._applyUpdatedTransform(ee),this._fireMoveEvents(q)}),(sr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q,sr)}),w),this}_prepareEase(w,q,Q={}){this._moving=!0,q||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let q=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&q!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(q-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=q}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let q=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(q.lngLat,w.zoom);if(q.altitudethis._elevateCameraIfInsideTerrain(ee))),this.transformCameraUpdate&&q.push((ee=>this.transformCameraUpdate(ee))),!q.length)return;let Q=w.clone();for(let ee of q){let fe=Q.clone(),{center:Ue,zoom:at,pitch:yt,bearing:Rt,elevation:Qt}=ee(fe);Ue&&(fe.center=Ue),at!==void 0&&(fe.zoom=at),yt!==void 0&&(fe.pitch=yt),Rt!==void 0&&(fe.bearing=Rt),Qt!==void 0&&(fe.elevation=Qt),Q.apply(fe)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,q){if(this._easeId&&q&&this._easeId===q)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,fe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),fe&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,q){var Q;if(!w.essential&&l.prefersReducedMotion){let Ua=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ua,q)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),fe=ee.zoom,Ue=ee.bearing,at=ee.pitch,yt=ee.padding,Rt="bearing"in w?this._normalizeBearing(w.bearing,Ue):Ue,Qt="pitch"in w?+w.pitch:at,rr="padding"in w?w.padding:ee.padding,Mr=a.P.convert(w.offset),Ur=ee.centerPoint.add(Mr),he=ee.pointLocation(Ur),{center:Ae,zoom:qe}=ee.getConstrained(a.N.convert(w.center||he),(Q=w.zoom)!==null&&Q!==void 0?Q:fe);this._normalizeCenter(Ae,ee);let Ge=ee.zoomScale(qe-fe),ft=ee.project(he),ot=ee.project(Ae).sub(ft),mt=w.curve,Gt=Math.max(ee.width,ee.height),er=Gt/Ge,sr=ot.mag();if("minZoom"in w){let Ua=a.ac(Math.min(w.minZoom,fe,qe),ee.minZoom,ee.maxZoom),Fo=Gt/ee.zoomScale(Ua-fe);mt=Math.sqrt(Fo/sr*2)}let wr=mt*mt;function Ir(Ua){let Fo=(er*er-Gt*Gt+(Ua?-1:1)*wr*wr*sr*sr)/(2*(Ua?er:Gt)*wr*sr);return Math.log(Math.sqrt(Fo*Fo+1)-Fo)}function ri(Ua){return(Math.exp(Ua)-Math.exp(-Ua))/2}function si(Ua){return(Math.exp(Ua)+Math.exp(-Ua))/2}let Mi=Ir(!1),cn=function(Ua){return si(Mi)/si(Mi+mt*Ua)},Zn=function(Ua){return Gt*((si(Mi)*(ri(Fo=Mi+mt*Ua)/si(Fo))-ri(Mi))/wr)/sr;var Fo},Yn=(Ir(!0)-Mi)/mt;if(Math.abs(sr)<1e-6||!isFinite(Yn)){if(Math.abs(Gt-er)<1e-6)return this.easeTo(w,q);let Ua=er0,cn=Fo=>Math.exp(Ua*mt*Fo)}return w.duration="duration"in w?+w.duration:1e3*Yn/("screenSpeed"in w?+w.screenSpeed/mt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Ue!==Rt,this._pitching=Qt!==at,this._padding=!ee.isPaddingEqual(rr),this._prepareEase(q,!1),this.terrain&&this._prepareElevation(Ae),this._ease((Ua=>{let Fo=Ua*Yn,vl=1/cn(Fo);ee.zoom=Ua===1?qe:fe+ee.scaleZoom(vl),this._rotating&&(ee.bearing=a.y.number(Ue,Rt,Ua)),this._pitching&&(ee.pitch=a.y.number(at,Qt,Ua)),this._padding&&(ee.interpolatePadding(yt,rr,Ua),Ur=ee.centerPoint.add(Mr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ua);let Us=Ua===1?Ae:ee.unproject(ft.add(ot.mult(Zn(Fo))).mult(vl));ee.setLocationAtPoint(ee.renderWorldCopies?Us.wrap():Us,Ur),this._applyUpdatedTransform(ee),this._fireMoveEvents(q)}),(()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q)}),w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,q){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,q)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,q,Q){Q.animate===!1||Q.duration===0?(w(1),q()):(this._easeStart=l.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=q,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,q){w=a.b3(w,-180,180);let Q=Math.abs(w-q);return Math.abs(w-360-q)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let ia={compact:!0,customAttribution:'
MapLibre'};class pa{constructor(w=ia){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=q=>{!q||q.sourceDataType!=="metadata"&&q.sourceDataType!=="visibility"&&q.dataType!=="style"&&q.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=f.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=f.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=f.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){f.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,q){let Q=this._map._getUIString(`AttributionControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map((ee=>typeof ee!="string"?"":ee))):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let q=this._map.style.sourceCaches;for(let ee in q){let fe=q[ee];if(fe.used||fe.usedForTerrain){let Ue=fe.getSource();Ue.attribution&&w.indexOf(Ue.attribution)<0&&w.push(Ue.attribution)}}w=w.filter((ee=>String(ee).trim())),w.sort(((ee,fe)=>ee.length-fe.length)),w=w.filter(((ee,fe)=>{for(let Ue=fe+1;Ue=0)return!1;return!0}));let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class va{constructor(w={}){this._updateCompact=()=>{let q=this._container.children;if(q.length){let Q=q[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=f.create("div","maplibregl-ctrl");let q=f.create("a","maplibregl-ctrl-logo");return q.target="_blank",q.rel="noopener nofollow",q.href="https://maplibre.org/",q.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),q.setAttribute("rel","noopener nofollow"),this._container.appendChild(q),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){f.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let q=++this._id;return this._queue.push({callback:w,id:q,cancelled:!1}),q}remove(w){let q=this._currentlyRunning,Q=q?this._queue.concat(q):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let q=this._currentlyRunning=this._queue;this._queue=[];for(let Q of q)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var is=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Cs extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,q){this.sourceCache.update(w,q),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:q}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new lt(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let q in this._tiles){let Q=this._tiles[q];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map((w=>this.getTileByID(w)))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let q={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let fe=w.clone();fe.posMatrix=new Float64Array(16),a.aP(fe.posMatrix,0,a.X,0,a.X,0,1),q[Q]=fe}else if(ee.canonical.isChildOf(w.canonical)){let fe=w.clone();fe.posMatrix=new Float64Array(16);let Ue=ee.canonical.z-w.canonical.z,at=ee.canonical.x-(ee.canonical.x>>Ue<>Ue<>Ue;a.aP(fe.posMatrix,0,Rt,0,Rt,0,1),a.J(fe.posMatrix,fe.posMatrix,[-at*Rt,-yt*Rt,0]),q[Q]=fe}else if(w.canonical.isChildOf(ee.canonical)){let fe=w.clone();fe.posMatrix=new Float64Array(16);let Ue=w.canonical.z-ee.canonical.z,at=w.canonical.x-(w.canonical.x>>Ue<>Ue<>Ue;a.aP(fe.posMatrix,0,a.X,0,a.X,0,1),a.J(fe.posMatrix,fe.posMatrix,[at*Rt,yt*Rt,0]),a.K(fe.posMatrix,fe.posMatrix,[1/2**Ue,1/2**Ue,0]),q[Q]=fe}}return q}getSourceTile(w,q){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!fe||!fe.dem);)fe=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return fe}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter((q=>q.timeAdded>=w))}}class Ks{constructor(w,q,Q){this.painter=w,this.sourceCache=new Cs(q),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,q,Q,ee=a.X){var fe;if(!(q>=0&&q=0&&Qw.canonical.z&&(w.canonical.z>=ee?fe=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Ue=w.canonical.x-(w.canonical.x>>fe<>fe<>8<<4|fe>>8,q[Ue+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(q.buffer)),ee=new m(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let q=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,fe=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Ue=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),at=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(fe,at-Ue-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,q),Q.bindFramebuffer.set(null);let yt=q[0]+(q[2]>>4<<8),Rt=q[1]+((15&q[2])<<8),Qt=this.coordsIndex[255-q[3]],rr=Qt&&this.sourceCache.getTileByID(Qt);if(!rr)return null;let Mr=this._coordsTextureSize,Ur=(1<w.id!==q)),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let q of this._recentlyUsed)if(!this._objects[q].inUse)return this._objects[q];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse))===!1}}let xl={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Bl{constructor(w,q){this.painter=w,this.terrain=q,this.pool=new dl(w.context,30,q.sourceCache.tileSize*q.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,q){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter((Q=>!w._layers[Q].isHidden(q))),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let fe of ee){let Ue=this.terrain.sourceCache.getTerrainCoords(fe);for(let at in Ue)this._coordsDescendingInv[Q][at]||(this._coordsDescendingInv[Q][at]=[]),this._coordsDescendingInv[Q][at].push(Ue[at])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],fe=ee.source;if(xl[ee.type]&&!this._coordsDescendingInvStr[fe]){this._coordsDescendingInvStr[fe]={};for(let Ue in this._coordsDescendingInv[fe])this._coordsDescendingInvStr[fe][Ue]=this._coordsDescendingInv[fe][Ue].map((at=>at.key)).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let fe=this._coordsDescendingInvStr[ee][Q.tileID.key];fe&&fe!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let q=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(xl[q]&&(this._prevType&&xl[this._prevType]||this._stacks.push([]),this._prevType=q,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(xl[this._prevType]||xl[q]&&ee){this._prevType=q;let fe=this._stacks.length-1,Ue=this._stacks[fe]||[];for(let at of this._renderableTiles){if(this.pool.isFull()&&(as(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(at),at.rtt[fe]){let Rt=this.pool.getObjectForId(at.rtt[fe].id);if(Rt.stamp===at.rtt[fe].stamp){this.pool.useObject(Rt);continue}}let yt=this.pool.getOrCreateFreeObject();this.pool.useObject(yt),this.pool.stampObject(yt),at.rtt[fe]={id:yt.id,stamp:yt.stamp},Q.context.bindFramebuffer.set(yt.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Rt=0;Rt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},ja={showCompass:!0,showZoom:!0,visualizePitch:!1};class ns{constructor(w,q,Q=!1){this.mousedown=Ue=>{this.startMouse(a.e({},Ue,{ctrlKey:!0,preventDefault:()=>Ue.preventDefault()}),f.mousePos(this.element,Ue)),f.addEventListener(window,"mousemove",this.mousemove),f.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Ue=>{this.moveMouse(Ue,f.mousePos(this.element,Ue))},this.mouseup=Ue=>{this.mouseRotate.dragEnd(Ue),this.mousePitch&&this.mousePitch.dragEnd(Ue),this.offTemp()},this.touchstart=Ue=>{Ue.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=f.touchPos(this.element,Ue.targetTouches)[0],this.startTouch(Ue,this._startPos),f.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.addEventListener(window,"touchend",this.touchend))},this.touchmove=Ue=>{Ue.targetTouches.length!==1?this.reset():(this._lastPos=f.touchPos(this.element,Ue.targetTouches)[0],this.moveTouch(Ue,this._lastPos))},this.touchend=Ue=>{Ue.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),fe=w.dragRotate._mousePitch.getClickTolerance();this.element=q,this.mouseRotate=Hs({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Ue,clickTolerance:at,bearingDegreesPerPixelMoved:yt=.8})=>{let Rt=new cl;return new Da({clickTolerance:at,move:(Qt,rr)=>({bearingDelta:(rr.x-Qt.x)*yt}),moveStateManager:Rt,enable:Ue,assignEvents:Vl})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=Ro({clickTolerance:fe,enable:!0}),this.touchPitch=(({enable:Ue,clickTolerance:at,pitchDegreesPerPixelMoved:yt=-.5})=>{let Rt=new cl;return new Da({clickTolerance:at,move:(Qt,rr)=>({pitchDelta:(rr.y-Qt.y)*yt}),moveStateManager:Rt,enable:Ue,assignEvents:Vl})})({clickTolerance:fe,enable:!0})),f.addEventListener(q,"mousedown",this.mousedown),f.addEventListener(q,"touchstart",this.touchstart,{passive:!1}),f.addEventListener(q,"touchcancel",this.reset)}startMouse(w,q){this.mouseRotate.dragStart(w,q),this.mousePitch&&this.mousePitch.dragStart(w,q),f.disableDrag()}startTouch(w,q){this.touchRotate.dragStart(w,q),this.touchPitch&&this.touchPitch.dragStart(w,q),f.disableDrag()}moveMouse(w,q){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:fe}=this.mousePitch.dragMove(w,q)||{};fe&&Q.setPitch(Q.getPitch()+fe)}}moveTouch(w,q){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:fe}=this.touchPitch.dragMove(w,q)||{};fe&&Q.setPitch(Q.getPitch()+fe)}}off(){let w=this.element;f.removeEventListener(w,"mousedown",this.mousedown),f.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend),f.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){f.enableDrag(),f.removeEventListener(window,"mousemove",this.mousemove),f.removeEventListener(window,"mouseup",this.mouseup),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend)}}let Js;function cs(ue,w,q){let Q=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let ee=new a.N(ue.lng-360,ue.lat),fe=new a.N(ue.lng+360,ue.lat),Ue=q.locationPoint(ue).distSqr(w);q.locationPoint(ee).distSqr(w)180;){let ee=q.locationPoint(ue);if(ee.x>=0&&ee.y>=0&&ee.x<=q.width&&ee.y<=q.height)break;ue.lng>q.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==Q.lng&&q.locationPoint(ue).y>q.height/2-q.getHorizon()?ue:Q}let sl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ll(ue,w,q){let Q=ue.classList;for(let ee in sl)Q.remove(`maplibregl-${q}-anchor-${ee}`);Q.add(`maplibregl-${q}-anchor-${w}`)}class nl extends a.E{constructor(w){if(super(),this._onKeyPress=q=>{let Q=q.code,ee=q.charCode||q.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=q=>{let Q=q.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=q=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((q==null?void 0:q.type)==="terrain"||(q==null?void 0:q.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?cs(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let fe="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?fe=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(fe=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Ue="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Ue="rotateX(0deg)":this._pitchAlignment==="map"&&(Ue=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||q&&q.type!=="moveend"||(this._pos=this._pos.round()),f.setTransform(this._element,`${sl[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Ue} ${fe}`),l.frameAsync(new AbortController).then((()=>{this._updateOpacity(q&&q.type==="moveend")})).catch((()=>{}))},this._onMove=q=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=q.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=q=>{this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=f.create("div");let q=f.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;q.setAttributeNS(null,"display","block"),q.setAttributeNS(null,"height",`${Q}px`),q.setAttributeNS(null,"width",`${ee}px`),q.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let fe=f.createNS("http://www.w3.org/2000/svg","g");fe.setAttributeNS(null,"stroke","none"),fe.setAttributeNS(null,"stroke-width","1"),fe.setAttributeNS(null,"fill","none"),fe.setAttributeNS(null,"fill-rule","evenodd");let Ue=f.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");let at=f.createNS("http://www.w3.org/2000/svg","g");at.setAttributeNS(null,"transform","translate(3.0, 29.0)"),at.setAttributeNS(null,"fill","#000000");let yt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let Ge of yt){let ft=f.createNS("http://www.w3.org/2000/svg","ellipse");ft.setAttributeNS(null,"opacity","0.04"),ft.setAttributeNS(null,"cx","10.5"),ft.setAttributeNS(null,"cy","5.80029008"),ft.setAttributeNS(null,"rx",Ge.rx),ft.setAttributeNS(null,"ry",Ge.ry),at.appendChild(ft)}let Rt=f.createNS("http://www.w3.org/2000/svg","g");Rt.setAttributeNS(null,"fill",this._color);let Qt=f.createNS("http://www.w3.org/2000/svg","path");Qt.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Rt.appendChild(Qt);let rr=f.createNS("http://www.w3.org/2000/svg","g");rr.setAttributeNS(null,"opacity","0.25"),rr.setAttributeNS(null,"fill","#000000");let Mr=f.createNS("http://www.w3.org/2000/svg","path");Mr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),rr.appendChild(Mr);let Ur=f.createNS("http://www.w3.org/2000/svg","g");Ur.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Ur.setAttributeNS(null,"fill","#FFFFFF");let he=f.createNS("http://www.w3.org/2000/svg","g");he.setAttributeNS(null,"transform","translate(8.0, 8.0)");let Ae=f.createNS("http://www.w3.org/2000/svg","circle");Ae.setAttributeNS(null,"fill","#000000"),Ae.setAttributeNS(null,"opacity","0.25"),Ae.setAttributeNS(null,"cx","5.5"),Ae.setAttributeNS(null,"cy","5.5"),Ae.setAttributeNS(null,"r","5.4999962");let qe=f.createNS("http://www.w3.org/2000/svg","circle");qe.setAttributeNS(null,"fill","#FFFFFF"),qe.setAttributeNS(null,"cx","5.5"),qe.setAttributeNS(null,"cy","5.5"),qe.setAttributeNS(null,"r","5.4999962"),he.appendChild(Ae),he.appendChild(qe),Ue.appendChild(at),Ue.appendChild(Rt),Ue.appendChild(rr),Ue.appendChild(Ur),Ue.appendChild(he),q.appendChild(Ue),q.setAttributeNS(null,"height",Q*this._scale+"px"),q.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(q),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",(q=>{q.preventDefault()})),this._element.addEventListener("mousedown",(q=>{q.preventDefault()})),ll(this._element,this._anchor,"marker"),w&&w.className)for(let q of w.className.split(" "))this._element.classList.add(q);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),f.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var q,Q;if(!(!((q=this._map)===null||q===void 0)&&q.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout((()=>{this._opacityTimeout=null}),100)}let ee=this._map,fe=ee.terrain.depthAtPoint(this._pos),Ue=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Ue)-fe<.006)return void(this._element.style.opacity=this._opacity);let at=-this._offset.y/ee.transform._pixelPerMeter,yt=Math.sin(ee.getPitch()*Math.PI/180)*at,Rt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Qt=ee.transform.lngLatToCameraDepth(this._lngLat,Ue+yt)-Rt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Qt&&this._popup.remove(),this._element.style.opacity=Qt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,q){return w===void 0&&q===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),q!==void 0&&(this._opacityWhenCovered=q),this._map&&this._updateOpacity(!0),this}}let zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ml=0,Rl=!1,Al={maxWidth:100,unit:"metric"};function Ll(ue,w,q){let Q=q&&q.maxWidth||100,ee=ue._container.clientHeight/2,fe=ue.unproject([0,ee]),Ue=ue.unproject([Q,ee]),at=fe.distanceTo(Ue);if(q&&q.unit==="imperial"){let yt=3.2808*at;yt>5280?ms(w,Q,yt/5280,ue._getUIString("ScaleControl.Miles")):ms(w,Q,yt,ue._getUIString("ScaleControl.Feet"))}else q&&q.unit==="nautical"?ms(w,Q,at/1852,ue._getUIString("ScaleControl.NauticalMiles")):at>=1e3?ms(w,Q,at/1e3,ue._getUIString("ScaleControl.Kilometers")):ms(w,Q,at,ue._getUIString("ScaleControl.Meters"))}function ms(ue,w,q,Q){let ee=(function(fe){let Ue=Math.pow(10,`${Math.floor(fe)}`.length-1),at=fe/Ue;return at=at>=10?10:at>=5?5:at>=3?3:at>=2?2:at>=1?1:(function(yt){let Rt=Math.pow(10,Math.ceil(-Math.log(yt)/Math.LN10));return Math.round(yt*Rt)/Rt})(at),Ue*at})(q);ue.style.width=w*(ee/q)+"px",ue.innerHTML=`${ee} ${Q}`}let Bs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Xl=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Gl(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return Gl(new a.P(0,0))}let Nl=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=pa,i.BoxZoomHandler=ss,i.CanvasSource=kt,i.CooperativeGesturesHandler=hi,i.DoubleClickZoomHandler=yi,i.DragPanHandler=Ki,i.DragRotateHandler=Fn,i.EdgeInsets=Vo,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let q=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=q==null?void 0:q.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)q=q.shadowRoot.fullscreenElement;q===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){f.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=f.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);f.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=it,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let q=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),fe=a.e({bearing:ee},this.options.fitBoundsOptions),Ue=ce.fromLngLat(q,Q);this._map.fitBounds(Ue,fe,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let q=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(q).addTo(this._map),this._userLocationDotMarker.setLngLat(q).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Rl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",(w=>w.preventDefault())),this._geolocateButton=f.create("button","maplibregl-ctrl-geolocate",this._container),f.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}else{let q=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=f.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new nl({element:this._dotElement}),this._circleElement=f.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new nl({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",(()=>this.trigger())),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(q=>{q.geolocateSource||this._watchState!=="ACTIVE_LOCK"||q.originalEvent&&q.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))}))}},this.options=a.e({},zl,ue)}onAdd(ue){return this._map=ue,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),(function(){return a._(this,arguments,void 0,(function*(w=!1){if(Js!==void 0&&!w)return Js;if(window.navigator.permissions===void 0)return Js=!!window.navigator.geolocation,Js;try{Js=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(q){Js=!!window.navigator.geolocation}return Js}))})().then((w=>this._finishSetupUI(w))),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),f.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ml=0,Rl=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),q=ue.coords;return w&&(q.longitudew.getEast()||q.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),q=ue.getNorthEast(),Q=w.distanceTo(q),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ml--,Rl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ml++,Ml>1?(ue={maximumAge:6e5,timeout:0},Rl=!0):(ue=this.options.positionOptions,Rl=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=ks,i.ImageSource=zt,i.KeyboardHandler=Ut,i.LngLatBounds=ce,i.LogoControl=va,i.Map=class extends ya{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Zl),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Lo(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=q=>{q.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:q}))},this._contextRestored=q=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:q}))},this._onMapScroll=q=>{if(q.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},bl),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=v.addThrottleControl((()=>this.isMoving())),this._requestManager=new C(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",(()=>this._update(!1))).on("moveend",(()=>this._update(!1))).on("zoom",(()=>this._update(!0))).on("terrain",(()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)})).once("idle",(()=>{this._idleTriggered=!0})),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let q=!1,Q=xs((ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())}),50);this._resizeObserver=new ResizeObserver((ee=>{q?Q(ee):q=!0})),this._resizeObserver.observe(this._container)}this.handlers=new ta(this,w),this._hash=w.hash&&new ks(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new pa(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new va,w.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)})),this.on("data",(q=>{this._update(q.dataType==="style"),this.fire(new a.k(`${q.dataType}data`,q))})),this.on("dataloading",(q=>{this.fire(new a.k(`${q.dataType}dataloading`,q))})),this.on("dataabort",(q=>{this.fire(new a.k("sourcedataabort",q))}))}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let q=ue.onAdd(this);this._controls.push(ue);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(q,Q.firstChild):Q.appendChild(q),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,q,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(q,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,q,Q)}resize(ue){var w;let q=this._containerDimensions(),Q=q[0],ee=q[1],fe=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,fe),this.painter.resize(Q,ee,fe),this.painter.overLimit()){let at=this.painter.context.gl;this._maxCanvasSize=[at.drawingBufferWidth,at.drawingBufferHeight];let yt=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,yt),this.painter.resize(Q,ee,yt)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Ue=!this._moving;return Ue&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),Ue&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:q,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),fe=ue*ee,Ue=w*ee;return Math.min(fe>q?q/fe:1,Ue>Q?Q/Ue:1)*ee}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(ce.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,q){if(ue==="mouseenter"||ue==="mouseover"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:fe=>{let Ue=w.filter((yt=>this.getLayer(yt))),at=Ue.length!==0?this.queryRenderedFeatures(fe.point,{layers:Ue}):[];at.length?Q||(Q=!0,q.call(this,new Aa(ue,this,fe.originalEvent,{features:at}))):Q=!1},mouseout:()=>{Q=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:Ue=>{let at=w.filter((yt=>this.getLayer(yt)));(at.length!==0?this.queryRenderedFeatures(Ue.point,{layers:at}):[]).length?Q=!0:Q&&(Q=!1,q.call(this,new Aa(ue,this,Ue.originalEvent)))},mouseout:Ue=>{Q&&(Q=!1,q.call(this,new Aa(ue,this,Ue.originalEvent)))}}}}{let Q=ee=>{let fe=w.filter((at=>this.getLayer(at))),Ue=fe.length!==0?this.queryRenderedFeatures(ee.point,{layers:fe}):[];Ue.length&&(ee.features=Ue,q.call(this,ee),delete ee.features)};return{layers:w,listener:q,delegates:{[ue]:Q}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,q){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let Q=this._delegatedListeners[ue];for(let ee=0;eew.includes(Ue)))){for(let Ue in fe.delegates)this.off(Ue,fe.delegates[Ue]);return void Q.splice(ee,1)}}}on(ue,w,q){if(q===void 0)return super.on(ue,w);let Q=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,q);this._saveDelegatedListener(ue,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(ue,w,q){if(q===void 0)return super.once(ue,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(ue,Q,q);for(let fe in ee.delegates){let Ue=ee.delegates[fe];ee.delegates[fe]=(...at)=>{this._removeDelegatedListener(ue,Q,q),Ue(...at)}}this._saveDelegatedListener(ue,ee);for(let fe in ee.delegates)this.once(fe,ee.delegates[fe]);return this}off(ue,w,q){return q===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,q),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let q,Q=ue instanceof a.P||Array.isArray(ue),ee=Q?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:ue)||{},ee instanceof a.P||typeof ee[0]=="number")q=[a.P.convert(ee)];else{let fe=a.P.convert(ee[0]),Ue=a.P.convert(ee[1]);q=[fe,new a.P(Ue.x,fe.y),Ue,new a.P(fe.x,Ue.y),fe]}return this.style.queryRenderedFeatures(q,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",(()=>this._updateStyle(ue,w)));let q=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new xn(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,q):this.style.loadJSON(ue,w,q),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new xn(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let q=this._requestManager.transformRequest(ue,"Style");a.h(q,new AbortController).then((Q=>{this._updateDiff(Q.data,w)})).catch((Q=>{Q&&this.fire(new a.j(Q))}))}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(q){a.w(`Unable to perform style diff: ${q.message||q.error||q}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let q in this.style._layers){let Q=this.style._layers[q];Q.type==="hillshade"&&Q.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Ks(this.painter,w,ue),this.painter.renderToTexture=new Bl(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=q=>{q.dataType==="style"?this.terrain.sourceCache.freeRtt():q.dataType==="source"&&q.tile&&(q.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(q.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let q=ue[w]._tiles;for(let Q in q){let ee=q[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,q={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:fe,stretchY:Ue,content:at,textFitWidth:yt,textFitHeight:Rt}=q;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:Qt,height:rr,data:Mr}=w,Ur=w;return this.style.addImage(ue,{data:new a.R({width:Qt,height:rr},new Uint8Array(Mr)),pixelRatio:Q,stretchX:fe,stretchY:Ue,content:at,textFitWidth:yt,textFitHeight:Rt,sdf:ee,version:0,userImage:Ur}),Ur.onAdd&&Ur.onAdd(this,ue),this}}{let{width:Qt,height:rr,data:Mr}=l.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Qt,height:rr},Mr),pixelRatio:Q,stretchX:fe,stretchY:Ue,content:at,textFitWidth:yt,textFitHeight:Rt,sdf:ee,version:0})}}updateImage(ue,w){let q=this.style.getImage(ue);if(!q)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?l.getImageData(w):w,{width:ee,height:fe,data:Ue}=Q;if(ee===void 0||fe===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==q.data.width||fe!==q.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let at=!(w instanceof HTMLImageElement||a.b(w));return q.data.replace(Ue,at),this.style.updateImage(ue,q),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return v.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,q){return this.style.setLayerZoomRange(ue,w,q),this._update(!0)}setFilter(ue,w,q={}){return this.style.setFilter(ue,w,q),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,q,Q={}){return this.style.setPaintProperty(ue,w,q,Q),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,q,Q={}){return this.style.setLayoutProperty(ue,w,q,Q),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,q={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,q,(Q=>{Q||this._update(!0)})),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,(q=>{q||this._update(!0)})),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=f.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=f.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let q=this._containerDimensions(),Q=this._getClampedPixelRatio(q[0],q[1]);this._resizeCanvas(q[0],q[1],Q);let ee=this._controlContainer=f.create("div","maplibregl-control-container",ue),fe=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((Ue=>{fe[Ue]=f.create("div",`maplibregl-ctrl-${Ue} `,ee)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,q){this._canvas.width=Math.floor(q*ue),this._canvas.height=Math.floor(q*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",(Q=>{w={requestedAttributes:ue},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)}),{once:!0});let q=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!q){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Qs(q,this.transform),c.testSupport(q)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let q=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,fe=l.now();this.style.zoomHistory.update(ee,fe);let Ue=new a.z(ee,{now:fe,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),at=Ue.crossFadingFactor();at===1&&at===this._crossFadingFactor||(q=!0,this._crossFadingFactor=at),this.style.update(Ue)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||q)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let q of this._controls)q.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),v.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),f.remove(this._canvasContainer),f.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then((ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)})).catch((()=>{})))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return eu}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=Aa,i.MapTouchEvent=os,i.MapWheelEvent=_l,i.Marker=nl,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),q=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=q,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",q.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,q)=>{let Q=this._map._getUIString(`NavigationControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},ja,ue),this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",(w=>w.preventDefault())),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",(w=>this._map.zoomIn({},{originalEvent:w}))),f.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",(w=>this._map.zoomOut({},{originalEvent:w}))),f.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",(w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})})),this._compassIcon=f.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ns(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){f.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let q=f.create("button",ue,this._container);return q.type="button",q.addEventListener("click",w),q}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&f.remove(this._content),this._container&&(f.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var q;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=f.create("div","maplibregl-popup",this._map.getContainer()),this._tip=f.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let at of this.options.className.split(" "))this._container.classList.add(at);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?cs(this._lngLat,this._flatPos,this._map.transform):(q=this._lngLat)===null||q===void 0?void 0:q.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,fe=Gl(this.options.offset);if(!ee){let at=this._container.offsetWidth,yt=this._container.offsetHeight,Rt;Rt=Q.y+fe.bottom.ythis._map.transform.height-yt?["bottom"]:[],Q.xthis._map.transform.width-at/2&&Rt.push("right"),ee=Rt.length===0?"bottom":Rt.join("-")}let Ue=Q.add(fe[ee]);this.options.subpixelPositioning||(Ue=Ue.round()),f.setTransform(this._container,`${sl[ee]} translate(${Ue.x}px,${Ue.y}px)`),ll(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(Bs),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),q=document.createElement("body"),Q;for(q.innerHTML=ue;Q=q.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=f.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=f.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let ue=this._container.querySelector(Xl);ue&&ue.focus()}},i.RasterDEMTileSource=Ot,i.RasterTileSource=bt,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Ll(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ll(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},Al),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){f.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Dr,i.Style=xn,i.TerrainControl=class{constructor(ue){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ue}onAdd(ue){return this._map=ue,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=f.create("button","maplibregl-ctrl-terrain",this._container),f.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){f.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Os,i.TwoFingersTouchRotateHandler=Rs,i.TwoFingersTouchZoomHandler=Ms,i.TwoFingersTouchZoomRotateHandler=Li,i.VectorTileSource=rt,i.VideoSource=Mt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,(function*(){if(Re(ue))throw new Error(`A source type called "${ue}" already exists.`);((q,Q)=>{$e[q]=Q})(ue,w)})),i.clearPrewarmedResources=function(){let ue=de;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(me),de=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return vt().getRTLTextPluginStatus()},i.getVersion=function(){return Nl},i.getWorkerCount=function(){return Ce.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return be().broadcast("IS",ue)},i.prewarm=function(){Se().acquire(me)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return vt().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Ce.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}}));var n=e;return n}))});var cje=we((r3r,fje)=>{"use strict";var gw=ei(),bYt=Wf().sanitizeHTML,wYt=XJ(),sje=zx();function lje(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=sje.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var sm=lje.prototype;sm.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=k9(t)};sm.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};sm.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};sm.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};sm.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};sm.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};sm.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!k9(e)){var r=AYt(e);t.addSource(this.idSource,r)}};sm.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function uje(e){var t={},r={};switch(e.type){case"circle":gw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":gw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":gw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=wYt(n.textposition,n.iconsize);gw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),gw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":gw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function AYt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=bYt(e.sourceattribution)),n}fje.exports=function(t,r,n){var i=new lje(t,r);return i.update(n),i}});var _je=we((i3r,gje)=>{"use strict";var QJ=oje(),e$=ei(),pje=eg(),hje=$l(),TYt=wu(),SYt=xp(),C9=Vc(),vje=Cm(),MYt=vje.drawMode,EYt=vje.selectMode,kYt=oh().prepSelect,CYt=oh().clearOutline,LYt=oh().clearSelectionsCache,PYt=oh().selectOnClick,_w=zx(),zYt=cje();function mje(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Kh=mje.prototype;Kh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Kh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=yje(a.style),s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new QJ.Map({container:i.div,style:o.style,center:t$(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new QJ.AttributionControl({compact:!0})),f={};l.on("styleimagemissing",function(h){var d=h.id;if(!f[d]&&d.includes("-15")){f[d]=!0;var p=new Image(15,15);p.onload=function(){l.addImage(d,p)},p.crossOrigin="Anonymous",p.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),l.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(h){l.once("load",h)})),c=c.concat(pje.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Kh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=yje(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(pje.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Kh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&PYt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&C9.click(n,u.originalEvent)}}};Kh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=e$.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),EYt(a)||MYt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){kYt(u,l,f,t.dragOptions,a)},SYt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Kh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Kh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var r$=ei(),RYt=B_(),DYt=$d(),xje=rC();bje.exports=function(t,r,n){RYt(t,r,n,{type:"map",attributes:xje,handleDefaults:FYt,partition:"y"})};function FYt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,DYt(e,t,{name:"layers",handleItemDefaults:OYt}),t._input=e}function OYt(e,t){function r(u,l){return r$.coerce(e,t,xje.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",r$.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),r$.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var P9=we(u0=>{"use strict";var L9=ei(),Aje=L9.strTranslate,BYt=L9.strScale,qYt=Rd().getSubplotCalcData,NYt=jv(),UYt=Kl(),Tje=Mu(),VYt=Wf(),GYt=_je(),Ix="map";u0.name=Ix;u0.attr="subplot";u0.idRoot=Ix;u0.idRegex=u0.attrRegex=L9.counterRegex(Ix);u0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};u0.layoutAttributes=rC();u0.supplyLayoutDefaults=wje();u0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Ix],a=0;ay/2){var b=c.split("|").join("
");d.text(b).attr("data-unformatted",b).call(VYt.convertToTspans,e),p=Tje.bBox(d.node())}d.attr("transform",Aje(-3,-p.height+8)),h.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var v=1;p.width+6>y&&(v=y/(p.width+6));var C=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",Aje(C[0],C[1])+BYt(v))}};u0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Ix],n=0;n{"use strict";Sje.exports={attributes:w9(),supplyDefaults:BWe(),colorbar:tp(),formatLabels:jJ(),calc:AF(),plot:$We(),hoverPoints:E9().hoverPoints,eventData:rje(),selectPoints:nje(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:P9(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var kje=we((s3r,Eje)=>{"use strict";Eje.exports=Mje()});var i$=we((l3r,Cje)=>{"use strict";var b1=lS(),HYt=nc(),{hovertemplateAttrs:WYt,templatefallbackAttrs:jYt}=Of(),XYt=Vf(),Rx=Su().extendFlat;Cje.exports=Rx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Rx({},b1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:b1.text,hovertext:b1.hovertext,marker:{line:{color:Rx({},b1.marker.line.color,{editType:"plot"}),width:Rx({},b1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Rx({},b1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Rx({},b1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Rx({},b1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:b1.hoverinfo,hovertemplate:WYt({},{keys:["properties"]}),hovertemplatefallback:jYt(),showlegend:Rx({},XYt.showlegend,{dflt:!1})},HYt("",{cLetter:"z",editTypeOverride:"calc"}))});var Pje=we((u3r,Lje)=>{"use strict";var oC=ei(),ZYt=nd(),YYt=i$();Lje.exports=function(t,r,n,i){function a(f,c){return oC.coerce(t,r,YYt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!oC.isArrayOrTypedArray(o)||!o.length||!oC.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||oC.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),ZYt(t,r,i,a,{prefix:"",cLetter:"z"}),oC.coerceSelectionMarkerOpacity(r,a)}});var n$=we((f3r,Rje)=>{"use strict";var KYt=ku(),w1=ei(),JYt=_c(),$Yt=Mu(),QYt=hx().makeBlank,zje=eg();function eKt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:QYt()};if(!r)return a;var o=zje.extractTraceFeature(e);if(!o)return a;var s=JYt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;w1.isArrayOrTypedArray(u.opacity)&&(f=function(C){var E=C.mo;return KYt(E)?+w1.constrain(E,0,1):0});var c;w1.isArrayOrTypedArray(l.color)&&(c=function(C){return C.mlc});var h;w1.isArrayOrTypedArray(l.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var Fje=n$().convert,tKt=n$().convertOnSelect,Dje=zx().traceLayerPrefix;function Oje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Dje+t+"-fill"],["line",Dje+t+"-line"]],this.below=null}var OS=Oje.prototype;OS.update=function(e){this._update(Fje(e)),e[0].trace._glTrace=this};OS.updateOnSelect=function(e){this._update(tKt(e))};OS._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};OS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Bje.exports=function(t,r){var n=r[0].trace,i=new Oje(t,n.uid),a=i.sourceId,o=Fje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var Uje=we((h3r,Nje)=>{"use strict";Nje.exports={attributes:i$(),supplyDefaults:Pje(),colorbar:D_(),calc:HF(),plot:qje(),hoverPoints:jF(),eventData:XF(),selectPoints:ZF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";Vje.exports=Uje()});var o$=we((p3r,Wje)=>{"use strict";var rKt=nc(),{hovertemplateAttrs:iKt,templatefallbackAttrs:nKt}=Of(),Hje=Vf(),z9=w9(),a$=Su().extendFlat;Wje.exports=a$({lon:z9.lon,lat:z9.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:z9.text,hovertext:z9.hovertext,hoverinfo:a$({},Hje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:iKt(),hovertemplatefallback:nKt(),showlegend:a$({},Hje.showlegend,{dflt:!1})},rKt("",{cLetter:"z",editTypeOverride:"calc"}))});var Xje=we((v3r,jje)=>{"use strict";var aKt=ei(),oKt=nd(),sKt=o$();jje.exports=function(t,r,n,i){function a(l,f){return aKt.coerce(t,r,sKt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),oKt(t,r,i,a,{prefix:"",cLetter:"z"})}});var Kje=we((m3r,Yje)=>{"use strict";var s$=ku(),lKt=ei().isArrayOrTypedArray,l$=rf().BADNUM,uKt=gp(),Zje=ei()._;Yje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=lKt(a)&&a.length,s=0;s{"use strict";var fKt=ku(),u$=ei(),Jje=jl(),$je=_c(),Qje=rf().BADNUM,cKt=hx().makeBlank;eXe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:cKt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=u$.isArrayOrTypedArray(u)&&u.length,c=u$.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=$je.extractOpts(r),v=b.reversescale?$je.flipScale(b.colorscale):b.colorscale,C=v[0][1],E=Jje.opacity(C)<1?C:Jje.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var rXe=tXe(),hKt=zx().traceLayerPrefix;function iXe(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",hKt+t+"-heatmap"]],this.below=null}var I9=iXe.prototype;I9.update=function(e){var t=this.subplot,r=this.layerList,n=rXe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};I9.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};nXe.exports=function(t,r){var n=r[0].trace,i=new iXe(t,n.uid),a=i.sourceId,o=rXe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var sXe=we((_3r,oXe)=>{"use strict";var dKt=wu(),pKt=E9().hoverPoints,vKt=E9().getExtraText;oXe.exports=function(t,r,n){var i=pKt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=dKt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=vKt(s,u,o[0].t.labels),[a]}}});var uXe=we((x3r,lXe)=>{"use strict";lXe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var cXe=we((b3r,fXe)=>{"use strict";fXe.exports={attributes:o$(),supplyDefaults:Xje(),colorbar:D_(),formatLabels:jJ(),calc:Kje(),plot:aXe(),hoverPoints:sXe(),eventData:uXe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";hXe.exports=cXe()});var c$=we((T3r,gXe)=>{"use strict";var mKt=gc(),yKt=Vf(),pXe=Bh(),f$=g3(),gKt=zc().attributes,{hovertemplateAttrs:vXe,templatefallbackAttrs:mXe}=Of(),_Kt=nc(),xKt=Lf().templatedArray,bKt=Xc().descriptionOnlyNumbers,yXe=Su().extendFlat,wKt=Sc().overrideAll,A3r=gXe.exports=wKt({hoverinfo:yXe({},yKt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:f$.hoverlabel,domain:gKt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:bKt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:mKt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:pXe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:f$.hoverlabel,hovertemplate:vXe({},{keys:["value","label"]}),hovertemplatefallback:mXe(),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:pXe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:f$.hoverlabel,hovertemplate:vXe({},{keys:["value","label"]}),hovertemplatefallback:mXe(),colorscales:xKt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:yXe(_Kt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var AXe=we((S3r,wXe)=>{"use strict";var BS=ei(),R9=c$(),AKt=jl(),_Xe=hd(),TKt=zc().defaults,xXe=A5(),bXe=Lf(),SKt=$d();wXe.exports=function(t,r,n,i){function a(A,L){return BS.coerce(t,r,R9,A,L)}var o=BS.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,u=bXe.newContainer(r,"node");function l(A,L){return BS.coerce(s,u,R9.node,A,L)}l("label"),l("groups"),l("x"),l("y"),l("pad"),l("thickness"),l("line.color"),l("line.width"),l("hoverinfo",t.hoverinfo),xXe(s,u,l,o),l("hovertemplate"),l("align");var f=i.colorway,c=function(A){return f[A%f.length]};l("color",u.label.map(function(A,L){return AKt.addOpacity(c(L),.8)})),l("customdata");var h=t.link||{},d=bXe.newContainer(r,"link");function p(A,L){return BS.coerce(h,d,R9.link,A,L)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),xXe(h,d,p,o),p("hovertemplate");var y=_Xe(i.paper_bgcolor).getLuminance()<.333,b=y?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",v=p("color",b);function C(A){var L=_Xe(A);if(!L.isValid())return A;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=y?L.brighten():L.darken(),L.toRgbString()}p("hovercolor",Array.isArray(v)?v.map(C):C(v)),p("customdata"),SKt(h,d,{name:"colorscales",handleItemDefaults:MKt}),TKt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;u.x.length&&u.y.length&&(E="freeform"),a("arrangement",E),BS.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function MKt(e,t){function r(n,i){return BS.coerce(e,t,R9.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var h$=we((M3r,TXe)=>{"use strict";TXe.exports=EKt;function EKt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),u=0;u0;){b=C[C.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=A}else{if(n[b]===r[b]){for(var x=[],k=[],S=0,A=v.length-1;A>=0;--A){var m=v[A];if(i[m]=!1,x.push(m),k.push(s[m]),S+=s[m].length,o[m]=f.length,m===b){v.length=A;break}}f.push(x);for(var P=new Array(S),A=0;A{"use strict";var kKt=h$(),qS=ei(),CKt=ag().wrap,sC=qS.isArrayOrTypedArray,SXe=qS.isIndex,MXe=_c();function LKt(e){var t=e.node,r=e.link,n=[],i=sC(r.color),a=sC(r.hovercolor),o=sC(r.customdata),s={},u={},l=r.colorscales.length,f;for(f=0;fp&&(p=r.source[f]),r.target[f]>p&&(p=r.target[f]);var y=p+1;e.node._count=y;var b,v=e.node.groups,C={};for(f=0;f0&&SXe(S,y)&&SXe(m,y)&&!(C.hasOwnProperty(S)&&C.hasOwnProperty(m)&&C[S]===C[m])){C.hasOwnProperty(m)&&(m=C[m]),C.hasOwnProperty(S)&&(S=C[S]),S=+S,m=+m,s[S]=s[m]=!0;var P="";r.label&&r.label[f]&&(P=r.label[f]);var M=null;P&&u.hasOwnProperty(P)&&(M=u[P]),n.push({pointNumber:f,label:P,color:i?r.color[f]:r.color,hovercolor:a?r.hovercolor[f]:r.hovercolor,customdata:o?r.customdata[f]:r.customdata,concentrationscale:M,source:S,target:m,value:+k}),x.source.push(S),x.target.push(m)}}var O=y+v.length,F=sC(t.color),U=sC(t.customdata),G=[];for(f=0;fy-1,childrenNodes:[],pointNumber:f,label:j,color:F?t.color[f]:t.color,customdata:U?t.customdata[f]:t.customdata})}var W=!1;return PKt(O,x.source,x.target)&&(W=!0),{circular:W,links:n,nodes:G,groups:v,groupLookup:C}}function PKt(e,t,r){for(var n=qS.init2dArray(e,0),i=0;i1})}EXe.exports=function(t,r){var n=LKt(r);return CKt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var LXe=we((D9,CXe)=>{(function(e,t){typeof D9=="object"&&typeof CXe!="undefined"?t(D9):(e=e||self,t(e.d3=e.d3||{}))})(D9,function(e){"use strict";function t(k){var S=+this._x.call(null,k),m=+this._y.call(null,k);return r(this.cover(S,m),S,m,k)}function r(k,S,m,P){if(isNaN(S)||isNaN(m))return k;var M,O=k._root,F={data:P},U=k._x0,G=k._y0,j=k._x1,W=k._y1,N,H,re,ae,me,Ce,Ee,de;if(!O)return k._root=F,k;for(;O.length;)if((me=S>=(N=(U+j)/2))?U=N:j=N,(Ce=m>=(H=(G+W)/2))?G=H:W=H,M=O,!(O=O[Ee=Ce<<1|me]))return M[Ee]=F,k;if(re=+k._x.call(null,O.data),ae=+k._y.call(null,O.data),S===re&&m===ae)return F.next=O,M?M[Ee]=F:k._root=F,k;do M=M?M[Ee]=new Array(4):k._root=new Array(4),(me=S>=(N=(U+j)/2))?U=N:j=N,(Ce=m>=(H=(G+W)/2))?G=H:W=H;while((Ee=Ce<<1|me)===(de=(ae>=H)<<1|re>=N));return M[de]=O,M[Ee]=F,k}function n(k){var S,m,P=k.length,M,O,F=new Array(P),U=new Array(P),G=1/0,j=1/0,W=-1/0,N=-1/0;for(m=0;mW&&(W=M),ON&&(N=O));if(G>W||j>N)return this;for(this.cover(G,j).cover(W,N),m=0;mk||k>=M||P>S||S>=O;)switch(j=(SW||(U=ae.y0)>N||(G=ae.x1)=Ee)<<1|k>=Ce)&&(ae=H[H.length-1],H[H.length-1]=H[H.length-1-me],H[H.length-1-me]=ae)}else{var de=k-+this._x.call(null,re.data),te=S-+this._y.call(null,re.data),Se=de*de+te*te;if(Se=(H=(F+G)/2))?F=H:G=H,(me=N>=(re=(U+j)/2))?U=re:j=re,S=m,!(m=m[Ce=me<<1|ae]))return this;if(!m.length)break;(S[Ce+1&3]||S[Ce+2&3]||S[Ce+3&3])&&(P=S,Ee=Ce)}for(;m.data!==k;)if(M=m,!(m=m.next))return this;return(O=m.next)&&delete m.next,M?(O?M.next=O:delete M.next,this):S?(O?S[Ce]=O:delete S[Ce],(m=S[0]||S[1]||S[2]||S[3])&&m===(S[3]||S[2]||S[1]||S[0])&&!m.length&&(P?P[Ee]=m:this._root=m),this):(this._root=O,this)}function f(k){for(var S=0,m=k.length;S{(function(e,t){t(typeof F9=="object"&&typeof PXe!="undefined"?F9:e.d3=e.d3||{})})(F9,(function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(y){return t+y in this},get:function(y){return this[t+y]},set:function(y,b){return this[t+y]=b,this},remove:function(y){var b=t+y;return b in this&&delete this[b]},clear:function(){for(var y in this)y[0]===t&&delete this[y]},keys:function(){var y=[];for(var b in this)b[0]===t&&y.push(b.slice(1));return y},values:function(){var y=[];for(var b in this)b[0]===t&&y.push(this[b]);return y},entries:function(){var y=[];for(var b in this)b[0]===t&&y.push({key:b.slice(1),value:this[b]});return y},size:function(){var y=0;for(var b in this)b[0]===t&&++y;return y},empty:function(){for(var y in this)if(y[0]===t)return!1;return!0},each:function(y){for(var b in this)b[0]===t&&y(this[b],b.slice(1),this)}};function n(y,b){var v=new r;if(y instanceof r)y.each(function(x,k){v.set(k,x)});else if(Array.isArray(y)){var C=-1,E=y.length,A;if(b==null)for(;++C=y.length)return v!=null&&x.sort(v),C!=null?C(x):x;for(var P=-1,M=x.length,O=y[k++],F,U,G=n(),j,W=S();++Py.length)return x;var S,m=b[k-1];return C!=null&&k>=y.length?S=x.entries():(S=[],x.each(function(P,M){S.push({key:M,values:L(P,k)})})),m!=null?S.sort(function(P,M){return m(P.key,M.key)}):S}return E={object:function(x){return A(x,0,a,o)},map:function(x){return A(x,0,s,u)},entries:function(x){return L(A(x,0,s,u),0)},key:function(x){return y.push(x),E},sortKeys:function(x){return b[y.length-1]=x,E},sortValues:function(x){return v=x,E},rollup:function(x){return C=x,E}}}function a(){return{}}function o(y,b,v){y[b]=v}function s(){return n()}function u(y,b,v){y.set(b,v)}function l(){}var f=n.prototype;l.prototype=c.prototype={constructor:l,has:f.has,add:function(y){return y+="",this[t+y]=y,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(y,b){var v=new l;if(y instanceof l)y.each(function(A){v.add(A)});else if(y){var C=-1,E=y.length;if(b==null)for(;++C{(function(e,t){typeof B9=="object"&&typeof zXe!="undefined"?t(B9):(e=e||self,t(e.d3=e.d3||{}))})(B9,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,u=arguments.length,l={},f;s=0&&(f=l.slice(c+1),l=l.slice(0,c)),l&&!u.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:f}})}n.prototype=r.prototype={constructor:n,on:function(s,u){var l=this._,f=i(s+"",l),c,h=-1,d=f.length;if(arguments.length<2){for(;++h0)for(var l=new Array(c),f=0,c,h;f{(function(e,t){typeof q9=="object"&&typeof RXe!="undefined"?t(q9):(e=e||self,t(e.d3=e.d3||{}))})(q9,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,u=0,l=0,f=typeof performance=="object"&&performance.now?performance:Date,c=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(k){setTimeout(k,17)};function h(){return u||(c(d),u=f.now()+l)}function d(){u=0}function p(){this._call=this._time=this._next=null}p.prototype=y.prototype={constructor:p,restart:function(k,S,m){if(typeof k!="function")throw new TypeError("callback is not a function");m=(m==null?h():+m)+(S==null?0:+S),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=k,this._time=m,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function y(k,S,m){var P=new p;return P.restart(k,S,m),P}function b(){h(),++t;for(var k=a,S;k;)(S=u-k._time)>=0&&k._call.call(null,S),k=k._next;--t}function v(){u=(s=f.now())+l,t=r=0;try{b()}finally{t=0,E(),u=0}}function C(){var k=f.now(),S=k-s;S>i&&(l-=S,s=k)}function E(){for(var k,S=a,m,P=1/0;S;)S._call?(P>S._time&&(P=S._time),k=S,S=S._next):(m=S._next,S._next=null,S=k?k._next=m:a=m);o=k,A(P)}function A(k){if(!t){r&&(r=clearTimeout(r));var S=k-u;S>24?(k<1/0&&(r=setTimeout(v,k-f.now()-l)),n&&(n=clearInterval(n))):(n||(s=f.now(),n=setInterval(C,i)),t=1,c(v))}}function L(k,S,m){var P=new p;return S=S==null?0:+S,P.restart(function(M){P.stop(),k(M+S)},S,m),P}function x(k,S,m){var P=new p,M=S;return S==null?(P.restart(k,S,m),P):(S=+S,m=m==null?h():+m,P.restart(function O(F){F+=M,P.restart(O,M+=S,m),k(F)},S,m),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=y,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var OXe=we((N9,FXe)=>{(function(e,t){typeof N9=="object"&&typeof FXe!="undefined"?t(N9,LXe(),O9(),IXe(),DXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(N9,(function(e,t,r,n,i){"use strict";function a(k,S){var m;k==null&&(k=0),S==null&&(S=0);function P(){var M,O=m.length,F,U=0,G=0;for(M=0;MN.index){var Be=H-He.x-He.vx,ce=re-He.y-He.vy,je=Be*Be+ce*ce;jeH+ge||Tere+ge||beG.r&&(G.r=G[j].r)}function U(){if(S){var G,j=S.length,W;for(m=new Array(j),G=0;G1?(me==null?U.remove(ae):U.set(ae,re(me)),S):U.get(ae)},find:function(ae,me,Ce){var Ee=0,de=k.length,te,Se,Te,be,He;for(Ce==null?Ce=1/0:Ce*=Ce,Ee=0;Ee1?(j.on(ae,me),S):j.on(ae)}}}function E(){var k,S,m,P=o(-30),M,O=1,F=1/0,U=.81;function G(H){var re,ae=k.length,me=t.quadtree(k,p,y).visitAfter(W);for(m=H,re=0;re=F)return;(H.data!==S||H.next)&&(Ce===0&&(Ce=s(),te+=Ce*Ce),Ee===0&&(Ee=s(),te+=Ee*Ee),te{(function(e,t){typeof U9=="object"&&typeof BXe!="undefined"?t(U9):(e=e||self,t(e.d3=e.d3||{}))})(U9,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,u){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,u){this._+="L"+(this._x1=+s)+","+(this._y1=+u)},quadraticCurveTo:function(s,u,l,f){this._+="Q"+ +s+","+ +u+","+(this._x1=+l)+","+(this._y1=+f)},bezierCurveTo:function(s,u,l,f,c,h){this._+="C"+ +s+","+ +u+","+ +l+","+ +f+","+(this._x1=+c)+","+(this._y1=+h)},arcTo:function(s,u,l,f,c){s=+s,u=+u,l=+l,f=+f,c=+c;var h=this._x1,d=this._y1,p=l-s,y=f-u,b=h-s,v=d-u,C=b*b+v*v;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=u);else if(C>n)if(!(Math.abs(v*p-y*b)>n)||!c)this._+="L"+(this._x1=s)+","+(this._y1=u);else{var E=l-h,A=f-d,L=p*p+y*y,x=E*E+A*A,k=Math.sqrt(L),S=Math.sqrt(C),m=c*Math.tan((t-Math.acos((L+C-x)/(2*k*S)))/2),P=m/S,M=m/k;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(u+P*v)),this._+="A"+c+","+c+",0,0,"+ +(v*E>b*A)+","+(this._x1=s+M*p)+","+(this._y1=u+M*y)}},arc:function(s,u,l,f,c,h){s=+s,u=+u,l=+l,h=!!h;var d=l*Math.cos(f),p=l*Math.sin(f),y=s+d,b=u+p,v=1^h,C=h?f-c:c-f;if(l<0)throw new Error("negative radius: "+l);this._x1===null?this._+="M"+y+","+b:(Math.abs(this._x1-y)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+y+","+b),l&&(C<0&&(C=C%r+r),C>i?this._+="A"+l+","+l+",0,1,"+v+","+(s-d)+","+(u-p)+"A"+l+","+l+",0,1,"+v+","+(this._x1=y)+","+(this._y1=b):C>n&&(this._+="A"+l+","+l+",0,"+ +(C>=t)+","+v+","+(this._x1=s+l*Math.cos(c))+","+(this._y1=u+l*Math.sin(c))))},rect:function(s,u,l,f){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)+"h"+ +l+"v"+ +f+"h"+-l+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var d$=we((V9,NXe)=>{(function(e,t){typeof V9=="object"&&typeof NXe!="undefined"?t(V9,qXe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(V9,function(e,t){"use strict";function r(dt){return function(){return dt}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,u=Math.sin,l=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(dt){return dt>1?0:dt<-1?c:Math.acos(dt)}function y(dt){return dt>=1?h:dt<=-1?-h:Math.asin(dt)}function b(dt){return dt.innerRadius}function v(dt){return dt.outerRadius}function C(dt){return dt.startAngle}function E(dt){return dt.endAngle}function A(dt){return dt&&dt.padAngle}function L(dt,$t,fr,gr,Zr,wi,$i,ni){var Xi=fr-dt,aa=gr-$t,Mn=$i-Zr,Un=ni-wi,Ga=Un*Xi-Mn*aa;if(!(Ga*Gawa*wa+ws*ws&&(uo=$a,ls=fo),{cx:uo,cy:ls,x01:-Mn,y01:-Un,x11:uo*(Zr/kn-1),y11:ls*(Zr/kn-1)}}function k(){var dt=b,$t=v,fr=r(0),gr=null,Zr=C,wi=E,$i=A,ni=null;function Xi(){var aa,Mn,Un=+dt.apply(this,arguments),Ga=+$t.apply(this,arguments),ma=Zr.apply(this,arguments)-h,oa=wi.apply(this,arguments)-h,ka=n(oa-ma),so=oa>ma;if(ni||(ni=aa=t.path()),Gaf))ni.moveTo(0,0);else if(ka>d-f)ni.moveTo(Ga*a(ma),Ga*u(ma)),ni.arc(0,0,Ga,ma,oa,!so),Un>f&&(ni.moveTo(Un*a(oa),Un*u(oa)),ni.arc(0,0,Un,oa,ma,so));else{var Kr=ma,Ia=oa,Yo=ma,fa=oa,kn=ka,Ta=ka,ys=$i.apply(this,arguments)/2,uo=ys>f&&(gr?+gr.apply(this,arguments):l(Un*Un+Ga*Ga)),ls=s(n(Ga-Un)/2,+fr.apply(this,arguments)),$a=ls,fo=ls,mn,ra;if(uo>f){var wa=y(uo/Un*u(ys)),ws=y(uo/Ga*u(ys));(kn-=wa*2)>f?(wa*=so?1:-1,Yo+=wa,fa-=wa):(kn=0,Yo=fa=(ma+oa)/2),(Ta-=ws*2)>f?(ws*=so?1:-1,Kr+=ws,Ia-=ws):(Ta=0,Kr=Ia=(ma+oa)/2)}var Co=Ga*a(Kr),Po=Ga*u(Kr),Wi=Un*a(fa),gn=Un*u(fa);if(ls>f){var Ps=Ga*a(Ia),Ha=Ga*u(Ia),Sn=Un*a(Yo),ao=Un*u(Yo),Oa;if(kaf?fo>f?(mn=x(Sn,ao,Co,Po,Ga,fo,so),ra=x(Ps,Ha,Wi,gn,Ga,fo,so),ni.moveTo(mn.cx+mn.x01,mn.cy+mn.y01),fof)||!(kn>f)?ni.lineTo(Wi,gn):$a>f?(mn=x(Wi,gn,Ps,Ha,Un,-$a,so),ra=x(Co,Po,Sn,ao,Un,-$a,so),ni.lineTo(mn.cx+mn.x01,mn.cy+mn.y01),$a=Ga;--ma)ni.point(Ia[ma],Yo[ma]);ni.lineEnd(),ni.areaEnd()}so&&(Ia[Un]=+dt(ka,Un,Mn),Yo[Un]=+fr(ka,Un,Mn),ni.point($t?+$t(ka,Un,Mn):Ia[Un],gr?+gr(ka,Un,Mn):Yo[Un]))}if(Kr)return ni=null,Kr+""||null}function aa(){return O().defined(Zr).curve($i).context(wi)}return Xi.x=function(Mn){return arguments.length?(dt=typeof Mn=="function"?Mn:r(+Mn),$t=null,Xi):dt},Xi.x0=function(Mn){return arguments.length?(dt=typeof Mn=="function"?Mn:r(+Mn),Xi):dt},Xi.x1=function(Mn){return arguments.length?($t=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Xi):$t},Xi.y=function(Mn){return arguments.length?(fr=typeof Mn=="function"?Mn:r(+Mn),gr=null,Xi):fr},Xi.y0=function(Mn){return arguments.length?(fr=typeof Mn=="function"?Mn:r(+Mn),Xi):fr},Xi.y1=function(Mn){return arguments.length?(gr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Xi):gr},Xi.lineX0=Xi.lineY0=function(){return aa().x(dt).y(fr)},Xi.lineY1=function(){return aa().x(dt).y(gr)},Xi.lineX1=function(){return aa().x($t).y(fr)},Xi.defined=function(Mn){return arguments.length?(Zr=typeof Mn=="function"?Mn:r(!!Mn),Xi):Zr},Xi.curve=function(Mn){return arguments.length?($i=Mn,wi!=null&&(ni=$i(wi)),Xi):$i},Xi.context=function(Mn){return arguments.length?(Mn==null?wi=ni=null:ni=$i(wi=Mn),Xi):wi},Xi}function U(dt,$t){return $tdt?1:$t>=dt?0:NaN}function G(dt){return dt}function j(){var dt=G,$t=U,fr=null,gr=r(0),Zr=r(d),wi=r(0);function $i(ni){var Xi,aa=ni.length,Mn,Un,Ga=0,ma=new Array(aa),oa=new Array(aa),ka=+gr.apply(this,arguments),so=Math.min(d,Math.max(-d,Zr.apply(this,arguments)-ka)),Kr,Ia=Math.min(Math.abs(so)/aa,wi.apply(this,arguments)),Yo=Ia*(so<0?-1:1),fa;for(Xi=0;Xi0&&(Ga+=fa);for($t!=null?ma.sort(function(kn,Ta){return $t(oa[kn],oa[Ta])}):fr!=null&&ma.sort(function(kn,Ta){return fr(ni[kn],ni[Ta])}),Xi=0,Un=Ga?(so-aa*Yo)/Ga:0;Xi0?fa*Un:0)+Yo,oa[Mn]={data:ni[Mn],index:Xi,value:fa,startAngle:ka,endAngle:Kr,padAngle:Ia};return oa}return $i.value=function(ni){return arguments.length?(dt=typeof ni=="function"?ni:r(+ni),$i):dt},$i.sortValues=function(ni){return arguments.length?($t=ni,fr=null,$i):$t},$i.sort=function(ni){return arguments.length?(fr=ni,$t=null,$i):fr},$i.startAngle=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),$i):gr},$i.endAngle=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),$i):Zr},$i.padAngle=function(ni){return arguments.length?(wi=typeof ni=="function"?ni:r(+ni),$i):wi},$i}var W=H(m);function N(dt){this._curve=dt}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(dt,$t){this._curve.point($t*Math.sin(dt),$t*-Math.cos(dt))}};function H(dt){function $t(fr){return new N(dt(fr))}return $t._curve=dt,$t}function re(dt){var $t=dt.curve;return dt.angle=dt.x,delete dt.x,dt.radius=dt.y,delete dt.y,dt.curve=function(fr){return arguments.length?$t(H(fr)):$t()._curve},dt}function ae(){return re(O().curve(W))}function me(){var dt=F().curve(W),$t=dt.curve,fr=dt.lineX0,gr=dt.lineX1,Zr=dt.lineY0,wi=dt.lineY1;return dt.angle=dt.x,delete dt.x,dt.startAngle=dt.x0,delete dt.x0,dt.endAngle=dt.x1,delete dt.x1,dt.radius=dt.y,delete dt.y,dt.innerRadius=dt.y0,delete dt.y0,dt.outerRadius=dt.y1,delete dt.y1,dt.lineStartAngle=function(){return re(fr())},delete dt.lineX0,dt.lineEndAngle=function(){return re(gr())},delete dt.lineX1,dt.lineInnerRadius=function(){return re(Zr())},delete dt.lineY0,dt.lineOuterRadius=function(){return re(wi())},delete dt.lineY1,dt.curve=function($i){return arguments.length?$t(H($i)):$t()._curve},dt}function Ce(dt,$t){return[($t=+$t)*Math.cos(dt-=Math.PI/2),$t*Math.sin(dt)]}var Ee=Array.prototype.slice;function de(dt){return dt.source}function te(dt){return dt.target}function Se(dt){var $t=de,fr=te,gr=P,Zr=M,wi=null;function $i(){var ni,Xi=Ee.call(arguments),aa=$t.apply(this,Xi),Mn=fr.apply(this,Xi);if(wi||(wi=ni=t.path()),dt(wi,+gr.apply(this,(Xi[0]=aa,Xi)),+Zr.apply(this,Xi),+gr.apply(this,(Xi[0]=Mn,Xi)),+Zr.apply(this,Xi)),ni)return wi=null,ni+""||null}return $i.source=function(ni){return arguments.length?($t=ni,$i):$t},$i.target=function(ni){return arguments.length?(fr=ni,$i):fr},$i.x=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),$i):gr},$i.y=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),$i):Zr},$i.context=function(ni){return arguments.length?(wi=ni==null?null:ni,$i):wi},$i}function Te(dt,$t,fr,gr,Zr){dt.moveTo($t,fr),dt.bezierCurveTo($t=($t+gr)/2,fr,$t,Zr,gr,Zr)}function be(dt,$t,fr,gr,Zr){dt.moveTo($t,fr),dt.bezierCurveTo($t,fr=(fr+Zr)/2,gr,fr,gr,Zr)}function He(dt,$t,fr,gr,Zr){var wi=Ce($t,fr),$i=Ce($t,fr=(fr+Zr)/2),ni=Ce(gr,fr),Xi=Ce(gr,Zr);dt.moveTo(wi[0],wi[1]),dt.bezierCurveTo($i[0],$i[1],ni[0],ni[1],Xi[0],Xi[1])}function Ie(){return Se(Te)}function ge(){return Se(be)}function Be(){var dt=Se(He);return dt.angle=dt.x,delete dt.x,dt.radius=dt.y,delete dt.y,dt}var ce={draw:function(dt,$t){var fr=Math.sqrt($t/c);dt.moveTo(fr,0),dt.arc(0,0,fr,0,d)}},je={draw:function(dt,$t){var fr=Math.sqrt($t/5)/2;dt.moveTo(-3*fr,-fr),dt.lineTo(-fr,-fr),dt.lineTo(-fr,-3*fr),dt.lineTo(fr,-3*fr),dt.lineTo(fr,-fr),dt.lineTo(3*fr,-fr),dt.lineTo(3*fr,fr),dt.lineTo(fr,fr),dt.lineTo(fr,3*fr),dt.lineTo(-fr,3*fr),dt.lineTo(-fr,fr),dt.lineTo(-3*fr,fr),dt.closePath()}},rt=Math.sqrt(1/3),bt=rt*2,Ot={draw:function(dt,$t){var fr=Math.sqrt($t/bt),gr=fr*rt;dt.moveTo(0,-fr),dt.lineTo(gr,0),dt.lineTo(0,fr),dt.lineTo(-gr,0),dt.closePath()}},it=.8908130915292852,Ke=Math.sin(c/10)/Math.sin(7*c/10),zt=Math.sin(d/10)*Ke,Mt=-Math.cos(d/10)*Ke,kt={draw:function(dt,$t){var fr=Math.sqrt($t*it),gr=zt*fr,Zr=Mt*fr;dt.moveTo(0,-fr),dt.lineTo(gr,Zr);for(var wi=1;wi<5;++wi){var $i=d*wi/5,ni=Math.cos($i),Xi=Math.sin($i);dt.lineTo(Xi*fr,-ni*fr),dt.lineTo(ni*gr-Xi*Zr,Xi*gr+ni*Zr)}dt.closePath()}},$e={draw:function(dt,$t){var fr=Math.sqrt($t),gr=-fr/2;dt.rect(gr,gr,fr,fr)}},Re=Math.sqrt(3),Me={draw:function(dt,$t){var fr=-Math.sqrt($t/(Re*3));dt.moveTo(0,fr*2),dt.lineTo(-Re*fr,-fr),dt.lineTo(Re*fr,-fr),dt.closePath()}},oe=-.5,Ne=Math.sqrt(3)/2,vt=1/Math.sqrt(12),lt=(vt/2+1)*3,We={draw:function(dt,$t){var fr=Math.sqrt($t/lt),gr=fr/2,Zr=fr*vt,wi=gr,$i=fr*vt+fr,ni=-wi,Xi=$i;dt.moveTo(gr,Zr),dt.lineTo(wi,$i),dt.lineTo(ni,Xi),dt.lineTo(oe*gr-Ne*Zr,Ne*gr+oe*Zr),dt.lineTo(oe*wi-Ne*$i,Ne*wi+oe*$i),dt.lineTo(oe*ni-Ne*Xi,Ne*ni+oe*Xi),dt.lineTo(oe*gr+Ne*Zr,oe*Zr-Ne*gr),dt.lineTo(oe*wi+Ne*$i,oe*$i-Ne*wi),dt.lineTo(oe*ni+Ne*Xi,oe*Xi-Ne*ni),dt.closePath()}},Ve=[ce,je,Ot,$e,kt,Me,We];function et(){var dt=r(ce),$t=r(64),fr=null;function gr(){var Zr;if(fr||(fr=Zr=t.path()),dt.apply(this,arguments).draw(fr,+$t.apply(this,arguments)),Zr)return fr=null,Zr+""||null}return gr.type=function(Zr){return arguments.length?(dt=typeof Zr=="function"?Zr:r(Zr),gr):dt},gr.size=function(Zr){return arguments.length?($t=typeof Zr=="function"?Zr:r(+Zr),gr):$t},gr.context=function(Zr){return arguments.length?(fr=Zr==null?null:Zr,gr):fr},gr}function tt(){}function Lt(dt,$t,fr){dt._context.bezierCurveTo((2*dt._x0+dt._x1)/3,(2*dt._y0+dt._y1)/3,(dt._x0+2*dt._x1)/3,(dt._y0+2*dt._y1)/3,(dt._x0+4*dt._x1+$t)/6,(dt._y0+4*dt._y1+fr)/6)}function jt(dt){this._context=dt}jt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Lt(this,dt,$t);break}this._x0=this._x1,this._x1=dt,this._y0=this._y1,this._y1=$t}};function or(dt){return new jt(dt)}function yr(dt){this._context=dt}yr.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._x2=dt,this._y2=$t;break;case 1:this._point=2,this._x3=dt,this._y3=$t;break;case 2:this._point=3,this._x4=dt,this._y4=$t,this._context.moveTo((this._x0+4*this._x1+dt)/6,(this._y0+4*this._y1+$t)/6);break;default:Lt(this,dt,$t);break}this._x0=this._x1,this._x1=dt,this._y0=this._y1,this._y1=$t}};function vr(dt){return new yr(dt)}function Vt(dt){this._context=dt}Vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var fr=(this._x0+4*this._x1+dt)/6,gr=(this._y0+4*this._y1+$t)/6;this._line?this._context.lineTo(fr,gr):this._context.moveTo(fr,gr);break;case 3:this._point=4;default:Lt(this,dt,$t);break}this._x0=this._x1,this._x1=dt,this._y0=this._y1,this._y1=$t}};function Pe(dt){return new Vt(dt)}function xe(dt,$t){this._basis=new jt(dt),this._beta=$t}xe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var dt=this._x,$t=this._y,fr=dt.length-1;if(fr>0)for(var gr=dt[0],Zr=$t[0],wi=dt[fr]-gr,$i=$t[fr]-Zr,ni=-1,Xi;++ni<=fr;)Xi=ni/fr,this._basis.point(this._beta*dt[ni]+(1-this._beta)*(gr+Xi*wi),this._beta*$t[ni]+(1-this._beta)*(Zr+Xi*$i));this._x=this._y=null,this._basis.lineEnd()},point:function(dt,$t){this._x.push(+dt),this._y.push(+$t)}};var Oe=(function dt($t){function fr(gr){return $t===1?new jt(gr):new xe(gr,$t)}return fr.beta=function(gr){return dt(+gr)},fr})(.85);function ze(dt,$t,fr){dt._context.bezierCurveTo(dt._x1+dt._k*(dt._x2-dt._x0),dt._y1+dt._k*(dt._y2-dt._y0),dt._x2+dt._k*(dt._x1-$t),dt._y2+dt._k*(dt._y1-fr),dt._x2,dt._y2)}function De(dt,$t){this._context=dt,this._k=(1-$t)/6}De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ze(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2,this._x1=dt,this._y1=$t;break;case 2:this._point=3;default:ze(this,dt,$t);break}this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var ht=(function dt($t){function fr(gr){return new De(gr,$t)}return fr.tension=function(gr){return dt(+gr)},fr})(0);function st(dt,$t){this._context=dt,this._k=(1-$t)/6}st.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._x3=dt,this._y3=$t;break;case 1:this._point=2,this._context.moveTo(this._x4=dt,this._y4=$t);break;case 2:this._point=3,this._x5=dt,this._y5=$t;break;default:ze(this,dt,$t);break}this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var gt=(function dt($t){function fr(gr){return new st(gr,$t)}return fr.tension=function(gr){return dt(+gr)},fr})(0);function xt(dt,$t){this._context=dt,this._k=(1-$t)/6}xt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ze(this,dt,$t);break}this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var pr=(function dt($t){function fr(gr){return new xt(gr,$t)}return fr.tension=function(gr){return dt(+gr)},fr})(0);function br(dt,$t,fr){var gr=dt._x1,Zr=dt._y1,wi=dt._x2,$i=dt._y2;if(dt._l01_a>f){var ni=2*dt._l01_2a+3*dt._l01_a*dt._l12_a+dt._l12_2a,Xi=3*dt._l01_a*(dt._l01_a+dt._l12_a);gr=(gr*ni-dt._x0*dt._l12_2a+dt._x2*dt._l01_2a)/Xi,Zr=(Zr*ni-dt._y0*dt._l12_2a+dt._y2*dt._l01_2a)/Xi}if(dt._l23_a>f){var aa=2*dt._l23_2a+3*dt._l23_a*dt._l12_a+dt._l12_2a,Mn=3*dt._l23_a*(dt._l23_a+dt._l12_a);wi=(wi*aa+dt._x1*dt._l23_2a-$t*dt._l12_2a)/Mn,$i=($i*aa+dt._y1*dt._l23_2a-fr*dt._l12_2a)/Mn}dt._context.bezierCurveTo(gr,Zr,wi,$i,dt._x2,dt._y2)}function cr(dt,$t){this._context=dt,this._alpha=$t}cr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){if(dt=+dt,$t=+$t,this._point){var fr=this._x2-dt,gr=this._y2-$t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(fr*fr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2;break;case 2:this._point=3;default:br(this,dt,$t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var Er=(function dt($t){function fr(gr){return $t?new cr(gr,$t):new De(gr,0)}return fr.alpha=function(gr){return dt(+gr)},fr})(.5);function ii(dt,$t){this._context=dt,this._alpha=$t}ii.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(dt,$t){if(dt=+dt,$t=+$t,this._point){var fr=this._x2-dt,gr=this._y2-$t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(fr*fr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=dt,this._y3=$t;break;case 1:this._point=2,this._context.moveTo(this._x4=dt,this._y4=$t);break;case 2:this._point=3,this._x5=dt,this._y5=$t;break;default:br(this,dt,$t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var jr=(function dt($t){function fr(gr){return $t?new ii(gr,$t):new st(gr,0)}return fr.alpha=function(gr){return dt(+gr)},fr})(.5);function kr(dt,$t){this._context=dt,this._alpha=$t}kr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){if(dt=+dt,$t=+$t,this._point){var fr=this._x2-dt,gr=this._y2-$t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(fr*fr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:br(this,dt,$t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=dt,this._y0=this._y1,this._y1=this._y2,this._y2=$t}};var Vr=(function dt($t){function fr(gr){return $t?new kr(gr,$t):new xt(gr,0)}return fr.alpha=function(gr){return dt(+gr)},fr})(.5);function Ai(dt){this._context=dt}Ai.prototype={areaStart:tt,areaEnd:tt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(dt,$t){dt=+dt,$t=+$t,this._point?this._context.lineTo(dt,$t):(this._point=1,this._context.moveTo(dt,$t))}};function Bi(dt){return new Ai(dt)}function Ri(dt){return dt<0?-1:1}function ln(dt,$t,fr){var gr=dt._x1-dt._x0,Zr=$t-dt._x1,wi=(dt._y1-dt._y0)/(gr||Zr<0&&-0),$i=(fr-dt._y1)/(Zr||gr<0&&-0),ni=(wi*Zr+$i*gr)/(gr+Zr);return(Ri(wi)+Ri($i))*Math.min(Math.abs(wi),Math.abs($i),.5*Math.abs(ni))||0}function hn(dt,$t){var fr=dt._x1-dt._x0;return fr?(3*(dt._y1-dt._y0)/fr-$t)/2:$t}function qr(dt,$t,fr){var gr=dt._x0,Zr=dt._y0,wi=dt._x1,$i=dt._y1,ni=(wi-gr)/3;dt._context.bezierCurveTo(gr+ni,Zr+ni*$t,wi-ni,$i-ni*fr,wi,$i)}function _i(dt){this._context=dt}_i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:qr(this,this._t0,hn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(dt,$t){var fr=NaN;if(dt=+dt,$t=+$t,!(dt===this._x1&&$t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2;break;case 2:this._point=3,qr(this,hn(this,fr=ln(this,dt,$t)),fr);break;default:qr(this,this._t0,fr=ln(this,dt,$t));break}this._x0=this._x1,this._x1=dt,this._y0=this._y1,this._y1=$t,this._t0=fr}}};function zi(dt){this._context=new Dt(dt)}(zi.prototype=Object.create(_i.prototype)).point=function(dt,$t){_i.prototype.point.call(this,$t,dt)};function Dt(dt){this._context=dt}Dt.prototype={moveTo:function(dt,$t){this._context.moveTo($t,dt)},closePath:function(){this._context.closePath()},lineTo:function(dt,$t){this._context.lineTo($t,dt)},bezierCurveTo:function(dt,$t,fr,gr,Zr,wi){this._context.bezierCurveTo($t,dt,gr,fr,wi,Zr)}};function _t(dt){return new _i(dt)}function qt(dt){return new zi(dt)}function Nt(dt){this._context=dt}Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var dt=this._x,$t=this._y,fr=dt.length;if(fr)if(this._line?this._context.lineTo(dt[0],$t[0]):this._context.moveTo(dt[0],$t[0]),fr===2)this._context.lineTo(dt[1],$t[1]);else for(var gr=mr(dt),Zr=mr($t),wi=0,$i=1;$i=0;--$t)Zr[$t]=($i[$t]-Zr[$t+1])/wi[$t];for(wi[fr-1]=(dt[fr]+Zr[fr-1])/2,$t=0;$t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(dt,$t){switch(dt=+dt,$t=+$t,this._point){case 0:this._point=1,this._line?this._context.lineTo(dt,$t):this._context.moveTo(dt,$t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,$t),this._context.lineTo(dt,$t);else{var fr=this._x*(1-this._t)+dt*this._t;this._context.lineTo(fr,this._y),this._context.lineTo(fr,$t)}break}}this._x=dt,this._y=$t}};function Fr(dt){return new Nr(dt,.5)}function Hr(dt){return new Nr(dt,0)}function Gr(dt){return new Nr(dt,1)}function mi(dt,$t){if(($i=dt.length)>1)for(var fr=1,gr,Zr,wi=dt[$t[0]],$i,ni=wi.length;fr<$i;++fr)for(Zr=wi,wi=dt[$t[fr]],gr=0;gr=0;)fr[$t]=$t;return fr}function Vi(dt,$t){return dt[$t]}function ti(){var dt=r([]),$t=Ei,fr=mi,gr=Vi;function Zr(wi){var $i=dt.apply(this,arguments),ni,Xi=wi.length,aa=$i.length,Mn=new Array(aa),Un;for(ni=0;ni0){for(var fr,gr,Zr=0,wi=dt[0].length,$i;Zr0)for(var fr,gr=0,Zr,wi,$i,ni,Xi,aa=dt[$t[0]].length;gr0?(Zr[0]=$i,Zr[1]=$i+=wi):wi<0?(Zr[1]=ni,Zr[0]=ni+=wi):(Zr[0]=0,Zr[1]=wi)}function oi(dt,$t){if((Zr=dt.length)>0){for(var fr=0,gr=dt[$t[0]],Zr,wi=gr.length;fr0)||!((wi=(Zr=dt[$t[0]]).length)>0))){for(var fr=0,gr=1,Zr,wi,$i;grwi&&(wi=Zr,fr=$t);return fr}function Di(dt){var $t=dt.map(Ii);return Ei(dt).sort(function(fr,gr){return $t[fr]-$t[gr]})}function Ii(dt){for(var $t=0,fr=-1,gr=dt.length,Zr;++fr{(function(e,t){typeof G9=="object"&&typeof UXe!="undefined"?t(G9,mk(),O9(),d$()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(G9,(function(e,t,r,n){"use strict";function i(m){return m.target.depth}function a(m){return m.depth}function o(m,P){return P-1-m.height}function s(m,P){return m.sourceLinks.length?m.depth:P-1}function u(m){return m.targetLinks.length?m.depth:m.sourceLinks.length?t.min(m.sourceLinks,i)-1:0}function l(m){return function(){return m}}function f(m,P){return h(m.source,P.source)||m.index-P.index}function c(m,P){return h(m.target,P.target)||m.index-P.index}function h(m,P){return m.y0-P.y0}function d(m){return m.value}function p(m){return(m.y0+m.y1)/2}function y(m){return p(m.source)*m.value}function b(m){return p(m.target)*m.value}function v(m){return m.index}function C(m){return m.nodes}function E(m){return m.links}function A(m,P){var M=m.get(P);if(!M)throw new Error("missing: "+P);return M}var L=function(){var m=0,P=0,M=1,O=1,F=24,U=8,G=v,j=s,W=C,N=E,H=32,re=2/3;function ae(){var Se={nodes:W.apply(null,arguments),links:N.apply(null,arguments)};return me(Se),Ce(Se),Ee(Se),de(Se,H),te(Se),Se}ae.update=function(Se){return te(Se),Se},ae.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:l(Se),ae):G},ae.nodeAlign=function(Se){return arguments.length?(j=typeof Se=="function"?Se:l(Se),ae):j},ae.nodeWidth=function(Se){return arguments.length?(F=+Se,ae):F},ae.nodePadding=function(Se){return arguments.length?(U=+Se,ae):U},ae.nodes=function(Se){return arguments.length?(W=typeof Se=="function"?Se:l(Se),ae):W},ae.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:l(Se),ae):N},ae.size=function(Se){return arguments.length?(m=P=0,M=+Se[0],O=+Se[1],ae):[M-m,O-P]},ae.extent=function(Se){return arguments.length?(m=+Se[0][0],M=+Se[1][0],P=+Se[0][1],O=+Se[1][1],ae):[[m,P],[M,O]]},ae.iterations=function(Se){return arguments.length?(H=+Se,ae):H};function me(Se){Se.nodes.forEach(function(be,He){be.index=He,be.sourceLinks=[],be.targetLinks=[]});var Te=r.map(Se.nodes,G);Se.links.forEach(function(be,He){be.index=He;var Ie=be.source,ge=be.target;typeof Ie!="object"&&(Ie=be.source=A(Te,Ie)),typeof ge!="object"&&(ge=be.target=A(Te,ge)),Ie.sourceLinks.push(be),ge.targetLinks.push(be)})}function Ce(Se){Se.nodes.forEach(function(Te){Te.value=Math.max(t.sum(Te.sourceLinks,d),t.sum(Te.targetLinks,d))})}function Ee(Se){var Te,be,He;for(Te=Se.nodes,be=[],He=0;Te.length;++He,Te=be,be=[])Te.forEach(function(ge){ge.depth=He,ge.sourceLinks.forEach(function(Be){be.indexOf(Be.target)<0&&be.push(Be.target)})});for(Te=Se.nodes,be=[],He=0;Te.length;++He,Te=be,be=[])Te.forEach(function(ge){ge.height=He,ge.targetLinks.forEach(function(Be){be.indexOf(Be.source)<0&&be.push(Be.source)})});var Ie=(M-m-F)/(He-1);Se.nodes.forEach(function(ge){ge.x1=(ge.x0=m+Math.max(0,Math.min(He-1,Math.floor(j.call(null,ge,He))))*Ie)+F})}function de(Se){var Te=r.nest().key(function(je){return je.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(je){return je.values});Ie(),ce();for(var be=1,He=H;He>0;--He)Be(be*=.99),ce(),ge(be),ce();function Ie(){var je=t.max(Te,function(Ot){return Ot.length}),rt=re*(O-P)/(je-1);U>rt&&(U=rt);var bt=t.min(Te,function(Ot){return(O-P-(Ot.length-1)*U)/t.sum(Ot,d)});Te.forEach(function(Ot){Ot.forEach(function(it,Ke){it.y1=(it.y0=Ke)+it.value*bt})}),Se.links.forEach(function(Ot){Ot.width=Ot.value*bt})}function ge(je){Te.forEach(function(rt){rt.forEach(function(bt){if(bt.targetLinks.length){var Ot=(t.sum(bt.targetLinks,y)/t.sum(bt.targetLinks,d)-p(bt))*je;bt.y0+=Ot,bt.y1+=Ot}})})}function Be(je){Te.slice().reverse().forEach(function(rt){rt.forEach(function(bt){if(bt.sourceLinks.length){var Ot=(t.sum(bt.sourceLinks,b)/t.sum(bt.sourceLinks,d)-p(bt))*je;bt.y0+=Ot,bt.y1+=Ot}})})}function ce(){Te.forEach(function(je){var rt,bt,Ot=P,it=je.length,Ke;for(je.sort(h),Ke=0;Ke0&&(rt.y0+=bt,rt.y1+=bt),Ot=rt.y1+U;if(bt=Ot-U-O,bt>0)for(Ot=rt.y0-=bt,rt.y1-=bt,Ke=it-2;Ke>=0;--Ke)rt=je[Ke],bt=rt.y1+U-Ot,bt>0&&(rt.y0-=bt,rt.y1-=bt),Ot=rt.y0})}}function te(Se){Se.nodes.forEach(function(Te){Te.sourceLinks.sort(c),Te.targetLinks.sort(f)}),Se.nodes.forEach(function(Te){var be=Te.y0,He=be;Te.sourceLinks.forEach(function(Ie){Ie.y0=be+Ie.width/2,be+=Ie.width}),Te.targetLinks.forEach(function(Ie){Ie.y1=He+Ie.width/2,He+=Ie.width})})}return ae};function x(m){return[m.source.x1,m.y0]}function k(m){return[m.target.x0,m.y1]}var S=function(){return n.linkHorizontal().source(x).target(k)};e.sankey=L,e.sankeyCenter=u,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=S,Object.defineProperty(e,"__esModule",{value:!0})}))});var HXe=we((k3r,GXe)=>{var zKt=h$();GXe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],u;function l(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(A){delete o[E][A],a[A]&&l(A)})}function f(E){var A=!1;i.push(E),a[E]=!0;var L,x;for(L=0;L=E})}function d(E){h(E);for(var A=t,L=zKt(A),x=L.components.filter(function(F){return F.length>1}),k=1/0,S,m=0;m{(function(e,t){typeof H9=="object"&&typeof WXe!="undefined"?t(H9,mk(),O9(),d$(),HXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(H9,(function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(it){return it.target.depth}function o(it){return it.depth}function s(it,Ke){return Ke-1-it.height}function u(it,Ke){return it.sourceLinks.length?it.depth:Ke-1}function l(it){return it.targetLinks.length?it.depth:it.sourceLinks.length?t.min(it.sourceLinks,a)-1:0}function f(it){return function(){return it}}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(it){return typeof it}:function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it};function h(it,Ke){return p(it.source,Ke.source)||it.index-Ke.index}function d(it,Ke){return p(it.target,Ke.target)||it.index-Ke.index}function p(it,Ke){return it.partOfCycle===Ke.partOfCycle?it.y0-Ke.y0:it.circularLinkType==="top"||Ke.circularLinkType==="bottom"?-1:1}function y(it){return it.value}function b(it){return(it.y0+it.y1)/2}function v(it){return b(it.source)}function C(it){return b(it.target)}function E(it){return it.index}function A(it){return it.nodes}function L(it){return it.links}function x(it,Ke){var zt=it.get(Ke);if(!zt)throw new Error("missing: "+Ke);return zt}function k(it,Ke){return Ke(it)}var S=25,m=10,P=.3;function M(){var it=0,Ke=0,zt=1,Mt=1,kt=24,$e,Re=E,Me=u,oe=A,Ne=L,vt=32,lt=2,We,Ve=null;function et(){var Pe={nodes:oe.apply(null,arguments),links:Ne.apply(null,arguments)};tt(Pe),O(Pe,Re,Ve),Lt(Pe),yr(Pe),F(Pe,Re),vr(Pe,vt,Re),Vt(Pe);for(var xe=4,Oe=0;Oe0?xe+S+m:xe,Oe=Oe>0?Oe+S+m:Oe,ze=ze>0?ze+S+m:ze,De=De>0?De+S+m:De,{top:xe,bottom:Oe,left:De,right:ze}}function or(Pe,xe){var Oe=t.max(Pe.nodes,function(pr){return pr.column}),ze=zt-it,De=Mt-Ke,ht=ze+xe.right+xe.left,st=De+xe.top+xe.bottom,gt=ze/ht,xt=De/st;return it=it*gt+xe.left,zt=xe.right==0?zt:zt*gt,Ke=Ke*xt+xe.top,Mt=Mt*xt,Pe.nodes.forEach(function(pr){pr.x0=it+pr.column*((zt-it-kt)/Oe),pr.x1=pr.x0+kt}),xt}function yr(Pe){var xe,Oe,ze;for(xe=Pe.nodes,Oe=[],ze=0;xe.length;++ze,xe=Oe,Oe=[])xe.forEach(function(De){De.depth=ze,De.sourceLinks.forEach(function(ht){Oe.indexOf(ht.target)<0&&!ht.circular&&Oe.push(ht.target)})});for(xe=Pe.nodes,Oe=[],ze=0;xe.length;++ze,xe=Oe,Oe=[])xe.forEach(function(De){De.height=ze,De.targetLinks.forEach(function(ht){Oe.indexOf(ht.source)<0&&!ht.circular&&Oe.push(ht.source)})});Pe.nodes.forEach(function(De){De.column=Math.floor(Me.call(null,De,ze))})}function vr(Pe,xe,Oe){var ze=r.nest().key(function(pr){return pr.column}).sortKeys(t.ascending).entries(Pe.nodes).map(function(pr){return pr.values});st(Oe),xt();for(var De=1,ht=xe;ht>0;--ht)gt(De*=.99,Oe),xt();function st(pr){if(We){var br=1/0;ze.forEach(function(jr){var kr=Mt*We/(jr.length+1);br=kr0))if(jr==0&&ii==1)Vr=kr.y1-kr.y0,kr.y0=Mt/2-Vr/2,kr.y1=Mt/2+Vr/2;else if(jr==cr-1&&ii==1)Vr=kr.y1-kr.y0,kr.y0=Mt/2-Vr/2,kr.y1=Mt/2+Vr/2;else{var Ai=0,Bi=t.mean(kr.sourceLinks,C),Ri=t.mean(kr.targetLinks,v);Bi&&Ri?Ai=(Bi+Ri)/2:Ai=Bi||Ri;var ln=(Ai-b(kr))*pr;kr.y0+=ln,kr.y1+=ln}})})}function xt(){ze.forEach(function(pr){var br,cr,Er=Ke,ii=pr.length,jr;for(pr.sort(p),jr=0;jr0&&(br.y0+=cr,br.y1+=cr),Er=br.y1+$e;if(cr=Er-$e-Mt,cr>0)for(Er=br.y0-=cr,br.y1-=cr,jr=ii-2;jr>=0;--jr)br=pr[jr],cr=br.y1+$e-Er,cr>0&&(br.y0-=cr,br.y1-=cr),Er=br.y0})}}function Vt(Pe){Pe.nodes.forEach(function(xe){xe.sourceLinks.sort(d),xe.targetLinks.sort(h)}),Pe.nodes.forEach(function(xe){var Oe=xe.y0,ze=Oe,De=xe.y1,ht=De;xe.sourceLinks.forEach(function(st){st.circular?(st.y0=De-st.width/2,De=De-st.width):(st.y0=Oe+st.width/2,Oe+=st.width)}),xe.targetLinks.forEach(function(st){st.circular?(st.y1=ht-st.width/2,ht=ht-st.width):(st.y1=ze+st.width/2,ze+=st.width)})})}return et}function O(it,Ke,zt){var Mt=0;if(zt===null){for(var kt=[],$e=0;$eKe.source.column)}function j(it,Ke){var zt=0;it.sourceLinks.forEach(function(kt){zt=kt.circular&&!bt(kt,Ke)?zt+1:zt});var Mt=0;return it.targetLinks.forEach(function(kt){Mt=kt.circular&&!bt(kt,Ke)?Mt+1:Mt}),zt+Mt}function W(it){var Ke=it.source.sourceLinks,zt=0;Ke.forEach(function($e){zt=$e.circular?zt+1:zt});var Mt=it.target.targetLinks,kt=0;return Mt.forEach(function($e){kt=$e.circular?kt+1:kt}),!(zt>1||kt>1)}function N(it,Ke,zt){return it.sort(ae),it.forEach(function(Mt,kt){var $e=0;if(bt(Mt,zt)&&W(Mt))Mt.circularPathData.verticalBuffer=$e+Mt.width/2;else{var Re=0;for(Re;Re$e?Me:$e}Mt.circularPathData.verticalBuffer=$e+Mt.width/2}}),it}function H(it,Ke,zt,Mt){var kt=5,$e=t.min(it.links,function(oe){return oe.source.y0});it.links.forEach(function(oe){oe.circular&&(oe.circularPathData={})});var Re=it.links.filter(function(oe){return oe.circularLinkType=="top"});N(Re,Ke,Mt);var Me=it.links.filter(function(oe){return oe.circularLinkType=="bottom"});N(Me,Ke,Mt),it.links.forEach(function(oe){if(oe.circular){if(oe.circularPathData.arcRadius=oe.width+m,oe.circularPathData.leftNodeBuffer=kt,oe.circularPathData.rightNodeBuffer=kt,oe.circularPathData.sourceWidth=oe.source.x1-oe.source.x0,oe.circularPathData.sourceX=oe.source.x0+oe.circularPathData.sourceWidth,oe.circularPathData.targetX=oe.target.x0,oe.circularPathData.sourceY=oe.y0,oe.circularPathData.targetY=oe.y1,bt(oe,Mt)&&W(oe))oe.circularPathData.leftSmallArcRadius=m+oe.width/2,oe.circularPathData.leftLargeArcRadius=m+oe.width/2,oe.circularPathData.rightSmallArcRadius=m+oe.width/2,oe.circularPathData.rightLargeArcRadius=m+oe.width/2,oe.circularLinkType=="bottom"?(oe.circularPathData.verticalFullExtent=oe.source.y1+S+oe.circularPathData.verticalBuffer,oe.circularPathData.verticalLeftInnerExtent=oe.circularPathData.verticalFullExtent-oe.circularPathData.leftLargeArcRadius,oe.circularPathData.verticalRightInnerExtent=oe.circularPathData.verticalFullExtent-oe.circularPathData.rightLargeArcRadius):(oe.circularPathData.verticalFullExtent=oe.source.y0-S-oe.circularPathData.verticalBuffer,oe.circularPathData.verticalLeftInnerExtent=oe.circularPathData.verticalFullExtent+oe.circularPathData.leftLargeArcRadius,oe.circularPathData.verticalRightInnerExtent=oe.circularPathData.verticalFullExtent+oe.circularPathData.rightLargeArcRadius);else{var Ne=oe.source.column,vt=oe.circularLinkType,lt=it.links.filter(function(et){return et.source.column==Ne&&et.circularLinkType==vt});oe.circularLinkType=="bottom"?lt.sort(Ce):lt.sort(me);var We=0;lt.forEach(function(et,tt){et.circularLinkID==oe.circularLinkID&&(oe.circularPathData.leftSmallArcRadius=m+oe.width/2+We,oe.circularPathData.leftLargeArcRadius=m+oe.width/2+tt*Ke+We),We=We+et.width}),Ne=oe.target.column,lt=it.links.filter(function(et){return et.target.column==Ne&&et.circularLinkType==vt}),oe.circularLinkType=="bottom"?lt.sort(de):lt.sort(Ee),We=0,lt.forEach(function(et,tt){et.circularLinkID==oe.circularLinkID&&(oe.circularPathData.rightSmallArcRadius=m+oe.width/2+We,oe.circularPathData.rightLargeArcRadius=m+oe.width/2+tt*Ke+We),We=We+et.width}),oe.circularLinkType=="bottom"?(oe.circularPathData.verticalFullExtent=Math.max(zt,oe.source.y1,oe.target.y1)+S+oe.circularPathData.verticalBuffer,oe.circularPathData.verticalLeftInnerExtent=oe.circularPathData.verticalFullExtent-oe.circularPathData.leftLargeArcRadius,oe.circularPathData.verticalRightInnerExtent=oe.circularPathData.verticalFullExtent-oe.circularPathData.rightLargeArcRadius):(oe.circularPathData.verticalFullExtent=$e-S-oe.circularPathData.verticalBuffer,oe.circularPathData.verticalLeftInnerExtent=oe.circularPathData.verticalFullExtent+oe.circularPathData.leftLargeArcRadius,oe.circularPathData.verticalRightInnerExtent=oe.circularPathData.verticalFullExtent+oe.circularPathData.rightLargeArcRadius)}oe.circularPathData.leftInnerExtent=oe.circularPathData.sourceX+oe.circularPathData.leftNodeBuffer,oe.circularPathData.rightInnerExtent=oe.circularPathData.targetX-oe.circularPathData.rightNodeBuffer,oe.circularPathData.leftFullExtent=oe.circularPathData.sourceX+oe.circularPathData.leftLargeArcRadius+oe.circularPathData.leftNodeBuffer,oe.circularPathData.rightFullExtent=oe.circularPathData.targetX-oe.circularPathData.rightLargeArcRadius-oe.circularPathData.rightNodeBuffer}if(oe.circular)oe.path=re(oe);else{var Ve=n.linkHorizontal().source(function(et){var tt=et.source.x0+(et.source.x1-et.source.x0),Lt=et.y0;return[tt,Lt]}).target(function(et){var tt=et.target.x0,Lt=et.y1;return[tt,Lt]});oe.path=Ve(oe)}})}function re(it){var Ke="";return it.circularLinkType=="top"?Ke="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 0 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY-it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 0 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 0 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY-it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 0 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY:Ke="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 1 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY+it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 1 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 1 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY+it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 1 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY,Ke}function ae(it,Ke){return te(it)==te(Ke)?it.circularLinkType=="bottom"?Ce(it,Ke):me(it,Ke):te(Ke)-te(it)}function me(it,Ke){return it.y0-Ke.y0}function Ce(it,Ke){return Ke.y0-it.y0}function Ee(it,Ke){return it.y1-Ke.y1}function de(it,Ke){return Ke.y1-it.y1}function te(it){return it.target.column-it.source.column}function Se(it){return it.target.x0-it.source.x1}function Te(it,Ke){var zt=U(it),Mt=Se(Ke)/Math.tan(zt),kt=rt(it)=="up"?it.y1+Mt:it.y1-Mt;return kt}function be(it,Ke){var zt=U(it),Mt=Se(Ke)/Math.tan(zt),kt=rt(it)=="up"?it.y1-Mt:it.y1+Mt;return kt}function He(it,Ke,zt,Mt){it.links.forEach(function(kt){if(!kt.circular&&kt.target.column-kt.source.column>1){var $e=kt.source.column+1,Re=kt.target.column-1,Me=1,oe=Re-$e+1;for(Me=1;$e<=Re;$e++,Me++)it.nodes.forEach(function(Ne){if(Ne.column==$e){var vt=Me/(oe+1),lt=Math.pow(1-vt,3),We=3*vt*Math.pow(1-vt,2),Ve=3*Math.pow(vt,2)*(1-vt),et=Math.pow(vt,3),tt=lt*kt.y0+We*kt.y0+Ve*kt.y1+et*kt.y1,Lt=tt-kt.width/2,jt=tt+kt.width/2,or;Lt>Ne.y0&&LtNe.y0&&jtNe.y1&&ge(yr,or,Ke,zt)})):LtNe.y1&&(or=jt-Ne.y0+10,Ne=ge(Ne,or,Ke,zt),it.nodes.forEach(function(yr){k(yr,Mt)==k(Ne,Mt)||yr.column!=Ne.column||yr.y0Ne.y1&&ge(yr,or,Ke,zt)}))}})}})}function Ie(it,Ke){return it.y0>Ke.y0&&it.y0Ke.y0&&it.y1Ke.y1}function ge(it,Ke,zt,Mt){return it.y0+Ke>=zt&&it.y1+Ke<=Mt&&(it.y0=it.y0+Ke,it.y1=it.y1+Ke,it.targetLinks.forEach(function(kt){kt.y1=kt.y1+Ke}),it.sourceLinks.forEach(function(kt){kt.y0=kt.y0+Ke})),it}function Be(it,Ke,zt,Mt){it.nodes.forEach(function(kt){Mt&&kt.y+(kt.y1-kt.y0)>Ke&&(kt.y=kt.y-(kt.y+(kt.y1-kt.y0)-Ke));var $e=it.links.filter(function(oe){return k(oe.source,zt)==k(kt,zt)}),Re=$e.length;Re>1&&$e.sort(function(oe,Ne){if(!oe.circular&&!Ne.circular){if(oe.target.column==Ne.target.column)return oe.y1-Ne.y1;if(je(oe,Ne)){if(oe.target.column>Ne.target.column){var vt=be(Ne,oe);return oe.y1-vt}if(Ne.target.column>oe.target.column){var lt=be(oe,Ne);return lt-Ne.y1}}else return oe.y1-Ne.y1}if(oe.circular&&!Ne.circular)return oe.circularLinkType=="top"?-1:1;if(Ne.circular&&!oe.circular)return Ne.circularLinkType=="top"?1:-1;if(oe.circular&&Ne.circular)return oe.circularLinkType===Ne.circularLinkType&&oe.circularLinkType=="top"?oe.target.column===Ne.target.column?oe.target.y1-Ne.target.y1:Ne.target.column-oe.target.column:oe.circularLinkType===Ne.circularLinkType&&oe.circularLinkType=="bottom"?oe.target.column===Ne.target.column?Ne.target.y1-oe.target.y1:oe.target.column-Ne.target.column:oe.circularLinkType=="top"?-1:1});var Me=kt.y0;$e.forEach(function(oe){oe.y0=Me+oe.width/2,Me=Me+oe.width}),$e.forEach(function(oe,Ne){if(oe.circularLinkType=="bottom"){var vt=Ne+1,lt=0;for(vt;vt1&&kt.sort(function(Me,oe){if(!Me.circular&&!oe.circular){if(Me.source.column==oe.source.column)return Me.y0-oe.y0;if(je(Me,oe)){if(oe.source.column0?"up":"down"}function bt(it,Ke){return k(it.source,Ke)==k(it.target,Ke)}function Ot(it,Ke,zt){var Mt=it.nodes,kt=it.links,$e=!1,Re=!1;if(kt.forEach(function(We){We.circularLinkType=="top"?$e=!0:We.circularLinkType=="bottom"&&(Re=!0)}),$e==!1||Re==!1){var Me=t.min(Mt,function(We){return We.y0}),oe=t.max(Mt,function(We){return We.y1}),Ne=oe-Me,vt=zt-Ke,lt=vt/Ne;Mt.forEach(function(We){var Ve=(We.y1-We.y0)*lt;We.y0=(We.y0-Me)*lt,We.y1=We.y0+Ve}),kt.forEach(function(We){We.y0=(We.y0-Me)*lt,We.y1=(We.y1-Me)*lt,We.width=We.width*lt})}}e.sankeyCircular=M,e.sankeyCenter=l,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=u,Object.defineProperty(e,"__esModule",{value:!0})}))});var p$=we((C3r,XXe)=>{"use strict";XXe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var oZe=we((L3r,aZe)=>{"use strict";var ZXe=OXe(),IKt=(j2(),mb(W2)).interpolateNumber,NS=Kl(),lC=VXe(),RKt=jXe(),dc=p$(),US=hd(),xw=jl(),DKt=Mu(),A1=ei(),y$=A1.strTranslate,FKt=A1.strRotate,g$=ag(),uC=g$.keyFun,W9=g$.repeat,eZe=g$.unwrap,YXe=Wf(),OKt=$l(),tZe=Nh(),BKt=tZe.CAP_SHIFT,qKt=tZe.LINE_SPACING,NKt=3;function UKt(e,t,r){var n=eZe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,u=i.node.thickness,l={justify:lC.sankeyJustify,left:lC.sankeyLeft,right:lC.sankeyRight,center:lC.sankeyCenter}[i.node.align],f=e.width*(a.x[1]-a.x[0]),c=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,p=n.circular,y;p?y=RKt.sankeyCircular().circularLinkGap(0):y=lC.sankey(),y.iterations(dc.sankeyIterations).size(o?[f,c]:[c,f]).nodeWidth(u).nodePadding(s).nodeId(function(U){return U.pointNumber}).nodeAlign(l).nodes(h).links(d);var b=y();y.nodePadding()=N||(W=N-j.y0,W>1e-6&&(j.y0+=W,j.y1+=W)),N=j.y1+s})}function P(U){var G=U.map(function(me,Ce){return{x0:me.x0,index:Ce}}).sort(function(me,Ce){return me.x0-Ce.x0}),j=[],W=-1,N,H=-1/0,re;for(v=0;vH+u&&(W+=1,N=ae.x0),H=ae.x0,j[W]||(j[W]=[]),j[W].push(ae),re=N-ae.x0,ae.x0+=re,ae.x1+=re}return j}if(i.node.x.length&&i.node.y.length){for(v=0;v0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function _$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return GKt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=IKt(a,o),u=s(e),l=s(1-e),f=r.link.y0-r.link.width/2,c=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,p="M"+a+","+f,y="C"+u+","+f+" "+l+","+h+" "+o+","+h,b="C"+l+","+d+" "+u+","+c+" "+a+","+c,v=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return v+="L"+o+","+d,p+y+v+b+"Z"}return t}function HKt(e,t){var r=US(t.color),n=dc.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=A1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:xw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function m$(e){e.attr("transform",function(t){return y$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function WKt(e){e.call(m$)}function rZe(e,t){e.call(WKt),t.attr("d",_$())}function KXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function v$(e){return e.link.width>1||e.linkLineWidth>0}function JXe(e){var t=y$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function $Xe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function jKt(e,t,r,n){var i=NS.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(A1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),A1.raiseToTop(this),a.interactionState.dragInProgress=a.node,QXe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):XKt(e,o,a,n),ZKt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=NS.event.x,s=NS.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),QXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),rZe(e.filter(nZe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var u=r.node.originalX;r.node.x0=u-r.visibleWidth/2,r.node.x1=u+r.visibleWidth/2,iZe(r,i)}})}function YKt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function iZe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zp=Kl(),b$=ei(),j9=b$.numberFormat,QKt=oZe(),VS=Vc(),eJt=jl(),Dx=p$().cn,fC=b$._;function sZe(e){return e!==""}function GS(e,t){return e.filter(function(r){return r.key===t.traceId})}function lZe(e,t){Zp.select(e).select("path").style("fill-opacity",t),Zp.select(e).select("rect").style("fill-opacity",t)}function uZe(e){Zp.select(e).select("text.name").style("fill","black")}function fZe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function cZe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function hZe(e,t,r){t&&r&&GS(r,t).selectAll("."+Dx.sankeyLink).filter(fZe(t)).call(dZe.bind(0,t,r,!1))}function x$(e,t,r){t&&r&&GS(r,t).selectAll("."+Dx.sankeyLink).filter(fZe(t)).call(pZe.bind(0,t,r,!1))}function dZe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&GS(t,e).selectAll("."+Dx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&GS(t,e).selectAll("."+Dx.sankeyNode).filter(cZe(e)).call(hZe)}function pZe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&GS(t,e).selectAll("."+Dx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&GS(t,e).selectAll(Dx.sankeyNode).filter(cZe(e)).call(x$)}function rh(e,t){var r=e.hoverlabel||{},n=b$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}vZe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:rh(k,"bgcolor")||eJt.addOpacity(O.color,1),borderColor:rh(k,"bordercolor"),fontFamily:rh(k,"font.family"),fontSize:rh(k,"font.size"),fontColor:rh(k,"font.color"),fontWeight:rh(k,"font.weight"),fontStyle:rh(k,"font.style"),fontVariant:rh(k,"font.variant"),fontTextcase:rh(k,"font.textcase"),fontLineposition:rh(k,"font.lineposition"),fontShadow:rh(k,"font.shadow"),nameLength:rh(k,"namelength"),textAlign:rh(k,"align"),idealAlign:Zp.event.x"),color:rh(k,"bgcolor")||x.tinyColorHue,borderColor:rh(k,"bordercolor"),fontFamily:rh(k,"font.family"),fontSize:rh(k,"font.size"),fontColor:rh(k,"font.color"),fontWeight:rh(k,"font.weight"),fontStyle:rh(k,"font.style"),fontVariant:rh(k,"font.variant"),fontTextcase:rh(k,"font.textcase"),fontLineposition:rh(k,"font.lineposition"),fontShadow:rh(k,"font.shadow"),nameLength:rh(k,"namelength"),textAlign:rh(k,"align"),idealAlign:"left",hovertemplate:k.hovertemplate,hovertemplateLabels:U,eventData:[x.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});lZe(W,.85),uZe(W)}}},A=function(L,x,k){t._fullLayout.hovermode!==!1&&(Zp.select(L).call(x$,x,k),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zp.event,points:[x.node]})),VS.loneUnhover(n._hoverlayer.node()))};QKt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:l,follow:y,unhover:b,select:u},nodeEvents:{hover:C,follow:E,unhover:A,select:v}})}});var mZe=we(bw=>{"use strict";var tJt=Sc().overrideAll,rJt=Rd().getModuleCalcData,iJt=w$(),nJt=X1(),aJt=Em(),oJt=xp(),sJt=oh().prepSelect,A$=ei(),lJt=$l(),X9="sankey";bw.name=X9;bw.baseLayoutAttrOverrides=tJt({hoverlabel:nJt.hoverlabel},"plot","nested");bw.plot=function(e){var t=rJt(e.calcdata,X9)[0];iJt(e,t),bw.updateFx(e)};bw.clean=function(e,t,r,n){var i=n._has&&n._has(X9),a=t._has&&t._has(X9);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};bw.updateFx=function(e){for(var t=0;t{"use strict";yZe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";_Ze.exports={attributes:c$(),supplyDefaults:AXe(),calc:kXe(),plot:w$(),moduleType:"trace",name:"sankey",basePlotModule:mZe(),selectPoints:gZe(),categories:["noOpacity"],meta:{}}});var wZe=we((D3r,bZe)=>{"use strict";bZe.exports=xZe()});var TZe=we(HS=>{"use strict";var AZe=Cc();HS.name="indicator";HS.plot=function(e,t,r,n){AZe.plotBasePlot(HS.name,e,t,r,n)};HS.clean=function(e,t,r,n){AZe.cleanBasePlot(HS.name,e,t,r,n)}});var S$=we((O3r,LZe)=>{"use strict";var Fx=Su().extendFlat,MZe=Su().extendDeep,fJt=Sc().overrideAll,EZe=gc(),kZe=Bh(),cJt=zc().attributes,uh=Dd(),hJt=Lf().templatedArray,Z9=tT(),SZe=Xc().descriptionOnlyNumbers,T$=EZe({editType:"plot",colorEditType:"plot"}),cC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:kZe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},CZe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},dJt=hJt("step",MZe({},cC,{range:CZe}));LZe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:cJt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Fx({},T$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:SZe("value")},font:Fx({},T$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:SZe("value")},increasing:{symbol:{valType:"string",dflt:Z9.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:Z9.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:Z9.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:Z9.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Fx({},T$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:MZe({},cC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:kZe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:fJt({range:CZe,visible:Fx({},uh.visible,{dflt:!0}),tickmode:uh.minor.tickmode,nticks:uh.nticks,tick0:uh.tick0,dtick:uh.dtick,tickvals:uh.tickvals,ticktext:uh.ticktext,ticks:Fx({},uh.ticks,{dflt:"outside"}),ticklen:uh.ticklen,tickwidth:uh.tickwidth,tickcolor:uh.tickcolor,ticklabelstep:uh.ticklabelstep,showticklabels:uh.showticklabels,labelalias:uh.labelalias,tickfont:EZe({}),tickangle:uh.tickangle,tickformat:uh.tickformat,tickformatstops:uh.tickformatstops,tickprefix:uh.tickprefix,showtickprefix:uh.showtickprefix,ticksuffix:uh.ticksuffix,showticksuffix:uh.showticksuffix,separatethousands:uh.separatethousands,exponentformat:uh.exponentformat,minexponent:uh.minexponent,showexponent:uh.showexponent,editType:"plot"},"plot"),steps:dJt,threshold:{line:{color:Fx({},cC.line.color,{}),width:Fx({},cC.line.width,{dflt:1}),editType:"plot"},thickness:Fx({},cC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var M$=we((B3r,PZe)=>{"use strict";PZe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var RZe=we((q3r,IZe)=>{"use strict";var ug=ei(),K9=S$(),pJt=zc().defaults,zZe=Lf(),vJt=$d(),Y9=M$(),mJt=Pb(),yJt=q3(),gJt=l_(),_Jt=u_();function xJt(e,t,r,n){function i(x,k){return ug.coerce(e,t,K9,x,k)}pJt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var u=ug.extendFlat({},n.font);u.size=void 0,ug.coerceFont(i,"number.font",u),t.number.font.size===void 0&&(t.number.font.size=Y9.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var l;if(t._hasDelta){var f=ug.extendFlat({},n.font);f.size=void 0,ug.coerceFont(i,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||Y9.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),l=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var c=ug.extendFlat({},n.font);c.size=.25*(s||l||Y9.defaultNumberFontSize),ug.coerceFont(i,"title.font",c),i("title.text");var h,d,p,y;function b(x,k){return ug.coerce(h,d,K9.gauge,x,k)}function v(x,k){return ug.coerce(p,y,K9.gauge.axis,x,k)}if(t._hasGauge){h=e.gauge,h||(h={}),d=zZe.newContainer(t,"gauge"),b("shape");var C=t._isBullet=t.gauge.shape==="bullet";C||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var A=Y9.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",A),vJt(h,d,{name:"steps",handleItemDefaults:bJt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),p={},h&&(p=h.axis||{}),y=zZe.newContainer(d,"axis"),v("visible"),t._range=v("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};mJt(p,y,v,"linear"),_Jt(p,y,v,"linear",L),gJt(p,y,v,"linear",L),yJt(p,y,v,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function bJt(e,t){function r(n,i){return ug.coerce(e,t,K9.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}IZe.exports={supplyDefaults:xJt}});var FZe=we((N3r,DZe)=>{"use strict";function wJt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}DZe.exports={calc:wJt}});var VZe=we((U3r,UZe)=>{"use strict";var Mw=Kl(),AJt=(j2(),mb(W2)).interpolate,OZe=(j2(),mb(W2)).interpolateNumber,Ox=ei(),TJt=Ox.strScale,dC=Ox.strTranslate,SJt=Ox.rad2deg,MJt=Nh().MID_SHIFT,Sw=Mu(),ww=M$(),$9=Wf(),fp=wu(),EJt=pE(),kJt=mI(),CJt=Dd(),WS=jl(),E$={left:"start",center:"middle",right:"end"},Aw={left:0,center:.5,right:1},BZe=/[yzafpnµmkMGTPEZY]/;function pC(e){return e&&e.duration>0}UZe.exports=function(t,r,n,i){var a=t._fullLayout,o;pC(n)&&i&&(o=i()),Ox.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var u=s[0],l=u.trace,f=Mw.select(this),c=l._hasGauge,h=l._isAngular,d=l._isBullet,p=l.domain,y={w:a._size.w*(p.x[1]-p.x[0]),h:a._size.h*(p.y[1]-p.y[0]),l:a._size.l+a._size.w*p.x[0],r:a._size.r+a._size.w*(1-p.x[1]),t:a._size.t+a._size.h*(1-p.y[1]),b:a._size.b+a._size.h*p.y[0]},b=y.l+y.w/2,v=y.t+y.h/2,C=Math.min(y.w/2,y.h),E=ww.innerRadius*C,A,L,x,k=l.align||"center";if(L=v,!c)A=y.l+Aw[k]*y.w,x=function(W){return qZe(W,y.w,y.h)};else if(h&&(A=b,L=v+C/2,x=function(W){return RJt(W,.9*E)}),d){var S=ww.bulletPadding,m=1-ww.bulletNumberDomainSize+S;A=y.l+(m+(1-m)*Aw[k])*y.w,x=function(W){return qZe(W,(ww.bulletNumberDomainSize-S)*y.w,y.h)}}zJt(t,f,s,{numbersX:A,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,M;c&&(P={range:l.gauge.axis.range,color:l.gauge.bgcolor,line:{color:l.gauge.bordercolor,width:0},thickness:1},M={range:l.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:l.gauge.bordercolor,width:l.gauge.borderwidth},thickness:1});var O=f.selectAll("g.angular").data(h?s:[]);O.exit().remove();var F=f.selectAll("g.angularaxis").data(h?s:[]);F.exit().remove(),h&&PJt(t,f,s,{radius:C,innerRadius:E,gauge:O,layer:F,size:y,gaugeBg:P,gaugeOutline:M,transitionOpts:n,onComplete:o});var U=f.selectAll("g.bullet").data(d?s:[]);U.exit().remove();var G=f.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&LJt(t,f,s,{gauge:U,layer:G,size:y,gaugeBg:P,gaugeOutline:M,transitionOpts:n,onComplete:o});var j=f.selectAll("text.title").data(s);j.exit().remove(),j.enter().append("text").classed("title",!0),j.attr("text-anchor",function(){return d?E$.right:E$[l.title.align]}).text(l.title.text).call(Sw.font,l.title.font).call($9.convertToTspans,t),j.attr("transform",function(){var W=y.l+y.w*Aw[l.title.align],N,H=ww.titlePadding,re=Sw.bBox(j.node());if(c){if(h)if(l.gauge.axis.visible){var ae=Sw.bBox(F.node());N=ae.top-H-re.bottom}else N=y.t+y.h/2-C/2-re.bottom-H;d&&(N=L-(re.top+re.bottom)/2,W=y.l-ww.bulletPadding*y.w)}else N=l._numbersTop-H-re.bottom;return dC(W,N)})})};function LJt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,u=n.gaugeOutline,l=n.size,f=i.domain,c=n.transitionOpts,h=n.onComplete,d,p,y,b,v;a.enter().append("g").classed("bullet",!0),a.attr("transform",dC(l.l,l.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var C=l.h,E=i.gauge.bar.thickness*C,A=f.x[0],L=f.x[0]+(f.x[1]-f.x[0])*(i._hasNumber||i._hasDelta?1-ww.bulletNumberDomainSize:1);d=hC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[A,L],d.setScale(),p=fp.calcTicks(d),y=fp.makeTransTickFn(d),b=fp.getTickSigns(d)[2],v=l.t+l.h,d.visible&&(fp.drawTicks(e,d,{vals:d.ticks==="inside"?fp.clipEnds(d,p):p,layer:o,path:fp.makeTickPath(d,v,b),transFn:y}),fp.drawLabels(e,d,{vals:p,layer:o,transFn:y,labelFns:fp.makeLabelFns(d,v)}));function x(F){F.attr("width",function(U){return Math.max(0,d.c2p(U.range[1])-d.c2p(U.range[0]))}).attr("x",function(U){return d.c2p(U.range[0])}).attr("y",function(U){return .5*(1-U.thickness)*C}).attr("height",function(U){return U.thickness*C})}var k=[s].concat(i.gauge.steps),S=a.selectAll("g.bg-bullet").data(k);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(x).call(Tw),S.exit().remove();var m=a.selectAll("g.value-bullet").data([i.gauge.bar]);m.enter().append("g").classed("value-bullet",!0).append("rect"),m.select("rect").attr("height",E).attr("y",(C-E)/2).call(Tw),pC(c)?m.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):m.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),m.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),M=a.selectAll("g.threshold-bullet").data(P);M.enter().append("g").classed("threshold-bullet",!0).append("line"),M.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*C).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*C).call(WS.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),M.exit().remove();var O=a.selectAll("g.gauge-outline").data([u]);O.enter().append("g").classed("gauge-outline",!0).append("rect"),O.select("rect").call(x).call(Tw),O.exit().remove()}function PJt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,u=n.gaugeBg,l=n.gaugeOutline,f=[a.l+a.w/2,a.t+a.h/2+o/2],c=n.gauge,h=n.layer,d=n.transitionOpts,p=n.onComplete,y=Math.PI/2;function b(me){var Ce=i.gauge.axis.range[0],Ee=i.gauge.axis.range[1],de=(me-Ce)/(Ee-Ce)*Math.PI-y;return de<-y?-y:de>y?y:de}function v(me){return Mw.svg.arc().innerRadius((s+o)/2-me/2*(o-s)).outerRadius((s+o)/2+me/2*(o-s)).startAngle(-y)}function C(me){me.attr("d",function(Ce){return v(Ce.thickness).startAngle(b(Ce.range[0])).endAngle(b(Ce.range[1]))()})}var E,A,L,x;c.enter().append("g").classed("angular",!0),c.attr("transform",dC(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=hC(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var k=function(me){return(E.range[0]-me.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},S={},m=fp.makeLabelFns(E,0),P=m.labelStandoff;S.xFn=function(me){var Ce=k(me);return Math.cos(Ce)*P},S.yFn=function(me){var Ce=k(me),Ee=Math.sin(Ce)>0?.2:1;return-Math.sin(Ce)*(P+me.fontSize*Ee)+Math.abs(Math.cos(Ce))*(me.fontSize*MJt)},S.anchorFn=function(me){var Ce=k(me),Ee=Math.cos(Ce);return Math.abs(Ee)<.1?"middle":Ee>0?"start":"end"},S.heightFn=function(me,Ce,Ee){var de=k(me);return-.5*(1+Math.sin(de))*Ee};var M=function(me){return dC(f[0]+o*Math.cos(me),f[1]-o*Math.sin(me))};L=function(me){return M(k(me))};var O=function(me){var Ce=k(me);return M(Ce)+"rotate("+-SJt(Ce)+")"};if(A=fp.calcTicks(E),x=fp.getTickSigns(E)[2],E.visible){x=E.ticks==="inside"?-1:1;var F=(E.linewidth||1)/2;fp.drawTicks(e,E,{vals:A,layer:h,path:"M"+x*F+",0h"+x*E.ticklen,transFn:O}),fp.drawLabels(e,E,{vals:A,layer:h,transFn:L,labelFns:S})}var U=[u].concat(i.gauge.steps),G=c.selectAll("g.bg-arc").data(U);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(C).call(Tw),G.exit().remove();var j=v(i.gauge.bar.thickness),W=c.selectAll("g.value-arc").data([i.gauge.bar]);W.enter().append("g").classed("value-arc",!0).append("path");var N=W.select("path");pC(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",IJt(j,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?j.endAngle(b(r[0].y)):"M0,0Z"),N.call(Tw),W.exit().remove(),U=[];var H=i.gauge.threshold.value;(H||H===0)&&U.push({range:[H,H],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=c.selectAll("g.threshold-arc").data(U);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(C).call(Tw),re.exit().remove();var ae=c.selectAll("g.gauge-outline").data([l]);ae.enter().append("g").classed("gauge-outline",!0).append("path"),ae.select("path").call(C).call(Tw),ae.exit().remove()}function zJt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",u=E$[s],l=n.transitionOpts,f=n.onComplete,c=Ox.ensureSingle(t,"g","numbers"),h,d,p,y=[];i._hasNumber&&y.push("number"),i._hasDelta&&(y.push("delta"),i.delta.position==="left"&&y.reverse());var b=c.selectAll("text").data(y);b.enter().append("text"),b.attr("text-anchor",function(){return u}).attr("class",function(M){return M}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function v(M,O,F,U){if(M.match("s")&&F>=0!=U>=0&&!O(F).slice(-1).match(BZe)&&!O(U).slice(-1).match(BZe)){var G=M.slice().replace("s","f").replace(/\d+/,function(W){return parseInt(W)-1}),j=hC(e,{tickformat:G});return function(W){return Math.abs(W)<1?fp.tickText(j,W).text:O(W)}}else return O}function C(){var M=hC(e,{tickformat:i.number.valueformat},i._range);M.setScale(),fp.prepTicks(M);var O=function(W){return fp.tickText(M,W).text},F=i.number.suffix,U=i.number.prefix,G=c.select("text.number");function j(){var W=typeof r[0].y=="number"?U+O(r[0].y)+F:"-";G.text(W).call(Sw.font,i.number.font).call($9.convertToTspans,e)}return pC(l)?G.transition().duration(l.duration).ease(l.easing).each("end",function(){j(),f&&f()}).each("interrupt",function(){j(),f&&f()}).attrTween("text",function(){var W=Mw.select(this),N=OZe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var H=v(i.number.valueformat,O,r[0].lastY,r[0].y);return function(re){W.text(U+H(N(re))+F)}}):j(),h=NZe(U+O(r[0].y)+F,i.number.font,u,e),G}function E(){var M=hC(e,{tickformat:i.delta.valueformat},i._range);M.setScale(),fp.prepTicks(M);var O=function(re){return fp.tickText(M,re).text},F=i.delta.suffix,U=i.delta.prefix,G=function(re){var ae=i.delta.relative?re.relativeDelta:re.delta;return ae},j=function(re,ae){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+U+ae(re)+F},W=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=c.select("text.delta");N.call(Sw.font,i.delta.font).call(WS.fill,W({delta:i._deltaLastValue}));function H(){N.text(j(G(r[0]),O)).call(WS.fill,W(r[0])).call($9.convertToTspans,e)}return pC(l)?N.transition().duration(l.duration).ease(l.easing).tween("text",function(){var re=Mw.select(this),ae=G(r[0]),me=i._deltaLastValue,Ce=v(i.delta.valueformat,O,me,ae),Ee=OZe(me,ae);return i._deltaLastValue=ae,function(de){re.text(j(Ee(de),Ce)),re.call(WS.fill,W({delta:Ee(de)}))}}).each("end",function(){H(),f&&f()}).each("interrupt",function(){H(),f&&f()}):H(),d=NZe(j(G(r[0]),O),i.delta.font,u,e),N}var A=i.mode+i.align,L;if(i._hasDelta&&(L=E(),A+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,A+=i.delta.increasing.symbol+i.delta.decreasing.symbol,p=d),i._hasNumber&&(C(),A+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,p=h),i._hasDelta&&i._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],k=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,m,P=.75*i.delta.font.size;i.delta.position==="left"&&(S=J9(i,"deltaPos",0,-1*(h.width*Aw[i.align]+d.width*(1-Aw[i.align])+P),A,Math.min),m=x[1]-k[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="right"&&(S=J9(i,"deltaPos",0,h.width*(1-Aw[i.align])+d.width*Aw[i.align]+P,A,Math.max),m=x[1]-k[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="bottom"&&(S=null,m=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(S=null,m=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:S,dy:m})}(i._hasNumber||i._hasDelta)&&c.attr("transform",function(){var M=n.numbersScaler(p);A+=M[2];var O=J9(i,"numbersScale",1,M[0],A,Math.min),F;i._scaleNumbers||(O=1),i._isAngular?F=o-O*p.bottom:F=o-O*(p.top+p.bottom)/2,i._numbersTop=O*p.top+F;var U=p[s];s==="center"&&(U=(p.left+p.right)/2);var G=a-O*U;return G=J9(i,"numbersTranslate",0,G,A,Math.max),dC(G,F)+TJt(O)})}function Tw(e){e.each(function(t){WS.stroke(Mw.select(this),t.line.color)}).each(function(t){WS.fill(Mw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function IJt(e,t,r){return function(){var n=AJt(t,r);return function(i){return e.endAngle(n(i))()}}}function hC(e,t,r){var n=e._fullLayout,i=Ox.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(u,l){return Ox.coerce(i,a,CJt,u,l)}return EJt(i,a,s,o,n),kJt(i,a,s,o),a}function qZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function RJt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function NZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=Mw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call($9.convertToTspans,n).call(Sw.font,t),Sw.bBox(a.node())}function J9(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Ox.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var HZe=we((V3r,GZe)=>{"use strict";GZe.exports={moduleType:"trace",name:"indicator",basePlotModule:TZe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:S$(),supplyDefaults:RZe().supplyDefaults,calc:FZe().calc,plot:VZe(),meta:{}}});var jZe=we((G3r,WZe)=>{"use strict";WZe.exports=HZe()});var k$=we((W3r,KZe)=>{"use strict";var XZe=Qb(),Q9=Su().extendFlat,DJt=Sc().overrideAll,ZZe=gc(),FJt=zc().attributes,YZe=Xc().descriptionOnlyNumbers,H3r=KZe.exports=DJt({domain:FJt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:YZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:Q9({},XZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:Q9({},ZZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:YZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:Q9({},XZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:Q9({},ZZe({arrayOk:!0}))}},"calc","from-root")});var $Ze=we((j3r,JZe)=>{"use strict";var C$=ei(),OJt=k$(),BJt=zc().defaults;function qJt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(u,l){return u-l}),o=i.map(function(u){return a.indexOf(u)}),s=o.length;s{"use strict";var NJt=ag().wrap;QZe.exports=function(){return NJt({})}});var L$=we((Z3r,tYe)=>{"use strict";tYe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var fYe=we((Y3r,uYe)=>{"use strict";var rYe=L$(),z$=Su().extendFlat,UJt=ku(),VJt=Jd().isTypedArray,eO=Jd().isArrayOrTypedArray;uYe.exports=function(t,r){var n=P$(r.cells.values),i=function(m){return m.slice(r.header.values.length,m.length)},a=P$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=P$(a));var o=a.concat(i(n).map(function(){return lYe((a[0]||[""]).length)})),s=r.domain,u=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),l=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),f=r.header.values.length?o[0].map(function(){return r.header.height}):[rYe.emptyHeaderHeight],c=n.length?n[0].map(function(){return r.cells.height}):[],h=f.reduce(iYe,0),d=l-h,p=d+rYe.uplift,y=oYe(c,p),b=oYe(f,h),v=aYe(b,[]),C=aYe(y,v),E={},A=r._fullInput.columnorder;eO(A)&&(A=Array.from(A)),A=A.concat(i(n.map(function(m,P){return P})));var L=o.map(function(m,P){var M=eO(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return UJt(M)?Number(M):1}),x=L.reduce(iYe,0);L=L.map(function(m){return m/x*u});var k=Math.max(I$(r.header.line.width),I$(r.cells.line.width)),S={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:u,maxLineWidth:k,height:l,columnOrder:A,groupHeight:l,rowBlocks:C,headerRowBlocks:v,scrollY:0,cells:z$({},r.cells,{values:n}),headerCells:z$({},r.header,{values:o}),gdColumns:o.map(function(m){return m[0]}),gdColumnsOriginalOrder:o.map(function(m){return m[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(m,P){var M=E[m];E[m]=(M||0)+1;var O=m+"__"+E[m];return{key:O,label:m,specIndex:P,xIndex:A[P],xScale:nYe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return S.columns.forEach(function(m){m.calcdata=S,m.x=nYe(m)}),S};function I$(e){if(eO(e)){for(var t=0,r=0;r=t||l===e.length-1)&&(r[i]=o,o.key=u++,o.firstRowIndex=s,o.lastRowIndex=l,o=sYe(),i+=a,s=l+1,a=0);return r}function sYe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var cYe=we(R$=>{"use strict";var tO=Su().extendFlat;R$.splitToPanels=function(e){var t=[0,0],r=tO({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:tO({},e.calcdata,{cells:e.calcdata.headerCells})}),n=tO({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=tO({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};R$.splitToCells=function(e){var t=GJt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function GJt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var H$=we((J3r,wYe)=>{"use strict";var uu=L$(),Hc=Kl(),D$=ei(),HJt=D$.numberFormat,pc=ag(),F$=Mu(),WJt=Wf(),jJt=ei().raiseToTop,lm=ei().strTranslate,XJt=ei().cancelTransition,ZJt=fYe(),gYe=cYe(),hYe=jl();wYe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+uu.cn.table).data(r.map(function(C){var E=pc.unwrap(C),A=E.trace;return ZJt(t,A)}),pc.keyFun);i.exit().remove(),i.enter().append("g").classed(uu.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(C){return C.width+C.size.l+C.size.r}).attr("height",function(C){return C.height+C.size.t+C.size.b}).attr("transform",function(C){return lm(C.translateX,C.translateY)});var a=i.selectAll("."+uu.cn.tableControlView).data(pc.repeat,pc.keyFun),o=a.enter().append("g").classed(uu.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(C){a.filter(function(E){return C===E}).call(vC,t)}).on(s,function(C){if(!C.scrollbarState.wheeling){C.scrollbarState.wheeling=!0;var E=C.scrollY+Hc.event.deltaY,A=iO(t,a,null,E)(C);A||(Hc.event.stopPropagation(),Hc.event.preventDefault()),C.scrollbarState.wheeling=!1}}).call(vC,t,!0)}a.attr("transform",function(C){return lm(C.size.l,C.size.t)});var u=a.selectAll("."+uu.cn.scrollBackground).data(pc.repeat,pc.keyFun);u.enter().append("rect").classed(uu.cn.scrollBackground,!0).attr("fill","none"),u.attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),a.each(function(C){F$.setClipUrl(Hc.select(this),dYe(t,C),t)});var l=a.selectAll("."+uu.cn.yColumn).data(function(C){return C.columns},pc.keyFun);l.enter().append("g").classed(uu.cn.yColumn,!0),l.exit().remove(),l.attr("transform",function(C){return lm(C.x,0)}),n&&l.call(Hc.behavior.drag().origin(function(C){var E=Hc.select(this);return mYe(E,C,-uu.uplift),jJt(this),C.calcdata.columnDragInProgress=!0,vC(a.filter(function(A){return C.calcdata.key===A.key}),t),C}).on("drag",function(C){var E=Hc.select(this),A=function(k){return(C===k?Hc.event.x:k.x)+k.columnWidth/2};C.x=Math.max(-uu.overdrag,Math.min(C.calcdata.width+uu.overdrag-C.columnWidth,Hc.event.x));var L=_Ye(l).filter(function(k){return k.calcdata.key===C.calcdata.key}),x=L.sort(function(k,S){return A(k)-A(S)});x.forEach(function(k,S){k.xIndex=S,k.x=C===k?k.x:k.xScale(k)}),l.filter(function(k){return C!==k}).transition().ease(uu.transitionEase).duration(uu.transitionDuration).attr("transform",function(k){return lm(k.x,0)}),E.call(XJt).attr("transform",lm(C.x,-uu.uplift))}).on("dragend",function(C){var E=Hc.select(this),A=C.calcdata;C.x=C.xScale(C),C.calcdata.columnDragInProgress=!1,mYe(E,C,0),n$t(t,A,A.columns.map(function(L){return L.xIndex}))})),l.each(function(C){F$.setClipUrl(Hc.select(this),pYe(t,C),t)});var f=l.selectAll("."+uu.cn.columnBlock).data(gYe.splitToPanels,pc.keyFun);f.enter().append("g").classed(uu.cn.columnBlock,!0).attr("id",function(C){return C.key}),f.style("cursor",function(C){return C.dragHandle?"ew-resize":C.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var c=f.filter(a$t),h=f.filter(U$);n&&h.call(Hc.behavior.drag().origin(function(C){return Hc.event.stopPropagation(),C}).on("drag",iO(t,a,-1)).on("dragend",function(){})),O$(t,a,c,f),O$(t,a,h,f);var d=a.selectAll("."+uu.cn.scrollAreaClip).data(pc.repeat,pc.keyFun);d.enter().append("clipPath").classed(uu.cn.scrollAreaClip,!0).attr("id",function(C){return dYe(t,C)});var p=d.selectAll("."+uu.cn.scrollAreaClipRect).data(pc.repeat,pc.keyFun);p.enter().append("rect").classed(uu.cn.scrollAreaClipRect,!0).attr("x",-uu.overdrag).attr("y",-uu.uplift).attr("fill","none"),p.attr("width",function(C){return C.width+2*uu.overdrag}).attr("height",function(C){return C.height+uu.uplift});var y=l.selectAll("."+uu.cn.columnBoundary).data(pc.repeat,pc.keyFun);y.enter().append("g").classed(uu.cn.columnBoundary,!0);var b=l.selectAll("."+uu.cn.columnBoundaryClippath).data(pc.repeat,pc.keyFun);b.enter().append("clipPath").classed(uu.cn.columnBoundaryClippath,!0),b.attr("id",function(C){return pYe(t,C)});var v=b.selectAll("."+uu.cn.columnBoundaryRect).data(pc.repeat,pc.keyFun);v.enter().append("rect").classed(uu.cn.columnBoundaryRect,!0).attr("fill","none"),v.attr("width",function(C){return C.columnWidth+2*rO(C)}).attr("height",function(C){return C.calcdata.height+2*rO(C)+uu.uplift}).attr("x",function(C){return-rO(C)}).attr("y",function(C){return-rO(C)}),V$(null,h,a)};function rO(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function dYe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function pYe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function _Ye(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function vC(e,t,r){function n(l){var f=l.rowBlocks;return q$(f,f.length-1)+(f.length?nO(f[f.length-1],1/0):1)}var i=e.selectAll("."+uu.cn.scrollbarKit).data(pc.repeat,pc.keyFun);i.enter().append("g").classed(uu.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(l){var f=l.scrollbarState;f.totalHeight=n(l),f.scrollableAreaHeight=l.groupHeight-B$(l),f.currentlyVisibleHeight=Math.min(f.totalHeight,f.scrollableAreaHeight),f.ratio=f.currentlyVisibleHeight/f.totalHeight,f.barLength=Math.max(f.ratio*f.currentlyVisibleHeight,uu.goldenRatio*uu.scrollbarWidth),f.barWiggleRoom=f.currentlyVisibleHeight-f.barLength,f.wiggleRoom=Math.max(0,f.totalHeight-f.scrollableAreaHeight),f.topY=f.barWiggleRoom===0?0:l.scrollY/f.wiggleRoom*f.barWiggleRoom,f.bottomY=f.topY+f.barLength,f.dragMultiplier=f.wiggleRoom/f.barWiggleRoom}).attr("transform",function(l){var f=l.width+uu.scrollbarWidth/2+uu.scrollbarOffset;return lm(f,B$(l))});var a=i.selectAll("."+uu.cn.scrollbar).data(pc.repeat,pc.keyFun);a.enter().append("g").classed(uu.cn.scrollbar,!0);var o=a.selectAll("."+uu.cn.scrollbarSlider).data(pc.repeat,pc.keyFun);o.enter().append("g").classed(uu.cn.scrollbarSlider,!0),o.attr("transform",function(l){return lm(0,l.scrollbarState.topY||0)});var s=o.selectAll("."+uu.cn.scrollbarGlyph).data(pc.repeat,pc.keyFun);s.enter().append("line").classed(uu.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",uu.scrollbarWidth).attr("stroke-linecap","round").attr("y1",uu.scrollbarWidth/2),s.attr("y2",function(l){return l.scrollbarState.barLength-uu.scrollbarWidth/2}).attr("stroke-opacity",function(l){return l.columnDragInProgress||!l.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(uu.scrollbarHideDelay).duration(uu.scrollbarHideDuration).attr("stroke-opacity",0);var u=a.selectAll("."+uu.cn.scrollbarCaptureZone).data(pc.repeat,pc.keyFun);u.enter().append("line").classed(uu.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",uu.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(l){var f=Hc.event.y,c=this.getBoundingClientRect(),h=l.scrollbarState,d=f-c.top,p=Hc.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||iO(t,e,null,p(d-h.barLength/2))(l)}).call(Hc.behavior.drag().origin(function(l){return Hc.event.stopPropagation(),l.scrollbarState.scrollbarScrollInProgress=!0,l}).on("drag",iO(t,e)).on("dragend",function(){})),u.attr("y2",function(l){return l.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),u.remove())}function O$(e,t,r,n){var i=YJt(r),a=KJt(i);e$t(a);var o=JJt(a);r$t(o);var s=QJt(a),u=$Jt(s);t$t(u),xYe(u,t,n,e),G$(a)}function YJt(e){var t=e.selectAll("."+uu.cn.columnCells).data(pc.repeat,pc.keyFun);return t.enter().append("g").classed(uu.cn.columnCells,!0),t.exit().remove(),t}function KJt(e){var t=e.selectAll("."+uu.cn.columnCell).data(gYe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.columnCell,!0),t.exit().remove(),t}function JJt(e){var t=e.selectAll("."+uu.cn.cellRect).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(uu.cn.cellRect,!0),t}function $Jt(e){var t=e.selectAll("."+uu.cn.cellText).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(uu.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Hc.event.stopPropagation()}),t}function QJt(e){var t=e.selectAll("."+uu.cn.cellTextHolder).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function e$t(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Yp(n.size,i,r),color:Yp(n.color,i,r),family:Yp(n.family,i,r),weight:Yp(n.weight,i,r),style:Yp(n.style,i,r),variant:Yp(n.variant,i,r),textcase:Yp(n.textcase,i,r),lineposition:Yp(n.lineposition,i,r),shadow:Yp(n.shadow,i,r)};t.rowNumber=t.key,t.align=Yp(t.calcdata.cells.align,i,r),t.cellBorderWidth=Yp(t.calcdata.cells.line.width,i,r),t.font=a})}function t$t(e){e.each(function(t){F$.font(Hc.select(this),t.font)})}function r$t(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Hc.select(this);hYe.stroke(r,Yp(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),hYe.fill(r,Yp(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function xYe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,u=typeof s=="string",l=u&&s.match(/
/i),f=!u||l;i.mayHaveMarkup=u&&s.match(/[<&>]/);var c=i$t(s);i.latex=c;var h=c?"":Yp(i.calcdata.cells.prefix,a,o)||"",d=c?"":Yp(i.calcdata.cells.suffix,a,o)||"",p=c?null:Yp(i.calcdata.cells.format,a,o)||null,y=h+(p?HJt(p)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!f&&!c&&(b=vYe(y)),i.cellHeightMayIncrease=l||c||i.mayHaveMarkup||(b===void 0?vYe(y):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var v;if(i.wrappingNeeded){var C=uu.wrapSplitCharacter===" "?y.replace(/i&&n.push(a),i+=u}return n}function V$(e,t,r){var n=_Ye(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=q$(i,i.length),s=n.calcdata.groupHeight-B$(n),u=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),l=o$t(i,u,s);l.length===1&&(l[0]===i.length-1?l.unshift(l[0]-1):l.push(l[0]+1)),l[0]%2&&l.reverse(),t.each(function(f,c){f.page=l[c],f.scrollY=u}),t.attr("transform",function(f){var c=q$(f.rowBlocks,f.page)-f.scrollY;return lm(0,c)}),e&&(yYe(e,r,t,l,n.prevPages,n,0),yYe(e,r,t,l,n.prevPages,n,1),vC(r,e))}}function iO(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(c){return o.key===c.key}),u=r||o.scrollbarState.dragMultiplier,l=o.scrollY;o.scrollY=n===void 0?o.scrollY+u*Hc.event.dy:n;var f=s.selectAll("."+uu.cn.yColumn).selectAll("."+uu.cn.columnBlock).filter(U$);return V$(e,f,s),o.scrollY===l}}function yYe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var u=r.filter(function(l,f){return f===o&&n[f]!==i[f]});O$(e,t,u,r),i[o]=n[o]}))}function s$t(e,t,r,n){return function(){var a=Hc.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(y,b){s[b].width=this.getComputedTextLength()});var u=s[s.length-1].width,l=s.slice(0,-1),f=[],c,h,d=0,p=o.column.columnWidth-2*uu.cellPad;for(o.value="";l.length;)c=l.shift(),h=c.width+u,d+h>p&&(o.value+=f.join(uu.wrapSpacer)+uu.lineBreaker,f=[],d=0),f.push(c.text),d+=h;d&&(o.value+=f.join(uu.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),xYe(a.select("."+uu.cn.cellText),r,e,n),Hc.select(t.parentNode.parentNode).call(G$)}}function l$t(e,t,r,n,i){return function(){if(!i.settledY){var o=Hc.select(t.parentNode),s=N$(i),u=i.key-s.firstRowIndex,l=s.rows[u].rowHeight,f=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*uu.cellPad:l,c=Math.max(f,l),h=c-s.rows[u].rowHeight;h&&(s.rows[u].rowHeight=c,e.selectAll("."+uu.cn.columnCell).call(G$),V$(null,e.filter(U$),0),vC(r,n,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,y=p.getBoundingClientRect(),b=Hc.select(d.parentNode).select("."+uu.cn.cellRect).node().getBoundingClientRect(),v=d.transform.baseVal.consolidate(),C=b.top-y.top+(v?v.matrix.f:uu.cellPad);return lm(bYe(i,Hc.select(d.parentNode).select("."+uu.cn.cellTextHolder).node().getBoundingClientRect().width),C)}),i.settledY=!0}}}function bYe(e,t){switch(e.align){case"left":return uu.cellPad;case"right":return e.column.columnWidth-(t||0)-uu.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return uu.cellPad}}function G$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+nO(s,1/0)},0),n=N$(t),i=nO(n,t.key),a=i+r;return lm(0,a)}).selectAll("."+uu.cn.cellRect).attr("height",function(t){return f$t(N$(t),t.key).rowHeight})}function q$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=u$t(e[n]);return r}function nO(e,t){for(var r=0,n=0;n{"use strict";var c$t=Rd().getModuleCalcData,h$t=H$(),aO="table";oO.name=aO;oO.plot=function(e){var t=c$t(e.calcdata,aO)[0];t.length&&h$t(e,t)};oO.clean=function(e,t,r,n){var i=n._has&&n._has(aO),a=t._has&&t._has(aO);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var SYe=we((Q3r,TYe)=>{"use strict";TYe.exports={attributes:k$(),supplyDefaults:$Ze(),calc:eYe(),plot:H$(),moduleType:"trace",name:"table",basePlotModule:AYe(),categories:["noOpacity"],meta:{}}});var EYe=we((eAr,MYe)=>{"use strict";MYe.exports=SYe()});var zYe=we((tAr,PYe)=>{"use strict";var kYe=gc(),CYe=Bh(),W$=Dd(),d$t=Xc().descriptionWithDates,p$t=Sc().overrideAll,LYe=Id().dash,j$=Su().extendFlat;PYe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:kYe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:W$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:j$({},W$.labelalias,{editType:"calc"}),tickfont:kYe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:d$t("tick label")},tickformatstops:p$t(W$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:CYe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:j$({},LYe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:j$({},LYe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:CYe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var lO=we((rAr,DYe)=>{"use strict";var v$t=gc(),IYe=zYe(),RYe=Bh(),sO=v$t({editType:"calc"}),m$t=Zc().zorder;sO.family.dflt='"Open Sans", verdana, arial, sans-serif';sO.size.dflt=12;sO.color.dflt=RYe.defaultLine;DYe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:IYe,baxis:IYe,font:sO,color:{valType:"color",dflt:RYe.defaultLine,editType:"plot"},zorder:m$t}});var BYe=we((iAr,OYe)=>{"use strict";var FYe=ei().isArray1D;OYe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||FYe(i))&&(!s||FYe(o))){var u=a?i.length:1/0;s&&(u=Math.min(u,o.length)),r.a&&r.a.length&&(u=Math.min(u,r.a.length)),r.b&&r.b.length&&(u=Math.min(u,r.b.length)),r._length=u}else r._length=null;return!0}});var UYe=we((nAr,NYe)=>{"use strict";var y$t=lO(),qYe=jl().addOpacity,g$t=$l(),mC=ei(),_$t=Pb(),x$t=l_(),b$t=u_(),w$t=dI(),A$t=xy(),T$t=j3();NYe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=y$t[i+"axis"];function s(m,P){return mC.coerce(t,r,o,m,P)}function u(m,P){return mC.coerce2(t,r,o,m,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var l=s("type");if(l==="-"&&(n.data&&S$t(r,n.data),r.type==="-"?r.type="linear":l=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,l==="date"){var f=g$t.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",n.calendar)}A$t(r,n.fullLayout),r.c2p=mC.identity;var c=s("color",n.dfltColor),h=c===t.color?c:a.color,d=s("title.text");d&&(mC.coerceFont(s,"title.font",a,{overrideDflt:{size:mC.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var p=s("autorange",!r.isValidRange(t.range));p&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),_$t(t,r,s,l),b$t(t,r,s,l,n),x$t(t,r,s,l,n),w$t(t,r,s,{data:n.data,dataAttr:i});var y=u("gridcolor",qYe(c,.3)),b=u("gridwidth"),v=u("griddash"),C=s("showgrid");C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=u("startlinecolor",c),A=u("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!A);L||(delete r.startlinecolor,delete r.startlinewidth);var x=u("endlinecolor",c),k=u("endlinewidth",b),S=s("endline",r.showgrid||!!x||!!k);return S||(delete r.endlinecolor,delete r.endlinewidth),C?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",v),s("minorgridcolor",qYe(y,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function S$t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=T$t(t,a,{autotypenumbers:e.autotypenumbers})}}});var GYe=we((aAr,VYe)=>{"use strict";var M$t=UYe(),E$t=Lf();VYe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),k$t(t,r,n,a)};function k$t(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},u=E$t.newContainer(t,a),l={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};M$t(s,u,l),u._categories=u._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var jYe=we((oAr,WYe)=>{"use strict";var HYe=ei(),C$t=BYe(),L$t=GYe(),P$t=lO(),z$t=Bh();WYe.exports=function(t,r,n,i){function a(u,l){return HYe.coerce(t,r,P$t,u,l)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",z$t.defaultLine);if(HYe.coerceFont(a,"font",i.font),a("carpet"),L$t(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=C$t(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var X$=we((sAr,XYe)=>{"use strict";var I$t=ei().isArrayOrTypedArray;XYe.exports=function(t,r,n){var i;for(I$t(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";ZYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";YYe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),u=a[1]*t.dpdy(n),l=1,f=1;if(o){var c=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/c/h;f=Math.max(0,d)}var p=Math.atan2(u,s)*180/Math.PI;return p<-90?(p+=180,l=-l):p>90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(i,r,n),offsetMultplier:f}}});var nKe=we((fAr,iKe)=>{"use strict";var hO=Kl(),uO=Mu(),fO=X$(),QYe=Z$(),yC=KYe(),Y$=Wf(),Uv=ei(),eKe=Uv.strRotate,cO=Uv.strTranslate,tKe=Nh();iKe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,u=t._fullLayout,l=u._clips;Uv.makeTraceGroups(i,n,"trace").each(function(f){var c=hO.select(this),h=f[0],d=h.trace,p=d.aaxis,y=d.baxis,b=Uv.ensureSingle(c,"g","minorlayer"),v=Uv.ensureSingle(c,"g","majorlayer"),C=Uv.ensureSingle(c,"g","boundarylayer"),E=Uv.ensureSingle(c,"g","labellayer");c.style("opacity",d.opacity),jS(o,s,v,p,"a",p._gridlines,!0,a),jS(o,s,v,y,"b",y._gridlines,!0,a),jS(o,s,b,p,"a",p._minorgridlines,!0,a),jS(o,s,b,y,"b",y._minorgridlines,!0,a),jS(o,s,C,p,"a-boundary",p._boundarylines,a),jS(o,s,C,y,"b-boundary",y._boundarylines,a);var A=JYe(t,o,s,d,h,E,p._labels,"a-label"),L=JYe(t,o,s,d,h,E,y._labels,"b-label");D$t(t,E,d,h,o,s,A,L),R$t(d,h,l,o,s)})};function R$t(e,t,r,n,i){var a,o,s,u,l=r.select("#"+e._clipPathId);l.size()||(l=r.append("clipPath").classed("carpetclip",!0));var f=Uv.ensureSingle(l,"path","carpetboundary"),c=t.clipsegments,h=[];for(u=0;u0?"start":"end","data-notex":1}).call(uO.font,c.font).text(c.text).call(Y$.convertToTspans,e),v=uO.bBox(this);b.attr("transform",cO(d.p[0],d.p[1])+eKe(d.angle)+cO(c.axis.labelpadding*y,v.height*.3)),l=Math.max(l,v.width+c.axis.labelpadding)}),u.exit().remove(),f.maxExtent=l,f}function D$t(e,t,r,n,i,a,o,s){var u,l,f,c,h=Uv.aggNums(Math.min,null,r.a),d=Uv.aggNums(Math.max,null,r.a),p=Uv.aggNums(Math.min,null,r.b),y=Uv.aggNums(Math.max,null,r.b);u=.5*(h+d),l=p,f=r.ab2xy(u,l,!0),c=r.dxyda_rough(u,l),o.angle===void 0&&Uv.extendFlat(o,yC(r,i,a,f,r.dxydb_rough(u,l))),$Ye(e,t,r,n,f,c,r.aaxis,i,a,o,"a-title"),u=h,l=.5*(p+y),f=r.ab2xy(u,l,!0),c=r.dxydb_rough(u,l),s.angle===void 0&&Uv.extendFlat(s,yC(r,i,a,f,r.dxyda_rough(u,l))),$Ye(e,t,r,n,f,c,r.baxis,i,a,s,"b-title")}var rKe=tKe.LINE_SPACING,F$t=(1-tKe.MID_SHIFT)/rKe+1;function $Ye(e,t,r,n,i,a,o,s,u,l,f){var c=[];o.title.text&&c.push(o.title.text);var h=t.selectAll("text."+f).data(c),d=l.maxExtent;h.enter().append("text").classed(f,!0),h.each(function(){var p=yC(r,s,u,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var y=o.title.font.size;d+=y+o.title.offset;var b=l.angle+(l.flip<0?180:0),v=(b-p.angle+450)%360,C=v>90&&v<270,E=hO.select(this);E.text(o.title.text).call(Y$.convertToTspans,e),C&&(d=(-Y$.lineCount(E)+F$t)*rKe*y-d),E.attr("transform",cO(p.p[0],p.p[1])+eKe(p.angle)+cO(0,d)).attr("text-anchor","middle").call(uO.font,o.title.font)}),h.exit().remove()}});var oKe=we((cAr,aKe)=>{"use strict";var dO=ei().isArrayOrTypedArray;aKe.exports=function(e,t,r){var n,i,a,o,s,u,l=[],f=dO(e)?e.length:e,c=dO(t)?t.length:t,h=dO(e)?e:null,d=dO(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(f-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(c-1));var p,y=1/0,b=-1/0;for(i=0;i{"use strict";var sKe=ei().isArrayOrTypedArray;uKe.exports=function(e){return lKe(e,0)};function lKe(e,t){if(!sKe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var O$t=wu(),Bx=Su().extendFlat;cKe.exports=function(t,r,n){var i,a,o,s,u,l,f,c,h,d,p,y,b,v,C=t["_"+r],E=t[r+"axis"],A=E._gridlines=[],L=E._minorgridlines=[],x=E._boundarylines=[],k=t["_"+n],S=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=C.slice());var m=t._xctrl,P=t._yctrl,M=m[0].length,O=m.length,F=t._a.length,U=t._b.length;O$t.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function j(N){var H,re,ae,me,Ce,Ee,de,te,Se,Te,be,He,Ie=[],ge=[],Be={};if(r==="b")for(re=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(U-2,re))),me=re-ae,Be.length=U,Be.crossLength=F,Be.xy=function(ce){return t.evalxy([],ce,re)},Be.dxy=function(ce,je){return t.dxydi([],ce,ae,je,me)},H=0;H0&&(Se=t.dxydi([],H-1,ae,0,me),Ie.push(Ce[0]+Se[0]/3),ge.push(Ce[1]+Se[1]/3),Te=t.dxydi([],H-1,ae,1,me),Ie.push(te[0]-Te[0]/3),ge.push(te[1]-Te[1]/3)),Ie.push(te[0]),ge.push(te[1]),Ce=te;else for(H=t.a2i(N),Ee=Math.floor(Math.max(0,Math.min(F-2,H))),de=H-Ee,Be.length=F,Be.crossLength=U,Be.xy=function(ce){return t.evalxy([],H,ce)},Be.dxy=function(ce,je){return t.dxydj([],Ee,ce,de,je)},re=0;re0&&(be=t.dxydj([],Ee,re-1,de,0),Ie.push(Ce[0]+be[0]/3),ge.push(Ce[1]+be[1]/3),He=t.dxydj([],Ee,re-1,de,1),Ie.push(te[0]-He[0]/3),ge.push(te[1]-He[1]/3)),Ie.push(te[0]),ge.push(te[1]),Ce=te;return Be.axisLetter=r,Be.axis=E,Be.crossAxis=S,Be.value=N,Be.constvar=n,Be.index=c,Be.x=Ie,Be.y=ge,Be.smoothing=S.smoothing,Be}function W(N){var H,re,ae,me,Ce,Ee=[],de=[],te={};if(te.length=C.length,te.crossLength=k.length,r==="b")for(ae=Math.max(0,Math.min(U-2,N)),Ce=Math.min(1,Math.max(0,N-ae)),te.xy=function(Se){return t.evalxy([],Se,N)},te.dxy=function(Se,Te){return t.dxydi([],Se,ae,Te,Ce)},H=0;HC.length-1)&&A.push(Bx(W(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l;cC.length-1)&&!(p<0||p>C.length-1))for(y=C[o],b=C[p],i=0;iC[C.length-1])&&L.push(Bx(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&x.push(Bx(W(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Bx(W(C.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,u=[Math.floor((C[C.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((C[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,H){return N-H}),l=u[0],f=u[1],c=l;c<=f;c++)h=E.tick0+E.dtick*c,A.push(Bx(j(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l-1;cC[C.length-1])&&L.push(Bx(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&x.push(Bx(j(C[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Bx(j(C[C.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var mKe=we((pAr,vKe)=>{"use strict";var dKe=wu(),pKe=Su().extendFlat;vKe.exports=function(t,r){var n,i,a,o,s,u=r._labels=[],l=r._gridlines;for(n=0;n{"use strict";yKe.exports=function(t,r,n,i){var a,o,s,u=[],l=!!n.smoothing,f=!!i.smoothing,c=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=c;a++)o[a]=t[0][a],s[a]=r[0][a];for(u.push({x:o,y:s,bicubic:l}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][c],s[a]=r[a][c];for(u.push({x:o,y:s,bicubic:f}),a=c,o=[],s=[];a>=0;a--)o[c-a]=t[h][a],s[c-a]=r[h][a];for(u.push({x:o,y:s,bicubic:l}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return u.push({x:o,y:s,bicubic:f}),u}});var xKe=we((mAr,_Ke)=>{"use strict";var B$t=ei();_Ke.exports=function(t,r,n){var i,a,o,s=[],u=[],l=t[0].length,f=t.length;function c(ae,me){var Ce=0,Ee,de=0;return ae>0&&(Ee=t[me][ae-1])!==void 0&&(de++,Ce+=Ee),ae0&&(Ee=t[me-1][ae])!==void 0&&(de++,Ce+=Ee),me0&&a0&&iS);return B$t.log("Smoother converged to",m,"after",M,"iterations"),t}});var wKe=we((yAr,bKe)=>{"use strict";bKe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var SKe=we((gAr,TKe)=>{"use strict";var AKe=.5;TKe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],u=n[1]-r[1],l=Math.pow(a*a+o*o,AKe/2),f=Math.pow(s*s+u*u,AKe/2),c=(f*f*a-l*l*s)*i,h=(f*f*o-l*l*u)*i,d=f*(l+f)*3,p=l*(l+f)*3;return[[r[0]+(d&&c/d),r[1]+(d&&h/d)],[r[0]-(p&&c/p),r[1]-(p&&h/p)]]}});var EKe=we((_Ar,MKe)=>{"use strict";var K$=SKe(),pO=ei().ensureArray;function XS(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}MKe.exports=function(t,r,n,i,a,o){var s,u,l,f,c,h,d,p,y,b,v=n[0].length,C=n.length,E=a?3*v-2:v,A=o?3*C-2:C;for(t=pO(t,A),r=pO(r,A),l=0;l{"use strict";kKe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,u,l){s||(s=[]);var f,c,h,d,p,y,b=Math.max(0,Math.min(Math.floor(u),a)),v=Math.max(0,Math.min(Math.floor(l),o)),C=Math.max(0,Math.min(1,u-b)),E=Math.max(0,Math.min(1,l-v));b*=3,v*=3;var A=C*C,L=A*C,x=1-C,k=x*x,S=k*x,m=E*E,P=m*E,M=1-E,O=M*M,F=O*M;for(y=0;y{"use strict";LKe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,y=1-o,b=y*y,v=y*o*2,C=-3*b,E=3*(b-v),A=3*(v-p),L=3*p,x=s*s,k=x*s,S=1-s,m=S*S,P=m*S;for(d=0;d{"use strict";zKe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,y=p*o,b=1-o,v=b*b,C=v*b,E=s*s,A=1-s,L=A*A,x=A*s*2,k=-3*L,S=3*(L-x),m=3*(x-E),P=3*E;for(d=0;d{"use strict";var RKe=wKe(),DKe=GL().findBin,q$t=EKe(),N$t=CKe(),U$t=PKe(),V$t=IKe();FKe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,u=r[0],l=r[i-1],f=n[0],c=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],p=h*RKe.RELATIVE_CULL_TOLERANCE,y=d*RKe.RELATIVE_CULL_TOLERANCE;u-=p,l+=p,f-=y,c+=y,t.isVisible=function(b,v){return b>u&&bf&&vl||vc},t.setScale=function(){var b=t._x,v=t._y,C=q$t(t._xctrl,t._yctrl,b,v,o.smoothing,s.smoothing);t._xctrl=C[0],t._yctrl=C[1],t.evalxy=N$t([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=U$t([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=V$t([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var v=Math.max(0,Math.floor(b[0]),i-2),C=b[0]-v;return(1-C)*r[v]+C*r[v+1]},t.j2b=function(b){var v=Math.max(0,Math.floor(b[1]),i-2),C=b[1]-v;return(1-C)*n[v]+C*n[v+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var v=Math.max(0,Math.min(DKe(b,r),i-2)),C=r[v],E=r[v+1];return Math.max(0,Math.min(i-1,v+(b-C)/(E-C)))},t.b2j=function(b){var v=Math.max(0,Math.min(DKe(b,n),a-2)),C=n[v],E=n[v+1];return Math.max(0,Math.min(a-1,v+(b-C)/(E-C)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,v){return t.evalxy([],b,v)},t.ab2xy=function(b,v,C){if(!C&&(br[i-1]|vn[a-1]))return[!1,!1];var E=t.a2i(b),A=t.b2j(v),L=t.evalxy([],E,A);if(C){var x=0,k=0,S=[],m,P,M,O;br[i-1]?(m=i-2,P=1,x=(b-r[i-1])/(r[i-1]-r[i-2])):(m=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-m),vn[a-1]?(M=a-2,O=1,k=(v-n[a-1])/(n[a-1]-n[a-2])):(M=Math.max(0,Math.min(a-2,Math.floor(A))),O=A-M),x&&(t.dxydi(S,m,M,P,O),L[0]+=S[0]*x,L[1]+=S[1]*x),k&&(t.dxydj(S,m,M,P,O),L[0]+=S[0]*k,L[1]+=S[1]*k)}return L},t.c2p=function(b,v,C){return[v.c2p(b[0]),C.c2p(b[1])]},t.p2x=function(b,v,C){return[v.p2c(b[0]),C.p2c(b[1])]},t.dadi=function(b){var v=Math.max(0,Math.min(r.length-2,b));return r[v+1]-r[v]},t.dbdj=function(b){var v=Math.max(0,Math.min(n.length-2,b));return n[v+1]-n[v]},t.dxyda=function(b,v,C,E){var A=t.dxydi(null,b,v,C,E),L=t.dadi(b,C);return[A[0]/L,A[1]/L]},t.dxydb=function(b,v,C,E){var A=t.dxydj(null,b,v,C,E),L=t.dbdj(v,E);return[A[0]/L,A[1]/L]},t.dxyda_rough=function(b,v,C){var E=h*(C||.1),A=t.ab2xy(b+E,v,!0),L=t.ab2xy(b-E,v,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dxydb_rough=function(b,v,C){var E=d*(C||.1),A=t.ab2xy(b,v+E,!0),L=t.ab2xy(b,v-E,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var WKe=we((TAr,HKe)=>{"use strict";var vO=wu(),BKe=ei().isArray1D,G$t=oKe(),qKe=fKe(),NKe=hKe(),UKe=mKe(),H$t=gKe(),VKe=hR(),GKe=xKe(),W$t=fR(),j$t=OKe();HKe.exports=function(t,r){var n=vO.getFromId(t,r.xaxis),i=vO.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,u=r.y,l=[];s&&BKe(s)&&l.push("x"),u&&BKe(u)&&l.push("y"),l.length&&W$t(r,a,o,"a","b",l);var f=r._a=r._a||r.a,c=r._b=r._b||r.b;s=r._x||r.x,u=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?f.length:f,p=o.cheatertype==="index"?c.length:c;s=G$t(d,p,r.cheaterslope)}r._x=s=VKe(s),r._y=u=VKe(u),GKe(s,f,c),GKe(u,f,c),j$t(r),r.setScale();var y=qKe(s),b=qKe(u),v=.5*(y[1]-y[0]),C=.5*(y[1]+y[0]),E=.5*(b[1]-b[0]),A=.5*(b[1]+b[0]),L=1.3;return y=[C-v*L,C+v*L],b=[A-E*L,A+E*L],r._extremes[n._id]=vO.findExtremes(n,y,{padded:!0}),r._extremes[i._id]=vO.findExtremes(i,b,{padded:!0}),NKe(r,"a","b"),NKe(r,"b","a"),UKe(r,a),UKe(r,o),h.clipsegments=H$t(r._xctrl,r._yctrl,a,o),h.x=s,h.y=u,h.a=f,h.b=c,[h]}});var XKe=we((SAr,jKe)=>{"use strict";jKe.exports={attributes:lO(),supplyDefaults:jYe(),plot:nKe(),calc:WKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Mh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var YKe=we((MAr,ZKe)=>{"use strict";ZKe.exports=XKe()});var J$=we((EAr,QKe)=>{"use strict";var X$t=Pm(),f0=Zc(),Z$t=Vf(),{hovertemplateAttrs:Y$t,texttemplateAttrs:K$t,templatefallbackAttrs:KKe}=Of(),JKe=nc(),qx=Su().extendFlat,um=f0.marker,ZS=f0.line,$Ke=um.line;QKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:qx({},f0.mode,{dflt:"markers"}),text:qx({},f0.text,{}),texttemplate:K$t({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:KKe({editType:"plot"}),hovertext:qx({},f0.hovertext,{}),line:{color:ZS.color,width:ZS.width,dash:ZS.dash,backoff:ZS.backoff,shape:qx({},ZS.shape,{values:["linear","spline"]}),smoothing:ZS.smoothing,editType:"calc"},connectgaps:f0.connectgaps,fill:qx({},f0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:X$t(),marker:qx({symbol:um.symbol,opacity:um.opacity,maxdisplayed:um.maxdisplayed,angle:um.angle,angleref:um.angleref,standoff:um.standoff,size:um.size,sizeref:um.sizeref,sizemin:um.sizemin,sizemode:um.sizemode,line:qx({width:$Ke.width,dash:$Ke.dash,editType:"calc"},JKe("marker.line")),gradient:um.gradient,editType:"calc"},JKe("marker")),textfont:f0.textfont,textposition:f0.textposition,selected:f0.selected,unselected:f0.unselected,hoverinfo:qx({},Z$t.hoverinfo,{flags:["a","b","text","name"]}),hoveron:f0.hoveron,hovertemplate:Y$t(),hovertemplatefallback:KKe(),zorder:f0.zorder}});var iJe=we((kAr,rJe)=>{"use strict";var eJe=ei(),J$t=Py(),YS=lc(),$$t=$v(),Q$t=R0(),tJe=cA(),eQt=D0(),tQt=Dm(),rQt=J$();rJe.exports=function(t,r,n,i){function a(h,d){return eJe.coerce(t,r,rQt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext");var l=u{"use strict";nJe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,u=Math.floor(a[1]),l=a[1]-u,f=i.evalxy([],o,u,s,l);return n.yLabel=f[1].toFixed(3),n}});var mO=we((LAr,oJe)=>{"use strict";oJe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var sJe=ku(),iQt=F0(),nQt=Ry(),aQt=O0(),oQt=B0().calcMarkerSize,sQt=mO();lJe.exports=function(t,r){var n=r._carpetTrace=sQt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,u,l=!1;for(i=0;i{"use strict";var lQt=yA(),fJe=wu(),uQt=Mu();cJe.exports=function(t,r,n,i){var a,o,s,u=n[0][0].carpet,l=fJe.getFromId(t,u.xaxis||"x"),f=fJe.getFromId(t,u.yaxis||"y"),c={xaxis:l,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var fQt=bA(),cQt=ei().fillText;dJe.exports=function(t,r,n,i){var a=fQt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index];o.a=c.a,o.b=c.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,p=h._module.formatLabels(c,h);o.yLabel=p.yLabel,delete o.text;var y=[];function b(E,A){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,y.push(L+": "+A.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var v=c.hi||h.hoverinfo,C=v.split("+");C.indexOf("all")!==-1&&(C=["a","b","text"]),C.indexOf("a")!==-1&&b(d.aaxis,c.a),C.indexOf("b")!==-1&&b(d.baxis,c.b),y.push("y: "+o.yLabel),C.indexOf("text")!==-1&&cQt(c,h,y),o.extraText=y.join("
")}return a}});var mJe=we((RAr,vJe)=>{"use strict";vJe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var gJe=we((DAr,yJe)=>{"use strict";yJe.exports={attributes:J$(),supplyDefaults:iJe(),colorbar:tp(),formatLabels:aJe(),calc:uJe(),plot:hJe(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:pJe(),selectPoints:wA(),eventData:mJe(),moduleType:"trace",name:"scattercarpet",basePlotModule:Mh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var xJe=we((FAr,_Je)=>{"use strict";_Je.exports=gJe()});var $$=we((OAr,bJe)=>{"use strict";var fm=qA(),T1=NE(),hQt=nc(),dQt=Su().extendFlat,fg=T1.contours;bJe.exports=dQt({carpet:{valType:"string",editType:"calc"},z:fm.z,a:fm.x,a0:fm.x0,da:fm.dx,b:fm.y,b0:fm.y0,db:fm.dy,text:fm.text,hovertext:fm.hovertext,transpose:fm.transpose,atype:fm.xtype,btype:fm.ytype,fillcolor:T1.fillcolor,autocontour:T1.autocontour,ncontours:T1.ncontours,contours:{type:fg.type,start:fg.start,end:fg.end,size:fg.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:fg.showlines,showlabels:fg.showlabels,labelfont:fg.labelfont,labelformat:fg.labelformat,operation:fg.operation,value:fg.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:T1.line.color,width:T1.line.width,dash:T1.line.dash,smoothing:T1.line.smoothing,editType:"plot"},zorder:T1.zorder},hQt("",{cLetter:"z",autoColorDflt:!1}))});var Q$=we((BAr,TJe)=>{"use strict";var wJe=ei(),pQt=sR(),AJe=$$(),vQt=XG(),mQt=PR(),yQt=zR();TJe.exports=function(t,r,n,i){function a(l,f){return wJe.coerce(t,r,AJe,l,f)}function o(l){return wJe.coerce2(t,r,AJe,l)}if(a("carpet"),t.a&&t.b){var s=pQt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var u=a("contours.type")==="constraint";u?vQt(t,r,a,i,n,{hasHover:!1}):(mQt(t,r,a,o),yQt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var kJe=we((qAr,EJe)=>{"use strict";var gQt=gp(),SJe=ei(),_Qt=fR(),xQt=hR(),bQt=dR(),wQt=pR(),MJe=mG(),AQt=Q$(),TQt=mO(),SQt=DG();EJe.exports=function(t,r){var n=r._carpetTrace=TQt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),AQt(a,r,r._defaultColor,t._fullLayout)}var o=MQt(t,r);return SQt(r,r._z),o}};function MQt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,u,l,f,c;n._minDtick=0,i._minDtick=0,SJe.isArray1D(t.z)&&_Qt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,u=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],u=u?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,l=t.b0||0,f=t.db||1,c=t._z=xQt(t._z||t.z,t.transpose),t._emptypoints=wQt(c),bQt(c,t._emptypoints);var h=SJe.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=MJe(t,d,o,s,h,n),y=t.ytype==="scaled"?"":u,b=MJe(t,y,l,f,c.length,i),v={a:p,b,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&gQt(e,t,{vals:c,containerStr:"",cLetter:"z"}),[v]}});var LJe=we((NAr,CJe)=>{"use strict";var EQt=ei().isArrayOrTypedArray;CJe.exports=function(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p,y,b,v=EQt(r)?"a":"b",C=v==="a"?e.aaxis:e.baxis,E=C.smoothing,A=v==="a"?e.a2i:e.b2j,L=v==="a"?r:n,x=v==="a"?n:r,k=v==="a"?t.a.length:t.b.length,S=v==="a"?t.b.length:t.a.length,m=Math.floor(v==="a"?e.b2j(x):e.a2i(x)),P=v==="a"?function(me){return e.evalxy([],me,m)}:function(me){return e.evalxy([],m,me)};E&&(o=Math.max(0,Math.min(S-2,m)),s=m-o,a=v==="a"?function(me,Ce){return e.dxydi([],me,o,Ce,s)}:function(me,Ce){return e.dxydj([],o,me,s,Ce)});var M=A(L[0]),O=A(L[1]),F=M0?Math.floor:Math.ceil,j=F>0?Math.ceil:Math.floor,W=F>0?Math.min:Math.max,N=F>0?Math.max:Math.min,H=G(M+U),re=j(O-U);f=P(M);var ae=[[f]];for(i=H;i*F{"use strict";var gO=Kl(),_O=X$(),DJe=Z$(),gC=Mu(),S1=ei(),kQt=OG(),CQt=BG(),Ew=DR(),yO=VE(),LQt=VG(),PQt=UG(),zQt=GG(),IQt=mO(),PJe=LJe();FJe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;S1.makeTraceGroups(i,n,"contour").each(function(s){var u=gO.select(this),l=s[0],f=l.trace,c=f._carpetTrace=IQt(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=l.a,p=l.b,y=f.contours,b=PQt(y,r,l),v=y.type==="constraint",C=y._operation,E=v?C==="="?"lines":"fill":y.coloring;function A(G){var j=c.ab2xy(G[0],G[1],!0);return[a.c2p(j[0]),o.c2p(j[1])]}var L=[[d[0],p[p.length-1]],[d[d.length-1],p[p.length-1]],[d[d.length-1],p[0]],[d[0],p[0]]];kQt(b);var x=(d[d.length-1]-d[0])*1e-8,k=(p[p.length-1]-p[0])*1e-8;CQt(b,x,k);var S=b;y.type==="constraint"&&(S=LQt(b,C)),RQt(b,A);var m,P,M,O,F=[];for(O=h.clipsegments.length-1;O>=0;O--)m=h.clipsegments[O],P=_O([],m.x,a.c2p),M=_O([],m.y,o.c2p),P.reverse(),M.reverse(),F.push(DJe(P,M,m.bicubic));var U="M"+F.join("L")+"Z";OQt(u,h.clipsegments,a,o,v,E),BQt(f,u,a,o,S,L,A,c,h,E,U),DQt(u,b,t,l,y,r,c),gC.setClipUrl(u,c._clipPathId,t)})};function RQt(e,t){var r,n,i,a,o,s,u,l,f;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function zJe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function IJe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function RJe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function OQt(e,t,r,n,i,a){var o,s,u,l,f=S1.ensureSingle(e,"g","contourbg"),c=f.selectAll("path").data(a==="fill"&&!i?[0]:[]);c.enter().append("path"),c.exit().remove();var h=[];for(l=0;l=0&&(d=P,y=b):Math.abs(h[1]-d[1])=0&&(d=P,y=b):S1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(y>=0)break;l+=S(h,d),h=d}if(y===t.edgepaths.length){S1.log("unclosed perimeter path");break}u=y,c=f.indexOf(u)===-1,c&&(u=f[0],l+=S(h,d)+"Z",h=null)}for(u=0;u{"use strict";BJe.exports={attributes:$$(),supplyDefaults:Q$(),colorbar:BR(),calc:kJe(),plot:OJe(),style:OR(),moduleType:"trace",name:"contourcarpet",basePlotModule:Mh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var UJe=we((GAr,NJe)=>{"use strict";NJe.exports=qJe()});var bO=we((HAr,jJe)=>{"use strict";var xO=ei().extendFlat,_C=Zc(),VJe=Xc().axisHoverFormat,{hovertemplateAttrs:NQt,templatefallbackAttrs:UQt}=Of(),HJe=Id().dash,VQt=g3(),WJe=tT(),GQt=WJe.INCREASING.COLOR,HQt=WJe.DECREASING.COLOR,eQ=_C.line;function GJe(e){return{line:{color:xO({},eQ.color,{dflt:e}),width:eQ.width,dash:HJe,editType:"style"},editType:"style"}}jJe.exports={xperiod:_C.xperiod,xperiod0:_C.xperiod0,xperiodalignment:_C.xperiodalignment,xhoverformat:VJe("x"),yhoverformat:VJe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:xO({},eQ.width,{}),dash:xO({},HJe,{}),editType:"style"},increasing:GJe(GQt),decreasing:GJe(HQt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:NQt({},{keys:["open","high","low","close"]}),hovertemplatefallback:UQt(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:xO({},VQt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:_C.zorder}});var tQ=we((WAr,XJe)=>{"use strict";var WQt=$l(),jQt=ei();XJe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),u=n("low"),l=n("close");n("hoverlabel.split");var f=WQt.getComponentMethod("calendars","handleTraceDefaults");if(f(t,r,["x"],i),!!(o&&s&&u&&l)){var c=Math.min(o.length,s.length,u.length,l.length);return a&&(c=Math.min(c,jQt.minRowLength(a))),r._length=c,c}}});var KJe=we((jAr,YJe)=>{"use strict";var XQt=ei(),ZQt=tQ(),YQt=Rm(),KQt=bO();YJe.exports=function(t,r,n,i){function a(s,u){return XQt.coerce(t,r,KQt,s,u)}var o=ZQt(t,r,a,i);if(!o){r.visible=!1;return}YQt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),ZJe(t,r,a,"increasing"),ZJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function ZJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var rQ=we((XAr,$Je)=>{"use strict";var KS=ei(),wO=KS._,AO=wu(),JQt=Fm(),xC=rf().BADNUM;function $Qt(e,t){var r=AO.getFromId(e,t.xaxis),n=AO.getFromId(e,t.yaxis),i=eer(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var u=JJe(e,t,o,s,n,QQt);return t._extremes[r._id]=AO.findExtremes(r,s,{vpad:a/2}),u.length?(KS.extendFlat(u[0].t,{wHover:a/2,tickLen:i}),u):[{t:{empty:!0}}]}function QQt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function JJe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),u=i.makeCalcdata(t,"low"),l=i.makeCalcdata(t,"close"),f=KS.isArrayOrTypedArray(t.text),c=KS.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,y=[],b=0;bd):h=L>C,d=L;var x=a(C,E,A,L);x.pos=v,x.yc=(C+L)/2,x.i=b,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[A,E],p&&(x.orig_p=r[b]),f&&(x.tx=t.text[b]),c&&(x.htx=t.hovertext[b]),y.push(x)}else y.push({pos:v,empty:!0})}return t._extremes[i._id]=AO.findExtremes(i,KS.concat(u,s),{padded:!0}),y.length&&(y[0].t={labels:{open:wO(e,"open:")+" ",high:wO(e,"high:")+" ",low:wO(e,"low:")+" ",close:wO(e,"close:")+" "}}),y}function eer(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var ter=Kl(),QJe=ei();e$e.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;QJe.makeTraceGroups(i,n,"trace ohlc").each(function(u){var l=ter.select(this),f=u[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){l.remove();return}var d=c.tickLen,p=l.selectAll("path").data(QJe.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(y){if(y.empty)return"M0,0Z";var b=o.c2p(y.pos-d,!0),v=o.c2p(y.pos+d,!0),C=s?(b+v)/2:o.c2p(y.pos,!0),E=a.c2p(y.o,!0),A=a.c2p(y.h,!0),L=a.c2p(y.l,!0),x=a.c2p(y.c,!0);return"M"+b+","+E+"H"+C+"M"+C+","+A+"V"+L+"M"+v+","+x+"H"+C})})}});var i$e=we((YAr,r$e)=>{"use strict";var iQ=Kl(),rer=Mu(),ier=jl();r$e.exports=function(t,r,n){var i=n||iQ.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;iQ.select(this).selectAll("path").each(function(s){if(!s.empty){var u=o[s.dir].line;iQ.select(this).style("fill","none").call(ier.stroke,u.color).call(rer.dashLine,u.dash,u.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var aQ=we((KAr,l$e)=>{"use strict";var nQ=wu(),ner=ei(),TO=Vc(),aer=jl(),oer=ei().fillText,n$e=tT(),ser={increasing:n$e.INCREASING.SYMBOL,decreasing:n$e.DECREASING.SYMBOL};function ler(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?o$e(e,t,r,n):s$e(e,t,r,n)}function a$e(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,u=o.type,l=u==="ohlc"?"l":"min",f=u==="ohlc"?"h":"max",c,h,d=s.bPos||0,p=function(P){return P.pos+d-t},y=s.bdPos||s.tickLen,b=s.wHover,v=Math.min(1,y/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-v,h=e.maxSpikeDistance-v;function C(P){var M=p(P);return TO.inbox(M-b,M+b,c)}function E(P){var M=P[l],O=P[f];return M===O||TO.inbox(M-r,O-r,c)}function A(P){return(C(P)+E(P))/2}var L=TO.getDistanceFunction(n,C,E,A);if(TO.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var k=x.dir,S=o[k],m=S.line.color;return aer.opacity(m)&&S.line.width?e.color=m:e.color=S.fillcolor,e.x0=a.c2p(x.pos+d-y,!0),e.x1=a.c2p(x.pos+d+y,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=A(x)*h/c,e.xSpike=a.c2p(x.pos,!0),e}function o$e(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=[],l=a$e(e,t,r,n);if(!l)return[];var f=i[l.index],c=f.hi||o.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var h=["high","open","close","low"],d={},p=0;p"+s.labels[y]+nQ.hoverLabelText(a,b,o.yhoverformat)):(C=ner.extendFlat({},l),C.y0=C.y1=v,C.yLabelVal=b,C.yLabel=s.labels[y]+nQ.hoverLabelText(a,b,o.yhoverformat),C.name="",u.push(C),d[b]=C)}return u}function s$e(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=a$e(e,t,r,n);if(!u)return[];var l=u.index,f=i[l],c=u.index=f.i,h=f.dir;function d(A){return s.labels[A]+nQ.hoverLabelText(a,o[A][c],o.yhoverformat)}var p=f.hi||o.hoverinfo||"",y=p.split("+"),b=p==="all",v=b||y.indexOf("y")!==-1,C=b||y.indexOf("text")!==-1,E=v?[d("open"),d("high"),d("low"),d("close")+" "+ser[h]]:[];return C&&oer(f,o,E),u.extraText=E.join("
"),u.y0=u.y1=a.c2p(f.yc,!0),[u]}l$e.exports={hoverPoints:ler,hoverSplit:o$e,hoverOnPoints:s$e}});var oQ=we((JAr,u$e)=>{"use strict";u$e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";f$e.exports={moduleType:"trace",name:"ohlc",basePlotModule:Mh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:bO(),supplyDefaults:KJe(),calc:rQ().calc,plot:t$e(),style:i$e(),hoverPoints:aQ().hoverPoints,selectPoints:oQ()}});var d$e=we((QAr,h$e)=>{"use strict";h$e.exports=c$e()});var lQ=we((eTr,m$e)=>{"use strict";var sQ=ei().extendFlat,p$e=Xc().axisHoverFormat,pv=bO(),JS=PE();function v$e(e){return{line:{color:sQ({},JS.line.color,{dflt:e}),width:JS.line.width,editType:"style"},fillcolor:JS.fillcolor,editType:"style"}}m$e.exports={xperiod:pv.xperiod,xperiod0:pv.xperiod0,xperiodalignment:pv.xperiodalignment,xhoverformat:p$e("x"),yhoverformat:p$e("y"),x:pv.x,open:pv.open,high:pv.high,low:pv.low,close:pv.close,line:{width:sQ({},JS.line.width,{}),editType:"style"},increasing:v$e(pv.increasing.line.color.dflt),decreasing:v$e(pv.decreasing.line.color.dflt),text:pv.text,hovertext:pv.hovertext,hovertemplate:pv.hovertemplate,hovertemplatefallback:pv.hovertemplatefallback,whiskerwidth:sQ({},JS.whiskerwidth,{dflt:0}),hoverlabel:pv.hoverlabel,zorder:JS.zorder}});var _$e=we((tTr,g$e)=>{"use strict";var uer=ei(),fer=jl(),cer=tQ(),her=Rm(),der=lQ();g$e.exports=function(t,r,n,i){function a(s,u){return uer.coerce(t,r,der,s,u)}var o=cer(t,r,a,i);if(!o){r.visible=!1;return}her(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),y$e(t,r,a,"increasing"),y$e(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function y$e(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",fer.addOpacity(i,.5))}});var A$e=we((rTr,w$e)=>{"use strict";var x$e=ei(),b$e=wu(),per=Fm(),ver=rQ().calcCommon;w$e.exports=function(e,t){var r=e._fullLayout,n=b$e.getFromId(e,t.xaxis),i=b$e.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=per(t,n,"x",a).vals,s=ver(e,t,a,o,i,mer);return s.length?(x$e.extendFlat(s[0].t,{num:r._numBoxes,dPos:x$e.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function mer(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var S$e=we((iTr,T$e)=>{"use strict";T$e.exports={moduleType:"trace",name:"candlestick",basePlotModule:Mh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:lQ(),layoutAttributes:zE(),supplyLayoutDefaults:tR().supplyLayoutDefaults,crossTraceCalc:iR().crossTraceCalc,supplyDefaults:_$e(),calc:A$e(),plot:nR().plot,layerName:"boxlayer",style:aR().style,hoverPoints:aQ().hoverPoints,selectPoints:oQ()}});var E$e=we((nTr,M$e)=>{"use strict";M$e.exports=S$e()});var fQ=we((aTr,k$e)=>{"use strict";var MO=ei(),yer=xy(),SO=MO.deg2rad,uQ=MO.rad2deg;k$e.exports=function(t,r,n){switch(yer(t,n),t._id){case"x":case"radialaxis":ger(t,r);break;case"angularaxis":ber(t,r);break}};function ger(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,u=n>i?function(l){return l<=0}:function(l){return l>=0};e.c2g=function(l){var f=e.c2l(l)-n;return(u(f)?f:0)+s},e.g2c=function(l){return e.l2c(l+n-s)},e.g2p=function(l){return l*o},e.c2p=function(l){return e.g2p(e.c2g(l))}}}function _er(e,t){return t==="degrees"?SO(e):e}function xer(e,t){return t==="degrees"?uQ(e):e}function ber(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return _er(n(a),o)},e.c2d=function(a,o){return i(xer(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],u=a._length,l,f,c=function(b){return e.d2c(b,a.thetaunit)};if(s)for(l=new Array(u),f=0;f{"use strict";C$e.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var CO=we((sTr,R$e)=>{"use strict";var kw=ei(),L$e=q5().tester,cQ=kw.findIndexOfMin,z$e=kw.isAngleInsideSector,wer=kw.angleDelta,P$e=kw.angleDist;function Aer(e,t,r,n,i){if(!z$e(t,n))return!1;var a,o;r[0]0?o:1/0},n=cQ(t,r),i=kw.mod(n+1,t.length);return[t[n],t[i]]}function kO(e){return Math.abs(e)>1e-10?e:0}function hQ(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function D$e(e){return e<0?-1:e>0?1:0}function QS(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function eM(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function F$e(e,t){return t*e.radius}function Per(e,t,r,n){var i=eM(e,QS([r,t])),a=i[0],o=i[1],s=eM(e,QS([n,t])),u=s[0],l=s[1];if(t===0)return["M"+a+","+o,"L"+u+","+l].join(" ");var f=F$e(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+u+","+l].join(" ")}function zer(e,t,r,n){var i=F$e(e,1/(t+1)),a=eM(e,QS([t,r])),o=a[0],s=a[1],u=eM(e,QS([t,n])),l=u[0],f=u[1];if(D$e(r)!==D$e(n)){var c=eM(e,QS([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var Cw=Kl(),Ier=hd(),Pw=$l(),Bc=ei(),cg=Bc.strRotate,bd=Bc.strTranslate,pQ=jl(),bC=Mu(),Rer=Cc(),vv=wu(),Der=xy(),Fer=fQ(),Oer=Mm().doAutoRange,M1=aU(),zO=xp(),B$e=Vc(),Ber=Ob(),qer=oh().prepSelect,Ner=oh().selectOnClick,vQ=oh().clearOutline,q$e=Em(),N$e=S5(),U$e=I5().redrawReglTraces,Uer=Nh().MID_SHIFT,Nx=EO(),E1=CO(),IO=dQ(),LO=IO.smith,Ver=IO.reactanceArc,Ger=IO.resistanceArc,PO=IO.smithTransform,Her=Bc._,V$e=Bc.mod,Ux=Bc.deg2rad,Lw=Bc.rad2deg;function G$e(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Vd=G$e.prototype;j$e.exports=function(t,r,n){return new G$e(t,r,n)};Vd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(v=l,C=l*b,L=(f-C)/i.h/2,E=[s[0],s[1]],A=[u[0]+L,u[1]-L]):(v=f/b,C=f,L=(l-v)/i.w/2,E=[s[0]+L,s[1]-L],A=[u[0],u[1]]),r.xLength2=v,r.yLength2=C,r.xDomain2=E,r.yDomain2=A;var x=r.xOffset2=i.l+i.w*E[0],k=r.yOffset2=i.t+i.h*(1-A[1]),S=r.radius=v/d,m=r.innerRadius=r.getHole(t)*S,P=r.cx=x-S*h[0],M=r.cy=k+S*h[3],O=r.cxx=P-x,F=r.cyy=M-k,U=a.side,G;U==="counterclockwise"?(G=U,U="top"):U==="clockwise"&&(G=U,U="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:U,_trueSide:G,domain:[m/i.w,S/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:A});var j=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",j).attr("transform",bd(O,F)),n.frontplot.attr("transform",bd(x,k)).call(bC.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",j).attr("transform",bd(P,M)).call(pQ.fill,t.bgcolor)};Vd.mockAxis=function(e,t,r,n){var i=Bc.extendFlat({},r,n);return Fer(i,t,e),i};Vd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Bc.extendFlat({type:"linear"},r);Der(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var u=n.sectorBBox,l=s[a],f=n.radialAxis._rl,c=(f[1]-f[0])/(1-n.getHole(t));o.range=[u[l[0]]*c,u[l[1]]*c]},o.isPtWithinRange=a==="x"&&!i?function(u){return n.isPtInside(u)}:function(){return!0},o.setRange(),o.setScale(),o};Vd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);Oer(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var u=i.r2l(i.maxallowed);i._rl[0]90&&f<=270&&(c.tickangle=180);var p=d?function(S){var m=PO(r,LO([S.x,0]));return bd(m[0]-s,m[1]-u)}:function(S){return bd(c.l2p(S.x)+o,0)},y=d?function(S){return Ger(r,S.x,-1/0,1/0)}:function(S){return r.pathArc(c.r2p(S.x)+o)},b=H$e(l);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){c.setScale();var v=0,C=d?(c.tickvals||[]).filter(function(S){return S>=0}).map(function(S){return vv.tickText(c,S,!0,!1)}):vv.calcTicks(c),E=d?C:vv.clipEnds(c,C),A=vv.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(A=-A),c.ticks==="top"&&c.side==="top"&&(v=-c.ticklen),c.ticks==="bottom"&&c.side==="bottom"&&(v=c.ticklen)),vv.drawTicks(n,c,{vals:C,layer:i["radial-axis"],path:vv.makeTickPath(c,0,A),transFn:p,crisp:!1}),vv.drawGrid(n,c,{vals:E,layer:i["radial-grid"],path:y,transFn:Bc.noop,crisp:!1}),vv.drawLabels(n,c,{vals:C,layer:i["radial-axis"],transFn:p,labelFns:vv.makeLabelFns(c,v)})}var L=r.radialAxisAngle=r.vangles?Lw(W$e(Ux(l.angle),r.vangles)):l.angle,x=bd(s,u),k=x+cg(-L);wC(i["radial-axis"],h&&(l.showticklabels||l.ticks),{transform:k}),wC(i["radial-grid"],h&&l.showgrid,{transform:d?"":x}),wC(i["radial-line"].select("line"),h&&l.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:k}).attr("stroke-width",l.linewidth).call(pQ.stroke,l.linecolor)};Vd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,u=n.getRadial(t),l=n.id+"title",f=0;if(u.title){var c=bC.bBox(n.layers["radial-axis"].node()).height,h=u.title.font.size,d=u.side;f=d==="top"?h:d==="counterclockwise"?-(c+h*.4):c+h*.8}var p=r!==void 0?r:n.radialAxisAngle,y=Ux(p),b=Math.cos(y),v=Math.sin(y),C=o+a/2*b+f*v,E=s-a/2*v+f*b;n.layers["radial-axis-title"]=Ber.draw(i,l,{propContainer:u,propName:n.id+".radialaxis.title.text",placeholder:Her(i,"Click to enter radial axis title"),attributes:{x:C,y:E,"text-anchor":"middle"},transform:{rotate:-p}})}};Vd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,u=r.cy,l=r.getAngular(t),f=r.angularAxis,c=r.isSmith;c||(r.fillViewInitialKey("angularaxis.rotation",l.rotation),f.setGeometry(),f.setScale());var h=c?function(m){var P=PO(r,LO([0,m.x]));return Math.atan2(P[0]-s,P[1]-u)-Math.PI/2}:function(m){return f.t2g(m.x)};f.type==="linear"&&f.thetaunit==="radians"&&(f.tick0=Lw(f.tick0),f.dtick=Lw(f.dtick));var d=function(m){return bd(s+a*Math.cos(m),u-a*Math.sin(m))},p=c?function(m){var P=PO(r,LO([0,m.x]));return bd(P[0],P[1])}:function(m){return d(h(m))},y=c?function(m){var P=PO(r,LO([0,m.x])),M=Math.atan2(P[0]-s,P[1]-u)-Math.PI/2;return bd(P[0],P[1])+cg(-Lw(M))}:function(m){var P=h(m);return d(P)+cg(-Lw(P))},b=c?function(m){return Ver(r,m.x,0,1/0)}:function(m){var P=h(m),M=Math.cos(P),O=Math.sin(P);return"M"+[s+o*M,u-o*O]+"L"+[s+a*M,u-a*O]},v=vv.makeLabelFns(f,0),C=v.labelStandoff,E={};E.xFn=function(m){var P=h(m);return Math.cos(P)*C},E.yFn=function(m){var P=h(m),M=Math.sin(P)>0?.2:1;return-Math.sin(P)*(C+m.fontSize*M)+Math.abs(Math.cos(P))*(m.fontSize*Uer)},E.anchorFn=function(m){var P=h(m),M=Math.cos(P);return Math.abs(M)<.1?"middle":M>0?"start":"end"},E.heightFn=function(m,P,M){var O=h(m);return-.5*(1+Math.sin(O))*M};var A=H$e(l);r.angularTickLayout!==A&&(i["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=A);var L=c?[1/0].concat(f.tickvals||[]).map(function(m){return vv.tickText(f,m,!0,!1)}):vv.calcTicks(f);c&&(L[0].text="\u221E",L[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=L.map(h),Bc.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,f.type==="category"&&(L=L.filter(function(m){return Bc.isAngleInsideSector(h(m),r.sectorInRad)})),f.visible){var k=f.ticks==="inside"?-1:1,S=(f.linewidth||1)/2;vv.drawTicks(n,f,{vals:L,layer:i["angular-axis"],path:"M"+k*S+",0h"+k*f.ticklen,transFn:y,crisp:!1}),vv.drawGrid(n,f,{vals:L,layer:i["angular-grid"],path:b,transFn:Bc.noop,crisp:!1}),vv.drawLabels(n,f,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:E})}wC(i["angular-line"].select("path"),l.showline,{d:r.pathSubplot(),transform:bd(s,u)}).attr("stroke-width",l.linewidth).call(pQ.stroke,l.linecolor)};Vd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Vd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Nx.MINZOOM,s=Nx.OFFEDGE,u=t.radius,l=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,y=t.vangles,b=t.radialAxis,v=E1.clampTiny,C=E1.findXYatLength,E=E1.findEnclosingVertexAngles,A=Nx.cornerHalfWidth,L=Nx.cornerLen/2,x,k,S=M1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");Cw.select(S).attr("d",t.pathSubplot()).attr("transform",bd(f,c)),S.onmousemove=function(ce){B$e.hover(n,ce,t.id),n._fullLayout._lasthover=S,n._fullLayout._hoversubplot=t.id},S.onmouseout=function(ce){n._dragging||zO.unhover(n,ce)};var m={element:S,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,M,O,F,U,G,j,W,N;function H(ce,je){return Math.sqrt(ce*ce+je*je)}function re(ce,je){return H(ce-h,je-d)}function ae(ce,je){return Math.atan2(d-je,ce-h)}function me(ce,je){return[ce*Math.cos(je),ce*Math.sin(-je)]}function Ce(ce,je){if(ce===0)return t.pathSector(2*A);var rt=L/ce,bt=je-rt,Ot=je+rt,it=Math.max(0,Math.min(ce,u)),Ke=it-A,zt=it+A;return"M"+me(Ke,bt)+"A"+[Ke,Ke]+" 0,0,0 "+me(Ke,Ot)+"L"+me(zt,Ot)+"A"+[zt,zt]+" 0,0,1 "+me(zt,bt)+"Z"}function Ee(ce,je,rt){if(ce===0)return t.pathSector(2*A);var bt=me(ce,je),Ot=me(ce,rt),it=v((bt[0]+Ot[0])/2),Ke=v((bt[1]+Ot[1])/2),zt,Mt;if(it&&Ke){var kt=Ke/it,$e=-1/kt,Re=C(A,kt,it,Ke);zt=C(L,$e,Re[0][0],Re[0][1]),Mt=C(L,$e,Re[1][0],Re[1][1])}else{var Me,oe;Ke?(Me=L,oe=A):(Me=A,oe=L),zt=[[it-Me,Ke-oe],[it+Me,Ke-oe]],Mt=[[it-Me,Ke+oe],[it+Me,Ke+oe]]}return"M"+zt.join("L")+"L"+Mt.reverse().join("L")+"Z"}function de(){O=null,F=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];j=Ier(ce.bgcolor).getLuminance(),W=M1.makeZoombox(a,j,f,c,U),W.attr("fill-rule","evenodd"),N=M1.makeCorners(a,f,c),vQ(n)}function te(ce,je){return je=Math.max(Math.min(je,u),l),ceo?(ce-1&&ce===1&&Ner(je,n,[t.xaxis],[t.yaxis],t.id,m),rt.indexOf("event")>-1&&B$e.click(n,je,t.id)}m.prepFn=function(ce,je,rt){var bt=n._fullLayout.dragmode,Ot=S.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var it=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,k=n._fullLayout._invScaleY;var Ke=Bc.apply3DTransform(it)(je-Ot.left,rt-Ot.top);if(P=Ke[0],M=Ke[1],y){var zt=E1.findPolygonOffset(u,p[0],p[1],y);P+=h+zt[0],M+=d+zt[1]}switch(bt){case"zoom":m.clickFn=Be,r||(y?m.moveFn=He:m.moveFn=Te,m.doneFn=Ie,de(ce,je,rt));break;case"select":case"lasso":qer(ce,je,rt,m,bt);break}},zO.init(m)};Vd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,u=n.cx,l=n.cy,f=n.radialAxis,c=Nx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Ux(n.radialAxisAngle),p=f._rl,y=p[0],b=p[1],v=p[r],C=.75*(p[1]-p[0])/(1-n.getHole(t))/o,E,A,L;r?(E=u+(o+h)*Math.cos(d),A=l-(o+h)*Math.sin(d),L="radialdrag"):(E=u+(s-h)*Math.cos(d),A=l-(s-h)*Math.sin(d),L="radialdrag-inner");var x=M1.makeRectDragger(a,L,"crosshair",-h,-h,c,c),k={element:x,gd:i};e.dragmode===!1&&(k.dragmode=!1),wC(Cw.select(x),f.visible&&s0!=(r?P>y:P=90||i>90&&a>=450?d=1:s<=0&&l<=0?d=0:d=Math.max(s,l),i<=180&&a>=180||i>180&&a>=540?f=-1:o>=0&&u>=0?f=0:f=Math.min(o,u),i<=270&&a>=270||i>270&&a>=630?c=-1:s>=0&&l>=0?c=0:c=Math.min(s,l),a>=360?h=1:o<=0&&u<=0?h=0:h=Math.max(o,u),[f,c,h,d]}function W$e(e,t){var r=function(i){return Bc.angleDist(e,i)},n=Bc.findIndexOfMin(t,r);return t[n]}function wC(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var yQ=we((fTr,$$e)=>{"use strict";var jer=Bh(),Yu=Dd(),Xer=zc().attributes,c0=ei().extendFlat,X$e=Sc().overrideAll,Z$e=X$e({color:Yu.color,showline:c0({},Yu.showline,{dflt:!0}),linecolor:Yu.linecolor,linewidth:Yu.linewidth,showgrid:c0({},Yu.showgrid,{dflt:!0}),gridcolor:Yu.gridcolor,gridwidth:Yu.gridwidth,griddash:Yu.griddash},"plot","from-root"),Y$e=X$e({tickmode:Yu.minor.tickmode,nticks:Yu.nticks,tick0:Yu.tick0,dtick:Yu.dtick,tickvals:Yu.tickvals,ticktext:Yu.ticktext,ticks:Yu.ticks,ticklen:Yu.ticklen,tickwidth:Yu.tickwidth,tickcolor:Yu.tickcolor,ticklabelstep:Yu.ticklabelstep,showticklabels:Yu.showticklabels,labelalias:Yu.labelalias,minorloglabels:Yu.minorloglabels,showtickprefix:Yu.showtickprefix,tickprefix:Yu.tickprefix,showticksuffix:Yu.showticksuffix,ticksuffix:Yu.ticksuffix,showexponent:Yu.showexponent,exponentformat:Yu.exponentformat,minexponent:Yu.minexponent,separatethousands:Yu.separatethousands,tickfont:Yu.tickfont,tickangle:Yu.tickangle,tickformat:Yu.tickformat,tickformatstops:Yu.tickformatstops,layer:Yu.layer},"plot","from-root"),K$e={visible:c0({},Yu.visible,{dflt:!0}),type:c0({},Yu.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Yu.autotypenumbers,autorangeoptions:{minallowed:Yu.autorangeoptions.minallowed,maxallowed:Yu.autorangeoptions.maxallowed,clipmin:Yu.autorangeoptions.clipmin,clipmax:Yu.autorangeoptions.clipmax,include:Yu.autorangeoptions.include,editType:"plot"},autorange:c0({},Yu.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:c0({},Yu.minallowed,{editType:"plot"}),maxallowed:c0({},Yu.maxallowed,{editType:"plot"}),range:c0({},Yu.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:Yu.categoryorder,categoryarray:Yu.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:Yu.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:c0({},Yu.title.text,{editType:"plot",dflt:""}),font:c0({},Yu.title.font,{editType:"plot"}),editType:"plot"},hoverformat:Yu.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(K$e,Z$e,Y$e);var J$e={visible:c0({},Yu.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:Yu.autotypenumbers,categoryorder:Yu.categoryorder,categoryarray:Yu.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:Yu.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(J$e,Z$e,Y$e);$$e.exports={domain:Xer({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:jer.background},radialaxis:K$e,angularaxis:J$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var rQe=we((cTr,tQe)=>{"use strict";var RO=ei(),Zer=jl(),Yer=Lf(),Ker=B_(),Jer=Rd().getSubplotData,$er=Pb(),Qer=q3(),etr=l_(),ttr=u_(),rtr=dI(),itr=hE(),ntr=ON(),atr=j3(),eQe=yQ(),otr=fQ(),DO=EO(),Q$e=DO.axisNames;function str(e,t,r,n){var i=r("bgcolor");n.bgColor=Zer.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=Jer(n.fullData,DO.name,n.id),s=n.layoutOut,u;function l(W,N){return r(u+"."+W,N)}for(var f=0;f{"use strict";var utr=Rd().getSubplotCalcData,ftr=ei().counterRegex,ctr=mQ(),nQe=EO(),aQe=nQe.attr,zw=nQe.name,iQe=ftr(zw),oQe={};oQe[aQe]={valType:"subplotid",dflt:zw,editType:"calc"};function htr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[zw],i=0;i{"use strict";var{hovertemplateAttrs:ptr,texttemplateAttrs:vtr,templatefallbackAttrs:lQe}=Of(),OO=Su().extendFlat,mtr=Pm(),h0=Zc(),ytr=Vf(),tM=h0.line;uQe.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:vtr({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:lQe({editType:"plot"}),hovertext:h0.hovertext,line:{color:tM.color,width:tM.width,dash:tM.dash,backoff:tM.backoff,shape:OO({},tM.shape,{values:["linear","spline"]}),smoothing:tM.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:OO({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:OO({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:mtr(),hoverinfo:OO({},ytr.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:ptr(),hovertemplatefallback:lQe(),selected:h0.selected,unselected:h0.unselected}});var qO=we((pTr,hQe)=>{"use strict";var BO=ei(),rM=lc(),gtr=$v(),_tr=R0(),fQe=cA(),xtr=D0(),btr=Dm(),wtr=Py().PTS_LINESONLY,Atr=AC();function Ttr(e,t,r,n){function i(s,u){return BO.coerce(e,t,Atr,s,u)}var a=cQe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var Str=ei(),dQe=wu();pQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var u=o.c2l(t.r);i.rLabel=dQe.tickText(o,u,!0).text;var l=s.thetaunit==="degrees"?Str.rad2deg(t.theta):t.theta;return i.thetaLabel=dQe.tickText(s,l,!0).text,i}});var yQe=we((mTr,mQe)=>{"use strict";var vQe=ku(),Mtr=rf().BADNUM,Etr=wu(),ktr=F0(),Ctr=Ry(),Ltr=O0(),Ptr=B0().calcMarkerSize;mQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),u=o.makeCalcdata(r,"theta"),l=r._length,f=new Array(l),c=0;c{"use strict";var ztr=yA(),gQe=rf().BADNUM;_Qe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=r.radialAxis,l=r.angularAxis,f=0;f{"use strict";var Itr=bA();function Rtr(e,t,r,n){var i=Itr(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,bQe(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function bQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["r","theta","text"]),c.indexOf("r")!==-1&&f(i,n.rLabel),c.indexOf("theta")!==-1&&f(a,n.thetaLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}wQe.exports={hoverPoints:Rtr,makeHoverPointText:bQe}});var TQe=we((_Tr,AQe)=>{"use strict";AQe.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:FO(),categories:["polar","symbols","showLegend","scatter-like"],attributes:AC(),supplyDefaults:qO().supplyDefaults,colorbar:tp(),formatLabels:NO(),calc:yQe(),plot:xQe(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:UO().hoverPoints,selectPoints:wA(),meta:{}}});var MQe=we((xTr,SQe)=>{"use strict";SQe.exports=TQe()});var gQ=we((ATr,kQe)=>{"use strict";var EQe=AC(),{cliponaxis:bTr,hoveron:wTr}=EQe,Dtr=zee(EQe,["cliponaxis","hoveron"]),{connectgaps:Ftr,line:{color:Otr,dash:Btr,width:qtr},fill:Ntr,fillcolor:Utr,marker:Vtr,textfont:Gtr,textposition:Htr}=_k();kQe.exports=j1(_m({},Dtr),{connectgaps:Ftr,fill:Ntr,fillcolor:Utr,line:{color:Otr,dash:Btr,editType:"calc",width:qtr},marker:Vtr,textfont:Gtr,textposition:Htr})});var PQe=we((STr,LQe)=>{"use strict";var CQe=ei(),_Q=lc(),Wtr=qO().handleRThetaDefaults,jtr=$v(),Xtr=R0(),Ztr=D0(),Ytr=Dm(),Ktr=Py().PTS_LINESONLY,Jtr=gQ();LQe.exports=function(t,r,n,i){function a(s,u){return CQe.coerce(t,r,Jtr,s,u)}var o=Wtr(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var $tr=NO();zQe.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),$tr(t,r,n)}});var DQe=we((ETr,RQe)=>{"use strict";var Qtr=F0(),err=B0().calcMarkerSize,trr=fw(),rrr=wu(),irr=mx().TOO_MANY_POINTS;RQe.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),u=r._theta=o.makeCalcdata(r,"theta"),l=r._length,f={};l{"use strict";var nrr=YF(),arr=UO().makeHoverPointText;function orr(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,u=nrr.hoverPoints(e,t,r,n);if(!(!u||u[0].index===!1)){var l=u[0];if(l.index===void 0)return u;var f=e.subplot,c=l.cd[l.index],h=l.trace;if(c.r=o[l.index],c.theta=s[l.index],!!f.isPtInside(c))return l.xLabelVal=void 0,l.yLabelVal=void 0,arr(c,h,f,l),u}}FQe.exports={hoverPoints:orr}});var qQe=we((CTr,BQe)=>{"use strict";BQe.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:FO(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:gQ(),supplyDefaults:PQe(),colorbar:tp(),formatLabels:IQe(),calc:DQe(),hoverPoints:OQe().hoverPoints,selectPoints:LY(),meta:{}}});var NQe=we((LTr,xQ)=>{"use strict";var srr=$F(),lrr=ku(),urr=RK(),frr=EY(),VO=fw(),GO=ei(),crr=mx().TOO_MANY_POINTS,hrr={};xQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=frr(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var u=s[0],l=u.trace,f=u.t,c=l._length,h=f.r,d=f.theta,p=f.opts,y,b=h.slice(),v=d.slice();for(y=0;y=crr&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=C),p.line&&C.length>1&&GO.extendFlat(p.line,VO.linePositions(t,l,C)),p.text&&(GO.extendFlat(p.text,{positions:C},VO.textPosition(t,l,p.text,p.marker)),GO.extendFlat(p.textSel,{positions:C},VO.textPosition(t,l,p.text,p.markerSel)),GO.extendFlat(p.textUnsel,{positions:C},VO.textPosition(t,l,p.text,p.markerUnsel))),p.fill&&!o.fill2d&&(o.fill2d=!0),p.marker&&!o.scatter2d&&(o.scatter2d=!0),p.line&&!o.line2d&&(o.line2d=!0),p.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(p.line),o.fillOptions.push(p.fill),o.markerOptions.push(p.marker),o.markerSelectedOptions.push(p.markerSel),o.markerUnselectedOptions.push(p.markerUnsel),o.textOptions.push(p.text),o.textSelectedOptions.push(p.textSel),o.textUnselectedOptions.push(p.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),f.x=E,f.y=A,f.rawx=E,f.rawy=A,f.r=h,f.theta=d,f.positions=C,f._scene=o,f.index=o.count,o.count++}}),urr(t,r,n)}};xQ.exports.reglPrecompiled=hrr});var VQe=we((PTr,UQe)=>{"use strict";var drr=D8(),prr=F8(),vrr=O8(),mrr=B8(),yrr=q8(),grr=N8(),_rr=U8(),xrr=V8(),brr=G8(),wrr=H8();UQe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":drr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":prr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":vrr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":mrr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":yrr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:grr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:_rr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:xrr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:brr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:wrr}});var HQe=we((zTr,GQe)=>{"use strict";var bQ=NQe(),Arr=VQe(),Trr=DK();Object.assign(bQ.reglPrecompiled,Arr);Object.assign(bQ.reglPrecompiled,Trr);GQe.exports=bQ});var XQe=we((ITr,jQe)=>{"use strict";var WQe=qQe();WQe.plot=HQe();jQe.exports=WQe});var wQ=we((RTr,ZQe)=>{"use strict";var{hovertemplateAttrs:Srr,templatefallbackAttrs:Mrr}=Of(),iM=Su().extendFlat,Vx=AC(),Gx=Oy();ZQe.exports={r:Vx.r,theta:Vx.theta,r0:Vx.r0,dr:Vx.dr,theta0:Vx.theta0,dtheta:Vx.dtheta,thetaunit:Vx.thetaunit,base:iM({},Gx.base,{}),offset:iM({},Gx.offset,{}),width:iM({},Gx.width,{}),text:iM({},Gx.text,{}),hovertext:iM({},Gx.hovertext,{}),marker:Err(),hoverinfo:Vx.hoverinfo,hovertemplate:Srr(),hovertemplatefallback:Mrr(),selected:Gx.selected,unselected:Gx.unselected};function Err(){var e=iM({},Gx.marker);return delete e.cornerradius,e}});var AQ=we((DTr,YQe)=>{"use strict";YQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var $Qe=we((FTr,JQe)=>{"use strict";var KQe=ei(),krr=qO().handleRThetaDefaults,Crr=YI(),Lrr=wQ();JQe.exports=function(t,r,n,i){function a(s,u){return KQe.coerce(t,r,Lrr,s,u)}var o=krr(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),Crr(t,r,a,n,i),KQe.coerceSelectionMarkerOpacity(r,a)}});var eet=we((OTr,QQe)=>{"use strict";var Prr=ei(),zrr=AQ();QQe.exports=function(e,t,r){var n={},i;function a(u,l){return Prr.coerce(e[i]||{},t[i],zrr,u,l)}for(var o=0;o{"use strict";var tet=yp().hasColorscale,ret=gp(),Irr=ei().isArrayOrTypedArray,Rrr=EE(),Drr=n2().setGroupPositions,Frr=O0(),Orr=$l().traceIs,Brr=ei().extendFlat;function qrr(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),u=t._length,l=new Array(u),f=o,c=s,h=0;h{"use strict";var net=Kl(),HO=ku(),nM=ei(),Urr=Mu(),SQ=CO();aet.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,u=r.angularAxis,l=Vrr(r),f=r.layers.frontplot.select("g.barlayer");nM.makeTraceGroups(f,n,"trace bars").each(function(){var c=net.select(this),h=nM.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(nM.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(p){var y=net.select(this),b=p.rp0=s.c2p(p.s0),v=p.rp1=s.c2p(p.s1),C=p.thetag0=u.c2g(p.p0),E=p.thetag1=u.c2g(p.p1),A;if(!HO(b)||!HO(v)||!HO(C)||!HO(E)||b===v||C===E)A="M0,0Z";else{var L=s.c2g(p.s1),x=(C+E)/2;p.ct=[a.c2p(L*Math.cos(x)),o.c2p(L*Math.sin(x))],A=l(b,v,C,E)}nM.ensureSingle(y,"path").attr("d",A)}),Urr.setClipUrl(c,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function Vrr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,u;nM.angleDelta(a,o)>0?(s=a,u=o):(s=o,u=a);var l=SQ.findEnclosingVertexAngles(s,e.vangles)[0],f=SQ.findEnclosingVertexAngles(u,e.vangles)[1],c=[l,(s+u)/2,f];return SQ.pathPolygonAnnulus(n,i,s,u,c,t,r)}:function(n,i,a,o){return nM.pathAnnulus(n,i,a,o,t,r)}}});var uet=we((NTr,set)=>{"use strict";var Grr=Vc(),MQ=ei(),Hrr=DA().getTraceColor,Wrr=MQ.fillText,jrr=UO().makeHoverPointText,Xrr=CO().isPtInsidePolygon;set.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,u=o.angularAxis,l=o.vangles,f=l?Xrr:MQ.isPtInsideSector,c=t.maxHoverDistance,h=u._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),p=Math.atan2(n,r);s.range[0]>s.range[1]&&(p+=Math.PI);var y=function(E){return f(d,p,[E.rp0,E.rp1],[E.thetag0,E.thetag1],l)?c+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(Grr.getClosest(i,y,t),t.index!==!1){var b=t.index,v=i[b];t.x0=t.x1=v.ct[0],t.y0=t.y1=v.ct[1];var C=MQ.extendFlat({},v,{r:v.s,theta:v.p});return Wrr(v,a,t),jrr(C,a,o,t),t.hovertemplate=a.hovertemplate,t.color=Hrr(a,v),t.xLabelVal=t.yLabelVal=void 0,v.s<0&&(t.idealAlign="left"),[t]}}});var cet=we((UTr,fet)=>{"use strict";fet.exports={moduleType:"trace",name:"barpolar",basePlotModule:FO(),categories:["polar","bar","showLegend"],attributes:wQ(),layoutAttributes:AQ(),supplyDefaults:$Qe(),supplyLayoutDefaults:eet(),calc:TQ().calc,crossTraceCalc:TQ().crossTraceCalc,plot:oet(),colorbar:tp(),formatLabels:NO(),style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:uet(),selectPoints:FA(),meta:{}}});var det=we((VTr,het)=>{"use strict";het.exports=cet()});var EQ=we((GTr,pet)=>{"use strict";pet.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var kQ=we((HTr,get)=>{"use strict";var Zrr=Bh(),fh=Dd(),Yrr=zc().attributes,Hx=ei().extendFlat,vet=Sc().overrideAll,met=vet({color:fh.color,showline:Hx({},fh.showline,{dflt:!0}),linecolor:fh.linecolor,linewidth:fh.linewidth,showgrid:Hx({},fh.showgrid,{dflt:!0}),gridcolor:fh.gridcolor,gridwidth:fh.gridwidth,griddash:fh.griddash},"plot","from-root"),yet=vet({ticklen:fh.ticklen,tickwidth:Hx({},fh.tickwidth,{dflt:2}),tickcolor:fh.tickcolor,showticklabels:fh.showticklabels,labelalias:fh.labelalias,showtickprefix:fh.showtickprefix,tickprefix:fh.tickprefix,showticksuffix:fh.showticksuffix,ticksuffix:fh.ticksuffix,tickfont:fh.tickfont,tickformat:fh.tickformat,hoverformat:fh.hoverformat,layer:fh.layer},"plot","from-root"),Krr=Hx({visible:Hx({},fh.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Hx({},fh.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},met,yet),Jrr=Hx({visible:Hx({},fh.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:fh.ticks,editType:"calc"},met,yet);get.exports={domain:Yrr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:Zrr.background},realaxis:Krr,imaginaryaxis:Jrr,editType:"calc"}});var bet=we((WTr,xet)=>{"use strict";var aM=ei(),$rr=jl(),Qrr=Lf(),eir=B_(),tir=Rd().getSubplotData,rir=u_(),iir=l_(),nir=hE(),air=xy(),oM=kQ(),CQ=EQ(),_et=CQ.axisNames,oir=lir(function(e){return aM.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function sir(e,t,r,n){var i=r("bgcolor");n.bgColor=$rr.combine(i,n.paper_bgcolor);var a=tir(n.fullData,CQ.name,n.id),o=n.layoutOut,s;function u(L,x){return r(s+"."+L,x)}for(var l=0;l<_et.length;l++){s=_et[l],aM.isPlainObject(e[s])||(e[s]={});var f=e[s],c=Qrr.newContainer(t,s);c._id=c._name=s,c._attr=n.id+"."+s,c._traceIndices=a.map(function(L){return L.index});var h=u("visible");if(c.type="linear",air(c,o),rir(f,c,u,c.type),h){var d=s==="realaxis";if(d&&u("side"),d)u("tickvals");else{var p=oir(t.realaxis.tickvals||oM.realaxis.tickvals.dflt);u("tickvals",p)}aM.isTypedArray(c.tickvals)&&(c.tickvals=Array.from(c.tickvals));var y,b,v,C,E=n.font||{};h&&(y=u("color"),b=y===f.color?y:E.color,v=E.size,C=E.family),iir(f,c,u,c.type,{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noAng:!d,noExp:!0,font:{color:b,size:v,family:C}}),aM.coerce2(e,t,oM,s+".ticklen"),aM.coerce2(e,t,oM,s+".tickwidth"),aM.coerce2(e,t,oM,s+".tickcolor",t.color);var A=u("ticks");A||(delete t[s].ticklen,delete t[s].tickwidth,delete t[s].tickcolor),nir(f,c,u,{dfltColor:y,bgColor:n.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:oM[s]}),u("layer")}u("hoverformat"),delete c.type,c._input=f}}xet.exports=function(t,r,n){eir(t,r,n,{noUirevision:!0,type:CQ.name,attributes:oM,handleDefaults:sir,font:r.font,paper_bgcolor:r.paper_bgcolor,fullData:n,layoutOut:r})};function lir(e,t){var r={};return function(n){var i=t?t(n):n;if(i in r)return r[i];var a=e(n);return r[i]=a,a}}});var ket=we((jTr,Eet)=>{"use strict";var uir=Rd().getSubplotCalcData,fir=ei().counterRegex,cir=mQ(),Aet=EQ(),Tet=Aet.attr,Iw=Aet.name,wet=fir(Iw),Met={};Met[Tet]={valType:"subplotid",dflt:Iw,editType:"calc"};function hir(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Iw],i=0;i{"use strict";var{hovertemplateAttrs:pir,texttemplateAttrs:vir,templatefallbackAttrs:Cet}=Of(),WO=Su().extendFlat,mir=Pm(),d0=Zc(),yir=Vf(),sM=d0.line;Let.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:vir({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:Cet({editType:"plot"}),hovertext:d0.hovertext,line:{color:sM.color,width:sM.width,dash:sM.dash,backoff:sM.backoff,shape:WO({},sM.shape,{values:["linear","spline"]}),smoothing:sM.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:WO({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:WO({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:mir(),hoverinfo:WO({},yir.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:pir(),hovertemplatefallback:Cet(),selected:d0.selected,unselected:d0.unselected}});var Iet=we((ZTr,zet)=>{"use strict";var jO=ei(),lM=lc(),gir=$v(),_ir=R0(),Pet=cA(),xir=D0(),bir=Dm(),wir=Py().PTS_LINESONLY,Air=LQ();zet.exports=function(t,r,n,i){function a(u,l){return jO.coerce(t,r,Air,u,l)}var o=Tir(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var Ret=wu();Det.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=Ret.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=Ret.tickText(a.angularAxis,t.imag,!0).text,i}});var qet=we((KTr,Bet)=>{"use strict";var Oet=ku(),Sir=rf().BADNUM,Mir=F0(),Eir=Ry(),kir=O0(),Cir=B0().calcMarkerSize;Bet.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),u=o.makeCalcdata(r,"imag"),l=r._length,f=new Array(l),c=0;c{"use strict";var Lir=yA(),Net=rf().BADNUM,Pir=dQ(),zir=Pir.smith;Uet.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=0;u{"use strict";var Iir=bA();function Rir(e,t,r,n){var i=Iir(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,Get(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function Get(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["real","imag","text"]),c.indexOf("real")!==-1&&f(i,n.realLabel),c.indexOf("imag")!==-1&&f(a,n.imagLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}Het.exports={hoverPoints:Rir,makeHoverPointText:Get}});var Xet=we((QTr,jet)=>{"use strict";jet.exports={moduleType:"trace",name:"scattersmith",basePlotModule:ket(),categories:["smith","symbols","showLegend","scatter-like"],attributes:LQ(),supplyDefaults:Iet(),colorbar:tp(),formatLabels:Fet(),calc:qet(),plot:Vet(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:Wet().hoverPoints,selectPoints:wA(),meta:{}}});var Yet=we((eSr,Zet)=>{"use strict";Zet.exports=Xet()});var Lp=we((tSr,Jet)=>{var ZO=jh();function Ket(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}ZO(Ket.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function PQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(wf.local.invalidDate||wf.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function XO(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}ZO(PQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(wf.local.invalidDate||wf.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(wf.local.differentCalendars||wf.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+XO(Math.abs(this.year()),4)+"-"+XO(this.month(),2)+"-"+XO(this.day(),2)}});function zQ(){this.shortYearCutoff="+10"}ZO(zQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new PQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,wf.local.invalidYear||wf.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,wf.local.invalidYear||wf.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+XO(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,wf.local.invalidYear||wf.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,wf.local.invalidMonth||wf.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,wf.local.invalidMonth||wf.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,wf.local.invalidYear||wf.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,wf.local.invalidDate||wf.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(f){for(;oc-1+f.minMonth;)a++,o-=c,c=f.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var u=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,u}catch(l){throw this._validateLevel--,l}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,wf.local.invalidDate||wf.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),l=i-(u>2.5?4716:4715);return l<=0&&l--,this.newDate(l,u,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,wf.local.invalidDate||wf.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var wf=Jet.exports=new Ket;wf.cdate=PQ;wf.baseCalendar=zQ;wf.calendars.gregorian=IQ});var $et=we(()=>{var RQ=jh(),Gd=Lp();RQ(Gd.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Gd.local=Gd.regionalOptions[""];RQ(Gd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});RQ(Gd.baseCalendar.prototype,{UNIX_EPOCH:Gd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Gd.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Gd.local.invalidFormat||Gd.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,u=r.calculateWeek||this.local.calculateWeek,l=function(A,L){for(var x=1;E+x1},f=function(A,L,x,k){var S=""+L;if(l(A,k))for(;S.length1},C=function(O,F){var U=v(O,F),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(O)+1],j=new RegExp("^-?\\d{1,"+G+"}"),W=t.substring(S).match(j);if(!W)throw(Gd.local.missingNumberAt||Gd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=W[0].length,parseInt(W[0],10)},E=this,A=function(){if(typeof s=="function"){v("m");var O=s.call(E,t.substring(S));return S+=O.length,O}return C("m")},L=function(O,F,U,G){for(var j=v(O,G)?U:F,W=0;W-1){h=1,d=p;for(var M=this.daysInMonth(c,h);d>M;M=this.daysInMonth(c,h))h++,d-=M}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(c){}s=s.toLowerCase();for(var u=(s.match(/^c/)&&r?r.newDate():null)||a.today(),l=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=l.exec(s);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=l.exec(s);return u};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var Qet=we(()=>{var Wx=Lp(),Dir=jh(),DQ=Wx.instance();function YO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}YO.prototype=new Wx.baseCalendar;Dir(YO.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(Oir);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(Bir);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(qir);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Wx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Wx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Wx.local.invalidyear),i=Xx[n-Xx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,u;u=DQ.newDate(a,o,s),u.add(4-(u.dayOfWeek()||7),"d");var l=this.toJD(e,t,r)-u.toJD();return 1+Math.floor(l/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=jx[e-jx[0]],n=r>>13,i=n?12:11;if(t>i)throw Wx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Wx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Uir(e,a,r,i);return DQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=DQ.fromJD(e),r=Nir(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(Fir),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(YO.prototype).add.call(this,e,t,r);if(r==="y"){var u=s.year(),l=s.month(),f=this.isIntercalaryMonth(u,o),c=a&&f?this.toMonthIndex(u,o,!0):this.toMonthIndex(u,o,!1);c!==l&&s.month(c)}return s}});var Fir=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Oir=/^\d?\d[iI]?/m,Bir=/^闰?十?[一二三四五六七八九]?月/m,qir=/^闰?十?[一二三四五六七八九]?/m;Wx.calendars.chinese=YO;var jx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Xx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Nir(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=31;if(!u)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var l=Xx[i.year-Xx[0]],f=i.year<<9|i.month<<5|i.day;a.year=f>=l?i.year:i.year-1,l=Xx[a.year-Xx[0]];var c=l>>9&4095,h=l>>5&15,d=l&31,p,y=new Date(c,h-1,d),b=new Date(i.year,i.month-1,i.day);p=Math.round((b-y)/(24*3600*1e3));var v=jx[a.year-jx[0]],C;for(C=0;C<13;C++){var E=v&1<<12-C?30:29;if(p>13;return!A||C=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var u=typeof t=="number"&&t>=1&&t<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=30;if(!l)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,a=n):(f=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:f}}var c;c=o.day-1;var h=jx[o.year-jx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y>9&4095,E=v>>5&15,A=v&31,L=new Date(C,E-1,A+c);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var ett=we(()=>{var Rw=Lp(),Vir=jh();function FQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FQ.prototype=new Rw.baseCalendar;Vir(FQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Rw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rw.local.invalidYear||Rw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Rw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,Rw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});Rw.calendars.coptic=FQ});var ttt=we(()=>{var k1=Lp(),Gir=jh();function OQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}OQ.prototype=new k1.baseCalendar;Gir(OQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,k1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,k1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,k1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,k1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,k1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,k1.local.invalidDate);return{century:Hir[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,k1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var Hir={20:"Fruitbat",21:"Anchovy"};k1.calendars.discworld=OQ});var rtt=we(()=>{var Dw=Lp(),Wir=jh();function BQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BQ.prototype=new Dw.baseCalendar;Wir(BQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Dw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dw.local.invalidYear||Dw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Dw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,Dw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});Dw.calendars.ethiopian=BQ});var itt=we(()=>{var Zx=Lp(),jir=jh();function qQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qQ.prototype=new Zx.baseCalendar;jir(qQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,KO(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Zx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&KO(this.daysInYear(e),10)===5?30:t===9&&KO(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Zx.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Zx.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function KO(e,t){return e-t*Math.floor(e/t)}Zx.calendars.hebrew=qQ});var ntt=we(()=>{var TC=Lp(),Xir=jh();function NQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NQ.prototype=new TC.baseCalendar;Xir(NQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,TC.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,TC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,TC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});TC.calendars.islamic=NQ});var att=we(()=>{var SC=Lp(),Zir=jh();function UQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}UQ.prototype=new SC.baseCalendar;Zir(UQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,SC.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,SC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,SC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),u=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,u)}});SC.calendars.julian=UQ});var stt=we(()=>{var cm=Lp(),Yir=jh();function GQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GQ.prototype=new cm.baseCalendar;Yir(GQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cm.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,cm.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cm.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,cm.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cm.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,cm.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,cm.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,cm.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,cm.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=VQ(e+8+340,365);return[Math.floor(t/20)+1,VQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[ott(e+20,20),ott(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,cm.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function VQ(e,t){return e-t*Math.floor(e/t)}function ott(e,t){return VQ(e-1,t)+1}cm.calendars.mayan=GQ});var utt=we(()=>{var Fw=Lp(),Kir=jh();function HQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}HQ.prototype=new Fw.baseCalendar;var ltt=Fw.instance("gregorian");Kir(HQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Fw.local.invalidYear||Fw.regionalOptions[""].invalidYear);return ltt.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Fw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Fw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});Fw.calendars.nanakshahi=HQ});var ftt=we(()=>{var Ow=Lp(),Jir=jh();function WQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}WQ.prototype=new Ow.baseCalendar;Jir(WQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ow.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Ow.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,Ow.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=Ow.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var u=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(u))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(u,1,1).add(a,"d").toJD()},fromJD:function(e){var t=Ow.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],u=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>u;)o++,o>12&&(o=1,a++),u+=this.NEPALI_CALENDAR_DATA[a][o];var l=this.NEPALI_CALENDAR_DATA[a][o]-(u-i);return this.newDate(a,o,l)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var uM=Lp(),$ir=jh();function $O(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function JO(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}$O.prototype=new uM.baseCalendar;$ir($O.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,uM.local.invalidYear);return JO(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,uM.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,uM.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,JO(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});uM.calendars.persian=$O;uM.calendars.jalali=$O});var htt=we(()=>{var Bw=Lp(),Qir=jh(),QO=Bw.instance();function jQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}jQ.prototype=new Bw.baseCalendar;Qir(jQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Bw.local.invalidYear),r=this._t2gYear(t.year());return QO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Bw.local.invalidYear),i=this._t2gYear(n.year());return QO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Bw.local.invalidDate),i=this._t2gYear(n.year());return QO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=QO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Bw.calendars.taiwan=jQ});var dtt=we(()=>{var qw=Lp(),enr=jh(),eB=qw.instance();function XQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}XQ.prototype=new qw.baseCalendar;enr(XQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,qw.local.invalidYear),r=this._t2gYear(t.year());return eB.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,qw.local.invalidYear),i=this._t2gYear(n.year());return eB.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,qw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,qw.local.invalidDate),i=this._t2gYear(n.year());return eB.toJD(i,n.month(),n.day())},fromJD:function(e){var t=eB.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});qw.calendars.thai=XQ});var ptt=we(()=>{var Nw=Lp(),tnr=jh();function ZQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ZQ.prototype=new Nw.baseCalendar;tnr(ZQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Nw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Nw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Yx[i]-Yx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Nw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Yx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,u=t-Yx[r-1]+1;return this.newDate(o,s,u)},isValid:function(e,t,r){var n=Nw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Nw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Nw.calendars.ummalqura=ZQ;var Yx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var mtt=we((zSr,vtt)=>{"use strict";vtt.exports=Lp();$et();Qet();ett();ttt();rtt();itt();ntt();att();stt();utt();ftt();ctt();htt();dtt();ptt()});var Att=we((ISr,wtt)=>{"use strict";var gtt=mtt(),MC=ei(),_tt=rf(),rnr=_tt.EPOCHJD,inr=_tt.ONEDAY,JQ={valType:"enumerated",values:MC.sortObjectKeys(gtt.calendars),editType:"calc",dflt:"gregorian"},xtt=function(e,t,r,n){var i={};return i[r]=JQ,MC.coerce(e,t,i,r,n)},nnr=function(e,t,r,n){for(var i=0;i{"use strict";Ttt.exports=Att()});var fnr=we((DSr,Ett)=>{var Mtt=Ege();Mtt.register([C1e(),m_e(),Lxe(),Jxe(),cbe(),s2e(),x2e(),lwe(),Owe(),_3e(),oAe(),gke(),sCe(),$Le(),NPe(),yze(),Uze(),hRe(),PRe(),YRe(),sDe(),bDe(),FDe(),$De(),LFe(),KFe(),S7e(),kUe(),YVe(),bGe(),PHe(),jHe(),mWe(),kje(),Gje(),dXe(),wZe(),jZe(),EYe(),YKe(),xJe(),UJe(),d$e(),E$e(),MQe(),XQe(),det(),Yet(),Stt()]);Ett.exports=Mtt});return fnr();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-with-meta.js b/dist/plotly-with-meta.js index 852012f9734..6656c4e19ae 100644 --- a/dist/plotly-with-meta.js +++ b/dist/plotly-with-meta.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.6.0 +* plotly.js v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -49,11 +49,20 @@ var Plotly = (() => { } return target; }; - var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + var __esm = (fn, res, err) => function __init() { + if (err) throw err[0]; + try { + return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + } catch (e) { + throw err = [e], e; + } }; var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; var __export = (target, all) => { for (var name2 in all) @@ -81,7 +90,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -117,7 +126,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -144,7 +153,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8170,7 +8179,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8410,7 +8419,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8527,7 +8536,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8572,7 +8581,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9975,7 +9984,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9994,7 +10003,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color2) { return !!matchers.CSS_UNIT.exec(color2); } @@ -11748,12 +11757,8 @@ var Plotly = (() => { valType: "string", dflt: "", description: [ - "When set it determines base URL for", - "the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button", - "and the showLink/sendData on-graph link.", - "To enable sending your data to Chart Studio Cloud, you need to", - "set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and", - "also set `showSendToCloud` to true." + "Sets the URL for the `sendChartToCloud` modebar button.", + "When clicked, the button will send the chart data to this URL." ].join(" ") }, editable: { @@ -11981,22 +11986,17 @@ var Plotly = (() => { valType: "boolean", dflt: false, description: [ - 'Should we include a ModeBar button, labeled "Edit in Chart Studio",', - "that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server", - "as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0", - "this button was included by default, now it is opt-in using this flag.", - "Note that this button can (depending on `plotlyServerURL` being set) send your data", - "to an external server. However that server does not persist your data", - 'until you arrive at the Chart Studio and explicitly click "Save".' + "Should we include a modebar button that sends this chart to a URL", + "specified by `plotlyServerURL`, for sharing the chart with others?", + "Note that this button will (after a confirmation step)", + "send chart data to an external server." ].join(" ") }, showEditInChartStudio: { valType: "boolean", dflt: false, description: [ - "Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.", - "Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,", - "only `showEditInChartStudio` will be honored." + "Deprecated. Use `showSendToCloud` instead." ].join(" ") }, modeBarButtonsToRemove: { @@ -14901,9 +14901,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -17156,6 +17156,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -18939,6 +18950,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -19067,24 +19079,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -34875,7 +34894,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -36677,6 +36706,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -38892,6 +38927,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -38901,6 +38970,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -38931,26 +39001,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.disk, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.pencil, - click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -40110,8 +40184,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -48678,6 +48758,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -49689,19 +49770,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); @@ -77987,7 +78067,7 @@ var Plotly = (() => { function numberIsNaN(obj) { return obj !== obj; } - var hexSliceLookupTable = function() { + var hexSliceLookupTable = (function() { const alphabet = "0123456789abcdef"; const table = new Array(256); for (let i = 0; i < 16; ++i) { @@ -77997,7 +78077,7 @@ var Plotly = (() => { } } return table; - }(); + })(); function defineBigIntMethod(fn) { return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn; } @@ -78080,7 +78160,7 @@ var Plotly = (() => { function copyBuffer(src, target, offset) { Buffer2.prototype.copy.call(src, target, offset); } - module.exports = /* @__PURE__ */ function() { + module.exports = /* @__PURE__ */ (function() { function BufferList() { _classCallCheck(this, BufferList); this.head = null; @@ -78244,7 +78324,7 @@ var Plotly = (() => { } }]); return BufferList; - }(); + })(); } }); @@ -78358,13 +78438,13 @@ var Plotly = (() => { return message(arg1, arg2, arg3); } } - var NodeError = /* @__PURE__ */ function(_Base) { + var NodeError = /* @__PURE__ */ (function(_Base) { _inheritsLoose(NodeError2, _Base); function NodeError2(arg1, arg2, arg3) { return _Base.call(this, getMessage(arg1, arg2, arg3)) || this; } return NodeError2; - }(Base); + })(Base); NodeError.prototype.name = Base.name; NodeError.prototype.code = code; codes[code] = NodeError; @@ -79473,13 +79553,13 @@ var Plotly = (() => { return obj; } var finished = require_end_of_stream(); - var kLastResolve = Symbol("lastResolve"); - var kLastReject = Symbol("lastReject"); - var kError = Symbol("error"); - var kEnded = Symbol("ended"); - var kLastPromise = Symbol("lastPromise"); - var kHandlePromise = Symbol("handlePromise"); - var kStream = Symbol("stream"); + var kLastResolve = /* @__PURE__ */ Symbol("lastResolve"); + var kLastReject = /* @__PURE__ */ Symbol("lastReject"); + var kError = /* @__PURE__ */ Symbol("error"); + var kEnded = /* @__PURE__ */ Symbol("ended"); + var kLastPromise = /* @__PURE__ */ Symbol("lastPromise"); + var kHandlePromise = /* @__PURE__ */ Symbol("handlePromise"); + var kStream = /* @__PURE__ */ Symbol("stream"); function createIterResult(value, done) { return { value, @@ -80251,11 +80331,11 @@ var Plotly = (() => { }); for (var i in stream) { if (this[i] === void 0 && typeof stream[i] === "function") { - this[i] = /* @__PURE__ */ function methodWrap(method) { + this[i] = /* @__PURE__ */ (function methodWrap(method) { return function methodWrapReturnFunction() { return stream[method].apply(stream, arguments); }; - }(i); + })(i); } } for (var n = 0; n < kProxyEvents.length; n++) { @@ -80665,7 +80745,7 @@ var Plotly = (() => { return true; } var obj = {}; - var sym = Symbol("test"); + var sym = /* @__PURE__ */ Symbol("test"); var symObj = Object(sym); if (typeof sym === "string") { return false; @@ -80911,7 +80991,7 @@ var Plotly = (() => { if (typeof origSymbol("foo") !== "symbol") { return false; } - if (typeof Symbol("bar") !== "symbol") { + if (typeof /* @__PURE__ */ Symbol("bar") !== "symbol") { return false; } return hasSymbolSham(); @@ -81168,7 +81248,7 @@ var Plotly = (() => { var throwTypeError = function() { throw new $TypeError(); }; - var ThrowTypeError = $gOPD ? function() { + var ThrowTypeError = $gOPD ? (function() { try { arguments.callee; return throwTypeError; @@ -81179,7 +81259,7 @@ var Plotly = (() => { return throwTypeError; } } - }() : throwTypeError; + })() : throwTypeError; var hasSymbols = require_has_symbols()(); var getProto = require_get_proto(); var $ObjectGPO = require_Object_getPrototypeOf(); @@ -81661,9 +81741,9 @@ var Plotly = (() => { } return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]"; }; - var supportsStandardArguments = function() { + var supportsStandardArguments = (function() { return isStandardArguments(arguments); - }(); + })(); isStandardArguments.isLegacyArguments = isLegacyArguments; module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments; } @@ -82790,7 +82870,7 @@ var Plotly = (() => { function hasOwnProperty2(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } - var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0; + var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0; exports.promisify = function promisify(original) { if (typeof original !== "function") throw new TypeError('The "original" argument must be of type Function'); @@ -83009,7 +83089,7 @@ var Plotly = (() => { return message(arg1, arg2, arg3); } } - var NodeError = /* @__PURE__ */ function(_Base) { + var NodeError = /* @__PURE__ */ (function(_Base) { _inherits(NodeError2, _Base); var _super = _createSuper(NodeError2); function NodeError2(arg1, arg2, arg3) { @@ -83020,7 +83100,7 @@ var Plotly = (() => { return _this; } return _createClass(NodeError2); - }(Base); + })(Base); codes[code] = NodeError; } function oneOf(expected, thing) { @@ -83512,7 +83592,7 @@ var Plotly = (() => { } return "".concat(msg).concat(skipped ? skippedMsg : "", "\n").concat(res).concat(other).concat(end).concat(indicator); } - var AssertionError = /* @__PURE__ */ function(_Error, _inspect$custom) { + var AssertionError = /* @__PURE__ */ (function(_Error, _inspect$custom) { _inherits(AssertionError2, _Error); var _super = _createSuper(AssertionError2); function AssertionError2(options) { @@ -83624,7 +83704,7 @@ var Plotly = (() => { } }]); return AssertionError2; - }(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); + })(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); module.exports = AssertionError; } }); @@ -83696,7 +83776,7 @@ var Plotly = (() => { $webkitStorageInfo: true, $window: true }; - hasAutomationEqualityBug = function() { + hasAutomationEqualityBug = (function() { if (typeof window === "undefined") { return false; } @@ -83714,7 +83794,7 @@ var Plotly = (() => { } } return false; - }(); + })(); equalsConstructorPrototypeIfNotBuggy = function(o) { if (typeof window === "undefined" || !hasAutomationEqualityBug) { return equalsConstructorPrototype(o); @@ -83790,10 +83870,10 @@ var Plotly = (() => { var originalKeys = Object.keys; keysShim.shim = function shimObjectKeys() { if (Object.keys) { - var keysWorksWithArguments = function() { + var keysWorksWithArguments = (function() { var args = Object.keys(arguments); return args && args.length === arguments.length; - }(1, 2); + })(1, 2); if (!keysWorksWithArguments) { Object.keys = function keys(object) { if (isArgs(object)) { @@ -83943,7 +84023,7 @@ var Plotly = (() => { "node_modules/define-properties/index.js"(exports, module) { "use strict"; var keys = require_object_keys(); - var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol"; + var hasSymbols = typeof Symbol === "function" && typeof /* @__PURE__ */ Symbol("foo") === "symbol"; var toStr = Object.prototype.toString; var concat = Array.prototype.concat; var origDefineProperty = Object.defineProperty; @@ -89702,7 +89782,7 @@ var Plotly = (() => { } return rows; } - var squarify = function custom(ratio) { + var squarify = (function custom(ratio) { function squarify2(parent, x0, y0, x1, y1) { squarifyRatio(ratio, parent, x0, y0, x1, y1); } @@ -89710,7 +89790,7 @@ var Plotly = (() => { return custom((x = +x) > 1 ? x : 1); }; return squarify2; - }(phi); + })(phi); function index$1() { var tile = squarify, round = false, dx = 1, dy = 1, paddingStack = [0], paddingInner = constantZero, paddingTop = constantZero, paddingRight = constantZero, paddingBottom = constantZero, paddingLeft = constantZero; function treemap(root) { @@ -89808,7 +89888,7 @@ var Plotly = (() => { function sliceDice(parent, x0, y0, x1, y1) { (parent.depth & 1 ? treemapSlice : treemapDice)(parent, x0, y0, x1, y1); } - var resquarify = function custom(ratio) { + var resquarify = (function custom(ratio) { function resquarify2(parent, x0, y0, x1, y1) { if ((rows = parent._squarify) && rows.ratio === ratio) { var rows, row, nodes, i, j = -1, n, m = rows.length, value = parent.value; @@ -89828,7 +89908,7 @@ var Plotly = (() => { return custom((x = +x) > 1 ? x : 1); }; return resquarify2; - }(phi); + })(phi); exports2.cluster = cluster; exports2.hierarchy = hierarchy; exports2.pack = index; @@ -90746,7 +90826,7 @@ var Plotly = (() => { init_basis(); init_basisClosed(); init_color2(); - rgb_default = function rgbGamma(y) { + rgb_default = (function rgbGamma(y) { var color2 = gamma(y); function rgb2(start, end) { var r = color2((start = rgb(start)).r, (end = rgb(end)).r), g = color2(start.g, end.g), b = color2(start.b, end.b), opacity = nogamma(start.opacity, end.opacity); @@ -90760,7 +90840,7 @@ var Plotly = (() => { } rgb2.gamma = rgbGamma; return rgb2; - }(1); + })(1); rgbBasis = rgbSpline(basis_default); rgbBasisClosed = rgbSpline(basisClosed_default); } @@ -91080,7 +91160,7 @@ var Plotly = (() => { var init_zoom = __esm({ "node_modules/d3-interpolate/src/zoom.js"() { epsilon2 = 1e-12; - zoom_default = function zoomRho(rho, rho2, rho4) { + zoom_default = (function zoomRho(rho, rho2, rho4) { function zoom(p0, p1) { var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S; if (d2 < epsilon2) { @@ -91112,7 +91192,7 @@ var Plotly = (() => { return zoomRho(_1, _2, _4); }; return zoom; - }(Math.SQRT2, 2, 4); + })(Math.SQRT2, 2, 4); } }); @@ -91182,7 +91262,7 @@ var Plotly = (() => { // node_modules/d3-interpolate/src/cubehelix.js function cubehelix2(hue2) { - return function cubehelixGamma(y) { + return (function cubehelixGamma(y) { y = +y; function cubehelix3(start, end) { var h = hue2((start = cubehelix(start)).h, (end = cubehelix(end)).h), s = nogamma(start.s, end.s), l = nogamma(start.l, end.l), opacity = nogamma(start.opacity, end.opacity); @@ -91196,7 +91276,7 @@ var Plotly = (() => { } cubehelix3.gamma = cubehelixGamma; return cubehelix3; - }(1); + })(1); } var cubehelix_default, cubehelixLong; var init_cubehelix2 = __esm({ @@ -94791,7 +94871,7 @@ var Plotly = (() => { /***/ 1964: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { alpha_shape: __webpack_require__2(3502), convex_hull: __webpack_require__2(7352), @@ -94807,12 +94887,12 @@ var Plotly = (() => { ndarray: __webpack_require__2(9618), ndarray_linear_interpolate: __webpack_require__2(4317) }; - } + }) ), /***/ 4793: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var __webpack_unused_export__; function _typeof(o) { @@ -96133,7 +96213,7 @@ var Plotly = (() => { function numberIsNaN(obj) { return obj !== obj; } - var hexSliceLookupTable = function() { + var hexSliceLookupTable = (function() { var alphabet = "0123456789abcdef"; var table = new Array(256); for (var i = 0; i < 16; ++i) { @@ -96143,13 +96223,13 @@ var Plotly = (() => { } } return table; - }(); - } + })(); + }) ), /***/ 9216: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = isMobile; module2.exports.isMobile = isMobile; @@ -96171,12 +96251,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 6296: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createViewController; var createTurntable = __webpack_require__2(7261); @@ -96313,12 +96393,12 @@ var Plotly = (() => { matrix }, mode); } - } + }) ), /***/ 7169: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var weakMap = typeof WeakMap === "undefined" ? __webpack_require__2(1538) : WeakMap; var createBuffer = __webpack_require__2(2762); @@ -96344,12 +96424,12 @@ var Plotly = (() => { triangleVAO.unbind(); } module2.exports = createABigTriangle; - } + }) ), /***/ 1085: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var padLeft = __webpack_require__2(1371); module2.exports = addLineNumbers; function addLineNumbers(string, start, delim) { @@ -96364,12 +96444,12 @@ var Plotly = (() => { return prefix + delim + line; }).join("\n"); } - } + }) ), /***/ 3952: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = affineHull; var orient = __webpack_require__2(3250); @@ -96417,12 +96497,12 @@ var Plotly = (() => { } return index; } - } + }) ), /***/ 5995: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = alphaComplex; var delaunay = __webpack_require__2(7642); @@ -96436,33 +96516,33 @@ var Plotly = (() => { return circumradius(simplex) * alpha < 1; }); } - } + }) ), /***/ 3502: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = alphaShape; var ac = __webpack_require__2(5995); var bnd = __webpack_require__2(9127); function alphaShape(alpha, points) { return bnd(ac(alpha, points)); } - } + }) ), /***/ 6468: ( /***/ - function(module2) { + (function(module2) { module2.exports = function _atob(str) { return atob(str); }; - } + }) ), /***/ 2642: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = barycentric; var solve = __webpack_require__2(727); @@ -96503,12 +96583,12 @@ var Plotly = (() => { } return y; } - } + }) ), /***/ 7507: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.byteLength = byteLength; exports2.toByteArray = toByteArray; @@ -96602,12 +96682,12 @@ var Plotly = (() => { } return parts.join(""); } - } + }) ), /***/ 3865: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = add; @@ -96617,35 +96697,35 @@ var Plotly = (() => { a[1].mul(b[1]) ); } - } + }) ), /***/ 1318: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = cmp; function cmp(a, b) { return a[0].mul(b[1]).cmp(b[0].mul(a[1])); } - } + }) ), /***/ 8697: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = div; function div(a, b) { return rationalize(a[0].mul(b[1]), a[1].mul(b[0])); } - } + }) ), /***/ 7842: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isRat = __webpack_require__2(6330); var isBN = __webpack_require__2(1533); @@ -96703,36 +96783,36 @@ var Plotly = (() => { } return rationalize(a, b); } - } + }) ), /***/ 6330: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isBN = __webpack_require__2(1533); module2.exports = isRat; function isRat(x) { return Array.isArray(x) && x.length === 2 && isBN(x[0]) && isBN(x[1]); } - } + }) ), /***/ 5716: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = sign; function sign(x) { return x.cmp(new BN(0)); } - } + }) ), /***/ 1369: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var sign = __webpack_require__2(5716); module2.exports = bn2num; @@ -96752,12 +96832,12 @@ var Plotly = (() => { } return sign(b) * out; } - } + }) ), /***/ 4025: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var db = __webpack_require__2(2361); var ctz = __webpack_require__2(8828).countTrailingZeros; @@ -96773,24 +96853,24 @@ var Plotly = (() => { } return h + 32; } - } + }) ), /***/ 1533: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = isBN; function isBN(x) { return x && typeof x === "object" && Boolean(x.words); } - } + }) ), /***/ 2651: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); var db = __webpack_require__2(2361); @@ -96803,12 +96883,12 @@ var Plotly = (() => { return new BN(x * Math.pow(2, 52 - e)).ushln(e - 52); } } - } + }) ), /***/ 869: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var num2bn = __webpack_require__2(2651); var sign = __webpack_require__2(5716); @@ -96832,60 +96912,60 @@ var Plotly = (() => { } return [numer, denom]; } - } + }) ), /***/ 6768: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = str2BN; function str2BN(x) { return new BN(x); } - } + }) ), /***/ 6504: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = mul; function mul(a, b) { return rationalize(a[0].mul(b[0]), a[1].mul(b[1])); } - } + }) ), /***/ 7721: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnsign = __webpack_require__2(5716); module2.exports = sign; function sign(x) { return bnsign(x[0]) * bnsign(x[1]); } - } + }) ), /***/ 5572: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = sub; function sub(a, b) { return rationalize(a[0].mul(b[1]).sub(a[1].mul(b[0])), a[1].mul(b[1])); } - } + }) ), /***/ 946: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bn2num = __webpack_require__2(1369); var ctz = __webpack_require__2(4025); @@ -96918,12 +96998,12 @@ var Plotly = (() => { return sgn * y * Math.pow(2, 1023 - ybits); } } - } + }) ), /***/ 2478: ( /***/ - function(module2) { + (function(module2) { "use strict"; function ge(a, y, c, l, h) { var i = h + 1; @@ -97024,12 +97104,12 @@ var Plotly = (() => { return norm(a, y, c, l, h, eq); } }; - } + }) ), /***/ 8828: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; "use restrict"; var INT_BITS = 32; @@ -97179,12 +97259,12 @@ var Plotly = (() => { var t = v | v - 1; return t + 1 | (~t & -~t) - 1 >>> countTrailingZeros(v) + 1; }; - } + }) ), /***/ 6859: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2 = __webpack_require__2.nmd(module2); (function(module3, exports2) { "use strict"; @@ -99991,12 +100071,12 @@ var Plotly = (() => { return res._forceRed(this); }; })(module2, this); - } + }) ), /***/ 6204: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = boundary; function boundary(cells) { @@ -100029,12 +100109,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 6867: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boxIntersectWrapper; var pool = __webpack_require__2(1888); @@ -100163,12 +100243,12 @@ var Plotly = (() => { throw new Error("box-intersect: Invalid arguments"); } } - } + }) ), /***/ 2455: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; function full() { function bruteForceRedFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) { @@ -100299,12 +100379,12 @@ var Plotly = (() => { } exports2.partial = bruteForcePlanner(false); exports2.full = bruteForcePlanner(true); - } + }) ), /***/ 7150: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boxIntersectIter; var pool = __webpack_require__2(1888); @@ -100914,12 +100994,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 3545: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = findMedian; var genPartition = __webpack_require__2(8105); @@ -101044,12 +101124,12 @@ var Plotly = (() => { boxes[elemSize * mid + axis] ); } - } + }) ), /***/ 8105: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = genPartition; var P2F = { @@ -101169,12 +101249,12 @@ var Plotly = (() => { } return m; } - } + }) ), /***/ 4192: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = wrapper; var INSERT_SORT_CUTOFF = 32; @@ -101380,12 +101460,12 @@ var Plotly = (() => { quickSort(less, great, data); } } - } + }) ), /***/ 855: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = { init: sqInit, @@ -101724,12 +101804,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 2538: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var monotoneTriangulate = __webpack_require__2(8902); var makeIndex = __webpack_require__2(5542); @@ -101789,12 +101869,12 @@ var Plotly = (() => { return cells; } } - } + }) ), /***/ 2272: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var inCircle = __webpack_require__2(2646)[4]; var bsearch = __webpack_require__2(2478); @@ -101875,12 +101955,12 @@ var Plotly = (() => { testFlip(points, triangulation, stack, b, x, y); } } - } + }) ), /***/ 5023: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); module2.exports = classifyFaces; @@ -101897,7 +101977,7 @@ var Plotly = (() => { function compareCell(a, b) { return a[0] - b[0] || a[1] - b[1] || a[2] - b[2]; } - proto.locate = /* @__PURE__ */ function() { + proto.locate = /* @__PURE__ */ (function() { var key = [0, 0, 0]; return function(a, b, c) { var x = a, y = b, z = c; @@ -101920,7 +102000,7 @@ var Plotly = (() => { key[2] = z; return bsearch.eq(this.cells, key, compareCell); }; - }(); + })(); function indexCells(triangulation, infinity) { var cells = triangulation.cells(); var nc = cells.length; @@ -102040,12 +102120,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 8902: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); var orient = __webpack_require__2(3250)[3]; @@ -102209,12 +102289,12 @@ var Plotly = (() => { } return cells; } - } + }) ), /***/ 5542: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); module2.exports = createTriangulation; @@ -102233,7 +102313,7 @@ var Plotly = (() => { } } } - proto.isConstraint = /* @__PURE__ */ function() { + proto.isConstraint = /* @__PURE__ */ (function() { var e = [0, 0]; function compareLex(a, b) { return a[0] - b[0] || a[1] - b[1]; @@ -102243,7 +102323,7 @@ var Plotly = (() => { e[1] = Math.max(i, j); return bsearch.eq(this.edges, e, compareLex) >= 0; }; - }(); + })(); proto.removeTriangle = function(i, j, k) { var stars = this.stars; removePair(stars[i], j, k); @@ -102306,12 +102386,12 @@ var Plotly = (() => { } return new Triangulation(stars, edges); } - } + }) ), /***/ 2419: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = orientation; function orientation(s) { @@ -102327,12 +102407,12 @@ var Plotly = (() => { } return p; } - } + }) ), /***/ 3628: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var dup = __webpack_require__2(1338); var solve = __webpack_require__2(727); @@ -102392,12 +102472,12 @@ var Plotly = (() => { } circumcenter.barycenetric = barycentricCircumcenter; module2.exports = circumcenter; - } + }) ), /***/ 6037: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = circumradius; var circumcenter = __webpack_require__2(3628); function circumradius(points) { @@ -102411,12 +102491,12 @@ var Plotly = (() => { } return Math.sqrt(avgDist / points.length); } - } + }) ), /***/ 332: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = cleanPSLG; var UnionFind = __webpack_require__2(1755); @@ -102717,12 +102797,12 @@ var Plotly = (() => { } return modified; } - } + }) ), /***/ 3637: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = solveIntersection; var ratMul = __webpack_require__2(6504); @@ -102749,12 +102829,12 @@ var Plotly = (() => { var r = rvAdd(a, s); return r; } - } + }) ), /***/ 3642: ( /***/ - function(module2) { + (function(module2) { module2.exports = { "jet": [{ "index": 0, "rgb": [0, 0, 131] }, { "index": 0.125, "rgb": [0, 60, 170] }, { "index": 0.375, "rgb": [5, 255, 255] }, { "index": 0.625, "rgb": [255, 255, 0] }, { "index": 0.875, "rgb": [250, 0, 0] }, { "index": 1, "rgb": [128, 0, 0] }], "hsv": [{ "index": 0, "rgb": [255, 0, 0] }, { "index": 0.169, "rgb": [253, 255, 2] }, { "index": 0.173, "rgb": [247, 255, 2] }, { "index": 0.337, "rgb": [0, 252, 4] }, { "index": 0.341, "rgb": [0, 252, 10] }, { "index": 0.506, "rgb": [1, 249, 255] }, { "index": 0.671, "rgb": [2, 0, 253] }, { "index": 0.675, "rgb": [8, 0, 253] }, { "index": 0.839, "rgb": [255, 0, 251] }, { "index": 0.843, "rgb": [255, 0, 245] }, { "index": 1, "rgb": [255, 0, 6] }], @@ -102801,12 +102881,12 @@ var Plotly = (() => { "velocity-green": [{ "index": 0, "rgb": [23, 35, 19] }, { "index": 0.13, "rgb": [24, 64, 38] }, { "index": 0.25, "rgb": [11, 95, 45] }, { "index": 0.38, "rgb": [39, 123, 35] }, { "index": 0.5, "rgb": [95, 146, 12] }, { "index": 0.63, "rgb": [152, 165, 18] }, { "index": 0.75, "rgb": [201, 186, 69] }, { "index": 0.88, "rgb": [233, 216, 137] }, { "index": 1, "rgb": [255, 253, 205] }], "cubehelix": [{ "index": 0, "rgb": [0, 0, 0] }, { "index": 0.07, "rgb": [22, 5, 59] }, { "index": 0.13, "rgb": [60, 4, 105] }, { "index": 0.2, "rgb": [109, 1, 135] }, { "index": 0.27, "rgb": [161, 0, 147] }, { "index": 0.33, "rgb": [210, 2, 142] }, { "index": 0.4, "rgb": [251, 11, 123] }, { "index": 0.47, "rgb": [255, 29, 97] }, { "index": 0.53, "rgb": [255, 54, 69] }, { "index": 0.6, "rgb": [255, 85, 46] }, { "index": 0.67, "rgb": [255, 120, 34] }, { "index": 0.73, "rgb": [255, 157, 37] }, { "index": 0.8, "rgb": [241, 191, 57] }, { "index": 0.87, "rgb": [224, 220, 93] }, { "index": 0.93, "rgb": [218, 241, 142] }, { "index": 1, "rgb": [227, 253, 198] }] }; - } + }) ), /***/ 6729: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var colorScale = __webpack_require__2(3642); var lerp = __webpack_require__2(395); @@ -102901,12 +102981,12 @@ var Plotly = (() => { function rgbaStr(rgba3) { return "rgba(" + rgba3.join(",") + ")"; } - } + }) ), /***/ 3140: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = compareAngle; var orient = __webpack_require__2(3250); @@ -102986,12 +103066,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 8572: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function signum(x) { if (x < 0) { @@ -103002,12 +103082,12 @@ var Plotly = (() => { } return 0; }; - } + }) ), /***/ 8507: ( /***/ - function(module2) { + (function(module2) { module2.exports = compareCells; var min = Math.min; function compareInt(a, b) { @@ -103048,12 +103128,12 @@ var Plotly = (() => { return 0; } } - } + }) ), /***/ 3788: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compareCells = __webpack_require__2(8507); var parity = __webpack_require__2(2419); @@ -103061,12 +103141,12 @@ var Plotly = (() => { function compareOrientedCells(a, b) { return compareCells(a, b) || parity(a) - parity(b); } - } + }) ), /***/ 7352: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var convexHull1d = __webpack_require__2(5721); var convexHull2d = __webpack_require__2(4750); @@ -103089,12 +103169,12 @@ var Plotly = (() => { } return convexHullnd(points, d); } - } + }) ), /***/ 5721: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = convexHull1d; function convexHull1d(points) { @@ -103116,12 +103196,12 @@ var Plotly = (() => { return [[lo]]; } } - } + }) ), /***/ 4750: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = convexHull2D; var monotoneHull = __webpack_require__2(3090); @@ -103140,12 +103220,12 @@ var Plotly = (() => { } return edges; } - } + }) ), /***/ 2690: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = convexHullnD; var ich = __webpack_require__2(8954); @@ -103199,12 +103279,12 @@ var Plotly = (() => { return invPermute(nhull, ah); } } - } + }) ), /***/ 4769: ( /***/ - function(module2) { + (function(module2) { "use strict"; function dcubicHermite(p0, v0, p1, v1, t, f) { var dh00 = 6 * t * t - 6 * t, dh10 = 3 * t * t - 4 * t + 1, dh01 = -6 * t * t + 6 * t, dh11 = 3 * t * t - 2 * t; @@ -103234,12 +103314,12 @@ var Plotly = (() => { } module2.exports = cubicHermite; module2.exports.derivative = dcubicHermite; - } + }) ), /***/ 7642: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ch = __webpack_require__2(8954); var uniq = __webpack_require__2(1682); @@ -103375,12 +103455,12 @@ var Plotly = (() => { } return hull; } - } + }) ), /***/ 2361: ( /***/ - function(module2) { + (function(module2) { var hasTypedArrays = false; if (typeof Float64Array !== "undefined") { var DOUBLE_VIEW = new Float64Array(1), UINT_VIEW = new Uint32Array(DOUBLE_VIEW.buffer); @@ -103472,12 +103552,12 @@ var Plotly = (() => { var hi = module2.exports.hi(n); return !(hi & 2146435072); }; - } + }) ), /***/ 1338: ( /***/ - function(module2) { + (function(module2) { "use strict"; function dupe_array(count, value, i) { var c = count[i] | 0; @@ -103523,12 +103603,12 @@ var Plotly = (() => { return []; } module2.exports = dupe; - } + }) ), /***/ 3134: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = edgeToAdjacency; var uniq = __webpack_require__2(1682); @@ -103559,12 +103639,12 @@ var Plotly = (() => { } return adj; } - } + }) ), /***/ 5033: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = extractPlanes; function extractPlanes(M, zNear, zFar) { @@ -103579,12 +103659,12 @@ var Plotly = (() => { [zf * M[12] - M[8], zf * M[13] - M[9], zf * M[14] - M[10], zf * M[15] - M[11]] ]; } - } + }) ), /***/ 9215: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createFilteredVector; var cubicHermite = __webpack_require__2(4769); @@ -103859,12 +103939,12 @@ var Plotly = (() => { return new FilteredVector(initState, initVelocity, initTime); } } - } + }) ), /***/ 3840: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = createRBTree; var RED = 0; @@ -104744,12 +104824,12 @@ var Plotly = (() => { function createRBTree(compare) { return new RedBlackTree(compare || defaultCompare, null); } - } + }) ), /***/ 3837: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createAxes; var createText = __webpack_require__2(4935); @@ -105317,12 +105397,12 @@ var Plotly = (() => { axes.update(options); return axes; } - } + }) ), /***/ 5304: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createBackgroundCube; var createBuffer = __webpack_require__2(2762); @@ -105428,12 +105508,12 @@ var Plotly = (() => { shader.attributes.normal.location = 1; return new BackgroundCube(gl2, buffer, vao, shader); } - } + }) ), /***/ 6429: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = getCubeEdges; var bits = __webpack_require__2(8828); @@ -105639,12 +105719,12 @@ var Plotly = (() => { } return CUBE_RESULT; } - } + }) ), /***/ 501: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createLines; var createBuffer = __webpack_require__2(2762); @@ -105860,12 +105940,12 @@ var Plotly = (() => { shader.attributes.position.location = 0; return new Lines(gl2, vertBuf, vao, shader, tickCount, tickOffset, gridCount, gridOffset); } - } + }) ), /***/ 1879: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -105891,12 +105971,12 @@ var Plotly = (() => { { name: "normal", type: "vec3" } ]); }; - } + }) ), /***/ 4935: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createTextSprites; var createBuffer = __webpack_require__2(2762); @@ -106082,12 +106162,12 @@ var Plotly = (() => { result.update(bounds, labels, labelFont, ticks, tickFont); return result; } - } + }) ), /***/ 6444: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.create = defaultTicks; exports2.equal = ticksEqual; @@ -106156,12 +106236,12 @@ var Plotly = (() => { } return true; } - } + }) ), /***/ 5445: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = axesProperties; var getPlanes = __webpack_require__2(5033); @@ -106284,12 +106364,12 @@ var Plotly = (() => { } return ranges; } - } + }) ), /***/ 2762: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); var ops = __webpack_require__2(5298); @@ -106430,12 +106510,12 @@ var Plotly = (() => { return result; } module2.exports = createBuffer; - } + }) ), /***/ 6405: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vec3 = __webpack_require__2(2931); module2.exports = function(vectorfield, bounds) { @@ -106547,12 +106627,12 @@ var Plotly = (() => { traceType: "cone" }); }; - } + }) ), /***/ 9060: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createShader = __webpack_require__2(9405); var createBuffer = __webpack_require__2(2762); @@ -107033,12 +107113,12 @@ var Plotly = (() => { return mesh; } module2.exports = createVectorMesh; - } + }) ), /***/ 614: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]); @@ -107063,12 +107143,12 @@ var Plotly = (() => { { name: "vector", type: "vec3" } ] }; - } + }) ), /***/ 737: ( /***/ - function(module2) { + (function(module2) { module2.exports = { 0: "NONE", 1: "ONE", @@ -107367,22 +107447,22 @@ var Plotly = (() => { 37443: "UNPACK_COLORSPACE_CONVERSION_WEBGL", 37444: "BROWSER_DEFAULT_WEBGL" }; - } + }) ), /***/ 5171: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var gl10 = __webpack_require__2(737); module2.exports = function lookupConstant(number) { return gl10[number]; }; - } + }) ), /***/ 9165: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createErrorBars; var createBuffer = __webpack_require__2(2762); @@ -107460,7 +107540,7 @@ var Plotly = (() => { bounds[1][i] = Math.max(bounds[1][i], point[i]); } } - var FACE_TABLE = function() { + var FACE_TABLE = (function() { var table = new Array(3); for (var d = 0; d < 3; ++d) { var row = []; @@ -107475,7 +107555,7 @@ var Plotly = (() => { table[d] = row; } return table; - }(); + })(); function emitFace(verts, x, c, d) { var offsets = FACE_TABLE[d]; for (var i = 0; i < offsets.length; ++i) { @@ -107656,12 +107736,12 @@ var Plotly = (() => { result.update(options); return result; } - } + }) ), /***/ 3436: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -107674,12 +107754,12 @@ var Plotly = (() => { { name: "offset", type: "vec3" } ]); }; - } + }) ), /***/ 2260: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createTexture = __webpack_require__2(7766); module2.exports = createFBO; @@ -108062,12 +108142,12 @@ var Plotly = (() => { WEBGL_draw_buffers ); } - } + }) ), /***/ 2992: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var sprintf = __webpack_require__2(3387).sprintf; var glConstants = __webpack_require__2(5171); var shaderName = __webpack_require__2(1848); @@ -108109,12 +108189,12 @@ var Plotly = (() => { short: shortForm.trim() }; } - } + }) ), /***/ 7319: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); var vertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n vec4 startPoint = project(position);\n vec4 endPoint = project(nextPosition);\n\n vec2 A = startPoint.xy / startPoint.w;\n vec2 B = endPoint.xy / endPoint.w;\n\n float clipAngle = atan(\n (B.y - A.y) * screenShape.y,\n (B.x - A.x) * screenShape.x\n );\n\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n sin(clipAngle),\n -cos(clipAngle)\n ) / screenShape;\n\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n worldPosition = position;\n pixelArcLength = arcLength;\n fragColor = color;\n}\n"]); @@ -108133,12 +108213,12 @@ var Plotly = (() => { exports2.createPickShader = function(gl2) { return createShader(gl2, vertSrc, pickFrag, null, ATTRIBUTES); }; - } + }) ), /***/ 5714: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createLinePlot; var createBuffer = __webpack_require__2(2762); @@ -108563,12 +108643,12 @@ var Plotly = (() => { linePlot.update(options); return linePlot; } - } + }) ), /***/ 1903: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(16); @@ -108591,12 +108671,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6864: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(16); @@ -108619,24 +108699,24 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 9921: ( /***/ - function(module2) { + (function(module2) { module2.exports = determinant; function determinant(a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15], b00 = a00 * a11 - a01 * a10, b01 = a00 * a12 - a02 * a10, b02 = a00 * a13 - a03 * a10, b03 = a01 * a12 - a02 * a11, b04 = a01 * a13 - a03 * a11, b05 = a02 * a13 - a03 * a12, b06 = a20 * a31 - a21 * a30, b07 = a20 * a32 - a22 * a30, b08 = a20 * a33 - a23 * a30, b09 = a21 * a32 - a22 * a31, b10 = a21 * a33 - a23 * a31, b11 = a22 * a33 - a23 * a32; return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; } ; - } + }) ), /***/ 7399: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromQuat; function fromQuat(out, q) { var x = q[0], y = q[1], z = q[2], w = q[3], x2 = x + x, y2 = y + y, z2 = z + z, xx = x * x2, yx = y * x2, yy = y * y2, zx = z * x2, zy = z * y2, zz = z * z2, wx = w * x2, wy = w * y2, wz = w * z2; @@ -108659,12 +108739,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6743: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromRotationTranslation; function fromRotationTranslation(out, q, v) { var x = q[0], y = q[1], z = q[2], w = q[3], x2 = x + x, y2 = y + y, z2 = z + z, xx = x * x2, xy = x * y2, xz = x * z2, yy = y * y2, yz = y * z2, zz = z * z2, wx = w * x2, wy = w * y2, wz = w * z2; @@ -108687,12 +108767,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7894: ( /***/ - function(module2) { + (function(module2) { module2.exports = identity2; function identity2(out) { out[0] = 1; @@ -108714,12 +108794,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7608: ( /***/ - function(module2) { + (function(module2) { module2.exports = invert; function invert(out, a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15], b00 = a00 * a11 - a01 * a10, b01 = a00 * a12 - a02 * a10, b02 = a00 * a13 - a03 * a10, b03 = a01 * a12 - a02 * a11, b04 = a01 * a13 - a03 * a11, b05 = a02 * a13 - a03 * a12, b06 = a20 * a31 - a21 * a30, b07 = a20 * a32 - a22 * a30, b08 = a20 * a33 - a23 * a30, b09 = a21 * a32 - a22 * a31, b10 = a21 * a33 - a23 * a31, b11 = a22 * a33 - a23 * a32, det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; @@ -108746,12 +108826,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6582: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var identity2 = __webpack_require__2(7894); module2.exports = lookAt; function lookAt(out, eye, center, up) { @@ -108813,12 +108893,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6760: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; @@ -108854,12 +108934,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 4040: ( /***/ - function(module2) { + (function(module2) { module2.exports = ortho; function ortho(out, left, right, bottom, top, near, far) { var lr = 1 / (left - right), bt = 1 / (bottom - top), nf = 1 / (near - far); @@ -108882,12 +108962,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 4772: ( /***/ - function(module2) { + (function(module2) { module2.exports = perspective; function perspective(out, fovy, aspect, near, far) { var f = 1 / Math.tan(fovy / 2), nf = 1 / (near - far); @@ -108910,12 +108990,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6079: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotate; function rotate(out, a, rad, axis) { var x = axis[0], y = axis[1], z = axis[2], len = Math.sqrt(x * x + y * y + z * z), s, c, t, a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23, b00, b01, b02, b10, b11, b12, b20, b21, b22; @@ -108971,12 +109051,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 5567: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateX; function rotateX(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; @@ -109001,12 +109081,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 2408: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateY; function rotateY(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; @@ -109031,12 +109111,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7089: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateZ; function rotateZ(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7]; @@ -109061,12 +109141,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 2504: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, v) { var x = v[0], y = v[1], z = v[2]; @@ -109089,12 +109169,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7656: ( /***/ - function(module2) { + (function(module2) { module2.exports = translate; function translate(out, a, v) { var x = v[0], y = v[1], z = v[2], a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23; @@ -109136,12 +109216,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 5665: ( /***/ - function(module2) { + (function(module2) { module2.exports = transpose; function transpose(out, a) { if (out === a) { @@ -109179,12 +109259,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7626: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var barycentric = __webpack_require__2(2642); var closestPointToTriangle = __webpack_require__2(9346); @@ -109276,12 +109356,12 @@ var Plotly = (() => { } return [closestIndex, interpolate(simplex, weights), weights]; } - } + }) ), /***/ 840: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]); @@ -109347,12 +109427,12 @@ var Plotly = (() => { { name: "position", type: "vec3" } ] }; - } + }) ), /***/ 7201: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DEFAULT_VERTEX_NORMALS_EPSILON = 1e-6; var DEFAULT_FACE_NORMALS_EPSILON = 1e-6; @@ -110328,12 +110408,12 @@ var Plotly = (() => { return mesh; } module2.exports = createSimplicialMesh; - } + }) ), /***/ 4437: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createCamera; var now = __webpack_require__2(3025); @@ -110573,12 +110653,12 @@ var Plotly = (() => { camera.enableMouseListeners(); return camera; } - } + }) ), /***/ 799: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); var vertSrc = glslify(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]); @@ -110586,12 +110666,12 @@ var Plotly = (() => { module2.exports = function(gl2) { return createShader(gl2, vertSrc, fragSrc, null, [{ name: "position", type: "vec2" }]); }; - } + }) ), /***/ 4100: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createCamera = __webpack_require__2(4437); var createAxes = __webpack_require__2(3837); @@ -111287,12 +111367,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 783: ( /***/ - function(module2) { + (function(module2) { module2.exports = slerp; function slerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2], aw = a[3], bx = b[0], by = b[1], bz = b[2], bw = b[3]; @@ -111320,22 +111400,22 @@ var Plotly = (() => { out[3] = scale0 * aw + scale1 * bw; return out; } - } + }) ), /***/ 5964: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function(a) { return !a && a !== 0 ? "" : a.toString(); }; - } + }) ), /***/ 9366: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vectorizeText = __webpack_require__2(4359); module2.exports = getGlyph; @@ -111399,12 +111479,12 @@ var Plotly = (() => { } return fontCache[symbol] = [triSymbol, lineSymbol, bounds]; } - } + }) ), /***/ 1283: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var createShaderWrapper = __webpack_require__2(9405); var glslify = __webpack_require__2(3236); var perspectiveVertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]); @@ -111470,12 +111550,12 @@ var Plotly = (() => { exports2.createPickProject = function(gl2) { return createShader(gl2, pickProject); }; - } + }) ), /***/ 8418: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isAllBlank = __webpack_require__2(5219); var createBuffer = __webpack_require__2(2762); @@ -112206,12 +112286,12 @@ var Plotly = (() => { pointCloud.update(options); return pointCloud; } - } + }) ), /***/ 3589: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSelectBuffer; var createFBO = __webpack_require__2(2260); @@ -112372,12 +112452,12 @@ var Plotly = (() => { var buffer = pool.mallocUint8(width * height * 4); return new SelectBuffer(gl2, fbo, buffer); } - } + }) ), /***/ 9405: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createUniformWrapper = __webpack_require__2(3327); var createAttributeWrapper = __webpack_require__2(8731); @@ -112561,12 +112641,12 @@ var Plotly = (() => { return shader; } module2.exports = createShader; - } + }) ), /***/ 8866: ( /***/ - function(module2) { + (function(module2) { function GLError(rawError, shortMessage, longMessage) { this.shortMessage = shortMessage || ""; this.longMessage = longMessage || ""; @@ -112578,12 +112658,12 @@ var Plotly = (() => { GLError.prototype.name = "GLError"; GLError.prototype.constructor = GLError; module2.exports = GLError; - } + }) ), /***/ 8731: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createAttributeWrapper; var GLError = __webpack_require__2(8866); @@ -112814,12 +112894,12 @@ var Plotly = (() => { } return obj; } - } + }) ), /***/ 3327: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var coallesceUniforms = __webpack_require__2(216); var GLError = __webpack_require__2(8866); @@ -113008,12 +113088,12 @@ var Plotly = (() => { configurable: true }; } - } + }) ), /***/ 216: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = makeReflectTypes; function makeReflectTypes(uniforms, useIndex) { @@ -113064,12 +113144,12 @@ var Plotly = (() => { } return obj; } - } + }) ), /***/ 2145: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.uniforms = runtimeUniforms; exports2.attributes = runtimeAttributes; @@ -113142,12 +113222,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 5091: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; exports2.shader = getShaderReference; exports2.program = createProgram; @@ -113267,12 +113347,12 @@ var Plotly = (() => { function createProgram(gl2, vref, fref, attribs, locations) { return getCache(gl2).getProgram(vref, fref, attribs, locations); } - } + }) ), /***/ 1493: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -113285,12 +113365,12 @@ var Plotly = (() => { { name: "weight", type: "float" } ]); }; - } + }) ), /***/ 4449: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createBuffer = __webpack_require__2(2762); var createVAO = __webpack_require__2(8116); @@ -113462,12 +113542,12 @@ var Plotly = (() => { spikes.update(options); return spikes; } - } + }) ), /***/ 6740: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]); @@ -113492,12 +113572,12 @@ var Plotly = (() => { { name: "vector", type: "vec4" } ] }; - } + }) ), /***/ 7815: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vec3 = __webpack_require__2(2931); var vec4 = __webpack_require__2(9970); @@ -113931,12 +114011,12 @@ var Plotly = (() => { traceType: "streamtube" }); }; - } + }) ), /***/ 990: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var createShader = __webpack_require__2(9405); var glslify = __webpack_require__2(3236); var vertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 localCoordinate = vec3(uv.zw, f.x);\n worldCoordinate = objectOffset + localCoordinate;\n mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));\n vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0);\n vec4 clipPosition = projection * (view * worldPosition);\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n"]); @@ -113983,12 +114063,12 @@ var Plotly = (() => { shader.attributes.f.location = 1; return shader; }; - } + }) ), /***/ 9499: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSurfacePlot; var bits = __webpack_require__2(8828); @@ -115121,12 +115201,12 @@ var Plotly = (() => { surface.update(nparams); return surface; } - } + }) ), /***/ 7766: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ndarray = __webpack_require__2(9618); var ops = __webpack_require__2(5298); @@ -115644,12 +115724,12 @@ var Plotly = (() => { } throw new Error("gl-texture2d: Invalid arguments for texture2d constructor"); } - } + }) ), /***/ 1433: ( /***/ - function(module2) { + (function(module2) { "use strict"; function doBind(gl2, elements, attributes) { if (elements) { @@ -115702,12 +115782,12 @@ var Plotly = (() => { } } module2.exports = doBind; - } + }) ), /***/ 870: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bindAttribs = __webpack_require__2(1433); function VAOEmulated(gl2) { @@ -115741,12 +115821,12 @@ var Plotly = (() => { return new VAOEmulated(gl2); } module2.exports = createVAOEmulated; - } + }) ), /***/ 7518: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bindAttribs = __webpack_require__2(1433); function VertexAttribute(location2, dimension, a, b, c, d) { @@ -115823,12 +115903,12 @@ var Plotly = (() => { return new VAONative(gl2, ext, ext.createVertexArrayOES()); } module2.exports = createVAONative; - } + }) ), /***/ 8116: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createVAONative = __webpack_require__2(7518); var createVAOEmulated = __webpack_require__2(870); @@ -115849,12 +115929,12 @@ var Plotly = (() => { return vao; } module2.exports = createVAO; - } + }) ), /***/ 5632: ( /***/ - function(module2) { + (function(module2) { module2.exports = add; function add(out, a, b) { out[0] = a[0] + b[0]; @@ -115862,12 +115942,12 @@ var Plotly = (() => { out[2] = a[2] + b[2]; return out; } - } + }) ), /***/ 8192: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = angle; var fromValues = __webpack_require__2(2825); var normalize = __webpack_require__2(3536); @@ -115884,12 +115964,12 @@ var Plotly = (() => { return Math.acos(cosine); } } - } + }) ), /***/ 9226: ( /***/ - function(module2) { + (function(module2) { module2.exports = ceil; function ceil(out, a) { out[0] = Math.ceil(a[0]); @@ -115897,12 +115977,12 @@ var Plotly = (() => { out[2] = Math.ceil(a[2]); return out; } - } + }) ), /***/ 3126: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(3); @@ -115911,12 +115991,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 3990: ( /***/ - function(module2) { + (function(module2) { module2.exports = copy; function copy(out, a) { out[0] = a[0]; @@ -115924,12 +116004,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 1091: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(3); @@ -115938,12 +116018,12 @@ var Plotly = (() => { out[2] = 0; return out; } - } + }) ), /***/ 5911: ( /***/ - function(module2) { + (function(module2) { module2.exports = cross; function cross(out, a, b) { var ax = a[0], ay = a[1], az = a[2], bx = b[0], by = b[1], bz = b[2]; @@ -115952,37 +116032,37 @@ var Plotly = (() => { out[2] = ax * by - ay * bx; return out; } - } + }) ), /***/ 5455: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(7056); - } + }) ), /***/ 7056: ( /***/ - function(module2) { + (function(module2) { module2.exports = distance; function distance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2]; return Math.sqrt(x * x + y * y + z * z); } - } + }) ), /***/ 4008: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(6690); - } + }) ), /***/ 6690: ( /***/ - function(module2) { + (function(module2) { module2.exports = divide; function divide(out, a, b) { out[0] = a[0] / b[0]; @@ -115990,29 +116070,29 @@ var Plotly = (() => { out[2] = a[2] / b[2]; return out; } - } + }) ), /***/ 244: ( /***/ - function(module2) { + (function(module2) { module2.exports = dot; function dot(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; } - } + }) ), /***/ 2613: ( /***/ - function(module2) { + (function(module2) { module2.exports = 1e-6; - } + }) ), /***/ 9922: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = equals; var EPSILON = __webpack_require__2(2613); function equals(a, b) { @@ -116024,22 +116104,22 @@ var Plotly = (() => { var b2 = b[2]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1, Math.abs(a2), Math.abs(b2)); } - } + }) ), /***/ 9265: ( /***/ - function(module2) { + (function(module2) { module2.exports = exactEquals; function exactEquals(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]; } - } + }) ), /***/ 2681: ( /***/ - function(module2) { + (function(module2) { module2.exports = floor; function floor(out, a) { out[0] = Math.floor(a[0]); @@ -116047,12 +116127,12 @@ var Plotly = (() => { out[2] = Math.floor(a[2]); return out; } - } + }) ), /***/ 5137: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = forEach; var vec = __webpack_require__2(1091)(); function forEach(a, stride, offset, count, fn, arg) { @@ -116079,12 +116159,12 @@ var Plotly = (() => { } return a; } - } + }) ), /***/ 2825: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromValues; function fromValues(x, y, z) { var out = new Float32Array(3); @@ -116093,12 +116173,12 @@ var Plotly = (() => { out[2] = z; return out; } - } + }) ), /***/ 2931: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { EPSILON: __webpack_require__2(2613), create: __webpack_require__2(1091), @@ -116146,12 +116226,12 @@ var Plotly = (() => { rotateZ: __webpack_require__2(8692), forEach: __webpack_require__2(5137) }; - } + }) ), /***/ 811: ( /***/ - function(module2) { + (function(module2) { module2.exports = inverse; function inverse(out, a) { out[0] = 1 / a[0]; @@ -116159,30 +116239,30 @@ var Plotly = (() => { out[2] = 1 / a[2]; return out; } - } + }) ), /***/ 868: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(1387); - } + }) ), /***/ 1387: ( /***/ - function(module2) { + (function(module2) { module2.exports = length; function length(a) { var x = a[0], y = a[1], z = a[2]; return Math.sqrt(x * x + y * y + z * z); } - } + }) ), /***/ 6658: ( /***/ - function(module2) { + (function(module2) { module2.exports = lerp; function lerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2]; @@ -116191,12 +116271,12 @@ var Plotly = (() => { out[2] = az + t * (b[2] - az); return out; } - } + }) ), /***/ 7417: ( /***/ - function(module2) { + (function(module2) { module2.exports = max; function max(out, a, b) { out[0] = Math.max(a[0], b[0]); @@ -116204,12 +116284,12 @@ var Plotly = (() => { out[2] = Math.max(a[2], b[2]); return out; } - } + }) ), /***/ 8107: ( /***/ - function(module2) { + (function(module2) { module2.exports = min; function min(out, a, b) { out[0] = Math.min(a[0], b[0]); @@ -116217,19 +116297,19 @@ var Plotly = (() => { out[2] = Math.min(a[2], b[2]); return out; } - } + }) ), /***/ 4505: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(5847); - } + }) ), /***/ 5847: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { out[0] = a[0] * b[0]; @@ -116237,12 +116317,12 @@ var Plotly = (() => { out[2] = a[2] * b[2]; return out; } - } + }) ), /***/ 5093: ( /***/ - function(module2) { + (function(module2) { module2.exports = negate; function negate(out, a) { out[0] = -a[0]; @@ -116250,12 +116330,12 @@ var Plotly = (() => { out[2] = -a[2]; return out; } - } + }) ), /***/ 3536: ( /***/ - function(module2) { + (function(module2) { module2.exports = normalize; function normalize(out, a) { var x = a[0], y = a[1], z = a[2]; @@ -116268,12 +116348,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 7636: ( /***/ - function(module2) { + (function(module2) { module2.exports = random; function random(out, scale) { scale = scale || 1; @@ -116285,12 +116365,12 @@ var Plotly = (() => { out[2] = z * scale; return out; } - } + }) ), /***/ 6894: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateX; function rotateX(out, a, b, c) { var by = b[1]; @@ -116304,12 +116384,12 @@ var Plotly = (() => { out[2] = bz + py * sc + pz * cc; return out; } - } + }) ), /***/ 109: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateY; function rotateY(out, a, b, c) { var bx = b[0]; @@ -116323,12 +116403,12 @@ var Plotly = (() => { out[2] = bz + pz * cc - px * sc; return out; } - } + }) ), /***/ 8692: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateZ; function rotateZ(out, a, b, c) { var bx = b[0]; @@ -116342,12 +116422,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 2447: ( /***/ - function(module2) { + (function(module2) { module2.exports = round; function round(out, a) { out[0] = Math.round(a[0]); @@ -116355,12 +116435,12 @@ var Plotly = (() => { out[2] = Math.round(a[2]); return out; } - } + }) ), /***/ 6621: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, b) { out[0] = a[0] * b; @@ -116368,12 +116448,12 @@ var Plotly = (() => { out[2] = a[2] * b; return out; } - } + }) ), /***/ 8489: ( /***/ - function(module2) { + (function(module2) { module2.exports = scaleAndAdd; function scaleAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; @@ -116381,12 +116461,12 @@ var Plotly = (() => { out[2] = a[2] + b[2] * scale; return out; } - } + }) ), /***/ 1463: ( /***/ - function(module2) { + (function(module2) { module2.exports = set; function set(out, x, y, z) { out[0] = x; @@ -116394,55 +116474,55 @@ var Plotly = (() => { out[2] = z; return out; } - } + }) ), /***/ 6141: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(2953); - } + }) ), /***/ 5486: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(3066); - } + }) ), /***/ 2953: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredDistance; function squaredDistance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2]; return x * x + y * y + z * z; } - } + }) ), /***/ 3066: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredLength; function squaredLength(a) { var x = a[0], y = a[1], z = a[2]; return x * x + y * y + z * z; } - } + }) ), /***/ 2229: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(6843); - } + }) ), /***/ 6843: ( /***/ - function(module2) { + (function(module2) { module2.exports = subtract; function subtract(out, a, b) { out[0] = a[0] - b[0]; @@ -116450,12 +116530,12 @@ var Plotly = (() => { out[2] = a[2] - b[2]; return out; } - } + }) ), /***/ 492: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat3; function transformMat3(out, a, m) { var x = a[0], y = a[1], z = a[2]; @@ -116464,12 +116544,12 @@ var Plotly = (() => { out[2] = x * m[2] + y * m[5] + z * m[8]; return out; } - } + }) ), /***/ 5673: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat4; function transformMat4(out, a, m) { var x = a[0], y = a[1], z = a[2], w = m[3] * x + m[7] * y + m[11] * z + m[15]; @@ -116479,12 +116559,12 @@ var Plotly = (() => { out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w; return out; } - } + }) ), /***/ 264: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformQuat; function transformQuat(out, a, q) { var x = a[0], y = a[1], z = a[2], qx = q[0], qy = q[1], qz = q[2], qw = q[3], ix = qw * x + qy * z - qz * y, iy = qw * y + qz * x - qx * z, iz = qw * z + qx * y - qy * x, iw = -qx * x - qy * y - qz * z; @@ -116493,12 +116573,12 @@ var Plotly = (() => { out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx; return out; } - } + }) ), /***/ 4361: ( /***/ - function(module2) { + (function(module2) { module2.exports = add; function add(out, a, b) { out[0] = a[0] + b[0]; @@ -116507,12 +116587,12 @@ var Plotly = (() => { out[3] = a[3] + b[3]; return out; } - } + }) ), /***/ 2335: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(4); @@ -116522,12 +116602,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 2933: ( /***/ - function(module2) { + (function(module2) { module2.exports = copy; function copy(out, a) { out[0] = a[0]; @@ -116536,12 +116616,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 7536: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(4); @@ -116551,23 +116631,23 @@ var Plotly = (() => { out[3] = 0; return out; } - } + }) ), /***/ 4691: ( /***/ - function(module2) { + (function(module2) { module2.exports = distance; function distance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2], w = b[3] - a[3]; return Math.sqrt(x * x + y * y + z * z + w * w); } - } + }) ), /***/ 1373: ( /***/ - function(module2) { + (function(module2) { module2.exports = divide; function divide(out, a, b) { out[0] = a[0] / b[0]; @@ -116576,22 +116656,22 @@ var Plotly = (() => { out[3] = a[3] / b[3]; return out; } - } + }) ), /***/ 3750: ( /***/ - function(module2) { + (function(module2) { module2.exports = dot; function dot(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]; } - } + }) ), /***/ 3390: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromValues; function fromValues(x, y, z, w) { var out = new Float32Array(4); @@ -116601,12 +116681,12 @@ var Plotly = (() => { out[3] = w; return out; } - } + }) ), /***/ 9970: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { create: __webpack_require__2(7536), clone: __webpack_require__2(2335), @@ -116634,12 +116714,12 @@ var Plotly = (() => { transformMat4: __webpack_require__2(5352), transformQuat: __webpack_require__2(4041) }; - } + }) ), /***/ 4494: ( /***/ - function(module2) { + (function(module2) { module2.exports = inverse; function inverse(out, a) { out[0] = 1 / a[0]; @@ -116648,23 +116728,23 @@ var Plotly = (() => { out[3] = 1 / a[3]; return out; } - } + }) ), /***/ 6808: ( /***/ - function(module2) { + (function(module2) { module2.exports = length; function length(a) { var x = a[0], y = a[1], z = a[2], w = a[3]; return Math.sqrt(x * x + y * y + z * z + w * w); } - } + }) ), /***/ 2573: ( /***/ - function(module2) { + (function(module2) { module2.exports = lerp; function lerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2], aw = a[3]; @@ -116674,12 +116754,12 @@ var Plotly = (() => { out[3] = aw + t * (b[3] - aw); return out; } - } + }) ), /***/ 160: ( /***/ - function(module2) { + (function(module2) { module2.exports = max; function max(out, a, b) { out[0] = Math.max(a[0], b[0]); @@ -116688,12 +116768,12 @@ var Plotly = (() => { out[3] = Math.max(a[3], b[3]); return out; } - } + }) ), /***/ 2334: ( /***/ - function(module2) { + (function(module2) { module2.exports = min; function min(out, a, b) { out[0] = Math.min(a[0], b[0]); @@ -116702,12 +116782,12 @@ var Plotly = (() => { out[3] = Math.min(a[3], b[3]); return out; } - } + }) ), /***/ 3576: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { out[0] = a[0] * b[0]; @@ -116716,12 +116796,12 @@ var Plotly = (() => { out[3] = a[3] * b[3]; return out; } - } + }) ), /***/ 1498: ( /***/ - function(module2) { + (function(module2) { module2.exports = negate; function negate(out, a) { out[0] = -a[0]; @@ -116730,12 +116810,12 @@ var Plotly = (() => { out[3] = -a[3]; return out; } - } + }) ), /***/ 5177: ( /***/ - function(module2) { + (function(module2) { module2.exports = normalize; function normalize(out, a) { var x = a[0], y = a[1], z = a[2], w = a[3]; @@ -116749,12 +116829,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 9131: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var vecNormalize = __webpack_require__2(5177); var vecScale = __webpack_require__2(9288); module2.exports = random; @@ -116768,12 +116848,12 @@ var Plotly = (() => { vecScale(out, out, scale); return out; } - } + }) ), /***/ 9288: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, b) { out[0] = a[0] * b; @@ -116782,12 +116862,12 @@ var Plotly = (() => { out[3] = a[3] * b; return out; } - } + }) ), /***/ 4844: ( /***/ - function(module2) { + (function(module2) { module2.exports = scaleAndAdd; function scaleAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; @@ -116796,12 +116876,12 @@ var Plotly = (() => { out[3] = a[3] + b[3] * scale; return out; } - } + }) ), /***/ 4578: ( /***/ - function(module2) { + (function(module2) { module2.exports = set; function set(out, x, y, z, w) { out[0] = x; @@ -116810,34 +116890,34 @@ var Plotly = (() => { out[3] = w; return out; } - } + }) ), /***/ 7960: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredDistance; function squaredDistance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2], w = b[3] - a[3]; return x * x + y * y + z * z + w * w; } - } + }) ), /***/ 483: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredLength; function squaredLength(a) { var x = a[0], y = a[1], z = a[2], w = a[3]; return x * x + y * y + z * z + w * w; } - } + }) ), /***/ 6860: ( /***/ - function(module2) { + (function(module2) { module2.exports = subtract; function subtract(out, a, b) { out[0] = a[0] - b[0]; @@ -116846,12 +116926,12 @@ var Plotly = (() => { out[3] = a[3] - b[3]; return out; } - } + }) ), /***/ 5352: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat4; function transformMat4(out, a, m) { var x = a[0], y = a[1], z = a[2], w = a[3]; @@ -116861,12 +116941,12 @@ var Plotly = (() => { out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; return out; } - } + }) ), /***/ 4041: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformQuat; function transformQuat(out, a, q) { var x = a[0], y = a[1], z = a[2], qx = q[0], qy = q[1], qz = q[2], qw = q[3], ix = qw * x + qy * z - qz * y, iy = qw * y + qz * x - qx * z, iz = qw * z + qx * y - qy * x, iw = -qx * x - qy * y - qz * z; @@ -116876,12 +116956,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 1848: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var tokenize = __webpack_require__2(4905); var atob2 = __webpack_require__2(6468); module2.exports = getName; @@ -116898,12 +116978,12 @@ var Plotly = (() => { return (b64 ? atob2(name2) : name2).trim(); } } - } + }) ), /***/ 5874: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = tokenize; var literals100 = __webpack_require__2(620), operators = __webpack_require__2(7827), builtins100 = __webpack_require__2(6852), literals300es = __webpack_require__2(7932), builtins300es = __webpack_require__2(3508); var NORMAL = 999, TOKEN = 9999, BLOCK_COMMENT = 0, LINE_COMMENT = 1, PREPROCESSOR = 2, OPERATOR = 3, INTEGER = 4, FLOAT = 5, IDENT = 6, BUILTIN = 7, KEYWORD = 8, WHITESPACE = 9, EOF = 10, HEX = 11; @@ -117212,12 +117292,12 @@ var Plotly = (() => { return i + 1; } } - } + }) ), /***/ 3508: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var v100 = __webpack_require__2(6852); v100 = v100.slice().filter(function(b) { return !/^(gl\_|texture)/.test(b); @@ -117280,12 +117360,12 @@ var Plotly = (() => { "textureProjGrad", "textureProjGradOffset" ]); - } + }) ), /***/ 6852: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ // Keep this list sorted "abs", @@ -117436,12 +117516,12 @@ var Plotly = (() => { "texture2DProjGradEXT", "textureCubeGradEXT" ]; - } + }) ), /***/ 7932: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var v100 = __webpack_require__2(620); module2.exports = v100.slice().concat([ "layout", @@ -117528,12 +117608,12 @@ var Plotly = (() => { "isampler2DMSArray", "usampler2DMSArray" ]); - } + }) ), /***/ 620: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ // current "precision", @@ -117626,12 +117706,12 @@ var Plotly = (() => { "namespace", "using" ]; - } + }) ), /***/ 7827: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ "<<=", ">>=", @@ -117679,12 +117759,12 @@ var Plotly = (() => { "{", "}" ]; - } + }) ), /***/ 4905: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var tokenize = __webpack_require__2(5874); module2.exports = tokenizeString; function tokenizeString(str, opt) { @@ -117694,12 +117774,12 @@ var Plotly = (() => { tokens = tokens.concat(generator(null)); return tokens; } - } + }) ), /***/ 3236: ( /***/ - function(module2) { + (function(module2) { module2.exports = function(strings) { if (typeof strings === "string") strings = [strings]; var exprs = [].slice.call(arguments, 1); @@ -117710,12 +117790,12 @@ var Plotly = (() => { parts.push(strings[i]); return parts.join(""); }; - } + }) ), /***/ 7520: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isBrowser = __webpack_require__2(9507); function detect() { @@ -117734,12 +117814,12 @@ var Plotly = (() => { return supported; } module2.exports = isBrowser && detect(); - } + }) ), /***/ 3778: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { exports2.read = function(buffer, offset, isLE, mLen, nBytes) { var e, m; var eLen = nBytes * 8 - mLen - 1; @@ -117817,12 +117897,12 @@ var Plotly = (() => { } buffer[offset + i - d] |= s * 128; }; - } + }) ), /***/ 8954: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = incrementalConvexHull; var orient = __webpack_require__2(3250); @@ -118174,12 +118254,12 @@ var Plotly = (() => { } return triangles.boundary(); } - } + }) ), /***/ 3352: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bounds = __webpack_require__2(2478); var NOT_FOUND = 0; @@ -118529,19 +118609,19 @@ var Plotly = (() => { } return new IntervalTree(createIntervalTree(intervals)); } - } + }) ), /***/ 9507: ( /***/ - function(module2) { + (function(module2) { module2.exports = true; - } + }) ), /***/ 7163: ( /***/ - function(module2) { + (function(module2) { module2.exports = function(obj) { return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer); }; @@ -118551,12 +118631,12 @@ var Plotly = (() => { function isSlowBuffer(obj) { return typeof obj.readFloatLE === "function" && typeof obj.slice === "function" && isBuffer(obj.slice(0, 0)); } - } + }) ), /***/ 5219: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function(str) { var l = str.length, a; @@ -118568,22 +118648,22 @@ var Plotly = (() => { } return true; }; - } + }) ), /***/ 395: ( /***/ - function(module2) { + (function(module2) { function lerp(v0, v1, t) { return v0 * (1 - t) + v1 * t; } module2.exports = lerp; - } + }) ), /***/ 2652: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var normalize = __webpack_require__2(4335); var create = __webpack_require__2(6864); var clone = __webpack_require__2(1903); @@ -118694,12 +118774,12 @@ var Plotly = (() => { out[1] = a[1] * scale1 + b[1] * scale2; out[2] = a[2] * scale1 + b[2] * scale2; } - } + }) ), /***/ 4335: ( /***/ - function(module2) { + (function(module2) { module2.exports = function normalize(out, mat) { var m44 = mat[15]; if (m44 === 0) @@ -118709,12 +118789,12 @@ var Plotly = (() => { out[i] = mat[i] * scale; return true; }; - } + }) ), /***/ 7442: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var lerp = __webpack_require__2(6658); var recompose = __webpack_require__2(7182); var decompose = __webpack_require__2(2652); @@ -118754,12 +118834,12 @@ var Plotly = (() => { function vec4() { return [0, 0, 0, 1]; } - } + }) ), /***/ 7182: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var mat4 = { identity: __webpack_require__2(7894), translate: __webpack_require__2(7656), @@ -118795,12 +118875,12 @@ var Plotly = (() => { mat4.scale(matrix, matrix, scale); return matrix; }; - } + }) ), /***/ 1811: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); var m4interp = __webpack_require__2(7442); @@ -118990,12 +119070,12 @@ var Plotly = (() => { ]; return new MatrixCameraController(matrix); } - } + }) ), /***/ 3090: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = monotoneConvexHull2D; var orient = __webpack_require__2(3250)[3]; @@ -119058,12 +119138,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 351: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = mouseListen; var mouse = __webpack_require__2(4687); @@ -119235,12 +119315,12 @@ var Plotly = (() => { }); return result; } - } + }) ), /***/ 24: ( /***/ - function(module2) { + (function(module2) { var rootPosition = { left: 0, top: 0 }; module2.exports = mouseEventOffset; function mouseEventOffset(ev, target, out) { @@ -119262,12 +119342,12 @@ var Plotly = (() => { return element.getBoundingClientRect(); } } - } + }) ), /***/ 4687: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; function mouseButtons(ev) { if (typeof ev === "object") { @@ -119324,12 +119404,12 @@ var Plotly = (() => { return 0; } exports2.y = mouseRelativeY; - } + }) ), /***/ 8512: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toPX = __webpack_require__2(665); module2.exports = mouseWheelListen; @@ -119367,12 +119447,12 @@ var Plotly = (() => { element.addEventListener("wheel", listener); return listener; } - } + }) ), /***/ 2640: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); module2.exports = createSurfaceExtractor; @@ -119681,12 +119761,12 @@ var Plotly = (() => { typesig ); } - } + }) ), /***/ 6199: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var dup = __webpack_require__2(1338); var CACHED_CWiseOp = { @@ -119897,12 +119977,12 @@ var Plotly = (() => { var cached = generateGradient(bc); return cached(out, inp); }; - } + }) ), /***/ 4317: ( /***/ - function(module2) { + (function(module2) { "use strict"; function interp1d(arr, x) { var ix = Math.floor(x), fx = x - ix, s0 = 0 <= ix && ix < arr.shape[0], s1 = 0 <= ix + 1 && ix + 1 < arr.shape[0], w0 = s0 ? +arr.get(ix) : 0, w1 = s1 ? +arr.get(ix + 1) : 0; @@ -119967,12 +120047,12 @@ var Plotly = (() => { module2.exports.d1 = interp1d; module2.exports.d2 = interp2d; module2.exports.d3 = interp3d; - } + }) ), /***/ 5298: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; var CACHED_CWiseOp = { "float64,2,1,0": function() { @@ -120320,12 +120400,12 @@ var Plotly = (() => { exports2.assign = makeOp({ funcName: "assign" }); - } + }) ), /***/ 9994: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ndarray = __webpack_require__2(9618); var do_convert = __webpack_require__2(8277); @@ -120345,12 +120425,12 @@ var Plotly = (() => { do_convert(result, arr); return result; }; - } + }) ), /***/ 8277: ( /***/ - function(module2) { + (function(module2) { "use strict"; function CwiseOp() { return function(SS, a0, t02, p0, Y0) { @@ -120411,12 +120491,12 @@ var Plotly = (() => { module2.exports = compileCwise({ funcName: "convert" }); - } + }) ), /***/ 7640: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); function getMallocFree(dtype) { @@ -121094,12 +121174,12 @@ var Plotly = (() => { return result(insertionSort, quickSort); } module2.exports = compileSort; - } + }) ), /***/ 446: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compile = __webpack_require__2(7640); var CACHE = {}; @@ -121116,12 +121196,12 @@ var Plotly = (() => { return array; } module2.exports = sort; - } + }) ), /***/ 9618: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var isBuffer = __webpack_require__2(7163); var hasTypedArrays = typeof Float64Array !== "undefined"; function compare1st(a, b) { @@ -121956,12 +122036,12 @@ var Plotly = (() => { return ctor(data, shape, stride, offset); } module2.exports = wrappedNDArrayCtor; - } + }) ), /***/ 1278: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var doubleBits = __webpack_require__2(2361); var SMALLEST_DENORM = Math.pow(2, -1074); @@ -122000,12 +122080,12 @@ var Plotly = (() => { } return doubleBits.pack(lo, hi); } - } + }) ), /***/ 8406: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { var DEFAULT_NORMALS_EPSILON = 1e-6; var DEFAULT_FACE_EPSILON = 1e-6; exports2.vertexNormals = function(faces, positions, specifiedEpsilon) { @@ -122103,12 +122183,12 @@ var Plotly = (() => { } return normals; }; - } + }) ), /***/ 4081: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = quatFromFrame; function quatFromFrame(out, rx, ry, rz, ux, uy, uz, fx, fy, fz) { @@ -122141,12 +122221,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 9977: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createOrbitController; var filterVector = __webpack_require__2(9215); @@ -122496,24 +122576,24 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 1371: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var repeat = __webpack_require__2(3233); module2.exports = function padLeft(str, num, ch) { ch = typeof ch !== "undefined" ? ch + "" : " "; return repeat(ch, num) + str; }; - } + }) ), /***/ 3202: ( /***/ - function(module2) { + (function(module2) { module2.exports = function parseUnit(str, out) { if (!out) out = [0, ""]; @@ -122523,12 +122603,12 @@ var Plotly = (() => { out[1] = str.match(/[\d.\-\+]*\s*(.*)/)[1] || ""; return out; }; - } + }) ), /***/ 3088: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = planarDual; var compareAngle = __webpack_require__2(3140); @@ -122642,12 +122722,12 @@ var Plotly = (() => { } return cycles; } - } + }) ), /***/ 5609: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = trimLeaves; var e2a = __webpack_require__2(3134); @@ -122695,12 +122775,12 @@ var Plotly = (() => { } return [nedges, npositions]; } - } + }) ), /***/ 2095: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = planarGraphToPolyline; var e2a = __webpack_require__2(3134); @@ -122877,12 +122957,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 5085: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = preprocessPolygon; var orient = __webpack_require__2(3250)[3]; var makeSlabs = __webpack_require__2(4209); @@ -123018,12 +123098,12 @@ var Plotly = (() => { ); } } - } + }) ), /***/ 9346: ( /***/ - function(module2) { + (function(module2) { "use strict"; var diff = new Float64Array(4); var edge0 = new Float64Array(4); @@ -123197,19 +123277,19 @@ var Plotly = (() => { return sqrDistance; } module2.exports = closestPoint2d; - } + }) ), /***/ 8648: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(783); - } + }) ), /***/ 2653: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnadd = __webpack_require__2(3865); module2.exports = add; @@ -123221,12 +123301,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 5838: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = float2rat; var rat = __webpack_require__2(7842); @@ -123237,12 +123317,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 8987: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rat = __webpack_require__2(7842); var mul = __webpack_require__2(6504); @@ -123256,12 +123336,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 544: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnsub = __webpack_require__2(5572); module2.exports = sub; @@ -123273,12 +123353,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 5771: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compareCell = __webpack_require__2(8507); var compareOrientedCell = __webpack_require__2(3788); @@ -123306,12 +123386,12 @@ var Plotly = (() => { cells.length = ptr; return cells; } - } + }) ), /***/ 3233: ( /***/ - function(module2) { + (function(module2) { "use strict"; var res = ""; var cache; @@ -123340,23 +123420,23 @@ var Plotly = (() => { res = res.substr(0, max); return res; } - } + }) ), /***/ 3025: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2.g.performance && __webpack_require__2.g.performance.now ? function now() { return performance.now(); } : Date.now || function now() { return +/* @__PURE__ */ new Date(); }; - } + }) ), /***/ 7004: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = compressExpansion; function compressExpansion(e) { @@ -123389,12 +123469,12 @@ var Plotly = (() => { e.length = top; return e; } - } + }) ), /***/ 2962: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -123464,12 +123544,12 @@ var Plotly = (() => { } } generateDispatch(); - } + }) ), /***/ 1944: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -123481,12 +123561,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 2646: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -123675,12 +123755,12 @@ var Plotly = (() => { } } generateInSphereTest(); - } + }) ), /***/ 727: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var determinant = __webpack_require__2(2962); var NUM_EXPAND = 6; @@ -123757,12 +123837,12 @@ var Plotly = (() => { } } generateDispatch(); - } + }) ), /***/ 3250: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -123902,12 +123982,12 @@ var Plotly = (() => { } } generateOrientationProc(); - } + }) ), /***/ 5382: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var robustSum = __webpack_require__2(8210); var robustScale = __webpack_require__2(3012); @@ -123934,12 +124014,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 3012: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var twoSum = __webpack_require__2(9362); @@ -123987,12 +124067,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 1125: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = segmentsIntersect; var orient = __webpack_require__2(3250)[3]; @@ -124028,12 +124108,12 @@ var Plotly = (() => { } return true; } - } + }) ), /***/ 8545: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = robustSubtract; function scalarScalar(a, b) { @@ -124186,12 +124266,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 8210: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = linearExpansionSum; function scalarScalar(a, b) { @@ -124344,12 +124424,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 9127: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boundary; var bnd = __webpack_require__2(6204); @@ -124357,12 +124437,12 @@ var Plotly = (() => { function boundary(cells) { return reduce(bnd(cells)); } - } + }) ), /***/ 7765: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = extractContour; var ndarray = __webpack_require__2(9618); @@ -124496,12 +124576,12 @@ var Plotly = (() => { vertexWeights: uweights }; } - } + }) ), /***/ 1570: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = getPolygonizer; var allFns = [ @@ -124774,12 +124854,12 @@ var Plotly = (() => { function getPolygonizer(d) { return allFns[d](); } - } + }) ), /***/ 6803: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var __webpack_unused_export__; "use restrict"; @@ -125072,12 +125152,12 @@ var Plotly = (() => { return connectedComponents_sparse(cells); } __webpack_unused_export__ = connectedComponents; - } + }) ), /***/ 3105: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; "use restrict"; var INT_BITS = 32; @@ -125227,12 +125307,12 @@ var Plotly = (() => { var t = v | v - 1; return t + 1 | (~t & -~t) - 1 >>> countTrailingZeros(v) + 1; }; - } + }) ), /***/ 2014: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; "use restrict"; var bits = __webpack_require__2(3105), UnionFind = __webpack_require__2(4623); @@ -125524,12 +125604,12 @@ var Plotly = (() => { return connectedComponents_sparse(cells); } exports2.connectedComponents = connectedComponents; - } + }) ), /***/ 4623: ( /***/ - function(module2) { + (function(module2) { "use strict"; "use restrict"; module2.exports = UnionFind; @@ -125574,12 +125654,12 @@ var Plotly = (() => { ++ranks[xr]; } }; - } + }) ), /***/ 5878: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = simplifyPolygon; var orient = __webpack_require__2(3250); @@ -125804,12 +125884,12 @@ var Plotly = (() => { edges: ncells }; } - } + }) ), /***/ 1303: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = orderSegments; var orient = __webpack_require__2(3250); @@ -125901,12 +125981,12 @@ var Plotly = (() => { } return ar[0] - br[0]; } - } + }) ), /***/ 4209: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSlabDecomposition; var bounds = __webpack_require__2(2478); @@ -126128,12 +126208,12 @@ var Plotly = (() => { } return new SlabDecomposition(slabs, lines, horizontal); } - } + }) ), /***/ 5202: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var robustDot = __webpack_require__2(1944); var robustSum = __webpack_require__2(8210); @@ -126216,14 +126296,14 @@ var Plotly = (() => { } return neg; } - } + }) ), /***/ 3387: ( /***/ - function(module2, exports2, __webpack_require__2) { + (function(module2, exports2, __webpack_require__2) { var __WEBPACK_AMD_DEFINE_RESULT__; - !function() { + !(function() { "use strict"; var re = { not_string: /[^s]/, @@ -126411,21 +126491,21 @@ var Plotly = (() => { window["sprintf"] = sprintf; window["vsprintf"] = vsprintf; if (true) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = function() { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return { "sprintf": sprintf, "vsprintf": vsprintf }; - }.call(exports2, __webpack_require__2, exports2, module2), __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + }).call(exports2, __webpack_require__2, exports2, module2), __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } - }(); - } + })(); + }) ), /***/ 3711: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = surfaceNets; var generateContourExtractor = __webpack_require__2(2640); @@ -126544,12 +126624,12 @@ var Plotly = (() => { } return proc(array, level); } - } + }) ), /***/ 665: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var parseUnit = __webpack_require__2(3202); module2.exports = toPX; @@ -126603,12 +126683,12 @@ var Plotly = (() => { } return 1; } - } + }) ), /***/ 7261: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createTurntableController; var filterVector = __webpack_require__2(9215); @@ -127096,12 +127176,12 @@ var Plotly = (() => { phi ); } - } + }) ), /***/ 5250: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = twoProduct; var SPLITTER = +(Math.pow(2, 27) + 1); @@ -127126,12 +127206,12 @@ var Plotly = (() => { } return [y, x]; } - } + }) ), /***/ 9362: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = fastTwoSum; function fastTwoSum(a, b, result) { @@ -127147,12 +127227,12 @@ var Plotly = (() => { } return [ar + br, x]; } - } + }) ), /***/ 1888: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var bits = __webpack_require__2(8828); var dup = __webpack_require__2(1338); @@ -127359,12 +127439,12 @@ var Plotly = (() => { BUFFER[i].length = 0; } }; - } + }) ), /***/ 1755: ( /***/ - function(module2) { + (function(module2) { "use strict"; "use restrict"; module2.exports = UnionFind; @@ -127416,12 +127496,12 @@ var Plotly = (() => { ++ranks[xr]; } }; - } + }) ), /***/ 1682: ( /***/ - function(module2) { + (function(module2) { "use strict"; function unique_pred(list, compare) { var ptr = 1, len = list.length, a = list[0], b = list[0]; @@ -127471,12 +127551,12 @@ var Plotly = (() => { return unique_eq(list); } module2.exports = unique; - } + }) ), /***/ 4359: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createText; var vectorizeText = __webpack_require__2(7718); @@ -127499,12 +127579,12 @@ var Plotly = (() => { options ); } - } + }) ), /***/ 7718: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = vectorizeText; module2.exports.processPixels = processPixels; var surfaceNets = __webpack_require__2(3711); @@ -127862,12 +127942,12 @@ var Plotly = (() => { var pixels = getPixels(canvas, context, str, size, lineSpacing, styletags); return processPixels(pixels, options, size); } - } + }) ), /***/ 1538: ( /***/ - function(module2) { + (function(module2) { (function WeakMapModule() { "use strict"; if (typeof ses !== "undefined" && ses.ok && !ses.ok()) { @@ -128196,12 +128276,12 @@ var Plotly = (() => { module2.exports = OurWeakMap; } })(); - } + }) ), /***/ 236: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var hiddenStore = __webpack_require__2(8284); module2.exports = createStore; function createStore() { @@ -128214,12 +128294,12 @@ var Plotly = (() => { return store && store.identity === key ? store : hiddenStore(obj, key); }; } - } + }) ), /***/ 8284: ( /***/ - function(module2) { + (function(module2) { module2.exports = hiddenStore; function hiddenStore(obj, key) { var store = { identity: key }; @@ -128232,12 +128312,12 @@ var Plotly = (() => { }); return store; } - } + }) ), /***/ 606: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var createStore = __webpack_require__2(236); module2.exports = weakMap; function weakMap() { @@ -128259,12 +128339,12 @@ var Plotly = (() => { } }; } - } + }) ), /***/ 3349: ( /***/ - function(module2) { + (function(module2) { "use strict"; function CWiseOp() { return function(SS, a0, t02, p0, Y0, Y1) { @@ -128309,12 +128389,12 @@ var Plotly = (() => { module2.exports = compileCwise({ funcName: "zeroCrossings" }); - } + }) ), /***/ 781: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = findZeroCrossings; var core = __webpack_require__2(3349); @@ -128324,13 +128404,13 @@ var Plotly = (() => { core(array.hi(array.shape[0] - 1), cross, level); return cross; } - } + }) ), /***/ 7790: ( /***/ - function() { - } + (function() { + }) ) /******/ }; @@ -128353,23 +128433,23 @@ var Plotly = (() => { module2.loaded = true; return module2.exports; } - !function() { - __webpack_require__.g = function() { + !(function() { + __webpack_require__.g = (function() { if (typeof globalThis === "object") return globalThis; try { return this || new Function("return this")(); } catch (e) { if (typeof window === "object") return window; } - }(); - }(); - !function() { + })(); + })(); + !(function() { __webpack_require__.nmd = function(module2) { module2.paths = []; if (!module2.children) module2.children = []; return module2; }; - }(); + })(); var __webpack_exports__ = __webpack_require__(1964); module.exports = __webpack_exports__; })(); @@ -138635,34 +138715,35 @@ var Plotly = (() => { } return false; } + var ANTIMERIDIAN_LON_SHIFT = 360; + function doesCrossAntiMeridian(pts) { + for (let l = 0; l < pts.length - 1; l++) { + if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; + } + return null; + } function feature2polygons(feature) { var geometry = feature.geometry; var coords = geometry.coordinates; var loc = feature.id; var polygons = []; var appendPolygon, j, k, m; - function doesCrossAntiMerdian(pts) { - for (var l = 0; l < pts.length - 1; l++) { - if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; - } - return null; - } if (loc === "RUS" || loc === "FJI") { appendPolygon = function(_pts) { var pts; - if (doesCrossAntiMerdian(_pts) === null) { + if (doesCrossAntiMeridian(_pts) === null) { pts = _pts; } else { pts = new Array(_pts.length); for (m = 0; m < _pts.length; m++) { - pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + 360 : _pts[m][0], _pts[m][1]]; + pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + ANTIMERIDIAN_LON_SHIFT : _pts[m][0], _pts[m][1]]; } } polygons.push(polygon.tester(pts)); }; } else if (loc === "ATA") { appendPolygon = function(pts) { - var crossAntiMeridianIndex = doesCrossAntiMerdian(pts); + var crossAntiMeridianIndex = doesCrossAntiMeridian(pts); if (crossAntiMeridianIndex === null) { return polygons.push(polygon.tester(pts)); } @@ -138670,7 +138751,7 @@ var Plotly = (() => { var si = 0; for (m = 0; m < pts.length; m++) { if (m > crossAntiMeridianIndex) { - stitch[si++] = [pts[m][0] + 360, pts[m][1]]; + stitch[si++] = [pts[m][0] + ANTIMERIDIAN_LON_SHIFT, pts[m][1]]; } else if (m === crossAntiMeridianIndex) { stitch[si++] = pts[m]; stitch[si++] = [pts[m][0], -90]; @@ -138860,13 +138941,39 @@ var Plotly = (() => { function computeBbox(d) { return turfBbox(d); } + function getFitboundsLonRange(lons) { + const sorted = lons.filter(isFinite).sort((a, b) => a - b); + if (sorted.length < 2) return null; + const n = sorted.length; + const naiveSpan = sorted[n - 1] - sorted[0]; + if (naiveSpan >= 360) return null; + let maxGap = -Infinity; + let gapStart = -1; + for (let i = 0; i < n - 1; i++) { + const gap = sorted[i + 1] - sorted[i]; + if (gap > maxGap) { + maxGap = gap; + gapStart = i; + } + } + const antimeridianGap = 360 - naiveSpan; + if (maxGap <= antimeridianGap) return null; + return [sorted[gapStart + 1], sorted[gapStart] + ANTIMERIDIAN_LON_SHIFT]; + } + function unwrapLonRange([lon0, lon1]) { + return [lon0, lon0 > 0 && lon1 < 0 ? lon1 + ANTIMERIDIAN_LON_SHIFT : lon1]; + } module.exports = { locationToFeature, feature2polygons, getTraceGeojson, extractTraceFeature, fetchTraceGeoData, - computeBbox + computeBbox, + doesCrossAntiMeridian, + getFitboundsLonRange, + unwrapLonRange, + ANTIMERIDIAN_LON_SHIFT }; } }); @@ -139134,7 +139241,7 @@ var Plotly = (() => { "node_modules/d3-array/dist/d3-array.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : factory(global2.d3 = global2.d3 || {}); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function ascending(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; @@ -139545,7 +139652,7 @@ var Plotly = (() => { exports2.variance = variance; exports2.zip = zip; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -139554,7 +139661,7 @@ var Plotly = (() => { "node_modules/d3-geo/dist/d3-geo.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array()) : typeof define === "function" && false ? define(["exports", "d3-array"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}, global2.d3)); - })(exports, function(exports2, d3Array) { + })(exports, (function(exports2, d3Array) { "use strict"; function adder() { return new Adder(); @@ -141863,7 +141970,7 @@ var Plotly = (() => { exports2.geoTransverseMercator = transverseMercator; exports2.geoTransverseMercatorRaw = transverseMercatorRaw; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -141872,7 +141979,7 @@ var Plotly = (() => { "node_modules/d3-geo-projection/dist/d3-geo-projection.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_geo(), require_d3_array()) : typeof define === "function" && false ? define(["exports", "d3-geo", "d3-array"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3); - })(exports, function(exports2, d3Geo, d3Array) { + })(exports, (function(exports2, d3Geo, d3Array) { "use strict"; var abs = Math.abs; var atan = Math.atan; @@ -145249,7 +145356,7 @@ var Plotly = (() => { exports2.geoWinkel3 = winkel3; exports2.geoWinkel3Raw = winkel3Raw; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -145632,6 +145739,7 @@ var Plotly = (() => { var createGeoZoom = require_zoom(); var constants = require_constants22(); var geoUtils = require_geo_location_utils(); + var { getFitboundsLonRange, unwrapLonRange } = geoUtils; var topojsonUtils = require_topojson_utils(); var topojsonFeature = require_topojson_client().feature; function Geo(opts) { @@ -145769,6 +145877,7 @@ var Plotly = (() => { this._render(); }; proto.updateProjection = function(geoCalcData, fullLayout) { + var _a; var gd = this.graphDiv; var geoLayout = fullLayout[this.id]; var gs = fullLayout._size; @@ -145795,6 +145904,31 @@ var Plotly = (() => { axLat._length = extent[1][1] - extent[0][1]; axLon.range = getAutoRange(gd, axLon); axLat.range = getAutoRange(gd, axLat); + if (!this.hasChoropleth && geoLayout.fitbounds === "locations") { + var lons = []; + var hasLocationData = false; + for (var i = 0; i < geoCalcData.length; i++) { + var calcTrace = geoCalcData[i]; + var fitTrace = calcTrace[0].trace; + if (fitTrace.visible !== true) continue; + if ((_a = fitTrace.locations) == null ? void 0 : _a.length) { + hasLocationData = true; + break; + } + for (var j = 0; j < calcTrace.length; j++) { + var lonlat = calcTrace[j].lonlat; + if (lonlat) lons.push(lonlat[0]); + } + } + if (!hasLocationData) { + var fitLonRange = getFitboundsLonRange(lons); + if (fitLonRange) { + var lonDataSpan = Lib.aggNums(Math.max, null, lons) - Lib.aggNums(Math.min, null, lons); + var lonPad = lonDataSpan > 0 ? (axLon.range[1] - axLon.range[0] - lonDataSpan) / 2 * (fitLonRange[1] - fitLonRange[0]) / lonDataSpan : 0; + axLon.range = [fitLonRange[0] - lonPad, fitLonRange[1] + lonPad]; + } + } + } var midLon = (axLon.range[0] + axLon.range[1]) / 2; var midLat = (axLat.range[0] + axLat.range[1]) / 2; if (geoLayout._isScoped) { @@ -146204,11 +146338,9 @@ var Plotly = (() => { } function makeRangeBox(lon, lat) { var clipPad = constants.clipPad; - var lon0 = lon[0] + clipPad; - var lon1 = lon[1] - clipPad; + const [lon0, lon1] = unwrapLonRange([lon[0] + clipPad, lon[1] - clipPad]); var lat0 = lat[0] + clipPad; var lat1 = lat[1] - clipPad; - if (lon0 > 0 && lon1 < 0) lon1 += 360; var dlon4 = (lon1 - lon0) / 4; return { type: "Polygon", @@ -146561,6 +146693,7 @@ var Plotly = (() => { var Lib = require_lib(); var handleSubplotDefaults = require_subplot_defaults(); var getSubplotData = require_get_data().getSubplotData; + var { unwrapLonRange } = require_geo_location_utils(); var constants = require_constants22(); var layoutAttributes = require_layout_attributes18(); var axesNames = constants.axesNames; @@ -146643,9 +146776,7 @@ var Plotly = (() => { } var lonRange = geoLayoutOut.lonaxis.range; var latRange = geoLayoutOut.lataxis.range; - var lon0 = lonRange[0]; - var lon1 = lonRange[1]; - if (lon0 > 0 && lon1 < 0) lon1 += 360; + const [lon0, lon1] = unwrapLonRange(lonRange); var centerLon = (lon0 + lon1) / 2; var projLon; if (!isAlbersUsa) { @@ -147145,13 +147276,14 @@ var Plotly = (() => { var Axes = require_axes(); var attributes = require_attributes49(); var fillText = require_lib().fillText; + var { ANTIMERIDIAN_LON_SHIFT } = require_geo_location_utils(); module.exports = function hoverPoints(pointData, xval, yval) { var cd = pointData.cd; var trace = cd[0].trace; var geo = pointData.subplot; var pt, i, j, isInside; var xy = [xval, yval]; - var altXy = [xval + 360, yval]; + const altXy = [xval + ANTIMERIDIAN_LON_SHIFT, yval]; for (i = 0; i < cd.length; i++) { pt = cd[i]; isInside = false; @@ -148354,7 +148486,7 @@ var Plotly = (() => { Object.defineProperty(exports, "__esModule", { value: true }); - var _slicedToArray = /* @__PURE__ */ function() { + var _slicedToArray = /* @__PURE__ */ (function() { function sliceIterator(arr, i) { var _arr = []; var _n = true; @@ -148386,7 +148518,7 @@ var Plotly = (() => { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; - }(); + })(); var TAU = Math.PI * 2; var mapToEllipse = function mapToEllipse2(_ref, rx, ry, cosphi, sinphi, centerx, centery) { var x = _ref.x, y = _ref.y; @@ -151590,7 +151722,7 @@ var Plotly = (() => { if (!require_is_implemented2()()) { shim = require_shim3(); } - module.exports = function() { + module.exports = (function() { var nullObject, polyProps, desc; if (!shim) return create; if (shim.level !== 1) return create; @@ -151619,7 +151751,7 @@ var Plotly = (() => { return function(prototype, props) { return create(prototype === null ? nullObject : prototype, props); }; - }(); + })(); } }); @@ -151638,7 +151770,7 @@ var Plotly = (() => { if (prototype === null || isObject(prototype)) return obj; throw new TypeError("Prototype must be null or an object"); }; - module.exports = function(status) { + module.exports = (function(status) { var fn, set; if (!status) return null; if (status.level === 2) { @@ -151672,8 +151804,8 @@ var Plotly = (() => { writable: false, value: status.level }); - }( - function() { + })( + (function() { var tmpObj1 = /* @__PURE__ */ Object.create(null), tmpObj2 = {}, set, desc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__"); if (desc) { try { @@ -151689,7 +151821,7 @@ var Plotly = (() => { tmpObj1.__proto__ = tmpObj2; if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 1 }; return false; - }() + })() ); require_create2(); } @@ -152017,9 +152149,9 @@ var Plotly = (() => { "node_modules/es5-ext/function/is-arguments.js"(exports, module) { "use strict"; var objToString = Object.prototype.toString; - var id = objToString.call(/* @__PURE__ */ function() { + var id = objToString.call(/* @__PURE__ */ (function() { return arguments; - }()); + })()); module.exports = function(value) { return objToString.call(value) === id; }; @@ -152058,7 +152190,7 @@ var Plotly = (() => { if (typeof window === "object" && window) return window; throw new Error("Unable to resolve global `this`"); }; - module.exports = function() { + module.exports = (function() { if (this) return this; try { Object.defineProperty(Object.prototype, "__global__", { @@ -152076,7 +152208,7 @@ var Plotly = (() => { } finally { delete Object.prototype.__global__; } - }(); + })(); } }); @@ -153056,10 +153188,10 @@ var Plotly = (() => { var require_is_native_implemented = __commonJS({ "node_modules/es6-weak-map/is-native-implemented.js"(exports, module) { "use strict"; - module.exports = function() { + module.exports = (function() { if (typeof WeakMap !== "function") return false; return Object.prototype.toString.call(/* @__PURE__ */ new WeakMap()) === "[object WeakMap]"; - }(); + })(); } }); @@ -155008,7 +155140,7 @@ void main() { "node_modules/regl/dist/regl.unchecked.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : global2.createREGL = factory(); - })(exports, function() { + })(exports, (function() { "use strict"; var extend2 = function(base, opts) { var keys = Object.keys(opts); @@ -162561,7 +162693,7 @@ void main() { return { next: nextState, current: currentState, - procs: function() { + procs: (function() { var env = createREGLEnvironment(); var poll = env.proc("poll"); var refresh = env.proc("refresh"); @@ -162744,7 +162876,7 @@ void main() { refresh(block); }); return env.compile(); - }(), + })(), compile: compileCommand }; } @@ -163376,7 +163508,7 @@ void main() { return regl; } return wrapREGL; - }); + })); } }); @@ -164835,7 +164967,7 @@ void main() { "node_modules/@plotly/regl/dist/regl.unchecked.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : global2.createREGL = factory(); - })(exports, function() { + })(exports, (function() { "use strict"; var extend2 = function(base, opts) { var keys = Object.keys(opts); @@ -172388,7 +172520,7 @@ void main() { return { next: nextState, current: currentState, - procs: function() { + procs: (function() { var env = createREGLEnvironment(); var poll = env.proc("poll"); var refresh = env.proc("refresh"); @@ -172571,7 +172703,7 @@ void main() { refresh(block); }); return env.compile(); - }(), + })(), compile: compileCommand }; } @@ -173203,7 +173335,7 @@ void main() { return regl; } return wrapREGL; - }); + })); } }); @@ -173363,7 +173495,9 @@ void main() { scene.line2d.update(scene.lineOptions); } if (scene.error2d) { - var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []); + var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []).map(function(errorOptions) { + return errorOptions || { positions: [], errors: [] }; + }); scene.error2d.update(errorBatch); } if (scene.scatter2d) { @@ -180918,7 +181052,7 @@ void main() { "node_modules/@plotly/mapbox-gl/dist/mapbox-gl-unminified.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : (global2 = global2 || self, global2.mapboxgl = factory()); - })(exports, function() { + })(exports, (function() { "use strict"; var shared, worker, mapboxgl; function define2(_, chunk) { @@ -181818,7 +181952,7 @@ void main() { this.queue.push(event); this.processRequests(customAccessToken); }; - var MapLoadEvent = function(TelemetryEvent2) { + var MapLoadEvent = (function(TelemetryEvent2) { function MapLoadEvent2() { TelemetryEvent2.call(this, "map.load"); this.success = {}; @@ -181865,8 +181999,8 @@ void main() { }, customAccessToken); }; return MapLoadEvent2; - }(TelemetryEvent); - var TurnstileEvent = function(TelemetryEvent2) { + })(TelemetryEvent); + var TurnstileEvent = (function(TelemetryEvent2) { function TurnstileEvent2(customAccessToken) { TelemetryEvent2.call(this, "appUserTurnstile"); this._customAccessToken = customAccessToken; @@ -181917,7 +182051,7 @@ void main() { }, customAccessToken); }; return TurnstileEvent2; - }(TelemetryEvent); + })(TelemetryEvent); var turnstileEvent_ = new TurnstileEvent(); var postTurnstileEvent = turnstileEvent_.postTurnstileEvent.bind(turnstileEvent_); var mapLoadEvent_ = new MapLoadEvent(); @@ -182067,7 +182201,7 @@ void main() { if (typeof Object.freeze == "function") { Object.freeze(ResourceType); } - var AJAXError = function(Error2) { + var AJAXError = (function(Error2) { function AJAXError2(message, status2, url) { if (status2 === 401 && isMapboxHTTPURL(url)) { message += ": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"; @@ -182086,7 +182220,7 @@ void main() { return this.name + ": " + this.message + " (" + this.status + "): " + this.url; }; return AJAXError2; - }(Error); + })(Error); var getReferrer = isWorker() ? function() { return self.worker && self.worker.referrer; } : function() { @@ -182363,7 +182497,7 @@ void main() { extend2(this, data); this.type = type; }; - var ErrorEvent = function(Event2) { + var ErrorEvent = (function(Event2) { function ErrorEvent2(error2, data) { if (data === void 0) data = {}; @@ -182374,7 +182508,7 @@ void main() { ErrorEvent2.prototype = Object.create(Event2 && Event2.prototype); ErrorEvent2.prototype.constructor = ErrorEvent2; return ErrorEvent2; - }(Event); + })(Event); var Evented = function Evented2() { }; Evented.prototype.on = function on(type, listener) { @@ -185283,7 +185417,7 @@ void main() { } return unbundle(value); } - var ParsingError = function(Error2) { + var ParsingError = (function(Error2) { function ParsingError2(key, message) { Error2.call(this, message); this.message = message; @@ -185294,7 +185428,7 @@ void main() { ParsingError2.prototype = Object.create(Error2 && Error2.prototype); ParsingError2.prototype.constructor = ParsingError2; return ParsingError2; - }(Error); + })(Error); var Scope = function Scope2(parent, bindings) { if (bindings === void 0) bindings = []; @@ -188875,7 +189009,7 @@ void main() { } function makeComparison(op, compareBasic, compareWithCollator) { var isOrderComparison = op !== "==" && op !== "!="; - return function() { + return (function() { function Comparison(lhs, rhs, collator) { this.type = BooleanType; this.lhs = lhs; @@ -188961,7 +189095,7 @@ void main() { return serialized; }; return Comparison; - }(); + })(); } var Equals = makeComparison("==", eq, eqCollate); var NotEquals = makeComparison("!=", neq, neqCollate); @@ -192533,7 +192667,7 @@ void main() { return value.evaluate(parameters, feature, featureState, canonical, availableImages); } }; - var CrossFadedDataDrivenProperty = function(DataDrivenProperty2) { + var CrossFadedDataDrivenProperty = (function(DataDrivenProperty2) { function CrossFadedDataDrivenProperty2() { DataDrivenProperty2.apply(this, arguments); } @@ -192590,7 +192724,7 @@ void main() { return a; }; return CrossFadedDataDrivenProperty2; - }(DataDrivenProperty); + })(DataDrivenProperty); var CrossFadedProperty = function CrossFadedProperty2(specification) { this.specification = specification; }; @@ -192650,7 +192784,7 @@ void main() { register("CrossFadedProperty", CrossFadedProperty); register("ColorRampProperty", ColorRampProperty); var TRANSITION_SUFFIX = "-transition"; - var StyleLayer = function(Evented2) { + var StyleLayer = (function(Evented2) { function StyleLayer2(layer2, properties2) { Evented2.call(this); this.id = layer2.id; @@ -192839,7 +192973,7 @@ void main() { return false; }; return StyleLayer2; - }(Evented); + })(Evented); var viewTypes = { "Int8": Int8Array, "Uint8": Uint8Array, @@ -192941,7 +193075,7 @@ void main() { function align(offset, size) { return Math.ceil(offset / size) * size; } - var StructArrayLayout2i4 = function(StructArray2) { + var StructArrayLayout2i4 = (function(StructArray2) { function StructArrayLayout2i42() { StructArray2.apply(this, arguments); } @@ -192965,10 +193099,10 @@ void main() { return i; }; return StructArrayLayout2i42; - }(StructArray); + })(StructArray); StructArrayLayout2i4.prototype.bytesPerElement = 4; register("StructArrayLayout2i4", StructArrayLayout2i4); - var StructArrayLayout4i8 = function(StructArray2) { + var StructArrayLayout4i8 = (function(StructArray2) { function StructArrayLayout4i82() { StructArray2.apply(this, arguments); } @@ -192994,10 +193128,10 @@ void main() { return i; }; return StructArrayLayout4i82; - }(StructArray); + })(StructArray); StructArrayLayout4i8.prototype.bytesPerElement = 8; register("StructArrayLayout4i8", StructArrayLayout4i8); - var StructArrayLayout2i4i12 = function(StructArray2) { + var StructArrayLayout2i4i12 = (function(StructArray2) { function StructArrayLayout2i4i122() { StructArray2.apply(this, arguments); } @@ -193025,10 +193159,10 @@ void main() { return i; }; return StructArrayLayout2i4i122; - }(StructArray); + })(StructArray); StructArrayLayout2i4i12.prototype.bytesPerElement = 12; register("StructArrayLayout2i4i12", StructArrayLayout2i4i12); - var StructArrayLayout2i4ub8 = function(StructArray2) { + var StructArrayLayout2i4ub8 = (function(StructArray2) { function StructArrayLayout2i4ub82() { StructArray2.apply(this, arguments); } @@ -193057,10 +193191,10 @@ void main() { return i; }; return StructArrayLayout2i4ub82; - }(StructArray); + })(StructArray); StructArrayLayout2i4ub8.prototype.bytesPerElement = 8; register("StructArrayLayout2i4ub8", StructArrayLayout2i4ub8); - var StructArrayLayout2f8 = function(StructArray2) { + var StructArrayLayout2f8 = (function(StructArray2) { function StructArrayLayout2f82() { StructArray2.apply(this, arguments); } @@ -193084,10 +193218,10 @@ void main() { return i; }; return StructArrayLayout2f82; - }(StructArray); + })(StructArray); StructArrayLayout2f8.prototype.bytesPerElement = 8; register("StructArrayLayout2f8", StructArrayLayout2f8); - var StructArrayLayout10ui20 = function(StructArray2) { + var StructArrayLayout10ui20 = (function(StructArray2) { function StructArrayLayout10ui202() { StructArray2.apply(this, arguments); } @@ -193119,10 +193253,10 @@ void main() { return i; }; return StructArrayLayout10ui202; - }(StructArray); + })(StructArray); StructArrayLayout10ui20.prototype.bytesPerElement = 20; register("StructArrayLayout10ui20", StructArrayLayout10ui20); - var StructArrayLayout4i4ui4i24 = function(StructArray2) { + var StructArrayLayout4i4ui4i24 = (function(StructArray2) { function StructArrayLayout4i4ui4i242() { StructArray2.apply(this, arguments); } @@ -193157,10 +193291,10 @@ void main() { return i; }; return StructArrayLayout4i4ui4i242; - }(StructArray); + })(StructArray); StructArrayLayout4i4ui4i24.prototype.bytesPerElement = 24; register("StructArrayLayout4i4ui4i24", StructArrayLayout4i4ui4i24); - var StructArrayLayout3f12 = function(StructArray2) { + var StructArrayLayout3f12 = (function(StructArray2) { function StructArrayLayout3f122() { StructArray2.apply(this, arguments); } @@ -193185,10 +193319,10 @@ void main() { return i; }; return StructArrayLayout3f122; - }(StructArray); + })(StructArray); StructArrayLayout3f12.prototype.bytesPerElement = 12; register("StructArrayLayout3f12", StructArrayLayout3f12); - var StructArrayLayout1ul4 = function(StructArray2) { + var StructArrayLayout1ul4 = (function(StructArray2) { function StructArrayLayout1ul42() { StructArray2.apply(this, arguments); } @@ -193211,10 +193345,10 @@ void main() { return i; }; return StructArrayLayout1ul42; - }(StructArray); + })(StructArray); StructArrayLayout1ul4.prototype.bytesPerElement = 4; register("StructArrayLayout1ul4", StructArrayLayout1ul4); - var StructArrayLayout6i1ul2ui20 = function(StructArray2) { + var StructArrayLayout6i1ul2ui20 = (function(StructArray2) { function StructArrayLayout6i1ul2ui202() { StructArray2.apply(this, arguments); } @@ -193248,10 +193382,10 @@ void main() { return i; }; return StructArrayLayout6i1ul2ui202; - }(StructArray); + })(StructArray); StructArrayLayout6i1ul2ui20.prototype.bytesPerElement = 20; register("StructArrayLayout6i1ul2ui20", StructArrayLayout6i1ul2ui20); - var StructArrayLayout2i2i2i12 = function(StructArray2) { + var StructArrayLayout2i2i2i12 = (function(StructArray2) { function StructArrayLayout2i2i2i122() { StructArray2.apply(this, arguments); } @@ -193279,10 +193413,10 @@ void main() { return i; }; return StructArrayLayout2i2i2i122; - }(StructArray); + })(StructArray); StructArrayLayout2i2i2i12.prototype.bytesPerElement = 12; register("StructArrayLayout2i2i2i12", StructArrayLayout2i2i2i12); - var StructArrayLayout2f1f2i16 = function(StructArray2) { + var StructArrayLayout2f1f2i16 = (function(StructArray2) { function StructArrayLayout2f1f2i162() { StructArray2.apply(this, arguments); } @@ -193311,10 +193445,10 @@ void main() { return i; }; return StructArrayLayout2f1f2i162; - }(StructArray); + })(StructArray); StructArrayLayout2f1f2i16.prototype.bytesPerElement = 16; register("StructArrayLayout2f1f2i16", StructArrayLayout2f1f2i16); - var StructArrayLayout2ub2f12 = function(StructArray2) { + var StructArrayLayout2ub2f12 = (function(StructArray2) { function StructArrayLayout2ub2f122() { StructArray2.apply(this, arguments); } @@ -193341,10 +193475,10 @@ void main() { return i; }; return StructArrayLayout2ub2f122; - }(StructArray); + })(StructArray); StructArrayLayout2ub2f12.prototype.bytesPerElement = 12; register("StructArrayLayout2ub2f12", StructArrayLayout2ub2f12); - var StructArrayLayout3ui6 = function(StructArray2) { + var StructArrayLayout3ui6 = (function(StructArray2) { function StructArrayLayout3ui62() { StructArray2.apply(this, arguments); } @@ -193369,10 +193503,10 @@ void main() { return i; }; return StructArrayLayout3ui62; - }(StructArray); + })(StructArray); StructArrayLayout3ui6.prototype.bytesPerElement = 6; register("StructArrayLayout3ui6", StructArrayLayout3ui6); - var StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 = function(StructArray2) { + var StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 = (function(StructArray2) { function StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482() { StructArray2.apply(this, arguments); } @@ -193416,10 +193550,10 @@ void main() { return i; }; return StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482; - }(StructArray); + })(StructArray); StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype.bytesPerElement = 48; register("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); - var StructArrayLayout8i15ui1ul4f68 = function(StructArray2) { + var StructArrayLayout8i15ui1ul4f68 = (function(StructArray2) { function StructArrayLayout8i15ui1ul4f682() { StructArray2.apply(this, arguments); } @@ -193473,10 +193607,10 @@ void main() { return i; }; return StructArrayLayout8i15ui1ul4f682; - }(StructArray); + })(StructArray); StructArrayLayout8i15ui1ul4f68.prototype.bytesPerElement = 68; register("StructArrayLayout8i15ui1ul4f68", StructArrayLayout8i15ui1ul4f68); - var StructArrayLayout1f4 = function(StructArray2) { + var StructArrayLayout1f4 = (function(StructArray2) { function StructArrayLayout1f42() { StructArray2.apply(this, arguments); } @@ -193499,10 +193633,10 @@ void main() { return i; }; return StructArrayLayout1f42; - }(StructArray); + })(StructArray); StructArrayLayout1f4.prototype.bytesPerElement = 4; register("StructArrayLayout1f4", StructArrayLayout1f4); - var StructArrayLayout3i6 = function(StructArray2) { + var StructArrayLayout3i6 = (function(StructArray2) { function StructArrayLayout3i62() { StructArray2.apply(this, arguments); } @@ -193527,10 +193661,10 @@ void main() { return i; }; return StructArrayLayout3i62; - }(StructArray); + })(StructArray); StructArrayLayout3i6.prototype.bytesPerElement = 6; register("StructArrayLayout3i6", StructArrayLayout3i6); - var StructArrayLayout1ul2ui8 = function(StructArray2) { + var StructArrayLayout1ul2ui8 = (function(StructArray2) { function StructArrayLayout1ul2ui82() { StructArray2.apply(this, arguments); } @@ -193557,10 +193691,10 @@ void main() { return i; }; return StructArrayLayout1ul2ui82; - }(StructArray); + })(StructArray); StructArrayLayout1ul2ui8.prototype.bytesPerElement = 8; register("StructArrayLayout1ul2ui8", StructArrayLayout1ul2ui8); - var StructArrayLayout2ui4 = function(StructArray2) { + var StructArrayLayout2ui4 = (function(StructArray2) { function StructArrayLayout2ui42() { StructArray2.apply(this, arguments); } @@ -193584,10 +193718,10 @@ void main() { return i; }; return StructArrayLayout2ui42; - }(StructArray); + })(StructArray); StructArrayLayout2ui4.prototype.bytesPerElement = 4; register("StructArrayLayout2ui4", StructArrayLayout2ui4); - var StructArrayLayout1ui2 = function(StructArray2) { + var StructArrayLayout1ui2 = (function(StructArray2) { function StructArrayLayout1ui22() { StructArray2.apply(this, arguments); } @@ -193610,10 +193744,10 @@ void main() { return i; }; return StructArrayLayout1ui22; - }(StructArray); + })(StructArray); StructArrayLayout1ui2.prototype.bytesPerElement = 2; register("StructArrayLayout1ui2", StructArrayLayout1ui2); - var StructArrayLayout4f16 = function(StructArray2) { + var StructArrayLayout4f16 = (function(StructArray2) { function StructArrayLayout4f162() { StructArray2.apply(this, arguments); } @@ -193639,10 +193773,10 @@ void main() { return i; }; return StructArrayLayout4f162; - }(StructArray); + })(StructArray); StructArrayLayout4f16.prototype.bytesPerElement = 16; register("StructArrayLayout4f16", StructArrayLayout4f16); - var CollisionBoxStruct = function(Struct2) { + var CollisionBoxStruct = (function(Struct2) { function CollisionBoxStruct2() { Struct2.apply(this, arguments); } @@ -193694,9 +193828,9 @@ void main() { }; Object.defineProperties(CollisionBoxStruct2.prototype, prototypeAccessors2); return CollisionBoxStruct2; - }(Struct); + })(Struct); CollisionBoxStruct.prototype.size = 20; - var CollisionBoxArray = function(StructArrayLayout6i1ul2ui202) { + var CollisionBoxArray = (function(StructArrayLayout6i1ul2ui202) { function CollisionBoxArray2() { StructArrayLayout6i1ul2ui202.apply(this, arguments); } @@ -193708,9 +193842,9 @@ void main() { return new CollisionBoxStruct(this, index); }; return CollisionBoxArray2; - }(StructArrayLayout6i1ul2ui20); + })(StructArrayLayout6i1ul2ui20); register("CollisionBoxArray", CollisionBoxArray); - var PlacedSymbolStruct = function(Struct2) { + var PlacedSymbolStruct = (function(Struct2) { function PlacedSymbolStruct2() { Struct2.apply(this, arguments); } @@ -193799,9 +193933,9 @@ void main() { }; Object.defineProperties(PlacedSymbolStruct2.prototype, prototypeAccessors$12); return PlacedSymbolStruct2; - }(Struct); + })(Struct); PlacedSymbolStruct.prototype.size = 48; - var PlacedSymbolArray = function(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482) { + var PlacedSymbolArray = (function(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482) { function PlacedSymbolArray2() { StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482.apply(this, arguments); } @@ -193813,9 +193947,9 @@ void main() { return new PlacedSymbolStruct(this, index); }; return PlacedSymbolArray2; - }(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); + })(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); register("PlacedSymbolArray", PlacedSymbolArray); - var SymbolInstanceStruct = function(Struct2) { + var SymbolInstanceStruct = (function(Struct2) { function SymbolInstanceStruct2() { Struct2.apply(this, arguments); } @@ -193942,9 +194076,9 @@ void main() { }; Object.defineProperties(SymbolInstanceStruct2.prototype, prototypeAccessors$2); return SymbolInstanceStruct2; - }(Struct); + })(Struct); SymbolInstanceStruct.prototype.size = 68; - var SymbolInstanceArray = function(StructArrayLayout8i15ui1ul4f682) { + var SymbolInstanceArray = (function(StructArrayLayout8i15ui1ul4f682) { function SymbolInstanceArray2() { StructArrayLayout8i15ui1ul4f682.apply(this, arguments); } @@ -193956,9 +194090,9 @@ void main() { return new SymbolInstanceStruct(this, index); }; return SymbolInstanceArray2; - }(StructArrayLayout8i15ui1ul4f68); + })(StructArrayLayout8i15ui1ul4f68); register("SymbolInstanceArray", SymbolInstanceArray); - var GlyphOffsetArray = function(StructArrayLayout1f42) { + var GlyphOffsetArray = (function(StructArrayLayout1f42) { function GlyphOffsetArray2() { StructArrayLayout1f42.apply(this, arguments); } @@ -193970,9 +194104,9 @@ void main() { return this.float32[index * 1 + 0]; }; return GlyphOffsetArray2; - }(StructArrayLayout1f4); + })(StructArrayLayout1f4); register("GlyphOffsetArray", GlyphOffsetArray); - var SymbolLineVertexArray = function(StructArrayLayout3i62) { + var SymbolLineVertexArray = (function(StructArrayLayout3i62) { function SymbolLineVertexArray2() { StructArrayLayout3i62.apply(this, arguments); } @@ -193990,9 +194124,9 @@ void main() { return this.int16[index * 3 + 2]; }; return SymbolLineVertexArray2; - }(StructArrayLayout3i6); + })(StructArrayLayout3i6); register("SymbolLineVertexArray", SymbolLineVertexArray); - var FeatureIndexStruct = function(Struct2) { + var FeatureIndexStruct = (function(Struct2) { function FeatureIndexStruct2() { Struct2.apply(this, arguments); } @@ -194016,9 +194150,9 @@ void main() { }; Object.defineProperties(FeatureIndexStruct2.prototype, prototypeAccessors$3); return FeatureIndexStruct2; - }(Struct); + })(Struct); FeatureIndexStruct.prototype.size = 8; - var FeatureIndexArray = function(StructArrayLayout1ul2ui82) { + var FeatureIndexArray = (function(StructArrayLayout1ul2ui82) { function FeatureIndexArray2() { StructArrayLayout1ul2ui82.apply(this, arguments); } @@ -194030,7 +194164,7 @@ void main() { return new FeatureIndexStruct(this, index); }; return FeatureIndexArray2; - }(StructArrayLayout1ul2ui8); + })(StructArrayLayout1ul2ui8); register("FeatureIndexArray", FeatureIndexArray); var layout$1 = createLayout([{ name: "a_pos", @@ -194293,7 +194427,7 @@ void main() { this.gl = context.gl; this.location = location2; }; - var Uniform1i = function(Uniform2) { + var Uniform1i = (function(Uniform2) { function Uniform1i2(context, location2) { Uniform2.call(this, context, location2); this.current = 0; @@ -194309,8 +194443,8 @@ void main() { } }; return Uniform1i2; - }(Uniform); - var Uniform1f = function(Uniform2) { + })(Uniform); + var Uniform1f = (function(Uniform2) { function Uniform1f2(context, location2) { Uniform2.call(this, context, location2); this.current = 0; @@ -194326,8 +194460,8 @@ void main() { } }; return Uniform1f2; - }(Uniform); - var Uniform2f = function(Uniform2) { + })(Uniform); + var Uniform2f = (function(Uniform2) { function Uniform2f2(context, location2) { Uniform2.call(this, context, location2); this.current = [ @@ -194346,8 +194480,8 @@ void main() { } }; return Uniform2f2; - }(Uniform); - var Uniform3f = function(Uniform2) { + })(Uniform); + var Uniform3f = (function(Uniform2) { function Uniform3f2(context, location2) { Uniform2.call(this, context, location2); this.current = [ @@ -194367,8 +194501,8 @@ void main() { } }; return Uniform3f2; - }(Uniform); - var Uniform4f = function(Uniform2) { + })(Uniform); + var Uniform4f = (function(Uniform2) { function Uniform4f2(context, location2) { Uniform2.call(this, context, location2); this.current = [ @@ -194389,8 +194523,8 @@ void main() { } }; return Uniform4f2; - }(Uniform); - var UniformColor = function(Uniform2) { + })(Uniform); + var UniformColor = (function(Uniform2) { function UniformColor2(context, location2) { Uniform2.call(this, context, location2); this.current = Color2.transparent; @@ -194406,9 +194540,9 @@ void main() { } }; return UniformColor2; - }(Uniform); + })(Uniform); var emptyMat4 = new Float32Array(16); - var UniformMatrix4f = function(Uniform2) { + var UniformMatrix4f = (function(Uniform2) { function UniformMatrix4f2(context, location2) { Uniform2.call(this, context, location2); this.current = emptyMat4; @@ -194432,7 +194566,7 @@ void main() { } }; return UniformMatrix4f2; - }(Uniform); + })(Uniform); function packColor(color3) { return [ packUint8ToFloat(255 * color3.r, 255 * color3.g), @@ -195766,7 +195900,7 @@ void main() { return out; } var sub = subtract; - var forEach = function() { + var forEach = (function() { var vec = create$3(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -195792,7 +195926,7 @@ void main() { } return a; }; - }(); + })(); function create$4() { var out = new ARRAY_TYPE(4); if (ARRAY_TYPE != Float32Array) { @@ -195821,7 +195955,7 @@ void main() { out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; return out; } - var forEach$1 = function() { + var forEach$1 = (function() { var vec = create$4(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -195849,7 +195983,7 @@ void main() { } return a; }; - }(); + })(); function create$5() { var out = new ARRAY_TYPE(2); if (ARRAY_TYPE != Float32Array) { @@ -195863,7 +195997,7 @@ void main() { return x * x + y * y; } var sqrLen = squaredLength; - var forEach$2 = function() { + var forEach$2 = (function() { var vec = create$5(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -195887,8 +196021,8 @@ void main() { } return a; }; - }(); - var CircleStyleLayer = function(StyleLayer2) { + })(); + var CircleStyleLayer = (function(StyleLayer2) { function CircleStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties); } @@ -195936,7 +196070,7 @@ void main() { return false; }; return CircleStyleLayer2; - }(StyleLayer); + })(StyleLayer); function projectPoint(p, pixelPosMatrix) { var point = transformMat4([], [ p.x, @@ -195951,7 +196085,7 @@ void main() { return projectPoint(p, pixelPosMatrix); }); } - var HeatmapBucket = function(CircleBucket2) { + var HeatmapBucket = (function(CircleBucket2) { function HeatmapBucket2() { CircleBucket2.apply(this, arguments); } @@ -195960,7 +196094,7 @@ void main() { HeatmapBucket2.prototype = Object.create(CircleBucket2 && CircleBucket2.prototype); HeatmapBucket2.prototype.constructor = HeatmapBucket2; return HeatmapBucket2; - }(CircleBucket); + })(CircleBucket); register("HeatmapBucket", HeatmapBucket, { omit: ["layers"] }); function createImage(image, ref, channels, data) { var width = ref.width; @@ -196106,7 +196240,7 @@ void main() { } return image; } - var HeatmapStyleLayer = function(StyleLayer2) { + var HeatmapStyleLayer = (function(StyleLayer2) { function HeatmapStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$1); this._updateColorRamp(); @@ -196148,7 +196282,7 @@ void main() { return this.paint.get("heatmap-opacity") !== 0 && this.visibility !== "none"; }; return HeatmapStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$3 = new Properties({ "hillshade-illumination-direction": new DataConstantProperty(spec["paint_hillshade"]["hillshade-illumination-direction"]), "hillshade-illumination-anchor": new DataConstantProperty(spec["paint_hillshade"]["hillshade-illumination-anchor"]), @@ -196158,7 +196292,7 @@ void main() { "hillshade-accent-color": new DataConstantProperty(spec["paint_hillshade"]["hillshade-accent-color"]) }); var properties$2 = { paint: paint$3 }; - var HillshadeStyleLayer = function(StyleLayer2) { + var HillshadeStyleLayer = (function(StyleLayer2) { function HillshadeStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$2); } @@ -196170,7 +196304,7 @@ void main() { return this.paint.get("hillshade-exaggeration") !== 0 && this.visibility !== "none"; }; return HillshadeStyleLayer2; - }(StyleLayer); + })(StyleLayer); var layout$3 = createLayout([{ name: "a_pos", components: 2, @@ -196992,7 +197126,7 @@ void main() { paint: paint$4, layout: layout$4 }; - var FillStyleLayer = function(StyleLayer2) { + var FillStyleLayer = (function(StyleLayer2) { function FillStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$3); } @@ -197021,7 +197155,7 @@ void main() { return true; }; return FillStyleLayer2; - }(StyleLayer); + })(StyleLayer); var layout$5 = createLayout([ { name: "a_pos", @@ -197495,7 +197629,7 @@ void main() { "fill-extrusion-vertical-gradient": new DataConstantProperty(spec["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) }); var properties$4 = { paint: paint$5 }; - var FillExtrusionStyleLayer = function(StyleLayer2) { + var FillExtrusionStyleLayer = (function(StyleLayer2) { function FillExtrusionStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$4); } @@ -197523,7 +197657,7 @@ void main() { return checkIntersection(projectedBase, projectedTop, projectedQueryGeometry); }; return FillExtrusionStyleLayer2; - }(StyleLayer); + })(StyleLayer); function dot$2(a, b) { return a.x * b.x + a.y * b.y; } @@ -198059,7 +198193,7 @@ void main() { paint: paint$6, layout: layout$6 }; - var LineFloorwidthProperty = function(DataDrivenProperty2) { + var LineFloorwidthProperty = (function(DataDrivenProperty2) { function LineFloorwidthProperty2() { DataDrivenProperty2.apply(this, arguments); } @@ -198081,10 +198215,10 @@ void main() { return DataDrivenProperty2.prototype.evaluate.call(this, value, globals, feature, featureState); }; return LineFloorwidthProperty2; - }(DataDrivenProperty); + })(DataDrivenProperty); var lineFloorwidthProperty = new LineFloorwidthProperty(properties$5.paint.properties["line-width"].specification); lineFloorwidthProperty.useIntegerZoom = true; - var LineStyleLayer = function(StyleLayer2) { + var LineStyleLayer = (function(StyleLayer2) { function LineStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$5); this.gradientVersion = 0; @@ -198129,7 +198263,7 @@ void main() { return true; }; return LineStyleLayer2; - }(StyleLayer); + })(StyleLayer); function getLineWidth(lineWidth, lineGapWidth) { if (lineGapWidth > 0) { return lineGapWidth + 2 * lineWidth; @@ -200277,7 +200411,7 @@ void main() { collisionPadding }; } - var Anchor = function(Point2) { + var Anchor = (function(Point2) { function Anchor2(x, y, angle, segment) { Point2.call(this, x, y); this.angle = angle; @@ -200293,7 +200427,7 @@ void main() { return new Anchor2(this.x, this.y, this.angle, this.segment); }; return Anchor2; - }(pointGeometry); + })(pointGeometry); register("Anchor", Anchor); var SIZE_PACK_FACTOR = 128; function getSizeData(tileZoom, value) { @@ -202186,7 +202320,7 @@ void main() { return null; }; register("FormatSectionOverride", FormatSectionOverride, { omit: ["defaultValue"] }); - var SymbolStyleLayer = function(StyleLayer2) { + var SymbolStyleLayer = (function(StyleLayer2) { function SymbolStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$6); } @@ -202311,14 +202445,14 @@ void main() { return hasOverrides; }; return SymbolStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$8 = new Properties({ "background-color": new DataConstantProperty(spec["paint_background"]["background-color"]), "background-pattern": new CrossFadedProperty(spec["paint_background"]["background-pattern"]), "background-opacity": new DataConstantProperty(spec["paint_background"]["background-opacity"]) }); var properties$7 = { paint: paint$8 }; - var BackgroundStyleLayer = function(StyleLayer2) { + var BackgroundStyleLayer = (function(StyleLayer2) { function BackgroundStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$7); } @@ -202327,7 +202461,7 @@ void main() { BackgroundStyleLayer2.prototype = Object.create(StyleLayer2 && StyleLayer2.prototype); BackgroundStyleLayer2.prototype.constructor = BackgroundStyleLayer2; return BackgroundStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$9 = new Properties({ "raster-opacity": new DataConstantProperty(spec["paint_raster"]["raster-opacity"]), "raster-hue-rotate": new DataConstantProperty(spec["paint_raster"]["raster-hue-rotate"]), @@ -202339,7 +202473,7 @@ void main() { "raster-fade-duration": new DataConstantProperty(spec["paint_raster"]["raster-fade-duration"]) }); var properties$8 = { paint: paint$9 }; - var RasterStyleLayer = function(StyleLayer2) { + var RasterStyleLayer = (function(StyleLayer2) { function RasterStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$8); } @@ -202348,7 +202482,7 @@ void main() { RasterStyleLayer2.prototype = Object.create(StyleLayer2 && StyleLayer2.prototype); RasterStyleLayer2.prototype.constructor = RasterStyleLayer2; return RasterStyleLayer2; - }(StyleLayer); + })(StyleLayer); function validateCustomStyleLayer(layerObject) { var errors = []; var id2 = layerObject.id; @@ -202363,7 +202497,7 @@ void main() { } return errors; } - var CustomStyleLayer = function(StyleLayer2) { + var CustomStyleLayer = (function(StyleLayer2) { function CustomStyleLayer2(implementation) { StyleLayer2.call(this, implementation, {}); this.implementation = implementation; @@ -202397,7 +202531,7 @@ void main() { } }; return CustomStyleLayer2; - }(StyleLayer); + })(StyleLayer); var subclasses = { circle: CircleStyleLayer, heatmap: HeatmapStyleLayer, @@ -206060,7 +206194,7 @@ void main() { rawData: pbf.buffer }); } - var GeoJSONWorkerSource = function(VectorTileWorkerSource2) { + var GeoJSONWorkerSource = (function(VectorTileWorkerSource2) { function GeoJSONWorkerSource2(actor, layerIndex, availableImages, loadGeoJSON) { VectorTileWorkerSource2.call(this, actor, layerIndex, availableImages, loadGeoJSONTile); if (loadGeoJSON) { @@ -206196,7 +206330,7 @@ void main() { } }; return GeoJSONWorkerSource2; - }(VectorTileWorkerSource); + })(VectorTileWorkerSource); function getSuperclusterOptions(ref) { var superclusterOptions = ref.superclusterOptions; var clusterProperties = ref.clusterProperties; @@ -206733,7 +206867,7 @@ void main() { return false; } var padding = 1; - var ImageManager = function(Evented) { + var ImageManager = (function(Evented) { function ImageManager2() { Evented.call(this); this.images = {}; @@ -207036,7 +207170,7 @@ void main() { } }; return ImageManager2; - }(performance2.Evented); + })(performance2.Evented); function loadGlyphRange(fontstack, range, urlTemplate, requestManager, callback) { var begin = range * 256; var end = begin + 255; @@ -207313,7 +207447,7 @@ void main() { "intensity": new performance2.DataConstantProperty(performance2.styleSpec.light.intensity) }); var TRANSITION_SUFFIX = "-transition"; - var Light = function(Evented) { + var Light = (function(Evented) { function Light2(lightOptions) { Evented.call(this); this._transitionable = new performance2.Transitionable(properties); @@ -207365,7 +207499,7 @@ void main() { }))); }; return Light2; - }(performance2.Evented); + })(performance2.Evented); var LineAtlas = function LineAtlas2(width, height) { this.width = width; this.height = height; @@ -207610,7 +207744,7 @@ void main() { var hit = tileID.x >= level.minX && tileID.x < level.maxX && tileID.y >= level.minY && tileID.y < level.maxY; return hit; }; - var VectorTileSource = function(Evented) { + var VectorTileSource = (function(Evented) { function VectorTileSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -207783,8 +207917,8 @@ void main() { return false; }; return VectorTileSource2; - }(performance2.Evented); - var RasterTileSource = function(Evented) { + })(performance2.Evented); + var RasterTileSource = (function(Evented) { function RasterTileSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -207906,8 +208040,8 @@ void main() { return false; }; return RasterTileSource2; - }(performance2.Evented); - var RasterDEMTileSource = function(RasterTileSource2) { + })(performance2.Evented); + var RasterDEMTileSource = (function(RasterTileSource2) { function RasterDEMTileSource2(id, options, dispatcher, eventedParent) { RasterTileSource2.call(this, id, options, dispatcher, eventedParent); this.type = "raster-dem"; @@ -208018,8 +208152,8 @@ void main() { } }; return RasterDEMTileSource2; - }(RasterTileSource); - var GeoJSONSource = function(Evented) { + })(RasterTileSource); + var GeoJSONSource = (function(Evented) { function GeoJSONSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -208229,7 +208363,7 @@ void main() { return false; }; return GeoJSONSource2; - }(performance2.Evented); + })(performance2.Evented); var rasterBoundsAttributes = performance2.createLayout([ { name: "a_pos", @@ -208242,7 +208376,7 @@ void main() { components: 2 } ]); - var ImageSource = function(Evented) { + var ImageSource = (function(Evented) { function ImageSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -208378,7 +208512,7 @@ void main() { return false; }; return ImageSource2; - }(performance2.Evented); + })(performance2.Evented); function getCoordinatesCenterTileID(coords) { var minX = Infinity; var minY = Infinity; @@ -208398,7 +208532,7 @@ void main() { var tilesAtZoom = Math.pow(2, zoom); return new performance2.CanonicalTileID(zoom, Math.floor((minX + maxX) / 2 * tilesAtZoom), Math.floor((minY + maxY) / 2 * tilesAtZoom)); } - var VideoSource = function(ImageSource2) { + var VideoSource = (function(ImageSource2) { function VideoSource2(id, options, dispatcher, eventedParent) { ImageSource2.call(this, id, options, dispatcher, eventedParent); this.roundZoom = true; @@ -208507,8 +208641,8 @@ void main() { return this.video && !this.video.paused; }; return VideoSource2; - }(ImageSource); - var CanvasSource = function(ImageSource2) { + })(ImageSource); + var CanvasSource = (function(ImageSource2) { function CanvasSource2(id, options, dispatcher, eventedParent) { ImageSource2.call(this, id, options, dispatcher, eventedParent); if (!options.coordinates) { @@ -208632,7 +208766,7 @@ void main() { return false; }; return CanvasSource2; - }(ImageSource); + })(ImageSource); var sourceTypes = { vector: VectorTileSource, raster: RasterTileSource, @@ -209035,7 +209169,7 @@ void main() { BaseValue.prototype.setDefault = function setDefault() { this.set(this.default); }; - var ClearColor = function(BaseValue2) { + var ClearColor = (function(BaseValue2) { function ClearColor2() { BaseValue2.apply(this, arguments); } @@ -209056,8 +209190,8 @@ void main() { this.dirty = false; }; return ClearColor2; - }(BaseValue); - var ClearDepth = function(BaseValue2) { + })(BaseValue); + var ClearDepth = (function(BaseValue2) { function ClearDepth2() { BaseValue2.apply(this, arguments); } @@ -209077,8 +209211,8 @@ void main() { this.dirty = false; }; return ClearDepth2; - }(BaseValue); - var ClearStencil = function(BaseValue2) { + })(BaseValue); + var ClearStencil = (function(BaseValue2) { function ClearStencil2() { BaseValue2.apply(this, arguments); } @@ -209098,8 +209232,8 @@ void main() { this.dirty = false; }; return ClearStencil2; - }(BaseValue); - var ColorMask = function(BaseValue2) { + })(BaseValue); + var ColorMask = (function(BaseValue2) { function ColorMask2() { BaseValue2.apply(this, arguments); } @@ -209125,8 +209259,8 @@ void main() { this.dirty = false; }; return ColorMask2; - }(BaseValue); - var DepthMask = function(BaseValue2) { + })(BaseValue); + var DepthMask = (function(BaseValue2) { function DepthMask2() { BaseValue2.apply(this, arguments); } @@ -209146,8 +209280,8 @@ void main() { this.dirty = false; }; return DepthMask2; - }(BaseValue); - var StencilMask = function(BaseValue2) { + })(BaseValue); + var StencilMask = (function(BaseValue2) { function StencilMask2() { BaseValue2.apply(this, arguments); } @@ -209167,8 +209301,8 @@ void main() { this.dirty = false; }; return StencilMask2; - }(BaseValue); - var StencilFunc = function(BaseValue2) { + })(BaseValue); + var StencilFunc = (function(BaseValue2) { function StencilFunc2() { BaseValue2.apply(this, arguments); } @@ -209193,8 +209327,8 @@ void main() { this.dirty = false; }; return StencilFunc2; - }(BaseValue); - var StencilOp = function(BaseValue2) { + })(BaseValue); + var StencilOp = (function(BaseValue2) { function StencilOp2() { BaseValue2.apply(this, arguments); } @@ -209220,8 +209354,8 @@ void main() { this.dirty = false; }; return StencilOp2; - }(BaseValue); - var StencilTest = function(BaseValue2) { + })(BaseValue); + var StencilTest = (function(BaseValue2) { function StencilTest2() { BaseValue2.apply(this, arguments); } @@ -209246,8 +209380,8 @@ void main() { this.dirty = false; }; return StencilTest2; - }(BaseValue); - var DepthRange = function(BaseValue2) { + })(BaseValue); + var DepthRange = (function(BaseValue2) { function DepthRange2() { BaseValue2.apply(this, arguments); } @@ -209271,8 +209405,8 @@ void main() { this.dirty = false; }; return DepthRange2; - }(BaseValue); - var DepthTest = function(BaseValue2) { + })(BaseValue); + var DepthTest = (function(BaseValue2) { function DepthTest2() { BaseValue2.apply(this, arguments); } @@ -209297,8 +209431,8 @@ void main() { this.dirty = false; }; return DepthTest2; - }(BaseValue); - var DepthFunc = function(BaseValue2) { + })(BaseValue); + var DepthFunc = (function(BaseValue2) { function DepthFunc2() { BaseValue2.apply(this, arguments); } @@ -209318,8 +209452,8 @@ void main() { this.dirty = false; }; return DepthFunc2; - }(BaseValue); - var Blend = function(BaseValue2) { + })(BaseValue); + var Blend = (function(BaseValue2) { function Blend2() { BaseValue2.apply(this, arguments); } @@ -209344,8 +209478,8 @@ void main() { this.dirty = false; }; return Blend2; - }(BaseValue); - var BlendFunc = function(BaseValue2) { + })(BaseValue); + var BlendFunc = (function(BaseValue2) { function BlendFunc2() { BaseValue2.apply(this, arguments); } @@ -209370,8 +209504,8 @@ void main() { this.dirty = false; }; return BlendFunc2; - }(BaseValue); - var BlendColor = function(BaseValue2) { + })(BaseValue); + var BlendColor = (function(BaseValue2) { function BlendColor2() { BaseValue2.apply(this, arguments); } @@ -209392,8 +209526,8 @@ void main() { this.dirty = false; }; return BlendColor2; - }(BaseValue); - var BlendEquation = function(BaseValue2) { + })(BaseValue); + var BlendEquation = (function(BaseValue2) { function BlendEquation2() { BaseValue2.apply(this, arguments); } @@ -209413,8 +209547,8 @@ void main() { this.dirty = false; }; return BlendEquation2; - }(BaseValue); - var CullFace = function(BaseValue2) { + })(BaseValue); + var CullFace = (function(BaseValue2) { function CullFace2() { BaseValue2.apply(this, arguments); } @@ -209439,8 +209573,8 @@ void main() { this.dirty = false; }; return CullFace2; - }(BaseValue); - var CullFaceSide = function(BaseValue2) { + })(BaseValue); + var CullFaceSide = (function(BaseValue2) { function CullFaceSide2() { BaseValue2.apply(this, arguments); } @@ -209460,8 +209594,8 @@ void main() { this.dirty = false; }; return CullFaceSide2; - }(BaseValue); - var FrontFace = function(BaseValue2) { + })(BaseValue); + var FrontFace = (function(BaseValue2) { function FrontFace2() { BaseValue2.apply(this, arguments); } @@ -209481,8 +209615,8 @@ void main() { this.dirty = false; }; return FrontFace2; - }(BaseValue); - var Program = function(BaseValue2) { + })(BaseValue); + var Program = (function(BaseValue2) { function Program2() { BaseValue2.apply(this, arguments); } @@ -209502,8 +209636,8 @@ void main() { this.dirty = false; }; return Program2; - }(BaseValue); - var ActiveTextureUnit = function(BaseValue2) { + })(BaseValue); + var ActiveTextureUnit = (function(BaseValue2) { function ActiveTextureUnit2() { BaseValue2.apply(this, arguments); } @@ -209523,8 +209657,8 @@ void main() { this.dirty = false; }; return ActiveTextureUnit2; - }(BaseValue); - var Viewport = function(BaseValue2) { + })(BaseValue); + var Viewport = (function(BaseValue2) { function Viewport2() { BaseValue2.apply(this, arguments); } @@ -209551,8 +209685,8 @@ void main() { this.dirty = false; }; return Viewport2; - }(BaseValue); - var BindFramebuffer = function(BaseValue2) { + })(BaseValue); + var BindFramebuffer = (function(BaseValue2) { function BindFramebuffer2() { BaseValue2.apply(this, arguments); } @@ -209573,8 +209707,8 @@ void main() { this.dirty = false; }; return BindFramebuffer2; - }(BaseValue); - var BindRenderbuffer = function(BaseValue2) { + })(BaseValue); + var BindRenderbuffer = (function(BaseValue2) { function BindRenderbuffer2() { BaseValue2.apply(this, arguments); } @@ -209595,8 +209729,8 @@ void main() { this.dirty = false; }; return BindRenderbuffer2; - }(BaseValue); - var BindTexture = function(BaseValue2) { + })(BaseValue); + var BindTexture = (function(BaseValue2) { function BindTexture2() { BaseValue2.apply(this, arguments); } @@ -209617,8 +209751,8 @@ void main() { this.dirty = false; }; return BindTexture2; - }(BaseValue); - var BindVertexBuffer = function(BaseValue2) { + })(BaseValue); + var BindVertexBuffer = (function(BaseValue2) { function BindVertexBuffer2() { BaseValue2.apply(this, arguments); } @@ -209639,8 +209773,8 @@ void main() { this.dirty = false; }; return BindVertexBuffer2; - }(BaseValue); - var BindElementBuffer = function(BaseValue2) { + })(BaseValue); + var BindElementBuffer = (function(BaseValue2) { function BindElementBuffer2() { BaseValue2.apply(this, arguments); } @@ -209658,8 +209792,8 @@ void main() { this.dirty = false; }; return BindElementBuffer2; - }(BaseValue); - var BindVertexArrayOES = function(BaseValue2) { + })(BaseValue); + var BindVertexArrayOES = (function(BaseValue2) { function BindVertexArrayOES2(context) { BaseValue2.call(this, context); this.vao = context.extVertexArrayObject; @@ -209680,8 +209814,8 @@ void main() { this.dirty = false; }; return BindVertexArrayOES2; - }(BaseValue); - var PixelStoreUnpack = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpack = (function(BaseValue2) { function PixelStoreUnpack2() { BaseValue2.apply(this, arguments); } @@ -209702,8 +209836,8 @@ void main() { this.dirty = false; }; return PixelStoreUnpack2; - }(BaseValue); - var PixelStoreUnpackPremultiplyAlpha = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpackPremultiplyAlpha = (function(BaseValue2) { function PixelStoreUnpackPremultiplyAlpha2() { BaseValue2.apply(this, arguments); } @@ -209724,8 +209858,8 @@ void main() { this.dirty = false; }; return PixelStoreUnpackPremultiplyAlpha2; - }(BaseValue); - var PixelStoreUnpackFlipY = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpackFlipY = (function(BaseValue2) { function PixelStoreUnpackFlipY2() { BaseValue2.apply(this, arguments); } @@ -209746,8 +209880,8 @@ void main() { this.dirty = false; }; return PixelStoreUnpackFlipY2; - }(BaseValue); - var FramebufferAttachment = function(BaseValue2) { + })(BaseValue); + var FramebufferAttachment = (function(BaseValue2) { function FramebufferAttachment2(context, parent) { BaseValue2.call(this, context); this.context = context; @@ -209761,8 +209895,8 @@ void main() { return null; }; return FramebufferAttachment2; - }(BaseValue); - var ColorAttachment = function(FramebufferAttachment2) { + })(BaseValue); + var ColorAttachment = (function(FramebufferAttachment2) { function ColorAttachment2() { FramebufferAttachment2.apply(this, arguments); } @@ -209784,8 +209918,8 @@ void main() { this.dirty = false; }; return ColorAttachment2; - }(FramebufferAttachment); - var DepthAttachment = function(FramebufferAttachment2) { + })(FramebufferAttachment); + var DepthAttachment = (function(FramebufferAttachment2) { function DepthAttachment2() { FramebufferAttachment2.apply(this, arguments); } @@ -209804,7 +209938,7 @@ void main() { this.dirty = false; }; return DepthAttachment2; - }(FramebufferAttachment); + })(FramebufferAttachment); var Framebuffer = function Framebuffer2(context, width, height, hasDepth) { this.context = context; this.width = width; @@ -210102,7 +210236,7 @@ void main() { this.bindVertexArrayOES.set(null); } }; - var SourceCache = function(Evented) { + var SourceCache = (function(Evented) { function SourceCache2(id, options, dispatcher) { var this$1 = this; Evented.call(this); @@ -210788,7 +210922,7 @@ void main() { }); }; return SourceCache2; - }(performance2.Evented); + })(performance2.Evented); SourceCache.maxOverzooming = 10; SourceCache.maxUnderzooming = 3; function compareTileId(a, b) { @@ -213107,7 +213241,7 @@ void main() { "setPitch" ]); var empty = emptyStyle(); - var Style = function(Evented) { + var Style = (function(Evented) { function Style2(map, options) { var this$1 = this; if (options === void 0) @@ -214078,7 +214212,7 @@ void main() { return performance2.makeRequest(params, callback); }; return Style2; - }(performance2.Evented); + })(performance2.Evented); Style.getSourceType = getType; Style.setSourceType = setType; Style.registerForPluginStateChange = performance2.registerForPluginStateChange; @@ -217786,7 +217920,7 @@ void main() { amount: speed * (duration / 2) }; } - var MapMouseEvent = function(Event) { + var MapMouseEvent = (function(Event) { function MapMouseEvent2(type, map, originalEvent, data) { if (data === void 0) data = {}; @@ -217813,8 +217947,8 @@ void main() { }; Object.defineProperties(MapMouseEvent2.prototype, prototypeAccessors2); return MapMouseEvent2; - }(performance2.Event); - var MapTouchEvent = function(Event) { + })(performance2.Event); + var MapTouchEvent = (function(Event) { function MapTouchEvent2(type, map, originalEvent) { var touches = type === "touchend" ? originalEvent.changedTouches : originalEvent.touches; var points = DOM.touchPos(map.getCanvasContainer(), touches); @@ -217847,8 +217981,8 @@ void main() { }; Object.defineProperties(MapTouchEvent2.prototype, prototypeAccessors$1); return MapTouchEvent2; - }(performance2.Event); - var MapWheelEvent = function(Event) { + })(performance2.Event); + var MapWheelEvent = (function(Event) { function MapWheelEvent2(type, map, originalEvent) { Event.call(this, type, { originalEvent }); this._defaultPrevented = false; @@ -217866,7 +218000,7 @@ void main() { }; Object.defineProperties(MapWheelEvent2.prototype, prototypeAccessors$2); return MapWheelEvent2; - }(performance2.Event); + })(performance2.Event); var MapEventHandler = function MapEventHandler2(map, options) { this._map = map; this._clickTolerance = options.clickTolerance; @@ -218324,7 +218458,7 @@ void main() { MouseHandler.prototype.isActive = function isActive() { return this._active; }; - var MousePanHandler = function(MouseHandler2) { + var MousePanHandler = (function(MouseHandler2) { function MousePanHandler2() { MouseHandler2.apply(this, arguments); } @@ -218348,8 +218482,8 @@ void main() { }; }; return MousePanHandler2; - }(MouseHandler); - var MouseRotateHandler = function(MouseHandler2) { + })(MouseHandler); + var MouseRotateHandler = (function(MouseHandler2) { function MouseRotateHandler2() { MouseHandler2.apply(this, arguments); } @@ -218372,8 +218506,8 @@ void main() { e.preventDefault(); }; return MouseRotateHandler2; - }(MouseHandler); - var MousePitchHandler = function(MouseHandler2) { + })(MouseHandler); + var MousePitchHandler = (function(MouseHandler2) { function MousePitchHandler2() { MouseHandler2.apply(this, arguments); } @@ -218396,7 +218530,7 @@ void main() { e.preventDefault(); }; return MousePitchHandler2; - }(MouseHandler); + })(MouseHandler); var TouchPanHandler = function TouchPanHandler2(options) { this._minTouches = 1; this._clickTolerance = options.clickTolerance || 1; @@ -218561,7 +218695,7 @@ void main() { function getZoomDelta(distance, lastDistance) { return Math.log(distance / lastDistance) / Math.LN2; } - var TouchZoomHandler = function(TwoTouchHandler2) { + var TouchZoomHandler = (function(TwoTouchHandler2) { function TouchZoomHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -218590,12 +218724,12 @@ void main() { }; }; return TouchZoomHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); var ROTATION_THRESHOLD = 25; function getBearingDelta(a, b) { return a.angleWith(b) * 180 / Math.PI; } - var TouchRotateHandler = function(TwoTouchHandler2) { + var TouchRotateHandler = (function(TwoTouchHandler2) { function TouchRotateHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -218633,12 +218767,12 @@ void main() { return Math.abs(bearingDeltaSinceStart) < threshold; }; return TouchRotateHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); function isVertical(vector) { return Math.abs(vector.y) > Math.abs(vector.x); } var ALLOWED_SINGLE_TOUCH_TIME = 100; - var TouchPitchHandler = function(TwoTouchHandler2) { + var TouchPitchHandler = (function(TwoTouchHandler2) { function TouchPitchHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -218695,7 +218829,7 @@ void main() { return isVertical(vectorA) && isVertical(vectorB) && isSameDirection; }; return TouchPitchHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); var defaultOptions = { panStep: 100, bearingStep: 15, @@ -219201,7 +219335,7 @@ void main() { var isMoving = function(p) { return p.zoom || p.drag || p.pitch || p.rotate; }; - var RenderFrameEvent = function(Event) { + var RenderFrameEvent = (function(Event) { function RenderFrameEvent2() { Event.apply(this, arguments); } @@ -219210,7 +219344,7 @@ void main() { RenderFrameEvent2.prototype = Object.create(Event && Event.prototype); RenderFrameEvent2.prototype.constructor = RenderFrameEvent2; return RenderFrameEvent2; - }(performance2.Event); + })(performance2.Event); function hasChange(result) { return result.panDelta && result.panDelta.mag() || result.zoomDelta || result.bearingDelta || result.pitchDelta; } @@ -219700,7 +219834,7 @@ void main() { this._frameId = this._requestFrame(); } }; - var Camera = function(Evented) { + var Camera = (function(Evented) { function Camera2(transform, options) { Evented.call(this); this._moving = false; @@ -220195,7 +220329,7 @@ void main() { center.lng += delta > 180 ? -360 : delta < -180 ? 360 : 0; }; return Camera2; - }(performance2.Evented); + })(performance2.Evented); var AttributionControl = function AttributionControl2(options) { if (options === void 0) options = {}; @@ -220527,7 +220661,7 @@ void main() { fadeDuration: 300, crossSourceCollisions: true }; - var Map2 = function(Camera2) { + var Map2 = (function(Camera2) { function Map3(options) { var this$1 = this; options = performance2.extend({}, defaultOptions$1, options); @@ -221565,7 +221699,7 @@ void main() { }; Object.defineProperties(Map3.prototype, prototypeAccessors2); return Map3; - }(Camera); + })(Camera); function removeNode(node) { if (node.parentNode) { node.parentNode.removeChild(node); @@ -221832,7 +221966,7 @@ void main() { } classList.add("mapboxgl-" + prefix + "-anchor-" + anchor); } - var Marker = function(Evented) { + var Marker = (function(Evented) { function Marker2(options, legacyOptions) { Evented.call(this); if (options instanceof performance2.window.HTMLElement || legacyOptions) { @@ -222234,7 +222368,7 @@ void main() { return this._pitchAlignment; }; return Marker2; - }(performance2.Evented); + })(performance2.Evented); var defaultOptions$3 = { positionOptions: { enableHighAccuracy: false, @@ -222262,7 +222396,7 @@ void main() { } var numberOfWatches = 0; var noTimeout = false; - var GeolocateControl = function(Evented) { + var GeolocateControl = (function(Evented) { function GeolocateControl2(options) { Evented.call(this); this.options = performance2.extend({}, defaultOptions$3, options); @@ -222589,7 +222723,7 @@ void main() { } }; return GeolocateControl2; - }(performance2.Evented); + })(performance2.Evented); var defaultOptions$4 = { maxWidth: 100, unit: "metric" @@ -222778,7 +222912,7 @@ void main() { "select:not([disabled])", "textarea:not([disabled])" ].join(", "); - var Popup = function(Evented) { + var Popup = (function(Evented) { function Popup2(options) { Evented.call(this); this.options = performance2.extend(Object.create(defaultOptions$5), options); @@ -223031,7 +223165,7 @@ void main() { this.remove(); }; return Popup2; - }(performance2.Evented); + })(performance2.Evented); function normalizeOffset(offset) { if (!offset) { return normalizeOffset(new performance2.Point(0, 0)); @@ -223156,7 +223290,7 @@ void main() { return exported; }); return mapboxgl; - }); + })); } }); @@ -228754,7 +228888,7 @@ void main() { "node_modules/maplibre-gl/dist/maplibre-gl.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, global2.maplibregl = factory()); - })(exports, function() { + })(exports, (function() { "use strict"; var maplibregl = {}; var modules = {}; @@ -228773,10 +228907,10 @@ void main() { return maplibregl; } ; - define2("shared", ["exports"], function(t) { + define2("shared", ["exports"], (function(t) { "use strict"; function e(t4, e2, r2, n2) { - return new (r2 || (r2 = Promise))(function(i2, s2) { + return new (r2 || (r2 = Promise))((function(i2, s2) { function a2(t5) { try { l2(n2.next(t5)); @@ -228793,12 +228927,12 @@ void main() { } function l2(t5) { var e3; - t5.done ? i2(t5.value) : (e3 = t5.value, e3 instanceof r2 ? e3 : new r2(function(t6) { + t5.done ? i2(t5.value) : (e3 = t5.value, e3 instanceof r2 ? e3 : new r2((function(t6) { t6(e3); - })).then(a2, o2); + }))).then(a2, o2); } l2((n2 = n2.apply(t4, e2 || [])).next()); - }); + })); } function r(t4) { return t4 && t4.__esModule && Object.prototype.hasOwnProperty.call(t4, "default") ? t4.default : t4; @@ -228976,17 +229110,17 @@ void main() { } const z = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="; function P(t4, r2, n2, i2, s2) { - return e(this, void 0, void 0, function* () { + return e(this, void 0, void 0, (function* () { if ("undefined" == typeof VideoFrame) throw new Error("VideoFrame not supported"); const e2 = new VideoFrame(t4, { timestamp: 0 }); try { const a2 = null == e2 ? void 0 : e2.format; if (!a2 || !a2.startsWith("BGR") && !a2.startsWith("RGB")) throw new Error(`Unrecognized format ${a2}`); const o2 = a2.startsWith("BGR"), l2 = new Uint8ClampedArray(i2 * s2 * 4); - if (yield e2.copyTo(l2, function(t5, e3, r3, n3, i3) { + if (yield e2.copyTo(l2, (function(t5, e3, r3, n3, i3) { const s3 = 4 * Math.max(-e3, 0), a3 = (Math.max(0, r3) - r3) * n3 * 4 + s3, o3 = 4 * n3, l3 = Math.max(0, e3), u2 = Math.max(0, r3); return { rect: { x: l3, y: u2, width: Math.min(t5.width, e3 + n3) - l3, height: Math.min(t5.height, r3 + i3) - u2 }, layout: [{ offset: a3, stride: o3 }] }; - }(t4, r2, n2, i2, s2)), o2) for (let t5 = 0; t5 < l2.length; t5 += 4) { + })(t4, r2, n2, i2, s2)), o2) for (let t5 = 0; t5 < l2.length; t5 += 4) { const e3 = l2[t5]; l2[t5] = l2[t5 + 2], l2[t5 + 2] = e3; } @@ -228994,7 +229128,7 @@ void main() { } finally { e2.close(); } - }); + })); } let C2, B2; const V = "AbortError"; @@ -229018,8 +229152,8 @@ void main() { if (k(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: t4, targetMapId: $ }, r2); } if (!(/^file:/.test(n2 = t4.url) || /^file:/.test(D2()) && !/^\w+:/.test(n2))) { - if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return function(t5, r3) { - return e(this, void 0, void 0, function* () { + if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return (function(t5, r3) { + return e(this, void 0, void 0, (function* () { const e2 = new Request(t5.url, { method: t5.method || "GET", body: t5.body, credentials: t5.credentials, headers: t5.headers, cache: t5.cache, referrer: D2(), signal: r3.signal }); "json" !== t5.type || e2.headers.has("Accept") || e2.headers.set("Accept", "application/json"); const n3 = yield fetch(e2); @@ -229032,13 +229166,13 @@ void main() { const s2 = yield i2; if (r3.signal.aborted) throw E2(); return { data: s2, cacheControl: n3.headers.get("Cache-Control"), expires: n3.headers.get("Expires") }; - }); - }(t4, r2); + })); + })(t4, r2); if (k(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: t4, mustQueue: true, targetMapId: $ }, r2); } var n2; - return function(t5, e2) { - return new Promise((r3, n3) => { + return (function(t5, e2) { + return new Promise(((r3, n3) => { var i2; const s2 = new XMLHttpRequest(); s2.open(t5.method || "GET", t5.url, true), "arrayBuffer" !== t5.type && "image" !== t5.type || (s2.responseType = "arraybuffer"); @@ -229058,11 +229192,11 @@ void main() { const e3 = new Blob([s2.response], { type: s2.getResponseHeader("Content-Type") }); n3(new L(s2.status, s2.statusText, t5.url, e3)); } - }, e2.signal.addEventListener("abort", () => { + }, e2.signal.addEventListener("abort", (() => { s2.abort(), n3(E2()); - }), s2.send(t5.body); - }); - }(t4, r2); + })), s2.send(t5.body); + })); + })(t4, r2); }; function j(t4) { if (!t4 || t4.indexOf("://") <= 0 || 0 === t4.indexOf("data:image/") || 0 === t4.indexOf("blob:")) return true; @@ -229096,7 +229230,7 @@ void main() { return U(t4, e2, this._listeners), U(t4, e2, this._oneTimeListeners), this; } once(t4, e2) { - return e2 ? (this._oneTimeListeners = this._oneTimeListeners || {}, R(t4, e2, this._oneTimeListeners), this) : new Promise((e3) => this.once(t4, e3)); + return e2 ? (this._oneTimeListeners = this._oneTimeListeners || {}, R(t4, e2, this._oneTimeListeners), this) : new Promise(((e3) => this.once(t4, e3))); } fire(t4, e2) { "string" == typeof t4 && (t4 = new q(t4, e2 || {})); @@ -229124,9 +229258,9 @@ void main() { function X(t4, e2) { const r2 = {}; for (const e3 in t4) "ref" !== e3 && (r2[e3] = t4[e3]); - return K2.forEach((t5) => { + return K2.forEach(((t5) => { t5 in e2 && (r2[t5] = e2[t5]); - }), r2; + })), r2; } function H(t4, e2) { if (Array.isArray(t4)) { @@ -229227,10 +229361,10 @@ void main() { return `Expected ${wt(t4)} but found ${wt(e2)} instead.`; } function St(t4, e2) { - return e2.some((e3) => e3.kind === t4.kind); + return e2.some(((e3) => e3.kind === t4.kind)); } function kt(t4, e2) { - return e2.some((e3) => "null" === e3 ? null === t4 : "array" === e3 ? Array.isArray(t4) : "object" === e3 ? t4 && !Array.isArray(t4) && "object" == typeof t4 : e3 === typeof t4); + return e2.some(((e3) => "null" === e3 ? null === t4 : "array" === e3 ? Array.isArray(t4) : "object" === e3 ? t4 && !Array.isArray(t4) && "object" == typeof t4 : e3 === typeof t4)); } function Mt(t4, e2) { return "array" === t4.kind && "array" === e2.kind ? t4.itemType.kind === e2.itemType.kind && "number" == typeof t4.N : t4.kind === e2.kind; @@ -229282,7 +229416,7 @@ void main() { static parse(t4) { if (t4 instanceof Kt) return t4; if ("string" != typeof t4) return; - const e2 = function(t5) { + const e2 = (function(t5) { if ("transparent" === (t5 = t5.toLowerCase().trim())) return [0, 0, 0, 0]; const e3 = Gt[t5]; if (e3) { @@ -229313,16 +229447,16 @@ void main() { const [t6, e4, n2, i2, s2, a2, o2, l2, u2] = r2, c2 = [n2 || " ", s2 || " ", o2].join(""); if (" " === c2 || " /" === c2 || ",," === c2 || ",,," === c2) { const t7 = [+e4, Nt(+i2, 0, 100), Nt(+a2, 0, 100), l2 ? qt(+l2, u2) : 1]; - if (Zt(t7)) return function([t8, e5, r3, n3]) { + if (Zt(t7)) return (function([t8, e5, r3, n3]) { function i3(n4) { const i4 = (n4 + t8 / 30) % 12, s3 = e5 * Math.min(r3, 1 - r3); return r3 - s3 * Math.max(-1, Math.min(i4 - 3, 9 - i4, 1)); } return t8 = Tt(t8), e5 /= 100, r3 /= 100, [i3(0), i3(8), i3(4), n3]; - }(t7); + })(t7); } } - }(t4); + })(t4); return e2 ? new Kt(...e2, false) : void 0; } get rgb() { @@ -229330,10 +229464,10 @@ void main() { return this.overwriteGetter("rgb", [t4 / i2, e2 / i2, r2 / i2, n2]); } get hcl() { - return this.overwriteGetter("hcl", function(t4) { + return this.overwriteGetter("hcl", (function(t4) { const [e2, r2, n2, i2] = $t(t4), s2 = Math.sqrt(r2 * r2 + n2 * n2); return [Math.round(1e4 * s2) ? Tt(Math.atan2(n2, r2) * Ft) : NaN, s2, e2, i2]; - }(this.rgb)); + })(this.rgb)); } get lab() { return this.overwriteGetter("lab", $t(this.rgb)); @@ -229343,7 +229477,7 @@ void main() { } toString() { const [t4, e2, r2, n2] = this.rgb; - return `rgba(${[t4, e2, r2].map((t5) => Math.round(255 * t5)).join(",")},${n2})`; + return `rgba(${[t4, e2, r2].map(((t5) => Math.round(255 * t5))).join(",")},${n2})`; } } Kt.black = new Kt(0, 0, 0, 1), Kt.white = new Kt(1, 1, 1, 1), Kt.transparent = new Kt(0, 0, 0, 0), Kt.red = new Kt(1, 0, 0, 1); @@ -229371,13 +229505,13 @@ void main() { return new Yt([new Ht(t4, null, null, null, null)]); } isEmpty() { - return 0 === this.sections.length || !this.sections.some((t4) => 0 !== t4.text.length || t4.image && 0 !== t4.image.name.length); + return 0 === this.sections.length || !this.sections.some(((t4) => 0 !== t4.text.length || t4.image && 0 !== t4.image.name.length)); } static factory(t4) { return t4 instanceof Yt ? t4 : Yt.fromString(t4); } toString() { - return 0 === this.sections.length ? "" : this.sections.map((t4) => t4.text).join(""); + return 0 === this.sections.length ? "" : this.sections.map(((t4) => t4.text)).join(""); } } class Jt { @@ -229557,7 +229691,7 @@ void main() { this.args.forEach(t4); } outputDefined() { - return this.args.every((t4) => t4.outputDefined()); + return this.args.every(((t4) => t4.outputDefined())); } } const ue = { "to-boolean": ht, "to-color": pt, "to-number": ut, "to-string": ct }; @@ -229632,7 +229766,7 @@ void main() { this.args.forEach(t4); } outputDefined() { - return this.args.every((t4) => t4.outputDefined()); + return this.args.every(((t4) => t4.outputDefined())); } } const he = ["Unknown", "Point", "LineString", "Polygon"]; @@ -229662,7 +229796,7 @@ void main() { } class fe { constructor(t4, e2, r2 = [], n2, i2 = new ot(), s2 = []) { - this.registry = t4, this.path = r2, this.key = r2.map((t5) => `[${t5}]`).join(""), this.scope = i2, this.errors = s2, this.expectedType = n2, this._isConstant = e2; + this.registry = t4, this.path = r2, this.key = r2.map(((t5) => `[${t5}]`)).join(""), this.scope = i2, this.errors = s2, this.expectedType = n2, this._isConstant = e2; } parse(t4, e2, r2, n2, i2 = {}) { return e2 ? this.concat(e2, r2, n2)._parse(t4, i2) : this._parse(t4, i2); @@ -229707,7 +229841,7 @@ void main() { return new fe(this.registry, this._isConstant, n2, e2 || null, i2, this.errors); } error(t4, ...e2) { - const r2 = `${this.key}${e2.map((t5) => `[${t5}]`).join("")}`; + const r2 = `${this.key}${e2.map(((t5) => `[${t5}]`)).join("")}`; this.errors.push(new at(r2, t4)); } checkSubtype(t4, e2) { @@ -229884,7 +230018,7 @@ void main() { t4(this.input), this.outputs.forEach(t4), t4(this.otherwise); } outputDefined() { - return this.outputs.every((t4) => t4.outputDefined()) && this.otherwise.outputDefined(); + return this.outputs.every(((t4) => t4.outputDefined())) && this.otherwise.outputDefined(); } } class be { @@ -229918,7 +230052,7 @@ void main() { t4(this.otherwise); } outputDefined() { - return this.branches.every(([t4, e2]) => e2.outputDefined()) && this.otherwise.outputDefined(); + return this.branches.every((([t4, e2]) => e2.outputDefined())) && this.otherwise.outputDefined(); } } class we { @@ -229998,7 +230132,7 @@ void main() { for (const e2 of this.outputs) t4(e2); } outputDefined() { - return this.outputs.every((t4) => t4.outputDefined()); + return this.outputs.every(((t4) => t4.outputDefined())); } } function Se(t4) { @@ -230035,7 +230169,7 @@ void main() { return t4 + r2 * (e2 - t4); } function Pe(t4, e2, r2) { - return t4.map((t5, n2) => ze(t5, e2[n2], r2)); + return t4.map(((t5, n2) => ze(t5, e2[n2], r2))); } const Ce = { number: ze, color: function(t4, e2, r2, n2 = "rgb") { switch (n2) { @@ -230051,9 +230185,9 @@ void main() { let t5 = o2 - n3; o2 > n3 && t5 > 180 ? t5 -= 360 : o2 < n3 && n3 - o2 > 180 && (t5 += 360), h2 = n3 + r2 * t5; } - const [f2, d2, y2, m2] = function([t5, e3, r3, n4]) { + const [f2, d2, y2, m2] = (function([t5, e3, r3, n4]) { return t5 = isNaN(t5) ? 0 : t5 * Et, Ot([r3, Math.cos(t5) * e3, Math.sin(t5) * e3, n4]); - }([h2, null != p2 ? p2 : ze(i2, l2, r2), ze(s2, u2, r2), ze(a2, c2, r2)]); + })([h2, null != p2 ? p2 : ze(i2, l2, r2), ze(s2, u2, r2), ze(a2, c2, r2)]); return new Kt(f2, d2, y2, m2, false); } case "lab": { @@ -230102,7 +230236,7 @@ void main() { if ("cubic-bezier" !== n2[0]) return e2.error(`Unknown interpolation type ${String(n2[0])}`, 1, 0); { const t5 = n2.slice(1); - if (4 !== t5.length || t5.some((t6) => "number" != typeof t6 || t6 < 0 || t6 > 1)) return e2.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.", 1); + if (4 !== t5.length || t5.some(((t6) => "number" != typeof t6 || t6 < 0 || t6 > 1))) return e2.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.", 1); n2 = { name: "cubic-bezier", controlPoints: t5 }; } } @@ -230144,7 +230278,7 @@ void main() { for (const e2 of this.outputs) t4(e2); } outputDefined() { - return this.outputs.every((t4) => t4.outputDefined()); + return this.outputs.every(((t4) => t4.outputDefined())); } } function Ve(t4, e2, r2, n2) { @@ -230167,7 +230301,7 @@ void main() { r2 = r2 || t5.type, i2.push(t5); } if (!r2) throw new Error("No output type"); - const s2 = n2 && i2.some((t5) => At(n2, t5.type)); + const s2 = n2 && i2.some(((t5) => At(n2, t5.type))); return new Ee(s2 ? dt : r2, i2); } evaluate(t4) { @@ -230179,7 +230313,7 @@ void main() { this.args.forEach(t4); } outputDefined() { - return this.args.every((t4) => t4.outputDefined()); + return this.args.every(((t4) => t4.outputDefined())); } } function Fe(t4, e2) { @@ -230232,29 +230366,29 @@ void main() { } }; } - const Le = $e("==", function(t4, e2, r2) { + const Le = $e("==", (function(t4, e2, r2) { return e2 === r2; - }, Te), De = $e("!=", function(t4, e2, r2) { + }), Te), De = $e("!=", (function(t4, e2, r2) { return e2 !== r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return !Te(0, e2, r2, n2); - }), Oe = $e("<", function(t4, e2, r2) { + })), Oe = $e("<", (function(t4, e2, r2) { return e2 < r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) < 0; - }), je = $e(">", function(t4, e2, r2) { + })), je = $e(">", (function(t4, e2, r2) { return e2 > r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) > 0; - }), Re = $e("<=", function(t4, e2, r2) { + })), Re = $e("<=", (function(t4, e2, r2) { return e2 <= r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) <= 0; - }), Ue = $e(">=", function(t4, e2, r2) { + })), Ue = $e(">=", (function(t4, e2, r2) { return e2 >= r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) >= 0; - }); + })); class qe { constructor(t4, e2, r2) { this.type = yt, this.locale = r2, this.caseSensitive = t4, this.diacriticSensitive = e2; @@ -230342,10 +230476,10 @@ void main() { return new Ze(n2); } evaluate(t4) { - return new Yt(this.sections.map((e2) => { + return new Yt(this.sections.map(((e2) => { const r2 = e2.content.evaluate(t4); return ne(r2) === xt ? new Ht("", r2, null, null, null) : new Ht(ie(r2), null, e2.scale ? e2.scale.evaluate(t4) : null, e2.font ? e2.font.evaluate(t4).join(",") : null, e2.textColor ? e2.textColor.evaluate(t4) : null); - })); + }))); } eachChild(t4) { for (const e2 of this.sections) t4(e2.content), e2.scale && t4(e2.scale), e2.font && t4(e2.font), e2.textColor && t4(e2.textColor); @@ -230527,7 +230661,7 @@ void main() { } evaluate(t4) { if (null != t4.geometry() && null != t4.canonicalID()) { - if ("Point" === t4.geometryType()) return function(t5, e2) { + if ("Point" === t4.geometryType()) return (function(t5, e2) { const r2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], i2 = t5.canonicalID(); if ("Polygon" === e2.type) { const s2 = or(e2.coordinates, n2, i2), a2 = cr(t5.geometry(), r2, n2, i2); @@ -230540,8 +230674,8 @@ void main() { for (const t6 of a2) if (!nr(t6, s2)) return false; } return true; - }(t4, this.geometries); - if ("LineString" === t4.geometryType()) return function(t5, e2) { + })(t4, this.geometries); + if ("LineString" === t4.geometryType()) return (function(t5, e2) { const r2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], i2 = t5.canonicalID(); if ("Polygon" === e2.type) { const s2 = or(e2.coordinates, n2, i2), a2 = hr(t5.geometry(), r2, n2, i2); @@ -230554,7 +230688,7 @@ void main() { for (const t6 of a2) if (!sr(t6, s2)) return false; } return true; - }(t4, this.geometries); + })(t4, this.geometries); } return false; } @@ -230565,7 +230699,7 @@ void main() { } } let fr = class { - constructor(t4 = [], e2 = (t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0) { + constructor(t4 = [], e2 = ((t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0)) { if (this.data = t4, this.length = this.data.length, this.compare = e2, this.length > 0) for (let t5 = (this.length >> 1) - 1; t5 >= 0; t5--) this._down(t5); } push(t4) { @@ -230843,7 +230977,7 @@ void main() { return a2; } function Zr(t4) { - return "MultiPolygon" === t4.type ? t4.coordinates.map((t5) => ({ type: "Polygon", coordinates: t5 })) : "MultiLineString" === t4.type ? t4.coordinates.map((t5) => ({ type: "LineString", coordinates: t5 })) : "MultiPoint" === t4.type ? t4.coordinates.map((t5) => ({ type: "Point", coordinates: t5 })) : [t4]; + return "MultiPolygon" === t4.type ? t4.coordinates.map(((t5) => ({ type: "Polygon", coordinates: t5 }))) : "MultiLineString" === t4.type ? t4.coordinates.map(((t5) => ({ type: "LineString", coordinates: t5 }))) : "MultiPoint" === t4.type ? t4.coordinates.map(((t5) => ({ type: "Point", coordinates: t5 }))) : [t4]; } class Gr { constructor(t4, e2) { @@ -230853,7 +230987,7 @@ void main() { if (2 !== t4.length) return e2.error(`'distance' expression requires exactly one argument, but found ${t4.length - 1} instead.`); if (re(t4[1])) { const e3 = t4[1]; - if ("FeatureCollection" === e3.type) return new Gr(e3, e3.features.map((t5) => Zr(t5.geometry)).flat()); + if ("FeatureCollection" === e3.type) return new Gr(e3, e3.features.map(((t5) => Zr(t5.geometry))).flat()); if ("Feature" === e3.type) return new Gr(e3, Zr(e3.geometry)); if ("type" in e3 && "coordinates" in e3) return new Gr(e3, Zr(e3)); } @@ -230861,8 +230995,8 @@ void main() { } evaluate(t4) { if (null != t4.geometry() && null != t4.canonicalID()) { - if ("Point" === t4.geometryType()) return function(t5, e2) { - const r2 = t5.geometry(), n2 = r2.flat().map((e3) => Ye([e3.x, e3.y], t5.canonical)); + if ("Point" === t4.geometryType()) return (function(t5, e2) { + const r2 = t5.geometry(), n2 = r2.flat().map(((e3) => Ye([e3.x, e3.y], t5.canonical))); if (0 === r2.length) return NaN; const i2 = new Sr(n2[0][1]); let s2 = 1 / 0; @@ -230880,9 +231014,9 @@ void main() { if (0 === s2) return s2; } return s2; - }(t4, this.geometries); - if ("LineString" === t4.geometryType()) return function(t5, e2) { - const r2 = t5.geometry(), n2 = r2.flat().map((e3) => Ye([e3.x, e3.y], t5.canonical)); + })(t4, this.geometries); + if ("LineString" === t4.geometryType()) return (function(t5, e2) { + const r2 = t5.geometry(), n2 = r2.flat().map(((e3) => Ye([e3.x, e3.y], t5.canonical))); if (0 === r2.length) return NaN; const i2 = new Sr(n2[0][1]); let s2 = 1 / 0; @@ -230900,11 +231034,11 @@ void main() { if (0 === s2) return s2; } return s2; - }(t4, this.geometries); - if ("Polygon" === t4.geometryType()) return function(t5, e2) { + })(t4, this.geometries); + if ("Polygon" === t4.geometryType()) return (function(t5, e2) { const r2 = t5.geometry(); if (0 === r2.length || 0 === r2[0].length) return NaN; - const n2 = xr(r2, 0).map((e3) => e3.map((e4) => e4.map((e5) => Ye([e5.x, e5.y], t5.canonical)))), i2 = new Sr(n2[0][0][0][1]); + const n2 = xr(r2, 0).map(((e3) => e3.map(((e4) => e4.map(((e5) => Ye([e5.x, e5.y], t5.canonical))))))), i2 = new Sr(n2[0][0][0][1]); let s2 = 1 / 0; for (const t6 of e2) for (const e3 of n2) { switch (t6.type) { @@ -230920,7 +231054,7 @@ void main() { if (0 === s2) return s2; } return s2; - }(t4, this.geometries); + })(t4, this.geometries); } return NaN; } @@ -230947,7 +231081,7 @@ void main() { static parse(t4, e2) { const r2 = t4[0], n2 = Xr.definitions[r2]; if (!n2) return e2.error(`Unknown expression "${r2}". If you wanted a literal array, use ["literal", [...]].`, 0); - const i2 = Array.isArray(n2) ? n2[0] : n2.type, s2 = Array.isArray(n2) ? [[n2[1], n2[2]]] : n2.overloads, a2 = s2.filter(([e3]) => !Array.isArray(e3) || e3.length === t4.length - 1); + const i2 = Array.isArray(n2) ? n2[0] : n2.type, s2 = Array.isArray(n2) ? [[n2[1], n2[2]]] : n2.overloads, a2 = s2.filter((([e3]) => !Array.isArray(e3) || e3.length === t4.length - 1)); let o2 = null; for (const [n3, s3] of a2) { o2 = new fe(e2.registry, Qr, e2.path, null, e2.scope); @@ -230972,10 +231106,10 @@ void main() { } if (1 === a2.length) e2.errors.push(...o2.errors); else { - const r3 = (a2.length ? a2 : s2).map(([t5]) => { + const r3 = (a2.length ? a2 : s2).map((([t5]) => { return e3 = t5, Array.isArray(e3) ? `(${e3.map(wt).join(", ")})` : `(${wt(e3.type)}...)`; var e3; - }).join(" | "), n3 = []; + })).join(" | "), n3 = []; for (let r4 = 1; r4 < t4.length; r4++) { const i3 = e2.parse(t4[r4], 1 + n3.length); if (!i3) return null; @@ -231014,9 +231148,9 @@ void main() { if (t4 instanceof Gr) return false; const e2 = t4 instanceof ce || t4 instanceof le; let r2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { r2 = e2 ? r2 && Qr(t5) : r2 && t5 instanceof se; - }), !!r2 && tn(t4) && rn(t4, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]); + })), !!r2 && tn(t4) && rn(t4, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]); } function tn(t4) { if (t4 instanceof Xr) { @@ -231029,23 +231163,23 @@ void main() { if (t4 instanceof pr) return false; if (t4 instanceof Gr) return false; let e2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { e2 && !tn(t5) && (e2 = false); - }), e2; + })), e2; } function en(t4) { if (t4 instanceof Xr && "feature-state" === t4.name) return false; let e2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { e2 && !en(t5) && (e2 = false); - }), e2; + })), e2; } function rn(t4, e2) { if (t4 instanceof Xr && e2.indexOf(t4.name) >= 0) return false; let r2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { r2 && !rn(t5, e2) && (r2 = false); - }), r2; + })), r2; } function nn(t4) { return { result: "success", value: t4 }; @@ -231075,7 +231209,7 @@ void main() { const r2 = "color" === e2.type, n2 = t4.stops && "object" == typeof t4.stops[0][0], i2 = n2 || !(n2 || void 0 !== t4.property), s2 = t4.type || (ln(e2) ? "exponential" : "interval"); if (r2 || "padding" === e2.type) { const n3 = r2 ? Kt.parse : Jt.parse; - (t4 = st({}, t4)).stops && (t4.stops = t4.stops.map((t5) => [t5[0], n3(t5[1])])), t4.default = n3(t4.default ? t4.default : e2.default); + (t4 = st({}, t4)).stops && (t4.stops = t4.stops.map(((t5) => [t5[0], n3(t5[1])]))), t4.default = n3(t4.default ? t4.default : e2.default); } if (t4.colorSpace && "rgb" !== (a2 = t4.colorSpace) && "hcl" !== a2 && "lab" !== a2) throw new Error(`Unknown color space: "${t4.colorSpace}"`); var a2; @@ -231099,11 +231233,11 @@ void main() { const i3 = []; for (const t5 of n3) i3.push([r3[t5].zoom, pn(r3[t5], e2)]); const s3 = { name: "linear" }; - return { kind: "composite", interpolationType: s3, interpolationFactor: Be.interpolationFactor.bind(void 0, s3), zoomStops: i3.map((t5) => t5[0]), evaluate: ({ zoom: r4 }, n4) => mn({ stops: i3, base: t4.base }, e2, r4).evaluate(r4, n4) }; + return { kind: "composite", interpolationType: s3, interpolationFactor: Be.interpolationFactor.bind(void 0, s3), zoomStops: i3.map(((t5) => t5[0])), evaluate: ({ zoom: r4 }, n4) => mn({ stops: i3, base: t4.base }, e2, r4).evaluate(r4, n4) }; } if (i2) { const r3 = "exponential" === s2 ? { name: "exponential", base: void 0 !== t4.base ? t4.base : 1 } : null; - return { kind: "camera", interpolationType: r3, interpolationFactor: Be.interpolationFactor.bind(void 0, r3), zoomStops: t4.stops.map((t5) => t5[0]), evaluate: ({ zoom: r4 }) => o2(t4, e2, r4, l2, u2) }; + return { kind: "camera", interpolationType: r3, interpolationFactor: Be.interpolationFactor.bind(void 0, r3), zoomStops: t4.stops.map(((t5) => t5[0])), evaluate: ({ zoom: r4 }) => o2(t4, e2, r4, l2, u2) }; } return { kind: "source", evaluate(r3, n3) { const i3 = n3 && n3.properties ? n3.properties[t4.property] : void 0; @@ -231122,7 +231256,7 @@ void main() { if (1 === n2) return t4.stops[0][1]; if (r2 <= t4.stops[0][0]) return t4.stops[0][1]; if (r2 >= t4.stops[n2 - 1][0]) return t4.stops[n2 - 1][1]; - const i2 = _e(t4.stops.map((t5) => t5[0]), r2); + const i2 = _e(t4.stops.map(((t5) => t5[0])), r2); return t4.stops[i2][1]; } function mn(t4, e2, r2) { @@ -231132,10 +231266,10 @@ void main() { if (1 === i2) return t4.stops[0][1]; if (r2 <= t4.stops[0][0]) return t4.stops[0][1]; if (r2 >= t4.stops[i2 - 1][0]) return t4.stops[i2 - 1][1]; - const s2 = _e(t4.stops.map((t5) => t5[0]), r2), a2 = function(t5, e3, r3, n3) { + const s2 = _e(t4.stops.map(((t5) => t5[0])), r2), a2 = (function(t5, e3, r3, n3) { const i3 = n3 - r3, s3 = t5 - r3; return 0 === i3 ? 0 : 1 === e3 ? s3 / i3 : (Math.pow(e3, s3) - 1) / (Math.pow(e3, i3) - 1); - }(r2, n2, t4.stops[s2][0], t4.stops[s2 + 1][0]), o2 = t4.stops[s2][1], l2 = t4.stops[s2 + 1][1], u2 = Ce[e2.type] || hn; + })(r2, n2, t4.stops[s2][0], t4.stops[s2 + 1][0]), o2 = t4.stops[s2][1], l2 = t4.stops[s2 + 1][1], u2 = Ce[e2.type] || hn; return "function" == typeof o2.evaluate ? { evaluate(...e3) { const r3 = o2.evaluate.apply(void 0, e3), n3 = l2.evaluate.apply(void 0, e3); if (void 0 !== r3 && void 0 !== n3) return u2(r3, n3, a2, t4.colorSpace); @@ -231173,7 +231307,7 @@ void main() { let r2 = 1; for (const n2 of e2) r2 *= n2.evaluate(t4); return r2; - }], "-": { type: ut, overloads: [[[ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) - r2.evaluate(t4)], [[ut], (t4, [e2]) => -e2.evaluate(t4)]] }, "/": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) / r2.evaluate(t4)], "%": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) % r2.evaluate(t4)], ln2: [ut, [], () => Math.LN2], pi: [ut, [], () => Math.PI], e: [ut, [], () => Math.E], "^": [ut, [ut, ut], (t4, [e2, r2]) => Math.pow(e2.evaluate(t4), r2.evaluate(t4))], sqrt: [ut, [ut], (t4, [e2]) => Math.sqrt(e2.evaluate(t4))], log10: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN10], ln: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4))], log2: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN2], sin: [ut, [ut], (t4, [e2]) => Math.sin(e2.evaluate(t4))], cos: [ut, [ut], (t4, [e2]) => Math.cos(e2.evaluate(t4))], tan: [ut, [ut], (t4, [e2]) => Math.tan(e2.evaluate(t4))], asin: [ut, [ut], (t4, [e2]) => Math.asin(e2.evaluate(t4))], acos: [ut, [ut], (t4, [e2]) => Math.acos(e2.evaluate(t4))], atan: [ut, [ut], (t4, [e2]) => Math.atan(e2.evaluate(t4))], min: [ut, Wr(ut), (t4, e2) => Math.min(...e2.map((e3) => e3.evaluate(t4)))], max: [ut, Wr(ut), (t4, e2) => Math.max(...e2.map((e3) => e3.evaluate(t4)))], abs: [ut, [ut], (t4, [e2]) => Math.abs(e2.evaluate(t4))], round: [ut, [ut], (t4, [e2]) => { + }], "-": { type: ut, overloads: [[[ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) - r2.evaluate(t4)], [[ut], (t4, [e2]) => -e2.evaluate(t4)]] }, "/": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) / r2.evaluate(t4)], "%": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) % r2.evaluate(t4)], ln2: [ut, [], () => Math.LN2], pi: [ut, [], () => Math.PI], e: [ut, [], () => Math.E], "^": [ut, [ut, ut], (t4, [e2, r2]) => Math.pow(e2.evaluate(t4), r2.evaluate(t4))], sqrt: [ut, [ut], (t4, [e2]) => Math.sqrt(e2.evaluate(t4))], log10: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN10], ln: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4))], log2: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN2], sin: [ut, [ut], (t4, [e2]) => Math.sin(e2.evaluate(t4))], cos: [ut, [ut], (t4, [e2]) => Math.cos(e2.evaluate(t4))], tan: [ut, [ut], (t4, [e2]) => Math.tan(e2.evaluate(t4))], asin: [ut, [ut], (t4, [e2]) => Math.asin(e2.evaluate(t4))], acos: [ut, [ut], (t4, [e2]) => Math.acos(e2.evaluate(t4))], atan: [ut, [ut], (t4, [e2]) => Math.atan(e2.evaluate(t4))], min: [ut, Wr(ut), (t4, e2) => Math.min(...e2.map(((e3) => e3.evaluate(t4))))], max: [ut, Wr(ut), (t4, e2) => Math.max(...e2.map(((e3) => e3.evaluate(t4))))], abs: [ut, [ut], (t4, [e2]) => Math.abs(e2.evaluate(t4))], round: [ut, [ut], (t4, [e2]) => { const r2 = e2.evaluate(t4); return r2 < 0 ? -Math.round(-r2) : Math.round(r2); }], floor: [ut, [ut], (t4, [e2]) => Math.floor(e2.evaluate(t4))], ceil: [ut, [ut], (t4, [e2]) => Math.ceil(e2.evaluate(t4))], "filter-==": [ht, [ct, dt], (t4, [e2, r2]) => t4.properties()[e2.value] === r2.value], "filter-id-==": [ht, [dt], (t4, [e2]) => t4.id() === e2.value], "filter-type-==": [ht, [ct], (t4, [e2]) => t4.geometryType() === e2.value], "filter-<": [ht, [ct, dt], (t4, [e2, r2]) => { @@ -231200,14 +231334,14 @@ void main() { }], "filter-id->=": [ht, [dt], (t4, [e2]) => { const r2 = t4.id(), n2 = e2.value; return typeof r2 == typeof n2 && r2 >= n2; - }], "filter-has": [ht, [dt], (t4, [e2]) => e2.value in t4.properties()], "filter-has-id": [ht, [], (t4) => null !== t4.id() && void 0 !== t4.id()], "filter-type-in": [ht, [bt(ct)], (t4, [e2]) => e2.value.indexOf(t4.geometryType()) >= 0], "filter-id-in": [ht, [bt(dt)], (t4, [e2]) => e2.value.indexOf(t4.id()) >= 0], "filter-in-small": [ht, [ct, bt(dt)], (t4, [e2, r2]) => r2.value.indexOf(t4.properties()[e2.value]) >= 0], "filter-in-large": [ht, [ct, bt(dt)], (t4, [e2, r2]) => function(t5, e3, r3, n2) { + }], "filter-has": [ht, [dt], (t4, [e2]) => e2.value in t4.properties()], "filter-has-id": [ht, [], (t4) => null !== t4.id() && void 0 !== t4.id()], "filter-type-in": [ht, [bt(ct)], (t4, [e2]) => e2.value.indexOf(t4.geometryType()) >= 0], "filter-id-in": [ht, [bt(dt)], (t4, [e2]) => e2.value.indexOf(t4.id()) >= 0], "filter-in-small": [ht, [ct, bt(dt)], (t4, [e2, r2]) => r2.value.indexOf(t4.properties()[e2.value]) >= 0], "filter-in-large": [ht, [ct, bt(dt)], (t4, [e2, r2]) => (function(t5, e3, r3, n2) { for (; r3 <= n2; ) { const i2 = r3 + n2 >> 1; if (e3[i2] === t5) return true; e3[i2] > t5 ? n2 = i2 - 1 : r3 = i2 + 1; } return false; - }(t4.properties()[e2.value], r2.value, 0, r2.value.length - 1)], all: { type: ht, overloads: [[[ht, ht], (t4, [e2, r2]) => e2.evaluate(t4) && r2.evaluate(t4)], [Wr(ht), (t4, e2) => { + })(t4.properties()[e2.value], r2.value, 0, r2.value.length - 1)], all: { type: ht, overloads: [[[ht, ht], (t4, [e2, r2]) => e2.evaluate(t4) && r2.evaluate(t4)], [Wr(ht), (t4, e2) => { for (const r2 of e2) if (!r2.evaluate(t4)) return false; return true; }]] }, any: { type: ht, overloads: [[[ht, ht], (t4, [e2, r2]) => e2.evaluate(t4) || r2.evaluate(t4)], [Wr(ht), (t4, e2) => { @@ -231216,7 +231350,7 @@ void main() { }]] }, "!": [ht, [ht], (t4, [e2]) => !e2.evaluate(t4)], "is-supported-script": [ht, [ct], (t4, [e2]) => { const r2 = t4.globals && t4.globals.isSupportedScript; return !r2 || r2(e2.evaluate(t4)); - }], upcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toUpperCase()], downcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toLowerCase()], concat: [ct, Wr(dt), (t4, e2) => e2.map((e3) => ie(e3.evaluate(t4))).join("")], "resolved-locale": [ct, [yt], (t4, [e2]) => e2.evaluate(t4).resolvedLocale()] }); + }], upcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toUpperCase()], downcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toLowerCase()], concat: [ct, Wr(dt), (t4, e2) => e2.map(((e3) => ie(e3.evaluate(t4)))).join("")], "resolved-locale": [ct, [yt], (t4, [e2]) => e2.evaluate(t4).resolvedLocale()] }); class xn { constructor(t4, e2) { var r2; @@ -231230,7 +231364,7 @@ void main() { try { const t5 = this.expression.evaluate(this._evaluator); if (null == t5 || "number" == typeof t5 && t5 != t5) return this._defaultValue; - if (this._enumValues && !(t5 in this._enumValues)) throw new ae(`Expected value to be one of ${Object.keys(this._enumValues).map((t6) => JSON.stringify(t6)).join(", ")}, but found ${JSON.stringify(t5)} instead.`); + if (this._enumValues && !(t5 in this._enumValues)) throw new ae(`Expected value to be one of ${Object.keys(this._enumValues).map(((t6) => JSON.stringify(t6))).join(", ")}, but found ${JSON.stringify(t5)} instead.`); return t5; } catch (t5) { return this._warningHistory[t5.message] || (this._warningHistory[t5.message] = true, "undefined" != typeof console && console.warn(t5.message)), this._defaultValue; @@ -231241,10 +231375,10 @@ void main() { return Array.isArray(t4) && t4.length > 0 && "string" == typeof t4[0] && t4[0] in Kr; } function bn(t4, e2) { - const r2 = new fe(Kr, Qr, [], e2 ? function(t5) { + const r2 = new fe(Kr, Qr, [], e2 ? (function(t5) { const e3 = { color: pt, string: ct, number: ut, enum: ct, boolean: ht, formatted: mt, padding: gt, resolvedImage: xt, variableAnchorOffsetCollection: vt }; return "array" === t5.type ? bt(e3[t5.value] || dt, t5.length) : e3[t5.type]; - }(e2) : void 0), n2 = r2.parse(t4, void 0, void 0, void 0, e2 && "string" === e2.type ? { typeAnnotation: "coerce" } : void 0); + })(e2) : void 0), n2 = r2.parse(t4, void 0, void 0, void 0, e2 && "string" === e2.type ? { typeAnnotation: "coerce" } : void 0); return n2 ? nn(new xn(n2, e2)) : sn(r2.errors); } class wn { @@ -231299,10 +231433,10 @@ void main() { else if (t4 instanceof Ee) { for (const r2 of t4.args) if (e2 = kn(r2), e2) break; } else (t4 instanceof Ae || t4 instanceof Be) && t4.input instanceof Xr && "zoom" === t4.input.name && (e2 = t4); - return e2 instanceof at || t4.eachChild((t5) => { + return e2 instanceof at || t4.eachChild(((t5) => { const r2 = kn(t5); r2 instanceof at ? e2 = r2 : !e2 && r2 ? e2 = new at("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : e2 && r2 && e2 !== r2 && (e2 = new at("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.')); - }), e2; + })), e2; } function Mn(t4) { if (true === t4 || false === t4) return true; @@ -231336,7 +231470,7 @@ void main() { if (null == t4) return { filter: () => true, needGeometry: false }; Mn(t4) || (t4 = Bn(t4)); const e2 = bn(t4, In); - if ("error" === e2.result) throw new Error(e2.value.map((t5) => `${t5.key}: ${t5.message}`).join(", ")); + if ("error" === e2.result) throw new Error(e2.value.map(((t5) => `${t5.key}: ${t5.message}`)).join(", ")); return { filter: (t5, r2, n2) => e2.value.evaluate(t5, r2, {}, n2), needGeometry: Cn(t4) }; } function Pn(t4, e2) { @@ -231372,7 +231506,7 @@ void main() { case "$id": return ["filter-id-in", ["literal", e2]]; default: - return e2.length > 200 && !e2.some((t5) => typeof t5 != typeof e2[0]) ? ["filter-in-large", t4, ["literal", e2.sort(Pn)]] : ["filter-in-small", t4, ["literal", e2]]; + return e2.length > 200 && !e2.some(((t5) => typeof t5 != typeof e2[0])) ? ["filter-in-large", t4, ["literal", e2.sort(Pn)]] : ["filter-in-small", t4, ["literal", e2]]; } } function Fn(t4) { @@ -231502,7 +231636,7 @@ void main() { } function Zn2(t4) { const e2 = ("property" === t4.expressionContext ? An : bn)(jn(t4.value), t4.valueSpec); - if ("error" === e2.result) return e2.value.map((e3) => new it(`${t4.key}${e3.key}`, t4.value, e3.message)); + if ("error" === e2.result) return e2.value.map(((e3) => new it(`${t4.key}${e3.key}`, t4.value, e3.message))); const r2 = e2.value.expression || e2.value._styleExpression.expression; if ("property" === t4.expressionContext && "text-font" === t4.propertyKey && !r2.outputDefined()) return [new it(t4.key, t4.value, `Invalid data expression for "${t4.propertyKey}". Output values must be contained as literals within the expression.`)]; if ("property" === t4.expressionContext && "layout" === t4.propertyType && !en(r2)) return [new it(t4.key, t4.value, '"feature-state" data expressions are not supported with layout properties.')]; @@ -231585,11 +231719,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } if ("ref" in r2) { let t5; - ["type", "source", "source-layer", "filter", "layout"].forEach((t6) => { + ["type", "source", "source-layer", "filter", "layout"].forEach(((t6) => { t6 in r2 && e2.push(new it(n2, r2[t6], `"${t6}" is prohibited for ref layers`)); - }), i2.layers.forEach((e3) => { + })), i2.layers.forEach(((e3) => { On(e3.id) === o2 && (t5 = e3); - }), t5 ? t5.ref ? e2.push(new it(n2, r2.ref, "ref cannot reference another ref layer")) : a2 = On(t5.type) : e2.push(new it(n2, r2.ref, `ref layer "${o2}" not found`)); + })), t5 ? t5.ref ? e2.push(new it(n2, r2.ref, "ref cannot reference another ref layer")) : a2 = On(t5.type) : e2.push(new it(n2, r2.ref, `ref layer "${o2}" not found`)); } else if ("background" !== a2) if (r2.source) { const t5 = i2.sources && i2.sources[r2.source], s3 = t5 && On(t5.type); t5 ? "vector" === s3 && "raster" === a2 ? e2.push(new it(n2, r2.source, `layer "${r2.id}" requires a raster source`)) : "raster-dem" !== s3 && "hillshade" === a2 ? e2.push(new it(n2, r2.source, `layer "${r2.id}" requires a raster-dem source`)) : "raster" === s3 && "raster" !== a2 ? e2.push(new it(n2, r2.source, `layer "${r2.id}" requires a vector source`)) : "vector" !== s3 || r2["source-layer"] ? "raster-dem" === s3 && "hillshade" !== a2 ? e2.push(new it(n2, r2.source, "raster-dem source can only be used with layer type 'hillshade'.")) : "line" !== a2 || !r2.paint || !r2.paint["line-gradient"] || "geojson" === s3 && t5.lineMetrics || e2.push(new it(n2, r2, `layer "${r2.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e2.push(new it(n2, r2, `layer "${r2.id}" must specify a "source-layer"`)) : e2.push(new it(n2, r2.source, `source "${r2.source}" not found`)); @@ -231618,7 +231752,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ case "raster": return o2 = Rn({ key: r2, value: e2, valueSpec: n2[`source_${a2.replace("-", "_")}`], style: t4.style, styleSpec: n2, objectElementValidators: ti, validateSpec: s2 }), o2; case "raster-dem": - return o2 = function(t5) { + return o2 = (function(t5) { var e3; const r3 = null !== (e3 = t5.sourceName) && void 0 !== e3 ? e3 : "", n3 = t5.value, i3 = t5.styleSpec, s3 = i3.source_raster_dem, a3 = t5.style; let o3 = []; @@ -231628,7 +231762,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const u2 = "custom" === On(n3.encoding), c2 = ["redFactor", "greenFactor", "blueFactor", "baseShift"], h2 = t5.value.encoding ? `"${t5.value.encoding}"` : "Default"; for (const e4 in n3) !u2 && c2.includes(e4) ? o3.push(new it(e4, n3[e4], `In "${r3}": "${e4}" is only valid when "encoding" is set to "custom". ${h2} encoding found`)) : s3[e4] ? o3 = o3.concat(t5.validateSpec({ key: e4, value: n3[e4], valueSpec: s3[e4], validateSpec: t5.validateSpec, style: a3, styleSpec: i3 })) : o3.push(new it(e4, n3[e4], `unknown property "${e4}"`)); return o3; - }({ sourceName: r2, value: e2, style: t4.style, styleSpec: n2, validateSpec: s2 }), o2; + })({ sourceName: r2, value: e2, style: t4.style, styleSpec: n2, validateSpec: s2 }), o2; case "geojson": if (o2 = Rn({ key: r2, value: e2, valueSpec: n2.source_geojson, style: i2, styleSpec: n2, validateSpec: s2, objectElementValidators: ti }), e2.cluster) for (const t5 in e2.clusterProperties) { const [n3, i3] = e2.clusterProperties[t5], a3 = "string" == typeof n3 ? [n3, ["accumulated"], ["get", t5]] : n3; @@ -231736,7 +231870,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }; } function hi(t4) { - return [].concat(t4).sort((t5, e2) => t5.line - e2.line); + return [].concat(t4).sort(((t5, e2) => t5.line - e2.line)); } function pi(t4) { return function(...e2) { @@ -231851,11 +231985,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4.$name || t4.constructor._classRegistryKey; } function Si(t4) { - return !function(t5) { + return !(function(t5) { if (null === t5 || "object" != typeof t5) return false; const e2 = Ai(t5); return !(!e2 || "Object" === e2); - }(t4) && (null == t4 || "boolean" == typeof t4 || "number" == typeof t4 || "string" == typeof t4 || t4 instanceof Boolean || t4 instanceof Number || t4 instanceof String || t4 instanceof Date || t4 instanceof RegExp || t4 instanceof Blob || t4 instanceof Error || _i(t4) || I(t4) || ArrayBuffer.isView(t4) || t4 instanceof ImageData); + })(t4) && (null == t4 || "boolean" == typeof t4 || "number" == typeof t4 || "string" == typeof t4 || t4 instanceof Boolean || t4 instanceof Number || t4 instanceof String || t4 instanceof Date || t4 instanceof RegExp || t4 instanceof Blob || t4 instanceof Error || _i(t4) || I(t4) || ArrayBuffer.isView(t4) || t4 instanceof ImageData); } function ki(t4, e2) { if (Si(t4)) return (_i(t4) || I(t4)) && e2 && e2.push(t4), ArrayBuffer.isView(t4) && e2 && e2.push(t4.buffer), t4 instanceof ImageData && e2 && e2.push(t4.data.buffer), t4; @@ -231919,13 +232053,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return true; } function Bi(t4) { - const e2 = t4.map((t5) => { + const e2 = t4.map(((t5) => { try { return new RegExp(`\\p{sc=${t5}}`, "u").source; } catch (t6) { return null; } - }).filter((t5) => t5); + })).filter(((t5) => t5)); return new RegExp(e2.join("|"), "u"); } const Vi = Bi(["Arab", "Dupl", "Mong", "Ougr", "Syrc"]); @@ -231937,9 +232071,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return !(746 !== t4 && 747 !== t4 && (t4 < 4352 || !(zi["CJK Compatibility Forms"](t4) && !(t4 >= 65097 && t4 <= 65103) || zi["CJK Compatibility"](t4) || zi["CJK Strokes"](t4) || !(!zi["CJK Symbols and Punctuation"](t4) || t4 >= 12296 && t4 <= 12305 || t4 >= 12308 && t4 <= 12319 || 12336 === t4) || zi["Enclosed CJK Letters and Months"](t4) || zi["Ideographic Description Characters"](t4) || zi.Kanbun(t4) || zi.Katakana(t4) && 12540 !== t4 || !(!zi["Halfwidth and Fullwidth Forms"](t4) || 65288 === t4 || 65289 === t4 || 65293 === t4 || t4 >= 65306 && t4 <= 65310 || 65339 === t4 || 65341 === t4 || 65343 === t4 || t4 >= 65371 && t4 <= 65503 || 65507 === t4 || t4 >= 65512 && t4 <= 65519) || !(!zi["Small Form Variants"](t4) || t4 >= 65112 && t4 <= 65118 || t4 >= 65123 && t4 <= 65126) || zi["Vertical Forms"](t4) || zi["Yijing Hexagram Symbols"](t4) || new RegExp("\\p{sc=Cans}", "u").test(String.fromCodePoint(t4)) || new RegExp("\\p{sc=Hang}", "u").test(String.fromCodePoint(t4)) || Fi.test(String.fromCodePoint(t4))))); } function $i(t4) { - return !(Ti(t4) || function(t5) { + return !(Ti(t4) || (function(t5) { return !!(zi["Latin-1 Supplement"](t5) && (167 === t5 || 169 === t5 || 174 === t5 || 177 === t5 || 188 === t5 || 189 === t5 || 190 === t5 || 215 === t5 || 247 === t5) || zi["General Punctuation"](t5) && (8214 === t5 || 8224 === t5 || 8225 === t5 || 8240 === t5 || 8241 === t5 || 8251 === t5 || 8252 === t5 || 8258 === t5 || 8263 === t5 || 8264 === t5 || 8265 === t5 || 8273 === t5) || zi["Letterlike Symbols"](t5) || zi["Number Forms"](t5) || zi["Miscellaneous Technical"](t5) && (t5 >= 8960 && t5 <= 8967 || t5 >= 8972 && t5 <= 8991 || t5 >= 8996 && t5 <= 9e3 || 9003 === t5 || t5 >= 9085 && t5 <= 9114 || t5 >= 9150 && t5 <= 9165 || 9167 === t5 || t5 >= 9169 && t5 <= 9179 || t5 >= 9186 && t5 <= 9215) || zi["Control Pictures"](t5) && 9251 !== t5 || zi["Optical Character Recognition"](t5) || zi["Enclosed Alphanumerics"](t5) || zi["Geometric Shapes"](t5) || zi["Miscellaneous Symbols"](t5) && !(t5 >= 9754 && t5 <= 9759) || zi["Miscellaneous Symbols and Arrows"](t5) && (t5 >= 11026 && t5 <= 11055 || t5 >= 11088 && t5 <= 11097 || t5 >= 11192 && t5 <= 11243) || zi["CJK Symbols and Punctuation"](t5) || zi.Katakana(t5) || zi["Private Use Area"](t5) || zi["CJK Compatibility Forms"](t5) || zi["Small Form Variants"](t5) || zi["Halfwidth and Fullwidth Forms"](t5) || 8734 === t5 || 8756 === t5 || 8757 === t5 || t5 >= 9984 && t5 <= 10087 || t5 >= 10102 && t5 <= 10131 || 65532 === t5 || 65533 === t5); - }(t4)); + })(t4)); } const Li = Bi(["Adlm", "Arab", "Armi", "Avst", "Chrs", "Cprt", "Egyp", "Elym", "Gara", "Hatr", "Hebr", "Hung", "Khar", "Lydi", "Mand", "Mani", "Mend", "Merc", "Mero", "Narb", "Nbat", "Nkoo", "Orkh", "Palm", "Phli", "Phlp", "Phnx", "Prti", "Rohg", "Samr", "Sarb", "Sogo", "Syrc", "Thaa", "Todr", "Yezi"]); function Di(t4) { @@ -231980,10 +232114,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.zoom = t4, e2 ? (this.now = e2.now, this.fadeDuration = e2.fadeDuration, this.zoomHistory = e2.zoomHistory, this.transition = e2.transition) : (this.now = 0, this.fadeDuration = 0, this.zoomHistory = new Ii(), this.transition = {}); } isSupportedScript(t4) { - return function(t5, e2) { + return (function(t5, e2) { for (const r2 of t5) if (!Oi(r2.charCodeAt(0), e2)) return false; return true; - }(t4, "loaded" === Ri.getRTLTextPluginStatus()); + })(t4, "loaded" === Ri.getRTLTextPluginStatus()); } crossFadingFactor() { return 0 === this.fadeDuration ? 1 : Math.min((this.now - this.zoomHistory.lastIntegerZoomTime) / this.fadeDuration, 1); @@ -231995,18 +232129,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class qi { constructor(t4, e2) { - this.property = t4, this.value = e2, this.expression = function(t5, e3) { + this.property = t4, this.value = e2, this.expression = (function(t5, e3) { if (cn(t5)) return new Sn(t5, e3); if (vn(t5)) { const r2 = An(t5, e3); - if ("error" === r2.result) throw new Error(r2.value.map((t6) => `${t6.key}: ${t6.message}`).join(", ")); + if ("error" === r2.result) throw new Error(r2.value.map(((t6) => `${t6.key}: ${t6.message}`)).join(", ")); return r2.value; } { let r2 = t5; return "color" === e3.type && "string" == typeof t5 ? r2 = Kt.parse(t5) : "padding" !== e3.type || "number" != typeof t5 && !Array.isArray(t5) ? "variableAnchorOffsetCollection" === e3.type && Array.isArray(t5) && (r2 = Qt.parse(t5)) : r2 = Jt.parse(t5), { kind: "constant", evaluate: () => r2 }; } - }(void 0 === e2 ? t4.specification.default : e2, t4.specification); + })(void 0 === e2 ? t4.specification.default : e2, t4.specification); } isDataDriven() { return "source" === this.expression.kind || "composite" === this.expression.kind; @@ -232075,12 +232209,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (n2 < this.begin) return s2.possiblyEvaluate(t4, e2, r2); { const a2 = (n2 - this.begin) / (this.end - this.begin); - return this.property.interpolate(s2.possiblyEvaluate(t4, e2, r2), i2, function(t5) { + return this.property.interpolate(s2.possiblyEvaluate(t4, e2, r2), i2, (function(t5) { if (t5 <= 0) return 0; if (t5 >= 1) return 1; const e3 = t5 * t5, r3 = e3 * t5; return 4 * (t5 < 0.5 ? r3 : 3 * (t5 - e3) + r3 - 0.75); - }(a2)); + })(a2)); } } return i2; @@ -232304,7 +232438,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } serialize() { const t4 = { id: this.id, type: this.type, source: this.source, "source-layer": this.sourceLayer, metadata: this.metadata, minzoom: this.minzoom, maxzoom: this.maxzoom, filter: this.filter, layout: this._unevaluatedLayout && this._unevaluatedLayout.serialize(), paint: this._transitionablePaint && this._transitionablePaint.serialize() }; - return this.visibility && (t4.layout = t4.layout || {}, t4.layout.visibility = this.visibility), b(t4, (t5, e2) => !(void 0 === t5 || "layout" === e2 && !Object.keys(t5).length || "paint" === e2 && !Object.keys(t5).length)); + return this.visibility && (t4.layout = t4.layout || {}, t4.layout.visibility = this.visibility), b(t4, ((t5, e2) => !(void 0 === t5 || "layout" === e2 && !Object.keys(t5).length || "paint" === e2 && !Object.keys(t5).length))); } _validate(t4, e2, r2, n2, i2 = {}) { return (!i2 || false !== i2.validate) && xi(this, t4.call(fi, { key: e2, layerType: this.type, objectKey: r2, value: n2, styleSpec: G, style: { glyphs: true, sprite: true } })); @@ -232367,10 +232501,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function ls(t4, e2 = 1) { let r2 = 0, n2 = 0; - return { members: t4.map((t5) => { + return { members: t4.map(((t5) => { const i2 = ss[t5.type].BYTES_PER_ELEMENT, s2 = r2 = us(r2, Math.max(e2, i2)), a2 = t5.components || 1; return n2 = Math.max(n2, i2), r2 += i2 * a2, { name: t5.name, type: t5.type, components: a2, offset: s2 }; - }), size: us(r2, Math.max(n2, e2)), alignment: e2 }; + })), size: us(r2, Math.max(n2, e2)), alignment: e2 }; } function us(t4, e2) { return Math.ceil(t4 / e2) * e2; @@ -233123,7 +233257,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Ia { constructor(t4, e2, r2) { - this.value = t4, this.uniformNames = e2.map((t5) => `u_${t5}`), this.type = r2; + this.value = t4, this.uniformNames = e2.map(((t5) => `u_${t5}`)), this.type = r2; } setUniform(t4, e2, r2) { t4.set(r2.constantOr(this.value)); @@ -233134,7 +233268,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class za { constructor(t4, e2) { - this.uniformNames = e2.map((t5) => `u_${t5}`), this.patternFrom = null, this.patternTo = null, this.pixelRatioFrom = 1, this.pixelRatioTo = 1; + this.uniformNames = e2.map(((t5) => `u_${t5}`)), this.patternFrom = null, this.patternTo = null, this.pixelRatioFrom = 1, this.pixelRatioTo = 1; } setConstantPatternPositions(t4, e2) { this.pixelRatioFrom = e2.pixelRatio, this.pixelRatioTo = t4.pixelRatio, this.patternFrom = e2.tlbr, this.patternTo = t4.tlbr; @@ -233149,7 +233283,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Pa { constructor(t4, e2, r2, n2) { - this.expression = t4, this.type = r2, this.maxValue = 0, this.paintVertexAttributes = e2.map((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 2 : 1, offset: 0 })), this.paintVertexArray = new n2(); + this.expression = t4, this.type = r2, this.maxValue = 0, this.paintVertexAttributes = e2.map(((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 2 : 1, offset: 0 }))), this.paintVertexArray = new n2(); } populatePaintArray(t4, e2, r2, n2, i2) { const s2 = this.paintVertexArray.length, a2 = this.expression.evaluate(new Ui(0), e2, {}, n2, [], i2); @@ -233177,7 +233311,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Ca { constructor(t4, e2, r2, n2, i2, s2) { - this.expression = t4, this.uniformNames = e2.map((t5) => `u_${t5}_t`), this.type = r2, this.useIntegerZoom = n2, this.zoom = i2, this.maxValue = 0, this.paintVertexAttributes = e2.map((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 4 : 2, offset: 0 })), this.paintVertexArray = new s2(); + this.expression = t4, this.uniformNames = e2.map(((t5) => `u_${t5}_t`)), this.type = r2, this.useIntegerZoom = n2, this.zoom = i2, this.maxValue = 0, this.paintVertexAttributes = e2.map(((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 4 : 2, offset: 0 }))), this.paintVertexArray = new s2(); } populatePaintArray(t4, e2, r2, n2, i2) { const s2 = this.expression.evaluate(new Ui(this.zoom), e2, {}, n2, [], i2), a2 = this.expression.evaluate(new Ui(this.zoom + 1), e2, {}, n2, [], i2), o2 = this.paintVertexArray.length; @@ -233290,7 +233424,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t4 = []; for (const e2 in this.binders) { const r2 = this.binders[e2]; - (r2 instanceof Ia || r2 instanceof za) && t4.push(...r2.uniformNames.map((t5) => `#define HAS_UNIFORM_${t5}`)); + (r2 instanceof Ia || r2 instanceof za) && t4.push(...r2.uniformNames.map(((t5) => `#define HAS_UNIFORM_${t5}`))); } return t4; } @@ -233355,7 +233489,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } class Ea { - constructor(t4, e2, r2 = () => true) { + constructor(t4, e2, r2 = (() => true)) { this.programConfigurations = {}; for (const n2 of t4) this.programConfigurations[n2.id] = new Va(n2, e2, r2); this.needsUpload = false, this._featureMap = new ga(), this._bufferOffset = 0; @@ -233384,9 +233518,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return { "text-opacity": ["opacity"], "icon-opacity": ["opacity"], "text-color": ["fill_color"], "icon-color": ["fill_color"], "text-halo-color": ["halo_color"], "icon-halo-color": ["halo_color"], "text-halo-blur": ["halo_blur"], "icon-halo-blur": ["halo_blur"], "text-halo-width": ["halo_width"], "icon-halo-width": ["halo_width"], "line-gap-width": ["gapwidth"], "line-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-extrusion-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"] }[t4] || [t4.replace(`${e2}-`, "").replace(/-/g, "_")]; } function Ta(t4, e2, r2) { - const n2 = { color: { source: ys, composite: Vs }, number: { source: Is, composite: ys } }, i2 = function(t5) { + const n2 = { color: { source: ys, composite: Vs }, number: { source: Is, composite: ys } }, i2 = (function(t5) { return { "line-pattern": { source: Js, composite: Js }, "fill-pattern": { source: Js, composite: Js }, "fill-extrusion-pattern": { source: Js, composite: Js } }[t5]; - }(t4); + })(t4); return i2 && i2[r2] || n2[e2][r2]; } wi("ConstantBinder", Ia), wi("CrossFadedConstantBinder", za), wi("SourceExpressionBinder", Pa), wi("CrossFadedCompositeBinder", Ba), wi("CompositeExpressionBinder", Ca), wi("ProgramConfiguration", Va, { omit: ["_buffers"] }), wi("ProgramConfigurationSet", Ea); @@ -233410,7 +233544,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Ua { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Gs(), this.indexArray = new na(), this.segments = new oa(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Gs(), this.indexArray = new na(), this.segments = new oa(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { const n2 = this.layers[0], i2 = []; @@ -233422,7 +233556,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const c2 = a2 ? s2.evaluate(u2, {}, r2) : void 0, h2 = { id: n3, properties: e3.properties, type: e3.type, sourceLayerIndex: l2, index: o2, geometry: t5 ? u2.geometry : Oa(e3), patterns: {}, sortKey: c2 }; i2.push(h2); } - a2 && i2.sort((t5, e3) => t5.sortKey - e3.sortKey); + a2 && i2.sort(((t5, e3) => t5.sortKey - e3.sortKey)); for (const n3 of i2) { const { geometry: i3, index: s3, sourceLayerIndex: a3 } = n3, o2 = t4[s3].feature; this.addFeature(n3, i3, s3, r2), e2.featureIndex.insert(o2, i3, s3, a3, this.index); @@ -233575,9 +233709,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return to("circle-radius", this, e2) + to("circle-stroke-width", this, e2) + eo(this.paint.get("circle-translate")); } queryIntersectsFeature(t4, e2, r2, n2, i2, s2, a2, o2) { - const l2 = ro(t4, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), s2.angle, a2), u2 = this.paint.get("circle-radius").evaluate(e2, r2) + this.paint.get("circle-stroke-width").evaluate(e2, r2), c2 = "map" === this.paint.get("circle-pitch-alignment"), h2 = c2 ? l2 : function(t5, e3) { - return t5.map((t6) => yo(t6, e3)); - }(l2, o2), p2 = c2 ? u2 * a2 : u2; + const l2 = ro(t4, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), s2.angle, a2), u2 = this.paint.get("circle-radius").evaluate(e2, r2) + this.paint.get("circle-stroke-width").evaluate(e2, r2), c2 = "map" === this.paint.get("circle-pitch-alignment"), h2 = c2 ? l2 : (function(t5, e3) { + return t5.map(((t6) => yo(t6, e3))); + })(l2, o2), p2 = c2 ? u2 * a2 : u2; for (const t5 of n2) for (const e3 of t5) { const t6 = c2 ? e3 : yo(e3, o2); let r3 = p2; @@ -233715,7 +233849,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = []; if (!s2 || s2.next === s2.prev) return a2; let o2, l2, u2; - if (n2 && (s2 = function(t5, e3, r3, n3) { + if (n2 && (s2 = (function(t5, e3, r3, n3) { const i3 = []; for (let r4 = 0, s3 = e3.length; r4 < s3; r4++) { const a3 = Eo(t5, e3[r4] * n3, r4 < s3 - 1 ? e3[r4 + 1] * n3 : t5.length, n3, false); @@ -233724,7 +233858,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i3.sort(jo); for (let t6 = 0; t6 < i3.length; t6++) r3 = Ro(i3[t6], r3); return r3; - }(t4, e2, s2, r2)), t4.length > 80 * r2) { + })(t4, e2, s2, r2)), t4.length > 80 * r2) { o2 = 1 / 0, l2 = 1 / 0; let e3 = -1 / 0, n3 = -1 / 0; for (let s3 = r2; s3 < i2; s3 += r2) { @@ -233737,11 +233871,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function Eo(t4, e2, r2, n2, i2) { let s2; - if (i2 === function(t5, e3, r3, n3) { + if (i2 === (function(t5, e3, r3, n3) { let i3 = 0; for (let s3 = e3, a2 = r3 - n3; s3 < r3; s3 += n3) i3 += (t5[a2] - t5[s3]) * (t5[s3 + 1] + t5[a2 + 1]), a2 = s3; return i3; - }(t4, e2, r2, n2) > 0) for (let i3 = e2; i3 < r2; i3 += n2) s2 = tl(i3 / n2 | 0, t4[i3], t4[i3 + 1], s2); + })(t4, e2, r2, n2) > 0) for (let i3 = e2; i3 < r2; i3 += n2) s2 = tl(i3 / n2 | 0, t4[i3], t4[i3 + 1], s2); else for (let i3 = r2 - n2; i3 >= e2; i3 -= n2) s2 = tl(i3 / n2 | 0, t4[i3], t4[i3 + 1], s2); return s2 && Xo(s2, s2.next) && (el(s2), s2 = s2.next), s2; } @@ -233760,12 +233894,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function To(t4, e2, r2, n2, i2, s2, a2) { if (!t4) return; - !a2 && s2 && function(t5, e3, r3, n3) { + !a2 && s2 && (function(t5, e3, r3, n3) { let i3 = t5; do { 0 === i3.z && (i3.z = qo(i3.x, i3.y, e3, r3, n3)), i3.prevZ = i3.prev, i3.nextZ = i3.next, i3 = i3.next; } while (i3 !== t5); - i3.prevZ.nextZ = null, i3.prevZ = null, function(t6) { + i3.prevZ.nextZ = null, i3.prevZ = null, (function(t6) { let e4, r4 = 1; do { let n4, i4 = t6; @@ -233781,8 +233915,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } s3.nextZ = null, r4 *= 2; } while (e4 > 1); - }(i3); - }(t4, n2, i2, s2); + })(i3); + })(t4, n2, i2, s2); let o2 = t4; for (; t4.prev !== t4.next; ) { const l2 = t4.prev, u2 = t4.next; @@ -233850,7 +233984,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4.x - e2.x; } function Ro(t4, e2) { - const r2 = function(t5, e3) { + const r2 = (function(t5, e3) { let r3 = e3; const n3 = t5.x, i2 = t5.y; let s2, a2 = -1 / 0; @@ -233873,7 +234007,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r3 = r3.next; } while (r3 !== o2); return s2; - }(t4, e2); + })(t4, e2); if (!r2) return e2; const n2 = Qo(r2, t4); return Fo(n2, n2.next), Fo(r2, r2.next); @@ -233895,21 +234029,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return (i2 - a2) * (e2 - o2) >= (t4 - a2) * (s2 - o2) && (t4 - a2) * (n2 - o2) >= (r2 - a2) * (e2 - o2) && (r2 - a2) * (s2 - o2) >= (i2 - a2) * (n2 - o2); } function Go(t4, e2) { - return t4.next.i !== e2.i && t4.prev.i !== e2.i && !function(t5, e3) { + return t4.next.i !== e2.i && t4.prev.i !== e2.i && !(function(t5, e3) { let r2 = t5; do { if (r2.i !== t5.i && r2.next.i !== t5.i && r2.i !== e3.i && r2.next.i !== e3.i && Ho(r2, r2.next, t5, e3)) return true; r2 = r2.next; } while (r2 !== t5); return false; - }(t4, e2) && (Wo(t4, e2) && Wo(e2, t4) && function(t5, e3) { + })(t4, e2) && (Wo(t4, e2) && Wo(e2, t4) && (function(t5, e3) { let r2 = t5, n2 = false; const i2 = (t5.x + e3.x) / 2, s2 = (t5.y + e3.y) / 2; do { r2.y > s2 != r2.next.y > s2 && r2.next.y !== r2.y && i2 < (r2.next.x - r2.x) * (s2 - r2.y) / (r2.next.y - r2.y) + r2.x && (n2 = !n2), r2 = r2.next; } while (r2 !== t5); return n2; - }(t4, e2) && (Ko(t4.prev, t4, e2.prev) || Ko(t4, e2.prev, e2)) || Xo(t4, e2) && Ko(t4.prev, t4, t4.next) > 0 && Ko(e2.prev, e2, e2.next) > 0); + })(t4, e2) && (Ko(t4.prev, t4, e2.prev) || Ko(t4, e2.prev, e2)) || Xo(t4, e2) && Ko(t4.prev, t4, t4.next) > 0 && Ko(e2.prev, e2, e2.next) > 0); } function Ko(t4, e2, r2) { return (e2.y - t4.y) * (r2.x - e2.x) - (e2.x - t4.x) * (r2.y - e2.y); @@ -233968,7 +234102,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class sl { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.layoutVertexArray = new Ks(), this.indexArray = new na(), this.indexArray2 = new ia(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.segments2 = new oa(), this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.layoutVertexArray = new Ks(), this.indexArray = new na(), this.indexArray2 = new ia(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.segments2 = new oa(), this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { this.hasPattern = nl("fill", this.layers, e2); @@ -233979,7 +234113,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const h2 = i2 ? n2.evaluate(c2, {}, r2, e2.availableImages) : void 0, p2 = { id: o2, properties: a2.properties, type: a2.type, sourceLayerIndex: u2, index: l2, geometry: t5 ? c2.geometry : Oa(a2), patterns: {}, sortKey: h2 }; s2.push(p2); } - i2 && s2.sort((t5, e3) => t5.sortKey - e3.sortKey); + i2 && s2.sort(((t5, e3) => t5.sortKey - e3.sortKey)); for (const n3 of s2) { const { geometry: i3, index: s3, sourceLayerIndex: a2 } = n3; if (this.hasPattern) { @@ -234062,12 +234196,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.properties = {}, this.extent = r2, this.type = 0, this._pbf = t4, this._geometry = -1, this._keys = n2, this._values = i2, t4.readFields(gl2, this, e2); } function gl2(t4, e2, r2) { - 1 == t4 ? e2.id = r2.readVarint() : 2 == t4 ? function(t5, e3) { + 1 == t4 ? e2.id = r2.readVarint() : 2 == t4 ? (function(t5, e3) { for (var r3 = t5.readVarint() + t5.pos; t5.pos < r3; ) { var n2 = e3._keys[t5.readVarint()], i2 = e3._values[t5.readVarint()]; e3.properties[n2] = i2; } - }(r2, e2) : 3 == t4 ? e2.type = r2.readVarint() : 4 == t4 && (e2._geometry = r2.pos); + })(r2, e2) : 3 == t4 ? e2.type = r2.readVarint() : 4 == t4 && (e2._geometry = r2.pos); } function xl(t4) { for (var e2, r2, n2 = 0, i2 = 0, s2 = t4.length, a2 = s2 - 1; i2 < s2; a2 = i2++) n2 += ((r2 = t4[a2]).x - (e2 = t4[i2]).x) * (e2.y + r2.y); @@ -234118,7 +234252,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (n2 = 0; n2 < l2.length; n2++) c2(l2[n2]); break; case 3: - for (l2 = function(t5) { + for (l2 = (function(t5) { var e3 = t5.length; if (e3 <= 1) return [t5]; for (var r3, n3, i3 = [], s3 = 0; s3 < e3; s3++) { @@ -234126,7 +234260,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ 0 !== a3 && (void 0 === n3 && (n3 = a3 < 0), n3 === a3 < 0 ? (r3 && i3.push(r3), r3 = [t5[s3]]) : r3.push(t5[s3])); } return r3 && i3.push(r3), i3; - }(l2), n2 = 0; n2 < l2.length; n2++) for (i2 = 0; i2 < l2[n2].length; i2++) c2(l2[n2][i2]); + })(l2), n2 = 0; n2 < l2.length; n2++) for (i2 = 0; i2 < l2[n2].length; i2++) c2(l2[n2][i2]); } 1 === l2.length ? l2 = l2[0] : u2 = "Multi" + u2; var p2 = { type: "Feature", geometry: { type: u2, coordinates: l2 }, properties: this.properties }; @@ -234137,13 +234271,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = t4, this._keys = [], this._values = [], this._features = [], t4.readFields(_l, this, e2), this.length = this._features.length; } function _l(t4, e2, r2) { - 15 === t4 ? e2.version = r2.readVarint() : 1 === t4 ? e2.name = r2.readString() : 5 === t4 ? e2.extent = r2.readVarint() : 2 === t4 ? e2._features.push(r2.pos) : 3 === t4 ? e2._keys.push(r2.readString()) : 4 === t4 && e2._values.push(function(t5) { + 15 === t4 ? e2.version = r2.readVarint() : 1 === t4 ? e2.name = r2.readString() : 5 === t4 ? e2.extent = r2.readVarint() : 2 === t4 ? e2._features.push(r2.pos) : 3 === t4 ? e2._keys.push(r2.readString()) : 4 === t4 && e2._values.push((function(t5) { for (var e3 = null, r3 = t5.readVarint() + t5.pos; t5.pos < r3; ) { var n2 = t5.readVarint() >> 3; e3 = 1 === n2 ? t5.readString() : 2 === n2 ? t5.readFloat() : 3 === n2 ? t5.readDouble() : 4 === n2 ? t5.readVarint64() : 5 === n2 ? t5.readVarint() : 6 === n2 ? t5.readSVarint() : 7 === n2 ? t5.readBoolean() : null; } return e3; - }(r2)); + })(r2)); } wl.prototype.feature = function(t4) { if (t4 < 0 || t4 >= this._features.length) throw new Error("feature index out of bounds"); @@ -234167,7 +234301,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class zl { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Xs(), this.centroidVertexArray = new Zs(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Xs(), this.centroidVertexArray = new Zs(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { this.features = [], this.hasPattern = nl("fill-extrusion", this.layers, e2); @@ -234247,7 +234381,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4.x === e2.x && (t4.x < 0 || t4.x > $a) || t4.y === e2.y && (t4.y < 0 || t4.y > $a); } function Cl(t4) { - return t4.every((t5) => t5.x < 0) || t4.every((t5) => t5.x > $a) || t4.every((t5) => t5.y < 0) || t4.every((t5) => t5.y > $a); + return t4.every(((t5) => t5.x < 0)) || t4.every(((t5) => t5.x > $a)) || t4.every(((t5) => t5.y < 0)) || t4.every(((t5) => t5.y > $a)); } let Bl; wi("FillExtrusionBucket", zl, { omit: ["layers", "features"] }); @@ -234268,14 +234402,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return true; } queryIntersectsFeature(t4, e2, r2, n2, i2, a2, o2, l2) { - const u2 = ro(t4, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), a2.angle, o2), c2 = this.paint.get("fill-extrusion-height").evaluate(e2, r2), h2 = this.paint.get("fill-extrusion-base").evaluate(e2, r2), p2 = function(t5, e3, r3, n3) { + const u2 = ro(t4, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), a2.angle, o2), c2 = this.paint.get("fill-extrusion-height").evaluate(e2, r2), h2 = this.paint.get("fill-extrusion-base").evaluate(e2, r2), p2 = (function(t5, e3, r3, n3) { const i3 = []; for (const r4 of t5) { const t6 = [r4.x, r4.y, 0, 1]; po(t6, t6, e3), i3.push(new s(t6[0] / t6[3], t6[1] / t6[3])); } return i3; - }(u2, l2), f2 = function(t5, e3, r3, n3) { + })(u2, l2), f2 = (function(t5, e3, r3, n3) { const i3 = [], a3 = [], o3 = n3[8] * e3, l3 = n3[9] * e3, u3 = n3[10] * e3, c3 = n3[11] * e3, h3 = n3[8] * r3, p3 = n3[9] * r3, f3 = n3[10] * r3, d2 = n3[11] * r3; for (const e4 of t5) { const t6 = [], r4 = []; @@ -234288,8 +234422,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i3.push(t6), a3.push(r4); } return [i3, a3]; - }(n2, h2, c2, l2); - return function(t5, e3, r3) { + })(n2, h2, c2, l2); + return (function(t5, e3, r3) { let n3 = 1 / 0; Za(r3, e3) && (n3 = Tl(r3, e3[0])); for (let i3 = 0; i3 < e3.length; i3++) { @@ -234300,7 +234434,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return n3 !== 1 / 0 && n3; - }(f2[0], f2[1], p2); + })(f2[0], f2[1], p2); } } function Fl(t4, e2) { @@ -234327,9 +234461,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const $l = ls([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: Ll } = $l, Dl = ls([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: Ol } = Dl, jl = fl.VectorTileFeature.types, Rl = Math.cos(Math.PI / 180 * 37.5), Ul = Math.pow(2, 14) / 0.5; class ql { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((t5) => { + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach(((t5) => { this.gradients[t5.id] = {}; - }), this.layoutVertexArray = new Hs(), this.layoutVertexArray2 = new Ys(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + })), this.layoutVertexArray = new Hs(), this.layoutVertexArray2 = new Ys(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { this.hasPattern = nl("line", this.layers, e2); @@ -234340,7 +234474,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const c2 = i2 ? n2.evaluate(u2, {}, r2) : void 0, h2 = { id: a2, properties: e3.properties, type: e3.type, sourceLayerIndex: l2, index: o2, geometry: t5 ? u2.geometry : Oa(e3), patterns: {}, sortKey: c2 }; s2.push(h2); } - i2 && s2.sort((t5, e3) => t5.sortKey - e3.sortKey); + i2 && s2.sort(((t5, e3) => t5.sortKey - e3.sortKey)); for (const n3 of s2) { const { geometry: i3, index: s3, sourceLayerIndex: a2 } = n3; if (this.hasPattern) { @@ -234485,9 +234619,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ _handleSpecialPaintPropertyUpdate(t4) { if ("line-gradient" === t4) { const t5 = this.gradientExpression(); - this.stepInterpolant = !!function(t6) { + this.stepInterpolant = !!(function(t6) { return void 0 !== t6._styleExpression; - }(t5) && t5._styleExpression.expression instanceof Ae, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER; + })(t5) && t5._styleExpression.expression instanceof Ae, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER; } } gradientExpression() { @@ -234505,7 +234639,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } queryIntersectsFeature(t4, e2, r2, n2, i2, a2, o2) { const l2 = ro(t4, this.paint.get("line-translate"), this.paint.get("line-translate-anchor"), a2.angle, o2), u2 = o2 / 2 * Yl(this.paint.get("line-width").evaluate(e2, r2), this.paint.get("line-gap-width").evaluate(e2, r2)), c2 = this.paint.get("line-offset").evaluate(e2, r2); - return c2 && (n2 = function(t5, e3) { + return c2 && (n2 = (function(t5, e3) { const r3 = []; for (let n3 = 0; n3 < t5.length; n3++) { const i3 = t5[n3], a3 = []; @@ -234516,7 +234650,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r3.push(a3); } return r3; - }(n2, c2 * o2)), function(t5, e3, r3) { + })(n2, c2 * o2)), (function(t5, e3, r3) { for (let n3 = 0; n3 < e3.length; n3++) { const i3 = e3[n3]; if (t5.length >= 3) { @@ -234525,7 +234659,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (Ga(t5, i3, r3)) return true; } return false; - }(l2, n2, u2); + })(l2, n2, u2); } isTileClipped() { return true; @@ -234540,12 +234674,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ ls([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]); const tu = ls([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), eu = ls([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4); function ru(t4, e2, r2) { - return t4.sections.forEach((t5) => { - t5.text = function(t6, e3, r3) { + return t4.sections.forEach(((t5) => { + t5.text = (function(t6, e3, r3) { const n2 = e3.layout.get("text-transform").evaluate(r3, {}); return "uppercase" === n2 ? t6 = t6.toLocaleUpperCase() : "lowercase" === n2 && (t6 = t6.toLocaleLowerCase()), Ri.applyArabicShaping && (t6 = Ri.applyArabicShaping(t6)), t6; - }(t5.text, e2, r2); - }), t4; + })(t5.text, e2, r2); + })), t4; } ls([{ name: "triangle", components: 3, type: "Uint16" }]), ls([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }]), ls([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", name: "textBoxScale" }, { type: "Float32", name: "collisionCircleDiameter" }, { type: "Uint16", name: "textAnchorOffsetStartIndex" }, { type: "Uint16", name: "textAnchorOffsetEndIndex" }]), ls([{ type: "Float32", name: "offsetX" }]), ls([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]), ls([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]); const nu = { "!": "\uFE15", "#": "\uFF03", $: "\uFF04", "%": "\uFF05", "&": "\uFF06", "(": "\uFE35", ")": "\uFE36", "*": "\uFF0A", "+": "\uFF0B", ",": "\uFE10", "-": "\uFE32", ".": "\u30FB", "/": "\uFF0F", ":": "\uFE13", ";": "\uFE14", "<": "\uFE3F", "=": "\uFF1D", ">": "\uFE40", "?": "\uFE16", "@": "\uFF20", "[": "\uFE47", "\\": "\uFF3C", "]": "\uFE48", "^": "\uFF3E", _: "\uFE33", "`": "\uFF40", "{": "\uFE37", "|": "\u2015", "}": "\uFE38", "~": "\uFF5E", "\xA2": "\uFFE0", "\xA3": "\uFFE1", "\xA5": "\uFFE5", "\xA6": "\uFFE4", "\xAC": "\uFFE2", "\xAF": "\uFFE3", "\u2013": "\uFE32", "\u2014": "\uFE31", "\u2018": "\uFE43", "\u2019": "\uFE44", "\u201C": "\uFE41", "\u201D": "\uFE42", "\u2026": "\uFE19", "\u2027": "\u30FB", "\u20A9": "\uFFE6", "\u3001": "\uFE11", "\u3002": "\uFE12", "\u3008": "\uFE3F", "\u3009": "\uFE40", "\u300A": "\uFE3D", "\u300B": "\uFE3E", "\u300C": "\uFE41", "\u300D": "\uFE42", "\u300E": "\uFE43", "\u300F": "\uFE44", "\u3010": "\uFE3B", "\u3011": "\uFE3C", "\u3014": "\uFE39", "\u3015": "\uFE3A", "\u3016": "\uFE17", "\u3017": "\uFE18", "\uFF01": "\uFE15", "\uFF08": "\uFE35", "\uFF09": "\uFE36", "\uFF0C": "\uFE10", "\uFF0D": "\uFE32", "\uFF0E": "\u30FB", "\uFF1A": "\uFE13", "\uFF1B": "\uFE14", "\uFF1C": "\uFE3F", "\uFF1E": "\uFE40", "\uFF1F": "\uFE16", "\uFF3B": "\uFE47", "\uFF3D": "\uFE48", "\uFF3F": "\uFE33", "\uFF5B": "\uFE37", "\uFF5C": "\u2015", "\uFF5D": "\uFE38", "\uFF5F": "\uFE35", "\uFF60": "\uFE36", "\uFF61": "\uFE12", "\uFF62": "\uFE41", "\uFF63": "\uFE42" }; @@ -234647,7 +234781,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.pos += 8, t4; }, readVarint: function(t4) { var e2, r2, n2 = this.buf; - return e2 = 127 & (r2 = n2[this.pos++]), r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 7, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 14, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 21, r2 < 128 ? e2 : function(t5, e3, r3) { + return e2 = 127 & (r2 = n2[this.pos++]), r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 7, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 14, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 21, r2 < 128 ? e2 : (function(t5, e3, r3) { var n3, i2, s2 = r3.buf; if (n3 = (112 & (i2 = s2[r3.pos++])) >> 4, i2 < 128) return fu(t5, n3, e3); if (n3 |= (127 & (i2 = s2[r3.pos++])) << 3, i2 < 128) return fu(t5, n3, e3); @@ -234656,7 +234790,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (n3 |= (127 & (i2 = s2[r3.pos++])) << 24, i2 < 128) return fu(t5, n3, e3); if (n3 |= (1 & (i2 = s2[r3.pos++])) << 31, i2 < 128) return fu(t5, n3, e3); throw new Error("Expected varint not more than 10 bytes"); - }(e2 |= (15 & (r2 = n2[this.pos])) << 28, t4, this)))); + })(e2 |= (15 & (r2 = n2[this.pos])) << 28, t4, this)))); }, readVarint64: function() { return this.readVarint(true); }, readSVarint: function() { @@ -234666,16 +234800,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return Boolean(this.readVarint()); }, readString: function() { var t4 = this.readVarint() + this.pos, e2 = this.pos; - return this.pos = t4, t4 - e2 >= 12 && hu ? function(t5, e3, r2) { + return this.pos = t4, t4 - e2 >= 12 && hu ? (function(t5, e3, r2) { return hu.decode(t5.subarray(e3, r2)); - }(this.buf, e2, t4) : function(t5, e3, r2) { + })(this.buf, e2, t4) : (function(t5, e3, r2) { for (var n2 = "", i2 = e3; i2 < r2; ) { var s2, a2, o2, l2 = t5[i2], u2 = null, c2 = l2 > 239 ? 4 : l2 > 223 ? 3 : l2 > 191 ? 2 : 1; if (i2 + c2 > r2) break; 1 === c2 ? l2 < 128 && (u2 = l2) : 2 === c2 ? 128 == (192 & (s2 = t5[i2 + 1])) && (u2 = (31 & l2) << 6 | 63 & s2) <= 127 && (u2 = null) : 3 === c2 ? (a2 = t5[i2 + 2], 128 == (192 & (s2 = t5[i2 + 1])) && 128 == (192 & a2) && ((u2 = (15 & l2) << 12 | (63 & s2) << 6 | 63 & a2) <= 2047 || u2 >= 55296 && u2 <= 57343) && (u2 = null)) : 4 === c2 && (a2 = t5[i2 + 2], o2 = t5[i2 + 3], 128 == (192 & (s2 = t5[i2 + 1])) && 128 == (192 & a2) && 128 == (192 & o2) && ((u2 = (15 & l2) << 18 | (63 & s2) << 12 | (63 & a2) << 6 | 63 & o2) <= 65535 || u2 >= 1114112) && (u2 = null)), null === u2 ? (u2 = 65533, c2 = 1) : u2 > 65535 && (u2 -= 65536, n2 += String.fromCharCode(u2 >>> 10 & 1023 | 55296), u2 = 56320 | 1023 & u2), n2 += String.fromCharCode(u2), i2 += c2; } return n2; - }(this.buf, e2, t4); + })(this.buf, e2, t4); }, readBytes: function() { var t4 = this.readVarint() + this.pos, e2 = this.buf.subarray(this.pos, t4); return this.pos = t4, e2; @@ -234752,16 +234886,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }, writeSFixed64: function(t4) { this.realloc(8), ku(this.buf, -1 & t4, this.pos), ku(this.buf, Math.floor(t4 * cu), this.pos + 4), this.pos += 8; }, writeVarint: function(t4) { - (t4 = +t4 || 0) > 268435455 || t4 < 0 ? function(t5, e2) { + (t4 = +t4 || 0) > 268435455 || t4 < 0 ? (function(t5, e2) { var r2, n2; if (t5 >= 0 ? (r2 = t5 % 4294967296 | 0, n2 = t5 / 4294967296 | 0) : (n2 = ~(-t5 / 4294967296), 4294967295 ^ (r2 = ~(-t5 % 4294967296)) ? r2 = r2 + 1 | 0 : (r2 = 0, n2 = n2 + 1 | 0)), t5 >= 18446744073709552e3 || t5 < -18446744073709552e3) throw new Error("Given varint doesn't fit into 10 bytes"); - e2.realloc(10), function(t6, e3, r3) { + e2.realloc(10), (function(t6, e3, r3) { r3.buf[r3.pos++] = 127 & t6 | 128, t6 >>>= 7, r3.buf[r3.pos++] = 127 & t6 | 128, t6 >>>= 7, r3.buf[r3.pos++] = 127 & t6 | 128, t6 >>>= 7, r3.buf[r3.pos++] = 127 & t6 | 128, r3.buf[r3.pos] = 127 & (t6 >>>= 7); - }(r2, 0, e2), function(t6, e3) { + })(r2, 0, e2), (function(t6, e3) { var r3 = (7 & t6) << 4; e3.buf[e3.pos++] |= r3 | ((t6 >>>= 3) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6))))); - }(n2, e2); - }(t4, this) : (this.realloc(4), this.buf[this.pos++] = 127 & t4 | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = t4 >>> 7 & 127)))); + })(n2, e2); + })(t4, this) : (this.realloc(4), this.buf[this.pos++] = 127 & t4 | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = t4 >>> 7 & 127)))); }, writeSVarint: function(t4) { this.writeVarint(t4 < 0 ? 2 * -t4 - 1 : 2 * t4); }, writeBoolean: function(t4) { @@ -234769,7 +234903,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }, writeString: function(t4) { t4 = String(t4), this.realloc(4 * t4.length), this.pos++; var e2 = this.pos; - this.pos = function(t5, e3, r3) { + this.pos = (function(t5, e3, r3) { for (var n2, i2, s2 = 0; s2 < e3.length; s2++) { if ((n2 = e3.charCodeAt(s2)) > 55295 && n2 < 57344) { if (!i2) { @@ -234785,7 +234919,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ n2 < 128 ? t5[r3++] = n2 : (n2 < 2048 ? t5[r3++] = n2 >> 6 | 192 : (n2 < 65536 ? t5[r3++] = n2 >> 12 | 224 : (t5[r3++] = n2 >> 18 | 240, t5[r3++] = n2 >> 12 & 63 | 128), t5[r3++] = n2 >> 6 & 63 | 128), t5[r3++] = 63 & n2 | 128); } return r3; - }(this.buf, t4, this.pos); + })(this.buf, t4, this.pos); var r2 = this.pos - e2; r2 >= 128 && du(e2, r2, this), this.pos = e2 - 1, this.writeVarint(r2), this.pos += r2; }, writeFloat: function(t4) { @@ -234863,7 +234997,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ function Eu(t4) { let e2 = 0, r2 = 0; for (const n3 of t4) e2 += n3.w * n3.h, r2 = Math.max(r2, n3.w); - t4.sort((t5, e3) => e3.h - t5.h); + t4.sort(((t5, e3) => e3.h - t5.h)); const n2 = [{ x: 0, y: 0, w: Math.max(Math.ceil(Math.sqrt(e2 / 0.95)), r2), h: 1 / 0 }]; let i2 = 0, s2 = 0; for (const e3 of t4) for (let t5 = n2.length - 1; t5 >= 0; t5--) { @@ -234972,14 +235106,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.text.charCodeAt(t4); } verticalizePunctuation() { - this.text = function(t4) { + this.text = (function(t4) { let e2 = ""; for (let r2 = 0; r2 < t4.length; r2++) { const n2 = t4.charCodeAt(r2 + 1) || null, i2 = t4.charCodeAt(r2 - 1) || null; e2 += n2 && $i(n2) && !nu[t4[r2 + 1]] || i2 && $i(i2) && !nu[t4[r2 - 1]] || !nu[t4[r2]] ? t4[r2] : nu[t4[r2]]; } return e2; - }(this.text); + })(this.text); } trim() { let t4 = 0; @@ -234996,7 +235130,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.text; } getMaxScale() { - return this.sectionIndex.reduce((t4, e2) => Math.max(t4, this.sections[e2].scale), 0); + return this.sectionIndex.reduce(((t4, e2) => Math.max(t4, this.sections[e2].scale)), 0); } addTextSection(t4, e2) { this.text += t4.text, this.sections.push(Ou.forText(t4.scale, t4.fontStack || e2)); @@ -235034,14 +235168,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t5 = new ju(); t5.text = e3[0], t5.sectionIndex = e3[1], t5.sections = m2.sections, g2.push(t5); } - } else g2 = function(t4, e3) { + } else g2 = (function(t4, e3) { const r3 = [], n3 = t4.text; let i3 = 0; for (const n4 of e3) r3.push(t4.substring(i3, n4)), i3 = n4; return i3 < n3.length && r3.push(t4.substring(i3, n3.length)), r3; - }(m2, Yu(m2, c2, a2, r2, i2, d2)); + })(m2, Yu(m2, c2, a2, r2, i2, d2)); const b2 = [], w2 = { positionedLines: b2, text: m2.toString(), top: h2[1], bottom: h2[1], left: h2[0], right: h2[0], writingMode: p2, iconsInText: false, verticalizable: false }; - return function(e3, r3, n3, i3, s3, a3, o3, l3, u3, c3, h3, p3) { + return (function(e3, r3, n3, i3, s3, a3, o3, l3, u3, c3, h3, p3) { let f3 = 0, d3 = Du, y3 = 0, m3 = 0; const g3 = "right" === l3 ? 1 : "left" === l3 ? 0 : 0.5; let x3 = 0; @@ -235091,10 +235225,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ c4 = s4 !== a4 ? -o4 * n4 - Du : (-n4 * l4 + 0.5) * a4; for (const e5 of t4) for (const t5 of e5.positionedGlyphs) t5.x += u4, t5.y += c4; })(e3.positionedLines, g3, w3, _2, y3, m3, a3, b3, s3.length), e3.top += -_2 * b3, e3.bottom = e3.top + b3, e3.left += -w3 * y3, e3.right = e3.left + y3; - }(w2, r2, n2, i2, g2, o2, l2, u2, p2, c2, f2, y2), !function(t4) { + })(w2, r2, n2, i2, g2, o2, l2, u2, p2, c2, f2, y2), !(function(t4) { for (const e3 of t4) if (0 !== e3.positionedGlyphs.length) return false; return true; - }(b2) && w2; + })(b2) && w2; } const Uu = { 9: true, 10: true, 11: true, 12: true, 13: true, 32: true }, qu = { 10: true, 32: true, 38: true, 41: true, 43: true, 45: true, 47: true, 173: true, 183: true, 8203: true, 8208: true, 8211: true, 8231: true }, Nu = { 40: true }; function Zu(t4, e2, r2, n2, i2, s2) { @@ -235128,14 +235262,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function Yu(t4, e2, r2, n2, i2, s2) { if (!t4) return []; - const a2 = [], o2 = function(t5, e3, r3, n3, i3, s3) { + const a2 = [], o2 = (function(t5, e3, r3, n3, i3, s3) { let a3 = 0; for (let r4 = 0; r4 < t5.length(); r4++) { const o3 = t5.getSection(r4); a3 += Zu(t5.getCharCode(r4), o3, n3, i3, e3, s3); } return a3 / Math.max(1, Math.ceil(a3 / r3)); - }(t4, e2, r2, n2, i2, s2), l2 = t4.text.indexOf("\u200B") >= 0; + })(t4, e2, r2, n2, i2, s2), l2 = t4.text.indexOf("\u200B") >= 0; let u2 = 0; for (let r3 = 0; r3 < t4.length(); r3++) { const h2 = t4.getSection(r3), p2 = t4.getCharCode(r3); @@ -235273,14 +235407,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ wi("CollisionBuffers", fc); class dc { constructor(e2) { - this.collisionBoxArray = e2.collisionBoxArray, this.zoom = e2.zoom, this.overscaling = e2.overscaling, this.layers = e2.layers, this.layerIds = this.layers.map((t4) => t4.id), this.index = e2.index, this.pixelRatio = e2.pixelRatio, this.sourceLayerIndex = e2.sourceLayerIndex, this.hasPattern = false, this.hasRTLText = false, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = lo([]), this.placementViewportMatrix = lo([]); + this.collisionBoxArray = e2.collisionBoxArray, this.zoom = e2.zoom, this.overscaling = e2.overscaling, this.layers = e2.layers, this.layerIds = this.layers.map(((t4) => t4.id)), this.index = e2.index, this.pixelRatio = e2.pixelRatio, this.sourceLayerIndex = e2.sourceLayerIndex, this.hasPattern = false, this.hasRTLText = false, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = lo([]), this.placementViewportMatrix = lo([]); const r2 = this.layers[0]._unevaluatedLayout._values; this.textSizeData = sc(this.zoom, r2["text-size"]), this.iconSizeData = sc(this.zoom, r2["icon-size"]); const n2 = this.layers[0].layout, i2 = n2.get("symbol-sort-key"), s2 = n2.get("symbol-z-order"); - this.canOverlap = "never" !== ac(n2, "text-overlap", "text-allow-overlap") || "never" !== ac(n2, "icon-overlap", "icon-allow-overlap") || n2.get("text-ignore-placement") || n2.get("icon-ignore-placement"), this.sortFeaturesByKey = "viewport-y" !== s2 && !i2.isConstant(), this.sortFeaturesByY = ("viewport-y" === s2 || "auto" === s2 && !this.sortFeaturesByKey) && this.canOverlap, "point" === n2.get("symbol-placement") && (this.writingModes = n2.get("text-writing-mode").map((e3) => t.ah[e3])), this.stateDependentLayerIds = this.layers.filter((t4) => t4.isStateDependent()).map((t4) => t4.id), this.sourceID = e2.sourceID; + this.canOverlap = "never" !== ac(n2, "text-overlap", "text-allow-overlap") || "never" !== ac(n2, "icon-overlap", "icon-allow-overlap") || n2.get("text-ignore-placement") || n2.get("icon-ignore-placement"), this.sortFeaturesByKey = "viewport-y" !== s2 && !i2.isConstant(), this.sortFeaturesByY = ("viewport-y" === s2 || "auto" === s2 && !this.sortFeaturesByKey) && this.canOverlap, "point" === n2.get("symbol-placement") && (this.writingModes = n2.get("text-writing-mode").map(((e3) => t.ah[e3]))), this.stateDependentLayerIds = this.layers.filter(((t4) => t4.isStateDependent())).map(((t4) => t4.id)), this.sourceID = e2.sourceID; } createArrays() { - this.text = new pc(new Ea(this.layers, this.zoom, (t4) => /^text/.test(t4))), this.icon = new pc(new Ea(this.layers, this.zoom, (t4) => /^icon/.test(t4))), this.glyphOffsetArray = new Os(), this.lineVertexArray = new js(), this.symbolInstances = new Ds(), this.textAnchorOffsets = new Us(); + this.text = new pc(new Ea(this.layers, this.zoom, ((t4) => /^text/.test(t4)))), this.icon = new pc(new Ea(this.layers, this.zoom, ((t4) => /^icon/.test(t4)))), this.glyphOffsetArray = new Os(), this.lineVertexArray = new js(), this.symbolInstances = new Ds(), this.textAnchorOffsets = new Us(); } calculateGlyphDependencies(t4, e2, r2, n2, i2) { for (let s2 = 0; s2 < t4.length; s2++) if (e2[t4.charCodeAt(s2)] = true, (r2 || n2) && i2) { @@ -235316,7 +235450,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } } - "line" === s2.get("symbol-placement") && (this.features = function(t4) { + "line" === s2.get("symbol-placement") && (this.features = (function(t4) { const e3 = {}, r3 = {}, n3 = []; let i3 = 0; function s3(e4) { @@ -235346,8 +235480,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ delete e3[f3], delete r3[d3], r3[l3(p3, n3[i4].geometry, true)] = i4, n3[t5].geometry = null; } else f3 in r3 ? a3(f3, d3, h3) : d3 in e3 ? o3(f3, d3, h3) : (s3(u3), e3[f3] = i3 - 1, r3[d3] = i3 - 1); } - return n3.filter((t5) => t5.geometry); - }(this.features)), this.sortFeaturesByKey && this.features.sort((t4, e3) => t4.sortKey - e3.sortKey); + return n3.filter(((t5) => t5.geometry)); + })(this.features)), this.sortFeaturesByKey && this.features.sort(((t4, e3) => t4.sortKey - e3.sortKey)); } update(t4, e2, r2) { this.stateDependentLayers.length && (this.text.programConfigurations.updatePaintArrays(t4, e2, this.layers, r2), this.icon.programConfigurations.updatePaintArrays(t4, e2, this.layers, r2)); @@ -235469,7 +235603,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = this.symbolInstances.get(t5); n2.push(0 | Math.round(e2 * a2.anchorX + r2 * a2.anchorY)), i2.push(a2.featureIndex); } - return s2.sort((t5, e3) => n2[t5] - n2[e3] || i2[e3] - i2[t5]), s2; + return s2.sort(((t5, e3) => n2[t5] - n2[e3] || i2[e3] - i2[t5])), s2; } addToSortKeyRanges(t4, e2) { const r2 = this.sortKeyRanges[this.sortKeyRanges.length - 1]; @@ -235480,9 +235614,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.symbolInstanceIndexes = this.getSortedSymbolIndexes(t4), this.sortedAngle = t4, this.text.indexArray.clear(), this.icon.indexArray.clear(), this.featureSortOrder = []; for (const t5 of this.symbolInstanceIndexes) { const e2 = this.symbolInstances.get(t5); - this.featureSortOrder.push(e2.featureIndex), [e2.rightJustifiedTextSymbolIndex, e2.centerJustifiedTextSymbolIndex, e2.leftJustifiedTextSymbolIndex].forEach((t6, e3, r2) => { + this.featureSortOrder.push(e2.featureIndex), [e2.rightJustifiedTextSymbolIndex, e2.centerJustifiedTextSymbolIndex, e2.leftJustifiedTextSymbolIndex].forEach(((t6, e3, r2) => { t6 >= 0 && r2.indexOf(t6) === e3 && this.addIndicesForPlacedSymbol(this.text, t6); - }), e2.verticalPlacedTextSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.text, e2.verticalPlacedTextSymbolIndex), e2.placedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.placedIconSymbolIndex), e2.verticalPlacedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.verticalPlacedIconSymbolIndex); + })), e2.verticalPlacedTextSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.text, e2.verticalPlacedTextSymbolIndex), e2.placedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.placedIconSymbolIndex), e2.verticalPlacedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.verticalPlacedIconSymbolIndex); } this.text.indexBuffer && this.text.indexBuffer.updateData(this.text.indexArray), this.icon.indexBuffer && this.icon.indexBuffer.updateData(this.icon.indexArray); } @@ -235535,9 +235669,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } getValueAndResolveTokens(t4, e2, r2, n2) { const i2 = this.layout.get(t4).evaluate(e2, {}, r2, n2), s2 = this._unevaluatedLayout._values[t4]; - return s2.isDataDriven() || vn(s2.value) || !i2 ? i2 : function(t5, e3) { - return e3.replace(/{([^{}]+)}/g, (e4, r3) => t5 && r3 in t5 ? String(t5[r3]) : ""); - }(e2.properties, i2); + return s2.isDataDriven() || vn(s2.value) || !i2 ? i2 : (function(t5, e3) { + return e3.replace(/{([^{}]+)}/g, ((e4, r3) => t5 && r3 in t5 ? String(t5[r3]) : "")); + })(e2.properties, i2); } createBucket(t4) { return new dc(t4); @@ -235625,9 +235759,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }); } trigger() { - this._triggered || (this._triggered = true, this._channel ? this._channel.port1.postMessage(true) : setTimeout(() => { + this._triggered || (this._triggered = true, this._channel ? this._channel.port1.postMessage(true) : setTimeout((() => { this._triggered = false, this._methodToThrottle(); - }, 0)); + }), 0)); } remove() { delete this._channel, this._methodToThrottle = () => { @@ -235701,9 +235835,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Dc { constructor(t4, e2, r2) { - if (!function(t5, e3, r3) { + if (!(function(t5, e3, r3) { return !(t5 < 0 || t5 > 25 || r3 < 0 || r3 >= Math.pow(2, t5) || e3 < 0 || e3 >= Math.pow(2, t5)); - }(t4, e2, r2)) throw new Error(`x=${e2}, y=${r2}, z=${t4} outside of bounds. 0<=x<${Math.pow(2, t4)}, 0<=y<${Math.pow(2, t4)} 0<=z<=25 `); + })(t4, e2, r2)) throw new Error(`x=${e2}, y=${r2}, z=${t4} outside of bounds. 0<=x<${Math.pow(2, t4)}, 0<=y<${Math.pow(2, t4)} 0<=z<=25 `); this.z = t4, this.x = e2, this.y = r2, this.key = Rc(0, t4, t4, e2, r2); } equals(t4) { @@ -235712,11 +235846,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ url(t4, e2, r2) { const n2 = (s2 = this.y, a2 = this.z, o2 = Lc(256 * (i2 = this.x), 256 * (s2 = Math.pow(2, a2) - s2 - 1), a2), l2 = Lc(256 * (i2 + 1), 256 * (s2 + 1), a2), o2[0] + "," + o2[1] + "," + l2[0] + "," + l2[1]); var i2, s2, a2, o2, l2; - const u2 = function(t5, e3, r3) { + const u2 = (function(t5, e3, r3) { let n3, i3 = ""; for (let s3 = t5; s3 > 0; s3--) n3 = 1 << s3 - 1, i3 += (e3 & n3 ? 1 : 0) + (r3 & n3 ? 2 : 0); return i3; - }(this.z, this.x, this.y); + })(this.z, this.x, this.y); return t4[(this.x + this.y) % t4.length].replace(/{prefix}/g, (this.x % 16).toString(16) + (this.y % 16).toString(16)).replace(/{z}/g, String(this.z)).replace(/{x}/g, String(this.x)).replace(/{y}/g, String("tms" === r2 ? Math.pow(2, this.z) - this.y - 1 : this.y)).replace(/{ratio}/g, e2 > 1 ? "@2x" : "").replace(/{quadkey}/g, u2).replace(/{bbox-epsg-3857}/g, n2); } isChildOf(t4) { @@ -235911,7 +236045,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } query(t4, e2, r2, n2) { this.loadVTLayers(); - const i2 = t4.params || {}, a2 = $a / t4.tileSize / t4.scale, o2 = zn(i2.filter), l2 = t4.queryGeometry, u2 = t4.queryPadding * a2, c2 = Kc(l2), h2 = this.grid.query(c2.minX - u2, c2.minY - u2, c2.maxX + u2, c2.maxY + u2), p2 = Kc(t4.cameraQueryGeometry), f2 = this.grid3D.query(p2.minX - u2, p2.minY - u2, p2.maxX + u2, p2.maxY + u2, (e3, r3, n3, i3) => function(t5, e4, r4, n4, i4) { + const i2 = t4.params || {}, a2 = $a / t4.tileSize / t4.scale, o2 = zn(i2.filter), l2 = t4.queryGeometry, u2 = t4.queryPadding * a2, c2 = Kc(l2), h2 = this.grid.query(c2.minX - u2, c2.minY - u2, c2.maxX + u2, c2.maxY + u2), p2 = Kc(t4.cameraQueryGeometry), f2 = this.grid3D.query(p2.minX - u2, p2.minY - u2, p2.maxX + u2, p2.maxY + u2, ((e3, r3, n3, i3) => (function(t5, e4, r4, n4, i4) { for (const s2 of t5) if (e4 <= s2.x && r4 <= s2.y && n4 >= s2.x && i4 >= s2.y) return true; const a3 = [new s(e4, r4), new s(e4, i4), new s(n4, i4), new s(n4, r4)]; if (t5.length > 2) { @@ -235919,7 +236053,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } for (let e5 = 0; e5 < t5.length - 1; e5++) if (Qa(t5[e5], t5[e5 + 1], a3)) return true; return false; - }(t4.cameraQueryGeometry, e3 - u2, r3 - u2, n3 + u2, i3 + u2)); + })(t4.cameraQueryGeometry, e3 - u2, r3 - u2, n3 + u2, i3 + u2))); for (const t5 of f2) h2.push(t5); h2.sort(Xc); const d2 = {}; @@ -235930,16 +236064,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ y2 = u3; const c3 = this.featureIndexArray.get(u3); let p3 = null; - this.loadMatchingFeature(d2, c3.bucketIndex, c3.sourceLayerIndex, c3.featureIndex, o2, i2.layers, i2.availableImages, e2, r2, n2, (e3, r3, n3) => (p3 || (p3 = Oa(e3)), r3.queryIntersectsFeature(l2, e3, n3, p3, this.z, t4.transform, a2, t4.pixelPosMatrix))); + this.loadMatchingFeature(d2, c3.bucketIndex, c3.sourceLayerIndex, c3.featureIndex, o2, i2.layers, i2.availableImages, e2, r2, n2, ((e3, r3, n3) => (p3 || (p3 = Oa(e3)), r3.queryIntersectsFeature(l2, e3, n3, p3, this.z, t4.transform, a2, t4.pixelPosMatrix)))); } return d2; } loadMatchingFeature(t4, e2, r2, n2, i2, s2, a2, o2, l2, u2, c2) { const h2 = this.bucketLayerIDs[e2]; - if (s2 && !function(t5, e3) { + if (s2 && !(function(t5, e3) { for (let r3 = 0; r3 < t5.length; r3++) if (e3.indexOf(t5[r3]) >= 0) return true; return false; - }(s2, h2)) return; + })(s2, h2)) return; const p2 = this.sourceLayerCoder.decode(r2), f2 = this.vtLayers[p2].feature(n2); if (i2.needGeometry) { const t5 = ja(f2, true); @@ -235980,10 +236114,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } function Gc(t4, e2, r2, n2, i2) { - return v(t4, (t5, s2) => { + return v(t4, ((t5, s2) => { const a2 = e2 instanceof Yi ? e2.get(s2) : null; return a2 && a2.evaluate ? a2.evaluate(r2, n2, i2) : a2; - }); + })); } function Kc(t4) { let e2 = 1 / 0, r2 = 1 / 0, n2 = -1 / 0, i2 = -1 / 0; @@ -236150,7 +236284,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } class hh { - constructor(t4 = [], e2 = (t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0) { + constructor(t4 = [], e2 = ((t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0)) { if (this.data = t4, this.length = this.data.length, this.compare = e2, this.length > 0) for (let t5 = (this.length >> 1) - 1; t5 >= 0; t5--) this._down(t5); } push(t4) { @@ -236196,7 +236330,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const h2 = new hh([], fh); if (0 === u2) return new s(n2, i2); for (let e3 = n2; e3 < a2; e3 += u2) for (let r3 = i2; r3 < o2; r3 += u2) h2.push(new dh(e3 + c2, r3 + c2, c2, t4)); - let p2 = function(t5) { + let p2 = (function(t5) { let e3 = 0, r3 = 0, n3 = 0; const i3 = t5[0]; for (let t6 = 0, s2 = i3.length, a3 = s2 - 1; t6 < s2; a3 = t6++) { @@ -236204,7 +236338,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r3 += (s3.x + o3.x) * l3, n3 += (s3.y + o3.y) * l3, e3 += 3 * l3; } return new dh(r3 / e3, n3 / e3, 0, t5); - }(t4), f2 = h2.length; + })(t4), f2 = h2.length; for (; h2.length; ) { const n3 = h2.pop(); (n3.d > p2.d || !p2.d) && (p2 = n3, r2 && console.log("found best %d after %d probes", Math.round(1e4 * n3.d) / 1e4, f2)), n3.max - p2.d <= e2 || (c2 = n3.h / 2, h2.push(new dh(n3.p.x - c2, n3.p.y - c2, c2, t4)), h2.push(new dh(n3.p.x + c2, n3.p.y - c2, c2, t4)), h2.push(new dh(n3.p.x - c2, n3.p.y + c2, c2, t4)), h2.push(new dh(n3.p.x + c2, n3.p.y + c2, c2, t4)), f2 += 4); @@ -236215,7 +236349,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return e2.max - t4.max; } function dh(t4, e2, r2, n2) { - this.p = new s(t4, e2), this.h = r2, this.d = function(t5, e3) { + this.p = new s(t4, e2), this.h = r2, this.d = (function(t5, e3) { let r3 = false, n3 = 1 / 0; for (let i2 = 0; i2 < e3.length; i2++) { const s2 = e3[i2]; @@ -236225,13 +236359,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return (r3 ? 1 : -1) * Math.sqrt(n3); - }(this.p, n2), this.max = this.d + this.h * Math.SQRT2; + })(this.p, n2), this.max = this.d + this.h * Math.SQRT2; } var yh; t.aq = void 0, (yh = t.aq || (t.aq = {}))[yh.center = 1] = "center", yh[yh.left = 2] = "left", yh[yh.right = 3] = "right", yh[yh.top = 4] = "top", yh[yh.bottom = 5] = "bottom", yh[yh["top-left"] = 6] = "top-left", yh[yh["top-right"] = 7] = "top-right", yh[yh["bottom-left"] = 8] = "bottom-left", yh[yh["bottom-right"] = 9] = "bottom-right"; const mh = 7, gh = Number.POSITIVE_INFINITY; function xh(t4, e2) { - return e2[1] !== gh ? function(t5, e3, r2) { + return e2[1] !== gh ? (function(t5, e3, r2) { let n2 = 0, i2 = 0; switch (e3 = Math.abs(e3), r2 = Math.abs(r2), t5) { case "top-right": @@ -236256,7 +236390,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ n2 = e3; } return [n2, i2]; - }(t4, e2[0], e2[1]) : function(t5, e3) { + })(t4, e2[0], e2[1]) : (function(t5, e3) { let r2 = 0, n2 = 0; e3 < 0 && (e3 = 0); const i2 = e3 / Math.SQRT2; @@ -236291,7 +236425,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r2 = -e3; } return [r2, n2]; - }(t4, e2[0]); + })(t4, e2[0]); } function vh(t4, e2, r2) { var n2; @@ -236299,7 +236433,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (s2) { const t5 = s2.values, e3 = []; for (let r3 = 0; r3 < t5.length; r3 += 2) { - const n3 = e3[r3] = t5[r3], i3 = t5[r3 + 1].map((t6) => t6 * iu); + const n3 = e3[r3] = t5[r3], i3 = t5[r3 + 1].map(((t6) => t6 * iu)); n3.startsWith("top") ? i3[1] -= mh : n3.startsWith("bottom") && (i3[1] += mh), e3[r3 + 1] = i3; } return new Qt(e3); @@ -236307,7 +236441,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = i2.get("text-variable-anchor"); if (a2) { let n3; - n3 = void 0 !== t4._unevaluatedLayout.getValue("text-radial-offset") ? [i2.get("text-radial-offset").evaluate(e2, {}, r2) * iu, gh] : i2.get("text-offset").evaluate(e2, {}, r2).map((t5) => t5 * iu); + n3 = void 0 !== t4._unevaluatedLayout.getValue("text-radial-offset") ? [i2.get("text-radial-offset").evaluate(e2, {}, r2) * iu, gh] : i2.get("text-offset").evaluate(e2, {}, r2).map(((t5) => t5 * iu)); const s3 = []; for (const t5 of a2) s3.push(t5, xh(t5, n3)); return new Qt(s3); @@ -236330,14 +236464,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ function wh(e2, r2, n2, i2, s2, a2, o2, l2, u2, c2, h2) { let p2 = a2.textMaxSize.evaluate(r2, {}); void 0 === p2 && (p2 = o2); - const f2 = e2.layers[0].layout, d2 = f2.get("icon-offset").evaluate(r2, {}, h2), y2 = Ah(n2.horizontal), m2 = o2 / 24, g2 = e2.tilePixelRatio * m2, x2 = e2.tilePixelRatio * p2 / 24, v2 = e2.tilePixelRatio * l2, b2 = e2.tilePixelRatio * f2.get("symbol-spacing"), w2 = f2.get("text-padding") * e2.tilePixelRatio, _2 = function(t4, e3, r3, n3 = 1) { + const f2 = e2.layers[0].layout, d2 = f2.get("icon-offset").evaluate(r2, {}, h2), y2 = Ah(n2.horizontal), m2 = o2 / 24, g2 = e2.tilePixelRatio * m2, x2 = e2.tilePixelRatio * p2 / 24, v2 = e2.tilePixelRatio * l2, b2 = e2.tilePixelRatio * f2.get("symbol-spacing"), w2 = f2.get("text-padding") * e2.tilePixelRatio, _2 = (function(t4, e3, r3, n3 = 1) { const i3 = t4.get("icon-padding").evaluate(e3, {}, r3), s3 = i3 && i3.values; return [s3[0] * n3, s3[1] * n3, s3[2] * n3, s3[3] * n3]; - }(f2, r2, h2, e2.tilePixelRatio), S2 = f2.get("text-max-angle") / 180 * Math.PI, k2 = "viewport" !== f2.get("text-rotation-alignment") && "point" !== f2.get("symbol-placement"), M2 = "map" === f2.get("icon-rotation-alignment") && "point" !== f2.get("symbol-placement"), I2 = f2.get("symbol-placement"), z2 = b2 / 2, P2 = f2.get("icon-text-fit"); + })(f2, r2, h2, e2.tilePixelRatio), S2 = f2.get("text-max-angle") / 180 * Math.PI, k2 = "viewport" !== f2.get("text-rotation-alignment") && "point" !== f2.get("symbol-placement"), M2 = "map" === f2.get("icon-rotation-alignment") && "point" !== f2.get("symbol-placement"), I2 = f2.get("symbol-placement"), z2 = b2 / 2, P2 = f2.get("icon-text-fit"); let C3; i2 && "none" !== P2 && (e2.allowVerticalPlacement && n2.vertical && (C3 = ec(i2, n2.vertical, P2, f2.get("icon-text-fit-padding"), d2, m2)), y2 && (i2 = ec(i2, y2, P2, f2.get("icon-text-fit-padding"), d2, m2))); const B3 = (l3, p3) => { - p3.x < 0 || p3.x >= $a || p3.y < 0 || p3.y >= $a || function(e3, r3, n3, i3, s3, a3, o3, l4, u3, c3, h3, p4, f3, d3, y3, m3, g3, x3, v3, b3, w3, _3, S3, k3, M3) { + p3.x < 0 || p3.x >= $a || p3.y < 0 || p3.y >= $a || (function(e3, r3, n3, i3, s3, a3, o3, l4, u3, c3, h3, p4, f3, d3, y3, m3, g3, x3, v3, b3, w3, _3, S3, k3, M3) { const I3 = e3.addToLineVertexArray(r3, n3); let z3, P3, C4, B4, V2 = 0, E3 = 0, F2 = 0, T2 = 0, $2 = -1, L2 = -1; const D3 = {}; @@ -236371,16 +236505,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ H2 = Y2(z3, H2), H2 = Y2(C4, H2), H2 = Y2(P3, H2), H2 = Y2(B4, H2); const J2 = H2 > -1 ? 1 : 0; J2 && (H2 *= M3 / iu), e3.glyphOffsetArray.length >= dc.MAX_GLYPHS && A2("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), void 0 !== w3.sortKey && e3.addToSortKeyRanges(e3.symbolInstances.length, w3.sortKey); - const W2 = vh(l4, w3, k3), [Q2, tt2] = function(e4, r4) { + const W2 = vh(l4, w3, k3), [Q2, tt2] = (function(e4, r4) { const n4 = e4.length, i4 = null == r4 ? void 0 : r4.values; if ((null == i4 ? void 0 : i4.length) > 0) for (let r5 = 0; r5 < i4.length; r5 += 2) { const n5 = i4[r5 + 1]; e4.emplaceBack(t.aq[i4[r5]], n5[0], n5[1]); } return [n4, e4.length]; - }(e3.textAnchorOffsets, W2); + })(e3.textAnchorOffsets, W2); e3.symbolInstances.emplaceBack(r3.x, r3.y, D3.right >= 0 ? D3.right : -1, D3.center >= 0 ? D3.center : -1, D3.left >= 0 ? D3.left : -1, D3.vertical || -1, $2, L2, O2, R2, U2, q2, N2, Z2, G2, K3, X2, c3, F2, T2, V2, E3, J2, 0, f3, H2, Q2, tt2); - }(e2, p3, l3, n2, i2, s2, C3, e2.layers[0], e2.collisionBoxArray, r2.index, r2.sourceLayerIndex, e2.index, g2, [w2, w2, w2, w2], k2, u2, v2, _2, M2, d2, r2, a2, c2, h2, o2); + })(e2, p3, l3, n2, i2, s2, C3, e2.layers[0], e2.collisionBoxArray, r2.index, r2.sourceLayerIndex, e2.index, g2, [w2, w2, w2, w2], k2, u2, v2, _2, M2, d2, r2, a2, c2, h2, o2); }; if ("line" === I2) for (const t4 of Hc(r2.geometry, 0, 0, $a, $a)) { const r3 = rh(t4, b2, S2, n2.vertical || y2, i2, 24, x2, e2.overscaling, $a); @@ -236399,7 +236533,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ else if ("Point" === r2.type) for (const t4 of r2.geometry) for (const e3 of t4) B3([e3], new Yc(e3.x, e3.y, 0)); } function _h(t4, e2, r2, n2, i2, a2, o2, l2, u2, c2, h2, p2, f2, d2, y2) { - const m2 = function(t5, e3, r3, n3, i3, a3, o3, l3) { + const m2 = (function(t5, e3, r3, n3, i3, a3, o3, l3) { const u3 = n3.layout.get("text-rotate").evaluate(a3, {}) * Math.PI / 180, c3 = []; for (const t6 of e3.positionedLines) for (const n4 of t6.positionedGlyphs) { if (!n4.rect) continue; @@ -236426,7 +236560,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ c3.push({ tl: k2, tr: M2, bl: I2, br: z2, tex: a4, writingMode: e3.writingMode, glyphOffset: g3, sectionIndex: n4.sectionIndex, isSDF: p3, pixelOffsetTL: P2, pixelOffsetBR: C3, minFontScaleX: 0, minFontScaleY: 0 }); } return c3; - }(0, r2, l2, i2, a2, o2, n2, t4.allowVerticalPlacement), g2 = t4.textSizeData; + })(0, r2, l2, i2, a2, o2, n2, t4.allowVerticalPlacement), g2 = t4.textSizeData; let x2 = null; "source" === g2.kind ? (x2 = [nc * i2.layout.get("text-size").evaluate(o2, {})], x2[0] > ic && A2(`${t4.layerIds[0]}: Value for "text-size" is >= ${rc}. Reduce your "text-size".`)) : "composite" === g2.kind && (x2 = [nc * d2.compositeTextSizes[0].evaluate(o2, {}, y2), nc * d2.compositeTextSizes[1].evaluate(o2, {}, y2)], (x2[0] > ic || x2[1] > ic) && A2(`${t4.layerIds[0]}: Value for "text-size" is >= ${rc}. Reduce your "text-size".`)), t4.addSymbols(t4.text, m2, x2, l2, a2, o2, c2, e2, u2.lineStartIndex, u2.lineLength, f2, y2); for (const e3 of h2) p2[e3] = t4.text.placedSymbolArray.length - 1; @@ -236549,7 +236683,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (const e2 in t.bg) performance.clearMarks(t.bg[e2]); }, getPerformanceMetrics() { performance.measure($h, t.bg.create, t.bg.load), performance.measure(Lh, t.bg.create, t.bg.fullLoad); - const e2 = performance.getEntriesByName($h)[0].duration, r2 = performance.getEntriesByName(Lh)[0].duration, n2 = Fh.length, i2 = 1 / (Fh.reduce((t4, e3) => t4 + e3, 0) / n2 / 1e3), s2 = Fh.filter((t4) => t4 > Th).reduce((t4, e3) => t4 + (e3 - Th) / Th, 0); + const e2 = performance.getEntriesByName($h)[0].duration, r2 = performance.getEntriesByName(Lh)[0].duration, n2 = Fh.length, i2 = 1 / (Fh.reduce(((t4, e3) => t4 + e3), 0) / n2 / 1e3), s2 = Fh.filter(((t4) => t4 > Th)).reduce(((t4, e3) => t4 + (e3 - Th) / Th), 0); return { loadTime: e2, fullLoadTime: r2, fps: i2, percentDroppedFrames: s2 / (n2 + s2) * 100, totalFrames: n2 }; } }; t.$ = class extends ps { @@ -236561,26 +236695,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return M; }, t.D = Ji, t.E = Z, t.F = class { constructor(t4, e2) { - this.target = t4, this.mapId = e2, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Ic(() => this.process()), this.subscription = function(t5, e3, r2, n2) { + this.target = t4, this.mapId = e2, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Ic((() => this.process())), this.subscription = (function(t5, e3, r2, n2) { return t5.addEventListener(e3, r2, false), { unsubscribe: () => { t5.removeEventListener(e3, r2, false); } }; - }(this.target, "message", (t5) => this.receive(t5)), this.globalScope = k(self) ? t4 : window; + })(this.target, "message", ((t5) => this.receive(t5))), this.globalScope = k(self) ? t4 : window; } registerMessageHandler(t4, e2) { this.messageHandlers[t4] = e2; } sendAsync(t4, e2) { - return new Promise((r2, n2) => { + return new Promise(((r2, n2) => { const i2 = Math.round(1e18 * Math.random()).toString(36).substring(0, 10); - this.resolveRejects[i2] = { resolve: r2, reject: n2 }, e2 && e2.signal.addEventListener("abort", () => { + this.resolveRejects[i2] = { resolve: r2, reject: n2 }, e2 && e2.signal.addEventListener("abort", (() => { delete this.resolveRejects[i2]; const e3 = { id: i2, type: "", origin: location.origin, targetMapId: t4.targetMapId, sourceMapId: this.mapId }; this.target.postMessage(e3); - }, { once: true }); + }), { once: true }); const s2 = [], a2 = Object.assign(Object.assign({}, t4), { id: i2, sourceMapId: this.mapId, origin: location.origin, data: ki(t4.data, s2) }); this.target.postMessage(a2, { transfer: s2 }); - }); + })); } receive(t4) { const e2 = t4.data, r2 = e2.id; @@ -236600,7 +236734,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ delete this.tasks[t4], this.taskQueue.length > 0 && this.invoker.trigger(), e2 && this.processTask(t4, e2); } processTask(t4, r2) { - return e(this, void 0, void 0, function* () { + return e(this, void 0, void 0, (function* () { if ("" === r2.type) { const e3 = this.resolveRejects[t4]; if (delete this.resolveRejects[t4], !e3) return; @@ -236615,7 +236749,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (e3) { this.completeTask(t4, e3); } - }); + })); } completeTask(t4, e2, r2) { const n2 = []; @@ -236647,7 +236781,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return Math.abs(r2 - x2) <= ao * Math.max(1, Math.abs(r2), Math.abs(x2)) && Math.abs(n2 - v2) <= ao * Math.max(1, Math.abs(n2), Math.abs(v2)) && Math.abs(i2 - b2) <= ao * Math.max(1, Math.abs(i2), Math.abs(b2)) && Math.abs(s2 - w2) <= ao * Math.max(1, Math.abs(s2), Math.abs(w2)) && Math.abs(a2 - _2) <= ao * Math.max(1, Math.abs(a2), Math.abs(_2)) && Math.abs(o2 - A3) <= ao * Math.max(1, Math.abs(o2), Math.abs(A3)) && Math.abs(l2 - S2) <= ao * Math.max(1, Math.abs(l2), Math.abs(S2)) && Math.abs(u2 - k2) <= ao * Math.max(1, Math.abs(u2), Math.abs(k2)) && Math.abs(c2 - M2) <= ao * Math.max(1, Math.abs(c2), Math.abs(M2)) && Math.abs(h2 - I2) <= ao * Math.max(1, Math.abs(h2), Math.abs(I2)) && Math.abs(p2 - z2) <= ao * Math.max(1, Math.abs(p2), Math.abs(z2)) && Math.abs(f2 - P2) <= ao * Math.max(1, Math.abs(f2), Math.abs(P2)) && Math.abs(d2 - C3) <= ao * Math.max(1, Math.abs(d2), Math.abs(C3)) && Math.abs(y2 - B3) <= ao * Math.max(1, Math.abs(y2), Math.abs(B3)) && Math.abs(m2 - V2) <= ao * Math.max(1, Math.abs(m2), Math.abs(V2)) && Math.abs(g2 - E3) <= ao * Math.max(1, Math.abs(g2), Math.abs(E3)); }, t.a0 = oa, t.a1 = Dc, t.a2 = it, t.a3 = (t4) => { const e2 = window.document.createElement("video"); - return e2.muted = true, new Promise((r2) => { + return e2.muted = true, new Promise(((r2) => { e2.onloadstart = () => { r2(e2); }; @@ -236655,7 +236789,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t5 = window.document.createElement("source"); j(r3) || (e2.crossOrigin = "Anonymous"), t5.src = r3, e2.appendChild(t5); } - }); + })); }, t.a4 = function() { return x++; }, t.a5 = Fs, t.a6 = dc, t.a7 = zn, t.a8 = ja, t.a9 = Nc, t.aA = function(t4) { @@ -236687,15 +236821,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (!H(t4.version, e2.version)) return [{ command: "setStyle", args: [e2] }]; H(t4.center, e2.center) || r2.push({ command: "setCenter", args: [e2.center] }), H(t4.zoom, e2.zoom) || r2.push({ command: "setZoom", args: [e2.zoom] }), H(t4.bearing, e2.bearing) || r2.push({ command: "setBearing", args: [e2.bearing] }), H(t4.pitch, e2.pitch) || r2.push({ command: "setPitch", args: [e2.pitch] }), H(t4.sprite, e2.sprite) || r2.push({ command: "setSprite", args: [e2.sprite] }), H(t4.glyphs, e2.glyphs) || r2.push({ command: "setGlyphs", args: [e2.glyphs] }), H(t4.transition, e2.transition) || r2.push({ command: "setTransition", args: [e2.transition] }), H(t4.light, e2.light) || r2.push({ command: "setLight", args: [e2.light] }), H(t4.terrain, e2.terrain) || r2.push({ command: "setTerrain", args: [e2.terrain] }), H(t4.sky, e2.sky) || r2.push({ command: "setSky", args: [e2.sky] }), H(t4.projection, e2.projection) || r2.push({ command: "setProjection", args: [e2.projection] }); const n2 = {}, i2 = []; - !function(t5, e3, r3, n3) { + !(function(t5, e3, r3, n3) { let i3; for (i3 in e3 = e3 || {}, t5 = t5 || {}) Object.prototype.hasOwnProperty.call(t5, i3) && (Object.prototype.hasOwnProperty.call(e3, i3) || W(i3, r3, n3)); for (i3 in e3) Object.prototype.hasOwnProperty.call(e3, i3) && (Object.prototype.hasOwnProperty.call(t5, i3) ? H(t5[i3], e3[i3]) || ("geojson" === t5[i3].type && "geojson" === e3[i3].type && tt(t5, e3, i3) ? Y(r3, { command: "setGeoJSONSourceData", args: [i3, e3[i3].data] }) : Q(i3, e3, r3, n3)) : J(i3, e3, r3)); - }(t4.sources, e2.sources, i2, n2); + })(t4.sources, e2.sources, i2, n2); const s2 = []; - t4.layers && t4.layers.forEach((t5) => { + t4.layers && t4.layers.forEach(((t5) => { "source" in t5 && n2[t5.source] ? r2.push({ command: "removeLayer", args: [t5.id] }) : s2.push(t5); - }), r2 = r2.concat(i2), function(t5, e3, r3) { + })), r2 = r2.concat(i2), (function(t5, e3, r3) { e3 = e3 || []; const n3 = (t5 = t5 || []).map(rt), i3 = e3.map(rt), s3 = t5.reduce(nt, {}), a2 = e3.reduce(nt, {}), o2 = n3.slice(), l2 = /* @__PURE__ */ Object.create(null); let u2, c2, h2, p2, f2; @@ -236705,7 +236839,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (f2 in et(c2.layout, h2.layout, r3, u2, null, "setLayoutProperty"), et(c2.paint, h2.paint, r3, u2, null, "setPaintProperty"), H(c2.filter, h2.filter) || Y(r3, { command: "setFilter", args: [u2, h2.filter] }), H(c2.minzoom, h2.minzoom) && H(c2.maxzoom, h2.maxzoom) || Y(r3, { command: "setLayerZoomRange", args: [u2, h2.minzoom, h2.maxzoom] }), c2) Object.prototype.hasOwnProperty.call(c2, f2) && "layout" !== f2 && "paint" !== f2 && "filter" !== f2 && "metadata" !== f2 && "minzoom" !== f2 && "maxzoom" !== f2 && (0 === f2.indexOf("paint.") ? et(c2[f2], h2[f2], r3, u2, f2.slice(6), "setPaintProperty") : H(c2[f2], h2[f2]) || Y(r3, { command: "setLayerProperty", args: [u2, f2, h2[f2]] })); for (f2 in h2) Object.prototype.hasOwnProperty.call(h2, f2) && !Object.prototype.hasOwnProperty.call(c2, f2) && "layout" !== f2 && "paint" !== f2 && "filter" !== f2 && "metadata" !== f2 && "minzoom" !== f2 && "maxzoom" !== f2 && (0 === f2.indexOf("paint.") ? et(c2[f2], h2[f2], r3, u2, f2.slice(6), "setPaintProperty") : H(c2[f2], h2[f2]) || Y(r3, { command: "setLayerProperty", args: [u2, f2, h2[f2]] })); } else Y(r3, { command: "removeLayer", args: [u2] }), p2 = o2[o2.lastIndexOf(u2) + 1], Y(r3, { command: "addLayer", args: [h2, p2] }); - }(s2, e2.layers, r2); + })(s2, e2.layers, r2); } catch (t5) { console.warn("Unable to compute style diff:", t5), r2 = [{ command: "setStyle", args: [e2] }]; } @@ -236770,10 +236904,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4[0] === e2[0] && t4[1] === e2[1] && t4[2] === e2[2] && t4[3] === e2[3] && t4[4] === e2[4] && t4[5] === e2[5] && t4[6] === e2[6] && t4[7] === e2[7] && t4[8] === e2[8] && t4[9] === e2[9] && t4[10] === e2[10] && t4[11] === e2[11] && t4[12] === e2[12] && t4[13] === e2[13] && t4[14] === e2[14] && t4[15] === e2[15]; }, t.aa = function(t4) { const e2 = {}; - if (t4.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, (t5, r2, n2, i2) => { + if (t4.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((t5, r2, n2, i2) => { const s2 = n2 || i2; return e2[r2] = !s2 || s2.toLowerCase(), ""; - }), e2["max-age"]) { + })), e2["max-age"]) { const t5 = parseInt(e2["max-age"], 10); isNaN(t5) ? delete e2["max-age"] : e2["max-age"] = t5; } @@ -236882,7 +237016,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const s3 = y2.toString(), u3 = n2.get("text-letter-spacing").evaluate(i3, {}, e2.canonical) * iu, f3 = Ci(s3) ? u3 : 0, m3 = n2.get("text-anchor").evaluate(i3, {}, e2.canonical), x3 = vh(r2, i3, e2.canonical); if (!x3) { const t4 = n2.get("text-radial-offset").evaluate(i3, {}, e2.canonical); - g2 = t4 ? xh(m3, [t4 * iu, gh]) : n2.get("text-offset").evaluate(i3, {}, e2.canonical).map((t5) => t5 * iu); + g2 = t4 ? xh(m3, [t4 * iu, gh]) : n2.get("text-offset").evaluate(i3, {}, e2.canonical).map(((t5) => t5 * iu)); } let v3 = o2 ? "center" : n2.get("text-justify").evaluate(i3, {}, e2.canonical); const b2 = "point" === n2.get("symbol-placement") ? n2.get("text-max-width").evaluate(i3, {}, e2.canonical) * iu : 1 / 0, w2 = () => { @@ -236924,19 +237058,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return 0 === t4.length && (performance.measure(this._marks.measure, this._marks.start, this._marks.end), t4 = performance.getEntriesByName(this._marks.measure), performance.clearMarks(this._marks.start), performance.clearMarks(this._marks.end), performance.clearMeasures(this._marks.measure)), t4; } }, t.bw = function(t4, r2, n2, i2, s2) { - return e(this, void 0, void 0, function* () { + return e(this, void 0, void 0, (function* () { if (p()) try { return yield P(t4, r2, n2, i2, s2); } catch (t5) { } - return function(t5, e2, r3, n3, i3) { + return (function(t5, e2, r3, n3, i3) { const s3 = t5.width, a2 = t5.height; C2 && B2 || (C2 = new OffscreenCanvas(s3, a2), B2 = C2.getContext("2d", { willReadFrequently: true })), C2.width = s3, C2.height = a2, B2.drawImage(t5, 0, 0, s3, a2); const o2 = B2.getImageData(e2, r3, n3, i3); return B2.clearRect(0, 0, s3, a2), o2.data; - }(t4, r2, n2, i2, s2); - }); - }, t.bx = Uc, t.by = r, t.bz = n, t.c = E2, t.d = (t4) => e(void 0, void 0, void 0, function* () { + })(t4, r2, n2, i2, s2); + })); + }, t.bx = Uc, t.by = r, t.bz = n, t.c = E2, t.d = (t4) => e(void 0, void 0, void 0, (function* () { if (0 === t4.byteLength) return createImageBitmap(new ImageData(1, 1)); const e2 = new Blob([new Uint8Array(t4)], { type: "image/png" }); try { @@ -236944,22 +237078,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t5) { throw new Error(`Could not load image because of ${t5.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`); } - }), t.e = g, t.f = (t4) => new Promise((e2, r2) => { + })), t.e = g, t.f = (t4) => new Promise(((e2, r2) => { const n2 = new Image(); n2.onload = () => { - e2(n2), URL.revokeObjectURL(n2.src), n2.onload = null, window.requestAnimationFrame(() => { + e2(n2), URL.revokeObjectURL(n2.src), n2.onload = null, window.requestAnimationFrame((() => { n2.src = z; - }); + })); }, n2.onerror = () => r2(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")); const i2 = new Blob([new Uint8Array(t4)], { type: "image/png" }); n2.src = t4.byteLength ? URL.createObjectURL(i2) : z; - }), t.g = T, t.h = (t4, e2) => O(g(t4, { type: "json" }), e2), t.i = k, t.j = N, t.k = q, t.l = (t4, e2) => O(g(t4, { type: "arrayBuffer" }), e2), t.m = O, t.n = function(t4) { + })), t.g = T, t.h = (t4, e2) => O(g(t4, { type: "json" }), e2), t.i = k, t.j = N, t.k = q, t.l = (t4, e2) => O(g(t4, { type: "arrayBuffer" }), e2), t.m = O, t.n = function(t4) { return new Iu(t4).readFields(Pu, []); }, t.o = _o, t.p = Eu, t.q = rs, t.r = di, t.s = j, t.t = xi, t.u = fi, t.v = G, t.w = A2, t.x = function([t4, e2, r2]) { return e2 += 90, e2 *= Math.PI / 180, r2 *= Math.PI / 180, { x: t4 * Math.cos(e2) * Math.sin(r2), y: t4 * Math.sin(e2) * Math.sin(r2), z: t4 * Math.cos(r2) }; }, t.y = Ce, t.z = Ui; - }); - define2("worker", ["./shared"], function(e) { + })); + define2("worker", ["./shared"], (function(e) { "use strict"; class t { constructor(e2) { @@ -236978,7 +237112,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.familiesBySource = {}; const i2 = e.bk(Object.values(this._layerConfigs), this.keyCache); for (const e2 of i2) { - const t5 = e2.map((e3) => this._layers[e3.id]), o3 = t5[0]; + const t5 = e2.map(((e3) => this._layers[e3.id])), o3 = t5[0]; if ("none" === o3.visibility) continue; const i3 = o3.source || ""; let s2 = this.familiesBySource[i3]; @@ -237020,7 +237154,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.tileID = new e.S(t4.tileID.overscaledZ, t4.tileID.wrap, t4.tileID.canonical.z, t4.tileID.canonical.x, t4.tileID.canonical.y), this.uid = t4.uid, this.zoom = t4.zoom, this.pixelRatio = t4.pixelRatio, this.tileSize = t4.tileSize, this.source = t4.source, this.overscaling = this.tileID.overscaleFactor(), this.showCollisionBoxes = t4.showCollisionBoxes, this.collectResourceTiming = !!t4.collectResourceTiming, this.returnDependencies = !!t4.returnDependencies, this.promoteId = t4.promoteId, this.inFlightDependencies = []; } parse(t4, i2, r2, n2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.status = "parsing", this.data = t4, this.collisionBoxArray = new e.a5(); const a2 = new e.bm(Object.keys(t4.layers).sort()), l2 = new e.bn(this.tileID, this.promoteId); l2.bucketLayerIDs = []; @@ -237036,11 +237170,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } for (const t5 of h2[o2]) { const o3 = t5[0]; - o3.source !== this.source && e.w(`layer.source = ${o3.source} does not equal this.source = ${this.source}`), o3.minzoom && this.zoom < Math.floor(o3.minzoom) || o3.maxzoom && this.zoom >= o3.maxzoom || "none" !== o3.visibility && (s(t5, this.zoom, r2), (c2[o3.id] = o3.createBucket({ index: l2.bucketLayerIDs.length, layers: t5, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: n3, sourceID: this.source })).populate(d3, u2, this.tileID.canonical), l2.bucketLayerIDs.push(t5.map((e2) => e2.id))); + o3.source !== this.source && e.w(`layer.source = ${o3.source} does not equal this.source = ${this.source}`), o3.minzoom && this.zoom < Math.floor(o3.minzoom) || o3.maxzoom && this.zoom >= o3.maxzoom || "none" !== o3.visibility && (s(t5, this.zoom, r2), (c2[o3.id] = o3.createBucket({ index: l2.bucketLayerIDs.length, layers: t5, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: n3, sourceID: this.source })).populate(d3, u2, this.tileID.canonical), l2.bucketLayerIDs.push(t5.map(((e2) => e2.id)))); } } - const d2 = e.aF(u2.glyphDependencies, (e2) => Object.keys(e2).map(Number)); - this.inFlightDependencies.forEach((e2) => null == e2 ? void 0 : e2.abort()), this.inFlightDependencies = []; + const d2 = e.aF(u2.glyphDependencies, ((e2) => Object.keys(e2).map(Number))); + this.inFlightDependencies.forEach(((e2) => null == e2 ? void 0 : e2.abort())), this.inFlightDependencies = []; let f2 = Promise.resolve({}); if (Object.keys(d2).length) { const e2 = new AbortController(); @@ -237063,8 +237197,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const o2 = c2[t5]; o2 instanceof e.a6 ? (s(o2.layers, this.zoom, r2), e.bp({ bucket: o2, glyphMap: v2, glyphPositions: b2.positions, imageMap: w2, imagePositions: S2.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : o2.hasPattern && (o2 instanceof e.bq || o2 instanceof e.br || o2 instanceof e.bs) && (s(o2.layers, this.zoom, r2), o2.addFeatures(u2, this.tileID.canonical, S2.patternPositions)); } - return this.status = "done", { buckets: Object.values(c2).filter((e2) => !e2.isEmpty()), featureIndex: l2, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: b2.image, imageAtlas: S2, glyphMap: this.returnDependencies ? v2 : null, iconMap: this.returnDependencies ? w2 : null, glyphPositions: this.returnDependencies ? b2.positions : null }; - }); + return this.status = "done", { buckets: Object.values(c2).filter(((e2) => !e2.isEmpty())), featureIndex: l2, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: b2.image, imageAtlas: S2, glyphMap: this.returnDependencies ? v2 : null, iconMap: this.returnDependencies ? w2 : null, glyphPositions: this.returnDependencies ? b2.positions : null }; + })); } } function s(t4, o2, i2) { @@ -237076,7 +237210,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.actor = e2, this.layerIndex = t4, this.availableImages = o2, this.fetching = {}, this.loading = {}, this.loaded = {}; } loadVectorTile(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const i2 = yield e.l(t4.request, o2); try { return { vectorTile: new e.bt.VectorTile(new e.bu(i2.data)), rawData: i2.data, cacheControl: i2.cacheControl, expires: i2.expires }; @@ -237085,10 +237219,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ let s2 = `Unable to parse the tile at ${t4.request.url}, `; throw s2 += 31 === o3[0] && 139 === o3[1] ? "please make sure the data is not gzipped and that you have configured the relevant header in the server" : `got error: ${e2.message}`, new Error(s2); } - }); + })); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o2 = t4.uid, s2 = !!(t4 && t4.request && t4.request.collectResourceTiming) && new e.bv(t4.request), r2 = new i(t4); this.loading[o2] = r2; const n2 = new AbortController(); @@ -237115,10 +237249,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (e2) { throw delete this.loading[o2], r2.status = "done", this.loaded[o2] = r2, e2; } - }); + })); } reloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o2 = t4.uid; if (!this.loaded || !this.loaded[o2]) throw new Error("Should not be trying to reload a tile that was never loaded or has been removed"); const i2 = this.loaded[o2]; @@ -237132,18 +237266,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return s2; } if ("done" === i2.status && i2.vectorTile) return i2.parse(i2.vectorTile, this.layerIndex, this.availableImages, this.actor); - }); + })); } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = this.loading, o2 = t4.uid; e2 && e2[o2] && e2[o2].abort && (e2[o2].abort.abort(), delete e2[o2]); - }); + })); } removeTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.loaded && this.loaded[t4.uid] && delete this.loaded[t4.uid]; - }); + })); } } class n { @@ -237151,10 +237285,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.loaded = {}; } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const { uid: o2, encoding: i2, rawImageData: s2, redFactor: r2, greenFactor: n2, blueFactor: a2, baseShift: l2 } = t4, c2 = s2.width + 2, u2 = s2.height + 2, h2 = e.b(s2) ? new e.R({ width: c2, height: u2 }, yield e.bw(s2, -1, -1, c2, u2)) : s2, d2 = new e.bx(o2, h2, i2, r2, n2, a2, l2); return this.loaded = this.loaded || {}, this.loaded[o2] = d2, d2; - }); + })); } removeTile(e2) { const t4 = this.loaded, o2 = e2.uid; @@ -237174,7 +237308,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } o2 + i2 >= 0 != !!t4 && e2.reverse(); } - var c = e.by(function e2(t4, o2) { + var c = e.by((function e2(t4, o2) { var i2, s2 = t4 && t4.type; if ("FeatureCollection" === s2) for (i2 = 0; i2 < t4.features.length; i2++) e2(t4.features[i2], o2); else if ("GeometryCollection" === s2) for (i2 = 0; i2 < t4.geometries.length; i2++) e2(t4.geometries[i2], o2); @@ -237182,7 +237316,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ else if ("Polygon" === s2) a(t4.coordinates, o2); else if ("MultiPolygon" === s2) for (i2 = 0; i2 < t4.coordinates.length; i2++) a(t4.coordinates[i2], o2); return t4; - }); + })); const u = e.bt.VectorTileFeature.prototype.toGeoJSON; var h = { exports: {} }, d = e.bz, f = e.bt.VectorTileFeature, g = p; function p(e2, t4) { @@ -237212,9 +237346,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ var y = e.bA, v = g; function w(e2) { var t4 = new y(); - return function(e3, t5) { + return (function(e3, t5) { for (var o2 in e3.layers) t5.writeMessage(3, x, e3.layers[o2]); - }(e2, t4), t4.finish(); + })(e2, t4), t4.finish(); } function x(e2, t4) { var o2; @@ -237680,36 +237814,36 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (i2 > 0 && t4.size < (s2 ? n2 : i2)) return void (o2.numPoints += t4.length / 3); const a2 = []; for (let e3 = 0; e3 < t4.length; e3 += 3) (0 === i2 || t4[e3 + 2] > n2) && (o2.numSimplified++, a2.push(t4[e3], t4[e3 + 1])), o2.numPoints++; - s2 && function(e3, t5) { + s2 && (function(e3, t5) { let o3 = 0; for (let t6 = 0, i3 = e3.length, s3 = i3 - 2; t6 < i3; s3 = t6, t6 += 2) o3 += (e3[t6] - e3[s3]) * (e3[t6 + 1] + e3[s3 + 1]); if (o3 > 0 === t5) for (let t6 = 0, o4 = e3.length; t6 < o4 / 2; t6 += 2) { const i3 = e3[t6], s3 = e3[t6 + 1]; e3[t6] = e3[o4 - 2 - t6], e3[t6 + 1] = e3[o4 - 1 - t6], e3[o4 - 2 - t6] = i3, e3[o4 - 1 - t6] = s3; } - }(a2, r2), e2.push(a2); + })(a2, r2), e2.push(a2); } const he = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: false, promoteId: null, generateId: false, debug: 0 }; class de { constructor(e2, t4) { - const o2 = (t4 = this.options = function(e3, t5) { + const o2 = (t4 = this.options = (function(e3, t5) { for (const o3 in t5) e3[o3] = t5[o3]; return e3; - }(Object.create(he), t4)).debug; + })(Object.create(he), t4)).debug; if (o2 && console.time("preprocess data"), t4.maxZoom < 0 || t4.maxZoom > 24) throw new Error("maxZoom should be in the 0-24 range"); if (t4.promoteId && t4.generateId) throw new Error("promoteId and generateId cannot be used together."); - let i2 = function(e3, t5) { + let i2 = (function(e3, t5) { const o3 = []; if ("FeatureCollection" === e3.type) for (let i3 = 0; i3 < e3.features.length; i3++) Y(o3, e3.features[i3], t5, i3); else Y(o3, "Feature" === e3.type ? e3 : { geometry: e3 }, t5); return o3; - }(e2, t4); - this.tiles = {}, this.tileCoords = [], o2 && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", t4.indexMaxZoom, t4.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), i2 = function(e3, t5) { + })(e2, t4); + this.tiles = {}, this.tileCoords = [], o2 && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", t4.indexMaxZoom, t4.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), i2 = (function(e3, t5) { const o3 = t5.buffer / t5.extent; let i3 = e3; const s2 = U(e3, 1, -1 - o3, o3, 0, -1, 2, t5), r2 = U(e3, 1, 1 - o3, 2 + o3, 0, -1, 2, t5); return (s2 || r2) && (i3 = U(e3, 1, -o3, 1 + o3, 0, -1, 2, t5) || [], s2 && (i3 = se(s2, 1).concat(i3)), r2 && (i3 = i3.concat(se(r2, -1)))), i3; - }(i2, t4), i2.length && this.splitTile(i2, 0, 0, 0), o2 && (i2.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats))); + })(i2, t4), i2.length && this.splitTile(i2, 0, 0, 0), o2 && (i2.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats))); } splitTile(e2, t4, o2, i2, s2, r2, n2) { const a2 = [e2, t4, o2, i2], l2 = this.options, c2 = l2.debug; @@ -237783,7 +237917,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(...arguments), this._dataUpdateable = /* @__PURE__ */ new Map(); } loadVectorTile(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o3 = t4.tileID.canonical; if (!this._geoJSONIndex) throw new Error("Unable to parse the data into a cluster or geojson"); const i2 = this._geoJSONIndex.getTile(o3.z, o3.x, o3.y); @@ -237821,16 +237955,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }(i2.features); let r2 = k(s2); return 0 === r2.byteOffset && r2.byteLength === r2.buffer.byteLength || (r2 = new Uint8Array(r2)), { vectorTile: s2, rawData: r2.buffer }; - }); + })); } loadData(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { var o2; null === (o2 = this._pendingRequest) || void 0 === o2 || o2.abort(); const i2 = !!(t4 && t4.request && t4.request.collectResourceTiming) && new e.bv(t4.request); this._pendingRequest = new AbortController(); try { - this._pendingData = this.loadAndProcessGeoJSON(t4, this._pendingRequest), this._geoJSONIndex = t4.cluster ? new z(function({ superclusterOptions: t5, clusterProperties: o4 }) { + this._pendingData = this.loadAndProcessGeoJSON(t4, this._pendingRequest), this._geoJSONIndex = t4.cluster ? new z((function({ superclusterOptions: t5, clusterProperties: o4 }) { if (!o4 || !t5) return t5; const i3 = {}, s3 = {}, r2 = { accumulated: null, zoom: 0 }, n2 = { properties: null }, a2 = Object.keys(o4); for (const t6 of a2) { @@ -237846,7 +237980,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ n2.properties = t6; for (const t7 of a2) r2.accumulated = e2[t7], e2[t7] = s3[t7].evaluate(r2, n2); }, t5; - }(t4)).load((yield this._pendingData).features) : (s2 = yield this._pendingData, new de(s2, t4.geojsonVtOptions)), this.loaded = {}; + })(t4)).load((yield this._pendingData).features) : (s2 = yield this._pendingData, new de(s2, t4.geojsonVtOptions)), this.loaded = {}; const o3 = {}; if (i2) { const e2 = i2.finish(); @@ -237858,32 +237992,32 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ throw t5; } var s2; - }); + })); } getData() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { return this._pendingData; - }); + })); } reloadTile(e2) { const t4 = this.loaded; return t4 && t4[e2.uid] ? super.reloadTile(e2) : this.loadTile(e2); } loadAndProcessGeoJSON(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { let i2 = yield this.loadGeoJSON(t4, o2); if (delete this._pendingRequest, "object" != typeof i2) throw new Error(`Input data given to '${t4.source}' is not a valid GeoJSON object.`); if (c(i2, true), t4.filter) { const o3 = e.bC(t4.filter, { type: "boolean", "property-type": "data-driven", overridable: false, transition: false }); - if ("error" === o3.result) throw new Error(o3.value.map((e2) => `${e2.key}: ${e2.message}`).join(", ")); - const s2 = i2.features.filter((e2) => o3.value.evaluate({ zoom: 0 }, e2)); + if ("error" === o3.result) throw new Error(o3.value.map(((e2) => `${e2.key}: ${e2.message}`)).join(", ")); + const s2 = i2.features.filter(((e2) => o3.value.evaluate({ zoom: 0 }, e2))); i2 = { type: "FeatureCollection", features: s2 }; } return i2; - }); + })); } loadGeoJSON(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const { promoteId: i2 } = t4; if (t4.request) { const s2 = yield e.h(t4.request, o2); @@ -237897,7 +238031,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } if (!t4.dataDiff) throw new Error(`Input data given to '${t4.source}' is not a valid GeoJSON object.`); if (!this._dataUpdateable) throw new Error(`Cannot update existing geojson data in ${t4.source}`); - return function(e2, t5, o3) { + return (function(e2, t5, o3) { var i3, s2, r2, n2; if (t5.removeAll && e2.clear(), t5.remove) for (const o4 of t5.remove) e2.delete(o4); if (t5.add) for (const i4 of t5.add) { @@ -237912,13 +238046,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ else if ((null === (r2 = o4.removeProperties) || void 0 === r2 ? void 0 : r2.length) > 0) for (const e3 of o4.removeProperties) Object.prototype.hasOwnProperty.call(t6.properties, e3) && delete t6.properties[e3]; if ((null === (n2 = o4.addOrUpdateProperties) || void 0 === n2 ? void 0 : n2.length) > 0) for (const { key: e3, value: i4 } of o4.addOrUpdateProperties) t6.properties[e3] = i4; } - }(this._dataUpdateable, t4.dataDiff, i2), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) }; - }); + })(this._dataUpdateable, t4.dataDiff, i2), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) }; + })); } removeSource(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._pendingRequest && this._pendingRequest.abort(); - }); + })); } getClusterExpansionZoom(e2) { return this._geoJSONIndex.getClusterExpansionZoom(e2.clusterId); @@ -237938,41 +238072,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }, this.self.addProtocol = e.bi, this.self.removeProtocol = e.bj, this.self.registerRTLTextPlugin = (t5) => { if (e.bD.isParsed()) throw new Error("RTL text plugin already registered."); e.bD.setMethods(t5); - }, this.actor.registerMessageHandler("LDT", (e2, t5) => this._getDEMWorkerSource(e2, t5.source).loadTile(t5)), this.actor.registerMessageHandler("RDT", (t5, o2) => e._(this, void 0, void 0, function* () { + }, this.actor.registerMessageHandler("LDT", ((e2, t5) => this._getDEMWorkerSource(e2, t5.source).loadTile(t5))), this.actor.registerMessageHandler("RDT", ((t5, o2) => e._(this, void 0, void 0, (function* () { this._getDEMWorkerSource(t5, o2.source).removeTile(o2); - })), this.actor.registerMessageHandler("GCEZ", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("GCEZ", ((t5, o2) => e._(this, void 0, void 0, (function* () { return this._getWorkerSource(t5, o2.type, o2.source).getClusterExpansionZoom(o2); - })), this.actor.registerMessageHandler("GCC", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("GCC", ((t5, o2) => e._(this, void 0, void 0, (function* () { return this._getWorkerSource(t5, o2.type, o2.source).getClusterChildren(o2); - })), this.actor.registerMessageHandler("GCL", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("GCL", ((t5, o2) => e._(this, void 0, void 0, (function* () { return this._getWorkerSource(t5, o2.type, o2.source).getClusterLeaves(o2); - })), this.actor.registerMessageHandler("LD", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadData(t5)), this.actor.registerMessageHandler("GD", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).getData()), this.actor.registerMessageHandler("LT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadTile(t5)), this.actor.registerMessageHandler("RT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).reloadTile(t5)), this.actor.registerMessageHandler("AT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).abortTile(t5)), this.actor.registerMessageHandler("RMT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).removeTile(t5)), this.actor.registerMessageHandler("RS", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("LD", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadData(t5))), this.actor.registerMessageHandler("GD", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).getData())), this.actor.registerMessageHandler("LT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadTile(t5))), this.actor.registerMessageHandler("RT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).reloadTile(t5))), this.actor.registerMessageHandler("AT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).abortTile(t5))), this.actor.registerMessageHandler("RMT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).removeTile(t5))), this.actor.registerMessageHandler("RS", ((t5, o2) => e._(this, void 0, void 0, (function* () { if (!this.workerSources[t5] || !this.workerSources[t5][o2.type] || !this.workerSources[t5][o2.type][o2.source]) return; const e2 = this.workerSources[t5][o2.type][o2.source]; delete this.workerSources[t5][o2.type][o2.source], void 0 !== e2.removeSource && e2.removeSource(o2); - })), this.actor.registerMessageHandler("RM", (t5) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("RM", ((t5) => e._(this, void 0, void 0, (function* () { delete this.layerIndexes[t5], delete this.availableImages[t5], delete this.workerSources[t5], delete this.demWorkerSources[t5]; - })), this.actor.registerMessageHandler("SR", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SR", ((t5, o2) => e._(this, void 0, void 0, (function* () { this.referrer = o2; - })), this.actor.registerMessageHandler("SRPS", (e2, t5) => this._syncRTLPluginState(e2, t5)), this.actor.registerMessageHandler("IS", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SRPS", ((e2, t5) => this._syncRTLPluginState(e2, t5))), this.actor.registerMessageHandler("IS", ((t5, o2) => e._(this, void 0, void 0, (function* () { this.self.importScripts(o2); - })), this.actor.registerMessageHandler("SI", (e2, t5) => this._setImages(e2, t5)), this.actor.registerMessageHandler("UL", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SI", ((e2, t5) => this._setImages(e2, t5))), this.actor.registerMessageHandler("UL", ((t5, o2) => e._(this, void 0, void 0, (function* () { this._getLayerIndex(t5).update(o2.layers, o2.removedIds); - })), this.actor.registerMessageHandler("SL", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SL", ((t5, o2) => e._(this, void 0, void 0, (function* () { this._getLayerIndex(t5).replace(o2); - })); + })))); } _setImages(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.availableImages[t4] = o2; for (const e2 in this.workerSources[t4]) { const i2 = this.workerSources[t4][e2]; for (const e3 in i2) i2[e3].availableImages = o2; } - }); + })); } _syncRTLPluginState(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { if (e.bD.isParsed()) return e.bD.getState(); if ("loading" !== o2.pluginStatus) return e.bD.setState(o2), o2; const t5 = o2.pluginURL; @@ -237981,7 +238115,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return e.bD.setState(o3), o3; } throw e.bD.setState({ pluginStatus: "error", pluginURL: "" }), new Error(`RTL Text Plugin failed to import scripts from ${t5}`); - }); + })); } _getAvailableImages(e2) { let t4 = this.availableImages[e2]; @@ -238012,17 +238146,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return e.i(self) && (self.worker = new ve(self)), ve; - }); - define2("index", ["exports", "./shared"], function(t, e) { + })); + define2("index", ["exports", "./shared"], (function(t, e) { "use strict"; var i = "4.7.1"; let a, s; - const o = { now: "undefined" != typeof performance && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (t4) => new Promise((i2, a2) => { + const o = { now: "undefined" != typeof performance && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (t4) => new Promise(((i2, a2) => { const s2 = requestAnimationFrame(i2); - t4.signal.addEventListener("abort", () => { + t4.signal.addEventListener("abort", (() => { cancelAnimationFrame(s2), a2(e.c()); - }); - }), getImageData(t4, e2 = 0) { + })); + })), getImageData(t4, e2 = 0) { return this.getImageCanvasContext(t4).getImageData(-e2, -e2, t4.width + 2 * e2, t4.height + 2 * e2); }, getImageCanvasContext(t4) { const e2 = window.document.createElement("canvas"), i2 = e2.getContext("2d", { willReadFrequently: true }); @@ -238063,9 +238197,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ t4.preventDefault(), t4.stopPropagation(), window.removeEventListener("click", r.suppressClickInternal, true); } static suppressClick() { - window.addEventListener("click", r.suppressClickInternal, true), window.setTimeout(() => { + window.addEventListener("click", r.suppressClickInternal, true), window.setTimeout((() => { window.removeEventListener("click", r.suppressClickInternal, true); - }, 0); + }), 0); } static getScale(t4) { const e2 = t4.getBoundingClientRect(); @@ -238111,7 +238245,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ l && d(l), l = null, u = true; }, h.onerror = () => { c = true, l = null; - }, h.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), function(t4) { + }, h.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), (function(t4) { let i2, a2, s2, o2; t4.resetRequestQueue = () => { i2 = [], a2 = 0, s2 = 0, o2 = {}; @@ -238120,16 +238254,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return o2[e2] = t5, e2; }, t4.removeThrottleControl = (t5) => { delete o2[t5], l2(); - }, t4.getImage = (t5, a3, s3 = true) => new Promise((o3, r3) => { + }, t4.getImage = (t5, a3, s3 = true) => new Promise(((o3, r3) => { n.supported && (t5.headers || (t5.headers = {}), t5.headers.accept = "image/webp,*/*"), e.e(t5, { type: "image" }), i2.push({ abortController: a3, requestParameters: t5, supportImageRefresh: s3, state: "queued", onError: (t6) => { r3(t6); }, onSuccess: (t6) => { o3(t6); } }), l2(); - }); - const r2 = (t5) => e._(this, void 0, void 0, function* () { + })); + const r2 = (t5) => e._(this, void 0, void 0, (function* () { t5.state = "running"; - const { requestParameters: i3, supportImageRefresh: s3, onError: o3, onSuccess: r3, abortController: n2 } = t5, c2 = false === s3 && !e.i(self) && !e.g(i3.url) && (!i3.headers || Object.keys(i3.headers).reduce((t6, e2) => t6 && "accept" === e2, true)); + const { requestParameters: i3, supportImageRefresh: s3, onError: o3, onSuccess: r3, abortController: n2 } = t5, c2 = false === s3 && !e.i(self) && !e.g(i3.url) && (!i3.headers || Object.keys(i3.headers).reduce(((t6, e2) => t6 && "accept" === e2), true)); a2++; const u2 = c2 ? h2(i3, n2) : e.m(i3, n2); try { @@ -238141,7 +238275,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ a2--, l2(); } var d2; - }), l2 = () => { + })), l2 = () => { const t5 = (() => { for (const t6 of Object.keys(o2)) if (o2[t6]()) return true; return false; @@ -238150,17 +238284,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t6 = i2.shift(); t6.abortController.signal.aborted ? e2-- : r2(t6); } - }, h2 = (t5, i3) => new Promise((a3, s3) => { + }, h2 = (t5, i3) => new Promise(((a3, s3) => { const o3 = new Image(), r3 = t5.url, n2 = t5.credentials; - n2 && "include" === n2 ? o3.crossOrigin = "use-credentials" : (n2 && "same-origin" === n2 || !e.s(r3)) && (o3.crossOrigin = "anonymous"), i3.signal.addEventListener("abort", () => { + n2 && "include" === n2 ? o3.crossOrigin = "use-credentials" : (n2 && "same-origin" === n2 || !e.s(r3)) && (o3.crossOrigin = "anonymous"), i3.signal.addEventListener("abort", (() => { o3.src = "", s3(e.c()); - }), o3.fetchPriority = "high", o3.onload = () => { + })), o3.fetchPriority = "high", o3.onload = () => { o3.onerror = o3.onload = null, a3({ data: o3 }); }, o3.onerror = () => { o3.onerror = o3.onload = null, i3.signal.aborted || s3(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")); }, o3.src = r3; - }); - }(_ || (_ = {})), _.resetRequestQueue(); + })); + })(_ || (_ = {})), _.resetRequestQueue(); class p { constructor(t4) { this._transformRequestFn = t4; @@ -238200,10 +238334,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = t4.split("?"); return a2[0] += `${e2}${i2}`, a2.join("?"); } - !function() { + !(function() { var t4 = new e.A(2); e.A != Float32Array && (t4[0] = 0, t4[1] = 0); - }(); + })(); class b { constructor(t4, e2, i2, a2) { this.context = t4, this.format = i2, this.texture = t4.gl.createTexture(), this.update(e2, a2); @@ -238291,11 +238425,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return Object.keys(this.images); } getImages(t4) { - return new Promise((e2, i2) => { + return new Promise(((e2, i2) => { let a2 = true; if (!this.isLoaded()) for (const e3 of t4) this.images[e3] || (a2 = false); this.isLoaded() || a2 ? e2(this._getImagesForIds(t4)) : this.requestors.push({ ids: t4, promiseResolve: e2 }); - }); + })); } _getImagesForIds(t4) { const i2 = {}; @@ -238377,16 +238511,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.url = t4; } getGlyphs(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = []; for (const i3 in t4) for (const a3 of t4[i3]) e2.push(this._getAndCacheGlyphsPromise(i3, a3)); const i2 = yield Promise.all(e2), a2 = {}; for (const { stack: t5, id: e3, glyph: s2 } of i2) a2[t5] || (a2[t5] = {}), a2[t5][e3] = s2 && { id: s2.id, bitmap: s2.bitmap.clone(), metrics: s2.metrics }; return a2; - }); + })); } _getAndCacheGlyphsPromise(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { let e2 = this.entries[t4]; e2 || (e2 = this.entries[t4] = { glyphs: {}, requests: {}, ranges: {} }); let a2 = e2.glyphs[i2]; @@ -238403,7 +238537,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const o2 = yield e2.requests[s2]; for (const t5 in o2) this._doesCharSupportLocalGlyph(+t5) || (e2.glyphs[+t5] = o2[+t5]); return e2.ranges[s2] = true, { stack: t4, id: i2, glyph: o2[i2] || null }; - }); + })); } _doesCharSupportLocalGlyph(t4) { return !!this.localIdeographFontFamily && new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}", "u").test(String.fromCodePoint(t4)); @@ -238422,13 +238556,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } C2.loadGlyphRange = function(t4, i2, a2, s2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o2 = 256 * i2, r2 = o2 + 255, n2 = s2.transformRequest(a2.replace("{fontstack}", t4).replace("{range}", `${o2}-${r2}`), "Glyphs"), l2 = yield e.l(n2, new AbortController()); if (!l2 || !l2.data) throw new Error(`Could not load glyph range. range: ${i2}, ${o2}-${r2}`); const h2 = {}; for (const t5 of e.n(l2.data)) h2[t5.id] = t5; return h2; - }); + })); }, C2.TinySDF = class { constructor({ fontSize: t4 = 24, buffer: e2 = 3, radius: i2 = 8, cutoff: a2 = 0.25, fontFamily: s2 = "sans-serif", fontWeight: o2 = "normal", fontStyle: r2 = "normal" } = {}) { this.buffer = e2, this.cutoff = a2, this.radius = i2; @@ -238615,9 +238749,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.active[t4] = true, this.workers.slice(); } release(t4) { - delete this.active[t4], 0 === this.numActive() && (this.workers.forEach((t5) => { + delete this.active[t4], 0 === this.numActive() && (this.workers.forEach(((t5) => { t5.terminate(); - }), this.workers = null); + })), this.workers = null); } isPreloaded() { return !!this.active[k]; @@ -238651,23 +238785,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.currentActor = (this.currentActor + 1) % this.actors.length, this.actors[this.currentActor]; } remove(t4 = true) { - this.actors.forEach((t5) => { + this.actors.forEach(((t5) => { t5.remove(); - }), this.actors = [], t4 && this.workerPool.release(this.id); + })), this.actors = [], t4 && this.workerPool.release(this.id); } registerMessageHandler(t4, e2) { for (const i2 of this.actors) i2.registerMessageHandler(t4, e2); } } function j() { - return O || (O = new U(N(), e.G), O.registerMessageHandler("GR", (t4, i2, a2) => e.m(i2, a2))), O; + return O || (O = new U(N(), e.G), O.registerMessageHandler("GR", ((t4, i2, a2) => e.m(i2, a2)))), O; } function Z(t4, i2) { const a2 = e.H(); return e.J(a2, a2, [1, 1, 0]), e.K(a2, a2, [0.5 * t4.width, 0.5 * t4.height, 1]), e.L(a2, a2, t4.calculatePosMatrix(i2.toUnwrapped())); } function q(t4, e2, i2, a2, s2, o2) { - const r2 = function(t5, e3, i3) { + const r2 = (function(t5, e3, i3) { if (t5) for (const a3 of t5) { const t6 = e3[a3]; if (t6 && t6.source === i3 && "fill-extrusion" === t6.type) return true; @@ -238677,11 +238811,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (a3.source === i3 && "fill-extrusion" === a3.type) return true; } return false; - }(s2 && s2.layers, e2, t4.id), n2 = o2.maxPitchScaleFactor(), l2 = t4.tilesIn(a2, n2, r2); + })(s2 && s2.layers, e2, t4.id), n2 = o2.maxPitchScaleFactor(), l2 = t4.tilesIn(a2, n2, r2); l2.sort(V); const h2 = []; for (const a3 of l2) h2.push({ wrappedTileID: a3.tileID.wrapped().key, queryResults: a3.tile.queryRenderedFeatures(e2, i2, t4._state, a3.queryGeometry, a3.cameraQueryGeometry, a3.scale, s2, o2, n2, Z(t4.transform, a3.tileID)) }); - const c2 = function(t5) { + const c2 = (function(t5) { const e3 = {}, i3 = {}; for (const a3 of t5) { const t6 = a3.queryResults, s3 = a3.wrappedTileID, o3 = i3[s3] = i3[s3] || {}; @@ -238691,11 +238825,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return e3; - }(h2); - for (const e3 in c2) c2[e3].forEach((e4) => { + })(h2); + for (const e3 in c2) c2[e3].forEach(((e4) => { const i3 = e4.feature, a3 = t4.getFeatureState(i3.layer["source-layer"], i3.id); i3.source = i3.layer.source, i3.layer["source-layer"] && (i3.sourceLayer = i3.layer["source-layer"]), i3.state = a3; - }); + })); return c2; } function V(t4, e2) { @@ -238703,12 +238837,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return i2.overscaledZ - a2.overscaledZ || i2.canonical.y - a2.canonical.y || i2.wrap - a2.wrap || i2.canonical.x - a2.canonical.x; } function G(t4, i2, a2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { let s2 = t4; if (t4.url ? s2 = (yield e.h(i2.transformRequest(t4.url, "Source"), a2)).data : yield o.frameAsync(a2), !s2) return null; const r2 = e.M(e.e(s2, t4), ["tiles", "minzoom", "maxzoom", "attribution", "bounds", "scheme", "tileSize", "encoding"]); - return "vector_layers" in s2 && s2.vector_layers && (r2.vectorLayerIds = s2.vector_layers.map((t5) => t5.id)), r2; - }); + return "vector_layers" in s2 && s2.vector_layers && (r2.vectorLayerIds = s2.vector_layers.map(((t5) => t5.id))), r2; + })); } class H { constructor(t4, e2) { @@ -238801,7 +238935,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.setEventedParent(s2); } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false, this.fire(new e.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController(); try { const t4 = yield G(this._options, this.map._requestManager, this._tileJSONRequest); @@ -238809,7 +238943,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t4) { this._tileJSONRequest = null, this.fire(new e.j(t4)); } - }); + })); } loaded() { return this._loaded; @@ -238824,14 +238958,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this._tileJSONRequest && this._tileJSONRequest.abort(), t4(), this.load(); } setTiles(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this._options.tiles = t4; - }), this; + })), this; } setUrl(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this.url = t4, this._options.url = t4; - }), this; + })), this; } onRemove() { this._tileJSONRequest && (this._tileJSONRequest.abort(), this._tileJSONRequest = null); @@ -238840,14 +238974,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return e.e({}, this._options); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = t4.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), i2 = { request: this.map._requestManager.transformRequest(e2, "Tile"), uid: t4.uid, tileID: t4.tileID, zoom: t4.tileID.overscaledZ, tileSize: this.tileSize * t4.tileID.overscaleFactor(), type: this.type, source: this.id, pixelRatio: this.map.getPixelRatio(), showCollisionBoxes: this.map.showCollisionBoxes, promoteId: this.promoteId }; i2.request.collectResourceTiming = this._collectResourceTiming; let a2 = "RT"; if (t4.actor && "expired" !== t4.state) { - if ("loading" === t4.state) return new Promise((e3, i3) => { + if ("loading" === t4.state) return new Promise(((e3, i3) => { t4.reloadPromise = { resolve: e3, reject: i3 }; - }); + })); } else t4.actor = this.dispatcher.getActor(), a2 = "LT"; t4.abortController = new AbortController(); try { @@ -238859,7 +238993,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (e3 && 404 !== e3.status) throw e3; this._afterTileLoadWorkerResponse(t4, null); } - }); + })); } _afterTileLoadWorkerResponse(t4, e2) { if (e2 && e2.resourceTiming && (t4.resourceTiming = e2.resourceTiming), e2 && this.map._refreshExpiredTiles && t4.setExpiryData(e2), t4.loadVectorData(e2, this.map.painter), t4.reloadPromise) { @@ -238868,14 +239002,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.abortController && (t4.abortController.abort(), delete t4.abortController), t4.actor && (yield t4.actor.sendAsync({ type: "AT", data: { uid: t4.uid, type: this.type, source: this.id } })); - }); + })); } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.unloadVectorData(), t4.actor && (yield t4.actor.sendAsync({ type: "RMT", data: { uid: t4.uid, type: this.type, source: this.id } })); - }); + })); } hasTransition() { return false; @@ -238886,7 +239020,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(), this.id = t4, this.dispatcher = a2, this.setEventedParent(s2), this.type = "raster", this.minzoom = 0, this.maxzoom = 22, this.roundZoom = true, this.scheme = "xyz", this.tileSize = 512, this._loaded = false, this._options = e.e({ type: "raster" }, i2), e.e(this, e.M(i2, ["url", "scheme", "tileSize"])); } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false, this.fire(new e.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController(); try { const t4 = yield G(this._options, this.map._requestManager, this._tileJSONRequest); @@ -238894,7 +239028,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t4) { this._tileJSONRequest = null, this.fire(new e.j(t4)); } - }); + })); } loaded() { return this._loaded; @@ -238909,14 +239043,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this._tileJSONRequest && (this._tileJSONRequest.abort(), this._tileJSONRequest = null), t4(), this.load(); } setTiles(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this._options.tiles = t4; - }), this; + })), this; } setUrl(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this.url = t4, this._options.url = t4; - }), this; + })), this; } serialize() { return e.e({}, this._options); @@ -238925,7 +239059,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return !this.tileBounds || this.tileBounds.contains(t4.canonical); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = t4.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme); t4.abortController = new AbortController(); try { @@ -238940,17 +239074,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (delete t4.abortController, t4.aborted) t4.state = "unloaded"; else if (e3) throw t4.state = "errored", e3; } - }); + })); } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.abortController && (t4.abortController.abort(), delete t4.abortController); - }); + })); } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.texture && this.map.painter.saveTileTexture(t4.texture); - }); + })); } hasTransition() { return false; @@ -238961,7 +239095,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(t4, i2, a2, s2), this.type = "raster-dem", this.maxzoom = 22, this._options = e.e({ type: "raster-dem" }, i2), this.encoding = i2.encoding || "mapbox", this.redFactor = i2.redFactor, this.greenFactor = i2.greenFactor, this.blueFactor = i2.blueFactor, this.baseShift = i2.baseShift; } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const i2 = t4.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), a2 = this.map._requestManager.transformRequest(i2, "Tile"); t4.neighboringTiles = this._getNeighboringTiles(t4.tileID), t4.abortController = new AbortController(); try { @@ -238981,10 +239115,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (delete t4.abortController, t4.aborted) t4.state = "unloaded"; else if (e2) throw t4.state = "errored", e2; } - }); + })); } readImageNow(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { if ("undefined" != typeof VideoFrame && e.V()) { const i2 = t4.width + 2, a2 = t4.height + 2; try { @@ -238993,16 +239127,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return o.getImageData(t4, 1); - }); + })); } _getNeighboringTiles(t4) { const i2 = t4.canonical, a2 = Math.pow(2, i2.z), s2 = (i2.x - 1 + a2) % a2, o2 = 0 === i2.x ? t4.wrap - 1 : t4.wrap, r2 = (i2.x + 1 + a2) % a2, n2 = i2.x + 1 === a2 ? t4.wrap + 1 : t4.wrap, l2 = {}; return l2[new e.S(t4.overscaledZ, o2, i2.z, s2, i2.y).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, n2, i2.z, r2, i2.y).key] = { backfilled: false }, i2.y > 0 && (l2[new e.S(t4.overscaledZ, o2, i2.z, s2, i2.y - 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, t4.wrap, i2.z, i2.x, i2.y - 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, n2, i2.z, r2, i2.y - 1).key] = { backfilled: false }), i2.y + 1 < a2 && (l2[new e.S(t4.overscaledZ, o2, i2.z, s2, i2.y + 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, t4.wrap, i2.z, i2.x, i2.y + 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, n2, i2.z, r2, i2.y + 1).key] = { backfilled: false }), l2; } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.demTexture && this.map.painter.saveTileTexture(t4.demTexture), t4.fbo && (t4.fbo.destroy(), delete t4.fbo), t4.dem && delete t4.dem, delete t4.neighboringTiles, t4.state = "unloaded", t4.actor && (yield t4.actor.sendAsync({ type: "RDT", data: { type: this.type, uid: t4.uid, source: this.id } })); - }); + })); } } class J extends e.E { @@ -239012,9 +239146,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ void 0 !== i2.clusterMaxZoom && this.maxzoom <= i2.clusterMaxZoom && e.w(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${i2.clusterMaxZoom}".`), this.workerOptions = e.e({ source: this.id, cluster: i2.cluster || false, geojsonVtOptions: { buffer: (void 0 !== i2.buffer ? i2.buffer : 128) * o2, tolerance: (void 0 !== i2.tolerance ? i2.tolerance : 0.375) * o2, extent: e.X, maxZoom: this.maxzoom, lineMetrics: i2.lineMetrics || false, generateId: i2.generateId || false }, superclusterOptions: { maxZoom: void 0 !== i2.clusterMaxZoom ? i2.clusterMaxZoom : this.maxzoom - 1, minPoints: Math.max(2, i2.clusterMinPoints || 2), extent: e.X, radius: (i2.clusterRadius || 50) * o2, log: false, generateId: i2.generateId || false }, clusterProperties: i2.clusterProperties, filter: i2.filter }, i2.workerOptions), "string" == typeof this.promoteId && (this.workerOptions.promoteId = this.promoteId); } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { yield this._updateWorkerData(); - }); + })); } onAdd(t4) { this.map = t4, this.load(); @@ -239026,10 +239160,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this._updateWorkerData(t4), this; } getData() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const t4 = e.e({ type: this.type }, this.workerOptions); return this.actor.sendAsync({ type: "GD", data: t4 }); - }); + })); } setClusterOptions(t4) { return this.workerOptions.cluster = t4.cluster, t4 && (void 0 !== t4.clusterRadius && (this.workerOptions.superclusterOptions.radius = t4.clusterRadius), void 0 !== t4.clusterMaxZoom && (this.workerOptions.superclusterOptions.maxZoom = t4.clusterMaxZoom)), this._updateWorkerData(), this; @@ -239044,7 +239178,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.actor.sendAsync({ type: "GCL", data: { type: this.type, source: this.id, clusterId: t4, limit: e2, offset: i2 } }); } _updateWorkerData(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const i2 = e.e({ type: this.type }, this.workerOptions); t4 ? i2.dataDiff = t4 : "string" == typeof this._data ? (i2.request = this.map._requestManager.transformRequest(o.resolveURL(this._data), "Source"), i2.request.collectResourceTiming = this._collectResourceTiming) : i2.data = JSON.stringify(this._data), this._pendingLoads++, this.fire(new e.k("dataloading", { dataType: "source" })); try { @@ -239058,30 +239192,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (this._pendingLoads--, this._removed) return void this.fire(new e.k("dataabort", { dataType: "source" })); this.fire(new e.j(t5)); } - }); + })); } loaded() { return 0 === this._pendingLoads; } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = t4.actor ? "RT" : "LT"; t4.actor = this.actor; const i2 = { type: this.type, uid: t4.uid, tileID: t4.tileID, zoom: t4.tileID.overscaledZ, maxZoom: this.maxzoom, tileSize: this.tileSize, source: this.id, pixelRatio: this.map.getPixelRatio(), showCollisionBoxes: this.map.showCollisionBoxes, promoteId: this.promoteId }; t4.abortController = new AbortController(); const a2 = yield this.actor.sendAsync({ type: e2, data: i2 }, t4.abortController); delete t4.abortController, t4.unloadVectorData(), t4.aborted || t4.loadVectorData(a2, this.map.painter, "RT" === e2); - }); + })); } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.abortController && (t4.abortController.abort(), delete t4.abortController), t4.aborted = true; - }); + })); } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.unloadVectorData(), yield this.actor.sendAsync({ type: "RMT", data: { uid: t4.uid, type: this.type, source: this.id } }); - }); + })); } onRemove() { this._removed = true, this.actor.sendAsync({ type: "RS", data: { type: this.type, source: this.id } }); @@ -239099,7 +239233,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(), this.id = t4, this.dispatcher = i2, this.coordinates = e2.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = false, this.setEventedParent(a2), this.options = e2; } load(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false, this.fire(new e.k("dataloading", { dataType: "source" })), this.url = this.options.url, this._request = new AbortController(); try { const e2 = yield _.getImage(this.map._requestManager.transformRequest(this.url, "Image"), this._request); @@ -239107,15 +239241,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t5) { this._request = null, this._loaded = true, this.fire(new e.j(t5)); } - }); + })); } loaded() { return this._loaded; } updateImage(t4) { - return t4.url ? (this._request && (this._request.abort(), this._request = null), this.options.url = t4.url, this.load(t4.coordinates).finally(() => { + return t4.url ? (this._request && (this._request.abort(), this._request = null), this.options.url = t4.url, this.load(t4.coordinates).finally((() => { this.texture = null; - }), this) : this; + })), this) : this; } _finishLoading() { this.map && (this.setCoordinates(this.coordinates), this.fire(new e.k("data", { dataType: "source", sourceDataType: "metadata" }))); @@ -239129,13 +239263,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ setCoordinates(t4) { this.coordinates = t4; const i2 = t4.map(e.Z.fromLngLat); - this.tileID = function(t5) { + this.tileID = (function(t5) { let i3 = 1 / 0, a3 = 1 / 0, s2 = -1 / 0, o2 = -1 / 0; for (const e2 of t5) i3 = Math.min(i3, e2.x), a3 = Math.min(a3, e2.y), s2 = Math.max(s2, e2.x), o2 = Math.max(o2, e2.y); const r2 = Math.max(s2 - i3, o2 - a3), n2 = Math.max(0, Math.floor(-Math.log(r2) / Math.LN2)), l2 = Math.pow(2, n2); return new e.a1(n2, Math.floor((i3 + s2) / 2 * l2), Math.floor((a3 + o2) / 2 * l2)); - }(i2), this.minzoom = this.maxzoom = this.tileID.z; - const a2 = i2.map((t5) => this.tileID.getTilePoint(t5)._round()); + })(i2), this.minzoom = this.maxzoom = this.tileID.z; + const a2 = i2.map(((t5) => this.tileID.getTilePoint(t5)._round())); return this._boundsArray = new e.$(), this._boundsArray.emplaceBack(a2[0].x, a2[0].y, 0, 0), this._boundsArray.emplaceBack(a2[1].x, a2[1].y, e.X, 0), this._boundsArray.emplaceBack(a2[3].x, a2[3].y, 0, e.X), this._boundsArray.emplaceBack(a2[2].x, a2[2].y, e.X, e.X), this.boundsBuffer && (this.boundsBuffer.destroy(), delete this.boundsBuffer), this.fire(new e.k("data", { dataType: "source", sourceDataType: "content" })), this; } prepare() { @@ -239150,9 +239284,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ a2 && this.fire(new e.k("data", { dataType: "source", sourceDataType: "idle", sourceId: this.id })); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.tileID && this.tileID.equals(t4.tileID.canonical) ? (this.tiles[String(t4.tileID.wrap)] = t4, t4.buckets = {}) : t4.state = "errored"; - }); + })); } serialize() { return { type: "image", url: this.options.url, coordinates: this.coordinates }; @@ -239166,7 +239300,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(t4, e2, i2, a2), this.roundZoom = true, this.type = "video", this.options = e2; } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false; const t4 = this.options; this.urls = []; @@ -239174,13 +239308,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ try { const t5 = yield e.a3(this.urls); if (this._loaded = true, !t5) return; - this.video = t5, this.video.loop = true, this.video.addEventListener("playing", () => { + this.video = t5, this.video.loop = true, this.video.addEventListener("playing", (() => { this.map.triggerRepaint(); - }), this.map && this.video.play(), this._finishLoading(); + })), this.map && this.video.play(), this._finishLoading(); } catch (t5) { this.fire(new e.j(t5)); } - }); + })); } pause() { this.video && this.video.pause(); @@ -239220,16 +239354,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class et extends Q { constructor(t4, i2, a2, s2) { - super(t4, i2, a2, s2), i2.coordinates ? Array.isArray(i2.coordinates) && 4 === i2.coordinates.length && !i2.coordinates.some((t5) => !Array.isArray(t5) || 2 !== t5.length || t5.some((t6) => "number" != typeof t6)) || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "coordinates"'))), i2.animate && "boolean" != typeof i2.animate && this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'optional "animate" property must be a boolean value'))), i2.canvas ? "string" == typeof i2.canvas || i2.canvas instanceof HTMLCanvasElement || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "canvas"'))), this.options = i2, this.animate = void 0 === i2.animate || i2.animate; + super(t4, i2, a2, s2), i2.coordinates ? Array.isArray(i2.coordinates) && 4 === i2.coordinates.length && !i2.coordinates.some(((t5) => !Array.isArray(t5) || 2 !== t5.length || t5.some(((t6) => "number" != typeof t6)))) || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "coordinates"'))), i2.animate && "boolean" != typeof i2.animate && this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'optional "animate" property must be a boolean value'))), i2.canvas ? "string" == typeof i2.canvas || i2.canvas instanceof HTMLCanvasElement || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "canvas"'))), this.options = i2, this.animate = void 0 === i2.animate || i2.animate; } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = true, this.canvas || (this.canvas = this.options.canvas instanceof HTMLCanvasElement ? this.options.canvas : document.getElementById(this.options.canvas)), this.width = this.canvas.width, this.height = this.canvas.height, this._hasInvalidDimensions() ? this.fire(new e.j(new Error("Canvas dimensions cannot be less than or equal to zero."))) : (this.play = function() { this._playing = true, this.map.triggerRepaint(); }, this.pause = function() { this._playing && (this.prepare(), this._playing = false); }, this._finishLoading()); - }); + })); } getCanvas() { return this.canvas; @@ -239288,9 +239422,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = j(); } _syncState(t4) { - return this.status = t4, this.dispatcher.broadcast("SRPS", { pluginStatus: t4, pluginURL: this.url }).catch((t5) => { + return this.status = t4, this.dispatcher.broadcast("SRPS", { pluginStatus: t4, pluginURL: this.url }).catch(((t5) => { throw this.status = "error", t5; - }); + })); } getRTLTextPluginStatus() { return this.status; @@ -239299,19 +239433,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.status = "unavailable", this.url = null; } setRTLTextPlugin(t4) { - return e._(this, arguments, void 0, function* (t5, e2 = false) { + return e._(this, arguments, void 0, (function* (t5, e2 = false) { if (this.url) throw new Error("setRTLTextPlugin cannot be called multiple times."); if (this.url = o.resolveURL(t5), !this.url) throw new Error(`requested url ${t5} is invalid`); if ("unavailable" === this.status) { if (!e2) return this._requestImport(); this.status = "deferred", this._syncState(this.status); } else if ("requested" === this.status) return this._requestImport(); - }); + })); } _requestImport() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { yield this._syncState("loading"), this.status = "loaded", this.fire(new e.k(st)); - }); + })); } lazyLoad() { "unavailable" === this.status ? this.status = "requested" : "deferred" === this.status && this._requestImport(); @@ -239337,18 +239471,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } loadVectorData(t4, i2, a2) { if (this.hasData() && this.unloadVectorData(), this.state = "loaded", t4) { - t4.featureIndex && (this.latestFeatureIndex = t4.featureIndex, t4.rawTileData ? (this.latestRawTileData = t4.rawTileData, this.latestFeatureIndex.rawTileData = t4.rawTileData) : this.latestRawTileData && (this.latestFeatureIndex.rawTileData = this.latestRawTileData)), this.collisionBoxArray = t4.collisionBoxArray, this.buckets = function(t5, e2) { + t4.featureIndex && (this.latestFeatureIndex = t4.featureIndex, t4.rawTileData ? (this.latestRawTileData = t4.rawTileData, this.latestFeatureIndex.rawTileData = t4.rawTileData) : this.latestRawTileData && (this.latestFeatureIndex.rawTileData = this.latestRawTileData)), this.collisionBoxArray = t4.collisionBoxArray, this.buckets = (function(t5, e2) { const i3 = {}; if (!e2) return i3; for (const a3 of t5) { - const t6 = a3.layerIds.map((t7) => e2.getLayer(t7)).filter(Boolean); + const t6 = a3.layerIds.map(((t7) => e2.getLayer(t7))).filter(Boolean); if (0 !== t6.length) { - a3.layers = t6, a3.stateDependentLayerIds && (a3.stateDependentLayers = a3.stateDependentLayerIds.map((e3) => t6.filter((t7) => t7.id === e3)[0])); + a3.layers = t6, a3.stateDependentLayerIds && (a3.stateDependentLayers = a3.stateDependentLayerIds.map(((e3) => t6.filter(((t7) => t7.id === e3))[0]))); for (const e3 of t6) i3[e3.id] = a3; } } return i3; - }(t4.buckets, i2.style), this.hasSymbolBuckets = false; + })(t4.buckets, i2.style), this.hasSymbolBuckets = false; for (const t5 in this.buckets) { const i3 = this.buckets[t5]; if (i3 instanceof e.a6) { @@ -239487,9 +239621,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = t4.wrapped().key; void 0 === this.data[a2] && (this.data[a2] = []); const s2 = { value: e2, timeout: void 0 }; - if (void 0 !== i2 && (s2.timeout = setTimeout(() => { + if (void 0 !== i2 && (s2.timeout = setTimeout((() => { this.remove(t4, s2); - }, i2)), this.data[a2].push(s2), this.order.push(a2), this.order.length > this.max) { + }), i2)), this.data[a2].push(s2), this.order.push(a2), this.order.length > this.max) { const t5 = this._getAndRemoveByKey(this.order[0]); t5 && this.onRemove(t5); } @@ -239589,15 +239723,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class ut extends e.E { constructor(t4, e2, i2) { - super(), this.id = t4, this.dispatcher = i2, this.on("data", (t5) => this._dataHandler(t5)), this.on("dataloading", () => { + super(), this.id = t4, this.dispatcher = i2, this.on("data", ((t5) => this._dataHandler(t5))), this.on("dataloading", (() => { this._sourceErrored = false; - }), this.on("error", () => { + })), this.on("error", (() => { this._sourceErrored = this._source.loaded(); - }), this._source = ((t5, e3, i3, a2) => { + })), this._source = ((t5, e3, i3, a2) => { const s2 = new (at(e3.type))(t5, e3, i3, a2); if (s2.id !== t5) throw new Error(`Expected Source id to be ${t5} instead of ${s2.id}`); return s2; - })(t4, e2, i2, this), this._tiles = {}, this._cache = new ht(0, (t5) => this._unloadTile(t5)), this._timers = {}, this._cacheTimers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new ct(), this._didEmitContent = false, this._updated = false; + })(t4, e2, i2, this), this._tiles = {}, this._cache = new ht(0, ((t5) => this._unloadTile(t5))), this._timers = {}, this._cacheTimers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new ct(), this._didEmitContent = false, this._updated = false; } onAdd(t4) { this.map = t4, this._maxTileCacheSize = t4 ? t4._maxTileCacheSize : null, this._maxTileCacheZoomLevels = t4 ? t4._maxTileCacheZoomLevels : null, this._source && this._source.onAdd && this._source.onAdd(t4); @@ -239629,13 +239763,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this._paused = false, this._shouldReloadOnResume = false, t4 && this.reload(), this.transform && this.update(this.transform, this.terrain); } _loadTile(t4, i2, a2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { try { yield this._source.loadTile(t4), this._tileLoaded(t4, i2, a2); } catch (i3) { t4.state = "errored", 404 !== i3.status ? this._source.fire(new e.j(i3, { tile: t4 })) : this.update(this.transform, this.terrain); } - }); + })); } _unloadTile(t4) { this._source.unloadTile && this._source.unloadTile(t4); @@ -239654,15 +239788,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } getIds() { - return Object.values(this._tiles).map((t4) => t4.tileID).sort(dt).map((t4) => t4.key); + return Object.values(this._tiles).map(((t4) => t4.tileID)).sort(dt).map(((t4) => t4.key)); } getRenderableIds(t4) { const i2 = []; for (const e2 in this._tiles) this._isIdRenderable(e2, t4) && i2.push(this._tiles[e2]); - return t4 ? i2.sort((t5, i3) => { + return t4 ? i2.sort(((t5, i3) => { const a2 = t5.tileID, s2 = i3.tileID, o2 = new e.P(a2.canonical.x, a2.canonical.y)._rotate(this.transform.angle), r2 = new e.P(s2.canonical.x, s2.canonical.y)._rotate(this.transform.angle); return a2.overscaledZ - s2.overscaledZ || r2.y - o2.y || r2.x - o2.x; - }).map((t5) => t5.tileID.key) : i2.map((t5) => t5.tileID).sort(dt).map((t5) => t5.key); + })).map(((t5) => t5.tileID.key)) : i2.map(((t5) => t5.tileID)).sort(dt).map(((t5) => t5.key)); } hasRenderableParent(t4) { const e2 = this.findLoadedParent(t4, 0); @@ -239679,10 +239813,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } _reloadTile(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = this._tiles[t4]; e2 && ("loading" !== e2.state && (e2.state = i2), yield this._loadTile(e2, t4, i2)); - }); + })); } _tileLoaded(t4, i2, a2) { t4.timeAdded = o.now(), "expired" === a2 && (t4.refreshedUponExpiration = true), this._setTileReloadTimer(i2, t4), "raster-dem" === this.getSource().type && t4.dem && this._backfillDEM(t4), this._state.initializeTileState(t4, this.map ? this.map.painter : null), t4.aborted || this._source.fire(new e.k("data", { dataType: "source", tile: t4, coord: t4.tileID })); @@ -239789,7 +239923,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ update(t4, i2) { if (!this._sourceLoaded || this._paused) return; let a2; - this.transform = t4, this.terrain = i2, this.updateCacheSize(t4), this.handleWrapJump(this.transform.center.lng), this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? a2 = t4.getVisibleUnwrappedCoordinates(this._source.tileID).map((t5) => new e.S(t5.canonical.z, t5.wrap, t5.canonical.z, t5.canonical.x, t5.canonical.y)) : (a2 = t4.coveringTiles({ tileSize: this.usedForTerrain ? this.tileSize : this._source.tileSize, minzoom: this._source.minzoom, maxzoom: this._source.maxzoom, roundZoom: !this.usedForTerrain && this._source.roundZoom, reparseOverscaled: this._source.reparseOverscaled, terrain: i2 }), this._source.hasTile && (a2 = a2.filter((t5) => this._source.hasTile(t5)))) : a2 = []; + this.transform = t4, this.terrain = i2, this.updateCacheSize(t4), this.handleWrapJump(this.transform.center.lng), this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? a2 = t4.getVisibleUnwrappedCoordinates(this._source.tileID).map(((t5) => new e.S(t5.canonical.z, t5.wrap, t5.canonical.z, t5.canonical.x, t5.canonical.y))) : (a2 = t4.coveringTiles({ tileSize: this.usedForTerrain ? this.tileSize : this._source.tileSize, minzoom: this._source.minzoom, maxzoom: this._source.maxzoom, roundZoom: !this.usedForTerrain && this._source.roundZoom, reparseOverscaled: this._source.reparseOverscaled, terrain: i2 }), this._source.hasTile && (a2 = a2.filter(((t5) => this._source.hasTile(t5))))) : a2 = []; const s2 = t4.coveringZoomLevel(this._source), o2 = Math.max(s2 - ut.maxOverzooming, this._source.minzoom), r2 = Math.max(s2 + ut.maxUnderzooming, this._source.minzoom); if (this.usedForTerrain) { const t5 = {}; @@ -239884,9 +240018,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ _setTileReloadTimer(t4, e2) { t4 in this._timers && (clearTimeout(this._timers[t4]), delete this._timers[t4]); const i2 = e2.getExpiryTimeout(); - i2 && (this._timers[t4] = setTimeout(() => { + i2 && (this._timers[t4] = setTimeout((() => { this._reloadTile(t4, "expired"), delete this._timers[t4]; - }, i2)); + }), i2)); } _removeTile(t4) { const e2 = this._tiles[t4]; @@ -239904,7 +240038,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ tilesIn(t4, i2, a2) { const s2 = [], o2 = this.transform; if (!o2) return s2; - const r2 = a2 ? o2.getCameraQueryGeometry(t4) : t4, n2 = t4.map((t5) => o2.pointCoordinate(t5, this.terrain)), l2 = r2.map((t5) => o2.pointCoordinate(t5, this.terrain)), h2 = this.getIds(); + const r2 = a2 ? o2.getCameraQueryGeometry(t4) : t4, n2 = t4.map(((t5) => o2.pointCoordinate(t5, this.terrain))), l2 = r2.map(((t5) => o2.pointCoordinate(t5, this.terrain))), h2 = this.getIds(); let c2 = 1 / 0, u2 = 1 / 0, d2 = -1 / 0, _2 = -1 / 0; for (const t5 of l2) c2 = Math.min(c2, t5.x), u2 = Math.min(u2, t5.y), d2 = Math.max(d2, t5.x), _2 = Math.max(_2, t5.y); for (let t5 = 0; t5 < h2.length; t5++) { @@ -239912,14 +240046,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (a3.holdingForFade()) continue; const r3 = a3.tileID, p2 = Math.pow(2, o2.zoom - a3.tileID.overscaledZ), m2 = i2 * a3.queryPadding * e.X / a3.tileSize / p2, f2 = [r3.getTilePoint(new e.Z(c2, u2)), r3.getTilePoint(new e.Z(d2, _2))]; if (f2[0].x - m2 < e.X && f2[0].y - m2 < e.X && f2[1].x + m2 >= 0 && f2[1].y + m2 >= 0) { - const t6 = n2.map((t7) => r3.getTilePoint(t7)), e2 = l2.map((t7) => r3.getTilePoint(t7)); + const t6 = n2.map(((t7) => r3.getTilePoint(t7))), e2 = l2.map(((t7) => r3.getTilePoint(t7))); s2.push({ tile: a3, tileID: r3, queryGeometry: t6, cameraQueryGeometry: e2, scale: p2 }); } } return s2; } getVisibleCoordinates(t4) { - const e2 = this.getRenderableIds(t4).map((t5) => this._tiles[t5].tileID); + const e2 = this.getRenderableIds(t4).map(((t5) => this._tiles[t5].tileID)); for (const t5 of e2) t5.posMatrix = this.transform.calculatePosMatrix(t5.toUnwrapped()); return e2; } @@ -239946,7 +240080,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } reloadTilesForDependencies(t4, e2) { for (const i2 in this._tiles) this._tiles[i2].hasDependency(t4, e2) && this._reloadTile(i2, "reloading"); - this._cache.filter((i2) => !i2.hasDependency(t4, e2)); + this._cache.filter(((i2) => !i2.hasDependency(t4, e2))); } } function dt(t4, e2) { @@ -240165,9 +240299,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ m2.push(h3.last); } else { if (o2 && !s2) { - const a4 = xt(t4.tileAnchorPoint.x, t4.tileAnchorPoint.y, r2, t4.getElevation).point, s3 = i2.lineStartIndex + i2.segment + 1, o3 = new e.P(t4.lineVertexArray.getx(s3), t4.lineVertexArray.gety(s3)), n3 = xt(o3.x, o3.y, r2, t4.getElevation), l3 = n3.signedDistanceFromCamera > 0 ? n3.point : function(t5, e2, i3, a5, s4, o4) { + const a4 = xt(t4.tileAnchorPoint.x, t4.tileAnchorPoint.y, r2, t4.getElevation).point, s3 = i2.lineStartIndex + i2.segment + 1, o3 = new e.P(t4.lineVertexArray.getx(s3), t4.lineVertexArray.gety(s3)), n3 = xt(o3.x, o3.y, r2, t4.getElevation), l3 = n3.signedDistanceFromCamera > 0 ? n3.point : (function(t5, e2, i3, a5, s4, o4) { return Pt(t5, e2, i3, 1, s4, o4); - }(t4.tileAnchorPoint, o3, a4, 0, r2, t4), h3 = It(i2.writingMode, a4, l3, c2); + })(t4.tileAnchorPoint, o3, a4, 0, r2, t4), h3 = It(i2.writingMode, a4, l3, c2); if (h3) return h3; } const a3 = Mt(d2 * l2.getoffsetX(i2.glyphStartIndex), _2, p2, s2, i2.segment, i2.lineStartIndex, i2.lineStartIndex + i2.lineLength, t4, u2); @@ -240187,9 +240321,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const o2 = new e.P(i2.lineVertexArray.getx(t4), i2.lineVertexArray.gety(t4)), r2 = St(o2.x, o2.y, i2); if (r2.signedDistanceFromCamera > 0) return s2.projections[t4] = r2.point, s2.anyProjectionOccluded = s2.anyProjectionOccluded || r2.isOccluded, r2.point; const n2 = t4 - a2.direction; - return function(t5, e2, i3, a3, s3) { + return (function(t5, e2, i3, a3, s3) { return Pt(t5, e2, i3, a3, void 0, s3); - }(0 === a2.distanceFromAnchor ? i2.tileAnchorPoint : new e.P(i2.lineVertexArray.getx(n2), i2.lineVertexArray.gety(n2)), o2, a2.previousVertex, a2.absOffsetX - a2.distanceFromAnchor + 1, i2); + })(0 === a2.distanceFromAnchor ? i2.tileAnchorPoint : new e.P(i2.lineVertexArray.getx(n2), i2.lineVertexArray.gety(n2)), o2, a2.previousVertex, a2.absOffsetX - a2.distanceFromAnchor + 1, i2); } function St(t4, e2, i2) { const a2 = t4 + i2.translation[0], s2 = e2 + i2.translation[1]; @@ -240268,7 +240402,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const u3 = 2.5 * i3; if (h2) { const t5 = this.projectPathToScreenSpace(l3, b2, h2); - l3 = t5.some((t6) => t6.signedDistanceFromCamera <= 0) ? [] : t5.map((t6) => t6.point); + l3 = t5.some(((t6) => t6.signedDistanceFromCamera <= 0)) ? [] : t5.map(((t6) => t6.point)); } let m3 = []; if (l3.length > 0) { @@ -240291,7 +240425,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return { circles: !c2 && T2 || !I2 || x2 < this.perspectiveRatioCutoff ? [] : g2, offscreen: E3, collisionDetected: T2 }; } projectPathToScreenSpace(t4, e2, i2) { - return t4.map((t5) => xt(t5.x, t5.y, i2, e2.getElevation)); + return t4.map(((t5) => xt(t5.x, t5.y, i2, e2.getElevation))); } queryRenderedSymbols(t4) { if (0 === t4.length || 0 === this.grid.keysLength() && 0 === this.ignoredGrid.keysLength()) return {}; @@ -240359,8 +240493,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (const { offsetX: t5, offsetY: i3 } of w2) T2.push(new e.P(p2.x + u2.x * t5 + d2.x * i3, p2.y + u2.y * t5 + d2.y * i3)); let I2 = false; if (o2) { - const t5 = T2.map((t6) => this.projectAndGetPerspectiveRatio(a2, t6.x, t6.y, s2, h2)); - I2 = t5.some((t6) => !t6.isOccluded), T2 = t5.map((t6) => t6.point); + const t5 = T2.map(((t6) => this.projectAndGetPerspectiveRatio(a2, t6.x, t6.y, s2, h2))); + I2 = t5.some(((t6) => !t6.isOccluded)), T2 = t5.map(((t6) => t6.point)); } else I2 = true; return { box: e.ao(T2), allPointsOccluded: !I2 }; } @@ -240477,10 +240611,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a4 = this.collisionIndex.placeCollisionBox(e2, x2, d2, l2, h2, I2, T2, r2, f2.predicate, z2); return a4 && a4.placeable && (this.markUsedOrientation(s2, i4, t5), this.placedOrientations[t5.crossTileID] = i4), a4; }; - o3(() => a3(q2, e.ah.horizontal), () => { + o3((() => a3(q2, e.ah.horizontal)), (() => { const i4 = p3.verticalTextBox; return s2.allowVerticalPlacement && t5.numVerticalGlyphVertices > 0 && i4 ? a3(i4, e.ah.vertical) : { box: null, offscreen: null }; - }), i3(L2 && L2.placeable); + })), i3(L2 && L2.placeable); } else { let _3 = e.aq[null === (D4 = null === (P3 = this.prevPlacement) || void 0 === P3 ? void 0 : P3.variableOffsets[t5.crossTileID]) || void 0 === D4 ? void 0 : D4.anchor]; const m3 = (i4, o4, p4) => { @@ -240498,10 +240632,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } return a2 && !w4 && (w4 = { box: this.collisionIndex.placeCollisionBox(q2, "always", d2, l2, h2, I2, T2, r2, f2.predicate, z2, new e.P(0, 0)).box, offscreen: false, placeable: false }), w4; }; - o3(() => m3(q2, p3.iconBox, e.ah.horizontal), () => { + o3((() => m3(q2, p3.iconBox, e.ah.horizontal)), (() => { const i4 = p3.verticalTextBox; return s2.allowVerticalPlacement && (!L2 || !L2.placeable) && t5.numVerticalGlyphVertices > 0 && i4 ? m3(i4, p3.verticalIconBox, e.ah.vertical) : { box: null, occluded: true, offscreen: null }; - }), L2 && (M2 = L2.placeable, R2 = L2.offscreen); + })), L2 && (M2 = L2.placeable, R2 = L2.offscreen); const g3 = i3(L2 && L2.placeable); if (!M2 && this.prevPlacement) { const e2 = this.prevPlacement.variableOffsets[t5.crossTileID]; @@ -240606,9 +240740,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const e2 = te(h3.text); m2(t4.text, o3, x2 ? ee : e2), m2(t4.text, r3, y2 ? ee : e2); const i4 = h3.text.isHidden(); - [s3.rightJustifiedTextSymbolIndex, s3.centerJustifiedTextSymbolIndex, s3.leftJustifiedTextSymbolIndex].forEach((e3) => { + [s3.rightJustifiedTextSymbolIndex, s3.centerJustifiedTextSymbolIndex, s3.leftJustifiedTextSymbolIndex].forEach(((e3) => { e3 >= 0 && (t4.text.placedSymbolArray.get(e3).hidden = i4 || x2 ? 1 : 0); - }), s3.verticalPlacedTextSymbolIndex >= 0 && (t4.text.placedSymbolArray.get(s3.verticalPlacedTextSymbolIndex).hidden = i4 || y2 ? 1 : 0); + })), s3.verticalPlacedTextSymbolIndex >= 0 && (t4.text.placedSymbolArray.get(s3.verticalPlacedTextSymbolIndex).hidden = i4 || y2 ? 1 : 0); const a3 = this.variableOffsets[s3.crossTileID]; a3 && this.markUsedJustification(t4, a3.anchor, s3, v2); const n3 = this.placedOrientations[s3.crossTileID]; @@ -240684,7 +240818,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return false; }, projectTileCoordinates(t4, e2, i2, a2) { throw new Error("Not implemented."); - }, translatePosition: (t4, e2, i2, a2) => function(t5, e3, i3, a3, s2 = false) { + }, translatePosition: (t4, e2, i2, a2) => (function(t5, e3, i3, a3, s2 = false) { if (!i3[0] && !i3[1]) return [0, 0]; const o2 = s2 ? "map" === a3 ? t5.angle : 0 : "viewport" === a3 ? -t5.angle : 0; if (o2) { @@ -240692,7 +240826,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i3 = [i3[0] * e4 - i3[1] * t6, i3[0] * t6 + i3[1] * e4]; } return [s2 ? i3[0] : Bt(e3, i3[0], t5.zoom), s2 ? i3[1] : Bt(e3, i3[1], t5.zoom)]; - }(t4, e2, i2, a2), getCircleRadiusCorrection: (t4) => 1 }; + })(t4, e2, i2, a2), getCircleRadiusCorrection: (t4) => 1 }; } class ae { constructor(t4) { @@ -240701,7 +240835,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ continuePlacement(t4, e2, i2, a2, s2) { const o2 = this._bucketParts; for (; this._currentTileIndex < t4.length; ) if (e2.getBucketParts(o2, a2, t4[this._currentTileIndex], this._sortAcrossTiles), this._currentTileIndex++, s2()) return true; - for (this._sortAcrossTiles && (this._sortAcrossTiles = false, o2.sort((t5, e3) => t5.sortKey - e3.sortKey)); this._currentPartIndex < o2.length; ) if (e2.placeLayerBucketPart(o2[this._currentPartIndex], this._seenCrossTileIDs, i2), this._currentPartIndex++, s2()) return true; + for (this._sortAcrossTiles && (this._sortAcrossTiles = false, o2.sort(((t5, e3) => t5.sortKey - e3.sortKey))); this._currentPartIndex < o2.length; ) if (e2.placeLayerBucketPart(o2[this._currentPartIndex], this._seenCrossTileIDs, i2), this._currentPartIndex++, s2()) return true; return false; } } @@ -240738,7 +240872,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ o2 ? o2.push(e2) : s2.set(a3, [e2]); } for (const [t5, i3] of s2) { - const a3 = { positions: i3.map((t6) => ({ x: Math.floor(t6.anchorX * oe), y: Math.floor(t6.anchorY * oe) })), crossTileIDs: i3.map((t6) => t6.crossTileID) }; + const a3 = { positions: i3.map(((t6) => ({ x: Math.floor(t6.anchorX * oe), y: Math.floor(t6.anchorY * oe) }))), crossTileIDs: i3.map(((t6) => t6.crossTileID)) }; if (a3.positions.length > 128) { const t6 = new e.av(a3.positions.length, 16, Uint16Array); for (const { x: e2, y: i4 } of a3.positions) t6.add(e2, i4); @@ -240778,7 +240912,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } getCrossTileIDsLists() { - return Object.values(this._symbolsByKey).map(({ crossTileIDs: t4 }) => t4); + return Object.values(this._symbolsByKey).map((({ crossTileIDs: t4 }) => t4)); } } class ne { @@ -240860,13 +240994,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } pruneUnusedLayers(t4) { const e2 = {}; - t4.forEach((t5) => { + t4.forEach(((t5) => { e2[t5] = true; - }); + })); for (const t5 in this.layerIndexes) e2[t5] || delete this.layerIndexes[t5]; } } - const ce = (t4, i2) => e.t(t4, i2 && i2.filter((t5) => "source.canvas" !== t5.identifier)), ue = e.aw(); + const ce = (t4, i2) => e.t(t4, i2 && i2.filter(((t5) => "source.canvas" !== t5.identifier))), ue = e.aw(); class de extends e.E { constructor(t4, i2 = {}) { super(), this._rtlPluginLoaded = () => { @@ -240874,7 +241008,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const e2 = this.sourceCaches[t5].getSource().type; "vector" !== e2 && "geojson" !== e2 || this.sourceCaches[t5].reload(); } - }, this.map = t4, this.dispatcher = new U(N(), t4._getMapId()), this.dispatcher.registerMessageHandler("GG", (t5, e2) => this.getGlyphs(t5, e2)), this.dispatcher.registerMessageHandler("GI", (t5, e2) => this.getImages(t5, e2)), this.imageManager = new T(), this.imageManager.setEventedParent(this), this.glyphManager = new C2(t4._requestManager, i2.localIdeographFontFamily), this.lineAtlas = new R(256, 512), this.crossTileSymbolIndex = new he(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new e.ax(), this._loaded = false, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", e.ay()), nt().on(st, this._rtlPluginLoaded), this.on("data", (t5) => { + }, this.map = t4, this.dispatcher = new U(N(), t4._getMapId()), this.dispatcher.registerMessageHandler("GG", ((t5, e2) => this.getGlyphs(t5, e2))), this.dispatcher.registerMessageHandler("GI", ((t5, e2) => this.getImages(t5, e2))), this.imageManager = new T(), this.imageManager.setEventedParent(this), this.glyphManager = new C2(t4._requestManager, i2.localIdeographFontFamily), this.lineAtlas = new R(256, 512), this.crossTileSymbolIndex = new he(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new e.ax(), this._loaded = false, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", e.ay()), nt().on(st, this._rtlPluginLoaded), this.on("data", ((t5) => { if ("source" !== t5.dataType || "metadata" !== t5.sourceDataType) return; const e2 = this.sourceCaches[t5.sourceId]; if (!e2) return; @@ -240883,24 +241017,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const e3 = this._layers[t6]; e3.source === i3.id && this._validateLayer(e3); } - }); + })); } loadURL(t4, i2 = {}, a2) { this.fire(new e.k("dataloading", { dataType: "style" })), i2.validate = "boolean" != typeof i2.validate || i2.validate; const s2 = this.map._requestManager.transformRequest(t4, "Style"); this._loadStyleRequest = new AbortController(); const o2 = this._loadStyleRequest; - e.h(s2, this._loadStyleRequest).then((t5) => { + e.h(s2, this._loadStyleRequest).then(((t5) => { this._loadStyleRequest = null, this._load(t5.data, i2, a2); - }).catch((t5) => { + })).catch(((t5) => { this._loadStyleRequest = null, t5 && !o2.signal.aborted && this.fire(new e.j(t5)); - }); + })); } loadJSON(t4, i2 = {}, a2) { - this.fire(new e.k("dataloading", { dataType: "style" })), this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then(() => { + this.fire(new e.k("dataloading", { dataType: "style" })), this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then((() => { this._frameRequest = null, i2.validate = false !== i2.validate, this._load(t4, i2, a2); - }).catch(() => { - }); + })).catch((() => { + })); } loadEmpty() { this.fire(new e.k("dataloading", { dataType: "style" })), this._load(ue, { validate: false }); @@ -240916,7 +241050,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } _createLayers() { const t4 = e.az(this.stylesheet.layers); - this.dispatcher.broadcast("SL", t4), this._order = t4.map((t5) => t5.id), this._layers = {}, this._serializedLayers = null; + this.dispatcher.broadcast("SL", t4), this._order = t4.map(((t5) => t5.id)), this._layers = {}, this._serializedLayers = null; for (const i2 of t4) { const t5 = e.aA(i2); t5.setEventedParent(this, { layer: { id: i2.id } }), this._layers[i2.id] = t5; @@ -240924,8 +241058,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } _loadSprite(t4, i2 = false, a2 = void 0) { let s2; - this.imageManager.setLoaded(false), this._spriteRequest = new AbortController(), function(t5, i3, a3, s3) { - return e._(this, void 0, void 0, function* () { + this.imageManager.setLoaded(false), this._spriteRequest = new AbortController(), (function(t5, i3, a3, s3) { + return e._(this, void 0, void 0, (function* () { const r2 = x(t5), n2 = a3 > 1 ? "@2x" : "", l2 = {}, h2 = {}; for (const { id: t6, url: a4 } of r2) { const o2 = i3.transformRequest(y(a4, n2, ".json"), "SpriteJSON"); @@ -240933,8 +241067,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const r3 = i3.transformRequest(y(a4, n2, ".png"), "SpriteImage"); h2[t6] = _.getImage(r3, s3); } - return yield Promise.all([...Object.values(l2), ...Object.values(h2)]), function(t6, i4) { - return e._(this, void 0, void 0, function* () { + return yield Promise.all([...Object.values(l2), ...Object.values(h2)]), (function(t6, i4) { + return e._(this, void 0, void 0, (function* () { const e2 = {}; for (const a4 in t6) { e2[a4] = {}; @@ -240945,24 +241079,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return e2; - }); - }(l2, h2); - }); - }(t4, this.map._requestManager, this.map.getPixelRatio(), this._spriteRequest).then((t5) => { + })); + })(l2, h2); + })); + })(t4, this.map._requestManager, this.map.getPixelRatio(), this._spriteRequest).then(((t5) => { if (this._spriteRequest = null, t5) for (const e2 in t5) { this._spritesImagesIds[e2] = []; - const a3 = this._spritesImagesIds[e2] ? this._spritesImagesIds[e2].filter((e3) => !(e3 in t5)) : []; + const a3 = this._spritesImagesIds[e2] ? this._spritesImagesIds[e2].filter(((e3) => !(e3 in t5))) : []; for (const t6 of a3) this.imageManager.removeImage(t6), this._changedImages[t6] = true; for (const a4 in t5[e2]) { const s3 = "default" === e2 ? a4 : `${e2}:${a4}`; this._spritesImagesIds[e2].push(s3), s3 in this.imageManager.images ? this.imageManager.updateImage(s3, t5[e2][a4], false) : this.imageManager.addImage(s3, t5[e2][a4]), i2 && (this._changedImages[s3] = true); } } - }).catch((t5) => { + })).catch(((t5) => { this._spriteRequest = null, s2 = t5, this.fire(new e.j(s2)); - }).finally(() => { + })).finally((() => { this.imageManager.setLoaded(true), this._availableImages = this.imageManager.listImages(), i2 && (this._changed = true), this.dispatcher.broadcast("SI", this._availableImages), this.fire(new e.k("data", { dataType: "style" })), a2 && a2(s2); - }); + })); } _unloadSprite() { for (const t4 of Object.values(this._spritesImagesIds).flat()) this.imageManager.removeImage(t4), this._changedImages[t4] = true; @@ -241086,50 +241220,50 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ case "setPitch": continue; case "addLayer": - e2.push(() => this.addLayer.apply(this, a2.args)); + e2.push((() => this.addLayer.apply(this, a2.args))); break; case "removeLayer": - e2.push(() => this.removeLayer.apply(this, a2.args)); + e2.push((() => this.removeLayer.apply(this, a2.args))); break; case "setPaintProperty": - e2.push(() => this.setPaintProperty.apply(this, a2.args)); + e2.push((() => this.setPaintProperty.apply(this, a2.args))); break; case "setLayoutProperty": - e2.push(() => this.setLayoutProperty.apply(this, a2.args)); + e2.push((() => this.setLayoutProperty.apply(this, a2.args))); break; case "setFilter": - e2.push(() => this.setFilter.apply(this, a2.args)); + e2.push((() => this.setFilter.apply(this, a2.args))); break; case "addSource": - e2.push(() => this.addSource.apply(this, a2.args)); + e2.push((() => this.addSource.apply(this, a2.args))); break; case "removeSource": - e2.push(() => this.removeSource.apply(this, a2.args)); + e2.push((() => this.removeSource.apply(this, a2.args))); break; case "setLayerZoomRange": - e2.push(() => this.setLayerZoomRange.apply(this, a2.args)); + e2.push((() => this.setLayerZoomRange.apply(this, a2.args))); break; case "setLight": - e2.push(() => this.setLight.apply(this, a2.args)); + e2.push((() => this.setLight.apply(this, a2.args))); break; case "setGeoJSONSourceData": - e2.push(() => this.setGeoJSONSourceData.apply(this, a2.args)); + e2.push((() => this.setGeoJSONSourceData.apply(this, a2.args))); break; case "setGlyphs": - e2.push(() => this.setGlyphs.apply(this, a2.args)); + e2.push((() => this.setGlyphs.apply(this, a2.args))); break; case "setSprite": - e2.push(() => this.setSprite.apply(this, a2.args)); + e2.push((() => this.setSprite.apply(this, a2.args))); break; case "setSky": - e2.push(() => this.setSky.apply(this, a2.args)); + e2.push((() => this.setSky.apply(this, a2.args))); break; case "setTerrain": - e2.push(() => this.map.setTerrain.apply(this, a2.args)); + e2.push((() => this.map.setTerrain.apply(this, a2.args))); break; case "setTransition": - e2.push(() => { - }); + e2.push((() => { + })); break; default: i2.push(a2.command); @@ -241162,7 +241296,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (["vector", "raster", "geojson", "video", "image"].indexOf(i2.type) >= 0 && this._validate(e.u.source, `sources.${t4}`, i2, null, a2)) return; this.map && this.map._collectResourceTiming && (i2.collectResourceTiming = true); const s2 = this.sourceCaches[t4] = new ut(t4, i2, this.dispatcher); - s2.style = this, s2.setEventedParent(this, () => ({ isSourceLoaded: s2.loaded(), source: s2.serialize(), sourceId: t4 })), s2.onAdd(this.map), this._changed = true; + s2.style = this, s2.setEventedParent(this, (() => ({ isSourceLoaded: s2.loaded(), source: s2.serialize(), sourceId: t4 }))), s2.onAdd(this.map), this._changed = true; } removeSource(t4) { if (this._checkLoaded(), void 0 === this.sourceCaches[t4]) throw new Error("There is no source with this ID"); @@ -241284,8 +241418,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } serialize() { if (!this._loaded) return; - const t4 = e.aF(this.sourceCaches, (t5) => t5.serialize()), i2 = this._serializeByIds(this._order, true), a2 = this.map.getTerrain() || void 0, s2 = this.stylesheet; - return e.aG({ version: s2.version, name: s2.name, metadata: s2.metadata, light: s2.light, sky: s2.sky, center: s2.center, zoom: s2.zoom, bearing: s2.bearing, pitch: s2.pitch, sprite: s2.sprite, glyphs: s2.glyphs, transition: s2.transition, sources: t4, layers: i2, terrain: a2 }, (t5) => void 0 !== t5); + const t4 = e.aF(this.sourceCaches, ((t5) => t5.serialize())), i2 = this._serializeByIds(this._order, true), a2 = this.map.getTerrain() || void 0, s2 = this.stylesheet; + return e.aG({ version: s2.version, name: s2.name, metadata: s2.metadata, light: s2.light, sky: s2.sky, center: s2.center, zoom: s2.zoom, bearing: s2.bearing, pitch: s2.pitch, sprite: s2.sprite, glyphs: s2.glyphs, transition: s2.transition, sources: t4, layers: i2, terrain: a2 }, ((t5) => void 0 !== t5)); } _updateLayer(t4) { this._updatedLayers[t4.id] = true, t4.source && !this._updatedSources[t4.source] && "raster" !== this.sourceCaches[t4.source].getSource().type && (this._updatedSources[t4.source] = "reload", this.sourceCaches[t4.source].pause()), this._serializedLayers = null, this._changed = true; @@ -241302,7 +241436,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } } - a2.sort((t5, e3) => e3.intersectionZ - t5.intersectionZ); + a2.sort(((t5, e3) => e3.intersectionZ - t5.intersectionZ)); const s2 = []; for (let o2 = this._order.length - 1; o2 >= 0; o2--) { const r2 = this._order[o2]; @@ -241333,7 +241467,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i2.availableImages = this._availableImages; const r2 = this._serializedAllLayers(); for (const e2 in this.sourceCaches) i2.layers && !s2[e2] || o2.push(q(this.sourceCaches[e2], this._layers, r2, t4, i2, a2)); - return this.placement && o2.push(function(t5, e2, i3, a3, s3, o3, r3) { + return this.placement && o2.push((function(t5, e2, i3, a3, s3, o3, r3) { const n2 = {}, l2 = o3.queryRenderedSymbols(a3), h2 = []; for (const t6 of Object.keys(l2).map(Number)) h2.push(r3[t6]); h2.sort(V); @@ -241341,35 +241475,35 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a4 = i4.featureIndex.lookupSymbolFeatures(l2[i4.bucketInstanceId], e2, i4.bucketIndex, i4.sourceLayerIndex, s3.filter, s3.layers, s3.availableImages, t5); for (const t6 in a4) { const e3 = n2[t6] = n2[t6] || [], s4 = a4[t6]; - s4.sort((t7, e4) => { + s4.sort(((t7, e4) => { const a5 = i4.featureSortOrder; if (a5) { const i5 = a5.indexOf(t7.featureIndex); return a5.indexOf(e4.featureIndex) - i5; } return e4.featureIndex - t7.featureIndex; - }); + })); for (const t7 of s4) e3.push(t7); } } - for (const e3 in n2) n2[e3].forEach((a4) => { + for (const e3 in n2) n2[e3].forEach(((a4) => { const s4 = a4.feature, o4 = i3[t5[e3].source].getFeatureState(s4.layer["source-layer"], s4.id); s4.source = s4.layer.source, s4.layer["source-layer"] && (s4.sourceLayer = s4.layer["source-layer"]), s4.state = o4; - }); + })); return n2; - }(this._layers, r2, this.sourceCaches, t4, i2, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(o2); + })(this._layers, r2, this.sourceCaches, t4, i2, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(o2); } querySourceFeatures(t4, i2) { i2 && i2.filter && this._validate(e.u.filter, "querySourceFeatures.filter", i2.filter, null, i2); const a2 = this.sourceCaches[t4]; - return a2 ? function(t5, e2) { - const i3 = t5.getRenderableIds().map((e3) => t5.getTileByID(e3)), a3 = [], s2 = {}; + return a2 ? (function(t5, e2) { + const i3 = t5.getRenderableIds().map(((e3) => t5.getTileByID(e3))), a3 = [], s2 = {}; for (let t6 = 0; t6 < i3.length; t6++) { const o2 = i3[t6], r2 = o2.tileID.canonical.key; s2[r2] || (s2[r2] = true, o2.querySourceFeatures(a3, e2)); } return a3; - }(a2, i2) : []; + })(a2, i2) : []; } getLight() { return this.light.getLight(); @@ -241436,7 +241570,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if ("symbol" !== i3.type) continue; if (!l2[i3.source]) { const t5 = this.sourceCaches[i3.source]; - l2[i3.source] = t5.getRenderableIds(true).map((e4) => t5.getTileByID(e4)).sort((t6, e4) => e4.tileID.overscaledZ - t6.tileID.overscaledZ || (t6.tileID.isLessThan(e4.tileID) ? -1 : 1)); + l2[i3.source] = t5.getRenderableIds(true).map(((e4) => t5.getTileByID(e4))).sort(((t6, e4) => e4.tileID.overscaledZ - t6.tileID.overscaledZ || (t6.tileID.isLessThan(e4.tileID) ? -1 : 1))); } const a3 = this.crossTileSymbolIndex.addLayer(i3, l2[i3.source], t4.center.lng); r2 = r2 || a3; @@ -241451,18 +241585,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (const t4 in this.sourceCaches) this.sourceCaches[t4].releaseSymbolFadeTiles(); } getImages(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const t5 = yield this.imageManager.getImages(i2.icons); this._updateTilesForChangedImages(); const e2 = this.sourceCaches[i2.source]; return e2 && e2.setDependencies(i2.tileID.key, i2.type, i2.icons), t5; - }); + })); } getGlyphs(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const t5 = yield this.glyphManager.getGlyphs(i2.stacks), e2 = this.sourceCaches[i2.source]; return e2 && e2.setDependencies(i2.tileID.key, i2.type, [""]), t5; - }); + })); } getGlyphsUrl() { return this.stylesheet.glyphs || null; @@ -241478,9 +241612,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ removeSprite(t4) { this._checkLoaded(); const i2 = x(this.stylesheet.sprite); - if (i2.find((e2) => e2.id === t4)) { + if (i2.find(((e2) => e2.id === t4))) { if (this._spritesImagesIds[t4]) for (const e2 of this._spritesImagesIds[t4]) this.imageManager.removeImage(e2), this._changedImages[e2] = true; - i2.splice(i2.findIndex((e2) => e2.id === t4), 1), this.stylesheet.sprite = i2.length > 0 ? i2 : void 0, delete this._spritesImagesIds[t4], this._availableImages = this.imageManager.listImages(), this._changed = true, this.dispatcher.broadcast("SI", this._availableImages), this.fire(new e.k("data", { dataType: "style" })); + i2.splice(i2.findIndex(((e2) => e2.id === t4)), 1), this.stylesheet.sprite = i2.length > 0 ? i2 : void 0, delete this._spritesImagesIds[t4], this._availableImages = this.imageManager.listImages(), this._changed = true, this.dispatcher.broadcast("SI", this._availableImages), this.fire(new e.k("data", { dataType: "style" })); } else this.fire(new e.j(new Error(`Sprite "${t4}" doesn't exists on this map.`))); } getSprite() { @@ -241494,7 +241628,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const pe = { prelude: me("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\n", "#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef TERRAIN3D\nuniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;\n#endif\nconst highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {\n#ifdef TERRAIN3D\nhighp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));\n#else\nreturn 1.0;\n#endif\n}float calculate_visibility(vec4 pos) {\n#ifdef TERRAIN3D\nvec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}"), background: me("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"), backgroundPattern: me("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"), circle: me("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"), clippingMask: me("void main() {gl_FragColor=vec4(1.0);}", "attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"), heatmap: me("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}"), heatmapTexture: me("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"), collisionBox: me("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}", "attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"), collisionCircle: me("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}", "attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"), debug: me("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}", "attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"), fill: me("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"), fillOutline: me("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"), fillOutlinePattern: me("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"), fillPattern: me("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"), fillExtrusion: me("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"), fillExtrusionPattern: me("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"), hillshadePrepare: me("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"), hillshade: me("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"), line: me("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"), lineGradient: me("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"), linePattern: me("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"), lineSDF: me("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"), raster: me("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"), symbolIcon: me("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}"), symbolSDF: me("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"), symbolTextAndIcon: me("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"), terrain: me("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}", "attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"), terrainDepth: me("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}", "attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"), terrainCoords: me("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}", "attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"), sky: me("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}", "attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}") }; function me(t4, e2) { const i2 = /#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g, a2 = e2.match(/attribute ([\w]+) ([\w]+)/g), s2 = t4.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g), o2 = e2.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g), r2 = o2 ? o2.concat(s2) : s2, n2 = {}; - return { fragmentSource: t4 = t4.replace(i2, (t5, e3, i3, a3, s3) => (n2[s3] = true, "define" === e3 ? ` + return { fragmentSource: t4 = t4.replace(i2, ((t5, e3, i3, a3, s3) => (n2[s3] = true, "define" === e3 ? ` #ifndef HAS_UNIFORM_u_${s3} varying ${i3} ${a3} ${s3}; #else @@ -241504,7 +241638,7 @@ uniform ${i3} ${a3} u_${s3}; #ifdef HAS_UNIFORM_u_${s3} ${i3} ${a3} ${s3} = u_${s3}; #endif -`)), vertexSource: e2 = e2.replace(i2, (t5, e3, i3, a3, s3) => { +`))), vertexSource: e2 = e2.replace(i2, ((t5, e3, i3, a3, s3) => { const o3 = "float" === a3 ? "vec2" : "vec4", r3 = s3.match(/color/) ? "color" : o3; return n2[s3] ? "define" === e3 ? ` #ifndef HAS_UNIFORM_u_${s3} @@ -241546,7 +241680,7 @@ uniform ${i3} ${a3} u_${s3}; ${i3} ${a3} ${s3} = u_${s3}; #endif `; - }), staticAttributes: a2, staticUniforms: r2 }; + })), staticAttributes: a2, staticUniforms: r2 }; } class fe { constructor() { @@ -241641,17 +241775,17 @@ uniform ${i3} ${a3} u_${s3}; return { u_image: 0, u_texsize: i2.imageAtlasTexture.size, u_scale: [a2, t4.fromScale, t4.toScale], u_fade: t4.t, u_pixel_coord_upper: [r2 >> 16, n2 >> 16], u_pixel_coord_lower: [65535 & r2, 65535 & n2] }; } const be = (t4, i2, a2, s2) => { - const o2 = i2.style.light, r2 = o2.properties.get("position"), n2 = [r2.x, r2.y, r2.z], l2 = function() { + const o2 = i2.style.light, r2 = o2.properties.get("position"), n2 = [r2.x, r2.y, r2.z], l2 = (function() { var t5 = new e.A(9); return e.A != Float32Array && (t5[1] = 0, t5[2] = 0, t5[3] = 0, t5[5] = 0, t5[6] = 0, t5[7] = 0), t5[0] = 1, t5[4] = 1, t5[8] = 1, t5; - }(); - "viewport" === o2.properties.get("anchor") && function(t5, e2) { + })(); + "viewport" === o2.properties.get("anchor") && (function(t5, e2) { var i3 = Math.sin(e2), a3 = Math.cos(e2); t5[0] = a3, t5[1] = i3, t5[2] = 0, t5[3] = -i3, t5[4] = a3, t5[5] = 0, t5[6] = 0, t5[7] = 0, t5[8] = 1; - }(l2, -i2.transform.angle), function(t5, e2, i3) { + })(l2, -i2.transform.angle), (function(t5, e2, i3) { var a3 = e2[0], s3 = e2[1], o3 = e2[2]; t5[0] = a3 * i3[0] + s3 * i3[3] + o3 * i3[6], t5[1] = a3 * i3[1] + s3 * i3[4] + o3 * i3[7], t5[2] = a3 * i3[2] + s3 * i3[5] + o3 * i3[8]; - }(n2, n2, l2); + })(n2, n2, l2); const h2 = o2.properties.get("color"); return { u_matrix: t4, u_lightpos: n2, u_lightintensity: o2.properties.get("intensity"), u_lightcolor: [h2.r, h2.g, h2.b], u_vertical_gradient: +a2, u_opacity: s2 }; }, we = (t4, i2, a2, s2, o2, r2, n2) => e.e(be(t4, i2, a2, s2), ye(r2, i2, n2), { u_height_factor: -Math.pow(2, o2.overscaledZ) / n2.tileSize / 8 }), Te = (t4) => ({ u_matrix: t4 }), Ie = (t4, i2, a2, s2) => e.e(Te(t4), ye(a2, i2, s2)), Ee = (t4, e2) => ({ u_matrix: t4, u_world: e2 }), Pe = (t4, i2, a2, s2, o2) => e.e(Ie(t4, i2, a2, s2), { u_world: o2 }), Ce = (t4, e2, i2, a2) => { @@ -241703,10 +241837,10 @@ uniform ${i3} ${a3} u_${s3}; }, qe = (t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, p2, m2) => { const f2 = n2.transform; return e.e(Ze(t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, m2), { u_gamma_scale: s2 ? Math.cos(f2._pitch) * f2.cameraToCenterDistance : 1, u_device_pixel_ratio: n2.pixelRatio, u_is_halo: +p2 }); - }, Ve = (t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, p2) => e.e(qe(t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, true, d2, true, p2), { u_texsize_icon: _2, u_texture_icon: 1 }), Ge = (t4, e2, i2) => ({ u_matrix: t4, u_opacity: e2, u_color: i2 }), He = (t4, i2, a2, s2, o2, r2) => e.e(function(t5, e2, i3, a3) { + }, Ve = (t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, p2) => e.e(qe(t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, true, d2, true, p2), { u_texsize_icon: _2, u_texture_icon: 1 }), Ge = (t4, e2, i2) => ({ u_matrix: t4, u_opacity: e2, u_color: i2 }), He = (t4, i2, a2, s2, o2, r2) => e.e((function(t5, e2, i3, a3) { const s3 = i3.imageManager.getPattern(t5.from.toString()), o3 = i3.imageManager.getPattern(t5.to.toString()), { width: r3, height: n2 } = i3.imageManager.getPixelSize(), l2 = Math.pow(2, a3.tileID.overscaledZ), h2 = a3.tileSize * Math.pow(2, i3.transform.tileZoom) / l2, c2 = h2 * (a3.tileID.canonical.x + a3.tileID.wrap * l2), u2 = h2 * a3.tileID.canonical.y; return { u_image: 0, u_pattern_tl_a: s3.tl, u_pattern_br_a: s3.br, u_pattern_tl_b: o3.tl, u_pattern_br_b: o3.br, u_texsize: [r3, n2], u_mix: e2.t, u_pattern_size_a: s3.displaySize, u_pattern_size_b: o3.displaySize, u_scale_a: e2.fromScale, u_scale_b: e2.toScale, u_tile_units_to_pixels: 1 / Bt(a3, 1, i3.transform.tileZoom), u_pixel_coord_upper: [c2 >> 16, u2 >> 16], u_pixel_coord_lower: [65535 & c2, 65535 & u2] }; - }(s2, r2, a2, o2), { u_matrix: t4, u_opacity: i2 }), We = { fillExtrusion: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_opacity: new e.aI(t4, i2.u_opacity) }), fillExtrusionPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_height_factor: new e.aI(t4, i2.u_height_factor), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade), u_opacity: new e.aI(t4, i2.u_opacity) }), fill: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), fillPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), fillOutline: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world) }), fillOutlinePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), circle: (t4, i2) => ({ u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_scale_with_map: new e.aH(t4, i2.u_scale_with_map), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_extrude_scale: new e.aO(t4, i2.u_extrude_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_matrix: new e.aJ(t4, i2.u_matrix) }), collisionBox: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_pixel_extrude_scale: new e.aO(t4, i2.u_pixel_extrude_scale) }), collisionCircle: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_inv_matrix: new e.aJ(t4, i2.u_inv_matrix), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_viewport_size: new e.aO(t4, i2.u_viewport_size) }), debug: (t4, i2) => ({ u_color: new e.aL(t4, i2.u_color), u_matrix: new e.aJ(t4, i2.u_matrix), u_overlay: new e.aH(t4, i2.u_overlay), u_overlay_scale: new e.aI(t4, i2.u_overlay_scale) }), clippingMask: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmap: (t4, i2) => ({ u_extrude_scale: new e.aI(t4, i2.u_extrude_scale), u_intensity: new e.aI(t4, i2.u_intensity), u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmapTexture: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_color_ramp: new e.aH(t4, i2.u_color_ramp), u_opacity: new e.aI(t4, i2.u_opacity) }), hillshade: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_latrange: new e.aO(t4, i2.u_latrange), u_light: new e.aO(t4, i2.u_light), u_shadow: new e.aL(t4, i2.u_shadow), u_highlight: new e.aL(t4, i2.u_highlight), u_accent: new e.aL(t4, i2.u_accent) }), hillshadePrepare: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_dimension: new e.aO(t4, i2.u_dimension), u_zoom: new e.aI(t4, i2.u_zoom), u_unpack: new e.aK(t4, i2.u_unpack) }), line: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels) }), lineGradient: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_image: new e.aH(t4, i2.u_image), u_image_height: new e.aI(t4, i2.u_image_height) }), linePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texsize: new e.aO(t4, i2.u_texsize), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_image: new e.aH(t4, i2.u_image), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), lineSDF: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_patternscale_a: new e.aO(t4, i2.u_patternscale_a), u_patternscale_b: new e.aO(t4, i2.u_patternscale_b), u_sdfgamma: new e.aI(t4, i2.u_sdfgamma), u_image: new e.aH(t4, i2.u_image), u_tex_y_a: new e.aI(t4, i2.u_tex_y_a), u_tex_y_b: new e.aI(t4, i2.u_tex_y_b), u_mix: new e.aI(t4, i2.u_mix) }), raster: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_tl_parent: new e.aO(t4, i2.u_tl_parent), u_scale_parent: new e.aI(t4, i2.u_scale_parent), u_buffer_scale: new e.aI(t4, i2.u_buffer_scale), u_fade_t: new e.aI(t4, i2.u_fade_t), u_opacity: new e.aI(t4, i2.u_opacity), u_image0: new e.aH(t4, i2.u_image0), u_image1: new e.aH(t4, i2.u_image1), u_brightness_low: new e.aI(t4, i2.u_brightness_low), u_brightness_high: new e.aI(t4, i2.u_brightness_high), u_saturation_factor: new e.aI(t4, i2.u_saturation_factor), u_contrast_factor: new e.aI(t4, i2.u_contrast_factor), u_spin_weights: new e.aN(t4, i2.u_spin_weights) }), symbolIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolSDF: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolTextAndIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texsize_icon: new e.aO(t4, i2.u_texsize_icon), u_texture: new e.aH(t4, i2.u_texture), u_texture_icon: new e.aH(t4, i2.u_texture_icon), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), background: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_color: new e.aL(t4, i2.u_color) }), backgroundPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_image: new e.aH(t4, i2.u_image), u_pattern_tl_a: new e.aO(t4, i2.u_pattern_tl_a), u_pattern_br_a: new e.aO(t4, i2.u_pattern_br_a), u_pattern_tl_b: new e.aO(t4, i2.u_pattern_tl_b), u_pattern_br_b: new e.aO(t4, i2.u_pattern_br_b), u_texsize: new e.aO(t4, i2.u_texsize), u_mix: new e.aI(t4, i2.u_mix), u_pattern_size_a: new e.aO(t4, i2.u_pattern_size_a), u_pattern_size_b: new e.aO(t4, i2.u_pattern_size_b), u_scale_a: new e.aI(t4, i2.u_scale_a), u_scale_b: new e.aI(t4, i2.u_scale_b), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_tile_units_to_pixels: new e.aI(t4, i2.u_tile_units_to_pixels) }), terrain: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_ele_delta: new e.aI(t4, i2.u_ele_delta), u_fog_matrix: new e.aJ(t4, i2.u_fog_matrix), u_fog_color: new e.aL(t4, i2.u_fog_color), u_fog_ground_blend: new e.aI(t4, i2.u_fog_ground_blend), u_fog_ground_blend_opacity: new e.aI(t4, i2.u_fog_ground_blend_opacity), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon_fog_blend: new e.aI(t4, i2.u_horizon_fog_blend) }), terrainDepth: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), terrainCoords: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_terrain_coords_id: new e.aI(t4, i2.u_terrain_coords_id), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), sky: (t4, i2) => ({ u_sky_color: new e.aL(t4, i2.u_sky_color), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon: new e.aI(t4, i2.u_horizon), u_sky_horizon_blend: new e.aI(t4, i2.u_sky_horizon_blend) }) }; + })(s2, r2, a2, o2), { u_matrix: t4, u_opacity: i2 }), We = { fillExtrusion: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_opacity: new e.aI(t4, i2.u_opacity) }), fillExtrusionPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_height_factor: new e.aI(t4, i2.u_height_factor), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade), u_opacity: new e.aI(t4, i2.u_opacity) }), fill: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), fillPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), fillOutline: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world) }), fillOutlinePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), circle: (t4, i2) => ({ u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_scale_with_map: new e.aH(t4, i2.u_scale_with_map), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_extrude_scale: new e.aO(t4, i2.u_extrude_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_matrix: new e.aJ(t4, i2.u_matrix) }), collisionBox: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_pixel_extrude_scale: new e.aO(t4, i2.u_pixel_extrude_scale) }), collisionCircle: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_inv_matrix: new e.aJ(t4, i2.u_inv_matrix), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_viewport_size: new e.aO(t4, i2.u_viewport_size) }), debug: (t4, i2) => ({ u_color: new e.aL(t4, i2.u_color), u_matrix: new e.aJ(t4, i2.u_matrix), u_overlay: new e.aH(t4, i2.u_overlay), u_overlay_scale: new e.aI(t4, i2.u_overlay_scale) }), clippingMask: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmap: (t4, i2) => ({ u_extrude_scale: new e.aI(t4, i2.u_extrude_scale), u_intensity: new e.aI(t4, i2.u_intensity), u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmapTexture: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_color_ramp: new e.aH(t4, i2.u_color_ramp), u_opacity: new e.aI(t4, i2.u_opacity) }), hillshade: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_latrange: new e.aO(t4, i2.u_latrange), u_light: new e.aO(t4, i2.u_light), u_shadow: new e.aL(t4, i2.u_shadow), u_highlight: new e.aL(t4, i2.u_highlight), u_accent: new e.aL(t4, i2.u_accent) }), hillshadePrepare: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_dimension: new e.aO(t4, i2.u_dimension), u_zoom: new e.aI(t4, i2.u_zoom), u_unpack: new e.aK(t4, i2.u_unpack) }), line: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels) }), lineGradient: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_image: new e.aH(t4, i2.u_image), u_image_height: new e.aI(t4, i2.u_image_height) }), linePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texsize: new e.aO(t4, i2.u_texsize), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_image: new e.aH(t4, i2.u_image), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), lineSDF: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_patternscale_a: new e.aO(t4, i2.u_patternscale_a), u_patternscale_b: new e.aO(t4, i2.u_patternscale_b), u_sdfgamma: new e.aI(t4, i2.u_sdfgamma), u_image: new e.aH(t4, i2.u_image), u_tex_y_a: new e.aI(t4, i2.u_tex_y_a), u_tex_y_b: new e.aI(t4, i2.u_tex_y_b), u_mix: new e.aI(t4, i2.u_mix) }), raster: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_tl_parent: new e.aO(t4, i2.u_tl_parent), u_scale_parent: new e.aI(t4, i2.u_scale_parent), u_buffer_scale: new e.aI(t4, i2.u_buffer_scale), u_fade_t: new e.aI(t4, i2.u_fade_t), u_opacity: new e.aI(t4, i2.u_opacity), u_image0: new e.aH(t4, i2.u_image0), u_image1: new e.aH(t4, i2.u_image1), u_brightness_low: new e.aI(t4, i2.u_brightness_low), u_brightness_high: new e.aI(t4, i2.u_brightness_high), u_saturation_factor: new e.aI(t4, i2.u_saturation_factor), u_contrast_factor: new e.aI(t4, i2.u_contrast_factor), u_spin_weights: new e.aN(t4, i2.u_spin_weights) }), symbolIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolSDF: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolTextAndIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texsize_icon: new e.aO(t4, i2.u_texsize_icon), u_texture: new e.aH(t4, i2.u_texture), u_texture_icon: new e.aH(t4, i2.u_texture_icon), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), background: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_color: new e.aL(t4, i2.u_color) }), backgroundPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_image: new e.aH(t4, i2.u_image), u_pattern_tl_a: new e.aO(t4, i2.u_pattern_tl_a), u_pattern_br_a: new e.aO(t4, i2.u_pattern_br_a), u_pattern_tl_b: new e.aO(t4, i2.u_pattern_tl_b), u_pattern_br_b: new e.aO(t4, i2.u_pattern_br_b), u_texsize: new e.aO(t4, i2.u_texsize), u_mix: new e.aI(t4, i2.u_mix), u_pattern_size_a: new e.aO(t4, i2.u_pattern_size_a), u_pattern_size_b: new e.aO(t4, i2.u_pattern_size_b), u_scale_a: new e.aI(t4, i2.u_scale_a), u_scale_b: new e.aI(t4, i2.u_scale_b), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_tile_units_to_pixels: new e.aI(t4, i2.u_tile_units_to_pixels) }), terrain: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_ele_delta: new e.aI(t4, i2.u_ele_delta), u_fog_matrix: new e.aJ(t4, i2.u_fog_matrix), u_fog_color: new e.aL(t4, i2.u_fog_color), u_fog_ground_blend: new e.aI(t4, i2.u_fog_ground_blend), u_fog_ground_blend_opacity: new e.aI(t4, i2.u_fog_ground_blend_opacity), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon_fog_blend: new e.aI(t4, i2.u_horizon_fog_blend) }), terrainDepth: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), terrainCoords: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_terrain_coords_id: new e.aI(t4, i2.u_terrain_coords_id), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), sky: (t4, i2) => ({ u_sky_color: new e.aL(t4, i2.u_sky_color), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon: new e.aI(t4, i2.u_horizon), u_sky_horizon_blend: new e.aI(t4, i2.u_sky_horizon_blend) }) }; class $e { constructor(t4, e2, i2) { this.context = t4; @@ -242226,7 +242360,7 @@ uniform ${i3} ${a3} u_${s3}; const i3 = 4 * e2, a3 = t5.circleArray[i3 + 0], s3 = t5.circleArray[i3 + 1], o3 = t5.circleArray[i3 + 2], r3 = t5.circleArray[i3 + 3]; p2.emplace(m2++, a3, s3, o3, r3, 0), p2.emplace(m2++, a3, s3, o3, r3, 1), p2.emplace(m2++, a3, s3, o3, r3, 2), p2.emplace(m2++, a3, s3, o3, r3, 3); } - (!Zi || Zi.length < 2 * c2) && (Zi = function(t5) { + (!Zi || Zi.length < 2 * c2) && (Zi = (function(t5) { const i3 = 2 * t5, a3 = new e.aT(); a3.resize(i3), a3._trim(); for (let t6 = 0; t6 < i3; t6++) { @@ -242234,7 +242368,7 @@ uniform ${i3} ${a3} u_${s3}; a3.uint16[e2 + 0] = 4 * t6 + 0, a3.uint16[e2 + 1] = 4 * t6 + 1, a3.uint16[e2 + 2] = 4 * t6 + 2, a3.uint16[e2 + 3] = 4 * t6 + 2, a3.uint16[e2 + 4] = 4 * t6 + 3, a3.uint16[e2 + 5] = 4 * t6 + 0; } return a3; - }(c2)); + })(c2)); const f2 = r2.createIndexBuffer(Zi, true), g2 = r2.createVertexBuffer(p2, e.aS.members, true); for (const i3 of h2) { const s3 = Se(i3.transform, i3.invTransform, t4.transform); @@ -242326,7 +242460,7 @@ uniform ${i3} ${a3} u_${s3}; for (const i3 of t5) P2.push({ segments: new e.a0([i3]), sortKey: i3.sortKey, state: Y2, terrainData: M2 }); } else P2.push({ segments: u3.segments, sortKey: 0, state: Y2, terrainData: M2 }); } - T2 && P2.sort((t5, e2) => t5.sortKey - e2.sortKey); + T2 && P2.sort(((t5, e2) => t5.sortKey - e2.sortKey)); for (const e2 of P2) { const i3 = e2.state; if (_2.activeTexture.set(p2.TEXTURE0), i3.atlasTexture.bind(i3.atlasInterpolation, p2.CLAMP_TO_EDGE), i3.atlasTextureIcon && (_2.activeTexture.set(p2.TEXTURE1), i3.atlasTextureIcon && i3.atlasTextureIcon.bind(i3.atlasInterpolationIcon, p2.CLAMP_TO_EDGE)), i3.isSDF) { @@ -242465,11 +242599,11 @@ uniform ${i3} ${a3} u_${s3}; s2.activeTexture.set(o2.TEXTURE0); const _2 = i2.getTileByID(a2.key).latestRawTileData, p2 = Math.floor((_2 && _2.byteLength || 0) / 1024), m2 = i2.getTile(a2).tileSize, f2 = 512 / Math.min(m2, 512) * (a2.overscaledZ / t4.transform.zoom) * 0.5; let g2 = a2.canonical.toString(); - a2.overscaledZ !== a2.canonical.z && (g2 += ` => ${a2.overscaledZ}`), function(t5, e2) { + a2.overscaledZ !== a2.canonical.z && (g2 += ` => ${a2.overscaledZ}`), (function(t5, e2) { t5.initDebugOverlayCanvas(); const i3 = t5.debugOverlayCanvas, a3 = t5.context.gl, s3 = t5.debugOverlayCanvas.getContext("2d"); s3.clearRect(0, 0, i3.width, i3.height), s3.shadowColor = "white", s3.shadowBlur = 2, s3.lineWidth = 1.5, s3.strokeStyle = "white", s3.textBaseline = "top", s3.font = "bold 36px Open Sans, sans-serif", s3.fillText(e2, 5, 5), s3.strokeText(e2, 5, 5), t5.debugOverlayTexture.update(i3), t5.debugOverlayTexture.bind(a3.LINEAR, a3.CLAMP_TO_EDGE); - }(t4, `${g2} ${p2}kB`), n2.draw(s2, o2.TRIANGLES, l2, h2, Fi.alphaBlended, ji.disabled, ze(r2, e.aM.transparent, f2), null, u2, t4.debugBuffer, t4.quadTriangleIndexBuffer, t4.debugSegments), n2.draw(s2, o2.LINE_STRIP, l2, h2, c2, ji.disabled, ze(r2, e.aM.red), d2, u2, t4.debugBuffer, t4.tileBorderIndexBuffer, t4.debugSegments); + })(t4, `${g2} ${p2}kB`), n2.draw(s2, o2.TRIANGLES, l2, h2, Fi.alphaBlended, ji.disabled, ze(r2, e.aM.transparent, f2), null, u2, t4.debugBuffer, t4.quadTriangleIndexBuffer, t4.debugSegments), n2.draw(s2, o2.LINE_STRIP, l2, h2, c2, ji.disabled, ze(r2, e.aM.red), d2, u2, t4.debugBuffer, t4.tileBorderIndexBuffer, t4.debugSegments); } function fa(t4, e2, i2) { const a2 = t4.context, s2 = a2.gl, o2 = t4.colorModeForRenderPass(), r2 = new Oi(s2.LEQUAL, Oi.ReadWrite, t4.depthRangeFor3D), n2 = t4.useProgram("terrain"), l2 = e2.getTerrainMesh(); @@ -242540,7 +242674,7 @@ uniform ${i3} ${a3} u_${s3}; return new Ui({ func: e2.EQUAL, mask: 255 }, this._tileClippingMaskIDs[t4.key], 0, e2.KEEP, e2.KEEP, e2.REPLACE); } stencilConfigForOverlap(t4) { - const e2 = this.context.gl, i2 = t4.sort((t5, e3) => e3.overscaledZ - t5.overscaledZ), a2 = i2[i2.length - 1].overscaledZ, s2 = i2[0].overscaledZ - a2 + 1; + const e2 = this.context.gl, i2 = t4.sort(((t5, e3) => e3.overscaledZ - t5.overscaledZ)), a2 = i2[i2.length - 1].overscaledZ, s2 = i2[0].overscaledZ - a2 + 1; if (s2 > 1) { this.currentStencilSource = void 0, this.nextStencilID + s2 > 256 && this.clearStencil(); const t5 = {}; @@ -242584,7 +242718,7 @@ uniform ${i3} ${a3} u_${s3}; const i3 = n2[e2.source]; ("custom" === e2.type || i3.length) && this.renderLayer(this, s2[e2.source], e2, i3); } - if (this.context.bindFramebuffer.set(null), this.context.clear({ color: i2.showOverdrawInspector ? e.aM.black : e.aM.transparent, depth: 1 }), this.clearStencil(), this.style.sky && function(t5, i3) { + if (this.context.bindFramebuffer.set(null), this.context.clear({ color: i2.showOverdrawInspector ? e.aM.black : e.aM.transparent, depth: 1 }), this.clearStencil(), this.style.sky && (function(t5, i3) { const a3 = t5.context, s3 = a3.gl, o2 = ((t6, e2, i4) => ({ u_sky_color: t6.properties.get("sky-color"), u_horizon_color: t6.properties.get("horizon-color"), u_horizon: (e2.height / 2 + e2.getHorizon()) * i4, u_sky_horizon_blend: t6.properties.get("sky-horizon-blend") * e2.height / 2 * i4 }))(i3, t5.style.map.transform, t5.pixelRatio), r3 = new Oi(s3.LEQUAL, Oi.ReadWrite, [0, 1]), n3 = Ui.disabled, l3 = t5.colorModeForRenderPass(), h2 = t5.useProgram("sky"); if (!i3.mesh) { const t6 = new e.aX(); @@ -242593,7 +242727,7 @@ uniform ${i3} ${a3} u_${s3}; s4.emplaceBack(0, 1, 2), s4.emplaceBack(0, 2, 3), i3.mesh = new ga(a3.createVertexBuffer(t6, _e.members), a3.createIndexBuffer(s4), e.a0.simpleSegment(0, 0, t6.length, s4.length)); } h2.draw(a3, s3.TRIANGLES, r3, n3, l3, ji.disabled, o2, void 0, "sky", i3.mesh.vertexBuffer, i3.mesh.indexBuffer, i3.mesh.segments); - }(this, this.style.sky), this._showOverdrawInspector = i2.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (t4._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = a2.length - 1; this.currentLayer >= 0; this.currentLayer--) { + })(this, this.style.sky), this._showOverdrawInspector = i2.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (t4._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = a2.length - 1; this.currentLayer >= 0; this.currentLayer--) { const t5 = this.style._layers[a2[this.currentLayer]], e2 = s2[t5.source], i3 = r2[t5.source]; this._renderTileClippingMasks(t5, i3), this.renderLayer(this, e2, t5, i3); } @@ -242604,31 +242738,31 @@ uniform ${i3} ${a3} u_${s3}; this._renderTileClippingMasks(t5, r2[t5.source]), this.renderLayer(this, e2, t5, i3); } if (this.options.showTileBoundaries) { - const t5 = function(t6, e2) { + const t5 = (function(t6, e2) { let i3 = null; - const a3 = Object.values(t6._layers).flatMap((i4) => i4.source && !i4.isHidden(e2) ? [t6.sourceCaches[i4.source]] : []), s3 = a3.filter((t7) => "vector" === t7.getSource().type), o2 = a3.filter((t7) => "vector" !== t7.getSource().type), r3 = (t7) => { + const a3 = Object.values(t6._layers).flatMap(((i4) => i4.source && !i4.isHidden(e2) ? [t6.sourceCaches[i4.source]] : [])), s3 = a3.filter(((t7) => "vector" === t7.getSource().type)), o2 = a3.filter(((t7) => "vector" !== t7.getSource().type)), r3 = (t7) => { (!i3 || i3.getSource().maxzoom < t7.getSource().maxzoom) && (i3 = t7); }; - return s3.forEach((t7) => r3(t7)), i3 || o2.forEach((t7) => r3(t7)), i3; - }(this.style, this.transform.zoom); - t5 && function(t6, e2, i3) { + return s3.forEach(((t7) => r3(t7))), i3 || o2.forEach(((t7) => r3(t7))), i3; + })(this.style, this.transform.zoom); + t5 && (function(t6, e2, i3) { for (let a3 = 0; a3 < i3.length; a3++) ma(t6, e2, i3[a3]); - }(this, t5, t5.getVisibleCoordinates()); + })(this, t5, t5.getVisibleCoordinates()); } - this.options.showPadding && function(t5) { + this.options.showPadding && (function(t5) { const e2 = t5.transform.padding; da(t5, t5.transform.height - (e2.top || 0), 3, na), da(t5, e2.bottom || 0, 3, la), _a(t5, e2.left || 0, 3, ha), _a(t5, t5.transform.width - (e2.right || 0), 3, ca); const i3 = t5.transform.centerPoint; - !function(t6, e3, i4, a3) { + !(function(t6, e3, i4, a3) { pa(t6, e3 - 1, i4 - 10, 2, 20, a3), pa(t6, e3 - 10, i4 - 1, 20, 2, a3); - }(t5, i3.x, t5.transform.height - i3.y, ua); - }(this), this.context.setDefault(); + })(t5, i3.x, t5.transform.height - i3.y, ua); + })(this), this.context.setDefault(); } maybeDrawDepthAndCoords(t4) { if (!this.style || !this.style.map || !this.style.map.terrain) return; const i2 = this.terrainFacilitator.matrix, a2 = this.transform.modelViewProjectionMatrix; let s2 = this.terrainFacilitator.dirty; - s2 || (s2 = t4 ? !e.a_(i2, a2) : !e.a$(i2, a2)), s2 || (s2 = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0), s2 && (e.b0(i2, a2), this.terrainFacilitator.renderTime = Date.now(), this.terrainFacilitator.dirty = false, function(t5, i3) { + s2 || (s2 = t4 ? !e.a_(i2, a2) : !e.a$(i2, a2)), s2 || (s2 = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0), s2 && (e.b0(i2, a2), this.terrainFacilitator.renderTime = Date.now(), this.terrainFacilitator.dirty = false, (function(t5, i3) { const a3 = t5.context, s3 = a3.gl, o2 = Fi.unblended, r2 = new Oi(s3.LEQUAL, Oi.ReadWrite, [0, 1]), n2 = i3.getTerrainMesh(), l2 = i3.sourceCache.getRenderableTiles(), h2 = t5.useProgram("terrainDepth"); a3.bindFramebuffer.set(i3.getFramebuffer("depth").framebuffer), a3.viewport.set([0, 0, t5.width / devicePixelRatio, t5.height / devicePixelRatio]), a3.clear({ color: e.aM.transparent, depth: 1 }); for (const e2 of l2) { @@ -242636,7 +242770,7 @@ uniform ${i3} ${a3} u_${s3}; h2.draw(a3, s3.TRIANGLES, r2, Ui.disabled, o2, ji.backCCW, c2, l3, "terrain", n2.vertexBuffer, n2.indexBuffer, n2.segments); } a3.bindFramebuffer.set(null), a3.viewport.set([0, 0, t5.width, t5.height]); - }(this, this.style.map.terrain), function(t5, i3) { + })(this, this.style.map.terrain), (function(t5, i3) { const a3 = t5.context, s3 = a3.gl, o2 = Fi.unblended, r2 = new Oi(s3.LEQUAL, Oi.ReadWrite, [0, 1]), n2 = i3.getTerrainMesh(), l2 = i3.getCoordsTexture(), h2 = i3.sourceCache.getRenderableTiles(), c2 = t5.useProgram("terrainCoords"); a3.bindFramebuffer.set(i3.getFramebuffer("coords").framebuffer), a3.viewport.set([0, 0, t5.width / devicePixelRatio, t5.height / devicePixelRatio]), a3.clear({ color: e.aM.transparent, depth: 1 }), i3.coordsIndex = []; for (const e2 of h2) { @@ -242646,15 +242780,15 @@ uniform ${i3} ${a3} u_${s3}; c2.draw(a3, s3.TRIANGLES, r2, Ui.disabled, o2, ji.backCCW, u2, h3, "terrain", n2.vertexBuffer, n2.indexBuffer, n2.segments), i3.coordsIndex.push(e2.tileID.key); } a3.bindFramebuffer.set(null), a3.viewport.set([0, 0, t5.width, t5.height]); - }(this, this.style.map.terrain)); + })(this, this.style.map.terrain)); } renderLayer(t4, i2, a2, s2) { if (!a2.isHidden(this.transform.zoom) && ("background" === a2.type || "custom" === a2.type || (s2 || []).length)) switch (this.id = a2.id, a2.type) { case "symbol": - !function(t5, i3, a3, s3, o2) { + !(function(t5, i3, a3, s3, o2) { if ("translucent" !== t5.renderPass) return; const r2 = Ui.disabled, n2 = t5.colorModeForRenderPass(); - (a3._unevaluatedLayout.hasValue("text-variable-anchor") || a3._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(t6, i4, a4, s4, o3, r3, n3, l2, h2) { + (a3._unevaluatedLayout.hasValue("text-variable-anchor") || a3._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && (function(t6, i4, a4, s4, o3, r3, n3, l2, h2) { const c2 = i4.transform, u2 = ie(), d2 = "map" === o3, _2 = "map" === r3; for (const o4 of t6) { const t7 = s4.getTile(o4), r4 = t7.getBucket(a4); @@ -242665,11 +242799,11 @@ uniform ${i3} ${a3} u_${s3}; Wi(r4, d2, _2, h2, c2, f2, o4.posMatrix, e2, p2, g2, u2, s5, o4.toUnwrapped(), a5); } } - }(s3, t5, a3, i3, a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), o2), 0 !== a3.paint.get("icon-opacity").constantOr(1) && Xi(t5, i3, a3, s3, false, a3.paint.get("icon-translate"), a3.paint.get("icon-translate-anchor"), a3.layout.get("icon-rotation-alignment"), a3.layout.get("icon-pitch-alignment"), a3.layout.get("icon-keep-upright"), r2, n2), 0 !== a3.paint.get("text-opacity").constantOr(1) && Xi(t5, i3, a3, s3, true, a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.layout.get("text-keep-upright"), r2, n2), i3.map.showCollisionBoxes && (qi(t5, i3, a3, s3, true), qi(t5, i3, a3, s3, false)); - }(t4, i2, a2, s2, this.style.placement.variableOffsets); + })(s3, t5, a3, i3, a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), o2), 0 !== a3.paint.get("icon-opacity").constantOr(1) && Xi(t5, i3, a3, s3, false, a3.paint.get("icon-translate"), a3.paint.get("icon-translate-anchor"), a3.layout.get("icon-rotation-alignment"), a3.layout.get("icon-pitch-alignment"), a3.layout.get("icon-keep-upright"), r2, n2), 0 !== a3.paint.get("text-opacity").constantOr(1) && Xi(t5, i3, a3, s3, true, a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.layout.get("text-keep-upright"), r2, n2), i3.map.showCollisionBoxes && (qi(t5, i3, a3, s3, true), qi(t5, i3, a3, s3, false)); + })(t4, i2, a2, s2, this.style.placement.variableOffsets); break; case "circle": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { if ("translucent" !== t5.renderPass) return; const o2 = a3.paint.get("circle-opacity"), r2 = a3.paint.get("circle-stroke-width"), n2 = a3.paint.get("circle-stroke-opacity"), l2 = !a3.layout.get("circle-sort-key").isConstant(); if (0 === o2.constantOr(1) && (0 === r2.constantOr(1) || 0 === n2.constantOr(1))) return; @@ -242683,15 +242817,15 @@ uniform ${i3} ${a3} u_${s3}; for (const i4 of t6) p2.push({ segments: new e.a0([i4]), sortKey: i4.sortKey, state: f2 }); } else p2.push({ segments: h3.segments, sortKey: 0, state: f2 }); } - l2 && p2.sort((t6, e2) => t6.sortKey - e2.sortKey); + l2 && p2.sort(((t6, e2) => t6.sortKey - e2.sortKey)); for (const e2 of p2) { const { programConfiguration: i4, program: s4, layoutVertexBuffer: o3, indexBuffer: r3, uniformValues: n3, terrainData: l3 } = e2.state; s4.draw(h2, c2.TRIANGLES, u2, d2, _2, ji.disabled, n3, l3, a3.id, o3, r3, e2.segments, a3.paint, t5.transform.zoom, i4); } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "heatmap": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { if (0 === a3.paint.get("heatmap-opacity")) return; const o2 = t5.context; if (t5.style.map.terrain) { @@ -242700,7 +242834,7 @@ uniform ${i3} ${a3} u_${s3}; i3.hasRenderableParent(e2) || ("offscreen" === t5.renderPass ? Ji(t5, s4, a3, e2) : "translucent" === t5.renderPass && Yi(t5, a3, e2)); } o2.viewport.set([0, 0, t5.width, t5.height]); - } else "offscreen" === t5.renderPass ? function(t6, i4, a4, s4) { + } else "offscreen" === t5.renderPass ? (function(t6, i4, a4, s4) { const o3 = t6.context, r2 = o3.gl, n2 = Ui.disabled, l2 = new Fi([r2.ONE, r2.ONE], e.aM.transparent, [true, true, true, true]); (function(t7, i5, a5) { const s5 = t7.gl; @@ -242717,16 +242851,16 @@ uniform ${i3} ${a3} u_${s3}; _2.draw(o3, r2.TRIANGLES, Oi.disabled, n2, l2, ji.disabled, Me(h2.posMatrix, c2, p2, a4.paint.get("heatmap-intensity")), null, a4.id, u2.layoutVertexBuffer, u2.indexBuffer, u2.segments, a4.paint, t6.transform.zoom, d2); } o3.viewport.set([0, 0, t6.width, t6.height]); - }(t5, i3, a3, s3) : "translucent" === t5.renderPass && function(t6, i4) { + })(t5, i3, a3, s3) : "translucent" === t5.renderPass && (function(t6, i4) { const a4 = t6.context, s4 = a4.gl; a4.setColorMode(t6.colorModeForRenderPass()); const o3 = i4.heatmapFbos.get(e.aU); o3 && (a4.activeTexture.set(s4.TEXTURE0), s4.bindTexture(s4.TEXTURE_2D, o3.colorAttachment.get()), a4.activeTexture.set(s4.TEXTURE1), ta(a4, i4).bind(s4.LINEAR, s4.CLAMP_TO_EDGE), t6.useProgram("heatmapTexture").draw(a4, s4.TRIANGLES, Oi.disabled, Ui.disabled, t6.colorModeForRenderPass(), ji.disabled, Ae(t6, i4, 0, 1), null, i4.id, t6.viewportBuffer, t6.quadTriangleIndexBuffer, t6.viewportSegments, i4.paint, t6.transform.zoom)); - }(t5, a3); - }(t4, i2, a2, s2); + })(t5, a3); + })(t4, i2, a2, s2); break; case "line": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { if ("translucent" !== t5.renderPass) return; const o2 = a3.paint.get("line-opacity"), r2 = a3.paint.get("line-width"); if (0 === o2.constantOr(1) || 0 === r2.constantOr(1)) return; @@ -242760,10 +242894,10 @@ uniform ${i3} ${a3} u_${s3}; } y2.draw(m2, f2.TRIANGLES, n2, t5.stencilModeForClipping(o3), l2, ji.disabled, P2, T2, a3.id, r3.layoutVertexBuffer, r3.indexBuffer, r3.segments, a3.paint, t5.transform.zoom, v2, r3.layoutVertexBuffer2), g2 = false; } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "fill": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { const o2 = a3.paint.get("fill-color"), r2 = a3.paint.get("fill-opacity"); if (0 === r2.constantOr(1)) return; const n2 = t5.colorModeForRenderPass(), l2 = a3.paint.get("fill-pattern"), h2 = t5.opaquePassEnabledForLayer() && !l2.constantOr(1) && 1 === o2.constantOr(e.aM.transparent).a && 1 === r2.constantOr(0) ? "opaque" : "translucent"; @@ -242775,10 +242909,10 @@ uniform ${i3} ${a3} u_${s3}; const e2 = t5.depthModeForSublayer(a3.getPaintProperty("fill-outline-color") ? 2 : 0, Oi.ReadOnly); ia(t5, i3, a3, s3, e2, n2, true); } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "fill-extrusion": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { const s3 = i3.paint.get("fill-extrusion-opacity"); if (0 !== s3 && "translucent" === t5.renderPass) { const o2 = new Oi(t5.context.gl.LEQUAL, Oi.ReadWrite, t5.depthRangeFor3D); @@ -242788,10 +242922,10 @@ uniform ${i3} ${a3} u_${s3}; aa(t5, e2, i3, a3, o2, Ui.disabled, s4); } } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "hillshade": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { if ("offscreen" !== t5.renderPass && "translucent" !== t5.renderPass) return; const s3 = t5.context, o2 = t5.depthModeForSublayer(0, Oi.ReadOnly), r2 = t5.colorModeForRenderPass(), [n2, l2] = "translucent" === t5.renderPass ? t5.stencilConfigForOverlap(a3) : [{}, a3]; for (const a4 of l2) { @@ -242799,10 +242933,10 @@ uniform ${i3} ${a3} u_${s3}; void 0 !== s4.needsHillshadePrepare && s4.needsHillshadePrepare && "offscreen" === t5.renderPass ? oa(t5, s4, i3, o2, Ui.disabled, r2) : "translucent" === t5.renderPass && sa(t5, a4, s4, i3, o2, n2[a4.overscaledZ], r2); } s3.viewport.set([0, 0, t5.width, t5.height]); - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "raster": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { if ("translucent" !== t5.renderPass) return; if (0 === i3.paint.get("raster-opacity")) return; if (!a3.length) return; @@ -242817,10 +242951,10 @@ uniform ${i3} ${a3} u_${s3}; const y2 = t5.style.map.terrain && t5.style.map.terrain.getTerrainData(a4), b2 = y2 ? a4 : null, w2 = b2 ? b2.posMatrix : t5.transform.calculatePosMatrix(a4.toUnwrapped(), d2), T2 = Ue(w2, v2 || [0, 0], g2 || 1, f2, i3); r2 instanceof Q ? n2.draw(s3, o2.TRIANGLES, c3, Ui.disabled, l2, ji.disabled, T2, y2, i3.id, r2.boundsBuffer, t5.quadTriangleIndexBuffer, r2.boundsSegments) : n2.draw(s3, o2.TRIANGLES, c3, h2[a4.overscaledZ], l2, ji.disabled, T2, y2, i3.id, t5.rasterBoundsBuffer, t5.quadTriangleIndexBuffer, t5.rasterBoundsSegments); } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "background": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { const s3 = i3.paint.get("background-color"), o2 = i3.paint.get("background-opacity"); if (0 === o2) return; const r2 = t5.context, n2 = r2.gl, l2 = t5.transform, h2 = l2.tileSize, c2 = i3.paint.get("background-pattern"); @@ -242834,10 +242968,10 @@ uniform ${i3} ${a3} u_${s3}; const l3 = a3 ? e3.posMatrix : t5.transform.calculatePosMatrix(e3.toUnwrapped()), u3 = c2 ? He(l3, o2, t5, c2, { tileID: e3, tileSize: h2 }, g2) : Ge(l3, o2, s3), f3 = t5.style.map.terrain && t5.style.map.terrain.getTerrainData(e3); m2.draw(r2, n2.TRIANGLES, _2, d2, p2, ji.disabled, u3, f3, i3.id, t5.tileExtentBuffer, t5.quadTriangleIndexBuffer, t5.tileExtentSegments); } - }(t4, 0, a2, s2); + })(t4, 0, a2, s2); break; case "custom": - !function(t5, e2, i3) { + !(function(t5, e2, i3) { const a3 = t5.context, s3 = i3.implementation; if ("offscreen" === t5.renderPass) { const e3 = s3.prerender; @@ -242847,7 +242981,7 @@ uniform ${i3} ${a3} u_${s3}; const e3 = "3d" === s3.renderingMode ? new Oi(t5.context.gl.LEQUAL, Oi.ReadWrite, t5.depthRangeFor3D) : t5.depthModeForSublayer(0, Oi.ReadOnly); a3.setDepthMode(e3), s3.render(a3.gl, t5.transform.customLayerMatrix(), { farZ: t5.transform.farZ, nearZ: t5.transform.nearZ, fov: t5.transform._fov, modelViewProjectionMatrix: t5.transform.modelViewProjectionMatrix, projectionMatrix: t5.transform.projectionMatrix }), a3.setDirty(), t5.setBaseState(), a3.bindFramebuffer.set(null); } - }(t4, 0, a2); + })(t4, 0, a2); } } translatePosMatrix(t4, i2, a2, s2, o2) { @@ -242902,30 +243036,30 @@ uniform ${i3} ${a3} u_${s3}; this.points = t4, this.planes = e2; } static fromInvProjectionMatrix(t4, i2, a2) { - const s2 = Math.pow(2, a2), o2 = [[-1, 1, -1, 1], [1, 1, -1, 1], [1, -1, -1, 1], [-1, -1, -1, 1], [-1, 1, 1, 1], [1, 1, 1, 1], [1, -1, 1, 1], [-1, -1, 1, 1]].map((a3) => { + const s2 = Math.pow(2, a2), o2 = [[-1, 1, -1, 1], [1, 1, -1, 1], [1, -1, -1, 1], [-1, -1, -1, 1], [-1, 1, 1, 1], [1, 1, 1, 1], [1, -1, 1, 1], [-1, -1, 1, 1]].map(((a3) => { const o3 = 1 / (a3 = e.af([], a3, t4))[3] / i2 * s2; return e.b1(a3, a3, [o3, o3, 1 / a3[3], o3]); - }), r2 = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map((t5) => { - const e2 = function(t6, e3) { + })), r2 = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map(((t5) => { + const e2 = (function(t6, e3) { var i4 = e3[0], a4 = e3[1], s4 = e3[2], o3 = i4 * i4 + a4 * a4 + s4 * s4; return o3 > 0 && (o3 = 1 / Math.sqrt(o3)), t6[0] = e3[0] * o3, t6[1] = e3[1] * o3, t6[2] = e3[2] * o3, t6; - }([], function(t6, e3, i4) { + })([], (function(t6, e3, i4) { var a4 = e3[0], s4 = e3[1], o3 = e3[2], r3 = i4[0], n2 = i4[1], l2 = i4[2]; return t6[0] = s4 * l2 - o3 * n2, t6[1] = o3 * r3 - a4 * l2, t6[2] = a4 * n2 - s4 * r3, t6; - }([], g([], o2[t5[0]], o2[t5[1]]), g([], o2[t5[2]], o2[t5[1]]))), i3 = -((a3 = e2)[0] * (s3 = o2[t5[1]])[0] + a3[1] * s3[1] + a3[2] * s3[2]); + })([], g([], o2[t5[0]], o2[t5[1]]), g([], o2[t5[2]], o2[t5[1]]))), i3 = -((a3 = e2)[0] * (s3 = o2[t5[1]])[0] + a3[1] * s3[1] + a3[2] * s3[2]); var a3, s3; return e2.concat(i3); - }); + })); return new xa(o2, r2); } } class ya { constructor(t4, e2) { - this.min = t4, this.max = e2, this.center = function(t5, e3, i2) { + this.min = t4, this.max = e2, this.center = (function(t5, e3, i2) { return t5[0] = 0.5 * e3[0], t5[1] = 0.5 * e3[1], t5[2] = 0.5 * e3[2], t5; - }([], function(t5, e3, i2) { + })([], (function(t5, e3, i2) { return t5[0] = e3[0] + i2[0], t5[1] = e3[1] + i2[1], t5[2] = e3[2] + i2[2], t5; - }([], this.min, this.max)); + })([], this.min, this.max)); } quadrant(t4) { const e2 = [t4 % 2 == 0, t4 < 2], i2 = m(this.min), a2 = m(this.max); @@ -243038,13 +243172,13 @@ uniform ${i3} ${a3} u_${s3}; } set bearing(t4) { const i2 = -e.b3(t4, -180, 180) * Math.PI / 180; - this.angle !== i2 && (this._unmodified = false, this.angle = i2, this._calcMatrices(), this.rotationMatrix = function() { + this.angle !== i2 && (this._unmodified = false, this.angle = i2, this._calcMatrices(), this.rotationMatrix = (function() { var t5 = new e.A(4); return e.A != Float32Array && (t5[1] = 0, t5[2] = 0), t5[0] = 1, t5[3] = 1, t5; - }(), function(t5, e2, i3) { + })(), (function(t5, e2, i3) { var a2 = e2[0], s2 = e2[1], o2 = e2[2], r2 = e2[3], n2 = Math.sin(i3), l2 = Math.cos(i3); t5[0] = a2 * l2 + o2 * n2, t5[1] = s2 * l2 + r2 * n2, t5[2] = a2 * -n2 + o2 * l2, t5[3] = s2 * -n2 + r2 * l2; - }(this.rotationMatrix, this.rotationMatrix, this.angle)); + })(this.rotationMatrix, this.rotationMatrix, this.angle)); } get pitch() { return this._pitch / Math.PI * 180; @@ -243138,7 +243272,7 @@ uniform ${i3} ${a3} u_${s3}; m2.push({ aabb: d3, zoom: u3, x: h3, y: c3, wrap: s3.wrap, fullyVisible: n3 }); } } - return f2.sort((t5, e2) => t5.distanceSq - e2.distanceSq).map((t5) => t5.tileID); + return f2.sort(((t5, e2) => t5.distanceSq - e2.distanceSq)).map(((t5) => t5.tileID)); } resize(t4, e2) { this.width = t4, this.height = e2, this.pixelsToGLUnits = [2 / t4, -2 / e2], this._constrain(), this._calcMatrices(); @@ -243327,14 +243461,14 @@ uniform ${i3} ${a3} u_${s3}; const t5 = window.location.hash.replace("#", ""); if (this._hashName) { let e2; - return t5.split("&").map((t6) => t6.split("=")).forEach((t6) => { + return t5.split("&").map(((t6) => t6.split("="))).forEach(((t6) => { t6[0] === this._hashName && (e2 = t6); - }), (e2 && e2[1] || "").split("/"); + })), (e2 && e2[1] || "").split("/"); } return t5.split("/"); }, this._onHashChange = () => { const t5 = this._getCurrentHash(); - if (t5.length >= 3 && !t5.some((t6) => isNaN(t6))) { + if (t5.length >= 3 && !t5.some(((t6) => isNaN(t6)))) { const e2 = this._map.dragRotate.isEnabled() && this._map.touchZoomRotate.isEnabled() ? +(t5[3] || 0) : this._map.getBearing(); return this._map.jumpTo({ center: [+t5[2], +t5[1]], zoom: +t5[0], bearing: e2, pitch: +(t5[4] || 0) }), true; } @@ -243366,10 +243500,10 @@ uniform ${i3} ${a3} u_${s3}; if (h2 += t4 ? `/${o2}/${r2}/${i2}` : `${i2}/${r2}/${o2}`, (n2 || l2) && (h2 += "/" + Math.round(10 * n2) / 10), l2 && (h2 += `/${Math.round(l2)}`), this._hashName) { const t5 = this._hashName; let e3 = false; - const i3 = window.location.hash.slice(1).split("&").map((i4) => { + const i3 = window.location.hash.slice(1).split("&").map(((i4) => { const a3 = i4.split("=")[0]; return a3 === t5 ? (e3 = true, `${a3}=${h2}`) : i4; - }).filter((t6) => t6); + })).filter(((t6) => t6)); return e3 || i3.push(`${t5}=${h2}`), `#${i3.join("&")}`; } return `#${h2}`; @@ -243445,7 +243579,7 @@ uniform ${i3} ${a3} u_${s3}; return this._defaultPrevented; } constructor(t4, i2, a2) { - const s2 = "touchend" === t4 ? a2.changedTouches : a2.touches, o2 = r.touchPos(i2.getCanvasContainer(), s2), n2 = o2.map((t5) => i2.unproject(t5)), l2 = o2.reduce((t5, e2, i3, a3) => t5.add(e2.div(a3.length)), new e.P(0, 0)); + const s2 = "touchend" === t4 ? a2.changedTouches : a2.touches, o2 = r.touchPos(i2.getCanvasContainer(), s2), n2 = o2.map(((t5) => i2.unproject(t5))), l2 = o2.reduce(((t5, e2, i3, a3) => t5.add(e2.div(a3.length))), new e.P(0, 0)); super(t4, { points: o2, point: l2, lngLats: n2, lngLat: i2.unproject(l2), originalEvent: a2 }), this._defaultPrevented = false; } } @@ -243626,11 +243760,11 @@ uniform ${i3} ${a3} u_${s3}; delete this.centroid, delete this.startTime, delete this.touches, this.aborted = false; } touchstart(t4, i2, a2) { - (this.centroid || a2.length > this.numTouches) && (this.aborted = true), this.aborted || (void 0 === this.startTime && (this.startTime = t4.timeStamp), a2.length === this.numTouches && (this.centroid = function(t5) { + (this.centroid || a2.length > this.numTouches) && (this.aborted = true), this.aborted || (void 0 === this.startTime && (this.startTime = t4.timeStamp), a2.length === this.numTouches && (this.centroid = (function(t5) { const i3 = new e.P(0, 0); for (const e2 of t5) i3._add(e2); return i3.div(t5.length); - }(i2), this.touches = ja(a2, i2))); + })(i2), this.touches = ja(a2, i2))); } touchmove(t4, e2, i2) { if (this.aborted || !this.centroid) return; @@ -243683,7 +243817,7 @@ uniform ${i3} ${a3} u_${s3}; } touchend(t4, e2, i2) { const a2 = this._zoomIn.touchend(t4, e2, i2), s2 = this._zoomOut.touchend(t4, e2, i2), o2 = this._tr; - return a2 ? (this._active = true, t4.preventDefault(), setTimeout(() => this.reset(), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom + 1, around: o2.unproject(a2) }, { originalEvent: t4 }) }) : s2 ? (this._active = true, t4.preventDefault(), setTimeout(() => this.reset(), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom - 1, around: o2.unproject(s2) }, { originalEvent: t4 }) }) : void 0; + return a2 ? (this._active = true, t4.preventDefault(), setTimeout((() => this.reset()), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom + 1, around: o2.unproject(a2) }, { originalEvent: t4 }) }) : s2 ? (this._active = true, t4.preventDefault(), setTimeout((() => this.reset()), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom - 1, around: o2.unproject(s2) }, { originalEvent: t4 }) }) : void 0; } touchcancel() { this.reset(); @@ -243758,10 +243892,10 @@ uniform ${i3} ${a3} u_${s3}; return this._correctEvent(t4); } isValidMoveEvent(t4) { - return !function(t5, e2) { + return !(function(t5, e2) { const i2 = Ha[e2]; return void 0 === t5.buttons || (t5.buttons & i2) !== i2; - }(t4, this._eventButton); + })(t4, this._eventButton); } isValidEndEvent(t4) { return r.mouseButton(t4) === this._eventButton; @@ -244090,9 +244224,9 @@ uniform ${i3} ${a3} u_${s3}; const t5 = Math.min(l2 / 200, 1), o2 = s2(t5); r2 = e.y.number(a2, i2, o2), t5 < 1 ? this._frameId || (this._frameId = true) : n2 = true; } else r2 = i2, n2 = true; - return this._active = true, n2 && (this._active = false, this._finishTimeout = setTimeout(() => { + return this._active = true, n2 && (this._active = false, this._finishTimeout = setTimeout((() => { this._zooming = false, this._triggerRenderFrame(), delete this._targetZoom, delete this._finishTimeout; - }, 200)), { noInertia: true, needsRenderFrame: !n2, zoomDelta: r2 - t4.zoom, around: this._aroundPoint, originalEvent: this._lastWheelEvent }; + }), 200)), { noInertia: true, needsRenderFrame: !n2, zoomDelta: r2 - t4.zoom, around: this._aroundPoint, originalEvent: this._lastWheelEvent }; } _smoothOutEasing(t4) { let i2 = e.b9; @@ -244286,9 +244420,9 @@ uniform ${i3} ${a3} u_${s3}; return t4[this._bypassKey]; } notifyGestureBlocked(t4, i2) { - this._enabled && (this._map.fire(new e.k("cooperativegestureprevented", { gestureType: t4, originalEvent: i2 })), this._container.classList.add("maplibregl-show"), setTimeout(() => { + this._enabled && (this._map.fire(new e.k("cooperativegestureprevented", { gestureType: t4, originalEvent: i2 })), this._container.classList.add("maplibregl-show"), setTimeout((() => { this._container.classList.remove("maplibregl-show"); - }, 100)); + }), 100)); } } const xs = (t4) => t4.zoom || t4.drag || t4.pitch || t4.rotate; @@ -244345,7 +244479,7 @@ uniform ${i3} ${a3} u_${s3}; e2.dragPan = new ms(i2, d2, _2), this._add("mousePan", d2), this._add("touchPan", _2, ["touchZoom", "touchRotate"]), t4.interactive && t4.dragPan && e2.dragPan.enable(t4.dragPan); const p2 = new ss(), m2 = new is(); e2.touchZoomRotate = new gs(i2, m2, p2, l2), this._add("touchRotate", p2, ["touchPan", "touchZoom"]), this._add("touchZoom", m2, ["touchPan", "touchRotate"]), t4.interactive && t4.touchZoomRotate && e2.touchZoomRotate.enable(t4.touchZoomRotate); - const f2 = e2.scrollZoom = new us(e2, () => this._triggerRenderFrame()); + const f2 = e2.scrollZoom = new us(e2, (() => this._triggerRenderFrame())); this._add("scrollZoom", f2, ["mousePan"]), t4.interactive && t4.scrollZoom && e2.scrollZoom.enable(t4.scrollZoom); const g2 = e2.keyboard = new ls(e2); this._add("keyboard", g2), t4.interactive && t4.keyboard && e2.keyboard.enable(), this._add("blockableMapEvent", new Oa(e2)); @@ -244436,9 +244570,9 @@ uniform ${i3} ${a3} u_${s3}; this._map.fire(new e.k(t4, i2 ? { originalEvent: i2 } : {})); } _requestFrame() { - return this._map.triggerRepaint(), this._map._renderTaskQueue.add((t4) => { + return this._map.triggerRepaint(), this._map._renderTaskQueue.add(((t4) => { delete this._frameId, this.handleEvent(new ys("renderFrame", { timeStamp: t4 })), this._applyChanges(); - }); + })); } _triggerRenderFrame() { void 0 === this._frameId && (this._frameId = this._requestFrame()); @@ -244449,9 +244583,9 @@ uniform ${i3} ${a3} u_${s3}; super(), this._renderFrameCallback = () => { const t5 = Math.min((o.now() - this._easeStart) / this._easeOptions.duration, 1); this._onEaseFrame(this._easeOptions.easing(t5)), t5 < 1 && this._easeFrameId ? this._easeFrameId = this._requestRenderFrame(this._renderFrameCallback) : this.stop(); - }, this._moving = false, this._zooming = false, this.transform = t4, this._bearingSnap = e2.bearingSnap, this.on("moveend", () => { + }, this._moving = false, this._zooming = false, this.transform = t4, this._bearingSnap = e2.bearingSnap, this.on("moveend", (() => { delete this._requestedCameraState; - }); + })); } getCenter() { return new e.N(this.transform.center.lng, this.transform.center.lat); @@ -244560,16 +244694,16 @@ uniform ${i3} ${a3} u_${s3}; let b2, w2; t4.around && (b2 = e.N.convert(t4.around), w2 = s2.locationPoint(b2)); const T2 = { moving: this._moving, zooming: this._zooming, rotating: this._rotating, pitching: this._pitching }; - return this._zooming = this._zooming || g2 !== r2, this._rotating = this._rotating || n2 !== c2, this._pitching = this._pitching || u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._easeId = t4.easeId, this._prepareEase(i2, t4.noMoveStart, T2), this.terrain && this._prepareElevation(f2), this._ease((a3) => { + return this._zooming = this._zooming || g2 !== r2, this._rotating = this._rotating || n2 !== c2, this._pitching = this._pitching || u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._easeId = t4.easeId, this._prepareEase(i2, t4.noMoveStart, T2), this.terrain && this._prepareElevation(f2), this._ease(((a3) => { if (this._zooming && (s2.zoom = e.y.number(r2, g2, a3)), this._rotating && (s2.bearing = e.y.number(n2, c2, a3)), this._pitching && (s2.pitch = e.y.number(l2, u2, a3)), this._padding && (s2.interpolatePadding(h2, d2, a3), p2 = s2.centerPoint.add(_2)), this.terrain && !t4.freezeElevation && this._updateElevation(a3), b2) s2.setLocationAtPoint(b2, w2); else { const t5 = s2.zoomScale(s2.zoom - r2), e2 = g2 > r2 ? Math.min(2, y2) : Math.max(0.5, y2), i3 = Math.pow(e2, 1 - a3), o2 = s2.unproject(v2.add(x2.mult(a3 * i3)).mult(t5)); s2.setLocationAtPoint(s2.renderWorldCopies ? o2.wrap() : o2, p2); } this._applyUpdatedTransform(s2), this._fireMoveEvents(i2); - }, (e2) => { + }), ((e2) => { this.terrain && t4.freezeElevation && this._finalizeElevation(), this._afterEase(i2, e2); - }, t4), this; + }), t4), this; } _prepareEase(t4, i2, a2 = {}) { this._moving = true, i2 || a2.moving || this.fire(new e.k("movestart", t4)), this._zooming && !a2.zooming && this.fire(new e.k("zoomstart", t4)), this._rotating && !a2.rotating && this.fire(new e.k("rotatestart", t4)), this._pitching && !a2.pitching && this.fire(new e.k("pitchstart", t4)); @@ -244602,7 +244736,7 @@ uniform ${i3} ${a3} u_${s3}; } _applyUpdatedTransform(t4) { const e2 = []; - if (this.terrain && e2.push((t5) => this._elevateCameraIfInsideTerrain(t5)), this.transformCameraUpdate && e2.push((t5) => this.transformCameraUpdate(t5)), !e2.length) return; + if (this.terrain && e2.push(((t5) => this._elevateCameraIfInsideTerrain(t5))), this.transformCameraUpdate && e2.push(((t5) => this.transformCameraUpdate(t5))), !e2.length) return; const i2 = t4.clone(); for (const t5 of e2) { const e3 = i2.clone(), { center: a2, zoom: s2, pitch: o2, bearing: r2, elevation: n2 } = t5(e3); @@ -244660,14 +244794,14 @@ uniform ${i3} ${a3} u_${s3}; const e2 = T2 < w2 ? -1 : 1; A3 = Math.abs(Math.log(T2 / w2)) / b2, M2 = () => 0, D3 = (t5) => Math.exp(e2 * b2 * t5); } - return t4.duration = "duration" in t4 ? +t4.duration : 1e3 * A3 / ("screenSpeed" in t4 ? +t4.screenSpeed / b2 : +t4.speed), t4.maxDuration && t4.duration > t4.maxDuration && (t4.duration = 0), this._zooming = true, this._rotating = n2 !== c2, this._pitching = u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._prepareEase(i2, false), this.terrain && this._prepareElevation(f2), this._ease((a3) => { + return t4.duration = "duration" in t4 ? +t4.duration : 1e3 * A3 / ("screenSpeed" in t4 ? +t4.screenSpeed / b2 : +t4.speed), t4.maxDuration && t4.duration > t4.maxDuration && (t4.duration = 0), this._zooming = true, this._rotating = n2 !== c2, this._pitching = u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._prepareEase(i2, false), this.terrain && this._prepareElevation(f2), this._ease(((a3) => { const o2 = a3 * A3, m3 = 1 / D3(o2); s2.zoom = 1 === a3 ? g2 : r2 + s2.scaleZoom(m3), this._rotating && (s2.bearing = e.y.number(n2, c2, a3)), this._pitching && (s2.pitch = e.y.number(l2, u2, a3)), this._padding && (s2.interpolatePadding(h2, d2, a3), p2 = s2.centerPoint.add(_2)), this.terrain && !t4.freezeElevation && this._updateElevation(a3); const v3 = 1 === a3 ? f2 : s2.unproject(x2.add(y2.mult(M2(o2))).mult(m3)); s2.setLocationAtPoint(s2.renderWorldCopies ? v3.wrap() : v3, p2), this._applyUpdatedTransform(s2), this._fireMoveEvents(i2); - }, () => { + }), (() => { this.terrain && t4.freezeElevation && this._finalizeElevation(), this._afterEase(i2); - }, t4), this; + }), t4), this; } isEasing() { return !!this._easeFrameId; @@ -244729,7 +244863,7 @@ uniform ${i3} ${a3} u_${s3}; _updateAttributions() { if (!this._map.style) return; let t4 = []; - if (this.options.customAttribution && (Array.isArray(this.options.customAttribution) ? t4 = t4.concat(this.options.customAttribution.map((t5) => "string" != typeof t5 ? "" : t5)) : "string" == typeof this.options.customAttribution && t4.push(this.options.customAttribution)), this._map.style.stylesheet) { + if (this.options.customAttribution && (Array.isArray(this.options.customAttribution) ? t4 = t4.concat(this.options.customAttribution.map(((t5) => "string" != typeof t5 ? "" : t5))) : "string" == typeof this.options.customAttribution && t4.push(this.options.customAttribution)), this._map.style.stylesheet) { const t5 = this._map.style.stylesheet; this.styleOwner = t5.owner, this.styleId = t5.id; } @@ -244741,10 +244875,10 @@ uniform ${i3} ${a3} u_${s3}; e3.attribution && t4.indexOf(e3.attribution) < 0 && t4.push(e3.attribution); } } - t4 = t4.filter((t5) => String(t5).trim()), t4.sort((t5, e3) => t5.length - e3.length), t4 = t4.filter((e3, i3) => { + t4 = t4.filter(((t5) => String(t5).trim())), t4.sort(((t5, e3) => t5.length - e3.length)), t4 = t4.filter(((e3, i3) => { for (let a2 = i3 + 1; a2 < t4.length; a2++) if (t4[a2].indexOf(e3) >= 0) return false; return true; - }); + })); const i2 = t4.join(" | "); i2 !== this._attribHTML && (this._attribHTML = i2, t4.length ? (this._innerContainer.innerHTML = i2, this._container.classList.remove("maplibregl-attrib-empty")) : this._container.classList.add("maplibregl-attrib-empty"), this._updateCompact(), this._editLink = null); } @@ -244815,7 +244949,7 @@ uniform ${i3} ${a3} u_${s3}; } } getRenderableTiles() { - return this._renderableTilesKeys.map((t4) => this.getTileByID(t4)); + return this._renderableTilesKeys.map(((t4) => this.getTileByID(t4))); } getTileByID(t4) { return this._tiles[t4]; @@ -244851,7 +244985,7 @@ uniform ${i3} ${a3} u_${s3}; return s2; } tilesAfterTime(t4 = Date.now()) { - return Object.values(this._tiles).filter((e2) => e2.timeAdded >= t4); + return Object.values(this._tiles).filter(((e2) => e2.timeAdded >= t4)); } } class Ds { @@ -244863,10 +244997,10 @@ uniform ${i3} ${a3} u_${s3}; if (!(i2 >= 0 && i2 < s2 && a2 >= 0 && a2 < s2)) return 0; const r2 = this.getTerrainData(t4), n2 = null === (o2 = r2.tile) || void 0 === o2 ? void 0 : o2.dem; if (!n2) return 0; - const l2 = function(t5, e2, i3) { + const l2 = (function(t5, e2, i3) { var a3 = e2[0], s3 = e2[1]; return t5[0] = i3[0] * a3 + i3[4] * s3 + i3[12], t5[1] = i3[1] * a3 + i3[5] * s3 + i3[13], t5; - }([], [i2 / s2 * e.X, a2 / s2 * e.X], r2.u_terrain_matrix), h2 = [l2[0] * n2.dim, l2[1] * n2.dim], c2 = Math.floor(h2[0]), u2 = Math.floor(h2[1]), d2 = h2[0] - c2, _2 = h2[1] - u2; + })([], [i2 / s2 * e.X, a2 / s2 * e.X], r2.u_terrain_matrix), h2 = [l2[0] * n2.dim, l2[1] * n2.dim], c2 = Math.floor(h2[0]), u2 = Math.floor(h2[1]), d2 = h2[0] - c2, _2 = h2[1] - u2; return n2.get(c2, u2) * (1 - d2) * (1 - _2) + n2.get(c2 + 1, u2) * d2 * (1 - _2) + n2.get(c2, u2 + 1) * (1 - d2) * _2 + n2.get(c2 + 1, u2 + 1) * d2 * _2; } getElevationForLngLatZoom(t4, i2) { @@ -244967,7 +245101,7 @@ uniform ${i3} ${a3} u_${s3}; return this._objects[t4]; } useObject(t4) { - t4.inUse = true, this._recentlyUsed = this._recentlyUsed.filter((e2) => t4.id !== e2), this._recentlyUsed.push(t4.id); + t4.inUse = true, this._recentlyUsed = this._recentlyUsed.filter(((e2) => t4.id !== e2)), this._recentlyUsed.push(t4.id); } stampObject(t4) { t4.stamp = ++this._stamp; @@ -244985,7 +245119,7 @@ uniform ${i3} ${a3} u_${s3}; for (const t4 of this._objects) this.freeObject(t4); } isFull() { - return !(this._objects.length < this._size) && false === this._objects.some((t4) => !t4.inUse); + return !(this._objects.length < this._size) && false === this._objects.some(((t4) => !t4.inUse)); } } const As = { background: true, fill: true, line: true, raster: true, hillshade: true }; @@ -245000,7 +245134,7 @@ uniform ${i3} ${a3} u_${s3}; return this.pool.getObjectForId(t4.rtt[this._stacks.length - 1].id).texture; } prepareForRender(t4, e2) { - this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.sourceCache.getRenderableTiles(), this._renderableLayerIds = t4._order.filter((i2) => !t4._layers[i2].isHidden(e2)), this._coordsDescendingInv = {}; + this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.sourceCache.getRenderableTiles(), this._renderableLayerIds = t4._order.filter(((i2) => !t4._layers[i2].isHidden(e2))), this._coordsDescendingInv = {}; for (const e3 in t4.sourceCaches) { this._coordsDescendingInv[e3] = {}; const i2 = t4.sourceCaches[e3].getVisibleCoordinates(); @@ -245014,7 +245148,7 @@ uniform ${i3} ${a3} u_${s3}; const i2 = t4._layers[e3], a2 = i2.source; if (As[i2.type] && !this._coordsDescendingInvStr[a2]) { this._coordsDescendingInvStr[a2] = {}; - for (const t5 in this._coordsDescendingInv[a2]) this._coordsDescendingInvStr[a2][t5] = this._coordsDescendingInv[a2][t5].map((t6) => t6.key).sort().join(); + for (const t5 in this._coordsDescendingInv[a2]) this._coordsDescendingInvStr[a2][t5] = this._coordsDescendingInv[a2][t5].map(((t6) => t6.key)).sort().join(); } } for (const t5 of this._renderableTiles) for (const e3 in this._coordsDescendingInvStr) { @@ -245142,10 +245276,10 @@ uniform ${i3} ${a3} u_${s3}; let a2 = ""; "viewport" === this._rotationAlignment || "auto" === this._rotationAlignment ? a2 = `rotateZ(${this._rotation}deg)` : "map" === this._rotationAlignment && (a2 = `rotateZ(${this._rotation - this._map.getBearing()}deg)`); let s2 = ""; - "viewport" === this._pitchAlignment || "auto" === this._pitchAlignment ? s2 = "rotateX(0deg)" : "map" === this._pitchAlignment && (s2 = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || t5 && "moveend" !== t5.type || (this._pos = this._pos.round()), r.setTransform(this._element, `${Zs[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${s2} ${a2}`), o.frameAsync(new AbortController()).then(() => { + "viewport" === this._pitchAlignment || "auto" === this._pitchAlignment ? s2 = "rotateX(0deg)" : "map" === this._pitchAlignment && (s2 = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || t5 && "moveend" !== t5.type || (this._pos = this._pos.round()), r.setTransform(this._element, `${Zs[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${s2} ${a2}`), o.frameAsync(new AbortController()).then((() => { this._updateOpacity(t5 && "moveend" === t5.type); - }).catch(() => { - }); + })).catch((() => { + })); }, this._onMove = (t5) => { if (!this._isDragging) { const e2 = this._clickTolerance || this._map._clickTolerance; @@ -245189,11 +245323,11 @@ uniform ${i3} ${a3} u_${s3}; const g2 = r.createNS("http://www.w3.org/2000/svg", "circle"); g2.setAttributeNS(null, "fill", "#FFFFFF"), g2.setAttributeNS(null, "cx", "5.5"), g2.setAttributeNS(null, "cy", "5.5"), g2.setAttributeNS(null, "r", "5.4999962"), m2.appendChild(f2), m2.appendChild(g2), n2.appendChild(l2), n2.appendChild(c2), n2.appendChild(d2), n2.appendChild(p2), n2.appendChild(m2), i2.appendChild(n2), i2.setAttributeNS(null, "height", a2 * this._scale + "px"), i2.setAttributeNS(null, "width", s2 * this._scale + "px"), this._element.appendChild(i2), this._offset = e.P.convert(t4 && t4.offset || [0, -14]); } - if (this._element.classList.add("maplibregl-marker"), this._element.addEventListener("dragstart", (t5) => { + if (this._element.classList.add("maplibregl-marker"), this._element.addEventListener("dragstart", ((t5) => { t5.preventDefault(); - }), this._element.addEventListener("mousedown", (t5) => { + })), this._element.addEventListener("mousedown", ((t5) => { t5.preventDefault(); - }), qs(this._element, this._anchor, "marker"), t4 && t4.className) for (const e2 of t4.className.split(" ")) this._element.classList.add(e2); + })), qs(this._element, this._anchor, "marker"), t4 && t4.className) for (const e2 of t4.className.split(" ")) this._element.classList.add(e2); this._popup = null; } addTo(t4) { @@ -245237,9 +245371,9 @@ uniform ${i3} ${a3} u_${s3}; if (t4) this._opacityTimeout = null; else { if (this._opacityTimeout) return; - this._opacityTimeout = setTimeout(() => { + this._opacityTimeout = setTimeout((() => { this._opacityTimeout = null; - }, 100); + }), 100); } const s2 = this._map, o2 = s2.terrain.depthAtPoint(this._pos), r2 = s2.terrain.getElevationForLngLatZoom(this._lngLat, s2.transform.tileZoom); if (s2.transform.lngLatToCameraDepth(this._lngLat, r2) - o2 < 6e-3) return void (this._element.style.opacity = this._opacity); @@ -245300,14 +245434,14 @@ uniform ${i3} ${a3} u_${s3}; } else i2 && "nautical" === i2.unit ? Ks(e2, a2, n2 / 1852, t4._getUIString("ScaleControl.NauticalMiles")) : n2 >= 1e3 ? Ks(e2, a2, n2 / 1e3, t4._getUIString("ScaleControl.Kilometers")) : Ks(e2, a2, n2, t4._getUIString("ScaleControl.Meters")); } function Ks(t4, e2, i2, a2) { - const s2 = function(t5) { + const s2 = (function(t5) { const e3 = Math.pow(10, `${Math.floor(t5)}`.length - 1); let i3 = t5 / e3; - return i3 = i3 >= 10 ? 10 : i3 >= 5 ? 5 : i3 >= 3 ? 3 : i3 >= 2 ? 2 : i3 >= 1 ? 1 : function(t6) { + return i3 = i3 >= 10 ? 10 : i3 >= 5 ? 5 : i3 >= 3 ? 3 : i3 >= 2 ? 2 : i3 >= 1 ? 1 : (function(t6) { const e4 = Math.pow(10, Math.ceil(-Math.log(t6) / Math.LN10)); return Math.round(t6 * e4) / e4; - }(i3), e3 * i3; - }(i2); + })(i3), e3 * i3; + })(i2); t4.style.width = e2 * (s2 / i2) + "px", t4.innerHTML = `${s2} ${a2}`; } const Js = { closeButton: true, closeOnClick: true, focusAfterOpen: true, className: "", maxWidth: "240px", subpixelPositioning: false }, Ys = ["a[href]", "[tabindex]:not([tabindex='-1'])", "[contenteditable]:not([contenteditable='false'])", "button:not([disabled])", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].join(", "); @@ -245414,7 +245548,7 @@ uniform ${i3} ${a3} u_${s3}; }, this._finish = () => { this._timeoutId && clearTimeout(this._timeoutId), this._timeoutId = void 0; }, this._setupUI = () => { - this._map && (this._container.addEventListener("contextmenu", (t5) => t5.preventDefault()), this._geolocateButton = r.create("button", "maplibregl-ctrl-geolocate", this._container), r.create("span", "maplibregl-ctrl-icon", this._geolocateButton).setAttribute("aria-hidden", "true"), this._geolocateButton.type = "button", this._geolocateButton.disabled = true); + this._map && (this._container.addEventListener("contextmenu", ((t5) => t5.preventDefault())), this._geolocateButton = r.create("button", "maplibregl-ctrl-geolocate", this._container), r.create("span", "maplibregl-ctrl-icon", this._geolocateButton).setAttribute("aria-hidden", "true"), this._geolocateButton.type = "button", this._geolocateButton.disabled = true); }, this._finishSetupUI = (t5) => { if (this._map) { if (false === t5) { @@ -245425,15 +245559,15 @@ uniform ${i3} ${a3} u_${s3}; const t6 = this._map._getUIString("GeolocateControl.FindMyLocation"); this._geolocateButton.disabled = false, this._geolocateButton.title = t6, this._geolocateButton.setAttribute("aria-label", t6); } - this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = r.create("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new Vs({ element: this._dotElement }), this._circleElement = r.create("div", "maplibregl-user-location-accuracy-circle"), this._accuracyCircleMarker = new Vs({ element: this._circleElement, pitchAlignment: "map" }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", () => this.trigger()), this._setup = true, this.options.trackUserLocation && this._map.on("movestart", (t6) => { + this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = r.create("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new Vs({ element: this._dotElement }), this._circleElement = r.create("div", "maplibregl-user-location-accuracy-circle"), this._accuracyCircleMarker = new Vs({ element: this._circleElement, pitchAlignment: "map" }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", (() => this.trigger())), this._setup = true, this.options.trackUserLocation && this._map.on("movestart", ((t6) => { t6.geolocateSource || "ACTIVE_LOCK" !== this._watchState || t6.originalEvent && "resize" === t6.originalEvent.type || (this._watchState = "BACKGROUND", this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this.fire(new e.k("trackuserlocationend")), this.fire(new e.k("userlocationlostfocus"))); - }); + })); } }, this.options = e.e({}, Gs, t4); } onAdd(t4) { - return this._map = t4, this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._setupUI(), function() { - return e._(this, arguments, void 0, function* (t5 = false) { + return this._map = t4, this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._setupUI(), (function() { + return e._(this, arguments, void 0, (function* (t5 = false) { if (void 0 !== Us && !t5) return Us; if (void 0 === window.navigator.permissions) return Us = !!window.navigator.geolocation, Us; try { @@ -245443,8 +245577,8 @@ uniform ${i3} ${a3} u_${s3}; Us = !!window.navigator.geolocation; } return Us; - }); - }().then((t5) => this._finishSetupUI(t5)), this._container; + })); + })().then(((t5) => this._finishSetupUI(t5))), this._container; } onRemove() { void 0 !== this._geolocationWatchID && (window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0), this.options.showUserLocation && this._userLocationDotMarker && this._userLocationDotMarker.remove(), this.options.showAccuracyCircle && this._accuracyCircleMarker && this._accuracyCircleMarker.remove(), r.remove(this._container), this._map.off("zoom", this._onZoom), this._map = void 0, Hs = 0, Ws = false; @@ -245532,35 +245666,35 @@ uniform ${i3} ${a3} u_${s3}; if (t5.target === this._container) return this._container.scrollTop = 0, this._container.scrollLeft = 0, false; }, this._onWindowOnline = () => { this._update(); - }, this._interactive = i2.interactive, this._maxTileCacheSize = i2.maxTileCacheSize, this._maxTileCacheZoomLevels = i2.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = true === i2.failIfMajorPerformanceCaveat, this._preserveDrawingBuffer = true === i2.preserveDrawingBuffer, this._antialias = true === i2.antialias, this._trackResize = true === i2.trackResize, this._bearingSnap = i2.bearingSnap, this._refreshExpiredTiles = true === i2.refreshExpiredTiles, this._fadeDuration = i2.fadeDuration, this._crossSourceCollisions = true === i2.crossSourceCollisions, this._collectResourceTiming = true === i2.collectResourceTiming, this._locale = Object.assign(Object.assign({}, ks), i2.locale), this._clickTolerance = i2.clickTolerance, this._overridePixelRatio = i2.pixelRatio, this._maxCanvasSize = i2.maxCanvasSize, this.transformCameraUpdate = i2.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = true === i2.cancelPendingTileRequestsWhileZooming, this._imageQueueHandle = _.addThrottleControl(() => this.isMoving()), this._requestManager = new p(i2.transformRequest), "string" == typeof i2.container) { + }, this._interactive = i2.interactive, this._maxTileCacheSize = i2.maxTileCacheSize, this._maxTileCacheZoomLevels = i2.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = true === i2.failIfMajorPerformanceCaveat, this._preserveDrawingBuffer = true === i2.preserveDrawingBuffer, this._antialias = true === i2.antialias, this._trackResize = true === i2.trackResize, this._bearingSnap = i2.bearingSnap, this._refreshExpiredTiles = true === i2.refreshExpiredTiles, this._fadeDuration = i2.fadeDuration, this._crossSourceCollisions = true === i2.crossSourceCollisions, this._collectResourceTiming = true === i2.collectResourceTiming, this._locale = Object.assign(Object.assign({}, ks), i2.locale), this._clickTolerance = i2.clickTolerance, this._overridePixelRatio = i2.pixelRatio, this._maxCanvasSize = i2.maxCanvasSize, this.transformCameraUpdate = i2.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = true === i2.cancelPendingTileRequestsWhileZooming, this._imageQueueHandle = _.addThrottleControl((() => this.isMoving())), this._requestManager = new p(i2.transformRequest), "string" == typeof i2.container) { if (this._container = document.getElementById(i2.container), !this._container) throw new Error(`Container '${i2.container}' not found.`); } else { if (!(i2.container instanceof HTMLElement)) throw new Error("Invalid type: 'container' must be a String or HTMLElement."); this._container = i2.container; } - if (i2.maxBounds && this.setMaxBounds(i2.maxBounds), this._setupContainer(), this._setupPainter(), this.on("move", () => this._update(false)).on("moveend", () => this._update(false)).on("zoom", () => this._update(true)).on("terrain", () => { + if (i2.maxBounds && this.setMaxBounds(i2.maxBounds), this._setupContainer(), this._setupPainter(), this.on("move", (() => this._update(false))).on("moveend", (() => this._update(false))).on("zoom", (() => this._update(true))).on("terrain", (() => { this.painter.terrainFacilitator.dirty = true, this._update(true); - }).once("idle", () => { + })).once("idle", (() => { this._idleTriggered = true; - }), "undefined" != typeof window) { + })), "undefined" != typeof window) { addEventListener("online", this._onWindowOnline, false); let t5 = false; - const e2 = Ia((t6) => { + const e2 = Ia(((t6) => { this._trackResize && !this._removed && (this.resize(t6), this.redraw()); - }, 50); - this._resizeObserver = new ResizeObserver((i3) => { + }), 50); + this._resizeObserver = new ResizeObserver(((i3) => { t5 ? e2(i3) : t5 = true; - }), this._resizeObserver.observe(this._container); + })), this._resizeObserver.observe(this._container); } - this.handlers = new ws(this, i2), this._hash = i2.hash && new Ea("string" == typeof i2.hash && i2.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: i2.center, zoom: i2.zoom, bearing: i2.bearing, pitch: i2.pitch }), i2.bounds && (this.resize(), this.fitBounds(i2.bounds, e.e({}, i2.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = i2.localIdeographFontFamily, this._validateStyle = i2.validateStyle, i2.style && this.setStyle(i2.style, { localIdeographFontFamily: i2.localIdeographFontFamily }), i2.attributionControl && this.addControl(new Es("boolean" == typeof i2.attributionControl ? void 0 : i2.attributionControl)), i2.maplibreLogo && this.addControl(new Ps(), i2.logoPosition), this.on("style.load", () => { + this.handlers = new ws(this, i2), this._hash = i2.hash && new Ea("string" == typeof i2.hash && i2.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: i2.center, zoom: i2.zoom, bearing: i2.bearing, pitch: i2.pitch }), i2.bounds && (this.resize(), this.fitBounds(i2.bounds, e.e({}, i2.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = i2.localIdeographFontFamily, this._validateStyle = i2.validateStyle, i2.style && this.setStyle(i2.style, { localIdeographFontFamily: i2.localIdeographFontFamily }), i2.attributionControl && this.addControl(new Es("boolean" == typeof i2.attributionControl ? void 0 : i2.attributionControl)), i2.maplibreLogo && this.addControl(new Ps(), i2.logoPosition), this.on("style.load", (() => { this.transform.unmodified && this.jumpTo(this.style.stylesheet); - }), this.on("data", (t5) => { + })), this.on("data", ((t5) => { this._update("style" === t5.dataType), this.fire(new e.k(`${t5.dataType}data`, t5)); - }), this.on("dataloading", (t5) => { + })), this.on("dataloading", ((t5) => { this.fire(new e.k(`${t5.dataType}dataloading`, t5)); - }), this.on("dataabort", (t5) => { + })), this.on("dataabort", ((t5) => { this.fire(new e.k("sourcedataabort", t5)); - }); + })); } _getMapId() { return this._mapId; @@ -245674,7 +245808,7 @@ uniform ${i3} ${a3} u_${s3}; if ("mouseenter" === t4 || "mouseover" === t4) { let a2 = false; const s2 = (s3) => { - const o2 = e2.filter((t5) => this.getLayer(t5)), r2 = 0 !== o2.length ? this.queryRenderedFeatures(s3.point, { layers: o2 }) : []; + const o2 = e2.filter(((t5) => this.getLayer(t5))), r2 = 0 !== o2.length ? this.queryRenderedFeatures(s3.point, { layers: o2 }) : []; r2.length ? a2 || (a2 = true, i2.call(this, new ka(t4, this, s3.originalEvent, { features: r2 }))) : a2 = false; }; return { layers: e2, listener: i2, delegates: { mousemove: s2, mouseout: () => { @@ -245684,7 +245818,7 @@ uniform ${i3} ${a3} u_${s3}; if ("mouseleave" === t4 || "mouseout" === t4) { let a2 = false; const s2 = (s3) => { - const o3 = e2.filter((t5) => this.getLayer(t5)); + const o3 = e2.filter(((t5) => this.getLayer(t5))); (0 !== o3.length ? this.queryRenderedFeatures(s3.point, { layers: o3 }) : []).length ? a2 = true : a2 && (a2 = false, i2.call(this, new ka(t4, this, s3.originalEvent))); }, o2 = (e3) => { a2 && (a2 = false, i2.call(this, new ka(t4, this, e3.originalEvent))); @@ -245693,7 +245827,7 @@ uniform ${i3} ${a3} u_${s3}; } { const a2 = (t5) => { - const a3 = e2.filter((t6) => this.getLayer(t6)), s2 = 0 !== a3.length ? this.queryRenderedFeatures(t5.point, { layers: a3 }) : []; + const a3 = e2.filter(((t6) => this.getLayer(t6))), s2 = 0 !== a3.length ? this.queryRenderedFeatures(t5.point, { layers: a3 }) : []; s2.length && (t5.features = s2, i2.call(this, t5), delete t5.features); }; return { layers: e2, listener: i2, delegates: { [t4]: a2 } }; @@ -245707,7 +245841,7 @@ uniform ${i3} ${a3} u_${s3}; const a2 = this._delegatedListeners[t4]; for (let t5 = 0; t5 < a2.length; t5++) { const s2 = a2[t5]; - if (s2.listener === i2 && s2.layers.length === e2.length && s2.layers.every((t6) => e2.includes(t6))) { + if (s2.listener === i2 && s2.layers.length === e2.length && s2.layers.every(((t6) => e2.includes(t6)))) { for (const t6 in s2.delegates) this.off(t6, s2.delegates[t6]); return void a2.splice(t5, 1); } @@ -245762,7 +245896,7 @@ uniform ${i3} ${a3} u_${s3}; return e2; } _updateStyle(t4, e2) { - if (e2.transformStyle && this.style && !this.style._loaded) return void this.style.once("style.load", () => this._updateStyle(t4, e2)); + if (e2.transformStyle && this.style && !this.style._loaded) return void this.style.once("style.load", (() => this._updateStyle(t4, e2))); const i2 = this.style && e2.transformStyle ? this.style.serialize() : void 0; return this.style && (this.style.setEventedParent(null), this.style._remove(!t4)), t4 ? (this.style = new de(this, e2 || {}), this.style.setEventedParent(this, { style: this.style }), "string" == typeof t4 ? this.style.loadURL(t4, e2, i2) : this.style.loadJSON(t4, e2, i2), this) : (delete this.style, this); } @@ -245772,11 +245906,11 @@ uniform ${i3} ${a3} u_${s3}; _diffStyle(t4, i2) { if ("string" == typeof t4) { const a2 = this._requestManager.transformRequest(t4, "Style"); - e.h(a2, new AbortController()).then((t5) => { + e.h(a2, new AbortController()).then(((t5) => { this._updateDiff(t5.data, i2); - }).catch((t5) => { + })).catch(((t5) => { t5 && this.fire(new e.j(t5)); - }); + })); } else "object" == typeof t4 && this._updateDiff(t4, i2); } _updateDiff(t4, i2) { @@ -245917,9 +246051,9 @@ uniform ${i3} ${a3} u_${s3}; return this.style.getGlyphsUrl(); } addSprite(t4, e2, i2 = {}) { - return this._lazyInitEmptyStyle(), this.style.addSprite(t4, e2, i2, (t5) => { + return this._lazyInitEmptyStyle(), this.style.addSprite(t4, e2, i2, ((t5) => { t5 || this._update(true); - }), this; + })), this; } removeSprite(t4) { return this._lazyInitEmptyStyle(), this.style.removeSprite(t4), this._update(true); @@ -245928,9 +246062,9 @@ uniform ${i3} ${a3} u_${s3}; return this.style.getSprite(); } setSprite(t4, e2 = {}) { - return this._lazyInitEmptyStyle(), this.style.setSprite(t4, e2, (t5) => { + return this._lazyInitEmptyStyle(), this.style.setSprite(t4, e2, ((t5) => { t5 || this._update(true); - }), this; + })), this; } setLight(t4, e2 = {}) { return this._lazyInitEmptyStyle(), this.style.setLight(t4, e2), this._update(true); @@ -245974,9 +246108,9 @@ uniform ${i3} ${a3} u_${s3}; const i2 = this._containerDimensions(), a2 = this._getClampedPixelRatio(i2[0], i2[1]); this._resizeCanvas(i2[0], i2[1], a2); const s2 = this._controlContainer = r.create("div", "maplibregl-control-container", t4), o2 = this._controlPositions = {}; - ["top-left", "top-right", "bottom-left", "bottom-right"].forEach((t5) => { + ["top-left", "top-right", "bottom-left", "bottom-right"].forEach(((t5) => { o2[t5] = r.create("div", `maplibregl-ctrl-${t5} `, s2); - }), this._container.addEventListener("scroll", this._onMapScroll, false); + })), this._container.addEventListener("scroll", this._onMapScroll, false); } _resizeCanvas(t4, e2, i2) { this._canvas.width = Math.floor(i2 * t4), this._canvas.height = Math.floor(i2 * e2), this._canvas.style.width = `${t4}px`, this._canvas.style.height = `${e2}px`; @@ -245984,9 +246118,9 @@ uniform ${i3} ${a3} u_${s3}; _setupPainter() { const t4 = { alpha: true, stencil: true, depth: true, failIfMajorPerformanceCaveat: this._failIfMajorPerformanceCaveat, preserveDrawingBuffer: this._preserveDrawingBuffer, antialias: this._antialias || false }; let e2 = null; - this._canvas.addEventListener("webglcontextcreationerror", (i3) => { + this._canvas.addEventListener("webglcontextcreationerror", ((i3) => { e2 = { requestedAttributes: t4 }, i3 && (e2.statusMessage = i3.statusMessage, e2.type = i3.type); - }, { once: true }); + }), { once: true }); const i2 = this._canvas.getContext("webgl2", t4) || this._canvas.getContext("webgl", t4); if (!i2) { const t5 = "Failed to initialize WebGL"; @@ -246033,10 +246167,10 @@ uniform ${i3} ${a3} u_${s3}; (null == i2 ? void 0 : i2.loseContext) && i2.loseContext(), this._canvas.removeEventListener("webglcontextrestored", this._contextRestored, false), this._canvas.removeEventListener("webglcontextlost", this._contextLost, false), r.remove(this._canvasContainer), r.remove(this._controlContainer), this._container.classList.remove("maplibregl-map"), e.bf.clearMetrics(), this._removed = true, this.fire(new e.k("remove")); } triggerRepaint() { - this.style && !this._frameRequest && (this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then((t4) => { + this.style && !this._frameRequest && (this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then(((t4) => { e.bf.frame(t4), this._frameRequest = null, this._render(t4); - }).catch(() => { - })); + })).catch((() => { + }))); } get showTileBoundaries() { return !!this._showTileBoundaries; @@ -246091,9 +246225,9 @@ uniform ${i3} ${a3} u_${s3}; }, this._setButtonTitle = (t5, e2) => { const i2 = this._map._getUIString(`NavigationControl.${e2}`); t5.title = i2, t5.setAttribute("aria-label", i2); - }, this.options = e.e({}, Os, t4), this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._container.addEventListener("contextmenu", (t5) => t5.preventDefault()), this.options.showZoom && (this._zoomInButton = this._createButton("maplibregl-ctrl-zoom-in", (t5) => this._map.zoomIn({}, { originalEvent: t5 })), r.create("span", "maplibregl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("maplibregl-ctrl-zoom-out", (t5) => this._map.zoomOut({}, { originalEvent: t5 })), r.create("span", "maplibregl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (this._compass = this._createButton("maplibregl-ctrl-compass", (t5) => { + }, this.options = e.e({}, Os, t4), this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._container.addEventListener("contextmenu", ((t5) => t5.preventDefault())), this.options.showZoom && (this._zoomInButton = this._createButton("maplibregl-ctrl-zoom-in", ((t5) => this._map.zoomIn({}, { originalEvent: t5 }))), r.create("span", "maplibregl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("maplibregl-ctrl-zoom-out", ((t5) => this._map.zoomOut({}, { originalEvent: t5 }))), r.create("span", "maplibregl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (this._compass = this._createButton("maplibregl-ctrl-compass", ((t5) => { this.options.visualizePitch ? this._map.resetNorthPitch({}, { originalEvent: t5 }) : this._map.resetNorth({}, { originalEvent: t5 }); - }), this._compassIcon = r.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true")); + })), this._compassIcon = r.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true")); } onAdd(t4) { return this._map = t4, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), this._map.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && this._map.on("pitch", this._rotateCompassArrow), this._map.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new Ns(this._map, this._compass, this.options.visualizePitch)), this._container; @@ -246229,12 +246363,12 @@ uniform ${i3} ${a3} u_${s3}; onRemove() { r.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0; } - }, t.TwoFingersTouchPitchHandler = rs, t.TwoFingersTouchRotateHandler = ss, t.TwoFingersTouchZoomHandler = is, t.TwoFingersTouchZoomRotateHandler = gs, t.VectorTileSource = $, t.VideoSource = tt, t.addSourceType = (t4, i2) => e._(void 0, void 0, void 0, function* () { + }, t.TwoFingersTouchPitchHandler = rs, t.TwoFingersTouchRotateHandler = ss, t.TwoFingersTouchZoomHandler = is, t.TwoFingersTouchZoomRotateHandler = gs, t.VectorTileSource = $, t.VideoSource = tt, t.addSourceType = (t4, i2) => e._(void 0, void 0, void 0, (function* () { if (at(t4)) throw new Error(`A source type called "${t4}" already exists.`); ((t5, e2) => { it[t5] = e2; })(t4, i2); - }), t.clearPrewarmedResources = function() { + })), t.clearPrewarmedResources = function() { const t4 = B2; t4 && (t4.isPreloaded() && 1 === t4.numActive() ? (t4.release(k), B2 = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()")); }, t.getMaxParallelImageRequests = function() { @@ -246260,10 +246394,10 @@ uniform ${i3} ${a3} u_${s3}; }, t.setWorkerUrl = function(t4) { e.a.WORKER_URL = t4; }; - }); + })); var maplibregl$1 = maplibregl; return maplibregl$1; - }); + })); } }); @@ -249076,7 +249210,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/d3-collection/dist/d3-collection.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : factory(global2.d3 = global2.d3 || {}); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var prefix = "$"; function Map2() { @@ -249263,7 +249397,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.values = values; exports2.entries = entries; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -249479,7 +249613,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/d3-force/dist/d3-force.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_quadtree(), require_d3_collection(), require_d3_dispatch(), require_d3_timer()) : typeof define === "function" && false ? define(["exports", "d3-quadtree", "d3-collection", "d3-dispatch", "d3-timer"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3, global2.d3, global2.d3); - })(exports, function(exports2, d3Quadtree, d3Collection, d3Dispatch, d3Timer) { + })(exports, (function(exports2, d3Quadtree, d3Collection, d3Dispatch, d3Timer) { "use strict"; function center(x2, y2) { var nodes; @@ -249947,7 +250081,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.forceX = x$2; exports2.forceY = y$2; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -250813,7 +250947,7 @@ uniform ${i3} ${a3} u_${s3}; this._y.push(+y2); } }; - var bundle = function custom(beta) { + var bundle = (function custom(beta) { function bundle2(context) { return beta === 1 ? new Basis(context) : new Bundle(context, beta); } @@ -250821,7 +250955,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+beta2); }; return bundle2; - }(0.85); + })(0.85); function point$1(that, x2, y2) { that._context.bezierCurveTo( that._x1 + that._k * (that._x2 - that._x0), @@ -250881,7 +251015,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var cardinal = function custom(tension) { + var cardinal = (function custom(tension) { function cardinal2(context) { return new Cardinal(context, tension); } @@ -250889,7 +251023,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+tension2); }; return cardinal2; - }(0); + })(0); function CardinalClosed(context, tension) { this._context = context; this._k = (1 - tension) / 6; @@ -250944,7 +251078,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var cardinalClosed = function custom(tension) { + var cardinalClosed = (function custom(tension) { function cardinal2(context) { return new CardinalClosed(context, tension); } @@ -250952,7 +251086,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+tension2); }; return cardinal2; - }(0); + })(0); function CardinalOpen(context, tension) { this._context = context; this._k = (1 - tension) / 6; @@ -250996,7 +251130,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var cardinalOpen = function custom(tension) { + var cardinalOpen = (function custom(tension) { function cardinal2(context) { return new CardinalOpen(context, tension); } @@ -251004,7 +251138,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+tension2); }; return cardinal2; - }(0); + })(0); function point$2(that, x2, y2) { var x1 = that._x1, y1 = that._y1, x22 = that._x2, y22 = that._y2; if (that._l01_a > epsilon) { @@ -251073,7 +251207,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var catmullRom = function custom(alpha) { + var catmullRom = (function custom(alpha) { function catmullRom2(context) { return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0); } @@ -251081,7 +251215,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+alpha2); }; return catmullRom2; - }(0.5); + })(0.5); function CatmullRomClosed(context, alpha) { this._context = context; this._alpha = alpha; @@ -251142,7 +251276,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var catmullRomClosed = function custom(alpha) { + var catmullRomClosed = (function custom(alpha) { function catmullRom2(context) { return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0); } @@ -251150,7 +251284,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+alpha2); }; return catmullRom2; - }(0.5); + })(0.5); function CatmullRomOpen(context, alpha) { this._context = context; this._alpha = alpha; @@ -251200,7 +251334,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var catmullRomOpen = function custom(alpha) { + var catmullRomOpen = (function custom(alpha) { function catmullRom2(context) { return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0); } @@ -251208,7 +251342,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+alpha2); }; return catmullRom2; - }(0.5); + })(0.5); function LinearClosed(context) { this._context = context; } @@ -251628,7 +251762,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/@plotly/d3-sankey/build/d3-sankey.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array(), require_d3_collection(), require_d3_shape()) : typeof define === "function" && false ? define(["exports", "d3-array", "d3-collection", "d3-shape"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3, global2.d3); - })(exports, function(exports2, d3Array, d3Collection, d3Shape) { + })(exports, (function(exports2, d3Array, d3Collection, d3Shape) { "use strict"; function targetDepth(d) { return d.target.depth; @@ -251886,7 +252020,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.sankeyJustify = justify; exports2.sankeyLinkHorizontal = sankeyLinkHorizontal; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -252023,7 +252157,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/@plotly/d3-sankey-circular/dist/d3-sankey-circular.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array(), require_d3_collection(), require_d3_shape(), require_johnson()) : typeof define === "function" && false ? define(["exports", "d3-array", "d3-collection", "d3-shape", "elementary-circuits-directed-graph"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3, global2.d3, null); - })(exports, function(exports2, d3Array, d3Collection, d3Shape, findCircuits) { + })(exports, (function(exports2, d3Array, d3Collection, d3Shape, findCircuits) { "use strict"; findCircuits = findCircuits && findCircuits.hasOwnProperty("default") ? findCircuits["default"] : findCircuits; function targetDepth(d) { @@ -253023,7 +253157,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.sankeyRight = right; exports2.sankeyJustify = justify; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); diff --git a/dist/plotly.js b/dist/plotly.js index 53fd81007c5..8abb8e3d5af 100644 --- a/dist/plotly.js +++ b/dist/plotly.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.6.0 +* plotly.js v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -49,11 +49,20 @@ var Plotly = (() => { } return target; }; - var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + var __esm = (fn, res, err) => function __init() { + if (err) throw err[0]; + try { + return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; + } catch (e) { + throw err = [e], e; + } }; var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + try { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; + } catch (e) { + throw mod = 0, e; + } }; var __export = (target, all) => { for (var name2 in all) @@ -81,7 +90,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.6.0"; + exports.version = "3.7.0"; } }); @@ -117,7 +126,7 @@ var Plotly = (() => { return obj; }; } - scheduling_queue = /* @__PURE__ */ function Queue() { + scheduling_queue = /* @__PURE__ */ (function Queue() { var first, last, item; function Item(fn, self2) { this.fn = fn; @@ -144,7 +153,7 @@ var Plotly = (() => { } } }; - }(); + })(); function schedule(fn, self2) { scheduling_queue.add(fn, self2); if (!cycle) { @@ -8170,7 +8179,7 @@ var Plotly = (() => { "node_modules/d3-format/dist/d3-format.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.d3 = global2.d3 || {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function formatDecimal(x) { return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10); @@ -8410,7 +8419,7 @@ var Plotly = (() => { exports2.precisionPrefix = precisionPrefix; exports2.precisionRound = precisionRound; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -8527,7 +8536,7 @@ var Plotly = (() => { "node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2["base64-arraybuffer"] = {})); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256); @@ -8572,7 +8581,7 @@ var Plotly = (() => { exports2.decode = decode; exports2.encode = encode; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -9975,7 +9984,7 @@ var Plotly = (() => { function convertHexToDecimal(h) { return parseIntFromHex(h) / 255; } - var matchers = function() { + var matchers = (function() { var CSS_INTEGER = "[-\\+]?\\d+%?"; var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?"; var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")"; @@ -9994,7 +10003,7 @@ var Plotly = (() => { hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/ }; - }(); + })(); function isValidCSSUnit(color2) { return !!matchers.CSS_UNIT.exec(color2); } @@ -13817,9 +13826,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")) { + if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { var e = document.createElement("style"); - e.id = "8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc"; + e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`; document.head.appendChild(e); } @@ -16072,6 +16081,17 @@ var Plotly = (() => { "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;", "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;", "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;", + "X .plotly-cloud-dialog": 'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);', + "X .plotly-cloud-dialog .plotly-cloud-dialog-box": "box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-title": "font-size:16px;font-weight:bold;margin-bottom:12px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-message": "line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-buttons": "display:flex;justify-content:flex-end;margin-top:20px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn": "font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible": "outline:2px solid #447adb;outline-offset:1px;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel": "background-color:#fff;border-color:#e0e2e5;color:#777;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover": "background-color:#f3f3f3;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm": "background-color:#447adb;color:#fff;", + "X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover": "background-color:#1d3b84;", Y: 'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;', "Y p": "margin:0;", "Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;", @@ -17784,6 +17804,7 @@ var Plotly = (() => { var formatLocale = require_d3_format().formatLocale; var isNumeric = require_fast_isnumeric(); var b64encode = require_base64_arraybuffer_umd(); + var version = require_version().version; var Registry = require_registry(); var PlotSchema = require_plot_schema(); var Template = require_plot_template(); @@ -17912,24 +17933,31 @@ var Plotly = (() => { }); } } - plots.sendDataToCloud = function(gd) { - var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; - if (!baseUrl) return; + plots.sendDataToCloud = function(gd, serverURL) { gd.emit("plotly_beforeexport"); - var hiddenformDiv = d3.select(gd).append("div").attr("id", "hiddenform").style("display", "none"); - var hiddenform = hiddenformDiv.append("form").attr({ - action: baseUrl + "/external", - method: "post", - target: "_blank" - }); - var hiddenformInput = hiddenform.append("input").attr({ - type: "text", - name: "data" - }); - hiddenformInput.node().value = plots.graphJson(gd, false, "keepdata"); - hiddenform.node().submit(); - hiddenformDiv.remove(); - gd.emit("plotly_afterexport"); + const serverURLOrigin = new URL(serverURL).origin; + var chart = plots.graphJson(gd, false, "keepdata", "object"); + chart.version = version; + var uploadUrl = new URL(serverURL); + uploadUrl.searchParams.set("origin", window.location.origin); + var cloudWindow = window.open(uploadUrl.href, "_blank"); + if (!cloudWindow) { + console.error("Unable to open Plotly Cloud (the popup may have been blocked)"); + gd.emit("plotly_exportfail"); + return; + } + var handleMessage = function(event) { + if (event.origin !== serverURLOrigin) return; + if (event.data && event.data.type === "CHART_AUTH_SUCCESS") { + cloudWindow.postMessage({ + type: "chart", + chart + }, serverURLOrigin); + window.removeEventListener("message", handleMessage); + gd.emit("plotly_afterexport"); + } + }; + window.addEventListener("message", handleMessage); return false; }; var d3FormatKeys = [ @@ -32829,7 +32857,17 @@ var Plotly = (() => { if (_mode === "array") { var selection = evt[curvenum]; if ("pointNumber" in selection) { - pointData.index = selection.pointNumber; + const cdi = cd[selection.pointNumber]; + if (cdi) { + pointData.index = selection.pointNumber; + if (cdi.lonlat) { + xval = cdi.lonlat[0]; + yval = cdi.lonlat[1]; + } else { + xval = cdi.x; + yval = cdi.y; + } + } _mode = "closest"; } else { _mode = ""; @@ -34631,6 +34669,12 @@ var Plotly = (() => { path: "m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z", transform: "matrix(1 0 0 -1 0 850)" }, + cloudupload: { + width: 640, + height: 640, + path: "M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z", + transform: "matrix(1 0 0 1 -15 -15)" + }, drawopenpath: { width: 70, height: 70, @@ -36846,6 +36890,40 @@ var Plotly = (() => { } }); + // src/components/modebar/cloud_confirm.js + var require_cloud_confirm = __commonJS({ + "src/components/modebar/cloud_confirm.js"(exports, module) { + "use strict"; + var d3 = require_d3(); + var _ = require_lib()._; + module.exports = function confirmCloudDialog(gd, serverUrl, onConfirm) { + var container = d3.select(gd._fullLayout._paperdiv.node()); + container.selectAll(".plotly-cloud-dialog").remove(); + var overlay = container.append("div").classed("plotly-cloud-dialog", true); + var dialog = overlay.append("div").classed("plotly-cloud-dialog-box", true); + dialog.append("div").classed("plotly-cloud-dialog-title", true).text(_(gd, "Share with Plotly Cloud")); + dialog.append("div").classed("plotly-cloud-dialog-message", true).text(_(gd, "This chart and its data will be sent to") + " " + serverUrl + "."); + var buttons = dialog.append("div").classed("plotly-cloud-dialog-buttons", true); + function close() { + overlay.remove(); + document.removeEventListener("keydown", onKeydown); + } + function onKeydown(e) { + if (e.key === "Escape" || e.keyCode === 27) close(); + } + document.addEventListener("keydown", onKeydown); + overlay.on("click", function() { + if (d3.event.target === overlay.node()) close(); + }); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--cancel", true).text(_(gd, "Cancel")).on("click", close); + buttons.append("button").classed("plotly-cloud-dialog-btn", true).classed("plotly-cloud-dialog-btn--confirm", true).text(_(gd, "Share")).on("click", function() { + close(); + onConfirm(); + }); + }; + } + }); + // src/components/modebar/buttons.js var require_buttons = __commonJS({ "src/components/modebar/buttons.js"(exports, module) { @@ -36855,6 +36933,7 @@ var Plotly = (() => { var axisIds = require_axis_ids(); var Icons = require_ploticon(); var eraseActiveShape = require_draw2().eraseActiveShape; + var confirmCloudDialog = require_cloud_confirm(); var Lib = require_lib(); var _ = Lib._; var modeBarButtons = module.exports = {}; @@ -36885,26 +36964,30 @@ var Plotly = (() => { }); } }; - modeBarButtons.sendDataToCloud = { - name: "sendDataToCloud", + modeBarButtons.sendChartToCloud = { + name: "sendChartToCloud", title: function(gd) { - return _(gd, "Edit in Chart Studio"); + return _(gd, "Share with Plotly Cloud"); }, - icon: Icons.disk, + icon: Icons.cloudupload, click: function(gd) { - Plots.sendDataToCloud(gd); - } - }; - modeBarButtons.editInChartStudio = { - name: "editInChartStudio", - title: function(gd) { - return _(gd, "Edit in Chart Studio"); - }, - icon: Icons.pencil, - click: function(gd) { - Plots.sendDataToCloud(gd); + var baseUrl = (window.PLOTLYENV || {}).BASE_URL || gd._context.plotlyServerURL; + if (!baseUrl) { + console.error("No destination URL provided (plotlyServerURL is not set)"); + return; + } + try { + new URL(baseUrl); + } catch (e) { + console.error("Invalid plotlyServerURL: " + baseUrl); + return; + } + confirmCloudDialog(gd, baseUrl, function() { + Plots.sendDataToCloud(gd, baseUrl); + }); } }; + modeBarButtons.sendDataToCloud = modeBarButtons.sendChartToCloud; modeBarButtons.zoom2d = { name: "zoom2d", _cat: "zoom", @@ -38043,8 +38126,14 @@ var Plotly = (() => { groups.push(out); } var commonGroup = ["toImage"]; - if (context.showEditInChartStudio) commonGroup.push("editInChartStudio"); - else if (context.showSendToCloud) commonGroup.push("sendDataToCloud"); + if (context.showSendToCloud) commonGroup.push("sendChartToCloud"); + else if (context.showEditInChartStudio) { + console.warn([ + "*showEditInChartStudio* is deprecated.", + "Use *showSendToCloud* instead." + ].join(" ")); + commonGroup.push("sendChartToCloud"); + } addGroup(commonGroup); var zoomGroup = []; var hoverGroup = []; @@ -46072,6 +46161,7 @@ var Plotly = (() => { { pattern: /^(map\d*)\.(center|zoom|bearing|pitch)/ }, { pattern: /^legend\.(x|y)$/, attr: "editrevision" }, { pattern: /^(shapes|annotations)/, attr: "editrevision" }, + { pattern: /^selections/, attr: "selectionrevision" }, { pattern: /^title\.text$/, attr: "editrevision" } ]; var traceUIControlPatterns = [ @@ -47083,19 +47173,18 @@ var Plotly = (() => { var xmlnsNamespaces = require_xmlns_namespaces(); var DOUBLEQUOTE_REGEX = /"/g; var DUMMY_SUB = "TOBESTRIPPED"; - var DUMMY_REGEX = new RegExp('("' + DUMMY_SUB + ")|(" + DUMMY_SUB + '")', "g"); + var DUMMY_REGEX = new RegExp(`("${DUMMY_SUB})|(${DUMMY_SUB}")|("${DUMMY_SUB})|(${DUMMY_SUB}")`, "g"); + var PRESERVED_ENTITIES = ["&", "&", "&", """, """, """, "'", "'", "'"]; + var LESS_THAN_ENTITIES = ["<", "<", "<"]; + var GREATER_THAN_ENTITIES = [">", ">", ">"]; function htmlEntityDecode(s) { - var hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); - var replaced = s.replace(/(&[^;]*;)/gi, function(d) { - if (d === "<") { - return "<"; - } - if (d === "&rt;") { - return ">"; - } - if (d.indexOf("<") !== -1 || d.indexOf(">") !== -1) { - return ""; - } + const hiddenDiv = d3.select("body").append("div").style({ display: "none" }).html(""); + const replaced = s.replace(/(&[^;]*;)/gi, (d) => { + const lower = d.toLowerCase(); + if (PRESERVED_ENTITIES.includes(lower)) return d; + if (LESS_THAN_ENTITIES.includes(lower)) return "<"; + if (GREATER_THAN_ENTITIES.includes(lower)) return ">"; + if (d.includes("<") || d.includes(">")) return ""; return hiddenDiv.html(d).text(); }); hiddenDiv.remove(); @@ -73655,7 +73744,7 @@ var Plotly = (() => { function numberIsNaN(obj) { return obj !== obj; } - var hexSliceLookupTable = function() { + var hexSliceLookupTable = (function() { const alphabet = "0123456789abcdef"; const table = new Array(256); for (let i = 0; i < 16; ++i) { @@ -73665,7 +73754,7 @@ var Plotly = (() => { } } return table; - }(); + })(); function defineBigIntMethod(fn) { return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn; } @@ -73687,7 +73776,7 @@ var Plotly = (() => { return true; } var obj = {}; - var sym = Symbol("test"); + var sym = /* @__PURE__ */ Symbol("test"); var symObj = Object(sym); if (typeof sym === "string") { return false; @@ -73933,7 +74022,7 @@ var Plotly = (() => { if (typeof origSymbol("foo") !== "symbol") { return false; } - if (typeof Symbol("bar") !== "symbol") { + if (typeof /* @__PURE__ */ Symbol("bar") !== "symbol") { return false; } return hasSymbolSham(); @@ -74190,7 +74279,7 @@ var Plotly = (() => { var throwTypeError = function() { throw new $TypeError(); }; - var ThrowTypeError = $gOPD ? function() { + var ThrowTypeError = $gOPD ? (function() { try { arguments.callee; return throwTypeError; @@ -74201,7 +74290,7 @@ var Plotly = (() => { return throwTypeError; } } - }() : throwTypeError; + })() : throwTypeError; var hasSymbols = require_has_symbols()(); var getProto = require_get_proto(); var $ObjectGPO = require_Object_getPrototypeOf(); @@ -74683,9 +74772,9 @@ var Plotly = (() => { } return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]"; }; - var supportsStandardArguments = function() { + var supportsStandardArguments = (function() { return isStandardArguments(arguments); - }(); + })(); isStandardArguments.isLegacyArguments = isLegacyArguments; module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments; } @@ -75812,7 +75901,7 @@ var Plotly = (() => { function hasOwnProperty2(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } - var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0; + var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0; exports.promisify = function promisify(original) { if (typeof original !== "function") throw new TypeError('The "original" argument must be of type Function'); @@ -75978,7 +76067,7 @@ var Plotly = (() => { function copyBuffer(src, target, offset) { Buffer2.prototype.copy.call(src, target, offset); } - module.exports = /* @__PURE__ */ function() { + module.exports = /* @__PURE__ */ (function() { function BufferList() { _classCallCheck(this, BufferList); this.head = null; @@ -76142,7 +76231,7 @@ var Plotly = (() => { } }]); return BufferList; - }(); + })(); } }); @@ -76256,13 +76345,13 @@ var Plotly = (() => { return message(arg1, arg2, arg3); } } - var NodeError = /* @__PURE__ */ function(_Base) { + var NodeError = /* @__PURE__ */ (function(_Base) { _inheritsLoose(NodeError2, _Base); function NodeError2(arg1, arg2, arg3) { return _Base.call(this, getMessage(arg1, arg2, arg3)) || this; } return NodeError2; - }(Base); + })(Base); NodeError.prototype.name = Base.name; NodeError.prototype.code = code; codes[code] = NodeError; @@ -77371,13 +77460,13 @@ var Plotly = (() => { return obj; } var finished = require_end_of_stream(); - var kLastResolve = Symbol("lastResolve"); - var kLastReject = Symbol("lastReject"); - var kError = Symbol("error"); - var kEnded = Symbol("ended"); - var kLastPromise = Symbol("lastPromise"); - var kHandlePromise = Symbol("handlePromise"); - var kStream = Symbol("stream"); + var kLastResolve = /* @__PURE__ */ Symbol("lastResolve"); + var kLastReject = /* @__PURE__ */ Symbol("lastReject"); + var kError = /* @__PURE__ */ Symbol("error"); + var kEnded = /* @__PURE__ */ Symbol("ended"); + var kLastPromise = /* @__PURE__ */ Symbol("lastPromise"); + var kHandlePromise = /* @__PURE__ */ Symbol("handlePromise"); + var kStream = /* @__PURE__ */ Symbol("stream"); function createIterResult(value, done) { return { value, @@ -78149,11 +78238,11 @@ var Plotly = (() => { }); for (var i in stream) { if (this[i] === void 0 && typeof stream[i] === "function") { - this[i] = /* @__PURE__ */ function methodWrap(method) { + this[i] = /* @__PURE__ */ (function methodWrap(method) { return function methodWrapReturnFunction() { return stream[method].apply(stream, arguments); }; - }(i); + })(i); } } for (var n = 0; n < kProxyEvents.length; n++) { @@ -79011,7 +79100,7 @@ var Plotly = (() => { function hasOwnProperty2(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } - var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0; + var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0; exports.promisify = function promisify(original) { if (typeof original !== "function") throw new TypeError('The "original" argument must be of type Function'); @@ -79230,7 +79319,7 @@ var Plotly = (() => { return message(arg1, arg2, arg3); } } - var NodeError = /* @__PURE__ */ function(_Base) { + var NodeError = /* @__PURE__ */ (function(_Base) { _inherits(NodeError2, _Base); var _super = _createSuper(NodeError2); function NodeError2(arg1, arg2, arg3) { @@ -79241,7 +79330,7 @@ var Plotly = (() => { return _this; } return _createClass(NodeError2); - }(Base); + })(Base); codes[code] = NodeError; } function oneOf(expected, thing) { @@ -79733,7 +79822,7 @@ var Plotly = (() => { } return "".concat(msg).concat(skipped ? skippedMsg : "", "\n").concat(res).concat(other).concat(end).concat(indicator); } - var AssertionError = /* @__PURE__ */ function(_Error, _inspect$custom) { + var AssertionError = /* @__PURE__ */ (function(_Error, _inspect$custom) { _inherits(AssertionError2, _Error); var _super = _createSuper(AssertionError2); function AssertionError2(options) { @@ -79845,7 +79934,7 @@ var Plotly = (() => { } }]); return AssertionError2; - }(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); + })(/* @__PURE__ */ _wrapNativeSuper(Error), inspect.custom); module.exports = AssertionError; } }); @@ -79917,7 +80006,7 @@ var Plotly = (() => { $webkitStorageInfo: true, $window: true }; - hasAutomationEqualityBug = function() { + hasAutomationEqualityBug = (function() { if (typeof window === "undefined") { return false; } @@ -79935,7 +80024,7 @@ var Plotly = (() => { } } return false; - }(); + })(); equalsConstructorPrototypeIfNotBuggy = function(o) { if (typeof window === "undefined" || !hasAutomationEqualityBug) { return equalsConstructorPrototype(o); @@ -80011,10 +80100,10 @@ var Plotly = (() => { var originalKeys = Object.keys; keysShim.shim = function shimObjectKeys() { if (Object.keys) { - var keysWorksWithArguments = function() { + var keysWorksWithArguments = (function() { var args = Object.keys(arguments); return args && args.length === arguments.length; - }(1, 2); + })(1, 2); if (!keysWorksWithArguments) { Object.keys = function keys(object) { if (isArgs(object)) { @@ -80164,7 +80253,7 @@ var Plotly = (() => { "node_modules/define-properties/index.js"(exports, module) { "use strict"; var keys = require_object_keys(); - var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol"; + var hasSymbols = typeof Symbol === "function" && typeof /* @__PURE__ */ Symbol("foo") === "symbol"; var toStr = Object.prototype.toString; var concat = Array.prototype.concat; var origDefineProperty = Object.defineProperty; @@ -85707,7 +85796,7 @@ var Plotly = (() => { } return rows; } - var squarify = function custom(ratio) { + var squarify = (function custom(ratio) { function squarify2(parent, x0, y0, x1, y1) { squarifyRatio(ratio, parent, x0, y0, x1, y1); } @@ -85715,7 +85804,7 @@ var Plotly = (() => { return custom((x = +x) > 1 ? x : 1); }; return squarify2; - }(phi); + })(phi); function index$1() { var tile = squarify, round = false, dx = 1, dy = 1, paddingStack = [0], paddingInner = constantZero, paddingTop = constantZero, paddingRight = constantZero, paddingBottom = constantZero, paddingLeft = constantZero; function treemap(root) { @@ -85813,7 +85902,7 @@ var Plotly = (() => { function sliceDice(parent, x0, y0, x1, y1) { (parent.depth & 1 ? treemapSlice : treemapDice)(parent, x0, y0, x1, y1); } - var resquarify = function custom(ratio) { + var resquarify = (function custom(ratio) { function resquarify2(parent, x0, y0, x1, y1) { if ((rows = parent._squarify) && rows.ratio === ratio) { var rows, row, nodes, i, j = -1, n, m = rows.length, value = parent.value; @@ -85833,7 +85922,7 @@ var Plotly = (() => { return custom((x = +x) > 1 ? x : 1); }; return resquarify2; - }(phi); + })(phi); exports2.cluster = cluster; exports2.hierarchy = hierarchy; exports2.pack = index; @@ -86751,7 +86840,7 @@ var Plotly = (() => { init_basis(); init_basisClosed(); init_color2(); - rgb_default = function rgbGamma(y) { + rgb_default = (function rgbGamma(y) { var color2 = gamma(y); function rgb2(start, end) { var r = color2((start = rgb(start)).r, (end = rgb(end)).r), g = color2(start.g, end.g), b = color2(start.b, end.b), opacity = nogamma(start.opacity, end.opacity); @@ -86765,7 +86854,7 @@ var Plotly = (() => { } rgb2.gamma = rgbGamma; return rgb2; - }(1); + })(1); rgbBasis = rgbSpline(basis_default); rgbBasisClosed = rgbSpline(basisClosed_default); } @@ -87085,7 +87174,7 @@ var Plotly = (() => { var init_zoom = __esm({ "node_modules/d3-interpolate/src/zoom.js"() { epsilon2 = 1e-12; - zoom_default = function zoomRho(rho, rho2, rho4) { + zoom_default = (function zoomRho(rho, rho2, rho4) { function zoom(p0, p1) { var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S; if (d2 < epsilon2) { @@ -87117,7 +87206,7 @@ var Plotly = (() => { return zoomRho(_1, _2, _4); }; return zoom; - }(Math.SQRT2, 2, 4); + })(Math.SQRT2, 2, 4); } }); @@ -87187,7 +87276,7 @@ var Plotly = (() => { // node_modules/d3-interpolate/src/cubehelix.js function cubehelix2(hue2) { - return function cubehelixGamma(y) { + return (function cubehelixGamma(y) { y = +y; function cubehelix3(start, end) { var h = hue2((start = cubehelix(start)).h, (end = cubehelix(end)).h), s = nogamma(start.s, end.s), l = nogamma(start.l, end.l), opacity = nogamma(start.opacity, end.opacity); @@ -87201,7 +87290,7 @@ var Plotly = (() => { } cubehelix3.gamma = cubehelixGamma; return cubehelix3; - }(1); + })(1); } var cubehelix_default, cubehelixLong; var init_cubehelix2 = __esm({ @@ -90647,7 +90736,7 @@ var Plotly = (() => { /***/ 1964: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { alpha_shape: __webpack_require__2(3502), convex_hull: __webpack_require__2(7352), @@ -90663,12 +90752,12 @@ var Plotly = (() => { ndarray: __webpack_require__2(9618), ndarray_linear_interpolate: __webpack_require__2(4317) }; - } + }) ), /***/ 4793: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var __webpack_unused_export__; function _typeof(o) { @@ -91989,7 +92078,7 @@ var Plotly = (() => { function numberIsNaN(obj) { return obj !== obj; } - var hexSliceLookupTable = function() { + var hexSliceLookupTable = (function() { var alphabet = "0123456789abcdef"; var table = new Array(256); for (var i = 0; i < 16; ++i) { @@ -91999,13 +92088,13 @@ var Plotly = (() => { } } return table; - }(); - } + })(); + }) ), /***/ 9216: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = isMobile; module2.exports.isMobile = isMobile; @@ -92027,12 +92116,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 6296: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createViewController; var createTurntable = __webpack_require__2(7261); @@ -92169,12 +92258,12 @@ var Plotly = (() => { matrix }, mode); } - } + }) ), /***/ 7169: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var weakMap = typeof WeakMap === "undefined" ? __webpack_require__2(1538) : WeakMap; var createBuffer = __webpack_require__2(2762); @@ -92200,12 +92289,12 @@ var Plotly = (() => { triangleVAO.unbind(); } module2.exports = createABigTriangle; - } + }) ), /***/ 1085: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var padLeft = __webpack_require__2(1371); module2.exports = addLineNumbers; function addLineNumbers(string, start, delim) { @@ -92220,12 +92309,12 @@ var Plotly = (() => { return prefix + delim + line; }).join("\n"); } - } + }) ), /***/ 3952: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = affineHull; var orient = __webpack_require__2(3250); @@ -92273,12 +92362,12 @@ var Plotly = (() => { } return index; } - } + }) ), /***/ 5995: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = alphaComplex; var delaunay = __webpack_require__2(7642); @@ -92292,33 +92381,33 @@ var Plotly = (() => { return circumradius(simplex) * alpha < 1; }); } - } + }) ), /***/ 3502: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = alphaShape; var ac = __webpack_require__2(5995); var bnd = __webpack_require__2(9127); function alphaShape(alpha, points) { return bnd(ac(alpha, points)); } - } + }) ), /***/ 6468: ( /***/ - function(module2) { + (function(module2) { module2.exports = function _atob(str) { return atob(str); }; - } + }) ), /***/ 2642: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = barycentric; var solve = __webpack_require__2(727); @@ -92359,12 +92448,12 @@ var Plotly = (() => { } return y; } - } + }) ), /***/ 7507: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.byteLength = byteLength; exports2.toByteArray = toByteArray; @@ -92458,12 +92547,12 @@ var Plotly = (() => { } return parts.join(""); } - } + }) ), /***/ 3865: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = add; @@ -92473,35 +92562,35 @@ var Plotly = (() => { a[1].mul(b[1]) ); } - } + }) ), /***/ 1318: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = cmp; function cmp(a, b) { return a[0].mul(b[1]).cmp(b[0].mul(a[1])); } - } + }) ), /***/ 8697: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = div; function div(a, b) { return rationalize(a[0].mul(b[1]), a[1].mul(b[0])); } - } + }) ), /***/ 7842: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isRat = __webpack_require__2(6330); var isBN = __webpack_require__2(1533); @@ -92559,36 +92648,36 @@ var Plotly = (() => { } return rationalize(a, b); } - } + }) ), /***/ 6330: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isBN = __webpack_require__2(1533); module2.exports = isRat; function isRat(x) { return Array.isArray(x) && x.length === 2 && isBN(x[0]) && isBN(x[1]); } - } + }) ), /***/ 5716: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = sign; function sign(x) { return x.cmp(new BN(0)); } - } + }) ), /***/ 1369: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var sign = __webpack_require__2(5716); module2.exports = bn2num; @@ -92608,12 +92697,12 @@ var Plotly = (() => { } return sign(b) * out; } - } + }) ), /***/ 4025: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var db = __webpack_require__2(2361); var ctz = __webpack_require__2(8828).countTrailingZeros; @@ -92629,24 +92718,24 @@ var Plotly = (() => { } return h + 32; } - } + }) ), /***/ 1533: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = isBN; function isBN(x) { return x && typeof x === "object" && Boolean(x.words); } - } + }) ), /***/ 2651: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); var db = __webpack_require__2(2361); @@ -92659,12 +92748,12 @@ var Plotly = (() => { return new BN(x * Math.pow(2, 52 - e)).ushln(e - 52); } } - } + }) ), /***/ 869: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var num2bn = __webpack_require__2(2651); var sign = __webpack_require__2(5716); @@ -92688,60 +92777,60 @@ var Plotly = (() => { } return [numer, denom]; } - } + }) ), /***/ 6768: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var BN = __webpack_require__2(6859); module2.exports = str2BN; function str2BN(x) { return new BN(x); } - } + }) ), /***/ 6504: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = mul; function mul(a, b) { return rationalize(a[0].mul(b[0]), a[1].mul(b[1])); } - } + }) ), /***/ 7721: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnsign = __webpack_require__2(5716); module2.exports = sign; function sign(x) { return bnsign(x[0]) * bnsign(x[1]); } - } + }) ), /***/ 5572: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rationalize = __webpack_require__2(869); module2.exports = sub; function sub(a, b) { return rationalize(a[0].mul(b[1]).sub(a[1].mul(b[0])), a[1].mul(b[1])); } - } + }) ), /***/ 946: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bn2num = __webpack_require__2(1369); var ctz = __webpack_require__2(4025); @@ -92774,12 +92863,12 @@ var Plotly = (() => { return sgn * y * Math.pow(2, 1023 - ybits); } } - } + }) ), /***/ 2478: ( /***/ - function(module2) { + (function(module2) { "use strict"; function ge(a, y, c, l, h) { var i = h + 1; @@ -92880,12 +92969,12 @@ var Plotly = (() => { return norm(a, y, c, l, h, eq); } }; - } + }) ), /***/ 8828: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; "use restrict"; var INT_BITS = 32; @@ -93035,12 +93124,12 @@ var Plotly = (() => { var t = v | v - 1; return t + 1 | (~t & -~t) - 1 >>> countTrailingZeros(v) + 1; }; - } + }) ), /***/ 6859: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2 = __webpack_require__2.nmd(module2); (function(module3, exports2) { "use strict"; @@ -95847,12 +95936,12 @@ var Plotly = (() => { return res._forceRed(this); }; })(module2, this); - } + }) ), /***/ 6204: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = boundary; function boundary(cells) { @@ -95885,12 +95974,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 6867: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boxIntersectWrapper; var pool = __webpack_require__2(1888); @@ -96019,12 +96108,12 @@ var Plotly = (() => { throw new Error("box-intersect: Invalid arguments"); } } - } + }) ), /***/ 2455: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; function full() { function bruteForceRedFull(d, ax, vv, rs, re, rb, ri, bs, be, bb, bi) { @@ -96155,12 +96244,12 @@ var Plotly = (() => { } exports2.partial = bruteForcePlanner(false); exports2.full = bruteForcePlanner(true); - } + }) ), /***/ 7150: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boxIntersectIter; var pool = __webpack_require__2(1888); @@ -96770,12 +96859,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 3545: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = findMedian; var genPartition = __webpack_require__2(8105); @@ -96900,12 +96989,12 @@ var Plotly = (() => { boxes[elemSize * mid + axis] ); } - } + }) ), /***/ 8105: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = genPartition; var P2F = { @@ -97025,12 +97114,12 @@ var Plotly = (() => { } return m; } - } + }) ), /***/ 4192: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = wrapper; var INSERT_SORT_CUTOFF = 32; @@ -97236,12 +97325,12 @@ var Plotly = (() => { quickSort(less, great, data); } } - } + }) ), /***/ 855: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = { init: sqInit, @@ -97580,12 +97669,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 2538: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var monotoneTriangulate = __webpack_require__2(8902); var makeIndex = __webpack_require__2(5542); @@ -97645,12 +97734,12 @@ var Plotly = (() => { return cells; } } - } + }) ), /***/ 2272: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var inCircle = __webpack_require__2(2646)[4]; var bsearch = __webpack_require__2(2478); @@ -97731,12 +97820,12 @@ var Plotly = (() => { testFlip(points, triangulation, stack, b, x, y); } } - } + }) ), /***/ 5023: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); module2.exports = classifyFaces; @@ -97753,7 +97842,7 @@ var Plotly = (() => { function compareCell(a, b) { return a[0] - b[0] || a[1] - b[1] || a[2] - b[2]; } - proto.locate = /* @__PURE__ */ function() { + proto.locate = /* @__PURE__ */ (function() { var key = [0, 0, 0]; return function(a, b, c) { var x = a, y = b, z = c; @@ -97776,7 +97865,7 @@ var Plotly = (() => { key[2] = z; return bsearch.eq(this.cells, key, compareCell); }; - }(); + })(); function indexCells(triangulation, infinity) { var cells = triangulation.cells(); var nc = cells.length; @@ -97896,12 +97985,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 8902: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); var orient = __webpack_require__2(3250)[3]; @@ -98065,12 +98154,12 @@ var Plotly = (() => { } return cells; } - } + }) ), /***/ 5542: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); module2.exports = createTriangulation; @@ -98089,7 +98178,7 @@ var Plotly = (() => { } } } - proto.isConstraint = /* @__PURE__ */ function() { + proto.isConstraint = /* @__PURE__ */ (function() { var e = [0, 0]; function compareLex(a, b) { return a[0] - b[0] || a[1] - b[1]; @@ -98099,7 +98188,7 @@ var Plotly = (() => { e[1] = Math.max(i, j); return bsearch.eq(this.edges, e, compareLex) >= 0; }; - }(); + })(); proto.removeTriangle = function(i, j, k) { var stars = this.stars; removePair(stars[i], j, k); @@ -98162,12 +98251,12 @@ var Plotly = (() => { } return new Triangulation(stars, edges); } - } + }) ), /***/ 2419: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = orientation; function orientation(s) { @@ -98183,12 +98272,12 @@ var Plotly = (() => { } return p; } - } + }) ), /***/ 3628: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var dup = __webpack_require__2(1338); var solve = __webpack_require__2(727); @@ -98248,12 +98337,12 @@ var Plotly = (() => { } circumcenter.barycenetric = barycentricCircumcenter; module2.exports = circumcenter; - } + }) ), /***/ 6037: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = circumradius; var circumcenter = __webpack_require__2(3628); function circumradius(points) { @@ -98267,12 +98356,12 @@ var Plotly = (() => { } return Math.sqrt(avgDist / points.length); } - } + }) ), /***/ 332: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = cleanPSLG; var UnionFind = __webpack_require__2(1755); @@ -98573,12 +98662,12 @@ var Plotly = (() => { } return modified; } - } + }) ), /***/ 3637: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = solveIntersection; var ratMul = __webpack_require__2(6504); @@ -98605,12 +98694,12 @@ var Plotly = (() => { var r = rvAdd(a, s); return r; } - } + }) ), /***/ 3642: ( /***/ - function(module2) { + (function(module2) { module2.exports = { "jet": [{ "index": 0, "rgb": [0, 0, 131] }, { "index": 0.125, "rgb": [0, 60, 170] }, { "index": 0.375, "rgb": [5, 255, 255] }, { "index": 0.625, "rgb": [255, 255, 0] }, { "index": 0.875, "rgb": [250, 0, 0] }, { "index": 1, "rgb": [128, 0, 0] }], "hsv": [{ "index": 0, "rgb": [255, 0, 0] }, { "index": 0.169, "rgb": [253, 255, 2] }, { "index": 0.173, "rgb": [247, 255, 2] }, { "index": 0.337, "rgb": [0, 252, 4] }, { "index": 0.341, "rgb": [0, 252, 10] }, { "index": 0.506, "rgb": [1, 249, 255] }, { "index": 0.671, "rgb": [2, 0, 253] }, { "index": 0.675, "rgb": [8, 0, 253] }, { "index": 0.839, "rgb": [255, 0, 251] }, { "index": 0.843, "rgb": [255, 0, 245] }, { "index": 1, "rgb": [255, 0, 6] }], @@ -98657,12 +98746,12 @@ var Plotly = (() => { "velocity-green": [{ "index": 0, "rgb": [23, 35, 19] }, { "index": 0.13, "rgb": [24, 64, 38] }, { "index": 0.25, "rgb": [11, 95, 45] }, { "index": 0.38, "rgb": [39, 123, 35] }, { "index": 0.5, "rgb": [95, 146, 12] }, { "index": 0.63, "rgb": [152, 165, 18] }, { "index": 0.75, "rgb": [201, 186, 69] }, { "index": 0.88, "rgb": [233, 216, 137] }, { "index": 1, "rgb": [255, 253, 205] }], "cubehelix": [{ "index": 0, "rgb": [0, 0, 0] }, { "index": 0.07, "rgb": [22, 5, 59] }, { "index": 0.13, "rgb": [60, 4, 105] }, { "index": 0.2, "rgb": [109, 1, 135] }, { "index": 0.27, "rgb": [161, 0, 147] }, { "index": 0.33, "rgb": [210, 2, 142] }, { "index": 0.4, "rgb": [251, 11, 123] }, { "index": 0.47, "rgb": [255, 29, 97] }, { "index": 0.53, "rgb": [255, 54, 69] }, { "index": 0.6, "rgb": [255, 85, 46] }, { "index": 0.67, "rgb": [255, 120, 34] }, { "index": 0.73, "rgb": [255, 157, 37] }, { "index": 0.8, "rgb": [241, 191, 57] }, { "index": 0.87, "rgb": [224, 220, 93] }, { "index": 0.93, "rgb": [218, 241, 142] }, { "index": 1, "rgb": [227, 253, 198] }] }; - } + }) ), /***/ 6729: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var colorScale = __webpack_require__2(3642); var lerp = __webpack_require__2(395); @@ -98757,12 +98846,12 @@ var Plotly = (() => { function rgbaStr(rgba3) { return "rgba(" + rgba3.join(",") + ")"; } - } + }) ), /***/ 3140: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = compareAngle; var orient = __webpack_require__2(3250); @@ -98842,12 +98931,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 8572: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function signum(x) { if (x < 0) { @@ -98858,12 +98947,12 @@ var Plotly = (() => { } return 0; }; - } + }) ), /***/ 8507: ( /***/ - function(module2) { + (function(module2) { module2.exports = compareCells; var min = Math.min; function compareInt(a, b) { @@ -98904,12 +98993,12 @@ var Plotly = (() => { return 0; } } - } + }) ), /***/ 3788: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compareCells = __webpack_require__2(8507); var parity = __webpack_require__2(2419); @@ -98917,12 +99006,12 @@ var Plotly = (() => { function compareOrientedCells(a, b) { return compareCells(a, b) || parity(a) - parity(b); } - } + }) ), /***/ 7352: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var convexHull1d = __webpack_require__2(5721); var convexHull2d = __webpack_require__2(4750); @@ -98945,12 +99034,12 @@ var Plotly = (() => { } return convexHullnd(points, d); } - } + }) ), /***/ 5721: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = convexHull1d; function convexHull1d(points) { @@ -98972,12 +99061,12 @@ var Plotly = (() => { return [[lo]]; } } - } + }) ), /***/ 4750: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = convexHull2D; var monotoneHull = __webpack_require__2(3090); @@ -98996,12 +99085,12 @@ var Plotly = (() => { } return edges; } - } + }) ), /***/ 2690: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = convexHullnD; var ich = __webpack_require__2(8954); @@ -99055,12 +99144,12 @@ var Plotly = (() => { return invPermute(nhull, ah); } } - } + }) ), /***/ 4769: ( /***/ - function(module2) { + (function(module2) { "use strict"; function dcubicHermite(p0, v0, p1, v1, t, f) { var dh00 = 6 * t * t - 6 * t, dh10 = 3 * t * t - 4 * t + 1, dh01 = -6 * t * t + 6 * t, dh11 = 3 * t * t - 2 * t; @@ -99090,12 +99179,12 @@ var Plotly = (() => { } module2.exports = cubicHermite; module2.exports.derivative = dcubicHermite; - } + }) ), /***/ 7642: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ch = __webpack_require__2(8954); var uniq = __webpack_require__2(1682); @@ -99231,12 +99320,12 @@ var Plotly = (() => { } return hull; } - } + }) ), /***/ 2361: ( /***/ - function(module2) { + (function(module2) { var hasTypedArrays = false; if (typeof Float64Array !== "undefined") { var DOUBLE_VIEW = new Float64Array(1), UINT_VIEW = new Uint32Array(DOUBLE_VIEW.buffer); @@ -99328,12 +99417,12 @@ var Plotly = (() => { var hi = module2.exports.hi(n); return !(hi & 2146435072); }; - } + }) ), /***/ 1338: ( /***/ - function(module2) { + (function(module2) { "use strict"; function dupe_array(count, value, i) { var c = count[i] | 0; @@ -99379,12 +99468,12 @@ var Plotly = (() => { return []; } module2.exports = dupe; - } + }) ), /***/ 3134: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = edgeToAdjacency; var uniq = __webpack_require__2(1682); @@ -99415,12 +99504,12 @@ var Plotly = (() => { } return adj; } - } + }) ), /***/ 5033: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = extractPlanes; function extractPlanes(M, zNear, zFar) { @@ -99435,12 +99524,12 @@ var Plotly = (() => { [zf * M[12] - M[8], zf * M[13] - M[9], zf * M[14] - M[10], zf * M[15] - M[11]] ]; } - } + }) ), /***/ 9215: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createFilteredVector; var cubicHermite = __webpack_require__2(4769); @@ -99715,12 +99804,12 @@ var Plotly = (() => { return new FilteredVector(initState, initVelocity, initTime); } } - } + }) ), /***/ 3840: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = createRBTree; var RED = 0; @@ -100600,12 +100689,12 @@ var Plotly = (() => { function createRBTree(compare) { return new RedBlackTree(compare || defaultCompare, null); } - } + }) ), /***/ 3837: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createAxes; var createText = __webpack_require__2(4935); @@ -101173,12 +101262,12 @@ var Plotly = (() => { axes.update(options); return axes; } - } + }) ), /***/ 5304: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createBackgroundCube; var createBuffer = __webpack_require__2(2762); @@ -101284,12 +101373,12 @@ var Plotly = (() => { shader.attributes.normal.location = 1; return new BackgroundCube(gl2, buffer, vao, shader); } - } + }) ), /***/ 6429: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = getCubeEdges; var bits = __webpack_require__2(8828); @@ -101495,12 +101584,12 @@ var Plotly = (() => { } return CUBE_RESULT; } - } + }) ), /***/ 501: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createLines; var createBuffer = __webpack_require__2(2762); @@ -101716,12 +101805,12 @@ var Plotly = (() => { shader.attributes.position.location = 0; return new Lines(gl2, vertBuf, vao, shader, tickCount, tickOffset, gridCount, gridOffset); } - } + }) ), /***/ 1879: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -101747,12 +101836,12 @@ var Plotly = (() => { { name: "normal", type: "vec3" } ]); }; - } + }) ), /***/ 4935: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createTextSprites; var createBuffer = __webpack_require__2(2762); @@ -101938,12 +102027,12 @@ var Plotly = (() => { result.update(bounds, labels, labelFont, ticks, tickFont); return result; } - } + }) ), /***/ 6444: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.create = defaultTicks; exports2.equal = ticksEqual; @@ -102012,12 +102101,12 @@ var Plotly = (() => { } return true; } - } + }) ), /***/ 5445: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = axesProperties; var getPlanes = __webpack_require__2(5033); @@ -102140,12 +102229,12 @@ var Plotly = (() => { } return ranges; } - } + }) ), /***/ 2762: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); var ops = __webpack_require__2(5298); @@ -102286,12 +102375,12 @@ var Plotly = (() => { return result; } module2.exports = createBuffer; - } + }) ), /***/ 6405: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vec3 = __webpack_require__2(2931); module2.exports = function(vectorfield, bounds) { @@ -102403,12 +102492,12 @@ var Plotly = (() => { traceType: "cone" }); }; - } + }) ), /***/ 9060: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createShader = __webpack_require__2(9405); var createBuffer = __webpack_require__2(2762); @@ -102889,12 +102978,12 @@ var Plotly = (() => { return mesh; } module2.exports = createVectorMesh; - } + }) ), /***/ 614: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]); @@ -102919,12 +103008,12 @@ var Plotly = (() => { { name: "vector", type: "vec3" } ] }; - } + }) ), /***/ 737: ( /***/ - function(module2) { + (function(module2) { module2.exports = { 0: "NONE", 1: "ONE", @@ -103223,22 +103312,22 @@ var Plotly = (() => { 37443: "UNPACK_COLORSPACE_CONVERSION_WEBGL", 37444: "BROWSER_DEFAULT_WEBGL" }; - } + }) ), /***/ 5171: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var gl10 = __webpack_require__2(737); module2.exports = function lookupConstant(number) { return gl10[number]; }; - } + }) ), /***/ 9165: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createErrorBars; var createBuffer = __webpack_require__2(2762); @@ -103316,7 +103405,7 @@ var Plotly = (() => { bounds[1][i] = Math.max(bounds[1][i], point[i]); } } - var FACE_TABLE = function() { + var FACE_TABLE = (function() { var table = new Array(3); for (var d = 0; d < 3; ++d) { var row = []; @@ -103331,7 +103420,7 @@ var Plotly = (() => { table[d] = row; } return table; - }(); + })(); function emitFace(verts, x, c, d) { var offsets = FACE_TABLE[d]; for (var i = 0; i < offsets.length; ++i) { @@ -103512,12 +103601,12 @@ var Plotly = (() => { result.update(options); return result; } - } + }) ), /***/ 3436: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -103530,12 +103619,12 @@ var Plotly = (() => { { name: "offset", type: "vec3" } ]); }; - } + }) ), /***/ 2260: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createTexture = __webpack_require__2(7766); module2.exports = createFBO; @@ -103918,12 +104007,12 @@ var Plotly = (() => { WEBGL_draw_buffers ); } - } + }) ), /***/ 2992: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var sprintf = __webpack_require__2(3387).sprintf; var glConstants = __webpack_require__2(5171); var shaderName = __webpack_require__2(1848); @@ -103965,12 +104054,12 @@ var Plotly = (() => { short: shortForm.trim() }; } - } + }) ), /***/ 7319: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); var vertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n vec4 startPoint = project(position);\n vec4 endPoint = project(nextPosition);\n\n vec2 A = startPoint.xy / startPoint.w;\n vec2 B = endPoint.xy / endPoint.w;\n\n float clipAngle = atan(\n (B.y - A.y) * screenShape.y,\n (B.x - A.x) * screenShape.x\n );\n\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n sin(clipAngle),\n -cos(clipAngle)\n ) / screenShape;\n\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n worldPosition = position;\n pixelArcLength = arcLength;\n fragColor = color;\n}\n"]); @@ -103989,12 +104078,12 @@ var Plotly = (() => { exports2.createPickShader = function(gl2) { return createShader(gl2, vertSrc, pickFrag, null, ATTRIBUTES); }; - } + }) ), /***/ 5714: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createLinePlot; var createBuffer = __webpack_require__2(2762); @@ -104419,12 +104508,12 @@ var Plotly = (() => { linePlot.update(options); return linePlot; } - } + }) ), /***/ 1903: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(16); @@ -104447,12 +104536,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6864: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(16); @@ -104475,24 +104564,24 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 9921: ( /***/ - function(module2) { + (function(module2) { module2.exports = determinant; function determinant(a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15], b00 = a00 * a11 - a01 * a10, b01 = a00 * a12 - a02 * a10, b02 = a00 * a13 - a03 * a10, b03 = a01 * a12 - a02 * a11, b04 = a01 * a13 - a03 * a11, b05 = a02 * a13 - a03 * a12, b06 = a20 * a31 - a21 * a30, b07 = a20 * a32 - a22 * a30, b08 = a20 * a33 - a23 * a30, b09 = a21 * a32 - a22 * a31, b10 = a21 * a33 - a23 * a31, b11 = a22 * a33 - a23 * a32; return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; } ; - } + }) ), /***/ 7399: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromQuat; function fromQuat(out, q) { var x = q[0], y = q[1], z = q[2], w = q[3], x2 = x + x, y2 = y + y, z2 = z + z, xx = x * x2, yx = y * x2, yy = y * y2, zx = z * x2, zy = z * y2, zz = z * z2, wx = w * x2, wy = w * y2, wz = w * z2; @@ -104515,12 +104604,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6743: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromRotationTranslation; function fromRotationTranslation(out, q, v) { var x = q[0], y = q[1], z = q[2], w = q[3], x2 = x + x, y2 = y + y, z2 = z + z, xx = x * x2, xy = x * y2, xz = x * z2, yy = y * y2, yz = y * z2, zz = z * z2, wx = w * x2, wy = w * y2, wz = w * z2; @@ -104543,12 +104632,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7894: ( /***/ - function(module2) { + (function(module2) { module2.exports = identity2; function identity2(out) { out[0] = 1; @@ -104570,12 +104659,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7608: ( /***/ - function(module2) { + (function(module2) { module2.exports = invert; function invert(out, a) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15], b00 = a00 * a11 - a01 * a10, b01 = a00 * a12 - a02 * a10, b02 = a00 * a13 - a03 * a10, b03 = a01 * a12 - a02 * a11, b04 = a01 * a13 - a03 * a11, b05 = a02 * a13 - a03 * a12, b06 = a20 * a31 - a21 * a30, b07 = a20 * a32 - a22 * a30, b08 = a20 * a33 - a23 * a30, b09 = a21 * a32 - a22 * a31, b10 = a21 * a33 - a23 * a31, b11 = a22 * a33 - a23 * a32, det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; @@ -104602,12 +104691,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6582: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var identity2 = __webpack_require__2(7894); module2.exports = lookAt; function lookAt(out, eye, center, up) { @@ -104669,12 +104758,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6760: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15]; @@ -104710,12 +104799,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 4040: ( /***/ - function(module2) { + (function(module2) { module2.exports = ortho; function ortho(out, left, right, bottom, top, near, far) { var lr = 1 / (left - right), bt = 1 / (bottom - top), nf = 1 / (near - far); @@ -104738,12 +104827,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 4772: ( /***/ - function(module2) { + (function(module2) { module2.exports = perspective; function perspective(out, fovy, aspect, near, far) { var f = 1 / Math.tan(fovy / 2), nf = 1 / (near - far); @@ -104766,12 +104855,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 6079: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotate; function rotate(out, a, rad, axis) { var x = axis[0], y = axis[1], z = axis[2], len = Math.sqrt(x * x + y * y + z * z), s, c, t, a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23, b00, b01, b02, b10, b11, b12, b20, b21, b22; @@ -104827,12 +104916,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 5567: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateX; function rotateX(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; @@ -104857,12 +104946,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 2408: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateY; function rotateY(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11]; @@ -104887,12 +104976,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7089: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateZ; function rotateZ(out, a, rad) { var s = Math.sin(rad), c = Math.cos(rad), a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7]; @@ -104917,12 +105006,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 2504: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, v) { var x = v[0], y = v[1], z = v[2]; @@ -104945,12 +105034,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7656: ( /***/ - function(module2) { + (function(module2) { module2.exports = translate; function translate(out, a, v) { var x = v[0], y = v[1], z = v[2], a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23; @@ -104992,12 +105081,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 5665: ( /***/ - function(module2) { + (function(module2) { module2.exports = transpose; function transpose(out, a) { if (out === a) { @@ -105035,12 +105124,12 @@ var Plotly = (() => { return out; } ; - } + }) ), /***/ 7626: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var barycentric = __webpack_require__2(2642); var closestPointToTriangle = __webpack_require__2(9346); @@ -105132,12 +105221,12 @@ var Plotly = (() => { } return [closestIndex, interpolate(simplex, weights), weights]; } - } + }) ), /***/ 840: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * (view * (model * vec4(p, 1.0)));\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]); @@ -105203,12 +105292,12 @@ var Plotly = (() => { { name: "position", type: "vec3" } ] }; - } + }) ), /***/ 7201: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var DEFAULT_VERTEX_NORMALS_EPSILON = 1e-6; var DEFAULT_FACE_NORMALS_EPSILON = 1e-6; @@ -106184,12 +106273,12 @@ var Plotly = (() => { return mesh; } module2.exports = createSimplicialMesh; - } + }) ), /***/ 4437: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createCamera; var now = __webpack_require__2(3025); @@ -106429,12 +106518,12 @@ var Plotly = (() => { camera.enableMouseListeners(); return camera; } - } + }) ), /***/ 799: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); var vertSrc = glslify(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]); @@ -106442,12 +106531,12 @@ var Plotly = (() => { module2.exports = function(gl2) { return createShader(gl2, vertSrc, fragSrc, null, [{ name: "position", type: "vec2" }]); }; - } + }) ), /***/ 4100: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createCamera = __webpack_require__2(4437); var createAxes = __webpack_require__2(3837); @@ -107143,12 +107232,12 @@ var Plotly = (() => { } } } - } + }) ), /***/ 783: ( /***/ - function(module2) { + (function(module2) { module2.exports = slerp; function slerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2], aw = a[3], bx = b[0], by = b[1], bz = b[2], bw = b[3]; @@ -107176,22 +107265,22 @@ var Plotly = (() => { out[3] = scale0 * aw + scale1 * bw; return out; } - } + }) ), /***/ 5964: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function(a) { return !a && a !== 0 ? "" : a.toString(); }; - } + }) ), /***/ 9366: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vectorizeText = __webpack_require__2(4359); module2.exports = getGlyph; @@ -107255,12 +107344,12 @@ var Plotly = (() => { } return fontCache[symbol] = [triSymbol, lineSymbol, bounds]; } - } + }) ), /***/ 1283: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var createShaderWrapper = __webpack_require__2(9405); var glslify = __webpack_require__2(3236); var perspectiveVertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]); @@ -107326,12 +107415,12 @@ var Plotly = (() => { exports2.createPickProject = function(gl2) { return createShader(gl2, pickProject); }; - } + }) ), /***/ 8418: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isAllBlank = __webpack_require__2(5219); var createBuffer = __webpack_require__2(2762); @@ -108062,12 +108151,12 @@ var Plotly = (() => { pointCloud.update(options); return pointCloud; } - } + }) ), /***/ 3589: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSelectBuffer; var createFBO = __webpack_require__2(2260); @@ -108228,12 +108317,12 @@ var Plotly = (() => { var buffer = pool.mallocUint8(width * height * 4); return new SelectBuffer(gl2, fbo, buffer); } - } + }) ), /***/ 9405: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createUniformWrapper = __webpack_require__2(3327); var createAttributeWrapper = __webpack_require__2(8731); @@ -108417,12 +108506,12 @@ var Plotly = (() => { return shader; } module2.exports = createShader; - } + }) ), /***/ 8866: ( /***/ - function(module2) { + (function(module2) { function GLError(rawError, shortMessage, longMessage) { this.shortMessage = shortMessage || ""; this.longMessage = longMessage || ""; @@ -108434,12 +108523,12 @@ var Plotly = (() => { GLError.prototype.name = "GLError"; GLError.prototype.constructor = GLError; module2.exports = GLError; - } + }) ), /***/ 8731: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createAttributeWrapper; var GLError = __webpack_require__2(8866); @@ -108670,12 +108759,12 @@ var Plotly = (() => { } return obj; } - } + }) ), /***/ 3327: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var coallesceUniforms = __webpack_require__2(216); var GLError = __webpack_require__2(8866); @@ -108864,12 +108953,12 @@ var Plotly = (() => { configurable: true }; } - } + }) ), /***/ 216: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = makeReflectTypes; function makeReflectTypes(uniforms, useIndex) { @@ -108920,12 +109009,12 @@ var Plotly = (() => { } return obj; } - } + }) ), /***/ 2145: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; exports2.uniforms = runtimeUniforms; exports2.attributes = runtimeAttributes; @@ -108998,12 +109087,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 5091: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; exports2.shader = getShaderReference; exports2.program = createProgram; @@ -109123,12 +109212,12 @@ var Plotly = (() => { function createProgram(gl2, vref, fref, attribs, locations) { return getCache(gl2).getProgram(vref, fref, attribs, locations); } - } + }) ), /***/ 1493: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var glslify = __webpack_require__2(3236); var createShader = __webpack_require__2(9405); @@ -109141,12 +109230,12 @@ var Plotly = (() => { { name: "weight", type: "float" } ]); }; - } + }) ), /***/ 4449: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createBuffer = __webpack_require__2(2762); var createVAO = __webpack_require__2(8116); @@ -109318,12 +109407,12 @@ var Plotly = (() => { spikes.update(options); return spikes; } - } + }) ), /***/ 6740: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var glslify = __webpack_require__2(3236); var triVertSrc = glslify(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]); var triFragSrc = glslify(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]); @@ -109348,12 +109437,12 @@ var Plotly = (() => { { name: "vector", type: "vec4" } ] }; - } + }) ), /***/ 7815: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var vec3 = __webpack_require__2(2931); var vec4 = __webpack_require__2(9970); @@ -109787,12 +109876,12 @@ var Plotly = (() => { traceType: "streamtube" }); }; - } + }) ), /***/ 990: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { var createShader = __webpack_require__2(9405); var glslify = __webpack_require__2(3236); var vertSrc = glslify(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 localCoordinate = vec3(uv.zw, f.x);\n worldCoordinate = objectOffset + localCoordinate;\n mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0));\n vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0);\n vec4 clipPosition = projection * (view * worldPosition);\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n"]); @@ -109839,12 +109928,12 @@ var Plotly = (() => { shader.attributes.f.location = 1; return shader; }; - } + }) ), /***/ 9499: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSurfacePlot; var bits = __webpack_require__2(8828); @@ -110977,12 +111066,12 @@ var Plotly = (() => { surface.update(nparams); return surface; } - } + }) ), /***/ 7766: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ndarray = __webpack_require__2(9618); var ops = __webpack_require__2(5298); @@ -111500,12 +111589,12 @@ var Plotly = (() => { } throw new Error("gl-texture2d: Invalid arguments for texture2d constructor"); } - } + }) ), /***/ 1433: ( /***/ - function(module2) { + (function(module2) { "use strict"; function doBind(gl2, elements, attributes) { if (elements) { @@ -111558,12 +111647,12 @@ var Plotly = (() => { } } module2.exports = doBind; - } + }) ), /***/ 870: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bindAttribs = __webpack_require__2(1433); function VAOEmulated(gl2) { @@ -111597,12 +111686,12 @@ var Plotly = (() => { return new VAOEmulated(gl2); } module2.exports = createVAOEmulated; - } + }) ), /***/ 7518: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bindAttribs = __webpack_require__2(1433); function VertexAttribute(location2, dimension, a, b, c, d) { @@ -111679,12 +111768,12 @@ var Plotly = (() => { return new VAONative(gl2, ext, ext.createVertexArrayOES()); } module2.exports = createVAONative; - } + }) ), /***/ 8116: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var createVAONative = __webpack_require__2(7518); var createVAOEmulated = __webpack_require__2(870); @@ -111705,12 +111794,12 @@ var Plotly = (() => { return vao; } module2.exports = createVAO; - } + }) ), /***/ 5632: ( /***/ - function(module2) { + (function(module2) { module2.exports = add; function add(out, a, b) { out[0] = a[0] + b[0]; @@ -111718,12 +111807,12 @@ var Plotly = (() => { out[2] = a[2] + b[2]; return out; } - } + }) ), /***/ 8192: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = angle; var fromValues = __webpack_require__2(2825); var normalize = __webpack_require__2(3536); @@ -111740,12 +111829,12 @@ var Plotly = (() => { return Math.acos(cosine); } } - } + }) ), /***/ 9226: ( /***/ - function(module2) { + (function(module2) { module2.exports = ceil; function ceil(out, a) { out[0] = Math.ceil(a[0]); @@ -111753,12 +111842,12 @@ var Plotly = (() => { out[2] = Math.ceil(a[2]); return out; } - } + }) ), /***/ 3126: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(3); @@ -111767,12 +111856,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 3990: ( /***/ - function(module2) { + (function(module2) { module2.exports = copy; function copy(out, a) { out[0] = a[0]; @@ -111780,12 +111869,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 1091: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(3); @@ -111794,12 +111883,12 @@ var Plotly = (() => { out[2] = 0; return out; } - } + }) ), /***/ 5911: ( /***/ - function(module2) { + (function(module2) { module2.exports = cross; function cross(out, a, b) { var ax = a[0], ay = a[1], az = a[2], bx = b[0], by = b[1], bz = b[2]; @@ -111808,37 +111897,37 @@ var Plotly = (() => { out[2] = ax * by - ay * bx; return out; } - } + }) ), /***/ 5455: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(7056); - } + }) ), /***/ 7056: ( /***/ - function(module2) { + (function(module2) { module2.exports = distance; function distance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2]; return Math.sqrt(x * x + y * y + z * z); } - } + }) ), /***/ 4008: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(6690); - } + }) ), /***/ 6690: ( /***/ - function(module2) { + (function(module2) { module2.exports = divide; function divide(out, a, b) { out[0] = a[0] / b[0]; @@ -111846,29 +111935,29 @@ var Plotly = (() => { out[2] = a[2] / b[2]; return out; } - } + }) ), /***/ 244: ( /***/ - function(module2) { + (function(module2) { module2.exports = dot; function dot(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; } - } + }) ), /***/ 2613: ( /***/ - function(module2) { + (function(module2) { module2.exports = 1e-6; - } + }) ), /***/ 9922: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = equals; var EPSILON = __webpack_require__2(2613); function equals(a, b) { @@ -111880,22 +111969,22 @@ var Plotly = (() => { var b2 = b[2]; return Math.abs(a0 - b0) <= EPSILON * Math.max(1, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1, Math.abs(a2), Math.abs(b2)); } - } + }) ), /***/ 9265: ( /***/ - function(module2) { + (function(module2) { module2.exports = exactEquals; function exactEquals(a, b) { return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]; } - } + }) ), /***/ 2681: ( /***/ - function(module2) { + (function(module2) { module2.exports = floor; function floor(out, a) { out[0] = Math.floor(a[0]); @@ -111903,12 +111992,12 @@ var Plotly = (() => { out[2] = Math.floor(a[2]); return out; } - } + }) ), /***/ 5137: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = forEach; var vec = __webpack_require__2(1091)(); function forEach(a, stride, offset, count, fn, arg) { @@ -111935,12 +112024,12 @@ var Plotly = (() => { } return a; } - } + }) ), /***/ 2825: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromValues; function fromValues(x, y, z) { var out = new Float32Array(3); @@ -111949,12 +112038,12 @@ var Plotly = (() => { out[2] = z; return out; } - } + }) ), /***/ 2931: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { EPSILON: __webpack_require__2(2613), create: __webpack_require__2(1091), @@ -112002,12 +112091,12 @@ var Plotly = (() => { rotateZ: __webpack_require__2(8692), forEach: __webpack_require__2(5137) }; - } + }) ), /***/ 811: ( /***/ - function(module2) { + (function(module2) { module2.exports = inverse; function inverse(out, a) { out[0] = 1 / a[0]; @@ -112015,30 +112104,30 @@ var Plotly = (() => { out[2] = 1 / a[2]; return out; } - } + }) ), /***/ 868: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(1387); - } + }) ), /***/ 1387: ( /***/ - function(module2) { + (function(module2) { module2.exports = length; function length(a) { var x = a[0], y = a[1], z = a[2]; return Math.sqrt(x * x + y * y + z * z); } - } + }) ), /***/ 6658: ( /***/ - function(module2) { + (function(module2) { module2.exports = lerp; function lerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2]; @@ -112047,12 +112136,12 @@ var Plotly = (() => { out[2] = az + t * (b[2] - az); return out; } - } + }) ), /***/ 7417: ( /***/ - function(module2) { + (function(module2) { module2.exports = max; function max(out, a, b) { out[0] = Math.max(a[0], b[0]); @@ -112060,12 +112149,12 @@ var Plotly = (() => { out[2] = Math.max(a[2], b[2]); return out; } - } + }) ), /***/ 8107: ( /***/ - function(module2) { + (function(module2) { module2.exports = min; function min(out, a, b) { out[0] = Math.min(a[0], b[0]); @@ -112073,19 +112162,19 @@ var Plotly = (() => { out[2] = Math.min(a[2], b[2]); return out; } - } + }) ), /***/ 4505: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(5847); - } + }) ), /***/ 5847: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { out[0] = a[0] * b[0]; @@ -112093,12 +112182,12 @@ var Plotly = (() => { out[2] = a[2] * b[2]; return out; } - } + }) ), /***/ 5093: ( /***/ - function(module2) { + (function(module2) { module2.exports = negate; function negate(out, a) { out[0] = -a[0]; @@ -112106,12 +112195,12 @@ var Plotly = (() => { out[2] = -a[2]; return out; } - } + }) ), /***/ 3536: ( /***/ - function(module2) { + (function(module2) { module2.exports = normalize; function normalize(out, a) { var x = a[0], y = a[1], z = a[2]; @@ -112124,12 +112213,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 7636: ( /***/ - function(module2) { + (function(module2) { module2.exports = random; function random(out, scale) { scale = scale || 1; @@ -112141,12 +112230,12 @@ var Plotly = (() => { out[2] = z * scale; return out; } - } + }) ), /***/ 6894: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateX; function rotateX(out, a, b, c) { var by = b[1]; @@ -112160,12 +112249,12 @@ var Plotly = (() => { out[2] = bz + py * sc + pz * cc; return out; } - } + }) ), /***/ 109: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateY; function rotateY(out, a, b, c) { var bx = b[0]; @@ -112179,12 +112268,12 @@ var Plotly = (() => { out[2] = bz + pz * cc - px * sc; return out; } - } + }) ), /***/ 8692: ( /***/ - function(module2) { + (function(module2) { module2.exports = rotateZ; function rotateZ(out, a, b, c) { var bx = b[0]; @@ -112198,12 +112287,12 @@ var Plotly = (() => { out[2] = a[2]; return out; } - } + }) ), /***/ 2447: ( /***/ - function(module2) { + (function(module2) { module2.exports = round; function round(out, a) { out[0] = Math.round(a[0]); @@ -112211,12 +112300,12 @@ var Plotly = (() => { out[2] = Math.round(a[2]); return out; } - } + }) ), /***/ 6621: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, b) { out[0] = a[0] * b; @@ -112224,12 +112313,12 @@ var Plotly = (() => { out[2] = a[2] * b; return out; } - } + }) ), /***/ 8489: ( /***/ - function(module2) { + (function(module2) { module2.exports = scaleAndAdd; function scaleAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; @@ -112237,12 +112326,12 @@ var Plotly = (() => { out[2] = a[2] + b[2] * scale; return out; } - } + }) ), /***/ 1463: ( /***/ - function(module2) { + (function(module2) { module2.exports = set; function set(out, x, y, z) { out[0] = x; @@ -112250,55 +112339,55 @@ var Plotly = (() => { out[2] = z; return out; } - } + }) ), /***/ 6141: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(2953); - } + }) ), /***/ 5486: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(3066); - } + }) ), /***/ 2953: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredDistance; function squaredDistance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2]; return x * x + y * y + z * z; } - } + }) ), /***/ 3066: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredLength; function squaredLength(a) { var x = a[0], y = a[1], z = a[2]; return x * x + y * y + z * z; } - } + }) ), /***/ 2229: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(6843); - } + }) ), /***/ 6843: ( /***/ - function(module2) { + (function(module2) { module2.exports = subtract; function subtract(out, a, b) { out[0] = a[0] - b[0]; @@ -112306,12 +112395,12 @@ var Plotly = (() => { out[2] = a[2] - b[2]; return out; } - } + }) ), /***/ 492: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat3; function transformMat3(out, a, m) { var x = a[0], y = a[1], z = a[2]; @@ -112320,12 +112409,12 @@ var Plotly = (() => { out[2] = x * m[2] + y * m[5] + z * m[8]; return out; } - } + }) ), /***/ 5673: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat4; function transformMat4(out, a, m) { var x = a[0], y = a[1], z = a[2], w = m[3] * x + m[7] * y + m[11] * z + m[15]; @@ -112335,12 +112424,12 @@ var Plotly = (() => { out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w; return out; } - } + }) ), /***/ 264: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformQuat; function transformQuat(out, a, q) { var x = a[0], y = a[1], z = a[2], qx = q[0], qy = q[1], qz = q[2], qw = q[3], ix = qw * x + qy * z - qz * y, iy = qw * y + qz * x - qx * z, iz = qw * z + qx * y - qy * x, iw = -qx * x - qy * y - qz * z; @@ -112349,12 +112438,12 @@ var Plotly = (() => { out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx; return out; } - } + }) ), /***/ 4361: ( /***/ - function(module2) { + (function(module2) { module2.exports = add; function add(out, a, b) { out[0] = a[0] + b[0]; @@ -112363,12 +112452,12 @@ var Plotly = (() => { out[3] = a[3] + b[3]; return out; } - } + }) ), /***/ 2335: ( /***/ - function(module2) { + (function(module2) { module2.exports = clone; function clone(a) { var out = new Float32Array(4); @@ -112378,12 +112467,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 2933: ( /***/ - function(module2) { + (function(module2) { module2.exports = copy; function copy(out, a) { out[0] = a[0]; @@ -112392,12 +112481,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 7536: ( /***/ - function(module2) { + (function(module2) { module2.exports = create; function create() { var out = new Float32Array(4); @@ -112407,23 +112496,23 @@ var Plotly = (() => { out[3] = 0; return out; } - } + }) ), /***/ 4691: ( /***/ - function(module2) { + (function(module2) { module2.exports = distance; function distance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2], w = b[3] - a[3]; return Math.sqrt(x * x + y * y + z * z + w * w); } - } + }) ), /***/ 1373: ( /***/ - function(module2) { + (function(module2) { module2.exports = divide; function divide(out, a, b) { out[0] = a[0] / b[0]; @@ -112432,22 +112521,22 @@ var Plotly = (() => { out[3] = a[3] / b[3]; return out; } - } + }) ), /***/ 3750: ( /***/ - function(module2) { + (function(module2) { module2.exports = dot; function dot(a, b) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]; } - } + }) ), /***/ 3390: ( /***/ - function(module2) { + (function(module2) { module2.exports = fromValues; function fromValues(x, y, z, w) { var out = new Float32Array(4); @@ -112457,12 +112546,12 @@ var Plotly = (() => { out[3] = w; return out; } - } + }) ), /***/ 9970: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = { create: __webpack_require__2(7536), clone: __webpack_require__2(2335), @@ -112490,12 +112579,12 @@ var Plotly = (() => { transformMat4: __webpack_require__2(5352), transformQuat: __webpack_require__2(4041) }; - } + }) ), /***/ 4494: ( /***/ - function(module2) { + (function(module2) { module2.exports = inverse; function inverse(out, a) { out[0] = 1 / a[0]; @@ -112504,23 +112593,23 @@ var Plotly = (() => { out[3] = 1 / a[3]; return out; } - } + }) ), /***/ 6808: ( /***/ - function(module2) { + (function(module2) { module2.exports = length; function length(a) { var x = a[0], y = a[1], z = a[2], w = a[3]; return Math.sqrt(x * x + y * y + z * z + w * w); } - } + }) ), /***/ 2573: ( /***/ - function(module2) { + (function(module2) { module2.exports = lerp; function lerp(out, a, b, t) { var ax = a[0], ay = a[1], az = a[2], aw = a[3]; @@ -112530,12 +112619,12 @@ var Plotly = (() => { out[3] = aw + t * (b[3] - aw); return out; } - } + }) ), /***/ 160: ( /***/ - function(module2) { + (function(module2) { module2.exports = max; function max(out, a, b) { out[0] = Math.max(a[0], b[0]); @@ -112544,12 +112633,12 @@ var Plotly = (() => { out[3] = Math.max(a[3], b[3]); return out; } - } + }) ), /***/ 2334: ( /***/ - function(module2) { + (function(module2) { module2.exports = min; function min(out, a, b) { out[0] = Math.min(a[0], b[0]); @@ -112558,12 +112647,12 @@ var Plotly = (() => { out[3] = Math.min(a[3], b[3]); return out; } - } + }) ), /***/ 3576: ( /***/ - function(module2) { + (function(module2) { module2.exports = multiply; function multiply(out, a, b) { out[0] = a[0] * b[0]; @@ -112572,12 +112661,12 @@ var Plotly = (() => { out[3] = a[3] * b[3]; return out; } - } + }) ), /***/ 1498: ( /***/ - function(module2) { + (function(module2) { module2.exports = negate; function negate(out, a) { out[0] = -a[0]; @@ -112586,12 +112675,12 @@ var Plotly = (() => { out[3] = -a[3]; return out; } - } + }) ), /***/ 5177: ( /***/ - function(module2) { + (function(module2) { module2.exports = normalize; function normalize(out, a) { var x = a[0], y = a[1], z = a[2], w = a[3]; @@ -112605,12 +112694,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 9131: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var vecNormalize = __webpack_require__2(5177); var vecScale = __webpack_require__2(9288); module2.exports = random; @@ -112624,12 +112713,12 @@ var Plotly = (() => { vecScale(out, out, scale); return out; } - } + }) ), /***/ 9288: ( /***/ - function(module2) { + (function(module2) { module2.exports = scale; function scale(out, a, b) { out[0] = a[0] * b; @@ -112638,12 +112727,12 @@ var Plotly = (() => { out[3] = a[3] * b; return out; } - } + }) ), /***/ 4844: ( /***/ - function(module2) { + (function(module2) { module2.exports = scaleAndAdd; function scaleAndAdd(out, a, b, scale) { out[0] = a[0] + b[0] * scale; @@ -112652,12 +112741,12 @@ var Plotly = (() => { out[3] = a[3] + b[3] * scale; return out; } - } + }) ), /***/ 4578: ( /***/ - function(module2) { + (function(module2) { module2.exports = set; function set(out, x, y, z, w) { out[0] = x; @@ -112666,34 +112755,34 @@ var Plotly = (() => { out[3] = w; return out; } - } + }) ), /***/ 7960: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredDistance; function squaredDistance(a, b) { var x = b[0] - a[0], y = b[1] - a[1], z = b[2] - a[2], w = b[3] - a[3]; return x * x + y * y + z * z + w * w; } - } + }) ), /***/ 483: ( /***/ - function(module2) { + (function(module2) { module2.exports = squaredLength; function squaredLength(a) { var x = a[0], y = a[1], z = a[2], w = a[3]; return x * x + y * y + z * z + w * w; } - } + }) ), /***/ 6860: ( /***/ - function(module2) { + (function(module2) { module2.exports = subtract; function subtract(out, a, b) { out[0] = a[0] - b[0]; @@ -112702,12 +112791,12 @@ var Plotly = (() => { out[3] = a[3] - b[3]; return out; } - } + }) ), /***/ 5352: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformMat4; function transformMat4(out, a, m) { var x = a[0], y = a[1], z = a[2], w = a[3]; @@ -112717,12 +112806,12 @@ var Plotly = (() => { out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; return out; } - } + }) ), /***/ 4041: ( /***/ - function(module2) { + (function(module2) { module2.exports = transformQuat; function transformQuat(out, a, q) { var x = a[0], y = a[1], z = a[2], qx = q[0], qy = q[1], qz = q[2], qw = q[3], ix = qw * x + qy * z - qz * y, iy = qw * y + qz * x - qx * z, iz = qw * z + qx * y - qy * x, iw = -qx * x - qy * y - qz * z; @@ -112732,12 +112821,12 @@ var Plotly = (() => { out[3] = a[3]; return out; } - } + }) ), /***/ 1848: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var tokenize = __webpack_require__2(4905); var atob2 = __webpack_require__2(6468); module2.exports = getName; @@ -112754,12 +112843,12 @@ var Plotly = (() => { return (b64 ? atob2(name2) : name2).trim(); } } - } + }) ), /***/ 5874: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = tokenize; var literals100 = __webpack_require__2(620), operators = __webpack_require__2(7827), builtins100 = __webpack_require__2(6852), literals300es = __webpack_require__2(7932), builtins300es = __webpack_require__2(3508); var NORMAL = 999, TOKEN = 9999, BLOCK_COMMENT = 0, LINE_COMMENT = 1, PREPROCESSOR = 2, OPERATOR = 3, INTEGER = 4, FLOAT = 5, IDENT = 6, BUILTIN = 7, KEYWORD = 8, WHITESPACE = 9, EOF = 10, HEX = 11; @@ -113068,12 +113157,12 @@ var Plotly = (() => { return i + 1; } } - } + }) ), /***/ 3508: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var v100 = __webpack_require__2(6852); v100 = v100.slice().filter(function(b) { return !/^(gl\_|texture)/.test(b); @@ -113136,12 +113225,12 @@ var Plotly = (() => { "textureProjGrad", "textureProjGradOffset" ]); - } + }) ), /***/ 6852: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ // Keep this list sorted "abs", @@ -113292,12 +113381,12 @@ var Plotly = (() => { "texture2DProjGradEXT", "textureCubeGradEXT" ]; - } + }) ), /***/ 7932: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var v100 = __webpack_require__2(620); module2.exports = v100.slice().concat([ "layout", @@ -113384,12 +113473,12 @@ var Plotly = (() => { "isampler2DMSArray", "usampler2DMSArray" ]); - } + }) ), /***/ 620: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ // current "precision", @@ -113482,12 +113571,12 @@ var Plotly = (() => { "namespace", "using" ]; - } + }) ), /***/ 7827: ( /***/ - function(module2) { + (function(module2) { module2.exports = [ "<<=", ">>=", @@ -113535,12 +113624,12 @@ var Plotly = (() => { "{", "}" ]; - } + }) ), /***/ 4905: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var tokenize = __webpack_require__2(5874); module2.exports = tokenizeString; function tokenizeString(str, opt) { @@ -113550,12 +113639,12 @@ var Plotly = (() => { tokens = tokens.concat(generator(null)); return tokens; } - } + }) ), /***/ 3236: ( /***/ - function(module2) { + (function(module2) { module2.exports = function(strings) { if (typeof strings === "string") strings = [strings]; var exprs = [].slice.call(arguments, 1); @@ -113566,12 +113655,12 @@ var Plotly = (() => { parts.push(strings[i]); return parts.join(""); }; - } + }) ), /***/ 7520: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var isBrowser = __webpack_require__2(9507); function detect() { @@ -113590,12 +113679,12 @@ var Plotly = (() => { return supported; } module2.exports = isBrowser && detect(); - } + }) ), /***/ 3778: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { exports2.read = function(buffer, offset, isLE, mLen, nBytes) { var e, m; var eLen = nBytes * 8 - mLen - 1; @@ -113673,12 +113762,12 @@ var Plotly = (() => { } buffer[offset + i - d] |= s * 128; }; - } + }) ), /***/ 8954: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = incrementalConvexHull; var orient = __webpack_require__2(3250); @@ -114030,12 +114119,12 @@ var Plotly = (() => { } return triangles.boundary(); } - } + }) ), /***/ 3352: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bounds = __webpack_require__2(2478); var NOT_FOUND = 0; @@ -114385,19 +114474,19 @@ var Plotly = (() => { } return new IntervalTree(createIntervalTree(intervals)); } - } + }) ), /***/ 9507: ( /***/ - function(module2) { + (function(module2) { module2.exports = true; - } + }) ), /***/ 7163: ( /***/ - function(module2) { + (function(module2) { module2.exports = function(obj) { return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer); }; @@ -114407,12 +114496,12 @@ var Plotly = (() => { function isSlowBuffer(obj) { return typeof obj.readFloatLE === "function" && typeof obj.slice === "function" && isBuffer(obj.slice(0, 0)); } - } + }) ), /***/ 5219: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = function(str) { var l = str.length, a; @@ -114424,22 +114513,22 @@ var Plotly = (() => { } return true; }; - } + }) ), /***/ 395: ( /***/ - function(module2) { + (function(module2) { function lerp(v0, v1, t) { return v0 * (1 - t) + v1 * t; } module2.exports = lerp; - } + }) ), /***/ 2652: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var normalize = __webpack_require__2(4335); var create = __webpack_require__2(6864); var clone = __webpack_require__2(1903); @@ -114550,12 +114639,12 @@ var Plotly = (() => { out[1] = a[1] * scale1 + b[1] * scale2; out[2] = a[2] * scale1 + b[2] * scale2; } - } + }) ), /***/ 4335: ( /***/ - function(module2) { + (function(module2) { module2.exports = function normalize(out, mat) { var m44 = mat[15]; if (m44 === 0) @@ -114565,12 +114654,12 @@ var Plotly = (() => { out[i] = mat[i] * scale; return true; }; - } + }) ), /***/ 7442: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var lerp = __webpack_require__2(6658); var recompose = __webpack_require__2(7182); var decompose = __webpack_require__2(2652); @@ -114610,12 +114699,12 @@ var Plotly = (() => { function vec4() { return [0, 0, 0, 1]; } - } + }) ), /***/ 7182: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var mat4 = { identity: __webpack_require__2(7894), translate: __webpack_require__2(7656), @@ -114651,12 +114740,12 @@ var Plotly = (() => { mat4.scale(matrix, matrix, scale); return matrix; }; - } + }) ), /***/ 1811: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bsearch = __webpack_require__2(2478); var m4interp = __webpack_require__2(7442); @@ -114846,12 +114935,12 @@ var Plotly = (() => { ]; return new MatrixCameraController(matrix); } - } + }) ), /***/ 3090: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = monotoneConvexHull2D; var orient = __webpack_require__2(3250)[3]; @@ -114914,12 +115003,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 351: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = mouseListen; var mouse = __webpack_require__2(4687); @@ -115091,12 +115180,12 @@ var Plotly = (() => { }); return result; } - } + }) ), /***/ 24: ( /***/ - function(module2) { + (function(module2) { var rootPosition = { left: 0, top: 0 }; module2.exports = mouseEventOffset; function mouseEventOffset(ev, target, out) { @@ -115118,12 +115207,12 @@ var Plotly = (() => { return element.getBoundingClientRect(); } } - } + }) ), /***/ 4687: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; function mouseButtons(ev) { if (typeof ev === "object") { @@ -115180,12 +115269,12 @@ var Plotly = (() => { return 0; } exports2.y = mouseRelativeY; - } + }) ), /***/ 8512: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var toPX = __webpack_require__2(665); module2.exports = mouseWheelListen; @@ -115223,12 +115312,12 @@ var Plotly = (() => { element.addEventListener("wheel", listener); return listener; } - } + }) ), /***/ 2640: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); module2.exports = createSurfaceExtractor; @@ -115537,12 +115626,12 @@ var Plotly = (() => { typesig ); } - } + }) ), /***/ 6199: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var dup = __webpack_require__2(1338); var CACHED_CWiseOp = { @@ -115753,12 +115842,12 @@ var Plotly = (() => { var cached = generateGradient(bc); return cached(out, inp); }; - } + }) ), /***/ 4317: ( /***/ - function(module2) { + (function(module2) { "use strict"; function interp1d(arr, x) { var ix = Math.floor(x), fx = x - ix, s0 = 0 <= ix && ix < arr.shape[0], s1 = 0 <= ix + 1 && ix + 1 < arr.shape[0], w0 = s0 ? +arr.get(ix) : 0, w1 = s1 ? +arr.get(ix + 1) : 0; @@ -115823,12 +115912,12 @@ var Plotly = (() => { module2.exports.d1 = interp1d; module2.exports.d2 = interp2d; module2.exports.d3 = interp3d; - } + }) ), /***/ 5298: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; var CACHED_CWiseOp = { "float64,2,1,0": function() { @@ -116176,12 +116265,12 @@ var Plotly = (() => { exports2.assign = makeOp({ funcName: "assign" }); - } + }) ), /***/ 9994: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var ndarray = __webpack_require__2(9618); var do_convert = __webpack_require__2(8277); @@ -116201,12 +116290,12 @@ var Plotly = (() => { do_convert(result, arr); return result; }; - } + }) ), /***/ 8277: ( /***/ - function(module2) { + (function(module2) { "use strict"; function CwiseOp() { return function(SS, a0, t02, p0, Y0) { @@ -116267,12 +116356,12 @@ var Plotly = (() => { module2.exports = compileCwise({ funcName: "convert" }); - } + }) ), /***/ 7640: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var pool = __webpack_require__2(1888); function getMallocFree(dtype) { @@ -116950,12 +117039,12 @@ var Plotly = (() => { return result(insertionSort, quickSort); } module2.exports = compileSort; - } + }) ), /***/ 446: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compile = __webpack_require__2(7640); var CACHE = {}; @@ -116972,12 +117061,12 @@ var Plotly = (() => { return array; } module2.exports = sort; - } + }) ), /***/ 9618: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var isBuffer = __webpack_require__2(7163); var hasTypedArrays = typeof Float64Array !== "undefined"; function compare1st(a, b) { @@ -117812,12 +117901,12 @@ var Plotly = (() => { return ctor(data, shape, stride, offset); } module2.exports = wrappedNDArrayCtor; - } + }) ), /***/ 1278: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var doubleBits = __webpack_require__2(2361); var SMALLEST_DENORM = Math.pow(2, -1074); @@ -117856,12 +117945,12 @@ var Plotly = (() => { } return doubleBits.pack(lo, hi); } - } + }) ), /***/ 8406: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { var DEFAULT_NORMALS_EPSILON = 1e-6; var DEFAULT_FACE_EPSILON = 1e-6; exports2.vertexNormals = function(faces, positions, specifiedEpsilon) { @@ -117959,12 +118048,12 @@ var Plotly = (() => { } return normals; }; - } + }) ), /***/ 4081: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = quatFromFrame; function quatFromFrame(out, rx, ry, rz, ux, uy, uz, fx, fy, fz) { @@ -117997,12 +118086,12 @@ var Plotly = (() => { } return out; } - } + }) ), /***/ 9977: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createOrbitController; var filterVector = __webpack_require__2(9215); @@ -118352,24 +118441,24 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 1371: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var repeat = __webpack_require__2(3233); module2.exports = function padLeft(str, num, ch) { ch = typeof ch !== "undefined" ? ch + "" : " "; return repeat(ch, num) + str; }; - } + }) ), /***/ 3202: ( /***/ - function(module2) { + (function(module2) { module2.exports = function parseUnit(str, out) { if (!out) out = [0, ""]; @@ -118379,12 +118468,12 @@ var Plotly = (() => { out[1] = str.match(/[\d.\-\+]*\s*(.*)/)[1] || ""; return out; }; - } + }) ), /***/ 3088: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = planarDual; var compareAngle = __webpack_require__2(3140); @@ -118498,12 +118587,12 @@ var Plotly = (() => { } return cycles; } - } + }) ), /***/ 5609: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = trimLeaves; var e2a = __webpack_require__2(3134); @@ -118551,12 +118640,12 @@ var Plotly = (() => { } return [nedges, npositions]; } - } + }) ), /***/ 2095: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = planarGraphToPolyline; var e2a = __webpack_require__2(3134); @@ -118733,12 +118822,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 5085: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = preprocessPolygon; var orient = __webpack_require__2(3250)[3]; var makeSlabs = __webpack_require__2(4209); @@ -118874,12 +118963,12 @@ var Plotly = (() => { ); } } - } + }) ), /***/ 9346: ( /***/ - function(module2) { + (function(module2) { "use strict"; var diff = new Float64Array(4); var edge0 = new Float64Array(4); @@ -119053,19 +119142,19 @@ var Plotly = (() => { return sqrDistance; } module2.exports = closestPoint2d; - } + }) ), /***/ 8648: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2(783); - } + }) ), /***/ 2653: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnadd = __webpack_require__2(3865); module2.exports = add; @@ -119077,12 +119166,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 5838: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = float2rat; var rat = __webpack_require__2(7842); @@ -119093,12 +119182,12 @@ var Plotly = (() => { } return result; } - } + }) ), /***/ 8987: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var rat = __webpack_require__2(7842); var mul = __webpack_require__2(6504); @@ -119112,12 +119201,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 544: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var bnsub = __webpack_require__2(5572); module2.exports = sub; @@ -119129,12 +119218,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 5771: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var compareCell = __webpack_require__2(8507); var compareOrientedCell = __webpack_require__2(3788); @@ -119162,12 +119251,12 @@ var Plotly = (() => { cells.length = ptr; return cells; } - } + }) ), /***/ 3233: ( /***/ - function(module2) { + (function(module2) { "use strict"; var res = ""; var cache; @@ -119196,23 +119285,23 @@ var Plotly = (() => { res = res.substr(0, max); return res; } - } + }) ), /***/ 3025: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = __webpack_require__2.g.performance && __webpack_require__2.g.performance.now ? function now() { return performance.now(); } : Date.now || function now() { return +/* @__PURE__ */ new Date(); }; - } + }) ), /***/ 7004: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = compressExpansion; function compressExpansion(e) { @@ -119245,12 +119334,12 @@ var Plotly = (() => { e.length = top; return e; } - } + }) ), /***/ 2962: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -119320,12 +119409,12 @@ var Plotly = (() => { } } generateDispatch(); - } + }) ), /***/ 1944: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -119337,12 +119426,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 2646: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -119531,12 +119620,12 @@ var Plotly = (() => { } } generateInSphereTest(); - } + }) ), /***/ 727: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var determinant = __webpack_require__2(2962); var NUM_EXPAND = 6; @@ -119613,12 +119702,12 @@ var Plotly = (() => { } } generateDispatch(); - } + }) ), /***/ 3250: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var robustSum = __webpack_require__2(8210); @@ -119758,12 +119847,12 @@ var Plotly = (() => { } } generateOrientationProc(); - } + }) ), /***/ 5382: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var robustSum = __webpack_require__2(8210); var robustScale = __webpack_require__2(3012); @@ -119790,12 +119879,12 @@ var Plotly = (() => { } return r; } - } + }) ), /***/ 3012: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var twoProduct = __webpack_require__2(5250); var twoSum = __webpack_require__2(9362); @@ -119843,12 +119932,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 1125: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = segmentsIntersect; var orient = __webpack_require__2(3250)[3]; @@ -119884,12 +119973,12 @@ var Plotly = (() => { } return true; } - } + }) ), /***/ 8545: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = robustSubtract; function scalarScalar(a, b) { @@ -120042,12 +120131,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 8210: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = linearExpansionSum; function scalarScalar(a, b) { @@ -120200,12 +120289,12 @@ var Plotly = (() => { g.length = count; return g; } - } + }) ), /***/ 9127: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = boundary; var bnd = __webpack_require__2(6204); @@ -120213,12 +120302,12 @@ var Plotly = (() => { function boundary(cells) { return reduce(bnd(cells)); } - } + }) ), /***/ 7765: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = extractContour; var ndarray = __webpack_require__2(9618); @@ -120352,12 +120441,12 @@ var Plotly = (() => { vertexWeights: uweights }; } - } + }) ), /***/ 1570: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = getPolygonizer; var allFns = [ @@ -120630,12 +120719,12 @@ var Plotly = (() => { function getPolygonizer(d) { return allFns[d](); } - } + }) ), /***/ 6803: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var __webpack_unused_export__; "use restrict"; @@ -120928,12 +121017,12 @@ var Plotly = (() => { return connectedComponents_sparse(cells); } __webpack_unused_export__ = connectedComponents; - } + }) ), /***/ 3105: ( /***/ - function(__unused_webpack_module, exports2) { + (function(__unused_webpack_module, exports2) { "use strict"; "use restrict"; var INT_BITS = 32; @@ -121083,12 +121172,12 @@ var Plotly = (() => { var t = v | v - 1; return t + 1 | (~t & -~t) - 1 >>> countTrailingZeros(v) + 1; }; - } + }) ), /***/ 2014: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; "use restrict"; var bits = __webpack_require__2(3105), UnionFind = __webpack_require__2(4623); @@ -121380,12 +121469,12 @@ var Plotly = (() => { return connectedComponents_sparse(cells); } exports2.connectedComponents = connectedComponents; - } + }) ), /***/ 4623: ( /***/ - function(module2) { + (function(module2) { "use strict"; "use restrict"; module2.exports = UnionFind; @@ -121430,12 +121519,12 @@ var Plotly = (() => { ++ranks[xr]; } }; - } + }) ), /***/ 5878: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = simplifyPolygon; var orient = __webpack_require__2(3250); @@ -121660,12 +121749,12 @@ var Plotly = (() => { edges: ncells }; } - } + }) ), /***/ 1303: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = orderSegments; var orient = __webpack_require__2(3250); @@ -121757,12 +121846,12 @@ var Plotly = (() => { } return ar[0] - br[0]; } - } + }) ), /***/ 4209: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createSlabDecomposition; var bounds = __webpack_require__2(2478); @@ -121984,12 +122073,12 @@ var Plotly = (() => { } return new SlabDecomposition(slabs, lines, horizontal); } - } + }) ), /***/ 5202: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var robustDot = __webpack_require__2(1944); var robustSum = __webpack_require__2(8210); @@ -122072,14 +122161,14 @@ var Plotly = (() => { } return neg; } - } + }) ), /***/ 3387: ( /***/ - function(module2, exports2, __webpack_require__2) { + (function(module2, exports2, __webpack_require__2) { var __WEBPACK_AMD_DEFINE_RESULT__; - !function() { + !(function() { "use strict"; var re = { not_string: /[^s]/, @@ -122267,21 +122356,21 @@ var Plotly = (() => { window["sprintf"] = sprintf; window["vsprintf"] = vsprintf; if (true) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = function() { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return { "sprintf": sprintf, "vsprintf": vsprintf }; - }.call(exports2, __webpack_require__2, exports2, module2), __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + }).call(exports2, __webpack_require__2, exports2, module2), __WEBPACK_AMD_DEFINE_RESULT__ !== void 0 && (module2.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } } - }(); - } + })(); + }) ), /***/ 3711: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = surfaceNets; var generateContourExtractor = __webpack_require__2(2640); @@ -122400,12 +122489,12 @@ var Plotly = (() => { } return proc(array, level); } - } + }) ), /***/ 665: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; var parseUnit = __webpack_require__2(3202); module2.exports = toPX; @@ -122459,12 +122548,12 @@ var Plotly = (() => { } return 1; } - } + }) ), /***/ 7261: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createTurntableController; var filterVector = __webpack_require__2(9215); @@ -122952,12 +123041,12 @@ var Plotly = (() => { phi ); } - } + }) ), /***/ 5250: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = twoProduct; var SPLITTER = +(Math.pow(2, 27) + 1); @@ -122982,12 +123071,12 @@ var Plotly = (() => { } return [y, x]; } - } + }) ), /***/ 9362: ( /***/ - function(module2) { + (function(module2) { "use strict"; module2.exports = fastTwoSum; function fastTwoSum(a, b, result) { @@ -123003,12 +123092,12 @@ var Plotly = (() => { } return [ar + br, x]; } - } + }) ), /***/ 1888: ( /***/ - function(__unused_webpack_module, exports2, __webpack_require__2) { + (function(__unused_webpack_module, exports2, __webpack_require__2) { "use strict"; var bits = __webpack_require__2(8828); var dup = __webpack_require__2(1338); @@ -123215,12 +123304,12 @@ var Plotly = (() => { BUFFER[i].length = 0; } }; - } + }) ), /***/ 1755: ( /***/ - function(module2) { + (function(module2) { "use strict"; "use restrict"; module2.exports = UnionFind; @@ -123272,12 +123361,12 @@ var Plotly = (() => { ++ranks[xr]; } }; - } + }) ), /***/ 1682: ( /***/ - function(module2) { + (function(module2) { "use strict"; function unique_pred(list, compare) { var ptr = 1, len = list.length, a = list[0], b = list[0]; @@ -123327,12 +123416,12 @@ var Plotly = (() => { return unique_eq(list); } module2.exports = unique; - } + }) ), /***/ 4359: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = createText; var vectorizeText = __webpack_require__2(7718); @@ -123355,12 +123444,12 @@ var Plotly = (() => { options ); } - } + }) ), /***/ 7718: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { module2.exports = vectorizeText; module2.exports.processPixels = processPixels; var surfaceNets = __webpack_require__2(3711); @@ -123718,12 +123807,12 @@ var Plotly = (() => { var pixels = getPixels(canvas, context, str, size, lineSpacing, styletags); return processPixels(pixels, options, size); } - } + }) ), /***/ 1538: ( /***/ - function(module2) { + (function(module2) { (function WeakMapModule() { "use strict"; if (typeof ses !== "undefined" && ses.ok && !ses.ok()) { @@ -124052,12 +124141,12 @@ var Plotly = (() => { module2.exports = OurWeakMap; } })(); - } + }) ), /***/ 236: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var hiddenStore = __webpack_require__2(8284); module2.exports = createStore; function createStore() { @@ -124070,12 +124159,12 @@ var Plotly = (() => { return store && store.identity === key ? store : hiddenStore(obj, key); }; } - } + }) ), /***/ 8284: ( /***/ - function(module2) { + (function(module2) { module2.exports = hiddenStore; function hiddenStore(obj, key) { var store = { identity: key }; @@ -124088,12 +124177,12 @@ var Plotly = (() => { }); return store; } - } + }) ), /***/ 606: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { var createStore = __webpack_require__2(236); module2.exports = weakMap; function weakMap() { @@ -124115,12 +124204,12 @@ var Plotly = (() => { } }; } - } + }) ), /***/ 3349: ( /***/ - function(module2) { + (function(module2) { "use strict"; function CWiseOp() { return function(SS, a0, t02, p0, Y0, Y1) { @@ -124165,12 +124254,12 @@ var Plotly = (() => { module2.exports = compileCwise({ funcName: "zeroCrossings" }); - } + }) ), /***/ 781: ( /***/ - function(module2, __unused_webpack_exports, __webpack_require__2) { + (function(module2, __unused_webpack_exports, __webpack_require__2) { "use strict"; module2.exports = findZeroCrossings; var core = __webpack_require__2(3349); @@ -124180,13 +124269,13 @@ var Plotly = (() => { core(array.hi(array.shape[0] - 1), cross, level); return cross; } - } + }) ), /***/ 7790: ( /***/ - function() { - } + (function() { + }) ) /******/ }; @@ -124209,23 +124298,23 @@ var Plotly = (() => { module2.loaded = true; return module2.exports; } - !function() { - __webpack_require__.g = function() { + !(function() { + __webpack_require__.g = (function() { if (typeof globalThis === "object") return globalThis; try { return this || new Function("return this")(); } catch (e) { if (typeof window === "object") return window; } - }(); - }(); - !function() { + })(); + })(); + !(function() { __webpack_require__.nmd = function(module2) { module2.paths = []; if (!module2.children) module2.children = []; return module2; }; - }(); + })(); var __webpack_exports__ = __webpack_require__(1964); module.exports = __webpack_exports__; })(); @@ -133931,34 +134020,35 @@ var Plotly = (() => { } return false; } + var ANTIMERIDIAN_LON_SHIFT = 360; + function doesCrossAntiMeridian(pts) { + for (let l = 0; l < pts.length - 1; l++) { + if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; + } + return null; + } function feature2polygons(feature) { var geometry = feature.geometry; var coords = geometry.coordinates; var loc = feature.id; var polygons = []; var appendPolygon, j, k, m; - function doesCrossAntiMerdian(pts) { - for (var l = 0; l < pts.length - 1; l++) { - if (pts[l][0] > 0 && pts[l + 1][0] < 0) return l; - } - return null; - } if (loc === "RUS" || loc === "FJI") { appendPolygon = function(_pts) { var pts; - if (doesCrossAntiMerdian(_pts) === null) { + if (doesCrossAntiMeridian(_pts) === null) { pts = _pts; } else { pts = new Array(_pts.length); for (m = 0; m < _pts.length; m++) { - pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + 360 : _pts[m][0], _pts[m][1]]; + pts[m] = [_pts[m][0] < 0 ? _pts[m][0] + ANTIMERIDIAN_LON_SHIFT : _pts[m][0], _pts[m][1]]; } } polygons.push(polygon.tester(pts)); }; } else if (loc === "ATA") { appendPolygon = function(pts) { - var crossAntiMeridianIndex = doesCrossAntiMerdian(pts); + var crossAntiMeridianIndex = doesCrossAntiMeridian(pts); if (crossAntiMeridianIndex === null) { return polygons.push(polygon.tester(pts)); } @@ -133966,7 +134056,7 @@ var Plotly = (() => { var si = 0; for (m = 0; m < pts.length; m++) { if (m > crossAntiMeridianIndex) { - stitch[si++] = [pts[m][0] + 360, pts[m][1]]; + stitch[si++] = [pts[m][0] + ANTIMERIDIAN_LON_SHIFT, pts[m][1]]; } else if (m === crossAntiMeridianIndex) { stitch[si++] = pts[m]; stitch[si++] = [pts[m][0], -90]; @@ -134156,13 +134246,39 @@ var Plotly = (() => { function computeBbox(d) { return turfBbox(d); } + function getFitboundsLonRange(lons) { + const sorted = lons.filter(isFinite).sort((a, b) => a - b); + if (sorted.length < 2) return null; + const n = sorted.length; + const naiveSpan = sorted[n - 1] - sorted[0]; + if (naiveSpan >= 360) return null; + let maxGap = -Infinity; + let gapStart = -1; + for (let i = 0; i < n - 1; i++) { + const gap = sorted[i + 1] - sorted[i]; + if (gap > maxGap) { + maxGap = gap; + gapStart = i; + } + } + const antimeridianGap = 360 - naiveSpan; + if (maxGap <= antimeridianGap) return null; + return [sorted[gapStart + 1], sorted[gapStart] + ANTIMERIDIAN_LON_SHIFT]; + } + function unwrapLonRange([lon0, lon1]) { + return [lon0, lon0 > 0 && lon1 < 0 ? lon1 + ANTIMERIDIAN_LON_SHIFT : lon1]; + } module.exports = { locationToFeature, feature2polygons, getTraceGeojson, extractTraceFeature, fetchTraceGeoData, - computeBbox + computeBbox, + doesCrossAntiMeridian, + getFitboundsLonRange, + unwrapLonRange, + ANTIMERIDIAN_LON_SHIFT }; } }); @@ -134430,7 +134546,7 @@ var Plotly = (() => { "node_modules/d3-array/dist/d3-array.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : factory(global2.d3 = global2.d3 || {}); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; function ascending(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; @@ -134841,7 +134957,7 @@ var Plotly = (() => { exports2.variance = variance; exports2.zip = zip; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -134850,7 +134966,7 @@ var Plotly = (() => { "node_modules/d3-geo/dist/d3-geo.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array()) : typeof define === "function" && false ? define(["exports", "d3-array"], factory) : (global2 = global2 || self, factory(global2.d3 = global2.d3 || {}, global2.d3)); - })(exports, function(exports2, d3Array) { + })(exports, (function(exports2, d3Array) { "use strict"; function adder() { return new Adder(); @@ -137159,7 +137275,7 @@ var Plotly = (() => { exports2.geoTransverseMercator = transverseMercator; exports2.geoTransverseMercatorRaw = transverseMercatorRaw; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -137168,7 +137284,7 @@ var Plotly = (() => { "node_modules/d3-geo-projection/dist/d3-geo-projection.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_geo(), require_d3_array()) : typeof define === "function" && false ? define(["exports", "d3-geo", "d3-array"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3); - })(exports, function(exports2, d3Geo, d3Array) { + })(exports, (function(exports2, d3Geo, d3Array) { "use strict"; var abs = Math.abs; var atan = Math.atan; @@ -140545,7 +140661,7 @@ var Plotly = (() => { exports2.geoWinkel3 = winkel3; exports2.geoWinkel3Raw = winkel3Raw; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -140928,6 +141044,7 @@ var Plotly = (() => { var createGeoZoom = require_zoom(); var constants = require_constants22(); var geoUtils = require_geo_location_utils(); + var { getFitboundsLonRange, unwrapLonRange } = geoUtils; var topojsonUtils = require_topojson_utils(); var topojsonFeature = require_topojson_client().feature; function Geo(opts) { @@ -141065,6 +141182,7 @@ var Plotly = (() => { this._render(); }; proto.updateProjection = function(geoCalcData, fullLayout) { + var _a; var gd = this.graphDiv; var geoLayout = fullLayout[this.id]; var gs = fullLayout._size; @@ -141091,6 +141209,31 @@ var Plotly = (() => { axLat._length = extent[1][1] - extent[0][1]; axLon.range = getAutoRange(gd, axLon); axLat.range = getAutoRange(gd, axLat); + if (!this.hasChoropleth && geoLayout.fitbounds === "locations") { + var lons = []; + var hasLocationData = false; + for (var i = 0; i < geoCalcData.length; i++) { + var calcTrace = geoCalcData[i]; + var fitTrace = calcTrace[0].trace; + if (fitTrace.visible !== true) continue; + if ((_a = fitTrace.locations) == null ? void 0 : _a.length) { + hasLocationData = true; + break; + } + for (var j = 0; j < calcTrace.length; j++) { + var lonlat = calcTrace[j].lonlat; + if (lonlat) lons.push(lonlat[0]); + } + } + if (!hasLocationData) { + var fitLonRange = getFitboundsLonRange(lons); + if (fitLonRange) { + var lonDataSpan = Lib.aggNums(Math.max, null, lons) - Lib.aggNums(Math.min, null, lons); + var lonPad = lonDataSpan > 0 ? (axLon.range[1] - axLon.range[0] - lonDataSpan) / 2 * (fitLonRange[1] - fitLonRange[0]) / lonDataSpan : 0; + axLon.range = [fitLonRange[0] - lonPad, fitLonRange[1] + lonPad]; + } + } + } var midLon = (axLon.range[0] + axLon.range[1]) / 2; var midLat = (axLat.range[0] + axLat.range[1]) / 2; if (geoLayout._isScoped) { @@ -141500,11 +141643,9 @@ var Plotly = (() => { } function makeRangeBox(lon, lat) { var clipPad = constants.clipPad; - var lon0 = lon[0] + clipPad; - var lon1 = lon[1] - clipPad; + const [lon0, lon1] = unwrapLonRange([lon[0] + clipPad, lon[1] - clipPad]); var lat0 = lat[0] + clipPad; var lat1 = lat[1] - clipPad; - if (lon0 > 0 && lon1 < 0) lon1 += 360; var dlon4 = (lon1 - lon0) / 4; return { type: "Polygon", @@ -141741,6 +141882,7 @@ var Plotly = (() => { var Lib = require_lib(); var handleSubplotDefaults = require_subplot_defaults(); var getSubplotData = require_get_data().getSubplotData; + var { unwrapLonRange } = require_geo_location_utils(); var constants = require_constants22(); var layoutAttributes = require_layout_attributes18(); var axesNames = constants.axesNames; @@ -141823,9 +141965,7 @@ var Plotly = (() => { } var lonRange = geoLayoutOut.lonaxis.range; var latRange = geoLayoutOut.lataxis.range; - var lon0 = lonRange[0]; - var lon1 = lonRange[1]; - if (lon0 > 0 && lon1 < 0) lon1 += 360; + const [lon0, lon1] = unwrapLonRange(lonRange); var centerLon = (lon0 + lon1) / 2; var projLon; if (!isAlbersUsa) { @@ -142291,13 +142431,14 @@ var Plotly = (() => { var Axes = require_axes(); var attributes = require_attributes49(); var fillText = require_lib().fillText; + var { ANTIMERIDIAN_LON_SHIFT } = require_geo_location_utils(); module.exports = function hoverPoints(pointData, xval, yval) { var cd = pointData.cd; var trace = cd[0].trace; var geo = pointData.subplot; var pt, i, j, isInside; var xy = [xval, yval]; - var altXy = [xval + 360, yval]; + const altXy = [xval + ANTIMERIDIAN_LON_SHIFT, yval]; for (i = 0; i < cd.length; i++) { pt = cd[i]; isInside = false; @@ -143489,7 +143630,7 @@ var Plotly = (() => { Object.defineProperty(exports, "__esModule", { value: true }); - var _slicedToArray = /* @__PURE__ */ function() { + var _slicedToArray = /* @__PURE__ */ (function() { function sliceIterator(arr, i) { var _arr = []; var _n = true; @@ -143521,7 +143662,7 @@ var Plotly = (() => { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; - }(); + })(); var TAU = Math.PI * 2; var mapToEllipse = function mapToEllipse2(_ref, rx, ry, cosphi, sinphi, centerx, centery) { var x = _ref.x, y = _ref.y; @@ -146717,7 +146858,7 @@ var Plotly = (() => { if (!require_is_implemented2()()) { shim = require_shim3(); } - module.exports = function() { + module.exports = (function() { var nullObject, polyProps, desc; if (!shim) return create; if (shim.level !== 1) return create; @@ -146746,7 +146887,7 @@ var Plotly = (() => { return function(prototype, props) { return create(prototype === null ? nullObject : prototype, props); }; - }(); + })(); } }); @@ -146765,7 +146906,7 @@ var Plotly = (() => { if (prototype === null || isObject(prototype)) return obj; throw new TypeError("Prototype must be null or an object"); }; - module.exports = function(status) { + module.exports = (function(status) { var fn, set; if (!status) return null; if (status.level === 2) { @@ -146799,8 +146940,8 @@ var Plotly = (() => { writable: false, value: status.level }); - }( - function() { + })( + (function() { var tmpObj1 = /* @__PURE__ */ Object.create(null), tmpObj2 = {}, set, desc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__"); if (desc) { try { @@ -146816,7 +146957,7 @@ var Plotly = (() => { tmpObj1.__proto__ = tmpObj2; if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 1 }; return false; - }() + })() ); require_create2(); } @@ -147144,9 +147285,9 @@ var Plotly = (() => { "node_modules/es5-ext/function/is-arguments.js"(exports, module) { "use strict"; var objToString = Object.prototype.toString; - var id = objToString.call(/* @__PURE__ */ function() { + var id = objToString.call(/* @__PURE__ */ (function() { return arguments; - }()); + })()); module.exports = function(value) { return objToString.call(value) === id; }; @@ -147185,7 +147326,7 @@ var Plotly = (() => { if (typeof window === "object" && window) return window; throw new Error("Unable to resolve global `this`"); }; - module.exports = function() { + module.exports = (function() { if (this) return this; try { Object.defineProperty(Object.prototype, "__global__", { @@ -147203,7 +147344,7 @@ var Plotly = (() => { } finally { delete Object.prototype.__global__; } - }(); + })(); } }); @@ -148183,10 +148324,10 @@ var Plotly = (() => { var require_is_native_implemented = __commonJS({ "node_modules/es6-weak-map/is-native-implemented.js"(exports, module) { "use strict"; - module.exports = function() { + module.exports = (function() { if (typeof WeakMap !== "function") return false; return Object.prototype.toString.call(/* @__PURE__ */ new WeakMap()) === "[object WeakMap]"; - }(); + })(); } }); @@ -150135,7 +150276,7 @@ void main() { "node_modules/regl/dist/regl.unchecked.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : global2.createREGL = factory(); - })(exports, function() { + })(exports, (function() { "use strict"; var extend2 = function(base, opts) { var keys = Object.keys(opts); @@ -157688,7 +157829,7 @@ void main() { return { next: nextState, current: currentState, - procs: function() { + procs: (function() { var env = createREGLEnvironment(); var poll = env.proc("poll"); var refresh = env.proc("refresh"); @@ -157871,7 +158012,7 @@ void main() { refresh(block); }); return env.compile(); - }(), + })(), compile: compileCommand }; } @@ -158503,7 +158644,7 @@ void main() { return regl; } return wrapREGL; - }); + })); } }); @@ -159962,7 +160103,7 @@ void main() { "node_modules/@plotly/regl/dist/regl.unchecked.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : global2.createREGL = factory(); - })(exports, function() { + })(exports, (function() { "use strict"; var extend2 = function(base, opts) { var keys = Object.keys(opts); @@ -167515,7 +167656,7 @@ void main() { return { next: nextState, current: currentState, - procs: function() { + procs: (function() { var env = createREGLEnvironment(); var poll = env.proc("poll"); var refresh = env.proc("refresh"); @@ -167698,7 +167839,7 @@ void main() { refresh(block); }); return env.compile(); - }(), + })(), compile: compileCommand }; } @@ -168330,7 +168471,7 @@ void main() { return regl; } return wrapREGL; - }); + })); } }); @@ -168490,7 +168631,9 @@ void main() { scene.line2d.update(scene.lineOptions); } if (scene.error2d) { - var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []); + var errorBatch = (scene.errorXOptions || []).concat(scene.errorYOptions || []).map(function(errorOptions) { + return errorOptions || { positions: [], errors: [] }; + }); scene.error2d.update(errorBatch); } if (scene.scatter2d) { @@ -175641,7 +175784,7 @@ void main() { "node_modules/@plotly/mapbox-gl/dist/mapbox-gl-unminified.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : (global2 = global2 || self, global2.mapboxgl = factory()); - })(exports, function() { + })(exports, (function() { "use strict"; var shared, worker, mapboxgl; function define2(_, chunk) { @@ -176541,7 +176684,7 @@ void main() { this.queue.push(event); this.processRequests(customAccessToken); }; - var MapLoadEvent = function(TelemetryEvent2) { + var MapLoadEvent = (function(TelemetryEvent2) { function MapLoadEvent2() { TelemetryEvent2.call(this, "map.load"); this.success = {}; @@ -176588,8 +176731,8 @@ void main() { }, customAccessToken); }; return MapLoadEvent2; - }(TelemetryEvent); - var TurnstileEvent = function(TelemetryEvent2) { + })(TelemetryEvent); + var TurnstileEvent = (function(TelemetryEvent2) { function TurnstileEvent2(customAccessToken) { TelemetryEvent2.call(this, "appUserTurnstile"); this._customAccessToken = customAccessToken; @@ -176640,7 +176783,7 @@ void main() { }, customAccessToken); }; return TurnstileEvent2; - }(TelemetryEvent); + })(TelemetryEvent); var turnstileEvent_ = new TurnstileEvent(); var postTurnstileEvent = turnstileEvent_.postTurnstileEvent.bind(turnstileEvent_); var mapLoadEvent_ = new MapLoadEvent(); @@ -176790,7 +176933,7 @@ void main() { if (typeof Object.freeze == "function") { Object.freeze(ResourceType); } - var AJAXError = function(Error2) { + var AJAXError = (function(Error2) { function AJAXError2(message, status2, url) { if (status2 === 401 && isMapboxHTTPURL(url)) { message += ": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"; @@ -176809,7 +176952,7 @@ void main() { return this.name + ": " + this.message + " (" + this.status + "): " + this.url; }; return AJAXError2; - }(Error); + })(Error); var getReferrer = isWorker() ? function() { return self.worker && self.worker.referrer; } : function() { @@ -177086,7 +177229,7 @@ void main() { extend2(this, data); this.type = type; }; - var ErrorEvent = function(Event2) { + var ErrorEvent = (function(Event2) { function ErrorEvent2(error2, data) { if (data === void 0) data = {}; @@ -177097,7 +177240,7 @@ void main() { ErrorEvent2.prototype = Object.create(Event2 && Event2.prototype); ErrorEvent2.prototype.constructor = ErrorEvent2; return ErrorEvent2; - }(Event); + })(Event); var Evented = function Evented2() { }; Evented.prototype.on = function on(type, listener) { @@ -180006,7 +180149,7 @@ void main() { } return unbundle(value); } - var ParsingError = function(Error2) { + var ParsingError = (function(Error2) { function ParsingError2(key, message) { Error2.call(this, message); this.message = message; @@ -180017,7 +180160,7 @@ void main() { ParsingError2.prototype = Object.create(Error2 && Error2.prototype); ParsingError2.prototype.constructor = ParsingError2; return ParsingError2; - }(Error); + })(Error); var Scope = function Scope2(parent, bindings) { if (bindings === void 0) bindings = []; @@ -183598,7 +183741,7 @@ void main() { } function makeComparison(op, compareBasic, compareWithCollator) { var isOrderComparison = op !== "==" && op !== "!="; - return function() { + return (function() { function Comparison(lhs, rhs, collator) { this.type = BooleanType; this.lhs = lhs; @@ -183684,7 +183827,7 @@ void main() { return serialized; }; return Comparison; - }(); + })(); } var Equals = makeComparison("==", eq, eqCollate); var NotEquals = makeComparison("!=", neq, neqCollate); @@ -187256,7 +187399,7 @@ void main() { return value.evaluate(parameters, feature, featureState, canonical, availableImages); } }; - var CrossFadedDataDrivenProperty = function(DataDrivenProperty2) { + var CrossFadedDataDrivenProperty = (function(DataDrivenProperty2) { function CrossFadedDataDrivenProperty2() { DataDrivenProperty2.apply(this, arguments); } @@ -187313,7 +187456,7 @@ void main() { return a; }; return CrossFadedDataDrivenProperty2; - }(DataDrivenProperty); + })(DataDrivenProperty); var CrossFadedProperty = function CrossFadedProperty2(specification) { this.specification = specification; }; @@ -187373,7 +187516,7 @@ void main() { register("CrossFadedProperty", CrossFadedProperty); register("ColorRampProperty", ColorRampProperty); var TRANSITION_SUFFIX = "-transition"; - var StyleLayer = function(Evented2) { + var StyleLayer = (function(Evented2) { function StyleLayer2(layer2, properties2) { Evented2.call(this); this.id = layer2.id; @@ -187562,7 +187705,7 @@ void main() { return false; }; return StyleLayer2; - }(Evented); + })(Evented); var viewTypes = { "Int8": Int8Array, "Uint8": Uint8Array, @@ -187664,7 +187807,7 @@ void main() { function align(offset, size) { return Math.ceil(offset / size) * size; } - var StructArrayLayout2i4 = function(StructArray2) { + var StructArrayLayout2i4 = (function(StructArray2) { function StructArrayLayout2i42() { StructArray2.apply(this, arguments); } @@ -187688,10 +187831,10 @@ void main() { return i; }; return StructArrayLayout2i42; - }(StructArray); + })(StructArray); StructArrayLayout2i4.prototype.bytesPerElement = 4; register("StructArrayLayout2i4", StructArrayLayout2i4); - var StructArrayLayout4i8 = function(StructArray2) { + var StructArrayLayout4i8 = (function(StructArray2) { function StructArrayLayout4i82() { StructArray2.apply(this, arguments); } @@ -187717,10 +187860,10 @@ void main() { return i; }; return StructArrayLayout4i82; - }(StructArray); + })(StructArray); StructArrayLayout4i8.prototype.bytesPerElement = 8; register("StructArrayLayout4i8", StructArrayLayout4i8); - var StructArrayLayout2i4i12 = function(StructArray2) { + var StructArrayLayout2i4i12 = (function(StructArray2) { function StructArrayLayout2i4i122() { StructArray2.apply(this, arguments); } @@ -187748,10 +187891,10 @@ void main() { return i; }; return StructArrayLayout2i4i122; - }(StructArray); + })(StructArray); StructArrayLayout2i4i12.prototype.bytesPerElement = 12; register("StructArrayLayout2i4i12", StructArrayLayout2i4i12); - var StructArrayLayout2i4ub8 = function(StructArray2) { + var StructArrayLayout2i4ub8 = (function(StructArray2) { function StructArrayLayout2i4ub82() { StructArray2.apply(this, arguments); } @@ -187780,10 +187923,10 @@ void main() { return i; }; return StructArrayLayout2i4ub82; - }(StructArray); + })(StructArray); StructArrayLayout2i4ub8.prototype.bytesPerElement = 8; register("StructArrayLayout2i4ub8", StructArrayLayout2i4ub8); - var StructArrayLayout2f8 = function(StructArray2) { + var StructArrayLayout2f8 = (function(StructArray2) { function StructArrayLayout2f82() { StructArray2.apply(this, arguments); } @@ -187807,10 +187950,10 @@ void main() { return i; }; return StructArrayLayout2f82; - }(StructArray); + })(StructArray); StructArrayLayout2f8.prototype.bytesPerElement = 8; register("StructArrayLayout2f8", StructArrayLayout2f8); - var StructArrayLayout10ui20 = function(StructArray2) { + var StructArrayLayout10ui20 = (function(StructArray2) { function StructArrayLayout10ui202() { StructArray2.apply(this, arguments); } @@ -187842,10 +187985,10 @@ void main() { return i; }; return StructArrayLayout10ui202; - }(StructArray); + })(StructArray); StructArrayLayout10ui20.prototype.bytesPerElement = 20; register("StructArrayLayout10ui20", StructArrayLayout10ui20); - var StructArrayLayout4i4ui4i24 = function(StructArray2) { + var StructArrayLayout4i4ui4i24 = (function(StructArray2) { function StructArrayLayout4i4ui4i242() { StructArray2.apply(this, arguments); } @@ -187880,10 +188023,10 @@ void main() { return i; }; return StructArrayLayout4i4ui4i242; - }(StructArray); + })(StructArray); StructArrayLayout4i4ui4i24.prototype.bytesPerElement = 24; register("StructArrayLayout4i4ui4i24", StructArrayLayout4i4ui4i24); - var StructArrayLayout3f12 = function(StructArray2) { + var StructArrayLayout3f12 = (function(StructArray2) { function StructArrayLayout3f122() { StructArray2.apply(this, arguments); } @@ -187908,10 +188051,10 @@ void main() { return i; }; return StructArrayLayout3f122; - }(StructArray); + })(StructArray); StructArrayLayout3f12.prototype.bytesPerElement = 12; register("StructArrayLayout3f12", StructArrayLayout3f12); - var StructArrayLayout1ul4 = function(StructArray2) { + var StructArrayLayout1ul4 = (function(StructArray2) { function StructArrayLayout1ul42() { StructArray2.apply(this, arguments); } @@ -187934,10 +188077,10 @@ void main() { return i; }; return StructArrayLayout1ul42; - }(StructArray); + })(StructArray); StructArrayLayout1ul4.prototype.bytesPerElement = 4; register("StructArrayLayout1ul4", StructArrayLayout1ul4); - var StructArrayLayout6i1ul2ui20 = function(StructArray2) { + var StructArrayLayout6i1ul2ui20 = (function(StructArray2) { function StructArrayLayout6i1ul2ui202() { StructArray2.apply(this, arguments); } @@ -187971,10 +188114,10 @@ void main() { return i; }; return StructArrayLayout6i1ul2ui202; - }(StructArray); + })(StructArray); StructArrayLayout6i1ul2ui20.prototype.bytesPerElement = 20; register("StructArrayLayout6i1ul2ui20", StructArrayLayout6i1ul2ui20); - var StructArrayLayout2i2i2i12 = function(StructArray2) { + var StructArrayLayout2i2i2i12 = (function(StructArray2) { function StructArrayLayout2i2i2i122() { StructArray2.apply(this, arguments); } @@ -188002,10 +188145,10 @@ void main() { return i; }; return StructArrayLayout2i2i2i122; - }(StructArray); + })(StructArray); StructArrayLayout2i2i2i12.prototype.bytesPerElement = 12; register("StructArrayLayout2i2i2i12", StructArrayLayout2i2i2i12); - var StructArrayLayout2f1f2i16 = function(StructArray2) { + var StructArrayLayout2f1f2i16 = (function(StructArray2) { function StructArrayLayout2f1f2i162() { StructArray2.apply(this, arguments); } @@ -188034,10 +188177,10 @@ void main() { return i; }; return StructArrayLayout2f1f2i162; - }(StructArray); + })(StructArray); StructArrayLayout2f1f2i16.prototype.bytesPerElement = 16; register("StructArrayLayout2f1f2i16", StructArrayLayout2f1f2i16); - var StructArrayLayout2ub2f12 = function(StructArray2) { + var StructArrayLayout2ub2f12 = (function(StructArray2) { function StructArrayLayout2ub2f122() { StructArray2.apply(this, arguments); } @@ -188064,10 +188207,10 @@ void main() { return i; }; return StructArrayLayout2ub2f122; - }(StructArray); + })(StructArray); StructArrayLayout2ub2f12.prototype.bytesPerElement = 12; register("StructArrayLayout2ub2f12", StructArrayLayout2ub2f12); - var StructArrayLayout3ui6 = function(StructArray2) { + var StructArrayLayout3ui6 = (function(StructArray2) { function StructArrayLayout3ui62() { StructArray2.apply(this, arguments); } @@ -188092,10 +188235,10 @@ void main() { return i; }; return StructArrayLayout3ui62; - }(StructArray); + })(StructArray); StructArrayLayout3ui6.prototype.bytesPerElement = 6; register("StructArrayLayout3ui6", StructArrayLayout3ui6); - var StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 = function(StructArray2) { + var StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48 = (function(StructArray2) { function StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482() { StructArray2.apply(this, arguments); } @@ -188139,10 +188282,10 @@ void main() { return i; }; return StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482; - }(StructArray); + })(StructArray); StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48.prototype.bytesPerElement = 48; register("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48", StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); - var StructArrayLayout8i15ui1ul4f68 = function(StructArray2) { + var StructArrayLayout8i15ui1ul4f68 = (function(StructArray2) { function StructArrayLayout8i15ui1ul4f682() { StructArray2.apply(this, arguments); } @@ -188196,10 +188339,10 @@ void main() { return i; }; return StructArrayLayout8i15ui1ul4f682; - }(StructArray); + })(StructArray); StructArrayLayout8i15ui1ul4f68.prototype.bytesPerElement = 68; register("StructArrayLayout8i15ui1ul4f68", StructArrayLayout8i15ui1ul4f68); - var StructArrayLayout1f4 = function(StructArray2) { + var StructArrayLayout1f4 = (function(StructArray2) { function StructArrayLayout1f42() { StructArray2.apply(this, arguments); } @@ -188222,10 +188365,10 @@ void main() { return i; }; return StructArrayLayout1f42; - }(StructArray); + })(StructArray); StructArrayLayout1f4.prototype.bytesPerElement = 4; register("StructArrayLayout1f4", StructArrayLayout1f4); - var StructArrayLayout3i6 = function(StructArray2) { + var StructArrayLayout3i6 = (function(StructArray2) { function StructArrayLayout3i62() { StructArray2.apply(this, arguments); } @@ -188250,10 +188393,10 @@ void main() { return i; }; return StructArrayLayout3i62; - }(StructArray); + })(StructArray); StructArrayLayout3i6.prototype.bytesPerElement = 6; register("StructArrayLayout3i6", StructArrayLayout3i6); - var StructArrayLayout1ul2ui8 = function(StructArray2) { + var StructArrayLayout1ul2ui8 = (function(StructArray2) { function StructArrayLayout1ul2ui82() { StructArray2.apply(this, arguments); } @@ -188280,10 +188423,10 @@ void main() { return i; }; return StructArrayLayout1ul2ui82; - }(StructArray); + })(StructArray); StructArrayLayout1ul2ui8.prototype.bytesPerElement = 8; register("StructArrayLayout1ul2ui8", StructArrayLayout1ul2ui8); - var StructArrayLayout2ui4 = function(StructArray2) { + var StructArrayLayout2ui4 = (function(StructArray2) { function StructArrayLayout2ui42() { StructArray2.apply(this, arguments); } @@ -188307,10 +188450,10 @@ void main() { return i; }; return StructArrayLayout2ui42; - }(StructArray); + })(StructArray); StructArrayLayout2ui4.prototype.bytesPerElement = 4; register("StructArrayLayout2ui4", StructArrayLayout2ui4); - var StructArrayLayout1ui2 = function(StructArray2) { + var StructArrayLayout1ui2 = (function(StructArray2) { function StructArrayLayout1ui22() { StructArray2.apply(this, arguments); } @@ -188333,10 +188476,10 @@ void main() { return i; }; return StructArrayLayout1ui22; - }(StructArray); + })(StructArray); StructArrayLayout1ui2.prototype.bytesPerElement = 2; register("StructArrayLayout1ui2", StructArrayLayout1ui2); - var StructArrayLayout4f16 = function(StructArray2) { + var StructArrayLayout4f16 = (function(StructArray2) { function StructArrayLayout4f162() { StructArray2.apply(this, arguments); } @@ -188362,10 +188505,10 @@ void main() { return i; }; return StructArrayLayout4f162; - }(StructArray); + })(StructArray); StructArrayLayout4f16.prototype.bytesPerElement = 16; register("StructArrayLayout4f16", StructArrayLayout4f16); - var CollisionBoxStruct = function(Struct2) { + var CollisionBoxStruct = (function(Struct2) { function CollisionBoxStruct2() { Struct2.apply(this, arguments); } @@ -188417,9 +188560,9 @@ void main() { }; Object.defineProperties(CollisionBoxStruct2.prototype, prototypeAccessors2); return CollisionBoxStruct2; - }(Struct); + })(Struct); CollisionBoxStruct.prototype.size = 20; - var CollisionBoxArray = function(StructArrayLayout6i1ul2ui202) { + var CollisionBoxArray = (function(StructArrayLayout6i1ul2ui202) { function CollisionBoxArray2() { StructArrayLayout6i1ul2ui202.apply(this, arguments); } @@ -188431,9 +188574,9 @@ void main() { return new CollisionBoxStruct(this, index); }; return CollisionBoxArray2; - }(StructArrayLayout6i1ul2ui20); + })(StructArrayLayout6i1ul2ui20); register("CollisionBoxArray", CollisionBoxArray); - var PlacedSymbolStruct = function(Struct2) { + var PlacedSymbolStruct = (function(Struct2) { function PlacedSymbolStruct2() { Struct2.apply(this, arguments); } @@ -188522,9 +188665,9 @@ void main() { }; Object.defineProperties(PlacedSymbolStruct2.prototype, prototypeAccessors$12); return PlacedSymbolStruct2; - }(Struct); + })(Struct); PlacedSymbolStruct.prototype.size = 48; - var PlacedSymbolArray = function(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482) { + var PlacedSymbolArray = (function(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482) { function PlacedSymbolArray2() { StructArrayLayout2i2ui3ul3ui2f3ub1ul1i482.apply(this, arguments); } @@ -188536,9 +188679,9 @@ void main() { return new PlacedSymbolStruct(this, index); }; return PlacedSymbolArray2; - }(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); + })(StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48); register("PlacedSymbolArray", PlacedSymbolArray); - var SymbolInstanceStruct = function(Struct2) { + var SymbolInstanceStruct = (function(Struct2) { function SymbolInstanceStruct2() { Struct2.apply(this, arguments); } @@ -188665,9 +188808,9 @@ void main() { }; Object.defineProperties(SymbolInstanceStruct2.prototype, prototypeAccessors$2); return SymbolInstanceStruct2; - }(Struct); + })(Struct); SymbolInstanceStruct.prototype.size = 68; - var SymbolInstanceArray = function(StructArrayLayout8i15ui1ul4f682) { + var SymbolInstanceArray = (function(StructArrayLayout8i15ui1ul4f682) { function SymbolInstanceArray2() { StructArrayLayout8i15ui1ul4f682.apply(this, arguments); } @@ -188679,9 +188822,9 @@ void main() { return new SymbolInstanceStruct(this, index); }; return SymbolInstanceArray2; - }(StructArrayLayout8i15ui1ul4f68); + })(StructArrayLayout8i15ui1ul4f68); register("SymbolInstanceArray", SymbolInstanceArray); - var GlyphOffsetArray = function(StructArrayLayout1f42) { + var GlyphOffsetArray = (function(StructArrayLayout1f42) { function GlyphOffsetArray2() { StructArrayLayout1f42.apply(this, arguments); } @@ -188693,9 +188836,9 @@ void main() { return this.float32[index * 1 + 0]; }; return GlyphOffsetArray2; - }(StructArrayLayout1f4); + })(StructArrayLayout1f4); register("GlyphOffsetArray", GlyphOffsetArray); - var SymbolLineVertexArray = function(StructArrayLayout3i62) { + var SymbolLineVertexArray = (function(StructArrayLayout3i62) { function SymbolLineVertexArray2() { StructArrayLayout3i62.apply(this, arguments); } @@ -188713,9 +188856,9 @@ void main() { return this.int16[index * 3 + 2]; }; return SymbolLineVertexArray2; - }(StructArrayLayout3i6); + })(StructArrayLayout3i6); register("SymbolLineVertexArray", SymbolLineVertexArray); - var FeatureIndexStruct = function(Struct2) { + var FeatureIndexStruct = (function(Struct2) { function FeatureIndexStruct2() { Struct2.apply(this, arguments); } @@ -188739,9 +188882,9 @@ void main() { }; Object.defineProperties(FeatureIndexStruct2.prototype, prototypeAccessors$3); return FeatureIndexStruct2; - }(Struct); + })(Struct); FeatureIndexStruct.prototype.size = 8; - var FeatureIndexArray = function(StructArrayLayout1ul2ui82) { + var FeatureIndexArray = (function(StructArrayLayout1ul2ui82) { function FeatureIndexArray2() { StructArrayLayout1ul2ui82.apply(this, arguments); } @@ -188753,7 +188896,7 @@ void main() { return new FeatureIndexStruct(this, index); }; return FeatureIndexArray2; - }(StructArrayLayout1ul2ui8); + })(StructArrayLayout1ul2ui8); register("FeatureIndexArray", FeatureIndexArray); var layout$1 = createLayout([{ name: "a_pos", @@ -189016,7 +189159,7 @@ void main() { this.gl = context.gl; this.location = location2; }; - var Uniform1i = function(Uniform2) { + var Uniform1i = (function(Uniform2) { function Uniform1i2(context, location2) { Uniform2.call(this, context, location2); this.current = 0; @@ -189032,8 +189175,8 @@ void main() { } }; return Uniform1i2; - }(Uniform); - var Uniform1f = function(Uniform2) { + })(Uniform); + var Uniform1f = (function(Uniform2) { function Uniform1f2(context, location2) { Uniform2.call(this, context, location2); this.current = 0; @@ -189049,8 +189192,8 @@ void main() { } }; return Uniform1f2; - }(Uniform); - var Uniform2f = function(Uniform2) { + })(Uniform); + var Uniform2f = (function(Uniform2) { function Uniform2f2(context, location2) { Uniform2.call(this, context, location2); this.current = [ @@ -189069,8 +189212,8 @@ void main() { } }; return Uniform2f2; - }(Uniform); - var Uniform3f = function(Uniform2) { + })(Uniform); + var Uniform3f = (function(Uniform2) { function Uniform3f2(context, location2) { Uniform2.call(this, context, location2); this.current = [ @@ -189090,8 +189233,8 @@ void main() { } }; return Uniform3f2; - }(Uniform); - var Uniform4f = function(Uniform2) { + })(Uniform); + var Uniform4f = (function(Uniform2) { function Uniform4f2(context, location2) { Uniform2.call(this, context, location2); this.current = [ @@ -189112,8 +189255,8 @@ void main() { } }; return Uniform4f2; - }(Uniform); - var UniformColor = function(Uniform2) { + })(Uniform); + var UniformColor = (function(Uniform2) { function UniformColor2(context, location2) { Uniform2.call(this, context, location2); this.current = Color2.transparent; @@ -189129,9 +189272,9 @@ void main() { } }; return UniformColor2; - }(Uniform); + })(Uniform); var emptyMat4 = new Float32Array(16); - var UniformMatrix4f = function(Uniform2) { + var UniformMatrix4f = (function(Uniform2) { function UniformMatrix4f2(context, location2) { Uniform2.call(this, context, location2); this.current = emptyMat4; @@ -189155,7 +189298,7 @@ void main() { } }; return UniformMatrix4f2; - }(Uniform); + })(Uniform); function packColor(color3) { return [ packUint8ToFloat(255 * color3.r, 255 * color3.g), @@ -190489,7 +190632,7 @@ void main() { return out; } var sub = subtract; - var forEach = function() { + var forEach = (function() { var vec = create$3(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -190515,7 +190658,7 @@ void main() { } return a; }; - }(); + })(); function create$4() { var out = new ARRAY_TYPE(4); if (ARRAY_TYPE != Float32Array) { @@ -190544,7 +190687,7 @@ void main() { out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; return out; } - var forEach$1 = function() { + var forEach$1 = (function() { var vec = create$4(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -190572,7 +190715,7 @@ void main() { } return a; }; - }(); + })(); function create$5() { var out = new ARRAY_TYPE(2); if (ARRAY_TYPE != Float32Array) { @@ -190586,7 +190729,7 @@ void main() { return x * x + y * y; } var sqrLen = squaredLength; - var forEach$2 = function() { + var forEach$2 = (function() { var vec = create$5(); return function(a, stride, offset, count, fn, arg) { var i, l; @@ -190610,8 +190753,8 @@ void main() { } return a; }; - }(); - var CircleStyleLayer = function(StyleLayer2) { + })(); + var CircleStyleLayer = (function(StyleLayer2) { function CircleStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties); } @@ -190659,7 +190802,7 @@ void main() { return false; }; return CircleStyleLayer2; - }(StyleLayer); + })(StyleLayer); function projectPoint(p, pixelPosMatrix) { var point = transformMat4([], [ p.x, @@ -190674,7 +190817,7 @@ void main() { return projectPoint(p, pixelPosMatrix); }); } - var HeatmapBucket = function(CircleBucket2) { + var HeatmapBucket = (function(CircleBucket2) { function HeatmapBucket2() { CircleBucket2.apply(this, arguments); } @@ -190683,7 +190826,7 @@ void main() { HeatmapBucket2.prototype = Object.create(CircleBucket2 && CircleBucket2.prototype); HeatmapBucket2.prototype.constructor = HeatmapBucket2; return HeatmapBucket2; - }(CircleBucket); + })(CircleBucket); register("HeatmapBucket", HeatmapBucket, { omit: ["layers"] }); function createImage(image, ref, channels, data) { var width = ref.width; @@ -190829,7 +190972,7 @@ void main() { } return image; } - var HeatmapStyleLayer = function(StyleLayer2) { + var HeatmapStyleLayer = (function(StyleLayer2) { function HeatmapStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$1); this._updateColorRamp(); @@ -190871,7 +191014,7 @@ void main() { return this.paint.get("heatmap-opacity") !== 0 && this.visibility !== "none"; }; return HeatmapStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$3 = new Properties({ "hillshade-illumination-direction": new DataConstantProperty(spec["paint_hillshade"]["hillshade-illumination-direction"]), "hillshade-illumination-anchor": new DataConstantProperty(spec["paint_hillshade"]["hillshade-illumination-anchor"]), @@ -190881,7 +191024,7 @@ void main() { "hillshade-accent-color": new DataConstantProperty(spec["paint_hillshade"]["hillshade-accent-color"]) }); var properties$2 = { paint: paint$3 }; - var HillshadeStyleLayer = function(StyleLayer2) { + var HillshadeStyleLayer = (function(StyleLayer2) { function HillshadeStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$2); } @@ -190893,7 +191036,7 @@ void main() { return this.paint.get("hillshade-exaggeration") !== 0 && this.visibility !== "none"; }; return HillshadeStyleLayer2; - }(StyleLayer); + })(StyleLayer); var layout$3 = createLayout([{ name: "a_pos", components: 2, @@ -191715,7 +191858,7 @@ void main() { paint: paint$4, layout: layout$4 }; - var FillStyleLayer = function(StyleLayer2) { + var FillStyleLayer = (function(StyleLayer2) { function FillStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$3); } @@ -191744,7 +191887,7 @@ void main() { return true; }; return FillStyleLayer2; - }(StyleLayer); + })(StyleLayer); var layout$5 = createLayout([ { name: "a_pos", @@ -192218,7 +192361,7 @@ void main() { "fill-extrusion-vertical-gradient": new DataConstantProperty(spec["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]) }); var properties$4 = { paint: paint$5 }; - var FillExtrusionStyleLayer = function(StyleLayer2) { + var FillExtrusionStyleLayer = (function(StyleLayer2) { function FillExtrusionStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$4); } @@ -192246,7 +192389,7 @@ void main() { return checkIntersection(projectedBase, projectedTop, projectedQueryGeometry); }; return FillExtrusionStyleLayer2; - }(StyleLayer); + })(StyleLayer); function dot$2(a, b) { return a.x * b.x + a.y * b.y; } @@ -192782,7 +192925,7 @@ void main() { paint: paint$6, layout: layout$6 }; - var LineFloorwidthProperty = function(DataDrivenProperty2) { + var LineFloorwidthProperty = (function(DataDrivenProperty2) { function LineFloorwidthProperty2() { DataDrivenProperty2.apply(this, arguments); } @@ -192804,10 +192947,10 @@ void main() { return DataDrivenProperty2.prototype.evaluate.call(this, value, globals, feature, featureState); }; return LineFloorwidthProperty2; - }(DataDrivenProperty); + })(DataDrivenProperty); var lineFloorwidthProperty = new LineFloorwidthProperty(properties$5.paint.properties["line-width"].specification); lineFloorwidthProperty.useIntegerZoom = true; - var LineStyleLayer = function(StyleLayer2) { + var LineStyleLayer = (function(StyleLayer2) { function LineStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$5); this.gradientVersion = 0; @@ -192852,7 +192995,7 @@ void main() { return true; }; return LineStyleLayer2; - }(StyleLayer); + })(StyleLayer); function getLineWidth(lineWidth, lineGapWidth) { if (lineGapWidth > 0) { return lineGapWidth + 2 * lineWidth; @@ -195000,7 +195143,7 @@ void main() { collisionPadding }; } - var Anchor = function(Point2) { + var Anchor = (function(Point2) { function Anchor2(x, y, angle, segment) { Point2.call(this, x, y); this.angle = angle; @@ -195016,7 +195159,7 @@ void main() { return new Anchor2(this.x, this.y, this.angle, this.segment); }; return Anchor2; - }(pointGeometry); + })(pointGeometry); register("Anchor", Anchor); var SIZE_PACK_FACTOR = 128; function getSizeData(tileZoom, value) { @@ -196909,7 +197052,7 @@ void main() { return null; }; register("FormatSectionOverride", FormatSectionOverride, { omit: ["defaultValue"] }); - var SymbolStyleLayer = function(StyleLayer2) { + var SymbolStyleLayer = (function(StyleLayer2) { function SymbolStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$6); } @@ -197034,14 +197177,14 @@ void main() { return hasOverrides; }; return SymbolStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$8 = new Properties({ "background-color": new DataConstantProperty(spec["paint_background"]["background-color"]), "background-pattern": new CrossFadedProperty(spec["paint_background"]["background-pattern"]), "background-opacity": new DataConstantProperty(spec["paint_background"]["background-opacity"]) }); var properties$7 = { paint: paint$8 }; - var BackgroundStyleLayer = function(StyleLayer2) { + var BackgroundStyleLayer = (function(StyleLayer2) { function BackgroundStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$7); } @@ -197050,7 +197193,7 @@ void main() { BackgroundStyleLayer2.prototype = Object.create(StyleLayer2 && StyleLayer2.prototype); BackgroundStyleLayer2.prototype.constructor = BackgroundStyleLayer2; return BackgroundStyleLayer2; - }(StyleLayer); + })(StyleLayer); var paint$9 = new Properties({ "raster-opacity": new DataConstantProperty(spec["paint_raster"]["raster-opacity"]), "raster-hue-rotate": new DataConstantProperty(spec["paint_raster"]["raster-hue-rotate"]), @@ -197062,7 +197205,7 @@ void main() { "raster-fade-duration": new DataConstantProperty(spec["paint_raster"]["raster-fade-duration"]) }); var properties$8 = { paint: paint$9 }; - var RasterStyleLayer = function(StyleLayer2) { + var RasterStyleLayer = (function(StyleLayer2) { function RasterStyleLayer2(layer2) { StyleLayer2.call(this, layer2, properties$8); } @@ -197071,7 +197214,7 @@ void main() { RasterStyleLayer2.prototype = Object.create(StyleLayer2 && StyleLayer2.prototype); RasterStyleLayer2.prototype.constructor = RasterStyleLayer2; return RasterStyleLayer2; - }(StyleLayer); + })(StyleLayer); function validateCustomStyleLayer(layerObject) { var errors = []; var id2 = layerObject.id; @@ -197086,7 +197229,7 @@ void main() { } return errors; } - var CustomStyleLayer = function(StyleLayer2) { + var CustomStyleLayer = (function(StyleLayer2) { function CustomStyleLayer2(implementation) { StyleLayer2.call(this, implementation, {}); this.implementation = implementation; @@ -197120,7 +197263,7 @@ void main() { } }; return CustomStyleLayer2; - }(StyleLayer); + })(StyleLayer); var subclasses = { circle: CircleStyleLayer, heatmap: HeatmapStyleLayer, @@ -200783,7 +200926,7 @@ void main() { rawData: pbf.buffer }); } - var GeoJSONWorkerSource = function(VectorTileWorkerSource2) { + var GeoJSONWorkerSource = (function(VectorTileWorkerSource2) { function GeoJSONWorkerSource2(actor, layerIndex, availableImages, loadGeoJSON) { VectorTileWorkerSource2.call(this, actor, layerIndex, availableImages, loadGeoJSONTile); if (loadGeoJSON) { @@ -200919,7 +201062,7 @@ void main() { } }; return GeoJSONWorkerSource2; - }(VectorTileWorkerSource); + })(VectorTileWorkerSource); function getSuperclusterOptions(ref) { var superclusterOptions = ref.superclusterOptions; var clusterProperties = ref.clusterProperties; @@ -201456,7 +201599,7 @@ void main() { return false; } var padding = 1; - var ImageManager = function(Evented) { + var ImageManager = (function(Evented) { function ImageManager2() { Evented.call(this); this.images = {}; @@ -201759,7 +201902,7 @@ void main() { } }; return ImageManager2; - }(performance2.Evented); + })(performance2.Evented); function loadGlyphRange(fontstack, range, urlTemplate, requestManager, callback) { var begin = range * 256; var end = begin + 255; @@ -202036,7 +202179,7 @@ void main() { "intensity": new performance2.DataConstantProperty(performance2.styleSpec.light.intensity) }); var TRANSITION_SUFFIX = "-transition"; - var Light = function(Evented) { + var Light = (function(Evented) { function Light2(lightOptions) { Evented.call(this); this._transitionable = new performance2.Transitionable(properties); @@ -202088,7 +202231,7 @@ void main() { }))); }; return Light2; - }(performance2.Evented); + })(performance2.Evented); var LineAtlas = function LineAtlas2(width, height) { this.width = width; this.height = height; @@ -202333,7 +202476,7 @@ void main() { var hit = tileID.x >= level.minX && tileID.x < level.maxX && tileID.y >= level.minY && tileID.y < level.maxY; return hit; }; - var VectorTileSource = function(Evented) { + var VectorTileSource = (function(Evented) { function VectorTileSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -202506,8 +202649,8 @@ void main() { return false; }; return VectorTileSource2; - }(performance2.Evented); - var RasterTileSource = function(Evented) { + })(performance2.Evented); + var RasterTileSource = (function(Evented) { function RasterTileSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -202629,8 +202772,8 @@ void main() { return false; }; return RasterTileSource2; - }(performance2.Evented); - var RasterDEMTileSource = function(RasterTileSource2) { + })(performance2.Evented); + var RasterDEMTileSource = (function(RasterTileSource2) { function RasterDEMTileSource2(id, options, dispatcher, eventedParent) { RasterTileSource2.call(this, id, options, dispatcher, eventedParent); this.type = "raster-dem"; @@ -202741,8 +202884,8 @@ void main() { } }; return RasterDEMTileSource2; - }(RasterTileSource); - var GeoJSONSource = function(Evented) { + })(RasterTileSource); + var GeoJSONSource = (function(Evented) { function GeoJSONSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -202952,7 +203095,7 @@ void main() { return false; }; return GeoJSONSource2; - }(performance2.Evented); + })(performance2.Evented); var rasterBoundsAttributes = performance2.createLayout([ { name: "a_pos", @@ -202965,7 +203108,7 @@ void main() { components: 2 } ]); - var ImageSource = function(Evented) { + var ImageSource = (function(Evented) { function ImageSource2(id, options, dispatcher, eventedParent) { Evented.call(this); this.id = id; @@ -203101,7 +203244,7 @@ void main() { return false; }; return ImageSource2; - }(performance2.Evented); + })(performance2.Evented); function getCoordinatesCenterTileID(coords) { var minX = Infinity; var minY = Infinity; @@ -203121,7 +203264,7 @@ void main() { var tilesAtZoom = Math.pow(2, zoom); return new performance2.CanonicalTileID(zoom, Math.floor((minX + maxX) / 2 * tilesAtZoom), Math.floor((minY + maxY) / 2 * tilesAtZoom)); } - var VideoSource = function(ImageSource2) { + var VideoSource = (function(ImageSource2) { function VideoSource2(id, options, dispatcher, eventedParent) { ImageSource2.call(this, id, options, dispatcher, eventedParent); this.roundZoom = true; @@ -203230,8 +203373,8 @@ void main() { return this.video && !this.video.paused; }; return VideoSource2; - }(ImageSource); - var CanvasSource = function(ImageSource2) { + })(ImageSource); + var CanvasSource = (function(ImageSource2) { function CanvasSource2(id, options, dispatcher, eventedParent) { ImageSource2.call(this, id, options, dispatcher, eventedParent); if (!options.coordinates) { @@ -203355,7 +203498,7 @@ void main() { return false; }; return CanvasSource2; - }(ImageSource); + })(ImageSource); var sourceTypes = { vector: VectorTileSource, raster: RasterTileSource, @@ -203758,7 +203901,7 @@ void main() { BaseValue.prototype.setDefault = function setDefault() { this.set(this.default); }; - var ClearColor = function(BaseValue2) { + var ClearColor = (function(BaseValue2) { function ClearColor2() { BaseValue2.apply(this, arguments); } @@ -203779,8 +203922,8 @@ void main() { this.dirty = false; }; return ClearColor2; - }(BaseValue); - var ClearDepth = function(BaseValue2) { + })(BaseValue); + var ClearDepth = (function(BaseValue2) { function ClearDepth2() { BaseValue2.apply(this, arguments); } @@ -203800,8 +203943,8 @@ void main() { this.dirty = false; }; return ClearDepth2; - }(BaseValue); - var ClearStencil = function(BaseValue2) { + })(BaseValue); + var ClearStencil = (function(BaseValue2) { function ClearStencil2() { BaseValue2.apply(this, arguments); } @@ -203821,8 +203964,8 @@ void main() { this.dirty = false; }; return ClearStencil2; - }(BaseValue); - var ColorMask = function(BaseValue2) { + })(BaseValue); + var ColorMask = (function(BaseValue2) { function ColorMask2() { BaseValue2.apply(this, arguments); } @@ -203848,8 +203991,8 @@ void main() { this.dirty = false; }; return ColorMask2; - }(BaseValue); - var DepthMask = function(BaseValue2) { + })(BaseValue); + var DepthMask = (function(BaseValue2) { function DepthMask2() { BaseValue2.apply(this, arguments); } @@ -203869,8 +204012,8 @@ void main() { this.dirty = false; }; return DepthMask2; - }(BaseValue); - var StencilMask = function(BaseValue2) { + })(BaseValue); + var StencilMask = (function(BaseValue2) { function StencilMask2() { BaseValue2.apply(this, arguments); } @@ -203890,8 +204033,8 @@ void main() { this.dirty = false; }; return StencilMask2; - }(BaseValue); - var StencilFunc = function(BaseValue2) { + })(BaseValue); + var StencilFunc = (function(BaseValue2) { function StencilFunc2() { BaseValue2.apply(this, arguments); } @@ -203916,8 +204059,8 @@ void main() { this.dirty = false; }; return StencilFunc2; - }(BaseValue); - var StencilOp = function(BaseValue2) { + })(BaseValue); + var StencilOp = (function(BaseValue2) { function StencilOp2() { BaseValue2.apply(this, arguments); } @@ -203943,8 +204086,8 @@ void main() { this.dirty = false; }; return StencilOp2; - }(BaseValue); - var StencilTest = function(BaseValue2) { + })(BaseValue); + var StencilTest = (function(BaseValue2) { function StencilTest2() { BaseValue2.apply(this, arguments); } @@ -203969,8 +204112,8 @@ void main() { this.dirty = false; }; return StencilTest2; - }(BaseValue); - var DepthRange = function(BaseValue2) { + })(BaseValue); + var DepthRange = (function(BaseValue2) { function DepthRange2() { BaseValue2.apply(this, arguments); } @@ -203994,8 +204137,8 @@ void main() { this.dirty = false; }; return DepthRange2; - }(BaseValue); - var DepthTest = function(BaseValue2) { + })(BaseValue); + var DepthTest = (function(BaseValue2) { function DepthTest2() { BaseValue2.apply(this, arguments); } @@ -204020,8 +204163,8 @@ void main() { this.dirty = false; }; return DepthTest2; - }(BaseValue); - var DepthFunc = function(BaseValue2) { + })(BaseValue); + var DepthFunc = (function(BaseValue2) { function DepthFunc2() { BaseValue2.apply(this, arguments); } @@ -204041,8 +204184,8 @@ void main() { this.dirty = false; }; return DepthFunc2; - }(BaseValue); - var Blend = function(BaseValue2) { + })(BaseValue); + var Blend = (function(BaseValue2) { function Blend2() { BaseValue2.apply(this, arguments); } @@ -204067,8 +204210,8 @@ void main() { this.dirty = false; }; return Blend2; - }(BaseValue); - var BlendFunc = function(BaseValue2) { + })(BaseValue); + var BlendFunc = (function(BaseValue2) { function BlendFunc2() { BaseValue2.apply(this, arguments); } @@ -204093,8 +204236,8 @@ void main() { this.dirty = false; }; return BlendFunc2; - }(BaseValue); - var BlendColor = function(BaseValue2) { + })(BaseValue); + var BlendColor = (function(BaseValue2) { function BlendColor2() { BaseValue2.apply(this, arguments); } @@ -204115,8 +204258,8 @@ void main() { this.dirty = false; }; return BlendColor2; - }(BaseValue); - var BlendEquation = function(BaseValue2) { + })(BaseValue); + var BlendEquation = (function(BaseValue2) { function BlendEquation2() { BaseValue2.apply(this, arguments); } @@ -204136,8 +204279,8 @@ void main() { this.dirty = false; }; return BlendEquation2; - }(BaseValue); - var CullFace = function(BaseValue2) { + })(BaseValue); + var CullFace = (function(BaseValue2) { function CullFace2() { BaseValue2.apply(this, arguments); } @@ -204162,8 +204305,8 @@ void main() { this.dirty = false; }; return CullFace2; - }(BaseValue); - var CullFaceSide = function(BaseValue2) { + })(BaseValue); + var CullFaceSide = (function(BaseValue2) { function CullFaceSide2() { BaseValue2.apply(this, arguments); } @@ -204183,8 +204326,8 @@ void main() { this.dirty = false; }; return CullFaceSide2; - }(BaseValue); - var FrontFace = function(BaseValue2) { + })(BaseValue); + var FrontFace = (function(BaseValue2) { function FrontFace2() { BaseValue2.apply(this, arguments); } @@ -204204,8 +204347,8 @@ void main() { this.dirty = false; }; return FrontFace2; - }(BaseValue); - var Program = function(BaseValue2) { + })(BaseValue); + var Program = (function(BaseValue2) { function Program2() { BaseValue2.apply(this, arguments); } @@ -204225,8 +204368,8 @@ void main() { this.dirty = false; }; return Program2; - }(BaseValue); - var ActiveTextureUnit = function(BaseValue2) { + })(BaseValue); + var ActiveTextureUnit = (function(BaseValue2) { function ActiveTextureUnit2() { BaseValue2.apply(this, arguments); } @@ -204246,8 +204389,8 @@ void main() { this.dirty = false; }; return ActiveTextureUnit2; - }(BaseValue); - var Viewport = function(BaseValue2) { + })(BaseValue); + var Viewport = (function(BaseValue2) { function Viewport2() { BaseValue2.apply(this, arguments); } @@ -204274,8 +204417,8 @@ void main() { this.dirty = false; }; return Viewport2; - }(BaseValue); - var BindFramebuffer = function(BaseValue2) { + })(BaseValue); + var BindFramebuffer = (function(BaseValue2) { function BindFramebuffer2() { BaseValue2.apply(this, arguments); } @@ -204296,8 +204439,8 @@ void main() { this.dirty = false; }; return BindFramebuffer2; - }(BaseValue); - var BindRenderbuffer = function(BaseValue2) { + })(BaseValue); + var BindRenderbuffer = (function(BaseValue2) { function BindRenderbuffer2() { BaseValue2.apply(this, arguments); } @@ -204318,8 +204461,8 @@ void main() { this.dirty = false; }; return BindRenderbuffer2; - }(BaseValue); - var BindTexture = function(BaseValue2) { + })(BaseValue); + var BindTexture = (function(BaseValue2) { function BindTexture2() { BaseValue2.apply(this, arguments); } @@ -204340,8 +204483,8 @@ void main() { this.dirty = false; }; return BindTexture2; - }(BaseValue); - var BindVertexBuffer = function(BaseValue2) { + })(BaseValue); + var BindVertexBuffer = (function(BaseValue2) { function BindVertexBuffer2() { BaseValue2.apply(this, arguments); } @@ -204362,8 +204505,8 @@ void main() { this.dirty = false; }; return BindVertexBuffer2; - }(BaseValue); - var BindElementBuffer = function(BaseValue2) { + })(BaseValue); + var BindElementBuffer = (function(BaseValue2) { function BindElementBuffer2() { BaseValue2.apply(this, arguments); } @@ -204381,8 +204524,8 @@ void main() { this.dirty = false; }; return BindElementBuffer2; - }(BaseValue); - var BindVertexArrayOES = function(BaseValue2) { + })(BaseValue); + var BindVertexArrayOES = (function(BaseValue2) { function BindVertexArrayOES2(context) { BaseValue2.call(this, context); this.vao = context.extVertexArrayObject; @@ -204403,8 +204546,8 @@ void main() { this.dirty = false; }; return BindVertexArrayOES2; - }(BaseValue); - var PixelStoreUnpack = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpack = (function(BaseValue2) { function PixelStoreUnpack2() { BaseValue2.apply(this, arguments); } @@ -204425,8 +204568,8 @@ void main() { this.dirty = false; }; return PixelStoreUnpack2; - }(BaseValue); - var PixelStoreUnpackPremultiplyAlpha = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpackPremultiplyAlpha = (function(BaseValue2) { function PixelStoreUnpackPremultiplyAlpha2() { BaseValue2.apply(this, arguments); } @@ -204447,8 +204590,8 @@ void main() { this.dirty = false; }; return PixelStoreUnpackPremultiplyAlpha2; - }(BaseValue); - var PixelStoreUnpackFlipY = function(BaseValue2) { + })(BaseValue); + var PixelStoreUnpackFlipY = (function(BaseValue2) { function PixelStoreUnpackFlipY2() { BaseValue2.apply(this, arguments); } @@ -204469,8 +204612,8 @@ void main() { this.dirty = false; }; return PixelStoreUnpackFlipY2; - }(BaseValue); - var FramebufferAttachment = function(BaseValue2) { + })(BaseValue); + var FramebufferAttachment = (function(BaseValue2) { function FramebufferAttachment2(context, parent) { BaseValue2.call(this, context); this.context = context; @@ -204484,8 +204627,8 @@ void main() { return null; }; return FramebufferAttachment2; - }(BaseValue); - var ColorAttachment = function(FramebufferAttachment2) { + })(BaseValue); + var ColorAttachment = (function(FramebufferAttachment2) { function ColorAttachment2() { FramebufferAttachment2.apply(this, arguments); } @@ -204507,8 +204650,8 @@ void main() { this.dirty = false; }; return ColorAttachment2; - }(FramebufferAttachment); - var DepthAttachment = function(FramebufferAttachment2) { + })(FramebufferAttachment); + var DepthAttachment = (function(FramebufferAttachment2) { function DepthAttachment2() { FramebufferAttachment2.apply(this, arguments); } @@ -204527,7 +204670,7 @@ void main() { this.dirty = false; }; return DepthAttachment2; - }(FramebufferAttachment); + })(FramebufferAttachment); var Framebuffer = function Framebuffer2(context, width, height, hasDepth) { this.context = context; this.width = width; @@ -204825,7 +204968,7 @@ void main() { this.bindVertexArrayOES.set(null); } }; - var SourceCache = function(Evented) { + var SourceCache = (function(Evented) { function SourceCache2(id, options, dispatcher) { var this$1 = this; Evented.call(this); @@ -205511,7 +205654,7 @@ void main() { }); }; return SourceCache2; - }(performance2.Evented); + })(performance2.Evented); SourceCache.maxOverzooming = 10; SourceCache.maxUnderzooming = 3; function compareTileId(a, b) { @@ -207830,7 +207973,7 @@ void main() { "setPitch" ]); var empty = emptyStyle(); - var Style = function(Evented) { + var Style = (function(Evented) { function Style2(map, options) { var this$1 = this; if (options === void 0) @@ -208801,7 +208944,7 @@ void main() { return performance2.makeRequest(params, callback); }; return Style2; - }(performance2.Evented); + })(performance2.Evented); Style.getSourceType = getType; Style.setSourceType = setType; Style.registerForPluginStateChange = performance2.registerForPluginStateChange; @@ -212509,7 +212652,7 @@ void main() { amount: speed * (duration / 2) }; } - var MapMouseEvent = function(Event) { + var MapMouseEvent = (function(Event) { function MapMouseEvent2(type, map, originalEvent, data) { if (data === void 0) data = {}; @@ -212536,8 +212679,8 @@ void main() { }; Object.defineProperties(MapMouseEvent2.prototype, prototypeAccessors2); return MapMouseEvent2; - }(performance2.Event); - var MapTouchEvent = function(Event) { + })(performance2.Event); + var MapTouchEvent = (function(Event) { function MapTouchEvent2(type, map, originalEvent) { var touches = type === "touchend" ? originalEvent.changedTouches : originalEvent.touches; var points = DOM.touchPos(map.getCanvasContainer(), touches); @@ -212570,8 +212713,8 @@ void main() { }; Object.defineProperties(MapTouchEvent2.prototype, prototypeAccessors$1); return MapTouchEvent2; - }(performance2.Event); - var MapWheelEvent = function(Event) { + })(performance2.Event); + var MapWheelEvent = (function(Event) { function MapWheelEvent2(type, map, originalEvent) { Event.call(this, type, { originalEvent }); this._defaultPrevented = false; @@ -212589,7 +212732,7 @@ void main() { }; Object.defineProperties(MapWheelEvent2.prototype, prototypeAccessors$2); return MapWheelEvent2; - }(performance2.Event); + })(performance2.Event); var MapEventHandler = function MapEventHandler2(map, options) { this._map = map; this._clickTolerance = options.clickTolerance; @@ -213047,7 +213190,7 @@ void main() { MouseHandler.prototype.isActive = function isActive() { return this._active; }; - var MousePanHandler = function(MouseHandler2) { + var MousePanHandler = (function(MouseHandler2) { function MousePanHandler2() { MouseHandler2.apply(this, arguments); } @@ -213071,8 +213214,8 @@ void main() { }; }; return MousePanHandler2; - }(MouseHandler); - var MouseRotateHandler = function(MouseHandler2) { + })(MouseHandler); + var MouseRotateHandler = (function(MouseHandler2) { function MouseRotateHandler2() { MouseHandler2.apply(this, arguments); } @@ -213095,8 +213238,8 @@ void main() { e.preventDefault(); }; return MouseRotateHandler2; - }(MouseHandler); - var MousePitchHandler = function(MouseHandler2) { + })(MouseHandler); + var MousePitchHandler = (function(MouseHandler2) { function MousePitchHandler2() { MouseHandler2.apply(this, arguments); } @@ -213119,7 +213262,7 @@ void main() { e.preventDefault(); }; return MousePitchHandler2; - }(MouseHandler); + })(MouseHandler); var TouchPanHandler = function TouchPanHandler2(options) { this._minTouches = 1; this._clickTolerance = options.clickTolerance || 1; @@ -213284,7 +213427,7 @@ void main() { function getZoomDelta(distance, lastDistance) { return Math.log(distance / lastDistance) / Math.LN2; } - var TouchZoomHandler = function(TwoTouchHandler2) { + var TouchZoomHandler = (function(TwoTouchHandler2) { function TouchZoomHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -213313,12 +213456,12 @@ void main() { }; }; return TouchZoomHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); var ROTATION_THRESHOLD = 25; function getBearingDelta(a, b) { return a.angleWith(b) * 180 / Math.PI; } - var TouchRotateHandler = function(TwoTouchHandler2) { + var TouchRotateHandler = (function(TwoTouchHandler2) { function TouchRotateHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -213356,12 +213499,12 @@ void main() { return Math.abs(bearingDeltaSinceStart) < threshold; }; return TouchRotateHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); function isVertical(vector) { return Math.abs(vector.y) > Math.abs(vector.x); } var ALLOWED_SINGLE_TOUCH_TIME = 100; - var TouchPitchHandler = function(TwoTouchHandler2) { + var TouchPitchHandler = (function(TwoTouchHandler2) { function TouchPitchHandler2() { TwoTouchHandler2.apply(this, arguments); } @@ -213418,7 +213561,7 @@ void main() { return isVertical(vectorA) && isVertical(vectorB) && isSameDirection; }; return TouchPitchHandler2; - }(TwoTouchHandler); + })(TwoTouchHandler); var defaultOptions = { panStep: 100, bearingStep: 15, @@ -213924,7 +214067,7 @@ void main() { var isMoving = function(p) { return p.zoom || p.drag || p.pitch || p.rotate; }; - var RenderFrameEvent = function(Event) { + var RenderFrameEvent = (function(Event) { function RenderFrameEvent2() { Event.apply(this, arguments); } @@ -213933,7 +214076,7 @@ void main() { RenderFrameEvent2.prototype = Object.create(Event && Event.prototype); RenderFrameEvent2.prototype.constructor = RenderFrameEvent2; return RenderFrameEvent2; - }(performance2.Event); + })(performance2.Event); function hasChange(result) { return result.panDelta && result.panDelta.mag() || result.zoomDelta || result.bearingDelta || result.pitchDelta; } @@ -214423,7 +214566,7 @@ void main() { this._frameId = this._requestFrame(); } }; - var Camera = function(Evented) { + var Camera = (function(Evented) { function Camera2(transform, options) { Evented.call(this); this._moving = false; @@ -214918,7 +215061,7 @@ void main() { center.lng += delta > 180 ? -360 : delta < -180 ? 360 : 0; }; return Camera2; - }(performance2.Evented); + })(performance2.Evented); var AttributionControl = function AttributionControl2(options) { if (options === void 0) options = {}; @@ -215250,7 +215393,7 @@ void main() { fadeDuration: 300, crossSourceCollisions: true }; - var Map2 = function(Camera2) { + var Map2 = (function(Camera2) { function Map3(options) { var this$1 = this; options = performance2.extend({}, defaultOptions$1, options); @@ -216288,7 +216431,7 @@ void main() { }; Object.defineProperties(Map3.prototype, prototypeAccessors2); return Map3; - }(Camera); + })(Camera); function removeNode(node) { if (node.parentNode) { node.parentNode.removeChild(node); @@ -216555,7 +216698,7 @@ void main() { } classList.add("mapboxgl-" + prefix + "-anchor-" + anchor); } - var Marker = function(Evented) { + var Marker = (function(Evented) { function Marker2(options, legacyOptions) { Evented.call(this); if (options instanceof performance2.window.HTMLElement || legacyOptions) { @@ -216957,7 +217100,7 @@ void main() { return this._pitchAlignment; }; return Marker2; - }(performance2.Evented); + })(performance2.Evented); var defaultOptions$3 = { positionOptions: { enableHighAccuracy: false, @@ -216985,7 +217128,7 @@ void main() { } var numberOfWatches = 0; var noTimeout = false; - var GeolocateControl = function(Evented) { + var GeolocateControl = (function(Evented) { function GeolocateControl2(options) { Evented.call(this); this.options = performance2.extend({}, defaultOptions$3, options); @@ -217312,7 +217455,7 @@ void main() { } }; return GeolocateControl2; - }(performance2.Evented); + })(performance2.Evented); var defaultOptions$4 = { maxWidth: 100, unit: "metric" @@ -217501,7 +217644,7 @@ void main() { "select:not([disabled])", "textarea:not([disabled])" ].join(", "); - var Popup = function(Evented) { + var Popup = (function(Evented) { function Popup2(options) { Evented.call(this); this.options = performance2.extend(Object.create(defaultOptions$5), options); @@ -217754,7 +217897,7 @@ void main() { this.remove(); }; return Popup2; - }(performance2.Evented); + })(performance2.Evented); function normalizeOffset(offset) { if (!offset) { return normalizeOffset(new performance2.Point(0, 0)); @@ -217879,7 +218022,7 @@ void main() { return exported; }); return mapboxgl; - }); + })); } }); @@ -223208,7 +223351,7 @@ void main() { "node_modules/maplibre-gl/dist/maplibre-gl.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && false ? define(factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, global2.maplibregl = factory()); - })(exports, function() { + })(exports, (function() { "use strict"; var maplibregl = {}; var modules = {}; @@ -223227,10 +223370,10 @@ void main() { return maplibregl; } ; - define2("shared", ["exports"], function(t) { + define2("shared", ["exports"], (function(t) { "use strict"; function e(t4, e2, r2, n2) { - return new (r2 || (r2 = Promise))(function(i2, s2) { + return new (r2 || (r2 = Promise))((function(i2, s2) { function a2(t5) { try { l2(n2.next(t5)); @@ -223247,12 +223390,12 @@ void main() { } function l2(t5) { var e3; - t5.done ? i2(t5.value) : (e3 = t5.value, e3 instanceof r2 ? e3 : new r2(function(t6) { + t5.done ? i2(t5.value) : (e3 = t5.value, e3 instanceof r2 ? e3 : new r2((function(t6) { t6(e3); - })).then(a2, o2); + }))).then(a2, o2); } l2((n2 = n2.apply(t4, e2 || [])).next()); - }); + })); } function r(t4) { return t4 && t4.__esModule && Object.prototype.hasOwnProperty.call(t4, "default") ? t4.default : t4; @@ -223430,17 +223573,17 @@ void main() { } const z = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="; function P(t4, r2, n2, i2, s2) { - return e(this, void 0, void 0, function* () { + return e(this, void 0, void 0, (function* () { if ("undefined" == typeof VideoFrame) throw new Error("VideoFrame not supported"); const e2 = new VideoFrame(t4, { timestamp: 0 }); try { const a2 = null == e2 ? void 0 : e2.format; if (!a2 || !a2.startsWith("BGR") && !a2.startsWith("RGB")) throw new Error(`Unrecognized format ${a2}`); const o2 = a2.startsWith("BGR"), l2 = new Uint8ClampedArray(i2 * s2 * 4); - if (yield e2.copyTo(l2, function(t5, e3, r3, n3, i3) { + if (yield e2.copyTo(l2, (function(t5, e3, r3, n3, i3) { const s3 = 4 * Math.max(-e3, 0), a3 = (Math.max(0, r3) - r3) * n3 * 4 + s3, o3 = 4 * n3, l3 = Math.max(0, e3), u2 = Math.max(0, r3); return { rect: { x: l3, y: u2, width: Math.min(t5.width, e3 + n3) - l3, height: Math.min(t5.height, r3 + i3) - u2 }, layout: [{ offset: a3, stride: o3 }] }; - }(t4, r2, n2, i2, s2)), o2) for (let t5 = 0; t5 < l2.length; t5 += 4) { + })(t4, r2, n2, i2, s2)), o2) for (let t5 = 0; t5 < l2.length; t5 += 4) { const e3 = l2[t5]; l2[t5] = l2[t5 + 2], l2[t5 + 2] = e3; } @@ -223448,7 +223591,7 @@ void main() { } finally { e2.close(); } - }); + })); } let C2, B2; const V = "AbortError"; @@ -223472,8 +223615,8 @@ void main() { if (k(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: t4, targetMapId: $ }, r2); } if (!(/^file:/.test(n2 = t4.url) || /^file:/.test(D2()) && !/^\w+:/.test(n2))) { - if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return function(t5, r3) { - return e(this, void 0, void 0, function* () { + if (fetch && Request && AbortController && Object.prototype.hasOwnProperty.call(Request.prototype, "signal")) return (function(t5, r3) { + return e(this, void 0, void 0, (function* () { const e2 = new Request(t5.url, { method: t5.method || "GET", body: t5.body, credentials: t5.credentials, headers: t5.headers, cache: t5.cache, referrer: D2(), signal: r3.signal }); "json" !== t5.type || e2.headers.has("Accept") || e2.headers.set("Accept", "application/json"); const n3 = yield fetch(e2); @@ -223486,13 +223629,13 @@ void main() { const s2 = yield i2; if (r3.signal.aborted) throw E2(); return { data: s2, cacheControl: n3.headers.get("Cache-Control"), expires: n3.headers.get("Expires") }; - }); - }(t4, r2); + })); + })(t4, r2); if (k(self) && self.worker && self.worker.actor) return self.worker.actor.sendAsync({ type: "GR", data: t4, mustQueue: true, targetMapId: $ }, r2); } var n2; - return function(t5, e2) { - return new Promise((r3, n3) => { + return (function(t5, e2) { + return new Promise(((r3, n3) => { var i2; const s2 = new XMLHttpRequest(); s2.open(t5.method || "GET", t5.url, true), "arrayBuffer" !== t5.type && "image" !== t5.type || (s2.responseType = "arraybuffer"); @@ -223512,11 +223655,11 @@ void main() { const e3 = new Blob([s2.response], { type: s2.getResponseHeader("Content-Type") }); n3(new L(s2.status, s2.statusText, t5.url, e3)); } - }, e2.signal.addEventListener("abort", () => { + }, e2.signal.addEventListener("abort", (() => { s2.abort(), n3(E2()); - }), s2.send(t5.body); - }); - }(t4, r2); + })), s2.send(t5.body); + })); + })(t4, r2); }; function j(t4) { if (!t4 || t4.indexOf("://") <= 0 || 0 === t4.indexOf("data:image/") || 0 === t4.indexOf("blob:")) return true; @@ -223550,7 +223693,7 @@ void main() { return U(t4, e2, this._listeners), U(t4, e2, this._oneTimeListeners), this; } once(t4, e2) { - return e2 ? (this._oneTimeListeners = this._oneTimeListeners || {}, R(t4, e2, this._oneTimeListeners), this) : new Promise((e3) => this.once(t4, e3)); + return e2 ? (this._oneTimeListeners = this._oneTimeListeners || {}, R(t4, e2, this._oneTimeListeners), this) : new Promise(((e3) => this.once(t4, e3))); } fire(t4, e2) { "string" == typeof t4 && (t4 = new q(t4, e2 || {})); @@ -223578,9 +223721,9 @@ void main() { function X(t4, e2) { const r2 = {}; for (const e3 in t4) "ref" !== e3 && (r2[e3] = t4[e3]); - return K2.forEach((t5) => { + return K2.forEach(((t5) => { t5 in e2 && (r2[t5] = e2[t5]); - }), r2; + })), r2; } function H(t4, e2) { if (Array.isArray(t4)) { @@ -223681,10 +223824,10 @@ void main() { return `Expected ${wt(t4)} but found ${wt(e2)} instead.`; } function St(t4, e2) { - return e2.some((e3) => e3.kind === t4.kind); + return e2.some(((e3) => e3.kind === t4.kind)); } function kt(t4, e2) { - return e2.some((e3) => "null" === e3 ? null === t4 : "array" === e3 ? Array.isArray(t4) : "object" === e3 ? t4 && !Array.isArray(t4) && "object" == typeof t4 : e3 === typeof t4); + return e2.some(((e3) => "null" === e3 ? null === t4 : "array" === e3 ? Array.isArray(t4) : "object" === e3 ? t4 && !Array.isArray(t4) && "object" == typeof t4 : e3 === typeof t4)); } function Mt(t4, e2) { return "array" === t4.kind && "array" === e2.kind ? t4.itemType.kind === e2.itemType.kind && "number" == typeof t4.N : t4.kind === e2.kind; @@ -223736,7 +223879,7 @@ void main() { static parse(t4) { if (t4 instanceof Kt) return t4; if ("string" != typeof t4) return; - const e2 = function(t5) { + const e2 = (function(t5) { if ("transparent" === (t5 = t5.toLowerCase().trim())) return [0, 0, 0, 0]; const e3 = Gt[t5]; if (e3) { @@ -223767,16 +223910,16 @@ void main() { const [t6, e4, n2, i2, s2, a2, o2, l2, u2] = r2, c2 = [n2 || " ", s2 || " ", o2].join(""); if (" " === c2 || " /" === c2 || ",," === c2 || ",,," === c2) { const t7 = [+e4, Nt(+i2, 0, 100), Nt(+a2, 0, 100), l2 ? qt(+l2, u2) : 1]; - if (Zt(t7)) return function([t8, e5, r3, n3]) { + if (Zt(t7)) return (function([t8, e5, r3, n3]) { function i3(n4) { const i4 = (n4 + t8 / 30) % 12, s3 = e5 * Math.min(r3, 1 - r3); return r3 - s3 * Math.max(-1, Math.min(i4 - 3, 9 - i4, 1)); } return t8 = Tt(t8), e5 /= 100, r3 /= 100, [i3(0), i3(8), i3(4), n3]; - }(t7); + })(t7); } } - }(t4); + })(t4); return e2 ? new Kt(...e2, false) : void 0; } get rgb() { @@ -223784,10 +223927,10 @@ void main() { return this.overwriteGetter("rgb", [t4 / i2, e2 / i2, r2 / i2, n2]); } get hcl() { - return this.overwriteGetter("hcl", function(t4) { + return this.overwriteGetter("hcl", (function(t4) { const [e2, r2, n2, i2] = $t(t4), s2 = Math.sqrt(r2 * r2 + n2 * n2); return [Math.round(1e4 * s2) ? Tt(Math.atan2(n2, r2) * Ft) : NaN, s2, e2, i2]; - }(this.rgb)); + })(this.rgb)); } get lab() { return this.overwriteGetter("lab", $t(this.rgb)); @@ -223797,7 +223940,7 @@ void main() { } toString() { const [t4, e2, r2, n2] = this.rgb; - return `rgba(${[t4, e2, r2].map((t5) => Math.round(255 * t5)).join(",")},${n2})`; + return `rgba(${[t4, e2, r2].map(((t5) => Math.round(255 * t5))).join(",")},${n2})`; } } Kt.black = new Kt(0, 0, 0, 1), Kt.white = new Kt(1, 1, 1, 1), Kt.transparent = new Kt(0, 0, 0, 0), Kt.red = new Kt(1, 0, 0, 1); @@ -223825,13 +223968,13 @@ void main() { return new Yt([new Ht(t4, null, null, null, null)]); } isEmpty() { - return 0 === this.sections.length || !this.sections.some((t4) => 0 !== t4.text.length || t4.image && 0 !== t4.image.name.length); + return 0 === this.sections.length || !this.sections.some(((t4) => 0 !== t4.text.length || t4.image && 0 !== t4.image.name.length)); } static factory(t4) { return t4 instanceof Yt ? t4 : Yt.fromString(t4); } toString() { - return 0 === this.sections.length ? "" : this.sections.map((t4) => t4.text).join(""); + return 0 === this.sections.length ? "" : this.sections.map(((t4) => t4.text)).join(""); } } class Jt { @@ -224011,7 +224154,7 @@ void main() { this.args.forEach(t4); } outputDefined() { - return this.args.every((t4) => t4.outputDefined()); + return this.args.every(((t4) => t4.outputDefined())); } } const ue = { "to-boolean": ht, "to-color": pt, "to-number": ut, "to-string": ct }; @@ -224086,7 +224229,7 @@ void main() { this.args.forEach(t4); } outputDefined() { - return this.args.every((t4) => t4.outputDefined()); + return this.args.every(((t4) => t4.outputDefined())); } } const he = ["Unknown", "Point", "LineString", "Polygon"]; @@ -224116,7 +224259,7 @@ void main() { } class fe { constructor(t4, e2, r2 = [], n2, i2 = new ot(), s2 = []) { - this.registry = t4, this.path = r2, this.key = r2.map((t5) => `[${t5}]`).join(""), this.scope = i2, this.errors = s2, this.expectedType = n2, this._isConstant = e2; + this.registry = t4, this.path = r2, this.key = r2.map(((t5) => `[${t5}]`)).join(""), this.scope = i2, this.errors = s2, this.expectedType = n2, this._isConstant = e2; } parse(t4, e2, r2, n2, i2 = {}) { return e2 ? this.concat(e2, r2, n2)._parse(t4, i2) : this._parse(t4, i2); @@ -224161,7 +224304,7 @@ void main() { return new fe(this.registry, this._isConstant, n2, e2 || null, i2, this.errors); } error(t4, ...e2) { - const r2 = `${this.key}${e2.map((t5) => `[${t5}]`).join("")}`; + const r2 = `${this.key}${e2.map(((t5) => `[${t5}]`)).join("")}`; this.errors.push(new at(r2, t4)); } checkSubtype(t4, e2) { @@ -224338,7 +224481,7 @@ void main() { t4(this.input), this.outputs.forEach(t4), t4(this.otherwise); } outputDefined() { - return this.outputs.every((t4) => t4.outputDefined()) && this.otherwise.outputDefined(); + return this.outputs.every(((t4) => t4.outputDefined())) && this.otherwise.outputDefined(); } } class be { @@ -224372,7 +224515,7 @@ void main() { t4(this.otherwise); } outputDefined() { - return this.branches.every(([t4, e2]) => e2.outputDefined()) && this.otherwise.outputDefined(); + return this.branches.every((([t4, e2]) => e2.outputDefined())) && this.otherwise.outputDefined(); } } class we { @@ -224452,7 +224595,7 @@ void main() { for (const e2 of this.outputs) t4(e2); } outputDefined() { - return this.outputs.every((t4) => t4.outputDefined()); + return this.outputs.every(((t4) => t4.outputDefined())); } } function Se(t4) { @@ -224489,7 +224632,7 @@ void main() { return t4 + r2 * (e2 - t4); } function Pe(t4, e2, r2) { - return t4.map((t5, n2) => ze(t5, e2[n2], r2)); + return t4.map(((t5, n2) => ze(t5, e2[n2], r2))); } const Ce = { number: ze, color: function(t4, e2, r2, n2 = "rgb") { switch (n2) { @@ -224505,9 +224648,9 @@ void main() { let t5 = o2 - n3; o2 > n3 && t5 > 180 ? t5 -= 360 : o2 < n3 && n3 - o2 > 180 && (t5 += 360), h2 = n3 + r2 * t5; } - const [f2, d2, y2, m2] = function([t5, e3, r3, n4]) { + const [f2, d2, y2, m2] = (function([t5, e3, r3, n4]) { return t5 = isNaN(t5) ? 0 : t5 * Et, Ot([r3, Math.cos(t5) * e3, Math.sin(t5) * e3, n4]); - }([h2, null != p2 ? p2 : ze(i2, l2, r2), ze(s2, u2, r2), ze(a2, c2, r2)]); + })([h2, null != p2 ? p2 : ze(i2, l2, r2), ze(s2, u2, r2), ze(a2, c2, r2)]); return new Kt(f2, d2, y2, m2, false); } case "lab": { @@ -224556,7 +224699,7 @@ void main() { if ("cubic-bezier" !== n2[0]) return e2.error(`Unknown interpolation type ${String(n2[0])}`, 1, 0); { const t5 = n2.slice(1); - if (4 !== t5.length || t5.some((t6) => "number" != typeof t6 || t6 < 0 || t6 > 1)) return e2.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.", 1); + if (4 !== t5.length || t5.some(((t6) => "number" != typeof t6 || t6 < 0 || t6 > 1))) return e2.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.", 1); n2 = { name: "cubic-bezier", controlPoints: t5 }; } } @@ -224598,7 +224741,7 @@ void main() { for (const e2 of this.outputs) t4(e2); } outputDefined() { - return this.outputs.every((t4) => t4.outputDefined()); + return this.outputs.every(((t4) => t4.outputDefined())); } } function Ve(t4, e2, r2, n2) { @@ -224621,7 +224764,7 @@ void main() { r2 = r2 || t5.type, i2.push(t5); } if (!r2) throw new Error("No output type"); - const s2 = n2 && i2.some((t5) => At(n2, t5.type)); + const s2 = n2 && i2.some(((t5) => At(n2, t5.type))); return new Ee(s2 ? dt : r2, i2); } evaluate(t4) { @@ -224633,7 +224776,7 @@ void main() { this.args.forEach(t4); } outputDefined() { - return this.args.every((t4) => t4.outputDefined()); + return this.args.every(((t4) => t4.outputDefined())); } } function Fe(t4, e2) { @@ -224686,29 +224829,29 @@ void main() { } }; } - const Le = $e("==", function(t4, e2, r2) { + const Le = $e("==", (function(t4, e2, r2) { return e2 === r2; - }, Te), De = $e("!=", function(t4, e2, r2) { + }), Te), De = $e("!=", (function(t4, e2, r2) { return e2 !== r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return !Te(0, e2, r2, n2); - }), Oe = $e("<", function(t4, e2, r2) { + })), Oe = $e("<", (function(t4, e2, r2) { return e2 < r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) < 0; - }), je = $e(">", function(t4, e2, r2) { + })), je = $e(">", (function(t4, e2, r2) { return e2 > r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) > 0; - }), Re = $e("<=", function(t4, e2, r2) { + })), Re = $e("<=", (function(t4, e2, r2) { return e2 <= r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) <= 0; - }), Ue = $e(">=", function(t4, e2, r2) { + })), Ue = $e(">=", (function(t4, e2, r2) { return e2 >= r2; - }, function(t4, e2, r2, n2) { + }), (function(t4, e2, r2, n2) { return n2.compare(e2, r2) >= 0; - }); + })); class qe { constructor(t4, e2, r2) { this.type = yt, this.locale = r2, this.caseSensitive = t4, this.diacriticSensitive = e2; @@ -224796,10 +224939,10 @@ void main() { return new Ze(n2); } evaluate(t4) { - return new Yt(this.sections.map((e2) => { + return new Yt(this.sections.map(((e2) => { const r2 = e2.content.evaluate(t4); return ne(r2) === xt ? new Ht("", r2, null, null, null) : new Ht(ie(r2), null, e2.scale ? e2.scale.evaluate(t4) : null, e2.font ? e2.font.evaluate(t4).join(",") : null, e2.textColor ? e2.textColor.evaluate(t4) : null); - })); + }))); } eachChild(t4) { for (const e2 of this.sections) t4(e2.content), e2.scale && t4(e2.scale), e2.font && t4(e2.font), e2.textColor && t4(e2.textColor); @@ -224981,7 +225124,7 @@ void main() { } evaluate(t4) { if (null != t4.geometry() && null != t4.canonicalID()) { - if ("Point" === t4.geometryType()) return function(t5, e2) { + if ("Point" === t4.geometryType()) return (function(t5, e2) { const r2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], i2 = t5.canonicalID(); if ("Polygon" === e2.type) { const s2 = or(e2.coordinates, n2, i2), a2 = cr(t5.geometry(), r2, n2, i2); @@ -224994,8 +225137,8 @@ void main() { for (const t6 of a2) if (!nr(t6, s2)) return false; } return true; - }(t4, this.geometries); - if ("LineString" === t4.geometryType()) return function(t5, e2) { + })(t4, this.geometries); + if ("LineString" === t4.geometryType()) return (function(t5, e2) { const r2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], n2 = [1 / 0, 1 / 0, -1 / 0, -1 / 0], i2 = t5.canonicalID(); if ("Polygon" === e2.type) { const s2 = or(e2.coordinates, n2, i2), a2 = hr(t5.geometry(), r2, n2, i2); @@ -225008,7 +225151,7 @@ void main() { for (const t6 of a2) if (!sr(t6, s2)) return false; } return true; - }(t4, this.geometries); + })(t4, this.geometries); } return false; } @@ -225019,7 +225162,7 @@ void main() { } } let fr = class { - constructor(t4 = [], e2 = (t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0) { + constructor(t4 = [], e2 = ((t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0)) { if (this.data = t4, this.length = this.data.length, this.compare = e2, this.length > 0) for (let t5 = (this.length >> 1) - 1; t5 >= 0; t5--) this._down(t5); } push(t4) { @@ -225297,7 +225440,7 @@ void main() { return a2; } function Zr(t4) { - return "MultiPolygon" === t4.type ? t4.coordinates.map((t5) => ({ type: "Polygon", coordinates: t5 })) : "MultiLineString" === t4.type ? t4.coordinates.map((t5) => ({ type: "LineString", coordinates: t5 })) : "MultiPoint" === t4.type ? t4.coordinates.map((t5) => ({ type: "Point", coordinates: t5 })) : [t4]; + return "MultiPolygon" === t4.type ? t4.coordinates.map(((t5) => ({ type: "Polygon", coordinates: t5 }))) : "MultiLineString" === t4.type ? t4.coordinates.map(((t5) => ({ type: "LineString", coordinates: t5 }))) : "MultiPoint" === t4.type ? t4.coordinates.map(((t5) => ({ type: "Point", coordinates: t5 }))) : [t4]; } class Gr { constructor(t4, e2) { @@ -225307,7 +225450,7 @@ void main() { if (2 !== t4.length) return e2.error(`'distance' expression requires exactly one argument, but found ${t4.length - 1} instead.`); if (re(t4[1])) { const e3 = t4[1]; - if ("FeatureCollection" === e3.type) return new Gr(e3, e3.features.map((t5) => Zr(t5.geometry)).flat()); + if ("FeatureCollection" === e3.type) return new Gr(e3, e3.features.map(((t5) => Zr(t5.geometry))).flat()); if ("Feature" === e3.type) return new Gr(e3, Zr(e3.geometry)); if ("type" in e3 && "coordinates" in e3) return new Gr(e3, Zr(e3)); } @@ -225315,8 +225458,8 @@ void main() { } evaluate(t4) { if (null != t4.geometry() && null != t4.canonicalID()) { - if ("Point" === t4.geometryType()) return function(t5, e2) { - const r2 = t5.geometry(), n2 = r2.flat().map((e3) => Ye([e3.x, e3.y], t5.canonical)); + if ("Point" === t4.geometryType()) return (function(t5, e2) { + const r2 = t5.geometry(), n2 = r2.flat().map(((e3) => Ye([e3.x, e3.y], t5.canonical))); if (0 === r2.length) return NaN; const i2 = new Sr(n2[0][1]); let s2 = 1 / 0; @@ -225334,9 +225477,9 @@ void main() { if (0 === s2) return s2; } return s2; - }(t4, this.geometries); - if ("LineString" === t4.geometryType()) return function(t5, e2) { - const r2 = t5.geometry(), n2 = r2.flat().map((e3) => Ye([e3.x, e3.y], t5.canonical)); + })(t4, this.geometries); + if ("LineString" === t4.geometryType()) return (function(t5, e2) { + const r2 = t5.geometry(), n2 = r2.flat().map(((e3) => Ye([e3.x, e3.y], t5.canonical))); if (0 === r2.length) return NaN; const i2 = new Sr(n2[0][1]); let s2 = 1 / 0; @@ -225354,11 +225497,11 @@ void main() { if (0 === s2) return s2; } return s2; - }(t4, this.geometries); - if ("Polygon" === t4.geometryType()) return function(t5, e2) { + })(t4, this.geometries); + if ("Polygon" === t4.geometryType()) return (function(t5, e2) { const r2 = t5.geometry(); if (0 === r2.length || 0 === r2[0].length) return NaN; - const n2 = xr(r2, 0).map((e3) => e3.map((e4) => e4.map((e5) => Ye([e5.x, e5.y], t5.canonical)))), i2 = new Sr(n2[0][0][0][1]); + const n2 = xr(r2, 0).map(((e3) => e3.map(((e4) => e4.map(((e5) => Ye([e5.x, e5.y], t5.canonical))))))), i2 = new Sr(n2[0][0][0][1]); let s2 = 1 / 0; for (const t6 of e2) for (const e3 of n2) { switch (t6.type) { @@ -225374,7 +225517,7 @@ void main() { if (0 === s2) return s2; } return s2; - }(t4, this.geometries); + })(t4, this.geometries); } return NaN; } @@ -225401,7 +225544,7 @@ void main() { static parse(t4, e2) { const r2 = t4[0], n2 = Xr.definitions[r2]; if (!n2) return e2.error(`Unknown expression "${r2}". If you wanted a literal array, use ["literal", [...]].`, 0); - const i2 = Array.isArray(n2) ? n2[0] : n2.type, s2 = Array.isArray(n2) ? [[n2[1], n2[2]]] : n2.overloads, a2 = s2.filter(([e3]) => !Array.isArray(e3) || e3.length === t4.length - 1); + const i2 = Array.isArray(n2) ? n2[0] : n2.type, s2 = Array.isArray(n2) ? [[n2[1], n2[2]]] : n2.overloads, a2 = s2.filter((([e3]) => !Array.isArray(e3) || e3.length === t4.length - 1)); let o2 = null; for (const [n3, s3] of a2) { o2 = new fe(e2.registry, Qr, e2.path, null, e2.scope); @@ -225426,10 +225569,10 @@ void main() { } if (1 === a2.length) e2.errors.push(...o2.errors); else { - const r3 = (a2.length ? a2 : s2).map(([t5]) => { + const r3 = (a2.length ? a2 : s2).map((([t5]) => { return e3 = t5, Array.isArray(e3) ? `(${e3.map(wt).join(", ")})` : `(${wt(e3.type)}...)`; var e3; - }).join(" | "), n3 = []; + })).join(" | "), n3 = []; for (let r4 = 1; r4 < t4.length; r4++) { const i3 = e2.parse(t4[r4], 1 + n3.length); if (!i3) return null; @@ -225468,9 +225611,9 @@ void main() { if (t4 instanceof Gr) return false; const e2 = t4 instanceof ce || t4 instanceof le; let r2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { r2 = e2 ? r2 && Qr(t5) : r2 && t5 instanceof se; - }), !!r2 && tn(t4) && rn(t4, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]); + })), !!r2 && tn(t4) && rn(t4, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]); } function tn(t4) { if (t4 instanceof Xr) { @@ -225483,23 +225626,23 @@ void main() { if (t4 instanceof pr) return false; if (t4 instanceof Gr) return false; let e2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { e2 && !tn(t5) && (e2 = false); - }), e2; + })), e2; } function en(t4) { if (t4 instanceof Xr && "feature-state" === t4.name) return false; let e2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { e2 && !en(t5) && (e2 = false); - }), e2; + })), e2; } function rn(t4, e2) { if (t4 instanceof Xr && e2.indexOf(t4.name) >= 0) return false; let r2 = true; - return t4.eachChild((t5) => { + return t4.eachChild(((t5) => { r2 && !rn(t5, e2) && (r2 = false); - }), r2; + })), r2; } function nn(t4) { return { result: "success", value: t4 }; @@ -225529,7 +225672,7 @@ void main() { const r2 = "color" === e2.type, n2 = t4.stops && "object" == typeof t4.stops[0][0], i2 = n2 || !(n2 || void 0 !== t4.property), s2 = t4.type || (ln(e2) ? "exponential" : "interval"); if (r2 || "padding" === e2.type) { const n3 = r2 ? Kt.parse : Jt.parse; - (t4 = st({}, t4)).stops && (t4.stops = t4.stops.map((t5) => [t5[0], n3(t5[1])])), t4.default = n3(t4.default ? t4.default : e2.default); + (t4 = st({}, t4)).stops && (t4.stops = t4.stops.map(((t5) => [t5[0], n3(t5[1])]))), t4.default = n3(t4.default ? t4.default : e2.default); } if (t4.colorSpace && "rgb" !== (a2 = t4.colorSpace) && "hcl" !== a2 && "lab" !== a2) throw new Error(`Unknown color space: "${t4.colorSpace}"`); var a2; @@ -225553,11 +225696,11 @@ void main() { const i3 = []; for (const t5 of n3) i3.push([r3[t5].zoom, pn(r3[t5], e2)]); const s3 = { name: "linear" }; - return { kind: "composite", interpolationType: s3, interpolationFactor: Be.interpolationFactor.bind(void 0, s3), zoomStops: i3.map((t5) => t5[0]), evaluate: ({ zoom: r4 }, n4) => mn({ stops: i3, base: t4.base }, e2, r4).evaluate(r4, n4) }; + return { kind: "composite", interpolationType: s3, interpolationFactor: Be.interpolationFactor.bind(void 0, s3), zoomStops: i3.map(((t5) => t5[0])), evaluate: ({ zoom: r4 }, n4) => mn({ stops: i3, base: t4.base }, e2, r4).evaluate(r4, n4) }; } if (i2) { const r3 = "exponential" === s2 ? { name: "exponential", base: void 0 !== t4.base ? t4.base : 1 } : null; - return { kind: "camera", interpolationType: r3, interpolationFactor: Be.interpolationFactor.bind(void 0, r3), zoomStops: t4.stops.map((t5) => t5[0]), evaluate: ({ zoom: r4 }) => o2(t4, e2, r4, l2, u2) }; + return { kind: "camera", interpolationType: r3, interpolationFactor: Be.interpolationFactor.bind(void 0, r3), zoomStops: t4.stops.map(((t5) => t5[0])), evaluate: ({ zoom: r4 }) => o2(t4, e2, r4, l2, u2) }; } return { kind: "source", evaluate(r3, n3) { const i3 = n3 && n3.properties ? n3.properties[t4.property] : void 0; @@ -225576,7 +225719,7 @@ void main() { if (1 === n2) return t4.stops[0][1]; if (r2 <= t4.stops[0][0]) return t4.stops[0][1]; if (r2 >= t4.stops[n2 - 1][0]) return t4.stops[n2 - 1][1]; - const i2 = _e(t4.stops.map((t5) => t5[0]), r2); + const i2 = _e(t4.stops.map(((t5) => t5[0])), r2); return t4.stops[i2][1]; } function mn(t4, e2, r2) { @@ -225586,10 +225729,10 @@ void main() { if (1 === i2) return t4.stops[0][1]; if (r2 <= t4.stops[0][0]) return t4.stops[0][1]; if (r2 >= t4.stops[i2 - 1][0]) return t4.stops[i2 - 1][1]; - const s2 = _e(t4.stops.map((t5) => t5[0]), r2), a2 = function(t5, e3, r3, n3) { + const s2 = _e(t4.stops.map(((t5) => t5[0])), r2), a2 = (function(t5, e3, r3, n3) { const i3 = n3 - r3, s3 = t5 - r3; return 0 === i3 ? 0 : 1 === e3 ? s3 / i3 : (Math.pow(e3, s3) - 1) / (Math.pow(e3, i3) - 1); - }(r2, n2, t4.stops[s2][0], t4.stops[s2 + 1][0]), o2 = t4.stops[s2][1], l2 = t4.stops[s2 + 1][1], u2 = Ce[e2.type] || hn; + })(r2, n2, t4.stops[s2][0], t4.stops[s2 + 1][0]), o2 = t4.stops[s2][1], l2 = t4.stops[s2 + 1][1], u2 = Ce[e2.type] || hn; return "function" == typeof o2.evaluate ? { evaluate(...e3) { const r3 = o2.evaluate.apply(void 0, e3), n3 = l2.evaluate.apply(void 0, e3); if (void 0 !== r3 && void 0 !== n3) return u2(r3, n3, a2, t4.colorSpace); @@ -225627,7 +225770,7 @@ void main() { let r2 = 1; for (const n2 of e2) r2 *= n2.evaluate(t4); return r2; - }], "-": { type: ut, overloads: [[[ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) - r2.evaluate(t4)], [[ut], (t4, [e2]) => -e2.evaluate(t4)]] }, "/": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) / r2.evaluate(t4)], "%": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) % r2.evaluate(t4)], ln2: [ut, [], () => Math.LN2], pi: [ut, [], () => Math.PI], e: [ut, [], () => Math.E], "^": [ut, [ut, ut], (t4, [e2, r2]) => Math.pow(e2.evaluate(t4), r2.evaluate(t4))], sqrt: [ut, [ut], (t4, [e2]) => Math.sqrt(e2.evaluate(t4))], log10: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN10], ln: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4))], log2: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN2], sin: [ut, [ut], (t4, [e2]) => Math.sin(e2.evaluate(t4))], cos: [ut, [ut], (t4, [e2]) => Math.cos(e2.evaluate(t4))], tan: [ut, [ut], (t4, [e2]) => Math.tan(e2.evaluate(t4))], asin: [ut, [ut], (t4, [e2]) => Math.asin(e2.evaluate(t4))], acos: [ut, [ut], (t4, [e2]) => Math.acos(e2.evaluate(t4))], atan: [ut, [ut], (t4, [e2]) => Math.atan(e2.evaluate(t4))], min: [ut, Wr(ut), (t4, e2) => Math.min(...e2.map((e3) => e3.evaluate(t4)))], max: [ut, Wr(ut), (t4, e2) => Math.max(...e2.map((e3) => e3.evaluate(t4)))], abs: [ut, [ut], (t4, [e2]) => Math.abs(e2.evaluate(t4))], round: [ut, [ut], (t4, [e2]) => { + }], "-": { type: ut, overloads: [[[ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) - r2.evaluate(t4)], [[ut], (t4, [e2]) => -e2.evaluate(t4)]] }, "/": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) / r2.evaluate(t4)], "%": [ut, [ut, ut], (t4, [e2, r2]) => e2.evaluate(t4) % r2.evaluate(t4)], ln2: [ut, [], () => Math.LN2], pi: [ut, [], () => Math.PI], e: [ut, [], () => Math.E], "^": [ut, [ut, ut], (t4, [e2, r2]) => Math.pow(e2.evaluate(t4), r2.evaluate(t4))], sqrt: [ut, [ut], (t4, [e2]) => Math.sqrt(e2.evaluate(t4))], log10: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN10], ln: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4))], log2: [ut, [ut], (t4, [e2]) => Math.log(e2.evaluate(t4)) / Math.LN2], sin: [ut, [ut], (t4, [e2]) => Math.sin(e2.evaluate(t4))], cos: [ut, [ut], (t4, [e2]) => Math.cos(e2.evaluate(t4))], tan: [ut, [ut], (t4, [e2]) => Math.tan(e2.evaluate(t4))], asin: [ut, [ut], (t4, [e2]) => Math.asin(e2.evaluate(t4))], acos: [ut, [ut], (t4, [e2]) => Math.acos(e2.evaluate(t4))], atan: [ut, [ut], (t4, [e2]) => Math.atan(e2.evaluate(t4))], min: [ut, Wr(ut), (t4, e2) => Math.min(...e2.map(((e3) => e3.evaluate(t4))))], max: [ut, Wr(ut), (t4, e2) => Math.max(...e2.map(((e3) => e3.evaluate(t4))))], abs: [ut, [ut], (t4, [e2]) => Math.abs(e2.evaluate(t4))], round: [ut, [ut], (t4, [e2]) => { const r2 = e2.evaluate(t4); return r2 < 0 ? -Math.round(-r2) : Math.round(r2); }], floor: [ut, [ut], (t4, [e2]) => Math.floor(e2.evaluate(t4))], ceil: [ut, [ut], (t4, [e2]) => Math.ceil(e2.evaluate(t4))], "filter-==": [ht, [ct, dt], (t4, [e2, r2]) => t4.properties()[e2.value] === r2.value], "filter-id-==": [ht, [dt], (t4, [e2]) => t4.id() === e2.value], "filter-type-==": [ht, [ct], (t4, [e2]) => t4.geometryType() === e2.value], "filter-<": [ht, [ct, dt], (t4, [e2, r2]) => { @@ -225654,14 +225797,14 @@ void main() { }], "filter-id->=": [ht, [dt], (t4, [e2]) => { const r2 = t4.id(), n2 = e2.value; return typeof r2 == typeof n2 && r2 >= n2; - }], "filter-has": [ht, [dt], (t4, [e2]) => e2.value in t4.properties()], "filter-has-id": [ht, [], (t4) => null !== t4.id() && void 0 !== t4.id()], "filter-type-in": [ht, [bt(ct)], (t4, [e2]) => e2.value.indexOf(t4.geometryType()) >= 0], "filter-id-in": [ht, [bt(dt)], (t4, [e2]) => e2.value.indexOf(t4.id()) >= 0], "filter-in-small": [ht, [ct, bt(dt)], (t4, [e2, r2]) => r2.value.indexOf(t4.properties()[e2.value]) >= 0], "filter-in-large": [ht, [ct, bt(dt)], (t4, [e2, r2]) => function(t5, e3, r3, n2) { + }], "filter-has": [ht, [dt], (t4, [e2]) => e2.value in t4.properties()], "filter-has-id": [ht, [], (t4) => null !== t4.id() && void 0 !== t4.id()], "filter-type-in": [ht, [bt(ct)], (t4, [e2]) => e2.value.indexOf(t4.geometryType()) >= 0], "filter-id-in": [ht, [bt(dt)], (t4, [e2]) => e2.value.indexOf(t4.id()) >= 0], "filter-in-small": [ht, [ct, bt(dt)], (t4, [e2, r2]) => r2.value.indexOf(t4.properties()[e2.value]) >= 0], "filter-in-large": [ht, [ct, bt(dt)], (t4, [e2, r2]) => (function(t5, e3, r3, n2) { for (; r3 <= n2; ) { const i2 = r3 + n2 >> 1; if (e3[i2] === t5) return true; e3[i2] > t5 ? n2 = i2 - 1 : r3 = i2 + 1; } return false; - }(t4.properties()[e2.value], r2.value, 0, r2.value.length - 1)], all: { type: ht, overloads: [[[ht, ht], (t4, [e2, r2]) => e2.evaluate(t4) && r2.evaluate(t4)], [Wr(ht), (t4, e2) => { + })(t4.properties()[e2.value], r2.value, 0, r2.value.length - 1)], all: { type: ht, overloads: [[[ht, ht], (t4, [e2, r2]) => e2.evaluate(t4) && r2.evaluate(t4)], [Wr(ht), (t4, e2) => { for (const r2 of e2) if (!r2.evaluate(t4)) return false; return true; }]] }, any: { type: ht, overloads: [[[ht, ht], (t4, [e2, r2]) => e2.evaluate(t4) || r2.evaluate(t4)], [Wr(ht), (t4, e2) => { @@ -225670,7 +225813,7 @@ void main() { }]] }, "!": [ht, [ht], (t4, [e2]) => !e2.evaluate(t4)], "is-supported-script": [ht, [ct], (t4, [e2]) => { const r2 = t4.globals && t4.globals.isSupportedScript; return !r2 || r2(e2.evaluate(t4)); - }], upcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toUpperCase()], downcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toLowerCase()], concat: [ct, Wr(dt), (t4, e2) => e2.map((e3) => ie(e3.evaluate(t4))).join("")], "resolved-locale": [ct, [yt], (t4, [e2]) => e2.evaluate(t4).resolvedLocale()] }); + }], upcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toUpperCase()], downcase: [ct, [ct], (t4, [e2]) => e2.evaluate(t4).toLowerCase()], concat: [ct, Wr(dt), (t4, e2) => e2.map(((e3) => ie(e3.evaluate(t4)))).join("")], "resolved-locale": [ct, [yt], (t4, [e2]) => e2.evaluate(t4).resolvedLocale()] }); class xn { constructor(t4, e2) { var r2; @@ -225684,7 +225827,7 @@ void main() { try { const t5 = this.expression.evaluate(this._evaluator); if (null == t5 || "number" == typeof t5 && t5 != t5) return this._defaultValue; - if (this._enumValues && !(t5 in this._enumValues)) throw new ae(`Expected value to be one of ${Object.keys(this._enumValues).map((t6) => JSON.stringify(t6)).join(", ")}, but found ${JSON.stringify(t5)} instead.`); + if (this._enumValues && !(t5 in this._enumValues)) throw new ae(`Expected value to be one of ${Object.keys(this._enumValues).map(((t6) => JSON.stringify(t6))).join(", ")}, but found ${JSON.stringify(t5)} instead.`); return t5; } catch (t5) { return this._warningHistory[t5.message] || (this._warningHistory[t5.message] = true, "undefined" != typeof console && console.warn(t5.message)), this._defaultValue; @@ -225695,10 +225838,10 @@ void main() { return Array.isArray(t4) && t4.length > 0 && "string" == typeof t4[0] && t4[0] in Kr; } function bn(t4, e2) { - const r2 = new fe(Kr, Qr, [], e2 ? function(t5) { + const r2 = new fe(Kr, Qr, [], e2 ? (function(t5) { const e3 = { color: pt, string: ct, number: ut, enum: ct, boolean: ht, formatted: mt, padding: gt, resolvedImage: xt, variableAnchorOffsetCollection: vt }; return "array" === t5.type ? bt(e3[t5.value] || dt, t5.length) : e3[t5.type]; - }(e2) : void 0), n2 = r2.parse(t4, void 0, void 0, void 0, e2 && "string" === e2.type ? { typeAnnotation: "coerce" } : void 0); + })(e2) : void 0), n2 = r2.parse(t4, void 0, void 0, void 0, e2 && "string" === e2.type ? { typeAnnotation: "coerce" } : void 0); return n2 ? nn(new xn(n2, e2)) : sn(r2.errors); } class wn { @@ -225753,10 +225896,10 @@ void main() { else if (t4 instanceof Ee) { for (const r2 of t4.args) if (e2 = kn(r2), e2) break; } else (t4 instanceof Ae || t4 instanceof Be) && t4.input instanceof Xr && "zoom" === t4.input.name && (e2 = t4); - return e2 instanceof at || t4.eachChild((t5) => { + return e2 instanceof at || t4.eachChild(((t5) => { const r2 = kn(t5); r2 instanceof at ? e2 = r2 : !e2 && r2 ? e2 = new at("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : e2 && r2 && e2 !== r2 && (e2 = new at("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.')); - }), e2; + })), e2; } function Mn(t4) { if (true === t4 || false === t4) return true; @@ -225790,7 +225933,7 @@ void main() { if (null == t4) return { filter: () => true, needGeometry: false }; Mn(t4) || (t4 = Bn(t4)); const e2 = bn(t4, In); - if ("error" === e2.result) throw new Error(e2.value.map((t5) => `${t5.key}: ${t5.message}`).join(", ")); + if ("error" === e2.result) throw new Error(e2.value.map(((t5) => `${t5.key}: ${t5.message}`)).join(", ")); return { filter: (t5, r2, n2) => e2.value.evaluate(t5, r2, {}, n2), needGeometry: Cn(t4) }; } function Pn(t4, e2) { @@ -225826,7 +225969,7 @@ void main() { case "$id": return ["filter-id-in", ["literal", e2]]; default: - return e2.length > 200 && !e2.some((t5) => typeof t5 != typeof e2[0]) ? ["filter-in-large", t4, ["literal", e2.sort(Pn)]] : ["filter-in-small", t4, ["literal", e2]]; + return e2.length > 200 && !e2.some(((t5) => typeof t5 != typeof e2[0])) ? ["filter-in-large", t4, ["literal", e2.sort(Pn)]] : ["filter-in-small", t4, ["literal", e2]]; } } function Fn(t4) { @@ -225956,7 +226099,7 @@ void main() { } function Zn2(t4) { const e2 = ("property" === t4.expressionContext ? An : bn)(jn(t4.value), t4.valueSpec); - if ("error" === e2.result) return e2.value.map((e3) => new it(`${t4.key}${e3.key}`, t4.value, e3.message)); + if ("error" === e2.result) return e2.value.map(((e3) => new it(`${t4.key}${e3.key}`, t4.value, e3.message))); const r2 = e2.value.expression || e2.value._styleExpression.expression; if ("property" === t4.expressionContext && "text-font" === t4.propertyKey && !r2.outputDefined()) return [new it(t4.key, t4.value, `Invalid data expression for "${t4.propertyKey}". Output values must be contained as literals within the expression.`)]; if ("property" === t4.expressionContext && "layout" === t4.propertyType && !en(r2)) return [new it(t4.key, t4.value, '"feature-state" data expressions are not supported with layout properties.')]; @@ -226039,11 +226182,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } if ("ref" in r2) { let t5; - ["type", "source", "source-layer", "filter", "layout"].forEach((t6) => { + ["type", "source", "source-layer", "filter", "layout"].forEach(((t6) => { t6 in r2 && e2.push(new it(n2, r2[t6], `"${t6}" is prohibited for ref layers`)); - }), i2.layers.forEach((e3) => { + })), i2.layers.forEach(((e3) => { On(e3.id) === o2 && (t5 = e3); - }), t5 ? t5.ref ? e2.push(new it(n2, r2.ref, "ref cannot reference another ref layer")) : a2 = On(t5.type) : e2.push(new it(n2, r2.ref, `ref layer "${o2}" not found`)); + })), t5 ? t5.ref ? e2.push(new it(n2, r2.ref, "ref cannot reference another ref layer")) : a2 = On(t5.type) : e2.push(new it(n2, r2.ref, `ref layer "${o2}" not found`)); } else if ("background" !== a2) if (r2.source) { const t5 = i2.sources && i2.sources[r2.source], s3 = t5 && On(t5.type); t5 ? "vector" === s3 && "raster" === a2 ? e2.push(new it(n2, r2.source, `layer "${r2.id}" requires a raster source`)) : "raster-dem" !== s3 && "hillshade" === a2 ? e2.push(new it(n2, r2.source, `layer "${r2.id}" requires a raster-dem source`)) : "raster" === s3 && "raster" !== a2 ? e2.push(new it(n2, r2.source, `layer "${r2.id}" requires a vector source`)) : "vector" !== s3 || r2["source-layer"] ? "raster-dem" === s3 && "hillshade" !== a2 ? e2.push(new it(n2, r2.source, "raster-dem source can only be used with layer type 'hillshade'.")) : "line" !== a2 || !r2.paint || !r2.paint["line-gradient"] || "geojson" === s3 && t5.lineMetrics || e2.push(new it(n2, r2, `layer "${r2.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e2.push(new it(n2, r2, `layer "${r2.id}" must specify a "source-layer"`)) : e2.push(new it(n2, r2.source, `source "${r2.source}" not found`)); @@ -226072,7 +226215,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ case "raster": return o2 = Rn({ key: r2, value: e2, valueSpec: n2[`source_${a2.replace("-", "_")}`], style: t4.style, styleSpec: n2, objectElementValidators: ti, validateSpec: s2 }), o2; case "raster-dem": - return o2 = function(t5) { + return o2 = (function(t5) { var e3; const r3 = null !== (e3 = t5.sourceName) && void 0 !== e3 ? e3 : "", n3 = t5.value, i3 = t5.styleSpec, s3 = i3.source_raster_dem, a3 = t5.style; let o3 = []; @@ -226082,7 +226225,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const u2 = "custom" === On(n3.encoding), c2 = ["redFactor", "greenFactor", "blueFactor", "baseShift"], h2 = t5.value.encoding ? `"${t5.value.encoding}"` : "Default"; for (const e4 in n3) !u2 && c2.includes(e4) ? o3.push(new it(e4, n3[e4], `In "${r3}": "${e4}" is only valid when "encoding" is set to "custom". ${h2} encoding found`)) : s3[e4] ? o3 = o3.concat(t5.validateSpec({ key: e4, value: n3[e4], valueSpec: s3[e4], validateSpec: t5.validateSpec, style: a3, styleSpec: i3 })) : o3.push(new it(e4, n3[e4], `unknown property "${e4}"`)); return o3; - }({ sourceName: r2, value: e2, style: t4.style, styleSpec: n2, validateSpec: s2 }), o2; + })({ sourceName: r2, value: e2, style: t4.style, styleSpec: n2, validateSpec: s2 }), o2; case "geojson": if (o2 = Rn({ key: r2, value: e2, valueSpec: n2.source_geojson, style: i2, styleSpec: n2, validateSpec: s2, objectElementValidators: ti }), e2.cluster) for (const t5 in e2.clusterProperties) { const [n3, i3] = e2.clusterProperties[t5], a3 = "string" == typeof n3 ? [n3, ["accumulated"], ["get", t5]] : n3; @@ -226190,7 +226333,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }; } function hi(t4) { - return [].concat(t4).sort((t5, e2) => t5.line - e2.line); + return [].concat(t4).sort(((t5, e2) => t5.line - e2.line)); } function pi(t4) { return function(...e2) { @@ -226305,11 +226448,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4.$name || t4.constructor._classRegistryKey; } function Si(t4) { - return !function(t5) { + return !(function(t5) { if (null === t5 || "object" != typeof t5) return false; const e2 = Ai(t5); return !(!e2 || "Object" === e2); - }(t4) && (null == t4 || "boolean" == typeof t4 || "number" == typeof t4 || "string" == typeof t4 || t4 instanceof Boolean || t4 instanceof Number || t4 instanceof String || t4 instanceof Date || t4 instanceof RegExp || t4 instanceof Blob || t4 instanceof Error || _i(t4) || I(t4) || ArrayBuffer.isView(t4) || t4 instanceof ImageData); + })(t4) && (null == t4 || "boolean" == typeof t4 || "number" == typeof t4 || "string" == typeof t4 || t4 instanceof Boolean || t4 instanceof Number || t4 instanceof String || t4 instanceof Date || t4 instanceof RegExp || t4 instanceof Blob || t4 instanceof Error || _i(t4) || I(t4) || ArrayBuffer.isView(t4) || t4 instanceof ImageData); } function ki(t4, e2) { if (Si(t4)) return (_i(t4) || I(t4)) && e2 && e2.push(t4), ArrayBuffer.isView(t4) && e2 && e2.push(t4.buffer), t4 instanceof ImageData && e2 && e2.push(t4.data.buffer), t4; @@ -226373,13 +226516,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return true; } function Bi(t4) { - const e2 = t4.map((t5) => { + const e2 = t4.map(((t5) => { try { return new RegExp(`\\p{sc=${t5}}`, "u").source; } catch (t6) { return null; } - }).filter((t5) => t5); + })).filter(((t5) => t5)); return new RegExp(e2.join("|"), "u"); } const Vi = Bi(["Arab", "Dupl", "Mong", "Ougr", "Syrc"]); @@ -226391,9 +226534,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return !(746 !== t4 && 747 !== t4 && (t4 < 4352 || !(zi["CJK Compatibility Forms"](t4) && !(t4 >= 65097 && t4 <= 65103) || zi["CJK Compatibility"](t4) || zi["CJK Strokes"](t4) || !(!zi["CJK Symbols and Punctuation"](t4) || t4 >= 12296 && t4 <= 12305 || t4 >= 12308 && t4 <= 12319 || 12336 === t4) || zi["Enclosed CJK Letters and Months"](t4) || zi["Ideographic Description Characters"](t4) || zi.Kanbun(t4) || zi.Katakana(t4) && 12540 !== t4 || !(!zi["Halfwidth and Fullwidth Forms"](t4) || 65288 === t4 || 65289 === t4 || 65293 === t4 || t4 >= 65306 && t4 <= 65310 || 65339 === t4 || 65341 === t4 || 65343 === t4 || t4 >= 65371 && t4 <= 65503 || 65507 === t4 || t4 >= 65512 && t4 <= 65519) || !(!zi["Small Form Variants"](t4) || t4 >= 65112 && t4 <= 65118 || t4 >= 65123 && t4 <= 65126) || zi["Vertical Forms"](t4) || zi["Yijing Hexagram Symbols"](t4) || new RegExp("\\p{sc=Cans}", "u").test(String.fromCodePoint(t4)) || new RegExp("\\p{sc=Hang}", "u").test(String.fromCodePoint(t4)) || Fi.test(String.fromCodePoint(t4))))); } function $i(t4) { - return !(Ti(t4) || function(t5) { + return !(Ti(t4) || (function(t5) { return !!(zi["Latin-1 Supplement"](t5) && (167 === t5 || 169 === t5 || 174 === t5 || 177 === t5 || 188 === t5 || 189 === t5 || 190 === t5 || 215 === t5 || 247 === t5) || zi["General Punctuation"](t5) && (8214 === t5 || 8224 === t5 || 8225 === t5 || 8240 === t5 || 8241 === t5 || 8251 === t5 || 8252 === t5 || 8258 === t5 || 8263 === t5 || 8264 === t5 || 8265 === t5 || 8273 === t5) || zi["Letterlike Symbols"](t5) || zi["Number Forms"](t5) || zi["Miscellaneous Technical"](t5) && (t5 >= 8960 && t5 <= 8967 || t5 >= 8972 && t5 <= 8991 || t5 >= 8996 && t5 <= 9e3 || 9003 === t5 || t5 >= 9085 && t5 <= 9114 || t5 >= 9150 && t5 <= 9165 || 9167 === t5 || t5 >= 9169 && t5 <= 9179 || t5 >= 9186 && t5 <= 9215) || zi["Control Pictures"](t5) && 9251 !== t5 || zi["Optical Character Recognition"](t5) || zi["Enclosed Alphanumerics"](t5) || zi["Geometric Shapes"](t5) || zi["Miscellaneous Symbols"](t5) && !(t5 >= 9754 && t5 <= 9759) || zi["Miscellaneous Symbols and Arrows"](t5) && (t5 >= 11026 && t5 <= 11055 || t5 >= 11088 && t5 <= 11097 || t5 >= 11192 && t5 <= 11243) || zi["CJK Symbols and Punctuation"](t5) || zi.Katakana(t5) || zi["Private Use Area"](t5) || zi["CJK Compatibility Forms"](t5) || zi["Small Form Variants"](t5) || zi["Halfwidth and Fullwidth Forms"](t5) || 8734 === t5 || 8756 === t5 || 8757 === t5 || t5 >= 9984 && t5 <= 10087 || t5 >= 10102 && t5 <= 10131 || 65532 === t5 || 65533 === t5); - }(t4)); + })(t4)); } const Li = Bi(["Adlm", "Arab", "Armi", "Avst", "Chrs", "Cprt", "Egyp", "Elym", "Gara", "Hatr", "Hebr", "Hung", "Khar", "Lydi", "Mand", "Mani", "Mend", "Merc", "Mero", "Narb", "Nbat", "Nkoo", "Orkh", "Palm", "Phli", "Phlp", "Phnx", "Prti", "Rohg", "Samr", "Sarb", "Sogo", "Syrc", "Thaa", "Todr", "Yezi"]); function Di(t4) { @@ -226434,10 +226577,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.zoom = t4, e2 ? (this.now = e2.now, this.fadeDuration = e2.fadeDuration, this.zoomHistory = e2.zoomHistory, this.transition = e2.transition) : (this.now = 0, this.fadeDuration = 0, this.zoomHistory = new Ii(), this.transition = {}); } isSupportedScript(t4) { - return function(t5, e2) { + return (function(t5, e2) { for (const r2 of t5) if (!Oi(r2.charCodeAt(0), e2)) return false; return true; - }(t4, "loaded" === Ri.getRTLTextPluginStatus()); + })(t4, "loaded" === Ri.getRTLTextPluginStatus()); } crossFadingFactor() { return 0 === this.fadeDuration ? 1 : Math.min((this.now - this.zoomHistory.lastIntegerZoomTime) / this.fadeDuration, 1); @@ -226449,18 +226592,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class qi { constructor(t4, e2) { - this.property = t4, this.value = e2, this.expression = function(t5, e3) { + this.property = t4, this.value = e2, this.expression = (function(t5, e3) { if (cn(t5)) return new Sn(t5, e3); if (vn(t5)) { const r2 = An(t5, e3); - if ("error" === r2.result) throw new Error(r2.value.map((t6) => `${t6.key}: ${t6.message}`).join(", ")); + if ("error" === r2.result) throw new Error(r2.value.map(((t6) => `${t6.key}: ${t6.message}`)).join(", ")); return r2.value; } { let r2 = t5; return "color" === e3.type && "string" == typeof t5 ? r2 = Kt.parse(t5) : "padding" !== e3.type || "number" != typeof t5 && !Array.isArray(t5) ? "variableAnchorOffsetCollection" === e3.type && Array.isArray(t5) && (r2 = Qt.parse(t5)) : r2 = Jt.parse(t5), { kind: "constant", evaluate: () => r2 }; } - }(void 0 === e2 ? t4.specification.default : e2, t4.specification); + })(void 0 === e2 ? t4.specification.default : e2, t4.specification); } isDataDriven() { return "source" === this.expression.kind || "composite" === this.expression.kind; @@ -226529,12 +226672,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (n2 < this.begin) return s2.possiblyEvaluate(t4, e2, r2); { const a2 = (n2 - this.begin) / (this.end - this.begin); - return this.property.interpolate(s2.possiblyEvaluate(t4, e2, r2), i2, function(t5) { + return this.property.interpolate(s2.possiblyEvaluate(t4, e2, r2), i2, (function(t5) { if (t5 <= 0) return 0; if (t5 >= 1) return 1; const e3 = t5 * t5, r3 = e3 * t5; return 4 * (t5 < 0.5 ? r3 : 3 * (t5 - e3) + r3 - 0.75); - }(a2)); + })(a2)); } } return i2; @@ -226758,7 +226901,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } serialize() { const t4 = { id: this.id, type: this.type, source: this.source, "source-layer": this.sourceLayer, metadata: this.metadata, minzoom: this.minzoom, maxzoom: this.maxzoom, filter: this.filter, layout: this._unevaluatedLayout && this._unevaluatedLayout.serialize(), paint: this._transitionablePaint && this._transitionablePaint.serialize() }; - return this.visibility && (t4.layout = t4.layout || {}, t4.layout.visibility = this.visibility), b(t4, (t5, e2) => !(void 0 === t5 || "layout" === e2 && !Object.keys(t5).length || "paint" === e2 && !Object.keys(t5).length)); + return this.visibility && (t4.layout = t4.layout || {}, t4.layout.visibility = this.visibility), b(t4, ((t5, e2) => !(void 0 === t5 || "layout" === e2 && !Object.keys(t5).length || "paint" === e2 && !Object.keys(t5).length))); } _validate(t4, e2, r2, n2, i2 = {}) { return (!i2 || false !== i2.validate) && xi(this, t4.call(fi, { key: e2, layerType: this.type, objectKey: r2, value: n2, styleSpec: G, style: { glyphs: true, sprite: true } })); @@ -226821,10 +226964,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function ls(t4, e2 = 1) { let r2 = 0, n2 = 0; - return { members: t4.map((t5) => { + return { members: t4.map(((t5) => { const i2 = ss[t5.type].BYTES_PER_ELEMENT, s2 = r2 = us(r2, Math.max(e2, i2)), a2 = t5.components || 1; return n2 = Math.max(n2, i2), r2 += i2 * a2, { name: t5.name, type: t5.type, components: a2, offset: s2 }; - }), size: us(r2, Math.max(n2, e2)), alignment: e2 }; + })), size: us(r2, Math.max(n2, e2)), alignment: e2 }; } function us(t4, e2) { return Math.ceil(t4 / e2) * e2; @@ -227577,7 +227720,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Ia { constructor(t4, e2, r2) { - this.value = t4, this.uniformNames = e2.map((t5) => `u_${t5}`), this.type = r2; + this.value = t4, this.uniformNames = e2.map(((t5) => `u_${t5}`)), this.type = r2; } setUniform(t4, e2, r2) { t4.set(r2.constantOr(this.value)); @@ -227588,7 +227731,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class za { constructor(t4, e2) { - this.uniformNames = e2.map((t5) => `u_${t5}`), this.patternFrom = null, this.patternTo = null, this.pixelRatioFrom = 1, this.pixelRatioTo = 1; + this.uniformNames = e2.map(((t5) => `u_${t5}`)), this.patternFrom = null, this.patternTo = null, this.pixelRatioFrom = 1, this.pixelRatioTo = 1; } setConstantPatternPositions(t4, e2) { this.pixelRatioFrom = e2.pixelRatio, this.pixelRatioTo = t4.pixelRatio, this.patternFrom = e2.tlbr, this.patternTo = t4.tlbr; @@ -227603,7 +227746,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Pa { constructor(t4, e2, r2, n2) { - this.expression = t4, this.type = r2, this.maxValue = 0, this.paintVertexAttributes = e2.map((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 2 : 1, offset: 0 })), this.paintVertexArray = new n2(); + this.expression = t4, this.type = r2, this.maxValue = 0, this.paintVertexAttributes = e2.map(((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 2 : 1, offset: 0 }))), this.paintVertexArray = new n2(); } populatePaintArray(t4, e2, r2, n2, i2) { const s2 = this.paintVertexArray.length, a2 = this.expression.evaluate(new Ui(0), e2, {}, n2, [], i2); @@ -227631,7 +227774,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Ca { constructor(t4, e2, r2, n2, i2, s2) { - this.expression = t4, this.uniformNames = e2.map((t5) => `u_${t5}_t`), this.type = r2, this.useIntegerZoom = n2, this.zoom = i2, this.maxValue = 0, this.paintVertexAttributes = e2.map((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 4 : 2, offset: 0 })), this.paintVertexArray = new s2(); + this.expression = t4, this.uniformNames = e2.map(((t5) => `u_${t5}_t`)), this.type = r2, this.useIntegerZoom = n2, this.zoom = i2, this.maxValue = 0, this.paintVertexAttributes = e2.map(((t5) => ({ name: `a_${t5}`, type: "Float32", components: "color" === r2 ? 4 : 2, offset: 0 }))), this.paintVertexArray = new s2(); } populatePaintArray(t4, e2, r2, n2, i2) { const s2 = this.expression.evaluate(new Ui(this.zoom), e2, {}, n2, [], i2), a2 = this.expression.evaluate(new Ui(this.zoom + 1), e2, {}, n2, [], i2), o2 = this.paintVertexArray.length; @@ -227744,7 +227887,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t4 = []; for (const e2 in this.binders) { const r2 = this.binders[e2]; - (r2 instanceof Ia || r2 instanceof za) && t4.push(...r2.uniformNames.map((t5) => `#define HAS_UNIFORM_${t5}`)); + (r2 instanceof Ia || r2 instanceof za) && t4.push(...r2.uniformNames.map(((t5) => `#define HAS_UNIFORM_${t5}`))); } return t4; } @@ -227809,7 +227952,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } class Ea { - constructor(t4, e2, r2 = () => true) { + constructor(t4, e2, r2 = (() => true)) { this.programConfigurations = {}; for (const n2 of t4) this.programConfigurations[n2.id] = new Va(n2, e2, r2); this.needsUpload = false, this._featureMap = new ga(), this._bufferOffset = 0; @@ -227838,9 +227981,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return { "text-opacity": ["opacity"], "icon-opacity": ["opacity"], "text-color": ["fill_color"], "icon-color": ["fill_color"], "text-halo-color": ["halo_color"], "icon-halo-color": ["halo_color"], "text-halo-blur": ["halo_blur"], "icon-halo-blur": ["halo_blur"], "text-halo-width": ["halo_width"], "icon-halo-width": ["halo_width"], "line-gap-width": ["gapwidth"], "line-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"], "fill-extrusion-pattern": ["pattern_to", "pattern_from", "pixel_ratio_to", "pixel_ratio_from"] }[t4] || [t4.replace(`${e2}-`, "").replace(/-/g, "_")]; } function Ta(t4, e2, r2) { - const n2 = { color: { source: ys, composite: Vs }, number: { source: Is, composite: ys } }, i2 = function(t5) { + const n2 = { color: { source: ys, composite: Vs }, number: { source: Is, composite: ys } }, i2 = (function(t5) { return { "line-pattern": { source: Js, composite: Js }, "fill-pattern": { source: Js, composite: Js }, "fill-extrusion-pattern": { source: Js, composite: Js } }[t5]; - }(t4); + })(t4); return i2 && i2[r2] || n2[e2][r2]; } wi("ConstantBinder", Ia), wi("CrossFadedConstantBinder", za), wi("SourceExpressionBinder", Pa), wi("CrossFadedCompositeBinder", Ba), wi("CompositeExpressionBinder", Ca), wi("ProgramConfiguration", Va, { omit: ["_buffers"] }), wi("ProgramConfigurationSet", Ea); @@ -227864,7 +228007,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Ua { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Gs(), this.indexArray = new na(), this.segments = new oa(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Gs(), this.indexArray = new na(), this.segments = new oa(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { const n2 = this.layers[0], i2 = []; @@ -227876,7 +228019,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const c2 = a2 ? s2.evaluate(u2, {}, r2) : void 0, h2 = { id: n3, properties: e3.properties, type: e3.type, sourceLayerIndex: l2, index: o2, geometry: t5 ? u2.geometry : Oa(e3), patterns: {}, sortKey: c2 }; i2.push(h2); } - a2 && i2.sort((t5, e3) => t5.sortKey - e3.sortKey); + a2 && i2.sort(((t5, e3) => t5.sortKey - e3.sortKey)); for (const n3 of i2) { const { geometry: i3, index: s3, sourceLayerIndex: a3 } = n3, o2 = t4[s3].feature; this.addFeature(n3, i3, s3, r2), e2.featureIndex.insert(o2, i3, s3, a3, this.index); @@ -228029,9 +228172,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return to("circle-radius", this, e2) + to("circle-stroke-width", this, e2) + eo(this.paint.get("circle-translate")); } queryIntersectsFeature(t4, e2, r2, n2, i2, s2, a2, o2) { - const l2 = ro(t4, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), s2.angle, a2), u2 = this.paint.get("circle-radius").evaluate(e2, r2) + this.paint.get("circle-stroke-width").evaluate(e2, r2), c2 = "map" === this.paint.get("circle-pitch-alignment"), h2 = c2 ? l2 : function(t5, e3) { - return t5.map((t6) => yo(t6, e3)); - }(l2, o2), p2 = c2 ? u2 * a2 : u2; + const l2 = ro(t4, this.paint.get("circle-translate"), this.paint.get("circle-translate-anchor"), s2.angle, a2), u2 = this.paint.get("circle-radius").evaluate(e2, r2) + this.paint.get("circle-stroke-width").evaluate(e2, r2), c2 = "map" === this.paint.get("circle-pitch-alignment"), h2 = c2 ? l2 : (function(t5, e3) { + return t5.map(((t6) => yo(t6, e3))); + })(l2, o2), p2 = c2 ? u2 * a2 : u2; for (const t5 of n2) for (const e3 of t5) { const t6 = c2 ? e3 : yo(e3, o2); let r3 = p2; @@ -228169,7 +228312,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = []; if (!s2 || s2.next === s2.prev) return a2; let o2, l2, u2; - if (n2 && (s2 = function(t5, e3, r3, n3) { + if (n2 && (s2 = (function(t5, e3, r3, n3) { const i3 = []; for (let r4 = 0, s3 = e3.length; r4 < s3; r4++) { const a3 = Eo(t5, e3[r4] * n3, r4 < s3 - 1 ? e3[r4 + 1] * n3 : t5.length, n3, false); @@ -228178,7 +228321,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i3.sort(jo); for (let t6 = 0; t6 < i3.length; t6++) r3 = Ro(i3[t6], r3); return r3; - }(t4, e2, s2, r2)), t4.length > 80 * r2) { + })(t4, e2, s2, r2)), t4.length > 80 * r2) { o2 = 1 / 0, l2 = 1 / 0; let e3 = -1 / 0, n3 = -1 / 0; for (let s3 = r2; s3 < i2; s3 += r2) { @@ -228191,11 +228334,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function Eo(t4, e2, r2, n2, i2) { let s2; - if (i2 === function(t5, e3, r3, n3) { + if (i2 === (function(t5, e3, r3, n3) { let i3 = 0; for (let s3 = e3, a2 = r3 - n3; s3 < r3; s3 += n3) i3 += (t5[a2] - t5[s3]) * (t5[s3 + 1] + t5[a2 + 1]), a2 = s3; return i3; - }(t4, e2, r2, n2) > 0) for (let i3 = e2; i3 < r2; i3 += n2) s2 = tl(i3 / n2 | 0, t4[i3], t4[i3 + 1], s2); + })(t4, e2, r2, n2) > 0) for (let i3 = e2; i3 < r2; i3 += n2) s2 = tl(i3 / n2 | 0, t4[i3], t4[i3 + 1], s2); else for (let i3 = r2 - n2; i3 >= e2; i3 -= n2) s2 = tl(i3 / n2 | 0, t4[i3], t4[i3 + 1], s2); return s2 && Xo(s2, s2.next) && (el(s2), s2 = s2.next), s2; } @@ -228214,12 +228357,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function To(t4, e2, r2, n2, i2, s2, a2) { if (!t4) return; - !a2 && s2 && function(t5, e3, r3, n3) { + !a2 && s2 && (function(t5, e3, r3, n3) { let i3 = t5; do { 0 === i3.z && (i3.z = qo(i3.x, i3.y, e3, r3, n3)), i3.prevZ = i3.prev, i3.nextZ = i3.next, i3 = i3.next; } while (i3 !== t5); - i3.prevZ.nextZ = null, i3.prevZ = null, function(t6) { + i3.prevZ.nextZ = null, i3.prevZ = null, (function(t6) { let e4, r4 = 1; do { let n4, i4 = t6; @@ -228235,8 +228378,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } s3.nextZ = null, r4 *= 2; } while (e4 > 1); - }(i3); - }(t4, n2, i2, s2); + })(i3); + })(t4, n2, i2, s2); let o2 = t4; for (; t4.prev !== t4.next; ) { const l2 = t4.prev, u2 = t4.next; @@ -228304,7 +228447,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4.x - e2.x; } function Ro(t4, e2) { - const r2 = function(t5, e3) { + const r2 = (function(t5, e3) { let r3 = e3; const n3 = t5.x, i2 = t5.y; let s2, a2 = -1 / 0; @@ -228327,7 +228470,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r3 = r3.next; } while (r3 !== o2); return s2; - }(t4, e2); + })(t4, e2); if (!r2) return e2; const n2 = Qo(r2, t4); return Fo(n2, n2.next), Fo(r2, r2.next); @@ -228349,21 +228492,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return (i2 - a2) * (e2 - o2) >= (t4 - a2) * (s2 - o2) && (t4 - a2) * (n2 - o2) >= (r2 - a2) * (e2 - o2) && (r2 - a2) * (s2 - o2) >= (i2 - a2) * (n2 - o2); } function Go(t4, e2) { - return t4.next.i !== e2.i && t4.prev.i !== e2.i && !function(t5, e3) { + return t4.next.i !== e2.i && t4.prev.i !== e2.i && !(function(t5, e3) { let r2 = t5; do { if (r2.i !== t5.i && r2.next.i !== t5.i && r2.i !== e3.i && r2.next.i !== e3.i && Ho(r2, r2.next, t5, e3)) return true; r2 = r2.next; } while (r2 !== t5); return false; - }(t4, e2) && (Wo(t4, e2) && Wo(e2, t4) && function(t5, e3) { + })(t4, e2) && (Wo(t4, e2) && Wo(e2, t4) && (function(t5, e3) { let r2 = t5, n2 = false; const i2 = (t5.x + e3.x) / 2, s2 = (t5.y + e3.y) / 2; do { r2.y > s2 != r2.next.y > s2 && r2.next.y !== r2.y && i2 < (r2.next.x - r2.x) * (s2 - r2.y) / (r2.next.y - r2.y) + r2.x && (n2 = !n2), r2 = r2.next; } while (r2 !== t5); return n2; - }(t4, e2) && (Ko(t4.prev, t4, e2.prev) || Ko(t4, e2.prev, e2)) || Xo(t4, e2) && Ko(t4.prev, t4, t4.next) > 0 && Ko(e2.prev, e2, e2.next) > 0); + })(t4, e2) && (Ko(t4.prev, t4, e2.prev) || Ko(t4, e2.prev, e2)) || Xo(t4, e2) && Ko(t4.prev, t4, t4.next) > 0 && Ko(e2.prev, e2, e2.next) > 0); } function Ko(t4, e2, r2) { return (e2.y - t4.y) * (r2.x - e2.x) - (e2.x - t4.x) * (r2.y - e2.y); @@ -228422,7 +228565,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class sl { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.layoutVertexArray = new Ks(), this.indexArray = new na(), this.indexArray2 = new ia(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.segments2 = new oa(), this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.layoutVertexArray = new Ks(), this.indexArray = new na(), this.indexArray2 = new ia(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.segments2 = new oa(), this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { this.hasPattern = nl("fill", this.layers, e2); @@ -228433,7 +228576,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const h2 = i2 ? n2.evaluate(c2, {}, r2, e2.availableImages) : void 0, p2 = { id: o2, properties: a2.properties, type: a2.type, sourceLayerIndex: u2, index: l2, geometry: t5 ? c2.geometry : Oa(a2), patterns: {}, sortKey: h2 }; s2.push(p2); } - i2 && s2.sort((t5, e3) => t5.sortKey - e3.sortKey); + i2 && s2.sort(((t5, e3) => t5.sortKey - e3.sortKey)); for (const n3 of s2) { const { geometry: i3, index: s3, sourceLayerIndex: a2 } = n3; if (this.hasPattern) { @@ -228516,12 +228659,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.properties = {}, this.extent = r2, this.type = 0, this._pbf = t4, this._geometry = -1, this._keys = n2, this._values = i2, t4.readFields(gl2, this, e2); } function gl2(t4, e2, r2) { - 1 == t4 ? e2.id = r2.readVarint() : 2 == t4 ? function(t5, e3) { + 1 == t4 ? e2.id = r2.readVarint() : 2 == t4 ? (function(t5, e3) { for (var r3 = t5.readVarint() + t5.pos; t5.pos < r3; ) { var n2 = e3._keys[t5.readVarint()], i2 = e3._values[t5.readVarint()]; e3.properties[n2] = i2; } - }(r2, e2) : 3 == t4 ? e2.type = r2.readVarint() : 4 == t4 && (e2._geometry = r2.pos); + })(r2, e2) : 3 == t4 ? e2.type = r2.readVarint() : 4 == t4 && (e2._geometry = r2.pos); } function xl(t4) { for (var e2, r2, n2 = 0, i2 = 0, s2 = t4.length, a2 = s2 - 1; i2 < s2; a2 = i2++) n2 += ((r2 = t4[a2]).x - (e2 = t4[i2]).x) * (e2.y + r2.y); @@ -228572,7 +228715,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (n2 = 0; n2 < l2.length; n2++) c2(l2[n2]); break; case 3: - for (l2 = function(t5) { + for (l2 = (function(t5) { var e3 = t5.length; if (e3 <= 1) return [t5]; for (var r3, n3, i3 = [], s3 = 0; s3 < e3; s3++) { @@ -228580,7 +228723,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ 0 !== a3 && (void 0 === n3 && (n3 = a3 < 0), n3 === a3 < 0 ? (r3 && i3.push(r3), r3 = [t5[s3]]) : r3.push(t5[s3])); } return r3 && i3.push(r3), i3; - }(l2), n2 = 0; n2 < l2.length; n2++) for (i2 = 0; i2 < l2[n2].length; i2++) c2(l2[n2][i2]); + })(l2), n2 = 0; n2 < l2.length; n2++) for (i2 = 0; i2 < l2[n2].length; i2++) c2(l2[n2][i2]); } 1 === l2.length ? l2 = l2[0] : u2 = "Multi" + u2; var p2 = { type: "Feature", geometry: { type: u2, coordinates: l2 }, properties: this.properties }; @@ -228591,13 +228734,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.version = 1, this.name = null, this.extent = 4096, this.length = 0, this._pbf = t4, this._keys = [], this._values = [], this._features = [], t4.readFields(_l, this, e2), this.length = this._features.length; } function _l(t4, e2, r2) { - 15 === t4 ? e2.version = r2.readVarint() : 1 === t4 ? e2.name = r2.readString() : 5 === t4 ? e2.extent = r2.readVarint() : 2 === t4 ? e2._features.push(r2.pos) : 3 === t4 ? e2._keys.push(r2.readString()) : 4 === t4 && e2._values.push(function(t5) { + 15 === t4 ? e2.version = r2.readVarint() : 1 === t4 ? e2.name = r2.readString() : 5 === t4 ? e2.extent = r2.readVarint() : 2 === t4 ? e2._features.push(r2.pos) : 3 === t4 ? e2._keys.push(r2.readString()) : 4 === t4 && e2._values.push((function(t5) { for (var e3 = null, r3 = t5.readVarint() + t5.pos; t5.pos < r3; ) { var n2 = t5.readVarint() >> 3; e3 = 1 === n2 ? t5.readString() : 2 === n2 ? t5.readFloat() : 3 === n2 ? t5.readDouble() : 4 === n2 ? t5.readVarint64() : 5 === n2 ? t5.readVarint() : 6 === n2 ? t5.readSVarint() : 7 === n2 ? t5.readBoolean() : null; } return e3; - }(r2)); + })(r2)); } wl.prototype.feature = function(t4) { if (t4 < 0 || t4 >= this._features.length) throw new Error("feature index out of bounds"); @@ -228621,7 +228764,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class zl { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Xs(), this.centroidVertexArray = new Zs(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.layoutVertexArray = new Xs(), this.centroidVertexArray = new Zs(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { this.features = [], this.hasPattern = nl("fill-extrusion", this.layers, e2); @@ -228701,7 +228844,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4.x === e2.x && (t4.x < 0 || t4.x > $a) || t4.y === e2.y && (t4.y < 0 || t4.y > $a); } function Cl(t4) { - return t4.every((t5) => t5.x < 0) || t4.every((t5) => t5.x > $a) || t4.every((t5) => t5.y < 0) || t4.every((t5) => t5.y > $a); + return t4.every(((t5) => t5.x < 0)) || t4.every(((t5) => t5.x > $a)) || t4.every(((t5) => t5.y < 0)) || t4.every(((t5) => t5.y > $a)); } let Bl; wi("FillExtrusionBucket", zl, { omit: ["layers", "features"] }); @@ -228722,14 +228865,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return true; } queryIntersectsFeature(t4, e2, r2, n2, i2, a2, o2, l2) { - const u2 = ro(t4, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), a2.angle, o2), c2 = this.paint.get("fill-extrusion-height").evaluate(e2, r2), h2 = this.paint.get("fill-extrusion-base").evaluate(e2, r2), p2 = function(t5, e3, r3, n3) { + const u2 = ro(t4, this.paint.get("fill-extrusion-translate"), this.paint.get("fill-extrusion-translate-anchor"), a2.angle, o2), c2 = this.paint.get("fill-extrusion-height").evaluate(e2, r2), h2 = this.paint.get("fill-extrusion-base").evaluate(e2, r2), p2 = (function(t5, e3, r3, n3) { const i3 = []; for (const r4 of t5) { const t6 = [r4.x, r4.y, 0, 1]; po(t6, t6, e3), i3.push(new s(t6[0] / t6[3], t6[1] / t6[3])); } return i3; - }(u2, l2), f2 = function(t5, e3, r3, n3) { + })(u2, l2), f2 = (function(t5, e3, r3, n3) { const i3 = [], a3 = [], o3 = n3[8] * e3, l3 = n3[9] * e3, u3 = n3[10] * e3, c3 = n3[11] * e3, h3 = n3[8] * r3, p3 = n3[9] * r3, f3 = n3[10] * r3, d2 = n3[11] * r3; for (const e4 of t5) { const t6 = [], r4 = []; @@ -228742,8 +228885,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i3.push(t6), a3.push(r4); } return [i3, a3]; - }(n2, h2, c2, l2); - return function(t5, e3, r3) { + })(n2, h2, c2, l2); + return (function(t5, e3, r3) { let n3 = 1 / 0; Za(r3, e3) && (n3 = Tl(r3, e3[0])); for (let i3 = 0; i3 < e3.length; i3++) { @@ -228754,7 +228897,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return n3 !== 1 / 0 && n3; - }(f2[0], f2[1], p2); + })(f2[0], f2[1], p2); } } function Fl(t4, e2) { @@ -228781,9 +228924,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const $l = ls([{ name: "a_pos_normal", components: 2, type: "Int16" }, { name: "a_data", components: 4, type: "Uint8" }], 4), { members: Ll } = $l, Dl = ls([{ name: "a_uv_x", components: 1, type: "Float32" }, { name: "a_split_index", components: 1, type: "Float32" }]), { members: Ol } = Dl, jl = fl.VectorTileFeature.types, Rl = Math.cos(Math.PI / 180 * 37.5), Ul = Math.pow(2, 14) / 0.5; class ql { constructor(t4) { - this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map((t5) => t5.id), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach((t5) => { + this.zoom = t4.zoom, this.overscaling = t4.overscaling, this.layers = t4.layers, this.layerIds = this.layers.map(((t5) => t5.id)), this.index = t4.index, this.hasPattern = false, this.patternFeatures = [], this.lineClipsArray = [], this.gradients = {}, this.layers.forEach(((t5) => { this.gradients[t5.id] = {}; - }), this.layoutVertexArray = new Hs(), this.layoutVertexArray2 = new Ys(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter((t5) => t5.isStateDependent()).map((t5) => t5.id); + })), this.layoutVertexArray = new Hs(), this.layoutVertexArray2 = new Ys(), this.indexArray = new na(), this.programConfigurations = new Ea(t4.layers, t4.zoom), this.segments = new oa(), this.maxLineLength = 0, this.stateDependentLayerIds = this.layers.filter(((t5) => t5.isStateDependent())).map(((t5) => t5.id)); } populate(t4, e2, r2) { this.hasPattern = nl("line", this.layers, e2); @@ -228794,7 +228937,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const c2 = i2 ? n2.evaluate(u2, {}, r2) : void 0, h2 = { id: a2, properties: e3.properties, type: e3.type, sourceLayerIndex: l2, index: o2, geometry: t5 ? u2.geometry : Oa(e3), patterns: {}, sortKey: c2 }; s2.push(h2); } - i2 && s2.sort((t5, e3) => t5.sortKey - e3.sortKey); + i2 && s2.sort(((t5, e3) => t5.sortKey - e3.sortKey)); for (const n3 of s2) { const { geometry: i3, index: s3, sourceLayerIndex: a2 } = n3; if (this.hasPattern) { @@ -228939,9 +229082,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ _handleSpecialPaintPropertyUpdate(t4) { if ("line-gradient" === t4) { const t5 = this.gradientExpression(); - this.stepInterpolant = !!function(t6) { + this.stepInterpolant = !!(function(t6) { return void 0 !== t6._styleExpression; - }(t5) && t5._styleExpression.expression instanceof Ae, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER; + })(t5) && t5._styleExpression.expression instanceof Ae, this.gradientVersion = (this.gradientVersion + 1) % Number.MAX_SAFE_INTEGER; } } gradientExpression() { @@ -228959,7 +229102,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } queryIntersectsFeature(t4, e2, r2, n2, i2, a2, o2) { const l2 = ro(t4, this.paint.get("line-translate"), this.paint.get("line-translate-anchor"), a2.angle, o2), u2 = o2 / 2 * Yl(this.paint.get("line-width").evaluate(e2, r2), this.paint.get("line-gap-width").evaluate(e2, r2)), c2 = this.paint.get("line-offset").evaluate(e2, r2); - return c2 && (n2 = function(t5, e3) { + return c2 && (n2 = (function(t5, e3) { const r3 = []; for (let n3 = 0; n3 < t5.length; n3++) { const i3 = t5[n3], a3 = []; @@ -228970,7 +229113,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r3.push(a3); } return r3; - }(n2, c2 * o2)), function(t5, e3, r3) { + })(n2, c2 * o2)), (function(t5, e3, r3) { for (let n3 = 0; n3 < e3.length; n3++) { const i3 = e3[n3]; if (t5.length >= 3) { @@ -228979,7 +229122,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (Ga(t5, i3, r3)) return true; } return false; - }(l2, n2, u2); + })(l2, n2, u2); } isTileClipped() { return true; @@ -228994,12 +229137,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ ls([{ type: "Int16", name: "anchorPointX" }, { type: "Int16", name: "anchorPointY" }, { type: "Int16", name: "x1" }, { type: "Int16", name: "y1" }, { type: "Int16", name: "x2" }, { type: "Int16", name: "y2" }, { type: "Uint32", name: "featureIndex" }, { type: "Uint16", name: "sourceLayerIndex" }, { type: "Uint16", name: "bucketIndex" }]); const tu = ls([{ name: "a_pos", components: 2, type: "Int16" }, { name: "a_anchor_pos", components: 2, type: "Int16" }, { name: "a_extrude", components: 2, type: "Int16" }], 4), eu = ls([{ name: "a_pos", components: 2, type: "Float32" }, { name: "a_radius", components: 1, type: "Float32" }, { name: "a_flags", components: 2, type: "Int16" }], 4); function ru(t4, e2, r2) { - return t4.sections.forEach((t5) => { - t5.text = function(t6, e3, r3) { + return t4.sections.forEach(((t5) => { + t5.text = (function(t6, e3, r3) { const n2 = e3.layout.get("text-transform").evaluate(r3, {}); return "uppercase" === n2 ? t6 = t6.toLocaleUpperCase() : "lowercase" === n2 && (t6 = t6.toLocaleLowerCase()), Ri.applyArabicShaping && (t6 = Ri.applyArabicShaping(t6)), t6; - }(t5.text, e2, r2); - }), t4; + })(t5.text, e2, r2); + })), t4; } ls([{ name: "triangle", components: 3, type: "Uint16" }]), ls([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Uint16", name: "glyphStartIndex" }, { type: "Uint16", name: "numGlyphs" }, { type: "Uint32", name: "vertexStartIndex" }, { type: "Uint32", name: "lineStartIndex" }, { type: "Uint32", name: "lineLength" }, { type: "Uint16", name: "segment" }, { type: "Uint16", name: "lowerSize" }, { type: "Uint16", name: "upperSize" }, { type: "Float32", name: "lineOffsetX" }, { type: "Float32", name: "lineOffsetY" }, { type: "Uint8", name: "writingMode" }, { type: "Uint8", name: "placedOrientation" }, { type: "Uint8", name: "hidden" }, { type: "Uint32", name: "crossTileID" }, { type: "Int16", name: "associatedIconIndex" }]), ls([{ type: "Int16", name: "anchorX" }, { type: "Int16", name: "anchorY" }, { type: "Int16", name: "rightJustifiedTextSymbolIndex" }, { type: "Int16", name: "centerJustifiedTextSymbolIndex" }, { type: "Int16", name: "leftJustifiedTextSymbolIndex" }, { type: "Int16", name: "verticalPlacedTextSymbolIndex" }, { type: "Int16", name: "placedIconSymbolIndex" }, { type: "Int16", name: "verticalPlacedIconSymbolIndex" }, { type: "Uint16", name: "key" }, { type: "Uint16", name: "textBoxStartIndex" }, { type: "Uint16", name: "textBoxEndIndex" }, { type: "Uint16", name: "verticalTextBoxStartIndex" }, { type: "Uint16", name: "verticalTextBoxEndIndex" }, { type: "Uint16", name: "iconBoxStartIndex" }, { type: "Uint16", name: "iconBoxEndIndex" }, { type: "Uint16", name: "verticalIconBoxStartIndex" }, { type: "Uint16", name: "verticalIconBoxEndIndex" }, { type: "Uint16", name: "featureIndex" }, { type: "Uint16", name: "numHorizontalGlyphVertices" }, { type: "Uint16", name: "numVerticalGlyphVertices" }, { type: "Uint16", name: "numIconVertices" }, { type: "Uint16", name: "numVerticalIconVertices" }, { type: "Uint16", name: "useRuntimeCollisionCircles" }, { type: "Uint32", name: "crossTileID" }, { type: "Float32", name: "textBoxScale" }, { type: "Float32", name: "collisionCircleDiameter" }, { type: "Uint16", name: "textAnchorOffsetStartIndex" }, { type: "Uint16", name: "textAnchorOffsetEndIndex" }]), ls([{ type: "Float32", name: "offsetX" }]), ls([{ type: "Int16", name: "x" }, { type: "Int16", name: "y" }, { type: "Int16", name: "tileUnitDistanceFromAnchor" }]), ls([{ type: "Uint16", name: "textAnchor" }, { type: "Float32", components: 2, name: "textOffset" }]); const nu = { "!": "\uFE15", "#": "\uFF03", $: "\uFF04", "%": "\uFF05", "&": "\uFF06", "(": "\uFE35", ")": "\uFE36", "*": "\uFF0A", "+": "\uFF0B", ",": "\uFE10", "-": "\uFE32", ".": "\u30FB", "/": "\uFF0F", ":": "\uFE13", ";": "\uFE14", "<": "\uFE3F", "=": "\uFF1D", ">": "\uFE40", "?": "\uFE16", "@": "\uFF20", "[": "\uFE47", "\\": "\uFF3C", "]": "\uFE48", "^": "\uFF3E", _: "\uFE33", "`": "\uFF40", "{": "\uFE37", "|": "\u2015", "}": "\uFE38", "~": "\uFF5E", "\xA2": "\uFFE0", "\xA3": "\uFFE1", "\xA5": "\uFFE5", "\xA6": "\uFFE4", "\xAC": "\uFFE2", "\xAF": "\uFFE3", "\u2013": "\uFE32", "\u2014": "\uFE31", "\u2018": "\uFE43", "\u2019": "\uFE44", "\u201C": "\uFE41", "\u201D": "\uFE42", "\u2026": "\uFE19", "\u2027": "\u30FB", "\u20A9": "\uFFE6", "\u3001": "\uFE11", "\u3002": "\uFE12", "\u3008": "\uFE3F", "\u3009": "\uFE40", "\u300A": "\uFE3D", "\u300B": "\uFE3E", "\u300C": "\uFE41", "\u300D": "\uFE42", "\u300E": "\uFE43", "\u300F": "\uFE44", "\u3010": "\uFE3B", "\u3011": "\uFE3C", "\u3014": "\uFE39", "\u3015": "\uFE3A", "\u3016": "\uFE17", "\u3017": "\uFE18", "\uFF01": "\uFE15", "\uFF08": "\uFE35", "\uFF09": "\uFE36", "\uFF0C": "\uFE10", "\uFF0D": "\uFE32", "\uFF0E": "\u30FB", "\uFF1A": "\uFE13", "\uFF1B": "\uFE14", "\uFF1C": "\uFE3F", "\uFF1E": "\uFE40", "\uFF1F": "\uFE16", "\uFF3B": "\uFE47", "\uFF3D": "\uFE48", "\uFF3F": "\uFE33", "\uFF5B": "\uFE37", "\uFF5C": "\u2015", "\uFF5D": "\uFE38", "\uFF5F": "\uFE35", "\uFF60": "\uFE36", "\uFF61": "\uFE12", "\uFF62": "\uFE41", "\uFF63": "\uFE42" }; @@ -229101,7 +229244,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.pos += 8, t4; }, readVarint: function(t4) { var e2, r2, n2 = this.buf; - return e2 = 127 & (r2 = n2[this.pos++]), r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 7, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 14, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 21, r2 < 128 ? e2 : function(t5, e3, r3) { + return e2 = 127 & (r2 = n2[this.pos++]), r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 7, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 14, r2 < 128 ? e2 : (e2 |= (127 & (r2 = n2[this.pos++])) << 21, r2 < 128 ? e2 : (function(t5, e3, r3) { var n3, i2, s2 = r3.buf; if (n3 = (112 & (i2 = s2[r3.pos++])) >> 4, i2 < 128) return fu(t5, n3, e3); if (n3 |= (127 & (i2 = s2[r3.pos++])) << 3, i2 < 128) return fu(t5, n3, e3); @@ -229110,7 +229253,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (n3 |= (127 & (i2 = s2[r3.pos++])) << 24, i2 < 128) return fu(t5, n3, e3); if (n3 |= (1 & (i2 = s2[r3.pos++])) << 31, i2 < 128) return fu(t5, n3, e3); throw new Error("Expected varint not more than 10 bytes"); - }(e2 |= (15 & (r2 = n2[this.pos])) << 28, t4, this)))); + })(e2 |= (15 & (r2 = n2[this.pos])) << 28, t4, this)))); }, readVarint64: function() { return this.readVarint(true); }, readSVarint: function() { @@ -229120,16 +229263,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return Boolean(this.readVarint()); }, readString: function() { var t4 = this.readVarint() + this.pos, e2 = this.pos; - return this.pos = t4, t4 - e2 >= 12 && hu ? function(t5, e3, r2) { + return this.pos = t4, t4 - e2 >= 12 && hu ? (function(t5, e3, r2) { return hu.decode(t5.subarray(e3, r2)); - }(this.buf, e2, t4) : function(t5, e3, r2) { + })(this.buf, e2, t4) : (function(t5, e3, r2) { for (var n2 = "", i2 = e3; i2 < r2; ) { var s2, a2, o2, l2 = t5[i2], u2 = null, c2 = l2 > 239 ? 4 : l2 > 223 ? 3 : l2 > 191 ? 2 : 1; if (i2 + c2 > r2) break; 1 === c2 ? l2 < 128 && (u2 = l2) : 2 === c2 ? 128 == (192 & (s2 = t5[i2 + 1])) && (u2 = (31 & l2) << 6 | 63 & s2) <= 127 && (u2 = null) : 3 === c2 ? (a2 = t5[i2 + 2], 128 == (192 & (s2 = t5[i2 + 1])) && 128 == (192 & a2) && ((u2 = (15 & l2) << 12 | (63 & s2) << 6 | 63 & a2) <= 2047 || u2 >= 55296 && u2 <= 57343) && (u2 = null)) : 4 === c2 && (a2 = t5[i2 + 2], o2 = t5[i2 + 3], 128 == (192 & (s2 = t5[i2 + 1])) && 128 == (192 & a2) && 128 == (192 & o2) && ((u2 = (15 & l2) << 18 | (63 & s2) << 12 | (63 & a2) << 6 | 63 & o2) <= 65535 || u2 >= 1114112) && (u2 = null)), null === u2 ? (u2 = 65533, c2 = 1) : u2 > 65535 && (u2 -= 65536, n2 += String.fromCharCode(u2 >>> 10 & 1023 | 55296), u2 = 56320 | 1023 & u2), n2 += String.fromCharCode(u2), i2 += c2; } return n2; - }(this.buf, e2, t4); + })(this.buf, e2, t4); }, readBytes: function() { var t4 = this.readVarint() + this.pos, e2 = this.buf.subarray(this.pos, t4); return this.pos = t4, e2; @@ -229206,16 +229349,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }, writeSFixed64: function(t4) { this.realloc(8), ku(this.buf, -1 & t4, this.pos), ku(this.buf, Math.floor(t4 * cu), this.pos + 4), this.pos += 8; }, writeVarint: function(t4) { - (t4 = +t4 || 0) > 268435455 || t4 < 0 ? function(t5, e2) { + (t4 = +t4 || 0) > 268435455 || t4 < 0 ? (function(t5, e2) { var r2, n2; if (t5 >= 0 ? (r2 = t5 % 4294967296 | 0, n2 = t5 / 4294967296 | 0) : (n2 = ~(-t5 / 4294967296), 4294967295 ^ (r2 = ~(-t5 % 4294967296)) ? r2 = r2 + 1 | 0 : (r2 = 0, n2 = n2 + 1 | 0)), t5 >= 18446744073709552e3 || t5 < -18446744073709552e3) throw new Error("Given varint doesn't fit into 10 bytes"); - e2.realloc(10), function(t6, e3, r3) { + e2.realloc(10), (function(t6, e3, r3) { r3.buf[r3.pos++] = 127 & t6 | 128, t6 >>>= 7, r3.buf[r3.pos++] = 127 & t6 | 128, t6 >>>= 7, r3.buf[r3.pos++] = 127 & t6 | 128, t6 >>>= 7, r3.buf[r3.pos++] = 127 & t6 | 128, r3.buf[r3.pos] = 127 & (t6 >>>= 7); - }(r2, 0, e2), function(t6, e3) { + })(r2, 0, e2), (function(t6, e3) { var r3 = (7 & t6) << 4; e3.buf[e3.pos++] |= r3 | ((t6 >>>= 3) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6 | ((t6 >>>= 7) ? 128 : 0), t6 && (e3.buf[e3.pos++] = 127 & t6))))); - }(n2, e2); - }(t4, this) : (this.realloc(4), this.buf[this.pos++] = 127 & t4 | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = t4 >>> 7 & 127)))); + })(n2, e2); + })(t4, this) : (this.realloc(4), this.buf[this.pos++] = 127 & t4 | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = 127 & (t4 >>>= 7) | (t4 > 127 ? 128 : 0), t4 <= 127 || (this.buf[this.pos++] = t4 >>> 7 & 127)))); }, writeSVarint: function(t4) { this.writeVarint(t4 < 0 ? 2 * -t4 - 1 : 2 * t4); }, writeBoolean: function(t4) { @@ -229223,7 +229366,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }, writeString: function(t4) { t4 = String(t4), this.realloc(4 * t4.length), this.pos++; var e2 = this.pos; - this.pos = function(t5, e3, r3) { + this.pos = (function(t5, e3, r3) { for (var n2, i2, s2 = 0; s2 < e3.length; s2++) { if ((n2 = e3.charCodeAt(s2)) > 55295 && n2 < 57344) { if (!i2) { @@ -229239,7 +229382,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ n2 < 128 ? t5[r3++] = n2 : (n2 < 2048 ? t5[r3++] = n2 >> 6 | 192 : (n2 < 65536 ? t5[r3++] = n2 >> 12 | 224 : (t5[r3++] = n2 >> 18 | 240, t5[r3++] = n2 >> 12 & 63 | 128), t5[r3++] = n2 >> 6 & 63 | 128), t5[r3++] = 63 & n2 | 128); } return r3; - }(this.buf, t4, this.pos); + })(this.buf, t4, this.pos); var r2 = this.pos - e2; r2 >= 128 && du(e2, r2, this), this.pos = e2 - 1, this.writeVarint(r2), this.pos += r2; }, writeFloat: function(t4) { @@ -229317,7 +229460,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ function Eu(t4) { let e2 = 0, r2 = 0; for (const n3 of t4) e2 += n3.w * n3.h, r2 = Math.max(r2, n3.w); - t4.sort((t5, e3) => e3.h - t5.h); + t4.sort(((t5, e3) => e3.h - t5.h)); const n2 = [{ x: 0, y: 0, w: Math.max(Math.ceil(Math.sqrt(e2 / 0.95)), r2), h: 1 / 0 }]; let i2 = 0, s2 = 0; for (const e3 of t4) for (let t5 = n2.length - 1; t5 >= 0; t5--) { @@ -229426,14 +229569,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.text.charCodeAt(t4); } verticalizePunctuation() { - this.text = function(t4) { + this.text = (function(t4) { let e2 = ""; for (let r2 = 0; r2 < t4.length; r2++) { const n2 = t4.charCodeAt(r2 + 1) || null, i2 = t4.charCodeAt(r2 - 1) || null; e2 += n2 && $i(n2) && !nu[t4[r2 + 1]] || i2 && $i(i2) && !nu[t4[r2 - 1]] || !nu[t4[r2]] ? t4[r2] : nu[t4[r2]]; } return e2; - }(this.text); + })(this.text); } trim() { let t4 = 0; @@ -229450,7 +229593,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.text; } getMaxScale() { - return this.sectionIndex.reduce((t4, e2) => Math.max(t4, this.sections[e2].scale), 0); + return this.sectionIndex.reduce(((t4, e2) => Math.max(t4, this.sections[e2].scale)), 0); } addTextSection(t4, e2) { this.text += t4.text, this.sections.push(Ou.forText(t4.scale, t4.fontStack || e2)); @@ -229488,14 +229631,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t5 = new ju(); t5.text = e3[0], t5.sectionIndex = e3[1], t5.sections = m2.sections, g2.push(t5); } - } else g2 = function(t4, e3) { + } else g2 = (function(t4, e3) { const r3 = [], n3 = t4.text; let i3 = 0; for (const n4 of e3) r3.push(t4.substring(i3, n4)), i3 = n4; return i3 < n3.length && r3.push(t4.substring(i3, n3.length)), r3; - }(m2, Yu(m2, c2, a2, r2, i2, d2)); + })(m2, Yu(m2, c2, a2, r2, i2, d2)); const b2 = [], w2 = { positionedLines: b2, text: m2.toString(), top: h2[1], bottom: h2[1], left: h2[0], right: h2[0], writingMode: p2, iconsInText: false, verticalizable: false }; - return function(e3, r3, n3, i3, s3, a3, o3, l3, u3, c3, h3, p3) { + return (function(e3, r3, n3, i3, s3, a3, o3, l3, u3, c3, h3, p3) { let f3 = 0, d3 = Du, y3 = 0, m3 = 0; const g3 = "right" === l3 ? 1 : "left" === l3 ? 0 : 0.5; let x3 = 0; @@ -229545,10 +229688,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ c4 = s4 !== a4 ? -o4 * n4 - Du : (-n4 * l4 + 0.5) * a4; for (const e5 of t4) for (const t5 of e5.positionedGlyphs) t5.x += u4, t5.y += c4; })(e3.positionedLines, g3, w3, _2, y3, m3, a3, b3, s3.length), e3.top += -_2 * b3, e3.bottom = e3.top + b3, e3.left += -w3 * y3, e3.right = e3.left + y3; - }(w2, r2, n2, i2, g2, o2, l2, u2, p2, c2, f2, y2), !function(t4) { + })(w2, r2, n2, i2, g2, o2, l2, u2, p2, c2, f2, y2), !(function(t4) { for (const e3 of t4) if (0 !== e3.positionedGlyphs.length) return false; return true; - }(b2) && w2; + })(b2) && w2; } const Uu = { 9: true, 10: true, 11: true, 12: true, 13: true, 32: true }, qu = { 10: true, 32: true, 38: true, 41: true, 43: true, 45: true, 47: true, 173: true, 183: true, 8203: true, 8208: true, 8211: true, 8231: true }, Nu = { 40: true }; function Zu(t4, e2, r2, n2, i2, s2) { @@ -229582,14 +229725,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } function Yu(t4, e2, r2, n2, i2, s2) { if (!t4) return []; - const a2 = [], o2 = function(t5, e3, r3, n3, i3, s3) { + const a2 = [], o2 = (function(t5, e3, r3, n3, i3, s3) { let a3 = 0; for (let r4 = 0; r4 < t5.length(); r4++) { const o3 = t5.getSection(r4); a3 += Zu(t5.getCharCode(r4), o3, n3, i3, e3, s3); } return a3 / Math.max(1, Math.ceil(a3 / r3)); - }(t4, e2, r2, n2, i2, s2), l2 = t4.text.indexOf("\u200B") >= 0; + })(t4, e2, r2, n2, i2, s2), l2 = t4.text.indexOf("\u200B") >= 0; let u2 = 0; for (let r3 = 0; r3 < t4.length(); r3++) { const h2 = t4.getSection(r3), p2 = t4.getCharCode(r3); @@ -229727,14 +229870,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ wi("CollisionBuffers", fc); class dc { constructor(e2) { - this.collisionBoxArray = e2.collisionBoxArray, this.zoom = e2.zoom, this.overscaling = e2.overscaling, this.layers = e2.layers, this.layerIds = this.layers.map((t4) => t4.id), this.index = e2.index, this.pixelRatio = e2.pixelRatio, this.sourceLayerIndex = e2.sourceLayerIndex, this.hasPattern = false, this.hasRTLText = false, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = lo([]), this.placementViewportMatrix = lo([]); + this.collisionBoxArray = e2.collisionBoxArray, this.zoom = e2.zoom, this.overscaling = e2.overscaling, this.layers = e2.layers, this.layerIds = this.layers.map(((t4) => t4.id)), this.index = e2.index, this.pixelRatio = e2.pixelRatio, this.sourceLayerIndex = e2.sourceLayerIndex, this.hasPattern = false, this.hasRTLText = false, this.sortKeyRanges = [], this.collisionCircleArray = [], this.placementInvProjMatrix = lo([]), this.placementViewportMatrix = lo([]); const r2 = this.layers[0]._unevaluatedLayout._values; this.textSizeData = sc(this.zoom, r2["text-size"]), this.iconSizeData = sc(this.zoom, r2["icon-size"]); const n2 = this.layers[0].layout, i2 = n2.get("symbol-sort-key"), s2 = n2.get("symbol-z-order"); - this.canOverlap = "never" !== ac(n2, "text-overlap", "text-allow-overlap") || "never" !== ac(n2, "icon-overlap", "icon-allow-overlap") || n2.get("text-ignore-placement") || n2.get("icon-ignore-placement"), this.sortFeaturesByKey = "viewport-y" !== s2 && !i2.isConstant(), this.sortFeaturesByY = ("viewport-y" === s2 || "auto" === s2 && !this.sortFeaturesByKey) && this.canOverlap, "point" === n2.get("symbol-placement") && (this.writingModes = n2.get("text-writing-mode").map((e3) => t.ah[e3])), this.stateDependentLayerIds = this.layers.filter((t4) => t4.isStateDependent()).map((t4) => t4.id), this.sourceID = e2.sourceID; + this.canOverlap = "never" !== ac(n2, "text-overlap", "text-allow-overlap") || "never" !== ac(n2, "icon-overlap", "icon-allow-overlap") || n2.get("text-ignore-placement") || n2.get("icon-ignore-placement"), this.sortFeaturesByKey = "viewport-y" !== s2 && !i2.isConstant(), this.sortFeaturesByY = ("viewport-y" === s2 || "auto" === s2 && !this.sortFeaturesByKey) && this.canOverlap, "point" === n2.get("symbol-placement") && (this.writingModes = n2.get("text-writing-mode").map(((e3) => t.ah[e3]))), this.stateDependentLayerIds = this.layers.filter(((t4) => t4.isStateDependent())).map(((t4) => t4.id)), this.sourceID = e2.sourceID; } createArrays() { - this.text = new pc(new Ea(this.layers, this.zoom, (t4) => /^text/.test(t4))), this.icon = new pc(new Ea(this.layers, this.zoom, (t4) => /^icon/.test(t4))), this.glyphOffsetArray = new Os(), this.lineVertexArray = new js(), this.symbolInstances = new Ds(), this.textAnchorOffsets = new Us(); + this.text = new pc(new Ea(this.layers, this.zoom, ((t4) => /^text/.test(t4)))), this.icon = new pc(new Ea(this.layers, this.zoom, ((t4) => /^icon/.test(t4)))), this.glyphOffsetArray = new Os(), this.lineVertexArray = new js(), this.symbolInstances = new Ds(), this.textAnchorOffsets = new Us(); } calculateGlyphDependencies(t4, e2, r2, n2, i2) { for (let s2 = 0; s2 < t4.length; s2++) if (e2[t4.charCodeAt(s2)] = true, (r2 || n2) && i2) { @@ -229770,7 +229913,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } } - "line" === s2.get("symbol-placement") && (this.features = function(t4) { + "line" === s2.get("symbol-placement") && (this.features = (function(t4) { const e3 = {}, r3 = {}, n3 = []; let i3 = 0; function s3(e4) { @@ -229800,8 +229943,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ delete e3[f3], delete r3[d3], r3[l3(p3, n3[i4].geometry, true)] = i4, n3[t5].geometry = null; } else f3 in r3 ? a3(f3, d3, h3) : d3 in e3 ? o3(f3, d3, h3) : (s3(u3), e3[f3] = i3 - 1, r3[d3] = i3 - 1); } - return n3.filter((t5) => t5.geometry); - }(this.features)), this.sortFeaturesByKey && this.features.sort((t4, e3) => t4.sortKey - e3.sortKey); + return n3.filter(((t5) => t5.geometry)); + })(this.features)), this.sortFeaturesByKey && this.features.sort(((t4, e3) => t4.sortKey - e3.sortKey)); } update(t4, e2, r2) { this.stateDependentLayers.length && (this.text.programConfigurations.updatePaintArrays(t4, e2, this.layers, r2), this.icon.programConfigurations.updatePaintArrays(t4, e2, this.layers, r2)); @@ -229923,7 +230066,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = this.symbolInstances.get(t5); n2.push(0 | Math.round(e2 * a2.anchorX + r2 * a2.anchorY)), i2.push(a2.featureIndex); } - return s2.sort((t5, e3) => n2[t5] - n2[e3] || i2[e3] - i2[t5]), s2; + return s2.sort(((t5, e3) => n2[t5] - n2[e3] || i2[e3] - i2[t5])), s2; } addToSortKeyRanges(t4, e2) { const r2 = this.sortKeyRanges[this.sortKeyRanges.length - 1]; @@ -229934,9 +230077,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.symbolInstanceIndexes = this.getSortedSymbolIndexes(t4), this.sortedAngle = t4, this.text.indexArray.clear(), this.icon.indexArray.clear(), this.featureSortOrder = []; for (const t5 of this.symbolInstanceIndexes) { const e2 = this.symbolInstances.get(t5); - this.featureSortOrder.push(e2.featureIndex), [e2.rightJustifiedTextSymbolIndex, e2.centerJustifiedTextSymbolIndex, e2.leftJustifiedTextSymbolIndex].forEach((t6, e3, r2) => { + this.featureSortOrder.push(e2.featureIndex), [e2.rightJustifiedTextSymbolIndex, e2.centerJustifiedTextSymbolIndex, e2.leftJustifiedTextSymbolIndex].forEach(((t6, e3, r2) => { t6 >= 0 && r2.indexOf(t6) === e3 && this.addIndicesForPlacedSymbol(this.text, t6); - }), e2.verticalPlacedTextSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.text, e2.verticalPlacedTextSymbolIndex), e2.placedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.placedIconSymbolIndex), e2.verticalPlacedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.verticalPlacedIconSymbolIndex); + })), e2.verticalPlacedTextSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.text, e2.verticalPlacedTextSymbolIndex), e2.placedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.placedIconSymbolIndex), e2.verticalPlacedIconSymbolIndex >= 0 && this.addIndicesForPlacedSymbol(this.icon, e2.verticalPlacedIconSymbolIndex); } this.text.indexBuffer && this.text.indexBuffer.updateData(this.text.indexArray), this.icon.indexBuffer && this.icon.indexBuffer.updateData(this.icon.indexArray); } @@ -229989,9 +230132,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } getValueAndResolveTokens(t4, e2, r2, n2) { const i2 = this.layout.get(t4).evaluate(e2, {}, r2, n2), s2 = this._unevaluatedLayout._values[t4]; - return s2.isDataDriven() || vn(s2.value) || !i2 ? i2 : function(t5, e3) { - return e3.replace(/{([^{}]+)}/g, (e4, r3) => t5 && r3 in t5 ? String(t5[r3]) : ""); - }(e2.properties, i2); + return s2.isDataDriven() || vn(s2.value) || !i2 ? i2 : (function(t5, e3) { + return e3.replace(/{([^{}]+)}/g, ((e4, r3) => t5 && r3 in t5 ? String(t5[r3]) : "")); + })(e2.properties, i2); } createBucket(t4) { return new dc(t4); @@ -230079,9 +230222,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }); } trigger() { - this._triggered || (this._triggered = true, this._channel ? this._channel.port1.postMessage(true) : setTimeout(() => { + this._triggered || (this._triggered = true, this._channel ? this._channel.port1.postMessage(true) : setTimeout((() => { this._triggered = false, this._methodToThrottle(); - }, 0)); + }), 0)); } remove() { delete this._channel, this._methodToThrottle = () => { @@ -230155,9 +230298,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class Dc { constructor(t4, e2, r2) { - if (!function(t5, e3, r3) { + if (!(function(t5, e3, r3) { return !(t5 < 0 || t5 > 25 || r3 < 0 || r3 >= Math.pow(2, t5) || e3 < 0 || e3 >= Math.pow(2, t5)); - }(t4, e2, r2)) throw new Error(`x=${e2}, y=${r2}, z=${t4} outside of bounds. 0<=x<${Math.pow(2, t4)}, 0<=y<${Math.pow(2, t4)} 0<=z<=25 `); + })(t4, e2, r2)) throw new Error(`x=${e2}, y=${r2}, z=${t4} outside of bounds. 0<=x<${Math.pow(2, t4)}, 0<=y<${Math.pow(2, t4)} 0<=z<=25 `); this.z = t4, this.x = e2, this.y = r2, this.key = Rc(0, t4, t4, e2, r2); } equals(t4) { @@ -230166,11 +230309,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ url(t4, e2, r2) { const n2 = (s2 = this.y, a2 = this.z, o2 = Lc(256 * (i2 = this.x), 256 * (s2 = Math.pow(2, a2) - s2 - 1), a2), l2 = Lc(256 * (i2 + 1), 256 * (s2 + 1), a2), o2[0] + "," + o2[1] + "," + l2[0] + "," + l2[1]); var i2, s2, a2, o2, l2; - const u2 = function(t5, e3, r3) { + const u2 = (function(t5, e3, r3) { let n3, i3 = ""; for (let s3 = t5; s3 > 0; s3--) n3 = 1 << s3 - 1, i3 += (e3 & n3 ? 1 : 0) + (r3 & n3 ? 2 : 0); return i3; - }(this.z, this.x, this.y); + })(this.z, this.x, this.y); return t4[(this.x + this.y) % t4.length].replace(/{prefix}/g, (this.x % 16).toString(16) + (this.y % 16).toString(16)).replace(/{z}/g, String(this.z)).replace(/{x}/g, String(this.x)).replace(/{y}/g, String("tms" === r2 ? Math.pow(2, this.z) - this.y - 1 : this.y)).replace(/{ratio}/g, e2 > 1 ? "@2x" : "").replace(/{quadkey}/g, u2).replace(/{bbox-epsg-3857}/g, n2); } isChildOf(t4) { @@ -230365,7 +230508,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } query(t4, e2, r2, n2) { this.loadVTLayers(); - const i2 = t4.params || {}, a2 = $a / t4.tileSize / t4.scale, o2 = zn(i2.filter), l2 = t4.queryGeometry, u2 = t4.queryPadding * a2, c2 = Kc(l2), h2 = this.grid.query(c2.minX - u2, c2.minY - u2, c2.maxX + u2, c2.maxY + u2), p2 = Kc(t4.cameraQueryGeometry), f2 = this.grid3D.query(p2.minX - u2, p2.minY - u2, p2.maxX + u2, p2.maxY + u2, (e3, r3, n3, i3) => function(t5, e4, r4, n4, i4) { + const i2 = t4.params || {}, a2 = $a / t4.tileSize / t4.scale, o2 = zn(i2.filter), l2 = t4.queryGeometry, u2 = t4.queryPadding * a2, c2 = Kc(l2), h2 = this.grid.query(c2.minX - u2, c2.minY - u2, c2.maxX + u2, c2.maxY + u2), p2 = Kc(t4.cameraQueryGeometry), f2 = this.grid3D.query(p2.minX - u2, p2.minY - u2, p2.maxX + u2, p2.maxY + u2, ((e3, r3, n3, i3) => (function(t5, e4, r4, n4, i4) { for (const s2 of t5) if (e4 <= s2.x && r4 <= s2.y && n4 >= s2.x && i4 >= s2.y) return true; const a3 = [new s(e4, r4), new s(e4, i4), new s(n4, i4), new s(n4, r4)]; if (t5.length > 2) { @@ -230373,7 +230516,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } for (let e5 = 0; e5 < t5.length - 1; e5++) if (Qa(t5[e5], t5[e5 + 1], a3)) return true; return false; - }(t4.cameraQueryGeometry, e3 - u2, r3 - u2, n3 + u2, i3 + u2)); + })(t4.cameraQueryGeometry, e3 - u2, r3 - u2, n3 + u2, i3 + u2))); for (const t5 of f2) h2.push(t5); h2.sort(Xc); const d2 = {}; @@ -230384,16 +230527,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ y2 = u3; const c3 = this.featureIndexArray.get(u3); let p3 = null; - this.loadMatchingFeature(d2, c3.bucketIndex, c3.sourceLayerIndex, c3.featureIndex, o2, i2.layers, i2.availableImages, e2, r2, n2, (e3, r3, n3) => (p3 || (p3 = Oa(e3)), r3.queryIntersectsFeature(l2, e3, n3, p3, this.z, t4.transform, a2, t4.pixelPosMatrix))); + this.loadMatchingFeature(d2, c3.bucketIndex, c3.sourceLayerIndex, c3.featureIndex, o2, i2.layers, i2.availableImages, e2, r2, n2, ((e3, r3, n3) => (p3 || (p3 = Oa(e3)), r3.queryIntersectsFeature(l2, e3, n3, p3, this.z, t4.transform, a2, t4.pixelPosMatrix)))); } return d2; } loadMatchingFeature(t4, e2, r2, n2, i2, s2, a2, o2, l2, u2, c2) { const h2 = this.bucketLayerIDs[e2]; - if (s2 && !function(t5, e3) { + if (s2 && !(function(t5, e3) { for (let r3 = 0; r3 < t5.length; r3++) if (e3.indexOf(t5[r3]) >= 0) return true; return false; - }(s2, h2)) return; + })(s2, h2)) return; const p2 = this.sourceLayerCoder.decode(r2), f2 = this.vtLayers[p2].feature(n2); if (i2.needGeometry) { const t5 = ja(f2, true); @@ -230434,10 +230577,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } function Gc(t4, e2, r2, n2, i2) { - return v(t4, (t5, s2) => { + return v(t4, ((t5, s2) => { const a2 = e2 instanceof Yi ? e2.get(s2) : null; return a2 && a2.evaluate ? a2.evaluate(r2, n2, i2) : a2; - }); + })); } function Kc(t4) { let e2 = 1 / 0, r2 = 1 / 0, n2 = -1 / 0, i2 = -1 / 0; @@ -230604,7 +230747,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } class hh { - constructor(t4 = [], e2 = (t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0) { + constructor(t4 = [], e2 = ((t5, e3) => t5 < e3 ? -1 : t5 > e3 ? 1 : 0)) { if (this.data = t4, this.length = this.data.length, this.compare = e2, this.length > 0) for (let t5 = (this.length >> 1) - 1; t5 >= 0; t5--) this._down(t5); } push(t4) { @@ -230650,7 +230793,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const h2 = new hh([], fh); if (0 === u2) return new s(n2, i2); for (let e3 = n2; e3 < a2; e3 += u2) for (let r3 = i2; r3 < o2; r3 += u2) h2.push(new dh(e3 + c2, r3 + c2, c2, t4)); - let p2 = function(t5) { + let p2 = (function(t5) { let e3 = 0, r3 = 0, n3 = 0; const i3 = t5[0]; for (let t6 = 0, s2 = i3.length, a3 = s2 - 1; t6 < s2; a3 = t6++) { @@ -230658,7 +230801,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r3 += (s3.x + o3.x) * l3, n3 += (s3.y + o3.y) * l3, e3 += 3 * l3; } return new dh(r3 / e3, n3 / e3, 0, t5); - }(t4), f2 = h2.length; + })(t4), f2 = h2.length; for (; h2.length; ) { const n3 = h2.pop(); (n3.d > p2.d || !p2.d) && (p2 = n3, r2 && console.log("found best %d after %d probes", Math.round(1e4 * n3.d) / 1e4, f2)), n3.max - p2.d <= e2 || (c2 = n3.h / 2, h2.push(new dh(n3.p.x - c2, n3.p.y - c2, c2, t4)), h2.push(new dh(n3.p.x + c2, n3.p.y - c2, c2, t4)), h2.push(new dh(n3.p.x - c2, n3.p.y + c2, c2, t4)), h2.push(new dh(n3.p.x + c2, n3.p.y + c2, c2, t4)), f2 += 4); @@ -230669,7 +230812,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return e2.max - t4.max; } function dh(t4, e2, r2, n2) { - this.p = new s(t4, e2), this.h = r2, this.d = function(t5, e3) { + this.p = new s(t4, e2), this.h = r2, this.d = (function(t5, e3) { let r3 = false, n3 = 1 / 0; for (let i2 = 0; i2 < e3.length; i2++) { const s2 = e3[i2]; @@ -230679,13 +230822,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return (r3 ? 1 : -1) * Math.sqrt(n3); - }(this.p, n2), this.max = this.d + this.h * Math.SQRT2; + })(this.p, n2), this.max = this.d + this.h * Math.SQRT2; } var yh; t.aq = void 0, (yh = t.aq || (t.aq = {}))[yh.center = 1] = "center", yh[yh.left = 2] = "left", yh[yh.right = 3] = "right", yh[yh.top = 4] = "top", yh[yh.bottom = 5] = "bottom", yh[yh["top-left"] = 6] = "top-left", yh[yh["top-right"] = 7] = "top-right", yh[yh["bottom-left"] = 8] = "bottom-left", yh[yh["bottom-right"] = 9] = "bottom-right"; const mh = 7, gh = Number.POSITIVE_INFINITY; function xh(t4, e2) { - return e2[1] !== gh ? function(t5, e3, r2) { + return e2[1] !== gh ? (function(t5, e3, r2) { let n2 = 0, i2 = 0; switch (e3 = Math.abs(e3), r2 = Math.abs(r2), t5) { case "top-right": @@ -230710,7 +230853,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ n2 = e3; } return [n2, i2]; - }(t4, e2[0], e2[1]) : function(t5, e3) { + })(t4, e2[0], e2[1]) : (function(t5, e3) { let r2 = 0, n2 = 0; e3 < 0 && (e3 = 0); const i2 = e3 / Math.SQRT2; @@ -230745,7 +230888,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ r2 = -e3; } return [r2, n2]; - }(t4, e2[0]); + })(t4, e2[0]); } function vh(t4, e2, r2) { var n2; @@ -230753,7 +230896,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (s2) { const t5 = s2.values, e3 = []; for (let r3 = 0; r3 < t5.length; r3 += 2) { - const n3 = e3[r3] = t5[r3], i3 = t5[r3 + 1].map((t6) => t6 * iu); + const n3 = e3[r3] = t5[r3], i3 = t5[r3 + 1].map(((t6) => t6 * iu)); n3.startsWith("top") ? i3[1] -= mh : n3.startsWith("bottom") && (i3[1] += mh), e3[r3 + 1] = i3; } return new Qt(e3); @@ -230761,7 +230904,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = i2.get("text-variable-anchor"); if (a2) { let n3; - n3 = void 0 !== t4._unevaluatedLayout.getValue("text-radial-offset") ? [i2.get("text-radial-offset").evaluate(e2, {}, r2) * iu, gh] : i2.get("text-offset").evaluate(e2, {}, r2).map((t5) => t5 * iu); + n3 = void 0 !== t4._unevaluatedLayout.getValue("text-radial-offset") ? [i2.get("text-radial-offset").evaluate(e2, {}, r2) * iu, gh] : i2.get("text-offset").evaluate(e2, {}, r2).map(((t5) => t5 * iu)); const s3 = []; for (const t5 of a2) s3.push(t5, xh(t5, n3)); return new Qt(s3); @@ -230784,14 +230927,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ function wh(e2, r2, n2, i2, s2, a2, o2, l2, u2, c2, h2) { let p2 = a2.textMaxSize.evaluate(r2, {}); void 0 === p2 && (p2 = o2); - const f2 = e2.layers[0].layout, d2 = f2.get("icon-offset").evaluate(r2, {}, h2), y2 = Ah(n2.horizontal), m2 = o2 / 24, g2 = e2.tilePixelRatio * m2, x2 = e2.tilePixelRatio * p2 / 24, v2 = e2.tilePixelRatio * l2, b2 = e2.tilePixelRatio * f2.get("symbol-spacing"), w2 = f2.get("text-padding") * e2.tilePixelRatio, _2 = function(t4, e3, r3, n3 = 1) { + const f2 = e2.layers[0].layout, d2 = f2.get("icon-offset").evaluate(r2, {}, h2), y2 = Ah(n2.horizontal), m2 = o2 / 24, g2 = e2.tilePixelRatio * m2, x2 = e2.tilePixelRatio * p2 / 24, v2 = e2.tilePixelRatio * l2, b2 = e2.tilePixelRatio * f2.get("symbol-spacing"), w2 = f2.get("text-padding") * e2.tilePixelRatio, _2 = (function(t4, e3, r3, n3 = 1) { const i3 = t4.get("icon-padding").evaluate(e3, {}, r3), s3 = i3 && i3.values; return [s3[0] * n3, s3[1] * n3, s3[2] * n3, s3[3] * n3]; - }(f2, r2, h2, e2.tilePixelRatio), S2 = f2.get("text-max-angle") / 180 * Math.PI, k2 = "viewport" !== f2.get("text-rotation-alignment") && "point" !== f2.get("symbol-placement"), M2 = "map" === f2.get("icon-rotation-alignment") && "point" !== f2.get("symbol-placement"), I2 = f2.get("symbol-placement"), z2 = b2 / 2, P2 = f2.get("icon-text-fit"); + })(f2, r2, h2, e2.tilePixelRatio), S2 = f2.get("text-max-angle") / 180 * Math.PI, k2 = "viewport" !== f2.get("text-rotation-alignment") && "point" !== f2.get("symbol-placement"), M2 = "map" === f2.get("icon-rotation-alignment") && "point" !== f2.get("symbol-placement"), I2 = f2.get("symbol-placement"), z2 = b2 / 2, P2 = f2.get("icon-text-fit"); let C3; i2 && "none" !== P2 && (e2.allowVerticalPlacement && n2.vertical && (C3 = ec(i2, n2.vertical, P2, f2.get("icon-text-fit-padding"), d2, m2)), y2 && (i2 = ec(i2, y2, P2, f2.get("icon-text-fit-padding"), d2, m2))); const B3 = (l3, p3) => { - p3.x < 0 || p3.x >= $a || p3.y < 0 || p3.y >= $a || function(e3, r3, n3, i3, s3, a3, o3, l4, u3, c3, h3, p4, f3, d3, y3, m3, g3, x3, v3, b3, w3, _3, S3, k3, M3) { + p3.x < 0 || p3.x >= $a || p3.y < 0 || p3.y >= $a || (function(e3, r3, n3, i3, s3, a3, o3, l4, u3, c3, h3, p4, f3, d3, y3, m3, g3, x3, v3, b3, w3, _3, S3, k3, M3) { const I3 = e3.addToLineVertexArray(r3, n3); let z3, P3, C4, B4, V2 = 0, E3 = 0, F2 = 0, T2 = 0, $2 = -1, L2 = -1; const D3 = {}; @@ -230825,16 +230968,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ H2 = Y2(z3, H2), H2 = Y2(C4, H2), H2 = Y2(P3, H2), H2 = Y2(B4, H2); const J2 = H2 > -1 ? 1 : 0; J2 && (H2 *= M3 / iu), e3.glyphOffsetArray.length >= dc.MAX_GLYPHS && A2("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), void 0 !== w3.sortKey && e3.addToSortKeyRanges(e3.symbolInstances.length, w3.sortKey); - const W2 = vh(l4, w3, k3), [Q2, tt2] = function(e4, r4) { + const W2 = vh(l4, w3, k3), [Q2, tt2] = (function(e4, r4) { const n4 = e4.length, i4 = null == r4 ? void 0 : r4.values; if ((null == i4 ? void 0 : i4.length) > 0) for (let r5 = 0; r5 < i4.length; r5 += 2) { const n5 = i4[r5 + 1]; e4.emplaceBack(t.aq[i4[r5]], n5[0], n5[1]); } return [n4, e4.length]; - }(e3.textAnchorOffsets, W2); + })(e3.textAnchorOffsets, W2); e3.symbolInstances.emplaceBack(r3.x, r3.y, D3.right >= 0 ? D3.right : -1, D3.center >= 0 ? D3.center : -1, D3.left >= 0 ? D3.left : -1, D3.vertical || -1, $2, L2, O2, R2, U2, q2, N2, Z2, G2, K3, X2, c3, F2, T2, V2, E3, J2, 0, f3, H2, Q2, tt2); - }(e2, p3, l3, n2, i2, s2, C3, e2.layers[0], e2.collisionBoxArray, r2.index, r2.sourceLayerIndex, e2.index, g2, [w2, w2, w2, w2], k2, u2, v2, _2, M2, d2, r2, a2, c2, h2, o2); + })(e2, p3, l3, n2, i2, s2, C3, e2.layers[0], e2.collisionBoxArray, r2.index, r2.sourceLayerIndex, e2.index, g2, [w2, w2, w2, w2], k2, u2, v2, _2, M2, d2, r2, a2, c2, h2, o2); }; if ("line" === I2) for (const t4 of Hc(r2.geometry, 0, 0, $a, $a)) { const r3 = rh(t4, b2, S2, n2.vertical || y2, i2, 24, x2, e2.overscaling, $a); @@ -230853,7 +230996,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ else if ("Point" === r2.type) for (const t4 of r2.geometry) for (const e3 of t4) B3([e3], new Yc(e3.x, e3.y, 0)); } function _h(t4, e2, r2, n2, i2, a2, o2, l2, u2, c2, h2, p2, f2, d2, y2) { - const m2 = function(t5, e3, r3, n3, i3, a3, o3, l3) { + const m2 = (function(t5, e3, r3, n3, i3, a3, o3, l3) { const u3 = n3.layout.get("text-rotate").evaluate(a3, {}) * Math.PI / 180, c3 = []; for (const t6 of e3.positionedLines) for (const n4 of t6.positionedGlyphs) { if (!n4.rect) continue; @@ -230880,7 +231023,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ c3.push({ tl: k2, tr: M2, bl: I2, br: z2, tex: a4, writingMode: e3.writingMode, glyphOffset: g3, sectionIndex: n4.sectionIndex, isSDF: p3, pixelOffsetTL: P2, pixelOffsetBR: C3, minFontScaleX: 0, minFontScaleY: 0 }); } return c3; - }(0, r2, l2, i2, a2, o2, n2, t4.allowVerticalPlacement), g2 = t4.textSizeData; + })(0, r2, l2, i2, a2, o2, n2, t4.allowVerticalPlacement), g2 = t4.textSizeData; let x2 = null; "source" === g2.kind ? (x2 = [nc * i2.layout.get("text-size").evaluate(o2, {})], x2[0] > ic && A2(`${t4.layerIds[0]}: Value for "text-size" is >= ${rc}. Reduce your "text-size".`)) : "composite" === g2.kind && (x2 = [nc * d2.compositeTextSizes[0].evaluate(o2, {}, y2), nc * d2.compositeTextSizes[1].evaluate(o2, {}, y2)], (x2[0] > ic || x2[1] > ic) && A2(`${t4.layerIds[0]}: Value for "text-size" is >= ${rc}. Reduce your "text-size".`)), t4.addSymbols(t4.text, m2, x2, l2, a2, o2, c2, e2, u2.lineStartIndex, u2.lineLength, f2, y2); for (const e3 of h2) p2[e3] = t4.text.placedSymbolArray.length - 1; @@ -231003,7 +231146,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (const e2 in t.bg) performance.clearMarks(t.bg[e2]); }, getPerformanceMetrics() { performance.measure($h, t.bg.create, t.bg.load), performance.measure(Lh, t.bg.create, t.bg.fullLoad); - const e2 = performance.getEntriesByName($h)[0].duration, r2 = performance.getEntriesByName(Lh)[0].duration, n2 = Fh.length, i2 = 1 / (Fh.reduce((t4, e3) => t4 + e3, 0) / n2 / 1e3), s2 = Fh.filter((t4) => t4 > Th).reduce((t4, e3) => t4 + (e3 - Th) / Th, 0); + const e2 = performance.getEntriesByName($h)[0].duration, r2 = performance.getEntriesByName(Lh)[0].duration, n2 = Fh.length, i2 = 1 / (Fh.reduce(((t4, e3) => t4 + e3), 0) / n2 / 1e3), s2 = Fh.filter(((t4) => t4 > Th)).reduce(((t4, e3) => t4 + (e3 - Th) / Th), 0); return { loadTime: e2, fullLoadTime: r2, fps: i2, percentDroppedFrames: s2 / (n2 + s2) * 100, totalFrames: n2 }; } }; t.$ = class extends ps { @@ -231015,26 +231158,26 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return M; }, t.D = Ji, t.E = Z, t.F = class { constructor(t4, e2) { - this.target = t4, this.mapId = e2, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Ic(() => this.process()), this.subscription = function(t5, e3, r2, n2) { + this.target = t4, this.mapId = e2, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new Ic((() => this.process())), this.subscription = (function(t5, e3, r2, n2) { return t5.addEventListener(e3, r2, false), { unsubscribe: () => { t5.removeEventListener(e3, r2, false); } }; - }(this.target, "message", (t5) => this.receive(t5)), this.globalScope = k(self) ? t4 : window; + })(this.target, "message", ((t5) => this.receive(t5))), this.globalScope = k(self) ? t4 : window; } registerMessageHandler(t4, e2) { this.messageHandlers[t4] = e2; } sendAsync(t4, e2) { - return new Promise((r2, n2) => { + return new Promise(((r2, n2) => { const i2 = Math.round(1e18 * Math.random()).toString(36).substring(0, 10); - this.resolveRejects[i2] = { resolve: r2, reject: n2 }, e2 && e2.signal.addEventListener("abort", () => { + this.resolveRejects[i2] = { resolve: r2, reject: n2 }, e2 && e2.signal.addEventListener("abort", (() => { delete this.resolveRejects[i2]; const e3 = { id: i2, type: "", origin: location.origin, targetMapId: t4.targetMapId, sourceMapId: this.mapId }; this.target.postMessage(e3); - }, { once: true }); + }), { once: true }); const s2 = [], a2 = Object.assign(Object.assign({}, t4), { id: i2, sourceMapId: this.mapId, origin: location.origin, data: ki(t4.data, s2) }); this.target.postMessage(a2, { transfer: s2 }); - }); + })); } receive(t4) { const e2 = t4.data, r2 = e2.id; @@ -231054,7 +231197,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ delete this.tasks[t4], this.taskQueue.length > 0 && this.invoker.trigger(), e2 && this.processTask(t4, e2); } processTask(t4, r2) { - return e(this, void 0, void 0, function* () { + return e(this, void 0, void 0, (function* () { if ("" === r2.type) { const e3 = this.resolveRejects[t4]; if (delete this.resolveRejects[t4], !e3) return; @@ -231069,7 +231212,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (e3) { this.completeTask(t4, e3); } - }); + })); } completeTask(t4, e2, r2) { const n2 = []; @@ -231101,7 +231244,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return Math.abs(r2 - x2) <= ao * Math.max(1, Math.abs(r2), Math.abs(x2)) && Math.abs(n2 - v2) <= ao * Math.max(1, Math.abs(n2), Math.abs(v2)) && Math.abs(i2 - b2) <= ao * Math.max(1, Math.abs(i2), Math.abs(b2)) && Math.abs(s2 - w2) <= ao * Math.max(1, Math.abs(s2), Math.abs(w2)) && Math.abs(a2 - _2) <= ao * Math.max(1, Math.abs(a2), Math.abs(_2)) && Math.abs(o2 - A3) <= ao * Math.max(1, Math.abs(o2), Math.abs(A3)) && Math.abs(l2 - S2) <= ao * Math.max(1, Math.abs(l2), Math.abs(S2)) && Math.abs(u2 - k2) <= ao * Math.max(1, Math.abs(u2), Math.abs(k2)) && Math.abs(c2 - M2) <= ao * Math.max(1, Math.abs(c2), Math.abs(M2)) && Math.abs(h2 - I2) <= ao * Math.max(1, Math.abs(h2), Math.abs(I2)) && Math.abs(p2 - z2) <= ao * Math.max(1, Math.abs(p2), Math.abs(z2)) && Math.abs(f2 - P2) <= ao * Math.max(1, Math.abs(f2), Math.abs(P2)) && Math.abs(d2 - C3) <= ao * Math.max(1, Math.abs(d2), Math.abs(C3)) && Math.abs(y2 - B3) <= ao * Math.max(1, Math.abs(y2), Math.abs(B3)) && Math.abs(m2 - V2) <= ao * Math.max(1, Math.abs(m2), Math.abs(V2)) && Math.abs(g2 - E3) <= ao * Math.max(1, Math.abs(g2), Math.abs(E3)); }, t.a0 = oa, t.a1 = Dc, t.a2 = it, t.a3 = (t4) => { const e2 = window.document.createElement("video"); - return e2.muted = true, new Promise((r2) => { + return e2.muted = true, new Promise(((r2) => { e2.onloadstart = () => { r2(e2); }; @@ -231109,7 +231252,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t5 = window.document.createElement("source"); j(r3) || (e2.crossOrigin = "Anonymous"), t5.src = r3, e2.appendChild(t5); } - }); + })); }, t.a4 = function() { return x++; }, t.a5 = Fs, t.a6 = dc, t.a7 = zn, t.a8 = ja, t.a9 = Nc, t.aA = function(t4) { @@ -231141,15 +231284,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (!H(t4.version, e2.version)) return [{ command: "setStyle", args: [e2] }]; H(t4.center, e2.center) || r2.push({ command: "setCenter", args: [e2.center] }), H(t4.zoom, e2.zoom) || r2.push({ command: "setZoom", args: [e2.zoom] }), H(t4.bearing, e2.bearing) || r2.push({ command: "setBearing", args: [e2.bearing] }), H(t4.pitch, e2.pitch) || r2.push({ command: "setPitch", args: [e2.pitch] }), H(t4.sprite, e2.sprite) || r2.push({ command: "setSprite", args: [e2.sprite] }), H(t4.glyphs, e2.glyphs) || r2.push({ command: "setGlyphs", args: [e2.glyphs] }), H(t4.transition, e2.transition) || r2.push({ command: "setTransition", args: [e2.transition] }), H(t4.light, e2.light) || r2.push({ command: "setLight", args: [e2.light] }), H(t4.terrain, e2.terrain) || r2.push({ command: "setTerrain", args: [e2.terrain] }), H(t4.sky, e2.sky) || r2.push({ command: "setSky", args: [e2.sky] }), H(t4.projection, e2.projection) || r2.push({ command: "setProjection", args: [e2.projection] }); const n2 = {}, i2 = []; - !function(t5, e3, r3, n3) { + !(function(t5, e3, r3, n3) { let i3; for (i3 in e3 = e3 || {}, t5 = t5 || {}) Object.prototype.hasOwnProperty.call(t5, i3) && (Object.prototype.hasOwnProperty.call(e3, i3) || W(i3, r3, n3)); for (i3 in e3) Object.prototype.hasOwnProperty.call(e3, i3) && (Object.prototype.hasOwnProperty.call(t5, i3) ? H(t5[i3], e3[i3]) || ("geojson" === t5[i3].type && "geojson" === e3[i3].type && tt(t5, e3, i3) ? Y(r3, { command: "setGeoJSONSourceData", args: [i3, e3[i3].data] }) : Q(i3, e3, r3, n3)) : J(i3, e3, r3)); - }(t4.sources, e2.sources, i2, n2); + })(t4.sources, e2.sources, i2, n2); const s2 = []; - t4.layers && t4.layers.forEach((t5) => { + t4.layers && t4.layers.forEach(((t5) => { "source" in t5 && n2[t5.source] ? r2.push({ command: "removeLayer", args: [t5.id] }) : s2.push(t5); - }), r2 = r2.concat(i2), function(t5, e3, r3) { + })), r2 = r2.concat(i2), (function(t5, e3, r3) { e3 = e3 || []; const n3 = (t5 = t5 || []).map(rt), i3 = e3.map(rt), s3 = t5.reduce(nt, {}), a2 = e3.reduce(nt, {}), o2 = n3.slice(), l2 = /* @__PURE__ */ Object.create(null); let u2, c2, h2, p2, f2; @@ -231159,7 +231302,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (f2 in et(c2.layout, h2.layout, r3, u2, null, "setLayoutProperty"), et(c2.paint, h2.paint, r3, u2, null, "setPaintProperty"), H(c2.filter, h2.filter) || Y(r3, { command: "setFilter", args: [u2, h2.filter] }), H(c2.minzoom, h2.minzoom) && H(c2.maxzoom, h2.maxzoom) || Y(r3, { command: "setLayerZoomRange", args: [u2, h2.minzoom, h2.maxzoom] }), c2) Object.prototype.hasOwnProperty.call(c2, f2) && "layout" !== f2 && "paint" !== f2 && "filter" !== f2 && "metadata" !== f2 && "minzoom" !== f2 && "maxzoom" !== f2 && (0 === f2.indexOf("paint.") ? et(c2[f2], h2[f2], r3, u2, f2.slice(6), "setPaintProperty") : H(c2[f2], h2[f2]) || Y(r3, { command: "setLayerProperty", args: [u2, f2, h2[f2]] })); for (f2 in h2) Object.prototype.hasOwnProperty.call(h2, f2) && !Object.prototype.hasOwnProperty.call(c2, f2) && "layout" !== f2 && "paint" !== f2 && "filter" !== f2 && "metadata" !== f2 && "minzoom" !== f2 && "maxzoom" !== f2 && (0 === f2.indexOf("paint.") ? et(c2[f2], h2[f2], r3, u2, f2.slice(6), "setPaintProperty") : H(c2[f2], h2[f2]) || Y(r3, { command: "setLayerProperty", args: [u2, f2, h2[f2]] })); } else Y(r3, { command: "removeLayer", args: [u2] }), p2 = o2[o2.lastIndexOf(u2) + 1], Y(r3, { command: "addLayer", args: [h2, p2] }); - }(s2, e2.layers, r2); + })(s2, e2.layers, r2); } catch (t5) { console.warn("Unable to compute style diff:", t5), r2 = [{ command: "setStyle", args: [e2] }]; } @@ -231224,10 +231367,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return t4[0] === e2[0] && t4[1] === e2[1] && t4[2] === e2[2] && t4[3] === e2[3] && t4[4] === e2[4] && t4[5] === e2[5] && t4[6] === e2[6] && t4[7] === e2[7] && t4[8] === e2[8] && t4[9] === e2[9] && t4[10] === e2[10] && t4[11] === e2[11] && t4[12] === e2[12] && t4[13] === e2[13] && t4[14] === e2[14] && t4[15] === e2[15]; }, t.aa = function(t4) { const e2 = {}; - if (t4.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, (t5, r2, n2, i2) => { + if (t4.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g, ((t5, r2, n2, i2) => { const s2 = n2 || i2; return e2[r2] = !s2 || s2.toLowerCase(), ""; - }), e2["max-age"]) { + })), e2["max-age"]) { const t5 = parseInt(e2["max-age"], 10); isNaN(t5) ? delete e2["max-age"] : e2["max-age"] = t5; } @@ -231336,7 +231479,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const s3 = y2.toString(), u3 = n2.get("text-letter-spacing").evaluate(i3, {}, e2.canonical) * iu, f3 = Ci(s3) ? u3 : 0, m3 = n2.get("text-anchor").evaluate(i3, {}, e2.canonical), x3 = vh(r2, i3, e2.canonical); if (!x3) { const t4 = n2.get("text-radial-offset").evaluate(i3, {}, e2.canonical); - g2 = t4 ? xh(m3, [t4 * iu, gh]) : n2.get("text-offset").evaluate(i3, {}, e2.canonical).map((t5) => t5 * iu); + g2 = t4 ? xh(m3, [t4 * iu, gh]) : n2.get("text-offset").evaluate(i3, {}, e2.canonical).map(((t5) => t5 * iu)); } let v3 = o2 ? "center" : n2.get("text-justify").evaluate(i3, {}, e2.canonical); const b2 = "point" === n2.get("symbol-placement") ? n2.get("text-max-width").evaluate(i3, {}, e2.canonical) * iu : 1 / 0, w2 = () => { @@ -231378,19 +231521,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return 0 === t4.length && (performance.measure(this._marks.measure, this._marks.start, this._marks.end), t4 = performance.getEntriesByName(this._marks.measure), performance.clearMarks(this._marks.start), performance.clearMarks(this._marks.end), performance.clearMeasures(this._marks.measure)), t4; } }, t.bw = function(t4, r2, n2, i2, s2) { - return e(this, void 0, void 0, function* () { + return e(this, void 0, void 0, (function* () { if (p()) try { return yield P(t4, r2, n2, i2, s2); } catch (t5) { } - return function(t5, e2, r3, n3, i3) { + return (function(t5, e2, r3, n3, i3) { const s3 = t5.width, a2 = t5.height; C2 && B2 || (C2 = new OffscreenCanvas(s3, a2), B2 = C2.getContext("2d", { willReadFrequently: true })), C2.width = s3, C2.height = a2, B2.drawImage(t5, 0, 0, s3, a2); const o2 = B2.getImageData(e2, r3, n3, i3); return B2.clearRect(0, 0, s3, a2), o2.data; - }(t4, r2, n2, i2, s2); - }); - }, t.bx = Uc, t.by = r, t.bz = n, t.c = E2, t.d = (t4) => e(void 0, void 0, void 0, function* () { + })(t4, r2, n2, i2, s2); + })); + }, t.bx = Uc, t.by = r, t.bz = n, t.c = E2, t.d = (t4) => e(void 0, void 0, void 0, (function* () { if (0 === t4.byteLength) return createImageBitmap(new ImageData(1, 1)); const e2 = new Blob([new Uint8Array(t4)], { type: "image/png" }); try { @@ -231398,22 +231541,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t5) { throw new Error(`Could not load image because of ${t5.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`); } - }), t.e = g, t.f = (t4) => new Promise((e2, r2) => { + })), t.e = g, t.f = (t4) => new Promise(((e2, r2) => { const n2 = new Image(); n2.onload = () => { - e2(n2), URL.revokeObjectURL(n2.src), n2.onload = null, window.requestAnimationFrame(() => { + e2(n2), URL.revokeObjectURL(n2.src), n2.onload = null, window.requestAnimationFrame((() => { n2.src = z; - }); + })); }, n2.onerror = () => r2(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")); const i2 = new Blob([new Uint8Array(t4)], { type: "image/png" }); n2.src = t4.byteLength ? URL.createObjectURL(i2) : z; - }), t.g = T, t.h = (t4, e2) => O(g(t4, { type: "json" }), e2), t.i = k, t.j = N, t.k = q, t.l = (t4, e2) => O(g(t4, { type: "arrayBuffer" }), e2), t.m = O, t.n = function(t4) { + })), t.g = T, t.h = (t4, e2) => O(g(t4, { type: "json" }), e2), t.i = k, t.j = N, t.k = q, t.l = (t4, e2) => O(g(t4, { type: "arrayBuffer" }), e2), t.m = O, t.n = function(t4) { return new Iu(t4).readFields(Pu, []); }, t.o = _o, t.p = Eu, t.q = rs, t.r = di, t.s = j, t.t = xi, t.u = fi, t.v = G, t.w = A2, t.x = function([t4, e2, r2]) { return e2 += 90, e2 *= Math.PI / 180, r2 *= Math.PI / 180, { x: t4 * Math.cos(e2) * Math.sin(r2), y: t4 * Math.sin(e2) * Math.sin(r2), z: t4 * Math.cos(r2) }; }, t.y = Ce, t.z = Ui; - }); - define2("worker", ["./shared"], function(e) { + })); + define2("worker", ["./shared"], (function(e) { "use strict"; class t { constructor(e2) { @@ -231432,7 +231575,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.familiesBySource = {}; const i2 = e.bk(Object.values(this._layerConfigs), this.keyCache); for (const e2 of i2) { - const t5 = e2.map((e3) => this._layers[e3.id]), o3 = t5[0]; + const t5 = e2.map(((e3) => this._layers[e3.id])), o3 = t5[0]; if ("none" === o3.visibility) continue; const i3 = o3.source || ""; let s2 = this.familiesBySource[i3]; @@ -231474,7 +231617,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.tileID = new e.S(t4.tileID.overscaledZ, t4.tileID.wrap, t4.tileID.canonical.z, t4.tileID.canonical.x, t4.tileID.canonical.y), this.uid = t4.uid, this.zoom = t4.zoom, this.pixelRatio = t4.pixelRatio, this.tileSize = t4.tileSize, this.source = t4.source, this.overscaling = this.tileID.overscaleFactor(), this.showCollisionBoxes = t4.showCollisionBoxes, this.collectResourceTiming = !!t4.collectResourceTiming, this.returnDependencies = !!t4.returnDependencies, this.promoteId = t4.promoteId, this.inFlightDependencies = []; } parse(t4, i2, r2, n2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.status = "parsing", this.data = t4, this.collisionBoxArray = new e.a5(); const a2 = new e.bm(Object.keys(t4.layers).sort()), l2 = new e.bn(this.tileID, this.promoteId); l2.bucketLayerIDs = []; @@ -231490,11 +231633,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } for (const t5 of h2[o2]) { const o3 = t5[0]; - o3.source !== this.source && e.w(`layer.source = ${o3.source} does not equal this.source = ${this.source}`), o3.minzoom && this.zoom < Math.floor(o3.minzoom) || o3.maxzoom && this.zoom >= o3.maxzoom || "none" !== o3.visibility && (s(t5, this.zoom, r2), (c2[o3.id] = o3.createBucket({ index: l2.bucketLayerIDs.length, layers: t5, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: n3, sourceID: this.source })).populate(d3, u2, this.tileID.canonical), l2.bucketLayerIDs.push(t5.map((e2) => e2.id))); + o3.source !== this.source && e.w(`layer.source = ${o3.source} does not equal this.source = ${this.source}`), o3.minzoom && this.zoom < Math.floor(o3.minzoom) || o3.maxzoom && this.zoom >= o3.maxzoom || "none" !== o3.visibility && (s(t5, this.zoom, r2), (c2[o3.id] = o3.createBucket({ index: l2.bucketLayerIDs.length, layers: t5, zoom: this.zoom, pixelRatio: this.pixelRatio, overscaling: this.overscaling, collisionBoxArray: this.collisionBoxArray, sourceLayerIndex: n3, sourceID: this.source })).populate(d3, u2, this.tileID.canonical), l2.bucketLayerIDs.push(t5.map(((e2) => e2.id)))); } } - const d2 = e.aF(u2.glyphDependencies, (e2) => Object.keys(e2).map(Number)); - this.inFlightDependencies.forEach((e2) => null == e2 ? void 0 : e2.abort()), this.inFlightDependencies = []; + const d2 = e.aF(u2.glyphDependencies, ((e2) => Object.keys(e2).map(Number))); + this.inFlightDependencies.forEach(((e2) => null == e2 ? void 0 : e2.abort())), this.inFlightDependencies = []; let f2 = Promise.resolve({}); if (Object.keys(d2).length) { const e2 = new AbortController(); @@ -231517,8 +231660,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const o2 = c2[t5]; o2 instanceof e.a6 ? (s(o2.layers, this.zoom, r2), e.bp({ bucket: o2, glyphMap: v2, glyphPositions: b2.positions, imageMap: w2, imagePositions: S2.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical })) : o2.hasPattern && (o2 instanceof e.bq || o2 instanceof e.br || o2 instanceof e.bs) && (s(o2.layers, this.zoom, r2), o2.addFeatures(u2, this.tileID.canonical, S2.patternPositions)); } - return this.status = "done", { buckets: Object.values(c2).filter((e2) => !e2.isEmpty()), featureIndex: l2, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: b2.image, imageAtlas: S2, glyphMap: this.returnDependencies ? v2 : null, iconMap: this.returnDependencies ? w2 : null, glyphPositions: this.returnDependencies ? b2.positions : null }; - }); + return this.status = "done", { buckets: Object.values(c2).filter(((e2) => !e2.isEmpty())), featureIndex: l2, collisionBoxArray: this.collisionBoxArray, glyphAtlasImage: b2.image, imageAtlas: S2, glyphMap: this.returnDependencies ? v2 : null, iconMap: this.returnDependencies ? w2 : null, glyphPositions: this.returnDependencies ? b2.positions : null }; + })); } } function s(t4, o2, i2) { @@ -231530,7 +231673,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.actor = e2, this.layerIndex = t4, this.availableImages = o2, this.fetching = {}, this.loading = {}, this.loaded = {}; } loadVectorTile(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const i2 = yield e.l(t4.request, o2); try { return { vectorTile: new e.bt.VectorTile(new e.bu(i2.data)), rawData: i2.data, cacheControl: i2.cacheControl, expires: i2.expires }; @@ -231539,10 +231682,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ let s2 = `Unable to parse the tile at ${t4.request.url}, `; throw s2 += 31 === o3[0] && 139 === o3[1] ? "please make sure the data is not gzipped and that you have configured the relevant header in the server" : `got error: ${e2.message}`, new Error(s2); } - }); + })); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o2 = t4.uid, s2 = !!(t4 && t4.request && t4.request.collectResourceTiming) && new e.bv(t4.request), r2 = new i(t4); this.loading[o2] = r2; const n2 = new AbortController(); @@ -231569,10 +231712,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (e2) { throw delete this.loading[o2], r2.status = "done", this.loaded[o2] = r2, e2; } - }); + })); } reloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o2 = t4.uid; if (!this.loaded || !this.loaded[o2]) throw new Error("Should not be trying to reload a tile that was never loaded or has been removed"); const i2 = this.loaded[o2]; @@ -231586,18 +231729,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return s2; } if ("done" === i2.status && i2.vectorTile) return i2.parse(i2.vectorTile, this.layerIndex, this.availableImages, this.actor); - }); + })); } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = this.loading, o2 = t4.uid; e2 && e2[o2] && e2[o2].abort && (e2[o2].abort.abort(), delete e2[o2]); - }); + })); } removeTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.loaded && this.loaded[t4.uid] && delete this.loaded[t4.uid]; - }); + })); } } class n { @@ -231605,10 +231748,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.loaded = {}; } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const { uid: o2, encoding: i2, rawImageData: s2, redFactor: r2, greenFactor: n2, blueFactor: a2, baseShift: l2 } = t4, c2 = s2.width + 2, u2 = s2.height + 2, h2 = e.b(s2) ? new e.R({ width: c2, height: u2 }, yield e.bw(s2, -1, -1, c2, u2)) : s2, d2 = new e.bx(o2, h2, i2, r2, n2, a2, l2); return this.loaded = this.loaded || {}, this.loaded[o2] = d2, d2; - }); + })); } removeTile(e2) { const t4 = this.loaded, o2 = e2.uid; @@ -231628,7 +231771,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } o2 + i2 >= 0 != !!t4 && e2.reverse(); } - var c = e.by(function e2(t4, o2) { + var c = e.by((function e2(t4, o2) { var i2, s2 = t4 && t4.type; if ("FeatureCollection" === s2) for (i2 = 0; i2 < t4.features.length; i2++) e2(t4.features[i2], o2); else if ("GeometryCollection" === s2) for (i2 = 0; i2 < t4.geometries.length; i2++) e2(t4.geometries[i2], o2); @@ -231636,7 +231779,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ else if ("Polygon" === s2) a(t4.coordinates, o2); else if ("MultiPolygon" === s2) for (i2 = 0; i2 < t4.coordinates.length; i2++) a(t4.coordinates[i2], o2); return t4; - }); + })); const u = e.bt.VectorTileFeature.prototype.toGeoJSON; var h = { exports: {} }, d = e.bz, f = e.bt.VectorTileFeature, g = p; function p(e2, t4) { @@ -231666,9 +231809,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ var y = e.bA, v = g; function w(e2) { var t4 = new y(); - return function(e3, t5) { + return (function(e3, t5) { for (var o2 in e3.layers) t5.writeMessage(3, x, e3.layers[o2]); - }(e2, t4), t4.finish(); + })(e2, t4), t4.finish(); } function x(e2, t4) { var o2; @@ -232134,36 +232277,36 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (i2 > 0 && t4.size < (s2 ? n2 : i2)) return void (o2.numPoints += t4.length / 3); const a2 = []; for (let e3 = 0; e3 < t4.length; e3 += 3) (0 === i2 || t4[e3 + 2] > n2) && (o2.numSimplified++, a2.push(t4[e3], t4[e3 + 1])), o2.numPoints++; - s2 && function(e3, t5) { + s2 && (function(e3, t5) { let o3 = 0; for (let t6 = 0, i3 = e3.length, s3 = i3 - 2; t6 < i3; s3 = t6, t6 += 2) o3 += (e3[t6] - e3[s3]) * (e3[t6 + 1] + e3[s3 + 1]); if (o3 > 0 === t5) for (let t6 = 0, o4 = e3.length; t6 < o4 / 2; t6 += 2) { const i3 = e3[t6], s3 = e3[t6 + 1]; e3[t6] = e3[o4 - 2 - t6], e3[t6 + 1] = e3[o4 - 1 - t6], e3[o4 - 2 - t6] = i3, e3[o4 - 1 - t6] = s3; } - }(a2, r2), e2.push(a2); + })(a2, r2), e2.push(a2); } const he = { maxZoom: 14, indexMaxZoom: 5, indexMaxPoints: 1e5, tolerance: 3, extent: 4096, buffer: 64, lineMetrics: false, promoteId: null, generateId: false, debug: 0 }; class de { constructor(e2, t4) { - const o2 = (t4 = this.options = function(e3, t5) { + const o2 = (t4 = this.options = (function(e3, t5) { for (const o3 in t5) e3[o3] = t5[o3]; return e3; - }(Object.create(he), t4)).debug; + })(Object.create(he), t4)).debug; if (o2 && console.time("preprocess data"), t4.maxZoom < 0 || t4.maxZoom > 24) throw new Error("maxZoom should be in the 0-24 range"); if (t4.promoteId && t4.generateId) throw new Error("promoteId and generateId cannot be used together."); - let i2 = function(e3, t5) { + let i2 = (function(e3, t5) { const o3 = []; if ("FeatureCollection" === e3.type) for (let i3 = 0; i3 < e3.features.length; i3++) Y(o3, e3.features[i3], t5, i3); else Y(o3, "Feature" === e3.type ? e3 : { geometry: e3 }, t5); return o3; - }(e2, t4); - this.tiles = {}, this.tileCoords = [], o2 && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", t4.indexMaxZoom, t4.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), i2 = function(e3, t5) { + })(e2, t4); + this.tiles = {}, this.tileCoords = [], o2 && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", t4.indexMaxZoom, t4.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), i2 = (function(e3, t5) { const o3 = t5.buffer / t5.extent; let i3 = e3; const s2 = U(e3, 1, -1 - o3, o3, 0, -1, 2, t5), r2 = U(e3, 1, 1 - o3, 2 + o3, 0, -1, 2, t5); return (s2 || r2) && (i3 = U(e3, 1, -o3, 1 + o3, 0, -1, 2, t5) || [], s2 && (i3 = se(s2, 1).concat(i3)), r2 && (i3 = i3.concat(se(r2, -1)))), i3; - }(i2, t4), i2.length && this.splitTile(i2, 0, 0, 0), o2 && (i2.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats))); + })(i2, t4), i2.length && this.splitTile(i2, 0, 0, 0), o2 && (i2.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats))); } splitTile(e2, t4, o2, i2, s2, r2, n2) { const a2 = [e2, t4, o2, i2], l2 = this.options, c2 = l2.debug; @@ -232237,7 +232380,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(...arguments), this._dataUpdateable = /* @__PURE__ */ new Map(); } loadVectorTile(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o3 = t4.tileID.canonical; if (!this._geoJSONIndex) throw new Error("Unable to parse the data into a cluster or geojson"); const i2 = this._geoJSONIndex.getTile(o3.z, o3.x, o3.y); @@ -232275,16 +232418,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }(i2.features); let r2 = k(s2); return 0 === r2.byteOffset && r2.byteLength === r2.buffer.byteLength || (r2 = new Uint8Array(r2)), { vectorTile: s2, rawData: r2.buffer }; - }); + })); } loadData(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { var o2; null === (o2 = this._pendingRequest) || void 0 === o2 || o2.abort(); const i2 = !!(t4 && t4.request && t4.request.collectResourceTiming) && new e.bv(t4.request); this._pendingRequest = new AbortController(); try { - this._pendingData = this.loadAndProcessGeoJSON(t4, this._pendingRequest), this._geoJSONIndex = t4.cluster ? new z(function({ superclusterOptions: t5, clusterProperties: o4 }) { + this._pendingData = this.loadAndProcessGeoJSON(t4, this._pendingRequest), this._geoJSONIndex = t4.cluster ? new z((function({ superclusterOptions: t5, clusterProperties: o4 }) { if (!o4 || !t5) return t5; const i3 = {}, s3 = {}, r2 = { accumulated: null, zoom: 0 }, n2 = { properties: null }, a2 = Object.keys(o4); for (const t6 of a2) { @@ -232300,7 +232443,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ n2.properties = t6; for (const t7 of a2) r2.accumulated = e2[t7], e2[t7] = s3[t7].evaluate(r2, n2); }, t5; - }(t4)).load((yield this._pendingData).features) : (s2 = yield this._pendingData, new de(s2, t4.geojsonVtOptions)), this.loaded = {}; + })(t4)).load((yield this._pendingData).features) : (s2 = yield this._pendingData, new de(s2, t4.geojsonVtOptions)), this.loaded = {}; const o3 = {}; if (i2) { const e2 = i2.finish(); @@ -232312,32 +232455,32 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ throw t5; } var s2; - }); + })); } getData() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { return this._pendingData; - }); + })); } reloadTile(e2) { const t4 = this.loaded; return t4 && t4[e2.uid] ? super.reloadTile(e2) : this.loadTile(e2); } loadAndProcessGeoJSON(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { let i2 = yield this.loadGeoJSON(t4, o2); if (delete this._pendingRequest, "object" != typeof i2) throw new Error(`Input data given to '${t4.source}' is not a valid GeoJSON object.`); if (c(i2, true), t4.filter) { const o3 = e.bC(t4.filter, { type: "boolean", "property-type": "data-driven", overridable: false, transition: false }); - if ("error" === o3.result) throw new Error(o3.value.map((e2) => `${e2.key}: ${e2.message}`).join(", ")); - const s2 = i2.features.filter((e2) => o3.value.evaluate({ zoom: 0 }, e2)); + if ("error" === o3.result) throw new Error(o3.value.map(((e2) => `${e2.key}: ${e2.message}`)).join(", ")); + const s2 = i2.features.filter(((e2) => o3.value.evaluate({ zoom: 0 }, e2))); i2 = { type: "FeatureCollection", features: s2 }; } return i2; - }); + })); } loadGeoJSON(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const { promoteId: i2 } = t4; if (t4.request) { const s2 = yield e.h(t4.request, o2); @@ -232351,7 +232494,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } if (!t4.dataDiff) throw new Error(`Input data given to '${t4.source}' is not a valid GeoJSON object.`); if (!this._dataUpdateable) throw new Error(`Cannot update existing geojson data in ${t4.source}`); - return function(e2, t5, o3) { + return (function(e2, t5, o3) { var i3, s2, r2, n2; if (t5.removeAll && e2.clear(), t5.remove) for (const o4 of t5.remove) e2.delete(o4); if (t5.add) for (const i4 of t5.add) { @@ -232366,13 +232509,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ else if ((null === (r2 = o4.removeProperties) || void 0 === r2 ? void 0 : r2.length) > 0) for (const e3 of o4.removeProperties) Object.prototype.hasOwnProperty.call(t6.properties, e3) && delete t6.properties[e3]; if ((null === (n2 = o4.addOrUpdateProperties) || void 0 === n2 ? void 0 : n2.length) > 0) for (const { key: e3, value: i4 } of o4.addOrUpdateProperties) t6.properties[e3] = i4; } - }(this._dataUpdateable, t4.dataDiff, i2), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) }; - }); + })(this._dataUpdateable, t4.dataDiff, i2), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) }; + })); } removeSource(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._pendingRequest && this._pendingRequest.abort(); - }); + })); } getClusterExpansionZoom(e2) { return this._geoJSONIndex.getClusterExpansionZoom(e2.clusterId); @@ -232392,41 +232535,41 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ }, this.self.addProtocol = e.bi, this.self.removeProtocol = e.bj, this.self.registerRTLTextPlugin = (t5) => { if (e.bD.isParsed()) throw new Error("RTL text plugin already registered."); e.bD.setMethods(t5); - }, this.actor.registerMessageHandler("LDT", (e2, t5) => this._getDEMWorkerSource(e2, t5.source).loadTile(t5)), this.actor.registerMessageHandler("RDT", (t5, o2) => e._(this, void 0, void 0, function* () { + }, this.actor.registerMessageHandler("LDT", ((e2, t5) => this._getDEMWorkerSource(e2, t5.source).loadTile(t5))), this.actor.registerMessageHandler("RDT", ((t5, o2) => e._(this, void 0, void 0, (function* () { this._getDEMWorkerSource(t5, o2.source).removeTile(o2); - })), this.actor.registerMessageHandler("GCEZ", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("GCEZ", ((t5, o2) => e._(this, void 0, void 0, (function* () { return this._getWorkerSource(t5, o2.type, o2.source).getClusterExpansionZoom(o2); - })), this.actor.registerMessageHandler("GCC", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("GCC", ((t5, o2) => e._(this, void 0, void 0, (function* () { return this._getWorkerSource(t5, o2.type, o2.source).getClusterChildren(o2); - })), this.actor.registerMessageHandler("GCL", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("GCL", ((t5, o2) => e._(this, void 0, void 0, (function* () { return this._getWorkerSource(t5, o2.type, o2.source).getClusterLeaves(o2); - })), this.actor.registerMessageHandler("LD", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadData(t5)), this.actor.registerMessageHandler("GD", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).getData()), this.actor.registerMessageHandler("LT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadTile(t5)), this.actor.registerMessageHandler("RT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).reloadTile(t5)), this.actor.registerMessageHandler("AT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).abortTile(t5)), this.actor.registerMessageHandler("RMT", (e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).removeTile(t5)), this.actor.registerMessageHandler("RS", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("LD", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadData(t5))), this.actor.registerMessageHandler("GD", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).getData())), this.actor.registerMessageHandler("LT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).loadTile(t5))), this.actor.registerMessageHandler("RT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).reloadTile(t5))), this.actor.registerMessageHandler("AT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).abortTile(t5))), this.actor.registerMessageHandler("RMT", ((e2, t5) => this._getWorkerSource(e2, t5.type, t5.source).removeTile(t5))), this.actor.registerMessageHandler("RS", ((t5, o2) => e._(this, void 0, void 0, (function* () { if (!this.workerSources[t5] || !this.workerSources[t5][o2.type] || !this.workerSources[t5][o2.type][o2.source]) return; const e2 = this.workerSources[t5][o2.type][o2.source]; delete this.workerSources[t5][o2.type][o2.source], void 0 !== e2.removeSource && e2.removeSource(o2); - })), this.actor.registerMessageHandler("RM", (t5) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("RM", ((t5) => e._(this, void 0, void 0, (function* () { delete this.layerIndexes[t5], delete this.availableImages[t5], delete this.workerSources[t5], delete this.demWorkerSources[t5]; - })), this.actor.registerMessageHandler("SR", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SR", ((t5, o2) => e._(this, void 0, void 0, (function* () { this.referrer = o2; - })), this.actor.registerMessageHandler("SRPS", (e2, t5) => this._syncRTLPluginState(e2, t5)), this.actor.registerMessageHandler("IS", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SRPS", ((e2, t5) => this._syncRTLPluginState(e2, t5))), this.actor.registerMessageHandler("IS", ((t5, o2) => e._(this, void 0, void 0, (function* () { this.self.importScripts(o2); - })), this.actor.registerMessageHandler("SI", (e2, t5) => this._setImages(e2, t5)), this.actor.registerMessageHandler("UL", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SI", ((e2, t5) => this._setImages(e2, t5))), this.actor.registerMessageHandler("UL", ((t5, o2) => e._(this, void 0, void 0, (function* () { this._getLayerIndex(t5).update(o2.layers, o2.removedIds); - })), this.actor.registerMessageHandler("SL", (t5, o2) => e._(this, void 0, void 0, function* () { + })))), this.actor.registerMessageHandler("SL", ((t5, o2) => e._(this, void 0, void 0, (function* () { this._getLayerIndex(t5).replace(o2); - })); + })))); } _setImages(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.availableImages[t4] = o2; for (const e2 in this.workerSources[t4]) { const i2 = this.workerSources[t4][e2]; for (const e3 in i2) i2[e3].availableImages = o2; } - }); + })); } _syncRTLPluginState(t4, o2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { if (e.bD.isParsed()) return e.bD.getState(); if ("loading" !== o2.pluginStatus) return e.bD.setState(o2), o2; const t5 = o2.pluginURL; @@ -232435,7 +232578,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return e.bD.setState(o3), o3; } throw e.bD.setState({ pluginStatus: "error", pluginURL: "" }), new Error(`RTL Text Plugin failed to import scripts from ${t5}`); - }); + })); } _getAvailableImages(e2) { let t4 = this.availableImages[e2]; @@ -232466,17 +232609,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return e.i(self) && (self.worker = new ve(self)), ve; - }); - define2("index", ["exports", "./shared"], function(t, e) { + })); + define2("index", ["exports", "./shared"], (function(t, e) { "use strict"; var i = "4.7.1"; let a, s; - const o = { now: "undefined" != typeof performance && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (t4) => new Promise((i2, a2) => { + const o = { now: "undefined" != typeof performance && performance && performance.now ? performance.now.bind(performance) : Date.now.bind(Date), frameAsync: (t4) => new Promise(((i2, a2) => { const s2 = requestAnimationFrame(i2); - t4.signal.addEventListener("abort", () => { + t4.signal.addEventListener("abort", (() => { cancelAnimationFrame(s2), a2(e.c()); - }); - }), getImageData(t4, e2 = 0) { + })); + })), getImageData(t4, e2 = 0) { return this.getImageCanvasContext(t4).getImageData(-e2, -e2, t4.width + 2 * e2, t4.height + 2 * e2); }, getImageCanvasContext(t4) { const e2 = window.document.createElement("canvas"), i2 = e2.getContext("2d", { willReadFrequently: true }); @@ -232517,9 +232660,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ t4.preventDefault(), t4.stopPropagation(), window.removeEventListener("click", r.suppressClickInternal, true); } static suppressClick() { - window.addEventListener("click", r.suppressClickInternal, true), window.setTimeout(() => { + window.addEventListener("click", r.suppressClickInternal, true), window.setTimeout((() => { window.removeEventListener("click", r.suppressClickInternal, true); - }, 0); + }), 0); } static getScale(t4) { const e2 = t4.getBoundingClientRect(); @@ -232565,7 +232708,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ l && d(l), l = null, u = true; }, h.onerror = () => { c = true, l = null; - }, h.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), function(t4) { + }, h.src = "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="), (function(t4) { let i2, a2, s2, o2; t4.resetRequestQueue = () => { i2 = [], a2 = 0, s2 = 0, o2 = {}; @@ -232574,16 +232717,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return o2[e2] = t5, e2; }, t4.removeThrottleControl = (t5) => { delete o2[t5], l2(); - }, t4.getImage = (t5, a3, s3 = true) => new Promise((o3, r3) => { + }, t4.getImage = (t5, a3, s3 = true) => new Promise(((o3, r3) => { n.supported && (t5.headers || (t5.headers = {}), t5.headers.accept = "image/webp,*/*"), e.e(t5, { type: "image" }), i2.push({ abortController: a3, requestParameters: t5, supportImageRefresh: s3, state: "queued", onError: (t6) => { r3(t6); }, onSuccess: (t6) => { o3(t6); } }), l2(); - }); - const r2 = (t5) => e._(this, void 0, void 0, function* () { + })); + const r2 = (t5) => e._(this, void 0, void 0, (function* () { t5.state = "running"; - const { requestParameters: i3, supportImageRefresh: s3, onError: o3, onSuccess: r3, abortController: n2 } = t5, c2 = false === s3 && !e.i(self) && !e.g(i3.url) && (!i3.headers || Object.keys(i3.headers).reduce((t6, e2) => t6 && "accept" === e2, true)); + const { requestParameters: i3, supportImageRefresh: s3, onError: o3, onSuccess: r3, abortController: n2 } = t5, c2 = false === s3 && !e.i(self) && !e.g(i3.url) && (!i3.headers || Object.keys(i3.headers).reduce(((t6, e2) => t6 && "accept" === e2), true)); a2++; const u2 = c2 ? h2(i3, n2) : e.m(i3, n2); try { @@ -232595,7 +232738,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ a2--, l2(); } var d2; - }), l2 = () => { + })), l2 = () => { const t5 = (() => { for (const t6 of Object.keys(o2)) if (o2[t6]()) return true; return false; @@ -232604,17 +232747,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const t6 = i2.shift(); t6.abortController.signal.aborted ? e2-- : r2(t6); } - }, h2 = (t5, i3) => new Promise((a3, s3) => { + }, h2 = (t5, i3) => new Promise(((a3, s3) => { const o3 = new Image(), r3 = t5.url, n2 = t5.credentials; - n2 && "include" === n2 ? o3.crossOrigin = "use-credentials" : (n2 && "same-origin" === n2 || !e.s(r3)) && (o3.crossOrigin = "anonymous"), i3.signal.addEventListener("abort", () => { + n2 && "include" === n2 ? o3.crossOrigin = "use-credentials" : (n2 && "same-origin" === n2 || !e.s(r3)) && (o3.crossOrigin = "anonymous"), i3.signal.addEventListener("abort", (() => { o3.src = "", s3(e.c()); - }), o3.fetchPriority = "high", o3.onload = () => { + })), o3.fetchPriority = "high", o3.onload = () => { o3.onerror = o3.onload = null, a3({ data: o3 }); }, o3.onerror = () => { o3.onerror = o3.onload = null, i3.signal.aborted || s3(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")); }, o3.src = r3; - }); - }(_ || (_ = {})), _.resetRequestQueue(); + })); + })(_ || (_ = {})), _.resetRequestQueue(); class p { constructor(t4) { this._transformRequestFn = t4; @@ -232654,10 +232797,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = t4.split("?"); return a2[0] += `${e2}${i2}`, a2.join("?"); } - !function() { + !(function() { var t4 = new e.A(2); e.A != Float32Array && (t4[0] = 0, t4[1] = 0); - }(); + })(); class b { constructor(t4, e2, i2, a2) { this.context = t4, this.format = i2, this.texture = t4.gl.createTexture(), this.update(e2, a2); @@ -232745,11 +232888,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return Object.keys(this.images); } getImages(t4) { - return new Promise((e2, i2) => { + return new Promise(((e2, i2) => { let a2 = true; if (!this.isLoaded()) for (const e3 of t4) this.images[e3] || (a2 = false); this.isLoaded() || a2 ? e2(this._getImagesForIds(t4)) : this.requestors.push({ ids: t4, promiseResolve: e2 }); - }); + })); } _getImagesForIds(t4) { const i2 = {}; @@ -232831,16 +232974,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.url = t4; } getGlyphs(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = []; for (const i3 in t4) for (const a3 of t4[i3]) e2.push(this._getAndCacheGlyphsPromise(i3, a3)); const i2 = yield Promise.all(e2), a2 = {}; for (const { stack: t5, id: e3, glyph: s2 } of i2) a2[t5] || (a2[t5] = {}), a2[t5][e3] = s2 && { id: s2.id, bitmap: s2.bitmap.clone(), metrics: s2.metrics }; return a2; - }); + })); } _getAndCacheGlyphsPromise(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { let e2 = this.entries[t4]; e2 || (e2 = this.entries[t4] = { glyphs: {}, requests: {}, ranges: {} }); let a2 = e2.glyphs[i2]; @@ -232857,7 +233000,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const o2 = yield e2.requests[s2]; for (const t5 in o2) this._doesCharSupportLocalGlyph(+t5) || (e2.glyphs[+t5] = o2[+t5]); return e2.ranges[s2] = true, { stack: t4, id: i2, glyph: o2[i2] || null }; - }); + })); } _doesCharSupportLocalGlyph(t4) { return !!this.localIdeographFontFamily && new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}", "u").test(String.fromCodePoint(t4)); @@ -232876,13 +233019,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } C2.loadGlyphRange = function(t4, i2, a2, s2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const o2 = 256 * i2, r2 = o2 + 255, n2 = s2.transformRequest(a2.replace("{fontstack}", t4).replace("{range}", `${o2}-${r2}`), "Glyphs"), l2 = yield e.l(n2, new AbortController()); if (!l2 || !l2.data) throw new Error(`Could not load glyph range. range: ${i2}, ${o2}-${r2}`); const h2 = {}; for (const t5 of e.n(l2.data)) h2[t5.id] = t5; return h2; - }); + })); }, C2.TinySDF = class { constructor({ fontSize: t4 = 24, buffer: e2 = 3, radius: i2 = 8, cutoff: a2 = 0.25, fontFamily: s2 = "sans-serif", fontWeight: o2 = "normal", fontStyle: r2 = "normal" } = {}) { this.buffer = e2, this.cutoff = a2, this.radius = i2; @@ -233069,9 +233212,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.active[t4] = true, this.workers.slice(); } release(t4) { - delete this.active[t4], 0 === this.numActive() && (this.workers.forEach((t5) => { + delete this.active[t4], 0 === this.numActive() && (this.workers.forEach(((t5) => { t5.terminate(); - }), this.workers = null); + })), this.workers = null); } isPreloaded() { return !!this.active[k]; @@ -233105,23 +233248,23 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.currentActor = (this.currentActor + 1) % this.actors.length, this.actors[this.currentActor]; } remove(t4 = true) { - this.actors.forEach((t5) => { + this.actors.forEach(((t5) => { t5.remove(); - }), this.actors = [], t4 && this.workerPool.release(this.id); + })), this.actors = [], t4 && this.workerPool.release(this.id); } registerMessageHandler(t4, e2) { for (const i2 of this.actors) i2.registerMessageHandler(t4, e2); } } function j() { - return O || (O = new U(N(), e.G), O.registerMessageHandler("GR", (t4, i2, a2) => e.m(i2, a2))), O; + return O || (O = new U(N(), e.G), O.registerMessageHandler("GR", ((t4, i2, a2) => e.m(i2, a2)))), O; } function Z(t4, i2) { const a2 = e.H(); return e.J(a2, a2, [1, 1, 0]), e.K(a2, a2, [0.5 * t4.width, 0.5 * t4.height, 1]), e.L(a2, a2, t4.calculatePosMatrix(i2.toUnwrapped())); } function q(t4, e2, i2, a2, s2, o2) { - const r2 = function(t5, e3, i3) { + const r2 = (function(t5, e3, i3) { if (t5) for (const a3 of t5) { const t6 = e3[a3]; if (t6 && t6.source === i3 && "fill-extrusion" === t6.type) return true; @@ -233131,11 +233274,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (a3.source === i3 && "fill-extrusion" === a3.type) return true; } return false; - }(s2 && s2.layers, e2, t4.id), n2 = o2.maxPitchScaleFactor(), l2 = t4.tilesIn(a2, n2, r2); + })(s2 && s2.layers, e2, t4.id), n2 = o2.maxPitchScaleFactor(), l2 = t4.tilesIn(a2, n2, r2); l2.sort(V); const h2 = []; for (const a3 of l2) h2.push({ wrappedTileID: a3.tileID.wrapped().key, queryResults: a3.tile.queryRenderedFeatures(e2, i2, t4._state, a3.queryGeometry, a3.cameraQueryGeometry, a3.scale, s2, o2, n2, Z(t4.transform, a3.tileID)) }); - const c2 = function(t5) { + const c2 = (function(t5) { const e3 = {}, i3 = {}; for (const a3 of t5) { const t6 = a3.queryResults, s3 = a3.wrappedTileID, o3 = i3[s3] = i3[s3] || {}; @@ -233145,11 +233288,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return e3; - }(h2); - for (const e3 in c2) c2[e3].forEach((e4) => { + })(h2); + for (const e3 in c2) c2[e3].forEach(((e4) => { const i3 = e4.feature, a3 = t4.getFeatureState(i3.layer["source-layer"], i3.id); i3.source = i3.layer.source, i3.layer["source-layer"] && (i3.sourceLayer = i3.layer["source-layer"]), i3.state = a3; - }); + })); return c2; } function V(t4, e2) { @@ -233157,12 +233300,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return i2.overscaledZ - a2.overscaledZ || i2.canonical.y - a2.canonical.y || i2.wrap - a2.wrap || i2.canonical.x - a2.canonical.x; } function G(t4, i2, a2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { let s2 = t4; if (t4.url ? s2 = (yield e.h(i2.transformRequest(t4.url, "Source"), a2)).data : yield o.frameAsync(a2), !s2) return null; const r2 = e.M(e.e(s2, t4), ["tiles", "minzoom", "maxzoom", "attribution", "bounds", "scheme", "tileSize", "encoding"]); - return "vector_layers" in s2 && s2.vector_layers && (r2.vectorLayerIds = s2.vector_layers.map((t5) => t5.id)), r2; - }); + return "vector_layers" in s2 && s2.vector_layers && (r2.vectorLayerIds = s2.vector_layers.map(((t5) => t5.id))), r2; + })); } class H { constructor(t4, e2) { @@ -233255,7 +233398,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.setEventedParent(s2); } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false, this.fire(new e.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController(); try { const t4 = yield G(this._options, this.map._requestManager, this._tileJSONRequest); @@ -233263,7 +233406,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t4) { this._tileJSONRequest = null, this.fire(new e.j(t4)); } - }); + })); } loaded() { return this._loaded; @@ -233278,14 +233421,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this._tileJSONRequest && this._tileJSONRequest.abort(), t4(), this.load(); } setTiles(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this._options.tiles = t4; - }), this; + })), this; } setUrl(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this.url = t4, this._options.url = t4; - }), this; + })), this; } onRemove() { this._tileJSONRequest && (this._tileJSONRequest.abort(), this._tileJSONRequest = null); @@ -233294,14 +233437,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return e.e({}, this._options); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = t4.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), i2 = { request: this.map._requestManager.transformRequest(e2, "Tile"), uid: t4.uid, tileID: t4.tileID, zoom: t4.tileID.overscaledZ, tileSize: this.tileSize * t4.tileID.overscaleFactor(), type: this.type, source: this.id, pixelRatio: this.map.getPixelRatio(), showCollisionBoxes: this.map.showCollisionBoxes, promoteId: this.promoteId }; i2.request.collectResourceTiming = this._collectResourceTiming; let a2 = "RT"; if (t4.actor && "expired" !== t4.state) { - if ("loading" === t4.state) return new Promise((e3, i3) => { + if ("loading" === t4.state) return new Promise(((e3, i3) => { t4.reloadPromise = { resolve: e3, reject: i3 }; - }); + })); } else t4.actor = this.dispatcher.getActor(), a2 = "LT"; t4.abortController = new AbortController(); try { @@ -233313,7 +233456,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (e3 && 404 !== e3.status) throw e3; this._afterTileLoadWorkerResponse(t4, null); } - }); + })); } _afterTileLoadWorkerResponse(t4, e2) { if (e2 && e2.resourceTiming && (t4.resourceTiming = e2.resourceTiming), e2 && this.map._refreshExpiredTiles && t4.setExpiryData(e2), t4.loadVectorData(e2, this.map.painter), t4.reloadPromise) { @@ -233322,14 +233465,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.abortController && (t4.abortController.abort(), delete t4.abortController), t4.actor && (yield t4.actor.sendAsync({ type: "AT", data: { uid: t4.uid, type: this.type, source: this.id } })); - }); + })); } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.unloadVectorData(), t4.actor && (yield t4.actor.sendAsync({ type: "RMT", data: { uid: t4.uid, type: this.type, source: this.id } })); - }); + })); } hasTransition() { return false; @@ -233340,7 +233483,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(), this.id = t4, this.dispatcher = a2, this.setEventedParent(s2), this.type = "raster", this.minzoom = 0, this.maxzoom = 22, this.roundZoom = true, this.scheme = "xyz", this.tileSize = 512, this._loaded = false, this._options = e.e({ type: "raster" }, i2), e.e(this, e.M(i2, ["url", "scheme", "tileSize"])); } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false, this.fire(new e.k("dataloading", { dataType: "source" })), this._tileJSONRequest = new AbortController(); try { const t4 = yield G(this._options, this.map._requestManager, this._tileJSONRequest); @@ -233348,7 +233491,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t4) { this._tileJSONRequest = null, this.fire(new e.j(t4)); } - }); + })); } loaded() { return this._loaded; @@ -233363,14 +233506,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this._tileJSONRequest && (this._tileJSONRequest.abort(), this._tileJSONRequest = null), t4(), this.load(); } setTiles(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this._options.tiles = t4; - }), this; + })), this; } setUrl(t4) { - return this.setSourceProperty(() => { + return this.setSourceProperty((() => { this.url = t4, this._options.url = t4; - }), this; + })), this; } serialize() { return e.e({}, this._options); @@ -233379,7 +233522,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return !this.tileBounds || this.tileBounds.contains(t4.canonical); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = t4.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme); t4.abortController = new AbortController(); try { @@ -233394,17 +233537,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (delete t4.abortController, t4.aborted) t4.state = "unloaded"; else if (e3) throw t4.state = "errored", e3; } - }); + })); } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.abortController && (t4.abortController.abort(), delete t4.abortController); - }); + })); } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.texture && this.map.painter.saveTileTexture(t4.texture); - }); + })); } hasTransition() { return false; @@ -233415,7 +233558,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(t4, i2, a2, s2), this.type = "raster-dem", this.maxzoom = 22, this._options = e.e({ type: "raster-dem" }, i2), this.encoding = i2.encoding || "mapbox", this.redFactor = i2.redFactor, this.greenFactor = i2.greenFactor, this.blueFactor = i2.blueFactor, this.baseShift = i2.baseShift; } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const i2 = t4.tileID.canonical.url(this.tiles, this.map.getPixelRatio(), this.scheme), a2 = this.map._requestManager.transformRequest(i2, "Tile"); t4.neighboringTiles = this._getNeighboringTiles(t4.tileID), t4.abortController = new AbortController(); try { @@ -233435,10 +233578,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (delete t4.abortController, t4.aborted) t4.state = "unloaded"; else if (e2) throw t4.state = "errored", e2; } - }); + })); } readImageNow(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { if ("undefined" != typeof VideoFrame && e.V()) { const i2 = t4.width + 2, a2 = t4.height + 2; try { @@ -233447,16 +233590,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return o.getImageData(t4, 1); - }); + })); } _getNeighboringTiles(t4) { const i2 = t4.canonical, a2 = Math.pow(2, i2.z), s2 = (i2.x - 1 + a2) % a2, o2 = 0 === i2.x ? t4.wrap - 1 : t4.wrap, r2 = (i2.x + 1 + a2) % a2, n2 = i2.x + 1 === a2 ? t4.wrap + 1 : t4.wrap, l2 = {}; return l2[new e.S(t4.overscaledZ, o2, i2.z, s2, i2.y).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, n2, i2.z, r2, i2.y).key] = { backfilled: false }, i2.y > 0 && (l2[new e.S(t4.overscaledZ, o2, i2.z, s2, i2.y - 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, t4.wrap, i2.z, i2.x, i2.y - 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, n2, i2.z, r2, i2.y - 1).key] = { backfilled: false }), i2.y + 1 < a2 && (l2[new e.S(t4.overscaledZ, o2, i2.z, s2, i2.y + 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, t4.wrap, i2.z, i2.x, i2.y + 1).key] = { backfilled: false }, l2[new e.S(t4.overscaledZ, n2, i2.z, r2, i2.y + 1).key] = { backfilled: false }), l2; } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.demTexture && this.map.painter.saveTileTexture(t4.demTexture), t4.fbo && (t4.fbo.destroy(), delete t4.fbo), t4.dem && delete t4.dem, delete t4.neighboringTiles, t4.state = "unloaded", t4.actor && (yield t4.actor.sendAsync({ type: "RDT", data: { type: this.type, uid: t4.uid, source: this.id } })); - }); + })); } } class J extends e.E { @@ -233466,9 +233609,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ void 0 !== i2.clusterMaxZoom && this.maxzoom <= i2.clusterMaxZoom && e.w(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${i2.clusterMaxZoom}".`), this.workerOptions = e.e({ source: this.id, cluster: i2.cluster || false, geojsonVtOptions: { buffer: (void 0 !== i2.buffer ? i2.buffer : 128) * o2, tolerance: (void 0 !== i2.tolerance ? i2.tolerance : 0.375) * o2, extent: e.X, maxZoom: this.maxzoom, lineMetrics: i2.lineMetrics || false, generateId: i2.generateId || false }, superclusterOptions: { maxZoom: void 0 !== i2.clusterMaxZoom ? i2.clusterMaxZoom : this.maxzoom - 1, minPoints: Math.max(2, i2.clusterMinPoints || 2), extent: e.X, radius: (i2.clusterRadius || 50) * o2, log: false, generateId: i2.generateId || false }, clusterProperties: i2.clusterProperties, filter: i2.filter }, i2.workerOptions), "string" == typeof this.promoteId && (this.workerOptions.promoteId = this.promoteId); } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { yield this._updateWorkerData(); - }); + })); } onAdd(t4) { this.map = t4, this.load(); @@ -233480,10 +233623,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this._updateWorkerData(t4), this; } getData() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const t4 = e.e({ type: this.type }, this.workerOptions); return this.actor.sendAsync({ type: "GD", data: t4 }); - }); + })); } setClusterOptions(t4) { return this.workerOptions.cluster = t4.cluster, t4 && (void 0 !== t4.clusterRadius && (this.workerOptions.superclusterOptions.radius = t4.clusterRadius), void 0 !== t4.clusterMaxZoom && (this.workerOptions.superclusterOptions.maxZoom = t4.clusterMaxZoom)), this._updateWorkerData(), this; @@ -233498,7 +233641,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return this.actor.sendAsync({ type: "GCL", data: { type: this.type, source: this.id, clusterId: t4, limit: e2, offset: i2 } }); } _updateWorkerData(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const i2 = e.e({ type: this.type }, this.workerOptions); t4 ? i2.dataDiff = t4 : "string" == typeof this._data ? (i2.request = this.map._requestManager.transformRequest(o.resolveURL(this._data), "Source"), i2.request.collectResourceTiming = this._collectResourceTiming) : i2.data = JSON.stringify(this._data), this._pendingLoads++, this.fire(new e.k("dataloading", { dataType: "source" })); try { @@ -233512,30 +233655,30 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (this._pendingLoads--, this._removed) return void this.fire(new e.k("dataabort", { dataType: "source" })); this.fire(new e.j(t5)); } - }); + })); } loaded() { return 0 === this._pendingLoads; } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = t4.actor ? "RT" : "LT"; t4.actor = this.actor; const i2 = { type: this.type, uid: t4.uid, tileID: t4.tileID, zoom: t4.tileID.overscaledZ, maxZoom: this.maxzoom, tileSize: this.tileSize, source: this.id, pixelRatio: this.map.getPixelRatio(), showCollisionBoxes: this.map.showCollisionBoxes, promoteId: this.promoteId }; t4.abortController = new AbortController(); const a2 = yield this.actor.sendAsync({ type: e2, data: i2 }, t4.abortController); delete t4.abortController, t4.unloadVectorData(), t4.aborted || t4.loadVectorData(a2, this.map.painter, "RT" === e2); - }); + })); } abortTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.abortController && (t4.abortController.abort(), delete t4.abortController), t4.aborted = true; - }); + })); } unloadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { t4.unloadVectorData(), yield this.actor.sendAsync({ type: "RMT", data: { uid: t4.uid, type: this.type, source: this.id } }); - }); + })); } onRemove() { this._removed = true, this.actor.sendAsync({ type: "RS", data: { type: this.type, source: this.id } }); @@ -233553,7 +233696,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(), this.id = t4, this.dispatcher = i2, this.coordinates = e2.coordinates, this.type = "image", this.minzoom = 0, this.maxzoom = 22, this.tileSize = 512, this.tiles = {}, this._loaded = false, this.setEventedParent(a2), this.options = e2; } load(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false, this.fire(new e.k("dataloading", { dataType: "source" })), this.url = this.options.url, this._request = new AbortController(); try { const e2 = yield _.getImage(this.map._requestManager.transformRequest(this.url, "Image"), this._request); @@ -233561,15 +233704,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } catch (t5) { this._request = null, this._loaded = true, this.fire(new e.j(t5)); } - }); + })); } loaded() { return this._loaded; } updateImage(t4) { - return t4.url ? (this._request && (this._request.abort(), this._request = null), this.options.url = t4.url, this.load(t4.coordinates).finally(() => { + return t4.url ? (this._request && (this._request.abort(), this._request = null), this.options.url = t4.url, this.load(t4.coordinates).finally((() => { this.texture = null; - }), this) : this; + })), this) : this; } _finishLoading() { this.map && (this.setCoordinates(this.coordinates), this.fire(new e.k("data", { dataType: "source", sourceDataType: "metadata" }))); @@ -233583,13 +233726,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ setCoordinates(t4) { this.coordinates = t4; const i2 = t4.map(e.Z.fromLngLat); - this.tileID = function(t5) { + this.tileID = (function(t5) { let i3 = 1 / 0, a3 = 1 / 0, s2 = -1 / 0, o2 = -1 / 0; for (const e2 of t5) i3 = Math.min(i3, e2.x), a3 = Math.min(a3, e2.y), s2 = Math.max(s2, e2.x), o2 = Math.max(o2, e2.y); const r2 = Math.max(s2 - i3, o2 - a3), n2 = Math.max(0, Math.floor(-Math.log(r2) / Math.LN2)), l2 = Math.pow(2, n2); return new e.a1(n2, Math.floor((i3 + s2) / 2 * l2), Math.floor((a3 + o2) / 2 * l2)); - }(i2), this.minzoom = this.maxzoom = this.tileID.z; - const a2 = i2.map((t5) => this.tileID.getTilePoint(t5)._round()); + })(i2), this.minzoom = this.maxzoom = this.tileID.z; + const a2 = i2.map(((t5) => this.tileID.getTilePoint(t5)._round())); return this._boundsArray = new e.$(), this._boundsArray.emplaceBack(a2[0].x, a2[0].y, 0, 0), this._boundsArray.emplaceBack(a2[1].x, a2[1].y, e.X, 0), this._boundsArray.emplaceBack(a2[3].x, a2[3].y, 0, e.X), this._boundsArray.emplaceBack(a2[2].x, a2[2].y, e.X, e.X), this.boundsBuffer && (this.boundsBuffer.destroy(), delete this.boundsBuffer), this.fire(new e.k("data", { dataType: "source", sourceDataType: "content" })), this; } prepare() { @@ -233604,9 +233747,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ a2 && this.fire(new e.k("data", { dataType: "source", sourceDataType: "idle", sourceId: this.id })); } loadTile(t4) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this.tileID && this.tileID.equals(t4.tileID.canonical) ? (this.tiles[String(t4.tileID.wrap)] = t4, t4.buckets = {}) : t4.state = "errored"; - }); + })); } serialize() { return { type: "image", url: this.options.url, coordinates: this.coordinates }; @@ -233620,7 +233763,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(t4, e2, i2, a2), this.roundZoom = true, this.type = "video", this.options = e2; } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = false; const t4 = this.options; this.urls = []; @@ -233628,13 +233771,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ try { const t5 = yield e.a3(this.urls); if (this._loaded = true, !t5) return; - this.video = t5, this.video.loop = true, this.video.addEventListener("playing", () => { + this.video = t5, this.video.loop = true, this.video.addEventListener("playing", (() => { this.map.triggerRepaint(); - }), this.map && this.video.play(), this._finishLoading(); + })), this.map && this.video.play(), this._finishLoading(); } catch (t5) { this.fire(new e.j(t5)); } - }); + })); } pause() { this.video && this.video.pause(); @@ -233674,16 +233817,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class et extends Q { constructor(t4, i2, a2, s2) { - super(t4, i2, a2, s2), i2.coordinates ? Array.isArray(i2.coordinates) && 4 === i2.coordinates.length && !i2.coordinates.some((t5) => !Array.isArray(t5) || 2 !== t5.length || t5.some((t6) => "number" != typeof t6)) || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "coordinates"'))), i2.animate && "boolean" != typeof i2.animate && this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'optional "animate" property must be a boolean value'))), i2.canvas ? "string" == typeof i2.canvas || i2.canvas instanceof HTMLCanvasElement || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "canvas"'))), this.options = i2, this.animate = void 0 === i2.animate || i2.animate; + super(t4, i2, a2, s2), i2.coordinates ? Array.isArray(i2.coordinates) && 4 === i2.coordinates.length && !i2.coordinates.some(((t5) => !Array.isArray(t5) || 2 !== t5.length || t5.some(((t6) => "number" != typeof t6)))) || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"coordinates" property must be an array of 4 longitude/latitude array pairs'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "coordinates"'))), i2.animate && "boolean" != typeof i2.animate && this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'optional "animate" property must be a boolean value'))), i2.canvas ? "string" == typeof i2.canvas || i2.canvas instanceof HTMLCanvasElement || this.fire(new e.j(new e.a2(`sources.${t4}`, null, '"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))) : this.fire(new e.j(new e.a2(`sources.${t4}`, null, 'missing required property "canvas"'))), this.options = i2, this.animate = void 0 === i2.animate || i2.animate; } load() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { this._loaded = true, this.canvas || (this.canvas = this.options.canvas instanceof HTMLCanvasElement ? this.options.canvas : document.getElementById(this.options.canvas)), this.width = this.canvas.width, this.height = this.canvas.height, this._hasInvalidDimensions() ? this.fire(new e.j(new Error("Canvas dimensions cannot be less than or equal to zero."))) : (this.play = function() { this._playing = true, this.map.triggerRepaint(); }, this.pause = function() { this._playing && (this.prepare(), this._playing = false); }, this._finishLoading()); - }); + })); } getCanvas() { return this.canvas; @@ -233742,9 +233885,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = j(); } _syncState(t4) { - return this.status = t4, this.dispatcher.broadcast("SRPS", { pluginStatus: t4, pluginURL: this.url }).catch((t5) => { + return this.status = t4, this.dispatcher.broadcast("SRPS", { pluginStatus: t4, pluginURL: this.url }).catch(((t5) => { throw this.status = "error", t5; - }); + })); } getRTLTextPluginStatus() { return this.status; @@ -233753,19 +233896,19 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this.status = "unavailable", this.url = null; } setRTLTextPlugin(t4) { - return e._(this, arguments, void 0, function* (t5, e2 = false) { + return e._(this, arguments, void 0, (function* (t5, e2 = false) { if (this.url) throw new Error("setRTLTextPlugin cannot be called multiple times."); if (this.url = o.resolveURL(t5), !this.url) throw new Error(`requested url ${t5} is invalid`); if ("unavailable" === this.status) { if (!e2) return this._requestImport(); this.status = "deferred", this._syncState(this.status); } else if ("requested" === this.status) return this._requestImport(); - }); + })); } _requestImport() { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { yield this._syncState("loading"), this.status = "loaded", this.fire(new e.k(st)); - }); + })); } lazyLoad() { "unavailable" === this.status ? this.status = "requested" : "deferred" === this.status && this._requestImport(); @@ -233791,18 +233934,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } loadVectorData(t4, i2, a2) { if (this.hasData() && this.unloadVectorData(), this.state = "loaded", t4) { - t4.featureIndex && (this.latestFeatureIndex = t4.featureIndex, t4.rawTileData ? (this.latestRawTileData = t4.rawTileData, this.latestFeatureIndex.rawTileData = t4.rawTileData) : this.latestRawTileData && (this.latestFeatureIndex.rawTileData = this.latestRawTileData)), this.collisionBoxArray = t4.collisionBoxArray, this.buckets = function(t5, e2) { + t4.featureIndex && (this.latestFeatureIndex = t4.featureIndex, t4.rawTileData ? (this.latestRawTileData = t4.rawTileData, this.latestFeatureIndex.rawTileData = t4.rawTileData) : this.latestRawTileData && (this.latestFeatureIndex.rawTileData = this.latestRawTileData)), this.collisionBoxArray = t4.collisionBoxArray, this.buckets = (function(t5, e2) { const i3 = {}; if (!e2) return i3; for (const a3 of t5) { - const t6 = a3.layerIds.map((t7) => e2.getLayer(t7)).filter(Boolean); + const t6 = a3.layerIds.map(((t7) => e2.getLayer(t7))).filter(Boolean); if (0 !== t6.length) { - a3.layers = t6, a3.stateDependentLayerIds && (a3.stateDependentLayers = a3.stateDependentLayerIds.map((e3) => t6.filter((t7) => t7.id === e3)[0])); + a3.layers = t6, a3.stateDependentLayerIds && (a3.stateDependentLayers = a3.stateDependentLayerIds.map(((e3) => t6.filter(((t7) => t7.id === e3))[0]))); for (const e3 of t6) i3[e3.id] = a3; } } return i3; - }(t4.buckets, i2.style), this.hasSymbolBuckets = false; + })(t4.buckets, i2.style), this.hasSymbolBuckets = false; for (const t5 in this.buckets) { const i3 = this.buckets[t5]; if (i3 instanceof e.a6) { @@ -233941,9 +234084,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a2 = t4.wrapped().key; void 0 === this.data[a2] && (this.data[a2] = []); const s2 = { value: e2, timeout: void 0 }; - if (void 0 !== i2 && (s2.timeout = setTimeout(() => { + if (void 0 !== i2 && (s2.timeout = setTimeout((() => { this.remove(t4, s2); - }, i2)), this.data[a2].push(s2), this.order.push(a2), this.order.length > this.max) { + }), i2)), this.data[a2].push(s2), this.order.push(a2), this.order.length > this.max) { const t5 = this._getAndRemoveByKey(this.order[0]); t5 && this.onRemove(t5); } @@ -234043,15 +234186,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } class ut extends e.E { constructor(t4, e2, i2) { - super(), this.id = t4, this.dispatcher = i2, this.on("data", (t5) => this._dataHandler(t5)), this.on("dataloading", () => { + super(), this.id = t4, this.dispatcher = i2, this.on("data", ((t5) => this._dataHandler(t5))), this.on("dataloading", (() => { this._sourceErrored = false; - }), this.on("error", () => { + })), this.on("error", (() => { this._sourceErrored = this._source.loaded(); - }), this._source = ((t5, e3, i3, a2) => { + })), this._source = ((t5, e3, i3, a2) => { const s2 = new (at(e3.type))(t5, e3, i3, a2); if (s2.id !== t5) throw new Error(`Expected Source id to be ${t5} instead of ${s2.id}`); return s2; - })(t4, e2, i2, this), this._tiles = {}, this._cache = new ht(0, (t5) => this._unloadTile(t5)), this._timers = {}, this._cacheTimers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new ct(), this._didEmitContent = false, this._updated = false; + })(t4, e2, i2, this), this._tiles = {}, this._cache = new ht(0, ((t5) => this._unloadTile(t5))), this._timers = {}, this._cacheTimers = {}, this._maxTileCacheSize = null, this._maxTileCacheZoomLevels = null, this._loadedParentTiles = {}, this._coveredTiles = {}, this._state = new ct(), this._didEmitContent = false, this._updated = false; } onAdd(t4) { this.map = t4, this._maxTileCacheSize = t4 ? t4._maxTileCacheSize : null, this._maxTileCacheZoomLevels = t4 ? t4._maxTileCacheZoomLevels : null, this._source && this._source.onAdd && this._source.onAdd(t4); @@ -234083,13 +234226,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ this._paused = false, this._shouldReloadOnResume = false, t4 && this.reload(), this.transform && this.update(this.transform, this.terrain); } _loadTile(t4, i2, a2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { try { yield this._source.loadTile(t4), this._tileLoaded(t4, i2, a2); } catch (i3) { t4.state = "errored", 404 !== i3.status ? this._source.fire(new e.j(i3, { tile: t4 })) : this.update(this.transform, this.terrain); } - }); + })); } _unloadTile(t4) { this._source.unloadTile && this._source.unloadTile(t4); @@ -234108,15 +234251,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } getIds() { - return Object.values(this._tiles).map((t4) => t4.tileID).sort(dt).map((t4) => t4.key); + return Object.values(this._tiles).map(((t4) => t4.tileID)).sort(dt).map(((t4) => t4.key)); } getRenderableIds(t4) { const i2 = []; for (const e2 in this._tiles) this._isIdRenderable(e2, t4) && i2.push(this._tiles[e2]); - return t4 ? i2.sort((t5, i3) => { + return t4 ? i2.sort(((t5, i3) => { const a2 = t5.tileID, s2 = i3.tileID, o2 = new e.P(a2.canonical.x, a2.canonical.y)._rotate(this.transform.angle), r2 = new e.P(s2.canonical.x, s2.canonical.y)._rotate(this.transform.angle); return a2.overscaledZ - s2.overscaledZ || r2.y - o2.y || r2.x - o2.x; - }).map((t5) => t5.tileID.key) : i2.map((t5) => t5.tileID).sort(dt).map((t5) => t5.key); + })).map(((t5) => t5.tileID.key)) : i2.map(((t5) => t5.tileID)).sort(dt).map(((t5) => t5.key)); } hasRenderableParent(t4) { const e2 = this.findLoadedParent(t4, 0); @@ -234133,10 +234276,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } _reloadTile(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const e2 = this._tiles[t4]; e2 && ("loading" !== e2.state && (e2.state = i2), yield this._loadTile(e2, t4, i2)); - }); + })); } _tileLoaded(t4, i2, a2) { t4.timeAdded = o.now(), "expired" === a2 && (t4.refreshedUponExpiration = true), this._setTileReloadTimer(i2, t4), "raster-dem" === this.getSource().type && t4.dem && this._backfillDEM(t4), this._state.initializeTileState(t4, this.map ? this.map.painter : null), t4.aborted || this._source.fire(new e.k("data", { dataType: "source", tile: t4, coord: t4.tileID })); @@ -234243,7 +234386,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ update(t4, i2) { if (!this._sourceLoaded || this._paused) return; let a2; - this.transform = t4, this.terrain = i2, this.updateCacheSize(t4), this.handleWrapJump(this.transform.center.lng), this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? a2 = t4.getVisibleUnwrappedCoordinates(this._source.tileID).map((t5) => new e.S(t5.canonical.z, t5.wrap, t5.canonical.z, t5.canonical.x, t5.canonical.y)) : (a2 = t4.coveringTiles({ tileSize: this.usedForTerrain ? this.tileSize : this._source.tileSize, minzoom: this._source.minzoom, maxzoom: this._source.maxzoom, roundZoom: !this.usedForTerrain && this._source.roundZoom, reparseOverscaled: this._source.reparseOverscaled, terrain: i2 }), this._source.hasTile && (a2 = a2.filter((t5) => this._source.hasTile(t5)))) : a2 = []; + this.transform = t4, this.terrain = i2, this.updateCacheSize(t4), this.handleWrapJump(this.transform.center.lng), this._coveredTiles = {}, this.used || this.usedForTerrain ? this._source.tileID ? a2 = t4.getVisibleUnwrappedCoordinates(this._source.tileID).map(((t5) => new e.S(t5.canonical.z, t5.wrap, t5.canonical.z, t5.canonical.x, t5.canonical.y))) : (a2 = t4.coveringTiles({ tileSize: this.usedForTerrain ? this.tileSize : this._source.tileSize, minzoom: this._source.minzoom, maxzoom: this._source.maxzoom, roundZoom: !this.usedForTerrain && this._source.roundZoom, reparseOverscaled: this._source.reparseOverscaled, terrain: i2 }), this._source.hasTile && (a2 = a2.filter(((t5) => this._source.hasTile(t5))))) : a2 = []; const s2 = t4.coveringZoomLevel(this._source), o2 = Math.max(s2 - ut.maxOverzooming, this._source.minzoom), r2 = Math.max(s2 + ut.maxUnderzooming, this._source.minzoom); if (this.usedForTerrain) { const t5 = {}; @@ -234338,9 +234481,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ _setTileReloadTimer(t4, e2) { t4 in this._timers && (clearTimeout(this._timers[t4]), delete this._timers[t4]); const i2 = e2.getExpiryTimeout(); - i2 && (this._timers[t4] = setTimeout(() => { + i2 && (this._timers[t4] = setTimeout((() => { this._reloadTile(t4, "expired"), delete this._timers[t4]; - }, i2)); + }), i2)); } _removeTile(t4) { const e2 = this._tiles[t4]; @@ -234358,7 +234501,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ tilesIn(t4, i2, a2) { const s2 = [], o2 = this.transform; if (!o2) return s2; - const r2 = a2 ? o2.getCameraQueryGeometry(t4) : t4, n2 = t4.map((t5) => o2.pointCoordinate(t5, this.terrain)), l2 = r2.map((t5) => o2.pointCoordinate(t5, this.terrain)), h2 = this.getIds(); + const r2 = a2 ? o2.getCameraQueryGeometry(t4) : t4, n2 = t4.map(((t5) => o2.pointCoordinate(t5, this.terrain))), l2 = r2.map(((t5) => o2.pointCoordinate(t5, this.terrain))), h2 = this.getIds(); let c2 = 1 / 0, u2 = 1 / 0, d2 = -1 / 0, _2 = -1 / 0; for (const t5 of l2) c2 = Math.min(c2, t5.x), u2 = Math.min(u2, t5.y), d2 = Math.max(d2, t5.x), _2 = Math.max(_2, t5.y); for (let t5 = 0; t5 < h2.length; t5++) { @@ -234366,14 +234509,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (a3.holdingForFade()) continue; const r3 = a3.tileID, p2 = Math.pow(2, o2.zoom - a3.tileID.overscaledZ), m2 = i2 * a3.queryPadding * e.X / a3.tileSize / p2, f2 = [r3.getTilePoint(new e.Z(c2, u2)), r3.getTilePoint(new e.Z(d2, _2))]; if (f2[0].x - m2 < e.X && f2[0].y - m2 < e.X && f2[1].x + m2 >= 0 && f2[1].y + m2 >= 0) { - const t6 = n2.map((t7) => r3.getTilePoint(t7)), e2 = l2.map((t7) => r3.getTilePoint(t7)); + const t6 = n2.map(((t7) => r3.getTilePoint(t7))), e2 = l2.map(((t7) => r3.getTilePoint(t7))); s2.push({ tile: a3, tileID: r3, queryGeometry: t6, cameraQueryGeometry: e2, scale: p2 }); } } return s2; } getVisibleCoordinates(t4) { - const e2 = this.getRenderableIds(t4).map((t5) => this._tiles[t5].tileID); + const e2 = this.getRenderableIds(t4).map(((t5) => this._tiles[t5].tileID)); for (const t5 of e2) t5.posMatrix = this.transform.calculatePosMatrix(t5.toUnwrapped()); return e2; } @@ -234400,7 +234543,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } reloadTilesForDependencies(t4, e2) { for (const i2 in this._tiles) this._tiles[i2].hasDependency(t4, e2) && this._reloadTile(i2, "reloading"); - this._cache.filter((i2) => !i2.hasDependency(t4, e2)); + this._cache.filter(((i2) => !i2.hasDependency(t4, e2))); } } function dt(t4, e2) { @@ -234619,9 +234762,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ m2.push(h3.last); } else { if (o2 && !s2) { - const a4 = xt(t4.tileAnchorPoint.x, t4.tileAnchorPoint.y, r2, t4.getElevation).point, s3 = i2.lineStartIndex + i2.segment + 1, o3 = new e.P(t4.lineVertexArray.getx(s3), t4.lineVertexArray.gety(s3)), n3 = xt(o3.x, o3.y, r2, t4.getElevation), l3 = n3.signedDistanceFromCamera > 0 ? n3.point : function(t5, e2, i3, a5, s4, o4) { + const a4 = xt(t4.tileAnchorPoint.x, t4.tileAnchorPoint.y, r2, t4.getElevation).point, s3 = i2.lineStartIndex + i2.segment + 1, o3 = new e.P(t4.lineVertexArray.getx(s3), t4.lineVertexArray.gety(s3)), n3 = xt(o3.x, o3.y, r2, t4.getElevation), l3 = n3.signedDistanceFromCamera > 0 ? n3.point : (function(t5, e2, i3, a5, s4, o4) { return Pt(t5, e2, i3, 1, s4, o4); - }(t4.tileAnchorPoint, o3, a4, 0, r2, t4), h3 = It(i2.writingMode, a4, l3, c2); + })(t4.tileAnchorPoint, o3, a4, 0, r2, t4), h3 = It(i2.writingMode, a4, l3, c2); if (h3) return h3; } const a3 = Mt(d2 * l2.getoffsetX(i2.glyphStartIndex), _2, p2, s2, i2.segment, i2.lineStartIndex, i2.lineStartIndex + i2.lineLength, t4, u2); @@ -234641,9 +234784,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const o2 = new e.P(i2.lineVertexArray.getx(t4), i2.lineVertexArray.gety(t4)), r2 = St(o2.x, o2.y, i2); if (r2.signedDistanceFromCamera > 0) return s2.projections[t4] = r2.point, s2.anyProjectionOccluded = s2.anyProjectionOccluded || r2.isOccluded, r2.point; const n2 = t4 - a2.direction; - return function(t5, e2, i3, a3, s3) { + return (function(t5, e2, i3, a3, s3) { return Pt(t5, e2, i3, a3, void 0, s3); - }(0 === a2.distanceFromAnchor ? i2.tileAnchorPoint : new e.P(i2.lineVertexArray.getx(n2), i2.lineVertexArray.gety(n2)), o2, a2.previousVertex, a2.absOffsetX - a2.distanceFromAnchor + 1, i2); + })(0 === a2.distanceFromAnchor ? i2.tileAnchorPoint : new e.P(i2.lineVertexArray.getx(n2), i2.lineVertexArray.gety(n2)), o2, a2.previousVertex, a2.absOffsetX - a2.distanceFromAnchor + 1, i2); } function St(t4, e2, i2) { const a2 = t4 + i2.translation[0], s2 = e2 + i2.translation[1]; @@ -234722,7 +234865,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const u3 = 2.5 * i3; if (h2) { const t5 = this.projectPathToScreenSpace(l3, b2, h2); - l3 = t5.some((t6) => t6.signedDistanceFromCamera <= 0) ? [] : t5.map((t6) => t6.point); + l3 = t5.some(((t6) => t6.signedDistanceFromCamera <= 0)) ? [] : t5.map(((t6) => t6.point)); } let m3 = []; if (l3.length > 0) { @@ -234745,7 +234888,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return { circles: !c2 && T2 || !I2 || x2 < this.perspectiveRatioCutoff ? [] : g2, offscreen: E3, collisionDetected: T2 }; } projectPathToScreenSpace(t4, e2, i2) { - return t4.map((t5) => xt(t5.x, t5.y, i2, e2.getElevation)); + return t4.map(((t5) => xt(t5.x, t5.y, i2, e2.getElevation))); } queryRenderedSymbols(t4) { if (0 === t4.length || 0 === this.grid.keysLength() && 0 === this.ignoredGrid.keysLength()) return {}; @@ -234813,8 +234956,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (const { offsetX: t5, offsetY: i3 } of w2) T2.push(new e.P(p2.x + u2.x * t5 + d2.x * i3, p2.y + u2.y * t5 + d2.y * i3)); let I2 = false; if (o2) { - const t5 = T2.map((t6) => this.projectAndGetPerspectiveRatio(a2, t6.x, t6.y, s2, h2)); - I2 = t5.some((t6) => !t6.isOccluded), T2 = t5.map((t6) => t6.point); + const t5 = T2.map(((t6) => this.projectAndGetPerspectiveRatio(a2, t6.x, t6.y, s2, h2))); + I2 = t5.some(((t6) => !t6.isOccluded)), T2 = t5.map(((t6) => t6.point)); } else I2 = true; return { box: e.ao(T2), allPointsOccluded: !I2 }; } @@ -234931,10 +235074,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a4 = this.collisionIndex.placeCollisionBox(e2, x2, d2, l2, h2, I2, T2, r2, f2.predicate, z2); return a4 && a4.placeable && (this.markUsedOrientation(s2, i4, t5), this.placedOrientations[t5.crossTileID] = i4), a4; }; - o3(() => a3(q2, e.ah.horizontal), () => { + o3((() => a3(q2, e.ah.horizontal)), (() => { const i4 = p3.verticalTextBox; return s2.allowVerticalPlacement && t5.numVerticalGlyphVertices > 0 && i4 ? a3(i4, e.ah.vertical) : { box: null, offscreen: null }; - }), i3(L2 && L2.placeable); + })), i3(L2 && L2.placeable); } else { let _3 = e.aq[null === (D4 = null === (P3 = this.prevPlacement) || void 0 === P3 ? void 0 : P3.variableOffsets[t5.crossTileID]) || void 0 === D4 ? void 0 : D4.anchor]; const m3 = (i4, o4, p4) => { @@ -234952,10 +235095,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } return a2 && !w4 && (w4 = { box: this.collisionIndex.placeCollisionBox(q2, "always", d2, l2, h2, I2, T2, r2, f2.predicate, z2, new e.P(0, 0)).box, offscreen: false, placeable: false }), w4; }; - o3(() => m3(q2, p3.iconBox, e.ah.horizontal), () => { + o3((() => m3(q2, p3.iconBox, e.ah.horizontal)), (() => { const i4 = p3.verticalTextBox; return s2.allowVerticalPlacement && (!L2 || !L2.placeable) && t5.numVerticalGlyphVertices > 0 && i4 ? m3(i4, p3.verticalIconBox, e.ah.vertical) : { box: null, occluded: true, offscreen: null }; - }), L2 && (M2 = L2.placeable, R2 = L2.offscreen); + })), L2 && (M2 = L2.placeable, R2 = L2.offscreen); const g3 = i3(L2 && L2.placeable); if (!M2 && this.prevPlacement) { const e2 = this.prevPlacement.variableOffsets[t5.crossTileID]; @@ -235060,9 +235203,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const e2 = te(h3.text); m2(t4.text, o3, x2 ? ee : e2), m2(t4.text, r3, y2 ? ee : e2); const i4 = h3.text.isHidden(); - [s3.rightJustifiedTextSymbolIndex, s3.centerJustifiedTextSymbolIndex, s3.leftJustifiedTextSymbolIndex].forEach((e3) => { + [s3.rightJustifiedTextSymbolIndex, s3.centerJustifiedTextSymbolIndex, s3.leftJustifiedTextSymbolIndex].forEach(((e3) => { e3 >= 0 && (t4.text.placedSymbolArray.get(e3).hidden = i4 || x2 ? 1 : 0); - }), s3.verticalPlacedTextSymbolIndex >= 0 && (t4.text.placedSymbolArray.get(s3.verticalPlacedTextSymbolIndex).hidden = i4 || y2 ? 1 : 0); + })), s3.verticalPlacedTextSymbolIndex >= 0 && (t4.text.placedSymbolArray.get(s3.verticalPlacedTextSymbolIndex).hidden = i4 || y2 ? 1 : 0); const a3 = this.variableOffsets[s3.crossTileID]; a3 && this.markUsedJustification(t4, a3.anchor, s3, v2); const n3 = this.placedOrientations[s3.crossTileID]; @@ -235138,7 +235281,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ return false; }, projectTileCoordinates(t4, e2, i2, a2) { throw new Error("Not implemented."); - }, translatePosition: (t4, e2, i2, a2) => function(t5, e3, i3, a3, s2 = false) { + }, translatePosition: (t4, e2, i2, a2) => (function(t5, e3, i3, a3, s2 = false) { if (!i3[0] && !i3[1]) return [0, 0]; const o2 = s2 ? "map" === a3 ? t5.angle : 0 : "viewport" === a3 ? -t5.angle : 0; if (o2) { @@ -235146,7 +235289,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i3 = [i3[0] * e4 - i3[1] * t6, i3[0] * t6 + i3[1] * e4]; } return [s2 ? i3[0] : Bt(e3, i3[0], t5.zoom), s2 ? i3[1] : Bt(e3, i3[1], t5.zoom)]; - }(t4, e2, i2, a2), getCircleRadiusCorrection: (t4) => 1 }; + })(t4, e2, i2, a2), getCircleRadiusCorrection: (t4) => 1 }; } class ae { constructor(t4) { @@ -235155,7 +235298,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ continuePlacement(t4, e2, i2, a2, s2) { const o2 = this._bucketParts; for (; this._currentTileIndex < t4.length; ) if (e2.getBucketParts(o2, a2, t4[this._currentTileIndex], this._sortAcrossTiles), this._currentTileIndex++, s2()) return true; - for (this._sortAcrossTiles && (this._sortAcrossTiles = false, o2.sort((t5, e3) => t5.sortKey - e3.sortKey)); this._currentPartIndex < o2.length; ) if (e2.placeLayerBucketPart(o2[this._currentPartIndex], this._seenCrossTileIDs, i2), this._currentPartIndex++, s2()) return true; + for (this._sortAcrossTiles && (this._sortAcrossTiles = false, o2.sort(((t5, e3) => t5.sortKey - e3.sortKey))); this._currentPartIndex < o2.length; ) if (e2.placeLayerBucketPart(o2[this._currentPartIndex], this._seenCrossTileIDs, i2), this._currentPartIndex++, s2()) return true; return false; } } @@ -235192,7 +235335,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ o2 ? o2.push(e2) : s2.set(a3, [e2]); } for (const [t5, i3] of s2) { - const a3 = { positions: i3.map((t6) => ({ x: Math.floor(t6.anchorX * oe), y: Math.floor(t6.anchorY * oe) })), crossTileIDs: i3.map((t6) => t6.crossTileID) }; + const a3 = { positions: i3.map(((t6) => ({ x: Math.floor(t6.anchorX * oe), y: Math.floor(t6.anchorY * oe) }))), crossTileIDs: i3.map(((t6) => t6.crossTileID)) }; if (a3.positions.length > 128) { const t6 = new e.av(a3.positions.length, 16, Uint16Array); for (const { x: e2, y: i4 } of a3.positions) t6.add(e2, i4); @@ -235232,7 +235375,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } getCrossTileIDsLists() { - return Object.values(this._symbolsByKey).map(({ crossTileIDs: t4 }) => t4); + return Object.values(this._symbolsByKey).map((({ crossTileIDs: t4 }) => t4)); } } class ne { @@ -235314,13 +235457,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } pruneUnusedLayers(t4) { const e2 = {}; - t4.forEach((t5) => { + t4.forEach(((t5) => { e2[t5] = true; - }); + })); for (const t5 in this.layerIndexes) e2[t5] || delete this.layerIndexes[t5]; } } - const ce = (t4, i2) => e.t(t4, i2 && i2.filter((t5) => "source.canvas" !== t5.identifier)), ue = e.aw(); + const ce = (t4, i2) => e.t(t4, i2 && i2.filter(((t5) => "source.canvas" !== t5.identifier))), ue = e.aw(); class de extends e.E { constructor(t4, i2 = {}) { super(), this._rtlPluginLoaded = () => { @@ -235328,7 +235471,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const e2 = this.sourceCaches[t5].getSource().type; "vector" !== e2 && "geojson" !== e2 || this.sourceCaches[t5].reload(); } - }, this.map = t4, this.dispatcher = new U(N(), t4._getMapId()), this.dispatcher.registerMessageHandler("GG", (t5, e2) => this.getGlyphs(t5, e2)), this.dispatcher.registerMessageHandler("GI", (t5, e2) => this.getImages(t5, e2)), this.imageManager = new T(), this.imageManager.setEventedParent(this), this.glyphManager = new C2(t4._requestManager, i2.localIdeographFontFamily), this.lineAtlas = new R(256, 512), this.crossTileSymbolIndex = new he(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new e.ax(), this._loaded = false, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", e.ay()), nt().on(st, this._rtlPluginLoaded), this.on("data", (t5) => { + }, this.map = t4, this.dispatcher = new U(N(), t4._getMapId()), this.dispatcher.registerMessageHandler("GG", ((t5, e2) => this.getGlyphs(t5, e2))), this.dispatcher.registerMessageHandler("GI", ((t5, e2) => this.getImages(t5, e2))), this.imageManager = new T(), this.imageManager.setEventedParent(this), this.glyphManager = new C2(t4._requestManager, i2.localIdeographFontFamily), this.lineAtlas = new R(256, 512), this.crossTileSymbolIndex = new he(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new e.ax(), this._loaded = false, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", e.ay()), nt().on(st, this._rtlPluginLoaded), this.on("data", ((t5) => { if ("source" !== t5.dataType || "metadata" !== t5.sourceDataType) return; const e2 = this.sourceCaches[t5.sourceId]; if (!e2) return; @@ -235337,24 +235480,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const e3 = this._layers[t6]; e3.source === i3.id && this._validateLayer(e3); } - }); + })); } loadURL(t4, i2 = {}, a2) { this.fire(new e.k("dataloading", { dataType: "style" })), i2.validate = "boolean" != typeof i2.validate || i2.validate; const s2 = this.map._requestManager.transformRequest(t4, "Style"); this._loadStyleRequest = new AbortController(); const o2 = this._loadStyleRequest; - e.h(s2, this._loadStyleRequest).then((t5) => { + e.h(s2, this._loadStyleRequest).then(((t5) => { this._loadStyleRequest = null, this._load(t5.data, i2, a2); - }).catch((t5) => { + })).catch(((t5) => { this._loadStyleRequest = null, t5 && !o2.signal.aborted && this.fire(new e.j(t5)); - }); + })); } loadJSON(t4, i2 = {}, a2) { - this.fire(new e.k("dataloading", { dataType: "style" })), this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then(() => { + this.fire(new e.k("dataloading", { dataType: "style" })), this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then((() => { this._frameRequest = null, i2.validate = false !== i2.validate, this._load(t4, i2, a2); - }).catch(() => { - }); + })).catch((() => { + })); } loadEmpty() { this.fire(new e.k("dataloading", { dataType: "style" })), this._load(ue, { validate: false }); @@ -235370,7 +235513,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } _createLayers() { const t4 = e.az(this.stylesheet.layers); - this.dispatcher.broadcast("SL", t4), this._order = t4.map((t5) => t5.id), this._layers = {}, this._serializedLayers = null; + this.dispatcher.broadcast("SL", t4), this._order = t4.map(((t5) => t5.id)), this._layers = {}, this._serializedLayers = null; for (const i2 of t4) { const t5 = e.aA(i2); t5.setEventedParent(this, { layer: { id: i2.id } }), this._layers[i2.id] = t5; @@ -235378,8 +235521,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } _loadSprite(t4, i2 = false, a2 = void 0) { let s2; - this.imageManager.setLoaded(false), this._spriteRequest = new AbortController(), function(t5, i3, a3, s3) { - return e._(this, void 0, void 0, function* () { + this.imageManager.setLoaded(false), this._spriteRequest = new AbortController(), (function(t5, i3, a3, s3) { + return e._(this, void 0, void 0, (function* () { const r2 = x(t5), n2 = a3 > 1 ? "@2x" : "", l2 = {}, h2 = {}; for (const { id: t6, url: a4 } of r2) { const o2 = i3.transformRequest(y(a4, n2, ".json"), "SpriteJSON"); @@ -235387,8 +235530,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const r3 = i3.transformRequest(y(a4, n2, ".png"), "SpriteImage"); h2[t6] = _.getImage(r3, s3); } - return yield Promise.all([...Object.values(l2), ...Object.values(h2)]), function(t6, i4) { - return e._(this, void 0, void 0, function* () { + return yield Promise.all([...Object.values(l2), ...Object.values(h2)]), (function(t6, i4) { + return e._(this, void 0, void 0, (function* () { const e2 = {}; for (const a4 in t6) { e2[a4] = {}; @@ -235399,24 +235542,24 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } return e2; - }); - }(l2, h2); - }); - }(t4, this.map._requestManager, this.map.getPixelRatio(), this._spriteRequest).then((t5) => { + })); + })(l2, h2); + })); + })(t4, this.map._requestManager, this.map.getPixelRatio(), this._spriteRequest).then(((t5) => { if (this._spriteRequest = null, t5) for (const e2 in t5) { this._spritesImagesIds[e2] = []; - const a3 = this._spritesImagesIds[e2] ? this._spritesImagesIds[e2].filter((e3) => !(e3 in t5)) : []; + const a3 = this._spritesImagesIds[e2] ? this._spritesImagesIds[e2].filter(((e3) => !(e3 in t5))) : []; for (const t6 of a3) this.imageManager.removeImage(t6), this._changedImages[t6] = true; for (const a4 in t5[e2]) { const s3 = "default" === e2 ? a4 : `${e2}:${a4}`; this._spritesImagesIds[e2].push(s3), s3 in this.imageManager.images ? this.imageManager.updateImage(s3, t5[e2][a4], false) : this.imageManager.addImage(s3, t5[e2][a4]), i2 && (this._changedImages[s3] = true); } } - }).catch((t5) => { + })).catch(((t5) => { this._spriteRequest = null, s2 = t5, this.fire(new e.j(s2)); - }).finally(() => { + })).finally((() => { this.imageManager.setLoaded(true), this._availableImages = this.imageManager.listImages(), i2 && (this._changed = true), this.dispatcher.broadcast("SI", this._availableImages), this.fire(new e.k("data", { dataType: "style" })), a2 && a2(s2); - }); + })); } _unloadSprite() { for (const t4 of Object.values(this._spritesImagesIds).flat()) this.imageManager.removeImage(t4), this._changedImages[t4] = true; @@ -235540,50 +235683,50 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ case "setPitch": continue; case "addLayer": - e2.push(() => this.addLayer.apply(this, a2.args)); + e2.push((() => this.addLayer.apply(this, a2.args))); break; case "removeLayer": - e2.push(() => this.removeLayer.apply(this, a2.args)); + e2.push((() => this.removeLayer.apply(this, a2.args))); break; case "setPaintProperty": - e2.push(() => this.setPaintProperty.apply(this, a2.args)); + e2.push((() => this.setPaintProperty.apply(this, a2.args))); break; case "setLayoutProperty": - e2.push(() => this.setLayoutProperty.apply(this, a2.args)); + e2.push((() => this.setLayoutProperty.apply(this, a2.args))); break; case "setFilter": - e2.push(() => this.setFilter.apply(this, a2.args)); + e2.push((() => this.setFilter.apply(this, a2.args))); break; case "addSource": - e2.push(() => this.addSource.apply(this, a2.args)); + e2.push((() => this.addSource.apply(this, a2.args))); break; case "removeSource": - e2.push(() => this.removeSource.apply(this, a2.args)); + e2.push((() => this.removeSource.apply(this, a2.args))); break; case "setLayerZoomRange": - e2.push(() => this.setLayerZoomRange.apply(this, a2.args)); + e2.push((() => this.setLayerZoomRange.apply(this, a2.args))); break; case "setLight": - e2.push(() => this.setLight.apply(this, a2.args)); + e2.push((() => this.setLight.apply(this, a2.args))); break; case "setGeoJSONSourceData": - e2.push(() => this.setGeoJSONSourceData.apply(this, a2.args)); + e2.push((() => this.setGeoJSONSourceData.apply(this, a2.args))); break; case "setGlyphs": - e2.push(() => this.setGlyphs.apply(this, a2.args)); + e2.push((() => this.setGlyphs.apply(this, a2.args))); break; case "setSprite": - e2.push(() => this.setSprite.apply(this, a2.args)); + e2.push((() => this.setSprite.apply(this, a2.args))); break; case "setSky": - e2.push(() => this.setSky.apply(this, a2.args)); + e2.push((() => this.setSky.apply(this, a2.args))); break; case "setTerrain": - e2.push(() => this.map.setTerrain.apply(this, a2.args)); + e2.push((() => this.map.setTerrain.apply(this, a2.args))); break; case "setTransition": - e2.push(() => { - }); + e2.push((() => { + })); break; default: i2.push(a2.command); @@ -235616,7 +235759,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if (["vector", "raster", "geojson", "video", "image"].indexOf(i2.type) >= 0 && this._validate(e.u.source, `sources.${t4}`, i2, null, a2)) return; this.map && this.map._collectResourceTiming && (i2.collectResourceTiming = true); const s2 = this.sourceCaches[t4] = new ut(t4, i2, this.dispatcher); - s2.style = this, s2.setEventedParent(this, () => ({ isSourceLoaded: s2.loaded(), source: s2.serialize(), sourceId: t4 })), s2.onAdd(this.map), this._changed = true; + s2.style = this, s2.setEventedParent(this, (() => ({ isSourceLoaded: s2.loaded(), source: s2.serialize(), sourceId: t4 }))), s2.onAdd(this.map), this._changed = true; } removeSource(t4) { if (this._checkLoaded(), void 0 === this.sourceCaches[t4]) throw new Error("There is no source with this ID"); @@ -235738,8 +235881,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } serialize() { if (!this._loaded) return; - const t4 = e.aF(this.sourceCaches, (t5) => t5.serialize()), i2 = this._serializeByIds(this._order, true), a2 = this.map.getTerrain() || void 0, s2 = this.stylesheet; - return e.aG({ version: s2.version, name: s2.name, metadata: s2.metadata, light: s2.light, sky: s2.sky, center: s2.center, zoom: s2.zoom, bearing: s2.bearing, pitch: s2.pitch, sprite: s2.sprite, glyphs: s2.glyphs, transition: s2.transition, sources: t4, layers: i2, terrain: a2 }, (t5) => void 0 !== t5); + const t4 = e.aF(this.sourceCaches, ((t5) => t5.serialize())), i2 = this._serializeByIds(this._order, true), a2 = this.map.getTerrain() || void 0, s2 = this.stylesheet; + return e.aG({ version: s2.version, name: s2.name, metadata: s2.metadata, light: s2.light, sky: s2.sky, center: s2.center, zoom: s2.zoom, bearing: s2.bearing, pitch: s2.pitch, sprite: s2.sprite, glyphs: s2.glyphs, transition: s2.transition, sources: t4, layers: i2, terrain: a2 }, ((t5) => void 0 !== t5)); } _updateLayer(t4) { this._updatedLayers[t4.id] = true, t4.source && !this._updatedSources[t4.source] && "raster" !== this.sourceCaches[t4.source].getSource().type && (this._updatedSources[t4.source] = "reload", this.sourceCaches[t4.source].pause()), this._serializedLayers = null, this._changed = true; @@ -235756,7 +235899,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ } } } - a2.sort((t5, e3) => e3.intersectionZ - t5.intersectionZ); + a2.sort(((t5, e3) => e3.intersectionZ - t5.intersectionZ)); const s2 = []; for (let o2 = this._order.length - 1; o2 >= 0; o2--) { const r2 = this._order[o2]; @@ -235787,7 +235930,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ i2.availableImages = this._availableImages; const r2 = this._serializedAllLayers(); for (const e2 in this.sourceCaches) i2.layers && !s2[e2] || o2.push(q(this.sourceCaches[e2], this._layers, r2, t4, i2, a2)); - return this.placement && o2.push(function(t5, e2, i3, a3, s3, o3, r3) { + return this.placement && o2.push((function(t5, e2, i3, a3, s3, o3, r3) { const n2 = {}, l2 = o3.queryRenderedSymbols(a3), h2 = []; for (const t6 of Object.keys(l2).map(Number)) h2.push(r3[t6]); h2.sort(V); @@ -235795,35 +235938,35 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const a4 = i4.featureIndex.lookupSymbolFeatures(l2[i4.bucketInstanceId], e2, i4.bucketIndex, i4.sourceLayerIndex, s3.filter, s3.layers, s3.availableImages, t5); for (const t6 in a4) { const e3 = n2[t6] = n2[t6] || [], s4 = a4[t6]; - s4.sort((t7, e4) => { + s4.sort(((t7, e4) => { const a5 = i4.featureSortOrder; if (a5) { const i5 = a5.indexOf(t7.featureIndex); return a5.indexOf(e4.featureIndex) - i5; } return e4.featureIndex - t7.featureIndex; - }); + })); for (const t7 of s4) e3.push(t7); } } - for (const e3 in n2) n2[e3].forEach((a4) => { + for (const e3 in n2) n2[e3].forEach(((a4) => { const s4 = a4.feature, o4 = i3[t5[e3].source].getFeatureState(s4.layer["source-layer"], s4.id); s4.source = s4.layer.source, s4.layer["source-layer"] && (s4.sourceLayer = s4.layer["source-layer"]), s4.state = o4; - }); + })); return n2; - }(this._layers, r2, this.sourceCaches, t4, i2, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(o2); + })(this._layers, r2, this.sourceCaches, t4, i2, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(o2); } querySourceFeatures(t4, i2) { i2 && i2.filter && this._validate(e.u.filter, "querySourceFeatures.filter", i2.filter, null, i2); const a2 = this.sourceCaches[t4]; - return a2 ? function(t5, e2) { - const i3 = t5.getRenderableIds().map((e3) => t5.getTileByID(e3)), a3 = [], s2 = {}; + return a2 ? (function(t5, e2) { + const i3 = t5.getRenderableIds().map(((e3) => t5.getTileByID(e3))), a3 = [], s2 = {}; for (let t6 = 0; t6 < i3.length; t6++) { const o2 = i3[t6], r2 = o2.tileID.canonical.key; s2[r2] || (s2[r2] = true, o2.querySourceFeatures(a3, e2)); } return a3; - }(a2, i2) : []; + })(a2, i2) : []; } getLight() { return this.light.getLight(); @@ -235890,7 +236033,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ if ("symbol" !== i3.type) continue; if (!l2[i3.source]) { const t5 = this.sourceCaches[i3.source]; - l2[i3.source] = t5.getRenderableIds(true).map((e4) => t5.getTileByID(e4)).sort((t6, e4) => e4.tileID.overscaledZ - t6.tileID.overscaledZ || (t6.tileID.isLessThan(e4.tileID) ? -1 : 1)); + l2[i3.source] = t5.getRenderableIds(true).map(((e4) => t5.getTileByID(e4))).sort(((t6, e4) => e4.tileID.overscaledZ - t6.tileID.overscaledZ || (t6.tileID.isLessThan(e4.tileID) ? -1 : 1))); } const a3 = this.crossTileSymbolIndex.addLayer(i3, l2[i3.source], t4.center.lng); r2 = r2 || a3; @@ -235905,18 +236048,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ for (const t4 in this.sourceCaches) this.sourceCaches[t4].releaseSymbolFadeTiles(); } getImages(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const t5 = yield this.imageManager.getImages(i2.icons); this._updateTilesForChangedImages(); const e2 = this.sourceCaches[i2.source]; return e2 && e2.setDependencies(i2.tileID.key, i2.type, i2.icons), t5; - }); + })); } getGlyphs(t4, i2) { - return e._(this, void 0, void 0, function* () { + return e._(this, void 0, void 0, (function* () { const t5 = yield this.glyphManager.getGlyphs(i2.stacks), e2 = this.sourceCaches[i2.source]; return e2 && e2.setDependencies(i2.tileID.key, i2.type, [""]), t5; - }); + })); } getGlyphsUrl() { return this.stylesheet.glyphs || null; @@ -235932,9 +236075,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ removeSprite(t4) { this._checkLoaded(); const i2 = x(this.stylesheet.sprite); - if (i2.find((e2) => e2.id === t4)) { + if (i2.find(((e2) => e2.id === t4))) { if (this._spritesImagesIds[t4]) for (const e2 of this._spritesImagesIds[t4]) this.imageManager.removeImage(e2), this._changedImages[e2] = true; - i2.splice(i2.findIndex((e2) => e2.id === t4), 1), this.stylesheet.sprite = i2.length > 0 ? i2 : void 0, delete this._spritesImagesIds[t4], this._availableImages = this.imageManager.listImages(), this._changed = true, this.dispatcher.broadcast("SI", this._availableImages), this.fire(new e.k("data", { dataType: "style" })); + i2.splice(i2.findIndex(((e2) => e2.id === t4)), 1), this.stylesheet.sprite = i2.length > 0 ? i2 : void 0, delete this._spritesImagesIds[t4], this._availableImages = this.imageManager.listImages(), this._changed = true, this.dispatcher.broadcast("SI", this._availableImages), this.fire(new e.k("data", { dataType: "style" })); } else this.fire(new e.j(new Error(`Sprite "${t4}" doesn't exists on this map.`))); } getSprite() { @@ -235948,7 +236091,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $ const pe = { prelude: me("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\n", "#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef TERRAIN3D\nuniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;\n#endif\nconst highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {\n#ifdef TERRAIN3D\nhighp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));\n#else\nreturn 1.0;\n#endif\n}float calculate_visibility(vec4 pos) {\n#ifdef TERRAIN3D\nvec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}"), background: me("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"), backgroundPattern: me("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"), circle: me("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"), clippingMask: me("void main() {gl_FragColor=vec4(1.0);}", "attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"), heatmap: me("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}"), heatmapTexture: me("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"), collisionBox: me("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}", "attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"), collisionCircle: me("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}", "attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"), debug: me("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}", "attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"), fill: me("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"), fillOutline: me("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"), fillOutlinePattern: me("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"), fillPattern: me("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"), fillExtrusion: me("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"), fillExtrusionPattern: me("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"), hillshadePrepare: me("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"), hillshade: me("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"), line: me("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"), lineGradient: me("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"), linePattern: me("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"), lineSDF: me("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"), raster: me("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"), symbolIcon: me("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}"), symbolSDF: me("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"), symbolTextAndIcon: me("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}", "attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"), terrain: me("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}", "attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"), terrainDepth: me("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}", "attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"), terrainCoords: me("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}", "attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"), sky: me("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}", "attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}") }; function me(t4, e2) { const i2 = /#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g, a2 = e2.match(/attribute ([\w]+) ([\w]+)/g), s2 = t4.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g), o2 = e2.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g), r2 = o2 ? o2.concat(s2) : s2, n2 = {}; - return { fragmentSource: t4 = t4.replace(i2, (t5, e3, i3, a3, s3) => (n2[s3] = true, "define" === e3 ? ` + return { fragmentSource: t4 = t4.replace(i2, ((t5, e3, i3, a3, s3) => (n2[s3] = true, "define" === e3 ? ` #ifndef HAS_UNIFORM_u_${s3} varying ${i3} ${a3} ${s3}; #else @@ -235958,7 +236101,7 @@ uniform ${i3} ${a3} u_${s3}; #ifdef HAS_UNIFORM_u_${s3} ${i3} ${a3} ${s3} = u_${s3}; #endif -`)), vertexSource: e2 = e2.replace(i2, (t5, e3, i3, a3, s3) => { +`))), vertexSource: e2 = e2.replace(i2, ((t5, e3, i3, a3, s3) => { const o3 = "float" === a3 ? "vec2" : "vec4", r3 = s3.match(/color/) ? "color" : o3; return n2[s3] ? "define" === e3 ? ` #ifndef HAS_UNIFORM_u_${s3} @@ -236000,7 +236143,7 @@ uniform ${i3} ${a3} u_${s3}; ${i3} ${a3} ${s3} = u_${s3}; #endif `; - }), staticAttributes: a2, staticUniforms: r2 }; + })), staticAttributes: a2, staticUniforms: r2 }; } class fe { constructor() { @@ -236095,17 +236238,17 @@ uniform ${i3} ${a3} u_${s3}; return { u_image: 0, u_texsize: i2.imageAtlasTexture.size, u_scale: [a2, t4.fromScale, t4.toScale], u_fade: t4.t, u_pixel_coord_upper: [r2 >> 16, n2 >> 16], u_pixel_coord_lower: [65535 & r2, 65535 & n2] }; } const be = (t4, i2, a2, s2) => { - const o2 = i2.style.light, r2 = o2.properties.get("position"), n2 = [r2.x, r2.y, r2.z], l2 = function() { + const o2 = i2.style.light, r2 = o2.properties.get("position"), n2 = [r2.x, r2.y, r2.z], l2 = (function() { var t5 = new e.A(9); return e.A != Float32Array && (t5[1] = 0, t5[2] = 0, t5[3] = 0, t5[5] = 0, t5[6] = 0, t5[7] = 0), t5[0] = 1, t5[4] = 1, t5[8] = 1, t5; - }(); - "viewport" === o2.properties.get("anchor") && function(t5, e2) { + })(); + "viewport" === o2.properties.get("anchor") && (function(t5, e2) { var i3 = Math.sin(e2), a3 = Math.cos(e2); t5[0] = a3, t5[1] = i3, t5[2] = 0, t5[3] = -i3, t5[4] = a3, t5[5] = 0, t5[6] = 0, t5[7] = 0, t5[8] = 1; - }(l2, -i2.transform.angle), function(t5, e2, i3) { + })(l2, -i2.transform.angle), (function(t5, e2, i3) { var a3 = e2[0], s3 = e2[1], o3 = e2[2]; t5[0] = a3 * i3[0] + s3 * i3[3] + o3 * i3[6], t5[1] = a3 * i3[1] + s3 * i3[4] + o3 * i3[7], t5[2] = a3 * i3[2] + s3 * i3[5] + o3 * i3[8]; - }(n2, n2, l2); + })(n2, n2, l2); const h2 = o2.properties.get("color"); return { u_matrix: t4, u_lightpos: n2, u_lightintensity: o2.properties.get("intensity"), u_lightcolor: [h2.r, h2.g, h2.b], u_vertical_gradient: +a2, u_opacity: s2 }; }, we = (t4, i2, a2, s2, o2, r2, n2) => e.e(be(t4, i2, a2, s2), ye(r2, i2, n2), { u_height_factor: -Math.pow(2, o2.overscaledZ) / n2.tileSize / 8 }), Te = (t4) => ({ u_matrix: t4 }), Ie = (t4, i2, a2, s2) => e.e(Te(t4), ye(a2, i2, s2)), Ee = (t4, e2) => ({ u_matrix: t4, u_world: e2 }), Pe = (t4, i2, a2, s2, o2) => e.e(Ie(t4, i2, a2, s2), { u_world: o2 }), Ce = (t4, e2, i2, a2) => { @@ -236157,10 +236300,10 @@ uniform ${i3} ${a3} u_${s3}; }, qe = (t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, p2, m2) => { const f2 = n2.transform; return e.e(Ze(t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, m2), { u_gamma_scale: s2 ? Math.cos(f2._pitch) * f2.cameraToCenterDistance : 1, u_device_pixel_ratio: n2.pixelRatio, u_is_halo: +p2 }); - }, Ve = (t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, p2) => e.e(qe(t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, true, d2, true, p2), { u_texsize_icon: _2, u_texture_icon: 1 }), Ge = (t4, e2, i2) => ({ u_matrix: t4, u_opacity: e2, u_color: i2 }), He = (t4, i2, a2, s2, o2, r2) => e.e(function(t5, e2, i3, a3) { + }, Ve = (t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, d2, _2, p2) => e.e(qe(t4, i2, a2, s2, o2, r2, n2, l2, h2, c2, u2, true, d2, true, p2), { u_texsize_icon: _2, u_texture_icon: 1 }), Ge = (t4, e2, i2) => ({ u_matrix: t4, u_opacity: e2, u_color: i2 }), He = (t4, i2, a2, s2, o2, r2) => e.e((function(t5, e2, i3, a3) { const s3 = i3.imageManager.getPattern(t5.from.toString()), o3 = i3.imageManager.getPattern(t5.to.toString()), { width: r3, height: n2 } = i3.imageManager.getPixelSize(), l2 = Math.pow(2, a3.tileID.overscaledZ), h2 = a3.tileSize * Math.pow(2, i3.transform.tileZoom) / l2, c2 = h2 * (a3.tileID.canonical.x + a3.tileID.wrap * l2), u2 = h2 * a3.tileID.canonical.y; return { u_image: 0, u_pattern_tl_a: s3.tl, u_pattern_br_a: s3.br, u_pattern_tl_b: o3.tl, u_pattern_br_b: o3.br, u_texsize: [r3, n2], u_mix: e2.t, u_pattern_size_a: s3.displaySize, u_pattern_size_b: o3.displaySize, u_scale_a: e2.fromScale, u_scale_b: e2.toScale, u_tile_units_to_pixels: 1 / Bt(a3, 1, i3.transform.tileZoom), u_pixel_coord_upper: [c2 >> 16, u2 >> 16], u_pixel_coord_lower: [65535 & c2, 65535 & u2] }; - }(s2, r2, a2, o2), { u_matrix: t4, u_opacity: i2 }), We = { fillExtrusion: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_opacity: new e.aI(t4, i2.u_opacity) }), fillExtrusionPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_height_factor: new e.aI(t4, i2.u_height_factor), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade), u_opacity: new e.aI(t4, i2.u_opacity) }), fill: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), fillPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), fillOutline: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world) }), fillOutlinePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), circle: (t4, i2) => ({ u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_scale_with_map: new e.aH(t4, i2.u_scale_with_map), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_extrude_scale: new e.aO(t4, i2.u_extrude_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_matrix: new e.aJ(t4, i2.u_matrix) }), collisionBox: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_pixel_extrude_scale: new e.aO(t4, i2.u_pixel_extrude_scale) }), collisionCircle: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_inv_matrix: new e.aJ(t4, i2.u_inv_matrix), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_viewport_size: new e.aO(t4, i2.u_viewport_size) }), debug: (t4, i2) => ({ u_color: new e.aL(t4, i2.u_color), u_matrix: new e.aJ(t4, i2.u_matrix), u_overlay: new e.aH(t4, i2.u_overlay), u_overlay_scale: new e.aI(t4, i2.u_overlay_scale) }), clippingMask: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmap: (t4, i2) => ({ u_extrude_scale: new e.aI(t4, i2.u_extrude_scale), u_intensity: new e.aI(t4, i2.u_intensity), u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmapTexture: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_color_ramp: new e.aH(t4, i2.u_color_ramp), u_opacity: new e.aI(t4, i2.u_opacity) }), hillshade: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_latrange: new e.aO(t4, i2.u_latrange), u_light: new e.aO(t4, i2.u_light), u_shadow: new e.aL(t4, i2.u_shadow), u_highlight: new e.aL(t4, i2.u_highlight), u_accent: new e.aL(t4, i2.u_accent) }), hillshadePrepare: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_dimension: new e.aO(t4, i2.u_dimension), u_zoom: new e.aI(t4, i2.u_zoom), u_unpack: new e.aK(t4, i2.u_unpack) }), line: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels) }), lineGradient: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_image: new e.aH(t4, i2.u_image), u_image_height: new e.aI(t4, i2.u_image_height) }), linePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texsize: new e.aO(t4, i2.u_texsize), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_image: new e.aH(t4, i2.u_image), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), lineSDF: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_patternscale_a: new e.aO(t4, i2.u_patternscale_a), u_patternscale_b: new e.aO(t4, i2.u_patternscale_b), u_sdfgamma: new e.aI(t4, i2.u_sdfgamma), u_image: new e.aH(t4, i2.u_image), u_tex_y_a: new e.aI(t4, i2.u_tex_y_a), u_tex_y_b: new e.aI(t4, i2.u_tex_y_b), u_mix: new e.aI(t4, i2.u_mix) }), raster: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_tl_parent: new e.aO(t4, i2.u_tl_parent), u_scale_parent: new e.aI(t4, i2.u_scale_parent), u_buffer_scale: new e.aI(t4, i2.u_buffer_scale), u_fade_t: new e.aI(t4, i2.u_fade_t), u_opacity: new e.aI(t4, i2.u_opacity), u_image0: new e.aH(t4, i2.u_image0), u_image1: new e.aH(t4, i2.u_image1), u_brightness_low: new e.aI(t4, i2.u_brightness_low), u_brightness_high: new e.aI(t4, i2.u_brightness_high), u_saturation_factor: new e.aI(t4, i2.u_saturation_factor), u_contrast_factor: new e.aI(t4, i2.u_contrast_factor), u_spin_weights: new e.aN(t4, i2.u_spin_weights) }), symbolIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolSDF: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolTextAndIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texsize_icon: new e.aO(t4, i2.u_texsize_icon), u_texture: new e.aH(t4, i2.u_texture), u_texture_icon: new e.aH(t4, i2.u_texture_icon), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), background: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_color: new e.aL(t4, i2.u_color) }), backgroundPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_image: new e.aH(t4, i2.u_image), u_pattern_tl_a: new e.aO(t4, i2.u_pattern_tl_a), u_pattern_br_a: new e.aO(t4, i2.u_pattern_br_a), u_pattern_tl_b: new e.aO(t4, i2.u_pattern_tl_b), u_pattern_br_b: new e.aO(t4, i2.u_pattern_br_b), u_texsize: new e.aO(t4, i2.u_texsize), u_mix: new e.aI(t4, i2.u_mix), u_pattern_size_a: new e.aO(t4, i2.u_pattern_size_a), u_pattern_size_b: new e.aO(t4, i2.u_pattern_size_b), u_scale_a: new e.aI(t4, i2.u_scale_a), u_scale_b: new e.aI(t4, i2.u_scale_b), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_tile_units_to_pixels: new e.aI(t4, i2.u_tile_units_to_pixels) }), terrain: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_ele_delta: new e.aI(t4, i2.u_ele_delta), u_fog_matrix: new e.aJ(t4, i2.u_fog_matrix), u_fog_color: new e.aL(t4, i2.u_fog_color), u_fog_ground_blend: new e.aI(t4, i2.u_fog_ground_blend), u_fog_ground_blend_opacity: new e.aI(t4, i2.u_fog_ground_blend_opacity), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon_fog_blend: new e.aI(t4, i2.u_horizon_fog_blend) }), terrainDepth: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), terrainCoords: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_terrain_coords_id: new e.aI(t4, i2.u_terrain_coords_id), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), sky: (t4, i2) => ({ u_sky_color: new e.aL(t4, i2.u_sky_color), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon: new e.aI(t4, i2.u_horizon), u_sky_horizon_blend: new e.aI(t4, i2.u_sky_horizon_blend) }) }; + })(s2, r2, a2, o2), { u_matrix: t4, u_opacity: i2 }), We = { fillExtrusion: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_opacity: new e.aI(t4, i2.u_opacity) }), fillExtrusionPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_lightpos: new e.aN(t4, i2.u_lightpos), u_lightintensity: new e.aI(t4, i2.u_lightintensity), u_lightcolor: new e.aN(t4, i2.u_lightcolor), u_vertical_gradient: new e.aI(t4, i2.u_vertical_gradient), u_height_factor: new e.aI(t4, i2.u_height_factor), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade), u_opacity: new e.aI(t4, i2.u_opacity) }), fill: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), fillPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), fillOutline: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world) }), fillOutlinePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_texsize: new e.aO(t4, i2.u_texsize), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), circle: (t4, i2) => ({ u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_scale_with_map: new e.aH(t4, i2.u_scale_with_map), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_extrude_scale: new e.aO(t4, i2.u_extrude_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_matrix: new e.aJ(t4, i2.u_matrix) }), collisionBox: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_pixel_extrude_scale: new e.aO(t4, i2.u_pixel_extrude_scale) }), collisionCircle: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_inv_matrix: new e.aJ(t4, i2.u_inv_matrix), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_viewport_size: new e.aO(t4, i2.u_viewport_size) }), debug: (t4, i2) => ({ u_color: new e.aL(t4, i2.u_color), u_matrix: new e.aJ(t4, i2.u_matrix), u_overlay: new e.aH(t4, i2.u_overlay), u_overlay_scale: new e.aI(t4, i2.u_overlay_scale) }), clippingMask: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmap: (t4, i2) => ({ u_extrude_scale: new e.aI(t4, i2.u_extrude_scale), u_intensity: new e.aI(t4, i2.u_intensity), u_matrix: new e.aJ(t4, i2.u_matrix) }), heatmapTexture: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_world: new e.aO(t4, i2.u_world), u_image: new e.aH(t4, i2.u_image), u_color_ramp: new e.aH(t4, i2.u_color_ramp), u_opacity: new e.aI(t4, i2.u_opacity) }), hillshade: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_latrange: new e.aO(t4, i2.u_latrange), u_light: new e.aO(t4, i2.u_light), u_shadow: new e.aL(t4, i2.u_shadow), u_highlight: new e.aL(t4, i2.u_highlight), u_accent: new e.aL(t4, i2.u_accent) }), hillshadePrepare: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_image: new e.aH(t4, i2.u_image), u_dimension: new e.aO(t4, i2.u_dimension), u_zoom: new e.aI(t4, i2.u_zoom), u_unpack: new e.aK(t4, i2.u_unpack) }), line: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels) }), lineGradient: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_image: new e.aH(t4, i2.u_image), u_image_height: new e.aI(t4, i2.u_image_height) }), linePattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texsize: new e.aO(t4, i2.u_texsize), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_image: new e.aH(t4, i2.u_image), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_scale: new e.aN(t4, i2.u_scale), u_fade: new e.aI(t4, i2.u_fade) }), lineSDF: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ratio: new e.aI(t4, i2.u_ratio), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_units_to_pixels: new e.aO(t4, i2.u_units_to_pixels), u_patternscale_a: new e.aO(t4, i2.u_patternscale_a), u_patternscale_b: new e.aO(t4, i2.u_patternscale_b), u_sdfgamma: new e.aI(t4, i2.u_sdfgamma), u_image: new e.aH(t4, i2.u_image), u_tex_y_a: new e.aI(t4, i2.u_tex_y_a), u_tex_y_b: new e.aI(t4, i2.u_tex_y_b), u_mix: new e.aI(t4, i2.u_mix) }), raster: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_tl_parent: new e.aO(t4, i2.u_tl_parent), u_scale_parent: new e.aI(t4, i2.u_scale_parent), u_buffer_scale: new e.aI(t4, i2.u_buffer_scale), u_fade_t: new e.aI(t4, i2.u_fade_t), u_opacity: new e.aI(t4, i2.u_opacity), u_image0: new e.aH(t4, i2.u_image0), u_image1: new e.aH(t4, i2.u_image1), u_brightness_low: new e.aI(t4, i2.u_brightness_low), u_brightness_high: new e.aI(t4, i2.u_brightness_high), u_saturation_factor: new e.aI(t4, i2.u_saturation_factor), u_contrast_factor: new e.aI(t4, i2.u_contrast_factor), u_spin_weights: new e.aN(t4, i2.u_spin_weights) }), symbolIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolSDF: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texture: new e.aH(t4, i2.u_texture), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), symbolTextAndIcon: (t4, i2) => ({ u_is_size_zoom_constant: new e.aH(t4, i2.u_is_size_zoom_constant), u_is_size_feature_constant: new e.aH(t4, i2.u_is_size_feature_constant), u_size_t: new e.aI(t4, i2.u_size_t), u_size: new e.aI(t4, i2.u_size), u_camera_to_center_distance: new e.aI(t4, i2.u_camera_to_center_distance), u_pitch: new e.aI(t4, i2.u_pitch), u_rotate_symbol: new e.aH(t4, i2.u_rotate_symbol), u_aspect_ratio: new e.aI(t4, i2.u_aspect_ratio), u_fade_change: new e.aI(t4, i2.u_fade_change), u_matrix: new e.aJ(t4, i2.u_matrix), u_label_plane_matrix: new e.aJ(t4, i2.u_label_plane_matrix), u_coord_matrix: new e.aJ(t4, i2.u_coord_matrix), u_is_text: new e.aH(t4, i2.u_is_text), u_pitch_with_map: new e.aH(t4, i2.u_pitch_with_map), u_is_along_line: new e.aH(t4, i2.u_is_along_line), u_is_variable_anchor: new e.aH(t4, i2.u_is_variable_anchor), u_texsize: new e.aO(t4, i2.u_texsize), u_texsize_icon: new e.aO(t4, i2.u_texsize_icon), u_texture: new e.aH(t4, i2.u_texture), u_texture_icon: new e.aH(t4, i2.u_texture_icon), u_gamma_scale: new e.aI(t4, i2.u_gamma_scale), u_device_pixel_ratio: new e.aI(t4, i2.u_device_pixel_ratio), u_is_halo: new e.aH(t4, i2.u_is_halo), u_translation: new e.aO(t4, i2.u_translation), u_pitched_scale: new e.aI(t4, i2.u_pitched_scale) }), background: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_color: new e.aL(t4, i2.u_color) }), backgroundPattern: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_opacity: new e.aI(t4, i2.u_opacity), u_image: new e.aH(t4, i2.u_image), u_pattern_tl_a: new e.aO(t4, i2.u_pattern_tl_a), u_pattern_br_a: new e.aO(t4, i2.u_pattern_br_a), u_pattern_tl_b: new e.aO(t4, i2.u_pattern_tl_b), u_pattern_br_b: new e.aO(t4, i2.u_pattern_br_b), u_texsize: new e.aO(t4, i2.u_texsize), u_mix: new e.aI(t4, i2.u_mix), u_pattern_size_a: new e.aO(t4, i2.u_pattern_size_a), u_pattern_size_b: new e.aO(t4, i2.u_pattern_size_b), u_scale_a: new e.aI(t4, i2.u_scale_a), u_scale_b: new e.aI(t4, i2.u_scale_b), u_pixel_coord_upper: new e.aO(t4, i2.u_pixel_coord_upper), u_pixel_coord_lower: new e.aO(t4, i2.u_pixel_coord_lower), u_tile_units_to_pixels: new e.aI(t4, i2.u_tile_units_to_pixels) }), terrain: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_ele_delta: new e.aI(t4, i2.u_ele_delta), u_fog_matrix: new e.aJ(t4, i2.u_fog_matrix), u_fog_color: new e.aL(t4, i2.u_fog_color), u_fog_ground_blend: new e.aI(t4, i2.u_fog_ground_blend), u_fog_ground_blend_opacity: new e.aI(t4, i2.u_fog_ground_blend_opacity), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon_fog_blend: new e.aI(t4, i2.u_horizon_fog_blend) }), terrainDepth: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), terrainCoords: (t4, i2) => ({ u_matrix: new e.aJ(t4, i2.u_matrix), u_texture: new e.aH(t4, i2.u_texture), u_terrain_coords_id: new e.aI(t4, i2.u_terrain_coords_id), u_ele_delta: new e.aI(t4, i2.u_ele_delta) }), sky: (t4, i2) => ({ u_sky_color: new e.aL(t4, i2.u_sky_color), u_horizon_color: new e.aL(t4, i2.u_horizon_color), u_horizon: new e.aI(t4, i2.u_horizon), u_sky_horizon_blend: new e.aI(t4, i2.u_sky_horizon_blend) }) }; class $e { constructor(t4, e2, i2) { this.context = t4; @@ -236680,7 +236823,7 @@ uniform ${i3} ${a3} u_${s3}; const i3 = 4 * e2, a3 = t5.circleArray[i3 + 0], s3 = t5.circleArray[i3 + 1], o3 = t5.circleArray[i3 + 2], r3 = t5.circleArray[i3 + 3]; p2.emplace(m2++, a3, s3, o3, r3, 0), p2.emplace(m2++, a3, s3, o3, r3, 1), p2.emplace(m2++, a3, s3, o3, r3, 2), p2.emplace(m2++, a3, s3, o3, r3, 3); } - (!Zi || Zi.length < 2 * c2) && (Zi = function(t5) { + (!Zi || Zi.length < 2 * c2) && (Zi = (function(t5) { const i3 = 2 * t5, a3 = new e.aT(); a3.resize(i3), a3._trim(); for (let t6 = 0; t6 < i3; t6++) { @@ -236688,7 +236831,7 @@ uniform ${i3} ${a3} u_${s3}; a3.uint16[e2 + 0] = 4 * t6 + 0, a3.uint16[e2 + 1] = 4 * t6 + 1, a3.uint16[e2 + 2] = 4 * t6 + 2, a3.uint16[e2 + 3] = 4 * t6 + 2, a3.uint16[e2 + 4] = 4 * t6 + 3, a3.uint16[e2 + 5] = 4 * t6 + 0; } return a3; - }(c2)); + })(c2)); const f2 = r2.createIndexBuffer(Zi, true), g2 = r2.createVertexBuffer(p2, e.aS.members, true); for (const i3 of h2) { const s3 = Se(i3.transform, i3.invTransform, t4.transform); @@ -236780,7 +236923,7 @@ uniform ${i3} ${a3} u_${s3}; for (const i3 of t5) P2.push({ segments: new e.a0([i3]), sortKey: i3.sortKey, state: Y2, terrainData: M2 }); } else P2.push({ segments: u3.segments, sortKey: 0, state: Y2, terrainData: M2 }); } - T2 && P2.sort((t5, e2) => t5.sortKey - e2.sortKey); + T2 && P2.sort(((t5, e2) => t5.sortKey - e2.sortKey)); for (const e2 of P2) { const i3 = e2.state; if (_2.activeTexture.set(p2.TEXTURE0), i3.atlasTexture.bind(i3.atlasInterpolation, p2.CLAMP_TO_EDGE), i3.atlasTextureIcon && (_2.activeTexture.set(p2.TEXTURE1), i3.atlasTextureIcon && i3.atlasTextureIcon.bind(i3.atlasInterpolationIcon, p2.CLAMP_TO_EDGE)), i3.isSDF) { @@ -236919,11 +237062,11 @@ uniform ${i3} ${a3} u_${s3}; s2.activeTexture.set(o2.TEXTURE0); const _2 = i2.getTileByID(a2.key).latestRawTileData, p2 = Math.floor((_2 && _2.byteLength || 0) / 1024), m2 = i2.getTile(a2).tileSize, f2 = 512 / Math.min(m2, 512) * (a2.overscaledZ / t4.transform.zoom) * 0.5; let g2 = a2.canonical.toString(); - a2.overscaledZ !== a2.canonical.z && (g2 += ` => ${a2.overscaledZ}`), function(t5, e2) { + a2.overscaledZ !== a2.canonical.z && (g2 += ` => ${a2.overscaledZ}`), (function(t5, e2) { t5.initDebugOverlayCanvas(); const i3 = t5.debugOverlayCanvas, a3 = t5.context.gl, s3 = t5.debugOverlayCanvas.getContext("2d"); s3.clearRect(0, 0, i3.width, i3.height), s3.shadowColor = "white", s3.shadowBlur = 2, s3.lineWidth = 1.5, s3.strokeStyle = "white", s3.textBaseline = "top", s3.font = "bold 36px Open Sans, sans-serif", s3.fillText(e2, 5, 5), s3.strokeText(e2, 5, 5), t5.debugOverlayTexture.update(i3), t5.debugOverlayTexture.bind(a3.LINEAR, a3.CLAMP_TO_EDGE); - }(t4, `${g2} ${p2}kB`), n2.draw(s2, o2.TRIANGLES, l2, h2, Fi.alphaBlended, ji.disabled, ze(r2, e.aM.transparent, f2), null, u2, t4.debugBuffer, t4.quadTriangleIndexBuffer, t4.debugSegments), n2.draw(s2, o2.LINE_STRIP, l2, h2, c2, ji.disabled, ze(r2, e.aM.red), d2, u2, t4.debugBuffer, t4.tileBorderIndexBuffer, t4.debugSegments); + })(t4, `${g2} ${p2}kB`), n2.draw(s2, o2.TRIANGLES, l2, h2, Fi.alphaBlended, ji.disabled, ze(r2, e.aM.transparent, f2), null, u2, t4.debugBuffer, t4.quadTriangleIndexBuffer, t4.debugSegments), n2.draw(s2, o2.LINE_STRIP, l2, h2, c2, ji.disabled, ze(r2, e.aM.red), d2, u2, t4.debugBuffer, t4.tileBorderIndexBuffer, t4.debugSegments); } function fa(t4, e2, i2) { const a2 = t4.context, s2 = a2.gl, o2 = t4.colorModeForRenderPass(), r2 = new Oi(s2.LEQUAL, Oi.ReadWrite, t4.depthRangeFor3D), n2 = t4.useProgram("terrain"), l2 = e2.getTerrainMesh(); @@ -236994,7 +237137,7 @@ uniform ${i3} ${a3} u_${s3}; return new Ui({ func: e2.EQUAL, mask: 255 }, this._tileClippingMaskIDs[t4.key], 0, e2.KEEP, e2.KEEP, e2.REPLACE); } stencilConfigForOverlap(t4) { - const e2 = this.context.gl, i2 = t4.sort((t5, e3) => e3.overscaledZ - t5.overscaledZ), a2 = i2[i2.length - 1].overscaledZ, s2 = i2[0].overscaledZ - a2 + 1; + const e2 = this.context.gl, i2 = t4.sort(((t5, e3) => e3.overscaledZ - t5.overscaledZ)), a2 = i2[i2.length - 1].overscaledZ, s2 = i2[0].overscaledZ - a2 + 1; if (s2 > 1) { this.currentStencilSource = void 0, this.nextStencilID + s2 > 256 && this.clearStencil(); const t5 = {}; @@ -237038,7 +237181,7 @@ uniform ${i3} ${a3} u_${s3}; const i3 = n2[e2.source]; ("custom" === e2.type || i3.length) && this.renderLayer(this, s2[e2.source], e2, i3); } - if (this.context.bindFramebuffer.set(null), this.context.clear({ color: i2.showOverdrawInspector ? e.aM.black : e.aM.transparent, depth: 1 }), this.clearStencil(), this.style.sky && function(t5, i3) { + if (this.context.bindFramebuffer.set(null), this.context.clear({ color: i2.showOverdrawInspector ? e.aM.black : e.aM.transparent, depth: 1 }), this.clearStencil(), this.style.sky && (function(t5, i3) { const a3 = t5.context, s3 = a3.gl, o2 = ((t6, e2, i4) => ({ u_sky_color: t6.properties.get("sky-color"), u_horizon_color: t6.properties.get("horizon-color"), u_horizon: (e2.height / 2 + e2.getHorizon()) * i4, u_sky_horizon_blend: t6.properties.get("sky-horizon-blend") * e2.height / 2 * i4 }))(i3, t5.style.map.transform, t5.pixelRatio), r3 = new Oi(s3.LEQUAL, Oi.ReadWrite, [0, 1]), n3 = Ui.disabled, l3 = t5.colorModeForRenderPass(), h2 = t5.useProgram("sky"); if (!i3.mesh) { const t6 = new e.aX(); @@ -237047,7 +237190,7 @@ uniform ${i3} ${a3} u_${s3}; s4.emplaceBack(0, 1, 2), s4.emplaceBack(0, 2, 3), i3.mesh = new ga(a3.createVertexBuffer(t6, _e.members), a3.createIndexBuffer(s4), e.a0.simpleSegment(0, 0, t6.length, s4.length)); } h2.draw(a3, s3.TRIANGLES, r3, n3, l3, ji.disabled, o2, void 0, "sky", i3.mesh.vertexBuffer, i3.mesh.indexBuffer, i3.mesh.segments); - }(this, this.style.sky), this._showOverdrawInspector = i2.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (t4._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = a2.length - 1; this.currentLayer >= 0; this.currentLayer--) { + })(this, this.style.sky), this._showOverdrawInspector = i2.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (t4._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = a2.length - 1; this.currentLayer >= 0; this.currentLayer--) { const t5 = this.style._layers[a2[this.currentLayer]], e2 = s2[t5.source], i3 = r2[t5.source]; this._renderTileClippingMasks(t5, i3), this.renderLayer(this, e2, t5, i3); } @@ -237058,31 +237201,31 @@ uniform ${i3} ${a3} u_${s3}; this._renderTileClippingMasks(t5, r2[t5.source]), this.renderLayer(this, e2, t5, i3); } if (this.options.showTileBoundaries) { - const t5 = function(t6, e2) { + const t5 = (function(t6, e2) { let i3 = null; - const a3 = Object.values(t6._layers).flatMap((i4) => i4.source && !i4.isHidden(e2) ? [t6.sourceCaches[i4.source]] : []), s3 = a3.filter((t7) => "vector" === t7.getSource().type), o2 = a3.filter((t7) => "vector" !== t7.getSource().type), r3 = (t7) => { + const a3 = Object.values(t6._layers).flatMap(((i4) => i4.source && !i4.isHidden(e2) ? [t6.sourceCaches[i4.source]] : [])), s3 = a3.filter(((t7) => "vector" === t7.getSource().type)), o2 = a3.filter(((t7) => "vector" !== t7.getSource().type)), r3 = (t7) => { (!i3 || i3.getSource().maxzoom < t7.getSource().maxzoom) && (i3 = t7); }; - return s3.forEach((t7) => r3(t7)), i3 || o2.forEach((t7) => r3(t7)), i3; - }(this.style, this.transform.zoom); - t5 && function(t6, e2, i3) { + return s3.forEach(((t7) => r3(t7))), i3 || o2.forEach(((t7) => r3(t7))), i3; + })(this.style, this.transform.zoom); + t5 && (function(t6, e2, i3) { for (let a3 = 0; a3 < i3.length; a3++) ma(t6, e2, i3[a3]); - }(this, t5, t5.getVisibleCoordinates()); + })(this, t5, t5.getVisibleCoordinates()); } - this.options.showPadding && function(t5) { + this.options.showPadding && (function(t5) { const e2 = t5.transform.padding; da(t5, t5.transform.height - (e2.top || 0), 3, na), da(t5, e2.bottom || 0, 3, la), _a(t5, e2.left || 0, 3, ha), _a(t5, t5.transform.width - (e2.right || 0), 3, ca); const i3 = t5.transform.centerPoint; - !function(t6, e3, i4, a3) { + !(function(t6, e3, i4, a3) { pa(t6, e3 - 1, i4 - 10, 2, 20, a3), pa(t6, e3 - 10, i4 - 1, 20, 2, a3); - }(t5, i3.x, t5.transform.height - i3.y, ua); - }(this), this.context.setDefault(); + })(t5, i3.x, t5.transform.height - i3.y, ua); + })(this), this.context.setDefault(); } maybeDrawDepthAndCoords(t4) { if (!this.style || !this.style.map || !this.style.map.terrain) return; const i2 = this.terrainFacilitator.matrix, a2 = this.transform.modelViewProjectionMatrix; let s2 = this.terrainFacilitator.dirty; - s2 || (s2 = t4 ? !e.a_(i2, a2) : !e.a$(i2, a2)), s2 || (s2 = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0), s2 && (e.b0(i2, a2), this.terrainFacilitator.renderTime = Date.now(), this.terrainFacilitator.dirty = false, function(t5, i3) { + s2 || (s2 = t4 ? !e.a_(i2, a2) : !e.a$(i2, a2)), s2 || (s2 = this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length > 0), s2 && (e.b0(i2, a2), this.terrainFacilitator.renderTime = Date.now(), this.terrainFacilitator.dirty = false, (function(t5, i3) { const a3 = t5.context, s3 = a3.gl, o2 = Fi.unblended, r2 = new Oi(s3.LEQUAL, Oi.ReadWrite, [0, 1]), n2 = i3.getTerrainMesh(), l2 = i3.sourceCache.getRenderableTiles(), h2 = t5.useProgram("terrainDepth"); a3.bindFramebuffer.set(i3.getFramebuffer("depth").framebuffer), a3.viewport.set([0, 0, t5.width / devicePixelRatio, t5.height / devicePixelRatio]), a3.clear({ color: e.aM.transparent, depth: 1 }); for (const e2 of l2) { @@ -237090,7 +237233,7 @@ uniform ${i3} ${a3} u_${s3}; h2.draw(a3, s3.TRIANGLES, r2, Ui.disabled, o2, ji.backCCW, c2, l3, "terrain", n2.vertexBuffer, n2.indexBuffer, n2.segments); } a3.bindFramebuffer.set(null), a3.viewport.set([0, 0, t5.width, t5.height]); - }(this, this.style.map.terrain), function(t5, i3) { + })(this, this.style.map.terrain), (function(t5, i3) { const a3 = t5.context, s3 = a3.gl, o2 = Fi.unblended, r2 = new Oi(s3.LEQUAL, Oi.ReadWrite, [0, 1]), n2 = i3.getTerrainMesh(), l2 = i3.getCoordsTexture(), h2 = i3.sourceCache.getRenderableTiles(), c2 = t5.useProgram("terrainCoords"); a3.bindFramebuffer.set(i3.getFramebuffer("coords").framebuffer), a3.viewport.set([0, 0, t5.width / devicePixelRatio, t5.height / devicePixelRatio]), a3.clear({ color: e.aM.transparent, depth: 1 }), i3.coordsIndex = []; for (const e2 of h2) { @@ -237100,15 +237243,15 @@ uniform ${i3} ${a3} u_${s3}; c2.draw(a3, s3.TRIANGLES, r2, Ui.disabled, o2, ji.backCCW, u2, h3, "terrain", n2.vertexBuffer, n2.indexBuffer, n2.segments), i3.coordsIndex.push(e2.tileID.key); } a3.bindFramebuffer.set(null), a3.viewport.set([0, 0, t5.width, t5.height]); - }(this, this.style.map.terrain)); + })(this, this.style.map.terrain)); } renderLayer(t4, i2, a2, s2) { if (!a2.isHidden(this.transform.zoom) && ("background" === a2.type || "custom" === a2.type || (s2 || []).length)) switch (this.id = a2.id, a2.type) { case "symbol": - !function(t5, i3, a3, s3, o2) { + !(function(t5, i3, a3, s3, o2) { if ("translucent" !== t5.renderPass) return; const r2 = Ui.disabled, n2 = t5.colorModeForRenderPass(); - (a3._unevaluatedLayout.hasValue("text-variable-anchor") || a3._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(t6, i4, a4, s4, o3, r3, n3, l2, h2) { + (a3._unevaluatedLayout.hasValue("text-variable-anchor") || a3._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && (function(t6, i4, a4, s4, o3, r3, n3, l2, h2) { const c2 = i4.transform, u2 = ie(), d2 = "map" === o3, _2 = "map" === r3; for (const o4 of t6) { const t7 = s4.getTile(o4), r4 = t7.getBucket(a4); @@ -237119,11 +237262,11 @@ uniform ${i3} ${a3} u_${s3}; Wi(r4, d2, _2, h2, c2, f2, o4.posMatrix, e2, p2, g2, u2, s5, o4.toUnwrapped(), a5); } } - }(s3, t5, a3, i3, a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), o2), 0 !== a3.paint.get("icon-opacity").constantOr(1) && Xi(t5, i3, a3, s3, false, a3.paint.get("icon-translate"), a3.paint.get("icon-translate-anchor"), a3.layout.get("icon-rotation-alignment"), a3.layout.get("icon-pitch-alignment"), a3.layout.get("icon-keep-upright"), r2, n2), 0 !== a3.paint.get("text-opacity").constantOr(1) && Xi(t5, i3, a3, s3, true, a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.layout.get("text-keep-upright"), r2, n2), i3.map.showCollisionBoxes && (qi(t5, i3, a3, s3, true), qi(t5, i3, a3, s3, false)); - }(t4, i2, a2, s2, this.style.placement.variableOffsets); + })(s3, t5, a3, i3, a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), o2), 0 !== a3.paint.get("icon-opacity").constantOr(1) && Xi(t5, i3, a3, s3, false, a3.paint.get("icon-translate"), a3.paint.get("icon-translate-anchor"), a3.layout.get("icon-rotation-alignment"), a3.layout.get("icon-pitch-alignment"), a3.layout.get("icon-keep-upright"), r2, n2), 0 !== a3.paint.get("text-opacity").constantOr(1) && Xi(t5, i3, a3, s3, true, a3.paint.get("text-translate"), a3.paint.get("text-translate-anchor"), a3.layout.get("text-rotation-alignment"), a3.layout.get("text-pitch-alignment"), a3.layout.get("text-keep-upright"), r2, n2), i3.map.showCollisionBoxes && (qi(t5, i3, a3, s3, true), qi(t5, i3, a3, s3, false)); + })(t4, i2, a2, s2, this.style.placement.variableOffsets); break; case "circle": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { if ("translucent" !== t5.renderPass) return; const o2 = a3.paint.get("circle-opacity"), r2 = a3.paint.get("circle-stroke-width"), n2 = a3.paint.get("circle-stroke-opacity"), l2 = !a3.layout.get("circle-sort-key").isConstant(); if (0 === o2.constantOr(1) && (0 === r2.constantOr(1) || 0 === n2.constantOr(1))) return; @@ -237137,15 +237280,15 @@ uniform ${i3} ${a3} u_${s3}; for (const i4 of t6) p2.push({ segments: new e.a0([i4]), sortKey: i4.sortKey, state: f2 }); } else p2.push({ segments: h3.segments, sortKey: 0, state: f2 }); } - l2 && p2.sort((t6, e2) => t6.sortKey - e2.sortKey); + l2 && p2.sort(((t6, e2) => t6.sortKey - e2.sortKey)); for (const e2 of p2) { const { programConfiguration: i4, program: s4, layoutVertexBuffer: o3, indexBuffer: r3, uniformValues: n3, terrainData: l3 } = e2.state; s4.draw(h2, c2.TRIANGLES, u2, d2, _2, ji.disabled, n3, l3, a3.id, o3, r3, e2.segments, a3.paint, t5.transform.zoom, i4); } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "heatmap": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { if (0 === a3.paint.get("heatmap-opacity")) return; const o2 = t5.context; if (t5.style.map.terrain) { @@ -237154,7 +237297,7 @@ uniform ${i3} ${a3} u_${s3}; i3.hasRenderableParent(e2) || ("offscreen" === t5.renderPass ? Ji(t5, s4, a3, e2) : "translucent" === t5.renderPass && Yi(t5, a3, e2)); } o2.viewport.set([0, 0, t5.width, t5.height]); - } else "offscreen" === t5.renderPass ? function(t6, i4, a4, s4) { + } else "offscreen" === t5.renderPass ? (function(t6, i4, a4, s4) { const o3 = t6.context, r2 = o3.gl, n2 = Ui.disabled, l2 = new Fi([r2.ONE, r2.ONE], e.aM.transparent, [true, true, true, true]); (function(t7, i5, a5) { const s5 = t7.gl; @@ -237171,16 +237314,16 @@ uniform ${i3} ${a3} u_${s3}; _2.draw(o3, r2.TRIANGLES, Oi.disabled, n2, l2, ji.disabled, Me(h2.posMatrix, c2, p2, a4.paint.get("heatmap-intensity")), null, a4.id, u2.layoutVertexBuffer, u2.indexBuffer, u2.segments, a4.paint, t6.transform.zoom, d2); } o3.viewport.set([0, 0, t6.width, t6.height]); - }(t5, i3, a3, s3) : "translucent" === t5.renderPass && function(t6, i4) { + })(t5, i3, a3, s3) : "translucent" === t5.renderPass && (function(t6, i4) { const a4 = t6.context, s4 = a4.gl; a4.setColorMode(t6.colorModeForRenderPass()); const o3 = i4.heatmapFbos.get(e.aU); o3 && (a4.activeTexture.set(s4.TEXTURE0), s4.bindTexture(s4.TEXTURE_2D, o3.colorAttachment.get()), a4.activeTexture.set(s4.TEXTURE1), ta(a4, i4).bind(s4.LINEAR, s4.CLAMP_TO_EDGE), t6.useProgram("heatmapTexture").draw(a4, s4.TRIANGLES, Oi.disabled, Ui.disabled, t6.colorModeForRenderPass(), ji.disabled, Ae(t6, i4, 0, 1), null, i4.id, t6.viewportBuffer, t6.quadTriangleIndexBuffer, t6.viewportSegments, i4.paint, t6.transform.zoom)); - }(t5, a3); - }(t4, i2, a2, s2); + })(t5, a3); + })(t4, i2, a2, s2); break; case "line": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { if ("translucent" !== t5.renderPass) return; const o2 = a3.paint.get("line-opacity"), r2 = a3.paint.get("line-width"); if (0 === o2.constantOr(1) || 0 === r2.constantOr(1)) return; @@ -237214,10 +237357,10 @@ uniform ${i3} ${a3} u_${s3}; } y2.draw(m2, f2.TRIANGLES, n2, t5.stencilModeForClipping(o3), l2, ji.disabled, P2, T2, a3.id, r3.layoutVertexBuffer, r3.indexBuffer, r3.segments, a3.paint, t5.transform.zoom, v2, r3.layoutVertexBuffer2), g2 = false; } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "fill": - !function(t5, i3, a3, s3) { + !(function(t5, i3, a3, s3) { const o2 = a3.paint.get("fill-color"), r2 = a3.paint.get("fill-opacity"); if (0 === r2.constantOr(1)) return; const n2 = t5.colorModeForRenderPass(), l2 = a3.paint.get("fill-pattern"), h2 = t5.opaquePassEnabledForLayer() && !l2.constantOr(1) && 1 === o2.constantOr(e.aM.transparent).a && 1 === r2.constantOr(0) ? "opaque" : "translucent"; @@ -237229,10 +237372,10 @@ uniform ${i3} ${a3} u_${s3}; const e2 = t5.depthModeForSublayer(a3.getPaintProperty("fill-outline-color") ? 2 : 0, Oi.ReadOnly); ia(t5, i3, a3, s3, e2, n2, true); } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "fill-extrusion": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { const s3 = i3.paint.get("fill-extrusion-opacity"); if (0 !== s3 && "translucent" === t5.renderPass) { const o2 = new Oi(t5.context.gl.LEQUAL, Oi.ReadWrite, t5.depthRangeFor3D); @@ -237242,10 +237385,10 @@ uniform ${i3} ${a3} u_${s3}; aa(t5, e2, i3, a3, o2, Ui.disabled, s4); } } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "hillshade": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { if ("offscreen" !== t5.renderPass && "translucent" !== t5.renderPass) return; const s3 = t5.context, o2 = t5.depthModeForSublayer(0, Oi.ReadOnly), r2 = t5.colorModeForRenderPass(), [n2, l2] = "translucent" === t5.renderPass ? t5.stencilConfigForOverlap(a3) : [{}, a3]; for (const a4 of l2) { @@ -237253,10 +237396,10 @@ uniform ${i3} ${a3} u_${s3}; void 0 !== s4.needsHillshadePrepare && s4.needsHillshadePrepare && "offscreen" === t5.renderPass ? oa(t5, s4, i3, o2, Ui.disabled, r2) : "translucent" === t5.renderPass && sa(t5, a4, s4, i3, o2, n2[a4.overscaledZ], r2); } s3.viewport.set([0, 0, t5.width, t5.height]); - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "raster": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { if ("translucent" !== t5.renderPass) return; if (0 === i3.paint.get("raster-opacity")) return; if (!a3.length) return; @@ -237271,10 +237414,10 @@ uniform ${i3} ${a3} u_${s3}; const y2 = t5.style.map.terrain && t5.style.map.terrain.getTerrainData(a4), b2 = y2 ? a4 : null, w2 = b2 ? b2.posMatrix : t5.transform.calculatePosMatrix(a4.toUnwrapped(), d2), T2 = Ue(w2, v2 || [0, 0], g2 || 1, f2, i3); r2 instanceof Q ? n2.draw(s3, o2.TRIANGLES, c3, Ui.disabled, l2, ji.disabled, T2, y2, i3.id, r2.boundsBuffer, t5.quadTriangleIndexBuffer, r2.boundsSegments) : n2.draw(s3, o2.TRIANGLES, c3, h2[a4.overscaledZ], l2, ji.disabled, T2, y2, i3.id, t5.rasterBoundsBuffer, t5.quadTriangleIndexBuffer, t5.rasterBoundsSegments); } - }(t4, i2, a2, s2); + })(t4, i2, a2, s2); break; case "background": - !function(t5, e2, i3, a3) { + !(function(t5, e2, i3, a3) { const s3 = i3.paint.get("background-color"), o2 = i3.paint.get("background-opacity"); if (0 === o2) return; const r2 = t5.context, n2 = r2.gl, l2 = t5.transform, h2 = l2.tileSize, c2 = i3.paint.get("background-pattern"); @@ -237288,10 +237431,10 @@ uniform ${i3} ${a3} u_${s3}; const l3 = a3 ? e3.posMatrix : t5.transform.calculatePosMatrix(e3.toUnwrapped()), u3 = c2 ? He(l3, o2, t5, c2, { tileID: e3, tileSize: h2 }, g2) : Ge(l3, o2, s3), f3 = t5.style.map.terrain && t5.style.map.terrain.getTerrainData(e3); m2.draw(r2, n2.TRIANGLES, _2, d2, p2, ji.disabled, u3, f3, i3.id, t5.tileExtentBuffer, t5.quadTriangleIndexBuffer, t5.tileExtentSegments); } - }(t4, 0, a2, s2); + })(t4, 0, a2, s2); break; case "custom": - !function(t5, e2, i3) { + !(function(t5, e2, i3) { const a3 = t5.context, s3 = i3.implementation; if ("offscreen" === t5.renderPass) { const e3 = s3.prerender; @@ -237301,7 +237444,7 @@ uniform ${i3} ${a3} u_${s3}; const e3 = "3d" === s3.renderingMode ? new Oi(t5.context.gl.LEQUAL, Oi.ReadWrite, t5.depthRangeFor3D) : t5.depthModeForSublayer(0, Oi.ReadOnly); a3.setDepthMode(e3), s3.render(a3.gl, t5.transform.customLayerMatrix(), { farZ: t5.transform.farZ, nearZ: t5.transform.nearZ, fov: t5.transform._fov, modelViewProjectionMatrix: t5.transform.modelViewProjectionMatrix, projectionMatrix: t5.transform.projectionMatrix }), a3.setDirty(), t5.setBaseState(), a3.bindFramebuffer.set(null); } - }(t4, 0, a2); + })(t4, 0, a2); } } translatePosMatrix(t4, i2, a2, s2, o2) { @@ -237356,30 +237499,30 @@ uniform ${i3} ${a3} u_${s3}; this.points = t4, this.planes = e2; } static fromInvProjectionMatrix(t4, i2, a2) { - const s2 = Math.pow(2, a2), o2 = [[-1, 1, -1, 1], [1, 1, -1, 1], [1, -1, -1, 1], [-1, -1, -1, 1], [-1, 1, 1, 1], [1, 1, 1, 1], [1, -1, 1, 1], [-1, -1, 1, 1]].map((a3) => { + const s2 = Math.pow(2, a2), o2 = [[-1, 1, -1, 1], [1, 1, -1, 1], [1, -1, -1, 1], [-1, -1, -1, 1], [-1, 1, 1, 1], [1, 1, 1, 1], [1, -1, 1, 1], [-1, -1, 1, 1]].map(((a3) => { const o3 = 1 / (a3 = e.af([], a3, t4))[3] / i2 * s2; return e.b1(a3, a3, [o3, o3, 1 / a3[3], o3]); - }), r2 = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map((t5) => { - const e2 = function(t6, e3) { + })), r2 = [[0, 1, 2], [6, 5, 4], [0, 3, 7], [2, 1, 5], [3, 2, 6], [0, 4, 5]].map(((t5) => { + const e2 = (function(t6, e3) { var i4 = e3[0], a4 = e3[1], s4 = e3[2], o3 = i4 * i4 + a4 * a4 + s4 * s4; return o3 > 0 && (o3 = 1 / Math.sqrt(o3)), t6[0] = e3[0] * o3, t6[1] = e3[1] * o3, t6[2] = e3[2] * o3, t6; - }([], function(t6, e3, i4) { + })([], (function(t6, e3, i4) { var a4 = e3[0], s4 = e3[1], o3 = e3[2], r3 = i4[0], n2 = i4[1], l2 = i4[2]; return t6[0] = s4 * l2 - o3 * n2, t6[1] = o3 * r3 - a4 * l2, t6[2] = a4 * n2 - s4 * r3, t6; - }([], g([], o2[t5[0]], o2[t5[1]]), g([], o2[t5[2]], o2[t5[1]]))), i3 = -((a3 = e2)[0] * (s3 = o2[t5[1]])[0] + a3[1] * s3[1] + a3[2] * s3[2]); + })([], g([], o2[t5[0]], o2[t5[1]]), g([], o2[t5[2]], o2[t5[1]]))), i3 = -((a3 = e2)[0] * (s3 = o2[t5[1]])[0] + a3[1] * s3[1] + a3[2] * s3[2]); var a3, s3; return e2.concat(i3); - }); + })); return new xa(o2, r2); } } class ya { constructor(t4, e2) { - this.min = t4, this.max = e2, this.center = function(t5, e3, i2) { + this.min = t4, this.max = e2, this.center = (function(t5, e3, i2) { return t5[0] = 0.5 * e3[0], t5[1] = 0.5 * e3[1], t5[2] = 0.5 * e3[2], t5; - }([], function(t5, e3, i2) { + })([], (function(t5, e3, i2) { return t5[0] = e3[0] + i2[0], t5[1] = e3[1] + i2[1], t5[2] = e3[2] + i2[2], t5; - }([], this.min, this.max)); + })([], this.min, this.max)); } quadrant(t4) { const e2 = [t4 % 2 == 0, t4 < 2], i2 = m(this.min), a2 = m(this.max); @@ -237492,13 +237635,13 @@ uniform ${i3} ${a3} u_${s3}; } set bearing(t4) { const i2 = -e.b3(t4, -180, 180) * Math.PI / 180; - this.angle !== i2 && (this._unmodified = false, this.angle = i2, this._calcMatrices(), this.rotationMatrix = function() { + this.angle !== i2 && (this._unmodified = false, this.angle = i2, this._calcMatrices(), this.rotationMatrix = (function() { var t5 = new e.A(4); return e.A != Float32Array && (t5[1] = 0, t5[2] = 0), t5[0] = 1, t5[3] = 1, t5; - }(), function(t5, e2, i3) { + })(), (function(t5, e2, i3) { var a2 = e2[0], s2 = e2[1], o2 = e2[2], r2 = e2[3], n2 = Math.sin(i3), l2 = Math.cos(i3); t5[0] = a2 * l2 + o2 * n2, t5[1] = s2 * l2 + r2 * n2, t5[2] = a2 * -n2 + o2 * l2, t5[3] = s2 * -n2 + r2 * l2; - }(this.rotationMatrix, this.rotationMatrix, this.angle)); + })(this.rotationMatrix, this.rotationMatrix, this.angle)); } get pitch() { return this._pitch / Math.PI * 180; @@ -237592,7 +237735,7 @@ uniform ${i3} ${a3} u_${s3}; m2.push({ aabb: d3, zoom: u3, x: h3, y: c3, wrap: s3.wrap, fullyVisible: n3 }); } } - return f2.sort((t5, e2) => t5.distanceSq - e2.distanceSq).map((t5) => t5.tileID); + return f2.sort(((t5, e2) => t5.distanceSq - e2.distanceSq)).map(((t5) => t5.tileID)); } resize(t4, e2) { this.width = t4, this.height = e2, this.pixelsToGLUnits = [2 / t4, -2 / e2], this._constrain(), this._calcMatrices(); @@ -237781,14 +237924,14 @@ uniform ${i3} ${a3} u_${s3}; const t5 = window.location.hash.replace("#", ""); if (this._hashName) { let e2; - return t5.split("&").map((t6) => t6.split("=")).forEach((t6) => { + return t5.split("&").map(((t6) => t6.split("="))).forEach(((t6) => { t6[0] === this._hashName && (e2 = t6); - }), (e2 && e2[1] || "").split("/"); + })), (e2 && e2[1] || "").split("/"); } return t5.split("/"); }, this._onHashChange = () => { const t5 = this._getCurrentHash(); - if (t5.length >= 3 && !t5.some((t6) => isNaN(t6))) { + if (t5.length >= 3 && !t5.some(((t6) => isNaN(t6)))) { const e2 = this._map.dragRotate.isEnabled() && this._map.touchZoomRotate.isEnabled() ? +(t5[3] || 0) : this._map.getBearing(); return this._map.jumpTo({ center: [+t5[2], +t5[1]], zoom: +t5[0], bearing: e2, pitch: +(t5[4] || 0) }), true; } @@ -237820,10 +237963,10 @@ uniform ${i3} ${a3} u_${s3}; if (h2 += t4 ? `/${o2}/${r2}/${i2}` : `${i2}/${r2}/${o2}`, (n2 || l2) && (h2 += "/" + Math.round(10 * n2) / 10), l2 && (h2 += `/${Math.round(l2)}`), this._hashName) { const t5 = this._hashName; let e3 = false; - const i3 = window.location.hash.slice(1).split("&").map((i4) => { + const i3 = window.location.hash.slice(1).split("&").map(((i4) => { const a3 = i4.split("=")[0]; return a3 === t5 ? (e3 = true, `${a3}=${h2}`) : i4; - }).filter((t6) => t6); + })).filter(((t6) => t6)); return e3 || i3.push(`${t5}=${h2}`), `#${i3.join("&")}`; } return `#${h2}`; @@ -237899,7 +238042,7 @@ uniform ${i3} ${a3} u_${s3}; return this._defaultPrevented; } constructor(t4, i2, a2) { - const s2 = "touchend" === t4 ? a2.changedTouches : a2.touches, o2 = r.touchPos(i2.getCanvasContainer(), s2), n2 = o2.map((t5) => i2.unproject(t5)), l2 = o2.reduce((t5, e2, i3, a3) => t5.add(e2.div(a3.length)), new e.P(0, 0)); + const s2 = "touchend" === t4 ? a2.changedTouches : a2.touches, o2 = r.touchPos(i2.getCanvasContainer(), s2), n2 = o2.map(((t5) => i2.unproject(t5))), l2 = o2.reduce(((t5, e2, i3, a3) => t5.add(e2.div(a3.length))), new e.P(0, 0)); super(t4, { points: o2, point: l2, lngLats: n2, lngLat: i2.unproject(l2), originalEvent: a2 }), this._defaultPrevented = false; } } @@ -238080,11 +238223,11 @@ uniform ${i3} ${a3} u_${s3}; delete this.centroid, delete this.startTime, delete this.touches, this.aborted = false; } touchstart(t4, i2, a2) { - (this.centroid || a2.length > this.numTouches) && (this.aborted = true), this.aborted || (void 0 === this.startTime && (this.startTime = t4.timeStamp), a2.length === this.numTouches && (this.centroid = function(t5) { + (this.centroid || a2.length > this.numTouches) && (this.aborted = true), this.aborted || (void 0 === this.startTime && (this.startTime = t4.timeStamp), a2.length === this.numTouches && (this.centroid = (function(t5) { const i3 = new e.P(0, 0); for (const e2 of t5) i3._add(e2); return i3.div(t5.length); - }(i2), this.touches = ja(a2, i2))); + })(i2), this.touches = ja(a2, i2))); } touchmove(t4, e2, i2) { if (this.aborted || !this.centroid) return; @@ -238137,7 +238280,7 @@ uniform ${i3} ${a3} u_${s3}; } touchend(t4, e2, i2) { const a2 = this._zoomIn.touchend(t4, e2, i2), s2 = this._zoomOut.touchend(t4, e2, i2), o2 = this._tr; - return a2 ? (this._active = true, t4.preventDefault(), setTimeout(() => this.reset(), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom + 1, around: o2.unproject(a2) }, { originalEvent: t4 }) }) : s2 ? (this._active = true, t4.preventDefault(), setTimeout(() => this.reset(), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom - 1, around: o2.unproject(s2) }, { originalEvent: t4 }) }) : void 0; + return a2 ? (this._active = true, t4.preventDefault(), setTimeout((() => this.reset()), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom + 1, around: o2.unproject(a2) }, { originalEvent: t4 }) }) : s2 ? (this._active = true, t4.preventDefault(), setTimeout((() => this.reset()), 0), { cameraAnimation: (e3) => e3.easeTo({ duration: 300, zoom: o2.zoom - 1, around: o2.unproject(s2) }, { originalEvent: t4 }) }) : void 0; } touchcancel() { this.reset(); @@ -238212,10 +238355,10 @@ uniform ${i3} ${a3} u_${s3}; return this._correctEvent(t4); } isValidMoveEvent(t4) { - return !function(t5, e2) { + return !(function(t5, e2) { const i2 = Ha[e2]; return void 0 === t5.buttons || (t5.buttons & i2) !== i2; - }(t4, this._eventButton); + })(t4, this._eventButton); } isValidEndEvent(t4) { return r.mouseButton(t4) === this._eventButton; @@ -238544,9 +238687,9 @@ uniform ${i3} ${a3} u_${s3}; const t5 = Math.min(l2 / 200, 1), o2 = s2(t5); r2 = e.y.number(a2, i2, o2), t5 < 1 ? this._frameId || (this._frameId = true) : n2 = true; } else r2 = i2, n2 = true; - return this._active = true, n2 && (this._active = false, this._finishTimeout = setTimeout(() => { + return this._active = true, n2 && (this._active = false, this._finishTimeout = setTimeout((() => { this._zooming = false, this._triggerRenderFrame(), delete this._targetZoom, delete this._finishTimeout; - }, 200)), { noInertia: true, needsRenderFrame: !n2, zoomDelta: r2 - t4.zoom, around: this._aroundPoint, originalEvent: this._lastWheelEvent }; + }), 200)), { noInertia: true, needsRenderFrame: !n2, zoomDelta: r2 - t4.zoom, around: this._aroundPoint, originalEvent: this._lastWheelEvent }; } _smoothOutEasing(t4) { let i2 = e.b9; @@ -238740,9 +238883,9 @@ uniform ${i3} ${a3} u_${s3}; return t4[this._bypassKey]; } notifyGestureBlocked(t4, i2) { - this._enabled && (this._map.fire(new e.k("cooperativegestureprevented", { gestureType: t4, originalEvent: i2 })), this._container.classList.add("maplibregl-show"), setTimeout(() => { + this._enabled && (this._map.fire(new e.k("cooperativegestureprevented", { gestureType: t4, originalEvent: i2 })), this._container.classList.add("maplibregl-show"), setTimeout((() => { this._container.classList.remove("maplibregl-show"); - }, 100)); + }), 100)); } } const xs = (t4) => t4.zoom || t4.drag || t4.pitch || t4.rotate; @@ -238799,7 +238942,7 @@ uniform ${i3} ${a3} u_${s3}; e2.dragPan = new ms(i2, d2, _2), this._add("mousePan", d2), this._add("touchPan", _2, ["touchZoom", "touchRotate"]), t4.interactive && t4.dragPan && e2.dragPan.enable(t4.dragPan); const p2 = new ss(), m2 = new is(); e2.touchZoomRotate = new gs(i2, m2, p2, l2), this._add("touchRotate", p2, ["touchPan", "touchZoom"]), this._add("touchZoom", m2, ["touchPan", "touchRotate"]), t4.interactive && t4.touchZoomRotate && e2.touchZoomRotate.enable(t4.touchZoomRotate); - const f2 = e2.scrollZoom = new us(e2, () => this._triggerRenderFrame()); + const f2 = e2.scrollZoom = new us(e2, (() => this._triggerRenderFrame())); this._add("scrollZoom", f2, ["mousePan"]), t4.interactive && t4.scrollZoom && e2.scrollZoom.enable(t4.scrollZoom); const g2 = e2.keyboard = new ls(e2); this._add("keyboard", g2), t4.interactive && t4.keyboard && e2.keyboard.enable(), this._add("blockableMapEvent", new Oa(e2)); @@ -238890,9 +239033,9 @@ uniform ${i3} ${a3} u_${s3}; this._map.fire(new e.k(t4, i2 ? { originalEvent: i2 } : {})); } _requestFrame() { - return this._map.triggerRepaint(), this._map._renderTaskQueue.add((t4) => { + return this._map.triggerRepaint(), this._map._renderTaskQueue.add(((t4) => { delete this._frameId, this.handleEvent(new ys("renderFrame", { timeStamp: t4 })), this._applyChanges(); - }); + })); } _triggerRenderFrame() { void 0 === this._frameId && (this._frameId = this._requestFrame()); @@ -238903,9 +239046,9 @@ uniform ${i3} ${a3} u_${s3}; super(), this._renderFrameCallback = () => { const t5 = Math.min((o.now() - this._easeStart) / this._easeOptions.duration, 1); this._onEaseFrame(this._easeOptions.easing(t5)), t5 < 1 && this._easeFrameId ? this._easeFrameId = this._requestRenderFrame(this._renderFrameCallback) : this.stop(); - }, this._moving = false, this._zooming = false, this.transform = t4, this._bearingSnap = e2.bearingSnap, this.on("moveend", () => { + }, this._moving = false, this._zooming = false, this.transform = t4, this._bearingSnap = e2.bearingSnap, this.on("moveend", (() => { delete this._requestedCameraState; - }); + })); } getCenter() { return new e.N(this.transform.center.lng, this.transform.center.lat); @@ -239014,16 +239157,16 @@ uniform ${i3} ${a3} u_${s3}; let b2, w2; t4.around && (b2 = e.N.convert(t4.around), w2 = s2.locationPoint(b2)); const T2 = { moving: this._moving, zooming: this._zooming, rotating: this._rotating, pitching: this._pitching }; - return this._zooming = this._zooming || g2 !== r2, this._rotating = this._rotating || n2 !== c2, this._pitching = this._pitching || u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._easeId = t4.easeId, this._prepareEase(i2, t4.noMoveStart, T2), this.terrain && this._prepareElevation(f2), this._ease((a3) => { + return this._zooming = this._zooming || g2 !== r2, this._rotating = this._rotating || n2 !== c2, this._pitching = this._pitching || u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._easeId = t4.easeId, this._prepareEase(i2, t4.noMoveStart, T2), this.terrain && this._prepareElevation(f2), this._ease(((a3) => { if (this._zooming && (s2.zoom = e.y.number(r2, g2, a3)), this._rotating && (s2.bearing = e.y.number(n2, c2, a3)), this._pitching && (s2.pitch = e.y.number(l2, u2, a3)), this._padding && (s2.interpolatePadding(h2, d2, a3), p2 = s2.centerPoint.add(_2)), this.terrain && !t4.freezeElevation && this._updateElevation(a3), b2) s2.setLocationAtPoint(b2, w2); else { const t5 = s2.zoomScale(s2.zoom - r2), e2 = g2 > r2 ? Math.min(2, y2) : Math.max(0.5, y2), i3 = Math.pow(e2, 1 - a3), o2 = s2.unproject(v2.add(x2.mult(a3 * i3)).mult(t5)); s2.setLocationAtPoint(s2.renderWorldCopies ? o2.wrap() : o2, p2); } this._applyUpdatedTransform(s2), this._fireMoveEvents(i2); - }, (e2) => { + }), ((e2) => { this.terrain && t4.freezeElevation && this._finalizeElevation(), this._afterEase(i2, e2); - }, t4), this; + }), t4), this; } _prepareEase(t4, i2, a2 = {}) { this._moving = true, i2 || a2.moving || this.fire(new e.k("movestart", t4)), this._zooming && !a2.zooming && this.fire(new e.k("zoomstart", t4)), this._rotating && !a2.rotating && this.fire(new e.k("rotatestart", t4)), this._pitching && !a2.pitching && this.fire(new e.k("pitchstart", t4)); @@ -239056,7 +239199,7 @@ uniform ${i3} ${a3} u_${s3}; } _applyUpdatedTransform(t4) { const e2 = []; - if (this.terrain && e2.push((t5) => this._elevateCameraIfInsideTerrain(t5)), this.transformCameraUpdate && e2.push((t5) => this.transformCameraUpdate(t5)), !e2.length) return; + if (this.terrain && e2.push(((t5) => this._elevateCameraIfInsideTerrain(t5))), this.transformCameraUpdate && e2.push(((t5) => this.transformCameraUpdate(t5))), !e2.length) return; const i2 = t4.clone(); for (const t5 of e2) { const e3 = i2.clone(), { center: a2, zoom: s2, pitch: o2, bearing: r2, elevation: n2 } = t5(e3); @@ -239114,14 +239257,14 @@ uniform ${i3} ${a3} u_${s3}; const e2 = T2 < w2 ? -1 : 1; A3 = Math.abs(Math.log(T2 / w2)) / b2, M2 = () => 0, D3 = (t5) => Math.exp(e2 * b2 * t5); } - return t4.duration = "duration" in t4 ? +t4.duration : 1e3 * A3 / ("screenSpeed" in t4 ? +t4.screenSpeed / b2 : +t4.speed), t4.maxDuration && t4.duration > t4.maxDuration && (t4.duration = 0), this._zooming = true, this._rotating = n2 !== c2, this._pitching = u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._prepareEase(i2, false), this.terrain && this._prepareElevation(f2), this._ease((a3) => { + return t4.duration = "duration" in t4 ? +t4.duration : 1e3 * A3 / ("screenSpeed" in t4 ? +t4.screenSpeed / b2 : +t4.speed), t4.maxDuration && t4.duration > t4.maxDuration && (t4.duration = 0), this._zooming = true, this._rotating = n2 !== c2, this._pitching = u2 !== l2, this._padding = !s2.isPaddingEqual(d2), this._prepareEase(i2, false), this.terrain && this._prepareElevation(f2), this._ease(((a3) => { const o2 = a3 * A3, m3 = 1 / D3(o2); s2.zoom = 1 === a3 ? g2 : r2 + s2.scaleZoom(m3), this._rotating && (s2.bearing = e.y.number(n2, c2, a3)), this._pitching && (s2.pitch = e.y.number(l2, u2, a3)), this._padding && (s2.interpolatePadding(h2, d2, a3), p2 = s2.centerPoint.add(_2)), this.terrain && !t4.freezeElevation && this._updateElevation(a3); const v3 = 1 === a3 ? f2 : s2.unproject(x2.add(y2.mult(M2(o2))).mult(m3)); s2.setLocationAtPoint(s2.renderWorldCopies ? v3.wrap() : v3, p2), this._applyUpdatedTransform(s2), this._fireMoveEvents(i2); - }, () => { + }), (() => { this.terrain && t4.freezeElevation && this._finalizeElevation(), this._afterEase(i2); - }, t4), this; + }), t4), this; } isEasing() { return !!this._easeFrameId; @@ -239183,7 +239326,7 @@ uniform ${i3} ${a3} u_${s3}; _updateAttributions() { if (!this._map.style) return; let t4 = []; - if (this.options.customAttribution && (Array.isArray(this.options.customAttribution) ? t4 = t4.concat(this.options.customAttribution.map((t5) => "string" != typeof t5 ? "" : t5)) : "string" == typeof this.options.customAttribution && t4.push(this.options.customAttribution)), this._map.style.stylesheet) { + if (this.options.customAttribution && (Array.isArray(this.options.customAttribution) ? t4 = t4.concat(this.options.customAttribution.map(((t5) => "string" != typeof t5 ? "" : t5))) : "string" == typeof this.options.customAttribution && t4.push(this.options.customAttribution)), this._map.style.stylesheet) { const t5 = this._map.style.stylesheet; this.styleOwner = t5.owner, this.styleId = t5.id; } @@ -239195,10 +239338,10 @@ uniform ${i3} ${a3} u_${s3}; e3.attribution && t4.indexOf(e3.attribution) < 0 && t4.push(e3.attribution); } } - t4 = t4.filter((t5) => String(t5).trim()), t4.sort((t5, e3) => t5.length - e3.length), t4 = t4.filter((e3, i3) => { + t4 = t4.filter(((t5) => String(t5).trim())), t4.sort(((t5, e3) => t5.length - e3.length)), t4 = t4.filter(((e3, i3) => { for (let a2 = i3 + 1; a2 < t4.length; a2++) if (t4[a2].indexOf(e3) >= 0) return false; return true; - }); + })); const i2 = t4.join(" | "); i2 !== this._attribHTML && (this._attribHTML = i2, t4.length ? (this._innerContainer.innerHTML = i2, this._container.classList.remove("maplibregl-attrib-empty")) : this._container.classList.add("maplibregl-attrib-empty"), this._updateCompact(), this._editLink = null); } @@ -239269,7 +239412,7 @@ uniform ${i3} ${a3} u_${s3}; } } getRenderableTiles() { - return this._renderableTilesKeys.map((t4) => this.getTileByID(t4)); + return this._renderableTilesKeys.map(((t4) => this.getTileByID(t4))); } getTileByID(t4) { return this._tiles[t4]; @@ -239305,7 +239448,7 @@ uniform ${i3} ${a3} u_${s3}; return s2; } tilesAfterTime(t4 = Date.now()) { - return Object.values(this._tiles).filter((e2) => e2.timeAdded >= t4); + return Object.values(this._tiles).filter(((e2) => e2.timeAdded >= t4)); } } class Ds { @@ -239317,10 +239460,10 @@ uniform ${i3} ${a3} u_${s3}; if (!(i2 >= 0 && i2 < s2 && a2 >= 0 && a2 < s2)) return 0; const r2 = this.getTerrainData(t4), n2 = null === (o2 = r2.tile) || void 0 === o2 ? void 0 : o2.dem; if (!n2) return 0; - const l2 = function(t5, e2, i3) { + const l2 = (function(t5, e2, i3) { var a3 = e2[0], s3 = e2[1]; return t5[0] = i3[0] * a3 + i3[4] * s3 + i3[12], t5[1] = i3[1] * a3 + i3[5] * s3 + i3[13], t5; - }([], [i2 / s2 * e.X, a2 / s2 * e.X], r2.u_terrain_matrix), h2 = [l2[0] * n2.dim, l2[1] * n2.dim], c2 = Math.floor(h2[0]), u2 = Math.floor(h2[1]), d2 = h2[0] - c2, _2 = h2[1] - u2; + })([], [i2 / s2 * e.X, a2 / s2 * e.X], r2.u_terrain_matrix), h2 = [l2[0] * n2.dim, l2[1] * n2.dim], c2 = Math.floor(h2[0]), u2 = Math.floor(h2[1]), d2 = h2[0] - c2, _2 = h2[1] - u2; return n2.get(c2, u2) * (1 - d2) * (1 - _2) + n2.get(c2 + 1, u2) * d2 * (1 - _2) + n2.get(c2, u2 + 1) * (1 - d2) * _2 + n2.get(c2 + 1, u2 + 1) * d2 * _2; } getElevationForLngLatZoom(t4, i2) { @@ -239421,7 +239564,7 @@ uniform ${i3} ${a3} u_${s3}; return this._objects[t4]; } useObject(t4) { - t4.inUse = true, this._recentlyUsed = this._recentlyUsed.filter((e2) => t4.id !== e2), this._recentlyUsed.push(t4.id); + t4.inUse = true, this._recentlyUsed = this._recentlyUsed.filter(((e2) => t4.id !== e2)), this._recentlyUsed.push(t4.id); } stampObject(t4) { t4.stamp = ++this._stamp; @@ -239439,7 +239582,7 @@ uniform ${i3} ${a3} u_${s3}; for (const t4 of this._objects) this.freeObject(t4); } isFull() { - return !(this._objects.length < this._size) && false === this._objects.some((t4) => !t4.inUse); + return !(this._objects.length < this._size) && false === this._objects.some(((t4) => !t4.inUse)); } } const As = { background: true, fill: true, line: true, raster: true, hillshade: true }; @@ -239454,7 +239597,7 @@ uniform ${i3} ${a3} u_${s3}; return this.pool.getObjectForId(t4.rtt[this._stacks.length - 1].id).texture; } prepareForRender(t4, e2) { - this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.sourceCache.getRenderableTiles(), this._renderableLayerIds = t4._order.filter((i2) => !t4._layers[i2].isHidden(e2)), this._coordsDescendingInv = {}; + this._stacks = [], this._prevType = null, this._rttTiles = [], this._renderableTiles = this.terrain.sourceCache.getRenderableTiles(), this._renderableLayerIds = t4._order.filter(((i2) => !t4._layers[i2].isHidden(e2))), this._coordsDescendingInv = {}; for (const e3 in t4.sourceCaches) { this._coordsDescendingInv[e3] = {}; const i2 = t4.sourceCaches[e3].getVisibleCoordinates(); @@ -239468,7 +239611,7 @@ uniform ${i3} ${a3} u_${s3}; const i2 = t4._layers[e3], a2 = i2.source; if (As[i2.type] && !this._coordsDescendingInvStr[a2]) { this._coordsDescendingInvStr[a2] = {}; - for (const t5 in this._coordsDescendingInv[a2]) this._coordsDescendingInvStr[a2][t5] = this._coordsDescendingInv[a2][t5].map((t6) => t6.key).sort().join(); + for (const t5 in this._coordsDescendingInv[a2]) this._coordsDescendingInvStr[a2][t5] = this._coordsDescendingInv[a2][t5].map(((t6) => t6.key)).sort().join(); } } for (const t5 of this._renderableTiles) for (const e3 in this._coordsDescendingInvStr) { @@ -239596,10 +239739,10 @@ uniform ${i3} ${a3} u_${s3}; let a2 = ""; "viewport" === this._rotationAlignment || "auto" === this._rotationAlignment ? a2 = `rotateZ(${this._rotation}deg)` : "map" === this._rotationAlignment && (a2 = `rotateZ(${this._rotation - this._map.getBearing()}deg)`); let s2 = ""; - "viewport" === this._pitchAlignment || "auto" === this._pitchAlignment ? s2 = "rotateX(0deg)" : "map" === this._pitchAlignment && (s2 = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || t5 && "moveend" !== t5.type || (this._pos = this._pos.round()), r.setTransform(this._element, `${Zs[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${s2} ${a2}`), o.frameAsync(new AbortController()).then(() => { + "viewport" === this._pitchAlignment || "auto" === this._pitchAlignment ? s2 = "rotateX(0deg)" : "map" === this._pitchAlignment && (s2 = `rotateX(${this._map.getPitch()}deg)`), this._subpixelPositioning || t5 && "moveend" !== t5.type || (this._pos = this._pos.round()), r.setTransform(this._element, `${Zs[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${s2} ${a2}`), o.frameAsync(new AbortController()).then((() => { this._updateOpacity(t5 && "moveend" === t5.type); - }).catch(() => { - }); + })).catch((() => { + })); }, this._onMove = (t5) => { if (!this._isDragging) { const e2 = this._clickTolerance || this._map._clickTolerance; @@ -239643,11 +239786,11 @@ uniform ${i3} ${a3} u_${s3}; const g2 = r.createNS("http://www.w3.org/2000/svg", "circle"); g2.setAttributeNS(null, "fill", "#FFFFFF"), g2.setAttributeNS(null, "cx", "5.5"), g2.setAttributeNS(null, "cy", "5.5"), g2.setAttributeNS(null, "r", "5.4999962"), m2.appendChild(f2), m2.appendChild(g2), n2.appendChild(l2), n2.appendChild(c2), n2.appendChild(d2), n2.appendChild(p2), n2.appendChild(m2), i2.appendChild(n2), i2.setAttributeNS(null, "height", a2 * this._scale + "px"), i2.setAttributeNS(null, "width", s2 * this._scale + "px"), this._element.appendChild(i2), this._offset = e.P.convert(t4 && t4.offset || [0, -14]); } - if (this._element.classList.add("maplibregl-marker"), this._element.addEventListener("dragstart", (t5) => { + if (this._element.classList.add("maplibregl-marker"), this._element.addEventListener("dragstart", ((t5) => { t5.preventDefault(); - }), this._element.addEventListener("mousedown", (t5) => { + })), this._element.addEventListener("mousedown", ((t5) => { t5.preventDefault(); - }), qs(this._element, this._anchor, "marker"), t4 && t4.className) for (const e2 of t4.className.split(" ")) this._element.classList.add(e2); + })), qs(this._element, this._anchor, "marker"), t4 && t4.className) for (const e2 of t4.className.split(" ")) this._element.classList.add(e2); this._popup = null; } addTo(t4) { @@ -239691,9 +239834,9 @@ uniform ${i3} ${a3} u_${s3}; if (t4) this._opacityTimeout = null; else { if (this._opacityTimeout) return; - this._opacityTimeout = setTimeout(() => { + this._opacityTimeout = setTimeout((() => { this._opacityTimeout = null; - }, 100); + }), 100); } const s2 = this._map, o2 = s2.terrain.depthAtPoint(this._pos), r2 = s2.terrain.getElevationForLngLatZoom(this._lngLat, s2.transform.tileZoom); if (s2.transform.lngLatToCameraDepth(this._lngLat, r2) - o2 < 6e-3) return void (this._element.style.opacity = this._opacity); @@ -239754,14 +239897,14 @@ uniform ${i3} ${a3} u_${s3}; } else i2 && "nautical" === i2.unit ? Ks(e2, a2, n2 / 1852, t4._getUIString("ScaleControl.NauticalMiles")) : n2 >= 1e3 ? Ks(e2, a2, n2 / 1e3, t4._getUIString("ScaleControl.Kilometers")) : Ks(e2, a2, n2, t4._getUIString("ScaleControl.Meters")); } function Ks(t4, e2, i2, a2) { - const s2 = function(t5) { + const s2 = (function(t5) { const e3 = Math.pow(10, `${Math.floor(t5)}`.length - 1); let i3 = t5 / e3; - return i3 = i3 >= 10 ? 10 : i3 >= 5 ? 5 : i3 >= 3 ? 3 : i3 >= 2 ? 2 : i3 >= 1 ? 1 : function(t6) { + return i3 = i3 >= 10 ? 10 : i3 >= 5 ? 5 : i3 >= 3 ? 3 : i3 >= 2 ? 2 : i3 >= 1 ? 1 : (function(t6) { const e4 = Math.pow(10, Math.ceil(-Math.log(t6) / Math.LN10)); return Math.round(t6 * e4) / e4; - }(i3), e3 * i3; - }(i2); + })(i3), e3 * i3; + })(i2); t4.style.width = e2 * (s2 / i2) + "px", t4.innerHTML = `${s2} ${a2}`; } const Js = { closeButton: true, closeOnClick: true, focusAfterOpen: true, className: "", maxWidth: "240px", subpixelPositioning: false }, Ys = ["a[href]", "[tabindex]:not([tabindex='-1'])", "[contenteditable]:not([contenteditable='false'])", "button:not([disabled])", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].join(", "); @@ -239868,7 +240011,7 @@ uniform ${i3} ${a3} u_${s3}; }, this._finish = () => { this._timeoutId && clearTimeout(this._timeoutId), this._timeoutId = void 0; }, this._setupUI = () => { - this._map && (this._container.addEventListener("contextmenu", (t5) => t5.preventDefault()), this._geolocateButton = r.create("button", "maplibregl-ctrl-geolocate", this._container), r.create("span", "maplibregl-ctrl-icon", this._geolocateButton).setAttribute("aria-hidden", "true"), this._geolocateButton.type = "button", this._geolocateButton.disabled = true); + this._map && (this._container.addEventListener("contextmenu", ((t5) => t5.preventDefault())), this._geolocateButton = r.create("button", "maplibregl-ctrl-geolocate", this._container), r.create("span", "maplibregl-ctrl-icon", this._geolocateButton).setAttribute("aria-hidden", "true"), this._geolocateButton.type = "button", this._geolocateButton.disabled = true); }, this._finishSetupUI = (t5) => { if (this._map) { if (false === t5) { @@ -239879,15 +240022,15 @@ uniform ${i3} ${a3} u_${s3}; const t6 = this._map._getUIString("GeolocateControl.FindMyLocation"); this._geolocateButton.disabled = false, this._geolocateButton.title = t6, this._geolocateButton.setAttribute("aria-label", t6); } - this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = r.create("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new Vs({ element: this._dotElement }), this._circleElement = r.create("div", "maplibregl-user-location-accuracy-circle"), this._accuracyCircleMarker = new Vs({ element: this._circleElement, pitchAlignment: "map" }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", () => this.trigger()), this._setup = true, this.options.trackUserLocation && this._map.on("movestart", (t6) => { + this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = r.create("div", "maplibregl-user-location-dot"), this._userLocationDotMarker = new Vs({ element: this._dotElement }), this._circleElement = r.create("div", "maplibregl-user-location-accuracy-circle"), this._accuracyCircleMarker = new Vs({ element: this._circleElement, pitchAlignment: "map" }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", (() => this.trigger())), this._setup = true, this.options.trackUserLocation && this._map.on("movestart", ((t6) => { t6.geolocateSource || "ACTIVE_LOCK" !== this._watchState || t6.originalEvent && "resize" === t6.originalEvent.type || (this._watchState = "BACKGROUND", this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"), this.fire(new e.k("trackuserlocationend")), this.fire(new e.k("userlocationlostfocus"))); - }); + })); } }, this.options = e.e({}, Gs, t4); } onAdd(t4) { - return this._map = t4, this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._setupUI(), function() { - return e._(this, arguments, void 0, function* (t5 = false) { + return this._map = t4, this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._setupUI(), (function() { + return e._(this, arguments, void 0, (function* (t5 = false) { if (void 0 !== Us && !t5) return Us; if (void 0 === window.navigator.permissions) return Us = !!window.navigator.geolocation, Us; try { @@ -239897,8 +240040,8 @@ uniform ${i3} ${a3} u_${s3}; Us = !!window.navigator.geolocation; } return Us; - }); - }().then((t5) => this._finishSetupUI(t5)), this._container; + })); + })().then(((t5) => this._finishSetupUI(t5))), this._container; } onRemove() { void 0 !== this._geolocationWatchID && (window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0), this.options.showUserLocation && this._userLocationDotMarker && this._userLocationDotMarker.remove(), this.options.showAccuracyCircle && this._accuracyCircleMarker && this._accuracyCircleMarker.remove(), r.remove(this._container), this._map.off("zoom", this._onZoom), this._map = void 0, Hs = 0, Ws = false; @@ -239986,35 +240129,35 @@ uniform ${i3} ${a3} u_${s3}; if (t5.target === this._container) return this._container.scrollTop = 0, this._container.scrollLeft = 0, false; }, this._onWindowOnline = () => { this._update(); - }, this._interactive = i2.interactive, this._maxTileCacheSize = i2.maxTileCacheSize, this._maxTileCacheZoomLevels = i2.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = true === i2.failIfMajorPerformanceCaveat, this._preserveDrawingBuffer = true === i2.preserveDrawingBuffer, this._antialias = true === i2.antialias, this._trackResize = true === i2.trackResize, this._bearingSnap = i2.bearingSnap, this._refreshExpiredTiles = true === i2.refreshExpiredTiles, this._fadeDuration = i2.fadeDuration, this._crossSourceCollisions = true === i2.crossSourceCollisions, this._collectResourceTiming = true === i2.collectResourceTiming, this._locale = Object.assign(Object.assign({}, ks), i2.locale), this._clickTolerance = i2.clickTolerance, this._overridePixelRatio = i2.pixelRatio, this._maxCanvasSize = i2.maxCanvasSize, this.transformCameraUpdate = i2.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = true === i2.cancelPendingTileRequestsWhileZooming, this._imageQueueHandle = _.addThrottleControl(() => this.isMoving()), this._requestManager = new p(i2.transformRequest), "string" == typeof i2.container) { + }, this._interactive = i2.interactive, this._maxTileCacheSize = i2.maxTileCacheSize, this._maxTileCacheZoomLevels = i2.maxTileCacheZoomLevels, this._failIfMajorPerformanceCaveat = true === i2.failIfMajorPerformanceCaveat, this._preserveDrawingBuffer = true === i2.preserveDrawingBuffer, this._antialias = true === i2.antialias, this._trackResize = true === i2.trackResize, this._bearingSnap = i2.bearingSnap, this._refreshExpiredTiles = true === i2.refreshExpiredTiles, this._fadeDuration = i2.fadeDuration, this._crossSourceCollisions = true === i2.crossSourceCollisions, this._collectResourceTiming = true === i2.collectResourceTiming, this._locale = Object.assign(Object.assign({}, ks), i2.locale), this._clickTolerance = i2.clickTolerance, this._overridePixelRatio = i2.pixelRatio, this._maxCanvasSize = i2.maxCanvasSize, this.transformCameraUpdate = i2.transformCameraUpdate, this.cancelPendingTileRequestsWhileZooming = true === i2.cancelPendingTileRequestsWhileZooming, this._imageQueueHandle = _.addThrottleControl((() => this.isMoving())), this._requestManager = new p(i2.transformRequest), "string" == typeof i2.container) { if (this._container = document.getElementById(i2.container), !this._container) throw new Error(`Container '${i2.container}' not found.`); } else { if (!(i2.container instanceof HTMLElement)) throw new Error("Invalid type: 'container' must be a String or HTMLElement."); this._container = i2.container; } - if (i2.maxBounds && this.setMaxBounds(i2.maxBounds), this._setupContainer(), this._setupPainter(), this.on("move", () => this._update(false)).on("moveend", () => this._update(false)).on("zoom", () => this._update(true)).on("terrain", () => { + if (i2.maxBounds && this.setMaxBounds(i2.maxBounds), this._setupContainer(), this._setupPainter(), this.on("move", (() => this._update(false))).on("moveend", (() => this._update(false))).on("zoom", (() => this._update(true))).on("terrain", (() => { this.painter.terrainFacilitator.dirty = true, this._update(true); - }).once("idle", () => { + })).once("idle", (() => { this._idleTriggered = true; - }), "undefined" != typeof window) { + })), "undefined" != typeof window) { addEventListener("online", this._onWindowOnline, false); let t5 = false; - const e2 = Ia((t6) => { + const e2 = Ia(((t6) => { this._trackResize && !this._removed && (this.resize(t6), this.redraw()); - }, 50); - this._resizeObserver = new ResizeObserver((i3) => { + }), 50); + this._resizeObserver = new ResizeObserver(((i3) => { t5 ? e2(i3) : t5 = true; - }), this._resizeObserver.observe(this._container); + })), this._resizeObserver.observe(this._container); } - this.handlers = new ws(this, i2), this._hash = i2.hash && new Ea("string" == typeof i2.hash && i2.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: i2.center, zoom: i2.zoom, bearing: i2.bearing, pitch: i2.pitch }), i2.bounds && (this.resize(), this.fitBounds(i2.bounds, e.e({}, i2.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = i2.localIdeographFontFamily, this._validateStyle = i2.validateStyle, i2.style && this.setStyle(i2.style, { localIdeographFontFamily: i2.localIdeographFontFamily }), i2.attributionControl && this.addControl(new Es("boolean" == typeof i2.attributionControl ? void 0 : i2.attributionControl)), i2.maplibreLogo && this.addControl(new Ps(), i2.logoPosition), this.on("style.load", () => { + this.handlers = new ws(this, i2), this._hash = i2.hash && new Ea("string" == typeof i2.hash && i2.hash || void 0).addTo(this), this._hash && this._hash._onHashChange() || (this.jumpTo({ center: i2.center, zoom: i2.zoom, bearing: i2.bearing, pitch: i2.pitch }), i2.bounds && (this.resize(), this.fitBounds(i2.bounds, e.e({}, i2.fitBoundsOptions, { duration: 0 })))), this.resize(), this._localIdeographFontFamily = i2.localIdeographFontFamily, this._validateStyle = i2.validateStyle, i2.style && this.setStyle(i2.style, { localIdeographFontFamily: i2.localIdeographFontFamily }), i2.attributionControl && this.addControl(new Es("boolean" == typeof i2.attributionControl ? void 0 : i2.attributionControl)), i2.maplibreLogo && this.addControl(new Ps(), i2.logoPosition), this.on("style.load", (() => { this.transform.unmodified && this.jumpTo(this.style.stylesheet); - }), this.on("data", (t5) => { + })), this.on("data", ((t5) => { this._update("style" === t5.dataType), this.fire(new e.k(`${t5.dataType}data`, t5)); - }), this.on("dataloading", (t5) => { + })), this.on("dataloading", ((t5) => { this.fire(new e.k(`${t5.dataType}dataloading`, t5)); - }), this.on("dataabort", (t5) => { + })), this.on("dataabort", ((t5) => { this.fire(new e.k("sourcedataabort", t5)); - }); + })); } _getMapId() { return this._mapId; @@ -240128,7 +240271,7 @@ uniform ${i3} ${a3} u_${s3}; if ("mouseenter" === t4 || "mouseover" === t4) { let a2 = false; const s2 = (s3) => { - const o2 = e2.filter((t5) => this.getLayer(t5)), r2 = 0 !== o2.length ? this.queryRenderedFeatures(s3.point, { layers: o2 }) : []; + const o2 = e2.filter(((t5) => this.getLayer(t5))), r2 = 0 !== o2.length ? this.queryRenderedFeatures(s3.point, { layers: o2 }) : []; r2.length ? a2 || (a2 = true, i2.call(this, new ka(t4, this, s3.originalEvent, { features: r2 }))) : a2 = false; }; return { layers: e2, listener: i2, delegates: { mousemove: s2, mouseout: () => { @@ -240138,7 +240281,7 @@ uniform ${i3} ${a3} u_${s3}; if ("mouseleave" === t4 || "mouseout" === t4) { let a2 = false; const s2 = (s3) => { - const o3 = e2.filter((t5) => this.getLayer(t5)); + const o3 = e2.filter(((t5) => this.getLayer(t5))); (0 !== o3.length ? this.queryRenderedFeatures(s3.point, { layers: o3 }) : []).length ? a2 = true : a2 && (a2 = false, i2.call(this, new ka(t4, this, s3.originalEvent))); }, o2 = (e3) => { a2 && (a2 = false, i2.call(this, new ka(t4, this, e3.originalEvent))); @@ -240147,7 +240290,7 @@ uniform ${i3} ${a3} u_${s3}; } { const a2 = (t5) => { - const a3 = e2.filter((t6) => this.getLayer(t6)), s2 = 0 !== a3.length ? this.queryRenderedFeatures(t5.point, { layers: a3 }) : []; + const a3 = e2.filter(((t6) => this.getLayer(t6))), s2 = 0 !== a3.length ? this.queryRenderedFeatures(t5.point, { layers: a3 }) : []; s2.length && (t5.features = s2, i2.call(this, t5), delete t5.features); }; return { layers: e2, listener: i2, delegates: { [t4]: a2 } }; @@ -240161,7 +240304,7 @@ uniform ${i3} ${a3} u_${s3}; const a2 = this._delegatedListeners[t4]; for (let t5 = 0; t5 < a2.length; t5++) { const s2 = a2[t5]; - if (s2.listener === i2 && s2.layers.length === e2.length && s2.layers.every((t6) => e2.includes(t6))) { + if (s2.listener === i2 && s2.layers.length === e2.length && s2.layers.every(((t6) => e2.includes(t6)))) { for (const t6 in s2.delegates) this.off(t6, s2.delegates[t6]); return void a2.splice(t5, 1); } @@ -240216,7 +240359,7 @@ uniform ${i3} ${a3} u_${s3}; return e2; } _updateStyle(t4, e2) { - if (e2.transformStyle && this.style && !this.style._loaded) return void this.style.once("style.load", () => this._updateStyle(t4, e2)); + if (e2.transformStyle && this.style && !this.style._loaded) return void this.style.once("style.load", (() => this._updateStyle(t4, e2))); const i2 = this.style && e2.transformStyle ? this.style.serialize() : void 0; return this.style && (this.style.setEventedParent(null), this.style._remove(!t4)), t4 ? (this.style = new de(this, e2 || {}), this.style.setEventedParent(this, { style: this.style }), "string" == typeof t4 ? this.style.loadURL(t4, e2, i2) : this.style.loadJSON(t4, e2, i2), this) : (delete this.style, this); } @@ -240226,11 +240369,11 @@ uniform ${i3} ${a3} u_${s3}; _diffStyle(t4, i2) { if ("string" == typeof t4) { const a2 = this._requestManager.transformRequest(t4, "Style"); - e.h(a2, new AbortController()).then((t5) => { + e.h(a2, new AbortController()).then(((t5) => { this._updateDiff(t5.data, i2); - }).catch((t5) => { + })).catch(((t5) => { t5 && this.fire(new e.j(t5)); - }); + })); } else "object" == typeof t4 && this._updateDiff(t4, i2); } _updateDiff(t4, i2) { @@ -240371,9 +240514,9 @@ uniform ${i3} ${a3} u_${s3}; return this.style.getGlyphsUrl(); } addSprite(t4, e2, i2 = {}) { - return this._lazyInitEmptyStyle(), this.style.addSprite(t4, e2, i2, (t5) => { + return this._lazyInitEmptyStyle(), this.style.addSprite(t4, e2, i2, ((t5) => { t5 || this._update(true); - }), this; + })), this; } removeSprite(t4) { return this._lazyInitEmptyStyle(), this.style.removeSprite(t4), this._update(true); @@ -240382,9 +240525,9 @@ uniform ${i3} ${a3} u_${s3}; return this.style.getSprite(); } setSprite(t4, e2 = {}) { - return this._lazyInitEmptyStyle(), this.style.setSprite(t4, e2, (t5) => { + return this._lazyInitEmptyStyle(), this.style.setSprite(t4, e2, ((t5) => { t5 || this._update(true); - }), this; + })), this; } setLight(t4, e2 = {}) { return this._lazyInitEmptyStyle(), this.style.setLight(t4, e2), this._update(true); @@ -240428,9 +240571,9 @@ uniform ${i3} ${a3} u_${s3}; const i2 = this._containerDimensions(), a2 = this._getClampedPixelRatio(i2[0], i2[1]); this._resizeCanvas(i2[0], i2[1], a2); const s2 = this._controlContainer = r.create("div", "maplibregl-control-container", t4), o2 = this._controlPositions = {}; - ["top-left", "top-right", "bottom-left", "bottom-right"].forEach((t5) => { + ["top-left", "top-right", "bottom-left", "bottom-right"].forEach(((t5) => { o2[t5] = r.create("div", `maplibregl-ctrl-${t5} `, s2); - }), this._container.addEventListener("scroll", this._onMapScroll, false); + })), this._container.addEventListener("scroll", this._onMapScroll, false); } _resizeCanvas(t4, e2, i2) { this._canvas.width = Math.floor(i2 * t4), this._canvas.height = Math.floor(i2 * e2), this._canvas.style.width = `${t4}px`, this._canvas.style.height = `${e2}px`; @@ -240438,9 +240581,9 @@ uniform ${i3} ${a3} u_${s3}; _setupPainter() { const t4 = { alpha: true, stencil: true, depth: true, failIfMajorPerformanceCaveat: this._failIfMajorPerformanceCaveat, preserveDrawingBuffer: this._preserveDrawingBuffer, antialias: this._antialias || false }; let e2 = null; - this._canvas.addEventListener("webglcontextcreationerror", (i3) => { + this._canvas.addEventListener("webglcontextcreationerror", ((i3) => { e2 = { requestedAttributes: t4 }, i3 && (e2.statusMessage = i3.statusMessage, e2.type = i3.type); - }, { once: true }); + }), { once: true }); const i2 = this._canvas.getContext("webgl2", t4) || this._canvas.getContext("webgl", t4); if (!i2) { const t5 = "Failed to initialize WebGL"; @@ -240487,10 +240630,10 @@ uniform ${i3} ${a3} u_${s3}; (null == i2 ? void 0 : i2.loseContext) && i2.loseContext(), this._canvas.removeEventListener("webglcontextrestored", this._contextRestored, false), this._canvas.removeEventListener("webglcontextlost", this._contextLost, false), r.remove(this._canvasContainer), r.remove(this._controlContainer), this._container.classList.remove("maplibregl-map"), e.bf.clearMetrics(), this._removed = true, this.fire(new e.k("remove")); } triggerRepaint() { - this.style && !this._frameRequest && (this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then((t4) => { + this.style && !this._frameRequest && (this._frameRequest = new AbortController(), o.frameAsync(this._frameRequest).then(((t4) => { e.bf.frame(t4), this._frameRequest = null, this._render(t4); - }).catch(() => { - })); + })).catch((() => { + }))); } get showTileBoundaries() { return !!this._showTileBoundaries; @@ -240545,9 +240688,9 @@ uniform ${i3} ${a3} u_${s3}; }, this._setButtonTitle = (t5, e2) => { const i2 = this._map._getUIString(`NavigationControl.${e2}`); t5.title = i2, t5.setAttribute("aria-label", i2); - }, this.options = e.e({}, Os, t4), this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._container.addEventListener("contextmenu", (t5) => t5.preventDefault()), this.options.showZoom && (this._zoomInButton = this._createButton("maplibregl-ctrl-zoom-in", (t5) => this._map.zoomIn({}, { originalEvent: t5 })), r.create("span", "maplibregl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("maplibregl-ctrl-zoom-out", (t5) => this._map.zoomOut({}, { originalEvent: t5 })), r.create("span", "maplibregl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (this._compass = this._createButton("maplibregl-ctrl-compass", (t5) => { + }, this.options = e.e({}, Os, t4), this._container = r.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._container.addEventListener("contextmenu", ((t5) => t5.preventDefault())), this.options.showZoom && (this._zoomInButton = this._createButton("maplibregl-ctrl-zoom-in", ((t5) => this._map.zoomIn({}, { originalEvent: t5 }))), r.create("span", "maplibregl-ctrl-icon", this._zoomInButton).setAttribute("aria-hidden", "true"), this._zoomOutButton = this._createButton("maplibregl-ctrl-zoom-out", ((t5) => this._map.zoomOut({}, { originalEvent: t5 }))), r.create("span", "maplibregl-ctrl-icon", this._zoomOutButton).setAttribute("aria-hidden", "true")), this.options.showCompass && (this._compass = this._createButton("maplibregl-ctrl-compass", ((t5) => { this.options.visualizePitch ? this._map.resetNorthPitch({}, { originalEvent: t5 }) : this._map.resetNorth({}, { originalEvent: t5 }); - }), this._compassIcon = r.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true")); + })), this._compassIcon = r.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true")); } onAdd(t4) { return this._map = t4, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), this._map.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && this._map.on("pitch", this._rotateCompassArrow), this._map.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new Ns(this._map, this._compass, this.options.visualizePitch)), this._container; @@ -240683,12 +240826,12 @@ uniform ${i3} ${a3} u_${s3}; onRemove() { r.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0; } - }, t.TwoFingersTouchPitchHandler = rs, t.TwoFingersTouchRotateHandler = ss, t.TwoFingersTouchZoomHandler = is, t.TwoFingersTouchZoomRotateHandler = gs, t.VectorTileSource = $, t.VideoSource = tt, t.addSourceType = (t4, i2) => e._(void 0, void 0, void 0, function* () { + }, t.TwoFingersTouchPitchHandler = rs, t.TwoFingersTouchRotateHandler = ss, t.TwoFingersTouchZoomHandler = is, t.TwoFingersTouchZoomRotateHandler = gs, t.VectorTileSource = $, t.VideoSource = tt, t.addSourceType = (t4, i2) => e._(void 0, void 0, void 0, (function* () { if (at(t4)) throw new Error(`A source type called "${t4}" already exists.`); ((t5, e2) => { it[t5] = e2; })(t4, i2); - }), t.clearPrewarmedResources = function() { + })), t.clearPrewarmedResources = function() { const t4 = B2; t4 && (t4.isPreloaded() && 1 === t4.numActive() ? (t4.release(k), B2 = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()")); }, t.getMaxParallelImageRequests = function() { @@ -240714,10 +240857,10 @@ uniform ${i3} ${a3} u_${s3}; }, t.setWorkerUrl = function(t4) { e.a.WORKER_URL = t4; }; - }); + })); var maplibregl$1 = maplibregl; return maplibregl$1; - }); + })); } }); @@ -243396,7 +243539,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/d3-collection/dist/d3-collection.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && false ? define(["exports"], factory) : factory(global2.d3 = global2.d3 || {}); - })(exports, function(exports2) { + })(exports, (function(exports2) { "use strict"; var prefix = "$"; function Map2() { @@ -243583,7 +243726,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.values = values; exports2.entries = entries; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -243799,7 +243942,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/d3-force/dist/d3-force.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_quadtree(), require_d3_collection(), require_d3_dispatch(), require_d3_timer()) : typeof define === "function" && false ? define(["exports", "d3-quadtree", "d3-collection", "d3-dispatch", "d3-timer"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3, global2.d3, global2.d3); - })(exports, function(exports2, d3Quadtree, d3Collection, d3Dispatch, d3Timer) { + })(exports, (function(exports2, d3Quadtree, d3Collection, d3Dispatch, d3Timer) { "use strict"; function center(x2, y2) { var nodes; @@ -244267,7 +244410,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.forceX = x$2; exports2.forceY = y$2; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -245133,7 +245276,7 @@ uniform ${i3} ${a3} u_${s3}; this._y.push(+y2); } }; - var bundle = function custom(beta) { + var bundle = (function custom(beta) { function bundle2(context) { return beta === 1 ? new Basis(context) : new Bundle(context, beta); } @@ -245141,7 +245284,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+beta2); }; return bundle2; - }(0.85); + })(0.85); function point$1(that, x2, y2) { that._context.bezierCurveTo( that._x1 + that._k * (that._x2 - that._x0), @@ -245201,7 +245344,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var cardinal = function custom(tension) { + var cardinal = (function custom(tension) { function cardinal2(context) { return new Cardinal(context, tension); } @@ -245209,7 +245352,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+tension2); }; return cardinal2; - }(0); + })(0); function CardinalClosed(context, tension) { this._context = context; this._k = (1 - tension) / 6; @@ -245264,7 +245407,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var cardinalClosed = function custom(tension) { + var cardinalClosed = (function custom(tension) { function cardinal2(context) { return new CardinalClosed(context, tension); } @@ -245272,7 +245415,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+tension2); }; return cardinal2; - }(0); + })(0); function CardinalOpen(context, tension) { this._context = context; this._k = (1 - tension) / 6; @@ -245316,7 +245459,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var cardinalOpen = function custom(tension) { + var cardinalOpen = (function custom(tension) { function cardinal2(context) { return new CardinalOpen(context, tension); } @@ -245324,7 +245467,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+tension2); }; return cardinal2; - }(0); + })(0); function point$2(that, x2, y2) { var x1 = that._x1, y1 = that._y1, x22 = that._x2, y22 = that._y2; if (that._l01_a > epsilon) { @@ -245393,7 +245536,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var catmullRom = function custom(alpha) { + var catmullRom = (function custom(alpha) { function catmullRom2(context) { return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0); } @@ -245401,7 +245544,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+alpha2); }; return catmullRom2; - }(0.5); + })(0.5); function CatmullRomClosed(context, alpha) { this._context = context; this._alpha = alpha; @@ -245462,7 +245605,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var catmullRomClosed = function custom(alpha) { + var catmullRomClosed = (function custom(alpha) { function catmullRom2(context) { return alpha ? new CatmullRomClosed(context, alpha) : new CardinalClosed(context, 0); } @@ -245470,7 +245613,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+alpha2); }; return catmullRom2; - }(0.5); + })(0.5); function CatmullRomOpen(context, alpha) { this._context = context; this._alpha = alpha; @@ -245520,7 +245663,7 @@ uniform ${i3} ${a3} u_${s3}; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2; } }; - var catmullRomOpen = function custom(alpha) { + var catmullRomOpen = (function custom(alpha) { function catmullRom2(context) { return alpha ? new CatmullRomOpen(context, alpha) : new CardinalOpen(context, 0); } @@ -245528,7 +245671,7 @@ uniform ${i3} ${a3} u_${s3}; return custom(+alpha2); }; return catmullRom2; - }(0.5); + })(0.5); function LinearClosed(context) { this._context = context; } @@ -245948,7 +246091,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/@plotly/d3-sankey/build/d3-sankey.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array(), require_d3_collection(), require_d3_shape()) : typeof define === "function" && false ? define(["exports", "d3-array", "d3-collection", "d3-shape"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3, global2.d3); - })(exports, function(exports2, d3Array, d3Collection, d3Shape) { + })(exports, (function(exports2, d3Array, d3Collection, d3Shape) { "use strict"; function targetDepth(d) { return d.target.depth; @@ -246206,7 +246349,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.sankeyJustify = justify; exports2.sankeyLinkHorizontal = sankeyLinkHorizontal; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); @@ -246343,7 +246486,7 @@ uniform ${i3} ${a3} u_${s3}; "node_modules/@plotly/d3-sankey-circular/dist/d3-sankey-circular.js"(exports, module) { (function(global2, factory) { typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require_d3_array(), require_d3_collection(), require_d3_shape(), require_johnson()) : typeof define === "function" && false ? define(["exports", "d3-array", "d3-collection", "d3-shape", "elementary-circuits-directed-graph"], factory) : factory(global2.d3 = global2.d3 || {}, global2.d3, global2.d3, global2.d3, null); - })(exports, function(exports2, d3Array, d3Collection, d3Shape, findCircuits) { + })(exports, (function(exports2, d3Array, d3Collection, d3Shape, findCircuits) { "use strict"; findCircuits = findCircuits && findCircuits.hasOwnProperty("default") ? findCircuits["default"] : findCircuits; function targetDepth(d) { @@ -247343,7 +247486,7 @@ uniform ${i3} ${a3} u_${s3}; exports2.sankeyRight = right; exports2.sankeyJustify = justify; Object.defineProperty(exports2, "__esModule", { value: true }); - }); + })); } }); diff --git a/dist/plotly.min.js b/dist/plotly.min.js index 4e34b1e3cb0..14717068240 100644 --- a/dist/plotly.min.js +++ b/dist/plotly.min.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.6.0 +* plotly.js v3.7.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,93 +12,93 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var wtt=Object.create;var FS=Object.defineProperty,Ttt=Object.defineProperties,Att=Object.getOwnPropertyDescriptor,Stt=Object.getOwnPropertyDescriptors,Mtt=Object.getOwnPropertyNames,g6=Object.getOwnPropertySymbols,Ett=Object.getPrototypeOf,Mq=Object.prototype.hasOwnProperty,gee=Object.prototype.propertyIsEnumerable;var pee=(e,t,r)=>t in e?FS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_g=(e,t)=>{for(var r in t||(t={}))Mq.call(t,r)&&pee(e,r,t[r]);if(g6)for(var r of g6(t))gee.call(t,r)&&pee(e,r,t[r]);return e},j1=(e,t)=>Ttt(e,Stt(t));var mee=(e,t)=>{var r={};for(var n in e)Mq.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&g6)for(var n of g6(e))t.indexOf(n)<0&&gee.call(e,n)&&(r[n]=e[n]);return r};var gu=(e,t)=>()=>(e&&(t=e(e=0)),t);var ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yee=(e,t)=>{for(var r in t)FS(e,r,{get:t[r],enumerable:!0})},_ee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Mtt(t))!Mq.call(e,i)&&i!==r&&FS(e,i,{get:()=>t[i],enumerable:!(n=Att(t,i))||n.enumerable});return e};var ktt=(e,t,r)=>(r=e!=null?wtt(Ett(e)):{},_ee(t||!e||!e.__esModule?FS(r,"default",{value:e,enumerable:!0}):r,e)),gb=e=>_ee(FS({},"__esModule",{value:!0}),e);var m6=ye(xee=>{"use strict";xee.version="3.6.0"});var wee=ye((bee,y6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof y6!="undefined"&&y6.exports&&(y6.exports=r[t])})("Promise",typeof window!="undefined"?window:bee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(k,M,T,L){return Object.defineProperty(k,M,{value:T,writable:!0,configurable:L!==!1})}}catch(p){t=function(M,T,L){return M[T]=L,M}}n=function(){var k,M,T;function L(x,C){this.fn=x,this.self=C,this.next=void 0}return{add:function(C,S){T=new L(C,S),M?M.next=T:k=T,M=T,T=void 0},drain:function(){var C=k;for(k=M=r=void 0;C;)C.fn.call(C.self),C=C.next}}}();function o(p,k){n.add(p,k),r||(r=a(n.drain))}function s(p){var k,M=typeof p;return p!=null&&(M=="object"||M=="function")&&(k=p.then),typeof k=="function"?k:!1}function l(){for(var p=0;p0&&o(l,M))}catch(T){f.call(new d(M),T)}}}function f(p){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=p,k.state=2,k.chain.length>0&&o(l,k))}function h(p,k,M,T){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(X){return t.call(X)},n=self.document;function i(X){return X&&(X.ownerDocument||X.document||X).documentElement}function a(X){return X&&(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(X){r=function(se){for(var Te=se.length,qe=new Array(Te);Te--;)qe[Te]=se[Te];return qe}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(X){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(se,Te){s.call(this,se,Te+"")},o.setAttributeNS=function(se,Te,qe){l.call(this,se,Te,qe+"")},u.setProperty=function(se,Te,qe){c.call(this,se,Te+"",qe)}}e.ascending=f;function f(X,se){return Xse?1:X>=se?0:NaN}e.descending=function(X,se){return seX?1:se>=X?0:NaN},e.min=function(X,se){var Te=-1,qe=X.length,Ve,Ye;if(arguments.length===1){for(;++Te=Ye){Ve=Ye;break}for(;++TeYe&&(Ve=Ye)}else{for(;++Te=Ye){Ve=Ye;break}for(;++TeYe&&(Ve=Ye)}return Ve},e.max=function(X,se){var Te=-1,qe=X.length,Ve,Ye;if(arguments.length===1){for(;++Te=Ye){Ve=Ye;break}for(;++TeVe&&(Ve=Ye)}else{for(;++Te=Ye){Ve=Ye;break}for(;++TeVe&&(Ve=Ye)}return Ve},e.extent=function(X,se){var Te=-1,qe=X.length,Ve,Ye,Pt;if(arguments.length===1){for(;++Te=Ye){Ve=Pt=Ye;break}for(;++TeYe&&(Ve=Ye),Pt=Ye){Ve=Pt=Ye;break}for(;++TeYe&&(Ve=Ye),Pt1)return Pt/(Xt-1)},e.deviation=function(){var X=e.variance.apply(this,arguments);return X&&Math.sqrt(X)};function v(X){return{left:function(se,Te,qe,Ve){for(arguments.length<3&&(qe=0),arguments.length<4&&(Ve=se.length);qe>>1;X(se[Ye],Te)<0?qe=Ye+1:Ve=Ye}return qe},right:function(se,Te,qe,Ve){for(arguments.length<3&&(qe=0),arguments.length<4&&(Ve=se.length);qe>>1;X(se[Ye],Te)>0?Ve=Ye:qe=Ye+1}return qe}}}var m=v(f);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(X){return v(X.length===1?function(se,Te){return f(X(se),Te)}:X)},e.shuffle=function(X,se,Te){(qe=arguments.length)<3&&(Te=X.length,qe<2&&(se=0));for(var qe=Te-se,Ve,Ye;qe;)Ye=Math.random()*qe--|0,Ve=X[qe+se],X[qe+se]=X[Ye+se],X[Ye+se]=Ve;return X},e.permute=function(X,se){for(var Te=se.length,qe=new Array(Te);Te--;)qe[Te]=X[se[Te]];return qe},e.pairs=function(X){for(var se=0,Te=X.length-1,qe,Ve=X[0],Ye=new Array(Te<0?0:Te);se=0;)for(Pt=X[se],Te=Pt.length;--Te>=0;)Ye[--Ve]=Pt[Te];return Ye};var p=Math.abs;e.range=function(X,se,Te){if(arguments.length<3&&(Te=1,arguments.length<2&&(se=X,X=0)),(se-X)/Te===1/0)throw new Error("infinite range");var qe=[],Ve=k(p(Te)),Ye=-1,Pt;if(X*=Ve,se*=Ve,Te*=Ve,Te<0)for(;(Pt=X+Te*++Ye)>se;)qe.push(Pt/Ve);else for(;(Pt=X+Te*++Ye)=se.length)return Ve?Ve.call(X,Xt):qe?Xt.sort(qe):Xt;for(var pr=-1,Ur=Xt.length,zr=se[dr++],gi,xi,Wr,ii=new T,di;++pr=se.length)return ot;var dr=[],pr=Te[Xt++];return ot.forEach(function(Ur,zr){dr.push({key:Ur,values:Pt(zr,Xt)})}),pr?dr.sort(function(Ur,zr){return pr(Ur.key,zr.key)}):dr}return X.map=function(ot,Xt){return Ye(Xt,ot,0)},X.entries=function(ot){return Pt(Ye(e.map,ot,0),0)},X.key=function(ot){return se.push(ot),X},X.sortKeys=function(ot){return Te[se.length-1]=ot,X},X.sortValues=function(ot){return qe=ot,X},X.rollup=function(ot){return Ve=ot,X},X},e.set=function(X){var se=new V;if(X)for(var Te=0,qe=X.length;Te=0&&(qe=X.slice(Te+1),X=X.slice(0,Te)),X)return arguments.length<2?this[X].on(qe):this[X].on(qe,se);if(arguments.length===2){if(se==null)for(X in this)this.hasOwnProperty(X)&&this[X].on(qe,null);return this}};function ae(X){var se=[],Te=new T;function qe(){for(var Ve=se,Ye=-1,Pt=Ve.length,ot;++Ye=0&&(Te=X.slice(0,se))!=="xmlns"&&(X=X.slice(se+1)),He.hasOwnProperty(Te)?{space:He[Te],local:X}:X}},Le.attr=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node();return X=e.ns.qualify(X),X.local?Te.getAttributeNS(X.space,X.local):Te.getAttribute(X)}for(se in X)this.each(lt(se,X[se]));return this}return this.each(lt(X,se))};function lt(X,se){X=e.ns.qualify(X);function Te(){this.removeAttribute(X)}function qe(){this.removeAttributeNS(X.space,X.local)}function Ve(){this.setAttribute(X,se)}function Ye(){this.setAttributeNS(X.space,X.local,se)}function Pt(){var Xt=se.apply(this,arguments);Xt==null?this.removeAttribute(X):this.setAttribute(X,Xt)}function ot(){var Xt=se.apply(this,arguments);Xt==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,Xt)}return se==null?X.local?qe:Te:typeof se=="function"?X.local?ot:Pt:X.local?Ye:Ve}function mt(X){return X.trim().replace(/\s+/g," ")}Le.classed=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node(),qe=(X=at(X)).length,Ve=-1;if(se=Te.classList){for(;++Ve=0;)(Ye=Te[qe])&&(Ve&&Ve!==Ye.nextSibling&&Ve.parentNode.insertBefore(Ye,Ve),Ve=Ye);return this},Le.sort=function(X){X=rt.apply(this,arguments);for(var se=-1,Te=this.length;++se=se&&(se=Ve+1);!(Xt=Pt[se])&&++se0&&(X=X.slice(0,Ve));var Pt=jt.get(X);Pt&&(X=Pt,Ye=mr);function ot(){var pr=this[qe];pr&&(this.removeEventListener(X,pr,pr.$),delete this[qe])}function Xt(){var pr=Ye(se,r(arguments));ot.call(this),this.addEventListener(X,this[qe]=pr,pr.$=Te),pr._=se}function dr(){var pr=new RegExp("^__on([^.]+)"+e.requote(X)+"$"),Ur;for(var zr in this)if(Ur=zr.match(pr)){var gi=this[zr];this.removeEventListener(Ur[1],gi,gi.$),delete this[zr]}}return Ve?se?Xt:ot:se?H:dr}var jt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&jt.forEach(function(X){"on"+X in n&&jt.remove(X)});function or(X,se){return function(Te){var qe=e.event;e.event=Te,se[0]=this.__data__;try{X.apply(this,se)}finally{e.event=qe}}}function mr(X,se){var Te=or(X,se);return function(qe){var Ve=this,Ye=qe.relatedTarget;(!Ye||Ye!==Ve&&!(Ye.compareDocumentPosition(Ve)&8))&&Te.call(Ve,qe)}}var Ar,ei=0;function qr(X){var se=".dragsuppress-"+ ++ei,Te="click"+se,qe=e.select(a(X)).on("touchmove"+se,_e).on("dragstart"+se,_e).on("selectstart"+se,_e);if(Ar==null&&(Ar="onselectstart"in X?!1:j(X.style,"userSelect")),Ar){var Ve=i(X).style,Ye=Ve[Ar];Ve[Ar]="none"}return function(Pt){if(qe.on(se,null),Ar&&(Ve[Ar]=Ye),Pt){var ot=function(){qe.on(Te,null)};qe.on(Te,function(){_e(),ot()},!0),setTimeout(ot,0)}}}e.mouse=function(X){return gt(X,Ee())};var jr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function gt(X,se){se.changedTouches&&(se=se.changedTouches[0]);var Te=X.ownerSVGElement||X;if(Te.createSVGPoint){var qe=Te.createSVGPoint();if(jr<0){var Ve=a(X);if(Ve.scrollX||Ve.scrollY){Te=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ye=Te[0][0].getScreenCTM();jr=!(Ye.f||Ye.e),Te.remove()}}return jr?(qe.x=se.pageX,qe.y=se.pageY):(qe.x=se.clientX,qe.y=se.clientY),qe=qe.matrixTransform(X.getScreenCTM().inverse()),[qe.x,qe.y]}var Pt=X.getBoundingClientRect();return[se.clientX-Pt.left-X.clientLeft,se.clientY-Pt.top-X.clientTop]}e.touch=function(X,se,Te){if(arguments.length<3&&(Te=se,se=Ee().changedTouches),se){for(var qe=0,Ve=se.length,Ye;qe0?1:X<0?-1:0}function Ir(X,se,Te){return(se[0]-X[0])*(Te[1]-X[1])-(se[1]-X[1])*(Te[0]-X[0])}function Yr(X){return X>1?0:X<-1?et:Math.acos(X)}function _i(X){return X>1?Kt:X<-1?-Kt:Math.asin(X)}function Pi(X){return((X=Math.exp(X))-1/X)/2}function ai(X){return((X=Math.exp(X))+1/X)/2}function mi(X){return((X=Math.exp(2*X))-1)/(X+1)}function un(X){return(X=Math.sin(X/2))*X}var Fn=Math.SQRT2,An=2,Hn=4;e.interpolateZoom=function(X,se){var Te=X[0],qe=X[1],Ve=X[2],Ye=se[0],Pt=se[1],ot=se[2],Xt=Ye-Te,dr=Pt-qe,pr=Xt*Xt+dr*dr,Ur,zr;if(pr0&&(Un=Un.transition().duration(Pt)),Un.call(Ti.event)}function Ea(){ii&&ii.domain(Wr.range().map(function(Un){return(Un-X.x)/X.k}).map(Wr.invert)),Li&&Li.domain(di.range().map(function(Un){return(Un-X.y)/X.k}).map(di.invert))}function Ia(Un){ot++||Un({type:"zoomstart"})}function yo(Un){Ea(),Un({type:"zoom",scale:X.k,translate:[X.x,X.y]})}function Da(Un){--ot||(Un({type:"zoomend"}),Te=null)}function go(){var Un=this,ja=xi.of(Un,arguments),Fo=0,Uo=e.select(a(Un)).on(dr,bu).on(pr,dl),$s=Qr(e.mouse(Un)),Sl=qr(Un);fa.call(Un),Ia(ja);function bu(){Fo=1,Bn(e.mouse(Un),$s),yo(ja)}function dl(){Uo.on(dr,null).on(pr,null),Sl(Fo),Da(ja)}}function Is(){var Un=this,ja=xi.of(Un,arguments),Fo={},Uo=0,$s,Sl=".zoom-"+e.event.changedTouches[0].identifier,bu="touchmove"+Sl,dl="touchend"+Sl,Sc=[],Me=e.select(Un),bt=qr(Un);Lr(),Ia(ja),Me.on(Xt,null).on(zr,Lr);function Ot(){var Nr=e.touches(Un);return $s=X.k,Nr.forEach(function(vi){vi.identifier in Fo&&(Fo[vi.identifier]=Qr(vi))}),Nr}function Lr(){var Nr=e.event.target;e.select(Nr).on(bu,Vr).on(dl,Or),Sc.push(Nr);for(var vi=e.event.changedTouches,Ni=0,qi=vi.length;Ni1){var Qi=Si[0],ji=Si[1],oi=Qi[0]-ji[0],Tr=Qi[1]-ji[1];Uo=oi*oi+Tr*Tr}}function Vr(){var Nr=e.touches(Un),vi,Ni,qi,Si;fa.call(Un);for(var Vn=0,Qi=Nr.length;Vn1?1:se,Te=Te<0?0:Te>1?1:Te,Ve=Te<=.5?Te*(1+se):Te+se-Te*se,qe=2*Te-Ve;function Ye(ot){return ot>360?ot-=360:ot<0&&(ot+=360),ot<60?qe+(Ve-qe)*ot/60:ot<180?Ve:ot<240?qe+(Ve-qe)*(240-ot)/60:qe}function Pt(ot){return Math.round(Ye(ot)*255)}return new Wa(Pt(X+120),Pt(X),Pt(X-120))}e.hcl=ir;function ir(X,se,Te){return this instanceof ir?(this.h=+X,this.c=+se,void(this.l=+Te)):arguments.length<2?X instanceof ir?new ir(X.h,X.c,X.l):X instanceof ti?Mn(X.l,X.a,X.b):Mn((X=Gn((X=e.rgb(X)).r,X.g,X.b)).l,X.a,X.b):new ir(X,se,Te)}var wr=ir.prototype=new Jn;wr.brighter=function(X){return new ir(this.h,this.c,Math.min(100,this.l+$r*(arguments.length?X:1)))},wr.darker=function(X){return new ir(this.h,this.c,Math.max(0,this.l-$r*(arguments.length?X:1)))},wr.rgb=function(){return Xr(this.h,this.c,this.l).rgb()};function Xr(X,se,Te){return isNaN(X)&&(X=0),isNaN(se)&&(se=0),new ti(Te,Math.cos(X*=Qt)*se,Math.sin(X)*se)}e.lab=ti;function ti(X,se,Te){return this instanceof ti?(this.l=+X,this.a=+se,void(this.b=+Te)):arguments.length<2?X instanceof ti?new ti(X.l,X.a,X.b):X instanceof ir?Xr(X.h,X.c,X.l):Gn((X=Wa(X)).r,X.g,X.b):new ti(X,se,Te)}var $r=18,Ri=.95047,Zi=1,en=1.08883,fn=ti.prototype=new Jn;fn.brighter=function(X){return new ti(Math.min(100,this.l+$r*(arguments.length?X:1)),this.a,this.b)},fn.darker=function(X){return new ti(Math.max(0,this.l-$r*(arguments.length?X:1)),this.a,this.b)},fn.rgb=function(){return yn(this.l,this.a,this.b)};function yn(X,se,Te){var qe=(X+16)/116,Ve=qe+se/500,Ye=qe-Te/200;return Ve=Ba(Ve)*Ri,qe=Ba(qe)*Zi,Ye=Ba(Ye)*en,new Wa(ma(3.2404542*Ve-1.5371385*qe-.4985314*Ye),ma(-.969266*Ve+1.8760108*qe+.041556*Ye),ma(.0556434*Ve-.2040259*qe+1.0572252*Ye))}function Mn(X,se,Te){return X>0?new ir(Math.atan2(Te,se)*Mr,Math.sqrt(se*se+Te*Te),X):new ir(NaN,NaN,X)}function Ba(X){return X>.206893034?X*X*X:(X-4/29)/7.787037}function ua(X){return X>.008856?Math.pow(X,1/3):7.787037*X+4/29}function ma(X){return Math.round(255*(X<=.00304?12.92*X:1.055*Math.pow(X,1/2.4)-.055))}e.rgb=Wa;function Wa(X,se,Te){return this instanceof Wa?(this.r=~~X,this.g=~~se,void(this.b=~~Te)):arguments.length<2?X instanceof Wa?new Wa(X.r,X.g,X.b):Ha(""+X,Wa,tr):new Wa(X,se,Te)}function Fa(X){return new Wa(X>>16,X>>8&255,X&255)}function Xo(X){return Fa(X)+""}var da=Wa.prototype=new Jn;da.brighter=function(X){X=Math.pow(.7,arguments.length?X:1);var se=this.r,Te=this.g,qe=this.b,Ve=30;return!se&&!Te&&!qe?new Wa(Ve,Ve,Ve):(se&&se>4,qe=qe>>4|qe,Ve=Xt&240,Ve=Ve>>4|Ve,Ye=Xt&15,Ye=Ye<<4|Ye):X.length===7&&(qe=(Xt&16711680)>>16,Ve=(Xt&65280)>>8,Ye=Xt&255)),se(qe,Ve,Ye))}function vo(X,se,Te){var qe=Math.min(X/=255,se/=255,Te/=255),Ve=Math.max(X,se,Te),Ye=Ve-qe,Pt,ot,Xt=(Ve+qe)/2;return Ye?(ot=Xt<.5?Ye/(Ve+qe):Ye/(2-Ve-qe),X==Ve?Pt=(se-Te)/Ye+(se0&&Xt<1?0:Pt),new Gt(Pt,ot,Xt)}function Gn(X,se,Te){X=Ct(X),se=Ct(se),Te=Ct(Te);var qe=ua((.4124564*X+.3575761*se+.1804375*Te)/Ri),Ve=ua((.2126729*X+.7151522*se+.072175*Te)/Zi),Ye=ua((.0193339*X+.119192*se+.9503041*Te)/en);return ti(116*Ve-16,500*(qe-Ve),200*(Ve-Ye))}function Ct(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}function Sr(X){var se=parseFloat(X);return X.charAt(X.length-1)==="%"?Math.round(se*2.55):se}var Jr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Jr.forEach(function(X,se){Jr.set(X,Fa(se))});function hi(X){return typeof X=="function"?X:function(){return X}}e.functor=hi,e.xhr=hn(G);function hn(X){return function(se,Te,qe){return arguments.length===2&&typeof Te=="function"&&(qe=Te,Te=null),Sn(se,Te,X,qe)}}function Sn(X,se,Te,qe){var Ve={},Ye=e.dispatch("beforesend","progress","load","error"),Pt={},ot=new XMLHttpRequest,Xt=null;self.XDomainRequest&&!("withCredentials"in ot)&&/^(http(s)?:)?\/\//.test(X)&&(ot=new XDomainRequest),"onload"in ot?ot.onload=ot.onerror=dr:ot.onreadystatechange=function(){ot.readyState>3&&dr()};function dr(){var pr=ot.status,Ur;if(!pr&&ki(ot)||pr>=200&&pr<300||pr===304){try{Ur=Te.call(Ve,ot)}catch(zr){Ye.error.call(Ve,zr);return}Ye.load.call(Ve,Ur)}else Ye.error.call(Ve,ot)}return ot.onprogress=function(pr){var Ur=e.event;e.event=pr;try{Ye.progress.call(Ve,ot)}finally{e.event=Ur}},Ve.header=function(pr,Ur){return pr=(pr+"").toLowerCase(),arguments.length<2?Pt[pr]:(Ur==null?delete Pt[pr]:Pt[pr]=Ur+"",Ve)},Ve.mimeType=function(pr){return arguments.length?(se=pr==null?null:pr+"",Ve):se},Ve.responseType=function(pr){return arguments.length?(Xt=pr,Ve):Xt},Ve.response=function(pr){return Te=pr,Ve},["get","post"].forEach(function(pr){Ve[pr]=function(){return Ve.send.apply(Ve,[pr].concat(r(arguments)))}}),Ve.send=function(pr,Ur,zr){if(arguments.length===2&&typeof Ur=="function"&&(zr=Ur,Ur=null),ot.open(pr,X,!0),se!=null&&!("accept"in Pt)&&(Pt.accept=se+",*/*"),ot.setRequestHeader)for(var gi in Pt)ot.setRequestHeader(gi,Pt[gi]);return se!=null&&ot.overrideMimeType&&ot.overrideMimeType(se),Xt!=null&&(ot.responseType=Xt),zr!=null&&Ve.on("error",zr).on("load",function(xi){zr(null,xi)}),Ye.beforesend.call(Ve,ot),ot.send(Ur==null?null:Ur),Ve},Ve.abort=function(){return ot.abort(),Ve},e.rebind(Ve,Ye,"on"),qe==null?Ve:Ve.get(En(qe))}function En(X){return X.length===1?function(se,Te){X(se==null?Te:null)}:X}function ki(X){var se=X.responseType;return se&&se!=="text"?X.response:X.responseText}e.dsv=function(X,se){var Te=new RegExp('["'+X+` +"use strict";var Plotly=(()=>{var Ett=Object.create;var qS=Object.defineProperty,ktt=Object.defineProperties,Ctt=Object.getOwnPropertyDescriptor,Ltt=Object.getOwnPropertyDescriptors,Ptt=Object.getOwnPropertyNames,y6=Object.getOwnPropertySymbols,Itt=Object.getPrototypeOf,kq=Object.prototype.hasOwnProperty,_ee=Object.prototype.propertyIsEnumerable;var yee=(e,t,r)=>t in e?qS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_g=(e,t)=>{for(var r in t||(t={}))kq.call(t,r)&&yee(e,r,t[r]);if(y6)for(var r of y6(t))_ee.call(t,r)&&yee(e,r,t[r]);return e},W1=(e,t)=>ktt(e,Ltt(t));var xee=(e,t)=>{var r={};for(var n in e)kq.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&y6)for(var n of y6(e))t.indexOf(n)<0&&_ee.call(e,n)&&(r[n]=e[n]);return r};var gu=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(n){throw r=[n],n}};var ye=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},bee=(e,t)=>{for(var r in t)qS(e,r,{get:t[r],enumerable:!0})},wee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ptt(t))!kq.call(e,i)&&i!==r&&qS(e,i,{get:()=>t[i],enumerable:!(n=Ctt(t,i))||n.enumerable});return e};var Rtt=(e,t,r)=>(r=e!=null?Ett(Itt(e)):{},wee(t||!e||!e.__esModule?qS(r,"default",{value:e,enumerable:!0}):r,e)),gb=e=>wee(qS({},"__esModule",{value:!0}),e);var OS=ye(Tee=>{"use strict";Tee.version="3.7.0"});var See=ye((Aee,_6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof _6!="undefined"&&_6.exports&&(_6.exports=r[t])})("Promise",typeof window!="undefined"?window:Aee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(k,M,T,L){return Object.defineProperty(k,M,{value:T,writable:!0,configurable:L!==!1})}}catch(p){t=function(M,T,L){return M[T]=L,M}}n=(function(){var k,M,T;function L(x,C){this.fn=x,this.self=C,this.next=void 0}return{add:function(C,S){T=new L(C,S),M?M.next=T:k=T,M=T,T=void 0},drain:function(){var C=k;for(k=M=r=void 0;C;)C.fn.call(C.self),C=C.next}}})();function o(p,k){n.add(p,k),r||(r=a(n.drain))}function s(p){var k,M=typeof p;return p!=null&&(M=="object"||M=="function")&&(k=p.then),typeof k=="function"?k:!1}function l(){for(var p=0;p0&&o(l,M))}catch(T){f.call(new d(M),T)}}}function f(p){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=p,k.state=2,k.chain.length>0&&o(l,k))}function h(p,k,M,T){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(X){return t.call(X)},n=self.document;function i(X){return X&&(X.ownerDocument||X.document||X).documentElement}function a(X){return X&&(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(X){r=function(se){for(var Te=se.length,qe=new Array(Te);Te--;)qe[Te]=se[Te];return qe}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(X){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(se,Te){s.call(this,se,Te+"")},o.setAttributeNS=function(se,Te,qe){l.call(this,se,Te,qe+"")},u.setProperty=function(se,Te,qe){c.call(this,se,Te+"",qe)}}e.ascending=f;function f(X,se){return Xse?1:X>=se?0:NaN}e.descending=function(X,se){return seX?1:se>=X?0:NaN},e.min=function(X,se){var Te=-1,qe=X.length,Ve,Ye;if(arguments.length===1){for(;++Te=Ye){Ve=Ye;break}for(;++TeYe&&(Ve=Ye)}else{for(;++Te=Ye){Ve=Ye;break}for(;++TeYe&&(Ve=Ye)}return Ve},e.max=function(X,se){var Te=-1,qe=X.length,Ve,Ye;if(arguments.length===1){for(;++Te=Ye){Ve=Ye;break}for(;++TeVe&&(Ve=Ye)}else{for(;++Te=Ye){Ve=Ye;break}for(;++TeVe&&(Ve=Ye)}return Ve},e.extent=function(X,se){var Te=-1,qe=X.length,Ve,Ye,Pt;if(arguments.length===1){for(;++Te=Ye){Ve=Pt=Ye;break}for(;++TeYe&&(Ve=Ye),Pt=Ye){Ve=Pt=Ye;break}for(;++TeYe&&(Ve=Ye),Pt1)return Pt/(Xt-1)},e.deviation=function(){var X=e.variance.apply(this,arguments);return X&&Math.sqrt(X)};function v(X){return{left:function(se,Te,qe,Ve){for(arguments.length<3&&(qe=0),arguments.length<4&&(Ve=se.length);qe>>1;X(se[Ye],Te)<0?qe=Ye+1:Ve=Ye}return qe},right:function(se,Te,qe,Ve){for(arguments.length<3&&(qe=0),arguments.length<4&&(Ve=se.length);qe>>1;X(se[Ye],Te)>0?Ve=Ye:qe=Ye+1}return qe}}}var m=v(f);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(X){return v(X.length===1?function(se,Te){return f(X(se),Te)}:X)},e.shuffle=function(X,se,Te){(qe=arguments.length)<3&&(Te=X.length,qe<2&&(se=0));for(var qe=Te-se,Ve,Ye;qe;)Ye=Math.random()*qe--|0,Ve=X[qe+se],X[qe+se]=X[Ye+se],X[Ye+se]=Ve;return X},e.permute=function(X,se){for(var Te=se.length,qe=new Array(Te);Te--;)qe[Te]=X[se[Te]];return qe},e.pairs=function(X){for(var se=0,Te=X.length-1,qe,Ve=X[0],Ye=new Array(Te<0?0:Te);se=0;)for(Pt=X[se],Te=Pt.length;--Te>=0;)Ye[--Ve]=Pt[Te];return Ye};var p=Math.abs;e.range=function(X,se,Te){if(arguments.length<3&&(Te=1,arguments.length<2&&(se=X,X=0)),(se-X)/Te===1/0)throw new Error("infinite range");var qe=[],Ve=k(p(Te)),Ye=-1,Pt;if(X*=Ve,se*=Ve,Te*=Ve,Te<0)for(;(Pt=X+Te*++Ye)>se;)qe.push(Pt/Ve);else for(;(Pt=X+Te*++Ye)=se.length)return Ve?Ve.call(X,Xt):qe?Xt.sort(qe):Xt;for(var pr=-1,Ur=Xt.length,zr=se[dr++],gi,xi,Wr,ii=new T,di;++pr=se.length)return ot;var dr=[],pr=Te[Xt++];return ot.forEach(function(Ur,zr){dr.push({key:Ur,values:Pt(zr,Xt)})}),pr?dr.sort(function(Ur,zr){return pr(Ur.key,zr.key)}):dr}return X.map=function(ot,Xt){return Ye(Xt,ot,0)},X.entries=function(ot){return Pt(Ye(e.map,ot,0),0)},X.key=function(ot){return se.push(ot),X},X.sortKeys=function(ot){return Te[se.length-1]=ot,X},X.sortValues=function(ot){return qe=ot,X},X.rollup=function(ot){return Ve=ot,X},X},e.set=function(X){var se=new V;if(X)for(var Te=0,qe=X.length;Te=0&&(qe=X.slice(Te+1),X=X.slice(0,Te)),X)return arguments.length<2?this[X].on(qe):this[X].on(qe,se);if(arguments.length===2){if(se==null)for(X in this)this.hasOwnProperty(X)&&this[X].on(qe,null);return this}};function ae(X){var se=[],Te=new T;function qe(){for(var Ve=se,Ye=-1,Pt=Ve.length,ot;++Ye=0&&(Te=X.slice(0,se))!=="xmlns"&&(X=X.slice(se+1)),He.hasOwnProperty(Te)?{space:He[Te],local:X}:X}},Le.attr=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node();return X=e.ns.qualify(X),X.local?Te.getAttributeNS(X.space,X.local):Te.getAttribute(X)}for(se in X)this.each(lt(se,X[se]));return this}return this.each(lt(X,se))};function lt(X,se){X=e.ns.qualify(X);function Te(){this.removeAttribute(X)}function qe(){this.removeAttributeNS(X.space,X.local)}function Ve(){this.setAttribute(X,se)}function Ye(){this.setAttributeNS(X.space,X.local,se)}function Pt(){var Xt=se.apply(this,arguments);Xt==null?this.removeAttribute(X):this.setAttribute(X,Xt)}function ot(){var Xt=se.apply(this,arguments);Xt==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,Xt)}return se==null?X.local?qe:Te:typeof se=="function"?X.local?ot:Pt:X.local?Ye:Ve}function mt(X){return X.trim().replace(/\s+/g," ")}Le.classed=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node(),qe=(X=at(X)).length,Ve=-1;if(se=Te.classList){for(;++Ve=0;)(Ye=Te[qe])&&(Ve&&Ve!==Ye.nextSibling&&Ve.parentNode.insertBefore(Ye,Ve),Ve=Ye);return this},Le.sort=function(X){X=rt.apply(this,arguments);for(var se=-1,Te=this.length;++se=se&&(se=Ve+1);!(Xt=Pt[se])&&++se0&&(X=X.slice(0,Ve));var Pt=jt.get(X);Pt&&(X=Pt,Ye=mr);function ot(){var pr=this[qe];pr&&(this.removeEventListener(X,pr,pr.$),delete this[qe])}function Xt(){var pr=Ye(se,r(arguments));ot.call(this),this.addEventListener(X,this[qe]=pr,pr.$=Te),pr._=se}function dr(){var pr=new RegExp("^__on([^.]+)"+e.requote(X)+"$"),Ur;for(var zr in this)if(Ur=zr.match(pr)){var gi=this[zr];this.removeEventListener(Ur[1],gi,gi.$),delete this[zr]}}return Ve?se?Xt:ot:se?H:dr}var jt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&jt.forEach(function(X){"on"+X in n&&jt.remove(X)});function or(X,se){return function(Te){var qe=e.event;e.event=Te,se[0]=this.__data__;try{X.apply(this,se)}finally{e.event=qe}}}function mr(X,se){var Te=or(X,se);return function(qe){var Ve=this,Ye=qe.relatedTarget;(!Ye||Ye!==Ve&&!(Ye.compareDocumentPosition(Ve)&8))&&Te.call(Ve,qe)}}var Ar,ei=0;function qr(X){var se=".dragsuppress-"+ ++ei,Te="click"+se,qe=e.select(a(X)).on("touchmove"+se,_e).on("dragstart"+se,_e).on("selectstart"+se,_e);if(Ar==null&&(Ar="onselectstart"in X?!1:j(X.style,"userSelect")),Ar){var Ve=i(X).style,Ye=Ve[Ar];Ve[Ar]="none"}return function(Pt){if(qe.on(se,null),Ar&&(Ve[Ar]=Ye),Pt){var ot=function(){qe.on(Te,null)};qe.on(Te,function(){_e(),ot()},!0),setTimeout(ot,0)}}}e.mouse=function(X){return gt(X,Ee())};var jr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function gt(X,se){se.changedTouches&&(se=se.changedTouches[0]);var Te=X.ownerSVGElement||X;if(Te.createSVGPoint){var qe=Te.createSVGPoint();if(jr<0){var Ve=a(X);if(Ve.scrollX||Ve.scrollY){Te=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ye=Te[0][0].getScreenCTM();jr=!(Ye.f||Ye.e),Te.remove()}}return jr?(qe.x=se.pageX,qe.y=se.pageY):(qe.x=se.clientX,qe.y=se.clientY),qe=qe.matrixTransform(X.getScreenCTM().inverse()),[qe.x,qe.y]}var Pt=X.getBoundingClientRect();return[se.clientX-Pt.left-X.clientLeft,se.clientY-Pt.top-X.clientTop]}e.touch=function(X,se,Te){if(arguments.length<3&&(Te=se,se=Ee().changedTouches),se){for(var qe=0,Ve=se.length,Ye;qe0?1:X<0?-1:0}function Ir(X,se,Te){return(se[0]-X[0])*(Te[1]-X[1])-(se[1]-X[1])*(Te[0]-X[0])}function Yr(X){return X>1?0:X<-1?et:Math.acos(X)}function _i(X){return X>1?Kt:X<-1?-Kt:Math.asin(X)}function Pi(X){return((X=Math.exp(X))-1/X)/2}function ai(X){return((X=Math.exp(X))+1/X)/2}function mi(X){return((X=Math.exp(2*X))-1)/(X+1)}function un(X){return(X=Math.sin(X/2))*X}var Fn=Math.SQRT2,An=2,Hn=4;e.interpolateZoom=function(X,se){var Te=X[0],qe=X[1],Ve=X[2],Ye=se[0],Pt=se[1],ot=se[2],Xt=Ye-Te,dr=Pt-qe,pr=Xt*Xt+dr*dr,Ur,zr;if(pr0&&(Un=Un.transition().duration(Pt)),Un.call(Ti.event)}function Ea(){ii&&ii.domain(Wr.range().map(function(Un){return(Un-X.x)/X.k}).map(Wr.invert)),Li&&Li.domain(di.range().map(function(Un){return(Un-X.y)/X.k}).map(di.invert))}function Ia(Un){ot++||Un({type:"zoomstart"})}function yo(Un){Ea(),Un({type:"zoom",scale:X.k,translate:[X.x,X.y]})}function Da(Un){--ot||(Un({type:"zoomend"}),Te=null)}function go(){var Un=this,ja=xi.of(Un,arguments),Fo=0,Uo=e.select(a(Un)).on(dr,bu).on(pr,dl),$s=Qr(e.mouse(Un)),Ml=qr(Un);fa.call(Un),Ia(ja);function bu(){Fo=1,Bn(e.mouse(Un),$s),yo(ja)}function dl(){Uo.on(dr,null).on(pr,null),Ml(Fo),Da(ja)}}function Is(){var Un=this,ja=xi.of(Un,arguments),Fo={},Uo=0,$s,Ml=".zoom-"+e.event.changedTouches[0].identifier,bu="touchmove"+Ml,dl="touchend"+Ml,Sc=[],Me=e.select(Un),bt=qr(Un);Lr(),Ia(ja),Me.on(Xt,null).on(zr,Lr);function Ot(){var Nr=e.touches(Un);return $s=X.k,Nr.forEach(function(vi){vi.identifier in Fo&&(Fo[vi.identifier]=Qr(vi))}),Nr}function Lr(){var Nr=e.event.target;e.select(Nr).on(bu,Vr).on(dl,Or),Sc.push(Nr);for(var vi=e.event.changedTouches,Ni=0,qi=vi.length;Ni1){var Qi=Si[0],Wi=Si[1],oi=Qi[0]-Wi[0],Tr=Qi[1]-Wi[1];Uo=oi*oi+Tr*Tr}}function Vr(){var Nr=e.touches(Un),vi,Ni,qi,Si;fa.call(Un);for(var Vn=0,Qi=Nr.length;Vn1?1:se,Te=Te<0?0:Te>1?1:Te,Ve=Te<=.5?Te*(1+se):Te+se-Te*se,qe=2*Te-Ve;function Ye(ot){return ot>360?ot-=360:ot<0&&(ot+=360),ot<60?qe+(Ve-qe)*ot/60:ot<180?Ve:ot<240?qe+(Ve-qe)*(240-ot)/60:qe}function Pt(ot){return Math.round(Ye(ot)*255)}return new Wa(Pt(X+120),Pt(X),Pt(X-120))}e.hcl=ir;function ir(X,se,Te){return this instanceof ir?(this.h=+X,this.c=+se,void(this.l=+Te)):arguments.length<2?X instanceof ir?new ir(X.h,X.c,X.l):X instanceof ti?Mn(X.l,X.a,X.b):Mn((X=Gn((X=e.rgb(X)).r,X.g,X.b)).l,X.a,X.b):new ir(X,se,Te)}var wr=ir.prototype=new Yn;wr.brighter=function(X){return new ir(this.h,this.c,Math.min(100,this.l+$r*(arguments.length?X:1)))},wr.darker=function(X){return new ir(this.h,this.c,Math.max(0,this.l-$r*(arguments.length?X:1)))},wr.rgb=function(){return Xr(this.h,this.c,this.l).rgb()};function Xr(X,se,Te){return isNaN(X)&&(X=0),isNaN(se)&&(se=0),new ti(Te,Math.cos(X*=Qt)*se,Math.sin(X)*se)}e.lab=ti;function ti(X,se,Te){return this instanceof ti?(this.l=+X,this.a=+se,void(this.b=+Te)):arguments.length<2?X instanceof ti?new ti(X.l,X.a,X.b):X instanceof ir?Xr(X.h,X.c,X.l):Gn((X=Wa(X)).r,X.g,X.b):new ti(X,se,Te)}var $r=18,Ri=.95047,Hi=1,en=1.08883,fn=ti.prototype=new Yn;fn.brighter=function(X){return new ti(Math.min(100,this.l+$r*(arguments.length?X:1)),this.a,this.b)},fn.darker=function(X){return new ti(Math.max(0,this.l-$r*(arguments.length?X:1)),this.a,this.b)},fn.rgb=function(){return yn(this.l,this.a,this.b)};function yn(X,se,Te){var qe=(X+16)/116,Ve=qe+se/500,Ye=qe-Te/200;return Ve=Ba(Ve)*Ri,qe=Ba(qe)*Hi,Ye=Ba(Ye)*en,new Wa(ma(3.2404542*Ve-1.5371385*qe-.4985314*Ye),ma(-.969266*Ve+1.8760108*qe+.041556*Ye),ma(.0556434*Ve-.2040259*qe+1.0572252*Ye))}function Mn(X,se,Te){return X>0?new ir(Math.atan2(Te,se)*Mr,Math.sqrt(se*se+Te*Te),X):new ir(NaN,NaN,X)}function Ba(X){return X>.206893034?X*X*X:(X-4/29)/7.787037}function ua(X){return X>.008856?Math.pow(X,1/3):7.787037*X+4/29}function ma(X){return Math.round(255*(X<=.00304?12.92*X:1.055*Math.pow(X,1/2.4)-.055))}e.rgb=Wa;function Wa(X,se,Te){return this instanceof Wa?(this.r=~~X,this.g=~~se,void(this.b=~~Te)):arguments.length<2?X instanceof Wa?new Wa(X.r,X.g,X.b):Ha(""+X,Wa,tr):new Wa(X,se,Te)}function za(X){return new Wa(X>>16,X>>8&255,X&255)}function Xo(X){return za(X)+""}var da=Wa.prototype=new Yn;da.brighter=function(X){X=Math.pow(.7,arguments.length?X:1);var se=this.r,Te=this.g,qe=this.b,Ve=30;return!se&&!Te&&!qe?new Wa(Ve,Ve,Ve):(se&&se>4,qe=qe>>4|qe,Ve=Xt&240,Ve=Ve>>4|Ve,Ye=Xt&15,Ye=Ye<<4|Ye):X.length===7&&(qe=(Xt&16711680)>>16,Ve=(Xt&65280)>>8,Ye=Xt&255)),se(qe,Ve,Ye))}function vo(X,se,Te){var qe=Math.min(X/=255,se/=255,Te/=255),Ve=Math.max(X,se,Te),Ye=Ve-qe,Pt,ot,Xt=(Ve+qe)/2;return Ye?(ot=Xt<.5?Ye/(Ve+qe):Ye/(2-Ve-qe),X==Ve?Pt=(se-Te)/Ye+(se0&&Xt<1?0:Pt),new Gt(Pt,ot,Xt)}function Gn(X,se,Te){X=Ct(X),se=Ct(se),Te=Ct(Te);var qe=ua((.4124564*X+.3575761*se+.1804375*Te)/Ri),Ve=ua((.2126729*X+.7151522*se+.072175*Te)/Hi),Ye=ua((.0193339*X+.119192*se+.9503041*Te)/en);return ti(116*Ve-16,500*(qe-Ve),200*(Ve-Ye))}function Ct(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}function Sr(X){var se=parseFloat(X);return X.charAt(X.length-1)==="%"?Math.round(se*2.55):se}var Jr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Jr.forEach(function(X,se){Jr.set(X,za(se))});function hi(X){return typeof X=="function"?X:function(){return X}}e.functor=hi,e.xhr=hn(G);function hn(X){return function(se,Te,qe){return arguments.length===2&&typeof Te=="function"&&(qe=Te,Te=null),Sn(se,Te,X,qe)}}function Sn(X,se,Te,qe){var Ve={},Ye=e.dispatch("beforesend","progress","load","error"),Pt={},ot=new XMLHttpRequest,Xt=null;self.XDomainRequest&&!("withCredentials"in ot)&&/^(http(s)?:)?\/\//.test(X)&&(ot=new XDomainRequest),"onload"in ot?ot.onload=ot.onerror=dr:ot.onreadystatechange=function(){ot.readyState>3&&dr()};function dr(){var pr=ot.status,Ur;if(!pr&&ki(ot)||pr>=200&&pr<300||pr===304){try{Ur=Te.call(Ve,ot)}catch(zr){Ye.error.call(Ve,zr);return}Ye.load.call(Ve,Ur)}else Ye.error.call(Ve,ot)}return ot.onprogress=function(pr){var Ur=e.event;e.event=pr;try{Ye.progress.call(Ve,ot)}finally{e.event=Ur}},Ve.header=function(pr,Ur){return pr=(pr+"").toLowerCase(),arguments.length<2?Pt[pr]:(Ur==null?delete Pt[pr]:Pt[pr]=Ur+"",Ve)},Ve.mimeType=function(pr){return arguments.length?(se=pr==null?null:pr+"",Ve):se},Ve.responseType=function(pr){return arguments.length?(Xt=pr,Ve):Xt},Ve.response=function(pr){return Te=pr,Ve},["get","post"].forEach(function(pr){Ve[pr]=function(){return Ve.send.apply(Ve,[pr].concat(r(arguments)))}}),Ve.send=function(pr,Ur,zr){if(arguments.length===2&&typeof Ur=="function"&&(zr=Ur,Ur=null),ot.open(pr,X,!0),se!=null&&!("accept"in Pt)&&(Pt.accept=se+",*/*"),ot.setRequestHeader)for(var gi in Pt)ot.setRequestHeader(gi,Pt[gi]);return se!=null&&ot.overrideMimeType&&ot.overrideMimeType(se),Xt!=null&&(ot.responseType=Xt),zr!=null&&Ve.on("error",zr).on("load",function(xi){zr(null,xi)}),Ye.beforesend.call(Ve,ot),ot.send(Ur==null?null:Ur),Ve},Ve.abort=function(){return ot.abort(),Ve},e.rebind(Ve,Ye,"on"),qe==null?Ve:Ve.get(En(qe))}function En(X){return X.length===1?function(se,Te){X(se==null?Te:null)}:X}function ki(X){var se=X.responseType;return se&&se!=="text"?X.response:X.responseText}e.dsv=function(X,se){var Te=new RegExp('["'+X+` ]`),qe=X.charCodeAt(0);function Ve(dr,pr,Ur){arguments.length<3&&(Ur=pr,pr=null);var zr=Sn(dr,se,pr==null?Ye:Pt(pr),Ur);return zr.row=function(gi){return arguments.length?zr.response((pr=gi)==null?Ye:Pt(gi)):pr},zr}function Ye(dr){return Ve.parse(dr.responseText)}function Pt(dr){return function(pr){return Ve.parse(pr.responseText,dr)}}Ve.parse=function(dr,pr){var Ur;return Ve.parseRows(dr,function(zr,gi){if(Ur)return Ur(zr,gi-1);var xi=function(Wr){for(var ii={},di=zr.length,Li=0;Li=xi)return zr;if(Li)return Li=!1,Ur;var Pn=Wr;if(dr.charCodeAt(Pn)===34){for(var kn=Pn;kn++24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),ea=0):(ea=1,_o(po))}e.timer.flush=function(){Lo(),ko()};function Lo(){for(var X=Date.now(),se=_n;se;)X>=se.t&&se.c(X-se.t)&&(se.c=null),se=se.n;return X}function ko(){for(var X,se=_n,Te=1/0;se;)se.c?(se.t=0;--ot)Wr.push(Ve[dr[Ur[ot]][2]]);for(ot=+gi;ot1&&Ir(X[Te[qe-2]],X[Te[qe-1]],X[Ve])<=0;)--qe;Te[qe++]=Ve}return Te.slice(0,qe)}function ul(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return re(X,zl),X};var zl=e.geom.polygon.prototype=[];zl.area=function(){for(var X=-1,se=this.length,Te,qe=this[se-1],Ve=0;++XJe)ot=ot.L;else if(Pt=se-xo(ot,Te),Pt>Je){if(!ot.R){qe=ot;break}ot=ot.R}else{Ye>-Je?(qe=ot.P,Ve=ot):Pt>-Je?(qe=ot,Ve=ot.N):qe=Ve=ot;break}var Xt=bs(X);if(zs.insert(qe,Xt),!(!qe&&!Ve)){if(qe===Ve){qo(qe),Ve=bs(qe.site),zs.insert(Xt,Ve),Xt.edge=Ve.edge=nf(qe.site,Xt.site),oa(qe),oa(Ve);return}if(!Ve){Xt.edge=nf(qe.site,Xt.site);return}qo(qe),qo(Ve);var dr=qe.site,pr=dr.x,Ur=dr.y,zr=X.x-pr,gi=X.y-Ur,xi=Ve.site,Wr=xi.x-pr,ii=xi.y-Ur,di=2*(zr*ii-gi*Wr),Li=zr*zr+gi*gi,Ti=Wr*Wr+ii*ii,Qr={x:(ii*Li-gi*Ti)/di+pr,y:(zr*Ti-Wr*Li)/di+Ur};pl(Ve.edge,dr,xi,Qr),Xt.edge=nf(dr,X,null,Qr),Ve.edge=nf(X,xi,null,Qr),oa(qe),oa(Ve)}}function ql(X,se){var Te=X.site,qe=Te.x,Ve=Te.y,Ye=Ve-se;if(!Ye)return qe;var Pt=X.P;if(!Pt)return-1/0;Te=Pt.site;var ot=Te.x,Xt=Te.y,dr=Xt-se;if(!dr)return ot;var pr=ot-qe,Ur=1/Ye-1/dr,zr=pr/dr;return Ur?(-zr+Math.sqrt(zr*zr-2*Ur*(pr*pr/(-2*dr)-Xt+dr/2+Ve-Ye/2)))/Ur+qe:(qe+ot)/2}function xo(X,se){var Te=X.N;if(Te)return ql(Te,se);var qe=X.site;return qe.y===se?qe.x:1/0}function Kl(X){this.site=X,this.edges=[]}Kl.prototype.prepare=function(){for(var X=this.edges,se=X.length,Te;se--;)Te=X[se].edge,(!Te.b||!Te.a)&&X.splice(se,1);return X.sort(Hl),X.length};function Ns(X){for(var se=X[0][0],Te=X[1][0],qe=X[0][1],Ve=X[1][1],Ye,Pt,ot,Xt,dr=Ks,pr=dr.length,Ur,zr,gi,xi,Wr,ii;pr--;)if(Ur=dr[pr],!(!Ur||!Ur.prepare()))for(gi=Ur.edges,xi=gi.length,zr=0;zrJe||p(Xt-Pt)>Je)&&(gi.splice(zr,0,new Zc(Vf(Ur.site,ii,p(ot-se)Je?{x:se,y:p(Ye-se)Je?{x:p(Pt-Ve)Je?{x:Te,y:p(Ye-Te)Je?{x:p(Pt-qe)=-We)){var zr=Xt*Xt+dr*dr,gi=pr*pr+ii*ii,xi=(ii*zr-dr*gi)/Ur,Wr=(Xt*gi-pr*zr)/Ur,ii=Wr+ot,di=Su.pop()||new ac;di.arc=X,di.site=Ve,di.x=xi+Pt,di.y=ii+Math.sqrt(xi*xi+Wr*Wr),di.cy=ii,X.circle=di;for(var Li=null,Ti=Yl._;Ti;)if(di.y0)){if(Wr/=gi,gi<0){if(Wr0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}if(Wr=Te-ot,!(!gi&&Wr<0)){if(Wr/=gi,gi<0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}else if(gi>0){if(Wr0)){if(Wr/=xi,xi<0){if(Wr0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}if(Wr=qe-Xt,!(!xi&&Wr<0)){if(Wr/=xi,xi<0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}else if(xi>0){if(Wr0&&(Ve.a={x:ot+Ur*gi,y:Xt+Ur*xi}),zr<1&&(Ve.b={x:ot+zr*gi,y:Xt+zr*xi}),Ve}}}}}}function Ol(X){for(var se=cl,Te=Oo(X[0][0],X[0][1],X[1][0],X[1][1]),qe=se.length,Ve;qe--;)Ve=se[qe],(!Pc(Ve,X)||!Te(Ve)||p(Ve.a.x-Ve.b.x)=Ye)return;if(pr>zr){if(!qe)qe={x:xi,y:Pt};else if(qe.y>=ot)return;Te={x:xi,y:ot}}else{if(!qe)qe={x:xi,y:ot};else if(qe.y1)if(pr>zr){if(!qe)qe={x:(Pt-di)/ii,y:Pt};else if(qe.y>=ot)return;Te={x:(ot-di)/ii,y:ot}}else{if(!qe)qe={x:(ot-di)/ii,y:ot};else if(qe.y=Ye)return;Te={x:Ye,y:ii*Ye+di}}else{if(!qe)qe={x:Ye,y:ii*Ye+di};else if(qe.x=pr&&di.x<=zr&&di.y>=Ur&&di.y<=gi?[[pr,gi],[zr,gi],[zr,Ur],[pr,Ur]]:[];Li.point=Xt[Wr]}),dr}function ot(Xt){return Xt.map(function(dr,pr){return{x:Math.round(qe(dr,pr)/Je)*Je,y:Math.round(Ve(dr,pr)/Je)*Je,i:pr}})}return Pt.links=function(Xt){return sc(ot(Xt)).edges.filter(function(dr){return dr.l&&dr.r}).map(function(dr){return{source:Xt[dr.l.i],target:Xt[dr.r.i]}})},Pt.triangles=function(Xt){var dr=[];return sc(ot(Xt)).cells.forEach(function(pr,Ur){for(var zr=pr.site,gi=pr.edges.sort(Hl),xi=-1,Wr=gi.length,ii,di,Li=gi[Wr-1].edge,Ti=Li.l===zr?Li.r:Li.l;++xiTi&&(Ti=pr.x),pr.y>Qr&&(Qr=pr.y),gi.push(pr.x),xi.push(pr.y);else for(Wr=0;WrTi&&(Ti=Pn),kn>Qr&&(Qr=kn),gi.push(Pn),xi.push(kn)}var Bn=Ti-di,na=Qr-Li;Bn>na?Qr=Li+Bn:Ti=di+na;function Ea(Da,go,Is,Ms,Xs,Un,ja,Fo){if(!(isNaN(Is)||isNaN(Ms)))if(Da.leaf){var Uo=Da.x,$s=Da.y;if(Uo!=null)if(p(Uo-Is)+p($s-Ms)<.01)Ia(Da,go,Is,Ms,Xs,Un,ja,Fo);else{var Sl=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Sl,Uo,$s,Xs,Un,ja,Fo),Ia(Da,go,Is,Ms,Xs,Un,ja,Fo)}else Da.x=Is,Da.y=Ms,Da.point=go}else Ia(Da,go,Is,Ms,Xs,Un,ja,Fo)}function Ia(Da,go,Is,Ms,Xs,Un,ja,Fo){var Uo=(Xs+ja)*.5,$s=(Un+Fo)*.5,Sl=Is>=Uo,bu=Ms>=$s,dl=bu<<1|Sl;Da.leaf=!1,Da=Da.nodes[dl]||(Da.nodes[dl]=$l()),Sl?Xs=Uo:ja=Uo,bu?Un=$s:Fo=$s,Ea(Da,go,Is,Ms,Xs,Un,ja,Fo)}var yo=$l();if(yo.add=function(Da){Ea(yo,Da,+Ur(Da,++Wr),+zr(Da,Wr),di,Li,Ti,Qr)},yo.visit=function(Da){fl(Da,yo,di,Li,Ti,Qr)},yo.find=function(Da){return lc(yo,Da[0],Da[1],di,Li,Ti,Qr)},Wr=-1,se==null){for(;++WrYe||zr>Pt||gi=Pn,na=Te>=kn,Ea=na<<1|Bn,Ia=Ea+4;EaTe&&(Ye=se.slice(Te,Ye),ot[Pt]?ot[Pt]+=Ye:ot[++Pt]=Ye),(qe=qe[0])===(Ve=Ve[0])?ot[Pt]?ot[Pt]+=Ve:ot[++Pt]=Ve:(ot[++Pt]=null,Xt.push({i:Pt,x:Hs(qe,Ve)})),Te=uc.lastIndex;return Te=0&&!(qe=e.interpolators[Te](X,se)););return qe}e.interpolators=[function(X,se){var Te=typeof se;return(Te==="string"?Jr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Fu:Go:se instanceof Jn?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Es:Hs)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],qe=[],Ve=X.length,Ye=se.length,Pt=Math.min(X.length,se.length),ot;for(ot=0;ot=0?X.slice(0,se):X,qe=se>=0?X.slice(se+1):"in";return Te=od.get(Te)||Os,qe=Po.get(qe)||G,sd(qe(Te.apply(null,t.call(arguments,1))))};function sd(X){return function(se){return se<=0?0:se>=1?1:X(se)}}function Ko(X){return function(se){return 1-X(1-se)}}function Pa(X){return function(se){return .5*(se<.5?X(2*se):2-X(2-2*se))}}function of(X){return X*X}function Hu(X){return X*X*X}function bl(X){if(X<=0)return 0;if(X>=1)return 1;var se=X*X,Te=se*X;return 4*(X<.5?Te:3*(X-se)+Te-.75)}function Hf(X){return function(se){return Math.pow(se,X)}}function Ic(X){return 1-Math.cos(X*Kt)}function yf(X){return Math.pow(2,10*(X-1))}function Bl(X){return 1-Math.sqrt(1-X*X)}function Ah(X,se){var Te;return arguments.length<2&&(se=.45),arguments.length?Te=se/xt*Math.asin(1/X):(X=1,Te=se/4),function(qe){return 1+X*Math.pow(2,-10*qe)*Math.sin((qe-Te)*xt/se)}}function Qf(X){return X||(X=1.70158),function(se){return se*se*((X+1)*se-X)}}function _f(X){return X<1/2.75?7.5625*X*X:X<2/2.75?7.5625*(X-=1.5/2.75)*X+.75:X<2.5/2.75?7.5625*(X-=2.25/2.75)*X+.9375:7.5625*(X-=2.625/2.75)*X+.984375}e.interpolateHcl=Yc;function Yc(X,se){X=e.hcl(X),se=e.hcl(se);var Te=X.h,qe=X.c,Ve=X.l,Ye=se.h-Te,Pt=se.c-qe,ot=se.l-Ve;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?se.c:qe),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(Xt){return Xr(Te+Ye*Xt,qe+Pt*Xt,Ve+ot*Xt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,qe=X.s,Ve=X.l,Ye=se.h-Te,Pt=se.s-qe,ot=se.l-Ve;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?se.s:qe),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(Xt){return tr(Te+Ye*Xt,qe+Pt*Xt,Ve+ot*Xt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,qe=X.a,Ve=X.b,Ye=se.l-Te,Pt=se.a-qe,ot=se.b-Ve;return function(Xt){return yn(Te+Ye*Xt,qe+Pt*Xt,Ve+ot*Xt)+""}}e.interpolateRound=ju;function ju(X,se){return se-=X,function(Te){return Math.round(X+se*Te)}}e.transform=function(X){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Te){if(Te!=null){se.setAttribute("transform",Te);var qe=se.transform.baseVal.consolidate()}return new jf(qe?qe.matrix:Kc)})(X)};function jf(X){var se=[X.a,X.b],Te=[X.c,X.d],qe=sf(se),Ve=cc(se,Te),Ye=sf(Nl(Te,se,-Ve))||0;se[0]*Te[1]180?se+=360:se-X>180&&(X+=360),qe.push({i:Te.push(Rc(Te)+"rotate(",null,")")-2,x:Hs(X,se)})):se&&Te.push(Rc(Te)+"rotate("+se+")")}function Wh(X,se,Te,qe){X!==se?qe.push({i:Te.push(Rc(Te)+"skewX(",null,")")-2,x:Hs(X,se)}):se&&Te.push(Rc(Te)+"skewX("+se+")")}function rh(X,se,Te,qe){if(X[0]!==se[0]||X[1]!==se[1]){var Ve=Te.push(Rc(Te)+"scale(",null,",",null,")");qe.push({i:Ve-4,x:Hs(X[0],se[0])},{i:Ve-2,x:Hs(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function lf(X,se){var Te=[],qe=[];return X=e.transform(X),se=e.transform(se),gs(X.translate,se.translate,Te,qe),Wf(X.rotate,se.rotate,Te,qe),Wh(X.skew,se.skew,Te,qe),rh(X.scale,se.scale,Te,qe),X=se=null,function(Ve){for(var Ye=-1,Pt=qe.length,ot;++Ye0?Ye=Qr:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ye=0})):Qr>0&&(se.start({type:"start",alpha:Ye=Qr}),Te=No(X.tick)),X):Ye},X.start=function(){var Qr,Pn=gi.length,kn=xi.length,Bn=qe[0],na=qe[1],Ea,Ia;for(Qr=0;Qr=0;)Ye.push(pr=dr[Xt]),pr.parent=ot,pr.depth=ot.depth+1;Te&&(ot.value=0),ot.children=dr}else Te&&(ot.value=+Te.call(qe,ot,ot.depth)||0),delete ot.children;return wc(Ve,function(Ur){var zr,gi;X&&(zr=Ur.children)&&zr.sort(X),Te&&(gi=Ur.parent)&&(gi.value+=Ur.value)}),Pt}return qe.sort=function(Ve){return arguments.length?(X=Ve,qe):X},qe.children=function(Ve){return arguments.length?(se=Ve,qe):se},qe.value=function(Ve){return arguments.length?(Te=Ve,qe):Te},qe.revalue=function(Ve){return Te&&(Fc(Ve,function(Ye){Ye.children&&(Ye.value=0)}),wc(Ve,function(Ye){var Pt;Ye.children||(Ye.value=+Te.call(qe,Ye,Ye.depth)||0),(Pt=Ye.parent)&&(Pt.value+=Ye.value)})),Ve},qe};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=qu,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(Ve=X.children)&&(qe=Ve.length))for(var qe,Ve;--qe>=0;)Te.push(Ve[qe])}function wc(X,se){for(var Te=[X],qe=[];(X=Te.pop())!=null;)if(qe.push(X),(Pt=X.children)&&(Ye=Pt.length))for(var Ve=-1,Ye,Pt;++VeVe&&(Ve=ot),qe.push(ot)}for(Pt=0;Ptqe&&(Te=se,qe=Ve);return Te}function Us(X){return X.reduce(wf,0)}function wf(X,se){return X+se[1]}e.layout.histogram=function(){var X=!0,se=Number,Te=Rf,qe=zc;function Ve(Ye,zr){for(var ot=[],Xt=Ye.map(se,this),dr=Te.call(this,Xt,zr),pr=qe.call(this,dr,Xt,zr),Ur,zr=-1,gi=Xt.length,xi=pr.length-1,Wr=X?1:1/gi,ii;++zr0)for(zr=-1;++zr=dr[0]&&ii<=dr[1]&&(Ur=ot[e.bisect(pr,ii,1,xi)-1],Ur.y+=Wr,Ur.push(Ye[zr]));return ot}return Ve.value=function(Ye){return arguments.length?(se=Ye,Ve):se},Ve.range=function(Ye){return arguments.length?(Te=hi(Ye),Ve):Te},Ve.bins=function(Ye){return arguments.length?(qe=typeof Ye=="number"?function(Pt){return Wu(Pt,Ye)}:hi(Ye),Ve):qe},Ve.frequency=function(Ye){return arguments.length?(X=!!Ye,Ve):X},Ve};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,qe=+X[0],Ve=(X[1]-qe)/se,Ye=[];++Te<=se;)Ye[Te]=Ve*Te+qe;return Ye}function Rf(X){return[e.min(X),e.max(X)]}e.layout.pack=function(){var X=e.layout.hierarchy().sort(Xu),se=0,Te=[1,1],qe;function Ve(Ye,Pt){var ot=X.call(this,Ye,Pt),Xt=ot[0],dr=Te[0],pr=Te[1],Ur=qe==null?Math.sqrt:typeof qe=="function"?qe:function(){return qe};if(Xt.x=Xt.y=0,wc(Xt,function(gi){gi.r=+Ur(gi.value)}),wc(Xt,ah),se){var zr=se*(qe?1:Math.max(2*Xt.r/dr,2*Xt.r/pr))/2;wc(Xt,function(gi){gi.r+=zr}),wc(Xt,ah),wc(Xt,function(gi){gi.r-=zr})}return Tc(Xt,dr/2,pr/2,qe?1:1/Math.max(2*Xt.r/dr,2*Xt.r/pr)),ot}return Ve.size=function(Ye){return arguments.length?(Te=Ye,Ve):Te},Ve.radius=function(Ye){return arguments.length?(qe=Ye==null||typeof Ye=="function"?Ye:+Ye,Ve):qe},Ve.padding=function(Ye){return arguments.length?(se=+Ye,Ve):se},zu(Ve,X)};function Xu(X,se){return X.value-se.value}function cf(X,se){var Te=X._pack_next;X._pack_next=se,se._pack_prev=X,se._pack_next=Te,Te._pack_prev=se}function Zf(X,se){X._pack_next=se,se._pack_prev=X}function Wl(X,se){var Te=se.x-X.x,qe=se.y-X.y,Ve=X.r+se.r;return .999*Ve*Ve>Te*Te+qe*qe}function ah(X){if(!(se=X.children)||!(zr=se.length))return;var se,Te=1/0,qe=-1/0,Ve=1/0,Ye=-1/0,Pt,ot,Xt,dr,pr,Ur,zr;function gi(Qr){Te=Math.min(Qr.x-Qr.r,Te),qe=Math.max(Qr.x+Qr.r,qe),Ve=Math.min(Qr.y-Qr.r,Ve),Ye=Math.max(Qr.y+Qr.r,Ye)}if(se.forEach(Zu),Pt=se[0],Pt.x=-Pt.r,Pt.y=0,gi(Pt),zr>1&&(ot=se[1],ot.x=ot.r,ot.y=0,gi(ot),zr>2))for(Xt=se[2],wl(Pt,ot,Xt),gi(Xt),cf(Pt,Xt),Pt._pack_prev=Xt,cf(Xt,ot),ot=Pt._pack_next,dr=3;drii.x&&(ii=Pn),Pn.depth>di.depth&&(di=Pn)});var Li=se(Wr,ii)/2-Wr.x,Ti=Te[0]/(ii.x+se(ii,Wr)/2+Li),Qr=Te[1]/(di.depth||1);Fc(gi,function(Pn){Pn.x=(Pn.x+Li)*Ti,Pn.y=Pn.depth*Qr})}return zr}function Ye(pr){for(var Ur={A:null,children:[pr]},zr=[Ur],gi;(gi=zr.pop())!=null;)for(var xi=gi.children,Wr,ii=0,di=xi.length;ii0&&(fc(kt(Wr,pr,zr),pr,Pn),di+=Pn,Li+=Pn),Ti+=Wr.m,di+=gi.m,Qr+=ii.m,Li+=xi.m;Wr&&!ff(xi)&&(xi.t=Wr,xi.m+=Ti-Li),gi&&!Oc(ii)&&(ii.t=gi,ii.m+=di-Qr,zr=pr)}return zr}function dr(pr){pr.x*=Te[0],pr.y=pr.depth*Te[1]}return Ve.separation=function(pr){return arguments.length?(se=pr,Ve):se},Ve.size=function(pr){return arguments.length?(qe=(Te=pr)==null?dr:null,Ve):qe?null:Te},Ve.nodeSize=function(pr){return arguments.length?(qe=(Te=pr)==null?null:dr,Ve):qe?Te:null},zu(Ve,X)};function vu(X,se){return X.parent==se.parent?1:2}function Oc(X){var se=X.children;return se.length?se[0]:X.t}function ff(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var qe=Te/(se.i-X.i);se.c-=qe,se.s+=Te,X.c+=qe,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,qe=X.children,Ve=qe.length,Ye;--Ve>=0;)Ye=qe[Ve],Ye.z+=se,Ye.m+=se,se+=Ye.s+(Te+=Ye.c)}function kt(X,se,Te){return X.a.parent===se.parent?X.a:Te}e.layout.cluster=function(){var X=e.layout.hierarchy().sort(null).value(null),se=vu,Te=[1,1],qe=!1;function Ve(Ye,Pt){var ot=X.call(this,Ye,Pt),Xt=ot[0],dr,pr=0;wc(Xt,function(Wr){var ii=Wr.children;ii&&ii.length?(Wr.x=Er(ii),Wr.y=Zt(ii)):(Wr.x=dr?pr+=se(Wr,dr):0,Wr.y=0,dr=Wr)});var Ur=xr(Xt),zr=Kr(Xt),gi=Ur.x-se(Ur,zr)/2,xi=zr.x+se(zr,Ur)/2;return wc(Xt,qe?function(Wr){Wr.x=(Wr.x-Xt.x)*Te[0],Wr.y=(Xt.y-Wr.y)*Te[1]}:function(Wr){Wr.x=(Wr.x-gi)/(xi-gi)*Te[0],Wr.y=(1-(Xt.y?Wr.y/Xt.y:1))*Te[1]}),ot}return Ve.separation=function(Ye){return arguments.length?(se=Ye,Ve):se},Ve.size=function(Ye){return arguments.length?(qe=(Te=Ye)==null,Ve):qe?null:Te},Ve.nodeSize=function(Ye){return arguments.length?(qe=(Te=Ye)!=null,Ve):qe?Te:null},zu(Ve,X)};function Zt(X){return 1+e.max(X,function(se){return se.y})}function Er(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function xr(X){var se=X.children;return se&&se.length?xr(se[0]):X}function Kr(X){var se=X.children,Te;return se&&(Te=se.length)?Kr(se[Te-1]):X}e.layout.treemap=function(){var X=e.layout.hierarchy(),se=Math.round,Te=[1,1],qe=null,Ve=Mi,Ye=!1,Pt,ot="squarify",Xt=.5*(1+Math.sqrt(5));function dr(Wr,ii){for(var di=-1,Li=Wr.length,Ti,Qr;++di0;)Li.push(Qr=Ti[na-1]),Li.area+=Qr.area,ot!=="squarify"||(kn=zr(Li,Bn))<=Pn?(Ti.pop(),Pn=kn):(Li.area-=Li.pop().area,gi(Li,Bn,di,!1),Bn=Math.min(di.dx,di.dy),Li.length=Li.area=0,Pn=1/0);Li.length&&(gi(Li,Bn,di,!0),Li.length=Li.area=0),ii.forEach(pr)}}function Ur(Wr){var ii=Wr.children;if(ii&&ii.length){var di=Ve(Wr),Li=ii.slice(),Ti,Qr=[];for(dr(Li,di.dx*di.dy/Wr.value),Qr.area=0;Ti=Li.pop();)Qr.push(Ti),Qr.area+=Ti.area,Ti.z!=null&&(gi(Qr,Ti.z?di.dx:di.dy,di,!Li.length),Qr.length=Qr.area=0);ii.forEach(Ur)}}function zr(Wr,ii){for(var di=Wr.area,Li,Ti=0,Qr=1/0,Pn=-1,kn=Wr.length;++PnTi&&(Ti=Li));return di*=di,ii*=ii,di?Math.max(ii*Ti*Xt/di,di/(ii*Qr*Xt)):1/0}function gi(Wr,ii,di,Li){var Ti=-1,Qr=Wr.length,Pn=di.x,kn=di.y,Bn=ii?se(Wr.area/ii):0,na;if(ii==di.dx){for((Li||Bn>di.dy)&&(Bn=di.dy);++Tidi.dx)&&(Bn=di.dx);++Ti1);return X+se*qe*Math.sqrt(-2*Math.log(Ye)/Ye)}},logNormal:function(){var X=e.random.normal.apply(e,arguments);return function(){return Math.exp(X())}},bates:function(X){var se=e.random.irwinHall(X);return function(){return se()/X}},irwinHall:function(X){return function(){for(var se=0,Te=0;Te2?Fi:On,dr=qe?Mu:Sh;return Ve=Xt(X,se,dr,Te),Ye=Xt(se,X,dr,xl),ot}function ot(Xt){return Ve(Xt)}return ot.invert=function(Xt){return Ye(Xt)},ot.domain=function(Xt){return arguments.length?(X=Xt.map(Number),Pt()):X},ot.range=function(Xt){return arguments.length?(se=Xt,Pt()):se},ot.rangeRound=function(Xt){return ot.range(Xt).interpolate(ju)},ot.clamp=function(Xt){return arguments.length?(qe=Xt,Pt()):qe},ot.interpolate=function(Xt){return arguments.length?(Te=Xt,Pt()):Te},ot.ticks=function(Xt){return Ua(X,Xt)},ot.tickFormat=function(Xt,dr){return d3_scale_linearTickFormat(X,Xt,dr)},ot.nice=function(Xt){return Ra(X,Xt),Pt()},ot.copy=function(){return ta(X,se,Te,qe)},Pt()}function Ca(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Yi(X,$i(La(X,se)[2])),Yi(X,$i(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=dn(X),qe=Te[1]-Te[0],Ve=Math.pow(10,Math.floor(Math.log(qe/se)/Math.LN10)),Ye=se/qe*Ve;return Ye<=.15?Ve*=10:Ye<=.35?Ve*=5:Ye<=.75&&(Ve*=2),Te[0]=Math.ceil(Te[0]/Ve)*Ve,Te[1]=Math.floor(Te[1]/Ve)*Ve+Ve*.5,Te[2]=Ve,Te}function Ua(X,se){return e.range.apply(e,La(X,se))}var Zn={s:1,g:1,p:1,r:1,e:1};function Dn(X){return-Math.floor(Math.log(X)/Math.LN10+.01)}function Ka(X,se){var Te=Dn(se[2]);return X in Zn?Math.abs(Te-Dn(Math.max(p(se[0]),p(se[1]))))+ +(X!=="e"):Te-(X==="%")*2}e.scale.log=function(){return bo(e.scale.linear().domain([0,1]),10,!0,[1,10])};function bo(X,se,Te,qe){function Ve(ot){return(Te?Math.log(ot<0?0:ot):-Math.log(ot>0?0:-ot))/Math.log(se)}function Ye(ot){return Te?Math.pow(se,ot):-Math.pow(se,-ot)}function Pt(ot){return X(Ve(ot))}return Pt.invert=function(ot){return Ye(X.invert(ot))},Pt.domain=function(ot){return arguments.length?(Te=ot[0]>=0,X.domain((qe=ot.map(Number)).map(Ve)),Pt):qe},Pt.base=function(ot){return arguments.length?(se=+ot,X.domain(qe.map(Ve)),Pt):se},Pt.nice=function(){var ot=Yi(qe.map(Ve),Te?Math:Zo);return X.domain(ot),qe=ot.map(Ye),Pt},Pt.ticks=function(){var ot=dn(qe),Xt=[],dr=ot[0],pr=ot[1],Ur=Math.floor(Ve(dr)),zr=Math.ceil(Ve(pr)),gi=se%1?2:se;if(isFinite(zr-Ur)){if(Te){for(;Ur0;xi--)Xt.push(Ye(Ur)*xi);for(Ur=0;Xt[Ur]pr;zr--);Xt=Xt.slice(Ur,zr)}return Xt},Pt.copy=function(){return bo(X.copy(),se,Te,qe)},Ca(Pt,X)}var Zo={floor:function(X){return-Math.ceil(-X)},ceil:function(X){return-Math.floor(-X)}};e.scale.pow=function(){return Ss(e.scale.linear(),1,[0,1])};function Ss(X,se,Te){var qe=as(se),Ve=as(1/se);function Ye(Pt){return X(qe(Pt))}return Ye.invert=function(Pt){return Ve(X.invert(Pt))},Ye.domain=function(Pt){return arguments.length?(X.domain((Te=Pt.map(Number)).map(qe)),Ye):Te},Ye.ticks=function(Pt){return Ua(Te,Pt)},Ye.tickFormat=function(Pt,ot){return d3_scale_linearTickFormat(Te,Pt,ot)},Ye.nice=function(Pt){return Ye.domain(Ra(Te,Pt))},Ye.exponent=function(Pt){return arguments.length?(qe=as(se=Pt),Ve=as(1/se),X.domain(Te.map(qe)),Ye):se},Ye.copy=function(){return Ss(X.copy(),se,Te)},Ca(Ye,X)}function as(X){return function(se){return se<0?-Math.pow(-se,X):Math.pow(se,X)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return ws([],{t:"range",a:[[]]})};function ws(X,se){var Te,qe,Ve;function Ye(ot){return qe[((Te.get(ot)||(se.t==="range"?Te.set(ot,X.push(ot)):NaN))-1)%qe.length]}function Pt(ot,Xt){return e.range(X.length).map(function(dr){return ot+Xt*dr})}return Ye.domain=function(ot){if(!arguments.length)return X;X=[],Te=new T;for(var Xt=-1,dr=ot.length,pr;++Xt0?Te[Ye-1]:X[0],Yezr?0:1;if(pr=At)return Xt(pr,xi)+(dr?Xt(dr,1-xi):"")+"Z";var Wr,ii,di,Li,Ti=0,Qr=0,Pn,kn,Bn,na,Ea,Ia,yo,Da,go=[];if((Li=(+Pt.apply(this,arguments)||0)/2)&&(di=qe===Cu?Math.sqrt(dr*dr+pr*pr):+qe.apply(this,arguments),xi||(Qr*=-1),pr&&(Qr=_i(di/pr*Math.sin(Li))),dr&&(Ti=_i(di/dr*Math.sin(Li)))),pr){Pn=pr*Math.cos(Ur+Qr),kn=pr*Math.sin(Ur+Qr),Bn=pr*Math.cos(zr-Qr),na=pr*Math.sin(zr-Qr);var Is=Math.abs(zr-Ur-2*Qr)<=et?0:1;if(Qr&&Ac(Pn,kn,Bn,na)===xi^Is){var Ms=(Ur+zr)/2;Pn=pr*Math.cos(Ms),kn=pr*Math.sin(Ms),Bn=na=null}}else Pn=kn=0;if(dr){Ea=dr*Math.cos(zr-Ti),Ia=dr*Math.sin(zr-Ti),yo=dr*Math.cos(Ur+Ti),Da=dr*Math.sin(Ur+Ti);var Xs=Math.abs(Ur-zr+2*Ti)<=et?0:1;if(Ti&&Ac(Ea,Ia,yo,Da)===1-xi^Xs){var Un=(Ur+zr)/2;Ea=dr*Math.cos(Un),Ia=dr*Math.sin(Un),yo=Da=null}}else Ea=Ia=0;if(gi>Je&&(Wr=Math.min(Math.abs(pr-dr)/2,+Te.apply(this,arguments)))>.001){ii=dr0?0:1}function Va(X,se,Te,qe,Ve){var Ye=X[0]-se[0],Pt=X[1]-se[1],ot=(Ve?qe:-qe)/Math.sqrt(Ye*Ye+Pt*Pt),Xt=ot*Pt,dr=-ot*Ye,pr=X[0]+Xt,Ur=X[1]+dr,zr=se[0]+Xt,gi=se[1]+dr,xi=(pr+zr)/2,Wr=(Ur+gi)/2,ii=zr-pr,di=gi-Ur,Li=ii*ii+di*di,Ti=Te-qe,Qr=pr*gi-zr*Ur,Pn=(di<0?-1:1)*Math.sqrt(Math.max(0,Ti*Ti*Li-Qr*Qr)),kn=(Qr*di-ii*Pn)/Li,Bn=(-Qr*ii-di*Pn)/Li,na=(Qr*di+ii*Pn)/Li,Ea=(-Qr*ii+di*Pn)/Li,Ia=kn-xi,yo=Bn-Wr,Da=na-xi,go=Ea-Wr;return Ia*Ia+yo*yo>Da*Da+go*go&&(kn=na,Bn=Ea),[[kn-Xt,Bn-dr],[kn*Te/Ti,Bn*Te/Ti]]}function oo(){return!0}function Vc(X){var se=Ds,Te=Fs,qe=oo,Ve=Ku,Ye=Ve.key,Pt=.7;function ot(Xt){var dr=[],pr=[],Ur=-1,zr=Xt.length,gi,xi=hi(se),Wr=hi(Te);function ii(){dr.push("M",Ve(X(pr),Pt))}for(;++Ur1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,qe=X[0],Ve=[qe[0],",",qe[1]];++se1&&Ve.push("H",qe[0]),Ve.join("")}function B(X){for(var se=0,Te=X.length,qe=X[0],Ve=[qe[0],",",qe[1]];++se1){ot=se[1],Ye=X[Xt],Xt++,qe+="C"+(Ve[0]+Pt[0])+","+(Ve[1]+Pt[1])+","+(Ye[0]-ot[0])+","+(Ye[1]-ot[1])+","+Ye[0]+","+Ye[1];for(var dr=2;dr9&&(Ye=Te*3/Math.sqrt(Ye),Pt[ot]=Ye*qe,Pt[ot+1]=Ye*Ve));for(ot=-1;++ot<=Xt;)Ye=(X[Math.min(Xt,ot+1)][0]-X[Math.max(0,ot-1)][0])/(6*(1+Pt[ot]*Pt[ot])),se.push([Ye||0,Pt[ot]*Ye||0]);return se}function qt(X){return X.length<3?Ku(X):X[0]+Ze(X,nt(X))}e.svg.line.radial=function(){var X=Vc(Wt);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function Wt(X){for(var se,Te=-1,qe=X.length,Ve,Ye;++Teet)+",1 "+Ur}function dr(pr,Ur,zr,gi){return"Q 0,0 "+gi}return Ye.radius=function(pr){return arguments.length?(Te=hi(pr),Ye):Te},Ye.source=function(pr){return arguments.length?(X=hi(pr),Ye):X},Ye.target=function(pr){return arguments.length?(se=hi(pr),Ye):se},Ye.startAngle=function(pr){return arguments.length?(qe=hi(pr),Ye):qe},Ye.endAngle=function(pr){return arguments.length?(Ve=hi(pr),Ye):Ve},Ye};function Fr(X){return X.radius}e.svg.diagonal=function(){var X=fr,se=br,Te=Hr;function qe(Ve,Ye){var Pt=X.call(this,Ve,Ye),ot=se.call(this,Ve,Ye),Xt=(Pt.y+ot.y)/2,dr=[Pt,{x:Pt.x,y:Xt},{x:ot.x,y:Xt},ot];return dr=dr.map(Te),"M"+dr[0]+"C"+dr[1]+" "+dr[2]+" "+dr[3]}return qe.source=function(Ve){return arguments.length?(X=hi(Ve),qe):X},qe.target=function(Ve){return arguments.length?(se=hi(Ve),qe):se},qe.projection=function(Ve){return arguments.length?(Te=Ve,qe):Te},qe};function Hr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=Hr,Te=X.projection;return X.projection=function(qe){return arguments.length?Te(ri(se=qe)):se},X};function ri(X){return function(){var se=X.apply(this,arguments),Te=se[0],qe=se[1]-Kt;return[Te*Math.cos(qe),Te*Math.sin(qe)]}}e.svg.symbol=function(){var X=cn,se=Ci;function Te(qe,Ve){return(Ln.get(X.call(this,qe,Ve))||sn)(se.call(this,qe,Ve))}return Te.type=function(qe){return arguments.length?(X=hi(qe),Te):X},Te.size=function(qe){return arguments.length?(se=hi(qe),Te):se},Te};function Ci(){return 64}function cn(){return"circle"}function sn(X){var se=Math.sqrt(X/et);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Ln=e.map({circle:sn,cross:function(X){var se=Math.sqrt(X/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(X){var se=Math.sqrt(X/(2*Aa)),Te=se*Aa;return"M0,"+-se+"L"+Te+",0 0,"+se+" "+-Te+",0Z"},square:function(X){var se=Math.sqrt(X)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(X){var se=Math.sqrt(X/Yn),Te=se*Yn/2;return"M0,"+Te+"L"+se+","+-Te+" "+-se+","+-Te+"Z"},"triangle-up":function(X){var se=Math.sqrt(X/Yn),Te=se*Yn/2;return"M0,"+-Te+"L"+se+","+Te+" "+-se+","+Te+"Z"}});e.svg.symbolTypes=Ln.keys();var Yn=Math.sqrt(3),Aa=Math.tan(30*Qt);Le.transition=function(X){for(var se=Bo||++mo,Te=To(X),qe=[],Ve,Ye,Pt=Ps||{time:Date.now(),ease:bl,delay:0,duration:250},ot=-1,Xt=this.length;++ot0;)Ur[--Li].call(X,di);if(ii>=1)return Pt.event&&Pt.event.end.call(X,X.__data__,se),--Ye.count?delete Ye[qe]:delete X[Te],1}Pt||(ot=Ve.time,Xt=No(zr,0,ot),Pt=Ye[qe]={tween:new T,time:ot,timer:Xt,delay:Ve.delay,duration:Ve.duration,ease:Ve.ease,index:se},Ve=null,++Ye.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Ul,Te=6,qe=6,Ve=3,Ye=[10],Pt=null,ot;function Xt(dr){dr.each(function(){var pr=e.select(this),Ur=this.__chart__||X,zr=this.__chart__=X.copy(),gi=Pt==null?zr.ticks?zr.ticks.apply(zr,Ye):zr.domain():Pt,xi=ot==null?zr.tickFormat?zr.tickFormat.apply(zr,Ye):G:ot,Wr=pr.selectAll(".tick").data(gi,zr),ii=Wr.enter().insert("g",".domain").attr("class","tick").style("opacity",Je),di=e.transition(Wr.exit()).style("opacity",Je).remove(),Li=e.transition(Wr.order()).style("opacity",1),Ti=Math.max(Te,0)+Ve,Qr,Pn=wn(zr),kn=pr.selectAll(".domain").data([0]),Bn=(kn.enter().append("path").attr("class","domain"),e.transition(kn));ii.append("line"),ii.append("text");var na=ii.select("line"),Ea=Li.select("line"),Ia=Wr.select("text").text(xi),yo=ii.select("text"),Da=Li.select("text"),go=se==="top"||se==="left"?-1:1,Is,Ms,Xs,Un;if(se==="bottom"||se==="top"?(Qr=au,Is="x",Xs="y",Ms="x2",Un="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Bn.attr("d","M"+Pn[0]+","+go*qe+"V0H"+Pn[1]+"V"+go*qe)):(Qr=Js,Is="y",Xs="x",Ms="y2",Un="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Bn.attr("d","M"+go*qe+","+Pn[0]+"H0V"+Pn[1]+"H"+go*qe)),na.attr(Un,go*Te),yo.attr(Xs,go*Ti),Ea.attr(Ms,0).attr(Un,go*Te),Da.attr(Is,0).attr(Xs,go*Ti),zr.rangeBand){var ja=zr,Fo=ja.rangeBand()/2;Ur=zr=function(Uo){return ja(Uo)+Fo}}else Ur.rangeBand?Ur=zr:di.call(Qr,zr,Ur);ii.call(Qr,Ur,zr),Li.call(Qr,zr,zr)})}return Xt.scale=function(dr){return arguments.length?(X=dr,Xt):X},Xt.orient=function(dr){return arguments.length?(se=dr in Lu?dr+"":Ul,Xt):se},Xt.ticks=function(){return arguments.length?(Ye=r(arguments),Xt):Ye},Xt.tickValues=function(dr){return arguments.length?(Pt=dr,Xt):Pt},Xt.tickFormat=function(dr){return arguments.length?(ot=dr,Xt):ot},Xt.tickSize=function(dr){var pr=arguments.length;return pr?(Te=+dr,qe=+arguments[pr-1],Xt):Te},Xt.innerTickSize=function(dr){return arguments.length?(Te=+dr,Xt):Te},Xt.outerTickSize=function(dr){return arguments.length?(qe=+dr,Xt):qe},Xt.tickPadding=function(dr){return arguments.length?(Ve=+dr,Xt):Ve},Xt.tickSubdivide=function(){return arguments.length&&Xt},Xt};var Ul="bottom",Lu={top:1,right:1,bottom:1,left:1};function au(X,se,Te){X.attr("transform",function(qe){var Ve=se(qe);return"translate("+(isFinite(Ve)?Ve:Te(qe))+",0)"})}function Js(X,se,Te){X.attr("transform",function(qe){var Ve=se(qe);return"translate(0,"+(isFinite(Ve)?Ve:Te(qe))+")"})}e.svg.brush=function(){var X=Ce(pr,"brushstart","brush","brushend"),se=null,Te=null,qe=[0,0],Ve=[0,0],Ye,Pt,ot=!0,Xt=!0,dr=dc[0];function pr(Wr){Wr.each(function(){var ii=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",xi).on("touchstart.brush",xi),di=ii.selectAll(".background").data([0]);di.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ii.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Li=ii.selectAll(".resize").data(dr,G);Li.exit().remove(),Li.enter().append("g").attr("class",function(kn){return"resize "+kn}).style("cursor",function(kn){return eu[kn]}).append("rect").attr("x",function(kn){return/[ew]$/.test(kn)?-3:null}).attr("y",function(kn){return/^[ns]/.test(kn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Li.style("display",pr.empty()?"none":null);var Ti=e.transition(ii),Qr=e.transition(di),Pn;se&&(Pn=wn(se),Qr.attr("x",Pn[0]).attr("width",Pn[1]-Pn[0]),zr(Ti)),Te&&(Pn=wn(Te),Qr.attr("y",Pn[0]).attr("height",Pn[1]-Pn[0]),gi(Ti)),Ur(Ti)})}pr.event=function(Wr){Wr.each(function(){var ii=X.of(this,arguments),di={x:qe,y:Ve,i:Ye,j:Pt},Li=this.__chart__||di;this.__chart__=di,Bo?e.select(this).transition().each("start.brush",function(){Ye=Li.i,Pt=Li.j,qe=Li.x,Ve=Li.y,ii({type:"brushstart"})}).tween("brush:brush",function(){var Ti=Gu(qe,di.x),Qr=Gu(Ve,di.y);return Ye=Pt=null,function(Pn){qe=di.x=Ti(Pn),Ve=di.y=Qr(Pn),ii({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ye=di.i,Pt=di.j,ii({type:"brush",mode:"resize"}),ii({type:"brushend"})}):(ii({type:"brushstart"}),ii({type:"brush",mode:"resize"}),ii({type:"brushend"}))})};function Ur(Wr){Wr.selectAll(".resize").attr("transform",function(ii){return"translate("+qe[+/e$/.test(ii)]+","+Ve[+/^s/.test(ii)]+")"})}function zr(Wr){Wr.select(".extent").attr("x",qe[0]),Wr.selectAll(".extent,.n>rect,.s>rect").attr("width",qe[1]-qe[0])}function gi(Wr){Wr.select(".extent").attr("y",Ve[0]),Wr.selectAll(".extent,.e>rect,.w>rect").attr("height",Ve[1]-Ve[0])}function xi(){var Wr=this,ii=e.select(e.event.target),di=X.of(Wr,arguments),Li=e.select(Wr),Ti=ii.datum(),Qr=!/^(n|s)$/.test(Ti)&&se,Pn=!/^(e|w)$/.test(Ti)&&Te,kn=ii.classed("extent"),Bn=qr(Wr),na,Ea=e.mouse(Wr),Ia,yo=e.select(a(Wr)).on("keydown.brush",Is).on("keyup.brush",Ms);if(e.event.changedTouches?yo.on("touchmove.brush",Xs).on("touchend.brush",ja):yo.on("mousemove.brush",Xs).on("mouseup.brush",ja),Li.interrupt().selectAll("*").interrupt(),kn)Ea[0]=qe[0]-Ea[0],Ea[1]=Ve[0]-Ea[1];else if(Ti){var Da=+/w$/.test(Ti),go=+/^n/.test(Ti);Ia=[qe[1-Da]-Ea[0],Ve[1-go]-Ea[1]],Ea[0]=qe[Da],Ea[1]=Ve[go]}else e.event.altKey&&(na=Ea.slice());Li.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ii.style("cursor")),di({type:"brushstart"}),Xs();function Is(){e.event.keyCode==32&&(kn||(na=null,Ea[0]-=qe[1],Ea[1]-=Ve[1],kn=2),_e())}function Ms(){e.event.keyCode==32&&kn==2&&(Ea[0]+=qe[1],Ea[1]+=Ve[1],kn=0,_e())}function Xs(){var Fo=e.mouse(Wr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),kn||(e.event.altKey?(na||(na=[(qe[0]+qe[1])/2,(Ve[0]+Ve[1])/2]),Ea[0]=qe[+(Fo[0]{(function(e,t){typeof x6=="object"&&typeof Tee!="undefined"?t(x6):(e=e||self,t(e.d3=e.d3||{}))})(x6,function(e){"use strict";var t=new Date,r=new Date;function n(Ae,rt,St,Tt){function dt(Et){return Ae(Et=arguments.length===0?new Date:new Date(+Et)),Et}return dt.floor=function(Et){return Ae(Et=new Date(+Et)),Et},dt.ceil=function(Et){return Ae(Et=new Date(Et-1)),rt(Et,1),Ae(Et),Et},dt.round=function(Et){var pt=dt(Et),jt=dt.ceil(Et);return Et-pt0))return or;do or.push(mr=new Date(+Et)),rt(Et,jt),Ae(Et);while(mr=pt)for(;Ae(pt),!Et(pt);)pt.setTime(pt-1)},function(pt,jt){if(pt>=pt)if(jt<0)for(;++jt<=0;)for(;rt(pt,-1),!Et(pt););else for(;--jt>=0;)for(;rt(pt,1),!Et(pt););})},St&&(dt.count=function(Et,pt){return t.setTime(+Et),r.setTime(+pt),Ae(t),Ae(r),Math.floor(St(t,r))},dt.every=function(Et){return Et=Math.floor(Et),!isFinite(Et)||!(Et>0)?null:Et>1?dt.filter(Tt?function(pt){return Tt(pt)%Et===0}:function(pt){return dt.count(0,pt)%Et===0}):dt}),dt}var i=n(function(){},function(Ae,rt){Ae.setTime(+Ae+rt)},function(Ae,rt){return rt-Ae});i.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(rt){rt.setTime(Math.floor(rt/Ae)*Ae)},function(rt,St){rt.setTime(+rt+St*Ae)},function(rt,St){return(St-rt)/Ae}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,rt){Ae.setTime(+Ae+rt*o)},function(Ae,rt){return(rt-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=f.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,rt){Ae.setTime(+Ae+rt*s)},function(Ae,rt){return(rt-Ae)/s},function(Ae){return Ae.getMinutes()}),v=d.range,m=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*s)},function(Ae,rt){Ae.setTime(+Ae+rt*l)},function(Ae,rt){return(rt-Ae)/l},function(Ae){return Ae.getHours()}),b=m.range,p=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,rt){Ae.setDate(Ae.getDate()+rt)},function(Ae,rt){return(rt-Ae-(rt.getTimezoneOffset()-Ae.getTimezoneOffset())*s)/u},function(Ae){return Ae.getDate()-1}),k=p.range;function M(Ae){return n(function(rt){rt.setDate(rt.getDate()-(rt.getDay()+7-Ae)%7),rt.setHours(0,0,0,0)},function(rt,St){rt.setDate(rt.getDate()+St*7)},function(rt,St){return(St-rt-(St.getTimezoneOffset()-rt.getTimezoneOffset())*s)/c})}var T=M(0),L=M(1),x=M(2),C=M(3),S=M(4),g=M(5),P=M(6),E=T.range,z=L.range,q=x.range,V=C.range,G=S.range,Z=g.range,j=P.range,N=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,rt){Ae.setMonth(Ae.getMonth()+rt)},function(Ae,rt){return rt.getMonth()-Ae.getMonth()+(rt.getFullYear()-Ae.getFullYear())*12},function(Ae){return Ae.getMonth()}),H=N.range,ie=n(function(Ae){Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,rt){Ae.setFullYear(Ae.getFullYear()+rt)},function(Ae,rt){return rt.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});ie.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(rt){rt.setFullYear(Math.floor(rt.getFullYear()/Ae)*Ae),rt.setMonth(0,1),rt.setHours(0,0,0,0)},function(rt,St){rt.setFullYear(rt.getFullYear()+St*Ae)})};var ae=ie.range,_e=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,rt){Ae.setTime(+Ae+rt*s)},function(Ae,rt){return(rt-Ae)/s},function(Ae){return Ae.getUTCMinutes()}),Ee=_e.range,Ce=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,rt){Ae.setTime(+Ae+rt*l)},function(Ae,rt){return(rt-Ae)/l},function(Ae){return Ae.getUTCHours()}),ge=Ce.range,re=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,rt){Ae.setUTCDate(Ae.getUTCDate()+rt)},function(Ae,rt){return(rt-Ae)/u},function(Ae){return Ae.getUTCDate()-1}),Se=re.range;function ke(Ae){return n(function(rt){rt.setUTCDate(rt.getUTCDate()-(rt.getUTCDay()+7-Ae)%7),rt.setUTCHours(0,0,0,0)},function(rt,St){rt.setUTCDate(rt.getUTCDate()+St*7)},function(rt,St){return(St-rt)/c})}var be=ke(0),Be=ke(1),Le=ke(2),me=ke(3),Pe=ke(4),ce=ke(5),He=ke(6),lt=be.range,mt=Be.range,Ht=Le.range,at=me.range,ct=Pe.range,ar=ce.range,Vt=He.range,rr=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,rt){Ae.setUTCMonth(Ae.getUTCMonth()+rt)},function(Ae,rt){return rt.getUTCMonth()-Ae.getUTCMonth()+(rt.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),tt=rr.range,je=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,rt){Ae.setUTCFullYear(Ae.getUTCFullYear()+rt)},function(Ae,rt){return rt.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});je.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(rt){rt.setUTCFullYear(Math.floor(rt.getUTCFullYear()/Ae)*Ae),rt.setUTCMonth(0,1),rt.setUTCHours(0,0,0,0)},function(rt,St){rt.setUTCFullYear(rt.getUTCFullYear()+St*Ae)})};var Ue=je.range;e.timeDay=p,e.timeDays=k,e.timeFriday=g,e.timeFridays=Z,e.timeHour=m,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=v,e.timeMonday=L,e.timeMondays=z,e.timeMonth=N,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=j,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=T,e.timeSundays=E,e.timeThursday=S,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=q,e.timeWednesday=C,e.timeWednesdays=V,e.timeWeek=T,e.timeWeeks=E,e.timeYear=ie,e.timeYears=ae,e.utcDay=re,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=ar,e.utcHour=Ce,e.utcHours=ge,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Ee,e.utcMonday=Be,e.utcMondays=mt,e.utcMonth=rr,e.utcMonths=tt,e.utcSaturday=He,e.utcSaturdays=Vt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=lt,e.utcThursday=Pe,e.utcThursdays=ct,e.utcTuesday=Le,e.utcTuesdays=Ht,e.utcWednesday=me,e.utcWednesdays=at,e.utcWeek=be,e.utcWeeks=lt,e.utcYear=je,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var d3=ye((b6,Aee)=>{(function(e,t){typeof b6=="object"&&typeof Aee!="undefined"?t(b6,Eq()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(b6,function(e,t){"use strict";function r(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L);return Je.setFullYear(Ge.y),Je}return new Date(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L)}function n(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(Date.UTC(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L));return Je.setUTCFullYear(Ge.y),Je}return new Date(Date.UTC(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L))}function i(Ge,Je,We){return{y:Ge,m:Je,d:We,H:0,M:0,S:0,L:0}}function a(Ge){var Je=Ge.dateTime,We=Ge.date,et=Ge.time,xt=Ge.periods,At=Ge.days,Kt=Ge.shortDays,Qt=Ge.months,Mr=Ge.shortMonths,Gr=h(xt),Ir=d(xt),Yr=h(At),_i=d(At),Pi=h(Kt),ai=d(Kt),mi=h(Qt),un=d(Qt),Fn=h(Mr),An=d(Mr),Hn={a:Zi,A:en,b:fn,B:yn,c:null,d:N,e:N,f:Ee,H,I:ie,j:ae,L:_e,m:Ce,M:ge,p:Mn,q:Ba,Q:pt,s:jt,S:re,u:Se,U:ke,V:be,w:Be,W:Le,x:null,X:null,y:me,Y:Pe,Z:ce,"%":Et},Qn={a:ua,A:ma,b:Wa,B:Fa,c:null,d:He,e:He,f:ct,H:lt,I:mt,j:Ht,L:at,m:ar,M:Vt,p:Xo,q:da,Q:pt,s:jt,S:rr,u:tt,U:je,V:Ue,w:Ae,W:rt,x:null,X:null,y:St,Y:Tt,Z:dt,"%":Et},Vi={a:tr,A:ir,b:wr,B:Xr,c:ti,d:S,e:S,f:V,H:P,I:P,j:g,L:q,m:C,M:E,p:wt,q:x,Q:Z,s:j,S:z,u:m,U:b,V:p,w:v,W:k,x:$r,X:Ri,y:T,Y:M,Z:L,"%":G};Hn.x=Kn(We,Hn),Hn.X=Kn(et,Hn),Hn.c=Kn(Je,Hn),Qn.x=Kn(We,Qn),Qn.X=Kn(et,Qn),Qn.c=Kn(Je,Qn);function Kn(jn,Ha){return function(vo){var Gn=[],Ct=-1,Sr=0,Jr=jn.length,hi,hn,Sn;for(vo instanceof Date||(vo=new Date(+vo));++Ct53)return null;"w"in Gn||(Gn.w=1),"Z"in Gn?(Sr=n(i(Gn.y,0,1)),Jr=Sr.getUTCDay(),Sr=Jr>4||Jr===0?t.utcMonday.ceil(Sr):t.utcMonday(Sr),Sr=t.utcDay.offset(Sr,(Gn.V-1)*7),Gn.y=Sr.getUTCFullYear(),Gn.m=Sr.getUTCMonth(),Gn.d=Sr.getUTCDate()+(Gn.w+6)%7):(Sr=r(i(Gn.y,0,1)),Jr=Sr.getDay(),Sr=Jr>4||Jr===0?t.timeMonday.ceil(Sr):t.timeMonday(Sr),Sr=t.timeDay.offset(Sr,(Gn.V-1)*7),Gn.y=Sr.getFullYear(),Gn.m=Sr.getMonth(),Gn.d=Sr.getDate()+(Gn.w+6)%7)}else("W"in Gn||"U"in Gn)&&("w"in Gn||(Gn.w="u"in Gn?Gn.u%7:"W"in Gn?1:0),Jr="Z"in Gn?n(i(Gn.y,0,1)).getUTCDay():r(i(Gn.y,0,1)).getDay(),Gn.m=0,Gn.d="W"in Gn?(Gn.w+6)%7+Gn.W*7-(Jr+5)%7:Gn.w+Gn.U*7-(Jr+6)%7);return"Z"in Gn?(Gn.H+=Gn.Z/100|0,Gn.M+=Gn.Z%100,n(Gn)):r(Gn)}}function Gt(jn,Ha,vo,Gn){for(var Ct=0,Sr=Ha.length,Jr=vo.length,hi,hn;Ct=Jr)return-1;if(hi=Ha.charCodeAt(Ct++),hi===37){if(hi=Ha.charAt(Ct++),hn=Vi[hi in o?Ha.charAt(Ct++):hi],!hn||(Gn=hn(jn,vo,Gn))<0)return-1}else if(hi!=vo.charCodeAt(Gn++))return-1}return Gn}function wt(jn,Ha,vo){var Gn=Gr.exec(Ha.slice(vo));return Gn?(jn.p=Ir[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function tr(jn,Ha,vo){var Gn=Pi.exec(Ha.slice(vo));return Gn?(jn.w=ai[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function ir(jn,Ha,vo){var Gn=Yr.exec(Ha.slice(vo));return Gn?(jn.w=_i[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function wr(jn,Ha,vo){var Gn=Fn.exec(Ha.slice(vo));return Gn?(jn.m=An[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function Xr(jn,Ha,vo){var Gn=mi.exec(Ha.slice(vo));return Gn?(jn.m=un[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function ti(jn,Ha,vo){return Gt(jn,Je,Ha,vo)}function $r(jn,Ha,vo){return Gt(jn,We,Ha,vo)}function Ri(jn,Ha,vo){return Gt(jn,et,Ha,vo)}function Zi(jn){return Kt[jn.getDay()]}function en(jn){return At[jn.getDay()]}function fn(jn){return Mr[jn.getMonth()]}function yn(jn){return Qt[jn.getMonth()]}function Mn(jn){return xt[+(jn.getHours()>=12)]}function Ba(jn){return 1+~~(jn.getMonth()/3)}function ua(jn){return Kt[jn.getUTCDay()]}function ma(jn){return At[jn.getUTCDay()]}function Wa(jn){return Mr[jn.getUTCMonth()]}function Fa(jn){return Qt[jn.getUTCMonth()]}function Xo(jn){return xt[+(jn.getUTCHours()>=12)]}function da(jn){return 1+~~(jn.getUTCMonth()/3)}return{format:function(jn){var Ha=Kn(jn+="",Hn);return Ha.toString=function(){return jn},Ha},parse:function(jn){var Ha=Jn(jn+="",!1);return Ha.toString=function(){return jn},Ha},utcFormat:function(jn){var Ha=Kn(jn+="",Qn);return Ha.toString=function(){return jn},Ha},utcParse:function(jn){var Ha=Jn(jn+="",!0);return Ha.toString=function(){return jn},Ha}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Je,We){var et=Ge<0?"-":"",xt=(et?-Ge:Ge)+"",At=xt.length;return et+(At68?1900:2e3),We+et[0].length):-1}function L(Ge,Je,We){var et=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Je.slice(We,We+6));return et?(Ge.Z=et[1]?0:-(et[2]+(et[3]||"00")),We+et[0].length):-1}function x(Ge,Je,We){var et=s.exec(Je.slice(We,We+1));return et?(Ge.q=et[0]*3-3,We+et[0].length):-1}function C(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.m=et[0]-1,We+et[0].length):-1}function S(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.d=+et[0],We+et[0].length):-1}function g(Ge,Je,We){var et=s.exec(Je.slice(We,We+3));return et?(Ge.m=0,Ge.d=+et[0],We+et[0].length):-1}function P(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.H=+et[0],We+et[0].length):-1}function E(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.M=+et[0],We+et[0].length):-1}function z(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.S=+et[0],We+et[0].length):-1}function q(Ge,Je,We){var et=s.exec(Je.slice(We,We+3));return et?(Ge.L=+et[0],We+et[0].length):-1}function V(Ge,Je,We){var et=s.exec(Je.slice(We,We+6));return et?(Ge.L=Math.floor(et[0]/1e3),We+et[0].length):-1}function G(Ge,Je,We){var et=l.exec(Je.slice(We,We+1));return et?We+et[0].length:-1}function Z(Ge,Je,We){var et=s.exec(Je.slice(We));return et?(Ge.Q=+et[0],We+et[0].length):-1}function j(Ge,Je,We){var et=s.exec(Je.slice(We));return et?(Ge.s=+et[0],We+et[0].length):-1}function N(Ge,Je){return c(Ge.getDate(),Je,2)}function H(Ge,Je){return c(Ge.getHours(),Je,2)}function ie(Ge,Je){return c(Ge.getHours()%12||12,Je,2)}function ae(Ge,Je){return c(1+t.timeDay.count(t.timeYear(Ge),Ge),Je,3)}function _e(Ge,Je){return c(Ge.getMilliseconds(),Je,3)}function Ee(Ge,Je){return _e(Ge,Je)+"000"}function Ce(Ge,Je){return c(Ge.getMonth()+1,Je,2)}function ge(Ge,Je){return c(Ge.getMinutes(),Je,2)}function re(Ge,Je){return c(Ge.getSeconds(),Je,2)}function Se(Ge){var Je=Ge.getDay();return Je===0?7:Je}function ke(Ge,Je){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Je,2)}function be(Ge,Je){var We=Ge.getDay();return Ge=We>=4||We===0?t.timeThursday(Ge):t.timeThursday.ceil(Ge),c(t.timeThursday.count(t.timeYear(Ge),Ge)+(t.timeYear(Ge).getDay()===4),Je,2)}function Be(Ge){return Ge.getDay()}function Le(Ge,Je){return c(t.timeMonday.count(t.timeYear(Ge)-1,Ge),Je,2)}function me(Ge,Je){return c(Ge.getFullYear()%100,Je,2)}function Pe(Ge,Je){return c(Ge.getFullYear()%1e4,Je,4)}function ce(Ge){var Je=Ge.getTimezoneOffset();return(Je>0?"-":(Je*=-1,"+"))+c(Je/60|0,"0",2)+c(Je%60,"0",2)}function He(Ge,Je){return c(Ge.getUTCDate(),Je,2)}function lt(Ge,Je){return c(Ge.getUTCHours(),Je,2)}function mt(Ge,Je){return c(Ge.getUTCHours()%12||12,Je,2)}function Ht(Ge,Je){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Je,3)}function at(Ge,Je){return c(Ge.getUTCMilliseconds(),Je,3)}function ct(Ge,Je){return at(Ge,Je)+"000"}function ar(Ge,Je){return c(Ge.getUTCMonth()+1,Je,2)}function Vt(Ge,Je){return c(Ge.getUTCMinutes(),Je,2)}function rr(Ge,Je){return c(Ge.getUTCSeconds(),Je,2)}function tt(Ge){var Je=Ge.getUTCDay();return Je===0?7:Je}function je(Ge,Je){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Je,2)}function Ue(Ge,Je){var We=Ge.getUTCDay();return Ge=We>=4||We===0?t.utcThursday(Ge):t.utcThursday.ceil(Ge),c(t.utcThursday.count(t.utcYear(Ge),Ge)+(t.utcYear(Ge).getUTCDay()===4),Je,2)}function Ae(Ge){return Ge.getUTCDay()}function rt(Ge,Je){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Je,2)}function St(Ge,Je){return c(Ge.getUTCFullYear()%100,Je,2)}function Tt(Ge,Je){return c(Ge.getUTCFullYear()%1e4,Je,4)}function dt(){return"+0000"}function Et(){return"%"}function pt(Ge){return+Ge}function jt(Ge){return Math.floor(+Ge/1e3)}var or;mr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function mr(Ge){return or=a(Ge),e.timeFormat=or.format,e.timeParse=or.parse,e.utcFormat=or.utcFormat,e.utcParse=or.utcParse,or}var Ar="%Y-%m-%dT%H:%M:%S.%LZ";function ei(Ge){return Ge.toISOString()}var qr=Date.prototype.toISOString?ei:e.utcFormat(Ar);function jr(Ge){var Je=new Date(Ge);return isNaN(Je)?null:Je}var gt=+new Date("2000-01-01T00:00:00.000Z")?jr:e.utcParse(Ar);e.isoFormat=qr,e.isoParse=gt,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var kq=ye((w6,See)=>{(function(e,t){typeof w6=="object"&&typeof See!="undefined"?t(w6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(w6,function(e){"use strict";function t(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function r(C,S){if((g=(C=S?C.toExponential(S-1):C.toExponential()).indexOf("e"))<0)return null;var g,P=C.slice(0,g);return[P.length>1?P[0]+P.slice(2):P,+C.slice(g+1)]}function n(C){return C=r(Math.abs(C)),C?C[1]:NaN}function i(C,S){return function(g,P){for(var E=g.length,z=[],q=0,V=C[0],G=0;E>0&&V>0&&(G+V+1>P&&(V=Math.max(1,P-G)),z.push(g.substring(E-=V,E+V)),!((G+=V+1)>P));)V=C[q=(q+1)%C.length];return z.reverse().join(S)}}function a(C){return function(S){return S.replace(/[0-9]/g,function(g){return C[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(S=o.exec(C)))throw new Error("invalid format: "+C);var S;return new l({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=l.prototype;function l(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}l.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(C){e:for(var S=C.length,g=1,P=-1,E;g0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(E+1):C}var c;function f(C,S){var g=r(C,S);if(!g)return C+"";var P=g[0],E=g[1],z=E-(c=Math.max(-8,Math.min(8,Math.floor(E/3)))*3)+1,q=P.length;return z===q?P:z>q?P+new Array(z-q+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(C,Math.max(0,S+z-1))[0]}function h(C,S){var g=r(C,S);if(!g)return C+"";var P=g[0],E=g[1];return E<0?"0."+new Array(-E).join("0")+P:P.length>E+1?P.slice(0,E+1)+"."+P.slice(E+1):P+new Array(E-P.length+2).join("0")}var d={"%":function(C,S){return(C*100).toFixed(S)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,S){return C.toExponential(S)},f:function(C,S){return C.toFixed(S)},g:function(C,S){return C.toPrecision(S)},o:function(C){return Math.round(C).toString(8)},p:function(C,S){return h(C*100,S)},r:h,s:f,X:function(C){return Math.round(C).toString(16).toUpperCase()},x:function(C){return Math.round(C).toString(16)}};function v(C){return C}var m=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(C){var S=C.grouping===void 0||C.thousands===void 0?v:i(m.call(C.grouping,Number),C.thousands+""),g=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",E=C.decimal===void 0?".":C.decimal+"",z=C.numerals===void 0?v:a(m.call(C.numerals,String)),q=C.percent===void 0?"%":C.percent+"",V=C.minus===void 0?"-":C.minus+"",G=C.nan===void 0?"NaN":C.nan+"";function Z(N){N=s(N);var H=N.fill,ie=N.align,ae=N.sign,_e=N.symbol,Ee=N.zero,Ce=N.width,ge=N.comma,re=N.precision,Se=N.trim,ke=N.type;ke==="n"?(ge=!0,ke="g"):d[ke]||(re===void 0&&(re=12),Se=!0,ke="g"),(Ee||H==="0"&&ie==="=")&&(Ee=!0,H="0",ie="=");var be=_e==="$"?g:_e==="#"&&/[boxX]/.test(ke)?"0"+ke.toLowerCase():"",Be=_e==="$"?P:/[%p]/.test(ke)?q:"",Le=d[ke],me=/[defgprs%]/.test(ke);re=re===void 0?6:/[gprs]/.test(ke)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function Pe(ce){var He=be,lt=Be,mt,Ht,at;if(ke==="c")lt=Le(ce)+lt,ce="";else{ce=+ce;var ct=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Le(Math.abs(ce),re),Se&&(ce=u(ce)),ct&&+ce==0&&ae!=="+"&&(ct=!1),He=(ct?ae==="("?ae:V:ae==="-"||ae==="("?"":ae)+He,lt=(ke==="s"?b[8+c/3]:"")+lt+(ct&&ae==="("?")":""),me){for(mt=-1,Ht=ce.length;++mtat||at>57){lt=(at===46?E+ce.slice(mt+1):ce.slice(mt))+lt,ce=ce.slice(0,mt);break}}}ge&&!Ee&&(ce=S(ce,1/0));var ar=He.length+ce.length+lt.length,Vt=ar>1)+He+ce+lt+Vt.slice(ar);break;default:ce=Vt+He+ce+lt;break}return z(ce)}return Pe.toString=function(){return N+""},Pe}function j(N,H){var ie=Z((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(H)/3)))*3,_e=Math.pow(10,-ae),Ee=b[8+ae/3];return function(Ce){return ie(_e*Ce)+Ee}}return{format:Z,formatPrefix:j}}var k;M({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function M(C){return k=p(C),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function T(C){return Math.max(0,-n(Math.abs(C)))}function L(C,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(S)/3)))*3-n(Math.abs(C)))}function x(C,S){return C=Math.abs(C),S=Math.abs(S)-C,Math.max(0,n(S)-n(C))+1}e.FormatSpecifier=l,e.formatDefaultLocale=M,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var Eee=ye((Mrr,Mee)=>{"use strict";Mee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Eo=ye((Err,kee)=>{"use strict";var Ctt=Eee();kee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Ctt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var fs=ye((krr,Cee)=>{"use strict";Cee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Cq=ye((T6,Lee)=>{(function(e,t){typeof T6=="object"&&typeof Lee!="undefined"?t(T6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(T6,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,d,v;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var m=new ArrayBuffer(s),b=new Uint8Array(m);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return m};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ay=ye((Crr,Pee)=>{"use strict";Pee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var Yd=ye(xg=>{"use strict";var Ltt=Cq().decode,Ptt=Ay(),Lq=Array.isArray,Itt=ArrayBuffer,Rtt=DataView;function Iee(e){return Itt.isView(e)&&!(e instanceof Rtt)}xg.isTypedArray=Iee;function A6(e){return Lq(e)||Iee(e)}xg.isArrayOrTypedArray=A6;function Dtt(e){return!A6(e[0])}xg.isArray1D=Dtt;xg.ensureArray=function(e,t){return Lq(e)||(e=[]),e.length=t,e};var Ld={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ld.uint8c=Ld.u1c;Ld.uint8=Ld.u1;Ld.int8=Ld.i1;Ld.uint16=Ld.u2;Ld.int16=Ld.i2;Ld.uint32=Ld.u4;Ld.int32=Ld.i4;Ld.float32=Ld.f4;Ld.float64=Ld.f8;function Pq(e){return e.constructor===ArrayBuffer}xg.isArrayBuffer=Pq;xg.decodeTypedArraySpec=function(e){var t=[],r=Ftt(e),n=r.dtype,i=Ld[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;Pq(o)||(o=Ltt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,d=0;if(l===1)t=new i(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var Dee=Eo(),Rq=Yd().isArrayOrTypedArray;Oee.exports=function(t,r){if(Dee(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var v3=zS(),Ntt=/^\w*$/,Utt=0,Bee=1,S6=2,Nee=3,mb=4;Uee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=v3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|S6,f.set(h,null);if(c){for(a=d;a{"use strict";var Vtt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Gtt=/^[^\.\[\]]+$/;Gee.exports=function(e,t){for(;t;){var r=e.match(Vtt);if(r)e=r[1];else if(e.match(Gtt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var M6=ye((Drr,jee)=>{"use strict";var Htt=Eo();jee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Htt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Zee=ye((Frr,Xee)=>{"use strict";var Wee=Yd().isArrayOrTypedArray,qS=Ay();Xee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Wee(i)&&Wee(a)&&qS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function jtt(e,t){var r=e%t;return r<0?r+t:r}function Wtt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Yee.exports={mod:jtt,modHalf:Wtt}});var fd=ye((qrr,E6)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function l(me,Pe){if(me=me||"",Pe=Pe||{},me instanceof l)return me;if(!(this instanceof l))return new l(me,Pe);var ce=u(me);this._originalInput=me,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Pe.format||ce.format,this._gradientType=Pe.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var me=this.toRgb();return(me.r*299+me.g*587+me.b*114)/1e3},getLuminance:function(){var me=this.toRgb(),Pe,ce,He,lt,mt,Ht;return Pe=me.r/255,ce=me.g/255,He=me.b/255,Pe<=.03928?lt=Pe/12.92:lt=e.pow((Pe+.055)/1.055,2.4),ce<=.03928?mt=ce/12.92:mt=e.pow((ce+.055)/1.055,2.4),He<=.03928?Ht=He/12.92:Ht=e.pow((He+.055)/1.055,2.4),.2126*lt+.7152*mt+.0722*Ht},setAlpha:function(me){return this._a=N(me),this._roundA=i(100*this._a)/100,this},toHsv:function(){var me=d(this._r,this._g,this._b);return{h:me.h*360,s:me.s,v:me.v,a:this._a}},toHsvString:function(){var me=d(this._r,this._g,this._b),Pe=i(me.h*360),ce=i(me.s*100),He=i(me.v*100);return this._a==1?"hsv("+Pe+", "+ce+"%, "+He+"%)":"hsva("+Pe+", "+ce+"%, "+He+"%, "+this._roundA+")"},toHsl:function(){var me=f(this._r,this._g,this._b);return{h:me.h*360,s:me.s,l:me.l,a:this._a}},toHslString:function(){var me=f(this._r,this._g,this._b),Pe=i(me.h*360),ce=i(me.s*100),He=i(me.l*100);return this._a==1?"hsl("+Pe+", "+ce+"%, "+He+"%)":"hsla("+Pe+", "+ce+"%, "+He+"%, "+this._roundA+")"},toHex:function(me){return m(this._r,this._g,this._b,me)},toHexString:function(me){return"#"+this.toHex(me)},toHex8:function(me){return b(this._r,this._g,this._b,this._a,me)},toHex8String:function(me){return"#"+this.toHex8(me)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(H(this._r,255)*100)+"%",g:i(H(this._g,255)*100)+"%",b:i(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%)":"rgba("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(me){var Pe="#"+p(this._r,this._g,this._b,this._a),ce=Pe,He=this._gradientType?"GradientType = 1, ":"";if(me){var lt=l(me);ce="#"+p(lt._r,lt._g,lt._b,lt._a)}return"progid:DXImageTransform.Microsoft.gradient("+He+"startColorstr="+Pe+",endColorstr="+ce+")"},toString:function(me){var Pe=!!me;me=me||this._format;var ce=!1,He=this._a<1&&this._a>=0,lt=!Pe&&He&&(me==="hex"||me==="hex6"||me==="hex3"||me==="hex4"||me==="hex8"||me==="name");return lt?me==="name"&&this._a===0?this.toName():this.toRgbString():(me==="rgb"&&(ce=this.toRgbString()),me==="prgb"&&(ce=this.toPercentageRgbString()),(me==="hex"||me==="hex6")&&(ce=this.toHexString()),me==="hex3"&&(ce=this.toHexString(!0)),me==="hex4"&&(ce=this.toHex8String(!0)),me==="hex8"&&(ce=this.toHex8String()),me==="name"&&(ce=this.toName()),me==="hsl"&&(ce=this.toHslString()),me==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(me,Pe){var ce=me.apply(null,[this].concat([].slice.call(Pe)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(me,Pe){return me.apply(null,[this].concat([].slice.call(Pe)))},analogous:function(){return this._applyCombination(q,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},l.fromRatio=function(me,Pe){if(typeof me=="object"){var ce={};for(var He in me)me.hasOwnProperty(He)&&(He==="a"?ce[He]=me[He]:ce[He]=ge(me[He]));me=ce}return l(me,Pe)};function u(me){var Pe={r:0,g:0,b:0},ce=1,He=null,lt=null,mt=null,Ht=!1,at=!1;return typeof me=="string"&&(me=Be(me)),typeof me=="object"&&(be(me.r)&&be(me.g)&&be(me.b)?(Pe=c(me.r,me.g,me.b),Ht=!0,at=String(me.r).substr(-1)==="%"?"prgb":"rgb"):be(me.h)&&be(me.s)&&be(me.v)?(He=ge(me.s),lt=ge(me.v),Pe=v(me.h,He,lt),Ht=!0,at="hsv"):be(me.h)&&be(me.s)&&be(me.l)&&(He=ge(me.s),mt=ge(me.l),Pe=h(me.h,He,mt),Ht=!0,at="hsl"),me.hasOwnProperty("a")&&(ce=me.a)),ce=N(ce),{ok:Ht,format:me.format||at,r:a(255,o(Pe.r,0)),g:a(255,o(Pe.g,0)),b:a(255,o(Pe.b,0)),a:ce}}function c(me,Pe,ce){return{r:H(me,255)*255,g:H(Pe,255)*255,b:H(ce,255)*255}}function f(me,Pe,ce){me=H(me,255),Pe=H(Pe,255),ce=H(ce,255);var He=o(me,Pe,ce),lt=a(me,Pe,ce),mt,Ht,at=(He+lt)/2;if(He==lt)mt=Ht=0;else{var ct=He-lt;switch(Ht=at>.5?ct/(2-He-lt):ct/(He+lt),He){case me:mt=(Pe-ce)/ct+(Pe1&&(rr-=1),rr<1/6?ar+(Vt-ar)*6*rr:rr<1/2?Vt:rr<2/3?ar+(Vt-ar)*(2/3-rr)*6:ar}if(Pe===0)He=lt=mt=ce;else{var at=ce<.5?ce*(1+Pe):ce+Pe-ce*Pe,ct=2*ce-at;He=Ht(ct,at,me+1/3),lt=Ht(ct,at,me),mt=Ht(ct,at,me-1/3)}return{r:He*255,g:lt*255,b:mt*255}}function d(me,Pe,ce){me=H(me,255),Pe=H(Pe,255),ce=H(ce,255);var He=o(me,Pe,ce),lt=a(me,Pe,ce),mt,Ht,at=He,ct=He-lt;if(Ht=He===0?0:ct/He,He==lt)mt=0;else{switch(He){case me:mt=(Pe-ce)/ct+(Pe>1)+720)%360;--Pe;)He.h=(He.h+lt)%360,mt.push(l(He));return mt}function V(me,Pe){Pe=Pe||6;for(var ce=l(me).toHsv(),He=ce.h,lt=ce.s,mt=ce.v,Ht=[],at=1/Pe;Pe--;)Ht.push(l({h:He,s:lt,v:mt})),mt=(mt+at)%1;return Ht}l.mix=function(me,Pe,ce){ce=ce===0?0:ce||50;var He=l(me).toRgb(),lt=l(Pe).toRgb(),mt=ce/100,Ht={r:(lt.r-He.r)*mt+He.r,g:(lt.g-He.g)*mt+He.g,b:(lt.b-He.b)*mt+He.b,a:(lt.a-He.a)*mt+He.a};return l(Ht)},l.readability=function(me,Pe){var ce=l(me),He=l(Pe);return(e.max(ce.getLuminance(),He.getLuminance())+.05)/(e.min(ce.getLuminance(),He.getLuminance())+.05)},l.isReadable=function(me,Pe,ce){var He=l.readability(me,Pe),lt,mt;switch(mt=!1,lt=Le(ce),lt.level+lt.size){case"AAsmall":case"AAAlarge":mt=He>=4.5;break;case"AAlarge":mt=He>=3;break;case"AAAsmall":mt=He>=7;break}return mt},l.mostReadable=function(me,Pe,ce){var He=null,lt=0,mt,Ht,at,ct;ce=ce||{},Ht=ce.includeFallbackColors,at=ce.level,ct=ce.size;for(var ar=0;arlt&&(lt=mt,He=l(Pe[ar]));return l.isReadable(me,He,{level:at,size:ct})||!Ht?He:(ce.includeFallbackColors=!1,l.mostReadable(me,["#fff","#000"],ce))};var G=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=l.hexNames=j(G);function j(me){var Pe={};for(var ce in me)me.hasOwnProperty(ce)&&(Pe[me[ce]]=ce);return Pe}function N(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function H(me,Pe){_e(me)&&(me="100%");var ce=Ee(me);return me=a(Pe,o(0,parseFloat(me))),ce&&(me=parseInt(me*Pe,10)/100),e.abs(me-Pe)<1e-6?1:me%Pe/parseFloat(Pe)}function ie(me){return a(1,o(0,me))}function ae(me){return parseInt(me,16)}function _e(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function Ee(me){return typeof me=="string"&&me.indexOf("%")!=-1}function Ce(me){return me.length==1?"0"+me:""+me}function ge(me){return me<=1&&(me=me*100+"%"),me}function re(me){return e.round(parseFloat(me)*255).toString(16)}function Se(me){return ae(me)/255}var ke=function(){var me="[-\\+]?\\d+%?",Pe="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Pe+")|(?:"+me+")",He="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",lt="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+He),rgba:new RegExp("rgba"+lt),hsl:new RegExp("hsl"+He),hsla:new RegExp("hsla"+lt),hsv:new RegExp("hsv"+He),hsva:new RegExp("hsva"+lt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(me){return!!ke.CSS_UNIT.exec(me)}function Be(me){me=me.replace(t,"").replace(r,"").toLowerCase();var Pe=!1;if(G[me])me=G[me],Pe=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=ke.rgb.exec(me))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=ke.rgba.exec(me))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=ke.hsl.exec(me))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=ke.hsla.exec(me))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=ke.hsv.exec(me))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=ke.hsva.exec(me))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=ke.hex8.exec(me))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:Se(ce[4]),format:Pe?"name":"hex8"}:(ce=ke.hex6.exec(me))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Pe?"name":"hex"}:(ce=ke.hex4.exec(me))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:Pe?"name":"hex8"}:(ce=ke.hex3.exec(me))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Pe?"name":"hex"}:!1}function Le(me){var Pe,ce;return me=me||{level:"AA",size:"small"},Pe=(me.level||"AA").toUpperCase(),ce=(me.size||"small").toLowerCase(),Pe!=="AA"&&Pe!=="AAA"&&(Pe="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Pe,size:ce}}typeof E6!="undefined"&&E6.exports?E6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(NS=>{"use strict";var Kee=Ay(),OS=Array.isArray;function Xtt(e,t){var r,n;for(r=0;r{"use strict";Jee.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var US=ye((Nrr,$ee)=>{"use strict";$ee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var W1=ye((Urr,tte)=>{"use strict";var Qee=US(),ete=ec(),Dq=ete({editType:"none"});Dq.family.dflt=Qee.HOVERFONT;Dq.size.dflt=Qee.HOVERFONTSIZE;tte.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Dq,grouptitlefont:ete({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var g3=ye((Vrr,rte)=>{"use strict";var Ztt=ec(),VS=W1().hoverlabel,GS=Ao().extendFlat;rte.exports={hoverlabel:{bgcolor:GS({},VS.bgcolor,{arrayOk:!0}),bordercolor:GS({},VS.bordercolor,{arrayOk:!0}),font:Ztt({arrayOk:!0,editType:"none"}),align:GS({},VS.align,{arrayOk:!0}),namelength:GS({},VS.namelength,{arrayOk:!0}),showarrow:GS({},VS.showarrow),editType:"none"}}});var Gl=ye((Grr,ite)=>{"use strict";var Ytt=ec(),Ktt=g3();ite.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Ytt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Ktt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var yb=ye((Hrr,ote)=>{"use strict";var Jtt=fd(),k6={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},nte=k6.RdBu;function $tt(e,t){if(t||(t=nte),!e)return t;function r(){try{e=k6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),ate(e)?e:t}function ate(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";_b.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];_b.defaultLine="#444";_b.lightLine="#eee";_b.background="#fff";_b.borderLine="#BEC8D9";_b.lightFraction=100*10/11});var ka=ye((Wrr,ste)=>{"use strict";var wp=fd(),ert=Eo(),trt=Yd().isTypedArray,hd=ste.exports={},C6=Ih();hd.defaults=C6.defaults;var rrt=hd.defaultLine=C6.defaultLine;hd.lightLine=C6.lightLine;var zq=hd.background=C6.background;hd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};hd.rgb=function(e){return hd.tinyRGB(wp(e))};hd.opacity=function(e){return e?wp(e).getAlpha():0};hd.addOpacity=function(e,t){var r=wp(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};hd.combine=function(e,t){var r=wp(e).toRgb();if(r.a===1)return wp(e).toRgbString();var n=wp(t||zq).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return wp(a).toRgbString()};hd.interpolate=function(e,t,r){var n=wp(e).toRgb(),i=wp(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return wp(a).toRgbString()};hd.contrast=function(e,t,r){var n=wp(e);n.getAlpha()!==1&&(n=wp(hd.combine(e,zq)));var i=n.isDark()?t?n.lighten(t):zq:r?n.darken(r):rrt;return i.toString()};hd.stroke=function(e,t){var r=wp(t);e.style({stroke:hd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};hd.fill=function(e,t){var r=wp(t);e.style({fill:hd.tinyRGB(r),"fill-opacity":r.getAlpha()})};hd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var X1=ye((Xrr,lte)=>{"use strict";lte.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var m3=ye(ute=>{"use strict";ute.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var dte=ye(Tp=>{"use strict";var qq=Eo(),cte=fd(),fte=Ao().extendFlat,irt=Gl(),nrt=yb(),art=ka(),ort=X1().DESELECTDIM,y3=zS(),hte=m3().counter,srt=p3().modHalf,bg=Yd().isArrayOrTypedArray,Z1=Yd().isTypedArraySpec,Y1=Yd().decodeTypedArraySpec;Tp.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(bg(e)?e:Z1(e)?Y1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;na===!0||a===!1;i(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(i)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,n){Z1(e)&&(e=Y1(e)),!qq(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}Z1(e)&&(e=Y1(e)),e%1||!qq(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Z1(e)&&(e=Y1(e)),cte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return cte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(nrt.get(e,r))}},angle:{coerceFunction:function(e,t,r){Z1(e)&&(e=Y1(e)),e==="auto"?t.set("auto"):qq(e)?t.set(srt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||hte(r);let a=o=>typeof o=="string"&&i.test(o);a(e)||n.arrayOk&&bg(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!hte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var vte={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},pte={};function gte(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),gte(n,t[r]))}}gte(vte,pte);mte.exports={configAttributes:vte,dfltConfig:pte}});var Bq=ye((Jrr,yte)=>{"use strict";var Oq=qa(),lrt=Eo(),HS=[];yte.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||HS.indexOf(e)!==-1)return;HS.push(e);var n=1e3;lrt(t)?n=t:t==="long"&&(n=3e3);var i=Oq.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(HS);function o(l){l.duration(700).style("opacity",0).each("end",function(u){var c=HS.indexOf(u);c!==-1&&HS.splice(c,1),Oq.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var u=Oq.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var c=u.append("p"),f=l.split(//g),h=0;h{"use strict";var _3=xb().dfltConfig,Nq=Bq(),Uq=_te.exports={};Uq.log=function(){var e;if(_3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};Uq.warn=function(){var e;if(_3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};Uq.error=function(){var e;if(_3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var P6=ye((Qrr,xte)=>{"use strict";xte.exports=function(){}});var Vq=ye((eir,bte)=>{"use strict";bte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{wte.exports=urt;function urt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ste=ye((rir,Ate)=>{Ate.exports=crt;function crt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var Ete=ye((iir,Mte)=>{Mte.exports=frt;function frt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Gq=ye((nir,kte)=>{kte.exports=hrt;function hrt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Lte=ye((air,Cte)=>{Cte.exports=drt;function drt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Ite=ye((oir,Pte)=>{Pte.exports=vrt;function vrt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],m=t[13],b=t[14],p=t[15],k=r*s-n*o,M=r*l-i*o,T=r*u-a*o,L=n*l-i*s,x=n*u-a*s,C=i*u-a*l,S=c*m-f*v,g=c*b-h*v,P=c*p-d*v,E=f*b-h*m,z=f*p-d*m,q=h*p-d*b,V=k*q-M*z+T*E+L*P-x*g+C*S;return V?(V=1/V,e[0]=(s*q-l*z+u*E)*V,e[1]=(i*z-n*q-a*E)*V,e[2]=(m*C-b*x+p*L)*V,e[3]=(h*x-f*C-d*L)*V,e[4]=(l*P-o*q-u*g)*V,e[5]=(r*q-i*P+a*g)*V,e[6]=(b*T-v*C-p*M)*V,e[7]=(c*C-h*T+d*M)*V,e[8]=(o*z-s*P+u*S)*V,e[9]=(n*P-r*z-a*S)*V,e[10]=(v*x-m*T+p*k)*V,e[11]=(f*T-c*x-d*k)*V,e[12]=(s*g-o*E-l*S)*V,e[13]=(r*E-n*g+i*S)*V,e[14]=(m*M-v*L-b*k)*V,e[15]=(c*L-f*M+h*k)*V,e):null}});var Dte=ye((sir,Rte)=>{Rte.exports=prt;function prt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],m=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+m*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+m*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+m*(i*u-a*l),e[3]=-(n*(l*d-u*h)-s*(i*d-a*h)+f*(i*u-a*l)),e[4]=-(o*(h*p-d*b)-c*(l*p-u*b)+v*(l*d-u*h)),e[5]=r*(h*p-d*b)-c*(i*p-a*b)+v*(i*d-a*h),e[6]=-(r*(l*p-u*b)-o*(i*p-a*b)+v*(i*u-a*l)),e[7]=r*(l*d-u*h)-o*(i*d-a*h)+c*(i*u-a*l),e[8]=o*(f*p-d*m)-c*(s*p-u*m)+v*(s*d-u*f),e[9]=-(r*(f*p-d*m)-c*(n*p-a*m)+v*(n*d-a*f)),e[10]=r*(s*p-u*m)-o*(n*p-a*m)+v*(n*u-a*s),e[11]=-(r*(s*d-u*f)-o*(n*d-a*f)+c*(n*u-a*s)),e[12]=-(o*(f*b-h*m)-c*(s*b-l*m)+v*(s*h-l*f)),e[13]=r*(f*b-h*m)-c*(n*b-i*m)+v*(n*h-i*f),e[14]=-(r*(s*b-l*m)-o*(n*b-i*m)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var zte=ye((lir,Fte)=>{Fte.exports=grt;function grt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],d=e[12],v=e[13],m=e[14],b=e[15],p=t*o-r*a,k=t*s-n*a,M=t*l-i*a,T=r*s-n*o,L=r*l-i*o,x=n*l-i*s,C=u*v-c*d,S=u*m-f*d,g=u*b-h*d,P=c*m-f*v,E=c*b-h*v,z=f*b-h*m;return p*z-k*E+M*P+T*g-L*S+x*C}});var Ote=ye((uir,qte)=>{qte.exports=mrt;function mrt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],d=t[10],v=t[11],m=t[12],b=t[13],p=t[14],k=t[15],M=r[0],T=r[1],L=r[2],x=r[3];return e[0]=M*n+T*s+L*f+x*m,e[1]=M*i+T*l+L*h+x*b,e[2]=M*a+T*u+L*d+x*p,e[3]=M*o+T*c+L*v+x*k,M=r[4],T=r[5],L=r[6],x=r[7],e[4]=M*n+T*s+L*f+x*m,e[5]=M*i+T*l+L*h+x*b,e[6]=M*a+T*u+L*d+x*p,e[7]=M*o+T*c+L*v+x*k,M=r[8],T=r[9],L=r[10],x=r[11],e[8]=M*n+T*s+L*f+x*m,e[9]=M*i+T*l+L*h+x*b,e[10]=M*a+T*u+L*d+x*p,e[11]=M*o+T*c+L*v+x*k,M=r[12],T=r[13],L=r[14],x=r[15],e[12]=M*n+T*s+L*f+x*m,e[13]=M*i+T*l+L*h+x*b,e[14]=M*a+T*u+L*d+x*p,e[15]=M*o+T*c+L*v+x*k,e}});var Nte=ye((cir,Bte)=>{Bte.exports=yrt;function yrt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,m,b,p;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],d=t[7],v=t[8],m=t[9],b=t[10],p=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=d,e[8]=v,e[9]=m,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+m*a+t[13],e[14]=l*n+h*i+b*a+t[14],e[15]=u*n+d*i+p*a+t[15]),e}});var Vte=ye((fir,Ute)=>{Ute.exports=_rt;function _rt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Hte=ye((hir,Gte)=>{Gte.exports=xrt;function xrt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),l,u,c,f,h,d,v,m,b,p,k,M,T,L,x,C,S,g,P,E,z,q,V,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],d=t[2],v=t[3],m=t[4],b=t[5],p=t[6],k=t[7],M=t[8],T=t[9],L=t[10],x=t[11],C=i*i*c+u,S=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,E=a*a*c+u,z=o*a*c+i*l,q=i*o*c+a*l,V=a*o*c-i*l,G=o*o*c+u,e[0]=f*C+m*S+M*g,e[1]=h*C+b*S+T*g,e[2]=d*C+p*S+L*g,e[3]=v*C+k*S+x*g,e[4]=f*P+m*E+M*z,e[5]=h*P+b*E+T*z,e[6]=d*P+p*E+L*z,e[7]=v*P+k*E+x*z,e[8]=f*q+m*V+M*G,e[9]=h*q+b*V+T*G,e[10]=d*q+p*V+L*G,e[11]=v*q+k*V+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Wte=ye((dir,jte)=>{jte.exports=brt;function brt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=o*i+c*n,e[6]=s*i+f*n,e[7]=l*i+h*n,e[8]=u*i-a*n,e[9]=c*i-o*n,e[10]=f*i-s*n,e[11]=h*i-l*n,e}});var Zte=ye((vir,Xte)=>{Xte.exports=wrt;function wrt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=o*i-c*n,e[2]=s*i-f*n,e[3]=l*i-h*n,e[8]=a*n+u*i,e[9]=o*n+c*i,e[10]=s*n+f*i,e[11]=l*n+h*i,e}});var Kte=ye((pir,Yte)=>{Yte.exports=Trt;function Trt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=o*i+c*n,e[2]=s*i+f*n,e[3]=l*i+h*n,e[4]=u*i-a*n,e[5]=c*i-o*n,e[6]=f*i-s*n,e[7]=h*i-l*n,e}});var $te=ye((gir,Jte)=>{Jte.exports=Art;function Art(e,t,r){var n,i,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var ere=ye((mir,Qte)=>{Qte.exports=Srt;function Srt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,u=a+a,c=n*s,f=n*l,h=n*u,d=i*l,v=i*u,m=a*u,b=o*s,p=o*l,k=o*u;return e[0]=1-(d+m),e[1]=f+k,e[2]=h-p,e[3]=0,e[4]=f-k,e[5]=1-(c+m),e[6]=v+b,e[7]=0,e[8]=h+p,e[9]=v-b,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var rre=ye((yir,tre)=>{tre.exports=Mrt;function Mrt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nre=ye((_ir,ire)=>{ire.exports=Ert;function Ert(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var ore=ye((xir,are)=>{are.exports=krt;function krt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var lre=ye((bir,sre)=>{sre.exports=Crt;function Crt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var cre=ye((wir,ure)=>{ure.exports=Lrt;function Lrt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var hre=ye((Tir,fre)=>{fre.exports=Prt;function Prt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,f=n*s,h=i*o,d=i*s,v=i*l,m=a*o,b=a*s,p=a*l;return e[0]=1-f-v,e[1]=c+p,e[2]=h-b,e[3]=0,e[4]=c-p,e[5]=1-u-v,e[6]=d+m,e[7]=0,e[8]=h+b,e[9]=d-m,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var vre=ye((Air,dre)=>{dre.exports=Irt;function Irt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var gre=ye((Sir,pre)=>{pre.exports=Rrt;function Rrt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var yre=ye((Mir,mre)=>{mre.exports=Drt;function Drt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var xre=ye((Eir,_re)=>{_re.exports=Frt;function Frt(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}});var wre=ye((kir,bre)=>{var zrt=Gq();bre.exports=qrt;function qrt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],m=t[1],b=t[2],p=n[0],k=n[1],M=n[2],T=r[0],L=r[1],x=r[2];return Math.abs(v-T)<1e-6&&Math.abs(m-L)<1e-6&&Math.abs(b-x)<1e-6?zrt(e):(c=v-T,f=m-L,h=b-x,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=k*h-M*f,a=M*c-p*h,o=p*f-k*c,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=f*o-h*a,l=h*i-c*o,u=c*a-f*i,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=i,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*v+a*m+o*b),e[13]=-(s*v+l*m+u*b),e[14]=-(c*v+f*m+h*b),e[15]=1,e)}});var Are=ye((Cir,Tre)=>{Tre.exports=Ort;function Ort(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Hq=ye((Lir,Sre)=>{Sre.exports={create:Tte(),clone:Ste(),copy:Ete(),identity:Gq(),transpose:Lte(),invert:Ite(),adjoint:Dte(),determinant:zte(),multiply:Ote(),translate:Nte(),scale:Vte(),rotate:Hte(),rotateX:Wte(),rotateY:Zte(),rotateZ:Kte(),fromRotation:$te(),fromRotationTranslation:ere(),fromScaling:rre(),fromTranslation:nre(),fromXRotation:ore(),fromYRotation:lre(),fromZRotation:cre(),fromQuat:hre(),frustum:vre(),perspective:gre(),perspectiveFromFieldOfView:yre(),ortho:xre(),lookAt:wre(),str:Are()}});var I6=ye(fh=>{"use strict";var Brt=Hq();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var Nrt=qa(),Mre=K1(),Urt=I6(),Vrt=Hq();function Grt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Hrt(e){var t=Nrt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Ere(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function jrt(e,t){kre("global",e,t)}function kre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):Mre.warn("addStyleRule failed"):Mre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Wrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Ere(r)}function Xrt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this.querySelector(r);c&&(c.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[o[0]]=o[1]:c.style[s[0]]=s[1])}),u.setAttribute(l,!0))})}function Zrt(e){var t=Lre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=Cre(n);if(i){var a=Urt.convertCssMatrix(i);r=Vrt.multiply(r,r,a)}}),r}function Cre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Lre(e){for(var t=[];Yrt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Yrt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Krt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Pre.exports={getGraphDiv:Grt,isPlotDiv:Hrt,removeElement:Ere,addStyleRule:jrt,addRelatedStyleRule:kre,deleteRelatedStyleRule:Wrt,setStyleOnHover:Xrt,getFullTransformMatrix:Zrt,getElementTransformMatrix:Cre,getElementAndAncestors:Lre,equalDomRects:Krt}});var WS=ye((Rir,Ire)=>{"use strict";Ire.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var mc=ye((Dir,Bre)=>{"use strict";var Dre=Ao().extendFlat,Jrt=Ay(),Fre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},zre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},$rt=Fre.flags.slice().concat(["fullReplot"]),Qrt=zre.flags.slice().concat("layoutReplot");Bre.exports={traces:Fre,layout:zre,traceFlags:function(){return Rre($rt)},layoutFlags:function(){return Rre(Qrt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";jq.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};jq.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Wq=ye((zir,Nre)=>{"use strict";Nre.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Ll=ye(x3=>{"use strict";var{DATE_FORMAT_LINK:eit,FORMAT_LINK:tit}=Wq(),rit=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function iit({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,tit,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,eit,"for details on the date formatting syntax.",rit].join(" ")}x3.templateFormatStringDescription=iit;x3.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});x3.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});x3.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});x3.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var F6=ye((Bir,Wre)=>{"use strict";function J1(e,t){return t?t.d2l(e):e}function Ure(e,t){return t?t.l2d(e):e}function nit(e){return e.x0}function ait(e){return e.x1}function oit(e){return e.y0}function sit(e){return e.y1}function Vre(e){return e.x0shift||0}function Gre(e){return e.x1shift||0}function Hre(e){return e.y0shift||0}function jre(e){return e.y1shift||0}function R6(e,t){return J1(e.x1,t)+Gre(e)-J1(e.x0,t)-Vre(e)}function D6(e,t,r){return J1(e.y1,r)+jre(e)-J1(e.y0,r)-Hre(e)}function lit(e,t){return Math.abs(R6(e,t))}function uit(e,t,r){return Math.abs(D6(e,t,r))}function cit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(R6(e,t),2)+Math.pow(D6(e,t,r),2))}function fit(e,t){return Ure((J1(e.x1,t)+Gre(e)+J1(e.x0,t)+Vre(e))/2,t)}function hit(e,t,r){return Ure((J1(e.y1,r)+jre(e)+J1(e.y0,r)+Hre(e))/2,r)}function dit(e,t,r){return e.type!=="line"?void 0:D6(e,t,r)/R6(e,t)}var vit=["x0","x1","y0","y1","dy","height","ycenter"],pit=["x0","x1","y0","y1","dx","width","xcenter"];Wre.exports={x0:nit,x1:ait,y0:oit,y1:sit,slope:dit,dx:R6,dy:D6,width:lit,height:uit,length:cit,xcenter:fit,ycenter:hit,simpleXVariables:vit,simpleYVariables:pit}});var Yre=ye((Nir,Zre)=>{"use strict";var git=mc().overrideAll,bb=Gl(),Xre=ec(),mit=Pd().dash,$1=Ao().extendFlat,{shapeTexttemplateAttrs:yit,templatefallbackAttrs:_it}=Ll(),xit=F6();Zre.exports=git({newshape:{visible:$1({},bb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:$1({},bb.legend,{}),legendgroup:$1({},bb.legendgroup,{}),legendgrouptitle:{text:$1({},bb.legendgrouptitle.text,{}),font:Xre({})},legendrank:$1({},bb.legendrank,{}),legendwidth:$1({},bb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:$1({},mit,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:$1({},bb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:yit({newshape:!0},{keys:Object.keys(xit)}),texttemplatefallback:_it({editType:"arraydraw"}),font:Xre({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Jre=ye((Uir,Kre)=>{"use strict";var bit=Pd().dash,wit=Ao().extendFlat;Kre.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:wit({},bit,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var z6=ye((Vir,$re)=>{"use strict";$re.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var b3=ye((Gir,rie)=>{"use strict";var Xq=ec(),Tit=WS(),q6=Ih(),Qre=Yre(),eie=Jre(),Ait=z6(),tie=Ao().extendFlat,O6=Xq({editType:"calc"});O6.family.dflt='"Open Sans", verdana, arial, sans-serif';O6.size.dflt=12;O6.color.dflt=q6.defaultLine;rie.exports={font:O6,title:{text:{valType:"string",editType:"layoutstyle"},font:Xq({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Xq({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:tie(Ait({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:q6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:q6.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:q6.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Qre.newshape,activeshape:Qre.activeshape,newselection:eie.newselection,activeselection:eie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:tie({},Tit.transition,{editType:"none"})}});var iie=ye(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Oa=ye(el=>{"use strict";var w3=K1(),nie=P6(),aie=Vq(),Sit=Ay(),Mit=jS().addStyleRule,oie=Ao(),Eit=Gl(),kit=b3(),Cit=oie.extendFlat,Zq=oie.extendDeepAll;el.modules={};el.allCategories={};el.allTypes=[];el.subplotsRegistry={};el.componentsRegistry={};el.layoutArrayContainers=[];el.layoutArrayRegexes=[];el.traceLayoutAttributes={};el.localeRegistry={};el.apiMethodRegistry={};el.collectableSubplotTypes=null;el.register=function(t){if(el.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Fit=d3().timeFormat,mie=Eo(),Yq=K1(),e_=p3().mod,S3=fs(),_0=S3.BADNUM,Ap=S3.ONEDAY,XS=S3.ONEHOUR,Q1=S3.ONEMIN,A3=S3.ONESEC,ZS=S3.EPOCHJD,Sy=Oa(),fie=d3().utcFormat,zit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,qit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,hie=new Date().getFullYear()-70;function My(e){return e&&Sy.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=Oit(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=Ap*(t-1),hh.ms2DateTime(n,0,e)};function Oit(e,t){return My(e)?t?Sy.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Sy.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return My(e)?Sy.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};hh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var N6,U6;hh.dateTime2ms=function(e,t){if(hh.isJSDate(e)){var r=e.getTimezoneOffset()*Q1,n=(e.getUTCMinutes()-e.getMinutes())*Q1+(e.getUTCSeconds()-e.getSeconds())*A3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*Q1;r=r-i/2+e_(n-r+i/2,i)}return e=Number(e)-r,e>=N6&&e<=U6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=My(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=a&&t.slice(0,7)==="chinese",l=e.match(s?qit:zit);if(!l)return _0;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),v=Number(l[11]||0);if(a){if(u.length===2)return _0;u=Number(u);var m;try{var b=Sy.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),m=b.newDate(u,b.toMonthIndex(u,c,p),f)}else m=b.newDate(u,Number(c),f)}catch(M){return _0}return m?(m.toJD()-ZS)*Ap+h*XS+d*Q1+v*A3:_0}u.length===2?u=(Number(u)+2e3-hie)%100+hie:u=Number(u),c-=1;var k=new Date(Date.UTC(2e3,c,f,h,d));return k.setUTCFullYear(u),k.getUTCMonth()!==c||k.getUTCDate()!==f?_0:k.getTime()+v*A3};N6=hh.MIN_MS=hh.dateTime2ms("-9999");U6=hh.MAX_MS=hh.dateTime2ms("9999-12-31 23:59:59.9999");hh.isDateTime=function(e,t){return hh.dateTime2ms(e,t)!==_0};function T3(e,t){return String(e+Math.pow(10,t)).slice(1)}var B6=90*Ap,die=3*XS,vie=5*Q1;hh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=N6&&e<=U6))return _0;t||(t=0);var n=Math.floor(e_(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,l,u,c;if(My(r)){var f=Math.floor(i/Ap)+ZS,h=Math.floor(e_(e,Ap));try{a=Sy.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=fie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.slice(1);else for(;a.length<10;)a="0"+a;o=t=N6+Ap&&e<=U6-Ap))return _0;var t=Math.floor(e_(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Fit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return yie(n,i,a,o,s)};function yie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+T3(t,2)+":"+T3(r,2),(n||i)&&(e+=":"+T3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+T3(i,a)}return e}hh.cleanDate=function(e,t,r){if(e===_0)return t;if(hh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(My(r))return Yq.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=hh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!hh.isDateTime(e,r))return Yq.error("unrecognized date",e),t;return e};var Bit=/%\d?f/g,Nit=/%h/g,Uit={1:"1",2:"1",3:"2",4:"2"};function pie(e,t,r,n){e=e.replace(Bit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(Nit,function(){return Uit[r("%q")(i)]}),My(n))try{e=Sy.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Vit=[59,59.9,59.99,59.999,59.9999];function Git(e,t){var r=e_(e+.05,Ap),n=T3(Math.floor(r/XS),2)+":"+T3(e_(Math.floor(r/Q1),60),2);if(t!=="M"){mie(t)||(t=0);var i=Math.min(e_(e/A3,60),Vit[t]),a=(100+i).toFixed(t).slice(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}hh.formatDate=function(e,t,r,n,i,a){if(i=My(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` -`+a.year;else return Git(e,r)+` -`+pie(a.dayMonthYear,e,n,i);return pie(t,e,n,i)};var gie=3*Ap;hh.incrementMonth=function(e,t,r){r=My(r)&&r;var n=e_(e,Ap);if(e=Math.round(e-n),r)try{var i=Math.round(e/Ap)+ZS,a=Sy.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-ZS)*Ap+n}catch(l){Yq.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+gie);return s.setUTCMonth(s.getUTCMonth()+t)+n-gie};hh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=My(t)&&Sy.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";xie.exports=function(t){return t}});var V6=ye(Ey=>{"use strict";var Hit=Eo(),jit=K1(),Wit=YS(),Xit=fs().BADNUM,Kq=1e-9;Ey.findBin=function(e,t,r){if(Hit(t.start))return r?Math.ceil((e-t.start)/t.size-Kq)-1:Math.floor((e-t.start)/t.size+Kq);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,l;for(o>=0?l=r?Zit:Yit:l=r?Jit:Kit,e+=o*Kq*(r?-1:1)*(o>=0?1:-1);n90&&jit.log("Long binary search..."),n-1};function Zit(e,t){return et}function Jit(e,t){return e>=t}Ey.sorterAsc=function(e,t){return e-t};Ey.sorterDes=function(e,t){return t-e};Ey.distinctVals=function(e){var t=e.slice();t.sort(Ey.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Xit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>i&&(n=Math.min(n,u),a.push(l),o=l)}return{vals:a,minDiff:n}};Ey.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};Ey.findIndexOfMin=function(e,t){t=t||Wit;for(var r=1/0,n,i=0;i{"use strict";bie.exports=function(t){return Object.keys(t).sort()}});var wie=ye(dh=>{"use strict";var KS=Eo(),$it=Yd().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),KS(t)||(t=!1),$it(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var Eie=ye(($ir,Mie)=>{"use strict";var Tie=p3(),Jq=Tie.mod,Qit=Tie.modHalf,JS=Math.PI,r_=2*JS;function ent(e){return e/180*JS}function tnt(e){return e/JS*180}function $q(e){return Math.abs(e[1]-e[0])>r_-1e-14}function Aie(e,t){return Qit(t-e,r_)}function rnt(e,t){return Math.abs(Aie(e,t))}function Sie(e,t){if($q(t))return!0;var r,n;t[0]n&&(n+=r_);var i=Jq(e,r_),a=i+r_;return i>=r&&i<=n||a>=r&&a<=n}function int(e,t,r,n){if(!Sie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function Qq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=$q([r,n]),l,u,c,f,h;s?(l=0,u=JS,c=r_):r{"use strict";wb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};wb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};wb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};wb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};wb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};wb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Pie=ye(Tb=>{"use strict";var eO=p3().mod;Tb.segmentsIntersect=Lie;function Lie(e,t,r,n,i,a,o,s){var l=r-e,u=i-e,c=o-i,f=n-t,h=a-t,d=s-a,v=l*d-c*f;if(v===0)return null;var m=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||m<0||m>1?null:{x:e+l*m,y:t+f*m}}Tb.segmentDistance=function(t,r,n,i,a,o,s,l){if(Lie(t,r,n,i,a,o,s,l))return 0;var u=n-t,c=i-r,f=s-a,h=l-o,d=u*u+c*c,v=f*f+h*h,m=Math.min(G6(u,c,d,a-t,o-r),G6(u,c,d,s-t,l-r),G6(f,h,v,t-a,r-o),G6(f,h,v,n-a,i-o));return Math.sqrt(m)};function G6(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var l=n*t-i*e;return l*l/r}}var H6,tO,Cie;Tb.getTextLocation=function(t,r,n,i){if((t!==tO||i!==Cie)&&(H6={},tO=t,Cie=i),H6[n])return H6[n];var a=t.getPointAtLength(eO(n-i/2,r)),o=t.getPointAtLength(eO(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(eO(n,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return H6[n]=f,f};Tb.clearLocationCache=function(){tO=null};Tb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function d(m){var b=t.getPointAtLength(m);m===0?f=b:m===u&&(h=b);var p=b.xa?b.x-a:0,k=b.ys?b.y-s:0;return Math.sqrt(p*p+k*k)}for(var v=d(l);v;){if(l+=v+n,l>c)return;v=d(l)}for(v=d(c);v;){if(c-=v+n,l>c)return;v=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};Tb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,u=0,c=0,f=a,h,d,v;u0?f=h:c=h,u++}return d}});var j6=ye($S=>{"use strict";var ky={};$S.throttle=function(t,r,n){var i=ky[t],a=Date.now();if(!i){for(var o in ky)ky[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};$S.done=function(e){var t=ky[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};$S.clear=function(e){if(e)Iie(ky[e]),delete ky[e];else for(var t in ky)$S.clear(t)};function Iie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Die=ye((rnr,Rie)=>{"use strict";Rie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Fie=ye((inr,W6)=>{"use strict";W6.exports=rO;W6.exports.isMobile=rO;W6.exports.default=rO;var snt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,lnt=/CrOS/,unt=/android|ipad|playbook|silk/i;function rO(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=snt.test(t)&&!lnt.test(t)||!!e.tablet&&unt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var qie=ye((nnr,zie)=>{"use strict";var cnt=Eo(),fnt=Fie();zie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=hnt(),typeof r!="string")return!0;var n=fnt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var l=i[s];if(l.slice(0,8)==="Version/"){var u=l.slice(8).split(".")[0];if(cnt(u)&&(u=+u),u>=13)return!0}}}return n};function hnt(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Bie=ye((anr,Oie)=>{"use strict";var dnt=qa();Oie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=dnt.select(this)}),i}});var Uie=ye((onr,Nie)=>{"use strict";var vnt=Oa();Nie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=vnt.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var iO=ye((snr,Vie)=>{"use strict";Vie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Gie.exports=function(t){for(var r=mnt(t)?gnt:pnt,n=[],i=0;i{"use strict";jie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(i).toPrecision(12);l.indexOf("e+")===-1&&(i=+l)}}return i}});var Zie=ye((cnr,Xie)=>{"use strict";var ynt=Eo(),_nt=fs().BADNUM,xnt=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Xie.exports=function(t){return typeof t=="string"&&(t=t.replace(xnt,"")),ynt(t)?Number(t):_nt}});var Pr=ye((fnr,sne)=>{"use strict";var QS=qa(),bnt=d3().utcFormat,wnt=kq().format,ene=Eo(),tne=fs(),rne=tne.FP_SAFE,Tnt=-rne,Yie=tne.BADNUM,Ai=sne.exports={};Ai.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Kie={};Ai.warnBadFormat=function(e){var t=String(e);Kie[t]||(Kie[t]=1,Ai.warn('encountered bad format: "'+t+'"'))};Ai.noFormat=function(e){return String(e)};Ai.numberFormat=function(e){var t;try{t=wnt(Ai.adjustFormat(e))}catch(r){return Ai.warnBadFormat(e),Ai.noFormat}return t};Ai.nestedProperty=zS();Ai.keyedContainer=Vee();Ai.relativeAttr=Hee();Ai.isPlainObject=Ay();Ai.toLogRange=M6();Ai.relinkPrivateKeys=Zee();var i_=Yd();Ai.isArrayBuffer=i_.isArrayBuffer;Ai.isTypedArray=i_.isTypedArray;Ai.isArrayOrTypedArray=i_.isArrayOrTypedArray;Ai.isArray1D=i_.isArray1D;Ai.ensureArray=i_.ensureArray;Ai.concat=i_.concat;Ai.maxRowLength=i_.maxRowLength;Ai.minRowLength=i_.minRowLength;var ine=p3();Ai.mod=ine.mod;Ai.modHalf=ine.modHalf;var n_=dte();Ai.valObjectMeta=n_.valObjectMeta;Ai.coerce=n_.coerce;Ai.coerce2=n_.coerce2;Ai.coerceFont=n_.coerceFont;Ai.coercePattern=n_.coercePattern;Ai.coerceHoverinfo=n_.coerceHoverinfo;Ai.coerceSelectionMarkerOpacity=n_.coerceSelectionMarkerOpacity;Ai.validate=n_.validate;var jp=_ie();Ai.dateTime2ms=jp.dateTime2ms;Ai.isDateTime=jp.isDateTime;Ai.ms2DateTime=jp.ms2DateTime;Ai.ms2DateTimeLocal=jp.ms2DateTimeLocal;Ai.cleanDate=jp.cleanDate;Ai.isJSDate=jp.isJSDate;Ai.formatDate=jp.formatDate;Ai.incrementMonth=jp.incrementMonth;Ai.dateTick0=jp.dateTick0;Ai.dfltRange=jp.dfltRange;Ai.findExactDates=jp.findExactDates;Ai.MIN_MS=jp.MIN_MS;Ai.MAX_MS=jp.MAX_MS;var Ab=V6();Ai.findBin=Ab.findBin;Ai.sorterAsc=Ab.sorterAsc;Ai.sorterDes=Ab.sorterDes;Ai.distinctVals=Ab.distinctVals;Ai.roundUp=Ab.roundUp;Ai.sort=Ab.sort;Ai.findIndexOfMin=Ab.findIndexOfMin;Ai.sortObjectKeys=t_();var Cy=wie();Ai.aggNums=Cy.aggNums;Ai.len=Cy.len;Ai.mean=Cy.mean;Ai.geometricMean=Cy.geometricMean;Ai.median=Cy.median;Ai.midRange=Cy.midRange;Ai.variance=Cy.variance;Ai.stdev=Cy.stdev;Ai.interp=Cy.interp;var wg=I6();Ai.init2dArray=wg.init2dArray;Ai.transposeRagged=wg.transposeRagged;Ai.dot=wg.dot;Ai.translationMatrix=wg.translationMatrix;Ai.rotationMatrix=wg.rotationMatrix;Ai.rotationXYMatrix=wg.rotationXYMatrix;Ai.apply3DTransform=wg.apply3DTransform;Ai.apply2DTransform=wg.apply2DTransform;Ai.apply2DTransform2=wg.apply2DTransform2;Ai.convertCssMatrix=wg.convertCssMatrix;Ai.inverseTransformMatrix=wg.inverseTransformMatrix;var gm=Eie();Ai.deg2rad=gm.deg2rad;Ai.rad2deg=gm.rad2deg;Ai.angleDelta=gm.angleDelta;Ai.angleDist=gm.angleDist;Ai.isFullCircle=gm.isFullCircle;Ai.isAngleInsideSector=gm.isAngleInsideSector;Ai.isPtInsideSector=gm.isPtInsideSector;Ai.pathArc=gm.pathArc;Ai.pathSector=gm.pathSector;Ai.pathAnnulus=gm.pathAnnulus;var E3=kie();Ai.isLeftAnchor=E3.isLeftAnchor;Ai.isCenterAnchor=E3.isCenterAnchor;Ai.isRightAnchor=E3.isRightAnchor;Ai.isTopAnchor=E3.isTopAnchor;Ai.isMiddleAnchor=E3.isMiddleAnchor;Ai.isBottomAnchor=E3.isBottomAnchor;var k3=Pie();Ai.segmentsIntersect=k3.segmentsIntersect;Ai.segmentDistance=k3.segmentDistance;Ai.getTextLocation=k3.getTextLocation;Ai.clearLocationCache=k3.clearLocationCache;Ai.getVisibleSegment=k3.getVisibleSegment;Ai.findPointOnPath=k3.findPointOnPath;var Y6=Ao();Ai.extendFlat=Y6.extendFlat;Ai.extendDeep=Y6.extendDeep;Ai.extendDeepAll=Y6.extendDeepAll;Ai.extendDeepNoArrays=Y6.extendDeepNoArrays;var nO=K1();Ai.log=nO.log;Ai.warn=nO.warn;Ai.error=nO.error;var Ant=m3();Ai.counterRegex=Ant.counter;var aO=j6();Ai.throttle=aO.throttle;Ai.throttleDone=aO.done;Ai.clearThrottle=aO.clear;var Tg=jS();Ai.getGraphDiv=Tg.getGraphDiv;Ai.isPlotDiv=Tg.isPlotDiv;Ai.removeElement=Tg.removeElement;Ai.addStyleRule=Tg.addStyleRule;Ai.addRelatedStyleRule=Tg.addRelatedStyleRule;Ai.deleteRelatedStyleRule=Tg.deleteRelatedStyleRule;Ai.setStyleOnHover=Tg.setStyleOnHover;Ai.getFullTransformMatrix=Tg.getFullTransformMatrix;Ai.getElementTransformMatrix=Tg.getElementTransformMatrix;Ai.getElementAndAncestors=Tg.getElementAndAncestors;Ai.equalDomRects=Tg.equalDomRects;Ai.clearResponsive=Die();Ai.preserveDrawingBuffer=qie();Ai.makeTraceGroups=Bie();Ai._=Uie();Ai.notifier=Bq();Ai.filterUnique=iO();Ai.filterVisible=Hie();Ai.pushUnique=Vq();Ai.increment=Wie();Ai.cleanNumber=Zie();Ai.ensureNumber=function(t){return ene(t)?(t=Number(t),t>rne||t=t?!1:ene(e)&&e>=0&&e%1===0};Ai.noop=P6();Ai.identity=YS();Ai.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Ai.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};Ai.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(Ai.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Ai.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};Ai.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,l,u,c;for(s=0;s=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=r&&(u=n-1-u),c+=e[u]*a[l];o[s]=c}return o};Ai.syncOrAsync=function(e,t,r){var n,i;function a(){return Ai.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};Ai.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ai.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Ai.fillArray=function(e,t,r,n){if(n=n||Ai.identity,Ai.isArrayOrTypedArray(e))for(var i=0;iEnt.test(window.navigator.userAgent);var knt=/Firefox\/(\d+)\.\d+/;Ai.getFirefoxVersion=function(){var e=knt.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Ai.isD3Selection=function(e){return e instanceof QS.selection};Ai.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};Ai.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};Ai.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l};Ai.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var one=/^\w*$/;Ai.templateString=function(e,t){var r={};return e.replace(Ai.TEMPLATE_STRING_REGEX,function(n,i){var a;return one.test(i)?a=t[i]:(r[i]=r[i]||Ai.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Pnt={max:10,count:0,name:"hovertemplate"};Ai.hovertemplateString=e=>oO(j1(_g({},e),{opts:Pnt}));var Int={max:10,count:0,name:"texttemplate"};Ai.texttemplateString=e=>oO(j1(_g({},e),{opts:Int}));var Rnt=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Dnt(e){var t=e.match(Rnt);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Fnt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ai.texttemplateStringForShapes=e=>oO(j1(_g({},e),{opts:Fnt}));var Jie=/^[:|\|]/;function oO({data:e=[],locale:t,fallback:r,labels:n={},opts:i,template:a}){return a.replace(Ai.TEMPLATE_STRING_REGEX,(o,s,l)=>{let u=["xother","yother"].includes(s),c=["_xother","_yother"].includes(s),f=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),d=u||c||h||f;(c||f)&&(s=s.substring(1)),(h||f)&&(s=s.substring(0,s.length-1));let v=null,m=null;if(i.parseMultDiv){var b=Dnt(s);s=b.key,v=b.op,m=b.number}let p;if(d){if(n[s]===void 0)return"";p=n[s]}else for(let L of e)if(L){if(L.hasOwnProperty(s)){p=L[s];break}if(one.test(s)||(p=Ai.nestedProperty(L,s).get(!0)),p!==void 0)break}if(p===void 0){let{count:L,max:x,name:C}=i,S=r===!1?o:r;return L=Z6&&o<=$ie,u=s>=Z6&&s<=$ie;if(l&&(n=10*n+o-Z6),u&&(i=10*i+s-Z6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var M3=2e9;Ai.seedPseudoRandom=function(){M3=2e9};Ai.pseudoRandom=function(){var e=M3;return M3=(69069*M3+1)%4294967296,Math.abs(M3-e)<429496729?Ai.pseudoRandom():M3/4294967296};Ai.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Ai.extractOption(e,t,"htx","hovertext");if(Ai.isValidTextValue(i))return n(i);var a=Ai.extractOption(e,t,"tx","text");if(Ai.isValidTextValue(a))return n(a)};Ai.isValidTextValue=function(e){return e||e===0};Ai.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(u=1):u=0,Ai.strTranslate(i-u*(r+o),a-u*(n+s))+Ai.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Ai.setTransormAndDisplay=function(e,t){e.attr("transform",Ai.getTextTransform(t)),e.style("display",t.scale?null:"none")};Ai.ensureUniformFontSize=function(e,t){var r=Ai.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Ai.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};Ai.bigFont=function(e){return Math.round(1.2*e)};var Qie=Ai.getFirefoxVersion(),znt=Qie!==null&&Qie<86;Ai.getPositionFromD3Event=function(){return znt?[QS.event.layerX,QS.event.layerY]:[QS.event.offsetX,QS.event.offsetY]}});var cne=ye(()=>{"use strict";var qnt=Pr(),lne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(sO in lne)une=sO.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),qnt.addStyleRule(une,lne[sO]);var une,sO});var lO=ye((pnr,fne)=>{fne.exports=!0});var cO=ye((gnr,hne)=>{"use strict";var Ont=lO(),uO;typeof window.matchMedia=="function"?uO=!window.matchMedia("(hover: none)").matches:uO=Ont;hne.exports=uO});var Sb=ye((mnr,fO)=>{"use strict";var C3=typeof Reflect=="object"?Reflect:null,dne=C3&&typeof C3.apply=="function"?C3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},K6;C3&&typeof C3.ownKeys=="function"?K6=C3.ownKeys:Object.getOwnPropertySymbols?K6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:K6=function(t){return Object.getOwnPropertyNames(t)};function Bnt(e){console&&console.warn&&console.warn(e)}var pne=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}fO.exports=Jc;fO.exports.once=Gnt;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var vne=10;function J6(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Jc,"defaultMaxListeners",{enumerable:!0,get:function(){return vne},set:function(e){if(typeof e!="number"||e<0||pne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");vne=e}});Jc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Jc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||pne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function gne(e){return e._maxListeners===void 0?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return gne(this)};Jc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")dne(l,this,r);else for(var u=l.length,c=bne(l,u),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Bnt(s)}return e}Jc.prototype.addListener=function(t,r){return mne(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return mne(this,t,r,!0)};function Nnt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function yne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Nnt.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return J6(r),this.on(t,yne(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return J6(r),this.prependListener(t,yne(this,t,r)),this};Jc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(J6(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Unt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Jc.prototype.off=Jc.prototype.removeListener;Jc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function _ne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Vnt(i):bne(i,i.length)}Jc.prototype.listeners=function(t){return _ne(this,t,!0)};Jc.prototype.rawListeners=function(t){return _ne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):xne.call(e,t)};Jc.prototype.listenerCount=xne;function xne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Jc.prototype.eventNames=function(){return this._eventsCount>0?K6(this._events):[]};function bne(e,t){for(var r=new Array(t),n=0;n{"use strict";var hO=Sb().EventEmitter,jnt={init:function(e){if(e._ev instanceof hO)return e;var t=new hO,r=new hO;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(l){if(l.listener){if(i.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(i,[r])}else return l.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var Ane=Pr(),Wnt=xb().dfltConfig;function Xnt(e,t){for(var r=[],n,i=0;iWnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ly.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ly.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ly.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";Ene.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var R3=ye(ed=>{"use strict";var x0=Oa(),eM=Pr(),Q6=Gl(),vO=b3(),Znt=dO(),Ynt=WS(),Knt=xb().configAttributes,kne=mc(),Ag=eM.extendDeepAll,P3=eM.isPlainObject,Jnt=eM.isArrayOrTypedArray,eL=eM.nestedProperty,$nt=eM.valObjectMeta,pO="_isSubplotObj",tL="_isLinkedToArray",Qnt="_arrayAttrRegexps",Lne="_deprecated",gO=[pO,tL,Qnt,Lne];ed.IS_SUBPLOT_OBJ=pO;ed.IS_LINKED_TO_ARRAY=tL;ed.DEPRECATED=Lne;ed.UNDERSCORE_ATTRS=gO;ed.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=tat(t)}),{defs:{valObjects:$nt,metaKeys:gO.concat(["description","role","editType","impliedEdits"]),editType:{traces:kne.traces,layout:kne.layout},impliedEdits:{}},traces:e,layout:rat(),frames:iat(),animation:I3(Ynt),config:I3(Knt)}};ed.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(gO.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!ed.isValObject(o)&&P3(o)&&a!=="impliedEdits"&&ed.crawl(o,t,i+1,s)}})};ed.isValObject=function(e){return e&&e.valType!==void 0};ed.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),n=n.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(i,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)Jnt(f)&&t.push(a+h);else if(n[u]){if(Array.isArray(f))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!$6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function $6(e){return e===Math.round(e)&&e>=0}function tat(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=Ag({},Q6),a=Ag({},t.attributes);ed.crawl(a,function(l,u,c,f,h){eL(i,h).set(void 0),l===void 0&&eL(a,h).set(void 0)}),Ag(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,Ag(n,a),r.attributes&&Ag(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:I3(n)};if(t.layoutAttributes){var s={};Ag(s,t.layoutAttributes),o.layoutAttributes=I3(s)}return t.animatable||ed.crawl(o,function(l){ed.isValObject(l)&&"anim"in l&&delete l.anim}),o}function rat(){var e={},t,r;Ag(e,vO);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var D3=Pr(),lat=Gl(),a_="templateitemname",mO={name:{valType:"string",editType:"none"}};mO[a_]={valType:"string",editType:"calc"};Mb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=mO.name,t[a_]=mO[a_],t};Mb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=D3.coerce(a,{},lat,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};Mb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);D3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};Mb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Rne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[a_]=u[a_];if(!Ine(f))return c._template=i,c;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function l(){s={},a&&(s[o]={},s[o][a_]=a)}l();function u(d,v){s[d]=v}function c(d,v){a?D3.nestedProperty(s[o],d).set(v):s[o+"."+d]=v}function f(){var d=s;return l(),d}function h(d,v){d&&c(d,v);var m=f();for(var b in m)D3.nestedProperty(e,b).set(m[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var Rh=ye((Tnr,Dne)=>{"use strict";var tM=m3().counter;Dne.exports={idRegex:{x:tM("x","( domain)?"),y:tM("y","( domain)?")},attrRegex:tM("[xy]axis"),xAxisMatch:tM("xaxis"),yAxisMatch:tM("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var df=ye(Sp=>{"use strict";var uat=Oa(),yO=Rh();Sp.id2name=function(t){if(!(typeof t!="string"||!t.match(yO.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Sp.name2id=function(t){if(t.match(yO.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Sp.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(yO.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].slice(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};Sp.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=Sp.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Sp.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Fne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function cat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function fat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}zne.exports={clearOutlineControllers:cat,clearOutline:fat}});var rL=ye((Mnr,qne)=>{"use strict";qne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Id=ye(nL=>{"use strict";var iL=Oa(),Enr=Rh().SUBPLOT_PATTERN;nL.getSubplotCalcData=function(e,t,r){var n=iL.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var hat=Oa(),F3=Pr();Eb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=Eb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){One(e,o,i.cache),i.check=function(){if(a){var c=One(e,o,i.cache);return c.changed&&n&&i.lookupTable[c.value]!==void 0&&(i.disable(),Promise.resolve(n({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[c.value]})).then(i.enable,i.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+i;F3.isPlainObject(a)?_O(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((Lnr,tae)=>{"use strict";var Zne=qa(),vat=d3().timeFormatLocale,pat=kq().formatLocale,rM=Eo(),gat=Cq(),Xl=Oa(),Yne=R3(),mat=vl(),Na=Pr(),Kne=ka(),Vne=fs().BADNUM,Mp=df(),yat=o_().clearOutline,_at=rL(),xO=WS(),xat=dO(),bat=Id().getModuleCalcData,Gne=Na.relinkPrivateKeys,kb=Na._,xa=tae.exports={};Na.extendFlat(xa,Xl);xa.attributes=Gl();xa.attributes.type.values=xa.allTypes;xa.fontAttrs=ec();xa.layoutAttributes=b3();var oL=Une();xa.executeAPICommand=oL.executeAPICommand;xa.computeAPICommandBindings=oL.computeAPICommandBindings;xa.manageCommandObserver=oL.manageCommandObserver;xa.hasSimpleAPICommandBindings=oL.hasSimpleAPICommandBindings;xa.redrawText=function(e){return e=Na.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Xl.getComponentMethod("annotations","draw")(e),Xl.getComponentMethod("legend","draw")(e),Xl.getComponentMethod("colorbar","draw")(e),t(xa.previousPromises(e)))},300)})};xa.resize=function(e){e=Na.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||Na.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Na.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Xl.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};xa.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};xa.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Na.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Kne.defaultLine,"pointer-events":"all"}).each(function(){var u=Zne.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&wat(e,a),o.text(a.text()&&s.text()?" - ":"")}};function wat(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){xa.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}xa.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Zne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=xa.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var Tat=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Aat=["year","month","dayMonth","dayMonthYear"];xa.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||xa.createTransitionData(e),i._dfltTitle={plot:kb(e,"Click to enter Plot title"),subtitle:kb(e,"Click to enter Plot subtitle"),x:kb(e,"Click to enter X axis title"),y:kb(e,"Click to enter Y axis title"),colorbar:kb(e,"Click to enter Colorscale title"),annotation:kb(e,"new text")},i._traceWord=kb(e,"trace");var h=Hne(e,Tat);if(i._mapboxAccessToken=c.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,v=n.height;xa.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=v),xa.sanitizeMargins(i)}else{xa.supplyLayoutGlobalDefaults(a,i,h);var m=!a.width||!a.height,b=i.autosize,p=c.autosizable,k=m&&(b||p);k?xa.plotAutoSize(e,a,i):m&&xa.sanitizeMargins(i),!b&&m&&(a.width=i.width,a.height=i.height)}i._d3locale=Eat(h,i.separators),i._extraFormat=Hne(e,Aat),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var M=i._subplots=Mat(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Sat(o,l),xa.supplyDataDefaults(l,s,a,i);var x=Object.keys(T.x),C=Object.keys(T.y);if(x.length>1&&C.length>1){for(Xl.getComponentMethod("grid","sizeDefaults")(a,i),f=0;f15&&C.length>15&&i.shapes.length===0&&i.images.length===0,xa.linkSubplots(s,i,o,n),xa.cleanPlot(s,i,o,n);var z=!!(n._has&&n._has("cartesian")),q=!!(i._has&&i._has("cartesian")),V=z,G=q;V&&!G?n._bgLayer.remove():G&&!V&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&yat({_fullLayout:n}),kat(s,i),Gne(i,n),Xl.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var Z=i._tracePreGUI,j={},N;for(N in Z)j[N]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=xa.layoutAttributes.width.min,h=xa.layoutAttributes.height.min;o1,v=!r.height&&Math.abs(n.height-s)>1;(v||d)&&(d&&(n.width=o),v&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),xa.sanitizeMargins(n)};xa.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Xl.componentsRegistry,a=t._basePlotModules,o,s,l,u=Xl.subplotsRegistry.cartesian;for(o in i)l=i[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Xl.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(Na.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var p=(r.t+r.b)/h;p>1&&(r.t/=p,r.b/=p)}var k=r.xl!==void 0?r.xl:r.x,M=r.xr!==void 0?r.xr:r.x,T=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:k,size:r.l+m},r:{val:M,size:r.r+m},b:{val:L,size:r.b+m},t:{val:T,size:r.t+m}},v[t]=1}if(!n._replotting)return xa.doAutoMargin(e)}};function Lat(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Mp.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}xa.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),Jne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=Na.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,m=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var p=e._fullLayout._reservedMargin;for(var k in p)for(var M in p[k]){var T=p[k][M];o[M]=Math.max(o[M],T)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var L in o){var x=0;for(var C in h)C!=="base"&&rM(h[C][L].size)&&(x=h[C][L].size>x?h[C][L].size:x);var S=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-S)}for(var g in h){var P=h[g].l||{},E=h[g].b||{},z=P.val,q=P.size,V=E.val,G=E.size,Z=r-o.r-o.l,j=n-o.t-o.b;for(var N in h){if(rM(q)&&h[N].r){var H=h[N].r.val,ie=h[N].r.size;if(H>z){var ae=(q*H+(ie-Z)*z)/(H-z),_e=(ie*(1-z)+(q-Z)*(1-H))/(H-z);ae+_e>l+u&&(l=ae,u=_e)}}if(rM(G)&&h[N].t){var Ee=h[N].t.val,Ce=h[N].t.size;if(Ee>V){var ge=(G*Ee+(Ce-j)*V)/(Ee-V),re=(Ce*(1-V)+(G-j)*(1-Ee))/(Ee-V);ge+re>f+c&&(f=ge,c=re)}}}}}var Se=Na.constrain(r-a.l-a.r,$ne,v),ke=Na.constrain(n-a.t-a.b,Qne,m),be=Math.max(0,r-Se),Be=Math.max(0,n-ke);if(be){var Le=(l+u)/be;Le>1&&(l/=Le,u/=Le)}if(Be){var me=(f+c)/Be;me>1&&(f/=me,c/=me)}if(i.l=Math.round(l)+o.l,i.r=Math.round(u)+o.r,i.t=Math.round(c)+o.t,i.b=Math.round(f)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(xa.didMarginChange(s,i)||Lat(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Pe=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};xa.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&xa.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Na.isPlainObject(h)){var v={},m;return Object.keys(h).sort().forEach(function(M){if(["_","["].indexOf(M.charAt(0))===-1){if(typeof h[M]=="function"){d&&(v[M]="_function");return}if(r==="keepdata"){if(M.slice(-3)==="src")return}else if(r==="keepstream"){if(m=h[M+"src"],typeof m=="string"&&m.indexOf(":")>0&&!Na.isPlainObject(h.stream))return}else if(r!=="keepall"&&(m=h[M+"src"],typeof m=="string"&&m.indexOf(":")>0))return;v[M]=u(h[M],d)}}),v}var b=Array.isArray(h),p=Na.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var k=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Na.isArrayBuffer(k)?gat.encode(k):k},d)}return b?h.map(function(M){return u(M,d)}):p?Na.simpleMap(h,Na.identity):Na.isJSDate(h)?Na.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var d=u(h);return t&&delete d.fit,d})};if(!t&&(c.layout=u(s),i)){var f=s._size;c.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(c.frames=u(l)),a&&(c.config=u(e._context,!0)),n==="object"?c:JSON.stringify(c)};xa.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xl.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function v(){return h++,function(){d++,!n&&d===h&&s(f)}}r.runFn(v),setTimeout(v())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Xl.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var u=[xa.previousPromises,l,r.prepareFn,xa.rehover,xa.reselect,o],c=Na.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}xa.doCalcdata=function(e,t){var r=Mp.list(e),n=e._fullData,i=e._fullLayout,a,o,s,l,u=new Array(n.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;l--)if(L[l].enabled){a._indexToPoints=L[l]._indexToPoints;break}o&&o.calc&&(T=o.calc(e,a))}(!Array.isArray(T)||!T[0])&&(T=[{x:Vne,y:Vne}]),T[0].t||(T[0].t={}),T[0].trace=a,u[k]=T}}for(Wne(r,n,i),s=0;s{"use strict";Cb.xmlns="http://www.w3.org/2000/xmlns/";Cb.svg="http://www.w3.org/2000/svg";Cb.xlink="http://www.w3.org/1999/xlink";Cb.svgAttrs={xmlns:Cb.svg,"xmlns:xlink":Cb.xlink}});var Dh=ye((Inr,rae)=>{"use strict";rae.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Zl=ye(b0=>{"use strict";var Fh=qa(),Py=Pr(),Dat=Py.strTranslate,bO=Wp(),Fat=Dh().LINE_SPACING,zat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(zat),a=Fh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=Yat(e.node(),n);l&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};Nat(i[2],c,function(f,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=f&&f.select("svg");if(!v||!v.node()){s(),l();return}var m=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});m.node().appendChild(v.node()),h&&h.node()&&v.node().insertBefore(h.node().cloneNode(!0),v.node().firstChild);var b=d.width,p=d.height;v.attr({class:o,height:p,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",M=v.select("g");M.attr({fill:k,stroke:k});var T=M.node().getBoundingClientRect(),L=T.width,x=T.height;(L>b||x>p)&&(v.style("overflow","hidden"),T=v.node().getBoundingClientRect(),L=T.width,x=T.height);var C=+e.attr("x"),S=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")m.attr({transform:"rotate("+[-90,C,S]+")"+Dat(-L/2,P-x/2)});else if(o[0]==="l")S=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,S=P;else{var E=e.attr("text-anchor");C=C-L*(E==="middle"?.5:E==="end"?1:0),S=S+P-x/2}v.attr({x:C,y:S}),r&&r.call(e,m),l(m)})})):s(),e};var qat=/(<|<|<)/g,Oat=/(>|>|>)/g;function Bat(e){return e.replace(qat,"\\lt ").replace(Oat,"\\gt ")}var iae=[["$","$"],["\\(","\\)"]];function Nat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Py.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Py.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:iae},displayAlign:"left"})},u=function(){a=Py.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=iae},c=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},f=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var k="math-output-"+Py.randstr({},64);s=Fh.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Bat(e));var M=s.node();return n===2?MathJax.Hub.Typeset(M):MathJax.typeset([M])},d=function(){var k=s.select(n===2?".MathJax_SVG":".MathJax"),M=!k.empty()&&s.select("svg").node();if(!M)Py.log("There was an error in the tex syntax.",e),r();else{var T=M.getBoundingClientRect(),L;n===2?L=Fh.select("body").select("#MathJax_SVG_glyphs"):L=k.select("defs"),r(k,L,T)}s.remove()},v=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},m=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},p=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(l,c,h,d,v,b):n===3&&(u(),f(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),m(),p()}))}var sae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Uat={sub:"0.3em",sup:"-0.6em"},Vat={sub:"-0.21em",sup:"0.42em"},nae="\u200B",aae=["http:","https:","mailto:","",void 0,":"],lae=b0.NEWLINES=/(\r\n?|\n)/g,TO=/(<[^<>]*>)/,AO=/<(\/?)([^ >]*)(\s+(.*))?>/i,Gat=//i;b0.BR_TAG_ALL=//gi;var uae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,cae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,fae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Hat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Lb(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&sL(n)}var jat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(TO),s=[],l="",u=0,c=0;ca?s.push(f.slice(0,Math.max(0,m-a))+i):s.push(f.slice(0,m));break}l=""}}return s.join("")};var Wat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Xat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function sL(e){return e.replace(Xat,function(t,r){var n;return r.charAt(0)==="#"?n=Zat(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):n=Wat[r],n||t})}b0.convertEntities=sL;function Zat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function Yat(e,t){t=t.replace(lae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(bO.svg,"tspan");Fh.select(x).attr({class:"line",dy:a*Fat+"em"}),e.appendChild(x),i=x;var C=n;if(n=[{node:x}],C.length>1)for(var S=1;S.",t);return}var C=n.pop();x!==C.type&&Py.log("Start tag <"+C.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var c=Gat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(TO),h=0;h{"use strict";var Kat=qa(),uL=fd(),nM=Eo(),lL=Pr(),dae=ka(),Jat=yb().isValid;function $at(e,t,r){var n=t?lL.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(lL.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function _ae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var bae=Wq(),eot=bae.FORMAT_LINK,tot=bae.DATE_FORMAT_LINK;function rot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?SO:wae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function SO(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+eot+"."].join(" ")}function wae(e,t){return SO(e,t)+[" And for dates see: "+tot+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Tae.exports={axisHoverFormat:rot,descriptionOnlyNumbers:SO,descriptionWithDates:wae}});var Rd=ye((qnr,Nae)=>{"use strict";var Aae=ec(),z3=Ih(),Bae=Pd().dash,EO=Ao().extendFlat,Sae=vl().templatedArray,znr=Ll().templateFormatStringDescription,Mae=vf().descriptionWithDates,iot=fs().ONEDAY,mm=Rh(),not=mm.HOUR_PATTERN,aot=mm.WEEKDAY_PATTERN,MO={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},oot=EO({},MO,{values:MO.values.slice().concat(["sync"])});function Eae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var kae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Cae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Lae={valType:"data_array",editType:"ticks"},Pae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Iae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Rae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Dae={valType:"color",dflt:z3.defaultLine,editType:"ticks"},Fae={valType:"color",dflt:z3.lightLine,editType:"ticks"};function zae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var qae=EO({},Bae,{editType:"ticks"}),Oae={valType:"boolean",editType:"ticks"};Nae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:z3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Aae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[mm.idRegex.x.toString(),mm.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[mm.idRegex.x.toString(),mm.idRegex.y.toString()],editType:"calc"},rangebreaks:Sae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[aot,not,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:iot},editType:"calc"}),tickmode:oot,nticks:Eae(),tick0:kae,dtick:Cae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Lae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Pae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Iae(),tickwidth:Rae(),tickcolor:Dae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:EO({},Bae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Aae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Mae("tick label")},tickformatstops:Sae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Mae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:z3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Oae,gridcolor:Fae,gridwidth:zae(),griddash:qae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:z3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:z3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",mm.idRegex.x.toString(),mm.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",mm.idRegex.x.toString(),mm.idRegex.y.toString()],editType:"plot"},minor:{tickmode:MO,nticks:Eae("minor"),tick0:kae,dtick:Cae,tickvals:Lae,ticks:Pae,ticklen:Iae("minor"),tickwidth:Rae("minor"),tickcolor:Dae,gridcolor:Fae,gridwidth:zae("minor"),griddash:qae,showgrid:Oae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var cL=ye((Onr,Gae)=>{"use strict";var $c=Rd(),Uae=ec(),Vae=Ao().extendFlat,sot=mc().overrideAll;Gae.exports=sot({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:$c.linecolor,outlinewidth:$c.linewidth,bordercolor:$c.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:$c.minor.tickmode,nticks:$c.nticks,tick0:$c.tick0,dtick:$c.dtick,tickvals:$c.tickvals,ticktext:$c.ticktext,ticks:Vae({},$c.ticks,{dflt:""}),ticklabeloverflow:Vae({},$c.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:$c.ticklen,tickwidth:$c.tickwidth,tickcolor:$c.tickcolor,ticklabelstep:$c.ticklabelstep,showticklabels:$c.showticklabels,labelalias:$c.labelalias,tickfont:Uae({}),tickangle:$c.tickangle,tickformat:$c.tickformat,tickformatstops:$c.tickformatstops,tickprefix:$c.tickprefix,showtickprefix:$c.showtickprefix,ticksuffix:$c.ticksuffix,showticksuffix:$c.showticksuffix,separatethousands:$c.separatethousands,exponentformat:$c.exponentformat,minexponent:$c.minexponent,showexponent:$c.showexponent,title:{text:{valType:"string"},font:Uae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((Nnr,jae)=>{"use strict";var lot=cL(),uot=m3().counter,cot=t_(),Hae=yb().scales,Bnr=cot(Hae);function fL(e){return"`"+e+"`"}jae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Hae[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[n],f="in "+fL(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",m=n+"max",b=n+"mid",p=fL(u+d),k=fL(u+v),M=fL(u+m),T=k+" and "+M,L={};L[v]=L[m]=void 0;var x={};x[d]=!1;var C={};return c==="color"&&(C.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(C.color.anim=!0)),C[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},C[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},C[m]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},C[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},C.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(C.showscale={valType:"boolean",dflt:o,editType:"calc"},C.colorbar=lot),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:uot("coloraxis"),dflt:null,editType:"calc"}),C}});var CO=ye((Unr,Wae)=>{"use strict";var fot=Ao().extendFlat,hot=Tu(),kO=yb().scales;Wae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:kO.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:kO.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:kO.RdBu,editType:"calc"}},coloraxis:fot({_isSubplotObj:!0,editType:"calc"},hot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var LO=ye((Vnr,Xae)=>{"use strict";var dot=Pr();Xae.exports=function(t){return dot.isPlainObject(t.colorbar)}});var RO=ye(IO=>{"use strict";var PO=Eo(),Zae=Pr(),Yae=fs(),vot=Yae.ONEDAY,pot=Yae.ONEWEEK;IO.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?vot:1;if(!e)return a;if(PO(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.slice(1);return s=PO(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};IO.tick0=function(e,t,r,n){if(t==="date")return Zae.cleanDate(e,Zae.dateTick0(r,n%pot===0?1:0));if(!(n==="D1"||n==="D2"))return PO(e)?Number(e):0}});var Pb=ye((Hnr,Jae)=>{"use strict";var Kae=RO(),got=Pr().isArrayOrTypedArray,mot=Yd().isTypedArraySpec,yot=Yd().decodeTypedArraySpec;Jae.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(k){var M=s[k];return mot(M)&&(M=yot(M)),M!==void 0?M:(l._template||{})[k]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=got(d)?"array":h?"linear":"auto",m=n(u+"tickmode",v);if(m==="auto"||m==="sync")n(u+"nticks");else if(m==="linear"){var b=l.dtick=Kae.dtick(h,i);l.tick0=Kae.tick0(f,i,r.calendar,b)}else if(i!=="multicategory"){var p=n(u+"tickvals");p===void 0?l.tickmode="auto":o||n("ticktext")}}});var q3=ye((jnr,Qae)=>{"use strict";var DO=Pr(),$ae=Rd();Qae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?$ae.minor:$ae,u=a?"minor.":"",c=DO.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=DO.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=DO.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(u+"ticks",!a&&i.outerTicks||c||f||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var FO=ye((Wnr,eoe)=>{"use strict";eoe.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Kd=ye((Xnr,toe)=>{"use strict";var hL=Pr(),_ot=vl();toe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=hL.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=_ot.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var zO=Pr(),xot=ka().contrast,roe=Rd(),bot=FO(),wot=Kd();ioe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");zO.isPlainObject(o)||delete r.labelalias;var s=bot(t),l=n("showticklabels");if(l){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?xot(a.bgColor):c&&c!==roe.color.dflt?c:u.color;if(zO.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var v=n("tickformat");wot(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Tot}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!v&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function Tot(e,t){function r(i,a){return zO.coerce(e,t,roe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var l_=ye((Ynr,noe)=>{"use strict";var Aot=FO();noe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Aot(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var qO=ye((Knr,aoe)=>{"use strict";var u_=Pr(),Sot=vl(),Mot=Pb(),Eot=q3(),kot=s_(),Cot=l_(),Lot=cL();aoe.exports=function(t,r,n){var i=Sot.newContainer(r,"colorbar"),a=t.colorbar||{};function o(E,z){return u_.coerce(a,i,Lot,E,z)}var s=n.margin||{t:0,b:0,l:0,r:0},l=n.width-s.l-s.r,u=n.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:f?u:l);var v=o("yref"),m=o("xref"),b=v==="paper",p=m==="paper",k,M,T,L="left";f?(T="middle",L=p?"left":"right",k=p?1.02:1,M=.5):(T=b?"bottom":"top",L="center",k=.5,M=b?1.02:1),u_.coerce(a,i,{x:{valType:"number",min:p?-2:0,max:p?3:1,dflt:k}},"x"),u_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:M}},"y"),o("xanchor",L),o("xpad"),o("yanchor",T),o("ypad"),u_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=u_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),Mot(a,i,o,"linear");var C=n.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};x.indexOf("inside")!==-1&&(S.bgColor="black"),Cot(a,i,o,"linear",S),kot(a,i,o,"linear",S),Eot(a,i,o,"linear",S),o("title.text",n._dfltTitle.colorbar);var g=i.showticklabels?i.tickfont:C,P=u_.extendFlat({},C,{family:g.family,size:u_.bigFont(g.size)});u_.coerceFont(o,"title.font",P),o("title.side",f?"top":"right")}});var td=ye((Jnr,loe)=>{"use strict";var ooe=Eo(),BO=Pr(),Pot=LO(),Iot=qO(),soe=yb().isValid,Rot=Oa().traceIs;function OO(e,t){var r=t.slice(0,t.length-1);return t?BO.nestedProperty(e,r).get()||{}:e}loe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=OO(t,o),c=OO(r,o),f=OO(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(l){var d=n._colorAxes||{},v=i(o+"coloraxis");if(v){var m=Rot(r,"contour")&&BO.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==m&&(b[0]=!1,BO.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[m,r,[h]];return}}var p=u[s+"min"],k=u[s+"max"],M=ooe(p)&&ooe(k)&&p{"use strict";var uoe=Pr(),Dot=vl(),coe=CO(),Fot=td();foe.exports=function(t,r){function n(f,h){return uoe.coerce(t,r,coe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return uoe.coerce(a,o,coe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Dot.newContainer(r,l,"coloraxis"),o._name=l,Fot(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var zot=Pr(),qot=pv().hasColorscale,Oot=pv().extractOpts;doe.exports=function(t,r){function n(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function i(c,f){var h=f.container?zot.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Oot(h),v=d.auto;(v||d.min===void 0)&&n(h,f.min),(v||d.max===void 0)&&n(h,f.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var poe=Eo(),NO=Pr(),Bot=pv().extractOpts;goe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?NO.nestedProperty(r,o).get():r,l=Bot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return NO.aggNums(Math.min,null,a)},v=function(){return NO.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&poe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&poe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?m=i.colorscale.sequential:m=i.colorscale.sequentialminus,l._sync("colorscale",m)}}});var tc=ye((tar,moe)=>{"use strict";var dL=yb(),O3=pv();moe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:CO(),supplyLayoutDefaults:hoe(),handleDefaults:td(),crossTraceDefaults:voe(),calc:gv(),scales:dL.scales,defaultScale:dL.defaultScale,getScale:dL.get,isValidScale:dL.isValid,hasColorscale:O3.hasColorscale,extractOpts:O3.extractOpts,extractScale:O3.extractScale,flipScale:O3.flipScale,makeColorScaleFunc:O3.makeColorScaleFunc,makeColorScaleFuncFromTrace:O3.makeColorScaleFuncFromTrace}});var Ru=ye((rar,_oe)=>{"use strict";var yoe=Pr(),Not=Yd().isTypedArraySpec;_oe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return yoe.isPlainObject(t)&&(yoe.isArrayOrTypedArray(t.size)||Not(t.size))}}});var B3=ye((iar,xoe)=>{"use strict";var Uot=Eo();xoe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var l=o(s/r);return Uot(l)&&l>0?Math.max(l,a):0}}});var ip=ye(mv=>{"use strict";var vL=Pr();mv.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};mv.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{Toe.exports=Wot;var UO={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},jot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Wot(e){var t=[];return e.replace(jot,function(r,n,i){var a=n.toLowerCase();for(i=Zot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==UO[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var Yot=aM(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},hs="M0,0Z",Aoe=Math.sqrt(2),c_=Math.sqrt(3),VO=Math.PI,GO=Math.cos,HO=Math.sin;Coe.exports={circle:{n:0,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?vs(t,r,i):i}},square:{n:1,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.3,2);return vs(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.4,2),i=ca(e*1.2,2);return vs(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.8/Aoe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return vs(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/c_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/c_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/c_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/c_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.951,2),i=ca(e*.588,2),a=ca(-e,2),o=ca(e*-.309,2),s=ca(e*.809,2);return vs(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e/2,2),a=ca(e*c_/2,2);return vs(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e/2,2),a=ca(e*c_/2,2);return vs(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.924,2),i=ca(e*.383,2);return vs(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(ds(t))return hs;var n=e*1.4,i=ca(n*.225,2),a=ca(n*.951,2),o=ca(n*.363,2),s=ca(n*.588,2),l=ca(-n,2),u=ca(n*-.309,2),c=ca(n*.118,2),f=ca(n*.809,2),h=ca(n*.382,2);return vs(t,r,"M"+i+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+i+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.66,2),i=ca(e*.38,2),a=ca(e*.76,2);return vs(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*c_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return vs(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*c_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return vs(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.1,2),i=ca(e*2,2),a="A "+i+","+i+" 0 0 1 ";return vs(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2),i=ca(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return vs(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.7,2),i=ca(e*1.4,2);return vs(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2),i=ca(e*.7,2);return vs(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e/Aoe,2);return vs(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.3,2);return vs(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.3,2),i=ca(e*.65,2);return vs(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*.85,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(ds(t))return hs;var n=ca(e/2,2),i=ca(e,2);return vs(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2);return vs(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2);return vs(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(ds(t))return hs;var n=VO/2.5,i=2*e*GO(n),a=2*e*HO(n);return vs(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(ds(t))return hs;var n=VO/4,i=2*e*GO(n),a=2*e*HO(n);return vs(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function ds(e){return e===null}var Soe,Moe,Eoe,koe;function vs(e,t,r){if((!e||e%360===0)&&!t)return r;if(Eoe===e&&koe===t&&Soe===r)return Moe;Eoe=e,koe=t,Soe=r;function n(b,p){var k=GO(b),M=HO(b),T=p[0],L=p[1]+(t||0);return[T*k-L*M,T*M+L*k]}for(var i=e/180*VO,a=0,o=0,s=Yot(r),l="",u=0;u{"use strict";var dd=qa(),Du=Pr(),Kot=Du.numberFormat,Fb=Eo(),KO=fd(),gL=Oa(),Jd=ka(),Jot=tc(),sM=Du.strTranslate,mL=Zl(),$ot=Wp(),Qot=Dh(),est=Qot.LINE_SPACING,Noe=X1().DESELECTDIM,tst=Ru(),rst=B3(),ist=ip().appendArrayPointValue,Ta=Koe.exports={};Ta.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Jd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),c&&e.style("text-transform",jO(ast(c))),l&&e.style("text-shadow",l==="auto"?mL.makeTextShadow(Jd.contrast(a)):jO(l)),u&&e.style("text-decoration-line",jO(ost(u)))};function jO(e){return e==="none"?void 0:e}var nst={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function ast(e){return nst[e]}function ost(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Ta.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Ta.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Ta.setRect=function(e,t,r,n,i){e.call(Ta.setPosition,t,r).call(Ta.setSize,n,i)};Ta.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Fb(i)&&Fb(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",sM(i,a));else return!1;return!0};Ta.translatePoints=function(e,t,r){e.each(function(n){var i=dd.select(this);Ta.translatePoint(n,i,t,r)})};Ta.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Ta.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,l=gL.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Ta.hideOutsideRangePoint(u,dd.select(this),r,n,o,s)})})}};Ta.crispRound=function(e,t,r){return!t||!Fb(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Ta.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Jd.stroke(t,n||a.color),Ta.dashLine(t,s,o)};Ta.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";dd.select(this).call(Jd.stroke,r||a.color).call(Ta.dashLine,s,o)})};Ta.dashLine=function(e,t,r){r=+r||0,t=Ta.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Ta.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Uoe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Ta.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var l=o(i.bgcolor,0,null),u=o(i.fgcolor,0,null),c=i.fgopacity,f=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Ta.pattern(e,"point",r,d,s,f,h,void 0,i.fillmode,l,u,c)}else if(a&&a.type!=="none"){var v=a.type,m="scatterfill-"+t.uid;if(n&&(m="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,p;v==="horizontal"?(b={x:a.start,y:0},p={x:a.stop,y:0}):v==="vertical"&&(b={x:0,y:a.start},p={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),p.x=t._xA.c2p(p.x===void 0?t._extremes.x.max[0].val:p.x,!0),p.y=t._yA.c2p(p.y===void 0?t._extremes.y.max[0].val:p.y,!0),e.call(Hoe,r,m,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Ta.gradient,r,m,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Jd.fill,t.fillcolor)}Ta.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Uoe(e,i,t,!1)};Ta.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=dd.select(this);n[0].trace&&Uoe(i,n[0].trace,t,r)})};var Poe=Loe();Ta.symbolNames=[];Ta.symbolFuncs=[];Ta.symbolBackOffs=[];Ta.symbolNeedLines={};Ta.symbolNoDot={};Ta.symbolNoFill={};Ta.symbolList=[];Object.keys(Poe).forEach(function(e){var t=Poe[e],r=t.n;Ta.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Ta.symbolNames[r]=e,Ta.symbolFuncs[r]=t.f,Ta.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Ta.symbolNeedLines[r]=!0),t.noDot?Ta.symbolNoDot[r]=!0:Ta.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Ta.symbolNoFill[r]=!0)});var sst=Ta.symbolNames.length,lst="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ta.symbolNumber=function(e){if(Fb(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Ta.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=sst||e>=400?0:Math.floor(Math.max(e,0))};function Voe(e,t,r,n){var i=e%100;return Ta.symbolFuncs[i](t,r,n)+(e>=200?lst:"")}var Ioe=Kot("~f"),Goe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Ta.gradient=function(e,t,r,n,i,a){var o=Goe[n];return Hoe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Hoe(e,t,r,n,i,a,o,s,l,u){var c=i.length,f;n==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=n.ms2mrc(e.ms),e.mrc=l,n.selectedSizeFn&&(l=e.mrc=n.selectedSizeFn(e));var u=Ta.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=QO(e,r),f=$O(e,r);t.attr("d",Voe(u,l,c,f))}var h=!1,d,v,m;if(e.so)m=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;m=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):Du.isArrayOrTypedArray(s.color)?v=Jd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Jd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}let p=e.mld||(s||{}).dash;if(p&&Ta.dashLine(t,p,m),e.om)t.call(Jd.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:m)+"px");var k=o.gradient,M=e.mgt;M?h=!0:M=k&&k.type,Du.isArrayOrTypedArray(M)&&(M=M[0],Goe[M]||(M=0));var T=o.pattern,L=Ta.getPatternAttr,x=T&&(L(T.shape,e.i,"")||L(T.path,e.i,""));if(M&&M!=="none"){var C=e.mgc;C?h=!0:C=k.color;var S=r.uid;h&&(S+="-"+e.i),Ta.gradient(t,i,S,M,[[0,C],[1,d]],"fill")}else if(x){var g=!1,P=T.fgcolor;!P&&a&&a.color&&(P=a.color,g=!0);var E=L(P,e.i,a&&a.color||null),z=L(T.bgcolor,e.i,null),q=T.fgopacity,V=L(T.size,e.i,8),G=L(T.solidity,e.i,.3);g=g||e.mcc||Du.isArrayOrTypedArray(T.shape)||Du.isArrayOrTypedArray(T.path)||Du.isArrayOrTypedArray(T.bgcolor)||Du.isArrayOrTypedArray(T.fgcolor)||Du.isArrayOrTypedArray(T.size)||Du.isArrayOrTypedArray(T.solidity);var Z=r.uid;g&&(Z+="-"+e.i),Ta.pattern(t,"point",i,Z,x,V,G,e.mcc,T.fillmode,z,E,q)}else Du.isArrayOrTypedArray(d)?Jd.fill(t,d[e.i]):Jd.fill(t,d);m&&Jd.stroke(t,v)}};Ta.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Ta.tryColorscale(r,""),t.lineScale=Ta.tryColorscale(r,"line"),gL.traceIs(e,"symbols")&&(t.ms2mrc=tst.isBubble(e)?rst(e):function(){return(r.size||6)/2}),e.selectedpoints&&Du.extendFlat(t,Ta.makeSelectedPointStyleFns(e)),t};Ta.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(Du.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(T){var L=T.mo===void 0?i.opacity:T.mo;return T.selected?c?l:L:f?u:Noe*L});var h=i.color,d=a.color,v=o.color;(d||v)&&(t.selectedColorFn=function(T){var L=T.mcc||h;return T.selected?d||L:v||L});var m=i.size,b=a.size,p=o.size,k=b!==void 0,M=p!==void 0;return gL.traceIs(e,"symbols")&&(k||M)&&(t.selectedSizeFn=function(T){var L=T.mrc||m/2;return T.selected?k?b/2:L:M?p/2:L}),t};Ta.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:Jd.addOpacity(f,Noe))},t};Ta.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ta.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Jd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,l=r.selectedSizeFn(o);a.attr("d",Voe(Ta.symbolNumber(s),l,QO(o,t),$O(o,t))),o.mrc2=l}),i.length&&e.each(function(a){for(var o=dd.select(this),s=0;s0?r:0}Ta.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Ta.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=dd.select(this),u=a?Du.extractOption(s,t,"txt","texttemplate"):Du.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};ist(h,t,s.i),u=Du.texttemplateString({data:[h,s,t._meta],fallback:t.texttemplatefallback,labels:f,locale:o._d3locale,template:u})}var d=s.tp||t.textposition,v=Woe(s,t),m=n?n(s):s.tc||t.textfont.color;l.call(Ta.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:v,color:m}).text(u).call(mL.convertToTspans,r).call(joe,d,v,s.mrc)})}};Ta.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ta.makeSelectedTextStyleFns(t);e.each(function(n){var i=dd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Woe(n,t);Jd.fill(i,a);var l=gL.traceIs(t,"bar-like");joe(i,o,s,n.mrc2||n.mrc,l)})}};var Roe=.5;Ta.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=l||T>=c&&T<=l)&&(L<=f&&L>=u||L>=f&&L<=u)&&(e=[T,L])}return e}Ta.applyBackoff=Yoe;Ta.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr($ot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Du.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Ta.tester=e,Ta.testref=t};Ta.savedBBoxes={};var XO=0,fst=1e4;Ta.bBox=function(e,t,r){r||(r=Doe(e));var n;if(r){if(n=Ta.savedBBoxes[r],n)return Du.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Doe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var l=Ta.bBox(i,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,n=Ta.savedBBoxes[r],n)return Du.extendFlat({},n)}}var u,c;t?u=e:(c=Ta.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),dd.select(u).attr("transform",null).call(mL.positionText,0,0);var f=u.getBoundingClientRect(),h=Ta.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return XO>=fst&&(Ta.savedBBoxes={},XO=0),r&&(Ta.savedBBoxes[r]=d),XO++,Du.extendFlat({},d)};function Doe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Ta.setClipUrl=function(e,t,r){e.attr("clip-path",JO(t,r))};function JO(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Ta.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Ta.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=sM(t,r),o=o.trim(),e[a]("transform",o),o};Ta.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Ta.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var hst=/\s*sc.*/;Ta.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(hst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var dst=/translate\([^)]*\)\s*$/;Ta.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=dd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(dst);t===1&&r===1?n=[]:n=[sM(o,s),"scale("+t+","+r+")",sM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function $O(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Ta.getMarkerStandoff=$O;var oM=Math.atan2,Ib=Math.cos,U3=Math.sin;function Foe(e,t){var r=t[0],n=t[1];return[r*Ib(e)-n*U3(e),r*U3(e)+n*Ib(e)]}var zoe,qoe,Ooe,Boe,ZO,YO;function QO(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||Du.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)n=s.c2p(e.x),i=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),d=oM(h[1]-i,h[0]-n),v=oM(f[1]-i,f[0]-n),m;if(a==="north")m=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,k=zoe/180*Math.PI,M=qoe/180*Math.PI,T=k-b,L=Ib(M)*U3(T),x=U3(M)*Ib(p)-Ib(M)*U3(p)*Ib(T);m=-oM(L,x)-Math.PI,zoe=u,qoe=c}var C=Foe(d,[Ib(m),0]),S=Foe(v,[U3(m),0]);r=oM(C[1]+S[1],C[0]+S[0])/Math.PI*180,a==="previous"&&!(YO===t.uid&&e.i===ZO+1)&&(r=null)}if(a==="previous"&&!t._geo)if(YO===t.uid&&e.i===ZO+1&&Fb(n)&&Fb(i)){var g=n-Ooe,P=i-Boe,E=t.line&&t.line.shape||"",z=E.slice(E.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=oM(P,g)/Math.PI*180+90}else r=null}return Ooe=n,Boe=i,ZO=e.i,YO=t.uid,r}Ta.getMarkerAngle=QO});var qb=ye((lar,ese)=>{"use strict";var V3=qa(),vst=Eo(),pst=Mc(),eB=Oa(),zb=Pr(),Joe=zb.strTranslate,yL=So(),_L=ka(),G3=Zl(),$oe=X1(),gst=Dh().OPPOSITE_SIDE,Qoe=/ [XY][0-9]* /,tB=1.6,rB=1.6;function mst(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,d=i.title,v=(d&&d.text?d.text:"").trim(),m=!1,b=d&&d.font?d.font:{},p=b.family,k=b.size,M=b.color,T=b.weight,L=b.style,x=b.variant,C=b.textcase,S=b.lineposition,g=b.shadow,P=r.subtitlePropName,E=!!P,z=r.subtitlePlaceholder,q=(i.title||{}).subtitle||{text:"",font:{}},V=(q.text||"").trim(),G=!1,Z=1,j=q.font,N=j.family,H=j.size,ie=j.color,ae=j.weight,_e=j.style,Ee=j.variant,Ce=j.textcase,ge=j.lineposition,re=j.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var ke=e._context.edits[Se];function be(Vt,rr){return Vt===void 0||rr===void 0?!1:Vt.replace(Qoe," % ")===rr.replace(Qoe," % ")}v===""?h=0:be(v,o)&&(ke||(v=""),h=.2,m=!0),E&&(V===""?Z=0:be(V,z)&&(ke||(V=""),Z=.2,G=!0)),r._meta?v=zb.templateString(v,r._meta):n._meta&&(v=zb.templateString(v,n._meta));var Be=v||V||ke,Le;f||(f=zb.ensureSingle(n._infolayer,"g","g-"+t),Le=n._hColorbarMoveTitle);var me=f.selectAll("text."+t).data(Be?[0]:[]);me.enter().append("text"),me.text(v).attr("class",t),me.exit().remove();var Pe=null,ce=t+"-subtitle",He=V||ke;if(E&&(Pe=f.selectAll("text."+ce).data(He?[0]:[]),Pe.enter().append("text"),Pe.text(V).attr("class",ce),Pe.exit().remove()),!Be)return f;function lt(Vt,rr){zb.syncOrAsync([mt,Ht],{title:Vt,subtitle:rr})}function mt(Vt){var rr=Vt.title,tt=Vt.subtitle,je;!c&&Le&&(c={}),c?(je="",c.rotate&&(je+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Le)&&(je+=Joe(0,(c.offset||0)-(Le||0)))):je=null,rr.attr("transform",je);function Ue(Et){if(Et){var pt=V3.select(Et.node().parentNode).select("."+ce);if(!pt.empty()){var jt=Et.node().getBBox();if(jt.height){var or=jt.y+jt.height+tB*H;pt.attr("y",or)}}}}if(rr.style("opacity",h*_L.opacity(M)).call(yL.font,{color:_L.rgb(M),size:V3.round(k,2),family:p,weight:T,style:L,variant:x,textcase:C,shadow:g,lineposition:S}).attr(u).call(G3.convertToTspans,e,Ue),tt&&!tt.empty()){var Ae=f.select("."+t+"-math-group"),rt=rr.node().getBBox(),St=Ae.node()?Ae.node().getBBox():void 0,Tt=St?St.y+St.height+tB*H:rt.y+rt.height+rB*H,dt=zb.extendFlat({},u,{y:Tt});tt.attr("transform",je),tt.style("opacity",Z*_L.opacity(ie)).call(yL.font,{color:_L.rgb(ie),size:V3.round(H,2),family:N,weight:ae,style:_e,variant:Ee,textcase:Ce,shadow:re,lineposition:ge}).attr(dt).call(G3.convertToTspans,e)}return pst.previousPromises(e)}function Ht(Vt){var rr=Vt.title,tt=V3.select(rr.node().parentNode);if(l&&l.selection&&l.side&&v){tt.attr("transform",null);var je=gst[l.side],Ue=l.side==="left"||l.side==="top"?-1:1,Ae=vst(l.pad)?l.pad:2,rt=yL.bBox(tt.node()),St={t:0,b:0,l:0,r:0},Tt=e._fullLayout._reservedMargin;for(var dt in Tt)for(var Et in Tt[dt]){var pt=Tt[dt][Et];St[Et]=Math.max(St[Et],pt)}var jt={left:St.l,top:St.t,right:n.width-St.r,bottom:n.height-St.b},or=l.maxShift||Ue*(jt[l.side]-rt[l.side]),mr=0;if(or<0)mr=or;else{var Ar=l.offsetLeft||0,ei=l.offsetTop||0;rt.left-=Ar,rt.right-=Ar,rt.top-=ei,rt.bottom-=ei,l.selection.each(function(){var jr=yL.bBox(this);zb.bBoxIntersect(rt,jr,Ae)&&(mr=Math.max(mr,Ue*(jr[l.side]-rt[je])+Ae))}),mr=Math.min(or,mr),i._titleScoot=Math.abs(mr)}if(mr>0||or<0){var qr={left:[-mr,0],right:[mr,0],top:[0,-mr],bottom:[0,mr]}[l.side];tt.attr("transform",Joe(qr[0],qr[1]))}}}me.call(lt,Pe);function at(Vt,rr){Vt.text(rr).on("mouseover.opacity",function(){V3.select(this).transition().duration($oe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){V3.select(this).transition().duration($oe.HIDE_PLACEHOLDER).style("opacity",0)})}if(ke&&(v?me.on(".opacity",null):(at(me,o),m=!0),me.call(G3.makeEditable,{gd:e}).on("edit",function(Vt){s!==void 0?eB.call("_guiRestyle",e,a,Vt,s):eB.call("_guiRelayout",e,a,Vt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Vt){this.text(Vt||" ").call(G3.positionText,u.x,u.y)}),E)){if(E&&!v){var ct=me.node().getBBox(),ar=ct.y+ct.height+rB*H;Pe.attr("y",ar)}V?Pe.on(".opacity",null):(at(Pe,z),G=!0),Pe.call(G3.makeEditable,{gd:e}).on("edit",function(Vt){eB.call("_guiRelayout",e,"title.subtitle.text",Vt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Vt){this.text(Vt||" ").call(G3.positionText,Pe.attr("x"),Pe.attr("y"))})}return me.classed("js-placeholder",m),Pe&&!Pe.empty()&&Pe.classed("js-placeholder",G),f}ese.exports={draw:mst,SUBTITLE_PADDING_EM:rB,SUBTITLE_PADDING_MATHJAX_EM:tB}});var xm=ye((uar,ase)=>{"use strict";var yst=qa(),_st=d3().utcFormat,yc=Pr(),xst=yc.numberFormat,ym=Eo(),f_=yc.cleanNumber,bst=yc.ms2DateTime,tse=yc.dateTime2ms,_m=yc.ensureNumber,rse=yc.isArrayOrTypedArray,h_=fs(),xL=h_.FP_SAFE,Sg=h_.BADNUM,wst=h_.LOG_CLIP,Tst=h_.ONEWEEK,bL=h_.ONEDAY,wL=h_.ONEHOUR,ise=h_.ONEMIN,nse=h_.ONESEC,TL=df(),ML=Rh(),AL=ML.HOUR_PATTERN,SL=ML.WEEKDAY_PATTERN;function lM(e){return Math.pow(10,e)}function iB(e){return e!=null}ase.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(T,L){if(T>0)return Math.log(T)/Math.LN10;if(T<=0&&L&&t.range&&t.range.length===2){var x=t.range[0],C=t.range[1];return .5*(x+C-2*wst*Math.abs(x-C))}else return Sg}function o(T,L,x,C){if((C||{}).msUTC&&ym(T))return+T;var S=tse(T,x||t.calendar);if(S===Sg)if(ym(T)){T=+T;var g=Math.floor(yc.mod(T+.05,1)*10),P=Math.round(T-g/10);S=tse(new Date(P))+g/10}else return Sg;return S}function s(T,L,x){return bst(T,L,x||t.calendar)}function l(T){return t._categories[Math.round(T)]}function u(T){if(iB(T)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[T]!==void 0)return t._categoriesMap[T];t._categories.push(typeof T=="number"?String(T):T);var L=t._categories.length-1;return t._categoriesMap[T]=L,L}return Sg}function c(T,L){for(var x=new Array(L),C=0;Ct.range[1]&&(x=!x);for(var C=x?-1:1,S=C*T,g=0,P=0;Pz)g=P+1;else{g=S<(E+z)/2?P:P+1;break}}var q=t._B[g]||0;return isFinite(q)?v(T,t._m2,q):0},p=function(T){var L=t._rangebreaks.length;if(!L)return m(T,t._m,t._b);for(var x=0,C=0;Ct._rangebreaks[C].pmax&&(x=C+1);return m(T,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:_m,t.l2c=t.type==="log"?lM:_m,t.l2p=b,t.p2l=p,t.c2p=t.type==="log"?function(T,L){return b(a(T,L))}:b,t.p2c=t.type==="log"?function(T){return lM(p(T))}:p,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=f_,t.c2d=t.c2r=t.l2d=t.l2r=_m,t.d2p=t.r2p=function(T){return t.l2p(f_(T))},t.p2d=t.p2r=p,t.cleanPos=_m):t.type==="log"?(t.d2r=t.d2l=function(T,L){return a(f_(T),L)},t.r2d=t.r2c=function(T){return lM(f_(T))},t.d2c=t.r2l=f_,t.c2d=t.l2r=_m,t.c2r=a,t.l2d=lM,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return lM(p(T))},t.r2p=function(T){return t.l2p(f_(T))},t.p2r=p,t.cleanPos=_m):t.type==="date"?(t.d2r=t.r2d=yc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(T,L,x){return t.l2p(o(T,0,x))},t.p2d=t.p2r=function(T,L,x){return s(p(T),L,x)},t.cleanPos=function(T){return yc.cleanDate(T,Sg,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=d(T);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=_m,t.r2l=d,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return l(p(T))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(T){return typeof T=="string"&&T!==""?T:_m(T)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=h(T);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=_m,t.r2l=h,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return l(p(T))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(T){return Array.isArray(T)||typeof T=="string"&&T!==""?T:_m(T)},t.setupMultiCategory=function(T){var L=t._traceIndices,x,C,S=t._matchGroup;if(S&&t._categories.length===0){for(var g in S)if(g!==n){var P=r[TL.id2name(g)];L=L.concat(P._traceIndices)}}var E=[[0,{}],[0,{}]],z=[];for(x=0;xP[1]&&(C[g?0:1]=x,S[1]=P[1]),S[0]>=S[1])if(L!==void 0){var E=P[0]+1;x!==void 0&&(E=Math.min(E,P[1])),C[g?0:1]=t.l2r(E)}else x!==void 0&&(C[g?1:0]=t.l2r(P[1]-1))}},t.cleanRange=function(T,L){t._cleanRange(T,L),t.limitRange(T)},t._cleanRange=function(T,L){L||(L={}),T||(T="range");var x=yc.nestedProperty(t,T).get(),C,S;if(t.type==="date"?S=yc.dfltRange(t.calendar):i==="y"?S=ML.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=L.dfltRange||ML.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!x||x.length!==2){yc.nestedProperty(t,T).set(S);return}var g=x[0]===null,P=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=yc.cleanDate(x[0],Sg,t.calendar),x[1]=yc.cleanDate(x[1],Sg,t.calendar)),C=0;C<2;C++)if(t.type==="date"){if(!yc.isDateTime(x[C],t.calendar)){t[T]=S;break}if(t.r2l(x[0])===t.r2l(x[1])){var E=yc.constrain(t.r2l(x[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);x[0]=t.l2r(E-1e3),x[1]=t.l2r(E+1e3);break}}else{if(!ym(x[C]))if(!(g||P)&&ym(x[1-C]))x[C]=x[1-C]*(C?10:.1);else{t[T]=S;break}if(x[C]<-xL?x[C]=-xL:x[C]>xL&&(x[C]=xL),x[0]===x[1]){var z=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=z,x[1]+=z}}},t.setScale=function(T){var L=r._size;if(t.overlaying){var x=TL.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var C=T&&t._r?"_r":"range",S=t.calendar;t.cleanRange(C);var g=t.r2l(t[C][0],S),P=t.r2l(t[C][1],S),E=i==="y";if(E?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var z,q;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;zP&&(V=!V),V&&t._rangebreaks.reverse();var G=V?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(E?P:g)),z=0;zS&&(S+=7,gS&&(S+=24,g=C&&g=C&&T=re.min&&(_ere.max&&(re.max=Ee),Ce=!1)}Ce&&P.push({min:_e,max:Ee})}};for(x=0;x{"use strict";var ose=Eo(),nB=Pr(),Ast=fs().BADNUM,EL=nB.isArrayOrTypedArray,Sst=nB.isDateTime,Mst=nB.cleanNumber,sse=Math.round;use.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(EL(i)&&!i.length)return"-";if(!a&&Pst(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function lse(e){return Math.max(1,(e-1)/1e3)}function Lst(e,t){for(var r=e.length,n=lse(r),i=0,a=0,o={},s=0;si*2}function Pst(e){return EL(e[0])&&EL(e[1])}});var Mg=ye((far,mse)=>{"use strict";var Ist=qa(),dse=Eo(),d_=Pr(),kL=fs().FP_SAFE,Rst=Oa(),Dst=So(),vse=df(),Fst=vse.getFromId,zst=vse.isLinked;mse.exports={applyAutorangeOptions:gse,getAutoRange:aB,makePadFn:oB,doAutoRange:Ost,findExtremes:Bst,concatExtremes:uB};function aB(e,t){var r,n,i=[],a=e._fullLayout,o=oB(a,t,0),s=oB(a,t,1),l=uB(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return d_.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(P=M-o(x)-s(C),P>T?E/P>L&&(S=x,g=C,L=E/P):E/M>L&&(S={val:x.val,nopad:1},g={val:C.val,nopad:1},L=E/M));function z(j,N){return Math.max(j,s(N))}if(f===h){var q=f-1,V=f+1;if(p)if(f===0)i=[0,1];else{var G=(f>0?c:u).reduce(z,0),Z=f/(1-Math.min(.5,G/M));i=f>0?[0,Z]:[Z,0]}else k?i=[Math.max(0,q),Math.max(1,V)]:i=[q,V]}else p?(S.val>=0&&(S={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):k&&(S.val-L*o(S)<0&&(S={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-S.val-cse(t,x.val,C.val))/(M-o(S)-s(g)),i=[S.val-L*o(S),g.val+L*s(g)];return i=gse(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),d_.simpleMap(i,t.l2r||Number)}function cse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=T((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),C=T(r.vpadplus||r.vpad),S=T(r.vpadminus||r.vpad);if(!u){if(k=1/0,M=-1/0,l)for(f=0;f0&&(k=h),h>M&&h-kL&&(k=h),h>M&&h=E;f--)P(f);return{min:n,max:i,opts:r}}function sB(e,t,r,n){pse(e,t,r,n,Nst)}function lB(e,t,r,n){pse(e,t,r,n,Ust)}function pse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else i(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function hse(e){return dse(e)&&Math.abs(e)=t}function Vst(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&CL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&CL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Gst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&CL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&CL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function CL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,n=l)}}return r=Vst(r,t),n=Gst(n,t),[r,n]}});var ho=ye((dar,Nse)=>{"use strict";var w0=qa(),zh=Eo(),j3=Mc(),cM=Oa(),Wo=Pr(),W3=Wo.strTranslate,Ob=Zl(),Hst=qb(),fM=ka(),Xp=So(),jst=Rd(),yse=RO(),har=Rh(),$d=fs(),Wst=$d.ONEMAXYEAR,IL=$d.ONEAVGYEAR,RL=$d.ONEMINYEAR,Xst=$d.ONEMAXQUARTER,dB=$d.ONEAVGQUARTER,DL=$d.ONEMINQUARTER,Zst=$d.ONEMAXMONTH,X3=$d.ONEAVGMONTH,FL=$d.ONEMINMONTH,Zp=$d.ONEWEEK,qv=$d.ONEDAY,v_=qv/2,wm=$d.ONEHOUR,hM=$d.ONEMIN,zL=$d.ONESEC,Yst=$d.ONEMILLI,Kst=$d.ONEMICROSEC,Bb=$d.MINUS_SIGN,OL=$d.BADNUM,vB={K:"zeroline"},pB={K:"gridline",L:"path"},gB={K:"minor-gridline",L:"path"},Cse={K:"tick",L:"path"},_se={K:"tick",L:"text"},xse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},BL=Dh(),uM=BL.MID_SHIFT,Nb=BL.CAP_SHIFT,dM=BL.LINE_SPACING,Jst=BL.OPPOSITE_SIDE,qL=3,$n=Nse.exports={};$n.setConvert=xm();var $st=H3(),Tm=df(),Qst=Tm.idSort,elt=Tm.isLinked;$n.id2name=Tm.id2name;$n.name2id=Tm.name2id;$n.cleanId=Tm.cleanId;$n.list=Tm.list;$n.listIds=Tm.listIds;$n.getFromId=Tm.getFromId;$n.getFromTrace=Tm.getFromTrace;var Lse=Mg();$n.getAutoRange=Lse.getAutoRange;$n.findExtremes=Lse.findExtremes;var tlt=1e-4;function xB(e){var t=(e[1]-e[0])*tlt;return[e[0]-t,e[1]+t]}$n.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],l=n+"ref",u={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Wo.coerce(e,t,u,l)};$n.coerceRefArray=function(e,t,r,n,i,a,o){let s=n.charAt(n.length-1);var l=r._fullLayout._subplots[s+"axis"];let u=n+"ref";var c=e[u];i||(i=l[0]||(typeof a=="string"?a:a[0])),l=l.concat(l.map(h=>h+" domain")),l=l.concat(a||[]),c.length>o?(Wo.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),c=c.slice(0,o)):c.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};$n.saveRangeInitial=function(e,t){for(var r=$n.list(e,"",!0),n=!1,i=0;if*.3||u(n)||u(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.slice(1));a.exactYears>o&&s%12===0?e=$n.tickIncrement(e,"M6","reverse")+qv*1.5:a.exactMonths>o?e=$n.tickIncrement(e,"M1","reverse")+qv*15.5:e-=v_;var l=$n.tickIncrement(e,r);if(l<=n)return l}return e}$n.prepMinorTicks=function(e,t,r){var f,h;if(!((f=t.minor)!=null&&f.dtick)){delete e.dtick;var n=t.dtick&&zh(t._tmin),i;if(n){var a=$n.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Wo.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Wo.simpleMap(i,t.l2r),e._isMinor=!0,$n.prepTicks(e,r),n){var s=zh(t.dtick),l=zh(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?cB(u,c)?u===2*Zp&&c===2*qv&&(e.dtick=Zp):u===2*Zp&&c===3*qv?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=qv:Tse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":cB(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?cB(u,c)||(e.dtick=Tse(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((h=t.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=t.tick0)};function cB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function Tse(e,t){return Math.abs(e/t-1)<.001}$n.prepTicks=function(e,t){var r=Wo.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Wo.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Wo.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,$n.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=RL?u>=RL&&u<=Wst?f=u:f=IL:r===dB&&c>=DL?u>=DL&&u<=Xst?f=u:f=dB:c>=FL?u>=FL&&u<=Zst?f=u:f=X3:r===Zp&&c>=Zp?f=Zp:c>=qv?f=qv:r===v_&&c>=v_?f=v_:r===wm&&c>=wm&&(f=wm);var h;f>=u&&(f=u,h=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var v=84,m=0,b=0;bZp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}$n.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||Wo.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=Wo.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(T?0:1);L--){var x=!L;L?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):T&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var C=L?t:Wo.extendFlat({},t,T?t.minor:{minor:{}});if(x?$n.prepMinorTicks(C,t,r):$n.prepTicks(C,r),C.tickmode==="array"){L?(b=[],v=Ase(t,!x)):(p=[],m=Ase(t,!x));continue}if(C.tickmode==="sync"){b=[],v=slt(t);continue}var S=xB(u),g=S[0],P=S[1],E=zh(C.dtick),z=n==="log"&&!(E||C.dtick.charAt(0)==="L"),q=$n.tickFirst(C,r);if(L){if(t._tmin=q,q=P:G<=P;G=$n.tickIncrement(G,N,c,i)){if(L&&Z++,C.rangebreaks&&!c){if(G=h)break}if(b.length>d||G===V)break;V=G;var H={value:G};L?(z&&G!==(G|0)&&(H.simpleLabel=!0),a>1&&Z%a&&(H.skipLabel=!0),b.push(H)):(H.minor=!0,p.push(H))}}if(!p||p.length<3)l=!1;else{var ie=(p[2].value-p[1].value)*(s?-1:1);Ilt(ie,t.tickformat)||(l=!1,p=p.slice(1))}if(!l)k=b;else{var ae=b.concat(p);o&&b.length&&(ae=ae.slice(1)),ae=ae.sort(function(Vt,rr){return Vt.value-rr.value}).filter(function(Vt,rr,tt){return rr===0||Vt.value!==tt[rr-1].value});var _e=ae.map(function(Vt,rr){return Vt.minor===void 0&&!Vt.skipLabel?rr:null}).filter(function(Vt){return Vt!==null});_e.forEach(function(Vt){l.map(function(rr){var tt=Vt+rr;tt>=0&&tt-1;Le--){if(b[Le].drop){b.splice(Le,1);continue}b[Le].value=hB(b[Le].value,t);var He=t.c2p(b[Le].value);(me?ce>He-Pe:ceh||jeh&&(tt.periodX=h),jei&&hIL)t/=IL,n=i(10),e.dtick="M"+12*bm(t,n,LL);else if(a>X3)t/=X3,e.dtick="M"+bm(t,1,Sse);else if(a>qv){if(e.dtick=bm(t,qv,e._hasDayOfWeekBreaks?[1,2,7,14]:llt),!r){var o=$n.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Wo.dateTick0(e.calendar,2):e.tick0=Wo.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>wm?e.dtick=bm(t,wm,Sse):a>hM?e.dtick=bm(t,hM,Mse):a>zL?e.dtick=bm(t,zL,Mse):(n=i(10),e.dtick=bm(t,n,LL))}else if(e.type==="log"){e.tick0=0;var l=Wo.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,n=i(10),e.dtick="L"+bm(t,n,LL)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):AB(e)?(e.tick0=0,n=1,e.dtick=bm(t,n,ult)):(e.tick0=0,n=i(10),e.dtick=bm(t,n,LL));if(e.dtick===0&&(e.dtick=1),!zh(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function Dse(e){var t=e.dtick;if(e._tickexponent=0,!zh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=qv&&i<=10||t>=qv*15)e._tickround="d";else if(t>=hM&&i<=16||t>=wm)e._tickround="M";else if(t>=zL&&i<=19||t>=hM)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(zh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);zh(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(Z3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!bB(l)||Z3(e.exponentformat)&&e.exponentformat==="SI extended"&&!wB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}$n.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(zh(t))return Wo.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.slice(1));if(a==="M")return Wo.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Rse:Ise,l=e+i*.01,u=Wo.roundUp(Wo.mod(l,1),s,r);return Math.floor(l)+Math.log(w0.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};$n.tickFirst=function(e,t){var r=e.r2l||Number,n=Wo.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&p<=e._length?b:null};if(a&&Wo.isArrayOrTypedArray(e.ticktext)){var f=Wo.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(u=0;u"+s;else{var u=pM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function flt(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=vM(Math.pow(10,o),e,i,n);else if(zh(a)||l==="D"&&(e.minorloglabels==="complete"||Wo.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Wo.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),f=c.split("e"),h=+f[1],d=Math.abs(h),v=e.exponentformat;v==="power"||Z3(v)&&v!=="SI extended"&&bB(h)||Z3(v)&&v==="SI extended"&&wB(h)?(t.text=f[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":Bb)+d+""),t.fontSize*=1.25):(v==="e"||v==="E")&&d>2?t.text=f[0]+v+(h>0?"+":Bb)+d:(t.text=vM(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Wo.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var m=String(t.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function hlt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function dlt(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function vlt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=vM(t.x,e,i,n)}function plt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=glt(a);if(o[1]>=100)t.text=vM(Wo.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=Bb+t.text)}}}else t.text=vM(t.x,e,i,n)}function glt(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function n(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var zse=["f","p","n","\u03BC","m","","k","M","G","T"],mlt=["q","r","y","z","a",...zse,"P","E","Z","Y","R","Q"],Z3=e=>["SI","SI extended","B"].includes(e);function bB(e){return e>14||e<-15}function wB(e){return e>32||e<-30}function ylt(e,t){return Z3(t)?!!(t==="SI extended"&&wB(e)||t!=="SI extended"&&bB(e)):!1}function vM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=$n.getTickFormat(t),u=t.separatethousands;if(n){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:zh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Dse(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,Bb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":Z3(o)&&(e+=o==="SI extended"?mlt[s/3+10]:zse[s/3+5])}return i?Bb+e:e}$n.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*X3}function n(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function i(l,u,c){var f=c||function(v){return v},h=u[0],d=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!d&&typeof d!="number"||f(d)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=n(l,u[0])>=0,d=n(l,u[1])<=0;return(c||h)&&(f||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(c,1).shift())}});var s={false:{left:0,right:0}};return Wo.syncOrAsync(i.map(function(l){return function(){if(l){var u=$n.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=$n.drawOne(e,u,r);return u._shiftPusher&&_B(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Wo.simpleMap(u._r,u.r2l),c}}}))};$n.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=$n.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var v=t.linewidth/2||0;t.ticks==="inside"&&(v+=t.ticklen),_B(t,v,n,!0),_B(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Plt(t,n));var m=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,k=t._mainMirrorPosition,M=t._vals=$n.calcTicks(t),T=[t.mirror,p,k].join("_");for(a=0;a0?tt.bottom-Vt:0,rr))));var rt=0,St=0;if(t._shiftPusher&&(rt=Math.max(rr,tt.height>0?ct==="l"?Vt-tt.left:tt.right-Vt:0),t.title.text!==l._dfltTitle[c]&&(St=(t._titleStandoff||0)+(t._titleScoot||0),ct==="l"&&(St+=kse(t))),t._fullDepth=Math.max(rt,St)),t.automargin){je={x:0,y:0,r:0,l:0,t:0,b:0};var Tt=[0,1],dt=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(ct==="b"?je[ct]=t._depth:(je[ct]=t._depth=Math.max(tt.width>0?Vt-tt.top:0,rr),Tt.reverse()),tt.width>0){var Et=tt.right-(t._offset+t._length);Et>0&&(je.xr=1,je.r=Et);var pt=t._offset-tt.left;pt>0&&(je.xl=0,je.l=pt)}}else if(ct==="l"?(t._depth=Math.max(tt.height>0?Vt-tt.left:0,rr),je[ct]=t._depth-dt):(t._depth=Math.max(tt.height>0?tt.right-Vt:0,rr),je[ct]=t._depth+dt,Tt.reverse()),tt.height>0){var jt=tt.bottom-(t._offset+t._length);jt>0&&(je.yb=0,je.b=jt);var or=t._offset-tt.top;or>0&&(je.yt=1,je.t=or)}je[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Tt[0]],t.title.text!==l._dfltTitle[c]&&(je[ct]+=kse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Ue={x:0,y:0,r:0,l:0,t:0,b:0},Ue[ar]=t.linewidth,t.mirror&&t.mirror!==!0&&(Ue[ar]+=rr),t.mirror===!0||t.mirror==="ticks"?Ue[f]=t._anchorAxis.domain[Tt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Ue[f]=[t._counterDomainMin,t._counterDomainMax][Tt[1]]))}at&&(Ae=cM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Ese(je,t.automargin),Ese(Ue,t.automargin)),j3.autoMargin(e,TB(t),je),j3.autoMargin(e,Ose(t),Ue),j3.autoMargin(e,Bse(t),Ae)}),Wo.syncOrAsync(mt)}};function Ese(e,t){if(e){var r=Object.keys(xse).reduce(function(n,i){return t.indexOf(i)!==-1&&xse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function _lt(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Wo.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(n){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;n=n*f}return e._id.charAt(0)==="x"?function(h){return W3(i+e._offset+e.l2p(mB(h))+r,a+n)}:function(h){return W3(a+n,i+e._offset+e.l2p(mB(h))+r)}};function mB(e){return e.periodX!==void 0?e.periodX:e.x}function Tlt(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(v){return t.indexOf(v)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),l=n("inside"),u=r!=="boundaries"&&(s||a||i||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=qL,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(f+=d*Nb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=qL),l&&c==="top"&&(h-=d*(1-Nb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}$n.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};$n.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(q){return n.indexOf(q)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=i!=="boundaries"&&(u||s||o||l),f=a("inside"),h=n==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&i!=="boundaries",d=0,v=0,m=h?e.ticklen:0;if(f?m*=-1:c&&(m=0),h&&(d+=m,r)){var b=Wo.deg2rad(r);d=m*Math.cos(b)+1,v=m*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(f?-1:1);var p={labelStandoff:d,labelShift:v},k,M,T,L,x=0,C=e.side,S=e._id.charAt(0),g=e.tickangle,P;if(S==="x")P=!f&&C==="bottom"||f&&C==="top",L=P?1:-1,f&&(L*=-1),k=v*L,M=t+d*L,T=P?1:-.2,Math.abs(g)===90&&(f?T+=uM:g===-90&&C==="bottom"?T=Nb:g===90&&C==="top"?T=uM:T=.5,x=uM/2*(g/90)),p.xFn=function(q){return q.dx+k+x*q.fontSize},p.yFn=function(q){return q.dy+M+q.fontSize*T},p.anchorFn=function(q,V){if(c){if(s)return"end";if(l)return"start"}return!zh(V)||V===0||V===180?"middle":V*L<0!==f?"end":"start"},p.heightFn=function(q,V,G){return V<-60||V>60?-.5*G:e.side==="top"!==f?-G:0};else if(S==="y"){if(P=!f&&C==="left"||f&&C==="right",L=P?1:-1,f&&(L*=-1),k=d,M=v*L,T=0,!f&&Math.abs(g)===90&&(g===-90&&C==="left"||g===90&&C==="right"?T=Nb:T=.5),f){var E=zh(g)?+g:0;if(E!==0){var z=Wo.deg2rad(E);x=Math.abs(Math.sin(z))*Nb*L,T=0}}p.xFn=function(q){return q.dx+t-(k+q.fontSize*T)*L+x*q.fontSize},p.yFn=function(q){return q.dy+M+q.fontSize*uM},p.anchorFn=function(q,V){return zh(V)&&Math.abs(V)===90?"middle":P?"end":"start"},p.heightFn=function(q,V,G){return e.side==="right"&&(V*=-1),V<-30?-G:V<30?-.5*G:0}}return p};function NL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}$n.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,NL);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return fM.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xp.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),UL(t,[Cse]),a.attr("transform",r.transFn)};$n.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(p){return p.minor}):[],o=t.showgrid?r.vals.filter(function(p){return!p.minor}):[],s=r.counterAxis;if(s&&$n.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var m=v?h:d;if(m){var b=m.selectAll("path."+n).data(v?o:a,NL);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(p){return fM.stroke(w0.select(this),p.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(p){return Xp.dashStyle(p.minor?t.minor.griddash:t.griddash,p.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(p){return(p.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}UL(t,[pB,gB])}};$n.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=$n.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return Qst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(fM.stroke,t.zerolinecolor||fM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),UL(t,[vB])};$n.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(H){return H.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],NL),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var ie=w0.select(this),ae=e._promises.length;ie.call(Ob.positionText,l.xFn(H),l.yFn(H)).call(Xp.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(Ob.convertToTspans,e),e._promises[ae]?h.push(e._promises.pop().then(function(){d(ie,u)})):d(ie,u)}),UL(t,[_se]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(H){w0.select(this).select("text").call(Ob.positionText,l.xFn(H),l.yFn(H))});function d(H,ie){H.each(function(ae){var _e=w0.select(this),Ee=_e.select(".text-math-group"),Ce=l.anchorFn(ae,ie),ge=r.transFn.call(_e.node(),ae)+(zh(ie)&&+ie!=0?" rotate("+ie+","+l.xFn(ae)+","+(l.yFn(ae)-ae.fontSize/2)+")":""),re=Ob.lineCount(_e),Se=dM*ae.fontSize,ke=l.heightFn(ae,zh(ie)?+ie:0,(re-1)*Se);if(ke&&(ge+=W3(0,ke)),Ee.empty()){var be=_e.select("text");be.attr({transform:ge,"text-anchor":Ce}),be.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Be=Xp.bBox(Ee.node()).width,Le=Be*{end:-.5,start:.5}[Ce];Ee.attr("transform",ge+W3(Le,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var ie=H.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",_e=0,Ee=ae?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var Ce=Wo.simpleMap(t.range,t.r2l);_e=t.l2p(Ce[0])+t._offset,Ee=t.l2p(Ce[1])+t._offset}var ge=Math.min(_e,Ee),re=Math.max(_e,Ee),Se=t.side,ke=1/0,be=-1/0;f.each(function(Pe){var ce=w0.select(this),He=ce.select(".text-math-group");if(He.empty()){var lt=Xp.bBox(ce.node()),mt=0;ae?(lt.right>re||lt.leftre||lt.top+(t.tickangle?0:Pe.fontSize/4)t["_visibleLabelMin_"+Ce._id]?ce.style("display","none"):re.K==="tick"&&!ge&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(f,c+1?c:u);function v(){return h.length&&Promise.all(h)}var m=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){m=t.autotickangles[0];var H=0,ie=[],ae,_e=1;f.each(function(je){H=Math.max(H,je.fontSize);var Ue=t.l2p(je.x),Ae=yB(this),rt=Xp.bBox(Ae.node());_e=Math.max(_e,Ob.lineCount(Ae)),ie.push({top:0,bottom:10,height:10,left:Ue-rt.width/2,right:Ue+rt.width/2+2,width:rt.width+2})});var Ee=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Ce=s.length,ge=Math.abs((s[Ce-1].x-s[0].x)*t._m)/(Ce-1),re=Ee?ge/2:ge,Se=Ee?t.ticklen:H*1.25*_e,ke=Math.sqrt(Math.pow(re,2)+Math.pow(Se,2)),be=re/ke,Be=t.autotickangles.map(function(je){return je*Math.PI/180}),Le=Be.find(function(je){return Math.abs(Math.cos(je))<=be});Le===void 0&&(Le=Be.reduce(function(je,Ue){return Math.abs(Math.cos(je))Z*G&&(z=G,g[S]=P[S]=q[S])}var j=Math.abs(z-E);j-L>0?(j-=L,L*=1+L/j):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[C]=M.p2r(M.r2p(P[C])+x*L),M.autorange==="min"||M.autorange==="max reversed"?(g[0]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0):(M.autorange==="max"||M.autorange==="min reversed")&&(g[1]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[M._name+".range"]=g}var N=Wo.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function Alt(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,NL);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(fM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}$n.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function kse(e){var t=e.title.font.size,r=(e.title.text.match(Ob.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Nb+r*dM):r?t*(r+1)*dM:t}function Slt(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Ob.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Nb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(uM+s*dM));else{var l=pM(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=$n.getPxPosition(e,t),f,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var v;if(t.type!=="multicategory"){var m=t._selections[t._id+"tick"];if(v={selection:m,side:t.side},m&&m.node()&&m.node().parentNode){var b=Xp.getTranslate(m.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,Hst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:v,transform:f,attributes:{x:h,y:d,"text-anchor":"middle"}})}$n.shouldShowZeroLine=function(e,t,r){var n=Wo.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===OL)&&(qse(t,0)||!Mlt(e,t,r,n)||Elt(e,t))};$n.clipEnds=function(e,t){return t.filter(function(r){return qse(e,r.x)})};function qse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=Kst:/%L/.test(t)?e>=Yst:/%[SX]/.test(t)?e>=zL:/%M/.test(t)?e>=hM:/%[HI]/.test(t)?e>=wm:/%p/.test(t)?e>=v_:/%[Aadejuwx]/.test(t)?e>=qv:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=FL:/%[q]/.test(t)?e>=DL:/%[Yy]/.test(t)?e>=RL:!0}});var SB=ye((par,Use)=>{"use strict";Use.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),l=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var MB=ye((gar,Vse)=>{"use strict";var Rlt=SB();Vse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var l;!i.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=n("range",l)))}var u=r.getAutorangeDflt(s,i),c=n("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,i),c=n("autorange",u)),c&&(Rlt(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Hse=ye((mar,Gse)=>{var Dlt={left:0,top:0};Gse.exports=Flt;function Flt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=zlt(t);return r[0]=n-a.left,r[1]=i-a.top,r}function zlt(e){return e===window||e===document||e===document.body?Dlt:e.getBoundingClientRect()}});var VL=ye((yar,jse)=>{"use strict";var qlt=lO();function Olt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}jse.exports=qlt&&Olt()});var Xse=ye((_ar,Wse)=>{"use strict";Wse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var Kse=ye((xar,Yse)=>{"use strict";var Zse=Pr(),Blt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Yse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Zse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Zse.constrain(Math.floor(r*3),0,2),Blt[r][t]}});var $se=ye((bar,Jse)=>{"use strict";var Nlt=L3(),Ult=j6(),Vlt=jS().getGraphDiv,Glt=US(),EB=Jse.exports={};EB.wrapped=function(e,t,r){e=Vlt(e),e._fullLayout&&Ult.clear(e._fullLayout._uid+Glt.HOVERID),EB.raw(e,t,r)};EB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Nlt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var yv=ye((war,rle)=>{"use strict";var Hlt=Hse(),kB=cO(),jlt=VL(),Wlt=Pr().removeElement,Xlt=Rh(),Ub=rle.exports={};Ub.align=Xse();Ub.getCursor=Kse();var ele=$se();Ub.unhover=ele.wrapped;Ub.unhoverRaw=ele.raw;Ub.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,jlt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(M,T,L){return Math.abs(M)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var T;f.target===h?T=f:(T={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(L=>{var x=f[L];!T[L]&&typeof x!="function"&&(T[L]=x)})),t.clickFn&&t.clickFn(n,T),d||h.dispatchEvent(new MouseEvent("click",M))}r._dragging=!1,r._dragged=!1}};function tle(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Ub.coverSlip=tle;function Qse(e){return Hlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Eg=ye((Tar,ile)=>{"use strict";ile.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var ole=ye((Aar,ale)=>{"use strict";var CB=Eg(),gM="data-savedcursor",nle="!!";ale.exports=function(t,r){var n=t.attr(gM);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var LB=ec(),Zlt=Ih();sle.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Zlt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:LB({editType:"legend"}),grouptitlefont:LB({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:LB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var yM=ye(mM=>{"use strict";mM.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};mM.isVertical=function(t){return t.orientation!=="h"};mM.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};mM.getId=function(t){return t._id||"legend"}});var RB=ye((Ear,lle)=>{"use strict";var GL=Oa(),Yp=Pr(),Ylt=vl(),Klt=Gl(),Jlt=PB(),$lt=b3(),IB=yM();function Qlt(e,t,r,n,i){var a=t[e]||{},o=Ylt.newContainer(r,e);function s(H,ie){return Yp.coerce(a,o,Jlt,H,ie)}var l=Yp.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var u=s("visible");if(!u)return;var c,f=function(H,ie){var ae=c._input,_e=c;return Yp.coerce(ae,_e,Klt,H,ie)},h=r.font||{},d=Yp.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),v=0,m=!1,b="normal",p=(r.shapes||[]).filter(function(H){return H.showlegend});function k(H){return GL.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}n.filter(k).forEach(function(H){H.visible&&v++;for(var ie=0;ieH.legend.length)for(var _e=H.legend.length;_e(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),!(x===!1&&!a.uirevision)&&(s("uirevision",r.uirevision),x!==!1)){s("borderwidth");var C=s("orientation"),S=s("yref"),g=s("xref"),P=C==="h",E=S==="paper",z=g==="paper",q,V,G,Z="left";P?(q=0,GL.getComponentMethod("rangeslider","isVisible")(t.xaxis)?E?(V=1.1,G="bottom"):(V=1,G="top"):E?(V=-.1,G="top"):(V=0,G="bottom")):(V=1,G="auto",z?q=1.02:(q=1,Z="right")),Yp.coerce(a,o,{x:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:q}},"x"),Yp.coerce(a,o,{y:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:V}},"y"),s("traceorder",b),IB.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemclick"),s("itemdoubleclick"),s("groupclick"),s("xanchor",Z),s("yanchor",G),s("maxheight"),s("valign"),Yp.noneOrAll(a,o,["x","y"]);var j=s("title.text");if(j){s("title.side",P?"left":"top");var N=Yp.extendFlat({},l,{size:Yp.bigFont(l.size)});Yp.coerceFont(s,"title.font",N);let H=i>1;s("titleclick",H?"toggle":!1),s("titledoubleclick",H?"toggleothers":!1)}}}lle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var p_=Oa(),DB=Pr(),eut=DB.pushUnique,tut=yM(),ule=!0;FB.handleItemClick=function(t,r,n,i){var a=r._fullLayout;if(r._dragged||r._editing)return;var o=t.data()[0][0];if(o.groupTitle&&o.noClick)return;var s=n.groupclick;i==="toggle"&&n.itemdoubleclick==="toggleothers"&&ule&&r.data&&r._context.showTips&&(DB.notifier(DB._(r,"Double-click on legend to isolate one trace"),"long",r),ule=!1);var l=s==="togglegroup",u=a.hiddenlabels?a.hiddenlabels.slice():[],c=r._fullData;let f=(a.shapes||[]).filter(at=>at.showlegend||at.legendgroup);var h=c.concat(f),d=o.trace;d._isShape&&(d=d._fullInput);var v=d.legendgroup,m,b,p,k,M,T,L={},x=[],C=[],S=[];function g(at,ct){var ar=x.indexOf(at),Vt=L.visible;return Vt||(Vt=L.visible=[]),x.indexOf(at)===-1&&(x.push(at),ar=x.length-1),Vt[ar]=ct,ar}var P=(a.shapes||[]).map(function(at){return at._input}),E=!1;function z(at,ct){P[at].visible=ct,E=!0}function q(at,ct){if(!(o.groupTitle&&!l)){var ar=at._fullInput||at,Vt=ar._isShape,rr=ar.index;rr===void 0&&(rr=ar._index);var tt=ar.visible===!1?!1:ct;Vt?z(rr,tt):g(rr,tt)}}var V=d.legend,G=d._fullInput,Z=G&&G._isShape;if(!Z&&p_.traceIs(d,"pie-like")){var j=o.label,N=u.indexOf(j);if(i==="toggle")N===-1?u.push(j):u.splice(N,1);else if(i==="toggleothers"){var H=N!==-1,ie=[];for(m=0;mp.showlegend||p.legendgroup),l=a.concat(s);function u(p){return(p.legend||"legend")===o}var c,f;if(n==="toggle")c=!l.some(function(k){return u(k)&&k.visible===!0}),f=!1;else{let p=l.some(function(k){return!u(k)&&k.visible===!0&&k.showlegend!==!1});c=!0,f=!p}let h={visible:[]},d=[],v=(i.shapes||[]).map(function(p){return p._input});for(var m=!1,b=0;b{"use strict";cle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var dle=ye((Lar,hle)=>{"use strict";var{isArrayOrTypedArray:OB}=Yd(),fle=Oa(),BB=yM();hle.exports=function(t,r,n){var i=r._inHover,a=BB.isGrouped(r),o=BB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function m(ie,ae,_e){if(r.visible!==!1&&!(n&&ie!==r._id))if(ae===""||!BB.isGrouped(r)){var Ee="~~i"+f;l.push(Ee),s[Ee]=[_e],f++}else l.indexOf(ae)===-1?(l.push(ae),u=!0,s[ae]=[_e]):s[ae].push(_e)}for(d=0;dq&&(E=q)}g[d][0]._groupMinRank=E,g[d][0]._preGroupSort=d}var V=function(ie,ae){return ie[0]._groupMinRank-ae[0]._groupMinRank||ie[0]._preGroupSort-ae[0]._preGroupSort},G=function(ie,ae){var _e=OB(ie.trace.legendrank)?ie.trace.legendrank[ie.i]:ie.trace.legendrank,Ee=OB(ae.trace.legendrank)?ae.trace.legendrank[ae.i]:ae.trace.legendrank;return _e-Ee||ie._preSort-ae._preSort};for(g.forEach(function(ie,ae){ie[0]._preGroupSort=ae}),g.sort(V),d=0;d{"use strict";var HL=Pr();function vle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Vb.formatPiePercent=function(t,r){var n=vle((t*100).toPrecision(3));return HL.numSeparate(n,r)+"%"};Vb.formatPieValue=function(t,r){var n=vle(t.toPrecision(10));return HL.numSeparate(n,r)};Vb.getFirstFilled=function(t,r){if(HL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var rut=So(),iut=ka();ple.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?rut.pointStyle(t,n,i,r):iut.fill(t,r.color)}});var Y3=ye((Rar,_le)=>{"use strict";var mle=ka(),yle=g_().castOption,nut=gle();_le.exports=function(t,r,n,i){var a=n.marker.line,o=yle(a.color,r.pts)||mle.defaultLine,s=yle(a.width,r.pts)||0;t.call(nut,r,n,i).style("stroke-width",s).call(mle.stroke,o)}});var GB=ye((Dar,Sle)=>{"use strict";var Ov=qa(),NB=Oa(),_v=Pr(),xle=_v.strTranslate,Kp=So(),T0=ka(),UB=pv().extractOpts,jL=Ru(),aut=Y3(),out=g_().castOption,sut=qB(),ble=12,wle=5,Gb=2,lut=10,K3=5;Sle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+sut.itemGap*2)/2,l=xle(s,0),u=function(C,S,g,P){var E;if(C+1)E=C;else if(S&&S.width>0)E=S.width;else return 0;return a?P:Math.min(E,g)};t.each(function(C){var S=Ov.select(this),g=_v.ensureSingle(S,"g","layers");g.style("opacity",C[0].trace.opacity);var P=n.indentation,E=n.valign,z=C[0].lineHeight,q=C[0].height;if(E==="middle"&&P===0||!z||!q)g.attr("transform",null);else{var V={top:1,bottom:-1}[E],G=V*(.5*(z-q+3))||0,Z=n.indentation;g.attr("transform",xle(Z,G))}var j=g.selectAll("g.legendfill").data([C]);j.enter().append("g").classed("legendfill",!0);var N=g.selectAll("g.legendlines").data([C]);N.enter().append("g").classed("legendlines",!0);var H=g.selectAll("g.legendsymbols").data([C]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(v).each(d).each(b).each(T).each(M).each(c).each(f).each(p).each(k);function c(C){var S=Tle(C),g=S.showFill,P=S.showLine,E=S.showGradientLine,z=S.showGradientFill,q=S.anyFill,V=S.anyLine,G=C[0],Z=G.trace,j,N,H=UB(Z),ie=H.colorscale,ae=H.reversescale,_e=function(be){if(be.size())if(g)Kp.fillGroupStyle(be,r,!0);else{var Be="legendfill-"+Z.uid;Kp.gradient(be,r,Be,VB(ae),ie,"fill")}},Ee=function(be){if(be.size()){var Be="legendline-"+Z.uid;Kp.lineGroupStyle(be),Kp.gradient(be,r,Be,VB(ae),ie,"stroke")}},Ce=jL.hasMarkers(Z)||!q?"M5,0":V?"M5,-2":"M5,-3",ge=Ov.select(this),re=ge.select(".legendfill").selectAll("path").data(g||z?[C]:[]);if(re.enter().append("path").classed("js-fill",!0),re.exit().remove(),re.attr("d",Ce+"h"+o+"v6h-"+o+"z").call(_e),P||E){var Se=u(void 0,Z.line,lut,wle);N=_v.minExtend(Z,{line:{width:Se}}),j=[_v.minExtend(G,{trace:N})]}var ke=ge.select(".legendlines").selectAll("path").data(P||E?[j]:[]);ke.enter().append("path").classed("js-line",!0),ke.exit().remove(),ke.attr("d",Ce+(E?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Ee)}function f(C){var S=Tle(C),g=S.anyFill,P=S.anyLine,E=S.showLine,z=S.showMarker,q=C[0],V=q.trace,G=!z&&!P&&!g&&jL.hasText(V),Z,j;function N(re,Se,ke,be){var Be=_v.nestedProperty(V,re).get(),Le=_v.isArrayOrTypedArray(Be)&&Se?Se(Be):Be;if(a&&Le&&be!==void 0&&(Le=be),ke){if(Leke[1])return ke[1]}return Le}function H(re){return q._distinct&&q.index&&re[q.index]?re[q.index]:re[0]}if(z||G||E){var ie={},ae={};if(z){ie.mc=N("marker.color",H),ie.mx=N("marker.symbol",H),ie.mo=N("marker.opacity",_v.mean,[.2,1]),ie.mlc=N("marker.line.color",H),ie.mlw=N("marker.line.width",_v.mean,[0,5],Gb),ie.mld=V._isShape?"solid":N("marker.line.dash",H),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",_v.mean,[2,16],ble);ie.ms=_e,ae.marker.size=_e}E&&(ae.line={width:N("line.width",H,[0,10],wle)}),G&&(ie.tx="Aa",ie.tp=N("textposition",H),ie.ts=10,ie.tc=N("textfont.color",H),ie.tf=N("textfont.family",H),ie.tw=N("textfont.weight",H),ie.ty=N("textfont.style",H),ie.tv=N("textfont.variant",H),ie.tC=N("textfont.textcase",H),ie.tE=N("textfont.lineposition",H),ie.tS=N("textfont.shadow",H)),Z=[_v.minExtend(q,ie)],j=_v.minExtend(V,ae),j.selectedpoints=null,j.texttemplate=null}var Ee=Ov.select(this).select("g.legendpoints"),Ce=Ee.selectAll("path.scatterpts").data(z?Z:[]);Ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),Ce.exit().remove(),Ce.call(Kp.pointStyle,j,r),z&&(Z[0].mrc=3);var ge=Ee.selectAll("g.pointtext").data(G?Z:[]);ge.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),ge.exit().remove(),ge.selectAll("text").call(Kp.textPointStyle,j,r)}function h(C){var S=C[0].trace,g=S.type==="waterfall";if(C[0]._distinct&&g){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,m(C,this,"waterfall")}var E=[];S.visible&&g&&(E=C[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var z=Ov.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(E);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(q){var V=Ov.select(this),G=S[q[0]].marker,Z=u(void 0,G.line,K3,Gb);V.attr("d",q[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&V.call(T0.stroke,G.line.color)})}function d(C){m(C,this)}function v(C){m(C,this,"funnel")}function m(C,S,g){var P=C[0].trace,E=P.marker||{},z=E.line||{},q=E.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=g?P.visible&&P.type===g:NB.traceIs(P,"bar"),G=Ov.select(S).select("g.legendpoints").selectAll("path.legend"+g).data(V?[C]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",q).attr("transform",l),G.exit().remove(),G.each(function(Z){var j=Ov.select(this),N=Z[0],H=u(N.mlw,E.line,K3,Gb);j.style("stroke-width",H+"px");var ie=N.mcc;if(!n._inHover&&"mc"in N){var ae=UB(E),_e=ae.mid;_e===void 0&&(_e=(ae.max+ae.min)/2),ie=Kp.tryColorscale(E,"")(_e)}var Ee=ie||N.mc||E.color,Ce=E.pattern,ge=Kp.getPatternAttr,re=Ce&&(ge(Ce.shape,0,"")||ge(Ce.path,0,""));if(re){var Se=ge(Ce.bgcolor,0,null),ke=ge(Ce.fgcolor,0,null),be=Ce.fgopacity,Be=Ale(Ce.size,8,10),Le=Ale(Ce.solidity,.5,1),me="legend-"+P.uid;j.call(Kp.pattern,"legend",r,me,re,Be,Le,ie,Ce.fillmode,Se,ke,be)}else j.call(T0.fill,Ee);H&&T0.stroke(j,N.mlc||z.color)})}function b(C){var S=C[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&NB.traceIs(S,"box-violin")?[C]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var P=Ov.select(this);if((S.boxpoints==="all"||S.points==="all")&&T0.opacity(S.fillcolor)===0&&T0.opacity((S.line||{}).color)===0){var E=_v.minExtend(S,{marker:{size:a?ble:_v.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,E,r)}else{var z=u(void 0,S.line,K3,Gb);P.style("stroke-width",z+"px").call(T0.fill,S.fillcolor),z&&T0.stroke(P,S.line.color)}})}function p(C){var S=C[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[C,C]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,E){return E?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,E){var z=Ov.select(this),q=S[E?"increasing":"decreasing"],V=u(void 0,q.line,K3,Gb);z.style("stroke-width",V+"px").call(T0.fill,q.fillcolor),V&&T0.stroke(z,q.line.color)})}function k(C){var S=C[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[C,C]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,E){return E?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,E){var z=Ov.select(this),q=S[E?"increasing":"decreasing"],V=u(void 0,q.line,K3,Gb);z.style("fill","none").call(Kp.dashLine,q.line.dash,V),V&&T0.stroke(z,q.line.color)})}function M(C){L(C,this,"pie")}function T(C){L(C,this,"funnelarea")}function L(C,S,g){var P=C[0],E=P.trace,z=g?E.visible&&E.type===g:NB.traceIs(E,g),q=Ov.select(S).select("g.legendpoints").selectAll("path.legend"+g).data(z?[C]:[]);if(q.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),q.exit().remove(),q.size()){var V=E.marker||{},G=u(out(V.line.width,P.pts),V.line,K3,Gb),Z="pieLike",j=_v.minExtend(E,{marker:{line:{width:G}}},Z),N=_v.minExtend(P,{trace:j},Z);aut(q,N,j,r)}}function x(C){var S=C[0].trace,g,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],g=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],g=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],g=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],g=!1;break}var E=Ov.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);E.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(z,q){var V=Ov.select(this),G=UB(S),Z=G.colorscale,j=G.reversescale,N=function(_e){if(_e.size()){var Ee="legendfill-"+S.uid;Kp.gradient(_e,r,Ee,VB(j,g==="radial"),Z,"fill")}},H;if(Z){if(!g){var ae=Z.length;H=q===0?Z[j?ae-1:0][1]:q===1?Z[j?0:ae-1][1]:Z[Math.floor((ae-1)/2)][1]}}else{var ie=S.vertexcolor||S.facecolor||S.color;H=_v.isArrayOrTypedArray(ie)?ie[q]||ie[0]:ie}V.attr("d",z[0]),H?V.call(T0.fill,H):V.call(N)})}};function VB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Tle(e){var t=e[0].trace,r=t.contours,n=jL.hasLines(t),i=jL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:n=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function Ale(e,t,r){return e&&_v.isArrayOrTypedArray(e)?t:e>r?r:e}});var XB=ye((Far,Dle)=>{"use strict";var np=qa(),vh=Pr(),jB=Mc(),Hb=Oa(),ZL=L3(),HB=yv(),ph=So(),_M=ka(),jb=Zl(),Mle=zB().handleItemClick,Ele=zB().handleTitleClick,qh=qB(),WB=Dh(),Ile=WB.LINE_SPACING,$3=WB.FROM_TL,kle=WB.FROM_BR,Cle=dle(),uut=GB(),Q3=yM(),J3=1,cut=/^legend[0-9]*$/;Dle.exports=function(t,r){if(r)Lle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=np.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(cut)&&i.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var v=n.hiddenlabels||[];if(!s&&(!n.showlegend||!l.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),jB.autoMargin(e,i);var m=vh.ensureSingle(o,"g",i,function(S){s||S.attr("pointer-events","all")}),b=vh.ensureSingleById(n._topdefs,"clipPath",a,function(S){S.append("rect")}),p=vh.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});p.call(_M.stroke,r.bordercolor).call(_M.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var k=vh.ensureSingle(m,"g","scrollbox"),M=r.title;r._titleWidth=0,r._titleHeight=0;var T;M.text?(T=vh.ensureSingle(k,"text",i+"titletext"),T.attr("text-anchor","start").call(ph.font,M.font).text(M.text),XL(T,k,e,r,J3),!s&&(r.titleclick||r.titledoubleclick)&&vut(k,e,r,i)):(k.selectAll("."+i+"titletext").remove(),k.selectAll("."+i+"titletoggle").remove());var L=vh.ensureSingle(m,"rect","scrollbar",function(S){S.attr(qh.scrollBarEnterAttrs).call(_M.fill,qh.scrollBarColor)}),x=k.selectAll("g.groups").data(l);x.enter().append("g").attr("class","groups"),x.exit().remove();var C=x.selectAll("g.traces").data(vh.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(S){let g=S[0],P=g.trace;if(g.groupTitle){let E=P.legendgroup,z=(n.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(z).some(function(V){return V.legendgroup===E&&(V.legend||"legend")===i&&V.visible===!0})?1:.5}return Hb.traceIs(P,"pie-like")?v.indexOf(S[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){np.select(this).call(hut,e,r)}).call(uut,e,r).each(function(S){s||S[0].groupTitle&&r.groupclick==="toggleitem"||np.select(this).call(dut,e,i)}),vh.syncOrAsync([jB.previousPromises,function(){return mut(e,x,C,r,k)},function(){var S=n._size,g=r.borderwidth,P=r.xref==="paper",E=r.yref==="paper";if(M.text){let He=(n.shapes||[]).filter(function(mt){return mt.showlegend}),lt=e._fullData.concat(He).some(function(mt){let Ht=mt.legend||"legend";var at=Array.isArray(Ht)?Ht.includes(i):Ht===i;return at&&mt.visible===!0});T.style("opacity",lt?1:.5)}if(!s){var z,q;P?z=S.l+S.w*r.x-$3[YL(r)]*r._width:z=n.width*r.x-$3[YL(r)]*r._width,E?q=S.t+S.h*(1-r.y)-$3[KL(r)]*r._effHeight:q=n.height*(1-r.y)-$3[KL(r)]*r._effHeight;var V=yut(e,i,z,q);if(V)return;if(n.margin.autoexpand){var G=z,Z=q;z=P?vh.constrain(z,0,n.width-r._width):G,q=E?vh.constrain(q,0,n.height-r._effHeight):Z,z!==G&&vh.log("Constrain "+i+".x to make legend fit inside graph"),q!==Z&&vh.log("Constrain "+i+".y to make legend fit inside graph")}ph.setTranslate(m,z,q)}if(L.on(".drag",null),m.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var j=r._effHeight;s&&(j=r._height),p.attr({width:r._width-g,height:j-g,x:g/2,y:g/2}),ph.setTranslate(k,0,0),b.select("rect").attr({width:r._width-2*g,height:j-2*g,x:g,y:g}),ph.setClipUrl(k,a,e),ph.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(qh.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),H=r._effHeight-N-2*qh.scrollBarMargin,ie=r._height-r._effHeight,ae=H/ie,_e=Math.min(r._scrollY||0,ie);p.attr({width:r._width-2*g+qh.scrollBarWidth+qh.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+qh.scrollBarWidth+qh.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),ph.setClipUrl(k,a,e),Be(_e,N,ae),m.on("wheel",function(){_e=vh.constrain(r._scrollY+np.event.deltaY/ie*H,0,ie),Be(_e,N,ae),_e!==0&&_e!==ie&&np.event.preventDefault()});var Ee,Ce,ge,re=function(He,lt,mt){var Ht=(mt-lt)/ae+He;return vh.constrain(Ht,0,ie)},Se=function(He,lt,mt){var Ht=(lt-mt)/ae+He;return vh.constrain(Ht,0,ie)},ke=np.behavior.drag().on("dragstart",function(){var He=np.event.sourceEvent;He.type==="touchstart"?Ee=He.changedTouches[0].clientY:Ee=He.clientY,ge=_e}).on("drag",function(){var He=np.event.sourceEvent;He.buttons===2||He.ctrlKey||(He.type==="touchmove"?Ce=He.changedTouches[0].clientY:Ce=He.clientY,_e=re(ge,Ee,Ce),Be(_e,N,ae))});L.call(ke);var be=np.behavior.drag().on("dragstart",function(){var He=np.event.sourceEvent;He.type==="touchstart"&&(Ee=He.changedTouches[0].clientY,ge=_e)}).on("drag",function(){var He=np.event.sourceEvent;He.type==="touchmove"&&(Ce=He.changedTouches[0].clientY,_e=Se(ge,Ee,Ce),Be(_e,N,ae))});k.call(be)}function Be(He,lt,mt){r._scrollY=e._fullLayout[i]._scrollY=He,ph.setTranslate(k,0,-He),ph.setRect(L,r._width,qh.scrollBarMargin+He*mt,qh.scrollBarWidth,lt),b.select("rect").attr("y",g+He)}if(e._context.edits.legendPosition){var Le,me,Pe,ce;m.classed("cursor-move",!0),HB.init({element:m.node(),gd:e,prepFn:function(He){if(He.target!==L.node()){var lt=ph.getTranslate(m);Pe=lt.x,ce=lt.y}},moveFn:function(He,lt){if(Pe!==void 0&&ce!==void 0){var mt=Pe+He,Ht=ce+lt;ph.setTranslate(m,mt,Ht),Le=HB.align(mt,r._width,S.l,S.l+S.w,r.xanchor),me=HB.align(Ht+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(Le!==void 0&&me!==void 0){var He={};He[i+".x"]=Le,He[i+".y"]=me,Hb.call("_guiRelayout",e,He)}},clickFn:function(He,lt){var mt=o.selectAll("g.traces").filter(function(){var Ht=this.getBoundingClientRect();return lt.clientX>=Ht.left&<.clientX<=Ht.right&<.clientY>=Ht.top&<.clientY<=Ht.bottom});mt.size()>0&&Rle(e,r,mt,He,lt)}})}}],e)}}function WL(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Rle(e,t,r,n,i){var a=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,l=t.itemdoubleclick,u={event:i,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:a};o._group&&(u.group=o._group),Hb.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var c=ZL.triggerHandler(e,"plotly_legendclick",u);if(n===1){if(c===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&Mle(r,e,t,s)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var f=ZL.triggerHandler(e,"plotly_legenddoubleclick",u);f!==!1&&c!==!1&&l&&Mle(r,e,t,l)}}function hut(e,t,r){var n=Q3.getId(r),i=e.data()[0][0],a=i.trace,o=Hb.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;i.groupTitle?(u=i.groupTitle.text,c=i.groupTitle.font):(c=r.font,r.entries?u=i.text:(u=o?i.label:a.name,a._meta&&(u=vh.templateString(u,a._meta))));var f=vh.ensureSingle(e,"text",n+"text");f.attr("text-anchor","start").call(ph.font,c).text(s?Ple(u,l):u);var h=r.indentation+r.itemwidth+qh.itemGap*2;jb.positionText(f,h,0),s?f.call(jb.makeEditable,{gd:t,text:u}).call(XL,e,t,r).on("edit",function(d){this.text(Ple(d,l)).call(XL,e,t,r);var v=i.trace._fullInput||{},m={};return m.name=d,v._isShape?Hb.call("_guiRelayout",t,"shapes["+a.index+"].name",m.name):Hb.call("_guiRestyle",t,m,a.index)}):XL(f,e,t,r)}function Ple(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function dut(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=vh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(_M.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Rle(t,s,e,a,np.event)}}))}function vut(e,t,r,n){if(t._fullData.some(function(u){let c=u.legend||"legend";return(Array.isArray(c)?c.includes(n):c===n)&&Hb.traceIs(u,"pie-like")}))return;let a=t._context.doubleClickDelay;var o,s=1;let l=vh.ensureSingle(e,"rect",n+"titletoggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(_M.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimea&&(s=Math.max(s-1,1));let u={event:np.event,legendId:n,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(ZL.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&Ele(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,ZL.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&Ele(t,r,r.titledoubleclick))}))}function XL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),jb.convertToTspans(e,r,function(){put(t,r,n,i)})}function put(e,t,r,n){var i=e.data()[0][0],a=i&&i.trace.showlegend;if(Array.isArray(a)&&(a=a[i.i]!==!1),!r._inHover&&i&&!a){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),l=Q3.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,c;n===J3?c=r.title.font:i.groupTitle?c=i.groupTitle.font:c=r.font;var f=c.size*Ile,h,d;if(s){var v=ph.bBox(s);h=v.height,d=v.width,n===J3?ph.setTranslate(o,u,u+h*.75):ph.setTranslate(o,0,h*.25)}else{var m="."+l+(n===J3?"title":"")+"text",b=e.select(m),p=jb.lineCount(b),k=b.node();if(h=f*p,d=k?ph.bBox(k).width:0,n===J3)r.title.side==="left"&&(d+=qh.itemGap*2),jb.positionText(b,u+qh.titlePad,u+f);else{var M=qh.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(M=qh.itemGap,d-=r.indentation+r.itemwidth),jb.positionText(b,M,-f*((p-1)/2-.3))}}n===J3?(r._titleWidth=d,r._titleHeight=h):(i.lineHeight=f,i.height=Math.max(h,16)+3,i.width=d)}function gut(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function mut(e,t,r,n,i){var a=e._fullLayout,o=Q3.getId(n);n||(n=a[o]);var s=a._size,l=Q3.isVertical(n),u=Q3.isGrouped(n),c=n.entrywidthmode==="fraction",f=n.borderwidth,h=2*f,d=qh.itemGap,v=n.indentation+n.itemwidth+d*2,m=2*(f+d),b=KL(n),p=n.y<0||n.y===0&&b==="top",k=n.y>1||n.y===1&&b==="bottom",M=n.tracegroupgap,T={};let{orientation:L,yref:x}=n,{maxheight:C}=n,S=p||k||L!=="v"||x!=="paper";C||(C=S?.5:1);let g=S?a.height:s.h;n._maxHeight=Math.max(C>1?C:C*g,30);var P=0;n._width=0,n._height=0;var E=gut(n);if(l)r.each(function(He){var lt=He[0].height;ph.setTranslate(this,f+E[0],f+E[1]+n._height+lt/2+d),n._height+=lt,n._width=Math.max(n._width,He[0].width)}),P=v+n._width,n._width+=d+v+h,n._height+=m,u&&(t.each(function(He,lt){ph.setTranslate(this,0,lt*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var z=YL(n),q=n.x<0||n.x===0&&z==="right",V=n.x>1||n.x===1&&z==="left",G=k||p,Z=a.width/2;n._maxWidth=Math.max(q?G&&z==="left"?s.l+s.w:Z:V?G&&z==="right"?s.r+s.w:Z:s.w,2*v);var j=0,N=0;r.each(function(He){var lt=WL(He,n,v);j=Math.max(j,lt),N+=lt}),P=null;var H=0;if(u){var ie=0,ae=0,_e=0;t.each(function(){var He=0,lt=0;np.select(this).selectAll("g.traces").each(function(Ht){var at=WL(Ht,n,v),ct=Ht[0].height;ph.setTranslate(this,E[0],E[1]+f+d+ct/2+lt),lt+=ct,He=Math.max(He,at),T[Ht[0].trace.legendgroup]=He});var mt=He+d;ae>0&&mt+f+ae>n._maxWidth?(H=Math.max(H,ae),ae=0,_e+=ie+M,ie=lt):ie=Math.max(ie,lt),ph.setTranslate(this,ae,_e),ae+=mt}),n._width=Math.max(H,ae)+f,n._height=_e+ie+m}else{var Ee=r.size(),Ce=N+h+(Ee-1)*d=n._maxWidth&&(H=Math.max(H,ke),re=0,Se+=ge,n._height+=ge,ge=0),ph.setTranslate(this,E[0]+f+re,E[1]+f+Se+lt/2+d),ke=re+mt+d,re+=Ht,ge=Math.max(ge,lt)}),Ce?(n._width=re+h,n._height=ge+m):(n._width=Math.max(H,ke)+h,n._height+=ge+m)}}n._width=Math.ceil(Math.max(n._width+E[0],n._titleWidth+2*(f+qh.titlePad))),n._height=Math.ceil(Math.max(n._height+E[1],n._titleHeight+2*(f+qh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var be=e._context.edits,Be=be.legendText||be.legendPosition;r.each(function(He){var lt=np.select(this).select("."+o+"toggle"),mt=He[0].height,Ht=He[0].trace.legendgroup,at=WL(He,n,v);u&&Ht!==""&&(at=T[Ht]);var ct=Be?v:P||at;!l&&!c&&(ct+=d/2),ph.setRect(lt,0,-mt/2,ct,mt)});var Le=i.select("."+o+"titletext");Le.node()&&fut(Le,n,f);var me=i.select("."+o+"titletoggle");if(me.size()&&Le.node()){var Pe=Le.attr("x")||0,ce=qh.titlePad;ph.setRect(me,Pe-ce,f,n._titleWidth+2*ce,n._titleHeight+2*ce)}}function yut(e,t,r,n){var i=e._fullLayout,a=i[t],o=YL(a),s=KL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(l&&u)return jB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*$3[o],r:a._width*kle[o],b:a._effHeight*kle[s],t:a._effHeight*$3[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function YL(e){return vh.isRightAnchor(e)?"right":vh.isCenterAnchor(e)?"center":"left"}function KL(e){return vh.isBottomAnchor(e)?"bottom":vh.isMiddleAnchor(e)?"middle":"top"}});var JB=ye(KB=>{"use strict";var Wb=qa(),Iy=Eo(),Fle=fd(),zf=Pr(),_ut=zf.pushUnique,ZB=zf.strTranslate,xut=zf.strRotate,but=L3(),A0=Zl(),wut=ole(),Am=So(),vd=ka(),JL=yv(),Sm=ho(),Tut=Rh().zindexSeparator,tT=Oa(),kg=ip(),Xb=US(),Aut=RB(),Sut=XB(),Gle=Xb.YANGLE,YB=Math.PI*Gle/180,Mut=1/Math.sin(YB),Eut=Math.cos(YB),kut=Math.sin(YB),Qc=Xb.HOVERARROWSIZE,sl=Xb.HOVERTEXTPAD,zle={box:!0,ohlc:!0,violin:!0,candlestick:!0},Cut={scatter:!0,scattergl:!0,splom:!0};function qle(e,t){return e.distance-t.distance}KB.hover=function(t,r,n,i){t=zf.getGraphDiv(t);var a=r.target;zf.throttle(t._fullLayout._uid+Xb.HOVERID,Xb.HOVERMINTIME,function(){Lut(t,r,n,i,a)})};KB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Zle(i),o=Yle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,k=b._x1||b.x1||b.x||0,M=b._y0||b.y0||b.y||0,T=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(p,k),C=Math.max(p,k),S=Math.min(M,T),g=Math.max(M,T),P=b.trace;if(tT.traceIs(P,"gl3d")){var E=i._fullLayout[P.scene]._scene.container,z=E.offsetLeft,q=E.offsetTop;x+=z,C+=z,S+=q,g+=q}L.bbox={x0:x+o,x1:C+o,y0:S+a,y1:g+a},L.xPixel=(p+k)/2,L.yPixel=(M+T)/2,r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),l=!1,u=jle(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:Wb.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,d=0;c.sort(function(b,p){return b.y0-p.y0}).each(function(b,p){var k=b.y0-b.by/2;k-fC[0]._length||ce<0||ce>S[0]._length)return JL.unhoverRaw(e,t)}if(t.pointerX=Pe+C[0]._offset,t.pointerY=ce+S[0]._offset,"xval"in t?Z=kg.flat(a,t.xval):Z=kg.p2c(C,Pe),"yval"in t?j=kg.flat(a,t.yval):j=kg.p2c(S,ce),!Iy(Z[0])||!Iy(j[0]))return zf.warn("Fx.hover failed",t,e),JL.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=Z,e._hoverYVals=j,e._hoverXAxes=C,e._hoverYAxes=S);var mt=1/0;function Ht(Vi,Kn){for(H=0;Hke&&(V.splice(0,ke),mt=V[0].distance),f&&q!==0&&V.length===0){Se.distance=q,Se.index=!1;var ir=ae._module.hoverPoints(Se,ge,re,"closest",{hoverLayer:s._hoverlayer});if(ir&&(ir=ir.filter(function(Zi){return Zi.spikeDistance<=q})),ir&&ir.length){var wr,Xr=ir.filter(function(Zi){return Zi.xa.showspikes&&Zi.xa.spikesnap!=="hovered data"});if(Xr.length){var ti=Xr[0];Iy(ti.x0)&&Iy(ti.y0)&&(wr=ct(ti),(!be.vLinePoint||be.vLinePoint.spikeDistance>wr.spikeDistance)&&(be.vLinePoint=wr))}var $r=ir.filter(function(Zi){return Zi.ya.showspikes&&Zi.ya.spikesnap!=="hovered data"});if($r.length){var Ri=$r[0];Iy(Ri.x0)&&Iy(Ri.y0)&&(wr=ct(Ri),(!be.hLinePoint||be.hLinePoint.spikeDistance>wr.spikeDistance)&&(be.hLinePoint=wr))}}}}}Ht();function at(Vi,Kn,Jn){for(var Gt=null,wt=1/0,tr,ir=0;irVi.trace.index===pt.trace.index):V=[pt];var jt=V.length,or=Vle("x",pt,s),mr=Vle("y",pt,s);Ht(or,mr);var Ar=[],ei={},qr=0,jr=function(Vi){var Kn=zle[Vi.trace.type]?Hle(Vi):Vi.trace.index;if(!ei[Kn])qr++,ei[Kn]=qr,Ar.push(Vi);else{var Jn=ei[Kn]-1,Gt=Ar[Jn];Jn>0&&Math.abs(Vi.distance)jt-1;gt--)jr(V[gt]);V=Ar,tt()}var Ge=e._hoverdata,Je=[],We=Zle(e),et=Yle(e);for(let Vi of V){var xt=kg.makeEventData(Vi,Vi.trace,Vi.cd);if(Vi.hovertemplate!==!1){var At=!1;Vi.cd[Vi.index]&&Vi.cd[Vi.index].ht&&(At=Vi.cd[Vi.index].ht),Vi.hovertemplate=At||Vi.trace.hovertemplate||!1}if(Vi.xa&&Vi.ya){var Kt=Vi.x0+Vi.xa._offset,Qt=Vi.x1+Vi.xa._offset,Mr=Vi.y0+Vi.ya._offset,Gr=Vi.y1+Vi.ya._offset,Ir=Math.min(Kt,Qt),Yr=Math.max(Kt,Qt),_i=Math.min(Mr,Gr),Pi=Math.max(Mr,Gr);xt.bbox={x0:Ir+et,x1:Yr+et,y0:_i+We,y1:Pi+We},xt.xPixel=(Kt+Qt)/2,xt.yPixel=(Mr+Gr)/2}Vi.eventData=[xt],Je.push(xt)}e._hoverdata=Je;var ai=h==="y"&&(G.length>1||V.length>1)||h==="closest"&&Be&&V.length>1,mi=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),un=jle(V,{gd:e,hovermode:h,rotateLabels:ai,bgColor:mi,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Fn=un.hoverLabels;if(kg.isUnifiedHover(h)||(Iut(Fn,ai,s,un.commonLabelBoundingBox),Xle(Fn,ai,s._invScaleX,s._invScaleY)),i&&i.tagName){var An=tT.getComponentMethod("annotations","hasClickToShow")(e,Je);wut(Wb.select(i),An?"pointer":"")}var Hn=Fut(e,t,Ge);if(!i||n||!Hn&&!s.hoveranywhere)return;Ge&&Hn&&e.emit("plotly_unhover",{event:t,points:Ge}),Qn(e._hoverdata);function Qn(Vi){e.emit("plotly_hover",{event:t,points:Vi,xaxes:C,yaxes:S,xvals:Z,yvals:j})}}function Hle(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Put=/([\s\S]*)<\/extra>/;function jle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||Xb.HOVERFONT,f=t.fontSize||Xb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,m=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,k=e[0],M=k.xa,T=k.ya,L=i.charAt(0),x=L+"Label",C=k[x];if(C===void 0&&M.type==="multicategory")for(var S=0;Sn.width-Je&&(We=n.width-Je),Et.attr("d","M"+(jr-We)+",0L"+(jr-We+Qc)+","+Ge+Qc+"H"+Je+"v"+Ge+(sl*2+qr.height)+"H"+-Je+"V"+Ge+Qc+"H"+(jr-We-Qc)+"Z"),jr=We,H.minX=jr-Je,H.maxX=jr+Je,M.side==="top"?(H.minY=gt-(sl*2+qr.height),H.maxY=gt-sl):(H.minY=gt+sl,H.maxY=gt+(sl*2+qr.height))}else{var et,xt,At;T.side==="right"?(et="start",xt=1,At="",jr=M._offset+M._length):(et="end",xt=-1,At="-",jr=M._offset),gt=T._offset+(k.y0+k.y1)/2,pt.attr("text-anchor",et),Et.attr("d","M0,0L"+At+Qc+","+Qc+"V"+(sl+qr.height/2)+"h"+At+(sl*2+qr.width)+"V-"+(sl+qr.height/2)+"H"+At+Qc+"V-"+Qc+"Z"),H.minY=gt-(sl+qr.height/2),H.maxY=gt+(sl+qr.height/2),T.side==="right"?(H.minX=jr+Qc,H.maxX=jr+Qc+(sl*2+qr.width)):(H.minX=jr-Qc-(sl*2+qr.width),H.maxX=jr-Qc);var Kt=qr.height/2,Qt=P-qr.top-Kt,Mr="clip"+n._uid+"commonlabel"+T._id,Gr;if(jrEt.hoverinfo!=="none");if(dt.length===0)return[];var ie=n.hoverlabel,ae=ie.font,_e=dt[0],Ee=((i==="x unified"?_e.xa:_e.ya).unifiedhovertitle||{}).text,Ce=Ee?zf.hovertemplateString({data:i==="x unified"?[{xa:_e.xa,x:_e.xVal}]:[{ya:_e.ya,y:_e.yVal}],fallback:_e.trace.hovertemplatefallback,locale:n._d3locale,template:Ee}):C,ge={showlegend:!0,legend:{title:{text:Ce,font:ae},font:ae,bgcolor:ie.bgcolor,bordercolor:ie.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},re={font:ae};Aut(ge,re,r._fullData);var Se=re.legend;Se.entries=[];for(var ke=0;ke=0?rt=tt:je+lt=0?rt=je:Ue+lt=0?St=Vt:rr+mt=0?St=rr:Ae+mt=0,(dt.idealAlign==="top"||!_i)&&Pi?(At-=Qt/2,dt.anchor="end"):_i?(At+=Qt/2,dt.anchor="start"):dt.anchor="middle",dt.crossPos=At;else{if(dt.pos=At,_i=xt+Kt/2+Yr<=E,Pi=xt-Kt/2-Yr>=0,(dt.idealAlign==="left"||!_i)&&Pi)xt-=Kt/2,dt.anchor="end";else if(_i)xt+=Kt/2,dt.anchor="start";else{dt.anchor="middle";var ai=Yr/2,mi=xt+ai-E,un=xt-ai;mi>0&&(xt-=mi),un<0&&(xt+=-un)}dt.crossPos=xt}gt.attr("text-anchor",dt.anchor),Je&&Ge.attr("text-anchor",dt.anchor),Et.attr("transform",ZB(xt,At)+(a?xut(Gle):""))}),{hoverLabels:Tt,commonLabelBoundingBox:H}}function Ole(e,t,r,n,i,a){var f,h;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=zf.templateString(e.name,e.trace._meta)),o=Ule(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===i?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o),(h=(f=e.trace)==null?void 0:f.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:c=!1}=e;if(c){let d=e.hovertemplateLabels||e;e[l+"Label"]!==i&&(d[l+"other"]=d[l+"Val"],d[l+"otherLabel"]=d[l+"Label"]),s=zf.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:n._d3locale,template:c}),s=s.replace(Put,(v,m)=>(o=Ule(m,e.nameLength),""))}return[s,o]}function Iut(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=n.minX,h=n.maxX,d=n.minY,v=n.maxY,m=function(Z){return Z*r._invScaleX},b=function(Z){return Z*r._invScaleY};e.each(function(Z){var j=Z[i],N=Z[a],H=j._id.charAt(0)==="x",ie=j.range;c===0&&ie&&ie[0]>ie[1]!==H&&(s=-1);var ae=0,_e=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Ee=Wle(Z,t),Ce=Z.anchor,ge=Ce==="end"?-1:1,re,Se;if(Ce==="middle")re=Z.crossPos+(H?b(Ee.y-Z.by/2):m(Z.bx/2+Z.tx2width/2)),Se=re+(H?b(Z.by):m(Z.bx));else if(H)re=Z.crossPos+b(Qc+Ee.y)-b(Z.by/2-Qc),Se=re+b(Z.by);else{var ke=m(ge*Qc+Ee.x),be=ke+m(ge*Z.bx);re=Z.crossPos+Math.min(ke,be),Se=Z.crossPos+Math.max(ke,be)}H?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(re,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,_e=r.width):_e=N._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(re,f)>1&&(N.side==="top"?(ae=N._mainLinePosition,_e=r.height):_e=N._mainLinePosition)}u[c++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(H?Mut:1)/2,pmin:ae,pmax:_e}]}),u.sort(function(Z,j){return Z[0].posref-j[0].posref||s*(j[0].traceIndex-Z[0].traceIndex)});var p,k,M,T,L,x,C;function S(Z){var j=Z[0],N=Z[Z.length-1];if(k=j.pmin-j.pos-j.dp+j.size,M=N.pos+N.dp+N.size-j.pmax,k>.01){for(L=Z.length-1;L>=0;L--)Z[L].dp+=k;p=!1}if(!(M<.01)){if(k<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=M;p=!1}if(p){var H=0;for(T=0;Tj.pmax&&H++;for(T=Z.length-1;T>=0&&!(H<=0);T--)x=Z[T],x.pos>j.pmax-1&&(x.del=!0,H--);for(T=0;T=0;L--)Z[L].dp-=M;for(T=Z.length-1;T>=0&&!(H<=0);T--)x=Z[T],x.pos+x.dp+x.size>j.pmax&&(x.del=!0,H--)}}}for(;!p&&o<=l;){for(o++,p=!0,T=0;T.01){for(L=P.length-1;L>=0;L--)P[L].dp+=k;for(g.push.apply(g,P),u.splice(T+1,1),C=0,L=g.length-1;L>=0;L--)C+=g[L].dp;for(M=C/g.length,L=g.length-1;L>=0;L--)g[L].dp-=M;p=!1}else T++}u.forEach(S)}for(T=u.length-1;T>=0;T--){var q=u[T];for(L=q.length-1;L>=0;L--){var V=q[L],G=V.datum;G.offset=V.dp,G.del=V.del}}}function Wle(e,t){var r=0,n=e.offset;return t&&(n*=-kut,r=e.offset*Eut),{x:r,y:n}}function Rut(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Qc+sl),n=r+t*(e.txwidth+sl),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+sl),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Xle(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Wb.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=Rut(o),h=Wle(o,t),d=h.x,v=h.y,m=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,p;m?p="M-"+i(o.bx/2+o.tx2width/2)+","+a(v-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?p="M0,0L"+i(c*Qc+d)+","+a(Qc+v)+"v"+a(o.by/2-Qc)+"h"+i(c*o.bx)+"v-"+a(o.by)+"H"+i(c*Qc+d)+"V"+a(v-Qc)+"Z":p="M"+i(c*Qc+d)+","+a(v-o.by/2)+"h"+i(c*o.bx)+"v"+a(o.by)+"h"+i(-c*o.bx)+"Z",s.select("path").attr("d",p);var k=d+f.textShiftX,M=v+o.ty0-o.by/2+sl,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&u!=="start"?(l.attr("text-anchor","start"),k=m?-o.bx/2-o.tx2width/2+sl:-o.bx-sl):T==="right"&&u!=="end"&&(l.attr("text-anchor","end"),k=m?o.bx/2-o.tx2width/2-sl:o.bx+sl)),l.call(A0.positionText,i(k),a(M)),o.tx2width&&(s.select("text.name").call(A0.positionText,i(f.text2ShiftX+f.alignShift*sl+d),a(v+o.ty0-o.by/2+sl)),s.select("rect").call(Am.setRect,i(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+d),a(v-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Dut(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Iy(h)&&h===0}var s=Array.isArray(r)?function(h,d){var v=zf.castOption(i,r,h);return o(v)?v:zf.extractOption({},n,"",d)}:function(h,d){return zf.extractOption(a,n,h,d)};function l(h,d,v){var m=s(d,v);o(m)&&(e[h]=m)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=zf.constrain(e.x0,0,e.xa._length),e.x1=zf.constrain(e.x1,0,e.xa._length),e.y0=zf.constrain(e.y0,0,e.ya._length),e.y1=zf.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Sm.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Sm.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Sm.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Sm.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=Sm.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+Sm.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function Ble(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(n.selectAll(".spikeline").remove(),!!(l||s)){var f=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,v;u=h&&h.xa,c=h&&h.ya;var m=c.spikesnap;m==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=Fle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,k=c.spikethickness,M=c.spikecolor||b,T=Sm.getPxPosition(e,c),L,x;if(p.indexOf("toaxis")!==-1||p.indexOf("across")!==-1){if(p.indexOf("toaxis")!==-1&&(L=T,x=d),p.indexOf("across")!==-1){var C=c._counterDomainMin,S=c._counterDomainMax;c.anchor==="free"&&(C=Math.min(C,c.position),S=Math.max(S,c.position)),L=a.l+C*a.w,x=a.l+S*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":k,stroke:M,"stroke-dasharray":Am.dashStyle(c.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":k+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}p.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:T+(c.side!=="right"?k:-k),cy:v,r:k,fill:M}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,E;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,E=o.pointerY):(P=u._offset+g.x,E=c._offset+g.y);var q=Fle.readability(g.color,f)<1.5?vd.contrast(f):g.color,V=u.spikemode,G=u.spikethickness,Z=u.spikecolor||q,j=Sm.getPxPosition(e,u),N,H;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(N=j,H=E),V.indexOf("across")!==-1){var ie=u._counterDomainMin,ae=u._counterDomainMax;u.anchor==="free"&&(ie=Math.min(ie,u.position),ae=Math.max(ae,u.position)),N=a.t+(1-ae)*a.h,H=a.t+(1-ie)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G,stroke:Z,"stroke-dasharray":Am.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:j-(u.side!=="top"?G:-G),r:G,fill:Z}).classed("spikeline",!0)}}}function Fut(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function Nle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Ule(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function zut(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;oe.offsetTop+e.clientTop,Yle=e=>e.offsetLeft+e.clientLeft;function eT(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),i=n.left,a=n.top,o=i+n.width,s=a+n.height,l=zf.apply3DTransform(r._invTransform)(i,a),u=zf.apply3DTransform(r._invTransform)(o,s),c=l[0],f=l[1],h=u[0],d=u[1];return{x:c,y:f,width:h-c,height:d-f,top:Math.min(f,d),left:Math.min(c,h),right:Math.max(c,h),bottom:Math.max(f,d)}}});var xM=ye((qar,Kle)=>{"use strict";var qut=Pr(),Out=ka(),But=ip().isUnifiedHover;Kle.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&But(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Out.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),qut.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var $le=ye((Oar,Jle)=>{"use strict";var Nut=Pr(),Uut=xM(),Vut=W1();Jle.exports=function(t,r){function n(i,a){return Nut.coerce(t,r,Vut,i,a)}Uut(t,r,n)}});var tue=ye((Bar,eue)=>{"use strict";var Qle=Pr(),Gut=g3(),Hut=xM();eue.exports=function(t,r,n,i){function a(s,l){return Qle.coerce(t,r,Gut,s,l)}var o=Qle.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Hut(t,r,a,o)}});var $B=ye((Nar,rue)=>{"use strict";var jut=Pr(),Wut=W1();rue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:jut.coerce(t,r,Wut,i,a)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var aue=ye((Uar,nue)=>{"use strict";var iue=Pr(),Xut=W1(),Zut=$B(),Yut=xM();nue.exports=function(t,r){function n(c,f){return iue.coerce(t,r,Xut,c,f)}var i=Zut(t,r);i&&(n("hoverdistance"),n("spikedistance"),i.indexOf("unified")!==-1&&n("hoversort"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),l=r._has("geo"),u=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||l)&&u===1||(o||s)&&l&&u===2)&&(r.dragmode="pan"),Yut(t,r,n),iue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var lue=ye((Var,sue)=>{"use strict";var QB=Pr(),oue=Oa();sue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return QB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var Jut=Oa(),$ut=JB().hover;uue.exports=function(t,r,n){var i=Jut.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;n!==void 0&&$ut(t,r,n,!0);function o(){var l,u,c,f;var s={points:t._hoverdata,event:r};(l=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(u=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(c=s.xvals)!=null||(s.xvals=t._hoverXVals),(f=s.yvals)!=null||(s.yvals=t._hoverYVals),t.emit("plotly_click",s)}(t._hoverdata||a.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),i&&i.then?i.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var ef=ye((Har,due)=>{"use strict";var Qut=qa(),$L=Pr(),ect=yv(),bM=ip(),fue=W1(),hue=JB();due.exports={moduleType:"component",name:"fx",constants:US(),schema:{layout:fue},attributes:g3(),layoutAttributes:fue,supplyLayoutGlobalDefaults:$le(),supplyDefaults:tue(),supplyLayoutDefaults:aue(),calc:lue(),getDistanceFunction:bM.getDistanceFunction,getClosest:bM.getClosest,inbox:bM.inbox,quadrature:bM.quadrature,appendArrayPointValue:bM.appendArrayPointValue,castHoverOption:rct,castHoverinfo:ict,hover:hue.hover,unhover:ect.unhover,loneHover:hue.loneHover,loneUnhover:tct,click:cue()};function tct(e){var t=$L.isD3Selection(e)?e:Qut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function rct(e,t,r){return $L.castOption(e,t,"hoverlabel."+r)}function ict(e,t,r){function n(i){return $L.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return $L.castOption(e,r,"hoverinfo",n)}});var Cg=ye(Ry=>{"use strict";Ry.selectMode=function(e){return e==="lasso"||e==="select"};Ry.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ry.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ry.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ry.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ry.selectingOrDrawing=function(e){return Ry.freeMode(e)||Ry.rectMode(e)}});var wM=ye((War,vue)=>{"use strict";vue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var QL=ye((Xar,pue)=>{"use strict";pue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var tP=ye((Zar,gue)=>{"use strict";var eP=32;gue.exports={CIRCLE_SIDES:eP,i000:0,i090:eP/4,i180:eP/2,i270:eP/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var rP=ye((Yar,yue)=>{"use strict";var nct=Pr().strTranslate;function mue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function act(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function oct(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return mue(e,r[t])}}function sct(e){return nct(e.xaxis._offset,e.yaxis._offset)}yue.exports={p2r:mue,r2p:act,axValue:oct,getTransform:sct}});var m_=ye(Dy=>{"use strict";var lct=aM(),bue=tP(),rT=bue.CIRCLE_SIDES,eN=bue.SQRT2,wue=rP(),_ue=wue.p2r,xue=wue.r2p,uct=[0,3,4,5,6,1,2],cct=[0,3,4,1,2];Dy.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var Tue=df(),kue=Cg(),fct=kue.drawMode,hct=kue.openMode,iT=tP(),Aue=iT.i000,Sue=iT.i090,Mue=iT.i180,Eue=iT.i270,dct=iT.cos45,vct=iT.sin45,Cue=rP(),nP=Cue.p2r,y_=Cue.r2p,pct=o_(),gct=pct.clearOutline,aP=m_(),mct=aP.readPaths,yct=aP.writePaths,_ct=aP.ellipseOver,xct=aP.fixDatesForPaths;function bct(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!fct(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var wct=Cg(),Tct=wct.selectMode,Act=o_(),Sct=Act.clearOutline,tN=m_(),Mct=tN.readPaths,Ect=tN.writePaths,kct=tN.fixDatesForPaths;Iue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!Tct(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Rue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var x_=ye(Dd=>{"use strict";var Em=AM(),Due=Pr(),__=ho();Dd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Dd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Dd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Dd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Dd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Em.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(Em.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=i[s].drawn!==void 0;return a+(l?1:0)},0)};Dd.getDataToPixel=function(e,t,r,n,i){var a=e._fullLayout._size,o;if(t)if(i==="domain")o=function(l){return t._length*(n?1-l:l)+t._offset};else{var s=Dd.shapePositionToRange(t);o=function(l){var u=Mm(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=Dd.decodeDate(o))}else n?o=function(l){return a.t+a.h*(1-l)}:o=function(l){return a.l+a.w*l};return o};Dd.getPixelToData=function(e,t,r,n){var i=e._fullLayout._size,a;if(t)if(n==="domain")a=function(s){var l=(s-t._offset)/t._length;return r?1-l:l};else{var o=Dd.rangeToShapePosition(t);a=function(s){return o(t.p2r(s-t._offset))}}else r?a=function(s){return 1-(s-i.t)/i.h}:a=function(s){return(s-i.l)/i.w};return a};Dd.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,n=Math.round(e);return r?n+.5:n};Dd.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&r.xref!=="paper"&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(n.yaxis=e._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}};Dd.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:n}};Dd.getPathString=function(e,t){let r=t.type,n=__.getRefType(t.xref),i=__.getRefType(t.yref),a=e._fullLayout._size;var o,s,l,u,c,f,h,d,v,m,b,p;function k(P,E,z,q){var V;if(P)if(E==="domain")q?V=function(G){return P._offset+P._length*(1-G)}:V=function(G){return P._offset+P._length*G};else{let G=Dd.shapePositionToRange(P);V=function(Z){return P._offset+P.r2p(G(Z,!0))},z==="path"&&P.type==="date"&&(V=Dd.decodeDate(V))}else q?V=function(G){return a.t+a.h*(1-G)}:V=function(G){return a.l+a.w*G};return V}if(n==="array"?(h=[],o=t.xref.map(function(P){return __.getFromId(e,P)}),h=t.xref.map(function(P,E){return k(o[E],__.getRefType(P),r,!1)})):(o=__.getFromId(e,t.xref),h=k(o,n,r,!1)),i==="array"?(d=[],s=t.yref.map(function(P){return __.getFromId(e,P)}),d=t.yref.map(function(P,E){return k(s[E],__.getRefType(P),r,!0)})):(s=__.getFromId(e,t.yref),d=k(s,i,r,!0)),r==="path")return Cct(t,h,d);if(n==="array")l=Mm(o[0],t.x0shift),u=Mm(o[1],t.x1shift),v=h[0](t.x0)+l,m=h[1](t.x1)+u;else if(l=Mm(o,t.x0shift),u=Mm(o,t.x1shift),t.xsizemode==="pixel"){let P=h(t.xanchor);v=P+t.x0+l,m=P+t.x1+u}else v=h(t.x0)+l,m=h(t.x1)+u;if(i==="array")c=Mm(s[0],t.y0shift),f=Mm(s[1],t.y1shift),b=d[0](t.y0)+c,p=d[1](t.y1)+f;else if(c=Mm(s,t.y0shift),f=Mm(s,t.y1shift),t.ysizemode==="pixel"){let P=d(t.yanchor);b=P-t.y0+c,p=P-t.y1+f}else b=d(t.y0)+c,p=d(t.y1)+f;if(r==="line")return"M"+v+","+b+"L"+m+","+p;if(r==="rect")return"M"+v+","+b+"H"+m+"V"+p+"H"+v+"Z";var M=(v+m)/2,T=(b+p)/2,L=Math.abs(M-v),x=Math.abs(T-b),C="A"+L+","+x,S=M+L+","+T,g=M+","+(T-x);return"M"+S+C+" 0 1,1 "+g+C+" 0 0,1 "+S+"Z"};function Cct(e,t,r){let n=e.path,i=e.xsizemode,a=e.ysizemode,o=e.xanchor,s=e.yanchor,l=Array.isArray(e.xref),u=Array.isArray(e.yref);var c=0,f=0;return n.replace(Em.segmentRE,function(h){var d=0,v=h.charAt(0),m=Em.paramIsX[v],b=Em.paramIsY[v],p=Em.numParams[v];let k=m.drawn!==void 0,M=b.drawn!==void 0,T=l?t[c]:t,L=u?r[f]:r;var x=h.slice(1).replace(Em.paramRE,function(C){return m[d]?i==="pixel"?C=T(o)+Number(C):C=T(C):b[d]&&(a==="pixel"?C=L(s)-Number(C):C=L(C)),d++,d>p&&(C="X"),C});return d>p&&(x=x.replace(/[\s,]*X.*/,""),Due.log("Ignoring extra params in segment "+h)),k&&c++,M&&f++,v+x})}Dd.getPixelShift=Mm;function Mm(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var iN=ye((tor,que)=>{"use strict";var Lct=Pr(),km=ho(),Fue=Zl(),zue=So(),Pct=m_().readPaths,Zb=x_(),Ict=Zb.getPathString,SM=F6(),Rct=Dh().FROM_TL;que.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=km.getFromId(t,n.xref),l=km.getFromId(t,n.yref);let ae=Array.isArray(n.xref),_e=Array.isArray(n.yref);for(var u in SM){var c=typeof SM[u]=="function",f=!ae||SM.simpleXVariables.includes(u),h=!_e||SM.simpleYVariables.includes(u);if(c&&f&&h){var d=SM[u](n,s,l);d!==void 0&&(o[u]=d)}}}a=Lct.texttemplateStringForShapes({data:[o],fallback:n.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:n.label.texttemplate})}else a=n.label.text;var v={"data-index":r},m=n.label.font,b={"data-notex":1},p=i.append("g").attr(v).classed("shape-label",!0),k=p.append("text").attr(b).classed("shape-label-text",!0).text(a),M,T,L,x;if(n.path){var C=Ict(t,n),S=Pct(C,t);M=1/0,L=1/0,T=-1/0,x=-1/0;for(var g=0;gZb.getDataToPixel(t,He,ce,!1,lt)(Pe),me=(Pe,ce,He,lt)=>Zb.getDataToPixel(t,He,ce,!0,lt)(Pe);if(n.xsizemode==="pixel"){let Pe=Le(n.xanchor,void 0,Ee,Se),ce=Zb.getPixelShift(Ee,n.x0shift),He=Zb.getPixelShift(Ee,n.x1shift);M=Pe+n.x0+ce,T=Pe+n.x1+He}else M=Le(n.x0,n.x0shift,Ee,Se),T=Le(n.x1,n.x1shift,Ce,ke);if(n.ysizemode==="pixel"){let Pe=me(n.yanchor,void 0,ge,be),ce=Zb.getPixelShift(ge,n.y0shift),He=Zb.getPixelShift(ge,n.y1shift);L=Pe-n.y0+ce,x=Pe-n.y1+He}else L=me(n.y0,n.y0shift,ge,be),x=me(n.y1,n.y1shift,re,Be)}var G=n.label.textangle;G==="auto"&&(n.type==="line"?G=Dct(M,L,T,x):G=0),k.call(function(ae){return ae.call(zue.font,m).attr({}),Fue.convertToTspans(ae,t),ae});var Z=zue.bBox(k.node()),j=Fct(M,L,T,x,n,G,Z),N=j.textx,H=j.texty,ie=j.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ie],y:H,x:N,transform:"rotate("+G+","+N+","+H+")"}).call(Fue.positionText,N,H)}};function Dct(e,t,r,n){var i,a;return a=Math.abs(r-e),r>=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Fct(e,t,r,n,i,a,o){var s=i.label.textposition,l=i.label.textangle,u=i.label.padding,c=i.type,f=Math.PI/180*a,h=Math.sin(f),d=Math.cos(f),v=i.label.xanchor,m=i.label.yanchor,b,p,k,M;if(c==="line"){s==="start"?(b=e,p=t):s==="end"?(b=r,p=n):(b=(e+r)/2,p=(t+n)/2),v==="auto"&&(s==="start"?l==="auto"?r>e?v="left":re?v="right":re?v="right":re?v="left":r{"use strict";var zct=Pr(),qct=zct.strTranslate,Oue=yv(),Uue=Cg(),Oct=Uue.drawMode,Vue=Uue.selectMode,Gue=Oa(),Bue=ka(),lP=tP(),Bct=lP.i000,Nct=lP.i090,Uct=lP.i180,Vct=lP.i270,Gct=o_(),Hue=Gct.clearOutlineControllers,aN=m_(),sP=aN.pointsOnRectangle,nN=aN.pointsOnEllipse,Hct=aN.writePaths,jct=oP().newShapes,Wct=oP().createShapeObj,Xct=rN(),Zct=iN();jue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(nN(t[0])||n.hasText)&&s({redrawing:!0})}function s(j){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=jct(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Xct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Gue.call((j||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=Oct(c),h=Vue(c);(f||h)&&(a._fullLayout._outlining=!0),Hue(a),r.attr("d",Hct(t));var d,v,m,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=Yct([],t);var k=u.append("g").attr("class","outline-controllers");P(k),Z()}if(f&&n.hasText){var M=u.select(".label-temp"),T=Wct(r,n,n.dragmode);Zct(a,"label-temp",T,M)}function L(j){m=+j.srcElement.getAttribute("data-i"),b=+j.srcElement.getAttribute("data-j"),d[m][b].moveFn=x}function x(j,N){if(t.length){var H=p[m][b][1],ie=p[m][b][2],ae=t[m],_e=ae.length;if(sP(ae)){var Ee=j,Ce=N;if(n.isActiveSelection){var ge=Nue(ae,b);ge[1]===ae[b][1]?Ce=0:Ee=0}for(var re=0;re<_e;re++)if(re!==b){var Se=ae[re];Se[1]===ae[b][1]&&(Se[1]=H+Ee),Se[2]===ae[b][2]&&(Se[2]=ie+Ce)}if(ae[b][1]=H+Ee,ae[b][2]=ie+Ce,!sP(ae))for(var ke=0;ke<_e;ke++)for(var be=0;be1&&!(j.length===2&&j[1][0]==="Z")&&(b===0&&(j[0][0]="M"),t[m]=j,o(),s())}}function g(j,N){if(j===2){m=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var H=t[m];!sP(H)&&!nN(H)&&S()}}function P(j){d=[];for(var N=0;N{"use strict";var Jct=qa(),Jue=Oa(),sN=Pr(),Yb=ho(),$ct=m_().readPaths,Qct=uP(),fP=iN(),$ue=o_().clearOutlineControllers,oN=ka(),hP=So(),eft=vl().arrayEditor,Wue=yv(),Xue=ef(),Zue=Eg(),Kb=AM(),Ep=x_(),lN=Ep.getPathString;tce.exports={draw:uN,drawOne:Que,eraseActiveShape:aft,drawLabel:fP};function uN(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;i{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=i(a);o&&Xue.hover(e,o,r.id)}}),n.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=i(a);o&&Xue.click(e,o,r.id)}})}function ece(e,t,r){let n=r.xref,i=r.yref;if(Array.isArray(n)||Array.isArray(i)){let a="clip"+t._fullLayout._uid+"shape"+r._index,o=rft(t,n,i);sN.ensureSingleById(t._fullLayout._clips,"clipPath",a,function(s){s.append("rect")}).select("rect").attr(o),hP.setClipUrl(e,a,t)}else{let a=(n+i).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");hP.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}}function rft(e,t,r){let n=e._fullLayout._size;function i(s,l){let u=(Array.isArray(s)?s:[s]).map(h=>Yb.getFromId(e,h)).filter(Boolean);if(!u.length)return l?[n.t,n.t+n.h]:[n.l,n.l+n.w];let c=u.map(function(h){return h._offset}),f=u.map(function(h){return h._offset+h._length});return[Math.min(...c),Math.max(...f)]}let a=i(t,!1),o=i(r,!0);return{x:a[0],y:o[0],width:a[1]-a[0],height:o[1]-o[0]}}function ift(e,t,r,n,i,a){var o=10,s=10,l=r.xsizemode==="pixel",u=r.ysizemode==="pixel",c=r.type==="line",f=r.type==="path",h=a.modifyItem,d,v,m,b,p,k,M,T,L,x,C,S,g,P,E,z=Jct.select(t.node().parentNode),q=Yb.getFromId(e,r.xref),V=Yb.getRefType(r.xref),G=Yb.getFromId(e,r.yref),Z=Yb.getRefType(r.yref),j=r.x0shift,N=r.x1shift,H=r.y0shift,ie=r.y1shift,ae=function(at,ct){var ar=Ep.getDataToPixel(e,q,ct,!1,V);return ar(at)},_e=function(at,ct){var ar=Ep.getDataToPixel(e,G,ct,!0,Z);return ar(at)},Ee=Ep.getPixelToData(e,q,!1,V),Ce=Ep.getPixelToData(e,G,!0,Z),ge=ke(),re={element:ge.node(),gd:e,prepFn:Le,doneFn:me,clickFn:Pe},Se;Wue.init(re),ge.node().onmousemove=Be;function ke(){return c?be():t}function be(){var at=10,ct=Math.max(r.line.width,at),ar=i.append("g").attr("data-index",n).attr("drag-helper",!0);ar.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":ct,"stroke-opacity":"0"});var Vt={"fill-opacity":"0"},rr=Math.max(ct/2,at);return ar.append("circle").attr({"data-line-point":"start-point",cx:l?ae(r.xanchor)+r.x0:ae(r.x0,j),cy:u?_e(r.yanchor)-r.y0:_e(r.y0,H),r:rr}).style(Vt).classed("cursor-grab",!0),ar.append("circle").attr({"data-line-point":"end-point",cx:l?ae(r.xanchor)+r.x1:ae(r.x1,N),cy:u?_e(r.yanchor)-r.y1:_e(r.y1,ie),r:rr}).style(Vt).classed("cursor-grab",!0),ar}function Be(at){if(cP(e)){Se=null;return}if(c)at.target.tagName==="path"?Se="move":Se=at.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ct=re.element.getBoundingClientRect(),ar=ct.right-ct.left,Vt=ct.bottom-ct.top,rr=at.clientX-ct.left,tt=at.clientY-ct.top,je=!f&&ar>o&&Vt>s&&!at.shiftKey?Wue.getCursor(rr/ar,1-tt/Vt):"move";Zue(t,je),Se=je.split("-")[0]}}function Le(at){cP(e)||(l&&(p=ae(r.xanchor)),u&&(k=_e(r.yanchor)),r.type==="path"?E=r.path:(d=l?r.x0:ae(r.x0),v=u?r.y0:_e(r.y0),m=l?r.x1:ae(r.x1),b=u?r.y1:_e(r.y1)),db?(M=v,C="y0",T=b,S="y1"):(M=b,C="y1",T=v,S="y0"),Be(at),lt(i,r),Ht(t,r,e),re.moveFn=Se==="move"?ce:He,re.altKey=at.altKey)}function me(){cP(e)||(Zue(t),mt(i),ece(t,e,r),Jue.call("_guiRelayout",e,a.getUpdateObj()))}function Pe(){cP(e)||mt(i)}function ce(at,ct){if(r.type==="path"){var ar=function(tt){return tt},Vt=ar,rr=ar;l?h("xanchor",r.xanchor=Ee(p+at)):(Vt=function(je){return Ee(ae(je)+at)},q&&q.type==="date"&&(Vt=Ep.encodeDate(Vt))),u?h("yanchor",r.yanchor=Ce(k+ct)):(rr=function(je){return Ce(_e(je)+ct)},G&&G.type==="date"&&(rr=Ep.encodeDate(rr))),h("path",r.path=Yue(E,Vt,rr))}else l?h("xanchor",r.xanchor=Ee(p+at)):(h("x0",r.x0=Ee(d+at)),h("x1",r.x1=Ee(m+at))),u?h("yanchor",r.yanchor=Ce(k+ct)):(h("y0",r.y0=Ce(v+ct)),h("y1",r.y1=Ce(b+ct)));t.attr("d",lN(e,r)),lt(i,r),fP(e,n,r,z)}function He(at,ct){if(f){var ar=function(Ar){return Ar},Vt=ar,rr=ar;l?h("xanchor",r.xanchor=Ee(p+at)):(Vt=function(ei){return Ee(ae(ei)+at)},q&&q.type==="date"&&(Vt=Ep.encodeDate(Vt))),u?h("yanchor",r.yanchor=Ce(k+ct)):(rr=function(ei){return Ce(_e(ei)+ct)},G&&G.type==="date"&&(rr=Ep.encodeDate(rr))),h("path",r.path=Yue(E,Vt,rr))}else if(c){if(Se==="resize-over-start-point"){var tt=d+at,je=u?v-ct:v+ct;h("x0",r.x0=l?tt:Ee(tt)),h("y0",r.y0=u?je:Ce(je))}else if(Se==="resize-over-end-point"){var Ue=m+at,Ae=u?b-ct:b+ct;h("x1",r.x1=l?Ue:Ee(Ue)),h("y1",r.y1=u?Ae:Ce(Ae))}}else{var rt=function(Ar){return Se.indexOf(Ar)!==-1},St=rt("n"),Tt=rt("s"),dt=rt("w"),Et=rt("e"),pt=St?M+ct:M,jt=Tt?T+ct:T,or=dt?L+at:L,mr=Et?x+at:x;u&&(St&&(pt=M-ct),Tt&&(jt=T-ct)),(!u&&jt-pt>s||u&&pt-jt>s)&&(h(C,r[C]=u?pt:Ce(pt)),h(S,r[S]=u?jt:Ce(jt))),mr-or>o&&(h(g,r[g]=l?or:Ee(or)),h(P,r[P]=l?mr:Ee(mr)))}t.attr("d",lN(e,r)),lt(i,r),fP(e,n,r,z)}function lt(at,ct){(l||u)&&ar();function ar(){var Vt=ct.type!=="path",rr=at.selectAll(".visual-cue").data([0]),tt=1;rr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":tt}).classed("visual-cue",!0);var je=ae(l?ct.xanchor:sN.midRange(Vt?[ct.x0,ct.x1]:Ep.extractPathCoords(ct.path,Kb.paramIsX))),Ue=_e(u?ct.yanchor:sN.midRange(Vt?[ct.y0,ct.y1]:Ep.extractPathCoords(ct.path,Kb.paramIsY)));if(je=Ep.roundPositionForSharpStrokeRendering(je,tt),Ue=Ep.roundPositionForSharpStrokeRendering(Ue,tt),l&&u){var Ae="M"+(je-1-tt)+","+(Ue-1-tt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";rr.attr("d",Ae)}else if(l){var rt="M"+(je-1-tt)+","+(Ue-9-tt)+"v18 h2 v-18 Z";rr.attr("d",rt)}else{var St="M"+(je-9-tt)+","+(Ue-1-tt)+"h18 v2 h-18 Z";rr.attr("d",St)}}}function mt(at){at.selectAll(".visual-cue").remove()}function Ht(at,ct,ar){var Vt=ct.xref,rr=ct.yref,tt=Yb.getFromId(ar,Vt),je=Yb.getFromId(ar,rr),Ue="";Vt!=="paper"&&!tt.autorange&&(Ue+=Vt),rr!=="paper"&&!je.autorange&&(Ue+=rr),hP.setClipUrl(at,Ue?"clip"+ar._fullLayout._uid+Ue:null,ar)}}function Yue(e,t,r){return e.replace(Kb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Kb.paramIsX[a],s=Kb.paramIsY[a],l=Kb.numParams[a],u=n.slice(1).replace(Kb.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function nft(e,t){if(dP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Kue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Kue,uN(e)}}}function Kue(e){if(dP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&($ue(e),delete e._fullLayout._activeShapeIndex,uN(e))}}function aft(e){if(dP(e)){$ue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=Oa(),rce=Mc(),ice=df(),Pl=QL(),oft=vP().eraseActiveShape,pP=Pr(),tl=pP._,Il=cce.exports={};Il.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?tl(e,"Download plot as a PNG"):tl(e,"Download plot")},icon:Pl.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};pP.notifier(tl(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){pP.notifier(tl(e,"Snapshot succeeded")+" - "+n,"long",e)}).catch(function(){pP.notifier(tl(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Il.sendDataToCloud={name:"sendDataToCloud",title:function(e){return tl(e,"Edit in Chart Studio")},icon:Pl.disk,click:function(e){rce.sendDataToCloud(e)}};Il.editInChartStudio={name:"editInChartStudio",title:function(e){return tl(e,"Edit in Chart Studio")},icon:Pl.pencil,click:function(e){rce.sendDataToCloud(e)}};Il.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return tl(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Pl.zoombox,click:Bv};Il.pan2d={name:"pan2d",_cat:"pan",title:function(e){return tl(e,"Pan")},attr:"dragmode",val:"pan",icon:Pl.pan,click:Bv};Il.select2d={name:"select2d",_cat:"select",title:function(e){return tl(e,"Box Select")},attr:"dragmode",val:"select",icon:Pl.selectbox,click:Bv};Il.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return tl(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Pl.lasso,click:Bv};Il.drawclosedpath={name:"drawclosedpath",title:function(e){return tl(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Pl.drawclosedpath,click:Bv};Il.drawopenpath={name:"drawopenpath",title:function(e){return tl(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Pl.drawopenpath,click:Bv};Il.drawline={name:"drawline",title:function(e){return tl(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Pl.drawline,click:Bv};Il.drawrect={name:"drawrect",title:function(e){return tl(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Pl.drawrect,click:Bv};Il.drawcircle={name:"drawcircle",title:function(e){return tl(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Pl.drawcircle,click:Bv};Il.eraseshape={name:"eraseshape",title:function(e){return tl(e,"Erase active shape")},icon:Pl.eraseshape,click:oft};Il.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return tl(e,"Zoom in")},attr:"zoom",val:"in",icon:Pl.zoom_plus,click:Bv};Il.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return tl(e,"Zoom out")},attr:"zoom",val:"out",icon:Pl.zoom_minus,click:Bv};Il.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return tl(e,"Autoscale")},attr:"zoom",val:"auto",icon:Pl.autoscale,click:Bv};Il.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return tl(e,"Reset axes")},attr:"zoom",val:"reset",icon:Pl.home,click:Bv};Il.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return tl(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Pl.tooltip_basic,gravity:"ne",click:Bv};Il.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return tl(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Pl.tooltip_compare,gravity:"ne",click:Bv};function Bv(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=ice.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(n==="zoom"){var f=i==="in"?.5:2,h=(1+f)/2,d=(1-f)/2,v,m;for(c=0;c{"use strict";var fce=hN(),uft=Object.keys(fce),hce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],dce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(hce),aT=[],cft=function(e){if(dce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();aT.indexOf(t)===-1&&aT.push(t),aT.indexOf(r)===-1&&aT.push(r)}};uft.forEach(function(e){cft(fce[e])});aT.sort();vce.exports={DRAW_MODES:hce,backButtons:dce,foreButtons:aT}});var vN=ye((sor,pce)=>{"use strict";var oor=dN();pce.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var mce=ye((lor,gce)=>{"use strict";var fft=Pr(),MM=ka(),hft=vl(),dft=vN();gce.exports=function(t,r){var n=t.modebar||{},i=hft.newContainer(r,"modebar");function a(s,l){return fft.coerce(n,i,dft,s,l)}a("orientation"),a("bgcolor",MM.addOpacity(r.paper_bgcolor,.5));var o=MM.contrast(MM.rgb(r.modebar.bgcolor));a("color",MM.addOpacity(o,.3)),a("activecolor",MM.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var bce=ye((uor,xce)=>{"use strict";var pN=qa(),vft=Eo(),mP=Pr(),yce=QL(),pft=m6().version,gft=new DOMParser;function _ce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Cm=_ce.prototype;Cm.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),mP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Cm.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Cm.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Cm.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&pN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||yce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Cm.createIcon=function(e){var t=vft(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=gft.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Cm.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=pN.select(n),l=function(f,h){var d=t.modebar,v=f.querySelector(".icon path");v&&(h||f.matches(":hover")?v.style.fill=d.activecolor:v.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(n,u)}}else{var c=a===null?a:mP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};Cm.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var _ft=df(),wce=Ru(),gN=Oa(),xft=ip().isUnifiedHover,bft=bce(),yP=hN(),wft=dN().DRAW_MODES,Tft=Pr().extendDeep;Tce.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Cft(a):!n.displayModeBar&&n.watermark?o=[]:o=Aft(t),i?i.update(t,o):r._modeBar=bft(t,o)};function Aft(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,H){if(typeof H=="string"){if(H.toLowerCase()===N.toLowerCase())return!0}else{var ie=H.name,ae=H._cat||H.name;if(ie===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var H=0;H1?(P=["toggleHover"],E=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],E=["resetGeo"]):c?(P=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],E=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],E=["resetViewMap"]):h?P=["hoverClosestPie"]:M?(P=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Eft(r)||L)&&(P=[]),u&&!T&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!T||v?z=["zoom2d","pan2d"]:m||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),Mft(r)&&z.push("select2d","lasso2d");var q=[],V=function(N){q.indexOf(N)===-1&&P.indexOf(N)!==-1&&q.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z{"use strict";Sce.exports={moduleType:"component",name:"modebar",layoutAttributes:vN(),supplyLayoutDefaults:mce(),manage:Ace()}});var yN=ye((dor,Mce)=>{"use strict";var Lft=Dh().FROM_BL;Mce.exports=function(t,r,n){n===void 0&&(n=Lft[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var $b=ye(EM=>{"use strict";var Jb=Pr(),_N=Mg(),Lg=df().id2name,Pft=Rd(),Ece=yN(),Ift=xm(),Rft=fs().ALMOST_EQUAL,Dft=Dh().FROM_BL;EM.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,d,v;for(s=0;sa?r.slice(a):n.slice(i))+o}function zft(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oRft*v&&!k)){for(a=0;az&&ieP&&(P=ie);var _e=(P-g)/(2*E);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=x{"use strict";var xP=qa(),Nv=Oa(),Jp=Mc(),M0=Pr(),wN=Zl(),TN=wM(),kM=ka(),oT=So(),Pce=qb(),zce=mN(),CM=ho(),Fy=Dh(),qce=$b(),qft=qce.enforce,Oft=qce.clean,Ice=Mg().doAutoRange,Oce="start",Bft="middle",Bce="end",Nft=Rh().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,Vft],e)};function Uft(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Vft(e){var t=e._fullLayout,r=t._size,n=r.p,i=CM.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(oT.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),zce.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Le,me,Pe){var ce=Le._lw/2;if(Le._id.charAt(0)==="x"){if(me){if(Pe==="top")return me._offset-n-ce}else return r.t+r.h*(1-(Le.position||0))+ce%1;return me._offset+me._length+n+ce}if(me){if(Pe==="right")return me._offset+me._length+n+ce}else return r.l+r.w*(Le.position||0)+ce%1;return me._offset-n-ce}for(a=0;a0){Wft(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Fce(t.yanchor)}).call(wN.positionText,o,a);var c=(t.text.match(wN.BR_TAG_ALL)||[]).length;if(c){var f=Fy.LINE_SPACING*c+Fy.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",b)})}var h=xP.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,m=v+Pce.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:m,"text-anchor":n,dy:Fce(t.yanchor)}).call(wN.positionText,o,m)}}}};function Gft(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=Hft(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Wft(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&Gft(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[i]=l),Jp.allowAutoMargin(e,i),Jp.autoMargin(e,i,s)}function Xft(e,t){var r=e.title,n=e._size,i=0;switch(t===Oce?i=r.pad.l:t===Bce&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function Zft(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Fy.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Fce(e){return e==="top"?Fy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Fy.MID_SHIFT+"em"}function Yft(e){var t=e.title,r=Bft;return M0.isRightAnchor(t)?r=Bce:M0.isLeftAnchor(t)&&(r=Oce),r}function Kft(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Fy.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Fy.MID_SHIFT+"em"),r}pd.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var Jft=m_().readPaths,$ft=uP(),Nce=o_().clearOutlineControllers,AN=ka(),Uce=So(),Qft=vl().arrayEditor,Vce=x_(),eht=Vce.getPathString;Hce.exports={draw:bP,drawOne:Gce,activateLastSelection:iht};function bP(e){var t=e._fullLayout;Nce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var p=o.append("path").attr(l).style("opacity",b?.1:u).call(AN.stroke,f).call(AN.fill,c).call(Uce.dashLine,b?"solid":d,b?4+h:h);if(tht(p,e,n),v){var k=Qft(e.layout,"selections",n);p.style({cursor:"move"});var M={element:p.node(),plotinfo:i,gd:e,editHelpers:k,isActiveSelection:!0},T=Jft(s,e);$ft(T,p,M)}else p.style("pointer-events",b?"all":"none");m[b]=p}var L=m[0],x=m[1];x.node().addEventListener("click",function(){return rht(e,L)})}}function tht(e,t,r){var n=r.xref+r.yref;Uce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function rht(e,t){if(wP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){SN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=SN,bP(e)}}}function iht(e){if(wP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=SN,bP(e)}}function SN(e){if(wP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Nce(e),delete e._fullLayout._activeSelectionIndex,bP(e))}}});var Wce=ye((mor,jce)=>{function nht(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}jce.exports=nht});var Zce=ye((yor,Xce)=>{function aht(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],l=i[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],l=i[1]-n[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-i>e&&(l=!l),o=c,s=f}return l}};return t}Xce.exports=aht});var Kce=ye((_or,Yce)=>{var oht={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Yce.exports=oht});var $ce=ye((xor,Jce)=>{var PM=Kce();function sht(e,t,r){function n(v,m){return{id:r?r.segmentId():-1,start:v,end:m,myFill:{above:null,below:null},otherFill:null}}function i(v,m,b){return{id:r?r.segmentId():-1,start:v,end:m,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=PM.create();function o(v,m,b,p,k,M){var T=t.pointsCompare(m,k);return T!==0?T:t.pointsSame(b,M)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?k:M,p?M:k)?1:-1}function s(v,m){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,m,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,m){var b=PM.node({isStart:!0,pt:v.start,seg:v,primary:m,other:null,status:null});return s(b,v.end),b}function u(v,m,b){var p=PM.node({isStart:!1,pt:m.end,seg:m,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,m){var b=l(v,m);return u(b,v,m),b}function f(v,m){r&&r.segmentChop(v.seg,m),v.other.remove(),v.seg.end=m,v.other.pt=m,s(v.other,v.pt)}function h(v,m){var b=i(m,v.seg.end,v.seg);return f(v,m),c(b,v.primary)}function d(v,m){var b=PM.create();function p(G,Z){var j=G.seg.start,N=G.seg.end,H=Z.seg.start,ie=Z.seg.end;return t.pointsCollinear(j,H,ie)?t.pointsCollinear(N,H,ie)||t.pointAboveOrOnLine(N,H,ie)?1:-1:t.pointAboveOrOnLine(j,H,ie)?1:-1}function k(G){return b.findTransition(function(Z){var j=p(G,Z.ev);return j>0})}function M(G,Z){var j=G.seg,N=Z.seg,H=j.start,ie=j.end,ae=N.start,_e=N.end;r&&r.checkIntersection(j,N);var Ee=t.linesIntersect(H,ie,ae,_e);if(Ee===!1){if(!t.pointsCollinear(H,ie,ae)||t.pointsSame(H,_e)||t.pointsSame(ie,ae))return!1;var Ce=t.pointsSame(H,ae),ge=t.pointsSame(ie,_e);if(Ce&&ge)return Z;var re=!Ce&&t.pointBetween(H,ae,_e),Se=!ge&&t.pointBetween(ie,ae,_e);if(Ce)return Se?h(Z,ie):h(G,_e),Z;re&&(ge||(Se?h(Z,ie):h(G,_e)),h(Z,H))}else Ee.alongA===0&&(Ee.alongB===-1?h(G,ae):Ee.alongB===0?h(G,Ee.pt):Ee.alongB===1&&h(G,_e)),Ee.alongB===0&&(Ee.alongA===-1?h(Z,H):Ee.alongA===0?h(Z,Ee.pt):Ee.alongA===1&&h(Z,ie));return!1}for(var T=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(C){var Z=M(L,C);if(Z)return Z}return S?M(L,S):!1};var V=G;r&&r.segmentNew(L.seg,L.primary);var x=k(L),C=x.before?x.before.ev:null,S=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,S?S.seg:!1);var g=G();if(g){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(g.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,S?L.seg.myFill.below=S.seg.myFill.above:L.seg.myFill.below=v,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var E;S?L.primary===S.primary?E=S.seg.otherFill.above:E=S.seg.myFill.above:E=L.primary?m:v,L.seg.otherFill={above:E,below:E}}r&&r.status(L.seg,C?C.seg:!1,S?S.seg:!1),L.other.status=x.insert(PM.node({ev:L}))}else{var z=L.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(z.prev)&&b.exists(z.next)&&M(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var q=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=q}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(v){for(var m,b=v[v.length-1],p=0;p{function lht(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(V,G,Z){return c.index=V,c.matches_head=G,c.matches_pt1=Z,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function IM(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var uht={union:function(e,t){return IM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return IM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return IM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return IM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return IM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};tfe.exports=uht});var nfe=ye((Tor,ife)=>{var cht={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l{var fht=Wce(),hht=Zce(),afe=$ce(),dht=efe(),RM=rfe(),ofe=nfe(),E0=!1,DM=hht(),kp;kp={buildLog:function(e){return e===!0?E0=fht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return DM.epsilon(e)},segments:function(e){var t=afe(!0,DM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=afe(!1,DM,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:RM.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:RM.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:RM.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:RM.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:RM.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:dht(e.segments,DM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return ofe.toPolygon(kp,e)},polygonToGeoJSON:function(e){return ofe.fromPolygon(kp,DM,e)},union:function(e,t){return FM(e,t,kp.selectUnion)},intersect:function(e,t){return FM(e,t,kp.selectIntersect)},difference:function(e,t){return FM(e,t,kp.selectDifference)},differenceRev:function(e,t){return FM(e,t,kp.selectDifferenceRev)},xor:function(e,t){return FM(e,t,kp.selectXor)}};function FM(e,t,r){var n=kp.segments(e),i=kp.segments(t),a=kp.combine(n,i),o=r(a);return kp.polygon(o)}typeof window=="object"&&(window.PolyBool=kp);sfe.exports=kp});var cfe=ye((Sor,ufe)=>{ufe.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var l=i-n,u=0,c=l-1;uo!=v>o&&a<(d-f)*(o-h)/(v-h)+f;m&&(s=!s)}return s}});var zM=ye((Mor,ffe)=>{"use strict";var EN=I6().dot,TP=fs().BADNUM,AP=ffe.exports={};AP.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||p===TP||po||m&&u(v))}function f(v,m){var b=v[0],p=v[1];if(b===TP||bi||p===TP||po)return!1;var k=r.length,M=r[0][0],T=r[0][1],L=0,x,C,S,g,P;for(x=1;xMath.max(C,M)||p>Math.max(S,T)))if(ps||Math.abs(EN(f,u))>i)return!0;return!1};AP.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(l){t.push(l);var u=n.length,c=i;n.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var dfe=ye((Eor,hfe)=>{"use strict";hfe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Ffe=ye((kor,Dfe)=>{"use strict";var vfe=lfe(),vht=cfe(),BM=Oa(),pht=So().dashStyle,qM=ka(),ght=ef(),mht=ip().makeEventData,HM=Cg(),yht=HM.freeMode,_ht=HM.rectMode,NM=HM.drawMode,PN=HM.openMode,IN=HM.selectMode,pfe=x_(),gfe=AM(),bfe=uP(),wfe=o_().clearOutline,Tfe=m_(),kN=Tfe.handleEllipse,xht=Tfe.readPaths,bht=oP().newShapes,wht=rN(),Tht=MN().activateLastSelection,MP=Pr(),Aht=MP.sorterAsc,Afe=zM(),OM=j6(),k0=df().getFromId,Sht=wM(),Mht=LM().redrawReglTraces,EP=dfe(),Lm=EP.MINSELECT,Eht=Afe.filter,RN=Afe.tester,DN=rP(),mfe=DN.p2r,kht=DN.axValue,Cht=DN.getTransform;function FN(e){return e.subplot!==void 0}function Lht(e,t,r,n,i){var a=!FN(n),o=yht(i),s=_ht(i),l=PN(i),u=NM(i),c=IN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,m=v._fullLayout,b=c&&m.newselection.mode==="immediate"&&a,p=m._zoomlayer,k=n.element.getBoundingClientRect(),M=n.plotinfo,T=Cht(M),L=t-k.left,x=r-k.top;m._calcInverseTransform(v);var C=MP.apply3DTransform(m._invTransform)(L,x);L=C[0],x=C[1];var S=m._invScaleX,g=m._invScaleY,P=L,E=x,z="M"+L+","+x,q=n.xaxes[0],V=n.yaxes[0],G=q._length,Z=V._length,j=e.altKey&&!(NM(i)&&l),N,H,ie,ae,_e,Ee,Ce;Mfe(e,v,n),o&&(N=Eht([[L,x]],EP.BENDPX));var ge=p.selectAll("path.select-outline-"+M.id).data([1]),re=u?m.newshape:m.newselection;u&&(n.hasText=re.label.text||re.label.texttemplate);var Se=u&&!l?re.fillcolor:"rgba(0,0,0,0)",ke=re.line.color||(a?qM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");ge.enter().append("path").attr("class","select-outline select-outline-"+M.id).style({opacity:u?re.opacity/2:1,"stroke-dasharray":pht(re.line.dash,re.line.width),"stroke-width":re.line.width+"px","shape-rendering":"crispEdges"}).call(qM.stroke,ke).call(qM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",T).attr("d",z+"Z");var be=p.append("path").attr("class","zoombox-corners").style({fill:qM.background,stroke:qM.defaultLine,"stroke-width":1}).attr("transform",T).attr("d","M0,0Z");if(u&&n.hasText){var Be=p.select(".label-temp");Be.empty()&&(Be=p.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Le=m._uid+EP.SELECTID,me=[],Pe=kP(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var He=q._id,lt=V._id;Pfe(v,He,lt,Pe);for(var mt=(v.layout||{}).selections||[],Ht=[],at=!1,ct=0;ct=0){v._fullLayout._deactivateShape(v);return}if(!u){var mt=m.clickmode;OM.done(Le).then(function(){if(OM.clear(Le),He===2){for(ge.remove(),_e=0;_e-1&&Sfe(lt,v,n.xaxes,n.yaxes,n.subplot,n,ge),mt==="event"&&GM(v,void 0);ght.click(v,lt,M.id)}).catch(MP.error)}},n.doneFn=function(){be.remove(),OM.done(Le).then(function(){OM.clear(Le),!b&&ae&&n.selectionDefs&&(ae.subtract=j,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,ie)),(b||u)&&UM(n,b),n.doneFnCompleted&&n.doneFnCompleted(me),c&&GM(v,Ce)}).catch(MP.error)}}function Sfe(e,t,r,n,i,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,d,v,m,b,p,k,M,T,L;if(Fht(s)){Mfe(e,t,a),h=kP(t,r,n,i);var x=zht(s,h),C=x.pointNumbers.length>0;if(C?qht(h,x):Oht(h)&&(k=_fe(x))){for(o&&o.remove(),L=0;L=0}function Dht(e){return e._fullLayout._activeSelectionIndex>=0}function UM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Rht(i)&&i._fullLayout._deactivateShape(i),Dht(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=NM(r),l=IN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=bht(u,e)),c&&BM.call("_guiRelayout",i,{shapes:c});var f;l&&!FN(e)&&(f=wht(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,BM.call("_guiRelayout",i,{selections:f}).then(function(){t&&Tht(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function yfe(e){return e._id}function kP(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(yfe),o=r.map(yfe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function qht(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function VM(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var He=xfe(e,!0);if(He.length){var lt=He[0].xref,mt=He[0].yref;if(lt&&mt){var Ht=Ife(He),at=Rfe([k0(e,lt,"x"),k0(e,mt,"y")]);at(me,Ht)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&GM(e,me),h._reselect=!1}if(!o&&h._deselect){var ct=h._deselect;s=ct.xref,l=ct.yref,Uht(s,l,c)||Pfe(e,s,l,n),ce&&(me.points.length?GM(e,me):ON(e)),h._deselect=!1}return{eventData:me,selectionTesters:r}}function Nht(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";zfe.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var jM=ye((Lor,qfe)=>{"use strict";qfe.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Qb=ye((Ior,Nfe)=>{"use strict";var Ofe=BN(),Bfe=ec(),CP=Rh(),Wht=vl().templatedArray,Por=jM();Nfe.exports=Wht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Bfe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Ofe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Ofe.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",CP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",CP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",CP.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",CP.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Bfe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Pm=ye((Ror,Ufe)=>{"use strict";Ufe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Pg=ye((Dor,Vfe)=>{"use strict";Vfe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var pf=ye((For,Kfe)=>{"use strict";var Gfe=vf().axisHoverFormat,{hovertemplateAttrs:Xht,texttemplateAttrs:Zht,templatefallbackAttrs:Hfe}=Ll(),jfe=Tu(),Yht=ec(),Wfe=Pd().dash,Kht=Pd().pattern,Jht=So(),$ht=Pm(),WM=Ao().extendFlat,Qht=Pg();function Xfe(e){return{valType:"any",dflt:0,editType:"calc"}}function Zfe(e){return{valType:"any",editType:"calc"}}function Yfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Kfe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Xfe("x"),yperiod:Xfe("y"),xperiod0:Zfe("x0"),yperiod0:Zfe("y0"),xperiodalignment:Yfe("x"),yperiodalignment:Yfe("y"),xhoverformat:Gfe("x"),yhoverformat:Gfe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Zht(),texttemplatefallback:Hfe({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Xht({},{keys:$ht.eventDataKeys}),hovertemplatefallback:Hfe(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:WM({},Wfe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Qht(!0),fillgradient:WM({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Kht,marker:WM({symbol:{valType:"enumerated",values:Jht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:WM({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:WM({},Wfe,{arrayOk:!0}),editType:"calc"},jfe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},jfe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Yht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var NN=ye((qor,Qfe)=>{"use strict";var Jfe=Qb(),$fe=pf().line,edt=Pd().dash,LP=Ao().extendFlat,tdt=mc().overrideAll,rdt=vl().templatedArray,zor=jM();Qfe.exports=tdt(rdt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:LP({},Jfe.xref,{}),yref:LP({},Jfe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:$fe.color,width:LP({},$fe.width,{min:1,dflt:1}),dash:LP({},edt,{dflt:"dot"})}}),"arraydraw","from-root")});var ihe=ye((Oor,rhe)=>{"use strict";var ehe=Pr(),PP=ho(),idt=Kd(),ndt=NN(),the=x_();rhe.exports=function(t,r){idt(t,r,{name:"selections",handleItemDefaults:adt});for(var n=r.selections,i=0;i{"use strict";nhe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var XM=ye((Nor,lhe)=>{"use strict";var odt=Oa(),ohe=Pr(),she=df();lhe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=odt.subplotsRegistry.cartesian,s=o.idRegex,l=i._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var uhe=MN(),ZM=Ffe();che.exports={moduleType:"component",name:"selections",layoutAttributes:NN(),supplyLayoutDefaults:ihe(),supplyDrawNewSelectionDefaults:ahe(),includeBasePlot:XM()("selections"),draw:uhe.draw,drawOne:uhe.drawOne,reselect:ZM.reselect,prepSelect:ZM.prepSelect,clearOutline:ZM.clearOutline,clearSelectionsCache:ZM.clearSelectionsCache,selectOnClick:ZM.selectOnClick}});var XN=ye((Vor,Lhe)=>{"use strict";var jN=qa(),C0=Pr(),fhe=C0.numberFormat,sdt=fd(),ldt=VL(),IP=Oa(),xhe=C0.strTranslate,udt=Zl(),hhe=ka(),w_=So(),cdt=ef(),dhe=ho(),fdt=Eg(),hdt=yv(),bhe=Cg(),RP=bhe.selectingOrDrawing,ddt=bhe.freeMode,vdt=Dh().FROM_TL,pdt=wM(),gdt=LM().redrawReglTraces,mdt=Mc(),VN=df().getFromId,ydt=qf().prepSelect,_dt=qf().clearOutline,xdt=qf().selectOnClick,UN=yN(),WN=Rh(),vhe=WN.MINDRAG,ap=WN.MINZOOM,phe=!0;function bdt(e,t,r,n,i,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,d,v,m,b,p,k,M,T,L,x,C,S,g,P,E,z,q,V,G,Z,j;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,M=f._length,T=h._length,p=f._offset,k=h._offset,d={},d[f._id]=f,v={},v[h._id]=h,o&&s)for(var Et=t.overlays,pt=0;pt=0){jt._fullLayout._deactivateShape(jt);return}var or=jt._fullLayout.clickmode;if(HN(jt),Et===2&&!c&&Ue(),u)or.indexOf("select")>-1&&xdt(pt,jt,m,b,t.id,ae),or.indexOf("event")>-1&&cdt.click(jt,pt,t.id);else if(Et===1&&c){var mr=o?h:f,Ar=o==="s"||s==="w"?0:1,ei=mr._name+".range["+Ar+"]",qr=wdt(mr,Ar),jr="left",gt="middle";if(mr.fixedrange)return;o?(gt=o==="n"?"top":"bottom",mr.side==="right"&&(jr="right")):s==="e"&&(jr="right"),jt._context.showAxisRangeEntryBoxes&&jN.select(ie).call(udt.makeEditable,{gd:jt,immediate:!0,background:jt._fullLayout.paper_bgcolor,text:String(qr),fill:mr.tickfont?mr.tickfont.color:"#444",horizontalAlign:jr,verticalAlign:gt}).on("edit",function(Ge){var Je=mr.d2r(Ge);Je!==void 0&&IP.call("_guiRelayout",jt,ei,Je)})}}hdt.init(ae);var Ce,ge,re,Se,ke,be,Be,Le,me,Pe;function ce(Et,pt,jt){var or=ie.getBoundingClientRect();Ce=pt-or.left,ge=jt-or.top,e._fullLayout._calcInverseTransform(e);var mr=C0.apply3DTransform(e._fullLayout._invTransform)(Ce,ge);Ce=mr[0],ge=mr[1],re={l:Ce,r:Ce,w:0,t:ge,b:ge,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:sdt(e._fullLayout.plot_bgcolor).getLuminance(),ke="M0,0H"+M+"V"+T+"H0V0",be=!1,Be="xy",Pe=!1,Le=Ahe(l,Se,p,k,ke),me=She(l,p,k)}function He(Et,pt){if(e._transitioningWithDuration)return!1;var jt=Math.max(0,Math.min(M,Z*Et+Ce)),or=Math.max(0,Math.min(T,j*pt+ge)),mr=Math.abs(jt-Ce),Ar=Math.abs(or-ge);re.l=Math.min(Ce,jt),re.r=Math.max(Ce,jt),re.t=Math.min(ge,or),re.b=Math.max(ge,or);function ei(){Be="",re.r=re.l,re.t=re.b,me.attr("d","M0,0Z")}if(L.isSubplotConstrained)mr>ap||Ar>ap?(Be="xy",mr/M>Ar/T?(Ar=mr*T/M,ge>or?re.t=ge-Ar:re.b=ge+Ar):(mr=Ar*M/T,Ce>jt?re.l=Ce-mr:re.r=Ce+mr),me.attr("d",DP(re))):ei();else if(x.isSubplotConstrained)if(mr>ap||Ar>ap){Be="xy";var qr=Math.min(re.l/M,(T-re.b)/T),jr=Math.max(re.r/M,(T-re.t)/T);re.l=qr*M,re.r=jr*M,re.b=(1-qr)*T,re.t=(1-jr)*T,me.attr("d",DP(re))}else ei();else!S||Ar0){var Ge;if(x.isSubplotConstrained||!C&&S.length===1){for(Ge=0;Ge1&&(ei.maxallowed!==void 0&&P===(ei.range[0]1&&(qr.maxallowed!==void 0&&E===(qr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Adt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Ahe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",xhe(r,n)).attr("d",i+"Z")}function She(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:hhe.background,stroke:hhe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",xhe(t,r)).attr("d","M0,0Z")}function Mhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),Ehe(e,t,i,a)}function Ehe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function HN(e){jN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function khe(e){phe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long",e),phe=!1)}function Sdt(e,t){return"M"+(e.l-.5)+","+(t-ap-.5)+"h-3v"+(2*ap+1)+"h3ZM"+(e.r+.5)+","+(t-ap-.5)+"h3v"+(2*ap+1)+"h-3Z"}function Mdt(e,t){return"M"+(t-ap-.5)+","+(e.t-.5)+"v-3h"+(2*ap+1)+"v3ZM"+(t-ap-.5)+","+(e.b+.5)+"v3h"+(2*ap+1)+"v-3Z"}function DP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ap)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function yhe(e,t,r,n,i){for(var a=!1,o={},s={},l,u,c,f,h=(i||{}).xaHash,d=(i||{}).yaHash,v=0;v{"use strict";var Edt=qa(),FP=ef(),kdt=yv(),Cdt=Eg(),Ig=XN().makeDragBox,gd=Rh().DRAGGERSIZE;zP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Edt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Ig(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&FP.hover(t,h,a)},FP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,kdt.unhover(t,h))},t._context.showAxisDragHandles&&(Ig(t,o,s._offset-gd,l._offset-gd,gd,gd,"n","w"),Ig(t,o,s._offset+s._length,l._offset-gd,gd,gd,"n","e"),Ig(t,o,s._offset-gd,l._offset+l._length,gd,gd,"s","w"),Ig(t,o,s._offset+s._length,l._offset+l._length,gd,gd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=gd),Ig(t,o,s._offset+s._length*.1,c,s._length*.8,gd,"","ew"),Ig(t,o,s._offset,c,s._length*.1,gd,"","w"),Ig(t,o,s._offset+s._length*.9,c,s._length*.1,gd,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=gd),Ig(t,o,f,l._offset+l._length*.1,gd,l._length*.8,"ns",""),Ig(t,o,f,l._offset+l._length*.9,gd,l._length*.1,"s",""),Ig(t,o,f,l._offset,gd,l._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,FP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,FP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},zP.updateFx(t)}};zP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Cdt(t._draggers,r)}});var Rhe=ye((Hor,Ihe)=>{"use strict";var Phe=Oa();Ihe.exports=function(t){for(var r=Phe.layoutArrayContainers,n=Phe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Ldt=Ay(),YN=P6(),YM=K1(),Pdt=V6().sorterAsc,KN=Oa();KM.containerArrayMatch=Rhe();var Idt=KM.isAddVal=function(t){return t==="add"||Ldt(t)},Dhe=KM.isRemoveVal=function(t){return t===null||t==="remove"};KM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=KN.getComponentMethod(o,"supplyLayoutDefaults"),l=KN.getComponentMethod(o,"draw"),u=KN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===YN||l===YN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&YM.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Dhe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return YM.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(f,h),l(t),!0)}var v=Object.keys(n).map(Number).sort(Pdt),m=r.get(),b=m||[],p=a(h,o).get(),k=[],M=-1,T=b.length,L,x,C,S,g,P,E,z;for(L=0;Lb.length-(E?0:1)){YM.warn("index out of range",o,C);continue}if(P!==void 0)g.length>1&&YM.warn("Insertion & removal are incompatible with edits to the same index.",o,C),Dhe(P)?k.push(C):E?(P==="add"&&(P={}),b.splice(C,0,P),p&&p.splice(C,0,{})):YM.warn("Unrecognized full object edit value",o,C,P),M===-1&&(M=C);else for(x=0;x=0;L--)b.splice(k[L],1),p&&p.splice(k[L],1);if(b.length?m||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==YN){var q;if(M===-1)q=v;else{for(T=Math.max(b.length,T),q=[],L=0;L=M));L++)q.push(C);for(L=M;L{"use strict";var Bhe=Eo(),Nhe=Oa(),Uv=Pr(),JM=Mc(),Uhe=df(),Vhe=ka(),$M=Uhe.cleanId,Rdt=Uhe.getFromTrace,JN=Nhe.traceIs,Ddt=["x","y","z"];L0.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Uv.log("Clearing previous rejected promises from queue."),e._promises=[]};L0.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(JM.subplotsRegistry.cartesian||{}).attrRegex,i=(JM.subplotsRegistry.polar||{}).attrRegex,a=(JM.subplotsRegistry.ternary||{}).attrRegex,o=(JM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Vhe.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function sT(e,t,r=!1){var n=e[t],i=t.charAt(0);r&&Array.isArray(n)||n&&n!=="paper"&&(e[t]=$M(n,i,!0))}L0.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}L0.hasParent=function(e,t){for(var r=Ohe(t);r;){if(r in e)return!0;r=Ohe(r)}return!1};L0.clearAxisTypes=function(e,t,r){for(var n=0;n{let r=(...n)=>n.every(i=>Uv.isPlainObject(i))||n.every(i=>Array.isArray(i));if([e,t].every(n=>Array.isArray(n))){if(e.length!==t.length)return!1;for(let n=0;nUv.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let i=e[n],a=t[n];if(i!==a&&!(r(i,a)?$N(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=$N});var YP=ye(_l=>{"use strict";var NP=qa(),qdt=Eo(),Odt=cO(),Sa=Pr(),Ec=Sa.nestedProperty,tU=L3(),op=Mne(),P0=Oa(),XP=R3(),Qo=Mc(),Vv=ho(),Bdt=MB(),Ndt=Rd(),QN=So(),Udt=ka(),Vdt=ZN().initInteractions,Gdt=Wp(),Hdt=qf().clearOutline,Zhe=xb().dfltConfig,OP=Fhe(),gh=Ghe(),Au=LM(),T_=mc(),jdt=Rh().AX_NAME_PATTERN,eU=0,Hhe=5;function Wdt(e,t,r,n){var i;if(e=Sa.getGraphDiv(e),tU.init(e),Sa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=tU.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Sa.isPlotDiv(e)&&Sa.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return _l.addFrames(e,i)}Khe(e,n),r||(r={}),NP.select(e).classed("js-plotly-plot",!0),QN.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(gh.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=gh.cleanLayout(r)),Qo.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(pvt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),QN.initGradients(e),QN.initPatterns(e),l&&Vv.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&Qo.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function Jhe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),VP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&VP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Jdt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&c=0&&c0&&typeof S.parts[E]!="string";)E--;var z=S.parts[E],q=S.parts[E-1]+"."+z,V=S.parts.slice(0,E).join("."),G=Ec(e.layout,V).get(),Z=Ec(n,V).get(),j=S.get();if(g!==void 0){p[C]=g,k[C]=z==="reverse"?g:zy(j);var N=XP.getLayoutValObject(n,S.parts);if(N&&N.impliedEdits&&g!==null)for(var H in N.impliedEdits)M(Sa.relativeAttr(C,H),N.impliedEdits[H]);if(["width","height"].indexOf(C)!==-1)if(g){M("autosize",null);var ie=C==="height"?"width":"height";M(ie,n[ie])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")M("width",g?null:n.width),M("height",g?null:n.height);else if(q.match(ode))x(q),Ec(n,V+"._inputRange").set(null);else if(q.match(sde)){x(q),Ec(n,V+"._inputRange").set(null);var ae=Ec(n,V).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else q.match(tvt)&&Ec(n,V+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Ee=Z.type==="log"&&g==="linear";if(_e||Ee){if(!L||!L.range)M(V+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Ce=L.range[0],ge=L.range[1];_e?(Ce<=0&&ge<=0&&M(V+".autorange",!0),Ce<=0?Ce=ge/1e6:ge<=0&&(ge=Ce/1e6),M(V+".range[0]",Math.log(Ce)/Math.LN10),M(V+".range[1]",Math.log(ge)/Math.LN10)):(M(V+".range[0]",Math.pow(10,Ce)),M(V+".range[1]",Math.pow(10,ge)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete n[S.parts[0]]._subplot.viewInitial["radialaxis.range"],P0.getComponentMethod("annotations","convertCoords")(e,Z,g,M),P0.getComponentMethod("images","convertCoords")(e,Z,g,M)}else M(V+".autorange",!0),M(V+".range",null);Ec(n,V+"._inputRange").set(null)}else if(z.match(jdt)){var re=Ec(n,C).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),P0.getComponentMethod("annotations","convertCoords")(e,re,Se,M),P0.getComponentMethod("images","convertCoords")(e,re,Se,M)}var ke=OP.containerArrayMatch(C);if(ke){c=ke.array,f=ke.index;var be=ke.property,Be=N||{editType:"calc"};f!==""&&be===""&&(OP.isAddVal(g)?k[C]=null:OP.isRemoveVal(g)?k[C]=(Ec(r,c).get()||[])[f]:Sa.warn("unrecognized full object value",t)),T_.update(b,Be),u[c]||(u[c]={});var Le=u[c][f];Le||(Le=u[c][f]={}),Le[be]=g,delete t[C]}else z==="reverse"?(G.range?G.range.reverse():(M(V+".autorange",!0),G.range=[1,0]),Z.autorange?b.calc=!0:b.plot=!0):(C==="dragmode"&&(g===!1&&j!==!1||g!==!1&&j===!1)||n._has("scatter-like")&&n._has("regl")&&C==="dragmode"&&(g==="lasso"||g==="select")&&!(j==="lasso"||j==="select")?b.plot=!0:N?T_.update(b,N):b.calc=!0,S.set(g))}}for(c in u){var me=OP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);me||(b.plot=!0)}for(var Pe in T){L=Vv.getFromId(e,Pe);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var He in ce)T[He]||(Vv.getFromId(e,He)._constraintShrinkable=!0)}}(ude(e)||t.height||t.width)&&(b.plot=!0);var lt=n.shapes;for(f=0;f1;)if(n.pop(),r=Ec(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function nvt(e,t){for(var r=0;r[V,e._ev.listeners(V)]);a=_l.newPlot(e,t,r,n).then(()=>{for(let[V,G]of q)G.forEach(Z=>e.on(V,Z));return _l.react(e,t,r,n)})}else{e.data=t||[],gh.cleanData(e.data),e.layout=r||{},gh.cleanLayout(e.layout),ovt(e.data,e.layout,s,l),Qo.supplyDefaults(e,{skipUpdateCalc:!0});var f=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,v=h.transition,m=uvt(e,l,h,d,v),b=m.newDataRevision,p=lvt(e,s,f,d,v,b);if(ude(e)&&(m.layoutReplot=!0),p.calc||m.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(h),M=0;M(c||e.emit("plotly_react",{config:n,data:t,layout:r}),e))}function lvt(e,t,r,n,i,a){var o=t.length===r.length;if(!i&&!o)return{fullReplot:!0,calc:!0};var s=T_.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function c(d){var v=XP.getTraceValObject(u,d);return!u._module.animatable&&v.anim&&(v.anim=!1),v}var f={getValObject:c,flags:s,immutable:n,transition:i,newDataRevision:a,gd:e},h={};for(l=0;l=i.length?i[0]:i[u]:i}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var z=n._frameQueue.pop();z.onInterrupt&&z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(z){if(z.length!==0){for(var q=0;qn._timeToNext&&v()};z()}var b=0;function p(z){return Array.isArray(i)?b>=i.length?z.transitionOpts=i[b]:z.transitionOpts=i[0]:z.transitionOpts=i,b++,z}var k,M,T=[],L=t==null,x=Array.isArray(t),C=!L&&!x&&Sa.isPlainObject(t);if(C)T.push({type:"object",data:p(Sa.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(k=0;k0&&PP)&&E.push(M);T=E}}T.length>0?h(T):(e.emit("plotly_animated"),u())})}function fvt(e,t,r){if(e=Sa.getGraphDiv(e),t==null)return Promise.resolve();if(!Sa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(n=t.length-1;n>=0;n--)if(Sa.isPlainObject(t[n])){var h=t[n].name,d=(l[h]||f[h]||{}).name,v=t[n].name,m=l[d]||f[d];d&&v&&typeof v=="number"&&m&&eUS.index?-1:C.index=0;n--){if(i=c[n].frame,typeof i.name=="number"&&Sa.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;l[i.name="frame "+e._transitionData._counter++];);if(l[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Qo.modifyFrames,l=Qo.modifyFrames,u=[e,o],c=[e,a];return op&&op.add(e,s,u,l,c),Qo.modifyFrames(e,a)}function dvt(e){e=Sa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Qo.cleanPlot([],{},r,t),Qo.purge(e),tU.purge(e),t._container&&t._container.remove(),delete e._context,e}function vvt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Sa.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Sa.inverseTransformMatrix(Sa.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function pvt(e){var t=NP.select(e),r=e._fullLayout;if(r._calcInverseTransform=vvt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};NP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Sa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Gdt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}_l.animate=cvt;_l.addFrames=fvt;_l.deleteFrames=hvt;_l.addTraces=rde;_l.deleteTraces=ide;_l.extendTraces=ede;_l.moveTraces=rU;_l.prependTraces=tde;_l.newPlot=Kdt;_l._doPlot=Wdt;_l.purge=dvt;_l.react=svt;_l.redraw=Ydt;_l.relayout=QM;_l.restyle=GP;_l.setPlotConfig=Xdt;_l.update=jP;_l._guiRelayout=iU(QM);_l._guiRestyle=iU(GP);_l._guiUpdate=iU(jP);_l._storeDirectGUIEdit=evt});var qy=ye(Im=>{"use strict";var gvt=Oa();Im.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Im.getRedrawFunc=function(e){return function(){gvt.getComponentMethod("colorbar","draw")(e)}};Im.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Im.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var cde=window.URL||window.webkitURL;Im.createObjectURL=function(e){return cde.createObjectURL(e)};Im.revokeObjectURL=function(e){return cde.revokeObjectURL(e)};Im.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=mvt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Im.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function mvt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var aU=qa(),Yor=Pr(),yvt=So(),_vt=ka(),Kor=Wp(),nU=/"/g,t4="TOBESTRIPPED",xvt=new RegExp('("'+t4+")|("+t4+'")',"g");function bvt(e){var t=aU.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function wvt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}fde.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,l=i.height,u;a.insert("rect",":first-child").call(yvt.setRect,0,0,s,l).call(_vt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var Tvt=Pr(),Avt=Sb().EventEmitter,r4=qy();function Svt(e){var t=e.emitter||new Avt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,d=u*f,v=l.getContext("2d",{willReadFrequently:!0}),m=new a,b,p;s==="svg"||Tvt.isSafari()?p=r4.encodeSVG(o):(b=r4.createBlob(o,"svg"),p=r4.createObjectURL(b)),l.width=h,l.height=d,m.onload=function(){var k;switch(b=null,r4.revokeObjectURL(p),s!=="svg"&&v.drawImage(m,0,0,h,d),s){case"jpeg":k=l.toDataURL("image/jpeg");break;case"png":k=l.toDataURL("image/png");break;case"webp":k=l.toDataURL("image/webp");break;case"svg":k=p;break;default:var M="Image format is not jpeg, png, svg or webp.";if(i(new Error(M)),!e.promise)return t.emit("error",M)}n(k),e.promise||t.emit("success",k)},m.onerror=function(k){if(b=null,r4.revokeObjectURL(p),i(k),!e.promise)return t.emit("error",k)},m.src=p});return e.promise?r:t}hde.exports=Svt});var sU=ye((Qor,pde)=>{"use strict";var dde=Eo(),vde=YP(),Mvt=Mc(),Rm=Pr(),i4=qy(),Evt=KP(),kvt=JP(),Cvt=m6().version,oU={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Lvt(e,t){t=t||{};var r,n,i,a;Rm.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Rm.getGraphDiv(e),r=Rm.extendDeep([],e.data),n=Rm.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Rm.validate(t[x],oU[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Rm.join2(oU.format.values,", "," or ")+".");var s={};function l(x,C){return Rm.coerce(t,s,oU,x,C)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var b=Rm.extendFlat({},n);c?b.width=c:t.width===null&&dde(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&dde(a.height)&&(b.height=a.height);var p=Rm.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),k=i4.getRedrawFunc(m);function M(){return new Promise(function(x){setTimeout(x,i4.getDelay(m._fullLayout))})}function T(){return new Promise(function(x,C){var S=Evt(m,u,h),g=m._fullLayout.width,P=m._fullLayout.height;function E(){vde.purge(m),document.body.removeChild(m)}if(u==="full-json"){var z=Mvt.graphJson(m,!1,"keepdata","object",!0,!0);return z.version=Cvt,z=JSON.stringify(z),E(),x(v?z:i4.encodeJSON(z))}if(E(),u==="svg")return x(v?S:i4.encodeSVG(S));var q=document.createElement("canvas");q.id=Rm.randstr(),kvt({format:u,width:g,height:P,scale:h,canvas:q,svg:S,promise:!0}).then(x).catch(C)})}function L(x){return v?x.replace(i4.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,C){vde.newPlot(m,r,b,p).then(k).then(M).then(T).then(function(S){x(L(S))}).catch(function(S){C(S)})})}pde.exports=Lvt});var yde=ye((esr,mde)=>{"use strict";var I0=Pr(),Pvt=Mc(),Ivt=R3(),Rvt=xb().dfltConfig,Rg=I0.isPlainObject,t2=Array.isArray,lU=I0.isArrayOrTypedArray;mde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Ivt.get(),i=[],a={_context:I0.extendFlat({},Rvt)},o,s;t2(t)?(a.data=I0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(md("array","data"))),Rg(r)?(a.layout=I0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(md("object","layout"))),Pvt.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&n.push(md("unused",i,u.concat(f.length)));var p=f.length,k=Array.isArray(b);k&&(p=Math.min(p,b.length));var M,T,L,x,C;if(h.dimensions===2)for(T=0;Tf[T].length&&n.push(md("unused",i,u.concat(T,f[T].length)));var S=f[T].length;for(M=0;M<(k?Math.min(S,b[T].length):S);M++)L=k?b[T][M]:b,x=c[T][M],C=f[T][M],I0.validate(x,L)?C!==x&&C!==+x&&n.push(md("dynamic",i,u.concat(T,M),x,C)):n.push(md("value",i,u.concat(T,M),x))}else n.push(md("array",i,u.concat(T),c[T]));else for(T=0;T{"use strict";var Nvt=Pr(),QP=qy();function Uvt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var l,u;if(i)return l=QP.createBlob(e,r),u=QP.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),QP.revokeObjectURL(u),l=null,o(t);if(Nvt.isSafari()){var c=r==="svg"?",":";base64,";return QP.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}_de.exports=Uvt});var uU=ye((isr,wde)=>{"use strict";var bde=Pr(),Vvt=sU(),Gvt=xde(),rsr=qy();function Hvt(e,t){var r;return bde.isPlainObject(e)||(r=bde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=Vvt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Gvt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}wde.exports=Hvt});var Ede=ye(cU=>{"use strict";var Cp=Pr(),Lp=Cp.isPlainObject,Tde=R3(),Ade=Mc(),jvt=Gl(),Sde=vl(),Mde=xb().dfltConfig;cU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:Mde},{data:e.data,layout:e.layout}),Ade.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var v={};n4(d,v,Xvt.bind(null,d));var m=Cp.coerce(d,{},jvt,"type"),b=n.data[m];b||(b=n.data[m]=[]),b.push(v)}),n4(r,n.layout,Wvt.bind(null,r)),delete n.layout.template;var i=r.template;if(Lp(i)){var a=i.layout,o,s,l,u,c,f;Lp(a)&&eI(a,n.layout);var h=i.data;if(Lp(h)){for(s in n.data)if(l=h[s],Array.isArray(l)){for(c=n.data[s],f=c.length,u=l.length,o=0;op?o.push({code:"unused",traceType:d,templateCount:b,dataCount:p}):p>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:p})}}function k(M,T){for(var L in M)if(L.charAt(0)!=="_"){var x=M[L],C=R0(M,L,T);Lp(x)?(Array.isArray(M)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:C,templateitemname:x.templateitemname}),k(x,C)):Array.isArray(x)&&Zvt(x)&&k(x,C)}}if(k({data:l,layout:s},""),o.length)return o.map(Yvt)};function Zvt(e){for(var t=0;t{"use strict";var rd=YP();tf._doPlot=rd._doPlot;tf.newPlot=rd.newPlot;tf.restyle=rd.restyle;tf.relayout=rd.relayout;tf.redraw=rd.redraw;tf.update=rd.update;tf._guiRestyle=rd._guiRestyle;tf._guiRelayout=rd._guiRelayout;tf._guiUpdate=rd._guiUpdate;tf._storeDirectGUIEdit=rd._storeDirectGUIEdit;tf.react=rd.react;tf.extendTraces=rd.extendTraces;tf.prependTraces=rd.prependTraces;tf.addTraces=rd.addTraces;tf.deleteTraces=rd.deleteTraces;tf.moveTraces=rd.moveTraces;tf.purge=rd.purge;tf.addFrames=rd.addFrames;tf.deleteFrames=rd.deleteFrames;tf.animate=rd.animate;tf.setPlotConfig=rd.setPlotConfig;var Kvt=jS().getGraphDiv,Jvt=vP().eraseActiveShape;tf.deleteActiveShape=function(e){return Jvt(Kvt(e))};tf.toImage=sU();tf.validate=yde();tf.downloadImage=uU();var kde=Ede();tf.makeTemplate=kde.makeTemplate;tf.validateTemplate=kde.validateTemplate});var lT=ye((osr,Lde)=>{"use strict";var fU=Pr(),$vt=Oa();Lde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=$vt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=fU.minRowLength(a);o?s=Math.min(u,fU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=fU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Dg=ye((ssr,Rde)=>{"use strict";var Pde=Pr().dateTick0,Qvt=fs(),ept=Qvt.ONEWEEK;function Ide(e,t){return e%ept===0?Pde(t,1):Pde(t,0)}Rde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Ide(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Ide(s,r.ycalendar)),i("yperiodalignment"))}}});var zde=ye((lsr,Fde)=>{"use strict";var Dde=["orientation","groupnorm","stackgaps"];Fde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var qde=ka(),Ode=pv().hasColorscale,Bde=td(),tpt=Ru();Nde.exports=function(t,r,n,i,a,o={}){var s=tpt.isBubble(t),l=(t.line||{}).color,u;if(l&&(n=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Ode(t,"marker")&&Bde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=qde.background:u=qde.defaultLine,a("marker.line.color",u),Ode(t,"marker.line")&&Bde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0),o.noLineDash||a("marker.line.dash")),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var D0=ye((csr,Ude)=>{"use strict";var rpt=Pr().isArrayOrTypedArray,ipt=pv().hasColorscale,npt=td();Ude.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),ipt(t,"line"))npt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(rpt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var uT=ye((fsr,Vde)=>{"use strict";Vde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var F0=ye((hsr,Gde)=>{"use strict";var apt=Pr();Gde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),apt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Fg=ye((dsr,jde)=>{"use strict";var rI=ka(),Hde=Pr().isArrayOrTypedArray;function opt(e){for(var t=rI.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Wde=Pr(),spt=Oa(),lpt=pf(),upt=Pm(),cT=Ru(),cpt=lT(),fpt=Dg(),hpt=zde(),dpt=$p(),vpt=D0(),Xde=uT(),ppt=F0(),gpt=Fg(),mpt=Pr().coercePattern;Zde.exports=function(t,r,n,i){function a(d,v){return Wde.coerce(t,r,lpt,d,v)}var o=cpt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){fpt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=hpt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var ypt=$b().getAxisGroup;Kde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=ypt(n,s)+o,u=n._alignmentOpts||{},c=i("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var d=i("offsetgroup")||"",v=h.offsetGroups,m=v[d];r._offsetIndex=0,(a!=="group"||d)&&(m||(m=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=m.offsetIndex)}});var hU=ye((gsr,Jde)=>{"use strict";var _pt=Pr(),xpt=r2(),bpt=pf();Jde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return _pt.coerce(i._input,i,bpt,h)}if(r.scattermode==="group")for(a=0;a=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var Qde=ye((msr,$de)=>{"use strict";var wpt=Pr(),Tpt=rL();$de.exports=function(e,t){function r(i,a){return wpt.coerce(e,t,Tpt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var zg=ye((ysr,tve)=>{"use strict";var Apt=Eo(),eve=Pr(),Spt=eve.dateTime2ms,iI=eve.incrementMonth,Mpt=fs(),Ept=Mpt.ONEAVGMONTH;tve.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(Apt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:i}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[n+"period0"],d=Spt(h,u)||0,v=[],m=[],b=[],p=i.length,k=0;kM;)x=iI(x,-s,u);for(;x<=M;)x=iI(x,s,u);L=iI(x,-s,u)}else{for(T=Math.round((M-d)/o),x=d+T*o;x>M;)x-=o;for(;x<=M;)x+=o;L=x-o}v[k]=c?L:f?x:(L+x)/2,m[k]=L,b[k]=x}return{vals:v,starts:m,ends:b}}});var z0=ye((_sr,ive)=>{"use strict";var dU=pv().hasColorscale,vU=gv(),rve=Ru();ive.exports=function(t,r){rve.hasLines(r)&&dU(r,"line")&&vU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),rve.hasMarkers(r)&&(dU(r,"marker")&&vU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),dU(r,"marker.line")&&vU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Dm=ye((xsr,nve)=>{"use strict";var Of=Pr();nve.exports=function(t,r){for(var n=0;n{"use strict";var ave=Pr();ove.exports=function(t,r){ave.isArrayOrTypedArray(r.selectedpoints)&&ave.tagSelected(t,r)}});var O0=ye((wsr,dve)=>{"use strict";var sve=Eo(),gU=Pr(),a4=ho(),lve=zg(),pU=fs().BADNUM,mU=Ru(),kpt=z0(),Cpt=Dm(),Lpt=q0();function Ppt(e,t){var r=e._fullLayout,n=t._xA=a4.getFromId(e,t.xaxis||"x","x"),i=t._yA=a4.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=lve(t,n,"x",a),l=lve(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=yU(t,r,n,i),m=!1,b,p,k,M,T,L;fve(r,t);var x="x",C="y",S;if(v)gU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(C="s",S="x"):(x="s",S="y"),T=v.stackgaps==="interpolate";else{var g=cve(t,f);uve(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,E=!!t.yperiodalignment;for(p=0;pp&&h[M].gap;)M--;for(L=h[M].s,k=h.length-1;k>M;k--)h[k].s=L;for(;p{"use strict";vve.exports=nI;var Ipt=Pr().distinctVals;function nI(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";gve.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var i2=ye((Ssr,xve)=>{"use strict";var B0=Eo(),{isArrayOrTypedArray:Oy}=Pr(),{BADNUM:fT}=fs(),Rpt=Oa(),o4=ho(),{getAxisGroup:Dpt}=$b(),aI=pve(),{TEXTPAD:Fpt}=A_(),{LINE_SPACING:zpt}=Dh(),{BR_TAG_ALL:qpt}=Zl();function Opt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!B0(s))}for(var c=0;cn(a))):n(e.text);let i=e.outsidetextfont.size*zpt*r+Fpt;return{ppadplus:t.some(a=>a.s<0)?i:0,ppadminus:t.some(a=>a.s>=0)?i:0}}return{ppadplus:void 0,ppadminus:void 0}}function Zpt(e,t,r,n){for(var i=hT(n),a=0;a{"use strict";var bve=O0(),wve=i2().setGroupPositions;function Kpt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[c]&&c{"use strict";var $pt=So(),kve=fs(),s4=kve.BADNUM,Cve=kve.LOG_CLIP,Sve=Cve+.5,Mve=Cve-.5,oI=Pr(),Qpt=oI.segmentsIntersect,Eve=oI.constrain,SU=Pm();Lve.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",l=i._length,u=a._length,c=r.backoff,f=n.marker,h=r.connectGaps,d=r.baseTolerance,v=r.shape,m=v==="linear",b=n.fill&&n.fill!=="none",p=[],k=SU.minTolerance,M=t.length,T=new Array(M),L=0,x,C,S,g,P,E,z,q,V,G,Z,j,N,H,ie,ae;function _e(gt){var Ge=t[gt];if(!Ge)return!1;var Je=r.linearized?i.l2p(Ge.x):i.c2p(Ge.x),We=r.linearized?a.l2p(Ge.y):a.c2p(Ge.y);if(Je===s4){if(o&&(Je=i.c2p(Ge.x,!0)),Je===s4)return!1;s&&We===s4&&(Je*=Math.abs(i._m*u*(i._m>0?Sve:Mve)/(a._m*l*(a._m>0?Sve:Mve)))),Je*=1e3}if(We===s4){if(s&&(We=a.c2p(Ge.y,!0)),We===s4)return!1;We*=1e3}return[Je,We]}function Ee(gt,Ge,Je,We){var et=Je-gt,xt=We-Ge,At=.5-gt,Kt=.5-Ge,Qt=et*et+xt*xt,Mr=et*At+xt*Kt;if(Mr>0&&Mr1||Math.abs(At.y-Je[0][1])>1)&&(At=[At.x,At.y],We&&Se(At,gt)Be||gt[1]me)return[Eve(gt[0],be,Be),Eve(gt[1],Le,me)]}function Vt(gt,Ge){if(gt[0]===Ge[0]&&(gt[0]===be||gt[0]===Be)||gt[1]===Ge[1]&&(gt[1]===Le||gt[1]===me))return!0}function rr(gt,Ge){var Je=[],We=ar(gt),et=ar(Ge);return We&&et&&Vt(We,et)||(We&&Je.push(We),et&&Je.push(et)),Je}function tt(gt,Ge,Je){return function(We,et){var xt=ar(We),At=ar(et),Kt=[];if(xt&&At&&Vt(xt,At))return Kt;xt&&Kt.push(xt),At&&Kt.push(At);var Qt=2*oI.constrain((We[gt]+et[gt])/2,Ge,Je)-((xt||We)[gt]+(At||et)[gt]);if(Qt){var Mr;xt&&At?Mr=Qt>0==xt[gt]>At[gt]?xt:At:Mr=xt||At,Mr[gt]+=Qt}return Kt}}var je;v==="linear"||v==="spline"?je=ct:v==="hv"||v==="vh"?je=rr:v==="hvh"?je=tt(0,be,Be):v==="vhv"&&(je=tt(1,Le,me));function Ue(gt,Ge){var Je=Ge[0]-gt[0],We=(Ge[1]-gt[1])/Je,et=(gt[1]*Ge[0]-Ge[1]*gt[0])/Je;return et>0?[We>0?be:Be,me]:[We>0?Be:be,Le]}function Ae(gt){var Ge=gt[0],Je=gt[1],We=Ge===T[L-1][0],et=Je===T[L-1][1];if(!(We&&et))if(L>1){var xt=Ge===T[L-2][0],At=Je===T[L-2][1];We&&(Ge===be||Ge===Be)&&xt?At?L--:T[L-1]=gt:et&&(Je===Le||Je===me)&&At?xt?L--:T[L-1]=gt:T[L++]=gt}else T[L++]=gt}function rt(gt){T[L-1][0]!==gt[0]&&T[L-1][1]!==gt[1]&&Ae([lt,mt]),Ae(gt),Ht=null,lt=mt=0}var St=oI.isArrayOrTypedArray(f);function Tt(gt){if(gt&&c&&(gt.i=x,gt.d=t,gt.trace=n,gt.marker=St?f[gt.i]:f,gt.backoff=c),Ce=gt[0]/l,ge=gt[1]/u,ce=gt[0]Be?Be:0,He=gt[1]me?me:0,ce||He){if(!L)T[L++]=[ce||gt[0],He||gt[1]];else if(Ht){var Ge=je(Ht,gt);Ge.length>1&&(rt(Ge[0]),T[L++]=Ge[1])}else at=je(T[L-1],gt)[0],T[L++]=at;var Je=T[L-1];ce&&He&&(Je[0]!==ce||Je[1]!==He)?(Ht&&(lt!==ce&&mt!==He?Ae(lt&&mt?Ue(Ht,gt):[lt||ce,mt||He]):lt&&mt&&Ae([lt,mt])),Ae([ce,He])):lt-ce&&mt-He&&Ae([ce||lt,He||mt]),Ht=gt,lt=ce,mt=He}else Ht&&rt(je(Ht,gt)[0]),T[L++]=gt}for(x=0;xre(E,dt))break;S=E,N=V[0]*q[0]+V[1]*q[1],N>Z?(Z=N,g=E,z=!1):N=t.length||!E)break;Tt(E),C=E}}Ht&&Ae([lt||Ht[0],mt||Ht[1]]),p.push(T.slice(0,L))}var Et=v.slice(v.length-1);if(c&&Et!=="h"&&Et!=="v"){for(var pt=!1,jt=-1,or=[],mr=0;mr{"use strict";var Pve={tonextx:1,tonexty:1,tonext:1};Ive.exports=function(t,r,n){var i,a,o,s,l,u={},c=!1,f=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var qg=qa(),e0t=Oa(),l4=Pr(),dT=l4.ensureSingle,Dve=l4.identity,Kf=So(),vT=Ru(),t0t=MU(),r0t=EU(),sI=zM().tester;Fve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=r0t(t,r,n);if(s=i.selectAll("g.trace").data(f,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),i0t(t,s,r),c){o&&(l=o());var h=qg.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){i.selectAll("g.trace").each(function(d,v){Rve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Rve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function i0t(e,t,r){t.each(function(n){var i=dT(qg.select(this),"g","fills");Kf.setClipUrl(i,r.layerClipId,e);var a=n[0].trace;a._ownFill=null,a._nextFill=null;var o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Dve);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=dT(qg.select(this),"path","js-fill")})})}function Rve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;n0t(e,t,r,n,i);var u=!!o&&o.duration>0;function c(tt){return u?tt.transition():tt}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,m=qg.select(a),b=dT(m,"g","errorbars"),p=dT(m,"g","lines"),k=dT(m,"g","points"),M=dT(m,"g","text");if(e0t.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(m).style("opacity",d.opacity);var T,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var C,S;x==="y"?(C=1,S=h.c2p(0,!0)):x==="x"&&(C=0,S=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=m;var g="",P=[],E=d._prevtrace,z=null,q=null;E&&(g=E._prevRevpath||"",L=E._nextFill,P=E._ownPolygons,z=E._fillsegments,q=E._fillElement);var V,G,Z="",j="",N,H,ie,ae,_e,Ee,Ce=[];d._polygons=[];var ge=[],re=[],Se=l4.noop;if(T=d._ownFill,vT.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(N=Kf.steps(v.shape),H=Kf.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?N=H=function(tt){var je=tt[tt.length-1];return tt.length>1&&tt[0][0]===je[0]&&tt[0][1]===je[1]?Kf.smoothclosed(tt.slice(1),v.smoothing):Kf.smoothopen(tt,v.smoothing)}:N=H=function(tt){return"M"+tt.join("L")},ie=function(tt){return H(tt.reverse())},re=t0t(n,{xaxis:f,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:d.fill}),ge=new Array(re.length);var ke=0;for(l=0;l=s[0]&&m.x<=s[1]&&m.y>=l[0]&&m.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(m,b){var p=m[0].trace;vT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";zve.exports={container:"marker",min:"cmin",max:"cmax"}});var uI=ye((Psr,qve)=>{"use strict";var lI=ho();qve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=lI.getFromTrace(a,r,"x"),s=lI.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),i.xLabel=lI.tickText(o,o.c2l(l),!0).text,i.yLabel=lI.tickText(s,s.c2l(u),!0).text,i}});var sp=ye((Isr,Ove)=>{"use strict";var kU=qa(),gT=So(),a0t=Oa();function o0t(e){var t=kU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=kU.select(this),i=r.trace||r[0].trace;CU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=kU.select(this),i=r.trace||r[0].trace;LU(n,i,e)}),t.selectAll("g.trace path.js-line").call(gT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(gT.fillGroupStyle,e,!1),a0t.getComponentMethod("errorbars","style")(t)}function CU(e,t,r){gT.pointStyle(e.selectAll("path.point"),t,r)}function LU(e,t,r){gT.textPointStyle(e.selectAll("text"),t,r)}function s0t(e,t,r){var n=t[0].trace;n.selectedpoints?(gT.selectedPointStyle(r.selectAll("path.point"),n),gT.selectedTextStyle(r.selectAll("text"),n)):(CU(r,n,e),LU(r,n,e))}Ove.exports={style:o0t,stylePoints:CU,styleText:LU,styleOnSelect:s0t}});var yT=ye((Rsr,Bve)=>{"use strict";var mT=ka(),l0t=Ru();Bve.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&mT.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&mT.opacity(a)?a:o&&mT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?mT.opacity(i)<.3?mT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&mT.opacity(n)&&l0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var _T=ye((Dsr,Uve)=>{"use strict";var cI=Pr(),Nve=ef(),u0t=Oa(),c0t=yT(),PU=ka(),f0t=cI.fillText;Uve.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(n),f=[u,c],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,v=!!o.xperiodalignment,m=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(j){if(v){var N=s.c2p(j.xStart),H=s.c2p(j.xEnd);return u>=Math.min(N,H)&&u<=Math.max(N,H)?0:1/0}var ie=Math.max(3,j.mrc||0),ae=1-1/ie,_e=Math.abs(s.c2p(j.x)-u);return _e=Math.min(N,H)&&c<=Math.max(N,H)?0:1/0}var ie=Math.max(3,j.mrc||0),ae=1-1/ie,_e=Math.abs(l.c2p(j.y)-c);return _eCe!=me>=Ce&&(be=Se[re-1][0],Be=Se[re][0],me-Le&&(ke=be+(Be-be)*(Ce-Le)/(me-Le),ie=Math.min(ie,ke),ae=Math.max(ae,ke)));return ie=Math.max(ie,0),ae=Math.min(ae,s._length),{x0:ie,x1:ae,y0:Ce,y1:Ce}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=z(o._fillElement)&&!z(o._fillExclusionElement);if(V){var G=q(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=PU.defaultLine;return PU.opacity(o.fillcolor)?Z=o.fillcolor:PU.opacity((o.line||{}).color)&&(Z=o.line.color),cI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:Z,hovertemplate:!1}),delete t.index,o.text&&!cI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var xT=ye((Fsr,Gve)=>{"use strict";var Vve=Ru();Gve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Vve.hasMarkers(s)&&!Vve.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";Hve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var RU=ye((qsr,Zve)=>{"use strict";var u4=Oa().traceIs,IU=H3();Zve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(h0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function h0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=d0t(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],l={noMultiCategory:!u4(a,"cartesian")||u4(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,Xve(a,n)){var u=Wve(a),c=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Xve(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Wve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Xve(e,t){var r=Wve(e),n=u4(e,"box-violin"),i=u4(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var fI=ye((Osr,Yve)=>{"use strict";var v0t=Yd().isTypedArraySpec;function p0t(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||v0t(a),s;o&&(s="array");var l=n("categoryorder",s),u;l==="array"&&(u=n("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=p0t(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var c4=ye((Bsr,Jve)=>{"use strict";var Kve=fd().mix,g0t=Ih(),m0t=Pr();Jve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(S,g){return m0t.coerce2(t,r,i.attributes,S,g)}var s=o("linecolor",a),l=o("linewidth"),u=n("showline",i.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=Kve(a,i.bgColor,i.blend||g0t.lightFraction).toRgbString(),f=o("gridcolor",c),h=o("gridwidth"),d=o("griddash"),v=n("showgrid",i.showGrid||!!f||!!h||!!d);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var m=Kve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",m),p=o("minor.gridwidth",r.gridwidth||1),k=o("minor.griddash",r.griddash||"solid"),M=n("minor.showgrid",!!b||!!p||!!k);M||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var T=o("zerolinelayer"),L=o("zerolinecolor",a),x=o("zerolinewidth"),C=n("zeroline",i.showGrid||!!L||!!x);C||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var h4=ye((Nsr,ipe)=>{"use strict";var $ve=Eo(),y0t=Oa(),f4=Pr(),_0t=vl(),x0t=Kd(),DU=Rd(),Qve=Pb(),epe=q3(),b0t=s_(),w0t=l_(),T0t=fI(),A0t=c4(),S0t=MB(),tpe=xm(),hI=Rh().WEEKDAY_PATTERN,M0t=Rh().HOUR_PATTERN;ipe.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},l=i.splomStash||{},u=n("visible",!i.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var d=y0t.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(f==="date"||f==="linear")&&n("ticklabelindex");var v="";(!i.noTicklabelposition||f==="multicategory")&&(v=f4.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),tpe(r,a),S0t(t,r,n,i),T0t(t,r,n,i),i.noHover||(f!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var m=n("color"),b=m!==DU.color.dflt?m:s.color,p=l.label||a._dfltTitle[o];if(w0t(t,r,n,f,i),!u)return r;n("title.text",p),f4.coerceFont(n,"title.font",s,{overrideDflt:{size:f4.bigFont(s.size),color:b}}),Qve(t,r,n,f);var k=i.hasMinor;if(k&&(_0t.newContainer(r,"minor"),Qve(t,r,n,f,{isMinor:!0})),b0t(t,r,n,f,i),epe(t,r,n,i),k){var M=i.isMinor;i.isMinor=!0,epe(t,r,n,i),i.isMinor=M}A0t(t,r,n,{dfltColor:m,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:k,attributes:DU}),k&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var T=f==="multicategory";if(!i.noTickson&&(f==="category"||T)&&(r.ticks||r.showgrid)&&(T?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),T){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(f==="date")if(x0t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:E0t}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=rpe(a[s]),l){o=hI;break}}var u=n("pattern",o);if(u===hI)for(s=0;s<2;s++)l=rpe(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case hI:if(!$ve(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case M0t:if(!$ve(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]{"use strict";var C0t=Eo(),dI=Pr();npe.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,l=i.grid,u=i.overlayingDomain,c,f,h,d,v,m;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(C0t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,m=!1;var b=dI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=dI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var k=n("autoshift");k&&(d=p==="left"?u[0]:u[1],m=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",m);var M=!1;if(o.length&&(M=dI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!M){var T=n("domain",f);T[0]>T[1]-1/4096&&(r.domain=f),dI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var dpe=ye((Vsr,hpe)=>{"use strict";var n2=Pr(),ape=ka(),L0t=ip().isUnifiedHover,P0t=$B(),ope=vl(),I0t=b3(),spe=Rd(),R0t=RU(),lpe=h4(),D0t=$b(),upe=vI(),zU=df(),Fm=zU.id2name,cpe=zU.name2id,F0t=Rh().AX_ID_PATTERN,fpe=Oa(),pI=fpe.traceIs,FU=fpe.getComponentMethod;function gI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}hpe.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},m,b;for(m=0;m{"use strict";var z0t=qa(),vpe=Oa(),mI=Pr(),Qp=So(),yI=ho();ppe.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){yI.redrawComponents(t);return}function o(b){var p=b.xaxis,k=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qp.setTranslate,0,0).call(Qp.setScale,1,1),b.plot.call(Qp.setTranslate,p._offset,k._offset).call(Qp.setScale,1,1);var M=b.plot.selectAll(".scatterlayer .trace");M.selectAll(".point").call(Qp.setPointGroupScale,1,1),M.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),M.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var k=b.plotinfo,M=k.xaxis,T=k.yaxis,L=M._length,x=T._length,C=!!b.xr1,S=!!b.yr1,g=[];if(C){var P=mI.simpleMap(b.xr0,M.r2l),E=mI.simpleMap(b.xr1,M.r2l),z=P[1]-P[0],q=E[1]-E[0];g[0]=(P[0]*(1-p)+p*E[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*q/z),M.range[0]=M.l2r(P[0]*(1-p)+p*E[0]),M.range[1]=M.l2r(P[1]*(1-p)+p*E[1])}else g[0]=0,g[2]=L;if(S){var V=mI.simpleMap(b.yr0,T.r2l),G=mI.simpleMap(b.yr1,T.r2l),Z=V[1]-V[0],j=G[1]-G[0];g[1]=(V[1]*(1-p)+p*G[1]-V[1])/(V[0]-V[1])*x,g[3]=x*(1-p+p*j/Z),T.range[0]=M.l2r(V[0]*(1-p)+p*G[0]),T.range[1]=T.l2r(V[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=x;yI.drawOne(t,M,{skipTitle:!0}),yI.drawOne(t,T,{skipTitle:!0}),yI.redrawComponents(t,[M._id,T._id]);var N=C?L/g[2]:1,H=S?x/g[3]:1,ie=C?g[0]:0,ae=S?g[1]:0,_e=C?g[0]/g[2]*L:0,Ee=S?g[1]/g[3]*x:0,Ce=M._offset-_e,ge=T._offset-Ee;k.clipRect.call(Qp.setTranslate,ie,ae).call(Qp.setScale,1/N,1/H),k.plot.call(Qp.setTranslate,Ce,ge).call(Qp.setScale,N,H),Qp.setPointGroupScale(k.zoomScalePts,1/N,1/H),Qp.setTextPointsScale(k.zoomScaleTxt,1/N,1/H)}var l;i&&(l=i());function u(){for(var b={},p=0;pn.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return f=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var mh=ye(xv=>{"use strict";var xI=qa(),mpe=Oa(),a2=Pr(),q0t=Mc(),O0t=So(),ype=Id().getModuleCalcData,S_=df(),Og=Rh(),B0t=Wp(),iu=a2.ensureSingle;function _I(e,t,r){return a2.ensureSingle(e,t,r,function(n){n.datum(r)})}var o2=Og.zindexSeparator;xv.name="cartesian";xv.attr=["xaxis","yaxis"];xv.idRoot=["x","y"];xv.idRegex=Og.idRegex;xv.attrRegex=Og.attrRegex;xv.attributes=jve();xv.layoutAttributes=Rd();xv.supplyLayoutDefaults=dpe();xv.transitionAxes=gpe();xv.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var d=h.id;if(d.indexOf(o2)!==-1)continue;d+=o2+(u+1),h=a2.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],m,b=0;b1&&(L+=o2+T),M.push(s+L),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.xaxislayer=iu(n,"g","xaxislayer-above"),t.yaxislayer=iu(n,"g","yaxislayer-above");else{if(!o){var h=iu(n,"g","layer-subplot");t.shapelayer=iu(h,"g","shapelayer"),t.imagelayer=iu(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=iu(n,"g","minor-gridlayer"),t.gridlayer=iu(n,"g","gridlayer"),t.zerolinelayer=iu(n,"g","zerolinelayer"));var d=iu(n,"g","layer-between");t.shapelayerBetween=iu(d,"g","shapelayer"),t.imagelayerBetween=iu(d,"g","imagelayer"),iu(n,"path","xlines-below"),iu(n,"path","ylines-below"),t.overlinesBelow=iu(n,"g","overlines-below"),iu(n,"g","xaxislayer-below"),iu(n,"g","yaxislayer-below"),t.overaxesBelow=iu(n,"g","overaxes-below")}t.overplot=iu(n,"g","overplot"),t.plot=iu(t.overplot,"g",i),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=iu(n,"g","zerolinelayer-above"),o||(t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.overlinesAbove=iu(n,"g","overlines-above"),iu(n,"g","xaxislayer-above"),iu(n,"g","yaxislayer-above"),t.overaxesAbove=iu(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+l),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+l))}else{var v=f.plotgroup,m=i+"-x",b=i+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,iu(f.overlinesBelow,"path",m),iu(f.overlinesBelow,"path",b),iu(f.overaxesBelow,"g",m),iu(f.overaxesBelow,"g",b),t.plot=iu(f.overplot,"g",i),iu(f.overlinesAbove,"path",m),iu(f.overlinesAbove,"path",b),iu(f.overaxesAbove,"g",m),iu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+m),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+m),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(_I(t.minorGridlayer,"g",t.xaxis._id),_I(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(S_.idSort),_I(t.gridlayer,"g",t.xaxis._id),_I(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(S_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function bpe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=xI.select(this);c.remove(),wpe(u,t),r[u]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var bI=Ru();Tpe.exports={hasLines:bI.hasLines,hasMarkers:bI.hasMarkers,hasText:bI.hasText,isBubble:bI.isBubble,attributes:pf(),layoutAttributes:rL(),supplyDefaults:Yde(),crossTraceDefaults:hU(),supplyLayoutDefaults:Qde(),calc:O0().calc,crossTraceCalc:Ave(),arraysToCalcdata:Dm(),plot:pT(),colorbar:Qd(),formatLabels:uI(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:_T(),selectPoints:xT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:mh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Epe=ye((Wsr,Mpe)=>{"use strict";var U0t=qa(),V0t=ka(),Spe=BN(),qU=Pr(),G0t=qU.strScale,H0t=qU.strRotate,j0t=qU.strTranslate;Mpe.exports=function(t,r,n){var i=t.node(),a=Spe[n.arrowhead||0],o=Spe[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+n.standoff,h=o.backoff*l+n.startstandoff,d,v,m,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var p=d.x-v.x,k=d.y-v.y;if(m=Math.atan2(k,p),b=m+Math.PI,f&&h&&f+h>Math.sqrt(p*p+k*k)){V();return}if(f){if(f*f>p*p+k*k){V();return}var M=f*Math.cos(m),T=f*Math.sin(m);v.x+=M,v.y+=T,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+k*k){V();return}var L=h*Math.cos(m),x=h*Math.sin(m);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),S="";if(C{"use strict";var kpe=qa(),OU=Oa(),W0t=Mc(),E_=Pr(),BU=E_.strTranslate,v4=ho(),s2=ka(),By=So(),Cpe=ef(),NU=Zl(),UU=Eg(),d4=yv(),X0t=vl().arrayEditor,Z0t=Epe();Ipe.exports={draw:Y0t,drawOne:Lpe,drawRaw:Ppe};function Y0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?et="right":et="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[et]}for(var Le=!1,me=["x","y"],Pe=0;Pe1)&&(lt===He?(dt=mt.r2fraction(t["a"+ce]),(dt<0||dt>1)&&(Le=!0)):Le=!0),je=mt._offset+mt.r2p(t[ce]),rt=.5}else{var Et=Tt==="domain";ce==="x"?(Ae=t[ce],je=Et?mt._offset+mt._length*Ae:je=s.l+s.w*Ae):(Ae=1-t[ce],je=Et?mt._offset+mt._length*Ae:je=s.t+s.h*Ae),rt=t.showarrow?.5:Ae}if(t.showarrow){tt.head=je;var pt=t["a"+ce];if(St=at*Be(.5,t.xanchor)-ct*Be(.5,t.yanchor),lt===He){var jt=v4.getRefType(lt);jt==="domain"?(ce==="y"&&(pt=1-pt),tt.tail=mt._offset+mt._length*pt):jt==="paper"?ce==="y"?(pt=1-pt,tt.tail=s.t+s.h*pt):tt.tail=s.l+s.w*pt:tt.tail=mt._offset+mt.r2p(pt),Ue=St}else tt.tail=je+pt,Ue=St+pt;tt.text=tt.tail+St;var or=o[ce==="x"?"width":"height"];if(He==="paper"&&(tt.head=E_.constrain(tt.head,1,or-1)),lt==="pixel"){var mr=-Math.max(tt.tail-3,tt.text),Ar=Math.min(tt.tail+3,tt.text)-or;mr>0?(tt.tail+=mr,tt.text+=mr):Ar>0&&(tt.tail-=Ar,tt.text-=Ar)}tt.tail+=rr,tt.head+=rr}else St=ar*Be(rt,Vt),Ue=St,tt.text=je+St;tt.text+=rr,St+=rr,Ue+=rr,t["_"+ce+"padplus"]=ar/2+Ue,t["_"+ce+"padminus"]=ar/2-Ue,t["_"+ce+"size"]=ar,t["_"+ce+"shift"]=St}if(Le){C.remove();return}var ei=0,qr=0;if(t.align!=="left"&&(ei=(re-Ce)*(t.align==="center"?.5:1)),t.valign!=="top"&&(qr=(Se-ge)*(t.valign==="middle"?.5:1)),_e)ae.select("svg").attr({x:P+ei-1,y:P+qr}).call(By.setClipUrl,z?m:null,e);else{var jr=P+qr-Ee.top,gt=P+ei-Ee.left;Z.call(NU.positionText,gt,jr).call(By.setClipUrl,z?m:null,e)}q.select("rect").call(By.setRect,P,P,re,Se),E.call(By.setRect,S/2,S/2,ke-S,be-S),C.call(By.setTranslate,Math.round(b.x.text-ke/2),Math.round(b.y.text-be/2)),M.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(We,et){k.selectAll(".annotation-arrow-g").remove();var xt=b.x.head,At=b.y.head,Kt=b.x.tail+We,Qt=b.y.tail+et,Mr=b.x.text+We,Gr=b.y.text+et,Ir=E_.rotationXYMatrix(p,Mr,Gr),Yr=E_.apply2DTransform(Ir),_i=E_.apply2DTransform2(Ir),Pi=+E.attr("width"),ai=+E.attr("height"),mi=Mr-.5*Pi,un=mi+Pi,Fn=Gr-.5*ai,An=Fn+ai,Hn=[[mi,Fn,mi,An],[mi,An,un,An],[un,An,un,Fn],[un,Fn,mi,Fn]].map(_i);if(!Hn.reduce(function($r,Ri){return $r^!!E_.segmentsIntersect(xt,At,xt+1e6,At+1e6,Ri[0],Ri[1],Ri[2],Ri[3])},!1)){Hn.forEach(function($r){var Ri=E_.segmentsIntersect(Kt,Qt,xt,At,$r[0],$r[1],$r[2],$r[3]);Ri&&(Kt=Ri.x,Qt=Ri.y)});var Qn=t.arrowwidth,Vi=t.arrowcolor,Kn=t.arrowside,Jn=k.append("g").style({opacity:s2.opacity(Vi)}).classed("annotation-arrow-g",!0),Gt=Jn.append("path").attr("d","M"+Kt+","+Qt+"L"+xt+","+At).style("stroke-width",Qn+"px").call(s2.stroke,s2.rgb(Vi));if(Z0t(Gt,Kn,t),l.annotationPosition&&Gt.node().parentNode&&!n){var wt=xt,tr=At;if(t.standoff){var ir=Math.sqrt(Math.pow(xt-Kt,2)+Math.pow(At-Qt,2));wt+=t.standoff*(Kt-xt)/ir,tr+=t.standoff*(Qt-At)/ir}var wr=Jn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-wt)+","+(Qt-tr),transform:BU(wt,tr)}).style("stroke-width",Qn+6+"px").call(s2.stroke,"rgba(0,0,0,0)").call(s2.fill,"rgba(0,0,0,0)"),Xr,ti;d4.init({element:wr.node(),gd:e,prepFn:function(){var $r=By.getTranslate(C);Xr=$r.x,ti=$r.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function($r,Ri){var Zi=Yr(Xr,ti),en=Zi[0]+$r,fn=Zi[1]+Ri;C.call(By.setTranslate,en,fn),d("x",M_(i,$r,"x",s,t)),d("y",M_(a,Ri,"y",s,t)),t.axref===t.xref&&d("ax",M_(i,$r,"ax",s,t)),t.ayref===t.yref&&d("ay",M_(a,Ri,"ay",s,t)),Jn.attr("transform",BU($r,Ri)),M.attr({transform:"rotate("+p+","+en+","+fn+")"})},doneFn:function(){OU.call("_guiRelayout",e,v());var $r=document.querySelector(".js-notes-box-panel");$r&&$r.redraw($r.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),T){var Je;d4.init({element:C.node(),gd:e,prepFn:function(){Je=M.attr("transform")},moveFn:function(We,et){var xt="pointer";if(t.showarrow)t.axref===t.xref?d("ax",M_(i,We,"ax",s,t)):d("ax",t.ax+We),t.ayref===t.yref?d("ay",M_(a,et,"ay",s.w,t)):d("ay",t.ay+et),Ge(We,et);else{if(n)return;var At,Kt;if(i)At=M_(i,We,"x",s,t);else{var Qt=t._xsize/s.w,Mr=t.x+(t._xshift-t.xshift)/s.w-Qt/2;At=d4.align(Mr+We/s.w,Qt,0,1,t.xanchor)}if(a)Kt=M_(a,et,"y",s,t);else{var Gr=t._ysize/s.h,Ir=t.y-(t._yshift+t.yshift)/s.h-Gr/2;Kt=d4.align(Ir-et/s.h,Gr,0,1,t.yanchor)}d("x",At),d("y",Kt),(!i||!a)&&(xt=d4.getCursor(i?.5:At,a?.5:Kt,t.xanchor,t.yanchor))}M.attr({transform:BU(We,et)+Je}),UU(C,xt)},clickFn:function(We,et){t.captureevents&&e.emit("plotly_clickannotation",x(et))},doneFn:function(){UU(C),OU.call("_guiRelayout",e,v());var We=document.querySelector(".js-notes-box-panel");We&&We.redraw(We.selectedObj)}})}}l.annotationText?Z.call(NU.makeEditable,{delegate:C,gd:e}).call(j).on("edit",function(H){t.text=H,this.call(j),d("text",H),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),OU.call("_guiRelayout",e,v())}):Z.call(j)}});var Ope=ye((Zsr,qpe)=>{"use strict";var Rpe=Pr(),K0t=Oa(),Dpe=vl().arrayEditor;qpe.exports={hasClickToShow:J0t,onClick:$0t};function J0t(e,t){var r=zpe(e,t);return r.on.length>0||r.explicitOff.length>0}function $0t(e,t){var r=zpe(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(n.length||i.length){for(s=0;s{"use strict";var VU=Pr(),bT=ka();Bpe.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=bT.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),VU.coerceFont(i,"font",n.font),i("width"),i("align");var c=i("height");if(c&&i("valign"),u){var f=i("arrowside"),h,d;f.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),f.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:bT.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),m=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",m.bgcolor||(bT.opacity(a)?bT.rgb(a):bT.defaultLine)),p=i("hoverlabel.bordercolor",m.bordercolor||bT.contrast(b)),k=VU.extendFlat({},m.font);k.color||(k.color=p),VU.coerceFont(i,"hoverlabel.font",k)}i("captureevents",!!v)}});var Upe=ye((Ksr,Npe)=>{"use strict";var HU=Pr(),l2=ho(),Q0t=Kd(),egt=GU(),tgt=Qb();Npe.exports=function(t,r){Q0t(t,r,{name:"annotations",handleItemDefaults:rgt})};function rgt(e,t,r){function n(M,T){return HU.coerce(e,t,tgt,M,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){egt(e,t,r,n);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=l2.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=l2.getFromId(u,h);d._annIndices.push(t._index)}if(l2.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,m=l2.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);m!=="pixel"&&m!==h&&(m=t[v]="pixel");var b=m==="pixel"?l[c]:.4;l2.coercePosition(t,u,n,m,v,b)}n(f+"anchor"),n(f+"shift")}if(HU.noneOrAll(e,t,["x","y"]),o&&HU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),k=n("yclick");t._xclick=p===void 0?t.x:l2.cleanPosition(p,u,t.xref),t._yclick=k===void 0?t.y:l2.cleanPosition(k,u,t.yref)}}}});var Hpe=ye((Jsr,Gpe)=>{"use strict";var jU=Pr(),u2=ho(),igt=wI().draw;Gpe.exports=function(t){var r=t._fullLayout,n=jU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return jU.syncOrAsync([igt,ngt],t)};function ngt(e){var t=e._fullLayout;jU.filterVisible(t.annotations).forEach(function(r){var n=u2.getFromId(e,r.xref),i=u2.getFromId(e,r.yref),a=u2.getRefType(r.xref),o=u2.getRefType(r.yref);r._extremes={},a==="range"&&Vpe(r,n),o==="range"&&Vpe(r,i)})}function Vpe(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],l=e["_"+n+"padplus"],u=e["_"+n+"padminus"],c={x:1,y:-1}[n]*e[n+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,d=f-c,v=3*e.startarrowsize*e.arrowwidth||0,m=v+c,b=v-c,p;if(s===o){var k=u2.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),M=u2.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,m),ppadminus:Math.max(u,b)});p={min:[k.min[0],M.min[0]],max:[k.max[0],M.max[0]]}}else m=a?m+a:m,b=a?b-a:b,p=u2.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,m),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var Wpe=ye(($sr,jpe)=>{"use strict";var agt=Eo(),ogt=M6();jpe.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(d){var v=u[d],m=null;a?m=ogt(v,r.range):m=Math.pow(10,v),agt(m)||(m=null),i(c+d,m)}for(var h=0;h{"use strict";var WU=wI(),Xpe=Ope();Zpe.exports={moduleType:"component",name:"annotations",layoutAttributes:Qb(),supplyLayoutDefaults:Upe(),includeBasePlot:XM()("annotations"),calcAutorange:Hpe(),draw:WU.draw,drawOne:WU.drawOne,drawRaw:WU.drawRaw,hasClickToShow:Xpe.hasClickToShow,onClick:Xpe.onClick,convertCoords:Wpe()}});var TI=ye((elr,Kpe)=>{"use strict";var kc=Qb(),sgt=mc().overrideAll,lgt=vl().templatedArray;Kpe.exports=sgt(lgt("annotation",{visible:kc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:kc.xanchor,xshift:kc.xshift,yanchor:kc.yanchor,yshift:kc.yshift,text:kc.text,textangle:kc.textangle,font:kc.font,width:kc.width,height:kc.height,opacity:kc.opacity,align:kc.align,valign:kc.valign,bgcolor:kc.bgcolor,bordercolor:kc.bordercolor,borderpad:kc.borderpad,borderwidth:kc.borderwidth,showarrow:kc.showarrow,arrowcolor:kc.arrowcolor,arrowhead:kc.arrowhead,startarrowhead:kc.startarrowhead,arrowside:kc.arrowside,arrowsize:kc.arrowsize,startarrowsize:kc.startarrowsize,arrowwidth:kc.arrowwidth,standoff:kc.standoff,startstandoff:kc.startstandoff,hovertext:kc.hovertext,hoverlabel:kc.hoverlabel,captureevents:kc.captureevents}),"calc","from-root")});var $pe=ye((tlr,Jpe)=>{"use strict";var XU=Pr(),ugt=ho(),cgt=Kd(),fgt=GU(),hgt=TI();Jpe.exports=function(t,r,n){cgt(t,r,{name:"annotations",handleItemDefaults:dgt,fullLayout:n.fullLayout})};function dgt(e,t,r,n){function i(s,l){return XU.coerce(e,t,hgt,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],ugt.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(fgt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),XU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),XU.noneOrAll(e,t,["ax","ay"])))}});var r0e=ye((rlr,t0e)=>{"use strict";var Qpe=Pr(),e0e=ho();t0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function ZU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function pgt(e,t){var r=ZU(e.projection,ZU(e.view,ZU(e.model,[t[0],t[1],t[2],1])));return r}i0e.exports=pgt});var a0e=ye((nlr,n0e)=>{"use strict";var ggt=wI().drawRaw,mgt=YU(),ygt=["x","y","z"];n0e.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=mgt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),ggt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var l0e=ye((alr,s0e)=>{"use strict";var _gt=Oa(),o0e=Pr();s0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:TI()}}},layoutAttributes:TI(),handleDefaults:$pe(),includeBasePlot:xgt,convert:r0e(),draw:a0e()};function xgt(e,t){var r=_gt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var olr=Rh(),u0e=ec(),c0e=pf().line,bgt=Pd().dash,Bg=Ao().extendFlat,wgt=vl().templatedArray,slr=jM(),wT=Gl(),f0e=Qb(),{shapeTexttemplateAttrs:Tgt,templatefallbackAttrs:Agt}=Ll(),Sgt=F6();h0e.exports=wgt("shape",{visible:Bg({},wT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Bg({},wT.legend,{editType:"calc+arraydraw"}),legendgroup:Bg({},wT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Bg({},wT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Bg({},wT.legendrank,{editType:"calc+arraydraw"}),legendwidth:Bg({},wT.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Bg({},f0e.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Bg({},f0e.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Bg({},c0e.color,{editType:"arraydraw"}),width:Bg({},c0e.width,{editType:"calc+arraydraw"}),dash:Bg({},bgt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Tgt({},{keys:Object.keys(Sgt)}),texttemplatefallback:Agt({editType:"arraydraw"}),font:u0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var v0e=ye((ulr,d0e)=>{"use strict";var TT=Pr(),e0=ho(),Mgt=Kd(),Egt=KU(),p4=x_();d0e.exports=function(t,r){Mgt(t,r,{name:"shapes",handleItemDefaults:Cgt})};function kgt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Cgt(e,t,r){function n(M,T){return TT.coerce(e,t,Egt,M,T)}t._isShape=!0;var i=n("visible");if(!i)return;var a=n("showlegend");n("legend"),n("legendgroup"),a&&(n("legendwidth"),n("legendgrouptitle.text"),TT.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",l=n("type",s),u=l!=="path";u&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));var f=n("xsizemode"),h=n("ysizemode");let d=[.25,.75],v=[0,10];["x","y"].forEach(M=>{var T=M+"anchor",L=M==="x"?f:h,x={_fullLayout:r},C,S,g,P;let E=M+"ref",z=e[E];if(Array.isArray(z)&&z.length>0){let q=p4.countDefiningCoords(l,o,M);P=e0.coerceRefArray(e,t,x,M,void 0,"paper",q),t["_"+M+"refArray"]=!0}else P=e0.coerceRef(e,t,x,M,void 0,"paper");if(Array.isArray(P))P.forEach(function(q){e0.getRefType(q)==="range"&&(C=e0.getFromId(x,q),C&&C._shapeIndices.indexOf(t._index)===-1&&C._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(q){let V=P[q];e0.getRefType(V)==="range"?(C=e0.getFromId(x,V),S=p4.shapePositionToRange(C),g=p4.rangeToShapePosition(C),(C.type==="category"||C.type==="multicategory")&&n(M+q+"shift")):S=g=TT.identity;let Z=M+q,j=e[Z];if(e[Z]=S(e[Z],!0),L==="pixel"?n(Z,v[q]):e0.coercePosition(t,x,n,V,Z,d[q]),t[Z]=g(t[Z]),e[Z]=j,q===0&&L==="pixel"){let N=e[T];e[T]=S(e[T],!0),e0.coercePosition(t,x,n,V,T,.25),t[T]=g(t[T]),e[T]=N}});else{if(e0.getRefType(P)==="range"?(C=e0.getFromId(x,P),C._shapeIndices.push(t._index),g=p4.rangeToShapePosition(C),S=p4.shapePositionToRange(C),u&&(C.type==="category"||C.type==="multicategory")&&(n(M+"0shift"),n(M+"1shift"))):S=g=TT.identity,u){let V=M+"0",G=M+"1",Z=e[V],j=e[G];e[V]=S(e[V],!0),e[G]=S(e[G],!0),L==="pixel"?(n(V,v[0]),n(G,v[1])):(e0.coercePosition(t,x,n,P,V,d[0]),e0.coercePosition(t,x,n,P,G,d[1])),t[V]=g(t[V]),t[G]=g(t[G]),e[V]=Z,e[G]=j}if(L==="pixel"){let V=e[T];e[T]=S(e[T],!0),e0.coercePosition(t,x,n,P,T,.25),t[T]=g(t[T]),e[T]=V}}}),u&&TT.noneOrAll(e,t,["x0","x1","y0","y1"]);var m=l==="line",b,p;if(u&&(b=n("label.texttemplate"),n("label.texttemplatefallback")),b||(p=n("label.text")),p||b){n("label.textangle");var k=n("label.textposition",m?"middle":"middle center");n("label.xanchor"),n("label.yanchor",kgt(m,k)),n("label.padding"),TT.coerceFont(n,"label.font",r.font)}}});var m0e=ye((clr,g0e)=>{"use strict";var Lgt=ka(),p0e=Pr();function Pgt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}g0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),p0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Lgt.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),s||l){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Pgt(o,u)),n("newshape.label.padding"),p0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var A0e=ye((flr,T0e)=>{"use strict";var JU=Pr(),N0=ho(),zm=AM(),$U=x_();T0e.exports=function(t){var r=t._fullLayout,n=JU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i{o=N0.getFromId(t,f),a._extremes[o._id]=N0.findExtremes(o,h,_0e(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=N0.getFromId(t,a.xref),s=b0e(o,a,zm.paramIsX),s&&(a._extremes[o._id]=N0.findExtremes(o,s,_0e(a))));if(u==="array"){let c=y0e(t,a,"y");Object.entries(c).forEach(([f,h])=>{o=N0.getFromId(t,f),a._extremes[o._id]=N0.findExtremes(o,h,x0e(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=N0.getFromId(t,a.yref),s=b0e(o,a,zm.paramIsY),s&&(a._extremes[o._id]=N0.findExtremes(o,s,x0e(a))))}};function y0e(e,t,r){let n=t[r+"ref"],i=r==="x"?zm.paramIsX:zm.paramIsY;function a(f,h){f==="paper"||N0.getRefType(f)==="domain"||(o[f]||(o[f]=[]),o[f].push(h))}let o={};if(t.type==="path"&&t.path){let f=t.path.match(zm.segmentRE)||[];for(var s=0,l=0;lv&&(a(n[s],m[v]),s++)}}else a(n[0],t[r+"0"]),a(n[1],t[r+"1"]);let u={};for(let f in o){let h=N0.getFromId(e,f);if(h){var c=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(c=$U.decodeDate(c)),u[h._id]=o[f].map(c)}}return u}function _0e(e){return w0e(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function x0e(e){return w0e(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function w0e(e,t,r,n,i,a){var o=e/2,s=a;if(t==="pixel"){var l=i?$U.extractPathCoords(i,a?zm.paramIsY:zm.paramIsX):[r,n],u=JU.aggNums(Math.max,null,l),c=JU.aggNums(Math.min,null,l),f=c<0?Math.abs(c)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function b0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=i?e.r2c:e.d2c,c=t[n+"sizemode"]==="scaled";if(c?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],l=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,d=t.path.match(zm.segmentRE),v,m,b,p,k;for(e.type==="date"&&(u=$U.decodeDate(u)),v=0;vh&&(h=k)));if(h>=f)return[f,h]}}});var E0e=ye((hlr,M0e)=>{"use strict";var S0e=vP();M0e.exports={moduleType:"component",name:"shapes",layoutAttributes:KU(),supplyLayoutDefaults:v0e(),supplyDrawNewShapeDefaults:m0e(),includeBasePlot:XM()("shapes"),calcAutorange:A0e(),draw:S0e.draw,drawOne:S0e.drawOne}});var QU=ye((vlr,C0e)=>{"use strict";var k0e=Rh(),Igt=vl().templatedArray,dlr=jM();C0e.exports=Igt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",k0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",k0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var P0e=ye((plr,L0e)=>{"use strict";var Rgt=Pr(),eV=ho(),Dgt=Kd(),Fgt=QU(),zgt="images";L0e.exports=function(t,r){var n={name:zgt,handleItemDefaults:qgt};Dgt(t,r,n)};function qgt(e,t,r){function n(h,d){return Rgt.coerce(e,t,Fgt,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=eV.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=eV.getFromId(o,c);f._imgIndices.push(t._index)}eV.coercePosition(t,o,n,c,u,0)}return t}});var F0e=ye((glr,D0e)=>{"use strict";var I0e=qa(),Ogt=So(),AT=ho(),R0e=df(),Bgt=Wp();D0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var z0e=Eo(),Ngt=M6();q0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f{"use strict";B0e.exports={moduleType:"component",name:"images",layoutAttributes:QU(),supplyLayoutDefaults:P0e(),includeBasePlot:XM()("images"),draw:F0e(),convertCoords:O0e()}});var AI=ye((_lr,U0e)=>{"use strict";U0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var tV=ye((xlr,G0e)=>{"use strict";var Ugt=ec(),Vgt=Ih(),Ggt=Ao().extendFlat,Hgt=mc().overrideAll,jgt=z6(),V0e=vl().templatedArray,Wgt=V0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});G0e.exports=Hgt(V0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Wgt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Ggt(jgt({editType:"arraydraw"}),{}),font:Ugt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Vgt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var X0e=ye((blr,W0e)=>{"use strict";var SI=Pr(),H0e=Kd(),j0e=tV(),Xgt=AI(),Zgt=Xgt.name,Ygt=j0e.buttons;W0e.exports=function(t,r){var n={name:Zgt,handleItemDefaults:Kgt};H0e(t,r,n)};function Kgt(e,t,r){function n(o,s){return SI.coerce(e,t,j0e,o,s)}var i=H0e(e,t,{name:"buttons",handleItemDefaults:Jgt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),SI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),SI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Jgt(e,t){function r(i,a){return SI.coerce(e,t,Ygt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var K0e=ye((wlr,Y0e)=>{"use strict";Y0e.exports=Mf;var Ng=qa(),Z0e=ka(),ST=So(),MI=Pr();function Mf(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Mf.barWidth=2;Mf.barLength=20;Mf.barRadius=2;Mf.barPad=1;Mf.barColor="#808BA4";Mf.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",d=f==="left",v=f==="right",m=f==="up",b=l,p=c,k,M,T,L;!h&&!d&&!v&&!m&&(this.position.direction="down",h=!0);var x=h||m;x?(k=s,M=k+b,h?(T=u,L=Math.min(T+p,o),p=L-T):(L=u+p,T=Math.max(L-p,0),p=L-T)):(T=u,L=T+p,d?(M=s+b,k=Math.max(M-b,0),b=M-k):(k=s,M=Math.min(k+b,a),b=M-k)),this._box={l:k,t:T,w:b,h:p};var C=l>b,S=Mf.barLength+2*Mf.barPad,g=Mf.barWidth+2*Mf.barPad,P=s,E=u+c;E+g>o&&(E=o-g);var z=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-horizontal",!0).call(Z0e.fill,Mf.barColor),C?(this.hbar=z.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:P,y:E,width:S,height:g}),this._hbarXMin=P+S/2,this._hbarTranslateMax=b-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var q=c>p,V=Mf.barWidth+2*Mf.barPad,G=Mf.barLength+2*Mf.barPad,Z=s+l,j=u;Z+V>a&&(Z=a-V);var N=this.container.selectAll("rect.scrollbar-vertical").data(q?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(Z0e.fill,Mf.barColor),q?(this.vbar=N.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:Z,y:j,width:V,height:G}),this._vbarYMin=j+G/2,this._vbarTranslateMax=p-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,ie=k-.5,ae=q?M+V+.5:M+.5,_e=T-.5,Ee=C?L+g+.5:L+.5,Ce=i._topdefs.selectAll("#"+H).data(C||q?[0]:[]);if(Ce.exit().remove(),Ce.enter().append("clipPath").attr("id",H).append("rect"),C||q?(this._clipRect=Ce.select("rect").attr({x:Math.floor(ie),y:Math.floor(_e),width:Math.ceil(ae)-Math.floor(ie),height:Math.ceil(Ee)-Math.floor(_e)}),this.container.call(ST.setClipUrl,H,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ST.setClipUrl,null),delete this._clipRect),C||q){var ge=Ng.behavior.drag().on("dragstart",function(){Ng.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ge);var re=Ng.behavior.drag().on("dragstart",function(){Ng.event.sourceEvent.preventDefault(),Ng.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(re),q&&this.vbar.on(".drag",null).call(re)}this.setTranslate(r,n)};Mf.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ST.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Mf.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Ng.event.dx),this.vbar&&(r-=Ng.event.dy),this.setTranslate(t,r)};Mf.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Ng.event.deltaY),this.vbar&&(r+=Ng.event.deltaY),this.setTranslate(t,r)};Mf.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=MI.constrain(Ng.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=MI.constrain(Ng.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};Mf.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=MI.constrain(t||0,0,n),r=MI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(ST.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(ST.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(ST.setTranslate,t,r+o*this._vbarTranslateMax)}}});var oge=ye((Tlr,age)=>{"use strict";var MT=qa(),g4=Mc(),m4=ka(),ET=So(),t0=Pr(),EI=Zl(),$gt=vl().arrayEditor,$0e=Dh().LINE_SPACING,es=AI(),Qgt=K0e();age.exports=function(t){var r=t._fullLayout,n=t0.filterVisible(r[es.name]);function i(h){g4.autoMargin(t,ige(h))}var a=r._menulayer.selectAll("g."+es.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(es.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){MT.select(this).selectAll("g."+es.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+es.headerGroupClassName).data(n,emt);o.enter().append("g").classed(es.headerGroupClassName,!0);for(var s=t0.ensureSingle(a,"g",es.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var smt=AI();sge.exports={moduleType:"component",name:smt.name,layoutAttributes:tV(),supplyLayoutDefaults:X0e(),draw:oge()}});var _4=ye((Slr,uge)=>{"use strict";uge.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var aV=ye((Mlr,hge)=>{"use strict";var cge=ec(),lmt=z6(),umt=Ao().extendDeepAll,cmt=mc().overrideAll,fmt=WS(),fge=vl().templatedArray,c2=_4(),hmt=fge("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});hge.exports=cmt(fge("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:hmt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:umt(lmt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:fmt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:cge({})},font:cge({}),activebgcolor:{valType:"color",dflt:c2.gripBgActiveColor},bgcolor:{valType:"color",dflt:c2.railBgColor},bordercolor:{valType:"color",dflt:c2.railBorderColor},borderwidth:{valType:"number",min:0,dflt:c2.railBorderWidth},ticklen:{valType:"number",min:0,dflt:c2.tickLength},tickcolor:{valType:"color",dflt:c2.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:c2.minorTickLength}}),"arraydraw","from-root")});var gge=ye((Elr,pge)=>{"use strict";var kT=Pr(),dge=Kd(),vge=aV(),dmt=_4(),vmt=dmt.name,pmt=vge.steps;pge.exports=function(t,r){dge(t,r,{name:vmt,handleItemDefaults:gmt})};function gmt(e,t,r){function n(f,h){return kT.coerce(e,t,vge,f,h)}for(var i=dge(e,t,{name:"steps",handleItemDefaults:mmt}),a=0,o=0;o{"use strict";var Ug=qa(),kI=Mc(),k_=ka(),Vg=So(),r0=Pr(),ymt=r0.strTranslate,x4=Zl(),_mt=vl().arrayEditor,Rs=_4(),lV=Dh(),_ge=lV.LINE_SPACING,oV=lV.FROM_TL,sV=lV.FROM_BR;Sge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=xmt(n,t),a=n._infolayer.selectAll("g."+Rs.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(Rs.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),kI.autoMargin(t,xge(c))}if(a.exit().each(function(){Ug.select(this).selectAll("g."+Rs.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+Rs.groupClassName).data(i,bmt);s.enter().append("g").classed(Rs.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",ymt(o-Rs.gripWidth*.5,t._dims.currentValueTotalHeight))}}function uV(e,t){var r=e._dims;return r.inputAreaStart+Rs.stepInset+(r.inputAreaLength-2*Rs.stepInset)*Math.min(1,Math.max(0,t))}function yge(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Rs.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Rs.stepInset-2*r.inputAreaStart)))}function kmt(e,t,r){var n=r._dims,i=r0.ensureSingle(e,"rect",Rs.railTouchRectClass,function(a){a.call(Tge,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Rs.tickOffset+r.ticklen+n.labelHeight)}).call(k_.fill,r.bgcolor).attr("opacity",0),Vg.setTranslate(i,0,n.currentValueTotalHeight)}function Cmt(e,t){var r=t._dims,n=r.inputAreaLength-Rs.railInset*2,i=r0.ensureSingle(e,"rect",Rs.railRectClass);i.attr({width:n,height:Rs.railWidth,rx:Rs.railRadius,ry:Rs.railRadius,"shape-rendering":"crispEdges"}).call(k_.stroke,t.bordercolor).call(k_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Vg.setTranslate(i,Rs.railInset,(r.inputAreaWidth-Rs.railWidth)*.5+r.currentValueTotalHeight)}});var kge=ye((Clr,Ege)=>{"use strict";var Lmt=_4();Ege.exports={moduleType:"component",name:Lmt.name,layoutAttributes:aV(),supplyLayoutDefaults:gge(),draw:Mge()}});var LI=ye((Llr,Lge)=>{"use strict";var Cge=Ih();Lge.exports={bgcolor:{valType:"color",dflt:Cge.background,editType:"plot"},bordercolor:{valType:"color",dflt:Cge.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var cV=ye((Plr,Pge)=>{"use strict";Pge.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var PI=ye((Ilr,Ige)=>{"use strict";Ige.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Fge=ye(RI=>{"use strict";var Pmt=df(),Imt=Zl(),Rge=PI(),Rmt=Dh().LINE_SPACING,II=Rge.name;function Dge(e){var t=e&&e[II];return t&&t.visible}RI.isVisible=Dge;RI.makeData=function(e){for(var t=Pmt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var DI=Pr(),zge=vl(),qge=df(),Dmt=LI(),Fmt=cV();Oge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;DI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=zge.newContainer(a,"rangeslider");function l(L,x){return DI.coerce(o,s,Dmt,L,x)}var u,c;function f(L,x){return DI.coerce(u,c,Fmt,L,x)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var v=d.cartesian.filter(function(L){return L.slice(0,Math.max(0,L.indexOf("y")))===qge.name2id(n)}).map(function(L){return L.slice(L.indexOf("y"),L.length)}),m=DI.simpleMap(v,qge.id2name),b=0;b{"use strict";var zmt=df().list,qmt=Mg().getAutoRange,Omt=PI();Nge.exports=function(t){for(var r=zmt(t,"x",!0),n=0;n{"use strict";var FI=qa(),Bmt=Oa(),Nmt=Mc(),Jf=Pr(),zI=Jf.strTranslate,Gge=So(),C_=ka(),Umt=qb(),Vmt=mh(),fV=df(),Gmt=yv(),Hmt=Eg(),rl=PI();Hge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)Z=E[j+1];else if(G=N.pmax)Z=E[j+1];else if(G0?e.touches[0].clientX:0}function jmt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+rl.slideBoxClassName).node(),a=e.select("rect."+rl.grabAreaMinClassName).node(),o=e.select("rect."+rl.grabAreaMaxClassName).node();function s(){var l=FI.event,u=l.target,c=Vge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=Gmt.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",b),v.addEventListener("mousemove",m),v.addEventListener("mouseup",b);function m(p){var k=Vge(p),M=+k-c,T,L,x;switch(u){case i:if(x="ew-resize",h+M>r._length||d+M<0)return;T=h+M,L=d+M;break;case a:if(x="col-resize",h+M>r._length)return;T=h+M,L=d;break;case o:if(x="col-resize",d+M<0)return;T=h,L=d+M;break;default:x="ew-resize",T=f,L=f+M;break}if(L{"use strict";var tyt=Pr(),ryt=LI(),iyt=cV(),hV=Fge();Wge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:tyt.extendFlat({},ryt,{yaxis:iyt})}}},layoutAttributes:LI(),handleDefaults:Bge(),calcAutorange:Uge(),draw:jge(),isVisible:hV.isVisible,makeData:hV.makeData,autoMarginOpts:hV.autoMarginOpts}});var qI=ye((Olr,Yge)=>{"use strict";var nyt=ec(),Zge=Ih(),ayt=vl().templatedArray,oyt=ayt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Yge.exports={visible:{valType:"boolean",editType:"plot"},buttons:oyt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:nyt({editType:"plot"}),bgcolor:{valType:"color",dflt:Zge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Zge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var dV=ye((Blr,Kge)=>{"use strict";Kge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Qge=ye((Nlr,$ge)=>{"use strict";var OI=Pr(),syt=ka(),lyt=vl(),uyt=Kd(),Jge=qI(),vV=dV();$ge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=lyt.newContainer(r,"rangeselector");function l(d,v){return OI.coerce(o,s,Jge,d,v)}var u=uyt(o,s,{name:"buttons",handleItemDefaults:cyt,calendar:a}),c=l("visible",u.length>0);if(c){var f=fyt(r,n,i);l("x",f[0]),l("y",f[1]),OI.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),OI.coerceFont(l,"font",n.font);var h=l("bgcolor");l("activecolor",syt.contrast(h,vV.lightAmount,vV.darkAmount)),l("bordercolor"),l("borderwidth")}};function cyt(e,t,r,n){var i=n.calendar;function a(l,u){return OI.coerce(e,t,Jge.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function fyt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var hyt=Eq(),dyt=Pr().titleCase;eme.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=vyt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function vyt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=hyt["utc"+dyt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var l=a.offset(n,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var ume=ye((Vlr,lme)=>{"use strict";var NI=qa(),pyt=Oa(),gyt=Mc(),rme=ka(),sme=So(),Ny=Pr(),ime=Ny.strTranslate,BI=Zl(),myt=df(),mV=Dh(),nme=mV.LINE_SPACING,ame=mV.FROM_TL,ome=mV.FROM_BR,gV=dV(),yyt=tme();lme.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(_yt(t),xyt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=NI.select(this),o=i,s=o.rangeselector,l=a.selectAll("g.button").data(Ny.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=NI.select(this),f=yyt(o,u);u._isActive=byt(o,u,f),c.call(pV,s,u),c.call(Tyt,s,u,t),c.on("click",function(){t._dragged||pyt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(pV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(pV,s,u)})}),Syt(t,l,s,o._name,a)})};function _yt(e){for(var t=myt.list(e,"x",!0),r=[],n=0;n{"use strict";cme.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:qI()}}},layoutAttributes:qI(),handleDefaults:Qge(),draw:ume()}});var Cc=ye(yV=>{"use strict";var hme=Ao().extendFlat;yV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:hme({},r,{}),y:hme({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};yV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Myt=Pr(),Eyt=m3().counter,kyt=Cc().attributes,dme=Rh().idRegex,Cyt=vl(),_V={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Eyt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[dme.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[dme.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:kyt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function UI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Lyt(e,t){var r=e.grid||{},n=UI(t,r,"x"),i=UI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),l=o&&n!==r.xaxes&&s&&i!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=i.length),o&&(c=n.length));var f=Cyt.newContainer(t,"grid");function h(x,C){return Myt.coerce(r,f,_V,x,C)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var m=h("pattern")==="independent";m&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",k=a?.2:.1,M=a?.3:.1,T,L;l&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:vme("x",h,k,T,v),y:vme("y",h,M,L,d,p)}}function vme(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),f=c*(1-o),h=0;h{"use strict";mme.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var xme=ye((Xlr,_me)=>{"use strict";var yme=Eo(),Iyt=Oa(),Ryt=Pr(),Dyt=vl(),Fyt=bV();_me.exports=function(e,t,r,n){var i="error_"+n.axis,a=Dyt.newContainer(t,i),o=e[i]||{};function s(v,m){return Ryt.coerce(o,a,Fyt,v,m)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||yme(o.thickness)||yme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Iyt.traceIs(t,"gl3d")?0:4))}}});var wV=ye((Zlr,wme)=>{"use strict";wme.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(u,c){var f=+i[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+i[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=bme(r,t.value),s=bme(r,t.valueminus);return n||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function bme(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var Sme=ye((Ylr,Ame)=>{"use strict";var TV=Eo(),zyt=Oa(),AV=ho(),qyt=Pr(),Oyt=wV();Ame.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Mme=qa(),L_=Eo(),Byt=So(),Nyt=Ru();Eme.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,l=i&&i.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},d=f.error_y||{},v;f.ids&&(v=function(k){return k.id});var m=Nyt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=Mme.select(this).selectAll("g.errorbar").data(c,v);if(b.exit().remove(),!!c.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var p=b.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(i.duration).style("opacity",1),Byt.setClipUrl(b,n.layerClipId,t),b.each(function(k){var M=Mme.select(this),T=Uyt(k,o,s);if(!(m&&!k.vis)){var L,x=M.select("path.yerror");if(d.visible&&L_(T.x)&&L_(T.yh)&&L_(T.ys)){var C=d.width;L="M"+(T.x-C)+","+T.yh+"h"+2*C+"m-"+C+",0V"+T.ys,T.noYS||(L+="m-"+C+",0h"+2*C),a=!x.size(),a?x=M.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(x=x.transition().duration(i.duration).ease(i.easing)),x.attr("d",L)}else x.remove();var S=M.select("path.xerror");if(h.visible&&L_(T.y)&&L_(T.xh)&&L_(T.xs)){var g=(h.copy_ystyle?d:h).width;L="M"+T.xh+","+(T.y-g)+"v"+2*g+"m0,-"+g+"H"+T.xs,T.noXS||(L+="m0,-"+g+"v"+2*g),a=!S.size(),a?S=M.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(S=S.transition().duration(i.duration).ease(i.easing)),S.attr("d",L)}else S.remove()}})}})};function Uyt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),L_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),L_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Pme=ye((Jlr,Lme)=>{"use strict";var Vyt=qa(),Cme=ka();Lme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Vyt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Cme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Cme.stroke,a.color)})}});var Dme=ye(($lr,Rme)=>{"use strict";var b4=Pr(),Ime=mc().overrideAll,w4=bV(),f2={error_x:b4.extendFlat({},w4),error_y:b4.extendFlat({},w4)};delete f2.error_x.copy_zstyle;delete f2.error_y.copy_zstyle;delete f2.error_y.copy_ystyle;var T4={error_x:b4.extendFlat({},w4),error_y:b4.extendFlat({},w4),error_z:b4.extendFlat({},w4)};delete T4.error_x.copy_ystyle;delete T4.error_y.copy_ystyle;delete T4.error_z.copy_ystyle;delete T4.error_z.copy_zstyle;Rme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:f2,bar:f2,histogram:f2,scatter3d:Ime(T4,"calc","nested"),scattergl:Ime(f2,"calc","nested")}},supplyDefaults:xme(),calc:Sme(),makeComputeError:wV(),plot:kme(),style:Pme(),hoverInfo:Gyt};function Gyt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var zme=ye((Qlr,Fme)=>{"use strict";Fme.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Gme=ye((eur,Vme)=>{"use strict";var P_=qa(),SV=fd(),GI=Mc(),qme=Oa(),Uy=ho(),VI=yv(),U0=Pr(),Hg=U0.strTranslate,Ume=Ao().extendFlat,MV=Eg(),Gg=So(),EV=ka(),Hyt=qb(),jyt=Zl(),Wyt=pv().flipScale,Xyt=h4(),Zyt=vI(),Yyt=Rd(),kV=Dh(),Ome=kV.LINE_SPACING,Bme=kV.FROM_TL,Nme=kV.FROM_BR,gf=zme().cn;function Kyt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+gf.colorbar).data(Jyt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(gf.colorbar,!0),r.each(function(n){var i=P_.select(this);U0.ensureSingle(i,"rect",gf.cbbg),U0.ensureSingle(i,"g",gf.cbfills),U0.ensureSingle(i,"g",gf.cblines),U0.ensureSingle(i,"g",gf.cbaxis,function(o){o.classed(gf.crisp,!0)}),U0.ensureSingle(i,"g",gf.cbtitleunshift,function(o){o.append("g").classed(gf.cbtitle,!0)}),U0.ensureSingle(i,"rect",gf.cboutline);var a=$yt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Qyt(i,n,e)}),r.exit().each(function(n){GI.autoMargin(e,n._id)}).remove(),r.order()}function Jyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(M){return Ume(M,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?Wyt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var Pe=Math.pow(10,Math.floor(Math.log(me)/Math.LN10));Be*=Pe*U0.roundUp(me/Pe,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(ke.tick0=0)}ke.dtick=Be}ke.domain=n?[re+v/T.h,re+H-v/T.h]:[re+d/T.w,re+H-d/T.w],ke.setScale(),e.attr("transform",Hg(Math.round(T.l),Math.round(T.t)));var ce=e.select("."+gf.cbtitleunshift).attr("transform",Hg(-Math.round(T.l),-Math.round(T.t))),He=ke.ticklabelposition,lt=ke.title.font.size,mt=e.select("."+gf.cbaxis),Ht,at=0,ct=0;function ar(Ue,Ae){var rt={propContainer:ke,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:M._dfltTitle.colorbar,containerGroup:e.select("."+gf.cbtitle)},St=Ue.charAt(0)==="h"?Ue.slice(1):"h"+Ue;e.selectAll("."+St+",."+St+"-math-group").remove(),Hyt.draw(r,Ue,Ume(rt,Ae||{}))}function Vt(){if(n&&be||!n&&!be){var Ue,Ae;S==="top"&&(Ue=d+T.l+ie*m,Ae=v+T.t+ae*(1-re-H)+3+lt*.75),S==="bottom"&&(Ue=d+T.l+ie*m,Ae=v+T.t+ae*(1-re)-3-lt*.25),S==="right"&&(Ae=v+T.t+ae*b+3+lt*.75,Ue=d+T.l+ie*re),ar(ke._id+"title",{attributes:{x:Ue,y:Ae,"text-anchor":n?"start":"middle"}})}}function rr(){if(n&&!be||!n&&be){var Ue=ke.position||0,Ae=ke._offset+ke._length/2,rt,St;if(S==="right")St=Ae,rt=T.l+ie*Ue+10+lt*(ke.showticklabels?1:.5);else if(rt=Ae,S==="bottom"&&(St=T.t+ae*Ue+10+(He.indexOf("inside")===-1?ke.tickfont.size:0)+(ke.ticks!=="inside"&&t.ticklen||0)),S==="top"){var Tt=C.text.split("
").length;St=T.t+ae*Ue+10-Z-Ome*lt*Tt}ar((n?"h":"v")+ke._id+"title",{avoid:{selection:P_.select(r).selectAll("g."+ke._id+"tick"),side:S,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?M.width:M.height},attributes:{x:rt,y:St,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function tt(){if(!n&&!be||n&&be){var Ue=e.select("."+gf.cbtitle),Ae=Ue.select("text"),rt=[-l/2,l/2],St=Ue.select(".h"+ke._id+"title-math-group").node(),Tt=15.6;Ae.node()&&(Tt=parseInt(Ae.node().style.fontSize,10)*Ome);var dt;if(St?(dt=Gg.bBox(St),ct=dt.width,at=dt.height,at>Tt&&(rt[1]-=(at-Tt)/2)):Ae.node()&&!Ae.classed(gf.jsPlaceholder)&&(dt=Gg.bBox(Ae.node()),ct=dt.width,at=dt.height),n){if(at){if(at+=5,S==="top")ke.domain[1]-=at/T.h,rt[1]*=-1;else{ke.domain[0]+=at/T.h;var Et=jyt.lineCount(Ae);rt[1]+=(1-Et)*Tt}Ue.attr("transform",Hg(rt[0],rt[1])),ke.setScale()}}else ct&&(S==="right"&&(ke.domain[0]+=(ct+lt/2)/T.w),Ue.attr("transform",Hg(rt[0],rt[1])),ke.setScale())}e.selectAll("."+gf.cbfills+",."+gf.cblines).attr("transform",n?Hg(0,Math.round(T.h*(1-ke.domain[1]))):Hg(Math.round(T.w*ke.domain[0]),0)),mt.attr("transform",n?Hg(0,Math.round(-T.t)):Hg(Math.round(-T.l),0));var pt=e.select("."+gf.cbfills).selectAll("rect."+gf.cbfill).attr("style","").data(V);pt.enter().append("rect").classed(gf.cbfill,!0).attr("style",""),pt.exit().remove();var jt=g.map(ke.c2p).map(Math.round).sort(function(qr,jr){return qr-jr});pt.each(function(qr,jr){var gt=[jr===0?g[0]:(V[jr]+V[jr-1])/2,jr===V.length-1?g[1]:(V[jr]+V[jr+1])/2].map(ke.c2p).map(Math.round);n&&(gt[1]=U0.constrain(gt[1]+(gt[1]>gt[0])?1:-1,jt[0],jt[1]));var Ge=P_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",P_.min(gt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(P_.max(gt)-P_.min(gt),2));if(t._fillgradient)Gg.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Je=E(qr).replace("e-","");Ge.attr("fill",SV(Je).toHexString())}});var or=e.select("."+gf.cblines).selectAll("path."+gf.cbline).data(x.color&&x.width?G:[]);or.enter().append("path").classed(gf.cbline,!0),or.exit().remove(),or.each(function(qr){var jr=_e,gt=Math.round(ke.c2p(qr))+x.width/2%1;P_.select(this).attr("d","M"+(n?jr+","+gt:gt+","+jr)+(n?"h":"v")+Z).call(Gg.lineGroupStyle,x.width,P(qr),x.dash)}),mt.selectAll("g."+ke._id+"tick,path").remove();var mr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Ar=Uy.calcTicks(ke),ei=Uy.getTickSigns(ke)[2];return Uy.drawTicks(r,ke,{vals:ke.ticks==="inside"?Uy.clipEnds(ke,Ar):Ar,layer:mt,path:Uy.makeTickPath(ke,mr,ei),transFn:Uy.makeTransTickFn(ke)}),Uy.drawLabels(r,ke,{vals:Ar,layer:mt,transFn:Uy.makeTransTickLabelFn(ke),labelFns:Uy.makeLabelFns(ke,mr)})}function je(){var Ue,Ae=Z+l/2;He.indexOf("inside")===-1&&(Ue=Gg.bBox(mt.node()),Ae+=n?Ue.width:Ue.height),Ht=ce.select("text");var rt=0,St=n&&S==="top",Tt=!n&&S==="right",dt=0;if(Ht.node()&&!Ht.classed(gf.jsPlaceholder)){var Et,pt=ce.select(".h"+ke._id+"title-math-group").node();pt&&(n&&be||!n&&!be)?(Ue=Gg.bBox(pt),rt=Ue.width,Et=Ue.height):(Ue=Gg.bBox(ce.node()),rt=Ue.right-T.l-(n?_e:Se),Et=Ue.bottom-T.t-(n?Se:_e),!n&&S==="top"&&(Ae+=Ue.height,dt=Ue.height)),Tt&&(Ht.attr("transform",Hg(rt/2+lt/2,0)),rt*=2),Ae=Math.max(Ae,n?rt:Et)}var jt=(n?d:v)*2+Ae+u+l/2,or=0;!n&&C.text&&h==="bottom"&&b<=0&&(or=jt/2,jt+=or,dt+=or),M._hColorbarMoveTitle=or,M._hColorbarMoveCBTitle=dt;var mr=u+l,Ar=(n?_e:Se)-mr/2-(n?d:0),ei=(n?Se:_e)-(n?N:v+dt-or);e.select("."+gf.cbbg).attr("x",Ar).attr("y",ei).attr(n?"width":"height",Math.max(jt-or,2)).attr(n?"height":"width",Math.max(N+mr,2)).call(EV.fill,c).call(EV.stroke,t.bordercolor).style("stroke-width",u);var qr=Tt?Math.max(rt-10,0):0;e.selectAll("."+gf.cboutline).attr("x",(n?_e:Se+d)+qr).attr("y",(n?Se+v-N:_e)+(St?at:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+at:2*d+qr),2)).call(EV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var jr=n?Ee*jt:0,gt=n?0:(1-Ce)*jt-dt;if(jr=k?T.l-jr:-jr,gt=p?T.t-gt:-gt,e.attr("transform",Hg(jr,gt)),!n&&(u||SV(c).getAlpha()&&!SV.equals(M.paper_bgcolor,c))){var Ge=mt.selectAll("text"),Je=Ge[0].length,We=e.select("."+gf.cbbg).node(),et=Gg.bBox(We),xt=Gg.getTranslate(e),At=2;Ge.each(function(mi,un){var Fn=0,An=Je-1;if(un===Fn||un===An){var Hn=Gg.bBox(this),Qn=Gg.getTranslate(this),Vi;if(un===An){var Kn=Hn.right+Qn.x,Jn=et.right+xt.x+Se-u-At+m;Vi=Jn-Kn,Vi>0&&(Vi=0)}else if(un===Fn){var Gt=Hn.left+Qn.x,wt=et.left+xt.x+Se+u+At;Vi=wt-Gt,Vi<0&&(Vi=0)}Vi&&(Je<3?this.setAttribute("transform","translate("+Vi+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Kt={},Qt=Bme[f],Mr=Nme[f],Gr=Bme[h],Ir=Nme[h],Yr=jt-Z;n?(a==="pixels"?(Kt.y=b,Kt.t=N*Gr,Kt.b=N*Ir):(Kt.t=Kt.b=0,Kt.yt=b+i*Gr,Kt.yb=b-i*Ir),s==="pixels"?(Kt.x=m,Kt.l=jt*Qt,Kt.r=jt*Mr):(Kt.l=Yr*Qt,Kt.r=Yr*Mr,Kt.xl=m-o*Qt,Kt.xr=m+o*Mr)):(a==="pixels"?(Kt.x=m,Kt.l=N*Qt,Kt.r=N*Mr):(Kt.l=Kt.r=0,Kt.xl=m+i*Qt,Kt.xr=m-i*Mr),s==="pixels"?(Kt.y=1-b,Kt.t=jt*Gr,Kt.b=jt*Ir):(Kt.t=Yr*Gr,Kt.b=Yr*Ir,Kt.yt=b-o*Gr,Kt.yb=b+o*Ir));var _i=t.y<.5?"b":"t",Pi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var ai={r:M.width-Ar-jr,l:Ar+Kt.r,b:M.height-ei-gt,t:ei+Kt.b};k&&p?GI.autoMargin(r,t._id,Kt):k?r._fullLayout._reservedMargin[t._id][_i]=ai[_i]:p||n?r._fullLayout._reservedMargin[t._id][Pi]=ai[Pi]:r._fullLayout._reservedMargin[t._id][_i]=ai[_i]}return U0.syncOrAsync([GI.previousPromises,Vt,tt,rr,GI.previousPromises,je],r)}function Qyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;VI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),MV(e)},moveFn:function(u,c){e.attr("transform",o+Hg(u,c)),s=VI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=VI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=VI.getCursor(s,l,t.xanchor,t.yanchor);MV(e,f)},doneFn:function(){if(MV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?qme.call("_guiRestyle",r,u,t._traceIndex):qme.call("_guiRelayout",r,u)}}})}function e1t(e,t,r){var n=t._levels,i=[],a=[],o,s,l=n.end+n.size/100,u=n.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";Hme.exports={moduleType:"component",name:"colorbar",attributes:cL(),supplyDefaults:qO(),draw:Gme().draw,hasColorbar:LO()}});var Xme=ye((rur,Wme)=>{"use strict";Wme.exports={moduleType:"component",name:"legend",layoutAttributes:PB(),supplyLayoutDefaults:RB(),draw:XB(),style:GB()}});var Yme=ye((iur,Zme)=>{"use strict";Zme.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Jme=ye((nur,Kme)=>{"use strict";Kme.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var LV=ye((aur,tye)=>{"use strict";var r1t=Oa(),eye=Pr(),CV=eye.extendFlat,$me=eye.extendDeep;function Qme(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function i1t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}tye.exports=function(t,r){var n,i=t.data,a=t.layout,o=$me([],i),s=$me({},a,Qme(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(n=0;n{"use strict";var n1t=Sb().EventEmitter,a1t=Oa(),o1t=Pr(),rye=qy(),s1t=LV(),l1t=KP(),u1t=JP();function c1t(e,t){var r=new n1t,n=s1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=rye.getDelay(i._fullLayout);setTimeout(function(){var l=l1t(i),u=document.createElement("canvas");u.id=o1t.randstr(),r=u1t({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=rye.getRedrawFunc(i);return a1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}iye.exports=c1t});var sye=ye((sur,oye)=>{"use strict";var aye=qy(),f1t={getDelay:aye.getDelay,getRedrawFunc:aye.getRedrawFunc,clone:LV(),toSVG:KP(),svgToImg:JP(),toImage:nye(),downloadImage:uU()};oye.exports=f1t});var uye=ye(Vy=>{"use strict";Vy.version=m6().version;wee();cne();var h1t=Oa(),A4=Vy.register=h1t.register,IV=Cde(),lye=Object.keys(IV);for(HI=0;HI{"use strict";cye.exports=uye()});var qm=ye((cur,gye)=>{"use strict";var Bf=pf(),hye=vf().axisHoverFormat,{hovertemplateAttrs:d1t,texttemplateAttrs:v1t,templatefallbackAttrs:dye}=Ll(),pye=Tu(),p1t=ec(),vye=A_(),g1t=Pd().pattern,h2=Ao().extendFlat,RV=p1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),m1t=Bf.marker,y1t=m1t.line,_1t=h2({},y1t.width,{dflt:0}),x1t=h2({width:_1t,editType:"calc"},pye("marker.line")),b1t=h2({line:x1t,editType:"calc"},pye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:g1t,cornerradius:{valType:"any",editType:"calc"}});gye.exports={x:Bf.x,x0:Bf.x0,dx:Bf.dx,y:Bf.y,y0:Bf.y0,dy:Bf.dy,xperiod:Bf.xperiod,yperiod:Bf.yperiod,xperiod0:Bf.xperiod0,yperiod0:Bf.yperiod0,xperiodalignment:Bf.xperiodalignment,yperiodalignment:Bf.yperiodalignment,xhoverformat:hye("x"),yhoverformat:hye("y"),text:Bf.text,texttemplate:v1t({editType:"plot"},{keys:vye.eventDataKeys}),texttemplatefallback:dye({editType:"plot"}),hovertext:Bf.hovertext,hovertemplate:d1t({},{keys:vye.eventDataKeys}),hovertemplatefallback:dye(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:h2({},RV,{}),insidetextfont:h2({},RV,{}),outsidetextfont:h2({},RV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:h2({},Bf.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:b1t,offsetgroup:Bf.offsetgroup,alignmentgroup:Bf.alignmentgroup,selected:{marker:{opacity:Bf.selected.marker.opacity,color:Bf.selected.marker.color,editType:"style"},textfont:Bf.selected.textfont,editType:"style"},unselected:{marker:{opacity:Bf.unselected.marker.opacity,color:Bf.unselected.marker.color,editType:"style"},textfont:Bf.unselected.textfont,editType:"style"},zorder:Bf.zorder}});var WI=ye((fur,mye)=>{"use strict";mye.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var XI=ye((hur,xye)=>{"use strict";var w1t=ka(),yye=pv().hasColorscale,_ye=td(),T1t=Pr().coercePattern;xye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=yye(t,"marker");s&&_ye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",w1t.defaultLine),yye(t,"marker.line")&&_ye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),T1t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var i0=ye((dur,Mye)=>{"use strict";var bye=Eo(),LT=Pr(),wye=ka(),A1t=Oa(),S1t=lT(),M1t=Dg(),E1t=XI(),k1t=r2(),Tye=qm(),ZI=LT.coerceFont;function C1t(e,t,r,n){function i(u,c){return LT.coerce(e,t,Tye,u,c)}var a=S1t(e,t,n,i);if(!a){t.visible=!1;return}M1t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");Sye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),E1t(e,t,i,r,n);var s=(t.marker.line||{}).color,l=A1t.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||wye.defaultLine,{axis:"y"}),l(e,t,s||wye.defaultLine,{axis:"x",inherit:"y"}),LT.coerceSelectionMarkerOpacity(t,i)}function L1t(e,t){var r,n;function i(s,l){return LT.coerce(n._input,n,Tye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&bye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Sye(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",v=d||i==="inside",m=d||i==="outside";if(v||m){var b=ZI(n,"textfont",r.font),p=LT.extendFlat({},b),k=e.textfont&&e.textfont.color,M=!k;if(M&&delete p.color,ZI(n,"insidetextfont",p),h){var T=LT.extendFlat({},b);M&&delete T.color,ZI(n,"pathbar.textfont",T)}m&&ZI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),l&&n("constraintext"),u&&n("cliponaxis"),c&&n("textangle"),n("texttemplate"),n("texttemplatefallback")}v&&f&&n("insidetextanchor")}Mye.exports={supplyDefaults:C1t,crossTraceDefaults:L1t,handleText:Sye,validateCornerradius:Aye}});var DV=ye((vur,Eye)=>{"use strict";var P1t=Oa(),I1t=ho(),R1t=Pr(),D1t=WI(),F1t=i0().validateCornerradius;Eye.exports=function(e,t,r){function n(m,b){return R1t.coerce(e,t,D1t,m,b)}for(var i=!1,a=!1,o=!1,s={},l=n("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var d=I1t.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}l!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var v=n("barcornerradius");t.barcornerradius=F1t(v)}});var S4=ye((pur,kye)=>{"use strict";var PT=Pr();kye.exports=function(t,r){for(var n=0;n{"use strict";var Cye=ho(),Lye=zg(),Pye=pv().hasColorscale,Iye=gv(),z1t=S4(),q1t=q0();Rye.exports=function(t,r){var n=Cye.getFromId(t,r.xaxis||"x"),i=Cye.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",f),s=i.makeCalcdata(r,"y"),l=Lye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=Lye(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),v=0;v{"use strict";var O1t=qa(),B1t=Pr();function N1t(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:i/l.fontSize;var u=O1t.select(this).select("text");B1t.setTransormAndDisplay(u,l)}})}}function U1t(e,t,r){if(r.uniformtext.mode){var n=Fye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var G1t=Eo(),H1t=fd(),qye=Pr().isArrayOrTypedArray;d2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};d2.coerceNumber=function(e,t,r){if(G1t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};d2.coerceColor=function(e,t,r){return H1t(t).isValid()?t:r!==void 0?r:e.dflt};d2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};d2.getValue=function(e,t){var r;return qye(e)?t{"use strict";var M4=qa(),j1t=ka(),E4=So(),Oye=Pr(),Bye=Oa(),Nye=bv().resizeText,FV=qm(),W1t=FV.textfont,X1t=FV.insidetextfont,Z1t=FV.outsidetextfont,ev=YI();function Y1t(e){var t=M4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Nye(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&M4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=M4.select(this),o=i[0].trace;Uye(a,o,e)}),Bye.getComponentMethod("errorbars","style")(t)}function Uye(e,t,r){E4.pointStyle(e.selectAll("path"),t,r),Vye(e,t,r)}function Vye(e,t,r){e.selectAll("text").each(function(n){var i=M4.select(this),a=Oye.ensureUniformFontSize(r,Gye(i,n,t,r));E4.font(i,a)})}function K1t(e,t,r){var n=t[0].trace;n.selectedpoints?J1t(r,n,e):(Uye(r,n,e),Bye.getComponentMethod("errorbars","style")(r))}function J1t(e,t,r){E4.selectedPointStyle(e.selectAll("path"),t),$1t(e.selectAll("text"),t,r)}function $1t(e,t,r){e.each(function(n){var i=M4.select(this),a;if(n.selected){a=Oye.ensureUniformFontSize(r,Gye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),E4.font(i,a)}else E4.selectedTextStyle(i,t)})}function Gye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Xye(t,r);a=jye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Wye(r,t.i,i));return a}function Hye(e,t,r){return zV(W1t,e.textfont,t,r)}function jye(e,t,r,n){var i=Hye(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:j1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),zV(X1t,e.insidetextfont,t,i)}function Wye(e,t,r){var n=Hye(e,t,r);return zV(Z1t,e.outsidetextfont,t,n)}function zV(e,t,r,n){t=t||{};var i=ev.getValue(t.family,r),a=ev.getValue(t.size,r),o=ev.getValue(t.color,r),s=ev.getValue(t.weight,r),l=ev.getValue(t.style,r),u=ev.getValue(t.variant,r),c=ev.getValue(t.textcase,r),f=ev.getValue(t.lineposition,r),h=ev.getValue(t.shadow,r);return{family:ev.coerceString(e.family,i,n.family),size:ev.coerceNumber(e.size,a,n.size),color:ev.coerceColor(e.color,o,n.color),weight:ev.coerceString(e.weight,s,n.weight),style:ev.coerceString(e.style,l,n.style),variant:ev.coerceString(e.variant,u,n.variant),textcase:ev.coerceString(e.variant,c,n.textcase),lineposition:ev.coerceString(e.variant,f,n.lineposition),shadow:ev.coerceString(e.variant,h,n.shadow)}}function Xye(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Zye.exports={style:Y1t,styleTextPoints:Vye,styleOnSelect:K1t,getInsideTextFont:jye,getOutsideTextFont:Wye,getBarColor:Xye,resizeText:Nye}});var p2=ye((xur,r1e)=>{"use strict";var KI=qa(),JI=Eo(),Fd=Pr(),Q1t=Zl(),e_t=ka(),I_=So(),t_t=Oa(),$I=ho().tickText,Yye=bv(),r_t=Yye.recordMinTextSize,i_t=Yye.clearMinTextSize,qV=V0(),IT=YI(),n_t=A_(),Kye=qm(),a_t=Kye.text,o_t=Kye.textposition,s_t=ip().appendArrayPointValue,Gv=n_t.TEXTPAD;function l_t(e){return e.id}function u_t(e){if(e.ids)return l_t}function OV(e){return(e>0)-(e<0)}function Om(e,t){return e0}function f_t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;i||(i={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},i_t("bar",l));var c=Fd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=KI.select(this),d=f[0].trace,v=f[0].t,m=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",k=d.type==="bar",M=k||b,T=0;m&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",x=$ye(i),C=Fd.ensureSingle(h,"g","points"),S=u_t(d),g=C.selectAll("g.point").data(Fd.identity,S);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(E,z){var q=KI.select(this),V=c_t(E,o,s,L),G=V[0][0],Z=V[0][1],j=V[1][0],N=V[1][1],H=(L?Z-G:N-j)===0;H&&M&&IT.getLineWidth(d,E)&&(H=!1),H||(H=!JI(G)||!JI(Z)||!JI(j)||!JI(N)),E.isBlank=H,H&&(L?Z=G:N=j),T&&!H&&(L?(G-=Om(G,Z)*T,Z+=Om(G,Z)*T):(j-=Om(j,N)*T,N+=Om(j,N)*T));var ie,ae;if(d.type==="waterfall"){if(!H){var _e=d[E.dir].marker;ie=_e.line.width,ae=_e.color}}else ie=IT.getLineWidth(d,E),ae=E.mc||d.marker.color;function Ee(Ae){var rt=KI.round(ie/2%1,2);return i.gap===0&&i.groupgap===0?KI.round(Math.round(Ae)-rt,2):Ae}function Ce(Ae,rt,St){return St&&Ae===rt?Ae:Math.abs(Ae-rt)>=2?Ee(Ae):Ae>rt?Math.ceil(Ae):Math.floor(Ae)}var ge=e_t.opacity(ae),re=ge<1||ie>.01?Ee:Ce;e._context.staticPlot||(G=re(G,Z,L),Z=re(Z,G,L),j=re(j,N,!L),N=re(N,j,!L));var Se=L?o.c2p:s.c2p,ke;E.s0>0?ke=E._sMax:E.s0<0?ke=E._sMin:ke=E.s1>0?E._sMax:E._sMin;function be(Ae,rt){if(!Ae)return 0;var St=Math.abs(L?N-j:Z-G),Tt=Math.abs(L?Z-G:N-j),dt=re(Math.abs(Se(ke,!0)-Se(0,!0))),Et=E.hasB?Math.min(St/2,Tt/2):Math.min(St/2,dt),pt;if(rt==="%"){var jt=Math.min(50,Ae);pt=St*(jt/100)}else pt=Ae;return re(Math.max(Math.min(pt,Et),0))}var Be=k||p?be(v.cornerradiusvalue,v.cornerradiusform):0,Le,me,Pe="M"+G+","+j+"V"+N+"H"+Z+"V"+j+"Z",ce=0;if(Be&&E.s){var He=OV(E.s0)===0||OV(E.s)===OV(E.s0)?E.s1:E.s0;if(ce=re(E.hasB?0:Math.abs(Se(ke,!0)-Se(He,!0))),ce0?Math.sqrt(ce*(2*Be-ce)):0,ar=lt>0?Math.max:Math.min;Le="M"+G+","+j+"V"+(N-at*mt)+"H"+ar(Z-(Be-ce)*lt,G)+"A "+Be+","+Be+" 0 0 "+Ht+" "+Z+","+(N-Be*mt-ct)+"V"+(j+Be*mt+ct)+"A "+Be+","+Be+" 0 0 "+Ht+" "+ar(Z-(Be-ce)*lt,G)+","+(j+at*mt)+"Z"}else if(E.hasB)Le="M"+(G+Be*lt)+","+j+"A "+Be+","+Be+" 0 0 "+Ht+" "+G+","+(j+Be*mt)+"V"+(N-Be*mt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(G+Be*lt)+","+N+"H"+(Z-Be*lt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+Z+","+(N-Be*mt)+"V"+(j+Be*mt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(Z-Be*lt)+","+j+"Z";else{me=Math.abs(N-j)+ce;var Vt=me0?Math.sqrt(ce*(2*Be-ce)):0,tt=mt>0?Math.max:Math.min;Le="M"+(G+Vt*lt)+","+j+"V"+tt(N-(Be-ce)*mt,j)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(G+Be*lt-rr)+","+N+"H"+(Z-Be*lt+rr)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(Z-Vt*lt)+","+tt(N-(Be-ce)*mt,j)+"V"+j+"Z"}}else Le=Pe}else Le=Pe;var je=Jye(Fd.ensureSingle(q,"path"),l,i,a);if(je.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-j))||H&&e._context.staticPlot?"M0,0Z":Le).call(I_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var Ue=I_.makePointStyleFns(d);I_.singlePointStyle(E,je,d,Ue,e)}h_t(e,t,q,f,z,G,Z,j,N,Be,ce,i,a),t.layerClipId&&I_.hideOutsideRangePoint(E,q.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;I_.setClipUrl(h,P?null:t.layerClipId,e)});t_t.getComponentMethod("errorbars","plot")(e,c,t,i)}function h_t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,m=e._fullLayout,b;function p(me,Pe,ce){var He=Fd.ensureSingle(me,"text").text(Pe).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(I_.font,ce).call(Q1t.convertToTspans,e);return He}var k=n[0].trace,M=k.orientation==="h",T=p_t(m,n,i,d,v);b=g_t(k,i);var L=f.mode==="stack"||f.mode==="relative",x=n[i],C=!L||x._outmost,S=x.hasB,g=u&&u-c>Gv;if(!T||b==="none"||(x.isBlank||a===o||s===l)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=m.font,E=qV.getBarColor(n[i],k),z=qV.getInsideTextFont(k,i,P,E),q=qV.getOutsideTextFont(k,i,P),V=k.insidetextanchor||"end",G=r.datum();M?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Ee>0,re;g?S?re=v2(N-2*u,H,_e,Ee,M)||v2(N,H-2*u,_e,Ee,M):M?re=v2(N-(u-c),H,_e,Ee,M)||v2(N,H-2*(u-c),_e,Ee,M):re=v2(N,H-(u-c),_e,Ee,M)||v2(N-2*(u-c),H,_e,Ee,M):re=v2(N,H,_e,Ee,M),ge&&re?b="inside":(b="outside",ie.remove(),ie=null)}else b="inside";if(!ie){Ce=Fd.ensureUniformFontSize(e,b==="outside"?q:z),ie=p(r,T,Ce);var Se=ie.attr("transform");if(ie.attr("transform",""),ae=I_.bBox(ie.node()),_e=ae.width,Ee=ae.height,ie.attr("transform",Se),_e<=0||Ee<=0){ie.remove();return}}var ke=k.textangle,be,Be;b==="outside"?(Be=k.constraintext==="both"||k.constraintext==="outside",be=v_t(a,o,s,l,ae,{isHorizontal:M,constrained:Be,angle:ke})):(Be=k.constraintext==="both"||k.constraintext==="inside",be=t1e(a,o,s,l,ae,{isHorizontal:M,constrained:Be,angle:ke,anchor:V,hasB:S,r:u,overhead:c})),be.fontSize=Ce.size,r_t(k.type==="histogram"?"bar":k.type,be,m),x.transform=be;var Le=Jye(ie,m,f,h);Fd.setTransormAndDisplay(Le,be)}function v2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function Qye(e){return e==="auto"?0:e}function e1e(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function t1e(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,d=(h+1)/2,v=1-d,m=a.hasB,b=a.r,p=a.overhead,k=i.width,M=i.height,T=Math.abs(t-e),L=Math.abs(n-r),x=T>2*Gv&&L>2*Gv?Gv:0;T-=2*x,L-=2*x;var C=Qye(l);l==="auto"&&!(k<=T&&M<=L)&&(k>T||M>L)&&(!(k>L||M>T)||kGv){var E=d_t(e,t,r,n,S,b,p,o,m);g=E.scale,P=E.pad}else g=1,s&&(g=Math.min(1,T/S.x,L/S.y)),P=0;var z=i.left*v+i.right*d,q=(i.top+i.bottom)/2,V=(e+Gv)*v+(t-Gv)*d,G=(r+n)/2,Z=0,j=0;if(f||c){var N=(o?S.x:S.y)/2;b&&(c||m)&&(x+=P);var H=o?Om(e,t):Om(r,n);o?f?(V=e+H*x,Z=-H*N):(V=t-H*x,Z=H*N):f?(G=r+H*x,j=-H*N):(G=n-H*x,j=H*N)}return{textX:z,textY:q,targetX:V,targetY:G,anchorX:Z,anchorY:j,scale:g,rotate:C}}function d_t(e,t,r,n,i,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Gv),c=Math.max(0,Math.abs(n-r)-2*Gv),f=a-Gv,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,d=l?f*2:s?f-o:2*h,v=l?f*2:s?2*h:f-o,m,b,p,k,M;return i.y/i.x>=c/(u-d)?k=c/i.y:i.y/i.x<=(c-v)/u?k=u/i.x:!l&&s?(m=i.x*i.x+i.y*i.y/4,b=-2*i.x*(u-f)-i.y*(c/2-f),p=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,k=(-b+Math.sqrt(b*b-4*m*p))/(2*m)):l?(m=(i.x*i.x+i.y*i.y)/4,b=-i.x*(u/2-f)-i.y*(c/2-f),p=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,k=(-b+Math.sqrt(b*b-4*m*p))/(2*m)):(m=i.x*i.x/4+i.y*i.y,b=-i.x*(u/2-f)-2*i.y*(c-f),p=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,k=(-b+Math.sqrt(b*b-4*m*p))/(2*m)),k=Math.min(1,k),s?M=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*k)/2)*(f-(c-i.y*k)/2)))-o):M=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-i.x*k)/2)*(f-(u-i.x*k)/2)))-o),{scale:k,pad:M}}function v_t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=i.width,c=i.height,f=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Gv?Gv:0:d=f>2*Gv?Gv:0;var v=1;s&&(v=o?Math.min(1,h/c):Math.min(1,f/u));var m=Qye(l),b=e1e(i,m),p=(o?b.x:b.y)/2,k=(i.left+i.right)/2,M=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,x=0,C=0,S=o?Om(t,e):Om(r,n);return o?(T=t-S*d,x=S*p):(L=n+S*d,C=-S*p),{textX:k,textY:M,targetX:T,targetY:L,anchorX:x,anchorY:C,scale:v,rotate:m}}function p_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=m_t(e,t,r,n,i):a.textinfo?s=y_t(t,r,n,i):s=IT.getValue(a.text,r),IT.coerceString(a_t,s)}function g_t(e,t){var r=IT.getValue(e.textposition,t);return IT.coerceEnumerated(o_t,r)}function m_t(e,t,r,n,i){var a=t[0].trace,o=Fd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,d,v;c?(f="y",h=i,d="x",v=n):(f="x",h=n,d="y",v=i);function m(x){return $I(h,h.c2l(x),!0).text}function b(x){return $I(v,v.c2l(x),!0).text}var p=t[r],k={};k.label=p.p,k.labelLabel=k[f+"Label"]=m(p.p);var M=Fd.castOption(a,p.i,"text");(M===0||M)&&(k.text=M),k.value=p.s,k.valueLabel=k[d+"Label"]=b(p.s);var T={};s_t(T,a,p.i),(s||T.x===void 0)&&(T.x=c?k.value:k.label),(s||T.y===void 0)&&(T.y=c?k.label:k.value),(s||T.xLabel===void 0)&&(T.xLabel=c?k.valueLabel:k.labelLabel),(s||T.yLabel===void 0)&&(T.yLabel=c?k.labelLabel:k.valueLabel),l&&(k.delta=+p.rawS||p.s,k.deltaLabel=b(k.delta),k.final=p.v,k.finalLabel=b(k.final),k.initial=k.final-k.delta,k.initialLabel=b(k.initial)),u&&(k.value=p.s,k.valueLabel=b(k.value),k.percentInitial=p.begR,k.percentInitialLabel=Fd.formatPercent(p.begR),k.percentPrevious=p.difR,k.percentPreviousLabel=Fd.formatPercent(p.difR),k.percentTotal=p.sumR,k.percenTotalLabel=Fd.formatPercent(p.sumR));var L=Fd.castOption(a,p.i,"customdata");return L&&(k.customdata=L),Fd.texttemplateString({data:[T,k,a._meta],fallback:a.texttemplatefallback,labels:k,locale:e._d3locale,template:o})}function y_t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function l(L){var x=a?n:r;return $I(x,L,!0).text}function u(L){var x=a?r:n;return $I(x,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,m=function(L){return h.indexOf(L)!==-1};if(m("label")&&d.push(l(e[t].p)),m("text")&&(v=Fd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,k=p-b;m("initial")&&d.push(u(k)),m("delta")&&d.push(u(b)),m("final")&&d.push(u(p))}if(s){m("value")&&d.push(u(f.s));var M=0;m("percent initial")&&M++,m("percent previous")&&M++,m("percent total")&&M++;var T=M>1;m("percent initial")&&(v=Fd.formatPercent(f.begR),T&&(v+=" of initial"),d.push(v)),m("percent previous")&&(v=Fd.formatPercent(f.difR),T&&(v+=" of previous"),d.push(v)),m("percent total")&&(v=Fd.formatPercent(f.sumR),T&&(v+=" of total"),d.push(v))}return d.join("
")}r1e.exports={plot:f_t,toMoveInsideBar:t1e}});var RT=ye((bur,o1e)=>{"use strict";var k4=ef(),__t=Oa(),i1e=ka(),x_t=Pr().fillText,b_t=YI().getLineWidth,BV=ho().hoverLabelText,w_t=fs().BADNUM;function T_t(e,t,r,n,i){var a=n1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=a1e(s,l),__t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function n1e(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,l=n==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,d,v,m,b,p,k;o.orientation==="h"?(h=r,d=t,v="y",m="x",b=G,p=z):(h=t,d=r,v="x",m="y",p=G,b=z);var M=o[v+"period"],T=l||M;function L(re){return C(re,-1)}function x(re){return C(re,1)}function C(re,Se){var ke=re.w;return re[v]+Se*ke/2}function S(re){return re[v+"End"]-re[v+"Start"]}var g=l?L:M?function(re){return re.p-S(re)/2}:function(re){return Math.min(L(re),re.p-s.bardelta/2)},P=l?x:M?function(re){return re.p+S(re)/2}:function(re){return Math.max(x(re),re.p+s.bardelta/2)};function E(re,Se,ke){return i.finiteRange&&(ke=0),k4.inbox(re-h,Se-h,ke+Math.min(1,Math.abs(Se-re)/k)-1)}function z(re){return E(g(re),P(re),c)}function q(re){return E(L(re),x(re),f)}function V(re){var Se=re[m];if(u){var ke=Math.abs(re.rawS)||0;d>0?Se+=ke:d<0&&(Se-=ke)}return Se}function G(re){var Se=d,ke=re.b,be=V(re);return k4.inbox(ke-Se,be-Se,c+(be-Se)/(be-ke)-1)}function Z(re){var Se=d,ke=re.b,be=V(re);return k4.inbox(ke-Se,be-Se,f+(be-Se)/(be-ke)-1)}var j=e[v+"a"],N=e[m+"a"];k=Math.abs(j.r2c(j.range[1])-j.r2c(j.range[0]));function H(re){return(b(re)+p(re))/2}var ie=k4.getDistanceFunction(n,b,p,H);if(k4.getClosest(a,ie,e),e.index!==!1&&a[e.index].p!==w_t){T||(g=function(re){return Math.min(L(re),re.p-s.bargroupwidth/2)},P=function(re){return Math.max(x(re),re.p+s.bargroupwidth/2)});var ae=e.index,_e=a[ae],Ee=o.base?_e.b+_e.s:_e.s;e[m+"0"]=e[m+"1"]=N.c2p(_e[m],!0),e[m+"LabelVal"]=Ee;var Ce=s.extents[s.extents.round(_e.p)];e[v+"0"]=j.c2p(l?g(_e):Ce[0],!0),e[v+"1"]=j.c2p(l?P(_e):Ce[1],!0);var ge=_e.orig_p!==void 0;return e[v+"LabelVal"]=ge?_e.orig_p:_e.p,e.labelLabel=BV(j,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=BV(N,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=BV(N,_e.b,o[m+"hoverformat"]),e.spikeDistance=(Z(_e)+q(_e))/2,e[v+"Spike"]=j.c2p(_e.p,!0),x_t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function a1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=b_t(e,t);if(i1e.opacity(r))return r;if(i1e.opacity(n)&&i)return n}o1e.exports={hoverPoints:T_t,hoverOnBars:n1e,getTraceColor:a1e}});var l1e=ye((wur,s1e)=>{"use strict";s1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var DT=ye((Tur,u1e)=>{"use strict";u1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";c1e.exports={attributes:qm(),layoutAttributes:WI(),supplyDefaults:i0().supplyDefaults,crossTraceDefaults:i0().crossTraceDefaults,supplyLayoutDefaults:DV(),calc:Dye(),crossTraceCalc:i2().crossTraceCalc,colorbar:Qd(),arraysToCalcdata:S4(),plot:p2().plot,style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:RT().hoverPoints,eventData:l1e(),selectPoints:DT(),moduleType:"trace",name:"bar",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var d1e=ye((Sur,h1e)=>{"use strict";h1e.exports=f1e()});var C4=ye((Mur,m1e)=>{"use strict";var S_t=Pg(),G0=pf(),v1e=qm(),M_t=Ih(),p1e=vf().axisHoverFormat,{hovertemplateAttrs:E_t,templatefallbackAttrs:k_t}=Ll(),Gy=Ao().extendFlat,FT=G0.marker,g1e=FT.line;m1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:G0.xperiod,yperiod:G0.yperiod,xperiod0:G0.xperiod0,yperiod0:G0.yperiod0,xperiodalignment:G0.xperiodalignment,yperiodalignment:G0.yperiodalignment,xhoverformat:p1e("x"),yhoverformat:p1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Gy({},FT.symbol,{arrayOk:!1,editType:"plot"}),opacity:Gy({},FT.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Gy({},FT.angle,{arrayOk:!1,editType:"calc"}),size:Gy({},FT.size,{arrayOk:!1,editType:"calc"}),color:Gy({},FT.color,{arrayOk:!1,editType:"style"}),line:{color:Gy({},g1e.color,{arrayOk:!1,dflt:M_t.defaultLine,editType:"style"}),width:Gy({},g1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:S_t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:v1e.offsetgroup,alignmentgroup:v1e.alignmentgroup,selected:{marker:G0.selected.marker,editType:"style"},unselected:{marker:G0.unselected.marker,editType:"style"},text:Gy({},G0.text,{}),hovertext:Gy({},G0.hovertext,{}),hovertemplate:E_t({}),hovertemplatefallback:k_t(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:G0.zorder}});var L4=ye((Eur,y1e)=>{"use strict";y1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var I4=ye((kur,w1e)=>{"use strict";var H0=Pr(),C_t=Oa(),L_t=ka(),P_t=Dg(),I_t=r2(),_1e=H3(),P4=C4();function R_t(e,t,r,n){function i(v,m){return H0.coerce(e,t,P4,v,m)}if(x1e(e,t,i,n),t.visible!==!1){P_t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",L_t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),l=i("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}i("whiskerwidth");var u=i("sizemode"),c;u==="quartiles"&&(c=i("boxmean",o)),i("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var f=!1;if(a){var h=i("notchspan");h&&h.length&&(f=!0)}else H0.validate(e.notchwidth,P4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),b1e(e,t,i,{prefix:"box"}),i("zorder")}}function x1e(e,t,r,n){function i(P){var E=0;return P&&P.length&&(E+=1,H0.isArrayOrTypedArray(P[0])&&P[0].length&&(E+=1)),E}function a(P){return H0.validate(e[P],P4[P])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(H0.minRowLength(u),H0.minRowLength(c),H0.minRowLength(f))}else t._hasPreCompStats=!1;var h=i(o),d=i(s),v=h&&H0.minRowLength(o),m=d&&H0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},k,M;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var T=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!T?k="h":k="v",M=l;break;case"10":k="v",M=Math.min(l,m);break;case"20":k="h",M=Math.min(l,s.length);break;case"01":k="h",M=Math.min(l,v);break;case"02":k="v",M=Math.min(l,o.length);break;case"12":k="v",M=Math.min(l,m,o.length);break;case"21":k="h",M=Math.min(l,s.length,v);break;case"11":M=0;break;case"22":var x=!1,C;for(C=0;C0?(k="v",d>0?M=Math.min(m,v):M=Math.min(v)):d>0?(k="h",M=Math.min(m)):M=0;if(!M){t.visible=!1;return}t._length=M;var S=r("orientation",k);t._hasPreCompStats?S==="v"&&d===0?(r("x0",0),r("dx",1)):S==="h"&&h===0&&(r("y0",0),r("dy",1)):S==="v"&&d===0?r("x0"):S==="h"&&h===0&&r("y0");var g=C_t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function b1e(e,t,r,n){var i=n.prefix,a=H0.coerce2(e,t,P4,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(i+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(r("hovertemplate"),r("hovertemplatefallback")),H0.coerceSelectionMarkerOpacity(t,r)}function D_t(e,t){var r,n;function i(l){return H0.coerce(n._input,n,P4,l)}for(var a=0;a{"use strict";var F_t=Oa(),z_t=Pr(),q_t=L4();function T1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var UV=Eo(),e8=ho(),B_t=zg(),yh=Pr(),n0=fs().BADNUM,Hy=yh._;R1e.exports=function(t,r){var n=t._fullLayout,i=e8.getFromId(t,r.xaxis||"x"),a=e8.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,d,v;r.orientation==="h"?(c=i,f="x",h=a,d="y",v=!!r.yperiodalignment):(c=a,f="y",h=i,d="x",v=!!r.xperiodalignment);var m=N_t(r,d,h,n[s]),b=m[0],p=m[1],k=yh.distinctVals(b,h),M=k.vals,T=k.minDiff/2,L,x,C,S,g,P,E=(r.boxpoints||r.points)==="all"?yh.identity:function(Ht){return Ht.vL.uf};if(r._hasPreCompStats){var z=r[f],q=function(Ht){return c.d2c((r[Ht]||[])[l])},V=1/0,G=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var j=q("lowerfence");L.lf=j!==n0&&j<=L.q1?j:k1e(L,C,S);var N=q("upperfence");L.uf=N!==n0&&N>=L.q3?N:C1e(L,C,S);var H=q("mean");L.mean=H!==n0?H:S?yh.mean(C,S):(L.q1+L.q3)/2;var ie=q("sd");L.sd=H!==n0&&ie>=0?ie:S?yh.stdev(C,S,L.mean):L.q3-L.q1,L.lo=L1e(L),L.uo=P1e(L);var ae=q("notchspan");ae=ae!==n0&&ae>0?ae:I1e(L,S),L.ln=L.med-ae,L.un=L.med+ae;var _e=L.lf,Ee=L.uf;r.boxpoints&&C.length&&(_e=Math.min(_e,C[0]),Ee=Math.max(Ee,C[S-1])),r.notched&&(_e=Math.min(_e,L.ln),Ee=Math.max(Ee,L.un)),L.min=_e,L.max=Ee}else{yh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` -`));var Ce;L.med!==n0?Ce=L.med:L.q1!==n0?L.q3!==n0?Ce=(L.q1+L.q3)/2:Ce=L.q1:L.q3!==n0?Ce=L.q3:Ce=0,L.med=Ce,L.q1=L.q3=Ce,L.lf=L.uf=Ce,L.mean=L.sd=Ce,L.ln=L.un=Ce,L.min=L.max=Ce}V=Math.min(V,L.min),G=Math.max(G,L.max),L.pts2=x.filter(E),o.push(L)}}r._extremes[c._id]=e8.findExtremes(c,[V,G],{padded:!0})}else{var ge=c.makeCalcdata(r,f),re=U_t(M,T),Se=M.length,ke=V_t(Se);for(l=0;l=0&&be0){if(L={},L.pos=L[d]=M[l],x=L.pts=ke[l].sort(M1e),C=L[f]=x.map(E1e),S=C.length,L.min=C[0],L.max=C[S-1],L.mean=yh.mean(C,S),L.sd=yh.stdev(C,S,L.mean)*r.sdmultiple,L.med=yh.interp(C,.5),S%2&&(Pe||ce)){var He,lt;Pe?(He=C.slice(0,S/2),lt=C.slice(S/2+1)):ce&&(He=C.slice(0,S/2+1),lt=C.slice(S/2)),L.q1=yh.interp(He,.5),L.q3=yh.interp(lt,.5)}else L.q1=yh.interp(C,.25),L.q3=yh.interp(C,.75);L.lf=k1e(L,C,S),L.uf=C1e(L,C,S),L.lo=L1e(L),L.uo=P1e(L);var mt=I1e(L,S);L.ln=L.med-mt,L.un=L.med+mt,Be=Math.min(Be,L.ln),Le=Math.max(Le,L.un),L.pts2=x.filter(E),o.push(L)}r.notched&&yh.isTypedArray(ge)&&(ge=Array.from(ge)),r._extremes[c._id]=e8.findExtremes(c,r.notched?ge.concat([Be,Le]):ge,{padded:!0})}return G_t(o,r),o.length>0?(o[0].t={num:n[s],dPos:T,posLetter:d,valLetter:f,labels:{med:Hy(t,"median:"),min:Hy(t,"min:"),q1:Hy(t,"q1:"),q3:Hy(t,"q3:"),max:Hy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?Hy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):Hy(t,"mean:"),lf:Hy(t,"lower fence:"),uf:Hy(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function N_t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),l=B_t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||UV(e.name)&&["linear","log"].indexOf(r.type)!==-1||yh.isDateTime(e.name)&&r.type==="date")?u=e.name:u=n;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),d=0;d{"use strict";var D1e=ho(),H_t=Pr(),j_t=$b().getAxisGroup,F1e=["v","h"];function W_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,k=1-a[e+"gap"],M=1-a[e+"groupgap"];for(l=0;l0;if(C==="positive"?(N=S*(x?1:.5),ae=ie,H=ae=P):C==="negative"?(N=ae=P,H=S*(x?1:.5),_e=ie):(N=H=S,ae=_e=ie),ke){var be=T.pointpos,Be=T.jitter,Le=T.marker.size/2,me=0;be+Be>=0&&(me=ie*(be+Be),me>N?(Se=!0,ge=Le,Ee=me):me>ae&&(ge=Le,Ee=N)),me<=N&&(Ee=N);var Pe=0;be-Be<=0&&(Pe=-ie*(be-Be),Pe>H?(Se=!0,re=Le,Ce=Pe):Pe>_e&&(re=Le,Ce=H)),Pe<=H&&(Ce=H)}else Ee=N,Ce=H;var ce=new Array(c.length);for(u=0;u{"use strict";var zT=qa(),g2=Pr(),X_t=So(),O1e=5,Z_t=.01;function Y_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;g2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=zT.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,d;f.orientation==="h"?(h=o,d=a):(h=a,d=o),B1e(l,{pos:h,val:d},f,c,i),N1e(l,{x:a,y:o},f,c),U1e(l,{pos:h,val:d},f,c)})}function B1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=n.bPos,c=n.wdPos||0,f=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,v=r.notched||!1,m=v?1-2*r.notchwidth:1,b,p;Array.isArray(n.bdPos)?(b=n.bdPos[0],p=n.bdPos[1]):(b=n.bdPos,p=n.bdPos);var k=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?g2.identity:[]);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),k.exit().remove(),k.each(function(M){if(M.empty)return zT.select(this).attr("d","M0,0Z");var T=s.c2l(M.pos+u,!0),L=s.l2p(T-b)+f,x=s.l2p(T+p)+f,C=l?(L+x)/2:s.l2p(T)+f,S=r.whiskerwidth,g=l?L*S+(1-S)*C:s.l2p(T-c)+f,P=l?x*S+(1-S)*C:s.l2p(T+c)+f,E=s.l2p(T-b*m)+f,z=s.l2p(T+p*m)+f,q=r.sizemode==="sd",V=o.c2p(q?M.mean-M.sd:M.q1,!0),G=q?o.c2p(M.mean+M.sd,!0):o.c2p(M.q3,!0),Z=g2.constrain(q?o.c2p(M.mean,!0):o.c2p(M.med,!0),Math.min(V,G)+1,Math.max(V,G)-1),j=M.lf===void 0||r.boxpoints===!1||q,N=o.c2p(j?M.min:M.lf,!0),H=o.c2p(j?M.max:M.uf,!0),ie=o.c2p(M.ln,!0),ae=o.c2p(M.un,!0);a?zT.select(this).attr("d","M"+Z+","+E+"V"+z+"M"+V+","+L+"V"+x+(v?"H"+ie+"L"+Z+","+z+"L"+ae+","+x:"")+"H"+G+"V"+L+(v?"H"+ae+"L"+Z+","+E+"L"+ie+","+L:"")+"Z"+(d?"M"+V+","+C+"H"+N+"M"+G+","+C+"H"+H+(h===0?"":"M"+N+","+g+"V"+P+"M"+H+","+g+"V"+P):"")):zT.select(this).attr("d","M"+E+","+Z+"H"+z+"M"+L+","+V+"H"+x+(v?"V"+ie+"L"+z+","+Z+"L"+x+","+ae:"")+"V"+G+"H"+L+(v?"V"+ae+"L"+E+","+Z+"L"+L+","+ie:"")+"Z"+(d?"M"+C+","+V+"V"+N+"M"+C+","+G+"V"+H+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+H+"H"+P):""))})}function N1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;g2.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var d,v=h.pts2,m=Math.max((h.max-h.min)/10,h.q3-h.q1),b=m*1e-9,p=m*Z_t,k=[],M=0,T;if(r.jitter){if(m===0)for(M=1,k=new Array(v.length),d=0;dh.lo&&(P.so=!0)}return v});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(X_t.translatePoints,i,a)}function U1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,l=n.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(n.bdPos)?(c=n.bdPos[0],f=n.bdPos[1]):(c=n.bdPos,f=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?g2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var v=a.c2l(d.pos+s,!0),m=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(m+b)/2:a.l2p(v)+l,k=i.c2p(d.mean,!0),M=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?zT.select(this).attr("d","M"+k+","+m+"V"+b+(u==="sd"?"m0,0L"+M+","+p+"L"+k+","+m+"L"+T+","+p+"Z":"")):zT.select(this).attr("d","M"+m+","+k+"H"+b+(u==="sd"?"m0,0L"+p+","+M+"L"+m+","+k+"L"+p+","+T+"Z":""))})}V1e.exports={plot:Y_t,plotBoxAndWhiskers:B1e,plotPoints:N1e,plotBoxMean:U1e}});var i8=ye((Rur,G1e)=>{"use strict";var GV=qa(),HV=ka(),jV=So();function K_t(e,t,r){var n=r||GV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=GV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(HV.stroke,d).call(HV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=GV.select(this),d=o[f.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(HV.stroke,o.line.color);var c=a.selectAll("path.point");jV.pointStyle(c,o,e)}})}function J_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?jV.selectedPointStyle(i,n):jV.pointStyle(i,n,e)}G1e.exports={style:K_t,styleOnSelect:J_t}});var XV=ye((Dur,X1e)=>{"use strict";var $_t=ho(),WV=Pr(),R_=ef(),H1e=ka(),Q_t=WV.fillText;function ext(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(j1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=W1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function j1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,l=i[0].t,u=s.type==="violin",c,f,h,d,v,m,b,p,k,M,T,L=l.bdPos,x,C,S=l.wHover,g=function(Le){return h.c2l(Le.pos)+l.bPos-h.c2l(m)};u&&s.side!=="both"?(s.side==="positive"&&(k=function(Le){var me=g(Le);return R_.inbox(me,me+S,M)},x=L,C=0),s.side==="negative"&&(k=function(Le){var me=g(Le);return R_.inbox(me-S,me,M)},x=0,C=L)):(k=function(Le){var me=g(Le);return R_.inbox(me-S,me+S,M)},x=C=L);var P;u?P=function(Le){return R_.inbox(Le.span[0]-v,Le.span[1]-v,M)}:P=function(Le){return R_.inbox(Le.min-v,Le.max-v,M)},s.orientation==="h"?(v=t,m=r,b=P,p=k,c="y",h=o,f="x",d=a):(v=r,m=t,b=k,p=P,c="x",h=a,f="y",d=o);var E=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));M=e.maxHoverDistance-E,T=e.maxSpikeDistance-E;function z(Le){return(b(Le)+p(Le))/2}var q=R_.getDistanceFunction(n,b,p,z);if(R_.getClosest(i,q,e),e.index===!1)return[];var V=i[e.index],G=s.line.color,Z=(s.marker||{}).color;H1e.opacity(G)&&s.line.width?e.color=G:H1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(V.pos+l.bPos-C,!0),e[c+"1"]=h.c2p(V.pos+l.bPos+x,!0),e[c+"LabelVal"]=V.orig_p!==void 0?V.orig_p:V.pos;var j=c+"Spike";e.spikeDistance=z(V)*T/M,e[j]=h.c2p(V.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,H=s.boxpoints||s.points,ie=H&&N?["max","uf","q3","med","mean","q1","lf","min"]:H&&!N?["max","uf","q3","med","q1","lf","min"]:!H&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]{"use strict";Z1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var ZV=ye((zur,K1e)=>{"use strict";K1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";J1e.exports={attributes:C4(),layoutAttributes:L4(),supplyDefaults:I4().supplyDefaults,crossTraceDefaults:I4().crossTraceDefaults,supplyLayoutDefaults:QI().supplyLayoutDefaults,calc:VV(),crossTraceCalc:t8().crossTraceCalc,plot:r8().plot,style:i8().style,styleOnSelect:i8().styleOnSelect,hoverPoints:XV().hoverPoints,eventData:Y1e(),selectPoints:ZV(),moduleType:"trace",name:"box",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var e_e=ye((Our,Q1e)=>{"use strict";Q1e.exports=$1e()});var qT=ye((Bur,r_e)=>{"use strict";var txt=Tu(),{extendFlat:Pp}=Ao(),rxt=Gl(),{axisHoverFormat:YV}=vf(),ixt=ec(),{hovertemplateAttrs:nxt,templatefallbackAttrs:t_e,texttemplateAttrs:axt}=Ll(),a0=pf();r_e.exports=Pp({z:{valType:"data_array",editType:"calc"},x:Pp({},a0.x,{impliedEdits:{xtype:"array"}}),x0:Pp({},a0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Pp({},a0.dx,{impliedEdits:{xtype:"scaled"}}),y:Pp({},a0.y,{impliedEdits:{ytype:"array"}}),y0:Pp({},a0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Pp({},a0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Pp({},a0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Pp({},a0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Pp({},a0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Pp({},a0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Pp({},a0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Pp({},a0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:YV("x"),yhoverformat:YV("y"),zhoverformat:YV("z",1),hovertemplate:nxt(),hovertemplatefallback:t_e(),texttemplate:axt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:t_e({editType:"plot"}),textfont:ixt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pp({},rxt.showlegend,{dflt:!1}),zorder:a0.zorder},txt("",{cLetter:"z",autoColorDflt:!1}))});var a8=ye((Nur,n_e)=>{"use strict";var oxt=Eo(),n8=Pr(),sxt=Oa();n_e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(n8.isArray1D(s)){l=n(a),u=n(o);var c=n8.minRowLength(l),f=n8.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=i_e(a,n),u=i_e(o,n),!lxt(s))return 0;n("transpose"),r._length=null}var h=sxt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function i_e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function lxt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var a_e=Pr();o_e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var n=a_e.extendFlat({},r.font,{color:"auto",size:"auto"});a_e.coerceFont(t,"textfont",n)}});var KV=ye((Vur,s_e)=>{"use strict";s_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var c_e=ye((Gur,u_e)=>{"use strict";var l_e=Pr(),uxt=a8(),cxt=R4(),fxt=Dg(),hxt=KV(),dxt=td(),vxt=qT();u_e.exports=function(t,r,n,i){function a(s,l){return l_e.coerce(t,r,vxt,s,l)}var o=uxt(t,r,a,i);if(!o){r.visible=!1;return}fxt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),cxt(a,i),hxt(t,r,a,i),a("hoverongaps"),a("connectgaps",l_e.isArray1D(r.z)&&r.zsmooth!==!1),dxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var JV=ye((Hur,f_e)=>{"use strict";var OT=Eo();f_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return OT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return OT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(OT(i))if(i=Number(i),OT(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(OT(i))if(i=Number(i),OT(r[e])){if(r[e]{"use strict";h_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";d_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var BT=fs(),m2=BT.ONEAVGYEAR,v_e=BT.ONEAVGMONTH,s8=BT.ONEDAY,p_e=BT.ONEHOUR,g_e=BT.ONEMIN,m_e=BT.ONESEC,y_e=ho().tickIncrement;b_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,l=t-s,u=n[0],c=n[1],f=Math.min(o8(u+s,u+l,i,a),o8(c+s,c+l,i,a)),h=Math.min(o8(u+o,u+s,i,a),o8(c+o,c+s,i,a)),d,v;if(f>h&&hs8){var m=d===m2?1:6,b=d===m2?"M12":"M1";return function(p,k){var M=i.c2d(p,m2,a),T=M.indexOf("-",m);T>0&&(M=M.slice(0,T));var L=i.d2c(M,0,a);if(Lm_e?e>s8?e>m2*1.1?m2:e>v_e*1.1?v_e:s8:e>p_e?p_e:e>g_e?g_e:m_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function pxt(e,t,r,n,i,a){if(n&&e>s8){var o=x_e(t,i,a),s=x_e(r,i,a),l=e===m2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function x_e(e,t,r){var n=t.c2d(e,m2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var iG=ye((Zur,M_e)=>{"use strict";var tG=Eo(),Hv=Pr(),w_e=Oa(),j0=ho(),{hasColorscale:T_e}=pv(),A_e=gv(),gxt=S4(),S_e=JV(),mxt=$V(),yxt=QV(),_xt=eG();function xxt(e,t){var r=[],n=[],i=t.orientation==="h",a=j0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=rG(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",m=[],b=v?m:h,p=[],k=[],M=[],T=0,L=t.histnorm,x=t.histfunc,C=L.indexOf("density")!==-1,S,g,P;u.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var E=x==="max"||x==="min",z=E?null:0,q=S_e.count,V=mxt[L],G=!1,Z=function(me){return a.r2c(me,0,l)},j;for(Hv.isArrayOrTypedArray(t[s])&&x!=="count"&&(j=t[s],G=x==="avg",q=S_e[x]),c=Z(h.start),g=Z(h.end)+(c-j0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=be;c--)if(n[c]){Be=c;break}for(c=be;c<=Be;c++)if(tG(r[c])&&tG(n[c])){var Le={p:r[c],s:n[c],b:0};u.enabled||(Le.pts=M[c],ae?Le.ph0=Le.ph1=M[c].length?d[M[c][0]]:r[c]:(t._computePh=!0,Le.ph0=re(m[c]),Le.ph1=re(m[c+1],!0))),ke.push(Le)}return ke.length===1&&(ke[0].width1=j0.tickIncrement(ke[0].p,h.size,!1,l)-ke[0].p),T_e(t,"marker")&&A_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),T_e(t,"marker.line")&&A_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),gxt(ke,t),Hv.isArrayOrTypedArray(t.selectedpoints)&&Hv.tagSelected(ke,t,Ce),ke}function rG(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,d,v,m,b,p=function(ge){return r.r2c(ge,0,d)},k=function(ge){return r.c2r(ge,0,d)},M=r.type==="date"?function(ge){return ge||ge===0?Hv.cleanDate(ge,null,d):null}:function(ge){return tG(ge)?Number(ge):null};function T(ge,re,Se){re[ge+"Found"]?(re[ge]=M(re[ge]),re[ge]===null&&(re[ge]=Se[ge])):(m[ge]=re[ge]=Se[ge],Hv.nestedProperty(f[0],a+"."+ge).set(Se[ge]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{f=l.traces;var L=[],x=!0,C=!1,S=!1;for(c=0;cr.r2l(j)&&(H=j0.tickIncrement(H,l.size,!0,d)),q.start=r.l2r(H),Z||Hv.nestedProperty(t,a+".start").set(q.start)}var ie=l.end,ae=r.r2l(z.end),_e=ae!==void 0;if((l.endFound||_e)&&ae!==r.r2l(ie)){var Ee=_e?ae:Hv.aggNums(Math.max,null,v);q.end=r.l2r(Ee),_e||Hv.nestedProperty(t,a+".start").set(q.end)}var Ce="autobin"+n;return t._input[Ce]===!1&&(t._input[a]=Hv.extendFlat({},t[a]||{}),delete t._input[Ce],delete t[Ce]),[q,v]}function bxt(e,t,r,n,i){var a=e._fullLayout,o=wxt(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}M_e.exports={calc:xxt,calcAllAutoBins:rG}});var D_e=ye((Yur,R_e)=>{"use strict";var E_e=Pr(),NT=ho(),k_e=JV(),Axt=$V(),Sxt=QV(),Mxt=eG(),C_e=iG().calcAllAutoBins;R_e.exports=function(t,r){var n=NT.getFromId(t,r.xaxis),i=NT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Et){return n.r2c(Et,0,a)},l=function(Et){return i.r2c(Et,0,o)},u=function(Et){return n.c2r(Et,0,a)},c=function(Et){return i.c2r(Et,0,o)},f,h,d,v,m=C_e(t,r,n,"x"),b=m[0],p=m[1],k=C_e(t,r,i,"y"),M=k[0],T=k[1],L=r._length;p.length>L&&p.splice(L,p.length-L),T.length>L&&T.splice(L,T.length-L);var x=[],C=[],S=[],g=typeof b.size=="string",P=typeof M.size=="string",E=[],z=[],q=g?E:b,V=P?z:M,G=0,Z=[],j=[],N=r.histnorm,H=r.histfunc,ie=N.indexOf("density")!==-1,ae=H==="max"||H==="min",_e=ae?null:0,Ee=k_e.count,Ce=Axt[N],ge=!1,re=[],Se=[],ke="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";ke&&H!=="count"&&(ge=H==="avg",Ee=k_e[H]);var be=b.size,Be=s(b.start),Le=s(b.end)+(Be-NT.tickIncrement(Be,be,!1,a))/1e6;for(f=Be;f=0&&d=0&&v{"use strict";var Bm=Pr(),F_e=fs().BADNUM,z_e=zg();q_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=z_e(t,r,i,l).vals,u=z_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&Bm.isArray1D(c),h=t.hovertext,d=h!==void 0&&Bm.isArray1D(h),v,m,b=Bm.distinctVals(l),p=b.vals,k=Bm.distinctVals(u),M=k.vals,T=[],L,x,C=M.length,S=p.length;for(v=0;v{"use strict";var Ext=Eo(),kxt=Pr(),u8=fs().BADNUM;O_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(Ext(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var Cxt=Pr(),B_e=.01,Lxt=[[-1,0],[1,0],[0,-1],[0,1]];function Pxt(e){return .5-.25*Math.min(1,e*.5)}U_e.exports=function(t,r){var n=1,i;for(N_e(t,r),i=0;iB_e;i++)n=N_e(t,r,Pxt(n));return n>B_e&&Cxt.log("interp2d didn't converge quickly",n),t};function N_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,m,b;for(s=0;sm&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-m))))}return n}});var h8=ye((Qur,V_e)=>{"use strict";var Ixt=Pr().maxRowLength;V_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=Ixt(t),u,c,f,h,d,v,m,b;for(c=0;c=0;d--)h=i[d],c=h[0],f=h[1],v=((n[[c-1,f]]||s)[2]+(n[[c+1,f]]||s)[2]+(n[[c,f-1]]||s)[2]+(n[[c,f+1]]||s)[2])/20,v&&(m[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in m)n[h]=m[h],r.push(m[h])}return r.sort(function(p,k){return k[2]-p[2]})}});var nG=ye((ecr,j_e)=>{"use strict";var G_e=Oa(),H_e=Pr().isArrayOrTypedArray;j_e.exports=function(t,r,n,i,a,o){var s=[],l=G_e.traceIs(t,"contour"),u=G_e.traceIs(t,"histogram"),c,f,h,d=H_e(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var v=r.length;if(v<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var W_e=Oa(),aG=Pr(),d8=ho(),X_e=zg(),Rxt=D_e(),Dxt=gv(),Fxt=l8(),zxt=c8(),qxt=f8(),Oxt=h8(),v8=nG(),oG=fs().BADNUM;Y_e.exports=function(t,r){var n=d8.getFromId(t,r.xaxis||"x"),i=d8.getFromId(t,r.yaxis||"y"),a=W_e.traceIs(r,"contour"),o=W_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,m,b,p,k;if(n._minDtick=0,i._minDtick=0,o)k=Rxt(t,r),f=k.orig_x,l=k.x,u=k.x0,c=k.dx,m=k.orig_y,h=k.y,d=k.y0,v=k.dy,b=k.z;else{var M=r.z;aG.isArray1D(M)?(Fxt(r,n,i,"x","y",["z"]),l=r._x,h=r._y,M=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],m=r.y?i.makeCalcdata(r,"y"):[],l=X_e(r,n,"x",f).vals,h=X_e(r,i,"y",m).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=zxt(M,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Bxt(l,h,b),o||(l=Z_e(l),h=Z_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Oxt(b),qxt(b,r._emptypoints));function T(q){s=r._input.zsmooth=r.zsmooth=!1,aG.warn('cannot use zsmooth: "fast": '+q)}function L(q){if(q.length>1){var V=(q[q.length-1]-q[0])/(q.length-1),G=Math.abs(V/100);for(p=0;pG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&T("log axis found"):L(l)?L(h)?r._islinear=!0:s==="fast"&&T("y scale is not linear"):s==="fast"&&T("x scale is not linear");var x=aG.maxRowLength(b),C=r.xtype==="scaled"?"":l,S=v8(r,C,u,c,x,n),g=r.ytype==="scaled"?"":h,P=v8(r,g,d,v,b.length,i);r._extremes[n._id]=d8.findExtremes(n,S),r._extremes[i._id]=d8.findExtremes(i,P);var E={x:S,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(E.orig_x=f),r.yperiodalignment&&m&&(E.orig_y=m),C&&C.length===S.length-1&&(E.xCenter=C),g&&g.length===P.length-1&&(E.yCenter=g),o&&(E.xRanges=k.xRanges,E.yRanges=k.yRanges,E.pts=k.pts),a||Dxt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var z={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};E.xfill=v8(z,C,u,c,x,n),E.yfill=v8(z,g,d,v,b.length,i)}return[E]};function Z_e(e){for(var t=[],r=e.length,n=0;n{"use strict";g8.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];g8.STYLE=g8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var lG=ye((icr,J_e)=>{"use strict";var K_e=m8(),Nxt=So(),sG=Pr(),UT=null;function Uxt(){if(UT!==null)return UT;UT=!1;var e=sG.isSafari()||sG.isMacWKWebView()||sG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(K_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")UT=t.some(function(o){return r.apply(null,o)});else{var n=Nxt.tester.append("image").attr("style",K_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;UT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return UT}J_e.exports=Uxt});var y8=ye((ncr,oxe)=>{"use strict";var $_e=qa(),Vxt=fd(),Gxt=Oa(),Hxt=So(),jxt=ho(),W0=Pr(),Q_e=Zl(),Wxt=uI(),Xxt=ka(),Zxt=tc().extractOpts,Yxt=tc().makeColorScaleFuncFromTrace,Kxt=Wp(),Jxt=Dh(),uG=Jxt.LINE_SPACING,$xt=lG(),Qxt=m8().STYLE,nxe="heatmap-label";function axe(e){return e.selectAll("g."+nxe)}function exe(e){axe(e).remove()}oxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;W0.makeTraceGroups(n,r,"hm").each(function(o){var s=$_e.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,d=l.x,v=l.y,m=l.xCenter,b=l.yCenter,p=Gxt.traceIs(u,"contour"),k=p?"best":u.zsmooth,M=h.length,T=W0.maxRowLength(h),L=!1,x=!1,C,S,g,P,E,z,q,V;for(z=0;C===void 0&&z0;)S=i.c2p(d[z]),z--;for(S0;)E=a.c2p(v[z]),z--;E=i._length||S<=0||P>=a._length||E<=0;if(H){var ie=s.selectAll("image").data([]);ie.exit().remove(),exe(s);return}var ae,_e;G==="fast"?(ae=T,_e=M):(ae=j,_e=N);var Ee=document.createElement("canvas");Ee.width=ae,Ee.height=_e;var Ce=Ee.getContext("2d",{willReadFrequently:!0}),ge=Yxt(u,{noNumericCheck:!0,returnArray:!0}),re,Se;G==="fast"?(re=L?function(fn){return T-1-fn}:W0.identity,Se=x?function(fn){return M-1-fn}:W0.identity):(re=function(fn){return W0.constrain(Math.round(i.c2p(d[fn])-C),0,j)},Se=function(fn){return W0.constrain(Math.round(a.c2p(v[fn])-P),0,N)});var ke=Se(0),be=[ke,ke],Be=L?0:1,Le=x?0:1,me=0,Pe=0,ce=0,He=0,lt,mt,Ht,at,ct;function ar(fn,yn){if(fn!==void 0){var Mn=ge(fn);return Mn[0]=Math.round(Mn[0]),Mn[1]=Math.round(Mn[1]),Mn[2]=Math.round(Mn[2]),me+=yn,Pe+=Mn[0]*yn,ce+=Mn[1]*yn,He+=Mn[2]*yn,Mn}return[0,0,0,0]}function Vt(fn,yn,Mn,Ba){var ua=fn[Mn.bin0];if(ua===void 0)return ar(void 0,1);var ma=fn[Mn.bin1],Wa=yn[Mn.bin0],Fa=yn[Mn.bin1],Xo=ma-ua||0,da=Wa-ua||0,jn;return ma===void 0?Fa===void 0?jn=0:Wa===void 0?jn=2*(Fa-ua):jn=(2*Fa-Wa-ua)*2/3:Fa===void 0?Wa===void 0?jn=0:jn=(2*ua-ma-Wa)*2/3:Wa===void 0?jn=(2*Fa-ma-ua)*2/3:jn=Fa+ua-ma-Wa,ar(ua+Mn.frac*Xo+Ba.frac*(da+Mn.frac*jn))}if(G!=="default"){var rr=0,tt;try{tt=new Uint8Array(ae*_e*4)}catch(fn){tt=new Array(ae*_e*4)}if(G==="smooth"){var je=m||d,Ue=b||v,Ae=new Array(je.length),rt=new Array(Ue.length),St=new Array(j),Tt=m?rxe:txe,dt=b?rxe:txe,Et,pt,jt;for(z=0;zYr||Yr>a._length))for(q=Qt;qPi||Pi>i._length)){var ai=Wxt({x:_i,y:Ir},u,e._fullLayout);ai.x=_i,ai.y=Ir;var mi=l.z[z][q];mi===void 0?(ai.z="",ai.zLabel=""):(ai.z=mi,ai.zLabel=jxt.tickText(We,mi,"hover").text);var un=l.text&&l.text[z]&&l.text[z][q];(un===void 0||un===!1)&&(un=""),ai.text=un;var Fn=W0.texttemplateString({data:[ai,u._meta],fallback:u.texttemplatefallback,labels:ai,locale:e._fullLayout._d3locale,template:Ge});if(Fn){var An=Fn.split("
"),Hn=An.length,Qn=0;for(V=0;V{"use strict";sxe.exports={min:"zmin",max:"zmax"}});var _8=ye((ocr,lxe)=>{"use strict";var ebt=qa();lxe.exports=function(t){ebt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var b8=ye((scr,cxe)=>{"use strict";var uxe=ef(),D4=Pr(),x8=D4.isArrayOrTypedArray,tbt=ho(),rbt=tc().extractOpts;cxe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,d=s.z,v=s.xCenter,m=s.yCenter,b=s.zmask,p=l.zhoverformat,k=f,M=h,T,L,x,C;if(t.index!==!1){try{x=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(ie){D4.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||C<0||C>d.length)return}else{if(uxe.inbox(r-f[0],r-f[f.length-1],0)>0||uxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var S;for(k=[2*f[0]-f[1]],S=1;S{"use strict";fxe.exports={attributes:qT(),supplyDefaults:c_e(),calc:p8(),plot:y8(),colorbar:D_(),style:_8(),hoverPoints:b8(),moduleType:"trace",name:"heatmap",basePlotModule:mh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var vxe=ye((ucr,dxe)=>{"use strict";dxe.exports=hxe()});var cG=ye((ccr,pxe)=>{"use strict";pxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var mxe=ye((fcr,gxe)=>{"use strict";gxe.exports={eventDataKeys:["binNumber"]}});var w8=ye((hcr,bxe)=>{"use strict";var Ip=qm(),yxe=vf().axisHoverFormat,{hovertemplateAttrs:ibt,texttemplateAttrs:nbt,templatefallbackAttrs:_xe}=Ll(),fG=ec(),xxe=cG(),abt=mxe(),hG=Ao().extendFlat;bxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:yxe("x"),yhoverformat:yxe("y"),text:hG({},Ip.text,{}),hovertext:hG({},Ip.hovertext,{}),orientation:Ip.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:xxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:xxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:ibt({},{keys:abt.eventDataKeys}),hovertemplatefallback:_xe(),texttemplate:nbt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:_xe({editType:"plot"}),textposition:hG({},Ip.textposition,{arrayOk:!1}),textfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Ip.insidetextanchor,textangle:Ip.textangle,cliponaxis:Ip.cliponaxis,constraintext:Ip.constraintext,marker:Ip.marker,offsetgroup:Ip.offsetgroup,alignmentgroup:Ip.alignmentgroup,selected:Ip.selected,unselected:Ip.unselected,zorder:Ip.zorder}});var Sxe=ye((dcr,Axe)=>{"use strict";var wxe=Oa(),F4=Pr(),Txe=ka(),obt=i0().handleText,sbt=XI(),lbt=w8();Axe.exports=function(t,r,n,i){function a(k,M){return F4.coerce(t,r,lbt,k,M)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");obt(t,r,i,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",d=o&&s?Math.min(F4.minRowLength(o)&&F4.minRowLength(s)):F4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=wxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var m=r[h];m&&a("histfunc"),a("histnorm"),a("autobin"+f),sbt(t,r,a,n,i),F4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=wxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||Txe.defaultLine,{axis:"y"}),p(t,r,b||Txe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var A8=ye((vcr,kxe)=>{"use strict";var z4=Pr(),ubt=df(),T8=Oa().traceIs,cbt=r2(),fbt=i0().validateCornerradius,Mxe=z4.nestedProperty,dG=$b().getAxisGroup,Exe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],hbt=["x","y"];kxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(G,Z){return z4.coerce(s._input,s,s._module.attributes,G,Z)}function m(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var j=ubt.getFromTrace({_fullLayout:r},G,Z);return j.type}function p(G,Z,j){var N=G.uid+"__"+j;Z||(Z=N);var H=b(G,j),ie=G[j+"calendar"]||"",ae=n[Z],_e=!0;ae&&(H===ae.axType&&ie===ae.calendar?(_e=!1,ae.traces.push(G),ae.dirs.push(j)):(Z=N,H!==ae.axType&&z4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+H,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),ie!==ae.calendar&&z4.warn(["Attempted to group the bins of trace",G.index,"set with a",ie,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),_e&&(n[Z]={traces:[G],dirs:[j],axType:H,calendar:G[j+"calendar"]||""}),G["_"+j+"bingroup"]=Z}for(f=0;f{"use strict";var dbt=RT().hoverPoints,vbt=ho().hoverLabelText;Cxe.exports=function(t,r,n,i,a){var o=dbt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=vbt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var vG=ye((gcr,Pxe)=>{"use strict";Pxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var l=0;l{"use strict";Ixe.exports={attributes:w8(),layoutAttributes:WI(),supplyDefaults:Sxe(),crossTraceDefaults:A8(),supplyLayoutDefaults:DV(),calc:iG().calc,crossTraceCalc:i2().crossTraceCalc,plot:p2().plot,layerName:"barlayer",style:V0().style,styleOnSelect:V0().styleOnSelect,colorbar:Qd(),hoverPoints:Lxe(),selectPoints:DT(),eventData:vG(),moduleType:"trace",name:"histogram",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Fxe=ye((ycr,Dxe)=>{"use strict";Dxe.exports=Rxe()});var M8=ye((_cr,Oxe)=>{"use strict";var jg=w8(),zxe=cG(),S8=qT(),pbt=Gl(),pG=vf().axisHoverFormat,{hovertemplateAttrs:gbt,texttemplateAttrs:mbt,templatefallbackAttrs:qxe}=Ll(),ybt=Tu(),q4=Ao().extendFlat;Oxe.exports=q4({x:jg.x,y:jg.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:jg.histnorm,histfunc:jg.histfunc,nbinsx:jg.nbinsx,xbins:zxe("x"),nbinsy:jg.nbinsy,ybins:zxe("y"),autobinx:jg.autobinx,autobiny:jg.autobiny,bingroup:q4({},jg.bingroup,{}),xbingroup:q4({},jg.bingroup,{}),ybingroup:q4({},jg.bingroup,{}),xgap:S8.xgap,ygap:S8.ygap,zsmooth:S8.zsmooth,xhoverformat:pG("x"),yhoverformat:pG("y"),zhoverformat:pG("z",1),hovertemplate:gbt({},{keys:["z"]}),hovertemplatefallback:qxe(),texttemplate:mbt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:qxe({editType:"plot"}),textfont:S8.textfont,showlegend:q4({},pbt.showlegend,{dflt:!1})},ybt("",{cLetter:"z",autoColorDflt:!1}))});var gG=ye((xcr,Nxe)=>{"use strict";var _bt=Oa(),Bxe=Pr();Nxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Bxe.minRowLength(a),l=Bxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=_bt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],i);var c=n("z")||n("marker.color");c&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Vxe=ye((bcr,Uxe)=>{"use strict";var xbt=Pr(),bbt=gG(),wbt=KV(),Tbt=td(),Abt=R4(),Sbt=M8();Uxe.exports=function(t,r,n,i){function a(o,s){return xbt.coerce(t,r,Sbt,o,s)}bbt(t,r,a,i),r.visible!==!1&&(wbt(t,r,a,i),Tbt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),Abt(a,i),a("xhoverformat"),a("yhoverformat"))}});var jxe=ye((wcr,Hxe)=>{"use strict";var Mbt=b8(),Gxe=ho().hoverLabelText;Hxe.exports=function(t,r,n,i,a){var o=Mbt(t,r,n,i,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],d=c.yRanges[l];return t.xLabel=Gxe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Gxe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var Xxe=ye((Tcr,Wxe)=>{"use strict";Wxe.exports={attributes:M8(),supplyDefaults:Vxe(),crossTraceDefaults:A8(),calc:p8(),plot:y8(),layerName:"heatmaplayer",colorbar:D_(),style:_8(),hoverPoints:jxe(),eventData:vG(),moduleType:"trace",name:"histogram2d",basePlotModule:mh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Yxe=ye((Acr,Zxe)=>{"use strict";Zxe.exports=Xxe()});var E8=ye((Scr,Kxe)=>{"use strict";Kxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var O4=ye((Mcr,ebe)=>{"use strict";var _h=qT(),k8=pf(),$xe=vf(),mG=$xe.axisHoverFormat,Ebt=$xe.descriptionOnlyNumbers,kbt=Tu(),Cbt=Pd().dash,Lbt=ec(),VT=Ao().extendFlat,Qxe=E8(),Pbt=Qxe.COMPARISON_OPS2,Ibt=Qxe.INTERVAL_OPS,Jxe=k8.line;ebe.exports=VT({z:_h.z,x:_h.x,x0:_h.x0,dx:_h.dx,y:_h.y,y0:_h.y0,dy:_h.dy,xperiod:_h.xperiod,yperiod:_h.yperiod,xperiod0:k8.xperiod0,yperiod0:k8.yperiod0,xperiodalignment:_h.xperiodalignment,yperiodalignment:_h.yperiodalignment,text:_h.text,hovertext:_h.hovertext,transpose:_h.transpose,xtype:_h.xtype,ytype:_h.ytype,xhoverformat:mG("x"),yhoverformat:mG("y"),zhoverformat:mG("z",1),hovertemplate:_h.hovertemplate,hovertemplatefallback:_h.hovertemplatefallback,texttemplate:VT({},_h.texttemplate,{}),texttemplatefallback:_h.texttemplatefallback,textfont:VT({},_h.textfont,{}),hoverongaps:_h.hoverongaps,connectgaps:VT({},_h.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Lbt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:Ebt("contour label")},operation:{valType:"enumerated",values:[].concat(Pbt).concat(Ibt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:VT({},Jxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Cbt,smoothing:VT({},Jxe.smoothing,{}),editType:"plot"},zorder:k8.zorder},kbt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var _G=ye((Ecr,rbe)=>{"use strict";var wv=M8(),Nm=O4(),Rbt=Tu(),yG=vf().axisHoverFormat,tbe=Ao().extendFlat;rbe.exports=tbe({x:wv.x,y:wv.y,z:wv.z,marker:wv.marker,histnorm:wv.histnorm,histfunc:wv.histfunc,nbinsx:wv.nbinsx,xbins:wv.xbins,nbinsy:wv.nbinsy,ybins:wv.ybins,autobinx:wv.autobinx,autobiny:wv.autobiny,bingroup:wv.bingroup,xbingroup:wv.xbingroup,ybingroup:wv.ybingroup,autocontour:Nm.autocontour,ncontours:Nm.ncontours,contours:Nm.contours,line:{color:Nm.line.color,width:tbe({},Nm.line.width,{dflt:.5}),dash:Nm.line.dash,smoothing:Nm.line.smoothing,editType:"plot"},xhoverformat:yG("x"),yhoverformat:yG("y"),zhoverformat:yG("z",1),hovertemplate:wv.hovertemplate,hovertemplatefallback:wv.hovertemplatefallback,texttemplate:Nm.texttemplate,texttemplatefallback:Nm.texttemplatefallback,textfont:Nm.textfont},Rbt("",{cLetter:"z",editTypeOverride:"calc"}))});var C8=ye((kcr,ibe)=>{"use strict";ibe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,l=n("contours.size"),u;s?u=r.autocontour=!0:u=n("autocontour",!1),(u||!l)&&n("ncontours")}});var xG=ye((Ccr,nbe)=>{"use strict";var Dbt=Pr();nbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Dbt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var L8=ye((Lcr,abe)=>{"use strict";var Fbt=td(),zbt=xG();abe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,l="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(l=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Fbt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),zbt(n,i,l,a)}});var ube=ye((Pcr,lbe)=>{"use strict";var obe=Pr(),qbt=gG(),Obt=C8(),Bbt=L8(),Nbt=R4(),sbe=_G();lbe.exports=function(t,r,n,i){function a(s,l){return obe.coerce(t,r,sbe,s,l)}function o(s){return obe.coerce2(t,r,sbe,s)}qbt(t,r,a,i),r.visible!==!1&&(Obt(t,r,a,o),Bbt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&Nbt(a,i))}});var TG=ye((Icr,fbe)=>{"use strict";var wG=ho(),bG=Pr();fbe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=bG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=bG.aggNums(Math.max,null,r));var o=cbe(i,a,t.ncontours);n.size=o.dtick,n.start=wG.tickFirst(o),o.range.reverse(),n.end=wG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),bG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,l=n.end,u=t._input.contours;if(s>l&&(n.start=u.start=l,l=n.end=u.end=s,s=n.start),!(n.size>0)){var c;s===l?c=1:c=cbe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function cbe(e,t,r){var n={type:"linear",range:[e,t]};return wG.autoTicks(n,(t-e)/(r||15)),n}});var B4=ye((Rcr,hbe)=>{"use strict";hbe.exports=function(t){return t.end+t.size/1e6}});var AG=ye((Dcr,vbe)=>{"use strict";var dbe=tc(),Ubt=p8(),Vbt=TG(),Gbt=B4();vbe.exports=function(t,r){var n=Ubt(t,r),i=n[0].z;Vbt(r,i);var a=r.contours,o=dbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=Gbt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,d=h+f*c;s=[h,d]}else s=i;return dbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var N4=ye((Fcr,pbe)=>{"use strict";pbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var SG=ye((zcr,gbe)=>{"use strict";var P8=N4();gbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,l,u,c,f,h,d,v;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var MG=ye((qcr,_be)=>{"use strict";var I8=Pr(),GT=N4();_be.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=GT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=GT.SADDLEREMAINDER[o]):delete e.crossings[a],s=GT.NEWDELTA[o],!s){I8.log("Found bad marching index:",o,t,e.level);break}l.push(ybe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),U4(l[l.length-1],l[l.length-2],n,i)&&l.pop();var v=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),m=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(m||r&&v)break;o=e.crossings[a]}d===1e4&&I8.log("Infinite loop in contour?");var b=U4(l[0],l[l.length-1],n,i),p=0,k=.2*e.smoothing,M=[],T=0,L,x,C,S,g,P,E,z,q,V,G;for(d=1;d=T;d--)if(L=M[d],L=T&&L+M[x]z&&q--,e.edgepaths[q]=G.concat(l,V));break}H||(e.edgepaths[z]=l.concat(V))}for(z=0;z20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:GT.BOTTOMSTART.indexOf(e)!==-1?i=1:GT.LEFTSTART.indexOf(e)!==-1?n=1:GT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function ybe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[i][n+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[n]):0)+(l!==0?l*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[i],!0),n+l,i]}else{var c=(e.level-a)/(e.z[i+1][n]-a),f=(c!==1?(1-c)*s.c2l(e.y[i]):0)+(c!==0?c*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(f),!0),n,i+c]}}});var Tbe=ye((Ocr,wbe)=>{"use strict";var EG=E8(),Xbt=Eo();wbe.exports={"[]":xbe("[]"),"][":xbe("]["),">":kG(">"),"<":kG("<"),"=":kG("=")};function bbe(e,t){var r=Array.isArray(t),n;function i(a){return Xbt(a)?+a:null}return EG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):EG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:EG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function xbe(e){return function(t){t=bbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function kG(e){return function(t){return t=bbe(e,t),{start:t,end:1/0,size:1/0}}}});var CG=ye((Bcr,Sbe)=>{"use strict";var Abe=Pr(),Zbt=Tbe(),Ybt=B4();Sbe.exports=function(t,r,n){for(var i=t.type==="constraint"?Zbt[t._operation](t.value):t,a=i.size,o=[],s=Ybt(i),l=n.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},c=i.start;c1e3){Abe.warn("Too many contours, clipping at 1000",t);break}return o}});var LG=ye((Ncr,Ebe)=>{"use strict";var HT=Pr();Ebe.exports=function(e,t){var r,n,i,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&HT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";kbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(i=0;i":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var R8=ye(jv=>{"use strict";var G4=qa(),zd=Pr(),jy=So(),Kbt=tc(),Pbe=Zl(),Cbe=ho(),Lbe=xm(),Jbt=y8(),Ibe=SG(),Rbe=MG(),$bt=CG(),Qbt=LG(),Dbe=PG(),V4=N4(),Um=V4.LABELOPTIMIZER;jv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;zd.makeTraceGroups(i,n,"contour").each(function(s){var l=G4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=$bt(d,r,u),m=zd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),Jbt(t,r,b,m),Ibe(v),Rbe(v);var p=a.c2p(f[0],!0),k=a.c2p(f[f.length-1],!0),M=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[p,T],[k,T],[k,M],[p,M]],x=v;d.type==="constraint"&&(x=Qbt(v,d._operation)),e2t(l,L,d),t2t(l,x,L,d),r2t(l,v,t,u,d),n2t(l,r,t,u,L)})};function e2t(e,t,r){var n=zd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function t2t(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Dbe(t,n);var o=zd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+Fbe(l,r);u?G4.select(this).attr("d",u).style("stroke","none"):G4.select(this).remove()})}function Fbe(e,t){var r="",n=0,i=e.edgepaths.map(function(p,k){return k}),a=!0,o,s,l,u,c,f;function h(p){return Math.abs(p[1]-t[0][1])<.01}function d(p){return Math.abs(p[1]-t[2][1])<.01}function v(p){return Math.abs(p[0]-t[0][0])<.01}function m(p){return Math.abs(p[0]-t[2][0])<.01}for(;i.length;){for(f=jy.smoothopen(e.edgepaths[n],e.smoothing),r+=a?f:f.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],u=-1,l=0;l<4;l++){if(!o){zd.log("Missing end?",n,e);break}for(h(o)&&!m(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:m(o)&&(s=t[2]),c=0;c=0&&(s=b,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,u=c):zd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){zd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nUm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Um.MAXCOST)return c};function i2t(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,f=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var d=Um.EDGECOST*(1/(f-1)+1/(h-1));d+=Um.ANGLECOST*l*l;for(var v=o-u,m=s-c,b=o+u,p=s+c,k=0;k{"use strict";var o2t=qa(),IG=tc(),s2t=B4();zbe.exports=function(t){var r=t.contours,n=r.start,i=s2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=IG.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?IG.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,m=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=m&&(n=m),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;vm&&(f.unshift(m),h.unshift(h[0])),f[f.length-1]{"use strict";var D8=qa(),qbe=So(),l2t=_8(),u2t=RG();Obe.exports=function(t){var r=D8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=D8.select(this),a=n[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",d=f||h?u2t(a):null;i.selectAll("g.contourlevel").each(function(b){D8.select(this).selectAll("path").call(qbe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){qbe.font(D8.select(this),{weight:v.weight,style:v.style,variant:v.variant,textcase:v.textcase,lineposition:v.lineposition,shadow:v.shadow,family:v.family,size:v.size,color:v.color||(f?d(b.level):s.color)})}),c)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var m;i.selectAll("g.contourfill path").style("fill",function(b){return m===void 0&&(m=b.level),d(b.level+.5*l)}),m===void 0&&(m=u),i.selectAll("g.contourbg path").style("fill",d(m-.5*l))}}),l2t(t)}});var z8=ye((jcr,Nbe)=>{"use strict";var Bbe=tc(),c2t=RG(),f2t=B4();function h2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=c2t(t,{isColorbar:!0});if(o==="heatmap"){var l=Bbe.extractOpts(t);r._fillgradient=l.reversescale?Bbe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:f2t(n),size:a}}Nbe.exports={min:"zmin",max:"zmax",calc:h2t}});var DG=ye((Wcr,Ube)=>{"use strict";var q8=ka(),d2t=b8();Ube.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=d2t(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&q8.opacity(l.fillcolor)?s.color=q8.addOpacity(l.fillcolor,1):l.contours.showlines&&q8.opacity(l.line.color)&&(s.color=q8.addOpacity(l.line.color,1)))}),o}});var Gbe=ye((Xcr,Vbe)=>{"use strict";Vbe.exports={attributes:_G(),supplyDefaults:ube(),crossTraceDefaults:A8(),calc:AG(),plot:R8().plot,layerName:"contourlayer",style:F8(),colorbar:z8(),hoverPoints:DG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var jbe=ye((Zcr,Hbe)=>{"use strict";Hbe.exports=Gbe()});var FG=ye((Ycr,Jbe)=>{"use strict";var Wbe=Eo(),v2t=xG(),Ybe=ka(),Xbe=Ybe.addOpacity,p2t=Ybe.opacity,Kbe=E8(),Zbe=Pr().isArrayOrTypedArray,g2t=Kbe.CONSTRAINT_REDUCTION,m2t=Kbe.COMPARISON_OPS2;Jbe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=g2t[f],y2t(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",Xbe((t.line||{}).color||a,.5))),l){var h=c&&p2t(c)?Xbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),v2t(n,i,u,o)};function y2t(e,t){var r;m2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Zbe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Wbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Wbe(t.value)||(Zbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var e2e=ye((Kcr,Qbe)=>{"use strict";var zG=Pr(),_2t=a8(),x2t=Dg(),b2t=FG(),w2t=C8(),T2t=L8(),A2t=R4(),$be=O4();Qbe.exports=function(t,r,n,i){function a(u,c){return zG.coerce(t,r,$be,u,c)}function o(u){return zG.coerce2(t,r,$be,u)}var s=_2t(t,r,a,i);if(!s){r.visible=!1;return}x2t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate"),a("hovertemplatefallback");var l=a("contours.type")==="constraint";a("connectgaps",zG.isArray1D(r.z)),l?b2t(t,r,a,i,n):(w2t(t,r,a,o),T2t(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&A2t(a,i),a("zorder")}});var r2e=ye((Jcr,t2e)=>{"use strict";t2e.exports={attributes:O4(),supplyDefaults:e2e(),calc:AG(),plot:R8().plot,style:F8(),colorbar:z8(),hoverPoints:DG(),moduleType:"trace",name:"contour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var n2e=ye(($cr,i2e)=>{"use strict";i2e.exports=r2e()});var qG=ye((Qcr,l2e)=>{"use strict";var{hovertemplateAttrs:S2t,texttemplateAttrs:M2t,templatefallbackAttrs:a2e}=Ll(),E2t=Pg(),o0=pf(),k2t=Gl(),o2e=Tu(),C2t=Pd().dash,F_=Ao().extendFlat,X0=o0.marker,H4=o0.line,s2e=X0.line;l2e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:F_({},o0.mode,{dflt:"markers"}),text:F_({},o0.text,{}),texttemplate:M2t({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:a2e({editType:"plot"}),hovertext:F_({},o0.hovertext,{}),line:{color:H4.color,width:H4.width,dash:C2t,backoff:H4.backoff,shape:F_({},H4.shape,{values:["linear","spline"]}),smoothing:H4.smoothing,editType:"calc"},connectgaps:o0.connectgaps,cliponaxis:o0.cliponaxis,fill:F_({},o0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:E2t(),marker:F_({symbol:X0.symbol,opacity:X0.opacity,angle:X0.angle,angleref:X0.angleref,standoff:X0.standoff,maxdisplayed:X0.maxdisplayed,size:X0.size,sizeref:X0.sizeref,sizemin:X0.sizemin,sizemode:X0.sizemode,line:F_({width:s2e.width,dash:s2e.dash,editType:"calc"},o2e("marker.line")),gradient:X0.gradient,editType:"calc"},o2e("marker")),textfont:o0.textfont,textposition:o0.textposition,selected:o0.selected,unselected:o0.unselected,hoverinfo:F_({},k2t.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o0.hoveron,hovertemplate:S2t(),hovertemplatefallback:a2e()}});var h2e=ye((efr,f2e)=>{"use strict";var u2e=Pr(),L2t=Pm(),jT=Ru(),P2t=$p(),I2t=D0(),c2e=uT(),R2t=F0(),D2t=Fg(),F2t=qG();f2e.exports=function(t,r,n,i){function a(h,d){return u2e.coerce(t,r,F2t,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var c=u{"use strict";var OG=ho();d2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=OG.tickText(a.aaxis,t.a,!0).text,i.bLabel=OG.tickText(a.baxis,t.b,!0).text,i.cLabel=OG.tickText(a.caxis,t.c,!0).text,i}});var y2e=ye((rfr,m2e)=>{"use strict";var BG=Eo(),z2t=z0(),q2t=Dm(),O2t=q0(),B2t=O0().calcMarkerSize,p2e=["a","b","c"],g2e={a:["b","c"],b:["a","c"],c:["a","b"]};m2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,d;for(l=0;l{"use strict";var N2t=pT();_2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var U2t=_T();b2e.exports=function(t,r,n,i){var a=U2t(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,d=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var v={};v[h.subplot]={_subplot:d};var m=h._module.formatLabels(f,h,v);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var b=f.hi||h.hoverinfo,p=[];function k(T,L){p.push(T._hovertitle+": "+L)}if(!h.hovertemplate){var M=b.split("+");M.indexOf("all")!==-1&&(M=["a","b","c"]),M.indexOf("a")!==-1&&k(d.aaxis,o.aLabel),M.indexOf("b")!==-1&&k(d.baxis,o.bLabel),M.indexOf("c")!==-1&&k(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var A2e=ye((afr,T2e)=>{"use strict";T2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var F2e=ye((ofr,D2e)=>{"use strict";var L2e=qa(),V2t=fd(),NG=Oa(),Wy=Pr(),Vm=Wy.strTranslate,O8=Wy._,XT=ka(),B8=So(),j4=xm(),UG=Ao().extendFlat,G2t=Mc(),z_=ho(),S2e=yv(),M2e=ef(),P2e=Cg(),E2e=P2e.freeMode,H2t=P2e.rectMode,VG=qb(),j2t=qf().prepSelect,W2t=qf().selectOnClick,X2t=qf().clearOutline,Z2t=qf().clearSelectionsCache,I2e=Rh();function R2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}D2e.exports=R2e;var Gm=R2e.prototype;Gm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Gm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aWT*u?(p=u,b=p*WT):(b=l,p=b/WT),k=o*b/l,M=s*p/u,v=t.l+t.w*i-b/2,m=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=m,r.w=b,r.h=p,r.sum=c,r.xaxis={type:"linear",range:[f+2*d-c,c-f-2*h],domain:[i-k/2,i+k/2],_id:"x"},j4(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(V){return V.a>=r.aaxis.range[0]&&V.a<=r.aaxis.range[1]&&V.b>=r.baxis.range[1]&&V.b<=r.baxis.range[0]&&V.c>=r.caxis.range[1]&&V.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-d],domain:[a-M/2,a+M/2],_id:"y"},j4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=UG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+M*WT],anchor:"free",position:0,_id:"y",_length:b});j4(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=UG({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});j4(x,r.graphDiv._fullLayout),x.setScale();var C=r.caxis=UG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+M*WT],anchor:"free",position:0,_id:"y",_length:b});j4(C,r.graphDiv._fullLayout),C.setScale();var S="M"+v+","+(m+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",S),r.layers.plotbg.select("path").attr("d",S);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Vm(v,m);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var E=Vm(v-x._offset,m+p);r.layers.baxis.attr("transform",E),r.layers.bgrid.attr("transform",E);var z=Vm(v+b/2,m)+"rotate(30)"+Vm(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var q=Vm(v+b/2,m)+"rotate(-30)"+Vm(0,-C._offset);r.layers.caxis.attr("transform",q),r.layers.cgrid.attr("transform",q),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(m+p)+"l"+b/2+",-"+p:"M0,0").call(XT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+v+","+(m+p)+"h"+b:"M0,0").call(XT.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(v+b/2)+","+m+"l"+b/2+","+p:"M0,0").call(XT.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),B8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Gm.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.slice(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=VG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:O8(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),i["b-title"]=VG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:O8(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),i["c-title"]=VG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:O8(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};Gm.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,l=i+"tickLayout",u=Y2t(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=z_.calcTicks(e),f=z_.clipEnds(e,c),h=z_.makeTransTickFn(e),d=z_.getTickSigns(e)[2],v=Wy.deg2rad(s),m=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,k=t.h,M=i==="b"?"M0,"+m+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"M"+m+",0l"+Math.cos(v)*b+","+-Math.sin(v)*b,T={a:"M0,0l"+k+",-"+p/2,b:"M0,0l-"+p/2+",-"+k,c:"M0,0l-"+k+","+p/2}[i];z_.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:M,transFn:h,crisp:!1}),z_.drawGrid(r,e,{vals:f,layer:t.layers[i+"grid"],path:T,transFn:h,crisp:!1}),z_.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:z_.makeLabelFns(e,0,s)})};function Y2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=I2e.MINZOOM/2+.87,K2t="m-0.87,.5h"+yd+"v3h-"+(yd+5.2)+"l"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l2.6,1.5l-"+yd/2+","+yd*.87+"Z",J2t="m0.87,.5h-"+yd+"v3h"+(yd+5.2)+"l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-2.6,1.5l"+yd/2+","+yd*.87+"Z",$2t="m0,1l"+yd/2+","+yd*.87+"l2.6,-1.5l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-"+(yd/2+2.6)+","+(yd*.87+4.5)+"l2.6,1.5l"+yd/2+",-"+yd*.87+"Z",Q2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",k2e=!0;Gm.clearOutline=function(){Z2t(this.dragOptions),X2t(this.dragOptions.gd)};Gm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(E,z,q){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var V=e.dragOptions.dragmode=r._fullLayout.dragmode;E2e(V)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,V==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=p,e.dragOptions.doneFn=C,k(E,z,q)):V==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,S(),e.clearOutline(r)):(H2t(V)||E2e(V))&&j2t(E,z,q,e.dragOptions,V)}};var o,s,l,u,c,f,h,d,v,m;function b(E){var z={};return z[e.id+".aaxis.min"]=E.a,z[e.id+".baxis.min"]=E.b,z[e.id+".caxis.min"]=E.c,z}function p(E,z){var q=r._fullLayout.clickmode;C2e(r),E===2&&(r.emit("plotly_doubleclick",null),NG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),q.indexOf("select")>-1&&E===1&&W2t(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),q.indexOf("event")>-1&&M2e.click(r,z,e.id)}function k(E,z,q){var V=t.getBoundingClientRect();o=z-V.left,s=q-V.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,Z=Wy.apply3DTransform(G)(o,s);o=Z[0],s=Z[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=V2t(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,v=n.append("path").attr("class","zoombox").attr("transform",Vm(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),m=n.append("path").attr("class","zoombox-corners").attr("transform",Vm(e.x0,e.y0)).style({fill:XT.background,stroke:XT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function M(E,z){return 1-z/e.h}function T(E,z){return 1-(E+(e.h-z)/Math.sqrt(3))/e.w}function L(E,z){return(E-(e.h-z)/Math.sqrt(3))/e.w}function x(E,z){var q=o+E*i,V=s+z*a,G=Math.max(0,Math.min(1,M(o,s),M(q,V))),Z=Math.max(0,Math.min(1,T(o,s),T(q,V))),j=Math.max(0,Math.min(1,L(o,s),L(q,V))),N=(G/2+j)*e.w,H=(1-G/2-Z)*e.w,ie=(N+H)/2,ae=H-N,_e=(1-G)*e.h,Ee=_e-ae/WT;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),m.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function C(){C2e(r),c!==l&&(NG.call("_guiRelayout",r,b(c)),k2e&&r.data&&r._context.showTips&&(Wy.notifier(O8(r,"Double-click to zoom back out"),"long",r),k2e=!1))}function S(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(E,z){var q=E/e.xaxis._m,V=z/e.yaxis._m;c={a:l.a-V,b:l.b+(q+V)/2,c:l.c-(q-V)/2};var G=[c.a,c.b,c.c].sort(Wy.sorterAsc),Z={a:G.indexOf(c.a),b:G.indexOf(c.b),c:G.indexOf(c.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),c={a:G[Z.a],b:G[Z.b],c:G[Z.c]},z=(l.a-c.a)*e.yaxis._m,E=(l.c-c.c-l.b+c.b)*e.xaxis._m);var j=Vm(e.x0+E,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",j);var N=Vm(-E,-z);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(B8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){NG.call("_guiRelayout",r,b(c))}t.onmousemove=function(E){M2e.hover(r,E,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(E){r._dragging||S2e.unhover(r,E)},S2e.init(this.dragOptions)};function C2e(e){L2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var jG=ye((sfr,z2e)=>{"use strict";var ewt=Ih(),twt=Cc().attributes,su=Rd(),rwt=mc().overrideAll,GG=Ao().extendFlat,HG={title:{text:su.title.text,font:su.title.font},color:su.color,tickmode:su.minor.tickmode,nticks:GG({},su.nticks,{dflt:6,min:1}),tick0:su.tick0,dtick:su.dtick,tickvals:su.tickvals,ticktext:su.ticktext,ticks:su.ticks,ticklen:su.ticklen,tickwidth:su.tickwidth,tickcolor:su.tickcolor,ticklabelstep:su.ticklabelstep,showticklabels:su.showticklabels,labelalias:su.labelalias,showtickprefix:su.showtickprefix,tickprefix:su.tickprefix,showticksuffix:su.showticksuffix,ticksuffix:su.ticksuffix,showexponent:su.showexponent,exponentformat:su.exponentformat,minexponent:su.minexponent,separatethousands:su.separatethousands,tickfont:su.tickfont,tickangle:su.tickangle,tickformat:su.tickformat,tickformatstops:su.tickformatstops,hoverformat:su.hoverformat,showline:GG({},su.showline,{dflt:!0}),linecolor:su.linecolor,linewidth:su.linewidth,showgrid:GG({},su.showgrid,{dflt:!0}),gridcolor:su.gridcolor,gridwidth:su.gridwidth,griddash:su.griddash,layer:su.layer,min:{valType:"number",dflt:0,min:0}},N8=z2e.exports=rwt({domain:twt({name:"ternary"}),bgcolor:{valType:"color",dflt:ewt.background},sum:{valType:"number",dflt:1,min:0},aaxis:HG,baxis:HG,caxis:HG},"plot","from-root");N8.uirevision={valType:"any",editType:"none"};N8.aaxis.uirevision=N8.baxis.uirevision=N8.caxis.uirevision={valType:"any",editType:"none"}});var q_=ye((lfr,q2e)=>{"use strict";var iwt=Pr(),nwt=vl(),awt=Cc().defaults;q2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,l=i.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,d;function v(k,M){return iwt.coerce(h,d,o,k,M)}for(var m=0;m{"use strict";var owt=ka(),swt=vl(),U8=Pr(),lwt=q_(),uwt=s_(),cwt=l_(),fwt=q3(),hwt=Pb(),dwt=c4(),B2e=jG(),O2e=["aaxis","baxis","caxis"];N2e.exports=function(t,r,n){lwt(t,r,n,{type:"ternary",attributes:B2e,handleDefaults:vwt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function vwt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=owt.combine(i,n.paper_bgcolor);for(var o,s,l,u=0;u=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function pwt(e,t,r,n){var i=B2e[t._name];function a(d,v){return U8.coerce(e,t,i,d,v)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,U8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:U8.bigFont(r.font.size),color:s}}),a("min"),hwt(e,t,a,"linear"),cwt(e,t,a,"linear"),uwt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),fwt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(U8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),dwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var V2e=ye(Z0=>{"use strict";var gwt=F2e(),mwt=Id().getSubplotCalcData,ywt=Pr().counterRegex,ZT="ternary";Z0.name=ZT;var _wt=Z0.attr="subplot";Z0.idRoot=ZT;Z0.idRegex=Z0.attrRegex=ywt(ZT);var xwt=Z0.attributes={};xwt[_wt]={valType:"subplotid",dflt:"ternary",editType:"calc"};Z0.layoutAttributes=jG();Z0.supplyLayoutDefaults=U2e();Z0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[ZT],a=0;a{"use strict";G2e.exports={attributes:qG(),supplyDefaults:h2e(),colorbar:Qd(),formatLabels:v2e(),calc:y2e(),plot:x2e(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:w2e(),selectPoints:xT(),eventData:A2e(),moduleType:"trace",name:"scatterternary",basePlotModule:V2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var W2e=ye((hfr,j2e)=>{"use strict";j2e.exports=H2e()});var WG=ye((dfr,Z2e)=>{"use strict";var Oh=C4(),YT=Ao().extendFlat,X2e=vf().axisHoverFormat;Z2e.exports={y:Oh.y,x:Oh.x,x0:Oh.x0,y0:Oh.y0,xhoverformat:X2e("x"),yhoverformat:X2e("y"),name:YT({},Oh.name,{}),orientation:YT({},Oh.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Oh.fillcolor,points:YT({},Oh.boxpoints,{}),jitter:YT({},Oh.jitter,{}),pointpos:YT({},Oh.pointpos,{}),width:YT({},Oh.width,{}),marker:Oh.marker,text:Oh.text,hovertext:Oh.hovertext,hovertemplate:Oh.hovertemplate,hovertemplatefallback:Oh.hovertemplatefallback,quartilemethod:Oh.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:Oh.offsetgroup,alignmentgroup:Oh.alignmentgroup,selected:Oh.selected,unselected:Oh.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:Oh.zorder}});var YG=ye((vfr,Y2e)=>{"use strict";var XG=L4(),ZG=Pr().extendFlat;Y2e.exports={violinmode:ZG({},XG.boxmode,{}),violingap:ZG({},XG.boxgap,{}),violingroupgap:ZG({},XG.boxgroupgap,{})}});var ewe=ye((pfr,Q2e)=>{"use strict";var K2e=Pr(),bwt=ka(),J2e=I4(),$2e=WG();Q2e.exports=function(t,r,n,i){function a(L,x){return K2e.coerce(t,r,$2e,L,x)}function o(L,x){return K2e.coerce2(t,r,$2e,L,x)}if(J2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||n),f=a("line.width"),h=a("fillcolor",bwt.addOpacity(r.line.color,.5));J2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),m=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||m||b));p||(r.box={visible:!1});var k=o("meanline.color",c),M=o("meanline.width",f),T=a("meanline.visible",!!(k||M));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var rwe=ye((gfr,twe)=>{"use strict";var wwt=Pr(),Twt=YG(),Awt=QI();twe.exports=function(t,r,n){function i(a,o){return wwt.coerce(t,r,Twt,a,o)}Awt._supply(t,r,n,i,"violin")}});var V8=ye(y2=>{"use strict";var Swt=Pr(),Mwt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};y2.makeKDE=function(e,t,r){var n=r.length,i=Mwt.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var KG=Pr(),JG=ho(),Ewt=VV(),iwe=V8(),kwt=fs().BADNUM;nwe.exports=function(t,r){var n=Ewt(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=JG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var Iwt=t8().setPositionOffset,owe=["v","h"];swe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var $G=qa(),QG=Pr(),Rwt=So(),eH=r8(),Dwt=MU(),Fwt=V8();uwe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=Dwt(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return Rwt.smoothopen(h[0],1)}QG.makeTraceGroups(i,n,"trace violins").each(function(c){var f=$G.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var m=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],k=r[d.posLetter+"axis"],M=v.side==="both",T=M||v.side==="positive",L=M||v.side==="negative",x=f.selectAll("path.violin").data(QG.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(V){var G=$G.select(this),Z=V.density,j=Z.length,N=k.c2l(V.pos+m,!0),H=k.l2p(N),ie;if(v.width)ie=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[v.scalegroup];ie=v.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/V.pts.length):ae.maxKDE/b}var _e,Ee,Ce,ge,re,Se,ke;if(T){for(Se=new Array(j),ge=0;ge{"use strict";var fwe=qa(),KT=ka(),zwt=sp().stylePoints;hwe.exports=function(t){var r=fwe.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=fwe.select(this),o=i.box||{},s=o.line||{},l=i.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(KT.stroke,i.line.color).call(KT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(KT.stroke,s.color).call(KT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(KT.stroke,l.color),a.selectAll("path.meanline").style(c).call(KT.stroke,l.color),zwt(a,i,t)})}});var mwe=ye((wfr,gwe)=>{"use strict";var qwt=ka(),tH=Pr(),Owt=ho(),vwe=XV(),pwe=V8();gwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],d,v;if(c||f){var m=vwe.hoverOnBoxes(t,r,n,i);if(f&&m.length>0){var b=t.xa,p=t.ya,k,M,T,L,x;l.orientation==="h"?(x=r,k="y",T=p,M="x",L=b):(x=n,k="x",T=b,M="y",L=p);var C=s[t.index];if(x>=C.span[0]&&x<=C.span[1]){var S=tH.extendFlat({},t),g=L.c2p(x,!0),P=pwe.getKdeValue(C,l,x),E=pwe.getPositionOnKdePath(C,l,g),z=T._offset,q=T._length;S[k+"0"]=E[0],S[k+"1"]=E[1],S[M+"0"]=S[M+"1"]=g,S[M+"Label"]=M+": "+Owt.hoverLabelText(L,x,l[M+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var V=0,G=0;G{"use strict";ywe.exports={attributes:WG(),layoutAttributes:YG(),supplyDefaults:ewe(),crossTraceDefaults:I4().crossTraceDefaults,supplyLayoutDefaults:rwe(),calc:awe(),crossTraceCalc:lwe(),plot:cwe(),style:dwe(),styleOnSelect:sp().styleOnSelect,hoverPoints:mwe(),selectPoints:ZV(),moduleType:"trace",name:"violin",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var bwe=ye((Afr,xwe)=>{"use strict";xwe.exports=_we()});var Twe=ye((Sfr,wwe)=>{"use strict";wwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var iH=ye((Mfr,Ewe)=>{"use strict";var jc=qm(),rH=pf().line,Bwt=Gl(),Awe=vf().axisHoverFormat,{hovertemplateAttrs:Nwt,texttemplateAttrs:Uwt,templatefallbackAttrs:Swe}=Ll(),Mwe=Twe(),Xy=Ao().extendFlat,Vwt=ka();Ewe.exports={x:jc.x,x0:jc.x0,dx:jc.dx,y:jc.y,y0:jc.y0,dy:jc.dy,xperiod:jc.xperiod,yperiod:jc.yperiod,xperiod0:jc.xperiod0,yperiod0:jc.yperiod0,xperiodalignment:jc.xperiodalignment,yperiodalignment:jc.yperiodalignment,xhoverformat:Awe("x"),yhoverformat:Awe("y"),hovertext:jc.hovertext,hovertemplate:Nwt({},{keys:Mwe.eventDataKeys}),hovertemplatefallback:Swe(),hoverinfo:Xy({},Bwt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Uwt({editType:"plot"},{keys:Mwe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Swe({editType:"plot"}),text:jc.text,textposition:jc.textposition,insidetextanchor:Xy({},jc.insidetextanchor,{dflt:"middle"}),textangle:Xy({},jc.textangle,{dflt:0}),textfont:jc.textfont,insidetextfont:jc.insidetextfont,outsidetextfont:jc.outsidetextfont,constraintext:jc.constraintext,cliponaxis:jc.cliponaxis,orientation:Xy({},jc.orientation,{}),offset:Xy({},jc.offset,{arrayOk:!1}),width:Xy({},jc.width,{arrayOk:!1}),marker:Gwt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Xy({},rH.color,{dflt:Vwt.defaultLine}),width:Xy({},rH.width,{dflt:0,editType:"plot"}),dash:rH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function Gwt(){var e=Xy({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var nH=ye((Efr,kwe)=>{"use strict";kwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var oH=ye((kfr,Lwe)=>{"use strict";var G8=Pr(),Hwt=r2(),jwt=i0().handleText,Wwt=lT(),Xwt=Dg(),Cwe=iH(),aH=ka();function Zwt(e,t,r,n){function i(f,h){return G8.coerce(e,t,Cwe,f,h)}var a=Wwt(e,t,n,i);if(!a){t.visible=!1;return}Xwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var s=i("textposition");jwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",G8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",aH.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",Ywt(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Ywt(e){var t=G8.isArrayOrTypedArray(e)?"#000":e;return aH.addOpacity(t,.5*aH.opacity(t))}function Kwt(e,t){var r,n;function i(o){return G8.coerce(n._input,n,Cwe,o)}for(var a=0;a{"use strict";var Jwt=Pr(),$wt=nH();Pwe.exports=function(e,t,r){var n=!1;function i(s,l){return Jwt.coerce(e,t,$wt,s,l)}for(var a=0;a{"use strict";var JT=Pr();Rwe.exports=function(t,r){for(var n=0;n{"use strict";var Fwe=ho(),zwe=zg(),Qwt=Dwe(),e3t=q0(),W4=fs().BADNUM;qwe.exports=function(t,r){var n=Fwe.getFromId(t,r.xaxis||"x"),i=Fwe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=zwe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=zwe(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var d=Math.min(o.length,a.length),v=new Array(d);for(r._base=[],f=0;f{"use strict";var Bwe=i2().setGroupPositions;Nwe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var H8=qa(),B_=Pr(),Vwe=So(),O_=fs().BADNUM,t3t=p2(),r3t=bv().clearMinTextSize;Hwe.exports=function(t,r,n,i){var a=t._fullLayout;r3t("funnel",a),i3t(t,r,n,i),n3t(t,r,n,i),t3t.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function i3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;B_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=H8.select(this),l=o[0].trace,u=B_.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(B_.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var m=Gwe(d,i,a,c),b=m[0],p=m[1],k="";b[0]!==O_&&p[0]!==O_&&b[1]!==O_&&p[1]!==O_&&b[2]!==O_&&p[2]!==O_&&b[3]!==O_&&p[3]!==O_&&(c?k+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2]+"H"+b[3]+"L"+b[1]+","+p[1]+"Z":k+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3]+"V"+p[2]+"L"+b[1]+","+p[0]+"Z"),k===""&&(k="M0,0Z"),B_.ensureSingle(H8.select(this),"path").attr("d",k).call(Vwe.setClipUrl,t.layerClipId,e)}})})}function n3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;B_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=H8.select(this),l=o[0].trace,u=B_.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(B_.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var m=Gwe(d,i,a,c),b=m[0],p=m[1],k="";b[3]!==void 0&&p[3]!==void 0&&(c?(k+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2],k+="M"+b[1]+","+p[1]+"L"+b[3]+","+p[2]):(k+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3],k+="M"+b[1]+","+p[0]+"L"+b[2]+","+p[2])),k===""&&(k="M0,0Z"),B_.ensureSingle(H8.select(this),"path").attr("d",k).call(Vwe.setClipUrl,t.layerClipId,e)}})})}function Gwe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Zwe=ye((Dfr,Xwe)=>{"use strict";var X4=qa(),Wwe=So(),lH=ka(),a3t=X1().DESELECTDIM,o3t=V0(),s3t=bv().resizeText,l3t=o3t.styleTextPoints;function u3t(e,t,r){var n=r||X4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");s3t(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=X4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;X4.select(this).call(lH.fill,s.mc||l.color).call(lH.stroke,s.mlc||l.line.color).call(Wwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?a3t:1)}}),l3t(a,o,e),a.selectAll(".regions").each(function(){X4.select(this).selectAll("path").style("stroke-width",0).call(lH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Wwe.lineGroupStyle(X4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Xwe.exports={style:u3t}});var Jwe=ye((Ffr,Kwe)=>{"use strict";var Ywe=ka().opacity,c3t=RT().hoverOnBars,uH=Pr().formatPercent;Kwe.exports=function(t,r,n,i,a){var o=c3t(t,r,n,i,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=uH(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=uH(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=uH(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var m=d==="all",b=d.split("+"),p=function(k){return m||b.indexOf(k)!==-1};p("percent initial")&&v.push(o.percentInitialLabel+" of initial"),p("percent previous")&&v.push(o.percentPreviousLabel+" of previous"),p("percent total")&&v.push(o.percentTotalLabel+" of total")}return o.extraText=v.join("
"),o.color=f3t(l,f),[o]}};function f3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Ywe(n))return n;if(Ywe(i)&&a)return i}});var Qwe=ye((zfr,$we)=>{"use strict";$we.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var t3e=ye((qfr,e3e)=>{"use strict";e3e.exports={attributes:iH(),layoutAttributes:nH(),supplyDefaults:oH().supplyDefaults,crossTraceDefaults:oH().crossTraceDefaults,supplyLayoutDefaults:Iwe(),calc:Owe(),crossTraceCalc:Uwe(),plot:jwe(),style:Zwe().style,hoverPoints:Jwe(),eventData:Qwe(),selectPoints:DT(),moduleType:"trace",name:"funnel",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var i3e=ye((Ofr,r3e)=>{"use strict";r3e.exports=t3e()});var a3e=ye((Bfr,n3e)=>{"use strict";n3e.exports={eventDataKeys:["initial","delta","final"]}});var hH=ye((Nfr,u3e)=>{"use strict";var _c=qm(),cH=pf().line,h3t=Gl(),o3e=vf().axisHoverFormat,{hovertemplateAttrs:d3t,texttemplateAttrs:v3t,templatefallbackAttrs:s3e}=Ll(),l3e=a3e(),$T=Ao().extendFlat,p3t=ka();function fH(e){return{marker:{color:$T({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:$T({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:$T({},_c.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}u3e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:_c.x,x0:_c.x0,dx:_c.dx,y:_c.y,y0:_c.y0,dy:_c.dy,xperiod:_c.xperiod,yperiod:_c.yperiod,xperiod0:_c.xperiod0,yperiod0:_c.yperiod0,xperiodalignment:_c.xperiodalignment,yperiodalignment:_c.yperiodalignment,xhoverformat:o3e("x"),yhoverformat:o3e("y"),hovertext:_c.hovertext,hovertemplate:d3t({},{keys:l3e.eventDataKeys}),hovertemplatefallback:s3e(),hoverinfo:$T({},h3t.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:v3t({editType:"plot"},{keys:l3e.eventDataKeys.concat(["label"])}),texttemplatefallback:s3e({editType:"plot"}),text:_c.text,textposition:_c.textposition,insidetextanchor:_c.insidetextanchor,textangle:_c.textangle,textfont:_c.textfont,insidetextfont:_c.insidetextfont,outsidetextfont:_c.outsidetextfont,constraintext:_c.constraintext,cliponaxis:_c.cliponaxis,orientation:_c.orientation,offset:_c.offset,width:_c.width,increasing:fH("increasing"),decreasing:fH("decreasing"),totals:fH("intermediate sums and total"),connector:{line:{color:$T({},cH.color,{dflt:p3t.defaultLine}),width:$T({},cH.width,{editType:"plot"}),dash:cH.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:_c.offsetgroup,alignmentgroup:_c.alignmentgroup,zorder:_c.zorder}});var dH=ye((Ufr,c3e)=>{"use strict";c3e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var QT=ye((Vfr,f3e)=>{"use strict";f3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var pH=ye((Gfr,p3e)=>{"use strict";var h3e=Pr(),g3t=r2(),m3t=i0().handleText,y3t=lT(),_3t=Dg(),d3e=hH(),x3t=ka(),v3e=QT(),b3t=v3e.INCREASING.COLOR,w3t=v3e.DECREASING.COLOR,T3t="#4499FF";function vH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",x3t.defaultLine),e(t+".marker.line.width")}function A3t(e,t,r,n){function i(u,c){return h3e.coerce(e,t,d3e,u,c)}var a=y3t(e,t,n,i);if(!a){t.visible=!1;return}_3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");m3t(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),i("texttemplatefallback"),t.texttemplate||i("textinfo")),vH(i,"increasing",b3t),vH(i,"decreasing",w3t),vH(i,"totals",T3t);var s=i("connector.visible");if(s){i("connector.mode");var l=i("connector.line.width");l&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function S3t(e,t){var r,n;function i(o){return h3e.coerce(n._input,n,d3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var M3t=Pr(),E3t=dH();g3e.exports=function(e,t,r){var n=!1;function i(s,l){return M3t.coerce(e,t,E3t,s,l)}for(var a=0;a{"use strict";var y3e=ho(),_3e=zg(),x3e=Pr().mergeArray,k3t=q0(),b3e=fs().BADNUM;function gH(e){return e==="a"||e==="absolute"}function mH(e){return e==="t"||e==="total"}w3e.exports=function(t,r){var n=y3e.getFromId(t,r.xaxis||"x"),i=y3e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=_3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=_3e(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),d=0,v,m=!1,b=0;b{"use strict";var A3e=i2().setGroupPositions;S3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var E3e=qa(),j8=Pr(),C3t=So(),eA=fs().BADNUM,L3t=p2(),P3t=bv().clearMinTextSize;k3e.exports=function(t,r,n,i){var a=t._fullLayout;P3t("waterfall",a),L3t.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),I3t(t,r,n,i)};function I3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;j8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=E3e.select(this),l=o[0].trace,u=j8.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(j8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,m){if(!(m!==d-1&&!v.cNext)){var b=R3t(v,i,a,c),p=b[0],k=b[1],M="";p[0]!==eA&&k[0]!==eA&&p[1]!==eA&&k[1]!==eA&&(f==="spanning"&&!v.isSum&&m>0&&(c?M+="M"+p[0]+","+k[1]+"V"+k[0]:M+="M"+p[1]+","+k[0]+"H"+p[0]),f!=="between"&&(v.isSum||m{"use strict";var W8=qa(),L3e=So(),P3e=ka(),D3t=X1().DESELECTDIM,F3t=V0(),z3t=bv().resizeText,q3t=F3t.styleTextPoints;function O3t(e,t,r){var n=r||W8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");z3t(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=W8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;W8.select(this).call(P3e.fill,l.color).call(P3e.stroke,l.line.color).call(L3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?D3t:1)}}),q3t(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;L3e.lineGroupStyle(W8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}I3e.exports={style:O3t}});var O3e=ye((Yfr,q3e)=>{"use strict";var B3t=ho().hoverLabelText,D3e=ka().opacity,N3t=RT().hoverOnBars,F3e=QT(),z3e={increasing:F3e.INCREASING.SYMBOL,decreasing:F3e.DECREASING.SYMBOL};q3e.exports=function(t,r,n,i,a){var o=N3t(t,r,n,i,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(x){return B3t(f,x,l[c+"hoverformat"])}var d=o.index,v=s[d],m=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-m,o.delta=m,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=m<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var p=v.hi||l.hoverinfo,k=[];if(p&&p!=="none"&&p!=="skip"){var M=p==="all",T=p.split("+"),L=function(x){return M||T.indexOf(x)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&k.push(o.finalLabel),L("delta")&&(m<0?k.push(o.deltaLabel+" "+z3e.decreasing):k.push(o.deltaLabel+" "+z3e.increasing)),L("initial")&&k.push("Initial: "+o.initialLabel))}return k.length&&(o.extraText=k.join("
")),o.color=U3t(l,v),[o]};function U3t(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(D3e(n))return n;if(D3e(i)&&a)return i}});var N3e=ye((Kfr,B3e)=>{"use strict";B3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var V3e=ye((Jfr,U3e)=>{"use strict";U3e.exports={attributes:hH(),layoutAttributes:dH(),supplyDefaults:pH().supplyDefaults,crossTraceDefaults:pH().crossTraceDefaults,supplyLayoutDefaults:m3e(),calc:T3e(),crossTraceCalc:M3e(),plot:C3e(),style:R3e().style,hoverPoints:O3e(),eventData:N3e(),selectPoints:DT(),moduleType:"trace",name:"waterfall",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var H3e=ye(($fr,G3e)=>{"use strict";G3e.exports=V3e()});var tA=ye((Qfr,j3e)=>{"use strict";j3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var yH=ye((ehr,X3e)=>{"use strict";var V3t=Gl(),G3t=pf().zorder,{hovertemplateAttrs:H3t,templatefallbackAttrs:j3t}=Ll(),W3e=Ao().extendFlat,W3t=tA().colormodel,Y4=["rgb","rgba","rgba256","hsl","hsla"],X3t=[],Z3t=[];for(rA=0;rA{"use strict";var Y3t=Pr(),K3t=yH(),Z3e=tA(),J3t=qy().IMAGE_URL_PREFIX;Y3e.exports=function(t,r){function n(o,s){return Y3t.coerce(t,r,K3t,o,s)}n("source"),r.source&&!r.source.match(J3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=Z3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=Z3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),r._length=null,n("zorder")}});var Zy=ye((rhr,_H)=>{typeof Object.create=="function"?_H.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_H.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var xH=ye((ihr,J3e)=>{J3e.exports=Sb().EventEmitter});var eTe=ye(X8=>{"use strict";X8.byteLength=Q3t;X8.toByteArray=tTt;X8.fromByteArray=nTt;var Hm=[],Y0=[],$3t=typeof Uint8Array!="undefined"?Uint8Array:Array,bH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_2=0,$3e=bH.length;_2<$3e;++_2)Hm[_2]=bH[_2],Y0[bH.charCodeAt(_2)]=_2;var _2,$3e;Y0[45]=62;Y0[95]=63;function Q3e(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Q3t(e){var t=Q3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function eTt(e,t,r){return(t+r)*3/4-r}function tTt(e){var t,r=Q3e(e),n=r[0],i=r[1],a=new $3t(eTt(e,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Y0[e.charCodeAt(l)]<<2|Y0[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=Y0[e.charCodeAt(l)]<<10|Y0[e.charCodeAt(l+1)]<<4|Y0[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function rTt(e){return Hm[e>>18&63]+Hm[e>>12&63]+Hm[e>>6&63]+Hm[e&63]}function iTt(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Hm[t>>2]+Hm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Hm[t>>10]+Hm[t>>4&63]+Hm[t<<2&63]+"=")),i.join("")}});var tTe=ye(wH=>{wH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(d?-1:1)*o*Math.pow(2,a-n)};wH.write=function(e,t,r,n,i,a){var o,s,l,u=a*8-i-1,c=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,v=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=v,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=v,o/=256,u-=8);e[r+d-v]|=m*128}});var b2=ye(oA=>{"use strict";var TH=eTe(),nA=tTe(),rTe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;oA.Buffer=ra;oA.SlowBuffer=cTt;oA.INSPECT_MAX_BYTES=50;var Z8=2147483647;oA.kMaxLength=Z8;ra.TYPED_ARRAY_SUPPORT=aTt();!ra.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function aTt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ra.prototype,"parent",{enumerable:!0,get:function(){if(ra.isBuffer(this))return this.buffer}});Object.defineProperty(ra.prototype,"offset",{enumerable:!0,get:function(){if(ra.isBuffer(this))return this.byteOffset}});function Yy(e){if(e>Z8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ra.prototype),t}function ra(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return EH(e)}return oTe(e,t,r)}ra.poolSize=8192;function oTe(e,t,r){if(typeof e=="string")return sTt(e,t);if(ArrayBuffer.isView(e))return lTt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(jm(e,ArrayBuffer)||e&&jm(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(jm(e,SharedArrayBuffer)||e&&jm(e.buffer,SharedArrayBuffer)))return SH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ra.from(n,t,r);let i=uTt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ra.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ra.from=function(e,t,r){return oTe(e,t,r)};Object.setPrototypeOf(ra.prototype,Uint8Array.prototype);Object.setPrototypeOf(ra,Uint8Array);function sTe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function oTt(e,t,r){return sTe(e),e<=0?Yy(e):t!==void 0?typeof r=="string"?Yy(e).fill(t,r):Yy(e).fill(t):Yy(e)}ra.alloc=function(e,t,r){return oTt(e,t,r)};function EH(e){return sTe(e),Yy(e<0?0:kH(e)|0)}ra.allocUnsafe=function(e){return EH(e)};ra.allocUnsafeSlow=function(e){return EH(e)};function sTt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ra.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=lTe(e,t)|0,n=Yy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function AH(e){let t=e.length<0?0:kH(e.length)|0,r=Yy(t);for(let n=0;n=Z8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z8.toString(16)+" bytes");return e|0}function cTt(e){return+e!=e&&(e=0),ra.alloc(+e)}ra.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ra.prototype};ra.compare=function(t,r){if(jm(t,Uint8Array)&&(t=ra.from(t,t.offset,t.byteLength)),jm(r,Uint8Array)&&(r=ra.from(r,r.offset,r.byteLength)),!ra.isBuffer(t)||!ra.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ra.isBuffer(o)||(o=ra.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ra.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function lTe(e,t){if(ra.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jm(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return MH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return mTe(e).length;default:if(i)return n?-1:MH(e).length;t=(""+t).toLowerCase(),i=!0}}ra.byteLength=lTe;function fTt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return bTt(this,t,r);case"utf8":case"utf-8":return cTe(this,t,r);case"ascii":return _Tt(this,t,r);case"latin1":case"binary":return xTt(this,t,r);case"base64":return mTt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wTt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ra.prototype._isBuffer=!0;function x2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ra.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};rTe&&(ra.prototype[rTe]=ra.prototype.inspect);ra.prototype.compare=function(t,r,n,i,a){if(jm(t,Uint8Array)&&(t=ra.from(t,t.offset,t.byteLength)),!ra.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),c=t.slice(r,n);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,LH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ra.from(t,n)),ra.isBuffer(t))return t.length===0?-1:iTe(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):iTe(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function iTe(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(i){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fi&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return hTt(this,t,r,n);case"utf8":case"utf-8":return dTt(this,t,r,n);case"ascii":case"latin1":case"binary":return vTt(this,t,r,n);case"base64":return pTt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gTt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ra.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function mTt(e,t,r){return t===0&&r===e.length?TH.fromByteArray(e):TH.fromByteArray(e.slice(t,r))}function cTe(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return yTt(n)}var nTe=4096;function yTt(e){let t=e.length;if(t<=nTe)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ra.prototype.readUintLE=ra.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||tv(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||tv(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ra.prototype.readUint8=ra.prototype.readUInt8=function(t,r){return t=t>>>0,r||tv(t,1,this.length),this[t]};ra.prototype.readUint16LE=ra.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||tv(t,2,this.length),this[t]|this[t+1]<<8};ra.prototype.readUint16BE=ra.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||tv(t,2,this.length),this[t]<<8|this[t+1]};ra.prototype.readUint32LE=ra.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ra.prototype.readUint32BE=ra.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ra.prototype.readBigUInt64LE=N_(function(t){t=t>>>0,aA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&K4(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,aA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&K4(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||tv(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ra.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||tv(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ra.prototype.readInt8=function(t,r){return t=t>>>0,r||tv(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ra.prototype.readInt16LE=function(t,r){t=t>>>0,r||tv(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ra.prototype.readInt16BE=function(t,r){t=t>>>0,r||tv(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ra.prototype.readInt32LE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ra.prototype.readInt32BE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ra.prototype.readBigInt64LE=N_(function(t){t=t>>>0,aA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&K4(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,aA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&K4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||tv(t,4,this.length),nA.read(this,t,!0,23,4)};ra.prototype.readFloatBE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),nA.read(this,t,!1,23,4)};ra.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||tv(t,8,this.length),nA.read(this,t,!0,52,8)};ra.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||tv(t,8,this.length),nA.read(this,t,!1,52,8)};function Rp(e,t,r,n,i,a){if(!ra.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ra.prototype.writeUintLE=ra.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rp(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rp(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ra.prototype.writeUint8=ra.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,1,255,0),this[r]=t&255,r+1};ra.prototype.writeUint16LE=ra.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ra.prototype.writeUint16BE=ra.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ra.prototype.writeUint32LE=ra.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ra.prototype.writeUint32BE=ra.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function fTe(e,t,r,n,i){gTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function hTe(e,t,r,n,i){gTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ra.prototype.writeBigUInt64LE=N_(function(t,r=0){return fTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ra.prototype.writeBigUInt64BE=N_(function(t,r=0){return hTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ra.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Rp(this,t,r,n,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ra.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Rp(this,t,r,n,l-1,-l)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ra.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ra.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ra.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ra.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ra.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ra.prototype.writeBigInt64LE=N_(function(t,r=0){return fTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ra.prototype.writeBigInt64BE=N_(function(t,r=0){return hTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function dTe(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function vTe(e,t,r,n,i){return t=+t,r=r>>>0,i||dTe(e,t,r,4,34028234663852886e22,-34028234663852886e22),nA.write(e,t,r,n,23,4),r+4}ra.prototype.writeFloatLE=function(t,r,n){return vTe(this,t,r,!0,n)};ra.prototype.writeFloatBE=function(t,r,n){return vTe(this,t,r,!1,n)};function pTe(e,t,r,n,i){return t=+t,r=r>>>0,i||dTe(e,t,r,8,17976931348623157e292,-17976931348623157e292),nA.write(e,t,r,n,52,8),r+8}ra.prototype.writeDoubleLE=function(t,r,n){return pTe(this,t,r,!0,n)};ra.prototype.writeDoubleBE=function(t,r,n){return pTe(this,t,r,!1,n)};ra.prototype.copy=function(t,r,n,i){if(!ra.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=aTe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=aTe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function aTe(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function TTt(e,t,r){aA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&K4(t,e.length-(r+1))}function gTe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new iA.ERR_OUT_OF_RANGE("value",s,e)}TTt(n,i,a)}function aA(e,t){if(typeof e!="number")throw new iA.ERR_INVALID_ARG_TYPE(t,"number",e)}function K4(e,t,r){throw Math.floor(e)!==e?(aA(e,r),new iA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new iA.ERR_BUFFER_OUT_OF_BOUNDS:new iA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var ATt=/[^+/0-9A-Za-z-_]/g;function STt(e){if(e=e.split("=")[0],e=e.trim().replace(ATt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function MH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function MTt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function mTe(e){return TH.toByteArray(STt(e))}function Y8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function jm(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function LH(e){return e!==e}var kTt=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function N_(e){return typeof BigInt=="undefined"?CTt:e}function CTt(){throw new Error("BigInt not supported")}});var K8=ye((lhr,yTe)=>{"use strict";yTe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var J4=ye((uhr,_Te)=>{"use strict";var LTt=K8();_Te.exports=function(){return LTt()&&!!Symbol.toStringTag}});var PH=ye((chr,xTe)=>{"use strict";xTe.exports=Object});var wTe=ye((fhr,bTe)=>{"use strict";bTe.exports=Error});var ATe=ye((hhr,TTe)=>{"use strict";TTe.exports=EvalError});var MTe=ye((dhr,STe)=>{"use strict";STe.exports=RangeError});var kTe=ye((vhr,ETe)=>{"use strict";ETe.exports=ReferenceError});var IH=ye((phr,CTe)=>{"use strict";CTe.exports=SyntaxError});var sA=ye((ghr,LTe)=>{"use strict";LTe.exports=TypeError});var ITe=ye((mhr,PTe)=>{"use strict";PTe.exports=URIError});var DTe=ye((yhr,RTe)=>{"use strict";RTe.exports=Math.abs});var zTe=ye((_hr,FTe)=>{"use strict";FTe.exports=Math.floor});var OTe=ye((xhr,qTe)=>{"use strict";qTe.exports=Math.max});var NTe=ye((bhr,BTe)=>{"use strict";BTe.exports=Math.min});var VTe=ye((whr,UTe)=>{"use strict";UTe.exports=Math.pow});var HTe=ye((Thr,GTe)=>{"use strict";GTe.exports=Math.round});var WTe=ye((Ahr,jTe)=>{"use strict";jTe.exports=Number.isNaN||function(t){return t!==t}});var ZTe=ye((Shr,XTe)=>{"use strict";var PTt=WTe();XTe.exports=function(t){return PTt(t)||t===0?t:t<0?-1:1}});var KTe=ye((Mhr,YTe)=>{"use strict";YTe.exports=Object.getOwnPropertyDescriptor});var w2=ye((Ehr,JTe)=>{"use strict";var J8=KTe();if(J8)try{J8([],"length")}catch(e){J8=null}JTe.exports=J8});var $4=ye((khr,$Te)=>{"use strict";var $8=Object.defineProperty||!1;if($8)try{$8({},"a",{value:1})}catch(e){$8=!1}$Te.exports=$8});var tAe=ye((Chr,eAe)=>{"use strict";var QTe=typeof Symbol!="undefined"&&Symbol,ITt=K8();eAe.exports=function(){return typeof QTe!="function"||typeof Symbol!="function"||typeof QTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ITt()}});var RH=ye((Lhr,rAe)=>{"use strict";rAe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var DH=ye((Phr,iAe)=>{"use strict";var RTt=PH();iAe.exports=RTt.getPrototypeOf||null});var oAe=ye((Ihr,aAe)=>{"use strict";var DTt="Function.prototype.bind called on incompatible ",FTt=Object.prototype.toString,zTt=Math.max,qTt="[object Function]",nAe=function(t,r){for(var n=[],i=0;i{"use strict";var NTt=oAe();sAe.exports=Function.prototype.bind||NTt});var Q8=ye((Dhr,lAe)=>{"use strict";lAe.exports=Function.prototype.call});var FH=ye((Fhr,uAe)=>{"use strict";uAe.exports=Function.prototype.apply});var fAe=ye((zhr,cAe)=>{"use strict";cAe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var dAe=ye((qhr,hAe)=>{"use strict";var UTt=lA(),VTt=FH(),GTt=Q8(),HTt=fAe();hAe.exports=HTt||UTt.call(GTt,VTt)});var pAe=ye((Ohr,vAe)=>{"use strict";var jTt=lA(),WTt=sA(),XTt=Q8(),ZTt=dAe();vAe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new WTt("a function is required");return ZTt(jTt,XTt,t)}});var bAe=ye((Bhr,xAe)=>{"use strict";var YTt=pAe(),gAe=w2(),yAe;try{yAe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var zH=!!yAe&&gAe&&gAe(Object.prototype,"__proto__"),_Ae=Object,mAe=_Ae.getPrototypeOf;xAe.exports=zH&&typeof zH.get=="function"?YTt([zH.get]):typeof mAe=="function"?function(t){return mAe(t==null?t:_Ae(t))}:!1});var MAe=ye((Nhr,SAe)=>{"use strict";var wAe=RH(),TAe=DH(),AAe=bAe();SAe.exports=wAe?function(t){return wAe(t)}:TAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return TAe(t)}:AAe?function(t){return AAe(t)}:null});var kAe=ye((Uhr,EAe)=>{"use strict";var KTt=Function.prototype.call,JTt=Object.prototype.hasOwnProperty,$Tt=lA();EAe.exports=$Tt.call(KTt,JTt)});var rR=ye((Vhr,DAe)=>{"use strict";var lu,QTt=PH(),eAt=wTe(),tAt=ATe(),rAt=MTe(),iAt=kTe(),hA=IH(),fA=sA(),nAt=ITe(),aAt=DTe(),oAt=zTe(),sAt=OTe(),lAt=NTe(),uAt=VTe(),cAt=HTe(),fAt=ZTe(),IAe=Function,qH=function(e){try{return IAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},Q4=w2(),hAt=$4(),OH=function(){throw new fA},dAt=Q4?function(){try{return arguments.callee,OH}catch(e){try{return Q4(arguments,"callee").get}catch(t){return OH}}}():OH,uA=tAe()(),rv=MAe(),vAt=DH(),pAt=RH(),RAe=FH(),eE=Q8(),cA={},gAt=typeof Uint8Array=="undefined"||!rv?lu:rv(Uint8Array),T2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?lu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?lu:ArrayBuffer,"%ArrayIteratorPrototype%":uA&&rv?rv([][Symbol.iterator]()):lu,"%AsyncFromSyncIteratorPrototype%":lu,"%AsyncFunction%":cA,"%AsyncGenerator%":cA,"%AsyncGeneratorFunction%":cA,"%AsyncIteratorPrototype%":cA,"%Atomics%":typeof Atomics=="undefined"?lu:Atomics,"%BigInt%":typeof BigInt=="undefined"?lu:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?lu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?lu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?lu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":eAt,"%eval%":eval,"%EvalError%":tAt,"%Float16Array%":typeof Float16Array=="undefined"?lu:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?lu:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?lu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?lu:FinalizationRegistry,"%Function%":IAe,"%GeneratorFunction%":cA,"%Int8Array%":typeof Int8Array=="undefined"?lu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?lu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?lu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uA&&rv?rv(rv([][Symbol.iterator]())):lu,"%JSON%":typeof JSON=="object"?JSON:lu,"%Map%":typeof Map=="undefined"?lu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!uA||!rv?lu:rv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":QTt,"%Object.getOwnPropertyDescriptor%":Q4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?lu:Promise,"%Proxy%":typeof Proxy=="undefined"?lu:Proxy,"%RangeError%":rAt,"%ReferenceError%":iAt,"%Reflect%":typeof Reflect=="undefined"?lu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?lu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!uA||!rv?lu:rv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?lu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":uA&&rv?rv(""[Symbol.iterator]()):lu,"%Symbol%":uA?Symbol:lu,"%SyntaxError%":hA,"%ThrowTypeError%":dAt,"%TypedArray%":gAt,"%TypeError%":fA,"%Uint8Array%":typeof Uint8Array=="undefined"?lu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?lu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?lu:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?lu:Uint32Array,"%URIError%":nAt,"%WeakMap%":typeof WeakMap=="undefined"?lu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?lu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?lu:WeakSet,"%Function.prototype.call%":eE,"%Function.prototype.apply%":RAe,"%Object.defineProperty%":hAt,"%Object.getPrototypeOf%":vAt,"%Math.abs%":aAt,"%Math.floor%":oAt,"%Math.max%":sAt,"%Math.min%":lAt,"%Math.pow%":uAt,"%Math.round%":cAt,"%Math.sign%":fAt,"%Reflect.getPrototypeOf%":pAt};if(rv)try{null.error}catch(e){CAe=rv(rv(e)),T2["%Error.prototype%"]=CAe}var CAe,mAt=function e(t){var r;if(t==="%AsyncFunction%")r=qH("async function () {}");else if(t==="%GeneratorFunction%")r=qH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=qH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&rv&&(r=rv(i.prototype))}return T2[t]=r,r},LAe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},tE=lA(),eR=kAe(),yAt=tE.call(eE,Array.prototype.concat),_At=tE.call(RAe,Array.prototype.splice),PAe=tE.call(eE,String.prototype.replace),tR=tE.call(eE,String.prototype.slice),xAt=tE.call(eE,RegExp.prototype.exec),bAt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,wAt=/\\(\\)?/g,TAt=function(t){var r=tR(t,0,1),n=tR(t,-1);if(r==="%"&&n!=="%")throw new hA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new hA("invalid intrinsic syntax, expected opening `%`");var i=[];return PAe(t,bAt,function(a,o,s,l){i[i.length]=s?PAe(l,wAt,"$1"):o||a}),i},AAt=function(t,r){var n=t,i;if(eR(LAe,n)&&(i=LAe[n],n="%"+i[0]+"%"),eR(T2,n)){var a=T2[n];if(a===cA&&(a=mAt(n)),typeof a=="undefined"&&!r)throw new fA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new hA("intrinsic "+t+" does not exist!")};DAe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new fA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new fA('"allowMissing" argument must be a boolean');if(xAt(/^%?[^%]*%?$/,t)===null)throw new hA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=TAt(t),i=n.length>0?n[0]:"",a=AAt("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],_At(n,yAt([0,1],u)));for(var c=1,f=!0;c=n.length){var m=Q4(s,h);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[h]}else f=eR(s,h),s=s[h];f&&!l&&(T2[o]=s)}}return s}});var OAe=ye((Ghr,qAe)=>{"use strict";var FAe=$4(),SAt=IH(),dA=sA(),zAe=w2();qAe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new dA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new dA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new dA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new dA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new dA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new dA("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!zAe&&zAe(t,r);if(FAe)FAe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new SAt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var NH=ye((Hhr,NAe)=>{"use strict";var BH=$4(),BAe=function(){return!!BH};BAe.hasArrayLengthDefineBug=function(){if(!BH)return null;try{return BH([],"length",{value:1}).length!==1}catch(t){return!0}};NAe.exports=BAe});var jAe=ye((jhr,HAe)=>{"use strict";var MAt=rR(),UAe=OAe(),EAt=NH()(),VAe=w2(),GAe=sA(),kAt=MAt("%Math.floor%");HAe.exports=function(t,r){if(typeof t!="function")throw new GAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||kAt(r)!==r)throw new GAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&VAe){var o=VAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(EAt?UAe(t,"length",r,!0,!0):UAe(t,"length",r)),t}});var rE=ye((Whr,iR)=>{"use strict";var UH=lA(),nR=rR(),CAt=jAe(),LAt=sA(),ZAe=nR("%Function.prototype.apply%"),YAe=nR("%Function.prototype.call%"),KAe=nR("%Reflect.apply%",!0)||UH.call(YAe,ZAe),WAe=$4(),PAt=nR("%Math.max%");iR.exports=function(t){if(typeof t!="function")throw new LAt("a function is required");var r=KAe(UH,YAe,arguments);return CAt(r,1+PAt(0,t.length-(arguments.length-1)),!0)};var XAe=function(){return KAe(UH,ZAe,arguments)};WAe?WAe(iR.exports,"apply",{value:XAe}):iR.exports.apply=XAe});var vA=ye((Xhr,QAe)=>{"use strict";var JAe=rR(),$Ae=rE(),IAt=$Ae(JAe("String.prototype.indexOf"));QAe.exports=function(t,r){var n=JAe(t,!!r);return typeof n=="function"&&IAt(t,".prototype.")>-1?$Ae(n):n}});var r5e=ye((Zhr,t5e)=>{"use strict";var RAt=J4()(),DAt=vA(),VH=DAt("Object.prototype.toString"),aR=function(t){return RAt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:VH(t)==="[object Arguments]"},e5e=function(t){return aR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&VH(t)!=="[object Array]"&&VH(t.callee)==="[object Function]"},FAt=function(){return aR(arguments)}();aR.isLegacyArguments=e5e;t5e.exports=FAt?aR:e5e});var a5e=ye((Yhr,n5e)=>{"use strict";var zAt=Object.prototype.toString,qAt=Function.prototype.toString,OAt=/^\s*(?:function)?\*/,i5e=J4()(),GH=Object.getPrototypeOf,BAt=function(){if(!i5e)return!1;try{return Function("return function*() {}")()}catch(e){}},HH;n5e.exports=function(t){if(typeof t!="function")return!1;if(OAt.test(qAt.call(t)))return!0;if(!i5e){var r=zAt.call(t);return r==="[object GeneratorFunction]"}if(!GH)return!1;if(typeof HH=="undefined"){var n=BAt();HH=n?GH(n):!1}return GH(t)===HH}});var u5e=ye((Khr,l5e)=>{"use strict";var s5e=Function.prototype.toString,pA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,WH,oR;if(typeof pA=="function"&&typeof Object.defineProperty=="function")try{WH=Object.defineProperty({},"length",{get:function(){throw oR}}),oR={},pA(function(){throw 42},null,WH)}catch(e){e!==oR&&(pA=null)}else pA=null;var NAt=/^\s*class\b/,XH=function(t){try{var r=s5e.call(t);return NAt.test(r)}catch(n){return!1}},jH=function(t){try{return XH(t)?!1:(s5e.call(t),!0)}catch(r){return!1}},sR=Object.prototype.toString,UAt="[object Object]",VAt="[object Function]",GAt="[object GeneratorFunction]",HAt="[object HTMLAllCollection]",jAt="[object HTML document.all class]",WAt="[object HTMLCollection]",XAt=typeof Symbol=="function"&&!!Symbol.toStringTag,ZAt=!(0 in[,]),ZH=function(){return!1};typeof document=="object"&&(o5e=document.all,sR.call(o5e)===sR.call(document.all)&&(ZH=function(t){if((ZAt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=sR.call(t);return(r===HAt||r===jAt||r===WAt||r===UAt)&&t("")==null}catch(n){}return!1}));var o5e;l5e.exports=pA?function(t){if(ZH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{pA(t,null,WH)}catch(r){if(r!==oR)return!1}return!XH(t)&&jH(t)}:function(t){if(ZH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(XAt)return jH(t);if(XH(t))return!1;var r=sR.call(t);return r!==VAt&&r!==GAt&&!/^\[object HTML/.test(r)?!1:jH(t)}});var YH=ye((Jhr,f5e)=>{"use strict";var YAt=u5e(),KAt=Object.prototype.toString,c5e=Object.prototype.hasOwnProperty,JAt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),KAt.call(t)==="[object Array]"?JAt(t,r,i):typeof t=="string"?$At(t,r,i):QAt(t,r,i)};f5e.exports=e5t});var JH=ye(($hr,h5e)=>{"use strict";var KH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t5t=typeof globalThis=="undefined"?window:globalThis;h5e.exports=function(){for(var t=[],r=0;r{"use strict";var uR=YH(),r5t=JH(),d5e=rE(),ej=vA(),lR=w2(),i5t=ej("Object.prototype.toString"),p5e=J4()(),v5e=typeof globalThis=="undefined"?window:globalThis,QH=r5t(),tj=ej("String.prototype.slice"),$H=Object.getPrototypeOf,n5t=ej("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:o5t(t)}return lR?a5t(t):null}});var T5e=ye((edr,w5e)=>{"use strict";var y5e=YH(),s5t=JH(),ij=vA(),l5t=ij("Object.prototype.toString"),_5e=J4()(),fR=w2(),u5t=typeof globalThis=="undefined"?window:globalThis,x5e=s5t(),c5t=ij("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return fR?h5t(t):!1}});var oj=ye(uu=>{"use strict";var d5t=r5e(),v5t=a5e(),Wg=m5e(),A5e=T5e();function gA(e){return e.call.bind(e)}var S5e=typeof BigInt!="undefined",M5e=typeof Symbol!="undefined",K0=gA(Object.prototype.toString),p5t=gA(Number.prototype.valueOf),g5t=gA(String.prototype.valueOf),m5t=gA(Boolean.prototype.valueOf);S5e&&(E5e=gA(BigInt.prototype.valueOf));var E5e;M5e&&(k5e=gA(Symbol.prototype.valueOf));var k5e;function nE(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}uu.isArgumentsObject=d5t;uu.isGeneratorFunction=v5t;uu.isTypedArray=A5e;function y5t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}uu.isPromise=y5t;function _5t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):A5e(e)||L5e(e)}uu.isArrayBufferView=_5t;function x5t(e){return Wg(e)==="Uint8Array"}uu.isUint8Array=x5t;function b5t(e){return Wg(e)==="Uint8ClampedArray"}uu.isUint8ClampedArray=b5t;function w5t(e){return Wg(e)==="Uint16Array"}uu.isUint16Array=w5t;function T5t(e){return Wg(e)==="Uint32Array"}uu.isUint32Array=T5t;function A5t(e){return Wg(e)==="Int8Array"}uu.isInt8Array=A5t;function S5t(e){return Wg(e)==="Int16Array"}uu.isInt16Array=S5t;function M5t(e){return Wg(e)==="Int32Array"}uu.isInt32Array=M5t;function E5t(e){return Wg(e)==="Float32Array"}uu.isFloat32Array=E5t;function k5t(e){return Wg(e)==="Float64Array"}uu.isFloat64Array=k5t;function C5t(e){return Wg(e)==="BigInt64Array"}uu.isBigInt64Array=C5t;function L5t(e){return Wg(e)==="BigUint64Array"}uu.isBigUint64Array=L5t;function hR(e){return K0(e)==="[object Map]"}hR.working=typeof Map!="undefined"&&hR(new Map);function P5t(e){return typeof Map=="undefined"?!1:hR.working?hR(e):e instanceof Map}uu.isMap=P5t;function dR(e){return K0(e)==="[object Set]"}dR.working=typeof Set!="undefined"&&dR(new Set);function I5t(e){return typeof Set=="undefined"?!1:dR.working?dR(e):e instanceof Set}uu.isSet=I5t;function vR(e){return K0(e)==="[object WeakMap]"}vR.working=typeof WeakMap!="undefined"&&vR(new WeakMap);function R5t(e){return typeof WeakMap=="undefined"?!1:vR.working?vR(e):e instanceof WeakMap}uu.isWeakMap=R5t;function aj(e){return K0(e)==="[object WeakSet]"}aj.working=typeof WeakSet!="undefined"&&aj(new WeakSet);function D5t(e){return aj(e)}uu.isWeakSet=D5t;function pR(e){return K0(e)==="[object ArrayBuffer]"}pR.working=typeof ArrayBuffer!="undefined"&&pR(new ArrayBuffer);function C5e(e){return typeof ArrayBuffer=="undefined"?!1:pR.working?pR(e):e instanceof ArrayBuffer}uu.isArrayBuffer=C5e;function gR(e){return K0(e)==="[object DataView]"}gR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&gR(new DataView(new ArrayBuffer(1),0,1));function L5e(e){return typeof DataView=="undefined"?!1:gR.working?gR(e):e instanceof DataView}uu.isDataView=L5e;var nj=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function iE(e){return K0(e)==="[object SharedArrayBuffer]"}function P5e(e){return typeof nj=="undefined"?!1:(typeof iE.working=="undefined"&&(iE.working=iE(new nj)),iE.working?iE(e):e instanceof nj)}uu.isSharedArrayBuffer=P5e;function F5t(e){return K0(e)==="[object AsyncFunction]"}uu.isAsyncFunction=F5t;function z5t(e){return K0(e)==="[object Map Iterator]"}uu.isMapIterator=z5t;function q5t(e){return K0(e)==="[object Set Iterator]"}uu.isSetIterator=q5t;function O5t(e){return K0(e)==="[object Generator]"}uu.isGeneratorObject=O5t;function B5t(e){return K0(e)==="[object WebAssembly.Module]"}uu.isWebAssemblyCompiledModule=B5t;function I5e(e){return nE(e,p5t)}uu.isNumberObject=I5e;function R5e(e){return nE(e,g5t)}uu.isStringObject=R5e;function D5e(e){return nE(e,m5t)}uu.isBooleanObject=D5e;function F5e(e){return S5e&&nE(e,E5e)}uu.isBigIntObject=F5e;function z5e(e){return M5e&&nE(e,k5e)}uu.isSymbolObject=z5e;function N5t(e){return I5e(e)||R5e(e)||D5e(e)||F5e(e)||z5e(e)}uu.isBoxedPrimitive=N5t;function U5t(e){return typeof Uint8Array!="undefined"&&(C5e(e)||P5e(e))}uu.isAnyArrayBuffer=U5t;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(uu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var sj=ye((rdr,q5e)=>{q5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var dj=ye(cu=>{var O5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),fj(t)?r.showHidden=t:t&&cu._extend(r,t),S2(r.showHidden)&&(r.showHidden=!1),S2(r.depth)&&(r.depth=2),S2(r.colors)&&(r.colors=!1),S2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=G5t),xR(r,e,r.depth)}cu.inspect=U_;U_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};U_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function G5t(e,t){var r=U_.styles[t];return r?"\x1B["+U_.colors[r][0]+"m"+e+"\x1B["+U_.colors[r][1]+"m":e}function H5t(e,t){return e}function j5t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function xR(e,t,r){if(e.customInspect&&t&&_R(t.inspect)&&t.inspect!==cu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return TR(n)||(n=xR(e,n,r)),n}var i=W5t(e,t);if(i)return i;var a=Object.keys(t),o=j5t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),oE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return lj(t);if(a.length===0){if(_R(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(aE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(bR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(oE(t))return lj(t)}var l="",u=!1,c=["{","}"];if(N5e(t)&&(u=!0,c=["[","]"]),_R(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(aE(t)&&(l=" "+RegExp.prototype.toString.call(t)),bR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),oE(t)&&(l=" "+lj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return aE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=X5t(e,t,r,o,a):h=a.map(function(d){return cj(e,t,r,o,d,u)}),e.seen.pop(),Z5t(h,l,c)}function W5t(e,t){if(S2(t))return e.stylize("undefined","undefined");if(TR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(U5e(t))return e.stylize(""+t,"number");if(fj(t))return e.stylize(""+t,"boolean");if(wR(t))return e.stylize("null","null")}function lj(e){return"["+Error.prototype.toString.call(e)+"]"}function X5t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),ea=0):(ea=1,_o(po))}e.timer.flush=function(){Lo(),ko()};function Lo(){for(var X=Date.now(),se=_n;se;)X>=se.t&&se.c(X-se.t)&&(se.c=null),se=se.n;return X}function ko(){for(var X,se=_n,Te=1/0;se;)se.c?(se.t=0;--ot)Wr.push(Ve[dr[Ur[ot]][2]]);for(ot=+gi;ot1&&Ir(X[Te[qe-2]],X[Te[qe-1]],X[Ve])<=0;)--qe;Te[qe++]=Ve}return Te.slice(0,qe)}function ul(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return ie(X,Fl),X};var Fl=e.geom.polygon.prototype=[];Fl.area=function(){for(var X=-1,se=this.length,Te,qe=this[se-1],Ve=0;++XJe)ot=ot.L;else if(Pt=se-xo(ot,Te),Pt>Je){if(!ot.R){qe=ot;break}ot=ot.R}else{Ye>-Je?(qe=ot.P,Ve=ot):Pt>-Je?(qe=ot,Ve=ot.N):qe=Ve=ot;break}var Xt=bs(X);if(zs.insert(qe,Xt),!(!qe&&!Ve)){if(qe===Ve){qo(qe),Ve=bs(qe.site),zs.insert(Xt,Ve),Xt.edge=Ve.edge=nf(qe.site,Xt.site),oa(qe),oa(Ve);return}if(!Ve){Xt.edge=nf(qe.site,Xt.site);return}qo(qe),qo(Ve);var dr=qe.site,pr=dr.x,Ur=dr.y,zr=X.x-pr,gi=X.y-Ur,xi=Ve.site,Wr=xi.x-pr,ii=xi.y-Ur,di=2*(zr*ii-gi*Wr),Li=zr*zr+gi*gi,Ti=Wr*Wr+ii*ii,Qr={x:(ii*Li-gi*Ti)/di+pr,y:(zr*Ti-Wr*Li)/di+Ur};pl(Ve.edge,dr,xi,Qr),Xt.edge=nf(dr,X,null,Qr),Ve.edge=nf(X,xi,null,Qr),oa(qe),oa(Ve)}}function zl(X,se){var Te=X.site,qe=Te.x,Ve=Te.y,Ye=Ve-se;if(!Ye)return qe;var Pt=X.P;if(!Pt)return-1/0;Te=Pt.site;var ot=Te.x,Xt=Te.y,dr=Xt-se;if(!dr)return ot;var pr=ot-qe,Ur=1/Ye-1/dr,zr=pr/dr;return Ur?(-zr+Math.sqrt(zr*zr-2*Ur*(pr*pr/(-2*dr)-Xt+dr/2+Ve-Ye/2)))/Ur+qe:(qe+ot)/2}function xo(X,se){var Te=X.N;if(Te)return zl(Te,se);var qe=X.site;return qe.y===se?qe.x:1/0}function Kl(X){this.site=X,this.edges=[]}Kl.prototype.prepare=function(){for(var X=this.edges,se=X.length,Te;se--;)Te=X[se].edge,(!Te.b||!Te.a)&&X.splice(se,1);return X.sort(Hl),X.length};function Ns(X){for(var se=X[0][0],Te=X[1][0],qe=X[0][1],Ve=X[1][1],Ye,Pt,ot,Xt,dr=Ks,pr=dr.length,Ur,zr,gi,xi,Wr,ii;pr--;)if(Ur=dr[pr],!(!Ur||!Ur.prepare()))for(gi=Ur.edges,xi=gi.length,zr=0;zrJe||p(Xt-Pt)>Je)&&(gi.splice(zr,0,new Zc(Vf(Ur.site,ii,p(ot-se)Je?{x:se,y:p(Ye-se)Je?{x:p(Pt-Ve)Je?{x:Te,y:p(Ye-Te)Je?{x:p(Pt-qe)=-We)){var zr=Xt*Xt+dr*dr,gi=pr*pr+ii*ii,xi=(ii*zr-dr*gi)/Ur,Wr=(Xt*gi-pr*zr)/Ur,ii=Wr+ot,di=Su.pop()||new ac;di.arc=X,di.site=Ve,di.x=xi+Pt,di.y=ii+Math.sqrt(xi*xi+Wr*Wr),di.cy=ii,X.circle=di;for(var Li=null,Ti=Yl._;Ti;)if(di.y0)){if(Wr/=gi,gi<0){if(Wr0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}if(Wr=Te-ot,!(!gi&&Wr<0)){if(Wr/=gi,gi<0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}else if(gi>0){if(Wr0)){if(Wr/=xi,xi<0){if(Wr0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}if(Wr=qe-Xt,!(!xi&&Wr<0)){if(Wr/=xi,xi<0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}else if(xi>0){if(Wr0&&(Ve.a={x:ot+Ur*gi,y:Xt+Ur*xi}),zr<1&&(Ve.b={x:ot+zr*gi,y:Xt+zr*xi}),Ve}}}}}}function ql(X){for(var se=cl,Te=Oo(X[0][0],X[0][1],X[1][0],X[1][1]),qe=se.length,Ve;qe--;)Ve=se[qe],(!Pc(Ve,X)||!Te(Ve)||p(Ve.a.x-Ve.b.x)=Ye)return;if(pr>zr){if(!qe)qe={x:xi,y:Pt};else if(qe.y>=ot)return;Te={x:xi,y:ot}}else{if(!qe)qe={x:xi,y:ot};else if(qe.y1)if(pr>zr){if(!qe)qe={x:(Pt-di)/ii,y:Pt};else if(qe.y>=ot)return;Te={x:(ot-di)/ii,y:ot}}else{if(!qe)qe={x:(ot-di)/ii,y:ot};else if(qe.y=Ye)return;Te={x:Ye,y:ii*Ye+di}}else{if(!qe)qe={x:Ye,y:ii*Ye+di};else if(qe.x=pr&&di.x<=zr&&di.y>=Ur&&di.y<=gi?[[pr,gi],[zr,gi],[zr,Ur],[pr,Ur]]:[];Li.point=Xt[Wr]}),dr}function ot(Xt){return Xt.map(function(dr,pr){return{x:Math.round(qe(dr,pr)/Je)*Je,y:Math.round(Ve(dr,pr)/Je)*Je,i:pr}})}return Pt.links=function(Xt){return sc(ot(Xt)).edges.filter(function(dr){return dr.l&&dr.r}).map(function(dr){return{source:Xt[dr.l.i],target:Xt[dr.r.i]}})},Pt.triangles=function(Xt){var dr=[];return sc(ot(Xt)).cells.forEach(function(pr,Ur){for(var zr=pr.site,gi=pr.edges.sort(Hl),xi=-1,Wr=gi.length,ii,di,Li=gi[Wr-1].edge,Ti=Li.l===zr?Li.r:Li.l;++xiTi&&(Ti=pr.x),pr.y>Qr&&(Qr=pr.y),gi.push(pr.x),xi.push(pr.y);else for(Wr=0;WrTi&&(Ti=Pn),kn>Qr&&(Qr=kn),gi.push(Pn),xi.push(kn)}var Bn=Ti-di,na=Qr-Li;Bn>na?Qr=Li+Bn:Ti=di+na;function Ea(Da,go,Is,Ms,Xs,Un,ja,Fo){if(!(isNaN(Is)||isNaN(Ms)))if(Da.leaf){var Uo=Da.x,$s=Da.y;if(Uo!=null)if(p(Uo-Is)+p($s-Ms)<.01)Ia(Da,go,Is,Ms,Xs,Un,ja,Fo);else{var Ml=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Ml,Uo,$s,Xs,Un,ja,Fo),Ia(Da,go,Is,Ms,Xs,Un,ja,Fo)}else Da.x=Is,Da.y=Ms,Da.point=go}else Ia(Da,go,Is,Ms,Xs,Un,ja,Fo)}function Ia(Da,go,Is,Ms,Xs,Un,ja,Fo){var Uo=(Xs+ja)*.5,$s=(Un+Fo)*.5,Ml=Is>=Uo,bu=Ms>=$s,dl=bu<<1|Ml;Da.leaf=!1,Da=Da.nodes[dl]||(Da.nodes[dl]=$l()),Ml?Xs=Uo:ja=Uo,bu?Un=$s:Fo=$s,Ea(Da,go,Is,Ms,Xs,Un,ja,Fo)}var yo=$l();if(yo.add=function(Da){Ea(yo,Da,+Ur(Da,++Wr),+zr(Da,Wr),di,Li,Ti,Qr)},yo.visit=function(Da){fl(Da,yo,di,Li,Ti,Qr)},yo.find=function(Da){return lc(yo,Da[0],Da[1],di,Li,Ti,Qr)},Wr=-1,se==null){for(;++WrYe||zr>Pt||gi=Pn,na=Te>=kn,Ea=na<<1|Bn,Ia=Ea+4;EaTe&&(Ye=se.slice(Te,Ye),ot[Pt]?ot[Pt]+=Ye:ot[++Pt]=Ye),(qe=qe[0])===(Ve=Ve[0])?ot[Pt]?ot[Pt]+=Ve:ot[++Pt]=Ve:(ot[++Pt]=null,Xt.push({i:Pt,x:Hs(qe,Ve)})),Te=uc.lastIndex;return Te=0&&!(qe=e.interpolators[Te](X,se)););return qe}e.interpolators=[function(X,se){var Te=typeof se;return(Te==="string"?Jr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Fu:Go:se instanceof Yn?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Es:Hs)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],qe=[],Ve=X.length,Ye=se.length,Pt=Math.min(X.length,se.length),ot;for(ot=0;ot=0?X.slice(0,se):X,qe=se>=0?X.slice(se+1):"in";return Te=od.get(Te)||Os,qe=Po.get(qe)||G,sd(qe(Te.apply(null,t.call(arguments,1))))};function sd(X){return function(se){return se<=0?0:se>=1?1:X(se)}}function Ko(X){return function(se){return 1-X(1-se)}}function Pa(X){return function(se){return .5*(se<.5?X(2*se):2-X(2-2*se))}}function of(X){return X*X}function Hu(X){return X*X*X}function wl(X){if(X<=0)return 0;if(X>=1)return 1;var se=X*X,Te=se*X;return 4*(X<.5?Te:3*(X-se)+Te-.75)}function Hf(X){return function(se){return Math.pow(se,X)}}function Ic(X){return 1-Math.cos(X*Kt)}function yf(X){return Math.pow(2,10*(X-1))}function Ol(X){return 1-Math.sqrt(1-X*X)}function Ah(X,se){var Te;return arguments.length<2&&(se=.45),arguments.length?Te=se/xt*Math.asin(1/X):(X=1,Te=se/4),function(qe){return 1+X*Math.pow(2,-10*qe)*Math.sin((qe-Te)*xt/se)}}function Qf(X){return X||(X=1.70158),function(se){return se*se*((X+1)*se-X)}}function _f(X){return X<1/2.75?7.5625*X*X:X<2/2.75?7.5625*(X-=1.5/2.75)*X+.75:X<2.5/2.75?7.5625*(X-=2.25/2.75)*X+.9375:7.5625*(X-=2.625/2.75)*X+.984375}e.interpolateHcl=Yc;function Yc(X,se){X=e.hcl(X),se=e.hcl(se);var Te=X.h,qe=X.c,Ve=X.l,Ye=se.h-Te,Pt=se.c-qe,ot=se.l-Ve;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?se.c:qe),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(Xt){return Xr(Te+Ye*Xt,qe+Pt*Xt,Ve+ot*Xt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,qe=X.s,Ve=X.l,Ye=se.h-Te,Pt=se.s-qe,ot=se.l-Ve;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?se.s:qe),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(Xt){return tr(Te+Ye*Xt,qe+Pt*Xt,Ve+ot*Xt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,qe=X.a,Ve=X.b,Ye=se.l-Te,Pt=se.a-qe,ot=se.b-Ve;return function(Xt){return yn(Te+Ye*Xt,qe+Pt*Xt,Ve+ot*Xt)+""}}e.interpolateRound=ju;function ju(X,se){return se-=X,function(Te){return Math.round(X+se*Te)}}e.transform=function(X){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Te){if(Te!=null){se.setAttribute("transform",Te);var qe=se.transform.baseVal.consolidate()}return new jf(qe?qe.matrix:Kc)})(X)};function jf(X){var se=[X.a,X.b],Te=[X.c,X.d],qe=sf(se),Ve=cc(se,Te),Ye=sf(Bl(Te,se,-Ve))||0;se[0]*Te[1]180?se+=360:se-X>180&&(X+=360),qe.push({i:Te.push(Rc(Te)+"rotate(",null,")")-2,x:Hs(X,se)})):se&&Te.push(Rc(Te)+"rotate("+se+")")}function Wh(X,se,Te,qe){X!==se?qe.push({i:Te.push(Rc(Te)+"skewX(",null,")")-2,x:Hs(X,se)}):se&&Te.push(Rc(Te)+"skewX("+se+")")}function rh(X,se,Te,qe){if(X[0]!==se[0]||X[1]!==se[1]){var Ve=Te.push(Rc(Te)+"scale(",null,",",null,")");qe.push({i:Ve-4,x:Hs(X[0],se[0])},{i:Ve-2,x:Hs(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function lf(X,se){var Te=[],qe=[];return X=e.transform(X),se=e.transform(se),gs(X.translate,se.translate,Te,qe),Wf(X.rotate,se.rotate,Te,qe),Wh(X.skew,se.skew,Te,qe),rh(X.scale,se.scale,Te,qe),X=se=null,function(Ve){for(var Ye=-1,Pt=qe.length,ot;++Ye0?Ye=Qr:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ye=0})):Qr>0&&(se.start({type:"start",alpha:Ye=Qr}),Te=No(X.tick)),X):Ye},X.start=function(){var Qr,Pn=gi.length,kn=xi.length,Bn=qe[0],na=qe[1],Ea,Ia;for(Qr=0;Qr=0;)Ye.push(pr=dr[Xt]),pr.parent=ot,pr.depth=ot.depth+1;Te&&(ot.value=0),ot.children=dr}else Te&&(ot.value=+Te.call(qe,ot,ot.depth)||0),delete ot.children;return wc(Ve,function(Ur){var zr,gi;X&&(zr=Ur.children)&&zr.sort(X),Te&&(gi=Ur.parent)&&(gi.value+=Ur.value)}),Pt}return qe.sort=function(Ve){return arguments.length?(X=Ve,qe):X},qe.children=function(Ve){return arguments.length?(se=Ve,qe):se},qe.value=function(Ve){return arguments.length?(Te=Ve,qe):Te},qe.revalue=function(Ve){return Te&&(Fc(Ve,function(Ye){Ye.children&&(Ye.value=0)}),wc(Ve,function(Ye){var Pt;Ye.children||(Ye.value=+Te.call(qe,Ye,Ye.depth)||0),(Pt=Ye.parent)&&(Pt.value+=Ye.value)})),Ve},qe};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=qu,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(Ve=X.children)&&(qe=Ve.length))for(var qe,Ve;--qe>=0;)Te.push(Ve[qe])}function wc(X,se){for(var Te=[X],qe=[];(X=Te.pop())!=null;)if(qe.push(X),(Pt=X.children)&&(Ye=Pt.length))for(var Ve=-1,Ye,Pt;++VeVe&&(Ve=ot),qe.push(ot)}for(Pt=0;Ptqe&&(Te=se,qe=Ve);return Te}function Us(X){return X.reduce(wf,0)}function wf(X,se){return X+se[1]}e.layout.histogram=function(){var X=!0,se=Number,Te=Rf,qe=zc;function Ve(Ye,zr){for(var ot=[],Xt=Ye.map(se,this),dr=Te.call(this,Xt,zr),pr=qe.call(this,dr,Xt,zr),Ur,zr=-1,gi=Xt.length,xi=pr.length-1,Wr=X?1:1/gi,ii;++zr0)for(zr=-1;++zr=dr[0]&&ii<=dr[1]&&(Ur=ot[e.bisect(pr,ii,1,xi)-1],Ur.y+=Wr,Ur.push(Ye[zr]));return ot}return Ve.value=function(Ye){return arguments.length?(se=Ye,Ve):se},Ve.range=function(Ye){return arguments.length?(Te=hi(Ye),Ve):Te},Ve.bins=function(Ye){return arguments.length?(qe=typeof Ye=="number"?function(Pt){return Wu(Pt,Ye)}:hi(Ye),Ve):qe},Ve.frequency=function(Ye){return arguments.length?(X=!!Ye,Ve):X},Ve};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,qe=+X[0],Ve=(X[1]-qe)/se,Ye=[];++Te<=se;)Ye[Te]=Ve*Te+qe;return Ye}function Rf(X){return[e.min(X),e.max(X)]}e.layout.pack=function(){var X=e.layout.hierarchy().sort(Xu),se=0,Te=[1,1],qe;function Ve(Ye,Pt){var ot=X.call(this,Ye,Pt),Xt=ot[0],dr=Te[0],pr=Te[1],Ur=qe==null?Math.sqrt:typeof qe=="function"?qe:function(){return qe};if(Xt.x=Xt.y=0,wc(Xt,function(gi){gi.r=+Ur(gi.value)}),wc(Xt,ah),se){var zr=se*(qe?1:Math.max(2*Xt.r/dr,2*Xt.r/pr))/2;wc(Xt,function(gi){gi.r+=zr}),wc(Xt,ah),wc(Xt,function(gi){gi.r-=zr})}return Tc(Xt,dr/2,pr/2,qe?1:1/Math.max(2*Xt.r/dr,2*Xt.r/pr)),ot}return Ve.size=function(Ye){return arguments.length?(Te=Ye,Ve):Te},Ve.radius=function(Ye){return arguments.length?(qe=Ye==null||typeof Ye=="function"?Ye:+Ye,Ve):qe},Ve.padding=function(Ye){return arguments.length?(se=+Ye,Ve):se},zu(Ve,X)};function Xu(X,se){return X.value-se.value}function cf(X,se){var Te=X._pack_next;X._pack_next=se,se._pack_prev=X,se._pack_next=Te,Te._pack_prev=se}function Zf(X,se){X._pack_next=se,se._pack_prev=X}function Wl(X,se){var Te=se.x-X.x,qe=se.y-X.y,Ve=X.r+se.r;return .999*Ve*Ve>Te*Te+qe*qe}function ah(X){if(!(se=X.children)||!(zr=se.length))return;var se,Te=1/0,qe=-1/0,Ve=1/0,Ye=-1/0,Pt,ot,Xt,dr,pr,Ur,zr;function gi(Qr){Te=Math.min(Qr.x-Qr.r,Te),qe=Math.max(Qr.x+Qr.r,qe),Ve=Math.min(Qr.y-Qr.r,Ve),Ye=Math.max(Qr.y+Qr.r,Ye)}if(se.forEach(Zu),Pt=se[0],Pt.x=-Pt.r,Pt.y=0,gi(Pt),zr>1&&(ot=se[1],ot.x=ot.r,ot.y=0,gi(ot),zr>2))for(Xt=se[2],Tl(Pt,ot,Xt),gi(Xt),cf(Pt,Xt),Pt._pack_prev=Xt,cf(Xt,ot),ot=Pt._pack_next,dr=3;drii.x&&(ii=Pn),Pn.depth>di.depth&&(di=Pn)});var Li=se(Wr,ii)/2-Wr.x,Ti=Te[0]/(ii.x+se(ii,Wr)/2+Li),Qr=Te[1]/(di.depth||1);Fc(gi,function(Pn){Pn.x=(Pn.x+Li)*Ti,Pn.y=Pn.depth*Qr})}return zr}function Ye(pr){for(var Ur={A:null,children:[pr]},zr=[Ur],gi;(gi=zr.pop())!=null;)for(var xi=gi.children,Wr,ii=0,di=xi.length;ii0&&(fc(kt(Wr,pr,zr),pr,Pn),di+=Pn,Li+=Pn),Ti+=Wr.m,di+=gi.m,Qr+=ii.m,Li+=xi.m;Wr&&!ff(xi)&&(xi.t=Wr,xi.m+=Ti-Li),gi&&!Oc(ii)&&(ii.t=gi,ii.m+=di-Qr,zr=pr)}return zr}function dr(pr){pr.x*=Te[0],pr.y=pr.depth*Te[1]}return Ve.separation=function(pr){return arguments.length?(se=pr,Ve):se},Ve.size=function(pr){return arguments.length?(qe=(Te=pr)==null?dr:null,Ve):qe?null:Te},Ve.nodeSize=function(pr){return arguments.length?(qe=(Te=pr)==null?null:dr,Ve):qe?Te:null},zu(Ve,X)};function vu(X,se){return X.parent==se.parent?1:2}function Oc(X){var se=X.children;return se.length?se[0]:X.t}function ff(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var qe=Te/(se.i-X.i);se.c-=qe,se.s+=Te,X.c+=qe,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,qe=X.children,Ve=qe.length,Ye;--Ve>=0;)Ye=qe[Ve],Ye.z+=se,Ye.m+=se,se+=Ye.s+(Te+=Ye.c)}function kt(X,se,Te){return X.a.parent===se.parent?X.a:Te}e.layout.cluster=function(){var X=e.layout.hierarchy().sort(null).value(null),se=vu,Te=[1,1],qe=!1;function Ve(Ye,Pt){var ot=X.call(this,Ye,Pt),Xt=ot[0],dr,pr=0;wc(Xt,function(Wr){var ii=Wr.children;ii&&ii.length?(Wr.x=Er(ii),Wr.y=Zt(ii)):(Wr.x=dr?pr+=se(Wr,dr):0,Wr.y=0,dr=Wr)});var Ur=xr(Xt),zr=Kr(Xt),gi=Ur.x-se(Ur,zr)/2,xi=zr.x+se(zr,Ur)/2;return wc(Xt,qe?function(Wr){Wr.x=(Wr.x-Xt.x)*Te[0],Wr.y=(Xt.y-Wr.y)*Te[1]}:function(Wr){Wr.x=(Wr.x-gi)/(xi-gi)*Te[0],Wr.y=(1-(Xt.y?Wr.y/Xt.y:1))*Te[1]}),ot}return Ve.separation=function(Ye){return arguments.length?(se=Ye,Ve):se},Ve.size=function(Ye){return arguments.length?(qe=(Te=Ye)==null,Ve):qe?null:Te},Ve.nodeSize=function(Ye){return arguments.length?(qe=(Te=Ye)!=null,Ve):qe?Te:null},zu(Ve,X)};function Zt(X){return 1+e.max(X,function(se){return se.y})}function Er(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function xr(X){var se=X.children;return se&&se.length?xr(se[0]):X}function Kr(X){var se=X.children,Te;return se&&(Te=se.length)?Kr(se[Te-1]):X}e.layout.treemap=function(){var X=e.layout.hierarchy(),se=Math.round,Te=[1,1],qe=null,Ve=Mi,Ye=!1,Pt,ot="squarify",Xt=.5*(1+Math.sqrt(5));function dr(Wr,ii){for(var di=-1,Li=Wr.length,Ti,Qr;++di0;)Li.push(Qr=Ti[na-1]),Li.area+=Qr.area,ot!=="squarify"||(kn=zr(Li,Bn))<=Pn?(Ti.pop(),Pn=kn):(Li.area-=Li.pop().area,gi(Li,Bn,di,!1),Bn=Math.min(di.dx,di.dy),Li.length=Li.area=0,Pn=1/0);Li.length&&(gi(Li,Bn,di,!0),Li.length=Li.area=0),ii.forEach(pr)}}function Ur(Wr){var ii=Wr.children;if(ii&&ii.length){var di=Ve(Wr),Li=ii.slice(),Ti,Qr=[];for(dr(Li,di.dx*di.dy/Wr.value),Qr.area=0;Ti=Li.pop();)Qr.push(Ti),Qr.area+=Ti.area,Ti.z!=null&&(gi(Qr,Ti.z?di.dx:di.dy,di,!Li.length),Qr.length=Qr.area=0);ii.forEach(Ur)}}function zr(Wr,ii){for(var di=Wr.area,Li,Ti=0,Qr=1/0,Pn=-1,kn=Wr.length;++PnTi&&(Ti=Li));return di*=di,ii*=ii,di?Math.max(ii*Ti*Xt/di,di/(ii*Qr*Xt)):1/0}function gi(Wr,ii,di,Li){var Ti=-1,Qr=Wr.length,Pn=di.x,kn=di.y,Bn=ii?se(Wr.area/ii):0,na;if(ii==di.dx){for((Li||Bn>di.dy)&&(Bn=di.dy);++Tidi.dx)&&(Bn=di.dx);++Ti1);return X+se*qe*Math.sqrt(-2*Math.log(Ye)/Ye)}},logNormal:function(){var X=e.random.normal.apply(e,arguments);return function(){return Math.exp(X())}},bates:function(X){var se=e.random.irwinHall(X);return function(){return se()/X}},irwinHall:function(X){return function(){for(var se=0,Te=0;Te2?Fi:On,dr=qe?Mu:Sh;return Ve=Xt(X,se,dr,Te),Ye=Xt(se,X,dr,bl),ot}function ot(Xt){return Ve(Xt)}return ot.invert=function(Xt){return Ye(Xt)},ot.domain=function(Xt){return arguments.length?(X=Xt.map(Number),Pt()):X},ot.range=function(Xt){return arguments.length?(se=Xt,Pt()):se},ot.rangeRound=function(Xt){return ot.range(Xt).interpolate(ju)},ot.clamp=function(Xt){return arguments.length?(qe=Xt,Pt()):qe},ot.interpolate=function(Xt){return arguments.length?(Te=Xt,Pt()):Te},ot.ticks=function(Xt){return Ua(X,Xt)},ot.tickFormat=function(Xt,dr){return d3_scale_linearTickFormat(X,Xt,dr)},ot.nice=function(Xt){return Ra(X,Xt),Pt()},ot.copy=function(){return ta(X,se,Te,qe)},Pt()}function Ca(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Yi(X,$i(La(X,se)[2])),Yi(X,$i(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=dn(X),qe=Te[1]-Te[0],Ve=Math.pow(10,Math.floor(Math.log(qe/se)/Math.LN10)),Ye=se/qe*Ve;return Ye<=.15?Ve*=10:Ye<=.35?Ve*=5:Ye<=.75&&(Ve*=2),Te[0]=Math.ceil(Te[0]/Ve)*Ve,Te[1]=Math.floor(Te[1]/Ve)*Ve+Ve*.5,Te[2]=Ve,Te}function Ua(X,se){return e.range.apply(e,La(X,se))}var Zn={s:1,g:1,p:1,r:1,e:1};function Dn(X){return-Math.floor(Math.log(X)/Math.LN10+.01)}function Ka(X,se){var Te=Dn(se[2]);return X in Zn?Math.abs(Te-Dn(Math.max(p(se[0]),p(se[1]))))+ +(X!=="e"):Te-(X==="%")*2}e.scale.log=function(){return bo(e.scale.linear().domain([0,1]),10,!0,[1,10])};function bo(X,se,Te,qe){function Ve(ot){return(Te?Math.log(ot<0?0:ot):-Math.log(ot>0?0:-ot))/Math.log(se)}function Ye(ot){return Te?Math.pow(se,ot):-Math.pow(se,-ot)}function Pt(ot){return X(Ve(ot))}return Pt.invert=function(ot){return Ye(X.invert(ot))},Pt.domain=function(ot){return arguments.length?(Te=ot[0]>=0,X.domain((qe=ot.map(Number)).map(Ve)),Pt):qe},Pt.base=function(ot){return arguments.length?(se=+ot,X.domain(qe.map(Ve)),Pt):se},Pt.nice=function(){var ot=Yi(qe.map(Ve),Te?Math:Zo);return X.domain(ot),qe=ot.map(Ye),Pt},Pt.ticks=function(){var ot=dn(qe),Xt=[],dr=ot[0],pr=ot[1],Ur=Math.floor(Ve(dr)),zr=Math.ceil(Ve(pr)),gi=se%1?2:se;if(isFinite(zr-Ur)){if(Te){for(;Ur0;xi--)Xt.push(Ye(Ur)*xi);for(Ur=0;Xt[Ur]pr;zr--);Xt=Xt.slice(Ur,zr)}return Xt},Pt.copy=function(){return bo(X.copy(),se,Te,qe)},Ca(Pt,X)}var Zo={floor:function(X){return-Math.ceil(-X)},ceil:function(X){return-Math.floor(-X)}};e.scale.pow=function(){return Ss(e.scale.linear(),1,[0,1])};function Ss(X,se,Te){var qe=as(se),Ve=as(1/se);function Ye(Pt){return X(qe(Pt))}return Ye.invert=function(Pt){return Ve(X.invert(Pt))},Ye.domain=function(Pt){return arguments.length?(X.domain((Te=Pt.map(Number)).map(qe)),Ye):Te},Ye.ticks=function(Pt){return Ua(Te,Pt)},Ye.tickFormat=function(Pt,ot){return d3_scale_linearTickFormat(Te,Pt,ot)},Ye.nice=function(Pt){return Ye.domain(Ra(Te,Pt))},Ye.exponent=function(Pt){return arguments.length?(qe=as(se=Pt),Ve=as(1/se),X.domain(Te.map(qe)),Ye):se},Ye.copy=function(){return Ss(X.copy(),se,Te)},Ca(Ye,X)}function as(X){return function(se){return se<0?-Math.pow(-se,X):Math.pow(se,X)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return ws([],{t:"range",a:[[]]})};function ws(X,se){var Te,qe,Ve;function Ye(ot){return qe[((Te.get(ot)||(se.t==="range"?Te.set(ot,X.push(ot)):NaN))-1)%qe.length]}function Pt(ot,Xt){return e.range(X.length).map(function(dr){return ot+Xt*dr})}return Ye.domain=function(ot){if(!arguments.length)return X;X=[],Te=new T;for(var Xt=-1,dr=ot.length,pr;++Xt0?Te[Ye-1]:X[0],Yezr?0:1;if(pr=At)return Xt(pr,xi)+(dr?Xt(dr,1-xi):"")+"Z";var Wr,ii,di,Li,Ti=0,Qr=0,Pn,kn,Bn,na,Ea,Ia,yo,Da,go=[];if((Li=(+Pt.apply(this,arguments)||0)/2)&&(di=qe===Cu?Math.sqrt(dr*dr+pr*pr):+qe.apply(this,arguments),xi||(Qr*=-1),pr&&(Qr=_i(di/pr*Math.sin(Li))),dr&&(Ti=_i(di/dr*Math.sin(Li)))),pr){Pn=pr*Math.cos(Ur+Qr),kn=pr*Math.sin(Ur+Qr),Bn=pr*Math.cos(zr-Qr),na=pr*Math.sin(zr-Qr);var Is=Math.abs(zr-Ur-2*Qr)<=et?0:1;if(Qr&&Ac(Pn,kn,Bn,na)===xi^Is){var Ms=(Ur+zr)/2;Pn=pr*Math.cos(Ms),kn=pr*Math.sin(Ms),Bn=na=null}}else Pn=kn=0;if(dr){Ea=dr*Math.cos(zr-Ti),Ia=dr*Math.sin(zr-Ti),yo=dr*Math.cos(Ur+Ti),Da=dr*Math.sin(Ur+Ti);var Xs=Math.abs(Ur-zr+2*Ti)<=et?0:1;if(Ti&&Ac(Ea,Ia,yo,Da)===1-xi^Xs){var Un=(Ur+zr)/2;Ea=dr*Math.cos(Un),Ia=dr*Math.sin(Un),yo=Da=null}}else Ea=Ia=0;if(gi>Je&&(Wr=Math.min(Math.abs(pr-dr)/2,+Te.apply(this,arguments)))>.001){ii=dr0?0:1}function Va(X,se,Te,qe,Ve){var Ye=X[0]-se[0],Pt=X[1]-se[1],ot=(Ve?qe:-qe)/Math.sqrt(Ye*Ye+Pt*Pt),Xt=ot*Pt,dr=-ot*Ye,pr=X[0]+Xt,Ur=X[1]+dr,zr=se[0]+Xt,gi=se[1]+dr,xi=(pr+zr)/2,Wr=(Ur+gi)/2,ii=zr-pr,di=gi-Ur,Li=ii*ii+di*di,Ti=Te-qe,Qr=pr*gi-zr*Ur,Pn=(di<0?-1:1)*Math.sqrt(Math.max(0,Ti*Ti*Li-Qr*Qr)),kn=(Qr*di-ii*Pn)/Li,Bn=(-Qr*ii-di*Pn)/Li,na=(Qr*di+ii*Pn)/Li,Ea=(-Qr*ii+di*Pn)/Li,Ia=kn-xi,yo=Bn-Wr,Da=na-xi,go=Ea-Wr;return Ia*Ia+yo*yo>Da*Da+go*go&&(kn=na,Bn=Ea),[[kn-Xt,Bn-dr],[kn*Te/Ti,Bn*Te/Ti]]}function oo(){return!0}function Vc(X){var se=Ds,Te=Fs,qe=oo,Ve=Ku,Ye=Ve.key,Pt=.7;function ot(Xt){var dr=[],pr=[],Ur=-1,zr=Xt.length,gi,xi=hi(se),Wr=hi(Te);function ii(){dr.push("M",Ve(X(pr),Pt))}for(;++Ur1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,qe=X[0],Ve=[qe[0],",",qe[1]];++se1&&Ve.push("H",qe[0]),Ve.join("")}function B(X){for(var se=0,Te=X.length,qe=X[0],Ve=[qe[0],",",qe[1]];++se1){ot=se[1],Ye=X[Xt],Xt++,qe+="C"+(Ve[0]+Pt[0])+","+(Ve[1]+Pt[1])+","+(Ye[0]-ot[0])+","+(Ye[1]-ot[1])+","+Ye[0]+","+Ye[1];for(var dr=2;dr9&&(Ye=Te*3/Math.sqrt(Ye),Pt[ot]=Ye*qe,Pt[ot+1]=Ye*Ve));for(ot=-1;++ot<=Xt;)Ye=(X[Math.min(Xt,ot+1)][0]-X[Math.max(0,ot-1)][0])/(6*(1+Pt[ot]*Pt[ot])),se.push([Ye||0,Pt[ot]*Ye||0]);return se}function qt(X){return X.length<3?Ku(X):X[0]+Ze(X,nt(X))}e.svg.line.radial=function(){var X=Vc(Wt);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function Wt(X){for(var se,Te=-1,qe=X.length,Ve,Ye;++Teet)+",1 "+Ur}function dr(pr,Ur,zr,gi){return"Q 0,0 "+gi}return Ye.radius=function(pr){return arguments.length?(Te=hi(pr),Ye):Te},Ye.source=function(pr){return arguments.length?(X=hi(pr),Ye):X},Ye.target=function(pr){return arguments.length?(se=hi(pr),Ye):se},Ye.startAngle=function(pr){return arguments.length?(qe=hi(pr),Ye):qe},Ye.endAngle=function(pr){return arguments.length?(Ve=hi(pr),Ye):Ve},Ye};function Fr(X){return X.radius}e.svg.diagonal=function(){var X=fr,se=br,Te=Hr;function qe(Ve,Ye){var Pt=X.call(this,Ve,Ye),ot=se.call(this,Ve,Ye),Xt=(Pt.y+ot.y)/2,dr=[Pt,{x:Pt.x,y:Xt},{x:ot.x,y:Xt},ot];return dr=dr.map(Te),"M"+dr[0]+"C"+dr[1]+" "+dr[2]+" "+dr[3]}return qe.source=function(Ve){return arguments.length?(X=hi(Ve),qe):X},qe.target=function(Ve){return arguments.length?(se=hi(Ve),qe):se},qe.projection=function(Ve){return arguments.length?(Te=Ve,qe):Te},qe};function Hr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=Hr,Te=X.projection;return X.projection=function(qe){return arguments.length?Te(ri(se=qe)):se},X};function ri(X){return function(){var se=X.apply(this,arguments),Te=se[0],qe=se[1]-Kt;return[Te*Math.cos(qe),Te*Math.sin(qe)]}}e.svg.symbol=function(){var X=cn,se=Ci;function Te(qe,Ve){return(Ln.get(X.call(this,qe,Ve))||sn)(se.call(this,qe,Ve))}return Te.type=function(qe){return arguments.length?(X=hi(qe),Te):X},Te.size=function(qe){return arguments.length?(se=hi(qe),Te):se},Te};function Ci(){return 64}function cn(){return"circle"}function sn(X){var se=Math.sqrt(X/et);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Ln=e.map({circle:sn,cross:function(X){var se=Math.sqrt(X/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(X){var se=Math.sqrt(X/(2*Aa)),Te=se*Aa;return"M0,"+-se+"L"+Te+",0 0,"+se+" "+-Te+",0Z"},square:function(X){var se=Math.sqrt(X)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+Te+"L"+se+","+-Te+" "+-se+","+-Te+"Z"},"triangle-up":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+-Te+"L"+se+","+Te+" "+-se+","+Te+"Z"}});e.svg.symbolTypes=Ln.keys();var Kn=Math.sqrt(3),Aa=Math.tan(30*Qt);Le.transition=function(X){for(var se=Bo||++mo,Te=To(X),qe=[],Ve,Ye,Pt=Ps||{time:Date.now(),ease:wl,delay:0,duration:250},ot=-1,Xt=this.length;++ot0;)Ur[--Li].call(X,di);if(ii>=1)return Pt.event&&Pt.event.end.call(X,X.__data__,se),--Ye.count?delete Ye[qe]:delete X[Te],1}Pt||(ot=Ve.time,Xt=No(zr,0,ot),Pt=Ye[qe]={tween:new T,time:ot,timer:Xt,delay:Ve.delay,duration:Ve.duration,ease:Ve.ease,index:se},Ve=null,++Ye.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Nl,Te=6,qe=6,Ve=3,Ye=[10],Pt=null,ot;function Xt(dr){dr.each(function(){var pr=e.select(this),Ur=this.__chart__||X,zr=this.__chart__=X.copy(),gi=Pt==null?zr.ticks?zr.ticks.apply(zr,Ye):zr.domain():Pt,xi=ot==null?zr.tickFormat?zr.tickFormat.apply(zr,Ye):G:ot,Wr=pr.selectAll(".tick").data(gi,zr),ii=Wr.enter().insert("g",".domain").attr("class","tick").style("opacity",Je),di=e.transition(Wr.exit()).style("opacity",Je).remove(),Li=e.transition(Wr.order()).style("opacity",1),Ti=Math.max(Te,0)+Ve,Qr,Pn=wn(zr),kn=pr.selectAll(".domain").data([0]),Bn=(kn.enter().append("path").attr("class","domain"),e.transition(kn));ii.append("line"),ii.append("text");var na=ii.select("line"),Ea=Li.select("line"),Ia=Wr.select("text").text(xi),yo=ii.select("text"),Da=Li.select("text"),go=se==="top"||se==="left"?-1:1,Is,Ms,Xs,Un;if(se==="bottom"||se==="top"?(Qr=au,Is="x",Xs="y",Ms="x2",Un="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Bn.attr("d","M"+Pn[0]+","+go*qe+"V0H"+Pn[1]+"V"+go*qe)):(Qr=Js,Is="y",Xs="x",Ms="y2",Un="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Bn.attr("d","M"+go*qe+","+Pn[0]+"H0V"+Pn[1]+"H"+go*qe)),na.attr(Un,go*Te),yo.attr(Xs,go*Ti),Ea.attr(Ms,0).attr(Un,go*Te),Da.attr(Is,0).attr(Xs,go*Ti),zr.rangeBand){var ja=zr,Fo=ja.rangeBand()/2;Ur=zr=function(Uo){return ja(Uo)+Fo}}else Ur.rangeBand?Ur=zr:di.call(Qr,zr,Ur);ii.call(Qr,Ur,zr),Li.call(Qr,zr,zr)})}return Xt.scale=function(dr){return arguments.length?(X=dr,Xt):X},Xt.orient=function(dr){return arguments.length?(se=dr in Lu?dr+"":Nl,Xt):se},Xt.ticks=function(){return arguments.length?(Ye=r(arguments),Xt):Ye},Xt.tickValues=function(dr){return arguments.length?(Pt=dr,Xt):Pt},Xt.tickFormat=function(dr){return arguments.length?(ot=dr,Xt):ot},Xt.tickSize=function(dr){var pr=arguments.length;return pr?(Te=+dr,qe=+arguments[pr-1],Xt):Te},Xt.innerTickSize=function(dr){return arguments.length?(Te=+dr,Xt):Te},Xt.outerTickSize=function(dr){return arguments.length?(qe=+dr,Xt):qe},Xt.tickPadding=function(dr){return arguments.length?(Ve=+dr,Xt):Ve},Xt.tickSubdivide=function(){return arguments.length&&Xt},Xt};var Nl="bottom",Lu={top:1,right:1,bottom:1,left:1};function au(X,se,Te){X.attr("transform",function(qe){var Ve=se(qe);return"translate("+(isFinite(Ve)?Ve:Te(qe))+",0)"})}function Js(X,se,Te){X.attr("transform",function(qe){var Ve=se(qe);return"translate(0,"+(isFinite(Ve)?Ve:Te(qe))+")"})}e.svg.brush=function(){var X=Ce(pr,"brushstart","brush","brushend"),se=null,Te=null,qe=[0,0],Ve=[0,0],Ye,Pt,ot=!0,Xt=!0,dr=dc[0];function pr(Wr){Wr.each(function(){var ii=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",xi).on("touchstart.brush",xi),di=ii.selectAll(".background").data([0]);di.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ii.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Li=ii.selectAll(".resize").data(dr,G);Li.exit().remove(),Li.enter().append("g").attr("class",function(kn){return"resize "+kn}).style("cursor",function(kn){return eu[kn]}).append("rect").attr("x",function(kn){return/[ew]$/.test(kn)?-3:null}).attr("y",function(kn){return/^[ns]/.test(kn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Li.style("display",pr.empty()?"none":null);var Ti=e.transition(ii),Qr=e.transition(di),Pn;se&&(Pn=wn(se),Qr.attr("x",Pn[0]).attr("width",Pn[1]-Pn[0]),zr(Ti)),Te&&(Pn=wn(Te),Qr.attr("y",Pn[0]).attr("height",Pn[1]-Pn[0]),gi(Ti)),Ur(Ti)})}pr.event=function(Wr){Wr.each(function(){var ii=X.of(this,arguments),di={x:qe,y:Ve,i:Ye,j:Pt},Li=this.__chart__||di;this.__chart__=di,Bo?e.select(this).transition().each("start.brush",function(){Ye=Li.i,Pt=Li.j,qe=Li.x,Ve=Li.y,ii({type:"brushstart"})}).tween("brush:brush",function(){var Ti=Gu(qe,di.x),Qr=Gu(Ve,di.y);return Ye=Pt=null,function(Pn){qe=di.x=Ti(Pn),Ve=di.y=Qr(Pn),ii({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ye=di.i,Pt=di.j,ii({type:"brush",mode:"resize"}),ii({type:"brushend"})}):(ii({type:"brushstart"}),ii({type:"brush",mode:"resize"}),ii({type:"brushend"}))})};function Ur(Wr){Wr.selectAll(".resize").attr("transform",function(ii){return"translate("+qe[+/e$/.test(ii)]+","+Ve[+/^s/.test(ii)]+")"})}function zr(Wr){Wr.select(".extent").attr("x",qe[0]),Wr.selectAll(".extent,.n>rect,.s>rect").attr("width",qe[1]-qe[0])}function gi(Wr){Wr.select(".extent").attr("y",Ve[0]),Wr.selectAll(".extent,.e>rect,.w>rect").attr("height",Ve[1]-Ve[0])}function xi(){var Wr=this,ii=e.select(e.event.target),di=X.of(Wr,arguments),Li=e.select(Wr),Ti=ii.datum(),Qr=!/^(n|s)$/.test(Ti)&&se,Pn=!/^(e|w)$/.test(Ti)&&Te,kn=ii.classed("extent"),Bn=qr(Wr),na,Ea=e.mouse(Wr),Ia,yo=e.select(a(Wr)).on("keydown.brush",Is).on("keyup.brush",Ms);if(e.event.changedTouches?yo.on("touchmove.brush",Xs).on("touchend.brush",ja):yo.on("mousemove.brush",Xs).on("mouseup.brush",ja),Li.interrupt().selectAll("*").interrupt(),kn)Ea[0]=qe[0]-Ea[0],Ea[1]=Ve[0]-Ea[1];else if(Ti){var Da=+/w$/.test(Ti),go=+/^n/.test(Ti);Ia=[qe[1-Da]-Ea[0],Ve[1-go]-Ea[1]],Ea[0]=qe[Da],Ea[1]=Ve[go]}else e.event.altKey&&(na=Ea.slice());Li.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ii.style("cursor")),di({type:"brushstart"}),Xs();function Is(){e.event.keyCode==32&&(kn||(na=null,Ea[0]-=qe[1],Ea[1]-=Ve[1],kn=2),_e())}function Ms(){e.event.keyCode==32&&kn==2&&(Ea[0]+=qe[1],Ea[1]+=Ve[1],kn=0,_e())}function Xs(){var Fo=e.mouse(Wr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),kn||(e.event.altKey?(na||(na=[(qe[0]+qe[1])/2,(Ve[0]+Ve[1])/2]),Ea[0]=qe[+(Fo[0]{(function(e,t){typeof b6=="object"&&typeof Mee!="undefined"?t(b6):(e=e||self,t(e.d3=e.d3||{}))})(b6,function(e){"use strict";var t=new Date,r=new Date;function n(Ae,rt,St,Tt){function dt(Et){return Ae(Et=arguments.length===0?new Date:new Date(+Et)),Et}return dt.floor=function(Et){return Ae(Et=new Date(+Et)),Et},dt.ceil=function(Et){return Ae(Et=new Date(Et-1)),rt(Et,1),Ae(Et),Et},dt.round=function(Et){var pt=dt(Et),jt=dt.ceil(Et);return Et-pt0))return or;do or.push(mr=new Date(+Et)),rt(Et,jt),Ae(Et);while(mr=pt)for(;Ae(pt),!Et(pt);)pt.setTime(pt-1)},function(pt,jt){if(pt>=pt)if(jt<0)for(;++jt<=0;)for(;rt(pt,-1),!Et(pt););else for(;--jt>=0;)for(;rt(pt,1),!Et(pt););})},St&&(dt.count=function(Et,pt){return t.setTime(+Et),r.setTime(+pt),Ae(t),Ae(r),Math.floor(St(t,r))},dt.every=function(Et){return Et=Math.floor(Et),!isFinite(Et)||!(Et>0)?null:Et>1?dt.filter(Tt?function(pt){return Tt(pt)%Et===0}:function(pt){return dt.count(0,pt)%Et===0}):dt}),dt}var i=n(function(){},function(Ae,rt){Ae.setTime(+Ae+rt)},function(Ae,rt){return rt-Ae});i.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(rt){rt.setTime(Math.floor(rt/Ae)*Ae)},function(rt,St){rt.setTime(+rt+St*Ae)},function(rt,St){return(St-rt)/Ae}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,rt){Ae.setTime(+Ae+rt*o)},function(Ae,rt){return(rt-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=f.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,rt){Ae.setTime(+Ae+rt*s)},function(Ae,rt){return(rt-Ae)/s},function(Ae){return Ae.getMinutes()}),v=d.range,m=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*s)},function(Ae,rt){Ae.setTime(+Ae+rt*l)},function(Ae,rt){return(rt-Ae)/l},function(Ae){return Ae.getHours()}),b=m.range,p=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,rt){Ae.setDate(Ae.getDate()+rt)},function(Ae,rt){return(rt-Ae-(rt.getTimezoneOffset()-Ae.getTimezoneOffset())*s)/u},function(Ae){return Ae.getDate()-1}),k=p.range;function M(Ae){return n(function(rt){rt.setDate(rt.getDate()-(rt.getDay()+7-Ae)%7),rt.setHours(0,0,0,0)},function(rt,St){rt.setDate(rt.getDate()+St*7)},function(rt,St){return(St-rt-(St.getTimezoneOffset()-rt.getTimezoneOffset())*s)/c})}var T=M(0),L=M(1),x=M(2),C=M(3),S=M(4),g=M(5),P=M(6),E=T.range,z=L.range,q=x.range,V=C.range,G=S.range,Z=g.range,j=P.range,N=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,rt){Ae.setMonth(Ae.getMonth()+rt)},function(Ae,rt){return rt.getMonth()-Ae.getMonth()+(rt.getFullYear()-Ae.getFullYear())*12},function(Ae){return Ae.getMonth()}),H=N.range,re=n(function(Ae){Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,rt){Ae.setFullYear(Ae.getFullYear()+rt)},function(Ae,rt){return rt.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});re.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(rt){rt.setFullYear(Math.floor(rt.getFullYear()/Ae)*Ae),rt.setMonth(0,1),rt.setHours(0,0,0,0)},function(rt,St){rt.setFullYear(rt.getFullYear()+St*Ae)})};var ae=re.range,_e=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,rt){Ae.setTime(+Ae+rt*s)},function(Ae,rt){return(rt-Ae)/s},function(Ae){return Ae.getUTCMinutes()}),Ee=_e.range,Ce=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,rt){Ae.setTime(+Ae+rt*l)},function(Ae,rt){return(rt-Ae)/l},function(Ae){return Ae.getUTCHours()}),ge=Ce.range,ie=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,rt){Ae.setUTCDate(Ae.getUTCDate()+rt)},function(Ae,rt){return(rt-Ae)/u},function(Ae){return Ae.getUTCDate()-1}),Se=ie.range;function ke(Ae){return n(function(rt){rt.setUTCDate(rt.getUTCDate()-(rt.getUTCDay()+7-Ae)%7),rt.setUTCHours(0,0,0,0)},function(rt,St){rt.setUTCDate(rt.getUTCDate()+St*7)},function(rt,St){return(St-rt)/c})}var be=ke(0),Be=ke(1),Le=ke(2),me=ke(3),Pe=ke(4),ce=ke(5),He=ke(6),lt=be.range,mt=Be.range,Ht=Le.range,at=me.range,ct=Pe.range,ar=ce.range,Vt=He.range,rr=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,rt){Ae.setUTCMonth(Ae.getUTCMonth()+rt)},function(Ae,rt){return rt.getUTCMonth()-Ae.getUTCMonth()+(rt.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),tt=rr.range,je=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,rt){Ae.setUTCFullYear(Ae.getUTCFullYear()+rt)},function(Ae,rt){return rt.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});je.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(rt){rt.setUTCFullYear(Math.floor(rt.getUTCFullYear()/Ae)*Ae),rt.setUTCMonth(0,1),rt.setUTCHours(0,0,0,0)},function(rt,St){rt.setUTCFullYear(rt.getUTCFullYear()+St*Ae)})};var Ue=je.range;e.timeDay=p,e.timeDays=k,e.timeFriday=g,e.timeFridays=Z,e.timeHour=m,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=v,e.timeMonday=L,e.timeMondays=z,e.timeMonth=N,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=j,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=T,e.timeSundays=E,e.timeThursday=S,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=q,e.timeWednesday=C,e.timeWednesdays=V,e.timeWeek=T,e.timeWeeks=E,e.timeYear=re,e.timeYears=ae,e.utcDay=ie,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=ar,e.utcHour=Ce,e.utcHours=ge,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Ee,e.utcMonday=Be,e.utcMondays=mt,e.utcMonth=rr,e.utcMonths=tt,e.utcSaturday=He,e.utcSaturdays=Vt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=lt,e.utcThursday=Pe,e.utcThursdays=ct,e.utcTuesday=Le,e.utcTuesdays=Ht,e.utcWednesday=me,e.utcWednesdays=at,e.utcWeek=be,e.utcWeeks=lt,e.utcYear=je,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var p3=ye((w6,Eee)=>{(function(e,t){typeof w6=="object"&&typeof Eee!="undefined"?t(w6,Cq()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(w6,function(e,t){"use strict";function r(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L);return Je.setFullYear(Ge.y),Je}return new Date(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L)}function n(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(Date.UTC(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L));return Je.setUTCFullYear(Ge.y),Je}return new Date(Date.UTC(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L))}function i(Ge,Je,We){return{y:Ge,m:Je,d:We,H:0,M:0,S:0,L:0}}function a(Ge){var Je=Ge.dateTime,We=Ge.date,et=Ge.time,xt=Ge.periods,At=Ge.days,Kt=Ge.shortDays,Qt=Ge.months,Mr=Ge.shortMonths,Gr=h(xt),Ir=d(xt),Yr=h(At),_i=d(At),Pi=h(Kt),ai=d(Kt),mi=h(Qt),un=d(Qt),Fn=h(Mr),An=d(Mr),Hn={a:Hi,A:en,b:fn,B:yn,c:null,d:N,e:N,f:Ee,H,I:re,j:ae,L:_e,m:Ce,M:ge,p:Mn,q:Ba,Q:pt,s:jt,S:ie,u:Se,U:ke,V:be,w:Be,W:Le,x:null,X:null,y:me,Y:Pe,Z:ce,"%":Et},Qn={a:ua,A:ma,b:Wa,B:za,c:null,d:He,e:He,f:ct,H:lt,I:mt,j:Ht,L:at,m:ar,M:Vt,p:Xo,q:da,Q:pt,s:jt,S:rr,u:tt,U:je,V:Ue,w:Ae,W:rt,x:null,X:null,y:St,Y:Tt,Z:dt,"%":Et},Vi={a:tr,A:ir,b:wr,B:Xr,c:ti,d:S,e:S,f:V,H:P,I:P,j:g,L:q,m:C,M:E,p:wt,q:x,Q:Z,s:j,S:z,u:m,U:b,V:p,w:v,W:k,x:$r,X:Ri,y:T,Y:M,Z:L,"%":G};Hn.x=Jn(We,Hn),Hn.X=Jn(et,Hn),Hn.c=Jn(Je,Hn),Qn.x=Jn(We,Qn),Qn.X=Jn(et,Qn),Qn.c=Jn(Je,Qn);function Jn(jn,Ha){return function(vo){var Gn=[],Ct=-1,Sr=0,Jr=jn.length,hi,hn,Sn;for(vo instanceof Date||(vo=new Date(+vo));++Ct53)return null;"w"in Gn||(Gn.w=1),"Z"in Gn?(Sr=n(i(Gn.y,0,1)),Jr=Sr.getUTCDay(),Sr=Jr>4||Jr===0?t.utcMonday.ceil(Sr):t.utcMonday(Sr),Sr=t.utcDay.offset(Sr,(Gn.V-1)*7),Gn.y=Sr.getUTCFullYear(),Gn.m=Sr.getUTCMonth(),Gn.d=Sr.getUTCDate()+(Gn.w+6)%7):(Sr=r(i(Gn.y,0,1)),Jr=Sr.getDay(),Sr=Jr>4||Jr===0?t.timeMonday.ceil(Sr):t.timeMonday(Sr),Sr=t.timeDay.offset(Sr,(Gn.V-1)*7),Gn.y=Sr.getFullYear(),Gn.m=Sr.getMonth(),Gn.d=Sr.getDate()+(Gn.w+6)%7)}else("W"in Gn||"U"in Gn)&&("w"in Gn||(Gn.w="u"in Gn?Gn.u%7:"W"in Gn?1:0),Jr="Z"in Gn?n(i(Gn.y,0,1)).getUTCDay():r(i(Gn.y,0,1)).getDay(),Gn.m=0,Gn.d="W"in Gn?(Gn.w+6)%7+Gn.W*7-(Jr+5)%7:Gn.w+Gn.U*7-(Jr+6)%7);return"Z"in Gn?(Gn.H+=Gn.Z/100|0,Gn.M+=Gn.Z%100,n(Gn)):r(Gn)}}function Gt(jn,Ha,vo,Gn){for(var Ct=0,Sr=Ha.length,Jr=vo.length,hi,hn;Ct=Jr)return-1;if(hi=Ha.charCodeAt(Ct++),hi===37){if(hi=Ha.charAt(Ct++),hn=Vi[hi in o?Ha.charAt(Ct++):hi],!hn||(Gn=hn(jn,vo,Gn))<0)return-1}else if(hi!=vo.charCodeAt(Gn++))return-1}return Gn}function wt(jn,Ha,vo){var Gn=Gr.exec(Ha.slice(vo));return Gn?(jn.p=Ir[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function tr(jn,Ha,vo){var Gn=Pi.exec(Ha.slice(vo));return Gn?(jn.w=ai[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function ir(jn,Ha,vo){var Gn=Yr.exec(Ha.slice(vo));return Gn?(jn.w=_i[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function wr(jn,Ha,vo){var Gn=Fn.exec(Ha.slice(vo));return Gn?(jn.m=An[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function Xr(jn,Ha,vo){var Gn=mi.exec(Ha.slice(vo));return Gn?(jn.m=un[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function ti(jn,Ha,vo){return Gt(jn,Je,Ha,vo)}function $r(jn,Ha,vo){return Gt(jn,We,Ha,vo)}function Ri(jn,Ha,vo){return Gt(jn,et,Ha,vo)}function Hi(jn){return Kt[jn.getDay()]}function en(jn){return At[jn.getDay()]}function fn(jn){return Mr[jn.getMonth()]}function yn(jn){return Qt[jn.getMonth()]}function Mn(jn){return xt[+(jn.getHours()>=12)]}function Ba(jn){return 1+~~(jn.getMonth()/3)}function ua(jn){return Kt[jn.getUTCDay()]}function ma(jn){return At[jn.getUTCDay()]}function Wa(jn){return Mr[jn.getUTCMonth()]}function za(jn){return Qt[jn.getUTCMonth()]}function Xo(jn){return xt[+(jn.getUTCHours()>=12)]}function da(jn){return 1+~~(jn.getUTCMonth()/3)}return{format:function(jn){var Ha=Jn(jn+="",Hn);return Ha.toString=function(){return jn},Ha},parse:function(jn){var Ha=Yn(jn+="",!1);return Ha.toString=function(){return jn},Ha},utcFormat:function(jn){var Ha=Jn(jn+="",Qn);return Ha.toString=function(){return jn},Ha},utcParse:function(jn){var Ha=Yn(jn+="",!0);return Ha.toString=function(){return jn},Ha}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Je,We){var et=Ge<0?"-":"",xt=(et?-Ge:Ge)+"",At=xt.length;return et+(At68?1900:2e3),We+et[0].length):-1}function L(Ge,Je,We){var et=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Je.slice(We,We+6));return et?(Ge.Z=et[1]?0:-(et[2]+(et[3]||"00")),We+et[0].length):-1}function x(Ge,Je,We){var et=s.exec(Je.slice(We,We+1));return et?(Ge.q=et[0]*3-3,We+et[0].length):-1}function C(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.m=et[0]-1,We+et[0].length):-1}function S(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.d=+et[0],We+et[0].length):-1}function g(Ge,Je,We){var et=s.exec(Je.slice(We,We+3));return et?(Ge.m=0,Ge.d=+et[0],We+et[0].length):-1}function P(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.H=+et[0],We+et[0].length):-1}function E(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.M=+et[0],We+et[0].length):-1}function z(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.S=+et[0],We+et[0].length):-1}function q(Ge,Je,We){var et=s.exec(Je.slice(We,We+3));return et?(Ge.L=+et[0],We+et[0].length):-1}function V(Ge,Je,We){var et=s.exec(Je.slice(We,We+6));return et?(Ge.L=Math.floor(et[0]/1e3),We+et[0].length):-1}function G(Ge,Je,We){var et=l.exec(Je.slice(We,We+1));return et?We+et[0].length:-1}function Z(Ge,Je,We){var et=s.exec(Je.slice(We));return et?(Ge.Q=+et[0],We+et[0].length):-1}function j(Ge,Je,We){var et=s.exec(Je.slice(We));return et?(Ge.s=+et[0],We+et[0].length):-1}function N(Ge,Je){return c(Ge.getDate(),Je,2)}function H(Ge,Je){return c(Ge.getHours(),Je,2)}function re(Ge,Je){return c(Ge.getHours()%12||12,Je,2)}function ae(Ge,Je){return c(1+t.timeDay.count(t.timeYear(Ge),Ge),Je,3)}function _e(Ge,Je){return c(Ge.getMilliseconds(),Je,3)}function Ee(Ge,Je){return _e(Ge,Je)+"000"}function Ce(Ge,Je){return c(Ge.getMonth()+1,Je,2)}function ge(Ge,Je){return c(Ge.getMinutes(),Je,2)}function ie(Ge,Je){return c(Ge.getSeconds(),Je,2)}function Se(Ge){var Je=Ge.getDay();return Je===0?7:Je}function ke(Ge,Je){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Je,2)}function be(Ge,Je){var We=Ge.getDay();return Ge=We>=4||We===0?t.timeThursday(Ge):t.timeThursday.ceil(Ge),c(t.timeThursday.count(t.timeYear(Ge),Ge)+(t.timeYear(Ge).getDay()===4),Je,2)}function Be(Ge){return Ge.getDay()}function Le(Ge,Je){return c(t.timeMonday.count(t.timeYear(Ge)-1,Ge),Je,2)}function me(Ge,Je){return c(Ge.getFullYear()%100,Je,2)}function Pe(Ge,Je){return c(Ge.getFullYear()%1e4,Je,4)}function ce(Ge){var Je=Ge.getTimezoneOffset();return(Je>0?"-":(Je*=-1,"+"))+c(Je/60|0,"0",2)+c(Je%60,"0",2)}function He(Ge,Je){return c(Ge.getUTCDate(),Je,2)}function lt(Ge,Je){return c(Ge.getUTCHours(),Je,2)}function mt(Ge,Je){return c(Ge.getUTCHours()%12||12,Je,2)}function Ht(Ge,Je){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Je,3)}function at(Ge,Je){return c(Ge.getUTCMilliseconds(),Je,3)}function ct(Ge,Je){return at(Ge,Je)+"000"}function ar(Ge,Je){return c(Ge.getUTCMonth()+1,Je,2)}function Vt(Ge,Je){return c(Ge.getUTCMinutes(),Je,2)}function rr(Ge,Je){return c(Ge.getUTCSeconds(),Je,2)}function tt(Ge){var Je=Ge.getUTCDay();return Je===0?7:Je}function je(Ge,Je){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Je,2)}function Ue(Ge,Je){var We=Ge.getUTCDay();return Ge=We>=4||We===0?t.utcThursday(Ge):t.utcThursday.ceil(Ge),c(t.utcThursday.count(t.utcYear(Ge),Ge)+(t.utcYear(Ge).getUTCDay()===4),Je,2)}function Ae(Ge){return Ge.getUTCDay()}function rt(Ge,Je){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Je,2)}function St(Ge,Je){return c(Ge.getUTCFullYear()%100,Je,2)}function Tt(Ge,Je){return c(Ge.getUTCFullYear()%1e4,Je,4)}function dt(){return"+0000"}function Et(){return"%"}function pt(Ge){return+Ge}function jt(Ge){return Math.floor(+Ge/1e3)}var or;mr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function mr(Ge){return or=a(Ge),e.timeFormat=or.format,e.timeParse=or.parse,e.utcFormat=or.utcFormat,e.utcParse=or.utcParse,or}var Ar="%Y-%m-%dT%H:%M:%S.%LZ";function ei(Ge){return Ge.toISOString()}var qr=Date.prototype.toISOString?ei:e.utcFormat(Ar);function jr(Ge){var Je=new Date(Ge);return isNaN(Je)?null:Je}var gt=+new Date("2000-01-01T00:00:00.000Z")?jr:e.utcParse(Ar);e.isoFormat=qr,e.isoParse=gt,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Lq=ye((T6,kee)=>{(function(e,t){typeof T6=="object"&&typeof kee!="undefined"?t(T6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(T6,(function(e){"use strict";function t(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function r(C,S){if((g=(C=S?C.toExponential(S-1):C.toExponential()).indexOf("e"))<0)return null;var g,P=C.slice(0,g);return[P.length>1?P[0]+P.slice(2):P,+C.slice(g+1)]}function n(C){return C=r(Math.abs(C)),C?C[1]:NaN}function i(C,S){return function(g,P){for(var E=g.length,z=[],q=0,V=C[0],G=0;E>0&&V>0&&(G+V+1>P&&(V=Math.max(1,P-G)),z.push(g.substring(E-=V,E+V)),!((G+=V+1)>P));)V=C[q=(q+1)%C.length];return z.reverse().join(S)}}function a(C){return function(S){return S.replace(/[0-9]/g,function(g){return C[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(S=o.exec(C)))throw new Error("invalid format: "+C);var S;return new l({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=l.prototype;function l(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}l.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(C){e:for(var S=C.length,g=1,P=-1,E;g0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(E+1):C}var c;function f(C,S){var g=r(C,S);if(!g)return C+"";var P=g[0],E=g[1],z=E-(c=Math.max(-8,Math.min(8,Math.floor(E/3)))*3)+1,q=P.length;return z===q?P:z>q?P+new Array(z-q+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(C,Math.max(0,S+z-1))[0]}function h(C,S){var g=r(C,S);if(!g)return C+"";var P=g[0],E=g[1];return E<0?"0."+new Array(-E).join("0")+P:P.length>E+1?P.slice(0,E+1)+"."+P.slice(E+1):P+new Array(E-P.length+2).join("0")}var d={"%":function(C,S){return(C*100).toFixed(S)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,S){return C.toExponential(S)},f:function(C,S){return C.toFixed(S)},g:function(C,S){return C.toPrecision(S)},o:function(C){return Math.round(C).toString(8)},p:function(C,S){return h(C*100,S)},r:h,s:f,X:function(C){return Math.round(C).toString(16).toUpperCase()},x:function(C){return Math.round(C).toString(16)}};function v(C){return C}var m=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(C){var S=C.grouping===void 0||C.thousands===void 0?v:i(m.call(C.grouping,Number),C.thousands+""),g=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",E=C.decimal===void 0?".":C.decimal+"",z=C.numerals===void 0?v:a(m.call(C.numerals,String)),q=C.percent===void 0?"%":C.percent+"",V=C.minus===void 0?"-":C.minus+"",G=C.nan===void 0?"NaN":C.nan+"";function Z(N){N=s(N);var H=N.fill,re=N.align,ae=N.sign,_e=N.symbol,Ee=N.zero,Ce=N.width,ge=N.comma,ie=N.precision,Se=N.trim,ke=N.type;ke==="n"?(ge=!0,ke="g"):d[ke]||(ie===void 0&&(ie=12),Se=!0,ke="g"),(Ee||H==="0"&&re==="=")&&(Ee=!0,H="0",re="=");var be=_e==="$"?g:_e==="#"&&/[boxX]/.test(ke)?"0"+ke.toLowerCase():"",Be=_e==="$"?P:/[%p]/.test(ke)?q:"",Le=d[ke],me=/[defgprs%]/.test(ke);ie=ie===void 0?6:/[gprs]/.test(ke)?Math.max(1,Math.min(21,ie)):Math.max(0,Math.min(20,ie));function Pe(ce){var He=be,lt=Be,mt,Ht,at;if(ke==="c")lt=Le(ce)+lt,ce="";else{ce=+ce;var ct=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Le(Math.abs(ce),ie),Se&&(ce=u(ce)),ct&&+ce==0&&ae!=="+"&&(ct=!1),He=(ct?ae==="("?ae:V:ae==="-"||ae==="("?"":ae)+He,lt=(ke==="s"?b[8+c/3]:"")+lt+(ct&&ae==="("?")":""),me){for(mt=-1,Ht=ce.length;++mtat||at>57){lt=(at===46?E+ce.slice(mt+1):ce.slice(mt))+lt,ce=ce.slice(0,mt);break}}}ge&&!Ee&&(ce=S(ce,1/0));var ar=He.length+ce.length+lt.length,Vt=ar>1)+He+ce+lt+Vt.slice(ar);break;default:ce=Vt+He+ce+lt;break}return z(ce)}return Pe.toString=function(){return N+""},Pe}function j(N,H){var re=Z((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(H)/3)))*3,_e=Math.pow(10,-ae),Ee=b[8+ae/3];return function(Ce){return re(_e*Ce)+Ee}}return{format:Z,formatPrefix:j}}var k;M({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function M(C){return k=p(C),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function T(C){return Math.max(0,-n(Math.abs(C)))}function L(C,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(S)/3)))*3-n(Math.abs(C)))}function x(C,S){return C=Math.abs(C),S=Math.abs(S)-C,Math.max(0,n(S)-n(C))+1}e.FormatSpecifier=l,e.formatDefaultLocale=M,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})}))});var Lee=ye((Grr,Cee)=>{"use strict";Cee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Eo=ye((Hrr,Pee)=>{"use strict";var Dtt=Lee();Pee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Dtt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var fs=ye((jrr,Iee)=>{"use strict";Iee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Pq=ye((A6,Ree)=>{(function(e,t){typeof A6=="object"&&typeof Ree!="undefined"?t(A6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(A6,(function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,d,v;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var m=new ArrayBuffer(s),b=new Uint8Array(m);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return m};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})}))});var Sy=ye((Wrr,Dee)=>{"use strict";Dee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var Yd=ye(xg=>{"use strict";var Ftt=Pq().decode,ztt=Sy(),Iq=Array.isArray,qtt=ArrayBuffer,Ott=DataView;function Fee(e){return qtt.isView(e)&&!(e instanceof Ott)}xg.isTypedArray=Fee;function S6(e){return Iq(e)||Fee(e)}xg.isArrayOrTypedArray=S6;function Btt(e){return!S6(e[0])}xg.isArray1D=Btt;xg.ensureArray=function(e,t){return Iq(e)||(e=[]),e.length=t,e};var Ld={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ld.uint8c=Ld.u1c;Ld.uint8=Ld.u1;Ld.int8=Ld.i1;Ld.uint16=Ld.u2;Ld.int16=Ld.i2;Ld.uint32=Ld.u4;Ld.int32=Ld.i4;Ld.float32=Ld.f4;Ld.float64=Ld.f8;function Rq(e){return e.constructor===ArrayBuffer}xg.isArrayBuffer=Rq;xg.decodeTypedArraySpec=function(e){var t=[],r=Ntt(e),n=r.dtype,i=Ld[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;Rq(o)||(o=Ftt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,d=0;if(l===1)t=new i(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var qee=Eo(),Fq=Yd().isArrayOrTypedArray;Uee.exports=function(t,r){if(qee(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var g3=BS(),jtt=/^\w*$/,Wtt=0,Vee=1,M6=2,Gee=3,mb=4;Hee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=g3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|M6,f.set(h,null);if(c){for(a=d;a{"use strict";var Xtt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Ztt=/^[^\.\[\]]+$/;Wee.exports=function(e,t){for(;t;){var r=e.match(Xtt);if(r)e=r[1];else if(e.match(Ztt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var E6=ye((Jrr,Zee)=>{"use strict";var Ytt=Eo();Zee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Ytt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Jee=ye(($rr,Kee)=>{"use strict";var Yee=Yd().isArrayOrTypedArray,NS=Sy();Kee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Yee(i)&&Yee(a)&&NS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Ktt(e,t){var r=e%t;return r<0?r+t:r}function Jtt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}$ee.exports={mod:Ktt,modHalf:Jtt}});var fd=ye((eir,k6)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function l(me,Pe){if(me=me||"",Pe=Pe||{},me instanceof l)return me;if(!(this instanceof l))return new l(me,Pe);var ce=u(me);this._originalInput=me,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Pe.format||ce.format,this._gradientType=Pe.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var me=this.toRgb();return(me.r*299+me.g*587+me.b*114)/1e3},getLuminance:function(){var me=this.toRgb(),Pe,ce,He,lt,mt,Ht;return Pe=me.r/255,ce=me.g/255,He=me.b/255,Pe<=.03928?lt=Pe/12.92:lt=e.pow((Pe+.055)/1.055,2.4),ce<=.03928?mt=ce/12.92:mt=e.pow((ce+.055)/1.055,2.4),He<=.03928?Ht=He/12.92:Ht=e.pow((He+.055)/1.055,2.4),.2126*lt+.7152*mt+.0722*Ht},setAlpha:function(me){return this._a=N(me),this._roundA=i(100*this._a)/100,this},toHsv:function(){var me=d(this._r,this._g,this._b);return{h:me.h*360,s:me.s,v:me.v,a:this._a}},toHsvString:function(){var me=d(this._r,this._g,this._b),Pe=i(me.h*360),ce=i(me.s*100),He=i(me.v*100);return this._a==1?"hsv("+Pe+", "+ce+"%, "+He+"%)":"hsva("+Pe+", "+ce+"%, "+He+"%, "+this._roundA+")"},toHsl:function(){var me=f(this._r,this._g,this._b);return{h:me.h*360,s:me.s,l:me.l,a:this._a}},toHslString:function(){var me=f(this._r,this._g,this._b),Pe=i(me.h*360),ce=i(me.s*100),He=i(me.l*100);return this._a==1?"hsl("+Pe+", "+ce+"%, "+He+"%)":"hsla("+Pe+", "+ce+"%, "+He+"%, "+this._roundA+")"},toHex:function(me){return m(this._r,this._g,this._b,me)},toHexString:function(me){return"#"+this.toHex(me)},toHex8:function(me){return b(this._r,this._g,this._b,this._a,me)},toHex8String:function(me){return"#"+this.toHex8(me)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(H(this._r,255)*100)+"%",g:i(H(this._g,255)*100)+"%",b:i(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%)":"rgba("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(me){var Pe="#"+p(this._r,this._g,this._b,this._a),ce=Pe,He=this._gradientType?"GradientType = 1, ":"";if(me){var lt=l(me);ce="#"+p(lt._r,lt._g,lt._b,lt._a)}return"progid:DXImageTransform.Microsoft.gradient("+He+"startColorstr="+Pe+",endColorstr="+ce+")"},toString:function(me){var Pe=!!me;me=me||this._format;var ce=!1,He=this._a<1&&this._a>=0,lt=!Pe&&He&&(me==="hex"||me==="hex6"||me==="hex3"||me==="hex4"||me==="hex8"||me==="name");return lt?me==="name"&&this._a===0?this.toName():this.toRgbString():(me==="rgb"&&(ce=this.toRgbString()),me==="prgb"&&(ce=this.toPercentageRgbString()),(me==="hex"||me==="hex6")&&(ce=this.toHexString()),me==="hex3"&&(ce=this.toHexString(!0)),me==="hex4"&&(ce=this.toHex8String(!0)),me==="hex8"&&(ce=this.toHex8String()),me==="name"&&(ce=this.toName()),me==="hsl"&&(ce=this.toHslString()),me==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(me,Pe){var ce=me.apply(null,[this].concat([].slice.call(Pe)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(me,Pe){return me.apply(null,[this].concat([].slice.call(Pe)))},analogous:function(){return this._applyCombination(q,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},l.fromRatio=function(me,Pe){if(typeof me=="object"){var ce={};for(var He in me)me.hasOwnProperty(He)&&(He==="a"?ce[He]=me[He]:ce[He]=ge(me[He]));me=ce}return l(me,Pe)};function u(me){var Pe={r:0,g:0,b:0},ce=1,He=null,lt=null,mt=null,Ht=!1,at=!1;return typeof me=="string"&&(me=Be(me)),typeof me=="object"&&(be(me.r)&&be(me.g)&&be(me.b)?(Pe=c(me.r,me.g,me.b),Ht=!0,at=String(me.r).substr(-1)==="%"?"prgb":"rgb"):be(me.h)&&be(me.s)&&be(me.v)?(He=ge(me.s),lt=ge(me.v),Pe=v(me.h,He,lt),Ht=!0,at="hsv"):be(me.h)&&be(me.s)&&be(me.l)&&(He=ge(me.s),mt=ge(me.l),Pe=h(me.h,He,mt),Ht=!0,at="hsl"),me.hasOwnProperty("a")&&(ce=me.a)),ce=N(ce),{ok:Ht,format:me.format||at,r:a(255,o(Pe.r,0)),g:a(255,o(Pe.g,0)),b:a(255,o(Pe.b,0)),a:ce}}function c(me,Pe,ce){return{r:H(me,255)*255,g:H(Pe,255)*255,b:H(ce,255)*255}}function f(me,Pe,ce){me=H(me,255),Pe=H(Pe,255),ce=H(ce,255);var He=o(me,Pe,ce),lt=a(me,Pe,ce),mt,Ht,at=(He+lt)/2;if(He==lt)mt=Ht=0;else{var ct=He-lt;switch(Ht=at>.5?ct/(2-He-lt):ct/(He+lt),He){case me:mt=(Pe-ce)/ct+(Pe1&&(rr-=1),rr<1/6?ar+(Vt-ar)*6*rr:rr<1/2?Vt:rr<2/3?ar+(Vt-ar)*(2/3-rr)*6:ar}if(Pe===0)He=lt=mt=ce;else{var at=ce<.5?ce*(1+Pe):ce+Pe-ce*Pe,ct=2*ce-at;He=Ht(ct,at,me+1/3),lt=Ht(ct,at,me),mt=Ht(ct,at,me-1/3)}return{r:He*255,g:lt*255,b:mt*255}}function d(me,Pe,ce){me=H(me,255),Pe=H(Pe,255),ce=H(ce,255);var He=o(me,Pe,ce),lt=a(me,Pe,ce),mt,Ht,at=He,ct=He-lt;if(Ht=He===0?0:ct/He,He==lt)mt=0;else{switch(He){case me:mt=(Pe-ce)/ct+(Pe>1)+720)%360;--Pe;)He.h=(He.h+lt)%360,mt.push(l(He));return mt}function V(me,Pe){Pe=Pe||6;for(var ce=l(me).toHsv(),He=ce.h,lt=ce.s,mt=ce.v,Ht=[],at=1/Pe;Pe--;)Ht.push(l({h:He,s:lt,v:mt})),mt=(mt+at)%1;return Ht}l.mix=function(me,Pe,ce){ce=ce===0?0:ce||50;var He=l(me).toRgb(),lt=l(Pe).toRgb(),mt=ce/100,Ht={r:(lt.r-He.r)*mt+He.r,g:(lt.g-He.g)*mt+He.g,b:(lt.b-He.b)*mt+He.b,a:(lt.a-He.a)*mt+He.a};return l(Ht)},l.readability=function(me,Pe){var ce=l(me),He=l(Pe);return(e.max(ce.getLuminance(),He.getLuminance())+.05)/(e.min(ce.getLuminance(),He.getLuminance())+.05)},l.isReadable=function(me,Pe,ce){var He=l.readability(me,Pe),lt,mt;switch(mt=!1,lt=Le(ce),lt.level+lt.size){case"AAsmall":case"AAAlarge":mt=He>=4.5;break;case"AAlarge":mt=He>=3;break;case"AAAsmall":mt=He>=7;break}return mt},l.mostReadable=function(me,Pe,ce){var He=null,lt=0,mt,Ht,at,ct;ce=ce||{},Ht=ce.includeFallbackColors,at=ce.level,ct=ce.size;for(var ar=0;arlt&&(lt=mt,He=l(Pe[ar]));return l.isReadable(me,He,{level:at,size:ct})||!Ht?He:(ce.includeFallbackColors=!1,l.mostReadable(me,["#fff","#000"],ce))};var G=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=l.hexNames=j(G);function j(me){var Pe={};for(var ce in me)me.hasOwnProperty(ce)&&(Pe[me[ce]]=ce);return Pe}function N(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function H(me,Pe){_e(me)&&(me="100%");var ce=Ee(me);return me=a(Pe,o(0,parseFloat(me))),ce&&(me=parseInt(me*Pe,10)/100),e.abs(me-Pe)<1e-6?1:me%Pe/parseFloat(Pe)}function re(me){return a(1,o(0,me))}function ae(me){return parseInt(me,16)}function _e(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function Ee(me){return typeof me=="string"&&me.indexOf("%")!=-1}function Ce(me){return me.length==1?"0"+me:""+me}function ge(me){return me<=1&&(me=me*100+"%"),me}function ie(me){return e.round(parseFloat(me)*255).toString(16)}function Se(me){return ae(me)/255}var ke=(function(){var me="[-\\+]?\\d+%?",Pe="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Pe+")|(?:"+me+")",He="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",lt="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+He),rgba:new RegExp("rgba"+lt),hsl:new RegExp("hsl"+He),hsla:new RegExp("hsla"+lt),hsv:new RegExp("hsv"+He),hsva:new RegExp("hsva"+lt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function be(me){return!!ke.CSS_UNIT.exec(me)}function Be(me){me=me.replace(t,"").replace(r,"").toLowerCase();var Pe=!1;if(G[me])me=G[me],Pe=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=ke.rgb.exec(me))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=ke.rgba.exec(me))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=ke.hsl.exec(me))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=ke.hsla.exec(me))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=ke.hsv.exec(me))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=ke.hsva.exec(me))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=ke.hex8.exec(me))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:Se(ce[4]),format:Pe?"name":"hex8"}:(ce=ke.hex6.exec(me))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Pe?"name":"hex"}:(ce=ke.hex4.exec(me))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:Pe?"name":"hex8"}:(ce=ke.hex3.exec(me))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Pe?"name":"hex"}:!1}function Le(me){var Pe,ce;return me=me||{level:"AA",size:"small"},Pe=(me.level||"AA").toUpperCase(),ce=(me.size||"small").toLowerCase(),Pe!=="AA"&&Pe!=="AAA"&&(Pe="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Pe,size:ce}}typeof k6!="undefined"&&k6.exports?k6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(GS=>{"use strict";var Qee=Sy(),US=Array.isArray;function $tt(e,t){var r,n;for(r=0;r{"use strict";ete.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var HS=ye((iir,tte)=>{"use strict";tte.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var X1=ye((nir,nte)=>{"use strict";var rte=HS(),ite=ec(),zq=ite({editType:"none"});zq.family.dflt=rte.HOVERFONT;zq.size.dflt=rte.HOVERFONTSIZE;nte.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:zq,grouptitlefont:ite({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var y3=ye((air,ate)=>{"use strict";var Qtt=ec(),jS=X1().hoverlabel,WS=Ao().extendFlat;ate.exports={hoverlabel:{bgcolor:WS({},jS.bgcolor,{arrayOk:!0}),bordercolor:WS({},jS.bordercolor,{arrayOk:!0}),font:Qtt({arrayOk:!0,editType:"none"}),align:WS({},jS.align,{arrayOk:!0}),namelength:WS({},jS.namelength,{arrayOk:!0}),showarrow:WS({},jS.showarrow),editType:"none"}}});var Vl=ye((oir,ote)=>{"use strict";var ert=ec(),trt=y3();ote.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:ert({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:trt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var yb=ye((sir,ute)=>{"use strict";var rrt=fd(),C6={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},ste=C6.RdBu;function irt(e,t){if(t||(t=ste),!e)return t;function r(){try{e=C6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),lte(e)?e:t}function lte(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";_b.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];_b.defaultLine="#444";_b.lightLine="#eee";_b.background="#fff";_b.borderLine="#BEC8D9";_b.lightFraction=1e3/11});var ka=ye((uir,cte)=>{"use strict";var wp=fd(),art=Eo(),ort=Yd().isTypedArray,hd=cte.exports={},L6=Ih();hd.defaults=L6.defaults;var srt=hd.defaultLine=L6.defaultLine;hd.lightLine=L6.lightLine;var Oq=hd.background=L6.background;hd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};hd.rgb=function(e){return hd.tinyRGB(wp(e))};hd.opacity=function(e){return e?wp(e).getAlpha():0};hd.addOpacity=function(e,t){var r=wp(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};hd.combine=function(e,t){var r=wp(e).toRgb();if(r.a===1)return wp(e).toRgbString();var n=wp(t||Oq).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return wp(a).toRgbString()};hd.interpolate=function(e,t,r){var n=wp(e).toRgb(),i=wp(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return wp(a).toRgbString()};hd.contrast=function(e,t,r){var n=wp(e);n.getAlpha()!==1&&(n=wp(hd.combine(e,Oq)));var i=n.isDark()?t?n.lighten(t):Oq:r?n.darken(r):srt;return i.toString()};hd.stroke=function(e,t){var r=wp(t);e.style({stroke:hd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};hd.fill=function(e,t){var r=wp(t);e.style({fill:hd.tinyRGB(r),"fill-opacity":r.getAlpha()})};hd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var Z1=ye((cir,fte)=>{"use strict";fte.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var _3=ye(hte=>{"use strict";hte.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var gte=ye(Tp=>{"use strict";var Bq=Eo(),dte=fd(),vte=Ao().extendFlat,lrt=Vl(),urt=yb(),crt=ka(),frt=Z1().DESELECTDIM,x3=BS(),pte=_3().counter,hrt=m3().modHalf,bg=Yd().isArrayOrTypedArray,Y1=Yd().isTypedArraySpec,K1=Yd().decodeTypedArraySpec;Tp.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(bg(e)?e:Y1(e)?K1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;na===!0||a===!1;i(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(i)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,n){Y1(e)&&(e=K1(e)),!Bq(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}Y1(e)&&(e=K1(e)),e%1||!Bq(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Y1(e)&&(e=K1(e)),dte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return dte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(urt.get(e,r))}},angle:{coerceFunction:function(e,t,r){Y1(e)&&(e=K1(e)),e==="auto"?t.set("auto"):Bq(e)?t.set(hrt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||pte(r);let a=o=>typeof o=="string"&&i.test(o);a(e)||n.arrayOk&&bg(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!pte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var mte={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},yte={};function _te(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),_te(n,t[r]))}}_te(mte,yte);xte.exports={configAttributes:mte,dfltConfig:yte}});var Uq=ye((vir,bte)=>{"use strict";var Nq=Fa(),drt=Eo(),XS=[];bte.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||XS.indexOf(e)!==-1)return;XS.push(e);var n=1e3;drt(t)?n=t:t==="long"&&(n=3e3);var i=Nq.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(XS);function o(l){l.duration(700).style("opacity",0).each("end",function(u){var c=XS.indexOf(u);c!==-1&&XS.splice(c,1),Nq.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var u=Nq.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var c=u.append("p"),f=l.split(//g),h=0;h{"use strict";var b3=xb().dfltConfig,Vq=Uq(),Gq=wte.exports={};Gq.log=function(){var e;if(b3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};Gq.warn=function(){var e;if(b3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};Gq.error=function(){var e;if(b3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var I6=ye((gir,Tte)=>{"use strict";Tte.exports=function(){}});var Hq=ye((mir,Ate)=>{"use strict";Ate.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{Ste.exports=vrt;function vrt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var kte=ye((_ir,Ete)=>{Ete.exports=prt;function prt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var Lte=ye((xir,Cte)=>{Cte.exports=grt;function grt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var jq=ye((bir,Pte)=>{Pte.exports=mrt;function mrt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Rte=ye((wir,Ite)=>{Ite.exports=yrt;function yrt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Fte=ye((Tir,Dte)=>{Dte.exports=_rt;function _rt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],m=t[13],b=t[14],p=t[15],k=r*s-n*o,M=r*l-i*o,T=r*u-a*o,L=n*l-i*s,x=n*u-a*s,C=i*u-a*l,S=c*m-f*v,g=c*b-h*v,P=c*p-d*v,E=f*b-h*m,z=f*p-d*m,q=h*p-d*b,V=k*q-M*z+T*E+L*P-x*g+C*S;return V?(V=1/V,e[0]=(s*q-l*z+u*E)*V,e[1]=(i*z-n*q-a*E)*V,e[2]=(m*C-b*x+p*L)*V,e[3]=(h*x-f*C-d*L)*V,e[4]=(l*P-o*q-u*g)*V,e[5]=(r*q-i*P+a*g)*V,e[6]=(b*T-v*C-p*M)*V,e[7]=(c*C-h*T+d*M)*V,e[8]=(o*z-s*P+u*S)*V,e[9]=(n*P-r*z-a*S)*V,e[10]=(v*x-m*T+p*k)*V,e[11]=(f*T-c*x-d*k)*V,e[12]=(s*g-o*E-l*S)*V,e[13]=(r*E-n*g+i*S)*V,e[14]=(m*M-v*L-b*k)*V,e[15]=(c*L-f*M+h*k)*V,e):null}});var qte=ye((Air,zte)=>{zte.exports=xrt;function xrt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],m=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+m*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+m*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+m*(i*u-a*l),e[3]=-(n*(l*d-u*h)-s*(i*d-a*h)+f*(i*u-a*l)),e[4]=-(o*(h*p-d*b)-c*(l*p-u*b)+v*(l*d-u*h)),e[5]=r*(h*p-d*b)-c*(i*p-a*b)+v*(i*d-a*h),e[6]=-(r*(l*p-u*b)-o*(i*p-a*b)+v*(i*u-a*l)),e[7]=r*(l*d-u*h)-o*(i*d-a*h)+c*(i*u-a*l),e[8]=o*(f*p-d*m)-c*(s*p-u*m)+v*(s*d-u*f),e[9]=-(r*(f*p-d*m)-c*(n*p-a*m)+v*(n*d-a*f)),e[10]=r*(s*p-u*m)-o*(n*p-a*m)+v*(n*u-a*s),e[11]=-(r*(s*d-u*f)-o*(n*d-a*f)+c*(n*u-a*s)),e[12]=-(o*(f*b-h*m)-c*(s*b-l*m)+v*(s*h-l*f)),e[13]=r*(f*b-h*m)-c*(n*b-i*m)+v*(n*h-i*f),e[14]=-(r*(s*b-l*m)-o*(n*b-i*m)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var Bte=ye((Sir,Ote)=>{Ote.exports=brt;function brt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],d=e[12],v=e[13],m=e[14],b=e[15],p=t*o-r*a,k=t*s-n*a,M=t*l-i*a,T=r*s-n*o,L=r*l-i*o,x=n*l-i*s,C=u*v-c*d,S=u*m-f*d,g=u*b-h*d,P=c*m-f*v,E=c*b-h*v,z=f*b-h*m;return p*z-k*E+M*P+T*g-L*S+x*C}});var Ute=ye((Mir,Nte)=>{Nte.exports=wrt;function wrt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],d=t[10],v=t[11],m=t[12],b=t[13],p=t[14],k=t[15],M=r[0],T=r[1],L=r[2],x=r[3];return e[0]=M*n+T*s+L*f+x*m,e[1]=M*i+T*l+L*h+x*b,e[2]=M*a+T*u+L*d+x*p,e[3]=M*o+T*c+L*v+x*k,M=r[4],T=r[5],L=r[6],x=r[7],e[4]=M*n+T*s+L*f+x*m,e[5]=M*i+T*l+L*h+x*b,e[6]=M*a+T*u+L*d+x*p,e[7]=M*o+T*c+L*v+x*k,M=r[8],T=r[9],L=r[10],x=r[11],e[8]=M*n+T*s+L*f+x*m,e[9]=M*i+T*l+L*h+x*b,e[10]=M*a+T*u+L*d+x*p,e[11]=M*o+T*c+L*v+x*k,M=r[12],T=r[13],L=r[14],x=r[15],e[12]=M*n+T*s+L*f+x*m,e[13]=M*i+T*l+L*h+x*b,e[14]=M*a+T*u+L*d+x*p,e[15]=M*o+T*c+L*v+x*k,e}});var Gte=ye((Eir,Vte)=>{Vte.exports=Trt;function Trt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,m,b,p;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],d=t[7],v=t[8],m=t[9],b=t[10],p=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=d,e[8]=v,e[9]=m,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+m*a+t[13],e[14]=l*n+h*i+b*a+t[14],e[15]=u*n+d*i+p*a+t[15]),e}});var jte=ye((kir,Hte)=>{Hte.exports=Art;function Art(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Xte=ye((Cir,Wte)=>{Wte.exports=Srt;function Srt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),l,u,c,f,h,d,v,m,b,p,k,M,T,L,x,C,S,g,P,E,z,q,V,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],d=t[2],v=t[3],m=t[4],b=t[5],p=t[6],k=t[7],M=t[8],T=t[9],L=t[10],x=t[11],C=i*i*c+u,S=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,E=a*a*c+u,z=o*a*c+i*l,q=i*o*c+a*l,V=a*o*c-i*l,G=o*o*c+u,e[0]=f*C+m*S+M*g,e[1]=h*C+b*S+T*g,e[2]=d*C+p*S+L*g,e[3]=v*C+k*S+x*g,e[4]=f*P+m*E+M*z,e[5]=h*P+b*E+T*z,e[6]=d*P+p*E+L*z,e[7]=v*P+k*E+x*z,e[8]=f*q+m*V+M*G,e[9]=h*q+b*V+T*G,e[10]=d*q+p*V+L*G,e[11]=v*q+k*V+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Yte=ye((Lir,Zte)=>{Zte.exports=Mrt;function Mrt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=o*i+c*n,e[6]=s*i+f*n,e[7]=l*i+h*n,e[8]=u*i-a*n,e[9]=c*i-o*n,e[10]=f*i-s*n,e[11]=h*i-l*n,e}});var Jte=ye((Pir,Kte)=>{Kte.exports=Ert;function Ert(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=o*i-c*n,e[2]=s*i-f*n,e[3]=l*i-h*n,e[8]=a*n+u*i,e[9]=o*n+c*i,e[10]=s*n+f*i,e[11]=l*n+h*i,e}});var Qte=ye((Iir,$te)=>{$te.exports=krt;function krt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=o*i+c*n,e[2]=s*i+f*n,e[3]=l*i+h*n,e[4]=u*i-a*n,e[5]=c*i-o*n,e[6]=f*i-s*n,e[7]=h*i-l*n,e}});var tre=ye((Rir,ere)=>{ere.exports=Crt;function Crt(e,t,r){var n,i,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var ire=ye((Dir,rre)=>{rre.exports=Lrt;function Lrt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,u=a+a,c=n*s,f=n*l,h=n*u,d=i*l,v=i*u,m=a*u,b=o*s,p=o*l,k=o*u;return e[0]=1-(d+m),e[1]=f+k,e[2]=h-p,e[3]=0,e[4]=f-k,e[5]=1-(c+m),e[6]=v+b,e[7]=0,e[8]=h+p,e[9]=v-b,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var are=ye((Fir,nre)=>{nre.exports=Prt;function Prt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var sre=ye((zir,ore)=>{ore.exports=Irt;function Irt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var ure=ye((qir,lre)=>{lre.exports=Rrt;function Rrt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var fre=ye((Oir,cre)=>{cre.exports=Drt;function Drt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dre=ye((Bir,hre)=>{hre.exports=Frt;function Frt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var pre=ye((Nir,vre)=>{vre.exports=zrt;function zrt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,f=n*s,h=i*o,d=i*s,v=i*l,m=a*o,b=a*s,p=a*l;return e[0]=1-f-v,e[1]=c+p,e[2]=h-b,e[3]=0,e[4]=c-p,e[5]=1-u-v,e[6]=d+m,e[7]=0,e[8]=h+b,e[9]=d-m,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var mre=ye((Uir,gre)=>{gre.exports=qrt;function qrt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var _re=ye((Vir,yre)=>{yre.exports=Ort;function Ort(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var bre=ye((Gir,xre)=>{xre.exports=Brt;function Brt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var Tre=ye((Hir,wre)=>{wre.exports=Nrt;function Nrt(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}});var Sre=ye((jir,Are)=>{var Urt=jq();Are.exports=Vrt;function Vrt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],m=t[1],b=t[2],p=n[0],k=n[1],M=n[2],T=r[0],L=r[1],x=r[2];return Math.abs(v-T)<1e-6&&Math.abs(m-L)<1e-6&&Math.abs(b-x)<1e-6?Urt(e):(c=v-T,f=m-L,h=b-x,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=k*h-M*f,a=M*c-p*h,o=p*f-k*c,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=f*o-h*a,l=h*i-c*o,u=c*a-f*i,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=i,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*v+a*m+o*b),e[13]=-(s*v+l*m+u*b),e[14]=-(c*v+f*m+h*b),e[15]=1,e)}});var Ere=ye((Wir,Mre)=>{Mre.exports=Grt;function Grt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Wq=ye((Xir,kre)=>{kre.exports={create:Mte(),clone:kte(),copy:Lte(),identity:jq(),transpose:Rte(),invert:Fte(),adjoint:qte(),determinant:Bte(),multiply:Ute(),translate:Gte(),scale:jte(),rotate:Xte(),rotateX:Yte(),rotateY:Jte(),rotateZ:Qte(),fromRotation:tre(),fromRotationTranslation:ire(),fromScaling:are(),fromTranslation:sre(),fromXRotation:ure(),fromYRotation:fre(),fromZRotation:dre(),fromQuat:pre(),frustum:mre(),perspective:_re(),perspectiveFromFieldOfView:bre(),ortho:Tre(),lookAt:Sre(),str:Ere()}});var R6=ye(fh=>{"use strict";var Hrt=Wq();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var jrt=Fa(),Cre=J1(),Wrt=R6(),Xrt=Wq();function Zrt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Yrt(e){var t=jrt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Lre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Krt(e,t){Pre("global",e,t)}function Pre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):Cre.warn("addStyleRule failed"):Cre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Jrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Lre(r)}function $rt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this.querySelector(r);c&&(c.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[o[0]]=o[1]:c.style[s[0]]=s[1])}),u.setAttribute(l,!0))})}function Qrt(e){var t=Rre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=Ire(n);if(i){var a=Wrt.convertCssMatrix(i);r=Xrt.multiply(r,r,a)}}),r}function Ire(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Rre(e){for(var t=[];eit(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function eit(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function tit(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Dre.exports={getGraphDiv:Zrt,isPlotDiv:Yrt,removeElement:Lre,addStyleRule:Krt,addRelatedStyleRule:Pre,deleteRelatedStyleRule:Jrt,setStyleOnHover:$rt,getFullTransformMatrix:Qrt,getElementTransformMatrix:Ire,getElementAndAncestors:Rre,equalDomRects:tit}});var YS=ye((Kir,Fre)=>{"use strict";Fre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var mc=ye((Jir,Vre)=>{"use strict";var qre=Ao().extendFlat,rit=Sy(),Ore={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Bre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},iit=Ore.flags.slice().concat(["fullReplot"]),nit=Bre.flags.slice().concat("layoutReplot");Vre.exports={traces:Ore,layout:Bre,traceFlags:function(){return zre(iit)},layoutFlags:function(){return zre(nit)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";Xq.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Xq.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Zq=ye((Qir,Gre)=>{"use strict";Gre.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Pl=ye(w3=>{"use strict";var{DATE_FORMAT_LINK:ait,FORMAT_LINK:oit}=Zq(),sit=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function lit({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,oit,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,ait,"for details on the date formatting syntax.",sit].join(" ")}w3.templateFormatStringDescription=lit;w3.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});w3.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});w3.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});w3.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var z6=ye((rnr,Yre)=>{"use strict";function $1(e,t){return t?t.d2l(e):e}function Hre(e,t){return t?t.l2d(e):e}function uit(e){return e.x0}function cit(e){return e.x1}function fit(e){return e.y0}function hit(e){return e.y1}function jre(e){return e.x0shift||0}function Wre(e){return e.x1shift||0}function Xre(e){return e.y0shift||0}function Zre(e){return e.y1shift||0}function D6(e,t){return $1(e.x1,t)+Wre(e)-$1(e.x0,t)-jre(e)}function F6(e,t,r){return $1(e.y1,r)+Zre(e)-$1(e.y0,r)-Xre(e)}function dit(e,t){return Math.abs(D6(e,t))}function vit(e,t,r){return Math.abs(F6(e,t,r))}function pit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(D6(e,t),2)+Math.pow(F6(e,t,r),2))}function git(e,t){return Hre(($1(e.x1,t)+Wre(e)+$1(e.x0,t)+jre(e))/2,t)}function mit(e,t,r){return Hre(($1(e.y1,r)+Zre(e)+$1(e.y0,r)+Xre(e))/2,r)}function yit(e,t,r){return e.type!=="line"?void 0:F6(e,t,r)/D6(e,t)}var _it=["x0","x1","y0","y1","dy","height","ycenter"],xit=["x0","x1","y0","y1","dx","width","xcenter"];Yre.exports={x0:uit,x1:cit,y0:fit,y1:hit,slope:yit,dx:D6,dy:F6,width:dit,height:vit,length:pit,xcenter:git,ycenter:mit,simpleXVariables:_it,simpleYVariables:xit}});var $re=ye((inr,Jre)=>{"use strict";var bit=mc().overrideAll,bb=Vl(),Kre=ec(),wit=Pd().dash,Q1=Ao().extendFlat,{shapeTexttemplateAttrs:Tit,templatefallbackAttrs:Ait}=Pl(),Sit=z6();Jre.exports=bit({newshape:{visible:Q1({},bb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Q1({},bb.legend,{}),legendgroup:Q1({},bb.legendgroup,{}),legendgrouptitle:{text:Q1({},bb.legendgrouptitle.text,{}),font:Kre({})},legendrank:Q1({},bb.legendrank,{}),legendwidth:Q1({},bb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Q1({},wit,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Q1({},bb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Tit({newshape:!0},{keys:Object.keys(Sit)}),texttemplatefallback:Ait({editType:"arraydraw"}),font:Kre({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var eie=ye((nnr,Qre)=>{"use strict";var Mit=Pd().dash,Eit=Ao().extendFlat;Qre.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Eit({},Mit,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var q6=ye((anr,tie)=>{"use strict";tie.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var T3=ye((onr,aie)=>{"use strict";var Yq=ec(),kit=YS(),O6=Ih(),rie=$re(),iie=eie(),Cit=q6(),nie=Ao().extendFlat,B6=Yq({editType:"calc"});B6.family.dflt='"Open Sans", verdana, arial, sans-serif';B6.size.dflt=12;B6.color.dflt=O6.defaultLine;aie.exports={font:B6,title:{text:{valType:"string",editType:"layoutstyle"},font:Yq({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Yq({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:nie(Cit({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:O6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:O6.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:O6.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:rie.newshape,activeshape:rie.activeshape,newselection:iie.newselection,activeselection:iie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:nie({},kit.transition,{editType:"none"})}});var oie=ye(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Oa=ye(el=>{"use strict";var A3=J1(),sie=I6(),lie=Hq(),Lit=Sy(),Pit=ZS().addStyleRule,uie=Ao(),Iit=Vl(),Rit=T3(),Dit=uie.extendFlat,Kq=uie.extendDeepAll;el.modules={};el.allCategories={};el.allTypes=[];el.subplotsRegistry={};el.componentsRegistry={};el.layoutArrayContainers=[];el.layoutArrayRegexes=[];el.traceLayoutAttributes={};el.localeRegistry={};el.apiMethodRegistry={};el.collectableSubplotTypes=null;el.register=function(t){if(el.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Nit=p3().timeFormat,xie=Eo(),Jq=J1(),t_=m3().mod,E3=fs(),_0=E3.BADNUM,Ap=E3.ONEDAY,KS=E3.ONEHOUR,e_=E3.ONEMIN,M3=E3.ONESEC,JS=E3.EPOCHJD,My=Oa(),vie=p3().utcFormat,Uit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Vit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,pie=new Date().getFullYear()-70;function Ey(e){return e&&My.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=Git(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=Ap*(t-1),hh.ms2DateTime(n,0,e)};function Git(e,t){return Ey(e)?t?My.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:My.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return Ey(e)?My.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};hh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var U6,V6;hh.dateTime2ms=function(e,t){if(hh.isJSDate(e)){var r=e.getTimezoneOffset()*e_,n=(e.getUTCMinutes()-e.getMinutes())*e_+(e.getUTCSeconds()-e.getSeconds())*M3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*e_;r=r-i/2+t_(n-r+i/2,i)}return e=Number(e)-r,e>=U6&&e<=V6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=Ey(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=a&&t.slice(0,7)==="chinese",l=e.match(s?Vit:Uit);if(!l)return _0;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),v=Number(l[11]||0);if(a){if(u.length===2)return _0;u=Number(u);var m;try{var b=My.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),m=b.newDate(u,b.toMonthIndex(u,c,p),f)}else m=b.newDate(u,Number(c),f)}catch(M){return _0}return m?(m.toJD()-JS)*Ap+h*KS+d*e_+v*M3:_0}u.length===2?u=(Number(u)+2e3-pie)%100+pie:u=Number(u),c-=1;var k=new Date(Date.UTC(2e3,c,f,h,d));return k.setUTCFullYear(u),k.getUTCMonth()!==c||k.getUTCDate()!==f?_0:k.getTime()+v*M3};U6=hh.MIN_MS=hh.dateTime2ms("-9999");V6=hh.MAX_MS=hh.dateTime2ms("9999-12-31 23:59:59.9999");hh.isDateTime=function(e,t){return hh.dateTime2ms(e,t)!==_0};function S3(e,t){return String(e+Math.pow(10,t)).slice(1)}var N6=90*Ap,gie=3*KS,mie=5*e_;hh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=U6&&e<=V6))return _0;t||(t=0);var n=Math.floor(t_(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,l,u,c;if(Ey(r)){var f=Math.floor(i/Ap)+JS,h=Math.floor(t_(e,Ap));try{a=My.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=vie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.slice(1);else for(;a.length<10;)a="0"+a;o=t=U6+Ap&&e<=V6-Ap))return _0;var t=Math.floor(t_(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Nit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return bie(n,i,a,o,s)};function bie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+S3(t,2)+":"+S3(r,2),(n||i)&&(e+=":"+S3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+S3(i,a)}return e}hh.cleanDate=function(e,t,r){if(e===_0)return t;if(hh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ey(r))return Jq.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=hh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!hh.isDateTime(e,r))return Jq.error("unrecognized date",e),t;return e};var Hit=/%\d?f/g,jit=/%h/g,Wit={1:"1",2:"1",3:"2",4:"2"};function yie(e,t,r,n){e=e.replace(Hit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(jit,function(){return Wit[r("%q")(i)]}),Ey(n))try{e=My.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Xit=[59,59.9,59.99,59.999,59.9999];function Zit(e,t){var r=t_(e+.05,Ap),n=S3(Math.floor(r/KS),2)+":"+S3(t_(Math.floor(r/e_),60),2);if(t!=="M"){xie(t)||(t=0);var i=Math.min(t_(e/M3,60),Xit[t]),a=(100+i).toFixed(t).slice(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}hh.formatDate=function(e,t,r,n,i,a){if(i=Ey(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`+a.year;else return Zit(e,r)+` +`+yie(a.dayMonthYear,e,n,i);return yie(t,e,n,i)};var _ie=3*Ap;hh.incrementMonth=function(e,t,r){r=Ey(r)&&r;var n=t_(e,Ap);if(e=Math.round(e-n),r)try{var i=Math.round(e/Ap)+JS,a=My.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-JS)*Ap+n}catch(l){Jq.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+_ie);return s.setUTCMonth(s.getUTCMonth()+t)+n-_ie};hh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=Ey(t)&&My.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";Tie.exports=function(t){return t}});var G6=ye(ky=>{"use strict";var Yit=Eo(),Kit=J1(),Jit=$S(),$it=fs().BADNUM,$q=1e-9;ky.findBin=function(e,t,r){if(Yit(t.start))return r?Math.ceil((e-t.start)/t.size-$q)-1:Math.floor((e-t.start)/t.size+$q);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,l;for(o>=0?l=r?Qit:ent:l=r?rnt:tnt,e+=o*$q*(r?-1:1)*(o>=0?1:-1);n90&&Kit.log("Long binary search..."),n-1};function Qit(e,t){return et}function rnt(e,t){return e>=t}ky.sorterAsc=function(e,t){return e-t};ky.sorterDes=function(e,t){return t-e};ky.distinctVals=function(e){var t=e.slice();t.sort(ky.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===$it;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>i&&(n=Math.min(n,u),a.push(l),o=l)}return{vals:a,minDiff:n}};ky.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};ky.findIndexOfMin=function(e,t){t=t||Jit;for(var r=1/0,n,i=0;i{"use strict";Aie.exports=function(t){return Object.keys(t).sort()}});var Sie=ye(dh=>{"use strict";var QS=Eo(),int=Yd().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),QS(t)||(t=!1),int(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var Lie=ye((pnr,Cie)=>{"use strict";var Mie=m3(),Qq=Mie.mod,nnt=Mie.modHalf,eM=Math.PI,i_=2*eM;function ant(e){return e/180*eM}function ont(e){return e/eM*180}function eO(e){return Math.abs(e[1]-e[0])>i_-1e-14}function Eie(e,t){return nnt(t-e,i_)}function snt(e,t){return Math.abs(Eie(e,t))}function kie(e,t){if(eO(t))return!0;var r,n;t[0]n&&(n+=i_);var i=Qq(e,i_),a=i+i_;return i>=r&&i<=n||a>=r&&a<=n}function lnt(e,t,r,n){if(!kie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function tO(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=eO([r,n]),l,u,c,f,h;s?(l=0,u=eM,c=i_):r{"use strict";wb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};wb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};wb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};wb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};wb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};wb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Die=ye(Tb=>{"use strict";var rO=m3().mod;Tb.segmentsIntersect=Rie;function Rie(e,t,r,n,i,a,o,s){var l=r-e,u=i-e,c=o-i,f=n-t,h=a-t,d=s-a,v=l*d-c*f;if(v===0)return null;var m=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||m<0||m>1?null:{x:e+l*m,y:t+f*m}}Tb.segmentDistance=function(t,r,n,i,a,o,s,l){if(Rie(t,r,n,i,a,o,s,l))return 0;var u=n-t,c=i-r,f=s-a,h=l-o,d=u*u+c*c,v=f*f+h*h,m=Math.min(H6(u,c,d,a-t,o-r),H6(u,c,d,s-t,l-r),H6(f,h,v,t-a,r-o),H6(f,h,v,n-a,i-o));return Math.sqrt(m)};function H6(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var l=n*t-i*e;return l*l/r}}var j6,iO,Iie;Tb.getTextLocation=function(t,r,n,i){if((t!==iO||i!==Iie)&&(j6={},iO=t,Iie=i),j6[n])return j6[n];var a=t.getPointAtLength(rO(n-i/2,r)),o=t.getPointAtLength(rO(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(rO(n,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return j6[n]=f,f};Tb.clearLocationCache=function(){iO=null};Tb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function d(m){var b=t.getPointAtLength(m);m===0?f=b:m===u&&(h=b);var p=b.xa?b.x-a:0,k=b.ys?b.y-s:0;return Math.sqrt(p*p+k*k)}for(var v=d(l);v;){if(l+=v+n,l>c)return;v=d(l)}for(v=d(c);v;){if(c-=v+n,l>c)return;v=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};Tb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,u=0,c=0,f=a,h,d,v;u0?f=h:c=h,u++}return d}});var W6=ye(tM=>{"use strict";var Cy={};tM.throttle=function(t,r,n){var i=Cy[t],a=Date.now();if(!i){for(var o in Cy)Cy[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};tM.done=function(e){var t=Cy[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};tM.clear=function(e){if(e)Fie(Cy[e]),delete Cy[e];else for(var t in Cy)tM.clear(t)};function Fie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var qie=ye((_nr,zie)=>{"use strict";zie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Oie=ye((xnr,X6)=>{"use strict";X6.exports=nO;X6.exports.isMobile=nO;X6.exports.default=nO;var hnt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,dnt=/CrOS/,vnt=/android|ipad|playbook|silk/i;function nO(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=hnt.test(t)&&!dnt.test(t)||!!e.tablet&&vnt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Nie=ye((bnr,Bie)=>{"use strict";var pnt=Eo(),gnt=Oie();Bie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=mnt(),typeof r!="string")return!0;var n=gnt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var l=i[s];if(l.slice(0,8)==="Version/"){var u=l.slice(8).split(".")[0];if(pnt(u)&&(u=+u),u>=13)return!0}}}return n};function mnt(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Vie=ye((wnr,Uie)=>{"use strict";var ynt=Fa();Uie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=ynt.select(this)}),i}});var Hie=ye((Tnr,Gie)=>{"use strict";var _nt=Oa();Gie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=_nt.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var aO=ye((Anr,jie)=>{"use strict";jie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Wie.exports=function(t){for(var r=wnt(t)?bnt:xnt,n=[],i=0;i{"use strict";Zie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(i).toPrecision(12);l.indexOf("e+")===-1&&(i=+l)}}return i}});var Jie=ye((Enr,Kie)=>{"use strict";var Tnt=Eo(),Ant=fs().BADNUM,Snt=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Kie.exports=function(t){return typeof t=="string"&&(t=t.replace(Snt,"")),Tnt(t)?Number(t):Ant}});var Pr=ye((knr,cne)=>{"use strict";var rM=Fa(),Mnt=p3().utcFormat,Ent=Lq().format,ine=Eo(),nne=fs(),ane=nne.FP_SAFE,knt=-ane,$ie=nne.BADNUM,Ai=cne.exports={};Ai.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Qie={};Ai.warnBadFormat=function(e){var t=String(e);Qie[t]||(Qie[t]=1,Ai.warn('encountered bad format: "'+t+'"'))};Ai.noFormat=function(e){return String(e)};Ai.numberFormat=function(e){var t;try{t=Ent(Ai.adjustFormat(e))}catch(r){return Ai.warnBadFormat(e),Ai.noFormat}return t};Ai.nestedProperty=BS();Ai.keyedContainer=jee();Ai.relativeAttr=Xee();Ai.isPlainObject=Sy();Ai.toLogRange=E6();Ai.relinkPrivateKeys=Jee();var n_=Yd();Ai.isArrayBuffer=n_.isArrayBuffer;Ai.isTypedArray=n_.isTypedArray;Ai.isArrayOrTypedArray=n_.isArrayOrTypedArray;Ai.isArray1D=n_.isArray1D;Ai.ensureArray=n_.ensureArray;Ai.concat=n_.concat;Ai.maxRowLength=n_.maxRowLength;Ai.minRowLength=n_.minRowLength;var one=m3();Ai.mod=one.mod;Ai.modHalf=one.modHalf;var a_=gte();Ai.valObjectMeta=a_.valObjectMeta;Ai.coerce=a_.coerce;Ai.coerce2=a_.coerce2;Ai.coerceFont=a_.coerceFont;Ai.coercePattern=a_.coercePattern;Ai.coerceHoverinfo=a_.coerceHoverinfo;Ai.coerceSelectionMarkerOpacity=a_.coerceSelectionMarkerOpacity;Ai.validate=a_.validate;var jp=wie();Ai.dateTime2ms=jp.dateTime2ms;Ai.isDateTime=jp.isDateTime;Ai.ms2DateTime=jp.ms2DateTime;Ai.ms2DateTimeLocal=jp.ms2DateTimeLocal;Ai.cleanDate=jp.cleanDate;Ai.isJSDate=jp.isJSDate;Ai.formatDate=jp.formatDate;Ai.incrementMonth=jp.incrementMonth;Ai.dateTick0=jp.dateTick0;Ai.dfltRange=jp.dfltRange;Ai.findExactDates=jp.findExactDates;Ai.MIN_MS=jp.MIN_MS;Ai.MAX_MS=jp.MAX_MS;var Ab=G6();Ai.findBin=Ab.findBin;Ai.sorterAsc=Ab.sorterAsc;Ai.sorterDes=Ab.sorterDes;Ai.distinctVals=Ab.distinctVals;Ai.roundUp=Ab.roundUp;Ai.sort=Ab.sort;Ai.findIndexOfMin=Ab.findIndexOfMin;Ai.sortObjectKeys=r_();var Ly=Sie();Ai.aggNums=Ly.aggNums;Ai.len=Ly.len;Ai.mean=Ly.mean;Ai.geometricMean=Ly.geometricMean;Ai.median=Ly.median;Ai.midRange=Ly.midRange;Ai.variance=Ly.variance;Ai.stdev=Ly.stdev;Ai.interp=Ly.interp;var wg=R6();Ai.init2dArray=wg.init2dArray;Ai.transposeRagged=wg.transposeRagged;Ai.dot=wg.dot;Ai.translationMatrix=wg.translationMatrix;Ai.rotationMatrix=wg.rotationMatrix;Ai.rotationXYMatrix=wg.rotationXYMatrix;Ai.apply3DTransform=wg.apply3DTransform;Ai.apply2DTransform=wg.apply2DTransform;Ai.apply2DTransform2=wg.apply2DTransform2;Ai.convertCssMatrix=wg.convertCssMatrix;Ai.inverseTransformMatrix=wg.inverseTransformMatrix;var gm=Lie();Ai.deg2rad=gm.deg2rad;Ai.rad2deg=gm.rad2deg;Ai.angleDelta=gm.angleDelta;Ai.angleDist=gm.angleDist;Ai.isFullCircle=gm.isFullCircle;Ai.isAngleInsideSector=gm.isAngleInsideSector;Ai.isPtInsideSector=gm.isPtInsideSector;Ai.pathArc=gm.pathArc;Ai.pathSector=gm.pathSector;Ai.pathAnnulus=gm.pathAnnulus;var C3=Pie();Ai.isLeftAnchor=C3.isLeftAnchor;Ai.isCenterAnchor=C3.isCenterAnchor;Ai.isRightAnchor=C3.isRightAnchor;Ai.isTopAnchor=C3.isTopAnchor;Ai.isMiddleAnchor=C3.isMiddleAnchor;Ai.isBottomAnchor=C3.isBottomAnchor;var L3=Die();Ai.segmentsIntersect=L3.segmentsIntersect;Ai.segmentDistance=L3.segmentDistance;Ai.getTextLocation=L3.getTextLocation;Ai.clearLocationCache=L3.clearLocationCache;Ai.getVisibleSegment=L3.getVisibleSegment;Ai.findPointOnPath=L3.findPointOnPath;var K6=Ao();Ai.extendFlat=K6.extendFlat;Ai.extendDeep=K6.extendDeep;Ai.extendDeepAll=K6.extendDeepAll;Ai.extendDeepNoArrays=K6.extendDeepNoArrays;var oO=J1();Ai.log=oO.log;Ai.warn=oO.warn;Ai.error=oO.error;var Cnt=_3();Ai.counterRegex=Cnt.counter;var sO=W6();Ai.throttle=sO.throttle;Ai.throttleDone=sO.done;Ai.clearThrottle=sO.clear;var Tg=ZS();Ai.getGraphDiv=Tg.getGraphDiv;Ai.isPlotDiv=Tg.isPlotDiv;Ai.removeElement=Tg.removeElement;Ai.addStyleRule=Tg.addStyleRule;Ai.addRelatedStyleRule=Tg.addRelatedStyleRule;Ai.deleteRelatedStyleRule=Tg.deleteRelatedStyleRule;Ai.setStyleOnHover=Tg.setStyleOnHover;Ai.getFullTransformMatrix=Tg.getFullTransformMatrix;Ai.getElementTransformMatrix=Tg.getElementTransformMatrix;Ai.getElementAndAncestors=Tg.getElementAndAncestors;Ai.equalDomRects=Tg.equalDomRects;Ai.clearResponsive=qie();Ai.preserveDrawingBuffer=Nie();Ai.makeTraceGroups=Vie();Ai._=Hie();Ai.notifier=Uq();Ai.filterUnique=aO();Ai.filterVisible=Xie();Ai.pushUnique=Hq();Ai.increment=Yie();Ai.cleanNumber=Jie();Ai.ensureNumber=function(t){return ine(t)?(t=Number(t),t>ane||t=t?!1:ine(e)&&e>=0&&e%1===0};Ai.noop=I6();Ai.identity=$S();Ai.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Ai.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};Ai.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(Ai.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Ai.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};Ai.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,l,u,c;for(s=0;s=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=r&&(u=n-1-u),c+=e[u]*a[l];o[s]=c}return o};Ai.syncOrAsync=function(e,t,r){var n,i;function a(){return Ai.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};Ai.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ai.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Ai.fillArray=function(e,t,r,n){if(n=n||Ai.identity,Ai.isArrayOrTypedArray(e))for(var i=0;iInt.test(window.navigator.userAgent);var Rnt=/Firefox\/(\d+)\.\d+/;Ai.getFirefoxVersion=function(){var e=Rnt.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Ai.isD3Selection=function(e){return e instanceof rM.selection};Ai.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};Ai.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};Ai.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l};Ai.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var une=/^\w*$/;Ai.templateString=function(e,t){var r={};return e.replace(Ai.TEMPLATE_STRING_REGEX,function(n,i){var a;return une.test(i)?a=t[i]:(r[i]=r[i]||Ai.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var znt={max:10,count:0,name:"hovertemplate"};Ai.hovertemplateString=e=>lO(W1(_g({},e),{opts:znt}));var qnt={max:10,count:0,name:"texttemplate"};Ai.texttemplateString=e=>lO(W1(_g({},e),{opts:qnt}));var Ont=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Bnt(e){var t=e.match(Ont);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Nnt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ai.texttemplateStringForShapes=e=>lO(W1(_g({},e),{opts:Nnt}));var ene=/^[:|\|]/;function lO({data:e=[],locale:t,fallback:r,labels:n={},opts:i,template:a}){return a.replace(Ai.TEMPLATE_STRING_REGEX,(o,s,l)=>{let u=["xother","yother"].includes(s),c=["_xother","_yother"].includes(s),f=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),d=u||c||h||f;(c||f)&&(s=s.substring(1)),(h||f)&&(s=s.substring(0,s.length-1));let v=null,m=null;if(i.parseMultDiv){var b=Bnt(s);s=b.key,v=b.op,m=b.number}let p;if(d){if(n[s]===void 0)return"";p=n[s]}else for(let L of e)if(L){if(L.hasOwnProperty(s)){p=L[s];break}if(une.test(s)||(p=Ai.nestedProperty(L,s).get(!0)),p!==void 0)break}if(p===void 0){let{count:L,max:x,name:C}=i,S=r===!1?o:r;return L=Y6&&o<=tne,u=s>=Y6&&s<=tne;if(l&&(n=10*n+o-Y6),u&&(i=10*i+s-Y6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var k3=2e9;Ai.seedPseudoRandom=function(){k3=2e9};Ai.pseudoRandom=function(){var e=k3;return k3=(69069*k3+1)%4294967296,Math.abs(k3-e)<429496729?Ai.pseudoRandom():k3/4294967296};Ai.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Ai.extractOption(e,t,"htx","hovertext");if(Ai.isValidTextValue(i))return n(i);var a=Ai.extractOption(e,t,"tx","text");if(Ai.isValidTextValue(a))return n(a)};Ai.isValidTextValue=function(e){return e||e===0};Ai.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(u=1):u=0,Ai.strTranslate(i-u*(r+o),a-u*(n+s))+Ai.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Ai.setTransormAndDisplay=function(e,t){e.attr("transform",Ai.getTextTransform(t)),e.style("display",t.scale?null:"none")};Ai.ensureUniformFontSize=function(e,t){var r=Ai.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Ai.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};Ai.bigFont=function(e){return Math.round(1.2*e)};var rne=Ai.getFirefoxVersion(),Unt=rne!==null&&rne<86;Ai.getPositionFromD3Event=function(){return Unt?[rM.event.layerX,rM.event.layerY]:[rM.event.offsetX,rM.event.offsetY]}});var dne=ye(()=>{"use strict";var Vnt=Pr(),fne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#fff;border-color:#e0e2e5;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#f3f3f3;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(uO in fne)hne=uO.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Vnt.addStyleRule(hne,fne[uO]);var hne,uO});var cO=ye((Inr,vne)=>{vne.exports=!0});var hO=ye((Rnr,pne)=>{"use strict";var Gnt=cO(),fO;typeof window.matchMedia=="function"?fO=!window.matchMedia("(hover: none)").matches:fO=Gnt;pne.exports=fO});var Sb=ye((Dnr,dO)=>{"use strict";var P3=typeof Reflect=="object"?Reflect:null,gne=P3&&typeof P3.apply=="function"?P3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},J6;P3&&typeof P3.ownKeys=="function"?J6=P3.ownKeys:Object.getOwnPropertySymbols?J6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:J6=function(t){return Object.getOwnPropertyNames(t)};function Hnt(e){console&&console.warn&&console.warn(e)}var yne=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}dO.exports=Jc;dO.exports.once=Znt;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var mne=10;function $6(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Jc,"defaultMaxListeners",{enumerable:!0,get:function(){return mne},set:function(e){if(typeof e!="number"||e<0||yne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");mne=e}});Jc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Jc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||yne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function _ne(e){return e._maxListeners===void 0?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return _ne(this)};Jc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")gne(l,this,r);else for(var u=l.length,c=Ane(l,u),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Hnt(s)}return e}Jc.prototype.addListener=function(t,r){return xne(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return xne(this,t,r,!0)};function jnt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function bne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=jnt.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return $6(r),this.on(t,bne(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return $6(r),this.prependListener(t,bne(this,t,r)),this};Jc.prototype.removeListener=function(t,r){var n,i,a,o,s;if($6(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Wnt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Jc.prototype.off=Jc.prototype.removeListener;Jc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function wne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Xnt(i):Ane(i,i.length)}Jc.prototype.listeners=function(t){return wne(this,t,!0)};Jc.prototype.rawListeners=function(t){return wne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Tne.call(e,t)};Jc.prototype.listenerCount=Tne;function Tne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Jc.prototype.eventNames=function(){return this._eventsCount>0?J6(this._events):[]};function Ane(e,t){for(var r=new Array(t),n=0;n{"use strict";var vO=Sb().EventEmitter,Knt={init:function(e){if(e._ev instanceof vO)return e;var t=new vO,r=new vO;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(l){if(l.listener){if(i.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(i,[r])}else return l.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var Ene=Pr(),Jnt=xb().dfltConfig;function $nt(e,t){for(var r=[],n,i=0;iJnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Py.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Py.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Py.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";Lne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var F3=ye(ed=>{"use strict";var x0=Oa(),iM=Pr(),eL=Vl(),gO=T3(),Qnt=pO(),eat=YS(),tat=xb().configAttributes,Pne=mc(),Ag=iM.extendDeepAll,R3=iM.isPlainObject,rat=iM.isArrayOrTypedArray,tL=iM.nestedProperty,iat=iM.valObjectMeta,mO="_isSubplotObj",rL="_isLinkedToArray",nat="_arrayAttrRegexps",Rne="_deprecated",yO=[mO,rL,nat,Rne];ed.IS_SUBPLOT_OBJ=mO;ed.IS_LINKED_TO_ARRAY=rL;ed.DEPRECATED=Rne;ed.UNDERSCORE_ATTRS=yO;ed.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=oat(t)}),{defs:{valObjects:iat,metaKeys:yO.concat(["description","role","editType","impliedEdits"]),editType:{traces:Pne.traces,layout:Pne.layout},impliedEdits:{}},traces:e,layout:sat(),frames:lat(),animation:D3(eat),config:D3(tat)}};ed.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(yO.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!ed.isValObject(o)&&R3(o)&&a!=="impliedEdits"&&ed.crawl(o,t,i+1,s)}})};ed.isValObject=function(e){return e&&e.valType!==void 0};ed.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),n=n.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(i,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)rat(f)&&t.push(a+h);else if(n[u]){if(Array.isArray(f))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!Q6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function Q6(e){return e===Math.round(e)&&e>=0}function oat(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=Ag({},eL),a=Ag({},t.attributes);ed.crawl(a,function(l,u,c,f,h){tL(i,h).set(void 0),l===void 0&&tL(a,h).set(void 0)}),Ag(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,Ag(n,a),r.attributes&&Ag(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:D3(n)};if(t.layoutAttributes){var s={};Ag(s,t.layoutAttributes),o.layoutAttributes=D3(s)}return t.animatable||ed.crawl(o,function(l){ed.isValObject(l)&&"anim"in l&&delete l.anim}),o}function sat(){var e={},t,r;Ag(e,gO);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var z3=Pr(),dat=Vl(),o_="templateitemname",_O={name:{valType:"string",editType:"none"}};_O[o_]={valType:"string",editType:"calc"};Mb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=_O.name,t[o_]=_O[o_],t};Mb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=z3.coerce(a,{},dat,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};Mb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);z3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};Mb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[zne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[o_]=u[o_];if(!Fne(f))return c._template=i,c;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function l(){s={},a&&(s[o]={},s[o][o_]=a)}l();function u(d,v){s[d]=v}function c(d,v){a?z3.nestedProperty(s[o],d).set(v):s[o+"."+d]=v}function f(){var d=s;return l(),d}function h(d,v){d&&c(d,v);var m=f();for(var b in m)z3.nestedProperty(e,b).set(m[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var Rh=ye((Nnr,qne)=>{"use strict";var nM=_3().counter;qne.exports={idRegex:{x:nM("x","( domain)?"),y:nM("y","( domain)?")},attrRegex:nM("[xy]axis"),xAxisMatch:nM("xaxis"),yAxisMatch:nM("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var df=ye(Sp=>{"use strict";var vat=Oa(),xO=Rh();Sp.id2name=function(t){if(!(typeof t!="string"||!t.match(xO.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Sp.name2id=function(t){if(t.match(xO.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Sp.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(xO.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].slice(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};Sp.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=Sp.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Sp.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function One(e,t){if(t&&t.length){for(var r=0;r{"use strict";function pat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function gat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Bne.exports={clearOutlineControllers:pat,clearOutline:gat}});var iL=ye((Gnr,Nne)=>{"use strict";Nne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Id=ye(aL=>{"use strict";var nL=Oa(),Hnr=Rh().SUBPLOT_PATTERN;aL.getSubplotCalcData=function(e,t,r){var n=nL.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var mat=Oa(),q3=Pr();Eb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=Eb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Une(e,o,i.cache),i.check=function(){if(a){var c=Une(e,o,i.cache);return c.changed&&n&&i.lookupTable[c.value]!==void 0&&(i.disable(),Promise.resolve(n({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[c.value]})).then(i.enable,i.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+i;q3.isPlainObject(a)?bO(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((Xnr,iae)=>{"use strict";var _at=Fa(),xat=p3().timeFormatLocale,bat=Lq().formatLocale,aM=Eo(),wat=Pq(),Tat=OS().version,Xl=Oa(),Jne=F3(),Aat=vl(),Na=Pr(),$ne=ka(),jne=fs().BADNUM,Mp=df(),Sat=s_().clearOutline,Mat=iL(),wO=YS(),Eat=pO(),kat=Id().getModuleCalcData,Wne=Na.relinkPrivateKeys,kb=Na._,xa=iae.exports={};Na.extendFlat(xa,Xl);xa.attributes=Vl();xa.attributes.type.values=xa.allTypes;xa.fontAttrs=ec();xa.layoutAttributes=T3();var sL=Hne();xa.executeAPICommand=sL.executeAPICommand;xa.computeAPICommandBindings=sL.computeAPICommandBindings;xa.manageCommandObserver=sL.manageCommandObserver;xa.hasSimpleAPICommandBindings=sL.hasSimpleAPICommandBindings;xa.redrawText=function(e){return e=Na.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Xl.getComponentMethod("annotations","draw")(e),Xl.getComponentMethod("legend","draw")(e),Xl.getComponentMethod("colorbar","draw")(e),t(xa.previousPromises(e)))},300)})};xa.resize=function(e){e=Na.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||Na.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Na.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Xl.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};xa.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};xa.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Na.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:$ne.defaultLine,"pointer-events":"all"}).each(function(){var u=_at.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Cat(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Cat(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){xa.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}xa.sendDataToCloud=function(e,t){e.emit("plotly_beforeexport");let r=new URL(t).origin;var n=xa.graphJson(e,!1,"keepdata","object");n.version=Tat;var i=new URL(t);i.searchParams.set("origin",window.location.origin);var a=window.open(i.href,"_blank");if(!a){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(s){s.origin===r&&s.data&&s.data.type==="CHART_AUTH_SUCCESS"&&(a.postMessage({type:"chart",chart:n},r),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var Lat=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Pat=["year","month","dayMonth","dayMonthYear"];xa.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||xa.createTransitionData(e),i._dfltTitle={plot:kb(e,"Click to enter Plot title"),subtitle:kb(e,"Click to enter Plot subtitle"),x:kb(e,"Click to enter X axis title"),y:kb(e,"Click to enter Y axis title"),colorbar:kb(e,"Click to enter Colorscale title"),annotation:kb(e,"new text")},i._traceWord=kb(e,"trace");var h=Xne(e,Lat);if(i._mapboxAccessToken=c.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,v=n.height;xa.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=v),xa.sanitizeMargins(i)}else{xa.supplyLayoutGlobalDefaults(a,i,h);var m=!a.width||!a.height,b=i.autosize,p=c.autosizable,k=m&&(b||p);k?xa.plotAutoSize(e,a,i):m&&xa.sanitizeMargins(i),!b&&m&&(a.width=i.width,a.height=i.height)}i._d3locale=Dat(h,i.separators),i._extraFormat=Xne(e,Pat),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var M=i._subplots=Rat(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Iat(o,l),xa.supplyDataDefaults(l,s,a,i);var x=Object.keys(T.x),C=Object.keys(T.y);if(x.length>1&&C.length>1){for(Xl.getComponentMethod("grid","sizeDefaults")(a,i),f=0;f15&&C.length>15&&i.shapes.length===0&&i.images.length===0,xa.linkSubplots(s,i,o,n),xa.cleanPlot(s,i,o,n);var z=!!(n._has&&n._has("cartesian")),q=!!(i._has&&i._has("cartesian")),V=z,G=q;V&&!G?n._bgLayer.remove():G&&!V&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Sat({_fullLayout:n}),Fat(s,i),Wne(i,n),Xl.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var Z=i._tracePreGUI,j={},N;for(N in Z)j[N]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=xa.layoutAttributes.width.min,h=xa.layoutAttributes.height.min;o1,v=!r.height&&Math.abs(n.height-s)>1;(v||d)&&(d&&(n.width=o),v&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),xa.sanitizeMargins(n)};xa.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Xl.componentsRegistry,a=t._basePlotModules,o,s,l,u=Xl.subplotsRegistry.cartesian;for(o in i)l=i[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Xl.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(Na.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var p=(r.t+r.b)/h;p>1&&(r.t/=p,r.b/=p)}var k=r.xl!==void 0?r.xl:r.x,M=r.xr!==void 0?r.xr:r.x,T=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:k,size:r.l+m},r:{val:M,size:r.r+m},b:{val:L,size:r.b+m},t:{val:T,size:r.t+m}},v[t]=1}if(!n._replotting)return xa.doAutoMargin(e)}};function qat(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Mp.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}xa.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),Qne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=Na.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,m=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var p=e._fullLayout._reservedMargin;for(var k in p)for(var M in p[k]){var T=p[k][M];o[M]=Math.max(o[M],T)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var L in o){var x=0;for(var C in h)C!=="base"&&aM(h[C][L].size)&&(x=h[C][L].size>x?h[C][L].size:x);var S=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-S)}for(var g in h){var P=h[g].l||{},E=h[g].b||{},z=P.val,q=P.size,V=E.val,G=E.size,Z=r-o.r-o.l,j=n-o.t-o.b;for(var N in h){if(aM(q)&&h[N].r){var H=h[N].r.val,re=h[N].r.size;if(H>z){var ae=(q*H+(re-Z)*z)/(H-z),_e=(re*(1-z)+(q-Z)*(1-H))/(H-z);ae+_e>l+u&&(l=ae,u=_e)}}if(aM(G)&&h[N].t){var Ee=h[N].t.val,Ce=h[N].t.size;if(Ee>V){var ge=(G*Ee+(Ce-j)*V)/(Ee-V),ie=(Ce*(1-V)+(G-j)*(1-Ee))/(Ee-V);ge+ie>f+c&&(f=ge,c=ie)}}}}}var Se=Na.constrain(r-a.l-a.r,eae,v),ke=Na.constrain(n-a.t-a.b,tae,m),be=Math.max(0,r-Se),Be=Math.max(0,n-ke);if(be){var Le=(l+u)/be;Le>1&&(l/=Le,u/=Le)}if(Be){var me=(f+c)/Be;me>1&&(f/=me,c/=me)}if(i.l=Math.round(l)+o.l,i.r=Math.round(u)+o.r,i.t=Math.round(c)+o.t,i.b=Math.round(f)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(xa.didMarginChange(s,i)||qat(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Pe=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};xa.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&xa.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Na.isPlainObject(h)){var v={},m;return Object.keys(h).sort().forEach(function(M){if(["_","["].indexOf(M.charAt(0))===-1){if(typeof h[M]=="function"){d&&(v[M]="_function");return}if(r==="keepdata"){if(M.slice(-3)==="src")return}else if(r==="keepstream"){if(m=h[M+"src"],typeof m=="string"&&m.indexOf(":")>0&&!Na.isPlainObject(h.stream))return}else if(r!=="keepall"&&(m=h[M+"src"],typeof m=="string"&&m.indexOf(":")>0))return;v[M]=u(h[M],d)}}),v}var b=Array.isArray(h),p=Na.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var k=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Na.isArrayBuffer(k)?wat.encode(k):k},d)}return b?h.map(function(M){return u(M,d)}):p?Na.simpleMap(h,Na.identity):Na.isJSDate(h)?Na.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var d=u(h);return t&&delete d.fit,d})};if(!t&&(c.layout=u(s),i)){var f=s._size;c.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(c.frames=u(l)),a&&(c.config=u(e._context,!0)),n==="object"?c:JSON.stringify(c)};xa.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xl.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function v(){return h++,function(){d++,!n&&d===h&&s(f)}}r.runFn(v),setTimeout(v())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Xl.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var u=[xa.previousPromises,l,r.prepareFn,xa.rehover,xa.reselect,o],c=Na.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}xa.doCalcdata=function(e,t){var r=Mp.list(e),n=e._fullData,i=e._fullLayout,a,o,s,l,u=new Array(n.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;l--)if(L[l].enabled){a._indexToPoints=L[l]._indexToPoints;break}o&&o.calc&&(T=o.calc(e,a))}(!Array.isArray(T)||!T[0])&&(T=[{x:jne,y:jne}]),T[0].t||(T[0].t={}),T[0].trace=a,u[k]=T}}for(Yne(r,n,i),s=0;s{"use strict";Cb.xmlns="http://www.w3.org/2000/xmlns/";Cb.svg="http://www.w3.org/2000/svg";Cb.xlink="http://www.w3.org/1999/xlink";Cb.svgAttrs={xmlns:Cb.svg,"xmlns:xlink":Cb.xlink}});var Dh=ye((Ynr,nae)=>{"use strict";nae.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Zl=ye(b0=>{"use strict";var Fh=Fa(),Iy=Pr(),Uat=Iy.strTranslate,TO=Wp(),Vat=Dh().LINE_SPACING,Gat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Gat),a=Fh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=rot(e.node(),n);l&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};Xat(i[2],c,function(f,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=f&&f.select("svg");if(!v||!v.node()){s(),l();return}var m=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});m.node().appendChild(v.node()),h&&h.node()&&v.node().insertBefore(h.node().cloneNode(!0),v.node().firstChild);var b=d.width,p=d.height;v.attr({class:o,height:p,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",M=v.select("g");M.attr({fill:k,stroke:k});var T=M.node().getBoundingClientRect(),L=T.width,x=T.height;(L>b||x>p)&&(v.style("overflow","hidden"),T=v.node().getBoundingClientRect(),L=T.width,x=T.height);var C=+e.attr("x"),S=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")m.attr({transform:"rotate("+[-90,C,S]+")"+Uat(-L/2,P-x/2)});else if(o[0]==="l")S=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,S=P;else{var E=e.attr("text-anchor");C=C-L*(E==="middle"?.5:E==="end"?1:0),S=S+P-x/2}v.attr({x:C,y:S}),r&&r.call(e,m),l(m)})})):s(),e};var Hat=/(<|<|<)/g,jat=/(>|>|>)/g;function Wat(e){return e.replace(Hat,"\\lt ").replace(jat,"\\gt ")}var aae=[["$","$"],["\\(","\\)"]];function Xat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Iy.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Iy.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:aae},displayAlign:"left"})},u=function(){a=Iy.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=aae},c=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},f=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var k="math-output-"+Iy.randstr({},64);s=Fh.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Wat(e));var M=s.node();return n===2?MathJax.Hub.Typeset(M):MathJax.typeset([M])},d=function(){var k=s.select(n===2?".MathJax_SVG":".MathJax"),M=!k.empty()&&s.select("svg").node();if(!M)Iy.log("There was an error in the tex syntax.",e),r();else{var T=M.getBoundingClientRect(),L;n===2?L=Fh.select("body").select("#MathJax_SVG_glyphs"):L=k.select("defs"),r(k,L,T)}s.remove()},v=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},m=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},p=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(l,c,h,d,v,b):n===3&&(u(),f(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),m(),p()}))}var uae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Zat={sub:"0.3em",sup:"-0.6em"},Yat={sub:"-0.21em",sup:"0.42em"},oae="\u200B",sae=["http:","https:","mailto:","",void 0,":"],cae=b0.NEWLINES=/(\r\n?|\n)/g,SO=/(<[^<>]*>)/,MO=/<(\/?)([^ >]*)(\s+(.*))?>/i,Kat=//i;b0.BR_TAG_ALL=//gi;var fae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,hae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,dae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Jat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Lb(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&lL(n)}var $at=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(SO),s=[],l="",u=0,c=0;ca?s.push(f.slice(0,Math.max(0,m-a))+i):s.push(f.slice(0,m));break}l=""}}return s.join("")};var Qat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},eot=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function lL(e){return e.replace(eot,function(t,r){var n;return r.charAt(0)==="#"?n=tot(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):n=Qat[r],n||t})}b0.convertEntities=lL;function tot(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function rot(e,t){t=t.replace(cae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(TO.svg,"tspan");Fh.select(x).attr({class:"line",dy:a*Vat+"em"}),e.appendChild(x),i=x;var C=n;if(n=[{node:x}],C.length>1)for(var S=1;S.",t);return}var C=n.pop();x!==C.type&&Iy.log("Start tag <"+C.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var c=Kat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(SO),h=0;h{"use strict";var iot=Fa(),cL=fd(),sM=Eo(),uL=Pr(),pae=ka(),not=yb().isValid;function aot(e,t,r){var n=t?uL.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(uL.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function bae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var Tae=Zq(),sot=Tae.FORMAT_LINK,lot=Tae.DATE_FORMAT_LINK;function uot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?EO:Aae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function EO(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+sot+"."].join(" ")}function Aae(e,t){return EO(e,t)+[" And for dates see: "+lot+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Sae.exports={axisHoverFormat:uot,descriptionOnlyNumbers:EO,descriptionWithDates:Aae}});var Rd=ye((ear,Vae)=>{"use strict";var Mae=ec(),O3=Ih(),Uae=Pd().dash,CO=Ao().extendFlat,Eae=vl().templatedArray,Qnr=Pl().templateFormatStringDescription,kae=vf().descriptionWithDates,cot=fs().ONEDAY,mm=Rh(),fot=mm.HOUR_PATTERN,hot=mm.WEEKDAY_PATTERN,kO={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},dot=CO({},kO,{values:kO.values.slice().concat(["sync"])});function Cae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Lae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Pae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Iae={valType:"data_array",editType:"ticks"},Rae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Dae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Fae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var zae={valType:"color",dflt:O3.defaultLine,editType:"ticks"},qae={valType:"color",dflt:O3.lightLine,editType:"ticks"};function Oae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Bae=CO({},Uae,{editType:"ticks"}),Nae={valType:"boolean",editType:"ticks"};Vae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:O3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Mae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[mm.idRegex.x.toString(),mm.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[mm.idRegex.x.toString(),mm.idRegex.y.toString()],editType:"calc"},rangebreaks:Eae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[hot,fot,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:cot},editType:"calc"}),tickmode:dot,nticks:Cae(),tick0:Lae,dtick:Pae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Iae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Rae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Dae(),tickwidth:Fae(),tickcolor:zae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:CO({},Uae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Mae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:kae("tick label")},tickformatstops:Eae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:kae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:O3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Nae,gridcolor:qae,gridwidth:Oae(),griddash:Bae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:O3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:O3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",mm.idRegex.x.toString(),mm.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",mm.idRegex.x.toString(),mm.idRegex.y.toString()],editType:"plot"},minor:{tickmode:kO,nticks:Cae("minor"),tick0:Lae,dtick:Pae,tickvals:Iae,ticks:Rae,ticklen:Dae("minor"),tickwidth:Fae("minor"),tickcolor:zae,gridcolor:qae,gridwidth:Oae("minor"),griddash:Bae,showgrid:Nae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var fL=ye((tar,jae)=>{"use strict";var $c=Rd(),Gae=ec(),Hae=Ao().extendFlat,vot=mc().overrideAll;jae.exports=vot({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:$c.linecolor,outlinewidth:$c.linewidth,bordercolor:$c.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:$c.minor.tickmode,nticks:$c.nticks,tick0:$c.tick0,dtick:$c.dtick,tickvals:$c.tickvals,ticktext:$c.ticktext,ticks:Hae({},$c.ticks,{dflt:""}),ticklabeloverflow:Hae({},$c.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:$c.ticklen,tickwidth:$c.tickwidth,tickcolor:$c.tickcolor,ticklabelstep:$c.ticklabelstep,showticklabels:$c.showticklabels,labelalias:$c.labelalias,tickfont:Gae({}),tickangle:$c.tickangle,tickformat:$c.tickformat,tickformatstops:$c.tickformatstops,tickprefix:$c.tickprefix,showtickprefix:$c.showtickprefix,ticksuffix:$c.ticksuffix,showticksuffix:$c.showticksuffix,separatethousands:$c.separatethousands,exponentformat:$c.exponentformat,minexponent:$c.minexponent,showexponent:$c.showexponent,title:{text:{valType:"string"},font:Gae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((iar,Xae)=>{"use strict";var pot=fL(),got=_3().counter,mot=r_(),Wae=yb().scales,rar=mot(Wae);function hL(e){return"`"+e+"`"}Xae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Wae[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[n],f="in "+hL(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",m=n+"max",b=n+"mid",p=hL(u+d),k=hL(u+v),M=hL(u+m),T=k+" and "+M,L={};L[v]=L[m]=void 0;var x={};x[d]=!1;var C={};return c==="color"&&(C.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(C.color.anim=!0)),C[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},C[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},C[m]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},C[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},C.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(C.showscale={valType:"boolean",dflt:o,editType:"calc"},C.colorbar=pot),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:got("coloraxis"),dflt:null,editType:"calc"}),C}});var PO=ye((nar,Zae)=>{"use strict";var yot=Ao().extendFlat,_ot=Tu(),LO=yb().scales;Zae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:LO.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:LO.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:LO.RdBu,editType:"calc"}},coloraxis:yot({_isSubplotObj:!0,editType:"calc"},_ot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var IO=ye((aar,Yae)=>{"use strict";var xot=Pr();Yae.exports=function(t){return xot.isPlainObject(t.colorbar)}});var FO=ye(DO=>{"use strict";var RO=Eo(),Kae=Pr(),Jae=fs(),bot=Jae.ONEDAY,wot=Jae.ONEWEEK;DO.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?bot:1;if(!e)return a;if(RO(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.slice(1);return s=RO(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};DO.tick0=function(e,t,r,n){if(t==="date")return Kae.cleanDate(e,Kae.dateTick0(r,n%wot===0?1:0));if(!(n==="D1"||n==="D2"))return RO(e)?Number(e):0}});var Pb=ye((sar,Qae)=>{"use strict";var $ae=FO(),Tot=Pr().isArrayOrTypedArray,Aot=Yd().isTypedArraySpec,Sot=Yd().decodeTypedArraySpec;Qae.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(k){var M=s[k];return Aot(M)&&(M=Sot(M)),M!==void 0?M:(l._template||{})[k]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=Tot(d)?"array":h?"linear":"auto",m=n(u+"tickmode",v);if(m==="auto"||m==="sync")n(u+"nticks");else if(m==="linear"){var b=l.dtick=$ae.dtick(h,i);l.tick0=$ae.tick0(f,i,r.calendar,b)}else if(i!=="multicategory"){var p=n(u+"tickvals");p===void 0?l.tickmode="auto":o||n("ticktext")}}});var B3=ye((lar,toe)=>{"use strict";var zO=Pr(),eoe=Rd();toe.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?eoe.minor:eoe,u=a?"minor.":"",c=zO.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=zO.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=zO.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(u+"ticks",!a&&i.outerTicks||c||f||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var qO=ye((uar,roe)=>{"use strict";roe.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Kd=ye((car,ioe)=>{"use strict";var dL=Pr(),Mot=vl();ioe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=dL.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=Mot.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var OO=Pr(),Eot=ka().contrast,noe=Rd(),kot=qO(),Cot=Kd();aoe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");OO.isPlainObject(o)||delete r.labelalias;var s=kot(t),l=n("showticklabels");if(l){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?Eot(a.bgColor):c&&c!==noe.color.dflt?c:u.color;if(OO.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var v=n("tickformat");Cot(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Lot}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!v&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function Lot(e,t){function r(i,a){return OO.coerce(e,t,noe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var u_=ye((har,ooe)=>{"use strict";var Pot=qO();ooe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Pot(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var BO=ye((dar,soe)=>{"use strict";var c_=Pr(),Iot=vl(),Rot=Pb(),Dot=B3(),Fot=l_(),zot=u_(),qot=fL();soe.exports=function(t,r,n){var i=Iot.newContainer(r,"colorbar"),a=t.colorbar||{};function o(E,z){return c_.coerce(a,i,qot,E,z)}var s=n.margin||{t:0,b:0,l:0,r:0},l=n.width-s.l-s.r,u=n.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:f?u:l);var v=o("yref"),m=o("xref"),b=v==="paper",p=m==="paper",k,M,T,L="left";f?(T="middle",L=p?"left":"right",k=p?1.02:1,M=.5):(T=b?"bottom":"top",L="center",k=.5,M=b?1.02:1),c_.coerce(a,i,{x:{valType:"number",min:p?-2:0,max:p?3:1,dflt:k}},"x"),c_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:M}},"y"),o("xanchor",L),o("xpad"),o("yanchor",T),o("ypad"),c_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=c_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),Rot(a,i,o,"linear");var C=n.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};x.indexOf("inside")!==-1&&(S.bgColor="black"),zot(a,i,o,"linear",S),Fot(a,i,o,"linear",S),Dot(a,i,o,"linear",S),o("title.text",n._dfltTitle.colorbar);var g=i.showticklabels?i.tickfont:C,P=c_.extendFlat({},C,{family:g.family,size:c_.bigFont(g.size)});c_.coerceFont(o,"title.font",P),o("title.side",f?"top":"right")}});var td=ye((par,coe)=>{"use strict";var loe=Eo(),UO=Pr(),Oot=IO(),Bot=BO(),uoe=yb().isValid,Not=Oa().traceIs;function NO(e,t){var r=t.slice(0,t.length-1);return t?UO.nestedProperty(e,r).get()||{}:e}coe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=NO(t,o),c=NO(r,o),f=NO(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(l){var d=n._colorAxes||{},v=i(o+"coloraxis");if(v){var m=Not(r,"contour")&&UO.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==m&&(b[0]=!1,UO.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[m,r,[h]];return}}var p=u[s+"min"],k=u[s+"max"],M=loe(p)&&loe(k)&&p{"use strict";var foe=Pr(),Uot=vl(),hoe=PO(),Vot=td();doe.exports=function(t,r){function n(f,h){return foe.coerce(t,r,hoe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return foe.coerce(a,o,hoe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Uot.newContainer(r,l,"coloraxis"),o._name=l,Vot(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var Got=Pr(),Hot=pv().hasColorscale,jot=pv().extractOpts;poe.exports=function(t,r){function n(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function i(c,f){var h=f.container?Got.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=jot(h),v=d.auto;(v||d.min===void 0)&&n(h,f.min),(v||d.max===void 0)&&n(h,f.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var moe=Eo(),VO=Pr(),Wot=pv().extractOpts;yoe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?VO.nestedProperty(r,o).get():r,l=Wot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return VO.aggNums(Math.min,null,a)},v=function(){return VO.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&moe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&moe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?m=i.colorscale.sequential:m=i.colorscale.sequentialminus,l._sync("colorscale",m)}}});var tc=ye((_ar,_oe)=>{"use strict";var vL=yb(),N3=pv();_oe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:PO(),supplyLayoutDefaults:voe(),handleDefaults:td(),crossTraceDefaults:goe(),calc:gv(),scales:vL.scales,defaultScale:vL.defaultScale,getScale:vL.get,isValidScale:vL.isValid,hasColorscale:N3.hasColorscale,extractOpts:N3.extractOpts,extractScale:N3.extractScale,flipScale:N3.flipScale,makeColorScaleFunc:N3.makeColorScaleFunc,makeColorScaleFuncFromTrace:N3.makeColorScaleFuncFromTrace}});var Ru=ye((xar,boe)=>{"use strict";var xoe=Pr(),Xot=Yd().isTypedArraySpec;boe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return xoe.isPlainObject(t)&&(xoe.isArrayOrTypedArray(t.size)||Xot(t.size))}}});var U3=ye((bar,woe)=>{"use strict";var Zot=Eo();woe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var l=o(s/r);return Zot(l)&&l>0?Math.max(l,a):0}}});var ip=ye(mv=>{"use strict";var pL=Pr();mv.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};mv.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{Soe.exports=Qot;var GO={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},$ot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Qot(e){var t=[];return e.replace($ot,function(r,n,i){var a=n.toLowerCase();for(i=tst(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==GO[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var rst=lM(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},hs="M0,0Z",Moe=Math.sqrt(2),f_=Math.sqrt(3),HO=Math.PI,jO=Math.cos,WO=Math.sin;Poe.exports={circle:{n:0,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?vs(t,r,i):i}},square:{n:1,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.3,2);return vs(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.4,2),i=ca(e*1.2,2);return vs(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.8/Moe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return vs(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/f_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/f_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/f_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/f_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.951,2),i=ca(e*.588,2),a=ca(-e,2),o=ca(e*-.309,2),s=ca(e*.809,2);return vs(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e/2,2),a=ca(e*f_/2,2);return vs(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e/2,2),a=ca(e*f_/2,2);return vs(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.924,2),i=ca(e*.383,2);return vs(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(ds(t))return hs;var n=e*1.4,i=ca(n*.225,2),a=ca(n*.951,2),o=ca(n*.363,2),s=ca(n*.588,2),l=ca(-n,2),u=ca(n*-.309,2),c=ca(n*.118,2),f=ca(n*.809,2),h=ca(n*.382,2);return vs(t,r,"M"+i+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+i+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.66,2),i=ca(e*.38,2),a=ca(e*.76,2);return vs(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*f_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return vs(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*f_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return vs(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.1,2),i=ca(e*2,2),a="A "+i+","+i+" 0 0 1 ";return vs(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2),i=ca(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return vs(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.7,2),i=ca(e*1.4,2);return vs(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2),i=ca(e*.7,2);return vs(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e/Moe,2);return vs(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.3,2);return vs(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.3,2),i=ca(e*.65,2);return vs(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*.85,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(ds(t))return hs;var n=ca(e/2,2),i=ca(e,2);return vs(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2);return vs(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2);return vs(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(ds(t))return hs;var n=HO/2.5,i=2*e*jO(n),a=2*e*WO(n);return vs(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(ds(t))return hs;var n=HO/4,i=2*e*jO(n),a=2*e*WO(n);return vs(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function ds(e){return e===null}var Eoe,koe,Coe,Loe;function vs(e,t,r){if((!e||e%360===0)&&!t)return r;if(Coe===e&&Loe===t&&Eoe===r)return koe;Coe=e,Loe=t,Eoe=r;function n(b,p){var k=jO(b),M=WO(b),T=p[0],L=p[1]+(t||0);return[T*k-L*M,T*M+L*k]}for(var i=e/180*HO,a=0,o=0,s=rst(r),l="",u=0;u{"use strict";var dd=Fa(),Du=Pr(),ist=Du.numberFormat,Fb=Eo(),$O=fd(),mL=Oa(),Jd=ka(),nst=tc(),cM=Du.strTranslate,yL=Zl(),ast=Wp(),ost=Dh(),sst=ost.LINE_SPACING,Voe=Z1().DESELECTDIM,lst=Ru(),ust=U3(),cst=ip().appendArrayPointValue,Ta=$oe.exports={};Ta.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Jd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),c&&e.style("text-transform",XO(hst(c))),l&&e.style("text-shadow",l==="auto"?yL.makeTextShadow(Jd.contrast(a)):XO(l)),u&&e.style("text-decoration-line",XO(dst(u)))};function XO(e){return e==="none"?void 0:e}var fst={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function hst(e){return fst[e]}function dst(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Ta.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Ta.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Ta.setRect=function(e,t,r,n,i){e.call(Ta.setPosition,t,r).call(Ta.setSize,n,i)};Ta.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Fb(i)&&Fb(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",cM(i,a));else return!1;return!0};Ta.translatePoints=function(e,t,r){e.each(function(n){var i=dd.select(this);Ta.translatePoint(n,i,t,r)})};Ta.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Ta.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,l=mL.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Ta.hideOutsideRangePoint(u,dd.select(this),r,n,o,s)})})}};Ta.crispRound=function(e,t,r){return!t||!Fb(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Ta.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Jd.stroke(t,n||a.color),Ta.dashLine(t,s,o)};Ta.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";dd.select(this).call(Jd.stroke,r||a.color).call(Ta.dashLine,s,o)})};Ta.dashLine=function(e,t,r){r=+r||0,t=Ta.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Ta.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Goe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Ta.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var l=o(i.bgcolor,0,null),u=o(i.fgcolor,0,null),c=i.fgopacity,f=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Ta.pattern(e,"point",r,d,s,f,h,void 0,i.fillmode,l,u,c)}else if(a&&a.type!=="none"){var v=a.type,m="scatterfill-"+t.uid;if(n&&(m="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,p;v==="horizontal"?(b={x:a.start,y:0},p={x:a.stop,y:0}):v==="vertical"&&(b={x:0,y:a.start},p={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),p.x=t._xA.c2p(p.x===void 0?t._extremes.x.max[0].val:p.x,!0),p.y=t._yA.c2p(p.y===void 0?t._extremes.y.max[0].val:p.y,!0),e.call(Woe,r,m,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Ta.gradient,r,m,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Jd.fill,t.fillcolor)}Ta.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Goe(e,i,t,!1)};Ta.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=dd.select(this);n[0].trace&&Goe(i,n[0].trace,t,r)})};var Roe=Ioe();Ta.symbolNames=[];Ta.symbolFuncs=[];Ta.symbolBackOffs=[];Ta.symbolNeedLines={};Ta.symbolNoDot={};Ta.symbolNoFill={};Ta.symbolList=[];Object.keys(Roe).forEach(function(e){var t=Roe[e],r=t.n;Ta.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Ta.symbolNames[r]=e,Ta.symbolFuncs[r]=t.f,Ta.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Ta.symbolNeedLines[r]=!0),t.noDot?Ta.symbolNoDot[r]=!0:Ta.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Ta.symbolNoFill[r]=!0)});var vst=Ta.symbolNames.length,pst="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ta.symbolNumber=function(e){if(Fb(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Ta.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=vst||e>=400?0:Math.floor(Math.max(e,0))};function Hoe(e,t,r,n){var i=e%100;return Ta.symbolFuncs[i](t,r,n)+(e>=200?pst:"")}var Doe=ist("~f"),joe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Ta.gradient=function(e,t,r,n,i,a){var o=joe[n];return Woe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Woe(e,t,r,n,i,a,o,s,l,u){var c=i.length,f;n==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=n.ms2mrc(e.ms),e.mrc=l,n.selectedSizeFn&&(l=e.mrc=n.selectedSizeFn(e));var u=Ta.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=tB(e,r),f=eB(e,r);t.attr("d",Hoe(u,l,c,f))}var h=!1,d,v,m;if(e.so)m=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;m=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):Du.isArrayOrTypedArray(s.color)?v=Jd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Jd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}let p=e.mld||(s||{}).dash;if(p&&Ta.dashLine(t,p,m),e.om)t.call(Jd.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:m)+"px");var k=o.gradient,M=e.mgt;M?h=!0:M=k&&k.type,Du.isArrayOrTypedArray(M)&&(M=M[0],joe[M]||(M=0));var T=o.pattern,L=Ta.getPatternAttr,x=T&&(L(T.shape,e.i,"")||L(T.path,e.i,""));if(M&&M!=="none"){var C=e.mgc;C?h=!0:C=k.color;var S=r.uid;h&&(S+="-"+e.i),Ta.gradient(t,i,S,M,[[0,C],[1,d]],"fill")}else if(x){var g=!1,P=T.fgcolor;!P&&a&&a.color&&(P=a.color,g=!0);var E=L(P,e.i,a&&a.color||null),z=L(T.bgcolor,e.i,null),q=T.fgopacity,V=L(T.size,e.i,8),G=L(T.solidity,e.i,.3);g=g||e.mcc||Du.isArrayOrTypedArray(T.shape)||Du.isArrayOrTypedArray(T.path)||Du.isArrayOrTypedArray(T.bgcolor)||Du.isArrayOrTypedArray(T.fgcolor)||Du.isArrayOrTypedArray(T.size)||Du.isArrayOrTypedArray(T.solidity);var Z=r.uid;g&&(Z+="-"+e.i),Ta.pattern(t,"point",i,Z,x,V,G,e.mcc,T.fillmode,z,E,q)}else Du.isArrayOrTypedArray(d)?Jd.fill(t,d[e.i]):Jd.fill(t,d);m&&Jd.stroke(t,v)}};Ta.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Ta.tryColorscale(r,""),t.lineScale=Ta.tryColorscale(r,"line"),mL.traceIs(e,"symbols")&&(t.ms2mrc=lst.isBubble(e)?ust(e):function(){return(r.size||6)/2}),e.selectedpoints&&Du.extendFlat(t,Ta.makeSelectedPointStyleFns(e)),t};Ta.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(Du.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(T){var L=T.mo===void 0?i.opacity:T.mo;return T.selected?c?l:L:f?u:Voe*L});var h=i.color,d=a.color,v=o.color;(d||v)&&(t.selectedColorFn=function(T){var L=T.mcc||h;return T.selected?d||L:v||L});var m=i.size,b=a.size,p=o.size,k=b!==void 0,M=p!==void 0;return mL.traceIs(e,"symbols")&&(k||M)&&(t.selectedSizeFn=function(T){var L=T.mrc||m/2;return T.selected?k?b/2:L:M?p/2:L}),t};Ta.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:Jd.addOpacity(f,Voe))},t};Ta.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ta.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Jd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,l=r.selectedSizeFn(o);a.attr("d",Hoe(Ta.symbolNumber(s),l,tB(o,t),eB(o,t))),o.mrc2=l}),i.length&&e.each(function(a){for(var o=dd.select(this),s=0;s0?r:0}Ta.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Ta.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=dd.select(this),u=a?Du.extractOption(s,t,"txt","texttemplate"):Du.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};cst(h,t,s.i),u=Du.texttemplateString({data:[h,s,t._meta],fallback:t.texttemplatefallback,labels:f,locale:o._d3locale,template:u})}var d=s.tp||t.textposition,v=Zoe(s,t),m=n?n(s):s.tc||t.textfont.color;l.call(Ta.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:v,color:m}).text(u).call(yL.convertToTspans,r).call(Xoe,d,v,s.mrc)})}};Ta.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ta.makeSelectedTextStyleFns(t);e.each(function(n){var i=dd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Zoe(n,t);Jd.fill(i,a);var l=mL.traceIs(t,"bar-like");Xoe(i,o,s,n.mrc2||n.mrc,l)})}};var Foe=.5;Ta.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=l||T>=c&&T<=l)&&(L<=f&&L>=u||L>=f&&L<=u)&&(e=[T,L])}return e}Ta.applyBackoff=Joe;Ta.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr(ast.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Du.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Ta.tester=e,Ta.testref=t};Ta.savedBBoxes={};var YO=0,yst=1e4;Ta.bBox=function(e,t,r){r||(r=zoe(e));var n;if(r){if(n=Ta.savedBBoxes[r],n)return Du.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=zoe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var l=Ta.bBox(i,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,n=Ta.savedBBoxes[r],n)return Du.extendFlat({},n)}}var u,c;t?u=e:(c=Ta.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),dd.select(u).attr("transform",null).call(yL.positionText,0,0);var f=u.getBoundingClientRect(),h=Ta.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return YO>=yst&&(Ta.savedBBoxes={},YO=0),r&&(Ta.savedBBoxes[r]=d),YO++,Du.extendFlat({},d)};function zoe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Ta.setClipUrl=function(e,t,r){e.attr("clip-path",QO(t,r))};function QO(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Ta.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Ta.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=cM(t,r),o=o.trim(),e[a]("transform",o),o};Ta.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Ta.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var _st=/\s*sc.*/;Ta.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(_st,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var xst=/translate\([^)]*\)\s*$/;Ta.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=dd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(xst);t===1&&r===1?n=[]:n=[cM(o,s),"scale("+t+","+r+")",cM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function eB(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Ta.getMarkerStandoff=eB;var uM=Math.atan2,Ib=Math.cos,G3=Math.sin;function qoe(e,t){var r=t[0],n=t[1];return[r*Ib(e)-n*G3(e),r*G3(e)+n*Ib(e)]}var Ooe,Boe,Noe,Uoe,KO,JO;function tB(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||Du.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)n=s.c2p(e.x),i=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),d=uM(h[1]-i,h[0]-n),v=uM(f[1]-i,f[0]-n),m;if(a==="north")m=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,k=Ooe/180*Math.PI,M=Boe/180*Math.PI,T=k-b,L=Ib(M)*G3(T),x=G3(M)*Ib(p)-Ib(M)*G3(p)*Ib(T);m=-uM(L,x)-Math.PI,Ooe=u,Boe=c}var C=qoe(d,[Ib(m),0]),S=qoe(v,[G3(m),0]);r=uM(C[1]+S[1],C[0]+S[0])/Math.PI*180,a==="previous"&&!(JO===t.uid&&e.i===KO+1)&&(r=null)}if(a==="previous"&&!t._geo)if(JO===t.uid&&e.i===KO+1&&Fb(n)&&Fb(i)){var g=n-Noe,P=i-Uoe,E=t.line&&t.line.shape||"",z=E.slice(E.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=uM(P,g)/Math.PI*180+90}else r=null}return Noe=n,Uoe=i,KO=e.i,JO=t.uid,r}Ta.getMarkerAngle=tB});var qb=ye((Mar,rse)=>{"use strict";var H3=Fa(),bst=Eo(),wst=Mc(),rB=Oa(),zb=Pr(),Qoe=zb.strTranslate,_L=So(),xL=ka(),j3=Zl(),ese=Z1(),Tst=Dh().OPPOSITE_SIDE,tse=/ [XY][0-9]* /,iB=1.6,nB=1.6;function Ast(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,d=i.title,v=(d&&d.text?d.text:"").trim(),m=!1,b=d&&d.font?d.font:{},p=b.family,k=b.size,M=b.color,T=b.weight,L=b.style,x=b.variant,C=b.textcase,S=b.lineposition,g=b.shadow,P=r.subtitlePropName,E=!!P,z=r.subtitlePlaceholder,q=(i.title||{}).subtitle||{text:"",font:{}},V=(q.text||"").trim(),G=!1,Z=1,j=q.font,N=j.family,H=j.size,re=j.color,ae=j.weight,_e=j.style,Ee=j.variant,Ce=j.textcase,ge=j.lineposition,ie=j.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var ke=e._context.edits[Se];function be(Vt,rr){return Vt===void 0||rr===void 0?!1:Vt.replace(tse," % ")===rr.replace(tse," % ")}v===""?h=0:be(v,o)&&(ke||(v=""),h=.2,m=!0),E&&(V===""?Z=0:be(V,z)&&(ke||(V=""),Z=.2,G=!0)),r._meta?v=zb.templateString(v,r._meta):n._meta&&(v=zb.templateString(v,n._meta));var Be=v||V||ke,Le;f||(f=zb.ensureSingle(n._infolayer,"g","g-"+t),Le=n._hColorbarMoveTitle);var me=f.selectAll("text."+t).data(Be?[0]:[]);me.enter().append("text"),me.text(v).attr("class",t),me.exit().remove();var Pe=null,ce=t+"-subtitle",He=V||ke;if(E&&(Pe=f.selectAll("text."+ce).data(He?[0]:[]),Pe.enter().append("text"),Pe.text(V).attr("class",ce),Pe.exit().remove()),!Be)return f;function lt(Vt,rr){zb.syncOrAsync([mt,Ht],{title:Vt,subtitle:rr})}function mt(Vt){var rr=Vt.title,tt=Vt.subtitle,je;!c&&Le&&(c={}),c?(je="",c.rotate&&(je+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Le)&&(je+=Qoe(0,(c.offset||0)-(Le||0)))):je=null,rr.attr("transform",je);function Ue(Et){if(Et){var pt=H3.select(Et.node().parentNode).select("."+ce);if(!pt.empty()){var jt=Et.node().getBBox();if(jt.height){var or=jt.y+jt.height+iB*H;pt.attr("y",or)}}}}if(rr.style("opacity",h*xL.opacity(M)).call(_L.font,{color:xL.rgb(M),size:H3.round(k,2),family:p,weight:T,style:L,variant:x,textcase:C,shadow:g,lineposition:S}).attr(u).call(j3.convertToTspans,e,Ue),tt&&!tt.empty()){var Ae=f.select("."+t+"-math-group"),rt=rr.node().getBBox(),St=Ae.node()?Ae.node().getBBox():void 0,Tt=St?St.y+St.height+iB*H:rt.y+rt.height+nB*H,dt=zb.extendFlat({},u,{y:Tt});tt.attr("transform",je),tt.style("opacity",Z*xL.opacity(re)).call(_L.font,{color:xL.rgb(re),size:H3.round(H,2),family:N,weight:ae,style:_e,variant:Ee,textcase:Ce,shadow:ie,lineposition:ge}).attr(dt).call(j3.convertToTspans,e)}return wst.previousPromises(e)}function Ht(Vt){var rr=Vt.title,tt=H3.select(rr.node().parentNode);if(l&&l.selection&&l.side&&v){tt.attr("transform",null);var je=Tst[l.side],Ue=l.side==="left"||l.side==="top"?-1:1,Ae=bst(l.pad)?l.pad:2,rt=_L.bBox(tt.node()),St={t:0,b:0,l:0,r:0},Tt=e._fullLayout._reservedMargin;for(var dt in Tt)for(var Et in Tt[dt]){var pt=Tt[dt][Et];St[Et]=Math.max(St[Et],pt)}var jt={left:St.l,top:St.t,right:n.width-St.r,bottom:n.height-St.b},or=l.maxShift||Ue*(jt[l.side]-rt[l.side]),mr=0;if(or<0)mr=or;else{var Ar=l.offsetLeft||0,ei=l.offsetTop||0;rt.left-=Ar,rt.right-=Ar,rt.top-=ei,rt.bottom-=ei,l.selection.each(function(){var jr=_L.bBox(this);zb.bBoxIntersect(rt,jr,Ae)&&(mr=Math.max(mr,Ue*(jr[l.side]-rt[je])+Ae))}),mr=Math.min(or,mr),i._titleScoot=Math.abs(mr)}if(mr>0||or<0){var qr={left:[-mr,0],right:[mr,0],top:[0,-mr],bottom:[0,mr]}[l.side];tt.attr("transform",Qoe(qr[0],qr[1]))}}}me.call(lt,Pe);function at(Vt,rr){Vt.text(rr).on("mouseover.opacity",function(){H3.select(this).transition().duration(ese.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){H3.select(this).transition().duration(ese.HIDE_PLACEHOLDER).style("opacity",0)})}if(ke&&(v?me.on(".opacity",null):(at(me,o),m=!0),me.call(j3.makeEditable,{gd:e}).on("edit",function(Vt){s!==void 0?rB.call("_guiRestyle",e,a,Vt,s):rB.call("_guiRelayout",e,a,Vt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Vt){this.text(Vt||" ").call(j3.positionText,u.x,u.y)}),E)){if(E&&!v){var ct=me.node().getBBox(),ar=ct.y+ct.height+nB*H;Pe.attr("y",ar)}V?Pe.on(".opacity",null):(at(Pe,z),G=!0),Pe.call(j3.makeEditable,{gd:e}).on("edit",function(Vt){rB.call("_guiRelayout",e,"title.subtitle.text",Vt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Vt){this.text(Vt||" ").call(j3.positionText,Pe.attr("x"),Pe.attr("y"))})}return me.classed("js-placeholder",m),Pe&&!Pe.empty()&&Pe.classed("js-placeholder",G),f}rse.exports={draw:Ast,SUBTITLE_PADDING_EM:nB,SUBTITLE_PADDING_MATHJAX_EM:iB}});var xm=ye((Ear,sse)=>{"use strict";var Sst=Fa(),Mst=p3().utcFormat,yc=Pr(),Est=yc.numberFormat,ym=Eo(),h_=yc.cleanNumber,kst=yc.ms2DateTime,ise=yc.dateTime2ms,_m=yc.ensureNumber,nse=yc.isArrayOrTypedArray,d_=fs(),bL=d_.FP_SAFE,Sg=d_.BADNUM,Cst=d_.LOG_CLIP,Lst=d_.ONEWEEK,wL=d_.ONEDAY,TL=d_.ONEHOUR,ase=d_.ONEMIN,ose=d_.ONESEC,AL=df(),EL=Rh(),SL=EL.HOUR_PATTERN,ML=EL.WEEKDAY_PATTERN;function fM(e){return Math.pow(10,e)}function aB(e){return e!=null}sse.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(T,L){if(T>0)return Math.log(T)/Math.LN10;if(T<=0&&L&&t.range&&t.range.length===2){var x=t.range[0],C=t.range[1];return .5*(x+C-2*Cst*Math.abs(x-C))}else return Sg}function o(T,L,x,C){if((C||{}).msUTC&&ym(T))return+T;var S=ise(T,x||t.calendar);if(S===Sg)if(ym(T)){T=+T;var g=Math.floor(yc.mod(T+.05,1)*10),P=Math.round(T-g/10);S=ise(new Date(P))+g/10}else return Sg;return S}function s(T,L,x){return kst(T,L,x||t.calendar)}function l(T){return t._categories[Math.round(T)]}function u(T){if(aB(T)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[T]!==void 0)return t._categoriesMap[T];t._categories.push(typeof T=="number"?String(T):T);var L=t._categories.length-1;return t._categoriesMap[T]=L,L}return Sg}function c(T,L){for(var x=new Array(L),C=0;Ct.range[1]&&(x=!x);for(var C=x?-1:1,S=C*T,g=0,P=0;Pz)g=P+1;else{g=S<(E+z)/2?P:P+1;break}}var q=t._B[g]||0;return isFinite(q)?v(T,t._m2,q):0},p=function(T){var L=t._rangebreaks.length;if(!L)return m(T,t._m,t._b);for(var x=0,C=0;Ct._rangebreaks[C].pmax&&(x=C+1);return m(T,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:_m,t.l2c=t.type==="log"?fM:_m,t.l2p=b,t.p2l=p,t.c2p=t.type==="log"?function(T,L){return b(a(T,L))}:b,t.p2c=t.type==="log"?function(T){return fM(p(T))}:p,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=h_,t.c2d=t.c2r=t.l2d=t.l2r=_m,t.d2p=t.r2p=function(T){return t.l2p(h_(T))},t.p2d=t.p2r=p,t.cleanPos=_m):t.type==="log"?(t.d2r=t.d2l=function(T,L){return a(h_(T),L)},t.r2d=t.r2c=function(T){return fM(h_(T))},t.d2c=t.r2l=h_,t.c2d=t.l2r=_m,t.c2r=a,t.l2d=fM,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return fM(p(T))},t.r2p=function(T){return t.l2p(h_(T))},t.p2r=p,t.cleanPos=_m):t.type==="date"?(t.d2r=t.r2d=yc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(T,L,x){return t.l2p(o(T,0,x))},t.p2d=t.p2r=function(T,L,x){return s(p(T),L,x)},t.cleanPos=function(T){return yc.cleanDate(T,Sg,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=d(T);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=_m,t.r2l=d,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return l(p(T))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(T){return typeof T=="string"&&T!==""?T:_m(T)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=h(T);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=_m,t.r2l=h,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return l(p(T))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(T){return Array.isArray(T)||typeof T=="string"&&T!==""?T:_m(T)},t.setupMultiCategory=function(T){var L=t._traceIndices,x,C,S=t._matchGroup;if(S&&t._categories.length===0){for(var g in S)if(g!==n){var P=r[AL.id2name(g)];L=L.concat(P._traceIndices)}}var E=[[0,{}],[0,{}]],z=[];for(x=0;xP[1]&&(C[g?0:1]=x,S[1]=P[1]),S[0]>=S[1])if(L!==void 0){var E=P[0]+1;x!==void 0&&(E=Math.min(E,P[1])),C[g?0:1]=t.l2r(E)}else x!==void 0&&(C[g?1:0]=t.l2r(P[1]-1))}},t.cleanRange=function(T,L){t._cleanRange(T,L),t.limitRange(T)},t._cleanRange=function(T,L){L||(L={}),T||(T="range");var x=yc.nestedProperty(t,T).get(),C,S;if(t.type==="date"?S=yc.dfltRange(t.calendar):i==="y"?S=EL.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=L.dfltRange||EL.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!x||x.length!==2){yc.nestedProperty(t,T).set(S);return}var g=x[0]===null,P=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=yc.cleanDate(x[0],Sg,t.calendar),x[1]=yc.cleanDate(x[1],Sg,t.calendar)),C=0;C<2;C++)if(t.type==="date"){if(!yc.isDateTime(x[C],t.calendar)){t[T]=S;break}if(t.r2l(x[0])===t.r2l(x[1])){var E=yc.constrain(t.r2l(x[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);x[0]=t.l2r(E-1e3),x[1]=t.l2r(E+1e3);break}}else{if(!ym(x[C]))if(!(g||P)&&ym(x[1-C]))x[C]=x[1-C]*(C?10:.1);else{t[T]=S;break}if(x[C]<-bL?x[C]=-bL:x[C]>bL&&(x[C]=bL),x[0]===x[1]){var z=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=z,x[1]+=z}}},t.setScale=function(T){var L=r._size;if(t.overlaying){var x=AL.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var C=T&&t._r?"_r":"range",S=t.calendar;t.cleanRange(C);var g=t.r2l(t[C][0],S),P=t.r2l(t[C][1],S),E=i==="y";if(E?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var z,q;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;zP&&(V=!V),V&&t._rangebreaks.reverse();var G=V?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(E?P:g)),z=0;zS&&(S+=7,gS&&(S+=24,g=C&&g=C&&T=ie.min&&(_eie.max&&(ie.max=Ee),Ce=!1)}Ce&&P.push({min:_e,max:Ee})}};for(x=0;x{"use strict";var lse=Eo(),oB=Pr(),Pst=fs().BADNUM,kL=oB.isArrayOrTypedArray,Ist=oB.isDateTime,Rst=oB.cleanNumber,use=Math.round;fse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(kL(i)&&!i.length)return"-";if(!a&&Ost(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function cse(e){return Math.max(1,(e-1)/1e3)}function qst(e,t){for(var r=e.length,n=cse(r),i=0,a=0,o={},s=0;si*2}function Ost(e){return kL(e[0])&&kL(e[1])}});var Mg=ye((Car,_se)=>{"use strict";var Bst=Fa(),pse=Eo(),v_=Pr(),CL=fs().FP_SAFE,Nst=Oa(),Ust=So(),gse=df(),Vst=gse.getFromId,Gst=gse.isLinked;_se.exports={applyAutorangeOptions:yse,getAutoRange:sB,makePadFn:lB,doAutoRange:jst,findExtremes:Wst,concatExtremes:fB};function sB(e,t){var r,n,i=[],a=e._fullLayout,o=lB(a,t,0),s=lB(a,t,1),l=fB(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return v_.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(P=M-o(x)-s(C),P>T?E/P>L&&(S=x,g=C,L=E/P):E/M>L&&(S={val:x.val,nopad:1},g={val:C.val,nopad:1},L=E/M));function z(j,N){return Math.max(j,s(N))}if(f===h){var q=f-1,V=f+1;if(p)if(f===0)i=[0,1];else{var G=(f>0?c:u).reduce(z,0),Z=f/(1-Math.min(.5,G/M));i=f>0?[0,Z]:[Z,0]}else k?i=[Math.max(0,q),Math.max(1,V)]:i=[q,V]}else p?(S.val>=0&&(S={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):k&&(S.val-L*o(S)<0&&(S={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-S.val-hse(t,x.val,C.val))/(M-o(S)-s(g)),i=[S.val-L*o(S),g.val+L*s(g)];return i=yse(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),v_.simpleMap(i,t.l2r||Number)}function hse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=T((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),C=T(r.vpadplus||r.vpad),S=T(r.vpadminus||r.vpad);if(!u){if(k=1/0,M=-1/0,l)for(f=0;f0&&(k=h),h>M&&h-CL&&(k=h),h>M&&h=E;f--)P(f);return{min:n,max:i,opts:r}}function uB(e,t,r,n){mse(e,t,r,n,Xst)}function cB(e,t,r,n){mse(e,t,r,n,Zst)}function mse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else i(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function vse(e){return pse(e)&&Math.abs(e)=t}function Yst(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&LL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&LL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Kst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&LL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&LL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function LL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,n=l)}}return r=Yst(r,t),n=Kst(n,t),[r,n]}});var ho=ye((Par,Vse)=>{"use strict";var w0=Fa(),zh=Eo(),X3=Mc(),dM=Oa(),Wo=Pr(),Z3=Wo.strTranslate,Ob=Zl(),Jst=qb(),vM=ka(),Xp=So(),$st=Rd(),xse=FO(),Lar=Rh(),$d=fs(),Qst=$d.ONEMAXYEAR,RL=$d.ONEAVGYEAR,DL=$d.ONEMINYEAR,elt=$d.ONEMAXQUARTER,pB=$d.ONEAVGQUARTER,FL=$d.ONEMINQUARTER,tlt=$d.ONEMAXMONTH,Y3=$d.ONEAVGMONTH,zL=$d.ONEMINMONTH,Zp=$d.ONEWEEK,qv=$d.ONEDAY,p_=qv/2,wm=$d.ONEHOUR,pM=$d.ONEMIN,qL=$d.ONESEC,rlt=$d.ONEMILLI,ilt=$d.ONEMICROSEC,Bb=$d.MINUS_SIGN,BL=$d.BADNUM,gB={K:"zeroline"},mB={K:"gridline",L:"path"},yB={K:"minor-gridline",L:"path"},Pse={K:"tick",L:"path"},bse={K:"tick",L:"text"},wse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},NL=Dh(),hM=NL.MID_SHIFT,Nb=NL.CAP_SHIFT,gM=NL.LINE_SPACING,nlt=NL.OPPOSITE_SIDE,OL=3,$n=Vse.exports={};$n.setConvert=xm();var alt=W3(),Tm=df(),olt=Tm.idSort,slt=Tm.isLinked;$n.id2name=Tm.id2name;$n.name2id=Tm.name2id;$n.cleanId=Tm.cleanId;$n.list=Tm.list;$n.listIds=Tm.listIds;$n.getFromId=Tm.getFromId;$n.getFromTrace=Tm.getFromTrace;var Ise=Mg();$n.getAutoRange=Ise.getAutoRange;$n.findExtremes=Ise.findExtremes;var llt=1e-4;function wB(e){var t=(e[1]-e[0])*llt;return[e[0]-t,e[1]+t]}$n.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],l=n+"ref",u={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Wo.coerce(e,t,u,l)};$n.coerceRefArray=function(e,t,r,n,i,a,o){let s=n.charAt(n.length-1);var l=r._fullLayout._subplots[s+"axis"];let u=n+"ref";var c=e[u];i||(i=l[0]||(typeof a=="string"?a:a[0])),l=l.concat(l.map(h=>h+" domain")),l=l.concat(a||[]),c.length>o?(Wo.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),c=c.slice(0,o)):c.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};$n.saveRangeInitial=function(e,t){for(var r=$n.list(e,"",!0),n=!1,i=0;if*.3||u(n)||u(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.slice(1));a.exactYears>o&&s%12===0?e=$n.tickIncrement(e,"M6","reverse")+qv*1.5:a.exactMonths>o?e=$n.tickIncrement(e,"M1","reverse")+qv*15.5:e-=p_;var l=$n.tickIncrement(e,r);if(l<=n)return l}return e}$n.prepMinorTicks=function(e,t,r){var f,h;if(!((f=t.minor)!=null&&f.dtick)){delete e.dtick;var n=t.dtick&&zh(t._tmin),i;if(n){var a=$n.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Wo.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Wo.simpleMap(i,t.l2r),e._isMinor=!0,$n.prepTicks(e,r),n){var s=zh(t.dtick),l=zh(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?hB(u,c)?u===2*Zp&&c===2*qv&&(e.dtick=Zp):u===2*Zp&&c===3*qv?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=qv:Sse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":hB(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?hB(u,c)||(e.dtick=Sse(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((h=t.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=t.tick0)};function hB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function Sse(e,t){return Math.abs(e/t-1)<.001}$n.prepTicks=function(e,t){var r=Wo.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Wo.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Wo.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,$n.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=DL?u>=DL&&u<=Qst?f=u:f=RL:r===pB&&c>=FL?u>=FL&&u<=elt?f=u:f=pB:c>=zL?u>=zL&&u<=tlt?f=u:f=Y3:r===Zp&&c>=Zp?f=Zp:c>=qv?f=qv:r===p_&&c>=p_?f=p_:r===wm&&c>=wm&&(f=wm);var h;f>=u&&(f=u,h=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var v=84,m=0,b=0;bZp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}$n.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||Wo.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=Wo.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(T?0:1);L--){var x=!L;L?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):T&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var C=L?t:Wo.extendFlat({},t,T?t.minor:{minor:{}});if(x?$n.prepMinorTicks(C,t,r):$n.prepTicks(C,r),C.tickmode==="array"){L?(b=[],v=Mse(t,!x)):(p=[],m=Mse(t,!x));continue}if(C.tickmode==="sync"){b=[],v=vlt(t);continue}var S=wB(u),g=S[0],P=S[1],E=zh(C.dtick),z=n==="log"&&!(E||C.dtick.charAt(0)==="L"),q=$n.tickFirst(C,r);if(L){if(t._tmin=q,q=P:G<=P;G=$n.tickIncrement(G,N,c,i)){if(L&&Z++,C.rangebreaks&&!c){if(G=h)break}if(b.length>d||G===V)break;V=G;var H={value:G};L?(z&&G!==(G|0)&&(H.simpleLabel=!0),a>1&&Z%a&&(H.skipLabel=!0),b.push(H)):(H.minor=!0,p.push(H))}}if(!p||p.length<3)l=!1;else{var re=(p[2].value-p[1].value)*(s?-1:1);Blt(re,t.tickformat)||(l=!1,p=p.slice(1))}if(!l)k=b;else{var ae=b.concat(p);o&&b.length&&(ae=ae.slice(1)),ae=ae.sort(function(Vt,rr){return Vt.value-rr.value}).filter(function(Vt,rr,tt){return rr===0||Vt.value!==tt[rr-1].value});var _e=ae.map(function(Vt,rr){return Vt.minor===void 0&&!Vt.skipLabel?rr:null}).filter(function(Vt){return Vt!==null});_e.forEach(function(Vt){l.map(function(rr){var tt=Vt+rr;tt>=0&&tt-1;Le--){if(b[Le].drop){b.splice(Le,1);continue}b[Le].value=vB(b[Le].value,t);var He=t.c2p(b[Le].value);(me?ce>He-Pe:ceh||jeh&&(tt.periodX=h),jei&&hRL)t/=RL,n=i(10),e.dtick="M"+12*bm(t,n,PL);else if(a>Y3)t/=Y3,e.dtick="M"+bm(t,1,Ese);else if(a>qv){if(e.dtick=bm(t,qv,e._hasDayOfWeekBreaks?[1,2,7,14]:plt),!r){var o=$n.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Wo.dateTick0(e.calendar,2):e.tick0=Wo.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>wm?e.dtick=bm(t,wm,Ese):a>pM?e.dtick=bm(t,pM,kse):a>qL?e.dtick=bm(t,qL,kse):(n=i(10),e.dtick=bm(t,n,PL))}else if(e.type==="log"){e.tick0=0;var l=Wo.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,n=i(10),e.dtick="L"+bm(t,n,PL)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):MB(e)?(e.tick0=0,n=1,e.dtick=bm(t,n,glt)):(e.tick0=0,n=i(10),e.dtick=bm(t,n,PL));if(e.dtick===0&&(e.dtick=1),!zh(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function zse(e){var t=e.dtick;if(e._tickexponent=0,!zh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=qv&&i<=10||t>=qv*15)e._tickround="d";else if(t>=pM&&i<=16||t>=wm)e._tickround="M";else if(t>=qL&&i<=19||t>=pM)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(zh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);zh(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(K3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!TB(l)||K3(e.exponentformat)&&e.exponentformat==="SI extended"&&!AB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}$n.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(zh(t))return Wo.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.slice(1));if(a==="M")return Wo.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Fse:Dse,l=e+i*.01,u=Wo.roundUp(Wo.mod(l,1),s,r);return Math.floor(l)+Math.log(w0.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};$n.tickFirst=function(e,t){var r=e.r2l||Number,n=Wo.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&p<=e._length?b:null};if(a&&Wo.isArrayOrTypedArray(e.ticktext)){var f=Wo.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(u=0;u"+s;else{var u=yM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function ylt(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=mM(Math.pow(10,o),e,i,n);else if(zh(a)||l==="D"&&(e.minorloglabels==="complete"||Wo.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Wo.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),f=c.split("e"),h=+f[1],d=Math.abs(h),v=e.exponentformat;v==="power"||K3(v)&&v!=="SI extended"&&TB(h)||K3(v)&&v==="SI extended"&&AB(h)?(t.text=f[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":Bb)+d+""),t.fontSize*=1.25):(v==="e"||v==="E")&&d>2?t.text=f[0]+v+(h>0?"+":Bb)+d:(t.text=mM(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Wo.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var m=String(t.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function _lt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function xlt(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function blt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=mM(t.x,e,i,n)}function wlt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=Tlt(a);if(o[1]>=100)t.text=mM(Wo.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=Bb+t.text)}}}else t.text=mM(t.x,e,i,n)}function Tlt(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function n(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var Ose=["f","p","n","\u03BC","m","","k","M","G","T"],Alt=["q","r","y","z","a",...Ose,"P","E","Z","Y","R","Q"],K3=e=>["SI","SI extended","B"].includes(e);function TB(e){return e>14||e<-15}function AB(e){return e>32||e<-30}function Slt(e,t){return K3(t)?!!(t==="SI extended"&&AB(e)||t!=="SI extended"&&TB(e)):!1}function mM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=$n.getTickFormat(t),u=t.separatethousands;if(n){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:zh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};zse(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,Bb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":K3(o)&&(e+=o==="SI extended"?Alt[s/3+10]:Ose[s/3+5])}return i?Bb+e:e}$n.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*Y3}function n(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function i(l,u,c){var f=c||function(v){return v},h=u[0],d=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!d&&typeof d!="number"||f(d)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=n(l,u[0])>=0,d=n(l,u[1])<=0;return(c||h)&&(f||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(c,1).shift())}});var s={false:{left:0,right:0}};return Wo.syncOrAsync(i.map(function(l){return function(){if(l){var u=$n.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=$n.drawOne(e,u,r);return u._shiftPusher&&bB(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Wo.simpleMap(u._r,u.r2l),c}}}))};$n.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=$n.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var v=t.linewidth/2||0;t.ticks==="inside"&&(v+=t.ticklen),bB(t,v,n,!0),bB(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Olt(t,n));var m=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,k=t._mainMirrorPosition,M=t._vals=$n.calcTicks(t),T=[t.mirror,p,k].join("_");for(a=0;a0?tt.bottom-Vt:0,rr))));var rt=0,St=0;if(t._shiftPusher&&(rt=Math.max(rr,tt.height>0?ct==="l"?Vt-tt.left:tt.right-Vt:0),t.title.text!==l._dfltTitle[c]&&(St=(t._titleStandoff||0)+(t._titleScoot||0),ct==="l"&&(St+=Lse(t))),t._fullDepth=Math.max(rt,St)),t.automargin){je={x:0,y:0,r:0,l:0,t:0,b:0};var Tt=[0,1],dt=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(ct==="b"?je[ct]=t._depth:(je[ct]=t._depth=Math.max(tt.width>0?Vt-tt.top:0,rr),Tt.reverse()),tt.width>0){var Et=tt.right-(t._offset+t._length);Et>0&&(je.xr=1,je.r=Et);var pt=t._offset-tt.left;pt>0&&(je.xl=0,je.l=pt)}}else if(ct==="l"?(t._depth=Math.max(tt.height>0?Vt-tt.left:0,rr),je[ct]=t._depth-dt):(t._depth=Math.max(tt.height>0?tt.right-Vt:0,rr),je[ct]=t._depth+dt,Tt.reverse()),tt.height>0){var jt=tt.bottom-(t._offset+t._length);jt>0&&(je.yb=0,je.b=jt);var or=t._offset-tt.top;or>0&&(je.yt=1,je.t=or)}je[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Tt[0]],t.title.text!==l._dfltTitle[c]&&(je[ct]+=Lse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Ue={x:0,y:0,r:0,l:0,t:0,b:0},Ue[ar]=t.linewidth,t.mirror&&t.mirror!==!0&&(Ue[ar]+=rr),t.mirror===!0||t.mirror==="ticks"?Ue[f]=t._anchorAxis.domain[Tt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Ue[f]=[t._counterDomainMin,t._counterDomainMax][Tt[1]]))}at&&(Ae=dM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Cse(je,t.automargin),Cse(Ue,t.automargin)),X3.autoMargin(e,SB(t),je),X3.autoMargin(e,Nse(t),Ue),X3.autoMargin(e,Use(t),Ae)}),Wo.syncOrAsync(mt)}};function Cse(e,t){if(e){var r=Object.keys(wse).reduce(function(n,i){return t.indexOf(i)!==-1&&wse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function Mlt(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Wo.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(n){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;n=n*f}return e._id.charAt(0)==="x"?function(h){return Z3(i+e._offset+e.l2p(_B(h))+r,a+n)}:function(h){return Z3(a+n,i+e._offset+e.l2p(_B(h))+r)}};function _B(e){return e.periodX!==void 0?e.periodX:e.x}function Llt(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(v){return t.indexOf(v)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),l=n("inside"),u=r!=="boundaries"&&(s||a||i||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=OL,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(f+=d*Nb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=OL),l&&c==="top"&&(h-=d*(1-Nb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}$n.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};$n.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(q){return n.indexOf(q)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=i!=="boundaries"&&(u||s||o||l),f=a("inside"),h=n==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&i!=="boundaries",d=0,v=0,m=h?e.ticklen:0;if(f?m*=-1:c&&(m=0),h&&(d+=m,r)){var b=Wo.deg2rad(r);d=m*Math.cos(b)+1,v=m*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(f?-1:1);var p={labelStandoff:d,labelShift:v},k,M,T,L,x=0,C=e.side,S=e._id.charAt(0),g=e.tickangle,P;if(S==="x")P=!f&&C==="bottom"||f&&C==="top",L=P?1:-1,f&&(L*=-1),k=v*L,M=t+d*L,T=P?1:-.2,Math.abs(g)===90&&(f?T+=hM:g===-90&&C==="bottom"?T=Nb:g===90&&C==="top"?T=hM:T=.5,x=hM/2*(g/90)),p.xFn=function(q){return q.dx+k+x*q.fontSize},p.yFn=function(q){return q.dy+M+q.fontSize*T},p.anchorFn=function(q,V){if(c){if(s)return"end";if(l)return"start"}return!zh(V)||V===0||V===180?"middle":V*L<0!==f?"end":"start"},p.heightFn=function(q,V,G){return V<-60||V>60?-.5*G:e.side==="top"!==f?-G:0};else if(S==="y"){if(P=!f&&C==="left"||f&&C==="right",L=P?1:-1,f&&(L*=-1),k=d,M=v*L,T=0,!f&&Math.abs(g)===90&&(g===-90&&C==="left"||g===90&&C==="right"?T=Nb:T=.5),f){var E=zh(g)?+g:0;if(E!==0){var z=Wo.deg2rad(E);x=Math.abs(Math.sin(z))*Nb*L,T=0}}p.xFn=function(q){return q.dx+t-(k+q.fontSize*T)*L+x*q.fontSize},p.yFn=function(q){return q.dy+M+q.fontSize*hM},p.anchorFn=function(q,V){return zh(V)&&Math.abs(V)===90?"middle":P?"end":"start"},p.heightFn=function(q,V,G){return e.side==="right"&&(V*=-1),V<-30?-G:V<30?-.5*G:0}}return p};function UL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}$n.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,UL);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return vM.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xp.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),VL(t,[Pse]),a.attr("transform",r.transFn)};$n.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(p){return p.minor}):[],o=t.showgrid?r.vals.filter(function(p){return!p.minor}):[],s=r.counterAxis;if(s&&$n.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var m=v?h:d;if(m){var b=m.selectAll("path."+n).data(v?o:a,UL);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(p){return vM.stroke(w0.select(this),p.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(p){return Xp.dashStyle(p.minor?t.minor.griddash:t.griddash,p.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(p){return(p.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}VL(t,[mB,yB])}};$n.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=$n.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return olt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(vM.stroke,t.zerolinecolor||vM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),VL(t,[gB])};$n.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(H){return H.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],UL),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var re=w0.select(this),ae=e._promises.length;re.call(Ob.positionText,l.xFn(H),l.yFn(H)).call(Xp.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(Ob.convertToTspans,e),e._promises[ae]?h.push(e._promises.pop().then(function(){d(re,u)})):d(re,u)}),VL(t,[bse]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(H){w0.select(this).select("text").call(Ob.positionText,l.xFn(H),l.yFn(H))});function d(H,re){H.each(function(ae){var _e=w0.select(this),Ee=_e.select(".text-math-group"),Ce=l.anchorFn(ae,re),ge=r.transFn.call(_e.node(),ae)+(zh(re)&&+re!=0?" rotate("+re+","+l.xFn(ae)+","+(l.yFn(ae)-ae.fontSize/2)+")":""),ie=Ob.lineCount(_e),Se=gM*ae.fontSize,ke=l.heightFn(ae,zh(re)?+re:0,(ie-1)*Se);if(ke&&(ge+=Z3(0,ke)),Ee.empty()){var be=_e.select("text");be.attr({transform:ge,"text-anchor":Ce}),be.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Be=Xp.bBox(Ee.node()).width,Le=Be*{end:-.5,start:.5}[Ce];Ee.attr("transform",ge+Z3(Le,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var re=H.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",_e=0,Ee=ae?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var Ce=Wo.simpleMap(t.range,t.r2l);_e=t.l2p(Ce[0])+t._offset,Ee=t.l2p(Ce[1])+t._offset}var ge=Math.min(_e,Ee),ie=Math.max(_e,Ee),Se=t.side,ke=1/0,be=-1/0;f.each(function(Pe){var ce=w0.select(this),He=ce.select(".text-math-group");if(He.empty()){var lt=Xp.bBox(ce.node()),mt=0;ae?(lt.right>ie||lt.leftie||lt.top+(t.tickangle?0:Pe.fontSize/4)t["_visibleLabelMin_"+Ce._id]?ce.style("display","none"):ie.K==="tick"&&!ge&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(f,c+1?c:u);function v(){return h.length&&Promise.all(h)}var m=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){m=t.autotickangles[0];var H=0,re=[],ae,_e=1;f.each(function(je){H=Math.max(H,je.fontSize);var Ue=t.l2p(je.x),Ae=xB(this),rt=Xp.bBox(Ae.node());_e=Math.max(_e,Ob.lineCount(Ae)),re.push({top:0,bottom:10,height:10,left:Ue-rt.width/2,right:Ue+rt.width/2+2,width:rt.width+2})});var Ee=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Ce=s.length,ge=Math.abs((s[Ce-1].x-s[0].x)*t._m)/(Ce-1),ie=Ee?ge/2:ge,Se=Ee?t.ticklen:H*1.25*_e,ke=Math.sqrt(Math.pow(ie,2)+Math.pow(Se,2)),be=ie/ke,Be=t.autotickangles.map(function(je){return je*Math.PI/180}),Le=Be.find(function(je){return Math.abs(Math.cos(je))<=be});Le===void 0&&(Le=Be.reduce(function(je,Ue){return Math.abs(Math.cos(je))Z*G&&(z=G,g[S]=P[S]=q[S])}var j=Math.abs(z-E);j-L>0?(j-=L,L*=1+L/j):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[C]=M.p2r(M.r2p(P[C])+x*L),M.autorange==="min"||M.autorange==="max reversed"?(g[0]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0):(M.autorange==="max"||M.autorange==="min reversed")&&(g[1]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[M._name+".range"]=g}var N=Wo.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function Plt(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,UL);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(vM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}$n.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function Lse(e){var t=e.title.font.size,r=(e.title.text.match(Ob.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Nb+r*gM):r?t*(r+1)*gM:t}function Ilt(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Ob.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Nb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(hM+s*gM));else{var l=yM(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=$n.getPxPosition(e,t),f,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var v;if(t.type!=="multicategory"){var m=t._selections[t._id+"tick"];if(v={selection:m,side:t.side},m&&m.node()&&m.node().parentNode){var b=Xp.getTranslate(m.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,Jst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:v,transform:f,attributes:{x:h,y:d,"text-anchor":"middle"}})}$n.shouldShowZeroLine=function(e,t,r){var n=Wo.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===BL)&&(Bse(t,0)||!Rlt(e,t,r,n)||Dlt(e,t))};$n.clipEnds=function(e,t){return t.filter(function(r){return Bse(e,r.x)})};function Bse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=ilt:/%L/.test(t)?e>=rlt:/%[SX]/.test(t)?e>=qL:/%M/.test(t)?e>=pM:/%[HI]/.test(t)?e>=wm:/%p/.test(t)?e>=p_:/%[Aadejuwx]/.test(t)?e>=qv:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=zL:/%[q]/.test(t)?e>=FL:/%[Yy]/.test(t)?e>=DL:!0}});var EB=ye((Iar,Gse)=>{"use strict";Gse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),l=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var kB=ye((Rar,Hse)=>{"use strict";var Nlt=EB();Hse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var l;!i.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=n("range",l)))}var u=r.getAutorangeDflt(s,i),c=n("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,i),c=n("autorange",u)),c&&(Nlt(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Wse=ye((Dar,jse)=>{var Ult={left:0,top:0};jse.exports=Vlt;function Vlt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Glt(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Glt(e){return e===window||e===document||e===document.body?Ult:e.getBoundingClientRect()}});var GL=ye((Far,Xse)=>{"use strict";var Hlt=cO();function jlt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}Xse.exports=Hlt&&jlt()});var Yse=ye((zar,Zse)=>{"use strict";Zse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var $se=ye((qar,Jse)=>{"use strict";var Kse=Pr(),Wlt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Jse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Kse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Kse.constrain(Math.floor(r*3),0,2),Wlt[r][t]}});var ele=ye((Oar,Qse)=>{"use strict";var Xlt=I3(),Zlt=W6(),Ylt=ZS().getGraphDiv,Klt=HS(),CB=Qse.exports={};CB.wrapped=function(e,t,r){e=Ylt(e),e._fullLayout&&Zlt.clear(e._fullLayout._uid+Klt.HOVERID),CB.raw(e,t,r)};CB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Xlt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var yv=ye((Bar,nle)=>{"use strict";var Jlt=Wse(),LB=hO(),$lt=GL(),Qlt=Pr().removeElement,eut=Rh(),Ub=nle.exports={};Ub.align=Yse();Ub.getCursor=$se();var rle=ele();Ub.unhover=rle.wrapped;Ub.unhoverRaw=rle.raw;Ub.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,$lt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(M,T,L){return Math.abs(M)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var T;f.target===h?T=f:(T={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(L=>{var x=f[L];!T[L]&&typeof x!="function"&&(T[L]=x)})),t.clickFn&&t.clickFn(n,T),d||h.dispatchEvent(new MouseEvent("click",M))}r._dragging=!1,r._dragged=!1}};function ile(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Ub.coverSlip=ile;function tle(e){return Jlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Eg=ye((Nar,ale)=>{"use strict";ale.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var lle=ye((Uar,sle)=>{"use strict";var PB=Eg(),_M="data-savedcursor",ole="!!";sle.exports=function(t,r){var n=t.attr(_M);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var IB=ec(),tut=Ih();ule.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:tut.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:IB({editType:"legend"}),grouptitlefont:IB({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:IB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var bM=ye(xM=>{"use strict";xM.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};xM.isVertical=function(t){return t.orientation!=="h"};xM.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};xM.getId=function(t){return t._id||"legend"}});var FB=ye((Har,cle)=>{"use strict";var HL=Oa(),Yp=Pr(),rut=vl(),iut=Vl(),nut=RB(),aut=T3(),DB=bM();function out(e,t,r,n,i){var a=t[e]||{},o=rut.newContainer(r,e);function s(H,re){return Yp.coerce(a,o,nut,H,re)}var l=Yp.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var u=s("visible");if(!u)return;var c,f=function(H,re){var ae=c._input,_e=c;return Yp.coerce(ae,_e,iut,H,re)},h=r.font||{},d=Yp.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),v=0,m=!1,b="normal",p=(r.shapes||[]).filter(function(H){return H.showlegend});function k(H){return HL.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}n.filter(k).forEach(function(H){H.visible&&v++;for(var re=0;reH.legend.length)for(var _e=H.legend.length;_e(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),!(x===!1&&!a.uirevision)&&(s("uirevision",r.uirevision),x!==!1)){s("borderwidth");var C=s("orientation"),S=s("yref"),g=s("xref"),P=C==="h",E=S==="paper",z=g==="paper",q,V,G,Z="left";P?(q=0,HL.getComponentMethod("rangeslider","isVisible")(t.xaxis)?E?(V=1.1,G="bottom"):(V=1,G="top"):E?(V=-.1,G="top"):(V=0,G="bottom")):(V=1,G="auto",z?q=1.02:(q=1,Z="right")),Yp.coerce(a,o,{x:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:q}},"x"),Yp.coerce(a,o,{y:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:V}},"y"),s("traceorder",b),DB.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemclick"),s("itemdoubleclick"),s("groupclick"),s("xanchor",Z),s("yanchor",G),s("maxheight"),s("valign"),Yp.noneOrAll(a,o,["x","y"]);var j=s("title.text");if(j){s("title.side",P?"left":"top");var N=Yp.extendFlat({},l,{size:Yp.bigFont(l.size)});Yp.coerceFont(s,"title.font",N);let H=i>1;s("titleclick",H?"toggle":!1),s("titledoubleclick",H?"toggleothers":!1)}}}cle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var g_=Oa(),zB=Pr(),sut=zB.pushUnique,lut=bM(),fle=!0;qB.handleItemClick=function(t,r,n,i){var a=r._fullLayout;if(r._dragged||r._editing)return;var o=t.data()[0][0];if(o.groupTitle&&o.noClick)return;var s=n.groupclick;i==="toggle"&&n.itemdoubleclick==="toggleothers"&&fle&&r.data&&r._context.showTips&&(zB.notifier(zB._(r,"Double-click on legend to isolate one trace"),"long",r),fle=!1);var l=s==="togglegroup",u=a.hiddenlabels?a.hiddenlabels.slice():[],c=r._fullData;let f=(a.shapes||[]).filter(at=>at.showlegend||at.legendgroup);var h=c.concat(f),d=o.trace;d._isShape&&(d=d._fullInput);var v=d.legendgroup,m,b,p,k,M,T,L={},x=[],C=[],S=[];function g(at,ct){var ar=x.indexOf(at),Vt=L.visible;return Vt||(Vt=L.visible=[]),x.indexOf(at)===-1&&(x.push(at),ar=x.length-1),Vt[ar]=ct,ar}var P=(a.shapes||[]).map(function(at){return at._input}),E=!1;function z(at,ct){P[at].visible=ct,E=!0}function q(at,ct){if(!(o.groupTitle&&!l)){var ar=at._fullInput||at,Vt=ar._isShape,rr=ar.index;rr===void 0&&(rr=ar._index);var tt=ar.visible===!1?!1:ct;Vt?z(rr,tt):g(rr,tt)}}var V=d.legend,G=d._fullInput,Z=G&&G._isShape;if(!Z&&g_.traceIs(d,"pie-like")){var j=o.label,N=u.indexOf(j);if(i==="toggle")N===-1?u.push(j):u.splice(N,1);else if(i==="toggleothers"){var H=N!==-1,re=[];for(m=0;mp.showlegend||p.legendgroup),l=a.concat(s);function u(p){return(p.legend||"legend")===o}var c,f;if(n==="toggle")c=!l.some(function(k){return u(k)&&k.visible===!0}),f=!1;else{let p=l.some(function(k){return!u(k)&&k.visible===!0&&k.showlegend!==!1});c=!0,f=!p}let h={visible:[]},d=[],v=(i.shapes||[]).map(function(p){return p._input});for(var m=!1,b=0;b{"use strict";hle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var ple=ye((Xar,vle)=>{"use strict";var{isArrayOrTypedArray:NB}=Yd(),dle=Oa(),UB=bM();vle.exports=function(t,r,n){var i=r._inHover,a=UB.isGrouped(r),o=UB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function m(re,ae,_e){if(r.visible!==!1&&!(n&&re!==r._id))if(ae===""||!UB.isGrouped(r)){var Ee="~~i"+f;l.push(Ee),s[Ee]=[_e],f++}else l.indexOf(ae)===-1?(l.push(ae),u=!0,s[ae]=[_e]):s[ae].push(_e)}for(d=0;dq&&(E=q)}g[d][0]._groupMinRank=E,g[d][0]._preGroupSort=d}var V=function(re,ae){return re[0]._groupMinRank-ae[0]._groupMinRank||re[0]._preGroupSort-ae[0]._preGroupSort},G=function(re,ae){var _e=NB(re.trace.legendrank)?re.trace.legendrank[re.i]:re.trace.legendrank,Ee=NB(ae.trace.legendrank)?ae.trace.legendrank[ae.i]:ae.trace.legendrank;return _e-Ee||re._preSort-ae._preSort};for(g.forEach(function(re,ae){re[0]._preGroupSort=ae}),g.sort(V),d=0;d{"use strict";var jL=Pr();function gle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Vb.formatPiePercent=function(t,r){var n=gle((t*100).toPrecision(3));return jL.numSeparate(n,r)+"%"};Vb.formatPieValue=function(t,r){var n=gle(t.toPrecision(10));return jL.numSeparate(n,r)};Vb.getFirstFilled=function(t,r){if(jL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var uut=So(),cut=ka();mle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?uut.pointStyle(t,n,i,r):cut.fill(t,r.color)}});var J3=ye((Kar,ble)=>{"use strict";var _le=ka(),xle=m_().castOption,fut=yle();ble.exports=function(t,r,n,i){var a=n.marker.line,o=xle(a.color,r.pts)||_le.defaultLine,s=xle(a.width,r.pts)||0;t.call(fut,r,n,i).style("stroke-width",s).call(_le.stroke,o)}});var jB=ye((Jar,Ele)=>{"use strict";var Ov=Fa(),VB=Oa(),_v=Pr(),wle=_v.strTranslate,Kp=So(),T0=ka(),GB=pv().extractOpts,WL=Ru(),hut=J3(),dut=m_().castOption,vut=BB(),Tle=12,Ale=5,Gb=2,put=10,$3=5;Ele.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+vut.itemGap*2)/2,l=wle(s,0),u=function(C,S,g,P){var E;if(C+1)E=C;else if(S&&S.width>0)E=S.width;else return 0;return a?P:Math.min(E,g)};t.each(function(C){var S=Ov.select(this),g=_v.ensureSingle(S,"g","layers");g.style("opacity",C[0].trace.opacity);var P=n.indentation,E=n.valign,z=C[0].lineHeight,q=C[0].height;if(E==="middle"&&P===0||!z||!q)g.attr("transform",null);else{var V={top:1,bottom:-1}[E],G=V*(.5*(z-q+3))||0,Z=n.indentation;g.attr("transform",wle(Z,G))}var j=g.selectAll("g.legendfill").data([C]);j.enter().append("g").classed("legendfill",!0);var N=g.selectAll("g.legendlines").data([C]);N.enter().append("g").classed("legendlines",!0);var H=g.selectAll("g.legendsymbols").data([C]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(v).each(d).each(b).each(T).each(M).each(c).each(f).each(p).each(k);function c(C){var S=Sle(C),g=S.showFill,P=S.showLine,E=S.showGradientLine,z=S.showGradientFill,q=S.anyFill,V=S.anyLine,G=C[0],Z=G.trace,j,N,H=GB(Z),re=H.colorscale,ae=H.reversescale,_e=function(be){if(be.size())if(g)Kp.fillGroupStyle(be,r,!0);else{var Be="legendfill-"+Z.uid;Kp.gradient(be,r,Be,HB(ae),re,"fill")}},Ee=function(be){if(be.size()){var Be="legendline-"+Z.uid;Kp.lineGroupStyle(be),Kp.gradient(be,r,Be,HB(ae),re,"stroke")}},Ce=WL.hasMarkers(Z)||!q?"M5,0":V?"M5,-2":"M5,-3",ge=Ov.select(this),ie=ge.select(".legendfill").selectAll("path").data(g||z?[C]:[]);if(ie.enter().append("path").classed("js-fill",!0),ie.exit().remove(),ie.attr("d",Ce+"h"+o+"v6h-"+o+"z").call(_e),P||E){var Se=u(void 0,Z.line,put,Ale);N=_v.minExtend(Z,{line:{width:Se}}),j=[_v.minExtend(G,{trace:N})]}var ke=ge.select(".legendlines").selectAll("path").data(P||E?[j]:[]);ke.enter().append("path").classed("js-line",!0),ke.exit().remove(),ke.attr("d",Ce+(E?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Ee)}function f(C){var S=Sle(C),g=S.anyFill,P=S.anyLine,E=S.showLine,z=S.showMarker,q=C[0],V=q.trace,G=!z&&!P&&!g&&WL.hasText(V),Z,j;function N(ie,Se,ke,be){var Be=_v.nestedProperty(V,ie).get(),Le=_v.isArrayOrTypedArray(Be)&&Se?Se(Be):Be;if(a&&Le&&be!==void 0&&(Le=be),ke){if(Leke[1])return ke[1]}return Le}function H(ie){return q._distinct&&q.index&&ie[q.index]?ie[q.index]:ie[0]}if(z||G||E){var re={},ae={};if(z){re.mc=N("marker.color",H),re.mx=N("marker.symbol",H),re.mo=N("marker.opacity",_v.mean,[.2,1]),re.mlc=N("marker.line.color",H),re.mlw=N("marker.line.width",_v.mean,[0,5],Gb),re.mld=V._isShape?"solid":N("marker.line.dash",H),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",_v.mean,[2,16],Tle);re.ms=_e,ae.marker.size=_e}E&&(ae.line={width:N("line.width",H,[0,10],Ale)}),G&&(re.tx="Aa",re.tp=N("textposition",H),re.ts=10,re.tc=N("textfont.color",H),re.tf=N("textfont.family",H),re.tw=N("textfont.weight",H),re.ty=N("textfont.style",H),re.tv=N("textfont.variant",H),re.tC=N("textfont.textcase",H),re.tE=N("textfont.lineposition",H),re.tS=N("textfont.shadow",H)),Z=[_v.minExtend(q,re)],j=_v.minExtend(V,ae),j.selectedpoints=null,j.texttemplate=null}var Ee=Ov.select(this).select("g.legendpoints"),Ce=Ee.selectAll("path.scatterpts").data(z?Z:[]);Ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),Ce.exit().remove(),Ce.call(Kp.pointStyle,j,r),z&&(Z[0].mrc=3);var ge=Ee.selectAll("g.pointtext").data(G?Z:[]);ge.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),ge.exit().remove(),ge.selectAll("text").call(Kp.textPointStyle,j,r)}function h(C){var S=C[0].trace,g=S.type==="waterfall";if(C[0]._distinct&&g){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,m(C,this,"waterfall")}var E=[];S.visible&&g&&(E=C[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var z=Ov.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(E);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(q){var V=Ov.select(this),G=S[q[0]].marker,Z=u(void 0,G.line,$3,Gb);V.attr("d",q[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&V.call(T0.stroke,G.line.color)})}function d(C){m(C,this)}function v(C){m(C,this,"funnel")}function m(C,S,g){var P=C[0].trace,E=P.marker||{},z=E.line||{},q=E.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=g?P.visible&&P.type===g:VB.traceIs(P,"bar"),G=Ov.select(S).select("g.legendpoints").selectAll("path.legend"+g).data(V?[C]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",q).attr("transform",l),G.exit().remove(),G.each(function(Z){var j=Ov.select(this),N=Z[0],H=u(N.mlw,E.line,$3,Gb);j.style("stroke-width",H+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var ae=GB(E),_e=ae.mid;_e===void 0&&(_e=(ae.max+ae.min)/2),re=Kp.tryColorscale(E,"")(_e)}var Ee=re||N.mc||E.color,Ce=E.pattern,ge=Kp.getPatternAttr,ie=Ce&&(ge(Ce.shape,0,"")||ge(Ce.path,0,""));if(ie){var Se=ge(Ce.bgcolor,0,null),ke=ge(Ce.fgcolor,0,null),be=Ce.fgopacity,Be=Mle(Ce.size,8,10),Le=Mle(Ce.solidity,.5,1),me="legend-"+P.uid;j.call(Kp.pattern,"legend",r,me,ie,Be,Le,re,Ce.fillmode,Se,ke,be)}else j.call(T0.fill,Ee);H&&T0.stroke(j,N.mlc||z.color)})}function b(C){var S=C[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&VB.traceIs(S,"box-violin")?[C]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var P=Ov.select(this);if((S.boxpoints==="all"||S.points==="all")&&T0.opacity(S.fillcolor)===0&&T0.opacity((S.line||{}).color)===0){var E=_v.minExtend(S,{marker:{size:a?Tle:_v.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,E,r)}else{var z=u(void 0,S.line,$3,Gb);P.style("stroke-width",z+"px").call(T0.fill,S.fillcolor),z&&T0.stroke(P,S.line.color)}})}function p(C){var S=C[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[C,C]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,E){return E?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,E){var z=Ov.select(this),q=S[E?"increasing":"decreasing"],V=u(void 0,q.line,$3,Gb);z.style("stroke-width",V+"px").call(T0.fill,q.fillcolor),V&&T0.stroke(z,q.line.color)})}function k(C){var S=C[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[C,C]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,E){return E?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,E){var z=Ov.select(this),q=S[E?"increasing":"decreasing"],V=u(void 0,q.line,$3,Gb);z.style("fill","none").call(Kp.dashLine,q.line.dash,V),V&&T0.stroke(z,q.line.color)})}function M(C){L(C,this,"pie")}function T(C){L(C,this,"funnelarea")}function L(C,S,g){var P=C[0],E=P.trace,z=g?E.visible&&E.type===g:VB.traceIs(E,g),q=Ov.select(S).select("g.legendpoints").selectAll("path.legend"+g).data(z?[C]:[]);if(q.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),q.exit().remove(),q.size()){var V=E.marker||{},G=u(dut(V.line.width,P.pts),V.line,$3,Gb),Z="pieLike",j=_v.minExtend(E,{marker:{line:{width:G}}},Z),N=_v.minExtend(P,{trace:j},Z);hut(q,N,j,r)}}function x(C){var S=C[0].trace,g,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],g=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],g=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],g=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],g=!1;break}var E=Ov.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);E.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(z,q){var V=Ov.select(this),G=GB(S),Z=G.colorscale,j=G.reversescale,N=function(_e){if(_e.size()){var Ee="legendfill-"+S.uid;Kp.gradient(_e,r,Ee,HB(j,g==="radial"),Z,"fill")}},H;if(Z){if(!g){var ae=Z.length;H=q===0?Z[j?ae-1:0][1]:q===1?Z[j?0:ae-1][1]:Z[Math.floor((ae-1)/2)][1]}}else{var re=S.vertexcolor||S.facecolor||S.color;H=_v.isArrayOrTypedArray(re)?re[q]||re[0]:re}V.attr("d",z[0]),H?V.call(T0.fill,H):V.call(N)})}};function HB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Sle(e){var t=e[0].trace,r=t.contours,n=WL.hasLines(t),i=WL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:n=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function Mle(e,t,r){return e&&_v.isArrayOrTypedArray(e)?t:e>r?r:e}});var YB=ye(($ar,zle)=>{"use strict";var np=Fa(),vh=Pr(),XB=Mc(),Hb=Oa(),YL=I3(),WB=yv(),ph=So(),wM=ka(),jb=Zl(),kle=OB().handleItemClick,Cle=OB().handleTitleClick,qh=BB(),ZB=Dh(),Dle=ZB.LINE_SPACING,eT=ZB.FROM_TL,Lle=ZB.FROM_BR,Ple=ple(),gut=jB(),tT=bM(),Q3=1,mut=/^legend[0-9]*$/;zle.exports=function(t,r){if(r)Ile(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=np.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(mut)&&i.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var v=n.hiddenlabels||[];if(!s&&(!n.showlegend||!l.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),XB.autoMargin(e,i);var m=vh.ensureSingle(o,"g",i,function(S){s||S.attr("pointer-events","all")}),b=vh.ensureSingleById(n._topdefs,"clipPath",a,function(S){S.append("rect")}),p=vh.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});p.call(wM.stroke,r.bordercolor).call(wM.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var k=vh.ensureSingle(m,"g","scrollbox"),M=r.title;r._titleWidth=0,r._titleHeight=0;var T;M.text?(T=vh.ensureSingle(k,"text",i+"titletext"),T.attr("text-anchor","start").call(ph.font,M.font).text(M.text),ZL(T,k,e,r,Q3),!s&&(r.titleclick||r.titledoubleclick)&&but(k,e,r,i)):(k.selectAll("."+i+"titletext").remove(),k.selectAll("."+i+"titletoggle").remove());var L=vh.ensureSingle(m,"rect","scrollbar",function(S){S.attr(qh.scrollBarEnterAttrs).call(wM.fill,qh.scrollBarColor)}),x=k.selectAll("g.groups").data(l);x.enter().append("g").attr("class","groups"),x.exit().remove();var C=x.selectAll("g.traces").data(vh.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(S){let g=S[0],P=g.trace;if(g.groupTitle){let E=P.legendgroup,z=(n.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(z).some(function(V){return V.legendgroup===E&&(V.legend||"legend")===i&&V.visible===!0})?1:.5}return Hb.traceIs(P,"pie-like")?v.indexOf(S[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){np.select(this).call(_ut,e,r)}).call(gut,e,r).each(function(S){s||S[0].groupTitle&&r.groupclick==="toggleitem"||np.select(this).call(xut,e,i)}),vh.syncOrAsync([XB.previousPromises,function(){return Aut(e,x,C,r,k)},function(){var S=n._size,g=r.borderwidth,P=r.xref==="paper",E=r.yref==="paper";if(M.text){let He=(n.shapes||[]).filter(function(mt){return mt.showlegend}),lt=e._fullData.concat(He).some(function(mt){let Ht=mt.legend||"legend";var at=Array.isArray(Ht)?Ht.includes(i):Ht===i;return at&&mt.visible===!0});T.style("opacity",lt?1:.5)}if(!s){var z,q;P?z=S.l+S.w*r.x-eT[KL(r)]*r._width:z=n.width*r.x-eT[KL(r)]*r._width,E?q=S.t+S.h*(1-r.y)-eT[JL(r)]*r._effHeight:q=n.height*(1-r.y)-eT[JL(r)]*r._effHeight;var V=Sut(e,i,z,q);if(V)return;if(n.margin.autoexpand){var G=z,Z=q;z=P?vh.constrain(z,0,n.width-r._width):G,q=E?vh.constrain(q,0,n.height-r._effHeight):Z,z!==G&&vh.log("Constrain "+i+".x to make legend fit inside graph"),q!==Z&&vh.log("Constrain "+i+".y to make legend fit inside graph")}ph.setTranslate(m,z,q)}if(L.on(".drag",null),m.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var j=r._effHeight;s&&(j=r._height),p.attr({width:r._width-g,height:j-g,x:g/2,y:g/2}),ph.setTranslate(k,0,0),b.select("rect").attr({width:r._width-2*g,height:j-2*g,x:g,y:g}),ph.setClipUrl(k,a,e),ph.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(qh.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),H=r._effHeight-N-2*qh.scrollBarMargin,re=r._height-r._effHeight,ae=H/re,_e=Math.min(r._scrollY||0,re);p.attr({width:r._width-2*g+qh.scrollBarWidth+qh.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+qh.scrollBarWidth+qh.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),ph.setClipUrl(k,a,e),Be(_e,N,ae),m.on("wheel",function(){_e=vh.constrain(r._scrollY+np.event.deltaY/re*H,0,re),Be(_e,N,ae),_e!==0&&_e!==re&&np.event.preventDefault()});var Ee,Ce,ge,ie=function(He,lt,mt){var Ht=(mt-lt)/ae+He;return vh.constrain(Ht,0,re)},Se=function(He,lt,mt){var Ht=(lt-mt)/ae+He;return vh.constrain(Ht,0,re)},ke=np.behavior.drag().on("dragstart",function(){var He=np.event.sourceEvent;He.type==="touchstart"?Ee=He.changedTouches[0].clientY:Ee=He.clientY,ge=_e}).on("drag",function(){var He=np.event.sourceEvent;He.buttons===2||He.ctrlKey||(He.type==="touchmove"?Ce=He.changedTouches[0].clientY:Ce=He.clientY,_e=ie(ge,Ee,Ce),Be(_e,N,ae))});L.call(ke);var be=np.behavior.drag().on("dragstart",function(){var He=np.event.sourceEvent;He.type==="touchstart"&&(Ee=He.changedTouches[0].clientY,ge=_e)}).on("drag",function(){var He=np.event.sourceEvent;He.type==="touchmove"&&(Ce=He.changedTouches[0].clientY,_e=Se(ge,Ee,Ce),Be(_e,N,ae))});k.call(be)}function Be(He,lt,mt){r._scrollY=e._fullLayout[i]._scrollY=He,ph.setTranslate(k,0,-He),ph.setRect(L,r._width,qh.scrollBarMargin+He*mt,qh.scrollBarWidth,lt),b.select("rect").attr("y",g+He)}if(e._context.edits.legendPosition){var Le,me,Pe,ce;m.classed("cursor-move",!0),WB.init({element:m.node(),gd:e,prepFn:function(He){if(He.target!==L.node()){var lt=ph.getTranslate(m);Pe=lt.x,ce=lt.y}},moveFn:function(He,lt){if(Pe!==void 0&&ce!==void 0){var mt=Pe+He,Ht=ce+lt;ph.setTranslate(m,mt,Ht),Le=WB.align(mt,r._width,S.l,S.l+S.w,r.xanchor),me=WB.align(Ht+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(Le!==void 0&&me!==void 0){var He={};He[i+".x"]=Le,He[i+".y"]=me,Hb.call("_guiRelayout",e,He)}},clickFn:function(He,lt){var mt=o.selectAll("g.traces").filter(function(){var Ht=this.getBoundingClientRect();return lt.clientX>=Ht.left&<.clientX<=Ht.right&<.clientY>=Ht.top&<.clientY<=Ht.bottom});mt.size()>0&&Fle(e,r,mt,He,lt)}})}}],e)}}function XL(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Fle(e,t,r,n,i){var a=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,l=t.itemdoubleclick,u={event:i,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:a};o._group&&(u.group=o._group),Hb.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var c=YL.triggerHandler(e,"plotly_legendclick",u);if(n===1){if(c===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&kle(r,e,t,s)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var f=YL.triggerHandler(e,"plotly_legenddoubleclick",u);f!==!1&&c!==!1&&l&&kle(r,e,t,l)}}function _ut(e,t,r){var n=tT.getId(r),i=e.data()[0][0],a=i.trace,o=Hb.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;i.groupTitle?(u=i.groupTitle.text,c=i.groupTitle.font):(c=r.font,r.entries?u=i.text:(u=o?i.label:a.name,a._meta&&(u=vh.templateString(u,a._meta))));var f=vh.ensureSingle(e,"text",n+"text");f.attr("text-anchor","start").call(ph.font,c).text(s?Rle(u,l):u);var h=r.indentation+r.itemwidth+qh.itemGap*2;jb.positionText(f,h,0),s?f.call(jb.makeEditable,{gd:t,text:u}).call(ZL,e,t,r).on("edit",function(d){this.text(Rle(d,l)).call(ZL,e,t,r);var v=i.trace._fullInput||{},m={};return m.name=d,v._isShape?Hb.call("_guiRelayout",t,"shapes["+a.index+"].name",m.name):Hb.call("_guiRestyle",t,m,a.index)}):ZL(f,e,t,r)}function Rle(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function xut(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=vh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(wM.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Fle(t,s,e,a,np.event)}}))}function but(e,t,r,n){if(t._fullData.some(function(u){let c=u.legend||"legend";return(Array.isArray(c)?c.includes(n):c===n)&&Hb.traceIs(u,"pie-like")}))return;let a=t._context.doubleClickDelay;var o,s=1;let l=vh.ensureSingle(e,"rect",n+"titletoggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(wM.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimea&&(s=Math.max(s-1,1));let u={event:np.event,legendId:n,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(YL.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&Cle(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,YL.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&Cle(t,r,r.titledoubleclick))}))}function ZL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),jb.convertToTspans(e,r,function(){wut(t,r,n,i)})}function wut(e,t,r,n){var i=e.data()[0][0],a=i&&i.trace.showlegend;if(Array.isArray(a)&&(a=a[i.i]!==!1),!r._inHover&&i&&!a){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),l=tT.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,c;n===Q3?c=r.title.font:i.groupTitle?c=i.groupTitle.font:c=r.font;var f=c.size*Dle,h,d;if(s){var v=ph.bBox(s);h=v.height,d=v.width,n===Q3?ph.setTranslate(o,u,u+h*.75):ph.setTranslate(o,0,h*.25)}else{var m="."+l+(n===Q3?"title":"")+"text",b=e.select(m),p=jb.lineCount(b),k=b.node();if(h=f*p,d=k?ph.bBox(k).width:0,n===Q3)r.title.side==="left"&&(d+=qh.itemGap*2),jb.positionText(b,u+qh.titlePad,u+f);else{var M=qh.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(M=qh.itemGap,d-=r.indentation+r.itemwidth),jb.positionText(b,M,-f*((p-1)/2-.3))}}n===Q3?(r._titleWidth=d,r._titleHeight=h):(i.lineHeight=f,i.height=Math.max(h,16)+3,i.width=d)}function Tut(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Aut(e,t,r,n,i){var a=e._fullLayout,o=tT.getId(n);n||(n=a[o]);var s=a._size,l=tT.isVertical(n),u=tT.isGrouped(n),c=n.entrywidthmode==="fraction",f=n.borderwidth,h=2*f,d=qh.itemGap,v=n.indentation+n.itemwidth+d*2,m=2*(f+d),b=JL(n),p=n.y<0||n.y===0&&b==="top",k=n.y>1||n.y===1&&b==="bottom",M=n.tracegroupgap,T={};let{orientation:L,yref:x}=n,{maxheight:C}=n,S=p||k||L!=="v"||x!=="paper";C||(C=S?.5:1);let g=S?a.height:s.h;n._maxHeight=Math.max(C>1?C:C*g,30);var P=0;n._width=0,n._height=0;var E=Tut(n);if(l)r.each(function(He){var lt=He[0].height;ph.setTranslate(this,f+E[0],f+E[1]+n._height+lt/2+d),n._height+=lt,n._width=Math.max(n._width,He[0].width)}),P=v+n._width,n._width+=d+v+h,n._height+=m,u&&(t.each(function(He,lt){ph.setTranslate(this,0,lt*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var z=KL(n),q=n.x<0||n.x===0&&z==="right",V=n.x>1||n.x===1&&z==="left",G=k||p,Z=a.width/2;n._maxWidth=Math.max(q?G&&z==="left"?s.l+s.w:Z:V?G&&z==="right"?s.r+s.w:Z:s.w,2*v);var j=0,N=0;r.each(function(He){var lt=XL(He,n,v);j=Math.max(j,lt),N+=lt}),P=null;var H=0;if(u){var re=0,ae=0,_e=0;t.each(function(){var He=0,lt=0;np.select(this).selectAll("g.traces").each(function(Ht){var at=XL(Ht,n,v),ct=Ht[0].height;ph.setTranslate(this,E[0],E[1]+f+d+ct/2+lt),lt+=ct,He=Math.max(He,at),T[Ht[0].trace.legendgroup]=He});var mt=He+d;ae>0&&mt+f+ae>n._maxWidth?(H=Math.max(H,ae),ae=0,_e+=re+M,re=lt):re=Math.max(re,lt),ph.setTranslate(this,ae,_e),ae+=mt}),n._width=Math.max(H,ae)+f,n._height=_e+re+m}else{var Ee=r.size(),Ce=N+h+(Ee-1)*d=n._maxWidth&&(H=Math.max(H,ke),ie=0,Se+=ge,n._height+=ge,ge=0),ph.setTranslate(this,E[0]+f+ie,E[1]+f+Se+lt/2+d),ke=ie+mt+d,ie+=Ht,ge=Math.max(ge,lt)}),Ce?(n._width=ie+h,n._height=ge+m):(n._width=Math.max(H,ke)+h,n._height+=ge+m)}}n._width=Math.ceil(Math.max(n._width+E[0],n._titleWidth+2*(f+qh.titlePad))),n._height=Math.ceil(Math.max(n._height+E[1],n._titleHeight+2*(f+qh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var be=e._context.edits,Be=be.legendText||be.legendPosition;r.each(function(He){var lt=np.select(this).select("."+o+"toggle"),mt=He[0].height,Ht=He[0].trace.legendgroup,at=XL(He,n,v);u&&Ht!==""&&(at=T[Ht]);var ct=Be?v:P||at;!l&&!c&&(ct+=d/2),ph.setRect(lt,0,-mt/2,ct,mt)});var Le=i.select("."+o+"titletext");Le.node()&&yut(Le,n,f);var me=i.select("."+o+"titletoggle");if(me.size()&&Le.node()){var Pe=Le.attr("x")||0,ce=qh.titlePad;ph.setRect(me,Pe-ce,f,n._titleWidth+2*ce,n._titleHeight+2*ce)}}function Sut(e,t,r,n){var i=e._fullLayout,a=i[t],o=KL(a),s=JL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(l&&u)return XB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*eT[o],r:a._width*Lle[o],b:a._effHeight*Lle[s],t:a._effHeight*eT[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function KL(e){return vh.isRightAnchor(e)?"right":vh.isCenterAnchor(e)?"center":"left"}function JL(e){return vh.isBottomAnchor(e)?"bottom":vh.isMiddleAnchor(e)?"middle":"top"}});var QB=ye($B=>{"use strict";var Wb=Fa(),Ry=Eo(),qle=fd(),zf=Pr(),Mut=zf.pushUnique,KB=zf.strTranslate,Eut=zf.strRotate,kut=I3(),A0=Zl(),Cut=lle(),Am=So(),vd=ka(),$L=yv(),Sm=ho(),Lut=Rh().zindexSeparator,iT=Oa(),kg=ip(),Xb=HS(),Put=FB(),Iut=YB(),jle=Xb.YANGLE,JB=Math.PI*jle/180,Rut=1/Math.sin(JB),Dut=Math.cos(JB),Fut=Math.sin(JB),Qc=Xb.HOVERARROWSIZE,ol=Xb.HOVERTEXTPAD,Ole={box:!0,ohlc:!0,violin:!0,candlestick:!0},zut={scatter:!0,scattergl:!0,splom:!0};function Ble(e,t){return e.distance-t.distance}$B.hover=function(t,r,n,i){t=zf.getGraphDiv(t);var a=r.target;zf.throttle(t._fullLayout._uid+Xb.HOVERID,Xb.HOVERMINTIME,function(){qut(t,r,n,i,a)})};$B.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Kle(i),o=Jle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,k=b._x1||b.x1||b.x||0,M=b._y0||b.y0||b.y||0,T=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(p,k),C=Math.max(p,k),S=Math.min(M,T),g=Math.max(M,T),P=b.trace;if(iT.traceIs(P,"gl3d")){var E=i._fullLayout[P.scene]._scene.container,z=E.offsetLeft,q=E.offsetTop;x+=z,C+=z,S+=q,g+=q}L.bbox={x0:x+o,x1:C+o,y0:S+a,y1:g+a},L.xPixel=(p+k)/2,L.yPixel=(M+T)/2,r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),l=!1,u=Xle(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:Wb.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,d=0;c.sort(function(b,p){return b.y0-p.y0}).each(function(b,p){var k=b.y0-b.by/2;k-fC[0]._length||ce<0||ce>S[0]._length)return $L.unhoverRaw(e,t)}if(t.pointerX=Pe+C[0]._offset,t.pointerY=ce+S[0]._offset,"xval"in t?Z=kg.flat(a,t.xval):Z=kg.p2c(C,Pe),"yval"in t?j=kg.flat(a,t.yval):j=kg.p2c(S,ce),!Ry(Z[0])||!Ry(j[0]))return zf.warn("Fx.hover failed",t,e),$L.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=Z,e._hoverYVals=j,e._hoverXAxes=C,e._hoverYAxes=S);var mt=1/0;function Ht(Vi,Jn){for(H=0;Hke&&(V.splice(0,ke),mt=V[0].distance),f&&q!==0&&V.length===0){Se.distance=q,Se.index=!1;var ir=ae._module.hoverPoints(Se,ge,ie,"closest",{hoverLayer:s._hoverlayer});if(ir&&(ir=ir.filter(function(Hi){return Hi.spikeDistance<=q})),ir&&ir.length){var wr,Xr=ir.filter(function(Hi){return Hi.xa.showspikes&&Hi.xa.spikesnap!=="hovered data"});if(Xr.length){var ti=Xr[0];Ry(ti.x0)&&Ry(ti.y0)&&(wr=ct(ti),(!be.vLinePoint||be.vLinePoint.spikeDistance>wr.spikeDistance)&&(be.vLinePoint=wr))}var $r=ir.filter(function(Hi){return Hi.ya.showspikes&&Hi.ya.spikesnap!=="hovered data"});if($r.length){var Ri=$r[0];Ry(Ri.x0)&&Ry(Ri.y0)&&(wr=ct(Ri),(!be.hLinePoint||be.hLinePoint.spikeDistance>wr.spikeDistance)&&(be.hLinePoint=wr))}}}}}Ht();function at(Vi,Jn,Yn){for(var Gt=null,wt=1/0,tr,ir=0;irVi.trace.index===pt.trace.index):V=[pt];var jt=V.length,or=Hle("x",pt,s),mr=Hle("y",pt,s);Ht(or,mr);var Ar=[],ei={},qr=0,jr=function(Vi){var Jn=Ole[Vi.trace.type]?Wle(Vi):Vi.trace.index;if(!ei[Jn])qr++,ei[Jn]=qr,Ar.push(Vi);else{var Yn=ei[Jn]-1,Gt=Ar[Yn];Yn>0&&Math.abs(Vi.distance)jt-1;gt--)jr(V[gt]);V=Ar,tt()}var Ge=e._hoverdata,Je=[],We=Kle(e),et=Jle(e);for(let Vi of V){var xt=kg.makeEventData(Vi,Vi.trace,Vi.cd);if(Vi.hovertemplate!==!1){var At=!1;Vi.cd[Vi.index]&&Vi.cd[Vi.index].ht&&(At=Vi.cd[Vi.index].ht),Vi.hovertemplate=At||Vi.trace.hovertemplate||!1}if(Vi.xa&&Vi.ya){var Kt=Vi.x0+Vi.xa._offset,Qt=Vi.x1+Vi.xa._offset,Mr=Vi.y0+Vi.ya._offset,Gr=Vi.y1+Vi.ya._offset,Ir=Math.min(Kt,Qt),Yr=Math.max(Kt,Qt),_i=Math.min(Mr,Gr),Pi=Math.max(Mr,Gr);xt.bbox={x0:Ir+et,x1:Yr+et,y0:_i+We,y1:Pi+We},xt.xPixel=(Kt+Qt)/2,xt.yPixel=(Mr+Gr)/2}Vi.eventData=[xt],Je.push(xt)}e._hoverdata=Je;var ai=h==="y"&&(G.length>1||V.length>1)||h==="closest"&&Be&&V.length>1,mi=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),un=Xle(V,{gd:e,hovermode:h,rotateLabels:ai,bgColor:mi,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Fn=un.hoverLabels;if(kg.isUnifiedHover(h)||(But(Fn,ai,s,un.commonLabelBoundingBox),Yle(Fn,ai,s._invScaleX,s._invScaleY)),i&&i.tagName){var An=iT.getComponentMethod("annotations","hasClickToShow")(e,Je);Cut(Wb.select(i),An?"pointer":"")}var Hn=Vut(e,t,Ge);if(!i||n||!Hn&&!s.hoveranywhere)return;Ge&&Hn&&e.emit("plotly_unhover",{event:t,points:Ge}),Qn(e._hoverdata);function Qn(Vi){e.emit("plotly_hover",{event:t,points:Vi,xaxes:C,yaxes:S,xvals:Z,yvals:j})}}function Wle(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Out=/([\s\S]*)<\/extra>/;function Xle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||Xb.HOVERFONT,f=t.fontSize||Xb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,m=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,k=e[0],M=k.xa,T=k.ya,L=i.charAt(0),x=L+"Label",C=k[x];if(C===void 0&&M.type==="multicategory")for(var S=0;Sn.width-Je&&(We=n.width-Je),Et.attr("d","M"+(jr-We)+",0L"+(jr-We+Qc)+","+Ge+Qc+"H"+Je+"v"+Ge+(ol*2+qr.height)+"H"+-Je+"V"+Ge+Qc+"H"+(jr-We-Qc)+"Z"),jr=We,H.minX=jr-Je,H.maxX=jr+Je,M.side==="top"?(H.minY=gt-(ol*2+qr.height),H.maxY=gt-ol):(H.minY=gt+ol,H.maxY=gt+(ol*2+qr.height))}else{var et,xt,At;T.side==="right"?(et="start",xt=1,At="",jr=M._offset+M._length):(et="end",xt=-1,At="-",jr=M._offset),gt=T._offset+(k.y0+k.y1)/2,pt.attr("text-anchor",et),Et.attr("d","M0,0L"+At+Qc+","+Qc+"V"+(ol+qr.height/2)+"h"+At+(ol*2+qr.width)+"V-"+(ol+qr.height/2)+"H"+At+Qc+"V-"+Qc+"Z"),H.minY=gt-(ol+qr.height/2),H.maxY=gt+(ol+qr.height/2),T.side==="right"?(H.minX=jr+Qc,H.maxX=jr+Qc+(ol*2+qr.width)):(H.minX=jr-Qc-(ol*2+qr.width),H.maxX=jr-Qc);var Kt=qr.height/2,Qt=P-qr.top-Kt,Mr="clip"+n._uid+"commonlabel"+T._id,Gr;if(jrEt.hoverinfo!=="none");if(dt.length===0)return[];var re=n.hoverlabel,ae=re.font,_e=dt[0],Ee=((i==="x unified"?_e.xa:_e.ya).unifiedhovertitle||{}).text,Ce=Ee?zf.hovertemplateString({data:i==="x unified"?[{xa:_e.xa,x:_e.xVal}]:[{ya:_e.ya,y:_e.yVal}],fallback:_e.trace.hovertemplatefallback,locale:n._d3locale,template:Ee}):C,ge={showlegend:!0,legend:{title:{text:Ce,font:ae},font:ae,bgcolor:re.bgcolor,bordercolor:re.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},ie={font:ae};Put(ge,ie,r._fullData);var Se=ie.legend;Se.entries=[];for(var ke=0;ke=0?rt=tt:je+lt=0?rt=je:Ue+lt=0?St=Vt:rr+mt=0?St=rr:Ae+mt=0,(dt.idealAlign==="top"||!_i)&&Pi?(At-=Qt/2,dt.anchor="end"):_i?(At+=Qt/2,dt.anchor="start"):dt.anchor="middle",dt.crossPos=At;else{if(dt.pos=At,_i=xt+Kt/2+Yr<=E,Pi=xt-Kt/2-Yr>=0,(dt.idealAlign==="left"||!_i)&&Pi)xt-=Kt/2,dt.anchor="end";else if(_i)xt+=Kt/2,dt.anchor="start";else{dt.anchor="middle";var ai=Yr/2,mi=xt+ai-E,un=xt-ai;mi>0&&(xt-=mi),un<0&&(xt+=-un)}dt.crossPos=xt}gt.attr("text-anchor",dt.anchor),Je&&Ge.attr("text-anchor",dt.anchor),Et.attr("transform",KB(xt,At)+(a?Eut(jle):""))}),{hoverLabels:Tt,commonLabelBoundingBox:H}}function Nle(e,t,r,n,i,a){var f,h;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=zf.templateString(e.name,e.trace._meta)),o=Gle(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===i?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o),(h=(f=e.trace)==null?void 0:f.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:c=!1}=e;if(c){let d=e.hovertemplateLabels||e;e[l+"Label"]!==i&&(d[l+"other"]=d[l+"Val"],d[l+"otherLabel"]=d[l+"Label"]),s=zf.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:n._d3locale,template:c}),s=s.replace(Out,(v,m)=>(o=Gle(m,e.nameLength),""))}return[s,o]}function But(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=n.minX,h=n.maxX,d=n.minY,v=n.maxY,m=function(Z){return Z*r._invScaleX},b=function(Z){return Z*r._invScaleY};e.each(function(Z){var j=Z[i],N=Z[a],H=j._id.charAt(0)==="x",re=j.range;c===0&&re&&re[0]>re[1]!==H&&(s=-1);var ae=0,_e=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Ee=Zle(Z,t),Ce=Z.anchor,ge=Ce==="end"?-1:1,ie,Se;if(Ce==="middle")ie=Z.crossPos+(H?b(Ee.y-Z.by/2):m(Z.bx/2+Z.tx2width/2)),Se=ie+(H?b(Z.by):m(Z.bx));else if(H)ie=Z.crossPos+b(Qc+Ee.y)-b(Z.by/2-Qc),Se=ie+b(Z.by);else{var ke=m(ge*Qc+Ee.x),be=ke+m(ge*Z.bx);ie=Z.crossPos+Math.min(ke,be),Se=Z.crossPos+Math.max(ke,be)}H?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(ie,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,_e=r.width):_e=N._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(ie,f)>1&&(N.side==="top"?(ae=N._mainLinePosition,_e=r.height):_e=N._mainLinePosition)}u[c++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(H?Rut:1)/2,pmin:ae,pmax:_e}]}),u.sort(function(Z,j){return Z[0].posref-j[0].posref||s*(j[0].traceIndex-Z[0].traceIndex)});var p,k,M,T,L,x,C;function S(Z){var j=Z[0],N=Z[Z.length-1];if(k=j.pmin-j.pos-j.dp+j.size,M=N.pos+N.dp+N.size-j.pmax,k>.01){for(L=Z.length-1;L>=0;L--)Z[L].dp+=k;p=!1}if(!(M<.01)){if(k<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=M;p=!1}if(p){var H=0;for(T=0;Tj.pmax&&H++;for(T=Z.length-1;T>=0&&!(H<=0);T--)x=Z[T],x.pos>j.pmax-1&&(x.del=!0,H--);for(T=0;T=0;L--)Z[L].dp-=M;for(T=Z.length-1;T>=0&&!(H<=0);T--)x=Z[T],x.pos+x.dp+x.size>j.pmax&&(x.del=!0,H--)}}}for(;!p&&o<=l;){for(o++,p=!0,T=0;T.01){for(L=P.length-1;L>=0;L--)P[L].dp+=k;for(g.push.apply(g,P),u.splice(T+1,1),C=0,L=g.length-1;L>=0;L--)C+=g[L].dp;for(M=C/g.length,L=g.length-1;L>=0;L--)g[L].dp-=M;p=!1}else T++}u.forEach(S)}for(T=u.length-1;T>=0;T--){var q=u[T];for(L=q.length-1;L>=0;L--){var V=q[L],G=V.datum;G.offset=V.dp,G.del=V.del}}}function Zle(e,t){var r=0,n=e.offset;return t&&(n*=-Fut,r=e.offset*Dut),{x:r,y:n}}function Nut(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Qc+ol),n=r+t*(e.txwidth+ol),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+ol),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Yle(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Wb.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=Nut(o),h=Zle(o,t),d=h.x,v=h.y,m=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,p;m?p="M-"+i(o.bx/2+o.tx2width/2)+","+a(v-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?p="M0,0L"+i(c*Qc+d)+","+a(Qc+v)+"v"+a(o.by/2-Qc)+"h"+i(c*o.bx)+"v-"+a(o.by)+"H"+i(c*Qc+d)+"V"+a(v-Qc)+"Z":p="M"+i(c*Qc+d)+","+a(v-o.by/2)+"h"+i(c*o.bx)+"v"+a(o.by)+"h"+i(-c*o.bx)+"Z",s.select("path").attr("d",p);var k=d+f.textShiftX,M=v+o.ty0-o.by/2+ol,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&u!=="start"?(l.attr("text-anchor","start"),k=m?-o.bx/2-o.tx2width/2+ol:-o.bx-ol):T==="right"&&u!=="end"&&(l.attr("text-anchor","end"),k=m?o.bx/2-o.tx2width/2-ol:o.bx+ol)),l.call(A0.positionText,i(k),a(M)),o.tx2width&&(s.select("text.name").call(A0.positionText,i(f.text2ShiftX+f.alignShift*ol+d),a(v+o.ty0-o.by/2+ol)),s.select("rect").call(Am.setRect,i(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+d),a(v-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Uut(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Ry(h)&&h===0}var s=Array.isArray(r)?function(h,d){var v=zf.castOption(i,r,h);return o(v)?v:zf.extractOption({},n,"",d)}:function(h,d){return zf.extractOption(a,n,h,d)};function l(h,d,v){var m=s(d,v);o(m)&&(e[h]=m)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=zf.constrain(e.x0,0,e.xa._length),e.x1=zf.constrain(e.x1,0,e.xa._length),e.y0=zf.constrain(e.y0,0,e.ya._length),e.y1=zf.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Sm.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Sm.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Sm.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Sm.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=Sm.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+Sm.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function Ule(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(n.selectAll(".spikeline").remove(),!!(l||s)){var f=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,v;u=h&&h.xa,c=h&&h.ya;var m=c.spikesnap;m==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=qle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,k=c.spikethickness,M=c.spikecolor||b,T=Sm.getPxPosition(e,c),L,x;if(p.indexOf("toaxis")!==-1||p.indexOf("across")!==-1){if(p.indexOf("toaxis")!==-1&&(L=T,x=d),p.indexOf("across")!==-1){var C=c._counterDomainMin,S=c._counterDomainMax;c.anchor==="free"&&(C=Math.min(C,c.position),S=Math.max(S,c.position)),L=a.l+C*a.w,x=a.l+S*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":k,stroke:M,"stroke-dasharray":Am.dashStyle(c.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":k+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}p.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:T+(c.side!=="right"?k:-k),cy:v,r:k,fill:M}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,E;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,E=o.pointerY):(P=u._offset+g.x,E=c._offset+g.y);var q=qle.readability(g.color,f)<1.5?vd.contrast(f):g.color,V=u.spikemode,G=u.spikethickness,Z=u.spikecolor||q,j=Sm.getPxPosition(e,u),N,H;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(N=j,H=E),V.indexOf("across")!==-1){var re=u._counterDomainMin,ae=u._counterDomainMax;u.anchor==="free"&&(re=Math.min(re,u.position),ae=Math.max(ae,u.position)),N=a.t+(1-ae)*a.h,H=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G,stroke:Z,"stroke-dasharray":Am.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:j-(u.side!=="top"?G:-G),r:G,fill:Z}).classed("spikeline",!0)}}}function Vut(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function Vle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Gle(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Gut(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;oe.offsetTop+e.clientTop,Jle=e=>e.offsetLeft+e.clientLeft;function rT(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),i=n.left,a=n.top,o=i+n.width,s=a+n.height,l=zf.apply3DTransform(r._invTransform)(i,a),u=zf.apply3DTransform(r._invTransform)(o,s),c=l[0],f=l[1],h=u[0],d=u[1];return{x:c,y:f,width:h-c,height:d-f,top:Math.min(f,d),left:Math.min(c,h),right:Math.max(c,h),bottom:Math.max(f,d)}}});var TM=ye((eor,$le)=>{"use strict";var Hut=Pr(),jut=ka(),Wut=ip().isUnifiedHover;$le.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&Wut(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=jut.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),Hut.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var eue=ye((tor,Qle)=>{"use strict";var Xut=Pr(),Zut=TM(),Yut=X1();Qle.exports=function(t,r){function n(i,a){return Xut.coerce(t,r,Yut,i,a)}Zut(t,r,n)}});var iue=ye((ror,rue)=>{"use strict";var tue=Pr(),Kut=y3(),Jut=TM();rue.exports=function(t,r,n,i){function a(s,l){return tue.coerce(t,r,Kut,s,l)}var o=tue.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Jut(t,r,a,o)}});var eN=ye((ior,nue)=>{"use strict";var $ut=Pr(),Qut=X1();nue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:$ut.coerce(t,r,Qut,i,a)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var sue=ye((nor,oue)=>{"use strict";var aue=Pr(),ect=X1(),tct=eN(),rct=TM();oue.exports=function(t,r){function n(c,f){return aue.coerce(t,r,ect,c,f)}var i=tct(t,r);i&&(n("hoverdistance"),n("spikedistance"),i.indexOf("unified")!==-1&&n("hoversort"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),l=r._has("geo"),u=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||l)&&u===1||(o||s)&&l&&u===2)&&(r.dragmode="pan"),rct(t,r,n),aue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var cue=ye((aor,uue)=>{"use strict";var tN=Pr(),lue=Oa();uue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return tN.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var nct=Oa(),act=QB().hover;fue.exports=function(t,r,n){var i=nct.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;n!==void 0&&act(t,r,n,!0);function o(){var l,u,c,f;var s={points:t._hoverdata,event:r};(l=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(u=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(c=s.xvals)!=null||(s.xvals=t._hoverXVals),(f=s.yvals)!=null||(s.yvals=t._hoverYVals),t.emit("plotly_click",s)}(t._hoverdata||a.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),i&&i.then?i.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var ef=ye((sor,pue)=>{"use strict";var oct=Fa(),QL=Pr(),sct=yv(),AM=ip(),due=X1(),vue=QB();pue.exports={moduleType:"component",name:"fx",constants:HS(),schema:{layout:due},attributes:y3(),layoutAttributes:due,supplyLayoutGlobalDefaults:eue(),supplyDefaults:iue(),supplyLayoutDefaults:sue(),calc:cue(),getDistanceFunction:AM.getDistanceFunction,getClosest:AM.getClosest,inbox:AM.inbox,quadrature:AM.quadrature,appendArrayPointValue:AM.appendArrayPointValue,castHoverOption:uct,castHoverinfo:cct,hover:vue.hover,unhover:sct.unhover,loneHover:vue.loneHover,loneUnhover:lct,click:hue()};function lct(e){var t=QL.isD3Selection(e)?e:oct.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function uct(e,t,r){return QL.castOption(e,t,"hoverlabel."+r)}function cct(e,t,r){function n(i){return QL.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return QL.castOption(e,r,"hoverinfo",n)}});var Cg=ye(Dy=>{"use strict";Dy.selectMode=function(e){return e==="lasso"||e==="select"};Dy.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Dy.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Dy.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Dy.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Dy.selectingOrDrawing=function(e){return Dy.freeMode(e)||Dy.rectMode(e)}});var SM=ye((uor,gue)=>{"use strict";gue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var eP=ye((cor,mue)=>{"use strict";mue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M176 544C96.5 544 32 479.5 32 400C32 336.6 73 282.8 129.9 263.5C128.6 255.8 128 248 128 240C128 160.5 192.5 96 272 96C327.4 96 375.5 127.3 399.6 173.1C413.8 164.8 430.4 160 448 160C501 160 544 203 544 256C544 271.7 540.2 286.6 533.5 299.7C577.5 320 608 364.4 608 416C608 486.7 550.7 544 480 544L176 544zM337 255C327.6 245.6 312.4 245.6 303.1 255L231.1 327C221.7 336.4 221.7 351.6 231.1 360.9C240.5 370.2 255.7 370.3 265 360.9L296 329.9L296 432C296 445.3 306.7 456 320 456C333.3 456 344 445.3 344 432L344 329.9L375 360.9C384.4 370.3 399.6 370.3 408.9 360.9C418.2 351.5 418.3 336.3 408.9 327L336.9 255z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var rP=ye((hor,yue)=>{"use strict";var tP=32;yue.exports={CIRCLE_SIDES:tP,i000:0,i090:tP/4,i180:tP/2,i270:tP/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var iP=ye((dor,xue)=>{"use strict";var fct=Pr().strTranslate;function _ue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function hct(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function dct(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return _ue(e,r[t])}}function vct(e){return fct(e.xaxis._offset,e.yaxis._offset)}xue.exports={p2r:_ue,r2p:hct,axValue:dct,getTransform:vct}});var y_=ye(Fy=>{"use strict";var pct=lM(),Tue=rP(),nT=Tue.CIRCLE_SIDES,rN=Tue.SQRT2,Aue=iP(),bue=Aue.p2r,wue=Aue.r2p,gct=[0,3,4,5,6,1,2],mct=[0,3,4,1,2];Fy.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var Sue=df(),Lue=Cg(),yct=Lue.drawMode,_ct=Lue.openMode,aT=rP(),Mue=aT.i000,Eue=aT.i090,kue=aT.i180,Cue=aT.i270,xct=aT.cos45,bct=aT.sin45,Pue=iP(),aP=Pue.p2r,__=Pue.r2p,wct=s_(),Tct=wct.clearOutline,oP=y_(),Act=oP.readPaths,Sct=oP.writePaths,Mct=oP.ellipseOver,Ect=oP.fixDatesForPaths;function kct(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!yct(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var Cct=Cg(),Lct=Cct.selectMode,Pct=s_(),Ict=Pct.clearOutline,iN=y_(),Rct=iN.readPaths,Dct=iN.writePaths,Fct=iN.fixDatesForPaths;Due.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!Lct(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Fue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var b_=ye(Dd=>{"use strict";var Em=EM(),zue=Pr(),x_=ho();Dd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Dd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Dd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Dd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Dd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Em.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(Em.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=i[s].drawn!==void 0;return a+(l?1:0)},0)};Dd.getDataToPixel=function(e,t,r,n,i){var a=e._fullLayout._size,o;if(t)if(i==="domain")o=function(l){return t._length*(n?1-l:l)+t._offset};else{var s=Dd.shapePositionToRange(t);o=function(l){var u=Mm(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=Dd.decodeDate(o))}else n?o=function(l){return a.t+a.h*(1-l)}:o=function(l){return a.l+a.w*l};return o};Dd.getPixelToData=function(e,t,r,n){var i=e._fullLayout._size,a;if(t)if(n==="domain")a=function(s){var l=(s-t._offset)/t._length;return r?1-l:l};else{var o=Dd.rangeToShapePosition(t);a=function(s){return o(t.p2r(s-t._offset))}}else r?a=function(s){return 1-(s-i.t)/i.h}:a=function(s){return(s-i.l)/i.w};return a};Dd.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,n=Math.round(e);return r?n+.5:n};Dd.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&r.xref!=="paper"&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(n.yaxis=e._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}};Dd.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:n}};Dd.getPathString=function(e,t){let r=t.type,n=x_.getRefType(t.xref),i=x_.getRefType(t.yref),a=e._fullLayout._size;var o,s,l,u,c,f,h,d,v,m,b,p;function k(P,E,z,q){var V;if(P)if(E==="domain")q?V=function(G){return P._offset+P._length*(1-G)}:V=function(G){return P._offset+P._length*G};else{let G=Dd.shapePositionToRange(P);V=function(Z){return P._offset+P.r2p(G(Z,!0))},z==="path"&&P.type==="date"&&(V=Dd.decodeDate(V))}else q?V=function(G){return a.t+a.h*(1-G)}:V=function(G){return a.l+a.w*G};return V}if(n==="array"?(h=[],o=t.xref.map(function(P){return x_.getFromId(e,P)}),h=t.xref.map(function(P,E){return k(o[E],x_.getRefType(P),r,!1)})):(o=x_.getFromId(e,t.xref),h=k(o,n,r,!1)),i==="array"?(d=[],s=t.yref.map(function(P){return x_.getFromId(e,P)}),d=t.yref.map(function(P,E){return k(s[E],x_.getRefType(P),r,!0)})):(s=x_.getFromId(e,t.yref),d=k(s,i,r,!0)),r==="path")return zct(t,h,d);if(n==="array")l=Mm(o[0],t.x0shift),u=Mm(o[1],t.x1shift),v=h[0](t.x0)+l,m=h[1](t.x1)+u;else if(l=Mm(o,t.x0shift),u=Mm(o,t.x1shift),t.xsizemode==="pixel"){let P=h(t.xanchor);v=P+t.x0+l,m=P+t.x1+u}else v=h(t.x0)+l,m=h(t.x1)+u;if(i==="array")c=Mm(s[0],t.y0shift),f=Mm(s[1],t.y1shift),b=d[0](t.y0)+c,p=d[1](t.y1)+f;else if(c=Mm(s,t.y0shift),f=Mm(s,t.y1shift),t.ysizemode==="pixel"){let P=d(t.yanchor);b=P-t.y0+c,p=P-t.y1+f}else b=d(t.y0)+c,p=d(t.y1)+f;if(r==="line")return"M"+v+","+b+"L"+m+","+p;if(r==="rect")return"M"+v+","+b+"H"+m+"V"+p+"H"+v+"Z";var M=(v+m)/2,T=(b+p)/2,L=Math.abs(M-v),x=Math.abs(T-b),C="A"+L+","+x,S=M+L+","+T,g=M+","+(T-x);return"M"+S+C+" 0 1,1 "+g+C+" 0 0,1 "+S+"Z"};function zct(e,t,r){let n=e.path,i=e.xsizemode,a=e.ysizemode,o=e.xanchor,s=e.yanchor,l=Array.isArray(e.xref),u=Array.isArray(e.yref);var c=0,f=0;return n.replace(Em.segmentRE,function(h){var d=0,v=h.charAt(0),m=Em.paramIsX[v],b=Em.paramIsY[v],p=Em.numParams[v];let k=m.drawn!==void 0,M=b.drawn!==void 0,T=l?t[c]:t,L=u?r[f]:r;var x=h.slice(1).replace(Em.paramRE,function(C){return m[d]?i==="pixel"?C=T(o)+Number(C):C=T(C):b[d]&&(a==="pixel"?C=L(s)-Number(C):C=L(C)),d++,d>p&&(C="X"),C});return d>p&&(x=x.replace(/[\s,]*X.*/,""),zue.log("Ignoring extra params in segment "+h)),k&&c++,M&&f++,v+x})}Dd.getPixelShift=Mm;function Mm(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var aN=ye((_or,Bue)=>{"use strict";var qct=Pr(),km=ho(),que=Zl(),Oue=So(),Oct=y_().readPaths,Zb=b_(),Bct=Zb.getPathString,kM=z6(),Nct=Dh().FROM_TL;Bue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=km.getFromId(t,n.xref),l=km.getFromId(t,n.yref);let ae=Array.isArray(n.xref),_e=Array.isArray(n.yref);for(var u in kM){var c=typeof kM[u]=="function",f=!ae||kM.simpleXVariables.includes(u),h=!_e||kM.simpleYVariables.includes(u);if(c&&f&&h){var d=kM[u](n,s,l);d!==void 0&&(o[u]=d)}}}a=qct.texttemplateStringForShapes({data:[o],fallback:n.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:n.label.texttemplate})}else a=n.label.text;var v={"data-index":r},m=n.label.font,b={"data-notex":1},p=i.append("g").attr(v).classed("shape-label",!0),k=p.append("text").attr(b).classed("shape-label-text",!0).text(a),M,T,L,x;if(n.path){var C=Bct(t,n),S=Oct(C,t);M=1/0,L=1/0,T=-1/0,x=-1/0;for(var g=0;gZb.getDataToPixel(t,He,ce,!1,lt)(Pe),me=(Pe,ce,He,lt)=>Zb.getDataToPixel(t,He,ce,!0,lt)(Pe);if(n.xsizemode==="pixel"){let Pe=Le(n.xanchor,void 0,Ee,Se),ce=Zb.getPixelShift(Ee,n.x0shift),He=Zb.getPixelShift(Ee,n.x1shift);M=Pe+n.x0+ce,T=Pe+n.x1+He}else M=Le(n.x0,n.x0shift,Ee,Se),T=Le(n.x1,n.x1shift,Ce,ke);if(n.ysizemode==="pixel"){let Pe=me(n.yanchor,void 0,ge,be),ce=Zb.getPixelShift(ge,n.y0shift),He=Zb.getPixelShift(ge,n.y1shift);L=Pe-n.y0+ce,x=Pe-n.y1+He}else L=me(n.y0,n.y0shift,ge,be),x=me(n.y1,n.y1shift,ie,Be)}var G=n.label.textangle;G==="auto"&&(n.type==="line"?G=Uct(M,L,T,x):G=0),k.call(function(ae){return ae.call(Oue.font,m).attr({}),que.convertToTspans(ae,t),ae});var Z=Oue.bBox(k.node()),j=Vct(M,L,T,x,n,G,Z),N=j.textx,H=j.texty,re=j.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[re],y:H,x:N,transform:"rotate("+G+","+N+","+H+")"}).call(que.positionText,N,H)}};function Uct(e,t,r,n){var i,a;return a=Math.abs(r-e),r>=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Vct(e,t,r,n,i,a,o){var s=i.label.textposition,l=i.label.textangle,u=i.label.padding,c=i.type,f=Math.PI/180*a,h=Math.sin(f),d=Math.cos(f),v=i.label.xanchor,m=i.label.yanchor,b,p,k,M;if(c==="line"){s==="start"?(b=e,p=t):s==="end"?(b=r,p=n):(b=(e+r)/2,p=(t+n)/2),v==="auto"&&(s==="start"?l==="auto"?r>e?v="left":re?v="right":re?v="right":re?v="left":r{"use strict";var Gct=Pr(),Hct=Gct.strTranslate,Nue=yv(),Gue=Cg(),jct=Gue.drawMode,Hue=Gue.selectMode,jue=Oa(),Uue=ka(),uP=rP(),Wct=uP.i000,Xct=uP.i090,Zct=uP.i180,Yct=uP.i270,Kct=s_(),Wue=Kct.clearOutlineControllers,sN=y_(),lP=sN.pointsOnRectangle,oN=sN.pointsOnEllipse,Jct=sN.writePaths,$ct=sP().newShapes,Qct=sP().createShapeObj,eft=nN(),tft=aN();Xue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(oN(t[0])||n.hasText)&&s({redrawing:!0})}function s(j){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=$ct(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=eft(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&jue.call((j||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=jct(c),h=Hue(c);(f||h)&&(a._fullLayout._outlining=!0),Wue(a),r.attr("d",Jct(t));var d,v,m,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=rft([],t);var k=u.append("g").attr("class","outline-controllers");P(k),Z()}if(f&&n.hasText){var M=u.select(".label-temp"),T=Qct(r,n,n.dragmode);tft(a,"label-temp",T,M)}function L(j){m=+j.srcElement.getAttribute("data-i"),b=+j.srcElement.getAttribute("data-j"),d[m][b].moveFn=x}function x(j,N){if(t.length){var H=p[m][b][1],re=p[m][b][2],ae=t[m],_e=ae.length;if(lP(ae)){var Ee=j,Ce=N;if(n.isActiveSelection){var ge=Vue(ae,b);ge[1]===ae[b][1]?Ce=0:Ee=0}for(var ie=0;ie<_e;ie++)if(ie!==b){var Se=ae[ie];Se[1]===ae[b][1]&&(Se[1]=H+Ee),Se[2]===ae[b][2]&&(Se[2]=re+Ce)}if(ae[b][1]=H+Ee,ae[b][2]=re+Ce,!lP(ae))for(var ke=0;ke<_e;ke++)for(var be=0;be1&&!(j.length===2&&j[1][0]==="Z")&&(b===0&&(j[0][0]="M"),t[m]=j,o(),s())}}function g(j,N){if(j===2){m=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var H=t[m];!lP(H)&&!oN(H)&&S()}}function P(j){d=[];for(var N=0;N{"use strict";var nft=Fa(),Que=Oa(),uN=Pr(),Yb=ho(),aft=y_().readPaths,oft=cP(),hP=aN(),ece=s_().clearOutlineControllers,lN=ka(),dP=So(),sft=vl().arrayEditor,Zue=yv(),Yue=ef(),Kue=Eg(),Kb=EM(),Ep=b_(),cN=Ep.getPathString;ice.exports={draw:fN,drawOne:tce,eraseActiveShape:hft,drawLabel:hP};function fN(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;i{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=i(a);o&&Yue.hover(e,o,r.id)}}),n.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=i(a);o&&Yue.click(e,o,r.id)}})}function rce(e,t,r){let n=r.xref,i=r.yref;if(Array.isArray(n)||Array.isArray(i)){let a="clip"+t._fullLayout._uid+"shape"+r._index,o=uft(t,n,i);uN.ensureSingleById(t._fullLayout._clips,"clipPath",a,function(s){s.append("rect")}).select("rect").attr(o),dP.setClipUrl(e,a,t)}else{let a=(n+i).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");dP.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}}function uft(e,t,r){let n=e._fullLayout._size;function i(s,l){let u=(Array.isArray(s)?s:[s]).map(h=>Yb.getFromId(e,h)).filter(Boolean);if(!u.length)return l?[n.t,n.t+n.h]:[n.l,n.l+n.w];let c=u.map(function(h){return h._offset}),f=u.map(function(h){return h._offset+h._length});return[Math.min(...c),Math.max(...f)]}let a=i(t,!1),o=i(r,!0);return{x:a[0],y:o[0],width:a[1]-a[0],height:o[1]-o[0]}}function cft(e,t,r,n,i,a){var o=10,s=10,l=r.xsizemode==="pixel",u=r.ysizemode==="pixel",c=r.type==="line",f=r.type==="path",h=a.modifyItem,d,v,m,b,p,k,M,T,L,x,C,S,g,P,E,z=nft.select(t.node().parentNode),q=Yb.getFromId(e,r.xref),V=Yb.getRefType(r.xref),G=Yb.getFromId(e,r.yref),Z=Yb.getRefType(r.yref),j=r.x0shift,N=r.x1shift,H=r.y0shift,re=r.y1shift,ae=function(at,ct){var ar=Ep.getDataToPixel(e,q,ct,!1,V);return ar(at)},_e=function(at,ct){var ar=Ep.getDataToPixel(e,G,ct,!0,Z);return ar(at)},Ee=Ep.getPixelToData(e,q,!1,V),Ce=Ep.getPixelToData(e,G,!0,Z),ge=ke(),ie={element:ge.node(),gd:e,prepFn:Le,doneFn:me,clickFn:Pe},Se;Zue.init(ie),ge.node().onmousemove=Be;function ke(){return c?be():t}function be(){var at=10,ct=Math.max(r.line.width,at),ar=i.append("g").attr("data-index",n).attr("drag-helper",!0);ar.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":ct,"stroke-opacity":"0"});var Vt={"fill-opacity":"0"},rr=Math.max(ct/2,at);return ar.append("circle").attr({"data-line-point":"start-point",cx:l?ae(r.xanchor)+r.x0:ae(r.x0,j),cy:u?_e(r.yanchor)-r.y0:_e(r.y0,H),r:rr}).style(Vt).classed("cursor-grab",!0),ar.append("circle").attr({"data-line-point":"end-point",cx:l?ae(r.xanchor)+r.x1:ae(r.x1,N),cy:u?_e(r.yanchor)-r.y1:_e(r.y1,re),r:rr}).style(Vt).classed("cursor-grab",!0),ar}function Be(at){if(fP(e)){Se=null;return}if(c)at.target.tagName==="path"?Se="move":Se=at.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ct=ie.element.getBoundingClientRect(),ar=ct.right-ct.left,Vt=ct.bottom-ct.top,rr=at.clientX-ct.left,tt=at.clientY-ct.top,je=!f&&ar>o&&Vt>s&&!at.shiftKey?Zue.getCursor(rr/ar,1-tt/Vt):"move";Kue(t,je),Se=je.split("-")[0]}}function Le(at){fP(e)||(l&&(p=ae(r.xanchor)),u&&(k=_e(r.yanchor)),r.type==="path"?E=r.path:(d=l?r.x0:ae(r.x0),v=u?r.y0:_e(r.y0),m=l?r.x1:ae(r.x1),b=u?r.y1:_e(r.y1)),db?(M=v,C="y0",T=b,S="y1"):(M=b,C="y1",T=v,S="y0"),Be(at),lt(i,r),Ht(t,r,e),ie.moveFn=Se==="move"?ce:He,ie.altKey=at.altKey)}function me(){fP(e)||(Kue(t),mt(i),rce(t,e,r),Que.call("_guiRelayout",e,a.getUpdateObj()))}function Pe(){fP(e)||mt(i)}function ce(at,ct){if(r.type==="path"){var ar=function(tt){return tt},Vt=ar,rr=ar;l?h("xanchor",r.xanchor=Ee(p+at)):(Vt=function(je){return Ee(ae(je)+at)},q&&q.type==="date"&&(Vt=Ep.encodeDate(Vt))),u?h("yanchor",r.yanchor=Ce(k+ct)):(rr=function(je){return Ce(_e(je)+ct)},G&&G.type==="date"&&(rr=Ep.encodeDate(rr))),h("path",r.path=Jue(E,Vt,rr))}else l?h("xanchor",r.xanchor=Ee(p+at)):(h("x0",r.x0=Ee(d+at)),h("x1",r.x1=Ee(m+at))),u?h("yanchor",r.yanchor=Ce(k+ct)):(h("y0",r.y0=Ce(v+ct)),h("y1",r.y1=Ce(b+ct)));t.attr("d",cN(e,r)),lt(i,r),hP(e,n,r,z)}function He(at,ct){if(f){var ar=function(Ar){return Ar},Vt=ar,rr=ar;l?h("xanchor",r.xanchor=Ee(p+at)):(Vt=function(ei){return Ee(ae(ei)+at)},q&&q.type==="date"&&(Vt=Ep.encodeDate(Vt))),u?h("yanchor",r.yanchor=Ce(k+ct)):(rr=function(ei){return Ce(_e(ei)+ct)},G&&G.type==="date"&&(rr=Ep.encodeDate(rr))),h("path",r.path=Jue(E,Vt,rr))}else if(c){if(Se==="resize-over-start-point"){var tt=d+at,je=u?v-ct:v+ct;h("x0",r.x0=l?tt:Ee(tt)),h("y0",r.y0=u?je:Ce(je))}else if(Se==="resize-over-end-point"){var Ue=m+at,Ae=u?b-ct:b+ct;h("x1",r.x1=l?Ue:Ee(Ue)),h("y1",r.y1=u?Ae:Ce(Ae))}}else{var rt=function(Ar){return Se.indexOf(Ar)!==-1},St=rt("n"),Tt=rt("s"),dt=rt("w"),Et=rt("e"),pt=St?M+ct:M,jt=Tt?T+ct:T,or=dt?L+at:L,mr=Et?x+at:x;u&&(St&&(pt=M-ct),Tt&&(jt=T-ct)),(!u&&jt-pt>s||u&&pt-jt>s)&&(h(C,r[C]=u?pt:Ce(pt)),h(S,r[S]=u?jt:Ce(jt))),mr-or>o&&(h(g,r[g]=l?or:Ee(or)),h(P,r[P]=l?mr:Ee(mr)))}t.attr("d",cN(e,r)),lt(i,r),hP(e,n,r,z)}function lt(at,ct){(l||u)&&ar();function ar(){var Vt=ct.type!=="path",rr=at.selectAll(".visual-cue").data([0]),tt=1;rr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":tt}).classed("visual-cue",!0);var je=ae(l?ct.xanchor:uN.midRange(Vt?[ct.x0,ct.x1]:Ep.extractPathCoords(ct.path,Kb.paramIsX))),Ue=_e(u?ct.yanchor:uN.midRange(Vt?[ct.y0,ct.y1]:Ep.extractPathCoords(ct.path,Kb.paramIsY)));if(je=Ep.roundPositionForSharpStrokeRendering(je,tt),Ue=Ep.roundPositionForSharpStrokeRendering(Ue,tt),l&&u){var Ae="M"+(je-1-tt)+","+(Ue-1-tt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";rr.attr("d",Ae)}else if(l){var rt="M"+(je-1-tt)+","+(Ue-9-tt)+"v18 h2 v-18 Z";rr.attr("d",rt)}else{var St="M"+(je-9-tt)+","+(Ue-1-tt)+"h18 v2 h-18 Z";rr.attr("d",St)}}}function mt(at){at.selectAll(".visual-cue").remove()}function Ht(at,ct,ar){var Vt=ct.xref,rr=ct.yref,tt=Yb.getFromId(ar,Vt),je=Yb.getFromId(ar,rr),Ue="";Vt!=="paper"&&!tt.autorange&&(Ue+=Vt),rr!=="paper"&&!je.autorange&&(Ue+=rr),dP.setClipUrl(at,Ue?"clip"+ar._fullLayout._uid+Ue:null,ar)}}function Jue(e,t,r){return e.replace(Kb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Kb.paramIsX[a],s=Kb.paramIsY[a],l=Kb.numParams[a],u=n.slice(1).replace(Kb.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function fft(e,t){if(vP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){$ue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=$ue,fN(e)}}}function $ue(e){if(vP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(ece(e),delete e._fullLayout._activeShapeIndex,fN(e))}}function hft(e){if(vP(e)){ece(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var nce=Fa(),gP=Pr()._;ace.exports=function(t,r,n){var i=nce.select(t._fullLayout._paperdiv.node());i.selectAll(".plotly-cloud-dialog").remove();var a=i.append("div").classed("plotly-cloud-dialog",!0),o=a.append("div").classed("plotly-cloud-dialog-box",!0);o.append("div").classed("plotly-cloud-dialog-title",!0).text(gP(t,"Share with Plotly Cloud")),o.append("div").classed("plotly-cloud-dialog-message",!0).text(gP(t,"This chart and its data will be sent to")+" "+r+".");var s=o.append("div").classed("plotly-cloud-dialog-buttons",!0);function l(){a.remove(),document.removeEventListener("keydown",u)}function u(c){(c.key==="Escape"||c.keyCode===27)&&l()}document.addEventListener("keydown",u),a.on("click",function(){nce.event.target===a.node()&&l()}),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(gP(t,"Cancel")).on("click",l),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(gP(t,"Share")).on("click",function(){l(),n()})}});var vN=ye((Tor,vce)=>{"use strict";var S0=Oa(),dft=Mc(),sce=df(),Gl=eP(),vft=pP().eraseActiveShape,pft=oce(),mP=Pr(),sl=mP._,_l=vce.exports={};_l.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?sl(e,"Download plot as a PNG"):sl(e,"Download plot")},icon:Gl.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};mP.notifier(sl(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){mP.notifier(sl(e,"Snapshot succeeded")+" - "+n,"long",e)}).catch(function(){mP.notifier(sl(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};_l.sendChartToCloud={name:"sendChartToCloud",title:function(e){return sl(e,"Share with Plotly Cloud")},icon:Gl.cloudupload,click:function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!t){console.error("No destination URL provided (plotlyServerURL is not set)");return}try{new URL(t)}catch(r){console.error("Invalid plotlyServerURL: "+t);return}pft(e,t,function(){dft.sendDataToCloud(e,t)})}};_l.sendDataToCloud=_l.sendChartToCloud;_l.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return sl(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Gl.zoombox,click:Bv};_l.pan2d={name:"pan2d",_cat:"pan",title:function(e){return sl(e,"Pan")},attr:"dragmode",val:"pan",icon:Gl.pan,click:Bv};_l.select2d={name:"select2d",_cat:"select",title:function(e){return sl(e,"Box Select")},attr:"dragmode",val:"select",icon:Gl.selectbox,click:Bv};_l.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return sl(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Gl.lasso,click:Bv};_l.drawclosedpath={name:"drawclosedpath",title:function(e){return sl(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Gl.drawclosedpath,click:Bv};_l.drawopenpath={name:"drawopenpath",title:function(e){return sl(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Gl.drawopenpath,click:Bv};_l.drawline={name:"drawline",title:function(e){return sl(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Gl.drawline,click:Bv};_l.drawrect={name:"drawrect",title:function(e){return sl(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Gl.drawrect,click:Bv};_l.drawcircle={name:"drawcircle",title:function(e){return sl(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Gl.drawcircle,click:Bv};_l.eraseshape={name:"eraseshape",title:function(e){return sl(e,"Erase active shape")},icon:Gl.eraseshape,click:vft};_l.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return sl(e,"Zoom in")},attr:"zoom",val:"in",icon:Gl.zoom_plus,click:Bv};_l.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return sl(e,"Zoom out")},attr:"zoom",val:"out",icon:Gl.zoom_minus,click:Bv};_l.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return sl(e,"Autoscale")},attr:"zoom",val:"auto",icon:Gl.autoscale,click:Bv};_l.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return sl(e,"Reset axes")},attr:"zoom",val:"reset",icon:Gl.home,click:Bv};_l.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return sl(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Gl.tooltip_basic,gravity:"ne",click:Bv};_l.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return sl(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Gl.tooltip_compare,gravity:"ne",click:Bv};function Bv(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=sce.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(n==="zoom"){var f=i==="in"?.5:2,h=(1+f)/2,d=(1-f)/2,v,m;for(c=0;c{"use strict";var pce=vN(),yft=Object.keys(pce),gce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],mce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(gce),sT=[],_ft=function(e){if(mce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();sT.indexOf(t)===-1&&sT.push(t),sT.indexOf(r)===-1&&sT.push(r)}};yft.forEach(function(e){_ft(pce[e])});sT.sort();yce.exports={DRAW_MODES:gce,backButtons:mce,foreButtons:sT}});var gN=ye((Mor,_ce)=>{"use strict";var Sor=pN();_ce.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var bce=ye((Eor,xce)=>{"use strict";var xft=Pr(),CM=ka(),bft=vl(),wft=gN();xce.exports=function(t,r){var n=t.modebar||{},i=bft.newContainer(r,"modebar");function a(s,l){return xft.coerce(n,i,wft,s,l)}a("orientation"),a("bgcolor",CM.addOpacity(r.paper_bgcolor,.5));var o=CM.contrast(CM.rgb(r.modebar.bgcolor));a("color",CM.addOpacity(o,.3)),a("activecolor",CM.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Sce=ye((kor,Ace)=>{"use strict";var mN=Fa(),Tft=Eo(),_P=Pr(),wce=eP(),Aft=OS().version,Sft=new DOMParser;function Tce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Cm=Tce.prototype;Cm.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),_P.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Cm.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Cm.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Cm.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&mN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||wce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Cm.createIcon=function(e){var t=Tft(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=Sft.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Cm.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=mN.select(n),l=function(f,h){var d=t.modebar,v=f.querySelector(".icon path");v&&(h||f.matches(":hover")?v.style.fill=d.activecolor:v.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(n,u)}}else{var c=a===null?a:_P.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};Cm.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var kft=df(),Mce=Ru(),yN=Oa(),Cft=ip().isUnifiedHover,Lft=Sce(),xP=vN(),Pft=pN().DRAW_MODES,Ift=Pr().extendDeep;Ece.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Oft(a):!n.displayModeBar&&n.watermark?o=[]:o=Rft(t),i?i.update(t,o):r._modeBar=Lft(t,o)};function Rft(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,H){if(typeof H=="string"){if(H.toLowerCase()===N.toLowerCase())return!0}else{var re=H.name,ae=H._cat||H.name;if(re===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var H=0;H1?(P=["toggleHover"],E=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],E=["resetGeo"]):c?(P=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],E=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],E=["resetViewMap"]):h?P=["hoverClosestPie"]:M?(P=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(zft(r)||L)&&(P=[]),u&&!T&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!T||v?z=["zoom2d","pan2d"]:m||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),Fft(r)&&z.push("select2d","lasso2d");var q=[],V=function(N){q.indexOf(N)===-1&&P.indexOf(N)!==-1&&q.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z{"use strict";Cce.exports={moduleType:"component",name:"modebar",layoutAttributes:gN(),supplyLayoutDefaults:bce(),manage:kce()}});var xN=ye((Por,Lce)=>{"use strict";var Bft=Dh().FROM_BL;Lce.exports=function(t,r,n){n===void 0&&(n=Bft[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var $b=ye(LM=>{"use strict";var Jb=Pr(),bN=Mg(),Lg=df().id2name,Nft=Rd(),Pce=xN(),Uft=xm(),Vft=fs().ALMOST_EQUAL,Gft=Dh().FROM_BL;LM.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,d,v;for(s=0;sa?r.slice(a):n.slice(i))+o}function jft(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oVft*v&&!k)){for(a=0;az&&reP&&(P=re);var _e=(P-g)/(2*E);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=x{"use strict";var wP=Fa(),Nv=Oa(),Jp=Mc(),M0=Pr(),AN=Zl(),SN=SM(),PM=ka(),lT=So(),Fce=qb(),Nce=_N(),IM=ho(),zy=Dh(),Uce=$b(),Wft=Uce.enforce,Xft=Uce.clean,zce=Mg().doAutoRange,Vce="start",Zft="middle",Gce="end",Yft=Rh().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,Jft],e)};function Kft(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Jft(e){var t=e._fullLayout,r=t._size,n=r.p,i=IM.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(lT.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),Nce.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Le,me,Pe){var ce=Le._lw/2;if(Le._id.charAt(0)==="x"){if(me){if(Pe==="top")return me._offset-n-ce}else return r.t+r.h*(1-(Le.position||0))+ce%1;return me._offset+me._length+n+ce}if(me){if(Pe==="right")return me._offset+me._length+n+ce}else return r.l+r.w*(Le.position||0)+ce%1;return me._offset-n-ce}for(a=0;a0){tht(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Bce(t.yanchor)}).call(AN.positionText,o,a);var c=(t.text.match(AN.BR_TAG_ALL)||[]).length;if(c){var f=zy.LINE_SPACING*c+zy.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",b)})}var h=wP.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,m=v+Fce.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:m,"text-anchor":n,dy:Bce(t.yanchor)}).call(AN.positionText,o,m)}}}};function $ft(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=Qft(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function tht(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&$ft(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[i]=l),Jp.allowAutoMargin(e,i),Jp.autoMargin(e,i,s)}function rht(e,t){var r=e.title,n=e._size,i=0;return t===Vce?i=r.pad.l:t===Gce&&(i=-r.pad.r),r.xref==="paper"?n.l+n.w*r.x+i:e.width*r.x+i}function iht(e,t){var r=e.title,n=e._size,i=0;return t==="0em"||!t?i=-r.pad.b:t===zy.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto"?n.t/2:r.yref==="paper"?n.t+n.h-n.h*r.y+i:e.height-e.height*r.y+i}function Bce(e){return e==="top"?zy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":zy.MID_SHIFT+"em"}function nht(e){var t=e.title,r=Zft;return M0.isRightAnchor(t)?r=Gce:M0.isLeftAnchor(t)&&(r=Vce),r}function aht(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=zy.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=zy.MID_SHIFT+"em"),r}pd.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var oht=y_().readPaths,sht=cP(),Hce=s_().clearOutlineControllers,MN=ka(),jce=So(),lht=vl().arrayEditor,Wce=b_(),uht=Wce.getPathString;Zce.exports={draw:TP,drawOne:Xce,activateLastSelection:hht};function TP(e){var t=e._fullLayout;Hce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var p=o.append("path").attr(l).style("opacity",b?.1:u).call(MN.stroke,f).call(MN.fill,c).call(jce.dashLine,b?"solid":d,b?4+h:h);if(cht(p,e,n),v){var k=lht(e.layout,"selections",n);p.style({cursor:"move"});var M={element:p.node(),plotinfo:i,gd:e,editHelpers:k,isActiveSelection:!0},T=oht(s,e);sht(T,p,M)}else p.style("pointer-events",b?"all":"none");m[b]=p}var L=m[0],x=m[1];x.node().addEventListener("click",function(){return fht(e,L)})}}function cht(e,t,r){var n=r.xref+r.yref;jce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function fht(e,t){if(AP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){EN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=EN,TP(e)}}}function hht(e){if(AP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=EN,TP(e)}}function EN(e){if(AP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Hce(e),delete e._fullLayout._activeSelectionIndex,TP(e))}}});var Kce=ye((For,Yce)=>{function dht(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}Yce.exports=dht});var $ce=ye((zor,Jce)=>{function vht(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],l=i[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],l=i[1]-n[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-i>e&&(l=!l),o=c,s=f}return l}};return t}Jce.exports=vht});var efe=ye((qor,Qce)=>{var pht={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Qce.exports=pht});var rfe=ye((Oor,tfe)=>{var DM=efe();function ght(e,t,r){function n(v,m){return{id:r?r.segmentId():-1,start:v,end:m,myFill:{above:null,below:null},otherFill:null}}function i(v,m,b){return{id:r?r.segmentId():-1,start:v,end:m,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=DM.create();function o(v,m,b,p,k,M){var T=t.pointsCompare(m,k);return T!==0?T:t.pointsSame(b,M)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?k:M,p?M:k)?1:-1}function s(v,m){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,m,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,m){var b=DM.node({isStart:!0,pt:v.start,seg:v,primary:m,other:null,status:null});return s(b,v.end),b}function u(v,m,b){var p=DM.node({isStart:!1,pt:m.end,seg:m,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,m){var b=l(v,m);return u(b,v,m),b}function f(v,m){r&&r.segmentChop(v.seg,m),v.other.remove(),v.seg.end=m,v.other.pt=m,s(v.other,v.pt)}function h(v,m){var b=i(m,v.seg.end,v.seg);return f(v,m),c(b,v.primary)}function d(v,m){var b=DM.create();function p(G,Z){var j=G.seg.start,N=G.seg.end,H=Z.seg.start,re=Z.seg.end;return t.pointsCollinear(j,H,re)?t.pointsCollinear(N,H,re)||t.pointAboveOrOnLine(N,H,re)?1:-1:t.pointAboveOrOnLine(j,H,re)?1:-1}function k(G){return b.findTransition(function(Z){var j=p(G,Z.ev);return j>0})}function M(G,Z){var j=G.seg,N=Z.seg,H=j.start,re=j.end,ae=N.start,_e=N.end;r&&r.checkIntersection(j,N);var Ee=t.linesIntersect(H,re,ae,_e);if(Ee===!1){if(!t.pointsCollinear(H,re,ae)||t.pointsSame(H,_e)||t.pointsSame(re,ae))return!1;var Ce=t.pointsSame(H,ae),ge=t.pointsSame(re,_e);if(Ce&&ge)return Z;var ie=!Ce&&t.pointBetween(H,ae,_e),Se=!ge&&t.pointBetween(re,ae,_e);if(Ce)return Se?h(Z,re):h(G,_e),Z;ie&&(ge||(Se?h(Z,re):h(G,_e)),h(Z,H))}else Ee.alongA===0&&(Ee.alongB===-1?h(G,ae):Ee.alongB===0?h(G,Ee.pt):Ee.alongB===1&&h(G,_e)),Ee.alongB===0&&(Ee.alongA===-1?h(Z,H):Ee.alongA===0?h(Z,Ee.pt):Ee.alongA===1&&h(Z,re));return!1}for(var T=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(C){var Z=M(L,C);if(Z)return Z}return S?M(L,S):!1};var V=G;r&&r.segmentNew(L.seg,L.primary);var x=k(L),C=x.before?x.before.ev:null,S=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,S?S.seg:!1);var g=G();if(g){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(g.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,S?L.seg.myFill.below=S.seg.myFill.above:L.seg.myFill.below=v,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var E;S?L.primary===S.primary?E=S.seg.otherFill.above:E=S.seg.myFill.above:E=L.primary?m:v,L.seg.otherFill={above:E,below:E}}r&&r.status(L.seg,C?C.seg:!1,S?S.seg:!1),L.other.status=x.insert(DM.node({ev:L}))}else{var z=L.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(z.prev)&&b.exists(z.next)&&M(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var q=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=q}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(v){for(var m,b=v[v.length-1],p=0;p{function mht(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(V,G,Z){return c.index=V,c.matches_head=G,c.matches_pt1=Z,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function FM(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var yht={union:function(e,t){return FM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return FM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return FM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return FM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return FM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};afe.exports=yht});var lfe=ye((Uor,sfe)=>{var _ht={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l{var xht=Kce(),bht=$ce(),ufe=rfe(),wht=nfe(),zM=ofe(),cfe=lfe(),E0=!1,qM=bht(),kp;kp={buildLog:function(e){return e===!0?E0=xht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return qM.epsilon(e)},segments:function(e){var t=ufe(!0,qM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=ufe(!1,qM,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:zM.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:zM.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:zM.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:zM.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:zM.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:wht(e.segments,qM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return cfe.toPolygon(kp,e)},polygonToGeoJSON:function(e){return cfe.fromPolygon(kp,qM,e)},union:function(e,t){return OM(e,t,kp.selectUnion)},intersect:function(e,t){return OM(e,t,kp.selectIntersect)},difference:function(e,t){return OM(e,t,kp.selectDifference)},differenceRev:function(e,t){return OM(e,t,kp.selectDifferenceRev)},xor:function(e,t){return OM(e,t,kp.selectXor)}};function OM(e,t,r){var n=kp.segments(e),i=kp.segments(t),a=kp.combine(n,i),o=r(a);return kp.polygon(o)}typeof window=="object"&&(window.PolyBool=kp);ffe.exports=kp});var vfe=ye((Gor,dfe)=>{dfe.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var l=i-n,u=0,c=l-1;uo!=v>o&&a<(d-f)*(o-h)/(v-h)+f;m&&(s=!s)}return s}});var BM=ye((Hor,pfe)=>{"use strict";var CN=R6().dot,SP=fs().BADNUM,MP=pfe.exports={};MP.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||p===SP||po||m&&u(v))}function f(v,m){var b=v[0],p=v[1];if(b===SP||bi||p===SP||po)return!1;var k=r.length,M=r[0][0],T=r[0][1],L=0,x,C,S,g,P;for(x=1;xMath.max(C,M)||p>Math.max(S,T)))if(ps||Math.abs(CN(f,u))>i)return!0;return!1};MP.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(l){t.push(l);var u=n.length,c=i;n.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var mfe=ye((jor,gfe)=>{"use strict";gfe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Bfe=ye((Wor,Ofe)=>{"use strict";var yfe=hfe(),Tht=vfe(),VM=Oa(),Aht=So().dashStyle,NM=ka(),Sht=ef(),Mht=ip().makeEventData,XM=Cg(),Eht=XM.freeMode,kht=XM.rectMode,GM=XM.drawMode,RN=XM.openMode,DN=XM.selectMode,_fe=b_(),xfe=EM(),Sfe=cP(),Mfe=s_().clearOutline,Efe=y_(),LN=Efe.handleEllipse,Cht=Efe.readPaths,Lht=sP().newShapes,Pht=nN(),Iht=kN().activateLastSelection,kP=Pr(),Rht=kP.sorterAsc,kfe=BM(),UM=W6(),k0=df().getFromId,Dht=SM(),Fht=RM().redrawReglTraces,CP=mfe(),Lm=CP.MINSELECT,zht=kfe.filter,FN=kfe.tester,zN=iP(),bfe=zN.p2r,qht=zN.axValue,Oht=zN.getTransform;function qN(e){return e.subplot!==void 0}function Bht(e,t,r,n,i){var a=!qN(n),o=Eht(i),s=kht(i),l=RN(i),u=GM(i),c=DN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,m=v._fullLayout,b=c&&m.newselection.mode==="immediate"&&a,p=m._zoomlayer,k=n.element.getBoundingClientRect(),M=n.plotinfo,T=Oht(M),L=t-k.left,x=r-k.top;m._calcInverseTransform(v);var C=kP.apply3DTransform(m._invTransform)(L,x);L=C[0],x=C[1];var S=m._invScaleX,g=m._invScaleY,P=L,E=x,z="M"+L+","+x,q=n.xaxes[0],V=n.yaxes[0],G=q._length,Z=V._length,j=e.altKey&&!(GM(i)&&l),N,H,re,ae,_e,Ee,Ce;Lfe(e,v,n),o&&(N=zht([[L,x]],CP.BENDPX));var ge=p.selectAll("path.select-outline-"+M.id).data([1]),ie=u?m.newshape:m.newselection;u&&(n.hasText=ie.label.text||ie.label.texttemplate);var Se=u&&!l?ie.fillcolor:"rgba(0,0,0,0)",ke=ie.line.color||(a?NM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");ge.enter().append("path").attr("class","select-outline select-outline-"+M.id).style({opacity:u?ie.opacity/2:1,"stroke-dasharray":Aht(ie.line.dash,ie.line.width),"stroke-width":ie.line.width+"px","shape-rendering":"crispEdges"}).call(NM.stroke,ke).call(NM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",T).attr("d",z+"Z");var be=p.append("path").attr("class","zoombox-corners").style({fill:NM.background,stroke:NM.defaultLine,"stroke-width":1}).attr("transform",T).attr("d","M0,0Z");if(u&&n.hasText){var Be=p.select(".label-temp");Be.empty()&&(Be=p.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Le=m._uid+CP.SELECTID,me=[],Pe=LP(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var He=q._id,lt=V._id;Ffe(v,He,lt,Pe);for(var mt=(v.layout||{}).selections||[],Ht=[],at=!1,ct=0;ct=0){v._fullLayout._deactivateShape(v);return}if(!u){var mt=m.clickmode;UM.done(Le).then(function(){if(UM.clear(Le),He===2){for(ge.remove(),_e=0;_e-1&&Cfe(lt,v,n.xaxes,n.yaxes,n.subplot,n,ge),mt==="event"&&WM(v,void 0);Sht.click(v,lt,M.id)}).catch(kP.error)}},n.doneFn=function(){be.remove(),UM.done(Le).then(function(){UM.clear(Le),!b&&ae&&n.selectionDefs&&(ae.subtract=j,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||u)&&HM(n,b),n.doneFnCompleted&&n.doneFnCompleted(me),c&&WM(v,Ce)}).catch(kP.error)}}function Cfe(e,t,r,n,i,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,d,v,m,b,p,k,M,T,L;if(Hht(s)){Lfe(e,t,a),h=LP(t,r,n,i);var x=jht(s,h),C=x.pointNumbers.length>0;if(C?Wht(h,x):Xht(h)&&(k=Tfe(x))){for(o&&o.remove(),L=0;L=0}function Ght(e){return e._fullLayout._activeSelectionIndex>=0}function HM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Vht(i)&&i._fullLayout._deactivateShape(i),Ght(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=GM(r),l=DN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=Lht(u,e)),c&&VM.call("_guiRelayout",i,{shapes:c});var f;l&&!qN(e)&&(f=Pht(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,VM.call("_guiRelayout",i,{selections:f}).then(function(){t&&Iht(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function wfe(e){return e._id}function LP(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(wfe),o=r.map(wfe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Wht(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function jM(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var He=Afe(e,!0);if(He.length){var lt=He[0].xref,mt=He[0].yref;if(lt&&mt){var Ht=zfe(He),at=qfe([k0(e,lt,"x"),k0(e,mt,"y")]);at(me,Ht)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&WM(e,me),h._reselect=!1}if(!o&&h._deselect){var ct=h._deselect;s=ct.xref,l=ct.yref,Kht(s,l,c)||Ffe(e,s,l,n),ce&&(me.points.length?WM(e,me):NN(e)),h._deselect=!1}return{eventData:me,selectionTesters:r}}function Yht(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Nfe.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var ZM=ye((Zor,Ufe)=>{"use strict";Ufe.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Qb=ye((Kor,Hfe)=>{"use strict";var Vfe=UN(),Gfe=ec(),PP=Rh(),tdt=vl().templatedArray,Yor=ZM();Hfe.exports=tdt("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Gfe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Vfe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Vfe.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",PP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",PP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",PP.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",PP.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Gfe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Pm=ye((Jor,jfe)=>{"use strict";jfe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Pg=ye(($or,Wfe)=>{"use strict";Wfe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var pf=ye((Qor,ehe)=>{"use strict";var Xfe=vf().axisHoverFormat,{hovertemplateAttrs:rdt,texttemplateAttrs:idt,templatefallbackAttrs:Zfe}=Pl(),Yfe=Tu(),ndt=ec(),Kfe=Pd().dash,adt=Pd().pattern,odt=So(),sdt=Pm(),YM=Ao().extendFlat,ldt=Pg();function Jfe(e){return{valType:"any",dflt:0,editType:"calc"}}function $fe(e){return{valType:"any",editType:"calc"}}function Qfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}ehe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Jfe("x"),yperiod:Jfe("y"),xperiod0:$fe("x0"),yperiod0:$fe("y0"),xperiodalignment:Qfe("x"),yperiodalignment:Qfe("y"),xhoverformat:Xfe("x"),yhoverformat:Xfe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:idt(),texttemplatefallback:Zfe({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:rdt({},{keys:sdt.eventDataKeys}),hovertemplatefallback:Zfe(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:YM({},Kfe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:ldt(!0),fillgradient:YM({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:adt,marker:YM({symbol:{valType:"enumerated",values:odt.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:YM({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:YM({},Kfe,{arrayOk:!0}),editType:"calc"},Yfe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Yfe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:ndt({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var VN=ye((tsr,ihe)=>{"use strict";var the=Qb(),rhe=pf().line,udt=Pd().dash,IP=Ao().extendFlat,cdt=mc().overrideAll,fdt=vl().templatedArray,esr=ZM();ihe.exports=cdt(fdt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:IP({},the.xref,{}),yref:IP({},the.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:rhe.color,width:IP({},rhe.width,{min:1,dflt:1}),dash:IP({},udt,{dflt:"dot"})}}),"arraydraw","from-root")});var she=ye((rsr,ohe)=>{"use strict";var nhe=Pr(),RP=ho(),hdt=Kd(),ddt=VN(),ahe=b_();ohe.exports=function(t,r){hdt(t,r,{name:"selections",handleItemDefaults:vdt});for(var n=r.selections,i=0;i{"use strict";lhe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var KM=ye((nsr,hhe)=>{"use strict";var pdt=Oa(),che=Pr(),fhe=df();hhe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=pdt.subplotsRegistry.cartesian,s=o.idRegex,l=i._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var dhe=kN(),JM=Bfe();vhe.exports={moduleType:"component",name:"selections",layoutAttributes:VN(),supplyLayoutDefaults:she(),supplyDrawNewSelectionDefaults:uhe(),includeBasePlot:KM()("selections"),draw:dhe.draw,drawOne:dhe.drawOne,reselect:JM.reselect,prepSelect:JM.prepSelect,clearOutline:JM.clearOutline,clearSelectionsCache:JM.clearSelectionsCache,selectOnClick:JM.selectOnClick}});var YN=ye((osr,Dhe)=>{"use strict";var XN=Fa(),C0=Pr(),phe=C0.numberFormat,gdt=fd(),mdt=GL(),DP=Oa(),Ahe=C0.strTranslate,ydt=Zl(),ghe=ka(),T_=So(),_dt=ef(),mhe=ho(),xdt=Eg(),bdt=yv(),She=Cg(),FP=She.selectingOrDrawing,wdt=She.freeMode,Tdt=Dh().FROM_TL,Adt=SM(),Sdt=RM().redrawReglTraces,Mdt=Mc(),HN=df().getFromId,Edt=qf().prepSelect,kdt=qf().clearOutline,Cdt=qf().selectOnClick,GN=xN(),ZN=Rh(),yhe=ZN.MINDRAG,ap=ZN.MINZOOM,_he=!0;function Ldt(e,t,r,n,i,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,d,v,m,b,p,k,M,T,L,x,C,S,g,P,E,z,q,V,G,Z,j;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,M=f._length,T=h._length,p=f._offset,k=h._offset,d={},d[f._id]=f,v={},v[h._id]=h,o&&s)for(var Et=t.overlays,pt=0;pt=0){jt._fullLayout._deactivateShape(jt);return}var or=jt._fullLayout.clickmode;if(WN(jt),Et===2&&!c&&Ue(),u)or.indexOf("select")>-1&&Cdt(pt,jt,m,b,t.id,ae),or.indexOf("event")>-1&&_dt.click(jt,pt,t.id);else if(Et===1&&c){var mr=o?h:f,Ar=o==="s"||s==="w"?0:1,ei=mr._name+".range["+Ar+"]",qr=Pdt(mr,Ar),jr="left",gt="middle";if(mr.fixedrange)return;o?(gt=o==="n"?"top":"bottom",mr.side==="right"&&(jr="right")):s==="e"&&(jr="right"),jt._context.showAxisRangeEntryBoxes&&XN.select(re).call(ydt.makeEditable,{gd:jt,immediate:!0,background:jt._fullLayout.paper_bgcolor,text:String(qr),fill:mr.tickfont?mr.tickfont.color:"#444",horizontalAlign:jr,verticalAlign:gt}).on("edit",function(Ge){var Je=mr.d2r(Ge);Je!==void 0&&DP.call("_guiRelayout",jt,ei,Je)})}}bdt.init(ae);var Ce,ge,ie,Se,ke,be,Be,Le,me,Pe;function ce(Et,pt,jt){var or=re.getBoundingClientRect();Ce=pt-or.left,ge=jt-or.top,e._fullLayout._calcInverseTransform(e);var mr=C0.apply3DTransform(e._fullLayout._invTransform)(Ce,ge);Ce=mr[0],ge=mr[1],ie={l:Ce,r:Ce,w:0,t:ge,b:ge,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:gdt(e._fullLayout.plot_bgcolor).getLuminance(),ke="M0,0H"+M+"V"+T+"H0V0",be=!1,Be="xy",Pe=!1,Le=khe(l,Se,p,k,ke),me=Che(l,p,k)}function He(Et,pt){if(e._transitioningWithDuration)return!1;var jt=Math.max(0,Math.min(M,Z*Et+Ce)),or=Math.max(0,Math.min(T,j*pt+ge)),mr=Math.abs(jt-Ce),Ar=Math.abs(or-ge);ie.l=Math.min(Ce,jt),ie.r=Math.max(Ce,jt),ie.t=Math.min(ge,or),ie.b=Math.max(ge,or);function ei(){Be="",ie.r=ie.l,ie.t=ie.b,me.attr("d","M0,0Z")}if(L.isSubplotConstrained)mr>ap||Ar>ap?(Be="xy",mr/M>Ar/T?(Ar=mr*T/M,ge>or?ie.t=ge-Ar:ie.b=ge+Ar):(mr=Ar*M/T,Ce>jt?ie.l=Ce-mr:ie.r=Ce+mr),me.attr("d",zP(ie))):ei();else if(x.isSubplotConstrained)if(mr>ap||Ar>ap){Be="xy";var qr=Math.min(ie.l/M,(T-ie.b)/T),jr=Math.max(ie.r/M,(T-ie.t)/T);ie.l=qr*M,ie.r=jr*M,ie.b=(1-qr)*T,ie.t=(1-jr)*T,me.attr("d",zP(ie))}else ei();else!S||Ar0){var Ge;if(x.isSubplotConstrained||!C&&S.length===1){for(Ge=0;Ge1&&(ei.maxallowed!==void 0&&P===(ei.range[0]1&&(qr.maxallowed!==void 0&&E===(qr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Rdt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function khe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Ahe(r,n)).attr("d",i+"Z")}function Che(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:ghe.background,stroke:ghe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Ahe(t,r)).attr("d","M0,0Z")}function Lhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),Phe(e,t,i,a)}function Phe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function WN(e){XN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Ihe(e){_he&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long",e),_he=!1)}function Ddt(e,t){return"M"+(e.l-.5)+","+(t-ap-.5)+"h-3v"+(2*ap+1)+"h3ZM"+(e.r+.5)+","+(t-ap-.5)+"h3v"+(2*ap+1)+"h-3Z"}function Fdt(e,t){return"M"+(t-ap-.5)+","+(e.t-.5)+"v-3h"+(2*ap+1)+"v3ZM"+(t-ap-.5)+","+(e.b+.5)+"v3h"+(2*ap+1)+"v-3Z"}function zP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ap)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function whe(e,t,r,n,i){for(var a=!1,o={},s={},l,u,c,f,h=(i||{}).xaHash,d=(i||{}).yaHash,v=0;v{"use strict";var zdt=Fa(),qP=ef(),qdt=yv(),Odt=Eg(),Ig=YN().makeDragBox,gd=Rh().DRAGGERSIZE;OP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){zdt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Ig(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&qP.hover(t,h,a)},qP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,qdt.unhover(t,h))},t._context.showAxisDragHandles&&(Ig(t,o,s._offset-gd,l._offset-gd,gd,gd,"n","w"),Ig(t,o,s._offset+s._length,l._offset-gd,gd,gd,"n","e"),Ig(t,o,s._offset-gd,l._offset+l._length,gd,gd,"s","w"),Ig(t,o,s._offset+s._length,l._offset+l._length,gd,gd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=gd),Ig(t,o,s._offset+s._length*.1,c,s._length*.8,gd,"","ew"),Ig(t,o,s._offset,c,s._length*.1,gd,"","w"),Ig(t,o,s._offset+s._length*.9,c,s._length*.1,gd,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=gd),Ig(t,o,f,l._offset+l._length*.1,gd,l._length*.8,"ns",""),Ig(t,o,f,l._offset+l._length*.9,gd,l._length*.1,"s",""),Ig(t,o,f,l._offset,gd,l._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,qP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,qP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},OP.updateFx(t)}};OP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Odt(t._draggers,r)}});var qhe=ye((lsr,zhe)=>{"use strict";var Fhe=Oa();zhe.exports=function(t){for(var r=Fhe.layoutArrayContainers,n=Fhe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Bdt=Sy(),JN=I6(),$M=J1(),Ndt=G6().sorterAsc,$N=Oa();QM.containerArrayMatch=qhe();var Udt=QM.isAddVal=function(t){return t==="add"||Bdt(t)},Ohe=QM.isRemoveVal=function(t){return t===null||t==="remove"};QM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=$N.getComponentMethod(o,"supplyLayoutDefaults"),l=$N.getComponentMethod(o,"draw"),u=$N.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===JN||l===JN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&$M.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Ohe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return $M.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(f,h),l(t),!0)}var v=Object.keys(n).map(Number).sort(Ndt),m=r.get(),b=m||[],p=a(h,o).get(),k=[],M=-1,T=b.length,L,x,C,S,g,P,E,z;for(L=0;Lb.length-(E?0:1)){$M.warn("index out of range",o,C);continue}if(P!==void 0)g.length>1&&$M.warn("Insertion & removal are incompatible with edits to the same index.",o,C),Ohe(P)?k.push(C):E?(P==="add"&&(P={}),b.splice(C,0,P),p&&p.splice(C,0,{})):$M.warn("Unrecognized full object edit value",o,C,P),M===-1&&(M=C);else for(x=0;x=0;L--)b.splice(k[L],1),p&&p.splice(k[L],1);if(b.length?m||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==JN){var q;if(M===-1)q=v;else{for(T=Math.max(b.length,T),q=[],L=0;L=M));L++)q.push(C);for(L=M;L{"use strict";var Ghe=Eo(),Hhe=Oa(),Uv=Pr(),e4=Mc(),jhe=df(),Whe=ka(),t4=jhe.cleanId,Vdt=jhe.getFromTrace,QN=Hhe.traceIs,Gdt=["x","y","z"];L0.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Uv.log("Clearing previous rejected promises from queue."),e._promises=[]};L0.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(e4.subplotsRegistry.cartesian||{}).attrRegex,i=(e4.subplotsRegistry.polar||{}).attrRegex,a=(e4.subplotsRegistry.ternary||{}).attrRegex,o=(e4.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Whe.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function uT(e,t,r=!1){var n=e[t],i=t.charAt(0);r&&Array.isArray(n)||n&&n!=="paper"&&(e[t]=t4(n,i,!0))}L0.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}L0.hasParent=function(e,t){for(var r=Vhe(t);r;){if(r in e)return!0;r=Vhe(r)}return!1};L0.clearAxisTypes=function(e,t,r){for(var n=0;n{let r=(...n)=>n.every(i=>Uv.isPlainObject(i))||n.every(i=>Array.isArray(i));if([e,t].every(n=>Array.isArray(n))){if(e.length!==t.length)return!1;for(let n=0;nUv.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let i=e[n],a=t[n];if(i!==a&&!(r(i,a)?eU(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=eU});var JP=ye(xl=>{"use strict";var VP=Fa(),Wdt=Eo(),Xdt=hO(),Sa=Pr(),Ec=Sa.nestedProperty,iU=I3(),op=Cne(),P0=Oa(),YP=F3(),Qo=Mc(),Vv=ho(),Zdt=kB(),Ydt=Rd(),tU=So(),Kdt=ka(),Jdt=KN().initInteractions,$dt=Wp(),Qdt=qf().clearOutline,$he=xb().dfltConfig,NP=Bhe(),gh=Xhe(),Au=RM(),A_=mc(),evt=Rh().AX_NAME_PATTERN,rU=0,Zhe=5;function tvt(e,t,r,n){var i;if(e=Sa.getGraphDiv(e),iU.init(e),Sa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=iU.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Sa.isPlotDiv(e)&&Sa.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return xl.addFrames(e,i)}ede(e,n),r||(r={}),VP.select(e).classed("js-plotly-plot",!0),tU.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(gh.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=gh.cleanLayout(r)),Qo.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(Avt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),tU.initGradients(e),tU.initPatterns(e),l&&Vv.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&Qo.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function tde(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),HP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&HP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function ovt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&c=0&&c0&&typeof S.parts[E]!="string";)E--;var z=S.parts[E],q=S.parts[E-1]+"."+z,V=S.parts.slice(0,E).join("."),G=Ec(e.layout,V).get(),Z=Ec(n,V).get(),j=S.get();if(g!==void 0){p[C]=g,k[C]=z==="reverse"?g:qy(j);var N=YP.getLayoutValObject(n,S.parts);if(N&&N.impliedEdits&&g!==null)for(var H in N.impliedEdits)M(Sa.relativeAttr(C,H),N.impliedEdits[H]);if(["width","height"].indexOf(C)!==-1)if(g){M("autosize",null);var re=C==="height"?"width":"height";M(re,n[re])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")M("width",g?null:n.width),M("height",g?null:n.height);else if(q.match(cde))x(q),Ec(n,V+"._inputRange").set(null);else if(q.match(fde)){x(q),Ec(n,V+"._inputRange").set(null);var ae=Ec(n,V).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else q.match(cvt)&&Ec(n,V+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Ee=Z.type==="log"&&g==="linear";if(_e||Ee){if(!L||!L.range)M(V+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Ce=L.range[0],ge=L.range[1];_e?(Ce<=0&&ge<=0&&M(V+".autorange",!0),Ce<=0?Ce=ge/1e6:ge<=0&&(ge=Ce/1e6),M(V+".range[0]",Math.log(Ce)/Math.LN10),M(V+".range[1]",Math.log(ge)/Math.LN10)):(M(V+".range[0]",Math.pow(10,Ce)),M(V+".range[1]",Math.pow(10,ge)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete n[S.parts[0]]._subplot.viewInitial["radialaxis.range"],P0.getComponentMethod("annotations","convertCoords")(e,Z,g,M),P0.getComponentMethod("images","convertCoords")(e,Z,g,M)}else M(V+".autorange",!0),M(V+".range",null);Ec(n,V+"._inputRange").set(null)}else if(z.match(evt)){var ie=Ec(n,C).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),P0.getComponentMethod("annotations","convertCoords")(e,ie,Se,M),P0.getComponentMethod("images","convertCoords")(e,ie,Se,M)}var ke=NP.containerArrayMatch(C);if(ke){c=ke.array,f=ke.index;var be=ke.property,Be=N||{editType:"calc"};f!==""&&be===""&&(NP.isAddVal(g)?k[C]=null:NP.isRemoveVal(g)?k[C]=(Ec(r,c).get()||[])[f]:Sa.warn("unrecognized full object value",t)),A_.update(b,Be),u[c]||(u[c]={});var Le=u[c][f];Le||(Le=u[c][f]={}),Le[be]=g,delete t[C]}else z==="reverse"?(G.range?G.range.reverse():(M(V+".autorange",!0),G.range=[1,0]),Z.autorange?b.calc=!0:b.plot=!0):(C==="dragmode"&&(g===!1&&j!==!1||g!==!1&&j===!1)||n._has("scatter-like")&&n._has("regl")&&C==="dragmode"&&(g==="lasso"||g==="select")&&!(j==="lasso"||j==="select")?b.plot=!0:N?A_.update(b,N):b.calc=!0,S.set(g))}}for(c in u){var me=NP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);me||(b.plot=!0)}for(var Pe in T){L=Vv.getFromId(e,Pe);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var He in ce)T[He]||(Vv.getFromId(e,He)._constraintShrinkable=!0)}}(dde(e)||t.height||t.width)&&(b.plot=!0);var lt=n.shapes;for(f=0;f1;)if(n.pop(),r=Ec(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function dvt(e,t){for(var r=0;r[V,e._ev.listeners(V)]);a=xl.newPlot(e,t,r,n).then(()=>{for(let[V,G]of q)G.forEach(Z=>e.on(V,Z));return xl.react(e,t,r,n)})}else{e.data=t||[],gh.cleanData(e.data),e.layout=r||{},gh.cleanLayout(e.layout),pvt(e.data,e.layout,s,l),Qo.supplyDefaults(e,{skipUpdateCalc:!0});var f=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,v=h.transition,m=yvt(e,l,h,d,v),b=m.newDataRevision,p=mvt(e,s,f,d,v,b);if(dde(e)&&(m.layoutReplot=!0),p.calc||m.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(h),M=0;M(c||e.emit("plotly_react",{config:n,data:t,layout:r}),e))}function mvt(e,t,r,n,i,a){var o=t.length===r.length;if(!i&&!o)return{fullReplot:!0,calc:!0};var s=A_.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function c(d){var v=YP.getTraceValObject(u,d);return!u._module.animatable&&v.anim&&(v.anim=!1),v}var f={getValObject:c,flags:s,immutable:n,transition:i,newDataRevision:a,gd:e},h={};for(l=0;l=i.length?i[0]:i[u]:i}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var z=n._frameQueue.pop();z.onInterrupt&&z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(z){if(z.length!==0){for(var q=0;qn._timeToNext&&v()};z()}var b=0;function p(z){return Array.isArray(i)?b>=i.length?z.transitionOpts=i[b]:z.transitionOpts=i[0]:z.transitionOpts=i,b++,z}var k,M,T=[],L=t==null,x=Array.isArray(t),C=!L&&!x&&Sa.isPlainObject(t);if(C)T.push({type:"object",data:p(Sa.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(k=0;k0&&PP)&&E.push(M);T=E}}T.length>0?h(T):(e.emit("plotly_animated"),u())})}function xvt(e,t,r){if(e=Sa.getGraphDiv(e),t==null)return Promise.resolve();if(!Sa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(n=t.length-1;n>=0;n--)if(Sa.isPlainObject(t[n])){var h=t[n].name,d=(l[h]||f[h]||{}).name,v=t[n].name,m=l[d]||f[d];d&&v&&typeof v=="number"&&m&&rUS.index?-1:C.index=0;n--){if(i=c[n].frame,typeof i.name=="number"&&Sa.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;l[i.name="frame "+e._transitionData._counter++];);if(l[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Qo.modifyFrames,l=Qo.modifyFrames,u=[e,o],c=[e,a];return op&&op.add(e,s,u,l,c),Qo.modifyFrames(e,a)}function wvt(e){e=Sa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Qo.cleanPlot([],{},r,t),Qo.purge(e),iU.purge(e),t._container&&t._container.remove(),delete e._context,e}function Tvt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Sa.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Sa.inverseTransformMatrix(Sa.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function Avt(e){var t=VP.select(e),r=e._fullLayout;if(r._calcInverseTransform=Tvt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};VP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Sa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr($dt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}xl.animate=_vt;xl.addFrames=xvt;xl.deleteFrames=bvt;xl.addTraces=ode;xl.deleteTraces=sde;xl.extendTraces=nde;xl.moveTraces=nU;xl.prependTraces=ade;xl.newPlot=avt;xl._doPlot=tvt;xl.purge=wvt;xl.react=gvt;xl.redraw=nvt;xl.relayout=r4;xl.restyle=jP;xl.setPlotConfig=rvt;xl.update=XP;xl._guiRelayout=aU(r4);xl._guiRestyle=aU(jP);xl._guiUpdate=aU(XP);xl._storeDirectGUIEdit=uvt});var Oy=ye(Im=>{"use strict";var Svt=Oa();Im.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Im.getRedrawFunc=function(e){return function(){Svt.getComponentMethod("colorbar","draw")(e)}};Im.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Im.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var vde=window.URL||window.webkitURL;Im.createObjectURL=function(e){return vde.createObjectURL(e)};Im.revokeObjectURL=function(e){return vde.revokeObjectURL(e)};Im.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=Mvt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Im.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Mvt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var sU=Fa(),dsr=Pr(),Evt=So(),kvt=ka(),vsr=Wp(),oU=/"/g,e2="TOBESTRIPPED",Cvt=new RegExp(`("${e2})|(${e2}")|("${e2})|(${e2}")`,"g"),Lvt=["&","&","&",""",""",""","'","'","'"],Pvt=["<","<","<"],Ivt=[">",">",">"];function Rvt(e){let t=sU.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,n=>{let i=n.toLowerCase();return Lvt.includes(i)?n:Pvt.includes(i)?"<":Ivt.includes(i)?">":n.includes("<")||n.includes(">")?"":t.html(n).text()});return t.remove(),r}function Dvt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}pde.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,l=i.height,u;a.insert("rect",":first-child").call(Evt.setRect,0,0,s,l).call(kvt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var Fvt=Pr(),zvt=Sb().EventEmitter,n4=Oy();function qvt(e){var t=e.emitter||new zvt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,d=u*f,v=l.getContext("2d",{willReadFrequently:!0}),m=new a,b,p;s==="svg"||Fvt.isSafari()?p=n4.encodeSVG(o):(b=n4.createBlob(o,"svg"),p=n4.createObjectURL(b)),l.width=h,l.height=d,m.onload=function(){var k;switch(b=null,n4.revokeObjectURL(p),s!=="svg"&&v.drawImage(m,0,0,h,d),s){case"jpeg":k=l.toDataURL("image/jpeg");break;case"png":k=l.toDataURL("image/png");break;case"webp":k=l.toDataURL("image/webp");break;case"svg":k=p;break;default:var M="Image format is not jpeg, png, svg or webp.";if(i(new Error(M)),!e.promise)return t.emit("error",M)}n(k),e.promise||t.emit("success",k)},m.onerror=function(k){if(b=null,n4.revokeObjectURL(p),i(k),!e.promise)return t.emit("error",k)},m.src=p});return e.promise?r:t}gde.exports=qvt});var uU=ye((msr,_de)=>{"use strict";var mde=Eo(),yde=JP(),Ovt=Mc(),Rm=Pr(),a4=Oy(),Bvt=$P(),Nvt=QP(),Uvt=OS().version,lU={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Vvt(e,t){t=t||{};var r,n,i,a;Rm.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Rm.getGraphDiv(e),r=Rm.extendDeep([],e.data),n=Rm.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Rm.validate(t[x],lU[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Rm.join2(lU.format.values,", "," or ")+".");var s={};function l(x,C){return Rm.coerce(t,s,lU,x,C)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var b=Rm.extendFlat({},n);c?b.width=c:t.width===null&&mde(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&mde(a.height)&&(b.height=a.height);var p=Rm.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),k=a4.getRedrawFunc(m);function M(){return new Promise(function(x){setTimeout(x,a4.getDelay(m._fullLayout))})}function T(){return new Promise(function(x,C){var S=Bvt(m,u,h),g=m._fullLayout.width,P=m._fullLayout.height;function E(){yde.purge(m),document.body.removeChild(m)}if(u==="full-json"){var z=Ovt.graphJson(m,!1,"keepdata","object",!0,!0);return z.version=Uvt,z=JSON.stringify(z),E(),x(v?z:a4.encodeJSON(z))}if(E(),u==="svg")return x(v?S:a4.encodeSVG(S));var q=document.createElement("canvas");q.id=Rm.randstr(),Nvt({format:u,width:g,height:P,scale:h,canvas:q,svg:S,promise:!0}).then(x).catch(C)})}function L(x){return v?x.replace(a4.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,C){yde.newPlot(m,r,b,p).then(k).then(M).then(T).then(function(S){x(L(S))}).catch(function(S){C(S)})})}_de.exports=Vvt});var wde=ye((ysr,bde)=>{"use strict";var I0=Pr(),Gvt=Mc(),Hvt=F3(),jvt=xb().dfltConfig,Rg=I0.isPlainObject,r2=Array.isArray,cU=I0.isArrayOrTypedArray;bde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Hvt.get(),i=[],a={_context:I0.extendFlat({},jvt)},o,s;r2(t)?(a.data=I0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(md("array","data"))),Rg(r)?(a.layout=I0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(md("object","layout"))),Gvt.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&n.push(md("unused",i,u.concat(f.length)));var p=f.length,k=Array.isArray(b);k&&(p=Math.min(p,b.length));var M,T,L,x,C;if(h.dimensions===2)for(T=0;Tf[T].length&&n.push(md("unused",i,u.concat(T,f[T].length)));var S=f[T].length;for(M=0;M<(k?Math.min(S,b[T].length):S);M++)L=k?b[T][M]:b,x=c[T][M],C=f[T][M],I0.validate(x,L)?C!==x&&C!==+x&&n.push(md("dynamic",i,u.concat(T,M),x,C)):n.push(md("value",i,u.concat(T,M),x))}else n.push(md("array",i,u.concat(T),c[T]));else for(T=0;T{"use strict";var $vt=Pr(),tI=Oy();function Qvt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var l,u;if(i)return l=tI.createBlob(e,r),u=tI.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),tI.revokeObjectURL(u),l=null,o(t);if($vt.isSafari()){var c=r==="svg"?",":";base64,";return tI.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Tde.exports=Qvt});var fU=ye((bsr,Mde)=>{"use strict";var Sde=Pr(),ept=uU(),tpt=Ade(),xsr=Oy();function rpt(e,t){var r;return Sde.isPlainObject(e)||(r=Sde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=ept(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),tpt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}Mde.exports=rpt});var Pde=ye(hU=>{"use strict";var Cp=Pr(),Lp=Cp.isPlainObject,Ede=F3(),kde=Mc(),ipt=Vl(),Cde=vl(),Lde=xb().dfltConfig;hU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:Lde},{data:e.data,layout:e.layout}),kde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var v={};o4(d,v,apt.bind(null,d));var m=Cp.coerce(d,{},ipt,"type"),b=n.data[m];b||(b=n.data[m]=[]),b.push(v)}),o4(r,n.layout,npt.bind(null,r)),delete n.layout.template;var i=r.template;if(Lp(i)){var a=i.layout,o,s,l,u,c,f;Lp(a)&&rI(a,n.layout);var h=i.data;if(Lp(h)){for(s in n.data)if(l=h[s],Array.isArray(l)){for(c=n.data[s],f=c.length,u=l.length,o=0;op?o.push({code:"unused",traceType:d,templateCount:b,dataCount:p}):p>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:p})}}function k(M,T){for(var L in M)if(L.charAt(0)!=="_"){var x=M[L],C=R0(M,L,T);Lp(x)?(Array.isArray(M)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:C,templateitemname:x.templateitemname}),k(x,C)):Array.isArray(x)&&opt(x)&&k(x,C)}}if(k({data:l,layout:s},""),o.length)return o.map(spt)};function opt(e){for(var t=0;t{"use strict";var rd=JP();tf._doPlot=rd._doPlot;tf.newPlot=rd.newPlot;tf.restyle=rd.restyle;tf.relayout=rd.relayout;tf.redraw=rd.redraw;tf.update=rd.update;tf._guiRestyle=rd._guiRestyle;tf._guiRelayout=rd._guiRelayout;tf._guiUpdate=rd._guiUpdate;tf._storeDirectGUIEdit=rd._storeDirectGUIEdit;tf.react=rd.react;tf.extendTraces=rd.extendTraces;tf.prependTraces=rd.prependTraces;tf.addTraces=rd.addTraces;tf.deleteTraces=rd.deleteTraces;tf.moveTraces=rd.moveTraces;tf.purge=rd.purge;tf.addFrames=rd.addFrames;tf.deleteFrames=rd.deleteFrames;tf.animate=rd.animate;tf.setPlotConfig=rd.setPlotConfig;var lpt=ZS().getGraphDiv,upt=pP().eraseActiveShape;tf.deleteActiveShape=function(e){return upt(lpt(e))};tf.toImage=uU();tf.validate=wde();tf.downloadImage=fU();var Ide=Pde();tf.makeTemplate=Ide.makeTemplate;tf.validateTemplate=Ide.validateTemplate});var cT=ye((Asr,Dde)=>{"use strict";var dU=Pr(),cpt=Oa();Dde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=cpt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=dU.minRowLength(a);o?s=Math.min(u,dU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=dU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Dg=ye((Ssr,qde)=>{"use strict";var Fde=Pr().dateTick0,fpt=fs(),hpt=fpt.ONEWEEK;function zde(e,t){return e%hpt===0?Fde(t,1):Fde(t,0)}qde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",zde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",zde(s,r.ycalendar)),i("yperiodalignment"))}}});var Nde=ye((Msr,Bde)=>{"use strict";var Ode=["orientation","groupnorm","stackgaps"];Bde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Ude=ka(),Vde=pv().hasColorscale,Gde=td(),dpt=Ru();Hde.exports=function(t,r,n,i,a,o={}){var s=dpt.isBubble(t),l=(t.line||{}).color,u;if(l&&(n=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Vde(t,"marker")&&Gde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=Ude.background:u=Ude.defaultLine,a("marker.line.color",u),Vde(t,"marker.line")&&Gde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0),o.noLineDash||a("marker.line.dash")),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var D0=ye((ksr,jde)=>{"use strict";var vpt=Pr().isArrayOrTypedArray,ppt=pv().hasColorscale,gpt=td();jde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),ppt(t,"line"))gpt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(vpt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var fT=ye((Csr,Wde)=>{"use strict";Wde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var F0=ye((Lsr,Xde)=>{"use strict";var mpt=Pr();Xde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),mpt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Fg=ye((Psr,Yde)=>{"use strict";var nI=ka(),Zde=Pr().isArrayOrTypedArray;function ypt(e){for(var t=nI.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Kde=Pr(),_pt=Oa(),xpt=pf(),bpt=Pm(),hT=Ru(),wpt=cT(),Tpt=Dg(),Apt=Nde(),Spt=$p(),Mpt=D0(),Jde=fT(),Ept=F0(),kpt=Fg(),Cpt=Pr().coercePattern;$de.exports=function(t,r,n,i){function a(d,v){return Kde.coerce(t,r,xpt,d,v)}var o=wpt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){Tpt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=Apt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var Lpt=$b().getAxisGroup;eve.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=Lpt(n,s)+o,u=n._alignmentOpts||{},c=i("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var d=i("offsetgroup")||"",v=h.offsetGroups,m=v[d];r._offsetIndex=0,(a!=="group"||d)&&(m||(m=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=m.offsetIndex)}});var vU=ye((Dsr,tve)=>{"use strict";var Ppt=Pr(),Ipt=i2(),Rpt=pf();tve.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return Ppt.coerce(i._input,i,Rpt,h)}if(r.scattermode==="group")for(a=0;a=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var ive=ye((Fsr,rve)=>{"use strict";var Dpt=Pr(),Fpt=iL();rve.exports=function(e,t){function r(i,a){return Dpt.coerce(e,t,Fpt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var zg=ye((zsr,ave)=>{"use strict";var zpt=Eo(),nve=Pr(),qpt=nve.dateTime2ms,aI=nve.incrementMonth,Opt=fs(),Bpt=Opt.ONEAVGMONTH;ave.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(zpt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:i}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[n+"period0"],d=qpt(h,u)||0,v=[],m=[],b=[],p=i.length,k=0;kM;)x=aI(x,-s,u);for(;x<=M;)x=aI(x,s,u);L=aI(x,-s,u)}else{for(T=Math.round((M-d)/o),x=d+T*o;x>M;)x-=o;for(;x<=M;)x+=o;L=x-o}v[k]=c?L:f?x:(L+x)/2,m[k]=L,b[k]=x}return{vals:v,starts:m,ends:b}}});var z0=ye((qsr,sve)=>{"use strict";var pU=pv().hasColorscale,gU=gv(),ove=Ru();sve.exports=function(t,r){ove.hasLines(r)&&pU(r,"line")&&gU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),ove.hasMarkers(r)&&(pU(r,"marker")&&gU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),pU(r,"marker.line")&&gU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Dm=ye((Osr,lve)=>{"use strict";var Of=Pr();lve.exports=function(t,r){for(var n=0;n{"use strict";var uve=Pr();cve.exports=function(t,r){uve.isArrayOrTypedArray(r.selectedpoints)&&uve.tagSelected(t,r)}});var O0=ye((Nsr,mve)=>{"use strict";var fve=Eo(),yU=Pr(),s4=ho(),hve=zg(),mU=fs().BADNUM,_U=Ru(),Npt=z0(),Upt=Dm(),Vpt=q0();function Gpt(e,t){var r=e._fullLayout,n=t._xA=s4.getFromId(e,t.xaxis||"x","x"),i=t._yA=s4.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=hve(t,n,"x",a),l=hve(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=xU(t,r,n,i),m=!1,b,p,k,M,T,L;pve(r,t);var x="x",C="y",S;if(v)yU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(C="s",S="x"):(x="s",S="y"),T=v.stackgaps==="interpolate";else{var g=vve(t,f);dve(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,E=!!t.yperiodalignment;for(p=0;pp&&h[M].gap;)M--;for(L=h[M].s,k=h.length-1;k>M;k--)h[k].s=L;for(;p{"use strict";yve.exports=oI;var Hpt=Pr().distinctVals;function oI(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";xve.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var n2=ye((Gsr,Ave)=>{"use strict";var B0=Eo(),{isArrayOrTypedArray:By}=Pr(),{BADNUM:dT}=fs(),jpt=Oa(),l4=ho(),{getAxisGroup:Wpt}=$b(),sI=_ve(),{TEXTPAD:Xpt}=S_(),{LINE_SPACING:Zpt}=Dh(),{BR_TAG_ALL:Ypt}=Zl();function Kpt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!B0(s))}for(var c=0;cn(a))):n(e.text);let i=e.outsidetextfont.size*Zpt*r+Xpt;return{ppadplus:t.some(a=>a.s<0)?i:0,ppadminus:t.some(a=>a.s>=0)?i:0}}return{ppadplus:void 0,ppadminus:void 0}}function o0t(e,t,r,n){for(var i=vT(n),a=0;a{"use strict";var Sve=O0(),Mve=n2().setGroupPositions;function l0t(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[c]&&c{"use strict";var c0t=So(),Ive=fs(),u4=Ive.BADNUM,Rve=Ive.LOG_CLIP,Cve=Rve+.5,Lve=Rve-.5,lI=Pr(),f0t=lI.segmentsIntersect,Pve=lI.constrain,EU=Pm();Dve.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",l=i._length,u=a._length,c=r.backoff,f=n.marker,h=r.connectGaps,d=r.baseTolerance,v=r.shape,m=v==="linear",b=n.fill&&n.fill!=="none",p=[],k=EU.minTolerance,M=t.length,T=new Array(M),L=0,x,C,S,g,P,E,z,q,V,G,Z,j,N,H,re,ae;function _e(gt){var Ge=t[gt];if(!Ge)return!1;var Je=r.linearized?i.l2p(Ge.x):i.c2p(Ge.x),We=r.linearized?a.l2p(Ge.y):a.c2p(Ge.y);if(Je===u4){if(o&&(Je=i.c2p(Ge.x,!0)),Je===u4)return!1;s&&We===u4&&(Je*=Math.abs(i._m*u*(i._m>0?Cve:Lve)/(a._m*l*(a._m>0?Cve:Lve)))),Je*=1e3}if(We===u4){if(s&&(We=a.c2p(Ge.y,!0)),We===u4)return!1;We*=1e3}return[Je,We]}function Ee(gt,Ge,Je,We){var et=Je-gt,xt=We-Ge,At=.5-gt,Kt=.5-Ge,Qt=et*et+xt*xt,Mr=et*At+xt*Kt;if(Mr>0&&Mr1||Math.abs(At.y-Je[0][1])>1)&&(At=[At.x,At.y],We&&Se(At,gt)Be||gt[1]me)return[Pve(gt[0],be,Be),Pve(gt[1],Le,me)]}function Vt(gt,Ge){if(gt[0]===Ge[0]&&(gt[0]===be||gt[0]===Be)||gt[1]===Ge[1]&&(gt[1]===Le||gt[1]===me))return!0}function rr(gt,Ge){var Je=[],We=ar(gt),et=ar(Ge);return We&&et&&Vt(We,et)||(We&&Je.push(We),et&&Je.push(et)),Je}function tt(gt,Ge,Je){return function(We,et){var xt=ar(We),At=ar(et),Kt=[];if(xt&&At&&Vt(xt,At))return Kt;xt&&Kt.push(xt),At&&Kt.push(At);var Qt=2*lI.constrain((We[gt]+et[gt])/2,Ge,Je)-((xt||We)[gt]+(At||et)[gt]);if(Qt){var Mr;xt&&At?Mr=Qt>0==xt[gt]>At[gt]?xt:At:Mr=xt||At,Mr[gt]+=Qt}return Kt}}var je;v==="linear"||v==="spline"?je=ct:v==="hv"||v==="vh"?je=rr:v==="hvh"?je=tt(0,be,Be):v==="vhv"&&(je=tt(1,Le,me));function Ue(gt,Ge){var Je=Ge[0]-gt[0],We=(Ge[1]-gt[1])/Je,et=(gt[1]*Ge[0]-Ge[1]*gt[0])/Je;return et>0?[We>0?be:Be,me]:[We>0?Be:be,Le]}function Ae(gt){var Ge=gt[0],Je=gt[1],We=Ge===T[L-1][0],et=Je===T[L-1][1];if(!(We&&et))if(L>1){var xt=Ge===T[L-2][0],At=Je===T[L-2][1];We&&(Ge===be||Ge===Be)&&xt?At?L--:T[L-1]=gt:et&&(Je===Le||Je===me)&&At?xt?L--:T[L-1]=gt:T[L++]=gt}else T[L++]=gt}function rt(gt){T[L-1][0]!==gt[0]&&T[L-1][1]!==gt[1]&&Ae([lt,mt]),Ae(gt),Ht=null,lt=mt=0}var St=lI.isArrayOrTypedArray(f);function Tt(gt){if(gt&&c&&(gt.i=x,gt.d=t,gt.trace=n,gt.marker=St?f[gt.i]:f,gt.backoff=c),Ce=gt[0]/l,ge=gt[1]/u,ce=gt[0]Be?Be:0,He=gt[1]me?me:0,ce||He){if(!L)T[L++]=[ce||gt[0],He||gt[1]];else if(Ht){var Ge=je(Ht,gt);Ge.length>1&&(rt(Ge[0]),T[L++]=Ge[1])}else at=je(T[L-1],gt)[0],T[L++]=at;var Je=T[L-1];ce&&He&&(Je[0]!==ce||Je[1]!==He)?(Ht&&(lt!==ce&&mt!==He?Ae(lt&&mt?Ue(Ht,gt):[lt||ce,mt||He]):lt&&mt&&Ae([lt,mt])),Ae([ce,He])):lt-ce&&mt-He&&Ae([ce||lt,He||mt]),Ht=gt,lt=ce,mt=He}else Ht&&rt(je(Ht,gt)[0]),T[L++]=gt}for(x=0;xie(E,dt))break;S=E,N=V[0]*q[0]+V[1]*q[1],N>Z?(Z=N,g=E,z=!1):N=t.length||!E)break;Tt(E),C=E}}Ht&&Ae([lt||Ht[0],mt||Ht[1]]),p.push(T.slice(0,L))}var Et=v.slice(v.length-1);if(c&&Et!=="h"&&Et!=="v"){for(var pt=!1,jt=-1,or=[],mr=0;mr{"use strict";var Fve={tonextx:1,tonexty:1,tonext:1};zve.exports=function(t,r,n){var i,a,o,s,l,u={},c=!1,f=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var qg=Fa(),h0t=Oa(),c4=Pr(),pT=c4.ensureSingle,Ove=c4.identity,Kf=So(),gT=Ru(),d0t=kU(),v0t=CU(),uI=BM().tester;Bve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=v0t(t,r,n);if(s=i.selectAll("g.trace").data(f,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),p0t(t,s,r),c){o&&(l=o());var h=qg.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){i.selectAll("g.trace").each(function(d,v){qve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){qve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function p0t(e,t,r){t.each(function(n){var i=pT(qg.select(this),"g","fills");Kf.setClipUrl(i,r.layerClipId,e);var a=n[0].trace;a._ownFill=null,a._nextFill=null;var o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Ove);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=pT(qg.select(this),"path","js-fill")})})}function qve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;g0t(e,t,r,n,i);var u=!!o&&o.duration>0;function c(tt){return u?tt.transition():tt}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,m=qg.select(a),b=pT(m,"g","errorbars"),p=pT(m,"g","lines"),k=pT(m,"g","points"),M=pT(m,"g","text");if(h0t.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(m).style("opacity",d.opacity);var T,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var C,S;x==="y"?(C=1,S=h.c2p(0,!0)):x==="x"&&(C=0,S=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=m;var g="",P=[],E=d._prevtrace,z=null,q=null;E&&(g=E._prevRevpath||"",L=E._nextFill,P=E._ownPolygons,z=E._fillsegments,q=E._fillElement);var V,G,Z="",j="",N,H,re,ae,_e,Ee,Ce=[];d._polygons=[];var ge=[],ie=[],Se=c4.noop;if(T=d._ownFill,gT.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(N=Kf.steps(v.shape),H=Kf.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?N=H=function(tt){var je=tt[tt.length-1];return tt.length>1&&tt[0][0]===je[0]&&tt[0][1]===je[1]?Kf.smoothclosed(tt.slice(1),v.smoothing):Kf.smoothopen(tt,v.smoothing)}:N=H=function(tt){return"M"+tt.join("L")},re=function(tt){return H(tt.reverse())},ie=d0t(n,{xaxis:f,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:d.fill}),ge=new Array(ie.length);var ke=0;for(l=0;l=s[0]&&m.x<=s[1]&&m.y>=l[0]&&m.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(m,b){var p=m[0].trace;gT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";Nve.exports={container:"marker",min:"cmin",max:"cmax"}});var fI=ye((Ysr,Uve)=>{"use strict";var cI=ho();Uve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=cI.getFromTrace(a,r,"x"),s=cI.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),i.xLabel=cI.tickText(o,o.c2l(l),!0).text,i.yLabel=cI.tickText(s,s.c2l(u),!0).text,i}});var sp=ye((Ksr,Vve)=>{"use strict";var LU=Fa(),yT=So(),m0t=Oa();function y0t(e){var t=LU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=LU.select(this),i=r.trace||r[0].trace;PU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=LU.select(this),i=r.trace||r[0].trace;IU(n,i,e)}),t.selectAll("g.trace path.js-line").call(yT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(yT.fillGroupStyle,e,!1),m0t.getComponentMethod("errorbars","style")(t)}function PU(e,t,r){yT.pointStyle(e.selectAll("path.point"),t,r)}function IU(e,t,r){yT.textPointStyle(e.selectAll("text"),t,r)}function _0t(e,t,r){var n=t[0].trace;n.selectedpoints?(yT.selectedPointStyle(r.selectAll("path.point"),n),yT.selectedTextStyle(r.selectAll("text"),n)):(PU(r,n,e),IU(r,n,e))}Vve.exports={style:y0t,stylePoints:PU,styleText:IU,styleOnSelect:_0t}});var xT=ye((Jsr,Gve)=>{"use strict";var _T=ka(),x0t=Ru();Gve.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&_T.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&_T.opacity(a)?a:o&&_T.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?_T.opacity(i)<.3?_T.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&_T.opacity(n)&&x0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var bT=ye(($sr,jve)=>{"use strict";var hI=Pr(),Hve=ef(),b0t=Oa(),w0t=xT(),RU=ka(),T0t=hI.fillText;jve.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(n),f=[u,c],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,v=!!o.xperiodalignment,m=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(j){if(v){var N=s.c2p(j.xStart),H=s.c2p(j.xEnd);return u>=Math.min(N,H)&&u<=Math.max(N,H)?0:1/0}var re=Math.max(3,j.mrc||0),ae=1-1/re,_e=Math.abs(s.c2p(j.x)-u);return _e=Math.min(N,H)&&c<=Math.max(N,H)?0:1/0}var re=Math.max(3,j.mrc||0),ae=1-1/re,_e=Math.abs(l.c2p(j.y)-c);return _eCe!=me>=Ce&&(be=Se[ie-1][0],Be=Se[ie][0],me-Le&&(ke=be+(Be-be)*(Ce-Le)/(me-Le),re=Math.min(re,ke),ae=Math.max(ae,ke)));return re=Math.max(re,0),ae=Math.min(ae,s._length),{x0:re,x1:ae,y0:Ce,y1:Ce}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=z(o._fillElement)&&!z(o._fillExclusionElement);if(V){var G=q(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=RU.defaultLine;return RU.opacity(o.fillcolor)?Z=o.fillcolor:RU.opacity((o.line||{}).color)&&(Z=o.line.color),hI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:Z,hovertemplate:!1}),delete t.index,o.text&&!hI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var wT=ye((Qsr,Xve)=>{"use strict";var Wve=Ru();Xve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Wve.hasMarkers(s)&&!Wve.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";Zve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var FU=ye((tlr,$ve)=>{"use strict";var f4=Oa().traceIs,DU=W3();$ve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(A0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function A0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=S0t(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],l={noMultiCategory:!f4(a,"cartesian")||f4(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,Jve(a,n)){var u=Kve(a),c=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Jve(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Kve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Jve(e,t){var r=Kve(e),n=f4(e,"box-violin"),i=f4(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var dI=ye((rlr,Qve)=>{"use strict";var M0t=Yd().isTypedArraySpec;function E0t(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||M0t(a),s;o&&(s="array");var l=n("categoryorder",s),u;l==="array"&&(u=n("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=E0t(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var h4=ye((ilr,tpe)=>{"use strict";var epe=fd().mix,k0t=Ih(),C0t=Pr();tpe.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(S,g){return C0t.coerce2(t,r,i.attributes,S,g)}var s=o("linecolor",a),l=o("linewidth"),u=n("showline",i.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=epe(a,i.bgColor,i.blend||k0t.lightFraction).toRgbString(),f=o("gridcolor",c),h=o("gridwidth"),d=o("griddash"),v=n("showgrid",i.showGrid||!!f||!!h||!!d);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var m=epe(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",m),p=o("minor.gridwidth",r.gridwidth||1),k=o("minor.griddash",r.griddash||"solid"),M=n("minor.showgrid",!!b||!!p||!!k);M||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var T=o("zerolinelayer"),L=o("zerolinecolor",a),x=o("zerolinewidth"),C=n("zeroline",i.showGrid||!!L||!!x);C||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var v4=ye((nlr,spe)=>{"use strict";var rpe=Eo(),L0t=Oa(),d4=Pr(),P0t=vl(),I0t=Kd(),zU=Rd(),ipe=Pb(),npe=B3(),R0t=l_(),D0t=u_(),F0t=dI(),z0t=h4(),q0t=kB(),ape=xm(),vI=Rh().WEEKDAY_PATTERN,O0t=Rh().HOUR_PATTERN;spe.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},l=i.splomStash||{},u=n("visible",!i.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var d=L0t.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(f==="date"||f==="linear")&&n("ticklabelindex");var v="";(!i.noTicklabelposition||f==="multicategory")&&(v=d4.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),ape(r,a),q0t(t,r,n,i),F0t(t,r,n,i),i.noHover||(f!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var m=n("color"),b=m!==zU.color.dflt?m:s.color,p=l.label||a._dfltTitle[o];if(D0t(t,r,n,f,i),!u)return r;n("title.text",p),d4.coerceFont(n,"title.font",s,{overrideDflt:{size:d4.bigFont(s.size),color:b}}),ipe(t,r,n,f);var k=i.hasMinor;if(k&&(P0t.newContainer(r,"minor"),ipe(t,r,n,f,{isMinor:!0})),R0t(t,r,n,f,i),npe(t,r,n,i),k){var M=i.isMinor;i.isMinor=!0,npe(t,r,n,i),i.isMinor=M}z0t(t,r,n,{dfltColor:m,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:k,attributes:zU}),k&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var T=f==="multicategory";if(!i.noTickson&&(f==="category"||T)&&(r.ticks||r.showgrid)&&(T?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),T){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(f==="date")if(I0t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:B0t}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=ope(a[s]),l){o=vI;break}}var u=n("pattern",o);if(u===vI)for(s=0;s<2;s++)l=ope(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case vI:if(!rpe(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case O0t:if(!rpe(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]{"use strict";var U0t=Eo(),pI=Pr();lpe.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,l=i.grid,u=i.overlayingDomain,c,f,h,d,v,m;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(U0t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,m=!1;var b=pI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=pI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var k=n("autoshift");k&&(d=p==="left"?u[0]:u[1],m=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",m);var M=!1;if(o.length&&(M=pI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!M){var T=n("domain",f);T[0]>T[1]-1/4096&&(r.domain=f),pI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var mpe=ye((olr,gpe)=>{"use strict";var a2=Pr(),upe=ka(),V0t=ip().isUnifiedHover,G0t=eN(),cpe=vl(),H0t=T3(),fpe=Rd(),j0t=FU(),hpe=v4(),W0t=$b(),dpe=gI(),OU=df(),Fm=OU.id2name,vpe=OU.name2id,X0t=Rh().AX_ID_PATTERN,ppe=Oa(),mI=ppe.traceIs,qU=ppe.getComponentMethod;function yI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}gpe.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},m,b;for(m=0;m{"use strict";var Z0t=Fa(),ype=Oa(),_I=Pr(),Qp=So(),xI=ho();_pe.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){xI.redrawComponents(t);return}function o(b){var p=b.xaxis,k=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qp.setTranslate,0,0).call(Qp.setScale,1,1),b.plot.call(Qp.setTranslate,p._offset,k._offset).call(Qp.setScale,1,1);var M=b.plot.selectAll(".scatterlayer .trace");M.selectAll(".point").call(Qp.setPointGroupScale,1,1),M.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),M.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var k=b.plotinfo,M=k.xaxis,T=k.yaxis,L=M._length,x=T._length,C=!!b.xr1,S=!!b.yr1,g=[];if(C){var P=_I.simpleMap(b.xr0,M.r2l),E=_I.simpleMap(b.xr1,M.r2l),z=P[1]-P[0],q=E[1]-E[0];g[0]=(P[0]*(1-p)+p*E[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*q/z),M.range[0]=M.l2r(P[0]*(1-p)+p*E[0]),M.range[1]=M.l2r(P[1]*(1-p)+p*E[1])}else g[0]=0,g[2]=L;if(S){var V=_I.simpleMap(b.yr0,T.r2l),G=_I.simpleMap(b.yr1,T.r2l),Z=V[1]-V[0],j=G[1]-G[0];g[1]=(V[1]*(1-p)+p*G[1]-V[1])/(V[0]-V[1])*x,g[3]=x*(1-p+p*j/Z),T.range[0]=M.l2r(V[0]*(1-p)+p*G[0]),T.range[1]=T.l2r(V[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=x;xI.drawOne(t,M,{skipTitle:!0}),xI.drawOne(t,T,{skipTitle:!0}),xI.redrawComponents(t,[M._id,T._id]);var N=C?L/g[2]:1,H=S?x/g[3]:1,re=C?g[0]:0,ae=S?g[1]:0,_e=C?g[0]/g[2]*L:0,Ee=S?g[1]/g[3]*x:0,Ce=M._offset-_e,ge=T._offset-Ee;k.clipRect.call(Qp.setTranslate,re,ae).call(Qp.setScale,1/N,1/H),k.plot.call(Qp.setTranslate,Ce,ge).call(Qp.setScale,N,H),Qp.setPointGroupScale(k.zoomScalePts,1/N,1/H),Qp.setTextPointsScale(k.zoomScaleTxt,1/N,1/H)}var l;i&&(l=i());function u(){for(var b={},p=0;pn.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return f=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var mh=ye(xv=>{"use strict";var wI=Fa(),bpe=Oa(),o2=Pr(),Y0t=Mc(),K0t=So(),wpe=Id().getModuleCalcData,M_=df(),Og=Rh(),J0t=Wp(),iu=o2.ensureSingle;function bI(e,t,r){return o2.ensureSingle(e,t,r,function(n){n.datum(r)})}var s2=Og.zindexSeparator;xv.name="cartesian";xv.attr=["xaxis","yaxis"];xv.idRoot=["x","y"];xv.idRegex=Og.idRegex;xv.attrRegex=Og.attrRegex;xv.attributes=Yve();xv.layoutAttributes=Rd();xv.supplyLayoutDefaults=mpe();xv.transitionAxes=xpe();xv.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var d=h.id;if(d.indexOf(s2)!==-1)continue;d+=s2+(u+1),h=o2.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],m,b=0;b1&&(L+=s2+T),M.push(s+L),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.xaxislayer=iu(n,"g","xaxislayer-above"),t.yaxislayer=iu(n,"g","yaxislayer-above");else{if(!o){var h=iu(n,"g","layer-subplot");t.shapelayer=iu(h,"g","shapelayer"),t.imagelayer=iu(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=iu(n,"g","minor-gridlayer"),t.gridlayer=iu(n,"g","gridlayer"),t.zerolinelayer=iu(n,"g","zerolinelayer"));var d=iu(n,"g","layer-between");t.shapelayerBetween=iu(d,"g","shapelayer"),t.imagelayerBetween=iu(d,"g","imagelayer"),iu(n,"path","xlines-below"),iu(n,"path","ylines-below"),t.overlinesBelow=iu(n,"g","overlines-below"),iu(n,"g","xaxislayer-below"),iu(n,"g","yaxislayer-below"),t.overaxesBelow=iu(n,"g","overaxes-below")}t.overplot=iu(n,"g","overplot"),t.plot=iu(t.overplot,"g",i),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=iu(n,"g","zerolinelayer-above"),o||(t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.overlinesAbove=iu(n,"g","overlines-above"),iu(n,"g","xaxislayer-above"),iu(n,"g","yaxislayer-above"),t.overaxesAbove=iu(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+l),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+l))}else{var v=f.plotgroup,m=i+"-x",b=i+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,iu(f.overlinesBelow,"path",m),iu(f.overlinesBelow,"path",b),iu(f.overaxesBelow,"g",m),iu(f.overaxesBelow,"g",b),t.plot=iu(f.overplot,"g",i),iu(f.overlinesAbove,"path",m),iu(f.overlinesAbove,"path",b),iu(f.overaxesAbove,"g",m),iu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+m),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+m),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(bI(t.minorGridlayer,"g",t.xaxis._id),bI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(M_.idSort),bI(t.gridlayer,"g",t.xaxis._id),bI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(M_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function Spe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=wI.select(this);c.remove(),Mpe(u,t),r[u]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var TI=Ru();Epe.exports={hasLines:TI.hasLines,hasMarkers:TI.hasMarkers,hasText:TI.hasText,isBubble:TI.isBubble,attributes:pf(),layoutAttributes:iL(),supplyDefaults:Qde(),crossTraceDefaults:vU(),supplyLayoutDefaults:ive(),calc:O0().calc,crossTraceCalc:kve(),arraysToCalcdata:Dm(),plot:mT(),colorbar:Qd(),formatLabels:fI(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:bT(),selectPoints:wT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:mh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Ppe=ye((clr,Lpe)=>{"use strict";var Q0t=Fa(),egt=ka(),Cpe=UN(),BU=Pr(),tgt=BU.strScale,rgt=BU.strRotate,igt=BU.strTranslate;Lpe.exports=function(t,r,n){var i=t.node(),a=Cpe[n.arrowhead||0],o=Cpe[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+n.standoff,h=o.backoff*l+n.startstandoff,d,v,m,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var p=d.x-v.x,k=d.y-v.y;if(m=Math.atan2(k,p),b=m+Math.PI,f&&h&&f+h>Math.sqrt(p*p+k*k)){V();return}if(f){if(f*f>p*p+k*k){V();return}var M=f*Math.cos(m),T=f*Math.sin(m);v.x+=M,v.y+=T,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+k*k){V();return}var L=h*Math.cos(m),x=h*Math.sin(m);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),S="";if(C{"use strict";var Ipe=Fa(),NU=Oa(),ngt=Mc(),k_=Pr(),UU=k_.strTranslate,g4=ho(),l2=ka(),Ny=So(),Rpe=ef(),VU=Zl(),GU=Eg(),p4=yv(),agt=vl().arrayEditor,ogt=Ppe();zpe.exports={draw:sgt,drawOne:Dpe,drawRaw:Fpe};function sgt(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?et="right":et="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[et]}for(var Le=!1,me=["x","y"],Pe=0;Pe1)&&(lt===He?(dt=mt.r2fraction(t["a"+ce]),(dt<0||dt>1)&&(Le=!0)):Le=!0),je=mt._offset+mt.r2p(t[ce]),rt=.5}else{var Et=Tt==="domain";ce==="x"?(Ae=t[ce],je=Et?mt._offset+mt._length*Ae:je=s.l+s.w*Ae):(Ae=1-t[ce],je=Et?mt._offset+mt._length*Ae:je=s.t+s.h*Ae),rt=t.showarrow?.5:Ae}if(t.showarrow){tt.head=je;var pt=t["a"+ce];if(St=at*Be(.5,t.xanchor)-ct*Be(.5,t.yanchor),lt===He){var jt=g4.getRefType(lt);jt==="domain"?(ce==="y"&&(pt=1-pt),tt.tail=mt._offset+mt._length*pt):jt==="paper"?ce==="y"?(pt=1-pt,tt.tail=s.t+s.h*pt):tt.tail=s.l+s.w*pt:tt.tail=mt._offset+mt.r2p(pt),Ue=St}else tt.tail=je+pt,Ue=St+pt;tt.text=tt.tail+St;var or=o[ce==="x"?"width":"height"];if(He==="paper"&&(tt.head=k_.constrain(tt.head,1,or-1)),lt==="pixel"){var mr=-Math.max(tt.tail-3,tt.text),Ar=Math.min(tt.tail+3,tt.text)-or;mr>0?(tt.tail+=mr,tt.text+=mr):Ar>0&&(tt.tail-=Ar,tt.text-=Ar)}tt.tail+=rr,tt.head+=rr}else St=ar*Be(rt,Vt),Ue=St,tt.text=je+St;tt.text+=rr,St+=rr,Ue+=rr,t["_"+ce+"padplus"]=ar/2+Ue,t["_"+ce+"padminus"]=ar/2-Ue,t["_"+ce+"size"]=ar,t["_"+ce+"shift"]=St}if(Le){C.remove();return}var ei=0,qr=0;if(t.align!=="left"&&(ei=(ie-Ce)*(t.align==="center"?.5:1)),t.valign!=="top"&&(qr=(Se-ge)*(t.valign==="middle"?.5:1)),_e)ae.select("svg").attr({x:P+ei-1,y:P+qr}).call(Ny.setClipUrl,z?m:null,e);else{var jr=P+qr-Ee.top,gt=P+ei-Ee.left;Z.call(VU.positionText,gt,jr).call(Ny.setClipUrl,z?m:null,e)}q.select("rect").call(Ny.setRect,P,P,ie,Se),E.call(Ny.setRect,S/2,S/2,ke-S,be-S),C.call(Ny.setTranslate,Math.round(b.x.text-ke/2),Math.round(b.y.text-be/2)),M.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(We,et){k.selectAll(".annotation-arrow-g").remove();var xt=b.x.head,At=b.y.head,Kt=b.x.tail+We,Qt=b.y.tail+et,Mr=b.x.text+We,Gr=b.y.text+et,Ir=k_.rotationXYMatrix(p,Mr,Gr),Yr=k_.apply2DTransform(Ir),_i=k_.apply2DTransform2(Ir),Pi=+E.attr("width"),ai=+E.attr("height"),mi=Mr-.5*Pi,un=mi+Pi,Fn=Gr-.5*ai,An=Fn+ai,Hn=[[mi,Fn,mi,An],[mi,An,un,An],[un,An,un,Fn],[un,Fn,mi,Fn]].map(_i);if(!Hn.reduce(function($r,Ri){return $r^!!k_.segmentsIntersect(xt,At,xt+1e6,At+1e6,Ri[0],Ri[1],Ri[2],Ri[3])},!1)){Hn.forEach(function($r){var Ri=k_.segmentsIntersect(Kt,Qt,xt,At,$r[0],$r[1],$r[2],$r[3]);Ri&&(Kt=Ri.x,Qt=Ri.y)});var Qn=t.arrowwidth,Vi=t.arrowcolor,Jn=t.arrowside,Yn=k.append("g").style({opacity:l2.opacity(Vi)}).classed("annotation-arrow-g",!0),Gt=Yn.append("path").attr("d","M"+Kt+","+Qt+"L"+xt+","+At).style("stroke-width",Qn+"px").call(l2.stroke,l2.rgb(Vi));if(ogt(Gt,Jn,t),l.annotationPosition&&Gt.node().parentNode&&!n){var wt=xt,tr=At;if(t.standoff){var ir=Math.sqrt(Math.pow(xt-Kt,2)+Math.pow(At-Qt,2));wt+=t.standoff*(Kt-xt)/ir,tr+=t.standoff*(Qt-At)/ir}var wr=Yn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-wt)+","+(Qt-tr),transform:UU(wt,tr)}).style("stroke-width",Qn+6+"px").call(l2.stroke,"rgba(0,0,0,0)").call(l2.fill,"rgba(0,0,0,0)"),Xr,ti;p4.init({element:wr.node(),gd:e,prepFn:function(){var $r=Ny.getTranslate(C);Xr=$r.x,ti=$r.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function($r,Ri){var Hi=Yr(Xr,ti),en=Hi[0]+$r,fn=Hi[1]+Ri;C.call(Ny.setTranslate,en,fn),d("x",E_(i,$r,"x",s,t)),d("y",E_(a,Ri,"y",s,t)),t.axref===t.xref&&d("ax",E_(i,$r,"ax",s,t)),t.ayref===t.yref&&d("ay",E_(a,Ri,"ay",s,t)),Yn.attr("transform",UU($r,Ri)),M.attr({transform:"rotate("+p+","+en+","+fn+")"})},doneFn:function(){NU.call("_guiRelayout",e,v());var $r=document.querySelector(".js-notes-box-panel");$r&&$r.redraw($r.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),T){var Je;p4.init({element:C.node(),gd:e,prepFn:function(){Je=M.attr("transform")},moveFn:function(We,et){var xt="pointer";if(t.showarrow)t.axref===t.xref?d("ax",E_(i,We,"ax",s,t)):d("ax",t.ax+We),t.ayref===t.yref?d("ay",E_(a,et,"ay",s.w,t)):d("ay",t.ay+et),Ge(We,et);else{if(n)return;var At,Kt;if(i)At=E_(i,We,"x",s,t);else{var Qt=t._xsize/s.w,Mr=t.x+(t._xshift-t.xshift)/s.w-Qt/2;At=p4.align(Mr+We/s.w,Qt,0,1,t.xanchor)}if(a)Kt=E_(a,et,"y",s,t);else{var Gr=t._ysize/s.h,Ir=t.y-(t._yshift+t.yshift)/s.h-Gr/2;Kt=p4.align(Ir-et/s.h,Gr,0,1,t.yanchor)}d("x",At),d("y",Kt),(!i||!a)&&(xt=p4.getCursor(i?.5:At,a?.5:Kt,t.xanchor,t.yanchor))}M.attr({transform:UU(We,et)+Je}),GU(C,xt)},clickFn:function(We,et){t.captureevents&&e.emit("plotly_clickannotation",x(et))},doneFn:function(){GU(C),NU.call("_guiRelayout",e,v());var We=document.querySelector(".js-notes-box-panel");We&&We.redraw(We.selectedObj)}})}}l.annotationText?Z.call(VU.makeEditable,{delegate:C,gd:e}).call(j).on("edit",function(H){t.text=H,this.call(j),d("text",H),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),NU.call("_guiRelayout",e,v())}):Z.call(j)}});var Vpe=ye((hlr,Upe)=>{"use strict";var qpe=Pr(),lgt=Oa(),Ope=vl().arrayEditor;Upe.exports={hasClickToShow:ugt,onClick:cgt};function ugt(e,t){var r=Npe(e,t);return r.on.length>0||r.explicitOff.length>0}function cgt(e,t){var r=Npe(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(n.length||i.length){for(s=0;s{"use strict";var HU=Pr(),TT=ka();Gpe.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=TT.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),HU.coerceFont(i,"font",n.font),i("width"),i("align");var c=i("height");if(c&&i("valign"),u){var f=i("arrowside"),h,d;f.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),f.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:TT.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),m=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",m.bgcolor||(TT.opacity(a)?TT.rgb(a):TT.defaultLine)),p=i("hoverlabel.bordercolor",m.bordercolor||TT.contrast(b)),k=HU.extendFlat({},m.font);k.color||(k.color=p),HU.coerceFont(i,"hoverlabel.font",k)}i("captureevents",!!v)}});var jpe=ye((vlr,Hpe)=>{"use strict";var WU=Pr(),u2=ho(),fgt=Kd(),hgt=jU(),dgt=Qb();Hpe.exports=function(t,r){fgt(t,r,{name:"annotations",handleItemDefaults:vgt})};function vgt(e,t,r){function n(M,T){return WU.coerce(e,t,dgt,M,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){hgt(e,t,r,n);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=u2.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=u2.getFromId(u,h);d._annIndices.push(t._index)}if(u2.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,m=u2.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);m!=="pixel"&&m!==h&&(m=t[v]="pixel");var b=m==="pixel"?l[c]:.4;u2.coercePosition(t,u,n,m,v,b)}n(f+"anchor"),n(f+"shift")}if(WU.noneOrAll(e,t,["x","y"]),o&&WU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),k=n("yclick");t._xclick=p===void 0?t.x:u2.cleanPosition(p,u,t.xref),t._yclick=k===void 0?t.y:u2.cleanPosition(k,u,t.yref)}}}});var Zpe=ye((plr,Xpe)=>{"use strict";var XU=Pr(),c2=ho(),pgt=AI().draw;Xpe.exports=function(t){var r=t._fullLayout,n=XU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return XU.syncOrAsync([pgt,ggt],t)};function ggt(e){var t=e._fullLayout;XU.filterVisible(t.annotations).forEach(function(r){var n=c2.getFromId(e,r.xref),i=c2.getFromId(e,r.yref),a=c2.getRefType(r.xref),o=c2.getRefType(r.yref);r._extremes={},a==="range"&&Wpe(r,n),o==="range"&&Wpe(r,i)})}function Wpe(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],l=e["_"+n+"padplus"],u=e["_"+n+"padminus"],c={x:1,y:-1}[n]*e[n+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,d=f-c,v=3*e.startarrowsize*e.arrowwidth||0,m=v+c,b=v-c,p;if(s===o){var k=c2.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),M=c2.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,m),ppadminus:Math.max(u,b)});p={min:[k.min[0],M.min[0]],max:[k.max[0],M.max[0]]}}else m=a?m+a:m,b=a?b-a:b,p=c2.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,m),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var Kpe=ye((glr,Ype)=>{"use strict";var mgt=Eo(),ygt=E6();Ype.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(d){var v=u[d],m=null;a?m=ygt(v,r.range):m=Math.pow(10,v),mgt(m)||(m=null),i(c+d,m)}for(var h=0;h{"use strict";var ZU=AI(),Jpe=Vpe();$pe.exports={moduleType:"component",name:"annotations",layoutAttributes:Qb(),supplyLayoutDefaults:jpe(),includeBasePlot:KM()("annotations"),calcAutorange:Zpe(),draw:ZU.draw,drawOne:ZU.drawOne,drawRaw:ZU.drawRaw,hasClickToShow:Jpe.hasClickToShow,onClick:Jpe.onClick,convertCoords:Kpe()}});var SI=ye((ylr,e0e)=>{"use strict";var kc=Qb(),_gt=mc().overrideAll,xgt=vl().templatedArray;e0e.exports=_gt(xgt("annotation",{visible:kc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:kc.xanchor,xshift:kc.xshift,yanchor:kc.yanchor,yshift:kc.yshift,text:kc.text,textangle:kc.textangle,font:kc.font,width:kc.width,height:kc.height,opacity:kc.opacity,align:kc.align,valign:kc.valign,bgcolor:kc.bgcolor,bordercolor:kc.bordercolor,borderpad:kc.borderpad,borderwidth:kc.borderwidth,showarrow:kc.showarrow,arrowcolor:kc.arrowcolor,arrowhead:kc.arrowhead,startarrowhead:kc.startarrowhead,arrowside:kc.arrowside,arrowsize:kc.arrowsize,startarrowsize:kc.startarrowsize,arrowwidth:kc.arrowwidth,standoff:kc.standoff,startstandoff:kc.startstandoff,hovertext:kc.hovertext,hoverlabel:kc.hoverlabel,captureevents:kc.captureevents}),"calc","from-root")});var r0e=ye((_lr,t0e)=>{"use strict";var YU=Pr(),bgt=ho(),wgt=Kd(),Tgt=jU(),Agt=SI();t0e.exports=function(t,r,n){wgt(t,r,{name:"annotations",handleItemDefaults:Sgt,fullLayout:n.fullLayout})};function Sgt(e,t,r,n){function i(s,l){return YU.coerce(e,t,Agt,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],bgt.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(Tgt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),YU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),YU.noneOrAll(e,t,["ax","ay"])))}});var o0e=ye((xlr,a0e)=>{"use strict";var i0e=Pr(),n0e=ho();a0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function KU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function Egt(e,t){var r=KU(e.projection,KU(e.view,KU(e.model,[t[0],t[1],t[2],1])));return r}s0e.exports=Egt});var u0e=ye((wlr,l0e)=>{"use strict";var kgt=AI().drawRaw,Cgt=JU(),Lgt=["x","y","z"];l0e.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=Cgt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),kgt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var h0e=ye((Tlr,f0e)=>{"use strict";var Pgt=Oa(),c0e=Pr();f0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:SI()}}},layoutAttributes:SI(),handleDefaults:r0e(),includeBasePlot:Igt,convert:o0e(),draw:u0e()};function Igt(e,t){var r=Pgt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var Alr=Rh(),d0e=ec(),v0e=pf().line,Rgt=Pd().dash,Bg=Ao().extendFlat,Dgt=vl().templatedArray,Slr=ZM(),AT=Vl(),p0e=Qb(),{shapeTexttemplateAttrs:Fgt,templatefallbackAttrs:zgt}=Pl(),qgt=z6();g0e.exports=Dgt("shape",{visible:Bg({},AT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Bg({},AT.legend,{editType:"calc+arraydraw"}),legendgroup:Bg({},AT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Bg({},AT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:d0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Bg({},AT.legendrank,{editType:"calc+arraydraw"}),legendwidth:Bg({},AT.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Bg({},p0e.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Bg({},p0e.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Bg({},v0e.color,{editType:"arraydraw"}),width:Bg({},v0e.width,{editType:"calc+arraydraw"}),dash:Bg({},Rgt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Fgt({},{keys:Object.keys(qgt)}),texttemplatefallback:zgt({editType:"arraydraw"}),font:d0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var y0e=ye((Elr,m0e)=>{"use strict";var ST=Pr(),e0=ho(),Ogt=Kd(),Bgt=$U(),m4=b_();m0e.exports=function(t,r){Ogt(t,r,{name:"shapes",handleItemDefaults:Ugt})};function Ngt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Ugt(e,t,r){function n(M,T){return ST.coerce(e,t,Bgt,M,T)}t._isShape=!0;var i=n("visible");if(!i)return;var a=n("showlegend");n("legend"),n("legendgroup"),a&&(n("legendwidth"),n("legendgrouptitle.text"),ST.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",l=n("type",s),u=l!=="path";u&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));var f=n("xsizemode"),h=n("ysizemode");let d=[.25,.75],v=[0,10];["x","y"].forEach(M=>{var T=M+"anchor",L=M==="x"?f:h,x={_fullLayout:r},C,S,g,P;let E=M+"ref",z=e[E];if(Array.isArray(z)&&z.length>0){let q=m4.countDefiningCoords(l,o,M);P=e0.coerceRefArray(e,t,x,M,void 0,"paper",q),t["_"+M+"refArray"]=!0}else P=e0.coerceRef(e,t,x,M,void 0,"paper");if(Array.isArray(P))P.forEach(function(q){e0.getRefType(q)==="range"&&(C=e0.getFromId(x,q),C&&C._shapeIndices.indexOf(t._index)===-1&&C._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(q){let V=P[q];e0.getRefType(V)==="range"?(C=e0.getFromId(x,V),S=m4.shapePositionToRange(C),g=m4.rangeToShapePosition(C),(C.type==="category"||C.type==="multicategory")&&n(M+q+"shift")):S=g=ST.identity;let Z=M+q,j=e[Z];if(e[Z]=S(e[Z],!0),L==="pixel"?n(Z,v[q]):e0.coercePosition(t,x,n,V,Z,d[q]),t[Z]=g(t[Z]),e[Z]=j,q===0&&L==="pixel"){let N=e[T];e[T]=S(e[T],!0),e0.coercePosition(t,x,n,V,T,.25),t[T]=g(t[T]),e[T]=N}});else{if(e0.getRefType(P)==="range"?(C=e0.getFromId(x,P),C._shapeIndices.push(t._index),g=m4.rangeToShapePosition(C),S=m4.shapePositionToRange(C),u&&(C.type==="category"||C.type==="multicategory")&&(n(M+"0shift"),n(M+"1shift"))):S=g=ST.identity,u){let V=M+"0",G=M+"1",Z=e[V],j=e[G];e[V]=S(e[V],!0),e[G]=S(e[G],!0),L==="pixel"?(n(V,v[0]),n(G,v[1])):(e0.coercePosition(t,x,n,P,V,d[0]),e0.coercePosition(t,x,n,P,G,d[1])),t[V]=g(t[V]),t[G]=g(t[G]),e[V]=Z,e[G]=j}if(L==="pixel"){let V=e[T];e[T]=S(e[T],!0),e0.coercePosition(t,x,n,P,T,.25),t[T]=g(t[T]),e[T]=V}}}),u&&ST.noneOrAll(e,t,["x0","x1","y0","y1"]);var m=l==="line",b,p;if(u&&(b=n("label.texttemplate"),n("label.texttemplatefallback")),b||(p=n("label.text")),p||b){n("label.textangle");var k=n("label.textposition",m?"middle":"middle center");n("label.xanchor"),n("label.yanchor",Ngt(m,k)),n("label.padding"),ST.coerceFont(n,"label.font",r.font)}}});var b0e=ye((klr,x0e)=>{"use strict";var Vgt=ka(),_0e=Pr();function Ggt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}x0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),_0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Vgt.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),s||l){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Ggt(o,u)),n("newshape.label.padding"),_0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var k0e=ye((Clr,E0e)=>{"use strict";var QU=Pr(),N0=ho(),zm=EM(),eV=b_();E0e.exports=function(t){var r=t._fullLayout,n=QU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i{o=N0.getFromId(t,f),a._extremes[o._id]=N0.findExtremes(o,h,T0e(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=N0.getFromId(t,a.xref),s=S0e(o,a,zm.paramIsX),s&&(a._extremes[o._id]=N0.findExtremes(o,s,T0e(a))));if(u==="array"){let c=w0e(t,a,"y");Object.entries(c).forEach(([f,h])=>{o=N0.getFromId(t,f),a._extremes[o._id]=N0.findExtremes(o,h,A0e(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=N0.getFromId(t,a.yref),s=S0e(o,a,zm.paramIsY),s&&(a._extremes[o._id]=N0.findExtremes(o,s,A0e(a))))}};function w0e(e,t,r){let n=t[r+"ref"],i=r==="x"?zm.paramIsX:zm.paramIsY;function a(f,h){f==="paper"||N0.getRefType(f)==="domain"||(o[f]||(o[f]=[]),o[f].push(h))}let o={};if(t.type==="path"&&t.path){let f=t.path.match(zm.segmentRE)||[];for(var s=0,l=0;lv&&(a(n[s],m[v]),s++)}}else a(n[0],t[r+"0"]),a(n[1],t[r+"1"]);let u={};for(let f in o){let h=N0.getFromId(e,f);if(h){var c=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(c=eV.decodeDate(c)),u[h._id]=o[f].map(c)}}return u}function T0e(e){return M0e(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function A0e(e){return M0e(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function M0e(e,t,r,n,i,a){var o=e/2,s=a;if(t==="pixel"){var l=i?eV.extractPathCoords(i,a?zm.paramIsY:zm.paramIsX):[r,n],u=QU.aggNums(Math.max,null,l),c=QU.aggNums(Math.min,null,l),f=c<0?Math.abs(c)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function S0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=i?e.r2c:e.d2c,c=t[n+"sizemode"]==="scaled";if(c?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],l=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,d=t.path.match(zm.segmentRE),v,m,b,p,k;for(e.type==="date"&&(u=eV.decodeDate(u)),v=0;vh&&(h=k)));if(h>=f)return[f,h]}}});var P0e=ye((Llr,L0e)=>{"use strict";var C0e=pP();L0e.exports={moduleType:"component",name:"shapes",layoutAttributes:$U(),supplyLayoutDefaults:y0e(),supplyDrawNewShapeDefaults:b0e(),includeBasePlot:KM()("shapes"),calcAutorange:k0e(),draw:C0e.draw,drawOne:C0e.drawOne}});var tV=ye((Ilr,R0e)=>{"use strict";var I0e=Rh(),Hgt=vl().templatedArray,Plr=ZM();R0e.exports=Hgt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",I0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",I0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var F0e=ye((Rlr,D0e)=>{"use strict";var jgt=Pr(),rV=ho(),Wgt=Kd(),Xgt=tV(),Zgt="images";D0e.exports=function(t,r){var n={name:Zgt,handleItemDefaults:Ygt};Wgt(t,r,n)};function Ygt(e,t,r){function n(h,d){return jgt.coerce(e,t,Xgt,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=rV.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=rV.getFromId(o,c);f._imgIndices.push(t._index)}rV.coercePosition(t,o,n,c,u,0)}return t}});var B0e=ye((Dlr,O0e)=>{"use strict";var z0e=Fa(),Kgt=So(),MT=ho(),q0e=df(),Jgt=Wp();O0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var N0e=Eo(),$gt=E6();U0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f{"use strict";G0e.exports={moduleType:"component",name:"images",layoutAttributes:tV(),supplyLayoutDefaults:F0e(),includeBasePlot:KM()("images"),draw:B0e(),convertCoords:V0e()}});var MI=ye((qlr,j0e)=>{"use strict";j0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var iV=ye((Olr,X0e)=>{"use strict";var Qgt=ec(),emt=Ih(),tmt=Ao().extendFlat,rmt=mc().overrideAll,imt=q6(),W0e=vl().templatedArray,nmt=W0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});X0e.exports=rmt(W0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:nmt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:tmt(imt({editType:"arraydraw"}),{}),font:Qgt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:emt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var J0e=ye((Blr,K0e)=>{"use strict";var EI=Pr(),Z0e=Kd(),Y0e=iV(),amt=MI(),omt=amt.name,smt=Y0e.buttons;K0e.exports=function(t,r){var n={name:omt,handleItemDefaults:lmt};Z0e(t,r,n)};function lmt(e,t,r){function n(o,s){return EI.coerce(e,t,Y0e,o,s)}var i=Z0e(e,t,{name:"buttons",handleItemDefaults:umt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),EI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),EI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function umt(e,t){function r(i,a){return EI.coerce(e,t,smt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var ege=ye((Nlr,Q0e)=>{"use strict";Q0e.exports=Mf;var Ng=Fa(),$0e=ka(),ET=So(),kI=Pr();function Mf(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Mf.barWidth=2;Mf.barLength=20;Mf.barRadius=2;Mf.barPad=1;Mf.barColor="#808BA4";Mf.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",d=f==="left",v=f==="right",m=f==="up",b=l,p=c,k,M,T,L;!h&&!d&&!v&&!m&&(this.position.direction="down",h=!0);var x=h||m;x?(k=s,M=k+b,h?(T=u,L=Math.min(T+p,o),p=L-T):(L=u+p,T=Math.max(L-p,0),p=L-T)):(T=u,L=T+p,d?(M=s+b,k=Math.max(M-b,0),b=M-k):(k=s,M=Math.min(k+b,a),b=M-k)),this._box={l:k,t:T,w:b,h:p};var C=l>b,S=Mf.barLength+2*Mf.barPad,g=Mf.barWidth+2*Mf.barPad,P=s,E=u+c;E+g>o&&(E=o-g);var z=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-horizontal",!0).call($0e.fill,Mf.barColor),C?(this.hbar=z.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:P,y:E,width:S,height:g}),this._hbarXMin=P+S/2,this._hbarTranslateMax=b-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var q=c>p,V=Mf.barWidth+2*Mf.barPad,G=Mf.barLength+2*Mf.barPad,Z=s+l,j=u;Z+V>a&&(Z=a-V);var N=this.container.selectAll("rect.scrollbar-vertical").data(q?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call($0e.fill,Mf.barColor),q?(this.vbar=N.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:Z,y:j,width:V,height:G}),this._vbarYMin=j+G/2,this._vbarTranslateMax=p-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,re=k-.5,ae=q?M+V+.5:M+.5,_e=T-.5,Ee=C?L+g+.5:L+.5,Ce=i._topdefs.selectAll("#"+H).data(C||q?[0]:[]);if(Ce.exit().remove(),Ce.enter().append("clipPath").attr("id",H).append("rect"),C||q?(this._clipRect=Ce.select("rect").attr({x:Math.floor(re),y:Math.floor(_e),width:Math.ceil(ae)-Math.floor(re),height:Math.ceil(Ee)-Math.floor(_e)}),this.container.call(ET.setClipUrl,H,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ET.setClipUrl,null),delete this._clipRect),C||q){var ge=Ng.behavior.drag().on("dragstart",function(){Ng.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ge);var ie=Ng.behavior.drag().on("dragstart",function(){Ng.event.sourceEvent.preventDefault(),Ng.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(ie),q&&this.vbar.on(".drag",null).call(ie)}this.setTranslate(r,n)};Mf.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ET.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Mf.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Ng.event.dx),this.vbar&&(r-=Ng.event.dy),this.setTranslate(t,r)};Mf.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Ng.event.deltaY),this.vbar&&(r+=Ng.event.deltaY),this.setTranslate(t,r)};Mf.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=kI.constrain(Ng.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=kI.constrain(Ng.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};Mf.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=kI.constrain(t||0,0,n),r=kI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(ET.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(ET.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(ET.setTranslate,t,r+o*this._vbarTranslateMax)}}});var cge=ye((Ulr,uge)=>{"use strict";var kT=Fa(),y4=Mc(),_4=ka(),CT=So(),t0=Pr(),CI=Zl(),cmt=vl().arrayEditor,rge=Dh().LINE_SPACING,es=MI(),fmt=ege();uge.exports=function(t){var r=t._fullLayout,n=t0.filterVisible(r[es.name]);function i(h){y4.autoMargin(t,sge(h))}var a=r._menulayer.selectAll("g."+es.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(es.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){kT.select(this).selectAll("g."+es.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+es.headerGroupClassName).data(n,hmt);o.enter().append("g").classed(es.headerGroupClassName,!0);for(var s=t0.ensureSingle(a,"g",es.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var _mt=MI();fge.exports={moduleType:"component",name:_mt.name,layoutAttributes:iV(),supplyLayoutDefaults:J0e(),draw:cge()}});var b4=ye((Glr,dge)=>{"use strict";dge.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var sV=ye((Hlr,gge)=>{"use strict";var vge=ec(),xmt=q6(),bmt=Ao().extendDeepAll,wmt=mc().overrideAll,Tmt=YS(),pge=vl().templatedArray,f2=b4(),Amt=pge("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});gge.exports=wmt(pge("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Amt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:bmt(xmt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Tmt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:vge({})},font:vge({}),activebgcolor:{valType:"color",dflt:f2.gripBgActiveColor},bgcolor:{valType:"color",dflt:f2.railBgColor},bordercolor:{valType:"color",dflt:f2.railBorderColor},borderwidth:{valType:"number",min:0,dflt:f2.railBorderWidth},ticklen:{valType:"number",min:0,dflt:f2.tickLength},tickcolor:{valType:"color",dflt:f2.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:f2.minorTickLength}}),"arraydraw","from-root")});var xge=ye((jlr,_ge)=>{"use strict";var LT=Pr(),mge=Kd(),yge=sV(),Smt=b4(),Mmt=Smt.name,Emt=yge.steps;_ge.exports=function(t,r){mge(t,r,{name:Mmt,handleItemDefaults:kmt})};function kmt(e,t,r){function n(f,h){return LT.coerce(e,t,yge,f,h)}for(var i=mge(e,t,{name:"steps",handleItemDefaults:Cmt}),a=0,o=0;o{"use strict";var Ug=Fa(),LI=Mc(),C_=ka(),Vg=So(),r0=Pr(),Lmt=r0.strTranslate,w4=Zl(),Pmt=vl().arrayEditor,Rs=b4(),cV=Dh(),Tge=cV.LINE_SPACING,lV=cV.FROM_TL,uV=cV.FROM_BR;Cge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=Imt(n,t),a=n._infolayer.selectAll("g."+Rs.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(Rs.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),LI.autoMargin(t,Age(c))}if(a.exit().each(function(){Ug.select(this).selectAll("g."+Rs.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+Rs.groupClassName).data(i,Rmt);s.enter().append("g").classed(Rs.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",Lmt(o-Rs.gripWidth*.5,t._dims.currentValueTotalHeight))}}function fV(e,t){var r=e._dims;return r.inputAreaStart+Rs.stepInset+(r.inputAreaLength-2*Rs.stepInset)*Math.min(1,Math.max(0,t))}function wge(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Rs.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Rs.stepInset-2*r.inputAreaStart)))}function Nmt(e,t,r){var n=r._dims,i=r0.ensureSingle(e,"rect",Rs.railTouchRectClass,function(a){a.call(Ege,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Rs.tickOffset+r.ticklen+n.labelHeight)}).call(C_.fill,r.bgcolor).attr("opacity",0),Vg.setTranslate(i,0,n.currentValueTotalHeight)}function Umt(e,t){var r=t._dims,n=r.inputAreaLength-Rs.railInset*2,i=r0.ensureSingle(e,"rect",Rs.railRectClass);i.attr({width:n,height:Rs.railWidth,rx:Rs.railRadius,ry:Rs.railRadius,"shape-rendering":"crispEdges"}).call(C_.stroke,t.bordercolor).call(C_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Vg.setTranslate(i,Rs.railInset,(r.inputAreaWidth-Rs.railWidth)*.5+r.currentValueTotalHeight)}});var Ige=ye((Xlr,Pge)=>{"use strict";var Vmt=b4();Pge.exports={moduleType:"component",name:Vmt.name,layoutAttributes:sV(),supplyLayoutDefaults:xge(),draw:Lge()}});var II=ye((Zlr,Dge)=>{"use strict";var Rge=Ih();Dge.exports={bgcolor:{valType:"color",dflt:Rge.background,editType:"plot"},bordercolor:{valType:"color",dflt:Rge.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var hV=ye((Ylr,Fge)=>{"use strict";Fge.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var RI=ye((Klr,zge)=>{"use strict";zge.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Bge=ye(FI=>{"use strict";var Gmt=df(),Hmt=Zl(),qge=RI(),jmt=Dh().LINE_SPACING,DI=qge.name;function Oge(e){var t=e&&e[DI];return t&&t.visible}FI.isVisible=Oge;FI.makeData=function(e){for(var t=Gmt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var zI=Pr(),Nge=vl(),Uge=df(),Wmt=II(),Xmt=hV();Vge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;zI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Nge.newContainer(a,"rangeslider");function l(L,x){return zI.coerce(o,s,Wmt,L,x)}var u,c;function f(L,x){return zI.coerce(u,c,Xmt,L,x)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var v=d.cartesian.filter(function(L){return L.slice(0,Math.max(0,L.indexOf("y")))===Uge.name2id(n)}).map(function(L){return L.slice(L.indexOf("y"),L.length)}),m=zI.simpleMap(v,Uge.id2name),b=0;b{"use strict";var Zmt=df().list,Ymt=Mg().getAutoRange,Kmt=RI();Hge.exports=function(t){for(var r=Zmt(t,"x",!0),n=0;n{"use strict";var qI=Fa(),Jmt=Oa(),$mt=Mc(),Jf=Pr(),OI=Jf.strTranslate,Xge=So(),L_=ka(),Qmt=qb(),eyt=mh(),dV=df(),tyt=yv(),ryt=Eg(),tl=RI();Zge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)Z=E[j+1];else if(G=N.pmax)Z=E[j+1];else if(G0?e.touches[0].clientX:0}function iyt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+tl.slideBoxClassName).node(),a=e.select("rect."+tl.grabAreaMinClassName).node(),o=e.select("rect."+tl.grabAreaMaxClassName).node();function s(){var l=qI.event,u=l.target,c=Wge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=tyt.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",b),v.addEventListener("mousemove",m),v.addEventListener("mouseup",b);function m(p){var k=Wge(p),M=+k-c,T,L,x;switch(u){case i:if(x="ew-resize",h+M>r._length||d+M<0)return;T=h+M,L=d+M;break;case a:if(x="col-resize",h+M>r._length)return;T=h+M,L=d;break;case o:if(x="col-resize",d+M<0)return;T=h,L=d+M;break;default:x="ew-resize",T=f,L=f+M;break}if(L{"use strict";var dyt=Pr(),vyt=II(),pyt=hV(),vV=Bge();Kge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:dyt.extendFlat({},vyt,{yaxis:pyt})}}},layoutAttributes:II(),handleDefaults:Gge(),calcAutorange:jge(),draw:Yge(),isVisible:vV.isVisible,makeData:vV.makeData,autoMarginOpts:vV.autoMarginOpts}});var BI=ye((rur,Qge)=>{"use strict";var gyt=ec(),$ge=Ih(),myt=vl().templatedArray,yyt=myt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Qge.exports={visible:{valType:"boolean",editType:"plot"},buttons:yyt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:gyt({editType:"plot"}),bgcolor:{valType:"color",dflt:$ge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:$ge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var pV=ye((iur,eme)=>{"use strict";eme.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var ime=ye((nur,rme)=>{"use strict";var NI=Pr(),_yt=ka(),xyt=vl(),byt=Kd(),tme=BI(),gV=pV();rme.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=xyt.newContainer(r,"rangeselector");function l(d,v){return NI.coerce(o,s,tme,d,v)}var u=byt(o,s,{name:"buttons",handleItemDefaults:wyt,calendar:a}),c=l("visible",u.length>0);if(c){var f=Tyt(r,n,i);l("x",f[0]),l("y",f[1]),NI.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),NI.coerceFont(l,"font",n.font);var h=l("bgcolor");l("activecolor",_yt.contrast(h,gV.lightAmount,gV.darkAmount)),l("bordercolor"),l("borderwidth")}};function wyt(e,t,r,n){var i=n.calendar;function a(l,u){return NI.coerce(e,t,tme.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function Tyt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var Ayt=Cq(),Syt=Pr().titleCase;nme.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=Myt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function Myt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=Ayt["utc"+Syt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var l=a.offset(n,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var dme=ye((our,hme)=>{"use strict";var VI=Fa(),Eyt=Oa(),kyt=Mc(),ome=ka(),fme=So(),Uy=Pr(),sme=Uy.strTranslate,UI=Zl(),Cyt=df(),_V=Dh(),lme=_V.LINE_SPACING,ume=_V.FROM_TL,cme=_V.FROM_BR,yV=pV(),Lyt=ame();hme.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(Pyt(t),Iyt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=VI.select(this),o=i,s=o.rangeselector,l=a.selectAll("g.button").data(Uy.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=VI.select(this),f=Lyt(o,u);u._isActive=Ryt(o,u,f),c.call(mV,s,u),c.call(Fyt,s,u,t),c.on("click",function(){t._dragged||Eyt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(mV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(mV,s,u)})}),qyt(t,l,s,o._name,a)})};function Pyt(e){for(var t=Cyt.list(e,"x",!0),r=[],n=0;n{"use strict";vme.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:BI()}}},layoutAttributes:BI(),handleDefaults:ime(),draw:dme()}});var Cc=ye(xV=>{"use strict";var gme=Ao().extendFlat;xV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:gme({},r,{}),y:gme({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};xV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Oyt=Pr(),Byt=_3().counter,Nyt=Cc().attributes,mme=Rh().idRegex,Uyt=vl(),bV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Byt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[mme.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[mme.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Nyt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function GI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Vyt(e,t){var r=e.grid||{},n=GI(t,r,"x"),i=GI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),l=o&&n!==r.xaxes&&s&&i!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=i.length),o&&(c=n.length));var f=Uyt.newContainer(t,"grid");function h(x,C){return Oyt.coerce(r,f,bV,x,C)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var m=h("pattern")==="independent";m&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",k=a?.2:.1,M=a?.3:.1,T,L;l&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:yme("x",h,k,T,v),y:yme("y",h,M,L,d,p)}}function yme(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),f=c*(1-o),h=0;h{"use strict";bme.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var Ame=ye((fur,Tme)=>{"use strict";var wme=Eo(),Hyt=Oa(),jyt=Pr(),Wyt=vl(),Xyt=TV();Tme.exports=function(e,t,r,n){var i="error_"+n.axis,a=Wyt.newContainer(t,i),o=e[i]||{};function s(v,m){return jyt.coerce(o,a,Xyt,v,m)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||wme(o.thickness)||wme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Hyt.traceIs(t,"gl3d")?0:4))}}});var AV=ye((hur,Mme)=>{"use strict";Mme.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(u,c){var f=+i[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+i[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=Sme(r,t.value),s=Sme(r,t.valueminus);return n||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function Sme(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var Cme=ye((dur,kme)=>{"use strict";var SV=Eo(),Zyt=Oa(),MV=ho(),Yyt=Pr(),Kyt=AV();kme.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Lme=Fa(),P_=Eo(),Jyt=So(),$yt=Ru();Pme.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,l=i&&i.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},d=f.error_y||{},v;f.ids&&(v=function(k){return k.id});var m=$yt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=Lme.select(this).selectAll("g.errorbar").data(c,v);if(b.exit().remove(),!!c.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var p=b.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(i.duration).style("opacity",1),Jyt.setClipUrl(b,n.layerClipId,t),b.each(function(k){var M=Lme.select(this),T=Qyt(k,o,s);if(!(m&&!k.vis)){var L,x=M.select("path.yerror");if(d.visible&&P_(T.x)&&P_(T.yh)&&P_(T.ys)){var C=d.width;L="M"+(T.x-C)+","+T.yh+"h"+2*C+"m-"+C+",0V"+T.ys,T.noYS||(L+="m-"+C+",0h"+2*C),a=!x.size(),a?x=M.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(x=x.transition().duration(i.duration).ease(i.easing)),x.attr("d",L)}else x.remove();var S=M.select("path.xerror");if(h.visible&&P_(T.y)&&P_(T.xh)&&P_(T.xs)){var g=(h.copy_ystyle?d:h).width;L="M"+T.xh+","+(T.y-g)+"v"+2*g+"m0,-"+g+"H"+T.xs,T.noXS||(L+="m0,-"+g+"v"+2*g),a=!S.size(),a?S=M.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(S=S.transition().duration(i.duration).ease(i.easing)),S.attr("d",L)}else S.remove()}})}})};function Qyt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),P_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),P_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Fme=ye((pur,Dme)=>{"use strict";var e1t=Fa(),Rme=ka();Dme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=e1t.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Rme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Rme.stroke,a.color)})}});var Ome=ye((gur,qme)=>{"use strict";var T4=Pr(),zme=mc().overrideAll,A4=TV(),h2={error_x:T4.extendFlat({},A4),error_y:T4.extendFlat({},A4)};delete h2.error_x.copy_zstyle;delete h2.error_y.copy_zstyle;delete h2.error_y.copy_ystyle;var S4={error_x:T4.extendFlat({},A4),error_y:T4.extendFlat({},A4),error_z:T4.extendFlat({},A4)};delete S4.error_x.copy_ystyle;delete S4.error_y.copy_ystyle;delete S4.error_z.copy_ystyle;delete S4.error_z.copy_zstyle;qme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:h2,bar:h2,histogram:h2,scatter3d:zme(S4,"calc","nested"),scattergl:zme(h2,"calc","nested")}},supplyDefaults:Ame(),calc:Cme(),makeComputeError:AV(),plot:Ime(),style:Fme(),hoverInfo:t1t};function t1t(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Nme=ye((mur,Bme)=>{"use strict";Bme.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Xme=ye((yur,Wme)=>{"use strict";var I_=Fa(),EV=fd(),jI=Mc(),Ume=Oa(),Vy=ho(),HI=yv(),U0=Pr(),Hg=U0.strTranslate,jme=Ao().extendFlat,kV=Eg(),Gg=So(),CV=ka(),r1t=qb(),i1t=Zl(),n1t=pv().flipScale,a1t=v4(),o1t=gI(),s1t=Rd(),LV=Dh(),Vme=LV.LINE_SPACING,Gme=LV.FROM_TL,Hme=LV.FROM_BR,gf=Nme().cn;function l1t(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+gf.colorbar).data(u1t(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(gf.colorbar,!0),r.each(function(n){var i=I_.select(this);U0.ensureSingle(i,"rect",gf.cbbg),U0.ensureSingle(i,"g",gf.cbfills),U0.ensureSingle(i,"g",gf.cblines),U0.ensureSingle(i,"g",gf.cbaxis,function(o){o.classed(gf.crisp,!0)}),U0.ensureSingle(i,"g",gf.cbtitleunshift,function(o){o.append("g").classed(gf.cbtitle,!0)}),U0.ensureSingle(i,"rect",gf.cboutline);var a=c1t(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&f1t(i,n,e)}),r.exit().each(function(n){jI.autoMargin(e,n._id)}).remove(),r.order()}function u1t(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(M){return jme(M,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?n1t(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var Pe=Math.pow(10,Math.floor(Math.log(me)/Math.LN10));Be*=Pe*U0.roundUp(me/Pe,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(ke.tick0=0)}ke.dtick=Be}ke.domain=n?[ie+v/T.h,ie+H-v/T.h]:[ie+d/T.w,ie+H-d/T.w],ke.setScale(),e.attr("transform",Hg(Math.round(T.l),Math.round(T.t)));var ce=e.select("."+gf.cbtitleunshift).attr("transform",Hg(-Math.round(T.l),-Math.round(T.t))),He=ke.ticklabelposition,lt=ke.title.font.size,mt=e.select("."+gf.cbaxis),Ht,at=0,ct=0;function ar(Ue,Ae){var rt={propContainer:ke,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:M._dfltTitle.colorbar,containerGroup:e.select("."+gf.cbtitle)},St=Ue.charAt(0)==="h"?Ue.slice(1):"h"+Ue;e.selectAll("."+St+",."+St+"-math-group").remove(),r1t.draw(r,Ue,jme(rt,Ae||{}))}function Vt(){if(n&&be||!n&&!be){var Ue,Ae;S==="top"&&(Ue=d+T.l+re*m,Ae=v+T.t+ae*(1-ie-H)+3+lt*.75),S==="bottom"&&(Ue=d+T.l+re*m,Ae=v+T.t+ae*(1-ie)-3-lt*.25),S==="right"&&(Ae=v+T.t+ae*b+3+lt*.75,Ue=d+T.l+re*ie),ar(ke._id+"title",{attributes:{x:Ue,y:Ae,"text-anchor":n?"start":"middle"}})}}function rr(){if(n&&!be||!n&&be){var Ue=ke.position||0,Ae=ke._offset+ke._length/2,rt,St;if(S==="right")St=Ae,rt=T.l+re*Ue+10+lt*(ke.showticklabels?1:.5);else if(rt=Ae,S==="bottom"&&(St=T.t+ae*Ue+10+(He.indexOf("inside")===-1?ke.tickfont.size:0)+(ke.ticks!=="inside"&&t.ticklen||0)),S==="top"){var Tt=C.text.split("
").length;St=T.t+ae*Ue+10-Z-Vme*lt*Tt}ar((n?"h":"v")+ke._id+"title",{avoid:{selection:I_.select(r).selectAll("g."+ke._id+"tick"),side:S,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?M.width:M.height},attributes:{x:rt,y:St,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function tt(){if(!n&&!be||n&&be){var Ue=e.select("."+gf.cbtitle),Ae=Ue.select("text"),rt=[-l/2,l/2],St=Ue.select(".h"+ke._id+"title-math-group").node(),Tt=15.6;Ae.node()&&(Tt=parseInt(Ae.node().style.fontSize,10)*Vme);var dt;if(St?(dt=Gg.bBox(St),ct=dt.width,at=dt.height,at>Tt&&(rt[1]-=(at-Tt)/2)):Ae.node()&&!Ae.classed(gf.jsPlaceholder)&&(dt=Gg.bBox(Ae.node()),ct=dt.width,at=dt.height),n){if(at){if(at+=5,S==="top")ke.domain[1]-=at/T.h,rt[1]*=-1;else{ke.domain[0]+=at/T.h;var Et=i1t.lineCount(Ae);rt[1]+=(1-Et)*Tt}Ue.attr("transform",Hg(rt[0],rt[1])),ke.setScale()}}else ct&&(S==="right"&&(ke.domain[0]+=(ct+lt/2)/T.w),Ue.attr("transform",Hg(rt[0],rt[1])),ke.setScale())}e.selectAll("."+gf.cbfills+",."+gf.cblines).attr("transform",n?Hg(0,Math.round(T.h*(1-ke.domain[1]))):Hg(Math.round(T.w*ke.domain[0]),0)),mt.attr("transform",n?Hg(0,Math.round(-T.t)):Hg(Math.round(-T.l),0));var pt=e.select("."+gf.cbfills).selectAll("rect."+gf.cbfill).attr("style","").data(V);pt.enter().append("rect").classed(gf.cbfill,!0).attr("style",""),pt.exit().remove();var jt=g.map(ke.c2p).map(Math.round).sort(function(qr,jr){return qr-jr});pt.each(function(qr,jr){var gt=[jr===0?g[0]:(V[jr]+V[jr-1])/2,jr===V.length-1?g[1]:(V[jr]+V[jr+1])/2].map(ke.c2p).map(Math.round);n&&(gt[1]=U0.constrain(gt[1]+(gt[1]>gt[0])?1:-1,jt[0],jt[1]));var Ge=I_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",I_.min(gt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(I_.max(gt)-I_.min(gt),2));if(t._fillgradient)Gg.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Je=E(qr).replace("e-","");Ge.attr("fill",EV(Je).toHexString())}});var or=e.select("."+gf.cblines).selectAll("path."+gf.cbline).data(x.color&&x.width?G:[]);or.enter().append("path").classed(gf.cbline,!0),or.exit().remove(),or.each(function(qr){var jr=_e,gt=Math.round(ke.c2p(qr))+x.width/2%1;I_.select(this).attr("d","M"+(n?jr+","+gt:gt+","+jr)+(n?"h":"v")+Z).call(Gg.lineGroupStyle,x.width,P(qr),x.dash)}),mt.selectAll("g."+ke._id+"tick,path").remove();var mr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Ar=Vy.calcTicks(ke),ei=Vy.getTickSigns(ke)[2];return Vy.drawTicks(r,ke,{vals:ke.ticks==="inside"?Vy.clipEnds(ke,Ar):Ar,layer:mt,path:Vy.makeTickPath(ke,mr,ei),transFn:Vy.makeTransTickFn(ke)}),Vy.drawLabels(r,ke,{vals:Ar,layer:mt,transFn:Vy.makeTransTickLabelFn(ke),labelFns:Vy.makeLabelFns(ke,mr)})}function je(){var Ue,Ae=Z+l/2;He.indexOf("inside")===-1&&(Ue=Gg.bBox(mt.node()),Ae+=n?Ue.width:Ue.height),Ht=ce.select("text");var rt=0,St=n&&S==="top",Tt=!n&&S==="right",dt=0;if(Ht.node()&&!Ht.classed(gf.jsPlaceholder)){var Et,pt=ce.select(".h"+ke._id+"title-math-group").node();pt&&(n&&be||!n&&!be)?(Ue=Gg.bBox(pt),rt=Ue.width,Et=Ue.height):(Ue=Gg.bBox(ce.node()),rt=Ue.right-T.l-(n?_e:Se),Et=Ue.bottom-T.t-(n?Se:_e),!n&&S==="top"&&(Ae+=Ue.height,dt=Ue.height)),Tt&&(Ht.attr("transform",Hg(rt/2+lt/2,0)),rt*=2),Ae=Math.max(Ae,n?rt:Et)}var jt=(n?d:v)*2+Ae+u+l/2,or=0;!n&&C.text&&h==="bottom"&&b<=0&&(or=jt/2,jt+=or,dt+=or),M._hColorbarMoveTitle=or,M._hColorbarMoveCBTitle=dt;var mr=u+l,Ar=(n?_e:Se)-mr/2-(n?d:0),ei=(n?Se:_e)-(n?N:v+dt-or);e.select("."+gf.cbbg).attr("x",Ar).attr("y",ei).attr(n?"width":"height",Math.max(jt-or,2)).attr(n?"height":"width",Math.max(N+mr,2)).call(CV.fill,c).call(CV.stroke,t.bordercolor).style("stroke-width",u);var qr=Tt?Math.max(rt-10,0):0;e.selectAll("."+gf.cboutline).attr("x",(n?_e:Se+d)+qr).attr("y",(n?Se+v-N:_e)+(St?at:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+at:2*d+qr),2)).call(CV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var jr=n?Ee*jt:0,gt=n?0:(1-Ce)*jt-dt;if(jr=k?T.l-jr:-jr,gt=p?T.t-gt:-gt,e.attr("transform",Hg(jr,gt)),!n&&(u||EV(c).getAlpha()&&!EV.equals(M.paper_bgcolor,c))){var Ge=mt.selectAll("text"),Je=Ge[0].length,We=e.select("."+gf.cbbg).node(),et=Gg.bBox(We),xt=Gg.getTranslate(e),At=2;Ge.each(function(mi,un){var Fn=0,An=Je-1;if(un===Fn||un===An){var Hn=Gg.bBox(this),Qn=Gg.getTranslate(this),Vi;if(un===An){var Jn=Hn.right+Qn.x,Yn=et.right+xt.x+Se-u-At+m;Vi=Yn-Jn,Vi>0&&(Vi=0)}else if(un===Fn){var Gt=Hn.left+Qn.x,wt=et.left+xt.x+Se+u+At;Vi=wt-Gt,Vi<0&&(Vi=0)}Vi&&(Je<3?this.setAttribute("transform","translate("+Vi+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Kt={},Qt=Gme[f],Mr=Hme[f],Gr=Gme[h],Ir=Hme[h],Yr=jt-Z;n?(a==="pixels"?(Kt.y=b,Kt.t=N*Gr,Kt.b=N*Ir):(Kt.t=Kt.b=0,Kt.yt=b+i*Gr,Kt.yb=b-i*Ir),s==="pixels"?(Kt.x=m,Kt.l=jt*Qt,Kt.r=jt*Mr):(Kt.l=Yr*Qt,Kt.r=Yr*Mr,Kt.xl=m-o*Qt,Kt.xr=m+o*Mr)):(a==="pixels"?(Kt.x=m,Kt.l=N*Qt,Kt.r=N*Mr):(Kt.l=Kt.r=0,Kt.xl=m+i*Qt,Kt.xr=m-i*Mr),s==="pixels"?(Kt.y=1-b,Kt.t=jt*Gr,Kt.b=jt*Ir):(Kt.t=Yr*Gr,Kt.b=Yr*Ir,Kt.yt=b-o*Gr,Kt.yb=b+o*Ir));var _i=t.y<.5?"b":"t",Pi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var ai={r:M.width-Ar-jr,l:Ar+Kt.r,b:M.height-ei-gt,t:ei+Kt.b};k&&p?jI.autoMargin(r,t._id,Kt):k?r._fullLayout._reservedMargin[t._id][_i]=ai[_i]:p||n?r._fullLayout._reservedMargin[t._id][Pi]=ai[Pi]:r._fullLayout._reservedMargin[t._id][_i]=ai[_i]}return U0.syncOrAsync([jI.previousPromises,Vt,tt,rr,jI.previousPromises,je],r)}function f1t(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;HI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),kV(e)},moveFn:function(u,c){e.attr("transform",o+Hg(u,c)),s=HI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=HI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=HI.getCursor(s,l,t.xanchor,t.yanchor);kV(e,f)},doneFn:function(){if(kV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?Ume.call("_guiRestyle",r,u,t._traceIndex):Ume.call("_guiRelayout",r,u)}}})}function h1t(e,t,r){var n=t._levels,i=[],a=[],o,s,l=n.end+n.size/100,u=n.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";Zme.exports={moduleType:"component",name:"colorbar",attributes:fL(),supplyDefaults:BO(),draw:Xme().draw,hasColorbar:IO()}});var Jme=ye((xur,Kme)=>{"use strict";Kme.exports={moduleType:"component",name:"legend",layoutAttributes:RB(),supplyLayoutDefaults:FB(),draw:YB(),style:jB()}});var Qme=ye((bur,$me)=>{"use strict";$me.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var tye=ye((wur,eye)=>{"use strict";eye.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var IV=ye((Tur,aye)=>{"use strict";var v1t=Oa(),nye=Pr(),PV=nye.extendFlat,rye=nye.extendDeep;function iye(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function p1t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}aye.exports=function(t,r){var n,i=t.data,a=t.layout,o=rye([],i),s=rye({},a,iye(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(n=0;n{"use strict";var g1t=Sb().EventEmitter,m1t=Oa(),y1t=Pr(),oye=Oy(),_1t=IV(),x1t=$P(),b1t=QP();function w1t(e,t){var r=new g1t,n=_1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=oye.getDelay(i._fullLayout);setTimeout(function(){var l=x1t(i),u=document.createElement("canvas");u.id=y1t.randstr(),r=b1t({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=oye.getRedrawFunc(i);return m1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}sye.exports=w1t});var fye=ye((Sur,cye)=>{"use strict";var uye=Oy(),T1t={getDelay:uye.getDelay,getRedrawFunc:uye.getRedrawFunc,clone:IV(),toSVG:$P(),svgToImg:QP(),toImage:lye(),downloadImage:fU()};cye.exports=T1t});var dye=ye(Gy=>{"use strict";Gy.version=OS().version;See();dne();var A1t=Oa(),M4=Gy.register=A1t.register,DV=Rde(),hye=Object.keys(DV);for(WI=0;WI{"use strict";vye.exports=dye()});var qm=ye((kur,xye)=>{"use strict";var Bf=pf(),gye=vf().axisHoverFormat,{hovertemplateAttrs:S1t,texttemplateAttrs:M1t,templatefallbackAttrs:mye}=Pl(),_ye=Tu(),E1t=ec(),yye=S_(),k1t=Pd().pattern,d2=Ao().extendFlat,FV=E1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),C1t=Bf.marker,L1t=C1t.line,P1t=d2({},L1t.width,{dflt:0}),I1t=d2({width:P1t,editType:"calc"},_ye("marker.line")),R1t=d2({line:I1t,editType:"calc"},_ye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:k1t,cornerradius:{valType:"any",editType:"calc"}});xye.exports={x:Bf.x,x0:Bf.x0,dx:Bf.dx,y:Bf.y,y0:Bf.y0,dy:Bf.dy,xperiod:Bf.xperiod,yperiod:Bf.yperiod,xperiod0:Bf.xperiod0,yperiod0:Bf.yperiod0,xperiodalignment:Bf.xperiodalignment,yperiodalignment:Bf.yperiodalignment,xhoverformat:gye("x"),yhoverformat:gye("y"),text:Bf.text,texttemplate:M1t({editType:"plot"},{keys:yye.eventDataKeys}),texttemplatefallback:mye({editType:"plot"}),hovertext:Bf.hovertext,hovertemplate:S1t({},{keys:yye.eventDataKeys}),hovertemplatefallback:mye(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:d2({},FV,{}),insidetextfont:d2({},FV,{}),outsidetextfont:d2({},FV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:d2({},Bf.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:R1t,offsetgroup:Bf.offsetgroup,alignmentgroup:Bf.alignmentgroup,selected:{marker:{opacity:Bf.selected.marker.opacity,color:Bf.selected.marker.color,editType:"style"},textfont:Bf.selected.textfont,editType:"style"},unselected:{marker:{opacity:Bf.unselected.marker.opacity,color:Bf.unselected.marker.color,editType:"style"},textfont:Bf.unselected.textfont,editType:"style"},zorder:Bf.zorder}});var ZI=ye((Cur,bye)=>{"use strict";bye.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var YI=ye((Lur,Aye)=>{"use strict";var D1t=ka(),wye=pv().hasColorscale,Tye=td(),F1t=Pr().coercePattern;Aye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=wye(t,"marker");s&&Tye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",D1t.defaultLine),wye(t,"marker.line")&&Tye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),F1t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var i0=ye((Pur,Lye)=>{"use strict";var Sye=Eo(),IT=Pr(),Mye=ka(),z1t=Oa(),q1t=cT(),O1t=Dg(),B1t=YI(),N1t=i2(),Eye=qm(),KI=IT.coerceFont;function U1t(e,t,r,n){function i(u,c){return IT.coerce(e,t,Eye,u,c)}var a=q1t(e,t,n,i);if(!a){t.visible=!1;return}O1t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");Cye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),B1t(e,t,i,r,n);var s=(t.marker.line||{}).color,l=z1t.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||Mye.defaultLine,{axis:"y"}),l(e,t,s||Mye.defaultLine,{axis:"x",inherit:"y"}),IT.coerceSelectionMarkerOpacity(t,i)}function V1t(e,t){var r,n;function i(s,l){return IT.coerce(n._input,n,Eye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&Sye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Cye(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",v=d||i==="inside",m=d||i==="outside";if(v||m){var b=KI(n,"textfont",r.font),p=IT.extendFlat({},b),k=e.textfont&&e.textfont.color,M=!k;if(M&&delete p.color,KI(n,"insidetextfont",p),h){var T=IT.extendFlat({},b);M&&delete T.color,KI(n,"pathbar.textfont",T)}m&&KI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),l&&n("constraintext"),u&&n("cliponaxis"),c&&n("textangle"),n("texttemplate"),n("texttemplatefallback")}v&&f&&n("insidetextanchor")}Lye.exports={supplyDefaults:U1t,crossTraceDefaults:V1t,handleText:Cye,validateCornerradius:kye}});var zV=ye((Iur,Pye)=>{"use strict";var G1t=Oa(),H1t=ho(),j1t=Pr(),W1t=ZI(),X1t=i0().validateCornerradius;Pye.exports=function(e,t,r){function n(m,b){return j1t.coerce(e,t,W1t,m,b)}for(var i=!1,a=!1,o=!1,s={},l=n("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var d=H1t.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}l!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var v=n("barcornerradius");t.barcornerradius=X1t(v)}});var E4=ye((Rur,Iye)=>{"use strict";var RT=Pr();Iye.exports=function(t,r){for(var n=0;n{"use strict";var Rye=ho(),Dye=zg(),Fye=pv().hasColorscale,zye=gv(),Z1t=E4(),Y1t=q0();qye.exports=function(t,r){var n=Rye.getFromId(t,r.xaxis||"x"),i=Rye.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",f),s=i.makeCalcdata(r,"y"),l=Dye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=Dye(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),v=0;v{"use strict";var K1t=Fa(),J1t=Pr();function $1t(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:i/l.fontSize;var u=K1t.select(this).select("text");J1t.setTransormAndDisplay(u,l)}})}}function Q1t(e,t,r){if(r.uniformtext.mode){var n=Bye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var t_t=Eo(),r_t=fd(),Uye=Pr().isArrayOrTypedArray;v2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};v2.coerceNumber=function(e,t,r){if(t_t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};v2.coerceColor=function(e,t,r){return r_t(t).isValid()?t:r!==void 0?r:e.dflt};v2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};v2.getValue=function(e,t){var r;return Uye(e)?t{"use strict";var k4=Fa(),i_t=ka(),C4=So(),Vye=Pr(),Gye=Oa(),Hye=bv().resizeText,qV=qm(),n_t=qV.textfont,a_t=qV.insidetextfont,o_t=qV.outsidetextfont,ev=JI();function s_t(e){var t=k4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Hye(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&k4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=k4.select(this),o=i[0].trace;jye(a,o,e)}),Gye.getComponentMethod("errorbars","style")(t)}function jye(e,t,r){C4.pointStyle(e.selectAll("path"),t,r),Wye(e,t,r)}function Wye(e,t,r){e.selectAll("text").each(function(n){var i=k4.select(this),a=Vye.ensureUniformFontSize(r,Xye(i,n,t,r));C4.font(i,a)})}function l_t(e,t,r){var n=t[0].trace;n.selectedpoints?u_t(r,n,e):(jye(r,n,e),Gye.getComponentMethod("errorbars","style")(r))}function u_t(e,t,r){C4.selectedPointStyle(e.selectAll("path"),t),c_t(e.selectAll("text"),t,r)}function c_t(e,t,r){e.each(function(n){var i=k4.select(this),a;if(n.selected){a=Vye.ensureUniformFontSize(r,Xye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),C4.font(i,a)}else C4.selectedTextStyle(i,t)})}function Xye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Jye(t,r);a=Yye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Kye(r,t.i,i));return a}function Zye(e,t,r){return OV(n_t,e.textfont,t,r)}function Yye(e,t,r,n){var i=Zye(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:i_t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),OV(a_t,e.insidetextfont,t,i)}function Kye(e,t,r){var n=Zye(e,t,r);return OV(o_t,e.outsidetextfont,t,n)}function OV(e,t,r,n){t=t||{};var i=ev.getValue(t.family,r),a=ev.getValue(t.size,r),o=ev.getValue(t.color,r),s=ev.getValue(t.weight,r),l=ev.getValue(t.style,r),u=ev.getValue(t.variant,r),c=ev.getValue(t.textcase,r),f=ev.getValue(t.lineposition,r),h=ev.getValue(t.shadow,r);return{family:ev.coerceString(e.family,i,n.family),size:ev.coerceNumber(e.size,a,n.size),color:ev.coerceColor(e.color,o,n.color),weight:ev.coerceString(e.weight,s,n.weight),style:ev.coerceString(e.style,l,n.style),variant:ev.coerceString(e.variant,u,n.variant),textcase:ev.coerceString(e.variant,c,n.textcase),lineposition:ev.coerceString(e.variant,f,n.lineposition),shadow:ev.coerceString(e.variant,h,n.shadow)}}function Jye(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}$ye.exports={style:s_t,styleTextPoints:Wye,styleOnSelect:l_t,getInsideTextFont:Yye,getOutsideTextFont:Kye,getBarColor:Jye,resizeText:Hye}});var g2=ye((Our,o1e)=>{"use strict";var $I=Fa(),QI=Eo(),Fd=Pr(),f_t=Zl(),h_t=ka(),R_=So(),d_t=Oa(),e8=ho().tickText,Qye=bv(),v_t=Qye.recordMinTextSize,p_t=Qye.clearMinTextSize,BV=V0(),DT=JI(),g_t=S_(),e1e=qm(),m_t=e1e.text,y_t=e1e.textposition,__t=ip().appendArrayPointValue,Gv=g_t.TEXTPAD;function x_t(e){return e.id}function b_t(e){if(e.ids)return x_t}function NV(e){return(e>0)-(e<0)}function Om(e,t){return e0}function T_t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;i||(i={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},p_t("bar",l));var c=Fd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=$I.select(this),d=f[0].trace,v=f[0].t,m=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",k=d.type==="bar",M=k||b,T=0;m&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",x=r1e(i),C=Fd.ensureSingle(h,"g","points"),S=b_t(d),g=C.selectAll("g.point").data(Fd.identity,S);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(E,z){var q=$I.select(this),V=w_t(E,o,s,L),G=V[0][0],Z=V[0][1],j=V[1][0],N=V[1][1],H=(L?Z-G:N-j)===0;H&&M&&DT.getLineWidth(d,E)&&(H=!1),H||(H=!QI(G)||!QI(Z)||!QI(j)||!QI(N)),E.isBlank=H,H&&(L?Z=G:N=j),T&&!H&&(L?(G-=Om(G,Z)*T,Z+=Om(G,Z)*T):(j-=Om(j,N)*T,N+=Om(j,N)*T));var re,ae;if(d.type==="waterfall"){if(!H){var _e=d[E.dir].marker;re=_e.line.width,ae=_e.color}}else re=DT.getLineWidth(d,E),ae=E.mc||d.marker.color;function Ee(Ae){var rt=$I.round(re/2%1,2);return i.gap===0&&i.groupgap===0?$I.round(Math.round(Ae)-rt,2):Ae}function Ce(Ae,rt,St){return St&&Ae===rt?Ae:Math.abs(Ae-rt)>=2?Ee(Ae):Ae>rt?Math.ceil(Ae):Math.floor(Ae)}var ge=h_t.opacity(ae),ie=ge<1||re>.01?Ee:Ce;e._context.staticPlot||(G=ie(G,Z,L),Z=ie(Z,G,L),j=ie(j,N,!L),N=ie(N,j,!L));var Se=L?o.c2p:s.c2p,ke;E.s0>0?ke=E._sMax:E.s0<0?ke=E._sMin:ke=E.s1>0?E._sMax:E._sMin;function be(Ae,rt){if(!Ae)return 0;var St=Math.abs(L?N-j:Z-G),Tt=Math.abs(L?Z-G:N-j),dt=ie(Math.abs(Se(ke,!0)-Se(0,!0))),Et=E.hasB?Math.min(St/2,Tt/2):Math.min(St/2,dt),pt;if(rt==="%"){var jt=Math.min(50,Ae);pt=St*(jt/100)}else pt=Ae;return ie(Math.max(Math.min(pt,Et),0))}var Be=k||p?be(v.cornerradiusvalue,v.cornerradiusform):0,Le,me,Pe="M"+G+","+j+"V"+N+"H"+Z+"V"+j+"Z",ce=0;if(Be&&E.s){var He=NV(E.s0)===0||NV(E.s)===NV(E.s0)?E.s1:E.s0;if(ce=ie(E.hasB?0:Math.abs(Se(ke,!0)-Se(He,!0))),ce0?Math.sqrt(ce*(2*Be-ce)):0,ar=lt>0?Math.max:Math.min;Le="M"+G+","+j+"V"+(N-at*mt)+"H"+ar(Z-(Be-ce)*lt,G)+"A "+Be+","+Be+" 0 0 "+Ht+" "+Z+","+(N-Be*mt-ct)+"V"+(j+Be*mt+ct)+"A "+Be+","+Be+" 0 0 "+Ht+" "+ar(Z-(Be-ce)*lt,G)+","+(j+at*mt)+"Z"}else if(E.hasB)Le="M"+(G+Be*lt)+","+j+"A "+Be+","+Be+" 0 0 "+Ht+" "+G+","+(j+Be*mt)+"V"+(N-Be*mt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(G+Be*lt)+","+N+"H"+(Z-Be*lt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+Z+","+(N-Be*mt)+"V"+(j+Be*mt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(Z-Be*lt)+","+j+"Z";else{me=Math.abs(N-j)+ce;var Vt=me0?Math.sqrt(ce*(2*Be-ce)):0,tt=mt>0?Math.max:Math.min;Le="M"+(G+Vt*lt)+","+j+"V"+tt(N-(Be-ce)*mt,j)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(G+Be*lt-rr)+","+N+"H"+(Z-Be*lt+rr)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(Z-Vt*lt)+","+tt(N-(Be-ce)*mt,j)+"V"+j+"Z"}}else Le=Pe}else Le=Pe;var je=t1e(Fd.ensureSingle(q,"path"),l,i,a);if(je.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-j))||H&&e._context.staticPlot?"M0,0Z":Le).call(R_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var Ue=R_.makePointStyleFns(d);R_.singlePointStyle(E,je,d,Ue,e)}A_t(e,t,q,f,z,G,Z,j,N,Be,ce,i,a),t.layerClipId&&R_.hideOutsideRangePoint(E,q.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;R_.setClipUrl(h,P?null:t.layerClipId,e)});d_t.getComponentMethod("errorbars","plot")(e,c,t,i)}function A_t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,m=e._fullLayout,b;function p(me,Pe,ce){var He=Fd.ensureSingle(me,"text").text(Pe).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(R_.font,ce).call(f_t.convertToTspans,e);return He}var k=n[0].trace,M=k.orientation==="h",T=E_t(m,n,i,d,v);b=k_t(k,i);var L=f.mode==="stack"||f.mode==="relative",x=n[i],C=!L||x._outmost,S=x.hasB,g=u&&u-c>Gv;if(!T||b==="none"||(x.isBlank||a===o||s===l)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=m.font,E=BV.getBarColor(n[i],k),z=BV.getInsideTextFont(k,i,P,E),q=BV.getOutsideTextFont(k,i,P),V=k.insidetextanchor||"end",G=r.datum();M?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Ee>0,ie;g?S?ie=p2(N-2*u,H,_e,Ee,M)||p2(N,H-2*u,_e,Ee,M):M?ie=p2(N-(u-c),H,_e,Ee,M)||p2(N,H-2*(u-c),_e,Ee,M):ie=p2(N,H-(u-c),_e,Ee,M)||p2(N-2*(u-c),H,_e,Ee,M):ie=p2(N,H,_e,Ee,M),ge&&ie?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Ce=Fd.ensureUniformFontSize(e,b==="outside"?q:z),re=p(r,T,Ce);var Se=re.attr("transform");if(re.attr("transform",""),ae=R_.bBox(re.node()),_e=ae.width,Ee=ae.height,re.attr("transform",Se),_e<=0||Ee<=0){re.remove();return}}var ke=k.textangle,be,Be;b==="outside"?(Be=k.constraintext==="both"||k.constraintext==="outside",be=M_t(a,o,s,l,ae,{isHorizontal:M,constrained:Be,angle:ke})):(Be=k.constraintext==="both"||k.constraintext==="inside",be=a1e(a,o,s,l,ae,{isHorizontal:M,constrained:Be,angle:ke,anchor:V,hasB:S,r:u,overhead:c})),be.fontSize=Ce.size,v_t(k.type==="histogram"?"bar":k.type,be,m),x.transform=be;var Le=t1e(re,m,f,h);Fd.setTransormAndDisplay(Le,be)}function p2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function i1e(e){return e==="auto"?0:e}function n1e(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function a1e(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,d=(h+1)/2,v=1-d,m=a.hasB,b=a.r,p=a.overhead,k=i.width,M=i.height,T=Math.abs(t-e),L=Math.abs(n-r),x=T>2*Gv&&L>2*Gv?Gv:0;T-=2*x,L-=2*x;var C=i1e(l);l==="auto"&&!(k<=T&&M<=L)&&(k>T||M>L)&&(!(k>L||M>T)||kGv){var E=S_t(e,t,r,n,S,b,p,o,m);g=E.scale,P=E.pad}else g=1,s&&(g=Math.min(1,T/S.x,L/S.y)),P=0;var z=i.left*v+i.right*d,q=(i.top+i.bottom)/2,V=(e+Gv)*v+(t-Gv)*d,G=(r+n)/2,Z=0,j=0;if(f||c){var N=(o?S.x:S.y)/2;b&&(c||m)&&(x+=P);var H=o?Om(e,t):Om(r,n);o?f?(V=e+H*x,Z=-H*N):(V=t-H*x,Z=H*N):f?(G=r+H*x,j=-H*N):(G=n-H*x,j=H*N)}return{textX:z,textY:q,targetX:V,targetY:G,anchorX:Z,anchorY:j,scale:g,rotate:C}}function S_t(e,t,r,n,i,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Gv),c=Math.max(0,Math.abs(n-r)-2*Gv),f=a-Gv,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,d=l?f*2:s?f-o:2*h,v=l?f*2:s?2*h:f-o,m,b,p,k,M;return i.y/i.x>=c/(u-d)?k=c/i.y:i.y/i.x<=(c-v)/u?k=u/i.x:!l&&s?(m=i.x*i.x+i.y*i.y/4,b=-2*i.x*(u-f)-i.y*(c/2-f),p=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,k=(-b+Math.sqrt(b*b-4*m*p))/(2*m)):l?(m=(i.x*i.x+i.y*i.y)/4,b=-i.x*(u/2-f)-i.y*(c/2-f),p=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,k=(-b+Math.sqrt(b*b-4*m*p))/(2*m)):(m=i.x*i.x/4+i.y*i.y,b=-i.x*(u/2-f)-2*i.y*(c-f),p=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,k=(-b+Math.sqrt(b*b-4*m*p))/(2*m)),k=Math.min(1,k),s?M=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*k)/2)*(f-(c-i.y*k)/2)))-o):M=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-i.x*k)/2)*(f-(u-i.x*k)/2)))-o),{scale:k,pad:M}}function M_t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=i.width,c=i.height,f=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Gv?Gv:0:d=f>2*Gv?Gv:0;var v=1;s&&(v=o?Math.min(1,h/c):Math.min(1,f/u));var m=i1e(l),b=n1e(i,m),p=(o?b.x:b.y)/2,k=(i.left+i.right)/2,M=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,x=0,C=0,S=o?Om(t,e):Om(r,n);return o?(T=t-S*d,x=S*p):(L=n+S*d,C=-S*p),{textX:k,textY:M,targetX:T,targetY:L,anchorX:x,anchorY:C,scale:v,rotate:m}}function E_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=C_t(e,t,r,n,i):a.textinfo?s=L_t(t,r,n,i):s=DT.getValue(a.text,r),DT.coerceString(m_t,s)}function k_t(e,t){var r=DT.getValue(e.textposition,t);return DT.coerceEnumerated(y_t,r)}function C_t(e,t,r,n,i){var a=t[0].trace,o=Fd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,d,v;c?(f="y",h=i,d="x",v=n):(f="x",h=n,d="y",v=i);function m(x){return e8(h,h.c2l(x),!0).text}function b(x){return e8(v,v.c2l(x),!0).text}var p=t[r],k={};k.label=p.p,k.labelLabel=k[f+"Label"]=m(p.p);var M=Fd.castOption(a,p.i,"text");(M===0||M)&&(k.text=M),k.value=p.s,k.valueLabel=k[d+"Label"]=b(p.s);var T={};__t(T,a,p.i),(s||T.x===void 0)&&(T.x=c?k.value:k.label),(s||T.y===void 0)&&(T.y=c?k.label:k.value),(s||T.xLabel===void 0)&&(T.xLabel=c?k.valueLabel:k.labelLabel),(s||T.yLabel===void 0)&&(T.yLabel=c?k.labelLabel:k.valueLabel),l&&(k.delta=+p.rawS||p.s,k.deltaLabel=b(k.delta),k.final=p.v,k.finalLabel=b(k.final),k.initial=k.final-k.delta,k.initialLabel=b(k.initial)),u&&(k.value=p.s,k.valueLabel=b(k.value),k.percentInitial=p.begR,k.percentInitialLabel=Fd.formatPercent(p.begR),k.percentPrevious=p.difR,k.percentPreviousLabel=Fd.formatPercent(p.difR),k.percentTotal=p.sumR,k.percenTotalLabel=Fd.formatPercent(p.sumR));var L=Fd.castOption(a,p.i,"customdata");return L&&(k.customdata=L),Fd.texttemplateString({data:[T,k,a._meta],fallback:a.texttemplatefallback,labels:k,locale:e._d3locale,template:o})}function L_t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function l(L){var x=a?n:r;return e8(x,L,!0).text}function u(L){var x=a?r:n;return e8(x,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,m=function(L){return h.indexOf(L)!==-1};if(m("label")&&d.push(l(e[t].p)),m("text")&&(v=Fd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,k=p-b;m("initial")&&d.push(u(k)),m("delta")&&d.push(u(b)),m("final")&&d.push(u(p))}if(s){m("value")&&d.push(u(f.s));var M=0;m("percent initial")&&M++,m("percent previous")&&M++,m("percent total")&&M++;var T=M>1;m("percent initial")&&(v=Fd.formatPercent(f.begR),T&&(v+=" of initial"),d.push(v)),m("percent previous")&&(v=Fd.formatPercent(f.difR),T&&(v+=" of previous"),d.push(v)),m("percent total")&&(v=Fd.formatPercent(f.sumR),T&&(v+=" of total"),d.push(v))}return d.join("
")}o1e.exports={plot:T_t,toMoveInsideBar:a1e}});var FT=ye((Bur,c1e)=>{"use strict";var L4=ef(),P_t=Oa(),s1e=ka(),I_t=Pr().fillText,R_t=JI().getLineWidth,UV=ho().hoverLabelText,D_t=fs().BADNUM;function F_t(e,t,r,n,i){var a=l1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=u1e(s,l),P_t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function l1e(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,l=n==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,d,v,m,b,p,k;o.orientation==="h"?(h=r,d=t,v="y",m="x",b=G,p=z):(h=t,d=r,v="x",m="y",p=G,b=z);var M=o[v+"period"],T=l||M;function L(ie){return C(ie,-1)}function x(ie){return C(ie,1)}function C(ie,Se){var ke=ie.w;return ie[v]+Se*ke/2}function S(ie){return ie[v+"End"]-ie[v+"Start"]}var g=l?L:M?function(ie){return ie.p-S(ie)/2}:function(ie){return Math.min(L(ie),ie.p-s.bardelta/2)},P=l?x:M?function(ie){return ie.p+S(ie)/2}:function(ie){return Math.max(x(ie),ie.p+s.bardelta/2)};function E(ie,Se,ke){return i.finiteRange&&(ke=0),L4.inbox(ie-h,Se-h,ke+Math.min(1,Math.abs(Se-ie)/k)-1)}function z(ie){return E(g(ie),P(ie),c)}function q(ie){return E(L(ie),x(ie),f)}function V(ie){var Se=ie[m];if(u){var ke=Math.abs(ie.rawS)||0;d>0?Se+=ke:d<0&&(Se-=ke)}return Se}function G(ie){var Se=d,ke=ie.b,be=V(ie);return L4.inbox(ke-Se,be-Se,c+(be-Se)/(be-ke)-1)}function Z(ie){var Se=d,ke=ie.b,be=V(ie);return L4.inbox(ke-Se,be-Se,f+(be-Se)/(be-ke)-1)}var j=e[v+"a"],N=e[m+"a"];k=Math.abs(j.r2c(j.range[1])-j.r2c(j.range[0]));function H(ie){return(b(ie)+p(ie))/2}var re=L4.getDistanceFunction(n,b,p,H);if(L4.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==D_t){T||(g=function(ie){return Math.min(L(ie),ie.p-s.bargroupwidth/2)},P=function(ie){return Math.max(x(ie),ie.p+s.bargroupwidth/2)});var ae=e.index,_e=a[ae],Ee=o.base?_e.b+_e.s:_e.s;e[m+"0"]=e[m+"1"]=N.c2p(_e[m],!0),e[m+"LabelVal"]=Ee;var Ce=s.extents[s.extents.round(_e.p)];e[v+"0"]=j.c2p(l?g(_e):Ce[0],!0),e[v+"1"]=j.c2p(l?P(_e):Ce[1],!0);var ge=_e.orig_p!==void 0;return e[v+"LabelVal"]=ge?_e.orig_p:_e.p,e.labelLabel=UV(j,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=UV(N,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=UV(N,_e.b,o[m+"hoverformat"]),e.spikeDistance=(Z(_e)+q(_e))/2,e[v+"Spike"]=j.c2p(_e.p,!0),I_t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function u1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=R_t(e,t);if(s1e.opacity(r))return r;if(s1e.opacity(n)&&i)return n}c1e.exports={hoverPoints:F_t,hoverOnBars:l1e,getTraceColor:u1e}});var h1e=ye((Nur,f1e)=>{"use strict";f1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var zT=ye((Uur,d1e)=>{"use strict";d1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";v1e.exports={attributes:qm(),layoutAttributes:ZI(),supplyDefaults:i0().supplyDefaults,crossTraceDefaults:i0().crossTraceDefaults,supplyLayoutDefaults:zV(),calc:Oye(),crossTraceCalc:n2().crossTraceCalc,colorbar:Qd(),arraysToCalcdata:E4(),plot:g2().plot,style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:FT().hoverPoints,eventData:h1e(),selectPoints:zT(),moduleType:"trace",name:"bar",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var m1e=ye((Gur,g1e)=>{"use strict";g1e.exports=p1e()});var P4=ye((Hur,b1e)=>{"use strict";var q_t=Pg(),G0=pf(),y1e=qm(),O_t=Ih(),_1e=vf().axisHoverFormat,{hovertemplateAttrs:B_t,templatefallbackAttrs:N_t}=Pl(),Hy=Ao().extendFlat,qT=G0.marker,x1e=qT.line;b1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:G0.xperiod,yperiod:G0.yperiod,xperiod0:G0.xperiod0,yperiod0:G0.yperiod0,xperiodalignment:G0.xperiodalignment,yperiodalignment:G0.yperiodalignment,xhoverformat:_1e("x"),yhoverformat:_1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Hy({},qT.symbol,{arrayOk:!1,editType:"plot"}),opacity:Hy({},qT.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Hy({},qT.angle,{arrayOk:!1,editType:"calc"}),size:Hy({},qT.size,{arrayOk:!1,editType:"calc"}),color:Hy({},qT.color,{arrayOk:!1,editType:"style"}),line:{color:Hy({},x1e.color,{arrayOk:!1,dflt:O_t.defaultLine,editType:"style"}),width:Hy({},x1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:q_t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:y1e.offsetgroup,alignmentgroup:y1e.alignmentgroup,selected:{marker:G0.selected.marker,editType:"style"},unselected:{marker:G0.unselected.marker,editType:"style"},text:Hy({},G0.text,{}),hovertext:Hy({},G0.hovertext,{}),hovertemplate:B_t({}),hovertemplatefallback:N_t(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:G0.zorder}});var I4=ye((jur,w1e)=>{"use strict";w1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var D4=ye((Wur,M1e)=>{"use strict";var H0=Pr(),U_t=Oa(),V_t=ka(),G_t=Dg(),H_t=i2(),T1e=W3(),R4=P4();function j_t(e,t,r,n){function i(v,m){return H0.coerce(e,t,R4,v,m)}if(A1e(e,t,i,n),t.visible!==!1){G_t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",V_t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),l=i("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}i("whiskerwidth");var u=i("sizemode"),c;u==="quartiles"&&(c=i("boxmean",o)),i("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var f=!1;if(a){var h=i("notchspan");h&&h.length&&(f=!0)}else H0.validate(e.notchwidth,R4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),S1e(e,t,i,{prefix:"box"}),i("zorder")}}function A1e(e,t,r,n){function i(P){var E=0;return P&&P.length&&(E+=1,H0.isArrayOrTypedArray(P[0])&&P[0].length&&(E+=1)),E}function a(P){return H0.validate(e[P],R4[P])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(H0.minRowLength(u),H0.minRowLength(c),H0.minRowLength(f))}else t._hasPreCompStats=!1;var h=i(o),d=i(s),v=h&&H0.minRowLength(o),m=d&&H0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},k,M;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var T=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!T?k="h":k="v",M=l;break;case"10":k="v",M=Math.min(l,m);break;case"20":k="h",M=Math.min(l,s.length);break;case"01":k="h",M=Math.min(l,v);break;case"02":k="v",M=Math.min(l,o.length);break;case"12":k="v",M=Math.min(l,m,o.length);break;case"21":k="h",M=Math.min(l,s.length,v);break;case"11":M=0;break;case"22":var x=!1,C;for(C=0;C0?(k="v",d>0?M=Math.min(m,v):M=Math.min(v)):d>0?(k="h",M=Math.min(m)):M=0;if(!M){t.visible=!1;return}t._length=M;var S=r("orientation",k);t._hasPreCompStats?S==="v"&&d===0?(r("x0",0),r("dx",1)):S==="h"&&h===0&&(r("y0",0),r("dy",1)):S==="v"&&d===0?r("x0"):S==="h"&&h===0&&r("y0");var g=U_t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function S1e(e,t,r,n){var i=n.prefix,a=H0.coerce2(e,t,R4,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(i+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(r("hovertemplate"),r("hovertemplatefallback")),H0.coerceSelectionMarkerOpacity(t,r)}function W_t(e,t){var r,n;function i(l){return H0.coerce(n._input,n,R4,l)}for(var a=0;a{"use strict";var X_t=Oa(),Z_t=Pr(),Y_t=I4();function E1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var GV=Eo(),r8=ho(),J_t=zg(),yh=Pr(),n0=fs().BADNUM,jy=yh._;q1e.exports=function(t,r){var n=t._fullLayout,i=r8.getFromId(t,r.xaxis||"x"),a=r8.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,d,v;r.orientation==="h"?(c=i,f="x",h=a,d="y",v=!!r.yperiodalignment):(c=a,f="y",h=i,d="x",v=!!r.xperiodalignment);var m=$_t(r,d,h,n[s]),b=m[0],p=m[1],k=yh.distinctVals(b,h),M=k.vals,T=k.minDiff/2,L,x,C,S,g,P,E=(r.boxpoints||r.points)==="all"?yh.identity:function(Ht){return Ht.vL.uf};if(r._hasPreCompStats){var z=r[f],q=function(Ht){return c.d2c((r[Ht]||[])[l])},V=1/0,G=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var j=q("lowerfence");L.lf=j!==n0&&j<=L.q1?j:I1e(L,C,S);var N=q("upperfence");L.uf=N!==n0&&N>=L.q3?N:R1e(L,C,S);var H=q("mean");L.mean=H!==n0?H:S?yh.mean(C,S):(L.q1+L.q3)/2;var re=q("sd");L.sd=H!==n0&&re>=0?re:S?yh.stdev(C,S,L.mean):L.q3-L.q1,L.lo=D1e(L),L.uo=F1e(L);var ae=q("notchspan");ae=ae!==n0&&ae>0?ae:z1e(L,S),L.ln=L.med-ae,L.un=L.med+ae;var _e=L.lf,Ee=L.uf;r.boxpoints&&C.length&&(_e=Math.min(_e,C[0]),Ee=Math.max(Ee,C[S-1])),r.notched&&(_e=Math.min(_e,L.ln),Ee=Math.max(Ee,L.un)),L.min=_e,L.max=Ee}else{yh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var Ce;L.med!==n0?Ce=L.med:L.q1!==n0?L.q3!==n0?Ce=(L.q1+L.q3)/2:Ce=L.q1:L.q3!==n0?Ce=L.q3:Ce=0,L.med=Ce,L.q1=L.q3=Ce,L.lf=L.uf=Ce,L.mean=L.sd=Ce,L.ln=L.un=Ce,L.min=L.max=Ce}V=Math.min(V,L.min),G=Math.max(G,L.max),L.pts2=x.filter(E),o.push(L)}}r._extremes[c._id]=r8.findExtremes(c,[V,G],{padded:!0})}else{var ge=c.makeCalcdata(r,f),ie=Q_t(M,T),Se=M.length,ke=ext(Se);for(l=0;l=0&&be0){if(L={},L.pos=L[d]=M[l],x=L.pts=ke[l].sort(L1e),C=L[f]=x.map(P1e),S=C.length,L.min=C[0],L.max=C[S-1],L.mean=yh.mean(C,S),L.sd=yh.stdev(C,S,L.mean)*r.sdmultiple,L.med=yh.interp(C,.5),S%2&&(Pe||ce)){var He,lt;Pe?(He=C.slice(0,S/2),lt=C.slice(S/2+1)):ce&&(He=C.slice(0,S/2+1),lt=C.slice(S/2)),L.q1=yh.interp(He,.5),L.q3=yh.interp(lt,.5)}else L.q1=yh.interp(C,.25),L.q3=yh.interp(C,.75);L.lf=I1e(L,C,S),L.uf=R1e(L,C,S),L.lo=D1e(L),L.uo=F1e(L);var mt=z1e(L,S);L.ln=L.med-mt,L.un=L.med+mt,Be=Math.min(Be,L.ln),Le=Math.max(Le,L.un),L.pts2=x.filter(E),o.push(L)}r.notched&&yh.isTypedArray(ge)&&(ge=Array.from(ge)),r._extremes[c._id]=r8.findExtremes(c,r.notched?ge.concat([Be,Le]):ge,{padded:!0})}return txt(o,r),o.length>0?(o[0].t={num:n[s],dPos:T,posLetter:d,valLetter:f,labels:{med:jy(t,"median:"),min:jy(t,"min:"),q1:jy(t,"q1:"),q3:jy(t,"q3:"),max:jy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?jy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):jy(t,"mean:"),lf:jy(t,"lower fence:"),uf:jy(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function $_t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),l=J_t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||GV(e.name)&&["linear","log"].indexOf(r.type)!==-1||yh.isDateTime(e.name)&&r.type==="date")?u=e.name:u=n;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),d=0;d{"use strict";var O1e=ho(),rxt=Pr(),ixt=$b().getAxisGroup,B1e=["v","h"];function nxt(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,k=1-a[e+"gap"],M=1-a[e+"groupgap"];for(l=0;l0;if(C==="positive"?(N=S*(x?1:.5),ae=re,H=ae=P):C==="negative"?(N=ae=P,H=S*(x?1:.5),_e=re):(N=H=S,ae=_e=re),ke){var be=T.pointpos,Be=T.jitter,Le=T.marker.size/2,me=0;be+Be>=0&&(me=re*(be+Be),me>N?(Se=!0,ge=Le,Ee=me):me>ae&&(ge=Le,Ee=N)),me<=N&&(Ee=N);var Pe=0;be-Be<=0&&(Pe=-re*(be-Be),Pe>H?(Se=!0,ie=Le,Ce=Pe):Pe>_e&&(ie=Le,Ce=H)),Pe<=H&&(Ce=H)}else Ee=N,Ce=H;var ce=new Array(c.length);for(u=0;u{"use strict";var OT=Fa(),m2=Pr(),axt=So(),V1e=5,oxt=.01;function sxt(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;m2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=OT.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,d;f.orientation==="h"?(h=o,d=a):(h=a,d=o),G1e(l,{pos:h,val:d},f,c,i),H1e(l,{x:a,y:o},f,c),j1e(l,{pos:h,val:d},f,c)})}function G1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=n.bPos,c=n.wdPos||0,f=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,v=r.notched||!1,m=v?1-2*r.notchwidth:1,b,p;Array.isArray(n.bdPos)?(b=n.bdPos[0],p=n.bdPos[1]):(b=n.bdPos,p=n.bdPos);var k=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?m2.identity:[]);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),k.exit().remove(),k.each(function(M){if(M.empty)return OT.select(this).attr("d","M0,0Z");var T=s.c2l(M.pos+u,!0),L=s.l2p(T-b)+f,x=s.l2p(T+p)+f,C=l?(L+x)/2:s.l2p(T)+f,S=r.whiskerwidth,g=l?L*S+(1-S)*C:s.l2p(T-c)+f,P=l?x*S+(1-S)*C:s.l2p(T+c)+f,E=s.l2p(T-b*m)+f,z=s.l2p(T+p*m)+f,q=r.sizemode==="sd",V=o.c2p(q?M.mean-M.sd:M.q1,!0),G=q?o.c2p(M.mean+M.sd,!0):o.c2p(M.q3,!0),Z=m2.constrain(q?o.c2p(M.mean,!0):o.c2p(M.med,!0),Math.min(V,G)+1,Math.max(V,G)-1),j=M.lf===void 0||r.boxpoints===!1||q,N=o.c2p(j?M.min:M.lf,!0),H=o.c2p(j?M.max:M.uf,!0),re=o.c2p(M.ln,!0),ae=o.c2p(M.un,!0);a?OT.select(this).attr("d","M"+Z+","+E+"V"+z+"M"+V+","+L+"V"+x+(v?"H"+re+"L"+Z+","+z+"L"+ae+","+x:"")+"H"+G+"V"+L+(v?"H"+ae+"L"+Z+","+E+"L"+re+","+L:"")+"Z"+(d?"M"+V+","+C+"H"+N+"M"+G+","+C+"H"+H+(h===0?"":"M"+N+","+g+"V"+P+"M"+H+","+g+"V"+P):"")):OT.select(this).attr("d","M"+E+","+Z+"H"+z+"M"+L+","+V+"H"+x+(v?"V"+re+"L"+z+","+Z+"L"+x+","+ae:"")+"V"+G+"H"+L+(v?"V"+ae+"L"+E+","+Z+"L"+L+","+re:"")+"Z"+(d?"M"+C+","+V+"V"+N+"M"+C+","+G+"V"+H+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+H+"H"+P):""))})}function H1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;m2.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var d,v=h.pts2,m=Math.max((h.max-h.min)/10,h.q3-h.q1),b=m*1e-9,p=m*oxt,k=[],M=0,T;if(r.jitter){if(m===0)for(M=1,k=new Array(v.length),d=0;dh.lo&&(P.so=!0)}return v});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(axt.translatePoints,i,a)}function j1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,l=n.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(n.bdPos)?(c=n.bdPos[0],f=n.bdPos[1]):(c=n.bdPos,f=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?m2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var v=a.c2l(d.pos+s,!0),m=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(m+b)/2:a.l2p(v)+l,k=i.c2p(d.mean,!0),M=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?OT.select(this).attr("d","M"+k+","+m+"V"+b+(u==="sd"?"m0,0L"+M+","+p+"L"+k+","+m+"L"+T+","+p+"Z":"")):OT.select(this).attr("d","M"+m+","+k+"H"+b+(u==="sd"?"m0,0L"+p+","+M+"L"+m+","+k+"L"+p+","+T+"Z":""))})}W1e.exports={plot:sxt,plotBoxAndWhiskers:G1e,plotPoints:H1e,plotBoxMean:j1e}});var a8=ye((Jur,X1e)=>{"use strict";var jV=Fa(),WV=ka(),XV=So();function lxt(e,t,r){var n=r||jV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=jV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(WV.stroke,d).call(WV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=jV.select(this),d=o[f.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(WV.stroke,o.line.color);var c=a.selectAll("path.point");XV.pointStyle(c,o,e)}})}function uxt(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?XV.selectedPointStyle(i,n):XV.pointStyle(i,n,e)}X1e.exports={style:lxt,styleOnSelect:uxt}});var YV=ye(($ur,J1e)=>{"use strict";var cxt=ho(),ZV=Pr(),D_=ef(),Z1e=ka(),fxt=ZV.fillText;function hxt(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(Y1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=K1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function Y1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,l=i[0].t,u=s.type==="violin",c,f,h,d,v,m,b,p,k,M,T,L=l.bdPos,x,C,S=l.wHover,g=function(Le){return h.c2l(Le.pos)+l.bPos-h.c2l(m)};u&&s.side!=="both"?(s.side==="positive"&&(k=function(Le){var me=g(Le);return D_.inbox(me,me+S,M)},x=L,C=0),s.side==="negative"&&(k=function(Le){var me=g(Le);return D_.inbox(me-S,me,M)},x=0,C=L)):(k=function(Le){var me=g(Le);return D_.inbox(me-S,me+S,M)},x=C=L);var P;u?P=function(Le){return D_.inbox(Le.span[0]-v,Le.span[1]-v,M)}:P=function(Le){return D_.inbox(Le.min-v,Le.max-v,M)},s.orientation==="h"?(v=t,m=r,b=P,p=k,c="y",h=o,f="x",d=a):(v=r,m=t,b=k,p=P,c="x",h=a,f="y",d=o);var E=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));M=e.maxHoverDistance-E,T=e.maxSpikeDistance-E;function z(Le){return(b(Le)+p(Le))/2}var q=D_.getDistanceFunction(n,b,p,z);if(D_.getClosest(i,q,e),e.index===!1)return[];var V=i[e.index],G=s.line.color,Z=(s.marker||{}).color;Z1e.opacity(G)&&s.line.width?e.color=G:Z1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(V.pos+l.bPos-C,!0),e[c+"1"]=h.c2p(V.pos+l.bPos+x,!0),e[c+"LabelVal"]=V.orig_p!==void 0?V.orig_p:V.pos;var j=c+"Spike";e.spikeDistance=z(V)*T/M,e[j]=h.c2p(V.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,H=s.boxpoints||s.points,re=H&&N?["max","uf","q3","med","mean","q1","lf","min"]:H&&!N?["max","uf","q3","med","q1","lf","min"]:!H&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]{"use strict";$1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var KV=ye((ecr,e_e)=>{"use strict";e_e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";t_e.exports={attributes:P4(),layoutAttributes:I4(),supplyDefaults:D4().supplyDefaults,crossTraceDefaults:D4().crossTraceDefaults,supplyLayoutDefaults:t8().supplyLayoutDefaults,calc:HV(),crossTraceCalc:i8().crossTraceCalc,plot:n8().plot,style:a8().style,styleOnSelect:a8().styleOnSelect,hoverPoints:YV().hoverPoints,eventData:Q1e(),selectPoints:KV(),moduleType:"trace",name:"box",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var n_e=ye((rcr,i_e)=>{"use strict";i_e.exports=r_e()});var BT=ye((icr,o_e)=>{"use strict";var dxt=Tu(),{extendFlat:Pp}=Ao(),vxt=Vl(),{axisHoverFormat:JV}=vf(),pxt=ec(),{hovertemplateAttrs:gxt,templatefallbackAttrs:a_e,texttemplateAttrs:mxt}=Pl(),a0=pf();o_e.exports=Pp({z:{valType:"data_array",editType:"calc"},x:Pp({},a0.x,{impliedEdits:{xtype:"array"}}),x0:Pp({},a0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Pp({},a0.dx,{impliedEdits:{xtype:"scaled"}}),y:Pp({},a0.y,{impliedEdits:{ytype:"array"}}),y0:Pp({},a0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Pp({},a0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Pp({},a0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Pp({},a0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Pp({},a0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Pp({},a0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Pp({},a0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Pp({},a0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:JV("x"),yhoverformat:JV("y"),zhoverformat:JV("z",1),hovertemplate:gxt(),hovertemplatefallback:a_e(),texttemplate:mxt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:a_e({editType:"plot"}),textfont:pxt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pp({},vxt.showlegend,{dflt:!1}),zorder:a0.zorder},dxt("",{cLetter:"z",autoColorDflt:!1}))});var s8=ye((ncr,l_e)=>{"use strict";var yxt=Eo(),o8=Pr(),_xt=Oa();l_e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(o8.isArray1D(s)){l=n(a),u=n(o);var c=o8.minRowLength(l),f=o8.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=s_e(a,n),u=s_e(o,n),!xxt(s))return 0;n("transpose"),r._length=null}var h=_xt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function s_e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function xxt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var u_e=Pr();c_e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var n=u_e.extendFlat({},r.font,{color:"auto",size:"auto"});u_e.coerceFont(t,"textfont",n)}});var $V=ye((ocr,f_e)=>{"use strict";f_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var v_e=ye((scr,d_e)=>{"use strict";var h_e=Pr(),bxt=s8(),wxt=F4(),Txt=Dg(),Axt=$V(),Sxt=td(),Mxt=BT();d_e.exports=function(t,r,n,i){function a(s,l){return h_e.coerce(t,r,Mxt,s,l)}var o=bxt(t,r,a,i);if(!o){r.visible=!1;return}Txt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),wxt(a,i),Axt(t,r,a,i),a("hoverongaps"),a("connectgaps",h_e.isArray1D(r.z)&&r.zsmooth!==!1),Sxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var QV=ye((lcr,p_e)=>{"use strict";var NT=Eo();p_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return NT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return NT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(NT(i))if(i=Number(i),NT(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(NT(i))if(i=Number(i),NT(r[e])){if(r[e]{"use strict";g_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";m_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var UT=fs(),y2=UT.ONEAVGYEAR,y_e=UT.ONEAVGMONTH,u8=UT.ONEDAY,__e=UT.ONEHOUR,x_e=UT.ONEMIN,b_e=UT.ONESEC,w_e=ho().tickIncrement;S_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,l=t-s,u=n[0],c=n[1],f=Math.min(l8(u+s,u+l,i,a),l8(c+s,c+l,i,a)),h=Math.min(l8(u+o,u+s,i,a),l8(c+o,c+s,i,a)),d,v;if(f>h&&hu8){var m=d===y2?1:6,b=d===y2?"M12":"M1";return function(p,k){var M=i.c2d(p,y2,a),T=M.indexOf("-",m);T>0&&(M=M.slice(0,T));var L=i.d2c(M,0,a);if(Lb_e?e>u8?e>y2*1.1?y2:e>y_e*1.1?y_e:u8:e>__e?__e:e>x_e?x_e:b_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Ext(e,t,r,n,i,a){if(n&&e>u8){var o=A_e(t,i,a),s=A_e(r,i,a),l=e===y2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function A_e(e,t,r){var n=t.c2d(e,y2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var aG=ye((hcr,L_e)=>{"use strict";var iG=Eo(),Hv=Pr(),M_e=Oa(),j0=ho(),{hasColorscale:E_e}=pv(),k_e=gv(),kxt=E4(),C_e=QV(),Cxt=eG(),Lxt=tG(),Pxt=rG();function Ixt(e,t){var r=[],n=[],i=t.orientation==="h",a=j0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=nG(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",m=[],b=v?m:h,p=[],k=[],M=[],T=0,L=t.histnorm,x=t.histfunc,C=L.indexOf("density")!==-1,S,g,P;u.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var E=x==="max"||x==="min",z=E?null:0,q=C_e.count,V=Cxt[L],G=!1,Z=function(me){return a.r2c(me,0,l)},j;for(Hv.isArrayOrTypedArray(t[s])&&x!=="count"&&(j=t[s],G=x==="avg",q=C_e[x]),c=Z(h.start),g=Z(h.end)+(c-j0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=be;c--)if(n[c]){Be=c;break}for(c=be;c<=Be;c++)if(iG(r[c])&&iG(n[c])){var Le={p:r[c],s:n[c],b:0};u.enabled||(Le.pts=M[c],ae?Le.ph0=Le.ph1=M[c].length?d[M[c][0]]:r[c]:(t._computePh=!0,Le.ph0=ie(m[c]),Le.ph1=ie(m[c+1],!0))),ke.push(Le)}return ke.length===1&&(ke[0].width1=j0.tickIncrement(ke[0].p,h.size,!1,l)-ke[0].p),E_e(t,"marker")&&k_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),E_e(t,"marker.line")&&k_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),kxt(ke,t),Hv.isArrayOrTypedArray(t.selectedpoints)&&Hv.tagSelected(ke,t,Ce),ke}function nG(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,d,v,m,b,p=function(ge){return r.r2c(ge,0,d)},k=function(ge){return r.c2r(ge,0,d)},M=r.type==="date"?function(ge){return ge||ge===0?Hv.cleanDate(ge,null,d):null}:function(ge){return iG(ge)?Number(ge):null};function T(ge,ie,Se){ie[ge+"Found"]?(ie[ge]=M(ie[ge]),ie[ge]===null&&(ie[ge]=Se[ge])):(m[ge]=ie[ge]=Se[ge],Hv.nestedProperty(f[0],a+"."+ge).set(Se[ge]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{f=l.traces;var L=[],x=!0,C=!1,S=!1;for(c=0;cr.r2l(j)&&(H=j0.tickIncrement(H,l.size,!0,d)),q.start=r.l2r(H),Z||Hv.nestedProperty(t,a+".start").set(q.start)}var re=l.end,ae=r.r2l(z.end),_e=ae!==void 0;if((l.endFound||_e)&&ae!==r.r2l(re)){var Ee=_e?ae:Hv.aggNums(Math.max,null,v);q.end=r.l2r(Ee),_e||Hv.nestedProperty(t,a+".start").set(q.end)}var Ce="autobin"+n;return t._input[Ce]===!1&&(t._input[a]=Hv.extendFlat({},t[a]||{}),delete t._input[Ce],delete t[Ce]),[q,v]}function Rxt(e,t,r,n,i){var a=e._fullLayout,o=Dxt(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}L_e.exports={calc:Ixt,calcAllAutoBins:nG}});var O_e=ye((dcr,q_e)=>{"use strict";var P_e=Pr(),VT=ho(),I_e=QV(),zxt=eG(),qxt=tG(),Oxt=rG(),R_e=aG().calcAllAutoBins;q_e.exports=function(t,r){var n=VT.getFromId(t,r.xaxis),i=VT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Et){return n.r2c(Et,0,a)},l=function(Et){return i.r2c(Et,0,o)},u=function(Et){return n.c2r(Et,0,a)},c=function(Et){return i.c2r(Et,0,o)},f,h,d,v,m=R_e(t,r,n,"x"),b=m[0],p=m[1],k=R_e(t,r,i,"y"),M=k[0],T=k[1],L=r._length;p.length>L&&p.splice(L,p.length-L),T.length>L&&T.splice(L,T.length-L);var x=[],C=[],S=[],g=typeof b.size=="string",P=typeof M.size=="string",E=[],z=[],q=g?E:b,V=P?z:M,G=0,Z=[],j=[],N=r.histnorm,H=r.histfunc,re=N.indexOf("density")!==-1,ae=H==="max"||H==="min",_e=ae?null:0,Ee=I_e.count,Ce=zxt[N],ge=!1,ie=[],Se=[],ke="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";ke&&H!=="count"&&(ge=H==="avg",Ee=I_e[H]);var be=b.size,Be=s(b.start),Le=s(b.end)+(Be-VT.tickIncrement(Be,be,!1,a))/1e6;for(f=Be;f=0&&d=0&&v{"use strict";var Bm=Pr(),B_e=fs().BADNUM,N_e=zg();U_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=N_e(t,r,i,l).vals,u=N_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&Bm.isArray1D(c),h=t.hovertext,d=h!==void 0&&Bm.isArray1D(h),v,m,b=Bm.distinctVals(l),p=b.vals,k=Bm.distinctVals(u),M=k.vals,T=[],L,x,C=M.length,S=p.length;for(v=0;v{"use strict";var Bxt=Eo(),Nxt=Pr(),f8=fs().BADNUM;V_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(Bxt(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var Uxt=Pr(),G_e=.01,Vxt=[[-1,0],[1,0],[0,-1],[0,1]];function Gxt(e){return .5-.25*Math.min(1,e*.5)}j_e.exports=function(t,r){var n=1,i;for(H_e(t,r),i=0;iG_e;i++)n=H_e(t,r,Gxt(n));return n>G_e&&Uxt.log("interp2d didn't converge quickly",n),t};function H_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,m,b;for(s=0;sm&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-m))))}return n}});var v8=ye((mcr,W_e)=>{"use strict";var Hxt=Pr().maxRowLength;W_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=Hxt(t),u,c,f,h,d,v,m,b;for(c=0;c=0;d--)h=i[d],c=h[0],f=h[1],v=((n[[c-1,f]]||s)[2]+(n[[c+1,f]]||s)[2]+(n[[c,f-1]]||s)[2]+(n[[c,f+1]]||s)[2])/20,v&&(m[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in m)n[h]=m[h],r.push(m[h])}return r.sort(function(p,k){return k[2]-p[2]})}});var oG=ye((ycr,Y_e)=>{"use strict";var X_e=Oa(),Z_e=Pr().isArrayOrTypedArray;Y_e.exports=function(t,r,n,i,a,o){var s=[],l=X_e.traceIs(t,"contour"),u=X_e.traceIs(t,"histogram"),c,f,h,d=Z_e(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var v=r.length;if(v<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var K_e=Oa(),sG=Pr(),p8=ho(),J_e=zg(),jxt=O_e(),Wxt=gv(),Xxt=c8(),Zxt=h8(),Yxt=d8(),Kxt=v8(),g8=oG(),lG=fs().BADNUM;Q_e.exports=function(t,r){var n=p8.getFromId(t,r.xaxis||"x"),i=p8.getFromId(t,r.yaxis||"y"),a=K_e.traceIs(r,"contour"),o=K_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,m,b,p,k;if(n._minDtick=0,i._minDtick=0,o)k=jxt(t,r),f=k.orig_x,l=k.x,u=k.x0,c=k.dx,m=k.orig_y,h=k.y,d=k.y0,v=k.dy,b=k.z;else{var M=r.z;sG.isArray1D(M)?(Xxt(r,n,i,"x","y",["z"]),l=r._x,h=r._y,M=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],m=r.y?i.makeCalcdata(r,"y"):[],l=J_e(r,n,"x",f).vals,h=J_e(r,i,"y",m).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=Zxt(M,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Jxt(l,h,b),o||(l=$_e(l),h=$_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Kxt(b),Yxt(b,r._emptypoints));function T(q){s=r._input.zsmooth=r.zsmooth=!1,sG.warn('cannot use zsmooth: "fast": '+q)}function L(q){if(q.length>1){var V=(q[q.length-1]-q[0])/(q.length-1),G=Math.abs(V/100);for(p=0;pG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&T("log axis found"):L(l)?L(h)?r._islinear=!0:s==="fast"&&T("y scale is not linear"):s==="fast"&&T("x scale is not linear");var x=sG.maxRowLength(b),C=r.xtype==="scaled"?"":l,S=g8(r,C,u,c,x,n),g=r.ytype==="scaled"?"":h,P=g8(r,g,d,v,b.length,i);r._extremes[n._id]=p8.findExtremes(n,S),r._extremes[i._id]=p8.findExtremes(i,P);var E={x:S,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(E.orig_x=f),r.yperiodalignment&&m&&(E.orig_y=m),C&&C.length===S.length-1&&(E.xCenter=C),g&&g.length===P.length-1&&(E.yCenter=g),o&&(E.xRanges=k.xRanges,E.yRanges=k.yRanges,E.pts=k.pts),a||Wxt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var z={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};E.xfill=g8(z,C,u,c,x,n),E.yfill=g8(z,g,d,v,b.length,i)}return[E]};function $_e(e){for(var t=[],r=e.length,n=0;n{"use strict";y8.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];y8.STYLE=y8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var cG=ye((bcr,txe)=>{"use strict";var exe=_8(),$xt=So(),uG=Pr(),GT=null;function Qxt(){if(GT!==null)return GT;GT=!1;var e=uG.isSafari()||uG.isMacWKWebView()||uG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(exe.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")GT=t.some(function(o){return r.apply(null,o)});else{var n=$xt.tester.append("image").attr("style",exe.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;GT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return GT}txe.exports=Qxt});var x8=ye((wcr,cxe)=>{"use strict";var rxe=Fa(),ebt=fd(),tbt=Oa(),rbt=So(),ibt=ho(),W0=Pr(),ixe=Zl(),nbt=fI(),abt=ka(),obt=tc().extractOpts,sbt=tc().makeColorScaleFuncFromTrace,lbt=Wp(),ubt=Dh(),fG=ubt.LINE_SPACING,cbt=cG(),fbt=_8().STYLE,lxe="heatmap-label";function uxe(e){return e.selectAll("g."+lxe)}function nxe(e){uxe(e).remove()}cxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;W0.makeTraceGroups(n,r,"hm").each(function(o){var s=rxe.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,d=l.x,v=l.y,m=l.xCenter,b=l.yCenter,p=tbt.traceIs(u,"contour"),k=p?"best":u.zsmooth,M=h.length,T=W0.maxRowLength(h),L=!1,x=!1,C,S,g,P,E,z,q,V;for(z=0;C===void 0&&z0;)S=i.c2p(d[z]),z--;for(S0;)E=a.c2p(v[z]),z--;E=i._length||S<=0||P>=a._length||E<=0;if(H){var re=s.selectAll("image").data([]);re.exit().remove(),nxe(s);return}var ae,_e;G==="fast"?(ae=T,_e=M):(ae=j,_e=N);var Ee=document.createElement("canvas");Ee.width=ae,Ee.height=_e;var Ce=Ee.getContext("2d",{willReadFrequently:!0}),ge=sbt(u,{noNumericCheck:!0,returnArray:!0}),ie,Se;G==="fast"?(ie=L?function(fn){return T-1-fn}:W0.identity,Se=x?function(fn){return M-1-fn}:W0.identity):(ie=function(fn){return W0.constrain(Math.round(i.c2p(d[fn])-C),0,j)},Se=function(fn){return W0.constrain(Math.round(a.c2p(v[fn])-P),0,N)});var ke=Se(0),be=[ke,ke],Be=L?0:1,Le=x?0:1,me=0,Pe=0,ce=0,He=0,lt,mt,Ht,at,ct;function ar(fn,yn){if(fn!==void 0){var Mn=ge(fn);return Mn[0]=Math.round(Mn[0]),Mn[1]=Math.round(Mn[1]),Mn[2]=Math.round(Mn[2]),me+=yn,Pe+=Mn[0]*yn,ce+=Mn[1]*yn,He+=Mn[2]*yn,Mn}return[0,0,0,0]}function Vt(fn,yn,Mn,Ba){var ua=fn[Mn.bin0];if(ua===void 0)return ar(void 0,1);var ma=fn[Mn.bin1],Wa=yn[Mn.bin0],za=yn[Mn.bin1],Xo=ma-ua||0,da=Wa-ua||0,jn;return ma===void 0?za===void 0?jn=0:Wa===void 0?jn=2*(za-ua):jn=(2*za-Wa-ua)*2/3:za===void 0?Wa===void 0?jn=0:jn=(2*ua-ma-Wa)*2/3:Wa===void 0?jn=(2*za-ma-ua)*2/3:jn=za+ua-ma-Wa,ar(ua+Mn.frac*Xo+Ba.frac*(da+Mn.frac*jn))}if(G!=="default"){var rr=0,tt;try{tt=new Uint8Array(ae*_e*4)}catch(fn){tt=new Array(ae*_e*4)}if(G==="smooth"){var je=m||d,Ue=b||v,Ae=new Array(je.length),rt=new Array(Ue.length),St=new Array(j),Tt=m?oxe:axe,dt=b?oxe:axe,Et,pt,jt;for(z=0;zYr||Yr>a._length))for(q=Qt;qPi||Pi>i._length)){var ai=nbt({x:_i,y:Ir},u,e._fullLayout);ai.x=_i,ai.y=Ir;var mi=l.z[z][q];mi===void 0?(ai.z="",ai.zLabel=""):(ai.z=mi,ai.zLabel=ibt.tickText(We,mi,"hover").text);var un=l.text&&l.text[z]&&l.text[z][q];(un===void 0||un===!1)&&(un=""),ai.text=un;var Fn=W0.texttemplateString({data:[ai,u._meta],fallback:u.texttemplatefallback,labels:ai,locale:e._fullLayout._d3locale,template:Ge});if(Fn){var An=Fn.split("
"),Hn=An.length,Qn=0;for(V=0;V{"use strict";fxe.exports={min:"zmin",max:"zmax"}});var b8=ye((Acr,hxe)=>{"use strict";var hbt=Fa();hxe.exports=function(t){hbt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var T8=ye((Scr,vxe)=>{"use strict";var dxe=ef(),z4=Pr(),w8=z4.isArrayOrTypedArray,dbt=ho(),vbt=tc().extractOpts;vxe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,d=s.z,v=s.xCenter,m=s.yCenter,b=s.zmask,p=l.zhoverformat,k=f,M=h,T,L,x,C;if(t.index!==!1){try{x=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(re){z4.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||C<0||C>d.length)return}else{if(dxe.inbox(r-f[0],r-f[f.length-1],0)>0||dxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var S;for(k=[2*f[0]-f[1]],S=1;S{"use strict";pxe.exports={attributes:BT(),supplyDefaults:v_e(),calc:m8(),plot:x8(),colorbar:F_(),style:b8(),hoverPoints:T8(),moduleType:"trace",name:"heatmap",basePlotModule:mh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var yxe=ye((Ecr,mxe)=>{"use strict";mxe.exports=gxe()});var hG=ye((kcr,_xe)=>{"use strict";_xe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var bxe=ye((Ccr,xxe)=>{"use strict";xxe.exports={eventDataKeys:["binNumber"]}});var A8=ye((Lcr,Sxe)=>{"use strict";var Ip=qm(),wxe=vf().axisHoverFormat,{hovertemplateAttrs:pbt,texttemplateAttrs:gbt,templatefallbackAttrs:Txe}=Pl(),dG=ec(),Axe=hG(),mbt=bxe(),vG=Ao().extendFlat;Sxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:wxe("x"),yhoverformat:wxe("y"),text:vG({},Ip.text,{}),hovertext:vG({},Ip.hovertext,{}),orientation:Ip.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:Axe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:Axe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:pbt({},{keys:mbt.eventDataKeys}),hovertemplatefallback:Txe(),texttemplate:gbt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:Txe({editType:"plot"}),textposition:vG({},Ip.textposition,{arrayOk:!1}),textfont:dG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:dG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:dG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Ip.insidetextanchor,textangle:Ip.textangle,cliponaxis:Ip.cliponaxis,constraintext:Ip.constraintext,marker:Ip.marker,offsetgroup:Ip.offsetgroup,alignmentgroup:Ip.alignmentgroup,selected:Ip.selected,unselected:Ip.unselected,zorder:Ip.zorder}});var Cxe=ye((Pcr,kxe)=>{"use strict";var Mxe=Oa(),q4=Pr(),Exe=ka(),ybt=i0().handleText,_bt=YI(),xbt=A8();kxe.exports=function(t,r,n,i){function a(k,M){return q4.coerce(t,r,xbt,k,M)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");ybt(t,r,i,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",d=o&&s?Math.min(q4.minRowLength(o)&&q4.minRowLength(s)):q4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=Mxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var m=r[h];m&&a("histfunc"),a("histnorm"),a("autobin"+f),_bt(t,r,a,n,i),q4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=Mxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||Exe.defaultLine,{axis:"y"}),p(t,r,b||Exe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var M8=ye((Icr,Ixe)=>{"use strict";var O4=Pr(),bbt=df(),S8=Oa().traceIs,wbt=i2(),Tbt=i0().validateCornerradius,Lxe=O4.nestedProperty,pG=$b().getAxisGroup,Pxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],Abt=["x","y"];Ixe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(G,Z){return O4.coerce(s._input,s,s._module.attributes,G,Z)}function m(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var j=bbt.getFromTrace({_fullLayout:r},G,Z);return j.type}function p(G,Z,j){var N=G.uid+"__"+j;Z||(Z=N);var H=b(G,j),re=G[j+"calendar"]||"",ae=n[Z],_e=!0;ae&&(H===ae.axType&&re===ae.calendar?(_e=!1,ae.traces.push(G),ae.dirs.push(j)):(Z=N,H!==ae.axType&&O4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+H,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),re!==ae.calendar&&O4.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),_e&&(n[Z]={traces:[G],dirs:[j],axType:H,calendar:G[j+"calendar"]||""}),G["_"+j+"bingroup"]=Z}for(f=0;f{"use strict";var Sbt=FT().hoverPoints,Mbt=ho().hoverLabelText;Rxe.exports=function(t,r,n,i,a){var o=Sbt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=Mbt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var gG=ye((Dcr,Fxe)=>{"use strict";Fxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var l=0;l{"use strict";zxe.exports={attributes:A8(),layoutAttributes:ZI(),supplyDefaults:Cxe(),crossTraceDefaults:M8(),supplyLayoutDefaults:zV(),calc:aG().calc,crossTraceCalc:n2().crossTraceCalc,plot:g2().plot,layerName:"barlayer",style:V0().style,styleOnSelect:V0().styleOnSelect,colorbar:Qd(),hoverPoints:Dxe(),selectPoints:zT(),eventData:gG(),moduleType:"trace",name:"histogram",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Bxe=ye((zcr,Oxe)=>{"use strict";Oxe.exports=qxe()});var k8=ye((qcr,Vxe)=>{"use strict";var jg=A8(),Nxe=hG(),E8=BT(),Ebt=Vl(),mG=vf().axisHoverFormat,{hovertemplateAttrs:kbt,texttemplateAttrs:Cbt,templatefallbackAttrs:Uxe}=Pl(),Lbt=Tu(),B4=Ao().extendFlat;Vxe.exports=B4({x:jg.x,y:jg.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:jg.histnorm,histfunc:jg.histfunc,nbinsx:jg.nbinsx,xbins:Nxe("x"),nbinsy:jg.nbinsy,ybins:Nxe("y"),autobinx:jg.autobinx,autobiny:jg.autobiny,bingroup:B4({},jg.bingroup,{}),xbingroup:B4({},jg.bingroup,{}),ybingroup:B4({},jg.bingroup,{}),xgap:E8.xgap,ygap:E8.ygap,zsmooth:E8.zsmooth,xhoverformat:mG("x"),yhoverformat:mG("y"),zhoverformat:mG("z",1),hovertemplate:kbt({},{keys:["z"]}),hovertemplatefallback:Uxe(),texttemplate:Cbt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:Uxe({editType:"plot"}),textfont:E8.textfont,showlegend:B4({},Ebt.showlegend,{dflt:!1})},Lbt("",{cLetter:"z",autoColorDflt:!1}))});var yG=ye((Ocr,Hxe)=>{"use strict";var Pbt=Oa(),Gxe=Pr();Hxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Gxe.minRowLength(a),l=Gxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=Pbt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],i);var c=n("z")||n("marker.color");c&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Wxe=ye((Bcr,jxe)=>{"use strict";var Ibt=Pr(),Rbt=yG(),Dbt=$V(),Fbt=td(),zbt=F4(),qbt=k8();jxe.exports=function(t,r,n,i){function a(o,s){return Ibt.coerce(t,r,qbt,o,s)}Rbt(t,r,a,i),r.visible!==!1&&(Dbt(t,r,a,i),Fbt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),zbt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Yxe=ye((Ncr,Zxe)=>{"use strict";var Obt=T8(),Xxe=ho().hoverLabelText;Zxe.exports=function(t,r,n,i,a){var o=Obt(t,r,n,i,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],d=c.yRanges[l];return t.xLabel=Xxe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Xxe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var Jxe=ye((Ucr,Kxe)=>{"use strict";Kxe.exports={attributes:k8(),supplyDefaults:Wxe(),crossTraceDefaults:M8(),calc:m8(),plot:x8(),layerName:"heatmaplayer",colorbar:F_(),style:b8(),hoverPoints:Yxe(),eventData:gG(),moduleType:"trace",name:"histogram2d",basePlotModule:mh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Qxe=ye((Vcr,$xe)=>{"use strict";$xe.exports=Jxe()});var C8=ye((Gcr,ebe)=>{"use strict";ebe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var N4=ye((Hcr,nbe)=>{"use strict";var _h=BT(),L8=pf(),rbe=vf(),_G=rbe.axisHoverFormat,Bbt=rbe.descriptionOnlyNumbers,Nbt=Tu(),Ubt=Pd().dash,Vbt=ec(),HT=Ao().extendFlat,ibe=C8(),Gbt=ibe.COMPARISON_OPS2,Hbt=ibe.INTERVAL_OPS,tbe=L8.line;nbe.exports=HT({z:_h.z,x:_h.x,x0:_h.x0,dx:_h.dx,y:_h.y,y0:_h.y0,dy:_h.dy,xperiod:_h.xperiod,yperiod:_h.yperiod,xperiod0:L8.xperiod0,yperiod0:L8.yperiod0,xperiodalignment:_h.xperiodalignment,yperiodalignment:_h.yperiodalignment,text:_h.text,hovertext:_h.hovertext,transpose:_h.transpose,xtype:_h.xtype,ytype:_h.ytype,xhoverformat:_G("x"),yhoverformat:_G("y"),zhoverformat:_G("z",1),hovertemplate:_h.hovertemplate,hovertemplatefallback:_h.hovertemplatefallback,texttemplate:HT({},_h.texttemplate,{}),texttemplatefallback:_h.texttemplatefallback,textfont:HT({},_h.textfont,{}),hoverongaps:_h.hoverongaps,connectgaps:HT({},_h.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Vbt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:Bbt("contour label")},operation:{valType:"enumerated",values:[].concat(Gbt).concat(Hbt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:HT({},tbe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Ubt,smoothing:HT({},tbe.smoothing,{}),editType:"plot"},zorder:L8.zorder},Nbt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var bG=ye((jcr,obe)=>{"use strict";var wv=k8(),Nm=N4(),jbt=Tu(),xG=vf().axisHoverFormat,abe=Ao().extendFlat;obe.exports=abe({x:wv.x,y:wv.y,z:wv.z,marker:wv.marker,histnorm:wv.histnorm,histfunc:wv.histfunc,nbinsx:wv.nbinsx,xbins:wv.xbins,nbinsy:wv.nbinsy,ybins:wv.ybins,autobinx:wv.autobinx,autobiny:wv.autobiny,bingroup:wv.bingroup,xbingroup:wv.xbingroup,ybingroup:wv.ybingroup,autocontour:Nm.autocontour,ncontours:Nm.ncontours,contours:Nm.contours,line:{color:Nm.line.color,width:abe({},Nm.line.width,{dflt:.5}),dash:Nm.line.dash,smoothing:Nm.line.smoothing,editType:"plot"},xhoverformat:xG("x"),yhoverformat:xG("y"),zhoverformat:xG("z",1),hovertemplate:wv.hovertemplate,hovertemplatefallback:wv.hovertemplatefallback,texttemplate:Nm.texttemplate,texttemplatefallback:Nm.texttemplatefallback,textfont:Nm.textfont},jbt("",{cLetter:"z",editTypeOverride:"calc"}))});var P8=ye((Wcr,sbe)=>{"use strict";sbe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,l=n("contours.size"),u;s?u=r.autocontour=!0:u=n("autocontour",!1),(u||!l)&&n("ncontours")}});var wG=ye((Xcr,lbe)=>{"use strict";var Wbt=Pr();lbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Wbt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var I8=ye((Zcr,ube)=>{"use strict";var Xbt=td(),Zbt=wG();ube.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,l="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(l=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Xbt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Zbt(n,i,l,a)}});var dbe=ye((Ycr,hbe)=>{"use strict";var cbe=Pr(),Ybt=yG(),Kbt=P8(),Jbt=I8(),$bt=F4(),fbe=bG();hbe.exports=function(t,r,n,i){function a(s,l){return cbe.coerce(t,r,fbe,s,l)}function o(s){return cbe.coerce2(t,r,fbe,s)}Ybt(t,r,a,i),r.visible!==!1&&(Kbt(t,r,a,o),Jbt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&$bt(a,i))}});var SG=ye((Kcr,pbe)=>{"use strict";var AG=ho(),TG=Pr();pbe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=TG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=TG.aggNums(Math.max,null,r));var o=vbe(i,a,t.ncontours);n.size=o.dtick,n.start=AG.tickFirst(o),o.range.reverse(),n.end=AG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),TG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,l=n.end,u=t._input.contours;if(s>l&&(n.start=u.start=l,l=n.end=u.end=s,s=n.start),!(n.size>0)){var c;s===l?c=1:c=vbe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function vbe(e,t,r){var n={type:"linear",range:[e,t]};return AG.autoTicks(n,(t-e)/(r||15)),n}});var U4=ye((Jcr,gbe)=>{"use strict";gbe.exports=function(t){return t.end+t.size/1e6}});var MG=ye(($cr,ybe)=>{"use strict";var mbe=tc(),Qbt=m8(),e2t=SG(),t2t=U4();ybe.exports=function(t,r){var n=Qbt(t,r),i=n[0].z;e2t(r,i);var a=r.contours,o=mbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=t2t(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,d=h+f*c;s=[h,d]}else s=i;return mbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var V4=ye((Qcr,_be)=>{"use strict";_be.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var EG=ye((efr,xbe)=>{"use strict";var R8=V4();xbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,l,u,c,f,h,d,v;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var kG=ye((tfr,Tbe)=>{"use strict";var D8=Pr(),jT=V4();Tbe.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=jT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=jT.SADDLEREMAINDER[o]):delete e.crossings[a],s=jT.NEWDELTA[o],!s){D8.log("Found bad marching index:",o,t,e.level);break}l.push(wbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),G4(l[l.length-1],l[l.length-2],n,i)&&l.pop();var v=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),m=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(m||r&&v)break;o=e.crossings[a]}d===1e4&&D8.log("Infinite loop in contour?");var b=G4(l[0],l[l.length-1],n,i),p=0,k=.2*e.smoothing,M=[],T=0,L,x,C,S,g,P,E,z,q,V,G;for(d=1;d=T;d--)if(L=M[d],L=T&&L+M[x]z&&q--,e.edgepaths[q]=G.concat(l,V));break}H||(e.edgepaths[z]=l.concat(V))}for(z=0;z20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:jT.BOTTOMSTART.indexOf(e)!==-1?i=1:jT.LEFTSTART.indexOf(e)!==-1?n=1:jT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function wbe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[i][n+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[n]):0)+(l!==0?l*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[i],!0),n+l,i]}else{var c=(e.level-a)/(e.z[i+1][n]-a),f=(c!==1?(1-c)*s.c2l(e.y[i]):0)+(c!==0?c*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(f),!0),n,i+c]}}});var Ebe=ye((rfr,Mbe)=>{"use strict";var CG=C8(),a2t=Eo();Mbe.exports={"[]":Abe("[]"),"][":Abe("]["),">":LG(">"),"<":LG("<"),"=":LG("=")};function Sbe(e,t){var r=Array.isArray(t),n;function i(a){return a2t(a)?+a:null}return CG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):CG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:CG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function Abe(e){return function(t){t=Sbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function LG(e){return function(t){return t=Sbe(e,t),{start:t,end:1/0,size:1/0}}}});var PG=ye((ifr,Cbe)=>{"use strict";var kbe=Pr(),o2t=Ebe(),s2t=U4();Cbe.exports=function(t,r,n){for(var i=t.type==="constraint"?o2t[t._operation](t.value):t,a=i.size,o=[],s=s2t(i),l=n.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},c=i.start;c1e3){kbe.warn("Too many contours, clipping at 1000",t);break}return o}});var IG=ye((nfr,Pbe)=>{"use strict";var WT=Pr();Pbe.exports=function(e,t){var r,n,i,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&WT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Ibe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(i=0;i":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var F8=ye(jv=>{"use strict";var j4=Fa(),zd=Pr(),Wy=So(),l2t=tc(),Fbe=Zl(),Rbe=ho(),Dbe=xm(),u2t=x8(),zbe=EG(),qbe=kG(),c2t=PG(),f2t=IG(),Obe=RG(),H4=V4(),Um=H4.LABELOPTIMIZER;jv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;zd.makeTraceGroups(i,n,"contour").each(function(s){var l=j4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=c2t(d,r,u),m=zd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),u2t(t,r,b,m),zbe(v),qbe(v);var p=a.c2p(f[0],!0),k=a.c2p(f[f.length-1],!0),M=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[p,T],[k,T],[k,M],[p,M]],x=v;d.type==="constraint"&&(x=f2t(v,d._operation)),h2t(l,L,d),d2t(l,x,L,d),v2t(l,v,t,u,d),g2t(l,r,t,u,L)})};function h2t(e,t,r){var n=zd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function d2t(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Obe(t,n);var o=zd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+Bbe(l,r);u?j4.select(this).attr("d",u).style("stroke","none"):j4.select(this).remove()})}function Bbe(e,t){var r="",n=0,i=e.edgepaths.map(function(p,k){return k}),a=!0,o,s,l,u,c,f;function h(p){return Math.abs(p[1]-t[0][1])<.01}function d(p){return Math.abs(p[1]-t[2][1])<.01}function v(p){return Math.abs(p[0]-t[0][0])<.01}function m(p){return Math.abs(p[0]-t[2][0])<.01}for(;i.length;){for(f=Wy.smoothopen(e.edgepaths[n],e.smoothing),r+=a?f:f.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],u=-1,l=0;l<4;l++){if(!o){zd.log("Missing end?",n,e);break}for(h(o)&&!m(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:m(o)&&(s=t[2]),c=0;c=0&&(s=b,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,u=c):zd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){zd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nUm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Um.MAXCOST)return c};function p2t(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,f=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var d=Um.EDGECOST*(1/(f-1)+1/(h-1));d+=Um.ANGLECOST*l*l;for(var v=o-u,m=s-c,b=o+u,p=s+c,k=0;k{"use strict";var y2t=Fa(),DG=tc(),_2t=U4();Nbe.exports=function(t){var r=t.contours,n=r.start,i=_2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=DG.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?DG.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,m=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=m&&(n=m),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;vm&&(f.unshift(m),h.unshift(h[0])),f[f.length-1]{"use strict";var z8=Fa(),Ube=So(),x2t=b8(),b2t=FG();Vbe.exports=function(t){var r=z8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=z8.select(this),a=n[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",d=f||h?b2t(a):null;i.selectAll("g.contourlevel").each(function(b){z8.select(this).selectAll("path").call(Ube.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Ube.font(z8.select(this),{weight:v.weight,style:v.style,variant:v.variant,textcase:v.textcase,lineposition:v.lineposition,shadow:v.shadow,family:v.family,size:v.size,color:v.color||(f?d(b.level):s.color)})}),c)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var m;i.selectAll("g.contourfill path").style("fill",function(b){return m===void 0&&(m=b.level),d(b.level+.5*l)}),m===void 0&&(m=u),i.selectAll("g.contourbg path").style("fill",d(m-.5*l))}}),x2t(t)}});var O8=ye((ufr,Hbe)=>{"use strict";var Gbe=tc(),w2t=FG(),T2t=U4();function A2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=w2t(t,{isColorbar:!0});if(o==="heatmap"){var l=Gbe.extractOpts(t);r._fillgradient=l.reversescale?Gbe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:T2t(n),size:a}}Hbe.exports={min:"zmin",max:"zmax",calc:A2t}});var zG=ye((cfr,jbe)=>{"use strict";var B8=ka(),S2t=T8();jbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=S2t(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&B8.opacity(l.fillcolor)?s.color=B8.addOpacity(l.fillcolor,1):l.contours.showlines&&B8.opacity(l.line.color)&&(s.color=B8.addOpacity(l.line.color,1)))}),o}});var Xbe=ye((ffr,Wbe)=>{"use strict";Wbe.exports={attributes:bG(),supplyDefaults:dbe(),crossTraceDefaults:M8(),calc:MG(),plot:F8().plot,layerName:"contourlayer",style:q8(),colorbar:O8(),hoverPoints:zG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Ybe=ye((hfr,Zbe)=>{"use strict";Zbe.exports=Xbe()});var qG=ye((dfr,t2e)=>{"use strict";var Kbe=Eo(),M2t=wG(),Qbe=ka(),Jbe=Qbe.addOpacity,E2t=Qbe.opacity,e2e=C8(),$be=Pr().isArrayOrTypedArray,k2t=e2e.CONSTRAINT_REDUCTION,C2t=e2e.COMPARISON_OPS2;t2e.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=k2t[f],L2t(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",Jbe((t.line||{}).color||a,.5))),l){var h=c&&E2t(c)?Jbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),M2t(n,i,u,o)};function L2t(e,t){var r;C2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),$be(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Kbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Kbe(t.value)||($be(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var n2e=ye((vfr,i2e)=>{"use strict";var OG=Pr(),P2t=s8(),I2t=Dg(),R2t=qG(),D2t=P8(),F2t=I8(),z2t=F4(),r2e=N4();i2e.exports=function(t,r,n,i){function a(u,c){return OG.coerce(t,r,r2e,u,c)}function o(u){return OG.coerce2(t,r,r2e,u)}var s=P2t(t,r,a,i);if(!s){r.visible=!1;return}I2t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate"),a("hovertemplatefallback");var l=a("contours.type")==="constraint";a("connectgaps",OG.isArray1D(r.z)),l?R2t(t,r,a,i,n):(D2t(t,r,a,o),F2t(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&z2t(a,i),a("zorder")}});var o2e=ye((pfr,a2e)=>{"use strict";a2e.exports={attributes:N4(),supplyDefaults:n2e(),calc:MG(),plot:F8().plot,style:q8(),colorbar:O8(),hoverPoints:zG(),moduleType:"trace",name:"contour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var l2e=ye((gfr,s2e)=>{"use strict";s2e.exports=o2e()});var BG=ye((mfr,h2e)=>{"use strict";var{hovertemplateAttrs:q2t,texttemplateAttrs:O2t,templatefallbackAttrs:u2e}=Pl(),B2t=Pg(),o0=pf(),N2t=Vl(),c2e=Tu(),U2t=Pd().dash,z_=Ao().extendFlat,X0=o0.marker,W4=o0.line,f2e=X0.line;h2e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:z_({},o0.mode,{dflt:"markers"}),text:z_({},o0.text,{}),texttemplate:O2t({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:u2e({editType:"plot"}),hovertext:z_({},o0.hovertext,{}),line:{color:W4.color,width:W4.width,dash:U2t,backoff:W4.backoff,shape:z_({},W4.shape,{values:["linear","spline"]}),smoothing:W4.smoothing,editType:"calc"},connectgaps:o0.connectgaps,cliponaxis:o0.cliponaxis,fill:z_({},o0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:B2t(),marker:z_({symbol:X0.symbol,opacity:X0.opacity,angle:X0.angle,angleref:X0.angleref,standoff:X0.standoff,maxdisplayed:X0.maxdisplayed,size:X0.size,sizeref:X0.sizeref,sizemin:X0.sizemin,sizemode:X0.sizemode,line:z_({width:f2e.width,dash:f2e.dash,editType:"calc"},c2e("marker.line")),gradient:X0.gradient,editType:"calc"},c2e("marker")),textfont:o0.textfont,textposition:o0.textposition,selected:o0.selected,unselected:o0.unselected,hoverinfo:z_({},N2t.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o0.hoveron,hovertemplate:q2t(),hovertemplatefallback:u2e()}});var g2e=ye((yfr,p2e)=>{"use strict";var d2e=Pr(),V2t=Pm(),XT=Ru(),G2t=$p(),H2t=D0(),v2e=fT(),j2t=F0(),W2t=Fg(),X2t=BG();p2e.exports=function(t,r,n,i){function a(h,d){return d2e.coerce(t,r,X2t,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var c=u{"use strict";var NG=ho();m2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=NG.tickText(a.aaxis,t.a,!0).text,i.bLabel=NG.tickText(a.baxis,t.b,!0).text,i.cLabel=NG.tickText(a.caxis,t.c,!0).text,i}});var w2e=ye((xfr,b2e)=>{"use strict";var UG=Eo(),Z2t=z0(),Y2t=Dm(),K2t=q0(),J2t=O0().calcMarkerSize,_2e=["a","b","c"],x2e={a:["b","c"],b:["a","c"],c:["a","b"]};b2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,d;for(l=0;l<_2e.length;l++)if(c=_2e[l],!o[c]){for(h=o[x2e[c][0]],d=o[x2e[c][1]],f=new Array(h.length),u=0;u{"use strict";var $2t=mT();T2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var Q2t=bT();S2e.exports=function(t,r,n,i){var a=Q2t(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,d=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var v={};v[h.subplot]={_subplot:d};var m=h._module.formatLabels(f,h,v);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var b=f.hi||h.hoverinfo,p=[];function k(T,L){p.push(T._hovertitle+": "+L)}if(!h.hovertemplate){var M=b.split("+");M.indexOf("all")!==-1&&(M=["a","b","c"]),M.indexOf("a")!==-1&&k(d.aaxis,o.aLabel),M.indexOf("b")!==-1&&k(d.baxis,o.bLabel),M.indexOf("c")!==-1&&k(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var k2e=ye((Tfr,E2e)=>{"use strict";E2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var B2e=ye((Afr,O2e)=>{"use strict";var D2e=Fa(),ewt=fd(),VG=Oa(),Xy=Pr(),Vm=Xy.strTranslate,N8=Xy._,YT=ka(),U8=So(),X4=xm(),GG=Ao().extendFlat,twt=Mc(),q_=ho(),C2e=yv(),L2e=ef(),F2e=Cg(),P2e=F2e.freeMode,rwt=F2e.rectMode,HG=qb(),iwt=qf().prepSelect,nwt=qf().selectOnClick,awt=qf().clearOutline,owt=qf().clearSelectionsCache,z2e=Rh();function q2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}O2e.exports=q2e;var Gm=q2e.prototype;Gm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Gm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aZT*u?(p=u,b=p*ZT):(b=l,p=b/ZT),k=o*b/l,M=s*p/u,v=t.l+t.w*i-b/2,m=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=m,r.w=b,r.h=p,r.sum=c,r.xaxis={type:"linear",range:[f+2*d-c,c-f-2*h],domain:[i-k/2,i+k/2],_id:"x"},X4(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(V){return V.a>=r.aaxis.range[0]&&V.a<=r.aaxis.range[1]&&V.b>=r.baxis.range[1]&&V.b<=r.baxis.range[0]&&V.c>=r.caxis.range[1]&&V.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-d],domain:[a-M/2,a+M/2],_id:"y"},X4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=GG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+M*ZT],anchor:"free",position:0,_id:"y",_length:b});X4(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=GG({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});X4(x,r.graphDiv._fullLayout),x.setScale();var C=r.caxis=GG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+M*ZT],anchor:"free",position:0,_id:"y",_length:b});X4(C,r.graphDiv._fullLayout),C.setScale();var S="M"+v+","+(m+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",S),r.layers.plotbg.select("path").attr("d",S);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Vm(v,m);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var E=Vm(v-x._offset,m+p);r.layers.baxis.attr("transform",E),r.layers.bgrid.attr("transform",E);var z=Vm(v+b/2,m)+"rotate(30)"+Vm(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var q=Vm(v+b/2,m)+"rotate(-30)"+Vm(0,-C._offset);r.layers.caxis.attr("transform",q),r.layers.cgrid.attr("transform",q),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(m+p)+"l"+b/2+",-"+p:"M0,0").call(YT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+v+","+(m+p)+"h"+b:"M0,0").call(YT.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(v+b/2)+","+m+"l"+b/2+","+p:"M0,0").call(YT.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),U8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Gm.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.slice(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=HG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:N8(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),i["b-title"]=HG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:N8(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),i["c-title"]=HG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:N8(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};Gm.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,l=i+"tickLayout",u=swt(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=q_.calcTicks(e),f=q_.clipEnds(e,c),h=q_.makeTransTickFn(e),d=q_.getTickSigns(e)[2],v=Xy.deg2rad(s),m=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,k=t.h,M=i==="b"?"M0,"+m+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"M"+m+",0l"+Math.cos(v)*b+","+-Math.sin(v)*b,T={a:"M0,0l"+k+",-"+p/2,b:"M0,0l-"+p/2+",-"+k,c:"M0,0l-"+k+","+p/2}[i];q_.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:M,transFn:h,crisp:!1}),q_.drawGrid(r,e,{vals:f,layer:t.layers[i+"grid"],path:T,transFn:h,crisp:!1}),q_.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:q_.makeLabelFns(e,0,s)})};function swt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=z2e.MINZOOM/2+.87,lwt="m-0.87,.5h"+yd+"v3h-"+(yd+5.2)+"l"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l2.6,1.5l-"+yd/2+","+yd*.87+"Z",uwt="m0.87,.5h-"+yd+"v3h"+(yd+5.2)+"l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-2.6,1.5l"+yd/2+","+yd*.87+"Z",cwt="m0,1l"+yd/2+","+yd*.87+"l2.6,-1.5l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-"+(yd/2+2.6)+","+(yd*.87+4.5)+"l2.6,1.5l"+yd/2+",-"+yd*.87+"Z",fwt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",I2e=!0;Gm.clearOutline=function(){owt(this.dragOptions),awt(this.dragOptions.gd)};Gm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(E,z,q){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var V=e.dragOptions.dragmode=r._fullLayout.dragmode;P2e(V)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,V==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=p,e.dragOptions.doneFn=C,k(E,z,q)):V==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,S(),e.clearOutline(r)):(rwt(V)||P2e(V))&&iwt(E,z,q,e.dragOptions,V)}};var o,s,l,u,c,f,h,d,v,m;function b(E){var z={};return z[e.id+".aaxis.min"]=E.a,z[e.id+".baxis.min"]=E.b,z[e.id+".caxis.min"]=E.c,z}function p(E,z){var q=r._fullLayout.clickmode;R2e(r),E===2&&(r.emit("plotly_doubleclick",null),VG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),q.indexOf("select")>-1&&E===1&&nwt(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),q.indexOf("event")>-1&&L2e.click(r,z,e.id)}function k(E,z,q){var V=t.getBoundingClientRect();o=z-V.left,s=q-V.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,Z=Xy.apply3DTransform(G)(o,s);o=Z[0],s=Z[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=ewt(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,v=n.append("path").attr("class","zoombox").attr("transform",Vm(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),m=n.append("path").attr("class","zoombox-corners").attr("transform",Vm(e.x0,e.y0)).style({fill:YT.background,stroke:YT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function M(E,z){return 1-z/e.h}function T(E,z){return 1-(E+(e.h-z)/Math.sqrt(3))/e.w}function L(E,z){return(E-(e.h-z)/Math.sqrt(3))/e.w}function x(E,z){var q=o+E*i,V=s+z*a,G=Math.max(0,Math.min(1,M(o,s),M(q,V))),Z=Math.max(0,Math.min(1,T(o,s),T(q,V))),j=Math.max(0,Math.min(1,L(o,s),L(q,V))),N=(G/2+j)*e.w,H=(1-G/2-Z)*e.w,re=(N+H)/2,ae=H-N,_e=(1-G)*e.h,Ee=_e-ae/ZT;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),m.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function C(){R2e(r),c!==l&&(VG.call("_guiRelayout",r,b(c)),I2e&&r.data&&r._context.showTips&&(Xy.notifier(N8(r,"Double-click to zoom back out"),"long",r),I2e=!1))}function S(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(E,z){var q=E/e.xaxis._m,V=z/e.yaxis._m;c={a:l.a-V,b:l.b+(q+V)/2,c:l.c-(q-V)/2};var G=[c.a,c.b,c.c].sort(Xy.sorterAsc),Z={a:G.indexOf(c.a),b:G.indexOf(c.b),c:G.indexOf(c.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),c={a:G[Z.a],b:G[Z.b],c:G[Z.c]},z=(l.a-c.a)*e.yaxis._m,E=(l.c-c.c-l.b+c.b)*e.xaxis._m);var j=Vm(e.x0+E,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",j);var N=Vm(-E,-z);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(U8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){VG.call("_guiRelayout",r,b(c))}t.onmousemove=function(E){L2e.hover(r,E,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(E){r._dragging||C2e.unhover(r,E)},C2e.init(this.dragOptions)};function R2e(e){D2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var XG=ye((Sfr,N2e)=>{"use strict";var hwt=Ih(),dwt=Cc().attributes,su=Rd(),vwt=mc().overrideAll,jG=Ao().extendFlat,WG={title:{text:su.title.text,font:su.title.font},color:su.color,tickmode:su.minor.tickmode,nticks:jG({},su.nticks,{dflt:6,min:1}),tick0:su.tick0,dtick:su.dtick,tickvals:su.tickvals,ticktext:su.ticktext,ticks:su.ticks,ticklen:su.ticklen,tickwidth:su.tickwidth,tickcolor:su.tickcolor,ticklabelstep:su.ticklabelstep,showticklabels:su.showticklabels,labelalias:su.labelalias,showtickprefix:su.showtickprefix,tickprefix:su.tickprefix,showticksuffix:su.showticksuffix,ticksuffix:su.ticksuffix,showexponent:su.showexponent,exponentformat:su.exponentformat,minexponent:su.minexponent,separatethousands:su.separatethousands,tickfont:su.tickfont,tickangle:su.tickangle,tickformat:su.tickformat,tickformatstops:su.tickformatstops,hoverformat:su.hoverformat,showline:jG({},su.showline,{dflt:!0}),linecolor:su.linecolor,linewidth:su.linewidth,showgrid:jG({},su.showgrid,{dflt:!0}),gridcolor:su.gridcolor,gridwidth:su.gridwidth,griddash:su.griddash,layer:su.layer,min:{valType:"number",dflt:0,min:0}},V8=N2e.exports=vwt({domain:dwt({name:"ternary"}),bgcolor:{valType:"color",dflt:hwt.background},sum:{valType:"number",dflt:1,min:0},aaxis:WG,baxis:WG,caxis:WG},"plot","from-root");V8.uirevision={valType:"any",editType:"none"};V8.aaxis.uirevision=V8.baxis.uirevision=V8.caxis.uirevision={valType:"any",editType:"none"}});var O_=ye((Mfr,U2e)=>{"use strict";var pwt=Pr(),gwt=vl(),mwt=Cc().defaults;U2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,l=i.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,d;function v(k,M){return pwt.coerce(h,d,o,k,M)}for(var m=0;m{"use strict";var ywt=ka(),_wt=vl(),G8=Pr(),xwt=O_(),bwt=l_(),wwt=u_(),Twt=B3(),Awt=Pb(),Swt=h4(),G2e=XG(),V2e=["aaxis","baxis","caxis"];H2e.exports=function(t,r,n){xwt(t,r,n,{type:"ternary",attributes:G2e,handleDefaults:Mwt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function Mwt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=ywt.combine(i,n.paper_bgcolor);for(var o,s,l,u=0;u=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function Ewt(e,t,r,n){var i=G2e[t._name];function a(d,v){return G8.coerce(e,t,i,d,v)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,G8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:G8.bigFont(r.font.size),color:s}}),a("min"),Awt(e,t,a,"linear"),wwt(e,t,a,"linear"),bwt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),Twt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(G8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),Swt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var W2e=ye(Z0=>{"use strict";var kwt=B2e(),Cwt=Id().getSubplotCalcData,Lwt=Pr().counterRegex,KT="ternary";Z0.name=KT;var Pwt=Z0.attr="subplot";Z0.idRoot=KT;Z0.idRegex=Z0.attrRegex=Lwt(KT);var Iwt=Z0.attributes={};Iwt[Pwt]={valType:"subplotid",dflt:"ternary",editType:"calc"};Z0.layoutAttributes=XG();Z0.supplyLayoutDefaults=j2e();Z0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[KT],a=0;a{"use strict";X2e.exports={attributes:BG(),supplyDefaults:g2e(),colorbar:Qd(),formatLabels:y2e(),calc:w2e(),plot:A2e(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:M2e(),selectPoints:wT(),eventData:k2e(),moduleType:"trace",name:"scatterternary",basePlotModule:W2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var K2e=ye((Lfr,Y2e)=>{"use strict";Y2e.exports=Z2e()});var ZG=ye((Pfr,$2e)=>{"use strict";var Oh=P4(),JT=Ao().extendFlat,J2e=vf().axisHoverFormat;$2e.exports={y:Oh.y,x:Oh.x,x0:Oh.x0,y0:Oh.y0,xhoverformat:J2e("x"),yhoverformat:J2e("y"),name:JT({},Oh.name,{}),orientation:JT({},Oh.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Oh.fillcolor,points:JT({},Oh.boxpoints,{}),jitter:JT({},Oh.jitter,{}),pointpos:JT({},Oh.pointpos,{}),width:JT({},Oh.width,{}),marker:Oh.marker,text:Oh.text,hovertext:Oh.hovertext,hovertemplate:Oh.hovertemplate,hovertemplatefallback:Oh.hovertemplatefallback,quartilemethod:Oh.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:Oh.offsetgroup,alignmentgroup:Oh.alignmentgroup,selected:Oh.selected,unselected:Oh.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:Oh.zorder}});var JG=ye((Ifr,Q2e)=>{"use strict";var YG=I4(),KG=Pr().extendFlat;Q2e.exports={violinmode:KG({},YG.boxmode,{}),violingap:KG({},YG.boxgap,{}),violingroupgap:KG({},YG.boxgroupgap,{})}});var nwe=ye((Rfr,iwe)=>{"use strict";var ewe=Pr(),Rwt=ka(),twe=D4(),rwe=ZG();iwe.exports=function(t,r,n,i){function a(L,x){return ewe.coerce(t,r,rwe,L,x)}function o(L,x){return ewe.coerce2(t,r,rwe,L,x)}if(twe.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||n),f=a("line.width"),h=a("fillcolor",Rwt.addOpacity(r.line.color,.5));twe.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),m=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||m||b));p||(r.box={visible:!1});var k=o("meanline.color",c),M=o("meanline.width",f),T=a("meanline.visible",!!(k||M));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var owe=ye((Dfr,awe)=>{"use strict";var Dwt=Pr(),Fwt=JG(),zwt=t8();awe.exports=function(t,r,n){function i(a,o){return Dwt.coerce(t,r,Fwt,a,o)}zwt._supply(t,r,n,i,"violin")}});var H8=ye(_2=>{"use strict";var qwt=Pr(),Owt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};_2.makeKDE=function(e,t,r){var n=r.length,i=Owt.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var $G=Pr(),QG=ho(),Bwt=HV(),swe=H8(),Nwt=fs().BADNUM;lwe.exports=function(t,r){var n=Bwt(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=QG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var Hwt=i8().setPositionOffset,cwe=["v","h"];fwe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var eH=Fa(),tH=Pr(),jwt=So(),rH=n8(),Wwt=kU(),Xwt=H8();dwe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=Wwt(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return jwt.smoothopen(h[0],1)}tH.makeTraceGroups(i,n,"trace violins").each(function(c){var f=eH.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var m=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],k=r[d.posLetter+"axis"],M=v.side==="both",T=M||v.side==="positive",L=M||v.side==="negative",x=f.selectAll("path.violin").data(tH.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(V){var G=eH.select(this),Z=V.density,j=Z.length,N=k.c2l(V.pos+m,!0),H=k.l2p(N),re;if(v.width)re=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[v.scalegroup];re=v.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/V.pts.length):ae.maxKDE/b}var _e,Ee,Ce,ge,ie,Se,ke;if(T){for(Se=new Array(j),ge=0;ge{"use strict";var pwe=Fa(),$T=ka(),Zwt=sp().stylePoints;gwe.exports=function(t){var r=pwe.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=pwe.select(this),o=i.box||{},s=o.line||{},l=i.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call($T.stroke,i.line.color).call($T.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call($T.stroke,s.color).call($T.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call($T.stroke,l.color),a.selectAll("path.meanline").style(c).call($T.stroke,l.color),Zwt(a,i,t)})}});var bwe=ye((Nfr,xwe)=>{"use strict";var Ywt=ka(),iH=Pr(),Kwt=ho(),ywe=YV(),_we=H8();xwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],d,v;if(c||f){var m=ywe.hoverOnBoxes(t,r,n,i);if(f&&m.length>0){var b=t.xa,p=t.ya,k,M,T,L,x;l.orientation==="h"?(x=r,k="y",T=p,M="x",L=b):(x=n,k="x",T=b,M="y",L=p);var C=s[t.index];if(x>=C.span[0]&&x<=C.span[1]){var S=iH.extendFlat({},t),g=L.c2p(x,!0),P=_we.getKdeValue(C,l,x),E=_we.getPositionOnKdePath(C,l,g),z=T._offset,q=T._length;S[k+"0"]=E[0],S[k+"1"]=E[1],S[M+"0"]=S[M+"1"]=g,S[M+"Label"]=M+": "+Kwt.hoverLabelText(L,x,l[M+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var V=0,G=0;G{"use strict";wwe.exports={attributes:ZG(),layoutAttributes:JG(),supplyDefaults:nwe(),crossTraceDefaults:D4().crossTraceDefaults,supplyLayoutDefaults:owe(),calc:uwe(),crossTraceCalc:hwe(),plot:vwe(),style:mwe(),styleOnSelect:sp().styleOnSelect,hoverPoints:bwe(),selectPoints:KV(),moduleType:"trace",name:"violin",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Swe=ye((Vfr,Awe)=>{"use strict";Awe.exports=Twe()});var Ewe=ye((Gfr,Mwe)=>{"use strict";Mwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var aH=ye((Hfr,Pwe)=>{"use strict";var jc=qm(),nH=pf().line,Jwt=Vl(),kwe=vf().axisHoverFormat,{hovertemplateAttrs:$wt,texttemplateAttrs:Qwt,templatefallbackAttrs:Cwe}=Pl(),Lwe=Ewe(),Zy=Ao().extendFlat,e3t=ka();Pwe.exports={x:jc.x,x0:jc.x0,dx:jc.dx,y:jc.y,y0:jc.y0,dy:jc.dy,xperiod:jc.xperiod,yperiod:jc.yperiod,xperiod0:jc.xperiod0,yperiod0:jc.yperiod0,xperiodalignment:jc.xperiodalignment,yperiodalignment:jc.yperiodalignment,xhoverformat:kwe("x"),yhoverformat:kwe("y"),hovertext:jc.hovertext,hovertemplate:$wt({},{keys:Lwe.eventDataKeys}),hovertemplatefallback:Cwe(),hoverinfo:Zy({},Jwt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Qwt({editType:"plot"},{keys:Lwe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Cwe({editType:"plot"}),text:jc.text,textposition:jc.textposition,insidetextanchor:Zy({},jc.insidetextanchor,{dflt:"middle"}),textangle:Zy({},jc.textangle,{dflt:0}),textfont:jc.textfont,insidetextfont:jc.insidetextfont,outsidetextfont:jc.outsidetextfont,constraintext:jc.constraintext,cliponaxis:jc.cliponaxis,orientation:Zy({},jc.orientation,{}),offset:Zy({},jc.offset,{arrayOk:!1}),width:Zy({},jc.width,{arrayOk:!1}),marker:t3t(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Zy({},nH.color,{dflt:e3t.defaultLine}),width:Zy({},nH.width,{dflt:0,editType:"plot"}),dash:nH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function t3t(){var e=Zy({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var oH=ye((jfr,Iwe)=>{"use strict";Iwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var lH=ye((Wfr,Dwe)=>{"use strict";var j8=Pr(),r3t=i2(),i3t=i0().handleText,n3t=cT(),a3t=Dg(),Rwe=aH(),sH=ka();function o3t(e,t,r,n){function i(f,h){return j8.coerce(e,t,Rwe,f,h)}var a=n3t(e,t,n,i);if(!a){t.visible=!1;return}a3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var s=i("textposition");i3t(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",j8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",sH.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",s3t(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function s3t(e){var t=j8.isArrayOrTypedArray(e)?"#000":e;return sH.addOpacity(t,.5*sH.opacity(t))}function l3t(e,t){var r,n;function i(o){return j8.coerce(n._input,n,Rwe,o)}for(var a=0;a{"use strict";var u3t=Pr(),c3t=oH();Fwe.exports=function(e,t,r){var n=!1;function i(s,l){return u3t.coerce(e,t,c3t,s,l)}for(var a=0;a{"use strict";var QT=Pr();qwe.exports=function(t,r){for(var n=0;n{"use strict";var Bwe=ho(),Nwe=zg(),f3t=Owe(),h3t=q0(),Z4=fs().BADNUM;Uwe.exports=function(t,r){var n=Bwe.getFromId(t,r.xaxis||"x"),i=Bwe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=Nwe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=Nwe(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var d=Math.min(o.length,a.length),v=new Array(d);for(r._base=[],f=0;f{"use strict";var Gwe=n2().setGroupPositions;Hwe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var W8=Fa(),N_=Pr(),Wwe=So(),B_=fs().BADNUM,d3t=g2(),v3t=bv().clearMinTextSize;Zwe.exports=function(t,r,n,i){var a=t._fullLayout;v3t("funnel",a),p3t(t,r,n,i),g3t(t,r,n,i),d3t.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function p3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;N_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=W8.select(this),l=o[0].trace,u=N_.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(N_.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var m=Xwe(d,i,a,c),b=m[0],p=m[1],k="";b[0]!==B_&&p[0]!==B_&&b[1]!==B_&&p[1]!==B_&&b[2]!==B_&&p[2]!==B_&&b[3]!==B_&&p[3]!==B_&&(c?k+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2]+"H"+b[3]+"L"+b[1]+","+p[1]+"Z":k+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3]+"V"+p[2]+"L"+b[1]+","+p[0]+"Z"),k===""&&(k="M0,0Z"),N_.ensureSingle(W8.select(this),"path").attr("d",k).call(Wwe.setClipUrl,t.layerClipId,e)}})})}function g3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;N_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=W8.select(this),l=o[0].trace,u=N_.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(N_.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var m=Xwe(d,i,a,c),b=m[0],p=m[1],k="";b[3]!==void 0&&p[3]!==void 0&&(c?(k+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2],k+="M"+b[1]+","+p[1]+"L"+b[3]+","+p[2]):(k+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3],k+="M"+b[1]+","+p[0]+"L"+b[2]+","+p[2])),k===""&&(k="M0,0Z"),N_.ensureSingle(W8.select(this),"path").attr("d",k).call(Wwe.setClipUrl,t.layerClipId,e)}})})}function Xwe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var $we=ye(($fr,Jwe)=>{"use strict";var Y4=Fa(),Kwe=So(),cH=ka(),m3t=Z1().DESELECTDIM,y3t=V0(),_3t=bv().resizeText,x3t=y3t.styleTextPoints;function b3t(e,t,r){var n=r||Y4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");_3t(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=Y4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;Y4.select(this).call(cH.fill,s.mc||l.color).call(cH.stroke,s.mlc||l.line.color).call(Kwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?m3t:1)}}),x3t(a,o,e),a.selectAll(".regions").each(function(){Y4.select(this).selectAll("path").style("stroke-width",0).call(cH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Kwe.lineGroupStyle(Y4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Jwe.exports={style:b3t}});var t3e=ye((Qfr,e3e)=>{"use strict";var Qwe=ka().opacity,w3t=FT().hoverOnBars,fH=Pr().formatPercent;e3e.exports=function(t,r,n,i,a){var o=w3t(t,r,n,i,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=fH(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=fH(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=fH(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var m=d==="all",b=d.split("+"),p=function(k){return m||b.indexOf(k)!==-1};p("percent initial")&&v.push(o.percentInitialLabel+" of initial"),p("percent previous")&&v.push(o.percentPreviousLabel+" of previous"),p("percent total")&&v.push(o.percentTotalLabel+" of total")}return o.extraText=v.join("
"),o.color=T3t(l,f),[o]}};function T3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Qwe(n))return n;if(Qwe(i)&&a)return i}});var i3e=ye((ehr,r3e)=>{"use strict";r3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var a3e=ye((thr,n3e)=>{"use strict";n3e.exports={attributes:aH(),layoutAttributes:oH(),supplyDefaults:lH().supplyDefaults,crossTraceDefaults:lH().crossTraceDefaults,supplyLayoutDefaults:zwe(),calc:Vwe(),crossTraceCalc:jwe(),plot:Ywe(),style:$we().style,hoverPoints:t3e(),eventData:i3e(),selectPoints:zT(),moduleType:"trace",name:"funnel",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var s3e=ye((rhr,o3e)=>{"use strict";o3e.exports=a3e()});var u3e=ye((ihr,l3e)=>{"use strict";l3e.exports={eventDataKeys:["initial","delta","final"]}});var vH=ye((nhr,d3e)=>{"use strict";var _c=qm(),hH=pf().line,A3t=Vl(),c3e=vf().axisHoverFormat,{hovertemplateAttrs:S3t,texttemplateAttrs:M3t,templatefallbackAttrs:f3e}=Pl(),h3e=u3e(),eA=Ao().extendFlat,E3t=ka();function dH(e){return{marker:{color:eA({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:eA({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:eA({},_c.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}d3e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:_c.x,x0:_c.x0,dx:_c.dx,y:_c.y,y0:_c.y0,dy:_c.dy,xperiod:_c.xperiod,yperiod:_c.yperiod,xperiod0:_c.xperiod0,yperiod0:_c.yperiod0,xperiodalignment:_c.xperiodalignment,yperiodalignment:_c.yperiodalignment,xhoverformat:c3e("x"),yhoverformat:c3e("y"),hovertext:_c.hovertext,hovertemplate:S3t({},{keys:h3e.eventDataKeys}),hovertemplatefallback:f3e(),hoverinfo:eA({},A3t.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:M3t({editType:"plot"},{keys:h3e.eventDataKeys.concat(["label"])}),texttemplatefallback:f3e({editType:"plot"}),text:_c.text,textposition:_c.textposition,insidetextanchor:_c.insidetextanchor,textangle:_c.textangle,textfont:_c.textfont,insidetextfont:_c.insidetextfont,outsidetextfont:_c.outsidetextfont,constraintext:_c.constraintext,cliponaxis:_c.cliponaxis,orientation:_c.orientation,offset:_c.offset,width:_c.width,increasing:dH("increasing"),decreasing:dH("decreasing"),totals:dH("intermediate sums and total"),connector:{line:{color:eA({},hH.color,{dflt:E3t.defaultLine}),width:eA({},hH.width,{editType:"plot"}),dash:hH.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:_c.offsetgroup,alignmentgroup:_c.alignmentgroup,zorder:_c.zorder}});var pH=ye((ahr,v3e)=>{"use strict";v3e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var tA=ye((ohr,p3e)=>{"use strict";p3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var mH=ye((shr,_3e)=>{"use strict";var g3e=Pr(),k3t=i2(),C3t=i0().handleText,L3t=cT(),P3t=Dg(),m3e=vH(),I3t=ka(),y3e=tA(),R3t=y3e.INCREASING.COLOR,D3t=y3e.DECREASING.COLOR,F3t="#4499FF";function gH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",I3t.defaultLine),e(t+".marker.line.width")}function z3t(e,t,r,n){function i(u,c){return g3e.coerce(e,t,m3e,u,c)}var a=L3t(e,t,n,i);if(!a){t.visible=!1;return}P3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");C3t(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),i("texttemplatefallback"),t.texttemplate||i("textinfo")),gH(i,"increasing",R3t),gH(i,"decreasing",D3t),gH(i,"totals",F3t);var s=i("connector.visible");if(s){i("connector.mode");var l=i("connector.line.width");l&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function q3t(e,t){var r,n;function i(o){return g3e.coerce(n._input,n,m3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var O3t=Pr(),B3t=pH();x3e.exports=function(e,t,r){var n=!1;function i(s,l){return O3t.coerce(e,t,B3t,s,l)}for(var a=0;a{"use strict";var w3e=ho(),T3e=zg(),A3e=Pr().mergeArray,N3t=q0(),S3e=fs().BADNUM;function yH(e){return e==="a"||e==="absolute"}function _H(e){return e==="t"||e==="total"}M3e.exports=function(t,r){var n=w3e.getFromId(t,r.xaxis||"x"),i=w3e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=T3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=T3e(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),d=0,v,m=!1,b=0;b{"use strict";var k3e=n2().setGroupPositions;C3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var P3e=Fa(),X8=Pr(),U3t=So(),rA=fs().BADNUM,V3t=g2(),G3t=bv().clearMinTextSize;I3e.exports=function(t,r,n,i){var a=t._fullLayout;G3t("waterfall",a),V3t.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),H3t(t,r,n,i)};function H3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;X8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=P3e.select(this),l=o[0].trace,u=X8.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(X8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,m){if(!(m!==d-1&&!v.cNext)){var b=j3t(v,i,a,c),p=b[0],k=b[1],M="";p[0]!==rA&&k[0]!==rA&&p[1]!==rA&&k[1]!==rA&&(f==="spanning"&&!v.isSum&&m>0&&(c?M+="M"+p[0]+","+k[1]+"V"+k[0]:M+="M"+p[1]+","+k[0]+"H"+p[0]),f!=="between"&&(v.isSum||m{"use strict";var Z8=Fa(),D3e=So(),F3e=ka(),W3t=Z1().DESELECTDIM,X3t=V0(),Z3t=bv().resizeText,Y3t=X3t.styleTextPoints;function K3t(e,t,r){var n=r||Z8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");Z3t(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=Z8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;Z8.select(this).call(F3e.fill,l.color).call(F3e.stroke,l.line.color).call(D3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?W3t:1)}}),Y3t(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;D3e.lineGroupStyle(Z8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}z3e.exports={style:K3t}});var V3e=ye((dhr,U3e)=>{"use strict";var J3t=ho().hoverLabelText,O3e=ka().opacity,$3t=FT().hoverOnBars,B3e=tA(),N3e={increasing:B3e.INCREASING.SYMBOL,decreasing:B3e.DECREASING.SYMBOL};U3e.exports=function(t,r,n,i,a){var o=$3t(t,r,n,i,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(x){return J3t(f,x,l[c+"hoverformat"])}var d=o.index,v=s[d],m=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-m,o.delta=m,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=m<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var p=v.hi||l.hoverinfo,k=[];if(p&&p!=="none"&&p!=="skip"){var M=p==="all",T=p.split("+"),L=function(x){return M||T.indexOf(x)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&k.push(o.finalLabel),L("delta")&&(m<0?k.push(o.deltaLabel+" "+N3e.decreasing):k.push(o.deltaLabel+" "+N3e.increasing)),L("initial")&&k.push("Initial: "+o.initialLabel))}return k.length&&(o.extraText=k.join("
")),o.color=Q3t(l,v),[o]};function Q3t(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(O3e(n))return n;if(O3e(i)&&a)return i}});var H3e=ye((vhr,G3e)=>{"use strict";G3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var W3e=ye((phr,j3e)=>{"use strict";j3e.exports={attributes:vH(),layoutAttributes:pH(),supplyDefaults:mH().supplyDefaults,crossTraceDefaults:mH().crossTraceDefaults,supplyLayoutDefaults:b3e(),calc:E3e(),crossTraceCalc:L3e(),plot:R3e(),style:q3e().style,hoverPoints:V3e(),eventData:H3e(),selectPoints:zT(),moduleType:"trace",name:"waterfall",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var Z3e=ye((ghr,X3e)=>{"use strict";X3e.exports=W3e()});var iA=ye((mhr,Y3e)=>{"use strict";Y3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var xH=ye((yhr,J3e)=>{"use strict";var eTt=Vl(),tTt=pf().zorder,{hovertemplateAttrs:rTt,templatefallbackAttrs:iTt}=Pl(),K3e=Ao().extendFlat,nTt=iA().colormodel,J4=["rgb","rgba","rgba256","hsl","hsla"],aTt=[],oTt=[];for(nA=0;nA{"use strict";var sTt=Pr(),lTt=xH(),$3e=iA(),uTt=Oy().IMAGE_URL_PREFIX;Q3e.exports=function(t,r){function n(o,s){return sTt.coerce(t,r,lTt,o,s)}n("source"),r.source&&!r.source.match(uTt)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=$3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=$3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),r._length=null,n("zorder")}});var Yy=ye((xhr,bH)=>{typeof Object.create=="function"?bH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:bH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var wH=ye((bhr,tTe)=>{tTe.exports=Sb().EventEmitter});var nTe=ye(Y8=>{"use strict";Y8.byteLength=fTt;Y8.toByteArray=dTt;Y8.fromByteArray=gTt;var Hm=[],Y0=[],cTt=typeof Uint8Array!="undefined"?Uint8Array:Array,TH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(x2=0,rTe=TH.length;x20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function fTt(e){var t=iTe(e),r=t[0],n=t[1];return(r+n)*3/4-n}function hTt(e,t,r){return(t+r)*3/4-r}function dTt(e){var t,r=iTe(e),n=r[0],i=r[1],a=new cTt(hTt(e,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Y0[e.charCodeAt(l)]<<2|Y0[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=Y0[e.charCodeAt(l)]<<10|Y0[e.charCodeAt(l+1)]<<4|Y0[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function vTt(e){return Hm[e>>18&63]+Hm[e>>12&63]+Hm[e>>6&63]+Hm[e&63]}function pTt(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Hm[t>>2]+Hm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Hm[t>>10]+Hm[t>>4&63]+Hm[t<<2&63]+"=")),i.join("")}});var aTe=ye(AH=>{AH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(d?-1:1)*o*Math.pow(2,a-n)};AH.write=function(e,t,r,n,i,a){var o,s,l,u=a*8-i-1,c=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,v=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=v,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=v,o/=256,u-=8);e[r+d-v]|=m*128}});var w2=ye(lA=>{"use strict";var SH=nTe(),oA=aTe(),oTe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;lA.Buffer=ra;lA.SlowBuffer=wTt;lA.INSPECT_MAX_BYTES=50;var K8=2147483647;lA.kMaxLength=K8;ra.TYPED_ARRAY_SUPPORT=mTt();!ra.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function mTt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ra.prototype,"parent",{enumerable:!0,get:function(){if(ra.isBuffer(this))return this.buffer}});Object.defineProperty(ra.prototype,"offset",{enumerable:!0,get:function(){if(ra.isBuffer(this))return this.byteOffset}});function Ky(e){if(e>K8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ra.prototype),t}function ra(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return CH(e)}return cTe(e,t,r)}ra.poolSize=8192;function cTe(e,t,r){if(typeof e=="string")return _Tt(e,t);if(ArrayBuffer.isView(e))return xTt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(jm(e,ArrayBuffer)||e&&jm(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(jm(e,SharedArrayBuffer)||e&&jm(e.buffer,SharedArrayBuffer)))return EH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ra.from(n,t,r);let i=bTt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ra.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ra.from=function(e,t,r){return cTe(e,t,r)};Object.setPrototypeOf(ra.prototype,Uint8Array.prototype);Object.setPrototypeOf(ra,Uint8Array);function fTe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function yTt(e,t,r){return fTe(e),e<=0?Ky(e):t!==void 0?typeof r=="string"?Ky(e).fill(t,r):Ky(e).fill(t):Ky(e)}ra.alloc=function(e,t,r){return yTt(e,t,r)};function CH(e){return fTe(e),Ky(e<0?0:LH(e)|0)}ra.allocUnsafe=function(e){return CH(e)};ra.allocUnsafeSlow=function(e){return CH(e)};function _Tt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ra.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=hTe(e,t)|0,n=Ky(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function MH(e){let t=e.length<0?0:LH(e.length)|0,r=Ky(t);for(let n=0;n=K8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K8.toString(16)+" bytes");return e|0}function wTt(e){return+e!=e&&(e=0),ra.alloc(+e)}ra.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ra.prototype};ra.compare=function(t,r){if(jm(t,Uint8Array)&&(t=ra.from(t,t.offset,t.byteLength)),jm(r,Uint8Array)&&(r=ra.from(r,r.offset,r.byteLength)),!ra.isBuffer(t)||!ra.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ra.isBuffer(o)||(o=ra.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ra.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function hTe(e,t){if(ra.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jm(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return kH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return bTe(e).length;default:if(i)return n?-1:kH(e).length;t=(""+t).toLowerCase(),i=!0}}ra.byteLength=hTe;function TTt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return RTt(this,t,r);case"utf8":case"utf-8":return vTe(this,t,r);case"ascii":return PTt(this,t,r);case"latin1":case"binary":return ITt(this,t,r);case"base64":return CTt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return DTt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ra.prototype._isBuffer=!0;function b2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ra.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};oTe&&(ra.prototype[oTe]=ra.prototype.inspect);ra.prototype.compare=function(t,r,n,i,a){if(jm(t,Uint8Array)&&(t=ra.from(t,t.offset,t.byteLength)),!ra.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),c=t.slice(r,n);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,IH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ra.from(t,n)),ra.isBuffer(t))return t.length===0?-1:sTe(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):sTe(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function sTe(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(i){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fi&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return ATt(this,t,r,n);case"utf8":case"utf-8":return STt(this,t,r,n);case"ascii":case"latin1":case"binary":return MTt(this,t,r,n);case"base64":return ETt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kTt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ra.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function CTt(e,t,r){return t===0&&r===e.length?SH.fromByteArray(e):SH.fromByteArray(e.slice(t,r))}function vTe(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return LTt(n)}var lTe=4096;function LTt(e){let t=e.length;if(t<=lTe)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ra.prototype.readUintLE=ra.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||tv(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||tv(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ra.prototype.readUint8=ra.prototype.readUInt8=function(t,r){return t=t>>>0,r||tv(t,1,this.length),this[t]};ra.prototype.readUint16LE=ra.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||tv(t,2,this.length),this[t]|this[t+1]<<8};ra.prototype.readUint16BE=ra.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||tv(t,2,this.length),this[t]<<8|this[t+1]};ra.prototype.readUint32LE=ra.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ra.prototype.readUint32BE=ra.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ra.prototype.readBigUInt64LE=U_(function(t){t=t>>>0,sA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&$4(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,sA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&$4(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||tv(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ra.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||tv(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ra.prototype.readInt8=function(t,r){return t=t>>>0,r||tv(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ra.prototype.readInt16LE=function(t,r){t=t>>>0,r||tv(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ra.prototype.readInt16BE=function(t,r){t=t>>>0,r||tv(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ra.prototype.readInt32LE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ra.prototype.readInt32BE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ra.prototype.readBigInt64LE=U_(function(t){t=t>>>0,sA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&$4(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,sA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&$4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||tv(t,4,this.length),oA.read(this,t,!0,23,4)};ra.prototype.readFloatBE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),oA.read(this,t,!1,23,4)};ra.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||tv(t,8,this.length),oA.read(this,t,!0,52,8)};ra.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||tv(t,8,this.length),oA.read(this,t,!1,52,8)};function Rp(e,t,r,n,i,a){if(!ra.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ra.prototype.writeUintLE=ra.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rp(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rp(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ra.prototype.writeUint8=ra.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,1,255,0),this[r]=t&255,r+1};ra.prototype.writeUint16LE=ra.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ra.prototype.writeUint16BE=ra.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ra.prototype.writeUint32LE=ra.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ra.prototype.writeUint32BE=ra.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function pTe(e,t,r,n,i){xTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function gTe(e,t,r,n,i){xTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ra.prototype.writeBigUInt64LE=U_(function(t,r=0){return pTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ra.prototype.writeBigUInt64BE=U_(function(t,r=0){return gTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ra.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Rp(this,t,r,n,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ra.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Rp(this,t,r,n,l-1,-l)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ra.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ra.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ra.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ra.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ra.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ra.prototype.writeBigInt64LE=U_(function(t,r=0){return pTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ra.prototype.writeBigInt64BE=U_(function(t,r=0){return gTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function mTe(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function yTe(e,t,r,n,i){return t=+t,r=r>>>0,i||mTe(e,t,r,4,34028234663852886e22,-34028234663852886e22),oA.write(e,t,r,n,23,4),r+4}ra.prototype.writeFloatLE=function(t,r,n){return yTe(this,t,r,!0,n)};ra.prototype.writeFloatBE=function(t,r,n){return yTe(this,t,r,!1,n)};function _Te(e,t,r,n,i){return t=+t,r=r>>>0,i||mTe(e,t,r,8,17976931348623157e292,-17976931348623157e292),oA.write(e,t,r,n,52,8),r+8}ra.prototype.writeDoubleLE=function(t,r,n){return _Te(this,t,r,!0,n)};ra.prototype.writeDoubleBE=function(t,r,n){return _Te(this,t,r,!1,n)};ra.prototype.copy=function(t,r,n,i){if(!ra.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=uTe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=uTe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function uTe(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function FTt(e,t,r){sA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&$4(t,e.length-(r+1))}function xTe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new aA.ERR_OUT_OF_RANGE("value",s,e)}FTt(n,i,a)}function sA(e,t){if(typeof e!="number")throw new aA.ERR_INVALID_ARG_TYPE(t,"number",e)}function $4(e,t,r){throw Math.floor(e)!==e?(sA(e,r),new aA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new aA.ERR_BUFFER_OUT_OF_BOUNDS:new aA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var zTt=/[^+/0-9A-Za-z-_]/g;function qTt(e){if(e=e.split("=")[0],e=e.trim().replace(zTt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function kH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function OTt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function bTe(e){return SH.toByteArray(qTt(e))}function J8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function jm(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function IH(e){return e!==e}var NTt=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t})();function U_(e){return typeof BigInt=="undefined"?UTt:e}function UTt(){throw new Error("BigInt not supported")}});var $8=ye((Mhr,wTe)=>{"use strict";wTe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var Q4=ye((Ehr,TTe)=>{"use strict";var VTt=$8();TTe.exports=function(){return VTt()&&!!Symbol.toStringTag}});var RH=ye((khr,ATe)=>{"use strict";ATe.exports=Object});var MTe=ye((Chr,STe)=>{"use strict";STe.exports=Error});var kTe=ye((Lhr,ETe)=>{"use strict";ETe.exports=EvalError});var LTe=ye((Phr,CTe)=>{"use strict";CTe.exports=RangeError});var ITe=ye((Ihr,PTe)=>{"use strict";PTe.exports=ReferenceError});var DH=ye((Rhr,RTe)=>{"use strict";RTe.exports=SyntaxError});var uA=ye((Dhr,DTe)=>{"use strict";DTe.exports=TypeError});var zTe=ye((Fhr,FTe)=>{"use strict";FTe.exports=URIError});var OTe=ye((zhr,qTe)=>{"use strict";qTe.exports=Math.abs});var NTe=ye((qhr,BTe)=>{"use strict";BTe.exports=Math.floor});var VTe=ye((Ohr,UTe)=>{"use strict";UTe.exports=Math.max});var HTe=ye((Bhr,GTe)=>{"use strict";GTe.exports=Math.min});var WTe=ye((Nhr,jTe)=>{"use strict";jTe.exports=Math.pow});var ZTe=ye((Uhr,XTe)=>{"use strict";XTe.exports=Math.round});var KTe=ye((Vhr,YTe)=>{"use strict";YTe.exports=Number.isNaN||function(t){return t!==t}});var $Te=ye((Ghr,JTe)=>{"use strict";var GTt=KTe();JTe.exports=function(t){return GTt(t)||t===0?t:t<0?-1:1}});var eAe=ye((Hhr,QTe)=>{"use strict";QTe.exports=Object.getOwnPropertyDescriptor});var T2=ye((jhr,tAe)=>{"use strict";var Q8=eAe();if(Q8)try{Q8([],"length")}catch(e){Q8=null}tAe.exports=Q8});var eE=ye((Whr,rAe)=>{"use strict";var eR=Object.defineProperty||!1;if(eR)try{eR({},"a",{value:1})}catch(e){eR=!1}rAe.exports=eR});var aAe=ye((Xhr,nAe)=>{"use strict";var iAe=typeof Symbol!="undefined"&&Symbol,HTt=$8();nAe.exports=function(){return typeof iAe!="function"||typeof Symbol!="function"||typeof iAe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:HTt()}});var FH=ye((Zhr,oAe)=>{"use strict";oAe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var zH=ye((Yhr,sAe)=>{"use strict";var jTt=RH();sAe.exports=jTt.getPrototypeOf||null});var cAe=ye((Khr,uAe)=>{"use strict";var WTt="Function.prototype.bind called on incompatible ",XTt=Object.prototype.toString,ZTt=Math.max,YTt="[object Function]",lAe=function(t,r){for(var n=[],i=0;i{"use strict";var $Tt=cAe();fAe.exports=Function.prototype.bind||$Tt});var tR=ye(($hr,hAe)=>{"use strict";hAe.exports=Function.prototype.call});var qH=ye((Qhr,dAe)=>{"use strict";dAe.exports=Function.prototype.apply});var pAe=ye((edr,vAe)=>{"use strict";vAe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var mAe=ye((tdr,gAe)=>{"use strict";var QTt=cA(),eAt=qH(),tAt=tR(),rAt=pAe();gAe.exports=rAt||QTt.call(tAt,eAt)});var _Ae=ye((rdr,yAe)=>{"use strict";var iAt=cA(),nAt=uA(),aAt=tR(),oAt=mAe();yAe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new nAt("a function is required");return oAt(iAt,aAt,t)}});var SAe=ye((idr,AAe)=>{"use strict";var sAt=_Ae(),xAe=T2(),wAe;try{wAe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var OH=!!wAe&&xAe&&xAe(Object.prototype,"__proto__"),TAe=Object,bAe=TAe.getPrototypeOf;AAe.exports=OH&&typeof OH.get=="function"?sAt([OH.get]):typeof bAe=="function"?function(t){return bAe(t==null?t:TAe(t))}:!1});var LAe=ye((ndr,CAe)=>{"use strict";var MAe=FH(),EAe=zH(),kAe=SAe();CAe.exports=MAe?function(t){return MAe(t)}:EAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return EAe(t)}:kAe?function(t){return kAe(t)}:null});var IAe=ye((adr,PAe)=>{"use strict";var lAt=Function.prototype.call,uAt=Object.prototype.hasOwnProperty,cAt=cA();PAe.exports=cAt.call(lAt,uAt)});var nR=ye((odr,OAe)=>{"use strict";var lu,fAt=RH(),hAt=MTe(),dAt=kTe(),vAt=LTe(),pAt=ITe(),vA=DH(),dA=uA(),gAt=zTe(),mAt=OTe(),yAt=NTe(),_At=VTe(),xAt=HTe(),bAt=WTe(),wAt=ZTe(),TAt=$Te(),zAe=Function,BH=function(e){try{return zAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},tE=T2(),AAt=eE(),NH=function(){throw new dA},SAt=tE?(function(){try{return arguments.callee,NH}catch(e){try{return tE(arguments,"callee").get}catch(t){return NH}}})():NH,fA=aAe()(),rv=LAe(),MAt=zH(),EAt=FH(),qAe=qH(),rE=tR(),hA={},kAt=typeof Uint8Array=="undefined"||!rv?lu:rv(Uint8Array),A2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?lu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?lu:ArrayBuffer,"%ArrayIteratorPrototype%":fA&&rv?rv([][Symbol.iterator]()):lu,"%AsyncFromSyncIteratorPrototype%":lu,"%AsyncFunction%":hA,"%AsyncGenerator%":hA,"%AsyncGeneratorFunction%":hA,"%AsyncIteratorPrototype%":hA,"%Atomics%":typeof Atomics=="undefined"?lu:Atomics,"%BigInt%":typeof BigInt=="undefined"?lu:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?lu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?lu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?lu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":hAt,"%eval%":eval,"%EvalError%":dAt,"%Float16Array%":typeof Float16Array=="undefined"?lu:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?lu:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?lu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?lu:FinalizationRegistry,"%Function%":zAe,"%GeneratorFunction%":hA,"%Int8Array%":typeof Int8Array=="undefined"?lu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?lu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?lu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fA&&rv?rv(rv([][Symbol.iterator]())):lu,"%JSON%":typeof JSON=="object"?JSON:lu,"%Map%":typeof Map=="undefined"?lu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!fA||!rv?lu:rv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":fAt,"%Object.getOwnPropertyDescriptor%":tE,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?lu:Promise,"%Proxy%":typeof Proxy=="undefined"?lu:Proxy,"%RangeError%":vAt,"%ReferenceError%":pAt,"%Reflect%":typeof Reflect=="undefined"?lu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?lu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!fA||!rv?lu:rv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?lu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fA&&rv?rv(""[Symbol.iterator]()):lu,"%Symbol%":fA?Symbol:lu,"%SyntaxError%":vA,"%ThrowTypeError%":SAt,"%TypedArray%":kAt,"%TypeError%":dA,"%Uint8Array%":typeof Uint8Array=="undefined"?lu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?lu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?lu:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?lu:Uint32Array,"%URIError%":gAt,"%WeakMap%":typeof WeakMap=="undefined"?lu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?lu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?lu:WeakSet,"%Function.prototype.call%":rE,"%Function.prototype.apply%":qAe,"%Object.defineProperty%":AAt,"%Object.getPrototypeOf%":MAt,"%Math.abs%":mAt,"%Math.floor%":yAt,"%Math.max%":_At,"%Math.min%":xAt,"%Math.pow%":bAt,"%Math.round%":wAt,"%Math.sign%":TAt,"%Reflect.getPrototypeOf%":EAt};if(rv)try{null.error}catch(e){RAe=rv(rv(e)),A2["%Error.prototype%"]=RAe}var RAe,CAt=function e(t){var r;if(t==="%AsyncFunction%")r=BH("async function () {}");else if(t==="%GeneratorFunction%")r=BH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=BH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&rv&&(r=rv(i.prototype))}return A2[t]=r,r},DAe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},iE=cA(),rR=IAe(),LAt=iE.call(rE,Array.prototype.concat),PAt=iE.call(qAe,Array.prototype.splice),FAe=iE.call(rE,String.prototype.replace),iR=iE.call(rE,String.prototype.slice),IAt=iE.call(rE,RegExp.prototype.exec),RAt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,DAt=/\\(\\)?/g,FAt=function(t){var r=iR(t,0,1),n=iR(t,-1);if(r==="%"&&n!=="%")throw new vA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new vA("invalid intrinsic syntax, expected opening `%`");var i=[];return FAe(t,RAt,function(a,o,s,l){i[i.length]=s?FAe(l,DAt,"$1"):o||a}),i},zAt=function(t,r){var n=t,i;if(rR(DAe,n)&&(i=DAe[n],n="%"+i[0]+"%"),rR(A2,n)){var a=A2[n];if(a===hA&&(a=CAt(n)),typeof a=="undefined"&&!r)throw new dA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new vA("intrinsic "+t+" does not exist!")};OAe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new dA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new dA('"allowMissing" argument must be a boolean');if(IAt(/^%?[^%]*%?$/,t)===null)throw new vA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=FAt(t),i=n.length>0?n[0]:"",a=zAt("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],PAt(n,LAt([0,1],u)));for(var c=1,f=!0;c=n.length){var m=tE(s,h);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[h]}else f=rR(s,h),s=s[h];f&&!l&&(A2[o]=s)}}return s}});var VAe=ye((sdr,UAe)=>{"use strict";var BAe=eE(),qAt=DH(),pA=uA(),NAe=T2();UAe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new pA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new pA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new pA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new pA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new pA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new pA("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!NAe&&NAe(t,r);if(BAe)BAe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new qAt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var VH=ye((ldr,HAe)=>{"use strict";var UH=eE(),GAe=function(){return!!UH};GAe.hasArrayLengthDefineBug=function(){if(!UH)return null;try{return UH([],"length",{value:1}).length!==1}catch(t){return!0}};HAe.exports=GAe});var YAe=ye((udr,ZAe)=>{"use strict";var OAt=nR(),jAe=VAe(),BAt=VH()(),WAe=T2(),XAe=uA(),NAt=OAt("%Math.floor%");ZAe.exports=function(t,r){if(typeof t!="function")throw new XAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||NAt(r)!==r)throw new XAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&WAe){var o=WAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(BAt?jAe(t,"length",r,!0,!0):jAe(t,"length",r)),t}});var nE=ye((cdr,aR)=>{"use strict";var GH=cA(),oR=nR(),UAt=YAe(),VAt=uA(),$Ae=oR("%Function.prototype.apply%"),QAe=oR("%Function.prototype.call%"),e5e=oR("%Reflect.apply%",!0)||GH.call(QAe,$Ae),KAe=eE(),GAt=oR("%Math.max%");aR.exports=function(t){if(typeof t!="function")throw new VAt("a function is required");var r=e5e(GH,QAe,arguments);return UAt(r,1+GAt(0,t.length-(arguments.length-1)),!0)};var JAe=function(){return e5e(GH,$Ae,arguments)};KAe?KAe(aR.exports,"apply",{value:JAe}):aR.exports.apply=JAe});var gA=ye((fdr,i5e)=>{"use strict";var t5e=nR(),r5e=nE(),HAt=r5e(t5e("String.prototype.indexOf"));i5e.exports=function(t,r){var n=t5e(t,!!r);return typeof n=="function"&&HAt(t,".prototype.")>-1?r5e(n):n}});var o5e=ye((hdr,a5e)=>{"use strict";var jAt=Q4()(),WAt=gA(),HH=WAt("Object.prototype.toString"),sR=function(t){return jAt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:HH(t)==="[object Arguments]"},n5e=function(t){return sR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&HH(t)!=="[object Array]"&&HH(t.callee)==="[object Function]"},XAt=(function(){return sR(arguments)})();sR.isLegacyArguments=n5e;a5e.exports=XAt?sR:n5e});var u5e=ye((ddr,l5e)=>{"use strict";var ZAt=Object.prototype.toString,YAt=Function.prototype.toString,KAt=/^\s*(?:function)?\*/,s5e=Q4()(),jH=Object.getPrototypeOf,JAt=function(){if(!s5e)return!1;try{return Function("return function*() {}")()}catch(e){}},WH;l5e.exports=function(t){if(typeof t!="function")return!1;if(KAt.test(YAt.call(t)))return!0;if(!s5e){var r=ZAt.call(t);return r==="[object GeneratorFunction]"}if(!jH)return!1;if(typeof WH=="undefined"){var n=JAt();WH=n?jH(n):!1}return jH(t)===WH}});var d5e=ye((vdr,h5e)=>{"use strict";var f5e=Function.prototype.toString,mA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ZH,lR;if(typeof mA=="function"&&typeof Object.defineProperty=="function")try{ZH=Object.defineProperty({},"length",{get:function(){throw lR}}),lR={},mA(function(){throw 42},null,ZH)}catch(e){e!==lR&&(mA=null)}else mA=null;var $At=/^\s*class\b/,YH=function(t){try{var r=f5e.call(t);return $At.test(r)}catch(n){return!1}},XH=function(t){try{return YH(t)?!1:(f5e.call(t),!0)}catch(r){return!1}},uR=Object.prototype.toString,QAt="[object Object]",e5t="[object Function]",t5t="[object GeneratorFunction]",r5t="[object HTMLAllCollection]",i5t="[object HTML document.all class]",n5t="[object HTMLCollection]",a5t=typeof Symbol=="function"&&!!Symbol.toStringTag,o5t=!(0 in[,]),KH=function(){return!1};typeof document=="object"&&(c5e=document.all,uR.call(c5e)===uR.call(document.all)&&(KH=function(t){if((o5t||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=uR.call(t);return(r===r5t||r===i5t||r===n5t||r===QAt)&&t("")==null}catch(n){}return!1}));var c5e;h5e.exports=mA?function(t){if(KH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{mA(t,null,ZH)}catch(r){if(r!==lR)return!1}return!YH(t)&&XH(t)}:function(t){if(KH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(a5t)return XH(t);if(YH(t))return!1;var r=uR.call(t);return r!==e5t&&r!==t5t&&!/^\[object HTML/.test(r)?!1:XH(t)}});var JH=ye((pdr,p5e)=>{"use strict";var s5t=d5e(),l5t=Object.prototype.toString,v5e=Object.prototype.hasOwnProperty,u5t=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),l5t.call(t)==="[object Array]"?u5t(t,r,i):typeof t=="string"?c5t(t,r,i):f5t(t,r,i)};p5e.exports=h5t});var QH=ye((gdr,g5e)=>{"use strict";var $H=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],d5t=typeof globalThis=="undefined"?window:globalThis;g5e.exports=function(){for(var t=[],r=0;r<$H.length;r++)typeof d5t[$H[r]]=="function"&&(t[t.length]=$H[r]);return t}});var b5e=ye((mdr,x5e)=>{"use strict";var fR=JH(),v5t=QH(),m5e=nE(),rj=gA(),cR=T2(),p5t=rj("Object.prototype.toString"),_5e=Q4()(),y5e=typeof globalThis=="undefined"?window:globalThis,tj=v5t(),ij=rj("String.prototype.slice"),ej=Object.getPrototypeOf,g5t=rj("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:y5t(t)}return cR?m5t(t):null}});var E5e=ye((ydr,M5e)=>{"use strict";var w5e=JH(),_5t=QH(),aj=gA(),x5t=aj("Object.prototype.toString"),T5e=Q4()(),dR=T2(),b5t=typeof globalThis=="undefined"?window:globalThis,A5e=_5t(),w5t=aj("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return dR?A5t(t):!1}});var lj=ye(uu=>{"use strict";var S5t=o5e(),M5t=u5e(),Wg=b5e(),k5e=E5e();function yA(e){return e.call.bind(e)}var C5e=typeof BigInt!="undefined",L5e=typeof Symbol!="undefined",K0=yA(Object.prototype.toString),E5t=yA(Number.prototype.valueOf),k5t=yA(String.prototype.valueOf),C5t=yA(Boolean.prototype.valueOf);C5e&&(P5e=yA(BigInt.prototype.valueOf));var P5e;L5e&&(I5e=yA(Symbol.prototype.valueOf));var I5e;function oE(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}uu.isArgumentsObject=S5t;uu.isGeneratorFunction=M5t;uu.isTypedArray=k5e;function L5t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}uu.isPromise=L5t;function P5t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):k5e(e)||D5e(e)}uu.isArrayBufferView=P5t;function I5t(e){return Wg(e)==="Uint8Array"}uu.isUint8Array=I5t;function R5t(e){return Wg(e)==="Uint8ClampedArray"}uu.isUint8ClampedArray=R5t;function D5t(e){return Wg(e)==="Uint16Array"}uu.isUint16Array=D5t;function F5t(e){return Wg(e)==="Uint32Array"}uu.isUint32Array=F5t;function z5t(e){return Wg(e)==="Int8Array"}uu.isInt8Array=z5t;function q5t(e){return Wg(e)==="Int16Array"}uu.isInt16Array=q5t;function O5t(e){return Wg(e)==="Int32Array"}uu.isInt32Array=O5t;function B5t(e){return Wg(e)==="Float32Array"}uu.isFloat32Array=B5t;function N5t(e){return Wg(e)==="Float64Array"}uu.isFloat64Array=N5t;function U5t(e){return Wg(e)==="BigInt64Array"}uu.isBigInt64Array=U5t;function V5t(e){return Wg(e)==="BigUint64Array"}uu.isBigUint64Array=V5t;function vR(e){return K0(e)==="[object Map]"}vR.working=typeof Map!="undefined"&&vR(new Map);function G5t(e){return typeof Map=="undefined"?!1:vR.working?vR(e):e instanceof Map}uu.isMap=G5t;function pR(e){return K0(e)==="[object Set]"}pR.working=typeof Set!="undefined"&&pR(new Set);function H5t(e){return typeof Set=="undefined"?!1:pR.working?pR(e):e instanceof Set}uu.isSet=H5t;function gR(e){return K0(e)==="[object WeakMap]"}gR.working=typeof WeakMap!="undefined"&&gR(new WeakMap);function j5t(e){return typeof WeakMap=="undefined"?!1:gR.working?gR(e):e instanceof WeakMap}uu.isWeakMap=j5t;function sj(e){return K0(e)==="[object WeakSet]"}sj.working=typeof WeakSet!="undefined"&&sj(new WeakSet);function W5t(e){return sj(e)}uu.isWeakSet=W5t;function mR(e){return K0(e)==="[object ArrayBuffer]"}mR.working=typeof ArrayBuffer!="undefined"&&mR(new ArrayBuffer);function R5e(e){return typeof ArrayBuffer=="undefined"?!1:mR.working?mR(e):e instanceof ArrayBuffer}uu.isArrayBuffer=R5e;function yR(e){return K0(e)==="[object DataView]"}yR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&yR(new DataView(new ArrayBuffer(1),0,1));function D5e(e){return typeof DataView=="undefined"?!1:yR.working?yR(e):e instanceof DataView}uu.isDataView=D5e;var oj=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function aE(e){return K0(e)==="[object SharedArrayBuffer]"}function F5e(e){return typeof oj=="undefined"?!1:(typeof aE.working=="undefined"&&(aE.working=aE(new oj)),aE.working?aE(e):e instanceof oj)}uu.isSharedArrayBuffer=F5e;function X5t(e){return K0(e)==="[object AsyncFunction]"}uu.isAsyncFunction=X5t;function Z5t(e){return K0(e)==="[object Map Iterator]"}uu.isMapIterator=Z5t;function Y5t(e){return K0(e)==="[object Set Iterator]"}uu.isSetIterator=Y5t;function K5t(e){return K0(e)==="[object Generator]"}uu.isGeneratorObject=K5t;function J5t(e){return K0(e)==="[object WebAssembly.Module]"}uu.isWebAssemblyCompiledModule=J5t;function z5e(e){return oE(e,E5t)}uu.isNumberObject=z5e;function q5e(e){return oE(e,k5t)}uu.isStringObject=q5e;function O5e(e){return oE(e,C5t)}uu.isBooleanObject=O5e;function B5e(e){return C5e&&oE(e,P5e)}uu.isBigIntObject=B5e;function N5e(e){return L5e&&oE(e,I5e)}uu.isSymbolObject=N5e;function $5t(e){return z5e(e)||q5e(e)||O5e(e)||B5e(e)||N5e(e)}uu.isBoxedPrimitive=$5t;function Q5t(e){return typeof Uint8Array!="undefined"&&(R5e(e)||F5e(e))}uu.isAnyArrayBuffer=Q5t;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(uu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var uj=ye((xdr,U5e)=>{U5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var pj=ye(cu=>{var V5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),dj(t)?r.showHidden=t:t&&cu._extend(r,t),M2(r.showHidden)&&(r.showHidden=!1),M2(r.depth)&&(r.depth=2),M2(r.colors)&&(r.colors=!1),M2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=tSt),wR(r,e,r.depth)}cu.inspect=V_;V_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};V_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function tSt(e,t){var r=V_.styles[t];return r?"\x1B["+V_.colors[r][0]+"m"+e+"\x1B["+V_.colors[r][1]+"m":e}function rSt(e,t){return e}function iSt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function wR(e,t,r){if(e.customInspect&&t&&bR(t.inspect)&&t.inspect!==cu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return SR(n)||(n=wR(e,n,r)),n}var i=nSt(e,t);if(i)return i;var a=Object.keys(t),o=iSt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),lE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return cj(t);if(a.length===0){if(bR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(sE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(TR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(lE(t))return cj(t)}var l="",u=!1,c=["{","}"];if(H5e(t)&&(u=!0,c=["[","]"]),bR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(sE(t)&&(l=" "+RegExp.prototype.toString.call(t)),TR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),lE(t)&&(l=" "+cj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return sE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=aSt(e,t,r,o,a):h=a.map(function(d){return hj(e,t,r,o,d,u)}),e.seen.pop(),oSt(h,l,c)}function nSt(e,t){if(M2(t))return e.stylize("undefined","undefined");if(SR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(j5e(t))return e.stylize(""+t,"number");if(dj(t))return e.stylize(""+t,"boolean");if(AR(t))return e.stylize("null","null")}function cj(e){return"["+Error.prototype.toString.call(e)+"]"}function aSt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),S2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function Z5t(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),M2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function oSt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}cu.types=oj();function N5e(e){return Array.isArray(e)}cu.isArray=N5e;function fj(e){return typeof e=="boolean"}cu.isBoolean=fj;function wR(e){return e===null}cu.isNull=wR;function Y5t(e){return e==null}cu.isNullOrUndefined=Y5t;function U5e(e){return typeof e=="number"}cu.isNumber=U5e;function TR(e){return typeof e=="string"}cu.isString=TR;function K5t(e){return typeof e=="symbol"}cu.isSymbol=K5t;function S2(e){return e===void 0}cu.isUndefined=S2;function aE(e){return mA(e)&&hj(e)==="[object RegExp]"}cu.isRegExp=aE;cu.types.isRegExp=aE;function mA(e){return typeof e=="object"&&e!==null}cu.isObject=mA;function bR(e){return mA(e)&&hj(e)==="[object Date]"}cu.isDate=bR;cu.types.isDate=bR;function oE(e){return mA(e)&&(hj(e)==="[object Error]"||e instanceof Error)}cu.isError=oE;cu.types.isNativeError=oE;function _R(e){return typeof e=="function"}cu.isFunction=_R;function J5t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}cu.isPrimitive=J5t;cu.isBuffer=sj();function hj(e){return Object.prototype.toString.call(e)}function uj(e){return e<10?"0"+e.toString(10):e.toString(10)}var $5t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Q5t(){var e=new Date,t=[uj(e.getHours()),uj(e.getMinutes()),uj(e.getSeconds())].join(":");return[e.getDate(),$5t[e.getMonth()],t].join(" ")}cu.log=function(){console.log("%s - %s",Q5t(),cu.format.apply(cu,arguments))};cu.inherits=Zy();cu._extend=function(e,t){if(!t||!mA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function V5e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var A2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;cu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(A2&&t[A2]){var r=t[A2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,A2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function G5e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rSt(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return AR.alloc(0);for(var n=AR.allocUnsafe(r>>>0),i=this.head,a=0;i;)uSt(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=AR.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:lSt,value:function(r,n){return vj(this,rSt({},n,{depth:0,customInspect:!1}))}}]),e}()});var gj=ye((adr,Z5e)=>{"use strict";function cSt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(pj,this,e)):process.nextTick(pj,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(SR,r):(r._writableState.errorEmitted=!0,process.nextTick(X5e,r,a)):process.nextTick(X5e,r,a):t?(process.nextTick(SR,r),t(a)):process.nextTick(SR,r)}),this)}function X5e(e,t){pj(e,t),SR(e)}function SR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function fSt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function pj(e,t){e.emit("error",t)}function hSt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Z5e.exports={destroy:cSt,undestroy:fSt,errorOrDestroy:hSt}});var M2=ye((odr,J5e)=>{"use strict";function dSt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var K5e={};function J0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){dSt(o,a);function o(s,l,u){return a.call(this,n(s,l,u))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,K5e[e]=i}function Y5e(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function vSt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function pSt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function gSt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}J0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);J0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&vSt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(pSt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(Y5e(t,"type"));else{var a=gSt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(Y5e(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);J0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");J0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});J0("ERR_STREAM_PREMATURE_CLOSE","Premature close");J0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});J0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");J0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");J0("ERR_STREAM_WRITE_AFTER_END","write after end");J0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);J0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);J0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");J5e.exports.codes=K5e});var mj=ye((sdr,$5e)=>{"use strict";var mSt=M2().codes.ERR_INVALID_OPT_VALUE;function ySt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function _St(e,t,r,n){var i=ySt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new mSt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}$5e.exports={getHighWaterMark:_St}});var eSe=ye((ldr,Q5e)=>{Q5e.exports=xSt;function xSt(e,t){if(yj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(yj("throwDeprecation"))throw new Error(t);yj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function yj(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var bj=ye((udr,oSe)=>{"use strict";oSe.exports=Bh;function rSe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){XSt(t,e)}}var yA;Bh.WritableState=lE;var bSt={deprecate:eSe()},iSe=xH(),ER=b2().Buffer,wSt=window.Uint8Array||function(){};function TSt(e){return ER.from(e)}function ASt(e){return ER.isBuffer(e)||e instanceof wSt}var xj=gj(),SSt=mj(),MSt=SSt.getHighWaterMark,V_=M2().codes,ESt=V_.ERR_INVALID_ARG_TYPE,kSt=V_.ERR_METHOD_NOT_IMPLEMENTED,CSt=V_.ERR_MULTIPLE_CALLBACK,LSt=V_.ERR_STREAM_CANNOT_PIPE,PSt=V_.ERR_STREAM_DESTROYED,ISt=V_.ERR_STREAM_NULL_VALUES,RSt=V_.ERR_STREAM_WRITE_AFTER_END,DSt=V_.ERR_UNKNOWN_ENCODING,_A=xj.errorOrDestroy;Zy()(Bh,iSe);function FSt(){}function lE(e,t,r){yA=yA||E2(),e=e||{},typeof r!="boolean"&&(r=t instanceof yA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=MSt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){VSt(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new rSe(this)}lE.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(lE.prototype,"buffer",{get:bSt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var MR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(MR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Bh,Symbol.hasInstance,{value:function(t){return MR.call(this,t)?!0:this!==Bh?!1:t&&t._writableState instanceof lE}})):MR=function(t){return t instanceof this};function Bh(e){yA=yA||E2();var t=this instanceof yA;if(!t&&!MR.call(Bh,this))return new Bh(e);this._writableState=new lE(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),iSe.call(this)}Bh.prototype.pipe=function(){_A(this,new LSt)};function zSt(e,t){var r=new RSt;_A(e,r),process.nextTick(t,r)}function qSt(e,t,r,n){var i;return r===null?i=new ISt:typeof r!="string"&&!t.objectMode&&(i=new ESt("chunk",["string","Buffer"],r)),i?(_A(e,i),process.nextTick(n,i),!1):!0}Bh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&ASt(e);return a&&!ER.isBuffer(e)&&(e=TSt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=FSt),n.ending?zSt(this,r):(a||qSt(this,n,e,r))&&(n.pendingcb++,i=BSt(this,n,a,e,t,r)),i};Bh.prototype.cork=function(){this._writableState.corked++};Bh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&nSe(this,e))};Bh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new DSt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Bh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function OSt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=ER.from(t,r)),t}Object.defineProperty(Bh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function BSt(e,t,r,n,i,a){if(!r){var o=OSt(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length{"use strict";var ZSt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};lSe.exports=Wm;var sSe=Aj(),Tj=bj();Zy()(Wm,sSe);for(wj=ZSt(Tj.prototype),kR=0;kR{var LR=b2(),Xm=LR.Buffer;function uSe(e,t){for(var r in e)t[r]=e[r]}Xm.from&&Xm.alloc&&Xm.allocUnsafe&&Xm.allocUnsafeSlow?cSe.exports=LR:(uSe(LR,Sj),Sj.Buffer=k2);function k2(e,t,r){return Xm(e,t,r)}k2.prototype=Object.create(Xm.prototype);uSe(Xm,k2);k2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Xm(e,t,r)};k2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Xm(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};k2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xm(e)};k2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return LR.SlowBuffer(e)}});var kj=ye(dSe=>{"use strict";var Ej=fSe().Buffer,hSe=Ej.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function JSt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function $St(e){var t=JSt(e);if(typeof t!="string"&&(Ej.isEncoding===hSe||!hSe(e)))throw new Error("Unknown encoding: "+e);return t||e}dSe.StringDecoder=uE;function uE(e){this.encoding=$St(e);var t;switch(this.encoding){case"utf16le":this.text=nMt,this.end=aMt,t=4;break;case"utf8":this.fillLast=tMt,t=4;break;case"base64":this.text=oMt,this.end=sMt,t=3;break;default:this.write=lMt,this.end=uMt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ej.allocUnsafe(t)}uE.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function QSt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function eMt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function tMt(e){var t=this.lastTotal-this.lastNeed,r=eMt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function rMt(e,t){var r=QSt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function iMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function nMt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function aMt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function oMt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function sMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function lMt(e){return e.toString(this.encoding)}function uMt(e){return e&&e.length?this.write(e):""}});var PR=ye((hdr,gSe)=>{"use strict";var vSe=M2().codes.ERR_STREAM_PREMATURE_CLOSE;function cMt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var IR;function G_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dMt=PR(),H_=Symbol("lastResolve"),C2=Symbol("lastReject"),cE=Symbol("error"),RR=Symbol("ended"),L2=Symbol("lastPromise"),Cj=Symbol("handlePromise"),P2=Symbol("stream");function j_(e,t){return{value:e,done:t}}function vMt(e){var t=e[H_];if(t!==null){var r=e[P2].read();r!==null&&(e[L2]=null,e[H_]=null,e[C2]=null,t(j_(r,!1)))}}function pMt(e){process.nextTick(vMt,e)}function gMt(e,t){return function(r,n){e.then(function(){if(t[RR]){r(j_(void 0,!0));return}t[Cj](r,n)},n)}}var mMt=Object.getPrototypeOf(function(){}),yMt=Object.setPrototypeOf((IR={get stream(){return this[P2]},next:function(){var t=this,r=this[cE];if(r!==null)return Promise.reject(r);if(this[RR])return Promise.resolve(j_(void 0,!0));if(this[P2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[cE]?s(t[cE]):o(j_(void 0,!0))})});var n=this[L2],i;if(n)i=new Promise(gMt(n,this));else{var a=this[P2].read();if(a!==null)return Promise.resolve(j_(a,!1));i=new Promise(this[Cj])}return this[L2]=i,i}},G_(IR,Symbol.asyncIterator,function(){return this}),G_(IR,"return",function(){var t=this;return new Promise(function(r,n){t[P2].destroy(null,function(i){if(i){n(i);return}r(j_(void 0,!0))})})}),IR),mMt),_Mt=function(t){var r,n=Object.create(yMt,(r={},G_(r,P2,{value:t,writable:!0}),G_(r,H_,{value:null,writable:!0}),G_(r,C2,{value:null,writable:!0}),G_(r,cE,{value:null,writable:!0}),G_(r,RR,{value:t._readableState.endEmitted,writable:!0}),G_(r,Cj,{value:function(a,o){var s=n[P2].read();s?(n[L2]=null,n[H_]=null,n[C2]=null,a(j_(s,!1))):(n[H_]=a,n[C2]=o)},writable:!0}),r));return n[L2]=null,dMt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[C2];a!==null&&(n[L2]=null,n[H_]=null,n[C2]=null,a(i)),n[cE]=i;return}var o=n[H_];o!==null&&(n[L2]=null,n[H_]=null,n[C2]=null,o(j_(void 0,!0))),n[RR]=!0}),t.on("readable",pMt.bind(null,n)),n};mSe.exports=_Mt});var xSe=ye((vdr,_Se)=>{_Se.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Aj=ye((gdr,LSe)=>{"use strict";LSe.exports=Bu;var xA;Bu.ReadableState=ASe;var pdr=Sb().EventEmitter,TSe=function(t,r){return t.listeners(r).length},hE=xH(),DR=b2().Buffer,xMt=window.Uint8Array||function(){};function bMt(e){return DR.from(e)}function wMt(e){return DR.isBuffer(e)||e instanceof xMt}var Lj=dj(),nu;Lj&&Lj.debuglog?nu=Lj.debuglog("stream"):nu=function(){};var TMt=W5e(),qj=gj(),AMt=mj(),SMt=AMt.getHighWaterMark,FR=M2().codes,MMt=FR.ERR_INVALID_ARG_TYPE,EMt=FR.ERR_STREAM_PUSH_AFTER_EOF,kMt=FR.ERR_METHOD_NOT_IMPLEMENTED,CMt=FR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,bA,Pj,Ij;Zy()(Bu,hE);var fE=qj.errorOrDestroy,Rj=["error","close","destroy","pause","resume"];function LMt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function ASe(e,t,r){xA=xA||E2(),e=e||{},typeof r!="boolean"&&(r=t instanceof xA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=SMt(this,e,"readableHighWaterMark",r),this.buffer=new TMt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(bA||(bA=kj().StringDecoder),this.decoder=new bA(e.encoding),this.encoding=e.encoding)}function Bu(e){if(xA=xA||E2(),!(this instanceof Bu))return new Bu(e);var t=this instanceof xA;this._readableState=new ASe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),hE.call(this)}Object.defineProperty(Bu.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Bu.prototype.destroy=qj.destroy;Bu.prototype._undestroy=qj.undestroy;Bu.prototype._destroy=function(e,t){t(e)};Bu.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=DR.from(e,t),t=""),n=!0),SSe(this,e,t,!1,n)};Bu.prototype.unshift=function(e){return SSe(this,e,null,!0,!1)};function SSe(e,t,r,n,i){nu("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,RMt(e,a);else{var o;if(i||(o=PMt(a,t)),o)fE(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==DR.prototype&&(t=bMt(t)),n)a.endEmitted?fE(e,new CMt):Dj(e,a,t,!0);else if(a.ended)fE(e,new EMt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Dj(e,a,t,!1):zj(e,a)):Dj(e,a,t,!1)}else n||(a.reading=!1,zj(e,a))}return!a.ended&&(a.length=bSe?e=bSe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function wSe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=IMt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Bu.prototype.read=function(e){nu("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return nu("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Fj(this):zR(this),null;if(e=wSe(e,t),e===0&&t.ended)return t.length===0&&Fj(this),null;var n=t.needReadable;nu("need readable",n),(t.length===0||t.length-e0?i=kSe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Fj(this)),i!==null&&this.emit("data",i),i};function RMt(e,t){if(nu("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?zR(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,MSe(e)))}}function zR(e){var t=e._readableState;nu("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(nu("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(MSe,e))}function MSe(e){var t=e._readableState;nu("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Oj(e)}function zj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(DMt,e,t))}function DMt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&CSe(n.pipes,e)!==-1)&&!u&&(nu("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){nu("onerror",b),m(),e.removeListener("error",h),TSe(e,"error")===0&&fE(e,b)}LMt(e,"error",h);function d(){e.removeListener("finish",v),m()}e.once("close",d);function v(){nu("onfinish"),e.removeListener("close",d),m()}e.once("finish",v);function m(){nu("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(nu("pipe resume"),r.resume()),e};function FMt(e){return function(){var r=e._readableState;nu("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&TSe(e,"data")&&(r.flowing=!0,Oj(e))}}Bu.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,nu("on readable",n.length,n.reading),n.length?zR(this):n.reading||process.nextTick(zMt,this)),r};Bu.prototype.addListener=Bu.prototype.on;Bu.prototype.removeListener=function(e,t){var r=hE.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(ESe,this),r};Bu.prototype.removeAllListeners=function(e){var t=hE.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(ESe,this),t};function ESe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function zMt(e){nu("readable nexttick read 0"),e.read(0)}Bu.prototype.resume=function(){var e=this._readableState;return e.flowing||(nu("resume"),e.flowing=!e.readableListening,qMt(this,e)),e.paused=!1,this};function qMt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(OMt,e,t))}function OMt(e,t){nu("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Oj(e),t.flowing&&!t.reading&&e.read(0)}Bu.prototype.pause=function(){return nu("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(nu("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Oj(e){var t=e._readableState;for(nu("flow",t.flowing);t.flowing&&e.read()!==null;);}Bu.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(nu("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(nu("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Fj(e){var t=e._readableState;nu("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(BMt,t,e))}function BMt(e,t){if(nu("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Bu.from=function(e,t){return Ij===void 0&&(Ij=xSe()),Ij(Bu,e,t)});function CSe(e,t){for(var r=0,n=e.length;r{"use strict";ISe.exports=Ky;var qR=M2().codes,NMt=qR.ERR_METHOD_NOT_IMPLEMENTED,UMt=qR.ERR_MULTIPLE_CALLBACK,VMt=qR.ERR_TRANSFORM_ALREADY_TRANSFORMING,GMt=qR.ERR_TRANSFORM_WITH_LENGTH_0,OR=E2();Zy()(Ky,OR);function HMt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new UMt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";DSe.exports=dE;var RSe=Bj();Zy()(dE,RSe);function dE(e){if(!(this instanceof dE))return new dE(e);RSe.call(this,e)}dE.prototype._transform=function(e,t,r){r(null,e)}});var NSe=ye((_dr,BSe)=>{"use strict";var Nj;function WMt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var OSe=M2().codes,XMt=OSe.ERR_MISSING_ARGS,ZMt=OSe.ERR_STREAM_DESTROYED;function zSe(e){if(e)throw e}function YMt(e){return e.setHeader&&typeof e.abort=="function"}function KMt(e,t,r,n){n=WMt(n);var i=!1;e.on("close",function(){i=!0}),Nj===void 0&&(Nj=PR()),Nj(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,YMt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new ZMt("pipe"))}}}function qSe(e){e()}function JMt(e,t){return e.pipe(t)}function $Mt(e){return!e.length||typeof e[e.length-1]!="function"?zSe:e.pop()}function QMt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return KMt(o,l,u,function(c){i||(i=c),c&&a.forEach(qSe),!l&&(a.forEach(qSe),n(i))})});return t.reduce(JMt)}BSe.exports=QMt});var VSe=ye((xdr,USe)=>{USe.exports=$0;var Uj=Sb().EventEmitter,e4t=Zy();e4t($0,Uj);$0.Readable=Aj();$0.Writable=bj();$0.Duplex=E2();$0.Transform=Bj();$0.PassThrough=FSe();$0.finished=PR();$0.pipeline=NSe();$0.Stream=$0;function $0(){Uj.call(this)}$0.prototype.pipe=function(e,t){var r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),Uj.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var TA=ye(fu=>{var GSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),jj(t)?r.showHidden=t:t&&fu._extend(r,t),R2(r.showHidden)&&(r.showHidden=!1),R2(r.depth)&&(r.depth=2),R2(r.colors)&&(r.colors=!1),R2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=r4t),VR(r,e,r.depth)}fu.inspect=W_;W_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};W_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r4t(e,t){var r=W_.styles[t];return r?"\x1B["+W_.colors[r][0]+"m"+e+"\x1B["+W_.colors[r][1]+"m":e}function i4t(e,t){return e}function n4t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function VR(e,t,r){if(e.customInspect&&t&&UR(t.inspect)&&t.inspect!==fu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return jR(n)||(n=VR(e,n,r)),n}var i=a4t(e,t);if(i)return i;var a=Object.keys(t),o=n4t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),pE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Vj(t);if(a.length===0){if(UR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(vE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(GR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(pE(t))return Vj(t)}var l="",u=!1,c=["{","}"];if(jSe(t)&&(u=!0,c=["[","]"]),UR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(vE(t)&&(l=" "+RegExp.prototype.toString.call(t)),GR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),pE(t)&&(l=" "+Vj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return vE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=o4t(e,t,r,o,a):h=a.map(function(d){return Hj(e,t,r,o,d,u)}),e.seen.pop(),s4t(h,l,c)}function a4t(e,t){if(R2(t))return e.stylize("undefined","undefined");if(jR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(WSe(t))return e.stylize(""+t,"number");if(jj(t))return e.stylize(""+t,"boolean");if(HR(t))return e.stylize("null","null")}function Vj(e){return"["+Error.prototype.toString.call(e)+"]"}function o4t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";function X5e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vSt(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return MR.alloc(0);for(var n=MR.allocUnsafe(r>>>0),i=this.head,a=0;i;)bSt(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=MR.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:xSt,value:function(r,n){return gj(this,vSt({},n,{depth:0,customInspect:!1}))}}]),e})()});var yj=ye((Tdr,$5e)=>{"use strict";function wSt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(mj,this,e)):process.nextTick(mj,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(ER,r):(r._writableState.errorEmitted=!0,process.nextTick(J5e,r,a)):process.nextTick(J5e,r,a):t?(process.nextTick(ER,r),t(a)):process.nextTick(ER,r)}),this)}function J5e(e,t){mj(e,t),ER(e)}function ER(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function TSt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function mj(e,t){e.emit("error",t)}function ASt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}$5e.exports={destroy:wSt,undestroy:TSt,errorOrDestroy:ASt}});var E2=ye((Adr,tSe)=>{"use strict";function SSt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var eSe={};function J0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=(function(a){SSt(o,a);function o(s,l,u){return a.call(this,n(s,l,u))||this}return o})(r);i.prototype.name=r.name,i.prototype.code=e,eSe[e]=i}function Q5e(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function MSt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function ESt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function kSt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}J0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);J0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&MSt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(ESt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(Q5e(t,"type"));else{var a=kSt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(Q5e(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);J0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");J0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});J0("ERR_STREAM_PREMATURE_CLOSE","Premature close");J0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});J0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");J0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");J0("ERR_STREAM_WRITE_AFTER_END","write after end");J0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);J0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);J0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");tSe.exports.codes=eSe});var _j=ye((Sdr,rSe)=>{"use strict";var CSt=E2().codes.ERR_INVALID_OPT_VALUE;function LSt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function PSt(e,t,r,n){var i=LSt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new CSt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}rSe.exports={getHighWaterMark:PSt}});var nSe=ye((Mdr,iSe)=>{iSe.exports=ISt;function ISt(e,t){if(xj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(xj("throwDeprecation"))throw new Error(t);xj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function xj(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Tj=ye((Edr,cSe)=>{"use strict";cSe.exports=Bh;function oSe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){aMt(t,e)}}var xA;Bh.WritableState=cE;var RSt={deprecate:nSe()},sSe=wH(),CR=w2().Buffer,DSt=window.Uint8Array||function(){};function FSt(e){return CR.from(e)}function zSt(e){return CR.isBuffer(e)||e instanceof DSt}var wj=yj(),qSt=_j(),OSt=qSt.getHighWaterMark,G_=E2().codes,BSt=G_.ERR_INVALID_ARG_TYPE,NSt=G_.ERR_METHOD_NOT_IMPLEMENTED,USt=G_.ERR_MULTIPLE_CALLBACK,VSt=G_.ERR_STREAM_CANNOT_PIPE,GSt=G_.ERR_STREAM_DESTROYED,HSt=G_.ERR_STREAM_NULL_VALUES,jSt=G_.ERR_STREAM_WRITE_AFTER_END,WSt=G_.ERR_UNKNOWN_ENCODING,bA=wj.errorOrDestroy;Yy()(Bh,sSe);function XSt(){}function cE(e,t,r){xA=xA||k2(),e=e||{},typeof r!="boolean"&&(r=t instanceof xA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=OSt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){eMt(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new oSe(this)}cE.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(cE.prototype,"buffer",{get:RSt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var kR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(kR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Bh,Symbol.hasInstance,{value:function(t){return kR.call(this,t)?!0:this!==Bh?!1:t&&t._writableState instanceof cE}})):kR=function(t){return t instanceof this};function Bh(e){xA=xA||k2();var t=this instanceof xA;if(!t&&!kR.call(Bh,this))return new Bh(e);this._writableState=new cE(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),sSe.call(this)}Bh.prototype.pipe=function(){bA(this,new VSt)};function ZSt(e,t){var r=new jSt;bA(e,r),process.nextTick(t,r)}function YSt(e,t,r,n){var i;return r===null?i=new HSt:typeof r!="string"&&!t.objectMode&&(i=new BSt("chunk",["string","Buffer"],r)),i?(bA(e,i),process.nextTick(n,i),!1):!0}Bh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&zSt(e);return a&&!CR.isBuffer(e)&&(e=FSt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=XSt),n.ending?ZSt(this,r):(a||YSt(this,n,e,r))&&(n.pendingcb++,i=JSt(this,n,a,e,t,r)),i};Bh.prototype.cork=function(){this._writableState.corked++};Bh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&lSe(this,e))};Bh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new WSt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Bh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function KSt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=CR.from(t,r)),t}Object.defineProperty(Bh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function JSt(e,t,r,n,i,a){if(!r){var o=KSt(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length{"use strict";var oMt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};hSe.exports=Wm;var fSe=Mj(),Sj=Tj();Yy()(Wm,fSe);for(Aj=oMt(Sj.prototype),LR=0;LR{var IR=w2(),Xm=IR.Buffer;function dSe(e,t){for(var r in e)t[r]=e[r]}Xm.from&&Xm.alloc&&Xm.allocUnsafe&&Xm.allocUnsafeSlow?vSe.exports=IR:(dSe(IR,Ej),Ej.Buffer=C2);function C2(e,t,r){return Xm(e,t,r)}C2.prototype=Object.create(Xm.prototype);dSe(Xm,C2);C2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Xm(e,t,r)};C2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Xm(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};C2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xm(e)};C2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return IR.SlowBuffer(e)}});var Lj=ye(mSe=>{"use strict";var Cj=pSe().Buffer,gSe=Cj.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function uMt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function cMt(e){var t=uMt(e);if(typeof t!="string"&&(Cj.isEncoding===gSe||!gSe(e)))throw new Error("Unknown encoding: "+e);return t||e}mSe.StringDecoder=fE;function fE(e){this.encoding=cMt(e);var t;switch(this.encoding){case"utf16le":this.text=gMt,this.end=mMt,t=4;break;case"utf8":this.fillLast=dMt,t=4;break;case"base64":this.text=yMt,this.end=_Mt,t=3;break;default:this.write=xMt,this.end=bMt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Cj.allocUnsafe(t)}fE.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function fMt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function hMt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function dMt(e){var t=this.lastTotal-this.lastNeed,r=hMt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function vMt(e,t){var r=fMt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function pMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function gMt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function mMt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function yMt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function _Mt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function xMt(e){return e.toString(this.encoding)}function bMt(e){return e&&e.length?this.write(e):""}});var RR=ye((Ldr,xSe)=>{"use strict";var ySe=E2().codes.ERR_STREAM_PREMATURE_CLOSE;function wMt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var DR;function H_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var SMt=RR(),j_=Symbol("lastResolve"),L2=Symbol("lastReject"),hE=Symbol("error"),FR=Symbol("ended"),P2=Symbol("lastPromise"),Pj=Symbol("handlePromise"),I2=Symbol("stream");function W_(e,t){return{value:e,done:t}}function MMt(e){var t=e[j_];if(t!==null){var r=e[I2].read();r!==null&&(e[P2]=null,e[j_]=null,e[L2]=null,t(W_(r,!1)))}}function EMt(e){process.nextTick(MMt,e)}function kMt(e,t){return function(r,n){e.then(function(){if(t[FR]){r(W_(void 0,!0));return}t[Pj](r,n)},n)}}var CMt=Object.getPrototypeOf(function(){}),LMt=Object.setPrototypeOf((DR={get stream(){return this[I2]},next:function(){var t=this,r=this[hE];if(r!==null)return Promise.reject(r);if(this[FR])return Promise.resolve(W_(void 0,!0));if(this[I2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[hE]?s(t[hE]):o(W_(void 0,!0))})});var n=this[P2],i;if(n)i=new Promise(kMt(n,this));else{var a=this[I2].read();if(a!==null)return Promise.resolve(W_(a,!1));i=new Promise(this[Pj])}return this[P2]=i,i}},H_(DR,Symbol.asyncIterator,function(){return this}),H_(DR,"return",function(){var t=this;return new Promise(function(r,n){t[I2].destroy(null,function(i){if(i){n(i);return}r(W_(void 0,!0))})})}),DR),CMt),PMt=function(t){var r,n=Object.create(LMt,(r={},H_(r,I2,{value:t,writable:!0}),H_(r,j_,{value:null,writable:!0}),H_(r,L2,{value:null,writable:!0}),H_(r,hE,{value:null,writable:!0}),H_(r,FR,{value:t._readableState.endEmitted,writable:!0}),H_(r,Pj,{value:function(a,o){var s=n[I2].read();s?(n[P2]=null,n[j_]=null,n[L2]=null,a(W_(s,!1))):(n[j_]=a,n[L2]=o)},writable:!0}),r));return n[P2]=null,SMt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[L2];a!==null&&(n[P2]=null,n[j_]=null,n[L2]=null,a(i)),n[hE]=i;return}var o=n[j_];o!==null&&(n[P2]=null,n[j_]=null,n[L2]=null,o(W_(void 0,!0))),n[FR]=!0}),t.on("readable",EMt.bind(null,n)),n};bSe.exports=PMt});var ASe=ye((Idr,TSe)=>{TSe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Mj=ye((Ddr,DSe)=>{"use strict";DSe.exports=Bu;var wA;Bu.ReadableState=kSe;var Rdr=Sb().EventEmitter,ESe=function(t,r){return t.listeners(r).length},vE=wH(),zR=w2().Buffer,IMt=window.Uint8Array||function(){};function RMt(e){return zR.from(e)}function DMt(e){return zR.isBuffer(e)||e instanceof IMt}var Ij=pj(),nu;Ij&&Ij.debuglog?nu=Ij.debuglog("stream"):nu=function(){};var FMt=K5e(),Bj=yj(),zMt=_j(),qMt=zMt.getHighWaterMark,qR=E2().codes,OMt=qR.ERR_INVALID_ARG_TYPE,BMt=qR.ERR_STREAM_PUSH_AFTER_EOF,NMt=qR.ERR_METHOD_NOT_IMPLEMENTED,UMt=qR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,TA,Rj,Dj;Yy()(Bu,vE);var dE=Bj.errorOrDestroy,Fj=["error","close","destroy","pause","resume"];function VMt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function kSe(e,t,r){wA=wA||k2(),e=e||{},typeof r!="boolean"&&(r=t instanceof wA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=qMt(this,e,"readableHighWaterMark",r),this.buffer=new FMt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(TA||(TA=Lj().StringDecoder),this.decoder=new TA(e.encoding),this.encoding=e.encoding)}function Bu(e){if(wA=wA||k2(),!(this instanceof Bu))return new Bu(e);var t=this instanceof wA;this._readableState=new kSe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),vE.call(this)}Object.defineProperty(Bu.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Bu.prototype.destroy=Bj.destroy;Bu.prototype._undestroy=Bj.undestroy;Bu.prototype._destroy=function(e,t){t(e)};Bu.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=zR.from(e,t),t=""),n=!0),CSe(this,e,t,!1,n)};Bu.prototype.unshift=function(e){return CSe(this,e,null,!0,!1)};function CSe(e,t,r,n,i){nu("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,jMt(e,a);else{var o;if(i||(o=GMt(a,t)),o)dE(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==zR.prototype&&(t=RMt(t)),n)a.endEmitted?dE(e,new UMt):zj(e,a,t,!0);else if(a.ended)dE(e,new BMt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?zj(e,a,t,!1):Oj(e,a)):zj(e,a,t,!1)}else n||(a.reading=!1,Oj(e,a))}return!a.ended&&(a.length=SSe?e=SSe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function MSe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=HMt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Bu.prototype.read=function(e){nu("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return nu("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?qj(this):OR(this),null;if(e=MSe(e,t),e===0&&t.ended)return t.length===0&&qj(this),null;var n=t.needReadable;nu("need readable",n),(t.length===0||t.length-e0?i=ISe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&qj(this)),i!==null&&this.emit("data",i),i};function jMt(e,t){if(nu("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?OR(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,LSe(e)))}}function OR(e){var t=e._readableState;nu("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(nu("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(LSe,e))}function LSe(e){var t=e._readableState;nu("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Nj(e)}function Oj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(WMt,e,t))}function WMt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&RSe(n.pipes,e)!==-1)&&!u&&(nu("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){nu("onerror",b),m(),e.removeListener("error",h),ESe(e,"error")===0&&dE(e,b)}VMt(e,"error",h);function d(){e.removeListener("finish",v),m()}e.once("close",d);function v(){nu("onfinish"),e.removeListener("close",d),m()}e.once("finish",v);function m(){nu("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(nu("pipe resume"),r.resume()),e};function XMt(e){return function(){var r=e._readableState;nu("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ESe(e,"data")&&(r.flowing=!0,Nj(e))}}Bu.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,nu("on readable",n.length,n.reading),n.length?OR(this):n.reading||process.nextTick(ZMt,this)),r};Bu.prototype.addListener=Bu.prototype.on;Bu.prototype.removeListener=function(e,t){var r=vE.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(PSe,this),r};Bu.prototype.removeAllListeners=function(e){var t=vE.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(PSe,this),t};function PSe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function ZMt(e){nu("readable nexttick read 0"),e.read(0)}Bu.prototype.resume=function(){var e=this._readableState;return e.flowing||(nu("resume"),e.flowing=!e.readableListening,YMt(this,e)),e.paused=!1,this};function YMt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(KMt,e,t))}function KMt(e,t){nu("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Nj(e),t.flowing&&!t.reading&&e.read(0)}Bu.prototype.pause=function(){return nu("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(nu("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Nj(e){var t=e._readableState;for(nu("flow",t.flowing);t.flowing&&e.read()!==null;);}Bu.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(nu("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(nu("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(s){return function(){return e[s].apply(e,arguments)}})(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function qj(e){var t=e._readableState;nu("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(JMt,t,e))}function JMt(e,t){if(nu("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Bu.from=function(e,t){return Dj===void 0&&(Dj=ASe()),Dj(Bu,e,t)});function RSe(e,t){for(var r=0,n=e.length;r{"use strict";zSe.exports=Jy;var BR=E2().codes,$Mt=BR.ERR_METHOD_NOT_IMPLEMENTED,QMt=BR.ERR_MULTIPLE_CALLBACK,e4t=BR.ERR_TRANSFORM_ALREADY_TRANSFORMING,t4t=BR.ERR_TRANSFORM_WITH_LENGTH_0,NR=k2();Yy()(Jy,NR);function r4t(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new QMt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";OSe.exports=pE;var qSe=Uj();Yy()(pE,qSe);function pE(e){if(!(this instanceof pE))return new pE(e);qSe.call(this,e)}pE.prototype._transform=function(e,t,r){r(null,e)}});var HSe=ye((qdr,GSe)=>{"use strict";var Vj;function n4t(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var VSe=E2().codes,a4t=VSe.ERR_MISSING_ARGS,o4t=VSe.ERR_STREAM_DESTROYED;function NSe(e){if(e)throw e}function s4t(e){return e.setHeader&&typeof e.abort=="function"}function l4t(e,t,r,n){n=n4t(n);var i=!1;e.on("close",function(){i=!0}),Vj===void 0&&(Vj=RR()),Vj(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,s4t(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new o4t("pipe"))}}}function USe(e){e()}function u4t(e,t){return e.pipe(t)}function c4t(e){return!e.length||typeof e[e.length-1]!="function"?NSe:e.pop()}function f4t(){for(var e=arguments.length,t=new Array(e),r=0;r0;return l4t(o,l,u,function(c){i||(i=c),c&&a.forEach(USe),!l&&(a.forEach(USe),n(i))})});return t.reduce(u4t)}GSe.exports=f4t});var WSe=ye((Odr,jSe)=>{jSe.exports=$0;var Gj=Sb().EventEmitter,h4t=Yy();h4t($0,Gj);$0.Readable=Mj();$0.Writable=Tj();$0.Duplex=k2();$0.Transform=Uj();$0.PassThrough=BSe();$0.finished=RR();$0.pipeline=HSe();$0.Stream=$0;function $0(){Gj.call(this)}$0.prototype.pipe=function(e,t){var r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),Gj.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var SA=ye(fu=>{var XSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Xj(t)?r.showHidden=t:t&&fu._extend(r,t),D2(r.showHidden)&&(r.showHidden=!1),D2(r.depth)&&(r.depth=2),D2(r.colors)&&(r.colors=!1),D2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=v4t),HR(r,e,r.depth)}fu.inspect=X_;X_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};X_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function v4t(e,t){var r=X_.styles[t];return r?"\x1B["+X_.colors[r][0]+"m"+e+"\x1B["+X_.colors[r][1]+"m":e}function p4t(e,t){return e}function g4t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function HR(e,t,r){if(e.customInspect&&t&&GR(t.inspect)&&t.inspect!==fu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return XR(n)||(n=HR(e,n,r)),n}var i=m4t(e,t);if(i)return i;var a=Object.keys(t),o=g4t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),mE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Hj(t);if(a.length===0){if(GR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(gE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(jR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(mE(t))return Hj(t)}var l="",u=!1,c=["{","}"];if(YSe(t)&&(u=!0,c=["[","]"]),GR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(gE(t)&&(l=" "+RegExp.prototype.toString.call(t)),jR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),mE(t)&&(l=" "+Hj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return gE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=y4t(e,t,r,o,a):h=a.map(function(d){return Wj(e,t,r,o,d,u)}),e.seen.pop(),_4t(h,l,c)}function m4t(e,t){if(D2(t))return e.stylize("undefined","undefined");if(XR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(KSe(t))return e.stylize(""+t,"number");if(Xj(t))return e.stylize(""+t,"boolean");if(WR(t))return e.stylize("null","null")}function Hj(e){return"["+Error.prototype.toString.call(e)+"]"}function y4t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),R2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function s4t(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),D2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function _4t(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}fu.types=oj();function jSe(e){return Array.isArray(e)}fu.isArray=jSe;function jj(e){return typeof e=="boolean"}fu.isBoolean=jj;function HR(e){return e===null}fu.isNull=HR;function l4t(e){return e==null}fu.isNullOrUndefined=l4t;function WSe(e){return typeof e=="number"}fu.isNumber=WSe;function jR(e){return typeof e=="string"}fu.isString=jR;function u4t(e){return typeof e=="symbol"}fu.isSymbol=u4t;function R2(e){return e===void 0}fu.isUndefined=R2;function vE(e){return wA(e)&&Wj(e)==="[object RegExp]"}fu.isRegExp=vE;fu.types.isRegExp=vE;function wA(e){return typeof e=="object"&&e!==null}fu.isObject=wA;function GR(e){return wA(e)&&Wj(e)==="[object Date]"}fu.isDate=GR;fu.types.isDate=GR;function pE(e){return wA(e)&&(Wj(e)==="[object Error]"||e instanceof Error)}fu.isError=pE;fu.types.isNativeError=pE;function UR(e){return typeof e=="function"}fu.isFunction=UR;function c4t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}fu.isPrimitive=c4t;fu.isBuffer=sj();function Wj(e){return Object.prototype.toString.call(e)}function Gj(e){return e<10?"0"+e.toString(10):e.toString(10)}var f4t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function h4t(){var e=new Date,t=[Gj(e.getHours()),Gj(e.getMinutes()),Gj(e.getSeconds())].join(":");return[e.getDate(),f4t[e.getMonth()],t].join(" ")}fu.log=function(){console.log("%s - %s",h4t(),fu.format.apply(fu,arguments))};fu.inherits=Zy();fu._extend=function(e,t){if(!t||!wA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function XSe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var I2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;fu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(I2&&t[I2]){var r=t[I2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,I2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function X_(e){"@babel/helpers - typeof";return X_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X_(e)}function ZSe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function A4t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function S4t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function M4t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}gE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);gE("ERR_INVALID_ARG_TYPE",function(e,t,r){AA===void 0&&(AA=mE()),AA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&A4t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(S4t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(YSe(t,"type"));else{var a=M4t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(YSe(t,"type"))}return i+=". Received type ".concat(X_(r)),i},TypeError);gE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Xj===void 0&&(Xj=TA());var n=Xj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);gE("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(X_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);gE("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);JSe.exports.codes=KSe});var sMe=ye((Tdr,oMe)=>{"use strict";function $Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QSe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function q4t(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Xg="",yE="",_E="",Tv="",D2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},O4t=10;function rMe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function xE(e){return $j(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function B4t(e,t,r){var n="",i="",a=0,o="",s=!1,l=xE(e),u=l.split(` -`),c=xE(t).split(` -`),f=0,h="";if(r==="strictEqual"&&Dp(e)==="object"&&Dp(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var d=u[0].length+c[0].length;if(d<=O4t){if((Dp(e)!=="object"||e===null)&&(Dp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(D2[r],` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}fu.types=lj();function YSe(e){return Array.isArray(e)}fu.isArray=YSe;function Xj(e){return typeof e=="boolean"}fu.isBoolean=Xj;function WR(e){return e===null}fu.isNull=WR;function x4t(e){return e==null}fu.isNullOrUndefined=x4t;function KSe(e){return typeof e=="number"}fu.isNumber=KSe;function XR(e){return typeof e=="string"}fu.isString=XR;function b4t(e){return typeof e=="symbol"}fu.isSymbol=b4t;function D2(e){return e===void 0}fu.isUndefined=D2;function gE(e){return AA(e)&&Zj(e)==="[object RegExp]"}fu.isRegExp=gE;fu.types.isRegExp=gE;function AA(e){return typeof e=="object"&&e!==null}fu.isObject=AA;function jR(e){return AA(e)&&Zj(e)==="[object Date]"}fu.isDate=jR;fu.types.isDate=jR;function mE(e){return AA(e)&&(Zj(e)==="[object Error]"||e instanceof Error)}fu.isError=mE;fu.types.isNativeError=mE;function GR(e){return typeof e=="function"}fu.isFunction=GR;function w4t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}fu.isPrimitive=w4t;fu.isBuffer=uj();function Zj(e){return Object.prototype.toString.call(e)}function jj(e){return e<10?"0"+e.toString(10):e.toString(10)}var T4t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A4t(){var e=new Date,t=[jj(e.getHours()),jj(e.getMinutes()),jj(e.getSeconds())].join(":");return[e.getDate(),T4t[e.getMonth()],t].join(" ")}fu.log=function(){console.log("%s - %s",A4t(),fu.format.apply(fu,arguments))};fu.inherits=Yy();fu._extend=function(e,t){if(!t||!AA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function JSe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var R2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;fu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(R2&&t[R2]){var r=t[R2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,R2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function Z_(e){"@babel/helpers - typeof";return Z_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z_(e)}function $Se(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function z4t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function q4t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function O4t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}yE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);yE("ERR_INVALID_ARG_TYPE",function(e,t,r){MA===void 0&&(MA=_E()),MA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&z4t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(q4t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(QSe(t,"type"));else{var a=O4t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(QSe(t,"type"))}return i+=". Received type ".concat(Z_(r)),i},TypeError);yE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Yj===void 0&&(Yj=SA());var n=Yj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);yE("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(Z_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);yE("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);tMe.exports.codes=eMe});var fMe=ye((Udr,cMe)=>{"use strict";function rMe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iMe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Y4t(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Xg="",xE="",bE="",Tv="",F2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},K4t=10;function oMe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function wE(e){return eW(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function J4t(e,t,r){var n="",i="",a=0,o="",s=!1,l=wE(e),u=l.split(` +`),c=wE(t).split(` +`),f=0,h="";if(r==="strictEqual"&&Dp(e)==="object"&&Dp(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var d=u[0].length+c[0].length;if(d<=K4t){if((Dp(e)!=="object"||e===null)&&(Dp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(F2[r],` `)+"".concat(u[0]," !== ").concat(c[0],` `)}else if(r!=="strictEqualObject"){var v=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(h=` - `.concat(q4t(" ",f),"^"),f=0)}}}for(var m=u[u.length-1],b=c[c.length-1];m===b&&(f++<2?o=` + `.concat(Y4t(" ",f),"^"),f=0)}}}for(var m=u[u.length-1],b=c[c.length-1];m===b&&(f++<2?o=` `.concat(m).concat(o):n=m,u.pop(),c.pop(),!(u.length===0||c.length===0));)m=u[u.length-1],b=c[c.length-1];var p=Math.max(u.length,c.length);if(p===0){var k=l.split(` -`);if(k.length>30)for(k[26]="".concat(Xg,"...").concat(Tv);k.length>27;)k.pop();return"".concat(D2.notIdentical,` +`);if(k.length>30)for(k[26]="".concat(Xg,"...").concat(Tv);k.length>27;)k.pop();return"".concat(F2.notIdentical,` `).concat(k.join(` `),` `)}f>3&&(o=` `.concat(Xg,"...").concat(Tv).concat(o),s=!0),n!==""&&(o=` - `.concat(n).concat(o),n="");var M=0,T=D2[r]+` -`.concat(yE,"+ actual").concat(Tv," ").concat(_E,"- expected").concat(Tv),L=" ".concat(Xg,"...").concat(Tv," Lines skipped");for(f=0;f1&&f>2&&(x>4?(i+=` + `.concat(n).concat(o),n="");var M=0,T=F2[r]+` +`.concat(xE,"+ actual").concat(Tv," ").concat(bE,"- expected").concat(Tv),L=" ".concat(Xg,"...").concat(Tv," Lines skipped");for(f=0;f1&&f>2&&(x>4?(i+=` `.concat(Xg,"...").concat(Tv),s=!0):x>3&&(i+=` `.concat(c[f-2]),M++),i+=` `.concat(c[f-1]),M++),a=f,n+=` -`.concat(_E,"-").concat(Tv," ").concat(c[f]),M++;else if(c.length1&&f>2&&(x>4?(i+=` +`.concat(bE,"-").concat(Tv," ").concat(c[f]),M++;else if(c.length1&&f>2&&(x>4?(i+=` `.concat(Xg,"...").concat(Tv),s=!0):x>3&&(i+=` `.concat(u[f-2]),M++),i+=` `.concat(u[f-1]),M++),a=f,i+=` -`.concat(yE,"+").concat(Tv," ").concat(u[f]),M++;else{var C=c[f],S=u[f],g=S!==C&&(!tMe(S,",")||S.slice(0,-1)!==C);g&&tMe(C,",")&&C.slice(0,-1)===S&&(g=!1,S+=","),g?(x>1&&f>2&&(x>4?(i+=` +`.concat(xE,"+").concat(Tv," ").concat(u[f]),M++;else{var C=c[f],S=u[f],g=S!==C&&(!aMe(S,",")||S.slice(0,-1)!==C);g&&aMe(C,",")&&C.slice(0,-1)===S&&(g=!1,S+=","),g?(x>1&&f>2&&(x>4?(i+=` `.concat(Xg,"...").concat(Tv),s=!0):x>3&&(i+=` `.concat(u[f-2]),M++),i+=` `.concat(u[f-1]),M++),a=f,i+=` -`.concat(yE,"+").concat(Tv," ").concat(S),n+=` -`.concat(_E,"-").concat(Tv," ").concat(C),M+=2):(i+=n,n="",(x===1||f===0)&&(i+=` +`.concat(xE,"+").concat(Tv," ").concat(S),n+=` +`.concat(bE,"-").concat(Tv," ").concat(C),M+=2):(i+=n,n="",(x===1||f===0)&&(i+=` `.concat(S),M++))}if(M>20&&f30)for(d[26]="".concat(Xg,"...").concat(Tv);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` +`).concat(i).concat(n).concat(o).concat(h)}var $4t=(function(e,t){G4t(n,e);var r=H4t(n);function n(i){var a;if(N4t(this,n),Dp(i)!=="object"||i===null)throw new Z4t("options","Object",i);var o=i.message,s=i.operator,l=i.stackStartFn,u=i.actual,c=i.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)a=r.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(Xg="\x1B[34m",xE="\x1B[32m",Tv="\x1B[39m",bE="\x1B[31m"):(Xg="",xE="",Tv="",bE="")),Dp(u)==="object"&&u!==null&&Dp(c)==="object"&&c!==null&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=oMe(u),c=oMe(c)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,J4t(u,c,s));else if(s==="notDeepStrictEqual"||s==="notStrictEqual"){var h=F2[s],d=wE(u).split(` +`);if(s==="notStrictEqual"&&Dp(u)==="object"&&u!==null&&(h=F2.notStrictEqualObject),d.length>30)for(d[26]="".concat(Xg,"...").concat(Tv);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` `).concat(d.join(` `),` -`))}else{var v=xE(u),m="",b=D2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(D2[s],` +`))}else{var v=wE(u),m="",b=F2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(F2[s],` -`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(m="".concat(xE(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` +`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(m="".concat(wE(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` `).concat(v,` should equal -`):m=" ".concat(s," ").concat(m)),a=r.call(this,"".concat(v).concat(m))}return Error.stackTraceLimit=f,a.generatedMessage=!o,Object.defineProperty(Kj(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=u,a.expected=c,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(Kj(a),l),a.stack,a.name="AssertionError",nMe(a)}return C4t(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return $j(this,QSe(QSe({},o),{},{customInspect:!1,depth:0}))}}]),n}(Jj(Error),$j.custom);oMe.exports=N4t});var Qj=ye((Adr,uMe)=>{"use strict";var lMe=Object.prototype.toString;uMe.exports=function(t){var r=lMe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&lMe.call(t.callee)==="[object Function]"),n}});var yMe=ye((Sdr,mMe)=>{"use strict";var gMe;Object.keys||(TE=Object.prototype.hasOwnProperty,eW=Object.prototype.toString,cMe=Qj(),tW=Object.prototype.propertyIsEnumerable,fMe=!tW.call({toString:null},"toString"),hMe=tW.call(function(){},"prototype"),AE=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ZR=function(e){var t=e.constructor;return t&&t.prototype===e},dMe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},vMe=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!dMe["$"+e]&&TE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{ZR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),pMe=function(e){if(typeof window=="undefined"||!vMe)return ZR(e);try{return ZR(e)}catch(t){return!1}},gMe=function(t){var r=t!==null&&typeof t=="object",n=eW.call(t)==="[object Function]",i=cMe(t),a=r&&eW.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=hMe&&n;if(a&&t.length>0&&!TE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var U4t=Array.prototype.slice,V4t=Qj(),_Me=Object.keys,YR=_Me?function(t){return _Me(t)}:yMe(),xMe=Object.keys;YR.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return V4t(n)?xMe(U4t.call(n)):xMe(n)})}else Object.keys=YR;return Object.keys||YR};bMe.exports=YR});var EMe=ye((Edr,MMe)=>{"use strict";var G4t=rW(),AMe=K8()(),SMe=vA(),wMe=Object,H4t=SMe("Array.prototype.push"),TMe=SMe("Object.prototype.propertyIsEnumerable"),j4t=AMe?Object.getOwnPropertySymbols:null;MMe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=wMe(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var iW=EMe(),W4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var LMe=function(e){return e!==e};PMe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||LMe(t)&&LMe(r))}});var KR=ye((Ldr,IMe)=>{"use strict";var Z4t=nW();IMe.exports=function(){return typeof Object.is=="function"?Object.is:Z4t}});var SE=ye((Pdr,zMe)=>{"use strict";var Y4t=rW(),K4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",J4t=Object.prototype.toString,$4t=Array.prototype.concat,RMe=Object.defineProperty,Q4t=function(e){return typeof e=="function"&&J4t.call(e)==="[object Function]"},eEt=NH()(),DMe=RMe&&eEt,tEt=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!Q4t(n)||!n())return}DMe?RMe(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},FMe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=Y4t(t);K4t&&(n=$4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var rEt=KR(),iEt=SE();qMe.exports=function(){var t=rEt();return iEt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var VMe=ye((Rdr,UMe)=>{"use strict";var nEt=SE(),aEt=rE(),oEt=nW(),BMe=KR(),sEt=OMe(),NMe=aEt(BMe(),Object);nEt(NMe,{getPolyfill:BMe,implementation:oEt,shim:sEt});UMe.exports=NMe});var aW=ye((Ddr,GMe)=>{"use strict";GMe.exports=function(t){return t!==t}});var oW=ye((Fdr,HMe)=>{"use strict";var lEt=aW();HMe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:lEt}});var WMe=ye((zdr,jMe)=>{"use strict";var uEt=SE(),cEt=oW();jMe.exports=function(){var t=cEt();return uEt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var KMe=ye((qdr,YMe)=>{"use strict";var fEt=rE(),hEt=SE(),dEt=aW(),XMe=oW(),vEt=WMe(),ZMe=fEt(XMe(),Number);hEt(ZMe,{getPolyfill:XMe,implementation:dEt,shim:vEt});YMe.exports=ZMe});var g4e=ye((Odr,p4e)=>{"use strict";function JMe(e,t){return yEt(e)||mEt(e,t)||gEt(e,t)||pEt()}function pEt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gEt(e,t){if(e){if(typeof e=="string")return $Me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $Me(e,t)}}function $Me(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function QR(e){return Object.keys(e).filter(EEt).concat(tD(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function f4e(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function Zg(e){"@babel/helpers - typeof";return Zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zg(e)}function m4e(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{"use strict";var hMe=Object.prototype.toString;dMe.exports=function(t){var r=hMe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&hMe.call(t.callee)==="[object Function]"),n}});var wMe=ye((Gdr,bMe)=>{"use strict";var xMe;Object.keys||(SE=Object.prototype.hasOwnProperty,rW=Object.prototype.toString,vMe=tW(),iW=Object.prototype.propertyIsEnumerable,pMe=!iW.call({toString:null},"toString"),gMe=iW.call(function(){},"prototype"),ME=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],KR=function(e){var t=e.constructor;return t&&t.prototype===e},mMe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},yMe=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!mMe["$"+e]&&SE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{KR(window[e])}catch(t){return!0}}catch(t){return!0}return!1})(),_Me=function(e){if(typeof window=="undefined"||!yMe)return KR(e);try{return KR(e)}catch(t){return!1}},xMe=function(t){var r=t!==null&&typeof t=="object",n=rW.call(t)==="[object Function]",i=vMe(t),a=r&&rW.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=gMe&&n;if(a&&t.length>0&&!SE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var Q4t=Array.prototype.slice,eEt=tW(),TMe=Object.keys,JR=TMe?function(t){return TMe(t)}:wMe(),AMe=Object.keys;JR.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(n){return eEt(n)?AMe(Q4t.call(n)):AMe(n)})}else Object.keys=JR;return Object.keys||JR};SMe.exports=JR});var PMe=ye((jdr,LMe)=>{"use strict";var tEt=nW(),kMe=$8()(),CMe=gA(),MMe=Object,rEt=CMe("Array.prototype.push"),EMe=CMe("Object.prototype.propertyIsEnumerable"),iEt=kMe?Object.getOwnPropertySymbols:null;LMe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=MMe(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var aW=PMe(),nEt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var DMe=function(e){return e!==e};FMe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||DMe(t)&&DMe(r))}});var $R=ye((Zdr,zMe)=>{"use strict";var oEt=oW();zMe.exports=function(){return typeof Object.is=="function"?Object.is:oEt}});var EE=ye((Ydr,NMe)=>{"use strict";var sEt=nW(),lEt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",uEt=Object.prototype.toString,cEt=Array.prototype.concat,qMe=Object.defineProperty,fEt=function(e){return typeof e=="function"&&uEt.call(e)==="[object Function]"},hEt=VH()(),OMe=qMe&&hEt,dEt=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!fEt(n)||!n())return}OMe?qMe(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},BMe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=sEt(t);lEt&&(n=cEt.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var vEt=$R(),pEt=EE();UMe.exports=function(){var t=vEt();return pEt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var WMe=ye((Jdr,jMe)=>{"use strict";var gEt=EE(),mEt=nE(),yEt=oW(),GMe=$R(),_Et=VMe(),HMe=mEt(GMe(),Object);gEt(HMe,{getPolyfill:GMe,implementation:yEt,shim:_Et});jMe.exports=HMe});var sW=ye(($dr,XMe)=>{"use strict";XMe.exports=function(t){return t!==t}});var lW=ye((Qdr,ZMe)=>{"use strict";var xEt=sW();ZMe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:xEt}});var KMe=ye((evr,YMe)=>{"use strict";var bEt=EE(),wEt=lW();YMe.exports=function(){var t=wEt();return bEt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var e4e=ye((tvr,QMe)=>{"use strict";var TEt=nE(),AEt=EE(),SEt=sW(),JMe=lW(),MEt=KMe(),$Me=TEt(JMe(),Number);AEt($Me,{getPolyfill:JMe,implementation:SEt,shim:MEt});QMe.exports=$Me});var x4e=ye((rvr,_4e)=>{"use strict";function t4e(e,t){return LEt(e)||CEt(e,t)||kEt(e,t)||EEt()}function EEt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kEt(e,t){if(e){if(typeof e=="string")return r4e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r4e(e,t)}}function r4e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function tD(e){return Object.keys(e).filter(BEt).concat(iD(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function p4e(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function Zg(e){"@babel/helpers - typeof";return Zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zg(e)}function b4e(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var LE=1e3,PE=LE*60,IE=PE*60,RE=IE*24,QEt=RE*365.25;F4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return ekt(e);if(r==="number"&&isNaN(e)===!1)return t.long?rkt(e):tkt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ekt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*QEt;case"days":case"day":case"d":return r*RE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*IE;case"minutes":case"minute":case"mins":case"min":case"m":return r*PE;case"seconds":case"second":case"secs":case"sec":case"s":return r*LE;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function tkt(e){return e>=RE?Math.round(e/RE)+"d":e>=IE?Math.round(e/IE)+"h":e>=PE?Math.round(e/PE)+"m":e>=LE?Math.round(e/LE)+"s":e+"ms"}function rkt(e){return uD(e,RE,"day")||uD(e,IE,"hour")||uD(e,PE,"minute")||uD(e,LE,"second")||e+" ms"}function uD(e,t,r){if(!(e{Lc=q4e.exports=dW.debug=dW.default=dW;Lc.coerce=skt;Lc.disable=akt;Lc.enable=nkt;Lc.enabled=okt;Lc.humanize=z4e();Lc.names=[];Lc.skips=[];Lc.formatters={};var hW;function ikt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Lc.colors[Math.abs(t)%Lc.colors.length]}function dW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(hW||n);r.diff=i,r.prev=hW,r.curr=n,hW=n;for(var a=new Array(arguments.length),o=0;o{up=N4e.exports=O4e();up.log=ckt;up.formatArgs=ukt;up.save=fkt;up.load=B4e;up.useColors=lkt;up.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:hkt();up.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function lkt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}up.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function ukt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+up.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function ckt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function fkt(e){try{e==null?up.storage.removeItem("debug"):up.storage.debug=e}catch(t){}}function B4e(){var e;try{e=up.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}up.enable(B4e());function hkt(){try{return window.localStorage}catch(e){}}});var Y4e=ye((Udr,Z4e)=>{var MA=mE(),J_=U4e()("stream-parser");Z4e.exports=vkt;var G4e=-1,cD=0,dkt=1,H4e=2;function vkt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");J_("extending Parser into stream"),e._bytes=pkt,e._skipBytes=gkt,t&&(e._passthrough=mkt),t?e._transform=_kt:e._write=ykt}function DE(e){J_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=G4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function pkt(e,t){MA(!this._parserCallback,'there is already a "callback" set!'),MA(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||DE(this),J_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=cD}function gkt(e,t){MA(!this._parserCallback,'there is already a "callback" set!'),MA(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||DE(this),J_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=dkt}function mkt(e,t){MA(!this._parserCallback,'There is already a "callback" set!'),MA(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||DE(this),J_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=H4e}function ykt(e,t,r){this._parserInit||DE(this),J_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),W4e(this,e,null,r)}function _kt(e,t,r){this._parserInit||DE(this),J_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),W4e(this,e,t,r)}function j4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return V4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return V4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return j4e(e,t.slice(i.length),r,n)}})}}function V4e(e,t,r,n){if(e._parserBytesLeft-=t.length,J_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===cD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===H4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===cD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==cD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=G4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(X4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var W4e=X4e(j4e);function X4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var rc=ye(Jy=>{"use strict";var K4e=VSe().Transform,xkt=Y4e();function FE(){K4e.call(this,{readableObjectMode:!0})}FE.prototype=Object.create(K4e.prototype);FE.prototype.constructor=FE;xkt(FE.prototype);Jy.ParserStream=FE;Jy.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var EA=rc().readUInt16BE,pW=rc().readUInt32BE;function zE(e,t){if(e.length<4+t)return null;var r=pW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=EA(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}hD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(Skt(e,t),!!t.sizes.length){var r=Mkt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var l=0;l{"use strict";function dD(e,t){var r=new Error(e);return r.code=t,r}function Ekt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function $y(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw dD("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}$y.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};$y.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw dD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};$y.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw dD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};$y.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};$y.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};$y.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};$y.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw dD("unexpected EOF","EBADDATA");for(var h=[],d=c,v=0;v0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:c+this.start,value:h,is_subifd_link:f};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};gW.exports.ExifParser=$y;gW.exports.get_orientation=function(e){var t=0;try{return new $y(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var Q4e=ye((jdr,$4e)=>{"use strict";var kkt=rc().str2arr,Ckt=rc().sliceEq,Lkt=rc().readUInt32BE,pD=J4e(),Pkt=vD(),Ikt=kkt("ftyp");$4e.exports=function(e){if(Ckt(e,4,Ikt)){var t=pD.unbox(e,0);if(t){var r=pD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=pD.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=pD.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=Lkt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=Pkt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var rEe=ye((Wdr,tEe)=>{"use strict";var Rkt=rc().str2arr,Dkt=rc().sliceEq,eEe=rc().readUInt16LE,Fkt=Rkt("BM");tEe.exports=function(e){if(!(e.length<26)&&Dkt(e,0,Fkt))return{width:eEe(e,18),height:eEe(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var sEe=ye((Xdr,oEe)=>{"use strict";var aEe=rc().str2arr,iEe=rc().sliceEq,nEe=rc().readUInt16LE,zkt=aEe("GIF87a"),qkt=aEe("GIF89a");oEe.exports=function(e){if(!(e.length<10)&&!(!iEe(e,0,zkt)&&!iEe(e,0,qkt)))return{width:nEe(e,6),height:nEe(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var cEe=ye((Zdr,uEe)=>{"use strict";var mW=rc().readUInt16LE,Okt=0,Bkt=1,lEe=16;uEe.exports=function(e){var t=mW(e,0),r=mW(e,2),n=mW(e,4);if(!(t!==Okt||r!==Bkt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var hEe=ye((Ydr,fEe)=>{"use strict";var yW=rc().readUInt16BE,Nkt=rc().str2arr,Ukt=rc().sliceEq,Vkt=vD(),Gkt=Nkt("Exif\0\0");fEe.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=yW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&Ukt(e,t,Gkt)&&(i=Vkt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var mEe=ye((Kdr,gEe)=>{"use strict";var pEe=rc().str2arr,dEe=rc().sliceEq,vEe=rc().readUInt32BE,Hkt=pEe(`\x89PNG\r +`).concat(oD(e),` +`));var s=new J_({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw s.generatedMessage=o,s}}Ef.match=function e(t,r,n){z4e(t,r,n,e,"match")};Ef.doesNotMatch=function e(t,r,n){z4e(t,r,n,e,"doesNotMatch")};function q4e(){for(var e=arguments.length,t=new Array(e),r=0;r{var IE=1e3,RE=IE*60,DE=RE*60,FE=DE*24,fkt=FE*365.25;B4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return hkt(e);if(r==="number"&&isNaN(e)===!1)return t.long?vkt(e):dkt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function hkt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*fkt;case"days":case"day":case"d":return r*FE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*DE;case"minutes":case"minute":case"mins":case"min":case"m":return r*RE;case"seconds":case"second":case"secs":case"sec":case"s":return r*IE;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function dkt(e){return e>=FE?Math.round(e/FE)+"d":e>=DE?Math.round(e/DE)+"h":e>=RE?Math.round(e/RE)+"m":e>=IE?Math.round(e/IE)+"s":e+"ms"}function vkt(e){return fD(e,FE,"day")||fD(e,DE,"hour")||fD(e,RE,"minute")||fD(e,IE,"second")||e+" ms"}function fD(e,t,r){if(!(e{Lc=U4e.exports=pW.debug=pW.default=pW;Lc.coerce=_kt;Lc.disable=mkt;Lc.enable=gkt;Lc.enabled=ykt;Lc.humanize=N4e();Lc.names=[];Lc.skips=[];Lc.formatters={};var vW;function pkt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Lc.colors[Math.abs(t)%Lc.colors.length]}function pW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(vW||n);r.diff=i,r.prev=vW,r.curr=n,vW=n;for(var a=new Array(arguments.length),o=0;o{up=H4e.exports=V4e();up.log=wkt;up.formatArgs=bkt;up.save=Tkt;up.load=G4e;up.useColors=xkt;up.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:Akt();up.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function xkt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}up.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function bkt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+up.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function wkt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Tkt(e){try{e==null?up.storage.removeItem("debug"):up.storage.debug=e}catch(t){}}function G4e(){var e;try{e=up.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}up.enable(G4e());function Akt(){try{return window.localStorage}catch(e){}}});var Q4e=ye((avr,$4e)=>{var kA=_E(),$_=j4e()("stream-parser");$4e.exports=Mkt;var X4e=-1,hD=0,Skt=1,Z4e=2;function Mkt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");$_("extending Parser into stream"),e._bytes=Ekt,e._skipBytes=kkt,t&&(e._passthrough=Ckt),t?e._transform=Pkt:e._write=Lkt}function zE(e){$_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=X4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function Ekt(e,t){kA(!this._parserCallback,'there is already a "callback" set!'),kA(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||zE(this),$_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=hD}function kkt(e,t){kA(!this._parserCallback,'there is already a "callback" set!'),kA(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||zE(this),$_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=Skt}function Ckt(e,t){kA(!this._parserCallback,'There is already a "callback" set!'),kA(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||zE(this),$_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=Z4e}function Lkt(e,t,r){this._parserInit||zE(this),$_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),K4e(this,e,null,r)}function Pkt(e,t,r){this._parserInit||zE(this),$_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),K4e(this,e,t,r)}function Y4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return W4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return W4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return Y4e(e,t.slice(i.length),r,n)}})}}function W4e(e,t,r,n){if(e._parserBytesLeft-=t.length,$_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===hD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===Z4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===hD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==hD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=X4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(J4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var K4e=J4e(Y4e);function J4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var rc=ye($y=>{"use strict";var eEe=WSe().Transform,Ikt=Q4e();function qE(){eEe.call(this,{readableObjectMode:!0})}qE.prototype=Object.create(eEe.prototype);qE.prototype.constructor=qE;Ikt(qE.prototype);$y.ParserStream=qE;$y.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var CA=rc().readUInt16BE,mW=rc().readUInt32BE;function OE(e,t){if(e.length<4+t)return null;var r=mW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=CA(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}vD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(qkt(e,t),!!t.sizes.length){var r=Okt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var l=0;l{"use strict";function pD(e,t){var r=new Error(e);return r.code=t,r}function Bkt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function Qy(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw pD("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}Qy.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};Qy.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw pD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};Qy.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw pD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};Qy.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};Qy.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Qy.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Qy.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw pD("unexpected EOF","EBADDATA");for(var h=[],d=c,v=0;v0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:c+this.start,value:h,is_subifd_link:f};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};yW.exports.ExifParser=Qy;yW.exports.get_orientation=function(e){var t=0;try{return new Qy(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var iEe=ye((uvr,rEe)=>{"use strict";var Nkt=rc().str2arr,Ukt=rc().sliceEq,Vkt=rc().readUInt32BE,mD=tEe(),Gkt=gD(),Hkt=Nkt("ftyp");rEe.exports=function(e){if(Ukt(e,4,Hkt)){var t=mD.unbox(e,0);if(t){var r=mD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=mD.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=mD.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=Vkt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=Gkt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var oEe=ye((cvr,aEe)=>{"use strict";var jkt=rc().str2arr,Wkt=rc().sliceEq,nEe=rc().readUInt16LE,Xkt=jkt("BM");aEe.exports=function(e){if(!(e.length<26)&&Wkt(e,0,Xkt))return{width:nEe(e,18),height:nEe(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var fEe=ye((fvr,cEe)=>{"use strict";var uEe=rc().str2arr,sEe=rc().sliceEq,lEe=rc().readUInt16LE,Zkt=uEe("GIF87a"),Ykt=uEe("GIF89a");cEe.exports=function(e){if(!(e.length<10)&&!(!sEe(e,0,Zkt)&&!sEe(e,0,Ykt)))return{width:lEe(e,6),height:lEe(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var vEe=ye((hvr,dEe)=>{"use strict";var _W=rc().readUInt16LE,Kkt=0,Jkt=1,hEe=16;dEe.exports=function(e){var t=_W(e,0),r=_W(e,2),n=_W(e,4);if(!(t!==Kkt||r!==Jkt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var gEe=ye((dvr,pEe)=>{"use strict";var xW=rc().readUInt16BE,$kt=rc().str2arr,Qkt=rc().sliceEq,eCt=gD(),tCt=$kt("Exif\0\0");pEe.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=xW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&Qkt(e,t,tCt)&&(i=eCt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var bEe=ye((vvr,xEe)=>{"use strict";var _Ee=rc().str2arr,mEe=rc().sliceEq,yEe=rc().readUInt32BE,rCt=_Ee(`\x89PNG\r  -`),jkt=pEe("IHDR");gEe.exports=function(e){if(!(e.length<24)&&dEe(e,0,Hkt)&&dEe(e,12,jkt))return{width:vEe(e,16),height:vEe(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var xEe=ye((Jdr,_Ee)=>{"use strict";var Wkt=rc().str2arr,Xkt=rc().sliceEq,yEe=rc().readUInt32BE,Zkt=Wkt("8BPS\0");_Ee.exports=function(e){if(!(e.length<22)&&Xkt(e,0,Zkt))return{width:yEe(e,18),height:yEe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var TEe=ye(($dr,wEe)=>{"use strict";function Ykt(e){return e===32||e===9||e===13||e===10}function kA(e){return typeof e=="number"&&isFinite(e)&&e>0}function Kkt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,$kt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Qkt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,eCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,tCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,bEe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function rCt(e){var t=e.match(Qkt),r=e.match(eCt),n=e.match(tCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Zm(e){return bEe.test(e)?e.match(bEe)[0]:"px"}wEe.exports=function(e){if(Kkt(e)){for(var t="",r=0;r{"use strict";var MEe=rc().str2arr,AEe=rc().sliceEq,iCt=rc().readUInt16LE,nCt=rc().readUInt16BE,aCt=rc().readUInt32LE,oCt=rc().readUInt32BE,sCt=MEe("II*\0"),lCt=MEe("MM\0*");function gD(e,t,r){return r?nCt(e,t):iCt(e,t)}function _W(e,t,r){return r?oCt(e,t):aCt(e,t)}function SEe(e,t,r){var n=gD(e,t+2,r),i=_W(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?gD(e,t+8,r):_W(e,t+8,r)}EEe.exports=function(e){if(!(e.length<8)&&!(!AEe(e,0,sCt)&&!AEe(e,0,lCt))){var t=e[0]===77,r=_W(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=gD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var PEe=rc().str2arr,CEe=rc().sliceEq,LEe=rc().readUInt16LE,xW=rc().readUInt32LE,uCt=vD(),cCt=PEe("RIFF"),fCt=PEe("WEBP");function hCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:LEe(e,t+6)&16383,height:LEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function dCt(e,t){if(e[t]===47){var r=xW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function vCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||hCt(e,t+8):a==="VP8L"&&o>=9?r=r||dCt(e,t+8):a==="VP8X"&&o>=10?r=r||vCt(e,t+8):a==="EXIF"&&(n=uCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var FEe=ye((tvr,DEe)=>{"use strict";DEe.exports={avif:Q4e(),bmp:rEe(),gif:sEe(),ico:cEe(),jpeg:hEe(),png:mEe(),psd:xEe(),svg:TEe(),tiff:kEe(),webp:REe()}});var zEe=ye((rvr,wW)=>{"use strict";var bW=FEe();function pCt(e){for(var t=Object.keys(bW),r=0;r{"use strict";var gCt=zEe(),mCt=qy().IMAGE_URL_PREFIX,yCt=b2().Buffer;qEe.getImageSize=function(e){var t=e.replace(mCt,""),r=new yCt(t,"base64");return gCt(r)}});var UEe=ye((nvr,NEe)=>{"use strict";var BEe=Pr(),_Ct=tA(),xCt=Eo(),mD=ho(),bCt=Pr().maxRowLength,wCt=OEe().getImageSize;NEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=bCt(r.z);else if(r._hasSource){var a=wCt(r.source);n=a.height,i=a.width}var o=mD.getFromId(t,r.xaxis||"x"),s=mD.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,c,f=[l,l+i*r.dx],h=[u,u+n*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var MCt=qa(),F2=Pr(),VEe=F2.strTranslate,ECt=Wp(),kCt=tA(),CCt=lG(),LCt=m8().STYLE;GEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&CCt();F2.makeTraceGroups(i,n,"im").each(function(l){var u=MCt.select(this),c=l[0],f=c.trace,h=(f.zsmooth==="fast"||f.zsmooth===!1&&s)&&!f._hasZ&&f._hasSource&&a.type==="linear"&&o.type==="linear";f._realImage=h;var d=c.z,v=c.x0,m=c.y0,b=c.w,p=c.h,k=f.dx,M=f.dy,T,L,x,C,S,g;for(g=0;T===void 0&&g0;)L=a.c2p(v+g*k),g--;for(g=0;C===void 0&&g0;)S=o.c2p(m+g*M),g--;if(LH[0];if(ie||ae){var _e=T+E/2,Ee=C+z/2;j+="transform:"+VEe(_e+"px",Ee+"px")+"scale("+(ie?-1:1)+","+(ae?-1:1)+")"+VEe(-_e+"px",-Ee+"px")+";"}}Z.attr("style",j);var Ce=new Promise(function(ge){if(f._hasZ)ge();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===b&&f._canvas.el.height===p&&f._canvas.source===f.source)ge();else{var re=document.createElement("canvas");re.width=b,re.height=p;var Se=re.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var ke=f._image;ke.onload=function(){Se.drawImage(ke,0,0),f._canvas={el:re,source:f.source},ge()},ke.setAttribute("src",f.source)}}).then(function(){var ge,re;if(f._hasZ)re=G(function(be,Be){var Le=d[Be][be];return F2.isTypedArray(Le)&&(Le=Array.from(Le)),Le}),ge=re.toDataURL("image/png");else if(f._hasSource)if(h)ge=f.source;else{var Se=f._canvas.el.getContext("2d",{willReadFrequently:!0}),ke=Se.getImageData(0,0,b,p).data;re=G(function(be,Be){var Le=4*(Be*b+be);return[ke[Le],ke[Le+1],ke[Le+2],ke[Le+3]]}),ge=re.toDataURL("image/png")}Z.attr({"xlink:href":ge,height:z,width:E,x:T,y:C})});t._promises.push(Ce)})}});var WEe=ye((ovr,jEe)=>{"use strict";var PCt=qa();jEe.exports=function(t){PCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var KEe=ye((svr,YEe)=>{"use strict";var XEe=ef(),ZEe=Pr(),yD=ZEe.isArrayOrTypedArray,ICt=tA();YEe.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(XEe.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||XEe.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var l=Math.floor((r-i.x0)/a.dx),u=Math.floor(Math.abs(n-i.y0)/a.dy),c;if(a._hasZ?c=i.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=i.hi||a.hoverinfo,h;if(f){var d=f.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var v=ICt.colormodel[a.colormodel],m=v.colormodel||a.colormodel,b=m.length,p=a._scaler(c),k=v.suffix,M=[];(a.hovertemplate||h)&&(M.push("["+[p[0]+k[0],p[1]+k[1],p[2]+k[2]].join(", ")),b===4&&M.push(", "+p[3]+k[3]),M.push("]"),M=M.join(""),t.extraText=m.toUpperCase()+": "+M);var T;yD(a.hovertext)&&yD(a.hovertext[u])?T=a.hovertext[u][l]:yD(a.text)&&yD(a.text[u])&&(T=a.text[u][l]);var L=s.c2p(i.y0+(u+.5)*a.dy),x=i.x0+(l+.5)*a.dx,C=i.y0+(u+.5)*a.dy,S="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[ZEe.extendFlat(t,{index:[u,l],x0:o.c2p(i.x0+l*a.dx),x1:o.c2p(i.x0+(l+1)*a.dx),y0:L,y1:L,color:p,xVal:x,xLabelVal:x,yVal:C,yLabelVal:C,zLabelVal:S,text:T,hovertemplateLabels:{zLabel:S,colorLabel:M,"color[0]Label":p[0]+k[0],"color[1]Label":p[1]+k[1],"color[2]Label":p[2]+k[2],"color[3]Label":p[3]+k[3]}})]}}}});var $Ee=ye((lvr,JEe)=>{"use strict";JEe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var eke=ye((uvr,QEe)=>{"use strict";QEe.exports={attributes:yH(),supplyDefaults:K3e(),calc:UEe(),plot:HEe(),style:WEe(),hoverPoints:KEe(),eventData:$Ee(),moduleType:"trace",name:"image",basePlotModule:mh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var rke=ye((cvr,tke)=>{"use strict";tke.exports=eke()});var z2=ye((fvr,nke)=>{"use strict";var _D=Gl(),RCt=Cc().attributes,DCt=ec(),FCt=Ih(),{hovertemplateAttrs:zCt,texttemplateAttrs:qCt,templatefallbackAttrs:ike}=Ll(),$_=Ao().extendFlat,OCt=Pd().pattern,xD=DCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});nke.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:FCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:OCt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:$_({},_D.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:zCt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:ike(),texttemplate:qCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:ike({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:$_({},xD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:$_({},xD,{}),outsidetextfont:$_({},xD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:$_({},_D.showlegend,{arrayOk:!0}),legend:$_({},_D.legend,{arrayOk:!0}),legendrank:$_({},_D.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:$_({},xD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:RCt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var q2=ye((hvr,ske)=>{"use strict";var BCt=Eo(),qE=Pr(),NCt=z2(),UCt=Cc().defaults,VCt=i0().handleText,GCt=Pr().coercePattern;function ake(e,t){var r=qE.isArrayOrTypedArray(e),n=qE.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function oke(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");GCt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function HCt(e,t,r,n){function i(k,M){return qE.coerce(e,t,NCt,k,M)}var a=i("labels"),o=i("values"),s=ake(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!l){t.visible=!1;return}t._length=l,oke(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate");i("texttemplatefallback");var f;if(c||(f=i("textinfo",qE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||f&&f!=="none"){var h=i("textposition");VCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",v=d||h==="outside";v&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else f==="none"&&i("textposition","none");UCt(t,n,i);var m=i("hole"),b=i("title.text");if(b){var p=i("title.position",m?"middle center":"top center");!m&&p==="middle center"&&(t.title.position="top center"),qE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}ske.exports={handleLabelsAndValues:ake,handleMarkerDefaults:oke,supplyDefaults:HCt}});var bD=ye((dvr,lke)=>{"use strict";lke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var cke=ye((vvr,uke)=>{"use strict";var jCt=Pr(),WCt=bD();uke.exports=function(t,r){function n(i,a){return jCt.coerce(t,r,WCt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var CA=ye((pvr,dke)=>{"use strict";var XCt=Eo(),TW=fd(),ZCt=ka(),YCt={};function KCt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,c,f;if(t.dlabel)for(a=new Array(l),c=0;c=0});var T=t.type==="funnelarea"?m:t.sort;return T&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=v),r}function fke(e){return function(r,n){return!r||(r=TW(r),!r.isValid())?!1:(r=ZCt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function JCt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=hke(a,YCt));for(var s=0,l=0;l{"use strict";var $Ct=ip().appendArrayMultiPointValues;vke.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),$Ct(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var SD=ye((mvr,zke)=>{"use strict";var Fp=qa(),QCt=Mc(),wD=ef(),bke=ka(),Qy=So(),iv=Pr(),e6t=iv.strScale,gke=iv.strTranslate,AW=Zl(),wke=bv(),t6t=wke.recordMinTextSize,r6t=wke.clearMinTextSize,Tke=A_().TEXTPAD,ns=g_(),TD=pke(),mke=Pr().isValidTextValue;function i6t(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;r6t("pie",n),Mke(t,e),Rke(t,i);var a=iv.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Fp.select(this),l=o[0],u=l.trace;h6t(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=Fp.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(T,L){if(T.hidden){Fp.select(this).selectAll("path,g").remove();return}T.pointNumber=T.i,T.curveNumber=u.index,f[T.pxmid[1]<0?0:1][T.pxmid[0]<0?0:1].push(T);var x=l.cx,C=l.cy,S=Fp.select(this),g=S.selectAll("path.surface").data([T]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),S.call(Ake,e,o),u.pull){var P=+ns.castOption(u.pull,T.pts)||0;P>0&&(x+=P*T.pxmid[0],C+=P*T.pxmid[1])}T.cxFinal=x,T.cyFinal=C;function E(N,H,ie,ae){var _e=ae*(H[0]-N[0]),Ee=ae*(H[1]-N[1]);return"a"+ae*l.r+","+ae*l.r+" 0 "+T.largeArc+(ie?" 1 ":" 0 ")+_e+","+Ee}var z=u.hole;if(T.v===l.vTotal){var q="M"+(x+T.px0[0])+","+(C+T.px0[1])+E(T.px0,T.pxmid,!0,1)+E(T.pxmid,T.px0,!0,1)+"Z";z?g.attr("d","M"+(x+z*T.px0[0])+","+(C+z*T.px0[1])+E(T.px0,T.pxmid,!1,z)+E(T.pxmid,T.px0,!1,z)+"Z"+q):g.attr("d",q)}else{var V=E(T.px0,T.px1,!0,1);if(z){var G=1-z;g.attr("d","M"+(x+z*T.px1[0])+","+(C+z*T.px1[1])+E(T.px1,T.px0,!1,z)+"l"+G*T.px0[0]+","+G*T.px0[1]+V+"Z")}else g.attr("d","M"+x+","+C+"l"+T.px0[0]+","+T.px0[1]+V+"Z")}Dke(e,T,l);var Z=ns.castOption(u.textposition,T.pts),j=S.selectAll("g.slicetext").data(T.text&&Z!=="none"?[0]:[]);j.enter().append("g").classed("slicetext",!0),j.exit().remove(),j.each(function(){var N=iv.ensureSingle(Fp.select(this),"text","",function(re){re.attr("data-notex",1)}),H=iv.ensureUniformFontSize(e,Z==="outside"?a6t(u,T,n.font):Ske(u,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Qy.font,H).call(AW.convertToTspans,e);var ie=Qy.bBox(N.node()),ae;if(Z==="outside")ae=xke(ie,T);else if(ae=Eke(ie,T,l),Z==="auto"&&ae.scale<1){var _e=iv.ensureUniformFontSize(e,u.outsidetextfont);N.call(Qy.font,_e),ie=Qy.bBox(N.node()),ae=xke(ie,T)}var Ee=ae.textPosAngle,Ce=Ee===void 0?T.pxmid:AD(l.r,Ee);if(ae.targetX=x+Ce[0]*ae.rCenter+(ae.x||0),ae.targetY=C+Ce[1]*ae.rCenter+(ae.y||0),Fke(ae,ie),ae.outside){var ge=ae.targetY;T.yLabelMin=ge-ie.height/2,T.yLabelMid=ge,T.yLabelMax=ge+ie.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}ae.fontSize=H.size,t6t(u.type,ae,n),o[L].transform=ae,iv.setTransormAndDisplay(N,ae)})});var d=Fp.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var T=iv.ensureSingle(Fp.select(this),"text","",function(C){C.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=iv.templateString(L,u._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Qy.font,u.title.font).call(AW.convertToTspans,e);var x;u.title.position==="middle center"?x=l6t(l):x=Pke(l,i),T.attr("transform",gke(x.x,x.y)+e6t(Math.min(1,x.scale))+gke(x.tx,x.ty))}),h&&c6t(f,u),n6t(c,u),h&&u.automargin){var v=Qy.bBox(s.node()),m=u.domain,b=i.w*(m.x[1]-m.x[0]),p=i.h*(m.y[1]-m.y[0]),k=(.5*b-l.r)/i.w,M=(.5*p-l.r)/i.h;QCt.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-k,xr:m.x[1]+k,yb:m.y[0]-M,yt:m.y[1]+M,l:Math.max(l.cx-l.r-v.left,0),r:Math.max(v.right-(l.cx+l.r),0),b:Math.max(v.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-v.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Fp.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function n6t(e,t){e.each(function(r){var n=Fp.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,iv.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],c=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(c)?s+="l"+c*r.pxmid[0]/r.pxmid[1]+","+c+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(c-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;iv.ensureSingle(n,"path","textline").call(bke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function Ake(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,c=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var f=c.hoverinfo;if(Array.isArray(f)&&(f=wD.castHoverinfo({hoverinfo:[ns.castOption(f,l.pts)],_module:o._module},u,0)),f==="all"&&(f="label+text+value+percent+name"),c.hovertemplate||f!=="none"&&f!=="skip"&&f){var h=l.rInscribed||0,d=i+l.pxmid[0]*(1-h),v=a+l.pxmid[1]*(1-h),m=u.separators,b=[];if(f&&f.indexOf("label")!==-1&&b.push(l.label),l.text=ns.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var p=l.text;iv.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=ns.formatPieValue(l.v,m),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=ns.formatPiePercent(l.percent,m),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var k=c.hoverlabel,M=k.font,T=[];wD.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:v,_x0:s?i+l.TL[0]:d-h*n.r,_x1:s?i+l.TR[0]:d+h*n.r,_y0:s?a+l.TL[1]:v-h*n.r,_y1:s?a+l.BL[1]:v+h*n.r,text:b.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:ns.castOption(k.bgcolor,l.pts)||l.color,borderColor:ns.castOption(k.bordercolor,l.pts),fontFamily:ns.castOption(M.family,l.pts),fontSize:ns.castOption(M.size,l.pts),fontColor:ns.castOption(M.color,l.pts),nameLength:ns.castOption(k.namelength,l.pts),textAlign:ns.castOption(k.align,l.pts),hovertemplate:ns.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[TD(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:T}),l.bbox=T[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[TD(l,c)],event:Fp.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=Fp.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Fp.event,t.emit("plotly_unhover",{points:[TD(f,c)],event:Fp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(wD.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,c=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[TD(l,c)],wD.click(t,Fp.event))})}function a6t(e,t,r){var n=ns.castOption(e.outsidetextfont.color,t.pts)||ns.castOption(e.textfont.color,t.pts)||r.color,i=ns.castOption(e.outsidetextfont.family,t.pts)||ns.castOption(e.textfont.family,t.pts)||r.family,a=ns.castOption(e.outsidetextfont.size,t.pts)||ns.castOption(e.textfont.size,t.pts)||r.size,o=ns.castOption(e.outsidetextfont.weight,t.pts)||ns.castOption(e.textfont.weight,t.pts)||r.weight,s=ns.castOption(e.outsidetextfont.style,t.pts)||ns.castOption(e.textfont.style,t.pts)||r.style,l=ns.castOption(e.outsidetextfont.variant,t.pts)||ns.castOption(e.textfont.variant,t.pts)||r.variant,u=ns.castOption(e.outsidetextfont.textcase,t.pts)||ns.castOption(e.textfont.textcase,t.pts)||r.textcase,c=ns.castOption(e.outsidetextfont.lineposition,t.pts)||ns.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=ns.castOption(e.outsidetextfont.shadow,t.pts)||ns.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function Ske(e,t,r){var n=ns.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=ns.castOption(e._input.textfont.color,t.pts));var i=ns.castOption(e.insidetextfont.family,t.pts)||ns.castOption(e.textfont.family,t.pts)||r.family,a=ns.castOption(e.insidetextfont.size,t.pts)||ns.castOption(e.textfont.size,t.pts)||r.size,o=ns.castOption(e.insidetextfont.weight,t.pts)||ns.castOption(e.textfont.weight,t.pts)||r.weight,s=ns.castOption(e.insidetextfont.style,t.pts)||ns.castOption(e.textfont.style,t.pts)||r.style,l=ns.castOption(e.insidetextfont.variant,t.pts)||ns.castOption(e.textfont.variant,t.pts)||r.variant,u=ns.castOption(e.insidetextfont.textcase,t.pts)||ns.castOption(e.textfont.textcase,t.pts)||r.textcase,c=ns.castOption(e.insidetextfont.lineposition,t.pts)||ns.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=ns.castOption(e.insidetextfont.shadow,t.pts)||ns.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||bke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function Mke(e,t){for(var r,n,i=0;i=-4;k-=2)p(Math.PI*k,"tan");for(k=4;k>=-4;k-=2)p(Math.PI*(k+1),"tan")}if(f||d){for(k=4;k>=-4;k-=2)p(Math.PI*(k+1.5),"rad");for(k=4;k>=-4;k-=2)p(Math.PI*(k+.5),"rad")}}if(s||v||f){var M=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/M,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;m.push(b)}(v||d)&&(b=yke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,m.push(b)),(v||h)&&(b=_ke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,m.push(b));for(var T=0,L=0,x=0;x=1)break}return m[T]}function o6t(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function l6t(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Pke(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=Ike(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var l=u6t(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+i)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+i)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,n=SW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function u6t(e,t){return e/(t===void 0?1:t)}function SW(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function Ike(e){var t=e.pull;if(!t)return 0;var r;if(iv.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function c6t(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function m(M,T){return M.pxmid[1]-T.pxmid[1]}function b(M,T){return T.pxmid[1]-M.pxmid[1]}function p(M,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),x=n?M.yLabelMin:M.yLabelMax,C=n?M.yLabelMax:M.yLabelMin,S=M.cyFinal+o(M.px0[1],M.px1[1]),g=L-x,P,E,z,q,V,G;if(g*l>0&&(M.labelExtraY=g),!!iv.isArrayOrTypedArray(t.pull))for(E=0;E=(ns.castOption(t.pull,z.pts)||0))&&((M.pxmid[1]-z.pxmid[1])*l>0?(q=z.cyFinal+o(z.px0[1],z.px1[1]),g=q-x-M.labelExtraY,g*l>0&&(M.labelExtraY+=g)):(C+M.labelExtraY-S)*l>0&&(P=3*s*Math.abs(E-f.indexOf(M)),V=z.cxFinal+a(z.px0[0],z.px1[0]),G=V+P-(M.cxFinal+M.pxmid[0])-M.labelExtraX,G*s>0&&(M.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?m:b,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[n][r],u.sort(i),c=e[1-n][r],f=c.concat(u),d=[],h=0;h1?(u=r.r,c=u/i.aspectratio):(c=r.r,u=c*i.aspectratio),u*=(1+i.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(n=0;nt.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-n.hole,u.rInscribed=s6t(u,t))}function AD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Dke(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(T){return s.indexOf(T)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),d=n.separators,v;if(v=u?[t.label]:[],c){var m=ns.getFirstFilled(i.text,t.pts);mke(m)&&v.push(m)}f&&v.push(ns.formatPieValue(t.v,d)),h&&v.push(ns.formatPiePercent(t.v/r.vTotal,d)),t.text=v.join("
")}function b(T){return{label:T.label,value:T.v,valueLabel:ns.formatPieValue(T.v,n.separators),percent:T.v/r.vTotal,percentLabel:ns.formatPiePercent(T.v/r.vTotal,n.separators),color:T.color,text:T.text,customdata:iv.castOption(i,T.i,"customdata")}}if(a){var p=iv.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var k=b(t),M=ns.getFirstFilled(i.text,t.pts);(mke(M)||M==="")&&(k.text=M),t.text=iv.texttemplateString({data:[k,i._meta],fallback:i.texttemplatefallback,labels:k,locale:e._fullLayout._d3locale,template:p})}}}function Fke(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}zke.exports={plot:i6t,formatSliceLabel:Dke,transformInsideText:Eke,determineInsideTextFont:Ske,positionTitleOutside:Pke,prerenderTitles:Mke,layoutAreas:Rke,attachFxHandlers:Ake,computeTransform:Fke}});var Bke=ye((yvr,Oke)=>{"use strict";var qke=qa(),d6t=Y3(),v6t=bv().resizeText;Oke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");v6t(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=qke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){qke.select(this).call(d6t,s,a,t)})})}});var Uke=ye(LA=>{"use strict";var Nke=Mc();LA.name="pie";LA.plot=function(e,t,r,n){Nke.plotBasePlot(LA.name,e,t,r,n)};LA.clean=function(e,t,r,n){Nke.cleanBasePlot(LA.name,e,t,r,n)}});var Gke=ye((xvr,Vke)=>{"use strict";Vke.exports={attributes:z2(),supplyDefaults:q2().supplyDefaults,supplyLayoutDefaults:cke(),layoutAttributes:bD(),calc:CA().calc,crossTraceCalc:CA().crossTraceCalc,plot:SD().plot,style:Bke(),styleOne:Y3(),moduleType:"trace",name:"pie",basePlotModule:Uke(),categories:["pie-like","pie","showLegend"],meta:{}}});var jke=ye((bvr,Hke)=>{"use strict";Hke.exports=Gke()});var Xke=ye(PA=>{"use strict";var Wke=Mc();PA.name="sunburst";PA.plot=function(e,t,r,n){Wke.plotBasePlot(PA.name,e,t,r,n)};PA.clean=function(e,t,r,n){Wke.cleanBasePlot(PA.name,e,t,r,n)}});var MW=ye((Tvr,Zke)=>{"use strict";Zke.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var BE=ye((Avr,Jke)=>{"use strict";var p6t=Gl(),{hovertemplateAttrs:g6t,texttemplateAttrs:m6t,templatefallbackAttrs:Yke}=Ll(),y6t=Tu(),_6t=Cc().attributes,e1=z2(),Kke=MW(),OE=Ao().extendFlat,x6t=Pd().pattern;Jke.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:OE({colors:{valType:"data_array",editType:"calc"},line:{color:OE({},e1.marker.line.color,{dflt:null}),width:OE({},e1.marker.line.width,{dflt:1}),editType:"calc"},pattern:x6t,editType:"calc"},y6t("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:e1.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:m6t({editType:"plot"},{keys:Kke.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Yke({editType:"plot"}),hovertext:e1.hovertext,hoverinfo:OE({},p6t.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:g6t({},{keys:Kke.eventDataKeys}),hovertemplatefallback:Yke(),textfont:e1.textfont,insidetextorientation:e1.insidetextorientation,insidetextfont:e1.insidetextfont,outsidetextfont:OE({},e1.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:e1.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:_6t({name:"sunburst",trace:!0,editType:"calc"})}});var EW=ye((Svr,$ke)=>{"use strict";$ke.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var rCe=ye((Mvr,tCe)=>{"use strict";var Qke=Pr(),b6t=BE(),w6t=Cc().defaults,T6t=i0().handleText,A6t=q2().handleMarkerDefaults,eCe=tc(),S6t=eCe.hasColorscale,M6t=eCe.handleDefaults;tCe.exports=function(t,r,n,i){function a(h,d){return Qke.coerce(t,r,b6t,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),A6t(t,r,i,a);var u=r._hasColorscale=S6t(t,"marker","colors")||(t.marker||{}).coloraxis;u&&M6t(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",Qke.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f="auto";T6t(t,r,i,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),w6t(r,i,a),r._length=null}});var nCe=ye((Evr,iCe)=>{"use strict";var E6t=Pr(),k6t=EW();iCe.exports=function(t,r){function n(i,a){return E6t.coerce(t,r,k6t,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var NE=ye((MD,aCe)=>{(function(e,t){typeof MD=="object"&&typeof aCe!="undefined"?t(MD):(e=e||self,t(e.d3=e.d3||{}))})(MD,function(e){"use strict";function t(We,et){return We.parent===et.parent?1:2}function r(We){return We.reduce(n,0)/We.length}function n(We,et){return We+et.x}function i(We){return 1+We.reduce(a,0)}function a(We,et){return Math.max(We,et.y)}function o(We){for(var et;et=We.children;)We=et[0];return We}function s(We){for(var et;et=We.children;)We=et[et.length-1];return We}function l(){var We=t,et=1,xt=1,At=!1;function Kt(Qt){var Mr,Gr=0;Qt.eachAfter(function(ai){var mi=ai.children;mi?(ai.x=r(mi),ai.y=i(mi)):(ai.x=Mr?Gr+=We(ai,Mr):0,ai.y=0,Mr=ai)});var Ir=o(Qt),Yr=s(Qt),_i=Ir.x-We(Ir,Yr)/2,Pi=Yr.x+We(Yr,Ir)/2;return Qt.eachAfter(At?function(ai){ai.x=(ai.x-Qt.x)*et,ai.y=(Qt.y-ai.y)*xt}:function(ai){ai.x=(ai.x-_i)/(Pi-_i)*et,ai.y=(1-(Qt.y?ai.y/Qt.y:1))*xt})}return Kt.separation=function(Qt){return arguments.length?(We=Qt,Kt):We},Kt.size=function(Qt){return arguments.length?(At=!1,et=+Qt[0],xt=+Qt[1],Kt):At?null:[et,xt]},Kt.nodeSize=function(Qt){return arguments.length?(At=!0,et=+Qt[0],xt=+Qt[1],Kt):At?[et,xt]:null},Kt}function u(We){var et=0,xt=We.children,At=xt&&xt.length;if(!At)et=1;else for(;--At>=0;)et+=xt[At].value;We.value=et}function c(){return this.eachAfter(u)}function f(We){var et=this,xt,At=[et],Kt,Qt,Mr;do for(xt=At.reverse(),At=[];et=xt.pop();)if(We(et),Kt=et.children,Kt)for(Qt=0,Mr=Kt.length;Qt=0;--Kt)xt.push(At[Kt]);return this}function d(We){for(var et=this,xt=[et],At=[],Kt,Qt,Mr;et=xt.pop();)if(At.push(et),Kt=et.children,Kt)for(Qt=0,Mr=Kt.length;Qt=0;)xt+=At[Kt].value;et.value=xt})}function m(We){return this.eachBefore(function(et){et.children&&et.children.sort(We)})}function b(We){for(var et=this,xt=p(et,We),At=[et];et!==xt;)et=et.parent,At.push(et);for(var Kt=At.length;We!==xt;)At.splice(Kt,0,We),We=We.parent;return At}function p(We,et){if(We===et)return We;var xt=We.ancestors(),At=et.ancestors(),Kt=null;for(We=xt.pop(),et=At.pop();We===et;)Kt=We,We=xt.pop(),et=At.pop();return Kt}function k(){for(var We=this,et=[We];We=We.parent;)et.push(We);return et}function M(){var We=[];return this.each(function(et){We.push(et)}),We}function T(){var We=[];return this.eachBefore(function(et){et.children||We.push(et)}),We}function L(){var We=this,et=[];return We.each(function(xt){xt!==We&&et.push({source:xt.parent,target:xt})}),et}function x(We,et){var xt=new E(We),At=+We.value&&(xt.value=We.value),Kt,Qt=[xt],Mr,Gr,Ir,Yr;for(et==null&&(et=S);Kt=Qt.pop();)if(At&&(Kt.value=+Kt.data.value),(Gr=et(Kt.data))&&(Yr=Gr.length))for(Kt.children=new Array(Yr),Ir=Yr-1;Ir>=0;--Ir)Qt.push(Mr=Kt.children[Ir]=new E(Gr[Ir])),Mr.parent=Kt,Mr.depth=Kt.depth+1;return xt.eachBefore(P)}function C(){return x(this).eachBefore(g)}function S(We){return We.children}function g(We){We.data=We.data.data}function P(We){var et=0;do We.height=et;while((We=We.parent)&&We.height<++et)}function E(We){this.data=We,this.depth=this.height=0,this.parent=null}E.prototype=x.prototype={constructor:E,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:m,path:b,ancestors:k,descendants:M,leaves:T,links:L,copy:C};var z=Array.prototype.slice;function q(We){for(var et=We.length,xt,At;et;)At=Math.random()*et--|0,xt=We[et],We[et]=We[At],We[At]=xt;return We}function V(We){for(var et=0,xt=(We=q(z.call(We))).length,At=[],Kt,Qt;et0&&xt*xt>At*At+Kt*Kt}function N(We,et){for(var xt=0;xtIr?(Kt=(Yr+Ir-Qt)/(2*Yr),Gr=Math.sqrt(Math.max(0,Ir/Yr-Kt*Kt)),xt.x=We.x-Kt*At-Gr*Mr,xt.y=We.y-Kt*Mr+Gr*At):(Kt=(Yr+Qt-Ir)/(2*Yr),Gr=Math.sqrt(Math.max(0,Qt/Yr-Kt*Kt)),xt.x=et.x+Kt*At-Gr*Mr,xt.y=et.y+Kt*Mr+Gr*At)):(xt.x=et.x+xt.r,xt.y=et.y)}function Ce(We,et){var xt=We.r+et.r-1e-6,At=et.x-We.x,Kt=et.y-We.y;return xt>0&&xt*xt>At*At+Kt*Kt}function ge(We){var et=We._,xt=We.next._,At=et.r+xt.r,Kt=(et.x*xt.r+xt.x*et.r)/At,Qt=(et.y*xt.r+xt.y*et.r)/At;return Kt*Kt+Qt*Qt}function re(We){this._=We,this.next=null,this.previous=null}function Se(We){if(!(Kt=We.length))return 0;var et,xt,At,Kt,Qt,Mr,Gr,Ir,Yr,_i,Pi;if(et=We[0],et.x=0,et.y=0,!(Kt>1))return et.r;if(xt=We[1],et.x=-xt.r,xt.x=et.r,xt.y=0,!(Kt>2))return et.r+xt.r;Ee(xt,et,At=We[2]),et=new re(et),xt=new re(xt),At=new re(At),et.next=At.previous=xt,xt.next=et.previous=At,At.next=xt.previous=et;e:for(Gr=3;Gr0)throw new Error("cycle");return Gr}return xt.id=function(At){return arguments.length?(We=Be(At),xt):We},xt.parentId=function(At){return arguments.length?(et=Be(At),xt):et},xt}function Ae(We,et){return We.parent===et.parent?1:2}function rt(We){var et=We.children;return et?et[0]:We.t}function St(We){var et=We.children;return et?et[et.length-1]:We.t}function Tt(We,et,xt){var At=xt/(et.i-We.i);et.c-=At,et.s+=xt,We.c+=At,et.z+=xt,et.m+=xt}function dt(We){for(var et=0,xt=0,At=We.children,Kt=At.length,Qt;--Kt>=0;)Qt=At[Kt],Qt.z+=et,Qt.m+=et,et+=Qt.s+(xt+=Qt.c)}function Et(We,et,xt){return We.a.parent===et.parent?We.a:xt}function pt(We,et){this._=We,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=et}pt.prototype=Object.create(E.prototype);function jt(We){for(var et=new pt(We,0),xt,At=[et],Kt,Qt,Mr,Gr;xt=At.pop();)if(Qt=xt._.children)for(xt.children=new Array(Gr=Qt.length),Mr=Gr-1;Mr>=0;--Mr)At.push(Kt=xt.children[Mr]=new pt(Qt[Mr],Mr)),Kt.parent=xt;return(et.parent=new pt(null,0)).children=[et],et}function or(){var We=Ae,et=1,xt=1,At=null;function Kt(Yr){var _i=jt(Yr);if(_i.eachAfter(Qt),_i.parent.m=-_i.z,_i.eachBefore(Mr),At)Yr.eachBefore(Ir);else{var Pi=Yr,ai=Yr,mi=Yr;Yr.eachBefore(function(Qn){Qn.xai.x&&(ai=Qn),Qn.depth>mi.depth&&(mi=Qn)});var un=Pi===ai?1:We(Pi,ai)/2,Fn=un-Pi.x,An=et/(ai.x+un+Fn),Hn=xt/(mi.depth||1);Yr.eachBefore(function(Qn){Qn.x=(Qn.x+Fn)*An,Qn.y=Qn.depth*Hn})}return Yr}function Qt(Yr){var _i=Yr.children,Pi=Yr.parent.children,ai=Yr.i?Pi[Yr.i-1]:null;if(_i){dt(Yr);var mi=(_i[0].z+_i[_i.length-1].z)/2;ai?(Yr.z=ai.z+We(Yr._,ai._),Yr.m=Yr.z-mi):Yr.z=mi}else ai&&(Yr.z=ai.z+We(Yr._,ai._));Yr.parent.A=Gr(Yr,ai,Yr.parent.A||Pi[0])}function Mr(Yr){Yr._.x=Yr.z+Yr.parent.m,Yr.m+=Yr.parent.m}function Gr(Yr,_i,Pi){if(_i){for(var ai=Yr,mi=Yr,un=_i,Fn=ai.parent.children[0],An=ai.m,Hn=mi.m,Qn=un.m,Vi=Fn.m,Kn;un=St(un),ai=rt(ai),un&&ai;)Fn=rt(Fn),mi=St(mi),mi.a=Yr,Kn=un.z+Qn-ai.z-An+We(un._,ai._),Kn>0&&(Tt(Et(un,Yr,Pi),Yr,Kn),An+=Kn,Hn+=Kn),Qn+=un.m,An+=ai.m,Vi+=Fn.m,Hn+=mi.m;un&&!St(mi)&&(mi.t=un,mi.m+=Qn-Hn),ai&&!rt(Fn)&&(Fn.t=ai,Fn.m+=An-Vi,Pi=Yr)}return Pi}function Ir(Yr){Yr.x*=et,Yr.y=Yr.depth*xt}return Kt.separation=function(Yr){return arguments.length?(We=Yr,Kt):We},Kt.size=function(Yr){return arguments.length?(At=!1,et=+Yr[0],xt=+Yr[1],Kt):At?null:[et,xt]},Kt.nodeSize=function(Yr){return arguments.length?(At=!0,et=+Yr[0],xt=+Yr[1],Kt):At?[et,xt]:null},Kt}function mr(We,et,xt,At,Kt){for(var Qt=We.children,Mr,Gr=-1,Ir=Qt.length,Yr=We.value&&(Kt-xt)/We.value;++GrQn&&(Qn=Yr),Gt=An*An*Jn,Vi=Math.max(Qn/Gt,Gt/Hn),Vi>Kn){An-=Yr;break}Kn=Vi}Mr.push(Ir={value:An,dice:mi1?At:1)},xt}(Ar);function jr(){var We=qr,et=!1,xt=1,At=1,Kt=[0],Qt=Le,Mr=Le,Gr=Le,Ir=Le,Yr=Le;function _i(ai){return ai.x0=ai.y0=0,ai.x1=xt,ai.y1=At,ai.eachBefore(Pi),Kt=[0],et&&ai.eachBefore(Ht),ai}function Pi(ai){var mi=Kt[ai.depth],un=ai.x0+mi,Fn=ai.y0+mi,An=ai.x1-mi,Hn=ai.y1-mi;An=ai-1){var Qn=Qt[Pi];Qn.x0=un,Qn.y0=Fn,Qn.x1=An,Qn.y1=Hn;return}for(var Vi=Yr[Pi],Kn=mi/2+Vi,Jn=Pi+1,Gt=ai-1;Jn>>1;Yr[wt]Hn-Fn){var wr=(un*ir+An*tr)/mi;_i(Pi,Jn,tr,un,Fn,wr,Hn),_i(Jn,ai,ir,wr,Fn,An,Hn)}else{var Xr=(Fn*ir+Hn*tr)/mi;_i(Pi,Jn,tr,un,Fn,An,Xr),_i(Jn,ai,ir,un,Xr,An,Hn)}}}function Ge(We,et,xt,At,Kt){(We.depth&1?mr:at)(We,et,xt,At,Kt)}var Je=function We(et){function xt(At,Kt,Qt,Mr,Gr){if((Ir=At._squarify)&&Ir.ratio===et)for(var Ir,Yr,_i,Pi,ai=-1,mi,un=Ir.length,Fn=At.value;++ai1?At:1)},xt}(Ar);e.cluster=l,e.hierarchy=x,e.pack=ce,e.packEnclose=V,e.packSiblings=ke,e.partition=ct,e.stratify=Ue,e.tree=or,e.treemap=jr,e.treemapBinary=gt,e.treemapDice=at,e.treemapResquarify=Je,e.treemapSlice=mr,e.treemapSliceDice=Ge,e.treemapSquarify=qr,Object.defineProperty(e,"__esModule",{value:!0})})});var VE=ye(UE=>{"use strict";var oCe=NE(),C6t=Eo(),IA=Pr(),L6t=tc().makeColorScaleFuncFromTrace,P6t=CA().makePullColorFn,I6t=CA().generateExtendedColors,R6t=tc().calc,D6t=fs().ALMOST_EQUAL,F6t={},z6t={},q6t={};UE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=IA.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=IA.isArrayOrTypedArray(s),u=[],c={},f={},h=function(j,N){c[j]?c[j].push(N):c[j]=[N],f[N]=1},d=function(j){return j||typeof j=="number"},v=function(j){return!l||C6t(s[j])&&s[j]>=0},m,b,p;i?(m=Math.min(n.length,o.length),b=function(j){return d(n[j])&&v(j)},p=function(j){return String(n[j])}):(m=Math.min(a.length,o.length),b=function(j){return d(a[j])&&v(j)},p=function(j){return String(a[j])}),l&&(m=Math.min(m,s.length));for(var k=0;k1){for(var S=IA.randstr(),g=0;g{"use strict";var nCt=rc().str2arr,aCt=rc().sliceEq,wEe=rc().readUInt32BE,oCt=nCt("8BPS\0");TEe.exports=function(e){if(!(e.length<22)&&aCt(e,0,oCt))return{width:wEe(e,18),height:wEe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var EEe=ye((gvr,MEe)=>{"use strict";function sCt(e){return e===32||e===9||e===13||e===10}function LA(e){return typeof e=="number"&&isFinite(e)&&e>0}function lCt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,cCt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,fCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,hCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,dCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,SEe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function vCt(e){var t=e.match(fCt),r=e.match(hCt),n=e.match(dCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Zm(e){return SEe.test(e)?e.match(SEe)[0]:"px"}MEe.exports=function(e){if(lCt(e)){for(var t="",r=0;r{"use strict";var LEe=rc().str2arr,kEe=rc().sliceEq,pCt=rc().readUInt16LE,gCt=rc().readUInt16BE,mCt=rc().readUInt32LE,yCt=rc().readUInt32BE,_Ct=LEe("II*\0"),xCt=LEe("MM\0*");function yD(e,t,r){return r?gCt(e,t):pCt(e,t)}function bW(e,t,r){return r?yCt(e,t):mCt(e,t)}function CEe(e,t,r){var n=yD(e,t+2,r),i=bW(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?yD(e,t+8,r):bW(e,t+8,r)}PEe.exports=function(e){if(!(e.length<8)&&!(!kEe(e,0,_Ct)&&!kEe(e,0,xCt))){var t=e[0]===77,r=bW(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=yD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var FEe=rc().str2arr,REe=rc().sliceEq,DEe=rc().readUInt16LE,wW=rc().readUInt32LE,bCt=gD(),wCt=FEe("RIFF"),TCt=FEe("WEBP");function ACt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:DEe(e,t+6)&16383,height:DEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function SCt(e,t){if(e[t]===47){var r=wW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function MCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||ACt(e,t+8):a==="VP8L"&&o>=9?r=r||SCt(e,t+8):a==="VP8X"&&o>=10?r=r||MCt(e,t+8):a==="EXIF"&&(n=bCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var BEe=ye((_vr,OEe)=>{"use strict";OEe.exports={avif:iEe(),bmp:oEe(),gif:fEe(),ico:vEe(),jpeg:gEe(),png:bEe(),psd:AEe(),svg:EEe(),tiff:IEe(),webp:qEe()}});var NEe=ye((xvr,AW)=>{"use strict";var TW=BEe();function ECt(e){for(var t=Object.keys(TW),r=0;r{"use strict";var kCt=NEe(),CCt=Oy().IMAGE_URL_PREFIX,LCt=w2().Buffer;UEe.getImageSize=function(e){var t=e.replace(CCt,""),r=new LCt(t,"base64");return kCt(r)}});var jEe=ye((wvr,HEe)=>{"use strict";var GEe=Pr(),PCt=iA(),ICt=Eo(),_D=ho(),RCt=Pr().maxRowLength,DCt=VEe().getImageSize;HEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=RCt(r.z);else if(r._hasSource){var a=DCt(r.source);n=a.height,i=a.width}var o=_D.getFromId(t,r.xaxis||"x"),s=_D.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,c,f=[l,l+i*r.dx],h=[u,u+n*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var OCt=Fa(),z2=Pr(),WEe=z2.strTranslate,BCt=Wp(),NCt=iA(),UCt=cG(),VCt=_8().STYLE;XEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&UCt();z2.makeTraceGroups(i,n,"im").each(function(l){var u=OCt.select(this),c=l[0],f=c.trace,h=(f.zsmooth==="fast"||f.zsmooth===!1&&s)&&!f._hasZ&&f._hasSource&&a.type==="linear"&&o.type==="linear";f._realImage=h;var d=c.z,v=c.x0,m=c.y0,b=c.w,p=c.h,k=f.dx,M=f.dy,T,L,x,C,S,g;for(g=0;T===void 0&&g0;)L=a.c2p(v+g*k),g--;for(g=0;C===void 0&&g0;)S=o.c2p(m+g*M),g--;if(LH[0];if(re||ae){var _e=T+E/2,Ee=C+z/2;j+="transform:"+WEe(_e+"px",Ee+"px")+"scale("+(re?-1:1)+","+(ae?-1:1)+")"+WEe(-_e+"px",-Ee+"px")+";"}}Z.attr("style",j);var Ce=new Promise(function(ge){if(f._hasZ)ge();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===b&&f._canvas.el.height===p&&f._canvas.source===f.source)ge();else{var ie=document.createElement("canvas");ie.width=b,ie.height=p;var Se=ie.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var ke=f._image;ke.onload=function(){Se.drawImage(ke,0,0),f._canvas={el:ie,source:f.source},ge()},ke.setAttribute("src",f.source)}}).then(function(){var ge,ie;if(f._hasZ)ie=G(function(be,Be){var Le=d[Be][be];return z2.isTypedArray(Le)&&(Le=Array.from(Le)),Le}),ge=ie.toDataURL("image/png");else if(f._hasSource)if(h)ge=f.source;else{var Se=f._canvas.el.getContext("2d",{willReadFrequently:!0}),ke=Se.getImageData(0,0,b,p).data;ie=G(function(be,Be){var Le=4*(Be*b+be);return[ke[Le],ke[Le+1],ke[Le+2],ke[Le+3]]}),ge=ie.toDataURL("image/png")}Z.attr({"xlink:href":ge,height:z,width:E,x:T,y:C})});t._promises.push(Ce)})}});var KEe=ye((Avr,YEe)=>{"use strict";var GCt=Fa();YEe.exports=function(t){GCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var eke=ye((Svr,QEe)=>{"use strict";var JEe=ef(),$Ee=Pr(),xD=$Ee.isArrayOrTypedArray,HCt=iA();QEe.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(JEe.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||JEe.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var l=Math.floor((r-i.x0)/a.dx),u=Math.floor(Math.abs(n-i.y0)/a.dy),c;if(a._hasZ?c=i.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=i.hi||a.hoverinfo,h;if(f){var d=f.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var v=HCt.colormodel[a.colormodel],m=v.colormodel||a.colormodel,b=m.length,p=a._scaler(c),k=v.suffix,M=[];(a.hovertemplate||h)&&(M.push("["+[p[0]+k[0],p[1]+k[1],p[2]+k[2]].join(", ")),b===4&&M.push(", "+p[3]+k[3]),M.push("]"),M=M.join(""),t.extraText=m.toUpperCase()+": "+M);var T;xD(a.hovertext)&&xD(a.hovertext[u])?T=a.hovertext[u][l]:xD(a.text)&&xD(a.text[u])&&(T=a.text[u][l]);var L=s.c2p(i.y0+(u+.5)*a.dy),x=i.x0+(l+.5)*a.dx,C=i.y0+(u+.5)*a.dy,S="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[$Ee.extendFlat(t,{index:[u,l],x0:o.c2p(i.x0+l*a.dx),x1:o.c2p(i.x0+(l+1)*a.dx),y0:L,y1:L,color:p,xVal:x,xLabelVal:x,yVal:C,yLabelVal:C,zLabelVal:S,text:T,hovertemplateLabels:{zLabel:S,colorLabel:M,"color[0]Label":p[0]+k[0],"color[1]Label":p[1]+k[1],"color[2]Label":p[2]+k[2],"color[3]Label":p[3]+k[3]}})]}}}});var rke=ye((Mvr,tke)=>{"use strict";tke.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var nke=ye((Evr,ike)=>{"use strict";ike.exports={attributes:xH(),supplyDefaults:eTe(),calc:jEe(),plot:ZEe(),style:KEe(),hoverPoints:eke(),eventData:rke(),moduleType:"trace",name:"image",basePlotModule:mh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var oke=ye((kvr,ake)=>{"use strict";ake.exports=nke()});var q2=ye((Cvr,lke)=>{"use strict";var bD=Vl(),jCt=Cc().attributes,WCt=ec(),XCt=Ih(),{hovertemplateAttrs:ZCt,texttemplateAttrs:YCt,templatefallbackAttrs:ske}=Pl(),Q_=Ao().extendFlat,KCt=Pd().pattern,wD=WCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});lke.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:XCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:KCt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Q_({},bD.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:ZCt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:ske(),texttemplate:YCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:ske({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Q_({},wD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Q_({},wD,{}),outsidetextfont:Q_({},wD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Q_({},bD.showlegend,{arrayOk:!0}),legend:Q_({},bD.legend,{arrayOk:!0}),legendrank:Q_({},bD.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Q_({},wD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:jCt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var O2=ye((Lvr,fke)=>{"use strict";var JCt=Eo(),BE=Pr(),$Ct=q2(),QCt=Cc().defaults,e6t=i0().handleText,t6t=Pr().coercePattern;function uke(e,t){var r=BE.isArrayOrTypedArray(e),n=BE.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function cke(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");t6t(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function r6t(e,t,r,n){function i(k,M){return BE.coerce(e,t,$Ct,k,M)}var a=i("labels"),o=i("values"),s=uke(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!l){t.visible=!1;return}t._length=l,cke(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate");i("texttemplatefallback");var f;if(c||(f=i("textinfo",BE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||f&&f!=="none"){var h=i("textposition");e6t(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",v=d||h==="outside";v&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else f==="none"&&i("textposition","none");QCt(t,n,i);var m=i("hole"),b=i("title.text");if(b){var p=i("title.position",m?"middle center":"top center");!m&&p==="middle center"&&(t.title.position="top center"),BE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}fke.exports={handleLabelsAndValues:uke,handleMarkerDefaults:cke,supplyDefaults:r6t}});var TD=ye((Pvr,hke)=>{"use strict";hke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var vke=ye((Ivr,dke)=>{"use strict";var i6t=Pr(),n6t=TD();dke.exports=function(t,r){function n(i,a){return i6t.coerce(t,r,n6t,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var PA=ye((Rvr,mke)=>{"use strict";var a6t=Eo(),SW=fd(),o6t=ka(),s6t={};function l6t(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,c,f;if(t.dlabel)for(a=new Array(l),c=0;c=0});var T=t.type==="funnelarea"?m:t.sort;return T&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=v),r}function pke(e){return function(r,n){return!r||(r=SW(r),!r.isValid())?!1:(r=o6t.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function u6t(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=gke(a,s6t));for(var s=0,l=0;l{"use strict";var c6t=ip().appendArrayMultiPointValues;yke.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),c6t(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var ED=ye((Fvr,Nke)=>{"use strict";var Fp=Fa(),f6t=Mc(),AD=ef(),Ske=ka(),e1=So(),iv=Pr(),h6t=iv.strScale,xke=iv.strTranslate,MW=Zl(),Mke=bv(),d6t=Mke.recordMinTextSize,v6t=Mke.clearMinTextSize,Eke=S_().TEXTPAD,ns=m_(),SD=_ke(),bke=Pr().isValidTextValue;function p6t(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;v6t("pie",n),Lke(t,e),qke(t,i);var a=iv.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Fp.select(this),l=o[0],u=l.trace;A6t(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=Fp.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(T,L){if(T.hidden){Fp.select(this).selectAll("path,g").remove();return}T.pointNumber=T.i,T.curveNumber=u.index,f[T.pxmid[1]<0?0:1][T.pxmid[0]<0?0:1].push(T);var x=l.cx,C=l.cy,S=Fp.select(this),g=S.selectAll("path.surface").data([T]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),S.call(kke,e,o),u.pull){var P=+ns.castOption(u.pull,T.pts)||0;P>0&&(x+=P*T.pxmid[0],C+=P*T.pxmid[1])}T.cxFinal=x,T.cyFinal=C;function E(N,H,re,ae){var _e=ae*(H[0]-N[0]),Ee=ae*(H[1]-N[1]);return"a"+ae*l.r+","+ae*l.r+" 0 "+T.largeArc+(re?" 1 ":" 0 ")+_e+","+Ee}var z=u.hole;if(T.v===l.vTotal){var q="M"+(x+T.px0[0])+","+(C+T.px0[1])+E(T.px0,T.pxmid,!0,1)+E(T.pxmid,T.px0,!0,1)+"Z";z?g.attr("d","M"+(x+z*T.px0[0])+","+(C+z*T.px0[1])+E(T.px0,T.pxmid,!1,z)+E(T.pxmid,T.px0,!1,z)+"Z"+q):g.attr("d",q)}else{var V=E(T.px0,T.px1,!0,1);if(z){var G=1-z;g.attr("d","M"+(x+z*T.px1[0])+","+(C+z*T.px1[1])+E(T.px1,T.px0,!1,z)+"l"+G*T.px0[0]+","+G*T.px0[1]+V+"Z")}else g.attr("d","M"+x+","+C+"l"+T.px0[0]+","+T.px0[1]+V+"Z")}Oke(e,T,l);var Z=ns.castOption(u.textposition,T.pts),j=S.selectAll("g.slicetext").data(T.text&&Z!=="none"?[0]:[]);j.enter().append("g").classed("slicetext",!0),j.exit().remove(),j.each(function(){var N=iv.ensureSingle(Fp.select(this),"text","",function(ie){ie.attr("data-notex",1)}),H=iv.ensureUniformFontSize(e,Z==="outside"?m6t(u,T,n.font):Cke(u,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(e1.font,H).call(MW.convertToTspans,e);var re=e1.bBox(N.node()),ae;if(Z==="outside")ae=Ake(re,T);else if(ae=Pke(re,T,l),Z==="auto"&&ae.scale<1){var _e=iv.ensureUniformFontSize(e,u.outsidetextfont);N.call(e1.font,_e),re=e1.bBox(N.node()),ae=Ake(re,T)}var Ee=ae.textPosAngle,Ce=Ee===void 0?T.pxmid:MD(l.r,Ee);if(ae.targetX=x+Ce[0]*ae.rCenter+(ae.x||0),ae.targetY=C+Ce[1]*ae.rCenter+(ae.y||0),Bke(ae,re),ae.outside){var ge=ae.targetY;T.yLabelMin=ge-re.height/2,T.yLabelMid=ge,T.yLabelMax=ge+re.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}ae.fontSize=H.size,d6t(u.type,ae,n),o[L].transform=ae,iv.setTransormAndDisplay(N,ae)})});var d=Fp.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var T=iv.ensureSingle(Fp.select(this),"text","",function(C){C.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=iv.templateString(L,u._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(e1.font,u.title.font).call(MW.convertToTspans,e);var x;u.title.position==="middle center"?x=x6t(l):x=Fke(l,i),T.attr("transform",xke(x.x,x.y)+h6t(Math.min(1,x.scale))+xke(x.tx,x.ty))}),h&&w6t(f,u),g6t(c,u),h&&u.automargin){var v=e1.bBox(s.node()),m=u.domain,b=i.w*(m.x[1]-m.x[0]),p=i.h*(m.y[1]-m.y[0]),k=(.5*b-l.r)/i.w,M=(.5*p-l.r)/i.h;f6t.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-k,xr:m.x[1]+k,yb:m.y[0]-M,yt:m.y[1]+M,l:Math.max(l.cx-l.r-v.left,0),r:Math.max(v.right-(l.cx+l.r),0),b:Math.max(v.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-v.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Fp.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function g6t(e,t){e.each(function(r){var n=Fp.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,iv.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],c=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(c)?s+="l"+c*r.pxmid[0]/r.pxmid[1]+","+c+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(c-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;iv.ensureSingle(n,"path","textline").call(Ske.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function kke(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,c=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var f=c.hoverinfo;if(Array.isArray(f)&&(f=AD.castHoverinfo({hoverinfo:[ns.castOption(f,l.pts)],_module:o._module},u,0)),f==="all"&&(f="label+text+value+percent+name"),c.hovertemplate||f!=="none"&&f!=="skip"&&f){var h=l.rInscribed||0,d=i+l.pxmid[0]*(1-h),v=a+l.pxmid[1]*(1-h),m=u.separators,b=[];if(f&&f.indexOf("label")!==-1&&b.push(l.label),l.text=ns.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var p=l.text;iv.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=ns.formatPieValue(l.v,m),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=ns.formatPiePercent(l.percent,m),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var k=c.hoverlabel,M=k.font,T=[];AD.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:v,_x0:s?i+l.TL[0]:d-h*n.r,_x1:s?i+l.TR[0]:d+h*n.r,_y0:s?a+l.TL[1]:v-h*n.r,_y1:s?a+l.BL[1]:v+h*n.r,text:b.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:ns.castOption(k.bgcolor,l.pts)||l.color,borderColor:ns.castOption(k.bordercolor,l.pts),fontFamily:ns.castOption(M.family,l.pts),fontSize:ns.castOption(M.size,l.pts),fontColor:ns.castOption(M.color,l.pts),nameLength:ns.castOption(k.namelength,l.pts),textAlign:ns.castOption(k.align,l.pts),hovertemplate:ns.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[SD(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:T}),l.bbox=T[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[SD(l,c)],event:Fp.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=Fp.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Fp.event,t.emit("plotly_unhover",{points:[SD(f,c)],event:Fp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(AD.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,c=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[SD(l,c)],AD.click(t,Fp.event))})}function m6t(e,t,r){var n=ns.castOption(e.outsidetextfont.color,t.pts)||ns.castOption(e.textfont.color,t.pts)||r.color,i=ns.castOption(e.outsidetextfont.family,t.pts)||ns.castOption(e.textfont.family,t.pts)||r.family,a=ns.castOption(e.outsidetextfont.size,t.pts)||ns.castOption(e.textfont.size,t.pts)||r.size,o=ns.castOption(e.outsidetextfont.weight,t.pts)||ns.castOption(e.textfont.weight,t.pts)||r.weight,s=ns.castOption(e.outsidetextfont.style,t.pts)||ns.castOption(e.textfont.style,t.pts)||r.style,l=ns.castOption(e.outsidetextfont.variant,t.pts)||ns.castOption(e.textfont.variant,t.pts)||r.variant,u=ns.castOption(e.outsidetextfont.textcase,t.pts)||ns.castOption(e.textfont.textcase,t.pts)||r.textcase,c=ns.castOption(e.outsidetextfont.lineposition,t.pts)||ns.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=ns.castOption(e.outsidetextfont.shadow,t.pts)||ns.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function Cke(e,t,r){var n=ns.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=ns.castOption(e._input.textfont.color,t.pts));var i=ns.castOption(e.insidetextfont.family,t.pts)||ns.castOption(e.textfont.family,t.pts)||r.family,a=ns.castOption(e.insidetextfont.size,t.pts)||ns.castOption(e.textfont.size,t.pts)||r.size,o=ns.castOption(e.insidetextfont.weight,t.pts)||ns.castOption(e.textfont.weight,t.pts)||r.weight,s=ns.castOption(e.insidetextfont.style,t.pts)||ns.castOption(e.textfont.style,t.pts)||r.style,l=ns.castOption(e.insidetextfont.variant,t.pts)||ns.castOption(e.textfont.variant,t.pts)||r.variant,u=ns.castOption(e.insidetextfont.textcase,t.pts)||ns.castOption(e.textfont.textcase,t.pts)||r.textcase,c=ns.castOption(e.insidetextfont.lineposition,t.pts)||ns.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=ns.castOption(e.insidetextfont.shadow,t.pts)||ns.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||Ske.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function Lke(e,t){for(var r,n,i=0;i=-4;k-=2)p(Math.PI*k,"tan");for(k=4;k>=-4;k-=2)p(Math.PI*(k+1),"tan")}if(f||d){for(k=4;k>=-4;k-=2)p(Math.PI*(k+1.5),"rad");for(k=4;k>=-4;k-=2)p(Math.PI*(k+.5),"rad")}}if(s||v||f){var M=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/M,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;m.push(b)}(v||d)&&(b=wke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,m.push(b)),(v||h)&&(b=Tke(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,m.push(b));for(var T=0,L=0,x=0;x=1)break}return m[T]}function y6t(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function x6t(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Fke(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=zke(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var l=b6t(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+i)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+i)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,n=EW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function b6t(e,t){return e/(t===void 0?1:t)}function EW(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function zke(e){var t=e.pull;if(!t)return 0;var r;if(iv.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function w6t(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function m(M,T){return M.pxmid[1]-T.pxmid[1]}function b(M,T){return T.pxmid[1]-M.pxmid[1]}function p(M,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),x=n?M.yLabelMin:M.yLabelMax,C=n?M.yLabelMax:M.yLabelMin,S=M.cyFinal+o(M.px0[1],M.px1[1]),g=L-x,P,E,z,q,V,G;if(g*l>0&&(M.labelExtraY=g),!!iv.isArrayOrTypedArray(t.pull))for(E=0;E=(ns.castOption(t.pull,z.pts)||0))&&((M.pxmid[1]-z.pxmid[1])*l>0?(q=z.cyFinal+o(z.px0[1],z.px1[1]),g=q-x-M.labelExtraY,g*l>0&&(M.labelExtraY+=g)):(C+M.labelExtraY-S)*l>0&&(P=3*s*Math.abs(E-f.indexOf(M)),V=z.cxFinal+a(z.px0[0],z.px1[0]),G=V+P-(M.cxFinal+M.pxmid[0])-M.labelExtraX,G*s>0&&(M.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?m:b,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[n][r],u.sort(i),c=e[1-n][r],f=c.concat(u),d=[],h=0;h1?(u=r.r,c=u/i.aspectratio):(c=r.r,u=c*i.aspectratio),u*=(1+i.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(n=0;nt.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-n.hole,u.rInscribed=_6t(u,t))}function MD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Oke(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(T){return s.indexOf(T)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),d=n.separators,v;if(v=u?[t.label]:[],c){var m=ns.getFirstFilled(i.text,t.pts);bke(m)&&v.push(m)}f&&v.push(ns.formatPieValue(t.v,d)),h&&v.push(ns.formatPiePercent(t.v/r.vTotal,d)),t.text=v.join("
")}function b(T){return{label:T.label,value:T.v,valueLabel:ns.formatPieValue(T.v,n.separators),percent:T.v/r.vTotal,percentLabel:ns.formatPiePercent(T.v/r.vTotal,n.separators),color:T.color,text:T.text,customdata:iv.castOption(i,T.i,"customdata")}}if(a){var p=iv.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var k=b(t),M=ns.getFirstFilled(i.text,t.pts);(bke(M)||M==="")&&(k.text=M),t.text=iv.texttemplateString({data:[k,i._meta],fallback:i.texttemplatefallback,labels:k,locale:e._fullLayout._d3locale,template:p})}}}function Bke(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}Nke.exports={plot:p6t,formatSliceLabel:Oke,transformInsideText:Pke,determineInsideTextFont:Cke,positionTitleOutside:Fke,prerenderTitles:Lke,layoutAreas:qke,attachFxHandlers:kke,computeTransform:Bke}});var Gke=ye((zvr,Vke)=>{"use strict";var Uke=Fa(),S6t=J3(),M6t=bv().resizeText;Vke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");M6t(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Uke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Uke.select(this).call(S6t,s,a,t)})})}});var jke=ye(IA=>{"use strict";var Hke=Mc();IA.name="pie";IA.plot=function(e,t,r,n){Hke.plotBasePlot(IA.name,e,t,r,n)};IA.clean=function(e,t,r,n){Hke.cleanBasePlot(IA.name,e,t,r,n)}});var Xke=ye((Ovr,Wke)=>{"use strict";Wke.exports={attributes:q2(),supplyDefaults:O2().supplyDefaults,supplyLayoutDefaults:vke(),layoutAttributes:TD(),calc:PA().calc,crossTraceCalc:PA().crossTraceCalc,plot:ED().plot,style:Gke(),styleOne:J3(),moduleType:"trace",name:"pie",basePlotModule:jke(),categories:["pie-like","pie","showLegend"],meta:{}}});var Yke=ye((Bvr,Zke)=>{"use strict";Zke.exports=Xke()});var Jke=ye(RA=>{"use strict";var Kke=Mc();RA.name="sunburst";RA.plot=function(e,t,r,n){Kke.plotBasePlot(RA.name,e,t,r,n)};RA.clean=function(e,t,r,n){Kke.cleanBasePlot(RA.name,e,t,r,n)}});var kW=ye((Uvr,$ke)=>{"use strict";$ke.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var UE=ye((Vvr,tCe)=>{"use strict";var E6t=Vl(),{hovertemplateAttrs:k6t,texttemplateAttrs:C6t,templatefallbackAttrs:Qke}=Pl(),L6t=Tu(),P6t=Cc().attributes,t1=q2(),eCe=kW(),NE=Ao().extendFlat,I6t=Pd().pattern;tCe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:NE({colors:{valType:"data_array",editType:"calc"},line:{color:NE({},t1.marker.line.color,{dflt:null}),width:NE({},t1.marker.line.width,{dflt:1}),editType:"calc"},pattern:I6t,editType:"calc"},L6t("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:t1.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:C6t({editType:"plot"},{keys:eCe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Qke({editType:"plot"}),hovertext:t1.hovertext,hoverinfo:NE({},E6t.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:k6t({},{keys:eCe.eventDataKeys}),hovertemplatefallback:Qke(),textfont:t1.textfont,insidetextorientation:t1.insidetextorientation,insidetextfont:t1.insidetextfont,outsidetextfont:NE({},t1.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:t1.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:P6t({name:"sunburst",trace:!0,editType:"calc"})}});var CW=ye((Gvr,rCe)=>{"use strict";rCe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var oCe=ye((Hvr,aCe)=>{"use strict";var iCe=Pr(),R6t=UE(),D6t=Cc().defaults,F6t=i0().handleText,z6t=O2().handleMarkerDefaults,nCe=tc(),q6t=nCe.hasColorscale,O6t=nCe.handleDefaults;aCe.exports=function(t,r,n,i){function a(h,d){return iCe.coerce(t,r,R6t,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),z6t(t,r,i,a);var u=r._hasColorscale=q6t(t,"marker","colors")||(t.marker||{}).coloraxis;u&&O6t(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",iCe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f="auto";F6t(t,r,i,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),D6t(r,i,a),r._length=null}});var lCe=ye((jvr,sCe)=>{"use strict";var B6t=Pr(),N6t=CW();sCe.exports=function(t,r){function n(i,a){return B6t.coerce(t,r,N6t,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var VE=ye((kD,uCe)=>{(function(e,t){typeof kD=="object"&&typeof uCe!="undefined"?t(kD):(e=e||self,t(e.d3=e.d3||{}))})(kD,function(e){"use strict";function t(We,et){return We.parent===et.parent?1:2}function r(We){return We.reduce(n,0)/We.length}function n(We,et){return We+et.x}function i(We){return 1+We.reduce(a,0)}function a(We,et){return Math.max(We,et.y)}function o(We){for(var et;et=We.children;)We=et[0];return We}function s(We){for(var et;et=We.children;)We=et[et.length-1];return We}function l(){var We=t,et=1,xt=1,At=!1;function Kt(Qt){var Mr,Gr=0;Qt.eachAfter(function(ai){var mi=ai.children;mi?(ai.x=r(mi),ai.y=i(mi)):(ai.x=Mr?Gr+=We(ai,Mr):0,ai.y=0,Mr=ai)});var Ir=o(Qt),Yr=s(Qt),_i=Ir.x-We(Ir,Yr)/2,Pi=Yr.x+We(Yr,Ir)/2;return Qt.eachAfter(At?function(ai){ai.x=(ai.x-Qt.x)*et,ai.y=(Qt.y-ai.y)*xt}:function(ai){ai.x=(ai.x-_i)/(Pi-_i)*et,ai.y=(1-(Qt.y?ai.y/Qt.y:1))*xt})}return Kt.separation=function(Qt){return arguments.length?(We=Qt,Kt):We},Kt.size=function(Qt){return arguments.length?(At=!1,et=+Qt[0],xt=+Qt[1],Kt):At?null:[et,xt]},Kt.nodeSize=function(Qt){return arguments.length?(At=!0,et=+Qt[0],xt=+Qt[1],Kt):At?[et,xt]:null},Kt}function u(We){var et=0,xt=We.children,At=xt&&xt.length;if(!At)et=1;else for(;--At>=0;)et+=xt[At].value;We.value=et}function c(){return this.eachAfter(u)}function f(We){var et=this,xt,At=[et],Kt,Qt,Mr;do for(xt=At.reverse(),At=[];et=xt.pop();)if(We(et),Kt=et.children,Kt)for(Qt=0,Mr=Kt.length;Qt=0;--Kt)xt.push(At[Kt]);return this}function d(We){for(var et=this,xt=[et],At=[],Kt,Qt,Mr;et=xt.pop();)if(At.push(et),Kt=et.children,Kt)for(Qt=0,Mr=Kt.length;Qt=0;)xt+=At[Kt].value;et.value=xt})}function m(We){return this.eachBefore(function(et){et.children&&et.children.sort(We)})}function b(We){for(var et=this,xt=p(et,We),At=[et];et!==xt;)et=et.parent,At.push(et);for(var Kt=At.length;We!==xt;)At.splice(Kt,0,We),We=We.parent;return At}function p(We,et){if(We===et)return We;var xt=We.ancestors(),At=et.ancestors(),Kt=null;for(We=xt.pop(),et=At.pop();We===et;)Kt=We,We=xt.pop(),et=At.pop();return Kt}function k(){for(var We=this,et=[We];We=We.parent;)et.push(We);return et}function M(){var We=[];return this.each(function(et){We.push(et)}),We}function T(){var We=[];return this.eachBefore(function(et){et.children||We.push(et)}),We}function L(){var We=this,et=[];return We.each(function(xt){xt!==We&&et.push({source:xt.parent,target:xt})}),et}function x(We,et){var xt=new E(We),At=+We.value&&(xt.value=We.value),Kt,Qt=[xt],Mr,Gr,Ir,Yr;for(et==null&&(et=S);Kt=Qt.pop();)if(At&&(Kt.value=+Kt.data.value),(Gr=et(Kt.data))&&(Yr=Gr.length))for(Kt.children=new Array(Yr),Ir=Yr-1;Ir>=0;--Ir)Qt.push(Mr=Kt.children[Ir]=new E(Gr[Ir])),Mr.parent=Kt,Mr.depth=Kt.depth+1;return xt.eachBefore(P)}function C(){return x(this).eachBefore(g)}function S(We){return We.children}function g(We){We.data=We.data.data}function P(We){var et=0;do We.height=et;while((We=We.parent)&&We.height<++et)}function E(We){this.data=We,this.depth=this.height=0,this.parent=null}E.prototype=x.prototype={constructor:E,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:m,path:b,ancestors:k,descendants:M,leaves:T,links:L,copy:C};var z=Array.prototype.slice;function q(We){for(var et=We.length,xt,At;et;)At=Math.random()*et--|0,xt=We[et],We[et]=We[At],We[At]=xt;return We}function V(We){for(var et=0,xt=(We=q(z.call(We))).length,At=[],Kt,Qt;et0&&xt*xt>At*At+Kt*Kt}function N(We,et){for(var xt=0;xtIr?(Kt=(Yr+Ir-Qt)/(2*Yr),Gr=Math.sqrt(Math.max(0,Ir/Yr-Kt*Kt)),xt.x=We.x-Kt*At-Gr*Mr,xt.y=We.y-Kt*Mr+Gr*At):(Kt=(Yr+Qt-Ir)/(2*Yr),Gr=Math.sqrt(Math.max(0,Qt/Yr-Kt*Kt)),xt.x=et.x+Kt*At-Gr*Mr,xt.y=et.y+Kt*Mr+Gr*At)):(xt.x=et.x+xt.r,xt.y=et.y)}function Ce(We,et){var xt=We.r+et.r-1e-6,At=et.x-We.x,Kt=et.y-We.y;return xt>0&&xt*xt>At*At+Kt*Kt}function ge(We){var et=We._,xt=We.next._,At=et.r+xt.r,Kt=(et.x*xt.r+xt.x*et.r)/At,Qt=(et.y*xt.r+xt.y*et.r)/At;return Kt*Kt+Qt*Qt}function ie(We){this._=We,this.next=null,this.previous=null}function Se(We){if(!(Kt=We.length))return 0;var et,xt,At,Kt,Qt,Mr,Gr,Ir,Yr,_i,Pi;if(et=We[0],et.x=0,et.y=0,!(Kt>1))return et.r;if(xt=We[1],et.x=-xt.r,xt.x=et.r,xt.y=0,!(Kt>2))return et.r+xt.r;Ee(xt,et,At=We[2]),et=new ie(et),xt=new ie(xt),At=new ie(At),et.next=At.previous=xt,xt.next=et.previous=At,At.next=xt.previous=et;e:for(Gr=3;Gr0)throw new Error("cycle");return Gr}return xt.id=function(At){return arguments.length?(We=Be(At),xt):We},xt.parentId=function(At){return arguments.length?(et=Be(At),xt):et},xt}function Ae(We,et){return We.parent===et.parent?1:2}function rt(We){var et=We.children;return et?et[0]:We.t}function St(We){var et=We.children;return et?et[et.length-1]:We.t}function Tt(We,et,xt){var At=xt/(et.i-We.i);et.c-=At,et.s+=xt,We.c+=At,et.z+=xt,et.m+=xt}function dt(We){for(var et=0,xt=0,At=We.children,Kt=At.length,Qt;--Kt>=0;)Qt=At[Kt],Qt.z+=et,Qt.m+=et,et+=Qt.s+(xt+=Qt.c)}function Et(We,et,xt){return We.a.parent===et.parent?We.a:xt}function pt(We,et){this._=We,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=et}pt.prototype=Object.create(E.prototype);function jt(We){for(var et=new pt(We,0),xt,At=[et],Kt,Qt,Mr,Gr;xt=At.pop();)if(Qt=xt._.children)for(xt.children=new Array(Gr=Qt.length),Mr=Gr-1;Mr>=0;--Mr)At.push(Kt=xt.children[Mr]=new pt(Qt[Mr],Mr)),Kt.parent=xt;return(et.parent=new pt(null,0)).children=[et],et}function or(){var We=Ae,et=1,xt=1,At=null;function Kt(Yr){var _i=jt(Yr);if(_i.eachAfter(Qt),_i.parent.m=-_i.z,_i.eachBefore(Mr),At)Yr.eachBefore(Ir);else{var Pi=Yr,ai=Yr,mi=Yr;Yr.eachBefore(function(Qn){Qn.xai.x&&(ai=Qn),Qn.depth>mi.depth&&(mi=Qn)});var un=Pi===ai?1:We(Pi,ai)/2,Fn=un-Pi.x,An=et/(ai.x+un+Fn),Hn=xt/(mi.depth||1);Yr.eachBefore(function(Qn){Qn.x=(Qn.x+Fn)*An,Qn.y=Qn.depth*Hn})}return Yr}function Qt(Yr){var _i=Yr.children,Pi=Yr.parent.children,ai=Yr.i?Pi[Yr.i-1]:null;if(_i){dt(Yr);var mi=(_i[0].z+_i[_i.length-1].z)/2;ai?(Yr.z=ai.z+We(Yr._,ai._),Yr.m=Yr.z-mi):Yr.z=mi}else ai&&(Yr.z=ai.z+We(Yr._,ai._));Yr.parent.A=Gr(Yr,ai,Yr.parent.A||Pi[0])}function Mr(Yr){Yr._.x=Yr.z+Yr.parent.m,Yr.m+=Yr.parent.m}function Gr(Yr,_i,Pi){if(_i){for(var ai=Yr,mi=Yr,un=_i,Fn=ai.parent.children[0],An=ai.m,Hn=mi.m,Qn=un.m,Vi=Fn.m,Jn;un=St(un),ai=rt(ai),un&&ai;)Fn=rt(Fn),mi=St(mi),mi.a=Yr,Jn=un.z+Qn-ai.z-An+We(un._,ai._),Jn>0&&(Tt(Et(un,Yr,Pi),Yr,Jn),An+=Jn,Hn+=Jn),Qn+=un.m,An+=ai.m,Vi+=Fn.m,Hn+=mi.m;un&&!St(mi)&&(mi.t=un,mi.m+=Qn-Hn),ai&&!rt(Fn)&&(Fn.t=ai,Fn.m+=An-Vi,Pi=Yr)}return Pi}function Ir(Yr){Yr.x*=et,Yr.y=Yr.depth*xt}return Kt.separation=function(Yr){return arguments.length?(We=Yr,Kt):We},Kt.size=function(Yr){return arguments.length?(At=!1,et=+Yr[0],xt=+Yr[1],Kt):At?null:[et,xt]},Kt.nodeSize=function(Yr){return arguments.length?(At=!0,et=+Yr[0],xt=+Yr[1],Kt):At?[et,xt]:null},Kt}function mr(We,et,xt,At,Kt){for(var Qt=We.children,Mr,Gr=-1,Ir=Qt.length,Yr=We.value&&(Kt-xt)/We.value;++GrQn&&(Qn=Yr),Gt=An*An*Yn,Vi=Math.max(Qn/Gt,Gt/Hn),Vi>Jn){An-=Yr;break}Jn=Vi}Mr.push(Ir={value:An,dice:mi1?At:1)},xt})(Ar);function jr(){var We=qr,et=!1,xt=1,At=1,Kt=[0],Qt=Le,Mr=Le,Gr=Le,Ir=Le,Yr=Le;function _i(ai){return ai.x0=ai.y0=0,ai.x1=xt,ai.y1=At,ai.eachBefore(Pi),Kt=[0],et&&ai.eachBefore(Ht),ai}function Pi(ai){var mi=Kt[ai.depth],un=ai.x0+mi,Fn=ai.y0+mi,An=ai.x1-mi,Hn=ai.y1-mi;An=ai-1){var Qn=Qt[Pi];Qn.x0=un,Qn.y0=Fn,Qn.x1=An,Qn.y1=Hn;return}for(var Vi=Yr[Pi],Jn=mi/2+Vi,Yn=Pi+1,Gt=ai-1;Yn>>1;Yr[wt]Hn-Fn){var wr=(un*ir+An*tr)/mi;_i(Pi,Yn,tr,un,Fn,wr,Hn),_i(Yn,ai,ir,wr,Fn,An,Hn)}else{var Xr=(Fn*ir+Hn*tr)/mi;_i(Pi,Yn,tr,un,Fn,An,Xr),_i(Yn,ai,ir,un,Xr,An,Hn)}}}function Ge(We,et,xt,At,Kt){(We.depth&1?mr:at)(We,et,xt,At,Kt)}var Je=(function We(et){function xt(At,Kt,Qt,Mr,Gr){if((Ir=At._squarify)&&Ir.ratio===et)for(var Ir,Yr,_i,Pi,ai=-1,mi,un=Ir.length,Fn=At.value;++ai1?At:1)},xt})(Ar);e.cluster=l,e.hierarchy=x,e.pack=ce,e.packEnclose=V,e.packSiblings=ke,e.partition=ct,e.stratify=Ue,e.tree=or,e.treemap=jr,e.treemapBinary=gt,e.treemapDice=at,e.treemapResquarify=Je,e.treemapSlice=mr,e.treemapSliceDice=Ge,e.treemapSquarify=qr,Object.defineProperty(e,"__esModule",{value:!0})})});var HE=ye(GE=>{"use strict";var cCe=VE(),U6t=Eo(),DA=Pr(),V6t=tc().makeColorScaleFuncFromTrace,G6t=PA().makePullColorFn,H6t=PA().generateExtendedColors,j6t=tc().calc,W6t=fs().ALMOST_EQUAL,X6t={},Z6t={},Y6t={};GE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=DA.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=DA.isArrayOrTypedArray(s),u=[],c={},f={},h=function(j,N){c[j]?c[j].push(N):c[j]=[N],f[N]=1},d=function(j){return j||typeof j=="number"},v=function(j){return!l||U6t(s[j])&&s[j]>=0},m,b,p;i?(m=Math.min(n.length,o.length),b=function(j){return d(n[j])&&v(j)},p=function(j){return String(n[j])}):(m=Math.min(a.length,o.length),b=function(j){return d(a[j])&&v(j)},p=function(j){return String(a[j])}),l&&(m=Math.min(m,s.length));for(var k=0;k1){for(var S=DA.randstr(),g=0;g{});function Km(){}function uCe(){return this.rgb().formatHex()}function j6t(){return this.rgb().formatHex8()}function W6t(){return gCe(this).formatHsl()}function cCe(){return this.rgb().formatRgb()}function tx(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=O6t.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?fCe(t):r===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?kD(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?kD(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=B6t.exec(e))?new _d(t[1],t[2],t[3],1):(t=N6t.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=U6t.exec(e))?kD(t[1],t[2],t[3],t[4]):(t=V6t.exec(e))?kD(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=G6t.exec(e))?vCe(t[1],t[2]/100,t[3]/100,1):(t=H6t.exec(e))?vCe(t[1],t[2]/100,t[3]/100,t[4]):lCe.hasOwnProperty(e)?fCe(lCe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function fCe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function kD(e,t,r,n){return n<=0&&(e=t=r=NaN),new _d(e,t,r,n)}function HE(e){return e instanceof Km||(e=tx(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function DA(e,t,r,n){return arguments.length===1?HE(e):new _d(e,t,r,n==null?1:n)}function _d(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function hCe(){return`#${O2(this.r)}${O2(this.g)}${O2(this.b)}`}function X6t(){return`#${O2(this.r)}${O2(this.g)}${O2(this.b)}${O2((isNaN(this.opacity)?1:this.opacity)*255)}`}function dCe(){let e=LD(this.opacity);return`${e===1?"rgb(":"rgba("}${B2(this.r)}, ${B2(this.g)}, ${B2(this.b)}${e===1?")":`, ${e})`}`}function LD(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function B2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function O2(e){return e=B2(e),(e<16?"0":"")+e.toString(16)}function vCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Kg(e,t,r,n)}function gCe(e){if(e instanceof Kg)return new Kg(e.h,e.s,e.l,e.opacity);if(e instanceof Km||(e=tx(e)),!e)return new Kg;if(e instanceof Kg)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new Kg(o,s,l,e.opacity)}function jE(e,t,r,n){return arguments.length===1?gCe(e):new Kg(e,t,r,n==null?1:n)}function Kg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function pCe(e){return e=(e||0)%360,e<0?e+360:e}function CD(e){return Math.max(0,Math.min(1,e||0))}function kW(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var ex,N2,RA,GE,Ym,O6t,B6t,N6t,U6t,V6t,G6t,H6t,lCe,PD=gu(()=>{ED();ex=.7,N2=1/ex,RA="\\s*([+-]?\\d+)\\s*",GE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ym="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O6t=/^#([0-9a-f]{3,8})$/,B6t=new RegExp(`^rgb\\(${RA},${RA},${RA}\\)$`),N6t=new RegExp(`^rgb\\(${Ym},${Ym},${Ym}\\)$`),U6t=new RegExp(`^rgba\\(${RA},${RA},${RA},${GE}\\)$`),V6t=new RegExp(`^rgba\\(${Ym},${Ym},${Ym},${GE}\\)$`),G6t=new RegExp(`^hsl\\(${GE},${Ym},${Ym}\\)$`),H6t=new RegExp(`^hsla\\(${GE},${Ym},${Ym},${GE}\\)$`),lCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};t1(Km,tx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uCe,formatHex:uCe,formatHex8:j6t,formatHsl:W6t,formatRgb:cCe,toString:cCe});t1(_d,DA,Q_(Km,{brighter(e){return e=e==null?N2:Math.pow(N2,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ex:Math.pow(ex,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(B2(this.r),B2(this.g),B2(this.b),LD(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hCe,formatHex:hCe,formatHex8:X6t,formatRgb:dCe,toString:dCe}));t1(Kg,jE,Q_(Km,{brighter(e){return e=e==null?N2:Math.pow(N2,e),new Kg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ex:Math.pow(ex,e),new Kg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new _d(kW(e>=240?e-240:e+120,i,n),kW(e,i,n),kW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Kg(pCe(this.h),CD(this.s),CD(this.l),LD(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=LD(this.opacity);return`${e===1?"hsl(":"hsla("}${pCe(this.h)}, ${CD(this.s)*100}%, ${CD(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var ID,RD,CW=gu(()=>{ID=Math.PI/180,RD=180/Math.PI});function wCe(e){if(e instanceof Jm)return new Jm(e.l,e.a,e.b,e.opacity);if(e instanceof r1)return TCe(e);e instanceof _d||(e=HE(e));var t=RW(e.r),r=RW(e.g),n=RW(e.b),i=LW((.2225045*t+.7168786*r+.0606169*n)/yCe),a,o;return t===r&&r===n?a=o=i:(a=LW((.4360747*t+.3850649*r+.1430804*n)/mCe),o=LW((.0139322*t+.0971045*r+.7141733*n)/_Ce)),new Jm(116*i-16,500*(a-i),200*(i-o),e.opacity)}function zA(e,t,r,n){return arguments.length===1?wCe(e):new Jm(e,t,r,n==null?1:n)}function Jm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function LW(e){return e>Z6t?Math.pow(e,1/3):e/bCe+xCe}function PW(e){return e>FA?e*e*e:bCe*(e-xCe)}function IW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function RW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Y6t(e){if(e instanceof r1)return new r1(e.h,e.c,e.l,e.opacity);if(e instanceof Jm||(e=wCe(e)),e.a===0&&e.b===0)return new r1(NaN,0{ED();PD();CW();DD=18,mCe=.96422,yCe=1,_Ce=.82521,xCe=4/29,FA=6/29,bCe=3*FA*FA,Z6t=FA*FA*FA;t1(Jm,zA,Q_(Km,{brighter(e){return new Jm(this.l+DD*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Jm(this.l-DD*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=mCe*PW(t),e=yCe*PW(e),r=_Ce*PW(r),new _d(IW(3.1338561*t-1.6168667*e-.4906146*r),IW(-.9787684*t+1.9161415*e+.033454*r),IW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));t1(r1,WE,Q_(Km,{brighter(e){return new r1(this.h,this.c,this.l+DD*(e==null?1:e),this.opacity)},darker(e){return new r1(this.h,this.c,this.l-DD*(e==null?1:e),this.opacity)},rgb(){return TCe(this).rgb()}}))});function K6t(e){if(e instanceof U2)return new U2(e.h,e.s,e.l,e.opacity);e instanceof _d||(e=HE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(ECe*n+SCe*t-MCe*r)/(ECe+SCe-MCe),a=n-i,o=(XE*(r-i)-FW*a)/FD,s=Math.sqrt(o*o+a*a)/(XE*i*(1-i)),l=s?Math.atan2(o,a)*RD-120:NaN;return new U2(l<0?l+360:l,s,i,e.opacity)}function qA(e,t,r,n){return arguments.length===1?K6t(e):new U2(e,t,r,n==null?1:n)}function U2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var kCe,DW,FW,FD,XE,SCe,MCe,ECe,CCe=gu(()=>{ED();PD();CW();kCe=-.14861,DW=1.78277,FW=-.29227,FD=-.90649,XE=1.97294,SCe=XE*FD,MCe=XE*DW,ECe=DW*FW-FD*kCe;t1(U2,qA,Q_(Km,{brighter(e){return e=e==null?N2:Math.pow(N2,e),new U2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ex:Math.pow(ex,e),new U2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*ID,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new _d(255*(t+r*(kCe*n+DW*i)),255*(t+r*(FW*n+FD*i)),255*(t+r*(XE*n)),this.opacity)}}))});var V2=gu(()=>{PD();ACe();CCe()});function zW(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function zD(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function OD(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return zW((r-n/t)*t,i,a,o,s)}}var qW=gu(()=>{qD()});var OA,OW=gu(()=>{OA=e=>()=>e});function LCe(e,t){return function(r){return e+r*t}}function J6t(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function rx(e,t){var r=t-e;return r?LCe(e,r>180||r<-180?r-360*Math.round(r/360):r):OA(isNaN(e)?t:e)}function PCe(e){return(e=+e)==1?$f:function(t,r){return r-t?J6t(t,r,e):OA(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?LCe(e,r):OA(isNaN(e)?t:e)}var G2=gu(()=>{OW()});function ICe(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{V2();qD();qW();G2();ZE=function e(t){var r=PCe(t);function n(i,a){var o=r((i=DA(i)).r,(a=DA(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=$f(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);RCe=ICe(zD),DCe=ICe(OD)});function BA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function FCe(e,t){return(BD(t)?BA:NW)(e,t)}function NW(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{YE();ND()});function UD(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var VW=gu(()=>{});function zp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var KE=gu(()=>{});function VD(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=ix(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var GW=gu(()=>{YE()});function $6t(e){return function(){return e}}function Q6t(e){return function(t){return e(t)+""}}function GD(e,t){var r=jW.lastIndex=HW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=jW.exec(e))&&(i=HW.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:zp(n,i)})),r=HW.lastIndex;return r{KE();jW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,HW=new RegExp(jW.source,"g")});function ix(e,t){var r=typeof t,n;return t==null||r==="boolean"?OA(t):(r==="number"?zp:r==="string"?(n=tx(t))?(t=n,ZE):GD:t instanceof tx?ZE:t instanceof Date?UD:BD(t)?BA:Array.isArray(t)?NW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?VD:zp)(e,t)}var YE=gu(()=>{V2();BW();UW();VW();KE();GW();WW();OW();ND()});function zCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var qCe=gu(()=>{});function OCe(e,t){var r=rx(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var BCe=gu(()=>{G2()});function NCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var UCe=gu(()=>{});function XW(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n{VCe=180/Math.PI,HD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function HCe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?HD:XW(t.a,t.b,t.c,t.d,t.e,t.f)}function jCe(e){return e==null?HD:(jD||(jD=document.createElementNS("http://www.w3.org/2000/svg","g")),jD.setAttribute("transform",e),(e=jD.transform.baseVal.consolidate())?(e=e.matrix,XW(e.a,e.b,e.c,e.d,e.e,e.f)):HD)}var jD,WCe=gu(()=>{GCe()});function XCe(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,d,v){if(u!==f||c!==h){var m=d.push("translate(",null,t,null,r);v.push({i:m-4,x:zp(u,f)},{i:m-2,x:zp(c,h)})}else(f||h)&&d.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:zp(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:zp(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,d,v){if(u!==f||c!==h){var m=d.push(i(d)+"scale(",null,",",null,")");v.push({i:m-4,x:zp(u,f)},{i:m-2,x:zp(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(d){for(var v=-1,m=h.length,b;++v{KE();WCe();ZCe=XCe(HCe,"px, ","px)","deg)"),YCe=XCe(jCe,", ",")",")")});function JCe(e){return((e=Math.exp(e))+1/e)/2}function tLt(e){return((e=Math.exp(e))-1/e)/2}function rLt(e){return((e=Math.exp(2*e))-1)/(e+1)}var eLt,$Ce,QCe=gu(()=>{eLt=1e-12;$Ce=function e(t,r,n){function i(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],d=c-s,v=f-l,m=d*d+v*v,b,p;if(m{V2();G2();t6e=e6e(rx),r6e=e6e($f)});function ZW(e,t){var r=$f((e=zA(e)).l,(t=zA(t)).l),n=$f(e.a,t.a),i=$f(e.b,t.b),a=$f(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var n6e=gu(()=>{V2();G2()});function a6e(e){return function(t,r){var n=e((t=WE(t)).h,(r=WE(r)).h),i=$f(t.c,r.c),a=$f(t.l,r.l),o=$f(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var o6e,s6e,l6e=gu(()=>{V2();G2();o6e=a6e(rx),s6e=a6e($f)});function u6e(e){return function t(r){r=+r;function n(i,a){var o=e((i=qA(i)).h,(a=qA(a)).h),s=$f(i.s,a.s),l=$f(i.l,a.l),u=$f(i.opacity,a.opacity);return function(c){return i.h=o(c),i.s=s(c),i.l=l(Math.pow(c,r)),i.opacity=u(c),i+""}}return n.gamma=t,n}(1)}var c6e,f6e,h6e=gu(()=>{V2();G2();c6e=u6e(rx),f6e=u6e($f)});function YW(e,t){t===void 0&&(t=e,e=ix);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{YE()});function v6e(e,t){for(var r=new Array(t),n=0;n{});var H2={};yee(H2,{interpolate:()=>ix,interpolateArray:()=>FCe,interpolateBasis:()=>zD,interpolateBasisClosed:()=>OD,interpolateCubehelix:()=>c6e,interpolateCubehelixLong:()=>f6e,interpolateDate:()=>UD,interpolateDiscrete:()=>zCe,interpolateHcl:()=>o6e,interpolateHclLong:()=>s6e,interpolateHsl:()=>t6e,interpolateHslLong:()=>r6e,interpolateHue:()=>OCe,interpolateLab:()=>ZW,interpolateNumber:()=>zp,interpolateNumberArray:()=>BA,interpolateObject:()=>VD,interpolateRgb:()=>ZE,interpolateRgbBasis:()=>RCe,interpolateRgbBasisClosed:()=>DCe,interpolateRound:()=>NCe,interpolateString:()=>GD,interpolateTransformCss:()=>ZCe,interpolateTransformSvg:()=>YCe,interpolateZoom:()=>$Ce,piecewise:()=>YW,quantize:()=>v6e});var j2=gu(()=>{YE();UW();qD();qW();VW();qCe();BCe();KE();ND();GW();UCe();WW();KCe();QCe();BW();i6e();n6e();l6e();h6e();d6e();p6e()});var WD=ye((m0r,g6e)=>{"use strict";var iLt=So(),nLt=ka();g6e.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=n.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),iLt.pointStyle(t,n,i,r)}else nLt.fill(t,l)}});var KW=ye((y0r,b6e)=>{"use strict";var m6e=qa(),y6e=ka(),_6e=Pr(),aLt=bv().resizeText,oLt=WD();function sLt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");aLt(e,t,"sunburst"),t.each(function(r){var n=m6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){m6e.select(this).call(x6e,o,a,e)})})}function x6e(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=_6e.castOption(r,o,"marker.line.color")||y6e.defaultLine,l=_6e.castOption(r,o,"marker.line.width")||0;e.call(oLt,t,r,n).style("stroke-width",l).call(y6e.stroke,s).style("opacity",a?r.leaf.opacity:null)}b6e.exports={style:sLt,styleOne:x6e}});var i1=ye(Bs=>{"use strict";var W2=Pr(),lLt=ka(),uLt=Eg(),w6e=g_();Bs.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(Bs.getPtId(n)===t)return r=n.copy()}),r||e};Bs.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};Bs.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};Bs.isHeader=function(e,t){return!(Bs.isLeaf(e)||e.depth===t._maxDepth-1)};function T6e(e){return e.data.data.pid}Bs.getParent=function(e,t){return Bs.findEntryWithLevel(e,T6e(t))};Bs.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return Bs.listPath(r,t).concat(n)};Bs.getPath=function(e){return Bs.listPath(e,"label").join("/")+"/"};Bs.formatValue=w6e.formatPieValue;Bs.formatPercent=function(e,t){var r=W2.formatPercent(e,0);return r==="0%"&&(r=w6e.formatPiePercent(e,t)),r}});var QE=ye((x0r,M6e)=>{"use strict";var NA=qa(),A6e=Oa(),hLt=ip().appendArrayPointValue,JE=ef(),S6e=Pr(),dLt=L3(),id=i1(),vLt=g_(),pLt=vLt.formatPieValue;M6e.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",c=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var f=function(v){var m=n._fullLayout;if(!(n._dragging||m.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,k=p.i,M=id.isHierarchyRoot(v),T=id.getParent(l,v),L=id.getValue(v),x=function(Ee){return S6e.castOption(b,k,Ee)},C=x("hovertemplate"),S=JE.castHoverinfo(b,m,k),g=m.separators,P;if(C||S&&S!=="none"&&S!=="skip"){var E,z;u&&(E=o.cx+v.pxmid[0]*(1-v.rInscribed),z=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(E=v._hoverX,z=v._hoverY);var q={},V=[],G=[],Z=function(Ee){return V.indexOf(Ee)!==-1};S&&(V=S==="all"?b._module.attributes.hoverinfo.flags:S.split("+")),q.label=p.label,Z("label")&&q.label&&G.push(q.label),p.hasOwnProperty("v")&&(q.value=p.v,q.valueLabel=pLt(q.value,g),Z("value")&&G.push(q.valueLabel)),q.currentPath=v.currentPath=id.getPath(v.data),Z("current path")&&!M&&G.push(q.currentPath);var j,N=[],H=function(){N.indexOf(j)===-1&&(G.push(j),N.push(j))};q.percentParent=v.percentParent=L/id.getValue(T),q.parent=v.parentString=id.getPtLabel(T),Z("percent parent")&&(j=id.formatPercent(q.percentParent,g)+" of "+q.parent,H()),q.percentEntry=v.percentEntry=L/id.getValue(r),q.entry=v.entry=id.getPtLabel(r),Z("percent entry")&&!M&&!v.onPathbar&&(j=id.formatPercent(q.percentEntry,g)+" of "+q.entry,H()),q.percentRoot=v.percentRoot=L/id.getValue(l),q.root=v.root=id.getPtLabel(l),Z("percent root")&&!M&&(j=id.formatPercent(q.percentRoot,g)+" of "+q.root,H()),q.text=x("hovertext")||x("text"),Z("text")&&(j=q.text,S6e.isValidTextValue(j)&&G.push(j)),P=[$E(v,b,a.eventDataKeys)];var ie={trace:b,y:z,_x0:v._x0,_x1:v._x1,_y0:v._y0,_y1:v._y1,text:G.join("
"),name:C||Z("name")?b.name:void 0,color:x("hoverlabel.bgcolor")||p.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:C,hovertemplateLabels:q,eventData:P};u&&(ie.x0=E-v.rInscribed*v.rpx1,ie.x1=E+v.rInscribed*v.rpx1,ie.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(ie.x=E,ie.idealAlign=E<0?"left":"right");var ae=[];JE.loneHover(ie,{container:m._hoverlayer.node(),outerContainer:m._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(c){var _e=t.select("path.surface");a.styleOne(_e,v,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[$E(v,b,a.eventDataKeys)],event:NA.event})}},h=function(v){var m=n._fullLayout,b=n._fullData[s.index],p=NA.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=NA.event,n.emit("plotly_unhover",{points:[$E(p,b,a.eventDataKeys)],event:NA.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(JE.loneUnhover(m._hoverlayer.node()),s._hasHoverLabel=!1),c){var k=t.select("path.surface");a.styleOne(k,p,b,n,{hovered:!1})}},d=function(v){var m=n._fullLayout,b=n._fullData[s.index],p=u&&(id.isHierarchyRoot(v)||id.isLeaf(v)),k=id.getPtId(v),M=id.isEntry(v)?id.findEntryWithChild(l,k):id.findEntryWithLevel(l,k),T=id.getPtId(M),L={points:[$E(v,b,a.eventDataKeys)],event:NA.event};p||(L.nextLevel=T);var x=dLt.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&m.hovermode&&(n._hoverdata=[$E(v,b,a.eventDataKeys)],JE.click(n,NA.event)),!p&&x!==!1&&!n._dragging&&!n._transitioning){A6e.call("_storeDirectGUIEdit",b,m._tracePreGUI[b.uid],{level:b.level});var C={data:[{level:T}],traces:[s.index]},S={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};JE.loneUnhover(m._hoverlayer.node()),A6e.call("animate",n,C,S)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",d)};function $E(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var ek=qa(),gLt=NE(),Jg=(j2(),gb(H2)).interpolate,E6e=So(),Av=Pr(),mLt=Zl(),P6e=bv(),k6e=P6e.recordMinTextSize,yLt=P6e.clearMinTextSize,I6e=SD(),_Lt=g_().getRotationAngle,xLt=I6e.computeTransform,bLt=I6e.transformInsideText,wLt=KW().styleOne,TLt=V0().resizeText,ALt=QE(),JW=MW(),Rl=i1();XD.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,l=!r,u=!i.uniformtext.mode&&Rl.hasTransition(r);if(yLt("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(f){return f[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){n&&(s=n());var c=ek.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});c.each(function(){a.selectAll("g.trace").each(function(f){C6e(e,f,this,r)})})}else o.each(function(f){C6e(e,f,this,r)}),i.uniformtext.mode&&TLt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function C6e(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Rl.hasTransition(n),s=ek.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=Rl.findEntryWithLevel(f,c.level),d=Rl.getMaxDepth(c),v=a._size,m=c.domain,b=v.w*(m.x[1]-m.x[0]),p=v.h*(m.y[1]-m.y[0]),k=.5*Math.min(b,p),M=u.cx=v.l+v.w*(m.x[1]+m.x[0])/2,T=u.cy=v.t+v.h*(1-m.y[0])-p/2;if(!h)return l.remove();var L=null,x={};o&&l.each(function(ge){x[Rl.getPtId(ge)]={rpx0:ge.rpx0,rpx1:ge.rpx1,x0:ge.x0,x1:ge.x1,transform:ge.transform},!L&&Rl.isEntry(ge)&&(L=ge)});var C=SLt(h).descendants(),S=h.height+1,g=0,P=d;u.hasMultipleRoots&&Rl.isHierarchyRoot(h)&&(C=C.slice(1),S-=1,g=1,P+=1),C=C.filter(function(ge){return ge.y1<=P});var E=_Lt(c.rotation);E&&C.forEach(function(ge){ge.x0+=E,ge.x1+=E});var z=Math.min(S,d),q=function(ge){return(ge-g)/z*k},V=function(ge,re){return[ge*Math.cos(re),-ge*Math.sin(re)]},G=function(ge){return Av.pathAnnulus(ge.rpx0,ge.rpx1,ge.x0,ge.x1,M,T)},Z=function(ge){return M+L6e(ge)[0]*(ge.transform.rCenter||0)+(ge.transform.x||0)},j=function(ge){return T+L6e(ge)[1]*(ge.transform.rCenter||0)+(ge.transform.y||0)};l=l.data(C,Rl.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var ge=ek.select(this),re=ge.select("path.surface");re.transition().attrTween("d",function(ke){var be=ae(ke);return function(Be){return G(be(Be))}});var Se=ge.select("g.slicetext");Se.attr("opacity",0)}).remove():l.exit().remove(),l.order();var N=null;if(o&&L){var H=Rl.getPtId(L);l.each(function(ge){N===null&&Rl.getPtId(ge)===H&&(N=ge.x1)})}var ie=l;o&&(ie=ie.transition().each("end",function(){var ge=ek.select(this);Rl.setSliceCursor(ge,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),ie.each(function(ge){var re=ek.select(this),Se=Av.ensureSingle(re,"path","surface",function(Pe){Pe.style("pointer-events",i?"none":"all")});ge.rpx0=q(ge.y0),ge.rpx1=q(ge.y1),ge.xmid=(ge.x0+ge.x1)/2,ge.pxmid=V(ge.rpx1,ge.xmid),ge.midangle=-(ge.xmid-Math.PI/2),ge.startangle=-(ge.x0-Math.PI/2),ge.stopangle=-(ge.x1-Math.PI/2),ge.halfangle=.5*Math.min(Av.angleDelta(ge.x0,ge.x1)||Math.PI,Math.PI),ge.ring=1-ge.rpx0/ge.rpx1,ge.rInscribed=MLt(ge,c),o?Se.transition().attrTween("d",function(Pe){var ce=_e(Pe);return function(He){return G(ce(He))}}):Se.attr("d",G),re.call(ALt,h,e,t,{eventDataKeys:JW.eventDataKeys,transitionTime:JW.CLICK_TRANSITION_TIME,transitionEasing:JW.CLICK_TRANSITION_EASING}).call(Rl.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(wLt,ge,c,e);var ke=Av.ensureSingle(re,"g","slicetext"),be=Av.ensureSingle(ke,"text","",function(Pe){Pe.attr("data-notex",1)}),Be=Av.ensureUniformFontSize(e,Rl.determineTextFont(c,ge,a.font));be.text(XD.formatSliceLabel(ge,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(E6e.font,Be).call(mLt.convertToTspans,e);var Le=E6e.bBox(be.node());ge.transform=bLt(Le,ge,u),ge.transform.targetX=Z(ge),ge.transform.targetY=j(ge);var me=function(Pe,ce){var He=Pe.transform;return xLt(He,ce),He.fontSize=Be.size,k6e(c.type,He,a),Av.getTextTransform(He)};o?be.transition().attrTween("transform",function(Pe){var ce=Ee(Pe);return function(He){return me(ce(He),Le)}}):be.attr("transform",me(ge,Le))});function ae(ge){var re=Rl.getPtId(ge),Se=x[re],ke=x[Rl.getPtId(h)],be;if(ke){var Be=(ge.x1>ke.x1?2*Math.PI:0)+E;be=ge.rpx1N?2*Math.PI:0)+E;Se={x0:be,x1:be}}else Se={rpx0:k,rpx1:k},Av.extendFlat(Se,Ce(ge));else Se={rpx0:0,rpx1:0};else Se={x0:E,x1:E};return Jg(Se,ke)}function Ee(ge){var re=x[Rl.getPtId(ge)],Se,ke=ge.transform;if(re)Se=re;else if(Se={rpx1:ge.rpx1,transform:{textPosAngle:ke.textPosAngle,scale:0,rotate:ke.rotate,rCenter:ke.rCenter,x:ke.x,y:ke.y}},L)if(ge.parent)if(N){var be=ge.x1>N?2*Math.PI:0;Se.x0=Se.x1=be}else Av.extendFlat(Se,Ce(ge));else Se.x0=Se.x1=E;else Se.x0=Se.x1=E;var Be=Jg(Se.transform.textPosAngle,ge.transform.textPosAngle),Le=Jg(Se.rpx1,ge.rpx1),me=Jg(Se.x0,ge.x0),Pe=Jg(Se.x1,ge.x1),ce=Jg(Se.transform.scale,ke.scale),He=Jg(Se.transform.rotate,ke.rotate),lt=ke.rCenter===0?3:Se.transform.rCenter===0?1/3:1,mt=Jg(Se.transform.rCenter,ke.rCenter),Ht=function(at){return mt(Math.pow(at,lt))};return function(at){var ct=Le(at),ar=me(at),Vt=Pe(at),rr=Ht(at),tt=V(ct,(ar+Vt)/2),je=Be(at),Ue={pxmid:tt,rpx1:ct,transform:{textPosAngle:je,rCenter:rr,x:ke.x,y:ke.y}};return k6e(c.type,ke,a),{transform:{targetX:Z(Ue),targetY:j(Ue),scale:ce(at),rotate:He(at),rCenter:rr}}}}function Ce(ge){var re=ge.parent,Se=x[Rl.getPtId(re)],ke={};if(Se){var be=re.children,Be=be.indexOf(ge),Le=be.length,me=Jg(Se.x0,Se.x1);ke.x0=me(Be/Le),ke.x1=me(Be/Le)}else ke.x0=ke.x1=0;return ke}}function SLt(e){return gLt.partition().size([2*Math.PI,e.height+1])(e)}XD.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,l=n[0],u=e.data.data,c=l.hierarchy,f=Rl.isHierarchyRoot(e),h=Rl.getParent(c,e),d=Rl.getValue(e);if(!a){var v=o.split("+"),m=function(g){return v.indexOf(g)!==-1},b=[],p;if(m("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&m("value")&&b.push(Rl.formatValue(u.v,s)),!f){m("current path")&&b.push(Rl.getPath(e.data));var k=0;m("percent parent")&&k++,m("percent entry")&&k++,m("percent root")&&k++;var M=k>1;if(k){var T,L=function(g){p=Rl.formatPercent(T,s),M&&(p+=" of "+g),b.push(p)};m("percent parent")&&!f&&(T=d/Rl.getValue(h),L("parent")),m("percent entry")&&(T=d/Rl.getValue(t),L("entry")),m("percent root")&&(T=d/Rl.getValue(c),L("root"))}}return m("text")&&(p=Av.castOption(r,u.i,"text"),Av.isValidTextValue(p)&&b.push(p)),b.join("
")}var x=Av.castOption(r,u.i,"texttemplate");if(!x)return"";var C={};u.label&&(C.label=u.label),u.hasOwnProperty("v")&&(C.value=u.v,C.valueLabel=Rl.formatValue(u.v,s)),C.currentPath=Rl.getPath(e.data),f||(C.percentParent=d/Rl.getValue(h),C.percentParentLabel=Rl.formatPercent(C.percentParent,s),C.parent=Rl.getPtLabel(h)),C.percentEntry=d/Rl.getValue(t),C.percentEntryLabel=Rl.formatPercent(C.percentEntry,s),C.entry=Rl.getPtLabel(t),C.percentRoot=d/Rl.getValue(c),C.percentRootLabel=Rl.formatPercent(C.percentRoot,s),C.root=Rl.getPtLabel(c),u.hasOwnProperty("color")&&(C.color=u.color);var S=Av.castOption(r,u.i,"text");return(Av.isValidTextValue(S)||S==="")&&(C.text=S),C.customdata=Av.castOption(r,u.i,"customdata"),Av.texttemplateString({data:[C,r._meta],fallback:r.texttemplatefallback,labels:C,locale:i._d3locale,template:x})};function MLt(e){return e.rpx0===0&&Av.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function L6e(e){return ELt(e.rpx1,e.transform.textPosAngle)}function ELt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var D6e=ye((w0r,R6e)=>{"use strict";R6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:Xke(),categories:[],animatable:!0,attributes:BE(),layoutAttributes:EW(),supplyDefaults:rCe(),supplyLayoutDefaults:nCe(),calc:VE().calc,crossTraceCalc:VE().crossTraceCalc,plot:ZD().plot,style:KW().style,colorbar:Qd(),meta:{}}});var z6e=ye((T0r,F6e)=>{"use strict";F6e.exports=D6e()});var O6e=ye(UA=>{"use strict";var q6e=Mc();UA.name="treemap";UA.plot=function(e,t,r,n){q6e.plotBasePlot(UA.name,e,t,r,n)};UA.clean=function(e,t,r,n){q6e.cleanBasePlot(UA.name,e,t,r,n)}});var X2=ye((S0r,B6e)=>{"use strict";B6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var YD=ye((M0r,V6e)=>{"use strict";var{hovertemplateAttrs:kLt,texttemplateAttrs:CLt,templatefallbackAttrs:N6e}=Ll(),LLt=Tu(),PLt=Cc().attributes,Z2=z2(),tg=BE(),U6e=X2(),$W=Ao().extendFlat,ILt=Pd().pattern;V6e.exports={labels:tg.labels,parents:tg.parents,values:tg.values,branchvalues:tg.branchvalues,count:tg.count,level:tg.level,maxdepth:tg.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:$W({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:tg.marker.colors,pattern:ILt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:tg.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},LLt("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:$W({},Z2.textfont,{}),editType:"calc"},text:Z2.text,textinfo:tg.textinfo,texttemplate:CLt({editType:"plot"},{keys:U6e.eventDataKeys.concat(["label","value"])}),texttemplatefallback:N6e({editType:"plot"}),hovertext:Z2.hovertext,hoverinfo:tg.hoverinfo,hovertemplate:kLt({},{keys:U6e.eventDataKeys}),hovertemplatefallback:N6e(),textfont:Z2.textfont,insidetextfont:Z2.insidetextfont,outsidetextfont:$W({},Z2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:Z2.sort,root:tg.root,domain:PLt({name:"treemap",trace:!0,editType:"calc"})}});var QW=ye((E0r,G6e)=>{"use strict";G6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var X6e=ye((k0r,W6e)=>{"use strict";var H6e=Pr(),RLt=YD(),DLt=ka(),FLt=Cc().defaults,zLt=i0().handleText,qLt=A_().TEXTPAD,OLt=q2().handleMarkerDefaults,j6e=tc(),BLt=j6e.hasColorscale,NLt=j6e.handleDefaults;W6e.exports=function(t,r,n,i){function a(b,p){return H6e.coerce(t,r,RLt,b,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",H6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),h="auto";zLt(t,r,i,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;OLt(t,r,i,a);var v=r._hasColorscale=BLt(t,"marker","colors")||(t.marker||{}).coloraxis;v?NLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var m=r.textfont.size*2;a("marker.pad.t",d?m/4:m),a("marker.pad.l",m/4),a("marker.pad.r",m/4),a("marker.pad.b",d?m:m/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:DLt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*qLt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),FLt(r,i,a),r._length=null}});var Y6e=ye((C0r,Z6e)=>{"use strict";var ULt=Pr(),VLt=QW();Z6e.exports=function(t,r){function n(i,a){return ULt.coerce(t,r,VLt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var tX=ye(eX=>{"use strict";var K6e=VE();eX.calc=function(e,t){return K6e.calc(e,t)};eX.crossTraceCalc=function(e){return K6e._runCrossTraceCalc("treemap",e)}});var rX=ye((P0r,J6e)=>{"use strict";J6e.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var VA=NE(),GLt=rX();$6e.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],l=n.pad[i?"right":"left"],u=n.pad[i?"left":"right"],c=n.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=VA.treemap().tile(HLt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&GLt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function HLt(e,t){switch(e){case"squarify":return VA.treemapSquarify.ratio(t);case"binary":return VA.treemapBinary;case"dice":return VA.treemapDice;case"slice":return VA.treemapSlice;default:return VA.treemapSliceDice}}});var KD=ye((R0r,rLe)=>{"use strict";var Q6e=qa(),GA=ka(),eLe=Pr(),nX=i1(),jLt=bv().resizeText,WLt=WD();function XLt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");jLt(e,t,"treemap"),t.each(function(r){var n=Q6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){Q6e.select(this).call(tLe,o,a,e,{hovered:!1})})})}function tLe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=nX.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(f&&c===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=eLe.castOption(r,s,"marker.line.color")||GA.defaultLine,u=eLe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=GA.combine(GA.addOpacity(r._backgroundColor,.75),c),m;if(d===!0){var b=nX.getMaxDepth(r);isFinite(b)?nX.isLeaf(t)?m=0:m=r._maxVisibleLayers-(t.data.depth-r._entryDepth):m=t.data.height+1}else m=t.data.depth-r._entryDepth,r._atRootLevel||m++;if(m>0)for(var p=0;p{"use strict";var iLe=qa(),JD=Pr(),nLe=So(),ZLt=Zl(),YLt=iX(),aLe=KD().styleOne,aX=X2(),HA=i1(),KLt=QE(),oX=!0;oLe.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,v=a.hasTransition,m=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,k={},M=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=L.hierarchy,S=s/x._entryDepth,g=HA.listPath(n.data,"id"),P=YLt(C.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(z){var q=g.indexOf(z.data.id);return q===-1?!1:(z.x0=S*q,z.x1=S*(q+1),z.y0=o,z.y1=o+l,z.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,HA.getPtId),i.enter().append("g").classed("pathbar",!0),m(i,oX,k,[s,l],f),i.order();var E=i;v&&(E=E.transition().each("end",function(){var z=iLe.select(this);HA.setSliceCursor(z,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),E.each(function(z){z._x0=u(z.x0),z._x1=u(z.x1),z._y0=c(z.y0),z._y1=c(z.y1),z._hoverX=u(z.x1-Math.min(s,l)/2),z._hoverY=c(z.y1-l/2);var q=iLe.select(this),V=JD.ensureSingle(q,"path","surface",function(N){N.style("pointer-events",M?"none":"all")});v?V.transition().attrTween("d",function(N){var H=b(N,oX,k,[s,l]);return function(ie){return f(H(ie))}}):V.attr("d",f),q.call(KLt,n,t,r,{styleOne:aLe,eventDataKeys:aX.eventDataKeys,transitionTime:aX.CLICK_TRANSITION_TIME,transitionEasing:aX.CLICK_TRANSITION_EASING}).call(HA.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),V.call(aLe,z,x,t,{hovered:!1}),z._text=(HA.getPtLabel(z)||"").split("
").join(" ")||"";var G=JD.ensureSingle(q,"g","slicetext"),Z=JD.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),j=JD.ensureUniformFontSize(t,HA.determineTextFont(x,z,T.font,{onPathbar:!0}));Z.text(z._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(nLe.font,j).call(ZLt.convertToTspans,t),z.textBB=nLe.bBox(Z.node()),z.transform=h(z,{fontSize:j.size,onPathbar:!0}),z.transform.fontSize=j.size,v?Z.transition().attrTween("transform",function(N){var H=p(N,oX,k,[s,l]);return function(ie){return d(H(ie))}}):Z.attr("transform",d(z))})}});var fLe=ye((F0r,cLe)=>{"use strict";var lLe=qa(),sX=(j2(),gb(H2)).interpolate,nx=i1(),tk=Pr(),uLe=A_().TEXTPAD,JLt=p2(),$Lt=JLt.toMoveInsideBar,QLt=bv(),lX=QLt.recordMinTextSize,ePt=X2(),tPt=sLe();function Y2(e){return nx.isHierarchyRoot(e)?"":nx.getPtId(e)}cLe.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=nx.findEntryWithLevel(f,l.level),d=lLe.select(n),v=d.selectAll("g.pathbar"),m=d.selectAll("g.slice");if(!h){v.remove(),m.remove();return}var b=nx.isHierarchyRoot(h),p=!o.uniformtext.mode&&nx.hasTransition(i),k=nx.getMaxDepth(l),M=function(Ae){return Ae.data.depth-h.data.depth-1?C+P:-(g+P):0,z={x0:S,x1:S,y0:E,y1:E+g},q=function(Ae,rt,St){var Tt=l.tiling.pad,dt=function(or){return or-Tt<=rt.x0},Et=function(or){return or+Tt>=rt.x1},pt=function(or){return or-Tt<=rt.y0},jt=function(or){return or+Tt>=rt.y1};return Ae.x0===rt.x0&&Ae.x1===rt.x1&&Ae.y0===rt.y0&&Ae.y1===rt.y1?{x0:Ae.x0,x1:Ae.x1,y0:Ae.y0,y1:Ae.y1}:{x0:dt(Ae.x0-Tt)?0:Et(Ae.x0-Tt)?St[0]:Ae.x0,x1:dt(Ae.x1+Tt)?0:Et(Ae.x1+Tt)?St[0]:Ae.x1,y0:pt(Ae.y0-Tt)?0:jt(Ae.y0-Tt)?St[1]:Ae.y0,y1:pt(Ae.y1+Tt)?0:jt(Ae.y1+Tt)?St[1]:Ae.y1}},V=null,G={},Z={},j=null,N=function(Ae,rt){return rt?G[Y2(Ae)]:Z[Y2(Ae)]},H=function(Ae,rt,St,Tt){if(rt)return G[Y2(f)]||z;var dt=Z[l.level]||St;return M(Ae)?q(Ae,dt,Tt):{}};s.hasMultipleRoots&&b&&k++,l._maxDepth=k,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=b;var ie=-x/2+T.l+T.w*(L.x[1]+L.x[0])/2,ae=-C/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),_e=function(Ae){return ie+Ae},Ee=function(Ae){return ae+Ae},Ce=Ee(0),ge=_e(0),re=function(Ae){return ge+Ae},Se=function(Ae){return Ce+Ae};function ke(Ae,rt){return Ae+","+rt}var be=re(0),Be=function(Ae){Ae.x=Math.max(be,Ae.x)},Le=l.pathbar.edgeshape,me=function(Ae){var rt=re(Math.max(Math.min(Ae.x0,Ae.x0),0)),St=re(Math.min(Math.max(Ae.x1,Ae.x1),S)),Tt=Se(Ae.y0),dt=Se(Ae.y1),Et=g/2,pt={},jt={};pt.x=rt,jt.x=St,pt.y=jt.y=(Tt+dt)/2;var or={x:rt,y:Tt},mr={x:St,y:Tt},Ar={x:St,y:dt},ei={x:rt,y:dt};return Le===">"?(or.x-=Et,mr.x-=Et,Ar.x-=Et,ei.x-=Et):Le==="/"?(Ar.x-=Et,ei.x-=Et,pt.x-=Et/2,jt.x-=Et/2):Le==="\\"?(or.x-=Et,mr.x-=Et,pt.x-=Et/2,jt.x-=Et/2):Le==="<"&&(pt.x-=Et,jt.x-=Et),Be(or),Be(ei),Be(pt),Be(mr),Be(Ar),Be(jt),"M"+ke(or.x,or.y)+"L"+ke(mr.x,mr.y)+"L"+ke(jt.x,jt.y)+"L"+ke(Ar.x,Ar.y)+"L"+ke(ei.x,ei.y)+"L"+ke(pt.x,pt.y)+"Z"},Pe=l[c?"tiling":"marker"].pad,ce=function(Ae){return l.textposition.indexOf(Ae)!==-1},He=ce("top"),lt=ce("left"),mt=ce("right"),Ht=ce("bottom"),at=function(Ae){var rt=_e(Ae.x0),St=_e(Ae.x1),Tt=Ee(Ae.y0),dt=Ee(Ae.y1),Et=St-rt,pt=dt-Tt;if(!Et||!pt)return"";var jt=l.marker.cornerradius||0,or=Math.min(jt,Et/2,pt/2);or&&Ae.data&&Ae.data.data&&Ae.data.data.label&&(He&&(or=Math.min(or,Pe.t)),lt&&(or=Math.min(or,Pe.l)),mt&&(or=Math.min(or,Pe.r)),Ht&&(or=Math.min(or,Pe.b)));var mr=function(Ar,ei){return or?"a"+ke(or,or)+" 0 0 1 "+ke(Ar,ei):""};return"M"+ke(rt,Tt+or)+mr(or,-or)+"L"+ke(St-or,Tt)+mr(or,or)+"L"+ke(St,dt-or)+mr(-or,or)+"L"+ke(rt+or,dt)+mr(-or,-or)+"Z"},ct=function(Ae,rt){var St=Ae.x0,Tt=Ae.x1,dt=Ae.y0,Et=Ae.y1,pt=Ae.textBB,jt=He||rt.isHeader&&!Ht,or=jt?"start":Ht?"end":"middle",mr=ce("right"),Ar=ce("left")||rt.onPathbar,ei=Ar?-1:mr?1:0;if(rt.isHeader){if(St+=(c?Pe:Pe.l)-uLe,Tt-=(c?Pe:Pe.r)-uLe,St>=Tt){var qr=(St+Tt)/2;St=qr,Tt=qr}var jr;Ht?(jr=Et-(c?Pe:Pe.b),dt{"use strict";var rPt=qa(),iPt=i1(),nPt=bv(),aPt=nPt.clearMinTextSize,oPt=V0().resizeText,hLe=fLe();dLe.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!n;if(aPt(o,l),c=u.selectAll("g.trace."+o).data(r,function(v){return v[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&iPt.hasTransition(n)){i&&(f=i());var d=rPt.transition().duration(n.duration).ease(n.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});d.each(function(){u.selectAll("g.trace").each(function(v){hLe(t,v,this,n,s)})})}else c.each(function(v){hLe(t,v,this,n,s)}),l.uniformtext.mode&&oPt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var yLe=ye((q0r,mLe)=>{"use strict";var vLe=qa(),$D=Pr(),pLe=So(),sPt=Zl(),lPt=iX(),gLe=KD().styleOne,cX=X2(),ax=i1(),uPt=QE(),cPt=ZD().formatSliceLabel,fX=!1;mLe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,m=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,k={},M=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,S=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=!g&&!x.marker.pad.t||g&&!x.marker.pad.b,E=lPt(n,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),z=E.descendants(),q=1/0,V=-1/0;z.forEach(function(H){var ie=H.depth;ie>=x._maxDepth?(H.x0=H.x1=(H.x0+H.x1)/2,H.y0=H.y1=(H.y0+H.y1)/2):(q=Math.min(q,ie),V=Math.max(V,ie))}),i=i.data(z,ax.getPtId),x._maxVisibleLayers=isFinite(V)?V-q+1:0,i.enter().append("g").classed("slice",!0),v(i,fX,k,[o,s],c),i.order();var G=null;if(d&&p){var Z=ax.getPtId(p);i.each(function(H){G===null&&ax.getPtId(H)===Z&&(G={x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1})})}var j=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var H=vLe.select(this);ax.setSliceCursor(H,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(H){var ie=ax.isHeader(H,x);H._x0=l(H.x0),H._x1=l(H.x1),H._y0=u(H.y0),H._y1=u(H.y1),H._hoverX=l(H.x1-x.marker.pad.r),H._hoverY=u(g?H.y1-x.marker.pad.b/2:H.y0+x.marker.pad.t/2);var ae=vLe.select(this),_e=$D.ensureSingle(ae,"path","surface",function(ke){ke.style("pointer-events",M?"none":"all")});d?_e.transition().attrTween("d",function(ke){var be=m(ke,fX,j(),[o,s]);return function(Be){return c(be(Be))}}):_e.attr("d",c),ae.call(uPt,n,t,r,{styleOne:gLe,eventDataKeys:cX.eventDataKeys,transitionTime:cX.CLICK_TRANSITION_TIME,transitionEasing:cX.CLICK_TRANSITION_EASING}).call(ax.setSliceCursor,t,{isTransitioning:t._transitioning}),_e.call(gLe,H,x,t,{hovered:!1}),H.x0===H.x1||H.y0===H.y1?H._text="":ie?H._text=P?"":ax.getPtLabel(H)||"":H._text=cPt(H,n,x,r,T)||"";var Ee=$D.ensureSingle(ae,"g","slicetext"),Ce=$D.ensureSingle(Ee,"text","",function(ke){ke.attr("data-notex",1)}),ge=$D.ensureUniformFontSize(t,ax.determineTextFont(x,H,T.font)),re=H._text||" ",Se=ie&&re.indexOf("
")===-1;Ce.text(re).classed("slicetext",!0).attr("text-anchor",S?"end":C||Se?"start":"middle").call(pLe.font,ge).call(sPt.convertToTspans,t),H.textBB=pLe.bBox(Ce.node()),H.transform=f(H,{fontSize:ge.size,isHeader:ie}),H.transform.fontSize=ge.size,d?Ce.transition().attrTween("transform",function(ke){var be=b(ke,fX,j(),[o,s]);return function(Be){return h(be(Be))}}):Ce.attr("transform",h(H))}),G}});var xLe=ye((O0r,_Le)=>{"use strict";var fPt=uX(),hPt=yLe();_Le.exports=function(t,r,n,i){return fPt(t,r,n,i,{type:"treemap",drawDescendants:hPt})}});var wLe=ye((B0r,bLe)=>{"use strict";bLe.exports={moduleType:"trace",name:"treemap",basePlotModule:O6e(),categories:[],animatable:!0,attributes:YD(),layoutAttributes:QW(),supplyDefaults:X6e(),supplyLayoutDefaults:Y6e(),calc:tX().calc,crossTraceCalc:tX().crossTraceCalc,plot:xLe(),style:KD().style,colorbar:Qd(),meta:{}}});var ALe=ye((N0r,TLe)=>{"use strict";TLe.exports=wLe()});var MLe=ye(jA=>{"use strict";var SLe=Mc();jA.name="icicle";jA.plot=function(e,t,r,n){SLe.plotBasePlot(jA.name,e,t,r,n)};jA.clean=function(e,t,r,n){SLe.cleanBasePlot(jA.name,e,t,r,n)}});var hX=ye((V0r,CLe)=>{"use strict";var{hovertemplateAttrs:dPt,texttemplateAttrs:vPt,templatefallbackAttrs:ELe}=Ll(),pPt=Tu(),gPt=Cc().attributes,rk=z2(),s0=BE(),QD=YD(),kLe=X2(),mPt=Ao().extendFlat,yPt=Pd().pattern;CLe.exports={labels:s0.labels,parents:s0.parents,values:s0.values,branchvalues:s0.branchvalues,count:s0.count,level:s0.level,maxdepth:s0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:QD.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:mPt({colors:s0.marker.colors,line:s0.marker.line,pattern:yPt,editType:"calc"},pPt("marker",{colorAttr:"colors",anim:!1})),leaf:s0.leaf,pathbar:QD.pathbar,text:rk.text,textinfo:s0.textinfo,texttemplate:vPt({editType:"plot"},{keys:kLe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:ELe({editType:"plot"}),hovertext:rk.hovertext,hoverinfo:s0.hoverinfo,hovertemplate:dPt({},{keys:kLe.eventDataKeys}),hovertemplatefallback:ELe(),textfont:rk.textfont,insidetextfont:rk.insidetextfont,outsidetextfont:QD.outsidetextfont,textposition:QD.textposition,sort:rk.sort,root:s0.root,domain:gPt({name:"icicle",trace:!0,editType:"calc"})}});var dX=ye((G0r,LLe)=>{"use strict";LLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var DLe=ye((H0r,RLe)=>{"use strict";var PLe=Pr(),_Pt=hX(),xPt=ka(),bPt=Cc().defaults,wPt=i0().handleText,TPt=A_().TEXTPAD,APt=q2().handleMarkerDefaults,ILe=tc(),SPt=ILe.hasColorscale,MPt=ILe.handleDefaults;RLe.exports=function(t,r,n,i){function a(d,v){return PLe.coerce(t,r,_Pt,d,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",PLe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),f="auto";wPt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),APt(t,r,i,a);var h=r._hasColorscale=SPt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&MPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:xPt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*TPt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),bPt(r,i,a),r._length=null}});var zLe=ye((j0r,FLe)=>{"use strict";var EPt=Pr(),kPt=dX();FLe.exports=function(t,r){function n(i,a){return EPt.coerce(t,r,kPt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var pX=ye(vX=>{"use strict";var qLe=VE();vX.calc=function(e,t){return qLe.calc(e,t)};vX.crossTraceCalc=function(e){return qLe._runCrossTraceCalc("icicle",e)}});var BLe=ye((X0r,OLe)=>{"use strict";var CPt=NE(),LPt=rX();OLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var c=CPt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&LPt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var gX=ye((Z0r,HLe)=>{"use strict";var NLe=qa(),ULe=ka(),VLe=Pr(),PPt=bv().resizeText,IPt=WD();function RPt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");PPt(e,t,"icicle"),t.each(function(r){var n=NLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){NLe.select(this).call(GLe,o,a,e)})})}function GLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=VLe.castOption(r,o,"marker.line.color")||ULe.defaultLine,l=VLe.castOption(r,o,"marker.line.width")||0;e.call(IPt,t,r,n).style("stroke-width",l).call(ULe.stroke,s).style("opacity",a?r.leaf.opacity:null)}HLe.exports={style:RPt,styleOne:GLe}});var YLe=ye((Y0r,ZLe)=>{"use strict";var jLe=qa(),eF=Pr(),WLe=So(),DPt=Zl(),FPt=BLe(),XLe=gX().styleOne,mX=X2(),WA=i1(),zPt=QE(),qPt=ZD().formatSliceLabel,yX=!1;ZLe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,m=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,k={},M=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,S=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=FPt(n,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),E=P.descendants(),z=1/0,q=-1/0;E.forEach(function(N){var H=N.depth;H>=x._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(z=Math.min(z,H),q=Math.max(q,H))}),i=i.data(E,WA.getPtId),x._maxVisibleLayers=isFinite(q)?q-z+1:0,i.enter().append("g").classed("slice",!0),v(i,yX,k,[o,s],c),i.order();var V=null;if(d&&p){var G=WA.getPtId(p);i.each(function(N){V===null&&WA.getPtId(N)===G&&(V={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var Z=function(){return V||{x0:0,x1:o,y0:0,y1:s}},j=i;return d&&(j=j.transition().each("end",function(){var N=jLe.select(this);WA.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),j.each(function(N){N._x0=l(N.x0),N._x1=l(N.x1),N._y0=u(N.y0),N._y1=u(N.y1),N._hoverX=l(N.x1-x.tiling.pad),N._hoverY=u(g?N.y1-x.tiling.pad/2:N.y0+x.tiling.pad/2);var H=jLe.select(this),ie=eF.ensureSingle(H,"path","surface",function(Ce){Ce.style("pointer-events",M?"none":"all")});d?ie.transition().attrTween("d",function(Ce){var ge=m(Ce,yX,Z(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(re){return c(ge(re))}}):ie.attr("d",c),H.call(zPt,n,t,r,{styleOne:XLe,eventDataKeys:mX.eventDataKeys,transitionTime:mX.CLICK_TRANSITION_TIME,transitionEasing:mX.CLICK_TRANSITION_EASING}).call(WA.setSliceCursor,t,{isTransitioning:t._transitioning}),ie.call(XLe,N,x,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=qPt(N,n,x,r,T)||"";var ae=eF.ensureSingle(H,"g","slicetext"),_e=eF.ensureSingle(ae,"text","",function(Ce){Ce.attr("data-notex",1)}),Ee=eF.ensureUniformFontSize(t,WA.determineTextFont(x,N,T.font));_e.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",S?"end":C?"start":"middle").call(WLe.font,Ee).call(DPt.convertToTspans,t),N.textBB=WLe.bBox(_e.node()),N.transform=f(N,{fontSize:Ee.size}),N.transform.fontSize=Ee.size,d?_e.transition().attrTween("transform",function(Ce){var ge=b(Ce,yX,Z(),[o,s]);return function(re){return h(ge(re))}}):_e.attr("transform",h(N))}),V}});var JLe=ye((K0r,KLe)=>{"use strict";var OPt=uX(),BPt=YLe();KLe.exports=function(t,r,n,i){return OPt(t,r,n,i,{type:"icicle",drawDescendants:BPt})}});var QLe=ye((J0r,$Le)=>{"use strict";$Le.exports={moduleType:"trace",name:"icicle",basePlotModule:MLe(),categories:[],animatable:!0,attributes:hX(),layoutAttributes:dX(),supplyDefaults:DLe(),supplyLayoutDefaults:zLe(),calc:pX().calc,crossTraceCalc:pX().crossTraceCalc,plot:JLe(),style:gX().style,colorbar:Qd(),meta:{}}});var tPe=ye(($0r,ePe)=>{"use strict";ePe.exports=QLe()});var iPe=ye(XA=>{"use strict";var rPe=Mc();XA.name="funnelarea";XA.plot=function(e,t,r,n){rPe.plotBasePlot(XA.name,e,t,r,n)};XA.clean=function(e,t,r,n){rPe.cleanBasePlot(XA.name,e,t,r,n)}});var _X=ye((egr,aPe)=>{"use strict";var nv=z2(),NPt=Gl(),UPt=Cc().attributes,{hovertemplateAttrs:VPt,texttemplateAttrs:GPt,templatefallbackAttrs:nPe}=Ll(),K2=Ao().extendFlat;aPe.exports={labels:nv.labels,label0:nv.label0,dlabel:nv.dlabel,values:nv.values,marker:{colors:nv.marker.colors,line:{color:K2({},nv.marker.line.color,{dflt:null}),width:K2({},nv.marker.line.width,{dflt:1}),editType:"calc"},pattern:nv.marker.pattern,editType:"calc"},text:nv.text,hovertext:nv.hovertext,scalegroup:K2({},nv.scalegroup,{}),textinfo:K2({},nv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:GPt({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:nPe({editType:"plot"}),hoverinfo:K2({},NPt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:VPt({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:nPe(),textposition:K2({},nv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:nv.textfont,insidetextfont:nv.insidetextfont,title:{text:nv.title.text,font:nv.title.font,position:K2({},nv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:UPt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var xX=ye((tgr,oPe)=>{"use strict";var HPt=bD().hiddenlabels;oPe.exports={hiddenlabels:HPt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var uPe=ye((rgr,lPe)=>{"use strict";var sPe=Pr(),jPt=_X(),WPt=Cc().defaults,XPt=i0().handleText,ZPt=q2().handleLabelsAndValues,YPt=q2().handleMarkerDefaults;lPe.exports=function(t,r,n,i){function a(m,b){return sPe.coerce(t,r,jPt,m,b)}var o=a("labels"),s=a("values"),l=ZPt(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,YPt(t,r,i,a),a("scalegroup");var c=a("text"),f=a("texttemplate");a("texttemplatefallback");var h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),f||h&&h!=="none"){var d=a("textposition");XPt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");WPt(r,i,a);var v=a("title.text");v&&(a("title.position"),sPe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var fPe=ye((igr,cPe)=>{"use strict";var KPt=Pr(),JPt=xX();cPe.exports=function(t,r){function n(i,a){return KPt.coerce(t,r,JPt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var bX=ye((ngr,dPe)=>{"use strict";var hPe=CA();function $Pt(e,t){return hPe.calc(e,t)}function QPt(e){hPe.crossTraceCalc(e,{type:"funnelarea"})}dPe.exports={calc:$Pt,crossTraceCalc:QPt}});var yPe=ye((agr,mPe)=>{"use strict";var J2=qa(),wX=So(),ox=Pr(),eIt=ox.strScale,vPe=ox.strTranslate,pPe=Zl(),tIt=p2(),rIt=tIt.toMoveInsideBar,gPe=bv(),iIt=gPe.recordMinTextSize,nIt=gPe.clearMinTextSize,aIt=g_(),ZA=SD(),oIt=ZA.attachFxHandlers,sIt=ZA.determineInsideTextFont,lIt=ZA.layoutAreas,uIt=ZA.prerenderTitles,cIt=ZA.positionTitleOutside,fIt=ZA.formatSliceLabel;mPe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;nIt("funnelarea",i),uIt(r,t),lIt(r,i._size),ox.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=J2.select(this),s=a[0],l=s.trace;dIt(a),o.each(function(){var u=J2.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(f,h){if(f.hidden){J2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,m=J2.select(this),b=m.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),m.call(oIt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+TX(f.TR,f.BR)+TX(f.BR,f.BL)+TX(f.BL,f.TL)+"Z";b.attr("d",p),fIt(t,f,s);var k=aIt.castOption(l.textposition,f.pts),M=m.selectAll("g.slicetext").data(f.text&&k!=="none"?[0]:[]);M.enter().append("g").classed("slicetext",!0),M.exit().remove(),M.each(function(){var T=ox.ensureSingle(J2.select(this),"text","",function(z){z.attr("data-notex",1)}),L=ox.ensureUniformFontSize(t,sIt(l,f,i.font));T.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(wX.font,L).call(pPe.convertToTspans,t);var x=wX.bBox(T.node()),C,S,g,P=Math.min(f.BL[1],f.BR[1])+v,E=Math.max(f.TL[1],f.TR[1])+v;S=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,C=rIt(S,g,P,E,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),C.fontSize=L.size,iIt(l.type,C,i),a[h].transform=C,ox.setTransormAndDisplay(T,C)})});var c=J2.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);c.enter().append("g").classed("titletext",!0),c.exit().remove(),c.each(function(){var f=ox.ensureSingle(J2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=ox.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(wX.font,l.title.font).call(pPe.convertToTspans,t);var d=cIt(s,i._size);f.attr("transform",vPe(d.x,d.y)+eIt(Math.min(1,d.scale))+vPe(d.tx,d.ty))})})})};function TX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function hIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function dIt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var q=Math.sqrt(u);return{x:q,y:-q}}function f(){var q=c();return[q.x,q.y]}var h,d=[];d.push(f());var v,m;for(v=e.length-1;v>-1;v--)if(m=e[v],!m.hidden){var b=m.v/l;u+=b,d.push(f())}var p=1/0,k=-1/0;for(v=0;v-1;v--)if(m=e[v],!m.hidden){P+=1;var E=d[P][0],z=d[P][1];m.TL=[-E,z],m.TR=[E,z],m.BL=S,m.BR=g,m.pxmid=hIt(m.TR,m.BR),S=m.TL,g=m.TR}}});var bPe=ye((ogr,xPe)=>{"use strict";var _Pe=qa(),vIt=Y3(),pIt=bv().resizeText;xPe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");pIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=_Pe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){_Pe.select(this).call(vIt,s,a,t)})})}});var TPe=ye((sgr,wPe)=>{"use strict";wPe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:iPe(),categories:["pie-like","funnelarea","showLegend"],attributes:_X(),layoutAttributes:xX(),supplyDefaults:uPe(),supplyLayoutDefaults:fPe(),calc:bX().calc,crossTraceCalc:bX().crossTraceCalc,plot:yPe(),style:bPe(),styleOne:Y3(),meta:{}}});var SPe=ye((lgr,APe)=>{"use strict";APe.exports=TPe()});var qd=ye((ugr,MPe)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function l(tt){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(je){return typeof je}:function(je){return je&&typeof Symbol=="function"&&je.constructor===Symbol&&je!==Symbol.prototype?"symbol":typeof je},l(tt)}var u=o(7507),c=o(3778),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.hp=m,s=P,a.IS=50;var h=2147483647;s=h,m.TYPED_ARRAY_SUPPORT=d(),!m.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{var tt=new Uint8Array(1),je={foo:function(){return 42}};return Object.setPrototypeOf(je,Uint8Array.prototype),Object.setPrototypeOf(tt,je),tt.foo()===42}catch(Ue){return!1}}Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}});function v(tt){if(tt>h)throw new RangeError('The value "'+tt+'" is invalid for option "size"');var je=new Uint8Array(tt);return Object.setPrototypeOf(je,m.prototype),je}function m(tt,je,Ue){if(typeof tt=="number"){if(typeof je=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return M(tt)}return b(tt,je,Ue)}m.poolSize=8192;function b(tt,je,Ue){if(typeof tt=="string")return T(tt,je);if(ArrayBuffer.isView(tt))return x(tt);if(tt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+l(tt));if(ar(tt,ArrayBuffer)||tt&&ar(tt.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ar(tt,SharedArrayBuffer)||tt&&ar(tt.buffer,SharedArrayBuffer)))return C(tt,je,Ue);if(typeof tt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ae=tt.valueOf&&tt.valueOf();if(Ae!=null&&Ae!==tt)return m.from(Ae,je,Ue);var rt=S(tt);if(rt)return rt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof tt[Symbol.toPrimitive]=="function")return m.from(tt[Symbol.toPrimitive]("string"),je,Ue);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+l(tt))}m.from=function(tt,je,Ue){return b(tt,je,Ue)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array);function p(tt){if(typeof tt!="number")throw new TypeError('"size" argument must be of type number');if(tt<0)throw new RangeError('The value "'+tt+'" is invalid for option "size"')}function k(tt,je,Ue){return p(tt),tt<=0?v(tt):je!==void 0?typeof Ue=="string"?v(tt).fill(je,Ue):v(tt).fill(je):v(tt)}m.alloc=function(tt,je,Ue){return k(tt,je,Ue)};function M(tt){return p(tt),v(tt<0?0:g(tt)|0)}m.allocUnsafe=function(tt){return M(tt)},m.allocUnsafeSlow=function(tt){return M(tt)};function T(tt,je){if((typeof je!="string"||je==="")&&(je="utf8"),!m.isEncoding(je))throw new TypeError("Unknown encoding: "+je);var Ue=E(tt,je)|0,Ae=v(Ue),rt=Ae.write(tt,je);return rt!==Ue&&(Ae=Ae.slice(0,rt)),Ae}function L(tt){for(var je=tt.length<0?0:g(tt.length)|0,Ue=v(je),Ae=0;Ae=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return tt|0}function P(tt){return+tt!=tt&&(tt=0),m.alloc(+tt)}m.isBuffer=function(je){return je!=null&&je._isBuffer===!0&&je!==m.prototype},m.compare=function(je,Ue){if(ar(je,Uint8Array)&&(je=m.from(je,je.offset,je.byteLength)),ar(Ue,Uint8Array)&&(Ue=m.from(Ue,Ue.offset,Ue.byteLength)),!m.isBuffer(je)||!m.isBuffer(Ue))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(je===Ue)return 0;for(var Ae=je.length,rt=Ue.length,St=0,Tt=Math.min(Ae,rt);Strt.length?m.from(Tt).copy(rt,St):Uint8Array.prototype.set.call(rt,Tt,St);else if(m.isBuffer(Tt))Tt.copy(rt,St);else throw new TypeError('"list" argument must be an Array of Buffers');St+=Tt.length}return rt};function E(tt,je){if(m.isBuffer(tt))return tt.length;if(ArrayBuffer.isView(tt)||ar(tt,ArrayBuffer))return tt.byteLength;if(typeof tt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+l(tt));var Ue=tt.length,Ae=arguments.length>2&&arguments[2]===!0;if(!Ae&&Ue===0)return 0;for(var rt=!1;;)switch(je){case"ascii":case"latin1":case"binary":return Ue;case"utf8":case"utf-8":return lt(tt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue*2;case"hex":return Ue>>>1;case"base64":return at(tt).length;default:if(rt)return Ae?-1:lt(tt).length;je=(""+je).toLowerCase(),rt=!0}}m.byteLength=E;function z(tt,je,Ue){var Ae=!1;if((je===void 0||je<0)&&(je=0),je>this.length||((Ue===void 0||Ue>this.length)&&(Ue=this.length),Ue<=0)||(Ue>>>=0,je>>>=0,Ue<=je))return"";for(tt||(tt="utf8");;)switch(tt){case"hex":return Se(this,je,Ue);case"utf8":case"utf-8":return _e(this,je,Ue);case"ascii":return ge(this,je,Ue);case"latin1":case"binary":return re(this,je,Ue);case"base64":return ae(this,je,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,je,Ue);default:if(Ae)throw new TypeError("Unknown encoding: "+tt);tt=(tt+"").toLowerCase(),Ae=!0}}m.prototype._isBuffer=!0;function q(tt,je,Ue){var Ae=tt[je];tt[je]=tt[Ue],tt[Ue]=Ae}m.prototype.swap16=function(){var je=this.length;if(je%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ue=0;UeUe&&(je+=" ... "),""},f&&(m.prototype[f]=m.prototype.inspect),m.prototype.compare=function(je,Ue,Ae,rt,St){if(ar(je,Uint8Array)&&(je=m.from(je,je.offset,je.byteLength)),!m.isBuffer(je))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+l(je));if(Ue===void 0&&(Ue=0),Ae===void 0&&(Ae=je?je.length:0),rt===void 0&&(rt=0),St===void 0&&(St=this.length),Ue<0||Ae>je.length||rt<0||St>this.length)throw new RangeError("out of range index");if(rt>=St&&Ue>=Ae)return 0;if(rt>=St)return-1;if(Ue>=Ae)return 1;if(Ue>>>=0,Ae>>>=0,rt>>>=0,St>>>=0,this===je)return 0;for(var Tt=St-rt,dt=Ae-Ue,Et=Math.min(Tt,dt),pt=this.slice(rt,St),jt=je.slice(Ue,Ae),or=0;or2147483647?Ue=2147483647:Ue<-2147483648&&(Ue=-2147483648),Ue=+Ue,Vt(Ue)&&(Ue=rt?0:tt.length-1),Ue<0&&(Ue=tt.length+Ue),Ue>=tt.length){if(rt)return-1;Ue=tt.length-1}else if(Ue<0)if(rt)Ue=0;else return-1;if(typeof je=="string"&&(je=m.from(je,Ae)),m.isBuffer(je))return je.length===0?-1:G(tt,je,Ue,Ae,rt);if(typeof je=="number")return je=je&255,typeof Uint8Array.prototype.indexOf=="function"?rt?Uint8Array.prototype.indexOf.call(tt,je,Ue):Uint8Array.prototype.lastIndexOf.call(tt,je,Ue):G(tt,[je],Ue,Ae,rt);throw new TypeError("val must be string, number or Buffer")}function G(tt,je,Ue,Ae,rt){var St=1,Tt=tt.length,dt=je.length;if(Ae!==void 0&&(Ae=String(Ae).toLowerCase(),Ae==="ucs2"||Ae==="ucs-2"||Ae==="utf16le"||Ae==="utf-16le")){if(tt.length<2||je.length<2)return-1;St=2,Tt/=2,dt/=2,Ue/=2}function Et(Ar,ei){return St===1?Ar[ei]:Ar.readUInt16BE(ei*St)}var pt;if(rt){var jt=-1;for(pt=Ue;ptTt&&(Ue=Tt-dt),pt=Ue;pt>=0;pt--){for(var or=!0,mr=0;mrrt&&(Ae=rt)):Ae=rt;var St=je.length;Ae>St/2&&(Ae=St/2);for(var Tt=0;Tt>>0,isFinite(Ae)?(Ae=Ae>>>0,rt===void 0&&(rt="utf8")):(rt=Ae,Ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var St=this.length-Ue;if((Ae===void 0||Ae>St)&&(Ae=St),je.length>0&&(Ae<0||Ue<0)||Ue>this.length)throw new RangeError("Attempt to write outside buffer bounds");rt||(rt="utf8");for(var Tt=!1;;)switch(rt){case"hex":return Z(this,je,Ue,Ae);case"utf8":case"utf-8":return j(this,je,Ue,Ae);case"ascii":case"latin1":case"binary":return N(this,je,Ue,Ae);case"base64":return H(this,je,Ue,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,je,Ue,Ae);default:if(Tt)throw new TypeError("Unknown encoding: "+rt);rt=(""+rt).toLowerCase(),Tt=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(tt,je,Ue){return je===0&&Ue===tt.length?u.fromByteArray(tt):u.fromByteArray(tt.slice(je,Ue))}function _e(tt,je,Ue){Ue=Math.min(tt.length,Ue);for(var Ae=[],rt=je;rt239?4:St>223?3:St>191?2:1;if(rt+dt<=Ue){var Et,pt,jt,or;switch(dt){case 1:St<128&&(Tt=St);break;case 2:Et=tt[rt+1],(Et&192)===128&&(or=(St&31)<<6|Et&63,or>127&&(Tt=or));break;case 3:Et=tt[rt+1],pt=tt[rt+2],(Et&192)===128&&(pt&192)===128&&(or=(St&15)<<12|(Et&63)<<6|pt&63,or>2047&&(or<55296||or>57343)&&(Tt=or));break;case 4:Et=tt[rt+1],pt=tt[rt+2],jt=tt[rt+3],(Et&192)===128&&(pt&192)===128&&(jt&192)===128&&(or=(St&15)<<18|(Et&63)<<12|(pt&63)<<6|jt&63,or>65535&&or<1114112&&(Tt=or))}}Tt===null?(Tt=65533,dt=1):Tt>65535&&(Tt-=65536,Ae.push(Tt>>>10&1023|55296),Tt=56320|Tt&1023),Ae.push(Tt),rt+=dt}return Ce(Ae)}var Ee=4096;function Ce(tt){var je=tt.length;if(je<=Ee)return String.fromCharCode.apply(String,tt);for(var Ue="",Ae=0;AeAe)&&(Ue=Ae);for(var rt="",St=je;StAe&&(je=Ae),Ue<0?(Ue+=Ae,Ue<0&&(Ue=0)):Ue>Ae&&(Ue=Ae),UeUe)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUintLE=m.prototype.readUIntLE=function(je,Ue,Ae){je=je>>>0,Ue=Ue>>>0,Ae||be(je,Ue,this.length);for(var rt=this[je],St=1,Tt=0;++Tt>>0,Ue=Ue>>>0,Ae||be(je,Ue,this.length);for(var rt=this[je+--Ue],St=1;Ue>0&&(St*=256);)rt+=this[je+--Ue]*St;return rt},m.prototype.readUint8=m.prototype.readUInt8=function(je,Ue){return je=je>>>0,Ue||be(je,1,this.length),this[je]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(je,Ue){return je=je>>>0,Ue||be(je,2,this.length),this[je]|this[je+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(je,Ue){return je=je>>>0,Ue||be(je,2,this.length),this[je]<<8|this[je+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),(this[je]|this[je+1]<<8|this[je+2]<<16)+this[je+3]*16777216},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),this[je]*16777216+(this[je+1]<<16|this[je+2]<<8|this[je+3])},m.prototype.readIntLE=function(je,Ue,Ae){je=je>>>0,Ue=Ue>>>0,Ae||be(je,Ue,this.length);for(var rt=this[je],St=1,Tt=0;++Tt=St&&(rt-=Math.pow(2,8*Ue)),rt},m.prototype.readIntBE=function(je,Ue,Ae){je=je>>>0,Ue=Ue>>>0,Ae||be(je,Ue,this.length);for(var rt=Ue,St=1,Tt=this[je+--rt];rt>0&&(St*=256);)Tt+=this[je+--rt]*St;return St*=128,Tt>=St&&(Tt-=Math.pow(2,8*Ue)),Tt},m.prototype.readInt8=function(je,Ue){return je=je>>>0,Ue||be(je,1,this.length),this[je]&128?(255-this[je]+1)*-1:this[je]},m.prototype.readInt16LE=function(je,Ue){je=je>>>0,Ue||be(je,2,this.length);var Ae=this[je]|this[je+1]<<8;return Ae&32768?Ae|4294901760:Ae},m.prototype.readInt16BE=function(je,Ue){je=je>>>0,Ue||be(je,2,this.length);var Ae=this[je+1]|this[je]<<8;return Ae&32768?Ae|4294901760:Ae},m.prototype.readInt32LE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),this[je]|this[je+1]<<8|this[je+2]<<16|this[je+3]<<24},m.prototype.readInt32BE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),this[je]<<24|this[je+1]<<16|this[je+2]<<8|this[je+3]},m.prototype.readFloatLE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),c.read(this,je,!0,23,4)},m.prototype.readFloatBE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),c.read(this,je,!1,23,4)},m.prototype.readDoubleLE=function(je,Ue){return je=je>>>0,Ue||be(je,8,this.length),c.read(this,je,!0,52,8)},m.prototype.readDoubleBE=function(je,Ue){return je=je>>>0,Ue||be(je,8,this.length),c.read(this,je,!1,52,8)};function Be(tt,je,Ue,Ae,rt,St){if(!m.isBuffer(tt))throw new TypeError('"buffer" argument must be a Buffer instance');if(je>rt||jett.length)throw new RangeError("Index out of range")}m.prototype.writeUintLE=m.prototype.writeUIntLE=function(je,Ue,Ae,rt){if(je=+je,Ue=Ue>>>0,Ae=Ae>>>0,!rt){var St=Math.pow(2,8*Ae)-1;Be(this,je,Ue,Ae,St,0)}var Tt=1,dt=0;for(this[Ue]=je&255;++dt>>0,Ae=Ae>>>0,!rt){var St=Math.pow(2,8*Ae)-1;Be(this,je,Ue,Ae,St,0)}var Tt=Ae-1,dt=1;for(this[Ue+Tt]=je&255;--Tt>=0&&(dt*=256);)this[Ue+Tt]=je/dt&255;return Ue+Ae},m.prototype.writeUint8=m.prototype.writeUInt8=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,1,255,0),this[Ue]=je&255,Ue+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,2,65535,0),this[Ue]=je&255,this[Ue+1]=je>>>8,Ue+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,2,65535,0),this[Ue]=je>>>8,this[Ue+1]=je&255,Ue+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,4,4294967295,0),this[Ue+3]=je>>>24,this[Ue+2]=je>>>16,this[Ue+1]=je>>>8,this[Ue]=je&255,Ue+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,4,4294967295,0),this[Ue]=je>>>24,this[Ue+1]=je>>>16,this[Ue+2]=je>>>8,this[Ue+3]=je&255,Ue+4},m.prototype.writeIntLE=function(je,Ue,Ae,rt){if(je=+je,Ue=Ue>>>0,!rt){var St=Math.pow(2,8*Ae-1);Be(this,je,Ue,Ae,St-1,-St)}var Tt=0,dt=1,Et=0;for(this[Ue]=je&255;++Tt>0)-Et&255;return Ue+Ae},m.prototype.writeIntBE=function(je,Ue,Ae,rt){if(je=+je,Ue=Ue>>>0,!rt){var St=Math.pow(2,8*Ae-1);Be(this,je,Ue,Ae,St-1,-St)}var Tt=Ae-1,dt=1,Et=0;for(this[Ue+Tt]=je&255;--Tt>=0&&(dt*=256);)je<0&&Et===0&&this[Ue+Tt+1]!==0&&(Et=1),this[Ue+Tt]=(je/dt>>0)-Et&255;return Ue+Ae},m.prototype.writeInt8=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,1,127,-128),je<0&&(je=255+je+1),this[Ue]=je&255,Ue+1},m.prototype.writeInt16LE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,2,32767,-32768),this[Ue]=je&255,this[Ue+1]=je>>>8,Ue+2},m.prototype.writeInt16BE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,2,32767,-32768),this[Ue]=je>>>8,this[Ue+1]=je&255,Ue+2},m.prototype.writeInt32LE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,4,2147483647,-2147483648),this[Ue]=je&255,this[Ue+1]=je>>>8,this[Ue+2]=je>>>16,this[Ue+3]=je>>>24,Ue+4},m.prototype.writeInt32BE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,4,2147483647,-2147483648),je<0&&(je=4294967295+je+1),this[Ue]=je>>>24,this[Ue+1]=je>>>16,this[Ue+2]=je>>>8,this[Ue+3]=je&255,Ue+4};function Le(tt,je,Ue,Ae,rt,St){if(Ue+Ae>tt.length)throw new RangeError("Index out of range");if(Ue<0)throw new RangeError("Index out of range")}function me(tt,je,Ue,Ae,rt){return je=+je,Ue=Ue>>>0,rt||Le(tt,je,Ue,4,34028234663852886e22,-34028234663852886e22),c.write(tt,je,Ue,Ae,23,4),Ue+4}m.prototype.writeFloatLE=function(je,Ue,Ae){return me(this,je,Ue,!0,Ae)},m.prototype.writeFloatBE=function(je,Ue,Ae){return me(this,je,Ue,!1,Ae)};function Pe(tt,je,Ue,Ae,rt){return je=+je,Ue=Ue>>>0,rt||Le(tt,je,Ue,8,17976931348623157e292,-17976931348623157e292),c.write(tt,je,Ue,Ae,52,8),Ue+8}m.prototype.writeDoubleLE=function(je,Ue,Ae){return Pe(this,je,Ue,!0,Ae)},m.prototype.writeDoubleBE=function(je,Ue,Ae){return Pe(this,je,Ue,!1,Ae)},m.prototype.copy=function(je,Ue,Ae,rt){if(!m.isBuffer(je))throw new TypeError("argument should be a Buffer");if(Ae||(Ae=0),!rt&&rt!==0&&(rt=this.length),Ue>=je.length&&(Ue=je.length),Ue||(Ue=0),rt>0&&rt=this.length)throw new RangeError("Index out of range");if(rt<0)throw new RangeError("sourceEnd out of bounds");rt>this.length&&(rt=this.length),je.length-Ue>>0,Ae=Ae===void 0?this.length:Ae>>>0,je||(je=0);var Tt;if(typeof je=="number")for(Tt=Ue;Tt55295&&Ue<57344){if(!rt){if(Ue>56319){(je-=3)>-1&&St.push(239,191,189);continue}else if(Tt+1===Ae){(je-=3)>-1&&St.push(239,191,189);continue}rt=Ue;continue}if(Ue<56320){(je-=3)>-1&&St.push(239,191,189),rt=Ue;continue}Ue=(rt-55296<<10|Ue-56320)+65536}else rt&&(je-=3)>-1&&St.push(239,191,189);if(rt=null,Ue<128){if((je-=1)<0)break;St.push(Ue)}else if(Ue<2048){if((je-=2)<0)break;St.push(Ue>>6|192,Ue&63|128)}else if(Ue<65536){if((je-=3)<0)break;St.push(Ue>>12|224,Ue>>6&63|128,Ue&63|128)}else if(Ue<1114112){if((je-=4)<0)break;St.push(Ue>>18|240,Ue>>12&63|128,Ue>>6&63|128,Ue&63|128)}else throw new Error("Invalid code point")}return St}function mt(tt){for(var je=[],Ue=0;Ue>8,rt=Ue%256,St.push(rt),St.push(Ae);return St}function at(tt){return u.toByteArray(He(tt))}function ct(tt,je,Ue,Ae){for(var rt=0;rt=je.length||rt>=tt.length);++rt)je[rt+Ue]=tt[rt];return rt}function ar(tt,je){return tt instanceof je||tt!=null&&tt.constructor!=null&&tt.constructor.name!=null&&tt.constructor.name===je.name}function Vt(tt){return tt!==tt}var rr=function(){for(var tt="0123456789abcdef",je=new Array(256),Ue=0;Ue<16;++Ue)for(var Ae=Ue*16,rt=0;rt<16;++rt)je[Ae+rt]=tt[Ue]+tt[rt];return je}()},9216:function(i){"use strict";i.exports=l,i.exports.isMobile=l,i.exports.default=l;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function l(u){u||(u={});var c=u.ua;if(!c&&typeof navigator!="undefined"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var f=a.test(c)&&!o.test(c)||!!u.tablet&&s.test(c);return!f&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(d,v){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(m){return d[m]}),this._mode=v,this._active=d[v],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var f=c.prototype;f.flush=function(d){for(var v=this._controllerList,m=0;m0)throw new Error("Invalid string. Length must be a multiple of 4");var L=M.indexOf("=");L===-1&&(L=T);var x=L===T?0:4-L%4;return[L,x]}function d(M){var T=h(M),L=T[0],x=T[1];return(L+x)*3/4-x}function v(M,T,L){return(T+L)*3/4-L}function m(M){var T,L=h(M),x=L[0],C=L[1],S=new l(v(M,x,C)),g=0,P=C>0?x-4:x,E;for(E=0;E>16&255,S[g++]=T>>8&255,S[g++]=T&255;return C===2&&(T=s[M.charCodeAt(E)]<<2|s[M.charCodeAt(E+1)]>>4,S[g++]=T&255),C===1&&(T=s[M.charCodeAt(E)]<<10|s[M.charCodeAt(E+1)]<<4|s[M.charCodeAt(E+2)]>>2,S[g++]=T>>8&255,S[g++]=T&255),S}function b(M){return o[M>>18&63]+o[M>>12&63]+o[M>>6&63]+o[M&63]}function p(M,T,L){for(var x,C=[],S=T;SP?P:g+S));return x===1?(T=M[L-1],C.push(o[T>>2]+o[T<<4&63]+"==")):x===2&&(T=(M[L-2]<<8)+M[L-1],C.push(o[T>>10]+o[T>>4&63]+o[T<<2&63]+"=")),C.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).add(c[0].mul(u[1])),u[1].mul(c[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);i.exports=d;function d(v,m){if(s(v))return m?h(v,d(m)):[v[0].clone(),v[1].clone()];var b=0,p,k;if(l(v))p=v.clone();else if(typeof v=="string")p=c(v);else{if(v===0)return[u(0),u(1)];if(v===Math.floor(v))p=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),b-=256;p=u(v)}}if(s(m))p.mul(m[1]),k=m[0].clone();else if(l(m))k=m.clone();else if(typeof m=="string")k=c(m);else if(!m)k=u(1);else if(m===Math.floor(m))k=u(m);else{for(;m!==Math.floor(m);)m=m*Math.pow(2,256),b+=256;k=u(m)}return b>0?p=p.ushln(b):b<0&&(k=k.ushln(-b)),f(p,k)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){var c=u.length,f=u.words,h=0;if(c===1)h=f[0];else if(c===2)h=f[0]+f[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651:function(i,a,o){"use strict";var s=o(6859),l=o(2361);i.exports=u;function u(c){var f=l.exponent(c);return f<52?new s(c):new s(c*Math.pow(2,52-f)).ushln(f-52)}},869:function(i,a,o){"use strict";var s=o(2651),l=o(5716);i.exports=u;function u(c,f){var h=l(c),d=l(f);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(c=c.neg(),f=f.neg());var v=c.gcd(f);return v.cmpn(1)?[c.div(v),f.div(v)]:[c,f]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return new s(u)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){return s(u[0])*s(u[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).sub(u[1].mul(c[0])),u[1].mul(c[1]))}},946:function(i,a,o){"use strict";var s=o(1369),l=o(4025);i.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var d=f.abs().divmod(h.abs()),v=d.div,m=s(v),b=d.mod,p=f.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return p*m;if(m){var k=l(m)+4,M=s(b.ushln(k).divRound(h));return p*(m+M*Math.pow(2,-k))}else{var T=h.bitLength()-b.bitLength()+53,M=s(b.ushln(T).divRound(h));return T<1023?p*M*Math.pow(2,-T):(M*=Math.pow(2,-1023),p*M*Math.pow(2,1023-T))}}},2478:function(i){"use strict";function a(f,h,d,v,m){for(var b=m+1;v<=m;){var p=v+m>>>1,k=f[p],M=d!==void 0?d(k,h):k-h;M>=0?(b=p,m=p-1):v=p+1}return b}function o(f,h,d,v,m){for(var b=m+1;v<=m;){var p=v+m>>>1,k=f[p],M=d!==void 0?d(k,h):k-h;M>0?(b=p,m=p-1):v=p+1}return b}function s(f,h,d,v,m){for(var b=v-1;v<=m;){var p=v+m>>>1,k=f[p],M=d!==void 0?d(k,h):k-h;M<0?(b=p,v=p+1):m=p-1}return b}function l(f,h,d,v,m){for(var b=v-1;v<=m;){var p=v+m>>>1,k=f[p],M=d!==void 0?d(k,h):k-h;M<=0?(b=p,v=p+1):m=p-1}return b}function u(f,h,d,v,m){for(;v<=m;){var b=v+m>>>1,p=f[b],k=d!==void 0?d(p,h):p-h;if(k===0)return b;k<=0?v=b+1:m=b-1}return-1}function c(f,h,d,v,m,b){return typeof d=="function"?b(f,h,d,v===void 0?0:v|0,m===void 0?f.length-1:m|0):b(f,h,void 0,d===void 0?0:d|0,v===void 0?f.length-1:v|0)}i.exports={ge:function(f,h,d,v,m){return c(f,h,d,v,m,a)},gt:function(f,h,d,v,m){return c(f,h,d,v,m,o)},lt:function(f,h,d,v,m){return c(f,h,d,v,m,s)},le:function(f,h,d,v,m){return c(f,h,d,v,m,l)},eq:function(f,h,d,v,m){return c(f,h,d,v,m,u)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,l){"use strict";function u(j,N){if(!j)throw new Error(N||"Assertion failed")}function c(j,N){j.super_=N;var H=function(){};H.prototype=N.prototype,j.prototype=new H,j.prototype.constructor=j}function f(j,N,H){if(f.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((N==="le"||N==="be")&&(H=N,N=10),this._init(j||0,N||10,H||"be"))}typeof s=="object"?s.exports=f:l.BN=f,f.BN=f,f.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(j){}f.isBN=function(N){return N instanceof f?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===f.wordSize&&Array.isArray(N.words)},f.max=function(N,H){return N.cmp(H)>0?N:H},f.min=function(N,H){return N.cmp(H)<0?N:H},f.prototype._init=function(N,H,ie){if(typeof N=="number")return this._initNumber(N,H,ie);if(typeof N=="object")return this._initArray(N,H,ie);H==="hex"&&(H=16),u(H===(H|0)&&H>=2&&H<=36),N=N.toString().replace(/\s+/g,"");var ae=0;N[0]==="-"&&(ae++,this.negative=1),ae=0;ae-=3)Ee=N[ae]|N[ae-1]<<8|N[ae-2]<<16,this.words[_e]|=Ee<>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,_e++);else if(ie==="le")for(ae=0,_e=0;ae>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,_e++);return this.strip()};function d(j,N){var H=j.charCodeAt(N);return H>=65&&H<=70?H-55:H>=97&&H<=102?H-87:H-48&15}function v(j,N,H){var ie=d(j,H);return H-1>=N&&(ie|=d(j,H-1)<<4),ie}f.prototype._parseHex=function(N,H,ie){this.length=Math.ceil((N.length-H)/6),this.words=new Array(this.length);for(var ae=0;ae=H;ae-=2)Ce=v(N,H,ae)<<_e,this.words[Ee]|=Ce&67108863,_e>=18?(_e-=18,Ee+=1,this.words[Ee]|=Ce>>>26):_e+=8;else{var ge=N.length-H;for(ae=ge%2===0?H+1:H;ae=18?(_e-=18,Ee+=1,this.words[Ee]|=Ce>>>26):_e+=8}this.strip()};function m(j,N,H,ie){for(var ae=0,_e=Math.min(j.length,H),Ee=N;Ee<_e;Ee++){var Ce=j.charCodeAt(Ee)-48;ae*=ie,Ce>=49?ae+=Ce-49+10:Ce>=17?ae+=Ce-17+10:ae+=Ce}return ae}f.prototype._parseBase=function(N,H,ie){this.words=[0],this.length=1;for(var ae=0,_e=1;_e<=67108863;_e*=H)ae++;ae--,_e=_e/H|0;for(var Ee=N.length-ie,Ce=Ee%ae,ge=Math.min(Ee,Ee-Ce)+ie,re=0,Se=ie;Se1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(N,H){N=N||10,H=H|0||1;var ie;if(N===16||N==="hex"){ie="";for(var ae=0,_e=0,Ee=0;Ee>>24-ae&16777215,ae+=2,ae>=26&&(ae-=26,Ee--),_e!==0||Ee!==this.length-1?ie=b[6-ge.length]+ge+ie:ie=ge+ie}for(_e!==0&&(ie=_e.toString(16)+ie);ie.length%H!==0;)ie="0"+ie;return this.negative!==0&&(ie="-"+ie),ie}if(N===(N|0)&&N>=2&&N<=36){var re=p[N],Se=k[N];ie="";var ke=this.clone();for(ke.negative=0;!ke.isZero();){var be=ke.modn(Se).toString(N);ke=ke.idivn(Se),ke.isZero()?ie=be+ie:ie=b[re-be.length]+be+ie}for(this.isZero()&&(ie="0"+ie);ie.length%H!==0;)ie="0"+ie;return this.negative!==0&&(ie="-"+ie),ie}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(N,H){return u(typeof h!="undefined"),this.toArrayLike(h,N,H)},f.prototype.toArray=function(N,H){return this.toArrayLike(Array,N,H)},f.prototype.toArrayLike=function(N,H,ie){var ae=this.byteLength(),_e=ie||Math.max(1,ae);u(ae<=_e,"byte array longer than desired length"),u(_e>0,"Requested array length <= 0"),this.strip();var Ee=H==="le",Ce=new N(_e),ge,re,Se=this.clone();if(Ee){for(re=0;!Se.isZero();re++)ge=Se.andln(255),Se.iushrn(8),Ce[re]=ge;for(;re<_e;re++)Ce[re]=0}else{for(re=0;re<_e-ae;re++)Ce[re]=0;for(re=0;!Se.isZero();re++)ge=Se.andln(255),Se.iushrn(8),Ce[_e-re-1]=ge}return Ce},Math.clz32?f.prototype._countBits=function(N){return 32-Math.clz32(N)}:f.prototype._countBits=function(N){var H=N,ie=0;return H>=4096&&(ie+=13,H>>>=13),H>=64&&(ie+=7,H>>>=7),H>=8&&(ie+=4,H>>>=4),H>=2&&(ie+=2,H>>>=2),ie+H},f.prototype._zeroBits=function(N){if(N===0)return 26;var H=N,ie=0;return(H&8191)===0&&(ie+=13,H>>>=13),(H&127)===0&&(ie+=7,H>>>=7),(H&15)===0&&(ie+=4,H>>>=4),(H&3)===0&&(ie+=2,H>>>=2),(H&1)===0&&ie++,ie},f.prototype.bitLength=function(){var N=this.words[this.length-1],H=this._countBits(N);return(this.length-1)*26+H};function M(j){for(var N=new Array(j.bitLength()),H=0;H>>ae}return N}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,H=0;HN.length?this.clone().ior(N):N.clone().ior(this)},f.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},f.prototype.iuand=function(N){var H;this.length>N.length?H=N:H=this;for(var ie=0;ieN.length?this.clone().iand(N):N.clone().iand(this)},f.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},f.prototype.iuxor=function(N){var H,ie;this.length>N.length?(H=this,ie=N):(H=N,ie=this);for(var ae=0;aeN.length?this.clone().ixor(N):N.clone().ixor(this)},f.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},f.prototype.inotn=function(N){u(typeof N=="number"&&N>=0);var H=Math.ceil(N/26)|0,ie=N%26;this._expand(H),ie>0&&H--;for(var ae=0;ae0&&(this.words[ae]=~this.words[ae]&67108863>>26-ie),this.strip()},f.prototype.notn=function(N){return this.clone().inotn(N)},f.prototype.setn=function(N,H){u(typeof N=="number"&&N>=0);var ie=N/26|0,ae=N%26;return this._expand(ie+1),H?this.words[ie]=this.words[ie]|1<N.length?(ie=this,ae=N):(ie=N,ae=this);for(var _e=0,Ee=0;Ee>>26;for(;_e!==0&&Ee>>26;if(this.length=ie.length,_e!==0)this.words[this.length]=_e,this.length++;else if(ie!==this)for(;EeN.length?this.clone().iadd(N):N.clone().iadd(this)},f.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var H=this.iadd(N);return N.negative=1,H._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var ie=this.cmp(N);if(ie===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ae,_e;ie>0?(ae=this,_e=N):(ae=N,_e=this);for(var Ee=0,Ce=0;Ce<_e.length;Ce++)H=(ae.words[Ce]|0)-(_e.words[Ce]|0)+Ee,Ee=H>>26,this.words[Ce]=H&67108863;for(;Ee!==0&&Ce>26,this.words[Ce]=H&67108863;if(Ee===0&&Ce>>26,ke=ge&67108863,be=Math.min(re,N.length-1),Be=Math.max(0,re-j.length+1);Be<=be;Be++){var Le=re-Be|0;ae=j.words[Le]|0,_e=N.words[Be]|0,Ee=ae*_e+ke,Se+=Ee/67108864|0,ke=Ee&67108863}H.words[re]=ke|0,ge=Se|0}return ge!==0?H.words[re]=ge|0:H.length--,H.strip()}var L=function(N,H,ie){var ae=N.words,_e=H.words,Ee=ie.words,Ce=0,ge,re,Se,ke=ae[0]|0,be=ke&8191,Be=ke>>>13,Le=ae[1]|0,me=Le&8191,Pe=Le>>>13,ce=ae[2]|0,He=ce&8191,lt=ce>>>13,mt=ae[3]|0,Ht=mt&8191,at=mt>>>13,ct=ae[4]|0,ar=ct&8191,Vt=ct>>>13,rr=ae[5]|0,tt=rr&8191,je=rr>>>13,Ue=ae[6]|0,Ae=Ue&8191,rt=Ue>>>13,St=ae[7]|0,Tt=St&8191,dt=St>>>13,Et=ae[8]|0,pt=Et&8191,jt=Et>>>13,or=ae[9]|0,mr=or&8191,Ar=or>>>13,ei=_e[0]|0,qr=ei&8191,jr=ei>>>13,gt=_e[1]|0,Ge=gt&8191,Je=gt>>>13,We=_e[2]|0,et=We&8191,xt=We>>>13,At=_e[3]|0,Kt=At&8191,Qt=At>>>13,Mr=_e[4]|0,Gr=Mr&8191,Ir=Mr>>>13,Yr=_e[5]|0,_i=Yr&8191,Pi=Yr>>>13,ai=_e[6]|0,mi=ai&8191,un=ai>>>13,Fn=_e[7]|0,An=Fn&8191,Hn=Fn>>>13,Qn=_e[8]|0,Vi=Qn&8191,Kn=Qn>>>13,Jn=_e[9]|0,Gt=Jn&8191,wt=Jn>>>13;ie.negative=N.negative^H.negative,ie.length=19,ge=Math.imul(be,qr),re=Math.imul(be,jr),re=re+Math.imul(Be,qr)|0,Se=Math.imul(Be,jr);var tr=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(tr>>>26)|0,tr&=67108863,ge=Math.imul(me,qr),re=Math.imul(me,jr),re=re+Math.imul(Pe,qr)|0,Se=Math.imul(Pe,jr),ge=ge+Math.imul(be,Ge)|0,re=re+Math.imul(be,Je)|0,re=re+Math.imul(Be,Ge)|0,Se=Se+Math.imul(Be,Je)|0;var ir=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(ir>>>26)|0,ir&=67108863,ge=Math.imul(He,qr),re=Math.imul(He,jr),re=re+Math.imul(lt,qr)|0,Se=Math.imul(lt,jr),ge=ge+Math.imul(me,Ge)|0,re=re+Math.imul(me,Je)|0,re=re+Math.imul(Pe,Ge)|0,Se=Se+Math.imul(Pe,Je)|0,ge=ge+Math.imul(be,et)|0,re=re+Math.imul(be,xt)|0,re=re+Math.imul(Be,et)|0,Se=Se+Math.imul(Be,xt)|0;var wr=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(wr>>>26)|0,wr&=67108863,ge=Math.imul(Ht,qr),re=Math.imul(Ht,jr),re=re+Math.imul(at,qr)|0,Se=Math.imul(at,jr),ge=ge+Math.imul(He,Ge)|0,re=re+Math.imul(He,Je)|0,re=re+Math.imul(lt,Ge)|0,Se=Se+Math.imul(lt,Je)|0,ge=ge+Math.imul(me,et)|0,re=re+Math.imul(me,xt)|0,re=re+Math.imul(Pe,et)|0,Se=Se+Math.imul(Pe,xt)|0,ge=ge+Math.imul(be,Kt)|0,re=re+Math.imul(be,Qt)|0,re=re+Math.imul(Be,Kt)|0,Se=Se+Math.imul(Be,Qt)|0;var Xr=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,ge=Math.imul(ar,qr),re=Math.imul(ar,jr),re=re+Math.imul(Vt,qr)|0,Se=Math.imul(Vt,jr),ge=ge+Math.imul(Ht,Ge)|0,re=re+Math.imul(Ht,Je)|0,re=re+Math.imul(at,Ge)|0,Se=Se+Math.imul(at,Je)|0,ge=ge+Math.imul(He,et)|0,re=re+Math.imul(He,xt)|0,re=re+Math.imul(lt,et)|0,Se=Se+Math.imul(lt,xt)|0,ge=ge+Math.imul(me,Kt)|0,re=re+Math.imul(me,Qt)|0,re=re+Math.imul(Pe,Kt)|0,Se=Se+Math.imul(Pe,Qt)|0,ge=ge+Math.imul(be,Gr)|0,re=re+Math.imul(be,Ir)|0,re=re+Math.imul(Be,Gr)|0,Se=Se+Math.imul(Be,Ir)|0;var ti=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(ti>>>26)|0,ti&=67108863,ge=Math.imul(tt,qr),re=Math.imul(tt,jr),re=re+Math.imul(je,qr)|0,Se=Math.imul(je,jr),ge=ge+Math.imul(ar,Ge)|0,re=re+Math.imul(ar,Je)|0,re=re+Math.imul(Vt,Ge)|0,Se=Se+Math.imul(Vt,Je)|0,ge=ge+Math.imul(Ht,et)|0,re=re+Math.imul(Ht,xt)|0,re=re+Math.imul(at,et)|0,Se=Se+Math.imul(at,xt)|0,ge=ge+Math.imul(He,Kt)|0,re=re+Math.imul(He,Qt)|0,re=re+Math.imul(lt,Kt)|0,Se=Se+Math.imul(lt,Qt)|0,ge=ge+Math.imul(me,Gr)|0,re=re+Math.imul(me,Ir)|0,re=re+Math.imul(Pe,Gr)|0,Se=Se+Math.imul(Pe,Ir)|0,ge=ge+Math.imul(be,_i)|0,re=re+Math.imul(be,Pi)|0,re=re+Math.imul(Be,_i)|0,Se=Se+Math.imul(Be,Pi)|0;var $r=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+($r>>>26)|0,$r&=67108863,ge=Math.imul(Ae,qr),re=Math.imul(Ae,jr),re=re+Math.imul(rt,qr)|0,Se=Math.imul(rt,jr),ge=ge+Math.imul(tt,Ge)|0,re=re+Math.imul(tt,Je)|0,re=re+Math.imul(je,Ge)|0,Se=Se+Math.imul(je,Je)|0,ge=ge+Math.imul(ar,et)|0,re=re+Math.imul(ar,xt)|0,re=re+Math.imul(Vt,et)|0,Se=Se+Math.imul(Vt,xt)|0,ge=ge+Math.imul(Ht,Kt)|0,re=re+Math.imul(Ht,Qt)|0,re=re+Math.imul(at,Kt)|0,Se=Se+Math.imul(at,Qt)|0,ge=ge+Math.imul(He,Gr)|0,re=re+Math.imul(He,Ir)|0,re=re+Math.imul(lt,Gr)|0,Se=Se+Math.imul(lt,Ir)|0,ge=ge+Math.imul(me,_i)|0,re=re+Math.imul(me,Pi)|0,re=re+Math.imul(Pe,_i)|0,Se=Se+Math.imul(Pe,Pi)|0,ge=ge+Math.imul(be,mi)|0,re=re+Math.imul(be,un)|0,re=re+Math.imul(Be,mi)|0,Se=Se+Math.imul(Be,un)|0;var Ri=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,ge=Math.imul(Tt,qr),re=Math.imul(Tt,jr),re=re+Math.imul(dt,qr)|0,Se=Math.imul(dt,jr),ge=ge+Math.imul(Ae,Ge)|0,re=re+Math.imul(Ae,Je)|0,re=re+Math.imul(rt,Ge)|0,Se=Se+Math.imul(rt,Je)|0,ge=ge+Math.imul(tt,et)|0,re=re+Math.imul(tt,xt)|0,re=re+Math.imul(je,et)|0,Se=Se+Math.imul(je,xt)|0,ge=ge+Math.imul(ar,Kt)|0,re=re+Math.imul(ar,Qt)|0,re=re+Math.imul(Vt,Kt)|0,Se=Se+Math.imul(Vt,Qt)|0,ge=ge+Math.imul(Ht,Gr)|0,re=re+Math.imul(Ht,Ir)|0,re=re+Math.imul(at,Gr)|0,Se=Se+Math.imul(at,Ir)|0,ge=ge+Math.imul(He,_i)|0,re=re+Math.imul(He,Pi)|0,re=re+Math.imul(lt,_i)|0,Se=Se+Math.imul(lt,Pi)|0,ge=ge+Math.imul(me,mi)|0,re=re+Math.imul(me,un)|0,re=re+Math.imul(Pe,mi)|0,Se=Se+Math.imul(Pe,un)|0,ge=ge+Math.imul(be,An)|0,re=re+Math.imul(be,Hn)|0,re=re+Math.imul(Be,An)|0,Se=Se+Math.imul(Be,Hn)|0;var Zi=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,ge=Math.imul(pt,qr),re=Math.imul(pt,jr),re=re+Math.imul(jt,qr)|0,Se=Math.imul(jt,jr),ge=ge+Math.imul(Tt,Ge)|0,re=re+Math.imul(Tt,Je)|0,re=re+Math.imul(dt,Ge)|0,Se=Se+Math.imul(dt,Je)|0,ge=ge+Math.imul(Ae,et)|0,re=re+Math.imul(Ae,xt)|0,re=re+Math.imul(rt,et)|0,Se=Se+Math.imul(rt,xt)|0,ge=ge+Math.imul(tt,Kt)|0,re=re+Math.imul(tt,Qt)|0,re=re+Math.imul(je,Kt)|0,Se=Se+Math.imul(je,Qt)|0,ge=ge+Math.imul(ar,Gr)|0,re=re+Math.imul(ar,Ir)|0,re=re+Math.imul(Vt,Gr)|0,Se=Se+Math.imul(Vt,Ir)|0,ge=ge+Math.imul(Ht,_i)|0,re=re+Math.imul(Ht,Pi)|0,re=re+Math.imul(at,_i)|0,Se=Se+Math.imul(at,Pi)|0,ge=ge+Math.imul(He,mi)|0,re=re+Math.imul(He,un)|0,re=re+Math.imul(lt,mi)|0,Se=Se+Math.imul(lt,un)|0,ge=ge+Math.imul(me,An)|0,re=re+Math.imul(me,Hn)|0,re=re+Math.imul(Pe,An)|0,Se=Se+Math.imul(Pe,Hn)|0,ge=ge+Math.imul(be,Vi)|0,re=re+Math.imul(be,Kn)|0,re=re+Math.imul(Be,Vi)|0,Se=Se+Math.imul(Be,Kn)|0;var en=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(en>>>26)|0,en&=67108863,ge=Math.imul(mr,qr),re=Math.imul(mr,jr),re=re+Math.imul(Ar,qr)|0,Se=Math.imul(Ar,jr),ge=ge+Math.imul(pt,Ge)|0,re=re+Math.imul(pt,Je)|0,re=re+Math.imul(jt,Ge)|0,Se=Se+Math.imul(jt,Je)|0,ge=ge+Math.imul(Tt,et)|0,re=re+Math.imul(Tt,xt)|0,re=re+Math.imul(dt,et)|0,Se=Se+Math.imul(dt,xt)|0,ge=ge+Math.imul(Ae,Kt)|0,re=re+Math.imul(Ae,Qt)|0,re=re+Math.imul(rt,Kt)|0,Se=Se+Math.imul(rt,Qt)|0,ge=ge+Math.imul(tt,Gr)|0,re=re+Math.imul(tt,Ir)|0,re=re+Math.imul(je,Gr)|0,Se=Se+Math.imul(je,Ir)|0,ge=ge+Math.imul(ar,_i)|0,re=re+Math.imul(ar,Pi)|0,re=re+Math.imul(Vt,_i)|0,Se=Se+Math.imul(Vt,Pi)|0,ge=ge+Math.imul(Ht,mi)|0,re=re+Math.imul(Ht,un)|0,re=re+Math.imul(at,mi)|0,Se=Se+Math.imul(at,un)|0,ge=ge+Math.imul(He,An)|0,re=re+Math.imul(He,Hn)|0,re=re+Math.imul(lt,An)|0,Se=Se+Math.imul(lt,Hn)|0,ge=ge+Math.imul(me,Vi)|0,re=re+Math.imul(me,Kn)|0,re=re+Math.imul(Pe,Vi)|0,Se=Se+Math.imul(Pe,Kn)|0,ge=ge+Math.imul(be,Gt)|0,re=re+Math.imul(be,wt)|0,re=re+Math.imul(Be,Gt)|0,Se=Se+Math.imul(Be,wt)|0;var fn=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(fn>>>26)|0,fn&=67108863,ge=Math.imul(mr,Ge),re=Math.imul(mr,Je),re=re+Math.imul(Ar,Ge)|0,Se=Math.imul(Ar,Je),ge=ge+Math.imul(pt,et)|0,re=re+Math.imul(pt,xt)|0,re=re+Math.imul(jt,et)|0,Se=Se+Math.imul(jt,xt)|0,ge=ge+Math.imul(Tt,Kt)|0,re=re+Math.imul(Tt,Qt)|0,re=re+Math.imul(dt,Kt)|0,Se=Se+Math.imul(dt,Qt)|0,ge=ge+Math.imul(Ae,Gr)|0,re=re+Math.imul(Ae,Ir)|0,re=re+Math.imul(rt,Gr)|0,Se=Se+Math.imul(rt,Ir)|0,ge=ge+Math.imul(tt,_i)|0,re=re+Math.imul(tt,Pi)|0,re=re+Math.imul(je,_i)|0,Se=Se+Math.imul(je,Pi)|0,ge=ge+Math.imul(ar,mi)|0,re=re+Math.imul(ar,un)|0,re=re+Math.imul(Vt,mi)|0,Se=Se+Math.imul(Vt,un)|0,ge=ge+Math.imul(Ht,An)|0,re=re+Math.imul(Ht,Hn)|0,re=re+Math.imul(at,An)|0,Se=Se+Math.imul(at,Hn)|0,ge=ge+Math.imul(He,Vi)|0,re=re+Math.imul(He,Kn)|0,re=re+Math.imul(lt,Vi)|0,Se=Se+Math.imul(lt,Kn)|0,ge=ge+Math.imul(me,Gt)|0,re=re+Math.imul(me,wt)|0,re=re+Math.imul(Pe,Gt)|0,Se=Se+Math.imul(Pe,wt)|0;var yn=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(yn>>>26)|0,yn&=67108863,ge=Math.imul(mr,et),re=Math.imul(mr,xt),re=re+Math.imul(Ar,et)|0,Se=Math.imul(Ar,xt),ge=ge+Math.imul(pt,Kt)|0,re=re+Math.imul(pt,Qt)|0,re=re+Math.imul(jt,Kt)|0,Se=Se+Math.imul(jt,Qt)|0,ge=ge+Math.imul(Tt,Gr)|0,re=re+Math.imul(Tt,Ir)|0,re=re+Math.imul(dt,Gr)|0,Se=Se+Math.imul(dt,Ir)|0,ge=ge+Math.imul(Ae,_i)|0,re=re+Math.imul(Ae,Pi)|0,re=re+Math.imul(rt,_i)|0,Se=Se+Math.imul(rt,Pi)|0,ge=ge+Math.imul(tt,mi)|0,re=re+Math.imul(tt,un)|0,re=re+Math.imul(je,mi)|0,Se=Se+Math.imul(je,un)|0,ge=ge+Math.imul(ar,An)|0,re=re+Math.imul(ar,Hn)|0,re=re+Math.imul(Vt,An)|0,Se=Se+Math.imul(Vt,Hn)|0,ge=ge+Math.imul(Ht,Vi)|0,re=re+Math.imul(Ht,Kn)|0,re=re+Math.imul(at,Vi)|0,Se=Se+Math.imul(at,Kn)|0,ge=ge+Math.imul(He,Gt)|0,re=re+Math.imul(He,wt)|0,re=re+Math.imul(lt,Gt)|0,Se=Se+Math.imul(lt,wt)|0;var Mn=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,ge=Math.imul(mr,Kt),re=Math.imul(mr,Qt),re=re+Math.imul(Ar,Kt)|0,Se=Math.imul(Ar,Qt),ge=ge+Math.imul(pt,Gr)|0,re=re+Math.imul(pt,Ir)|0,re=re+Math.imul(jt,Gr)|0,Se=Se+Math.imul(jt,Ir)|0,ge=ge+Math.imul(Tt,_i)|0,re=re+Math.imul(Tt,Pi)|0,re=re+Math.imul(dt,_i)|0,Se=Se+Math.imul(dt,Pi)|0,ge=ge+Math.imul(Ae,mi)|0,re=re+Math.imul(Ae,un)|0,re=re+Math.imul(rt,mi)|0,Se=Se+Math.imul(rt,un)|0,ge=ge+Math.imul(tt,An)|0,re=re+Math.imul(tt,Hn)|0,re=re+Math.imul(je,An)|0,Se=Se+Math.imul(je,Hn)|0,ge=ge+Math.imul(ar,Vi)|0,re=re+Math.imul(ar,Kn)|0,re=re+Math.imul(Vt,Vi)|0,Se=Se+Math.imul(Vt,Kn)|0,ge=ge+Math.imul(Ht,Gt)|0,re=re+Math.imul(Ht,wt)|0,re=re+Math.imul(at,Gt)|0,Se=Se+Math.imul(at,wt)|0;var Ba=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,ge=Math.imul(mr,Gr),re=Math.imul(mr,Ir),re=re+Math.imul(Ar,Gr)|0,Se=Math.imul(Ar,Ir),ge=ge+Math.imul(pt,_i)|0,re=re+Math.imul(pt,Pi)|0,re=re+Math.imul(jt,_i)|0,Se=Se+Math.imul(jt,Pi)|0,ge=ge+Math.imul(Tt,mi)|0,re=re+Math.imul(Tt,un)|0,re=re+Math.imul(dt,mi)|0,Se=Se+Math.imul(dt,un)|0,ge=ge+Math.imul(Ae,An)|0,re=re+Math.imul(Ae,Hn)|0,re=re+Math.imul(rt,An)|0,Se=Se+Math.imul(rt,Hn)|0,ge=ge+Math.imul(tt,Vi)|0,re=re+Math.imul(tt,Kn)|0,re=re+Math.imul(je,Vi)|0,Se=Se+Math.imul(je,Kn)|0,ge=ge+Math.imul(ar,Gt)|0,re=re+Math.imul(ar,wt)|0,re=re+Math.imul(Vt,Gt)|0,Se=Se+Math.imul(Vt,wt)|0;var ua=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(ua>>>26)|0,ua&=67108863,ge=Math.imul(mr,_i),re=Math.imul(mr,Pi),re=re+Math.imul(Ar,_i)|0,Se=Math.imul(Ar,Pi),ge=ge+Math.imul(pt,mi)|0,re=re+Math.imul(pt,un)|0,re=re+Math.imul(jt,mi)|0,Se=Se+Math.imul(jt,un)|0,ge=ge+Math.imul(Tt,An)|0,re=re+Math.imul(Tt,Hn)|0,re=re+Math.imul(dt,An)|0,Se=Se+Math.imul(dt,Hn)|0,ge=ge+Math.imul(Ae,Vi)|0,re=re+Math.imul(Ae,Kn)|0,re=re+Math.imul(rt,Vi)|0,Se=Se+Math.imul(rt,Kn)|0,ge=ge+Math.imul(tt,Gt)|0,re=re+Math.imul(tt,wt)|0,re=re+Math.imul(je,Gt)|0,Se=Se+Math.imul(je,wt)|0;var ma=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(ma>>>26)|0,ma&=67108863,ge=Math.imul(mr,mi),re=Math.imul(mr,un),re=re+Math.imul(Ar,mi)|0,Se=Math.imul(Ar,un),ge=ge+Math.imul(pt,An)|0,re=re+Math.imul(pt,Hn)|0,re=re+Math.imul(jt,An)|0,Se=Se+Math.imul(jt,Hn)|0,ge=ge+Math.imul(Tt,Vi)|0,re=re+Math.imul(Tt,Kn)|0,re=re+Math.imul(dt,Vi)|0,Se=Se+Math.imul(dt,Kn)|0,ge=ge+Math.imul(Ae,Gt)|0,re=re+Math.imul(Ae,wt)|0,re=re+Math.imul(rt,Gt)|0,Se=Se+Math.imul(rt,wt)|0;var Wa=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,ge=Math.imul(mr,An),re=Math.imul(mr,Hn),re=re+Math.imul(Ar,An)|0,Se=Math.imul(Ar,Hn),ge=ge+Math.imul(pt,Vi)|0,re=re+Math.imul(pt,Kn)|0,re=re+Math.imul(jt,Vi)|0,Se=Se+Math.imul(jt,Kn)|0,ge=ge+Math.imul(Tt,Gt)|0,re=re+Math.imul(Tt,wt)|0,re=re+Math.imul(dt,Gt)|0,Se=Se+Math.imul(dt,wt)|0;var Fa=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(Fa>>>26)|0,Fa&=67108863,ge=Math.imul(mr,Vi),re=Math.imul(mr,Kn),re=re+Math.imul(Ar,Vi)|0,Se=Math.imul(Ar,Kn),ge=ge+Math.imul(pt,Gt)|0,re=re+Math.imul(pt,wt)|0,re=re+Math.imul(jt,Gt)|0,Se=Se+Math.imul(jt,wt)|0;var Xo=(Ce+ge|0)+((re&8191)<<13)|0;Ce=(Se+(re>>>13)|0)+(Xo>>>26)|0,Xo&=67108863,ge=Math.imul(mr,Gt),re=Math.imul(mr,wt),re=re+Math.imul(Ar,Gt)|0,Se=Math.imul(Ar,wt);var da=(Ce+ge|0)+((re&8191)<<13)|0;return Ce=(Se+(re>>>13)|0)+(da>>>26)|0,da&=67108863,Ee[0]=tr,Ee[1]=ir,Ee[2]=wr,Ee[3]=Xr,Ee[4]=ti,Ee[5]=$r,Ee[6]=Ri,Ee[7]=Zi,Ee[8]=en,Ee[9]=fn,Ee[10]=yn,Ee[11]=Mn,Ee[12]=Ba,Ee[13]=ua,Ee[14]=ma,Ee[15]=Wa,Ee[16]=Fa,Ee[17]=Xo,Ee[18]=da,Ce!==0&&(Ee[19]=Ce,ie.length++),ie};Math.imul||(L=T);function x(j,N,H){H.negative=N.negative^j.negative,H.length=j.length+N.length;for(var ie=0,ae=0,_e=0;_e>>26)|0,ae+=Ee>>>26,Ee&=67108863}H.words[_e]=Ce,ie=Ee,Ee=ae}return ie!==0?H.words[_e]=ie:H.length--,H.strip()}function C(j,N,H){var ie=new S;return ie.mulp(j,N,H)}f.prototype.mulTo=function(N,H){var ie,ae=this.length+N.length;return this.length===10&&N.length===10?ie=L(this,N,H):ae<63?ie=T(this,N,H):ae<1024?ie=x(this,N,H):ie=C(this,N,H),ie};function S(j,N){this.x=j,this.y=N}S.prototype.makeRBT=function(N){for(var H=new Array(N),ie=f.prototype._countBits(N)-1,ae=0;ae>=1;return ae},S.prototype.permute=function(N,H,ie,ae,_e,Ee){for(var Ce=0;Ce>>1)_e++;return 1<<_e+1+ae},S.prototype.conjugate=function(N,H,ie){if(!(ie<=1))for(var ae=0;ae>>13,ie[2*Ee+1]=_e&8191,_e=_e>>>13;for(Ee=2*H;Ee>=26,H+=ae/67108864|0,H+=_e>>>26,this.words[ie]=_e&67108863}return H!==0&&(this.words[ie]=H,this.length++),this.length=N===0?1:this.length,this},f.prototype.muln=function(N){return this.clone().imuln(N)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(N){var H=M(N);if(H.length===0)return new f(1);for(var ie=this,ae=0;ae=0);var H=N%26,ie=(N-H)/26,ae=67108863>>>26-H<<26-H,_e;if(H!==0){var Ee=0;for(_e=0;_e>>26-H}Ee&&(this.words[_e]=Ee,this.length++)}if(ie!==0){for(_e=this.length-1;_e>=0;_e--)this.words[_e+ie]=this.words[_e];for(_e=0;_e=0);var ae;H?ae=(H-H%26)/26:ae=0;var _e=N%26,Ee=Math.min((N-_e)/26,this.length),Ce=67108863^67108863>>>_e<<_e,ge=ie;if(ae-=Ee,ae=Math.max(0,ae),ge){for(var re=0;reEe)for(this.length-=Ee,re=0;re=0&&(Se!==0||re>=ae);re--){var ke=this.words[re]|0;this.words[re]=Se<<26-_e|ke>>>_e,Se=ke&Ce}return ge&&Se!==0&&(ge.words[ge.length++]=Se),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(N,H,ie){return u(this.negative===0),this.iushrn(N,H,ie)},f.prototype.shln=function(N){return this.clone().ishln(N)},f.prototype.ushln=function(N){return this.clone().iushln(N)},f.prototype.shrn=function(N){return this.clone().ishrn(N)},f.prototype.ushrn=function(N){return this.clone().iushrn(N)},f.prototype.testn=function(N){u(typeof N=="number"&&N>=0);var H=N%26,ie=(N-H)/26,ae=1<=0);var H=N%26,ie=(N-H)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=ie)return this;if(H!==0&&ie++,this.length=Math.min(ie,this.length),H!==0){var ae=67108863^67108863>>>H<=67108864;H++)this.words[H]-=67108864,H===this.length-1?this.words[H+1]=1:this.words[H+1]++;return this.length=Math.max(this.length,H+1),this},f.prototype.isubn=function(N){if(u(typeof N=="number"),u(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var H=0;H>26)-(ge/67108864|0),this.words[_e+ie]=Ee&67108863}for(;_e>26,this.words[_e+ie]=Ee&67108863;if(Ce===0)return this.strip();for(u(Ce===-1),Ce=0,_e=0;_e>26,this.words[_e]=Ee&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(N,H){var ie=this.length-N.length,ae=this.clone(),_e=N,Ee=_e.words[_e.length-1]|0,Ce=this._countBits(Ee);ie=26-Ce,ie!==0&&(_e=_e.ushln(ie),ae.iushln(ie),Ee=_e.words[_e.length-1]|0);var ge=ae.length-_e.length,re;if(H!=="mod"){re=new f(null),re.length=ge+1,re.words=new Array(re.length);for(var Se=0;Se=0;be--){var Be=(ae.words[_e.length+be]|0)*67108864+(ae.words[_e.length+be-1]|0);for(Be=Math.min(Be/Ee|0,67108863),ae._ishlnsubmul(_e,Be,be);ae.negative!==0;)Be--,ae.negative=0,ae._ishlnsubmul(_e,1,be),ae.isZero()||(ae.negative^=1);re&&(re.words[be]=Be)}return re&&re.strip(),ae.strip(),H!=="div"&&ie!==0&&ae.iushrn(ie),{div:re||null,mod:ae}},f.prototype.divmod=function(N,H,ie){if(u(!N.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var ae,_e,Ee;return this.negative!==0&&N.negative===0?(Ee=this.neg().divmod(N,H),H!=="mod"&&(ae=Ee.div.neg()),H!=="div"&&(_e=Ee.mod.neg(),ie&&_e.negative!==0&&_e.iadd(N)),{div:ae,mod:_e}):this.negative===0&&N.negative!==0?(Ee=this.divmod(N.neg(),H),H!=="mod"&&(ae=Ee.div.neg()),{div:ae,mod:Ee.mod}):(this.negative&N.negative)!==0?(Ee=this.neg().divmod(N.neg(),H),H!=="div"&&(_e=Ee.mod.neg(),ie&&_e.negative!==0&&_e.isub(N)),{div:Ee.div,mod:_e}):N.length>this.length||this.cmp(N)<0?{div:new f(0),mod:this}:N.length===1?H==="div"?{div:this.divn(N.words[0]),mod:null}:H==="mod"?{div:null,mod:new f(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new f(this.modn(N.words[0]))}:this._wordDiv(N,H)},f.prototype.div=function(N){return this.divmod(N,"div",!1).div},f.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},f.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},f.prototype.divRound=function(N){var H=this.divmod(N);if(H.mod.isZero())return H.div;var ie=H.div.negative!==0?H.mod.isub(N):H.mod,ae=N.ushrn(1),_e=N.andln(1),Ee=ie.cmp(ae);return Ee<0||_e===1&&Ee===0?H.div:H.div.negative!==0?H.div.isubn(1):H.div.iaddn(1)},f.prototype.modn=function(N){u(N<=67108863);for(var H=(1<<26)%N,ie=0,ae=this.length-1;ae>=0;ae--)ie=(H*ie+(this.words[ae]|0))%N;return ie},f.prototype.idivn=function(N){u(N<=67108863);for(var H=0,ie=this.length-1;ie>=0;ie--){var ae=(this.words[ie]|0)+H*67108864;this.words[ie]=ae/N|0,H=ae%N}return this.strip()},f.prototype.divn=function(N){return this.clone().idivn(N)},f.prototype.egcd=function(N){u(N.negative===0),u(!N.isZero());var H=this,ie=N.clone();H.negative!==0?H=H.umod(N):H=H.clone();for(var ae=new f(1),_e=new f(0),Ee=new f(0),Ce=new f(1),ge=0;H.isEven()&&ie.isEven();)H.iushrn(1),ie.iushrn(1),++ge;for(var re=ie.clone(),Se=H.clone();!H.isZero();){for(var ke=0,be=1;(H.words[0]&be)===0&&ke<26;++ke,be<<=1);if(ke>0)for(H.iushrn(ke);ke-- >0;)(ae.isOdd()||_e.isOdd())&&(ae.iadd(re),_e.isub(Se)),ae.iushrn(1),_e.iushrn(1);for(var Be=0,Le=1;(ie.words[0]&Le)===0&&Be<26;++Be,Le<<=1);if(Be>0)for(ie.iushrn(Be);Be-- >0;)(Ee.isOdd()||Ce.isOdd())&&(Ee.iadd(re),Ce.isub(Se)),Ee.iushrn(1),Ce.iushrn(1);H.cmp(ie)>=0?(H.isub(ie),ae.isub(Ee),_e.isub(Ce)):(ie.isub(H),Ee.isub(ae),Ce.isub(_e))}return{a:Ee,b:Ce,gcd:ie.iushln(ge)}},f.prototype._invmp=function(N){u(N.negative===0),u(!N.isZero());var H=this,ie=N.clone();H.negative!==0?H=H.umod(N):H=H.clone();for(var ae=new f(1),_e=new f(0),Ee=ie.clone();H.cmpn(1)>0&&ie.cmpn(1)>0;){for(var Ce=0,ge=1;(H.words[0]&ge)===0&&Ce<26;++Ce,ge<<=1);if(Ce>0)for(H.iushrn(Ce);Ce-- >0;)ae.isOdd()&&ae.iadd(Ee),ae.iushrn(1);for(var re=0,Se=1;(ie.words[0]&Se)===0&&re<26;++re,Se<<=1);if(re>0)for(ie.iushrn(re);re-- >0;)_e.isOdd()&&_e.iadd(Ee),_e.iushrn(1);H.cmp(ie)>=0?(H.isub(ie),ae.isub(_e)):(ie.isub(H),_e.isub(ae))}var ke;return H.cmpn(1)===0?ke=ae:ke=_e,ke.cmpn(0)<0&&ke.iadd(N),ke},f.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var H=this.clone(),ie=N.clone();H.negative=0,ie.negative=0;for(var ae=0;H.isEven()&&ie.isEven();ae++)H.iushrn(1),ie.iushrn(1);do{for(;H.isEven();)H.iushrn(1);for(;ie.isEven();)ie.iushrn(1);var _e=H.cmp(ie);if(_e<0){var Ee=H;H=ie,ie=Ee}else if(_e===0||ie.cmpn(1)===0)break;H.isub(ie)}while(!0);return ie.iushln(ae)},f.prototype.invm=function(N){return this.egcd(N).a.umod(N)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(N){return this.words[0]&N},f.prototype.bincn=function(N){u(typeof N=="number");var H=N%26,ie=(N-H)/26,ae=1<>>26,Ce&=67108863,this.words[Ee]=Ce}return _e!==0&&(this.words[Ee]=_e,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(N){var H=N<0;if(this.negative!==0&&!H)return-1;if(this.negative===0&&H)return 1;this.strip();var ie;if(this.length>1)ie=1;else{H&&(N=-N),u(N<=67108863,"Number is too big");var ae=this.words[0]|0;ie=ae===N?0:aeN.length)return 1;if(this.length=0;ie--){var ae=this.words[ie]|0,_e=N.words[ie]|0;if(ae!==_e){ae<_e?H=-1:ae>_e&&(H=1);break}}return H},f.prototype.gtn=function(N){return this.cmpn(N)===1},f.prototype.gt=function(N){return this.cmp(N)===1},f.prototype.gten=function(N){return this.cmpn(N)>=0},f.prototype.gte=function(N){return this.cmp(N)>=0},f.prototype.ltn=function(N){return this.cmpn(N)===-1},f.prototype.lt=function(N){return this.cmp(N)===-1},f.prototype.lten=function(N){return this.cmpn(N)<=0},f.prototype.lte=function(N){return this.cmp(N)<=0},f.prototype.eqn=function(N){return this.cmpn(N)===0},f.prototype.eq=function(N){return this.cmp(N)===0},f.red=function(N){return new G(N)},f.prototype.toRed=function(N){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(N){return this.red=N,this},f.prototype.forceRed=function(N){return u(!this.red,"Already a number in reduction context"),this._forceRed(N)},f.prototype.redAdd=function(N){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},f.prototype.redIAdd=function(N){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},f.prototype.redSub=function(N){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},f.prototype.redISub=function(N){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},f.prototype.redShl=function(N){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},f.prototype.redMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},f.prototype.redIMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(N){return u(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var g={k256:null,p224:null,p192:null,p25519:null};function P(j,N){this.name=j,this.p=new f(N,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new f(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var H=N,ie;do this.split(H,this.tmp),H=this.imulK(H),H=H.iadd(this.tmp),ie=H.bitLength();while(ie>this.n);var ae=ie0?H.isub(this.p):H.strip!==void 0?H.strip():H._strip(),H},P.prototype.split=function(N,H){N.iushrn(this.n,0,H)},P.prototype.imulK=function(N){return N.imul(this.k)};function E(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(E,P),E.prototype.split=function(N,H){for(var ie=4194303,ae=Math.min(N.length,9),_e=0;_e>>22,Ee=Ce}Ee>>>=22,N.words[_e-10]=Ee,Ee===0&&N.length>10?N.length-=10:N.length-=9},E.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var H=0,ie=0;ie>>=26,N.words[ie]=_e,H=ae}return H!==0&&(N.words[N.length++]=H),N},f._prime=function(N){if(g[N])return g[N];var H;if(N==="k256")H=new E;else if(N==="p224")H=new z;else if(N==="p192")H=new q;else if(N==="p25519")H=new V;else throw new Error("Unknown prime "+N);return g[N]=H,H};function G(j){if(typeof j=="string"){var N=f._prime(j);this.m=N.p,this.prime=N}else u(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}G.prototype._verify1=function(N){u(N.negative===0,"red works only with positives"),u(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,H){u((N.negative|H.negative)===0,"red works only with positives"),u(N.red&&N.red===H.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,H){this._verify2(N,H);var ie=N.add(H);return ie.cmp(this.m)>=0&&ie.isub(this.m),ie._forceRed(this)},G.prototype.iadd=function(N,H){this._verify2(N,H);var ie=N.iadd(H);return ie.cmp(this.m)>=0&&ie.isub(this.m),ie},G.prototype.sub=function(N,H){this._verify2(N,H);var ie=N.sub(H);return ie.cmpn(0)<0&&ie.iadd(this.m),ie._forceRed(this)},G.prototype.isub=function(N,H){this._verify2(N,H);var ie=N.isub(H);return ie.cmpn(0)<0&&ie.iadd(this.m),ie},G.prototype.shl=function(N,H){return this._verify1(N),this.imod(N.ushln(H))},G.prototype.imul=function(N,H){return this._verify2(N,H),this.imod(N.imul(H))},G.prototype.mul=function(N,H){return this._verify2(N,H),this.imod(N.mul(H))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var H=this.m.andln(3);if(u(H%2===1),H===3){var ie=this.m.add(new f(1)).iushrn(2);return this.pow(N,ie)}for(var ae=this.m.subn(1),_e=0;!ae.isZero()&&ae.andln(1)===0;)_e++,ae.iushrn(1);u(!ae.isZero());var Ee=new f(1).toRed(this),Ce=Ee.redNeg(),ge=this.m.subn(1).iushrn(1),re=this.m.bitLength();for(re=new f(2*re*re).toRed(this);this.pow(re,ge).cmp(Ce)!==0;)re.redIAdd(Ce);for(var Se=this.pow(re,ae),ke=this.pow(N,ae.addn(1).iushrn(1)),be=this.pow(N,ae),Be=_e;be.cmp(Ee)!==0;){for(var Le=be,me=0;Le.cmp(Ee)!==0;me++)Le=Le.redSqr();u(me=0;_e--){for(var Se=H.words[_e],ke=re-1;ke>=0;ke--){var be=Se>>ke&1;if(Ee!==ae[0]&&(Ee=this.sqr(Ee)),be===0&&Ce===0){ge=0;continue}Ce<<=1,Ce|=be,ge++,!(ge!==ie&&(_e!==0||ke!==0))&&(Ee=this.mul(Ee,ae[Ce]),ge=0,Ce=0)}re=26}return Ee},G.prototype.convertTo=function(N){var H=N.umod(this.m);return H===N?H.clone():H},G.prototype.convertFrom=function(N){var H=N.clone();return H.red=null,H},f.mont=function(N){return new Z(N)};function Z(j){G.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(Z,G),Z.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},Z.prototype.convertFrom=function(N){var H=this.imod(N.mul(this.rinv));return H.red=null,H},Z.prototype.imul=function(N,H){if(N.isZero()||H.isZero())return N.words[0]=0,N.length=1,N;var ie=N.imul(H),ae=ie.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=ie.isub(ae).iushrn(this.shift),Ee=_e;return _e.cmp(this.m)>=0?Ee=_e.isub(this.m):_e.cmpn(0)<0&&(Ee=_e.iadd(this.m)),Ee._forceRed(this)},Z.prototype.mul=function(N,H){if(N.isZero()||H.isZero())return new f(0)._forceRed(this);var ie=N.mul(H),ae=ie.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=ie.isub(ae).iushrn(this.shift),Ee=_e;return _e.cmp(this.m)>=0?Ee=_e.isub(this.m):_e.cmpn(0)<0&&(Ee=_e.iadd(this.m)),Ee._forceRed(this)},Z.prototype.invm=function(N){var H=this.imod(N._invmp(this.m).mul(this.r2));return H._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(S<=0)){var g,P=s.mallocDouble(2*S*x),E=s.mallocInt32(x);if(x=f(k,S,P,E),x>0){if(S===1&&L)l.init(x),g=l.sweepComplete(S,T,0,x,P,E,0,x,P,E);else{var z=s.mallocDouble(2*S*C),q=s.mallocInt32(C);C=f(M,S,z,q),C>0&&(l.init(x+C),S===1?g=l.sweepBipartite(S,T,0,x,P,E,0,C,z,q):g=u(S,T,L,x,P,E,C,z,q),s.free(z),s.free(q))}s.free(P),s.free(E)}return g}}}var d;function v(k,M){d.push([k,M])}function m(k){return d=[],h(k,k,v,!0),d}function b(k,M){return d=[],h(k,M,v,!1),d}function p(k,M,T){switch(arguments.length){case 1:return m(k);case 2:return typeof M=="function"?h(k,k,M,!0):b(k,M);case 3:return h(k,M,T,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function u(h,d,v,m,b,p,k,M,T,L,x){for(var C=2*h,S=m,g=C*m;ST-M?u(h,d,v,m,b,p,k,M,T,L,x):c(h,d,v,m,b,p,k,M,T,L,x)}return f}function s(){function u(v,m,b,p,k,M,T,L,x,C,S){for(var g=2*v,P=p,E=g*p;PC-x?p?u(v,m,b,k,M,T,L,x,C,S,g):c(v,m,b,k,M,T,L,x,C,S,g):p?f(v,m,b,k,M,T,L,x,C,S,g):h(v,m,b,k,M,T,L,x,C,S,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150:function(i,a,o){"use strict";i.exports=j;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),d=o(3545),v=o(8105),m=128,b=1<<22,p=1<<22,k=v("!(lo>=p0)&&!(p1>=hi)"),M=v("lo===p0"),T=v("lo0;){Se-=1;var Be=Se*S,Le=E[Be],me=E[Be+1],Pe=E[Be+2],ce=E[Be+3],He=E[Be+4],lt=E[Be+5],mt=Se*g,Ht=z[mt],at=z[mt+1],ct=lt&1,ar=!!(lt&16),Vt=_e,rr=Ee,tt=ge,je=re;if(ct&&(Vt=ge,rr=re,tt=_e,je=Ee),!(lt&2&&(Pe=T(N,Le,me,Pe,Vt,rr,at),me>=Pe))&&!(lt&4&&(me=L(N,Le,me,Pe,Vt,rr,Ht),me>=Pe))){var Ue=Pe-me,Ae=He-ce;if(ar){if(N*Ue*(Ue+Ae)v&&b[C+d]>L;--x,C-=k){for(var S=C,g=C+k,P=0;P>>1,L=2*h,x=T,C=b[L*T+d];k=z?(x=E,C=z):P>=V?(x=g,C=P):(x=q,C=V):z>=V?(x=E,C=z):V>=P?(x=g,C=P):(x=q,C=V);for(var j=L*(M-1),N=L*x,G=0;G=p0)&&!(p1>=hi)":d};function o(v){return a[v]}function s(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+g];if(z===T)if(S===E)S+=1,C+=L;else{for(var q=0;L>q;++q){var V=k[x+q];k[x+q]=k[C],k[C++]=V}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function l(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+g];if(zq;++q){var V=k[x+q];k[x+q]=k[C],k[C++]=V}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function u(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+P];if(z<=T)if(S===E)S+=1,C+=L;else{for(var q=0;L>q;++q){var V=k[x+q];k[x+q]=k[C],k[C++]=V}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function c(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+P];if(z<=T)if(S===E)S+=1,C+=L;else{for(var q=0;L>q;++q){var V=k[x+q];k[x+q]=k[C],k[C++]=V}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function f(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+g],q=k[x+P];if(z<=T&&T<=q)if(S===E)S+=1,C+=L;else{for(var V=0;L>V;++V){var G=k[x+V];k[x+V]=k[C],k[C++]=G}var Z=M[E];M[E]=M[S],M[S++]=Z}}return S}function h(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+g],q=k[x+P];if(zV;++V){var G=k[x+V];k[x+V]=k[C],k[C++]=G}var Z=M[E];M[E]=M[S],M[S++]=Z}}return S}function d(v,m,b,p,k,M,T,L){for(var x=2*v,C=x*b,S=C,g=b,P=m,E=v+m,z=b;p>z;++z,C+=x){var q=k[C+P],V=k[C+E];if(!(q>=T)&&!(L>=V))if(g===z)g+=1,S+=x;else{for(var G=0;x>G;++G){var Z=k[C+G];k[C+G]=k[S],k[S++]=Z}var j=M[z];M[z]=M[g],M[g++]=j}}return g}},4192:function(i){"use strict";i.exports=o;var a=32;function o(m,b){b<=4*a?s(0,b-1,m):v(0,b-1,m)}function s(m,b,p){for(var k=2*(m+1),M=m+1;M<=b;++M){for(var T=p[k++],L=p[k++],x=M,C=k-2;x-- >m;){var S=p[C-2],g=p[C-1];if(Sp[b+1]:!0}function d(m,b,p,k){m*=2;var M=k[m];return M>1,x=L-k,C=L+k,S=M,g=x,P=L,E=C,z=T,q=m+1,V=b-1,G=0;h(S,g,p)&&(G=S,S=g,g=G),h(E,z,p)&&(G=E,E=z,z=G),h(S,P,p)&&(G=S,S=P,P=G),h(g,P,p)&&(G=g,g=P,P=G),h(S,E,p)&&(G=S,S=E,E=G),h(P,E,p)&&(G=P,P=E,E=G),h(g,z,p)&&(G=g,g=z,z=G),h(g,P,p)&&(G=g,g=P,P=G),h(E,z,p)&&(G=E,E=z,z=G);for(var Z=p[2*g],j=p[2*g+1],N=p[2*E],H=p[2*E+1],ie=2*S,ae=2*P,_e=2*z,Ee=2*M,Ce=2*L,ge=2*T,re=0;re<2;++re){var Se=p[ie+re],ke=p[ae+re],be=p[_e+re];p[Ee+re]=Se,p[Ce+re]=ke,p[ge+re]=be}u(x,m,p),u(C,b,p);for(var Be=q;Be<=V;++Be)if(d(Be,Z,j,p))Be!==q&&l(Be,q,p),++q;else if(!d(Be,N,H,p))for(;;)if(d(V,N,H,p)){d(V,Z,j,p)?(c(Be,q,V,p),++q,--V):(l(Be,V,p),--V);break}else{if(--V>>1;u(k,ke);for(var be=0,Be=0,Ce=0;Ce=c)Le=Le-c|0,T(v,m,Be--,Le);else if(Le>=0)T(h,d,be--,Le);else if(Le<=-c){Le=-Le-c|0;for(var me=0;me>>1;u(k,ke);for(var be=0,Be=0,Le=0,Ce=0;Ce>1===k[2*Ce+3]>>1&&(Pe=2,Ce+=1),me<0){for(var ce=-(me>>1)-1,He=0;He>1)-1;Pe===0?T(h,d,be--,ce):Pe===1?T(v,m,Be--,ce):Pe===2&&T(b,p,Le--,ce)}}}function S(P,E,z,q,V,G,Z,j,N,H,ie,ae){var _e=0,Ee=2*P,Ce=E,ge=E+P,re=1,Se=1;q?Se=c:re=c;for(var ke=V;ke>>1;u(k,me);for(var Pe=0,ke=0;ke=c?(He=!q,be-=c):(He=!!q,be-=1),He)L(h,d,Pe++,be);else{var lt=ae[be],mt=Ee*be,Ht=ie[mt+E+1],at=ie[mt+E+1+P];e:for(var ct=0;ct>>1;u(k,be);for(var Be=0,ge=0;ge=c)h[Be++]=re-c;else{re-=1;var me=ie[re],Pe=_e*re,ce=H[Pe+E+1],He=H[Pe+E+1+P];e:for(var lt=0;lt=0;--lt)if(h[lt]===re){for(var ct=lt+1;ct0;){for(var M=d.pop(),b=d.pop(),T=-1,L=-1,p=m[b],C=1;C=0||(h.flip(b,M),u(f,h,d,T,b,L),u(f,h,d,b,L,T),u(f,h,d,L,M,T),u(f,h,d,M,T,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function l(v,m,b,p,k,M,T){this.cells=v,this.neighbor=m,this.flags=p,this.constraint=b,this.active=k,this.next=M,this.boundary=T}var u=l.prototype;function c(v,m){return v[0]-m[0]||v[1]-m[1]||v[2]-m[2]}u.locate=function(){var v=[0,0,0];return function(m,b,p){var k=m,M=b,T=p;return b0||T.length>0;){for(;M.length>0;){var g=M.pop();if(L[g]!==-k){L[g]=k;for(var P=x[g],E=0;E<3;++E){var z=S[3*g+E];z>=0&&L[z]===0&&(C[3*g+E]?T.push(z):(M.push(z),L[z]=k))}}}var q=T;T=M,M=q,T.length=0,k=-k}var V=h(x,L,m);return b?V.concat(p.boundary):V}},8902:function(i,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;i.exports=T;function h(L,x,C,S,g){this.a=L,this.b=x,this.idx=C,this.lowerIds=S,this.upperIds=g}function d(L,x,C,S){this.a=L,this.b=x,this.type=C,this.idx=S}function v(L,x){var C=L.a[0]-x.a[0]||L.a[1]-x.a[1]||L.type-x.type;return C||L.type!==u&&(C=l(L.a,L.b,x.b),C)?C:L.idx-x.idx}function m(L,x){return l(L.a,L.b,x)}function b(L,x,C,S,g){for(var P=s.lt(x,S,m),E=s.gt(x,S,m),z=P;z1&&l(C[V[Z-2]],C[V[Z-1]],S)>0;)L.push([V[Z-1],V[Z-2],g]),Z-=1;V.length=Z,V.push(g);for(var G=q.upperIds,Z=G.length;Z>1&&l(C[G[Z-2]],C[G[Z-1]],S)<0;)L.push([G[Z-2],G[Z-1],g]),Z-=1;G.length=Z,G.push(g)}}function p(L,x){var C;return L.a[0]q[0]&&g.push(new d(q,z,f,P),new d(z,q,c,P))}g.sort(v);for(var V=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),G=[new h([V,1],[V,0],-1,[],[],[],[])],Z=[],P=0,j=g.length;P=0}}(),u.removeTriangle=function(h,d,v){var m=this.stars;c(m[h],d,v),c(m[d],v,h),c(m[v],h,d)},u.addTriangle=function(h,d,v){var m=this.stars;m[h].push(d,v),m[d].push(v,h),m[v].push(h,d)},u.opposite=function(h,d){for(var v=this.stars[d],m=1,b=v.length;m=0;--N){var Se=Z[N];H=Se[0];var ke=V[H],be=ke[0],Be=ke[1],Le=q[be],me=q[Be];if((Le[0]-me[0]||Le[1]-me[1])<0){var Pe=be;be=Be,Be=Pe}ke[0]=be;var ce=ke[1]=Se[1],He;for(j&&(He=ke[2]);N>0&&Z[N-1][0]===H;){var Se=Z[--N],lt=Se[1];j?V.push([ce,lt,He]):V.push([ce,lt]),ce=lt}j?V.push([ce,Be,He]):V.push([ce,Be])}return ie}function x(q,V,G){for(var Z=V.length,j=new s(Z),N=[],H=0;HV[2]?1:0)}function g(q,V,G){if(q.length!==0){if(V)for(var Z=0;Z0||H.length>0}function z(q,V,G){var Z;if(G){Z=V;for(var j=new Array(V.length),N=0;NL+1)throw new Error(M+" map requires nshades to be at least size "+k.length);Array.isArray(d.alpha)?d.alpha.length!==2?x=[1,1]:x=d.alpha.slice():typeof d.alpha=="number"?x=[d.alpha,d.alpha]:x=[1,1],v=k.map(function(z){return Math.round(z.index*L)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var S=k.map(function(z,q){var V=k[q].index,G=k[q].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=x[0]+(x[1]-x[0])*V),G}),g=[];for(C=0;C=0}function d(v,m,b,p){var k=s(m,b,p);if(k===0){var M=l(s(v,m,b)),T=l(s(v,m,p));if(M===T){if(M===0){var L=h(v,m,b),x=h(v,m,p);return L===x?0:L?1:-1}return 0}else{if(T===0)return M>0||h(v,m,p)?-1:1;if(M===0)return T>0||h(v,m,b)?1:-1}return l(T-M)}var C=s(v,m,b);if(C>0)return k>0&&s(v,m,p)>0?1:-1;if(C<0)return k>0||s(v,m,p)>0?1:-1;var S=s(v,m,p);return S>0||h(v,m,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var c=l.length,f=l.length-u.length;if(f)return f;switch(c){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],d=u[0]+u[1];if(f=h+l[2]-(d+u[2]),f)return f;var v=a(l[0],l[1]),m=a(u[0],u[1]);return a(v,l[2])-a(m,u[2])||a(v+l[2],h)-a(m+u[2],d);case 4:var b=l[0],p=l[1],k=l[2],M=l[3],T=u[0],L=u[1],x=u[2],C=u[3];return b+p+k+M-(T+L+x+C)||a(b,p,k,M)-a(T,L,x,C,T)||a(b+p,b+k,b+M,p+k,p+M,k+M)-a(T+L,T+x,T+C,L+x,L+C,x+C)||a(b+p+k,b+p+M,b+k+M,p+k+M)-a(T+L+x,T+L+C,T+x+C,L+x+C);default:for(var S=l.slice().sort(o),g=u.slice().sort(o),P=0;Po[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=l;var s=o(3090);function l(u){var c=s(u),f=c.length;if(f<=2)return[];for(var h=new Array(f),d=c[f-1],v=0;v=d[T]&&(M+=1);p[k]=M}}return h}function f(h,d){try{return s(h,!0)}catch(p){var v=l(h);if(v.length<=d)return[];var m=u(h,v),b=s(m,!0);return c(b,v)}}},4769:function(i){"use strict";function a(s,l,u,c,f,h){var d=6*f*f-6*f,v=3*f*f-4*f+1,m=-6*f*f+6*f,b=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var p=s.length-1;p>=0;--p)h[p]=d*s[p]+v*l[p]+m*u[p]+b*c[p];return h}return d*s+v*l+m*u[p]+b*c}function o(s,l,u,c,f,h){var d=f-1,v=f*f,m=d*d,b=(1+2*f)*m,p=f*m,k=v*(3-2*f),M=v*d;if(s.length){h||(h=new Array(s.length));for(var T=s.length-1;T>=0;--T)h[T]=b*s[T]+p*l[T]+k*u[T]+M*c[T];return h}return b*s+p*l+k*u+M*c}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),l=o(1682);i.exports=h;function u(d,v){this.point=d,this.index=v}function c(d,v){for(var m=d.point,b=v.point,p=m.length,k=0;k=2)return!1;G[j]=N}return!0}):V=V.filter(function(G){for(var Z=0;Z<=b;++Z){var j=P[G[Z]];if(j<0)return!1;G[Z]=j}return!0}),b&1)for(var M=0;M>>31},i.exports.exponent=function(k){var M=i.exports.hi(k);return(M<<1>>>21)-1023},i.exports.fraction=function(k){var M=i.exports.lo(k),T=i.exports.hi(k),L=T&(1<<20)-1;return T&2146435072&&(L+=1048576),[M,L]},i.exports.denormalized=function(k){var M=i.exports.hi(k);return!(M&2146435072)}},1338:function(i){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),d;if(c===l.length-1)for(d=0;d0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=l;var s=o(1682);function l(u,c){var f=u.length;if(typeof c!="number"){c=0;for(var h=0;h=b-1)for(var C=M.length-1,g=v-m[b-1],S=0;S=b-1)for(var x=M.length-1,C=v-m[b-1],S=0;S=0;--b)if(v[--m])return!1;return!0},f.jump=function(v){var m=this.lastT(),b=this.dimension;if(!(v0;--S)p.push(u(L[S-1],x[S-1],arguments[S])),k.push(0)}},f.push=function(v){var m=this.lastT(),b=this.dimension;if(!(v1e-6?1/T:0;this._time.push(v);for(var g=b;g>0;--g){var P=u(x[g-1],C[g-1],arguments[g]);p.push(P),k.push((P-p[M++])*S)}}},f.set=function(v){var m=this.dimension;if(!(v0;--L)b.push(u(M[L-1],T[L-1],arguments[L])),p.push(0)}},f.move=function(v){var m=this.lastT(),b=this.dimension;if(!(v<=m||arguments.length!==b+1)){var p=this._state,k=this._velocity,M=p.length-this.dimension,T=this.bounds,L=T[0],x=T[1],C=v-m,S=C>1e-6?1/C:0;this._time.push(v);for(var g=b;g>0;--g){var P=arguments[g];p.push(u(L[g-1],x[g-1],p[M++]+P)),k.push(P*S)}}},f.idle=function(v){var m=this.lastT();if(!(v=0;--S)p.push(u(L[S],x[S],p[M]+C*k[M])),k.push(0),M+=1}};function h(v){for(var m=new Array(v),b=0;b=0;--q){var g=P[q];E[q]<=0?P[q]=new s(g._color,g.key,g.value,P[q+1],g.right,g._count+1):P[q]=new s(g._color,g.key,g.value,g.left,P[q+1],g._count+1)}for(var q=P.length-1;q>1;--q){var V=P[q-1],g=P[q];if(V._color===o||g._color===o)break;var G=P[q-2];if(G.left===V)if(V.left===g){var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,q-=1;else{if(G._color=a,G.left=V.right,V._color=o,V.right=G,P[q-2]=V,P[q-1]=g,c(G),c(V),q>=3){var j=P[q-3];j.left===G?j.left=V:j.right=V}break}}else{var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,q-=1;else{if(V.right=g.left,G._color=a,G.left=g.right,g._color=o,g.left=V,g.right=G,P[q-2]=g,P[q-1]=V,c(G),c(V),c(g),q>=3){var j=P[q-3];j.left===G?j.left=g:j.right=g}break}}else if(V.right===g){var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,q-=1;else{if(G._color=a,G.right=V.left,V._color=o,V.left=G,P[q-2]=V,P[q-1]=g,c(G),c(V),q>=3){var j=P[q-3];j.right===G?j.right=V:j.left=V}break}}else{var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,q-=1;else{if(V.left=g.right,G._color=a,G.right=g.left,g._color=o,g.right=V,g.left=G,P[q-2]=g,P[q-1]=V,c(G),c(V),c(g),q>=3){var j=P[q-3];j.right===G?j.right=g:j.left=g}break}}}return P[0]._color=o,new f(S,P[0])};function d(x,C){if(C.left){var S=d(x,C.left);if(S)return S}var S=x(C.key,C.value);if(S)return S;if(C.right)return d(x,C.right)}function v(x,C,S,g){var P=C(x,g.key);if(P<=0){if(g.left){var E=v(x,C,S,g.left);if(E)return E}var E=S(g.key,g.value);if(E)return E}if(g.right)return v(x,C,S,g.right)}function m(x,C,S,g,P){var E=S(x,P.key),z=S(C,P.key),q;if(E<=0&&(P.left&&(q=m(x,C,S,g,P.left),q)||z>0&&(q=g(P.key,P.value),q)))return q;if(z>0&&P.right)return m(x,C,S,g,P.right)}h.forEach=function(C,S,g){if(this.root)switch(arguments.length){case 1:return d(C,this.root);case 2:return v(S,this._compare,C,this.root);case 3:return this._compare(S,g)>=0?void 0:m(S,g,this._compare,C,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],C=this.root;C;)x.push(C),C=C.left;return new b(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],C=this.root;C;)x.push(C),C=C.right;return new b(this,x)}}),h.at=function(x){if(x<0)return new b(this,[]);for(var C=this.root,S=[];;){if(S.push(C),C.left){if(x=C.right._count)break;C=C.right}else break}return new b(this,[])},h.ge=function(x){for(var C=this._compare,S=this.root,g=[],P=0;S;){var E=C(x,S.key);g.push(S),E<=0&&(P=g.length),E<=0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.gt=function(x){for(var C=this._compare,S=this.root,g=[],P=0;S;){var E=C(x,S.key);g.push(S),E<0&&(P=g.length),E<0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.lt=function(x){for(var C=this._compare,S=this.root,g=[],P=0;S;){var E=C(x,S.key);g.push(S),E>0&&(P=g.length),E<=0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.le=function(x){for(var C=this._compare,S=this.root,g=[],P=0;S;){var E=C(x,S.key);g.push(S),E>=0&&(P=g.length),E<0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.find=function(x){for(var C=this._compare,S=this.root,g=[];S;){var P=C(x,S.key);if(g.push(S),P===0)return new b(this,g);P<=0?S=S.left:S=S.right}return new b(this,[])},h.remove=function(x){var C=this.find(x);return C?C.remove():this},h.get=function(x){for(var C=this._compare,S=this.root;S;){var g=C(x,S.key);if(g===0)return S.value;g<=0?S=S.left:S=S.right}};function b(x,C){this.tree=x,this._stack=C}var p=b.prototype;Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new b(this.tree,this._stack.slice())};function k(x,C){x.key=C.key,x.value=C.value,x.left=C.left,x.right=C.right,x._color=C._color,x._count=C._count}function M(x){for(var C,S,g,P,E=x.length-1;E>=0;--E){if(C=x[E],E===0){C._color=o;return}if(S=x[E-1],S.left===C){if(g=S.right,g.right&&g.right._color===a){if(g=S.right=l(g),P=g.right=l(g.right),S.right=g.left,g.left=S,g.right=P,g._color=S._color,C._color=o,S._color=o,P._color=o,c(S),c(g),E>1){var z=x[E-2];z.left===S?z.left=g:z.right=g}x[E-1]=g;return}else if(g.left&&g.left._color===a){if(g=S.right=l(g),P=g.left=l(g.left),S.right=P.left,g.left=P.right,P.left=S,P.right=g,P._color=S._color,S._color=o,g._color=o,C._color=o,c(S),c(g),c(P),E>1){var z=x[E-2];z.left===S?z.left=P:z.right=P}x[E-1]=P;return}if(g._color===o)if(S._color===a){S._color=o,S.right=u(a,g);return}else{S.right=u(a,g);continue}else{if(g=l(g),S.right=g.left,g.left=S,g._color=S._color,S._color=a,c(S),c(g),E>1){var z=x[E-2];z.left===S?z.left=g:z.right=g}x[E-1]=g,x[E]=S,E+11){var z=x[E-2];z.right===S?z.right=g:z.left=g}x[E-1]=g;return}else if(g.right&&g.right._color===a){if(g=S.left=l(g),P=g.right=l(g.right),S.left=P.right,g.right=P.left,P.right=S,P.left=g,P._color=S._color,S._color=o,g._color=o,C._color=o,c(S),c(g),c(P),E>1){var z=x[E-2];z.right===S?z.right=P:z.left=P}x[E-1]=P;return}if(g._color===o)if(S._color===a){S._color=o,S.left=u(a,g);return}else{S.left=u(a,g);continue}else{if(g=l(g),S.left=g.right,g.right=S,g._color=S._color,S._color=a,c(S),c(g),E>1){var z=x[E-2];z.right===S?z.right=g:z.left=g}x[E-1]=g,x[E]=S,E+1=0;--g){var S=x[g];S.left===x[g+1]?C[g]=new s(S._color,S.key,S.value,C[g+1],S.right,S._count):C[g]=new s(S._color,S.key,S.value,S.left,C[g+1],S._count)}if(S=C[C.length-1],S.left&&S.right){var P=C.length;for(S=S.left;S.right;)C.push(S),S=S.right;var E=C[P-1];C.push(new s(S._color,E.key,E.value,S.left,S.right,S._count)),C[P-1].key=S.key,C[P-1].value=S.value;for(var g=C.length-2;g>=P;--g)S=C[g],C[g]=new s(S._color,S.key,S.value,S.left,C[g+1],S._count);C[P-1].left=C[P]}if(S=C[C.length-1],S._color===a){var z=C[C.length-2];z.left===S?z.left=null:z.right===S&&(z.right=null),C.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var x=0,C=this._stack;if(C.length===0){var S=this.tree.root;return S?S._count:0}else C[C.length-1].left&&(x=C[C.length-1].left._count);for(var g=C.length-2;g>=0;--g)C[g+1]===C[g].right&&(++x,C[g].left&&(x+=C[g].left._count));return x},enumerable:!0}),p.next=function(){var x=this._stack;if(x.length!==0){var C=x[x.length-1];if(C.right)for(C=C.right;C;)x.push(C),C=C.left;else for(x.pop();x.length>0&&x[x.length-1].right===C;)C=x[x.length-1],x.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var C=x.length-1;C>0;--C)if(x[C-1].left===x[C])return!0;return!1}}),p.update=function(x){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var S=new Array(C.length),g=C[C.length-1];S[S.length-1]=new s(g._color,g.key,x,g.left,g.right,g._count);for(var P=C.length-2;P>=0;--P)g=C[P],g.left===C[P+1]?S[P]=new s(g._color,g.key,g.value,S[P+1],g.right,g._count):S[P]=new s(g._color,g.key,g.value,g.left,S[P+1],g._count);return new f(this.tree._compare,S[0])},p.prev=function(){var x=this._stack;if(x.length!==0){var C=x[x.length-1];if(C.left)for(C=C.left;C;)x.push(C),C=C.right;else for(x.pop();x.length>0&&x[x.length-1].left===C;)C=x[x.length-1],x.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var C=x.length-1;C>0;--C)if(x[C-1].right===x[C])return!0;return!1}});function T(x,C){return xC?1:0}function L(x){return new f(x||T,null)}},3837:function(i,a,o){"use strict";i.exports=q;var s=o(4935),l=o(501),u=o(5304),c=o(6429),f=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,v=DataView;function m(V){return d.isView(V)&&!(V instanceof v)}function b(V){return Array.isArray(V)||m(V)}function p(V,G){return V[0]=G[0],V[1]=G[1],V[2]=G[2],V}function k(V){this.gl=V,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=u(V)}var M=k.prototype;M.update=function(V){V=V||{};function G(be,Be,Le){if(Le in V){var me=V[Le],Pe=this[Le],ce;(be?b(me)&&b(me[0]):b(me))?this[Le]=ce=[Be(me[0]),Be(me[1]),Be(me[2])]:this[Le]=ce=[Be(me),Be(me),Be(me)];for(var He=0;He<3;++He)if(ce[He]!==Pe[He])return!0}return!1}var Z=G.bind(this,!1,Number),j=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),H=G.bind(this,!0,function(be){if(b(be)){if(be.length===3)return[+be[0],+be[1],+be[2],1];if(be.length===4)return[+be[0],+be[1],+be[2],+be[3]]}return[0,0,0,1]}),ie,ae=!1,_e=!1;if("bounds"in V)for(var Ee=V.bounds,Ce=0;Ce<2;++Ce)for(var ge=0;ge<3;++ge)Ee[Ce][ge]!==this.bounds[Ce][ge]&&(_e=!0),this.bounds[Ce][ge]=Ee[Ce][ge];if("ticks"in V){ie=V.ticks,ae=!0,this.autoTicks=!1;for(var Ce=0;Ce<3;++Ce)this.tickSpacing[Ce]=0}else Z("tickSpacing")&&(this.autoTicks=!0,_e=!0);if(this._firstInit&&("ticks"in V||"tickSpacing"in V||(this.autoTicks=!0),_e=!0,ae=!0,this._firstInit=!1),_e&&this.autoTicks&&(ie=f.create(this.bounds,this.tickSpacing),ae=!0),ae){for(var Ce=0;Ce<3;++Ce)ie[Ce].sort(function(Be,Le){return Be.x-Le.x});f.equal(ie,this.ticks)?ae=!1:this.ticks=ie}j("tickEnable"),N("tickFont")&&(ae=!0),N("tickFontStyle")&&(ae=!0),N("tickFontWeight")&&(ae=!0),N("tickFontVariant")&&(ae=!0),Z("tickSize"),Z("tickAngle"),Z("tickPad"),H("tickColor");var re=N("labels");N("labelFont")&&(re=!0),N("labelFontStyle")&&(re=!0),N("labelFontWeight")&&(re=!0),N("labelFontVariant")&&(re=!0),j("labelEnable"),Z("labelSize"),Z("labelPad"),H("labelColor"),j("lineEnable"),j("lineMirror"),Z("lineWidth"),H("lineColor"),j("lineTickEnable"),j("lineTickMirror"),Z("lineTickLength"),Z("lineTickWidth"),H("lineTickColor"),j("gridEnable"),Z("gridWidth"),H("gridColor"),j("zeroEnable"),H("zeroLineColor"),Z("zeroLineWidth"),j("backgroundEnable"),H("backgroundColor");var Se=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],ke=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(re||ae)&&this._text.update(this.bounds,this.labels,Se,this.ticks,ke):this._text=s(this.gl,this.bounds,this.labels,Se,this.ticks,ke),this._lines&&ae&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function T(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new T,new T,new T];function x(V,G,Z,j,N){for(var H=V.primalOffset,ie=V.primalMinor,ae=V.mirrorOffset,_e=V.mirrorMinor,Ee=j[G],Ce=0;Ce<3;++Ce)if(G!==Ce){var ge=H,re=ae,Se=ie,ke=_e;Ee&1<0?(Se[Ce]=-1,ke[Ce]=0):(Se[Ce]=0,ke[Ce]=1)}}var C=[0,0,0],S={model:h,view:h,projection:h,_ortho:!1};M.isOpaque=function(){return!0},M.isTransparent=function(){return!1},M.drawTransparent=function(V){};var g=0,P=[0,0,0],E=[0,0,0],z=[0,0,0];M.draw=function(V){V=V||S;for(var Le=this.gl,G=V.model||h,Z=V.view||h,j=V.projection||h,N=this.bounds,H=V._ortho||!1,ie=c(G,Z,j,N,H),ae=ie.cubeEdges,_e=ie.axis,Ee=Z[12],Ce=Z[13],ge=Z[14],re=Z[15],Se=H?2:1,ke=Se*this.pixelRatio*(j[3]*Ee+j[7]*Ce+j[11]*ge+j[15]*re)/Le.drawingBufferHeight,be=0;be<3;++be)this.lastCubeProps.cubeEdges[be]=ae[be],this.lastCubeProps.axis[be]=_e[be];for(var Be=L,be=0;be<3;++be)x(L[be],be,this.bounds,ae,_e);for(var Le=this.gl,me=C,be=0;be<3;++be)this.backgroundEnable[be]?me[be]=_e[be]:me[be]=0;this._background.draw(G,Z,j,N,me,this.backgroundColor),this._lines.bind(G,Z,j,this);for(var be=0;be<3;++be){var Pe=[0,0,0];_e[be]>0?Pe[be]=N[1][be]:Pe[be]=N[0][be];for(var ce=0;ce<2;++ce){var He=(be+1+ce)%3,lt=(be+1+(ce^1))%3;this.gridEnable[He]&&this._lines.drawGrid(He,lt,this.bounds,Pe,this.gridColor[He],this.gridWidth[He]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var He=(be+1+ce)%3,lt=(be+1+(ce^1))%3;this.zeroEnable[lt]&&Math.min(N[0][lt],N[1][lt])<=0&&Math.max(N[0][lt],N[1][lt])>=0&&this._lines.drawZero(He,lt,this.bounds,Pe,this.zeroLineColor[lt],this.zeroLineWidth[lt]*this.pixelRatio)}}for(var be=0;be<3;++be){this.lineEnable[be]&&this._lines.drawAxisLine(be,this.bounds,Be[be].primalOffset,this.lineColor[be],this.lineWidth[be]*this.pixelRatio),this.lineMirror[be]&&this._lines.drawAxisLine(be,this.bounds,Be[be].mirrorOffset,this.lineColor[be],this.lineWidth[be]*this.pixelRatio);for(var mt=p(P,Be[be].primalMinor),Ht=p(E,Be[be].mirrorMinor),at=this.lineTickLength,ce=0;ce<3;++ce){var ct=ke/G[5*ce];mt[ce]*=at[ce]*ct,Ht[ce]*=at[ce]*ct}this.lineTickEnable[be]&&this._lines.drawAxisTicks(be,Be[be].primalOffset,mt,this.lineTickColor[be],this.lineTickWidth[be]*this.pixelRatio),this.lineTickMirror[be]&&this._lines.drawAxisTicks(be,Be[be].mirrorOffset,Ht,this.lineTickColor[be],this.lineTickWidth[be]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,Z,j,this.pixelRatio);var ar,Vt=.5,rr,tt;function je(dt){tt=[0,0,0],tt[dt]=1}function Ue(dt,Et,pt){var jt=(dt+1)%3,or=(dt+2)%3,mr=Et[jt],Ar=Et[or],ei=pt[jt],qr=pt[or];if(mr>0&&qr>0){je(jt);return}else if(mr>0&&qr<0){je(jt);return}else if(mr<0&&qr>0){je(jt);return}else if(mr<0&&qr<0){je(jt);return}else if(Ar>0&&ei>0){je(or);return}else if(Ar>0&&ei<0){je(or);return}else if(Ar<0&&ei>0){je(or);return}else if(Ar<0&&ei<0){je(or);return}}for(var be=0;be<3;++be){for(var Ae=Be[be].primalMinor,rt=Be[be].mirrorMinor,St=p(z,Be[be].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[be]&&(St[ce]+=ke*Ae[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var Tt=[0,0,0];if(Tt[be]=1,this.tickEnable[be]){this.tickAngle[be]===-3600?(this.tickAngle[be]=0,this.tickAlign[be]="auto"):this.tickAlign[be]=-1,rr=1,ar=[this.tickAlign[be],Vt,rr],ar[0]==="auto"?ar[0]=g:ar[0]=parseInt(""+ar[0]),tt=[0,0,0],Ue(be,Ae,rt);for(var ce=0;ce<3;++ce)St[ce]+=ke*Ae[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(be,this.tickSize[be],this.tickAngle[be],St,this.tickColor[be],Tt,tt,ar)}if(this.labelEnable[be]){rr=0,tt=[0,0,0],this.labels[be].length>4&&(je(be),rr=1),ar=[this.labelAlign[be],Vt,rr],ar[0]==="auto"?ar[0]=g:ar[0]=parseInt(""+ar[0]);for(var ce=0;ce<3;++ce)St[ce]+=ke*Ae[ce]*this.labelPad[ce]/G[5*ce];St[be]+=.5*(N[0][be]+N[1][be]),this._text.drawLabel(be,this.labelSize[be],this.labelAngle[be],St,this.labelColor[be],[0,0,0],tt,ar)}}this._text.unbind()},M.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function q(V,G){var Z=new k(V);return Z.update(G),Z}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(d,v,m,b){this.gl=d,this.buffer=v,this.vao=m,this.shader=b}var f=c.prototype;f.draw=function(d,v,m,b,p,k){for(var M=!1,T=0;T<3;++T)M=M||p[T];if(M){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:v,projection:m,bounds:b,enable:p,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var v=[],m=[],b=0,p=0;p<3;++p)for(var k=(p+1)%3,M=(p+2)%3,T=[0,0,0],L=[0,0,0],x=-1;x<=1;x+=2){m.push(b,b+2,b+1,b+1,b+2,b+3),T[p]=x,L[p]=x;for(var C=-1;C<=1;C+=2){T[k]=C;for(var S=-1;S<=1;S+=2)T[M]=S,v.push(T[0],T[1],T[2],L[0],L[1],L[2]),b+=1}var g=k;k=M,M=g}var P=s(d,new Float32Array(v)),E=s(d,new Uint16Array(m),d.ELEMENT_ARRAY_BUFFER),z=l(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],E),q=u(d);return q.attributes.position.location=0,q.attributes.normal.location=1,new c(d,P,z,q)}},6429:function(i,a,o){"use strict";i.exports=x;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),d=new Array(8),v=new Array(3),m=[0,0,0];(function(){for(var C=0;C<8;++C)h[C]=[1,1,1,1],d[C]=[1,1,1]})();function b(C,S,g){for(var P=0;P<4;++P){C[P]=g[12+P];for(var E=0;E<3;++E)C[P]+=S[E]*g[4*E+P]}}var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(C){for(var S=0;S_e&&(Z|=1<_e){Z|=1<d[q][1])&&(Be=q);for(var Le=-1,q=0;q<3;++q){var me=Be^1<d[Pe][0]&&(Pe=me)}}var ce=M;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Le^Be)]=Be&Le,ce[s.log2(Be^Pe)]=Be&Pe;var He=Pe^7;He===Z||He===be?(He=Le^7,ce[s.log2(Pe^He)]=He&Pe):ce[s.log2(Le^He)]=He&Le;for(var lt=T,mt=Z,H=0;H<3;++H)mt&1<{});function Km(){}function dCe(){return this.rgb().formatHex()}function iLt(){return this.rgb().formatHex8()}function nLt(){return xCe(this).formatHsl()}function vCe(){return this.rgb().formatRgb()}function rx(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=K6t.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?pCe(t):r===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?LD(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?LD(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=J6t.exec(e))?new _d(t[1],t[2],t[3],1):(t=$6t.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Q6t.exec(e))?LD(t[1],t[2],t[3],t[4]):(t=eLt.exec(e))?LD(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tLt.exec(e))?yCe(t[1],t[2]/100,t[3]/100,1):(t=rLt.exec(e))?yCe(t[1],t[2]/100,t[3]/100,t[4]):hCe.hasOwnProperty(e)?pCe(hCe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function pCe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function LD(e,t,r,n){return n<=0&&(e=t=r=NaN),new _d(e,t,r,n)}function WE(e){return e instanceof Km||(e=rx(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function zA(e,t,r,n){return arguments.length===1?WE(e):new _d(e,t,r,n==null?1:n)}function _d(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function gCe(){return`#${B2(this.r)}${B2(this.g)}${B2(this.b)}`}function aLt(){return`#${B2(this.r)}${B2(this.g)}${B2(this.b)}${B2((isNaN(this.opacity)?1:this.opacity)*255)}`}function mCe(){let e=ID(this.opacity);return`${e===1?"rgb(":"rgba("}${N2(this.r)}, ${N2(this.g)}, ${N2(this.b)}${e===1?")":`, ${e})`}`}function ID(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function N2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function B2(e){return e=N2(e),(e<16?"0":"")+e.toString(16)}function yCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Kg(e,t,r,n)}function xCe(e){if(e instanceof Kg)return new Kg(e.h,e.s,e.l,e.opacity);if(e instanceof Km||(e=rx(e)),!e)return new Kg;if(e instanceof Kg)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new Kg(o,s,l,e.opacity)}function XE(e,t,r,n){return arguments.length===1?xCe(e):new Kg(e,t,r,n==null?1:n)}function Kg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function _Ce(e){return e=(e||0)%360,e<0?e+360:e}function PD(e){return Math.max(0,Math.min(1,e||0))}function LW(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var tx,U2,FA,jE,Ym,K6t,J6t,$6t,Q6t,eLt,tLt,rLt,hCe,RD=gu(()=>{CD();tx=.7,U2=1/tx,FA="\\s*([+-]?\\d+)\\s*",jE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ym="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",K6t=/^#([0-9a-f]{3,8})$/,J6t=new RegExp(`^rgb\\(${FA},${FA},${FA}\\)$`),$6t=new RegExp(`^rgb\\(${Ym},${Ym},${Ym}\\)$`),Q6t=new RegExp(`^rgba\\(${FA},${FA},${FA},${jE}\\)$`),eLt=new RegExp(`^rgba\\(${Ym},${Ym},${Ym},${jE}\\)$`),tLt=new RegExp(`^hsl\\(${jE},${Ym},${Ym}\\)$`),rLt=new RegExp(`^hsla\\(${jE},${Ym},${Ym},${jE}\\)$`),hCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};r1(Km,rx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dCe,formatHex:dCe,formatHex8:iLt,formatHsl:nLt,formatRgb:vCe,toString:vCe});r1(_d,zA,ex(Km,{brighter(e){return e=e==null?U2:Math.pow(U2,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?tx:Math.pow(tx,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(N2(this.r),N2(this.g),N2(this.b),ID(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gCe,formatHex:gCe,formatHex8:aLt,formatRgb:mCe,toString:mCe}));r1(Kg,XE,ex(Km,{brighter(e){return e=e==null?U2:Math.pow(U2,e),new Kg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?tx:Math.pow(tx,e),new Kg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new _d(LW(e>=240?e-240:e+120,i,n),LW(e,i,n),LW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Kg(_Ce(this.h),PD(this.s),PD(this.l),ID(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ID(this.opacity);return`${e===1?"hsl(":"hsla("}${_Ce(this.h)}, ${PD(this.s)*100}%, ${PD(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var DD,FD,PW=gu(()=>{DD=Math.PI/180,FD=180/Math.PI});function MCe(e){if(e instanceof Jm)return new Jm(e.l,e.a,e.b,e.opacity);if(e instanceof i1)return ECe(e);e instanceof _d||(e=WE(e));var t=FW(e.r),r=FW(e.g),n=FW(e.b),i=IW((.2225045*t+.7168786*r+.0606169*n)/wCe),a,o;return t===r&&r===n?a=o=i:(a=IW((.4360747*t+.3850649*r+.1430804*n)/bCe),o=IW((.0139322*t+.0971045*r+.7141733*n)/TCe)),new Jm(116*i-16,500*(a-i),200*(i-o),e.opacity)}function OA(e,t,r,n){return arguments.length===1?MCe(e):new Jm(e,t,r,n==null?1:n)}function Jm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function IW(e){return e>oLt?Math.pow(e,1/3):e/SCe+ACe}function RW(e){return e>qA?e*e*e:SCe*(e-ACe)}function DW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function FW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function sLt(e){if(e instanceof i1)return new i1(e.h,e.c,e.l,e.opacity);if(e instanceof Jm||(e=MCe(e)),e.a===0&&e.b===0)return new i1(NaN,0{CD();RD();PW();zD=18,bCe=.96422,wCe=1,TCe=.82521,ACe=4/29,qA=6/29,SCe=3*qA*qA,oLt=qA*qA*qA;r1(Jm,OA,ex(Km,{brighter(e){return new Jm(this.l+zD*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Jm(this.l-zD*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=bCe*RW(t),e=wCe*RW(e),r=TCe*RW(r),new _d(DW(3.1338561*t-1.6168667*e-.4906146*r),DW(-.9787684*t+1.9161415*e+.033454*r),DW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));r1(i1,ZE,ex(Km,{brighter(e){return new i1(this.h,this.c,this.l+zD*(e==null?1:e),this.opacity)},darker(e){return new i1(this.h,this.c,this.l-zD*(e==null?1:e),this.opacity)},rgb(){return ECe(this).rgb()}}))});function lLt(e){if(e instanceof V2)return new V2(e.h,e.s,e.l,e.opacity);e instanceof _d||(e=WE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(PCe*n+CCe*t-LCe*r)/(PCe+CCe-LCe),a=n-i,o=(YE*(r-i)-qW*a)/qD,s=Math.sqrt(o*o+a*a)/(YE*i*(1-i)),l=s?Math.atan2(o,a)*FD-120:NaN;return new V2(l<0?l+360:l,s,i,e.opacity)}function BA(e,t,r,n){return arguments.length===1?lLt(e):new V2(e,t,r,n==null?1:n)}function V2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var ICe,zW,qW,qD,YE,CCe,LCe,PCe,RCe=gu(()=>{CD();RD();PW();ICe=-.14861,zW=1.78277,qW=-.29227,qD=-.90649,YE=1.97294,CCe=YE*qD,LCe=YE*zW,PCe=zW*qW-qD*ICe;r1(V2,BA,ex(Km,{brighter(e){return e=e==null?U2:Math.pow(U2,e),new V2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?tx:Math.pow(tx,e),new V2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*DD,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new _d(255*(t+r*(ICe*n+zW*i)),255*(t+r*(qW*n+qD*i)),255*(t+r*(YE*n)),this.opacity)}}))});var G2=gu(()=>{RD();kCe();RCe()});function OW(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function OD(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function ND(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return OW((r-n/t)*t,i,a,o,s)}}var BW=gu(()=>{BD()});var NA,NW=gu(()=>{NA=e=>()=>e});function DCe(e,t){return function(r){return e+r*t}}function uLt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function ix(e,t){var r=t-e;return r?DCe(e,r>180||r<-180?r-360*Math.round(r/360):r):NA(isNaN(e)?t:e)}function FCe(e){return(e=+e)==1?$f:function(t,r){return r-t?uLt(t,r,e):NA(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?DCe(e,r):NA(isNaN(e)?t:e)}var H2=gu(()=>{NW()});function zCe(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{G2();BD();BW();H2();KE=(function e(t){var r=FCe(t);function n(i,a){var o=r((i=zA(i)).r,(a=zA(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=$f(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);qCe=zCe(OD),OCe=zCe(ND)});function UA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function BCe(e,t){return(UD(t)?UA:VW)(e,t)}function VW(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{JE();VD()});function GD(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var HW=gu(()=>{});function zp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var $E=gu(()=>{});function HD(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=nx(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var jW=gu(()=>{JE()});function cLt(e){return function(){return e}}function fLt(e){return function(t){return e(t)+""}}function jD(e,t){var r=XW.lastIndex=WW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=XW.exec(e))&&(i=WW.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:zp(n,i)})),r=WW.lastIndex;return r{$E();XW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,WW=new RegExp(XW.source,"g")});function nx(e,t){var r=typeof t,n;return t==null||r==="boolean"?NA(t):(r==="number"?zp:r==="string"?(n=rx(t))?(t=n,KE):jD:t instanceof rx?KE:t instanceof Date?GD:UD(t)?UA:Array.isArray(t)?VW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?HD:zp)(e,t)}var JE=gu(()=>{G2();UW();GW();HW();$E();jW();ZW();NW();VD()});function NCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var UCe=gu(()=>{});function VCe(e,t){var r=ix(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var GCe=gu(()=>{H2()});function HCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var jCe=gu(()=>{});function YW(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n{WCe=180/Math.PI,WD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function ZCe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?WD:YW(t.a,t.b,t.c,t.d,t.e,t.f)}function YCe(e){return e==null?WD:(XD||(XD=document.createElementNS("http://www.w3.org/2000/svg","g")),XD.setAttribute("transform",e),(e=XD.transform.baseVal.consolidate())?(e=e.matrix,YW(e.a,e.b,e.c,e.d,e.e,e.f)):WD)}var XD,KCe=gu(()=>{XCe()});function JCe(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,d,v){if(u!==f||c!==h){var m=d.push("translate(",null,t,null,r);v.push({i:m-4,x:zp(u,f)},{i:m-2,x:zp(c,h)})}else(f||h)&&d.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:zp(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:zp(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,d,v){if(u!==f||c!==h){var m=d.push(i(d)+"scale(",null,",",null,")");v.push({i:m-4,x:zp(u,f)},{i:m-2,x:zp(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(d){for(var v=-1,m=h.length,b;++v{$E();KCe();$Ce=JCe(ZCe,"px, ","px)","deg)"),QCe=JCe(YCe,", ",")",")")});function t6e(e){return((e=Math.exp(e))+1/e)/2}function dLt(e){return((e=Math.exp(e))-1/e)/2}function vLt(e){return((e=Math.exp(2*e))-1)/(e+1)}var hLt,r6e,i6e=gu(()=>{hLt=1e-12;r6e=(function e(t,r,n){function i(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],d=c-s,v=f-l,m=d*d+v*v,b,p;if(m{G2();H2();a6e=n6e(ix),o6e=n6e($f)});function KW(e,t){var r=$f((e=OA(e)).l,(t=OA(t)).l),n=$f(e.a,t.a),i=$f(e.b,t.b),a=$f(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var l6e=gu(()=>{G2();H2()});function u6e(e){return function(t,r){var n=e((t=ZE(t)).h,(r=ZE(r)).h),i=$f(t.c,r.c),a=$f(t.l,r.l),o=$f(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var c6e,f6e,h6e=gu(()=>{G2();H2();c6e=u6e(ix),f6e=u6e($f)});function d6e(e){return(function t(r){r=+r;function n(i,a){var o=e((i=BA(i)).h,(a=BA(a)).h),s=$f(i.s,a.s),l=$f(i.l,a.l),u=$f(i.opacity,a.opacity);return function(c){return i.h=o(c),i.s=s(c),i.l=l(Math.pow(c,r)),i.opacity=u(c),i+""}}return n.gamma=t,n})(1)}var v6e,p6e,g6e=gu(()=>{G2();H2();v6e=d6e(ix),p6e=d6e($f)});function JW(e,t){t===void 0&&(t=e,e=nx);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{JE()});function y6e(e,t){for(var r=new Array(t),n=0;n{});var j2={};bee(j2,{interpolate:()=>nx,interpolateArray:()=>BCe,interpolateBasis:()=>OD,interpolateBasisClosed:()=>ND,interpolateCubehelix:()=>v6e,interpolateCubehelixLong:()=>p6e,interpolateDate:()=>GD,interpolateDiscrete:()=>NCe,interpolateHcl:()=>c6e,interpolateHclLong:()=>f6e,interpolateHsl:()=>a6e,interpolateHslLong:()=>o6e,interpolateHue:()=>VCe,interpolateLab:()=>KW,interpolateNumber:()=>zp,interpolateNumberArray:()=>UA,interpolateObject:()=>HD,interpolateRgb:()=>KE,interpolateRgbBasis:()=>qCe,interpolateRgbBasisClosed:()=>OCe,interpolateRound:()=>HCe,interpolateString:()=>jD,interpolateTransformCss:()=>$Ce,interpolateTransformSvg:()=>QCe,interpolateZoom:()=>r6e,piecewise:()=>JW,quantize:()=>y6e});var W2=gu(()=>{JE();GW();BD();BW();HW();UCe();GCe();$E();VD();jW();jCe();ZW();e6e();i6e();UW();s6e();l6e();h6e();g6e();m6e();_6e()});var ZD=ye((F0r,x6e)=>{"use strict";var pLt=So(),gLt=ka();x6e.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=n.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),pLt.pointStyle(t,n,i,r)}else gLt.fill(t,l)}});var $W=ye((z0r,S6e)=>{"use strict";var b6e=Fa(),w6e=ka(),T6e=Pr(),mLt=bv().resizeText,yLt=ZD();function _Lt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");mLt(e,t,"sunburst"),t.each(function(r){var n=b6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){b6e.select(this).call(A6e,o,a,e)})})}function A6e(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=T6e.castOption(r,o,"marker.line.color")||w6e.defaultLine,l=T6e.castOption(r,o,"marker.line.width")||0;e.call(yLt,t,r,n).style("stroke-width",l).call(w6e.stroke,s).style("opacity",a?r.leaf.opacity:null)}S6e.exports={style:_Lt,styleOne:A6e}});var n1=ye(Bs=>{"use strict";var X2=Pr(),xLt=ka(),bLt=Eg(),M6e=m_();Bs.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(Bs.getPtId(n)===t)return r=n.copy()}),r||e};Bs.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};Bs.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};Bs.isHeader=function(e,t){return!(Bs.isLeaf(e)||e.depth===t._maxDepth-1)};function E6e(e){return e.data.data.pid}Bs.getParent=function(e,t){return Bs.findEntryWithLevel(e,E6e(t))};Bs.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return Bs.listPath(r,t).concat(n)};Bs.getPath=function(e){return Bs.listPath(e,"label").join("/")+"/"};Bs.formatValue=M6e.formatPieValue;Bs.formatPercent=function(e,t){var r=X2.formatPercent(e,0);return r==="0%"&&(r=M6e.formatPiePercent(e,t)),r}});var tk=ye((O0r,L6e)=>{"use strict";var VA=Fa(),k6e=Oa(),ALt=ip().appendArrayPointValue,QE=ef(),C6e=Pr(),SLt=I3(),id=n1(),MLt=m_(),ELt=MLt.formatPieValue;L6e.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",c=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var f=function(v){var m=n._fullLayout;if(!(n._dragging||m.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,k=p.i,M=id.isHierarchyRoot(v),T=id.getParent(l,v),L=id.getValue(v),x=function(Ee){return C6e.castOption(b,k,Ee)},C=x("hovertemplate"),S=QE.castHoverinfo(b,m,k),g=m.separators,P;if(C||S&&S!=="none"&&S!=="skip"){var E,z;u&&(E=o.cx+v.pxmid[0]*(1-v.rInscribed),z=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(E=v._hoverX,z=v._hoverY);var q={},V=[],G=[],Z=function(Ee){return V.indexOf(Ee)!==-1};S&&(V=S==="all"?b._module.attributes.hoverinfo.flags:S.split("+")),q.label=p.label,Z("label")&&q.label&&G.push(q.label),p.hasOwnProperty("v")&&(q.value=p.v,q.valueLabel=ELt(q.value,g),Z("value")&&G.push(q.valueLabel)),q.currentPath=v.currentPath=id.getPath(v.data),Z("current path")&&!M&&G.push(q.currentPath);var j,N=[],H=function(){N.indexOf(j)===-1&&(G.push(j),N.push(j))};q.percentParent=v.percentParent=L/id.getValue(T),q.parent=v.parentString=id.getPtLabel(T),Z("percent parent")&&(j=id.formatPercent(q.percentParent,g)+" of "+q.parent,H()),q.percentEntry=v.percentEntry=L/id.getValue(r),q.entry=v.entry=id.getPtLabel(r),Z("percent entry")&&!M&&!v.onPathbar&&(j=id.formatPercent(q.percentEntry,g)+" of "+q.entry,H()),q.percentRoot=v.percentRoot=L/id.getValue(l),q.root=v.root=id.getPtLabel(l),Z("percent root")&&!M&&(j=id.formatPercent(q.percentRoot,g)+" of "+q.root,H()),q.text=x("hovertext")||x("text"),Z("text")&&(j=q.text,C6e.isValidTextValue(j)&&G.push(j)),P=[ek(v,b,a.eventDataKeys)];var re={trace:b,y:z,_x0:v._x0,_x1:v._x1,_y0:v._y0,_y1:v._y1,text:G.join("
"),name:C||Z("name")?b.name:void 0,color:x("hoverlabel.bgcolor")||p.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:C,hovertemplateLabels:q,eventData:P};u&&(re.x0=E-v.rInscribed*v.rpx1,re.x1=E+v.rInscribed*v.rpx1,re.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(re.x=E,re.idealAlign=E<0?"left":"right");var ae=[];QE.loneHover(re,{container:m._hoverlayer.node(),outerContainer:m._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(c){var _e=t.select("path.surface");a.styleOne(_e,v,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[ek(v,b,a.eventDataKeys)],event:VA.event})}},h=function(v){var m=n._fullLayout,b=n._fullData[s.index],p=VA.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=VA.event,n.emit("plotly_unhover",{points:[ek(p,b,a.eventDataKeys)],event:VA.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(QE.loneUnhover(m._hoverlayer.node()),s._hasHoverLabel=!1),c){var k=t.select("path.surface");a.styleOne(k,p,b,n,{hovered:!1})}},d=function(v){var m=n._fullLayout,b=n._fullData[s.index],p=u&&(id.isHierarchyRoot(v)||id.isLeaf(v)),k=id.getPtId(v),M=id.isEntry(v)?id.findEntryWithChild(l,k):id.findEntryWithLevel(l,k),T=id.getPtId(M),L={points:[ek(v,b,a.eventDataKeys)],event:VA.event};p||(L.nextLevel=T);var x=SLt.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&m.hovermode&&(n._hoverdata=[ek(v,b,a.eventDataKeys)],QE.click(n,VA.event)),!p&&x!==!1&&!n._dragging&&!n._transitioning){k6e.call("_storeDirectGUIEdit",b,m._tracePreGUI[b.uid],{level:b.level});var C={data:[{level:T}],traces:[s.index]},S={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};QE.loneUnhover(m._hoverlayer.node()),k6e.call("animate",n,C,S)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",d)};function ek(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var rk=Fa(),kLt=VE(),Jg=(W2(),gb(j2)).interpolate,P6e=So(),Av=Pr(),CLt=Zl(),F6e=bv(),I6e=F6e.recordMinTextSize,LLt=F6e.clearMinTextSize,z6e=ED(),PLt=m_().getRotationAngle,ILt=z6e.computeTransform,RLt=z6e.transformInsideText,DLt=$W().styleOne,FLt=V0().resizeText,zLt=tk(),QW=kW(),Il=n1();YD.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,l=!r,u=!i.uniformtext.mode&&Il.hasTransition(r);if(LLt("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(f){return f[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){n&&(s=n());var c=rk.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});c.each(function(){a.selectAll("g.trace").each(function(f){R6e(e,f,this,r)})})}else o.each(function(f){R6e(e,f,this,r)}),i.uniformtext.mode&&FLt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function R6e(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Il.hasTransition(n),s=rk.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=Il.findEntryWithLevel(f,c.level),d=Il.getMaxDepth(c),v=a._size,m=c.domain,b=v.w*(m.x[1]-m.x[0]),p=v.h*(m.y[1]-m.y[0]),k=.5*Math.min(b,p),M=u.cx=v.l+v.w*(m.x[1]+m.x[0])/2,T=u.cy=v.t+v.h*(1-m.y[0])-p/2;if(!h)return l.remove();var L=null,x={};o&&l.each(function(ge){x[Il.getPtId(ge)]={rpx0:ge.rpx0,rpx1:ge.rpx1,x0:ge.x0,x1:ge.x1,transform:ge.transform},!L&&Il.isEntry(ge)&&(L=ge)});var C=qLt(h).descendants(),S=h.height+1,g=0,P=d;u.hasMultipleRoots&&Il.isHierarchyRoot(h)&&(C=C.slice(1),S-=1,g=1,P+=1),C=C.filter(function(ge){return ge.y1<=P});var E=PLt(c.rotation);E&&C.forEach(function(ge){ge.x0+=E,ge.x1+=E});var z=Math.min(S,d),q=function(ge){return(ge-g)/z*k},V=function(ge,ie){return[ge*Math.cos(ie),-ge*Math.sin(ie)]},G=function(ge){return Av.pathAnnulus(ge.rpx0,ge.rpx1,ge.x0,ge.x1,M,T)},Z=function(ge){return M+D6e(ge)[0]*(ge.transform.rCenter||0)+(ge.transform.x||0)},j=function(ge){return T+D6e(ge)[1]*(ge.transform.rCenter||0)+(ge.transform.y||0)};l=l.data(C,Il.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var ge=rk.select(this),ie=ge.select("path.surface");ie.transition().attrTween("d",function(ke){var be=ae(ke);return function(Be){return G(be(Be))}});var Se=ge.select("g.slicetext");Se.attr("opacity",0)}).remove():l.exit().remove(),l.order();var N=null;if(o&&L){var H=Il.getPtId(L);l.each(function(ge){N===null&&Il.getPtId(ge)===H&&(N=ge.x1)})}var re=l;o&&(re=re.transition().each("end",function(){var ge=rk.select(this);Il.setSliceCursor(ge,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(ge){var ie=rk.select(this),Se=Av.ensureSingle(ie,"path","surface",function(Pe){Pe.style("pointer-events",i?"none":"all")});ge.rpx0=q(ge.y0),ge.rpx1=q(ge.y1),ge.xmid=(ge.x0+ge.x1)/2,ge.pxmid=V(ge.rpx1,ge.xmid),ge.midangle=-(ge.xmid-Math.PI/2),ge.startangle=-(ge.x0-Math.PI/2),ge.stopangle=-(ge.x1-Math.PI/2),ge.halfangle=.5*Math.min(Av.angleDelta(ge.x0,ge.x1)||Math.PI,Math.PI),ge.ring=1-ge.rpx0/ge.rpx1,ge.rInscribed=OLt(ge,c),o?Se.transition().attrTween("d",function(Pe){var ce=_e(Pe);return function(He){return G(ce(He))}}):Se.attr("d",G),ie.call(zLt,h,e,t,{eventDataKeys:QW.eventDataKeys,transitionTime:QW.CLICK_TRANSITION_TIME,transitionEasing:QW.CLICK_TRANSITION_EASING}).call(Il.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(DLt,ge,c,e);var ke=Av.ensureSingle(ie,"g","slicetext"),be=Av.ensureSingle(ke,"text","",function(Pe){Pe.attr("data-notex",1)}),Be=Av.ensureUniformFontSize(e,Il.determineTextFont(c,ge,a.font));be.text(YD.formatSliceLabel(ge,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(P6e.font,Be).call(CLt.convertToTspans,e);var Le=P6e.bBox(be.node());ge.transform=RLt(Le,ge,u),ge.transform.targetX=Z(ge),ge.transform.targetY=j(ge);var me=function(Pe,ce){var He=Pe.transform;return ILt(He,ce),He.fontSize=Be.size,I6e(c.type,He,a),Av.getTextTransform(He)};o?be.transition().attrTween("transform",function(Pe){var ce=Ee(Pe);return function(He){return me(ce(He),Le)}}):be.attr("transform",me(ge,Le))});function ae(ge){var ie=Il.getPtId(ge),Se=x[ie],ke=x[Il.getPtId(h)],be;if(ke){var Be=(ge.x1>ke.x1?2*Math.PI:0)+E;be=ge.rpx1N?2*Math.PI:0)+E;Se={x0:be,x1:be}}else Se={rpx0:k,rpx1:k},Av.extendFlat(Se,Ce(ge));else Se={rpx0:0,rpx1:0};else Se={x0:E,x1:E};return Jg(Se,ke)}function Ee(ge){var ie=x[Il.getPtId(ge)],Se,ke=ge.transform;if(ie)Se=ie;else if(Se={rpx1:ge.rpx1,transform:{textPosAngle:ke.textPosAngle,scale:0,rotate:ke.rotate,rCenter:ke.rCenter,x:ke.x,y:ke.y}},L)if(ge.parent)if(N){var be=ge.x1>N?2*Math.PI:0;Se.x0=Se.x1=be}else Av.extendFlat(Se,Ce(ge));else Se.x0=Se.x1=E;else Se.x0=Se.x1=E;var Be=Jg(Se.transform.textPosAngle,ge.transform.textPosAngle),Le=Jg(Se.rpx1,ge.rpx1),me=Jg(Se.x0,ge.x0),Pe=Jg(Se.x1,ge.x1),ce=Jg(Se.transform.scale,ke.scale),He=Jg(Se.transform.rotate,ke.rotate),lt=ke.rCenter===0?3:Se.transform.rCenter===0?1/3:1,mt=Jg(Se.transform.rCenter,ke.rCenter),Ht=function(at){return mt(Math.pow(at,lt))};return function(at){var ct=Le(at),ar=me(at),Vt=Pe(at),rr=Ht(at),tt=V(ct,(ar+Vt)/2),je=Be(at),Ue={pxmid:tt,rpx1:ct,transform:{textPosAngle:je,rCenter:rr,x:ke.x,y:ke.y}};return I6e(c.type,ke,a),{transform:{targetX:Z(Ue),targetY:j(Ue),scale:ce(at),rotate:He(at),rCenter:rr}}}}function Ce(ge){var ie=ge.parent,Se=x[Il.getPtId(ie)],ke={};if(Se){var be=ie.children,Be=be.indexOf(ge),Le=be.length,me=Jg(Se.x0,Se.x1);ke.x0=me(Be/Le),ke.x1=me(Be/Le)}else ke.x0=ke.x1=0;return ke}}function qLt(e){return kLt.partition().size([2*Math.PI,e.height+1])(e)}YD.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,l=n[0],u=e.data.data,c=l.hierarchy,f=Il.isHierarchyRoot(e),h=Il.getParent(c,e),d=Il.getValue(e);if(!a){var v=o.split("+"),m=function(g){return v.indexOf(g)!==-1},b=[],p;if(m("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&m("value")&&b.push(Il.formatValue(u.v,s)),!f){m("current path")&&b.push(Il.getPath(e.data));var k=0;m("percent parent")&&k++,m("percent entry")&&k++,m("percent root")&&k++;var M=k>1;if(k){var T,L=function(g){p=Il.formatPercent(T,s),M&&(p+=" of "+g),b.push(p)};m("percent parent")&&!f&&(T=d/Il.getValue(h),L("parent")),m("percent entry")&&(T=d/Il.getValue(t),L("entry")),m("percent root")&&(T=d/Il.getValue(c),L("root"))}}return m("text")&&(p=Av.castOption(r,u.i,"text"),Av.isValidTextValue(p)&&b.push(p)),b.join("
")}var x=Av.castOption(r,u.i,"texttemplate");if(!x)return"";var C={};u.label&&(C.label=u.label),u.hasOwnProperty("v")&&(C.value=u.v,C.valueLabel=Il.formatValue(u.v,s)),C.currentPath=Il.getPath(e.data),f||(C.percentParent=d/Il.getValue(h),C.percentParentLabel=Il.formatPercent(C.percentParent,s),C.parent=Il.getPtLabel(h)),C.percentEntry=d/Il.getValue(t),C.percentEntryLabel=Il.formatPercent(C.percentEntry,s),C.entry=Il.getPtLabel(t),C.percentRoot=d/Il.getValue(c),C.percentRootLabel=Il.formatPercent(C.percentRoot,s),C.root=Il.getPtLabel(c),u.hasOwnProperty("color")&&(C.color=u.color);var S=Av.castOption(r,u.i,"text");return(Av.isValidTextValue(S)||S==="")&&(C.text=S),C.customdata=Av.castOption(r,u.i,"customdata"),Av.texttemplateString({data:[C,r._meta],fallback:r.texttemplatefallback,labels:C,locale:i._d3locale,template:x})};function OLt(e){return e.rpx0===0&&Av.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function D6e(e){return BLt(e.rpx1,e.transform.textPosAngle)}function BLt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var O6e=ye((N0r,q6e)=>{"use strict";q6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:Jke(),categories:[],animatable:!0,attributes:UE(),layoutAttributes:CW(),supplyDefaults:oCe(),supplyLayoutDefaults:lCe(),calc:HE().calc,crossTraceCalc:HE().crossTraceCalc,plot:KD().plot,style:$W().style,colorbar:Qd(),meta:{}}});var N6e=ye((U0r,B6e)=>{"use strict";B6e.exports=O6e()});var V6e=ye(GA=>{"use strict";var U6e=Mc();GA.name="treemap";GA.plot=function(e,t,r,n){U6e.plotBasePlot(GA.name,e,t,r,n)};GA.clean=function(e,t,r,n){U6e.cleanBasePlot(GA.name,e,t,r,n)}});var Z2=ye((G0r,G6e)=>{"use strict";G6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var JD=ye((H0r,W6e)=>{"use strict";var{hovertemplateAttrs:NLt,texttemplateAttrs:ULt,templatefallbackAttrs:H6e}=Pl(),VLt=Tu(),GLt=Cc().attributes,Y2=q2(),tg=UE(),j6e=Z2(),eX=Ao().extendFlat,HLt=Pd().pattern;W6e.exports={labels:tg.labels,parents:tg.parents,values:tg.values,branchvalues:tg.branchvalues,count:tg.count,level:tg.level,maxdepth:tg.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:eX({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:tg.marker.colors,pattern:HLt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:tg.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},VLt("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:eX({},Y2.textfont,{}),editType:"calc"},text:Y2.text,textinfo:tg.textinfo,texttemplate:ULt({editType:"plot"},{keys:j6e.eventDataKeys.concat(["label","value"])}),texttemplatefallback:H6e({editType:"plot"}),hovertext:Y2.hovertext,hoverinfo:tg.hoverinfo,hovertemplate:NLt({},{keys:j6e.eventDataKeys}),hovertemplatefallback:H6e(),textfont:Y2.textfont,insidetextfont:Y2.insidetextfont,outsidetextfont:eX({},Y2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:Y2.sort,root:tg.root,domain:GLt({name:"treemap",trace:!0,editType:"calc"})}});var tX=ye((j0r,X6e)=>{"use strict";X6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var J6e=ye((W0r,K6e)=>{"use strict";var Z6e=Pr(),jLt=JD(),WLt=ka(),XLt=Cc().defaults,ZLt=i0().handleText,YLt=S_().TEXTPAD,KLt=O2().handleMarkerDefaults,Y6e=tc(),JLt=Y6e.hasColorscale,$Lt=Y6e.handleDefaults;K6e.exports=function(t,r,n,i){function a(b,p){return Z6e.coerce(t,r,jLt,b,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",Z6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),h="auto";ZLt(t,r,i,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;KLt(t,r,i,a);var v=r._hasColorscale=JLt(t,"marker","colors")||(t.marker||{}).coloraxis;v?$Lt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var m=r.textfont.size*2;a("marker.pad.t",d?m/4:m),a("marker.pad.l",m/4),a("marker.pad.r",m/4),a("marker.pad.b",d?m:m/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:WLt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*YLt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),XLt(r,i,a),r._length=null}});var Q6e=ye((X0r,$6e)=>{"use strict";var QLt=Pr(),ePt=tX();$6e.exports=function(t,r){function n(i,a){return QLt.coerce(t,r,ePt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var iX=ye(rX=>{"use strict";var eLe=HE();rX.calc=function(e,t){return eLe.calc(e,t)};rX.crossTraceCalc=function(e){return eLe._runCrossTraceCalc("treemap",e)}});var nX=ye((Y0r,tLe)=>{"use strict";tLe.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var HA=VE(),tPt=nX();rLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],l=n.pad[i?"right":"left"],u=n.pad[i?"left":"right"],c=n.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=HA.treemap().tile(rPt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&tPt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function rPt(e,t){switch(e){case"squarify":return HA.treemapSquarify.ratio(t);case"binary":return HA.treemapBinary;case"dice":return HA.treemapDice;case"slice":return HA.treemapSlice;default:return HA.treemapSliceDice}}});var $D=ye((J0r,oLe)=>{"use strict";var iLe=Fa(),jA=ka(),nLe=Pr(),oX=n1(),iPt=bv().resizeText,nPt=ZD();function aPt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");iPt(e,t,"treemap"),t.each(function(r){var n=iLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){iLe.select(this).call(aLe,o,a,e,{hovered:!1})})})}function aLe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=oX.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(f&&c===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=nLe.castOption(r,s,"marker.line.color")||jA.defaultLine,u=nLe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=jA.combine(jA.addOpacity(r._backgroundColor,.75),c),m;if(d===!0){var b=oX.getMaxDepth(r);isFinite(b)?oX.isLeaf(t)?m=0:m=r._maxVisibleLayers-(t.data.depth-r._entryDepth):m=t.data.height+1}else m=t.data.depth-r._entryDepth,r._atRootLevel||m++;if(m>0)for(var p=0;p{"use strict";var sLe=Fa(),QD=Pr(),lLe=So(),oPt=Zl(),sPt=aX(),uLe=$D().styleOne,sX=Z2(),WA=n1(),lPt=tk(),lX=!0;cLe.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,v=a.hasTransition,m=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,k={},M=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=L.hierarchy,S=s/x._entryDepth,g=WA.listPath(n.data,"id"),P=sPt(C.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(z){var q=g.indexOf(z.data.id);return q===-1?!1:(z.x0=S*q,z.x1=S*(q+1),z.y0=o,z.y1=o+l,z.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,WA.getPtId),i.enter().append("g").classed("pathbar",!0),m(i,lX,k,[s,l],f),i.order();var E=i;v&&(E=E.transition().each("end",function(){var z=sLe.select(this);WA.setSliceCursor(z,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),E.each(function(z){z._x0=u(z.x0),z._x1=u(z.x1),z._y0=c(z.y0),z._y1=c(z.y1),z._hoverX=u(z.x1-Math.min(s,l)/2),z._hoverY=c(z.y1-l/2);var q=sLe.select(this),V=QD.ensureSingle(q,"path","surface",function(N){N.style("pointer-events",M?"none":"all")});v?V.transition().attrTween("d",function(N){var H=b(N,lX,k,[s,l]);return function(re){return f(H(re))}}):V.attr("d",f),q.call(lPt,n,t,r,{styleOne:uLe,eventDataKeys:sX.eventDataKeys,transitionTime:sX.CLICK_TRANSITION_TIME,transitionEasing:sX.CLICK_TRANSITION_EASING}).call(WA.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),V.call(uLe,z,x,t,{hovered:!1}),z._text=(WA.getPtLabel(z)||"").split("
").join(" ")||"";var G=QD.ensureSingle(q,"g","slicetext"),Z=QD.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),j=QD.ensureUniformFontSize(t,WA.determineTextFont(x,z,T.font,{onPathbar:!0}));Z.text(z._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(lLe.font,j).call(oPt.convertToTspans,t),z.textBB=lLe.bBox(Z.node()),z.transform=h(z,{fontSize:j.size,onPathbar:!0}),z.transform.fontSize=j.size,v?Z.transition().attrTween("transform",function(N){var H=p(N,lX,k,[s,l]);return function(re){return d(H(re))}}):Z.attr("transform",d(z))})}});var pLe=ye((Q0r,vLe)=>{"use strict";var hLe=Fa(),uX=(W2(),gb(j2)).interpolate,ax=n1(),ik=Pr(),dLe=S_().TEXTPAD,uPt=g2(),cPt=uPt.toMoveInsideBar,fPt=bv(),cX=fPt.recordMinTextSize,hPt=Z2(),dPt=fLe();function K2(e){return ax.isHierarchyRoot(e)?"":ax.getPtId(e)}vLe.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=ax.findEntryWithLevel(f,l.level),d=hLe.select(n),v=d.selectAll("g.pathbar"),m=d.selectAll("g.slice");if(!h){v.remove(),m.remove();return}var b=ax.isHierarchyRoot(h),p=!o.uniformtext.mode&&ax.hasTransition(i),k=ax.getMaxDepth(l),M=function(Ae){return Ae.data.depth-h.data.depth-1?C+P:-(g+P):0,z={x0:S,x1:S,y0:E,y1:E+g},q=function(Ae,rt,St){var Tt=l.tiling.pad,dt=function(or){return or-Tt<=rt.x0},Et=function(or){return or+Tt>=rt.x1},pt=function(or){return or-Tt<=rt.y0},jt=function(or){return or+Tt>=rt.y1};return Ae.x0===rt.x0&&Ae.x1===rt.x1&&Ae.y0===rt.y0&&Ae.y1===rt.y1?{x0:Ae.x0,x1:Ae.x1,y0:Ae.y0,y1:Ae.y1}:{x0:dt(Ae.x0-Tt)?0:Et(Ae.x0-Tt)?St[0]:Ae.x0,x1:dt(Ae.x1+Tt)?0:Et(Ae.x1+Tt)?St[0]:Ae.x1,y0:pt(Ae.y0-Tt)?0:jt(Ae.y0-Tt)?St[1]:Ae.y0,y1:pt(Ae.y1+Tt)?0:jt(Ae.y1+Tt)?St[1]:Ae.y1}},V=null,G={},Z={},j=null,N=function(Ae,rt){return rt?G[K2(Ae)]:Z[K2(Ae)]},H=function(Ae,rt,St,Tt){if(rt)return G[K2(f)]||z;var dt=Z[l.level]||St;return M(Ae)?q(Ae,dt,Tt):{}};s.hasMultipleRoots&&b&&k++,l._maxDepth=k,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=b;var re=-x/2+T.l+T.w*(L.x[1]+L.x[0])/2,ae=-C/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),_e=function(Ae){return re+Ae},Ee=function(Ae){return ae+Ae},Ce=Ee(0),ge=_e(0),ie=function(Ae){return ge+Ae},Se=function(Ae){return Ce+Ae};function ke(Ae,rt){return Ae+","+rt}var be=ie(0),Be=function(Ae){Ae.x=Math.max(be,Ae.x)},Le=l.pathbar.edgeshape,me=function(Ae){var rt=ie(Math.max(Math.min(Ae.x0,Ae.x0),0)),St=ie(Math.min(Math.max(Ae.x1,Ae.x1),S)),Tt=Se(Ae.y0),dt=Se(Ae.y1),Et=g/2,pt={},jt={};pt.x=rt,jt.x=St,pt.y=jt.y=(Tt+dt)/2;var or={x:rt,y:Tt},mr={x:St,y:Tt},Ar={x:St,y:dt},ei={x:rt,y:dt};return Le===">"?(or.x-=Et,mr.x-=Et,Ar.x-=Et,ei.x-=Et):Le==="/"?(Ar.x-=Et,ei.x-=Et,pt.x-=Et/2,jt.x-=Et/2):Le==="\\"?(or.x-=Et,mr.x-=Et,pt.x-=Et/2,jt.x-=Et/2):Le==="<"&&(pt.x-=Et,jt.x-=Et),Be(or),Be(ei),Be(pt),Be(mr),Be(Ar),Be(jt),"M"+ke(or.x,or.y)+"L"+ke(mr.x,mr.y)+"L"+ke(jt.x,jt.y)+"L"+ke(Ar.x,Ar.y)+"L"+ke(ei.x,ei.y)+"L"+ke(pt.x,pt.y)+"Z"},Pe=l[c?"tiling":"marker"].pad,ce=function(Ae){return l.textposition.indexOf(Ae)!==-1},He=ce("top"),lt=ce("left"),mt=ce("right"),Ht=ce("bottom"),at=function(Ae){var rt=_e(Ae.x0),St=_e(Ae.x1),Tt=Ee(Ae.y0),dt=Ee(Ae.y1),Et=St-rt,pt=dt-Tt;if(!Et||!pt)return"";var jt=l.marker.cornerradius||0,or=Math.min(jt,Et/2,pt/2);or&&Ae.data&&Ae.data.data&&Ae.data.data.label&&(He&&(or=Math.min(or,Pe.t)),lt&&(or=Math.min(or,Pe.l)),mt&&(or=Math.min(or,Pe.r)),Ht&&(or=Math.min(or,Pe.b)));var mr=function(Ar,ei){return or?"a"+ke(or,or)+" 0 0 1 "+ke(Ar,ei):""};return"M"+ke(rt,Tt+or)+mr(or,-or)+"L"+ke(St-or,Tt)+mr(or,or)+"L"+ke(St,dt-or)+mr(-or,or)+"L"+ke(rt+or,dt)+mr(-or,-or)+"Z"},ct=function(Ae,rt){var St=Ae.x0,Tt=Ae.x1,dt=Ae.y0,Et=Ae.y1,pt=Ae.textBB,jt=He||rt.isHeader&&!Ht,or=jt?"start":Ht?"end":"middle",mr=ce("right"),Ar=ce("left")||rt.onPathbar,ei=Ar?-1:mr?1:0;if(rt.isHeader){if(St+=(c?Pe:Pe.l)-dLe,Tt-=(c?Pe:Pe.r)-dLe,St>=Tt){var qr=(St+Tt)/2;St=qr,Tt=qr}var jr;Ht?(jr=Et-(c?Pe:Pe.b),dt{"use strict";var vPt=Fa(),pPt=n1(),gPt=bv(),mPt=gPt.clearMinTextSize,yPt=V0().resizeText,gLe=pLe();mLe.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!n;if(mPt(o,l),c=u.selectAll("g.trace."+o).data(r,function(v){return v[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&pPt.hasTransition(n)){i&&(f=i());var d=vPt.transition().duration(n.duration).ease(n.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});d.each(function(){u.selectAll("g.trace").each(function(v){gLe(t,v,this,n,s)})})}else c.each(function(v){gLe(t,v,this,n,s)}),l.uniformtext.mode&&yPt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var wLe=ye((tgr,bLe)=>{"use strict";var yLe=Fa(),eF=Pr(),_Le=So(),_Pt=Zl(),xPt=aX(),xLe=$D().styleOne,hX=Z2(),ox=n1(),bPt=tk(),wPt=KD().formatSliceLabel,dX=!1;bLe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,m=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,k={},M=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,S=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=!g&&!x.marker.pad.t||g&&!x.marker.pad.b,E=xPt(n,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),z=E.descendants(),q=1/0,V=-1/0;z.forEach(function(H){var re=H.depth;re>=x._maxDepth?(H.x0=H.x1=(H.x0+H.x1)/2,H.y0=H.y1=(H.y0+H.y1)/2):(q=Math.min(q,re),V=Math.max(V,re))}),i=i.data(z,ox.getPtId),x._maxVisibleLayers=isFinite(V)?V-q+1:0,i.enter().append("g").classed("slice",!0),v(i,dX,k,[o,s],c),i.order();var G=null;if(d&&p){var Z=ox.getPtId(p);i.each(function(H){G===null&&ox.getPtId(H)===Z&&(G={x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1})})}var j=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var H=yLe.select(this);ox.setSliceCursor(H,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(H){var re=ox.isHeader(H,x);H._x0=l(H.x0),H._x1=l(H.x1),H._y0=u(H.y0),H._y1=u(H.y1),H._hoverX=l(H.x1-x.marker.pad.r),H._hoverY=u(g?H.y1-x.marker.pad.b/2:H.y0+x.marker.pad.t/2);var ae=yLe.select(this),_e=eF.ensureSingle(ae,"path","surface",function(ke){ke.style("pointer-events",M?"none":"all")});d?_e.transition().attrTween("d",function(ke){var be=m(ke,dX,j(),[o,s]);return function(Be){return c(be(Be))}}):_e.attr("d",c),ae.call(bPt,n,t,r,{styleOne:xLe,eventDataKeys:hX.eventDataKeys,transitionTime:hX.CLICK_TRANSITION_TIME,transitionEasing:hX.CLICK_TRANSITION_EASING}).call(ox.setSliceCursor,t,{isTransitioning:t._transitioning}),_e.call(xLe,H,x,t,{hovered:!1}),H.x0===H.x1||H.y0===H.y1?H._text="":re?H._text=P?"":ox.getPtLabel(H)||"":H._text=wPt(H,n,x,r,T)||"";var Ee=eF.ensureSingle(ae,"g","slicetext"),Ce=eF.ensureSingle(Ee,"text","",function(ke){ke.attr("data-notex",1)}),ge=eF.ensureUniformFontSize(t,ox.determineTextFont(x,H,T.font)),ie=H._text||" ",Se=re&&ie.indexOf("
")===-1;Ce.text(ie).classed("slicetext",!0).attr("text-anchor",S?"end":C||Se?"start":"middle").call(_Le.font,ge).call(_Pt.convertToTspans,t),H.textBB=_Le.bBox(Ce.node()),H.transform=f(H,{fontSize:ge.size,isHeader:re}),H.transform.fontSize=ge.size,d?Ce.transition().attrTween("transform",function(ke){var be=b(ke,dX,j(),[o,s]);return function(Be){return h(be(Be))}}):Ce.attr("transform",h(H))}),G}});var ALe=ye((rgr,TLe)=>{"use strict";var TPt=fX(),APt=wLe();TLe.exports=function(t,r,n,i){return TPt(t,r,n,i,{type:"treemap",drawDescendants:APt})}});var MLe=ye((igr,SLe)=>{"use strict";SLe.exports={moduleType:"trace",name:"treemap",basePlotModule:V6e(),categories:[],animatable:!0,attributes:JD(),layoutAttributes:tX(),supplyDefaults:J6e(),supplyLayoutDefaults:Q6e(),calc:iX().calc,crossTraceCalc:iX().crossTraceCalc,plot:ALe(),style:$D().style,colorbar:Qd(),meta:{}}});var kLe=ye((ngr,ELe)=>{"use strict";ELe.exports=MLe()});var LLe=ye(XA=>{"use strict";var CLe=Mc();XA.name="icicle";XA.plot=function(e,t,r,n){CLe.plotBasePlot(XA.name,e,t,r,n)};XA.clean=function(e,t,r,n){CLe.cleanBasePlot(XA.name,e,t,r,n)}});var vX=ye((ogr,RLe)=>{"use strict";var{hovertemplateAttrs:SPt,texttemplateAttrs:MPt,templatefallbackAttrs:PLe}=Pl(),EPt=Tu(),kPt=Cc().attributes,nk=q2(),s0=UE(),tF=JD(),ILe=Z2(),CPt=Ao().extendFlat,LPt=Pd().pattern;RLe.exports={labels:s0.labels,parents:s0.parents,values:s0.values,branchvalues:s0.branchvalues,count:s0.count,level:s0.level,maxdepth:s0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:tF.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:CPt({colors:s0.marker.colors,line:s0.marker.line,pattern:LPt,editType:"calc"},EPt("marker",{colorAttr:"colors",anim:!1})),leaf:s0.leaf,pathbar:tF.pathbar,text:nk.text,textinfo:s0.textinfo,texttemplate:MPt({editType:"plot"},{keys:ILe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:PLe({editType:"plot"}),hovertext:nk.hovertext,hoverinfo:s0.hoverinfo,hovertemplate:SPt({},{keys:ILe.eventDataKeys}),hovertemplatefallback:PLe(),textfont:nk.textfont,insidetextfont:nk.insidetextfont,outsidetextfont:tF.outsidetextfont,textposition:tF.textposition,sort:nk.sort,root:s0.root,domain:kPt({name:"icicle",trace:!0,editType:"calc"})}});var pX=ye((sgr,DLe)=>{"use strict";DLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var OLe=ye((lgr,qLe)=>{"use strict";var FLe=Pr(),PPt=vX(),IPt=ka(),RPt=Cc().defaults,DPt=i0().handleText,FPt=S_().TEXTPAD,zPt=O2().handleMarkerDefaults,zLe=tc(),qPt=zLe.hasColorscale,OPt=zLe.handleDefaults;qLe.exports=function(t,r,n,i){function a(d,v){return FLe.coerce(t,r,PPt,d,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",FLe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),f="auto";DPt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),zPt(t,r,i,a);var h=r._hasColorscale=qPt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&OPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:IPt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*FPt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),RPt(r,i,a),r._length=null}});var NLe=ye((ugr,BLe)=>{"use strict";var BPt=Pr(),NPt=pX();BLe.exports=function(t,r){function n(i,a){return BPt.coerce(t,r,NPt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var mX=ye(gX=>{"use strict";var ULe=HE();gX.calc=function(e,t){return ULe.calc(e,t)};gX.crossTraceCalc=function(e){return ULe._runCrossTraceCalc("icicle",e)}});var GLe=ye((fgr,VLe)=>{"use strict";var UPt=VE(),VPt=nX();VLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var c=UPt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&VPt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var yX=ye((hgr,ZLe)=>{"use strict";var HLe=Fa(),jLe=ka(),WLe=Pr(),GPt=bv().resizeText,HPt=ZD();function jPt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");GPt(e,t,"icicle"),t.each(function(r){var n=HLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){HLe.select(this).call(XLe,o,a,e)})})}function XLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=WLe.castOption(r,o,"marker.line.color")||jLe.defaultLine,l=WLe.castOption(r,o,"marker.line.width")||0;e.call(HPt,t,r,n).style("stroke-width",l).call(jLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}ZLe.exports={style:jPt,styleOne:XLe}});var QLe=ye((dgr,$Le)=>{"use strict";var YLe=Fa(),rF=Pr(),KLe=So(),WPt=Zl(),XPt=GLe(),JLe=yX().styleOne,_X=Z2(),ZA=n1(),ZPt=tk(),YPt=KD().formatSliceLabel,xX=!1;$Le.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,m=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,k={},M=t._context.staticPlot,T=t._fullLayout,L=r[0],x=L.trace,C=x.textposition.indexOf("left")!==-1,S=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=XPt(n,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),E=P.descendants(),z=1/0,q=-1/0;E.forEach(function(N){var H=N.depth;H>=x._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(z=Math.min(z,H),q=Math.max(q,H))}),i=i.data(E,ZA.getPtId),x._maxVisibleLayers=isFinite(q)?q-z+1:0,i.enter().append("g").classed("slice",!0),v(i,xX,k,[o,s],c),i.order();var V=null;if(d&&p){var G=ZA.getPtId(p);i.each(function(N){V===null&&ZA.getPtId(N)===G&&(V={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var Z=function(){return V||{x0:0,x1:o,y0:0,y1:s}},j=i;return d&&(j=j.transition().each("end",function(){var N=YLe.select(this);ZA.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),j.each(function(N){N._x0=l(N.x0),N._x1=l(N.x1),N._y0=u(N.y0),N._y1=u(N.y1),N._hoverX=l(N.x1-x.tiling.pad),N._hoverY=u(g?N.y1-x.tiling.pad/2:N.y0+x.tiling.pad/2);var H=YLe.select(this),re=rF.ensureSingle(H,"path","surface",function(Ce){Ce.style("pointer-events",M?"none":"all")});d?re.transition().attrTween("d",function(Ce){var ge=m(Ce,xX,Z(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(ie){return c(ge(ie))}}):re.attr("d",c),H.call(ZPt,n,t,r,{styleOne:JLe,eventDataKeys:_X.eventDataKeys,transitionTime:_X.CLICK_TRANSITION_TIME,transitionEasing:_X.CLICK_TRANSITION_EASING}).call(ZA.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(JLe,N,x,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=YPt(N,n,x,r,T)||"";var ae=rF.ensureSingle(H,"g","slicetext"),_e=rF.ensureSingle(ae,"text","",function(Ce){Ce.attr("data-notex",1)}),Ee=rF.ensureUniformFontSize(t,ZA.determineTextFont(x,N,T.font));_e.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",S?"end":C?"start":"middle").call(KLe.font,Ee).call(WPt.convertToTspans,t),N.textBB=KLe.bBox(_e.node()),N.transform=f(N,{fontSize:Ee.size}),N.transform.fontSize=Ee.size,d?_e.transition().attrTween("transform",function(Ce){var ge=b(Ce,xX,Z(),[o,s]);return function(ie){return h(ge(ie))}}):_e.attr("transform",h(N))}),V}});var tPe=ye((vgr,ePe)=>{"use strict";var KPt=fX(),JPt=QLe();ePe.exports=function(t,r,n,i){return KPt(t,r,n,i,{type:"icicle",drawDescendants:JPt})}});var iPe=ye((pgr,rPe)=>{"use strict";rPe.exports={moduleType:"trace",name:"icicle",basePlotModule:LLe(),categories:[],animatable:!0,attributes:vX(),layoutAttributes:pX(),supplyDefaults:OLe(),supplyLayoutDefaults:NLe(),calc:mX().calc,crossTraceCalc:mX().crossTraceCalc,plot:tPe(),style:yX().style,colorbar:Qd(),meta:{}}});var aPe=ye((ggr,nPe)=>{"use strict";nPe.exports=iPe()});var sPe=ye(YA=>{"use strict";var oPe=Mc();YA.name="funnelarea";YA.plot=function(e,t,r,n){oPe.plotBasePlot(YA.name,e,t,r,n)};YA.clean=function(e,t,r,n){oPe.cleanBasePlot(YA.name,e,t,r,n)}});var bX=ye((ygr,uPe)=>{"use strict";var nv=q2(),$Pt=Vl(),QPt=Cc().attributes,{hovertemplateAttrs:eIt,texttemplateAttrs:tIt,templatefallbackAttrs:lPe}=Pl(),J2=Ao().extendFlat;uPe.exports={labels:nv.labels,label0:nv.label0,dlabel:nv.dlabel,values:nv.values,marker:{colors:nv.marker.colors,line:{color:J2({},nv.marker.line.color,{dflt:null}),width:J2({},nv.marker.line.width,{dflt:1}),editType:"calc"},pattern:nv.marker.pattern,editType:"calc"},text:nv.text,hovertext:nv.hovertext,scalegroup:J2({},nv.scalegroup,{}),textinfo:J2({},nv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:tIt({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:lPe({editType:"plot"}),hoverinfo:J2({},$Pt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:eIt({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:lPe(),textposition:J2({},nv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:nv.textfont,insidetextfont:nv.insidetextfont,title:{text:nv.title.text,font:nv.title.font,position:J2({},nv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:QPt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var wX=ye((_gr,cPe)=>{"use strict";var rIt=TD().hiddenlabels;cPe.exports={hiddenlabels:rIt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var dPe=ye((xgr,hPe)=>{"use strict";var fPe=Pr(),iIt=bX(),nIt=Cc().defaults,aIt=i0().handleText,oIt=O2().handleLabelsAndValues,sIt=O2().handleMarkerDefaults;hPe.exports=function(t,r,n,i){function a(m,b){return fPe.coerce(t,r,iIt,m,b)}var o=a("labels"),s=a("values"),l=oIt(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,sIt(t,r,i,a),a("scalegroup");var c=a("text"),f=a("texttemplate");a("texttemplatefallback");var h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),f||h&&h!=="none"){var d=a("textposition");aIt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");nIt(r,i,a);var v=a("title.text");v&&(a("title.position"),fPe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var pPe=ye((bgr,vPe)=>{"use strict";var lIt=Pr(),uIt=wX();vPe.exports=function(t,r){function n(i,a){return lIt.coerce(t,r,uIt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var TX=ye((wgr,mPe)=>{"use strict";var gPe=PA();function cIt(e,t){return gPe.calc(e,t)}function fIt(e){gPe.crossTraceCalc(e,{type:"funnelarea"})}mPe.exports={calc:cIt,crossTraceCalc:fIt}});var wPe=ye((Tgr,bPe)=>{"use strict";var $2=Fa(),AX=So(),sx=Pr(),hIt=sx.strScale,yPe=sx.strTranslate,_Pe=Zl(),dIt=g2(),vIt=dIt.toMoveInsideBar,xPe=bv(),pIt=xPe.recordMinTextSize,gIt=xPe.clearMinTextSize,mIt=m_(),KA=ED(),yIt=KA.attachFxHandlers,_It=KA.determineInsideTextFont,xIt=KA.layoutAreas,bIt=KA.prerenderTitles,wIt=KA.positionTitleOutside,TIt=KA.formatSliceLabel;bPe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;gIt("funnelarea",i),bIt(r,t),xIt(r,i._size),sx.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=$2.select(this),s=a[0],l=s.trace;SIt(a),o.each(function(){var u=$2.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(f,h){if(f.hidden){$2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,m=$2.select(this),b=m.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),m.call(yIt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+SX(f.TR,f.BR)+SX(f.BR,f.BL)+SX(f.BL,f.TL)+"Z";b.attr("d",p),TIt(t,f,s);var k=mIt.castOption(l.textposition,f.pts),M=m.selectAll("g.slicetext").data(f.text&&k!=="none"?[0]:[]);M.enter().append("g").classed("slicetext",!0),M.exit().remove(),M.each(function(){var T=sx.ensureSingle($2.select(this),"text","",function(z){z.attr("data-notex",1)}),L=sx.ensureUniformFontSize(t,_It(l,f,i.font));T.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(AX.font,L).call(_Pe.convertToTspans,t);var x=AX.bBox(T.node()),C,S,g,P=Math.min(f.BL[1],f.BR[1])+v,E=Math.max(f.TL[1],f.TR[1])+v;S=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,C=vIt(S,g,P,E,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),C.fontSize=L.size,pIt(l.type,C,i),a[h].transform=C,sx.setTransormAndDisplay(T,C)})});var c=$2.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);c.enter().append("g").classed("titletext",!0),c.exit().remove(),c.each(function(){var f=sx.ensureSingle($2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=sx.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(AX.font,l.title.font).call(_Pe.convertToTspans,t);var d=wIt(s,i._size);f.attr("transform",yPe(d.x,d.y)+hIt(Math.min(1,d.scale))+yPe(d.tx,d.ty))})})})};function SX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function AIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function SIt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var q=Math.sqrt(u);return{x:q,y:-q}}function f(){var q=c();return[q.x,q.y]}var h,d=[];d.push(f());var v,m;for(v=e.length-1;v>-1;v--)if(m=e[v],!m.hidden){var b=m.v/l;u+=b,d.push(f())}var p=1/0,k=-1/0;for(v=0;v-1;v--)if(m=e[v],!m.hidden){P+=1;var E=d[P][0],z=d[P][1];m.TL=[-E,z],m.TR=[E,z],m.BL=S,m.BR=g,m.pxmid=AIt(m.TR,m.BR),S=m.TL,g=m.TR}}});var SPe=ye((Agr,APe)=>{"use strict";var TPe=Fa(),MIt=J3(),EIt=bv().resizeText;APe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");EIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=TPe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){TPe.select(this).call(MIt,s,a,t)})})}});var EPe=ye((Sgr,MPe)=>{"use strict";MPe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:sPe(),categories:["pie-like","funnelarea","showLegend"],attributes:bX(),layoutAttributes:wX(),supplyDefaults:dPe(),supplyLayoutDefaults:pPe(),calc:TX().calc,crossTraceCalc:TX().crossTraceCalc,plot:wPe(),style:SPe(),styleOne:J3(),meta:{}}});var CPe=ye((Mgr,kPe)=>{"use strict";kPe.exports=EPe()});var qd=ye((Egr,LPe)=>{(function(){var e={1964:(function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}}),4793:(function(i,a,o){"use strict";var s;function l(tt){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(je){return typeof je}:function(je){return je&&typeof Symbol=="function"&&je.constructor===Symbol&&je!==Symbol.prototype?"symbol":typeof je},l(tt)}var u=o(7507),c=o(3778),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.hp=m,s=P,a.IS=50;var h=2147483647;s=h,m.TYPED_ARRAY_SUPPORT=d(),!m.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{var tt=new Uint8Array(1),je={foo:function(){return 42}};return Object.setPrototypeOf(je,Uint8Array.prototype),Object.setPrototypeOf(tt,je),tt.foo()===42}catch(Ue){return!1}}Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}});function v(tt){if(tt>h)throw new RangeError('The value "'+tt+'" is invalid for option "size"');var je=new Uint8Array(tt);return Object.setPrototypeOf(je,m.prototype),je}function m(tt,je,Ue){if(typeof tt=="number"){if(typeof je=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return M(tt)}return b(tt,je,Ue)}m.poolSize=8192;function b(tt,je,Ue){if(typeof tt=="string")return T(tt,je);if(ArrayBuffer.isView(tt))return x(tt);if(tt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+l(tt));if(ar(tt,ArrayBuffer)||tt&&ar(tt.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ar(tt,SharedArrayBuffer)||tt&&ar(tt.buffer,SharedArrayBuffer)))return C(tt,je,Ue);if(typeof tt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ae=tt.valueOf&&tt.valueOf();if(Ae!=null&&Ae!==tt)return m.from(Ae,je,Ue);var rt=S(tt);if(rt)return rt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof tt[Symbol.toPrimitive]=="function")return m.from(tt[Symbol.toPrimitive]("string"),je,Ue);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+l(tt))}m.from=function(tt,je,Ue){return b(tt,je,Ue)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array);function p(tt){if(typeof tt!="number")throw new TypeError('"size" argument must be of type number');if(tt<0)throw new RangeError('The value "'+tt+'" is invalid for option "size"')}function k(tt,je,Ue){return p(tt),tt<=0?v(tt):je!==void 0?typeof Ue=="string"?v(tt).fill(je,Ue):v(tt).fill(je):v(tt)}m.alloc=function(tt,je,Ue){return k(tt,je,Ue)};function M(tt){return p(tt),v(tt<0?0:g(tt)|0)}m.allocUnsafe=function(tt){return M(tt)},m.allocUnsafeSlow=function(tt){return M(tt)};function T(tt,je){if((typeof je!="string"||je==="")&&(je="utf8"),!m.isEncoding(je))throw new TypeError("Unknown encoding: "+je);var Ue=E(tt,je)|0,Ae=v(Ue),rt=Ae.write(tt,je);return rt!==Ue&&(Ae=Ae.slice(0,rt)),Ae}function L(tt){for(var je=tt.length<0?0:g(tt.length)|0,Ue=v(je),Ae=0;Ae=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return tt|0}function P(tt){return+tt!=tt&&(tt=0),m.alloc(+tt)}m.isBuffer=function(je){return je!=null&&je._isBuffer===!0&&je!==m.prototype},m.compare=function(je,Ue){if(ar(je,Uint8Array)&&(je=m.from(je,je.offset,je.byteLength)),ar(Ue,Uint8Array)&&(Ue=m.from(Ue,Ue.offset,Ue.byteLength)),!m.isBuffer(je)||!m.isBuffer(Ue))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(je===Ue)return 0;for(var Ae=je.length,rt=Ue.length,St=0,Tt=Math.min(Ae,rt);Strt.length?m.from(Tt).copy(rt,St):Uint8Array.prototype.set.call(rt,Tt,St);else if(m.isBuffer(Tt))Tt.copy(rt,St);else throw new TypeError('"list" argument must be an Array of Buffers');St+=Tt.length}return rt};function E(tt,je){if(m.isBuffer(tt))return tt.length;if(ArrayBuffer.isView(tt)||ar(tt,ArrayBuffer))return tt.byteLength;if(typeof tt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+l(tt));var Ue=tt.length,Ae=arguments.length>2&&arguments[2]===!0;if(!Ae&&Ue===0)return 0;for(var rt=!1;;)switch(je){case"ascii":case"latin1":case"binary":return Ue;case"utf8":case"utf-8":return lt(tt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue*2;case"hex":return Ue>>>1;case"base64":return at(tt).length;default:if(rt)return Ae?-1:lt(tt).length;je=(""+je).toLowerCase(),rt=!0}}m.byteLength=E;function z(tt,je,Ue){var Ae=!1;if((je===void 0||je<0)&&(je=0),je>this.length||((Ue===void 0||Ue>this.length)&&(Ue=this.length),Ue<=0)||(Ue>>>=0,je>>>=0,Ue<=je))return"";for(tt||(tt="utf8");;)switch(tt){case"hex":return Se(this,je,Ue);case"utf8":case"utf-8":return _e(this,je,Ue);case"ascii":return ge(this,je,Ue);case"latin1":case"binary":return ie(this,je,Ue);case"base64":return ae(this,je,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,je,Ue);default:if(Ae)throw new TypeError("Unknown encoding: "+tt);tt=(tt+"").toLowerCase(),Ae=!0}}m.prototype._isBuffer=!0;function q(tt,je,Ue){var Ae=tt[je];tt[je]=tt[Ue],tt[Ue]=Ae}m.prototype.swap16=function(){var je=this.length;if(je%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ue=0;UeUe&&(je+=" ... "),""},f&&(m.prototype[f]=m.prototype.inspect),m.prototype.compare=function(je,Ue,Ae,rt,St){if(ar(je,Uint8Array)&&(je=m.from(je,je.offset,je.byteLength)),!m.isBuffer(je))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+l(je));if(Ue===void 0&&(Ue=0),Ae===void 0&&(Ae=je?je.length:0),rt===void 0&&(rt=0),St===void 0&&(St=this.length),Ue<0||Ae>je.length||rt<0||St>this.length)throw new RangeError("out of range index");if(rt>=St&&Ue>=Ae)return 0;if(rt>=St)return-1;if(Ue>=Ae)return 1;if(Ue>>>=0,Ae>>>=0,rt>>>=0,St>>>=0,this===je)return 0;for(var Tt=St-rt,dt=Ae-Ue,Et=Math.min(Tt,dt),pt=this.slice(rt,St),jt=je.slice(Ue,Ae),or=0;or2147483647?Ue=2147483647:Ue<-2147483648&&(Ue=-2147483648),Ue=+Ue,Vt(Ue)&&(Ue=rt?0:tt.length-1),Ue<0&&(Ue=tt.length+Ue),Ue>=tt.length){if(rt)return-1;Ue=tt.length-1}else if(Ue<0)if(rt)Ue=0;else return-1;if(typeof je=="string"&&(je=m.from(je,Ae)),m.isBuffer(je))return je.length===0?-1:G(tt,je,Ue,Ae,rt);if(typeof je=="number")return je=je&255,typeof Uint8Array.prototype.indexOf=="function"?rt?Uint8Array.prototype.indexOf.call(tt,je,Ue):Uint8Array.prototype.lastIndexOf.call(tt,je,Ue):G(tt,[je],Ue,Ae,rt);throw new TypeError("val must be string, number or Buffer")}function G(tt,je,Ue,Ae,rt){var St=1,Tt=tt.length,dt=je.length;if(Ae!==void 0&&(Ae=String(Ae).toLowerCase(),Ae==="ucs2"||Ae==="ucs-2"||Ae==="utf16le"||Ae==="utf-16le")){if(tt.length<2||je.length<2)return-1;St=2,Tt/=2,dt/=2,Ue/=2}function Et(Ar,ei){return St===1?Ar[ei]:Ar.readUInt16BE(ei*St)}var pt;if(rt){var jt=-1;for(pt=Ue;ptTt&&(Ue=Tt-dt),pt=Ue;pt>=0;pt--){for(var or=!0,mr=0;mrrt&&(Ae=rt)):Ae=rt;var St=je.length;Ae>St/2&&(Ae=St/2);for(var Tt=0;Tt>>0,isFinite(Ae)?(Ae=Ae>>>0,rt===void 0&&(rt="utf8")):(rt=Ae,Ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var St=this.length-Ue;if((Ae===void 0||Ae>St)&&(Ae=St),je.length>0&&(Ae<0||Ue<0)||Ue>this.length)throw new RangeError("Attempt to write outside buffer bounds");rt||(rt="utf8");for(var Tt=!1;;)switch(rt){case"hex":return Z(this,je,Ue,Ae);case"utf8":case"utf-8":return j(this,je,Ue,Ae);case"ascii":case"latin1":case"binary":return N(this,je,Ue,Ae);case"base64":return H(this,je,Ue,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,je,Ue,Ae);default:if(Tt)throw new TypeError("Unknown encoding: "+rt);rt=(""+rt).toLowerCase(),Tt=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae(tt,je,Ue){return je===0&&Ue===tt.length?u.fromByteArray(tt):u.fromByteArray(tt.slice(je,Ue))}function _e(tt,je,Ue){Ue=Math.min(tt.length,Ue);for(var Ae=[],rt=je;rt239?4:St>223?3:St>191?2:1;if(rt+dt<=Ue){var Et,pt,jt,or;switch(dt){case 1:St<128&&(Tt=St);break;case 2:Et=tt[rt+1],(Et&192)===128&&(or=(St&31)<<6|Et&63,or>127&&(Tt=or));break;case 3:Et=tt[rt+1],pt=tt[rt+2],(Et&192)===128&&(pt&192)===128&&(or=(St&15)<<12|(Et&63)<<6|pt&63,or>2047&&(or<55296||or>57343)&&(Tt=or));break;case 4:Et=tt[rt+1],pt=tt[rt+2],jt=tt[rt+3],(Et&192)===128&&(pt&192)===128&&(jt&192)===128&&(or=(St&15)<<18|(Et&63)<<12|(pt&63)<<6|jt&63,or>65535&&or<1114112&&(Tt=or))}}Tt===null?(Tt=65533,dt=1):Tt>65535&&(Tt-=65536,Ae.push(Tt>>>10&1023|55296),Tt=56320|Tt&1023),Ae.push(Tt),rt+=dt}return Ce(Ae)}var Ee=4096;function Ce(tt){var je=tt.length;if(je<=Ee)return String.fromCharCode.apply(String,tt);for(var Ue="",Ae=0;AeAe)&&(Ue=Ae);for(var rt="",St=je;StAe&&(je=Ae),Ue<0?(Ue+=Ae,Ue<0&&(Ue=0)):Ue>Ae&&(Ue=Ae),UeUe)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUintLE=m.prototype.readUIntLE=function(je,Ue,Ae){je=je>>>0,Ue=Ue>>>0,Ae||be(je,Ue,this.length);for(var rt=this[je],St=1,Tt=0;++Tt>>0,Ue=Ue>>>0,Ae||be(je,Ue,this.length);for(var rt=this[je+--Ue],St=1;Ue>0&&(St*=256);)rt+=this[je+--Ue]*St;return rt},m.prototype.readUint8=m.prototype.readUInt8=function(je,Ue){return je=je>>>0,Ue||be(je,1,this.length),this[je]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(je,Ue){return je=je>>>0,Ue||be(je,2,this.length),this[je]|this[je+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(je,Ue){return je=je>>>0,Ue||be(je,2,this.length),this[je]<<8|this[je+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),(this[je]|this[je+1]<<8|this[je+2]<<16)+this[je+3]*16777216},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),this[je]*16777216+(this[je+1]<<16|this[je+2]<<8|this[je+3])},m.prototype.readIntLE=function(je,Ue,Ae){je=je>>>0,Ue=Ue>>>0,Ae||be(je,Ue,this.length);for(var rt=this[je],St=1,Tt=0;++Tt=St&&(rt-=Math.pow(2,8*Ue)),rt},m.prototype.readIntBE=function(je,Ue,Ae){je=je>>>0,Ue=Ue>>>0,Ae||be(je,Ue,this.length);for(var rt=Ue,St=1,Tt=this[je+--rt];rt>0&&(St*=256);)Tt+=this[je+--rt]*St;return St*=128,Tt>=St&&(Tt-=Math.pow(2,8*Ue)),Tt},m.prototype.readInt8=function(je,Ue){return je=je>>>0,Ue||be(je,1,this.length),this[je]&128?(255-this[je]+1)*-1:this[je]},m.prototype.readInt16LE=function(je,Ue){je=je>>>0,Ue||be(je,2,this.length);var Ae=this[je]|this[je+1]<<8;return Ae&32768?Ae|4294901760:Ae},m.prototype.readInt16BE=function(je,Ue){je=je>>>0,Ue||be(je,2,this.length);var Ae=this[je+1]|this[je]<<8;return Ae&32768?Ae|4294901760:Ae},m.prototype.readInt32LE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),this[je]|this[je+1]<<8|this[je+2]<<16|this[je+3]<<24},m.prototype.readInt32BE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),this[je]<<24|this[je+1]<<16|this[je+2]<<8|this[je+3]},m.prototype.readFloatLE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),c.read(this,je,!0,23,4)},m.prototype.readFloatBE=function(je,Ue){return je=je>>>0,Ue||be(je,4,this.length),c.read(this,je,!1,23,4)},m.prototype.readDoubleLE=function(je,Ue){return je=je>>>0,Ue||be(je,8,this.length),c.read(this,je,!0,52,8)},m.prototype.readDoubleBE=function(je,Ue){return je=je>>>0,Ue||be(je,8,this.length),c.read(this,je,!1,52,8)};function Be(tt,je,Ue,Ae,rt,St){if(!m.isBuffer(tt))throw new TypeError('"buffer" argument must be a Buffer instance');if(je>rt||jett.length)throw new RangeError("Index out of range")}m.prototype.writeUintLE=m.prototype.writeUIntLE=function(je,Ue,Ae,rt){if(je=+je,Ue=Ue>>>0,Ae=Ae>>>0,!rt){var St=Math.pow(2,8*Ae)-1;Be(this,je,Ue,Ae,St,0)}var Tt=1,dt=0;for(this[Ue]=je&255;++dt>>0,Ae=Ae>>>0,!rt){var St=Math.pow(2,8*Ae)-1;Be(this,je,Ue,Ae,St,0)}var Tt=Ae-1,dt=1;for(this[Ue+Tt]=je&255;--Tt>=0&&(dt*=256);)this[Ue+Tt]=je/dt&255;return Ue+Ae},m.prototype.writeUint8=m.prototype.writeUInt8=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,1,255,0),this[Ue]=je&255,Ue+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,2,65535,0),this[Ue]=je&255,this[Ue+1]=je>>>8,Ue+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,2,65535,0),this[Ue]=je>>>8,this[Ue+1]=je&255,Ue+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,4,4294967295,0),this[Ue+3]=je>>>24,this[Ue+2]=je>>>16,this[Ue+1]=je>>>8,this[Ue]=je&255,Ue+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,4,4294967295,0),this[Ue]=je>>>24,this[Ue+1]=je>>>16,this[Ue+2]=je>>>8,this[Ue+3]=je&255,Ue+4},m.prototype.writeIntLE=function(je,Ue,Ae,rt){if(je=+je,Ue=Ue>>>0,!rt){var St=Math.pow(2,8*Ae-1);Be(this,je,Ue,Ae,St-1,-St)}var Tt=0,dt=1,Et=0;for(this[Ue]=je&255;++Tt>0)-Et&255;return Ue+Ae},m.prototype.writeIntBE=function(je,Ue,Ae,rt){if(je=+je,Ue=Ue>>>0,!rt){var St=Math.pow(2,8*Ae-1);Be(this,je,Ue,Ae,St-1,-St)}var Tt=Ae-1,dt=1,Et=0;for(this[Ue+Tt]=je&255;--Tt>=0&&(dt*=256);)je<0&&Et===0&&this[Ue+Tt+1]!==0&&(Et=1),this[Ue+Tt]=(je/dt>>0)-Et&255;return Ue+Ae},m.prototype.writeInt8=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,1,127,-128),je<0&&(je=255+je+1),this[Ue]=je&255,Ue+1},m.prototype.writeInt16LE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,2,32767,-32768),this[Ue]=je&255,this[Ue+1]=je>>>8,Ue+2},m.prototype.writeInt16BE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,2,32767,-32768),this[Ue]=je>>>8,this[Ue+1]=je&255,Ue+2},m.prototype.writeInt32LE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,4,2147483647,-2147483648),this[Ue]=je&255,this[Ue+1]=je>>>8,this[Ue+2]=je>>>16,this[Ue+3]=je>>>24,Ue+4},m.prototype.writeInt32BE=function(je,Ue,Ae){return je=+je,Ue=Ue>>>0,Ae||Be(this,je,Ue,4,2147483647,-2147483648),je<0&&(je=4294967295+je+1),this[Ue]=je>>>24,this[Ue+1]=je>>>16,this[Ue+2]=je>>>8,this[Ue+3]=je&255,Ue+4};function Le(tt,je,Ue,Ae,rt,St){if(Ue+Ae>tt.length)throw new RangeError("Index out of range");if(Ue<0)throw new RangeError("Index out of range")}function me(tt,je,Ue,Ae,rt){return je=+je,Ue=Ue>>>0,rt||Le(tt,je,Ue,4,34028234663852886e22,-34028234663852886e22),c.write(tt,je,Ue,Ae,23,4),Ue+4}m.prototype.writeFloatLE=function(je,Ue,Ae){return me(this,je,Ue,!0,Ae)},m.prototype.writeFloatBE=function(je,Ue,Ae){return me(this,je,Ue,!1,Ae)};function Pe(tt,je,Ue,Ae,rt){return je=+je,Ue=Ue>>>0,rt||Le(tt,je,Ue,8,17976931348623157e292,-17976931348623157e292),c.write(tt,je,Ue,Ae,52,8),Ue+8}m.prototype.writeDoubleLE=function(je,Ue,Ae){return Pe(this,je,Ue,!0,Ae)},m.prototype.writeDoubleBE=function(je,Ue,Ae){return Pe(this,je,Ue,!1,Ae)},m.prototype.copy=function(je,Ue,Ae,rt){if(!m.isBuffer(je))throw new TypeError("argument should be a Buffer");if(Ae||(Ae=0),!rt&&rt!==0&&(rt=this.length),Ue>=je.length&&(Ue=je.length),Ue||(Ue=0),rt>0&&rt=this.length)throw new RangeError("Index out of range");if(rt<0)throw new RangeError("sourceEnd out of bounds");rt>this.length&&(rt=this.length),je.length-Ue>>0,Ae=Ae===void 0?this.length:Ae>>>0,je||(je=0);var Tt;if(typeof je=="number")for(Tt=Ue;Tt55295&&Ue<57344){if(!rt){if(Ue>56319){(je-=3)>-1&&St.push(239,191,189);continue}else if(Tt+1===Ae){(je-=3)>-1&&St.push(239,191,189);continue}rt=Ue;continue}if(Ue<56320){(je-=3)>-1&&St.push(239,191,189),rt=Ue;continue}Ue=(rt-55296<<10|Ue-56320)+65536}else rt&&(je-=3)>-1&&St.push(239,191,189);if(rt=null,Ue<128){if((je-=1)<0)break;St.push(Ue)}else if(Ue<2048){if((je-=2)<0)break;St.push(Ue>>6|192,Ue&63|128)}else if(Ue<65536){if((je-=3)<0)break;St.push(Ue>>12|224,Ue>>6&63|128,Ue&63|128)}else if(Ue<1114112){if((je-=4)<0)break;St.push(Ue>>18|240,Ue>>12&63|128,Ue>>6&63|128,Ue&63|128)}else throw new Error("Invalid code point")}return St}function mt(tt){for(var je=[],Ue=0;Ue>8,rt=Ue%256,St.push(rt),St.push(Ae);return St}function at(tt){return u.toByteArray(He(tt))}function ct(tt,je,Ue,Ae){for(var rt=0;rt=je.length||rt>=tt.length);++rt)je[rt+Ue]=tt[rt];return rt}function ar(tt,je){return tt instanceof je||tt!=null&&tt.constructor!=null&&tt.constructor.name!=null&&tt.constructor.name===je.name}function Vt(tt){return tt!==tt}var rr=(function(){for(var tt="0123456789abcdef",je=new Array(256),Ue=0;Ue<16;++Ue)for(var Ae=Ue*16,rt=0;rt<16;++rt)je[Ae+rt]=tt[Ue]+tt[rt];return je})()}),9216:(function(i){"use strict";i.exports=l,i.exports.isMobile=l,i.exports.default=l;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function l(u){u||(u={});var c=u.ua;if(!c&&typeof navigator!="undefined"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var f=a.test(c)&&!o.test(c)||!!u.tablet&&s.test(c);return!f&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}}),6296:(function(i,a,o){"use strict";i.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(d,v){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(m){return d[m]}),this._mode=v,this._active=d[v],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var f=c.prototype;f.flush=function(d){for(var v=this._controllerList,m=0;m0)throw new Error("Invalid string. Length must be a multiple of 4");var L=M.indexOf("=");L===-1&&(L=T);var x=L===T?0:4-L%4;return[L,x]}function d(M){var T=h(M),L=T[0],x=T[1];return(L+x)*3/4-x}function v(M,T,L){return(T+L)*3/4-L}function m(M){var T,L=h(M),x=L[0],C=L[1],S=new l(v(M,x,C)),g=0,P=C>0?x-4:x,E;for(E=0;E>16&255,S[g++]=T>>8&255,S[g++]=T&255;return C===2&&(T=s[M.charCodeAt(E)]<<2|s[M.charCodeAt(E+1)]>>4,S[g++]=T&255),C===1&&(T=s[M.charCodeAt(E)]<<10|s[M.charCodeAt(E+1)]<<4|s[M.charCodeAt(E+2)]>>2,S[g++]=T>>8&255,S[g++]=T&255),S}function b(M){return o[M>>18&63]+o[M>>12&63]+o[M>>6&63]+o[M&63]}function p(M,T,L){for(var x,C=[],S=T;SP?P:g+S));return x===1?(T=M[L-1],C.push(o[T>>2]+o[T<<4&63]+"==")):x===2&&(T=(M[L-2]<<8)+M[L-1],C.push(o[T>>10]+o[T>>4&63]+o[T<<2&63]+"=")),C.join("")}}),3865:(function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).add(c[0].mul(u[1])),u[1].mul(c[1]))}}),1318:(function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}}),8697:(function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}}),7842:(function(i,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);i.exports=d;function d(v,m){if(s(v))return m?h(v,d(m)):[v[0].clone(),v[1].clone()];var b=0,p,k;if(l(v))p=v.clone();else if(typeof v=="string")p=c(v);else{if(v===0)return[u(0),u(1)];if(v===Math.floor(v))p=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),b-=256;p=u(v)}}if(s(m))p.mul(m[1]),k=m[0].clone();else if(l(m))k=m.clone();else if(typeof m=="string")k=c(m);else if(!m)k=u(1);else if(m===Math.floor(m))k=u(m);else{for(;m!==Math.floor(m);)m=m*Math.pow(2,256),b+=256;k=u(m)}return b>0?p=p.ushln(b):b<0&&(k=k.ushln(-b)),f(p,k)}}),6330:(function(i,a,o){"use strict";var s=o(1533);i.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}}),5716:(function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u.cmp(new s(0))}}),1369:(function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){var c=u.length,f=u.words,h=0;if(c===1)h=f[0];else if(c===2)h=f[0]+f[1]*67108864;else for(var d=0;d20?52:h+32}}),1533:(function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}}),2651:(function(i,a,o){"use strict";var s=o(6859),l=o(2361);i.exports=u;function u(c){var f=l.exponent(c);return f<52?new s(c):new s(c*Math.pow(2,52-f)).ushln(f-52)}}),869:(function(i,a,o){"use strict";var s=o(2651),l=o(5716);i.exports=u;function u(c,f){var h=l(c),d=l(f);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(c=c.neg(),f=f.neg());var v=c.gcd(f);return v.cmpn(1)?[c.div(v),f.div(v)]:[c,f]}}),6768:(function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return new s(u)}}),6504:(function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}}),7721:(function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){return s(u[0])*s(u[1])}}),5572:(function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).sub(u[1].mul(c[0])),u[1].mul(c[1]))}}),946:(function(i,a,o){"use strict";var s=o(1369),l=o(4025);i.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var d=f.abs().divmod(h.abs()),v=d.div,m=s(v),b=d.mod,p=f.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return p*m;if(m){var k=l(m)+4,M=s(b.ushln(k).divRound(h));return p*(m+M*Math.pow(2,-k))}else{var T=h.bitLength()-b.bitLength()+53,M=s(b.ushln(T).divRound(h));return T<1023?p*M*Math.pow(2,-T):(M*=Math.pow(2,-1023),p*M*Math.pow(2,1023-T))}}}),2478:(function(i){"use strict";function a(f,h,d,v,m){for(var b=m+1;v<=m;){var p=v+m>>>1,k=f[p],M=d!==void 0?d(k,h):k-h;M>=0?(b=p,m=p-1):v=p+1}return b}function o(f,h,d,v,m){for(var b=m+1;v<=m;){var p=v+m>>>1,k=f[p],M=d!==void 0?d(k,h):k-h;M>0?(b=p,m=p-1):v=p+1}return b}function s(f,h,d,v,m){for(var b=v-1;v<=m;){var p=v+m>>>1,k=f[p],M=d!==void 0?d(k,h):k-h;M<0?(b=p,v=p+1):m=p-1}return b}function l(f,h,d,v,m){for(var b=v-1;v<=m;){var p=v+m>>>1,k=f[p],M=d!==void 0?d(k,h):k-h;M<=0?(b=p,v=p+1):m=p-1}return b}function u(f,h,d,v,m){for(;v<=m;){var b=v+m>>>1,p=f[b],k=d!==void 0?d(p,h):p-h;if(k===0)return b;k<=0?v=b+1:m=b-1}return-1}function c(f,h,d,v,m,b){return typeof d=="function"?b(f,h,d,v===void 0?0:v|0,m===void 0?f.length-1:m|0):b(f,h,void 0,d===void 0?0:d|0,v===void 0?f.length-1:v|0)}i.exports={ge:function(f,h,d,v,m){return c(f,h,d,v,m,a)},gt:function(f,h,d,v,m){return c(f,h,d,v,m,o)},lt:function(f,h,d,v,m){return c(f,h,d,v,m,s)},le:function(f,h,d,v,m){return c(f,h,d,v,m,l)},eq:function(f,h,d,v,m){return c(f,h,d,v,m,u)}}}),8828:(function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}}),6859:(function(i,a,o){i=o.nmd(i),(function(s,l){"use strict";function u(j,N){if(!j)throw new Error(N||"Assertion failed")}function c(j,N){j.super_=N;var H=function(){};H.prototype=N.prototype,j.prototype=new H,j.prototype.constructor=j}function f(j,N,H){if(f.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((N==="le"||N==="be")&&(H=N,N=10),this._init(j||0,N||10,H||"be"))}typeof s=="object"?s.exports=f:l.BN=f,f.BN=f,f.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(j){}f.isBN=function(N){return N instanceof f?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===f.wordSize&&Array.isArray(N.words)},f.max=function(N,H){return N.cmp(H)>0?N:H},f.min=function(N,H){return N.cmp(H)<0?N:H},f.prototype._init=function(N,H,re){if(typeof N=="number")return this._initNumber(N,H,re);if(typeof N=="object")return this._initArray(N,H,re);H==="hex"&&(H=16),u(H===(H|0)&&H>=2&&H<=36),N=N.toString().replace(/\s+/g,"");var ae=0;N[0]==="-"&&(ae++,this.negative=1),ae=0;ae-=3)Ee=N[ae]|N[ae-1]<<8|N[ae-2]<<16,this.words[_e]|=Ee<>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,_e++);else if(re==="le")for(ae=0,_e=0;ae>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,_e++);return this.strip()};function d(j,N){var H=j.charCodeAt(N);return H>=65&&H<=70?H-55:H>=97&&H<=102?H-87:H-48&15}function v(j,N,H){var re=d(j,H);return H-1>=N&&(re|=d(j,H-1)<<4),re}f.prototype._parseHex=function(N,H,re){this.length=Math.ceil((N.length-H)/6),this.words=new Array(this.length);for(var ae=0;ae=H;ae-=2)Ce=v(N,H,ae)<<_e,this.words[Ee]|=Ce&67108863,_e>=18?(_e-=18,Ee+=1,this.words[Ee]|=Ce>>>26):_e+=8;else{var ge=N.length-H;for(ae=ge%2===0?H+1:H;ae=18?(_e-=18,Ee+=1,this.words[Ee]|=Ce>>>26):_e+=8}this.strip()};function m(j,N,H,re){for(var ae=0,_e=Math.min(j.length,H),Ee=N;Ee<_e;Ee++){var Ce=j.charCodeAt(Ee)-48;ae*=re,Ce>=49?ae+=Ce-49+10:Ce>=17?ae+=Ce-17+10:ae+=Ce}return ae}f.prototype._parseBase=function(N,H,re){this.words=[0],this.length=1;for(var ae=0,_e=1;_e<=67108863;_e*=H)ae++;ae--,_e=_e/H|0;for(var Ee=N.length-re,Ce=Ee%ae,ge=Math.min(Ee,Ee-Ce)+re,ie=0,Se=re;Se1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(N,H){N=N||10,H=H|0||1;var re;if(N===16||N==="hex"){re="";for(var ae=0,_e=0,Ee=0;Ee>>24-ae&16777215,ae+=2,ae>=26&&(ae-=26,Ee--),_e!==0||Ee!==this.length-1?re=b[6-ge.length]+ge+re:re=ge+re}for(_e!==0&&(re=_e.toString(16)+re);re.length%H!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var ie=p[N],Se=k[N];re="";var ke=this.clone();for(ke.negative=0;!ke.isZero();){var be=ke.modn(Se).toString(N);ke=ke.idivn(Se),ke.isZero()?re=be+re:re=b[ie-be.length]+be+re}for(this.isZero()&&(re="0"+re);re.length%H!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(N,H){return u(typeof h!="undefined"),this.toArrayLike(h,N,H)},f.prototype.toArray=function(N,H){return this.toArrayLike(Array,N,H)},f.prototype.toArrayLike=function(N,H,re){var ae=this.byteLength(),_e=re||Math.max(1,ae);u(ae<=_e,"byte array longer than desired length"),u(_e>0,"Requested array length <= 0"),this.strip();var Ee=H==="le",Ce=new N(_e),ge,ie,Se=this.clone();if(Ee){for(ie=0;!Se.isZero();ie++)ge=Se.andln(255),Se.iushrn(8),Ce[ie]=ge;for(;ie<_e;ie++)Ce[ie]=0}else{for(ie=0;ie<_e-ae;ie++)Ce[ie]=0;for(ie=0;!Se.isZero();ie++)ge=Se.andln(255),Se.iushrn(8),Ce[_e-ie-1]=ge}return Ce},Math.clz32?f.prototype._countBits=function(N){return 32-Math.clz32(N)}:f.prototype._countBits=function(N){var H=N,re=0;return H>=4096&&(re+=13,H>>>=13),H>=64&&(re+=7,H>>>=7),H>=8&&(re+=4,H>>>=4),H>=2&&(re+=2,H>>>=2),re+H},f.prototype._zeroBits=function(N){if(N===0)return 26;var H=N,re=0;return(H&8191)===0&&(re+=13,H>>>=13),(H&127)===0&&(re+=7,H>>>=7),(H&15)===0&&(re+=4,H>>>=4),(H&3)===0&&(re+=2,H>>>=2),(H&1)===0&&re++,re},f.prototype.bitLength=function(){var N=this.words[this.length-1],H=this._countBits(N);return(this.length-1)*26+H};function M(j){for(var N=new Array(j.bitLength()),H=0;H>>ae}return N}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,H=0;HN.length?this.clone().ior(N):N.clone().ior(this)},f.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},f.prototype.iuand=function(N){var H;this.length>N.length?H=N:H=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},f.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},f.prototype.iuxor=function(N){var H,re;this.length>N.length?(H=this,re=N):(H=N,re=this);for(var ae=0;aeN.length?this.clone().ixor(N):N.clone().ixor(this)},f.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},f.prototype.inotn=function(N){u(typeof N=="number"&&N>=0);var H=Math.ceil(N/26)|0,re=N%26;this._expand(H),re>0&&H--;for(var ae=0;ae0&&(this.words[ae]=~this.words[ae]&67108863>>26-re),this.strip()},f.prototype.notn=function(N){return this.clone().inotn(N)},f.prototype.setn=function(N,H){u(typeof N=="number"&&N>=0);var re=N/26|0,ae=N%26;return this._expand(re+1),H?this.words[re]=this.words[re]|1<N.length?(re=this,ae=N):(re=N,ae=this);for(var _e=0,Ee=0;Ee>>26;for(;_e!==0&&Ee>>26;if(this.length=re.length,_e!==0)this.words[this.length]=_e,this.length++;else if(re!==this)for(;EeN.length?this.clone().iadd(N):N.clone().iadd(this)},f.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var H=this.iadd(N);return N.negative=1,H._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ae,_e;re>0?(ae=this,_e=N):(ae=N,_e=this);for(var Ee=0,Ce=0;Ce<_e.length;Ce++)H=(ae.words[Ce]|0)-(_e.words[Ce]|0)+Ee,Ee=H>>26,this.words[Ce]=H&67108863;for(;Ee!==0&&Ce>26,this.words[Ce]=H&67108863;if(Ee===0&&Ce>>26,ke=ge&67108863,be=Math.min(ie,N.length-1),Be=Math.max(0,ie-j.length+1);Be<=be;Be++){var Le=ie-Be|0;ae=j.words[Le]|0,_e=N.words[Be]|0,Ee=ae*_e+ke,Se+=Ee/67108864|0,ke=Ee&67108863}H.words[ie]=ke|0,ge=Se|0}return ge!==0?H.words[ie]=ge|0:H.length--,H.strip()}var L=function(N,H,re){var ae=N.words,_e=H.words,Ee=re.words,Ce=0,ge,ie,Se,ke=ae[0]|0,be=ke&8191,Be=ke>>>13,Le=ae[1]|0,me=Le&8191,Pe=Le>>>13,ce=ae[2]|0,He=ce&8191,lt=ce>>>13,mt=ae[3]|0,Ht=mt&8191,at=mt>>>13,ct=ae[4]|0,ar=ct&8191,Vt=ct>>>13,rr=ae[5]|0,tt=rr&8191,je=rr>>>13,Ue=ae[6]|0,Ae=Ue&8191,rt=Ue>>>13,St=ae[7]|0,Tt=St&8191,dt=St>>>13,Et=ae[8]|0,pt=Et&8191,jt=Et>>>13,or=ae[9]|0,mr=or&8191,Ar=or>>>13,ei=_e[0]|0,qr=ei&8191,jr=ei>>>13,gt=_e[1]|0,Ge=gt&8191,Je=gt>>>13,We=_e[2]|0,et=We&8191,xt=We>>>13,At=_e[3]|0,Kt=At&8191,Qt=At>>>13,Mr=_e[4]|0,Gr=Mr&8191,Ir=Mr>>>13,Yr=_e[5]|0,_i=Yr&8191,Pi=Yr>>>13,ai=_e[6]|0,mi=ai&8191,un=ai>>>13,Fn=_e[7]|0,An=Fn&8191,Hn=Fn>>>13,Qn=_e[8]|0,Vi=Qn&8191,Jn=Qn>>>13,Yn=_e[9]|0,Gt=Yn&8191,wt=Yn>>>13;re.negative=N.negative^H.negative,re.length=19,ge=Math.imul(be,qr),ie=Math.imul(be,jr),ie=ie+Math.imul(Be,qr)|0,Se=Math.imul(Be,jr);var tr=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(tr>>>26)|0,tr&=67108863,ge=Math.imul(me,qr),ie=Math.imul(me,jr),ie=ie+Math.imul(Pe,qr)|0,Se=Math.imul(Pe,jr),ge=ge+Math.imul(be,Ge)|0,ie=ie+Math.imul(be,Je)|0,ie=ie+Math.imul(Be,Ge)|0,Se=Se+Math.imul(Be,Je)|0;var ir=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(ir>>>26)|0,ir&=67108863,ge=Math.imul(He,qr),ie=Math.imul(He,jr),ie=ie+Math.imul(lt,qr)|0,Se=Math.imul(lt,jr),ge=ge+Math.imul(me,Ge)|0,ie=ie+Math.imul(me,Je)|0,ie=ie+Math.imul(Pe,Ge)|0,Se=Se+Math.imul(Pe,Je)|0,ge=ge+Math.imul(be,et)|0,ie=ie+Math.imul(be,xt)|0,ie=ie+Math.imul(Be,et)|0,Se=Se+Math.imul(Be,xt)|0;var wr=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(wr>>>26)|0,wr&=67108863,ge=Math.imul(Ht,qr),ie=Math.imul(Ht,jr),ie=ie+Math.imul(at,qr)|0,Se=Math.imul(at,jr),ge=ge+Math.imul(He,Ge)|0,ie=ie+Math.imul(He,Je)|0,ie=ie+Math.imul(lt,Ge)|0,Se=Se+Math.imul(lt,Je)|0,ge=ge+Math.imul(me,et)|0,ie=ie+Math.imul(me,xt)|0,ie=ie+Math.imul(Pe,et)|0,Se=Se+Math.imul(Pe,xt)|0,ge=ge+Math.imul(be,Kt)|0,ie=ie+Math.imul(be,Qt)|0,ie=ie+Math.imul(Be,Kt)|0,Se=Se+Math.imul(Be,Qt)|0;var Xr=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,ge=Math.imul(ar,qr),ie=Math.imul(ar,jr),ie=ie+Math.imul(Vt,qr)|0,Se=Math.imul(Vt,jr),ge=ge+Math.imul(Ht,Ge)|0,ie=ie+Math.imul(Ht,Je)|0,ie=ie+Math.imul(at,Ge)|0,Se=Se+Math.imul(at,Je)|0,ge=ge+Math.imul(He,et)|0,ie=ie+Math.imul(He,xt)|0,ie=ie+Math.imul(lt,et)|0,Se=Se+Math.imul(lt,xt)|0,ge=ge+Math.imul(me,Kt)|0,ie=ie+Math.imul(me,Qt)|0,ie=ie+Math.imul(Pe,Kt)|0,Se=Se+Math.imul(Pe,Qt)|0,ge=ge+Math.imul(be,Gr)|0,ie=ie+Math.imul(be,Ir)|0,ie=ie+Math.imul(Be,Gr)|0,Se=Se+Math.imul(Be,Ir)|0;var ti=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(ti>>>26)|0,ti&=67108863,ge=Math.imul(tt,qr),ie=Math.imul(tt,jr),ie=ie+Math.imul(je,qr)|0,Se=Math.imul(je,jr),ge=ge+Math.imul(ar,Ge)|0,ie=ie+Math.imul(ar,Je)|0,ie=ie+Math.imul(Vt,Ge)|0,Se=Se+Math.imul(Vt,Je)|0,ge=ge+Math.imul(Ht,et)|0,ie=ie+Math.imul(Ht,xt)|0,ie=ie+Math.imul(at,et)|0,Se=Se+Math.imul(at,xt)|0,ge=ge+Math.imul(He,Kt)|0,ie=ie+Math.imul(He,Qt)|0,ie=ie+Math.imul(lt,Kt)|0,Se=Se+Math.imul(lt,Qt)|0,ge=ge+Math.imul(me,Gr)|0,ie=ie+Math.imul(me,Ir)|0,ie=ie+Math.imul(Pe,Gr)|0,Se=Se+Math.imul(Pe,Ir)|0,ge=ge+Math.imul(be,_i)|0,ie=ie+Math.imul(be,Pi)|0,ie=ie+Math.imul(Be,_i)|0,Se=Se+Math.imul(Be,Pi)|0;var $r=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+($r>>>26)|0,$r&=67108863,ge=Math.imul(Ae,qr),ie=Math.imul(Ae,jr),ie=ie+Math.imul(rt,qr)|0,Se=Math.imul(rt,jr),ge=ge+Math.imul(tt,Ge)|0,ie=ie+Math.imul(tt,Je)|0,ie=ie+Math.imul(je,Ge)|0,Se=Se+Math.imul(je,Je)|0,ge=ge+Math.imul(ar,et)|0,ie=ie+Math.imul(ar,xt)|0,ie=ie+Math.imul(Vt,et)|0,Se=Se+Math.imul(Vt,xt)|0,ge=ge+Math.imul(Ht,Kt)|0,ie=ie+Math.imul(Ht,Qt)|0,ie=ie+Math.imul(at,Kt)|0,Se=Se+Math.imul(at,Qt)|0,ge=ge+Math.imul(He,Gr)|0,ie=ie+Math.imul(He,Ir)|0,ie=ie+Math.imul(lt,Gr)|0,Se=Se+Math.imul(lt,Ir)|0,ge=ge+Math.imul(me,_i)|0,ie=ie+Math.imul(me,Pi)|0,ie=ie+Math.imul(Pe,_i)|0,Se=Se+Math.imul(Pe,Pi)|0,ge=ge+Math.imul(be,mi)|0,ie=ie+Math.imul(be,un)|0,ie=ie+Math.imul(Be,mi)|0,Se=Se+Math.imul(Be,un)|0;var Ri=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,ge=Math.imul(Tt,qr),ie=Math.imul(Tt,jr),ie=ie+Math.imul(dt,qr)|0,Se=Math.imul(dt,jr),ge=ge+Math.imul(Ae,Ge)|0,ie=ie+Math.imul(Ae,Je)|0,ie=ie+Math.imul(rt,Ge)|0,Se=Se+Math.imul(rt,Je)|0,ge=ge+Math.imul(tt,et)|0,ie=ie+Math.imul(tt,xt)|0,ie=ie+Math.imul(je,et)|0,Se=Se+Math.imul(je,xt)|0,ge=ge+Math.imul(ar,Kt)|0,ie=ie+Math.imul(ar,Qt)|0,ie=ie+Math.imul(Vt,Kt)|0,Se=Se+Math.imul(Vt,Qt)|0,ge=ge+Math.imul(Ht,Gr)|0,ie=ie+Math.imul(Ht,Ir)|0,ie=ie+Math.imul(at,Gr)|0,Se=Se+Math.imul(at,Ir)|0,ge=ge+Math.imul(He,_i)|0,ie=ie+Math.imul(He,Pi)|0,ie=ie+Math.imul(lt,_i)|0,Se=Se+Math.imul(lt,Pi)|0,ge=ge+Math.imul(me,mi)|0,ie=ie+Math.imul(me,un)|0,ie=ie+Math.imul(Pe,mi)|0,Se=Se+Math.imul(Pe,un)|0,ge=ge+Math.imul(be,An)|0,ie=ie+Math.imul(be,Hn)|0,ie=ie+Math.imul(Be,An)|0,Se=Se+Math.imul(Be,Hn)|0;var Hi=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,ge=Math.imul(pt,qr),ie=Math.imul(pt,jr),ie=ie+Math.imul(jt,qr)|0,Se=Math.imul(jt,jr),ge=ge+Math.imul(Tt,Ge)|0,ie=ie+Math.imul(Tt,Je)|0,ie=ie+Math.imul(dt,Ge)|0,Se=Se+Math.imul(dt,Je)|0,ge=ge+Math.imul(Ae,et)|0,ie=ie+Math.imul(Ae,xt)|0,ie=ie+Math.imul(rt,et)|0,Se=Se+Math.imul(rt,xt)|0,ge=ge+Math.imul(tt,Kt)|0,ie=ie+Math.imul(tt,Qt)|0,ie=ie+Math.imul(je,Kt)|0,Se=Se+Math.imul(je,Qt)|0,ge=ge+Math.imul(ar,Gr)|0,ie=ie+Math.imul(ar,Ir)|0,ie=ie+Math.imul(Vt,Gr)|0,Se=Se+Math.imul(Vt,Ir)|0,ge=ge+Math.imul(Ht,_i)|0,ie=ie+Math.imul(Ht,Pi)|0,ie=ie+Math.imul(at,_i)|0,Se=Se+Math.imul(at,Pi)|0,ge=ge+Math.imul(He,mi)|0,ie=ie+Math.imul(He,un)|0,ie=ie+Math.imul(lt,mi)|0,Se=Se+Math.imul(lt,un)|0,ge=ge+Math.imul(me,An)|0,ie=ie+Math.imul(me,Hn)|0,ie=ie+Math.imul(Pe,An)|0,Se=Se+Math.imul(Pe,Hn)|0,ge=ge+Math.imul(be,Vi)|0,ie=ie+Math.imul(be,Jn)|0,ie=ie+Math.imul(Be,Vi)|0,Se=Se+Math.imul(Be,Jn)|0;var en=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(en>>>26)|0,en&=67108863,ge=Math.imul(mr,qr),ie=Math.imul(mr,jr),ie=ie+Math.imul(Ar,qr)|0,Se=Math.imul(Ar,jr),ge=ge+Math.imul(pt,Ge)|0,ie=ie+Math.imul(pt,Je)|0,ie=ie+Math.imul(jt,Ge)|0,Se=Se+Math.imul(jt,Je)|0,ge=ge+Math.imul(Tt,et)|0,ie=ie+Math.imul(Tt,xt)|0,ie=ie+Math.imul(dt,et)|0,Se=Se+Math.imul(dt,xt)|0,ge=ge+Math.imul(Ae,Kt)|0,ie=ie+Math.imul(Ae,Qt)|0,ie=ie+Math.imul(rt,Kt)|0,Se=Se+Math.imul(rt,Qt)|0,ge=ge+Math.imul(tt,Gr)|0,ie=ie+Math.imul(tt,Ir)|0,ie=ie+Math.imul(je,Gr)|0,Se=Se+Math.imul(je,Ir)|0,ge=ge+Math.imul(ar,_i)|0,ie=ie+Math.imul(ar,Pi)|0,ie=ie+Math.imul(Vt,_i)|0,Se=Se+Math.imul(Vt,Pi)|0,ge=ge+Math.imul(Ht,mi)|0,ie=ie+Math.imul(Ht,un)|0,ie=ie+Math.imul(at,mi)|0,Se=Se+Math.imul(at,un)|0,ge=ge+Math.imul(He,An)|0,ie=ie+Math.imul(He,Hn)|0,ie=ie+Math.imul(lt,An)|0,Se=Se+Math.imul(lt,Hn)|0,ge=ge+Math.imul(me,Vi)|0,ie=ie+Math.imul(me,Jn)|0,ie=ie+Math.imul(Pe,Vi)|0,Se=Se+Math.imul(Pe,Jn)|0,ge=ge+Math.imul(be,Gt)|0,ie=ie+Math.imul(be,wt)|0,ie=ie+Math.imul(Be,Gt)|0,Se=Se+Math.imul(Be,wt)|0;var fn=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(fn>>>26)|0,fn&=67108863,ge=Math.imul(mr,Ge),ie=Math.imul(mr,Je),ie=ie+Math.imul(Ar,Ge)|0,Se=Math.imul(Ar,Je),ge=ge+Math.imul(pt,et)|0,ie=ie+Math.imul(pt,xt)|0,ie=ie+Math.imul(jt,et)|0,Se=Se+Math.imul(jt,xt)|0,ge=ge+Math.imul(Tt,Kt)|0,ie=ie+Math.imul(Tt,Qt)|0,ie=ie+Math.imul(dt,Kt)|0,Se=Se+Math.imul(dt,Qt)|0,ge=ge+Math.imul(Ae,Gr)|0,ie=ie+Math.imul(Ae,Ir)|0,ie=ie+Math.imul(rt,Gr)|0,Se=Se+Math.imul(rt,Ir)|0,ge=ge+Math.imul(tt,_i)|0,ie=ie+Math.imul(tt,Pi)|0,ie=ie+Math.imul(je,_i)|0,Se=Se+Math.imul(je,Pi)|0,ge=ge+Math.imul(ar,mi)|0,ie=ie+Math.imul(ar,un)|0,ie=ie+Math.imul(Vt,mi)|0,Se=Se+Math.imul(Vt,un)|0,ge=ge+Math.imul(Ht,An)|0,ie=ie+Math.imul(Ht,Hn)|0,ie=ie+Math.imul(at,An)|0,Se=Se+Math.imul(at,Hn)|0,ge=ge+Math.imul(He,Vi)|0,ie=ie+Math.imul(He,Jn)|0,ie=ie+Math.imul(lt,Vi)|0,Se=Se+Math.imul(lt,Jn)|0,ge=ge+Math.imul(me,Gt)|0,ie=ie+Math.imul(me,wt)|0,ie=ie+Math.imul(Pe,Gt)|0,Se=Se+Math.imul(Pe,wt)|0;var yn=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(yn>>>26)|0,yn&=67108863,ge=Math.imul(mr,et),ie=Math.imul(mr,xt),ie=ie+Math.imul(Ar,et)|0,Se=Math.imul(Ar,xt),ge=ge+Math.imul(pt,Kt)|0,ie=ie+Math.imul(pt,Qt)|0,ie=ie+Math.imul(jt,Kt)|0,Se=Se+Math.imul(jt,Qt)|0,ge=ge+Math.imul(Tt,Gr)|0,ie=ie+Math.imul(Tt,Ir)|0,ie=ie+Math.imul(dt,Gr)|0,Se=Se+Math.imul(dt,Ir)|0,ge=ge+Math.imul(Ae,_i)|0,ie=ie+Math.imul(Ae,Pi)|0,ie=ie+Math.imul(rt,_i)|0,Se=Se+Math.imul(rt,Pi)|0,ge=ge+Math.imul(tt,mi)|0,ie=ie+Math.imul(tt,un)|0,ie=ie+Math.imul(je,mi)|0,Se=Se+Math.imul(je,un)|0,ge=ge+Math.imul(ar,An)|0,ie=ie+Math.imul(ar,Hn)|0,ie=ie+Math.imul(Vt,An)|0,Se=Se+Math.imul(Vt,Hn)|0,ge=ge+Math.imul(Ht,Vi)|0,ie=ie+Math.imul(Ht,Jn)|0,ie=ie+Math.imul(at,Vi)|0,Se=Se+Math.imul(at,Jn)|0,ge=ge+Math.imul(He,Gt)|0,ie=ie+Math.imul(He,wt)|0,ie=ie+Math.imul(lt,Gt)|0,Se=Se+Math.imul(lt,wt)|0;var Mn=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,ge=Math.imul(mr,Kt),ie=Math.imul(mr,Qt),ie=ie+Math.imul(Ar,Kt)|0,Se=Math.imul(Ar,Qt),ge=ge+Math.imul(pt,Gr)|0,ie=ie+Math.imul(pt,Ir)|0,ie=ie+Math.imul(jt,Gr)|0,Se=Se+Math.imul(jt,Ir)|0,ge=ge+Math.imul(Tt,_i)|0,ie=ie+Math.imul(Tt,Pi)|0,ie=ie+Math.imul(dt,_i)|0,Se=Se+Math.imul(dt,Pi)|0,ge=ge+Math.imul(Ae,mi)|0,ie=ie+Math.imul(Ae,un)|0,ie=ie+Math.imul(rt,mi)|0,Se=Se+Math.imul(rt,un)|0,ge=ge+Math.imul(tt,An)|0,ie=ie+Math.imul(tt,Hn)|0,ie=ie+Math.imul(je,An)|0,Se=Se+Math.imul(je,Hn)|0,ge=ge+Math.imul(ar,Vi)|0,ie=ie+Math.imul(ar,Jn)|0,ie=ie+Math.imul(Vt,Vi)|0,Se=Se+Math.imul(Vt,Jn)|0,ge=ge+Math.imul(Ht,Gt)|0,ie=ie+Math.imul(Ht,wt)|0,ie=ie+Math.imul(at,Gt)|0,Se=Se+Math.imul(at,wt)|0;var Ba=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,ge=Math.imul(mr,Gr),ie=Math.imul(mr,Ir),ie=ie+Math.imul(Ar,Gr)|0,Se=Math.imul(Ar,Ir),ge=ge+Math.imul(pt,_i)|0,ie=ie+Math.imul(pt,Pi)|0,ie=ie+Math.imul(jt,_i)|0,Se=Se+Math.imul(jt,Pi)|0,ge=ge+Math.imul(Tt,mi)|0,ie=ie+Math.imul(Tt,un)|0,ie=ie+Math.imul(dt,mi)|0,Se=Se+Math.imul(dt,un)|0,ge=ge+Math.imul(Ae,An)|0,ie=ie+Math.imul(Ae,Hn)|0,ie=ie+Math.imul(rt,An)|0,Se=Se+Math.imul(rt,Hn)|0,ge=ge+Math.imul(tt,Vi)|0,ie=ie+Math.imul(tt,Jn)|0,ie=ie+Math.imul(je,Vi)|0,Se=Se+Math.imul(je,Jn)|0,ge=ge+Math.imul(ar,Gt)|0,ie=ie+Math.imul(ar,wt)|0,ie=ie+Math.imul(Vt,Gt)|0,Se=Se+Math.imul(Vt,wt)|0;var ua=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(ua>>>26)|0,ua&=67108863,ge=Math.imul(mr,_i),ie=Math.imul(mr,Pi),ie=ie+Math.imul(Ar,_i)|0,Se=Math.imul(Ar,Pi),ge=ge+Math.imul(pt,mi)|0,ie=ie+Math.imul(pt,un)|0,ie=ie+Math.imul(jt,mi)|0,Se=Se+Math.imul(jt,un)|0,ge=ge+Math.imul(Tt,An)|0,ie=ie+Math.imul(Tt,Hn)|0,ie=ie+Math.imul(dt,An)|0,Se=Se+Math.imul(dt,Hn)|0,ge=ge+Math.imul(Ae,Vi)|0,ie=ie+Math.imul(Ae,Jn)|0,ie=ie+Math.imul(rt,Vi)|0,Se=Se+Math.imul(rt,Jn)|0,ge=ge+Math.imul(tt,Gt)|0,ie=ie+Math.imul(tt,wt)|0,ie=ie+Math.imul(je,Gt)|0,Se=Se+Math.imul(je,wt)|0;var ma=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(ma>>>26)|0,ma&=67108863,ge=Math.imul(mr,mi),ie=Math.imul(mr,un),ie=ie+Math.imul(Ar,mi)|0,Se=Math.imul(Ar,un),ge=ge+Math.imul(pt,An)|0,ie=ie+Math.imul(pt,Hn)|0,ie=ie+Math.imul(jt,An)|0,Se=Se+Math.imul(jt,Hn)|0,ge=ge+Math.imul(Tt,Vi)|0,ie=ie+Math.imul(Tt,Jn)|0,ie=ie+Math.imul(dt,Vi)|0,Se=Se+Math.imul(dt,Jn)|0,ge=ge+Math.imul(Ae,Gt)|0,ie=ie+Math.imul(Ae,wt)|0,ie=ie+Math.imul(rt,Gt)|0,Se=Se+Math.imul(rt,wt)|0;var Wa=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,ge=Math.imul(mr,An),ie=Math.imul(mr,Hn),ie=ie+Math.imul(Ar,An)|0,Se=Math.imul(Ar,Hn),ge=ge+Math.imul(pt,Vi)|0,ie=ie+Math.imul(pt,Jn)|0,ie=ie+Math.imul(jt,Vi)|0,Se=Se+Math.imul(jt,Jn)|0,ge=ge+Math.imul(Tt,Gt)|0,ie=ie+Math.imul(Tt,wt)|0,ie=ie+Math.imul(dt,Gt)|0,Se=Se+Math.imul(dt,wt)|0;var za=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(za>>>26)|0,za&=67108863,ge=Math.imul(mr,Vi),ie=Math.imul(mr,Jn),ie=ie+Math.imul(Ar,Vi)|0,Se=Math.imul(Ar,Jn),ge=ge+Math.imul(pt,Gt)|0,ie=ie+Math.imul(pt,wt)|0,ie=ie+Math.imul(jt,Gt)|0,Se=Se+Math.imul(jt,wt)|0;var Xo=(Ce+ge|0)+((ie&8191)<<13)|0;Ce=(Se+(ie>>>13)|0)+(Xo>>>26)|0,Xo&=67108863,ge=Math.imul(mr,Gt),ie=Math.imul(mr,wt),ie=ie+Math.imul(Ar,Gt)|0,Se=Math.imul(Ar,wt);var da=(Ce+ge|0)+((ie&8191)<<13)|0;return Ce=(Se+(ie>>>13)|0)+(da>>>26)|0,da&=67108863,Ee[0]=tr,Ee[1]=ir,Ee[2]=wr,Ee[3]=Xr,Ee[4]=ti,Ee[5]=$r,Ee[6]=Ri,Ee[7]=Hi,Ee[8]=en,Ee[9]=fn,Ee[10]=yn,Ee[11]=Mn,Ee[12]=Ba,Ee[13]=ua,Ee[14]=ma,Ee[15]=Wa,Ee[16]=za,Ee[17]=Xo,Ee[18]=da,Ce!==0&&(Ee[19]=Ce,re.length++),re};Math.imul||(L=T);function x(j,N,H){H.negative=N.negative^j.negative,H.length=j.length+N.length;for(var re=0,ae=0,_e=0;_e>>26)|0,ae+=Ee>>>26,Ee&=67108863}H.words[_e]=Ce,re=Ee,Ee=ae}return re!==0?H.words[_e]=re:H.length--,H.strip()}function C(j,N,H){var re=new S;return re.mulp(j,N,H)}f.prototype.mulTo=function(N,H){var re,ae=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,H):ae<63?re=T(this,N,H):ae<1024?re=x(this,N,H):re=C(this,N,H),re};function S(j,N){this.x=j,this.y=N}S.prototype.makeRBT=function(N){for(var H=new Array(N),re=f.prototype._countBits(N)-1,ae=0;ae>=1;return ae},S.prototype.permute=function(N,H,re,ae,_e,Ee){for(var Ce=0;Ce>>1)_e++;return 1<<_e+1+ae},S.prototype.conjugate=function(N,H,re){if(!(re<=1))for(var ae=0;ae>>13,re[2*Ee+1]=_e&8191,_e=_e>>>13;for(Ee=2*H;Ee>=26,H+=ae/67108864|0,H+=_e>>>26,this.words[re]=_e&67108863}return H!==0&&(this.words[re]=H,this.length++),this.length=N===0?1:this.length,this},f.prototype.muln=function(N){return this.clone().imuln(N)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(N){var H=M(N);if(H.length===0)return new f(1);for(var re=this,ae=0;ae=0);var H=N%26,re=(N-H)/26,ae=67108863>>>26-H<<26-H,_e;if(H!==0){var Ee=0;for(_e=0;_e>>26-H}Ee&&(this.words[_e]=Ee,this.length++)}if(re!==0){for(_e=this.length-1;_e>=0;_e--)this.words[_e+re]=this.words[_e];for(_e=0;_e=0);var ae;H?ae=(H-H%26)/26:ae=0;var _e=N%26,Ee=Math.min((N-_e)/26,this.length),Ce=67108863^67108863>>>_e<<_e,ge=re;if(ae-=Ee,ae=Math.max(0,ae),ge){for(var ie=0;ieEe)for(this.length-=Ee,ie=0;ie=0&&(Se!==0||ie>=ae);ie--){var ke=this.words[ie]|0;this.words[ie]=Se<<26-_e|ke>>>_e,Se=ke&Ce}return ge&&Se!==0&&(ge.words[ge.length++]=Se),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(N,H,re){return u(this.negative===0),this.iushrn(N,H,re)},f.prototype.shln=function(N){return this.clone().ishln(N)},f.prototype.ushln=function(N){return this.clone().iushln(N)},f.prototype.shrn=function(N){return this.clone().ishrn(N)},f.prototype.ushrn=function(N){return this.clone().iushrn(N)},f.prototype.testn=function(N){u(typeof N=="number"&&N>=0);var H=N%26,re=(N-H)/26,ae=1<=0);var H=N%26,re=(N-H)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(H!==0&&re++,this.length=Math.min(re,this.length),H!==0){var ae=67108863^67108863>>>H<=67108864;H++)this.words[H]-=67108864,H===this.length-1?this.words[H+1]=1:this.words[H+1]++;return this.length=Math.max(this.length,H+1),this},f.prototype.isubn=function(N){if(u(typeof N=="number"),u(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var H=0;H>26)-(ge/67108864|0),this.words[_e+re]=Ee&67108863}for(;_e>26,this.words[_e+re]=Ee&67108863;if(Ce===0)return this.strip();for(u(Ce===-1),Ce=0,_e=0;_e>26,this.words[_e]=Ee&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(N,H){var re=this.length-N.length,ae=this.clone(),_e=N,Ee=_e.words[_e.length-1]|0,Ce=this._countBits(Ee);re=26-Ce,re!==0&&(_e=_e.ushln(re),ae.iushln(re),Ee=_e.words[_e.length-1]|0);var ge=ae.length-_e.length,ie;if(H!=="mod"){ie=new f(null),ie.length=ge+1,ie.words=new Array(ie.length);for(var Se=0;Se=0;be--){var Be=(ae.words[_e.length+be]|0)*67108864+(ae.words[_e.length+be-1]|0);for(Be=Math.min(Be/Ee|0,67108863),ae._ishlnsubmul(_e,Be,be);ae.negative!==0;)Be--,ae.negative=0,ae._ishlnsubmul(_e,1,be),ae.isZero()||(ae.negative^=1);ie&&(ie.words[be]=Be)}return ie&&ie.strip(),ae.strip(),H!=="div"&&re!==0&&ae.iushrn(re),{div:ie||null,mod:ae}},f.prototype.divmod=function(N,H,re){if(u(!N.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var ae,_e,Ee;return this.negative!==0&&N.negative===0?(Ee=this.neg().divmod(N,H),H!=="mod"&&(ae=Ee.div.neg()),H!=="div"&&(_e=Ee.mod.neg(),re&&_e.negative!==0&&_e.iadd(N)),{div:ae,mod:_e}):this.negative===0&&N.negative!==0?(Ee=this.divmod(N.neg(),H),H!=="mod"&&(ae=Ee.div.neg()),{div:ae,mod:Ee.mod}):(this.negative&N.negative)!==0?(Ee=this.neg().divmod(N.neg(),H),H!=="div"&&(_e=Ee.mod.neg(),re&&_e.negative!==0&&_e.isub(N)),{div:Ee.div,mod:_e}):N.length>this.length||this.cmp(N)<0?{div:new f(0),mod:this}:N.length===1?H==="div"?{div:this.divn(N.words[0]),mod:null}:H==="mod"?{div:null,mod:new f(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new f(this.modn(N.words[0]))}:this._wordDiv(N,H)},f.prototype.div=function(N){return this.divmod(N,"div",!1).div},f.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},f.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},f.prototype.divRound=function(N){var H=this.divmod(N);if(H.mod.isZero())return H.div;var re=H.div.negative!==0?H.mod.isub(N):H.mod,ae=N.ushrn(1),_e=N.andln(1),Ee=re.cmp(ae);return Ee<0||_e===1&&Ee===0?H.div:H.div.negative!==0?H.div.isubn(1):H.div.iaddn(1)},f.prototype.modn=function(N){u(N<=67108863);for(var H=(1<<26)%N,re=0,ae=this.length-1;ae>=0;ae--)re=(H*re+(this.words[ae]|0))%N;return re},f.prototype.idivn=function(N){u(N<=67108863);for(var H=0,re=this.length-1;re>=0;re--){var ae=(this.words[re]|0)+H*67108864;this.words[re]=ae/N|0,H=ae%N}return this.strip()},f.prototype.divn=function(N){return this.clone().idivn(N)},f.prototype.egcd=function(N){u(N.negative===0),u(!N.isZero());var H=this,re=N.clone();H.negative!==0?H=H.umod(N):H=H.clone();for(var ae=new f(1),_e=new f(0),Ee=new f(0),Ce=new f(1),ge=0;H.isEven()&&re.isEven();)H.iushrn(1),re.iushrn(1),++ge;for(var ie=re.clone(),Se=H.clone();!H.isZero();){for(var ke=0,be=1;(H.words[0]&be)===0&&ke<26;++ke,be<<=1);if(ke>0)for(H.iushrn(ke);ke-- >0;)(ae.isOdd()||_e.isOdd())&&(ae.iadd(ie),_e.isub(Se)),ae.iushrn(1),_e.iushrn(1);for(var Be=0,Le=1;(re.words[0]&Le)===0&&Be<26;++Be,Le<<=1);if(Be>0)for(re.iushrn(Be);Be-- >0;)(Ee.isOdd()||Ce.isOdd())&&(Ee.iadd(ie),Ce.isub(Se)),Ee.iushrn(1),Ce.iushrn(1);H.cmp(re)>=0?(H.isub(re),ae.isub(Ee),_e.isub(Ce)):(re.isub(H),Ee.isub(ae),Ce.isub(_e))}return{a:Ee,b:Ce,gcd:re.iushln(ge)}},f.prototype._invmp=function(N){u(N.negative===0),u(!N.isZero());var H=this,re=N.clone();H.negative!==0?H=H.umod(N):H=H.clone();for(var ae=new f(1),_e=new f(0),Ee=re.clone();H.cmpn(1)>0&&re.cmpn(1)>0;){for(var Ce=0,ge=1;(H.words[0]&ge)===0&&Ce<26;++Ce,ge<<=1);if(Ce>0)for(H.iushrn(Ce);Ce-- >0;)ae.isOdd()&&ae.iadd(Ee),ae.iushrn(1);for(var ie=0,Se=1;(re.words[0]&Se)===0&&ie<26;++ie,Se<<=1);if(ie>0)for(re.iushrn(ie);ie-- >0;)_e.isOdd()&&_e.iadd(Ee),_e.iushrn(1);H.cmp(re)>=0?(H.isub(re),ae.isub(_e)):(re.isub(H),_e.isub(ae))}var ke;return H.cmpn(1)===0?ke=ae:ke=_e,ke.cmpn(0)<0&&ke.iadd(N),ke},f.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var H=this.clone(),re=N.clone();H.negative=0,re.negative=0;for(var ae=0;H.isEven()&&re.isEven();ae++)H.iushrn(1),re.iushrn(1);do{for(;H.isEven();)H.iushrn(1);for(;re.isEven();)re.iushrn(1);var _e=H.cmp(re);if(_e<0){var Ee=H;H=re,re=Ee}else if(_e===0||re.cmpn(1)===0)break;H.isub(re)}while(!0);return re.iushln(ae)},f.prototype.invm=function(N){return this.egcd(N).a.umod(N)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(N){return this.words[0]&N},f.prototype.bincn=function(N){u(typeof N=="number");var H=N%26,re=(N-H)/26,ae=1<>>26,Ce&=67108863,this.words[Ee]=Ce}return _e!==0&&(this.words[Ee]=_e,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(N){var H=N<0;if(this.negative!==0&&!H)return-1;if(this.negative===0&&H)return 1;this.strip();var re;if(this.length>1)re=1;else{H&&(N=-N),u(N<=67108863,"Number is too big");var ae=this.words[0]|0;re=ae===N?0:aeN.length)return 1;if(this.length=0;re--){var ae=this.words[re]|0,_e=N.words[re]|0;if(ae!==_e){ae<_e?H=-1:ae>_e&&(H=1);break}}return H},f.prototype.gtn=function(N){return this.cmpn(N)===1},f.prototype.gt=function(N){return this.cmp(N)===1},f.prototype.gten=function(N){return this.cmpn(N)>=0},f.prototype.gte=function(N){return this.cmp(N)>=0},f.prototype.ltn=function(N){return this.cmpn(N)===-1},f.prototype.lt=function(N){return this.cmp(N)===-1},f.prototype.lten=function(N){return this.cmpn(N)<=0},f.prototype.lte=function(N){return this.cmp(N)<=0},f.prototype.eqn=function(N){return this.cmpn(N)===0},f.prototype.eq=function(N){return this.cmp(N)===0},f.red=function(N){return new G(N)},f.prototype.toRed=function(N){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(N){return this.red=N,this},f.prototype.forceRed=function(N){return u(!this.red,"Already a number in reduction context"),this._forceRed(N)},f.prototype.redAdd=function(N){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},f.prototype.redIAdd=function(N){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},f.prototype.redSub=function(N){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},f.prototype.redISub=function(N){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},f.prototype.redShl=function(N){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},f.prototype.redMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},f.prototype.redIMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(N){return u(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var g={k256:null,p224:null,p192:null,p25519:null};function P(j,N){this.name=j,this.p=new f(N,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new f(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var H=N,re;do this.split(H,this.tmp),H=this.imulK(H),H=H.iadd(this.tmp),re=H.bitLength();while(re>this.n);var ae=re0?H.isub(this.p):H.strip!==void 0?H.strip():H._strip(),H},P.prototype.split=function(N,H){N.iushrn(this.n,0,H)},P.prototype.imulK=function(N){return N.imul(this.k)};function E(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(E,P),E.prototype.split=function(N,H){for(var re=4194303,ae=Math.min(N.length,9),_e=0;_e>>22,Ee=Ce}Ee>>>=22,N.words[_e-10]=Ee,Ee===0&&N.length>10?N.length-=10:N.length-=9},E.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var H=0,re=0;re>>=26,N.words[re]=_e,H=ae}return H!==0&&(N.words[N.length++]=H),N},f._prime=function(N){if(g[N])return g[N];var H;if(N==="k256")H=new E;else if(N==="p224")H=new z;else if(N==="p192")H=new q;else if(N==="p25519")H=new V;else throw new Error("Unknown prime "+N);return g[N]=H,H};function G(j){if(typeof j=="string"){var N=f._prime(j);this.m=N.p,this.prime=N}else u(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}G.prototype._verify1=function(N){u(N.negative===0,"red works only with positives"),u(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,H){u((N.negative|H.negative)===0,"red works only with positives"),u(N.red&&N.red===H.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,H){this._verify2(N,H);var re=N.add(H);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,H){this._verify2(N,H);var re=N.iadd(H);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,H){this._verify2(N,H);var re=N.sub(H);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,H){this._verify2(N,H);var re=N.isub(H);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,H){return this._verify1(N),this.imod(N.ushln(H))},G.prototype.imul=function(N,H){return this._verify2(N,H),this.imod(N.imul(H))},G.prototype.mul=function(N,H){return this._verify2(N,H),this.imod(N.mul(H))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var H=this.m.andln(3);if(u(H%2===1),H===3){var re=this.m.add(new f(1)).iushrn(2);return this.pow(N,re)}for(var ae=this.m.subn(1),_e=0;!ae.isZero()&&ae.andln(1)===0;)_e++,ae.iushrn(1);u(!ae.isZero());var Ee=new f(1).toRed(this),Ce=Ee.redNeg(),ge=this.m.subn(1).iushrn(1),ie=this.m.bitLength();for(ie=new f(2*ie*ie).toRed(this);this.pow(ie,ge).cmp(Ce)!==0;)ie.redIAdd(Ce);for(var Se=this.pow(ie,ae),ke=this.pow(N,ae.addn(1).iushrn(1)),be=this.pow(N,ae),Be=_e;be.cmp(Ee)!==0;){for(var Le=be,me=0;Le.cmp(Ee)!==0;me++)Le=Le.redSqr();u(me=0;_e--){for(var Se=H.words[_e],ke=ie-1;ke>=0;ke--){var be=Se>>ke&1;if(Ee!==ae[0]&&(Ee=this.sqr(Ee)),be===0&&Ce===0){ge=0;continue}Ce<<=1,Ce|=be,ge++,!(ge!==re&&(_e!==0||ke!==0))&&(Ee=this.mul(Ee,ae[Ce]),ge=0,Ce=0)}ie=26}return Ee},G.prototype.convertTo=function(N){var H=N.umod(this.m);return H===N?H.clone():H},G.prototype.convertFrom=function(N){var H=N.clone();return H.red=null,H},f.mont=function(N){return new Z(N)};function Z(j){G.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(Z,G),Z.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},Z.prototype.convertFrom=function(N){var H=this.imod(N.mul(this.rinv));return H.red=null,H},Z.prototype.imul=function(N,H){if(N.isZero()||H.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(H),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(ae).iushrn(this.shift),Ee=_e;return _e.cmp(this.m)>=0?Ee=_e.isub(this.m):_e.cmpn(0)<0&&(Ee=_e.iadd(this.m)),Ee._forceRed(this)},Z.prototype.mul=function(N,H){if(N.isZero()||H.isZero())return new f(0)._forceRed(this);var re=N.mul(H),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(ae).iushrn(this.shift),Ee=_e;return _e.cmp(this.m)>=0?Ee=_e.isub(this.m):_e.cmpn(0)<0&&(Ee=_e.iadd(this.m)),Ee._forceRed(this)},Z.prototype.invm=function(N){var H=this.imod(N._invmp(this.m).mul(this.r2));return H._forceRed(this)}})(i,this)}),6204:(function(i){"use strict";i.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(S<=0)){var g,P=s.mallocDouble(2*S*x),E=s.mallocInt32(x);if(x=f(k,S,P,E),x>0){if(S===1&&L)l.init(x),g=l.sweepComplete(S,T,0,x,P,E,0,x,P,E);else{var z=s.mallocDouble(2*S*C),q=s.mallocInt32(C);C=f(M,S,z,q),C>0&&(l.init(x+C),S===1?g=l.sweepBipartite(S,T,0,x,P,E,0,C,z,q):g=u(S,T,L,x,P,E,C,z,q),s.free(z),s.free(q))}s.free(P),s.free(E)}return g}}}var d;function v(k,M){d.push([k,M])}function m(k){return d=[],h(k,k,v,!0),d}function b(k,M){return d=[],h(k,M,v,!1),d}function p(k,M,T){switch(arguments.length){case 1:return m(k);case 2:return typeof M=="function"?h(k,k,M,!0):b(k,M);case 3:return h(k,M,T,!1);default:throw new Error("box-intersect: Invalid arguments")}}}),2455:(function(i,a){"use strict";function o(){function u(h,d,v,m,b,p,k,M,T,L,x){for(var C=2*h,S=m,g=C*m;ST-M?u(h,d,v,m,b,p,k,M,T,L,x):c(h,d,v,m,b,p,k,M,T,L,x)}return f}function s(){function u(v,m,b,p,k,M,T,L,x,C,S){for(var g=2*v,P=p,E=g*p;PC-x?p?u(v,m,b,k,M,T,L,x,C,S,g):c(v,m,b,k,M,T,L,x,C,S,g):p?f(v,m,b,k,M,T,L,x,C,S,g):h(v,m,b,k,M,T,L,x,C,S,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)}),7150:(function(i,a,o){"use strict";i.exports=j;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),d=o(3545),v=o(8105),m=128,b=1<<22,p=1<<22,k=v("!(lo>=p0)&&!(p1>=hi)"),M=v("lo===p0"),T=v("lo0;){Se-=1;var Be=Se*S,Le=E[Be],me=E[Be+1],Pe=E[Be+2],ce=E[Be+3],He=E[Be+4],lt=E[Be+5],mt=Se*g,Ht=z[mt],at=z[mt+1],ct=lt&1,ar=!!(lt&16),Vt=_e,rr=Ee,tt=ge,je=ie;if(ct&&(Vt=ge,rr=ie,tt=_e,je=Ee),!(lt&2&&(Pe=T(N,Le,me,Pe,Vt,rr,at),me>=Pe))&&!(lt&4&&(me=L(N,Le,me,Pe,Vt,rr,Ht),me>=Pe))){var Ue=Pe-me,Ae=He-ce;if(ar){if(N*Ue*(Ue+Ae)v&&b[C+d]>L;--x,C-=k){for(var S=C,g=C+k,P=0;P>>1,L=2*h,x=T,C=b[L*T+d];k=z?(x=E,C=z):P>=V?(x=g,C=P):(x=q,C=V):z>=V?(x=E,C=z):V>=P?(x=g,C=P):(x=q,C=V);for(var j=L*(M-1),N=L*x,G=0;G=p0)&&!(p1>=hi)":d};function o(v){return a[v]}function s(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+g];if(z===T)if(S===E)S+=1,C+=L;else{for(var q=0;L>q;++q){var V=k[x+q];k[x+q]=k[C],k[C++]=V}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function l(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+g];if(zq;++q){var V=k[x+q];k[x+q]=k[C],k[C++]=V}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function u(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+P];if(z<=T)if(S===E)S+=1,C+=L;else{for(var q=0;L>q;++q){var V=k[x+q];k[x+q]=k[C],k[C++]=V}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function c(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+P];if(z<=T)if(S===E)S+=1,C+=L;else{for(var q=0;L>q;++q){var V=k[x+q];k[x+q]=k[C],k[C++]=V}var G=M[E];M[E]=M[S],M[S++]=G}}return S}function f(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+g],q=k[x+P];if(z<=T&&T<=q)if(S===E)S+=1,C+=L;else{for(var V=0;L>V;++V){var G=k[x+V];k[x+V]=k[C],k[C++]=G}var Z=M[E];M[E]=M[S],M[S++]=Z}}return S}function h(v,m,b,p,k,M,T){for(var L=2*v,x=L*b,C=x,S=b,g=m,P=v+m,E=b;p>E;++E,x+=L){var z=k[x+g],q=k[x+P];if(zV;++V){var G=k[x+V];k[x+V]=k[C],k[C++]=G}var Z=M[E];M[E]=M[S],M[S++]=Z}}return S}function d(v,m,b,p,k,M,T,L){for(var x=2*v,C=x*b,S=C,g=b,P=m,E=v+m,z=b;p>z;++z,C+=x){var q=k[C+P],V=k[C+E];if(!(q>=T)&&!(L>=V))if(g===z)g+=1,S+=x;else{for(var G=0;x>G;++G){var Z=k[C+G];k[C+G]=k[S],k[S++]=Z}var j=M[z];M[z]=M[g],M[g++]=j}}return g}}),4192:(function(i){"use strict";i.exports=o;var a=32;function o(m,b){b<=4*a?s(0,b-1,m):v(0,b-1,m)}function s(m,b,p){for(var k=2*(m+1),M=m+1;M<=b;++M){for(var T=p[k++],L=p[k++],x=M,C=k-2;x-- >m;){var S=p[C-2],g=p[C-1];if(Sp[b+1]:!0}function d(m,b,p,k){m*=2;var M=k[m];return M>1,x=L-k,C=L+k,S=M,g=x,P=L,E=C,z=T,q=m+1,V=b-1,G=0;h(S,g,p)&&(G=S,S=g,g=G),h(E,z,p)&&(G=E,E=z,z=G),h(S,P,p)&&(G=S,S=P,P=G),h(g,P,p)&&(G=g,g=P,P=G),h(S,E,p)&&(G=S,S=E,E=G),h(P,E,p)&&(G=P,P=E,E=G),h(g,z,p)&&(G=g,g=z,z=G),h(g,P,p)&&(G=g,g=P,P=G),h(E,z,p)&&(G=E,E=z,z=G);for(var Z=p[2*g],j=p[2*g+1],N=p[2*E],H=p[2*E+1],re=2*S,ae=2*P,_e=2*z,Ee=2*M,Ce=2*L,ge=2*T,ie=0;ie<2;++ie){var Se=p[re+ie],ke=p[ae+ie],be=p[_e+ie];p[Ee+ie]=Se,p[Ce+ie]=ke,p[ge+ie]=be}u(x,m,p),u(C,b,p);for(var Be=q;Be<=V;++Be)if(d(Be,Z,j,p))Be!==q&&l(Be,q,p),++q;else if(!d(Be,N,H,p))for(;;)if(d(V,N,H,p)){d(V,Z,j,p)?(c(Be,q,V,p),++q,--V):(l(Be,V,p),--V);break}else{if(--V>>1;u(k,ke);for(var be=0,Be=0,Ce=0;Ce=c)Le=Le-c|0,T(v,m,Be--,Le);else if(Le>=0)T(h,d,be--,Le);else if(Le<=-c){Le=-Le-c|0;for(var me=0;me>>1;u(k,ke);for(var be=0,Be=0,Le=0,Ce=0;Ce>1===k[2*Ce+3]>>1&&(Pe=2,Ce+=1),me<0){for(var ce=-(me>>1)-1,He=0;He>1)-1;Pe===0?T(h,d,be--,ce):Pe===1?T(v,m,Be--,ce):Pe===2&&T(b,p,Le--,ce)}}}function S(P,E,z,q,V,G,Z,j,N,H,re,ae){var _e=0,Ee=2*P,Ce=E,ge=E+P,ie=1,Se=1;q?Se=c:ie=c;for(var ke=V;ke>>1;u(k,me);for(var Pe=0,ke=0;ke=c?(He=!q,be-=c):(He=!!q,be-=1),He)L(h,d,Pe++,be);else{var lt=ae[be],mt=Ee*be,Ht=re[mt+E+1],at=re[mt+E+1+P];e:for(var ct=0;ct>>1;u(k,be);for(var Be=0,ge=0;ge=c)h[Be++]=ie-c;else{ie-=1;var me=re[ie],Pe=_e*ie,ce=H[Pe+E+1],He=H[Pe+E+1+P];e:for(var lt=0;lt=0;--lt)if(h[lt]===ie){for(var ct=lt+1;ct0;){for(var M=d.pop(),b=d.pop(),T=-1,L=-1,p=m[b],C=1;C=0||(h.flip(b,M),u(f,h,d,T,b,L),u(f,h,d,b,L,T),u(f,h,d,L,M,T),u(f,h,d,M,T,L))}}}),5023:(function(i,a,o){"use strict";var s=o(2478);i.exports=d;function l(v,m,b,p,k,M,T){this.cells=v,this.neighbor=m,this.flags=p,this.constraint=b,this.active=k,this.next=M,this.boundary=T}var u=l.prototype;function c(v,m){return v[0]-m[0]||v[1]-m[1]||v[2]-m[2]}u.locate=(function(){var v=[0,0,0];return function(m,b,p){var k=m,M=b,T=p;return b0||T.length>0;){for(;M.length>0;){var g=M.pop();if(L[g]!==-k){L[g]=k;for(var P=x[g],E=0;E<3;++E){var z=S[3*g+E];z>=0&&L[z]===0&&(C[3*g+E]?T.push(z):(M.push(z),L[z]=k))}}}var q=T;T=M,M=q,T.length=0,k=-k}var V=h(x,L,m);return b?V.concat(p.boundary):V}}),8902:(function(i,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;i.exports=T;function h(L,x,C,S,g){this.a=L,this.b=x,this.idx=C,this.lowerIds=S,this.upperIds=g}function d(L,x,C,S){this.a=L,this.b=x,this.type=C,this.idx=S}function v(L,x){var C=L.a[0]-x.a[0]||L.a[1]-x.a[1]||L.type-x.type;return C||L.type!==u&&(C=l(L.a,L.b,x.b),C)?C:L.idx-x.idx}function m(L,x){return l(L.a,L.b,x)}function b(L,x,C,S,g){for(var P=s.lt(x,S,m),E=s.gt(x,S,m),z=P;z1&&l(C[V[Z-2]],C[V[Z-1]],S)>0;)L.push([V[Z-1],V[Z-2],g]),Z-=1;V.length=Z,V.push(g);for(var G=q.upperIds,Z=G.length;Z>1&&l(C[G[Z-2]],C[G[Z-1]],S)<0;)L.push([G[Z-2],G[Z-1],g]),Z-=1;G.length=Z,G.push(g)}}function p(L,x){var C;return L.a[0]q[0]&&g.push(new d(q,z,f,P),new d(z,q,c,P))}g.sort(v);for(var V=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),G=[new h([V,1],[V,0],-1,[],[],[],[])],Z=[],P=0,j=g.length;P=0}})(),u.removeTriangle=function(h,d,v){var m=this.stars;c(m[h],d,v),c(m[d],v,h),c(m[v],h,d)},u.addTriangle=function(h,d,v){var m=this.stars;m[h].push(d,v),m[d].push(v,h),m[v].push(h,d)},u.opposite=function(h,d){for(var v=this.stars[d],m=1,b=v.length;m=0;--N){var Se=Z[N];H=Se[0];var ke=V[H],be=ke[0],Be=ke[1],Le=q[be],me=q[Be];if((Le[0]-me[0]||Le[1]-me[1])<0){var Pe=be;be=Be,Be=Pe}ke[0]=be;var ce=ke[1]=Se[1],He;for(j&&(He=ke[2]);N>0&&Z[N-1][0]===H;){var Se=Z[--N],lt=Se[1];j?V.push([ce,lt,He]):V.push([ce,lt]),ce=lt}j?V.push([ce,Be,He]):V.push([ce,Be])}return re}function x(q,V,G){for(var Z=V.length,j=new s(Z),N=[],H=0;HV[2]?1:0)}function g(q,V,G){if(q.length!==0){if(V)for(var Z=0;Z0||H.length>0}function z(q,V,G){var Z;if(G){Z=V;for(var j=new Array(V.length),N=0;NL+1)throw new Error(M+" map requires nshades to be at least size "+k.length);Array.isArray(d.alpha)?d.alpha.length!==2?x=[1,1]:x=d.alpha.slice():typeof d.alpha=="number"?x=[d.alpha,d.alpha]:x=[1,1],v=k.map(function(z){return Math.round(z.index*L)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var S=k.map(function(z,q){var V=k[q].index,G=k[q].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=x[0]+(x[1]-x[0])*V),G}),g=[];for(C=0;C=0}function d(v,m,b,p){var k=s(m,b,p);if(k===0){var M=l(s(v,m,b)),T=l(s(v,m,p));if(M===T){if(M===0){var L=h(v,m,b),x=h(v,m,p);return L===x?0:L?1:-1}return 0}else{if(T===0)return M>0||h(v,m,p)?-1:1;if(M===0)return T>0||h(v,m,b)?1:-1}return l(T-M)}var C=s(v,m,b);if(C>0)return k>0&&s(v,m,p)>0?1:-1;if(C<0)return k>0||s(v,m,p)>0?1:-1;var S=s(v,m,p);return S>0||h(v,m,b)?1:-1}}),8572:(function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}}),8507:(function(i){i.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var c=l.length,f=l.length-u.length;if(f)return f;switch(c){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],d=u[0]+u[1];if(f=h+l[2]-(d+u[2]),f)return f;var v=a(l[0],l[1]),m=a(u[0],u[1]);return a(v,l[2])-a(m,u[2])||a(v+l[2],h)-a(m+u[2],d);case 4:var b=l[0],p=l[1],k=l[2],M=l[3],T=u[0],L=u[1],x=u[2],C=u[3];return b+p+k+M-(T+L+x+C)||a(b,p,k,M)-a(T,L,x,C,T)||a(b+p,b+k,b+M,p+k,p+M,k+M)-a(T+L,T+x,T+C,L+x,L+C,x+C)||a(b+p+k,b+p+M,b+k+M,p+k+M)-a(T+L+x,T+L+C,T+x+C,L+x+C);default:for(var S=l.slice().sort(o),g=u.slice().sort(o),P=0;Po[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}}),4750:(function(i,a,o){"use strict";i.exports=l;var s=o(3090);function l(u){var c=s(u),f=c.length;if(f<=2)return[];for(var h=new Array(f),d=c[f-1],v=0;v=d[T]&&(M+=1);p[k]=M}}return h}function f(h,d){try{return s(h,!0)}catch(p){var v=l(h);if(v.length<=d)return[];var m=u(h,v),b=s(m,!0);return c(b,v)}}}),4769:(function(i){"use strict";function a(s,l,u,c,f,h){var d=6*f*f-6*f,v=3*f*f-4*f+1,m=-6*f*f+6*f,b=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var p=s.length-1;p>=0;--p)h[p]=d*s[p]+v*l[p]+m*u[p]+b*c[p];return h}return d*s+v*l+m*u[p]+b*c}function o(s,l,u,c,f,h){var d=f-1,v=f*f,m=d*d,b=(1+2*f)*m,p=f*m,k=v*(3-2*f),M=v*d;if(s.length){h||(h=new Array(s.length));for(var T=s.length-1;T>=0;--T)h[T]=b*s[T]+p*l[T]+k*u[T]+M*c[T];return h}return b*s+p*l+k*u+M*c}i.exports=o,i.exports.derivative=a}),7642:(function(i,a,o){"use strict";var s=o(8954),l=o(1682);i.exports=h;function u(d,v){this.point=d,this.index=v}function c(d,v){for(var m=d.point,b=v.point,p=m.length,k=0;k=2)return!1;G[j]=N}return!0}):V=V.filter(function(G){for(var Z=0;Z<=b;++Z){var j=P[G[Z]];if(j<0)return!1;G[Z]=j}return!0}),b&1)for(var M=0;M>>31},i.exports.exponent=function(k){var M=i.exports.hi(k);return(M<<1>>>21)-1023},i.exports.fraction=function(k){var M=i.exports.lo(k),T=i.exports.hi(k),L=T&(1<<20)-1;return T&2146435072&&(L+=1048576),[M,L]},i.exports.denormalized=function(k){var M=i.exports.hi(k);return!(M&2146435072)}}),1338:(function(i){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),d;if(c===l.length-1)for(d=0;d0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}i.exports=s}),3134:(function(i,a,o){"use strict";i.exports=l;var s=o(1682);function l(u,c){var f=u.length;if(typeof c!="number"){c=0;for(var h=0;h=b-1)for(var C=M.length-1,g=v-m[b-1],S=0;S=b-1)for(var x=M.length-1,C=v-m[b-1],S=0;S=0;--b)if(v[--m])return!1;return!0},f.jump=function(v){var m=this.lastT(),b=this.dimension;if(!(v0;--S)p.push(u(L[S-1],x[S-1],arguments[S])),k.push(0)}},f.push=function(v){var m=this.lastT(),b=this.dimension;if(!(v1e-6?1/T:0;this._time.push(v);for(var g=b;g>0;--g){var P=u(x[g-1],C[g-1],arguments[g]);p.push(P),k.push((P-p[M++])*S)}}},f.set=function(v){var m=this.dimension;if(!(v0;--L)b.push(u(M[L-1],T[L-1],arguments[L])),p.push(0)}},f.move=function(v){var m=this.lastT(),b=this.dimension;if(!(v<=m||arguments.length!==b+1)){var p=this._state,k=this._velocity,M=p.length-this.dimension,T=this.bounds,L=T[0],x=T[1],C=v-m,S=C>1e-6?1/C:0;this._time.push(v);for(var g=b;g>0;--g){var P=arguments[g];p.push(u(L[g-1],x[g-1],p[M++]+P)),k.push(P*S)}}},f.idle=function(v){var m=this.lastT();if(!(v=0;--S)p.push(u(L[S],x[S],p[M]+C*k[M])),k.push(0),M+=1}};function h(v){for(var m=new Array(v),b=0;b=0;--q){var g=P[q];E[q]<=0?P[q]=new s(g._color,g.key,g.value,P[q+1],g.right,g._count+1):P[q]=new s(g._color,g.key,g.value,g.left,P[q+1],g._count+1)}for(var q=P.length-1;q>1;--q){var V=P[q-1],g=P[q];if(V._color===o||g._color===o)break;var G=P[q-2];if(G.left===V)if(V.left===g){var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,q-=1;else{if(G._color=a,G.left=V.right,V._color=o,V.right=G,P[q-2]=V,P[q-1]=g,c(G),c(V),q>=3){var j=P[q-3];j.left===G?j.left=V:j.right=V}break}}else{var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,q-=1;else{if(V.right=g.left,G._color=a,G.left=g.right,g._color=o,g.left=V,g.right=G,P[q-2]=g,P[q-1]=V,c(G),c(V),c(g),q>=3){var j=P[q-3];j.left===G?j.left=g:j.right=g}break}}else if(V.right===g){var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,q-=1;else{if(G._color=a,G.right=V.left,V._color=o,V.left=G,P[q-2]=V,P[q-1]=g,c(G),c(V),q>=3){var j=P[q-3];j.right===G?j.right=V:j.left=V}break}}else{var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,q-=1;else{if(V.left=g.right,G._color=a,G.right=g.left,g._color=o,g.right=V,g.left=G,P[q-2]=g,P[q-1]=V,c(G),c(V),c(g),q>=3){var j=P[q-3];j.right===G?j.right=g:j.left=g}break}}}return P[0]._color=o,new f(S,P[0])};function d(x,C){if(C.left){var S=d(x,C.left);if(S)return S}var S=x(C.key,C.value);if(S)return S;if(C.right)return d(x,C.right)}function v(x,C,S,g){var P=C(x,g.key);if(P<=0){if(g.left){var E=v(x,C,S,g.left);if(E)return E}var E=S(g.key,g.value);if(E)return E}if(g.right)return v(x,C,S,g.right)}function m(x,C,S,g,P){var E=S(x,P.key),z=S(C,P.key),q;if(E<=0&&(P.left&&(q=m(x,C,S,g,P.left),q)||z>0&&(q=g(P.key,P.value),q)))return q;if(z>0&&P.right)return m(x,C,S,g,P.right)}h.forEach=function(C,S,g){if(this.root)switch(arguments.length){case 1:return d(C,this.root);case 2:return v(S,this._compare,C,this.root);case 3:return this._compare(S,g)>=0?void 0:m(S,g,this._compare,C,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],C=this.root;C;)x.push(C),C=C.left;return new b(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],C=this.root;C;)x.push(C),C=C.right;return new b(this,x)}}),h.at=function(x){if(x<0)return new b(this,[]);for(var C=this.root,S=[];;){if(S.push(C),C.left){if(x=C.right._count)break;C=C.right}else break}return new b(this,[])},h.ge=function(x){for(var C=this._compare,S=this.root,g=[],P=0;S;){var E=C(x,S.key);g.push(S),E<=0&&(P=g.length),E<=0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.gt=function(x){for(var C=this._compare,S=this.root,g=[],P=0;S;){var E=C(x,S.key);g.push(S),E<0&&(P=g.length),E<0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.lt=function(x){for(var C=this._compare,S=this.root,g=[],P=0;S;){var E=C(x,S.key);g.push(S),E>0&&(P=g.length),E<=0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.le=function(x){for(var C=this._compare,S=this.root,g=[],P=0;S;){var E=C(x,S.key);g.push(S),E>=0&&(P=g.length),E<0?S=S.left:S=S.right}return g.length=P,new b(this,g)},h.find=function(x){for(var C=this._compare,S=this.root,g=[];S;){var P=C(x,S.key);if(g.push(S),P===0)return new b(this,g);P<=0?S=S.left:S=S.right}return new b(this,[])},h.remove=function(x){var C=this.find(x);return C?C.remove():this},h.get=function(x){for(var C=this._compare,S=this.root;S;){var g=C(x,S.key);if(g===0)return S.value;g<=0?S=S.left:S=S.right}};function b(x,C){this.tree=x,this._stack=C}var p=b.prototype;Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new b(this.tree,this._stack.slice())};function k(x,C){x.key=C.key,x.value=C.value,x.left=C.left,x.right=C.right,x._color=C._color,x._count=C._count}function M(x){for(var C,S,g,P,E=x.length-1;E>=0;--E){if(C=x[E],E===0){C._color=o;return}if(S=x[E-1],S.left===C){if(g=S.right,g.right&&g.right._color===a){if(g=S.right=l(g),P=g.right=l(g.right),S.right=g.left,g.left=S,g.right=P,g._color=S._color,C._color=o,S._color=o,P._color=o,c(S),c(g),E>1){var z=x[E-2];z.left===S?z.left=g:z.right=g}x[E-1]=g;return}else if(g.left&&g.left._color===a){if(g=S.right=l(g),P=g.left=l(g.left),S.right=P.left,g.left=P.right,P.left=S,P.right=g,P._color=S._color,S._color=o,g._color=o,C._color=o,c(S),c(g),c(P),E>1){var z=x[E-2];z.left===S?z.left=P:z.right=P}x[E-1]=P;return}if(g._color===o)if(S._color===a){S._color=o,S.right=u(a,g);return}else{S.right=u(a,g);continue}else{if(g=l(g),S.right=g.left,g.left=S,g._color=S._color,S._color=a,c(S),c(g),E>1){var z=x[E-2];z.left===S?z.left=g:z.right=g}x[E-1]=g,x[E]=S,E+11){var z=x[E-2];z.right===S?z.right=g:z.left=g}x[E-1]=g;return}else if(g.right&&g.right._color===a){if(g=S.left=l(g),P=g.right=l(g.right),S.left=P.right,g.right=P.left,P.right=S,P.left=g,P._color=S._color,S._color=o,g._color=o,C._color=o,c(S),c(g),c(P),E>1){var z=x[E-2];z.right===S?z.right=P:z.left=P}x[E-1]=P;return}if(g._color===o)if(S._color===a){S._color=o,S.left=u(a,g);return}else{S.left=u(a,g);continue}else{if(g=l(g),S.left=g.right,g.right=S,g._color=S._color,S._color=a,c(S),c(g),E>1){var z=x[E-2];z.right===S?z.right=g:z.left=g}x[E-1]=g,x[E]=S,E+1=0;--g){var S=x[g];S.left===x[g+1]?C[g]=new s(S._color,S.key,S.value,C[g+1],S.right,S._count):C[g]=new s(S._color,S.key,S.value,S.left,C[g+1],S._count)}if(S=C[C.length-1],S.left&&S.right){var P=C.length;for(S=S.left;S.right;)C.push(S),S=S.right;var E=C[P-1];C.push(new s(S._color,E.key,E.value,S.left,S.right,S._count)),C[P-1].key=S.key,C[P-1].value=S.value;for(var g=C.length-2;g>=P;--g)S=C[g],C[g]=new s(S._color,S.key,S.value,S.left,C[g+1],S._count);C[P-1].left=C[P]}if(S=C[C.length-1],S._color===a){var z=C[C.length-2];z.left===S?z.left=null:z.right===S&&(z.right=null),C.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var x=0,C=this._stack;if(C.length===0){var S=this.tree.root;return S?S._count:0}else C[C.length-1].left&&(x=C[C.length-1].left._count);for(var g=C.length-2;g>=0;--g)C[g+1]===C[g].right&&(++x,C[g].left&&(x+=C[g].left._count));return x},enumerable:!0}),p.next=function(){var x=this._stack;if(x.length!==0){var C=x[x.length-1];if(C.right)for(C=C.right;C;)x.push(C),C=C.left;else for(x.pop();x.length>0&&x[x.length-1].right===C;)C=x[x.length-1],x.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var C=x.length-1;C>0;--C)if(x[C-1].left===x[C])return!0;return!1}}),p.update=function(x){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var S=new Array(C.length),g=C[C.length-1];S[S.length-1]=new s(g._color,g.key,x,g.left,g.right,g._count);for(var P=C.length-2;P>=0;--P)g=C[P],g.left===C[P+1]?S[P]=new s(g._color,g.key,g.value,S[P+1],g.right,g._count):S[P]=new s(g._color,g.key,g.value,g.left,S[P+1],g._count);return new f(this.tree._compare,S[0])},p.prev=function(){var x=this._stack;if(x.length!==0){var C=x[x.length-1];if(C.left)for(C=C.left;C;)x.push(C),C=C.right;else for(x.pop();x.length>0&&x[x.length-1].left===C;)C=x[x.length-1],x.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var C=x.length-1;C>0;--C)if(x[C-1].right===x[C])return!0;return!1}});function T(x,C){return xC?1:0}function L(x){return new f(x||T,null)}}),3837:(function(i,a,o){"use strict";i.exports=q;var s=o(4935),l=o(501),u=o(5304),c=o(6429),f=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,v=DataView;function m(V){return d.isView(V)&&!(V instanceof v)}function b(V){return Array.isArray(V)||m(V)}function p(V,G){return V[0]=G[0],V[1]=G[1],V[2]=G[2],V}function k(V){this.gl=V,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=u(V)}var M=k.prototype;M.update=function(V){V=V||{};function G(be,Be,Le){if(Le in V){var me=V[Le],Pe=this[Le],ce;(be?b(me)&&b(me[0]):b(me))?this[Le]=ce=[Be(me[0]),Be(me[1]),Be(me[2])]:this[Le]=ce=[Be(me),Be(me),Be(me)];for(var He=0;He<3;++He)if(ce[He]!==Pe[He])return!0}return!1}var Z=G.bind(this,!1,Number),j=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),H=G.bind(this,!0,function(be){if(b(be)){if(be.length===3)return[+be[0],+be[1],+be[2],1];if(be.length===4)return[+be[0],+be[1],+be[2],+be[3]]}return[0,0,0,1]}),re,ae=!1,_e=!1;if("bounds"in V)for(var Ee=V.bounds,Ce=0;Ce<2;++Ce)for(var ge=0;ge<3;++ge)Ee[Ce][ge]!==this.bounds[Ce][ge]&&(_e=!0),this.bounds[Ce][ge]=Ee[Ce][ge];if("ticks"in V){re=V.ticks,ae=!0,this.autoTicks=!1;for(var Ce=0;Ce<3;++Ce)this.tickSpacing[Ce]=0}else Z("tickSpacing")&&(this.autoTicks=!0,_e=!0);if(this._firstInit&&("ticks"in V||"tickSpacing"in V||(this.autoTicks=!0),_e=!0,ae=!0,this._firstInit=!1),_e&&this.autoTicks&&(re=f.create(this.bounds,this.tickSpacing),ae=!0),ae){for(var Ce=0;Ce<3;++Ce)re[Ce].sort(function(Be,Le){return Be.x-Le.x});f.equal(re,this.ticks)?ae=!1:this.ticks=re}j("tickEnable"),N("tickFont")&&(ae=!0),N("tickFontStyle")&&(ae=!0),N("tickFontWeight")&&(ae=!0),N("tickFontVariant")&&(ae=!0),Z("tickSize"),Z("tickAngle"),Z("tickPad"),H("tickColor");var ie=N("labels");N("labelFont")&&(ie=!0),N("labelFontStyle")&&(ie=!0),N("labelFontWeight")&&(ie=!0),N("labelFontVariant")&&(ie=!0),j("labelEnable"),Z("labelSize"),Z("labelPad"),H("labelColor"),j("lineEnable"),j("lineMirror"),Z("lineWidth"),H("lineColor"),j("lineTickEnable"),j("lineTickMirror"),Z("lineTickLength"),Z("lineTickWidth"),H("lineTickColor"),j("gridEnable"),Z("gridWidth"),H("gridColor"),j("zeroEnable"),H("zeroLineColor"),Z("zeroLineWidth"),j("backgroundEnable"),H("backgroundColor");var Se=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],ke=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(ie||ae)&&this._text.update(this.bounds,this.labels,Se,this.ticks,ke):this._text=s(this.gl,this.bounds,this.labels,Se,this.ticks,ke),this._lines&&ae&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function T(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new T,new T,new T];function x(V,G,Z,j,N){for(var H=V.primalOffset,re=V.primalMinor,ae=V.mirrorOffset,_e=V.mirrorMinor,Ee=j[G],Ce=0;Ce<3;++Ce)if(G!==Ce){var ge=H,ie=ae,Se=re,ke=_e;Ee&1<0?(Se[Ce]=-1,ke[Ce]=0):(Se[Ce]=0,ke[Ce]=1)}}var C=[0,0,0],S={model:h,view:h,projection:h,_ortho:!1};M.isOpaque=function(){return!0},M.isTransparent=function(){return!1},M.drawTransparent=function(V){};var g=0,P=[0,0,0],E=[0,0,0],z=[0,0,0];M.draw=function(V){V=V||S;for(var Le=this.gl,G=V.model||h,Z=V.view||h,j=V.projection||h,N=this.bounds,H=V._ortho||!1,re=c(G,Z,j,N,H),ae=re.cubeEdges,_e=re.axis,Ee=Z[12],Ce=Z[13],ge=Z[14],ie=Z[15],Se=H?2:1,ke=Se*this.pixelRatio*(j[3]*Ee+j[7]*Ce+j[11]*ge+j[15]*ie)/Le.drawingBufferHeight,be=0;be<3;++be)this.lastCubeProps.cubeEdges[be]=ae[be],this.lastCubeProps.axis[be]=_e[be];for(var Be=L,be=0;be<3;++be)x(L[be],be,this.bounds,ae,_e);for(var Le=this.gl,me=C,be=0;be<3;++be)this.backgroundEnable[be]?me[be]=_e[be]:me[be]=0;this._background.draw(G,Z,j,N,me,this.backgroundColor),this._lines.bind(G,Z,j,this);for(var be=0;be<3;++be){var Pe=[0,0,0];_e[be]>0?Pe[be]=N[1][be]:Pe[be]=N[0][be];for(var ce=0;ce<2;++ce){var He=(be+1+ce)%3,lt=(be+1+(ce^1))%3;this.gridEnable[He]&&this._lines.drawGrid(He,lt,this.bounds,Pe,this.gridColor[He],this.gridWidth[He]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var He=(be+1+ce)%3,lt=(be+1+(ce^1))%3;this.zeroEnable[lt]&&Math.min(N[0][lt],N[1][lt])<=0&&Math.max(N[0][lt],N[1][lt])>=0&&this._lines.drawZero(He,lt,this.bounds,Pe,this.zeroLineColor[lt],this.zeroLineWidth[lt]*this.pixelRatio)}}for(var be=0;be<3;++be){this.lineEnable[be]&&this._lines.drawAxisLine(be,this.bounds,Be[be].primalOffset,this.lineColor[be],this.lineWidth[be]*this.pixelRatio),this.lineMirror[be]&&this._lines.drawAxisLine(be,this.bounds,Be[be].mirrorOffset,this.lineColor[be],this.lineWidth[be]*this.pixelRatio);for(var mt=p(P,Be[be].primalMinor),Ht=p(E,Be[be].mirrorMinor),at=this.lineTickLength,ce=0;ce<3;++ce){var ct=ke/G[5*ce];mt[ce]*=at[ce]*ct,Ht[ce]*=at[ce]*ct}this.lineTickEnable[be]&&this._lines.drawAxisTicks(be,Be[be].primalOffset,mt,this.lineTickColor[be],this.lineTickWidth[be]*this.pixelRatio),this.lineTickMirror[be]&&this._lines.drawAxisTicks(be,Be[be].mirrorOffset,Ht,this.lineTickColor[be],this.lineTickWidth[be]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,Z,j,this.pixelRatio);var ar,Vt=.5,rr,tt;function je(dt){tt=[0,0,0],tt[dt]=1}function Ue(dt,Et,pt){var jt=(dt+1)%3,or=(dt+2)%3,mr=Et[jt],Ar=Et[or],ei=pt[jt],qr=pt[or];if(mr>0&&qr>0){je(jt);return}else if(mr>0&&qr<0){je(jt);return}else if(mr<0&&qr>0){je(jt);return}else if(mr<0&&qr<0){je(jt);return}else if(Ar>0&&ei>0){je(or);return}else if(Ar>0&&ei<0){je(or);return}else if(Ar<0&&ei>0){je(or);return}else if(Ar<0&&ei<0){je(or);return}}for(var be=0;be<3;++be){for(var Ae=Be[be].primalMinor,rt=Be[be].mirrorMinor,St=p(z,Be[be].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[be]&&(St[ce]+=ke*Ae[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var Tt=[0,0,0];if(Tt[be]=1,this.tickEnable[be]){this.tickAngle[be]===-3600?(this.tickAngle[be]=0,this.tickAlign[be]="auto"):this.tickAlign[be]=-1,rr=1,ar=[this.tickAlign[be],Vt,rr],ar[0]==="auto"?ar[0]=g:ar[0]=parseInt(""+ar[0]),tt=[0,0,0],Ue(be,Ae,rt);for(var ce=0;ce<3;++ce)St[ce]+=ke*Ae[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(be,this.tickSize[be],this.tickAngle[be],St,this.tickColor[be],Tt,tt,ar)}if(this.labelEnable[be]){rr=0,tt=[0,0,0],this.labels[be].length>4&&(je(be),rr=1),ar=[this.labelAlign[be],Vt,rr],ar[0]==="auto"?ar[0]=g:ar[0]=parseInt(""+ar[0]);for(var ce=0;ce<3;++ce)St[ce]+=ke*Ae[ce]*this.labelPad[ce]/G[5*ce];St[be]+=.5*(N[0][be]+N[1][be]),this._text.drawLabel(be,this.labelSize[be],this.labelAngle[be],St,this.labelColor[be],[0,0,0],tt,ar)}}this._text.unbind()},M.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function q(V,G){var Z=new k(V);return Z.update(G),Z}}),5304:(function(i,a,o){"use strict";i.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(d,v,m,b){this.gl=d,this.buffer=v,this.vao=m,this.shader=b}var f=c.prototype;f.draw=function(d,v,m,b,p,k){for(var M=!1,T=0;T<3;++T)M=M||p[T];if(M){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:v,projection:m,bounds:b,enable:p,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var v=[],m=[],b=0,p=0;p<3;++p)for(var k=(p+1)%3,M=(p+2)%3,T=[0,0,0],L=[0,0,0],x=-1;x<=1;x+=2){m.push(b,b+2,b+1,b+1,b+2,b+3),T[p]=x,L[p]=x;for(var C=-1;C<=1;C+=2){T[k]=C;for(var S=-1;S<=1;S+=2)T[M]=S,v.push(T[0],T[1],T[2],L[0],L[1],L[2]),b+=1}var g=k;k=M,M=g}var P=s(d,new Float32Array(v)),E=s(d,new Uint16Array(m),d.ELEMENT_ARRAY_BUFFER),z=l(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],E),q=u(d);return q.attributes.position.location=0,q.attributes.normal.location=1,new c(d,P,z,q)}}),6429:(function(i,a,o){"use strict";i.exports=x;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),d=new Array(8),v=new Array(3),m=[0,0,0];(function(){for(var C=0;C<8;++C)h[C]=[1,1,1,1],d[C]=[1,1,1]})();function b(C,S,g){for(var P=0;P<4;++P){C[P]=g[12+P];for(var E=0;E<3;++E)C[P]+=S[E]*g[4*E+P]}}var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(C){for(var S=0;S_e&&(Z|=1<_e){Z|=1<d[q][1])&&(Be=q);for(var Le=-1,q=0;q<3;++q){var me=Be^1<d[Pe][0]&&(Pe=me)}}var ce=M;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Le^Be)]=Be&Le,ce[s.log2(Be^Pe)]=Be&Pe;var He=Pe^7;He===Z||He===be?(He=Le^7,ce[s.log2(Pe^He)]=He&Pe):ce[s.log2(Le^He)]=He&Le;for(var lt=T,mt=Z,H=0;H<3;++H)mt&1<=0;--ce){var He=be[Pe[ce]];S.push(ke*He[0],-ke*He[1],H)}}for(var P=[0,0,0],E=[0,0,0],z=[0,0,0],q=[0,0,0],V=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},Z=0;Z<3;++Z){z[Z]=S.length/d|0,g(.5*(M[0][Z]+M[1][Z]),T[Z],L[Z],12,V,G),q[Z]=(S.length/d|0)-z[Z],P[Z]=S.length/d|0;for(var j=0;j=0&&(d=f.length-h-1);var v=Math.pow(10,d),m=Math.round(u*c*v),b=m+"";if(b.indexOf("e")>=0)return b;var p=m/v,k=m%v;m<0?(p=-Math.ceil(p)|0,k=-k|0):(p=Math.floor(p)|0,k=k|0);var M=""+p;if(m<0&&(M="-"+M),d){for(var T=""+k;T.length=u[0][h];--m)d.push({x:m*c[h],text:o(c[h],m)});f.push(d)}return f}function l(u,c){for(var f=0;f<3;++f){if(u[f].length!==c[f].length)return!1;for(var h=0;hM)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return p.bufferSubData(k,x,L),M}function v(p,k){for(var M=s.malloc(p.length,k),T=p.length,L=0;L=0;--T){if(k[T]!==M)return!1;M*=p[T]}return!0}h.update=function(p,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof p=="object"&&typeof p.shape!="undefined"){var M=p.dtype;if(c.indexOf(M)<0&&(M="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var T=gl.getExtension("OES_element_index_uint");T&&M!=="uint16"?M="uint32":M="uint16"}if(M===p.dtype&&m(p.shape,p.stride))p.offset===0&&p.data.length===p.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,p.data,k):this.length=d(this.gl,this.type,this.length,this.usage,p.data.subarray(p.offset,p.shape[0]),k);else{var L=s.malloc(p.size,M),x=u(L,p.shape);l.assign(x,p),k<0?this.length=d(this.gl,this.type,this.length,this.usage,L,k):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,p.size),k),s.free(L)}}else if(Array.isArray(p)){var C;this.type===this.gl.ELEMENT_ARRAY_BUFFER?C=v(p,"uint16"):C=v(p,"float32"),k<0?this.length=d(this.gl,this.type,this.length,this.usage,C,k):this.length=d(this.gl,this.type,this.length,this.usage,C.subarray(0,p.length),k),s.free(C)}else if(typeof p=="object"&&typeof p.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,p,k);else if(typeof p=="number"||p===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");p=p|0,p<=0&&(p=1),this.gl.bufferData(this.type,p|0,this.usage),this.length=p}else throw new Error("gl-buffer: Invalid data type")};function b(p,k,M,T){if(M=M||p.ARRAY_BUFFER,T=T||p.DYNAMIC_DRAW,M!==p.ARRAY_BUFFER&&M!==p.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(T!==p.DYNAMIC_DRAW&&T!==p.STATIC_DRAW&&T!==p.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=p.createBuffer(),x=new f(p,M,L,0,T);return x.update(k),x}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(u,c){var f=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),d;for(var v=0,m=1/0,b=-1/0,p=1/0,k=-1/0,M=1/0,T=-1/0,L=null,x=null,C=[],S=1/0,g=!1,P=u.coneSizemode==="raw",E=0;Ev&&(v=s.length(q)),E&&!P){var V=2*s.distance(L,z)/(s.length(x)+s.length(q));V?(S=Math.min(S,V),g=!1):g=!0}g||(L=z,x=q),C.push(q)}var G=[m,p,M],Z=[b,k,T];c&&(c[0]=G,c[1]=Z),v===0&&(v=1);var j=1/v;isFinite(S)||(S=1),d.vectorScale=S;var N=u.coneSize||(P?1:.5);u.absoluteConeSize&&(N=u.absoluteConeSize*j),d.coneScale=N;for(var E=0,H=0;E=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(C){this.pickId=C};function k(C){for(var S=v({colormap:C,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var E=S[P],z=0;z<3;++z)g[4*P+z]=E[z];g[4*P+3]=E[3]*255}return d(g,[256,256,4],[4,0,1])}function M(C){for(var S=C.length,g=new Array(S),P=0;P0){var H=this.triShader;H.bind(),H.uniforms=V,this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(C){C=C||{};for(var S=this.gl,g=C.model||m,P=C.view||m,E=C.projection||m,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],q=0;q<3;++q)z[0][q]=Math.max(z[0][q],this.clipBounds[0][q]),z[1][q]=Math.min(z[1][q],this.clipBounds[1][q]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(E),this._resolution=[S.drawingBufferWidth,S.drawingBufferHeight];var V={model:g,view:P,projection:E,clipBounds:z,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(C){if(!C||C.id!==this.pickId)return null;var S=C.value[0]+256*C.value[1]+65536*C.value[2],g=this.cells[S],P=this.positions[g[1]].slice(0,3),E={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?E.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(E.intensity=this.intensity[g[1]],E.velocity=this.vectors[g[1]].slice(0,3),E.divergence=this.vectors[g[1]][3],E.index=S),E},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function T(C,S){var g=s(C,S.meshShader.vertex,S.meshShader.fragment,null,S.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function L(C,S){var g=s(C,S.pickShader.vertex,S.pickShader.fragment,null,S.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function x(C,S,g){var P=g.shaders;arguments.length===1&&(S=C,C=S.gl);var E=T(C,P),z=L(C,P),q=c(C,d(new Uint8Array([255,255,255,255]),[1,1,4]));q.generateMipmap(),q.minFilter=C.LINEAR_MIPMAP_LINEAR,q.magFilter=C.LINEAR;var V=l(C),G=l(C),Z=l(C),j=l(C),N=l(C),H=u(C,[{buffer:V,type:C.FLOAT,size:4},{buffer:N,type:C.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Z,type:C.FLOAT,size:4},{buffer:j,type:C.FLOAT,size:2},{buffer:G,type:C.FLOAT,size:4}]),ie=new b(C,q,E,z,V,G,N,Z,j,H,g.traceType||"cone");return ie.update(S),ie}i.exports=x},614:function(i,a,o){var s=o(3236),l=s([`precision highp float; +}`]);a.bg=function(m){return l(m,d,v,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}}),4935:(function(i,a,o){"use strict";i.exports=k;var s=o(2762),l=o(8116),u=o(4359),c=o(1879).Q,f=window||process.global||{},h=f.__TEXT_CACHE||{};f.__TEXT_CACHE={};var d=3;function v(M,T,L,x){this.gl=M,this.shader=T,this.buffer=L,this.vao=x,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var m=v.prototype,b=[0,0];m.bind=function(M,T,L,x){this.vao.bind(),this.shader.bind();var C=this.shader.uniforms;C.model=M,C.view=T,C.projection=L,C.pixelScale=x,b[0]=this.gl.drawingBufferWidth,b[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=b},m.unbind=function(){this.vao.unbind()},m.update=function(M,T,L,x,C){var S=[];function g(H,re,ae,_e,Ee,Ce){var ge=[ae.style,ae.weight,ae.variant,ae.family].join("_"),ie=h[ge];ie||(ie=h[ge]={});var Se=ie[re];Se||(Se=ie[re]=p(re,{triangles:!0,font:ae.family,fontStyle:ae.style,fontWeight:ae.weight,fontVariant:ae.variant,textAlign:"center",textBaseline:"middle",lineSpacing:Ee,styletags:Ce}));for(var ke=(_e||12)/12,be=Se.positions,Be=Se.cells,Le=0,me=Be.length;Le=0;--ce){var He=be[Pe[ce]];S.push(ke*He[0],-ke*He[1],H)}}for(var P=[0,0,0],E=[0,0,0],z=[0,0,0],q=[0,0,0],V=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},Z=0;Z<3;++Z){z[Z]=S.length/d|0,g(.5*(M[0][Z]+M[1][Z]),T[Z],L[Z],12,V,G),q[Z]=(S.length/d|0)-z[Z],P[Z]=S.length/d|0;for(var j=0;j=0&&(d=f.length-h-1);var v=Math.pow(10,d),m=Math.round(u*c*v),b=m+"";if(b.indexOf("e")>=0)return b;var p=m/v,k=m%v;m<0?(p=-Math.ceil(p)|0,k=-k|0):(p=Math.floor(p)|0,k=k|0);var M=""+p;if(m<0&&(M="-"+M),d){for(var T=""+k;T.length=u[0][h];--m)d.push({x:m*c[h],text:o(c[h],m)});f.push(d)}return f}function l(u,c){for(var f=0;f<3;++f){if(u[f].length!==c[f].length)return!1;for(var h=0;hM)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return p.bufferSubData(k,x,L),M}function v(p,k){for(var M=s.malloc(p.length,k),T=p.length,L=0;L=0;--T){if(k[T]!==M)return!1;M*=p[T]}return!0}h.update=function(p,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof p=="object"&&typeof p.shape!="undefined"){var M=p.dtype;if(c.indexOf(M)<0&&(M="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var T=gl.getExtension("OES_element_index_uint");T&&M!=="uint16"?M="uint32":M="uint16"}if(M===p.dtype&&m(p.shape,p.stride))p.offset===0&&p.data.length===p.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,p.data,k):this.length=d(this.gl,this.type,this.length,this.usage,p.data.subarray(p.offset,p.shape[0]),k);else{var L=s.malloc(p.size,M),x=u(L,p.shape);l.assign(x,p),k<0?this.length=d(this.gl,this.type,this.length,this.usage,L,k):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,p.size),k),s.free(L)}}else if(Array.isArray(p)){var C;this.type===this.gl.ELEMENT_ARRAY_BUFFER?C=v(p,"uint16"):C=v(p,"float32"),k<0?this.length=d(this.gl,this.type,this.length,this.usage,C,k):this.length=d(this.gl,this.type,this.length,this.usage,C.subarray(0,p.length),k),s.free(C)}else if(typeof p=="object"&&typeof p.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,p,k);else if(typeof p=="number"||p===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");p=p|0,p<=0&&(p=1),this.gl.bufferData(this.type,p|0,this.usage),this.length=p}else throw new Error("gl-buffer: Invalid data type")};function b(p,k,M,T){if(M=M||p.ARRAY_BUFFER,T=T||p.DYNAMIC_DRAW,M!==p.ARRAY_BUFFER&&M!==p.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(T!==p.DYNAMIC_DRAW&&T!==p.STATIC_DRAW&&T!==p.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=p.createBuffer(),x=new f(p,M,L,0,T);return x.update(k),x}i.exports=b}),6405:(function(i,a,o){"use strict";var s=o(2931);i.exports=function(u,c){var f=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),d;for(var v=0,m=1/0,b=-1/0,p=1/0,k=-1/0,M=1/0,T=-1/0,L=null,x=null,C=[],S=1/0,g=!1,P=u.coneSizemode==="raw",E=0;Ev&&(v=s.length(q)),E&&!P){var V=2*s.distance(L,z)/(s.length(x)+s.length(q));V?(S=Math.min(S,V),g=!1):g=!0}g||(L=z,x=q),C.push(q)}var G=[m,p,M],Z=[b,k,T];c&&(c[0]=G,c[1]=Z),v===0&&(v=1);var j=1/v;isFinite(S)||(S=1),d.vectorScale=S;var N=u.coneSize||(P?1:.5);u.absoluteConeSize&&(N=u.absoluteConeSize*j),d.coneScale=N;for(var E=0,H=0;E=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(C){this.pickId=C};function k(C){for(var S=v({colormap:C,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var E=S[P],z=0;z<3;++z)g[4*P+z]=E[z];g[4*P+3]=E[3]*255}return d(g,[256,256,4],[4,0,1])}function M(C){for(var S=C.length,g=new Array(S),P=0;P0){var H=this.triShader;H.bind(),H.uniforms=V,this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(C){C=C||{};for(var S=this.gl,g=C.model||m,P=C.view||m,E=C.projection||m,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],q=0;q<3;++q)z[0][q]=Math.max(z[0][q],this.clipBounds[0][q]),z[1][q]=Math.min(z[1][q],this.clipBounds[1][q]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(E),this._resolution=[S.drawingBufferWidth,S.drawingBufferHeight];var V={model:g,view:P,projection:E,clipBounds:z,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(C){if(!C||C.id!==this.pickId)return null;var S=C.value[0]+256*C.value[1]+65536*C.value[2],g=this.cells[S],P=this.positions[g[1]].slice(0,3),E={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?E.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(E.intensity=this.intensity[g[1]],E.velocity=this.vectors[g[1]].slice(0,3),E.divergence=this.vectors[g[1]][3],E.index=S),E},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function T(C,S){var g=s(C,S.meshShader.vertex,S.meshShader.fragment,null,S.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function L(C,S){var g=s(C,S.pickShader.vertex,S.pickShader.fragment,null,S.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function x(C,S,g){var P=g.shaders;arguments.length===1&&(S=C,C=S.gl);var E=T(C,P),z=L(C,P),q=c(C,d(new Uint8Array([255,255,255,255]),[1,1,4]));q.generateMipmap(),q.minFilter=C.LINEAR_MIPMAP_LINEAR,q.magFilter=C.LINEAR;var V=l(C),G=l(C),Z=l(C),j=l(C),N=l(C),H=u(C,[{buffer:V,type:C.FLOAT,size:4},{buffer:N,type:C.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Z,type:C.FLOAT,size:4},{buffer:j,type:C.FLOAT,size:2},{buffer:G,type:C.FLOAT,size:4}]),re=new b(C,q,E,z,V,G,N,Z,j,H,g.traceType||"cone");return re.update(S),re}i.exports=x}),614:(function(i,a,o){var s=o(3236),l=s([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -653,7 +653,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(i,a,o){var s=o(737);i.exports=function(u){return s[u]}},9165:function(i,a,o){"use strict";i.exports=b;var s=o(2762),l=o(8116),u=o(3436),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(p,k,M,T){this.gl=p,this.shader=T,this.buffer=k,this.vao=M,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(p){var k=this.gl,M=this.shader.uniforms;this.shader.bind();var T=M.view=p.view||c,L=M.projection=p.projection||c;M.model=p.model||c,M.clipBounds=this.clipBounds,M.opacity=this.opacity;var x=T[12],C=T[13],S=T[14],g=T[15],P=p._ortho||!1,E=P?2:1,z=E*this.pixelRatio*(L[3]*x+L[7]*C+L[11]*S+L[15]*g)/k.drawingBufferHeight;this.vao.bind();for(var q=0;q<3;++q)k.lineWidth(this.lineWidth[q]*this.pixelRatio),M.capSize=this.capSize[q]*z,this.lineCount[q]&&k.drawArrays(k.LINES,this.lineOffset[q],this.lineCount[q]);this.vao.unbind()};function d(p,k){for(var M=0;M<3;++M)p[0][M]=Math.min(p[0][M],k[M]),p[1][M]=Math.max(p[1][M],k[M])}var v=function(){for(var p=new Array(3),k=0;k<3;++k){for(var M=[],T=1;T<=2;++T)for(var L=-1;L<=1;L+=2){var x=(T+k)%3,C=[0,0,0];C[x]=L,M.push(C)}p[k]=M}return p}();function m(p,k,M,T){for(var L=v[T],x=0;x0){var V=P.slice();V[S]+=z[1][S],L.push(P[0],P[1],P[2],q[0],q[1],q[2],q[3],0,0,0,V[0],V[1],V[2],q[0],q[1],q[2],q[3],0,0,0),d(this.bounds,V),C+=2+m(L,V,q,S)}}}this.lineCount[S]=C-this.lineOffset[S]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var k=p.gl,M=s(k),T=l(k,[{buffer:M,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:M,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:M,type:k.FLOAT,size:3,offset:28,stride:40}]),L=u(k);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var x=new f(k,M,T,L);return x.update(p),x}},3436:function(i,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}}),737:(function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}}),5171:(function(i,a,o){var s=o(737);i.exports=function(u){return s[u]}}),9165:(function(i,a,o){"use strict";i.exports=b;var s=o(2762),l=o(8116),u=o(3436),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(p,k,M,T){this.gl=p,this.shader=T,this.buffer=k,this.vao=M,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(p){var k=this.gl,M=this.shader.uniforms;this.shader.bind();var T=M.view=p.view||c,L=M.projection=p.projection||c;M.model=p.model||c,M.clipBounds=this.clipBounds,M.opacity=this.opacity;var x=T[12],C=T[13],S=T[14],g=T[15],P=p._ortho||!1,E=P?2:1,z=E*this.pixelRatio*(L[3]*x+L[7]*C+L[11]*S+L[15]*g)/k.drawingBufferHeight;this.vao.bind();for(var q=0;q<3;++q)k.lineWidth(this.lineWidth[q]*this.pixelRatio),M.capSize=this.capSize[q]*z,this.lineCount[q]&&k.drawArrays(k.LINES,this.lineOffset[q],this.lineCount[q]);this.vao.unbind()};function d(p,k){for(var M=0;M<3;++M)p[0][M]=Math.min(p[0][M],k[M]),p[1][M]=Math.max(p[1][M],k[M])}var v=(function(){for(var p=new Array(3),k=0;k<3;++k){for(var M=[],T=1;T<=2;++T)for(var L=-1;L<=1;L+=2){var x=(T+k)%3,C=[0,0,0];C[x]=L,M.push(C)}p[k]=M}return p})();function m(p,k,M,T){for(var L=v[T],x=0;x0){var V=P.slice();V[S]+=z[1][S],L.push(P[0],P[1],P[2],q[0],q[1],q[2],q[3],0,0,0,V[0],V[1],V[2],q[0],q[1],q[2],q[3],0,0,0),d(this.bounds,V),C+=2+m(L,V,q,S)}}}this.lineCount[S]=C-this.lineOffset[S]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var k=p.gl,M=s(k),T=l(k,[{buffer:M,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:M,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:M,type:k.FLOAT,size:3,offset:28,stride:40}]),L=u(k);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var x=new f(k,M,T,L);return x.update(p),x}}),3436:(function(i,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -704,13 +704,13 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(i,a,o){"use strict";var s=o(7766);i.exports=C;var l=null,u,c,f,h;function d(S){var g=S.getParameter(S.FRAMEBUFFER_BINDING),P=S.getParameter(S.RENDERBUFFER_BINDING),E=S.getParameter(S.TEXTURE_BINDING_2D);return[g,P,E]}function v(S,g){S.bindFramebuffer(S.FRAMEBUFFER,g[0]),S.bindRenderbuffer(S.RENDERBUFFER,g[1]),S.bindTexture(S.TEXTURE_2D,g[2])}function m(S,g){var P=S.getParameter(g.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(P+1);for(var E=0;E<=P;++E){for(var z=new Array(P),q=0;q1&&G.drawBuffersWEBGL(l[V]);var ie=P.getExtension("WEBGL_depth_texture");ie?Z?S.depth=p(P,z,q,ie.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):j&&(S.depth=p(P,z,q,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):j&&Z?S._depth_rb=k(P,z,q,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):j?S._depth_rb=k(P,z,q,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):Z&&(S._depth_rb=k(P,z,q,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var ae=P.checkFramebufferStatus(P.FRAMEBUFFER);if(ae!==P.FRAMEBUFFER_COMPLETE){S._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(S.handle),S.handle=null,S.depth&&(S.depth.dispose(),S.depth=null),S._depth_rb&&(P.deleteRenderbuffer(S._depth_rb),S._depth_rb=null);for(var H=0;Hz||P<0||P>z)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");S._shape[0]=g,S._shape[1]=P;for(var q=d(E),V=0;Vq||P<0||P>q)throw new Error("gl-fbo: Parameters are too large for FBO");E=E||{};var V=1;if("color"in E){if(V=Math.max(E.color|0,0),V<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(V>1)if(z){if(V>S.getParameter(z.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+V+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=S.UNSIGNED_BYTE,Z=S.getExtension("OES_texture_float");if(E.float&&V>0){if(!Z)throw new Error("gl-fbo: Context does not support floating point textures");G=S.FLOAT}else E.preferFloat&&V>0&&Z&&(G=S.FLOAT);var j=!0;"depth"in E&&(j=!!E.depth);var N=!1;return"stencil"in E&&(N=!!E.stencil),new T(S,g,P,G,V,j,N,z)}},2992:function(i,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);i.exports=f;function f(h,d,v){"use strict";var m=u(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";v!==void 0&&(b=v===l.FRAGMENT_SHADER?"fragment":"vertex");for(var p=s(`Error compiling %s shader %s: +}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}}),2260:(function(i,a,o){"use strict";var s=o(7766);i.exports=C;var l=null,u,c,f,h;function d(S){var g=S.getParameter(S.FRAMEBUFFER_BINDING),P=S.getParameter(S.RENDERBUFFER_BINDING),E=S.getParameter(S.TEXTURE_BINDING_2D);return[g,P,E]}function v(S,g){S.bindFramebuffer(S.FRAMEBUFFER,g[0]),S.bindRenderbuffer(S.RENDERBUFFER,g[1]),S.bindTexture(S.TEXTURE_2D,g[2])}function m(S,g){var P=S.getParameter(g.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(P+1);for(var E=0;E<=P;++E){for(var z=new Array(P),q=0;q1&&G.drawBuffersWEBGL(l[V]);var re=P.getExtension("WEBGL_depth_texture");re?Z?S.depth=p(P,z,q,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):j&&(S.depth=p(P,z,q,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):j&&Z?S._depth_rb=k(P,z,q,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):j?S._depth_rb=k(P,z,q,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):Z&&(S._depth_rb=k(P,z,q,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var ae=P.checkFramebufferStatus(P.FRAMEBUFFER);if(ae!==P.FRAMEBUFFER_COMPLETE){S._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(S.handle),S.handle=null,S.depth&&(S.depth.dispose(),S.depth=null),S._depth_rb&&(P.deleteRenderbuffer(S._depth_rb),S._depth_rb=null);for(var H=0;Hz||P<0||P>z)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");S._shape[0]=g,S._shape[1]=P;for(var q=d(E),V=0;Vq||P<0||P>q)throw new Error("gl-fbo: Parameters are too large for FBO");E=E||{};var V=1;if("color"in E){if(V=Math.max(E.color|0,0),V<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(V>1)if(z){if(V>S.getParameter(z.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+V+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=S.UNSIGNED_BYTE,Z=S.getExtension("OES_texture_float");if(E.float&&V>0){if(!Z)throw new Error("gl-fbo: Context does not support floating point textures");G=S.FLOAT}else E.preferFloat&&V>0&&Z&&(G=S.FLOAT);var j=!0;"depth"in E&&(j=!!E.depth);var N=!1;return"stencil"in E&&(N=!!E.stencil),new T(S,g,P,G,V,j,N,z)}}),2992:(function(i,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);i.exports=f;function f(h,d,v){"use strict";var m=u(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";v!==void 0&&(b=v===l.FRAGMENT_SHADER?"fragment":"vertex");for(var p=s(`Error compiling %s shader %s: `,b,m),k=s("%s%s",p,h),M=h.split(` `),T={},L=0;L0){for(var ge=0;ge<24;++ge)q.push(q[q.length-12]);j+=2,_e=!0}continue e}N[0][E]=Math.min(N[0][E],Ee[E],Ce[E]),N[1][E]=Math.max(N[1][E],Ee[E],Ce[E])}var re,Se;Array.isArray(ie[0])?(re=ie.length>P-1?ie[P-1]:ie.length>0?ie[ie.length-1]:[0,0,0,1],Se=ie.length>P?ie[P]:ie.length>0?ie[ie.length-1]:[0,0,0,1]):re=Se=ie,re.length===3&&(re=[re[0],re[1],re[2],1]),Se.length===3&&(Se=[Se[0],Se[1],Se[2],1]),!this.hasAlpha&&re[3]<1&&(this.hasAlpha=!0);var ke;Array.isArray(ae)?ke=ae.length>P-1?ae[P-1]:ae.length>0?ae[ae.length-1]:[0,0,0,1]:ke=ae;var be=Z;if(Z+=M(Ee,Ce),_e){for(E=0;E<2;++E)q.push(Ee[0],Ee[1],Ee[2],Ce[0],Ce[1],Ce[2],be,ke,re[0],re[1],re[2],re[3]);j+=2,_e=!1}q.push(Ee[0],Ee[1],Ee[2],Ce[0],Ce[1],Ce[2],be,ke,re[0],re[1],re[2],re[3],Ee[0],Ee[1],Ee[2],Ce[0],Ce[1],Ce[2],be,-ke,re[0],re[1],re[2],re[3],Ce[0],Ce[1],Ce[2],Ee[0],Ee[1],Ee[2],Z,-ke,Se[0],Se[1],Se[2],Se[3],Ce[0],Ce[1],Ce[2],Ee[0],Ee[1],Ee[2],Z,ke,Se[0],Se[1],Se[2],Se[3]),j+=4}}if(this.buffer.update(q),V.push(Z),G.push(H[H.length-1].slice()),this.bounds=N,this.vertexCount=j,this.points=G,this.arcLength=V,"dashes"in g){var Be=g.dashes,Le=Be.slice();for(Le.unshift(0),P=1;P1.0001)return null;E+=P[L]}return Math.abs(E-1)>.001?null:[x,h(v,P),P]}},840:function(i,a,o){var s=o(3236),l=s([`precision highp float; +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return l(d,u,c,null,h)},a.createPickShader=function(d){return l(d,u,f,null,h)}}),5714:(function(i,a,o){"use strict";i.exports=S;var s=o(2762),l=o(8116),u=o(7766),c=new Uint8Array(4),f=new Float32Array(c.buffer);function h(g,P,E,z){return c[0]=z,c[1]=E,c[2]=P,c[3]=g,f[0]}var d=o(2478),v=o(9618),m=o(7319),b=m.createShader,p=m.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function M(g,P){for(var E=0,z=0;z<3;++z){var q=g[z]-P[z];E+=q*q}return Math.sqrt(E)}function T(g){for(var P=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)P[0][E]=Math.max(g[0][E],P[0][E]),P[1][E]=Math.min(g[1][E],P[1][E]);return P}function L(g,P,E,z){this.arcLength=g,this.position=P,this.index=E,this.dataCoordinate=z}function x(g,P,E,z,q,V){this.gl=g,this.shader=P,this.pickShader=E,this.buffer=z,this.vao=q,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=V,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var C=x.prototype;C.isTransparent=function(){return this.hasAlpha},C.isOpaque=function(){return!this.hasAlpha},C.pickSlots=1,C.setPickBase=function(g){this.pickId=g},C.drawTransparent=C.draw=function(g){if(this.vertexCount){var P=this.gl,E=this.shader,z=this.vao;E.bind(),E.uniforms={model:g.model||k,view:g.view||k,projection:g.projection||k,clipBounds:T(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(P.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},C.drawPick=function(g){if(this.vertexCount){var P=this.gl,E=this.pickShader,z=this.vao;E.bind(),E.uniforms={model:g.model||k,view:g.view||k,projection:g.projection||k,pickId:this.pickId,clipBounds:T(this.clipBounds),screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(P.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},C.update=function(g){var P,E;this.dirty=!0;var z=!!g.connectGaps;"dashScale"in g&&(this.dashScale=g.dashScale),this.hasAlpha=!1,"opacity"in g&&(this.opacity=+g.opacity,this.opacity<1&&(this.hasAlpha=!0));var q=[],V=[],G=[],Z=0,j=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],H=g.position||g.positions;if(H){var re=g.color||g.colors||[0,0,0,1],ae=g.lineWidth||1,_e=!1;e:for(P=1;P0){for(var ge=0;ge<24;++ge)q.push(q[q.length-12]);j+=2,_e=!0}continue e}N[0][E]=Math.min(N[0][E],Ee[E],Ce[E]),N[1][E]=Math.max(N[1][E],Ee[E],Ce[E])}var ie,Se;Array.isArray(re[0])?(ie=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],Se=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):ie=Se=re,ie.length===3&&(ie=[ie[0],ie[1],ie[2],1]),Se.length===3&&(Se=[Se[0],Se[1],Se[2],1]),!this.hasAlpha&&ie[3]<1&&(this.hasAlpha=!0);var ke;Array.isArray(ae)?ke=ae.length>P-1?ae[P-1]:ae.length>0?ae[ae.length-1]:[0,0,0,1]:ke=ae;var be=Z;if(Z+=M(Ee,Ce),_e){for(E=0;E<2;++E)q.push(Ee[0],Ee[1],Ee[2],Ce[0],Ce[1],Ce[2],be,ke,ie[0],ie[1],ie[2],ie[3]);j+=2,_e=!1}q.push(Ee[0],Ee[1],Ee[2],Ce[0],Ce[1],Ce[2],be,ke,ie[0],ie[1],ie[2],ie[3],Ee[0],Ee[1],Ee[2],Ce[0],Ce[1],Ce[2],be,-ke,ie[0],ie[1],ie[2],ie[3],Ce[0],Ce[1],Ce[2],Ee[0],Ee[1],Ee[2],Z,-ke,Se[0],Se[1],Se[2],Se[3],Ce[0],Ce[1],Ce[2],Ee[0],Ee[1],Ee[2],Z,ke,Se[0],Se[1],Se[2],Se[3]),j+=4}}if(this.buffer.update(q),V.push(Z),G.push(H[H.length-1].slice()),this.bounds=N,this.vertexCount=j,this.points=G,this.arcLength=V,"dashes"in g){var Be=g.dashes,Le=Be.slice();for(Le.unshift(0),P=1;P1.0001)return null;E+=P[L]}return Math.abs(E-1)>.001?null:[x,h(v,P),P]}}),840:(function(i,a,o){var s=o(3236),l=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1236,7 +1236,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:v,fragment:m,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:m,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:p,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),d=o(8406),v=o(6760),m=o(7608),b=o(9618),p=o(6729),k=o(7765),M=o(1888),T=o(840),L=o(7626),x=T.meshShader,C=T.wireShader,S=T.pointShader,g=T.pickShader,P=T.pointPickShader,E=T.contourShader,z=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function q(ge,re,Se,ke,be,Be,Le,me,Pe,ce,He,lt,mt,Ht,at,ct,ar,Vt,rr,tt,je,Ue,Ae,rt,St,Tt,dt){this.gl=ge,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=re,this.dirty=!0,this.triShader=Se,this.lineShader=ke,this.pointShader=be,this.pickShader=Be,this.pointPickShader=Le,this.contourShader=me,this.trianglePositions=Pe,this.triangleColors=He,this.triangleNormals=mt,this.triangleUVs=lt,this.triangleIds=ce,this.triangleVAO=Ht,this.triangleCount=0,this.lineWidth=1,this.edgePositions=at,this.edgeColors=ar,this.edgeUVs=Vt,this.edgeIds=ct,this.edgeVAO=rr,this.edgeCount=0,this.pointPositions=tt,this.pointColors=Ue,this.pointUVs=Ae,this.pointSizes=rt,this.pointIds=je,this.pointVAO=St,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Tt,this.contourVAO=dt,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=z,this._view=z,this._projection=z,this._resolution=[1,1]}var V=q.prototype;V.isOpaque=function(){return!this.hasAlpha},V.isTransparent=function(){return this.hasAlpha},V.pickSlots=1,V.setPickBase=function(ge){this.pickId=ge};function G(ge,re){if(!re||!re.length)return 1;for(var Se=0;Sege&&Se>0){var ke=(re[Se][0]-ge)/(re[Se][0]-re[Se-1][0]);return re[Se][1]*(1-ke)+ke*re[Se-1][1]}}return 1}function Z(ge,re){for(var Se=p({colormap:ge,nshades:256,format:"rgba"}),ke=new Uint8Array(256*4),be=0;be<256;++be){for(var Be=Se[be],Le=0;Le<3;++Le)ke[4*be+Le]=Be[Le];re?ke[4*be+3]=255*G(be/255,re):ke[4*be+3]=255*Be[3]}return b(ke,[256,256,4],[4,0,1])}function j(ge){for(var re=ge.length,Se=new Array(re),ke=0;ke0){var mt=this.triShader;mt.bind(),mt.uniforms=me,this.triangleVAO.bind(),re.drawArrays(re.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var mt=this.lineShader;mt.bind(),mt.uniforms=me,this.edgeVAO.bind(),re.lineWidth(this.lineWidth*this.pixelRatio),re.drawArrays(re.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var mt=this.pointShader;mt.bind(),mt.uniforms=me,this.pointVAO.bind(),re.drawArrays(re.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var mt=this.contourShader;mt.bind(),mt.uniforms=me,this.contourVAO.bind(),re.drawArrays(re.LINES,0,this.contourCount),this.contourVAO.unbind()}},V.drawPick=function(ge){ge=ge||{};for(var re=this.gl,Se=ge.model||z,ke=ge.view||z,be=ge.projection||z,Be=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Le=0;Le<3;++Le)Be[0][Le]=Math.max(Be[0][Le],this.clipBounds[0][Le]),Be[1][Le]=Math.min(Be[1][Le],this.clipBounds[1][Le]);this._model=[].slice.call(Se),this._view=[].slice.call(ke),this._projection=[].slice.call(be),this._resolution=[re.drawingBufferWidth,re.drawingBufferHeight];var me={model:Se,view:ke,projection:be,clipBounds:Be,pickId:this.pickId/255},Pe=this.pickShader;if(Pe.bind(),Pe.uniforms=me,this.triangleCount>0&&(this.triangleVAO.bind(),re.drawArrays(re.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),re.lineWidth(this.lineWidth*this.pixelRatio),re.drawArrays(re.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Pe=this.pointPickShader;Pe.bind(),Pe.uniforms=me,this.pointVAO.bind(),re.drawArrays(re.POINTS,0,this.pointCount),this.pointVAO.unbind()}},V.pick=function(ge){if(!ge||ge.id!==this.pickId)return null;for(var re=ge.value[0]+256*ge.value[1]+65536*ge.value[2],Se=this.cells[re],ke=this.positions,be=new Array(Se.length),Be=0;BeMath.abs(g))p.rotate(z,0,0,-S*P*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var q=-x.zoomSpeed*E*g/window.innerHeight*(z-p.lastT())/20;p.pan(z,0,0,M*(Math.exp(q)-1))}}},!0)},x.enableMouseListeners(),x}},799:function(i,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; +`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:v,fragment:m,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:m,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:p,fragment:k,attributes:[{name:"position",type:"vec3"}]}}),7201:(function(i,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),d=o(8406),v=o(6760),m=o(7608),b=o(9618),p=o(6729),k=o(7765),M=o(1888),T=o(840),L=o(7626),x=T.meshShader,C=T.wireShader,S=T.pointShader,g=T.pickShader,P=T.pointPickShader,E=T.contourShader,z=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function q(ge,ie,Se,ke,be,Be,Le,me,Pe,ce,He,lt,mt,Ht,at,ct,ar,Vt,rr,tt,je,Ue,Ae,rt,St,Tt,dt){this.gl=ge,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=ie,this.dirty=!0,this.triShader=Se,this.lineShader=ke,this.pointShader=be,this.pickShader=Be,this.pointPickShader=Le,this.contourShader=me,this.trianglePositions=Pe,this.triangleColors=He,this.triangleNormals=mt,this.triangleUVs=lt,this.triangleIds=ce,this.triangleVAO=Ht,this.triangleCount=0,this.lineWidth=1,this.edgePositions=at,this.edgeColors=ar,this.edgeUVs=Vt,this.edgeIds=ct,this.edgeVAO=rr,this.edgeCount=0,this.pointPositions=tt,this.pointColors=Ue,this.pointUVs=Ae,this.pointSizes=rt,this.pointIds=je,this.pointVAO=St,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Tt,this.contourVAO=dt,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=z,this._view=z,this._projection=z,this._resolution=[1,1]}var V=q.prototype;V.isOpaque=function(){return!this.hasAlpha},V.isTransparent=function(){return this.hasAlpha},V.pickSlots=1,V.setPickBase=function(ge){this.pickId=ge};function G(ge,ie){if(!ie||!ie.length)return 1;for(var Se=0;Sege&&Se>0){var ke=(ie[Se][0]-ge)/(ie[Se][0]-ie[Se-1][0]);return ie[Se][1]*(1-ke)+ke*ie[Se-1][1]}}return 1}function Z(ge,ie){for(var Se=p({colormap:ge,nshades:256,format:"rgba"}),ke=new Uint8Array(256*4),be=0;be<256;++be){for(var Be=Se[be],Le=0;Le<3;++Le)ke[4*be+Le]=Be[Le];ie?ke[4*be+3]=255*G(be/255,ie):ke[4*be+3]=255*Be[3]}return b(ke,[256,256,4],[4,0,1])}function j(ge){for(var ie=ge.length,Se=new Array(ie),ke=0;ke0){var mt=this.triShader;mt.bind(),mt.uniforms=me,this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var mt=this.lineShader;mt.bind(),mt.uniforms=me,this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var mt=this.pointShader;mt.bind(),mt.uniforms=me,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var mt=this.contourShader;mt.bind(),mt.uniforms=me,this.contourVAO.bind(),ie.drawArrays(ie.LINES,0,this.contourCount),this.contourVAO.unbind()}},V.drawPick=function(ge){ge=ge||{};for(var ie=this.gl,Se=ge.model||z,ke=ge.view||z,be=ge.projection||z,Be=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Le=0;Le<3;++Le)Be[0][Le]=Math.max(Be[0][Le],this.clipBounds[0][Le]),Be[1][Le]=Math.min(Be[1][Le],this.clipBounds[1][Le]);this._model=[].slice.call(Se),this._view=[].slice.call(ke),this._projection=[].slice.call(be),this._resolution=[ie.drawingBufferWidth,ie.drawingBufferHeight];var me={model:Se,view:ke,projection:be,clipBounds:Be,pickId:this.pickId/255},Pe=this.pickShader;if(Pe.bind(),Pe.uniforms=me,this.triangleCount>0&&(this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Pe=this.pointPickShader;Pe.bind(),Pe.uniforms=me,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}},V.pick=function(ge){if(!ge||ge.id!==this.pickId)return null;for(var ie=ge.value[0]+256*ge.value[1]+65536*ge.value[2],Se=this.cells[ie],ke=this.positions,be=new Array(Se.length),Be=0;BeMath.abs(g))p.rotate(z,0,0,-S*P*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var q=-x.zoomSpeed*E*g/window.innerHeight*(z-p.lastT())/20;p.pan(z,0,0,M*(Math.exp(q)-1))}}},!0)},x.enableMouseListeners(),x}}),799:(function(i,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1252,7 +1252,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec2"}])}},4100:function(i,a,o){"use strict";var s=o(4437),l=o(3837),u=o(5445),c=o(4449),f=o(3589),h=o(2260),d=o(7169),v=o(351),m=o(4772),b=o(4040),p=o(799),k=o(9216)({tablet:!0,featureDetect:!0});i.exports={createScene:C,createCamera:s};function M(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function T(g,P){var E=null;try{E=g.getContext("webgl",P),E||(E=g.getContext("experimental-webgl",P))}catch(z){return null}return E}function L(g){var P=Math.round(Math.log(Math.abs(g))/Math.log(10));if(P<0){var E=Math.round(Math.pow(10,-P));return Math.ceil(g*E)/E}else if(P>0){var E=Math.round(Math.pow(10,P));return Math.ceil(g/E)*E}return Math.ceil(g)}function x(g){return typeof g=="boolean"?g:!0}function C(g){g=g||{},g.camera=g.camera||{};var P=g.canvas;if(!P)if(P=document.createElement("canvas"),g.container){var E=g.container;E.appendChild(P)}else document.body.appendChild(P);var z=g.gl;if(z||(g.glOptions&&(k=!!g.glOptions.preserveDrawingBuffer),z=T(P,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!z)throw new Error("webgl not supported");var q=g.bounds||[[-10,-10,-10],[10,10,10]],V=new M,G=h(z,z.drawingBufferWidth,z.drawingBufferHeight,{preferFloat:!k}),Z=p(z),j=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,N={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:j},H=g.axes||{},ie=l(z,H);ie.enable=!H.disable;var ae=g.spikes||{},_e=c(z,ae),Ee=[],Ce=[],ge=[],re=[],Se=!0,Le=!0,ke=new Array(16),be=new Array(16),Be={view:null,projection:ke,model:be,_ortho:!1},Le=!0,me=[z.drawingBufferWidth,z.drawingBufferHeight],Pe=g.cameraObject||s(P,N),ce={gl:z,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:P,selection:V,camera:Pe,axes:ie,axesPixels:null,spikes:_e,bounds:q,objects:Ee,shape:me,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:x(g.autoResize),autoBounds:x(g.autoBounds),autoScale:!!g.autoScale,autoCenter:x(g.autoCenter),clipToBounds:x(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:Be,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(tt){this.aspect[0]=tt.x,this.aspect[1]=tt.y,this.aspect[2]=tt.z,Le=!0},setBounds:function(tt,je){this.bounds[0][tt]=je.min,this.bounds[1][tt]=je.max},setClearColor:function(tt){this.clearColor=tt},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},He=[z.drawingBufferWidth/ce.pixelRatio|0,z.drawingBufferHeight/ce.pixelRatio|0];function lt(){if(!ce._stopped&&ce.autoResize){var tt=P.parentNode,je=1,Ue=1;tt&&tt!==document.body?(je=tt.clientWidth,Ue=tt.clientHeight):(je=window.innerWidth,Ue=window.innerHeight);var Ae=Math.ceil(je*ce.pixelRatio)|0,rt=Math.ceil(Ue*ce.pixelRatio)|0;if(Ae!==P.width||rt!==P.height){P.width=Ae,P.height=rt;var St=P.style;St.position=St.position||"absolute",St.left="0px",St.top="0px",St.width=je+"px",St.height=Ue+"px",Se=!0}}}ce.autoResize&<(),window.addEventListener("resize",lt);function mt(){for(var tt=Ee.length,je=re.length,Ue=0;Ue0&&ge[je-1]===0;)ge.pop(),re.pop().dispose()}ce.update=function(tt){ce._stopped||(tt=tt||{},Se=!0,Le=!0)},ce.add=function(tt){ce._stopped||(tt.axes=ie,Ee.push(tt),Ce.push(-1),Se=!0,Le=!0,mt())},ce.remove=function(tt){if(!ce._stopped){var je=Ee.indexOf(tt);je<0||(Ee.splice(je,1),Ce.pop(),Se=!0,Le=!0,mt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",lt),P.removeEventListener("webglcontextlost",Ht),ce.mouseListener.enabled=!1,!ce.contextLost)){ie.dispose(),_e.dispose();for(var tt=0;ttV.distance)continue;for(var pt=0;pt1e-6?(k=Math.acos(M),T=Math.sin(k),L=Math.sin((1-u)*k)/T,x=Math.sin(u*k)/T):(L=1-u,x=u),o[0]=L*c+x*v,o[1]=L*f+x*m,o[2]=L*h+x*b,o[3]=L*d+x*p,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=u;var l={};function u(c,f,h){var d=[f.style,f.weight,f.variant,f.family].join("_"),v=l[d];if(v||(v=l[d]={}),c in v)return v[c];var m={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f.family,fontStyle:f.style,fontWeight:f.weight,fontVariant:f.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};m.triangles=!0;var b=s(c,m);m.triangles=!1;var p=s(c,m),k,M;if(h&&h!==1){for(k=0;k0){var E=Math.round(Math.pow(10,P));return Math.ceil(g/E)*E}return Math.ceil(g)}function x(g){return typeof g=="boolean"?g:!0}function C(g){g=g||{},g.camera=g.camera||{};var P=g.canvas;if(!P)if(P=document.createElement("canvas"),g.container){var E=g.container;E.appendChild(P)}else document.body.appendChild(P);var z=g.gl;if(z||(g.glOptions&&(k=!!g.glOptions.preserveDrawingBuffer),z=T(P,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!z)throw new Error("webgl not supported");var q=g.bounds||[[-10,-10,-10],[10,10,10]],V=new M,G=h(z,z.drawingBufferWidth,z.drawingBufferHeight,{preferFloat:!k}),Z=p(z),j=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,N={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:j},H=g.axes||{},re=l(z,H);re.enable=!H.disable;var ae=g.spikes||{},_e=c(z,ae),Ee=[],Ce=[],ge=[],ie=[],Se=!0,Le=!0,ke=new Array(16),be=new Array(16),Be={view:null,projection:ke,model:be,_ortho:!1},Le=!0,me=[z.drawingBufferWidth,z.drawingBufferHeight],Pe=g.cameraObject||s(P,N),ce={gl:z,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:P,selection:V,camera:Pe,axes:re,axesPixels:null,spikes:_e,bounds:q,objects:Ee,shape:me,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:x(g.autoResize),autoBounds:x(g.autoBounds),autoScale:!!g.autoScale,autoCenter:x(g.autoCenter),clipToBounds:x(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:Be,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(tt){this.aspect[0]=tt.x,this.aspect[1]=tt.y,this.aspect[2]=tt.z,Le=!0},setBounds:function(tt,je){this.bounds[0][tt]=je.min,this.bounds[1][tt]=je.max},setClearColor:function(tt){this.clearColor=tt},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},He=[z.drawingBufferWidth/ce.pixelRatio|0,z.drawingBufferHeight/ce.pixelRatio|0];function lt(){if(!ce._stopped&&ce.autoResize){var tt=P.parentNode,je=1,Ue=1;tt&&tt!==document.body?(je=tt.clientWidth,Ue=tt.clientHeight):(je=window.innerWidth,Ue=window.innerHeight);var Ae=Math.ceil(je*ce.pixelRatio)|0,rt=Math.ceil(Ue*ce.pixelRatio)|0;if(Ae!==P.width||rt!==P.height){P.width=Ae,P.height=rt;var St=P.style;St.position=St.position||"absolute",St.left="0px",St.top="0px",St.width=je+"px",St.height=Ue+"px",Se=!0}}}ce.autoResize&<(),window.addEventListener("resize",lt);function mt(){for(var tt=Ee.length,je=ie.length,Ue=0;Ue0&&ge[je-1]===0;)ge.pop(),ie.pop().dispose()}ce.update=function(tt){ce._stopped||(tt=tt||{},Se=!0,Le=!0)},ce.add=function(tt){ce._stopped||(tt.axes=re,Ee.push(tt),Ce.push(-1),Se=!0,Le=!0,mt())},ce.remove=function(tt){if(!ce._stopped){var je=Ee.indexOf(tt);je<0||(Ee.splice(je,1),Ce.pop(),Se=!0,Le=!0,mt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",lt),P.removeEventListener("webglcontextlost",Ht),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),_e.dispose();for(var tt=0;ttV.distance)continue;for(var pt=0;pt1e-6?(k=Math.acos(M),T=Math.sin(k),L=Math.sin((1-u)*k)/T,x=Math.sin(u*k)/T):(L=1-u,x=u),o[0]=L*c+x*v,o[1]=L*f+x*m,o[2]=L*h+x*b,o[3]=L*d+x*p,o}}),5964:(function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}}),9366:(function(i,a,o){"use strict";var s=o(4359);i.exports=u;var l={};function u(c,f,h){var d=[f.style,f.weight,f.variant,f.family].join("_"),v=l[d];if(v||(v=l[d]={}),c in v)return v[c];var m={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f.family,fontStyle:f.style,fontWeight:f.weight,fontVariant:f.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};m.triangles=!0;var b=s(c,m);m.triangles=!1;var p=s(c,m),k,M;if(h&&h!==1){for(k=0;k1?1:be}function S(be,Be,Le,me,Pe,ce,He,lt,mt,Ht,at,ct){this.gl=be,this.pixelRatio=1,this.shader=Be,this.orthoShader=Le,this.projectShader=me,this.pointBuffer=Pe,this.colorBuffer=ce,this.glyphBuffer=He,this.idBuffer=lt,this.vao=mt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Ht,this.pickOrthoShader=at,this.pickProjectShader=ct,this.points=[],this._selectResult=new x(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var g=S.prototype;g.pickSlots=1,g.setPickBase=function(be){this.pickId=be},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var be=0;be<3;++be)if(this.axesProject[be]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var be=0;be<3;++be)if(this.axesProject[be]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],E=[0,0,0],z=[0,0,0],q=[0,0,0,1],V=[0,0,0,1],G=m.slice(),Z=[0,0,0],j=[[0,0,0],[0,0,0]];function N(be){return be[0]=be[1]=be[2]=0,be}function H(be,Be){return be[0]=Be[0],be[1]=Be[1],be[2]=Be[2],be[3]=1,be}function ie(be,Be,Le,me){return be[0]=Be[0],be[1]=Be[1],be[2]=Be[2],be[Le]=me,be}function ae(be){for(var Be=j,Le=0;Le<2;++Le)for(var me=0;me<3;++me)Be[Le][me]=Math.max(Math.min(be[Le][me],1e8),-1e8);return Be}function _e(be,Be,Le,me){var Pe=Be.axesProject,ce=Be.gl,He=be.uniforms,lt=Le.model||m,mt=Le.view||m,Ht=Le.projection||m,at=Be.axesBounds,ct=ae(Be.clipBounds),ar;Be.axes&&Be.axes.lastCubeProps?ar=Be.axes.lastCubeProps.axis:ar=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,be.bind(),He.view=mt,He.projection=Ht,He.screenSize=P,He.highlightId=Be.highlightId,He.highlightScale=Be.highlightScale,He.clipBounds=ct,He.pickGroup=Be.pickId/255,He.pixelRatio=me;for(var Vt=0;Vt<3;++Vt)if(Pe[Vt]){He.scale=Be.projectScale[Vt],He.opacity=Be.projectOpacity[Vt];for(var rr=G,tt=0;tt<16;++tt)rr[tt]=0;for(var tt=0;tt<4;++tt)rr[5*tt]=1;rr[5*Vt]=0,ar[Vt]<0?rr[12+Vt]=at[0][Vt]:rr[12+Vt]=at[1][Vt],f(rr,lt,rr),He.model=rr;var je=(Vt+1)%3,Ue=(Vt+2)%3,Ae=N(E),rt=N(z);Ae[je]=1,rt[Ue]=1;var St=L(Ht,mt,lt,H(q,Ae)),Tt=L(Ht,mt,lt,H(V,rt));if(Math.abs(St[1])>Math.abs(Tt[1])){var dt=St;St=Tt,Tt=dt,dt=Ae,Ae=rt,rt=dt;var Et=je;je=Ue,Ue=Et}St[0]<0&&(Ae[je]=-1),Tt[1]>0&&(rt[Ue]=-1);for(var pt=0,jt=0,tt=0;tt<4;++tt)pt+=Math.pow(lt[4*je+tt],2),jt+=Math.pow(lt[4*Ue+tt],2);Ae[je]/=Math.sqrt(pt),rt[Ue]/=Math.sqrt(jt),He.axes[0]=Ae,He.axes[1]=rt,He.fragClipBounds[0]=ie(Z,ct[0],Vt,-1e8),He.fragClipBounds[1]=ie(Z,ct[1],Vt,1e8),Be.vao.bind(),Be.vao.draw(ce.TRIANGLES,Be.vertexCount),Be.lineWidth>0&&(ce.lineWidth(Be.lineWidth*me),Be.vao.draw(ce.LINES,Be.lineVertexCount,Be.vertexCount)),Be.vao.unbind()}}var Ee=[-1e8,-1e8,-1e8],Ce=[1e8,1e8,1e8],ge=[Ee,Ce];function re(be,Be,Le,me,Pe,ce,He){var lt=Le.gl;if((ce===Le.projectHasAlpha||He)&&_e(Be,Le,me,Pe),ce===Le.hasAlpha||He){be.bind();var mt=be.uniforms;mt.model=me.model||m,mt.view=me.view||m,mt.projection=me.projection||m,P[0]=2/lt.drawingBufferWidth,P[1]=2/lt.drawingBufferHeight,mt.screenSize=P,mt.highlightId=Le.highlightId,mt.highlightScale=Le.highlightScale,mt.fragClipBounds=ge,mt.clipBounds=Le.axes.bounds,mt.opacity=Le.opacity,mt.pickGroup=Le.pickId/255,mt.pixelRatio=Pe,Le.vao.bind(),Le.vao.draw(lt.TRIANGLES,Le.vertexCount),Le.lineWidth>0&&(lt.lineWidth(Le.lineWidth*Pe),Le.vao.draw(lt.LINES,Le.lineVertexCount,Le.vertexCount)),Le.vao.unbind()}}g.draw=function(be){var Be=this.useOrtho?this.orthoShader:this.shader;re(Be,this.projectShader,this,be,this.pixelRatio,!1,!1)},g.drawTransparent=function(be){var Be=this.useOrtho?this.orthoShader:this.shader;re(Be,this.projectShader,this,be,this.pixelRatio,!0,!1)},g.drawPick=function(be){var Be=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;re(Be,this.pickProjectShader,this,be,1,!0,!0)},g.pick=function(be){if(!be||be.id!==this.pickId)return null;var Be=be.value[2]+(be.value[1]<<8)+(be.value[0]<<16);if(Be>=this.pointCount||Be<0)return null;var Le=this.points[Be],me=this._selectResult;me.index=Be;for(var Pe=0;Pe<3;++Pe)me.position[Pe]=me.dataCoordinate[Pe]=Le[Pe];return me},g.highlight=function(be){if(!be)this.highlightId=[1,1,1,1];else{var Be=be.index,Le=Be&255,me=Be>>8&255,Pe=Be>>16&255;this.highlightId=[Le/255,me/255,Pe/255,0]}};function Se(be,Be,Le,me){var Pe;M(be)?Be0){var jr=0,gt=Ue,Ge=[0,0,0,1],Je=[0,0,0,1],We=M(ar)&&M(ar[0]),et=M(tt)&&M(tt[0]);e:for(var me=0;me0?1-jt[0][0]:Ir<0?1+jt[1][0]:1,Yr*=Yr>0?1-jt[0][1]:Yr<0?1+jt[1][1]:1;for(var _i=[Ir,Yr],Fn=Et.cells||[],An=Et.positions||[],Tt=0;Ttthis.buffer.length){l.free(this.buffer);for(var M=this.buffer=l.mallocUint8(c(k*p*4)),T=0;TM)for(p=M;pk)for(p=k;p=0){for(var j=Z.type.charAt(Z.type.length-1)|0,N=new Array(j),H=0;H=0;)ie+=1;V[G]=ie}var ae=new Array(M.length);function _e(){x.program=c.program(C,x._vref,x._fref,q,V);for(var Ee=0;Ee=0){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+C);f(v,m,S[0],p,g,k,x)}else if(C.indexOf("mat")>=0){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+C);h(v,m,S,p,g,k,x)}else throw new s("","Unknown data type for attribute "+x+": "+C);break}}return k}},3327:function(i,a,o){"use strict";var s=o(216),l=o(8866);i.exports=f;function u(h){return function(){return h}}function c(h,d){for(var v=new Array(h),m=0;m4)throw new l("","Invalid data type");switch(ie.charAt(0)){case"b":case"i":h["uniform"+ae+"iv"](m[V],G);break;case"v":h["uniform"+ae+"fv"](m[V],G);break;default:throw new l("","Unrecognized data type for vector "+name+": "+ie)}}else if(ie.indexOf("mat")===0&&ie.length===4){if(ae=ie.charCodeAt(ie.length-1)-48,ae<2||ae>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+ie);h["uniformMatrix"+ae+"fv"](m[V],!1,G);break}else throw new l("","Unknown uniform data type for "+name+": "+ie)}}}}}function k(C,S){if(typeof S!="object")return[[C,S]];var g=[];for(var P in S){var E=S[P],z=C;parseInt(P)+""===P?z+="["+P+"]":z+="."+P,typeof E=="object"?g.push.apply(g,k(z,E)):g.push([z,E])}return g}function M(C){switch(C){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var S=C.indexOf("vec");if(0<=S&&S<=1&&C.length===4+S){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return C.charAt(0)==="b"?c(g,!1):c(g,0)}else if(C.indexOf("mat")===0&&C.length===4){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+C);return c(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+C)}}function T(C,S,g){if(typeof g=="object"){var P=L(g);Object.defineProperty(C,S,{get:u(P),set:p(g),enumerable:!0,configurable:!1})}else m[g]?Object.defineProperty(C,S,{get:b(g),set:p(g),enumerable:!0,configurable:!1}):C[S]=M(v[g].type)}function L(C){var S;if(Array.isArray(C)){S=new Array(C.length);for(var g=0;g1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var m=1;m1)for(var k=0;k1?1:be}function S(be,Be,Le,me,Pe,ce,He,lt,mt,Ht,at,ct){this.gl=be,this.pixelRatio=1,this.shader=Be,this.orthoShader=Le,this.projectShader=me,this.pointBuffer=Pe,this.colorBuffer=ce,this.glyphBuffer=He,this.idBuffer=lt,this.vao=mt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Ht,this.pickOrthoShader=at,this.pickProjectShader=ct,this.points=[],this._selectResult=new x(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var g=S.prototype;g.pickSlots=1,g.setPickBase=function(be){this.pickId=be},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var be=0;be<3;++be)if(this.axesProject[be]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var be=0;be<3;++be)if(this.axesProject[be]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],E=[0,0,0],z=[0,0,0],q=[0,0,0,1],V=[0,0,0,1],G=m.slice(),Z=[0,0,0],j=[[0,0,0],[0,0,0]];function N(be){return be[0]=be[1]=be[2]=0,be}function H(be,Be){return be[0]=Be[0],be[1]=Be[1],be[2]=Be[2],be[3]=1,be}function re(be,Be,Le,me){return be[0]=Be[0],be[1]=Be[1],be[2]=Be[2],be[Le]=me,be}function ae(be){for(var Be=j,Le=0;Le<2;++Le)for(var me=0;me<3;++me)Be[Le][me]=Math.max(Math.min(be[Le][me],1e8),-1e8);return Be}function _e(be,Be,Le,me){var Pe=Be.axesProject,ce=Be.gl,He=be.uniforms,lt=Le.model||m,mt=Le.view||m,Ht=Le.projection||m,at=Be.axesBounds,ct=ae(Be.clipBounds),ar;Be.axes&&Be.axes.lastCubeProps?ar=Be.axes.lastCubeProps.axis:ar=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,be.bind(),He.view=mt,He.projection=Ht,He.screenSize=P,He.highlightId=Be.highlightId,He.highlightScale=Be.highlightScale,He.clipBounds=ct,He.pickGroup=Be.pickId/255,He.pixelRatio=me;for(var Vt=0;Vt<3;++Vt)if(Pe[Vt]){He.scale=Be.projectScale[Vt],He.opacity=Be.projectOpacity[Vt];for(var rr=G,tt=0;tt<16;++tt)rr[tt]=0;for(var tt=0;tt<4;++tt)rr[5*tt]=1;rr[5*Vt]=0,ar[Vt]<0?rr[12+Vt]=at[0][Vt]:rr[12+Vt]=at[1][Vt],f(rr,lt,rr),He.model=rr;var je=(Vt+1)%3,Ue=(Vt+2)%3,Ae=N(E),rt=N(z);Ae[je]=1,rt[Ue]=1;var St=L(Ht,mt,lt,H(q,Ae)),Tt=L(Ht,mt,lt,H(V,rt));if(Math.abs(St[1])>Math.abs(Tt[1])){var dt=St;St=Tt,Tt=dt,dt=Ae,Ae=rt,rt=dt;var Et=je;je=Ue,Ue=Et}St[0]<0&&(Ae[je]=-1),Tt[1]>0&&(rt[Ue]=-1);for(var pt=0,jt=0,tt=0;tt<4;++tt)pt+=Math.pow(lt[4*je+tt],2),jt+=Math.pow(lt[4*Ue+tt],2);Ae[je]/=Math.sqrt(pt),rt[Ue]/=Math.sqrt(jt),He.axes[0]=Ae,He.axes[1]=rt,He.fragClipBounds[0]=re(Z,ct[0],Vt,-1e8),He.fragClipBounds[1]=re(Z,ct[1],Vt,1e8),Be.vao.bind(),Be.vao.draw(ce.TRIANGLES,Be.vertexCount),Be.lineWidth>0&&(ce.lineWidth(Be.lineWidth*me),Be.vao.draw(ce.LINES,Be.lineVertexCount,Be.vertexCount)),Be.vao.unbind()}}var Ee=[-1e8,-1e8,-1e8],Ce=[1e8,1e8,1e8],ge=[Ee,Ce];function ie(be,Be,Le,me,Pe,ce,He){var lt=Le.gl;if((ce===Le.projectHasAlpha||He)&&_e(Be,Le,me,Pe),ce===Le.hasAlpha||He){be.bind();var mt=be.uniforms;mt.model=me.model||m,mt.view=me.view||m,mt.projection=me.projection||m,P[0]=2/lt.drawingBufferWidth,P[1]=2/lt.drawingBufferHeight,mt.screenSize=P,mt.highlightId=Le.highlightId,mt.highlightScale=Le.highlightScale,mt.fragClipBounds=ge,mt.clipBounds=Le.axes.bounds,mt.opacity=Le.opacity,mt.pickGroup=Le.pickId/255,mt.pixelRatio=Pe,Le.vao.bind(),Le.vao.draw(lt.TRIANGLES,Le.vertexCount),Le.lineWidth>0&&(lt.lineWidth(Le.lineWidth*Pe),Le.vao.draw(lt.LINES,Le.lineVertexCount,Le.vertexCount)),Le.vao.unbind()}}g.draw=function(be){var Be=this.useOrtho?this.orthoShader:this.shader;ie(Be,this.projectShader,this,be,this.pixelRatio,!1,!1)},g.drawTransparent=function(be){var Be=this.useOrtho?this.orthoShader:this.shader;ie(Be,this.projectShader,this,be,this.pixelRatio,!0,!1)},g.drawPick=function(be){var Be=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;ie(Be,this.pickProjectShader,this,be,1,!0,!0)},g.pick=function(be){if(!be||be.id!==this.pickId)return null;var Be=be.value[2]+(be.value[1]<<8)+(be.value[0]<<16);if(Be>=this.pointCount||Be<0)return null;var Le=this.points[Be],me=this._selectResult;me.index=Be;for(var Pe=0;Pe<3;++Pe)me.position[Pe]=me.dataCoordinate[Pe]=Le[Pe];return me},g.highlight=function(be){if(!be)this.highlightId=[1,1,1,1];else{var Be=be.index,Le=Be&255,me=Be>>8&255,Pe=Be>>16&255;this.highlightId=[Le/255,me/255,Pe/255,0]}};function Se(be,Be,Le,me){var Pe;M(be)?Be0){var jr=0,gt=Ue,Ge=[0,0,0,1],Je=[0,0,0,1],We=M(ar)&&M(ar[0]),et=M(tt)&&M(tt[0]);e:for(var me=0;me0?1-jt[0][0]:Ir<0?1+jt[1][0]:1,Yr*=Yr>0?1-jt[0][1]:Yr<0?1+jt[1][1]:1;for(var _i=[Ir,Yr],Fn=Et.cells||[],An=Et.positions||[],Tt=0;Ttthis.buffer.length){l.free(this.buffer);for(var M=this.buffer=l.mallocUint8(c(k*p*4)),T=0;TM)for(p=M;pk)for(p=k;p=0){for(var j=Z.type.charAt(Z.type.length-1)|0,N=new Array(j),H=0;H=0;)re+=1;V[G]=re}var ae=new Array(M.length);function _e(){x.program=c.program(C,x._vref,x._fref,q,V);for(var Ee=0;Ee=0){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+C);f(v,m,S[0],p,g,k,x)}else if(C.indexOf("mat")>=0){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+C);h(v,m,S,p,g,k,x)}else throw new s("","Unknown data type for attribute "+x+": "+C);break}}return k}}),3327:(function(i,a,o){"use strict";var s=o(216),l=o(8866);i.exports=f;function u(h){return function(){return h}}function c(h,d){for(var v=new Array(h),m=0;m4)throw new l("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+ae+"iv"](m[V],G);break;case"v":h["uniform"+ae+"fv"](m[V],G);break;default:throw new l("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(ae=re.charCodeAt(re.length-1)-48,ae<2||ae>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+ae+"fv"](m[V],!1,G);break}else throw new l("","Unknown uniform data type for "+name+": "+re)}}}}}function k(C,S){if(typeof S!="object")return[[C,S]];var g=[];for(var P in S){var E=S[P],z=C;parseInt(P)+""===P?z+="["+P+"]":z+="."+P,typeof E=="object"?g.push.apply(g,k(z,E)):g.push([z,E])}return g}function M(C){switch(C){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var S=C.indexOf("vec");if(0<=S&&S<=1&&C.length===4+S){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return C.charAt(0)==="b"?c(g,!1):c(g,0)}else if(C.indexOf("mat")===0&&C.length===4){var g=C.charCodeAt(C.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+C);return c(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+C)}}function T(C,S,g){if(typeof g=="object"){var P=L(g);Object.defineProperty(C,S,{get:u(P),set:p(g),enumerable:!0,configurable:!1})}else m[g]?Object.defineProperty(C,S,{get:b(g),set:p(g),enumerable:!0,configurable:!1}):C[S]=M(v[g].type)}function L(C){var S;if(Array.isArray(C)){S=new Array(C.length);for(var g=0;g1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var m=1;m1)for(var k=0;k0)for(var re=0;reL)return C-1}return C},d=function(T,L,x){return Tx?x:T},v=function(T,L,x){var C=L.vectors,S=L.meshgrid,g=T[0],P=T[1],E=T[2],z=S[0].length,q=S[1].length,V=S[2].length,G=h(S[0],g),Z=h(S[1],P),j=h(S[2],E),N=G+1,H=Z+1,ie=j+1;if(G=d(G,0,z-1),N=d(N,0,z-1),Z=d(Z,0,q-1),H=d(H,0,q-1),j=d(j,0,V-1),ie=d(ie,0,V-1),G<0||Z<0||j<0||N>z-1||H>q-1||ie>V-1)return s.create();var ae=S[0][G],_e=S[0][N],Ee=S[1][Z],Ce=S[1][H],ge=S[2][j],re=S[2][ie],Se=(g-ae)/(_e-ae),ke=(P-Ee)/(Ce-Ee),be=(E-ge)/(re-ge);isFinite(Se)||(Se=.5),isFinite(ke)||(ke=.5),isFinite(be)||(be=.5);var Be,Le,me,Pe,ce,He;switch(x.reversedX&&(G=z-1-G,N=z-1-N),x.reversedY&&(Z=q-1-Z,H=q-1-H),x.reversedZ&&(j=V-1-j,ie=V-1-ie),x.filled){case 5:ce=j,He=ie,me=Z*V,Pe=H*V,Be=G*V*q,Le=N*V*q;break;case 4:ce=j,He=ie,Be=G*V,Le=N*V,me=Z*V*z,Pe=H*V*z;break;case 3:me=Z,Pe=H,ce=j*q,He=ie*q,Be=G*q*V,Le=N*q*V;break;case 2:me=Z,Pe=H,Be=G*q,Le=N*q,ce=j*q*z,He=ie*q*z;break;case 1:Be=G,Le=N,ce=j*z,He=ie*z,me=Z*z*V,Pe=H*z*V;break;default:Be=G,Le=N,me=Z*z,Pe=H*z,ce=j*z*q,He=ie*z*q;break}var lt=C[Be+me+ce],mt=C[Be+me+He],Ht=C[Be+Pe+ce],at=C[Be+Pe+He],ct=C[Le+me+ce],ar=C[Le+me+He],Vt=C[Le+Pe+ce],rr=C[Le+Pe+He],tt=s.create(),je=s.create(),Ue=s.create(),Ae=s.create();s.lerp(tt,lt,ct,Se),s.lerp(je,mt,ar,Se),s.lerp(Ue,Ht,Vt,Se),s.lerp(Ae,at,rr,Se);var rt=s.create(),St=s.create();s.lerp(rt,tt,Ue,ke),s.lerp(St,je,Ae,ke);var Tt=s.create();return s.lerp(Tt,rt,St,be),Tt},m=function(T,L){var x=L[0],C=L[1],S=L[2];return T[0]=x<0?-x:x,T[1]=C<0?-C:C,T[2]=S<0?-S:S,T},b=function(T){var L=1/0;T.sort(function(g,P){return g-P});for(var x=T.length,C=1;CN||rrH||ttie)},_e=s.distance(L[0],L[1]),Ee=10*_e/C,Ce=Ee*Ee,ge=1,re=0,Se=x.length;Se>1&&(ge=p(x));for(var ke=0;kere&&(re=lt),ce.push(lt),V.push({points:Be,velocities:Le,divergences:ce});for(var mt=0;mtCe&&s.scale(Ht,Ht,Ee/Math.sqrt(at)),s.add(Ht,Ht,be),me=z(Ht),s.squaredDistance(Pe,Ht)-Ce>-1e-4*Ce){Be.push(Ht),Pe=Ht,Le.push(me);var He=q(Ht,me),lt=s.length(He);isFinite(lt)&<>re&&(re=lt),ce.push(lt)}be=Ht}}var ct=f(V,T.colormap,re,ge);return g?ct.tubeScale=g:(re===0&&(re=1),ct.tubeScale=S*.5*ge/re),ct};var k=o(6740),M=o(6405).createMesh;i.exports.createTubeMesh=function(T,L){return M(T,L,{shaders:k,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}}),7815:(function(i,a,o){"use strict";var s=o(2931),l=o(9970),u=["xyz","xzy","yxz","yzx","zxy","zyx"],c=function(T,L,x,C){for(var S=T.points,g=T.velocities,P=T.divergences,E=[],z=[],q=[],V=[],G=[],Z=[],j=0,N=0,H=l.create(),re=l.create(),ae=8,_e=0;_e0)for(var ie=0;ieL)return C-1}return C},d=function(T,L,x){return Tx?x:T},v=function(T,L,x){var C=L.vectors,S=L.meshgrid,g=T[0],P=T[1],E=T[2],z=S[0].length,q=S[1].length,V=S[2].length,G=h(S[0],g),Z=h(S[1],P),j=h(S[2],E),N=G+1,H=Z+1,re=j+1;if(G=d(G,0,z-1),N=d(N,0,z-1),Z=d(Z,0,q-1),H=d(H,0,q-1),j=d(j,0,V-1),re=d(re,0,V-1),G<0||Z<0||j<0||N>z-1||H>q-1||re>V-1)return s.create();var ae=S[0][G],_e=S[0][N],Ee=S[1][Z],Ce=S[1][H],ge=S[2][j],ie=S[2][re],Se=(g-ae)/(_e-ae),ke=(P-Ee)/(Ce-Ee),be=(E-ge)/(ie-ge);isFinite(Se)||(Se=.5),isFinite(ke)||(ke=.5),isFinite(be)||(be=.5);var Be,Le,me,Pe,ce,He;switch(x.reversedX&&(G=z-1-G,N=z-1-N),x.reversedY&&(Z=q-1-Z,H=q-1-H),x.reversedZ&&(j=V-1-j,re=V-1-re),x.filled){case 5:ce=j,He=re,me=Z*V,Pe=H*V,Be=G*V*q,Le=N*V*q;break;case 4:ce=j,He=re,Be=G*V,Le=N*V,me=Z*V*z,Pe=H*V*z;break;case 3:me=Z,Pe=H,ce=j*q,He=re*q,Be=G*q*V,Le=N*q*V;break;case 2:me=Z,Pe=H,Be=G*q,Le=N*q,ce=j*q*z,He=re*q*z;break;case 1:Be=G,Le=N,ce=j*z,He=re*z,me=Z*z*V,Pe=H*z*V;break;default:Be=G,Le=N,me=Z*z,Pe=H*z,ce=j*z*q,He=re*z*q;break}var lt=C[Be+me+ce],mt=C[Be+me+He],Ht=C[Be+Pe+ce],at=C[Be+Pe+He],ct=C[Le+me+ce],ar=C[Le+me+He],Vt=C[Le+Pe+ce],rr=C[Le+Pe+He],tt=s.create(),je=s.create(),Ue=s.create(),Ae=s.create();s.lerp(tt,lt,ct,Se),s.lerp(je,mt,ar,Se),s.lerp(Ue,Ht,Vt,Se),s.lerp(Ae,at,rr,Se);var rt=s.create(),St=s.create();s.lerp(rt,tt,Ue,ke),s.lerp(St,je,Ae,ke);var Tt=s.create();return s.lerp(Tt,rt,St,be),Tt},m=function(T,L){var x=L[0],C=L[1],S=L[2];return T[0]=x<0?-x:x,T[1]=C<0?-C:C,T[2]=S<0?-S:S,T},b=function(T){var L=1/0;T.sort(function(g,P){return g-P});for(var x=T.length,C=1;CN||rrH||ttre)},_e=s.distance(L[0],L[1]),Ee=10*_e/C,Ce=Ee*Ee,ge=1,ie=0,Se=x.length;Se>1&&(ge=p(x));for(var ke=0;keie&&(ie=lt),ce.push(lt),V.push({points:Be,velocities:Le,divergences:ce});for(var mt=0;mtCe&&s.scale(Ht,Ht,Ee/Math.sqrt(at)),s.add(Ht,Ht,be),me=z(Ht),s.squaredDistance(Pe,Ht)-Ce>-1e-4*Ce){Be.push(Ht),Pe=Ht,Le.push(me);var He=q(Ht,me),lt=s.length(He);isFinite(lt)&<>ie&&(ie=lt),ce.push(lt)}be=Ht}}var ct=f(V,T.colormap,ie,ge);return g?ct.tubeScale=g:(ie===0&&(ie=1),ct.tubeScale=S*.5*ge/ie),ct};var k=o(6740),M=o(6405).createMesh;i.exports.createTubeMesh=function(T,L){return M(T,L,{shaders:k,traceType:"streamtube"})}}),990:(function(i,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1999,15 +1999,15 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);a.createShader=function(d){var v=s(d,u,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createPickShader=function(d){var v=s(d,u,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createContourShader=function(d){var v=s(d,f,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v},a.createPickContourShader=function(d){var v=s(d,f,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v}},9499:function(i,a,o){"use strict";i.exports=Be;var s=o(8828),l=o(2762),u=o(8116),c=o(7766),f=o(1888),h=o(6729),d=o(5298),v=o(9994),m=o(9618),b=o(3711),p=o(6760),k=o(7608),M=o(2478),T=o(6199),L=o(990),x=L.createShader,C=L.createContourShader,S=L.createPickShader,g=L.createPickContourShader,P=4*10,E=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],z=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],q=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var Le=0;Le<3;++Le){var me=q[Le],Pe=(Le+1)%3,ce=(Le+2)%3;me[Pe+0]=1,me[ce+3]=1,me[Le+6]=1}})();function V(Le,me,Pe,ce,He){this.position=Le,this.index=me,this.uv=Pe,this.level=ce,this.dataCoordinate=He}var G=256;function Z(Le,me,Pe,ce,He,lt,mt,Ht,at,ct,ar,Vt,rr,tt,je){this.gl=Le,this.shape=me,this.bounds=Pe,this.objectOffset=je,this.intensityBounds=[],this._shader=ce,this._pickShader=He,this._coordinateBuffer=lt,this._vao=mt,this._colorMap=Ht,this._contourShader=at,this._contourPickShader=ct,this._contourBuffer=ar,this._contourVAO=Vt,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new V([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=rr,this._dynamicVAO=tt,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[m(f.mallocFloat(1024),[0,0]),m(f.mallocFloat(1024),[0,0]),m(f.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var j=Z.prototype;j.genColormap=function(Le,me){var Pe=!1,ce=v([h({colormap:Le,nshades:G,format:"rgba"}).map(function(He,lt){var mt=me?N(lt/255,me):He[3];return mt<1&&(Pe=!0),[He[0],He[1],He[2],255*mt]})]);return d.divseq(ce,255),this.hasAlphaScale=Pe,ce},j.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},j.isOpaque=function(){return!this.isTransparent()},j.pickSlots=1,j.setPickBase=function(Le){this.pickId=Le};function N(Le,me){if(!me||!me.length)return 1;for(var Pe=0;PeLe&&Pe>0){var ce=(me[Pe][0]-Le)/(me[Pe][0]-me[Pe-1][0]);return me[Pe][1]*(1-ce)+ce*me[Pe-1][1]}}return 1}var H=[0,0,0],ie={showSurface:!1,showContour:!1,projections:[E.slice(),E.slice(),E.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(Le,me){var Pe,ce,He,lt=me.axes&&me.axes.lastCubeProps.axis||H,mt=me.showSurface,Ht=me.showContour;for(Pe=0;Pe<3;++Pe)for(mt=mt||me.surfaceProject[Pe],ce=0;ce<3;++ce)Ht=Ht||me.contourProject[Pe][ce];for(Pe=0;Pe<3;++Pe){var at=ie.projections[Pe];for(ce=0;ce<16;++ce)at[ce]=0;for(ce=0;ce<4;++ce)at[5*ce]=1;at[5*Pe]=0,at[12+Pe]=me.axesBounds[+(lt[Pe]>0)][Pe],p(at,Le.model,at);var ct=ie.clipBounds[Pe];for(He=0;He<2;++He)for(ce=0;ce<3;++ce)ct[He][ce]=Le.clipBounds[He][ce];ct[0][Pe]=-1e8,ct[1][Pe]=1e8}return ie.showSurface=mt,ie.showContour=Ht,ie}var _e={model:E,view:E,projection:E,inverseModel:E.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Ee=E.slice(),Ce=[1,0,0,0,1,0,0,0,1];function ge(Le,me){Le=Le||{};var Pe=this.gl;Pe.disable(Pe.CULL_FACE),this._colorMap.bind(0);var ce=_e;ce.model=Le.model||E,ce.view=Le.view||E,ce.projection=Le.projection||E,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=k(ce.inverseModel,ce.model);for(var He=0;He<2;++He)for(var lt=ce.clipBounds[He],mt=0;mt<3;++mt)lt[mt]=Math.min(Math.max(this.clipBounds[He][mt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=Ce,ce.vertexColor=this.vertexColor;var Ht=Ee;for(p(Ht,ce.view,ce.model),p(Ht,ce.projection,Ht),k(Ht,Ht),He=0;He<3;++He)ce.eyePosition[He]=Ht[12+He]/Ht[15];var at=Ht[15];for(He=0;He<3;++He)at+=this.lightPosition[He]*Ht[4*He+3];for(He=0;He<3;++He){var ct=Ht[12+He];for(mt=0;mt<3;++mt)ct+=Ht[4*mt+He]*this.lightPosition[mt];ce.lightPosition[He]=ct/at}var ar=ae(ce,this);if(ar.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Pe.TRIANGLES,this._vertexCount),He=0;He<3;++He)!this.surfaceProject[He]||!this.vertexCount||(this._shader.uniforms.model=ar.projections[He],this._shader.uniforms.clipBounds=ar.clipBounds[He],this._vao.draw(Pe.TRIANGLES,this._vertexCount));this._vao.unbind()}if(ar.showContour){var Vt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Vt.bind(),Vt.uniforms=ce;var rr=this._contourVAO;for(rr.bind(),He=0;He<3;++He)for(Vt.uniforms.permutation=q[He],Pe.lineWidth(this.contourWidth[He]*this.pixelRatio),mt=0;mt>4)/16)/255,He=Math.floor(ce),lt=ce-He,mt=me[1]*(Le.value[1]+(Le.value[2]&15)/16)/255,Ht=Math.floor(mt),at=mt-Ht;He+=1,Ht+=1;var ct=Pe.position;ct[0]=ct[1]=ct[2]=0;for(var ar=0;ar<2;++ar)for(var Vt=ar?lt:1-lt,rr=0;rr<2;++rr)for(var tt=rr?at:1-at,je=He+ar,Ue=Ht+rr,Ae=Vt*tt,rt=0;rt<3;++rt)ct[rt]+=this._field[rt].get(je,Ue)*Ae;for(var St=this._pickResult.level,Tt=0;Tt<3;++Tt)if(St[Tt]=M.le(this.contourLevels[Tt],ct[Tt]),St[Tt]<0)this.contourLevels[Tt].length>0&&(St[Tt]=0);else if(St[Tt]Math.abs(Et-ct[Tt])&&(St[Tt]+=1)}for(Pe.index[0]=lt<.5?He:He+1,Pe.index[1]=at<.5?Ht:Ht+1,Pe.uv[0]=ce/me[0],Pe.uv[1]=mt/me[1],rt=0;rt<3;++rt)Pe.dataCoordinate[rt]=this._field[rt].get(Pe.index[0],Pe.index[1]);return Pe},j.padField=function(Le,me){var Pe=me.shape.slice(),ce=Le.shape.slice();d.assign(Le.lo(1,1).hi(Pe[0],Pe[1]),me),d.assign(Le.lo(1).hi(Pe[0],1),me.hi(Pe[0],1)),d.assign(Le.lo(1,ce[1]-1).hi(Pe[0],1),me.lo(0,Pe[1]-1).hi(Pe[0],1)),d.assign(Le.lo(0,1).hi(1,Pe[1]),me.hi(1)),d.assign(Le.lo(ce[0]-1,1).hi(1,Pe[1]),me.lo(Pe[0]-1)),Le.set(0,0,me.get(0,0)),Le.set(0,ce[1]-1,me.get(0,Pe[1]-1)),Le.set(ce[0]-1,0,me.get(Pe[0]-1,0)),Le.set(ce[0]-1,ce[1]-1,me.get(Pe[0]-1,Pe[1]-1))};function Se(Le,me){return Array.isArray(Le)?[me(Le[0]),me(Le[1]),me(Le[2])]:[me(Le),me(Le),me(Le)]}function ke(Le){return Array.isArray(Le)?Le.length===3?[Le[0],Le[1],Le[2],1]:[Le[0],Le[1],Le[2],Le[3]]:[0,0,0,1]}function be(Le){if(Array.isArray(Le)){if(Array.isArray(Le))return[ke(Le[0]),ke(Le[1]),ke(Le[2])];var me=ke(Le);return[me.slice(),me.slice(),me.slice()]}}j.update=function(Le){Le=Le||{},this.objectOffset=Le.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Le&&(this.contourWidth=Se(Le.contourWidth,Number)),"showContour"in Le&&(this.showContour=Se(Le.showContour,Boolean)),"showSurface"in Le&&(this.showSurface=!!Le.showSurface),"contourTint"in Le&&(this.contourTint=Se(Le.contourTint,Boolean)),"contourColor"in Le&&(this.contourColor=be(Le.contourColor)),"contourProject"in Le&&(this.contourProject=Se(Le.contourProject,function(yn){return Se(yn,Boolean)})),"surfaceProject"in Le&&(this.surfaceProject=Le.surfaceProject),"dynamicColor"in Le&&(this.dynamicColor=be(Le.dynamicColor)),"dynamicTint"in Le&&(this.dynamicTint=Se(Le.dynamicTint,Number)),"dynamicWidth"in Le&&(this.dynamicWidth=Se(Le.dynamicWidth,Number)),"opacity"in Le&&(this.opacity=Le.opacity),"opacityscale"in Le&&(this.opacityscale=Le.opacityscale),"colorBounds"in Le&&(this.colorBounds=Le.colorBounds),"vertexColor"in Le&&(this.vertexColor=Le.vertexColor?1:0),"colormap"in Le&&this._colorMap.setPixels(this.genColormap(Le.colormap,this.opacityscale));var me=Le.field||Le.coords&&Le.coords[2]||null,Pe=!1;if(me||(this._field[2].shape[0]||this._field[2].shape[2]?me=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):me=this._field[2].hi(0,0)),"field"in Le||"coords"in Le){var ce=(me.shape[0]+2)*(me.shape[1]+2);ce>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(ce))),this._field[2]=m(this._field[2].data,[me.shape[0]+2,me.shape[1]+2]),this.padField(this._field[2],me),this.shape=me.shape.slice();for(var He=this.shape,lt=0;lt<2;++lt)this._field[2].size>this._field[lt].data.length&&(f.freeFloat(this._field[lt].data),this._field[lt].data=f.mallocFloat(this._field[2].size)),this._field[lt]=m(this._field[lt].data,[He[0]+2,He[1]+2]);if(Le.coords){var mt=Le.coords;if(!Array.isArray(mt)||mt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(lt=0;lt<2;++lt){var Ht=mt[lt];for(rr=0;rr<2;++rr)if(Ht.shape[rr]!==He[rr])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[lt],Ht)}}else if(Le.ticks){var at=Le.ticks;if(!Array.isArray(at)||at.length!==2)throw new Error("gl-surface: invalid ticks");for(lt=0;lt<2;++lt){var ct=at[lt];if((Array.isArray(ct)||ct.length)&&(ct=m(ct)),ct.shape[0]!==He[lt])throw new Error("gl-surface: invalid tick length");var ar=m(ct.data,He);ar.stride[lt]=ct.stride[0],ar.stride[lt^1]=0,this.padField(this._field[lt],ar)}}else{for(lt=0;lt<2;++lt){var Vt=[0,0];Vt[lt]=1,this._field[lt]=m(this._field[lt].data,[He[0]+2,He[1]+2],Vt,0)}this._field[0].set(0,0,0);for(var rr=0;rr0){for(var en=0;en<5;++en)Pi.pop();We-=1}continue e}}}Fn.push(We)}this._contourOffsets[ai]=un,this._contourCounts[ai]=Fn}var fn=f.mallocFloat(Pi.length);for(lt=0;ltV||z<0||z>V)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[E,z],P.bind(),q.texImage2D(q.TEXTURE_2D,0,P.format,E,z,0,P.format,P.type,null),P._mipLevels=[0],P}function p(P,E,z,q,V,G){this.gl=P,this.handle=E,this.format=V,this.type=G,this._shape=[z,q],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var Z=this,j=[this._wrapS,this._wrapT];Object.defineProperties(j,[{get:function(){return Z._wrapS},set:function(H){return Z.wrapS=H}},{get:function(){return Z._wrapT},set:function(H){return Z.wrapT=H}}]),this._wrapVector=j;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return Z._shape[0]},set:function(H){return Z.width=H}},{get:function(){return Z._shape[1]},set:function(H){return Z.height=H}}]),this._shapeVector=N}var k=p.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var E=this.gl;if(this.type===E.FLOAT&&c.indexOf(P)>=0&&(E.getExtension("OES_texture_float_linear")||(P=E.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var E=this.gl;if(this.type===E.FLOAT&&c.indexOf(P)>=0&&(E.getExtension("OES_texture_float_linear")||(P=E.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var E=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,E!==this._anisoSamples){var z=this.gl.getExtension("EXT_texture_filter_anisotropic");z&&this.gl.texParameterf(this.gl.TEXTURE_2D,z.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var E=0;E<2;++E)if(h.indexOf(P[E])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var z=this.gl;return this.bind(),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_S,this._wrapS),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),k.bind=function(P){var E=this.gl;return P!==void 0&&E.activeTexture(E.TEXTURE0+(P|0)),E.bindTexture(E.TEXTURE_2D,this.handle),P!==void 0?P|0:E.getParameter(E.ACTIVE_TEXTURE)-E.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),E=0;P>0;++E,P>>>=1)this._mipLevels.indexOf(E)<0&&this._mipLevels.push(E)},k.setPixels=function(P,E,z,q){var V=this.gl;this.bind(),Array.isArray(E)?(q=z,z=E[1]|0,E=E[0]|0):(E=E||0,z=z||0),q=q||0;var G=v(P)?P:P.raw;if(G){var Z=this._mipLevels.indexOf(q)<0;Z?(V.texImage2D(V.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(q)):V.texSubImage2D(V.TEXTURE_2D,q,E,z,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||E+P.shape[1]>this._shape[1]>>>q||z+P.shape[0]>this._shape[0]>>>q||E<0||z<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");T(V,E,z,q,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function M(P,E){return P.length===3?E[2]===1&&E[1]===P[0]*P[2]&&E[0]===P[2]:E[0]===1&&E[1]===P[0]}function T(P,E,z,q,V,G,Z,j){var N=j.dtype,H=j.shape.slice();if(H.length<2||H.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var ie=0,ae=0,_e=M(H,j.stride.slice());N==="float32"?ie=P.FLOAT:N==="float64"?(ie=P.FLOAT,_e=!1,N="float32"):N==="uint8"?ie=P.UNSIGNED_BYTE:(ie=P.UNSIGNED_BYTE,_e=!1,N="uint8");var Ee=1;if(H.length===2)ae=P.LUMINANCE,H=[H[0],H[1],1],j=s(j.data,H,[j.stride[0],j.stride[1],1],j.offset);else if(H.length===3){if(H[2]===1)ae=P.ALPHA;else if(H[2]===2)ae=P.LUMINANCE_ALPHA;else if(H[2]===3)ae=P.RGB;else if(H[2]===4)ae=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Ee=H[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((ae===P.LUMINANCE||ae===P.ALPHA)&&(V===P.LUMINANCE||V===P.ALPHA)&&(ae=V),ae!==V)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Ce=j.size,ge=Z.indexOf(q)<0;if(ge&&Z.push(q),ie===G&&_e)j.offset===0&&j.data.length===Ce?ge?P.texImage2D(P.TEXTURE_2D,q,V,H[0],H[1],0,V,G,j.data):P.texSubImage2D(P.TEXTURE_2D,q,E,z,H[0],H[1],V,G,j.data):ge?P.texImage2D(P.TEXTURE_2D,q,V,H[0],H[1],0,V,G,j.data.subarray(j.offset,j.offset+Ce)):P.texSubImage2D(P.TEXTURE_2D,q,E,z,H[0],H[1],V,G,j.data.subarray(j.offset,j.offset+Ce));else{var re;G===P.FLOAT?re=u.mallocFloat32(Ce):re=u.mallocUint8(Ce);var Se=s(re,H,[H[2],H[2]*H[0],1]);ie===P.FLOAT&&G===P.UNSIGNED_BYTE?m(Se,j):l.assign(Se,j),ge?P.texImage2D(P.TEXTURE_2D,q,V,H[0],H[1],0,V,G,re.subarray(0,Ce)):P.texSubImage2D(P.TEXTURE_2D,q,E,z,H[0],H[1],V,G,re.subarray(0,Ce)),G===P.FLOAT?u.freeFloat32(re):u.freeUint8(re)}}function L(P){var E=P.createTexture();return P.bindTexture(P.TEXTURE_2D,E),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),E}function x(P,E,z,q,V){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(E<0||E>G||z<0||z>G)throw new Error("gl-texture2d: Invalid texture shape");if(V===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,q,E,z,0,q,V,null),new p(P,Z,E,z,q,V)}function C(P,E,z,q,V,G){var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,V,V,G,E),new p(P,Z,z,q,V,G)}function S(P,E){var z=E.dtype,q=E.shape.slice(),V=P.getParameter(P.MAX_TEXTURE_SIZE);if(q[0]<0||q[0]>V||q[1]<0||q[1]>V)throw new Error("gl-texture2d: Invalid texture size");var G=M(q,E.stride.slice()),Z=0;z==="float32"?Z=P.FLOAT:z==="float64"?(Z=P.FLOAT,G=!1,z="float32"):z==="uint8"?Z=P.UNSIGNED_BYTE:(Z=P.UNSIGNED_BYTE,G=!1,z="uint8");var j=0;if(q.length===2)j=P.LUMINANCE,q=[q[0],q[1],1],E=s(E.data,q,[E.stride[0],E.stride[1],1],E.offset);else if(q.length===3)if(q[2]===1)j=P.ALPHA;else if(q[2]===2)j=P.LUMINANCE_ALPHA;else if(q[2]===3)j=P.RGB;else if(q[2]===4)j=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");Z===P.FLOAT&&!P.getExtension("OES_texture_float")&&(Z=P.UNSIGNED_BYTE,G=!1);var N,H,ie=E.size;if(G)E.offset===0&&E.data.length===ie?N=E.data:N=E.data.subarray(E.offset,E.offset+ie);else{var ae=[q[2],q[2]*q[0],1];H=u.malloc(ie,z);var _e=s(H,q,ae,0);(z==="float32"||z==="float64")&&Z===P.UNSIGNED_BYTE?m(_e,E):l.assign(_e,E),N=H.subarray(0,ie)}var Ee=L(P);return P.texImage2D(P.TEXTURE_2D,0,j,q[0],q[1],0,j,Z,N),G||u.free(H),new p(P,Ee,q[0],q[1],j,Z)}function g(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||d(P),typeof arguments[1]=="number")return x(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var E=arguments[1],z=v(E)?E:E.raw;if(z)return C(P,z,E.width|0,E.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(E.shape&&E.data&&E.stride)return S(P,E)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var c=0;c1?0:Math.acos(m)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2];return o[0]=c*v-f*d,o[1]=f*h-u*v,o[2]=u*d-c*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return Math.sqrt(l*l+u*u+c*c)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],d=u[2],v=c[0],m=c[1],b=c[2];return Math.abs(f-v)<=s*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-m)<=s*Math.max(1,Math.abs(h),Math.abs(m))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=l;var s=o(1091)();function l(u,c,f,h,d,v){var m,b;for(c||(c=3),f||(f=0),h?b=Math.min(h*c+f,u.length):b=u.length,m=f;m0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,c=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*c,o[1]=Math.sin(l)*c,o[2]=u*s,o}},6894:function(i){i.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,d=s[2]-f,v=Math.sin(u),m=Math.cos(u);return o[0]=s[0],o[1]=c+h*m-d*v,o[2]=f+h*v+d*m,o}},109:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,d=s[2]-f,v=Math.sin(u),m=Math.cos(u);return o[0]=c+d*v+h*m,o[1]=s[1],o[2]=f+d*m-h*v,o}},8692:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,d=s[1]-f,v=Math.sin(u),m=Math.cos(u);return o[0]=c+h*m-d*v,o[1]=f+h*v+d*m,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return l*l+u*u+c*c}},3066:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2];return o[0]=u*l[0]+c*l[3]+f*l[6],o[1]=u*l[1]+c*l[4]+f*l[7],o[2]=u*l[2]+c*l[5]+f*l[8],o}},5673:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[3]*u+l[7]*c+l[11]*f+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*c+l[8]*f+l[12])/h,o[1]=(l[1]*u+l[5]*c+l[9]*f+l[13])/h,o[2]=(l[2]*u+l[6]*c+l[10]*f+l[14])/h,o}},264:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],m=l[3],b=m*u+d*f-v*c,p=m*c+v*u-h*f,k=m*f+h*c-d*u,M=-h*u-d*c-v*f;return o[0]=b*m+M*-h+p*-v-k*-d,o[1]=p*m+M*-d+k*-h-b*-v,o[2]=k*m+M*-v+b*-d-p*-h,o}},4361:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return Math.sqrt(l*l+u*u+c*c+f*f)}},1373:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,l,u){var c=new Float32Array(4);return c[0]=o,c[1]=s,c[2]=l,c[3]=u,c}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return Math.sqrt(s*s+l*l+u*u+c*c)}},2573:function(i){i.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],d=s[3];return o[0]=c+u*(l[0]-c),o[1]=f+u*(l[1]-f),o[2]=h+u*(l[2]-h),o[3]=d+u*(l[3]-d),o}},160:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var l=s[0],u=s[1],c=s[2],f=s[3],h=l*l+u*u+c*c+f*f;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=c*h,o[3]=f*h),o}},9131:function(i,a,o){var s=o(5177),l=o(9288);i.exports=u;function u(c,f){return f=f||1,c[0]=Math.random(),c[1]=Math.random(),c[2]=Math.random(),c[3]=Math.random(),s(c,c),l(c,c,f),c}},9288:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578:function(i){i.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}},7960:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return l*l+u*u+c*c+f*f}},483:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return s*s+l*l+u*u+c*c}},6860:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=s[3];return o[0]=l[0]*u+l[4]*c+l[8]*f+l[12]*h,o[1]=l[1]*u+l[5]*c+l[9]*f+l[13]*h,o[2]=l[2]*u+l[6]*c+l[10]*f+l[14]*h,o[3]=l[3]*u+l[7]*c+l[11]*f+l[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],m=l[3],b=m*u+d*f-v*c,p=m*c+v*u-h*f,k=m*f+h*c-d*u,M=-h*u-d*c-v*f;return o[0]=b*m+M*-h+p*-v-k*-d,o[1]=p*m+M*-d+k*-h-b*-v,o[2]=k*m+M*-v+b*-d-p*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),l=o(6468);i.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Tt=Ae.slice(0,1).join("")}return Pe(Tt),Ce+=Tt.length,N=N.slice(Tt.length),N.length}while(!0)}function rr(){return/[^a-fA-F0-9]/.test(Z)?(Pe(N.join("")),G=h,q):(N.push(Z),j=Z,q+1)}function tt(){return Z==="."||/[eE]/.test(Z)?(N.push(Z),G=M,j=Z,q+1):Z==="x"&&N.length===1&&N[0]==="0"?(G=g,N.push(Z),j=Z,q+1):/[^\d]/.test(Z)?(Pe(N.join("")),G=h,q):(N.push(Z),j=Z,q+1)}function je(){return Z==="f"&&(N.push(Z),j=Z,q+=1),/[eE]/.test(Z)||(Z==="-"||Z==="+")&&/[eE]/.test(j)?(N.push(Z),j=Z,q+1):/[^\d]/.test(Z)?(Pe(N.join("")),G=h,q):(N.push(Z),j=Z,q+1)}function Ue(){if(/[^\d\w_]/.test(Z)){var Ae=N.join("");return me[Ae]?G=x:Le[Ae]?G=L:G=T,Pe(N.join("")),G=h,q}return N.push(Z),j=Z,q+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,b=-7,p=l?c-1:0,k=l?-1:1,M=o[s+p];for(p+=k,f=M&(1<<-b)-1,M>>=-b,b+=d;b>0;f=f*256+o[s+p],p+=k,b-=8);for(h=f&(1<<-b)-1,f>>=-b,b+=u;b>0;h=h*256+o[s+p],p+=k,b-=8);if(f===0)f=1-m;else{if(f===v)return h?NaN:(M?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-m}return(M?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,d,v,m=f*8-c-1,b=(1<>1,k=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=u?0:f-1,T=u?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+p>=1?s+=k/v:s+=k*Math.pow(2,1-p),s*v>=2&&(h++,v/=2),h+p>=b?(d=0,h=b):h+p>=1?(d=(s*v-1)*Math.pow(2,c),h=h+p):(d=s*Math.pow(2,p-1)*Math.pow(2,c),h=0));c>=8;o[l+M]=d&255,M+=T,d/=256,c-=8);for(h=h<0;o[l+M]=h&255,M+=T,h/=256,m-=8);o[l+M-T]|=L*128}},8954:function(i,a,o){"use strict";i.exports=p;var s=o(3250),l=o(6803).Fw;function u(k,M,T){this.vertices=k,this.adjacent=M,this.boundary=T,this.lastVisited=-1}u.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var M=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=M};function c(k,M,T){this.vertices=k,this.cell=M,this.index=T}function f(k,M){return l(k.vertices,M.vertices)}function h(k){return function(){var M=this.tuple;return k.apply(this,M)}}function d(k){var M=s[k+1];return M||(M=s),h(M)}var v=[];function m(k,M,T){this.dimension=k,this.vertices=M,this.simplices=T,this.interior=T.filter(function(C){return!C.boundary}),this.tuple=new Array(k+1);for(var L=0;L<=k;++L)this.tuple[L]=this.vertices[L];var x=v[k];x||(x=v[k]=d(k)),this.orient=x}var b=m.prototype;b.handleBoundaryDegeneracy=function(k,M){var T=this.dimension,L=this.vertices.length-1,x=this.tuple,C=this.vertices,S=[k];for(k.lastVisited=-L;S.length>0;){k=S.pop();for(var g=k.adjacent,P=0;P<=T;++P){var E=g[P];if(!(!E.boundary||E.lastVisited<=-L)){for(var z=E.vertices,q=0;q<=T;++q){var V=z[q];V<0?x[q]=M:x[q]=C[V]}var G=this.orient();if(G>0)return E;E.lastVisited=-L,G===0&&S.push(E)}}}return null},b.walk=function(k,M){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,S=M?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[S];e:for(;!g.boundary;){for(var P=g.vertices,E=g.adjacent,z=0;z<=L;++z)C[z]=x[P[z]];g.lastVisited=T;for(var z=0;z<=L;++z){var q=E[z];if(!(q.lastVisited>=T)){var V=C[z];C[z]=k;var G=this.orient();if(C[z]=V,G<0){g=q;continue e}else q.boundary?q.lastVisited=-T:q.lastVisited=T}}return}return g},b.addPeaks=function(k,M){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,S=this.interior,g=this.simplices,P=[M];M.lastVisited=T,M.vertices[M.vertices.indexOf(-1)]=T,M.boundary=!1,S.push(M);for(var E=[];P.length>0;){var M=P.pop(),z=M.vertices,q=M.adjacent,V=z.indexOf(T);if(!(V<0)){for(var G=0;G<=L;++G)if(G!==V){var Z=q[G];if(!(!Z.boundary||Z.lastVisited>=T)){var j=Z.vertices;if(Z.lastVisited!==-T){for(var N=0,H=0;H<=L;++H)j[H]<0?(N=H,C[H]=k):C[H]=x[j[H]];var ie=this.orient();if(ie>0){j[N]=T,Z.boundary=!1,S.push(Z),P.push(Z),Z.lastVisited=T;continue}else Z.lastVisited=-T}var ae=Z.adjacent,_e=z.slice(),Ee=q.slice(),Ce=new u(_e,Ee,!0);g.push(Ce);var ge=ae.indexOf(M);if(!(ge<0)){ae[ge]=Ce,Ee[V]=Z,_e[G]=-1,Ee[G]=M,q[G]=Ce,Ce.flip();for(var H=0;H<=L;++H){var re=_e[H];if(!(re<0||re===T)){for(var Se=new Array(L-1),ke=0,be=0;be<=L;++be){var Be=_e[be];Be<0||be===H||(Se[ke++]=Be)}E.push(new c(Se,Ce,H))}}}}}}}E.sort(f);for(var G=0;G+1=0?S[P++]=g[z]:E=z&1;if(E===(k&1)){var q=S[0];S[0]=S[1],S[1]=q}M.push(S)}}return M};function p(k,M){var T=k.length;if(T===0)throw new Error("Must have at least d+1 points");var L=k[0].length;if(T<=L)throw new Error("Must input at least d+1 points");var x=k.slice(0,L+1),C=s.apply(void 0,x);if(C===0)throw new Error("Input not in general position");for(var S=new Array(L+1),g=0;g<=L;++g)S[g]=g;C<0&&(S[0]=1,S[1]=0);for(var P=new u(S,new Array(L+1),!1),E=P.adjacent,z=new Array(L+2),g=0;g<=L;++g){for(var q=S.slice(),V=0;V<=L;++V)V===g&&(q[V]=-1);var G=q[0];q[0]=q[1],q[1]=G;var Z=new u(q,new Array(L+1),!0);E[g]=Z,z[g]=Z}z[L+1]=P;for(var g=0;g<=L;++g)for(var q=E[g].vertices,j=E[g].adjacent,V=0;V<=L;++V){var N=q[V];if(N<0){j[V]=P;continue}for(var H=0;H<=L;++H)E[H].vertices.indexOf(N)<0&&(j[V]=E[H])}for(var ie=new m(L,x,z),ae=!!M,g=L+1;g3*(z+1)?m(this,E):this.left.insert(E):this.left=C([E]);else if(E[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?m(this,E):this.right.insert(E):this.right=C([E]);else{var q=s.ge(this.leftPoints,E,L),V=s.ge(this.rightPoints,E,x);this.leftPoints.splice(q,0,E),this.rightPoints.splice(V,0,E)}},h.remove=function(E){var z=this.count-this.leftPoints;if(E[1]3*(z-1))return b(this,E);var V=this.left.remove(E);return V===c?(this.left=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else if(E[0]>this.mid){if(!this.right)return l;var G=this.left?this.left.count:0;if(4*G>3*(z-1))return b(this,E);var V=this.right.remove(E);return V===c?(this.right=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else{if(this.count===1)return this.leftPoints[0]===E?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===E){if(this.left&&this.right){for(var Z=this,j=this.left;j.right;)Z=j,j=j.right;if(Z===this)j.right=this.right;else{var N=this.left,V=this.right;Z.count-=j.count,Z.right=j.left,j.left=N,j.right=V}d(this,j),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return u}for(var N=s.ge(this.leftPoints,E,L);N=0&&E[V][1]>=z;--V){var G=q(E[V]);if(G)return G}}function M(E,z){for(var q=0;qthis.mid){if(this.right){var q=this.right.queryPoint(E,z);if(q)return q}return k(this.rightPoints,E,z)}else return M(this.leftPoints,z)},h.queryInterval=function(E,z,q){if(Ethis.mid&&this.right){var V=this.right.queryInterval(E,z,q);if(V)return V}return zthis.mid?k(this.rightPoints,E,q):M(this.leftPoints,q)};function T(E,z){return E-z}function L(E,z){var q=E[0]-z[0];return q||E[1]-z[1]}function x(E,z){var q=E[1]-z[1];return q||E[0]-z[0]}function C(E){if(E.length===0)return null;for(var z=[],q=0;q>1],G=[],Z=[],j=[],q=0;q13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,l){return o*(1-l)+s*l}i.exports=a},2652:function(i,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},v=l(),m=l(),b=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];i.exports=function(C,S,g,P,E,z){if(S||(S=[0,0,0]),g||(g=[0,0,0]),P||(P=[0,0,0]),E||(E=[0,0,0,1]),z||(z=[0,0,0,1]),!s(v,C)||(u(m,v),m[3]=0,m[7]=0,m[11]=0,m[15]=1,Math.abs(c(m)<1e-8)))return!1;var q=v[3],V=v[7],G=v[11],Z=v[12],j=v[13],N=v[14],H=v[15];if(q!==0||V!==0||G!==0){b[0]=q,b[1]=V,b[2]=G,b[3]=H;var ie=f(m,m);if(!ie)return!1;h(m,m),M(E,b,m)}else E[0]=E[1]=E[2]=0,E[3]=1;if(S[0]=Z,S[1]=j,S[2]=N,T(p,v),g[0]=d.length(p[0]),d.normalize(p[0],p[0]),P[0]=d.dot(p[0],p[1]),L(p[1],p[1],p[0],1,-P[0]),g[1]=d.length(p[1]),d.normalize(p[1],p[1]),P[0]/=g[1],P[1]=d.dot(p[0],p[2]),L(p[2],p[2],p[0],1,-P[1]),P[2]=d.dot(p[1],p[2]),L(p[2],p[2],p[1],1,-P[2]),g[2]=d.length(p[2]),d.normalize(p[2],p[2]),P[1]/=g[2],P[2]/=g[2],d.cross(k,p[1],p[2]),d.dot(p[0],k)<0)for(var ae=0;ae<3;ae++)g[ae]*=-1,p[ae][0]*=-1,p[ae][1]*=-1,p[ae][2]*=-1;return z[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),z[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),z[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),z[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(z[0]=-z[0]),p[0][2]>p[2][0]&&(z[1]=-z[1]),p[1][0]>p[0][1]&&(z[2]=-z[2]),!0};function M(x,C,S){var g=C[0],P=C[1],E=C[2],z=C[3];return x[0]=S[0]*g+S[4]*P+S[8]*E+S[12]*z,x[1]=S[1]*g+S[5]*P+S[9]*E+S[13]*z,x[2]=S[2]*g+S[6]*P+S[10]*E+S[14]*z,x[3]=S[3]*g+S[7]*P+S[11]*E+S[15]*z,x}function T(x,C){x[0][0]=C[0],x[0][1]=C[1],x[0][2]=C[2],x[1][0]=C[4],x[1][1]=C[5],x[1][2]=C[6],x[2][0]=C[8],x[2][1]=C[9],x[2][2]=C[10]}function L(x,C,S,g,P){x[0]=C[0]*g+S[0]*P,x[1]=C[1]*g+S[1]*P,x[2]=C[2]*g+S[2]*P}},4335:function(i){i.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,c=0;c<16;c++)o[c]=s[c]*u;return!0}},7442:function(i,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=b(),d=b(),v=b();i.exports=m;function m(M,T,L,x){if(c(T)===0||c(L)===0)return!1;var C=u(T,h.translate,h.scale,h.skew,h.perspective,h.quaternion),S=u(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!C||!S?!1:(s(v.translate,h.translate,d.translate,x),s(v.skew,h.skew,d.skew,x),s(v.scale,h.scale,d.scale,x),s(v.perspective,h.perspective,d.perspective,x),f(v.quaternion,h.quaternion,d.quaternion,x),l(M,v.translate,v.scale,v.skew,v.perspective,v.quaternion),!0)}function b(){return{translate:p(),scale:p(1),skew:p(),perspective:k(),quaternion:k()}}function p(M){return[M||0,M||0,M||0]}function k(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();i.exports=function(f,h,d,v,m,b){return s.identity(f),s.fromRotationTranslation(f,b,h),f[3]=m[0],f[7]=m[1],f[11]=m[2],f[15]=m[3],s.identity(u),v[2]!==0&&(u[9]=v[2],s.multiply(f,f,u)),v[1]!==0&&(u[9]=0,u[8]=v[1],s.multiply(f,f,u)),v[0]!==0&&(u[8]=0,u[4]=v[0],s.multiply(f,f,u)),s.scale(f,f,d),f}},1811:function(i,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),d=o(6582),v=o(7656),m=o(2504),b=o(3536),p=[0,0,0];i.exports=L;function k(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var M=k.prototype;M.recalcMatrix=function(x){var C=this._time,S=s.le(C,x),g=this.computedMatrix;if(!(S<0)){var P=this._components;if(S===C.length-1)for(var E=16*S,z=0;z<16;++z)g[z]=P[E++];else{for(var q=C[S+1]-C[S],E=16*S,V=this.prevMatrix,G=!0,z=0;z<16;++z)V[z]=P[E++];for(var Z=this.nextMatrix,z=0;z<16;++z)Z[z]=P[E++],G=G&&V[z]===Z[z];if(q<1e-6||G)for(var z=0;z<16;++z)g[z]=V[z];else l(g,V,Z,(x-C[S])/q)}var j=this.computedUp;j[0]=g[1],j[1]=g[5],j[2]=g[9],b(j,j);var N=this.computedInverse;u(N,g);var H=this.computedEye,ie=N[15];H[0]=N[12]/ie,H[1]=N[13]/ie,H[2]=N[14]/ie;for(var ae=this.computedCenter,_e=Math.exp(this.computedRadius[0]),z=0;z<3;++z)ae[z]=H[z]-g[2+4*z]*_e}},M.idle=function(x){if(!(x1&&s(u[d[p-2]],u[d[p-1]],b)<=0;)p-=1,d.pop();for(d.push(m),p=v.length;p>1&&s(u[v[p-2]],u[v[p-1]],b)>=0;)p-=1,v.pop();v.push(m)}for(var k=new Array(v.length+d.length-2),M=0,f=0,T=d.length;f0;--L)k[M++]=v[L];return k}},351:function(i,a,o){"use strict";i.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,d=0,v={shift:!1,alt:!1,control:!1,meta:!1},m=!1;function b(E){var z=!1;return"altKey"in E&&(z=z||E.altKey!==v.alt,v.alt=!!E.altKey),"shiftKey"in E&&(z=z||E.shiftKey!==v.shift,v.shift=!!E.shiftKey),"ctrlKey"in E&&(z=z||E.ctrlKey!==v.control,v.control=!!E.ctrlKey),"metaKey"in E&&(z=z||E.metaKey!==v.meta,v.meta=!!E.metaKey),z}function p(E,z){var q=s.x(z),V=s.y(z);"buttons"in z&&(E=z.buttons|0),(E!==f||q!==h||V!==d||b(z))&&(f=E|0,h=q||0,d=V||0,c&&c(f,h,d,v))}function k(E){p(0,E)}function M(){(f||h||d||v.shift||v.alt||v.meta||v.control)&&(h=d=0,f=0,v.shift=v.alt=v.control=v.meta=!1,c&&c(0,0,0,v))}function T(E){b(E)&&c&&c(f,h,d,v)}function L(E){s.buttons(E)===0?p(0,E):p(f,E)}function x(E){p(f|s.buttons(E),E)}function C(E){p(f&~s.buttons(E),E)}function S(){m||(m=!0,u.addEventListener("mousemove",L),u.addEventListener("mousedown",x),u.addEventListener("mouseup",C),u.addEventListener("mouseleave",k),u.addEventListener("mouseenter",k),u.addEventListener("mouseout",k),u.addEventListener("mouseover",k),u.addEventListener("blur",M),u.addEventListener("keyup",T),u.addEventListener("keydown",T),u.addEventListener("keypress",T),u!==window&&(window.addEventListener("blur",M),window.addEventListener("keyup",T),window.addEventListener("keydown",T),window.addEventListener("keypress",T)))}function g(){m&&(m=!1,u.removeEventListener("mousemove",L),u.removeEventListener("mousedown",x),u.removeEventListener("mouseup",C),u.removeEventListener("mouseleave",k),u.removeEventListener("mouseenter",k),u.removeEventListener("mouseout",k),u.removeEventListener("mouseover",k),u.removeEventListener("blur",M),u.removeEventListener("keyup",T),u.removeEventListener("keydown",T),u.removeEventListener("keypress",T),u!==window&&(window.removeEventListener("blur",M),window.removeEventListener("keyup",T),window.removeEventListener("keydown",T),window.removeEventListener("keypress",T)))}S();var P={element:u};return Object.defineProperties(P,{enabled:{get:function(){return m},set:function(E){E?S():g()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(l,u,c){u=u||l.currentTarget||l.srcElement,Array.isArray(c)||(c=[0,0]);var f=l.clientX||0,h=l.clientY||0,d=s(u);return c[0]=f-d.left,c[1]=h-d.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){var f=c.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(Ee=1,re[ke++]=v(S[z],M,T,L),z+=ie,x>0)for(_e=1,q=S[z],be=re[ke]=v(q,M,T,L),me=re[ke+Be],He=re[ke+Pe],Ht=re[ke+lt],(be!==me||be!==He||be!==Ht)&&(G=S[z+V],j=S[z+Z],H=S[z+N],h(_e,Ee,q,G,j,H,be,me,He,Ht,M,T,L),at=Se[ke]=Ce++),ke+=1,z+=ie,_e=2;_e0)for(_e=1,q=S[z],be=re[ke]=v(q,M,T,L),me=re[ke+Be],He=re[ke+Pe],Ht=re[ke+lt],(be!==me||be!==He||be!==Ht)&&(G=S[z+V],j=S[z+Z],H=S[z+N],h(_e,Ee,q,G,j,H,be,me,He,Ht,M,T,L),at=Se[ke]=Ce++,Ht!==He&&d(Se[ke+Pe],at,j,H,He,Ht,M,T,L)),ke+=1,z+=ie,_e=2;_e0){if(_e=1,re[ke++]=v(S[z],M,T,L),z+=ie,C>0)for(Ee=1,q=S[z],be=re[ke]=v(q,M,T,L),He=re[ke+Pe],me=re[ke+Be],Ht=re[ke+lt],(be!==He||be!==me||be!==Ht)&&(G=S[z+V],j=S[z+Z],H=S[z+N],h(_e,Ee,q,G,j,H,be,He,me,Ht,M,T,L),at=Se[ke]=Ce++),ke+=1,z+=ie,Ee=2;Ee0)for(Ee=1,q=S[z],be=re[ke]=v(q,M,T,L),He=re[ke+Pe],me=re[ke+Be],Ht=re[ke+lt],(be!==He||be!==me||be!==Ht)&&(G=S[z+V],j=S[z+Z],H=S[z+N],h(_e,Ee,q,G,j,H,be,He,me,Ht,M,T,L),at=Se[ke]=Ce++,Ht!==He&&d(Se[ke+Pe],at,H,G,Ht,He,M,T,L)),ke+=1,z+=ie,Ee=2;Ee 0"),typeof f.vertex!="function"&&h("Must specify vertex creation function"),typeof f.cell!="function"&&h("Must specify cell creation function"),typeof f.phase!="function"&&h("Must specify phase function");for(var b=f.getters||[],p=new Array(v),k=0;k=0?p[k]=!0:p[k]=!1;return u(f.vertex,f.cell,f.phase,m,d,p)}},6199:function(i,a,o){"use strict";var s=o(1338),l={zero:function(L,x,C,S){var g=L[0],P=C[0];S|=0;var E=0,z=P;for(E=0;E2&&E[1]>2&&S(P.pick(-1,-1).lo(1,1).hi(E[0]-2,E[1]-2),g.pick(-1,-1,0).lo(1,1).hi(E[0]-2,E[1]-2),g.pick(-1,-1,1).lo(1,1).hi(E[0]-2,E[1]-2)),E[1]>2&&(C(P.pick(0,-1).lo(1).hi(E[1]-2),g.pick(0,-1,1).lo(1).hi(E[1]-2)),x(g.pick(0,-1,0).lo(1).hi(E[1]-2))),E[1]>2&&(C(P.pick(E[0]-1,-1).lo(1).hi(E[1]-2),g.pick(E[0]-1,-1,1).lo(1).hi(E[1]-2)),x(g.pick(E[0]-1,-1,0).lo(1).hi(E[1]-2))),E[0]>2&&(C(P.pick(-1,0).lo(1).hi(E[0]-2),g.pick(-1,0,0).lo(1).hi(E[0]-2)),x(g.pick(-1,0,1).lo(1).hi(E[0]-2))),E[0]>2&&(C(P.pick(-1,E[1]-1).lo(1).hi(E[0]-2),g.pick(-1,E[1]-1,0).lo(1).hi(E[0]-2)),x(g.pick(-1,E[1]-1,1).lo(1).hi(E[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(E[0]-1,0,0,0),g.set(E[0]-1,0,1,0),g.set(0,E[1]-1,0,0),g.set(0,E[1]-1,1,0),g.set(E[0]-1,E[1]-1,0,0),g.set(E[0]-1,E[1]-1,1,0),g}}function T(L){var x=L.join(),E=v[x];if(E)return E;for(var C=L.length,S=[b,p],g=1;g<=C;++g)S.push(k(g));var P=M,E=P.apply(void 0,S);return v[x]=E,E}i.exports=function(x,C,S){if(Array.isArray(S)||(typeof S=="string"?S=s(C.dimension,S):S=s(C.dimension,"clamp")),C.size===0)return x;if(C.dimension===0)return x.set(0),x;var g=T(S);return g(x,C)}},4317:function(i){"use strict";function a(c,f){var h=Math.floor(f),d=f-h,v=0<=h&&h0;){j<64?(x=j,j=0):(x=64,j-=64);for(var N=v[1]|0;N>0;){N<64?(C=N,N=0):(C=64,N-=64),p=G+j*g+N*P,T=Z+j*z+N*q;var H=0,ie=0,ae=0,_e=E,Ee=g-S*E,Ce=P-x*g,ge=V,re=z-S*V,Se=q-x*z;for(ae=0;ae0;){q<64?(x=q,q=0):(x=64,q-=64);for(var V=v[0]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),p=E+q*S+V*C,T=z+q*P+V*g;var G=0,Z=0,j=S,N=C-x*S,H=P,ie=g-x*P;for(Z=0;Z0;){Z<64?(C=Z,Z=0):(C=64,Z-=64);for(var j=v[0]|0;j>0;){j<64?(L=j,j=0):(L=64,j-=64);for(var N=v[1]|0;N>0;){N<64?(x=N,N=0):(x=64,N-=64),p=V+Z*P+j*S+N*g,T=G+Z*q+j*E+N*z;var H=0,ie=0,ae=0,_e=P,Ee=S-C*P,Ce=g-L*S,ge=q,re=E-C*q,Se=z-L*E;for(ae=0;aek;){H=0,ie=G-x;t:for(j=0;j_e)break t;ie+=E,H+=z}for(H=G,ie=G-x,j=0;j>1,N=j-V,H=j+V,ie=G,ae=N,_e=j,Ee=H,Ce=Z,ge=M+1,re=T-1,Se=!0,ke,be,Be,Le,me,Pe,ce,He,lt,mt=0,Ht=0,at=0,ct,ar,Vt,rr,tt,je,Ue,Ae,rt,St,Tt,dt,Et,pt,jt,or,mr=P,Ar=b(mr),ei=b(mr);ar=C*ie,Vt=C*ae,or=x;e:for(ct=0;ct0){be=ie,ie=ae,ae=be;break e}if(at<0)break e;or+=z}ar=C*Ee,Vt=C*Ce,or=x;e:for(ct=0;ct0){be=Ee,Ee=Ce,Ce=be;break e}if(at<0)break e;or+=z}ar=C*ie,Vt=C*_e,or=x;e:for(ct=0;ct0){be=ie,ie=_e,_e=be;break e}if(at<0)break e;or+=z}ar=C*ae,Vt=C*_e,or=x;e:for(ct=0;ct0){be=ae,ae=_e,_e=be;break e}if(at<0)break e;or+=z}ar=C*ie,Vt=C*Ee,or=x;e:for(ct=0;ct0){be=ie,ie=Ee,Ee=be;break e}if(at<0)break e;or+=z}ar=C*_e,Vt=C*Ee,or=x;e:for(ct=0;ct0){be=_e,_e=Ee,Ee=be;break e}if(at<0)break e;or+=z}ar=C*ae,Vt=C*Ce,or=x;e:for(ct=0;ct0){be=ae,ae=Ce,Ce=be;break e}if(at<0)break e;or+=z}ar=C*ae,Vt=C*_e,or=x;e:for(ct=0;ct0){be=ae,ae=_e,_e=be;break e}if(at<0)break e;or+=z}ar=C*Ee,Vt=C*Ce,or=x;e:for(ct=0;ct0){be=Ee,Ee=Ce,Ce=be;break e}if(at<0)break e;or+=z}for(ar=C*ie,Vt=C*ae,rr=C*_e,tt=C*Ee,je=C*Ce,Ue=C*G,Ae=C*j,rt=C*Z,jt=0,or=x,ct=0;ct0)re--;else if(at<0){for(ar=C*Pe,Vt=C*ge,rr=C*re,or=x,ct=0;ct0)for(;;){ce=x+re*C,jt=0;e:for(ct=0;ct0){if(--reZ){e:for(;;){for(ce=x+ge*C,jt=0,or=x,ct=0;ct1&&k?T(p,k[0],k[1]):T(p)}var d={"uint32,1,0":function(m,b){return function(p){var k=p.data,M=p.offset|0,T=p.shape,L=p.stride,x=L[0]|0,C=T[0]|0,S=L[1]|0,g=T[1]|0,P=S,E=S,z=1;C<=32?m(0,C-1,k,M,x,S,C,g,P,E,z):b(0,C-1,k,M,x,S,C,g,P,E,z)}}};function v(m,b){var p=[b,m].join(","),k=d[p],M=c(m,b),T=h(m,b,M);return k(M,T)}i.exports=v},446:function(i,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,d=[f,h],v=d.join(":"),m=l[v];return m||(l[v]=m=s(f,h)),m(c),c}i.exports=u},9618:function(i,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(b,p){return b[0]-p[0]}function c(){var b=this.stride,p=new Array(b.length),k;for(k=0;k=0&&(S=x|0,C+=P*S,g-=S),new M(this.data,g,P,C)},T.step=function(x){var C=this.shape[0],S=this.stride[0],g=this.offset,P=0,E=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(g+=S*(C-1),C=E(-C/P)):C=E(C/P),S*=P),new M(this.data,C,S,g)},T.transpose=function(x){x=x===void 0?0:x|0;var C=this.shape,S=this.stride;return new M(this.data,C[x],S[x],this.offset)},T.pick=function(x){var C=[],S=[],g=this.offset;typeof x=="number"&&x>=0?g=g+this.stride[0]*x|0:(C.push(this.shape[0]),S.push(this.stride[0]));var P=p[C.length+1];return P(this.data,C,S,g)},function(x,C,S,g){return new M(x,C[0],S[0],g)}},2:function(b,p,k){function M(L,x,C,S,g,P){this.data=L,this.shape=[x,C],this.stride=[S,g],this.offset=P|0}var T=M.prototype;return T.dtype=b,T.dimension=2,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(T,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),T.set=function(x,C,S){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C,S):this.data[this.offset+this.stride[0]*x+this.stride[1]*C]=S},T.get=function(x,C){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C):this.data[this.offset+this.stride[0]*x+this.stride[1]*C]},T.index=function(x,C){return this.offset+this.stride[0]*x+this.stride[1]*C},T.hi=function(x,C){return new M(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,this.stride[0],this.stride[1],this.offset)},T.lo=function(x,C){var S=this.offset,g=0,P=this.shape[0],E=this.shape[1],z=this.stride[0],q=this.stride[1];return typeof x=="number"&&x>=0&&(g=x|0,S+=z*g,P-=g),typeof C=="number"&&C>=0&&(g=C|0,S+=q*g,E-=g),new M(this.data,P,E,z,q,S)},T.step=function(x,C){var S=this.shape[0],g=this.shape[1],P=this.stride[0],E=this.stride[1],z=this.offset,q=0,V=Math.ceil;return typeof x=="number"&&(q=x|0,q<0?(z+=P*(S-1),S=V(-S/q)):S=V(S/q),P*=q),typeof C=="number"&&(q=C|0,q<0?(z+=E*(g-1),g=V(-g/q)):g=V(g/q),E*=q),new M(this.data,S,g,P,E,z)},T.transpose=function(x,C){x=x===void 0?0:x|0,C=C===void 0?1:C|0;var S=this.shape,g=this.stride;return new M(this.data,S[x],S[C],g[x],g[C],this.offset)},T.pick=function(x,C){var S=[],g=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(S.push(this.shape[0]),g.push(this.stride[0])),typeof C=="number"&&C>=0?P=P+this.stride[1]*C|0:(S.push(this.shape[1]),g.push(this.stride[1]));var E=p[S.length+1];return E(this.data,S,g,P)},function(x,C,S,g){return new M(x,C[0],C[1],S[0],S[1],g)}},3:function(b,p,k){function M(L,x,C,S,g,P,E,z){this.data=L,this.shape=[x,C,S],this.stride=[g,P,E],this.offset=z|0}var T=M.prototype;return T.dtype=b,T.dimension=3,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(T,"order",{get:function(){var x=Math.abs(this.stride[0]),C=Math.abs(this.stride[1]),S=Math.abs(this.stride[2]);return x>C?C>S?[2,1,0]:x>S?[1,2,0]:[1,0,2]:x>S?[2,0,1]:S>C?[0,1,2]:[0,2,1]}}),T.set=function(x,C,S,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S,g):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S]=g},T.get=function(x,C,S){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S]},T.index=function(x,C,S){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S},T.hi=function(x,C,S){return new M(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(x,C,S){var g=this.offset,P=0,E=this.shape[0],z=this.shape[1],q=this.shape[2],V=this.stride[0],G=this.stride[1],Z=this.stride[2];return typeof x=="number"&&x>=0&&(P=x|0,g+=V*P,E-=P),typeof C=="number"&&C>=0&&(P=C|0,g+=G*P,z-=P),typeof S=="number"&&S>=0&&(P=S|0,g+=Z*P,q-=P),new M(this.data,E,z,q,V,G,Z,g)},T.step=function(x,C,S){var g=this.shape[0],P=this.shape[1],E=this.shape[2],z=this.stride[0],q=this.stride[1],V=this.stride[2],G=this.offset,Z=0,j=Math.ceil;return typeof x=="number"&&(Z=x|0,Z<0?(G+=z*(g-1),g=j(-g/Z)):g=j(g/Z),z*=Z),typeof C=="number"&&(Z=C|0,Z<0?(G+=q*(P-1),P=j(-P/Z)):P=j(P/Z),q*=Z),typeof S=="number"&&(Z=S|0,Z<0?(G+=V*(E-1),E=j(-E/Z)):E=j(E/Z),V*=Z),new M(this.data,g,P,E,z,q,V,G)},T.transpose=function(x,C,S){x=x===void 0?0:x|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0;var g=this.shape,P=this.stride;return new M(this.data,g[x],g[C],g[S],P[x],P[C],P[S],this.offset)},T.pick=function(x,C,S){var g=[],P=[],E=this.offset;typeof x=="number"&&x>=0?E=E+this.stride[0]*x|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof C=="number"&&C>=0?E=E+this.stride[1]*C|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof S=="number"&&S>=0?E=E+this.stride[2]*S|0:(g.push(this.shape[2]),P.push(this.stride[2]));var z=p[g.length+1];return z(this.data,g,P,E)},function(x,C,S,g){return new M(x,C[0],C[1],C[2],S[0],S[1],S[2],g)}},4:function(b,p,k){function M(L,x,C,S,g,P,E,z,q,V){this.data=L,this.shape=[x,C,S,g],this.stride=[P,E,z,q],this.offset=V|0}var T=M.prototype;return T.dtype=b,T.dimension=4,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(T,"order",{get:k}),T.set=function(x,C,S,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g]=P},T.get=function(x,C,S,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g]},T.index=function(x,C,S,g){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g},T.hi=function(x,C,S,g){return new M(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,typeof g!="number"||g<0?this.shape[3]:g|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},T.lo=function(x,C,S,g){var P=this.offset,E=0,z=this.shape[0],q=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.stride[0],j=this.stride[1],N=this.stride[2],H=this.stride[3];return typeof x=="number"&&x>=0&&(E=x|0,P+=Z*E,z-=E),typeof C=="number"&&C>=0&&(E=C|0,P+=j*E,q-=E),typeof S=="number"&&S>=0&&(E=S|0,P+=N*E,V-=E),typeof g=="number"&&g>=0&&(E=g|0,P+=H*E,G-=E),new M(this.data,z,q,V,G,Z,j,N,H,P)},T.step=function(x,C,S,g){var P=this.shape[0],E=this.shape[1],z=this.shape[2],q=this.shape[3],V=this.stride[0],G=this.stride[1],Z=this.stride[2],j=this.stride[3],N=this.offset,H=0,ie=Math.ceil;return typeof x=="number"&&(H=x|0,H<0?(N+=V*(P-1),P=ie(-P/H)):P=ie(P/H),V*=H),typeof C=="number"&&(H=C|0,H<0?(N+=G*(E-1),E=ie(-E/H)):E=ie(E/H),G*=H),typeof S=="number"&&(H=S|0,H<0?(N+=Z*(z-1),z=ie(-z/H)):z=ie(z/H),Z*=H),typeof g=="number"&&(H=g|0,H<0?(N+=j*(q-1),q=ie(-q/H)):q=ie(q/H),j*=H),new M(this.data,P,E,z,q,V,G,Z,j,N)},T.transpose=function(x,C,S,g){x=x===void 0?0:x|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0,g=g===void 0?3:g|0;var P=this.shape,E=this.stride;return new M(this.data,P[x],P[C],P[S],P[g],E[x],E[C],E[S],E[g],this.offset)},T.pick=function(x,C,S,g){var P=[],E=[],z=this.offset;typeof x=="number"&&x>=0?z=z+this.stride[0]*x|0:(P.push(this.shape[0]),E.push(this.stride[0])),typeof C=="number"&&C>=0?z=z+this.stride[1]*C|0:(P.push(this.shape[1]),E.push(this.stride[1])),typeof S=="number"&&S>=0?z=z+this.stride[2]*S|0:(P.push(this.shape[2]),E.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(P.push(this.shape[3]),E.push(this.stride[3]));var q=p[P.length+1];return q(this.data,P,E,z)},function(x,C,S,g){return new M(x,C[0],C[1],C[2],C[3],S[0],S[1],S[2],S[3],g)}},5:function(p,k,M){function T(x,C,S,g,P,E,z,q,V,G,Z,j){this.data=x,this.shape=[C,S,g,P,E],this.stride=[z,q,V,G,Z],this.offset=j|0}var L=T.prototype;return L.dtype=p,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:M}),L.set=function(C,S,g,P,E,z){return p==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E,z):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E]=z},L.get=function(C,S,g,P,E){return p==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E]},L.index=function(C,S,g,P,E){return this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E},L.hi=function(C,S,g,P,E){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:C|0,typeof S!="number"||S<0?this.shape[1]:S|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof E!="number"||E<0?this.shape[4]:E|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(C,S,g,P,E){var z=this.offset,q=0,V=this.shape[0],G=this.shape[1],Z=this.shape[2],j=this.shape[3],N=this.shape[4],H=this.stride[0],ie=this.stride[1],ae=this.stride[2],_e=this.stride[3],Ee=this.stride[4];return typeof C=="number"&&C>=0&&(q=C|0,z+=H*q,V-=q),typeof S=="number"&&S>=0&&(q=S|0,z+=ie*q,G-=q),typeof g=="number"&&g>=0&&(q=g|0,z+=ae*q,Z-=q),typeof P=="number"&&P>=0&&(q=P|0,z+=_e*q,j-=q),typeof E=="number"&&E>=0&&(q=E|0,z+=Ee*q,N-=q),new T(this.data,V,G,Z,j,N,H,ie,ae,_e,Ee,z)},L.step=function(C,S,g,P,E){var z=this.shape[0],q=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.shape[4],j=this.stride[0],N=this.stride[1],H=this.stride[2],ie=this.stride[3],ae=this.stride[4],_e=this.offset,Ee=0,Ce=Math.ceil;return typeof C=="number"&&(Ee=C|0,Ee<0?(_e+=j*(z-1),z=Ce(-z/Ee)):z=Ce(z/Ee),j*=Ee),typeof S=="number"&&(Ee=S|0,Ee<0?(_e+=N*(q-1),q=Ce(-q/Ee)):q=Ce(q/Ee),N*=Ee),typeof g=="number"&&(Ee=g|0,Ee<0?(_e+=H*(V-1),V=Ce(-V/Ee)):V=Ce(V/Ee),H*=Ee),typeof P=="number"&&(Ee=P|0,Ee<0?(_e+=ie*(G-1),G=Ce(-G/Ee)):G=Ce(G/Ee),ie*=Ee),typeof E=="number"&&(Ee=E|0,Ee<0?(_e+=ae*(Z-1),Z=Ce(-Z/Ee)):Z=Ce(Z/Ee),ae*=Ee),new T(this.data,z,q,V,G,Z,j,N,H,ie,ae,_e)},L.transpose=function(C,S,g,P,E){C=C===void 0?0:C|0,S=S===void 0?1:S|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,E=E===void 0?4:E|0;var z=this.shape,q=this.stride;return new T(this.data,z[C],z[S],z[g],z[P],z[E],q[C],q[S],q[g],q[P],q[E],this.offset)},L.pick=function(C,S,g,P,E){var z=[],q=[],V=this.offset;typeof C=="number"&&C>=0?V=V+this.stride[0]*C|0:(z.push(this.shape[0]),q.push(this.stride[0])),typeof S=="number"&&S>=0?V=V+this.stride[1]*S|0:(z.push(this.shape[1]),q.push(this.stride[1])),typeof g=="number"&&g>=0?V=V+this.stride[2]*g|0:(z.push(this.shape[2]),q.push(this.stride[2])),typeof P=="number"&&P>=0?V=V+this.stride[3]*P|0:(z.push(this.shape[3]),q.push(this.stride[3])),typeof E=="number"&&E>=0?V=V+this.stride[4]*E|0:(z.push(this.shape[4]),q.push(this.stride[4]));var G=k[z.length+1];return G(this.data,z,q,V)},function(C,S,g,P){return new T(C,S[0],S[1],S[2],S[3],S[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var k=p===-1?"T":String(p),M=f[k];return p===-1?M(b):p===0?M(b,v[b][0]):M(b,v[b],c)}function d(b){if(s(b))return"buffer";if(l)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var v={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function m(b,p,k,M){if(b===void 0){var g=v.array[0];return g([])}else typeof b=="number"&&(b=[b]);p===void 0&&(p=[b.length]);var T=p.length;if(k===void 0){k=new Array(T);for(var L=T-1,x=1;L>=0;--L)k[L]=x,x*=p[L]}if(M===void 0){M=0;for(var L=0;L>>0;i.exports=c;function c(f,h){if(isNaN(f)||isNaN(h))return NaN;if(f===h)return f;if(f===0)return h<0?-l:l;var d=s.hi(f),v=s.lo(f);return h>f==f>0?v===u?(d+=1,v=0):v+=1:v===0?(v=u,d-=1):v-=1,s.pack(v,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),d=c===void 0?o:c,v=0;vd)for(var z=h[p],q=1/Math.sqrt(S*P),E=0;E<3;++E){var V=(E+1)%3,G=(E+2)%3;z[E]+=q*(g[V]*C[G]-g[G]*C[V])}}for(var v=0;vd)for(var q=1/Math.sqrt(Z),E=0;E<3;++E)z[E]*=q;else for(var E=0;E<3;++E)z[E]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),d=c===void 0?s:c,v=0;vd?L=1/Math.sqrt(L):L=0;for(var p=0;p<3;++p)T[p]*=L;h[v]=T}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,l,u,c,f,h,d,v,m){var b=s+f+m;if(p>0){var p=Math.sqrt(b+1);o[0]=.5*(h-v)/p,o[1]=.5*(d-u)/p,o[2]=.5*(l-f)/p,o[3]=.5*p}else{var k=Math.max(s,f,m),p=Math.sqrt(2*k-b+1);s>=k?(o[0]=.5*p,o[1]=.5*(c+l)/p,o[2]=.5*(d+u)/p,o[3]=.5*(h-v)/p):f>=k?(o[0]=.5*(l+c)/p,o[1]=.5*p,o[2]=.5*(v+h)/p,o[3]=.5*(d-u)/p):(o[0]=.5*(u+d)/p,o[1]=.5*(h+v)/p,o[2]=.5*p,o[3]=.5*(l-c)/p)}return o}},9977:function(i,a,o){"use strict";i.exports=p;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(k,M,T){return Math.sqrt(Math.pow(k,2)+Math.pow(M,2)+Math.pow(T,2))}function d(k,M,T,L){return Math.sqrt(Math.pow(k,2)+Math.pow(M,2)+Math.pow(T,2)+Math.pow(L,2))}function v(k,M){var T=M[0],L=M[1],x=M[2],C=M[3],S=d(T,L,x,C);S>1e-6?(k[0]=T/S,k[1]=L/S,k[2]=x/S,k[3]=C/S):(k[0]=k[1]=k[2]=0,k[3]=1)}function m(k,M,T){this.radius=s([T]),this.center=s(M),this.rotation=s(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=m.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var M=this.computedRotation;v(M,M);var T=this.computedMatrix;u(T,M);var L=this.computedCenter,x=this.computedEye,C=this.computedUp,S=Math.exp(this.computedRadius[0]);x[0]=L[0]+S*T[2],x[1]=L[1]+S*T[6],x[2]=L[2]+S*T[10],C[0]=T[1],C[1]=T[5],C[2]=T[9];for(var g=0;g<3;++g){for(var P=0,E=0;E<3;++E)P+=T[g+4*E]*x[E];T[12+g]=-P}},b.getMatrix=function(k,M){this.recalcMatrix(k);var T=this.computedMatrix;if(M){for(var L=0;L<16;++L)M[L]=T[L];return M}return T},b.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},b.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},b.pan=function(k,M,T,L){M=M||0,T=T||0,L=L||0,this.recalcMatrix(k);var x=this.computedMatrix,C=x[1],S=x[5],g=x[9],P=h(C,S,g);C/=P,S/=P,g/=P;var E=x[0],z=x[4],q=x[8],V=E*C+z*S+q*g;E-=C*V,z-=S*V,q-=g*V;var G=h(E,z,q);E/=G,z/=G,q/=G;var Z=x[2],j=x[6],N=x[10],H=Z*C+j*S+N*g,ie=Z*E+j*z+N*q;Z-=H*C+ie*E,j-=H*S+ie*z,N-=H*g+ie*q;var ae=h(Z,j,N);Z/=ae,j/=ae,N/=ae;var _e=E*M+C*T,Ee=z*M+S*T,Ce=q*M+g*T;this.center.move(k,_e,Ee,Ce);var ge=Math.exp(this.computedRadius[0]);ge=Math.max(1e-4,ge+L),this.radius.set(k,Math.log(ge))},b.rotate=function(k,M,T,L){this.recalcMatrix(k),M=M||0,T=T||0;var x=this.computedMatrix,C=x[0],S=x[4],g=x[8],P=x[1],E=x[5],z=x[9],q=x[2],V=x[6],G=x[10],Z=M*C+T*P,j=M*S+T*E,N=M*g+T*z,H=-(V*N-G*j),ie=-(G*Z-q*N),ae=-(q*j-V*Z),_e=Math.sqrt(Math.max(0,1-Math.pow(H,2)-Math.pow(ie,2)-Math.pow(ae,2))),Ee=d(H,ie,ae,_e);Ee>1e-6?(H/=Ee,ie/=Ee,ae/=Ee,_e/=Ee):(H=ie=ae=0,_e=1);var Ce=this.computedRotation,ge=Ce[0],re=Ce[1],Se=Ce[2],ke=Ce[3],be=ge*_e+ke*H+re*ae-Se*ie,Be=re*_e+ke*ie+Se*H-ge*ae,Le=Se*_e+ke*ae+ge*ie-re*H,me=ke*_e-ge*H-re*ie-Se*ae;if(L){H=q,ie=V,ae=G;var Pe=Math.sin(L)/h(H,ie,ae);H*=Pe,ie*=Pe,ae*=Pe,_e=Math.cos(M),be=be*_e+me*H+Be*ae-Le*ie,Be=Be*_e+me*ie+Le*H-be*ae,Le=Le*_e+me*ae+be*ie-Be*H,me=me*_e-be*H-Be*ie-Le*ae}var ce=d(be,Be,Le,me);ce>1e-6?(be/=ce,Be/=ce,Le/=ce,me/=ce):(be=Be=Le=0,me=1),this.rotation.set(k,be,Be,Le,me)},b.lookAt=function(k,M,T,L){this.recalcMatrix(k),T=T||this.computedCenter,M=M||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;l(x,M,T,L);var C=this.computedRotation;f(C,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),v(C,C),this.rotation.set(k,C[0],C[1],C[2],C[3]);for(var S=0,g=0;g<3;++g)S+=Math.pow(T[g]-M[g],2);this.radius.set(k,.5*Math.log(Math.max(S,1e-6))),this.center.set(k,T[0],T[1],T[2])},b.translate=function(k,M,T,L){this.center.move(k,M||0,T||0,L||0)},b.setMatrix=function(k,M){var T=this.computedRotation;f(T,M[0],M[1],M[2],M[4],M[5],M[6],M[8],M[9],M[10]),v(T,T),this.rotation.set(k,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;c(L,M);var x=L[15];if(Math.abs(x)>1e-6){var C=L[12]/x,S=L[13]/x,g=L[14]/x;this.recalcMatrix(k);var P=Math.exp(this.computedRadius[0]);this.center.set(k,C-L[2]*P,S-L[6]*P,g-L[10]*P),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},b.setDistance=function(k,M){M>0&&this.radius.set(k,Math.log(M))},b.setDistanceLimits=function(k,M){k>0?k=Math.log(k):k=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=M},b.getDistanceLimits=function(k){var M=this.radius.bounds;return k?(k[0]=Math.exp(M[0][0]),k[1]=Math.exp(M[1][0]),k):[Math.exp(M[0][0]),Math.exp(M[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(k){var M=this.lastT(),T=k.center;T&&this.center.set(M,T[0],T[1],T[2]);var L=k.rotation;L&&this.rotation.set(M,L[0],L[1],L[2],L[3]);var x=k.distance;x&&x>0&&this.radius.set(M,Math.log(x)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function p(k){k=k||{};var M=k.center||[0,0,0],T=k.rotation||[0,0,0,1],L=k.radius||1;M=[].slice.call(M,0,3),T=[].slice.call(T,0,4),v(T,T);var x=new m(T,M,Math.log(L));return x.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&x.lookAt(0,k.eye,k.center,k.up),x}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,d=[new Array(f),new Array(f)],v=0;v0){z=d[G][P][0],V=G;break}q=z[V^1];for(var Z=0;Z<2;++Z)for(var j=d[Z][P],N=0;N0&&(z=H,q=ie,V=Z)}return E||z&&p(z,V),q}function M(g,P){var E=d[P][g][0],z=[g];p(E,P);for(var q=E[P^1],V=P;;){for(;q!==g;)z.push(q),q=k(z[z.length-2],q,!1);if(d[0][g].length+d[1][g].length===0)break;var G=z[z.length-1],Z=g,j=z[1],N=k(G,Z,!0);if(s(c[G],c[Z],c[j],c[N])<0)break;z.push(g),q=k(G,Z)}return z}function T(g,P){return P[1]===P[P.length-1]}for(var v=0;v0;){var C=d[0][v].length,S=M(v,L);T(x,S)?x.push.apply(x,S):(x.length>0&&b.push(x),x=S)}x.length>0&&b.push(x)}return b}},5609:function(i,a,o){"use strict";i.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),d=new Array(c.length),v=[],m=0;m0;){var p=v.pop();h[p]=!1;for(var k=f[p],m=0;m0}C=C.filter(S);for(var g=C.length,P=new Array(g),E=new Array(g),x=0;x0;){var ce=Le.pop(),He=Ee[ce];h(He,function(ct,ar){return ct-ar});var lt=He.length,mt=me[ce],Ht;if(mt===0){var j=C[ce];Ht=[j]}for(var x=0;x=0)&&(me[at]=mt^1,Le.push(at),mt===0)){var j=C[at];Be(j)||(j.reverse(),Ht.push(j))}}mt===0&&Pe.push(Ht)}return Pe}},5085:function(i,a,o){i.exports=k;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(M){return function(T,L){var x=M[T];return x?!!x.queryPoint(L,f):!1}}function d(M){for(var T={},L=0;L0&&T[x]===L[0])C=M[x-1];else return 1;for(var S=1;C;){var g=C.key,P=s(L,g[0],g[1]);if(g[0][0]0)S=-1,C=C.right;else return 0;else if(P>0)C=C.left;else if(P<0)S=1,C=C.right;else return 0}return S}}function m(M){return 1}function b(M){return function(L){return M(L[0],L[1])?0:1}}function p(M,T){return function(x){return M(x[0],x[1])?0:T(x)}}function k(M){for(var T=M.length,L=[],x=[],C=0,S=0;S=m?(g=1,E=m+2*k+T):(g=-k/m,E=k*g+T)):(g=0,M>=0?(P=0,E=T):-M>=p?(P=1,E=p+2*M+T):(P=-M/p,E=M*P+T));else if(P<0)P=0,k>=0?(g=0,E=T):-k>=m?(g=1,E=m+2*k+T):(g=-k/m,E=k*g+T);else{var z=1/S;g*=z,P*=z,E=g*(m*g+b*P+2*k)+P*(b*g+p*P+2*M)+T}else{var q,V,G,Z;g<0?(q=b+k,V=p+M,V>q?(G=V-q,Z=m-2*b+p,G>=Z?(g=1,P=0,E=m+2*k+T):(g=G/Z,P=1-g,E=g*(m*g+b*P+2*k)+P*(b*g+p*P+2*M)+T)):(g=0,V<=0?(P=1,E=p+2*M+T):M>=0?(P=0,E=T):(P=-M/p,E=M*P+T))):P<0?(q=b+M,V=m+k,V>q?(G=V-q,Z=m-2*b+p,G>=Z?(P=1,g=0,E=p+2*M+T):(P=G/Z,g=1-P,E=g*(m*g+b*P+2*k)+P*(b*g+p*P+2*M)+T)):(P=0,V<=0?(g=1,E=m+2*k+T):k>=0?(g=0,E=T):(g=-k/m,E=k*g+T))):(G=p+M-b-k,G<=0?(g=0,P=1,E=p+2*M+T):(Z=m-2*b+p,G>=Z?(g=1,P=0,E=m+2*k+T):(g=G/Z,P=1-g,E=g*(m*g+b*P+2*k)+P*(b*g+p*P+2*M)+T)))}for(var j=1-g-P,v=0;v0){var p=f[d-1];if(s(m,p)===0&&u(p)!==b){d-=1;continue}}f[d++]=m}}return f.length=d,f}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var c=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=c)return a.substr(0,c);for(;c>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,c),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,c=s-2;c>=0;--c){var f=l,h=o[c];l=f+h;var d=l-f,v=h-d;v&&(o[--u]=l,l=v)}for(var m=0,c=u;c0){if(V<=0)return G;Z=q+V}else if(q<0){if(V>=0)return G;Z=-(q+V)}else return G;var j=d*Z;return G>=j||G<=-j?G:M(P,E,z)},function(P,E,z,q){var V=P[0]-q[0],G=E[0]-q[0],Z=z[0]-q[0],j=P[1]-q[1],N=E[1]-q[1],H=z[1]-q[1],ie=P[2]-q[2],ae=E[2]-q[2],_e=z[2]-q[2],Ee=G*H,Ce=Z*N,ge=Z*j,re=V*H,Se=V*N,ke=G*j,be=ie*(Ee-Ce)+ae*(ge-re)+_e*(Se-ke),Be=(Math.abs(Ee)+Math.abs(Ce))*Math.abs(ie)+(Math.abs(ge)+Math.abs(re))*Math.abs(ae)+(Math.abs(Se)+Math.abs(ke))*Math.abs(_e),Le=v*Be;return be>Le||-be>Le?be:T(P,E,z,q)}];function x(g){var P=L[g.length];return P||(P=L[g.length]=k(g.length)),P.apply(void 0,g)}function C(g,P,E,z,q,V,G){return function(j,N,H,ie,ae){switch(arguments.length){case 0:case 1:return 0;case 2:return z(j,N);case 3:return q(j,N,H);case 4:return V(j,N,H,ie);case 5:return G(j,N,H,ie,ae)}for(var _e=new Array(arguments.length),Ee=0;Ee0&&m>0||v<0&&m<0)return!1;var b=s(h,c,f),p=s(d,c,f);return b>0&&p>0||b<0&&p<0?!1:v===0&&m===0&&b===0&&p===0?l(c,f,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,d=s-f,v=d+h;return v?[v,u]:[u]}function o(s,l){var u=s.length|0,c=l.length|0;if(u===1&&c===1)return a(s[0],-l[0]);var f=u+c,h=new Array(f),d=0,v=0,m=0,b=Math.abs,p=s[v],k=b(p),M=-l[m],T=b(M),L,x;k=c?(L=p,v+=1,v=c?(L=p,v+=1,v>1,M=f[2*k+1];if(M===m)return k;m>1,M=f[2*k+1];if(M===m)return k;m>1,M=f[2*k+1];if(M===m)return k;m>1,M=f[2*k+1];if(M===m)return k;m>1,Z=d(P[G],E);Z<=0?(Z===0&&(V=G),z=G+1):Z>0&&(q=G-1)}return V}s=p;function k(P,E){for(var z=new Array(P.length),q=0,V=z.length;q=P.length||d(P[Ee],G)!==0););}return z}s=k;function M(P,E){if(!E)return k(b(L(P,0)),P,0);for(var z=new Array(E),q=0;q>>H&1&&N.push(V[H]);E.push(N)}return m(E)}s=T;function L(P,E){if(E<0)return[];for(var z=[],q=(1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var P=0,E=Math.max,z=0,q=g.length;z>1,G=h(g[V],P);G<=0?(G===0&&(q=V),E=V+1):G>0&&(z=V-1)}return q}a.findCell=b;function p(g,P){for(var E=new Array(g.length),z=0,q=E.length;z=g.length||h(g[_e],V)!==0););}return E}a.incidence=p;function k(g,P){if(!P)return p(m(T(g,0)),g,0);for(var E=new Array(P),z=0;z>>N&1&&j.push(q[N]);P.push(j)}return v(P)}a.explode=M;function T(g,P){if(P<0)return[];for(var E=[],z=(1<>1:(re>>1)-1}function z(re){for(var Se=P(re);;){var ke=Se,be=2*re+1,Be=2*(re+1),Le=re;if(be0;){var ke=E(re);if(ke>=0){var be=P(ke);if(Se0){var re=j[0];return g(0,ie-1),ie-=1,z(0),re}return-1}function G(re,Se){var ke=j[re];return k[ke]===Se?re:(k[ke]=-1/0,q(re),V(),k[ke]=Se,ie+=1,q(ie-1))}function Z(re){if(!M[re]){M[re]=!0;var Se=b[re],ke=p[re];b[ke]>=0&&(b[ke]=Se),p[Se]>=0&&(p[Se]=ke),N[Se]>=0&&G(N[Se],S(Se)),N[ke]>=0&&G(N[ke],S(ke))}}for(var j=[],N=new Array(v),T=0;T>1;T>=0;--T)z(T);for(;;){var ae=V();if(ae<0||k[ae]>d)break;Z(ae)}for(var _e=[],T=0;T=0&&ke>=0&&Se!==ke){var be=N[Se],Be=N[ke];be!==Be&&ge.push([be,Be])}}),l.unique(l.normalize(ge)),{positions:_e,edges:ge}}},1303:function(i,a,o){"use strict";i.exports=u;var s=o(3250);function l(c,f){var h,d;if(f[0][0]f[1][0])h=f[1],d=f[0];else{var v=Math.min(c[0][1],c[1][1]),m=Math.max(c[0][1],c[1][1]),b=Math.min(f[0][1],f[1][1]),p=Math.max(f[0][1],f[1][1]);return mp?v-p:m-p}var k,M;c[0][1]f[1][0])h=f[1],d=f[0];else return l(f,c);var v,m;if(c[0][0]c[1][0])v=c[1],m=c[0];else return-l(c,f);var b=s(h,d,m),p=s(h,d,v);if(b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;if(b=s(m,v,d),p=s(m,v,h),b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;return d[0]-m[0]}},4209:function(i,a,o){"use strict";i.exports=p;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(k,M,T){this.slabs=k,this.coordinates=M,this.horizontal=T}var h=f.prototype;function d(k,M){return k.y-M}function v(k,M){for(var T=null;k;){var L=k.key,x,C;L[0][0]0)if(M[0]!==L[1][0])T=k,k=k.right;else{var g=v(k.right,M);if(g)return g;k=k.left}else{if(M[0]!==L[1][0])return k;var g=v(k.right,M);if(g)return g;k=k.left}}return T}h.castUp=function(k){var M=s.le(this.coordinates,k[0]);if(M<0)return-1;var T=this.slabs[M],L=v(this.slabs[M],k),x=-1;if(L&&(x=L.value),this.coordinates[M]===k[0]){var C=null;if(L&&(C=L.key),M>0){var S=v(this.slabs[M-1],k);S&&(C?c(S.key,C)>0&&(C=S.key,x=S.value):(x=S.value,C=S.key))}var g=this.horizontal[M];if(g.length>0){var P=s.ge(g,k[1],d);if(P=g.length)return x;E=g[P]}}if(E.start)if(C){var z=u(C[0],C[1],[k[0],E.y]);C[0][0]>C[1][0]&&(z=-z),z>0&&(x=E.index)}else x=E.index;else E.y!==k[1]&&(x=E.index)}}}return x};function m(k,M,T,L){this.y=k,this.index=M,this.start=T,this.closed=L}function b(k,M,T,L){this.x=k,this.segment=M,this.create=T,this.index=L}function p(k){for(var M=k.length,T=2*M,L=new Array(T),x=0;x1&&(M=1);for(var T=1-M,L=v.length,x=new Array(L),C=0;C0||k>0&&x<0){var C=c(M,x,T,k);b.push(C),p.push(C.slice())}x<0?p.push(T.slice()):x>0?b.push(T.slice()):(b.push(T.slice()),p.push(T.slice())),k=x}return{positive:b,negative:p}}function h(v,m){for(var b=[],p=u(v[v.length-1],m),k=v[v.length-1],M=v[0],T=0;T0||p>0&&L<0)&&b.push(c(k,L,M,p)),L>=0&&b.push(M.slice()),p=L}return b}function d(v,m){for(var b=[],p=u(v[v.length-1],m),k=v[v.length-1],M=v[0],T=0;T0||p>0&&L<0)&&b.push(c(k,L,M,p)),L<=0&&b.push(M.slice()),p=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var l={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function u(v){return f(d(v),arguments)}function c(v,m){return u.apply(null,[v].concat(m||[]))}function f(v,m){var b=1,p=v.length,k,M="",T,L,x,C,S,g,P,E;for(T=0;T=0),x.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,x.width?parseInt(x.width):0);break;case"e":k=x.precision?parseFloat(k).toExponential(x.precision):parseFloat(k).toExponential();break;case"f":k=x.precision?parseFloat(k).toFixed(x.precision):parseFloat(k);break;case"g":k=x.precision?String(Number(k.toPrecision(x.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=x.precision?k.substring(0,x.precision):k;break;case"t":k=String(!!k),k=x.precision?k.substring(0,x.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=x.precision?k.substring(0,x.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=x.precision?k.substring(0,x.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}l.json.test(x.type)?M+=k:(l.number.test(x.type)&&(!P||x.sign)?(E=P?"+":"-",k=k.toString().replace(l.sign,"")):E="",S=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",g=x.width-(E+k).length,C=x.width&&g>0?S.repeat(g):"",M+=x.align?E+k+C:S==="0"?E+C+k:C+E+k)}return M}var h=Object.create(null);function d(v){if(h[v])return h[v];for(var m=v,b,p=[],k=0;m;){if((b=l.text.exec(m))!==null)p.push(b[0]);else if((b=l.modulo.exec(m))!==null)p.push("%");else if((b=l.placeholder.exec(m))!==null){if(b[2]){k|=1;var M=[],T=b[2],L=[];if((L=l.key.exec(T))!==null)for(M.push(L[1]);(T=T.substring(L[0].length))!=="";)if((L=l.key_access.exec(T))!==null)M.push(L[1]);else if((L=l.index_access.exec(T))!==null)M.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=M}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");m=m.substring(b[0].length)}return h[v]=p}a.sprintf=u,a.vsprintf=c,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=c,s=function(){return{sprintf:u,vsprintf:c}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),l=o(781),u={"2d":function(v,m,b){var p=v({order:m,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(M,T,L,x){return M>x|0},vertex:function(M,T,L,x,C,S,g,P,E,z,q,V,G){var Z=(g<<0)+(P<<1)+(E<<2)+(z<<3)|0;if(!(Z===0||Z===15))switch(Z){case 0:q.push([M-.5,T-.5]);break;case 1:q.push([M-.25-.25*(x+L-2*G)/(L-x),T-.25-.25*(C+L-2*G)/(L-C)]);break;case 2:q.push([M-.75-.25*(-x-L+2*G)/(x-L),T-.25-.25*(S+x-2*G)/(x-S)]);break;case 3:q.push([M-.5,T-.5-.5*(C+L+S+x-4*G)/(L-C+x-S)]);break;case 4:q.push([M-.25-.25*(S+C-2*G)/(C-S),T-.75-.25*(-C-L+2*G)/(C-L)]);break;case 5:q.push([M-.5-.5*(x+L+S+C-4*G)/(L-x+C-S),T-.5]);break;case 6:q.push([M-.5-.25*(-x-L+S+C)/(x-L+C-S),T-.5-.25*(-C-L+S+x)/(C-L+x-S)]);break;case 7:q.push([M-.75-.25*(S+C-2*G)/(C-S),T-.75-.25*(S+x-2*G)/(x-S)]);break;case 8:q.push([M-.75-.25*(-S-C+2*G)/(S-C),T-.75-.25*(-S-x+2*G)/(S-x)]);break;case 9:q.push([M-.5-.25*(x+L+-S-C)/(L-x+S-C),T-.5-.25*(C+L+-S-x)/(L-C+S-x)]);break;case 10:q.push([M-.5-.5*(-x-L+-S-C+4*G)/(x-L+S-C),T-.5]);break;case 11:q.push([M-.25-.25*(-S-C+2*G)/(S-C),T-.75-.25*(C+L-2*G)/(L-C)]);break;case 12:q.push([M-.5,T-.5-.5*(-C-L+-S-x+4*G)/(C-L+S-x)]);break;case 13:q.push([M-.75-.25*(x+L-2*G)/(L-x),T-.25-.25*(-S-x+2*G)/(S-x)]);break;case 14:q.push([M-.25-.25*(-x-L+2*G)/(x-L),T-.25-.25*(-C-L+2*G)/(C-L)]);break;case 15:q.push([M-.5,T-.5]);break}},cell:function(M,T,L,x,C,S,g,P,E){C?P.push([M,T]):P.push([T,M])}});return function(k,M){var T=[],L=[];return p(k,T,L,M),{positions:T,cells:L}}}};function c(v,m){var b=v.length+"d",p=u[b];if(p)return p(s,v,m)}function f(v,m){for(var b=l(v,m),p=b.length,k=new Array(p),M=new Array(p),T=0;TMath.max(x,C)?S[2]=1:x>Math.max(L,C)?S[0]=1:S[1]=1;for(var g=0,P=0,E=0;E<3;++E)g+=T[E]*T[E],P+=S[E]*T[E];for(var E=0;E<3;++E)S[E]-=P/g*T[E];return f(S,S),S}function b(T,L,x,C,S,g,P,E){this.center=s(x),this.up=s(C),this.right=s(S),this.radius=s([g]),this.angle=s([P,E]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(T,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var z=0;z<16;++z)this.computedMatrix[z]=.5;this.recalcMatrix(0)}var p=b.prototype;p.setDistanceLimits=function(T,L){T>0?T=Math.log(T):T=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=L},p.getDistanceLimits=function(T){var L=this.radius.bounds[0];return T?(T[0]=Math.exp(L[0][0]),T[1]=Math.exp(L[1][0]),T):[Math.exp(L[0][0]),Math.exp(L[1][0])]},p.recalcMatrix=function(T){this.center.curve(T),this.up.curve(T),this.right.curve(T),this.radius.curve(T),this.angle.curve(T);for(var L=this.computedUp,x=this.computedRight,C=0,S=0,g=0;g<3;++g)S+=L[g]*x[g],C+=L[g]*L[g];for(var P=Math.sqrt(C),E=0,g=0;g<3;++g)x[g]-=L[g]*S/C,E+=x[g]*x[g],L[g]/=P;for(var z=Math.sqrt(E),g=0;g<3;++g)x[g]/=z;var q=this.computedToward;c(q,L,x),f(q,q);for(var V=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],Z=this.computedAngle[1],j=Math.cos(G),N=Math.sin(G),H=Math.cos(Z),ie=Math.sin(Z),ae=this.computedCenter,_e=j*H,Ee=N*H,Ce=ie,ge=-j*ie,re=-N*ie,Se=H,ke=this.computedEye,be=this.computedMatrix,g=0;g<3;++g){var Be=_e*x[g]+Ee*q[g]+Ce*L[g];be[4*g+1]=ge*x[g]+re*q[g]+Se*L[g],be[4*g+2]=Be,be[4*g+3]=0}var Le=be[1],me=be[5],Pe=be[9],ce=be[2],He=be[6],lt=be[10],mt=me*lt-Pe*He,Ht=Pe*ce-Le*lt,at=Le*He-me*ce,ct=d(mt,Ht,at);mt/=ct,Ht/=ct,at/=ct,be[0]=mt,be[4]=Ht,be[8]=at;for(var g=0;g<3;++g)ke[g]=ae[g]+be[2+4*g]*V;for(var g=0;g<3;++g){for(var E=0,ar=0;ar<3;++ar)E+=be[g+4*ar]*ke[ar];be[12+g]=-E}be[15]=1},p.getMatrix=function(T,L){this.recalcMatrix(T);var x=this.computedMatrix;if(L){for(var C=0;C<16;++C)L[C]=x[C];return L}return x};var k=[0,0,0];p.rotate=function(T,L,x,C){if(this.angle.move(T,L,x),C){this.recalcMatrix(T);var S=this.computedMatrix;k[0]=S[2],k[1]=S[6],k[2]=S[10];for(var g=this.computedUp,P=this.computedRight,E=this.computedToward,z=0;z<3;++z)S[4*z]=g[z],S[4*z+1]=P[z],S[4*z+2]=E[z];u(S,S,C,k);for(var z=0;z<3;++z)g[z]=S[4*z],P[z]=S[4*z+1];this.up.set(T,g[0],g[1],g[2]),this.right.set(T,P[0],P[1],P[2])}},p.pan=function(T,L,x,C){L=L||0,x=x||0,C=C||0,this.recalcMatrix(T);var S=this.computedMatrix,g=Math.exp(this.computedRadius[0]),P=S[1],E=S[5],z=S[9],q=d(P,E,z);P/=q,E/=q,z/=q;var V=S[0],G=S[4],Z=S[8],j=V*P+G*E+Z*z;V-=P*j,G-=E*j,Z-=z*j;var N=d(V,G,Z);V/=N,G/=N,Z/=N;var H=V*L+P*x,ie=G*L+E*x,ae=Z*L+z*x;this.center.move(T,H,ie,ae);var _e=Math.exp(this.computedRadius[0]);_e=Math.max(1e-4,_e+C),this.radius.set(T,Math.log(_e))},p.translate=function(T,L,x,C){this.center.move(T,L||0,x||0,C||0)},p.setMatrix=function(T,L,x,C){var S=1;typeof x=="number"&&(S=x|0),(S<0||S>3)&&(S=1);var g=(S+2)%3,P=(S+1)%3;L||(this.recalcMatrix(T),L=this.computedMatrix);var E=L[S],z=L[S+4],q=L[S+8];if(C){var G=Math.abs(E),Z=Math.abs(z),j=Math.abs(q),N=Math.max(G,Z,j);G===N?(E=E<0?-1:1,z=q=0):j===N?(q=q<0?-1:1,E=z=0):(z=z<0?-1:1,E=q=0)}else{var V=d(E,z,q);E/=V,z/=V,q/=V}var H=L[g],ie=L[g+4],ae=L[g+8],_e=H*E+ie*z+ae*q;H-=E*_e,ie-=z*_e,ae-=q*_e;var Ee=d(H,ie,ae);H/=Ee,ie/=Ee,ae/=Ee;var Ce=z*ae-q*ie,ge=q*H-E*ae,re=E*ie-z*H,Se=d(Ce,ge,re);Ce/=Se,ge/=Se,re/=Se,this.center.jump(T,Ue,Ae,rt),this.radius.idle(T),this.up.jump(T,E,z,q),this.right.jump(T,H,ie,ae);var ke,be;if(S===2){var Be=L[1],Le=L[5],me=L[9],Pe=Be*H+Le*ie+me*ae,ce=Be*Ce+Le*ge+me*re;Ht<0?ke=-Math.PI/2:ke=Math.PI/2,be=Math.atan2(ce,Pe)}else{var He=L[2],lt=L[6],mt=L[10],Ht=He*E+lt*z+mt*q,at=He*H+lt*ie+mt*ae,ct=He*Ce+lt*ge+mt*re;ke=Math.asin(v(Ht)),be=Math.atan2(ct,at)}this.angle.jump(T,be,ke),this.recalcMatrix(T);var ar=L[2],Vt=L[6],rr=L[10],tt=this.computedMatrix;l(tt,L);var je=tt[15],Ue=tt[12]/je,Ae=tt[13]/je,rt=tt[14]/je,St=Math.exp(this.computedRadius[0]);this.center.jump(T,Ue-ar*St,Ae-Vt*St,rt-rr*St)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(T){this.center.idle(T),this.up.idle(T),this.right.idle(T),this.radius.idle(T),this.angle.idle(T)},p.flush=function(T){this.center.flush(T),this.up.flush(T),this.right.flush(T),this.radius.flush(T),this.angle.flush(T)},p.setDistance=function(T,L){L>0&&this.radius.set(T,Math.log(L))},p.lookAt=function(T,L,x,C){this.recalcMatrix(T),L=L||this.computedEye,x=x||this.computedCenter,C=C||this.computedUp;var S=C[0],g=C[1],P=C[2],E=d(S,g,P);if(!(E<1e-6)){S/=E,g/=E,P/=E;var z=L[0]-x[0],q=L[1]-x[1],V=L[2]-x[2],G=d(z,q,V);if(!(G<1e-6)){z/=G,q/=G,V/=G;var Z=this.computedRight,j=Z[0],N=Z[1],H=Z[2],ie=S*j+g*N+P*H;j-=ie*S,N-=ie*g,H-=ie*P;var ae=d(j,N,H);if(!(ae<.01&&(j=g*V-P*q,N=P*z-S*V,H=S*q-g*z,ae=d(j,N,H),ae<1e-6))){j/=ae,N/=ae,H/=ae,this.up.set(T,S,g,P),this.right.set(T,j,N,H),this.center.set(T,x[0],x[1],x[2]),this.radius.set(T,Math.log(G));var _e=g*H-P*N,Ee=P*j-S*H,Ce=S*N-g*j,ge=d(_e,Ee,Ce);_e/=ge,Ee/=ge,Ce/=ge;var re=S*z+g*q+P*V,Se=j*z+N*q+H*V,ke=_e*z+Ee*q+Ce*V,be=Math.asin(v(re)),Be=Math.atan2(ke,Se),Le=this.angle._state,me=Le[Le.length-1],Pe=Le[Le.length-2];me=me%(2*Math.PI);var ce=Math.abs(me+2*Math.PI-Be),He=Math.abs(me-Be),lt=Math.abs(me-2*Math.PI-Be);ce0?H.pop():new ArrayBuffer(j)}a.mallocArrayBuffer=k;function M(Z){return new Uint8Array(k(Z),0,Z)}a.mallocUint8=M;function T(Z){return new Uint16Array(k(2*Z),0,Z)}a.mallocUint16=T;function L(Z){return new Uint32Array(k(4*Z),0,Z)}a.mallocUint32=L;function x(Z){return new Int8Array(k(Z),0,Z)}a.mallocInt8=x;function C(Z){return new Int16Array(k(2*Z),0,Z)}a.mallocInt16=C;function S(Z){return new Int32Array(k(4*Z),0,Z)}a.mallocInt32=S;function g(Z){return new Float32Array(k(4*Z),0,Z)}a.mallocFloat32=a.mallocFloat=g;function P(Z){return new Float64Array(k(8*Z),0,Z)}a.mallocFloat64=a.mallocDouble=P;function E(Z){return c?new Uint8ClampedArray(k(Z),0,Z):M(Z)}a.mallocUint8Clamped=E;function z(Z){return f?new BigUint64Array(k(8*Z),0,Z):null}a.mallocBigUint64=z;function q(Z){return h?new BigInt64Array(k(8*Z),0,Z):null}a.mallocBigInt64=q;function V(Z){return new DataView(k(Z),0,Z)}a.mallocDataView=V;function G(Z){Z=s.nextPow2(Z);var j=s.log2(Z),N=m[j];return N.length>0?N.pop():new u(Z)}a.mallocBuffer=G,a.clearCache=function(){for(var j=0;j<32;++j)d.UINT8[j].length=0,d.UINT16[j].length=0,d.UINT32[j].length=0,d.INT8[j].length=0,d.INT16[j].length=0,d.INT32[j].length=0,d.FLOAT[j].length=0,d.DOUBLE[j].length=0,d.BIGUINT64[j].length=0,d.BIGINT64[j].length=0,d.UINT8C[j].length=0,v[j].length=0,m[j].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",H="",ie=N.length,ae=H.length,_e=G[0]===k||G[0]===L,Ee=0,Ce=-ae;Ee>-1&&(Ee=Z.indexOf(N,Ee),!(Ee===-1||(Ce=Z.indexOf(H,Ee+ie),Ce===-1)||Ce<=Ee));){for(var ge=Ee;ge=Ce)j[ge]=null,Z=Z.substr(0,ge)+" "+Z.substr(ge+1);else if(j[ge]!==null){var re=j[ge].indexOf(G[0]);re===-1?j[ge]+=G:_e&&(j[ge]=j[ge].substr(0,re+1)+(1+parseInt(j[ge][re+1]))+j[ge].substr(re+2))}var Se=Ee+ie,ke=Z.substr(Se,Ce-Se),be=ke.indexOf(N);be!==-1?Ee=be:Ee=Ce+ae}return j}function S(V,G,Z){for(var j=G.textAlign||"start",N=G.textBaseline||"alphabetic",H=[1<<30,1<<30],ie=[0,0],ae=V.length,_e=0;_e/g,` -`):Z=Z.replace(/\/g," ");var ie="",ae=[];for(me=0;me-1?parseInt(Ae[1+Tt]):0,pt=dt>-1?parseInt(rt[1+dt]):0;Et!==pt&&(St=St.replace(at(),"?px "),He*=Math.pow(.75,pt-Et),St=St.replace("?px ",at())),ce+=.25*re*(pt-Et)}if(H.superscripts===!0){var jt=Ae.indexOf(k),or=rt.indexOf(k),mr=jt>-1?parseInt(Ae[1+jt]):0,Ar=or>-1?parseInt(rt[1+or]):0;mr!==Ar&&(St=St.replace(at(),"?px "),He*=Math.pow(.75,Ar-mr),St=St.replace("?px ",at())),ce-=.25*re*(Ar-mr)}if(H.bolds===!0){var ei=Ae.indexOf(v)>-1,qr=rt.indexOf(v)>-1;!ei&&qr&&(jr?St=St.replace("italic ","italic bold "):St="bold "+St),ei&&!qr&&(St=St.replace("bold ",""))}if(H.italics===!0){var jr=Ae.indexOf(b)>-1,gt=rt.indexOf(b)>-1;!jr&>&&(St="italic "+St),jr&&!gt&&(St=St.replace("italic ",""))}G.font=St}for(Le=0;Le0&&(N=j.size),j.lineSpacing&&j.lineSpacing>0&&(H=j.lineSpacing),j.styletags&&j.styletags.breaklines&&(ie.breaklines=!!j.styletags.breaklines),j.styletags&&j.styletags.bolds&&(ie.bolds=!!j.styletags.bolds),j.styletags&&j.styletags.italics&&(ie.italics=!!j.styletags.italics),j.styletags&&j.styletags.subscripts&&(ie.subscripts=!!j.styletags.subscripts),j.styletags&&j.styletags.superscripts&&(ie.superscripts=!!j.styletags.superscripts)),Z.font=[j.fontStyle,j.fontVariant,j.fontWeight,N+"px",j.font].filter(function(_e){return _e}).join(" "),Z.textAlign="start",Z.textBaseline="alphabetic",Z.direction="ltr";var ae=g(G,Z,V,N,H,ie);return z(ae,j,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(E){E.permitHostObjects___&&E.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{i.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,v=Object.isExtensible,m="weakmap:",b=m+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var p=new ArrayBuffer(25),k=new Uint8Array(p);crypto.getRandomValues(k),b=m+"rand:"+Array.prototype.map.call(k,function(E){return(E%36).toString(36)}).join("")+"___"}function M(E){return!(E.substr(0,m.length)==m&&E.substr(E.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(z){return h(z).filter(M)}}),"getPropertyNames"in Object){var T=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(z){return T(z).filter(M)}})}function L(E){if(E!==Object(E))throw new TypeError("Not an object: "+E);var z=E[b];if(z&&z.key===E)return z;if(v(E)){z={key:E};try{return d(E,b,{value:z,writable:!1,enumerable:!1,configurable:!1}),z}catch(q){return}}}(function(){var E=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),E(G)}});var z=Object.seal;d(Object,"seal",{value:function(G){return L(G),z(G)}});var q=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),q(G)}})})();function x(E){return E.prototype=null,Object.freeze(E)}var C=!1;function S(){!C&&typeof console!="undefined"&&(C=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,P=function(){this instanceof P||S();var E=[],z=[],q=g++;function V(N,H){var ie,ae=L(N);return ae?q in ae?ae[q]:H:(ie=E.indexOf(N),ie>=0?z[ie]:H)}function G(N){var H=L(N);return H?q in H:E.indexOf(N)>=0}function Z(N,H){var ie,ae=L(N);return ae?ae[q]=H:(ie=E.indexOf(N),ie>=0?z[ie]=H:(ie=E.length,z[ie]=H,E[ie]=N)),this}function j(N){var H=L(N),ie,ae;return H?q in H&&delete H[q]:(ie=E.indexOf(N),ie<0?!1:(ae=E.length-1,E[ie]=void 0,z[ie]=z[ae],E[ie]=E[ae],E.length=ae,z.length=ae,!0))}return Object.create(P.prototype,{get___:{value:x(V)},has___:{value:x(G)},set___:{value:x(Z)},delete___:{value:x(j)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(z,q){return this.get___(z,q)},writable:!0,configurable:!0},has:{value:function(z){return this.has___(z)},writable:!0,configurable:!0},set:{value:function(z,q){return this.set___(z,q)},writable:!0,configurable:!0},delete:{value:function(z){return this.delete___(z)},writable:!0,configurable:!0}}),typeof l=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function E(){this instanceof P||S();var z=new l,q=void 0,V=!1;function G(H,ie){return q?z.has(H)?z.get(H):q.get___(H,ie):z.get(H,ie)}function Z(H){return z.has(H)||(q?q.has___(H):!1)}var j;s?j=function(H,ie){return z.set(H,ie),z.has(H)||(q||(q=new P),q.set(H,ie)),this}:j=function(H,ie){if(V)try{z.set(H,ie)}catch(ae){q||(q=new P),q.set___(H,ie)}else z.set(H,ie);return this};function N(H){var ie=!!z.delete(H);return q&&q.delete___(H)||ie}return Object.create(P.prototype,{get___:{value:x(G)},has___:{value:x(Z)},set___:{value:x(j)},delete___:{value:x(N)},permitHostObjects___:{value:x(function(H){if(H===o)V=!0;else throw new Error("bogus call to permitHostObjects___")})}})}E.prototype=P.prototype,i.exports=E,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}},8284:function(i){i.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}},606:function(i,a,o){var s=o(236);i.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}},3349:function(i){"use strict";function a(){return function(f,h,d,v,m,b){var p=f[0],k=d[0],M=[0],T=k;v|=0;var L=0,x=k;for(L=0;L=0!=S>=0&&m.push(M[0]+.5+.5*(C+S)/(C-S))}v+=x,++M[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(v,m,b){var p=v.dtype,k=v.order,M=[p,k.join()].join(),T=h[M];return T||(h[M]=T=f([p,k])),T(v.shape.slice(0),v.data,v.stride,v.offset|0,m,b)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}i.exports=c({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);MPe.exports=n})()});var AX=ye((cgr,EPe)=>{"use strict";EPe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var PPe=ye((fgr,LPe)=>{"use strict";var kPe=AX();LPe.exports=gIt;var CPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function gIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),kPe[e])r=kPe[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(CPe[h]!==void 0)return CPe[h]}return parseFloat(h)}),l===a&&r.push(1),n=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var RPe=ye((hgr,IPe)=>{"use strict";var mIt=PPe();IPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=mIt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=yIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function yIt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}});var ik=ye((dgr,DPe)=>{DPe.exports=_It;function _It(e,t,r){return tr?r:e:et?t:e}});var tF=ye((vgr,FPe)=>{FPe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var sx=ye((pgr,zPe)=>{"use strict";var xIt=RPe(),rF=ik(),bIt=tF();zPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=bIt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=xIt(t),t[0]/=255,t[1]/=255,t[2]/=255),wIt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=rF(Math.floor(t[0]*255),0,255),i[1]=rF(Math.floor(t[1]*255),0,255),i[2]=rF(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:rF(Math.floor(t[3]*255),0,255)),i)};function wIt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var n1=ye((ggr,qPe)=>{"use strict";var TIt=sx();function AIt(e){return e?TIt(e):[0,0,0,1]}qPe.exports=AIt});var a1=ye((mgr,HPe)=>{"use strict";var VPe=Eo(),SIt=fd(),iF=sx(),nF=tc(),MIt=Ih().defaultLine,OPe=Yd().isArrayOrTypedArray,SX=iF(MIt),GPe=1;function BPe(e,t){var r=e;return r[3]*=t,r}function NPe(e){if(VPe(e))return SX;var t=iF(e);return t.length?t:SX}function UPe(e){return VPe(e)?e:GPe}function EIt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=OPe(n),a=OPe(t),o=nF.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=nF.makeColorScaleFuncFromTrace(e):l=NPe,i?u=function(v,m){return v[m]===void 0?SX:iF(l(v[m]))}:u=NPe,a?c=function(v,m){return v[m]===void 0?GPe:UPe(v[m])}:c=UPe,i||a)for(var d=0;d{"use strict";jPe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var aF=ye((_gr,WPe)=>{"use strict";WPe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var ZPe=ye((xgr,XPe)=>{"use strict";var CIt=Oa();function EX(e,t,r,n){if(!t||!t.visible)return null;for(var i=CIt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=n.c2l(u);n._lowerLogErrorBound||(n._lowerLogErrorBound=f),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function LIt(e){for(var t=0;t{"use strict";var IIt=qd().gl_line3d,YPe=qd().gl_scatter3d,RIt=qd().gl_error3d,DIt=qd().gl_mesh3d,FIt=qd().delaunay_triangulate,o1=Pr(),eIe=n1(),oF=a1().formatColor,zIt=B3(),kX=MX(),qIt=aF(),OIt=ho(),BIt=ip().appendArrayPointValue,NIt=ZPe();function tIe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var LX=tIe.prototype;LX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(o1.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function UIt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function JPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function GIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=UIt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=DIt(u),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};LX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function XIt(e,t){var r=new tIe(e,t.uid);return r.update(t),r}rIe.exports=XIt});var FX=ye((wgr,sIe)=>{"use strict";var s1=pf(),ZIt=ec(),DX=Tu(),PX=vf().axisHoverFormat,{hovertemplateAttrs:YIt,texttemplateAttrs:KIt,templatefallbackAttrs:nIe}=Ll(),aIe=Gl(),JIt=MX(),$It=aF(),$g=Ao().extendFlat,QIt=mc().overrideAll,oIe=t_(),e8t=s1.line,$2=s1.marker,t8t=$2.line,r8t=$g({width:e8t.width,dash:{valType:"enumerated",values:oIe(JIt),dflt:"solid"}},DX("line"));function IX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var RX=sIe.exports=QIt({x:s1.x,y:s1.y,z:{valType:"data_array"},text:$g({},s1.text,{}),texttemplate:KIt(),texttemplatefallback:nIe({editType:"calc"}),hovertext:$g({},s1.hovertext,{}),hovertemplate:YIt(),hovertemplatefallback:nIe(),xhoverformat:PX("x"),yhoverformat:PX("y"),zhoverformat:PX("z"),mode:$g({},s1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:IX("x"),y:IX("y"),z:IX("z")},connectgaps:s1.connectgaps,line:r8t,marker:$g({symbol:{valType:"enumerated",values:oIe($It),dflt:"circle",arrayOk:!0},size:$g({},$2.size,{dflt:8}),sizeref:$2.sizeref,sizemin:$2.sizemin,sizemode:$2.sizemode,opacity:$g({},$2.opacity,{arrayOk:!1}),colorbar:$2.colorbar,line:$g({width:$g({},t8t.width,{arrayOk:!1})},DX("marker.line"))},DX("marker")),textposition:$g({},s1.textposition,{dflt:"top center"}),textfont:ZIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:aIe.opacity,hoverinfo:$g({},aIe.hoverinfo)},"calc","nested");RX.x.editType=RX.y.editType=RX.z.editType="calc+clearAxisTypes"});var cIe=ye((Tgr,uIe)=>{"use strict";var lIe=Oa(),i8t=Pr(),zX=Ru(),n8t=$p(),a8t=D0(),o8t=F0(),s8t=FX();uIe.exports=function(t,r,n,i){function a(d,v){return i8t.coerce(t,r,s8t,d,v)}var o=l8t(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),zX.hasMarkers(r)&&n8t(t,r,n,i,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),zX.hasLines(r)&&(a("connectgaps"),a8t(t,r,n,i,a)),zX.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),o8t(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=lIe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||n,{axis:"z"}),h(t,r,s||l||n,{axis:"y",inherit:"z"}),h(t,r,s||l||n,{axis:"x",inherit:"z"})};function l8t(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=lIe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var hIe=ye((Agr,fIe)=>{"use strict";var u8t=Dm(),c8t=z0();fIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return u8t(n,r),c8t(t,r),n}});var vIe=ye((Sgr,dIe)=>{dIe.exports=f8t;function f8t(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var h8t=vIe();pIe.exports=function(t){return h8t("webgl",t)}});var qX=ye((Egr,yIe)=>{"use strict";var mIe=ka(),d8t=function(){};yIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=d8t);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=mIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=mIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var bIe=ye((kgr,xIe)=>{"use strict";var Q2=n1(),v8t=Pr(),p8t=["xaxis","yaxis","zaxis"];function _Ie(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var g8t=_Ie.prototype;g8t.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[p8t[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?v8t.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=Q2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=Q2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=Q2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=Q2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=Q2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=Q2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=Q2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function m8t(e,t){var r=new _Ie;return r.merge(e,t),r}xIe.exports=m8t});var AIe=ye((Cgr,TIe)=>{"use strict";var y8t=n1(),_8t=["xaxis","yaxis","zaxis"];function wIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var x8t=wIe.prototype;x8t.merge=function(e){for(var t=0;t<3;++t){var r=e[_8t[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=y8t(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function b8t(e){var t=new wIe;return t.merge(e),t}TIe.exports=b8t});var EIe=ye((Lgr,MIe)=>{"use strict";MIe.exports=M8t;var SIe=ho(),w8t=Pr(),T8t=["xaxis","yaxis","zaxis"],A8t=[0,0,0];function S8t(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=u,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){A8t[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=S8t(i)}});var DIe=ye((Pgr,RIe)=>{"use strict";var LIe=qd().gl_plot3d,E8t=LIe.createCamera,kIe=LIe.createScene,k8t=gIe(),C8t=VL(),uF=Oa(),cp=Pr(),lF=cp.preserveDrawingBuffer(),cF=ho(),Qg=ef(),L8t=n1(),P8t=qX(),I8t=YU(),R8t=bIe(),D8t=AIe(),F8t=EIe(),z8t=Mg().applyAutorangeOptions,nk,sF,PIe=!1;function IIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=R8t(t,t[this.id]),this.spikeOptions=D8t(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=uF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=uF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Sv=IIe.prototype;Sv.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:lF,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!sF&&(nk=document.createElement("canvas"),sF=k8t({canvas:nk,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!sF))throw new Error("error creating static canvas/context for image server");t.gl=sF,t.canvas=nk}return t};var CIe=!0;Sv.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=kIe(t)}catch(n){if(e.staticMode||!CIe||lF)r=!1;else{cp.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{lF=t.glOptions.preserveDrawingBuffer=!0,e.glplot=kIe(t)}catch(i){lF=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return CIe=!1,r};Sv.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=E8t(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Sv.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return P8t(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){PIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},C8t?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Sv.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),F8t(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(p.valueLabel=cF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+p.valueLabel),f.textLabel&&x.push(f.textLabel),L=x.join("
")):L=f.textLabel;var C={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:m._input,fullData:m,curveNumber:m.index,pointNumber:b};Qg.appendArrayPointValue(C,m,b),r._module.eventData&&(C=m._module.eventData(C,f,m,{},b));var S={points:[C]};if(e.fullSceneLayout.hovermode){var g=[];Qg.loneHover({trace:m,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:L,name:c.name,color:Qg.castHoverOption(m,b,"bgcolor")||c.color,borderColor:Qg.castHoverOption(m,b,"bordercolor"),fontFamily:Qg.castHoverOption(m,b,"font.family"),fontSize:Qg.castHoverOption(m,b,"font.size"),fontColor:Qg.castHoverOption(m,b,"font.color"),nameLength:Qg.castHoverOption(m,b,"namelength"),textAlign:Qg.castHoverOption(m,b,"align"),hovertemplate:cp.castOption(m,b,"hovertemplate"),hovertemplateLabels:cp.extendFlat({},C,p),eventData:[C]},{container:n,gd:t,inOut_bbox:g}),C.bbox=g[0]}f.distance<5&&(f.buttons||PIe)?t.emit("plotly_click",S):t.emit("plotly_hover",S),this.oldEventData=S}else Qg.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Sv.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){cp.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var ak=["xaxis","yaxis","zaxis"];function q8t(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=ak[i],o=a.charAt(0),s=n[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!cp.isArrayOrTypedArray(l))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],c-1);else for(var f,h=0;h<(c||l.length);h++)if(cp.isArrayOrTypedArray(l[h]))for(var d=0;dm[1][o])m[0][o]=-1,m[1][o]=1;else{var E=m[1][o]-m[0][o];m[0][o]-=E/32,m[1][o]+=E/32}if(k=[m[0][o],m[1][o]],k=z8t(k,l),m[0][o]=k[0],m[1][o]=k[1],l.isReversed()){var z=m[0][o];m[0][o]=m[1][o],m[1][o]=z}}else k=l.range,m[0][o]=l.r2l(k[0]),m[1][o]=l.r2l(k[1]);m[0][o]===m[1][o]&&(m[0][o]-=1,m[1][o]+=1),b[o]=m[1][o]-m[0][o],l.range=[m[0][o],m[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var q,V=c.aspectmode;if(V==="cube")q=[1,1,1];else if(V==="manual"){var G=c.aspectratio;q=[G.x,G.y,G.z]}else if(V==="auto"||V==="data"){var Z=[1,1,1];for(o=0;o<3;++o){l=c[ak[o]],u=l.type;var j=p[u];Z[o]=Math.pow(j.acc,1/j.count)/d[o]}V==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?q=Z:q=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=q[0],c.aspectratio.y=f.aspectratio.y=q[1],c.aspectratio.z=f.aspectratio.z=q[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,H=t._size||null;if(N&&H){var ie=n.container.style;ie.position="absolute",ie.left=H.l+N.x[0]*H.w+"px",ie.top=H.t+(1-N.y[1])*H.h+"px",ie.width=H.w*(N.x[1]-N.x[0])+"px",ie.height=H.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Sv.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function B8t(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function N8t(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Sv.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),N8t(e.camera)};Sv.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,B8t(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Sv.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=cp.nestedProperty(e,t.id+".camera"),i=n.get();function a(u,c,f,h){var d=["up","center","eye"],v=["x","y","z"];return c[d[f]]&&u[d[f]][v[h]]===c[d[f]][v[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,i,s,l)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Sv.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=cp.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Sv.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(n=t.getCamera(),i=cp.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=cp.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),uF.call("_storeDirectGUIEdit",e,r._preGUI,h),u){i.set(n);var d=cp.nestedProperty(r,t.id+".camera");d.set(n)}if(c){s.set(o);var v=cp.nestedProperty(r,t.id+".aspectratio");v.set(o),t.glplot.redraw()}}return f};Sv.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var d=i.layout;uF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,cp.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function U8t(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}Sv.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(nk),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),U8t(a,n,i),V8t(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(n,i);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(nk),u};Sv.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[ak[t]];cF.setConvert(r,e.fullLayout),r.setScale=cp.noop}};Sv.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},cF.setConvert(e._mockAxis,r)};RIe.exports=IIe});var zIe=ye((Igr,FIe)=>{"use strict";FIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var BX=ye((Rgr,qIe)=>{"use strict";var G8t=ka(),xs=Rd(),OX=Ao().extendFlat,H8t=mc().overrideAll;qIe.exports=H8t({visible:xs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:G8t.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:xs.color,categoryorder:xs.categoryorder,categoryarray:xs.categoryarray,title:{text:xs.title.text,font:xs.title.font},type:OX({},xs.type,{values:["-","linear","log","date","category"]}),autotypenumbers:xs.autotypenumbers,autorange:xs.autorange,autorangeoptions:{minallowed:xs.autorangeoptions.minallowed,maxallowed:xs.autorangeoptions.maxallowed,clipmin:xs.autorangeoptions.clipmin,clipmax:xs.autorangeoptions.clipmax,include:xs.autorangeoptions.include,editType:"plot"},rangemode:xs.rangemode,minallowed:xs.minallowed,maxallowed:xs.maxallowed,range:OX({},xs.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:xs.minor.tickmode,nticks:xs.nticks,tick0:xs.tick0,dtick:xs.dtick,tickvals:xs.tickvals,ticktext:xs.ticktext,ticks:xs.ticks,mirror:xs.mirror,ticklen:xs.ticklen,tickwidth:xs.tickwidth,tickcolor:xs.tickcolor,showticklabels:xs.showticklabels,labelalias:xs.labelalias,tickfont:xs.tickfont,tickangle:xs.tickangle,tickprefix:xs.tickprefix,showtickprefix:xs.showtickprefix,ticksuffix:xs.ticksuffix,showticksuffix:xs.showticksuffix,showexponent:xs.showexponent,exponentformat:xs.exponentformat,minexponent:xs.minexponent,separatethousands:xs.separatethousands,tickformat:xs.tickformat,tickformatstops:xs.tickformatstops,hoverformat:xs.hoverformat,showline:xs.showline,linecolor:xs.linecolor,linewidth:xs.linewidth,showgrid:xs.showgrid,gridcolor:OX({},xs.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:xs.gridwidth,zeroline:xs.zeroline,zerolinecolor:xs.zerolinecolor,zerolinewidth:xs.zerolinewidth},"plot","from-root")});var GX=ye((Dgr,OIe)=>{"use strict";var NX=BX(),j8t=Cc().attributes,UX=Ao().extendFlat,W8t=Pr().counterRegex;function VX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}OIe.exports={_arrayAttrRegexps:[W8t("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:UX(VX(0,0,1),{}),center:UX(VX(0,0,0),{}),eye:UX(VX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:j8t({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:NX,yaxis:NX,zaxis:NX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var VIe=ye((Fgr,UIe)=>{"use strict";var X8t=fd().mix,BIe=Pr(),Z8t=vl(),Y8t=BX(),K8t=RU(),J8t=h4(),NIe=["xaxis","yaxis","zaxis"],$8t=100*136/187;UIe.exports=function(t,r,n){var i,a;function o(u,c){return BIe.coerce(i,a,Y8t,u,c)}for(var s=0;s{"use strict";var Q8t=Pr(),eRt=ka(),tRt=Oa(),rRt=q_(),iRt=VIe(),GIe=GX(),nRt=Id().getSubplotData,HIe="gl3d";jIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=Q8t.validate(t[o],GIe[o]);if(s)return t[o]}}rRt(t,r,n,{type:HIe,attributes:GIe,handleDefaults:aRt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function aRt(e,t,r,n){for(var i=r("bgcolor"),a=eRt.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var lx=ye(fp=>{"use strict";var oRt=mc().overrideAll,sRt=W1(),lRt=DIe(),uRt=Id().getSubplotData,cRt=Pr(),fRt=Wp(),YA="gl3d",HX="scene";fp.name=YA;fp.attr=HX;fp.idRoot=HX;fp.idRegex=fp.attrRegex=cRt.counterRegex("scene");fp.attributes=zIe();fp.layoutAttributes=GX();fp.baseLayoutAttrOverrides=oRt({hoverlabel:sRt.hoverlabel},"plot","nested");fp.supplyLayoutDefaults=WIe();fp.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[YA],a=0;a{"use strict";XIe.exports={plot:iIe(),attributes:FX(),markerSymbols:aF(),supplyDefaults:cIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:hIe(),moduleType:"trace",name:"scatter3d",basePlotModule:lx(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var KIe=ye((Bgr,YIe)=>{"use strict";YIe.exports=ZIe()});var ok=ye((Ngr,QIe)=>{"use strict";var JIe=ka(),hRt=Tu(),jX=vf().axisHoverFormat,{hovertemplateAttrs:dRt,templatefallbackAttrs:vRt}=Ll(),$Ie=Gl(),WX=Ao().extendFlat,pRt=mc().overrideAll;function XX(e){return{valType:"boolean",dflt:!1}}function ZX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:XX("x"),y:XX("y"),z:XX("z")},color:{valType:"color",dflt:JIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:JIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var YX=QIe.exports=pRt(WX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:dRt(),hovertemplatefallback:vRt(),xhoverformat:jX("x"),yhoverformat:jX("y"),zhoverformat:jX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},hRt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:ZX("x"),y:ZX("y"),z:ZX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:WX({},$Ie.hoverinfo),showlegend:WX({},$Ie.showlegend,{dflt:!1})}),"calc","nested");YX.x.editType=YX.y.editType=YX.z.editType="calc+clearAxisTypes"});var JX=ye((Ugr,r8e)=>{"use strict";var gRt=Oa(),e8e=Pr(),mRt=td(),yRt=ok(),KX=.1;function _Rt(e,t){for(var r=[],n=32,i=0;i{"use strict";var i8e=gv();n8e.exports=function(t,r){r.surfacecolor?i8e(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):i8e(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var f8e=ye((Ggr,c8e)=>{"use strict";var wRt=qd().gl_surface3d,KA=qd().ndarray,TRt=qd().ndarray_linear_interpolate.d2,ARt=f8(),SRt=h8(),sk=Pr().isArrayOrTypedArray,MRt=a1().parseColorScale,o8e=n1(),ERt=tc().extractOpts;function l8e(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var em=l8e.prototype;em.getXat=function(e,t,r,n){var i=sk(this.data.x)?sk(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};em.getYat=function(e,t,r,n){var i=sk(this.data.y)?sk(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};em.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};em.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return sk(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function kRt(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var JA=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function CRt(e,t){if(e0){r=JA[n];break}return r}function PRt(e,t){if(!(e<1||t<1)){for(var r=$X(e),n=$X(t),i=1,a=0;afF;)n--,n/=LRt(n),n++,n1?i:1};function RRt(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function DRt(e,t,r){return FRt(e,t,RRt,r),e}function FRt(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[u]=h),this.maxValues[u]{"use strict";h8e.exports={attributes:ok(),supplyDefaults:JX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:a8e(),plot:f8e(),moduleType:"trace",name:"surface",basePlotModule:lx(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var p8e=ye((jgr,v8e)=>{"use strict";v8e.exports=d8e()});var $A=ye((Wgr,m8e)=>{"use strict";var ORt=Tu(),QX=vf().axisHoverFormat,{hovertemplateAttrs:BRt,templatefallbackAttrs:NRt}=Ll(),ux=ok(),g8e=Gl(),cx=Ao().extendFlat;m8e.exports=cx({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:BRt({editType:"calc"}),hovertemplatefallback:NRt({editType:"calc"}),xhoverformat:QX("x"),yhoverformat:QX("y"),zhoverformat:QX("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},ORt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ux.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:cx({},ux.contours.x.show,{}),color:ux.contours.x.color,width:ux.contours.x.width,editType:"calc"},lightposition:{x:cx({},ux.lightposition.x,{dflt:1e5}),y:cx({},ux.lightposition.y,{dflt:1e5}),z:cx({},ux.lightposition.z,{dflt:0}),editType:"calc"},lighting:cx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},ux.lighting),hoverinfo:cx({},g8e.hoverinfo,{editType:"calc"}),showlegend:cx({},g8e.showlegend,{dflt:!1})})});var dF=ye((Xgr,_8e)=>{"use strict";var URt=Tu(),hF=vf().axisHoverFormat,{hovertemplateAttrs:VRt,templatefallbackAttrs:GRt}=Ll(),lk=$A(),y8e=Gl(),eZ=Ao().extendFlat,HRt=mc().overrideAll;function tZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function rZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var QA=_8e.exports=HRt(eZ({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:tZ("x"),y:tZ("y"),z:tZ("z")},caps:{x:rZ("x"),y:rZ("y"),z:rZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:VRt(),hovertemplatefallback:GRt(),xhoverformat:hF("x"),yhoverformat:hF("y"),zhoverformat:hF("z"),valuehoverformat:hF("value",1),showlegend:eZ({},y8e.showlegend,{dflt:!1})},URt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:lk.opacity,lightposition:lk.lightposition,lighting:lk.lighting,flatshading:lk.flatshading,contour:lk.contour,hoverinfo:eZ({},y8e.hoverinfo)}),"calc","nested");QA.flatshading.dflt=!0;QA.lighting.facenormalsepsilon.dflt=0;QA.x.editType=QA.y.editType=QA.z.editType=QA.value.editType="calc+clearAxisTypes"});var iZ=ye((Zgr,b8e)=>{"use strict";var jRt=Pr(),WRt=Oa(),XRt=dF(),ZRt=td();function YRt(e,t,r,n){function i(a,o){return jRt.coerce(e,t,XRt,a,o)}x8e(e,t,r,n,i)}function x8e(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),l=i("y"),u=i("z"),c=i("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=WRt.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(m){i(m+"hoverformat");var b="caps."+m,p=i(b+".show");p&&i(b+".fill");var k="slices."+m,M=i(k+".show");M&&(i(k+".fill"),i(k+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var v=i("contour.show");v&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(m){i(m)}),ZRt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}b8e.exports={supplyDefaults:YRt,supplyIsoDefaults:x8e}});var vF=ye((Ygr,T8e)=>{"use strict";var aZ=Pr(),KRt=gv();function JRt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=$m(t.u,t._len),t._v=$m(t.v,t._len),t._w=$m(t.w,t._len),t._x=$m(t.x,t._len),t._y=$m(t.y,t._len),t._z=$m(t.z,t._len);var r=w8e(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=$m(t.starts.x||[]),a=$m(t.starts.y||[]),o=$m(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(M=t[i-1],L=r[i-1],C=n[i-1]),a=0;aM?"-":"+")+"x"),v=v.replace("y",(T>L?"-":"+")+"y"),v=v.replace("z",(x>C?"-":"+")+"z");var E=function(){i=0,S=[],g=[],P=[]};(!i||i{"use strict";var $Rt=gv(),QRt=vF().processGrid,pF=vF().filter;A8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=pF(r.x,r._len),r._y=pF(r.y,r._len),r._z=pF(r.z,r._len),r._value=pF(r.value,r._len);var n=QRt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";S8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var eDt=qd().gl_mesh3d,tDt=a1().parseColorScale,rDt=Pr().isArrayOrTypedArray,iDt=n1(),nDt=tc().extractOpts,M8e=e5(),uk=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function ae(St,Tt){return St===null?Tt:St}function _e(St,Tt,dt){E();var Et=[Tt],pt=[dt];if(j>=1)Et=[Tt],pt=[dt];else if(j>0){var jt=H(Tt,dt);Et=jt.xyzv,pt=jt.abc}for(var or=0;or-1?dt[Ar]:P(ei,qr,jr);Ge>-1?mr[Ar]=Ge:mr[Ar]=q(ei,qr,jr,ae(St,gt))}V(mr[0],mr[1],mr[2])}}function Ee(St,Tt,dt){var Et=function(pt,jt,or){_e(St,[Tt[pt],Tt[jt],Tt[or]],[dt[pt],dt[jt],dt[or]])};Et(0,1,2),Et(2,3,0)}function Ce(St,Tt,dt){var Et=function(pt,jt,or){_e(St,[Tt[pt],Tt[jt],Tt[or]],[dt[pt],dt[jt],dt[or]])};Et(0,1,2),Et(3,0,1),Et(2,3,0),Et(1,2,3)}function ge(St,Tt,dt,Et){var pt=St[3];ptEt&&(pt=Et);for(var jt=(St[3]-pt)/(St[3]-Tt[3]+1e-9),or=[],mr=0;mr<4;mr++)or[mr]=(1-jt)*St[mr]+jt*Tt[mr];return or}function re(St,Tt,dt){return St>=Tt&&St<=dt}function Se(St){var Tt=.001*(L-T);return St>=T-Tt&&St<=L+Tt}function ke(St){for(var Tt=[],dt=0;dt<4;dt++){var Et=St[dt];Tt.push([e._x[Et],e._y[Et],e._z[Et],e._value[Et]])}return Tt}var be=3;function Be(St,Tt,dt,Et,pt,jt){jt||(jt=1),dt=[-1,-1,-1];var or=!1,mr=[re(Tt[0][3],Et,pt),re(Tt[1][3],Et,pt),re(Tt[2][3],Et,pt)];if(!mr[0]&&!mr[1]&&!mr[2])return!1;var Ar=function(qr,jr,gt){return Se(jr[0][3])&&Se(jr[1][3])&&Se(jr[2][3])?(_e(qr,jr,gt),!0):jtmr?[k,jt]:[jt,M];Vt(Tt,Ar[0],Ar[1])}}var ei=[[Math.min(T,M),Math.max(T,M)],[Math.min(k,L),Math.max(k,L)]];["x","y","z"].forEach(function(qr){for(var jr=[],gt=0;gt0&&(At.push(Mr.id),qr==="x"?Kt.push([Mr.distRatio,0,0]):qr==="y"?Kt.push([0,Mr.distRatio,0]):Kt.push([0,0,Mr.distRatio]))}else qr==="x"?xt=Ue(1,d-1):qr==="y"?xt=Ue(1,v-1):xt=Ue(1,m-1);At.length>0&&(qr==="x"?jr[Ge]=rr(St,At,Je,We,Kt,jr[Ge]):qr==="y"?jr[Ge]=tt(St,At,Je,We,Kt,jr[Ge]):jr[Ge]=je(St,At,Je,We,Kt,jr[Ge]),Ge++),xt.length>0&&(qr==="x"?jr[Ge]=mt(St,xt,Je,We,jr[Ge]):qr==="y"?jr[Ge]=Ht(St,xt,Je,We,jr[Ge]):jr[Ge]=at(St,xt,Je,We,jr[Ge]),Ge++)}var Gr=e.caps[qr];Gr.show&&Gr.fill&&(N(Gr.fill),qr==="x"?jr[Ge]=mt(St,[0,d-1],Je,We,jr[Ge]):qr==="y"?jr[Ge]=Ht(St,[0,v-1],Je,We,jr[Ge]):jr[Ge]=at(St,[0,m-1],Je,We,jr[Ge]),Ge++)}}),s===0&&z(),e._meshX=x,e._meshY=C,e._meshZ=S,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return rt(),e}function oDt(e,t){var r=e.glplot.gl,n=eDt({gl:r}),i=new E8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}C8e.exports={findNearestOnAxis:uk,generateIsoMeshes:k8e,createIsosurfaceTrace:oDt}});var P8e=ye((Qgr,L8e)=>{"use strict";L8e.exports={attributes:dF(),supplyDefaults:iZ().supplyDefaults,calc:oZ(),colorbar:{min:"cmin",max:"cmax"},plot:gF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:lx(),categories:["gl3d","showLegend"],meta:{}}});var R8e=ye((emr,I8e)=>{"use strict";I8e.exports=P8e()});var uZ=ye((tmr,F8e)=>{"use strict";var sDt=Tu(),xh=dF(),lDt=ok(),D8e=Gl(),lZ=Ao().extendFlat,uDt=mc().overrideAll,mF=F8e.exports=uDt(lZ({x:xh.x,y:xh.y,z:xh.z,value:xh.value,isomin:xh.isomin,isomax:xh.isomax,surface:xh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:xh.slices,caps:xh.caps,text:xh.text,hovertext:xh.hovertext,xhoverformat:xh.xhoverformat,yhoverformat:xh.yhoverformat,zhoverformat:xh.zhoverformat,valuehoverformat:xh.valuehoverformat,hovertemplate:xh.hovertemplate,hovertemplatefallback:xh.hovertemplatefallback},sDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:xh.colorbar,opacity:xh.opacity,opacityscale:lDt.opacityscale,lightposition:xh.lightposition,lighting:xh.lighting,flatshading:xh.flatshading,contour:xh.contour,hoverinfo:lZ({},D8e.hoverinfo),showlegend:lZ({},D8e.showlegend,{dflt:!1})}),"calc","nested");mF.x.editType=mF.y.editType=mF.z.editType=mF.value.editType="calc+clearAxisTypes"});var q8e=ye((rmr,z8e)=>{"use strict";var cDt=Pr(),fDt=uZ(),hDt=iZ().supplyIsoDefaults,dDt=JX().opacityscaleDefaults;z8e.exports=function(t,r,n,i){function a(o,s){return cDt.coerce(t,r,fDt,o,s)}hDt(t,r,n,i,a),dDt(t,r,i,a)}});var U8e=ye((imr,N8e)=>{"use strict";var vDt=qd().gl_mesh3d,pDt=a1().parseColorScale,gDt=Pr().isArrayOrTypedArray,mDt=n1(),yDt=tc().extractOpts,O8e=e5(),cZ=gF().findNearestOnAxis,_Dt=gF().generateIsoMeshes;function B8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var fZ=B8e.prototype;fZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=cZ(r,this.data._Xs).id,l=cZ(n,this.data._Ys).id,u=cZ(i,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return gDt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};fZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=_Dt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=O8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=O8e(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:mDt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=yDt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=pDt(e),this.mesh.update(o)};fZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function xDt(e,t){var r=e.glplot.gl,n=vDt({gl:r}),i=new B8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}N8e.exports=xDt});var G8e=ye((nmr,V8e)=>{"use strict";V8e.exports={attributes:uZ(),supplyDefaults:q8e(),calc:oZ(),colorbar:{min:"cmin",max:"cmax"},plot:U8e(),moduleType:"trace",name:"volume",basePlotModule:lx(),categories:["gl3d","showLegend"],meta:{}}});var j8e=ye((amr,H8e)=>{"use strict";H8e.exports=G8e()});var Z8e=ye((omr,X8e)=>{"use strict";var bDt=Oa(),W8e=Pr(),wDt=td(),TDt=$A();X8e.exports=function(t,r,n,i){function a(c,f){return W8e.coerce(t,r,TDt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&W8e.isArrayOrTypedArray(d)?d:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=bDt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),wDt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var K8e=ye((smr,Y8e)=>{"use strict";var ADt=gv();Y8e.exports=function(t,r){r.intensity&&ADt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var tRe=ye((lmr,eRe)=>{"use strict";var SDt=qd().gl_mesh3d,MDt=qd().delaunay_triangulate,EDt=qd().alpha_shape,kDt=qd().convex_hull,CDt=a1().parseColorScale,LDt=Pr().isArrayOrTypedArray,pZ=n1(),PDt=tc().extractOpts,J8e=e5();function Q8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var gZ=Q8e.prototype;gZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return LDt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function $8e(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}gZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=J8e(hZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),hZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),hZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!vZ(e.i,n)||!vZ(e.j,n)||!vZ(e.k,n))return;a=J8e(dZ(e.i),dZ(e.j),dZ(e.k))}else e.alphahull===0?a=kDt(i):e.alphahull>0?a=EDt(e.alphahull,i):a=IDt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:pZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=PDt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=CDt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=$8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=$8e(e.facecolor)):(this.color=e.color,o.meshColor=pZ(e.color));this.mesh.update(o)};gZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function RDt(e,t){var r=e.glplot.gl,n=SDt({gl:r}),i=new Q8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}eRe.exports=RDt});var iRe=ye((umr,rRe)=>{"use strict";rRe.exports={attributes:$A(),supplyDefaults:Z8e(),calc:K8e(),colorbar:{min:"cmin",max:"cmax"},plot:tRe(),moduleType:"trace",name:"mesh3d",basePlotModule:lx(),categories:["gl3d","showLegend"],meta:{}}});var aRe=ye((cmr,nRe)=>{"use strict";nRe.exports=iRe()});var yZ=ye((fmr,sRe)=>{"use strict";var DDt=Tu(),t5=vf().axisHoverFormat,{hovertemplateAttrs:FDt,templatefallbackAttrs:zDt}=Ll(),qDt=$A(),oRe=Gl(),mZ=Ao().extendFlat,yF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:FDt({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:zDt({editType:"calc"}),uhoverformat:t5("u",1),vhoverformat:t5("v",1),whoverformat:t5("w",1),xhoverformat:t5("x"),yhoverformat:t5("y"),zhoverformat:t5("z"),showlegend:mZ({},oRe.showlegend,{dflt:!1})};mZ(yF,DDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var ODt=["opacity","lightposition","lighting"];ODt.forEach(function(e){yF[e]=qDt[e]});yF.hoverinfo=mZ({},oRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});sRe.exports=yF});var uRe=ye((hmr,lRe)=>{"use strict";var BDt=Pr(),NDt=td(),UDt=yZ();lRe.exports=function(t,r,n,i){function a(d,v){return BDt.coerce(t,r,UDt,d,v)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),NDt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var fRe=ye((dmr,cRe)=>{"use strict";var VDt=gv();cRe.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var GDt=qd().gl_cone3d,HDt=qd().gl_cone3d.createConeMesh,jDt=Pr().simpleMap,WDt=a1().parseColorScale,XDt=tc().extractOpts,ZDt=Pr().isArrayOrTypedArray,hRe=e5();function dRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var _Z=dRe.prototype;_Z.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return ZDt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var YDt={xaxis:0,yaxis:1,zaxis:2},KDt={tip:1,tail:0,cm:.25,center:.5},JDt={tip:1,tail:1,cm:.75,center:.5};function vRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[YDt[f]];return jDt(c,function(v){return h.d2l(v)*d})}i.vectors=hRe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=hRe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=XDt(t);i.colormap=WDt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=KDt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var l=GDt(i),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=JDt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}_Z.update=function(e){this.data=e;var t=vRe(this.scene,e);this.mesh.update(t)};_Z.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function $Dt(e,t){var r=e.glplot.gl,n=vRe(e,t),i=HDt(r,n),a=new dRe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}pRe.exports=$Dt});var yRe=ye((pmr,mRe)=>{"use strict";mRe.exports={moduleType:"trace",name:"cone",basePlotModule:lx(),categories:["gl3d","showLegend"],attributes:yZ(),supplyDefaults:uRe(),colorbar:{min:"cmin",max:"cmax"},calc:fRe(),plot:gRe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var xRe=ye((gmr,_Re)=>{"use strict";_Re.exports=yRe()});var bZ=ye((mmr,wRe)=>{"use strict";var QDt=Tu(),r5=vf().axisHoverFormat,{hovertemplateAttrs:eFt,templatefallbackAttrs:tFt}=Ll(),rFt=$A(),bRe=Gl(),xZ=Ao().extendFlat,_F={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:eFt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:tFt({editType:"calc"}),uhoverformat:r5("u",1),vhoverformat:r5("v",1),whoverformat:r5("w",1),xhoverformat:r5("x"),yhoverformat:r5("y"),zhoverformat:r5("z"),showlegend:xZ({},bRe.showlegend,{dflt:!1})};xZ(_F,QDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var iFt=["opacity","lightposition","lighting"];iFt.forEach(function(e){_F[e]=rFt[e]});_F.hoverinfo=xZ({},bRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});wRe.exports=_F});var ARe=ye((ymr,TRe)=>{"use strict";var nFt=Pr(),aFt=td(),oFt=bZ();TRe.exports=function(t,r,n,i){function a(h,d){return nFt.coerce(t,r,oFt,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),aFt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var IRe=ye((_mr,PRe)=>{"use strict";var ERe=qd().gl_streamtube3d,sFt=ERe.createTubeMesh,lFt=Pr(),uFt=a1().parseColorScale,cFt=tc().extractOpts,SRe=e5(),kRe={xaxis:0,yaxis:1,zaxis:2};function CRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var TZ=CRe.prototype;TZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[kRe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function MRe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function wZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function LRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,q){var V=r[q],G=n[kRe[q]];return lFt.simpleMap(z,function(Z){return V.d2l(Z)*G})}if(a.vectors=SRe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=SRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=MRe(s),d=MRe(u),v=new Array(h.length*d.length),m=0,b=0;b{"use strict";RRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:lx(),categories:["gl3d","showLegend"],attributes:bZ(),supplyDefaults:ARe(),colorbar:{min:"cmin",max:"cmax"},calc:vF().calc,plot:IRe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var zRe=ye((bmr,FRe)=>{"use strict";FRe.exports=DRe()});var tw=ye((Tmr,URe)=>{"use strict";var{hovertemplateAttrs:hFt,texttemplateAttrs:dFt,templatefallbackAttrs:qRe}=Ll(),vFt=Pg(),Qm=pf(),pFt=Gl(),ORe=Tu(),gFt=Pd().dash,ew=Ao().extendFlat,mFt=mc().overrideAll,rg=Qm.marker,BRe=Qm.line,NRe=rg.line,wmr=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");URe.exports=mFt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:ew({},Qm.mode,{dflt:"markers"}),text:ew({},Qm.text,{}),texttemplate:dFt({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:qRe({editType:"plot"}),hovertext:ew({},Qm.hovertext,{}),textfont:Qm.textfont,textposition:Qm.textposition,line:{color:BRe.color,width:BRe.width,dash:gFt},connectgaps:Qm.connectgaps,marker:ew({symbol:rg.symbol,opacity:rg.opacity,angle:rg.angle,angleref:ew({},rg.angleref,{values:["previous","up","north"]}),standoff:rg.standoff,size:rg.size,sizeref:rg.sizeref,sizemin:rg.sizemin,sizemode:rg.sizemode,colorbar:rg.colorbar,line:ew({width:NRe.width,dash:NRe.dash},ORe("marker.line")),gradient:rg.gradient},ORe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:vFt(),selected:Qm.selected,unselected:Qm.unselected,hoverinfo:ew({},pFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:hFt(),hovertemplatefallback:qRe()},"calc","nested")});var GRe=ye((Amr,VRe)=>{"use strict";var xF=Pr(),AZ=Ru(),yFt=$p(),_Ft=D0(),xFt=F0(),bFt=Fg(),wFt=tw(),TFt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");VRe.exports=function(t,r,n,i){function a(d,v){return xF.coerce(t,r,wFt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||xF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&xF.warn(TFt),c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),AZ.hasMarkers(r)&&yFt(t,r,n,i,a,{gradient:!0}),AZ.hasLines(r)&&(_Ft(t,r,n,i,a),a("connectgaps")),AZ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),xFt(t,r,i,a)),a("fill"),r.fill!=="none"&&bFt(t,r,n,a),xF.coerceSelectionMarkerOpacity(r,a)}});var WRe=ye((Smr,jRe)=>{"use strict";var HRe=ho();jRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=HRe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=HRe.tickText(o,o.c2l(s[1]),!0).text,i}});var bF=ye((Mmr,KRe)=>{"use strict";var SZ=Eo(),XRe=fs().BADNUM,AFt=z0(),SFt=Dm(),MFt=q0(),EFt=Pr().isArrayOrTypedArray,ZRe=Pr()._;function YRe(e){return e&&typeof e=="string"}KRe.exports=function(t,r){var n=EFt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return YRe(h)||SZ(h)}:o=YRe;for(var s=0;s{"use strict";Mv.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Mv.axesNames=["lonaxis","lataxis"];Mv.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Mv.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Mv.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Mv.clipPad=.001;Mv.precision=.1;Mv.landColor="#F0DC82";Mv.waterColor="#3399FF";Mv.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Mv.sphereSVG={type:"Sphere"};Mv.fillLayers={ocean:1,land:1,lakes:1};Mv.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Mv.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Mv.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Mv.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var MZ=ye((wF,JRe)=>{(function(e,t){typeof wF=="object"&&typeof JRe!="undefined"?t(wF):(e=e||self,t(e.topojson=e.topojson||{}))})(wF,function(e){"use strict";function t(M){return M}function r(M){if(M==null)return t;var T,L,x=M.scale[0],C=M.scale[1],S=M.translate[0],g=M.translate[1];return function(P,E){E||(T=L=0);var z=2,q=P.length,V=new Array(q);for(V[0]=(T+=P[0])*x+S,V[1]=(L+=P[1])*C+g;zS&&(S=z[0]),z[1]g&&(g=z[1])}function E(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(E);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}M.arcs.forEach(function(z){for(var q=-1,V=z.length,G;++qS&&(S=G[0]),G[1]g&&(g=G[1])});for(L in M.objects)E(M.objects[L]);return[x,C,S,g]}function i(M,T){for(var L,x=M.length,C=x-T;C<--x;)L=M[C],M[C++]=M[x],M[x]=L}function a(M,T){return typeof T=="string"&&(T=M.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(M,L)})}:o(M,T)}function o(M,T){var L=T.id,x=T.bbox,C=T.properties==null?{}:T.properties,S=s(M,T);return L==null&&x==null?{type:"Feature",properties:C,geometry:S}:x==null?{type:"Feature",id:L,properties:C,geometry:S}:{type:"Feature",id:L,bbox:x,properties:C,geometry:S}}function s(M,T){var L=r(M.transform),x=M.arcs;function C(q,V){V.length&&V.pop();for(var G=x[q<0?~q:q],Z=0,j=G.length;Z1)x=f(M,T,L);else for(C=0,x=new Array(S=M.arcs.length);C1)for(var V=1,G=P(z[0]),Z,j;VG&&(j=z[0],z[0]=z[V],z[V]=j,G=Z);return z}).filter(function(E){return E.length>0})}}function m(M,T){for(var L=0,x=M.length;L>>1;M[C]=2))throw new Error("n must be \u22652");E=M.bbox||n(M);var L=E[0],x=E[1],C=E[2],S=E[3],g;T={scale:[C-L?(C-L)/(g-1):1,S-x?(S-x)/(g-1):1],translate:[L,x]}}else E=M.bbox;var P=p(T),E,z,q=M.objects,V={};function G(N){return P(N)}function Z(N){var H;switch(N.type){case"GeometryCollection":H={type:"GeometryCollection",geometries:N.geometries.map(Z)};break;case"Point":H={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":H={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(H.id=N.id),N.bbox!=null&&(H.bbox=N.bbox),N.properties!=null&&(H.properties=N.properties),H}function j(N){var H=0,ie=1,ae=N.length,_e,Ee=new Array(ae);for(Ee[0]=P(N[0],0);++H{"use strict";var EZ=$Re.exports={},kFt=ck().locationmodeToLayer,CFt=MZ().feature;EZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};EZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};EZ.getTopojsonFeatures=function(e,t){var r=kFt[e.locationmode],n=t.objects[r];return CFt(t,n).features}});var fx=ye(fk=>{"use strict";var LFt=fs().BADNUM;fk.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};fk.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};fk.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{QRe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var MF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var qp=63710088e-1,CZ={centimeters:qp*100,centimetres:qp*100,degrees:360/(2*Math.PI),feet:qp*3.28084,inches:qp*39.37,kilometers:qp/1e3,kilometres:qp/1e3,meters:qp,metres:qp,miles:qp/1609.344,millimeters:qp*1e3,millimetres:qp*1e3,nauticalmiles:qp/1852,radians:1,yards:qp*1.0936},kZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function hx(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function PFt(e,t,r={}){switch(e){case"Point":return LZ(t).geometry;case"LineString":return IZ(t).geometry;case"Polygon":return PZ(t).geometry;case"MultiPoint":return rDe(t).geometry;case"MultiLineString":return tDe(t).geometry;case"MultiPolygon":return iDe(t).geometry;default:throw new Error(e+" is invalid")}}function LZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!AF(e[0])||!AF(e[1]))throw new Error("coordinates must contain numbers");return hx({type:"Point",coordinates:e},t,r)}function IFt(e,t,r={}){return SF(e.map(n=>LZ(n,t)),r)}function PZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aPZ(n,t)),r)}function IZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return hx({type:"LineString",coordinates:e},t,r)}function DFt(e,t,r={}){return SF(e.map(n=>IZ(n,t)),r)}function SF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function tDe(e,t,r={}){return hx({type:"MultiLineString",coordinates:e},t,r)}function rDe(e,t,r={}){return hx({type:"MultiPoint",coordinates:e},t,r)}function iDe(e,t,r={}){return hx({type:"MultiPolygon",coordinates:e},t,r)}function FFt(e,t,r={}){return hx({type:"GeometryCollection",geometries:e},t,r)}function zFt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function nDe(e,t="kilometers"){let r=CZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function RZ(e,t="kilometers"){let r=CZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function qFt(e,t){return aDe(RZ(e,t))}function OFt(e){let t=e%360;return t<0&&(t+=360),t}function BFt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function aDe(e){return e%(2*Math.PI)*180/Math.PI}function NFt(e){return e%360*Math.PI/180}function UFt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return nDe(RZ(e,t),r)}function VFt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=kZ[t];if(!n)throw new Error("invalid original units");let i=kZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function AF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function GFt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function HFt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!AF(t))throw new Error("bbox must only contain numbers")})}function jFt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ic.areaFactors=kZ;ic.azimuthToBearing=BFt;ic.bearingToAzimuth=OFt;ic.convertArea=VFt;ic.convertLength=UFt;ic.degreesToRadians=NFt;ic.earthRadius=qp;ic.factors=CZ;ic.feature=hx;ic.featureCollection=SF;ic.geometry=PFt;ic.geometryCollection=FFt;ic.isNumber=AF;ic.isObject=GFt;ic.lengthToDegrees=qFt;ic.lengthToRadians=RZ;ic.lineString=IZ;ic.lineStrings=DFt;ic.multiLineString=tDe;ic.multiPoint=rDe;ic.multiPolygon=iDe;ic.point=LZ;ic.points=IFt;ic.polygon=PZ;ic.polygons=RFt;ic.radiansToDegrees=aDe;ic.radiansToLength=nDe;ic.round=zFt;ic.validateBBox=HFt;ic.validateId=jFt});var kF=ye(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Wv=MF();function hk(e,t,r){if(e!==null)for(var n,i,a,o,s,l,u,c=0,f=0,h,d=e.type,v=d==="FeatureCollection",m=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||m>c){s=f,l=n,u=v,c=m,a=0;return}var b=Wv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,m,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function $Ft(e,t,r){var n=r,i=!1;return lDe(e,function(a,o,s,l,u){i===!1&&r===void 0?n=a:n=t(n,a,o,s,l,u),i=!0}),n}function uDe(e,t){if(!e)throw new Error("geojson is required");EF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});var cDe=MF(),rzt=kF();function dDe(e){return rzt.geomReduce.call(void 0,e,(t,r)=>t+izt(r),0)}function izt(e){let t=0,r;switch(e.type){case"Polygon":return fDe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(hDe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*FZ,l=a[1]*FZ,u=o[0]*FZ;r+=(u-s)*Math.sin(l),n++}return r*nzt}var azt=dDe;CF.area=dDe;CF.default=azt});var gDe=ye(LF=>{"use strict";Object.defineProperty(LF,"__esModule",{value:!0});var ozt=MF(),szt=kF();function pDe(e,t={}){let r=0,n=0,i=0;return szt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),ozt.point.call(void 0,[r/i,n/i],t.properties)}var lzt=pDe;LF.centroid=pDe;LF.default=lzt});var yDe=ye(PF=>{"use strict";Object.defineProperty(PF,"__esModule",{value:!0});var uzt=kF();function mDe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return uzt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var _De={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},fzt=new Set(Object.values(_De));xDe.exports={usaLocationAbbreviations:fzt,usaLocationList:_De}});var dx=ye((qmr,SDe)=>{"use strict";var hzt=qa(),TDe=eDe(),{area:dzt}=vDe(),{centroid:vzt}=gDe(),{bbox:pzt}=yDe(),gzt=YS(),rw=K1(),mzt=Ay(),yzt=zS(),IF=zM(),{usaLocationAbbreviations:_zt,usaLocationList:xzt}=bDe(),wDe=Object.keys(TDe),bzt={"ISO-3":gzt,"USA-states":Tzt,"country names":wzt};function wzt(e){for(var t=0;t0&&c[f+1][0]<0)return f;return null}switch(n==="RUS"||n==="FJI"?a=function(c){var f;if(u(c)===null)f=c;else for(f=new Array(c.length),l=0;lf?h[d++]=[c[l][0]+360,c[l][1]]:l===f?(h[d++]=c[l],h[d++]=[c[l][0],-90]):h[d++]=c[l];var v=IF.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(IF.tester(c))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=Ezt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else rw.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[f]}switch(r.type){case"FeatureCollection":var l=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return vzt(r).geometry.coordinates}function kzt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){hzt.json(l,function(f,h){if(f){delete t[l];var d=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=h,u(h)})})}function i(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;a{"use strict";var Lzt=qa(),Pzt=So(),MDe=ka(),EDe=sp(),Izt=EDe.stylePoints,Rzt=EDe.styleText;kDe.exports=function(t,r){r&&Dzt(t,r)};function Dzt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),Izt(n,r,e),Rzt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=Lzt.select(this),o=i.trace,s=o.line||{};a.call(MDe.stroke,s.color).call(Pzt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(MDe.fill,o.fillcolor)})}});var NZ=ye((Bmr,PDe)=>{"use strict";var CDe=qa(),DF=Pr(),Fzt=TF().getTopojsonFeatures,qZ=fx(),RF=dx(),LDe=Mg().findExtremes,BZ=fs().BADNUM,zzt=O0().calcMarkerSize,OZ=Ru(),qzt=zZ();function Ozt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=DF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===BZ&&CDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=CDe.select(this),l=o[0].trace;if(OZ.hasLines(l)||l.fill!=="none"){var u=qZ.calcTraceToLineCoords(o),c=l.fill!=="none"?qZ.makePolygon(u):qZ.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}OZ.hasMarkers(l)&&s.selectAll("path.point").data(DF.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),OZ.hasText(l)&&s.selectAll("g").data(DF.identity).enter().append("g").append("text").each(function(f){a(f,this)}),qzt(e,o)})}function Bzt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(DF.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?RF.extractTraceFeature(e):Fzt(r,i.topojson);for(o=0;o{"use strict";var Nzt=ef(),Uzt=fs().BADNUM,Vzt=yT(),Gzt=Pr().fillText,Hzt=tw();IDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(k){var M=k.lonlat;if(M[0]===Uzt||u(M))return 1/0;var T=c(M),L=c([r,n]),x=Math.abs(T[0]-L[0]),C=Math.abs(T[1]-L[1]),S=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(x*x+C*C)-S,1-3/S)}if(Nzt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],m=h.mrc||1;t.x0=v[0]-m,t.x1=v[0]+m,t.y0=v[1]-m,t.y1=v[1]+m,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:l};var p=a._module.formatLabels(h,a,b);return t.lonLabel=p.lonLabel,t.latLabel=p.latLabel,t.color=Vzt(a,h),t.extraText=jzt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function jzt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?Hzt.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(n.lon+f(r.lonLabel)):l&&c.push(n.lat+f(r.latLabel)),u&&Gzt(t,e,c),c.join("
")}});var FDe=ye((Umr,DDe)=>{"use strict";DDe.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var ODe=ye((Vmr,qDe)=>{"use strict";var zDe=Ru(),Wzt=fs().BADNUM;qDe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h,d=!zDe.hasMarkers(s)&&!zDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof FF=="object"&&typeof BDe!="undefined"?FF:e.d3=e.d3||{})})(FF,function(e){"use strict";function t(ke,be){return kebe?1:ke>=be?0:NaN}function r(ke){return ke.length===1&&(ke=n(ke)),{left:function(be,Be,Le,me){for(Le==null&&(Le=0),me==null&&(me=be.length);Le>>1;ke(be[Pe],Be)<0?Le=Pe+1:me=Pe}return Le},right:function(be,Be,Le,me){for(Le==null&&(Le=0),me==null&&(me=be.length);Le>>1;ke(be[Pe],Be)>0?me=Pe:Le=Pe+1}return Le}}}function n(ke){return function(be,Be){return t(ke(be),Be)}}var i=r(t),a=i.right,o=i.left;function s(ke,be){be==null&&(be=l);for(var Be=0,Le=ke.length-1,me=ke[0],Pe=new Array(Le<0?0:Le);Beke?1:be>=ke?0:NaN}function f(ke){return ke===null?NaN:+ke}function h(ke,be){var Be=ke.length,Le=0,me=-1,Pe=0,ce,He,lt=0;if(be==null)for(;++me1)return lt/(Le-1)}function d(ke,be){var Be=h(ke,be);return Be&&Math.sqrt(Be)}function v(ke,be){var Be=ke.length,Le=-1,me,Pe,ce;if(be==null){for(;++Le=me)for(Pe=ce=me;++Leme&&(Pe=me),ce=me)for(Pe=ce=me;++Leme&&(Pe=me),ce0)return[ke];if((Le=be0)for(ke=Math.ceil(ke/He),be=Math.floor(be/He),ce=new Array(Pe=Math.ceil(be-ke+1));++me=0?(Pe>=L?10:Pe>=x?5:Pe>=C?2:1)*Math.pow(10,me):-Math.pow(10,-me)/(Pe>=L?10:Pe>=x?5:Pe>=C?2:1)}function P(ke,be,Be){var Le=Math.abs(be-ke)/Math.max(0,Be),me=Math.pow(10,Math.floor(Math.log(Le)/Math.LN10)),Pe=Le/me;return Pe>=L?me*=10:Pe>=x?me*=5:Pe>=C&&(me*=2),beat;)ct.pop(),--ar;var Vt=new Array(ar+1),rr;for(Pe=0;Pe<=ar;++Pe)rr=Vt[Pe]=[],rr.x0=Pe>0?ct[Pe-1]:Ht,rr.x1=Pe=1)return+Be(ke[Le-1],Le-1,ke);var Le,me=(Le-1)*be,Pe=Math.floor(me),ce=+Be(ke[Pe],Pe,ke),He=+Be(ke[Pe+1],Pe+1,ke);return ce+(He-ce)*(me-Pe)}}function V(ke,be,Be){return ke=p.call(ke,f).sort(t),Math.ceil((Be-be)/(2*(q(ke,.75)-q(ke,.25))*Math.pow(ke.length,-1/3)))}function G(ke,be,Be){return Math.ceil((Be-be)/(3.5*d(ke)*Math.pow(ke.length,-1/3)))}function Z(ke,be){var Be=ke.length,Le=-1,me,Pe;if(be==null){for(;++Le=me)for(Pe=me;++LePe&&(Pe=me)}else for(;++Le=me)for(Pe=me;++LePe&&(Pe=me);return Pe}function j(ke,be){var Be=ke.length,Le=Be,me=-1,Pe,ce=0;if(be==null)for(;++me=0;)for(ce=ke[be],Be=ce.length;--Be>=0;)Pe[--me]=ce[Be];return Pe}function ie(ke,be){var Be=ke.length,Le=-1,me,Pe;if(be==null){for(;++Le=me)for(Pe=me;++Leme&&(Pe=me)}else for(;++Le=me)for(Pe=me;++Leme&&(Pe=me);return Pe}function ae(ke,be){for(var Be=be.length,Le=new Array(Be);Be--;)Le[Be]=ke[be[Be]];return Le}function _e(ke,be){if(Be=ke.length){var Be,Le=0,me=0,Pe,ce=ke[me];for(be==null&&(be=t);++Le{(function(e,t){typeof zF=="object"&&typeof NDe!="undefined"?t(zF,dk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(zF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(kt){a(i,kt,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(kt,Zt,Er){var xr=kt.s=Zt+Er,Kr=xr-Zt,Mi=xr-Kr;kt.t=Zt-Mi+(Er-Kr)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,d=l/180,v=Math.abs,m=Math.atan,b=Math.atan2,p=Math.cos,k=Math.ceil,M=Math.exp,T=Math.log,L=Math.pow,x=Math.sin,C=Math.sign||function(kt){return kt>0?1:kt<0?-1:0},S=Math.sqrt,g=Math.tan;function P(kt){return kt>1?0:kt<-1?l:Math.acos(kt)}function E(kt){return kt>1?u:kt<-1?-u:Math.asin(kt)}function z(kt){return(kt=x(kt/2))*kt}function q(){}function V(kt,Zt){kt&&Z.hasOwnProperty(kt.type)&&Z[kt.type](kt,Zt)}var G={Feature:function(kt,Zt){V(kt.geometry,Zt)},FeatureCollection:function(kt,Zt){for(var Er=kt.features,xr=-1,Kr=Er.length;++xr=0?1:-1,Kr=xr*Er,Mi=p(Zt),Wi=x(Zt),dn=re*Wi,wn=ge*Mi+dn*p(Kr),On=dn*xr*x(Kr);ie.add(b(On,wn)),Ce=kt,ge=Mi,re=Wi}function me(kt){return ae.reset(),H(kt,Se),ae*2}function Pe(kt){return[b(kt[1],kt[0]),E(kt[2])]}function ce(kt){var Zt=kt[0],Er=kt[1],xr=p(Er);return[xr*p(Zt),xr*x(Zt),x(Er)]}function He(kt,Zt){return kt[0]*Zt[0]+kt[1]*Zt[1]+kt[2]*Zt[2]}function lt(kt,Zt){return[kt[1]*Zt[2]-kt[2]*Zt[1],kt[2]*Zt[0]-kt[0]*Zt[2],kt[0]*Zt[1]-kt[1]*Zt[0]]}function mt(kt,Zt){kt[0]+=Zt[0],kt[1]+=Zt[1],kt[2]+=Zt[2]}function Ht(kt,Zt){return[kt[0]*Zt,kt[1]*Zt,kt[2]*Zt]}function at(kt){var Zt=S(kt[0]*kt[0]+kt[1]*kt[1]+kt[2]*kt[2]);kt[0]/=Zt,kt[1]/=Zt,kt[2]/=Zt}var ct,ar,Vt,rr,tt,je,Ue,Ae,rt=r(),St,Tt,dt={point:Et,lineStart:jt,lineEnd:or,polygonStart:function(){dt.point=mr,dt.lineStart=Ar,dt.lineEnd=ei,rt.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),dt.point=Et,dt.lineStart=jt,dt.lineEnd=or,ie<0?(ct=-(Vt=180),ar=-(rr=90)):rt>o?rr=90:rt<-o&&(ar=-90),Tt[0]=ct,Tt[1]=Vt},sphere:function(){ct=-(Vt=180),ar=-(rr=90)}};function Et(kt,Zt){St.push(Tt=[ct=kt,Vt=kt]),Ztrr&&(rr=Zt)}function pt(kt,Zt){var Er=ce([kt*d,Zt*d]);if(Ae){var xr=lt(Ae,Er),Kr=[xr[1],-xr[0],0],Mi=lt(Kr,xr);at(Mi),Mi=Pe(Mi);var Wi=kt-tt,dn=Wi>0?1:-1,wn=Mi[0]*h*dn,On,Yi=v(Wi)>180;Yi^(dn*ttrr&&(rr=On)):(wn=(wn+360)%360-180,Yi^(dn*ttrr&&(rr=Zt))),Yi?ktqr(ct,Vt)&&(Vt=kt):qr(kt,Vt)>qr(ct,Vt)&&(ct=kt):Vt>=ct?(ktVt&&(Vt=kt)):kt>tt?qr(ct,kt)>qr(ct,Vt)&&(Vt=kt):qr(kt,Vt)>qr(ct,Vt)&&(ct=kt)}else St.push(Tt=[ct=kt,Vt=kt]);Ztrr&&(rr=Zt),Ae=Er,tt=kt}function jt(){dt.point=pt}function or(){Tt[0]=ct,Tt[1]=Vt,dt.point=Et,Ae=null}function mr(kt,Zt){if(Ae){var Er=kt-tt;rt.add(v(Er)>180?Er+(Er>0?360:-360):Er)}else je=kt,Ue=Zt;Se.point(kt,Zt),pt(kt,Zt)}function Ar(){Se.lineStart()}function ei(){mr(je,Ue),Se.lineEnd(),v(rt)>o&&(ct=-(Vt=180)),Tt[0]=ct,Tt[1]=Vt,Ae=null}function qr(kt,Zt){return(Zt-=kt)<0?Zt+360:Zt}function jr(kt,Zt){return kt[0]-Zt[0]}function gt(kt,Zt){return kt[0]<=kt[1]?kt[0]<=Zt&&Zt<=kt[1]:Ztqr(xr[0],xr[1])&&(xr[1]=Kr[1]),qr(Kr[0],xr[1])>qr(xr[0],xr[1])&&(xr[0]=Kr[0])):Mi.push(xr=Kr);for(Wi=-1/0,Er=Mi.length-1,Zt=0,xr=Mi[Er];Zt<=Er;xr=Kr,++Zt)Kr=Mi[Zt],(dn=qr(xr[1],Kr[0]))>Wi&&(Wi=dn,ct=Kr[0],Vt=xr[1])}return St=Tt=null,ct===1/0||ar===1/0?[[NaN,NaN],[NaN,NaN]]:[[ct,ar],[Vt,rr]]}var Je,We,et,xt,At,Kt,Qt,Mr,Gr,Ir,Yr,_i,Pi,ai,mi,un,Fn={sphere:q,point:An,lineStart:Qn,lineEnd:Jn,polygonStart:function(){Fn.lineStart=Gt,Fn.lineEnd=wt},polygonEnd:function(){Fn.lineStart=Qn,Fn.lineEnd=Jn}};function An(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt);Hn(Er*p(kt),Er*x(kt),x(Zt))}function Hn(kt,Zt,Er){++Je,et+=(kt-et)/Je,xt+=(Zt-xt)/Je,At+=(Er-At)/Je}function Qn(){Fn.point=Vi}function Vi(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt);ai=Er*p(kt),mi=Er*x(kt),un=x(Zt),Fn.point=Kn,Hn(ai,mi,un)}function Kn(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt),xr=Er*p(kt),Kr=Er*x(kt),Mi=x(Zt),Wi=b(S((Wi=mi*Mi-un*Kr)*Wi+(Wi=un*xr-ai*Mi)*Wi+(Wi=ai*Kr-mi*xr)*Wi),ai*xr+mi*Kr+un*Mi);We+=Wi,Kt+=Wi*(ai+(ai=xr)),Qt+=Wi*(mi+(mi=Kr)),Mr+=Wi*(un+(un=Mi)),Hn(ai,mi,un)}function Jn(){Fn.point=An}function Gt(){Fn.point=tr}function wt(){ir(_i,Pi),Fn.point=An}function tr(kt,Zt){_i=kt,Pi=Zt,kt*=d,Zt*=d,Fn.point=ir;var Er=p(Zt);ai=Er*p(kt),mi=Er*x(kt),un=x(Zt),Hn(ai,mi,un)}function ir(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt),xr=Er*p(kt),Kr=Er*x(kt),Mi=x(Zt),Wi=mi*Mi-un*Kr,dn=un*xr-ai*Mi,wn=ai*Kr-mi*xr,On=S(Wi*Wi+dn*dn+wn*wn),Yi=E(On),$i=On&&-Yi/On;Gr+=$i*Wi,Ir+=$i*dn,Yr+=$i*wn,We+=Yi,Kt+=Yi*(ai+(ai=xr)),Qt+=Yi*(mi+(mi=Kr)),Mr+=Yi*(un+(un=Mi)),Hn(ai,mi,un)}function wr(kt){Je=We=et=xt=At=Kt=Qt=Mr=Gr=Ir=Yr=0,H(kt,Fn);var Zt=Gr,Er=Ir,xr=Yr,Kr=Zt*Zt+Er*Er+xr*xr;return Krl?kt+Math.round(-kt/f)*f:kt,Zt]}$r.invert=$r;function Ri(kt,Zt,Er){return(kt%=f)?Zt||Er?ti(en(kt),fn(Zt,Er)):en(kt):Zt||Er?fn(Zt,Er):$r}function Zi(kt){return function(Zt,Er){return Zt+=kt,[Zt>l?Zt-f:Zt<-l?Zt+f:Zt,Er]}}function en(kt){var Zt=Zi(kt);return Zt.invert=Zi(-kt),Zt}function fn(kt,Zt){var Er=p(kt),xr=x(kt),Kr=p(Zt),Mi=x(Zt);function Wi(dn,wn){var On=p(wn),Yi=p(dn)*On,$i=x(dn)*On,an=x(wn),Fi=an*Er+Yi*xr;return[b($i*Kr-Fi*Mi,Yi*Er-an*xr),E(Fi*Kr+$i*Mi)]}return Wi.invert=function(dn,wn){var On=p(wn),Yi=p(dn)*On,$i=x(dn)*On,an=x(wn),Fi=an*Kr-$i*Mi;return[b($i*Kr+an*Mi,Yi*Er+Fi*xr),E(Fi*Er-Yi*xr)]},Wi}function yn(kt){kt=Ri(kt[0]*d,kt[1]*d,kt.length>2?kt[2]*d:0);function Zt(Er){return Er=kt(Er[0]*d,Er[1]*d),Er[0]*=h,Er[1]*=h,Er}return Zt.invert=function(Er){return Er=kt.invert(Er[0]*d,Er[1]*d),Er[0]*=h,Er[1]*=h,Er},Zt}function Mn(kt,Zt,Er,xr,Kr,Mi){if(Er){var Wi=p(Zt),dn=x(Zt),wn=xr*Er;Kr==null?(Kr=Zt+xr*f,Mi=Zt-wn/2):(Kr=Ba(Wi,Kr),Mi=Ba(Wi,Mi),(xr>0?KrMi)&&(Kr+=xr*f));for(var On,Yi=Kr;xr>0?Yi>Mi:Yi1&&kt.push(kt.pop().concat(kt.shift()))},result:function(){var Er=kt;return kt=[],Zt=null,Er}}}function Wa(kt,Zt){return v(kt[0]-Zt[0])=0;--dn)Kr.point(($i=Yi[dn])[0],$i[1]);else xr(an.x,an.p.x,-1,Kr);an=an.p}an=an.o,Yi=an.z,Fi=!Fi}while(!an.v);Kr.lineEnd()}}}function da(kt){if(Zt=kt.length){for(var Zt,Er=0,xr=kt[0],Kr;++Er=0?1:-1,as=Ss*Zo,ws=as>l,Ho=Ca*Ka;if(jn.add(b(Ho*Ss*x(as),Ra*bo+Ho*p(as))),Wi+=ws?Zo+Ss*f:Zo,ws^Fi>=Er^Zn>=Er){var ml=lt(ce(an),ce(Ua));at(ml);var Ws=lt(Mi,ml);at(Ws);var Ls=(ws^Zo>=0?-1:1)*E(Ws[2]);(xr>Ls||xr===Ls&&(ml[0]||ml[1]))&&(dn+=ws^Zo>=0?1:-1)}}return(Wi<-o||Wi0){for(wn||(Kr.polygonStart(),wn=!0),Kr.lineStart(),bo=0;bo1&&Dn&2&&Ka.push(Ka.pop().concat(Ka.shift())),Yi.push(Ka.filter(Ct))}}return an}}function Ct(kt){return kt.length>1}function Sr(kt,Zt){return((kt=kt.x)[0]<0?kt[1]-u-o:u-kt[1])-((Zt=Zt.x)[0]<0?Zt[1]-u-o:u-Zt[1])}var Jr=Gn(function(){return!0},hi,Sn,[-l,-u]);function hi(kt){var Zt=NaN,Er=NaN,xr=NaN,Kr;return{lineStart:function(){kt.lineStart(),Kr=1},point:function(Mi,Wi){var dn=Mi>0?l:-l,wn=v(Mi-Zt);v(wn-l)0?u:-u),kt.point(xr,Er),kt.lineEnd(),kt.lineStart(),kt.point(dn,Er),kt.point(Mi,Er),Kr=0):xr!==dn&&wn>=l&&(v(Zt-xr)o?m((x(Zt)*(Mi=p(xr))*x(Er)-x(xr)*(Kr=p(Zt))*x(kt))/(Kr*Mi*Wi)):(Zt+xr)/2}function Sn(kt,Zt,Er,xr){var Kr;if(kt==null)Kr=Er*u,xr.point(-l,Kr),xr.point(0,Kr),xr.point(l,Kr),xr.point(l,0),xr.point(l,-Kr),xr.point(0,-Kr),xr.point(-l,-Kr),xr.point(-l,0),xr.point(-l,Kr);else if(v(kt[0]-Zt[0])>o){var Mi=kt[0]0,Kr=v(Zt)>o;function Mi(Yi,$i,an,Fi){Mn(Fi,kt,Er,an,Yi,$i)}function Wi(Yi,$i){return p(Yi)*p($i)>Zt}function dn(Yi){var $i,an,Fi,ta,Ca;return{lineStart:function(){ta=Fi=!1,Ca=1},point:function(Ra,La){var Ua=[Ra,La],Zn,Dn=Wi(Ra,La),Ka=xr?Dn?0:On(Ra,La):Dn?On(Ra+(Ra<0?l:-l),La):0;if(!$i&&(ta=Fi=Dn)&&Yi.lineStart(),Dn!==Fi&&(Zn=wn($i,Ua),(!Zn||Wa($i,Zn)||Wa(Ua,Zn))&&(Ua[2]=1)),Dn!==Fi)Ca=0,Dn?(Yi.lineStart(),Zn=wn(Ua,$i),Yi.point(Zn[0],Zn[1])):(Zn=wn($i,Ua),Yi.point(Zn[0],Zn[1],2),Yi.lineEnd()),$i=Zn;else if(Kr&&$i&&xr^Dn){var bo;!(Ka&an)&&(bo=wn(Ua,$i,!0))&&(Ca=0,xr?(Yi.lineStart(),Yi.point(bo[0][0],bo[0][1]),Yi.point(bo[1][0],bo[1][1]),Yi.lineEnd()):(Yi.point(bo[1][0],bo[1][1]),Yi.lineEnd(),Yi.lineStart(),Yi.point(bo[0][0],bo[0][1],3)))}Dn&&(!$i||!Wa($i,Ua))&&Yi.point(Ua[0],Ua[1]),$i=Ua,Fi=Dn,an=Ka},lineEnd:function(){Fi&&Yi.lineEnd(),$i=null},clean:function(){return Ca|(ta&&Fi)<<1}}}function wn(Yi,$i,an){var Fi=ce(Yi),ta=ce($i),Ca=[1,0,0],Ra=lt(Fi,ta),La=He(Ra,Ra),Ua=Ra[0],Zn=La-Ua*Ua;if(!Zn)return!an&&Yi;var Dn=Zt*La/Zn,Ka=-Zt*Ua/Zn,bo=lt(Ca,Ra),Zo=Ht(Ca,Dn),Ss=Ht(Ra,Ka);mt(Zo,Ss);var as=bo,ws=He(Zo,as),Ho=He(as,as),ml=ws*ws-Ho*(He(Zo,Zo)-1);if(!(ml<0)){var Ws=S(ml),Ls=Ht(as,(-ws-Ws)/Ho);if(mt(Ls,Zo),Ls=Pe(Ls),!an)return Ls;var va=Yi[0],no=$i[0],ys=Yi[1],rs=$i[1],Ql;no0^Ls[1]<(v(Ls[0]-va)l^(va<=Ls[0]&&Ls[0]<=no)){var pu=Ht(as,(-ws+Ws)/Ho);return mt(pu,Zo),[Ls,Pe(pu)]}}}function On(Yi,$i){var an=xr?kt:l-kt,Fi=0;return Yi<-an?Fi|=1:Yi>an&&(Fi|=2),$i<-an?Fi|=4:$i>an&&(Fi|=8),Fi}return Gn(Wi,dn,Mi,xr?[0,-kt]:[-l,kt-l])}function ki(kt,Zt,Er,xr,Kr,Mi){var Wi=kt[0],dn=kt[1],wn=Zt[0],On=Zt[1],Yi=0,$i=1,an=wn-Wi,Fi=On-dn,ta;if(ta=Er-Wi,!(!an&&ta>0)){if(ta/=an,an<0){if(ta0){if(ta>$i)return;ta>Yi&&(Yi=ta)}if(ta=Kr-Wi,!(!an&&ta<0)){if(ta/=an,an<0){if(ta>$i)return;ta>Yi&&(Yi=ta)}else if(an>0){if(ta0)){if(ta/=Fi,Fi<0){if(ta0){if(ta>$i)return;ta>Yi&&(Yi=ta)}if(ta=Mi-dn,!(!Fi&&ta<0)){if(ta/=Fi,Fi<0){if(ta>$i)return;ta>Yi&&(Yi=ta)}else if(Fi>0){if(ta0&&(kt[0]=Wi+Yi*an,kt[1]=dn+Yi*Fi),$i<1&&(Zt[0]=Wi+$i*an,Zt[1]=dn+$i*Fi),!0}}}}}var _n=1e9,ya=-_n;function ea(kt,Zt,Er,xr){function Kr(On,Yi){return kt<=On&&On<=Er&&Zt<=Yi&&Yi<=xr}function Mi(On,Yi,$i,an){var Fi=0,ta=0;if(On==null||(Fi=Wi(On,$i))!==(ta=Wi(Yi,$i))||wn(On,Yi)<0^$i>0)do an.point(Fi===0||Fi===3?kt:Er,Fi>1?xr:Zt);while((Fi=(Fi+$i+4)%4)!==ta);else an.point(Yi[0],Yi[1])}function Wi(On,Yi){return v(On[0]-kt)0?0:3:v(On[0]-Er)0?2:1:v(On[1]-Zt)0?1:0:Yi>0?3:2}function dn(On,Yi){return wn(On.x,Yi.x)}function wn(On,Yi){var $i=Wi(On,1),an=Wi(Yi,1);return $i!==an?$i-an:$i===0?Yi[1]-On[1]:$i===1?On[0]-Yi[0]:$i===2?On[1]-Yi[1]:Yi[0]-On[0]}return function(On){var Yi=On,$i=ma(),an,Fi,ta,Ca,Ra,La,Ua,Zn,Dn,Ka,bo,Zo={point:Ss,lineStart:ml,lineEnd:Ws,polygonStart:ws,polygonEnd:Ho};function Ss(va,no){Kr(va,no)&&Yi.point(va,no)}function as(){for(var va=0,no=0,ys=Fi.length;noxr&&(Uc-Nc)*(xr-pu)>(xu-pu)*(kt-Nc)&&++va:xu<=xr&&(Uc-Nc)*(xr-pu)<(xu-pu)*(kt-Nc)&&--va;return va}function ws(){Yi=$i,an=[],Fi=[],bo=!0}function Ho(){var va=as(),no=bo&&va,ys=(an=t.merge(an)).length;(no||ys)&&(On.polygonStart(),no&&(On.lineStart(),Mi(null,null,1,On),On.lineEnd()),ys&&Xo(an,dn,va,Mi,On),On.polygonEnd()),Yi=On,an=Fi=ta=null}function ml(){Zo.point=Ls,Fi&&Fi.push(ta=[]),Ka=!0,Dn=!1,Ua=Zn=NaN}function Ws(){an&&(Ls(Ca,Ra),La&&Dn&&$i.rejoin(),an.push($i.result())),Zo.point=Ss,Dn&&Yi.lineEnd()}function Ls(va,no){var ys=Kr(va,no);if(Fi&&ta.push([va,no]),Ka)Ca=va,Ra=no,La=ys,Ka=!1,ys&&(Yi.lineStart(),Yi.point(va,no));else if(ys&&Dn)Yi.point(va,no);else{var rs=[Ua=Math.max(ya,Math.min(_n,Ua)),Zn=Math.max(ya,Math.min(_n,Zn))],Ql=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];ki(rs,Ql,kt,Zt,Er,xr)?(Dn||(Yi.lineStart(),Yi.point(rs[0],rs[1])),Yi.point(Ql[0],Ql[1]),ys||Yi.lineEnd(),bo=!1):ys&&(Yi.lineStart(),Yi.point(va,no),bo=!1)}Ua=va,Zn=no,Dn=ys}return Zo}}function Ma(){var kt=0,Zt=0,Er=960,xr=500,Kr,Mi,Wi;return Wi={stream:function(dn){return Kr&&Mi===dn?Kr:Kr=ea(kt,Zt,Er,xr)(Mi=dn)},extent:function(dn){return arguments.length?(kt=+dn[0][0],Zt=+dn[0][1],Er=+dn[1][0],xr=+dn[1][1],Kr=Mi=null,Wi):[[kt,Zt],[Er,xr]]}}}var _o=r(),No,po,Lo,ko={sphere:q,point:q,lineStart:Ds,lineEnd:q,polygonStart:q,polygonEnd:q};function Ds(){ko.point=ll,ko.lineEnd=Fs}function Fs(){ko.point=ko.lineEnd=q}function ll(kt,Zt){kt*=d,Zt*=d,No=kt,po=x(Zt),Lo=p(Zt),ko.point=ul}function ul(kt,Zt){kt*=d,Zt*=d;var Er=x(Zt),xr=p(Zt),Kr=v(kt-No),Mi=p(Kr),Wi=x(Kr),dn=xr*Wi,wn=Lo*Er-po*xr*Mi,On=po*Er+Lo*xr*Mi;_o.add(b(S(dn*dn+wn*wn),On)),No=kt,po=Er,Lo=xr}function zl(kt){return _o.reset(),H(kt,ko),+_o}var us=[null,null],il={type:"LineString",coordinates:us};function As(kt,Zt){return us[0]=kt,us[1]=Zt,zl(il)}var cl={Feature:function(kt,Zt){return zs(kt.geometry,Zt)},FeatureCollection:function(kt,Zt){for(var Er=kt.features,xr=-1,Kr=Er.length;++xr0&&(Kr=As(kt[Mi],kt[Mi-1]),Kr>0&&Er<=Kr&&xr<=Kr&&(Er+xr-Kr)*(1-Math.pow((Er-xr)/Kr,2))o}).map(an)).concat(t.range(k(Mi/On)*On,Kr,On).filter(function(Zn){return v(Zn%$i)>o}).map(Fi))}return La.lines=function(){return Ua().map(function(Zn){return{type:"LineString",coordinates:Zn}})},La.outline=function(){return{type:"Polygon",coordinates:[ta(xr).concat(Ca(Wi).slice(1),ta(Er).reverse().slice(1),Ca(dn).reverse().slice(1))]}},La.extent=function(Zn){return arguments.length?La.extentMajor(Zn).extentMinor(Zn):La.extentMinor()},La.extentMajor=function(Zn){return arguments.length?(xr=+Zn[0][0],Er=+Zn[1][0],dn=+Zn[0][1],Wi=+Zn[1][1],xr>Er&&(Zn=xr,xr=Er,Er=Zn),dn>Wi&&(Zn=dn,dn=Wi,Wi=Zn),La.precision(Ra)):[[xr,dn],[Er,Wi]]},La.extentMinor=function(Zn){return arguments.length?(Zt=+Zn[0][0],kt=+Zn[1][0],Mi=+Zn[0][1],Kr=+Zn[1][1],Zt>kt&&(Zn=Zt,Zt=kt,kt=Zn),Mi>Kr&&(Zn=Mi,Mi=Kr,Kr=Zn),La.precision(Ra)):[[Zt,Mi],[kt,Kr]]},La.step=function(Zn){return arguments.length?La.stepMajor(Zn).stepMinor(Zn):La.stepMinor()},La.stepMajor=function(Zn){return arguments.length?(Yi=+Zn[0],$i=+Zn[1],La):[Yi,$i]},La.stepMinor=function(Zn){return arguments.length?(wn=+Zn[0],On=+Zn[1],La):[wn,On]},La.precision=function(Zn){return arguments.length?(Ra=+Zn,an=Rn(Mi,Kr,90),Fi=_a(Zt,kt,Ra),ta=Rn(dn,Wi,90),Ca=_a(xr,Er,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ql(){return Vu()()}function xo(kt,Zt){var Er=kt[0]*d,xr=kt[1]*d,Kr=Zt[0]*d,Mi=Zt[1]*d,Wi=p(xr),dn=x(xr),wn=p(Mi),On=x(Mi),Yi=Wi*p(Er),$i=Wi*x(Er),an=wn*p(Kr),Fi=wn*x(Kr),ta=2*E(S(z(Mi-xr)+Wi*wn*z(Kr-Er))),Ca=x(ta),Ra=ta?function(La){var Ua=x(La*=ta)/Ca,Zn=x(ta-La)/Ca,Dn=Zn*Yi+Ua*an,Ka=Zn*$i+Ua*Fi,bo=Zn*dn+Ua*On;return[b(Ka,Dn)*h,b(bo,S(Dn*Dn+Ka*Ka))*h]}:function(){return[Er*h,xr*h]};return Ra.distance=ta,Ra}function Kl(kt){return kt}var Ns=r(),Hl=r(),ac,oa,qo,Oo,Ol={point:q,lineStart:q,lineEnd:q,polygonStart:function(){Ol.lineStart=Pc,Ol.lineEnd=Vf},polygonEnd:function(){Ol.lineStart=Ol.lineEnd=Ol.point=q,Ns.add(v(Hl)),Hl.reset()},result:function(){var kt=Ns/2;return Ns.reset(),kt}};function Pc(){Ol.point=Do}function Do(kt,Zt){Ol.point=nf,ac=qo=kt,oa=Oo=Zt}function nf(kt,Zt){Hl.add(Oo*kt-qo*Zt),qo=kt,Oo=Zt}function Vf(){nf(ac,oa)}var pl=1/0,Zc=pl,Jl=-pl,qs=Jl,yu={point:oc,lineStart:q,lineEnd:q,polygonStart:q,polygonEnd:q,result:function(){var kt=[[pl,Zc],[Jl,qs]];return Jl=qs=-(Zc=pl=1/0),kt}};function oc(kt,Zt){ktJl&&(Jl=kt),Ztqs&&(qs=Zt)}var Cf=0,sc=0,jh=0,Lf=0,cs=0,af=0,Gf=0,$l=0,fl=0,lc,Fu,Es,Hs,Go={point:ps,lineStart:uc,lineEnd:Os,polygonStart:function(){Go.lineStart=od,Go.lineEnd=Po},polygonEnd:function(){Go.point=ps,Go.lineStart=uc,Go.lineEnd=Os},result:function(){var kt=fl?[Gf/fl,$l/fl]:af?[Lf/af,cs/af]:jh?[Cf/jh,sc/jh]:[NaN,NaN];return Cf=sc=jh=Lf=cs=af=Gf=$l=fl=0,kt}};function ps(kt,Zt){Cf+=kt,sc+=Zt,++jh}function uc(){Go.point=xl}function xl(kt,Zt){Go.point=Gu,ps(Es=kt,Hs=Zt)}function Gu(kt,Zt){var Er=kt-Es,xr=Zt-Hs,Kr=S(Er*Er+xr*xr);Lf+=Kr*(Es+kt)/2,cs+=Kr*(Hs+Zt)/2,af+=Kr,ps(Es=kt,Hs=Zt)}function Os(){Go.point=ps}function od(){Go.point=sd}function Po(){Ko(lc,Fu)}function sd(kt,Zt){Go.point=Ko,ps(lc=Es=kt,Fu=Hs=Zt)}function Ko(kt,Zt){var Er=kt-Es,xr=Zt-Hs,Kr=S(Er*Er+xr*xr);Lf+=Kr*(Es+kt)/2,cs+=Kr*(Hs+Zt)/2,af+=Kr,Kr=Hs*kt-Es*Zt,Gf+=Kr*(Es+kt),$l+=Kr*(Hs+Zt),fl+=Kr*3,ps(Es=kt,Hs=Zt)}function Pa(kt){this._context=kt}Pa.prototype={_radius:4.5,pointRadius:function(kt){return this._radius=kt,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(kt,Zt){switch(this._point){case 0:{this._context.moveTo(kt,Zt),this._point=1;break}case 1:{this._context.lineTo(kt,Zt);break}default:{this._context.moveTo(kt+this._radius,Zt),this._context.arc(kt,Zt,this._radius,0,f);break}}},result:q};var of=r(),Hu,bl,Hf,Ic,yf,Bl={point:q,lineStart:function(){Bl.point=Ah},lineEnd:function(){Hu&&Qf(bl,Hf),Bl.point=q},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var kt=+of;return of.reset(),kt}};function Ah(kt,Zt){Bl.point=Qf,bl=Ic=kt,Hf=yf=Zt}function Qf(kt,Zt){Ic-=kt,yf-=Zt,of.add(S(Ic*Ic+yf*yf)),Ic=kt,yf=Zt}function _f(){this._string=[]}_f.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(kt){return(kt=+kt)!==this._radius&&(this._radius=kt,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(kt,Zt){switch(this._point){case 0:{this._string.push("M",kt,",",Zt),this._point=1;break}case 1:{this._string.push("L",kt,",",Zt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",kt,",",Zt,this._circle);break}}},result:function(){if(this._string.length){var kt=this._string.join("");return this._string=[],kt}else return null}};function Yc(kt){return"m0,"+kt+"a"+kt+","+kt+" 0 1,1 0,"+-2*kt+"a"+kt+","+kt+" 0 1,1 0,"+2*kt+"z"}function eh(kt,Zt){var Er=4.5,xr,Kr;function Mi(Wi){return Wi&&(typeof Er=="function"&&Kr.pointRadius(+Er.apply(this,arguments)),H(Wi,xr(Kr))),Kr.result()}return Mi.area=function(Wi){return H(Wi,xr(Ol)),Ol.result()},Mi.measure=function(Wi){return H(Wi,xr(Bl)),Bl.result()},Mi.bounds=function(Wi){return H(Wi,xr(yu)),yu.result()},Mi.centroid=function(Wi){return H(Wi,xr(Go)),Go.result()},Mi.projection=function(Wi){return arguments.length?(xr=Wi==null?(kt=null,Kl):(kt=Wi).stream,Mi):kt},Mi.context=function(Wi){return arguments.length?(Kr=Wi==null?(Zt=null,new _f):new Pa(Zt=Wi),typeof Er!="function"&&Kr.pointRadius(Er),Mi):Zt},Mi.pointRadius=function(Wi){return arguments.length?(Er=typeof Wi=="function"?Wi:(Kr.pointRadius(+Wi),+Wi),Mi):Er},Mi.projection(kt).context(Zt)}function th(kt){return{stream:ju(kt)}}function ju(kt){return function(Zt){var Er=new jf;for(var xr in kt)Er[xr]=kt[xr];return Er.stream=Zt,Er}}function jf(){}jf.prototype={constructor:jf,point:function(kt,Zt){this.stream.point(kt,Zt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function cc(kt,Zt,Er){var xr=kt.clipExtent&&kt.clipExtent();return kt.scale(150).translate([0,0]),xr!=null&&kt.clipExtent(null),H(Er,kt.stream(yu)),Zt(yu.result()),xr!=null&&kt.clipExtent(xr),kt}function sf(kt,Zt,Er){return cc(kt,function(xr){var Kr=Zt[1][0]-Zt[0][0],Mi=Zt[1][1]-Zt[0][1],Wi=Math.min(Kr/(xr[1][0]-xr[0][0]),Mi/(xr[1][1]-xr[0][1])),dn=+Zt[0][0]+(Kr-Wi*(xr[1][0]+xr[0][0]))/2,wn=+Zt[0][1]+(Mi-Wi*(xr[1][1]+xr[0][1]))/2;kt.scale(150*Wi).translate([dn,wn])},Er)}function Nl(kt,Zt,Er){return sf(kt,[[0,0],Zt],Er)}function Kc(kt,Zt,Er){return cc(kt,function(xr){var Kr=+Zt,Mi=Kr/(xr[1][0]-xr[0][0]),Wi=(Kr-Mi*(xr[1][0]+xr[0][0]))/2,dn=-Mi*xr[0][1];kt.scale(150*Mi).translate([Wi,dn])},Er)}function Rc(kt,Zt,Er){return cc(kt,function(xr){var Kr=+Zt,Mi=Kr/(xr[1][1]-xr[0][1]),Wi=-Mi*xr[0][0],dn=(Kr-Mi*(xr[1][1]+xr[0][1]))/2;kt.scale(150*Mi).translate([Wi,dn])},Er)}var gs=16,Wf=p(30*d);function Wh(kt,Zt){return+Zt?lf(kt,Zt):rh(kt)}function rh(kt){return ju({point:function(Zt,Er){Zt=kt(Zt,Er),this.stream.point(Zt[0],Zt[1])}})}function lf(kt,Zt){function Er(xr,Kr,Mi,Wi,dn,wn,On,Yi,$i,an,Fi,ta,Ca,Ra){var La=On-xr,Ua=Yi-Kr,Zn=La*La+Ua*Ua;if(Zn>4*Zt&&Ca--){var Dn=Wi+an,Ka=dn+Fi,bo=wn+ta,Zo=S(Dn*Dn+Ka*Ka+bo*bo),Ss=E(bo/=Zo),as=v(v(bo)-1)Zt||v((La*Ws+Ua*Ls)/Zn-.5)>.3||Wi*an+dn*Fi+wn*ta2?va[2]%360*d:0,Ws()):[dn*h,wn*h,On*h]},Ho.angle=function(va){return arguments.length?($i=va%360*d,Ws()):$i*h},Ho.reflectX=function(va){return arguments.length?(an=va?-1:1,Ws()):an<0},Ho.reflectY=function(va){return arguments.length?(Fi=va?-1:1,Ws()):Fi<0},Ho.precision=function(va){return arguments.length?(bo=Wh(Zo,Ka=va*va),Ls()):S(Ka)},Ho.fitExtent=function(va,no){return sf(Ho,va,no)},Ho.fitSize=function(va,no){return Nl(Ho,va,no)},Ho.fitWidth=function(va,no){return Kc(Ho,va,no)},Ho.fitHeight=function(va,no){return Rc(Ho,va,no)};function Ws(){var va=js(Er,0,0,an,Fi,$i).apply(null,Zt(Mi,Wi)),no=($i?js:ih)(Er,xr-va[0],Kr-va[1],an,Fi,$i);return Yi=Ri(dn,wn,On),Zo=ti(Zt,no),Ss=ti(Yi,Zo),bo=Wh(Zo,Ka),Ls()}function Ls(){return as=ws=null,Ho}return function(){return Zt=kt.apply(this,arguments),Ho.invert=Zt.invert&&ml,Ws()}}function ks(kt){var Zt=0,Er=l/3,xr=Dc(kt),Kr=xr(Zt,Er);return Kr.parallels=function(Mi){return arguments.length?xr(Zt=Mi[0]*d,Er=Mi[1]*d):[Zt*h,Er*h]},Kr}function bc(kt){var Zt=p(kt);function Er(xr,Kr){return[xr*Zt,x(Kr)/Zt]}return Er.invert=function(xr,Kr){return[xr/Zt,E(Kr*Zt)]},Er}function hu(kt,Zt){var Er=x(kt),xr=(Er+x(Zt))/2;if(v(xr)=.12&&Ra<.234&&Ca>=-.425&&Ca<-.214?Kr:Ra>=.166&&Ra<.234&&Ca>=-.214&&Ca<-.115?Wi:Er).invert(an)},Yi.stream=function(an){return kt&&Zt===an?kt:kt=nh([Er.stream(Zt=an),Kr.stream(an),Wi.stream(an)])},Yi.precision=function(an){return arguments.length?(Er.precision(an),Kr.precision(an),Wi.precision(an),$i()):Er.precision()},Yi.scale=function(an){return arguments.length?(Er.scale(an),Kr.scale(an*.35),Wi.scale(an),Yi.translate(Er.translate())):Er.scale()},Yi.translate=function(an){if(!arguments.length)return Er.translate();var Fi=Er.scale(),ta=+an[0],Ca=+an[1];return xr=Er.translate(an).clipExtent([[ta-.455*Fi,Ca-.238*Fi],[ta+.455*Fi,Ca+.238*Fi]]).stream(On),Mi=Kr.translate([ta-.307*Fi,Ca+.201*Fi]).clipExtent([[ta-.425*Fi+o,Ca+.12*Fi+o],[ta-.214*Fi-o,Ca+.234*Fi-o]]).stream(On),dn=Wi.translate([ta-.205*Fi,Ca+.212*Fi]).clipExtent([[ta-.214*Fi+o,Ca+.166*Fi+o],[ta-.115*Fi-o,Ca+.234*Fi-o]]).stream(On),$i()},Yi.fitExtent=function(an,Fi){return sf(Yi,an,Fi)},Yi.fitSize=function(an,Fi){return Nl(Yi,an,Fi)},Yi.fitWidth=function(an,Fi){return Kc(Yi,an,Fi)},Yi.fitHeight=function(an,Fi){return Rc(Yi,an,Fi)};function $i(){return kt=Zt=null,Yi}return Yi.scale(1070)}function zu(kt){return function(Zt,Er){var xr=p(Zt),Kr=p(Er),Mi=kt(xr*Kr);return[Mi*Kr*x(Zt),Mi*x(Er)]}}function Fc(kt){return function(Zt,Er){var xr=S(Zt*Zt+Er*Er),Kr=kt(xr),Mi=x(Kr),Wi=p(Kr);return[b(Zt*Mi,xr*Wi),E(xr&&Er*Mi/xr)]}}var wc=zu(function(kt){return S(2/(1+kt))});wc.invert=Fc(function(kt){return 2*E(kt/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var xf=zu(function(kt){return(kt=P(kt))&&kt/x(kt)});xf.invert=Fc(function(kt){return kt});function Pf(){return Eu(xf).scale(79.4188).clipAngle(180-.001)}function qu(kt,Zt){return[kt,T(g((u+Zt)/2))]}qu.invert=function(kt,Zt){return[kt,2*m(M(Zt))-u]};function bf(){return jl(qu).scale(961/f)}function jl(kt){var Zt=Eu(kt),Er=Zt.center,xr=Zt.scale,Kr=Zt.translate,Mi=Zt.clipExtent,Wi=null,dn,wn,On;Zt.scale=function($i){return arguments.length?(xr($i),Yi()):xr()},Zt.translate=function($i){return arguments.length?(Kr($i),Yi()):Kr()},Zt.center=function($i){return arguments.length?(Er($i),Yi()):Er()},Zt.clipExtent=function($i){return arguments.length?($i==null?Wi=dn=wn=On=null:(Wi=+$i[0][0],dn=+$i[0][1],wn=+$i[1][0],On=+$i[1][1]),Yi()):Wi==null?null:[[Wi,dn],[wn,On]]};function Yi(){var $i=l*xr(),an=Zt(yn(Zt.rotate()).invert([0,0]));return Mi(Wi==null?[[an[0]-$i,an[1]-$i],[an[0]+$i,an[1]+$i]]:kt===qu?[[Math.max(an[0]-$i,Wi),dn],[Math.min(an[0]+$i,wn),On]]:[[Wi,Math.max(an[1]-$i,dn)],[wn,Math.min(an[1]+$i,On)]])}return Yi()}function uf(kt){return g((u+kt)/2)}function Xh(kt,Zt){var Er=p(kt),xr=kt===Zt?x(kt):T(Er/p(Zt))/T(uf(Zt)/uf(kt)),Kr=Er*L(uf(kt),xr)/xr;if(!xr)return qu;function Mi(Wi,dn){Kr>0?dn<-u+o&&(dn=-u+o):dn>u-o&&(dn=u-o);var wn=Kr/L(uf(dn),xr);return[wn*x(xr*Wi),Kr-wn*p(xr*Wi)]}return Mi.invert=function(Wi,dn){var wn=Kr-dn,On=C(xr)*S(Wi*Wi+wn*wn),Yi=b(Wi,v(wn))*C(wn);return wn*xr<0&&(Yi-=l*C(Wi)*C(wn)),[Yi/xr,2*m(L(Kr/On,1/xr))-u]},Mi}function If(){return ks(Xh).scale(109.5).parallels([30,30])}function Cs(kt,Zt){return[kt,Zt]}Cs.invert=Cs;function du(){return Eu(Cs).scale(152.63)}function ku(kt,Zt){var Er=p(kt),xr=kt===Zt?x(kt):(Er-p(Zt))/(Zt-kt),Kr=Er/xr+kt;if(v(xr)o&&--xr>0);return[kt/(.8707+(Mi=Er*Er)*(-.131979+Mi*(-.013791+Mi*Mi*Mi*(.003971-.001529*Mi)))),Er]};function Tc(){return Eu(qc).scale(175.295)}function wl(kt,Zt){return[p(Zt)*x(kt),x(Zt)]}wl.invert=Fc(E);function vu(){return Eu(wl).scale(249.5).clipAngle(90+o)}function Oc(kt,Zt){var Er=p(Zt),xr=1+p(kt)*Er;return[Er*x(kt)/xr,x(Zt)/xr]}Oc.invert=Fc(function(kt){return 2*m(kt)});function ff(){return Eu(Oc).scale(250).clipAngle(142)}function fc(kt,Zt){return[T(g((u+Zt)/2)),-kt]}fc.invert=function(kt,Zt){return[-Zt,2*m(M(kt))-u]};function Bc(){var kt=jl(fc),Zt=kt.center,Er=kt.rotate;return kt.center=function(xr){return arguments.length?Zt([-xr[1],xr[0]]):(xr=Zt(),[xr[1],-xr[0]])},kt.rotate=function(xr){return arguments.length?Er([xr[0],xr[1],xr.length>2?xr[2]+90:90]):(xr=Er(),[xr[0],xr[1],xr[2]-90])},Er([0,0,90]).scale(159.155)}e.geoAlbers=nl,e.geoAlbersUsa=Mh,e.geoArea=me,e.geoAzimuthalEqualArea=bd,e.geoAzimuthalEqualAreaRaw=wc,e.geoAzimuthalEquidistant=Pf,e.geoAzimuthalEquidistantRaw=xf,e.geoBounds=Ge,e.geoCentroid=wr,e.geoCircle=ua,e.geoClipAntimeridian=Jr,e.geoClipCircle=En,e.geoClipExtent=Ma,e.geoClipRectangle=ea,e.geoConicConformal=If,e.geoConicConformalRaw=Xh,e.geoConicEqualArea=_u,e.geoConicEqualAreaRaw=hu,e.geoConicEquidistant=Xf,e.geoConicEquidistantRaw=ku,e.geoContains=bs,e.geoDistance=As,e.geoEqualEarth=Zf,e.geoEqualEarthRaw=cf,e.geoEquirectangular=du,e.geoEquirectangularRaw=Cs,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=ql,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=zl,e.geoMercator=bf,e.geoMercatorRaw=qu,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=qc,e.geoOrthographic=vu,e.geoOrthographicRaw=wl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=ff,e.geoStereographicRaw=Oc,e.geoStream=H,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})})});var VDe=ye((qF,UDe)=>{(function(e,t){typeof qF=="object"&&typeof UDe!="undefined"?t(qF,UZ(),dk()):t(e.d3=e.d3||{},e.d3,e.d3)})(qF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,d=Math.round,v=Math.sign||function(ve){return ve>0?1:ve<0?-1:0},m=Math.sin,b=Math.tan,p=1e-6,k=1e-12,M=Math.PI,T=M/2,L=M/4,x=Math.SQRT1_2,C=G(2),S=G(M),g=M*2,P=180/M,E=M/180;function z(ve){return ve?ve/Math.sin(ve):1}function q(ve){return ve>1?T:ve<-1?-T:Math.asin(ve)}function V(ve){return ve>1?0:ve<-1?M:Math.acos(ve)}function G(ve){return ve>0?Math.sqrt(ve):0}function Z(ve){return ve=s(2*ve),(ve-1)/(ve+1)}function j(ve){return(s(ve)-s(-ve))/2}function N(ve){return(s(ve)+s(-ve))/2}function H(ve){return u(ve+G(ve*ve+1))}function ie(ve){return u(ve+G(ve*ve-1))}function ae(ve){var xe=b(ve/2),Ie=2*u(o(ve/2))/(xe*xe);function ze(Qe,Xe){var nt=o(Qe),qt=o(Xe),Wt=m(Xe),nr=qt*nt,fr=-((1-nr?u((1+nr)/2)/(1-nr):-.5)+Ie/(1+nr));return[fr*qt*m(Qe),fr*Wt]}return ze.invert=function(Qe,Xe){var nt=G(Qe*Qe+Xe*Xe),qt=-ve/2,Wt=50,nr;if(!nt)return[0,0];do{var fr=qt/2,br=o(fr),Fr=m(fr),Hr=Fr/br,ri=-u(n(br));qt-=nr=(2/Hr*ri-Ie*Hr-nt)/(-ri/(Fr*Fr)+1-Ie/(2*br*br))*(br<0?.7:1)}while(n(nr)>p&&--Wt>0);var Ci=m(qt);return[a(Qe*Ci,nt*o(qt)),q(Xe*Ci/nt)]},ze}function _e(){var ve=T,xe=t.geoProjectionMutator(ae),Ie=xe(ve);return Ie.radius=function(ze){return arguments.length?xe(ve=ze*E):ve*P},Ie.scale(179.976).clipAngle(147)}function Ee(ve,xe){var Ie=o(xe),ze=z(V(Ie*o(ve/=2)));return[2*Ie*m(ve)*ze,m(xe)*ze]}Ee.invert=function(ve,xe){if(!(ve*ve+4*xe*xe>M*M+p)){var Ie=ve,ze=xe,Qe=25;do{var Xe=m(Ie),nt=m(Ie/2),qt=o(Ie/2),Wt=m(ze),nr=o(ze),fr=m(2*ze),br=Wt*Wt,Fr=nr*nr,Hr=nt*nt,ri=1-Fr*qt*qt,Ci=ri?V(nr*qt)*G(cn=1/ri):cn=0,cn,sn=2*Ci*nr*nt-ve,Ln=Ci*Wt-xe,Yn=cn*(Fr*Hr+Ci*nr*qt*br),Aa=cn*(.5*Xe*fr-Ci*2*Wt*nt),fa=cn*.25*(fr*nt-Ci*Wt*Fr*Xe),$a=cn*(br*qt+Ci*Hr*nr),Co=Aa*fa-$a*Yn;if(!Co)break;var Qa=(Ln*Aa-sn*$a)/Co,mo=(sn*fa-Ln*Yn)/Co;Ie-=Qa,ze-=mo}while((n(Qa)>p||n(mo)>p)&&--Qe>0);return[Ie,ze]}};function Ce(){return t.geoProjection(Ee).scale(152.63)}function ge(ve){var xe=m(ve),Ie=o(ve),ze=ve>=0?1:-1,Qe=b(ze*ve),Xe=(1+xe-Ie)/2;function nt(qt,Wt){var nr=o(Wt),fr=o(qt/=2);return[(1+nr)*m(qt),(ze*Wt>-a(fr,Qe)-.001?0:-ze*10)+Xe+m(Wt)*Ie-(1+nr)*xe*fr]}return nt.invert=function(qt,Wt){var nr=0,fr=0,br=50;do{var Fr=o(nr),Hr=m(nr),ri=o(fr),Ci=m(fr),cn=1+ri,sn=cn*Hr-qt,Ln=Xe+Ci*Ie-cn*xe*Fr-Wt,Yn=cn*Fr/2,Aa=-Hr*Ci,fa=xe*cn*Hr/2,$a=Ie*ri+xe*Fr*Ci,Co=Aa*fa-$a*Yn,Qa=(Ln*Aa-sn*$a)/Co/2,mo=(sn*fa-Ln*Yn)/Co;n(mo)>2&&(mo/=2),nr-=Qa,fr-=mo}while((n(Qa)>p||n(mo)>p)&&--br>0);return ze*fr>-a(o(nr),Qe)-.001?[nr*2,fr]:null},nt}function re(){var ve=20*E,xe=ve>=0?1:-1,Ie=b(xe*ve),ze=t.geoProjectionMutator(ge),Qe=ze(ve),Xe=Qe.stream;return Qe.parallel=function(nt){return arguments.length?(Ie=b((xe=(ve=nt*E)>=0?1:-1)*ve),ze(ve)):ve*P},Qe.stream=function(nt){var qt=Qe.rotate(),Wt=Xe(nt),nr=(Qe.rotate([0,0]),Xe(nt)),fr=Qe.precision();return Qe.rotate(qt),Wt.sphere=function(){nr.polygonStart(),nr.lineStart();for(var br=xe*-180;xe*br<180;br+=xe*90)nr.point(br,xe*90);if(ve)for(;xe*(br-=3*xe*fr)>=-180;)nr.point(br,xe*-a(o(br*E/2),Ie)*P);nr.lineEnd(),nr.polygonEnd()},Wt},Qe.scale(218.695).center([0,28.0974])}function Se(ve,xe){var Ie=b(xe/2),ze=G(1-Ie*Ie),Qe=1+ze*o(ve/=2),Xe=m(ve)*ze/Qe,nt=Ie/Qe,qt=Xe*Xe,Wt=nt*nt;return[4/3*Xe*(3+qt-3*Wt),4/3*nt*(3+3*qt-Wt)]}Se.invert=function(ve,xe){if(ve*=3/8,xe*=3/8,!ve&&n(xe)>1)return null;var Ie=ve*ve,ze=xe*xe,Qe=1+Ie+ze,Xe=G((Qe-G(Qe*Qe-4*xe*xe))/2),nt=q(Xe)/3,qt=Xe?ie(n(xe/Xe))/3:H(n(ve))/3,Wt=o(nt),nr=N(qt),fr=nr*nr-Wt*Wt;return[v(ve)*2*a(j(qt)*Wt,.25-fr),v(xe)*2*a(nr*m(nt),.25+fr)]};function ke(){return t.geoProjection(Se).scale(66.1603)}var be=G(8),Be=u(1+C);function Le(ve,xe){var Ie=n(xe);return Iek&&--ze>0);return[ve/(o(Ie)*(be-1/m(Ie))),v(xe)*Ie]};function me(){return t.geoProjection(Le).scale(112.314)}function Pe(ve){var xe=2*M/ve;function Ie(ze,Qe){var Xe=t.geoAzimuthalEquidistantRaw(ze,Qe);if(n(ze)>T){var nt=a(Xe[1],Xe[0]),qt=G(Xe[0]*Xe[0]+Xe[1]*Xe[1]),Wt=xe*d((nt-T)/xe)+T,nr=a(m(nt-=Wt),2-o(nt));nt=Wt+q(M/qt*m(nr))-nr,Xe[0]=qt*o(nt),Xe[1]=qt*m(nt)}return Xe}return Ie.invert=function(ze,Qe){var Xe=G(ze*ze+Qe*Qe);if(Xe>T){var nt=a(Qe,ze),qt=xe*d((nt-T)/xe)+T,Wt=nt>qt?-1:1,nr=Xe*o(qt-nt),fr=1/b(Wt*V((nr-M)/G(M*(M-2*nr)+Xe*Xe)));nt=qt+2*i((fr+Wt*G(fr*fr-3))/3),ze=Xe*o(nt),Qe=Xe*m(nt)}return t.geoAzimuthalEquidistantRaw.invert(ze,Qe)},Ie}function ce(){var ve=5,xe=t.geoProjectionMutator(Pe),Ie=xe(ve),ze=Ie.stream,Qe=.01,Xe=-o(Qe*E),nt=m(Qe*E);return Ie.lobes=function(qt){return arguments.length?xe(ve=+qt):ve},Ie.stream=function(qt){var Wt=Ie.rotate(),nr=ze(qt),fr=(Ie.rotate([0,0]),ze(qt));return Ie.rotate(Wt),nr.sphere=function(){fr.polygonStart(),fr.lineStart();for(var br=0,Fr=360/ve,Hr=2*M/ve,ri=90-180/ve,Ci=T;br0&&n(Qe)>p);return ze<0?NaN:Ie}function at(ve,xe,Ie){return xe===void 0&&(xe=40),Ie===void 0&&(Ie=k),function(ze,Qe,Xe,nt){var qt,Wt,nr;Xe=Xe===void 0?0:+Xe,nt=nt===void 0?0:+nt;for(var fr=0;frqt){Xe-=Wt/=2,nt-=nr/=2;continue}qt=ri;var Ci=(Xe>0?-1:1)*Ie,cn=(nt>0?-1:1)*Ie,sn=ve(Xe+Ci,nt),Ln=ve(Xe,nt+cn),Yn=(sn[0]-br[0])/Ci,Aa=(sn[1]-br[1])/Ci,fa=(Ln[0]-br[0])/cn,$a=(Ln[1]-br[1])/cn,Co=$a*Yn-Aa*fa,Qa=(n(Co)<.5?.5:1)/Co;if(Wt=(Hr*fa-Fr*$a)*Qa,nr=(Fr*Aa-Hr*Yn)*Qa,Xe+=Wt,nt+=nr,n(Wt)0&&(qt[1]*=1+Wt/1.5*qt[0]*qt[0]),qt}return ze.invert=at(ze),ze}function ar(){return t.geoProjection(ct()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Vt(ve,xe){var Ie=ve*m(xe),ze=30,Qe;do xe-=Qe=(xe+m(xe)-Ie)/(1+o(xe));while(n(Qe)>p&&--ze>0);return xe/2}function rr(ve,xe,Ie){function ze(Qe,Xe){return[ve*Qe*o(Xe=Vt(Ie,Xe)),xe*m(Xe)]}return ze.invert=function(Qe,Xe){return Xe=q(Xe/xe),[Qe/(ve*o(Xe)),q((2*Xe+m(2*Xe))/Ie)]},ze}var tt=rr(C/T,C,M);function je(){return t.geoProjection(tt).scale(169.529)}var Ue=2.00276,Ae=1.11072;function rt(ve,xe){var Ie=Vt(M,xe);return[Ue*ve/(1/o(xe)+Ae/o(Ie)),(xe+C*m(Ie))/Ue]}rt.invert=function(ve,xe){var Ie=Ue*xe,ze=xe<0?-L:L,Qe=25,Xe,nt;do nt=Ie-C*m(ze),ze-=Xe=(m(2*ze)+2*ze-M*m(nt))/(2*o(2*ze)+2+M*o(nt)*C*o(ze));while(n(Xe)>p&&--Qe>0);return nt=Ie-C*m(ze),[ve*(1/o(nt)+Ae/o(ze))/Ue,nt]};function St(){return t.geoProjection(rt).scale(160.857)}function Tt(ve){var xe=0,Ie=t.geoProjectionMutator(ve),ze=Ie(xe);return ze.parallel=function(Qe){return arguments.length?Ie(xe=Qe*E):xe*P},ze}function dt(ve,xe){return[ve*o(xe),xe]}dt.invert=function(ve,xe){return[ve/o(xe),xe]};function Et(){return t.geoProjection(dt).scale(152.63)}function pt(ve){if(!ve)return dt;var xe=1/b(ve);function Ie(ze,Qe){var Xe=xe+ve-Qe,nt=Xe&&ze*o(Qe)/Xe;return[Xe*m(nt),xe-Xe*o(nt)]}return Ie.invert=function(ze,Qe){var Xe=G(ze*ze+(Qe=xe-Qe)*Qe),nt=xe+ve-Xe;return[Xe/o(nt)*a(ze,Qe),nt]},Ie}function jt(){return Tt(pt).scale(123.082).center([0,26.1441]).parallel(45)}function or(ve){function xe(Ie,ze){var Qe=T-ze,Xe=Qe&&Ie*ve*m(Qe)/Qe;return[Qe*m(Xe)/ve,T-Qe*o(Xe)]}return xe.invert=function(Ie,ze){var Qe=Ie*ve,Xe=T-ze,nt=G(Qe*Qe+Xe*Xe),qt=a(Qe,Xe);return[(nt?nt/m(nt):1)*qt/ve,T-nt]},xe}function mr(){var ve=.5,xe=t.geoProjectionMutator(or),Ie=xe(ve);return Ie.fraction=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(158.837)}var Ar=rr(1,4/M,M);function ei(){return t.geoProjection(Ar).scale(152.63)}function qr(ve,xe,Ie,ze,Qe,Xe){var nt=o(Xe),qt;if(n(ve)>1||n(Xe)>1)qt=V(Ie*Qe+xe*ze*nt);else{var Wt=m(ve/2),nr=m(Xe/2);qt=2*q(G(Wt*Wt+xe*ze*nr*nr))}return n(qt)>p?[qt,a(ze*m(Xe),xe*Qe-Ie*ze*nt)]:[0,0]}function jr(ve,xe,Ie){return V((ve*ve+xe*xe-Ie*Ie)/(2*ve*xe))}function gt(ve){return ve-2*M*l((ve+M)/(2*M))}function Ge(ve,xe,Ie){for(var ze=[[ve[0],ve[1],m(ve[1]),o(ve[1])],[xe[0],xe[1],m(xe[1]),o(xe[1])],[Ie[0],Ie[1],m(Ie[1]),o(Ie[1])]],Qe=ze[2],Xe,nt=0;nt<3;++nt,Qe=Xe)Xe=ze[nt],Qe.v=qr(Xe[1]-Qe[1],Qe[3],Qe[2],Xe[3],Xe[2],Xe[0]-Qe[0]),Qe.point=[0,0];var qt=jr(ze[0].v[0],ze[2].v[0],ze[1].v[0]),Wt=jr(ze[0].v[0],ze[1].v[0],ze[2].v[0]),nr=M-qt;ze[2].point[1]=0,ze[0].point[0]=-(ze[1].point[0]=ze[0].v[0]/2);var fr=[ze[2].point[0]=ze[0].point[0]+ze[2].v[0]*o(qt),2*(ze[0].point[1]=ze[1].point[1]=ze[2].v[0]*m(qt))];function br(Fr,Hr){var ri=m(Hr),Ci=o(Hr),cn=new Array(3),sn;for(sn=0;sn<3;++sn){var Ln=ze[sn];if(cn[sn]=qr(Hr-Ln[1],Ln[3],Ln[2],Ci,ri,Fr-Ln[0]),!cn[sn][0])return Ln.point;cn[sn][1]=gt(cn[sn][1]-Ln.v[1])}var Yn=fr.slice();for(sn=0;sn<3;++sn){var Aa=sn==2?0:sn+1,fa=jr(ze[sn].v[0],cn[sn][0],cn[Aa][0]);cn[sn][1]<0&&(fa=-fa),sn?sn==1?(fa=Wt-fa,Yn[0]-=cn[sn][0]*o(fa),Yn[1]-=cn[sn][0]*m(fa)):(fa=nr-fa,Yn[0]+=cn[sn][0]*o(fa),Yn[1]+=cn[sn][0]*m(fa)):(Yn[0]+=cn[sn][0]*o(fa),Yn[1]-=cn[sn][0]*m(fa))}return Yn[0]/=3,Yn[1]/=3,Yn}return br}function Je(ve){return ve[0]*=E,ve[1]*=E,ve}function We(){return et([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function et(ve,xe,Ie){var ze=t.geoCentroid({type:"MultiPoint",coordinates:[ve,xe,Ie]}),Qe=[-ze[0],-ze[1]],Xe=t.geoRotation(Qe),nt=Ge(Je(Xe(ve)),Je(Xe(xe)),Je(Xe(Ie)));nt.invert=at(nt);var qt=t.geoProjection(nt).rotate(Qe),Wt=qt.center;return delete qt.rotate,qt.center=function(nr){return arguments.length?Wt(Xe(nr)):Xe.invert(Wt())},qt.clipAngle(90)}function xt(ve,xe){var Ie=G(1-m(xe));return[2/S*ve*Ie,S*(1-Ie)]}xt.invert=function(ve,xe){var Ie=(Ie=xe/S-1)*Ie;return[Ie>0?ve*G(M/Ie)/2:0,q(1-Ie)]};function At(){return t.geoProjection(xt).scale(95.6464).center([0,30])}function Kt(ve){var xe=b(ve);function Ie(ze,Qe){return[ze,(ze?ze/m(ze):1)*(m(Qe)*o(ze)-xe*o(Qe))]}return Ie.invert=xe?function(ze,Qe){ze&&(Qe*=m(ze)/ze);var Xe=o(ze);return[ze,2*a(G(Xe*Xe+xe*xe-Qe*Qe)-Xe,xe-Qe)]}:function(ze,Qe){return[ze,q(ze?Qe*b(ze)/ze:Qe)]},Ie}function Qt(){return Tt(Kt).scale(249.828).clipAngle(90)}var Mr=G(3);function Gr(ve,xe){return[Mr*ve*(2*o(2*xe/3)-1)/S,Mr*S*m(xe/3)]}Gr.invert=function(ve,xe){var Ie=3*q(xe/(Mr*S));return[S*ve/(Mr*(2*o(2*Ie/3)-1)),Ie]};function Ir(){return t.geoProjection(Gr).scale(156.19)}function Yr(ve){var xe=o(ve);function Ie(ze,Qe){return[ze*xe,m(Qe)/xe]}return Ie.invert=function(ze,Qe){return[ze/xe,q(Qe*xe)]},Ie}function _i(){return Tt(Yr).parallel(38.58).scale(195.044)}function Pi(ve){var xe=o(ve);function Ie(ze,Qe){return[ze*xe,(1+xe)*b(Qe/2)]}return Ie.invert=function(ze,Qe){return[ze/xe,i(Qe/(1+xe))*2]},Ie}function ai(){return Tt(Pi).scale(124.75)}function mi(ve,xe){var Ie=G(8/(3*M));return[Ie*ve*(1-n(xe)/M),Ie*xe]}mi.invert=function(ve,xe){var Ie=G(8/(3*M)),ze=xe/Ie;return[ve/(Ie*(1-n(ze)/M)),ze]};function un(){return t.geoProjection(mi).scale(165.664)}function Fn(ve,xe){var Ie=G(4-3*m(n(xe)));return[2/G(6*M)*ve*Ie,v(xe)*G(2*M/3)*(2-Ie)]}Fn.invert=function(ve,xe){var Ie=2-n(xe)/G(2*M/3);return[ve*G(6*M)/(2*Ie),v(xe)*q((4-Ie*Ie)/3)]};function An(){return t.geoProjection(Fn).scale(165.664)}function Hn(ve,xe){var Ie=G(M*(4+M));return[2/Ie*ve*(1+G(1-4*xe*xe/(M*M))),4/Ie*xe]}Hn.invert=function(ve,xe){var Ie=G(M*(4+M))/2;return[ve*Ie/(1+G(1-xe*xe*(4+M)/(4*M))),xe*Ie/2]};function Qn(){return t.geoProjection(Hn).scale(180.739)}function Vi(ve,xe){var Ie=(2+T)*m(xe);xe/=2;for(var ze=0,Qe=1/0;ze<10&&n(Qe)>p;ze++){var Xe=o(xe);xe-=Qe=(xe+m(xe)*(Xe+2)-Ie)/(2*Xe*(1+Xe))}return[2/G(M*(4+M))*ve*(1+o(xe)),2*G(M/(4+M))*m(xe)]}Vi.invert=function(ve,xe){var Ie=xe*G((4+M)/M)/2,ze=q(Ie),Qe=o(ze);return[ve/(2/G(M*(4+M))*(1+Qe)),q((ze+Ie*(Qe+2))/(2+T))]};function Kn(){return t.geoProjection(Vi).scale(180.739)}function Jn(ve,xe){return[ve*(1+o(xe))/G(2+M),2*xe/G(2+M)]}Jn.invert=function(ve,xe){var Ie=G(2+M),ze=xe*Ie/2;return[Ie*ve/(1+o(ze)),ze]};function Gt(){return t.geoProjection(Jn).scale(173.044)}function wt(ve,xe){for(var Ie=(1+T)*m(xe),ze=0,Qe=1/0;ze<10&&n(Qe)>p;ze++)xe-=Qe=(xe+m(xe)-Ie)/(1+o(xe));return Ie=G(2+M),[ve*(1+o(xe))/Ie,2*xe/Ie]}wt.invert=function(ve,xe){var Ie=1+T,ze=G(Ie/2);return[ve*2*ze/(1+o(xe*=ze)),q((xe+m(xe))/Ie)]};function tr(){return t.geoProjection(wt).scale(173.044)}var ir=3+2*C;function wr(ve,xe){var Ie=m(ve/=2),ze=o(ve),Qe=G(o(xe)),Xe=o(xe/=2),nt=m(xe)/(Xe+C*ze*Qe),qt=G(2/(1+nt*nt)),Wt=G((C*Xe+(ze+Ie)*Qe)/(C*Xe+(ze-Ie)*Qe));return[ir*(qt*(Wt-1/Wt)-2*u(Wt)),ir*(qt*nt*(Wt+1/Wt)-2*i(nt))]}wr.invert=function(ve,xe){if(!(Xe=Se.invert(ve/1.2,xe*1.065)))return null;var Ie=Xe[0],ze=Xe[1],Qe=20,Xe;ve/=ir,xe/=ir;do{var nt=Ie/2,qt=ze/2,Wt=m(nt),nr=o(nt),fr=m(qt),br=o(qt),Fr=o(ze),Hr=G(Fr),ri=fr/(br+C*nr*Hr),Ci=ri*ri,cn=G(2/(1+Ci)),sn=C*br+(nr+Wt)*Hr,Ln=C*br+(nr-Wt)*Hr,Yn=sn/Ln,Aa=G(Yn),fa=Aa-1/Aa,$a=Aa+1/Aa,Co=cn*fa-2*u(Aa)-ve,Qa=cn*ri*$a-2*i(ri)-xe,mo=fr&&x*Hr*Wt*Ci/fr,Bo=(C*nr*br+Hr)/(2*(br+C*nr*Hr)*(br+C*nr*Hr)*Hr),Ps=-.5*ri*cn*cn*cn,Ts=Ps*mo,wo=Ps*Bo,To=(To=2*br+C*Hr*(nr-Wt))*To*Aa,hl=(C*nr*br*Hr+Fr)/To,Ul=-(C*Wt*fr)/(Hr*To),Lu=fa*Ts-2*hl/Aa+cn*(hl+hl/Yn),au=fa*wo-2*Ul/Aa+cn*(Ul+Ul/Yn),Js=ri*$a*Ts-2*mo/(1+Ci)+cn*$a*mo+cn*ri*(hl-hl/Yn),eu=ri*$a*wo-2*Bo/(1+Ci)+cn*$a*Bo+cn*ri*(Ul-Ul/Yn),dc=au*Js-eu*Lu;if(!dc)break;var Tl=(Qa*au-Co*eu)/dc,Al=(Co*Js-Qa*Lu)/dc;Ie-=Tl,ze=c(-T,f(T,ze-Al))}while((n(Tl)>p||n(Al)>p)&&--Qe>0);return n(n(ze)-T)ze){var br=G(fr),Fr=a(nr,Wt),Hr=Ie*d(Fr/Ie),ri=Fr-Hr,Ci=ve*o(ri),cn=(ve*m(ri)-ri*m(Ci))/(T-Ci),sn=Wa(ri,cn),Ln=(M-ve)/Fa(sn,Ci,M);Wt=br;var Yn=50,Aa;do Wt-=Aa=(ve+Fa(sn,Ci,Wt)*Ln-br)/(sn(Wt)*Ln);while(n(Aa)>p&&--Yn>0);nr=ri*m(Wt),Wtze){var Wt=G(qt),nr=a(nt,Xe),fr=Ie*d(nr/Ie),br=nr-fr;Xe=Wt*o(br),nt=Wt*m(br);for(var Fr=Xe-T,Hr=m(Xe),ri=nt/Hr,Ci=Xep||n(ri)>p)&&--Ci>0);return[br,Fr]},Wt}var jn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ha(){return t.geoProjection(jn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Gn(){return t.geoProjection(vo).scale(153.93)}var Ct=da(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Sr(){return t.geoProjection(Ct).scale(130.945)}function Jr(ve,xe){var Ie=ve*ve,ze=xe*xe;return[ve*(1-.162388*ze)*(.87-952426e-9*Ie*Ie),xe*(1+ze/12)]}Jr.invert=function(ve,xe){var Ie=ve,ze=xe,Qe=50,Xe;do{var nt=ze*ze;ze-=Xe=(ze*(1+nt/12)-xe)/(1+nt/4)}while(n(Xe)>p&&--Qe>0);Qe=50,ve/=1-.162388*nt;do{var qt=(qt=Ie*Ie)*qt;Ie-=Xe=(Ie*(.87-952426e-9*qt)-ve)/(.87-.00476213*qt)}while(n(Xe)>p&&--Qe>0);return[Ie,ze]};function hi(){return t.geoProjection(Jr).scale(131.747)}var hn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sn(){return t.geoProjection(hn).scale(131.087)}function En(ve){var xe=ve(T,0)[0]-ve(-T,0)[0];function Ie(ze,Qe){var Xe=ze>0?-.5:.5,nt=ve(ze+Xe*M,Qe);return nt[0]-=Xe*xe,nt}return ve.invert&&(Ie.invert=function(ze,Qe){var Xe=ze>0?-.5:.5,nt=ve.invert(ze+Xe*xe,Qe),qt=nt[0]-Xe*M;return qt<-M?qt+=2*M:qt>M&&(qt-=2*M),nt[0]=qt,nt}),Ie}function ki(ve,xe){var Ie=v(ve),ze=v(xe),Qe=o(xe),Xe=o(ve)*Qe,nt=m(ve)*Qe,qt=m(ze*xe);ve=n(a(nt,qt)),xe=q(Xe),n(ve-T)>p&&(ve%=T);var Wt=_n(ve>M/4?T-ve:ve,xe);return ve>M/4&&(qt=Wt[0],Wt[0]=-Wt[1],Wt[1]=-qt),Wt[0]*=Ie,Wt[1]*=-ze,Wt}ki.invert=function(ve,xe){n(ve)>1&&(ve=v(ve)*2-ve),n(xe)>1&&(xe=v(xe)*2-xe);var Ie=v(ve),ze=v(xe),Qe=-Ie*ve,Xe=-ze*xe,nt=Xe/Qe<1,qt=ya(nt?Xe:Qe,nt?Qe:Xe),Wt=qt[0],nr=qt[1],fr=o(nr);return nt&&(Wt=-T-Wt),[Ie*(a(m(Wt)*fr,-m(nr))+M),ze*q(o(Wt)*fr)]};function _n(ve,xe){if(xe===T)return[0,0];var Ie=m(xe),ze=Ie*Ie,Qe=ze*ze,Xe=1+Qe,nt=1+3*Qe,qt=1-Qe,Wt=q(1/G(Xe)),nr=qt+ze*Xe*Wt,fr=(1-Ie)/nr,br=G(fr),Fr=fr*Xe,Hr=G(Fr),ri=br*qt,Ci,cn;if(ve===0)return[0,-(ri+ze*Hr)];var sn=o(xe),Ln=1/sn,Yn=2*Ie*sn,Aa=(-3*ze+Wt*nt)*Yn,fa=(-nr*sn-(1-Ie)*Aa)/(nr*nr),$a=.5*fa/br,Co=qt*$a-2*ze*br*Yn,Qa=ze*Xe*fa+fr*nt*Yn,mo=-Ln*Yn,Bo=-Ln*Qa,Ps=-2*Ln*Co,Ts=4*ve/M,wo;if(ve>.222*M||xe.175*M){if(Ci=(ri+ze*G(Fr*(1+Qe)-ri*ri))/(1+Qe),ve>M/4)return[Ci,Ci];var To=Ci,hl=.5*Ci;Ci=.5*(hl+To),cn=50;do{var Ul=G(Fr-Ci*Ci),Lu=Ci*(Ps+mo*Ul)+Bo*q(Ci/Hr)-Ts;if(!Lu)break;Lu<0?hl=Ci:To=Ci,Ci=.5*(hl+To)}while(n(To-hl)>p&&--cn>0)}else{Ci=p,cn=25;do{var au=Ci*Ci,Js=G(Fr-au),eu=Ps+mo*Js,dc=Ci*eu+Bo*q(Ci/Hr)-Ts,Tl=eu+(Bo-mo*au)/Js;Ci-=wo=Js?dc/Tl:0}while(n(wo)>p&&--cn>0)}return[Ci,-ri-ze*G(Fr-Ci*Ci)]}function ya(ve,xe){for(var Ie=0,ze=1,Qe=.5,Xe=50;;){var nt=Qe*Qe,qt=G(Qe),Wt=q(1/G(1+nt)),nr=1-nt+Qe*(1+nt)*Wt,fr=(1-qt)/nr,br=G(fr),Fr=fr*(1+nt),Hr=br*(1-nt),ri=Fr-ve*ve,Ci=G(ri),cn=xe+Hr+Qe*Ci;if(n(ze-Ie)0?Ie=Qe:ze=Qe,Qe=.5*(Ie+ze)}if(!Xe)return null;var sn=q(qt),Ln=o(sn),Yn=1/Ln,Aa=2*qt*Ln,fa=(-3*Qe+Wt*(1+3*nt))*Aa,$a=(-nr*Ln-(1-qt)*fa)/(nr*nr),Co=.5*$a/br,Qa=(1-nt)*Co-2*Qe*br*Aa,mo=-2*Yn*Qa,Bo=-Yn*Aa,Ps=-Yn*(Qe*(1+nt)*$a+fr*(1+3*nt)*Aa);return[M/4*(ve*(mo+Bo*Ci)+Ps*q(ve/G(Fr))),sn]}function ea(){return t.geoProjection(En(ki)).scale(239.75)}function Ma(ve,xe,Ie){var ze,Qe,Xe;return ve?(ze=_o(ve,Ie),xe?(Qe=_o(xe,1-Ie),Xe=Qe[1]*Qe[1]+Ie*ze[0]*ze[0]*Qe[0]*Qe[0],[[ze[0]*Qe[2]/Xe,ze[1]*ze[2]*Qe[0]*Qe[1]/Xe],[ze[1]*Qe[1]/Xe,-ze[0]*ze[2]*Qe[0]*Qe[2]/Xe],[ze[2]*Qe[1]*Qe[2]/Xe,-Ie*ze[0]*ze[1]*Qe[0]/Xe]]):[[ze[0],0],[ze[1],0],[ze[2],0]]):(Qe=_o(xe,1-Ie),[[0,Qe[0]/Qe[1]],[1/Qe[1],0],[Qe[2]/Qe[1],0]])}function _o(ve,xe){var Ie,ze,Qe,Xe,nt;if(xe=1-p)return Ie=(1-xe)/4,ze=N(ve),Xe=Z(ve),Qe=1/ze,nt=ze*j(ve),[Xe+Ie*(nt-ve)/(ze*ze),Qe-Ie*Xe*Qe*(nt-ve),Qe+Ie*Xe*Qe*(nt+ve),2*i(s(ve))-T+Ie*(nt-ve)/ze];var qt=[1,0,0,0,0,0,0,0,0],Wt=[G(xe),0,0,0,0,0,0,0,0],nr=0;for(ze=G(1-xe),nt=1;n(Wt[nr]/qt[nr])>p&&nr<8;)Ie=qt[nr++],Wt[nr]=(Ie-ze)/2,qt[nr]=(Ie+ze)/2,ze=G(Ie*ze),nt*=2;Qe=nt*qt[nr]*ve;do Xe=Wt[nr]*m(ze=Qe)/qt[nr],Qe=(q(Xe)+Qe)/2;while(--nr);return[m(Qe),Xe=o(Qe),Xe/o(Qe-ze),Qe]}function No(ve,xe,Ie){var ze=n(ve),Qe=n(xe),Xe=j(Qe);if(ze){var nt=1/m(ze),qt=1/(b(ze)*b(ze)),Wt=-(qt+Ie*(Xe*Xe*nt*nt)-1+Ie),nr=(Ie-1)*qt,fr=(-Wt+G(Wt*Wt-4*nr))/2;return[po(i(1/G(fr)),Ie)*v(ve),po(i(G((fr/qt-1)/Ie)),1-Ie)*v(xe)]}return[0,po(i(Xe),1-Ie)*v(xe)]}function po(ve,xe){if(!xe)return ve;if(xe===1)return u(b(ve/2+L));for(var Ie=1,ze=G(1-xe),Qe=G(xe),Xe=0;n(Qe)>p;Xe++){if(ve%M){var nt=i(ze*b(ve)/Ie);nt<0&&(nt+=M),ve+=nt+~~(ve/M)*M}else ve+=ve;Qe=(Ie+ze)/2,ze=G(Ie*ze),Qe=((Ie=Qe)-ze)/2}return ve/(h(2,Xe)*Ie)}function Lo(ve,xe){var Ie=(C-1)/(C+1),ze=G(1-Ie*Ie),Qe=po(T,ze*ze),Xe=-1,nt=u(b(M/4+n(xe)/2)),qt=s(Xe*nt)/G(Ie),Wt=ko(qt*o(Xe*ve),qt*m(Xe*ve)),nr=No(Wt[0],Wt[1],ze*ze);return[-nr[1],(xe>=0?1:-1)*(.5*Qe-nr[0])]}function ko(ve,xe){var Ie=ve*ve,ze=xe+1,Qe=1-Ie-xe*xe;return[.5*((ve>=0?T:-T)-a(Qe,2*ve)),-.25*u(Qe*Qe+4*Ie)+.5*u(ze*ze+Ie)]}function Ds(ve,xe){var Ie=xe[0]*xe[0]+xe[1]*xe[1];return[(ve[0]*xe[0]+ve[1]*xe[1])/Ie,(ve[1]*xe[0]-ve[0]*xe[1])/Ie]}Lo.invert=function(ve,xe){var Ie=(C-1)/(C+1),ze=G(1-Ie*Ie),Qe=po(T,ze*ze),Xe=-1,nt=Ma(.5*Qe-xe,-ve,ze*ze),qt=Ds(nt[0],nt[1]),Wt=a(qt[1],qt[0])/Xe;return[Wt,2*i(s(.5/Xe*u(Ie*qt[0]*qt[0]+Ie*qt[1]*qt[1])))-T]};function Fs(){return t.geoProjection(En(Lo)).scale(151.496)}function ll(ve){var xe=m(ve),Ie=o(ve),ze=ul(ve);ze.invert=ul(-ve);function Qe(Xe,nt){var qt=ze(Xe,nt);Xe=qt[0],nt=qt[1];var Wt=m(nt),nr=o(nt),fr=o(Xe),br=V(xe*Wt+Ie*nr*fr),Fr=m(br),Hr=n(Fr)>p?br/Fr:1;return[Hr*Ie*m(Xe),(n(Xe)>T?Hr:-Hr)*(xe*nr-Ie*Wt*fr)]}return Qe.invert=function(Xe,nt){var qt=G(Xe*Xe+nt*nt),Wt=-m(qt),nr=o(qt),fr=qt*nr,br=-nt*Wt,Fr=qt*xe,Hr=G(fr*fr+br*br-Fr*Fr),ri=a(fr*Fr+br*Hr,br*Fr-fr*Hr),Ci=(qt>T?-1:1)*a(Xe*Wt,qt*o(ri)*nr+nt*m(ri)*Wt);return ze.invert(Ci,ri)},Qe}function ul(ve){var xe=m(ve),Ie=o(ve);return function(ze,Qe){var Xe=o(Qe),nt=o(ze)*Xe,qt=m(ze)*Xe,Wt=m(Qe);return[a(qt,nt*Ie-Wt*xe),q(Wt*Ie+nt*xe)]}}function zl(){var ve=0,xe=t.geoProjectionMutator(ll),Ie=xe(ve),ze=Ie.rotate,Qe=Ie.stream,Xe=t.geoCircle();return Ie.parallel=function(nt){if(!arguments.length)return ve*P;var qt=Ie.rotate();return xe(ve=nt*E).rotate(qt)},Ie.rotate=function(nt){return arguments.length?(ze.call(Ie,[nt[0],nt[1]-ve*P]),Xe.center([-nt[0],-nt[1]]),Ie):(nt=ze.call(Ie),nt[1]+=ve*P,nt)},Ie.stream=function(nt){return nt=Qe(nt),nt.sphere=function(){nt.polygonStart();var qt=.01,Wt=Xe.radius(90-qt)().coordinates[0],nr=Wt.length-1,fr=-1,br;for(nt.lineStart();++fr=0;)nt.point((br=Wt[fr])[0],br[1]);nt.lineEnd(),nt.polygonEnd()},nt},Ie.scale(79.4187).parallel(45).clipAngle(180-.001)}var us=3,il=q(1-1/us)*P,As=Yr(0);function cl(ve){var xe=il*E,Ie=xt(M,xe)[0]-xt(-M,xe)[0],ze=As(0,xe)[1],Qe=xt(0,xe)[1],Xe=S-Qe,nt=g/ve,qt=4/g,Wt=ze+Xe*Xe*4/g;function nr(fr,br){var Fr,Hr=n(br);if(Hr>xe){var ri=f(ve-1,c(0,l((fr+M)/nt)));fr+=M*(ve-1)/ve-ri*nt,Fr=xt(fr,Hr),Fr[0]=Fr[0]*g/Ie-g*(ve-1)/(2*ve)+ri*g/ve,Fr[1]=ze+(Fr[1]-Qe)*4*Xe/g,br<0&&(Fr[1]=-Fr[1])}else Fr=As(fr,br);return Fr[0]*=qt,Fr[1]/=Wt,Fr}return nr.invert=function(fr,br){fr/=qt,br*=Wt;var Fr=n(br);if(Fr>ze){var Hr=f(ve-1,c(0,l((fr+M)/nt)));fr=(fr+M*(ve-1)/ve-Hr*nt)*Ie/g;var ri=xt.invert(fr,.25*(Fr-ze)*g/Xe+Qe);return ri[0]-=M*(ve-1)/ve-Hr*nt,br<0&&(ri[1]=-ri[1]),ri}return As.invert(fr,br)},nr}function Ks(ve,xe){return[ve,xe&1?90-p:il]}function zs(ve,xe){return[ve,xe&1?-90+p:-il]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function ls(ve){var xe=[].concat(r.range(-180,180+ve/2,ve).map(Ks),r.range(180,-180-ve/2,-ve).map(zs));return{type:"Polygon",coordinates:[ve===180?xe.map(Io):xe]}}function Yl(){var ve=4,xe=t.geoProjectionMutator(cl),Ie=xe(ve),ze=Ie.stream;return Ie.lobes=function(Qe){return arguments.length?xe(ve=+Qe):ve},Ie.stream=function(Qe){var Xe=Ie.rotate(),nt=ze(Qe),qt=(Ie.rotate([0,0]),ze(Qe));return Ie.rotate(Xe),nt.sphere=function(){t.geoStream(ls(180/ve),qt)},nt},Ie.scale(239.75)}function Su(ve){var xe=1+ve,Ie=m(1/xe),ze=q(Ie),Qe=2*G(M/(Xe=M+4*ze*xe)),Xe,nt=.5*Qe*(xe+G(ve*(2+ve))),qt=ve*ve,Wt=xe*xe;function nr(fr,br){var Fr=1-m(br),Hr,ri;if(Fr&&Fr<2){var Ci=T-br,cn=25,sn;do{var Ln=m(Ci),Yn=o(Ci),Aa=ze+a(Ln,xe-Yn),fa=1+Wt-2*xe*Yn;Ci-=sn=(Ci-qt*ze-xe*Ln+fa*Aa-.5*Fr*Xe)/(2*xe*Ln*Aa)}while(n(sn)>k&&--cn>0);Hr=Qe*G(fa),ri=fr*Aa/M}else Hr=Qe*(ve+Fr),ri=fr*ze/M;return[Hr*m(ri),nt-Hr*o(ri)]}return nr.invert=function(fr,br){var Fr=fr*fr+(br-=nt)*br,Hr=(1+Wt-Fr/(Qe*Qe))/(2*xe),ri=V(Hr),Ci=m(ri),cn=ze+a(Ci,xe-Hr);return[q(fr/G(Fr))*M/cn,q(1-2*(ri-qt*ze-xe*Ci+(1+Wt-2*xe*Hr)*cn)/Xe)]},nr}function nc(){var ve=1,xe=t.geoProjectionMutator(Su),Ie=xe(ve);return Ie.ratio=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(167.774).center([0,18.67])}var bs=.7109889596207567,Rn=.0528035274542;function _a(ve,xe){return xe>-bs?(ve=tt(ve,xe),ve[1]+=Rn,ve):dt(ve,xe)}_a.invert=function(ve,xe){return xe>-bs?tt.invert(ve,xe-Rn):dt.invert(ve,xe)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ql(ve,xe){return n(xe)>bs?(ve=tt(ve,xe),ve[1]-=xe>0?Rn:-Rn,ve):dt(ve,xe)}ql.invert=function(ve,xe){return n(xe)>bs?tt.invert(ve,xe+(xe>0?Rn:-Rn)):dt.invert(ve,xe)};function xo(){return t.geoProjection(ql).scale(152.63)}function Kl(ve,xe,Ie,ze){var Qe=G(4*M/(2*Ie+(1+ve-xe/2)*m(2*Ie)+(ve+xe)/2*m(4*Ie)+xe/2*m(6*Ie))),Xe=G(ze*m(Ie)*G((1+ve*o(2*Ie)+xe*o(4*Ie))/(1+ve+xe))),nt=Ie*Wt(1);function qt(br){return G(1+ve*o(2*br)+xe*o(4*br))}function Wt(br){var Fr=br*Ie;return(2*Fr+(1+ve-xe/2)*m(2*Fr)+(ve+xe)/2*m(4*Fr)+xe/2*m(6*Fr))/Ie}function nr(br){return qt(br)*m(br)}var fr=function(br,Fr){var Hr=Ie*Ht(Wt,nt*m(Fr)/Ie,Fr/M);isNaN(Hr)&&(Hr=Ie*v(Fr));var ri=Qe*qt(Hr);return[ri*Xe*br/M*o(Hr),ri/Xe*m(Hr)]};return fr.invert=function(br,Fr){var Hr=Ht(nr,Fr*Xe/Qe);return[br*M/(o(Hr)*Qe*Xe*qt(Hr)),q(Ie*Wt(Hr/Ie)/nt)]},Ie===0&&(Qe=G(ze/M),fr=function(br,Fr){return[br*Qe,m(Fr)/Qe]},fr.invert=function(br,Fr){return[br/Qe,q(Fr*Qe)]}),fr}function Ns(){var ve=1,xe=0,Ie=45*E,ze=2,Qe=t.geoProjectionMutator(Kl),Xe=Qe(ve,xe,Ie,ze);return Xe.a=function(nt){return arguments.length?Qe(ve=+nt,xe,Ie,ze):ve},Xe.b=function(nt){return arguments.length?Qe(ve,xe=+nt,Ie,ze):xe},Xe.psiMax=function(nt){return arguments.length?Qe(ve,xe,Ie=+nt*E,ze):Ie*P},Xe.ratio=function(nt){return arguments.length?Qe(ve,xe,Ie,ze=+nt):ze},Xe.scale(180.739)}function Hl(ve,xe,Ie,ze,Qe,Xe,nt,qt,Wt,nr,fr){if(fr.nanEncountered)return NaN;var br,Fr,Hr,ri,Ci,cn,sn,Ln,Yn,Aa;if(br=Ie-xe,Fr=ve(xe+br*.25),Hr=ve(Ie-br*.25),isNaN(Fr)){fr.nanEncountered=!0;return}if(isNaN(Hr)){fr.nanEncountered=!0;return}return ri=br*(ze+4*Fr+Qe)/12,Ci=br*(Qe+4*Hr+Xe)/12,cn=ri+Ci,Aa=(cn-nt)/15,nr>Wt?(fr.maxDepthCount++,cn+Aa):Math.abs(Aa)>1;do Wt[cn]>Hr?Ci=cn:ri=cn,cn=ri+Ci>>1;while(cn>ri);var sn=Wt[cn+1]-Wt[cn];return sn&&(sn=(Hr-Wt[cn+1])/sn),(cn+1+sn)/nt}var br=2*fr(1)/M*Xe/Ie,Fr=function(Hr,ri){var Ci=fr(n(m(ri))),cn=ze(Ci)*Hr;return Ci/=br,[cn,ri>=0?Ci:-Ci]};return Fr.invert=function(Hr,ri){var Ci;return ri*=br,n(ri)<1&&(Ci=v(ri)*q(Qe(n(ri))*Xe)),[Hr/ze(n(ri)),Ci]},Fr}function qo(){var ve=0,xe=2.5,Ie=1.183136,ze=t.geoProjectionMutator(oa),Qe=ze(ve,xe,Ie);return Qe.alpha=function(Xe){return arguments.length?ze(ve=+Xe,xe,Ie):ve},Qe.k=function(Xe){return arguments.length?ze(ve,xe=+Xe,Ie):xe},Qe.gamma=function(Xe){return arguments.length?ze(ve,xe,Ie=+Xe):Ie},Qe.scale(152.63)}function Oo(ve,xe){return n(ve[0]-xe[0])=0;--Wt)Ie=ve[1][Wt],ze=Ie[0][0],Qe=Ie[0][1],Xe=Ie[1][1],nt=Ie[2][0],qt=Ie[2][1],xe.push(Ol([[nt-p,qt-p],[nt-p,Xe+p],[ze+p,Xe+p],[ze+p,Qe-p]],30));return{type:"Polygon",coordinates:[r.merge(xe)]}}function Do(ve,xe,Ie){var ze,Qe;function Xe(Wt,nr){for(var fr=nr<0?-1:1,br=xe[+(nr<0)],Fr=0,Hr=br.length-1;Frbr[Fr][2][0];++Fr);var ri=ve(Wt-br[Fr][1][0],nr);return ri[0]+=ve(br[Fr][1][0],fr*nr>fr*br[Fr][0][1]?br[Fr][0][1]:nr)[0],ri}Ie?Xe.invert=Ie(Xe):ve.invert&&(Xe.invert=function(Wt,nr){for(var fr=Qe[+(nr<0)],br=xe[+(nr<0)],Fr=0,Hr=fr.length;Frri&&(Ci=Hr,Hr=ri,ri=Ci),[[br,Hr],[Fr,ri]]})}),nt):xe.map(function(nr){return nr.map(function(fr){return[[fr[0][0]*P,fr[0][1]*P],[fr[1][0]*P,fr[1][1]*P],[fr[2][0]*P,fr[2][1]*P]]})})},xe!=null&&nt.lobes(xe),nt}var nf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Vf(){return Do(rt,nf).scale(160.857)}var pl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Zc(){return Do(ql,pl).scale(152.63)}var Jl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function qs(){return Do(tt,Jl).scale(169.529)}var yu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oc(){return Do(tt,yu).scale(169.529).rotate([20,0])}var Cf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function sc(){return Do(_a,Cf,at).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var jh=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Lf(){return Do(dt,jh).scale(152.63).rotate([-20,0])}function cs(ve,xe){return[3/g*ve*G(M*M/3-xe*xe),xe]}cs.invert=function(ve,xe){return[g/3*ve/G(M*M/3-xe*xe),xe]};function af(){return t.geoProjection(cs).scale(158.837)}function Gf(ve){function xe(Ie,ze){if(n(n(ze)-T)2)return null;Ie/=2,ze/=2;var Xe=Ie*Ie,nt=ze*ze,qt=2*ze/(1+Xe+nt);return qt=h((1+qt)/(1-qt),1/ve),[a(2*Ie,1-Xe-nt)/ve,q((qt-1)/(qt+1))]},xe}function $l(){var ve=.5,xe=t.geoProjectionMutator(Gf),Ie=xe(ve);return Ie.spacing=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(124.75)}var fl=M/C;function lc(ve,xe){return[ve*(1+G(o(xe)))/2,xe/(o(xe/2)*o(ve/6))]}lc.invert=function(ve,xe){var Ie=n(ve),ze=n(xe),Qe=p,Xe=T;zep||n(cn)>p)&&--Qe>0);return Qe&&[Ie,ze]};function Hs(){return t.geoProjection(Es).scale(139.98)}function Go(ve,xe){return[m(ve)/o(xe),b(xe)*o(ve)]}Go.invert=function(ve,xe){var Ie=ve*ve,ze=xe*xe,Qe=ze+1,Xe=Ie+Qe,nt=ve?x*G((Xe-G(Xe*Xe-4*Ie))/Ie):1/G(Qe);return[q(ve*nt),v(xe)*V(nt)]};function ps(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var xe=o(ve),Ie=b(L+ve/2);function ze(Qe,Xe){var nt=Xe-ve,qt=n(nt)=0;)fr=ve[nr],br=fr[0]+qt*(Hr=br)-Wt*Fr,Fr=fr[1]+qt*Fr+Wt*Hr;return br=qt*(Hr=br)-Wt*Fr,Fr=qt*Fr+Wt*Hr,[br,Fr]}return Ie.invert=function(ze,Qe){var Xe=20,nt=ze,qt=Qe;do{for(var Wt=xe,nr=ve[Wt],fr=nr[0],br=nr[1],Fr=0,Hr=0,ri;--Wt>=0;)nr=ve[Wt],Fr=fr+nt*(ri=Fr)-qt*Hr,Hr=br+nt*Hr+qt*ri,fr=nr[0]+nt*(ri=fr)-qt*br,br=nr[1]+nt*br+qt*ri;Fr=fr+nt*(ri=Fr)-qt*Hr,Hr=br+nt*Hr+qt*ri,fr=nt*(ri=fr)-qt*br-ze,br=nt*br+qt*ri-Qe;var Ci=Fr*Fr+Hr*Hr,cn,sn;nt-=cn=(fr*Fr+br*Hr)/Ci,qt-=sn=(br*Fr-fr*Hr)/Ci}while(n(cn)+n(sn)>p*p&&--Xe>0);if(Xe){var Ln=G(nt*nt+qt*qt),Yn=2*i(Ln*.5),Aa=m(Yn);return[a(nt*Aa,Ln*o(Yn)),Ln?q(qt*Aa/Ln):0]}},Ie}var Po=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],sd=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Ko=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Pa=[[.9245,0],[0,0],[.01943,0]],of=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hu(){return Bl(Po,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function bl(){return Bl(sd,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Hf(){return Bl(Ko,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ic(){return Bl(Pa,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function yf(){return Bl(of,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Bl(ve,xe){var Ie=t.geoProjection(od(ve)).rotate(xe).clipAngle(90),ze=t.geoRotation(xe),Qe=Ie.center;return delete Ie.rotate,Ie.center=function(Xe){return arguments.length?Qe(ze(Xe)):ze.invert(Qe())},Ie}var Ah=G(6),Qf=G(7);function _f(ve,xe){var Ie=q(7*m(xe)/(3*Ah));return[Ah*ve*(2*o(2*Ie/3)-1)/Qf,9*m(Ie/3)/Qf]}_f.invert=function(ve,xe){var Ie=3*q(xe*Qf/9);return[ve*Qf/(Ah*(2*o(2*Ie/3)-1)),q(m(Ie)*3*Ah/7)]};function Yc(){return t.geoProjection(_f).scale(164.859)}function eh(ve,xe){for(var Ie=(1+x)*m(xe),ze=xe,Qe=0,Xe;Qe<25&&(ze-=Xe=(m(ze/2)+m(ze)-Ie)/(.5*o(ze/2)+o(ze)),!(n(Xe)k&&--ze>0);return Xe=Ie*Ie,nt=Xe*Xe,qt=Xe*nt,[ve/(.84719-.13063*Xe+qt*qt*(-.04515+.05494*Xe-.02326*nt+.00331*qt)),Ie]};function sf(){return t.geoProjection(cc).scale(175.295)}function Nl(ve,xe){return[ve*(1+o(xe))/2,2*(xe-b(xe/2))]}Nl.invert=function(ve,xe){for(var Ie=xe/2,ze=0,Qe=1/0;ze<10&&n(Qe)>p;++ze){var Xe=o(xe/2);xe-=Qe=(xe-b(xe/2)-Ie)/(1-.5/(Xe*Xe))}return[2*ve/(1+o(xe)),xe]};function Kc(){return t.geoProjection(Nl).scale(152.63)}var Rc=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function gs(){return Do(He(1/0),Rc).rotate([20,0]).scale(152.63)}function Wf(ve,xe){var Ie=m(xe),ze=o(xe),Qe=v(ve);if(ve===0||n(xe)===T)return[0,xe];if(xe===0)return[ve,0];if(n(ve)===T)return[ve*ze,T*Ie];var Xe=M/(2*ve)-2*ve/M,nt=2*xe/M,qt=(1-nt*nt)/(Ie-nt),Wt=Xe*Xe,nr=qt*qt,fr=1+Wt/nr,br=1+nr/Wt,Fr=(Xe*Ie/qt-Xe/2)/fr,Hr=(nr*Ie/Wt+qt/2)/br,ri=Fr*Fr+ze*ze/fr,Ci=Hr*Hr-(nr*Ie*Ie/Wt+qt*Ie-1)/br;return[T*(Fr+G(ri)*Qe),T*(Hr+G(Ci<0?0:Ci)*v(-xe*Xe)*Qe)]}Wf.invert=function(ve,xe){ve/=T,xe/=T;var Ie=ve*ve,ze=xe*xe,Qe=Ie+ze,Xe=M*M;return[ve?(Qe-1+G((1-Qe)*(1-Qe)+4*Ie))/(2*ve)*T:0,Ht(function(nt){return Qe*(M*m(nt)-2*nt)*M+4*nt*nt*(xe-m(nt))+2*M*nt-Xe*xe},0)]};function Wh(){return t.geoProjection(Wf).scale(127.267)}var rh=1.0148,lf=.23185,Sh=-.14499,Mu=.02406,ih=rh,js=5*lf,Eu=7*Sh,Dc=9*Mu,ks=1.790857183;function bc(ve,xe){var Ie=xe*xe;return[ve,xe*(rh+Ie*Ie*(lf+Ie*(Sh+Mu*Ie)))]}bc.invert=function(ve,xe){xe>ks?xe=ks:xe<-ks&&(xe=-ks);var Ie=xe,ze;do{var Qe=Ie*Ie;Ie-=ze=(Ie*(rh+Qe*Qe*(lf+Qe*(Sh+Mu*Qe)))-xe)/(ih+Qe*Qe*(js+Qe*(Eu+Dc*Qe)))}while(n(ze)>p);return[ve,Ie]};function hu(){return t.geoProjection(bc).scale(139.319)}function _u(ve,xe){if(n(xe)p&&--Qe>0);return nt=b(ze),[(n(xe)=0;)if(ze=xe[qt],Ie[0]===ze[0]&&Ie[1]===ze[1]){if(Xe)return[Xe,Ie];Xe=Ie}}}function jl(ve){for(var xe=ve.length,Ie=[],ze=ve[xe-1],Qe=0;Qe0?[-ze[0],0]:[180-ze[0],180])};var xe=If.map(function(Ie){return{face:Ie,project:ve(Ie)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ie,ze){var Qe=xe[Ie];Qe&&(Qe.children||(Qe.children=[])).push(xe[ze])}),xf(xe[0],function(Ie,ze){return xe[Ie<-M/2?ze<0?6:4:Ie<0?ze<0?2:0:Ieze^Hr>ze&&Ie<(Fr-nr)*(ze-fr)/(Hr-fr)+nr&&(Qe=!Qe)}return Qe}function Wl(ve,xe){var Ie=xe.stream,ze;if(!Ie)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":ze=Zu;break;case"FeatureCollection":ze=ah;break;default:ze=Tc;break}return ze(ve,Ie)}function ah(ve,xe){return{type:"FeatureCollection",features:ve.features.map(function(Ie){return Zu(Ie,xe)})}}function Zu(ve,xe){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,xe)}}function qc(ve,xe){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Ie){return Tc(Ie,xe)})}}function Tc(ve,xe){if(!ve)return null;if(ve.type==="GeometryCollection")return qc(ve,xe);var Ie;switch(ve.type){case"Point":Ie=Oc;break;case"MultiPoint":Ie=Oc;break;case"LineString":Ie=ff;break;case"MultiLineString":Ie=ff;break;case"Polygon":Ie=fc;break;case"MultiPolygon":Ie=fc;break;case"Sphere":Ie=fc;break;default:return null}return t.geoStream(ve,xe(Ie)),Ie.result()}var wl=[],vu=[],Oc={point:function(ve,xe){wl.push([ve,xe])},result:function(){var ve=wl.length?wl.length<2?{type:"Point",coordinates:wl[0]}:{type:"MultiPoint",coordinates:wl}:null;return wl=[],ve}},ff={lineStart:Xu,point:function(ve,xe){wl.push([ve,xe])},lineEnd:function(){wl.length&&(vu.push(wl),wl=[])},result:function(){var ve=vu.length?vu.length<2?{type:"LineString",coordinates:vu[0]}:{type:"MultiLineString",coordinates:vu}:null;return vu=[],ve}},fc={polygonStart:Xu,lineStart:Xu,point:function(ve,xe){wl.push([ve,xe])},lineEnd:function(){var ve=wl.length;if(ve){do wl.push(wl[0].slice());while(++ve<4);vu.push(wl),wl=[]}},polygonEnd:Xu,result:function(){if(!vu.length)return null;var ve=[],xe=[];return vu.forEach(function(Ie){cf(Ie)?ve.push([Ie]):xe.push(Ie)}),xe.forEach(function(Ie){var ze=Ie[0];ve.some(function(Qe){if(Zf(Qe[0],ze))return Qe.push(Ie),!0})||ve.push([Ie])}),vu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var xe=ve(T,0)[0]-ve(-T,0)[0];function Ie(ze,Qe){var Xe=n(ze)0?ze-M:ze+M,Qe),qt=(nt[0]-nt[1])*x,Wt=(nt[0]+nt[1])*x;if(Xe)return[qt,Wt];var nr=xe*x,fr=qt>0^Wt>0?-1:1;return[fr*qt-v(Wt)*nr,fr*Wt-v(qt)*nr]}return ve.invert&&(Ie.invert=function(ze,Qe){var Xe=(ze+Qe)*x,nt=(Qe-ze)*x,qt=n(Xe)<.5*xe&&n(nt)<.5*xe;if(!qt){var Wt=xe*x,nr=Xe>0^nt>0?-1:1,fr=-nr*ze+(nt>0?1:-1)*Wt,br=-nr*Qe+(Xe>0?1:-1)*Wt;Xe=(-fr-br)*x,nt=(fr-br)*x}var Fr=ve.invert(Xe,nt);return qt||(Fr[0]+=Xe>0?M:-M),Fr}),t.geoProjection(Ie).rotate([-90,-90,45]).clipAngle(180-.001)}function kt(){return Bc(ki).scale(176.423)}function Zt(){return Bc(Lo).scale(111.48)}function Er(ve,xe){if(!(0<=(xe=+xe)&&xe<=20))throw new Error("invalid digits");function Ie(nr){var fr=nr.length,br=2,Fr=new Array(fr);for(Fr[0]=+nr[0].toFixed(xe),Fr[1]=+nr[1].toFixed(xe);br2||Hr[0]!=fr[0]||Hr[1]!=fr[1])&&(br.push(Hr),fr=Hr)}return br.length===1&&nr.length>1&&br.push(Ie(nr[nr.length-1])),br}function Xe(nr){return nr.map(Qe)}function nt(nr){if(nr==null)return nr;var fr;switch(nr.type){case"GeometryCollection":fr={type:"GeometryCollection",geometries:nr.geometries.map(nt)};break;case"Point":fr={type:"Point",coordinates:Ie(nr.coordinates)};break;case"MultiPoint":fr={type:nr.type,coordinates:ze(nr.coordinates)};break;case"LineString":fr={type:nr.type,coordinates:Qe(nr.coordinates)};break;case"MultiLineString":case"Polygon":fr={type:nr.type,coordinates:Xe(nr.coordinates)};break;case"MultiPolygon":fr={type:"MultiPolygon",coordinates:nr.coordinates.map(Xe)};break;default:return nr}return nr.bbox!=null&&(fr.bbox=nr.bbox),fr}function qt(nr){var fr={type:"Feature",properties:nr.properties,geometry:nt(nr.geometry)};return nr.id!=null&&(fr.id=nr.id),nr.bbox!=null&&(fr.bbox=nr.bbox),fr}if(ve!=null)switch(ve.type){case"Feature":return qt(ve);case"FeatureCollection":{var Wt={type:"FeatureCollection",features:ve.features.map(qt)};return ve.bbox!=null&&(Wt.bbox=ve.bbox),Wt}default:return nt(ve)}return ve}function xr(ve){var xe=m(ve);function Ie(ze,Qe){var Xe=xe?b(ze*xe/2)/xe:ze/2;if(!Qe)return[2*Xe,-ve];var nt=2*i(Xe*m(Qe)),qt=1/b(Qe);return[m(nt)*qt,Qe+(1-o(nt))*qt-ve]}return Ie.invert=function(ze,Qe){if(n(Qe+=ve)p&&--qt>0);var Fr=ze*(nr=b(nt)),Hr=b(n(Qe)0?T:-T)*(Wt+Qe*(fr-nt)/2+Qe*Qe*(fr-2*Wt+nt)/2)]}Wi.invert=function(ve,xe){var Ie=xe/T,ze=Ie*90,Qe=f(18,n(ze/5)),Xe=c(0,l(Qe));do{var nt=Mi[Xe][1],qt=Mi[Xe+1][1],Wt=Mi[f(19,Xe+2)][1],nr=Wt-nt,fr=Wt-2*qt+nt,br=2*(n(Ie)-qt)/nr,Fr=fr/nr,Hr=br*(1-Fr*br*(1-2*Fr*br));if(Hr>=0||Xe===1){ze=(xe>=0?5:-5)*(Hr+Qe);var ri=50,Ci;do Qe=f(18,n(ze)/5),Xe=l(Qe),Hr=Qe-Xe,nt=Mi[Xe][1],qt=Mi[Xe+1][1],Wt=Mi[f(19,Xe+2)][1],ze-=(Ci=(xe>=0?T:-T)*(qt+Hr*(Wt-nt)/2+Hr*Hr*(Wt-2*qt+nt)/2)-xe)*P;while(n(Ci)>k&&--ri>0);break}}while(--Xe>=0);var cn=Mi[Xe][0],sn=Mi[Xe+1][0],Ln=Mi[f(19,Xe+2)][0];return[ve/(sn+Hr*(Ln-cn)/2+Hr*Hr*(Ln-2*sn+cn)/2),ze*E]};function dn(){return t.geoProjection(Wi).scale(152.63)}function wn(ve){function xe(Ie,ze){var Qe=o(ze),Xe=(ve-1)/(ve-Qe*o(Ie));return[Xe*Qe*m(Ie),Xe*m(ze)]}return xe.invert=function(Ie,ze){var Qe=Ie*Ie+ze*ze,Xe=G(Qe),nt=(ve-G(1-Qe*(ve+1)/(ve-1)))/((ve-1)/Xe+Xe/(ve-1));return[a(Ie*nt,Xe*G(1-nt*nt)),Xe?q(ze*nt/Xe):0]},xe}function On(ve,xe){var Ie=wn(ve);if(!xe)return Ie;var ze=o(xe),Qe=m(xe);function Xe(nt,qt){var Wt=Ie(nt,qt),nr=Wt[1],fr=nr*Qe/(ve-1)+ze;return[Wt[0]*ze/fr,nr/fr]}return Xe.invert=function(nt,qt){var Wt=(ve-1)/(ve-1-qt*Qe);return Ie.invert(Wt*nt,Wt*qt*ze)},Xe}function Yi(){var ve=2,xe=0,Ie=t.geoProjectionMutator(On),ze=Ie(ve,xe);return ze.distance=function(Qe){return arguments.length?Ie(ve=+Qe,xe):ve},ze.tilt=function(Qe){return arguments.length?Ie(ve,xe=Qe*E):xe*P},ze.scale(432.147).clipAngle(V(1/ve)*P-1e-6)}var $i=1e-4,an=1e4,Fi=-180,ta=Fi+$i,Ca=180,Ra=Ca-$i,La=-90,Ua=La+$i,Zn=90,Dn=Zn-$i;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*an)/an}function Zo(ve){return ve===La||ve===Zn?[0,ve]:[Fi,bo(ve)]}function Ss(ve){var xe=ve[0],Ie=ve[1],ze=!1;return xe<=ta?(xe=Fi,ze=!0):xe>=Ra&&(xe=Ca,ze=!0),Ie<=Ua?(Ie=La,ze=!0):Ie>=Dn&&(Ie=Zn,ze=!0),ze?[xe,Ie]:ve}function as(ve){return ve.map(Ss)}function ws(ve,xe,Ie){for(var ze=0,Qe=ve.length;ze=Ra||fr<=Ua||fr>=Dn){Xe[nt]=Ss(Wt);for(var br=nt+1;brta&&HrUa&&ri=qt)break;Ie.push({index:-1,polygon:xe,ring:Xe=Xe.slice(br-1)}),Xe[0]=Zo(Xe[0][1]),nt=-1,qt=Xe.length}}}}function Ho(ve){var xe,Ie=ve.length,ze={},Qe={},Xe,nt,qt,Wt,nr;for(xe=0;xe0?M-qt:qt)*P],nr=t.geoProjection(ve(nt)).rotate(Wt),fr=t.geoRotation(Wt),br=nr.center;return delete nr.rotate,nr.center=function(Fr){return arguments.length?br(fr(Fr)):fr.invert(br())},nr.clipAngle(90)}function rs(ve){var xe=o(ve);function Ie(ze,Qe){var Xe=t.geoGnomonicRaw(ze,Qe);return Xe[0]*=xe,Xe}return Ie.invert=function(ze,Qe){return t.geoGnomonicRaw.invert(ze/xe,Qe)},Ie}function Ql(){return Cu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Cu(ve,xe){return ys(rs,ve,xe)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var xe=-ve/2,Ie=-xe,ze=ve*ve,Qe=b(Ie),Xe=.5/m(Ie);function nt(qt,Wt){var nr=V(o(Wt)*o(qt-xe)),fr=V(o(Wt)*o(qt-Ie)),br=Wt<0?-1:1;return nr*=nr,fr*=fr,[(nr-fr)/(2*ve),br*G(4*ze*fr-(ze-nr+fr)*(ze-nr+fr))/(2*ve)]}return nt.invert=function(qt,Wt){var nr=Wt*Wt,fr=o(G(nr+(Fr=qt+xe)*Fr)),br=o(G(nr+(Fr=qt+Ie)*Fr)),Fr,Hr;return[a(Hr=fr-br,Fr=(fr+br)*Qe),(Wt<0?-1:1)*V(G(Fr*Fr+Hr*Hr)*Xe)]},nt}function Nc(){return pu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function pu(ve,xe){return ys(Yu,ve,xe)}function Uc(ve,xe){if(n(xe)p&&--qt>0);return[v(ve)*(G(Qe*Qe+4)+Qe)*M/4,T*nt]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,xe,Ie,ze,Qe){function Xe(nt,qt){var Wt=Ie*m(ze*qt),nr=G(1-Wt*Wt),fr=G(2/(1+nr*o(nt*=Qe)));return[ve*nr*fr*m(nt),xe*Wt*fr]}return Xe.invert=function(nt,qt){var Wt=nt/ve,nr=qt/xe,fr=G(Wt*Wt+nr*nr),br=2*q(fr/2);return[a(nt*b(br),ve*fr)/Qe,fr&&q(qt*m(br)/(xe*Ie*fr))/ze]},Xe}function w(ve,xe,Ie,ze){var Qe=M/3;ve=c(ve,p),xe=c(xe,p),ve=f(ve,T),xe=f(xe,M-p),Ie=c(Ie,0),Ie=f(Ie,100-p),ze=c(ze,p);var Xe=Ie/100+1,nt=ze/100,qt=V(Xe*o(Qe))/Qe,Wt=m(ve)/m(qt*T),nr=xe/M,fr=G(nt*m(ve/2)/m(xe/2)),br=fr/G(nr*Wt*qt),Fr=1/(fr*G(nr*Wt*qt));return ue(br,Fr,Wt,qt,nr)}function B(){var ve=65*E,xe=60*E,Ie=20,ze=200,Qe=t.geoProjectionMutator(w),Xe=Qe(ve,xe,Ie,ze);return Xe.poleline=function(nt){return arguments.length?Qe(ve=+nt*E,xe,Ie,ze):ve*P},Xe.parallels=function(nt){return arguments.length?Qe(ve,xe=+nt*E,Ie,ze):xe*P},Xe.inflation=function(nt){return arguments.length?Qe(ve,xe,Ie=+nt,ze):Ie},Xe.ratio=function(nt){return arguments.length?Qe(ve,xe,Ie,ze=+nt):ze},Xe.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*M+3*G(3),le=2*G(2*M*G(3)/ee),Fe=rr(le*G(3)/M,le,ee/6);function Ze(){return t.geoProjection(Fe).scale(176.84)}function ut(ve,xe){return[ve*G(1-3*xe*xe/(M*M)),xe]}ut.invert=function(ve,xe){return[ve/G(1-3*xe*xe/(M*M)),xe]};function Mt(){return t.geoProjection(ut).scale(152.63)}function Jt(ve,xe){var Ie=o(xe),ze=o(ve)*Ie,Qe=1-ze,Xe=o(ve=a(m(ve)*Ie,-m(xe))),nt=m(ve);return Ie=G(1-ze*ze),[nt*Ie-Xe*Qe,-Xe*Ie-nt*Qe]}Jt.invert=function(ve,xe){var Ie=(ve*ve+xe*xe)/-2,ze=G(-Ie*(2+Ie)),Qe=xe*Ie+ve*ze,Xe=ve*Ie-xe*ze,nt=G(Xe*Xe+Qe*Qe);return[a(ze*Qe,nt*(1+Ie)),nt?-q(ze*Xe/nt):0]};function $t(){return t.geoProjection(Jt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function yr(ve,xe){var Ie=Ee(ve,xe);return[(Ie[0]+ve/T)/2,(Ie[1]+xe)/2]}yr.invert=function(ve,xe){var Ie=ve,ze=xe,Qe=25;do{var Xe=o(ze),nt=m(ze),qt=m(2*ze),Wt=nt*nt,nr=Xe*Xe,fr=m(Ie),br=o(Ie/2),Fr=m(Ie/2),Hr=Fr*Fr,ri=1-nr*br*br,Ci=ri?V(Xe*br)*G(cn=1/ri):cn=0,cn,sn=.5*(2*Ci*Xe*Fr+Ie/T)-ve,Ln=.5*(Ci*nt+ze)-xe,Yn=.5*cn*(nr*Hr+Ci*Xe*br*Wt)+.5/T,Aa=cn*(fr*qt/4-Ci*nt*Fr),fa=.125*cn*(qt*Fr-Ci*nt*nr*fr),$a=.5*cn*(Wt*br+Ci*Hr*Xe)+.5,Co=Aa*fa-$a*Yn,Qa=(Ln*Aa-sn*$a)/Co,mo=(sn*fa-Ln*Yn)/Co;Ie-=Qa,ze-=mo}while((n(Qa)>p||n(mo)>p)&&--Qe>0);return[Ie,ze]};function Cr(){return t.geoProjection(yr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=ae,e.geoAitoff=Ce,e.geoAitoffRaw=Ee,e.geoArmadillo=re,e.geoArmadilloRaw=ge,e.geoAugust=ke,e.geoAugustRaw=Se,e.geoBaker=me,e.geoBakerRaw=Le,e.geoBerghaus=ce,e.geoBerghausRaw=Pe,e.geoBertin1953=ar,e.geoBertin1953Raw=ct,e.geoBoggs=St,e.geoBoggsRaw=rt,e.geoBonne=jt,e.geoBonneRaw=pt,e.geoBottomley=mr,e.geoBottomleyRaw=or,e.geoBromley=ei,e.geoBromleyRaw=Ar,e.geoChamberlin=et,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=We,e.geoCollignon=At,e.geoCollignonRaw=xt,e.geoCraig=Qt,e.geoCraigRaw=Kt,e.geoCraster=Ir,e.geoCrasterRaw=Gr,e.geoCylindricalEqualArea=_i,e.geoCylindricalEqualAreaRaw=Yr,e.geoCylindricalStereographic=ai,e.geoCylindricalStereographicRaw=Pi,e.geoEckert1=un,e.geoEckert1Raw=mi,e.geoEckert2=An,e.geoEckert2Raw=Fn,e.geoEckert3=Qn,e.geoEckert3Raw=Hn,e.geoEckert4=Kn,e.geoEckert4Raw=Vi,e.geoEckert5=Gt,e.geoEckert5Raw=Jn,e.geoEckert6=tr,e.geoEckert6Raw=wt,e.geoEisenlohr=Xr,e.geoEisenlohrRaw=wr,e.geoFahey=Ri,e.geoFaheyRaw=$r,e.geoFoucaut=en,e.geoFoucautRaw=Zi,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=fn,e.geoGilbert=ua,e.geoGingery=Xo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ha,e.geoGinzburg4Raw=jn,e.geoGinzburg5=Gn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=Sr,e.geoGinzburg6Raw=Ct,e.geoGinzburg8=hi,e.geoGinzburg8Raw=Jr,e.geoGinzburg9=Sn,e.geoGinzburg9Raw=hn,e.geoGringorten=ea,e.geoGringortenRaw=ki,e.geoGuyou=Fs,e.geoGuyouRaw=Lo,e.geoHammer=mt,e.geoHammerRaw=He,e.geoHammerRetroazimuthal=zl,e.geoHammerRetroazimuthalRaw=ll,e.geoHealpix=Yl,e.geoHealpixRaw=cl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=ql,e.geoHufnagel=Ns,e.geoHufnagelRaw=Kl,e.geoHyperelliptical=qo,e.geoHyperellipticalRaw=oa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Vf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=qs,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=Lf,e.geoKavrayskiy7=af,e.geoKavrayskiy7Raw=cs,e.geoLagrange=$l,e.geoLagrangeRaw=Gf,e.geoLarrivee=Fu,e.geoLarriveeRaw=lc,e.geoLaskowski=Hs,e.geoLaskowskiRaw=Es,e.geoLittrow=ps,e.geoLittrowRaw=Go,e.geoLoximuthal=xl,e.geoLoximuthalRaw=uc,e.geoMiller=Os,e.geoMillerRaw=Gu,e.geoModifiedStereographic=Bl,e.geoModifiedStereographicRaw=od,e.geoModifiedStereographicAlaska=Hu,e.geoModifiedStereographicGs48=bl,e.geoModifiedStereographicGs50=Hf,e.geoModifiedStereographicMiller=Ic,e.geoModifiedStereographicLee=yf,e.geoMollweide=je,e.geoMollweideRaw=tt,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=_f,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=jf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=sf,e.geoNaturalEarth2Raw=cc,e.geoNellHammer=Kc,e.geoNellHammerRaw=Nl,e.geoInterruptedQuarticAuthalic=gs,e.geoNicolosi=Wh,e.geoNicolosiRaw=Wf,e.geoPatterson=hu,e.geoPattersonRaw=bc,e.geoPolyconic=nl,e.geoPolyconicRaw=_u,e.geoPolyhedral=xf,e.geoPolyhedralButterfly=Cs,e.geoPolyhedralCollignon=Xf,e.geoPolyhedralWaterman=Us,e.geoProject=Wl,e.geoGringortenQuincuncial=kt,e.geoPeirceQuincuncial=Zt,e.geoPierceQuincuncial=Zt,e.geoQuantize=Er,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Kr,e.geoRectangularPolyconicRaw=xr,e.geoRobinson=dn,e.geoRobinsonRaw=Wi,e.geoSatellite=Yi,e.geoSatelliteRaw=On,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=Et,e.geoSinusoidalRaw=dt,e.geoStitch=Ls,e.geoTimes=no,e.geoTimesRaw=va,e.geoTwoPointAzimuthal=Cu,e.geoTwoPointAzimuthalRaw=rs,e.geoTwoPointAzimuthalUsa=Ql,e.geoTwoPointEquidistant=pu,e.geoTwoPointEquidistantRaw=Yu,e.geoTwoPointEquidistantUsa=Nc,e.geoVanDerGrinten=xu,e.geoVanDerGrintenRaw=Uc,e.geoVanDerGrinten2=Va,e.geoVanDerGrinten2Raw=Ac,e.geoVanDerGrinten3=Vc,e.geoVanDerGrinten3Raw=oo,e.geoVanDerGrinten4=Ku,e.geoVanDerGrinten4Raw=hc,e.geoWagner=B,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=Ze,e.geoWagner4Raw=Fe,e.geoWagner6=Mt,e.geoWagner6Raw=ut,e.geoWiechel=$t,e.geoWiechelRaw=Jt,e.geoWinkel3=Cr,e.geoWinkel3Raw=yr,Object.defineProperty(e,"__esModule",{value:!0})})});var XDe=ye((Gmr,WDe)=>{"use strict";var nd=qa(),VZ=Pr(),Xzt=Oa(),i5=Math.PI/180,iw=180/Math.PI,HZ={cursor:"pointer"},jZ={cursor:"auto"};function Zzt(e,t){var r=e.projection,n;return t._isScoped?n=Yzt:t._isClipped?n=Jzt:n=Kzt,n(e,r)}WDe.exports=Zzt;function WZ(e,t){return nd.behavior.zoom().translate(t.translate()).scale(t.scale())}function XZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,l=s[n],u={},c={};function f(h,d){u[n+"."+h]=VZ.nestedProperty(o,h).get(),Xzt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=VZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),VZ.nestedProperty(o,h).set(d),c[n+"."+h]=d)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),i.emit("plotly_relayout",c)}function Yzt(e,t){var r=WZ(e,t);function n(){nd.select(this).style(HZ)}function i(){t.scale(nd.event.scale).translate(nd.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){nd.select(this).style(jZ),XZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function Kzt(e,t){var r=WZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(M){return t.invert(M)}function v(M){var T=d(M);if(!T)return!0;var L=t(T);return Math.abs(L[0]-M[0])>n||Math.abs(L[1]-M[1])>n}function m(){nd.select(this).style(HZ),i=nd.mouse(this),a=t.rotate(),o=t.translate(),s=a,l=d(i)}function b(){if(u=nd.mouse(this),v(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(nd.event.scale),t.translate([o[0],nd.event.translate[1]]),l?d(u)&&(f=d(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(i=u,l=d(i)),h=!0,e.render(!0);var M=t.rotate(),T=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":T[0],"geo.center.lat":T[1],"geo.projection.rotation.lon":-M[0]})}function p(){nd.select(this).style(jZ),h&&XZ(e,t,k)}function k(M){var T=t.rotate(),L=t.invert(e.midPt);M("projection.rotation.lon",-T[0]),M("center.lon",L[0]),M("center.lat",L[1])}return r.on("zoomstart",m).on("zoom",b).on("zoomend",p),r}function Jzt(e,t){var r={r:t.rotate(),k:t.scale()},n=WZ(e,t),i=a7t(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){nd.select(this).style(HZ);var h=nd.mouse(this),d=t.rotate(),v=d,m=t.translate(),b=$zt(d);s=OF(t,h),o.call(n,"zoom",function(){var p=nd.mouse(this);if(t.scale(r.k=nd.event.scale),!s)h=p,s=OF(t,h);else if(OF(t,p)){t.rotate(d).translate(m);var k=OF(t,p),M=e7t(s,k),T=r7t(Qzt(b,M)),L=r.r=t7t(T,s,v);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=v),t.rotate(L),v=L}u(i.of(this,arguments))}),l(i.of(this,arguments))}).on("zoomend",function(){nd.select(this).style(jZ),o.call(n,"zoom",null),c(i.of(this,arguments)),XZ(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return nd.rebind(n,i,"on")}function OF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&i7t(r)}function $zt(e){var t=.5*e[0]*i5,r=.5*e[1]*i5,n=.5*e[2]*i5,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function Qzt(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function e7t(e,t){if(!(!e||!t)){var r=n7t(e,t),n=Math.sqrt(jDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,jDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function t7t(e,t,r){var n=GZ(t,2,e[0]);n=GZ(n,1,e[1]),n=GZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=n[2],c=Math.atan2(a,i)*iw,f=Math.sqrt(i*i+a*a),h,d;Math.abs(l)>f?(d=(l>0?90:-90)-c,h=0):(d=Math.asin(l/f)*iw-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,m=(Math.atan2(u,s)-Math.atan2(o,h))*iw,b=(Math.atan2(u,s)-Math.atan2(o,-h))*iw,p=GDe(r[0],r[1],d,m),k=GDe(r[0],r[1],v,b);return p<=k?[d,m,r[2]]:[v,b,r[2]]}function GDe(e,t,r,n){var i=HDe(r-e),a=HDe(n-t);return Math.sqrt(i*i+a*a)}function HDe(e){return(e%360+540)%360-180}function GZ(e,t,r){var n=r*i5,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=e[a]*s-e[o]*l,i[o]=e[o]*s+e[a]*l,i}function r7t(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*iw,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*iw,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*iw]}function i7t(e){var t=e[0]*i5,r=e[1]*i5,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function jDe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var l1=qa(),KZ=UZ(),o7t=KZ.geoPath,s7t=KZ.geoDistance,l7t=VDe(),u7t=Oa(),pk=Pr(),c7t=pk.strTranslate,BF=ka(),vk=So(),ZDe=ef(),f7t=Mc(),YZ=ho(),YDe=Mg().getAutoRange,ZZ=yv(),h7t=qf().prepSelect,d7t=qf().clearOutline,v7t=qf().selectOnClick,p7t=XDe(),hp=ck(),g7t=dx(),JDe=TF(),m7t=MZ().feature;function $De(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var tm=$De.prototype;QDe.exports=function(t){return new $De(t)};tm.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in hp.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),f7t.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};tm.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,c=l._ax,f=this.projection=y7t(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},v=o.rotation||{},m=s.range||[],b=l.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=YDe(r,u),c.range=YDe(r,c);var p=(u.range[0]+u.range[1])/2,k=(c.range[0]+c.range[1])/2;if(n._isScoped)d={lon:p,lat:k};else if(n._isClipped){d={lon:p,lat:k},v={lon:p,lat:k,roll:v.roll};var M=o.type,T=hp.lonaxisSpan[M]/2||180,L=hp.lataxisSpan[M]/2||90;m=[p-T,p+T],b=[k-L,k+L]}else d={lon:p,lat:k},v={lon:p,lat:v.lat,roll:v.roll}}f.center([d.lon-v.lon,d.lat-v.lat]).rotate([-v.lon,-v.lat,v.roll]).parallels(o.parallels);var x=KDe(m,b);f.fitExtent(h,x);var C=this.bounds=f.getBounds(x),S=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(KDe(u.range,c.range)),E=Math.min((C[1][0]-C[0][0])/(P[1][0]-P[0][0]),(C[1][1]-C[0][1])/(P[1][1]-P[0][1]));isFinite(E)?f.scale(E*S):pk.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*S);var z=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(f.translate([g[0]+(z[0]-g[0]),g[1]+(z[1]-g[1])]).clipExtent(C),n._isAlbersUsa){var q=f([d.lon,d.lat]),V=f.translate();f.translate([V[0]-(q[0]-V[0]),V[1]-(q[1]-V[1])])}};tm.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!hp.lineLayers[h]}function l(h){return!!hp.fillLayers[h]}var u=this.hasChoropleth?hp.layersForChoropleth:hp.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete i[h],delete a[h],l1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=l1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var d=a[h],v=hp.layerNameToAdjective[h];h==="frame"?d.datum(hp.sphereSVG):s(h)||l(h)?d.datum(m7t(n,n.objects[h])):o(h)&&d.datum(_7t(h,t,e)).call(BF.stroke,t[h].gridcolor).call(vk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(BF.stroke,t[v+"color"]).call(vk.dashLine,"",t[v+"width"]):l(h)&&d.call(BF.fill,t[v+"color"])})};tm.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;vk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(vk.setRect,i,a,o,s).call(BF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};tm.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var d in f)h[r.id+"."+d]=f[d];u7t.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var d=f.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var v=f.lassoPoints={};v[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&d7t(n)}};a==="pan"?(i.node().onmousedown=null,i.call(p7t(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),c.prepFn=function(f,h,d){h7t(f,h,d,c,a)},ZZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(pk.getPositionFromD3Event());if(!f)return ZZ.unhover(n,l1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},ZDe.hover(n,l1.event,r.id)}),i.on("mouseout",function(){n._dragging||ZZ.unhover(n,l1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&v7t(l1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&ZDe.click(n,l1.event))})};tm.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=l1.select(e.container).append("g").attr("class","geo "+e.id).call(vk.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},YZ.setConvert(e.mockAxis,r)};tm.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},pk.extendFlat(this.viewInitial,i)};tm.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};tm._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?c7t(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function y7t(e){var t=e.projection,r=t.type,n=hp.projNames[r];n="geo"+pk.titleCase(n);for(var i=KZ[n]||l7t[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?hp.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;uv}else return!1},a.getPath=function(){return o7t().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(hp.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-hp.clipPad),a}function _7t(e,t,r){var n=1e-6,i=2.5,a=t[e],o=hp.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(k,M){return[k,M]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(k,M){return[M,k]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};YZ.setConvert(c,r);var f=YZ.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,d=new Array(h),v=0;v0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var JZ=ye((jmr,iFe)=>{"use strict";var a5=Ih(),x7t=Cc().attributes,b7t=Pd().dash,n5=ck(),w7t=mc().overrideAll,tFe=t_(),rFe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:a5.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:b7t},T7t=iFe.exports=w7t({domain:x7t({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:tFe(n5.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:tFe(n5.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:a5.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:n5.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:n5.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:n5.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:n5.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:a5.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:a5.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:a5.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:a5.background},lonaxis:rFe,lataxis:rFe},"plot","from-root");T7t.uirevision={valType:"any",editType:"none"}});var oFe=ye((Wmr,aFe)=>{"use strict";var NF=Pr(),A7t=q_(),S7t=Id().getSubplotData,UF=ck(),M7t=JZ(),nFe=UF.axesNames;aFe.exports=function(t,r,n){A7t(t,r,n,{type:"geo",attributes:M7t,handleDefaults:E7t,fullData:n,partition:"y"})};function E7t(e,t,r,n){var i=S7t(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),l=UF.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",v=t._isClipped=!!UF.lonaxisSpan[u];if(e.visible===!1){var m=NF.extendDeep({},t._template);m.showcoastlines=!1,m.showcountries=!1,m.showframe=!1,m.showlakes=!1,m.showland=!1,m.showocean=!1,m.showrivers=!1,m.showsubunits=!1,m.lonaxis&&(m.lonaxis.showgrid=!1),m.lataxis&&(m.lataxis.showgrid=!1),t._template=m}for(var b=r("visible"),p,k=0;k0&&q<0&&(q+=360);var V=(z+q)/2,G;if(!c){var Z=f?l.projRotate:[V,0,0];G=r("projection.rotation.lon",Z[0]),r("projection.rotation.lat",Z[1]),r("projection.rotation.roll",Z[2]),p=r("showcoastlines",!f&&b),p&&(r("coastlinecolor"),r("coastlinewidth")),p=r("showocean",b?void 0:!1),p&&r("oceancolor")}var j,N;if(c?(j=-96.6,N=38.7):(j=f?V:G,N=(E[0]+E[1])/2),r("center.lon",j),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var H=l.projParallels||[0,60];r("projection.parallels",H)}r("projection.scale"),p=r("showland",b?void 0:!1),p&&r("landcolor"),p=r("showlakes",b?void 0:!1),p&&r("lakecolor"),p=r("showrivers",b?void 0:!1),p&&(r("rivercolor"),r("riverwidth")),p=r("showcountries",f&&s!=="usa"&&b),p&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),f||(p=r("showframe",b),p&&(r("framecolor"),r("framewidth"))),r("bgcolor");var ie=r("fitbounds");ie&&(delete t.projection.scale,f?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var $Z=ye((Xmr,uFe)=>{"use strict";var k7t=Id().getSubplotCalcData,C7t=Pr().counterRegex,L7t=eFe(),ey="geo",sFe=C7t(ey),lFe={};lFe[ey]={valType:"subplotid",dflt:ey,editType:"calc"};function P7t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[ey],i=0;i{"use strict";cFe.exports={attributes:tw(),supplyDefaults:GRe(),colorbar:Qd(),formatLabels:WRe(),calc:bF(),calcGeoJSON:NZ().calcGeoJSON,plot:NZ().plot,style:zZ(),styleOnSelect:sp().styleOnSelect,hoverPoints:RDe(),eventData:FDe(),selectPoints:ODe(),moduleType:"trace",name:"scattergeo",basePlotModule:$Z(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var dFe=ye((Ymr,hFe)=>{"use strict";hFe.exports=fFe()});var o5=ye((Kmr,gFe)=>{"use strict";var{hovertemplateAttrs:D7t,templatefallbackAttrs:F7t}=Ll(),px=tw(),z7t=Tu(),vFe=Gl(),q7t=Ih().defaultLine,vx=Ao().extendFlat,pFe=px.marker.line;gFe.exports=vx({locations:{valType:"data_array",editType:"calc"},locationmode:px.locationmode,z:{valType:"data_array",editType:"calc"},geojson:vx({},px.geojson,{}),featureidkey:px.featureidkey,text:vx({},px.text,{}),hovertext:vx({},px.hovertext,{}),marker:{line:{color:vx({},pFe.color,{dflt:q7t}),width:vx({},pFe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:px.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:px.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:vx({},vFe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:D7t(),hovertemplatefallback:F7t(),showlegend:vx({},vFe.showlegend,{dflt:!1})},z7t("",{cLetter:"z",editTypeOverride:"calc"}))});var yFe=ye((Jmr,mFe)=>{"use strict";var gk=Pr(),O7t=td(),B7t=o5(),N7t=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");mFe.exports=function(t,r,n,i){function a(h,d){return gk.coerce(t,r,B7t,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&gk.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||gk.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&gk.warn(N7t),c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),O7t(t,r,i,a,{prefix:"",cLetter:"z"}),gk.coerceSelectionMarkerOpacity(r,a)}});var VF=ye(($mr,bFe)=>{"use strict";var _Fe=Eo(),U7t=fs().BADNUM,V7t=gv(),G7t=Dm(),H7t=q0();function xFe(e){return e&&typeof e=="string"}bFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(c){return xFe(c)||_Fe(c)}:a=xFe;for(var o=0;o{"use strict";var j7t=qa(),W7t=ka(),QZ=So(),X7t=tc();function Z7t(e,t){t&&wFe(e,t)}function wFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=X7t.makeColorScaleFuncFromTrace(r);i.each(function(l){j7t.select(this).attr("fill",s(l.z)).call(W7t.stroke,l.mlc||o.color).call(QZ.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),QZ.selectedPointStyle(i,r)}function Y7t(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?QZ.selectedPointStyle(r.selectAll(".choroplethlocation"),n):wFe(e,t)}TFe.exports={style:Z7t,styleOnSelect:Y7t}});var eY=ye((eyr,MFe)=>{"use strict";var K7t=qa(),AFe=Pr(),s5=dx(),J7t=TF().getTopojsonFeatures,SFe=Mg().findExtremes,$7t=GF().style;function Q7t(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");AFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=K7t.select(this),o=a.selectAll("path.choroplethlocation").data(AFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),$7t(e,i)})}function e9t(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?s5.extractTraceFeature(e):J7t(r,i.topojson),l=[],u=[],c=0;c{"use strict";var t9t=ho(),r9t=o5(),i9t=Pr().fillText;EFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,l,u,c,f=[r,n],h=[r+360,n];for(l=0;l")}}});var jF=ye((ryr,kFe)=>{"use strict";kFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var WF=ye((iyr,CFe)=>{"use strict";CFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";LFe.exports={attributes:o5(),supplyDefaults:yFe(),colorbar:D_(),calc:VF(),calcGeoJSON:eY().calcGeoJSON,plot:eY().plot,style:GF().style,styleOnSelect:GF().styleOnSelect,hoverPoints:HF(),eventData:jF(),selectPoints:WF(),moduleType:"trace",name:"choropleth",basePlotModule:$Z(),categories:["geo","noOpacity","showLegend"],meta:{}}});var RFe=ye((ayr,IFe)=>{"use strict";IFe.exports=PFe()});var XF=ye((oyr,FFe)=>{"use strict";var a9t=Oa(),l0=Pr(),o9t=yT();function s9t(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),d=e.distance,v;if(a.tree){var m=s.p2c(f-d),b=s.p2c(f+d),p=l.p2c(h-d),k=l.p2c(h+d);n==="x"?v=a.tree.range(Math.min(m,b),Math.min(l._rl[0],l._rl[1]),Math.max(m,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(m,b),Math.min(p,k),Math.max(m,b),Math.max(p,k))}else v=a.ids;var M,T,L,x,C,S,g,P,E,z=d;if(n==="x"){var q=!!o.xperiodalignment,V=!!o.yperiodalignment;for(C=0;C=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(S=Math.min(j,N)&&h<=Math.max(j,N)?0:1/0}E=Math.sqrt(S*S+g*g),T=v[C]}}}else for(C=v.length-1;C>-1;C--)M=v[C],L=u[M],x=c[M],S=s.c2p(L)-f,g=l.c2p(x)-h,P=Math.sqrt(S*S+g*g),P{"use strict";var zFe=20;qFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:zFe,SYMBOL_STROKE:zFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var mk=ye((lyr,UFe)=>{"use strict";var l9t=Gl(),u9t=ec(),c9t=Pg(),mf=pf(),OFe=vf().axisHoverFormat,BFe=Tu(),f9t=t_(),tY=Ao().extendFlat,h9t=mc().overrideAll,d9t=gx().DASHES,NFe=mf.line,u1=mf.marker,v9t=u1.line,mx=UFe.exports=h9t({x:mf.x,x0:mf.x0,dx:mf.dx,y:mf.y,y0:mf.y0,dy:mf.dy,xperiod:mf.xperiod,yperiod:mf.yperiod,xperiod0:mf.xperiod0,yperiod0:mf.yperiod0,xperiodalignment:mf.xperiodalignment,yperiodalignment:mf.yperiodalignment,xhoverformat:OFe("x"),yhoverformat:OFe("y"),text:mf.text,hovertext:mf.hovertext,textposition:mf.textposition,textfont:u9t({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:NFe.color,width:NFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:f9t(d9t),dflt:"solid"}},marker:tY({},BFe("marker"),{symbol:u1.symbol,angle:u1.angle,size:u1.size,sizeref:u1.sizeref,sizemin:u1.sizemin,sizemode:u1.sizemode,opacity:u1.opacity,colorbar:u1.colorbar,line:tY({},BFe("marker.line"),{width:v9t.width})}),connectgaps:mf.connectgaps,fill:tY({},mf.fill,{dflt:"none"}),fillcolor:c9t(),selected:{marker:mf.selected.marker,textfont:mf.selected.textfont},unselected:{marker:mf.unselected.marker,textfont:mf.unselected.textfont},opacity:l9t.opacity},"calc","nested");mx.x.editType=mx.y.editType=mx.x0.editType=mx.y0.editType="calc+clearAxisTypes";mx.hovertemplate=mf.hovertemplate;mx.hovertemplatefallback=mf.hovertemplatefallback;mx.texttemplate=mf.texttemplate;mx.texttemplatefallback=mf.texttemplatefallback});var ZF=ye(rY=>{"use strict";var VFe=gx();rY.isOpenSymbol=function(e){return typeof e=="string"?VFe.OPEN_RE.test(e):e%200>100};rY.isDotSymbol=function(e){return typeof e=="string"?VFe.DOT_RE.test(e):e>200}});var jFe=ye((cyr,HFe)=>{"use strict";var GFe=Pr(),p9t=Oa(),g9t=ZF(),m9t=mk(),y9t=Pm(),YF=Ru(),_9t=lT(),x9t=Dg(),b9t=$p(),w9t=D0(),T9t=Fg(),A9t=F0();HFe.exports=function(t,r,n,i){function a(d,v){return GFe.coerce(t,r,m9t,d,v)}var o=t.marker?g9t.isOpenSymbol(t.marker.symbol):!1,s=YF.isBubble(t),l=_9t(t,r,i,a);if(!l){r.visible=!1;return}x9t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var S9t=uI();WFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),S9t(t,r,n)}});var YFe=ye((hyr,ZFe)=>{"use strict";function M9t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,i=o-1):n=o+1}return a}function E9t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,i=o-1):n=o+1}return a}function k9t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,n=o+1):i=o-1}return a}function C9t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,n=o+1):i=o-1}return a}function L9t(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function yk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}ZFe.exports={ge:function(e,t,r,n,i){return yk(e,t,r,n,i,M9t)},gt:function(e,t,r,n,i){return yk(e,t,r,n,i,E9t)},lt:function(e,t,r,n,i){return yk(e,t,r,n,i,k9t)},le:function(e,t,r,n,i){return yk(e,t,r,n,i,C9t)},eq:function(e,t,r,n,i){return yk(e,t,r,n,i,L9t)}}});var ty=ye((dyr,JFe)=>{"use strict";JFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=KFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var P9t=ty();$Fe.exports=I9t;function I9t(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=P9t(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var nw=ye((pyr,QFe)=>{"use strict";QFe.exports=R9t;function R9t(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{eze.exports=function(){for(var e=0;e{var rze=tF();ize.exports=D9t;function D9t(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,l;(!t||typeof t=="string")&&(t=new(rze(t||"float32"))(i+r));var u=t.length-r;if(i!==u)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";nze.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var sze=ye((_yr,oze)=>{"use strict";oze.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var vze=ye((xyr,dze)=>{"use strict";var lze=YFe(),uze=ik(),F9t=l5(),z9t=nw(),cze=ty(),nY=tze(),q9t=aw(),O9t=aze(),B9t=tF(),fze=sze(),N9t=1073741824;dze.exports=function(t,r){r||(r={}),t=q9t(t,"float64"),r=cze(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=nY(r.maxDepth,255),i=nY(r.bounds,z9t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=hze(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(B9t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||x>N9t){for(let N=0;N_e||g>Ee||P=z||ie===ae)return;let Ce=l[H];ae===void 0&&(ae=Ce.length);for(let Pe=ie;Pe=T&&He<=x&<>=L&<<=C&&q.push(ce)}let ge=u[H],re=ge[ie*4+0],Se=ge[ie*4+1],ke=ge[ie*4+2],be=ge[ie*4+3],Be=G(ge,ie+1),Le=N*.5,me=H+1;V(Z,j,Le,me,re,Se||ke||be||Be),V(Z,j+Le,Le,me,Se,ke||be||Be),V(Z+Le,j,Le,me,ke,be||Be),V(Z+Le,j+Le,Le,me,be,Be)}function G(Z,j){let N=null,H=0;for(;N===null;)if(N=Z[j*4+H],H++,H>Z.length)return null;return N}return q}function m(p,k,M,T,L){let x=[];for(let C=0;C{"use strict";pze.exports=vze()});var aY=ye((wyr,gze)=>{gze.exports=U9t;function U9t(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var l=1;l{"use strict";Object.defineProperty(JF,"__esModule",{value:!0});var V9t=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_k=Math.PI*2,oY=function(t,r,n,i,a,o,s){var l=t.x,u=t.y;l*=r,u*=n;var c=i*l-a*u,f=a*l+i*u;return{x:c+o,y:f+s}},G9t=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},mze=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},H9t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),m=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*m;p<0&&(p=0),p/=d*b+v*m,p=Math.sqrt(p)*(s===l?-1:1);var k=p*a/o*h,M=p*-o/a*f,T=c*k-u*M+(t+n)/2,L=u*k+c*M+(r+i)/2,x=(f-k)/a,C=(h-M)/o,S=(-f-k)/a,g=(-h-M)/o,P=mze(1,0,x,C),E=mze(x,C,S,g);return l===0&&E>0&&(E-=_k),l===1&&E<0&&(E+=_k),[T,L,P,E]},j9t=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,d=h===void 0?0:h,v=[];if(o===0||s===0)return[];var m=Math.sin(u*_k/360),b=Math.cos(u*_k/360),p=b*(r-i)/2+m*(n-a)/2,k=-m*(r-i)/2+b*(n-a)/2;if(p===0&&k===0)return[];o=Math.abs(o),s=Math.abs(s);var M=Math.pow(p,2)/Math.pow(o,2)+Math.pow(k,2)/Math.pow(s,2);M>1&&(o*=Math.sqrt(M),s*=Math.sqrt(M));var T=H9t(r,n,i,a,o,s,f,d,m,b,p,k),L=V9t(T,4),x=L[0],C=L[1],S=L[2],g=L[3],P=Math.abs(g)/(_k/4);Math.abs(1-P)<1e-7&&(P=1);var E=Math.max(Math.ceil(P),1);g/=E;for(var z=0;z{"use strict";bze.exports=X9t;var W9t=_ze();function X9t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function $F(e,t,r,n){return["C",e,t,r,n,r,n]}function xze(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var sY=ye((Ayr,Tze)=>{"use strict";Tze.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var Mze=ye((Syr,Sze)=>{"use strict";var Z9t=aM(),Y9t=aY(),K9t=wze(),J9t=sY(),Aze=mE();Sze.exports=$9t;function $9t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(Aze(J9t(e),"String is not an SVG path."),e=Z9t(e)),Aze(Array.isArray(e),"Argument should be a string or an array of path segments."),e=Y9t(e),e=K9t(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var Ize=ye((Myr,Pze)=>{var ow=Math.PI,Eze=Lze(120);Pze.exports=Q9t;function Q9t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var m=u,b=c;(t=="C"||t=="S")&&(m+=m-n,b+=b-i),d=["C",m,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=kze(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=kze(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=QF(u,c,d[1],d[2]);break;case"H":d=QF(u,c,d[1],c);break;case"V":d=QF(u,c,u,d[1]);break;case"Z":d=QF(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function QF(e,t,r,n){return["C",e,t,r,n,r,n]}function kze(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function Cze(e,t,r,n,i,a,o,s,l,u){if(u)M=u[0],T=u[1],p=u[2],k=u[3];else{var c=lY(e,t,-i);e=c.x,t=c.y,c=lY(s,l,-i),s=c.x,l=c.y;var f=(e-s)/2,h=(t-l)/2,d=f*f/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var v=r*r,m=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*m-v*h*h-m*f*f)/(v*h*h+m*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,k=b*-n*f/r+(t+l)/2,M=Math.asin(((t-k)/n).toFixed(9)),T=Math.asin(((l-k)/n).toFixed(9));M=eT&&(M=M-ow*2),!o&&T>M&&(T=T-ow*2)}if(Math.abs(T-M)>Eze){var L=T,x=s,C=l;T=M+Eze*(o&&T>M?1:-1),s=p+r*Math.cos(T),l=k+n*Math.sin(T);var S=Cze(s,l,r,n,i,0,o,x,C,[T,L,p,k])}var g=Math.tan((T-M)/4),P=4/3*r*g,E=4/3*n*g,z=[2*e-(e+P*Math.sin(M)),2*t-(t-E*Math.cos(M)),s+P*Math.sin(T),l-E*Math.cos(T),s,l];if(u)return z;S&&(z=z.concat(S));for(var q=0;q{var eqt=aY(),tqt=Ize(),rqt={M:"moveTo",C:"bezierCurveTo"};Rze.exports=function(e,t){e.beginPath(),tqt(eqt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[rqt[n]].apply(e,i)}),e.closePath()}});var Oze=ye((kyr,qze)=>{"use strict";var iqt=ik();qze.exports=nqt;var xk=1e20;function nqt(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,l,u,c,f,h,d,v,m;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),v=0,m=u.length;v{"use strict";var aqt=Mze(),oqt=aM(),sqt=Dze(),lqt=sY(),uqt=Oze(),uY=document.createElement("canvas"),dp=uY.getContext("2d");Bze.exports=cqt;function cqt(e,t){if(!lqt(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=uY.width=t.w||t.width||200,n=uY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||aqt(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;if(dp.fillStyle="black",dp.fillRect(0,0,r,n),dp.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?dp.strokeStyle="white":dp.strokeStyle="black",dp.lineWidth=Math.abs(a)),dp.translate(r*.5,n*.5),dp.scale(l,l),fqt()){var u=new Path2D(e);dp.fill(u),a&&dp.stroke(u)}else{var c=oqt(e);sqt(dp,c),dp.fill(),a&&dp.stroke()}dp.setTransform(1,0,0,1,0,0);var f=uqt(dp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var ez;function fqt(){if(ez!=null)return ez;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return ez=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return ez=r&&r.data&&r.data[3]===255}});var lw=ye((Lyr,Jze)=>{"use strict";var rz=Eo(),hqt=Nze(),tz=sx(),dqt=Oa(),f5=Pr(),bh=f5.isArrayOrTypedArray,u5=So(),Uze=df(),Vze=a1().formatColor,c5=Ru(),vqt=B3(),fY=ZF(),bk=gx(),pqt=X1().DESELECTDIM,Gze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},gqt=ip().appendArrayPointValue;function mqt(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(c5.hasText(t)&&(n.text=Kze(e,t),n.textSel=jze(e,t,t.selected),n.textUnsel=jze(e,t,t.unselected)),c5.hasMarkers(t)&&(n.marker=dY(e,t),n.markerSel=hY(e,t,t.selected),n.markerUnsel=hY(e,t,t.unselected),!t.unselected&&bh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function dY(e,t){var r=t._length,n=t.marker,i={},a,o=bh(n.symbol),s=bh(n.angle),l=bh(n.color),u=bh(n.line.color),c=bh(n.opacity),f=bh(n.size),h=bh(n.line.width),d;if(o||(d=fY.isOpenSymbol(n.symbol)),o||l||u||c||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var v=n.symbol,m=n.angle,b=Vze(n,n.opacity,r),p=Vze(n.line,n.opacity,r);if(!bh(p[0])){var k=p;for(p=Array(r),a=0;abk.TOO_MANY_POINTS||c5.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=bh(u)?u.length>1?u[o]:u[0]:u,v=Gze[h],m=Gze[d],b=c?c/.8+1:0,p=-m*b-m*.5;a.offset[o]=[v*b/f,p/f]}}return a}Jze.exports={style:mqt,markerStyle:dY,markerSelection:hY,linePositions:_qt,errorBarPositions:xqt,textPosition:bqt}});var vY=ye((Pyr,$ze)=>{"use strict";var iz=Pr();$ze.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){iz.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=iz.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(l),n.scatter2d&&n.scatter2d.update(l),n.line2d&&n.line2d.update(l),n.error2d&&n.error2d.update(l.concat(l)),n.select2d&&n.select2d.update(l),n.glText)for(var u=0;u{"use strict";var wqt=KF(),h5=Pr(),Qze=df(),Tqt=Mg().findExtremes,e7e=zg(),pY=O0(),Aqt=pY.calcMarkerSize,Sqt=pY.calcAxisExpansion,Mqt=pY.setFirstScatter,Eqt=z0(),d5=lw(),kqt=vY(),t7e=fs().BADNUM,Cqt=gx().TOO_MANY_POINTS;i7e.exports=function(t,r){var n=t._fullLayout,i=r._xA=Qze.getFromId(t,r.xaxis,"x"),a=r._yA=Qze.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=Cqt,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=e7e(r,i,"x",h),m=e7e(r,a,"y",d),b=v.vals,p=m.vals;r._x=b,r._y=p,r.xperiodalignment&&(r._origX=h,r._xStarts=v.starts,r._xEnds=v.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=m.starts,r._yEnds=m.ends);var k=new Array(u),M=new Array(s);for(f=0;f1&&h5.extendFlat(o.line,d5.linePositions(e,r,n)),o.errorX||o.errorY){var s=d5.errorBarPositions(e,r,n,i,a);o.errorX&&h5.extendFlat(o.errorX,s.x),o.errorY&&h5.extendFlat(o.errorY,s.y)}return o.text&&(h5.extendFlat(o.text,{positions:n},d5.textPosition(e,r,o.text,o.marker)),h5.extendFlat(o.textSel,{positions:n},d5.textPosition(e,r,o.text,o.markerSel)),h5.extendFlat(o.textUnsel,{positions:n},d5.textPosition(e,r,o.text,o.markerUnsel))),o}});var gY=ye((Ryr,o7e)=>{"use strict";var a7e=Pr(),Pqt=ka(),Iqt=X1().DESELECTDIM;function Rqt(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],l=i.textOptions[a],u=i.textSelectedOptions[a]||{},c=i.textUnselectedOptions[a]||{},f=a7e.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,m=c.color,b=l.color,p=a7e.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var s7e=Ru(),Dqt=gY().styleTextSelection;l7e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l=n[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,d=l.index;if(!h)return o;var v=s7e.hasText(s),m=s7e.hasMarkers(s),b=!m&&!v;if(s.visible!==!0||b)return o;var p=[],k=[];if(r!==!1&&!r.degenerate)for(var M=0;M{"use strict";var Fqt=XF();u7e.exports={moduleType:"trace",name:"scattergl",basePlotModule:mh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:mk(),supplyDefaults:jFe(),crossTraceDefaults:hU(),colorbar:Qd(),formatLabels:XFe(),calc:n7e(),hoverPoints:Fqt.hoverPoints,selectPoints:mY(),meta:{}}});var h7e=ye((zyr,az)=>{"use strict";var nz=ik();az.exports=f7e;az.exports.to=f7e;az.exports.from=zqt;function f7e(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=nz(r,0,255)&255,n=nz(n,0,255)&255,i=nz(i,0,255)&255,a=nz(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function zqt(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Nh=ye((qyr,v7e)=>{"use strict";var d7e=Object.getOwnPropertySymbols,qqt=Object.prototype.hasOwnProperty,Oqt=Object.prototype.propertyIsEnumerable;function Bqt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Nqt(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}v7e.exports=Nqt()?Object.assign:function(e,t){for(var r,n=Bqt(e),i,a=1;a{p7e.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";m7e.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";y7e.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var oz=ye((Uyr,v5)=>{"use strict";v5.exports=wk;v5.exports.float32=v5.exports.float=wk;v5.exports.fract32=v5.exports.fract=Uqt;var x7e=new Float32Array(1);function Uqt(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=wk(e));for(var r=0,n=t.length;r{"use strict";function Vqt(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Gqt(e,t){return Wqt(e)||Vqt(e,t)||w7e(e,t)||Yqt()}function Hqt(e){return jqt(e)||Xqt(e)||w7e(e)||Zqt()}function jqt(e){if(Array.isArray(e))return _Y(e)}function Wqt(e){if(Array.isArray(e))return e}function Xqt(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function w7e(e,t){if(e){if(typeof e=="string")return _Y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _Y(e,t)}}function _Y(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rLe&&Pe>0){var ce=(me[Pe][0]-Le)/(me[Pe][0]-me[Pe-1][0]);return me[Pe][1]*(1-ce)+ce*me[Pe-1][1]}}return 1}var H=[0,0,0],re={showSurface:!1,showContour:!1,projections:[E.slice(),E.slice(),E.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(Le,me){var Pe,ce,He,lt=me.axes&&me.axes.lastCubeProps.axis||H,mt=me.showSurface,Ht=me.showContour;for(Pe=0;Pe<3;++Pe)for(mt=mt||me.surfaceProject[Pe],ce=0;ce<3;++ce)Ht=Ht||me.contourProject[Pe][ce];for(Pe=0;Pe<3;++Pe){var at=re.projections[Pe];for(ce=0;ce<16;++ce)at[ce]=0;for(ce=0;ce<4;++ce)at[5*ce]=1;at[5*Pe]=0,at[12+Pe]=me.axesBounds[+(lt[Pe]>0)][Pe],p(at,Le.model,at);var ct=re.clipBounds[Pe];for(He=0;He<2;++He)for(ce=0;ce<3;++ce)ct[He][ce]=Le.clipBounds[He][ce];ct[0][Pe]=-1e8,ct[1][Pe]=1e8}return re.showSurface=mt,re.showContour=Ht,re}var _e={model:E,view:E,projection:E,inverseModel:E.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Ee=E.slice(),Ce=[1,0,0,0,1,0,0,0,1];function ge(Le,me){Le=Le||{};var Pe=this.gl;Pe.disable(Pe.CULL_FACE),this._colorMap.bind(0);var ce=_e;ce.model=Le.model||E,ce.view=Le.view||E,ce.projection=Le.projection||E,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=k(ce.inverseModel,ce.model);for(var He=0;He<2;++He)for(var lt=ce.clipBounds[He],mt=0;mt<3;++mt)lt[mt]=Math.min(Math.max(this.clipBounds[He][mt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=Ce,ce.vertexColor=this.vertexColor;var Ht=Ee;for(p(Ht,ce.view,ce.model),p(Ht,ce.projection,Ht),k(Ht,Ht),He=0;He<3;++He)ce.eyePosition[He]=Ht[12+He]/Ht[15];var at=Ht[15];for(He=0;He<3;++He)at+=this.lightPosition[He]*Ht[4*He+3];for(He=0;He<3;++He){var ct=Ht[12+He];for(mt=0;mt<3;++mt)ct+=Ht[4*mt+He]*this.lightPosition[mt];ce.lightPosition[He]=ct/at}var ar=ae(ce,this);if(ar.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Pe.TRIANGLES,this._vertexCount),He=0;He<3;++He)!this.surfaceProject[He]||!this.vertexCount||(this._shader.uniforms.model=ar.projections[He],this._shader.uniforms.clipBounds=ar.clipBounds[He],this._vao.draw(Pe.TRIANGLES,this._vertexCount));this._vao.unbind()}if(ar.showContour){var Vt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Vt.bind(),Vt.uniforms=ce;var rr=this._contourVAO;for(rr.bind(),He=0;He<3;++He)for(Vt.uniforms.permutation=q[He],Pe.lineWidth(this.contourWidth[He]*this.pixelRatio),mt=0;mt>4)/16)/255,He=Math.floor(ce),lt=ce-He,mt=me[1]*(Le.value[1]+(Le.value[2]&15)/16)/255,Ht=Math.floor(mt),at=mt-Ht;He+=1,Ht+=1;var ct=Pe.position;ct[0]=ct[1]=ct[2]=0;for(var ar=0;ar<2;++ar)for(var Vt=ar?lt:1-lt,rr=0;rr<2;++rr)for(var tt=rr?at:1-at,je=He+ar,Ue=Ht+rr,Ae=Vt*tt,rt=0;rt<3;++rt)ct[rt]+=this._field[rt].get(je,Ue)*Ae;for(var St=this._pickResult.level,Tt=0;Tt<3;++Tt)if(St[Tt]=M.le(this.contourLevels[Tt],ct[Tt]),St[Tt]<0)this.contourLevels[Tt].length>0&&(St[Tt]=0);else if(St[Tt]Math.abs(Et-ct[Tt])&&(St[Tt]+=1)}for(Pe.index[0]=lt<.5?He:He+1,Pe.index[1]=at<.5?Ht:Ht+1,Pe.uv[0]=ce/me[0],Pe.uv[1]=mt/me[1],rt=0;rt<3;++rt)Pe.dataCoordinate[rt]=this._field[rt].get(Pe.index[0],Pe.index[1]);return Pe},j.padField=function(Le,me){var Pe=me.shape.slice(),ce=Le.shape.slice();d.assign(Le.lo(1,1).hi(Pe[0],Pe[1]),me),d.assign(Le.lo(1).hi(Pe[0],1),me.hi(Pe[0],1)),d.assign(Le.lo(1,ce[1]-1).hi(Pe[0],1),me.lo(0,Pe[1]-1).hi(Pe[0],1)),d.assign(Le.lo(0,1).hi(1,Pe[1]),me.hi(1)),d.assign(Le.lo(ce[0]-1,1).hi(1,Pe[1]),me.lo(Pe[0]-1)),Le.set(0,0,me.get(0,0)),Le.set(0,ce[1]-1,me.get(0,Pe[1]-1)),Le.set(ce[0]-1,0,me.get(Pe[0]-1,0)),Le.set(ce[0]-1,ce[1]-1,me.get(Pe[0]-1,Pe[1]-1))};function Se(Le,me){return Array.isArray(Le)?[me(Le[0]),me(Le[1]),me(Le[2])]:[me(Le),me(Le),me(Le)]}function ke(Le){return Array.isArray(Le)?Le.length===3?[Le[0],Le[1],Le[2],1]:[Le[0],Le[1],Le[2],Le[3]]:[0,0,0,1]}function be(Le){if(Array.isArray(Le)){if(Array.isArray(Le))return[ke(Le[0]),ke(Le[1]),ke(Le[2])];var me=ke(Le);return[me.slice(),me.slice(),me.slice()]}}j.update=function(Le){Le=Le||{},this.objectOffset=Le.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Le&&(this.contourWidth=Se(Le.contourWidth,Number)),"showContour"in Le&&(this.showContour=Se(Le.showContour,Boolean)),"showSurface"in Le&&(this.showSurface=!!Le.showSurface),"contourTint"in Le&&(this.contourTint=Se(Le.contourTint,Boolean)),"contourColor"in Le&&(this.contourColor=be(Le.contourColor)),"contourProject"in Le&&(this.contourProject=Se(Le.contourProject,function(yn){return Se(yn,Boolean)})),"surfaceProject"in Le&&(this.surfaceProject=Le.surfaceProject),"dynamicColor"in Le&&(this.dynamicColor=be(Le.dynamicColor)),"dynamicTint"in Le&&(this.dynamicTint=Se(Le.dynamicTint,Number)),"dynamicWidth"in Le&&(this.dynamicWidth=Se(Le.dynamicWidth,Number)),"opacity"in Le&&(this.opacity=Le.opacity),"opacityscale"in Le&&(this.opacityscale=Le.opacityscale),"colorBounds"in Le&&(this.colorBounds=Le.colorBounds),"vertexColor"in Le&&(this.vertexColor=Le.vertexColor?1:0),"colormap"in Le&&this._colorMap.setPixels(this.genColormap(Le.colormap,this.opacityscale));var me=Le.field||Le.coords&&Le.coords[2]||null,Pe=!1;if(me||(this._field[2].shape[0]||this._field[2].shape[2]?me=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):me=this._field[2].hi(0,0)),"field"in Le||"coords"in Le){var ce=(me.shape[0]+2)*(me.shape[1]+2);ce>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(ce))),this._field[2]=m(this._field[2].data,[me.shape[0]+2,me.shape[1]+2]),this.padField(this._field[2],me),this.shape=me.shape.slice();for(var He=this.shape,lt=0;lt<2;++lt)this._field[2].size>this._field[lt].data.length&&(f.freeFloat(this._field[lt].data),this._field[lt].data=f.mallocFloat(this._field[2].size)),this._field[lt]=m(this._field[lt].data,[He[0]+2,He[1]+2]);if(Le.coords){var mt=Le.coords;if(!Array.isArray(mt)||mt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(lt=0;lt<2;++lt){var Ht=mt[lt];for(rr=0;rr<2;++rr)if(Ht.shape[rr]!==He[rr])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[lt],Ht)}}else if(Le.ticks){var at=Le.ticks;if(!Array.isArray(at)||at.length!==2)throw new Error("gl-surface: invalid ticks");for(lt=0;lt<2;++lt){var ct=at[lt];if((Array.isArray(ct)||ct.length)&&(ct=m(ct)),ct.shape[0]!==He[lt])throw new Error("gl-surface: invalid tick length");var ar=m(ct.data,He);ar.stride[lt]=ct.stride[0],ar.stride[lt^1]=0,this.padField(this._field[lt],ar)}}else{for(lt=0;lt<2;++lt){var Vt=[0,0];Vt[lt]=1,this._field[lt]=m(this._field[lt].data,[He[0]+2,He[1]+2],Vt,0)}this._field[0].set(0,0,0);for(var rr=0;rr0){for(var en=0;en<5;++en)Pi.pop();We-=1}continue e}}}Fn.push(We)}this._contourOffsets[ai]=un,this._contourCounts[ai]=Fn}var fn=f.mallocFloat(Pi.length);for(lt=0;ltV||z<0||z>V)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[E,z],P.bind(),q.texImage2D(q.TEXTURE_2D,0,P.format,E,z,0,P.format,P.type,null),P._mipLevels=[0],P}function p(P,E,z,q,V,G){this.gl=P,this.handle=E,this.format=V,this.type=G,this._shape=[z,q],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var Z=this,j=[this._wrapS,this._wrapT];Object.defineProperties(j,[{get:function(){return Z._wrapS},set:function(H){return Z.wrapS=H}},{get:function(){return Z._wrapT},set:function(H){return Z.wrapT=H}}]),this._wrapVector=j;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return Z._shape[0]},set:function(H){return Z.width=H}},{get:function(){return Z._shape[1]},set:function(H){return Z.height=H}}]),this._shapeVector=N}var k=p.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var E=this.gl;if(this.type===E.FLOAT&&c.indexOf(P)>=0&&(E.getExtension("OES_texture_float_linear")||(P=E.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var E=this.gl;if(this.type===E.FLOAT&&c.indexOf(P)>=0&&(E.getExtension("OES_texture_float_linear")||(P=E.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var E=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,E!==this._anisoSamples){var z=this.gl.getExtension("EXT_texture_filter_anisotropic");z&&this.gl.texParameterf(this.gl.TEXTURE_2D,z.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var E=0;E<2;++E)if(h.indexOf(P[E])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var z=this.gl;return this.bind(),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_S,this._wrapS),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),k.bind=function(P){var E=this.gl;return P!==void 0&&E.activeTexture(E.TEXTURE0+(P|0)),E.bindTexture(E.TEXTURE_2D,this.handle),P!==void 0?P|0:E.getParameter(E.ACTIVE_TEXTURE)-E.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),E=0;P>0;++E,P>>>=1)this._mipLevels.indexOf(E)<0&&this._mipLevels.push(E)},k.setPixels=function(P,E,z,q){var V=this.gl;this.bind(),Array.isArray(E)?(q=z,z=E[1]|0,E=E[0]|0):(E=E||0,z=z||0),q=q||0;var G=v(P)?P:P.raw;if(G){var Z=this._mipLevels.indexOf(q)<0;Z?(V.texImage2D(V.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(q)):V.texSubImage2D(V.TEXTURE_2D,q,E,z,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||E+P.shape[1]>this._shape[1]>>>q||z+P.shape[0]>this._shape[0]>>>q||E<0||z<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");T(V,E,z,q,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function M(P,E){return P.length===3?E[2]===1&&E[1]===P[0]*P[2]&&E[0]===P[2]:E[0]===1&&E[1]===P[0]}function T(P,E,z,q,V,G,Z,j){var N=j.dtype,H=j.shape.slice();if(H.length<2||H.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,ae=0,_e=M(H,j.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,_e=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,_e=!1,N="uint8");var Ee=1;if(H.length===2)ae=P.LUMINANCE,H=[H[0],H[1],1],j=s(j.data,H,[j.stride[0],j.stride[1],1],j.offset);else if(H.length===3){if(H[2]===1)ae=P.ALPHA;else if(H[2]===2)ae=P.LUMINANCE_ALPHA;else if(H[2]===3)ae=P.RGB;else if(H[2]===4)ae=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Ee=H[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((ae===P.LUMINANCE||ae===P.ALPHA)&&(V===P.LUMINANCE||V===P.ALPHA)&&(ae=V),ae!==V)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Ce=j.size,ge=Z.indexOf(q)<0;if(ge&&Z.push(q),re===G&&_e)j.offset===0&&j.data.length===Ce?ge?P.texImage2D(P.TEXTURE_2D,q,V,H[0],H[1],0,V,G,j.data):P.texSubImage2D(P.TEXTURE_2D,q,E,z,H[0],H[1],V,G,j.data):ge?P.texImage2D(P.TEXTURE_2D,q,V,H[0],H[1],0,V,G,j.data.subarray(j.offset,j.offset+Ce)):P.texSubImage2D(P.TEXTURE_2D,q,E,z,H[0],H[1],V,G,j.data.subarray(j.offset,j.offset+Ce));else{var ie;G===P.FLOAT?ie=u.mallocFloat32(Ce):ie=u.mallocUint8(Ce);var Se=s(ie,H,[H[2],H[2]*H[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?m(Se,j):l.assign(Se,j),ge?P.texImage2D(P.TEXTURE_2D,q,V,H[0],H[1],0,V,G,ie.subarray(0,Ce)):P.texSubImage2D(P.TEXTURE_2D,q,E,z,H[0],H[1],V,G,ie.subarray(0,Ce)),G===P.FLOAT?u.freeFloat32(ie):u.freeUint8(ie)}}function L(P){var E=P.createTexture();return P.bindTexture(P.TEXTURE_2D,E),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),E}function x(P,E,z,q,V){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(E<0||E>G||z<0||z>G)throw new Error("gl-texture2d: Invalid texture shape");if(V===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,q,E,z,0,q,V,null),new p(P,Z,E,z,q,V)}function C(P,E,z,q,V,G){var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,V,V,G,E),new p(P,Z,z,q,V,G)}function S(P,E){var z=E.dtype,q=E.shape.slice(),V=P.getParameter(P.MAX_TEXTURE_SIZE);if(q[0]<0||q[0]>V||q[1]<0||q[1]>V)throw new Error("gl-texture2d: Invalid texture size");var G=M(q,E.stride.slice()),Z=0;z==="float32"?Z=P.FLOAT:z==="float64"?(Z=P.FLOAT,G=!1,z="float32"):z==="uint8"?Z=P.UNSIGNED_BYTE:(Z=P.UNSIGNED_BYTE,G=!1,z="uint8");var j=0;if(q.length===2)j=P.LUMINANCE,q=[q[0],q[1],1],E=s(E.data,q,[E.stride[0],E.stride[1],1],E.offset);else if(q.length===3)if(q[2]===1)j=P.ALPHA;else if(q[2]===2)j=P.LUMINANCE_ALPHA;else if(q[2]===3)j=P.RGB;else if(q[2]===4)j=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");Z===P.FLOAT&&!P.getExtension("OES_texture_float")&&(Z=P.UNSIGNED_BYTE,G=!1);var N,H,re=E.size;if(G)E.offset===0&&E.data.length===re?N=E.data:N=E.data.subarray(E.offset,E.offset+re);else{var ae=[q[2],q[2]*q[0],1];H=u.malloc(re,z);var _e=s(H,q,ae,0);(z==="float32"||z==="float64")&&Z===P.UNSIGNED_BYTE?m(_e,E):l.assign(_e,E),N=H.subarray(0,re)}var Ee=L(P);return P.texImage2D(P.TEXTURE_2D,0,j,q[0],q[1],0,j,Z,N),G||u.free(H),new p(P,Ee,q[0],q[1],j,Z)}function g(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||d(P),typeof arguments[1]=="number")return x(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var E=arguments[1],z=v(E)?E:E.raw;if(z)return C(P,z,E.width|0,E.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(E.shape&&E.data&&E.stride)return S(P,E)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}}),1433:(function(i){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var c=0;c1?0:Math.acos(m)}}),9226:(function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}}),3126:(function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}}),3990:(function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}}),1091:(function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}}),5911:(function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2];return o[0]=c*v-f*d,o[1]=f*h-u*v,o[2]=u*d-c*h,o}}),5455:(function(i,a,o){i.exports=o(7056)}),7056:(function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return Math.sqrt(l*l+u*u+c*c)}}),4008:(function(i,a,o){i.exports=o(6690)}),6690:(function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}}),244:(function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}}),2613:(function(i){i.exports=1e-6}),9922:(function(i,a,o){i.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],d=u[2],v=c[0],m=c[1],b=c[2];return Math.abs(f-v)<=s*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-m)<=s*Math.max(1,Math.abs(h),Math.abs(m))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}}),9265:(function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}}),2681:(function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}}),5137:(function(i,a,o){i.exports=l;var s=o(1091)();function l(u,c,f,h,d,v){var m,b;for(c||(c=3),f||(f=0),h?b=Math.min(h*c+f,u.length):b=u.length,m=f;m0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}}),7636:(function(i){i.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,c=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*c,o[1]=Math.sin(l)*c,o[2]=u*s,o}}),6894:(function(i){i.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,d=s[2]-f,v=Math.sin(u),m=Math.cos(u);return o[0]=s[0],o[1]=c+h*m-d*v,o[2]=f+h*v+d*m,o}}),109:(function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,d=s[2]-f,v=Math.sin(u),m=Math.cos(u);return o[0]=c+d*v+h*m,o[1]=s[1],o[2]=f+d*m-h*v,o}}),8692:(function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,d=s[1]-f,v=Math.sin(u),m=Math.cos(u);return o[0]=c+h*m-d*v,o[1]=f+h*v+d*m,o[2]=s[2],o}}),2447:(function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}}),6621:(function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}}),8489:(function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}}),1463:(function(i){i.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}}),6141:(function(i,a,o){i.exports=o(2953)}),5486:(function(i,a,o){i.exports=o(3066)}),2953:(function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return l*l+u*u+c*c}}),3066:(function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}}),2229:(function(i,a,o){i.exports=o(6843)}),6843:(function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}}),492:(function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2];return o[0]=u*l[0]+c*l[3]+f*l[6],o[1]=u*l[1]+c*l[4]+f*l[7],o[2]=u*l[2]+c*l[5]+f*l[8],o}}),5673:(function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[3]*u+l[7]*c+l[11]*f+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*c+l[8]*f+l[12])/h,o[1]=(l[1]*u+l[5]*c+l[9]*f+l[13])/h,o[2]=(l[2]*u+l[6]*c+l[10]*f+l[14])/h,o}}),264:(function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],m=l[3],b=m*u+d*f-v*c,p=m*c+v*u-h*f,k=m*f+h*c-d*u,M=-h*u-d*c-v*f;return o[0]=b*m+M*-h+p*-v-k*-d,o[1]=p*m+M*-d+k*-h-b*-v,o[2]=k*m+M*-v+b*-d-p*-h,o}}),4361:(function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}}),2335:(function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}}),2933:(function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}}),7536:(function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}}),4691:(function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return Math.sqrt(l*l+u*u+c*c+f*f)}}),1373:(function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}}),3750:(function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}}),3390:(function(i){i.exports=a;function a(o,s,l,u){var c=new Float32Array(4);return c[0]=o,c[1]=s,c[2]=l,c[3]=u,c}}),9970:(function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}}),4494:(function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}}),6808:(function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return Math.sqrt(s*s+l*l+u*u+c*c)}}),2573:(function(i){i.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],d=s[3];return o[0]=c+u*(l[0]-c),o[1]=f+u*(l[1]-f),o[2]=h+u*(l[2]-h),o[3]=d+u*(l[3]-d),o}}),160:(function(i){i.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}}),2334:(function(i){i.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}}),3576:(function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}}),1498:(function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}}),5177:(function(i){i.exports=a;function a(o,s){var l=s[0],u=s[1],c=s[2],f=s[3],h=l*l+u*u+c*c+f*f;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=c*h,o[3]=f*h),o}}),9131:(function(i,a,o){var s=o(5177),l=o(9288);i.exports=u;function u(c,f){return f=f||1,c[0]=Math.random(),c[1]=Math.random(),c[2]=Math.random(),c[3]=Math.random(),s(c,c),l(c,c,f),c}}),9288:(function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}}),4844:(function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}}),4578:(function(i){i.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}}),7960:(function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return l*l+u*u+c*c+f*f}}),483:(function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return s*s+l*l+u*u+c*c}}),6860:(function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}}),5352:(function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=s[3];return o[0]=l[0]*u+l[4]*c+l[8]*f+l[12]*h,o[1]=l[1]*u+l[5]*c+l[9]*f+l[13]*h,o[2]=l[2]*u+l[6]*c+l[10]*f+l[14]*h,o[3]=l[3]*u+l[7]*c+l[11]*f+l[15]*h,o}}),4041:(function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],m=l[3],b=m*u+d*f-v*c,p=m*c+v*u-h*f,k=m*f+h*c-d*u,M=-h*u-d*c-v*f;return o[0]=b*m+M*-h+p*-v-k*-d,o[1]=p*m+M*-d+k*-h-b*-v,o[2]=k*m+M*-v+b*-d-p*-h,o[3]=s[3],o}}),1848:(function(i,a,o){var s=o(4905),l=o(6468);i.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Tt=Ae.slice(0,1).join("")}return Pe(Tt),Ce+=Tt.length,N=N.slice(Tt.length),N.length}while(!0)}function rr(){return/[^a-fA-F0-9]/.test(Z)?(Pe(N.join("")),G=h,q):(N.push(Z),j=Z,q+1)}function tt(){return Z==="."||/[eE]/.test(Z)?(N.push(Z),G=M,j=Z,q+1):Z==="x"&&N.length===1&&N[0]==="0"?(G=g,N.push(Z),j=Z,q+1):/[^\d]/.test(Z)?(Pe(N.join("")),G=h,q):(N.push(Z),j=Z,q+1)}function je(){return Z==="f"&&(N.push(Z),j=Z,q+=1),/[eE]/.test(Z)||(Z==="-"||Z==="+")&&/[eE]/.test(j)?(N.push(Z),j=Z,q+1):/[^\d]/.test(Z)?(Pe(N.join("")),G=h,q):(N.push(Z),j=Z,q+1)}function Ue(){if(/[^\d\w_]/.test(Z)){var Ae=N.join("");return me[Ae]?G=x:Le[Ae]?G=L:G=T,Pe(N.join("")),G=h,q}return N.push(Z),j=Z,q+1}}}),3508:(function(i,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])}),6852:(function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]}),7932:(function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])}),620:(function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]}),7827:(function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]}),4905:(function(i,a,o){var s=o(5874);i.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}}),3236:(function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,b=-7,p=l?c-1:0,k=l?-1:1,M=o[s+p];for(p+=k,f=M&(1<<-b)-1,M>>=-b,b+=d;b>0;f=f*256+o[s+p],p+=k,b-=8);for(h=f&(1<<-b)-1,f>>=-b,b+=u;b>0;h=h*256+o[s+p],p+=k,b-=8);if(f===0)f=1-m;else{if(f===v)return h?NaN:(M?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-m}return(M?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,d,v,m=f*8-c-1,b=(1<>1,k=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=u?0:f-1,T=u?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+p>=1?s+=k/v:s+=k*Math.pow(2,1-p),s*v>=2&&(h++,v/=2),h+p>=b?(d=0,h=b):h+p>=1?(d=(s*v-1)*Math.pow(2,c),h=h+p):(d=s*Math.pow(2,p-1)*Math.pow(2,c),h=0));c>=8;o[l+M]=d&255,M+=T,d/=256,c-=8);for(h=h<0;o[l+M]=h&255,M+=T,h/=256,m-=8);o[l+M-T]|=L*128}}),8954:(function(i,a,o){"use strict";i.exports=p;var s=o(3250),l=o(6803).Fw;function u(k,M,T){this.vertices=k,this.adjacent=M,this.boundary=T,this.lastVisited=-1}u.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var M=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=M};function c(k,M,T){this.vertices=k,this.cell=M,this.index=T}function f(k,M){return l(k.vertices,M.vertices)}function h(k){return function(){var M=this.tuple;return k.apply(this,M)}}function d(k){var M=s[k+1];return M||(M=s),h(M)}var v=[];function m(k,M,T){this.dimension=k,this.vertices=M,this.simplices=T,this.interior=T.filter(function(C){return!C.boundary}),this.tuple=new Array(k+1);for(var L=0;L<=k;++L)this.tuple[L]=this.vertices[L];var x=v[k];x||(x=v[k]=d(k)),this.orient=x}var b=m.prototype;b.handleBoundaryDegeneracy=function(k,M){var T=this.dimension,L=this.vertices.length-1,x=this.tuple,C=this.vertices,S=[k];for(k.lastVisited=-L;S.length>0;){k=S.pop();for(var g=k.adjacent,P=0;P<=T;++P){var E=g[P];if(!(!E.boundary||E.lastVisited<=-L)){for(var z=E.vertices,q=0;q<=T;++q){var V=z[q];V<0?x[q]=M:x[q]=C[V]}var G=this.orient();if(G>0)return E;E.lastVisited=-L,G===0&&S.push(E)}}}return null},b.walk=function(k,M){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,S=M?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[S];e:for(;!g.boundary;){for(var P=g.vertices,E=g.adjacent,z=0;z<=L;++z)C[z]=x[P[z]];g.lastVisited=T;for(var z=0;z<=L;++z){var q=E[z];if(!(q.lastVisited>=T)){var V=C[z];C[z]=k;var G=this.orient();if(C[z]=V,G<0){g=q;continue e}else q.boundary?q.lastVisited=-T:q.lastVisited=T}}return}return g},b.addPeaks=function(k,M){var T=this.vertices.length-1,L=this.dimension,x=this.vertices,C=this.tuple,S=this.interior,g=this.simplices,P=[M];M.lastVisited=T,M.vertices[M.vertices.indexOf(-1)]=T,M.boundary=!1,S.push(M);for(var E=[];P.length>0;){var M=P.pop(),z=M.vertices,q=M.adjacent,V=z.indexOf(T);if(!(V<0)){for(var G=0;G<=L;++G)if(G!==V){var Z=q[G];if(!(!Z.boundary||Z.lastVisited>=T)){var j=Z.vertices;if(Z.lastVisited!==-T){for(var N=0,H=0;H<=L;++H)j[H]<0?(N=H,C[H]=k):C[H]=x[j[H]];var re=this.orient();if(re>0){j[N]=T,Z.boundary=!1,S.push(Z),P.push(Z),Z.lastVisited=T;continue}else Z.lastVisited=-T}var ae=Z.adjacent,_e=z.slice(),Ee=q.slice(),Ce=new u(_e,Ee,!0);g.push(Ce);var ge=ae.indexOf(M);if(!(ge<0)){ae[ge]=Ce,Ee[V]=Z,_e[G]=-1,Ee[G]=M,q[G]=Ce,Ce.flip();for(var H=0;H<=L;++H){var ie=_e[H];if(!(ie<0||ie===T)){for(var Se=new Array(L-1),ke=0,be=0;be<=L;++be){var Be=_e[be];Be<0||be===H||(Se[ke++]=Be)}E.push(new c(Se,Ce,H))}}}}}}}E.sort(f);for(var G=0;G+1=0?S[P++]=g[z]:E=z&1;if(E===(k&1)){var q=S[0];S[0]=S[1],S[1]=q}M.push(S)}}return M};function p(k,M){var T=k.length;if(T===0)throw new Error("Must have at least d+1 points");var L=k[0].length;if(T<=L)throw new Error("Must input at least d+1 points");var x=k.slice(0,L+1),C=s.apply(void 0,x);if(C===0)throw new Error("Input not in general position");for(var S=new Array(L+1),g=0;g<=L;++g)S[g]=g;C<0&&(S[0]=1,S[1]=0);for(var P=new u(S,new Array(L+1),!1),E=P.adjacent,z=new Array(L+2),g=0;g<=L;++g){for(var q=S.slice(),V=0;V<=L;++V)V===g&&(q[V]=-1);var G=q[0];q[0]=q[1],q[1]=G;var Z=new u(q,new Array(L+1),!0);E[g]=Z,z[g]=Z}z[L+1]=P;for(var g=0;g<=L;++g)for(var q=E[g].vertices,j=E[g].adjacent,V=0;V<=L;++V){var N=q[V];if(N<0){j[V]=P;continue}for(var H=0;H<=L;++H)E[H].vertices.indexOf(N)<0&&(j[V]=E[H])}for(var re=new m(L,x,z),ae=!!M,g=L+1;g3*(z+1)?m(this,E):this.left.insert(E):this.left=C([E]);else if(E[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?m(this,E):this.right.insert(E):this.right=C([E]);else{var q=s.ge(this.leftPoints,E,L),V=s.ge(this.rightPoints,E,x);this.leftPoints.splice(q,0,E),this.rightPoints.splice(V,0,E)}},h.remove=function(E){var z=this.count-this.leftPoints;if(E[1]3*(z-1))return b(this,E);var V=this.left.remove(E);return V===c?(this.left=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else if(E[0]>this.mid){if(!this.right)return l;var G=this.left?this.left.count:0;if(4*G>3*(z-1))return b(this,E);var V=this.right.remove(E);return V===c?(this.right=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else{if(this.count===1)return this.leftPoints[0]===E?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===E){if(this.left&&this.right){for(var Z=this,j=this.left;j.right;)Z=j,j=j.right;if(Z===this)j.right=this.right;else{var N=this.left,V=this.right;Z.count-=j.count,Z.right=j.left,j.left=N,j.right=V}d(this,j),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return u}for(var N=s.ge(this.leftPoints,E,L);N=0&&E[V][1]>=z;--V){var G=q(E[V]);if(G)return G}}function M(E,z){for(var q=0;qthis.mid){if(this.right){var q=this.right.queryPoint(E,z);if(q)return q}return k(this.rightPoints,E,z)}else return M(this.leftPoints,z)},h.queryInterval=function(E,z,q){if(Ethis.mid&&this.right){var V=this.right.queryInterval(E,z,q);if(V)return V}return zthis.mid?k(this.rightPoints,E,q):M(this.leftPoints,q)};function T(E,z){return E-z}function L(E,z){var q=E[0]-z[0];return q||E[1]-z[1]}function x(E,z){var q=E[1]-z[1];return q||E[0]-z[0]}function C(E){if(E.length===0)return null;for(var z=[],q=0;q>1],G=[],Z=[],j=[],q=0;q13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}}),395:(function(i){function a(o,s,l){return o*(1-l)+s*l}i.exports=a}),2652:(function(i,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},v=l(),m=l(),b=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];i.exports=function(C,S,g,P,E,z){if(S||(S=[0,0,0]),g||(g=[0,0,0]),P||(P=[0,0,0]),E||(E=[0,0,0,1]),z||(z=[0,0,0,1]),!s(v,C)||(u(m,v),m[3]=0,m[7]=0,m[11]=0,m[15]=1,Math.abs(c(m)<1e-8)))return!1;var q=v[3],V=v[7],G=v[11],Z=v[12],j=v[13],N=v[14],H=v[15];if(q!==0||V!==0||G!==0){b[0]=q,b[1]=V,b[2]=G,b[3]=H;var re=f(m,m);if(!re)return!1;h(m,m),M(E,b,m)}else E[0]=E[1]=E[2]=0,E[3]=1;if(S[0]=Z,S[1]=j,S[2]=N,T(p,v),g[0]=d.length(p[0]),d.normalize(p[0],p[0]),P[0]=d.dot(p[0],p[1]),L(p[1],p[1],p[0],1,-P[0]),g[1]=d.length(p[1]),d.normalize(p[1],p[1]),P[0]/=g[1],P[1]=d.dot(p[0],p[2]),L(p[2],p[2],p[0],1,-P[1]),P[2]=d.dot(p[1],p[2]),L(p[2],p[2],p[1],1,-P[2]),g[2]=d.length(p[2]),d.normalize(p[2],p[2]),P[1]/=g[2],P[2]/=g[2],d.cross(k,p[1],p[2]),d.dot(p[0],k)<0)for(var ae=0;ae<3;ae++)g[ae]*=-1,p[ae][0]*=-1,p[ae][1]*=-1,p[ae][2]*=-1;return z[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),z[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),z[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),z[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(z[0]=-z[0]),p[0][2]>p[2][0]&&(z[1]=-z[1]),p[1][0]>p[0][1]&&(z[2]=-z[2]),!0};function M(x,C,S){var g=C[0],P=C[1],E=C[2],z=C[3];return x[0]=S[0]*g+S[4]*P+S[8]*E+S[12]*z,x[1]=S[1]*g+S[5]*P+S[9]*E+S[13]*z,x[2]=S[2]*g+S[6]*P+S[10]*E+S[14]*z,x[3]=S[3]*g+S[7]*P+S[11]*E+S[15]*z,x}function T(x,C){x[0][0]=C[0],x[0][1]=C[1],x[0][2]=C[2],x[1][0]=C[4],x[1][1]=C[5],x[1][2]=C[6],x[2][0]=C[8],x[2][1]=C[9],x[2][2]=C[10]}function L(x,C,S,g,P){x[0]=C[0]*g+S[0]*P,x[1]=C[1]*g+S[1]*P,x[2]=C[2]*g+S[2]*P}}),4335:(function(i){i.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,c=0;c<16;c++)o[c]=s[c]*u;return!0}}),7442:(function(i,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=b(),d=b(),v=b();i.exports=m;function m(M,T,L,x){if(c(T)===0||c(L)===0)return!1;var C=u(T,h.translate,h.scale,h.skew,h.perspective,h.quaternion),S=u(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!C||!S?!1:(s(v.translate,h.translate,d.translate,x),s(v.skew,h.skew,d.skew,x),s(v.scale,h.scale,d.scale,x),s(v.perspective,h.perspective,d.perspective,x),f(v.quaternion,h.quaternion,d.quaternion,x),l(M,v.translate,v.scale,v.skew,v.perspective,v.quaternion),!0)}function b(){return{translate:p(),scale:p(1),skew:p(),perspective:k(),quaternion:k()}}function p(M){return[M||0,M||0,M||0]}function k(){return[0,0,0,1]}}),7182:(function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();i.exports=function(f,h,d,v,m,b){return s.identity(f),s.fromRotationTranslation(f,b,h),f[3]=m[0],f[7]=m[1],f[11]=m[2],f[15]=m[3],s.identity(u),v[2]!==0&&(u[9]=v[2],s.multiply(f,f,u)),v[1]!==0&&(u[9]=0,u[8]=v[1],s.multiply(f,f,u)),v[0]!==0&&(u[8]=0,u[4]=v[0],s.multiply(f,f,u)),s.scale(f,f,d),f}}),1811:(function(i,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),d=o(6582),v=o(7656),m=o(2504),b=o(3536),p=[0,0,0];i.exports=L;function k(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var M=k.prototype;M.recalcMatrix=function(x){var C=this._time,S=s.le(C,x),g=this.computedMatrix;if(!(S<0)){var P=this._components;if(S===C.length-1)for(var E=16*S,z=0;z<16;++z)g[z]=P[E++];else{for(var q=C[S+1]-C[S],E=16*S,V=this.prevMatrix,G=!0,z=0;z<16;++z)V[z]=P[E++];for(var Z=this.nextMatrix,z=0;z<16;++z)Z[z]=P[E++],G=G&&V[z]===Z[z];if(q<1e-6||G)for(var z=0;z<16;++z)g[z]=V[z];else l(g,V,Z,(x-C[S])/q)}var j=this.computedUp;j[0]=g[1],j[1]=g[5],j[2]=g[9],b(j,j);var N=this.computedInverse;u(N,g);var H=this.computedEye,re=N[15];H[0]=N[12]/re,H[1]=N[13]/re,H[2]=N[14]/re;for(var ae=this.computedCenter,_e=Math.exp(this.computedRadius[0]),z=0;z<3;++z)ae[z]=H[z]-g[2+4*z]*_e}},M.idle=function(x){if(!(x1&&s(u[d[p-2]],u[d[p-1]],b)<=0;)p-=1,d.pop();for(d.push(m),p=v.length;p>1&&s(u[v[p-2]],u[v[p-1]],b)>=0;)p-=1,v.pop();v.push(m)}for(var k=new Array(v.length+d.length-2),M=0,f=0,T=d.length;f0;--L)k[M++]=v[L];return k}}),351:(function(i,a,o){"use strict";i.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,d=0,v={shift:!1,alt:!1,control:!1,meta:!1},m=!1;function b(E){var z=!1;return"altKey"in E&&(z=z||E.altKey!==v.alt,v.alt=!!E.altKey),"shiftKey"in E&&(z=z||E.shiftKey!==v.shift,v.shift=!!E.shiftKey),"ctrlKey"in E&&(z=z||E.ctrlKey!==v.control,v.control=!!E.ctrlKey),"metaKey"in E&&(z=z||E.metaKey!==v.meta,v.meta=!!E.metaKey),z}function p(E,z){var q=s.x(z),V=s.y(z);"buttons"in z&&(E=z.buttons|0),(E!==f||q!==h||V!==d||b(z))&&(f=E|0,h=q||0,d=V||0,c&&c(f,h,d,v))}function k(E){p(0,E)}function M(){(f||h||d||v.shift||v.alt||v.meta||v.control)&&(h=d=0,f=0,v.shift=v.alt=v.control=v.meta=!1,c&&c(0,0,0,v))}function T(E){b(E)&&c&&c(f,h,d,v)}function L(E){s.buttons(E)===0?p(0,E):p(f,E)}function x(E){p(f|s.buttons(E),E)}function C(E){p(f&~s.buttons(E),E)}function S(){m||(m=!0,u.addEventListener("mousemove",L),u.addEventListener("mousedown",x),u.addEventListener("mouseup",C),u.addEventListener("mouseleave",k),u.addEventListener("mouseenter",k),u.addEventListener("mouseout",k),u.addEventListener("mouseover",k),u.addEventListener("blur",M),u.addEventListener("keyup",T),u.addEventListener("keydown",T),u.addEventListener("keypress",T),u!==window&&(window.addEventListener("blur",M),window.addEventListener("keyup",T),window.addEventListener("keydown",T),window.addEventListener("keypress",T)))}function g(){m&&(m=!1,u.removeEventListener("mousemove",L),u.removeEventListener("mousedown",x),u.removeEventListener("mouseup",C),u.removeEventListener("mouseleave",k),u.removeEventListener("mouseenter",k),u.removeEventListener("mouseout",k),u.removeEventListener("mouseover",k),u.removeEventListener("blur",M),u.removeEventListener("keyup",T),u.removeEventListener("keydown",T),u.removeEventListener("keypress",T),u!==window&&(window.removeEventListener("blur",M),window.removeEventListener("keyup",T),window.removeEventListener("keydown",T),window.removeEventListener("keypress",T)))}S();var P={element:u};return Object.defineProperties(P,{enabled:{get:function(){return m},set:function(E){E?S():g()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),P}}),24:(function(i){var a={left:0,top:0};i.exports=o;function o(l,u,c){u=u||l.currentTarget||l.srcElement,Array.isArray(c)||(c=[0,0]);var f=l.clientX||0,h=l.clientY||0,d=s(u);return c[0]=f-d.left,c[1]=h-d.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}}),4687:(function(i,a){"use strict";function o(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){var f=c.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(Ee=1,ie[ke++]=v(S[z],M,T,L),z+=re,x>0)for(_e=1,q=S[z],be=ie[ke]=v(q,M,T,L),me=ie[ke+Be],He=ie[ke+Pe],Ht=ie[ke+lt],(be!==me||be!==He||be!==Ht)&&(G=S[z+V],j=S[z+Z],H=S[z+N],h(_e,Ee,q,G,j,H,be,me,He,Ht,M,T,L),at=Se[ke]=Ce++),ke+=1,z+=re,_e=2;_e0)for(_e=1,q=S[z],be=ie[ke]=v(q,M,T,L),me=ie[ke+Be],He=ie[ke+Pe],Ht=ie[ke+lt],(be!==me||be!==He||be!==Ht)&&(G=S[z+V],j=S[z+Z],H=S[z+N],h(_e,Ee,q,G,j,H,be,me,He,Ht,M,T,L),at=Se[ke]=Ce++,Ht!==He&&d(Se[ke+Pe],at,j,H,He,Ht,M,T,L)),ke+=1,z+=re,_e=2;_e0){if(_e=1,ie[ke++]=v(S[z],M,T,L),z+=re,C>0)for(Ee=1,q=S[z],be=ie[ke]=v(q,M,T,L),He=ie[ke+Pe],me=ie[ke+Be],Ht=ie[ke+lt],(be!==He||be!==me||be!==Ht)&&(G=S[z+V],j=S[z+Z],H=S[z+N],h(_e,Ee,q,G,j,H,be,He,me,Ht,M,T,L),at=Se[ke]=Ce++),ke+=1,z+=re,Ee=2;Ee0)for(Ee=1,q=S[z],be=ie[ke]=v(q,M,T,L),He=ie[ke+Pe],me=ie[ke+Be],Ht=ie[ke+lt],(be!==He||be!==me||be!==Ht)&&(G=S[z+V],j=S[z+Z],H=S[z+N],h(_e,Ee,q,G,j,H,be,He,me,Ht,M,T,L),at=Se[ke]=Ce++,Ht!==He&&d(Se[ke+Pe],at,H,G,Ht,He,M,T,L)),ke+=1,z+=re,Ee=2;Ee 0"),typeof f.vertex!="function"&&h("Must specify vertex creation function"),typeof f.cell!="function"&&h("Must specify cell creation function"),typeof f.phase!="function"&&h("Must specify phase function");for(var b=f.getters||[],p=new Array(v),k=0;k=0?p[k]=!0:p[k]=!1;return u(f.vertex,f.cell,f.phase,m,d,p)}}),6199:(function(i,a,o){"use strict";var s=o(1338),l={zero:function(L,x,C,S){var g=L[0],P=C[0];S|=0;var E=0,z=P;for(E=0;E2&&E[1]>2&&S(P.pick(-1,-1).lo(1,1).hi(E[0]-2,E[1]-2),g.pick(-1,-1,0).lo(1,1).hi(E[0]-2,E[1]-2),g.pick(-1,-1,1).lo(1,1).hi(E[0]-2,E[1]-2)),E[1]>2&&(C(P.pick(0,-1).lo(1).hi(E[1]-2),g.pick(0,-1,1).lo(1).hi(E[1]-2)),x(g.pick(0,-1,0).lo(1).hi(E[1]-2))),E[1]>2&&(C(P.pick(E[0]-1,-1).lo(1).hi(E[1]-2),g.pick(E[0]-1,-1,1).lo(1).hi(E[1]-2)),x(g.pick(E[0]-1,-1,0).lo(1).hi(E[1]-2))),E[0]>2&&(C(P.pick(-1,0).lo(1).hi(E[0]-2),g.pick(-1,0,0).lo(1).hi(E[0]-2)),x(g.pick(-1,0,1).lo(1).hi(E[0]-2))),E[0]>2&&(C(P.pick(-1,E[1]-1).lo(1).hi(E[0]-2),g.pick(-1,E[1]-1,0).lo(1).hi(E[0]-2)),x(g.pick(-1,E[1]-1,1).lo(1).hi(E[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(E[0]-1,0,0,0),g.set(E[0]-1,0,1,0),g.set(0,E[1]-1,0,0),g.set(0,E[1]-1,1,0),g.set(E[0]-1,E[1]-1,0,0),g.set(E[0]-1,E[1]-1,1,0),g}}function T(L){var x=L.join(),E=v[x];if(E)return E;for(var C=L.length,S=[b,p],g=1;g<=C;++g)S.push(k(g));var P=M,E=P.apply(void 0,S);return v[x]=E,E}i.exports=function(x,C,S){if(Array.isArray(S)||(typeof S=="string"?S=s(C.dimension,S):S=s(C.dimension,"clamp")),C.size===0)return x;if(C.dimension===0)return x.set(0),x;var g=T(S);return g(x,C)}}),4317:(function(i){"use strict";function a(c,f){var h=Math.floor(f),d=f-h,v=0<=h&&h0;){j<64?(x=j,j=0):(x=64,j-=64);for(var N=v[1]|0;N>0;){N<64?(C=N,N=0):(C=64,N-=64),p=G+j*g+N*P,T=Z+j*z+N*q;var H=0,re=0,ae=0,_e=E,Ee=g-S*E,Ce=P-x*g,ge=V,ie=z-S*V,Se=q-x*z;for(ae=0;ae0;){q<64?(x=q,q=0):(x=64,q-=64);for(var V=v[0]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),p=E+q*S+V*C,T=z+q*P+V*g;var G=0,Z=0,j=S,N=C-x*S,H=P,re=g-x*P;for(Z=0;Z0;){Z<64?(C=Z,Z=0):(C=64,Z-=64);for(var j=v[0]|0;j>0;){j<64?(L=j,j=0):(L=64,j-=64);for(var N=v[1]|0;N>0;){N<64?(x=N,N=0):(x=64,N-=64),p=V+Z*P+j*S+N*g,T=G+Z*q+j*E+N*z;var H=0,re=0,ae=0,_e=P,Ee=S-C*P,Ce=g-L*S,ge=q,ie=E-C*q,Se=z-L*E;for(ae=0;aek;){H=0,re=G-x;t:for(j=0;j_e)break t;re+=E,H+=z}for(H=G,re=G-x,j=0;j>1,N=j-V,H=j+V,re=G,ae=N,_e=j,Ee=H,Ce=Z,ge=M+1,ie=T-1,Se=!0,ke,be,Be,Le,me,Pe,ce,He,lt,mt=0,Ht=0,at=0,ct,ar,Vt,rr,tt,je,Ue,Ae,rt,St,Tt,dt,Et,pt,jt,or,mr=P,Ar=b(mr),ei=b(mr);ar=C*re,Vt=C*ae,or=x;e:for(ct=0;ct0){be=re,re=ae,ae=be;break e}if(at<0)break e;or+=z}ar=C*Ee,Vt=C*Ce,or=x;e:for(ct=0;ct0){be=Ee,Ee=Ce,Ce=be;break e}if(at<0)break e;or+=z}ar=C*re,Vt=C*_e,or=x;e:for(ct=0;ct0){be=re,re=_e,_e=be;break e}if(at<0)break e;or+=z}ar=C*ae,Vt=C*_e,or=x;e:for(ct=0;ct0){be=ae,ae=_e,_e=be;break e}if(at<0)break e;or+=z}ar=C*re,Vt=C*Ee,or=x;e:for(ct=0;ct0){be=re,re=Ee,Ee=be;break e}if(at<0)break e;or+=z}ar=C*_e,Vt=C*Ee,or=x;e:for(ct=0;ct0){be=_e,_e=Ee,Ee=be;break e}if(at<0)break e;or+=z}ar=C*ae,Vt=C*Ce,or=x;e:for(ct=0;ct0){be=ae,ae=Ce,Ce=be;break e}if(at<0)break e;or+=z}ar=C*ae,Vt=C*_e,or=x;e:for(ct=0;ct0){be=ae,ae=_e,_e=be;break e}if(at<0)break e;or+=z}ar=C*Ee,Vt=C*Ce,or=x;e:for(ct=0;ct0){be=Ee,Ee=Ce,Ce=be;break e}if(at<0)break e;or+=z}for(ar=C*re,Vt=C*ae,rr=C*_e,tt=C*Ee,je=C*Ce,Ue=C*G,Ae=C*j,rt=C*Z,jt=0,or=x,ct=0;ct0)ie--;else if(at<0){for(ar=C*Pe,Vt=C*ge,rr=C*ie,or=x,ct=0;ct0)for(;;){ce=x+ie*C,jt=0;e:for(ct=0;ct0){if(--ieZ){e:for(;;){for(ce=x+ge*C,jt=0,or=x,ct=0;ct1&&k?T(p,k[0],k[1]):T(p)}var d={"uint32,1,0":function(m,b){return function(p){var k=p.data,M=p.offset|0,T=p.shape,L=p.stride,x=L[0]|0,C=T[0]|0,S=L[1]|0,g=T[1]|0,P=S,E=S,z=1;C<=32?m(0,C-1,k,M,x,S,C,g,P,E,z):b(0,C-1,k,M,x,S,C,g,P,E,z)}}};function v(m,b){var p=[b,m].join(","),k=d[p],M=c(m,b),T=h(m,b,M);return k(M,T)}i.exports=v}),446:(function(i,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,d=[f,h],v=d.join(":"),m=l[v];return m||(l[v]=m=s(f,h)),m(c),c}i.exports=u}),9618:(function(i,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(b,p){return b[0]-p[0]}function c(){var b=this.stride,p=new Array(b.length),k;for(k=0;k=0&&(S=x|0,C+=P*S,g-=S),new M(this.data,g,P,C)},T.step=function(x){var C=this.shape[0],S=this.stride[0],g=this.offset,P=0,E=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(g+=S*(C-1),C=E(-C/P)):C=E(C/P),S*=P),new M(this.data,C,S,g)},T.transpose=function(x){x=x===void 0?0:x|0;var C=this.shape,S=this.stride;return new M(this.data,C[x],S[x],this.offset)},T.pick=function(x){var C=[],S=[],g=this.offset;typeof x=="number"&&x>=0?g=g+this.stride[0]*x|0:(C.push(this.shape[0]),S.push(this.stride[0]));var P=p[C.length+1];return P(this.data,C,S,g)},function(x,C,S,g){return new M(x,C[0],S[0],g)}},2:function(b,p,k){function M(L,x,C,S,g,P){this.data=L,this.shape=[x,C],this.stride=[S,g],this.offset=P|0}var T=M.prototype;return T.dtype=b,T.dimension=2,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(T,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),T.set=function(x,C,S){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C,S):this.data[this.offset+this.stride[0]*x+this.stride[1]*C]=S},T.get=function(x,C){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C):this.data[this.offset+this.stride[0]*x+this.stride[1]*C]},T.index=function(x,C){return this.offset+this.stride[0]*x+this.stride[1]*C},T.hi=function(x,C){return new M(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,this.stride[0],this.stride[1],this.offset)},T.lo=function(x,C){var S=this.offset,g=0,P=this.shape[0],E=this.shape[1],z=this.stride[0],q=this.stride[1];return typeof x=="number"&&x>=0&&(g=x|0,S+=z*g,P-=g),typeof C=="number"&&C>=0&&(g=C|0,S+=q*g,E-=g),new M(this.data,P,E,z,q,S)},T.step=function(x,C){var S=this.shape[0],g=this.shape[1],P=this.stride[0],E=this.stride[1],z=this.offset,q=0,V=Math.ceil;return typeof x=="number"&&(q=x|0,q<0?(z+=P*(S-1),S=V(-S/q)):S=V(S/q),P*=q),typeof C=="number"&&(q=C|0,q<0?(z+=E*(g-1),g=V(-g/q)):g=V(g/q),E*=q),new M(this.data,S,g,P,E,z)},T.transpose=function(x,C){x=x===void 0?0:x|0,C=C===void 0?1:C|0;var S=this.shape,g=this.stride;return new M(this.data,S[x],S[C],g[x],g[C],this.offset)},T.pick=function(x,C){var S=[],g=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(S.push(this.shape[0]),g.push(this.stride[0])),typeof C=="number"&&C>=0?P=P+this.stride[1]*C|0:(S.push(this.shape[1]),g.push(this.stride[1]));var E=p[S.length+1];return E(this.data,S,g,P)},function(x,C,S,g){return new M(x,C[0],C[1],S[0],S[1],g)}},3:function(b,p,k){function M(L,x,C,S,g,P,E,z){this.data=L,this.shape=[x,C,S],this.stride=[g,P,E],this.offset=z|0}var T=M.prototype;return T.dtype=b,T.dimension=3,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(T,"order",{get:function(){var x=Math.abs(this.stride[0]),C=Math.abs(this.stride[1]),S=Math.abs(this.stride[2]);return x>C?C>S?[2,1,0]:x>S?[1,2,0]:[1,0,2]:x>S?[2,0,1]:S>C?[0,1,2]:[0,2,1]}}),T.set=function(x,C,S,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S,g):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S]=g},T.get=function(x,C,S){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S]},T.index=function(x,C,S){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S},T.hi=function(x,C,S){return new M(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(x,C,S){var g=this.offset,P=0,E=this.shape[0],z=this.shape[1],q=this.shape[2],V=this.stride[0],G=this.stride[1],Z=this.stride[2];return typeof x=="number"&&x>=0&&(P=x|0,g+=V*P,E-=P),typeof C=="number"&&C>=0&&(P=C|0,g+=G*P,z-=P),typeof S=="number"&&S>=0&&(P=S|0,g+=Z*P,q-=P),new M(this.data,E,z,q,V,G,Z,g)},T.step=function(x,C,S){var g=this.shape[0],P=this.shape[1],E=this.shape[2],z=this.stride[0],q=this.stride[1],V=this.stride[2],G=this.offset,Z=0,j=Math.ceil;return typeof x=="number"&&(Z=x|0,Z<0?(G+=z*(g-1),g=j(-g/Z)):g=j(g/Z),z*=Z),typeof C=="number"&&(Z=C|0,Z<0?(G+=q*(P-1),P=j(-P/Z)):P=j(P/Z),q*=Z),typeof S=="number"&&(Z=S|0,Z<0?(G+=V*(E-1),E=j(-E/Z)):E=j(E/Z),V*=Z),new M(this.data,g,P,E,z,q,V,G)},T.transpose=function(x,C,S){x=x===void 0?0:x|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0;var g=this.shape,P=this.stride;return new M(this.data,g[x],g[C],g[S],P[x],P[C],P[S],this.offset)},T.pick=function(x,C,S){var g=[],P=[],E=this.offset;typeof x=="number"&&x>=0?E=E+this.stride[0]*x|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof C=="number"&&C>=0?E=E+this.stride[1]*C|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof S=="number"&&S>=0?E=E+this.stride[2]*S|0:(g.push(this.shape[2]),P.push(this.stride[2]));var z=p[g.length+1];return z(this.data,g,P,E)},function(x,C,S,g){return new M(x,C[0],C[1],C[2],S[0],S[1],S[2],g)}},4:function(b,p,k){function M(L,x,C,S,g,P,E,z,q,V){this.data=L,this.shape=[x,C,S,g],this.stride=[P,E,z,q],this.offset=V|0}var T=M.prototype;return T.dtype=b,T.dimension=4,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(T,"order",{get:k}),T.set=function(x,C,S,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g]=P},T.get=function(x,C,S,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g):this.data[this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g]},T.index=function(x,C,S,g){return this.offset+this.stride[0]*x+this.stride[1]*C+this.stride[2]*S+this.stride[3]*g},T.hi=function(x,C,S,g){return new M(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,typeof g!="number"||g<0?this.shape[3]:g|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},T.lo=function(x,C,S,g){var P=this.offset,E=0,z=this.shape[0],q=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.stride[0],j=this.stride[1],N=this.stride[2],H=this.stride[3];return typeof x=="number"&&x>=0&&(E=x|0,P+=Z*E,z-=E),typeof C=="number"&&C>=0&&(E=C|0,P+=j*E,q-=E),typeof S=="number"&&S>=0&&(E=S|0,P+=N*E,V-=E),typeof g=="number"&&g>=0&&(E=g|0,P+=H*E,G-=E),new M(this.data,z,q,V,G,Z,j,N,H,P)},T.step=function(x,C,S,g){var P=this.shape[0],E=this.shape[1],z=this.shape[2],q=this.shape[3],V=this.stride[0],G=this.stride[1],Z=this.stride[2],j=this.stride[3],N=this.offset,H=0,re=Math.ceil;return typeof x=="number"&&(H=x|0,H<0?(N+=V*(P-1),P=re(-P/H)):P=re(P/H),V*=H),typeof C=="number"&&(H=C|0,H<0?(N+=G*(E-1),E=re(-E/H)):E=re(E/H),G*=H),typeof S=="number"&&(H=S|0,H<0?(N+=Z*(z-1),z=re(-z/H)):z=re(z/H),Z*=H),typeof g=="number"&&(H=g|0,H<0?(N+=j*(q-1),q=re(-q/H)):q=re(q/H),j*=H),new M(this.data,P,E,z,q,V,G,Z,j,N)},T.transpose=function(x,C,S,g){x=x===void 0?0:x|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0,g=g===void 0?3:g|0;var P=this.shape,E=this.stride;return new M(this.data,P[x],P[C],P[S],P[g],E[x],E[C],E[S],E[g],this.offset)},T.pick=function(x,C,S,g){var P=[],E=[],z=this.offset;typeof x=="number"&&x>=0?z=z+this.stride[0]*x|0:(P.push(this.shape[0]),E.push(this.stride[0])),typeof C=="number"&&C>=0?z=z+this.stride[1]*C|0:(P.push(this.shape[1]),E.push(this.stride[1])),typeof S=="number"&&S>=0?z=z+this.stride[2]*S|0:(P.push(this.shape[2]),E.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(P.push(this.shape[3]),E.push(this.stride[3]));var q=p[P.length+1];return q(this.data,P,E,z)},function(x,C,S,g){return new M(x,C[0],C[1],C[2],C[3],S[0],S[1],S[2],S[3],g)}},5:function(p,k,M){function T(x,C,S,g,P,E,z,q,V,G,Z,j){this.data=x,this.shape=[C,S,g,P,E],this.stride=[z,q,V,G,Z],this.offset=j|0}var L=T.prototype;return L.dtype=p,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:M}),L.set=function(C,S,g,P,E,z){return p==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E,z):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E]=z},L.get=function(C,S,g,P,E){return p==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E]},L.index=function(C,S,g,P,E){return this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*g+this.stride[3]*P+this.stride[4]*E},L.hi=function(C,S,g,P,E){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:C|0,typeof S!="number"||S<0?this.shape[1]:S|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof E!="number"||E<0?this.shape[4]:E|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(C,S,g,P,E){var z=this.offset,q=0,V=this.shape[0],G=this.shape[1],Z=this.shape[2],j=this.shape[3],N=this.shape[4],H=this.stride[0],re=this.stride[1],ae=this.stride[2],_e=this.stride[3],Ee=this.stride[4];return typeof C=="number"&&C>=0&&(q=C|0,z+=H*q,V-=q),typeof S=="number"&&S>=0&&(q=S|0,z+=re*q,G-=q),typeof g=="number"&&g>=0&&(q=g|0,z+=ae*q,Z-=q),typeof P=="number"&&P>=0&&(q=P|0,z+=_e*q,j-=q),typeof E=="number"&&E>=0&&(q=E|0,z+=Ee*q,N-=q),new T(this.data,V,G,Z,j,N,H,re,ae,_e,Ee,z)},L.step=function(C,S,g,P,E){var z=this.shape[0],q=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.shape[4],j=this.stride[0],N=this.stride[1],H=this.stride[2],re=this.stride[3],ae=this.stride[4],_e=this.offset,Ee=0,Ce=Math.ceil;return typeof C=="number"&&(Ee=C|0,Ee<0?(_e+=j*(z-1),z=Ce(-z/Ee)):z=Ce(z/Ee),j*=Ee),typeof S=="number"&&(Ee=S|0,Ee<0?(_e+=N*(q-1),q=Ce(-q/Ee)):q=Ce(q/Ee),N*=Ee),typeof g=="number"&&(Ee=g|0,Ee<0?(_e+=H*(V-1),V=Ce(-V/Ee)):V=Ce(V/Ee),H*=Ee),typeof P=="number"&&(Ee=P|0,Ee<0?(_e+=re*(G-1),G=Ce(-G/Ee)):G=Ce(G/Ee),re*=Ee),typeof E=="number"&&(Ee=E|0,Ee<0?(_e+=ae*(Z-1),Z=Ce(-Z/Ee)):Z=Ce(Z/Ee),ae*=Ee),new T(this.data,z,q,V,G,Z,j,N,H,re,ae,_e)},L.transpose=function(C,S,g,P,E){C=C===void 0?0:C|0,S=S===void 0?1:S|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,E=E===void 0?4:E|0;var z=this.shape,q=this.stride;return new T(this.data,z[C],z[S],z[g],z[P],z[E],q[C],q[S],q[g],q[P],q[E],this.offset)},L.pick=function(C,S,g,P,E){var z=[],q=[],V=this.offset;typeof C=="number"&&C>=0?V=V+this.stride[0]*C|0:(z.push(this.shape[0]),q.push(this.stride[0])),typeof S=="number"&&S>=0?V=V+this.stride[1]*S|0:(z.push(this.shape[1]),q.push(this.stride[1])),typeof g=="number"&&g>=0?V=V+this.stride[2]*g|0:(z.push(this.shape[2]),q.push(this.stride[2])),typeof P=="number"&&P>=0?V=V+this.stride[3]*P|0:(z.push(this.shape[3]),q.push(this.stride[3])),typeof E=="number"&&E>=0?V=V+this.stride[4]*E|0:(z.push(this.shape[4]),q.push(this.stride[4]));var G=k[z.length+1];return G(this.data,z,q,V)},function(C,S,g,P){return new T(C,S[0],S[1],S[2],S[3],S[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var k=p===-1?"T":String(p),M=f[k];return p===-1?M(b):p===0?M(b,v[b][0]):M(b,v[b],c)}function d(b){if(s(b))return"buffer";if(l)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var v={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function m(b,p,k,M){if(b===void 0){var g=v.array[0];return g([])}else typeof b=="number"&&(b=[b]);p===void 0&&(p=[b.length]);var T=p.length;if(k===void 0){k=new Array(T);for(var L=T-1,x=1;L>=0;--L)k[L]=x,x*=p[L]}if(M===void 0){M=0;for(var L=0;L>>0;i.exports=c;function c(f,h){if(isNaN(f)||isNaN(h))return NaN;if(f===h)return f;if(f===0)return h<0?-l:l;var d=s.hi(f),v=s.lo(f);return h>f==f>0?v===u?(d+=1,v=0):v+=1:v===0?(v=u,d-=1):v-=1,s.pack(v,d)}}),8406:(function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),d=c===void 0?o:c,v=0;vd)for(var z=h[p],q=1/Math.sqrt(S*P),E=0;E<3;++E){var V=(E+1)%3,G=(E+2)%3;z[E]+=q*(g[V]*C[G]-g[G]*C[V])}}for(var v=0;vd)for(var q=1/Math.sqrt(Z),E=0;E<3;++E)z[E]*=q;else for(var E=0;E<3;++E)z[E]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),d=c===void 0?s:c,v=0;vd?L=1/Math.sqrt(L):L=0;for(var p=0;p<3;++p)T[p]*=L;h[v]=T}return h}}),4081:(function(i){"use strict";i.exports=a;function a(o,s,l,u,c,f,h,d,v,m){var b=s+f+m;if(p>0){var p=Math.sqrt(b+1);o[0]=.5*(h-v)/p,o[1]=.5*(d-u)/p,o[2]=.5*(l-f)/p,o[3]=.5*p}else{var k=Math.max(s,f,m),p=Math.sqrt(2*k-b+1);s>=k?(o[0]=.5*p,o[1]=.5*(c+l)/p,o[2]=.5*(d+u)/p,o[3]=.5*(h-v)/p):f>=k?(o[0]=.5*(l+c)/p,o[1]=.5*p,o[2]=.5*(v+h)/p,o[3]=.5*(d-u)/p):(o[0]=.5*(u+d)/p,o[1]=.5*(h+v)/p,o[2]=.5*p,o[3]=.5*(l-c)/p)}return o}}),9977:(function(i,a,o){"use strict";i.exports=p;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(k,M,T){return Math.sqrt(Math.pow(k,2)+Math.pow(M,2)+Math.pow(T,2))}function d(k,M,T,L){return Math.sqrt(Math.pow(k,2)+Math.pow(M,2)+Math.pow(T,2)+Math.pow(L,2))}function v(k,M){var T=M[0],L=M[1],x=M[2],C=M[3],S=d(T,L,x,C);S>1e-6?(k[0]=T/S,k[1]=L/S,k[2]=x/S,k[3]=C/S):(k[0]=k[1]=k[2]=0,k[3]=1)}function m(k,M,T){this.radius=s([T]),this.center=s(M),this.rotation=s(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=m.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var M=this.computedRotation;v(M,M);var T=this.computedMatrix;u(T,M);var L=this.computedCenter,x=this.computedEye,C=this.computedUp,S=Math.exp(this.computedRadius[0]);x[0]=L[0]+S*T[2],x[1]=L[1]+S*T[6],x[2]=L[2]+S*T[10],C[0]=T[1],C[1]=T[5],C[2]=T[9];for(var g=0;g<3;++g){for(var P=0,E=0;E<3;++E)P+=T[g+4*E]*x[E];T[12+g]=-P}},b.getMatrix=function(k,M){this.recalcMatrix(k);var T=this.computedMatrix;if(M){for(var L=0;L<16;++L)M[L]=T[L];return M}return T},b.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},b.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},b.pan=function(k,M,T,L){M=M||0,T=T||0,L=L||0,this.recalcMatrix(k);var x=this.computedMatrix,C=x[1],S=x[5],g=x[9],P=h(C,S,g);C/=P,S/=P,g/=P;var E=x[0],z=x[4],q=x[8],V=E*C+z*S+q*g;E-=C*V,z-=S*V,q-=g*V;var G=h(E,z,q);E/=G,z/=G,q/=G;var Z=x[2],j=x[6],N=x[10],H=Z*C+j*S+N*g,re=Z*E+j*z+N*q;Z-=H*C+re*E,j-=H*S+re*z,N-=H*g+re*q;var ae=h(Z,j,N);Z/=ae,j/=ae,N/=ae;var _e=E*M+C*T,Ee=z*M+S*T,Ce=q*M+g*T;this.center.move(k,_e,Ee,Ce);var ge=Math.exp(this.computedRadius[0]);ge=Math.max(1e-4,ge+L),this.radius.set(k,Math.log(ge))},b.rotate=function(k,M,T,L){this.recalcMatrix(k),M=M||0,T=T||0;var x=this.computedMatrix,C=x[0],S=x[4],g=x[8],P=x[1],E=x[5],z=x[9],q=x[2],V=x[6],G=x[10],Z=M*C+T*P,j=M*S+T*E,N=M*g+T*z,H=-(V*N-G*j),re=-(G*Z-q*N),ae=-(q*j-V*Z),_e=Math.sqrt(Math.max(0,1-Math.pow(H,2)-Math.pow(re,2)-Math.pow(ae,2))),Ee=d(H,re,ae,_e);Ee>1e-6?(H/=Ee,re/=Ee,ae/=Ee,_e/=Ee):(H=re=ae=0,_e=1);var Ce=this.computedRotation,ge=Ce[0],ie=Ce[1],Se=Ce[2],ke=Ce[3],be=ge*_e+ke*H+ie*ae-Se*re,Be=ie*_e+ke*re+Se*H-ge*ae,Le=Se*_e+ke*ae+ge*re-ie*H,me=ke*_e-ge*H-ie*re-Se*ae;if(L){H=q,re=V,ae=G;var Pe=Math.sin(L)/h(H,re,ae);H*=Pe,re*=Pe,ae*=Pe,_e=Math.cos(M),be=be*_e+me*H+Be*ae-Le*re,Be=Be*_e+me*re+Le*H-be*ae,Le=Le*_e+me*ae+be*re-Be*H,me=me*_e-be*H-Be*re-Le*ae}var ce=d(be,Be,Le,me);ce>1e-6?(be/=ce,Be/=ce,Le/=ce,me/=ce):(be=Be=Le=0,me=1),this.rotation.set(k,be,Be,Le,me)},b.lookAt=function(k,M,T,L){this.recalcMatrix(k),T=T||this.computedCenter,M=M||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;l(x,M,T,L);var C=this.computedRotation;f(C,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),v(C,C),this.rotation.set(k,C[0],C[1],C[2],C[3]);for(var S=0,g=0;g<3;++g)S+=Math.pow(T[g]-M[g],2);this.radius.set(k,.5*Math.log(Math.max(S,1e-6))),this.center.set(k,T[0],T[1],T[2])},b.translate=function(k,M,T,L){this.center.move(k,M||0,T||0,L||0)},b.setMatrix=function(k,M){var T=this.computedRotation;f(T,M[0],M[1],M[2],M[4],M[5],M[6],M[8],M[9],M[10]),v(T,T),this.rotation.set(k,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;c(L,M);var x=L[15];if(Math.abs(x)>1e-6){var C=L[12]/x,S=L[13]/x,g=L[14]/x;this.recalcMatrix(k);var P=Math.exp(this.computedRadius[0]);this.center.set(k,C-L[2]*P,S-L[6]*P,g-L[10]*P),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},b.setDistance=function(k,M){M>0&&this.radius.set(k,Math.log(M))},b.setDistanceLimits=function(k,M){k>0?k=Math.log(k):k=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=M},b.getDistanceLimits=function(k){var M=this.radius.bounds;return k?(k[0]=Math.exp(M[0][0]),k[1]=Math.exp(M[1][0]),k):[Math.exp(M[0][0]),Math.exp(M[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(k){var M=this.lastT(),T=k.center;T&&this.center.set(M,T[0],T[1],T[2]);var L=k.rotation;L&&this.rotation.set(M,L[0],L[1],L[2],L[3]);var x=k.distance;x&&x>0&&this.radius.set(M,Math.log(x)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function p(k){k=k||{};var M=k.center||[0,0,0],T=k.rotation||[0,0,0,1],L=k.radius||1;M=[].slice.call(M,0,3),T=[].slice.call(T,0,4),v(T,T);var x=new m(T,M,Math.log(L));return x.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&x.lookAt(0,k.eye,k.center,k.up),x}}),1371:(function(i,a,o){"use strict";var s=o(3233);i.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}}),3202:(function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}}),3088:(function(i,a,o){"use strict";i.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,d=[new Array(f),new Array(f)],v=0;v0){z=d[G][P][0],V=G;break}q=z[V^1];for(var Z=0;Z<2;++Z)for(var j=d[Z][P],N=0;N0&&(z=H,q=re,V=Z)}return E||z&&p(z,V),q}function M(g,P){var E=d[P][g][0],z=[g];p(E,P);for(var q=E[P^1],V=P;;){for(;q!==g;)z.push(q),q=k(z[z.length-2],q,!1);if(d[0][g].length+d[1][g].length===0)break;var G=z[z.length-1],Z=g,j=z[1],N=k(G,Z,!0);if(s(c[G],c[Z],c[j],c[N])<0)break;z.push(g),q=k(G,Z)}return z}function T(g,P){return P[1]===P[P.length-1]}for(var v=0;v0;){var C=d[0][v].length,S=M(v,L);T(x,S)?x.push.apply(x,S):(x.length>0&&b.push(x),x=S)}x.length>0&&b.push(x)}return b}}),5609:(function(i,a,o){"use strict";i.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),d=new Array(c.length),v=[],m=0;m0;){var p=v.pop();h[p]=!1;for(var k=f[p],m=0;m0}C=C.filter(S);for(var g=C.length,P=new Array(g),E=new Array(g),x=0;x0;){var ce=Le.pop(),He=Ee[ce];h(He,function(ct,ar){return ct-ar});var lt=He.length,mt=me[ce],Ht;if(mt===0){var j=C[ce];Ht=[j]}for(var x=0;x=0)&&(me[at]=mt^1,Le.push(at),mt===0)){var j=C[at];Be(j)||(j.reverse(),Ht.push(j))}}mt===0&&Pe.push(Ht)}return Pe}}),5085:(function(i,a,o){i.exports=k;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(M){return function(T,L){var x=M[T];return x?!!x.queryPoint(L,f):!1}}function d(M){for(var T={},L=0;L0&&T[x]===L[0])C=M[x-1];else return 1;for(var S=1;C;){var g=C.key,P=s(L,g[0],g[1]);if(g[0][0]0)S=-1,C=C.right;else return 0;else if(P>0)C=C.left;else if(P<0)S=1,C=C.right;else return 0}return S}}function m(M){return 1}function b(M){return function(L){return M(L[0],L[1])?0:1}}function p(M,T){return function(x){return M(x[0],x[1])?0:T(x)}}function k(M){for(var T=M.length,L=[],x=[],C=0,S=0;S=m?(g=1,E=m+2*k+T):(g=-k/m,E=k*g+T)):(g=0,M>=0?(P=0,E=T):-M>=p?(P=1,E=p+2*M+T):(P=-M/p,E=M*P+T));else if(P<0)P=0,k>=0?(g=0,E=T):-k>=m?(g=1,E=m+2*k+T):(g=-k/m,E=k*g+T);else{var z=1/S;g*=z,P*=z,E=g*(m*g+b*P+2*k)+P*(b*g+p*P+2*M)+T}else{var q,V,G,Z;g<0?(q=b+k,V=p+M,V>q?(G=V-q,Z=m-2*b+p,G>=Z?(g=1,P=0,E=m+2*k+T):(g=G/Z,P=1-g,E=g*(m*g+b*P+2*k)+P*(b*g+p*P+2*M)+T)):(g=0,V<=0?(P=1,E=p+2*M+T):M>=0?(P=0,E=T):(P=-M/p,E=M*P+T))):P<0?(q=b+M,V=m+k,V>q?(G=V-q,Z=m-2*b+p,G>=Z?(P=1,g=0,E=p+2*M+T):(P=G/Z,g=1-P,E=g*(m*g+b*P+2*k)+P*(b*g+p*P+2*M)+T)):(P=0,V<=0?(g=1,E=m+2*k+T):k>=0?(g=0,E=T):(g=-k/m,E=k*g+T))):(G=p+M-b-k,G<=0?(g=0,P=1,E=p+2*M+T):(Z=m-2*b+p,G>=Z?(g=1,P=0,E=m+2*k+T):(g=G/Z,P=1-g,E=g*(m*g+b*P+2*k)+P*(b*g+p*P+2*M)+T)))}for(var j=1-g-P,v=0;v0){var p=f[d-1];if(s(m,p)===0&&u(p)!==b){d-=1;continue}}f[d++]=m}}return f.length=d,f}}),3233:(function(i){"use strict";var a="",o;i.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var c=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=c)return a.substr(0,c);for(;c>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,c),a}}),3025:(function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}),7004:(function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,c=s-2;c>=0;--c){var f=l,h=o[c];l=f+h;var d=l-f,v=h-d;v&&(o[--u]=l,l=v)}for(var m=0,c=u;c0){if(V<=0)return G;Z=q+V}else if(q<0){if(V>=0)return G;Z=-(q+V)}else return G;var j=d*Z;return G>=j||G<=-j?G:M(P,E,z)},function(P,E,z,q){var V=P[0]-q[0],G=E[0]-q[0],Z=z[0]-q[0],j=P[1]-q[1],N=E[1]-q[1],H=z[1]-q[1],re=P[2]-q[2],ae=E[2]-q[2],_e=z[2]-q[2],Ee=G*H,Ce=Z*N,ge=Z*j,ie=V*H,Se=V*N,ke=G*j,be=re*(Ee-Ce)+ae*(ge-ie)+_e*(Se-ke),Be=(Math.abs(Ee)+Math.abs(Ce))*Math.abs(re)+(Math.abs(ge)+Math.abs(ie))*Math.abs(ae)+(Math.abs(Se)+Math.abs(ke))*Math.abs(_e),Le=v*Be;return be>Le||-be>Le?be:T(P,E,z,q)}];function x(g){var P=L[g.length];return P||(P=L[g.length]=k(g.length)),P.apply(void 0,g)}function C(g,P,E,z,q,V,G){return function(j,N,H,re,ae){switch(arguments.length){case 0:case 1:return 0;case 2:return z(j,N);case 3:return q(j,N,H);case 4:return V(j,N,H,re);case 5:return G(j,N,H,re,ae)}for(var _e=new Array(arguments.length),Ee=0;Ee0&&m>0||v<0&&m<0)return!1;var b=s(h,c,f),p=s(d,c,f);return b>0&&p>0||b<0&&p<0?!1:v===0&&m===0&&b===0&&p===0?l(c,f,h,d):!0}}),8545:(function(i){"use strict";i.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,d=s-f,v=d+h;return v?[v,u]:[u]}function o(s,l){var u=s.length|0,c=l.length|0;if(u===1&&c===1)return a(s[0],-l[0]);var f=u+c,h=new Array(f),d=0,v=0,m=0,b=Math.abs,p=s[v],k=b(p),M=-l[m],T=b(M),L,x;k=c?(L=p,v+=1,v=c?(L=p,v+=1,v>1,M=f[2*k+1];if(M===m)return k;m>1,M=f[2*k+1];if(M===m)return k;m>1,M=f[2*k+1];if(M===m)return k;m>1,M=f[2*k+1];if(M===m)return k;m>1,Z=d(P[G],E);Z<=0?(Z===0&&(V=G),z=G+1):Z>0&&(q=G-1)}return V}s=p;function k(P,E){for(var z=new Array(P.length),q=0,V=z.length;q=P.length||d(P[Ee],G)!==0););}return z}s=k;function M(P,E){if(!E)return k(b(L(P,0)),P,0);for(var z=new Array(E),q=0;q>>H&1&&N.push(V[H]);E.push(N)}return m(E)}s=T;function L(P,E){if(E<0)return[];for(var z=[],q=(1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}}),2014:(function(i,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var P=0,E=Math.max,z=0,q=g.length;z>1,G=h(g[V],P);G<=0?(G===0&&(q=V),E=V+1):G>0&&(z=V-1)}return q}a.findCell=b;function p(g,P){for(var E=new Array(g.length),z=0,q=E.length;z=g.length||h(g[_e],V)!==0););}return E}a.incidence=p;function k(g,P){if(!P)return p(m(T(g,0)),g,0);for(var E=new Array(P),z=0;z>>N&1&&j.push(q[N]);P.push(j)}return v(P)}a.explode=M;function T(g,P){if(P<0)return[];for(var E=[],z=(1<>1:(ie>>1)-1}function z(ie){for(var Se=P(ie);;){var ke=Se,be=2*ie+1,Be=2*(ie+1),Le=ie;if(be0;){var ke=E(ie);if(ke>=0){var be=P(ke);if(Se0){var ie=j[0];return g(0,re-1),re-=1,z(0),ie}return-1}function G(ie,Se){var ke=j[ie];return k[ke]===Se?ie:(k[ke]=-1/0,q(ie),V(),k[ke]=Se,re+=1,q(re-1))}function Z(ie){if(!M[ie]){M[ie]=!0;var Se=b[ie],ke=p[ie];b[ke]>=0&&(b[ke]=Se),p[Se]>=0&&(p[Se]=ke),N[Se]>=0&&G(N[Se],S(Se)),N[ke]>=0&&G(N[ke],S(ke))}}for(var j=[],N=new Array(v),T=0;T>1;T>=0;--T)z(T);for(;;){var ae=V();if(ae<0||k[ae]>d)break;Z(ae)}for(var _e=[],T=0;T=0&&ke>=0&&Se!==ke){var be=N[Se],Be=N[ke];be!==Be&&ge.push([be,Be])}}),l.unique(l.normalize(ge)),{positions:_e,edges:ge}}}),1303:(function(i,a,o){"use strict";i.exports=u;var s=o(3250);function l(c,f){var h,d;if(f[0][0]f[1][0])h=f[1],d=f[0];else{var v=Math.min(c[0][1],c[1][1]),m=Math.max(c[0][1],c[1][1]),b=Math.min(f[0][1],f[1][1]),p=Math.max(f[0][1],f[1][1]);return mp?v-p:m-p}var k,M;c[0][1]f[1][0])h=f[1],d=f[0];else return l(f,c);var v,m;if(c[0][0]c[1][0])v=c[1],m=c[0];else return-l(c,f);var b=s(h,d,m),p=s(h,d,v);if(b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;if(b=s(m,v,d),p=s(m,v,h),b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;return d[0]-m[0]}}),4209:(function(i,a,o){"use strict";i.exports=p;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(k,M,T){this.slabs=k,this.coordinates=M,this.horizontal=T}var h=f.prototype;function d(k,M){return k.y-M}function v(k,M){for(var T=null;k;){var L=k.key,x,C;L[0][0]0)if(M[0]!==L[1][0])T=k,k=k.right;else{var g=v(k.right,M);if(g)return g;k=k.left}else{if(M[0]!==L[1][0])return k;var g=v(k.right,M);if(g)return g;k=k.left}}return T}h.castUp=function(k){var M=s.le(this.coordinates,k[0]);if(M<0)return-1;var T=this.slabs[M],L=v(this.slabs[M],k),x=-1;if(L&&(x=L.value),this.coordinates[M]===k[0]){var C=null;if(L&&(C=L.key),M>0){var S=v(this.slabs[M-1],k);S&&(C?c(S.key,C)>0&&(C=S.key,x=S.value):(x=S.value,C=S.key))}var g=this.horizontal[M];if(g.length>0){var P=s.ge(g,k[1],d);if(P=g.length)return x;E=g[P]}}if(E.start)if(C){var z=u(C[0],C[1],[k[0],E.y]);C[0][0]>C[1][0]&&(z=-z),z>0&&(x=E.index)}else x=E.index;else E.y!==k[1]&&(x=E.index)}}}return x};function m(k,M,T,L){this.y=k,this.index=M,this.start=T,this.closed=L}function b(k,M,T,L){this.x=k,this.segment=M,this.create=T,this.index=L}function p(k){for(var M=k.length,T=2*M,L=new Array(T),x=0;x1&&(M=1);for(var T=1-M,L=v.length,x=new Array(L),C=0;C0||k>0&&x<0){var C=c(M,x,T,k);b.push(C),p.push(C.slice())}x<0?p.push(T.slice()):x>0?b.push(T.slice()):(b.push(T.slice()),p.push(T.slice())),k=x}return{positive:b,negative:p}}function h(v,m){for(var b=[],p=u(v[v.length-1],m),k=v[v.length-1],M=v[0],T=0;T0||p>0&&L<0)&&b.push(c(k,L,M,p)),L>=0&&b.push(M.slice()),p=L}return b}function d(v,m){for(var b=[],p=u(v[v.length-1],m),k=v[v.length-1],M=v[0],T=0;T0||p>0&&L<0)&&b.push(c(k,L,M,p)),L<=0&&b.push(M.slice()),p=L}return b}}),3387:(function(i,a,o){var s;(function(){"use strict";var l={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function u(v){return f(d(v),arguments)}function c(v,m){return u.apply(null,[v].concat(m||[]))}function f(v,m){var b=1,p=v.length,k,M="",T,L,x,C,S,g,P,E;for(T=0;T=0),x.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,x.width?parseInt(x.width):0);break;case"e":k=x.precision?parseFloat(k).toExponential(x.precision):parseFloat(k).toExponential();break;case"f":k=x.precision?parseFloat(k).toFixed(x.precision):parseFloat(k);break;case"g":k=x.precision?String(Number(k.toPrecision(x.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=x.precision?k.substring(0,x.precision):k;break;case"t":k=String(!!k),k=x.precision?k.substring(0,x.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=x.precision?k.substring(0,x.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=x.precision?k.substring(0,x.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}l.json.test(x.type)?M+=k:(l.number.test(x.type)&&(!P||x.sign)?(E=P?"+":"-",k=k.toString().replace(l.sign,"")):E="",S=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",g=x.width-(E+k).length,C=x.width&&g>0?S.repeat(g):"",M+=x.align?E+k+C:S==="0"?E+C+k:C+E+k)}return M}var h=Object.create(null);function d(v){if(h[v])return h[v];for(var m=v,b,p=[],k=0;m;){if((b=l.text.exec(m))!==null)p.push(b[0]);else if((b=l.modulo.exec(m))!==null)p.push("%");else if((b=l.placeholder.exec(m))!==null){if(b[2]){k|=1;var M=[],T=b[2],L=[];if((L=l.key.exec(T))!==null)for(M.push(L[1]);(T=T.substring(L[0].length))!=="";)if((L=l.key_access.exec(T))!==null)M.push(L[1]);else if((L=l.index_access.exec(T))!==null)M.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=M}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");m=m.substring(b[0].length)}return h[v]=p}a.sprintf=u,a.vsprintf=c,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=c,s=(function(){return{sprintf:u,vsprintf:c}}).call(a,o,a,i),s!==void 0&&(i.exports=s))})()}),3711:(function(i,a,o){"use strict";i.exports=d;var s=o(2640),l=o(781),u={"2d":function(v,m,b){var p=v({order:m,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(M,T,L,x){return M>x|0},vertex:function(M,T,L,x,C,S,g,P,E,z,q,V,G){var Z=(g<<0)+(P<<1)+(E<<2)+(z<<3)|0;if(!(Z===0||Z===15))switch(Z){case 0:q.push([M-.5,T-.5]);break;case 1:q.push([M-.25-.25*(x+L-2*G)/(L-x),T-.25-.25*(C+L-2*G)/(L-C)]);break;case 2:q.push([M-.75-.25*(-x-L+2*G)/(x-L),T-.25-.25*(S+x-2*G)/(x-S)]);break;case 3:q.push([M-.5,T-.5-.5*(C+L+S+x-4*G)/(L-C+x-S)]);break;case 4:q.push([M-.25-.25*(S+C-2*G)/(C-S),T-.75-.25*(-C-L+2*G)/(C-L)]);break;case 5:q.push([M-.5-.5*(x+L+S+C-4*G)/(L-x+C-S),T-.5]);break;case 6:q.push([M-.5-.25*(-x-L+S+C)/(x-L+C-S),T-.5-.25*(-C-L+S+x)/(C-L+x-S)]);break;case 7:q.push([M-.75-.25*(S+C-2*G)/(C-S),T-.75-.25*(S+x-2*G)/(x-S)]);break;case 8:q.push([M-.75-.25*(-S-C+2*G)/(S-C),T-.75-.25*(-S-x+2*G)/(S-x)]);break;case 9:q.push([M-.5-.25*(x+L+-S-C)/(L-x+S-C),T-.5-.25*(C+L+-S-x)/(L-C+S-x)]);break;case 10:q.push([M-.5-.5*(-x-L+-S-C+4*G)/(x-L+S-C),T-.5]);break;case 11:q.push([M-.25-.25*(-S-C+2*G)/(S-C),T-.75-.25*(C+L-2*G)/(L-C)]);break;case 12:q.push([M-.5,T-.5-.5*(-C-L+-S-x+4*G)/(C-L+S-x)]);break;case 13:q.push([M-.75-.25*(x+L-2*G)/(L-x),T-.25-.25*(-S-x+2*G)/(S-x)]);break;case 14:q.push([M-.25-.25*(-x-L+2*G)/(x-L),T-.25-.25*(-C-L+2*G)/(C-L)]);break;case 15:q.push([M-.5,T-.5]);break}},cell:function(M,T,L,x,C,S,g,P,E){C?P.push([M,T]):P.push([T,M])}});return function(k,M){var T=[],L=[];return p(k,T,L,M),{positions:T,cells:L}}}};function c(v,m){var b=v.length+"d",p=u[b];if(p)return p(s,v,m)}function f(v,m){for(var b=l(v,m),p=b.length,k=new Array(p),M=new Array(p),T=0;TMath.max(x,C)?S[2]=1:x>Math.max(L,C)?S[0]=1:S[1]=1;for(var g=0,P=0,E=0;E<3;++E)g+=T[E]*T[E],P+=S[E]*T[E];for(var E=0;E<3;++E)S[E]-=P/g*T[E];return f(S,S),S}function b(T,L,x,C,S,g,P,E){this.center=s(x),this.up=s(C),this.right=s(S),this.radius=s([g]),this.angle=s([P,E]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(T,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var z=0;z<16;++z)this.computedMatrix[z]=.5;this.recalcMatrix(0)}var p=b.prototype;p.setDistanceLimits=function(T,L){T>0?T=Math.log(T):T=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=L},p.getDistanceLimits=function(T){var L=this.radius.bounds[0];return T?(T[0]=Math.exp(L[0][0]),T[1]=Math.exp(L[1][0]),T):[Math.exp(L[0][0]),Math.exp(L[1][0])]},p.recalcMatrix=function(T){this.center.curve(T),this.up.curve(T),this.right.curve(T),this.radius.curve(T),this.angle.curve(T);for(var L=this.computedUp,x=this.computedRight,C=0,S=0,g=0;g<3;++g)S+=L[g]*x[g],C+=L[g]*L[g];for(var P=Math.sqrt(C),E=0,g=0;g<3;++g)x[g]-=L[g]*S/C,E+=x[g]*x[g],L[g]/=P;for(var z=Math.sqrt(E),g=0;g<3;++g)x[g]/=z;var q=this.computedToward;c(q,L,x),f(q,q);for(var V=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],Z=this.computedAngle[1],j=Math.cos(G),N=Math.sin(G),H=Math.cos(Z),re=Math.sin(Z),ae=this.computedCenter,_e=j*H,Ee=N*H,Ce=re,ge=-j*re,ie=-N*re,Se=H,ke=this.computedEye,be=this.computedMatrix,g=0;g<3;++g){var Be=_e*x[g]+Ee*q[g]+Ce*L[g];be[4*g+1]=ge*x[g]+ie*q[g]+Se*L[g],be[4*g+2]=Be,be[4*g+3]=0}var Le=be[1],me=be[5],Pe=be[9],ce=be[2],He=be[6],lt=be[10],mt=me*lt-Pe*He,Ht=Pe*ce-Le*lt,at=Le*He-me*ce,ct=d(mt,Ht,at);mt/=ct,Ht/=ct,at/=ct,be[0]=mt,be[4]=Ht,be[8]=at;for(var g=0;g<3;++g)ke[g]=ae[g]+be[2+4*g]*V;for(var g=0;g<3;++g){for(var E=0,ar=0;ar<3;++ar)E+=be[g+4*ar]*ke[ar];be[12+g]=-E}be[15]=1},p.getMatrix=function(T,L){this.recalcMatrix(T);var x=this.computedMatrix;if(L){for(var C=0;C<16;++C)L[C]=x[C];return L}return x};var k=[0,0,0];p.rotate=function(T,L,x,C){if(this.angle.move(T,L,x),C){this.recalcMatrix(T);var S=this.computedMatrix;k[0]=S[2],k[1]=S[6],k[2]=S[10];for(var g=this.computedUp,P=this.computedRight,E=this.computedToward,z=0;z<3;++z)S[4*z]=g[z],S[4*z+1]=P[z],S[4*z+2]=E[z];u(S,S,C,k);for(var z=0;z<3;++z)g[z]=S[4*z],P[z]=S[4*z+1];this.up.set(T,g[0],g[1],g[2]),this.right.set(T,P[0],P[1],P[2])}},p.pan=function(T,L,x,C){L=L||0,x=x||0,C=C||0,this.recalcMatrix(T);var S=this.computedMatrix,g=Math.exp(this.computedRadius[0]),P=S[1],E=S[5],z=S[9],q=d(P,E,z);P/=q,E/=q,z/=q;var V=S[0],G=S[4],Z=S[8],j=V*P+G*E+Z*z;V-=P*j,G-=E*j,Z-=z*j;var N=d(V,G,Z);V/=N,G/=N,Z/=N;var H=V*L+P*x,re=G*L+E*x,ae=Z*L+z*x;this.center.move(T,H,re,ae);var _e=Math.exp(this.computedRadius[0]);_e=Math.max(1e-4,_e+C),this.radius.set(T,Math.log(_e))},p.translate=function(T,L,x,C){this.center.move(T,L||0,x||0,C||0)},p.setMatrix=function(T,L,x,C){var S=1;typeof x=="number"&&(S=x|0),(S<0||S>3)&&(S=1);var g=(S+2)%3,P=(S+1)%3;L||(this.recalcMatrix(T),L=this.computedMatrix);var E=L[S],z=L[S+4],q=L[S+8];if(C){var G=Math.abs(E),Z=Math.abs(z),j=Math.abs(q),N=Math.max(G,Z,j);G===N?(E=E<0?-1:1,z=q=0):j===N?(q=q<0?-1:1,E=z=0):(z=z<0?-1:1,E=q=0)}else{var V=d(E,z,q);E/=V,z/=V,q/=V}var H=L[g],re=L[g+4],ae=L[g+8],_e=H*E+re*z+ae*q;H-=E*_e,re-=z*_e,ae-=q*_e;var Ee=d(H,re,ae);H/=Ee,re/=Ee,ae/=Ee;var Ce=z*ae-q*re,ge=q*H-E*ae,ie=E*re-z*H,Se=d(Ce,ge,ie);Ce/=Se,ge/=Se,ie/=Se,this.center.jump(T,Ue,Ae,rt),this.radius.idle(T),this.up.jump(T,E,z,q),this.right.jump(T,H,re,ae);var ke,be;if(S===2){var Be=L[1],Le=L[5],me=L[9],Pe=Be*H+Le*re+me*ae,ce=Be*Ce+Le*ge+me*ie;Ht<0?ke=-Math.PI/2:ke=Math.PI/2,be=Math.atan2(ce,Pe)}else{var He=L[2],lt=L[6],mt=L[10],Ht=He*E+lt*z+mt*q,at=He*H+lt*re+mt*ae,ct=He*Ce+lt*ge+mt*ie;ke=Math.asin(v(Ht)),be=Math.atan2(ct,at)}this.angle.jump(T,be,ke),this.recalcMatrix(T);var ar=L[2],Vt=L[6],rr=L[10],tt=this.computedMatrix;l(tt,L);var je=tt[15],Ue=tt[12]/je,Ae=tt[13]/je,rt=tt[14]/je,St=Math.exp(this.computedRadius[0]);this.center.jump(T,Ue-ar*St,Ae-Vt*St,rt-rr*St)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(T){this.center.idle(T),this.up.idle(T),this.right.idle(T),this.radius.idle(T),this.angle.idle(T)},p.flush=function(T){this.center.flush(T),this.up.flush(T),this.right.flush(T),this.radius.flush(T),this.angle.flush(T)},p.setDistance=function(T,L){L>0&&this.radius.set(T,Math.log(L))},p.lookAt=function(T,L,x,C){this.recalcMatrix(T),L=L||this.computedEye,x=x||this.computedCenter,C=C||this.computedUp;var S=C[0],g=C[1],P=C[2],E=d(S,g,P);if(!(E<1e-6)){S/=E,g/=E,P/=E;var z=L[0]-x[0],q=L[1]-x[1],V=L[2]-x[2],G=d(z,q,V);if(!(G<1e-6)){z/=G,q/=G,V/=G;var Z=this.computedRight,j=Z[0],N=Z[1],H=Z[2],re=S*j+g*N+P*H;j-=re*S,N-=re*g,H-=re*P;var ae=d(j,N,H);if(!(ae<.01&&(j=g*V-P*q,N=P*z-S*V,H=S*q-g*z,ae=d(j,N,H),ae<1e-6))){j/=ae,N/=ae,H/=ae,this.up.set(T,S,g,P),this.right.set(T,j,N,H),this.center.set(T,x[0],x[1],x[2]),this.radius.set(T,Math.log(G));var _e=g*H-P*N,Ee=P*j-S*H,Ce=S*N-g*j,ge=d(_e,Ee,Ce);_e/=ge,Ee/=ge,Ce/=ge;var ie=S*z+g*q+P*V,Se=j*z+N*q+H*V,ke=_e*z+Ee*q+Ce*V,be=Math.asin(v(ie)),Be=Math.atan2(ke,Se),Le=this.angle._state,me=Le[Le.length-1],Pe=Le[Le.length-2];me=me%(2*Math.PI);var ce=Math.abs(me+2*Math.PI-Be),He=Math.abs(me-Be),lt=Math.abs(me-2*Math.PI-Be);ce0?H.pop():new ArrayBuffer(j)}a.mallocArrayBuffer=k;function M(Z){return new Uint8Array(k(Z),0,Z)}a.mallocUint8=M;function T(Z){return new Uint16Array(k(2*Z),0,Z)}a.mallocUint16=T;function L(Z){return new Uint32Array(k(4*Z),0,Z)}a.mallocUint32=L;function x(Z){return new Int8Array(k(Z),0,Z)}a.mallocInt8=x;function C(Z){return new Int16Array(k(2*Z),0,Z)}a.mallocInt16=C;function S(Z){return new Int32Array(k(4*Z),0,Z)}a.mallocInt32=S;function g(Z){return new Float32Array(k(4*Z),0,Z)}a.mallocFloat32=a.mallocFloat=g;function P(Z){return new Float64Array(k(8*Z),0,Z)}a.mallocFloat64=a.mallocDouble=P;function E(Z){return c?new Uint8ClampedArray(k(Z),0,Z):M(Z)}a.mallocUint8Clamped=E;function z(Z){return f?new BigUint64Array(k(8*Z),0,Z):null}a.mallocBigUint64=z;function q(Z){return h?new BigInt64Array(k(8*Z),0,Z):null}a.mallocBigInt64=q;function V(Z){return new DataView(k(Z),0,Z)}a.mallocDataView=V;function G(Z){Z=s.nextPow2(Z);var j=s.log2(Z),N=m[j];return N.length>0?N.pop():new u(Z)}a.mallocBuffer=G,a.clearCache=function(){for(var j=0;j<32;++j)d.UINT8[j].length=0,d.UINT16[j].length=0,d.UINT32[j].length=0,d.INT8[j].length=0,d.INT16[j].length=0,d.INT32[j].length=0,d.FLOAT[j].length=0,d.DOUBLE[j].length=0,d.BIGUINT64[j].length=0,d.BIGINT64[j].length=0,d.UINT8C[j].length=0,v[j].length=0,m[j].length=0}}),1755:(function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",H="",re=N.length,ae=H.length,_e=G[0]===k||G[0]===L,Ee=0,Ce=-ae;Ee>-1&&(Ee=Z.indexOf(N,Ee),!(Ee===-1||(Ce=Z.indexOf(H,Ee+re),Ce===-1)||Ce<=Ee));){for(var ge=Ee;ge=Ce)j[ge]=null,Z=Z.substr(0,ge)+" "+Z.substr(ge+1);else if(j[ge]!==null){var ie=j[ge].indexOf(G[0]);ie===-1?j[ge]+=G:_e&&(j[ge]=j[ge].substr(0,ie+1)+(1+parseInt(j[ge][ie+1]))+j[ge].substr(ie+2))}var Se=Ee+re,ke=Z.substr(Se,Ce-Se),be=ke.indexOf(N);be!==-1?Ee=be:Ee=Ce+ae}return j}function S(V,G,Z){for(var j=G.textAlign||"start",N=G.textBaseline||"alphabetic",H=[1<<30,1<<30],re=[0,0],ae=V.length,_e=0;_e/g,` +`):Z=Z.replace(/\/g," ");var re="",ae=[];for(me=0;me-1?parseInt(Ae[1+Tt]):0,pt=dt>-1?parseInt(rt[1+dt]):0;Et!==pt&&(St=St.replace(at(),"?px "),He*=Math.pow(.75,pt-Et),St=St.replace("?px ",at())),ce+=.25*ie*(pt-Et)}if(H.superscripts===!0){var jt=Ae.indexOf(k),or=rt.indexOf(k),mr=jt>-1?parseInt(Ae[1+jt]):0,Ar=or>-1?parseInt(rt[1+or]):0;mr!==Ar&&(St=St.replace(at(),"?px "),He*=Math.pow(.75,Ar-mr),St=St.replace("?px ",at())),ce-=.25*ie*(Ar-mr)}if(H.bolds===!0){var ei=Ae.indexOf(v)>-1,qr=rt.indexOf(v)>-1;!ei&&qr&&(jr?St=St.replace("italic ","italic bold "):St="bold "+St),ei&&!qr&&(St=St.replace("bold ",""))}if(H.italics===!0){var jr=Ae.indexOf(b)>-1,gt=rt.indexOf(b)>-1;!jr&>&&(St="italic "+St),jr&&!gt&&(St=St.replace("italic ",""))}G.font=St}for(Le=0;Le0&&(N=j.size),j.lineSpacing&&j.lineSpacing>0&&(H=j.lineSpacing),j.styletags&&j.styletags.breaklines&&(re.breaklines=!!j.styletags.breaklines),j.styletags&&j.styletags.bolds&&(re.bolds=!!j.styletags.bolds),j.styletags&&j.styletags.italics&&(re.italics=!!j.styletags.italics),j.styletags&&j.styletags.subscripts&&(re.subscripts=!!j.styletags.subscripts),j.styletags&&j.styletags.superscripts&&(re.superscripts=!!j.styletags.superscripts)),Z.font=[j.fontStyle,j.fontVariant,j.fontWeight,N+"px",j.font].filter(function(_e){return _e}).join(" "),Z.textAlign="start",Z.textBaseline="alphabetic",Z.direction="ltr";var ae=g(G,Z,V,N,H,re);return z(ae,j,N)}}),1538:(function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(E){E.permitHostObjects___&&E.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{i.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,v=Object.isExtensible,m="weakmap:",b=m+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var p=new ArrayBuffer(25),k=new Uint8Array(p);crypto.getRandomValues(k),b=m+"rand:"+Array.prototype.map.call(k,function(E){return(E%36).toString(36)}).join("")+"___"}function M(E){return!(E.substr(0,m.length)==m&&E.substr(E.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(z){return h(z).filter(M)}}),"getPropertyNames"in Object){var T=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(z){return T(z).filter(M)}})}function L(E){if(E!==Object(E))throw new TypeError("Not an object: "+E);var z=E[b];if(z&&z.key===E)return z;if(v(E)){z={key:E};try{return d(E,b,{value:z,writable:!1,enumerable:!1,configurable:!1}),z}catch(q){return}}}(function(){var E=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),E(G)}});var z=Object.seal;d(Object,"seal",{value:function(G){return L(G),z(G)}});var q=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),q(G)}})})();function x(E){return E.prototype=null,Object.freeze(E)}var C=!1;function S(){!C&&typeof console!="undefined"&&(C=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,P=function(){this instanceof P||S();var E=[],z=[],q=g++;function V(N,H){var re,ae=L(N);return ae?q in ae?ae[q]:H:(re=E.indexOf(N),re>=0?z[re]:H)}function G(N){var H=L(N);return H?q in H:E.indexOf(N)>=0}function Z(N,H){var re,ae=L(N);return ae?ae[q]=H:(re=E.indexOf(N),re>=0?z[re]=H:(re=E.length,z[re]=H,E[re]=N)),this}function j(N){var H=L(N),re,ae;return H?q in H&&delete H[q]:(re=E.indexOf(N),re<0?!1:(ae=E.length-1,E[re]=void 0,z[re]=z[ae],E[re]=E[ae],E.length=ae,z.length=ae,!0))}return Object.create(P.prototype,{get___:{value:x(V)},has___:{value:x(G)},set___:{value:x(Z)},delete___:{value:x(j)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(z,q){return this.get___(z,q)},writable:!0,configurable:!0},has:{value:function(z){return this.has___(z)},writable:!0,configurable:!0},set:{value:function(z,q){return this.set___(z,q)},writable:!0,configurable:!0},delete:{value:function(z){return this.delete___(z)},writable:!0,configurable:!0}}),typeof l=="function"?(function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function E(){this instanceof P||S();var z=new l,q=void 0,V=!1;function G(H,re){return q?z.has(H)?z.get(H):q.get___(H,re):z.get(H,re)}function Z(H){return z.has(H)||(q?q.has___(H):!1)}var j;s?j=function(H,re){return z.set(H,re),z.has(H)||(q||(q=new P),q.set(H,re)),this}:j=function(H,re){if(V)try{z.set(H,re)}catch(ae){q||(q=new P),q.set___(H,re)}else z.set(H,re);return this};function N(H){var re=!!z.delete(H);return q&&q.delete___(H)||re}return Object.create(P.prototype,{get___:{value:x(G)},has___:{value:x(Z)},set___:{value:x(j)},delete___:{value:x(N)},permitHostObjects___:{value:x(function(H){if(H===o)V=!0;else throw new Error("bogus call to permitHostObjects___")})}})}E.prototype=P.prototype,i.exports=E,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()}),236:(function(i,a,o){var s=o(8284);i.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}}),8284:(function(i){i.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}}),606:(function(i,a,o){var s=o(236);i.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}}),3349:(function(i){"use strict";function a(){return function(f,h,d,v,m,b){var p=f[0],k=d[0],M=[0],T=k;v|=0;var L=0,x=k;for(L=0;L=0!=S>=0&&m.push(M[0]+.5+.5*(C+S)/(C-S))}v+=x,++M[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(v,m,b){var p=v.dtype,k=v.order,M=[p,k.join()].join(),T=h[M];return T||(h[M]=T=f([p,k])),T(v.shape.slice(0),v.data,v.stride,v.offset|0,m,b)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}i.exports=c({funcName:"zeroCrossings"})}),781:(function(i,a,o){"use strict";i.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}}),7790:(function(){})},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}})()})(),(function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}})();var n=r(1964);LPe.exports=n})()});var MX=ye((kgr,PPe)=>{"use strict";PPe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var FPe=ye((Cgr,DPe)=>{"use strict";var IPe=MX();DPe.exports=kIt;var RPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function kIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),IPe[e])r=IPe[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(RPe[h]!==void 0)return RPe[h]}return parseFloat(h)}),l===a&&r.push(1),n=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var qPe=ye((Lgr,zPe)=>{"use strict";var CIt=FPe();zPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=CIt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=LIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function LIt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}});var ak=ye((Pgr,OPe)=>{OPe.exports=PIt;function PIt(e,t,r){return tr?r:e:et?t:e}});var iF=ye((Igr,BPe)=>{BPe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var lx=ye((Rgr,NPe)=>{"use strict";var IIt=qPe(),nF=ak(),RIt=iF();NPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=RIt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=IIt(t),t[0]/=255,t[1]/=255,t[2]/=255),DIt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=nF(Math.floor(t[0]*255),0,255),i[1]=nF(Math.floor(t[1]*255),0,255),i[2]=nF(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:nF(Math.floor(t[3]*255),0,255)),i)};function DIt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var a1=ye((Dgr,UPe)=>{"use strict";var FIt=lx();function zIt(e){return e?FIt(e):[0,0,0,1]}UPe.exports=zIt});var o1=ye((Fgr,ZPe)=>{"use strict";var WPe=Eo(),qIt=fd(),aF=lx(),oF=tc(),OIt=Ih().defaultLine,VPe=Yd().isArrayOrTypedArray,EX=aF(OIt),XPe=1;function GPe(e,t){var r=e;return r[3]*=t,r}function HPe(e){if(WPe(e))return EX;var t=aF(e);return t.length?t:EX}function jPe(e){return WPe(e)?e:XPe}function BIt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=VPe(n),a=VPe(t),o=oF.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=oF.makeColorScaleFuncFromTrace(e):l=HPe,i?u=function(v,m){return v[m]===void 0?EX:aF(l(v[m]))}:u=HPe,a?c=function(v,m){return v[m]===void 0?XPe:jPe(v[m])}:c=jPe,i||a)for(var d=0;d{"use strict";YPe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var sF=ye((qgr,KPe)=>{"use strict";KPe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var $Pe=ye((Ogr,JPe)=>{"use strict";var UIt=Oa();function CX(e,t,r,n){if(!t||!t.visible)return null;for(var i=UIt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=n.c2l(u);n._lowerLogErrorBound||(n._lowerLogErrorBound=f),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function VIt(e){for(var t=0;t{"use strict";var HIt=qd().gl_line3d,QPe=qd().gl_scatter3d,jIt=qd().gl_error3d,WIt=qd().gl_mesh3d,XIt=qd().delaunay_triangulate,s1=Pr(),nIe=a1(),lF=o1().formatColor,ZIt=U3(),LX=kX(),YIt=sF(),KIt=ho(),JIt=ip().appendArrayPointValue,$It=$Pe();function aIe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var IX=aIe.prototype;IX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(s1.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function QIt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function tIe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function t8t(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=QIt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=WIt(u),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};IX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function a8t(e,t){var r=new aIe(e,t.uid);return r.update(t),r}oIe.exports=a8t});var qX=ye((Ngr,fIe)=>{"use strict";var l1=pf(),o8t=ec(),zX=Tu(),RX=vf().axisHoverFormat,{hovertemplateAttrs:s8t,texttemplateAttrs:l8t,templatefallbackAttrs:lIe}=Pl(),uIe=Vl(),u8t=kX(),c8t=sF(),$g=Ao().extendFlat,f8t=mc().overrideAll,cIe=r_(),h8t=l1.line,Q2=l1.marker,d8t=Q2.line,v8t=$g({width:h8t.width,dash:{valType:"enumerated",values:cIe(u8t),dflt:"solid"}},zX("line"));function DX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var FX=fIe.exports=f8t({x:l1.x,y:l1.y,z:{valType:"data_array"},text:$g({},l1.text,{}),texttemplate:l8t(),texttemplatefallback:lIe({editType:"calc"}),hovertext:$g({},l1.hovertext,{}),hovertemplate:s8t(),hovertemplatefallback:lIe(),xhoverformat:RX("x"),yhoverformat:RX("y"),zhoverformat:RX("z"),mode:$g({},l1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:DX("x"),y:DX("y"),z:DX("z")},connectgaps:l1.connectgaps,line:v8t,marker:$g({symbol:{valType:"enumerated",values:cIe(c8t),dflt:"circle",arrayOk:!0},size:$g({},Q2.size,{dflt:8}),sizeref:Q2.sizeref,sizemin:Q2.sizemin,sizemode:Q2.sizemode,opacity:$g({},Q2.opacity,{arrayOk:!1}),colorbar:Q2.colorbar,line:$g({width:$g({},d8t.width,{arrayOk:!1})},zX("marker.line"))},zX("marker")),textposition:$g({},l1.textposition,{dflt:"top center"}),textfont:o8t({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:uIe.opacity,hoverinfo:$g({},uIe.hoverinfo)},"calc","nested");FX.x.editType=FX.y.editType=FX.z.editType="calc+clearAxisTypes"});var vIe=ye((Ugr,dIe)=>{"use strict";var hIe=Oa(),p8t=Pr(),OX=Ru(),g8t=$p(),m8t=D0(),y8t=F0(),_8t=qX();dIe.exports=function(t,r,n,i){function a(d,v){return p8t.coerce(t,r,_8t,d,v)}var o=x8t(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),OX.hasMarkers(r)&&g8t(t,r,n,i,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),OX.hasLines(r)&&(a("connectgaps"),m8t(t,r,n,i,a)),OX.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),y8t(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=hIe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||n,{axis:"z"}),h(t,r,s||l||n,{axis:"y",inherit:"z"}),h(t,r,s||l||n,{axis:"x",inherit:"z"})};function x8t(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=hIe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var gIe=ye((Vgr,pIe)=>{"use strict";var b8t=Dm(),w8t=z0();pIe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return b8t(n,r),w8t(t,r),n}});var yIe=ye((Ggr,mIe)=>{mIe.exports=T8t;function T8t(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var A8t=yIe();_Ie.exports=function(t){return A8t("webgl",t)}});var BX=ye((jgr,wIe)=>{"use strict";var bIe=ka(),S8t=function(){};wIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=S8t);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=bIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=bIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var SIe=ye((Wgr,AIe)=>{"use strict";var ew=a1(),M8t=Pr(),E8t=["xaxis","yaxis","zaxis"];function TIe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var k8t=TIe.prototype;k8t.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[E8t[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?M8t.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=ew(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=ew(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=ew(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=ew(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=ew(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=ew(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=ew(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function C8t(e,t){var r=new TIe;return r.merge(e,t),r}AIe.exports=C8t});var kIe=ye((Xgr,EIe)=>{"use strict";var L8t=a1(),P8t=["xaxis","yaxis","zaxis"];function MIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var I8t=MIe.prototype;I8t.merge=function(e){for(var t=0;t<3;++t){var r=e[P8t[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=L8t(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function R8t(e){var t=new MIe;return t.merge(e),t}EIe.exports=R8t});var PIe=ye((Zgr,LIe)=>{"use strict";LIe.exports=O8t;var CIe=ho(),D8t=Pr(),F8t=["xaxis","yaxis","zaxis"],z8t=[0,0,0];function q8t(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=u,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){z8t[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=q8t(i)}});var OIe=ye((Ygr,qIe)=>{"use strict";var DIe=qd().gl_plot3d,B8t=DIe.createCamera,IIe=DIe.createScene,N8t=xIe(),U8t=GL(),fF=Oa(),cp=Pr(),cF=cp.preserveDrawingBuffer(),hF=ho(),Qg=ef(),V8t=a1(),G8t=BX(),H8t=JU(),j8t=SIe(),W8t=kIe(),X8t=PIe(),Z8t=Mg().applyAutorangeOptions,ok,uF,FIe=!1;function zIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=j8t(t,t[this.id]),this.spikeOptions=W8t(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=fF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=fF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Sv=zIe.prototype;Sv.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:cF,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!uF&&(ok=document.createElement("canvas"),uF=N8t({canvas:ok,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!uF))throw new Error("error creating static canvas/context for image server");t.gl=uF,t.canvas=ok}return t};var RIe=!0;Sv.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=IIe(t)}catch(n){if(e.staticMode||!RIe||cF)r=!1;else{cp.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{cF=t.glOptions.preserveDrawingBuffer=!0,e.glplot=IIe(t)}catch(i){cF=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return RIe=!1,r};Sv.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=B8t(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Sv.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return G8t(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){FIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},U8t?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Sv.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),X8t(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(p.valueLabel=hF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+p.valueLabel),f.textLabel&&x.push(f.textLabel),L=x.join("
")):L=f.textLabel;var C={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:m._input,fullData:m,curveNumber:m.index,pointNumber:b};Qg.appendArrayPointValue(C,m,b),r._module.eventData&&(C=m._module.eventData(C,f,m,{},b));var S={points:[C]};if(e.fullSceneLayout.hovermode){var g=[];Qg.loneHover({trace:m,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:L,name:c.name,color:Qg.castHoverOption(m,b,"bgcolor")||c.color,borderColor:Qg.castHoverOption(m,b,"bordercolor"),fontFamily:Qg.castHoverOption(m,b,"font.family"),fontSize:Qg.castHoverOption(m,b,"font.size"),fontColor:Qg.castHoverOption(m,b,"font.color"),nameLength:Qg.castHoverOption(m,b,"namelength"),textAlign:Qg.castHoverOption(m,b,"align"),hovertemplate:cp.castOption(m,b,"hovertemplate"),hovertemplateLabels:cp.extendFlat({},C,p),eventData:[C]},{container:n,gd:t,inOut_bbox:g}),C.bbox=g[0]}f.distance<5&&(f.buttons||FIe)?t.emit("plotly_click",S):t.emit("plotly_hover",S),this.oldEventData=S}else Qg.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Sv.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){cp.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var sk=["xaxis","yaxis","zaxis"];function Y8t(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=sk[i],o=a.charAt(0),s=n[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!cp.isArrayOrTypedArray(l))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],c-1);else for(var f,h=0;h<(c||l.length);h++)if(cp.isArrayOrTypedArray(l[h]))for(var d=0;dm[1][o])m[0][o]=-1,m[1][o]=1;else{var E=m[1][o]-m[0][o];m[0][o]-=E/32,m[1][o]+=E/32}if(k=[m[0][o],m[1][o]],k=Z8t(k,l),m[0][o]=k[0],m[1][o]=k[1],l.isReversed()){var z=m[0][o];m[0][o]=m[1][o],m[1][o]=z}}else k=l.range,m[0][o]=l.r2l(k[0]),m[1][o]=l.r2l(k[1]);m[0][o]===m[1][o]&&(m[0][o]-=1,m[1][o]+=1),b[o]=m[1][o]-m[0][o],l.range=[m[0][o],m[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var q,V=c.aspectmode;if(V==="cube")q=[1,1,1];else if(V==="manual"){var G=c.aspectratio;q=[G.x,G.y,G.z]}else if(V==="auto"||V==="data"){var Z=[1,1,1];for(o=0;o<3;++o){l=c[sk[o]],u=l.type;var j=p[u];Z[o]=Math.pow(j.acc,1/j.count)/d[o]}V==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?q=Z:q=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=q[0],c.aspectratio.y=f.aspectratio.y=q[1],c.aspectratio.z=f.aspectratio.z=q[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,H=t._size||null;if(N&&H){var re=n.container.style;re.position="absolute",re.left=H.l+N.x[0]*H.w+"px",re.top=H.t+(1-N.y[1])*H.h+"px",re.width=H.w*(N.x[1]-N.x[0])+"px",re.height=H.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Sv.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function J8t(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function $8t(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Sv.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),$8t(e.camera)};Sv.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,J8t(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Sv.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=cp.nestedProperty(e,t.id+".camera"),i=n.get();function a(u,c,f,h){var d=["up","center","eye"],v=["x","y","z"];return c[d[f]]&&u[d[f]][v[h]]===c[d[f]][v[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,i,s,l)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Sv.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=cp.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Sv.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(n=t.getCamera(),i=cp.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=cp.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),fF.call("_storeDirectGUIEdit",e,r._preGUI,h),u){i.set(n);var d=cp.nestedProperty(r,t.id+".camera");d.set(n)}if(c){s.set(o);var v=cp.nestedProperty(r,t.id+".aspectratio");v.set(o),t.glplot.redraw()}}return f};Sv.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var d=i.layout;fF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,cp.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function Q8t(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}Sv.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(ok),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),Q8t(a,n,i),eRt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(n,i);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(ok),u};Sv.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[sk[t]];hF.setConvert(r,e.fullLayout),r.setScale=cp.noop}};Sv.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},hF.setConvert(e._mockAxis,r)};qIe.exports=zIe});var NIe=ye((Kgr,BIe)=>{"use strict";BIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var UX=ye((Jgr,UIe)=>{"use strict";var tRt=ka(),xs=Rd(),NX=Ao().extendFlat,rRt=mc().overrideAll;UIe.exports=rRt({visible:xs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:tRt.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:xs.color,categoryorder:xs.categoryorder,categoryarray:xs.categoryarray,title:{text:xs.title.text,font:xs.title.font},type:NX({},xs.type,{values:["-","linear","log","date","category"]}),autotypenumbers:xs.autotypenumbers,autorange:xs.autorange,autorangeoptions:{minallowed:xs.autorangeoptions.minallowed,maxallowed:xs.autorangeoptions.maxallowed,clipmin:xs.autorangeoptions.clipmin,clipmax:xs.autorangeoptions.clipmax,include:xs.autorangeoptions.include,editType:"plot"},rangemode:xs.rangemode,minallowed:xs.minallowed,maxallowed:xs.maxallowed,range:NX({},xs.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:xs.minor.tickmode,nticks:xs.nticks,tick0:xs.tick0,dtick:xs.dtick,tickvals:xs.tickvals,ticktext:xs.ticktext,ticks:xs.ticks,mirror:xs.mirror,ticklen:xs.ticklen,tickwidth:xs.tickwidth,tickcolor:xs.tickcolor,showticklabels:xs.showticklabels,labelalias:xs.labelalias,tickfont:xs.tickfont,tickangle:xs.tickangle,tickprefix:xs.tickprefix,showtickprefix:xs.showtickprefix,ticksuffix:xs.ticksuffix,showticksuffix:xs.showticksuffix,showexponent:xs.showexponent,exponentformat:xs.exponentformat,minexponent:xs.minexponent,separatethousands:xs.separatethousands,tickformat:xs.tickformat,tickformatstops:xs.tickformatstops,hoverformat:xs.hoverformat,showline:xs.showline,linecolor:xs.linecolor,linewidth:xs.linewidth,showgrid:xs.showgrid,gridcolor:NX({},xs.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:xs.gridwidth,zeroline:xs.zeroline,zerolinecolor:xs.zerolinecolor,zerolinewidth:xs.zerolinewidth},"plot","from-root")});var jX=ye(($gr,VIe)=>{"use strict";var VX=UX(),iRt=Cc().attributes,GX=Ao().extendFlat,nRt=Pr().counterRegex;function HX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}VIe.exports={_arrayAttrRegexps:[nRt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:GX(HX(0,0,1),{}),center:GX(HX(0,0,0),{}),eye:GX(HX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:iRt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:VX,yaxis:VX,zaxis:VX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var WIe=ye((Qgr,jIe)=>{"use strict";var aRt=fd().mix,GIe=Pr(),oRt=vl(),sRt=UX(),lRt=FU(),uRt=v4(),HIe=["xaxis","yaxis","zaxis"],cRt=13600/187;jIe.exports=function(t,r,n){var i,a;function o(u,c){return GIe.coerce(i,a,sRt,u,c)}for(var s=0;s{"use strict";var fRt=Pr(),hRt=ka(),dRt=Oa(),vRt=O_(),pRt=WIe(),XIe=jX(),gRt=Id().getSubplotData,ZIe="gl3d";YIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=fRt.validate(t[o],XIe[o]);if(s)return t[o]}}vRt(t,r,n,{type:ZIe,attributes:XIe,handleDefaults:mRt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function mRt(e,t,r,n){for(var i=r("bgcolor"),a=hRt.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var ux=ye(fp=>{"use strict";var yRt=mc().overrideAll,_Rt=X1(),xRt=OIe(),bRt=Id().getSubplotData,wRt=Pr(),TRt=Wp(),JA="gl3d",WX="scene";fp.name=JA;fp.attr=WX;fp.idRoot=WX;fp.idRegex=fp.attrRegex=wRt.counterRegex("scene");fp.attributes=NIe();fp.layoutAttributes=jX();fp.baseLayoutAttrOverrides=yRt({hoverlabel:_Rt.hoverlabel},"plot","nested");fp.supplyLayoutDefaults=KIe();fp.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[JA],a=0;a{"use strict";JIe.exports={plot:sIe(),attributes:qX(),markerSymbols:sF(),supplyDefaults:vIe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:gIe(),moduleType:"trace",name:"scatter3d",basePlotModule:ux(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var e8e=ye((imr,QIe)=>{"use strict";QIe.exports=$Ie()});var lk=ye((nmr,i8e)=>{"use strict";var t8e=ka(),ARt=Tu(),XX=vf().axisHoverFormat,{hovertemplateAttrs:SRt,templatefallbackAttrs:MRt}=Pl(),r8e=Vl(),ZX=Ao().extendFlat,ERt=mc().overrideAll;function YX(e){return{valType:"boolean",dflt:!1}}function KX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:YX("x"),y:YX("y"),z:YX("z")},color:{valType:"color",dflt:t8e.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:t8e.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var JX=i8e.exports=ERt(ZX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:SRt(),hovertemplatefallback:MRt(),xhoverformat:XX("x"),yhoverformat:XX("y"),zhoverformat:XX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},ARt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:KX("x"),y:KX("y"),z:KX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:ZX({},r8e.hoverinfo),showlegend:ZX({},r8e.showlegend,{dflt:!1})}),"calc","nested");JX.x.editType=JX.y.editType=JX.z.editType="calc+clearAxisTypes"});var QX=ye((amr,o8e)=>{"use strict";var kRt=Oa(),n8e=Pr(),CRt=td(),LRt=lk(),$X=.1;function PRt(e,t){for(var r=[],n=32,i=0;i{"use strict";var s8e=gv();l8e.exports=function(t,r){r.surfacecolor?s8e(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):s8e(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var p8e=ye((smr,v8e)=>{"use strict";var DRt=qd().gl_surface3d,$A=qd().ndarray,FRt=qd().ndarray_linear_interpolate.d2,zRt=d8(),qRt=v8(),uk=Pr().isArrayOrTypedArray,ORt=o1().parseColorScale,c8e=a1(),BRt=tc().extractOpts;function h8e(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var em=h8e.prototype;em.getXat=function(e,t,r,n){var i=uk(this.data.x)?uk(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};em.getYat=function(e,t,r,n){var i=uk(this.data.y)?uk(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};em.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};em.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return uk(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function NRt(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var QA=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function URt(e,t){if(e0){r=QA[n];break}return r}function GRt(e,t){if(!(e<1||t<1)){for(var r=eZ(e),n=eZ(t),i=1,a=0;adF;)n--,n/=VRt(n),n++,n1?i:1};function jRt(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function WRt(e,t,r){return XRt(e,t,jRt,r),e}function XRt(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[u]=h),this.maxValues[u]{"use strict";g8e.exports={attributes:lk(),supplyDefaults:QX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:u8e(),plot:p8e(),moduleType:"trace",name:"surface",basePlotModule:ux(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var _8e=ye((umr,y8e)=>{"use strict";y8e.exports=m8e()});var e5=ye((cmr,b8e)=>{"use strict";var KRt=Tu(),tZ=vf().axisHoverFormat,{hovertemplateAttrs:JRt,templatefallbackAttrs:$Rt}=Pl(),cx=lk(),x8e=Vl(),fx=Ao().extendFlat;b8e.exports=fx({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:JRt({editType:"calc"}),hovertemplatefallback:$Rt({editType:"calc"}),xhoverformat:tZ("x"),yhoverformat:tZ("y"),zhoverformat:tZ("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},KRt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:cx.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:fx({},cx.contours.x.show,{}),color:cx.contours.x.color,width:cx.contours.x.width,editType:"calc"},lightposition:{x:fx({},cx.lightposition.x,{dflt:1e5}),y:fx({},cx.lightposition.y,{dflt:1e5}),z:fx({},cx.lightposition.z,{dflt:0}),editType:"calc"},lighting:fx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},cx.lighting),hoverinfo:fx({},x8e.hoverinfo,{editType:"calc"}),showlegend:fx({},x8e.showlegend,{dflt:!1})})});var pF=ye((fmr,T8e)=>{"use strict";var QRt=Tu(),vF=vf().axisHoverFormat,{hovertemplateAttrs:eDt,templatefallbackAttrs:tDt}=Pl(),ck=e5(),w8e=Vl(),rZ=Ao().extendFlat,rDt=mc().overrideAll;function iZ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function nZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var t5=T8e.exports=rDt(rZ({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:iZ("x"),y:iZ("y"),z:iZ("z")},caps:{x:nZ("x"),y:nZ("y"),z:nZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:eDt(),hovertemplatefallback:tDt(),xhoverformat:vF("x"),yhoverformat:vF("y"),zhoverformat:vF("z"),valuehoverformat:vF("value",1),showlegend:rZ({},w8e.showlegend,{dflt:!1})},QRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ck.opacity,lightposition:ck.lightposition,lighting:ck.lighting,flatshading:ck.flatshading,contour:ck.contour,hoverinfo:rZ({},w8e.hoverinfo)}),"calc","nested");t5.flatshading.dflt=!0;t5.lighting.facenormalsepsilon.dflt=0;t5.x.editType=t5.y.editType=t5.z.editType=t5.value.editType="calc+clearAxisTypes"});var aZ=ye((hmr,S8e)=>{"use strict";var iDt=Pr(),nDt=Oa(),aDt=pF(),oDt=td();function sDt(e,t,r,n){function i(a,o){return iDt.coerce(e,t,aDt,a,o)}A8e(e,t,r,n,i)}function A8e(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),l=i("y"),u=i("z"),c=i("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=nDt.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(m){i(m+"hoverformat");var b="caps."+m,p=i(b+".show");p&&i(b+".fill");var k="slices."+m,M=i(k+".show");M&&(i(k+".fill"),i(k+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var v=i("contour.show");v&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(m){i(m)}),oDt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}S8e.exports={supplyDefaults:sDt,supplyIsoDefaults:A8e}});var gF=ye((dmr,E8e)=>{"use strict";var sZ=Pr(),lDt=gv();function uDt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=$m(t.u,t._len),t._v=$m(t.v,t._len),t._w=$m(t.w,t._len),t._x=$m(t.x,t._len),t._y=$m(t.y,t._len),t._z=$m(t.z,t._len);var r=M8e(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=$m(t.starts.x||[]),a=$m(t.starts.y||[]),o=$m(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(M=t[i-1],L=r[i-1],C=n[i-1]),a=0;aM?"-":"+")+"x"),v=v.replace("y",(T>L?"-":"+")+"y"),v=v.replace("z",(x>C?"-":"+")+"z");var E=function(){i=0,S=[],g=[],P=[]};(!i||i{"use strict";var cDt=gv(),fDt=gF().processGrid,mF=gF().filter;k8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=mF(r.x,r._len),r._y=mF(r.y,r._len),r._z=mF(r.z,r._len),r._value=mF(r.value,r._len);var n=fDt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";C8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var hDt=qd().gl_mesh3d,dDt=o1().parseColorScale,vDt=Pr().isArrayOrTypedArray,pDt=a1(),gDt=tc().extractOpts,L8e=r5(),fk=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function ae(St,Tt){return St===null?Tt:St}function _e(St,Tt,dt){E();var Et=[Tt],pt=[dt];if(j>=1)Et=[Tt],pt=[dt];else if(j>0){var jt=H(Tt,dt);Et=jt.xyzv,pt=jt.abc}for(var or=0;or-1?dt[Ar]:P(ei,qr,jr);Ge>-1?mr[Ar]=Ge:mr[Ar]=q(ei,qr,jr,ae(St,gt))}V(mr[0],mr[1],mr[2])}}function Ee(St,Tt,dt){var Et=function(pt,jt,or){_e(St,[Tt[pt],Tt[jt],Tt[or]],[dt[pt],dt[jt],dt[or]])};Et(0,1,2),Et(2,3,0)}function Ce(St,Tt,dt){var Et=function(pt,jt,or){_e(St,[Tt[pt],Tt[jt],Tt[or]],[dt[pt],dt[jt],dt[or]])};Et(0,1,2),Et(3,0,1),Et(2,3,0),Et(1,2,3)}function ge(St,Tt,dt,Et){var pt=St[3];ptEt&&(pt=Et);for(var jt=(St[3]-pt)/(St[3]-Tt[3]+1e-9),or=[],mr=0;mr<4;mr++)or[mr]=(1-jt)*St[mr]+jt*Tt[mr];return or}function ie(St,Tt,dt){return St>=Tt&&St<=dt}function Se(St){var Tt=.001*(L-T);return St>=T-Tt&&St<=L+Tt}function ke(St){for(var Tt=[],dt=0;dt<4;dt++){var Et=St[dt];Tt.push([e._x[Et],e._y[Et],e._z[Et],e._value[Et]])}return Tt}var be=3;function Be(St,Tt,dt,Et,pt,jt){jt||(jt=1),dt=[-1,-1,-1];var or=!1,mr=[ie(Tt[0][3],Et,pt),ie(Tt[1][3],Et,pt),ie(Tt[2][3],Et,pt)];if(!mr[0]&&!mr[1]&&!mr[2])return!1;var Ar=function(qr,jr,gt){return Se(jr[0][3])&&Se(jr[1][3])&&Se(jr[2][3])?(_e(qr,jr,gt),!0):jtmr?[k,jt]:[jt,M];Vt(Tt,Ar[0],Ar[1])}}var ei=[[Math.min(T,M),Math.max(T,M)],[Math.min(k,L),Math.max(k,L)]];["x","y","z"].forEach(function(qr){for(var jr=[],gt=0;gt0&&(At.push(Mr.id),qr==="x"?Kt.push([Mr.distRatio,0,0]):qr==="y"?Kt.push([0,Mr.distRatio,0]):Kt.push([0,0,Mr.distRatio]))}else qr==="x"?xt=Ue(1,d-1):qr==="y"?xt=Ue(1,v-1):xt=Ue(1,m-1);At.length>0&&(qr==="x"?jr[Ge]=rr(St,At,Je,We,Kt,jr[Ge]):qr==="y"?jr[Ge]=tt(St,At,Je,We,Kt,jr[Ge]):jr[Ge]=je(St,At,Je,We,Kt,jr[Ge]),Ge++),xt.length>0&&(qr==="x"?jr[Ge]=mt(St,xt,Je,We,jr[Ge]):qr==="y"?jr[Ge]=Ht(St,xt,Je,We,jr[Ge]):jr[Ge]=at(St,xt,Je,We,jr[Ge]),Ge++)}var Gr=e.caps[qr];Gr.show&&Gr.fill&&(N(Gr.fill),qr==="x"?jr[Ge]=mt(St,[0,d-1],Je,We,jr[Ge]):qr==="y"?jr[Ge]=Ht(St,[0,v-1],Je,We,jr[Ge]):jr[Ge]=at(St,[0,m-1],Je,We,jr[Ge]),Ge++)}}),s===0&&z(),e._meshX=x,e._meshY=C,e._meshZ=S,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return rt(),e}function yDt(e,t){var r=e.glplot.gl,n=hDt({gl:r}),i=new P8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}R8e.exports={findNearestOnAxis:fk,generateIsoMeshes:I8e,createIsosurfaceTrace:yDt}});var F8e=ye((mmr,D8e)=>{"use strict";D8e.exports={attributes:pF(),supplyDefaults:aZ().supplyDefaults,calc:lZ(),colorbar:{min:"cmin",max:"cmax"},plot:yF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:ux(),categories:["gl3d","showLegend"],meta:{}}});var q8e=ye((ymr,z8e)=>{"use strict";z8e.exports=F8e()});var fZ=ye((_mr,B8e)=>{"use strict";var _Dt=Tu(),xh=pF(),xDt=lk(),O8e=Vl(),cZ=Ao().extendFlat,bDt=mc().overrideAll,_F=B8e.exports=bDt(cZ({x:xh.x,y:xh.y,z:xh.z,value:xh.value,isomin:xh.isomin,isomax:xh.isomax,surface:xh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:xh.slices,caps:xh.caps,text:xh.text,hovertext:xh.hovertext,xhoverformat:xh.xhoverformat,yhoverformat:xh.yhoverformat,zhoverformat:xh.zhoverformat,valuehoverformat:xh.valuehoverformat,hovertemplate:xh.hovertemplate,hovertemplatefallback:xh.hovertemplatefallback},_Dt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:xh.colorbar,opacity:xh.opacity,opacityscale:xDt.opacityscale,lightposition:xh.lightposition,lighting:xh.lighting,flatshading:xh.flatshading,contour:xh.contour,hoverinfo:cZ({},O8e.hoverinfo),showlegend:cZ({},O8e.showlegend,{dflt:!1})}),"calc","nested");_F.x.editType=_F.y.editType=_F.z.editType=_F.value.editType="calc+clearAxisTypes"});var U8e=ye((xmr,N8e)=>{"use strict";var wDt=Pr(),TDt=fZ(),ADt=aZ().supplyIsoDefaults,SDt=QX().opacityscaleDefaults;N8e.exports=function(t,r,n,i){function a(o,s){return wDt.coerce(t,r,TDt,o,s)}ADt(t,r,n,i,a),SDt(t,r,i,a)}});var j8e=ye((bmr,H8e)=>{"use strict";var MDt=qd().gl_mesh3d,EDt=o1().parseColorScale,kDt=Pr().isArrayOrTypedArray,CDt=a1(),LDt=tc().extractOpts,V8e=r5(),hZ=yF().findNearestOnAxis,PDt=yF().generateIsoMeshes;function G8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var dZ=G8e.prototype;dZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=hZ(r,this.data._Xs).id,l=hZ(n,this.data._Ys).id,u=hZ(i,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return kDt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};dZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=PDt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=V8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=V8e(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:CDt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=LDt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=EDt(e),this.mesh.update(o)};dZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function IDt(e,t){var r=e.glplot.gl,n=MDt({gl:r}),i=new G8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}H8e.exports=IDt});var X8e=ye((wmr,W8e)=>{"use strict";W8e.exports={attributes:fZ(),supplyDefaults:U8e(),calc:lZ(),colorbar:{min:"cmin",max:"cmax"},plot:j8e(),moduleType:"trace",name:"volume",basePlotModule:ux(),categories:["gl3d","showLegend"],meta:{}}});var Y8e=ye((Tmr,Z8e)=>{"use strict";Z8e.exports=X8e()});var $8e=ye((Amr,J8e)=>{"use strict";var RDt=Oa(),K8e=Pr(),DDt=td(),FDt=e5();J8e.exports=function(t,r,n,i){function a(c,f){return K8e.coerce(t,r,FDt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&K8e.isArrayOrTypedArray(d)?d:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=RDt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),DDt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var eRe=ye((Smr,Q8e)=>{"use strict";var zDt=gv();Q8e.exports=function(t,r){r.intensity&&zDt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var aRe=ye((Mmr,nRe)=>{"use strict";var qDt=qd().gl_mesh3d,ODt=qd().delaunay_triangulate,BDt=qd().alpha_shape,NDt=qd().convex_hull,UDt=o1().parseColorScale,VDt=Pr().isArrayOrTypedArray,mZ=a1(),GDt=tc().extractOpts,tRe=r5();function iRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var yZ=iRe.prototype;yZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return VDt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function rRe(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}yZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=tRe(vZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),vZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),vZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!gZ(e.i,n)||!gZ(e.j,n)||!gZ(e.k,n))return;a=tRe(pZ(e.i),pZ(e.j),pZ(e.k))}else e.alphahull===0?a=NDt(i):e.alphahull>0?a=BDt(e.alphahull,i):a=HDt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:mZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=GDt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=UDt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=rRe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=rRe(e.facecolor)):(this.color=e.color,o.meshColor=mZ(e.color));this.mesh.update(o)};yZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function jDt(e,t){var r=e.glplot.gl,n=qDt({gl:r}),i=new iRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}nRe.exports=jDt});var sRe=ye((Emr,oRe)=>{"use strict";oRe.exports={attributes:e5(),supplyDefaults:$8e(),calc:eRe(),colorbar:{min:"cmin",max:"cmax"},plot:aRe(),moduleType:"trace",name:"mesh3d",basePlotModule:ux(),categories:["gl3d","showLegend"],meta:{}}});var uRe=ye((kmr,lRe)=>{"use strict";lRe.exports=sRe()});var xZ=ye((Cmr,fRe)=>{"use strict";var WDt=Tu(),i5=vf().axisHoverFormat,{hovertemplateAttrs:XDt,templatefallbackAttrs:ZDt}=Pl(),YDt=e5(),cRe=Vl(),_Z=Ao().extendFlat,xF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:XDt({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:ZDt({editType:"calc"}),uhoverformat:i5("u",1),vhoverformat:i5("v",1),whoverformat:i5("w",1),xhoverformat:i5("x"),yhoverformat:i5("y"),zhoverformat:i5("z"),showlegend:_Z({},cRe.showlegend,{dflt:!1})};_Z(xF,WDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var KDt=["opacity","lightposition","lighting"];KDt.forEach(function(e){xF[e]=YDt[e]});xF.hoverinfo=_Z({},cRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});fRe.exports=xF});var dRe=ye((Lmr,hRe)=>{"use strict";var JDt=Pr(),$Dt=td(),QDt=xZ();hRe.exports=function(t,r,n,i){function a(d,v){return JDt.coerce(t,r,QDt,d,v)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),$Dt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var pRe=ye((Pmr,vRe)=>{"use strict";var eFt=gv();vRe.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var tFt=qd().gl_cone3d,rFt=qd().gl_cone3d.createConeMesh,iFt=Pr().simpleMap,nFt=o1().parseColorScale,aFt=tc().extractOpts,oFt=Pr().isArrayOrTypedArray,gRe=r5();function mRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var bZ=mRe.prototype;bZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return oFt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var sFt={xaxis:0,yaxis:1,zaxis:2},lFt={tip:1,tail:0,cm:.25,center:.5},uFt={tip:1,tail:1,cm:.75,center:.5};function yRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[sFt[f]];return iFt(c,function(v){return h.d2l(v)*d})}i.vectors=gRe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=gRe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=aFt(t);i.colormap=nFt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=lFt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var l=tFt(i),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=uFt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}bZ.update=function(e){this.data=e;var t=yRe(this.scene,e);this.mesh.update(t)};bZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function cFt(e,t){var r=e.glplot.gl,n=yRe(e,t),i=rFt(r,n),a=new mRe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}_Re.exports=cFt});var wRe=ye((Rmr,bRe)=>{"use strict";bRe.exports={moduleType:"trace",name:"cone",basePlotModule:ux(),categories:["gl3d","showLegend"],attributes:xZ(),supplyDefaults:dRe(),colorbar:{min:"cmin",max:"cmax"},calc:pRe(),plot:xRe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var ARe=ye((Dmr,TRe)=>{"use strict";TRe.exports=wRe()});var TZ=ye((Fmr,MRe)=>{"use strict";var fFt=Tu(),n5=vf().axisHoverFormat,{hovertemplateAttrs:hFt,templatefallbackAttrs:dFt}=Pl(),vFt=e5(),SRe=Vl(),wZ=Ao().extendFlat,bF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:hFt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:dFt({editType:"calc"}),uhoverformat:n5("u",1),vhoverformat:n5("v",1),whoverformat:n5("w",1),xhoverformat:n5("x"),yhoverformat:n5("y"),zhoverformat:n5("z"),showlegend:wZ({},SRe.showlegend,{dflt:!1})};wZ(bF,fFt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var pFt=["opacity","lightposition","lighting"];pFt.forEach(function(e){bF[e]=vFt[e]});bF.hoverinfo=wZ({},SRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});MRe.exports=bF});var kRe=ye((zmr,ERe)=>{"use strict";var gFt=Pr(),mFt=td(),yFt=TZ();ERe.exports=function(t,r,n,i){function a(h,d){return gFt.coerce(t,r,yFt,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),mFt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var zRe=ye((qmr,FRe)=>{"use strict";var PRe=qd().gl_streamtube3d,_Ft=PRe.createTubeMesh,xFt=Pr(),bFt=o1().parseColorScale,wFt=tc().extractOpts,CRe=r5(),IRe={xaxis:0,yaxis:1,zaxis:2};function RRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var SZ=RRe.prototype;SZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[IRe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function LRe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function AZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function DRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,q){var V=r[q],G=n[IRe[q]];return xFt.simpleMap(z,function(Z){return V.d2l(Z)*G})}if(a.vectors=CRe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=CRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=LRe(s),d=LRe(u),v=new Array(h.length*d.length),m=0,b=0;b{"use strict";qRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:ux(),categories:["gl3d","showLegend"],attributes:TZ(),supplyDefaults:kRe(),colorbar:{min:"cmin",max:"cmax"},calc:gF().calc,plot:zRe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var NRe=ye((Bmr,BRe)=>{"use strict";BRe.exports=ORe()});var rw=ye((Umr,jRe)=>{"use strict";var{hovertemplateAttrs:AFt,texttemplateAttrs:SFt,templatefallbackAttrs:URe}=Pl(),MFt=Pg(),Qm=pf(),EFt=Vl(),VRe=Tu(),kFt=Pd().dash,tw=Ao().extendFlat,CFt=mc().overrideAll,rg=Qm.marker,GRe=Qm.line,HRe=rg.line,Nmr=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");jRe.exports=CFt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:tw({},Qm.mode,{dflt:"markers"}),text:tw({},Qm.text,{}),texttemplate:SFt({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:URe({editType:"plot"}),hovertext:tw({},Qm.hovertext,{}),textfont:Qm.textfont,textposition:Qm.textposition,line:{color:GRe.color,width:GRe.width,dash:kFt},connectgaps:Qm.connectgaps,marker:tw({symbol:rg.symbol,opacity:rg.opacity,angle:rg.angle,angleref:tw({},rg.angleref,{values:["previous","up","north"]}),standoff:rg.standoff,size:rg.size,sizeref:rg.sizeref,sizemin:rg.sizemin,sizemode:rg.sizemode,colorbar:rg.colorbar,line:tw({width:HRe.width,dash:HRe.dash},VRe("marker.line")),gradient:rg.gradient},VRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:MFt(),selected:Qm.selected,unselected:Qm.unselected,hoverinfo:tw({},EFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:AFt(),hovertemplatefallback:URe()},"calc","nested")});var XRe=ye((Vmr,WRe)=>{"use strict";var wF=Pr(),MZ=Ru(),LFt=$p(),PFt=D0(),IFt=F0(),RFt=Fg(),DFt=rw(),FFt=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");WRe.exports=function(t,r,n,i){function a(d,v){return wF.coerce(t,r,DFt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||wF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&wF.warn(FFt),c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),MZ.hasMarkers(r)&&LFt(t,r,n,i,a,{gradient:!0}),MZ.hasLines(r)&&(PFt(t,r,n,i,a),a("connectgaps")),MZ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),IFt(t,r,i,a)),a("fill"),r.fill!=="none"&&RFt(t,r,n,a),wF.coerceSelectionMarkerOpacity(r,a)}});var KRe=ye((Gmr,YRe)=>{"use strict";var ZRe=ho();YRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=ZRe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=ZRe.tickText(o,o.c2l(s[1]),!0).text,i}});var TF=ye((Hmr,eDe)=>{"use strict";var EZ=Eo(),JRe=fs().BADNUM,zFt=z0(),qFt=Dm(),OFt=q0(),BFt=Pr().isArrayOrTypedArray,$Re=Pr()._;function QRe(e){return e&&typeof e=="string"}eDe.exports=function(t,r){var n=BFt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return QRe(h)||EZ(h)}:o=QRe;for(var s=0;s{"use strict";Mv.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Mv.axesNames=["lonaxis","lataxis"];Mv.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Mv.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Mv.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Mv.clipPad=.001;Mv.precision=.1;Mv.landColor="#F0DC82";Mv.waterColor="#3399FF";Mv.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Mv.sphereSVG={type:"Sphere"};Mv.fillLayers={ocean:1,land:1,lakes:1};Mv.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Mv.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Mv.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Mv.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var kZ=ye((AF,tDe)=>{(function(e,t){typeof AF=="object"&&typeof tDe!="undefined"?t(AF):(e=e||self,t(e.topojson=e.topojson||{}))})(AF,function(e){"use strict";function t(M){return M}function r(M){if(M==null)return t;var T,L,x=M.scale[0],C=M.scale[1],S=M.translate[0],g=M.translate[1];return function(P,E){E||(T=L=0);var z=2,q=P.length,V=new Array(q);for(V[0]=(T+=P[0])*x+S,V[1]=(L+=P[1])*C+g;zS&&(S=z[0]),z[1]g&&(g=z[1])}function E(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(E);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}M.arcs.forEach(function(z){for(var q=-1,V=z.length,G;++qS&&(S=G[0]),G[1]g&&(g=G[1])});for(L in M.objects)E(M.objects[L]);return[x,C,S,g]}function i(M,T){for(var L,x=M.length,C=x-T;C<--x;)L=M[C],M[C++]=M[x],M[x]=L}function a(M,T){return typeof T=="string"&&(T=M.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(M,L)})}:o(M,T)}function o(M,T){var L=T.id,x=T.bbox,C=T.properties==null?{}:T.properties,S=s(M,T);return L==null&&x==null?{type:"Feature",properties:C,geometry:S}:x==null?{type:"Feature",id:L,properties:C,geometry:S}:{type:"Feature",id:L,bbox:x,properties:C,geometry:S}}function s(M,T){var L=r(M.transform),x=M.arcs;function C(q,V){V.length&&V.pop();for(var G=x[q<0?~q:q],Z=0,j=G.length;Z1)x=f(M,T,L);else for(C=0,x=new Array(S=M.arcs.length);C1)for(var V=1,G=P(z[0]),Z,j;VG&&(j=z[0],z[0]=z[V],z[V]=j,G=Z);return z}).filter(function(E){return E.length>0})}}function m(M,T){for(var L=0,x=M.length;L>>1;M[C]=2))throw new Error("n must be \u22652");E=M.bbox||n(M);var L=E[0],x=E[1],C=E[2],S=E[3],g;T={scale:[C-L?(C-L)/(g-1):1,S-x?(S-x)/(g-1):1],translate:[L,x]}}else E=M.bbox;var P=p(T),E,z,q=M.objects,V={};function G(N){return P(N)}function Z(N){var H;switch(N.type){case"GeometryCollection":H={type:"GeometryCollection",geometries:N.geometries.map(Z)};break;case"Point":H={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":H={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(H.id=N.id),N.bbox!=null&&(H.bbox=N.bbox),N.properties!=null&&(H.properties=N.properties),H}function j(N){var H=0,re=1,ae=N.length,_e,Ee=new Array(ae);for(Ee[0]=P(N[0],0);++H{"use strict";var CZ=rDe.exports={},NFt=hk().locationmodeToLayer,UFt=kZ().feature;CZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};CZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};CZ.getTopojsonFeatures=function(e,t){var r=NFt[e.locationmode],n=t.objects[r];return UFt(t,n).features}});var hx=ye(dk=>{"use strict";var VFt=fs().BADNUM;dk.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};dk.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};dk.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{iDe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var kF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var qp=63710088e-1,PZ={centimeters:qp*100,centimetres:qp*100,degrees:360/(2*Math.PI),feet:qp*3.28084,inches:qp*39.37,kilometers:qp/1e3,kilometres:qp/1e3,meters:qp,metres:qp,miles:qp/1609.344,millimeters:qp*1e3,millimetres:qp*1e3,nauticalmiles:qp/1852,radians:1,yards:qp*1.0936},LZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function dx(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function GFt(e,t,r={}){switch(e){case"Point":return IZ(t).geometry;case"LineString":return DZ(t).geometry;case"Polygon":return RZ(t).geometry;case"MultiPoint":return oDe(t).geometry;case"MultiLineString":return aDe(t).geometry;case"MultiPolygon":return sDe(t).geometry;default:throw new Error(e+" is invalid")}}function IZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!MF(e[0])||!MF(e[1]))throw new Error("coordinates must contain numbers");return dx({type:"Point",coordinates:e},t,r)}function HFt(e,t,r={}){return EF(e.map(n=>IZ(n,t)),r)}function RZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aRZ(n,t)),r)}function DZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return dx({type:"LineString",coordinates:e},t,r)}function WFt(e,t,r={}){return EF(e.map(n=>DZ(n,t)),r)}function EF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function aDe(e,t,r={}){return dx({type:"MultiLineString",coordinates:e},t,r)}function oDe(e,t,r={}){return dx({type:"MultiPoint",coordinates:e},t,r)}function sDe(e,t,r={}){return dx({type:"MultiPolygon",coordinates:e},t,r)}function XFt(e,t,r={}){return dx({type:"GeometryCollection",geometries:e},t,r)}function ZFt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function lDe(e,t="kilometers"){let r=PZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function FZ(e,t="kilometers"){let r=PZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function YFt(e,t){return uDe(FZ(e,t))}function KFt(e){let t=e%360;return t<0&&(t+=360),t}function JFt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function uDe(e){return e%(2*Math.PI)*180/Math.PI}function $Ft(e){return e%360*Math.PI/180}function QFt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return lDe(FZ(e,t),r)}function ezt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=LZ[t];if(!n)throw new Error("invalid original units");let i=LZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function MF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function tzt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function rzt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!MF(t))throw new Error("bbox must only contain numbers")})}function izt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ic.areaFactors=LZ;ic.azimuthToBearing=JFt;ic.bearingToAzimuth=KFt;ic.convertArea=ezt;ic.convertLength=QFt;ic.degreesToRadians=$Ft;ic.earthRadius=qp;ic.factors=PZ;ic.feature=dx;ic.featureCollection=EF;ic.geometry=GFt;ic.geometryCollection=XFt;ic.isNumber=MF;ic.isObject=tzt;ic.lengthToDegrees=YFt;ic.lengthToRadians=FZ;ic.lineString=DZ;ic.lineStrings=WFt;ic.multiLineString=aDe;ic.multiPoint=oDe;ic.multiPolygon=sDe;ic.point=IZ;ic.points=HFt;ic.polygon=RZ;ic.polygons=jFt;ic.radiansToDegrees=uDe;ic.radiansToLength=lDe;ic.round=ZFt;ic.validateBBox=rzt;ic.validateId=izt});var LF=ye(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});var Wv=kF();function vk(e,t,r){if(e!==null)for(var n,i,a,o,s,l,u,c=0,f=0,h,d=e.type,v=d==="FeatureCollection",m=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||m>c){s=f,l=n,u=v,c=m,a=0;return}var b=Wv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,m,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function czt(e,t,r){var n=r,i=!1;return hDe(e,function(a,o,s,l,u){i===!1&&r===void 0?n=a:n=t(n,a,o,s,l,u),i=!0}),n}function dDe(e,t){if(!e)throw new Error("geojson is required");CF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(PF,"__esModule",{value:!0});var vDe=kF(),vzt=LF();function mDe(e){return vzt.geomReduce.call(void 0,e,(t,r)=>t+pzt(r),0)}function pzt(e){let t=0,r;switch(e.type){case"Polygon":return pDe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(gDe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*qZ,l=a[1]*qZ,u=o[0]*qZ;r+=(u-s)*Math.sin(l),n++}return r*gzt}var mzt=mDe;PF.area=mDe;PF.default=mzt});var xDe=ye(IF=>{"use strict";Object.defineProperty(IF,"__esModule",{value:!0});var yzt=kF(),_zt=LF();function _De(e,t={}){let r=0,n=0,i=0;return _zt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),yzt.point.call(void 0,[r/i,n/i],t.properties)}var xzt=_De;IF.centroid=_De;IF.default=xzt});var wDe=ye(RF=>{"use strict";Object.defineProperty(RF,"__esModule",{value:!0});var bzt=LF();function bDe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return bzt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var TDe={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},Tzt=new Set(Object.values(TDe));ADe.exports={usaLocationAbbreviations:Tzt,usaLocationList:TDe}});var ey=ye((tyr,CDe)=>{"use strict";var Azt=Fa(),EDe=nDe(),{area:Szt}=yDe(),{centroid:Mzt}=xDe(),{bbox:Ezt}=wDe(),kzt=$S(),iw=J1(),Czt=Sy(),Lzt=BS(),DF=BM(),{usaLocationAbbreviations:Pzt,usaLocationList:Izt}=SDe(),MDe=Object.keys(EDe),Rzt={"ISO-3":kzt,"USA-states":Fzt,"country names":Dzt};function Dzt(e){for(var t=0;t0&&e[t+1][0]<0)return t;return null}function qzt(e){var t=e.geometry,r=t.coordinates,n=e.id,i=[],a,o,s,l;switch(n==="RUS"||n==="FJI"?a=function(u){var c;if(OZ(u)===null)c=u;else for(c=new Array(u.length),l=0;lc?f[h++]=[u[l][0]+pk,u[l][1]]:l===c?(f[h++]=u[l],f[h++]=[u[l][0],-90]):f[h++]=u[l];var d=DF.tester(f);d.pts.pop(),i.push(d)}:a=function(u){i.push(DF.tester(u))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=Bzt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else iw.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[f]}switch(r.type){case"FeatureCollection":var l=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return Mzt(r).geometry.coordinates}function Nzt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){Azt.json(l,function(f,h){if(f){delete t[l];var d=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=h,u(h)})})}function i(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;as-l);if(t.length<2)return null;let r=t.length,n=t[r-1]-t[0];if(n>=360)return null;let i=-1/0,a=-1;for(let s=0;si&&(i=l,a=s)}let o=360-n;return i<=o?null:[t[a+1],t[a]+pk]}function Gzt([e,t]){return[e,e>0&&t<0?t+pk:t]}CDe.exports={locationToFeature:zzt,feature2polygons:qzt,getTraceGeojson:kDe,extractTraceFeature:Ozt,fetchTraceGeoData:Nzt,computeBbox:Uzt,doesCrossAntiMeridian:OZ,getFitboundsLonRange:Vzt,unwrapLonRange:Gzt,ANTIMERIDIAN_LON_SHIFT:pk}});var BZ=ye((ryr,IDe)=>{"use strict";var Hzt=Fa(),jzt=So(),LDe=ka(),PDe=sp(),Wzt=PDe.stylePoints,Xzt=PDe.styleText;IDe.exports=function(t,r){r&&Zzt(t,r)};function Zzt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),Wzt(n,r,e),Xzt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=Hzt.select(this),o=i.trace,s=o.line||{};a.call(LDe.stroke,s.color).call(jzt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(LDe.fill,o.fillcolor)})}});var GZ=ye((iyr,FDe)=>{"use strict";var RDe=Fa(),zF=Pr(),Yzt=SF().getTopojsonFeatures,NZ=hx(),FF=ey(),DDe=Mg().findExtremes,VZ=fs().BADNUM,Kzt=O0().calcMarkerSize,UZ=Ru(),Jzt=BZ();function $zt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=zF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===VZ&&RDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=RDe.select(this),l=o[0].trace;if(UZ.hasLines(l)||l.fill!=="none"){var u=NZ.calcTraceToLineCoords(o),c=l.fill!=="none"?NZ.makePolygon(u):NZ.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}UZ.hasMarkers(l)&&s.selectAll("path.point").data(zF.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),UZ.hasText(l)&&s.selectAll("g").data(zF.identity).enter().append("g").append("text").each(function(f){a(f,this)}),Jzt(e,o)})}function Qzt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(zF.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?FF.extractTraceFeature(e):Yzt(r,i.topojson);for(o=0;o{"use strict";var e7t=ef(),t7t=fs().BADNUM,r7t=xT(),i7t=Pr().fillText,n7t=rw();zDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(k){var M=k.lonlat;if(M[0]===t7t||u(M))return 1/0;var T=c(M),L=c([r,n]),x=Math.abs(T[0]-L[0]),C=Math.abs(T[1]-L[1]),S=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(x*x+C*C)-S,1-3/S)}if(e7t.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],m=h.mrc||1;t.x0=v[0]-m,t.x1=v[0]+m,t.y0=v[1]-m,t.y1=v[1]+m,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:l};var p=a._module.formatLabels(h,a,b);return t.lonLabel=p.lonLabel,t.latLabel=p.latLabel,t.color=r7t(a,h),t.extraText=a7t(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function a7t(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?n7t.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(n.lon+f(r.lonLabel)):l&&c.push(n.lat+f(r.latLabel)),u&&i7t(t,e,c),c.join("
")}});var BDe=ye((ayr,ODe)=>{"use strict";ODe.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var VDe=ye((oyr,UDe)=>{"use strict";var NDe=Ru(),o7t=fs().BADNUM;UDe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h,d=!NDe.hasMarkers(s)&&!NDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof qF=="object"&&typeof GDe!="undefined"?qF:e.d3=e.d3||{})})(qF,(function(e){"use strict";function t(ke,be){return kebe?1:ke>=be?0:NaN}function r(ke){return ke.length===1&&(ke=n(ke)),{left:function(be,Be,Le,me){for(Le==null&&(Le=0),me==null&&(me=be.length);Le>>1;ke(be[Pe],Be)<0?Le=Pe+1:me=Pe}return Le},right:function(be,Be,Le,me){for(Le==null&&(Le=0),me==null&&(me=be.length);Le>>1;ke(be[Pe],Be)>0?me=Pe:Le=Pe+1}return Le}}}function n(ke){return function(be,Be){return t(ke(be),Be)}}var i=r(t),a=i.right,o=i.left;function s(ke,be){be==null&&(be=l);for(var Be=0,Le=ke.length-1,me=ke[0],Pe=new Array(Le<0?0:Le);Beke?1:be>=ke?0:NaN}function f(ke){return ke===null?NaN:+ke}function h(ke,be){var Be=ke.length,Le=0,me=-1,Pe=0,ce,He,lt=0;if(be==null)for(;++me1)return lt/(Le-1)}function d(ke,be){var Be=h(ke,be);return Be&&Math.sqrt(Be)}function v(ke,be){var Be=ke.length,Le=-1,me,Pe,ce;if(be==null){for(;++Le=me)for(Pe=ce=me;++Leme&&(Pe=me),ce=me)for(Pe=ce=me;++Leme&&(Pe=me),ce0)return[ke];if((Le=be0)for(ke=Math.ceil(ke/He),be=Math.floor(be/He),ce=new Array(Pe=Math.ceil(be-ke+1));++me=0?(Pe>=L?10:Pe>=x?5:Pe>=C?2:1)*Math.pow(10,me):-Math.pow(10,-me)/(Pe>=L?10:Pe>=x?5:Pe>=C?2:1)}function P(ke,be,Be){var Le=Math.abs(be-ke)/Math.max(0,Be),me=Math.pow(10,Math.floor(Math.log(Le)/Math.LN10)),Pe=Le/me;return Pe>=L?me*=10:Pe>=x?me*=5:Pe>=C&&(me*=2),beat;)ct.pop(),--ar;var Vt=new Array(ar+1),rr;for(Pe=0;Pe<=ar;++Pe)rr=Vt[Pe]=[],rr.x0=Pe>0?ct[Pe-1]:Ht,rr.x1=Pe=1)return+Be(ke[Le-1],Le-1,ke);var Le,me=(Le-1)*be,Pe=Math.floor(me),ce=+Be(ke[Pe],Pe,ke),He=+Be(ke[Pe+1],Pe+1,ke);return ce+(He-ce)*(me-Pe)}}function V(ke,be,Be){return ke=p.call(ke,f).sort(t),Math.ceil((Be-be)/(2*(q(ke,.75)-q(ke,.25))*Math.pow(ke.length,-1/3)))}function G(ke,be,Be){return Math.ceil((Be-be)/(3.5*d(ke)*Math.pow(ke.length,-1/3)))}function Z(ke,be){var Be=ke.length,Le=-1,me,Pe;if(be==null){for(;++Le=me)for(Pe=me;++LePe&&(Pe=me)}else for(;++Le=me)for(Pe=me;++LePe&&(Pe=me);return Pe}function j(ke,be){var Be=ke.length,Le=Be,me=-1,Pe,ce=0;if(be==null)for(;++me=0;)for(ce=ke[be],Be=ce.length;--Be>=0;)Pe[--me]=ce[Be];return Pe}function re(ke,be){var Be=ke.length,Le=-1,me,Pe;if(be==null){for(;++Le=me)for(Pe=me;++Leme&&(Pe=me)}else for(;++Le=me)for(Pe=me;++Leme&&(Pe=me);return Pe}function ae(ke,be){for(var Be=be.length,Le=new Array(Be);Be--;)Le[Be]=ke[be[Be]];return Le}function _e(ke,be){if(Be=ke.length){var Be,Le=0,me=0,Pe,ce=ke[me];for(be==null&&(be=t);++Le{(function(e,t){typeof OF=="object"&&typeof HDe!="undefined"?t(OF,gk()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(OF,(function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(kt){a(i,kt,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(kt,Zt,Er){var xr=kt.s=Zt+Er,Kr=xr-Zt,Mi=xr-Kr;kt.t=Zt-Mi+(Er-Kr)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,d=l/180,v=Math.abs,m=Math.atan,b=Math.atan2,p=Math.cos,k=Math.ceil,M=Math.exp,T=Math.log,L=Math.pow,x=Math.sin,C=Math.sign||function(kt){return kt>0?1:kt<0?-1:0},S=Math.sqrt,g=Math.tan;function P(kt){return kt>1?0:kt<-1?l:Math.acos(kt)}function E(kt){return kt>1?u:kt<-1?-u:Math.asin(kt)}function z(kt){return(kt=x(kt/2))*kt}function q(){}function V(kt,Zt){kt&&Z.hasOwnProperty(kt.type)&&Z[kt.type](kt,Zt)}var G={Feature:function(kt,Zt){V(kt.geometry,Zt)},FeatureCollection:function(kt,Zt){for(var Er=kt.features,xr=-1,Kr=Er.length;++xr=0?1:-1,Kr=xr*Er,Mi=p(Zt),Xi=x(Zt),dn=ie*Xi,wn=ge*Mi+dn*p(Kr),On=dn*xr*x(Kr);re.add(b(On,wn)),Ce=kt,ge=Mi,ie=Xi}function me(kt){return ae.reset(),H(kt,Se),ae*2}function Pe(kt){return[b(kt[1],kt[0]),E(kt[2])]}function ce(kt){var Zt=kt[0],Er=kt[1],xr=p(Er);return[xr*p(Zt),xr*x(Zt),x(Er)]}function He(kt,Zt){return kt[0]*Zt[0]+kt[1]*Zt[1]+kt[2]*Zt[2]}function lt(kt,Zt){return[kt[1]*Zt[2]-kt[2]*Zt[1],kt[2]*Zt[0]-kt[0]*Zt[2],kt[0]*Zt[1]-kt[1]*Zt[0]]}function mt(kt,Zt){kt[0]+=Zt[0],kt[1]+=Zt[1],kt[2]+=Zt[2]}function Ht(kt,Zt){return[kt[0]*Zt,kt[1]*Zt,kt[2]*Zt]}function at(kt){var Zt=S(kt[0]*kt[0]+kt[1]*kt[1]+kt[2]*kt[2]);kt[0]/=Zt,kt[1]/=Zt,kt[2]/=Zt}var ct,ar,Vt,rr,tt,je,Ue,Ae,rt=r(),St,Tt,dt={point:Et,lineStart:jt,lineEnd:or,polygonStart:function(){dt.point=mr,dt.lineStart=Ar,dt.lineEnd=ei,rt.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),dt.point=Et,dt.lineStart=jt,dt.lineEnd=or,re<0?(ct=-(Vt=180),ar=-(rr=90)):rt>o?rr=90:rt<-o&&(ar=-90),Tt[0]=ct,Tt[1]=Vt},sphere:function(){ct=-(Vt=180),ar=-(rr=90)}};function Et(kt,Zt){St.push(Tt=[ct=kt,Vt=kt]),Ztrr&&(rr=Zt)}function pt(kt,Zt){var Er=ce([kt*d,Zt*d]);if(Ae){var xr=lt(Ae,Er),Kr=[xr[1],-xr[0],0],Mi=lt(Kr,xr);at(Mi),Mi=Pe(Mi);var Xi=kt-tt,dn=Xi>0?1:-1,wn=Mi[0]*h*dn,On,Yi=v(Xi)>180;Yi^(dn*ttrr&&(rr=On)):(wn=(wn+360)%360-180,Yi^(dn*ttrr&&(rr=Zt))),Yi?ktqr(ct,Vt)&&(Vt=kt):qr(kt,Vt)>qr(ct,Vt)&&(ct=kt):Vt>=ct?(ktVt&&(Vt=kt)):kt>tt?qr(ct,kt)>qr(ct,Vt)&&(Vt=kt):qr(kt,Vt)>qr(ct,Vt)&&(ct=kt)}else St.push(Tt=[ct=kt,Vt=kt]);Ztrr&&(rr=Zt),Ae=Er,tt=kt}function jt(){dt.point=pt}function or(){Tt[0]=ct,Tt[1]=Vt,dt.point=Et,Ae=null}function mr(kt,Zt){if(Ae){var Er=kt-tt;rt.add(v(Er)>180?Er+(Er>0?360:-360):Er)}else je=kt,Ue=Zt;Se.point(kt,Zt),pt(kt,Zt)}function Ar(){Se.lineStart()}function ei(){mr(je,Ue),Se.lineEnd(),v(rt)>o&&(ct=-(Vt=180)),Tt[0]=ct,Tt[1]=Vt,Ae=null}function qr(kt,Zt){return(Zt-=kt)<0?Zt+360:Zt}function jr(kt,Zt){return kt[0]-Zt[0]}function gt(kt,Zt){return kt[0]<=kt[1]?kt[0]<=Zt&&Zt<=kt[1]:Ztqr(xr[0],xr[1])&&(xr[1]=Kr[1]),qr(Kr[0],xr[1])>qr(xr[0],xr[1])&&(xr[0]=Kr[0])):Mi.push(xr=Kr);for(Xi=-1/0,Er=Mi.length-1,Zt=0,xr=Mi[Er];Zt<=Er;xr=Kr,++Zt)Kr=Mi[Zt],(dn=qr(xr[1],Kr[0]))>Xi&&(Xi=dn,ct=Kr[0],Vt=xr[1])}return St=Tt=null,ct===1/0||ar===1/0?[[NaN,NaN],[NaN,NaN]]:[[ct,ar],[Vt,rr]]}var Je,We,et,xt,At,Kt,Qt,Mr,Gr,Ir,Yr,_i,Pi,ai,mi,un,Fn={sphere:q,point:An,lineStart:Qn,lineEnd:Yn,polygonStart:function(){Fn.lineStart=Gt,Fn.lineEnd=wt},polygonEnd:function(){Fn.lineStart=Qn,Fn.lineEnd=Yn}};function An(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt);Hn(Er*p(kt),Er*x(kt),x(Zt))}function Hn(kt,Zt,Er){++Je,et+=(kt-et)/Je,xt+=(Zt-xt)/Je,At+=(Er-At)/Je}function Qn(){Fn.point=Vi}function Vi(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt);ai=Er*p(kt),mi=Er*x(kt),un=x(Zt),Fn.point=Jn,Hn(ai,mi,un)}function Jn(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt),xr=Er*p(kt),Kr=Er*x(kt),Mi=x(Zt),Xi=b(S((Xi=mi*Mi-un*Kr)*Xi+(Xi=un*xr-ai*Mi)*Xi+(Xi=ai*Kr-mi*xr)*Xi),ai*xr+mi*Kr+un*Mi);We+=Xi,Kt+=Xi*(ai+(ai=xr)),Qt+=Xi*(mi+(mi=Kr)),Mr+=Xi*(un+(un=Mi)),Hn(ai,mi,un)}function Yn(){Fn.point=An}function Gt(){Fn.point=tr}function wt(){ir(_i,Pi),Fn.point=An}function tr(kt,Zt){_i=kt,Pi=Zt,kt*=d,Zt*=d,Fn.point=ir;var Er=p(Zt);ai=Er*p(kt),mi=Er*x(kt),un=x(Zt),Hn(ai,mi,un)}function ir(kt,Zt){kt*=d,Zt*=d;var Er=p(Zt),xr=Er*p(kt),Kr=Er*x(kt),Mi=x(Zt),Xi=mi*Mi-un*Kr,dn=un*xr-ai*Mi,wn=ai*Kr-mi*xr,On=S(Xi*Xi+dn*dn+wn*wn),Yi=E(On),$i=On&&-Yi/On;Gr+=$i*Xi,Ir+=$i*dn,Yr+=$i*wn,We+=Yi,Kt+=Yi*(ai+(ai=xr)),Qt+=Yi*(mi+(mi=Kr)),Mr+=Yi*(un+(un=Mi)),Hn(ai,mi,un)}function wr(kt){Je=We=et=xt=At=Kt=Qt=Mr=Gr=Ir=Yr=0,H(kt,Fn);var Zt=Gr,Er=Ir,xr=Yr,Kr=Zt*Zt+Er*Er+xr*xr;return Krl?kt+Math.round(-kt/f)*f:kt,Zt]}$r.invert=$r;function Ri(kt,Zt,Er){return(kt%=f)?Zt||Er?ti(en(kt),fn(Zt,Er)):en(kt):Zt||Er?fn(Zt,Er):$r}function Hi(kt){return function(Zt,Er){return Zt+=kt,[Zt>l?Zt-f:Zt<-l?Zt+f:Zt,Er]}}function en(kt){var Zt=Hi(kt);return Zt.invert=Hi(-kt),Zt}function fn(kt,Zt){var Er=p(kt),xr=x(kt),Kr=p(Zt),Mi=x(Zt);function Xi(dn,wn){var On=p(wn),Yi=p(dn)*On,$i=x(dn)*On,an=x(wn),Fi=an*Er+Yi*xr;return[b($i*Kr-Fi*Mi,Yi*Er-an*xr),E(Fi*Kr+$i*Mi)]}return Xi.invert=function(dn,wn){var On=p(wn),Yi=p(dn)*On,$i=x(dn)*On,an=x(wn),Fi=an*Kr-$i*Mi;return[b($i*Kr+an*Mi,Yi*Er+Fi*xr),E(Fi*Er-Yi*xr)]},Xi}function yn(kt){kt=Ri(kt[0]*d,kt[1]*d,kt.length>2?kt[2]*d:0);function Zt(Er){return Er=kt(Er[0]*d,Er[1]*d),Er[0]*=h,Er[1]*=h,Er}return Zt.invert=function(Er){return Er=kt.invert(Er[0]*d,Er[1]*d),Er[0]*=h,Er[1]*=h,Er},Zt}function Mn(kt,Zt,Er,xr,Kr,Mi){if(Er){var Xi=p(Zt),dn=x(Zt),wn=xr*Er;Kr==null?(Kr=Zt+xr*f,Mi=Zt-wn/2):(Kr=Ba(Xi,Kr),Mi=Ba(Xi,Mi),(xr>0?KrMi)&&(Kr+=xr*f));for(var On,Yi=Kr;xr>0?Yi>Mi:Yi1&&kt.push(kt.pop().concat(kt.shift()))},result:function(){var Er=kt;return kt=[],Zt=null,Er}}}function Wa(kt,Zt){return v(kt[0]-Zt[0])=0;--dn)Kr.point(($i=Yi[dn])[0],$i[1]);else xr(an.x,an.p.x,-1,Kr);an=an.p}an=an.o,Yi=an.z,Fi=!Fi}while(!an.v);Kr.lineEnd()}}}function da(kt){if(Zt=kt.length){for(var Zt,Er=0,xr=kt[0],Kr;++Er=0?1:-1,as=Ss*Zo,ws=as>l,Ho=Ca*Ka;if(jn.add(b(Ho*Ss*x(as),Ra*bo+Ho*p(as))),Xi+=ws?Zo+Ss*f:Zo,ws^Fi>=Er^Zn>=Er){var ml=lt(ce(an),ce(Ua));at(ml);var Ws=lt(Mi,ml);at(Ws);var Ls=(ws^Zo>=0?-1:1)*E(Ws[2]);(xr>Ls||xr===Ls&&(ml[0]||ml[1]))&&(dn+=ws^Zo>=0?1:-1)}}return(Xi<-o||Xi0){for(wn||(Kr.polygonStart(),wn=!0),Kr.lineStart(),bo=0;bo1&&Dn&2&&Ka.push(Ka.pop().concat(Ka.shift())),Yi.push(Ka.filter(Ct))}}return an}}function Ct(kt){return kt.length>1}function Sr(kt,Zt){return((kt=kt.x)[0]<0?kt[1]-u-o:u-kt[1])-((Zt=Zt.x)[0]<0?Zt[1]-u-o:u-Zt[1])}var Jr=Gn(function(){return!0},hi,Sn,[-l,-u]);function hi(kt){var Zt=NaN,Er=NaN,xr=NaN,Kr;return{lineStart:function(){kt.lineStart(),Kr=1},point:function(Mi,Xi){var dn=Mi>0?l:-l,wn=v(Mi-Zt);v(wn-l)0?u:-u),kt.point(xr,Er),kt.lineEnd(),kt.lineStart(),kt.point(dn,Er),kt.point(Mi,Er),Kr=0):xr!==dn&&wn>=l&&(v(Zt-xr)o?m((x(Zt)*(Mi=p(xr))*x(Er)-x(xr)*(Kr=p(Zt))*x(kt))/(Kr*Mi*Xi)):(Zt+xr)/2}function Sn(kt,Zt,Er,xr){var Kr;if(kt==null)Kr=Er*u,xr.point(-l,Kr),xr.point(0,Kr),xr.point(l,Kr),xr.point(l,0),xr.point(l,-Kr),xr.point(0,-Kr),xr.point(-l,-Kr),xr.point(-l,0),xr.point(-l,Kr);else if(v(kt[0]-Zt[0])>o){var Mi=kt[0]0,Kr=v(Zt)>o;function Mi(Yi,$i,an,Fi){Mn(Fi,kt,Er,an,Yi,$i)}function Xi(Yi,$i){return p(Yi)*p($i)>Zt}function dn(Yi){var $i,an,Fi,ta,Ca;return{lineStart:function(){ta=Fi=!1,Ca=1},point:function(Ra,La){var Ua=[Ra,La],Zn,Dn=Xi(Ra,La),Ka=xr?Dn?0:On(Ra,La):Dn?On(Ra+(Ra<0?l:-l),La):0;if(!$i&&(ta=Fi=Dn)&&Yi.lineStart(),Dn!==Fi&&(Zn=wn($i,Ua),(!Zn||Wa($i,Zn)||Wa(Ua,Zn))&&(Ua[2]=1)),Dn!==Fi)Ca=0,Dn?(Yi.lineStart(),Zn=wn(Ua,$i),Yi.point(Zn[0],Zn[1])):(Zn=wn($i,Ua),Yi.point(Zn[0],Zn[1],2),Yi.lineEnd()),$i=Zn;else if(Kr&&$i&&xr^Dn){var bo;!(Ka&an)&&(bo=wn(Ua,$i,!0))&&(Ca=0,xr?(Yi.lineStart(),Yi.point(bo[0][0],bo[0][1]),Yi.point(bo[1][0],bo[1][1]),Yi.lineEnd()):(Yi.point(bo[1][0],bo[1][1]),Yi.lineEnd(),Yi.lineStart(),Yi.point(bo[0][0],bo[0][1],3)))}Dn&&(!$i||!Wa($i,Ua))&&Yi.point(Ua[0],Ua[1]),$i=Ua,Fi=Dn,an=Ka},lineEnd:function(){Fi&&Yi.lineEnd(),$i=null},clean:function(){return Ca|(ta&&Fi)<<1}}}function wn(Yi,$i,an){var Fi=ce(Yi),ta=ce($i),Ca=[1,0,0],Ra=lt(Fi,ta),La=He(Ra,Ra),Ua=Ra[0],Zn=La-Ua*Ua;if(!Zn)return!an&&Yi;var Dn=Zt*La/Zn,Ka=-Zt*Ua/Zn,bo=lt(Ca,Ra),Zo=Ht(Ca,Dn),Ss=Ht(Ra,Ka);mt(Zo,Ss);var as=bo,ws=He(Zo,as),Ho=He(as,as),ml=ws*ws-Ho*(He(Zo,Zo)-1);if(!(ml<0)){var Ws=S(ml),Ls=Ht(as,(-ws-Ws)/Ho);if(mt(Ls,Zo),Ls=Pe(Ls),!an)return Ls;var va=Yi[0],no=$i[0],ys=Yi[1],rs=$i[1],Ql;no0^Ls[1]<(v(Ls[0]-va)l^(va<=Ls[0]&&Ls[0]<=no)){var pu=Ht(as,(-ws+Ws)/Ho);return mt(pu,Zo),[Ls,Pe(pu)]}}}function On(Yi,$i){var an=xr?kt:l-kt,Fi=0;return Yi<-an?Fi|=1:Yi>an&&(Fi|=2),$i<-an?Fi|=4:$i>an&&(Fi|=8),Fi}return Gn(Xi,dn,Mi,xr?[0,-kt]:[-l,kt-l])}function ki(kt,Zt,Er,xr,Kr,Mi){var Xi=kt[0],dn=kt[1],wn=Zt[0],On=Zt[1],Yi=0,$i=1,an=wn-Xi,Fi=On-dn,ta;if(ta=Er-Xi,!(!an&&ta>0)){if(ta/=an,an<0){if(ta0){if(ta>$i)return;ta>Yi&&(Yi=ta)}if(ta=Kr-Xi,!(!an&&ta<0)){if(ta/=an,an<0){if(ta>$i)return;ta>Yi&&(Yi=ta)}else if(an>0){if(ta0)){if(ta/=Fi,Fi<0){if(ta0){if(ta>$i)return;ta>Yi&&(Yi=ta)}if(ta=Mi-dn,!(!Fi&&ta<0)){if(ta/=Fi,Fi<0){if(ta>$i)return;ta>Yi&&(Yi=ta)}else if(Fi>0){if(ta0&&(kt[0]=Xi+Yi*an,kt[1]=dn+Yi*Fi),$i<1&&(Zt[0]=Xi+$i*an,Zt[1]=dn+$i*Fi),!0}}}}}var _n=1e9,ya=-_n;function ea(kt,Zt,Er,xr){function Kr(On,Yi){return kt<=On&&On<=Er&&Zt<=Yi&&Yi<=xr}function Mi(On,Yi,$i,an){var Fi=0,ta=0;if(On==null||(Fi=Xi(On,$i))!==(ta=Xi(Yi,$i))||wn(On,Yi)<0^$i>0)do an.point(Fi===0||Fi===3?kt:Er,Fi>1?xr:Zt);while((Fi=(Fi+$i+4)%4)!==ta);else an.point(Yi[0],Yi[1])}function Xi(On,Yi){return v(On[0]-kt)0?0:3:v(On[0]-Er)0?2:1:v(On[1]-Zt)0?1:0:Yi>0?3:2}function dn(On,Yi){return wn(On.x,Yi.x)}function wn(On,Yi){var $i=Xi(On,1),an=Xi(Yi,1);return $i!==an?$i-an:$i===0?Yi[1]-On[1]:$i===1?On[0]-Yi[0]:$i===2?On[1]-Yi[1]:Yi[0]-On[0]}return function(On){var Yi=On,$i=ma(),an,Fi,ta,Ca,Ra,La,Ua,Zn,Dn,Ka,bo,Zo={point:Ss,lineStart:ml,lineEnd:Ws,polygonStart:ws,polygonEnd:Ho};function Ss(va,no){Kr(va,no)&&Yi.point(va,no)}function as(){for(var va=0,no=0,ys=Fi.length;noxr&&(Uc-Nc)*(xr-pu)>(xu-pu)*(kt-Nc)&&++va:xu<=xr&&(Uc-Nc)*(xr-pu)<(xu-pu)*(kt-Nc)&&--va;return va}function ws(){Yi=$i,an=[],Fi=[],bo=!0}function Ho(){var va=as(),no=bo&&va,ys=(an=t.merge(an)).length;(no||ys)&&(On.polygonStart(),no&&(On.lineStart(),Mi(null,null,1,On),On.lineEnd()),ys&&Xo(an,dn,va,Mi,On),On.polygonEnd()),Yi=On,an=Fi=ta=null}function ml(){Zo.point=Ls,Fi&&Fi.push(ta=[]),Ka=!0,Dn=!1,Ua=Zn=NaN}function Ws(){an&&(Ls(Ca,Ra),La&&Dn&&$i.rejoin(),an.push($i.result())),Zo.point=Ss,Dn&&Yi.lineEnd()}function Ls(va,no){var ys=Kr(va,no);if(Fi&&ta.push([va,no]),Ka)Ca=va,Ra=no,La=ys,Ka=!1,ys&&(Yi.lineStart(),Yi.point(va,no));else if(ys&&Dn)Yi.point(va,no);else{var rs=[Ua=Math.max(ya,Math.min(_n,Ua)),Zn=Math.max(ya,Math.min(_n,Zn))],Ql=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];ki(rs,Ql,kt,Zt,Er,xr)?(Dn||(Yi.lineStart(),Yi.point(rs[0],rs[1])),Yi.point(Ql[0],Ql[1]),ys||Yi.lineEnd(),bo=!1):ys&&(Yi.lineStart(),Yi.point(va,no),bo=!1)}Ua=va,Zn=no,Dn=ys}return Zo}}function Ma(){var kt=0,Zt=0,Er=960,xr=500,Kr,Mi,Xi;return Xi={stream:function(dn){return Kr&&Mi===dn?Kr:Kr=ea(kt,Zt,Er,xr)(Mi=dn)},extent:function(dn){return arguments.length?(kt=+dn[0][0],Zt=+dn[0][1],Er=+dn[1][0],xr=+dn[1][1],Kr=Mi=null,Xi):[[kt,Zt],[Er,xr]]}}}var _o=r(),No,po,Lo,ko={sphere:q,point:q,lineStart:Ds,lineEnd:q,polygonStart:q,polygonEnd:q};function Ds(){ko.point=ll,ko.lineEnd=Fs}function Fs(){ko.point=ko.lineEnd=q}function ll(kt,Zt){kt*=d,Zt*=d,No=kt,po=x(Zt),Lo=p(Zt),ko.point=ul}function ul(kt,Zt){kt*=d,Zt*=d;var Er=x(Zt),xr=p(Zt),Kr=v(kt-No),Mi=p(Kr),Xi=x(Kr),dn=xr*Xi,wn=Lo*Er-po*xr*Mi,On=po*Er+Lo*xr*Mi;_o.add(b(S(dn*dn+wn*wn),On)),No=kt,po=Er,Lo=xr}function Fl(kt){return _o.reset(),H(kt,ko),+_o}var us=[null,null],rl={type:"LineString",coordinates:us};function As(kt,Zt){return us[0]=kt,us[1]=Zt,Fl(rl)}var cl={Feature:function(kt,Zt){return zs(kt.geometry,Zt)},FeatureCollection:function(kt,Zt){for(var Er=kt.features,xr=-1,Kr=Er.length;++xr0&&(Kr=As(kt[Mi],kt[Mi-1]),Kr>0&&Er<=Kr&&xr<=Kr&&(Er+xr-Kr)*(1-Math.pow((Er-xr)/Kr,2))o}).map(an)).concat(t.range(k(Mi/On)*On,Kr,On).filter(function(Zn){return v(Zn%$i)>o}).map(Fi))}return La.lines=function(){return Ua().map(function(Zn){return{type:"LineString",coordinates:Zn}})},La.outline=function(){return{type:"Polygon",coordinates:[ta(xr).concat(Ca(Xi).slice(1),ta(Er).reverse().slice(1),Ca(dn).reverse().slice(1))]}},La.extent=function(Zn){return arguments.length?La.extentMajor(Zn).extentMinor(Zn):La.extentMinor()},La.extentMajor=function(Zn){return arguments.length?(xr=+Zn[0][0],Er=+Zn[1][0],dn=+Zn[0][1],Xi=+Zn[1][1],xr>Er&&(Zn=xr,xr=Er,Er=Zn),dn>Xi&&(Zn=dn,dn=Xi,Xi=Zn),La.precision(Ra)):[[xr,dn],[Er,Xi]]},La.extentMinor=function(Zn){return arguments.length?(Zt=+Zn[0][0],kt=+Zn[1][0],Mi=+Zn[0][1],Kr=+Zn[1][1],Zt>kt&&(Zn=Zt,Zt=kt,kt=Zn),Mi>Kr&&(Zn=Mi,Mi=Kr,Kr=Zn),La.precision(Ra)):[[Zt,Mi],[kt,Kr]]},La.step=function(Zn){return arguments.length?La.stepMajor(Zn).stepMinor(Zn):La.stepMinor()},La.stepMajor=function(Zn){return arguments.length?(Yi=+Zn[0],$i=+Zn[1],La):[Yi,$i]},La.stepMinor=function(Zn){return arguments.length?(wn=+Zn[0],On=+Zn[1],La):[wn,On]},La.precision=function(Zn){return arguments.length?(Ra=+Zn,an=Rn(Mi,Kr,90),Fi=_a(Zt,kt,Ra),ta=Rn(dn,Xi,90),Ca=_a(xr,Er,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function zl(){return Vu()()}function xo(kt,Zt){var Er=kt[0]*d,xr=kt[1]*d,Kr=Zt[0]*d,Mi=Zt[1]*d,Xi=p(xr),dn=x(xr),wn=p(Mi),On=x(Mi),Yi=Xi*p(Er),$i=Xi*x(Er),an=wn*p(Kr),Fi=wn*x(Kr),ta=2*E(S(z(Mi-xr)+Xi*wn*z(Kr-Er))),Ca=x(ta),Ra=ta?function(La){var Ua=x(La*=ta)/Ca,Zn=x(ta-La)/Ca,Dn=Zn*Yi+Ua*an,Ka=Zn*$i+Ua*Fi,bo=Zn*dn+Ua*On;return[b(Ka,Dn)*h,b(bo,S(Dn*Dn+Ka*Ka))*h]}:function(){return[Er*h,xr*h]};return Ra.distance=ta,Ra}function Kl(kt){return kt}var Ns=r(),Hl=r(),ac,oa,qo,Oo,ql={point:q,lineStart:q,lineEnd:q,polygonStart:function(){ql.lineStart=Pc,ql.lineEnd=Vf},polygonEnd:function(){ql.lineStart=ql.lineEnd=ql.point=q,Ns.add(v(Hl)),Hl.reset()},result:function(){var kt=Ns/2;return Ns.reset(),kt}};function Pc(){ql.point=Do}function Do(kt,Zt){ql.point=nf,ac=qo=kt,oa=Oo=Zt}function nf(kt,Zt){Hl.add(Oo*kt-qo*Zt),qo=kt,Oo=Zt}function Vf(){nf(ac,oa)}var pl=1/0,Zc=pl,Jl=-pl,qs=Jl,yu={point:oc,lineStart:q,lineEnd:q,polygonStart:q,polygonEnd:q,result:function(){var kt=[[pl,Zc],[Jl,qs]];return Jl=qs=-(Zc=pl=1/0),kt}};function oc(kt,Zt){ktJl&&(Jl=kt),Ztqs&&(qs=Zt)}var Cf=0,sc=0,jh=0,Lf=0,cs=0,af=0,Gf=0,$l=0,fl=0,lc,Fu,Es,Hs,Go={point:ps,lineStart:uc,lineEnd:Os,polygonStart:function(){Go.lineStart=od,Go.lineEnd=Po},polygonEnd:function(){Go.point=ps,Go.lineStart=uc,Go.lineEnd=Os},result:function(){var kt=fl?[Gf/fl,$l/fl]:af?[Lf/af,cs/af]:jh?[Cf/jh,sc/jh]:[NaN,NaN];return Cf=sc=jh=Lf=cs=af=Gf=$l=fl=0,kt}};function ps(kt,Zt){Cf+=kt,sc+=Zt,++jh}function uc(){Go.point=bl}function bl(kt,Zt){Go.point=Gu,ps(Es=kt,Hs=Zt)}function Gu(kt,Zt){var Er=kt-Es,xr=Zt-Hs,Kr=S(Er*Er+xr*xr);Lf+=Kr*(Es+kt)/2,cs+=Kr*(Hs+Zt)/2,af+=Kr,ps(Es=kt,Hs=Zt)}function Os(){Go.point=ps}function od(){Go.point=sd}function Po(){Ko(lc,Fu)}function sd(kt,Zt){Go.point=Ko,ps(lc=Es=kt,Fu=Hs=Zt)}function Ko(kt,Zt){var Er=kt-Es,xr=Zt-Hs,Kr=S(Er*Er+xr*xr);Lf+=Kr*(Es+kt)/2,cs+=Kr*(Hs+Zt)/2,af+=Kr,Kr=Hs*kt-Es*Zt,Gf+=Kr*(Es+kt),$l+=Kr*(Hs+Zt),fl+=Kr*3,ps(Es=kt,Hs=Zt)}function Pa(kt){this._context=kt}Pa.prototype={_radius:4.5,pointRadius:function(kt){return this._radius=kt,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(kt,Zt){switch(this._point){case 0:{this._context.moveTo(kt,Zt),this._point=1;break}case 1:{this._context.lineTo(kt,Zt);break}default:{this._context.moveTo(kt+this._radius,Zt),this._context.arc(kt,Zt,this._radius,0,f);break}}},result:q};var of=r(),Hu,wl,Hf,Ic,yf,Ol={point:q,lineStart:function(){Ol.point=Ah},lineEnd:function(){Hu&&Qf(wl,Hf),Ol.point=q},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var kt=+of;return of.reset(),kt}};function Ah(kt,Zt){Ol.point=Qf,wl=Ic=kt,Hf=yf=Zt}function Qf(kt,Zt){Ic-=kt,yf-=Zt,of.add(S(Ic*Ic+yf*yf)),Ic=kt,yf=Zt}function _f(){this._string=[]}_f.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(kt){return(kt=+kt)!==this._radius&&(this._radius=kt,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(kt,Zt){switch(this._point){case 0:{this._string.push("M",kt,",",Zt),this._point=1;break}case 1:{this._string.push("L",kt,",",Zt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",kt,",",Zt,this._circle);break}}},result:function(){if(this._string.length){var kt=this._string.join("");return this._string=[],kt}else return null}};function Yc(kt){return"m0,"+kt+"a"+kt+","+kt+" 0 1,1 0,"+-2*kt+"a"+kt+","+kt+" 0 1,1 0,"+2*kt+"z"}function eh(kt,Zt){var Er=4.5,xr,Kr;function Mi(Xi){return Xi&&(typeof Er=="function"&&Kr.pointRadius(+Er.apply(this,arguments)),H(Xi,xr(Kr))),Kr.result()}return Mi.area=function(Xi){return H(Xi,xr(ql)),ql.result()},Mi.measure=function(Xi){return H(Xi,xr(Ol)),Ol.result()},Mi.bounds=function(Xi){return H(Xi,xr(yu)),yu.result()},Mi.centroid=function(Xi){return H(Xi,xr(Go)),Go.result()},Mi.projection=function(Xi){return arguments.length?(xr=Xi==null?(kt=null,Kl):(kt=Xi).stream,Mi):kt},Mi.context=function(Xi){return arguments.length?(Kr=Xi==null?(Zt=null,new _f):new Pa(Zt=Xi),typeof Er!="function"&&Kr.pointRadius(Er),Mi):Zt},Mi.pointRadius=function(Xi){return arguments.length?(Er=typeof Xi=="function"?Xi:(Kr.pointRadius(+Xi),+Xi),Mi):Er},Mi.projection(kt).context(Zt)}function th(kt){return{stream:ju(kt)}}function ju(kt){return function(Zt){var Er=new jf;for(var xr in kt)Er[xr]=kt[xr];return Er.stream=Zt,Er}}function jf(){}jf.prototype={constructor:jf,point:function(kt,Zt){this.stream.point(kt,Zt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function cc(kt,Zt,Er){var xr=kt.clipExtent&&kt.clipExtent();return kt.scale(150).translate([0,0]),xr!=null&&kt.clipExtent(null),H(Er,kt.stream(yu)),Zt(yu.result()),xr!=null&&kt.clipExtent(xr),kt}function sf(kt,Zt,Er){return cc(kt,function(xr){var Kr=Zt[1][0]-Zt[0][0],Mi=Zt[1][1]-Zt[0][1],Xi=Math.min(Kr/(xr[1][0]-xr[0][0]),Mi/(xr[1][1]-xr[0][1])),dn=+Zt[0][0]+(Kr-Xi*(xr[1][0]+xr[0][0]))/2,wn=+Zt[0][1]+(Mi-Xi*(xr[1][1]+xr[0][1]))/2;kt.scale(150*Xi).translate([dn,wn])},Er)}function Bl(kt,Zt,Er){return sf(kt,[[0,0],Zt],Er)}function Kc(kt,Zt,Er){return cc(kt,function(xr){var Kr=+Zt,Mi=Kr/(xr[1][0]-xr[0][0]),Xi=(Kr-Mi*(xr[1][0]+xr[0][0]))/2,dn=-Mi*xr[0][1];kt.scale(150*Mi).translate([Xi,dn])},Er)}function Rc(kt,Zt,Er){return cc(kt,function(xr){var Kr=+Zt,Mi=Kr/(xr[1][1]-xr[0][1]),Xi=-Mi*xr[0][0],dn=(Kr-Mi*(xr[1][1]+xr[0][1]))/2;kt.scale(150*Mi).translate([Xi,dn])},Er)}var gs=16,Wf=p(30*d);function Wh(kt,Zt){return+Zt?lf(kt,Zt):rh(kt)}function rh(kt){return ju({point:function(Zt,Er){Zt=kt(Zt,Er),this.stream.point(Zt[0],Zt[1])}})}function lf(kt,Zt){function Er(xr,Kr,Mi,Xi,dn,wn,On,Yi,$i,an,Fi,ta,Ca,Ra){var La=On-xr,Ua=Yi-Kr,Zn=La*La+Ua*Ua;if(Zn>4*Zt&&Ca--){var Dn=Xi+an,Ka=dn+Fi,bo=wn+ta,Zo=S(Dn*Dn+Ka*Ka+bo*bo),Ss=E(bo/=Zo),as=v(v(bo)-1)Zt||v((La*Ws+Ua*Ls)/Zn-.5)>.3||Xi*an+dn*Fi+wn*ta2?va[2]%360*d:0,Ws()):[dn*h,wn*h,On*h]},Ho.angle=function(va){return arguments.length?($i=va%360*d,Ws()):$i*h},Ho.reflectX=function(va){return arguments.length?(an=va?-1:1,Ws()):an<0},Ho.reflectY=function(va){return arguments.length?(Fi=va?-1:1,Ws()):Fi<0},Ho.precision=function(va){return arguments.length?(bo=Wh(Zo,Ka=va*va),Ls()):S(Ka)},Ho.fitExtent=function(va,no){return sf(Ho,va,no)},Ho.fitSize=function(va,no){return Bl(Ho,va,no)},Ho.fitWidth=function(va,no){return Kc(Ho,va,no)},Ho.fitHeight=function(va,no){return Rc(Ho,va,no)};function Ws(){var va=js(Er,0,0,an,Fi,$i).apply(null,Zt(Mi,Xi)),no=($i?js:ih)(Er,xr-va[0],Kr-va[1],an,Fi,$i);return Yi=Ri(dn,wn,On),Zo=ti(Zt,no),Ss=ti(Yi,Zo),bo=Wh(Zo,Ka),Ls()}function Ls(){return as=ws=null,Ho}return function(){return Zt=kt.apply(this,arguments),Ho.invert=Zt.invert&&ml,Ws()}}function ks(kt){var Zt=0,Er=l/3,xr=Dc(kt),Kr=xr(Zt,Er);return Kr.parallels=function(Mi){return arguments.length?xr(Zt=Mi[0]*d,Er=Mi[1]*d):[Zt*h,Er*h]},Kr}function bc(kt){var Zt=p(kt);function Er(xr,Kr){return[xr*Zt,x(Kr)/Zt]}return Er.invert=function(xr,Kr){return[xr/Zt,E(Kr*Zt)]},Er}function hu(kt,Zt){var Er=x(kt),xr=(Er+x(Zt))/2;if(v(xr)=.12&&Ra<.234&&Ca>=-.425&&Ca<-.214?Kr:Ra>=.166&&Ra<.234&&Ca>=-.214&&Ca<-.115?Xi:Er).invert(an)},Yi.stream=function(an){return kt&&Zt===an?kt:kt=nh([Er.stream(Zt=an),Kr.stream(an),Xi.stream(an)])},Yi.precision=function(an){return arguments.length?(Er.precision(an),Kr.precision(an),Xi.precision(an),$i()):Er.precision()},Yi.scale=function(an){return arguments.length?(Er.scale(an),Kr.scale(an*.35),Xi.scale(an),Yi.translate(Er.translate())):Er.scale()},Yi.translate=function(an){if(!arguments.length)return Er.translate();var Fi=Er.scale(),ta=+an[0],Ca=+an[1];return xr=Er.translate(an).clipExtent([[ta-.455*Fi,Ca-.238*Fi],[ta+.455*Fi,Ca+.238*Fi]]).stream(On),Mi=Kr.translate([ta-.307*Fi,Ca+.201*Fi]).clipExtent([[ta-.425*Fi+o,Ca+.12*Fi+o],[ta-.214*Fi-o,Ca+.234*Fi-o]]).stream(On),dn=Xi.translate([ta-.205*Fi,Ca+.212*Fi]).clipExtent([[ta-.214*Fi+o,Ca+.166*Fi+o],[ta-.115*Fi-o,Ca+.234*Fi-o]]).stream(On),$i()},Yi.fitExtent=function(an,Fi){return sf(Yi,an,Fi)},Yi.fitSize=function(an,Fi){return Bl(Yi,an,Fi)},Yi.fitWidth=function(an,Fi){return Kc(Yi,an,Fi)},Yi.fitHeight=function(an,Fi){return Rc(Yi,an,Fi)};function $i(){return kt=Zt=null,Yi}return Yi.scale(1070)}function zu(kt){return function(Zt,Er){var xr=p(Zt),Kr=p(Er),Mi=kt(xr*Kr);return[Mi*Kr*x(Zt),Mi*x(Er)]}}function Fc(kt){return function(Zt,Er){var xr=S(Zt*Zt+Er*Er),Kr=kt(xr),Mi=x(Kr),Xi=p(Kr);return[b(Zt*Mi,xr*Xi),E(xr&&Er*Mi/xr)]}}var wc=zu(function(kt){return S(2/(1+kt))});wc.invert=Fc(function(kt){return 2*E(kt/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var xf=zu(function(kt){return(kt=P(kt))&&kt/x(kt)});xf.invert=Fc(function(kt){return kt});function Pf(){return Eu(xf).scale(79.4188).clipAngle(180-.001)}function qu(kt,Zt){return[kt,T(g((u+Zt)/2))]}qu.invert=function(kt,Zt){return[kt,2*m(M(Zt))-u]};function bf(){return jl(qu).scale(961/f)}function jl(kt){var Zt=Eu(kt),Er=Zt.center,xr=Zt.scale,Kr=Zt.translate,Mi=Zt.clipExtent,Xi=null,dn,wn,On;Zt.scale=function($i){return arguments.length?(xr($i),Yi()):xr()},Zt.translate=function($i){return arguments.length?(Kr($i),Yi()):Kr()},Zt.center=function($i){return arguments.length?(Er($i),Yi()):Er()},Zt.clipExtent=function($i){return arguments.length?($i==null?Xi=dn=wn=On=null:(Xi=+$i[0][0],dn=+$i[0][1],wn=+$i[1][0],On=+$i[1][1]),Yi()):Xi==null?null:[[Xi,dn],[wn,On]]};function Yi(){var $i=l*xr(),an=Zt(yn(Zt.rotate()).invert([0,0]));return Mi(Xi==null?[[an[0]-$i,an[1]-$i],[an[0]+$i,an[1]+$i]]:kt===qu?[[Math.max(an[0]-$i,Xi),dn],[Math.min(an[0]+$i,wn),On]]:[[Xi,Math.max(an[1]-$i,dn)],[wn,Math.min(an[1]+$i,On)]])}return Yi()}function uf(kt){return g((u+kt)/2)}function Xh(kt,Zt){var Er=p(kt),xr=kt===Zt?x(kt):T(Er/p(Zt))/T(uf(Zt)/uf(kt)),Kr=Er*L(uf(kt),xr)/xr;if(!xr)return qu;function Mi(Xi,dn){Kr>0?dn<-u+o&&(dn=-u+o):dn>u-o&&(dn=u-o);var wn=Kr/L(uf(dn),xr);return[wn*x(xr*Xi),Kr-wn*p(xr*Xi)]}return Mi.invert=function(Xi,dn){var wn=Kr-dn,On=C(xr)*S(Xi*Xi+wn*wn),Yi=b(Xi,v(wn))*C(wn);return wn*xr<0&&(Yi-=l*C(Xi)*C(wn)),[Yi/xr,2*m(L(Kr/On,1/xr))-u]},Mi}function If(){return ks(Xh).scale(109.5).parallels([30,30])}function Cs(kt,Zt){return[kt,Zt]}Cs.invert=Cs;function du(){return Eu(Cs).scale(152.63)}function ku(kt,Zt){var Er=p(kt),xr=kt===Zt?x(kt):(Er-p(Zt))/(Zt-kt),Kr=Er/xr+kt;if(v(xr)o&&--xr>0);return[kt/(.8707+(Mi=Er*Er)*(-.131979+Mi*(-.013791+Mi*Mi*Mi*(.003971-.001529*Mi)))),Er]};function Tc(){return Eu(qc).scale(175.295)}function Tl(kt,Zt){return[p(Zt)*x(kt),x(Zt)]}Tl.invert=Fc(E);function vu(){return Eu(Tl).scale(249.5).clipAngle(90+o)}function Oc(kt,Zt){var Er=p(Zt),xr=1+p(kt)*Er;return[Er*x(kt)/xr,x(Zt)/xr]}Oc.invert=Fc(function(kt){return 2*m(kt)});function ff(){return Eu(Oc).scale(250).clipAngle(142)}function fc(kt,Zt){return[T(g((u+Zt)/2)),-kt]}fc.invert=function(kt,Zt){return[-Zt,2*m(M(kt))-u]};function Bc(){var kt=jl(fc),Zt=kt.center,Er=kt.rotate;return kt.center=function(xr){return arguments.length?Zt([-xr[1],xr[0]]):(xr=Zt(),[xr[1],-xr[0]])},kt.rotate=function(xr){return arguments.length?Er([xr[0],xr[1],xr.length>2?xr[2]+90:90]):(xr=Er(),[xr[0],xr[1],xr[2]-90])},Er([0,0,90]).scale(159.155)}e.geoAlbers=il,e.geoAlbersUsa=Mh,e.geoArea=me,e.geoAzimuthalEqualArea=bd,e.geoAzimuthalEqualAreaRaw=wc,e.geoAzimuthalEquidistant=Pf,e.geoAzimuthalEquidistantRaw=xf,e.geoBounds=Ge,e.geoCentroid=wr,e.geoCircle=ua,e.geoClipAntimeridian=Jr,e.geoClipCircle=En,e.geoClipExtent=Ma,e.geoClipRectangle=ea,e.geoConicConformal=If,e.geoConicConformalRaw=Xh,e.geoConicEqualArea=_u,e.geoConicEqualAreaRaw=hu,e.geoConicEquidistant=Xf,e.geoConicEquidistantRaw=ku,e.geoContains=bs,e.geoDistance=As,e.geoEqualEarth=Zf,e.geoEqualEarthRaw=cf,e.geoEquirectangular=du,e.geoEquirectangularRaw=Cs,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=zl,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=Fl,e.geoMercator=bf,e.geoMercatorRaw=qu,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=qc,e.geoOrthographic=vu,e.geoOrthographicRaw=Tl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=ff,e.geoStereographicRaw=Oc,e.geoStream=H,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})}))});var WDe=ye((BF,jDe)=>{(function(e,t){typeof BF=="object"&&typeof jDe!="undefined"?t(BF,HZ(),gk()):t(e.d3=e.d3||{},e.d3,e.d3)})(BF,(function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,d=Math.round,v=Math.sign||function(ve){return ve>0?1:ve<0?-1:0},m=Math.sin,b=Math.tan,p=1e-6,k=1e-12,M=Math.PI,T=M/2,L=M/4,x=Math.SQRT1_2,C=G(2),S=G(M),g=M*2,P=180/M,E=M/180;function z(ve){return ve?ve/Math.sin(ve):1}function q(ve){return ve>1?T:ve<-1?-T:Math.asin(ve)}function V(ve){return ve>1?0:ve<-1?M:Math.acos(ve)}function G(ve){return ve>0?Math.sqrt(ve):0}function Z(ve){return ve=s(2*ve),(ve-1)/(ve+1)}function j(ve){return(s(ve)-s(-ve))/2}function N(ve){return(s(ve)+s(-ve))/2}function H(ve){return u(ve+G(ve*ve+1))}function re(ve){return u(ve+G(ve*ve-1))}function ae(ve){var xe=b(ve/2),Ie=2*u(o(ve/2))/(xe*xe);function ze(Qe,Xe){var nt=o(Qe),qt=o(Xe),Wt=m(Xe),nr=qt*nt,fr=-((1-nr?u((1+nr)/2)/(1-nr):-.5)+Ie/(1+nr));return[fr*qt*m(Qe),fr*Wt]}return ze.invert=function(Qe,Xe){var nt=G(Qe*Qe+Xe*Xe),qt=-ve/2,Wt=50,nr;if(!nt)return[0,0];do{var fr=qt/2,br=o(fr),Fr=m(fr),Hr=Fr/br,ri=-u(n(br));qt-=nr=(2/Hr*ri-Ie*Hr-nt)/(-ri/(Fr*Fr)+1-Ie/(2*br*br))*(br<0?.7:1)}while(n(nr)>p&&--Wt>0);var Ci=m(qt);return[a(Qe*Ci,nt*o(qt)),q(Xe*Ci/nt)]},ze}function _e(){var ve=T,xe=t.geoProjectionMutator(ae),Ie=xe(ve);return Ie.radius=function(ze){return arguments.length?xe(ve=ze*E):ve*P},Ie.scale(179.976).clipAngle(147)}function Ee(ve,xe){var Ie=o(xe),ze=z(V(Ie*o(ve/=2)));return[2*Ie*m(ve)*ze,m(xe)*ze]}Ee.invert=function(ve,xe){if(!(ve*ve+4*xe*xe>M*M+p)){var Ie=ve,ze=xe,Qe=25;do{var Xe=m(Ie),nt=m(Ie/2),qt=o(Ie/2),Wt=m(ze),nr=o(ze),fr=m(2*ze),br=Wt*Wt,Fr=nr*nr,Hr=nt*nt,ri=1-Fr*qt*qt,Ci=ri?V(nr*qt)*G(cn=1/ri):cn=0,cn,sn=2*Ci*nr*nt-ve,Ln=Ci*Wt-xe,Kn=cn*(Fr*Hr+Ci*nr*qt*br),Aa=cn*(.5*Xe*fr-Ci*2*Wt*nt),fa=cn*.25*(fr*nt-Ci*Wt*Fr*Xe),$a=cn*(br*qt+Ci*Hr*nr),Co=Aa*fa-$a*Kn;if(!Co)break;var Qa=(Ln*Aa-sn*$a)/Co,mo=(sn*fa-Ln*Kn)/Co;Ie-=Qa,ze-=mo}while((n(Qa)>p||n(mo)>p)&&--Qe>0);return[Ie,ze]}};function Ce(){return t.geoProjection(Ee).scale(152.63)}function ge(ve){var xe=m(ve),Ie=o(ve),ze=ve>=0?1:-1,Qe=b(ze*ve),Xe=(1+xe-Ie)/2;function nt(qt,Wt){var nr=o(Wt),fr=o(qt/=2);return[(1+nr)*m(qt),(ze*Wt>-a(fr,Qe)-.001?0:-ze*10)+Xe+m(Wt)*Ie-(1+nr)*xe*fr]}return nt.invert=function(qt,Wt){var nr=0,fr=0,br=50;do{var Fr=o(nr),Hr=m(nr),ri=o(fr),Ci=m(fr),cn=1+ri,sn=cn*Hr-qt,Ln=Xe+Ci*Ie-cn*xe*Fr-Wt,Kn=cn*Fr/2,Aa=-Hr*Ci,fa=xe*cn*Hr/2,$a=Ie*ri+xe*Fr*Ci,Co=Aa*fa-$a*Kn,Qa=(Ln*Aa-sn*$a)/Co/2,mo=(sn*fa-Ln*Kn)/Co;n(mo)>2&&(mo/=2),nr-=Qa,fr-=mo}while((n(Qa)>p||n(mo)>p)&&--br>0);return ze*fr>-a(o(nr),Qe)-.001?[nr*2,fr]:null},nt}function ie(){var ve=20*E,xe=ve>=0?1:-1,Ie=b(xe*ve),ze=t.geoProjectionMutator(ge),Qe=ze(ve),Xe=Qe.stream;return Qe.parallel=function(nt){return arguments.length?(Ie=b((xe=(ve=nt*E)>=0?1:-1)*ve),ze(ve)):ve*P},Qe.stream=function(nt){var qt=Qe.rotate(),Wt=Xe(nt),nr=(Qe.rotate([0,0]),Xe(nt)),fr=Qe.precision();return Qe.rotate(qt),Wt.sphere=function(){nr.polygonStart(),nr.lineStart();for(var br=xe*-180;xe*br<180;br+=xe*90)nr.point(br,xe*90);if(ve)for(;xe*(br-=3*xe*fr)>=-180;)nr.point(br,xe*-a(o(br*E/2),Ie)*P);nr.lineEnd(),nr.polygonEnd()},Wt},Qe.scale(218.695).center([0,28.0974])}function Se(ve,xe){var Ie=b(xe/2),ze=G(1-Ie*Ie),Qe=1+ze*o(ve/=2),Xe=m(ve)*ze/Qe,nt=Ie/Qe,qt=Xe*Xe,Wt=nt*nt;return[4/3*Xe*(3+qt-3*Wt),4/3*nt*(3+3*qt-Wt)]}Se.invert=function(ve,xe){if(ve*=3/8,xe*=3/8,!ve&&n(xe)>1)return null;var Ie=ve*ve,ze=xe*xe,Qe=1+Ie+ze,Xe=G((Qe-G(Qe*Qe-4*xe*xe))/2),nt=q(Xe)/3,qt=Xe?re(n(xe/Xe))/3:H(n(ve))/3,Wt=o(nt),nr=N(qt),fr=nr*nr-Wt*Wt;return[v(ve)*2*a(j(qt)*Wt,.25-fr),v(xe)*2*a(nr*m(nt),.25+fr)]};function ke(){return t.geoProjection(Se).scale(66.1603)}var be=G(8),Be=u(1+C);function Le(ve,xe){var Ie=n(xe);return Iek&&--ze>0);return[ve/(o(Ie)*(be-1/m(Ie))),v(xe)*Ie]};function me(){return t.geoProjection(Le).scale(112.314)}function Pe(ve){var xe=2*M/ve;function Ie(ze,Qe){var Xe=t.geoAzimuthalEquidistantRaw(ze,Qe);if(n(ze)>T){var nt=a(Xe[1],Xe[0]),qt=G(Xe[0]*Xe[0]+Xe[1]*Xe[1]),Wt=xe*d((nt-T)/xe)+T,nr=a(m(nt-=Wt),2-o(nt));nt=Wt+q(M/qt*m(nr))-nr,Xe[0]=qt*o(nt),Xe[1]=qt*m(nt)}return Xe}return Ie.invert=function(ze,Qe){var Xe=G(ze*ze+Qe*Qe);if(Xe>T){var nt=a(Qe,ze),qt=xe*d((nt-T)/xe)+T,Wt=nt>qt?-1:1,nr=Xe*o(qt-nt),fr=1/b(Wt*V((nr-M)/G(M*(M-2*nr)+Xe*Xe)));nt=qt+2*i((fr+Wt*G(fr*fr-3))/3),ze=Xe*o(nt),Qe=Xe*m(nt)}return t.geoAzimuthalEquidistantRaw.invert(ze,Qe)},Ie}function ce(){var ve=5,xe=t.geoProjectionMutator(Pe),Ie=xe(ve),ze=Ie.stream,Qe=.01,Xe=-o(Qe*E),nt=m(Qe*E);return Ie.lobes=function(qt){return arguments.length?xe(ve=+qt):ve},Ie.stream=function(qt){var Wt=Ie.rotate(),nr=ze(qt),fr=(Ie.rotate([0,0]),ze(qt));return Ie.rotate(Wt),nr.sphere=function(){fr.polygonStart(),fr.lineStart();for(var br=0,Fr=360/ve,Hr=2*M/ve,ri=90-180/ve,Ci=T;br0&&n(Qe)>p);return ze<0?NaN:Ie}function at(ve,xe,Ie){return xe===void 0&&(xe=40),Ie===void 0&&(Ie=k),function(ze,Qe,Xe,nt){var qt,Wt,nr;Xe=Xe===void 0?0:+Xe,nt=nt===void 0?0:+nt;for(var fr=0;frqt){Xe-=Wt/=2,nt-=nr/=2;continue}qt=ri;var Ci=(Xe>0?-1:1)*Ie,cn=(nt>0?-1:1)*Ie,sn=ve(Xe+Ci,nt),Ln=ve(Xe,nt+cn),Kn=(sn[0]-br[0])/Ci,Aa=(sn[1]-br[1])/Ci,fa=(Ln[0]-br[0])/cn,$a=(Ln[1]-br[1])/cn,Co=$a*Kn-Aa*fa,Qa=(n(Co)<.5?.5:1)/Co;if(Wt=(Hr*fa-Fr*$a)*Qa,nr=(Fr*Aa-Hr*Kn)*Qa,Xe+=Wt,nt+=nr,n(Wt)0&&(qt[1]*=1+Wt/1.5*qt[0]*qt[0]),qt}return ze.invert=at(ze),ze}function ar(){return t.geoProjection(ct()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Vt(ve,xe){var Ie=ve*m(xe),ze=30,Qe;do xe-=Qe=(xe+m(xe)-Ie)/(1+o(xe));while(n(Qe)>p&&--ze>0);return xe/2}function rr(ve,xe,Ie){function ze(Qe,Xe){return[ve*Qe*o(Xe=Vt(Ie,Xe)),xe*m(Xe)]}return ze.invert=function(Qe,Xe){return Xe=q(Xe/xe),[Qe/(ve*o(Xe)),q((2*Xe+m(2*Xe))/Ie)]},ze}var tt=rr(C/T,C,M);function je(){return t.geoProjection(tt).scale(169.529)}var Ue=2.00276,Ae=1.11072;function rt(ve,xe){var Ie=Vt(M,xe);return[Ue*ve/(1/o(xe)+Ae/o(Ie)),(xe+C*m(Ie))/Ue]}rt.invert=function(ve,xe){var Ie=Ue*xe,ze=xe<0?-L:L,Qe=25,Xe,nt;do nt=Ie-C*m(ze),ze-=Xe=(m(2*ze)+2*ze-M*m(nt))/(2*o(2*ze)+2+M*o(nt)*C*o(ze));while(n(Xe)>p&&--Qe>0);return nt=Ie-C*m(ze),[ve*(1/o(nt)+Ae/o(ze))/Ue,nt]};function St(){return t.geoProjection(rt).scale(160.857)}function Tt(ve){var xe=0,Ie=t.geoProjectionMutator(ve),ze=Ie(xe);return ze.parallel=function(Qe){return arguments.length?Ie(xe=Qe*E):xe*P},ze}function dt(ve,xe){return[ve*o(xe),xe]}dt.invert=function(ve,xe){return[ve/o(xe),xe]};function Et(){return t.geoProjection(dt).scale(152.63)}function pt(ve){if(!ve)return dt;var xe=1/b(ve);function Ie(ze,Qe){var Xe=xe+ve-Qe,nt=Xe&&ze*o(Qe)/Xe;return[Xe*m(nt),xe-Xe*o(nt)]}return Ie.invert=function(ze,Qe){var Xe=G(ze*ze+(Qe=xe-Qe)*Qe),nt=xe+ve-Xe;return[Xe/o(nt)*a(ze,Qe),nt]},Ie}function jt(){return Tt(pt).scale(123.082).center([0,26.1441]).parallel(45)}function or(ve){function xe(Ie,ze){var Qe=T-ze,Xe=Qe&&Ie*ve*m(Qe)/Qe;return[Qe*m(Xe)/ve,T-Qe*o(Xe)]}return xe.invert=function(Ie,ze){var Qe=Ie*ve,Xe=T-ze,nt=G(Qe*Qe+Xe*Xe),qt=a(Qe,Xe);return[(nt?nt/m(nt):1)*qt/ve,T-nt]},xe}function mr(){var ve=.5,xe=t.geoProjectionMutator(or),Ie=xe(ve);return Ie.fraction=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(158.837)}var Ar=rr(1,4/M,M);function ei(){return t.geoProjection(Ar).scale(152.63)}function qr(ve,xe,Ie,ze,Qe,Xe){var nt=o(Xe),qt;if(n(ve)>1||n(Xe)>1)qt=V(Ie*Qe+xe*ze*nt);else{var Wt=m(ve/2),nr=m(Xe/2);qt=2*q(G(Wt*Wt+xe*ze*nr*nr))}return n(qt)>p?[qt,a(ze*m(Xe),xe*Qe-Ie*ze*nt)]:[0,0]}function jr(ve,xe,Ie){return V((ve*ve+xe*xe-Ie*Ie)/(2*ve*xe))}function gt(ve){return ve-2*M*l((ve+M)/(2*M))}function Ge(ve,xe,Ie){for(var ze=[[ve[0],ve[1],m(ve[1]),o(ve[1])],[xe[0],xe[1],m(xe[1]),o(xe[1])],[Ie[0],Ie[1],m(Ie[1]),o(Ie[1])]],Qe=ze[2],Xe,nt=0;nt<3;++nt,Qe=Xe)Xe=ze[nt],Qe.v=qr(Xe[1]-Qe[1],Qe[3],Qe[2],Xe[3],Xe[2],Xe[0]-Qe[0]),Qe.point=[0,0];var qt=jr(ze[0].v[0],ze[2].v[0],ze[1].v[0]),Wt=jr(ze[0].v[0],ze[1].v[0],ze[2].v[0]),nr=M-qt;ze[2].point[1]=0,ze[0].point[0]=-(ze[1].point[0]=ze[0].v[0]/2);var fr=[ze[2].point[0]=ze[0].point[0]+ze[2].v[0]*o(qt),2*(ze[0].point[1]=ze[1].point[1]=ze[2].v[0]*m(qt))];function br(Fr,Hr){var ri=m(Hr),Ci=o(Hr),cn=new Array(3),sn;for(sn=0;sn<3;++sn){var Ln=ze[sn];if(cn[sn]=qr(Hr-Ln[1],Ln[3],Ln[2],Ci,ri,Fr-Ln[0]),!cn[sn][0])return Ln.point;cn[sn][1]=gt(cn[sn][1]-Ln.v[1])}var Kn=fr.slice();for(sn=0;sn<3;++sn){var Aa=sn==2?0:sn+1,fa=jr(ze[sn].v[0],cn[sn][0],cn[Aa][0]);cn[sn][1]<0&&(fa=-fa),sn?sn==1?(fa=Wt-fa,Kn[0]-=cn[sn][0]*o(fa),Kn[1]-=cn[sn][0]*m(fa)):(fa=nr-fa,Kn[0]+=cn[sn][0]*o(fa),Kn[1]+=cn[sn][0]*m(fa)):(Kn[0]+=cn[sn][0]*o(fa),Kn[1]-=cn[sn][0]*m(fa))}return Kn[0]/=3,Kn[1]/=3,Kn}return br}function Je(ve){return ve[0]*=E,ve[1]*=E,ve}function We(){return et([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function et(ve,xe,Ie){var ze=t.geoCentroid({type:"MultiPoint",coordinates:[ve,xe,Ie]}),Qe=[-ze[0],-ze[1]],Xe=t.geoRotation(Qe),nt=Ge(Je(Xe(ve)),Je(Xe(xe)),Je(Xe(Ie)));nt.invert=at(nt);var qt=t.geoProjection(nt).rotate(Qe),Wt=qt.center;return delete qt.rotate,qt.center=function(nr){return arguments.length?Wt(Xe(nr)):Xe.invert(Wt())},qt.clipAngle(90)}function xt(ve,xe){var Ie=G(1-m(xe));return[2/S*ve*Ie,S*(1-Ie)]}xt.invert=function(ve,xe){var Ie=(Ie=xe/S-1)*Ie;return[Ie>0?ve*G(M/Ie)/2:0,q(1-Ie)]};function At(){return t.geoProjection(xt).scale(95.6464).center([0,30])}function Kt(ve){var xe=b(ve);function Ie(ze,Qe){return[ze,(ze?ze/m(ze):1)*(m(Qe)*o(ze)-xe*o(Qe))]}return Ie.invert=xe?function(ze,Qe){ze&&(Qe*=m(ze)/ze);var Xe=o(ze);return[ze,2*a(G(Xe*Xe+xe*xe-Qe*Qe)-Xe,xe-Qe)]}:function(ze,Qe){return[ze,q(ze?Qe*b(ze)/ze:Qe)]},Ie}function Qt(){return Tt(Kt).scale(249.828).clipAngle(90)}var Mr=G(3);function Gr(ve,xe){return[Mr*ve*(2*o(2*xe/3)-1)/S,Mr*S*m(xe/3)]}Gr.invert=function(ve,xe){var Ie=3*q(xe/(Mr*S));return[S*ve/(Mr*(2*o(2*Ie/3)-1)),Ie]};function Ir(){return t.geoProjection(Gr).scale(156.19)}function Yr(ve){var xe=o(ve);function Ie(ze,Qe){return[ze*xe,m(Qe)/xe]}return Ie.invert=function(ze,Qe){return[ze/xe,q(Qe*xe)]},Ie}function _i(){return Tt(Yr).parallel(38.58).scale(195.044)}function Pi(ve){var xe=o(ve);function Ie(ze,Qe){return[ze*xe,(1+xe)*b(Qe/2)]}return Ie.invert=function(ze,Qe){return[ze/xe,i(Qe/(1+xe))*2]},Ie}function ai(){return Tt(Pi).scale(124.75)}function mi(ve,xe){var Ie=G(8/(3*M));return[Ie*ve*(1-n(xe)/M),Ie*xe]}mi.invert=function(ve,xe){var Ie=G(8/(3*M)),ze=xe/Ie;return[ve/(Ie*(1-n(ze)/M)),ze]};function un(){return t.geoProjection(mi).scale(165.664)}function Fn(ve,xe){var Ie=G(4-3*m(n(xe)));return[2/G(6*M)*ve*Ie,v(xe)*G(2*M/3)*(2-Ie)]}Fn.invert=function(ve,xe){var Ie=2-n(xe)/G(2*M/3);return[ve*G(6*M)/(2*Ie),v(xe)*q((4-Ie*Ie)/3)]};function An(){return t.geoProjection(Fn).scale(165.664)}function Hn(ve,xe){var Ie=G(M*(4+M));return[2/Ie*ve*(1+G(1-4*xe*xe/(M*M))),4/Ie*xe]}Hn.invert=function(ve,xe){var Ie=G(M*(4+M))/2;return[ve*Ie/(1+G(1-xe*xe*(4+M)/(4*M))),xe*Ie/2]};function Qn(){return t.geoProjection(Hn).scale(180.739)}function Vi(ve,xe){var Ie=(2+T)*m(xe);xe/=2;for(var ze=0,Qe=1/0;ze<10&&n(Qe)>p;ze++){var Xe=o(xe);xe-=Qe=(xe+m(xe)*(Xe+2)-Ie)/(2*Xe*(1+Xe))}return[2/G(M*(4+M))*ve*(1+o(xe)),2*G(M/(4+M))*m(xe)]}Vi.invert=function(ve,xe){var Ie=xe*G((4+M)/M)/2,ze=q(Ie),Qe=o(ze);return[ve/(2/G(M*(4+M))*(1+Qe)),q((ze+Ie*(Qe+2))/(2+T))]};function Jn(){return t.geoProjection(Vi).scale(180.739)}function Yn(ve,xe){return[ve*(1+o(xe))/G(2+M),2*xe/G(2+M)]}Yn.invert=function(ve,xe){var Ie=G(2+M),ze=xe*Ie/2;return[Ie*ve/(1+o(ze)),ze]};function Gt(){return t.geoProjection(Yn).scale(173.044)}function wt(ve,xe){for(var Ie=(1+T)*m(xe),ze=0,Qe=1/0;ze<10&&n(Qe)>p;ze++)xe-=Qe=(xe+m(xe)-Ie)/(1+o(xe));return Ie=G(2+M),[ve*(1+o(xe))/Ie,2*xe/Ie]}wt.invert=function(ve,xe){var Ie=1+T,ze=G(Ie/2);return[ve*2*ze/(1+o(xe*=ze)),q((xe+m(xe))/Ie)]};function tr(){return t.geoProjection(wt).scale(173.044)}var ir=3+2*C;function wr(ve,xe){var Ie=m(ve/=2),ze=o(ve),Qe=G(o(xe)),Xe=o(xe/=2),nt=m(xe)/(Xe+C*ze*Qe),qt=G(2/(1+nt*nt)),Wt=G((C*Xe+(ze+Ie)*Qe)/(C*Xe+(ze-Ie)*Qe));return[ir*(qt*(Wt-1/Wt)-2*u(Wt)),ir*(qt*nt*(Wt+1/Wt)-2*i(nt))]}wr.invert=function(ve,xe){if(!(Xe=Se.invert(ve/1.2,xe*1.065)))return null;var Ie=Xe[0],ze=Xe[1],Qe=20,Xe;ve/=ir,xe/=ir;do{var nt=Ie/2,qt=ze/2,Wt=m(nt),nr=o(nt),fr=m(qt),br=o(qt),Fr=o(ze),Hr=G(Fr),ri=fr/(br+C*nr*Hr),Ci=ri*ri,cn=G(2/(1+Ci)),sn=C*br+(nr+Wt)*Hr,Ln=C*br+(nr-Wt)*Hr,Kn=sn/Ln,Aa=G(Kn),fa=Aa-1/Aa,$a=Aa+1/Aa,Co=cn*fa-2*u(Aa)-ve,Qa=cn*ri*$a-2*i(ri)-xe,mo=fr&&x*Hr*Wt*Ci/fr,Bo=(C*nr*br+Hr)/(2*(br+C*nr*Hr)*(br+C*nr*Hr)*Hr),Ps=-.5*ri*cn*cn*cn,Ts=Ps*mo,wo=Ps*Bo,To=(To=2*br+C*Hr*(nr-Wt))*To*Aa,hl=(C*nr*br*Hr+Fr)/To,Nl=-(C*Wt*fr)/(Hr*To),Lu=fa*Ts-2*hl/Aa+cn*(hl+hl/Kn),au=fa*wo-2*Nl/Aa+cn*(Nl+Nl/Kn),Js=ri*$a*Ts-2*mo/(1+Ci)+cn*$a*mo+cn*ri*(hl-hl/Kn),eu=ri*$a*wo-2*Bo/(1+Ci)+cn*$a*Bo+cn*ri*(Nl-Nl/Kn),dc=au*Js-eu*Lu;if(!dc)break;var Al=(Qa*au-Co*eu)/dc,Sl=(Co*Js-Qa*Lu)/dc;Ie-=Al,ze=c(-T,f(T,ze-Sl))}while((n(Al)>p||n(Sl)>p)&&--Qe>0);return n(n(ze)-T)ze){var br=G(fr),Fr=a(nr,Wt),Hr=Ie*d(Fr/Ie),ri=Fr-Hr,Ci=ve*o(ri),cn=(ve*m(ri)-ri*m(Ci))/(T-Ci),sn=Wa(ri,cn),Ln=(M-ve)/za(sn,Ci,M);Wt=br;var Kn=50,Aa;do Wt-=Aa=(ve+za(sn,Ci,Wt)*Ln-br)/(sn(Wt)*Ln);while(n(Aa)>p&&--Kn>0);nr=ri*m(Wt),Wtze){var Wt=G(qt),nr=a(nt,Xe),fr=Ie*d(nr/Ie),br=nr-fr;Xe=Wt*o(br),nt=Wt*m(br);for(var Fr=Xe-T,Hr=m(Xe),ri=nt/Hr,Ci=Xep||n(ri)>p)&&--Ci>0);return[br,Fr]},Wt}var jn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ha(){return t.geoProjection(jn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Gn(){return t.geoProjection(vo).scale(153.93)}var Ct=da(5/6*M,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Sr(){return t.geoProjection(Ct).scale(130.945)}function Jr(ve,xe){var Ie=ve*ve,ze=xe*xe;return[ve*(1-.162388*ze)*(.87-952426e-9*Ie*Ie),xe*(1+ze/12)]}Jr.invert=function(ve,xe){var Ie=ve,ze=xe,Qe=50,Xe;do{var nt=ze*ze;ze-=Xe=(ze*(1+nt/12)-xe)/(1+nt/4)}while(n(Xe)>p&&--Qe>0);Qe=50,ve/=1-.162388*nt;do{var qt=(qt=Ie*Ie)*qt;Ie-=Xe=(Ie*(.87-952426e-9*qt)-ve)/(.87-.00476213*qt)}while(n(Xe)>p&&--Qe>0);return[Ie,ze]};function hi(){return t.geoProjection(Jr).scale(131.747)}var hn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sn(){return t.geoProjection(hn).scale(131.087)}function En(ve){var xe=ve(T,0)[0]-ve(-T,0)[0];function Ie(ze,Qe){var Xe=ze>0?-.5:.5,nt=ve(ze+Xe*M,Qe);return nt[0]-=Xe*xe,nt}return ve.invert&&(Ie.invert=function(ze,Qe){var Xe=ze>0?-.5:.5,nt=ve.invert(ze+Xe*xe,Qe),qt=nt[0]-Xe*M;return qt<-M?qt+=2*M:qt>M&&(qt-=2*M),nt[0]=qt,nt}),Ie}function ki(ve,xe){var Ie=v(ve),ze=v(xe),Qe=o(xe),Xe=o(ve)*Qe,nt=m(ve)*Qe,qt=m(ze*xe);ve=n(a(nt,qt)),xe=q(Xe),n(ve-T)>p&&(ve%=T);var Wt=_n(ve>M/4?T-ve:ve,xe);return ve>M/4&&(qt=Wt[0],Wt[0]=-Wt[1],Wt[1]=-qt),Wt[0]*=Ie,Wt[1]*=-ze,Wt}ki.invert=function(ve,xe){n(ve)>1&&(ve=v(ve)*2-ve),n(xe)>1&&(xe=v(xe)*2-xe);var Ie=v(ve),ze=v(xe),Qe=-Ie*ve,Xe=-ze*xe,nt=Xe/Qe<1,qt=ya(nt?Xe:Qe,nt?Qe:Xe),Wt=qt[0],nr=qt[1],fr=o(nr);return nt&&(Wt=-T-Wt),[Ie*(a(m(Wt)*fr,-m(nr))+M),ze*q(o(Wt)*fr)]};function _n(ve,xe){if(xe===T)return[0,0];var Ie=m(xe),ze=Ie*Ie,Qe=ze*ze,Xe=1+Qe,nt=1+3*Qe,qt=1-Qe,Wt=q(1/G(Xe)),nr=qt+ze*Xe*Wt,fr=(1-Ie)/nr,br=G(fr),Fr=fr*Xe,Hr=G(Fr),ri=br*qt,Ci,cn;if(ve===0)return[0,-(ri+ze*Hr)];var sn=o(xe),Ln=1/sn,Kn=2*Ie*sn,Aa=(-3*ze+Wt*nt)*Kn,fa=(-nr*sn-(1-Ie)*Aa)/(nr*nr),$a=.5*fa/br,Co=qt*$a-2*ze*br*Kn,Qa=ze*Xe*fa+fr*nt*Kn,mo=-Ln*Kn,Bo=-Ln*Qa,Ps=-2*Ln*Co,Ts=4*ve/M,wo;if(ve>.222*M||xe.175*M){if(Ci=(ri+ze*G(Fr*(1+Qe)-ri*ri))/(1+Qe),ve>M/4)return[Ci,Ci];var To=Ci,hl=.5*Ci;Ci=.5*(hl+To),cn=50;do{var Nl=G(Fr-Ci*Ci),Lu=Ci*(Ps+mo*Nl)+Bo*q(Ci/Hr)-Ts;if(!Lu)break;Lu<0?hl=Ci:To=Ci,Ci=.5*(hl+To)}while(n(To-hl)>p&&--cn>0)}else{Ci=p,cn=25;do{var au=Ci*Ci,Js=G(Fr-au),eu=Ps+mo*Js,dc=Ci*eu+Bo*q(Ci/Hr)-Ts,Al=eu+(Bo-mo*au)/Js;Ci-=wo=Js?dc/Al:0}while(n(wo)>p&&--cn>0)}return[Ci,-ri-ze*G(Fr-Ci*Ci)]}function ya(ve,xe){for(var Ie=0,ze=1,Qe=.5,Xe=50;;){var nt=Qe*Qe,qt=G(Qe),Wt=q(1/G(1+nt)),nr=1-nt+Qe*(1+nt)*Wt,fr=(1-qt)/nr,br=G(fr),Fr=fr*(1+nt),Hr=br*(1-nt),ri=Fr-ve*ve,Ci=G(ri),cn=xe+Hr+Qe*Ci;if(n(ze-Ie)0?Ie=Qe:ze=Qe,Qe=.5*(Ie+ze)}if(!Xe)return null;var sn=q(qt),Ln=o(sn),Kn=1/Ln,Aa=2*qt*Ln,fa=(-3*Qe+Wt*(1+3*nt))*Aa,$a=(-nr*Ln-(1-qt)*fa)/(nr*nr),Co=.5*$a/br,Qa=(1-nt)*Co-2*Qe*br*Aa,mo=-2*Kn*Qa,Bo=-Kn*Aa,Ps=-Kn*(Qe*(1+nt)*$a+fr*(1+3*nt)*Aa);return[M/4*(ve*(mo+Bo*Ci)+Ps*q(ve/G(Fr))),sn]}function ea(){return t.geoProjection(En(ki)).scale(239.75)}function Ma(ve,xe,Ie){var ze,Qe,Xe;return ve?(ze=_o(ve,Ie),xe?(Qe=_o(xe,1-Ie),Xe=Qe[1]*Qe[1]+Ie*ze[0]*ze[0]*Qe[0]*Qe[0],[[ze[0]*Qe[2]/Xe,ze[1]*ze[2]*Qe[0]*Qe[1]/Xe],[ze[1]*Qe[1]/Xe,-ze[0]*ze[2]*Qe[0]*Qe[2]/Xe],[ze[2]*Qe[1]*Qe[2]/Xe,-Ie*ze[0]*ze[1]*Qe[0]/Xe]]):[[ze[0],0],[ze[1],0],[ze[2],0]]):(Qe=_o(xe,1-Ie),[[0,Qe[0]/Qe[1]],[1/Qe[1],0],[Qe[2]/Qe[1],0]])}function _o(ve,xe){var Ie,ze,Qe,Xe,nt;if(xe=1-p)return Ie=(1-xe)/4,ze=N(ve),Xe=Z(ve),Qe=1/ze,nt=ze*j(ve),[Xe+Ie*(nt-ve)/(ze*ze),Qe-Ie*Xe*Qe*(nt-ve),Qe+Ie*Xe*Qe*(nt+ve),2*i(s(ve))-T+Ie*(nt-ve)/ze];var qt=[1,0,0,0,0,0,0,0,0],Wt=[G(xe),0,0,0,0,0,0,0,0],nr=0;for(ze=G(1-xe),nt=1;n(Wt[nr]/qt[nr])>p&&nr<8;)Ie=qt[nr++],Wt[nr]=(Ie-ze)/2,qt[nr]=(Ie+ze)/2,ze=G(Ie*ze),nt*=2;Qe=nt*qt[nr]*ve;do Xe=Wt[nr]*m(ze=Qe)/qt[nr],Qe=(q(Xe)+Qe)/2;while(--nr);return[m(Qe),Xe=o(Qe),Xe/o(Qe-ze),Qe]}function No(ve,xe,Ie){var ze=n(ve),Qe=n(xe),Xe=j(Qe);if(ze){var nt=1/m(ze),qt=1/(b(ze)*b(ze)),Wt=-(qt+Ie*(Xe*Xe*nt*nt)-1+Ie),nr=(Ie-1)*qt,fr=(-Wt+G(Wt*Wt-4*nr))/2;return[po(i(1/G(fr)),Ie)*v(ve),po(i(G((fr/qt-1)/Ie)),1-Ie)*v(xe)]}return[0,po(i(Xe),1-Ie)*v(xe)]}function po(ve,xe){if(!xe)return ve;if(xe===1)return u(b(ve/2+L));for(var Ie=1,ze=G(1-xe),Qe=G(xe),Xe=0;n(Qe)>p;Xe++){if(ve%M){var nt=i(ze*b(ve)/Ie);nt<0&&(nt+=M),ve+=nt+~~(ve/M)*M}else ve+=ve;Qe=(Ie+ze)/2,ze=G(Ie*ze),Qe=((Ie=Qe)-ze)/2}return ve/(h(2,Xe)*Ie)}function Lo(ve,xe){var Ie=(C-1)/(C+1),ze=G(1-Ie*Ie),Qe=po(T,ze*ze),Xe=-1,nt=u(b(M/4+n(xe)/2)),qt=s(Xe*nt)/G(Ie),Wt=ko(qt*o(Xe*ve),qt*m(Xe*ve)),nr=No(Wt[0],Wt[1],ze*ze);return[-nr[1],(xe>=0?1:-1)*(.5*Qe-nr[0])]}function ko(ve,xe){var Ie=ve*ve,ze=xe+1,Qe=1-Ie-xe*xe;return[.5*((ve>=0?T:-T)-a(Qe,2*ve)),-.25*u(Qe*Qe+4*Ie)+.5*u(ze*ze+Ie)]}function Ds(ve,xe){var Ie=xe[0]*xe[0]+xe[1]*xe[1];return[(ve[0]*xe[0]+ve[1]*xe[1])/Ie,(ve[1]*xe[0]-ve[0]*xe[1])/Ie]}Lo.invert=function(ve,xe){var Ie=(C-1)/(C+1),ze=G(1-Ie*Ie),Qe=po(T,ze*ze),Xe=-1,nt=Ma(.5*Qe-xe,-ve,ze*ze),qt=Ds(nt[0],nt[1]),Wt=a(qt[1],qt[0])/Xe;return[Wt,2*i(s(.5/Xe*u(Ie*qt[0]*qt[0]+Ie*qt[1]*qt[1])))-T]};function Fs(){return t.geoProjection(En(Lo)).scale(151.496)}function ll(ve){var xe=m(ve),Ie=o(ve),ze=ul(ve);ze.invert=ul(-ve);function Qe(Xe,nt){var qt=ze(Xe,nt);Xe=qt[0],nt=qt[1];var Wt=m(nt),nr=o(nt),fr=o(Xe),br=V(xe*Wt+Ie*nr*fr),Fr=m(br),Hr=n(Fr)>p?br/Fr:1;return[Hr*Ie*m(Xe),(n(Xe)>T?Hr:-Hr)*(xe*nr-Ie*Wt*fr)]}return Qe.invert=function(Xe,nt){var qt=G(Xe*Xe+nt*nt),Wt=-m(qt),nr=o(qt),fr=qt*nr,br=-nt*Wt,Fr=qt*xe,Hr=G(fr*fr+br*br-Fr*Fr),ri=a(fr*Fr+br*Hr,br*Fr-fr*Hr),Ci=(qt>T?-1:1)*a(Xe*Wt,qt*o(ri)*nr+nt*m(ri)*Wt);return ze.invert(Ci,ri)},Qe}function ul(ve){var xe=m(ve),Ie=o(ve);return function(ze,Qe){var Xe=o(Qe),nt=o(ze)*Xe,qt=m(ze)*Xe,Wt=m(Qe);return[a(qt,nt*Ie-Wt*xe),q(Wt*Ie+nt*xe)]}}function Fl(){var ve=0,xe=t.geoProjectionMutator(ll),Ie=xe(ve),ze=Ie.rotate,Qe=Ie.stream,Xe=t.geoCircle();return Ie.parallel=function(nt){if(!arguments.length)return ve*P;var qt=Ie.rotate();return xe(ve=nt*E).rotate(qt)},Ie.rotate=function(nt){return arguments.length?(ze.call(Ie,[nt[0],nt[1]-ve*P]),Xe.center([-nt[0],-nt[1]]),Ie):(nt=ze.call(Ie),nt[1]+=ve*P,nt)},Ie.stream=function(nt){return nt=Qe(nt),nt.sphere=function(){nt.polygonStart();var qt=.01,Wt=Xe.radius(90-qt)().coordinates[0],nr=Wt.length-1,fr=-1,br;for(nt.lineStart();++fr=0;)nt.point((br=Wt[fr])[0],br[1]);nt.lineEnd(),nt.polygonEnd()},nt},Ie.scale(79.4187).parallel(45).clipAngle(180-.001)}var us=3,rl=q(1-1/us)*P,As=Yr(0);function cl(ve){var xe=rl*E,Ie=xt(M,xe)[0]-xt(-M,xe)[0],ze=As(0,xe)[1],Qe=xt(0,xe)[1],Xe=S-Qe,nt=g/ve,qt=4/g,Wt=ze+Xe*Xe*4/g;function nr(fr,br){var Fr,Hr=n(br);if(Hr>xe){var ri=f(ve-1,c(0,l((fr+M)/nt)));fr+=M*(ve-1)/ve-ri*nt,Fr=xt(fr,Hr),Fr[0]=Fr[0]*g/Ie-g*(ve-1)/(2*ve)+ri*g/ve,Fr[1]=ze+(Fr[1]-Qe)*4*Xe/g,br<0&&(Fr[1]=-Fr[1])}else Fr=As(fr,br);return Fr[0]*=qt,Fr[1]/=Wt,Fr}return nr.invert=function(fr,br){fr/=qt,br*=Wt;var Fr=n(br);if(Fr>ze){var Hr=f(ve-1,c(0,l((fr+M)/nt)));fr=(fr+M*(ve-1)/ve-Hr*nt)*Ie/g;var ri=xt.invert(fr,.25*(Fr-ze)*g/Xe+Qe);return ri[0]-=M*(ve-1)/ve-Hr*nt,br<0&&(ri[1]=-ri[1]),ri}return As.invert(fr,br)},nr}function Ks(ve,xe){return[ve,xe&1?90-p:rl]}function zs(ve,xe){return[ve,xe&1?-90+p:-rl]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function ls(ve){var xe=[].concat(r.range(-180,180+ve/2,ve).map(Ks),r.range(180,-180-ve/2,-ve).map(zs));return{type:"Polygon",coordinates:[ve===180?xe.map(Io):xe]}}function Yl(){var ve=4,xe=t.geoProjectionMutator(cl),Ie=xe(ve),ze=Ie.stream;return Ie.lobes=function(Qe){return arguments.length?xe(ve=+Qe):ve},Ie.stream=function(Qe){var Xe=Ie.rotate(),nt=ze(Qe),qt=(Ie.rotate([0,0]),ze(Qe));return Ie.rotate(Xe),nt.sphere=function(){t.geoStream(ls(180/ve),qt)},nt},Ie.scale(239.75)}function Su(ve){var xe=1+ve,Ie=m(1/xe),ze=q(Ie),Qe=2*G(M/(Xe=M+4*ze*xe)),Xe,nt=.5*Qe*(xe+G(ve*(2+ve))),qt=ve*ve,Wt=xe*xe;function nr(fr,br){var Fr=1-m(br),Hr,ri;if(Fr&&Fr<2){var Ci=T-br,cn=25,sn;do{var Ln=m(Ci),Kn=o(Ci),Aa=ze+a(Ln,xe-Kn),fa=1+Wt-2*xe*Kn;Ci-=sn=(Ci-qt*ze-xe*Ln+fa*Aa-.5*Fr*Xe)/(2*xe*Ln*Aa)}while(n(sn)>k&&--cn>0);Hr=Qe*G(fa),ri=fr*Aa/M}else Hr=Qe*(ve+Fr),ri=fr*ze/M;return[Hr*m(ri),nt-Hr*o(ri)]}return nr.invert=function(fr,br){var Fr=fr*fr+(br-=nt)*br,Hr=(1+Wt-Fr/(Qe*Qe))/(2*xe),ri=V(Hr),Ci=m(ri),cn=ze+a(Ci,xe-Hr);return[q(fr/G(Fr))*M/cn,q(1-2*(ri-qt*ze-xe*Ci+(1+Wt-2*xe*Hr)*cn)/Xe)]},nr}function nc(){var ve=1,xe=t.geoProjectionMutator(Su),Ie=xe(ve);return Ie.ratio=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(167.774).center([0,18.67])}var bs=.7109889596207567,Rn=.0528035274542;function _a(ve,xe){return xe>-bs?(ve=tt(ve,xe),ve[1]+=Rn,ve):dt(ve,xe)}_a.invert=function(ve,xe){return xe>-bs?tt.invert(ve,xe-Rn):dt.invert(ve,xe)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function zl(ve,xe){return n(xe)>bs?(ve=tt(ve,xe),ve[1]-=xe>0?Rn:-Rn,ve):dt(ve,xe)}zl.invert=function(ve,xe){return n(xe)>bs?tt.invert(ve,xe+(xe>0?Rn:-Rn)):dt.invert(ve,xe)};function xo(){return t.geoProjection(zl).scale(152.63)}function Kl(ve,xe,Ie,ze){var Qe=G(4*M/(2*Ie+(1+ve-xe/2)*m(2*Ie)+(ve+xe)/2*m(4*Ie)+xe/2*m(6*Ie))),Xe=G(ze*m(Ie)*G((1+ve*o(2*Ie)+xe*o(4*Ie))/(1+ve+xe))),nt=Ie*Wt(1);function qt(br){return G(1+ve*o(2*br)+xe*o(4*br))}function Wt(br){var Fr=br*Ie;return(2*Fr+(1+ve-xe/2)*m(2*Fr)+(ve+xe)/2*m(4*Fr)+xe/2*m(6*Fr))/Ie}function nr(br){return qt(br)*m(br)}var fr=function(br,Fr){var Hr=Ie*Ht(Wt,nt*m(Fr)/Ie,Fr/M);isNaN(Hr)&&(Hr=Ie*v(Fr));var ri=Qe*qt(Hr);return[ri*Xe*br/M*o(Hr),ri/Xe*m(Hr)]};return fr.invert=function(br,Fr){var Hr=Ht(nr,Fr*Xe/Qe);return[br*M/(o(Hr)*Qe*Xe*qt(Hr)),q(Ie*Wt(Hr/Ie)/nt)]},Ie===0&&(Qe=G(ze/M),fr=function(br,Fr){return[br*Qe,m(Fr)/Qe]},fr.invert=function(br,Fr){return[br/Qe,q(Fr*Qe)]}),fr}function Ns(){var ve=1,xe=0,Ie=45*E,ze=2,Qe=t.geoProjectionMutator(Kl),Xe=Qe(ve,xe,Ie,ze);return Xe.a=function(nt){return arguments.length?Qe(ve=+nt,xe,Ie,ze):ve},Xe.b=function(nt){return arguments.length?Qe(ve,xe=+nt,Ie,ze):xe},Xe.psiMax=function(nt){return arguments.length?Qe(ve,xe,Ie=+nt*E,ze):Ie*P},Xe.ratio=function(nt){return arguments.length?Qe(ve,xe,Ie,ze=+nt):ze},Xe.scale(180.739)}function Hl(ve,xe,Ie,ze,Qe,Xe,nt,qt,Wt,nr,fr){if(fr.nanEncountered)return NaN;var br,Fr,Hr,ri,Ci,cn,sn,Ln,Kn,Aa;if(br=Ie-xe,Fr=ve(xe+br*.25),Hr=ve(Ie-br*.25),isNaN(Fr)){fr.nanEncountered=!0;return}if(isNaN(Hr)){fr.nanEncountered=!0;return}return ri=br*(ze+4*Fr+Qe)/12,Ci=br*(Qe+4*Hr+Xe)/12,cn=ri+Ci,Aa=(cn-nt)/15,nr>Wt?(fr.maxDepthCount++,cn+Aa):Math.abs(Aa)>1;do Wt[cn]>Hr?Ci=cn:ri=cn,cn=ri+Ci>>1;while(cn>ri);var sn=Wt[cn+1]-Wt[cn];return sn&&(sn=(Hr-Wt[cn+1])/sn),(cn+1+sn)/nt}var br=2*fr(1)/M*Xe/Ie,Fr=function(Hr,ri){var Ci=fr(n(m(ri))),cn=ze(Ci)*Hr;return Ci/=br,[cn,ri>=0?Ci:-Ci]};return Fr.invert=function(Hr,ri){var Ci;return ri*=br,n(ri)<1&&(Ci=v(ri)*q(Qe(n(ri))*Xe)),[Hr/ze(n(ri)),Ci]},Fr}function qo(){var ve=0,xe=2.5,Ie=1.183136,ze=t.geoProjectionMutator(oa),Qe=ze(ve,xe,Ie);return Qe.alpha=function(Xe){return arguments.length?ze(ve=+Xe,xe,Ie):ve},Qe.k=function(Xe){return arguments.length?ze(ve,xe=+Xe,Ie):xe},Qe.gamma=function(Xe){return arguments.length?ze(ve,xe,Ie=+Xe):Ie},Qe.scale(152.63)}function Oo(ve,xe){return n(ve[0]-xe[0])=0;--Wt)Ie=ve[1][Wt],ze=Ie[0][0],Qe=Ie[0][1],Xe=Ie[1][1],nt=Ie[2][0],qt=Ie[2][1],xe.push(ql([[nt-p,qt-p],[nt-p,Xe+p],[ze+p,Xe+p],[ze+p,Qe-p]],30));return{type:"Polygon",coordinates:[r.merge(xe)]}}function Do(ve,xe,Ie){var ze,Qe;function Xe(Wt,nr){for(var fr=nr<0?-1:1,br=xe[+(nr<0)],Fr=0,Hr=br.length-1;Frbr[Fr][2][0];++Fr);var ri=ve(Wt-br[Fr][1][0],nr);return ri[0]+=ve(br[Fr][1][0],fr*nr>fr*br[Fr][0][1]?br[Fr][0][1]:nr)[0],ri}Ie?Xe.invert=Ie(Xe):ve.invert&&(Xe.invert=function(Wt,nr){for(var fr=Qe[+(nr<0)],br=xe[+(nr<0)],Fr=0,Hr=fr.length;Frri&&(Ci=Hr,Hr=ri,ri=Ci),[[br,Hr],[Fr,ri]]})}),nt):xe.map(function(nr){return nr.map(function(fr){return[[fr[0][0]*P,fr[0][1]*P],[fr[1][0]*P,fr[1][1]*P],[fr[2][0]*P,fr[2][1]*P]]})})},xe!=null&&nt.lobes(xe),nt}var nf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Vf(){return Do(rt,nf).scale(160.857)}var pl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Zc(){return Do(zl,pl).scale(152.63)}var Jl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function qs(){return Do(tt,Jl).scale(169.529)}var yu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oc(){return Do(tt,yu).scale(169.529).rotate([20,0])}var Cf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function sc(){return Do(_a,Cf,at).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var jh=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Lf(){return Do(dt,jh).scale(152.63).rotate([-20,0])}function cs(ve,xe){return[3/g*ve*G(M*M/3-xe*xe),xe]}cs.invert=function(ve,xe){return[g/3*ve/G(M*M/3-xe*xe),xe]};function af(){return t.geoProjection(cs).scale(158.837)}function Gf(ve){function xe(Ie,ze){if(n(n(ze)-T)2)return null;Ie/=2,ze/=2;var Xe=Ie*Ie,nt=ze*ze,qt=2*ze/(1+Xe+nt);return qt=h((1+qt)/(1-qt),1/ve),[a(2*Ie,1-Xe-nt)/ve,q((qt-1)/(qt+1))]},xe}function $l(){var ve=.5,xe=t.geoProjectionMutator(Gf),Ie=xe(ve);return Ie.spacing=function(ze){return arguments.length?xe(ve=+ze):ve},Ie.scale(124.75)}var fl=M/C;function lc(ve,xe){return[ve*(1+G(o(xe)))/2,xe/(o(xe/2)*o(ve/6))]}lc.invert=function(ve,xe){var Ie=n(ve),ze=n(xe),Qe=p,Xe=T;zep||n(cn)>p)&&--Qe>0);return Qe&&[Ie,ze]};function Hs(){return t.geoProjection(Es).scale(139.98)}function Go(ve,xe){return[m(ve)/o(xe),b(xe)*o(ve)]}Go.invert=function(ve,xe){var Ie=ve*ve,ze=xe*xe,Qe=ze+1,Xe=Ie+Qe,nt=ve?x*G((Xe-G(Xe*Xe-4*Ie))/Ie):1/G(Qe);return[q(ve*nt),v(xe)*V(nt)]};function ps(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var xe=o(ve),Ie=b(L+ve/2);function ze(Qe,Xe){var nt=Xe-ve,qt=n(nt)=0;)fr=ve[nr],br=fr[0]+qt*(Hr=br)-Wt*Fr,Fr=fr[1]+qt*Fr+Wt*Hr;return br=qt*(Hr=br)-Wt*Fr,Fr=qt*Fr+Wt*Hr,[br,Fr]}return Ie.invert=function(ze,Qe){var Xe=20,nt=ze,qt=Qe;do{for(var Wt=xe,nr=ve[Wt],fr=nr[0],br=nr[1],Fr=0,Hr=0,ri;--Wt>=0;)nr=ve[Wt],Fr=fr+nt*(ri=Fr)-qt*Hr,Hr=br+nt*Hr+qt*ri,fr=nr[0]+nt*(ri=fr)-qt*br,br=nr[1]+nt*br+qt*ri;Fr=fr+nt*(ri=Fr)-qt*Hr,Hr=br+nt*Hr+qt*ri,fr=nt*(ri=fr)-qt*br-ze,br=nt*br+qt*ri-Qe;var Ci=Fr*Fr+Hr*Hr,cn,sn;nt-=cn=(fr*Fr+br*Hr)/Ci,qt-=sn=(br*Fr-fr*Hr)/Ci}while(n(cn)+n(sn)>p*p&&--Xe>0);if(Xe){var Ln=G(nt*nt+qt*qt),Kn=2*i(Ln*.5),Aa=m(Kn);return[a(nt*Aa,Ln*o(Kn)),Ln?q(qt*Aa/Ln):0]}},Ie}var Po=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],sd=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Ko=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Pa=[[.9245,0],[0,0],[.01943,0]],of=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hu(){return Ol(Po,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function wl(){return Ol(sd,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Hf(){return Ol(Ko,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ic(){return Ol(Pa,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function yf(){return Ol(of,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Ol(ve,xe){var Ie=t.geoProjection(od(ve)).rotate(xe).clipAngle(90),ze=t.geoRotation(xe),Qe=Ie.center;return delete Ie.rotate,Ie.center=function(Xe){return arguments.length?Qe(ze(Xe)):ze.invert(Qe())},Ie}var Ah=G(6),Qf=G(7);function _f(ve,xe){var Ie=q(7*m(xe)/(3*Ah));return[Ah*ve*(2*o(2*Ie/3)-1)/Qf,9*m(Ie/3)/Qf]}_f.invert=function(ve,xe){var Ie=3*q(xe*Qf/9);return[ve*Qf/(Ah*(2*o(2*Ie/3)-1)),q(m(Ie)*3*Ah/7)]};function Yc(){return t.geoProjection(_f).scale(164.859)}function eh(ve,xe){for(var Ie=(1+x)*m(xe),ze=xe,Qe=0,Xe;Qe<25&&(ze-=Xe=(m(ze/2)+m(ze)-Ie)/(.5*o(ze/2)+o(ze)),!(n(Xe)k&&--ze>0);return Xe=Ie*Ie,nt=Xe*Xe,qt=Xe*nt,[ve/(.84719-.13063*Xe+qt*qt*(-.04515+.05494*Xe-.02326*nt+.00331*qt)),Ie]};function sf(){return t.geoProjection(cc).scale(175.295)}function Bl(ve,xe){return[ve*(1+o(xe))/2,2*(xe-b(xe/2))]}Bl.invert=function(ve,xe){for(var Ie=xe/2,ze=0,Qe=1/0;ze<10&&n(Qe)>p;++ze){var Xe=o(xe/2);xe-=Qe=(xe-b(xe/2)-Ie)/(1-.5/(Xe*Xe))}return[2*ve/(1+o(xe)),xe]};function Kc(){return t.geoProjection(Bl).scale(152.63)}var Rc=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function gs(){return Do(He(1/0),Rc).rotate([20,0]).scale(152.63)}function Wf(ve,xe){var Ie=m(xe),ze=o(xe),Qe=v(ve);if(ve===0||n(xe)===T)return[0,xe];if(xe===0)return[ve,0];if(n(ve)===T)return[ve*ze,T*Ie];var Xe=M/(2*ve)-2*ve/M,nt=2*xe/M,qt=(1-nt*nt)/(Ie-nt),Wt=Xe*Xe,nr=qt*qt,fr=1+Wt/nr,br=1+nr/Wt,Fr=(Xe*Ie/qt-Xe/2)/fr,Hr=(nr*Ie/Wt+qt/2)/br,ri=Fr*Fr+ze*ze/fr,Ci=Hr*Hr-(nr*Ie*Ie/Wt+qt*Ie-1)/br;return[T*(Fr+G(ri)*Qe),T*(Hr+G(Ci<0?0:Ci)*v(-xe*Xe)*Qe)]}Wf.invert=function(ve,xe){ve/=T,xe/=T;var Ie=ve*ve,ze=xe*xe,Qe=Ie+ze,Xe=M*M;return[ve?(Qe-1+G((1-Qe)*(1-Qe)+4*Ie))/(2*ve)*T:0,Ht(function(nt){return Qe*(M*m(nt)-2*nt)*M+4*nt*nt*(xe-m(nt))+2*M*nt-Xe*xe},0)]};function Wh(){return t.geoProjection(Wf).scale(127.267)}var rh=1.0148,lf=.23185,Sh=-.14499,Mu=.02406,ih=rh,js=5*lf,Eu=7*Sh,Dc=9*Mu,ks=1.790857183;function bc(ve,xe){var Ie=xe*xe;return[ve,xe*(rh+Ie*Ie*(lf+Ie*(Sh+Mu*Ie)))]}bc.invert=function(ve,xe){xe>ks?xe=ks:xe<-ks&&(xe=-ks);var Ie=xe,ze;do{var Qe=Ie*Ie;Ie-=ze=(Ie*(rh+Qe*Qe*(lf+Qe*(Sh+Mu*Qe)))-xe)/(ih+Qe*Qe*(js+Qe*(Eu+Dc*Qe)))}while(n(ze)>p);return[ve,Ie]};function hu(){return t.geoProjection(bc).scale(139.319)}function _u(ve,xe){if(n(xe)p&&--Qe>0);return nt=b(ze),[(n(xe)=0;)if(ze=xe[qt],Ie[0]===ze[0]&&Ie[1]===ze[1]){if(Xe)return[Xe,Ie];Xe=Ie}}}function jl(ve){for(var xe=ve.length,Ie=[],ze=ve[xe-1],Qe=0;Qe0?[-ze[0],0]:[180-ze[0],180])};var xe=If.map(function(Ie){return{face:Ie,project:ve(Ie)}});return[-1,0,0,1,0,1,4,5].forEach(function(Ie,ze){var Qe=xe[Ie];Qe&&(Qe.children||(Qe.children=[])).push(xe[ze])}),xf(xe[0],function(Ie,ze){return xe[Ie<-M/2?ze<0?6:4:Ie<0?ze<0?2:0:Ieze^Hr>ze&&Ie<(Fr-nr)*(ze-fr)/(Hr-fr)+nr&&(Qe=!Qe)}return Qe}function Wl(ve,xe){var Ie=xe.stream,ze;if(!Ie)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":ze=Zu;break;case"FeatureCollection":ze=ah;break;default:ze=Tc;break}return ze(ve,Ie)}function ah(ve,xe){return{type:"FeatureCollection",features:ve.features.map(function(Ie){return Zu(Ie,xe)})}}function Zu(ve,xe){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,xe)}}function qc(ve,xe){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Ie){return Tc(Ie,xe)})}}function Tc(ve,xe){if(!ve)return null;if(ve.type==="GeometryCollection")return qc(ve,xe);var Ie;switch(ve.type){case"Point":Ie=Oc;break;case"MultiPoint":Ie=Oc;break;case"LineString":Ie=ff;break;case"MultiLineString":Ie=ff;break;case"Polygon":Ie=fc;break;case"MultiPolygon":Ie=fc;break;case"Sphere":Ie=fc;break;default:return null}return t.geoStream(ve,xe(Ie)),Ie.result()}var Tl=[],vu=[],Oc={point:function(ve,xe){Tl.push([ve,xe])},result:function(){var ve=Tl.length?Tl.length<2?{type:"Point",coordinates:Tl[0]}:{type:"MultiPoint",coordinates:Tl}:null;return Tl=[],ve}},ff={lineStart:Xu,point:function(ve,xe){Tl.push([ve,xe])},lineEnd:function(){Tl.length&&(vu.push(Tl),Tl=[])},result:function(){var ve=vu.length?vu.length<2?{type:"LineString",coordinates:vu[0]}:{type:"MultiLineString",coordinates:vu}:null;return vu=[],ve}},fc={polygonStart:Xu,lineStart:Xu,point:function(ve,xe){Tl.push([ve,xe])},lineEnd:function(){var ve=Tl.length;if(ve){do Tl.push(Tl[0].slice());while(++ve<4);vu.push(Tl),Tl=[]}},polygonEnd:Xu,result:function(){if(!vu.length)return null;var ve=[],xe=[];return vu.forEach(function(Ie){cf(Ie)?ve.push([Ie]):xe.push(Ie)}),xe.forEach(function(Ie){var ze=Ie[0];ve.some(function(Qe){if(Zf(Qe[0],ze))return Qe.push(Ie),!0})||ve.push([Ie])}),vu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var xe=ve(T,0)[0]-ve(-T,0)[0];function Ie(ze,Qe){var Xe=n(ze)0?ze-M:ze+M,Qe),qt=(nt[0]-nt[1])*x,Wt=(nt[0]+nt[1])*x;if(Xe)return[qt,Wt];var nr=xe*x,fr=qt>0^Wt>0?-1:1;return[fr*qt-v(Wt)*nr,fr*Wt-v(qt)*nr]}return ve.invert&&(Ie.invert=function(ze,Qe){var Xe=(ze+Qe)*x,nt=(Qe-ze)*x,qt=n(Xe)<.5*xe&&n(nt)<.5*xe;if(!qt){var Wt=xe*x,nr=Xe>0^nt>0?-1:1,fr=-nr*ze+(nt>0?1:-1)*Wt,br=-nr*Qe+(Xe>0?1:-1)*Wt;Xe=(-fr-br)*x,nt=(fr-br)*x}var Fr=ve.invert(Xe,nt);return qt||(Fr[0]+=Xe>0?M:-M),Fr}),t.geoProjection(Ie).rotate([-90,-90,45]).clipAngle(180-.001)}function kt(){return Bc(ki).scale(176.423)}function Zt(){return Bc(Lo).scale(111.48)}function Er(ve,xe){if(!(0<=(xe=+xe)&&xe<=20))throw new Error("invalid digits");function Ie(nr){var fr=nr.length,br=2,Fr=new Array(fr);for(Fr[0]=+nr[0].toFixed(xe),Fr[1]=+nr[1].toFixed(xe);br2||Hr[0]!=fr[0]||Hr[1]!=fr[1])&&(br.push(Hr),fr=Hr)}return br.length===1&&nr.length>1&&br.push(Ie(nr[nr.length-1])),br}function Xe(nr){return nr.map(Qe)}function nt(nr){if(nr==null)return nr;var fr;switch(nr.type){case"GeometryCollection":fr={type:"GeometryCollection",geometries:nr.geometries.map(nt)};break;case"Point":fr={type:"Point",coordinates:Ie(nr.coordinates)};break;case"MultiPoint":fr={type:nr.type,coordinates:ze(nr.coordinates)};break;case"LineString":fr={type:nr.type,coordinates:Qe(nr.coordinates)};break;case"MultiLineString":case"Polygon":fr={type:nr.type,coordinates:Xe(nr.coordinates)};break;case"MultiPolygon":fr={type:"MultiPolygon",coordinates:nr.coordinates.map(Xe)};break;default:return nr}return nr.bbox!=null&&(fr.bbox=nr.bbox),fr}function qt(nr){var fr={type:"Feature",properties:nr.properties,geometry:nt(nr.geometry)};return nr.id!=null&&(fr.id=nr.id),nr.bbox!=null&&(fr.bbox=nr.bbox),fr}if(ve!=null)switch(ve.type){case"Feature":return qt(ve);case"FeatureCollection":{var Wt={type:"FeatureCollection",features:ve.features.map(qt)};return ve.bbox!=null&&(Wt.bbox=ve.bbox),Wt}default:return nt(ve)}return ve}function xr(ve){var xe=m(ve);function Ie(ze,Qe){var Xe=xe?b(ze*xe/2)/xe:ze/2;if(!Qe)return[2*Xe,-ve];var nt=2*i(Xe*m(Qe)),qt=1/b(Qe);return[m(nt)*qt,Qe+(1-o(nt))*qt-ve]}return Ie.invert=function(ze,Qe){if(n(Qe+=ve)p&&--qt>0);var Fr=ze*(nr=b(nt)),Hr=b(n(Qe)0?T:-T)*(Wt+Qe*(fr-nt)/2+Qe*Qe*(fr-2*Wt+nt)/2)]}Xi.invert=function(ve,xe){var Ie=xe/T,ze=Ie*90,Qe=f(18,n(ze/5)),Xe=c(0,l(Qe));do{var nt=Mi[Xe][1],qt=Mi[Xe+1][1],Wt=Mi[f(19,Xe+2)][1],nr=Wt-nt,fr=Wt-2*qt+nt,br=2*(n(Ie)-qt)/nr,Fr=fr/nr,Hr=br*(1-Fr*br*(1-2*Fr*br));if(Hr>=0||Xe===1){ze=(xe>=0?5:-5)*(Hr+Qe);var ri=50,Ci;do Qe=f(18,n(ze)/5),Xe=l(Qe),Hr=Qe-Xe,nt=Mi[Xe][1],qt=Mi[Xe+1][1],Wt=Mi[f(19,Xe+2)][1],ze-=(Ci=(xe>=0?T:-T)*(qt+Hr*(Wt-nt)/2+Hr*Hr*(Wt-2*qt+nt)/2)-xe)*P;while(n(Ci)>k&&--ri>0);break}}while(--Xe>=0);var cn=Mi[Xe][0],sn=Mi[Xe+1][0],Ln=Mi[f(19,Xe+2)][0];return[ve/(sn+Hr*(Ln-cn)/2+Hr*Hr*(Ln-2*sn+cn)/2),ze*E]};function dn(){return t.geoProjection(Xi).scale(152.63)}function wn(ve){function xe(Ie,ze){var Qe=o(ze),Xe=(ve-1)/(ve-Qe*o(Ie));return[Xe*Qe*m(Ie),Xe*m(ze)]}return xe.invert=function(Ie,ze){var Qe=Ie*Ie+ze*ze,Xe=G(Qe),nt=(ve-G(1-Qe*(ve+1)/(ve-1)))/((ve-1)/Xe+Xe/(ve-1));return[a(Ie*nt,Xe*G(1-nt*nt)),Xe?q(ze*nt/Xe):0]},xe}function On(ve,xe){var Ie=wn(ve);if(!xe)return Ie;var ze=o(xe),Qe=m(xe);function Xe(nt,qt){var Wt=Ie(nt,qt),nr=Wt[1],fr=nr*Qe/(ve-1)+ze;return[Wt[0]*ze/fr,nr/fr]}return Xe.invert=function(nt,qt){var Wt=(ve-1)/(ve-1-qt*Qe);return Ie.invert(Wt*nt,Wt*qt*ze)},Xe}function Yi(){var ve=2,xe=0,Ie=t.geoProjectionMutator(On),ze=Ie(ve,xe);return ze.distance=function(Qe){return arguments.length?Ie(ve=+Qe,xe):ve},ze.tilt=function(Qe){return arguments.length?Ie(ve,xe=Qe*E):xe*P},ze.scale(432.147).clipAngle(V(1/ve)*P-1e-6)}var $i=1e-4,an=1e4,Fi=-180,ta=Fi+$i,Ca=180,Ra=Ca-$i,La=-90,Ua=La+$i,Zn=90,Dn=Zn-$i;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*an)/an}function Zo(ve){return ve===La||ve===Zn?[0,ve]:[Fi,bo(ve)]}function Ss(ve){var xe=ve[0],Ie=ve[1],ze=!1;return xe<=ta?(xe=Fi,ze=!0):xe>=Ra&&(xe=Ca,ze=!0),Ie<=Ua?(Ie=La,ze=!0):Ie>=Dn&&(Ie=Zn,ze=!0),ze?[xe,Ie]:ve}function as(ve){return ve.map(Ss)}function ws(ve,xe,Ie){for(var ze=0,Qe=ve.length;ze=Ra||fr<=Ua||fr>=Dn){Xe[nt]=Ss(Wt);for(var br=nt+1;brta&&HrUa&&ri=qt)break;Ie.push({index:-1,polygon:xe,ring:Xe=Xe.slice(br-1)}),Xe[0]=Zo(Xe[0][1]),nt=-1,qt=Xe.length}}}}function Ho(ve){var xe,Ie=ve.length,ze={},Qe={},Xe,nt,qt,Wt,nr;for(xe=0;xe0?M-qt:qt)*P],nr=t.geoProjection(ve(nt)).rotate(Wt),fr=t.geoRotation(Wt),br=nr.center;return delete nr.rotate,nr.center=function(Fr){return arguments.length?br(fr(Fr)):fr.invert(br())},nr.clipAngle(90)}function rs(ve){var xe=o(ve);function Ie(ze,Qe){var Xe=t.geoGnomonicRaw(ze,Qe);return Xe[0]*=xe,Xe}return Ie.invert=function(ze,Qe){return t.geoGnomonicRaw.invert(ze/xe,Qe)},Ie}function Ql(){return Cu([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Cu(ve,xe){return ys(rs,ve,xe)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var xe=-ve/2,Ie=-xe,ze=ve*ve,Qe=b(Ie),Xe=.5/m(Ie);function nt(qt,Wt){var nr=V(o(Wt)*o(qt-xe)),fr=V(o(Wt)*o(qt-Ie)),br=Wt<0?-1:1;return nr*=nr,fr*=fr,[(nr-fr)/(2*ve),br*G(4*ze*fr-(ze-nr+fr)*(ze-nr+fr))/(2*ve)]}return nt.invert=function(qt,Wt){var nr=Wt*Wt,fr=o(G(nr+(Fr=qt+xe)*Fr)),br=o(G(nr+(Fr=qt+Ie)*Fr)),Fr,Hr;return[a(Hr=fr-br,Fr=(fr+br)*Qe),(Wt<0?-1:1)*V(G(Fr*Fr+Hr*Hr)*Xe)]},nt}function Nc(){return pu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function pu(ve,xe){return ys(Yu,ve,xe)}function Uc(ve,xe){if(n(xe)p&&--qt>0);return[v(ve)*(G(Qe*Qe+4)+Qe)*M/4,T*nt]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,xe,Ie,ze,Qe){function Xe(nt,qt){var Wt=Ie*m(ze*qt),nr=G(1-Wt*Wt),fr=G(2/(1+nr*o(nt*=Qe)));return[ve*nr*fr*m(nt),xe*Wt*fr]}return Xe.invert=function(nt,qt){var Wt=nt/ve,nr=qt/xe,fr=G(Wt*Wt+nr*nr),br=2*q(fr/2);return[a(nt*b(br),ve*fr)/Qe,fr&&q(qt*m(br)/(xe*Ie*fr))/ze]},Xe}function w(ve,xe,Ie,ze){var Qe=M/3;ve=c(ve,p),xe=c(xe,p),ve=f(ve,T),xe=f(xe,M-p),Ie=c(Ie,0),Ie=f(Ie,100-p),ze=c(ze,p);var Xe=Ie/100+1,nt=ze/100,qt=V(Xe*o(Qe))/Qe,Wt=m(ve)/m(qt*T),nr=xe/M,fr=G(nt*m(ve/2)/m(xe/2)),br=fr/G(nr*Wt*qt),Fr=1/(fr*G(nr*Wt*qt));return ue(br,Fr,Wt,qt,nr)}function B(){var ve=65*E,xe=60*E,Ie=20,ze=200,Qe=t.geoProjectionMutator(w),Xe=Qe(ve,xe,Ie,ze);return Xe.poleline=function(nt){return arguments.length?Qe(ve=+nt*E,xe,Ie,ze):ve*P},Xe.parallels=function(nt){return arguments.length?Qe(ve,xe=+nt*E,Ie,ze):xe*P},Xe.inflation=function(nt){return arguments.length?Qe(ve,xe,Ie=+nt,ze):Ie},Xe.ratio=function(nt){return arguments.length?Qe(ve,xe,Ie,ze=+nt):ze},Xe.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*M+3*G(3),le=2*G(2*M*G(3)/ee),Fe=rr(le*G(3)/M,le,ee/6);function Ze(){return t.geoProjection(Fe).scale(176.84)}function ut(ve,xe){return[ve*G(1-3*xe*xe/(M*M)),xe]}ut.invert=function(ve,xe){return[ve/G(1-3*xe*xe/(M*M)),xe]};function Mt(){return t.geoProjection(ut).scale(152.63)}function Jt(ve,xe){var Ie=o(xe),ze=o(ve)*Ie,Qe=1-ze,Xe=o(ve=a(m(ve)*Ie,-m(xe))),nt=m(ve);return Ie=G(1-ze*ze),[nt*Ie-Xe*Qe,-Xe*Ie-nt*Qe]}Jt.invert=function(ve,xe){var Ie=(ve*ve+xe*xe)/-2,ze=G(-Ie*(2+Ie)),Qe=xe*Ie+ve*ze,Xe=ve*Ie-xe*ze,nt=G(Xe*Xe+Qe*Qe);return[a(ze*Qe,nt*(1+Ie)),nt?-q(ze*Xe/nt):0]};function $t(){return t.geoProjection(Jt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function yr(ve,xe){var Ie=Ee(ve,xe);return[(Ie[0]+ve/T)/2,(Ie[1]+xe)/2]}yr.invert=function(ve,xe){var Ie=ve,ze=xe,Qe=25;do{var Xe=o(ze),nt=m(ze),qt=m(2*ze),Wt=nt*nt,nr=Xe*Xe,fr=m(Ie),br=o(Ie/2),Fr=m(Ie/2),Hr=Fr*Fr,ri=1-nr*br*br,Ci=ri?V(Xe*br)*G(cn=1/ri):cn=0,cn,sn=.5*(2*Ci*Xe*Fr+Ie/T)-ve,Ln=.5*(Ci*nt+ze)-xe,Kn=.5*cn*(nr*Hr+Ci*Xe*br*Wt)+.5/T,Aa=cn*(fr*qt/4-Ci*nt*Fr),fa=.125*cn*(qt*Fr-Ci*nt*nr*fr),$a=.5*cn*(Wt*br+Ci*Hr*Xe)+.5,Co=Aa*fa-$a*Kn,Qa=(Ln*Aa-sn*$a)/Co,mo=(sn*fa-Ln*Kn)/Co;Ie-=Qa,ze-=mo}while((n(Qa)>p||n(mo)>p)&&--Qe>0);return[Ie,ze]};function Cr(){return t.geoProjection(yr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=ae,e.geoAitoff=Ce,e.geoAitoffRaw=Ee,e.geoArmadillo=ie,e.geoArmadilloRaw=ge,e.geoAugust=ke,e.geoAugustRaw=Se,e.geoBaker=me,e.geoBakerRaw=Le,e.geoBerghaus=ce,e.geoBerghausRaw=Pe,e.geoBertin1953=ar,e.geoBertin1953Raw=ct,e.geoBoggs=St,e.geoBoggsRaw=rt,e.geoBonne=jt,e.geoBonneRaw=pt,e.geoBottomley=mr,e.geoBottomleyRaw=or,e.geoBromley=ei,e.geoBromleyRaw=Ar,e.geoChamberlin=et,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=We,e.geoCollignon=At,e.geoCollignonRaw=xt,e.geoCraig=Qt,e.geoCraigRaw=Kt,e.geoCraster=Ir,e.geoCrasterRaw=Gr,e.geoCylindricalEqualArea=_i,e.geoCylindricalEqualAreaRaw=Yr,e.geoCylindricalStereographic=ai,e.geoCylindricalStereographicRaw=Pi,e.geoEckert1=un,e.geoEckert1Raw=mi,e.geoEckert2=An,e.geoEckert2Raw=Fn,e.geoEckert3=Qn,e.geoEckert3Raw=Hn,e.geoEckert4=Jn,e.geoEckert4Raw=Vi,e.geoEckert5=Gt,e.geoEckert5Raw=Yn,e.geoEckert6=tr,e.geoEckert6Raw=wt,e.geoEisenlohr=Xr,e.geoEisenlohrRaw=wr,e.geoFahey=Ri,e.geoFaheyRaw=$r,e.geoFoucaut=en,e.geoFoucautRaw=Hi,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=fn,e.geoGilbert=ua,e.geoGingery=Xo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ha,e.geoGinzburg4Raw=jn,e.geoGinzburg5=Gn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=Sr,e.geoGinzburg6Raw=Ct,e.geoGinzburg8=hi,e.geoGinzburg8Raw=Jr,e.geoGinzburg9=Sn,e.geoGinzburg9Raw=hn,e.geoGringorten=ea,e.geoGringortenRaw=ki,e.geoGuyou=Fs,e.geoGuyouRaw=Lo,e.geoHammer=mt,e.geoHammerRaw=He,e.geoHammerRetroazimuthal=Fl,e.geoHammerRetroazimuthalRaw=ll,e.geoHealpix=Yl,e.geoHealpixRaw=cl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=zl,e.geoHufnagel=Ns,e.geoHufnagelRaw=Kl,e.geoHyperelliptical=qo,e.geoHyperellipticalRaw=oa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Vf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=qs,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=Lf,e.geoKavrayskiy7=af,e.geoKavrayskiy7Raw=cs,e.geoLagrange=$l,e.geoLagrangeRaw=Gf,e.geoLarrivee=Fu,e.geoLarriveeRaw=lc,e.geoLaskowski=Hs,e.geoLaskowskiRaw=Es,e.geoLittrow=ps,e.geoLittrowRaw=Go,e.geoLoximuthal=bl,e.geoLoximuthalRaw=uc,e.geoMiller=Os,e.geoMillerRaw=Gu,e.geoModifiedStereographic=Ol,e.geoModifiedStereographicRaw=od,e.geoModifiedStereographicAlaska=Hu,e.geoModifiedStereographicGs48=wl,e.geoModifiedStereographicGs50=Hf,e.geoModifiedStereographicMiller=Ic,e.geoModifiedStereographicLee=yf,e.geoMollweide=je,e.geoMollweideRaw=tt,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=_f,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=jf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=sf,e.geoNaturalEarth2Raw=cc,e.geoNellHammer=Kc,e.geoNellHammerRaw=Bl,e.geoInterruptedQuarticAuthalic=gs,e.geoNicolosi=Wh,e.geoNicolosiRaw=Wf,e.geoPatterson=hu,e.geoPattersonRaw=bc,e.geoPolyconic=il,e.geoPolyconicRaw=_u,e.geoPolyhedral=xf,e.geoPolyhedralButterfly=Cs,e.geoPolyhedralCollignon=Xf,e.geoPolyhedralWaterman=Us,e.geoProject=Wl,e.geoGringortenQuincuncial=kt,e.geoPeirceQuincuncial=Zt,e.geoPierceQuincuncial=Zt,e.geoQuantize=Er,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Kr,e.geoRectangularPolyconicRaw=xr,e.geoRobinson=dn,e.geoRobinsonRaw=Xi,e.geoSatellite=Yi,e.geoSatelliteRaw=On,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=Et,e.geoSinusoidalRaw=dt,e.geoStitch=Ls,e.geoTimes=no,e.geoTimesRaw=va,e.geoTwoPointAzimuthal=Cu,e.geoTwoPointAzimuthalRaw=rs,e.geoTwoPointAzimuthalUsa=Ql,e.geoTwoPointEquidistant=pu,e.geoTwoPointEquidistantRaw=Yu,e.geoTwoPointEquidistantUsa=Nc,e.geoVanDerGrinten=xu,e.geoVanDerGrintenRaw=Uc,e.geoVanDerGrinten2=Va,e.geoVanDerGrinten2Raw=Ac,e.geoVanDerGrinten3=Vc,e.geoVanDerGrinten3Raw=oo,e.geoVanDerGrinten4=Ku,e.geoVanDerGrinten4Raw=hc,e.geoWagner=B,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=Ze,e.geoWagner4Raw=Fe,e.geoWagner6=Mt,e.geoWagner6Raw=ut,e.geoWiechel=$t,e.geoWiechelRaw=Jt,e.geoWinkel3=Cr,e.geoWinkel3Raw=yr,Object.defineProperty(e,"__esModule",{value:!0})}))});var JDe=ye((syr,KDe)=>{"use strict";var nd=Fa(),jZ=Pr(),s7t=Oa(),a5=Math.PI/180,nw=180/Math.PI,XZ={cursor:"pointer"},ZZ={cursor:"auto"};function l7t(e,t){var r=e.projection,n;return t._isScoped?n=u7t:t._isClipped?n=f7t:n=c7t,n(e,r)}KDe.exports=l7t;function YZ(e,t){return nd.behavior.zoom().translate(t.translate()).scale(t.scale())}function KZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,l=s[n],u={},c={};function f(h,d){u[n+"."+h]=jZ.nestedProperty(o,h).get(),s7t.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=jZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),jZ.nestedProperty(o,h).set(d),c[n+"."+h]=d)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),i.emit("plotly_relayout",c)}function u7t(e,t){var r=YZ(e,t);function n(){nd.select(this).style(XZ)}function i(){t.scale(nd.event.scale).translate(nd.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){nd.select(this).style(ZZ),KZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function c7t(e,t){var r=YZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(M){return t.invert(M)}function v(M){var T=d(M);if(!T)return!0;var L=t(T);return Math.abs(L[0]-M[0])>n||Math.abs(L[1]-M[1])>n}function m(){nd.select(this).style(XZ),i=nd.mouse(this),a=t.rotate(),o=t.translate(),s=a,l=d(i)}function b(){if(u=nd.mouse(this),v(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(nd.event.scale),t.translate([o[0],nd.event.translate[1]]),l?d(u)&&(f=d(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(i=u,l=d(i)),h=!0,e.render(!0);var M=t.rotate(),T=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":T[0],"geo.center.lat":T[1],"geo.projection.rotation.lon":-M[0]})}function p(){nd.select(this).style(ZZ),h&&KZ(e,t,k)}function k(M){var T=t.rotate(),L=t.invert(e.midPt);M("projection.rotation.lon",-T[0]),M("center.lon",L[0]),M("center.lat",L[1])}return r.on("zoomstart",m).on("zoom",b).on("zoomend",p),r}function f7t(e,t){var r={r:t.rotate(),k:t.scale()},n=YZ(e,t),i=_7t(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){nd.select(this).style(XZ);var h=nd.mouse(this),d=t.rotate(),v=d,m=t.translate(),b=h7t(d);s=NF(t,h),o.call(n,"zoom",function(){var p=nd.mouse(this);if(t.scale(r.k=nd.event.scale),!s)h=p,s=NF(t,h);else if(NF(t,p)){t.rotate(d).translate(m);var k=NF(t,p),M=v7t(s,k),T=g7t(d7t(b,M)),L=r.r=p7t(T,s,v);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=v),t.rotate(L),v=L}u(i.of(this,arguments))}),l(i.of(this,arguments))}).on("zoomend",function(){nd.select(this).style(ZZ),o.call(n,"zoom",null),c(i.of(this,arguments)),KZ(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return nd.rebind(n,i,"on")}function NF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&m7t(r)}function h7t(e){var t=.5*e[0]*a5,r=.5*e[1]*a5,n=.5*e[2]*a5,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function d7t(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function v7t(e,t){if(!(!e||!t)){var r=y7t(e,t),n=Math.sqrt(YDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,YDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function p7t(e,t,r){var n=WZ(t,2,e[0]);n=WZ(n,1,e[1]),n=WZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=n[2],c=Math.atan2(a,i)*nw,f=Math.sqrt(i*i+a*a),h,d;Math.abs(l)>f?(d=(l>0?90:-90)-c,h=0):(d=Math.asin(l/f)*nw-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,m=(Math.atan2(u,s)-Math.atan2(o,h))*nw,b=(Math.atan2(u,s)-Math.atan2(o,-h))*nw,p=XDe(r[0],r[1],d,m),k=XDe(r[0],r[1],v,b);return p<=k?[d,m,r[2]]:[v,b,r[2]]}function XDe(e,t,r,n){var i=ZDe(r-e),a=ZDe(n-t);return Math.sqrt(i*i+a*a)}function ZDe(e){return(e%360+540)%360-180}function WZ(e,t,r){var n=r*a5,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=e[a]*s-e[o]*l,i[o]=e[o]*s+e[a]*l,i}function g7t(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*nw,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*nw,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*nw]}function m7t(e){var t=e[0]*a5,r=e[1]*a5,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function YDe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var u1=Fa(),QZ=HZ(),x7t=QZ.geoPath,b7t=QZ.geoDistance,w7t=WDe(),T7t=Oa(),aw=Pr(),A7t=aw.strTranslate,UF=ka(),mk=So(),$De=ef(),S7t=Mc(),$Z=ho(),QDe=Mg().getAutoRange,JZ=yv(),M7t=qf().prepSelect,E7t=qf().clearOutline,k7t=qf().selectOnClick,C7t=JDe(),hp=hk(),tFe=ey(),{getFitboundsLonRange:L7t,unwrapLonRange:P7t}=tFe,rFe=SF(),I7t=kZ().feature;function iFe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var tm=iFe.prototype;nFe.exports=function(t){return new iFe(t)};tm.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in hp.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),S7t.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};tm.updateProjection=function(e,t){var ge;var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,c=l._ax,f=this.projection=R7t(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},v=o.rotation||{},m=s.range||[],b=l.range||[];if(n.fitbounds){if(u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=QDe(r,u),c.range=QDe(r,c),!this.hasChoropleth&&n.fitbounds==="locations"){for(var p=[],k=!1,M=0;M0?(u.range[1]-u.range[0]-g)/2*(S[1]-S[0])/g:0;u.range=[S[0]-P,S[1]+P]}}}var E=(u.range[0]+u.range[1])/2,z=(c.range[0]+c.range[1])/2;if(n._isScoped)d={lon:E,lat:z};else if(n._isClipped){d={lon:E,lat:z},v={lon:E,lat:z,roll:v.roll};var q=o.type,V=hp.lonaxisSpan[q]/2||180,G=hp.lataxisSpan[q]/2||90;m=[E-V,E+V],b=[z-G,z+G]}else d={lon:E,lat:z},v={lon:E,lat:v.lat,roll:v.roll}}f.center([d.lon-v.lon,d.lat-v.lat]).rotate([-v.lon,-v.lat,v.roll]).parallels(o.parallels);var Z=eFe(m,b);f.fitExtent(h,Z);var j=this.bounds=f.getBounds(Z),N=this.fitScale=f.scale(),H=f.translate();if(n.fitbounds){var re=f.getBounds(eFe(u.range,c.range)),ae=Math.min((j[1][0]-j[0][0])/(re[1][0]-re[0][0]),(j[1][1]-j[0][1])/(re[1][1]-re[0][1]));isFinite(ae)?f.scale(ae*N):aw.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*N);var _e=this.midPt=[(j[0][0]+j[1][0])/2,(j[0][1]+j[1][1])/2];if(f.translate([H[0]+(_e[0]-H[0]),H[1]+(_e[1]-H[1])]).clipExtent(j),n._isAlbersUsa){var Ee=f([d.lon,d.lat]),Ce=f.translate();f.translate([Ce[0]-(Ee[0]-Ce[0]),Ce[1]-(Ee[1]-Ce[1])])}};tm.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!hp.lineLayers[h]}function l(h){return!!hp.fillLayers[h]}var u=this.hasChoropleth?hp.layersForChoropleth:hp.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete i[h],delete a[h],u1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=u1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var d=a[h],v=hp.layerNameToAdjective[h];h==="frame"?d.datum(hp.sphereSVG):s(h)||l(h)?d.datum(I7t(n,n.objects[h])):o(h)&&d.datum(D7t(h,t,e)).call(UF.stroke,t[h].gridcolor).call(mk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(UF.stroke,t[v+"color"]).call(mk.dashLine,"",t[v+"width"]):l(h)&&d.call(UF.fill,t[v+"color"])})};tm.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;mk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(mk.setRect,i,a,o,s).call(UF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};tm.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var d in f)h[r.id+"."+d]=f[d];T7t.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var d=f.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var v=f.lassoPoints={};v[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&E7t(n)}};a==="pan"?(i.node().onmousedown=null,i.call(C7t(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),c.prepFn=function(f,h,d){M7t(f,h,d,c,a)},JZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(aw.getPositionFromD3Event());if(!f)return JZ.unhover(n,u1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},$De.hover(n,u1.event,r.id)}),i.on("mouseout",function(){n._dragging||JZ.unhover(n,u1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&k7t(u1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&$De.click(n,u1.event))})};tm.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=u1.select(e.container).append("g").attr("class","geo "+e.id).call(mk.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},$Z.setConvert(e.mockAxis,r)};tm.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},aw.extendFlat(this.viewInitial,i)};tm.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};tm._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?A7t(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function R7t(e){var t=e.projection,r=t.type,n=hp.projNames[r];n="geo"+aw.titleCase(n);for(var i=QZ[n]||w7t[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?hp.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;uv}else return!1},a.getPath=function(){return x7t().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(hp.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-hp.clipPad),a}function D7t(e,t,r){var n=1e-6,i=2.5,a=t[e],o=hp.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(k,M){return[k,M]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(k,M){return[M,k]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};$Z.setConvert(c,r);var f=$Z.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,d=new Array(h),v=0;v{"use strict";var s5=Ih(),F7t=Cc().attributes,z7t=Pd().dash,o5=hk(),q7t=mc().overrideAll,oFe=r_(),sFe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:s5.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:z7t},O7t=lFe.exports=q7t({domain:F7t({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:oFe(o5.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:oFe(o5.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:s5.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:o5.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:o5.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:o5.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:o5.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:s5.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:s5.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:s5.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:s5.background},lonaxis:sFe,lataxis:sFe},"plot","from-root");O7t.uirevision={valType:"any",editType:"none"}});var fFe=ye((cyr,cFe)=>{"use strict";var VF=Pr(),B7t=O_(),N7t=Id().getSubplotData,{unwrapLonRange:U7t}=ey(),GF=hk(),V7t=eY(),uFe=GF.axesNames;cFe.exports=function(t,r,n){B7t(t,r,n,{type:"geo",attributes:V7t,handleDefaults:G7t,fullData:n,partition:"y"})};function G7t(e,t,r,n){var i=N7t(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),l=GF.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",v=t._isClipped=!!GF.lonaxisSpan[u];if(e.visible===!1){var m=VF.extendDeep({},t._template);m.showcoastlines=!1,m.showcountries=!1,m.showframe=!1,m.showlakes=!1,m.showland=!1,m.showocean=!1,m.showrivers=!1,m.showsubunits=!1,m.lonaxis&&(m.lonaxis.showgrid=!1),m.lataxis&&(m.lataxis.showgrid=!1),t._template=m}for(var b=r("visible"),p,k=0;k{"use strict";var H7t=Id().getSubplotCalcData,j7t=Pr().counterRegex,W7t=aFe(),ty="geo",hFe=j7t(ty),dFe={};dFe[ty]={valType:"subplotid",dflt:ty,editType:"calc"};function X7t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[ty],i=0;i{"use strict";pFe.exports={attributes:rw(),supplyDefaults:XRe(),colorbar:Qd(),formatLabels:KRe(),calc:TF(),calcGeoJSON:GZ().calcGeoJSON,plot:GZ().plot,style:BZ(),styleOnSelect:sp().styleOnSelect,hoverPoints:qDe(),eventData:BDe(),selectPoints:VDe(),moduleType:"trace",name:"scattergeo",basePlotModule:tY(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var yFe=ye((dyr,mFe)=>{"use strict";mFe.exports=gFe()});var l5=ye((vyr,bFe)=>{"use strict";var{hovertemplateAttrs:K7t,templatefallbackAttrs:J7t}=Pl(),px=rw(),$7t=Tu(),_Fe=Vl(),Q7t=Ih().defaultLine,vx=Ao().extendFlat,xFe=px.marker.line;bFe.exports=vx({locations:{valType:"data_array",editType:"calc"},locationmode:px.locationmode,z:{valType:"data_array",editType:"calc"},geojson:vx({},px.geojson,{}),featureidkey:px.featureidkey,text:vx({},px.text,{}),hovertext:vx({},px.hovertext,{}),marker:{line:{color:vx({},xFe.color,{dflt:Q7t}),width:vx({},xFe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:px.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:px.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:vx({},_Fe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:K7t(),hovertemplatefallback:J7t(),showlegend:vx({},_Fe.showlegend,{dflt:!1})},$7t("",{cLetter:"z",editTypeOverride:"calc"}))});var TFe=ye((pyr,wFe)=>{"use strict";var yk=Pr(),e9t=td(),t9t=l5(),r9t=["The library used by the *country names* `locationmode` option is changing in the next major version.","Some country names in existing plots may not work in the new version.","To ensure consistent behavior, consider setting `locationmode` to *ISO-3*."].join(" ");wFe.exports=function(t,r,n,i){function a(h,d){return yk.coerce(t,r,t9t,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&yk.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||yk.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="country names"&&yk.warn(r9t),c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),e9t(t,r,i,a,{prefix:"",cLetter:"z"}),yk.coerceSelectionMarkerOpacity(r,a)}});var HF=ye((gyr,MFe)=>{"use strict";var AFe=Eo(),i9t=fs().BADNUM,n9t=gv(),a9t=Dm(),o9t=q0();function SFe(e){return e&&typeof e=="string"}MFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(c){return SFe(c)||AFe(c)}:a=SFe;for(var o=0;o{"use strict";var s9t=Fa(),l9t=ka(),rY=So(),u9t=tc();function c9t(e,t){t&&EFe(e,t)}function EFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=u9t.makeColorScaleFuncFromTrace(r);i.each(function(l){s9t.select(this).attr("fill",s(l.z)).call(l9t.stroke,l.mlc||o.color).call(rY.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),rY.selectedPointStyle(i,r)}function f9t(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?rY.selectedPointStyle(r.selectAll(".choroplethlocation"),n):EFe(e,t)}kFe.exports={style:c9t,styleOnSelect:f9t}});var iY=ye((yyr,PFe)=>{"use strict";var h9t=Fa(),CFe=Pr(),u5=ey(),d9t=SF().getTopojsonFeatures,LFe=Mg().findExtremes,v9t=jF().style;function p9t(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");CFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=h9t.select(this),o=a.selectAll("path.choroplethlocation").data(CFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),v9t(e,i)})}function g9t(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?u5.extractTraceFeature(e):d9t(r,i.topojson),l=[],u=[],c=0;c{"use strict";var m9t=ho(),y9t=l5(),_9t=Pr().fillText,{ANTIMERIDIAN_LON_SHIFT:x9t}=ey();IFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,l,u,c,f=[r,n];let h=[r+x9t,n];for(l=0;l")}}});var XF=ye((xyr,RFe)=>{"use strict";RFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var ZF=ye((byr,DFe)=>{"use strict";DFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";FFe.exports={attributes:l5(),supplyDefaults:TFe(),colorbar:F_(),calc:HF(),calcGeoJSON:iY().calcGeoJSON,plot:iY().plot,style:jF().style,styleOnSelect:jF().styleOnSelect,hoverPoints:WF(),eventData:XF(),selectPoints:ZF(),moduleType:"trace",name:"choropleth",basePlotModule:tY(),categories:["geo","noOpacity","showLegend"],meta:{}}});var OFe=ye((Tyr,qFe)=>{"use strict";qFe.exports=zFe()});var YF=ye((Ayr,NFe)=>{"use strict";var w9t=Oa(),l0=Pr(),T9t=xT();function A9t(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),d=e.distance,v;if(a.tree){var m=s.p2c(f-d),b=s.p2c(f+d),p=l.p2c(h-d),k=l.p2c(h+d);n==="x"?v=a.tree.range(Math.min(m,b),Math.min(l._rl[0],l._rl[1]),Math.max(m,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(m,b),Math.min(p,k),Math.max(m,b),Math.max(p,k))}else v=a.ids;var M,T,L,x,C,S,g,P,E,z=d;if(n==="x"){var q=!!o.xperiodalignment,V=!!o.yperiodalignment;for(C=0;C=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(S=Math.min(j,N)&&h<=Math.max(j,N)?0:1/0}E=Math.sqrt(S*S+g*g),T=v[C]}}}else for(C=v.length-1;C>-1;C--)M=v[C],L=u[M],x=c[M],S=s.c2p(L)-f,g=l.c2p(x)-h,P=Math.sqrt(S*S+g*g),P{"use strict";var UFe=20;VFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:UFe,SYMBOL_STROKE:UFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var _k=ye((Myr,WFe)=>{"use strict";var S9t=Vl(),M9t=ec(),E9t=Pg(),mf=pf(),GFe=vf().axisHoverFormat,HFe=Tu(),k9t=r_(),nY=Ao().extendFlat,C9t=mc().overrideAll,L9t=gx().DASHES,jFe=mf.line,c1=mf.marker,P9t=c1.line,mx=WFe.exports=C9t({x:mf.x,x0:mf.x0,dx:mf.dx,y:mf.y,y0:mf.y0,dy:mf.dy,xperiod:mf.xperiod,yperiod:mf.yperiod,xperiod0:mf.xperiod0,yperiod0:mf.yperiod0,xperiodalignment:mf.xperiodalignment,yperiodalignment:mf.yperiodalignment,xhoverformat:GFe("x"),yhoverformat:GFe("y"),text:mf.text,hovertext:mf.hovertext,textposition:mf.textposition,textfont:M9t({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:jFe.color,width:jFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:k9t(L9t),dflt:"solid"}},marker:nY({},HFe("marker"),{symbol:c1.symbol,angle:c1.angle,size:c1.size,sizeref:c1.sizeref,sizemin:c1.sizemin,sizemode:c1.sizemode,opacity:c1.opacity,colorbar:c1.colorbar,line:nY({},HFe("marker.line"),{width:P9t.width})}),connectgaps:mf.connectgaps,fill:nY({},mf.fill,{dflt:"none"}),fillcolor:E9t(),selected:{marker:mf.selected.marker,textfont:mf.selected.textfont},unselected:{marker:mf.unselected.marker,textfont:mf.unselected.textfont},opacity:S9t.opacity},"calc","nested");mx.x.editType=mx.y.editType=mx.x0.editType=mx.y0.editType="calc+clearAxisTypes";mx.hovertemplate=mf.hovertemplate;mx.hovertemplatefallback=mf.hovertemplatefallback;mx.texttemplate=mf.texttemplate;mx.texttemplatefallback=mf.texttemplatefallback});var KF=ye(aY=>{"use strict";var XFe=gx();aY.isOpenSymbol=function(e){return typeof e=="string"?XFe.OPEN_RE.test(e):e%200>100};aY.isDotSymbol=function(e){return typeof e=="string"?XFe.DOT_RE.test(e):e>200}});var KFe=ye((kyr,YFe)=>{"use strict";var ZFe=Pr(),I9t=Oa(),R9t=KF(),D9t=_k(),F9t=Pm(),JF=Ru(),z9t=cT(),q9t=Dg(),O9t=$p(),B9t=D0(),N9t=Fg(),U9t=F0();YFe.exports=function(t,r,n,i){function a(d,v){return ZFe.coerce(t,r,D9t,d,v)}var o=t.marker?R9t.isOpenSymbol(t.marker.symbol):!1,s=JF.isBubble(t),l=z9t(t,r,i,a);if(!l){r.visible=!1;return}q9t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var V9t=fI();JFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),V9t(t,r,n)}});var eze=ye((Lyr,QFe)=>{"use strict";function G9t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,i=o-1):n=o+1}return a}function H9t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,i=o-1):n=o+1}return a}function j9t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,n=o+1):i=o-1}return a}function W9t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,n=o+1):i=o-1}return a}function X9t(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function xk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}QFe.exports={ge:function(e,t,r,n,i){return xk(e,t,r,n,i,G9t)},gt:function(e,t,r,n,i){return xk(e,t,r,n,i,H9t)},lt:function(e,t,r,n,i){return xk(e,t,r,n,i,j9t)},le:function(e,t,r,n,i){return xk(e,t,r,n,i,W9t)},eq:function(e,t,r,n,i){return xk(e,t,r,n,i,X9t)}}});var ry=ye((Pyr,rze)=>{"use strict";rze.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=tze(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var Z9t=ry();ize.exports=Y9t;function Y9t(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=Z9t(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var ow=ye((Ryr,nze)=>{"use strict";nze.exports=K9t;function K9t(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{aze.exports=function(){for(var e=0;e{var sze=iF();lze.exports=J9t;function J9t(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,l;(!t||typeof t=="string")&&(t=new(sze(t||"float32"))(i+r));var u=t.length-r;if(i!==u)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";uze.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var hze=ye((qyr,fze)=>{"use strict";fze.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var _ze=ye((Oyr,yze)=>{"use strict";var dze=eze(),vze=ak(),$9t=c5(),Q9t=ow(),pze=ry(),sY=oze(),eqt=sw(),tqt=cze(),rqt=iF(),gze=hze(),iqt=1073741824;yze.exports=function(t,r){r||(r={}),t=eqt(t,"float64"),r=pze(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=sY(r.maxDepth,255),i=sY(r.bounds,Q9t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=mze(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(rqt(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||x>iqt){for(let N=0;N_e||g>Ee||P=z||re===ae)return;let Ce=l[H];ae===void 0&&(ae=Ce.length);for(let Pe=re;Pe=T&&He<=x&<>=L&<<=C&&q.push(ce)}let ge=u[H],ie=ge[re*4+0],Se=ge[re*4+1],ke=ge[re*4+2],be=ge[re*4+3],Be=G(ge,re+1),Le=N*.5,me=H+1;V(Z,j,Le,me,ie,Se||ke||be||Be),V(Z,j+Le,Le,me,Se,ke||be||Be),V(Z+Le,j,Le,me,ke,be||Be),V(Z+Le,j+Le,Le,me,be,Be)}function G(Z,j){let N=null,H=0;for(;N===null;)if(N=Z[j*4+H],H++,H>Z.length)return null;return N}return q}function m(p,k,M,T,L){let x=[];for(let C=0;C{"use strict";xze.exports=_ze()});var lY=ye((Nyr,bze)=>{bze.exports=nqt;function nqt(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var l=1;l{"use strict";Object.defineProperty(QF,"__esModule",{value:!0});var aqt=(function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),bk=Math.PI*2,uY=function(t,r,n,i,a,o,s){var l=t.x,u=t.y;l*=r,u*=n;var c=i*l-a*u,f=a*l+i*u;return{x:c+o,y:f+s}},oqt=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},wze=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},sqt=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),m=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*m;p<0&&(p=0),p/=d*b+v*m,p=Math.sqrt(p)*(s===l?-1:1);var k=p*a/o*h,M=p*-o/a*f,T=c*k-u*M+(t+n)/2,L=u*k+c*M+(r+i)/2,x=(f-k)/a,C=(h-M)/o,S=(-f-k)/a,g=(-h-M)/o,P=wze(1,0,x,C),E=wze(x,C,S,g);return l===0&&E>0&&(E-=bk),l===1&&E<0&&(E+=bk),[T,L,P,E]},lqt=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,d=h===void 0?0:h,v=[];if(o===0||s===0)return[];var m=Math.sin(u*bk/360),b=Math.cos(u*bk/360),p=b*(r-i)/2+m*(n-a)/2,k=-m*(r-i)/2+b*(n-a)/2;if(p===0&&k===0)return[];o=Math.abs(o),s=Math.abs(s);var M=Math.pow(p,2)/Math.pow(o,2)+Math.pow(k,2)/Math.pow(s,2);M>1&&(o*=Math.sqrt(M),s*=Math.sqrt(M));var T=sqt(r,n,i,a,o,s,f,d,m,b,p,k),L=aqt(T,4),x=L[0],C=L[1],S=L[2],g=L[3],P=Math.abs(g)/(bk/4);Math.abs(1-P)<1e-7&&(P=1);var E=Math.max(Math.ceil(P),1);g/=E;for(var z=0;z{"use strict";Mze.exports=cqt;var uqt=Aze();function cqt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function ez(e,t,r,n){return["C",e,t,r,n,r,n]}function Sze(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var cY=ye((Vyr,kze)=>{"use strict";kze.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var Pze=ye((Gyr,Lze)=>{"use strict";var fqt=lM(),hqt=lY(),dqt=Eze(),vqt=cY(),Cze=_E();Lze.exports=pqt;function pqt(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(Cze(vqt(e),"String is not an SVG path."),e=fqt(e)),Cze(Array.isArray(e),"Argument should be a string or an array of path segments."),e=hqt(e),e=dqt(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var qze=ye((Hyr,zze)=>{var lw=Math.PI,Ize=Fze(120);zze.exports=gqt;function gqt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var m=u,b=c;(t=="C"||t=="S")&&(m+=m-n,b+=b-i),d=["C",m,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=Rze(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=Rze(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=tz(u,c,d[1],d[2]);break;case"H":d=tz(u,c,d[1],c);break;case"V":d=tz(u,c,u,d[1]);break;case"Z":d=tz(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function tz(e,t,r,n){return["C",e,t,r,n,r,n]}function Rze(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function Dze(e,t,r,n,i,a,o,s,l,u){if(u)M=u[0],T=u[1],p=u[2],k=u[3];else{var c=fY(e,t,-i);e=c.x,t=c.y,c=fY(s,l,-i),s=c.x,l=c.y;var f=(e-s)/2,h=(t-l)/2,d=f*f/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var v=r*r,m=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*m-v*h*h-m*f*f)/(v*h*h+m*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,k=b*-n*f/r+(t+l)/2,M=Math.asin(((t-k)/n).toFixed(9)),T=Math.asin(((l-k)/n).toFixed(9));M=eT&&(M=M-lw*2),!o&&T>M&&(T=T-lw*2)}if(Math.abs(T-M)>Ize){var L=T,x=s,C=l;T=M+Ize*(o&&T>M?1:-1),s=p+r*Math.cos(T),l=k+n*Math.sin(T);var S=Dze(s,l,r,n,i,0,o,x,C,[T,L,p,k])}var g=Math.tan((T-M)/4),P=4/3*r*g,E=4/3*n*g,z=[2*e-(e+P*Math.sin(M)),2*t-(t-E*Math.cos(M)),s+P*Math.sin(T),l-E*Math.cos(T),s,l];if(u)return z;S&&(z=z.concat(S));for(var q=0;q{var mqt=lY(),yqt=qze(),_qt={M:"moveTo",C:"bezierCurveTo"};Oze.exports=function(e,t){e.beginPath(),yqt(mqt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[_qt[n]].apply(e,i)}),e.closePath()}});var Gze=ye((Wyr,Vze)=>{"use strict";var xqt=ak();Vze.exports=bqt;var wk=1e20;function bqt(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,l,u,c,f,h,d,v,m;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),v=0,m=u.length;v{"use strict";var wqt=Pze(),Tqt=lM(),Aqt=Bze(),Sqt=cY(),Mqt=Gze(),hY=document.createElement("canvas"),dp=hY.getContext("2d");Hze.exports=Eqt;function Eqt(e,t){if(!Sqt(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=hY.width=t.w||t.width||200,n=hY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||wqt(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;if(dp.fillStyle="black",dp.fillRect(0,0,r,n),dp.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?dp.strokeStyle="white":dp.strokeStyle="black",dp.lineWidth=Math.abs(a)),dp.translate(r*.5,n*.5),dp.scale(l,l),kqt()){var u=new Path2D(e);dp.fill(u),a&&dp.stroke(u)}else{var c=Tqt(e);Aqt(dp,c),dp.fill(),a&&dp.stroke()}dp.setTransform(1,0,0,1,0,0);var f=Mqt(dp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var rz;function kqt(){if(rz!=null)return rz;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return rz=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return rz=r&&r.data&&r.data[3]===255}});var cw=ye((Zyr,r7e)=>{"use strict";var nz=Eo(),Cqt=jze(),iz=lx(),Lqt=Oa(),d5=Pr(),bh=d5.isArrayOrTypedArray,f5=So(),Wze=df(),Xze=o1().formatColor,h5=Ru(),Pqt=U3(),vY=KF(),Tk=gx(),Iqt=Z1().DESELECTDIM,Zze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Rqt=ip().appendArrayPointValue;function Dqt(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(h5.hasText(t)&&(n.text=t7e(e,t),n.textSel=Kze(e,t,t.selected),n.textUnsel=Kze(e,t,t.unselected)),h5.hasMarkers(t)&&(n.marker=gY(e,t),n.markerSel=pY(e,t,t.selected),n.markerUnsel=pY(e,t,t.unselected),!t.unselected&&bh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function gY(e,t){var r=t._length,n=t.marker,i={},a,o=bh(n.symbol),s=bh(n.angle),l=bh(n.color),u=bh(n.line.color),c=bh(n.opacity),f=bh(n.size),h=bh(n.line.width),d;if(o||(d=vY.isOpenSymbol(n.symbol)),o||l||u||c||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var v=n.symbol,m=n.angle,b=Xze(n,n.opacity,r),p=Xze(n.line,n.opacity,r);if(!bh(p[0])){var k=p;for(p=Array(r),a=0;aTk.TOO_MANY_POINTS||h5.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=bh(u)?u.length>1?u[o]:u[0]:u,v=Zze[h],m=Zze[d],b=c?c/.8+1:0,p=-m*b-m*.5;a.offset[o]=[v*b/f,p/f]}}return a}r7e.exports={style:Dqt,markerStyle:gY,markerSelection:pY,linePositions:zqt,errorBarPositions:qqt,textPosition:Oqt}});var mY=ye((Yyr,i7e)=>{"use strict";var az=Pr();i7e.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){az.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=az.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(l),n.scatter2d&&n.scatter2d.update(l),n.line2d&&n.line2d.update(l),n.error2d&&n.error2d.update(l.concat(l)),n.select2d&&n.select2d.update(l),n.glText)for(var u=0;u{"use strict";var Bqt=$F(),v5=Pr(),n7e=df(),Nqt=Mg().findExtremes,a7e=zg(),yY=O0(),Uqt=yY.calcMarkerSize,Vqt=yY.calcAxisExpansion,Gqt=yY.setFirstScatter,Hqt=z0(),p5=cw(),jqt=mY(),o7e=fs().BADNUM,Wqt=gx().TOO_MANY_POINTS;l7e.exports=function(t,r){var n=t._fullLayout,i=r._xA=n7e.getFromId(t,r.xaxis,"x"),a=r._yA=n7e.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=Wqt,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=a7e(r,i,"x",h),m=a7e(r,a,"y",d),b=v.vals,p=m.vals;r._x=b,r._y=p,r.xperiodalignment&&(r._origX=h,r._xStarts=v.starts,r._xEnds=v.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=m.starts,r._yEnds=m.ends);var k=new Array(u),M=new Array(s);for(f=0;f1&&v5.extendFlat(o.line,p5.linePositions(e,r,n)),o.errorX||o.errorY){var s=p5.errorBarPositions(e,r,n,i,a);o.errorX&&v5.extendFlat(o.errorX,s.x),o.errorY&&v5.extendFlat(o.errorY,s.y)}return o.text&&(v5.extendFlat(o.text,{positions:n},p5.textPosition(e,r,o.text,o.marker)),v5.extendFlat(o.textSel,{positions:n},p5.textPosition(e,r,o.text,o.markerSel)),v5.extendFlat(o.textUnsel,{positions:n},p5.textPosition(e,r,o.text,o.markerUnsel))),o}});var _Y=ye((Jyr,f7e)=>{"use strict";var c7e=Pr(),Zqt=ka(),Yqt=Z1().DESELECTDIM;function Kqt(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],l=i.textOptions[a],u=i.textSelectedOptions[a]||{},c=i.textUnselectedOptions[a]||{},f=c7e.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,m=c.color,b=l.color,p=c7e.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var h7e=Ru(),Jqt=_Y().styleTextSelection;d7e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l=n[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,d=l.index;if(!h)return o;var v=h7e.hasText(s),m=h7e.hasMarkers(s),b=!m&&!v;if(s.visible!==!0||b)return o;var p=[],k=[];if(r!==!1&&!r.degenerate)for(var M=0;M{"use strict";var $qt=YF();v7e.exports={moduleType:"trace",name:"scattergl",basePlotModule:mh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:_k(),supplyDefaults:KFe(),crossTraceDefaults:vU(),colorbar:Qd(),formatLabels:$Fe(),calc:u7e(),hoverPoints:$qt.hoverPoints,selectPoints:xY(),meta:{}}});var m7e=ye((e1r,sz)=>{"use strict";var oz=ak();sz.exports=g7e;sz.exports.to=g7e;sz.exports.from=Qqt;function g7e(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=oz(r,0,255)&255,n=oz(n,0,255)&255,i=oz(i,0,255)&255,a=oz(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function Qqt(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Nh=ye((t1r,_7e)=>{"use strict";var y7e=Object.getOwnPropertySymbols,eOt=Object.prototype.hasOwnProperty,tOt=Object.prototype.propertyIsEnumerable;function rOt(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function iOt(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}_7e.exports=iOt()?Object.assign:function(e,t){for(var r,n=rOt(e),i,a=1;a{x7e.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";w7e.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";T7e.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var lz=ye((a1r,g5)=>{"use strict";g5.exports=Ak;g5.exports.float32=g5.exports.float=Ak;g5.exports.fract32=g5.exports.fract=nOt;var S7e=new Float32Array(1);function nOt(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=Ak(e));for(var r=0,n=t.length;r{"use strict";function aOt(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function oOt(e,t){return uOt(e)||aOt(e,t)||E7e(e,t)||hOt()}function sOt(e){return lOt(e)||cOt(e)||E7e(e)||fOt()}function lOt(e){if(Array.isArray(e))return wY(e)}function uOt(e){if(Array.isArray(e))return e}function cOt(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function E7e(e,t){if(e){if(typeof e=="string")return wY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wY(e,t)}}function wY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rie)?N.tree=Qqt(j,{bounds:ge}):ie&&ie.length&&(N.tree=ie),N.tree){var re={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(re):N.elements=o.elements(re)}var Se=lz.float32(j);ae({data:Se,usage:"dynamic"});var ke=lz.fract32(j,Se);return _e({data:ke,usage:"dynamic"}),Ee({data:new Uint8Array(Ce),type:"uint8",usage:"stream"}),j}},{marker:function(j,N,H){var ie=N.activation;if(ie.forEach(function(ke){return ke&&ke.destroy&&ke.destroy()}),ie.length=0,!j||typeof j[0]=="number"){var ae=e.addMarker(j);ie[ae]=!0}else{for(var _e=[],Ee=0,Ce=Math.min(j.length,N.count);Ee=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};av.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";AY.exports=fz;AY.exports.default=fz;function fz(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=S7e(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,d;if(n&&(a=fOt(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var v=r;vu&&(u=f),h>c&&(c=h);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return Tk(a,o,r,s,l,d,0),o}function S7e(e,t,r,n,i){var a,o;if(i===TY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=A7e(a,e[a],e[a+1],o);return o&&hz(o,o.next)&&(Sk(o),o=o.next),o}function cw(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(hz(r,r.next)||wh(r.prev,r,r.next)===0)){if(Sk(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Tk(e,t,r,n,i,a,o){if(e){!o&&a&&gOt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?lOt(e,n,i,a):sOt(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),Sk(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=uOt(cw(e),t,r),Tk(e,t,r,n,i,a,2)):o===2&&cOt(e,t,r,n,i,a):Tk(cw(e),t,r,n,i,a,1);break}}}}function sOt(e){var t=e.prev,r=e,n=e.next;if(wh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,v=n.next;v!==t;){if(v.x>=c&&v.x<=h&&v.y>=f&&v.y<=d&&p5(i,s,a,l,o,u,v.x,v.y)&&wh(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function lOt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(wh(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,c=i.y,f=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,b=c>f?c>h?c:h:f>h?f:h,p=bY(d,v,t,r,n),k=bY(m,b,t,r,n),M=e.prevZ,T=e.nextZ;M&&M.z>=p&&T&&T.z<=k;){if(M.x>=d&&M.x<=m&&M.y>=v&&M.y<=b&&M!==i&&M!==o&&p5(s,c,l,f,u,h,M.x,M.y)&&wh(M.prev,M,M.next)>=0||(M=M.prevZ,T.x>=d&&T.x<=m&&T.y>=v&&T.y<=b&&T!==i&&T!==o&&p5(s,c,l,f,u,h,T.x,T.y)&&wh(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;M&&M.z>=p;){if(M.x>=d&&M.x<=m&&M.y>=v&&M.y<=b&&M!==i&&M!==o&&p5(s,c,l,f,u,h,M.x,M.y)&&wh(M.prev,M,M.next)>=0)return!1;M=M.prevZ}for(;T&&T.z<=k;){if(T.x>=d&&T.x<=m&&T.y>=v&&T.y<=b&&T!==i&&T!==o&&p5(s,c,l,f,u,h,T.x,T.y)&&wh(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function uOt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!hz(i,a)&&M7e(i,n,n.next,a)&&Ak(i,a)&&Ak(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),Sk(n),Sk(n.next),n=e=a),n=n.next}while(n!==e);return cw(n)}function cOt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&_Ot(o,s)){var l=E7e(o,s);o=cw(o,o.next),l=cw(l,l.next),Tk(o,t,r,n,i,a,0),Tk(l,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function fOt(e,t,r,n){var i=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&n!==r.x&&p5(io.x||r.x===o.x&&pOt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function pOt(e,t){return wh(e.prev,e,t.prev)<0&&wh(t.next,e,e.next)<0}function gOt(e,t,r,n){var i=e;do i.z===0&&(i.z=bY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,mOt(i)}function mOt(e){var t,r,n,i,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return e}function bY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function yOt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function _Ot(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!xOt(e,t)&&(Ak(e,t)&&Ak(t,e)&&bOt(e,t)&&(wh(e.prev,e,t.prev)||wh(e,t.prev,t))||hz(e,t)&&wh(e.prev,e,e.next)>0&&wh(t.prev,t,t.next)>0)}function wh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function hz(e,t){return e.x===t.x&&e.y===t.y}function M7e(e,t,r,n){var i=cz(wh(e,t,r)),a=cz(wh(e,t,n)),o=cz(wh(r,n,e)),s=cz(wh(r,n,t));return!!(i!==a&&o!==s||i===0&&uz(e,r,t)||a===0&&uz(e,n,t)||o===0&&uz(r,e,n)||s===0&&uz(r,t,n))}function uz(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function cz(e){return e>0?1:e<0?-1:0}function xOt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&M7e(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Ak(e,t){return wh(e.prev,e,e.next)<0?wh(e,t,e.next)>=0&&wh(e,e.prev,t)>=0:wh(e,t,e.prev)<0||wh(e,e.next,t)<0}function bOt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function E7e(e,t){var r=new wY(e.i,e.x,e.y),n=new wY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function A7e(e,t,r,n){var i=new wY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Sk(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function wY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}fz.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(TY(e,0,a,r));if(i)for(var s=0,l=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var L7e=ye((Hyr,C7e)=>{"use strict";var wOt=nw();C7e.exports=TOt;function TOt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=wOt(e,t));for(var n=0;n{"use strict";P7e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var D7e=ye((Wyr,R7e)=>{"use strict";R7e.exports=function(){}});var yx=ye((Xyr,F7e)=>{"use strict";var AOt=D7e()();F7e.exports=function(e){return e!==AOt&&e!==null}});var SY=ye((Zyr,q7e)=>{"use strict";var SOt=Object.create,MOt=Object.getPrototypeOf,z7e={};q7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||SOt;return typeof e!="function"?!1:MOt(e(t(null),z7e))===z7e}});var MY=ye((Yyr,O7e)=>{"use strict";var EOt=yx(),kOt={function:!0,object:!0};O7e.exports=function(e){return EOt(e)&&kOt[typeof e]||!1}});var c1=ye((Kyr,B7e)=>{"use strict";var COt=yx();B7e.exports=function(e){if(!COt(e))throw new TypeError("Cannot use null or undefined");return e}});var U7e=ye((Jyr,N7e)=>{"use strict";var EY=Object.create,dz;SY()()||(dz=kY());N7e.exports=function(){var e,t,r;return!dz||dz.level!==1?EY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(dz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return EY(n===null?e:n,i)})}()});var kY=ye(($yr,V7e)=>{"use strict";var LOt=MY(),POt=c1(),IOt=Object.prototype.isPrototypeOf,ROt=Object.defineProperty,DOt={configurable:!0,enumerable:!1,writable:!0,value:void 0},vz;vz=function(e,t){if(POt(e),t===null||LOt(t))return e;throw new TypeError("Prototype must be null or an object")};V7e.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(vz(n,i),i),n}):t=function(n,i){return vz(n,i).__proto__=i,n}:t=function n(i,a){var o;return vz(i,a),o=IOt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&ROt(n.nullPolyfill,"__proto__",DOt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());U7e()});var pz=ye((Qyr,G7e)=>{"use strict";G7e.exports=SY()()?Object.setPrototypeOf:kY()});var j7e=ye((e1r,H7e)=>{"use strict";var FOt=MY();H7e.exports=function(e){if(!FOt(e))throw new TypeError(e+" is not an Object");return e}});var X7e=ye((t1r,W7e)=>{"use strict";var zOt=Object.create(null),qOt=Math.random;W7e.exports=function(){var e;do e=qOt().toString(36).slice(2);while(zOt[e]);return e}});var fw=ye((r1r,Z7e)=>{"use strict";var OOt=void 0;Z7e.exports=function(e){return e!==OOt&&e!==null}});var gz=ye((i1r,Y7e)=>{"use strict";var BOt=fw(),NOt={object:!0,function:!0,undefined:!0};Y7e.exports=function(e){return BOt(e)?hasOwnProperty.call(NOt,typeof e):!1}});var J7e=ye((n1r,K7e)=>{"use strict";var UOt=gz();K7e.exports=function(e){if(!UOt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var Q7e=ye((a1r,$7e)=>{"use strict";var VOt=J7e();$7e.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!VOt(e)}});var CY=ye((o1r,e9e)=>{"use strict";var GOt=Q7e(),HOt=/^\s*class[\s{/}]/,jOt=Function.prototype.toString;e9e.exports=function(e){return!(!GOt(e)||HOt.test(jOt.call(e)))}});var r9e=ye((s1r,t9e)=>{"use strict";t9e.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var n9e=ye((l1r,i9e)=>{"use strict";i9e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var o9e=ye((u1r,a9e)=>{"use strict";var WOt=yx(),XOt=Object.keys;a9e.exports=function(e){return XOt(WOt(e)?Object(e):e)}});var l9e=ye((c1r,s9e)=>{"use strict";s9e.exports=n9e()()?Object.keys:o9e()});var c9e=ye((f1r,u9e)=>{"use strict";var ZOt=l9e(),YOt=c1(),KOt=Math.max;u9e.exports=function(e,t){var r,n,i=KOt(arguments.length,2),a;for(e=Object(YOt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";f9e.exports=r9e()()?Object.assign:c9e()});var LY=ye((d1r,h9e)=>{"use strict";var JOt=yx(),$Ot=Array.prototype.forEach,QOt=Object.create,eBt=function(e,t){var r;for(r in e)t[r]=e[r]};h9e.exports=function(e){var t=QOt(null);return $Ot.call(arguments,function(r){JOt(r)&&eBt(Object(r),t)}),t}});var v9e=ye((v1r,d9e)=>{"use strict";var PY="razdwatrzy";d9e.exports=function(){return typeof PY.contains!="function"?!1:PY.contains("dwa")===!0&&PY.contains("foo")===!1}});var g9e=ye((p1r,p9e)=>{"use strict";var tBt=String.prototype.indexOf;p9e.exports=function(e){return tBt.call(this,e,arguments[1])>-1}});var IY=ye((g1r,m9e)=>{"use strict";m9e.exports=v9e()()?String.prototype.contains:g9e()});var f1=ye((m1r,b9e)=>{"use strict";var yz=fw(),y9e=CY(),_9e=mz(),x9e=LY(),Mk=IY(),rBt=b9e.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],yz(e)?(r=Mk.call(e,"c"),n=Mk.call(e,"e"),i=Mk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?_9e(x9e(a),o):o};rBt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],yz(t)?y9e(t)?yz(r)?y9e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,yz(e)?(n=Mk.call(e,"c"),i=Mk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?_9e(x9e(a),o):o}});var Ek=ye((y1r,T9e)=>{"use strict";var w9e=Object.prototype.toString,iBt=w9e.call(function(){return arguments}());T9e.exports=function(e){return w9e.call(e)===iBt}});var kk=ye((_1r,S9e)=>{"use strict";var A9e=Object.prototype.toString,nBt=A9e.call("");S9e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||A9e.call(e)===nBt)||!1}});var E9e=ye((x1r,M9e)=>{"use strict";M9e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var L9e=ye((b1r,C9e)=>{var k9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};C9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return k9e()}try{return __global__||k9e()}finally{delete Object.prototype.__global__}}()});var Ck=ye((w1r,P9e)=>{"use strict";P9e.exports=E9e()()?globalThis:L9e()});var R9e=ye((T1r,I9e)=>{"use strict";var aBt=Ck(),RY={object:!0,symbol:!0};I9e.exports=function(){var e=aBt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!RY[typeof e.iterator]||!RY[typeof e.toPrimitive]||!RY[typeof e.toStringTag])}});var F9e=ye((A1r,D9e)=>{"use strict";D9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var DY=ye((S1r,z9e)=>{"use strict";var oBt=F9e();z9e.exports=function(e){if(!oBt(e))throw new TypeError(e+" is not a symbol");return e}});var U9e=ye((M1r,N9e)=>{"use strict";var q9e=f1(),sBt=Object.create,O9e=Object.defineProperty,lBt=Object.prototype,B9e=sBt(null);N9e.exports=function(e){for(var t=0,r,n;B9e[e+(t||"")];)++t;return e+=t||"",B9e[e]=!0,r="@@"+e,O9e(lBt,r,q9e.gs(null,function(i){n||(n=!0,O9e(this,r,q9e(i)),n=!1)})),r}});var G9e=ye((E1r,V9e)=>{"use strict";var rm=f1(),Uh=Ck().Symbol;V9e.exports=function(e){return Object.defineProperties(e,{hasInstance:rm("",Uh&&Uh.hasInstance||e("hasInstance")),isConcatSpreadable:rm("",Uh&&Uh.isConcatSpreadable||e("isConcatSpreadable")),iterator:rm("",Uh&&Uh.iterator||e("iterator")),match:rm("",Uh&&Uh.match||e("match")),replace:rm("",Uh&&Uh.replace||e("replace")),search:rm("",Uh&&Uh.search||e("search")),species:rm("",Uh&&Uh.species||e("species")),split:rm("",Uh&&Uh.split||e("split")),toPrimitive:rm("",Uh&&Uh.toPrimitive||e("toPrimitive")),toStringTag:rm("",Uh&&Uh.toStringTag||e("toStringTag")),unscopables:rm("",Uh&&Uh.unscopables||e("unscopables"))})}});var W9e=ye((k1r,j9e)=>{"use strict";var H9e=f1(),uBt=DY(),Lk=Object.create(null);j9e.exports=function(e){return Object.defineProperties(e,{for:H9e(function(t){return Lk[t]?Lk[t]:Lk[t]=e(String(t))}),keyFor:H9e(function(t){var r;uBt(t);for(r in Lk)if(Lk[r]===t)return r})})}});var Y9e=ye((C1r,Z9e)=>{"use strict";var ry=f1(),FY=DY(),_z=Ck().Symbol,cBt=U9e(),fBt=G9e(),hBt=W9e(),dBt=Object.create,zY=Object.defineProperties,xz=Object.defineProperty,Xv,g5,X9e;if(typeof _z=="function")try{String(_z()),X9e=!0}catch(e){}else _z=null;g5=function(t){if(this instanceof g5)throw new TypeError("Symbol is not a constructor");return Xv(t)};Z9e.exports=Xv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return X9e?_z(t):(r=dBt(g5.prototype),t=t===void 0?"":String(t),zY(r,{__description__:ry("",t),__name__:ry("",cBt(t))}))};fBt(Xv);hBt(Xv);zY(g5.prototype,{constructor:ry(Xv),toString:ry("",function(){return this.__name__})});zY(Xv.prototype,{toString:ry(function(){return"Symbol ("+FY(this).__description__+")"}),valueOf:ry(function(){return FY(this)})});xz(Xv.prototype,Xv.toPrimitive,ry("",function(){var e=FY(this);return typeof e=="symbol"?e:e.toString()}));xz(Xv.prototype,Xv.toStringTag,ry("c","Symbol"));xz(g5.prototype,Xv.toStringTag,ry("c",Xv.prototype[Xv.toStringTag]));xz(g5.prototype,Xv.toPrimitive,ry("c",Xv.prototype[Xv.toPrimitive]))});var _x=ye((L1r,K9e)=>{"use strict";K9e.exports=R9e()()?Ck().Symbol:Y9e()});var $9e=ye((P1r,J9e)=>{"use strict";var vBt=c1();J9e.exports=function(){return vBt(this).length=0,this}});var m5=ye((I1r,Q9e)=>{"use strict";Q9e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var tqe=ye((R1r,eqe)=>{"use strict";var pBt=fw(),gBt=gz(),mBt=Object.prototype.toString;eqe.exports=function(e){if(!pBt(e))return null;if(gBt(e)){var t=e.toString;if(typeof t!="function"||t===mBt)return null}try{return""+e}catch(r){return null}}});var iqe=ye((D1r,rqe)=>{"use strict";rqe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var aqe=ye((F1r,nqe)=>{"use strict";var yBt=iqe(),_Bt=/[\n\r\u2028\u2029]/g;nqe.exports=function(e){var t=yBt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(_Bt,function(r){switch(r){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var qY=ye((z1r,lqe)=>{"use strict";var oqe=fw(),xBt=gz(),bBt=tqe(),wBt=aqe(),sqe=function(e,t){return e.replace("%v",wBt(t))};lqe.exports=function(e,t,r){if(!xBt(r))throw new TypeError(sqe(t,e));if(!oqe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=bBt(r.errorMessage);throw oqe(n)||(n=t),new TypeError(sqe(n,e))}});var cqe=ye((q1r,uqe)=>{"use strict";var TBt=qY(),ABt=fw();uqe.exports=function(e){return ABt(e)?e:TBt(e,"Cannot use %v",arguments[1])}});var hqe=ye((O1r,fqe)=>{"use strict";var SBt=qY(),MBt=CY();fqe.exports=function(e){return MBt(e)?e:SBt(e,"%v is not a plain function",arguments[1])}});var vqe=ye((B1r,dqe)=>{"use strict";dqe.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var gqe=ye((N1r,pqe)=>{"use strict";var EBt=Object.prototype.toString,kBt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);pqe.exports=function(e){return typeof e=="function"&&kBt(EBt.call(e))}});var yqe=ye((U1r,mqe)=>{"use strict";mqe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var xqe=ye((V1r,_qe)=>{"use strict";_qe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var wqe=ye((G1r,bqe)=>{"use strict";bqe.exports=yqe()()?Math.sign:xqe()});var Aqe=ye((H1r,Tqe)=>{"use strict";var CBt=wqe(),LBt=Math.abs,PBt=Math.floor;Tqe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:CBt(e)*PBt(LBt(e)))}});var Mqe=ye((j1r,Sqe)=>{"use strict";var IBt=Aqe(),RBt=Math.max;Sqe.exports=function(e){return RBt(0,IBt(e))}});var Lqe=ye((W1r,Cqe)=>{"use strict";var DBt=_x().iterator,FBt=Ek(),zBt=gqe(),qBt=Mqe(),Eqe=m5(),OBt=c1(),BBt=yx(),NBt=kk(),kqe=Array.isArray,OY=Function.prototype.call,hw={configurable:!0,enumerable:!0,writable:!0,value:null},BY=Object.defineProperty;Cqe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(OBt(e)),BBt(t)&&Eqe(t),!this||this===Array||!zBt(this)){if(!t){if(FBt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(kqe(e)){for(o=new Array(s=e.length),i=0;i=55296&&l<=56319&&(h+=e[++i])),h=t?OY.call(t,r,h,a):h,n?(hw.value=h,BY(o,a,hw)):o[a]=h,++a;s=a}}if(s===void 0)for(s=qBt(e.length),n&&(o=new n(s)),i=0;i{"use strict";Pqe.exports=vqe()()?Array.from:Lqe()});var Dqe=ye((Z1r,Rqe)=>{"use strict";var UBt=Iqe(),VBt=mz(),GBt=c1();Rqe.exports=function(e){var t=Object(GBt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?UBt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):VBt(i,e),i}});var qqe=ye((Y1r,zqe)=>{"use strict";var HBt=m5(),jBt=c1(),WBt=Function.prototype.bind,Fqe=Function.prototype.call,XBt=Object.keys,ZBt=Object.prototype.propertyIsEnumerable;zqe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(jBt(r)),HBt(n),i=XBt(r),o&&i.sort(typeof o=="function"?WBt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),Fqe.call(e,i,function(s,l){return ZBt.call(r,s)?Fqe.call(n,a,r[s],s,r,l):t})}}});var Bqe=ye((K1r,Oqe)=>{"use strict";Oqe.exports=qqe()("forEach")});var Uqe=ye((J1r,Nqe)=>{"use strict";var YBt=m5(),KBt=Bqe(),JBt=Function.prototype.call;Nqe.exports=function(e,t){var r={},n=arguments[2];return YBt(t),KBt(e,function(i,a,o,s){r[a]=JBt.call(t,n,i,a,o,s)}),r}});var jqe=ye(($1r,Hqe)=>{"use strict";var $Bt=fw(),QBt=cqe(),Vqe=hqe(),eNt=Dqe(),tNt=LY(),rNt=Uqe(),iNt=Function.prototype.bind,nNt=Object.defineProperty,aNt=Object.prototype.hasOwnProperty,Gqe;Gqe=function(e,t,r){var n=QBt(t)&&Vqe(t.value),i;return i=eNt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&aNt.call(this,e)?n:(t.value=iNt.call(n,r.resolveContext?r.resolveContext(this):this),nNt(this,e,t),this[e])},i};Hqe.exports=function(e){var t=tNt(arguments[1]);return $Bt(t.resolveContext)&&Vqe(t.resolveContext),rNt(e,function(r,n){return Gqe(n,r,t)})}});var NY=ye((Q1r,Yqe)=>{"use strict";var oNt=$9e(),sNt=mz(),lNt=m5(),uNt=c1(),Op=f1(),cNt=jqe(),Wqe=_x(),Xqe=Object.defineProperty,Zqe=Object.defineProperties,Pk;Yqe.exports=Pk=function(e,t){if(!(this instanceof Pk))throw new TypeError("Constructor requires 'new'");Zqe(this,{__list__:Op("w",uNt(e)),__context__:Op("w",t),__nextIndex__:Op("w",0)}),t&&(lNt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete Pk.prototype.constructor;Zqe(Pk.prototype,sNt({_next:Op(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){Xqe(this,"__redo__",Op("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Op(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Op(function(){this.__redo__&&oNt.call(this.__redo__),this.__nextIndex__=0})})));Xqe(Pk.prototype,Wqe.iterator,Op(function(){return this}))});var eOe=ye((e_r,Qqe)=>{"use strict";var Kqe=pz(),Jqe=IY(),UY=f1(),fNt=_x(),VY=NY(),$qe=Object.defineProperty,y5;y5=Qqe.exports=function(e,t){if(!(this instanceof y5))throw new TypeError("Constructor requires 'new'");VY.call(this,e),t?Jqe.call(t,"key+value")?t="key+value":Jqe.call(t,"key")?t="key":t="value":t="value",$qe(this,"__kind__",UY("",t))};Kqe&&Kqe(y5,VY);delete y5.prototype.constructor;y5.prototype=Object.create(VY.prototype,{_resolve:UY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});$qe(y5.prototype,fNt.toStringTag,UY("c","Array Iterator"))});var nOe=ye((t_r,iOe)=>{"use strict";var tOe=pz(),bz=f1(),hNt=_x(),GY=NY(),rOe=Object.defineProperty,_5;_5=iOe.exports=function(e){if(!(this instanceof _5))throw new TypeError("Constructor requires 'new'");e=String(e),GY.call(this,e),rOe(this,"__length__",bz("",e.length))};tOe&&tOe(_5,GY);delete _5.prototype.constructor;_5.prototype=Object.create(GY.prototype,{_next:bz(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});rOe(_5.prototype,hNt.toStringTag,bz("c","String Iterator"))});var oOe=ye((r_r,aOe)=>{"use strict";var dNt=Ek(),vNt=yx(),pNt=kk(),gNt=_x().iterator,mNt=Array.isArray;aOe.exports=function(e){return vNt(e)?mNt(e)||pNt(e)||dNt(e)?!0:typeof e[gNt]=="function":!1}});var lOe=ye((i_r,sOe)=>{"use strict";var yNt=oOe();sOe.exports=function(e){if(!yNt(e))throw new TypeError(e+" is not iterable");return e}});var HY=ye((n_r,fOe)=>{"use strict";var _Nt=Ek(),xNt=kk(),uOe=eOe(),bNt=nOe(),wNt=lOe(),cOe=_x().iterator;fOe.exports=function(e){return typeof wNt(e)[cOe]=="function"?e[cOe]():_Nt(e)?new uOe(e):xNt(e)?new bNt(e):new uOe(e)}});var dOe=ye((a_r,hOe)=>{"use strict";var TNt=Ek(),ANt=m5(),SNt=kk(),MNt=HY(),ENt=Array.isArray,jY=Function.prototype.call,kNt=Array.prototype.some;hOe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(ENt(e)||TNt(e)?r="array":SNt(e)?r="string":e=MNt(e),ANt(t),a=function(){o=!0},r==="array"){kNt.call(e,function(f){return jY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),jY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(jY.call(t,n,i.value,a),o)return;i=e.next()}}});var pOe=ye((o_r,vOe)=>{"use strict";vOe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var yOe=ye((s_r,mOe)=>{"use strict";var CNt=yx(),Tz=pz(),wz=j7e(),LNt=c1(),PNt=X7e(),h1=f1(),INt=HY(),RNt=dOe(),DNt=_x().toStringTag,gOe=pOe(),FNt=Array.isArray,XY=Object.defineProperty,WY=Object.prototype.hasOwnProperty,zNt=Object.getPrototypeOf,xx;mOe.exports=xx=function(){var e=arguments[0],t;if(!(this instanceof xx))throw new TypeError("Constructor requires 'new'");return t=gOe&&Tz&&WeakMap!==xx?Tz(new WeakMap,zNt(this)):this,CNt(e)&&(FNt(e)||(e=INt(e))),XY(t,"__weakMapData__",h1("c","$weakMap$"+PNt())),e&&RNt(e,function(r){LNt(r),t.set(r[0],r[1])}),t};gOe&&(Tz&&Tz(xx,WeakMap),xx.prototype=Object.create(WeakMap.prototype,{constructor:h1(xx)}));Object.defineProperties(xx.prototype,{delete:h1(function(e){return WY.call(wz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:h1(function(e){if(WY.call(wz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:h1(function(e){return WY.call(wz(e),this.__weakMapData__)}),set:h1(function(e,t){return XY(wz(e),this.__weakMapData__,h1("c",t)),this}),toString:h1(function(){return"[object WeakMap]"})});XY(xx.prototype,DNt,h1("c","WeakMap"))});var ZY=ye((l_r,_Oe)=>{"use strict";_Oe.exports=I7e()()?WeakMap:yOe()});var bOe=ye((u_r,xOe)=>{"use strict";xOe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var Az=sx(),qNt=nw(),KY=Nh(),ONt=ty(),BNt=aw(),wOe=k7e(),NNt=L7e(),{float32:UNt,fract32:YY}=oz(),VNt=ZY(),TOe=l5(),GNt=bOe(),HNt=` +`]),M7e&&(v.frag=v.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(v)}av.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};av.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};av.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nre)?N.tree=gOt(j,{bounds:ge}):re&&re.length&&(N.tree=re),N.tree){var ie={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(ie):N.elements=o.elements(ie)}var Se=cz.float32(j);ae({data:Se,usage:"dynamic"});var ke=cz.fract32(j,Se);return _e({data:ke,usage:"dynamic"}),Ee({data:new Uint8Array(Ce),type:"uint8",usage:"stream"}),j}},{marker:function(j,N,H){var re=N.activation;if(re.forEach(function(ke){return ke&&ke.destroy&&ke.destroy()}),re.length=0,!j||typeof j[0]=="number"){var ae=e.addMarker(j);re[ae]=!0}else{for(var _e=[],Ee=0,Ce=Math.min(j.length,N.count);Ee=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};av.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";EY.exports=dz;EY.exports.default=dz;function dz(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=L7e(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,d;if(n&&(a=kOt(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var v=r;vu&&(u=f),h>c&&(c=h);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return Sk(a,o,r,s,l,d,0),o}function L7e(e,t,r,n,i){var a,o;if(i===MY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=C7e(a,e[a],e[a+1],o);return o&&vz(o,o.next)&&(Ek(o),o=o.next),o}function hw(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(vz(r,r.next)||wh(r.prev,r,r.next)===0)){if(Ek(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Sk(e,t,r,n,i,a,o){if(e){!o&&a&&ROt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?SOt(e,n,i,a):AOt(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),Ek(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=MOt(hw(e),t,r),Sk(e,t,r,n,i,a,2)):o===2&&EOt(e,t,r,n,i,a):Sk(hw(e),t,r,n,i,a,1);break}}}}function AOt(e){var t=e.prev,r=e,n=e.next;if(wh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,v=n.next;v!==t;){if(v.x>=c&&v.x<=h&&v.y>=f&&v.y<=d&&m5(i,s,a,l,o,u,v.x,v.y)&&wh(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function SOt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(wh(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,c=i.y,f=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,b=c>f?c>h?c:h:f>h?f:h,p=AY(d,v,t,r,n),k=AY(m,b,t,r,n),M=e.prevZ,T=e.nextZ;M&&M.z>=p&&T&&T.z<=k;){if(M.x>=d&&M.x<=m&&M.y>=v&&M.y<=b&&M!==i&&M!==o&&m5(s,c,l,f,u,h,M.x,M.y)&&wh(M.prev,M,M.next)>=0||(M=M.prevZ,T.x>=d&&T.x<=m&&T.y>=v&&T.y<=b&&T!==i&&T!==o&&m5(s,c,l,f,u,h,T.x,T.y)&&wh(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;M&&M.z>=p;){if(M.x>=d&&M.x<=m&&M.y>=v&&M.y<=b&&M!==i&&M!==o&&m5(s,c,l,f,u,h,M.x,M.y)&&wh(M.prev,M,M.next)>=0)return!1;M=M.prevZ}for(;T&&T.z<=k;){if(T.x>=d&&T.x<=m&&T.y>=v&&T.y<=b&&T!==i&&T!==o&&m5(s,c,l,f,u,h,T.x,T.y)&&wh(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function MOt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!vz(i,a)&&P7e(i,n,n.next,a)&&Mk(i,a)&&Mk(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),Ek(n),Ek(n.next),n=e=a),n=n.next}while(n!==e);return hw(n)}function EOt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&zOt(o,s)){var l=I7e(o,s);o=hw(o,o.next),l=hw(l,l.next),Sk(o,t,r,n,i,a,0),Sk(l,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function kOt(e,t,r,n){var i=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&n!==r.x&&m5(io.x||r.x===o.x&&IOt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function IOt(e,t){return wh(e.prev,e,t.prev)<0&&wh(t.next,e,e.next)<0}function ROt(e,t,r,n){var i=e;do i.z===0&&(i.z=AY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,DOt(i)}function DOt(e){var t,r,n,i,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return e}function AY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function FOt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function zOt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!qOt(e,t)&&(Mk(e,t)&&Mk(t,e)&&OOt(e,t)&&(wh(e.prev,e,t.prev)||wh(e,t.prev,t))||vz(e,t)&&wh(e.prev,e,e.next)>0&&wh(t.prev,t,t.next)>0)}function wh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function vz(e,t){return e.x===t.x&&e.y===t.y}function P7e(e,t,r,n){var i=hz(wh(e,t,r)),a=hz(wh(e,t,n)),o=hz(wh(r,n,e)),s=hz(wh(r,n,t));return!!(i!==a&&o!==s||i===0&&fz(e,r,t)||a===0&&fz(e,n,t)||o===0&&fz(r,e,n)||s===0&&fz(r,t,n))}function fz(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function hz(e){return e>0?1:e<0?-1:0}function qOt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&P7e(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Mk(e,t){return wh(e.prev,e,e.next)<0?wh(e,t,e.next)>=0&&wh(e,e.prev,t)>=0:wh(e,t,e.prev)<0||wh(e,e.next,t)<0}function OOt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function I7e(e,t){var r=new SY(e.i,e.x,e.y),n=new SY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function C7e(e,t,r,n){var i=new SY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ek(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function SY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}dz.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(MY(e,0,a,r));if(i)for(var s=0,l=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var F7e=ye((l1r,D7e)=>{"use strict";var BOt=ow();D7e.exports=NOt;function NOt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=BOt(e,t));for(var n=0;n{"use strict";z7e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var B7e=ye((c1r,O7e)=>{"use strict";O7e.exports=function(){}});var yx=ye((f1r,N7e)=>{"use strict";var UOt=B7e()();N7e.exports=function(e){return e!==UOt&&e!==null}});var kY=ye((h1r,V7e)=>{"use strict";var VOt=Object.create,GOt=Object.getPrototypeOf,U7e={};V7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||VOt;return typeof e!="function"?!1:GOt(e(t(null),U7e))===U7e}});var CY=ye((d1r,G7e)=>{"use strict";var HOt=yx(),jOt={function:!0,object:!0};G7e.exports=function(e){return HOt(e)&&jOt[typeof e]||!1}});var f1=ye((v1r,H7e)=>{"use strict";var WOt=yx();H7e.exports=function(e){if(!WOt(e))throw new TypeError("Cannot use null or undefined");return e}});var W7e=ye((p1r,j7e)=>{"use strict";var LY=Object.create,pz;kY()()||(pz=PY());j7e.exports=(function(){var e,t,r;return!pz||pz.level!==1?LY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(pz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return LY(n===null?e:n,i)})})()});var PY=ye((g1r,X7e)=>{"use strict";var XOt=CY(),ZOt=f1(),YOt=Object.prototype.isPrototypeOf,KOt=Object.defineProperty,JOt={configurable:!0,enumerable:!1,writable:!0,value:void 0},gz;gz=function(e,t){if(ZOt(e),t===null||XOt(t))return e;throw new TypeError("Prototype must be null or an object")};X7e.exports=(function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(gz(n,i),i),n}):t=function(n,i){return gz(n,i).__proto__=i,n}:t=function n(i,a){var o;return gz(i,a),o=YOt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&KOt(n.nullPolyfill,"__proto__",JOt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)})());W7e()});var mz=ye((m1r,Z7e)=>{"use strict";Z7e.exports=kY()()?Object.setPrototypeOf:PY()});var K7e=ye((y1r,Y7e)=>{"use strict";var $Ot=CY();Y7e.exports=function(e){if(!$Ot(e))throw new TypeError(e+" is not an Object");return e}});var $7e=ye((_1r,J7e)=>{"use strict";var QOt=Object.create(null),eBt=Math.random;J7e.exports=function(){var e;do e=eBt().toString(36).slice(2);while(QOt[e]);return e}});var dw=ye((x1r,Q7e)=>{"use strict";var tBt=void 0;Q7e.exports=function(e){return e!==tBt&&e!==null}});var yz=ye((b1r,e9e)=>{"use strict";var rBt=dw(),iBt={object:!0,function:!0,undefined:!0};e9e.exports=function(e){return rBt(e)?hasOwnProperty.call(iBt,typeof e):!1}});var r9e=ye((w1r,t9e)=>{"use strict";var nBt=yz();t9e.exports=function(e){if(!nBt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var n9e=ye((T1r,i9e)=>{"use strict";var aBt=r9e();i9e.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!aBt(e)}});var IY=ye((A1r,a9e)=>{"use strict";var oBt=n9e(),sBt=/^\s*class[\s{/}]/,lBt=Function.prototype.toString;a9e.exports=function(e){return!(!oBt(e)||sBt.test(lBt.call(e)))}});var s9e=ye((S1r,o9e)=>{"use strict";o9e.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var u9e=ye((M1r,l9e)=>{"use strict";l9e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var f9e=ye((E1r,c9e)=>{"use strict";var uBt=yx(),cBt=Object.keys;c9e.exports=function(e){return cBt(uBt(e)?Object(e):e)}});var d9e=ye((k1r,h9e)=>{"use strict";h9e.exports=u9e()()?Object.keys:f9e()});var p9e=ye((C1r,v9e)=>{"use strict";var fBt=d9e(),hBt=f1(),dBt=Math.max;v9e.exports=function(e,t){var r,n,i=dBt(arguments.length,2),a;for(e=Object(hBt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";g9e.exports=s9e()()?Object.assign:p9e()});var RY=ye((P1r,m9e)=>{"use strict";var vBt=yx(),pBt=Array.prototype.forEach,gBt=Object.create,mBt=function(e,t){var r;for(r in e)t[r]=e[r]};m9e.exports=function(e){var t=gBt(null);return pBt.call(arguments,function(r){vBt(r)&&mBt(Object(r),t)}),t}});var _9e=ye((I1r,y9e)=>{"use strict";var DY="razdwatrzy";y9e.exports=function(){return typeof DY.contains!="function"?!1:DY.contains("dwa")===!0&&DY.contains("foo")===!1}});var b9e=ye((R1r,x9e)=>{"use strict";var yBt=String.prototype.indexOf;x9e.exports=function(e){return yBt.call(this,e,arguments[1])>-1}});var FY=ye((D1r,w9e)=>{"use strict";w9e.exports=_9e()()?String.prototype.contains:b9e()});var h1=ye((F1r,M9e)=>{"use strict";var xz=dw(),T9e=IY(),A9e=_z(),S9e=RY(),kk=FY(),_Bt=M9e.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],xz(e)?(r=kk.call(e,"c"),n=kk.call(e,"e"),i=kk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?A9e(S9e(a),o):o};_Bt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],xz(t)?T9e(t)?xz(r)?T9e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,xz(e)?(n=kk.call(e,"c"),i=kk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?A9e(S9e(a),o):o}});var Ck=ye((z1r,k9e)=>{"use strict";var E9e=Object.prototype.toString,xBt=E9e.call((function(){return arguments})());k9e.exports=function(e){return E9e.call(e)===xBt}});var Lk=ye((q1r,L9e)=>{"use strict";var C9e=Object.prototype.toString,bBt=C9e.call("");L9e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||C9e.call(e)===bBt)||!1}});var I9e=ye((O1r,P9e)=>{"use strict";P9e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var F9e=ye((B1r,D9e)=>{var R9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};D9e.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return R9e()}try{return __global__||R9e()}finally{delete Object.prototype.__global__}})()});var Pk=ye((N1r,z9e)=>{"use strict";z9e.exports=I9e()()?globalThis:F9e()});var O9e=ye((U1r,q9e)=>{"use strict";var wBt=Pk(),zY={object:!0,symbol:!0};q9e.exports=function(){var e=wBt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!zY[typeof e.iterator]||!zY[typeof e.toPrimitive]||!zY[typeof e.toStringTag])}});var N9e=ye((V1r,B9e)=>{"use strict";B9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var qY=ye((G1r,U9e)=>{"use strict";var TBt=N9e();U9e.exports=function(e){if(!TBt(e))throw new TypeError(e+" is not a symbol");return e}});var W9e=ye((H1r,j9e)=>{"use strict";var V9e=h1(),ABt=Object.create,G9e=Object.defineProperty,SBt=Object.prototype,H9e=ABt(null);j9e.exports=function(e){for(var t=0,r,n;H9e[e+(t||"")];)++t;return e+=t||"",H9e[e]=!0,r="@@"+e,G9e(SBt,r,V9e.gs(null,function(i){n||(n=!0,G9e(this,r,V9e(i)),n=!1)})),r}});var Z9e=ye((j1r,X9e)=>{"use strict";var rm=h1(),Uh=Pk().Symbol;X9e.exports=function(e){return Object.defineProperties(e,{hasInstance:rm("",Uh&&Uh.hasInstance||e("hasInstance")),isConcatSpreadable:rm("",Uh&&Uh.isConcatSpreadable||e("isConcatSpreadable")),iterator:rm("",Uh&&Uh.iterator||e("iterator")),match:rm("",Uh&&Uh.match||e("match")),replace:rm("",Uh&&Uh.replace||e("replace")),search:rm("",Uh&&Uh.search||e("search")),species:rm("",Uh&&Uh.species||e("species")),split:rm("",Uh&&Uh.split||e("split")),toPrimitive:rm("",Uh&&Uh.toPrimitive||e("toPrimitive")),toStringTag:rm("",Uh&&Uh.toStringTag||e("toStringTag")),unscopables:rm("",Uh&&Uh.unscopables||e("unscopables"))})}});var J9e=ye((W1r,K9e)=>{"use strict";var Y9e=h1(),MBt=qY(),Ik=Object.create(null);K9e.exports=function(e){return Object.defineProperties(e,{for:Y9e(function(t){return Ik[t]?Ik[t]:Ik[t]=e(String(t))}),keyFor:Y9e(function(t){var r;MBt(t);for(r in Ik)if(Ik[r]===t)return r})})}});var eqe=ye((X1r,Q9e)=>{"use strict";var iy=h1(),OY=qY(),bz=Pk().Symbol,EBt=W9e(),kBt=Z9e(),CBt=J9e(),LBt=Object.create,BY=Object.defineProperties,wz=Object.defineProperty,Xv,y5,$9e;if(typeof bz=="function")try{String(bz()),$9e=!0}catch(e){}else bz=null;y5=function(t){if(this instanceof y5)throw new TypeError("Symbol is not a constructor");return Xv(t)};Q9e.exports=Xv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return $9e?bz(t):(r=LBt(y5.prototype),t=t===void 0?"":String(t),BY(r,{__description__:iy("",t),__name__:iy("",EBt(t))}))};kBt(Xv);CBt(Xv);BY(y5.prototype,{constructor:iy(Xv),toString:iy("",function(){return this.__name__})});BY(Xv.prototype,{toString:iy(function(){return"Symbol ("+OY(this).__description__+")"}),valueOf:iy(function(){return OY(this)})});wz(Xv.prototype,Xv.toPrimitive,iy("",function(){var e=OY(this);return typeof e=="symbol"?e:e.toString()}));wz(Xv.prototype,Xv.toStringTag,iy("c","Symbol"));wz(y5.prototype,Xv.toStringTag,iy("c",Xv.prototype[Xv.toStringTag]));wz(y5.prototype,Xv.toPrimitive,iy("c",Xv.prototype[Xv.toPrimitive]))});var _x=ye((Z1r,tqe)=>{"use strict";tqe.exports=O9e()()?Pk().Symbol:eqe()});var iqe=ye((Y1r,rqe)=>{"use strict";var PBt=f1();rqe.exports=function(){return PBt(this).length=0,this}});var _5=ye((K1r,nqe)=>{"use strict";nqe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var oqe=ye((J1r,aqe)=>{"use strict";var IBt=dw(),RBt=yz(),DBt=Object.prototype.toString;aqe.exports=function(e){if(!IBt(e))return null;if(RBt(e)){var t=e.toString;if(typeof t!="function"||t===DBt)return null}try{return""+e}catch(r){return null}}});var lqe=ye(($1r,sqe)=>{"use strict";sqe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var cqe=ye((Q1r,uqe)=>{"use strict";var FBt=lqe(),zBt=/[\n\r\u2028\u2029]/g;uqe.exports=function(e){var t=FBt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(zBt,function(r){switch(r){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var NY=ye((e_r,dqe)=>{"use strict";var fqe=dw(),qBt=yz(),OBt=oqe(),BBt=cqe(),hqe=function(e,t){return e.replace("%v",BBt(t))};dqe.exports=function(e,t,r){if(!qBt(r))throw new TypeError(hqe(t,e));if(!fqe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=OBt(r.errorMessage);throw fqe(n)||(n=t),new TypeError(hqe(n,e))}});var pqe=ye((t_r,vqe)=>{"use strict";var NBt=NY(),UBt=dw();vqe.exports=function(e){return UBt(e)?e:NBt(e,"Cannot use %v",arguments[1])}});var mqe=ye((r_r,gqe)=>{"use strict";var VBt=NY(),GBt=IY();gqe.exports=function(e){return GBt(e)?e:VBt(e,"%v is not a plain function",arguments[1])}});var _qe=ye((i_r,yqe)=>{"use strict";yqe.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var bqe=ye((n_r,xqe)=>{"use strict";var HBt=Object.prototype.toString,jBt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);xqe.exports=function(e){return typeof e=="function"&&jBt(HBt.call(e))}});var Tqe=ye((a_r,wqe)=>{"use strict";wqe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var Sqe=ye((o_r,Aqe)=>{"use strict";Aqe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var Eqe=ye((s_r,Mqe)=>{"use strict";Mqe.exports=Tqe()()?Math.sign:Sqe()});var Cqe=ye((l_r,kqe)=>{"use strict";var WBt=Eqe(),XBt=Math.abs,ZBt=Math.floor;kqe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:WBt(e)*ZBt(XBt(e)))}});var Pqe=ye((u_r,Lqe)=>{"use strict";var YBt=Cqe(),KBt=Math.max;Lqe.exports=function(e){return KBt(0,YBt(e))}});var Fqe=ye((c_r,Dqe)=>{"use strict";var JBt=_x().iterator,$Bt=Ck(),QBt=bqe(),eNt=Pqe(),Iqe=_5(),tNt=f1(),rNt=yx(),iNt=Lk(),Rqe=Array.isArray,UY=Function.prototype.call,vw={configurable:!0,enumerable:!0,writable:!0,value:null},VY=Object.defineProperty;Dqe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(tNt(e)),rNt(t)&&Iqe(t),!this||this===Array||!QBt(this)){if(!t){if($Bt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(Rqe(e)){for(o=new Array(s=e.length),i=0;i=55296&&l<=56319&&(h+=e[++i])),h=t?UY.call(t,r,h,a):h,n?(vw.value=h,VY(o,a,vw)):o[a]=h,++a;s=a}}if(s===void 0)for(s=eNt(e.length),n&&(o=new n(s)),i=0;i{"use strict";zqe.exports=_qe()()?Array.from:Fqe()});var Bqe=ye((h_r,Oqe)=>{"use strict";var nNt=qqe(),aNt=_z(),oNt=f1();Oqe.exports=function(e){var t=Object(oNt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?nNt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):aNt(i,e),i}});var Vqe=ye((d_r,Uqe)=>{"use strict";var sNt=_5(),lNt=f1(),uNt=Function.prototype.bind,Nqe=Function.prototype.call,cNt=Object.keys,fNt=Object.prototype.propertyIsEnumerable;Uqe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(lNt(r)),sNt(n),i=cNt(r),o&&i.sort(typeof o=="function"?uNt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),Nqe.call(e,i,function(s,l){return fNt.call(r,s)?Nqe.call(n,a,r[s],s,r,l):t})}}});var Hqe=ye((v_r,Gqe)=>{"use strict";Gqe.exports=Vqe()("forEach")});var Wqe=ye((p_r,jqe)=>{"use strict";var hNt=_5(),dNt=Hqe(),vNt=Function.prototype.call;jqe.exports=function(e,t){var r={},n=arguments[2];return hNt(t),dNt(e,function(i,a,o,s){r[a]=vNt.call(t,n,i,a,o,s)}),r}});var Kqe=ye((g_r,Yqe)=>{"use strict";var pNt=dw(),gNt=pqe(),Xqe=mqe(),mNt=Bqe(),yNt=RY(),_Nt=Wqe(),xNt=Function.prototype.bind,bNt=Object.defineProperty,wNt=Object.prototype.hasOwnProperty,Zqe;Zqe=function(e,t,r){var n=gNt(t)&&Xqe(t.value),i;return i=mNt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&wNt.call(this,e)?n:(t.value=xNt.call(n,r.resolveContext?r.resolveContext(this):this),bNt(this,e,t),this[e])},i};Yqe.exports=function(e){var t=yNt(arguments[1]);return pNt(t.resolveContext)&&Xqe(t.resolveContext),_Nt(e,function(r,n){return Zqe(n,r,t)})}});var GY=ye((m_r,eOe)=>{"use strict";var TNt=iqe(),ANt=_z(),SNt=_5(),MNt=f1(),Op=h1(),ENt=Kqe(),Jqe=_x(),$qe=Object.defineProperty,Qqe=Object.defineProperties,Rk;eOe.exports=Rk=function(e,t){if(!(this instanceof Rk))throw new TypeError("Constructor requires 'new'");Qqe(this,{__list__:Op("w",MNt(e)),__context__:Op("w",t),__nextIndex__:Op("w",0)}),t&&(SNt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete Rk.prototype.constructor;Qqe(Rk.prototype,ANt({_next:Op(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){$qe(this,"__redo__",Op("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Op(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Op(function(){this.__redo__&&TNt.call(this.__redo__),this.__nextIndex__=0})})));$qe(Rk.prototype,Jqe.iterator,Op(function(){return this}))});var aOe=ye((y_r,nOe)=>{"use strict";var tOe=mz(),rOe=FY(),HY=h1(),kNt=_x(),jY=GY(),iOe=Object.defineProperty,x5;x5=nOe.exports=function(e,t){if(!(this instanceof x5))throw new TypeError("Constructor requires 'new'");jY.call(this,e),t?rOe.call(t,"key+value")?t="key+value":rOe.call(t,"key")?t="key":t="value":t="value",iOe(this,"__kind__",HY("",t))};tOe&&tOe(x5,jY);delete x5.prototype.constructor;x5.prototype=Object.create(jY.prototype,{_resolve:HY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});iOe(x5.prototype,kNt.toStringTag,HY("c","Array Iterator"))});var uOe=ye((__r,lOe)=>{"use strict";var oOe=mz(),Tz=h1(),CNt=_x(),WY=GY(),sOe=Object.defineProperty,b5;b5=lOe.exports=function(e){if(!(this instanceof b5))throw new TypeError("Constructor requires 'new'");e=String(e),WY.call(this,e),sOe(this,"__length__",Tz("",e.length))};oOe&&oOe(b5,WY);delete b5.prototype.constructor;b5.prototype=Object.create(WY.prototype,{_next:Tz(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});sOe(b5.prototype,CNt.toStringTag,Tz("c","String Iterator"))});var fOe=ye((x_r,cOe)=>{"use strict";var LNt=Ck(),PNt=yx(),INt=Lk(),RNt=_x().iterator,DNt=Array.isArray;cOe.exports=function(e){return PNt(e)?DNt(e)||INt(e)||LNt(e)?!0:typeof e[RNt]=="function":!1}});var dOe=ye((b_r,hOe)=>{"use strict";var FNt=fOe();hOe.exports=function(e){if(!FNt(e))throw new TypeError(e+" is not iterable");return e}});var XY=ye((w_r,gOe)=>{"use strict";var zNt=Ck(),qNt=Lk(),vOe=aOe(),ONt=uOe(),BNt=dOe(),pOe=_x().iterator;gOe.exports=function(e){return typeof BNt(e)[pOe]=="function"?e[pOe]():zNt(e)?new vOe(e):qNt(e)?new ONt(e):new vOe(e)}});var yOe=ye((T_r,mOe)=>{"use strict";var NNt=Ck(),UNt=_5(),VNt=Lk(),GNt=XY(),HNt=Array.isArray,ZY=Function.prototype.call,jNt=Array.prototype.some;mOe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(HNt(e)||NNt(e)?r="array":VNt(e)?r="string":e=GNt(e),UNt(t),a=function(){o=!0},r==="array"){jNt.call(e,function(f){return ZY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),ZY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(ZY.call(t,n,i.value,a),o)return;i=e.next()}}});var xOe=ye((A_r,_Oe)=>{"use strict";_Oe.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var TOe=ye((S_r,wOe)=>{"use strict";var WNt=yx(),Sz=mz(),Az=K7e(),XNt=f1(),ZNt=$7e(),d1=h1(),YNt=XY(),KNt=yOe(),JNt=_x().toStringTag,bOe=xOe(),$Nt=Array.isArray,KY=Object.defineProperty,YY=Object.prototype.hasOwnProperty,QNt=Object.getPrototypeOf,xx;wOe.exports=xx=function(){var e=arguments[0],t;if(!(this instanceof xx))throw new TypeError("Constructor requires 'new'");return t=bOe&&Sz&&WeakMap!==xx?Sz(new WeakMap,QNt(this)):this,WNt(e)&&($Nt(e)||(e=YNt(e))),KY(t,"__weakMapData__",d1("c","$weakMap$"+ZNt())),e&&KNt(e,function(r){XNt(r),t.set(r[0],r[1])}),t};bOe&&(Sz&&Sz(xx,WeakMap),xx.prototype=Object.create(WeakMap.prototype,{constructor:d1(xx)}));Object.defineProperties(xx.prototype,{delete:d1(function(e){return YY.call(Az(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:d1(function(e){if(YY.call(Az(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:d1(function(e){return YY.call(Az(e),this.__weakMapData__)}),set:d1(function(e,t){return KY(Az(e),this.__weakMapData__,d1("c",t)),this}),toString:d1(function(){return"[object WeakMap]"})});KY(xx.prototype,JNt,d1("c","WeakMap"))});var JY=ye((M_r,AOe)=>{"use strict";AOe.exports=q7e()()?WeakMap:TOe()});var MOe=ye((E_r,SOe)=>{"use strict";SOe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var Mz=lx(),eUt=ow(),QY=Nh(),tUt=ry(),rUt=sw(),EOe=R7e(),iUt=F7e(),{float32:nUt,fract32:$Y}=lz(),aUt=JY(),kOe=c5(),oUt=MOe(),sUt=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2247,7 +2247,7 @@ void main() { fragColor = color / 255.; } -`,jNt=` +`,lUt=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -2265,7 +2265,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,WNt=` +`,uUt=` precision highp float; attribute vec2 position, positionFract; @@ -2293,14 +2293,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,XNt=` +`,cUt=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,ZNt=` +`,fUt=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2504,7 +2504,7 @@ void main() { } } } -`,YNt=` +`,hUt=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -2584,7 +2584,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;AOe.exports=Wc;function Wc(e,t){if(!(this instanceof Wc))return new Wc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Wc.shaders.has(e)?Wc.shaders.get(e):Wc.shaders.set(e,Wc.createShaders(e)).get(e),this.update(t)}Wc.dashMult=2;Wc.maxPatternLength=256;Wc.precisionThreshold=3e6;Wc.maxPoints=1e4;Wc.maxLines=2048;Wc.shaders=new VNt;Wc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(KY({vert:HNt,frag:jNt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(KY({cull:{enable:!0,face:"back"},vert:ZNt,frag:YNt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:WNt,frag:XNt,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Wc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Wc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Wc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Wc.precisionThreshold||t.scale[1]*t.viewport.height>Wc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Wc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Wc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=ONt(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=KY({},Wc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-x),k=[],M=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let L=GNt(p,x=>x>=T);p=p.slice(0,L),p.push(T)}for(let L=0;Lg-T+(p[L]-M)),S=wOe(x,C);S=S.map(g=>g+M+(g+M{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var COe=ye((f_r,kOe)=>{"use strict";var KNt=nw(),JNt=sx(),$Nt=yY(),QNt=ty(),SOe=Nh(),MOe=aw(),{float32:eUt,fract32:$Y}=oz();kOe.exports=tUt;var EOe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function tUt(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},c=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:EOe}),v(t),n=e({vert:` +`;COe.exports=Wc;function Wc(e,t){if(!(this instanceof Wc))return new Wc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Wc.shaders.has(e)?Wc.shaders.get(e):Wc.shaders.set(e,Wc.createShaders(e)).get(e),this.update(t)}Wc.dashMult=2;Wc.maxPatternLength=256;Wc.precisionThreshold=3e6;Wc.maxPoints=1e4;Wc.maxLines=2048;Wc.shaders=new aUt;Wc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(QY({vert:sUt,frag:lUt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(QY({cull:{enable:!0,face:"back"},vert:fUt,frag:hUt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:uUt,frag:cUt,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Wc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Wc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Wc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Wc.precisionThreshold||t.scale[1]*t.viewport.height>Wc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Wc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Wc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=tUt(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=QY({},Wc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-x),k=[],M=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let L=oUt(p,x=>x>=T);p=p.slice(0,L),p.push(T)}for(let L=0;Lg-T+(p[L]-M)),S=EOe(x,C);S=S.map(g=>g+M+(g+M{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var DOe=ye((C_r,ROe)=>{"use strict";var dUt=ow(),vUt=lx(),pUt=bY(),gUt=ry(),LOe=Nh(),POe=sw(),{float32:mUt,fract32:tK}=lz();ROe.exports=yUt;var IOe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function yUt(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},c=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:IOe}),v(t),n=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -2628,10 +2628,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,p)=>[p.viewport.x,p.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,p)=>p.offset*4,divisor:1},position:{buffer:i,offset:(b,p)=>p.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,p)=>p.offset*8,divisor:1},error:{buffer:s,offset:(b,p)=>p.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:EOe.length}),SOe(f,{update:v,draw:h,destroy:m,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&m(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),c.forEach((p,k)=>{if(p){if(b&&(b[k]?p.draw=!0:p.draw=!1),!p.draw){p.draw=!0;return}d(k)}})}function d(b){typeof b=="number"&&(b=c[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function v(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let p=0,k=0;if(f.groups=c=b.map((L,x)=>{let C=c[x];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return C;return L=QNt(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),C||(c[x]=C={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=SOe({},u,L)),$Nt(C,L,[{lineWidth:S=>+S*.5,capSize:S=>+S*.5,opacity:parseFloat,errors:S=>(S=MOe(S),k+=S.length,S),positions:(S,g)=>(S=MOe(S,"float64"),g.count=Math.floor(S.length/2),g.bounds=KNt(S,2),g.offset=p,p+=g.count,S)},{color:(S,g)=>{let P=g.count;if(S||(S="transparent"),!Array.isArray(S)||typeof S[0]=="number"){let z=S;S=Array(P);for(let q=0;q{let E=g.bounds;return S||(S=E),g.scale=[1/(S[2]-S[0]),1/(S[3]-S[1])],g.translate=[-S[0],-S[1]],g.scaleFract=$Y(g.scale),g.translateFract=$Y(g.translate),S},viewport:S=>{let g;return Array.isArray(S)?g={x:S[0],y:S[1],width:S[2]-S[0],height:S[3]-S[1]}:S?(g={x:S.x||S.left||0,y:S.y||S.top||0},S.right?g.width=S.right-g.x:g.width=S.w||S.width||0,S.bottom?g.height=S.bottom-g.y:g.height=S.h||S.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),C}),p||k){let L=c.reduce((g,P,E)=>g+(P?P.count:0),0),x=new Float64Array(L*2),C=new Uint8Array(L*4),S=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:E,count:z,offset:q,color:V,errors:G}=g;z&&(C.set(V,q*4),S.set(G,q*4),x.set(E,q*2))});var M=eUt(x);i(M);var T=$Y(x,M);a(T),o(C),s(S)}}function m(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var IOe=ye((h_r,POe)=>{var LOe=/[\'\"]/;POe.exports=function(t){return t?(LOe.test(t.charAt(0))&&(t=t.substr(1)),LOe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var QY=ye((d_r,rUt)=>{rUt.exports=["inherit","initial","unset"]});var eK=ye((v_r,iUt)=>{iUt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var tK=ye((p_r,nUt)=>{nUt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var rK=ye((g_r,aUt)=>{aUt.exports=["normal","italic","oblique"]});var iK=ye((m_r,oUt)=>{oUt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var zOe=ye((y_r,FOe)=>{"use strict";function ROe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,d,v){var m=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(m),i+m+i}r.forEach(function(h,d){for(var v,m=0;h!=v;)if(v=h,h=h.replace(u,f),m++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(l,u,c){for(var f=[],h,d=0;h=o.exec(l);){if(d++>1e4)throw Error("Circular references in parenthesis");f.push(l.slice(0,h.index)),f.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return f.push(l),f}return a?r:s(r[0],r)}function DOe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function l(u,c){return Array.isArray(c)&&(c=c.reduce(l,"")),u+c},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function nK(e,t){return Array.isArray(e)?DOe(e,t):ROe(e,t)}nK.parse=ROe;nK.stringify=DOe;FOe.exports=nK});var BOe=ye((__r,OOe)=>{"use strict";var qOe=zOe();OOe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var i=qOe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{sUt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var aK=ye((b_r,UOe)=>{"use strict";var lUt=NOe();UOe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||lUt.indexOf(t)!==-1}}});var jOe=ye((w_r,HOe)=>{"use strict";var uUt=IOe(),cUt=QY(),fUt=eK(),hUt=tK(),dUt=rK(),vUt=iK(),oK=BOe(),pUt=aK().isSize;HOe.exports=GOe;var Ik=GOe.cache={};function GOe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Ik[e])return Ik[e];if(e==="")throw new Error("Cannot parse an empty string.");if(fUt.indexOf(e)!==-1)return Ik[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=oK(e,/\s+/),n;n=r.shift();){if(cUt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Ik[e]=t;if(dUt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(vUt.indexOf(n)!==-1){t.stretch=n;continue}if(hUt.indexOf(n)!==-1){t.weight=n;continue}if(pUt(n)){var i=oK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=VOe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=VOe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=oK(r.join(" "),/\s*,\s*/).map(uUt),Ik[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function VOe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var lK=ye((T_r,WOe)=>{"use strict";var gUt=ty(),mUt=aK().isSize,yUt=Dk(QY()),_Ut=Dk(eK()),xUt=Dk(tK()),bUt=Dk(rK()),wUt=Dk(iK()),TUt={normal:1,"small-caps":1},AUt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},sK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};WOe.exports=function(t){if(t=gUt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&Rk(t.system,_Ut),t.system;if(Rk(t.style,bUt),Rk(t.variant,TUt),Rk(t.weight,xUt),Rk(t.stretch,wUt),t.size==null&&(t.size=sK.size),typeof t.size=="number"&&(t.size+="px"),!mUt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=sK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[sK.family]),t.family=t.family.map(function(n){return AUt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function Rk(e,t){if(e&&!t[e]&&!yUt[e])throw Error("Unknown keyword `"+e+"`");return e}function Dk(e){for(var t={},r=0;r{"use strict";XOe.exports={parse:jOe(),stringify:lK()}});var YOe=ye((uK,cK)=>{(function(e,t){typeof uK=="object"&&typeof cK!="undefined"?cK.exports=t():e.createREGL=t()})(uK,function(){"use strict";var e=function(Me,bt){for(var Ot=Object.keys(bt),Lr=0;Lr1&&bt===Ot&&(bt==='"'||bt==="'"))return['"'+o(Me.substr(1,Me.length-2))+'"'];var Lr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Me);if(Lr)return s(Me.substr(0,Lr.index)).concat(s(Lr[1])).concat(s(Me.substr(Lr.index+Lr[0].length)));var Vr=Me.split(".");if(Vr.length===1)return['"'+o(Me)+'"'];for(var Or=[],Nr=0;Nr65535)<<4,Me>>>=bt,Ot=(Me>255)<<3,Me>>>=Ot,bt|=Ot,Ot=(Me>15)<<2,Me>>>=Ot,bt|=Ot,Ot=(Me>3)<<1,Me>>>=Ot,bt|=Ot,bt|Me>>1}function N(){var Me=S(8,function(){return[]});function bt(Or){var Nr=Z(Or),vi=Me[j(Nr)>>2];return vi.length>0?vi.pop():new ArrayBuffer(Nr)}function Ot(Or){Me[j(Or.byteLength)>>2].push(Or)}function Lr(Or,Nr){var vi=null;switch(Or){case g:vi=new Int8Array(bt(Nr),0,Nr);break;case P:vi=new Uint8Array(bt(Nr),0,Nr);break;case E:vi=new Int16Array(bt(2*Nr),0,Nr);break;case z:vi=new Uint16Array(bt(2*Nr),0,Nr);break;case q:vi=new Int32Array(bt(4*Nr),0,Nr);break;case V:vi=new Uint32Array(bt(4*Nr),0,Nr);break;case G:vi=new Float32Array(bt(4*Nr),0,Nr);break;default:return null}return vi.length!==Nr?vi.subarray(0,Nr):vi}function Vr(Or){Ot(Or.buffer)}return{alloc:bt,free:Ot,allocType:Lr,freeType:Vr}}var H=N();H.zero=N();var ie=3408,ae=3410,_e=3411,Ee=3412,Ce=3413,ge=3414,re=3415,Se=33901,ke=33902,be=3379,Be=3386,Le=34921,me=36347,Pe=36348,ce=35661,He=35660,lt=34930,mt=36349,Ht=34076,at=34024,ct=7936,ar=7937,Vt=7938,rr=35724,tt=34047,je=36063,Ue=34852,Ae=3553,rt=34067,St=34069,Tt=33984,dt=6408,Et=5126,pt=5121,jt=36160,or=36053,mr=36064,Ar=16384,ei=function(Me,bt){var Ot=1;bt.ext_texture_filter_anisotropic&&(Ot=Me.getParameter(tt));var Lr=1,Vr=1;bt.webgl_draw_buffers&&(Lr=Me.getParameter(Ue),Vr=Me.getParameter(je));var Or=!!bt.oes_texture_float;if(Or){var Nr=Me.createTexture();Me.bindTexture(Ae,Nr),Me.texImage2D(Ae,0,dt,1,1,0,dt,Et,null);var vi=Me.createFramebuffer();if(Me.bindFramebuffer(jt,vi),Me.framebufferTexture2D(jt,mr,Ae,Nr,0),Me.bindTexture(Ae,null),Me.checkFramebufferStatus(jt)!==or)Or=!1;else{Me.viewport(0,0,1,1),Me.clearColor(1,0,0,1),Me.clear(Ar);var Ni=H.allocType(Et,4);Me.readPixels(0,0,1,1,dt,Et,Ni),Me.getError()?Or=!1:(Me.deleteFramebuffer(vi),Me.deleteTexture(Nr),Or=Ni[0]===1),H.freeType(Ni)}}var qi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Si=!0;if(!qi){var Vn=Me.createTexture(),Qi=H.allocType(pt,36);Me.activeTexture(Tt),Me.bindTexture(rt,Vn),Me.texImage2D(St,0,dt,3,3,0,dt,pt,Qi),H.freeType(Qi),Me.bindTexture(rt,null),Me.deleteTexture(Vn),Si=!Me.getError()}return{colorBits:[Me.getParameter(ae),Me.getParameter(_e),Me.getParameter(Ee),Me.getParameter(Ce)],depthBits:Me.getParameter(ge),stencilBits:Me.getParameter(re),subpixelBits:Me.getParameter(ie),extensions:Object.keys(bt).filter(function(ji){return!!bt[ji]}),maxAnisotropic:Ot,maxDrawbuffers:Lr,maxColorAttachments:Vr,pointSizeDims:Me.getParameter(Se),lineWidthDims:Me.getParameter(ke),maxViewportDims:Me.getParameter(Be),maxCombinedTextureUnits:Me.getParameter(ce),maxCubeMapSize:Me.getParameter(Ht),maxRenderbufferSize:Me.getParameter(at),maxTextureUnits:Me.getParameter(lt),maxTextureSize:Me.getParameter(be),maxAttributes:Me.getParameter(Le),maxVertexUniforms:Me.getParameter(me),maxVertexTextureUnits:Me.getParameter(He),maxVaryingVectors:Me.getParameter(Pe),maxFragmentUniforms:Me.getParameter(mt),glsl:Me.getParameter(rr),renderer:Me.getParameter(ar),vendor:Me.getParameter(ct),version:Me.getParameter(Vt),readFloat:Or,npotTextureCube:Si}},qr=function(Me){return Me instanceof Uint8Array||Me instanceof Uint16Array||Me instanceof Uint32Array||Me instanceof Int8Array||Me instanceof Int16Array||Me instanceof Int32Array||Me instanceof Float32Array||Me instanceof Float64Array||Me instanceof Uint8ClampedArray};function jr(Me){return!!Me&&typeof Me=="object"&&Array.isArray(Me.shape)&&Array.isArray(Me.stride)&&typeof Me.offset=="number"&&Me.shape.length===Me.stride.length&&(Array.isArray(Me.data)||qr(Me.data))}var gt=function(Me){return Object.keys(Me).map(function(bt){return Me[bt]})},Ge={shape:Kt,flatten:At};function Je(Me,bt,Ot){for(var Lr=0;Lr0){var qn;if(Array.isArray(Zr[0])){Xi=Vi(Zr);for(var fi=1,si=1;si0){if(typeof fi[0]=="number"){var Ui=H.allocType(ui.dtype,fi.length);wr(Ui,fi),Xi(Ui,mn),H.freeType(Ui)}else if(Array.isArray(fi[0])||qr(fi[0])){Ji=Vi(fi);var Bi=Qn(fi,Ji,ui.dtype);Xi(Bi,mn),H.freeType(Bi)}}}else if(jr(fi)){Ji=fi.shape;var pn=fi.stride,Nn=0,aa=0,Ki=0,Cn=0;Ji.length===1?(Nn=Ji[0],aa=1,Ki=pn[0],Cn=0):Ji.length===2&&(Nn=Ji[0],aa=Ji[1],Ki=pn[0],Cn=pn[1]);var ia=Array.isArray(fi.data)?ui.dtype:ir(fi.data),sa=H.allocType(ia,Nn*aa);Xr(sa,fi.data,Nn,aa,Ki,Cn,fi.offset),Xi(sa,mn),H.freeType(sa)}return nn}return yi||nn(Tr),nn._reglType="buffer",nn._buffer=ui,nn.subdata=qn,Ot.profile&&(nn.stats=ui.stats),nn.destroy=function(){Qi(ui)},nn}function oi(){gt(Or).forEach(function(Tr){Tr.buffer=Me.createBuffer(),Me.bindBuffer(Tr.type,Tr.buffer),Me.bufferData(Tr.type,Tr.persistentData||Tr.byteLength,Tr.usage)})}return Ot.profile&&(bt.getTotalBufferSize=function(){var Tr=0;return Object.keys(Or).forEach(function(Zr){Tr+=Or[Zr].stats.size}),Tr}),{create:ji,createStream:Ni,destroyStream:qi,clear:function(){gt(Or).forEach(Qi),vi.forEach(Qi)},getBuffer:function(Tr){return Tr&&Tr._buffer instanceof Nr?Tr._buffer:null},restore:oi,_initBuffer:Vn}}var $r=0,Ri=0,Zi=1,en=1,fn=4,yn=4,Mn={points:$r,point:Ri,lines:Zi,line:en,triangles:fn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,ua=1,ma=4,Wa=5120,Fa=5121,Xo=5122,da=5123,jn=5124,Ha=5125,vo=34963,Gn=35040,Ct=35044;function Sr(Me,bt,Ot,Lr){var Vr={},Or=0,Nr={uint8:Fa,uint16:da};bt.oes_element_index_uint&&(Nr.uint32=Ha);function vi(oi){this.id=Or++,Vr[this.id]=this,this.buffer=oi,this.primType=ma,this.vertCount=0,this.type=0}vi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function qi(oi){var Tr=Ni.pop();return Tr||(Tr=new vi(Ot.create(null,vo,!0,!1)._buffer)),Vn(Tr,oi,Gn,-1,-1,0,0),Tr}function Si(oi){Ni.push(oi)}function Vn(oi,Tr,Zr,yi,Ii,ui,nn){oi.buffer.bind();var Xi;if(Tr){var qn=nn;!nn&&(!qr(Tr)||jr(Tr)&&!qr(Tr.data))&&(qn=bt.oes_element_index_uint?Ha:da),Ot._initBuffer(oi.buffer,Tr,Zr,qn,3)}else Me.bufferData(vo,ui,Zr),oi.buffer.dtype=Xi||Fa,oi.buffer.usage=Zr,oi.buffer.dimension=3,oi.buffer.byteLength=ui;if(Xi=nn,!nn){switch(oi.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Xo:Xi=da;break;case Ha:case jn:Xi=Ha;break;default:}oi.buffer.dtype=Xi}oi.type=Xi;var fi=Ii;fi<0&&(fi=oi.buffer.byteLength,Xi===da?fi>>=1:Xi===Ha&&(fi>>=2)),oi.vertCount=fi;var si=yi;if(yi<0){si=ma;var mn=oi.buffer.dimension;mn===1&&(si=Ba),mn===2&&(si=ua),mn===3&&(si=ma)}oi.primType=si}function Qi(oi){Lr.elementsCount--,delete Vr[oi.id],oi.buffer.destroy(),oi.buffer=null}function ji(oi,Tr){var Zr=Ot.create(null,vo,!0),yi=new vi(Zr._buffer);Lr.elementsCount++;function Ii(ui){if(!ui)Zr(),yi.primType=ma,yi.vertCount=0,yi.type=Fa;else if(typeof ui=="number")Zr(ui),yi.primType=ma,yi.vertCount=ui|0,yi.type=Fa;else{var nn=null,Xi=Ct,qn=-1,fi=-1,si=0,mn=0;Array.isArray(ui)||qr(ui)||jr(ui)?nn=ui:("data"in ui&&(nn=ui.data),"usage"in ui&&(Xi=Hn[ui.usage]),"primitive"in ui&&(qn=Mn[ui.primitive]),"count"in ui&&(fi=ui.count|0),"type"in ui&&(mn=Nr[ui.type]),"length"in ui?si=ui.length|0:(si=fi,mn===da||mn===Xo?si*=2:(mn===Ha||mn===jn)&&(si*=4))),Vn(yi,nn,Xi,qn,fi,si,mn)}return Ii}return Ii(oi),Ii._reglType="elements",Ii._elements=yi,Ii.subdata=function(ui,nn){return Zr.subdata(ui,nn),Ii},Ii.destroy=function(){Qi(yi)},Ii}return{create:ji,createStream:qi,destroyStream:Si,getElements:function(oi){return typeof oi=="function"&&oi._elements instanceof vi?oi._elements:null},clear:function(){gt(Vr).forEach(Qi)}}}var Jr=new Float32Array(1),hi=new Uint32Array(Jr.buffer),hn=5123;function Sn(Me){for(var bt=H.allocType(hn,Me.length),Ot=0;Ot>>31<<15,Or=(Lr<<1>>>24)-127,Nr=Lr>>13&1023;if(Or<-24)bt[Ot]=Vr;else if(Or<-14){var vi=-14-Or;bt[Ot]=Vr+(Nr+1024>>vi)}else Or>15?bt[Ot]=Vr+31744:bt[Ot]=Vr+(Or+15<<10)+Nr}return bt}function En(Me){return Array.isArray(Me)||qr(Me)}var ki=34467,_n=3553,ya=34067,ea=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,ko=32854,Ds=32855,Fs=36194,ll=32819,ul=32820,zl=33635,us=34042,il=6402,As=34041,cl=35904,Ks=35906,zs=36193,Io=33776,ls=33777,Yl=33778,Su=33779,nc=35986,bs=35987,Rn=34798,_a=35840,Vu=35841,ql=35842,xo=35843,Kl=36196,Ns=5121,Hl=5123,ac=5125,oa=5126,qo=10242,Oo=10243,Ol=10497,Pc=33071,Do=33648,nf=10240,Vf=10241,pl=9728,Zc=9729,Jl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,jh=4353,Lf=4354,cs=34046,af=3317,Gf=37440,$l=37441,fl=37443,lc=37444,Fu=33984,Es=[Jl,yu,qs,oc],Hs=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[il]=1,Go[As]=Go[Lo]=2,Go[No]=Go[cl]=3,Go[Ma]=Go[Ks]=4;function ps(Me){return"[object "+Me+"]"}var uc=ps("HTMLCanvasElement"),xl=ps("OffscreenCanvas"),Gu=ps("CanvasRenderingContext2D"),Os=ps("ImageBitmap"),od=ps("HTMLImageElement"),Po=ps("HTMLVideoElement"),sd=Object.keys(Qt).concat([uc,xl,Gu,Os,od,Po]),Ko=[];Ko[Ns]=1,Ko[oa]=4,Ko[zs]=2,Ko[Hl]=2,Ko[ac]=4;var Pa=[];Pa[ko]=2,Pa[Ds]=2,Pa[Fs]=2,Pa[As]=4,Pa[Io]=.5,Pa[ls]=.5,Pa[Yl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[bs]=1,Pa[Rn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[ql]=.5,Pa[xo]=.25,Pa[Kl]=.5;function of(Me){return Array.isArray(Me)&&(Me.length===0||typeof Me[0]=="number")}function Hu(Me){if(!Array.isArray(Me))return!1;var bt=Me.length;return!(bt===0||!En(Me[0]))}function bl(Me){return Object.prototype.toString.call(Me)}function Hf(Me){return bl(Me)===uc}function Ic(Me){return bl(Me)===xl}function yf(Me){return bl(Me)===Gu}function Bl(Me){return bl(Me)===Os}function Ah(Me){return bl(Me)===od}function Qf(Me){return bl(Me)===Po}function _f(Me){if(!Me)return!1;var bt=bl(Me);return sd.indexOf(bt)>=0?!0:of(Me)||Hu(Me)||jr(Me)}function Yc(Me){return Qt[Object.prototype.toString.call(Me)]|0}function eh(Me,bt){var Ot=bt.length;switch(Me.type){case Ns:case Hl:case ac:case oa:var Lr=H.allocType(Me.type,Ot);Lr.set(bt),Me.data=Lr;break;case zs:Me.data=Sn(bt);break;default:}}function th(Me,bt){return H.allocType(Me.type===zs?oa:Me.type,bt)}function ju(Me,bt){Me.type===zs?(Me.data=Sn(bt),H.freeType(bt)):Me.data=bt}function jf(Me,bt,Ot,Lr,Vr,Or){for(var Nr=Me.width,vi=Me.height,Ni=Me.channels,qi=Nr*vi*Ni,Si=th(Me,qi),Vn=0,Qi=0;Qi=1;)vi+=Nr*Ni*Ni,Ni/=2;return vi}else return Nr*Ot*Lr}function sf(Me,bt,Ot,Lr,Vr,Or,Nr){var vi={"don't care":sc,"dont care":sc,nice:Lf,fast:jh},Ni={repeat:Ol,clamp:Pc,mirror:Do},qi={nearest:pl,linear:Zc},Si=e({mipmap:oc,"nearest mipmap nearest":Jl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},qi),Vn={none:0,browser:lc},Qi={uint8:Ns,rgba4:ll,rgb565:zl,"rgb5 a1":ul},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:ko,"rgb5 a1":Ds,rgb565:Fs},oi={};bt.ext_srgb&&(ji.srgb=cl,ji.srgba=Ks),bt.oes_texture_float&&(Qi.float32=Qi.float=oa),bt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=zs),bt.webgl_depth_texture&&(e(ji,{depth:il,"depth stencil":As}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":us})),bt.webgl_compressed_texture_s3tc&&e(oi,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":ls,"rgba s3tc dxt3":Yl,"rgba s3tc dxt5":Su}),bt.webgl_compressed_texture_atc&&e(oi,{"rgb atc":nc,"rgba atc explicit alpha":bs,"rgba atc interpolated alpha":Rn}),bt.webgl_compressed_texture_pvrtc&&e(oi,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":ql,"rgba pvrtc 2bppv1":xo}),bt.webgl_compressed_texture_etc1&&(oi["rgb etc1"]=Kl);var Tr=Array.prototype.slice.call(Me.getParameter(ki));Object.keys(oi).forEach(function(ne){var we=oi[ne];Tr.indexOf(we)>=0&&(ji[ne]=we)});var Zr=Object.keys(ji);Ot.textureFormats=Zr;var yi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];yi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ui=[];Object.keys(qi).forEach(function(ne){var we=qi[ne];ui[we]=ne});var nn=[];Object.keys(Si).forEach(function(ne){var we=Si[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Zr.reduce(function(ne,we){var Oe=ji[we];return Oe===po||Oe===_o||Oe===po||Oe===Lo||Oe===il||Oe===As||bt.ext_srgb&&(Oe===cl||Oe===Ks)?ne[Oe]=Oe:Oe===Ds||we.indexOf("rgba")>=0?ne[Oe]=Ma:ne[Oe]=No,ne},{});function fi(){this.internalformat=Ma,this.format=Ma,this.type=Ns,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function si(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Vn[we.colorSpace]),"type"in we){var Oe=we.type;ne.type=Qi[Oe]}var ht=ne.width,Yt=ne.height,cr=ne.channels,Nt=!1;"shape"in we?(ht=we.shape[0],Yt=we.shape[1],we.shape.length===3&&(cr=we.shape[2],Nt=!0)):("radius"in we&&(ht=Yt=we.radius),"width"in we&&(ht=we.width),"height"in we&&(Yt=we.height),"channels"in we&&(cr=we.channels,Nt=!0)),ne.width=ht|0,ne.height=Yt|0,ne.channels=cr|0;var Ne=!1;if("format"in we){var $e=we.format,st=ne.internalformat=ji[$e];ne.format=qn[st],$e in Qi&&("type"in we||(ne.type=Qi[$e])),$e in oi&&(ne.compressed=!0),Ne=!0}!Nt&&Ne?ne.channels=Go[ne.format]:Nt&&!Ne&&ne.channels!==Hs[ne.format]&&(ne.format=ne.internalformat=Hs[ne.channels])}}function Ji(ne){Me.pixelStorei(Gf,ne.flipY),Me.pixelStorei($l,ne.premultiplyAlpha),Me.pixelStorei(fl,ne.colorSpace),Me.pixelStorei(af,ne.unpackAlignment)}function Ui(){fi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Oe=null;if(_f(we)?Oe=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),_f(we.data)&&(Oe=we.data)),we.copy){var ht=Vr.viewportWidth,Yt=Vr.viewportHeight;ne.width=ne.width||ht-ne.xOffset,ne.height=ne.height||Yt-ne.yOffset,ne.needsCopy=!0}else if(!Oe)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(qr(Oe))ne.channels=ne.channels||4,ne.data=Oe,!("type"in we)&&ne.type===Ns&&(ne.type=Yc(Oe));else if(of(Oe))ne.channels=ne.channels||4,eh(ne,Oe),ne.alignment=1,ne.needsFree=!0;else if(jr(Oe)){var cr=Oe.data;!Array.isArray(cr)&&ne.type===Ns&&(ne.type=Yc(cr));var Nt=Oe.shape,Ne=Oe.stride,$e,st,It,Bt,Ft,Ut;Nt.length===3?(It=Nt[2],Ut=Ne[2]):(It=1,Ut=1),$e=Nt[0],st=Nt[1],Bt=Ne[0],Ft=Ne[1],ne.alignment=1,ne.width=$e,ne.height=st,ne.channels=It,ne.format=ne.internalformat=Hs[It],ne.needsFree=!0,jf(ne,cr,Bt,Ft,Ut,Oe.offset)}else if(Hf(Oe)||Ic(Oe)||yf(Oe))Hf(Oe)||Ic(Oe)?ne.element=Oe:ne.element=Oe.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Bl(Oe))ne.element=Oe,ne.width=Oe.width,ne.height=Oe.height,ne.channels=4;else if(Ah(Oe))ne.element=Oe,ne.width=Oe.naturalWidth,ne.height=Oe.naturalHeight,ne.channels=4;else if(Qf(Oe))ne.element=Oe,ne.width=Oe.videoWidth,ne.height=Oe.videoHeight,ne.channels=4;else if(Hu(Oe)){var zt=ne.width||Oe[0].length,_t=ne.height||Oe.length,Dt=ne.channels;En(Oe[0][0])?Dt=Dt||Oe[0][0].length:Dt=Dt||1;for(var vt=Ge.shape(Oe),lr=1,_r=0;_r>=Yt,Oe.height>>=Yt,Bi(Oe,ht[Yt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ht=we.mag;ne.magFilter=qi[ht]}var Yt=ne.wrapS,cr=ne.wrapT;if("wrap"in we){var Nt=we.wrap;typeof Nt=="string"?Yt=cr=Ni[Nt]:Array.isArray(Nt)&&(Yt=Ni[Nt[0]],cr=Ni[Nt[1]])}else{if("wrapS"in we){var Ne=we.wrapS;Yt=Ni[Ne]}if("wrapT"in we){var $e=we.wrapT;cr=Ni[$e]}}if(ne.wrapS=Yt,ne.wrapT=cr,"anisotropic"in we){var st=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var It=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=vi[we.mipmap],ne.genMipmaps=!0,It=!0;break;case"boolean":It=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,It=!0;break;default:}It&&!("min"in we)&&(ne.minFilter=Jl)}}function al(ne,we){Me.texParameteri(we,Vf,ne.minFilter),Me.texParameteri(we,nf,ne.magFilter),Me.texParameteri(we,qo,ne.wrapS),Me.texParameteri(we,Oo,ne.wrapT),bt.ext_texture_filter_anisotropic&&Me.texParameteri(we,cs,ne.anisotropic),ne.genMipmaps&&(Me.hint(Cf,ne.mipmapHint),Me.generateMipmap(we))}var Vl=0,ss={},Vs=Ot.maxTextureUnits,Ys=Array(Vs).map(function(){return null});function wa(ne){fi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Vl++,this.refCount=1,this.target=ne,this.texture=Me.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Nr.profile&&(this.stats={size:0})}function ol(ne){Me.activeTexture(Fu),Me.bindTexture(ne.target,ne.texture)}function io(){var ne=Ys[0];ne?Me.bindTexture(ne.target,ne.texture):Me.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Oe=ne.unit,ht=ne.target;Oe>=0&&(Me.activeTexture(Fu+Oe),Me.bindTexture(ht,null),Ys[Oe]=null),Me.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ss[ne.id],Or.textureCount--}e(wa.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Oe=0;Oe0)continue;ht.unit=-1}Ys[Oe]=ne,we=Oe;break}we>=Vs,Nr.profile&&Or.maxTextureUnits>Ft)-It,Ut.height=Ut.height||(Oe.height>>Ft)-Bt,ol(Oe),Nn(Ut,_n,It,Bt,Ft),io(),Cn(Ut),ht}function cr(Nt,Ne){var $e=Nt|0,st=Ne|0||$e;if($e===Oe.width&&st===Oe.height)return ht;ht.width=Oe.width=$e,ht.height=Oe.height=st,ol(Oe);for(var It=0;Oe.mipmask>>It;++It){var Bt=$e>>It,Ft=st>>It;if(!Bt||!Ft)break;Me.texImage2D(_n,It,Oe.format,Bt,Ft,0,Oe.format,Oe.type,null)}return io(),Nr.profile&&(Oe.stats.size=cc(Oe.internalformat,Oe.type,$e,st,!1,!1)),ht}return ht(ne,we),ht.subimage=Yt,ht.resize=cr,ht._reglType="texture2d",ht._texture=Oe,Nr.profile&&(ht.stats=Oe.stats),ht.destroy=function(){Oe.decRef()},ht}function J(ne,we,Oe,ht,Yt,cr){var Nt=new wa(ya);ss[Nt.id]=Nt,Or.cubeCount++;var Ne=new Array(6);function $e(Bt,Ft,Ut,zt,_t,Dt){var vt,lr=Nt.texInfo;for(zo.call(lr),vt=0;vt<6;++vt)Ne[vt]=Ga();if(typeof Bt=="number"||!Bt){var _r=Bt|0||1;for(vt=0;vt<6;++vt)sa(Ne[vt],_r,_r)}else if(typeof Bt=="object")if(Ft)ba(Ne[0],Bt),ba(Ne[1],Ft),ba(Ne[2],Ut),ba(Ne[3],zt),ba(Ne[4],_t),ba(Ne[5],Dt);else if(Qs(lr,Bt),mn(Nt,Bt),"faces"in Bt){var Br=Bt.faces;for(vt=0;vt<6;++vt)si(Ne[vt],Nt),ba(Ne[vt],Br[vt])}else for(vt=0;vt<6;++vt)ba(Ne[vt],Bt);for(si(Nt,Ne[0]),lr.genMipmaps?Nt.mipmask=(Ne[0].width<<1)-1:Nt.mipmask=Ne[0].mipmask,Nt.internalformat=Ne[0].internalformat,$e.width=Ne[0].width,$e.height=Ne[0].height,ol(Nt),vt=0;vt<6;++vt)is(Ne[vt],ea+vt);for(al(lr,ya),io(),Nr.profile&&(Nt.stats.size=cc(Nt.internalformat,Nt.type,$e.width,$e.height,lr.genMipmaps,!0)),$e.format=yi[Nt.internalformat],$e.type=Ii[Nt.type],$e.mag=ui[lr.magFilter],$e.min=nn[lr.minFilter],$e.wrapS=Xi[lr.wrapS],$e.wrapT=Xi[lr.wrapT],vt=0;vt<6;++vt)Ml(Ne[vt]);return $e}function st(Bt,Ft,Ut,zt,_t){var Dt=Ut|0,vt=zt|0,lr=_t|0,_r=Ki();return si(_r,Nt),_r.width=0,_r.height=0,Bi(_r,Ft),_r.width=_r.width||(Nt.width>>lr)-Dt,_r.height=_r.height||(Nt.height>>lr)-vt,ol(Nt),Nn(_r,ea+Bt,Dt,vt,lr),io(),Cn(_r),$e}function It(Bt){var Ft=Bt|0;if(Ft!==Nt.width){$e.width=Nt.width=Ft,$e.height=Nt.height=Ft,ol(Nt);for(var Ut=0;Ut<6;++Ut)for(var zt=0;Nt.mipmask>>zt;++zt)Me.texImage2D(ea+Ut,zt,Nt.format,Ft>>zt,Ft>>zt,0,Nt.format,Nt.type,null);return io(),Nr.profile&&(Nt.stats.size=cc(Nt.internalformat,Nt.type,$e.width,$e.height,!1,!0)),$e}}return $e(ne,we,Oe,ht,Yt,cr),$e.subimage=st,$e.resize=It,$e._reglType="textureCube",$e._texture=Nt,Nr.profile&&($e.stats=Nt.stats),$e.destroy=function(){Nt.decRef()},$e}function O(){for(var ne=0;ne>ht,Oe.height>>ht,0,Oe.internalformat,Oe.type,null);else for(var Yt=0;Yt<6;++Yt)Me.texImage2D(ea+Yt,ht,Oe.internalformat,Oe.width>>ht,Oe.height>>ht,0,Oe.internalformat,Oe.type,null);al(Oe.texInfo,Oe.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ni.indexOf(zo)>=0&&(Ml=!1))),("depthTexture"in wa||"depthStencilTexture"in wa)&&(Ys=!!(wa.depthTexture||wa.depthStencilTexture)),"depth"in wa&&(typeof wa.depth=="boolean"?is=wa.depth:(Vl=wa.depth,Zs=!1)),"stencil"in wa&&(typeof wa.stencil=="boolean"?Zs=wa.stencil:(ss=wa.stencil,is=!1)),"depthStencil"in wa&&(typeof wa.depthStencil=="boolean"?is=Zs=wa.depthStencil:(Vs=wa.depthStencil,is=!1,Zs=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Ga))io=Ga.map(oi);else if(Ga)io=[oi(Ga)];else for(io=new Array(al),ia=0;ia0&&(Cn.depth=Bi[0].depth,Cn.stencil=Bi[0].stencil,Cn.depthStencil=Bi[0].depthStencil),Bi[Ki]?Bi[Ki](Cn):Bi[Ki]=si(Cn)}return e(pn,{width:ia,height:ia,color:zo})}function Nn(aa){var Ki,Cn=aa|0;if(Cn===pn.width)return pn;var ia=pn.color;for(Ki=0;Ki=ia.byteLength?sa.subdata(ia):(sa.destroy(),si.buffers[aa]=null)),si.buffers[aa]||(sa=si.buffers[aa]=Vr.create(Ki,If,!1,!0)),Cn.buffer=Vr.getBuffer(sa),Cn.size=Cn.buffer.dimension|0,Cn.normalized=!1,Cn.type=Cn.buffer.dtype,Cn.offset=0,Cn.stride=0,Cn.divisor=0,Cn.state=1,pn[aa]=1}else Vr.getBuffer(Ki)?(Cn.buffer=Vr.getBuffer(Ki),Cn.size=Cn.buffer.dimension|0,Cn.normalized=!1,Cn.type=Cn.buffer.dtype,Cn.offset=0,Cn.stride=0,Cn.divisor=0,Cn.state=1):Vr.getBuffer(Ki.buffer)?(Cn.buffer=Vr.getBuffer(Ki.buffer),Cn.size=(+Ki.size||Cn.buffer.dimension)|0,Cn.normalized=!!Ki.normalized||!1,"type"in Ki?Cn.type=un[Ki.type]:Cn.type=Cn.buffer.dtype,Cn.offset=(Ki.offset||0)|0,Cn.stride=(Ki.stride||0)|0,Cn.divisor=(Ki.divisor||0)|0,Cn.state=1):"x"in Ki&&(Cn.x=+Ki.x||0,Cn.y=+Ki.y||0,Cn.z=+Ki.z||0,Cn.w=+Ki.w||0,Cn.state=2)}for(var ba=0;ba1)for(var Ji=0;JiTr&&(Tr=Zr.stats.uniformsCount)}),Tr},Ot.getMaxAttributesCount=function(){var Tr=0;return Si.forEach(function(Zr){Zr.stats.attributesCount>Tr&&(Tr=Zr.stats.attributesCount)}),Tr});function oi(){Vr={},Or={};for(var Tr=0;Tr16&&(Ot=Yi(Ot,Me.length*8));for(var Lr=Array(16),Vr=Array(16),Or=0;Or<16;Or++)Lr[Or]=Ot[Or]^909522486,Vr[Or]=Ot[Or]^1549556828;var Nr=Yi(Lr.concat(Bc(bt)),512+bt.length*8);return kt(Yi(Vr.concat(Nr),768))}function vu(Me){for(var bt=ah?"0123456789ABCDEF":"0123456789abcdef",Ot="",Lr,Vr=0;Vr>>4&15)+bt.charAt(Lr&15);return Ot}function Oc(Me){for(var bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ot="",Lr=Me.length,Vr=0;VrMe.length*8?Ot+=Zu:Ot+=bt.charAt(Or>>>6*(3-Nr)&63);return Ot}function ff(Me,bt){var Ot=bt.length,Lr=Array(),Vr,Or,Nr,vi,Ni=Array(Math.ceil(Me.length/2));for(Vr=0;Vr0;){for(vi=Array(),Nr=0,Vr=0;Vr0||Or>0)&&(vi[vi.length]=Or);Lr[Lr.length]=Nr,Ni=vi}var qi="";for(Vr=Lr.length-1;Vr>=0;Vr--)qi+=bt.charAt(Lr[Vr]);var Si=Math.ceil(Me.length*8/(Math.log(bt.length)/Math.log(2)));for(Vr=qi.length;Vr>>6&31,128|Lr&63):Lr<=65535?bt+=String.fromCharCode(224|Lr>>>12&15,128|Lr>>>6&63,128|Lr&63):Lr<=2097151&&(bt+=String.fromCharCode(240|Lr>>>18&7,128|Lr>>>12&63,128|Lr>>>6&63,128|Lr&63));return bt}function Bc(Me){for(var bt=Array(Me.length>>2),Ot=0;Ot>5]|=(Me.charCodeAt(Ot/8)&255)<<24-Ot%32;return bt}function kt(Me){for(var bt="",Ot=0;Ot>5]>>>24-Ot%32&255);return bt}function Zt(Me,bt){return Me>>>bt|Me<<32-bt}function Er(Me,bt){return Me>>>bt}function xr(Me,bt,Ot){return Me&bt^~Me&Ot}function Kr(Me,bt,Ot){return Me&bt^Me&Ot^bt&Ot}function Mi(Me){return Zt(Me,2)^Zt(Me,13)^Zt(Me,22)}function Wi(Me){return Zt(Me,6)^Zt(Me,11)^Zt(Me,25)}function dn(Me){return Zt(Me,7)^Zt(Me,18)^Er(Me,3)}function wn(Me){return Zt(Me,17)^Zt(Me,19)^Er(Me,10)}var On=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Yi(Me,bt){var Ot=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Lr=new Array(64),Vr,Or,Nr,vi,Ni,qi,Si,Vn,Qi,ji,oi,Tr;for(Me[bt>>5]|=128<<24-bt%32,Me[(bt+64>>9<<4)+15]=bt,Qi=0;Qi>16)+(bt>>16)+(Ot>>16);return Lr<<16|Ot&65535}function an(Me){return Array.prototype.slice.call(Me)}function Fi(Me){return an(Me).join("")}function ta(Me){var bt=Me&&Me.cache,Ot=0,Lr=[],Vr=[],Or=[];function Nr(oi,Tr){var Zr=Tr&&Tr.stable;if(!Zr){for(var yi=0;yi0&&(oi.push(Ii,"="),oi.push.apply(oi,an(arguments)),oi.push(";")),Ii}return e(Tr,{def:yi,toString:function(){return Fi([Zr.length>0?"var "+Zr.join(",")+";":"",Fi(oi)])}})}function Ni(){var oi=vi(),Tr=vi(),Zr=oi.toString,yi=Tr.toString;function Ii(ui,nn){Tr(ui,nn,"=",oi.def(ui,nn),";")}return e(function(){oi.apply(oi,an(arguments))},{def:oi.def,entry:oi,exit:Tr,save:Ii,set:function(ui,nn,Xi){Ii(ui,nn),oi(ui,nn,"=",Xi,";")},toString:function(){return Zr()+yi()}})}function qi(){var oi=Fi(arguments),Tr=Ni(),Zr=Ni(),yi=Tr.toString,Ii=Zr.toString;return e(Tr,{then:function(){return Tr.apply(Tr,an(arguments)),this},else:function(){return Zr.apply(Zr,an(arguments)),this},toString:function(){var ui=Ii();return ui&&(ui="else{"+ui+"}"),Fi(["if(",oi,"){",yi(),"}",ui])}})}var Si=vi(),Vn={};function Qi(oi,Tr){var Zr=[];function yi(){var qn="a"+Zr.length;return Zr.push(qn),qn}Tr=Tr||0;for(var Ii=0;Ii[p.viewport.x,p.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,p)=>p.offset*4,divisor:1},position:{buffer:i,offset:(b,p)=>p.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,p)=>p.offset*8,divisor:1},error:{buffer:s,offset:(b,p)=>p.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:IOe.length}),LOe(f,{update:v,draw:h,destroy:m,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&m(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),c.forEach((p,k)=>{if(p){if(b&&(b[k]?p.draw=!0:p.draw=!1),!p.draw){p.draw=!0;return}d(k)}})}function d(b){typeof b=="number"&&(b=c[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function v(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let p=0,k=0;if(f.groups=c=b.map((L,x)=>{let C=c[x];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return C;return L=gUt(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),C||(c[x]=C={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=LOe({},u,L)),pUt(C,L,[{lineWidth:S=>+S*.5,capSize:S=>+S*.5,opacity:parseFloat,errors:S=>(S=POe(S),k+=S.length,S),positions:(S,g)=>(S=POe(S,"float64"),g.count=Math.floor(S.length/2),g.bounds=dUt(S,2),g.offset=p,p+=g.count,S)},{color:(S,g)=>{let P=g.count;if(S||(S="transparent"),!Array.isArray(S)||typeof S[0]=="number"){let z=S;S=Array(P);for(let q=0;q{let E=g.bounds;return S||(S=E),g.scale=[1/(S[2]-S[0]),1/(S[3]-S[1])],g.translate=[-S[0],-S[1]],g.scaleFract=tK(g.scale),g.translateFract=tK(g.translate),S},viewport:S=>{let g;return Array.isArray(S)?g={x:S[0],y:S[1],width:S[2]-S[0],height:S[3]-S[1]}:S?(g={x:S.x||S.left||0,y:S.y||S.top||0},S.right?g.width=S.right-g.x:g.width=S.w||S.width||0,S.bottom?g.height=S.bottom-g.y:g.height=S.h||S.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),C}),p||k){let L=c.reduce((g,P,E)=>g+(P?P.count:0),0),x=new Float64Array(L*2),C=new Uint8Array(L*4),S=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:E,count:z,offset:q,color:V,errors:G}=g;z&&(C.set(V,q*4),S.set(G,q*4),x.set(E,q*2))});var M=mUt(x);i(M);var T=tK(x,M);a(T),o(C),s(S)}}function m(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var qOe=ye((L_r,zOe)=>{var FOe=/[\'\"]/;zOe.exports=function(t){return t?(FOe.test(t.charAt(0))&&(t=t.substr(1)),FOe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var rK=ye((P_r,_Ut)=>{_Ut.exports=["inherit","initial","unset"]});var iK=ye((I_r,xUt)=>{xUt.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var nK=ye((R_r,bUt)=>{bUt.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var aK=ye((D_r,wUt)=>{wUt.exports=["normal","italic","oblique"]});var oK=ye((F_r,TUt)=>{TUt.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var UOe=ye((z_r,NOe)=>{"use strict";function OOe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,d,v){var m=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(m),i+m+i}r.forEach(function(h,d){for(var v,m=0;h!=v;)if(v=h,h=h.replace(u,f),m++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(l,u,c){for(var f=[],h,d=0;h=o.exec(l);){if(d++>1e4)throw Error("Circular references in parenthesis");f.push(l.slice(0,h.index)),f.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return f.push(l),f}return a?r:s(r[0],r)}function BOe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function l(u,c){return Array.isArray(c)&&(c=c.reduce(l,"")),u+c},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function sK(e,t){return Array.isArray(e)?BOe(e,t):OOe(e,t)}sK.parse=OOe;sK.stringify=BOe;NOe.exports=sK});var HOe=ye((q_r,GOe)=>{"use strict";var VOe=UOe();GOe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var i=VOe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{AUt.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var lK=ye((B_r,WOe)=>{"use strict";var SUt=jOe();WOe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||SUt.indexOf(t)!==-1}}});var KOe=ye((N_r,YOe)=>{"use strict";var MUt=qOe(),EUt=rK(),kUt=iK(),CUt=nK(),LUt=aK(),PUt=oK(),uK=HOe(),IUt=lK().isSize;YOe.exports=ZOe;var Dk=ZOe.cache={};function ZOe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Dk[e])return Dk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(kUt.indexOf(e)!==-1)return Dk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=uK(e,/\s+/),n;n=r.shift();){if(EUt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Dk[e]=t;if(LUt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(PUt.indexOf(n)!==-1){t.stretch=n;continue}if(CUt.indexOf(n)!==-1){t.weight=n;continue}if(IUt(n)){var i=uK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=XOe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=XOe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=uK(r.join(" "),/\s*,\s*/).map(MUt),Dk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function XOe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var fK=ye((U_r,JOe)=>{"use strict";var RUt=ry(),DUt=lK().isSize,FUt=zk(rK()),zUt=zk(iK()),qUt=zk(nK()),OUt=zk(aK()),BUt=zk(oK()),NUt={normal:1,"small-caps":1},UUt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},cK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};JOe.exports=function(t){if(t=RUt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&Fk(t.system,zUt),t.system;if(Fk(t.style,OUt),Fk(t.variant,NUt),Fk(t.weight,qUt),Fk(t.stretch,BUt),t.size==null&&(t.size=cK.size),typeof t.size=="number"&&(t.size+="px"),!DUt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=cK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[cK.family]),t.family=t.family.map(function(n){return UUt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function Fk(e,t){if(e&&!t[e]&&!FUt[e])throw Error("Unknown keyword `"+e+"`");return e}function zk(e){for(var t={},r=0;r{"use strict";$Oe.exports={parse:KOe(),stringify:fK()}});var eBe=ye((hK,dK)=>{(function(e,t){typeof hK=="object"&&typeof dK!="undefined"?dK.exports=t():e.createREGL=t()})(hK,(function(){"use strict";var e=function(Me,bt){for(var Ot=Object.keys(bt),Lr=0;Lr1&&bt===Ot&&(bt==='"'||bt==="'"))return['"'+o(Me.substr(1,Me.length-2))+'"'];var Lr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Me);if(Lr)return s(Me.substr(0,Lr.index)).concat(s(Lr[1])).concat(s(Me.substr(Lr.index+Lr[0].length)));var Vr=Me.split(".");if(Vr.length===1)return['"'+o(Me)+'"'];for(var Or=[],Nr=0;Nr65535)<<4,Me>>>=bt,Ot=(Me>255)<<3,Me>>>=Ot,bt|=Ot,Ot=(Me>15)<<2,Me>>>=Ot,bt|=Ot,Ot=(Me>3)<<1,Me>>>=Ot,bt|=Ot,bt|Me>>1}function N(){var Me=S(8,function(){return[]});function bt(Or){var Nr=Z(Or),vi=Me[j(Nr)>>2];return vi.length>0?vi.pop():new ArrayBuffer(Nr)}function Ot(Or){Me[j(Or.byteLength)>>2].push(Or)}function Lr(Or,Nr){var vi=null;switch(Or){case g:vi=new Int8Array(bt(Nr),0,Nr);break;case P:vi=new Uint8Array(bt(Nr),0,Nr);break;case E:vi=new Int16Array(bt(2*Nr),0,Nr);break;case z:vi=new Uint16Array(bt(2*Nr),0,Nr);break;case q:vi=new Int32Array(bt(4*Nr),0,Nr);break;case V:vi=new Uint32Array(bt(4*Nr),0,Nr);break;case G:vi=new Float32Array(bt(4*Nr),0,Nr);break;default:return null}return vi.length!==Nr?vi.subarray(0,Nr):vi}function Vr(Or){Ot(Or.buffer)}return{alloc:bt,free:Ot,allocType:Lr,freeType:Vr}}var H=N();H.zero=N();var re=3408,ae=3410,_e=3411,Ee=3412,Ce=3413,ge=3414,ie=3415,Se=33901,ke=33902,be=3379,Be=3386,Le=34921,me=36347,Pe=36348,ce=35661,He=35660,lt=34930,mt=36349,Ht=34076,at=34024,ct=7936,ar=7937,Vt=7938,rr=35724,tt=34047,je=36063,Ue=34852,Ae=3553,rt=34067,St=34069,Tt=33984,dt=6408,Et=5126,pt=5121,jt=36160,or=36053,mr=36064,Ar=16384,ei=function(Me,bt){var Ot=1;bt.ext_texture_filter_anisotropic&&(Ot=Me.getParameter(tt));var Lr=1,Vr=1;bt.webgl_draw_buffers&&(Lr=Me.getParameter(Ue),Vr=Me.getParameter(je));var Or=!!bt.oes_texture_float;if(Or){var Nr=Me.createTexture();Me.bindTexture(Ae,Nr),Me.texImage2D(Ae,0,dt,1,1,0,dt,Et,null);var vi=Me.createFramebuffer();if(Me.bindFramebuffer(jt,vi),Me.framebufferTexture2D(jt,mr,Ae,Nr,0),Me.bindTexture(Ae,null),Me.checkFramebufferStatus(jt)!==or)Or=!1;else{Me.viewport(0,0,1,1),Me.clearColor(1,0,0,1),Me.clear(Ar);var Ni=H.allocType(Et,4);Me.readPixels(0,0,1,1,dt,Et,Ni),Me.getError()?Or=!1:(Me.deleteFramebuffer(vi),Me.deleteTexture(Nr),Or=Ni[0]===1),H.freeType(Ni)}}var qi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Si=!0;if(!qi){var Vn=Me.createTexture(),Qi=H.allocType(pt,36);Me.activeTexture(Tt),Me.bindTexture(rt,Vn),Me.texImage2D(St,0,dt,3,3,0,dt,pt,Qi),H.freeType(Qi),Me.bindTexture(rt,null),Me.deleteTexture(Vn),Si=!Me.getError()}return{colorBits:[Me.getParameter(ae),Me.getParameter(_e),Me.getParameter(Ee),Me.getParameter(Ce)],depthBits:Me.getParameter(ge),stencilBits:Me.getParameter(ie),subpixelBits:Me.getParameter(re),extensions:Object.keys(bt).filter(function(Wi){return!!bt[Wi]}),maxAnisotropic:Ot,maxDrawbuffers:Lr,maxColorAttachments:Vr,pointSizeDims:Me.getParameter(Se),lineWidthDims:Me.getParameter(ke),maxViewportDims:Me.getParameter(Be),maxCombinedTextureUnits:Me.getParameter(ce),maxCubeMapSize:Me.getParameter(Ht),maxRenderbufferSize:Me.getParameter(at),maxTextureUnits:Me.getParameter(lt),maxTextureSize:Me.getParameter(be),maxAttributes:Me.getParameter(Le),maxVertexUniforms:Me.getParameter(me),maxVertexTextureUnits:Me.getParameter(He),maxVaryingVectors:Me.getParameter(Pe),maxFragmentUniforms:Me.getParameter(mt),glsl:Me.getParameter(rr),renderer:Me.getParameter(ar),vendor:Me.getParameter(ct),version:Me.getParameter(Vt),readFloat:Or,npotTextureCube:Si}},qr=function(Me){return Me instanceof Uint8Array||Me instanceof Uint16Array||Me instanceof Uint32Array||Me instanceof Int8Array||Me instanceof Int16Array||Me instanceof Int32Array||Me instanceof Float32Array||Me instanceof Float64Array||Me instanceof Uint8ClampedArray};function jr(Me){return!!Me&&typeof Me=="object"&&Array.isArray(Me.shape)&&Array.isArray(Me.stride)&&typeof Me.offset=="number"&&Me.shape.length===Me.stride.length&&(Array.isArray(Me.data)||qr(Me.data))}var gt=function(Me){return Object.keys(Me).map(function(bt){return Me[bt]})},Ge={shape:Kt,flatten:At};function Je(Me,bt,Ot){for(var Lr=0;Lr0){var qn;if(Array.isArray(Zr[0])){Zi=Vi(Zr);for(var fi=1,si=1;si0){if(typeof fi[0]=="number"){var Ui=H.allocType(ui.dtype,fi.length);wr(Ui,fi),Zi(Ui,mn),H.freeType(Ui)}else if(Array.isArray(fi[0])||qr(fi[0])){Ji=Vi(fi);var Bi=Qn(fi,Ji,ui.dtype);Zi(Bi,mn),H.freeType(Bi)}}}else if(jr(fi)){Ji=fi.shape;var pn=fi.stride,Nn=0,aa=0,Ki=0,Cn=0;Ji.length===1?(Nn=Ji[0],aa=1,Ki=pn[0],Cn=0):Ji.length===2&&(Nn=Ji[0],aa=Ji[1],Ki=pn[0],Cn=pn[1]);var ia=Array.isArray(fi.data)?ui.dtype:ir(fi.data),sa=H.allocType(ia,Nn*aa);Xr(sa,fi.data,Nn,aa,Ki,Cn,fi.offset),Zi(sa,mn),H.freeType(sa)}return nn}return yi||nn(Tr),nn._reglType="buffer",nn._buffer=ui,nn.subdata=qn,Ot.profile&&(nn.stats=ui.stats),nn.destroy=function(){Qi(ui)},nn}function oi(){gt(Or).forEach(function(Tr){Tr.buffer=Me.createBuffer(),Me.bindBuffer(Tr.type,Tr.buffer),Me.bufferData(Tr.type,Tr.persistentData||Tr.byteLength,Tr.usage)})}return Ot.profile&&(bt.getTotalBufferSize=function(){var Tr=0;return Object.keys(Or).forEach(function(Zr){Tr+=Or[Zr].stats.size}),Tr}),{create:Wi,createStream:Ni,destroyStream:qi,clear:function(){gt(Or).forEach(Qi),vi.forEach(Qi)},getBuffer:function(Tr){return Tr&&Tr._buffer instanceof Nr?Tr._buffer:null},restore:oi,_initBuffer:Vn}}var $r=0,Ri=0,Hi=1,en=1,fn=4,yn=4,Mn={points:$r,point:Ri,lines:Hi,line:en,triangles:fn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,ua=1,ma=4,Wa=5120,za=5121,Xo=5122,da=5123,jn=5124,Ha=5125,vo=34963,Gn=35040,Ct=35044;function Sr(Me,bt,Ot,Lr){var Vr={},Or=0,Nr={uint8:za,uint16:da};bt.oes_element_index_uint&&(Nr.uint32=Ha);function vi(oi){this.id=Or++,Vr[this.id]=this,this.buffer=oi,this.primType=ma,this.vertCount=0,this.type=0}vi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function qi(oi){var Tr=Ni.pop();return Tr||(Tr=new vi(Ot.create(null,vo,!0,!1)._buffer)),Vn(Tr,oi,Gn,-1,-1,0,0),Tr}function Si(oi){Ni.push(oi)}function Vn(oi,Tr,Zr,yi,Ii,ui,nn){oi.buffer.bind();var Zi;if(Tr){var qn=nn;!nn&&(!qr(Tr)||jr(Tr)&&!qr(Tr.data))&&(qn=bt.oes_element_index_uint?Ha:da),Ot._initBuffer(oi.buffer,Tr,Zr,qn,3)}else Me.bufferData(vo,ui,Zr),oi.buffer.dtype=Zi||za,oi.buffer.usage=Zr,oi.buffer.dimension=3,oi.buffer.byteLength=ui;if(Zi=nn,!nn){switch(oi.buffer.dtype){case za:case Wa:Zi=za;break;case da:case Xo:Zi=da;break;case Ha:case jn:Zi=Ha;break;default:}oi.buffer.dtype=Zi}oi.type=Zi;var fi=Ii;fi<0&&(fi=oi.buffer.byteLength,Zi===da?fi>>=1:Zi===Ha&&(fi>>=2)),oi.vertCount=fi;var si=yi;if(yi<0){si=ma;var mn=oi.buffer.dimension;mn===1&&(si=Ba),mn===2&&(si=ua),mn===3&&(si=ma)}oi.primType=si}function Qi(oi){Lr.elementsCount--,delete Vr[oi.id],oi.buffer.destroy(),oi.buffer=null}function Wi(oi,Tr){var Zr=Ot.create(null,vo,!0),yi=new vi(Zr._buffer);Lr.elementsCount++;function Ii(ui){if(!ui)Zr(),yi.primType=ma,yi.vertCount=0,yi.type=za;else if(typeof ui=="number")Zr(ui),yi.primType=ma,yi.vertCount=ui|0,yi.type=za;else{var nn=null,Zi=Ct,qn=-1,fi=-1,si=0,mn=0;Array.isArray(ui)||qr(ui)||jr(ui)?nn=ui:("data"in ui&&(nn=ui.data),"usage"in ui&&(Zi=Hn[ui.usage]),"primitive"in ui&&(qn=Mn[ui.primitive]),"count"in ui&&(fi=ui.count|0),"type"in ui&&(mn=Nr[ui.type]),"length"in ui?si=ui.length|0:(si=fi,mn===da||mn===Xo?si*=2:(mn===Ha||mn===jn)&&(si*=4))),Vn(yi,nn,Zi,qn,fi,si,mn)}return Ii}return Ii(oi),Ii._reglType="elements",Ii._elements=yi,Ii.subdata=function(ui,nn){return Zr.subdata(ui,nn),Ii},Ii.destroy=function(){Qi(yi)},Ii}return{create:Wi,createStream:qi,destroyStream:Si,getElements:function(oi){return typeof oi=="function"&&oi._elements instanceof vi?oi._elements:null},clear:function(){gt(Vr).forEach(Qi)}}}var Jr=new Float32Array(1),hi=new Uint32Array(Jr.buffer),hn=5123;function Sn(Me){for(var bt=H.allocType(hn,Me.length),Ot=0;Ot>>31<<15,Or=(Lr<<1>>>24)-127,Nr=Lr>>13&1023;if(Or<-24)bt[Ot]=Vr;else if(Or<-14){var vi=-14-Or;bt[Ot]=Vr+(Nr+1024>>vi)}else Or>15?bt[Ot]=Vr+31744:bt[Ot]=Vr+(Or+15<<10)+Nr}return bt}function En(Me){return Array.isArray(Me)||qr(Me)}var ki=34467,_n=3553,ya=34067,ea=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,ko=32854,Ds=32855,Fs=36194,ll=32819,ul=32820,Fl=33635,us=34042,rl=6402,As=34041,cl=35904,Ks=35906,zs=36193,Io=33776,ls=33777,Yl=33778,Su=33779,nc=35986,bs=35987,Rn=34798,_a=35840,Vu=35841,zl=35842,xo=35843,Kl=36196,Ns=5121,Hl=5123,ac=5125,oa=5126,qo=10242,Oo=10243,ql=10497,Pc=33071,Do=33648,nf=10240,Vf=10241,pl=9728,Zc=9729,Jl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,jh=4353,Lf=4354,cs=34046,af=3317,Gf=37440,$l=37441,fl=37443,lc=37444,Fu=33984,Es=[Jl,yu,qs,oc],Hs=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[rl]=1,Go[As]=Go[Lo]=2,Go[No]=Go[cl]=3,Go[Ma]=Go[Ks]=4;function ps(Me){return"[object "+Me+"]"}var uc=ps("HTMLCanvasElement"),bl=ps("OffscreenCanvas"),Gu=ps("CanvasRenderingContext2D"),Os=ps("ImageBitmap"),od=ps("HTMLImageElement"),Po=ps("HTMLVideoElement"),sd=Object.keys(Qt).concat([uc,bl,Gu,Os,od,Po]),Ko=[];Ko[Ns]=1,Ko[oa]=4,Ko[zs]=2,Ko[Hl]=2,Ko[ac]=4;var Pa=[];Pa[ko]=2,Pa[Ds]=2,Pa[Fs]=2,Pa[As]=4,Pa[Io]=.5,Pa[ls]=.5,Pa[Yl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[bs]=1,Pa[Rn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[zl]=.5,Pa[xo]=.25,Pa[Kl]=.5;function of(Me){return Array.isArray(Me)&&(Me.length===0||typeof Me[0]=="number")}function Hu(Me){if(!Array.isArray(Me))return!1;var bt=Me.length;return!(bt===0||!En(Me[0]))}function wl(Me){return Object.prototype.toString.call(Me)}function Hf(Me){return wl(Me)===uc}function Ic(Me){return wl(Me)===bl}function yf(Me){return wl(Me)===Gu}function Ol(Me){return wl(Me)===Os}function Ah(Me){return wl(Me)===od}function Qf(Me){return wl(Me)===Po}function _f(Me){if(!Me)return!1;var bt=wl(Me);return sd.indexOf(bt)>=0?!0:of(Me)||Hu(Me)||jr(Me)}function Yc(Me){return Qt[Object.prototype.toString.call(Me)]|0}function eh(Me,bt){var Ot=bt.length;switch(Me.type){case Ns:case Hl:case ac:case oa:var Lr=H.allocType(Me.type,Ot);Lr.set(bt),Me.data=Lr;break;case zs:Me.data=Sn(bt);break;default:}}function th(Me,bt){return H.allocType(Me.type===zs?oa:Me.type,bt)}function ju(Me,bt){Me.type===zs?(Me.data=Sn(bt),H.freeType(bt)):Me.data=bt}function jf(Me,bt,Ot,Lr,Vr,Or){for(var Nr=Me.width,vi=Me.height,Ni=Me.channels,qi=Nr*vi*Ni,Si=th(Me,qi),Vn=0,Qi=0;Qi=1;)vi+=Nr*Ni*Ni,Ni/=2;return vi}else return Nr*Ot*Lr}function sf(Me,bt,Ot,Lr,Vr,Or,Nr){var vi={"don't care":sc,"dont care":sc,nice:Lf,fast:jh},Ni={repeat:ql,clamp:Pc,mirror:Do},qi={nearest:pl,linear:Zc},Si=e({mipmap:oc,"nearest mipmap nearest":Jl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},qi),Vn={none:0,browser:lc},Qi={uint8:Ns,rgba4:ll,rgb565:Fl,"rgb5 a1":ul},Wi={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:ko,"rgb5 a1":Ds,rgb565:Fs},oi={};bt.ext_srgb&&(Wi.srgb=cl,Wi.srgba=Ks),bt.oes_texture_float&&(Qi.float32=Qi.float=oa),bt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=zs),bt.webgl_depth_texture&&(e(Wi,{depth:rl,"depth stencil":As}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":us})),bt.webgl_compressed_texture_s3tc&&e(oi,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":ls,"rgba s3tc dxt3":Yl,"rgba s3tc dxt5":Su}),bt.webgl_compressed_texture_atc&&e(oi,{"rgb atc":nc,"rgba atc explicit alpha":bs,"rgba atc interpolated alpha":Rn}),bt.webgl_compressed_texture_pvrtc&&e(oi,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":zl,"rgba pvrtc 2bppv1":xo}),bt.webgl_compressed_texture_etc1&&(oi["rgb etc1"]=Kl);var Tr=Array.prototype.slice.call(Me.getParameter(ki));Object.keys(oi).forEach(function(ne){var we=oi[ne];Tr.indexOf(we)>=0&&(Wi[ne]=we)});var Zr=Object.keys(Wi);Ot.textureFormats=Zr;var yi=[];Object.keys(Wi).forEach(function(ne){var we=Wi[ne];yi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ui=[];Object.keys(qi).forEach(function(ne){var we=qi[ne];ui[we]=ne});var nn=[];Object.keys(Si).forEach(function(ne){var we=Si[ne];nn[we]=ne});var Zi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Zi[we]=ne});var qn=Zr.reduce(function(ne,we){var Oe=Wi[we];return Oe===po||Oe===_o||Oe===po||Oe===Lo||Oe===rl||Oe===As||bt.ext_srgb&&(Oe===cl||Oe===Ks)?ne[Oe]=Oe:Oe===Ds||we.indexOf("rgba")>=0?ne[Oe]=Ma:ne[Oe]=No,ne},{});function fi(){this.internalformat=Ma,this.format=Ma,this.type=Ns,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function si(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Vn[we.colorSpace]),"type"in we){var Oe=we.type;ne.type=Qi[Oe]}var ht=ne.width,Yt=ne.height,cr=ne.channels,Nt=!1;"shape"in we?(ht=we.shape[0],Yt=we.shape[1],we.shape.length===3&&(cr=we.shape[2],Nt=!0)):("radius"in we&&(ht=Yt=we.radius),"width"in we&&(ht=we.width),"height"in we&&(Yt=we.height),"channels"in we&&(cr=we.channels,Nt=!0)),ne.width=ht|0,ne.height=Yt|0,ne.channels=cr|0;var Ne=!1;if("format"in we){var $e=we.format,st=ne.internalformat=Wi[$e];ne.format=qn[st],$e in Qi&&("type"in we||(ne.type=Qi[$e])),$e in oi&&(ne.compressed=!0),Ne=!0}!Nt&&Ne?ne.channels=Go[ne.format]:Nt&&!Ne&&ne.channels!==Hs[ne.format]&&(ne.format=ne.internalformat=Hs[ne.channels])}}function Ji(ne){Me.pixelStorei(Gf,ne.flipY),Me.pixelStorei($l,ne.premultiplyAlpha),Me.pixelStorei(fl,ne.colorSpace),Me.pixelStorei(af,ne.unpackAlignment)}function Ui(){fi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Oe=null;if(_f(we)?Oe=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),_f(we.data)&&(Oe=we.data)),we.copy){var ht=Vr.viewportWidth,Yt=Vr.viewportHeight;ne.width=ne.width||ht-ne.xOffset,ne.height=ne.height||Yt-ne.yOffset,ne.needsCopy=!0}else if(!Oe)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(qr(Oe))ne.channels=ne.channels||4,ne.data=Oe,!("type"in we)&&ne.type===Ns&&(ne.type=Yc(Oe));else if(of(Oe))ne.channels=ne.channels||4,eh(ne,Oe),ne.alignment=1,ne.needsFree=!0;else if(jr(Oe)){var cr=Oe.data;!Array.isArray(cr)&&ne.type===Ns&&(ne.type=Yc(cr));var Nt=Oe.shape,Ne=Oe.stride,$e,st,It,Bt,Ft,Ut;Nt.length===3?(It=Nt[2],Ut=Ne[2]):(It=1,Ut=1),$e=Nt[0],st=Nt[1],Bt=Ne[0],Ft=Ne[1],ne.alignment=1,ne.width=$e,ne.height=st,ne.channels=It,ne.format=ne.internalformat=Hs[It],ne.needsFree=!0,jf(ne,cr,Bt,Ft,Ut,Oe.offset)}else if(Hf(Oe)||Ic(Oe)||yf(Oe))Hf(Oe)||Ic(Oe)?ne.element=Oe:ne.element=Oe.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Ol(Oe))ne.element=Oe,ne.width=Oe.width,ne.height=Oe.height,ne.channels=4;else if(Ah(Oe))ne.element=Oe,ne.width=Oe.naturalWidth,ne.height=Oe.naturalHeight,ne.channels=4;else if(Qf(Oe))ne.element=Oe,ne.width=Oe.videoWidth,ne.height=Oe.videoHeight,ne.channels=4;else if(Hu(Oe)){var zt=ne.width||Oe[0].length,_t=ne.height||Oe.length,Dt=ne.channels;En(Oe[0][0])?Dt=Dt||Oe[0][0].length:Dt=Dt||1;for(var vt=Ge.shape(Oe),lr=1,_r=0;_r>=Yt,Oe.height>>=Yt,Bi(Oe,ht[Yt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ht=we.mag;ne.magFilter=qi[ht]}var Yt=ne.wrapS,cr=ne.wrapT;if("wrap"in we){var Nt=we.wrap;typeof Nt=="string"?Yt=cr=Ni[Nt]:Array.isArray(Nt)&&(Yt=Ni[Nt[0]],cr=Ni[Nt[1]])}else{if("wrapS"in we){var Ne=we.wrapS;Yt=Ni[Ne]}if("wrapT"in we){var $e=we.wrapT;cr=Ni[$e]}}if(ne.wrapS=Yt,ne.wrapT=cr,"anisotropic"in we){var st=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var It=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=vi[we.mipmap],ne.genMipmaps=!0,It=!0;break;case"boolean":It=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,It=!0;break;default:}It&&!("min"in we)&&(ne.minFilter=Jl)}}function nl(ne,we){Me.texParameteri(we,Vf,ne.minFilter),Me.texParameteri(we,nf,ne.magFilter),Me.texParameteri(we,qo,ne.wrapS),Me.texParameteri(we,Oo,ne.wrapT),bt.ext_texture_filter_anisotropic&&Me.texParameteri(we,cs,ne.anisotropic),ne.genMipmaps&&(Me.hint(Cf,ne.mipmapHint),Me.generateMipmap(we))}var Ul=0,ss={},Vs=Ot.maxTextureUnits,Ys=Array(Vs).map(function(){return null});function wa(ne){fi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Ul++,this.refCount=1,this.target=ne,this.texture=Me.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Nr.profile&&(this.stats={size:0})}function al(ne){Me.activeTexture(Fu),Me.bindTexture(ne.target,ne.texture)}function io(){var ne=Ys[0];ne?Me.bindTexture(ne.target,ne.texture):Me.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Oe=ne.unit,ht=ne.target;Oe>=0&&(Me.activeTexture(Fu+Oe),Me.bindTexture(ht,null),Ys[Oe]=null),Me.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ss[ne.id],Or.textureCount--}e(wa.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Oe=0;Oe0)continue;ht.unit=-1}Ys[Oe]=ne,we=Oe;break}we>=Vs,Nr.profile&&Or.maxTextureUnits>Ft)-It,Ut.height=Ut.height||(Oe.height>>Ft)-Bt,al(Oe),Nn(Ut,_n,It,Bt,Ft),io(),Cn(Ut),ht}function cr(Nt,Ne){var $e=Nt|0,st=Ne|0||$e;if($e===Oe.width&&st===Oe.height)return ht;ht.width=Oe.width=$e,ht.height=Oe.height=st,al(Oe);for(var It=0;Oe.mipmask>>It;++It){var Bt=$e>>It,Ft=st>>It;if(!Bt||!Ft)break;Me.texImage2D(_n,It,Oe.format,Bt,Ft,0,Oe.format,Oe.type,null)}return io(),Nr.profile&&(Oe.stats.size=cc(Oe.internalformat,Oe.type,$e,st,!1,!1)),ht}return ht(ne,we),ht.subimage=Yt,ht.resize=cr,ht._reglType="texture2d",ht._texture=Oe,Nr.profile&&(ht.stats=Oe.stats),ht.destroy=function(){Oe.decRef()},ht}function J(ne,we,Oe,ht,Yt,cr){var Nt=new wa(ya);ss[Nt.id]=Nt,Or.cubeCount++;var Ne=new Array(6);function $e(Bt,Ft,Ut,zt,_t,Dt){var vt,lr=Nt.texInfo;for(zo.call(lr),vt=0;vt<6;++vt)Ne[vt]=Ga();if(typeof Bt=="number"||!Bt){var _r=Bt|0||1;for(vt=0;vt<6;++vt)sa(Ne[vt],_r,_r)}else if(typeof Bt=="object")if(Ft)ba(Ne[0],Bt),ba(Ne[1],Ft),ba(Ne[2],Ut),ba(Ne[3],zt),ba(Ne[4],_t),ba(Ne[5],Dt);else if(Qs(lr,Bt),mn(Nt,Bt),"faces"in Bt){var Br=Bt.faces;for(vt=0;vt<6;++vt)si(Ne[vt],Nt),ba(Ne[vt],Br[vt])}else for(vt=0;vt<6;++vt)ba(Ne[vt],Bt);for(si(Nt,Ne[0]),lr.genMipmaps?Nt.mipmask=(Ne[0].width<<1)-1:Nt.mipmask=Ne[0].mipmask,Nt.internalformat=Ne[0].internalformat,$e.width=Ne[0].width,$e.height=Ne[0].height,al(Nt),vt=0;vt<6;++vt)is(Ne[vt],ea+vt);for(nl(lr,ya),io(),Nr.profile&&(Nt.stats.size=cc(Nt.internalformat,Nt.type,$e.width,$e.height,lr.genMipmaps,!0)),$e.format=yi[Nt.internalformat],$e.type=Ii[Nt.type],$e.mag=ui[lr.magFilter],$e.min=nn[lr.minFilter],$e.wrapS=Zi[lr.wrapS],$e.wrapT=Zi[lr.wrapT],vt=0;vt<6;++vt)El(Ne[vt]);return $e}function st(Bt,Ft,Ut,zt,_t){var Dt=Ut|0,vt=zt|0,lr=_t|0,_r=Ki();return si(_r,Nt),_r.width=0,_r.height=0,Bi(_r,Ft),_r.width=_r.width||(Nt.width>>lr)-Dt,_r.height=_r.height||(Nt.height>>lr)-vt,al(Nt),Nn(_r,ea+Bt,Dt,vt,lr),io(),Cn(_r),$e}function It(Bt){var Ft=Bt|0;if(Ft!==Nt.width){$e.width=Nt.width=Ft,$e.height=Nt.height=Ft,al(Nt);for(var Ut=0;Ut<6;++Ut)for(var zt=0;Nt.mipmask>>zt;++zt)Me.texImage2D(ea+Ut,zt,Nt.format,Ft>>zt,Ft>>zt,0,Nt.format,Nt.type,null);return io(),Nr.profile&&(Nt.stats.size=cc(Nt.internalformat,Nt.type,$e.width,$e.height,!1,!0)),$e}}return $e(ne,we,Oe,ht,Yt,cr),$e.subimage=st,$e.resize=It,$e._reglType="textureCube",$e._texture=Nt,Nr.profile&&($e.stats=Nt.stats),$e.destroy=function(){Nt.decRef()},$e}function O(){for(var ne=0;ne>ht,Oe.height>>ht,0,Oe.internalformat,Oe.type,null);else for(var Yt=0;Yt<6;++Yt)Me.texImage2D(ea+Yt,ht,Oe.internalformat,Oe.width>>ht,Oe.height>>ht,0,Oe.internalformat,Oe.type,null);nl(Oe.texInfo,Oe.target)})}function de(){for(var ne=0;ne=0?El=!0:Ni.indexOf(zo)>=0&&(El=!1))),("depthTexture"in wa||"depthStencilTexture"in wa)&&(Ys=!!(wa.depthTexture||wa.depthStencilTexture)),"depth"in wa&&(typeof wa.depth=="boolean"?is=wa.depth:(Ul=wa.depth,Zs=!1)),"stencil"in wa&&(typeof wa.stencil=="boolean"?Zs=wa.stencil:(ss=wa.stencil,is=!1)),"depthStencil"in wa&&(typeof wa.depthStencil=="boolean"?is=Zs=wa.depthStencil:(Vs=wa.depthStencil,is=!1,Zs=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Ga))io=Ga.map(oi);else if(Ga)io=[oi(Ga)];else for(io=new Array(nl),ia=0;ia0&&(Cn.depth=Bi[0].depth,Cn.stencil=Bi[0].stencil,Cn.depthStencil=Bi[0].depthStencil),Bi[Ki]?Bi[Ki](Cn):Bi[Ki]=si(Cn)}return e(pn,{width:ia,height:ia,color:zo})}function Nn(aa){var Ki,Cn=aa|0;if(Cn===pn.width)return pn;var ia=pn.color;for(Ki=0;Ki=ia.byteLength?sa.subdata(ia):(sa.destroy(),si.buffers[aa]=null)),si.buffers[aa]||(sa=si.buffers[aa]=Vr.create(Ki,If,!1,!0)),Cn.buffer=Vr.getBuffer(sa),Cn.size=Cn.buffer.dimension|0,Cn.normalized=!1,Cn.type=Cn.buffer.dtype,Cn.offset=0,Cn.stride=0,Cn.divisor=0,Cn.state=1,pn[aa]=1}else Vr.getBuffer(Ki)?(Cn.buffer=Vr.getBuffer(Ki),Cn.size=Cn.buffer.dimension|0,Cn.normalized=!1,Cn.type=Cn.buffer.dtype,Cn.offset=0,Cn.stride=0,Cn.divisor=0,Cn.state=1):Vr.getBuffer(Ki.buffer)?(Cn.buffer=Vr.getBuffer(Ki.buffer),Cn.size=(+Ki.size||Cn.buffer.dimension)|0,Cn.normalized=!!Ki.normalized||!1,"type"in Ki?Cn.type=un[Ki.type]:Cn.type=Cn.buffer.dtype,Cn.offset=(Ki.offset||0)|0,Cn.stride=(Ki.stride||0)|0,Cn.divisor=(Ki.divisor||0)|0,Cn.state=1):"x"in Ki&&(Cn.x=+Ki.x||0,Cn.y=+Ki.y||0,Cn.z=+Ki.z||0,Cn.w=+Ki.w||0,Cn.state=2)}for(var ba=0;ba1)for(var Ji=0;JiTr&&(Tr=Zr.stats.uniformsCount)}),Tr},Ot.getMaxAttributesCount=function(){var Tr=0;return Si.forEach(function(Zr){Zr.stats.attributesCount>Tr&&(Tr=Zr.stats.attributesCount)}),Tr});function oi(){Vr={},Or={};for(var Tr=0;Tr16&&(Ot=Yi(Ot,Me.length*8));for(var Lr=Array(16),Vr=Array(16),Or=0;Or<16;Or++)Lr[Or]=Ot[Or]^909522486,Vr[Or]=Ot[Or]^1549556828;var Nr=Yi(Lr.concat(Bc(bt)),512+bt.length*8);return kt(Yi(Vr.concat(Nr),768))}function vu(Me){for(var bt=ah?"0123456789ABCDEF":"0123456789abcdef",Ot="",Lr,Vr=0;Vr>>4&15)+bt.charAt(Lr&15);return Ot}function Oc(Me){for(var bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ot="",Lr=Me.length,Vr=0;VrMe.length*8?Ot+=Zu:Ot+=bt.charAt(Or>>>6*(3-Nr)&63);return Ot}function ff(Me,bt){var Ot=bt.length,Lr=Array(),Vr,Or,Nr,vi,Ni=Array(Math.ceil(Me.length/2));for(Vr=0;Vr0;){for(vi=Array(),Nr=0,Vr=0;Vr0||Or>0)&&(vi[vi.length]=Or);Lr[Lr.length]=Nr,Ni=vi}var qi="";for(Vr=Lr.length-1;Vr>=0;Vr--)qi+=bt.charAt(Lr[Vr]);var Si=Math.ceil(Me.length*8/(Math.log(bt.length)/Math.log(2)));for(Vr=qi.length;Vr>>6&31,128|Lr&63):Lr<=65535?bt+=String.fromCharCode(224|Lr>>>12&15,128|Lr>>>6&63,128|Lr&63):Lr<=2097151&&(bt+=String.fromCharCode(240|Lr>>>18&7,128|Lr>>>12&63,128|Lr>>>6&63,128|Lr&63));return bt}function Bc(Me){for(var bt=Array(Me.length>>2),Ot=0;Ot>5]|=(Me.charCodeAt(Ot/8)&255)<<24-Ot%32;return bt}function kt(Me){for(var bt="",Ot=0;Ot>5]>>>24-Ot%32&255);return bt}function Zt(Me,bt){return Me>>>bt|Me<<32-bt}function Er(Me,bt){return Me>>>bt}function xr(Me,bt,Ot){return Me&bt^~Me&Ot}function Kr(Me,bt,Ot){return Me&bt^Me&Ot^bt&Ot}function Mi(Me){return Zt(Me,2)^Zt(Me,13)^Zt(Me,22)}function Xi(Me){return Zt(Me,6)^Zt(Me,11)^Zt(Me,25)}function dn(Me){return Zt(Me,7)^Zt(Me,18)^Er(Me,3)}function wn(Me){return Zt(Me,17)^Zt(Me,19)^Er(Me,10)}var On=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Yi(Me,bt){var Ot=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Lr=new Array(64),Vr,Or,Nr,vi,Ni,qi,Si,Vn,Qi,Wi,oi,Tr;for(Me[bt>>5]|=128<<24-bt%32,Me[(bt+64>>9<<4)+15]=bt,Qi=0;Qi>16)+(bt>>16)+(Ot>>16);return Lr<<16|Ot&65535}function an(Me){return Array.prototype.slice.call(Me)}function Fi(Me){return an(Me).join("")}function ta(Me){var bt=Me&&Me.cache,Ot=0,Lr=[],Vr=[],Or=[];function Nr(oi,Tr){var Zr=Tr&&Tr.stable;if(!Zr){for(var yi=0;yi0&&(oi.push(Ii,"="),oi.push.apply(oi,an(arguments)),oi.push(";")),Ii}return e(Tr,{def:yi,toString:function(){return Fi([Zr.length>0?"var "+Zr.join(",")+";":"",Fi(oi)])}})}function Ni(){var oi=vi(),Tr=vi(),Zr=oi.toString,yi=Tr.toString;function Ii(ui,nn){Tr(ui,nn,"=",oi.def(ui,nn),";")}return e(function(){oi.apply(oi,an(arguments))},{def:oi.def,entry:oi,exit:Tr,save:Ii,set:function(ui,nn,Zi){Ii(ui,nn),oi(ui,nn,"=",Zi,";")},toString:function(){return Zr()+yi()}})}function qi(){var oi=Fi(arguments),Tr=Ni(),Zr=Ni(),yi=Tr.toString,Ii=Zr.toString;return e(Tr,{then:function(){return Tr.apply(Tr,an(arguments)),this},else:function(){return Zr.apply(Zr,an(arguments)),this},toString:function(){var ui=Ii();return ui&&(ui="else{"+ui+"}"),Fi(["if(",oi,"){",yi(),"}",ui])}})}var Si=vi(),Vn={};function Qi(oi,Tr){var Zr=[];function yi(){var qn="a"+Zr.length;return Zr.push(qn),qn}Tr=Tr||0;for(var Ii=0;Ii":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},di={cw:Te,ccw:qe};function Li(Me){return Array.isArray(Me)||qr(Me)||jr(Me)}function Ti(Me){return Me.sort(function(bt,Ot){return bt===ee?-1:Ot===ee?1:bt=1,Lr>=2,bt)}else if(Ot===Zo){var Vr=Me.data;return new Qr(Vr.thisDep,Vr.contextDep,Vr.propDep,bt)}else{if(Ot===Ss)return new Qr(!1,!1,!1,bt);if(Ot===as){for(var Or=!1,Nr=!1,vi=!1,Ni=0;Ni=1&&(Nr=!0),Si>=2&&(vi=!0)}else qi.type===Zo&&(Or=Or||qi.data.thisDep,Nr=Nr||qi.data.contextDep,vi=vi||qi.data.propDep)}return new Qr(Or,Nr,vi,bt)}else return new Qr(Ot===bo,Ot===Ka,Ot===Dn,bt)}}var na=new Qr(!1,!1,!1,function(){});function Ea(Me,bt,Ot,Lr,Vr,Or,Nr,vi,Ni,qi,Si,Vn,Qi,ji,oi,Tr){var Zr=qi.Record,yi={add:32774,subtract:32778,"reverse subtract":32779};Ot.ext_blend_minmax&&(yi.min=Ve,yi.max=Ye);var Ii=Ot.angle_instanced_arrays,ui=Ot.webgl_draw_buffers,nn=Ot.oes_vertex_array_object,Xi={dirty:!0,profile:Tr.profile},qn={},fi=[],si={},mn={};function Ji(Ne){return Ne.replace(".","_")}function Ui(Ne,$e,st){var It=Ji(Ne);fi.push(Ne),qn[It]=Xi[It]=!!st,si[It]=$e}function Bi(Ne,$e,st){var It=Ji(Ne);fi.push(Ne),Array.isArray(st)?(Xi[It]=st.slice(),qn[It]=st.slice()):Xi[It]=qn[It]=st,mn[It]=$e}function pn(Ne){return!!isNaN(Ne)}Ui(ws,Ci),Ui(Ho,ri),Bi(ml,"blendColor",[0,0,0,0]),Bi(Ws,"blendEquationSeparate",[pr,pr]),Bi(Ls,"blendFuncSeparate",[dr,Xt,dr,Xt]),Ui(va,sn,!0),Bi(no,"depthFunc",Ur),Bi(ys,"depthRange",[0,1]),Bi(rs,"depthMask",!0),Bi(Ql,Ql,[!0,!0,!0,!0]),Ui(Cu,Hr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,qe),Bi(pu,pu,1),Ui(Uc,Yn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Va,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,cn),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Pt,0,-1]),Bi(ue,"stencilOpSeparate",[X,ot,ot,ot]),Bi(w,"stencilOpSeparate",[se,ot,ot,ot]),Ui(B,Ln),Bi(Q,"scissor",[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]),Bi(ee,ee,[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]);var Nn={gl:Me,context:Qi,strings:bt,next:qn,current:Xi,draw:Vn,elements:Or,buffer:Vr,shader:Si,attributes:qi.state,vao:qi,uniforms:Ni,framebuffer:vi,extensions:Ot,timer:ji,isBufferArgs:Li},aa={primTypes:Mn,compareFuncs:Wr,blendFuncs:xi,blendEquations:yi,stencilOps:ii,glTypes:un,orientationType:di};ui&&(aa.backBuffer=[se],aa.drawBuffer=S(Lr.maxDrawbuffers,function(Ne){return Ne===0?[0]:S(Ne,function($e){return gi+$e})}));var Ki=0;function Cn(){var Ne=ta({cache:oi}),$e=Ne.link,st=Ne.global;Ne.id=Ki++,Ne.batchId="0";var It=$e(Nn),Bt=Ne.shared={props:"a0"};Object.keys(Nn).forEach(function(Dt){Bt[Dt]=st.def(It,".",Dt)});var Ft=Ne.next={},Ut=Ne.current={};Object.keys(mn).forEach(function(Dt){Array.isArray(Xi[Dt])&&(Ft[Dt]=st.def(Bt.next,".",Dt),Ut[Dt]=st.def(Bt.current,".",Dt))});var zt=Ne.constants={};Object.keys(aa).forEach(function(Dt){zt[Dt]=st.def(JSON.stringify(aa[Dt]))}),Ne.invoke=function(Dt,vt){switch(vt.type){case Zn:var lr=["this",Bt.context,Bt.props,Ne.batchId];return Dt.def($e(vt.data),".call(",lr.slice(0,Math.max(vt.data.length+1,4)),")");case Dn:return Dt.def(Bt.props,vt.data);case Ka:return Dt.def(Bt.context,vt.data);case bo:return Dt.def("this",vt.data);case Zo:return vt.data.append(Ne,Dt),vt.data.ref;case Ss:return vt.data.toString();case as:return vt.data.map(function(_r){return Ne.invoke(Dt,_r)})}},Ne.attribCache={};var _t={};return Ne.scopeAttrib=function(Dt){var vt=bt.id(Dt);if(vt in _t)return _t[vt];var lr=qi.scope[vt];lr||(lr=qi.scope[vt]=new Zr);var _r=_t[vt]=$e(lr);return _r},Ne}function ia(Ne){var $e=Ne.static,st=Ne.dynamic,It;if(le in $e){var Bt=!!$e[le];It=kn(function(Ut,zt){return Bt}),It.enable=Bt}else if(le in st){var Ft=st[le];It=Bn(Ft,function(Ut,zt){return Ut.invoke(zt,Ft)})}return It}function sa(Ne,$e){var st=Ne.static,It=Ne.dynamic;if(Fe in st){var Bt=st[Fe];return Bt?(Bt=vi.getFramebuffer(Bt),kn(function(Ut,zt){var _t=Ut.link(Bt),Dt=Ut.shared;zt.set(Dt.framebuffer,".next",_t);var vt=Dt.context;return zt.set(vt,"."+ze,_t+".width"),zt.set(vt,"."+Qe,_t+".height"),_t})):kn(function(Ut,zt){var _t=Ut.shared;zt.set(_t.framebuffer,".next","null");var Dt=_t.context;return zt.set(Dt,"."+ze,Dt+"."+Wt),zt.set(Dt,"."+Qe,Dt+"."+nr),"null"})}else if(Fe in It){var Ft=It[Fe];return Bn(Ft,function(Ut,zt){var _t=Ut.invoke(zt,Ft),Dt=Ut.shared,vt=Dt.framebuffer,lr=zt.def(vt,".getFramebuffer(",_t,")");zt.set(vt,".next",lr);var _r=Dt.context;return zt.set(_r,"."+ze,lr+"?"+lr+".width:"+_r+"."+Wt),zt.set(_r,"."+Qe,lr+"?"+lr+".height:"+_r+"."+nr),lr})}else return null}function ba(Ne,$e,st){var It=Ne.static,Bt=Ne.dynamic;function Ft(_t){if(_t in It){var Dt=It[_t],vt=!0,lr=Dt.x|0,_r=Dt.y|0,Br,Di;return"width"in Dt?Br=Dt.width|0:vt=!1,"height"in Dt?Di=Dt.height|0:vt=!1,new Qr(!vt&&$e&&$e.thisDep,!vt&&$e&&$e.contextDep,!vt&&$e&&$e.propDep,function(gn,tn){var Ei=gn.shared.context,Oi=Br;"width"in Dt||(Oi=tn.def(Ei,".",ze,"-",lr));var Gi=Di;return"height"in Dt||(Gi=tn.def(Ei,".",Qe,"-",_r)),[lr,_r,Oi,Gi]})}else if(_t in Bt){var ci=Bt[_t],bi=Bn(ci,function(gn,tn){var Ei=gn.invoke(tn,ci),Oi=gn.shared.context,Gi=tn.def(Ei,".x|0"),on=tn.def(Ei,".y|0"),zn=tn.def('"width" in ',Ei,"?",Ei,".width|0:","(",Oi,".",ze,"-",Gi,")"),Ja=tn.def('"height" in ',Ei,"?",Ei,".height|0:","(",Oi,".",Qe,"-",on,")");return[Gi,on,zn,Ja]});return $e&&(bi.thisDep=bi.thisDep||$e.thisDep,bi.contextDep=bi.contextDep||$e.contextDep,bi.propDep=bi.propDep||$e.propDep),bi}else return $e?new Qr($e.thisDep,$e.contextDep,$e.propDep,function(gn,tn){var Ei=gn.shared.context;return[0,0,tn.def(Ei,".",ze),tn.def(Ei,".",Qe)]}):null}var Ut=Ft(ee);if(Ut){var zt=Ut;Ut=new Qr(Ut.thisDep,Ut.contextDep,Ut.propDep,function(_t,Dt){var vt=zt.append(_t,Dt),lr=_t.shared.context;return Dt.set(lr,"."+Xe,vt[2]),Dt.set(lr,"."+nt,vt[3]),vt})}return{viewport:Ut,scissor_box:Ft(Q)}}function is(Ne,$e){var st=Ne.static,It=typeof st[ut]=="string"&&typeof st[Ze]=="string";if(It){if(Object.keys($e.dynamic).length>0)return null;var Bt=$e.static,Ft=Object.keys(Bt);if(Ft.length>0&&typeof Bt[Ft[0]]=="number"){for(var Ut=[],zt=0;zt"+Gi+"?"+vt+".constant["+Gi+"]:0;"}).join(""),"}}else{","if(",Br,"(",vt,".buffer)){",gn,"=",Di,".createStream(",br,",",vt,".buffer);","}else{",gn,"=",Di,".getBuffer(",vt,".buffer);","}",tn,'="type" in ',vt,"?",_r.glTypes,"[",vt,".type]:",gn,".dtype;",ci.normalized,"=!!",vt,".normalized;");function Ei(Oi){Dt(ci[Oi],"=",vt,".",Oi,"|0;")}return Ei("size"),Ei("offset"),Ei("stride"),Ei("divisor"),Dt("}}"),Dt.exit("if(",ci.isStream,"){",Di,".destroyStream(",gn,");","}"),ci}Bt[Ft]=Bn(Ut,zt)}),Bt}function al(Ne){var $e=Ne.static,st=Ne.dynamic,It={};return Object.keys($e).forEach(function(Bt){var Ft=$e[Bt];It[Bt]=kn(function(Ut,zt){return typeof Ft=="number"||typeof Ft=="boolean"?""+Ft:Ut.link(Ft)})}),Object.keys(st).forEach(function(Bt){var Ft=st[Bt];It[Bt]=Bn(Ft,function(Ut,zt){return Ut.invoke(zt,Ft)})}),It}function Vl(Ne,$e,st,It,Bt){var Ft=Ne.static,Ut=Ne.dynamic,zt=is(Ne,$e),_t=sa(Ne,Bt),Dt=ba(Ne,_t,Bt),vt=Ga(Ne,Bt),lr=Ml(Ne,Bt),_r=Zs(Ne,Bt,zt);function Br(Ei){var Oi=Dt[Ei];Oi&&(lr[Ei]=Oi)}Br(ee),Br(Ji(Q));var Di=Object.keys(lr).length>0,ci={framebuffer:_t,draw:vt,shader:_r,state:lr,dirty:Di,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(ci.profile=ia(Ne,Bt),ci.uniforms=zo(st,Bt),ci.drawVAO=ci.scopeVAO=vt.vao,!ci.drawVAO&&_r.program&&!zt&&Ot.angle_instanced_arrays&&vt.static.elements){var bi=!0,gn=_r.program.attributes.map(function(Ei){var Oi=$e.static[Ei];return bi=bi&&!!Oi,Oi});if(bi&&gn.length>0){var tn=qi.getVAO(qi.createVAO({attributes:gn,elements:vt.static.elements}));ci.drawVAO=new Qr(null,null,null,function(Ei,Oi){return Ei.link(tn)}),ci.useVAO=!0}}return zt?ci.useVAO=!0:ci.attributes=Qs($e,Bt),ci.context=al(It,Bt),ci}function ss(Ne,$e,st){var It=Ne.shared,Bt=It.context,Ft=Ne.scope();Object.keys(st).forEach(function(Ut){$e.save(Bt,"."+Ut);var zt=st[Ut],_t=zt.append(Ne,$e);Array.isArray(_t)?Ft(Bt,".",Ut,"=[",_t.join(),"];"):Ft(Bt,".",Ut,"=",_t,";")}),$e(Ft)}function Vs(Ne,$e,st,It){var Bt=Ne.shared,Ft=Bt.gl,Ut=Bt.framebuffer,zt;ui&&(zt=$e.def(Bt.extensions,".webgl_draw_buffers"));var _t=Ne.constants,Dt=_t.drawBuffer,vt=_t.backBuffer,lr;st?lr=st.append(Ne,$e):lr=$e.def(Ut,".next"),It||$e("if(",lr,"!==",Ut,".cur){"),$e("if(",lr,"){",Ft,".bindFramebuffer(",zr,",",lr,".framebuffer);"),ui&&$e(zt,".drawBuffersWEBGL(",Dt,"[",lr,".colorAttachments.length]);"),$e("}else{",Ft,".bindFramebuffer(",zr,",null);"),ui&&$e(zt,".drawBuffersWEBGL(",vt,");"),$e("}",Ut,".cur=",lr,";"),It||$e("}")}function Ys(Ne,$e,st){var It=Ne.shared,Bt=It.gl,Ft=Ne.current,Ut=Ne.next,zt=It.current,_t=It.next,Dt=Ne.cond(zt,".dirty");fi.forEach(function(vt){var lr=Ji(vt);if(!(lr in st.state)){var _r,Br;if(lr in Ut){_r=Ut[lr],Br=Ft[lr];var Di=S(Xi[lr].length,function(bi){return Dt.def(_r,"[",bi,"]")});Dt(Ne.cond(Di.map(function(bi,gn){return bi+"!=="+Br+"["+gn+"]"}).join("||")).then(Bt,".",mn[lr],"(",Di,");",Di.map(function(bi,gn){return Br+"["+gn+"]="+bi}).join(";"),";"))}else{_r=Dt.def(_t,".",lr);var ci=Ne.cond(_r,"!==",zt,".",lr);Dt(ci),lr in si?ci(Ne.cond(_r).then(Bt,".enable(",si[lr],");").else(Bt,".disable(",si[lr],");"),zt,".",lr,"=",_r,";"):ci(Bt,".",mn[lr],"(",_r,");",zt,".",lr,"=",_r,";")}}}),Object.keys(st.state).length===0&&Dt(zt,".dirty=false;"),$e(Dt)}function wa(Ne,$e,st,It){var Bt=Ne.shared,Ft=Ne.current,Ut=Bt.current,zt=Bt.gl,_t;Ti(Object.keys(st)).forEach(function(Dt){var vt=st[Dt];if(!(It&&!It(vt))){var lr=vt.append(Ne,$e);if(si[Dt]){var _r=si[Dt];Pn(vt)?(_t=Ne.link(lr,{stable:!0}),$e(Ne.cond(_t).then(zt,".enable(",_r,");").else(zt,".disable(",_r,");")),$e(Ut,".",Dt,"=",_t,";")):($e(Ne.cond(lr).then(zt,".enable(",_r,");").else(zt,".disable(",_r,");")),$e(Ut,".",Dt,"=",lr,";"))}else if(En(lr)){var Br=Ft[Dt];$e(zt,".",mn[Dt],"(",lr,");",lr.map(function(Di,ci){return Br+"["+ci+"]="+Di}).join(";"),";")}else Pn(vt)?(_t=Ne.link(lr,{stable:!0}),$e(zt,".",mn[Dt],"(",_t,");",Ut,".",Dt,"=",_t,";")):$e(zt,".",mn[Dt],"(",lr,");",Ut,".",Dt,"=",lr,";")}})}function ol(Ne,$e){Ii&&(Ne.instancing=$e.def(Ne.shared.extensions,".angle_instanced_arrays"))}function io(Ne,$e,st,It,Bt){var Ft=Ne.shared,Ut=Ne.stats,zt=Ft.current,_t=Ft.timer,Dt=st.profile;function vt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var lr,_r;function Br(Ei){lr=$e.def(),Ei(lr,"=",vt(),";"),typeof Bt=="string"?Ei(Ut,".count+=",Bt,";"):Ei(Ut,".count++;"),ji&&(It?(_r=$e.def(),Ei(_r,"=",_t,".getNumPendingQueries();")):Ei(_t,".beginQuery(",Ut,");"))}function Di(Ei){Ei(Ut,".cpuTime+=",vt(),"-",lr,";"),ji&&(It?Ei(_t,".pushScopeStats(",_r,",",_t,".getNumPendingQueries(),",Ut,");"):Ei(_t,".endQuery();"))}function ci(Ei){var Oi=$e.def(zt,".profile");$e(zt,".profile=",Ei,";"),$e.exit(zt,".profile=",Oi,";")}var bi;if(Dt){if(Pn(Dt)){Dt.enable?(Br($e),Di($e.exit),ci("true")):ci("false");return}bi=Dt.append(Ne,$e),ci(bi)}else bi=$e.def(zt,".profile");var gn=Ne.block();Br(gn),$e("if(",bi,"){",gn,"}");var tn=Ne.block();Di(tn),$e.exit("if(",bi,"){",tn,"}")}function Y(Ne,$e,st,It,Bt){var Ft=Ne.shared;function Ut(_t){switch(_t){case Co:case Ps:case hl:return 2;case Qa:case Ts:case Ul:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function zt(_t,Dt,vt){var lr=Ft.gl,_r=$e.def(_t,".location"),Br=$e.def(Ft.attributes,"[",_r,"]"),Di=vt.state,ci=vt.buffer,bi=[vt.x,vt.y,vt.z,vt.w],gn=["buffer","normalized","offset","stride"];function tn(){$e("if(!",Br,".buffer){",lr,".enableVertexAttribArray(",_r,");}");var Oi=vt.type,Gi;if(vt.size?Gi=$e.def(vt.size,"||",Dt):Gi=Dt,$e("if(",Br,".type!==",Oi,"||",Br,".size!==",Gi,"||",gn.map(function(zn){return Br+"."+zn+"!=="+vt[zn]}).join("||"),"){",lr,".bindBuffer(",br,",",ci,".buffer);",lr,".vertexAttribPointer(",[_r,Gi,Oi,vt.normalized,vt.stride,vt.offset],");",Br,".type=",Oi,";",Br,".size=",Gi,";",gn.map(function(zn){return Br+"."+zn+"="+vt[zn]+";"}).join(""),"}"),Ii){var on=vt.divisor;$e("if(",Br,".divisor!==",on,"){",Ne.instancing,".vertexAttribDivisorANGLE(",[_r,on],");",Br,".divisor=",on,";}")}}function Ei(){$e("if(",Br,".buffer){",lr,".disableVertexAttribArray(",_r,");",Br,".buffer=null;","}if(",Ca.map(function(Oi,Gi){return Br+"."+Oi+"!=="+bi[Gi]}).join("||"),"){",lr,".vertexAttrib4f(",_r,",",bi,");",Ca.map(function(Oi,Gi){return Br+"."+Oi+"="+bi[Gi]+";"}).join(""),"}")}Di===La?tn():Di===Ua?Ei():($e("if(",Di,"===",La,"){"),tn(),$e("}else{"),Ei(),$e("}"))}It.forEach(function(_t){var Dt=_t.name,vt=st.attributes[Dt],lr;if(vt){if(!Bt(vt))return;lr=vt.append(Ne,$e)}else{if(!Bt(na))return;var _r=Ne.scopeAttrib(Dt);lr={},Object.keys(new Zr).forEach(function(Br){lr[Br]=$e.def(_r,".",Br)})}zt(Ne.link(_t),Ut(_t.info.type),lr)})}function D(Ne,$e,st,It,Bt,Ft){for(var Ut=Ne.shared,zt=Ut.gl,_t,Dt=0;Dt1){for(var co=[],ts=[],so=0;so>1)",ci],");")}function on(){st(bi,".drawArraysInstancedANGLE(",[_r,Br,Di,ci],");")}vt&&vt!=="null"?tn?Gi():(st("if(",vt,"){"),Gi(),st("}else{"),on(),st("}")):on()}function Oi(){function Gi(){st(Ft+".drawElements("+[_r,Di,gn,Br+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){st(Ft+".drawArrays("+[_r,Br,Di]+");")}vt&&vt!=="null"?tn?Gi():(st("if(",vt,"){"),Gi(),st("}else{"),on(),st("}")):on()}Ii&&(typeof ci!="number"||ci>=0)?typeof ci=="string"?(st("if(",ci,">0){"),Ei(),st("}else if(",ci,"<0){"),Oi(),st("}")):Ei():Oi()}function O(Ne,$e,st,It,Bt){var Ft=Cn(),Ut=Ft.proc("body",Bt);return Ii&&(Ft.instancing=Ut.def(Ft.shared.extensions,".angle_instanced_arrays")),Ne(Ft,Ut,st,It),Ft.compile().body}function K(Ne,$e,st,It){ol(Ne,$e),st.useVAO?st.drawVAO?$e(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,$e),");"):$e(Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"):($e(Ne.shared.vao,".setVAO(null);"),Y(Ne,$e,st,It.attributes,function(){return!0})),D(Ne,$e,st,It.uniforms,function(){return!0},!1),J(Ne,$e,$e,st)}function de(Ne,$e){var st=Ne.proc("draw",1);ol(Ne,st),ss(Ne,st,$e.context),Vs(Ne,st,$e.framebuffer),Ys(Ne,st,$e),wa(Ne,st,$e.state),io(Ne,st,$e,!1,!0);var It=$e.shader.progVar.append(Ne,st);if(st(Ne.shared.gl,".useProgram(",It,".program);"),$e.shader.program)K(Ne,st,$e,$e.shader.program);else{st(Ne.shared.vao,".setVAO(null);");var Bt=Ne.global.def("{}"),Ft=st.def(It,".id"),Ut=st.def(Bt,"[",Ft,"]");st(Ne.cond(Ut).then(Ut,".call(this,a0);").else(Ut,"=",Bt,"[",Ft,"]=",Ne.link(function(zt){return O(K,Ne,$e,zt,1)}),"(",It,");",Ut,".call(this,a0);"))}Object.keys($e.state).length>0&&st(Ne.shared.current,".dirty=true;"),Ne.shared.vao&&st(Ne.shared.vao,".setVAO(null);")}function ne(Ne,$e,st,It){Ne.batchId="a1",ol(Ne,$e);function Bt(){return!0}Y(Ne,$e,st,It.attributes,Bt),D(Ne,$e,st,It.uniforms,Bt,!1),J(Ne,$e,$e,st)}function we(Ne,$e,st,It){ol(Ne,$e);var Bt=st.contextDep,Ft=$e.def(),Ut="a0",zt="a1",_t=$e.def();Ne.shared.props=_t,Ne.batchId=Ft;var Dt=Ne.scope(),vt=Ne.scope();$e(Dt.entry,"for(",Ft,"=0;",Ft,"<",zt,";++",Ft,"){",_t,"=",Ut,"[",Ft,"];",vt,"}",Dt.exit);function lr(gn){return gn.contextDep&&Bt||gn.propDep}function _r(gn){return!lr(gn)}if(st.needsContext&&ss(Ne,vt,st.context),st.needsFramebuffer&&Vs(Ne,vt,st.framebuffer),wa(Ne,vt,st.state,lr),st.profile&&lr(st.profile)&&io(Ne,vt,st,!1,!0),It)st.useVAO?st.drawVAO?lr(st.drawVAO)?vt(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,vt),");"):Dt(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,Dt),");"):Dt(Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"):(Dt(Ne.shared.vao,".setVAO(null);"),Y(Ne,Dt,st,It.attributes,_r),Y(Ne,vt,st,It.attributes,lr)),D(Ne,Dt,st,It.uniforms,_r,!1),D(Ne,vt,st,It.uniforms,lr,!0),J(Ne,Dt,vt,st);else{var Br=Ne.global.def("{}"),Di=st.shader.progVar.append(Ne,vt),ci=vt.def(Di,".id"),bi=vt.def(Br,"[",ci,"]");vt(Ne.shared.gl,".useProgram(",Di,".program);","if(!",bi,"){",bi,"=",Br,"[",ci,"]=",Ne.link(function(gn){return O(ne,Ne,st,gn,2)}),"(",Di,");}",bi,".call(this,a0[",Ft,"],",Ft,");")}}function Oe(Ne,$e){var st=Ne.proc("batch",2);Ne.batchId="0",ol(Ne,st);var It=!1,Bt=!0;Object.keys($e.context).forEach(function(Br){It=It||$e.context[Br].propDep}),It||(ss(Ne,st,$e.context),Bt=!1);var Ft=$e.framebuffer,Ut=!1;Ft?(Ft.propDep?It=Ut=!0:Ft.contextDep&&It&&(Ut=!0),Ut||Vs(Ne,st,Ft)):Vs(Ne,st,null),$e.state.viewport&&$e.state.viewport.propDep&&(It=!0);function zt(Br){return Br.contextDep&&It||Br.propDep}Ys(Ne,st,$e),wa(Ne,st,$e.state,function(Br){return!zt(Br)}),(!$e.profile||!zt($e.profile))&&io(Ne,st,$e,!1,"a1"),$e.contextDep=It,$e.needsContext=Bt,$e.needsFramebuffer=Ut;var _t=$e.shader.progVar;if(_t.contextDep&&It||_t.propDep)we(Ne,st,$e,null);else{var Dt=_t.append(Ne,st);if(st(Ne.shared.gl,".useProgram(",Dt,".program);"),$e.shader.program)we(Ne,st,$e,$e.shader.program);else{st(Ne.shared.vao,".setVAO(null);");var vt=Ne.global.def("{}"),lr=st.def(Dt,".id"),_r=st.def(vt,"[",lr,"]");st(Ne.cond(_r).then(_r,".call(this,a0,a1);").else(_r,"=",vt,"[",lr,"]=",Ne.link(function(Br){return O(we,Ne,$e,Br,2)}),"(",Dt,");",_r,".call(this,a0,a1);"))}}Object.keys($e.state).length>0&&st(Ne.shared.current,".dirty=true;"),Ne.shared.vao&&st(Ne.shared.vao,".setVAO(null);")}function ht(Ne,$e){var st=Ne.proc("scope",3);Ne.batchId="a2";var It=Ne.shared,Bt=It.current;if(ss(Ne,st,$e.context),$e.framebuffer&&$e.framebuffer.append(Ne,st),Ti(Object.keys($e.state)).forEach(function(zt){var _t=$e.state[zt],Dt=_t.append(Ne,st);En(Dt)?Dt.forEach(function(vt,lr){pn(vt)?st.set(Ne.next[zt],"["+lr+"]",vt):st.set(Ne.next[zt],"["+lr+"]",Ne.link(vt,{stable:!0}))}):Pn(_t)?st.set(It.next,"."+zt,Ne.link(Dt,{stable:!0})):st.set(It.next,"."+zt,Dt)}),io(Ne,st,$e,!0,!0),[Mt,yr,$t,Cr,Jt].forEach(function(zt){var _t=$e.draw[zt];if(_t){var Dt=_t.append(Ne,st);pn(Dt)?st.set(It.draw,"."+zt,Dt):st.set(It.draw,"."+zt,Ne.link(Dt),{stable:!0})}}),Object.keys($e.uniforms).forEach(function(zt){var _t=$e.uniforms[zt].append(Ne,st);Array.isArray(_t)&&(_t="["+_t.map(function(Dt){return pn(Dt)?Dt:Ne.link(Dt,{stable:!0})})+"]"),st.set(It.uniforms,"["+Ne.link(bt.id(zt),{stable:!0})+"]",_t)}),Object.keys($e.attributes).forEach(function(zt){var _t=$e.attributes[zt].append(Ne,st),Dt=Ne.scopeAttrib(zt);Object.keys(new Zr).forEach(function(vt){st.set(Dt,"."+vt,_t[vt])})}),$e.scopeVAO){var Ft=$e.scopeVAO.append(Ne,st);pn(Ft)?st.set(It.vao,".targetVAO",Ft):st.set(It.vao,".targetVAO",Ne.link(Ft,{stable:!0}))}function Ut(zt){var _t=$e.shader[zt];if(_t){var Dt=_t.append(Ne,st);pn(Dt)?st.set(It.shader,"."+zt,Dt):st.set(It.shader,"."+zt,Ne.link(Dt,{stable:!0}))}}Ut(Ze),Ut(ut),Object.keys($e.state).length>0&&(st(Bt,".dirty=true;"),st.exit(Bt,".dirty=true;")),st("a1(",Ne.shared.context,",a0,",Ne.batchId,");")}function Yt(Ne){if(!(typeof Ne!="object"||En(Ne))){for(var $e=Object.keys(Ne),st=0;st<$e.length;++st)if(h.isDynamic(Ne[$e[st]]))return!0;return!1}}function cr(Ne,$e,st){var It=$e.static[st];if(!It||!Yt(It))return;var Bt=Ne.global,Ft=Object.keys(It),Ut=!1,zt=!1,_t=!1,Dt=Ne.global.def("{}");Ft.forEach(function(lr){var _r=It[lr];if(h.isDynamic(_r)){typeof _r=="function"&&(_r=It[lr]=h.unbox(_r));var Br=Bn(_r,null);Ut=Ut||Br.thisDep,_t=_t||Br.propDep,zt=zt||Br.contextDep}else{switch(Bt(Dt,".",lr,"="),typeof _r){case"number":Bt(_r);break;case"string":Bt('"',_r,'"');break;case"object":Array.isArray(_r)&&Bt("[",_r.join(),"]");break;default:Bt(Ne.link(_r));break}Bt(";")}});function vt(lr,_r){Ft.forEach(function(Br){var Di=It[Br];if(h.isDynamic(Di)){var ci=lr.invoke(_r,Di);_r(Dt,".",Br,"=",ci,";")}})}$e.dynamic[st]=new h.DynamicVariable(Zo,{thisDep:Ut,contextDep:zt,propDep:_t,ref:Dt,append:vt}),delete $e.static[st]}function Nt(Ne,$e,st,It,Bt){var Ft=Cn();Ft.stats=Ft.link(Bt),Object.keys($e.static).forEach(function(zt){cr(Ft,$e,zt)}),fr.forEach(function(zt){cr(Ft,Ne,zt)});var Ut=Vl(Ne,$e,st,It,Ft);return Ut.shader.program&&(Ut.shader.program.attributes.sort(function(zt,_t){return zt.name<_t.name?-1:1}),Ut.shader.program.uniforms.sort(function(zt,_t){return zt.name<_t.name?-1:1})),de(Ft,Ut),ht(Ft,Ut),Oe(Ft,Ut),e(Ft.compile(),{destroy:function(){Ut.shader.program.destroy()}})}return{next:qn,current:Xi,procs:function(){var Ne=Cn(),$e=Ne.proc("poll"),st=Ne.proc("refresh"),It=Ne.block();$e(It),st(It);var Bt=Ne.shared,Ft=Bt.gl,Ut=Bt.next,zt=Bt.current;It(zt,".dirty=false;"),Vs(Ne,$e),Vs(Ne,st,null,!0);var _t;Ii&&(_t=Ne.link(Ii)),Ot.oes_vertex_array_object&&st(Ne.link(Ot.oes_vertex_array_object),".bindVertexArrayOES(null);");var Dt=st.def(Bt.attributes),vt=st.def(0),lr=Ne.cond(vt,".buffer");lr.then(Ft,".enableVertexAttribArray(i);",Ft,".bindBuffer(",br,",",vt,".buffer.buffer);",Ft,".vertexAttribPointer(i,",vt,".size,",vt,".type,",vt,".normalized,",vt,".stride,",vt,".offset);").else(Ft,".disableVertexAttribArray(i);",Ft,".vertexAttrib4f(i,",vt,".x,",vt,".y,",vt,".z,",vt,".w);",vt,".buffer=null;");var _r=Ne.link(Lr.maxAttributes,{stable:!0});return st("for(var i=0;i<",_r,";++i){",vt,"=",Dt,"[i];",lr,"}"),Ii&&st("for(var i=0;i<",_r,";++i){",_t,".vertexAttribDivisorANGLE(i,",Dt,"[i].divisor);","}"),st(Ne.shared.vao,".currentVAO=null;",Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"),Object.keys(si).forEach(function(Br){var Di=si[Br],ci=It.def(Ut,".",Br),bi=Ne.block();bi("if(",ci,"){",Ft,".enable(",Di,")}else{",Ft,".disable(",Di,")}",zt,".",Br,"=",ci,";"),st(bi),$e("if(",ci,"!==",zt,".",Br,"){",bi,"}")}),Object.keys(mn).forEach(function(Br){var Di=mn[Br],ci=Xi[Br],bi,gn,tn=Ne.block();if(tn(Ft,".",Di,"("),En(ci)){var Ei=ci.length;bi=Ne.global.def(Ut,".",Br),gn=Ne.global.def(zt,".",Br),tn(S(Ei,function(Oi){return bi+"["+Oi+"]"}),");",S(Ei,function(Oi){return gn+"["+Oi+"]="+bi+"["+Oi+"];"}).join("")),$e("if(",S(Ei,function(Oi){return bi+"["+Oi+"]!=="+gn+"["+Oi+"]"}).join("||"),"){",tn,"}")}else bi=It.def(Ut,".",Br),gn=It.def(zt,".",Br),tn(bi,");",zt,".",Br,"=",bi,";"),$e("if(",bi,"!==",gn,"){",tn,"}");st(tn)}),Ne.compile()}(),compile:Nt}}function Ia(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var yo=34918,Da=34919,go=35007,Is=function(Me,bt){if(!bt.ext_disjoint_timer_query)return null;var Ot=[];function Lr(){return Ot.pop()||bt.ext_disjoint_timer_query.createQueryEXT()}function Vr(yi){Ot.push(yi)}var Or=[];function Nr(yi){var Ii=Lr();bt.ext_disjoint_timer_query.beginQueryEXT(go,Ii),Or.push(Ii),ji(Or.length-1,Or.length,yi)}function vi(){bt.ext_disjoint_timer_query.endQueryEXT(go)}function Ni(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var qi=[];function Si(){return qi.pop()||new Ni}function Vn(yi){qi.push(yi)}var Qi=[];function ji(yi,Ii,ui){var nn=Si();nn.startQueryIndex=yi,nn.endQueryIndex=Ii,nn.sum=0,nn.stats=ui,Qi.push(nn)}var oi=[],Tr=[];function Zr(){var yi,Ii,ui=Or.length;if(ui!==0){Tr.length=Math.max(Tr.length,ui+1),oi.length=Math.max(oi.length,ui+1),oi[0]=0,Tr[0]=0;var nn=0;for(yi=0,Ii=0;Ii=0;--O){var K=Nn[O];K&&K(oi,null,0)}Ot.flush(),Si&&Si.update()}function ba(){!ia&&Nn.length>0&&(ia=d.next(sa))}function is(){ia&&(d.cancel(sa),ia=null)}function Zs(O){O.preventDefault(),Vr=!0,is(),aa.forEach(function(K){K()})}function Ga(O){Ot.getError(),Vr=!1,Or.restore(),qn.restore(),Ii.restore(),fi.restore(),si.restore(),mn.restore(),nn.restore(),Si&&Si.restore(),Ji.procs.refresh(),ba(),Ki.forEach(function(K){K()})}pn&&(pn.addEventListener(Fo,Zs,!1),pn.addEventListener(Uo,Ga,!1));function Ml(){Nn.length=0,is(),pn&&(pn.removeEventListener(Fo,Zs),pn.removeEventListener(Uo,Ga)),qn.clear(),mn.clear(),si.clear(),nn.clear(),fi.clear(),ui.clear(),Ii.clear(),Si&&Si.clear(),Cn.forEach(function(O){O()})}function zo(O){function K(Ft){var Ut=e({},Ft);delete Ut.uniforms,delete Ut.attributes,delete Ut.context,delete Ut.vao,"stencil"in Ut&&Ut.stencil.op&&(Ut.stencil.opBack=Ut.stencil.opFront=Ut.stencil.op,delete Ut.stencil.op);function zt(_t){if(_t in Ut){var Dt=Ut[_t];delete Ut[_t],Object.keys(Dt).forEach(function(vt){Ut[_t+"."+vt]=Dt[vt]})}}return zt("blend"),zt("depth"),zt("cull"),zt("stencil"),zt("polygonOffset"),zt("scissor"),zt("sample"),"vao"in Ft&&(Ut.vao=Ft.vao),Ut}function de(Ft,Ut){var zt={},_t={};return Object.keys(Ft).forEach(function(Dt){var vt=Ft[Dt];if(h.isDynamic(vt)){_t[Dt]=h.unbox(vt,Dt);return}else if(Ut&&Array.isArray(vt)){for(var lr=0;lr0)return Ne.call(this,It(Ft|0),Ft|0)}else if(Array.isArray(Ft)){if(Ft.length)return Ne.call(this,Ft,Ft.length)}else return Nt.call(this,Ft)}return e(Bt,{stats:Yt,destroy:function(){cr.destroy()}})}var Qs=mn.setFBO=zo({framebuffer:h.define.call(null,$s,"framebuffer")});function al(O,K){var de=0;Ji.procs.poll();var ne=K.color;ne&&(Ot.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Ms),"depth"in K&&(Ot.clearDepth(+K.depth),de|=Xs),"stencil"in K&&(Ot.clearStencil(K.stencil|0),de|=Un),Ot.clear(de)}function Vl(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)Qs(e({framebuffer:O.framebuffer.faces[K]},O),al);else Qs(O,al);else al(null,O)}function ss(O){Nn.push(O);function K(){var de=dl(Nn,O);function ne(){var we=dl(Nn,ne);Nn[we]=Nn[Nn.length-1],Nn.length-=1,Nn.length<=0&&is()}Nn[de]=ne}return ba(),{cancel:K}}function Vs(){var O=Bi.viewport,K=Bi.scissor_box;O[0]=O[1]=K[0]=K[1]=0,oi.viewportWidth=oi.framebufferWidth=oi.drawingBufferWidth=O[2]=K[2]=Ot.drawingBufferWidth,oi.viewportHeight=oi.framebufferHeight=oi.drawingBufferHeight=O[3]=K[3]=Ot.drawingBufferHeight}function Ys(){oi.tick+=1,oi.time=ol(),Vs(),Ji.procs.poll()}function wa(){fi.refresh(),Vs(),Ji.procs.refresh(),Si&&Si.update()}function ol(){return(v()-Vn)/1e3}wa();function io(O,K){var de;switch(O){case"frame":return ss(K);case"lost":de=aa;break;case"restore":de=Ki;break;case"destroy":de=Cn;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:Ml,_gl:Ot,_refresh:wa,poll:function(){Ys(),Si&&Si.update()},now:ol,stats:vi,getCachedCode:Y,preloadCachedCode:D});return bt.onDone(null,J),J}return Sc})});var eBe=ye((S_r,QOe)=>{"use strict";var SUt=ty();QOe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},JOe(t)?t={container:t}:MUt(t)?t={container:t}:EUt(t)?t={gl:t}:t=SUt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}JOe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=$Oe(),t.container.appendChild(t.canvas),KOe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=$Oe(),t.container.appendChild(t.canvas),KOe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function KOe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function JOe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function MUt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function EUt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function $Oe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var rBe=ye((M_r,tBe)=>{"use strict";var kUt=lK(),CUt=[32,126];tBe.exports=LUt;function LUt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||CUt;if(n&&typeof n!="string"&&(n=kUt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=n,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=i[0]/2,f=i[1]/2,s=0;st[0]-i[0]/2&&(c=i[0]/2,f+=i[1]);return r}});var hK=ye(Vh=>{"use strict";"use restrict";var fK=32;Vh.INT_BITS=fK;Vh.INT_MAX=2147483647;Vh.INT_MIN=-1<0)-(e<0)};Vh.abs=function(e){var t=e>>fK-1;return(e^t)-t};Vh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Vh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Vh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function iBe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Vh.countTrailingZeros=iBe;Vh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Vh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Vh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Fk=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|Fk[e>>>16&255]<<8|Fk[e>>>24&255]};Vh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Vh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Vh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Vh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Vh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>iBe(e)+1}});var oBe=ye((k_r,aBe)=>{"use strict";function nBe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return PUt(e|0,t);break;case"object":if(typeof e.length=="number")return nBe(e,t,0);break}return[]}aBe.exports=IUt});var bBe=ye(mu=>{"use strict";var bx=hK(),Ev=oBe(),sBe=b2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Ev([32,0]),UINT16:Ev([32,0]),UINT32:Ev([32,0]),BIGUINT64:Ev([32,0]),INT8:Ev([32,0]),INT16:Ev([32,0]),INT32:Ev([32,0]),BIGINT64:Ev([32,0]),FLOAT:Ev([32,0]),DOUBLE:Ev([32,0]),DATA:Ev([32,0]),UINT8C:Ev([32,0]),BUFFER:Ev([32,0])});var RUt=typeof Uint8ClampedArray!="undefined",DUt=typeof BigUint64Array!="undefined",FUt=typeof BigInt64Array!="undefined",ad=window.__TYPEDARRAY_POOL;ad.UINT8C||(ad.UINT8C=Ev([32,0]));ad.BIGUINT64||(ad.BIGUINT64=Ev([32,0]));ad.BIGINT64||(ad.BIGINT64=Ev([32,0]));ad.BUFFER||(ad.BUFFER=Ev([32,0]));var Sz=ad.DATA,Mz=ad.BUFFER;mu.free=function(t){if(sBe.isBuffer(t))Mz[bx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=bx.log2(r)|0;Sz[n].push(t)}};function lBe(e){if(e){var t=e.length||e.byteLength,r=bx.log2(t);Sz[r].push(e)}}function zUt(e){lBe(e.buffer)}mu.freeUint8=mu.freeUint16=mu.freeUint32=mu.freeBigUint64=mu.freeInt8=mu.freeInt16=mu.freeInt32=mu.freeBigInt64=mu.freeFloat32=mu.freeFloat=mu.freeFloat64=mu.freeDouble=mu.freeUint8Clamped=mu.freeDataView=zUt;mu.freeArrayBuffer=lBe;mu.freeBuffer=function(t){Mz[bx.log2(t.length)].push(t)};mu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Bp(t);switch(r){case"uint8":return dK(t);case"uint16":return uBe(t);case"uint32":return cBe(t);case"int8":return fBe(t);case"int16":return hBe(t);case"int32":return dBe(t);case"float":case"float32":return vBe(t);case"double":case"float64":return pBe(t);case"uint8_clamped":return gBe(t);case"bigint64":return yBe(t);case"biguint64":return mBe(t);case"buffer":return xBe(t);case"data":case"dataview":return _Be(t);default:return null}return null};function Bp(t){var t=bx.nextPow2(t),r=bx.log2(t),n=Sz[r];return n.length>0?n.pop():new ArrayBuffer(t)}mu.mallocArrayBuffer=Bp;function dK(e){return new Uint8Array(Bp(e),0,e)}mu.mallocUint8=dK;function uBe(e){return new Uint16Array(Bp(2*e),0,e)}mu.mallocUint16=uBe;function cBe(e){return new Uint32Array(Bp(4*e),0,e)}mu.mallocUint32=cBe;function fBe(e){return new Int8Array(Bp(e),0,e)}mu.mallocInt8=fBe;function hBe(e){return new Int16Array(Bp(2*e),0,e)}mu.mallocInt16=hBe;function dBe(e){return new Int32Array(Bp(4*e),0,e)}mu.mallocInt32=dBe;function vBe(e){return new Float32Array(Bp(4*e),0,e)}mu.mallocFloat32=mu.mallocFloat=vBe;function pBe(e){return new Float64Array(Bp(8*e),0,e)}mu.mallocFloat64=mu.mallocDouble=pBe;function gBe(e){return RUt?new Uint8ClampedArray(Bp(e),0,e):dK(e)}mu.mallocUint8Clamped=gBe;function mBe(e){return DUt?new BigUint64Array(Bp(8*e),0,e):null}mu.mallocBigUint64=mBe;function yBe(e){return FUt?new BigInt64Array(Bp(8*e),0,e):null}mu.mallocBigInt64=yBe;function _Be(e){return new DataView(Bp(e),0,e)}mu.mallocDataView=_Be;function xBe(e){e=bx.nextPow2(e);var t=bx.log2(e),r=Mz[t];return r.length>0?r.pop():new sBe(e)}mu.mallocBuffer=xBe;mu.clearCache=function(){for(var t=0;t<32;++t)ad.UINT8[t].length=0,ad.UINT16[t].length=0,ad.UINT32[t].length=0,ad.INT8[t].length=0,ad.INT16[t].length=0,ad.INT32[t].length=0,ad.FLOAT[t].length=0,ad.DOUBLE[t].length=0,ad.BIGUINT64[t].length=0,ad.BIGINT64[t].length=0,ad.UINT8C[t].length=0,Sz[t].length=0,Mz[t].length=0}});var TBe=ye((L_r,wBe)=>{"use strict";var qUt=Object.prototype.toString;wBe.exports=function(e){var t;return qUt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var vK=ye((P_r,ABe)=>{ABe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var EBe=ye((I_r,MBe)=>{"use strict";var OUt=vK();MBe.exports=SBe;var zk=96;function pK(e,t){var r=OUt(getComputedStyle(e).getPropertyValue(t));return r[0]*SBe(r[1],e)}function BUt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=pK(r,"font-size")/128;return t.removeChild(r),n}function SBe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return BUt(e,t);case"em":return pK(t,"font-size");case"rem":return pK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return zk;case"cm":return zk/2.54;case"mm":return zk/25.4;case"pt":return zk/72;case"pc":return zk/6}return 1}});var LBe=ye((R_r,CBe)=>{"use strict";CBe.exports=Cz;var NUt=Cz.canvas=document.createElement("canvas"),Ez=NUt.getContext("2d"),kBe=kz([32,126]);Cz.createPairs=kz;Cz.ascii=kBe;function Cz(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=kz(t):Array.isArray(t)?n=t:(t.o?n=kz(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=kBe),Ez.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function kz(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";RBe.exports=wx;wx.canvas=document.createElement("canvas");wx.cache={};function wx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(wx.cache[r]&&n<=wx.cache[r].em)return PBe(wx.cache[r],s);var l=t.canvas||wx.canvas,u=l.getContext("2d"),c={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},f=Math.ceil(n*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var v=iy(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var m=iy(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-m+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=iy(u.getImageData(0,0,f,f)),p=f-b-1+v;d.baseline=d.alphabetic=p,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var k=iy(u.getImageData(0,0,f,f));d.median=d.middle=f-k-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var M=iy(u.getImageData(0,0,f,f));d.hanging=f-M-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var T=iy(u.getImageData(0,0,f,f));if(d.ideographic=f-T-1+v,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),d.upper=iy(u.getImageData(0,0,f,f)),d.capHeight=d.baseline-d.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),d.lower=iy(u.getImageData(0,0,f,f)),d.xHeight=d.baseline-d.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),d.tittle=iy(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),d.ascent=iy(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),d.descent=IBe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var L=IBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var x in d)d[x]/=n;return d.em=n,wx.cache[r]=d,PBe(d,s)}function PBe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function iy(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var OBe=ye((F_r,qBe)=>{"use strict";var x5=ZOe(),UUt=ty(),VUt=YOe(),GUt=eBe(),HUt=ZY(),gK=sx(),jUt=rBe(),Tx=bBe(),WUt=l5(),XUt=TBe(),ZUt=vK(),YUt=EBe(),KUt=LBe(),JUt=Nh(),$Ut=DBe(),QUt=aw(),eVt=hK(),FBe=eVt.nextPow2,zBe=new HUt,Pz=!1;document.body&&(Lz=document.body.appendChild(document.createElement("div")),Lz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Lz).fontStretch&&(Pz=!0),document.body.removeChild(Lz));var Lz,xc=function(t){tVt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=GUt(t),this.shader=zBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||VUt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),zBe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(XUt(t)?t:{})};xc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` +`),Zr;if(bt&&(Zr=qc(Tr),bt[Zr]))return bt[Zr].apply(null,Vr);var yi=Function.apply(null,Lr.concat(Tr));return bt&&(bt[Zr]=yi),yi.apply(null,Vr)}return{global:Si,link:Nr,block:vi,proc:Qi,scope:Ni,cond:qi,compile:Wi}}var Ca="xyzw".split(""),Ra=5121,La=1,Ua=2,Zn=0,Dn=1,Ka=2,bo=3,Zo=4,Ss=5,as=6,ws="dither",Ho="blend.enable",ml="blend.color",Ws="blend.equation",Ls="blend.func",va="depth.enable",no="depth.func",ys="depth.range",rs="depth.mask",Ql="colorMask",Cu="cull.enable",Yu="cull.face",Nc="frontFace",pu="lineWidth",Uc="polygonOffset.enable",xu="polygonOffset.offset",Ac="sample.alpha",Va="sample.enable",oo="sample.coverage",Vc="stencil.enable",hc="stencil.mask",Ku="stencil.func",ue="stencil.opFront",w="stencil.opBack",B="scissor.enable",Q="scissor.box",ee="viewport",le="profile",Fe="framebuffer",Ze="vert",ut="frag",Mt="elements",Jt="primitive",$t="count",yr="offset",Cr="instances",ve="vao",xe="Width",Ie="Height",ze=Fe+xe,Qe=Fe+Ie,Xe=ee+xe,nt=ee+Ie,qt="drawingBuffer",Wt=qt+xe,nr=qt+Ie,fr=[Ls,Ws,Ku,ue,w,oo,ee,Q,xu],br=34962,Fr=34963,Hr=2884,ri=3042,Ci=3024,cn=2960,sn=2929,Ln=3089,Kn=32823,Aa=32926,fa=32928,$a=5126,Co=35664,Qa=35665,mo=35666,Bo=5124,Ps=35667,Ts=35668,wo=35669,To=35670,hl=35671,Nl=35672,Lu=35673,au=35674,Js=35675,eu=35676,dc=35678,Al=35680,Sl=4,X=1028,se=1029,Te=2304,qe=2305,Ve=32775,Ye=32776,Pt=519,ot=7680,Xt=0,dr=1,pr=32774,Ur=513,zr=36160,gi=36064,xi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Wr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},di={cw:Te,ccw:qe};function Li(Me){return Array.isArray(Me)||qr(Me)||jr(Me)}function Ti(Me){return Me.sort(function(bt,Ot){return bt===ee?-1:Ot===ee?1:bt=1,Lr>=2,bt)}else if(Ot===Zo){var Vr=Me.data;return new Qr(Vr.thisDep,Vr.contextDep,Vr.propDep,bt)}else{if(Ot===Ss)return new Qr(!1,!1,!1,bt);if(Ot===as){for(var Or=!1,Nr=!1,vi=!1,Ni=0;Ni=1&&(Nr=!0),Si>=2&&(vi=!0)}else qi.type===Zo&&(Or=Or||qi.data.thisDep,Nr=Nr||qi.data.contextDep,vi=vi||qi.data.propDep)}return new Qr(Or,Nr,vi,bt)}else return new Qr(Ot===bo,Ot===Ka,Ot===Dn,bt)}}var na=new Qr(!1,!1,!1,function(){});function Ea(Me,bt,Ot,Lr,Vr,Or,Nr,vi,Ni,qi,Si,Vn,Qi,Wi,oi,Tr){var Zr=qi.Record,yi={add:32774,subtract:32778,"reverse subtract":32779};Ot.ext_blend_minmax&&(yi.min=Ve,yi.max=Ye);var Ii=Ot.angle_instanced_arrays,ui=Ot.webgl_draw_buffers,nn=Ot.oes_vertex_array_object,Zi={dirty:!0,profile:Tr.profile},qn={},fi=[],si={},mn={};function Ji(Ne){return Ne.replace(".","_")}function Ui(Ne,$e,st){var It=Ji(Ne);fi.push(Ne),qn[It]=Zi[It]=!!st,si[It]=$e}function Bi(Ne,$e,st){var It=Ji(Ne);fi.push(Ne),Array.isArray(st)?(Zi[It]=st.slice(),qn[It]=st.slice()):Zi[It]=qn[It]=st,mn[It]=$e}function pn(Ne){return!!isNaN(Ne)}Ui(ws,Ci),Ui(Ho,ri),Bi(ml,"blendColor",[0,0,0,0]),Bi(Ws,"blendEquationSeparate",[pr,pr]),Bi(Ls,"blendFuncSeparate",[dr,Xt,dr,Xt]),Ui(va,sn,!0),Bi(no,"depthFunc",Ur),Bi(ys,"depthRange",[0,1]),Bi(rs,"depthMask",!0),Bi(Ql,Ql,[!0,!0,!0,!0]),Ui(Cu,Hr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,qe),Bi(pu,pu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Va,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,cn),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Pt,0,-1]),Bi(ue,"stencilOpSeparate",[X,ot,ot,ot]),Bi(w,"stencilOpSeparate",[se,ot,ot,ot]),Ui(B,Ln),Bi(Q,"scissor",[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]),Bi(ee,ee,[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]);var Nn={gl:Me,context:Qi,strings:bt,next:qn,current:Zi,draw:Vn,elements:Or,buffer:Vr,shader:Si,attributes:qi.state,vao:qi,uniforms:Ni,framebuffer:vi,extensions:Ot,timer:Wi,isBufferArgs:Li},aa={primTypes:Mn,compareFuncs:Wr,blendFuncs:xi,blendEquations:yi,stencilOps:ii,glTypes:un,orientationType:di};ui&&(aa.backBuffer=[se],aa.drawBuffer=S(Lr.maxDrawbuffers,function(Ne){return Ne===0?[0]:S(Ne,function($e){return gi+$e})}));var Ki=0;function Cn(){var Ne=ta({cache:oi}),$e=Ne.link,st=Ne.global;Ne.id=Ki++,Ne.batchId="0";var It=$e(Nn),Bt=Ne.shared={props:"a0"};Object.keys(Nn).forEach(function(Dt){Bt[Dt]=st.def(It,".",Dt)});var Ft=Ne.next={},Ut=Ne.current={};Object.keys(mn).forEach(function(Dt){Array.isArray(Zi[Dt])&&(Ft[Dt]=st.def(Bt.next,".",Dt),Ut[Dt]=st.def(Bt.current,".",Dt))});var zt=Ne.constants={};Object.keys(aa).forEach(function(Dt){zt[Dt]=st.def(JSON.stringify(aa[Dt]))}),Ne.invoke=function(Dt,vt){switch(vt.type){case Zn:var lr=["this",Bt.context,Bt.props,Ne.batchId];return Dt.def($e(vt.data),".call(",lr.slice(0,Math.max(vt.data.length+1,4)),")");case Dn:return Dt.def(Bt.props,vt.data);case Ka:return Dt.def(Bt.context,vt.data);case bo:return Dt.def("this",vt.data);case Zo:return vt.data.append(Ne,Dt),vt.data.ref;case Ss:return vt.data.toString();case as:return vt.data.map(function(_r){return Ne.invoke(Dt,_r)})}},Ne.attribCache={};var _t={};return Ne.scopeAttrib=function(Dt){var vt=bt.id(Dt);if(vt in _t)return _t[vt];var lr=qi.scope[vt];lr||(lr=qi.scope[vt]=new Zr);var _r=_t[vt]=$e(lr);return _r},Ne}function ia(Ne){var $e=Ne.static,st=Ne.dynamic,It;if(le in $e){var Bt=!!$e[le];It=kn(function(Ut,zt){return Bt}),It.enable=Bt}else if(le in st){var Ft=st[le];It=Bn(Ft,function(Ut,zt){return Ut.invoke(zt,Ft)})}return It}function sa(Ne,$e){var st=Ne.static,It=Ne.dynamic;if(Fe in st){var Bt=st[Fe];return Bt?(Bt=vi.getFramebuffer(Bt),kn(function(Ut,zt){var _t=Ut.link(Bt),Dt=Ut.shared;zt.set(Dt.framebuffer,".next",_t);var vt=Dt.context;return zt.set(vt,"."+ze,_t+".width"),zt.set(vt,"."+Qe,_t+".height"),_t})):kn(function(Ut,zt){var _t=Ut.shared;zt.set(_t.framebuffer,".next","null");var Dt=_t.context;return zt.set(Dt,"."+ze,Dt+"."+Wt),zt.set(Dt,"."+Qe,Dt+"."+nr),"null"})}else if(Fe in It){var Ft=It[Fe];return Bn(Ft,function(Ut,zt){var _t=Ut.invoke(zt,Ft),Dt=Ut.shared,vt=Dt.framebuffer,lr=zt.def(vt,".getFramebuffer(",_t,")");zt.set(vt,".next",lr);var _r=Dt.context;return zt.set(_r,"."+ze,lr+"?"+lr+".width:"+_r+"."+Wt),zt.set(_r,"."+Qe,lr+"?"+lr+".height:"+_r+"."+nr),lr})}else return null}function ba(Ne,$e,st){var It=Ne.static,Bt=Ne.dynamic;function Ft(_t){if(_t in It){var Dt=It[_t],vt=!0,lr=Dt.x|0,_r=Dt.y|0,Br,Di;return"width"in Dt?Br=Dt.width|0:vt=!1,"height"in Dt?Di=Dt.height|0:vt=!1,new Qr(!vt&&$e&&$e.thisDep,!vt&&$e&&$e.contextDep,!vt&&$e&&$e.propDep,function(gn,tn){var Ei=gn.shared.context,Oi=Br;"width"in Dt||(Oi=tn.def(Ei,".",ze,"-",lr));var Gi=Di;return"height"in Dt||(Gi=tn.def(Ei,".",Qe,"-",_r)),[lr,_r,Oi,Gi]})}else if(_t in Bt){var ci=Bt[_t],bi=Bn(ci,function(gn,tn){var Ei=gn.invoke(tn,ci),Oi=gn.shared.context,Gi=tn.def(Ei,".x|0"),on=tn.def(Ei,".y|0"),zn=tn.def('"width" in ',Ei,"?",Ei,".width|0:","(",Oi,".",ze,"-",Gi,")"),Ja=tn.def('"height" in ',Ei,"?",Ei,".height|0:","(",Oi,".",Qe,"-",on,")");return[Gi,on,zn,Ja]});return $e&&(bi.thisDep=bi.thisDep||$e.thisDep,bi.contextDep=bi.contextDep||$e.contextDep,bi.propDep=bi.propDep||$e.propDep),bi}else return $e?new Qr($e.thisDep,$e.contextDep,$e.propDep,function(gn,tn){var Ei=gn.shared.context;return[0,0,tn.def(Ei,".",ze),tn.def(Ei,".",Qe)]}):null}var Ut=Ft(ee);if(Ut){var zt=Ut;Ut=new Qr(Ut.thisDep,Ut.contextDep,Ut.propDep,function(_t,Dt){var vt=zt.append(_t,Dt),lr=_t.shared.context;return Dt.set(lr,"."+Xe,vt[2]),Dt.set(lr,"."+nt,vt[3]),vt})}return{viewport:Ut,scissor_box:Ft(Q)}}function is(Ne,$e){var st=Ne.static,It=typeof st[ut]=="string"&&typeof st[Ze]=="string";if(It){if(Object.keys($e.dynamic).length>0)return null;var Bt=$e.static,Ft=Object.keys(Bt);if(Ft.length>0&&typeof Bt[Ft[0]]=="number"){for(var Ut=[],zt=0;zt"+Gi+"?"+vt+".constant["+Gi+"]:0;"}).join(""),"}}else{","if(",Br,"(",vt,".buffer)){",gn,"=",Di,".createStream(",br,",",vt,".buffer);","}else{",gn,"=",Di,".getBuffer(",vt,".buffer);","}",tn,'="type" in ',vt,"?",_r.glTypes,"[",vt,".type]:",gn,".dtype;",ci.normalized,"=!!",vt,".normalized;");function Ei(Oi){Dt(ci[Oi],"=",vt,".",Oi,"|0;")}return Ei("size"),Ei("offset"),Ei("stride"),Ei("divisor"),Dt("}}"),Dt.exit("if(",ci.isStream,"){",Di,".destroyStream(",gn,");","}"),ci}Bt[Ft]=Bn(Ut,zt)}),Bt}function nl(Ne){var $e=Ne.static,st=Ne.dynamic,It={};return Object.keys($e).forEach(function(Bt){var Ft=$e[Bt];It[Bt]=kn(function(Ut,zt){return typeof Ft=="number"||typeof Ft=="boolean"?""+Ft:Ut.link(Ft)})}),Object.keys(st).forEach(function(Bt){var Ft=st[Bt];It[Bt]=Bn(Ft,function(Ut,zt){return Ut.invoke(zt,Ft)})}),It}function Ul(Ne,$e,st,It,Bt){var Ft=Ne.static,Ut=Ne.dynamic,zt=is(Ne,$e),_t=sa(Ne,Bt),Dt=ba(Ne,_t,Bt),vt=Ga(Ne,Bt),lr=El(Ne,Bt),_r=Zs(Ne,Bt,zt);function Br(Ei){var Oi=Dt[Ei];Oi&&(lr[Ei]=Oi)}Br(ee),Br(Ji(Q));var Di=Object.keys(lr).length>0,ci={framebuffer:_t,draw:vt,shader:_r,state:lr,dirty:Di,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(ci.profile=ia(Ne,Bt),ci.uniforms=zo(st,Bt),ci.drawVAO=ci.scopeVAO=vt.vao,!ci.drawVAO&&_r.program&&!zt&&Ot.angle_instanced_arrays&&vt.static.elements){var bi=!0,gn=_r.program.attributes.map(function(Ei){var Oi=$e.static[Ei];return bi=bi&&!!Oi,Oi});if(bi&&gn.length>0){var tn=qi.getVAO(qi.createVAO({attributes:gn,elements:vt.static.elements}));ci.drawVAO=new Qr(null,null,null,function(Ei,Oi){return Ei.link(tn)}),ci.useVAO=!0}}return zt?ci.useVAO=!0:ci.attributes=Qs($e,Bt),ci.context=nl(It,Bt),ci}function ss(Ne,$e,st){var It=Ne.shared,Bt=It.context,Ft=Ne.scope();Object.keys(st).forEach(function(Ut){$e.save(Bt,"."+Ut);var zt=st[Ut],_t=zt.append(Ne,$e);Array.isArray(_t)?Ft(Bt,".",Ut,"=[",_t.join(),"];"):Ft(Bt,".",Ut,"=",_t,";")}),$e(Ft)}function Vs(Ne,$e,st,It){var Bt=Ne.shared,Ft=Bt.gl,Ut=Bt.framebuffer,zt;ui&&(zt=$e.def(Bt.extensions,".webgl_draw_buffers"));var _t=Ne.constants,Dt=_t.drawBuffer,vt=_t.backBuffer,lr;st?lr=st.append(Ne,$e):lr=$e.def(Ut,".next"),It||$e("if(",lr,"!==",Ut,".cur){"),$e("if(",lr,"){",Ft,".bindFramebuffer(",zr,",",lr,".framebuffer);"),ui&&$e(zt,".drawBuffersWEBGL(",Dt,"[",lr,".colorAttachments.length]);"),$e("}else{",Ft,".bindFramebuffer(",zr,",null);"),ui&&$e(zt,".drawBuffersWEBGL(",vt,");"),$e("}",Ut,".cur=",lr,";"),It||$e("}")}function Ys(Ne,$e,st){var It=Ne.shared,Bt=It.gl,Ft=Ne.current,Ut=Ne.next,zt=It.current,_t=It.next,Dt=Ne.cond(zt,".dirty");fi.forEach(function(vt){var lr=Ji(vt);if(!(lr in st.state)){var _r,Br;if(lr in Ut){_r=Ut[lr],Br=Ft[lr];var Di=S(Zi[lr].length,function(bi){return Dt.def(_r,"[",bi,"]")});Dt(Ne.cond(Di.map(function(bi,gn){return bi+"!=="+Br+"["+gn+"]"}).join("||")).then(Bt,".",mn[lr],"(",Di,");",Di.map(function(bi,gn){return Br+"["+gn+"]="+bi}).join(";"),";"))}else{_r=Dt.def(_t,".",lr);var ci=Ne.cond(_r,"!==",zt,".",lr);Dt(ci),lr in si?ci(Ne.cond(_r).then(Bt,".enable(",si[lr],");").else(Bt,".disable(",si[lr],");"),zt,".",lr,"=",_r,";"):ci(Bt,".",mn[lr],"(",_r,");",zt,".",lr,"=",_r,";")}}}),Object.keys(st.state).length===0&&Dt(zt,".dirty=false;"),$e(Dt)}function wa(Ne,$e,st,It){var Bt=Ne.shared,Ft=Ne.current,Ut=Bt.current,zt=Bt.gl,_t;Ti(Object.keys(st)).forEach(function(Dt){var vt=st[Dt];if(!(It&&!It(vt))){var lr=vt.append(Ne,$e);if(si[Dt]){var _r=si[Dt];Pn(vt)?(_t=Ne.link(lr,{stable:!0}),$e(Ne.cond(_t).then(zt,".enable(",_r,");").else(zt,".disable(",_r,");")),$e(Ut,".",Dt,"=",_t,";")):($e(Ne.cond(lr).then(zt,".enable(",_r,");").else(zt,".disable(",_r,");")),$e(Ut,".",Dt,"=",lr,";"))}else if(En(lr)){var Br=Ft[Dt];$e(zt,".",mn[Dt],"(",lr,");",lr.map(function(Di,ci){return Br+"["+ci+"]="+Di}).join(";"),";")}else Pn(vt)?(_t=Ne.link(lr,{stable:!0}),$e(zt,".",mn[Dt],"(",_t,");",Ut,".",Dt,"=",_t,";")):$e(zt,".",mn[Dt],"(",lr,");",Ut,".",Dt,"=",lr,";")}})}function al(Ne,$e){Ii&&(Ne.instancing=$e.def(Ne.shared.extensions,".angle_instanced_arrays"))}function io(Ne,$e,st,It,Bt){var Ft=Ne.shared,Ut=Ne.stats,zt=Ft.current,_t=Ft.timer,Dt=st.profile;function vt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var lr,_r;function Br(Ei){lr=$e.def(),Ei(lr,"=",vt(),";"),typeof Bt=="string"?Ei(Ut,".count+=",Bt,";"):Ei(Ut,".count++;"),Wi&&(It?(_r=$e.def(),Ei(_r,"=",_t,".getNumPendingQueries();")):Ei(_t,".beginQuery(",Ut,");"))}function Di(Ei){Ei(Ut,".cpuTime+=",vt(),"-",lr,";"),Wi&&(It?Ei(_t,".pushScopeStats(",_r,",",_t,".getNumPendingQueries(),",Ut,");"):Ei(_t,".endQuery();"))}function ci(Ei){var Oi=$e.def(zt,".profile");$e(zt,".profile=",Ei,";"),$e.exit(zt,".profile=",Oi,";")}var bi;if(Dt){if(Pn(Dt)){Dt.enable?(Br($e),Di($e.exit),ci("true")):ci("false");return}bi=Dt.append(Ne,$e),ci(bi)}else bi=$e.def(zt,".profile");var gn=Ne.block();Br(gn),$e("if(",bi,"){",gn,"}");var tn=Ne.block();Di(tn),$e.exit("if(",bi,"){",tn,"}")}function Y(Ne,$e,st,It,Bt){var Ft=Ne.shared;function Ut(_t){switch(_t){case Co:case Ps:case hl:return 2;case Qa:case Ts:case Nl:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function zt(_t,Dt,vt){var lr=Ft.gl,_r=$e.def(_t,".location"),Br=$e.def(Ft.attributes,"[",_r,"]"),Di=vt.state,ci=vt.buffer,bi=[vt.x,vt.y,vt.z,vt.w],gn=["buffer","normalized","offset","stride"];function tn(){$e("if(!",Br,".buffer){",lr,".enableVertexAttribArray(",_r,");}");var Oi=vt.type,Gi;if(vt.size?Gi=$e.def(vt.size,"||",Dt):Gi=Dt,$e("if(",Br,".type!==",Oi,"||",Br,".size!==",Gi,"||",gn.map(function(zn){return Br+"."+zn+"!=="+vt[zn]}).join("||"),"){",lr,".bindBuffer(",br,",",ci,".buffer);",lr,".vertexAttribPointer(",[_r,Gi,Oi,vt.normalized,vt.stride,vt.offset],");",Br,".type=",Oi,";",Br,".size=",Gi,";",gn.map(function(zn){return Br+"."+zn+"="+vt[zn]+";"}).join(""),"}"),Ii){var on=vt.divisor;$e("if(",Br,".divisor!==",on,"){",Ne.instancing,".vertexAttribDivisorANGLE(",[_r,on],");",Br,".divisor=",on,";}")}}function Ei(){$e("if(",Br,".buffer){",lr,".disableVertexAttribArray(",_r,");",Br,".buffer=null;","}if(",Ca.map(function(Oi,Gi){return Br+"."+Oi+"!=="+bi[Gi]}).join("||"),"){",lr,".vertexAttrib4f(",_r,",",bi,");",Ca.map(function(Oi,Gi){return Br+"."+Oi+"="+bi[Gi]+";"}).join(""),"}")}Di===La?tn():Di===Ua?Ei():($e("if(",Di,"===",La,"){"),tn(),$e("}else{"),Ei(),$e("}"))}It.forEach(function(_t){var Dt=_t.name,vt=st.attributes[Dt],lr;if(vt){if(!Bt(vt))return;lr=vt.append(Ne,$e)}else{if(!Bt(na))return;var _r=Ne.scopeAttrib(Dt);lr={},Object.keys(new Zr).forEach(function(Br){lr[Br]=$e.def(_r,".",Br)})}zt(Ne.link(_t),Ut(_t.info.type),lr)})}function D(Ne,$e,st,It,Bt,Ft){for(var Ut=Ne.shared,zt=Ut.gl,_t,Dt=0;Dt1){for(var co=[],ts=[],so=0;so>1)",ci],");")}function on(){st(bi,".drawArraysInstancedANGLE(",[_r,Br,Di,ci],");")}vt&&vt!=="null"?tn?Gi():(st("if(",vt,"){"),Gi(),st("}else{"),on(),st("}")):on()}function Oi(){function Gi(){st(Ft+".drawElements("+[_r,Di,gn,Br+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){st(Ft+".drawArrays("+[_r,Br,Di]+");")}vt&&vt!=="null"?tn?Gi():(st("if(",vt,"){"),Gi(),st("}else{"),on(),st("}")):on()}Ii&&(typeof ci!="number"||ci>=0)?typeof ci=="string"?(st("if(",ci,">0){"),Ei(),st("}else if(",ci,"<0){"),Oi(),st("}")):Ei():Oi()}function O(Ne,$e,st,It,Bt){var Ft=Cn(),Ut=Ft.proc("body",Bt);return Ii&&(Ft.instancing=Ut.def(Ft.shared.extensions,".angle_instanced_arrays")),Ne(Ft,Ut,st,It),Ft.compile().body}function K(Ne,$e,st,It){al(Ne,$e),st.useVAO?st.drawVAO?$e(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,$e),");"):$e(Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"):($e(Ne.shared.vao,".setVAO(null);"),Y(Ne,$e,st,It.attributes,function(){return!0})),D(Ne,$e,st,It.uniforms,function(){return!0},!1),J(Ne,$e,$e,st)}function de(Ne,$e){var st=Ne.proc("draw",1);al(Ne,st),ss(Ne,st,$e.context),Vs(Ne,st,$e.framebuffer),Ys(Ne,st,$e),wa(Ne,st,$e.state),io(Ne,st,$e,!1,!0);var It=$e.shader.progVar.append(Ne,st);if(st(Ne.shared.gl,".useProgram(",It,".program);"),$e.shader.program)K(Ne,st,$e,$e.shader.program);else{st(Ne.shared.vao,".setVAO(null);");var Bt=Ne.global.def("{}"),Ft=st.def(It,".id"),Ut=st.def(Bt,"[",Ft,"]");st(Ne.cond(Ut).then(Ut,".call(this,a0);").else(Ut,"=",Bt,"[",Ft,"]=",Ne.link(function(zt){return O(K,Ne,$e,zt,1)}),"(",It,");",Ut,".call(this,a0);"))}Object.keys($e.state).length>0&&st(Ne.shared.current,".dirty=true;"),Ne.shared.vao&&st(Ne.shared.vao,".setVAO(null);")}function ne(Ne,$e,st,It){Ne.batchId="a1",al(Ne,$e);function Bt(){return!0}Y(Ne,$e,st,It.attributes,Bt),D(Ne,$e,st,It.uniforms,Bt,!1),J(Ne,$e,$e,st)}function we(Ne,$e,st,It){al(Ne,$e);var Bt=st.contextDep,Ft=$e.def(),Ut="a0",zt="a1",_t=$e.def();Ne.shared.props=_t,Ne.batchId=Ft;var Dt=Ne.scope(),vt=Ne.scope();$e(Dt.entry,"for(",Ft,"=0;",Ft,"<",zt,";++",Ft,"){",_t,"=",Ut,"[",Ft,"];",vt,"}",Dt.exit);function lr(gn){return gn.contextDep&&Bt||gn.propDep}function _r(gn){return!lr(gn)}if(st.needsContext&&ss(Ne,vt,st.context),st.needsFramebuffer&&Vs(Ne,vt,st.framebuffer),wa(Ne,vt,st.state,lr),st.profile&&lr(st.profile)&&io(Ne,vt,st,!1,!0),It)st.useVAO?st.drawVAO?lr(st.drawVAO)?vt(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,vt),");"):Dt(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,Dt),");"):Dt(Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"):(Dt(Ne.shared.vao,".setVAO(null);"),Y(Ne,Dt,st,It.attributes,_r),Y(Ne,vt,st,It.attributes,lr)),D(Ne,Dt,st,It.uniforms,_r,!1),D(Ne,vt,st,It.uniforms,lr,!0),J(Ne,Dt,vt,st);else{var Br=Ne.global.def("{}"),Di=st.shader.progVar.append(Ne,vt),ci=vt.def(Di,".id"),bi=vt.def(Br,"[",ci,"]");vt(Ne.shared.gl,".useProgram(",Di,".program);","if(!",bi,"){",bi,"=",Br,"[",ci,"]=",Ne.link(function(gn){return O(ne,Ne,st,gn,2)}),"(",Di,");}",bi,".call(this,a0[",Ft,"],",Ft,");")}}function Oe(Ne,$e){var st=Ne.proc("batch",2);Ne.batchId="0",al(Ne,st);var It=!1,Bt=!0;Object.keys($e.context).forEach(function(Br){It=It||$e.context[Br].propDep}),It||(ss(Ne,st,$e.context),Bt=!1);var Ft=$e.framebuffer,Ut=!1;Ft?(Ft.propDep?It=Ut=!0:Ft.contextDep&&It&&(Ut=!0),Ut||Vs(Ne,st,Ft)):Vs(Ne,st,null),$e.state.viewport&&$e.state.viewport.propDep&&(It=!0);function zt(Br){return Br.contextDep&&It||Br.propDep}Ys(Ne,st,$e),wa(Ne,st,$e.state,function(Br){return!zt(Br)}),(!$e.profile||!zt($e.profile))&&io(Ne,st,$e,!1,"a1"),$e.contextDep=It,$e.needsContext=Bt,$e.needsFramebuffer=Ut;var _t=$e.shader.progVar;if(_t.contextDep&&It||_t.propDep)we(Ne,st,$e,null);else{var Dt=_t.append(Ne,st);if(st(Ne.shared.gl,".useProgram(",Dt,".program);"),$e.shader.program)we(Ne,st,$e,$e.shader.program);else{st(Ne.shared.vao,".setVAO(null);");var vt=Ne.global.def("{}"),lr=st.def(Dt,".id"),_r=st.def(vt,"[",lr,"]");st(Ne.cond(_r).then(_r,".call(this,a0,a1);").else(_r,"=",vt,"[",lr,"]=",Ne.link(function(Br){return O(we,Ne,$e,Br,2)}),"(",Dt,");",_r,".call(this,a0,a1);"))}}Object.keys($e.state).length>0&&st(Ne.shared.current,".dirty=true;"),Ne.shared.vao&&st(Ne.shared.vao,".setVAO(null);")}function ht(Ne,$e){var st=Ne.proc("scope",3);Ne.batchId="a2";var It=Ne.shared,Bt=It.current;if(ss(Ne,st,$e.context),$e.framebuffer&&$e.framebuffer.append(Ne,st),Ti(Object.keys($e.state)).forEach(function(zt){var _t=$e.state[zt],Dt=_t.append(Ne,st);En(Dt)?Dt.forEach(function(vt,lr){pn(vt)?st.set(Ne.next[zt],"["+lr+"]",vt):st.set(Ne.next[zt],"["+lr+"]",Ne.link(vt,{stable:!0}))}):Pn(_t)?st.set(It.next,"."+zt,Ne.link(Dt,{stable:!0})):st.set(It.next,"."+zt,Dt)}),io(Ne,st,$e,!0,!0),[Mt,yr,$t,Cr,Jt].forEach(function(zt){var _t=$e.draw[zt];if(_t){var Dt=_t.append(Ne,st);pn(Dt)?st.set(It.draw,"."+zt,Dt):st.set(It.draw,"."+zt,Ne.link(Dt),{stable:!0})}}),Object.keys($e.uniforms).forEach(function(zt){var _t=$e.uniforms[zt].append(Ne,st);Array.isArray(_t)&&(_t="["+_t.map(function(Dt){return pn(Dt)?Dt:Ne.link(Dt,{stable:!0})})+"]"),st.set(It.uniforms,"["+Ne.link(bt.id(zt),{stable:!0})+"]",_t)}),Object.keys($e.attributes).forEach(function(zt){var _t=$e.attributes[zt].append(Ne,st),Dt=Ne.scopeAttrib(zt);Object.keys(new Zr).forEach(function(vt){st.set(Dt,"."+vt,_t[vt])})}),$e.scopeVAO){var Ft=$e.scopeVAO.append(Ne,st);pn(Ft)?st.set(It.vao,".targetVAO",Ft):st.set(It.vao,".targetVAO",Ne.link(Ft,{stable:!0}))}function Ut(zt){var _t=$e.shader[zt];if(_t){var Dt=_t.append(Ne,st);pn(Dt)?st.set(It.shader,"."+zt,Dt):st.set(It.shader,"."+zt,Ne.link(Dt,{stable:!0}))}}Ut(Ze),Ut(ut),Object.keys($e.state).length>0&&(st(Bt,".dirty=true;"),st.exit(Bt,".dirty=true;")),st("a1(",Ne.shared.context,",a0,",Ne.batchId,");")}function Yt(Ne){if(!(typeof Ne!="object"||En(Ne))){for(var $e=Object.keys(Ne),st=0;st<$e.length;++st)if(h.isDynamic(Ne[$e[st]]))return!0;return!1}}function cr(Ne,$e,st){var It=$e.static[st];if(!It||!Yt(It))return;var Bt=Ne.global,Ft=Object.keys(It),Ut=!1,zt=!1,_t=!1,Dt=Ne.global.def("{}");Ft.forEach(function(lr){var _r=It[lr];if(h.isDynamic(_r)){typeof _r=="function"&&(_r=It[lr]=h.unbox(_r));var Br=Bn(_r,null);Ut=Ut||Br.thisDep,_t=_t||Br.propDep,zt=zt||Br.contextDep}else{switch(Bt(Dt,".",lr,"="),typeof _r){case"number":Bt(_r);break;case"string":Bt('"',_r,'"');break;case"object":Array.isArray(_r)&&Bt("[",_r.join(),"]");break;default:Bt(Ne.link(_r));break}Bt(";")}});function vt(lr,_r){Ft.forEach(function(Br){var Di=It[Br];if(h.isDynamic(Di)){var ci=lr.invoke(_r,Di);_r(Dt,".",Br,"=",ci,";")}})}$e.dynamic[st]=new h.DynamicVariable(Zo,{thisDep:Ut,contextDep:zt,propDep:_t,ref:Dt,append:vt}),delete $e.static[st]}function Nt(Ne,$e,st,It,Bt){var Ft=Cn();Ft.stats=Ft.link(Bt),Object.keys($e.static).forEach(function(zt){cr(Ft,$e,zt)}),fr.forEach(function(zt){cr(Ft,Ne,zt)});var Ut=Ul(Ne,$e,st,It,Ft);return Ut.shader.program&&(Ut.shader.program.attributes.sort(function(zt,_t){return zt.name<_t.name?-1:1}),Ut.shader.program.uniforms.sort(function(zt,_t){return zt.name<_t.name?-1:1})),de(Ft,Ut),ht(Ft,Ut),Oe(Ft,Ut),e(Ft.compile(),{destroy:function(){Ut.shader.program.destroy()}})}return{next:qn,current:Zi,procs:(function(){var Ne=Cn(),$e=Ne.proc("poll"),st=Ne.proc("refresh"),It=Ne.block();$e(It),st(It);var Bt=Ne.shared,Ft=Bt.gl,Ut=Bt.next,zt=Bt.current;It(zt,".dirty=false;"),Vs(Ne,$e),Vs(Ne,st,null,!0);var _t;Ii&&(_t=Ne.link(Ii)),Ot.oes_vertex_array_object&&st(Ne.link(Ot.oes_vertex_array_object),".bindVertexArrayOES(null);");var Dt=st.def(Bt.attributes),vt=st.def(0),lr=Ne.cond(vt,".buffer");lr.then(Ft,".enableVertexAttribArray(i);",Ft,".bindBuffer(",br,",",vt,".buffer.buffer);",Ft,".vertexAttribPointer(i,",vt,".size,",vt,".type,",vt,".normalized,",vt,".stride,",vt,".offset);").else(Ft,".disableVertexAttribArray(i);",Ft,".vertexAttrib4f(i,",vt,".x,",vt,".y,",vt,".z,",vt,".w);",vt,".buffer=null;");var _r=Ne.link(Lr.maxAttributes,{stable:!0});return st("for(var i=0;i<",_r,";++i){",vt,"=",Dt,"[i];",lr,"}"),Ii&&st("for(var i=0;i<",_r,";++i){",_t,".vertexAttribDivisorANGLE(i,",Dt,"[i].divisor);","}"),st(Ne.shared.vao,".currentVAO=null;",Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"),Object.keys(si).forEach(function(Br){var Di=si[Br],ci=It.def(Ut,".",Br),bi=Ne.block();bi("if(",ci,"){",Ft,".enable(",Di,")}else{",Ft,".disable(",Di,")}",zt,".",Br,"=",ci,";"),st(bi),$e("if(",ci,"!==",zt,".",Br,"){",bi,"}")}),Object.keys(mn).forEach(function(Br){var Di=mn[Br],ci=Zi[Br],bi,gn,tn=Ne.block();if(tn(Ft,".",Di,"("),En(ci)){var Ei=ci.length;bi=Ne.global.def(Ut,".",Br),gn=Ne.global.def(zt,".",Br),tn(S(Ei,function(Oi){return bi+"["+Oi+"]"}),");",S(Ei,function(Oi){return gn+"["+Oi+"]="+bi+"["+Oi+"];"}).join("")),$e("if(",S(Ei,function(Oi){return bi+"["+Oi+"]!=="+gn+"["+Oi+"]"}).join("||"),"){",tn,"}")}else bi=It.def(Ut,".",Br),gn=It.def(zt,".",Br),tn(bi,");",zt,".",Br,"=",bi,";"),$e("if(",bi,"!==",gn,"){",tn,"}");st(tn)}),Ne.compile()})(),compile:Nt}}function Ia(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var yo=34918,Da=34919,go=35007,Is=function(Me,bt){if(!bt.ext_disjoint_timer_query)return null;var Ot=[];function Lr(){return Ot.pop()||bt.ext_disjoint_timer_query.createQueryEXT()}function Vr(yi){Ot.push(yi)}var Or=[];function Nr(yi){var Ii=Lr();bt.ext_disjoint_timer_query.beginQueryEXT(go,Ii),Or.push(Ii),Wi(Or.length-1,Or.length,yi)}function vi(){bt.ext_disjoint_timer_query.endQueryEXT(go)}function Ni(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var qi=[];function Si(){return qi.pop()||new Ni}function Vn(yi){qi.push(yi)}var Qi=[];function Wi(yi,Ii,ui){var nn=Si();nn.startQueryIndex=yi,nn.endQueryIndex=Ii,nn.sum=0,nn.stats=ui,Qi.push(nn)}var oi=[],Tr=[];function Zr(){var yi,Ii,ui=Or.length;if(ui!==0){Tr.length=Math.max(Tr.length,ui+1),oi.length=Math.max(oi.length,ui+1),oi[0]=0,Tr[0]=0;var nn=0;for(yi=0,Ii=0;Ii=0;--O){var K=Nn[O];K&&K(oi,null,0)}Ot.flush(),Si&&Si.update()}function ba(){!ia&&Nn.length>0&&(ia=d.next(sa))}function is(){ia&&(d.cancel(sa),ia=null)}function Zs(O){O.preventDefault(),Vr=!0,is(),aa.forEach(function(K){K()})}function Ga(O){Ot.getError(),Vr=!1,Or.restore(),qn.restore(),Ii.restore(),fi.restore(),si.restore(),mn.restore(),nn.restore(),Si&&Si.restore(),Ji.procs.refresh(),ba(),Ki.forEach(function(K){K()})}pn&&(pn.addEventListener(Fo,Zs,!1),pn.addEventListener(Uo,Ga,!1));function El(){Nn.length=0,is(),pn&&(pn.removeEventListener(Fo,Zs),pn.removeEventListener(Uo,Ga)),qn.clear(),mn.clear(),si.clear(),nn.clear(),fi.clear(),ui.clear(),Ii.clear(),Si&&Si.clear(),Cn.forEach(function(O){O()})}function zo(O){function K(Ft){var Ut=e({},Ft);delete Ut.uniforms,delete Ut.attributes,delete Ut.context,delete Ut.vao,"stencil"in Ut&&Ut.stencil.op&&(Ut.stencil.opBack=Ut.stencil.opFront=Ut.stencil.op,delete Ut.stencil.op);function zt(_t){if(_t in Ut){var Dt=Ut[_t];delete Ut[_t],Object.keys(Dt).forEach(function(vt){Ut[_t+"."+vt]=Dt[vt]})}}return zt("blend"),zt("depth"),zt("cull"),zt("stencil"),zt("polygonOffset"),zt("scissor"),zt("sample"),"vao"in Ft&&(Ut.vao=Ft.vao),Ut}function de(Ft,Ut){var zt={},_t={};return Object.keys(Ft).forEach(function(Dt){var vt=Ft[Dt];if(h.isDynamic(vt)){_t[Dt]=h.unbox(vt,Dt);return}else if(Ut&&Array.isArray(vt)){for(var lr=0;lr0)return Ne.call(this,It(Ft|0),Ft|0)}else if(Array.isArray(Ft)){if(Ft.length)return Ne.call(this,Ft,Ft.length)}else return Nt.call(this,Ft)}return e(Bt,{stats:Yt,destroy:function(){cr.destroy()}})}var Qs=mn.setFBO=zo({framebuffer:h.define.call(null,$s,"framebuffer")});function nl(O,K){var de=0;Ji.procs.poll();var ne=K.color;ne&&(Ot.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Ms),"depth"in K&&(Ot.clearDepth(+K.depth),de|=Xs),"stencil"in K&&(Ot.clearStencil(K.stencil|0),de|=Un),Ot.clear(de)}function Ul(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)Qs(e({framebuffer:O.framebuffer.faces[K]},O),nl);else Qs(O,nl);else nl(null,O)}function ss(O){Nn.push(O);function K(){var de=dl(Nn,O);function ne(){var we=dl(Nn,ne);Nn[we]=Nn[Nn.length-1],Nn.length-=1,Nn.length<=0&&is()}Nn[de]=ne}return ba(),{cancel:K}}function Vs(){var O=Bi.viewport,K=Bi.scissor_box;O[0]=O[1]=K[0]=K[1]=0,oi.viewportWidth=oi.framebufferWidth=oi.drawingBufferWidth=O[2]=K[2]=Ot.drawingBufferWidth,oi.viewportHeight=oi.framebufferHeight=oi.drawingBufferHeight=O[3]=K[3]=Ot.drawingBufferHeight}function Ys(){oi.tick+=1,oi.time=al(),Vs(),Ji.procs.poll()}function wa(){fi.refresh(),Vs(),Ji.procs.refresh(),Si&&Si.update()}function al(){return(v()-Vn)/1e3}wa();function io(O,K){var de;switch(O){case"frame":return ss(K);case"lost":de=aa;break;case"restore":de=Ki;break;case"destroy":de=Cn;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:El,_gl:Ot,_refresh:wa,poll:function(){Ys(),Si&&Si.update()},now:al,stats:vi,getCachedCode:Y,preloadCachedCode:D});return bt.onDone(null,J),J}return Sc}))});var aBe=ye((G_r,nBe)=>{"use strict";var VUt=ry();nBe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},rBe(t)?t={container:t}:GUt(t)?t={container:t}:HUt(t)?t={gl:t}:t=VUt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}rBe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=iBe(),t.container.appendChild(t.canvas),tBe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=iBe(),t.container.appendChild(t.canvas),tBe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function tBe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function rBe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function GUt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function HUt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function iBe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var sBe=ye((H_r,oBe)=>{"use strict";var jUt=fK(),WUt=[32,126];oBe.exports=XUt;function XUt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||WUt;if(n&&typeof n!="string"&&(n=jUt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=n,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=i[0]/2,f=i[1]/2,s=0;st[0]-i[0]/2&&(c=i[0]/2,f+=i[1]);return r}});var pK=ye(Vh=>{"use strict";"use restrict";var vK=32;Vh.INT_BITS=vK;Vh.INT_MAX=2147483647;Vh.INT_MIN=-1<0)-(e<0)};Vh.abs=function(e){var t=e>>vK-1;return(e^t)-t};Vh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Vh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Vh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function lBe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Vh.countTrailingZeros=lBe;Vh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Vh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Vh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var qk=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|qk[e>>>16&255]<<8|qk[e>>>24&255]};Vh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Vh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Vh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Vh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Vh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>lBe(e)+1}});var fBe=ye((W_r,cBe)=>{"use strict";function uBe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return ZUt(e|0,t);break;case"object":if(typeof e.length=="number")return uBe(e,t,0);break}return[]}cBe.exports=YUt});var MBe=ye(mu=>{"use strict";var bx=pK(),Ev=fBe(),hBe=w2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Ev([32,0]),UINT16:Ev([32,0]),UINT32:Ev([32,0]),BIGUINT64:Ev([32,0]),INT8:Ev([32,0]),INT16:Ev([32,0]),INT32:Ev([32,0]),BIGINT64:Ev([32,0]),FLOAT:Ev([32,0]),DOUBLE:Ev([32,0]),DATA:Ev([32,0]),UINT8C:Ev([32,0]),BUFFER:Ev([32,0])});var KUt=typeof Uint8ClampedArray!="undefined",JUt=typeof BigUint64Array!="undefined",$Ut=typeof BigInt64Array!="undefined",ad=window.__TYPEDARRAY_POOL;ad.UINT8C||(ad.UINT8C=Ev([32,0]));ad.BIGUINT64||(ad.BIGUINT64=Ev([32,0]));ad.BIGINT64||(ad.BIGINT64=Ev([32,0]));ad.BUFFER||(ad.BUFFER=Ev([32,0]));var Ez=ad.DATA,kz=ad.BUFFER;mu.free=function(t){if(hBe.isBuffer(t))kz[bx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=bx.log2(r)|0;Ez[n].push(t)}};function dBe(e){if(e){var t=e.length||e.byteLength,r=bx.log2(t);Ez[r].push(e)}}function QUt(e){dBe(e.buffer)}mu.freeUint8=mu.freeUint16=mu.freeUint32=mu.freeBigUint64=mu.freeInt8=mu.freeInt16=mu.freeInt32=mu.freeBigInt64=mu.freeFloat32=mu.freeFloat=mu.freeFloat64=mu.freeDouble=mu.freeUint8Clamped=mu.freeDataView=QUt;mu.freeArrayBuffer=dBe;mu.freeBuffer=function(t){kz[bx.log2(t.length)].push(t)};mu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Bp(t);switch(r){case"uint8":return gK(t);case"uint16":return vBe(t);case"uint32":return pBe(t);case"int8":return gBe(t);case"int16":return mBe(t);case"int32":return yBe(t);case"float":case"float32":return _Be(t);case"double":case"float64":return xBe(t);case"uint8_clamped":return bBe(t);case"bigint64":return TBe(t);case"biguint64":return wBe(t);case"buffer":return SBe(t);case"data":case"dataview":return ABe(t);default:return null}return null};function Bp(t){var t=bx.nextPow2(t),r=bx.log2(t),n=Ez[r];return n.length>0?n.pop():new ArrayBuffer(t)}mu.mallocArrayBuffer=Bp;function gK(e){return new Uint8Array(Bp(e),0,e)}mu.mallocUint8=gK;function vBe(e){return new Uint16Array(Bp(2*e),0,e)}mu.mallocUint16=vBe;function pBe(e){return new Uint32Array(Bp(4*e),0,e)}mu.mallocUint32=pBe;function gBe(e){return new Int8Array(Bp(e),0,e)}mu.mallocInt8=gBe;function mBe(e){return new Int16Array(Bp(2*e),0,e)}mu.mallocInt16=mBe;function yBe(e){return new Int32Array(Bp(4*e),0,e)}mu.mallocInt32=yBe;function _Be(e){return new Float32Array(Bp(4*e),0,e)}mu.mallocFloat32=mu.mallocFloat=_Be;function xBe(e){return new Float64Array(Bp(8*e),0,e)}mu.mallocFloat64=mu.mallocDouble=xBe;function bBe(e){return KUt?new Uint8ClampedArray(Bp(e),0,e):gK(e)}mu.mallocUint8Clamped=bBe;function wBe(e){return JUt?new BigUint64Array(Bp(8*e),0,e):null}mu.mallocBigUint64=wBe;function TBe(e){return $Ut?new BigInt64Array(Bp(8*e),0,e):null}mu.mallocBigInt64=TBe;function ABe(e){return new DataView(Bp(e),0,e)}mu.mallocDataView=ABe;function SBe(e){e=bx.nextPow2(e);var t=bx.log2(e),r=kz[t];return r.length>0?r.pop():new hBe(e)}mu.mallocBuffer=SBe;mu.clearCache=function(){for(var t=0;t<32;++t)ad.UINT8[t].length=0,ad.UINT16[t].length=0,ad.UINT32[t].length=0,ad.INT8[t].length=0,ad.INT16[t].length=0,ad.INT32[t].length=0,ad.FLOAT[t].length=0,ad.DOUBLE[t].length=0,ad.BIGUINT64[t].length=0,ad.BIGINT64[t].length=0,ad.UINT8C[t].length=0,Ez[t].length=0,kz[t].length=0}});var kBe=ye((Z_r,EBe)=>{"use strict";var eVt=Object.prototype.toString;EBe.exports=function(e){var t;return eVt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var mK=ye((Y_r,CBe)=>{CBe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var IBe=ye((K_r,PBe)=>{"use strict";var tVt=mK();PBe.exports=LBe;var Ok=96;function yK(e,t){var r=tVt(getComputedStyle(e).getPropertyValue(t));return r[0]*LBe(r[1],e)}function rVt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=yK(r,"font-size")/128;return t.removeChild(r),n}function LBe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return rVt(e,t);case"em":return yK(t,"font-size");case"rem":return yK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Ok;case"cm":return Ok/2.54;case"mm":return Ok/25.4;case"pt":return Ok/72;case"pc":return Ok/6}return 1}});var FBe=ye((J_r,DBe)=>{"use strict";DBe.exports=Pz;var iVt=Pz.canvas=document.createElement("canvas"),Cz=iVt.getContext("2d"),RBe=Lz([32,126]);Pz.createPairs=Lz;Pz.ascii=RBe;function Pz(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=Lz(t):Array.isArray(t)?n=t:(t.o?n=Lz(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=RBe),Cz.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function Lz(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";OBe.exports=wx;wx.canvas=document.createElement("canvas");wx.cache={};function wx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(wx.cache[r]&&n<=wx.cache[r].em)return zBe(wx.cache[r],s);var l=t.canvas||wx.canvas,u=l.getContext("2d"),c={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},f=Math.ceil(n*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var v=ny(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var m=ny(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-m+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=ny(u.getImageData(0,0,f,f)),p=f-b-1+v;d.baseline=d.alphabetic=p,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var k=ny(u.getImageData(0,0,f,f));d.median=d.middle=f-k-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var M=ny(u.getImageData(0,0,f,f));d.hanging=f-M-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var T=ny(u.getImageData(0,0,f,f));if(d.ideographic=f-T-1+v,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),d.upper=ny(u.getImageData(0,0,f,f)),d.capHeight=d.baseline-d.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),d.lower=ny(u.getImageData(0,0,f,f)),d.xHeight=d.baseline-d.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),d.tittle=ny(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),d.ascent=ny(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),d.descent=qBe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var L=qBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var x in d)d[x]/=n;return d.em=n,wx.cache[r]=d,zBe(d,s)}function zBe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function ny(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var GBe=ye((Q_r,VBe)=>{"use strict";var w5=QOe(),nVt=ry(),aVt=eBe(),oVt=aBe(),sVt=JY(),_K=lx(),lVt=sBe(),Tx=MBe(),uVt=c5(),cVt=kBe(),fVt=mK(),hVt=IBe(),dVt=FBe(),vVt=Nh(),pVt=BBe(),gVt=sw(),mVt=pK(),NBe=mVt.nextPow2,UBe=new sVt,Rz=!1;document.body&&(Iz=document.body.appendChild(document.createElement("div")),Iz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Iz).fontStretch&&(Rz=!0),document.body.removeChild(Iz));var Iz,xc=function(t){yVt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=oVt(t),this.shader=UBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||aVt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),UBe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(cVt(t)?t:{})};xc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -2705,17 +2705,17 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),n={};return{regl:t,draw:r,atlas:n}};xc.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=UUt(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Ce){return parseFloat(Ce)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=WUt(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=QUt(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xc.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Ce,ge){if(typeof Ce=="string")try{Ce=x5.parse(Ce)}catch(He){Ce=x5.parse(xc.baseFontSize+"px "+Ce)}else{var re=Ce.style,Se=Ce.weight,ke=Ce.stretch,be=Ce.variant;Ce=x5.parse(x5.stringify(Ce)),re&&(Ce.style=re),Se&&(Ce.weight=Se),ke&&(Ce.stretch=ke),be&&(Ce.variant=be)}var Be=x5.stringify({size:xc.baseFontSize,family:Ce.family,stretch:Pz?Ce.stretch:void 0,variant:Ce.variant,weight:Ce.weight,style:Ce.style}),Le=ZUt(Ce.size),me=Math.round(Le[0]*YUt(Le[1]));if(me!==r.fontSize[ge]&&(i=!0,r.fontSize[ge]=me),(!r.font[ge]||Be!=r.font[ge].baseString)&&(n=!0,r.font[ge]=xc.fonts[Be],!r.font[ge])){var Pe=Ce.family.join(", "),ce=[Ce.style];Ce.style!=Ce.variant&&ce.push(Ce.variant),Ce.variant!=Ce.weight&&ce.push(Ce.weight),Pz&&Ce.weight!=Ce.stretch&&ce.push(Ce.stretch),r.font[ge]={baseString:Be,family:Pe,weight:Ce.weight,stretch:Ce.stretch,style:Ce.style,variant:Ce.variant,width:{},kerning:{},metrics:$Ut(Pe,{origin:"top",fontSize:xc.baseFontSize,fontStyle:ce.join(" ")})},xc.fonts[Be]=r.font[ge]}}),(n||i)&&this.font.forEach(function(Ce,ge){var re=x5.stringify({size:r.fontSize[ge],family:Ce.family,stretch:Pz?Ce.stretch:void 0,variant:Ce.variant,weight:Ce.weight,style:Ce.style});if(r.fontAtlas[ge]=r.shader.atlas[re],!r.fontAtlas[ge]){var Se=Ce.metrics;r.shader.atlas[re]=r.fontAtlas[ge]={fontString:re,step:Math.ceil(r.fontSize[ge]*Se.bottom*.5)*2,em:r.fontSize[ge],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,c=Tx.mallocFloat(this.count*2),f=0,h=0;f1?r.align[ge]:r.align[0]:r.align;if(typeof re=="number")return re;switch(re){case"right":case"end":return-Ce;case"center":case"centre":case"middle":return-Ce*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ce,ge){var re=(r.font[ge]||r.font[0]).metrics,Se=0;return Se+=re.bottom*.5,typeof Ce=="number"?Se+=Ce-re.baseline:Se+=-re[Ce],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=gK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var Z=t.color.length;G=Tx.mallocUint8(Z);for(var j=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ae){var _e=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(_e);for(var Ee=0;Ee1?this.counts[Ee]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ee]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ee*4,Ee*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ee]:this.opacity,baseline:this.baselineOffset[Ee]!=null?this.baselineOffset[Ee]:this.baselineOffset[0],align:this.align?this.alignOffset[Ee]!=null?this.alignOffset[Ee]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ee]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ee*2,Ee*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xc.prototype.destroy=function(){};xc.prototype.kerning=!0;xc.prototype.position={constant:new Float32Array(2)};xc.prototype.translate=null;xc.prototype.scale=null;xc.prototype.font=null;xc.prototype.text="";xc.prototype.positionOffset=[0,0];xc.prototype.opacity=1;xc.prototype.color=new Uint8Array([0,0,0,255]);xc.prototype.alignOffset=[0,0];xc.maxAtlasSize=1024;xc.atlasCanvas=document.createElement("canvas");xc.atlasContext=xc.atlasCanvas.getContext("2d",{alpha:!1});xc.baseFontSize=64;xc.fonts={};function tVt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}qBe.exports=xc});var BBe=ye((mK,yK)=>{(function(e,t){typeof mK=="object"&&typeof yK!="undefined"?yK.exports=t():e.createREGL=t()})(mK,function(){"use strict";var e=function(Me,bt){for(var Ot=Object.keys(bt),Lr=0;Lr1&&bt===Ot&&(bt==='"'||bt==="'"))return['"'+o(Me.substr(1,Me.length-2))+'"'];var Lr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Me);if(Lr)return s(Me.substr(0,Lr.index)).concat(s(Lr[1])).concat(s(Me.substr(Lr.index+Lr[0].length)));var Vr=Me.split(".");if(Vr.length===1)return['"'+o(Me)+'"'];for(var Or=[],Nr=0;Nr65535)<<4,Me>>>=bt,Ot=(Me>255)<<3,Me>>>=Ot,bt|=Ot,Ot=(Me>15)<<2,Me>>>=Ot,bt|=Ot,Ot=(Me>3)<<1,Me>>>=Ot,bt|=Ot,bt|Me>>1}function N(){var Me=S(8,function(){return[]});function bt(Or){var Nr=Z(Or),vi=Me[j(Nr)>>2];return vi.length>0?vi.pop():new ArrayBuffer(Nr)}function Ot(Or){Me[j(Or.byteLength)>>2].push(Or)}function Lr(Or,Nr){var vi=null;switch(Or){case g:vi=new Int8Array(bt(Nr),0,Nr);break;case P:vi=new Uint8Array(bt(Nr),0,Nr);break;case E:vi=new Int16Array(bt(2*Nr),0,Nr);break;case z:vi=new Uint16Array(bt(2*Nr),0,Nr);break;case q:vi=new Int32Array(bt(4*Nr),0,Nr);break;case V:vi=new Uint32Array(bt(4*Nr),0,Nr);break;case G:vi=new Float32Array(bt(4*Nr),0,Nr);break;default:return null}return vi.length!==Nr?vi.subarray(0,Nr):vi}function Vr(Or){Ot(Or.buffer)}return{alloc:bt,free:Ot,allocType:Lr,freeType:Vr}}var H=N();H.zero=N();var ie=3408,ae=3410,_e=3411,Ee=3412,Ce=3413,ge=3414,re=3415,Se=33901,ke=33902,be=3379,Be=3386,Le=34921,me=36347,Pe=36348,ce=35661,He=35660,lt=34930,mt=36349,Ht=34076,at=34024,ct=7936,ar=7937,Vt=7938,rr=35724,tt=34047,je=36063,Ue=34852,Ae=3553,rt=34067,St=34069,Tt=33984,dt=6408,Et=5126,pt=5121,jt=36160,or=36053,mr=36064,Ar=16384,ei=function(Me,bt){var Ot=1;bt.ext_texture_filter_anisotropic&&(Ot=Me.getParameter(tt));var Lr=1,Vr=1;bt.webgl_draw_buffers&&(Lr=Me.getParameter(Ue),Vr=Me.getParameter(je));var Or=!!bt.oes_texture_float;if(Or){var Nr=Me.createTexture();Me.bindTexture(Ae,Nr),Me.texImage2D(Ae,0,dt,1,1,0,dt,Et,null);var vi=Me.createFramebuffer();if(Me.bindFramebuffer(jt,vi),Me.framebufferTexture2D(jt,mr,Ae,Nr,0),Me.bindTexture(Ae,null),Me.checkFramebufferStatus(jt)!==or)Or=!1;else{Me.viewport(0,0,1,1),Me.clearColor(1,0,0,1),Me.clear(Ar);var Ni=H.allocType(Et,4);Me.readPixels(0,0,1,1,dt,Et,Ni),Me.getError()?Or=!1:(Me.deleteFramebuffer(vi),Me.deleteTexture(Nr),Or=Ni[0]===1),H.freeType(Ni)}}var qi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Si=!0;if(!qi){var Vn=Me.createTexture(),Qi=H.allocType(pt,36);Me.activeTexture(Tt),Me.bindTexture(rt,Vn),Me.texImage2D(St,0,dt,3,3,0,dt,pt,Qi),H.freeType(Qi),Me.bindTexture(rt,null),Me.deleteTexture(Vn),Si=!Me.getError()}return{colorBits:[Me.getParameter(ae),Me.getParameter(_e),Me.getParameter(Ee),Me.getParameter(Ce)],depthBits:Me.getParameter(ge),stencilBits:Me.getParameter(re),subpixelBits:Me.getParameter(ie),extensions:Object.keys(bt).filter(function(ji){return!!bt[ji]}),maxAnisotropic:Ot,maxDrawbuffers:Lr,maxColorAttachments:Vr,pointSizeDims:Me.getParameter(Se),lineWidthDims:Me.getParameter(ke),maxViewportDims:Me.getParameter(Be),maxCombinedTextureUnits:Me.getParameter(ce),maxCubeMapSize:Me.getParameter(Ht),maxRenderbufferSize:Me.getParameter(at),maxTextureUnits:Me.getParameter(lt),maxTextureSize:Me.getParameter(be),maxAttributes:Me.getParameter(Le),maxVertexUniforms:Me.getParameter(me),maxVertexTextureUnits:Me.getParameter(He),maxVaryingVectors:Me.getParameter(Pe),maxFragmentUniforms:Me.getParameter(mt),glsl:Me.getParameter(rr),renderer:Me.getParameter(ar),vendor:Me.getParameter(ct),version:Me.getParameter(Vt),readFloat:Or,npotTextureCube:Si}},qr=function(Me){return Me instanceof Uint8Array||Me instanceof Uint16Array||Me instanceof Uint32Array||Me instanceof Int8Array||Me instanceof Int16Array||Me instanceof Int32Array||Me instanceof Float32Array||Me instanceof Float64Array||Me instanceof Uint8ClampedArray};function jr(Me){return!!Me&&typeof Me=="object"&&Array.isArray(Me.shape)&&Array.isArray(Me.stride)&&typeof Me.offset=="number"&&Me.shape.length===Me.stride.length&&(Array.isArray(Me.data)||qr(Me.data))}var gt=function(Me){return Object.keys(Me).map(function(bt){return Me[bt]})},Ge={shape:Kt,flatten:At};function Je(Me,bt,Ot){for(var Lr=0;Lr0){var qn;if(Array.isArray(Zr[0])){Xi=Vi(Zr);for(var fi=1,si=1;si0){if(typeof fi[0]=="number"){var Ui=H.allocType(ui.dtype,fi.length);wr(Ui,fi),Xi(Ui,mn),H.freeType(Ui)}else if(Array.isArray(fi[0])||qr(fi[0])){Ji=Vi(fi);var Bi=Qn(fi,Ji,ui.dtype);Xi(Bi,mn),H.freeType(Bi)}}}else if(jr(fi)){Ji=fi.shape;var pn=fi.stride,Nn=0,aa=0,Ki=0,Cn=0;Ji.length===1?(Nn=Ji[0],aa=1,Ki=pn[0],Cn=0):Ji.length===2&&(Nn=Ji[0],aa=Ji[1],Ki=pn[0],Cn=pn[1]);var ia=Array.isArray(fi.data)?ui.dtype:ir(fi.data),sa=H.allocType(ia,Nn*aa);Xr(sa,fi.data,Nn,aa,Ki,Cn,fi.offset),Xi(sa,mn),H.freeType(sa)}return nn}return yi||nn(Tr),nn._reglType="buffer",nn._buffer=ui,nn.subdata=qn,Ot.profile&&(nn.stats=ui.stats),nn.destroy=function(){Qi(ui)},nn}function oi(){gt(Or).forEach(function(Tr){Tr.buffer=Me.createBuffer(),Me.bindBuffer(Tr.type,Tr.buffer),Me.bufferData(Tr.type,Tr.persistentData||Tr.byteLength,Tr.usage)})}return Ot.profile&&(bt.getTotalBufferSize=function(){var Tr=0;return Object.keys(Or).forEach(function(Zr){Tr+=Or[Zr].stats.size}),Tr}),{create:ji,createStream:Ni,destroyStream:qi,clear:function(){gt(Or).forEach(Qi),vi.forEach(Qi)},getBuffer:function(Tr){return Tr&&Tr._buffer instanceof Nr?Tr._buffer:null},restore:oi,_initBuffer:Vn}}var $r=0,Ri=0,Zi=1,en=1,fn=4,yn=4,Mn={points:$r,point:Ri,lines:Zi,line:en,triangles:fn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,ua=1,ma=4,Wa=5120,Fa=5121,Xo=5122,da=5123,jn=5124,Ha=5125,vo=34963,Gn=35040,Ct=35044;function Sr(Me,bt,Ot,Lr){var Vr={},Or=0,Nr={uint8:Fa,uint16:da};bt.oes_element_index_uint&&(Nr.uint32=Ha);function vi(oi){this.id=Or++,Vr[this.id]=this,this.buffer=oi,this.primType=ma,this.vertCount=0,this.type=0}vi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function qi(oi){var Tr=Ni.pop();return Tr||(Tr=new vi(Ot.create(null,vo,!0,!1)._buffer)),Vn(Tr,oi,Gn,-1,-1,0,0),Tr}function Si(oi){Ni.push(oi)}function Vn(oi,Tr,Zr,yi,Ii,ui,nn){oi.buffer.bind();var Xi;if(Tr){var qn=nn;!nn&&(!qr(Tr)||jr(Tr)&&!qr(Tr.data))&&(qn=bt.oes_element_index_uint?Ha:da),Ot._initBuffer(oi.buffer,Tr,Zr,qn,3)}else Me.bufferData(vo,ui,Zr),oi.buffer.dtype=Xi||Fa,oi.buffer.usage=Zr,oi.buffer.dimension=3,oi.buffer.byteLength=ui;if(Xi=nn,!nn){switch(oi.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Xo:Xi=da;break;case Ha:case jn:Xi=Ha;break;default:}oi.buffer.dtype=Xi}oi.type=Xi;var fi=Ii;fi<0&&(fi=oi.buffer.byteLength,Xi===da?fi>>=1:Xi===Ha&&(fi>>=2)),oi.vertCount=fi;var si=yi;if(yi<0){si=ma;var mn=oi.buffer.dimension;mn===1&&(si=Ba),mn===2&&(si=ua),mn===3&&(si=ma)}oi.primType=si}function Qi(oi){Lr.elementsCount--,delete Vr[oi.id],oi.buffer.destroy(),oi.buffer=null}function ji(oi,Tr){var Zr=Ot.create(null,vo,!0),yi=new vi(Zr._buffer);Lr.elementsCount++;function Ii(ui){if(!ui)Zr(),yi.primType=ma,yi.vertCount=0,yi.type=Fa;else if(typeof ui=="number")Zr(ui),yi.primType=ma,yi.vertCount=ui|0,yi.type=Fa;else{var nn=null,Xi=Ct,qn=-1,fi=-1,si=0,mn=0;Array.isArray(ui)||qr(ui)||jr(ui)?nn=ui:("data"in ui&&(nn=ui.data),"usage"in ui&&(Xi=Hn[ui.usage]),"primitive"in ui&&(qn=Mn[ui.primitive]),"count"in ui&&(fi=ui.count|0),"type"in ui&&(mn=Nr[ui.type]),"length"in ui?si=ui.length|0:(si=fi,mn===da||mn===Xo?si*=2:(mn===Ha||mn===jn)&&(si*=4))),Vn(yi,nn,Xi,qn,fi,si,mn)}return Ii}return Ii(oi),Ii._reglType="elements",Ii._elements=yi,Ii.subdata=function(ui,nn){return Zr.subdata(ui,nn),Ii},Ii.destroy=function(){Qi(yi)},Ii}return{create:ji,createStream:qi,destroyStream:Si,getElements:function(oi){return typeof oi=="function"&&oi._elements instanceof vi?oi._elements:null},clear:function(){gt(Vr).forEach(Qi)}}}var Jr=new Float32Array(1),hi=new Uint32Array(Jr.buffer),hn=5123;function Sn(Me){for(var bt=H.allocType(hn,Me.length),Ot=0;Ot>>31<<15,Or=(Lr<<1>>>24)-127,Nr=Lr>>13&1023;if(Or<-24)bt[Ot]=Vr;else if(Or<-14){var vi=-14-Or;bt[Ot]=Vr+(Nr+1024>>vi)}else Or>15?bt[Ot]=Vr+31744:bt[Ot]=Vr+(Or+15<<10)+Nr}return bt}function En(Me){return Array.isArray(Me)||qr(Me)}var ki=34467,_n=3553,ya=34067,ea=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,ko=32854,Ds=32855,Fs=36194,ll=32819,ul=32820,zl=33635,us=34042,il=6402,As=34041,cl=35904,Ks=35906,zs=36193,Io=33776,ls=33777,Yl=33778,Su=33779,nc=35986,bs=35987,Rn=34798,_a=35840,Vu=35841,ql=35842,xo=35843,Kl=36196,Ns=5121,Hl=5123,ac=5125,oa=5126,qo=10242,Oo=10243,Ol=10497,Pc=33071,Do=33648,nf=10240,Vf=10241,pl=9728,Zc=9729,Jl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,jh=4353,Lf=4354,cs=34046,af=3317,Gf=37440,$l=37441,fl=37443,lc=37444,Fu=33984,Es=[Jl,yu,qs,oc],Hs=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[il]=1,Go[As]=Go[Lo]=2,Go[No]=Go[cl]=3,Go[Ma]=Go[Ks]=4;function ps(Me){return"[object "+Me+"]"}var uc=ps("HTMLCanvasElement"),xl=ps("OffscreenCanvas"),Gu=ps("CanvasRenderingContext2D"),Os=ps("ImageBitmap"),od=ps("HTMLImageElement"),Po=ps("HTMLVideoElement"),sd=Object.keys(Qt).concat([uc,xl,Gu,Os,od,Po]),Ko=[];Ko[Ns]=1,Ko[oa]=4,Ko[zs]=2,Ko[Hl]=2,Ko[ac]=4;var Pa=[];Pa[ko]=2,Pa[Ds]=2,Pa[Fs]=2,Pa[As]=4,Pa[Io]=.5,Pa[ls]=.5,Pa[Yl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[bs]=1,Pa[Rn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[ql]=.5,Pa[xo]=.25,Pa[Kl]=.5;function of(Me){return Array.isArray(Me)&&(Me.length===0||typeof Me[0]=="number")}function Hu(Me){if(!Array.isArray(Me))return!1;var bt=Me.length;return!(bt===0||!En(Me[0]))}function bl(Me){return Object.prototype.toString.call(Me)}function Hf(Me){return bl(Me)===uc}function Ic(Me){return bl(Me)===xl}function yf(Me){return bl(Me)===Gu}function Bl(Me){return bl(Me)===Os}function Ah(Me){return bl(Me)===od}function Qf(Me){return bl(Me)===Po}function _f(Me){if(!Me)return!1;var bt=bl(Me);return sd.indexOf(bt)>=0?!0:of(Me)||Hu(Me)||jr(Me)}function Yc(Me){return Qt[Object.prototype.toString.call(Me)]|0}function eh(Me,bt){var Ot=bt.length;switch(Me.type){case Ns:case Hl:case ac:case oa:var Lr=H.allocType(Me.type,Ot);Lr.set(bt),Me.data=Lr;break;case zs:Me.data=Sn(bt);break;default:}}function th(Me,bt){return H.allocType(Me.type===zs?oa:Me.type,bt)}function ju(Me,bt){Me.type===zs?(Me.data=Sn(bt),H.freeType(bt)):Me.data=bt}function jf(Me,bt,Ot,Lr,Vr,Or){for(var Nr=Me.width,vi=Me.height,Ni=Me.channels,qi=Nr*vi*Ni,Si=th(Me,qi),Vn=0,Qi=0;Qi=1;)vi+=Nr*Ni*Ni,Ni/=2;return vi}else return Nr*Ot*Lr}function sf(Me,bt,Ot,Lr,Vr,Or,Nr){var vi={"don't care":sc,"dont care":sc,nice:Lf,fast:jh},Ni={repeat:Ol,clamp:Pc,mirror:Do},qi={nearest:pl,linear:Zc},Si=e({mipmap:oc,"nearest mipmap nearest":Jl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},qi),Vn={none:0,browser:lc},Qi={uint8:Ns,rgba4:ll,rgb565:zl,"rgb5 a1":ul},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:ko,"rgb5 a1":Ds,rgb565:Fs},oi={};bt.ext_srgb&&(ji.srgb=cl,ji.srgba=Ks),bt.oes_texture_float&&(Qi.float32=Qi.float=oa),bt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=zs),bt.webgl_depth_texture&&(e(ji,{depth:il,"depth stencil":As}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":us})),bt.webgl_compressed_texture_s3tc&&e(oi,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":ls,"rgba s3tc dxt3":Yl,"rgba s3tc dxt5":Su}),bt.webgl_compressed_texture_atc&&e(oi,{"rgb atc":nc,"rgba atc explicit alpha":bs,"rgba atc interpolated alpha":Rn}),bt.webgl_compressed_texture_pvrtc&&e(oi,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":ql,"rgba pvrtc 2bppv1":xo}),bt.webgl_compressed_texture_etc1&&(oi["rgb etc1"]=Kl);var Tr=Array.prototype.slice.call(Me.getParameter(ki));Object.keys(oi).forEach(function(ne){var we=oi[ne];Tr.indexOf(we)>=0&&(ji[ne]=we)});var Zr=Object.keys(ji);Ot.textureFormats=Zr;var yi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];yi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ui=[];Object.keys(qi).forEach(function(ne){var we=qi[ne];ui[we]=ne});var nn=[];Object.keys(Si).forEach(function(ne){var we=Si[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Zr.reduce(function(ne,we){var Oe=ji[we];return Oe===po||Oe===_o||Oe===po||Oe===Lo||Oe===il||Oe===As||bt.ext_srgb&&(Oe===cl||Oe===Ks)?ne[Oe]=Oe:Oe===Ds||we.indexOf("rgba")>=0?ne[Oe]=Ma:ne[Oe]=No,ne},{});function fi(){this.internalformat=Ma,this.format=Ma,this.type=Ns,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function si(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Vn[we.colorSpace]),"type"in we){var Oe=we.type;ne.type=Qi[Oe]}var ht=ne.width,Yt=ne.height,cr=ne.channels,Nt=!1;"shape"in we?(ht=we.shape[0],Yt=we.shape[1],we.shape.length===3&&(cr=we.shape[2],Nt=!0)):("radius"in we&&(ht=Yt=we.radius),"width"in we&&(ht=we.width),"height"in we&&(Yt=we.height),"channels"in we&&(cr=we.channels,Nt=!0)),ne.width=ht|0,ne.height=Yt|0,ne.channels=cr|0;var Ne=!1;if("format"in we){var $e=we.format,st=ne.internalformat=ji[$e];ne.format=qn[st],$e in Qi&&("type"in we||(ne.type=Qi[$e])),$e in oi&&(ne.compressed=!0),Ne=!0}!Nt&&Ne?ne.channels=Go[ne.format]:Nt&&!Ne&&ne.channels!==Hs[ne.format]&&(ne.format=ne.internalformat=Hs[ne.channels])}}function Ji(ne){Me.pixelStorei(Gf,ne.flipY),Me.pixelStorei($l,ne.premultiplyAlpha),Me.pixelStorei(fl,ne.colorSpace),Me.pixelStorei(af,ne.unpackAlignment)}function Ui(){fi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Oe=null;if(_f(we)?Oe=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),_f(we.data)&&(Oe=we.data)),we.copy){var ht=Vr.viewportWidth,Yt=Vr.viewportHeight;ne.width=ne.width||ht-ne.xOffset,ne.height=ne.height||Yt-ne.yOffset,ne.needsCopy=!0}else if(!Oe)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(qr(Oe))ne.channels=ne.channels||4,ne.data=Oe,!("type"in we)&&ne.type===Ns&&(ne.type=Yc(Oe));else if(of(Oe))ne.channels=ne.channels||4,eh(ne,Oe),ne.alignment=1,ne.needsFree=!0;else if(jr(Oe)){var cr=Oe.data;!Array.isArray(cr)&&ne.type===Ns&&(ne.type=Yc(cr));var Nt=Oe.shape,Ne=Oe.stride,$e,st,It,Bt,Ft,Ut;Nt.length===3?(It=Nt[2],Ut=Ne[2]):(It=1,Ut=1),$e=Nt[0],st=Nt[1],Bt=Ne[0],Ft=Ne[1],ne.alignment=1,ne.width=$e,ne.height=st,ne.channels=It,ne.format=ne.internalformat=Hs[It],ne.needsFree=!0,jf(ne,cr,Bt,Ft,Ut,Oe.offset)}else if(Hf(Oe)||Ic(Oe)||yf(Oe))Hf(Oe)||Ic(Oe)?ne.element=Oe:ne.element=Oe.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Bl(Oe))ne.element=Oe,ne.width=Oe.width,ne.height=Oe.height,ne.channels=4;else if(Ah(Oe))ne.element=Oe,ne.width=Oe.naturalWidth,ne.height=Oe.naturalHeight,ne.channels=4;else if(Qf(Oe))ne.element=Oe,ne.width=Oe.videoWidth,ne.height=Oe.videoHeight,ne.channels=4;else if(Hu(Oe)){var zt=ne.width||Oe[0].length,_t=ne.height||Oe.length,Dt=ne.channels;En(Oe[0][0])?Dt=Dt||Oe[0][0].length:Dt=Dt||1;for(var vt=Ge.shape(Oe),lr=1,_r=0;_r>=Yt,Oe.height>>=Yt,Bi(Oe,ht[Yt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ht=we.mag;ne.magFilter=qi[ht]}var Yt=ne.wrapS,cr=ne.wrapT;if("wrap"in we){var Nt=we.wrap;typeof Nt=="string"?Yt=cr=Ni[Nt]:Array.isArray(Nt)&&(Yt=Ni[Nt[0]],cr=Ni[Nt[1]])}else{if("wrapS"in we){var Ne=we.wrapS;Yt=Ni[Ne]}if("wrapT"in we){var $e=we.wrapT;cr=Ni[$e]}}if(ne.wrapS=Yt,ne.wrapT=cr,"anisotropic"in we){var st=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var It=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=vi[we.mipmap],ne.genMipmaps=!0,It=!0;break;case"boolean":It=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,It=!0;break;default:}It&&!("min"in we)&&(ne.minFilter=Jl)}}function al(ne,we){Me.texParameteri(we,Vf,ne.minFilter),Me.texParameteri(we,nf,ne.magFilter),Me.texParameteri(we,qo,ne.wrapS),Me.texParameteri(we,Oo,ne.wrapT),bt.ext_texture_filter_anisotropic&&Me.texParameteri(we,cs,ne.anisotropic),ne.genMipmaps&&(Me.hint(Cf,ne.mipmapHint),Me.generateMipmap(we))}var Vl=0,ss={},Vs=Ot.maxTextureUnits,Ys=Array(Vs).map(function(){return null});function wa(ne){fi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Vl++,this.refCount=1,this.target=ne,this.texture=Me.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Nr.profile&&(this.stats={size:0})}function ol(ne){Me.activeTexture(Fu),Me.bindTexture(ne.target,ne.texture)}function io(){var ne=Ys[0];ne?Me.bindTexture(ne.target,ne.texture):Me.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Oe=ne.unit,ht=ne.target;Oe>=0&&(Me.activeTexture(Fu+Oe),Me.bindTexture(ht,null),Ys[Oe]=null),Me.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ss[ne.id],Or.textureCount--}e(wa.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Oe=0;Oe0)continue;ht.unit=-1}Ys[Oe]=ne,we=Oe;break}we>=Vs,Nr.profile&&Or.maxTextureUnits>Ft)-It,Ut.height=Ut.height||(Oe.height>>Ft)-Bt,ol(Oe),Nn(Ut,_n,It,Bt,Ft),io(),Cn(Ut),ht}function cr(Nt,Ne){var $e=Nt|0,st=Ne|0||$e;if($e===Oe.width&&st===Oe.height)return ht;ht.width=Oe.width=$e,ht.height=Oe.height=st,ol(Oe);for(var It=0;Oe.mipmask>>It;++It){var Bt=$e>>It,Ft=st>>It;if(!Bt||!Ft)break;Me.texImage2D(_n,It,Oe.format,Bt,Ft,0,Oe.format,Oe.type,null)}return io(),Nr.profile&&(Oe.stats.size=cc(Oe.internalformat,Oe.type,$e,st,!1,!1)),ht}return ht(ne,we),ht.subimage=Yt,ht.resize=cr,ht._reglType="texture2d",ht._texture=Oe,Nr.profile&&(ht.stats=Oe.stats),ht.destroy=function(){Oe.decRef()},ht}function J(ne,we,Oe,ht,Yt,cr){var Nt=new wa(ya);ss[Nt.id]=Nt,Or.cubeCount++;var Ne=new Array(6);function $e(Bt,Ft,Ut,zt,_t,Dt){var vt,lr=Nt.texInfo;for(zo.call(lr),vt=0;vt<6;++vt)Ne[vt]=Ga();if(typeof Bt=="number"||!Bt){var _r=Bt|0||1;for(vt=0;vt<6;++vt)sa(Ne[vt],_r,_r)}else if(typeof Bt=="object")if(Ft)ba(Ne[0],Bt),ba(Ne[1],Ft),ba(Ne[2],Ut),ba(Ne[3],zt),ba(Ne[4],_t),ba(Ne[5],Dt);else if(Qs(lr,Bt),mn(Nt,Bt),"faces"in Bt){var Br=Bt.faces;for(vt=0;vt<6;++vt)si(Ne[vt],Nt),ba(Ne[vt],Br[vt])}else for(vt=0;vt<6;++vt)ba(Ne[vt],Bt);for(si(Nt,Ne[0]),lr.genMipmaps?Nt.mipmask=(Ne[0].width<<1)-1:Nt.mipmask=Ne[0].mipmask,Nt.internalformat=Ne[0].internalformat,$e.width=Ne[0].width,$e.height=Ne[0].height,ol(Nt),vt=0;vt<6;++vt)is(Ne[vt],ea+vt);for(al(lr,ya),io(),Nr.profile&&(Nt.stats.size=cc(Nt.internalformat,Nt.type,$e.width,$e.height,lr.genMipmaps,!0)),$e.format=yi[Nt.internalformat],$e.type=Ii[Nt.type],$e.mag=ui[lr.magFilter],$e.min=nn[lr.minFilter],$e.wrapS=Xi[lr.wrapS],$e.wrapT=Xi[lr.wrapT],vt=0;vt<6;++vt)Ml(Ne[vt]);return $e}function st(Bt,Ft,Ut,zt,_t){var Dt=Ut|0,vt=zt|0,lr=_t|0,_r=Ki();return si(_r,Nt),_r.width=0,_r.height=0,Bi(_r,Ft),_r.width=_r.width||(Nt.width>>lr)-Dt,_r.height=_r.height||(Nt.height>>lr)-vt,ol(Nt),Nn(_r,ea+Bt,Dt,vt,lr),io(),Cn(_r),$e}function It(Bt){var Ft=Bt|0;if(Ft!==Nt.width){$e.width=Nt.width=Ft,$e.height=Nt.height=Ft,ol(Nt);for(var Ut=0;Ut<6;++Ut)for(var zt=0;Nt.mipmask>>zt;++zt)Me.texImage2D(ea+Ut,zt,Nt.format,Ft>>zt,Ft>>zt,0,Nt.format,Nt.type,null);return io(),Nr.profile&&(Nt.stats.size=cc(Nt.internalformat,Nt.type,$e.width,$e.height,!1,!0)),$e}}return $e(ne,we,Oe,ht,Yt,cr),$e.subimage=st,$e.resize=It,$e._reglType="textureCube",$e._texture=Nt,Nr.profile&&($e.stats=Nt.stats),$e.destroy=function(){Nt.decRef()},$e}function O(){for(var ne=0;ne>ht,Oe.height>>ht,0,Oe.internalformat,Oe.type,null);else for(var Yt=0;Yt<6;++Yt)Me.texImage2D(ea+Yt,ht,Oe.internalformat,Oe.width>>ht,Oe.height>>ht,0,Oe.internalformat,Oe.type,null);al(Oe.texInfo,Oe.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ni.indexOf(zo)>=0&&(Ml=!1))),("depthTexture"in wa||"depthStencilTexture"in wa)&&(Ys=!!(wa.depthTexture||wa.depthStencilTexture)),"depth"in wa&&(typeof wa.depth=="boolean"?is=wa.depth:(Vl=wa.depth,Zs=!1)),"stencil"in wa&&(typeof wa.stencil=="boolean"?Zs=wa.stencil:(ss=wa.stencil,is=!1)),"depthStencil"in wa&&(typeof wa.depthStencil=="boolean"?is=Zs=wa.depthStencil:(Vs=wa.depthStencil,is=!1,Zs=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Ga))io=Ga.map(oi);else if(Ga)io=[oi(Ga)];else for(io=new Array(al),ia=0;ia0&&(Cn.depth=Bi[0].depth,Cn.stencil=Bi[0].stencil,Cn.depthStencil=Bi[0].depthStencil),Bi[Ki]?Bi[Ki](Cn):Bi[Ki]=si(Cn)}return e(pn,{width:ia,height:ia,color:zo})}function Nn(aa){var Ki,Cn=aa|0;if(Cn===pn.width)return pn;var ia=pn.color;for(Ki=0;Ki=ia.byteLength?sa.subdata(ia):(sa.destroy(),si.buffers[aa]=null)),si.buffers[aa]||(sa=si.buffers[aa]=Vr.create(Ki,If,!1,!0)),Cn.buffer=Vr.getBuffer(sa),Cn.size=Cn.buffer.dimension|0,Cn.normalized=!1,Cn.type=Cn.buffer.dtype,Cn.offset=0,Cn.stride=0,Cn.divisor=0,Cn.state=1,pn[aa]=1}else Vr.getBuffer(Ki)?(Cn.buffer=Vr.getBuffer(Ki),Cn.size=Cn.buffer.dimension|0,Cn.normalized=!1,Cn.type=Cn.buffer.dtype,Cn.offset=0,Cn.stride=0,Cn.divisor=0,Cn.state=1):Vr.getBuffer(Ki.buffer)?(Cn.buffer=Vr.getBuffer(Ki.buffer),Cn.size=(+Ki.size||Cn.buffer.dimension)|0,Cn.normalized=!!Ki.normalized||!1,"type"in Ki?Cn.type=un[Ki.type]:Cn.type=Cn.buffer.dtype,Cn.offset=(Ki.offset||0)|0,Cn.stride=(Ki.stride||0)|0,Cn.divisor=(Ki.divisor||0)|0,Cn.state=1):"x"in Ki&&(Cn.x=+Ki.x||0,Cn.y=+Ki.y||0,Cn.z=+Ki.z||0,Cn.w=+Ki.w||0,Cn.state=2)}for(var ba=0;ba1)for(var Ji=0;JiTr&&(Tr=Zr.stats.uniformsCount)}),Tr},Ot.getMaxAttributesCount=function(){var Tr=0;return Si.forEach(function(Zr){Zr.stats.attributesCount>Tr&&(Tr=Zr.stats.attributesCount)}),Tr});function oi(){Vr={},Or={};for(var Tr=0;Tr16&&(Ot=Yi(Ot,Me.length*8));for(var Lr=Array(16),Vr=Array(16),Or=0;Or<16;Or++)Lr[Or]=Ot[Or]^909522486,Vr[Or]=Ot[Or]^1549556828;var Nr=Yi(Lr.concat(Bc(bt)),512+bt.length*8);return kt(Yi(Vr.concat(Nr),768))}function vu(Me){for(var bt=ah?"0123456789ABCDEF":"0123456789abcdef",Ot="",Lr,Vr=0;Vr>>4&15)+bt.charAt(Lr&15);return Ot}function Oc(Me){for(var bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ot="",Lr=Me.length,Vr=0;VrMe.length*8?Ot+=Zu:Ot+=bt.charAt(Or>>>6*(3-Nr)&63);return Ot}function ff(Me,bt){var Ot=bt.length,Lr=Array(),Vr,Or,Nr,vi,Ni=Array(Math.ceil(Me.length/2));for(Vr=0;Vr0;){for(vi=Array(),Nr=0,Vr=0;Vr0||Or>0)&&(vi[vi.length]=Or);Lr[Lr.length]=Nr,Ni=vi}var qi="";for(Vr=Lr.length-1;Vr>=0;Vr--)qi+=bt.charAt(Lr[Vr]);var Si=Math.ceil(Me.length*8/(Math.log(bt.length)/Math.log(2)));for(Vr=qi.length;Vr>>6&31,128|Lr&63):Lr<=65535?bt+=String.fromCharCode(224|Lr>>>12&15,128|Lr>>>6&63,128|Lr&63):Lr<=2097151&&(bt+=String.fromCharCode(240|Lr>>>18&7,128|Lr>>>12&63,128|Lr>>>6&63,128|Lr&63));return bt}function Bc(Me){for(var bt=Array(Me.length>>2),Ot=0;Ot>5]|=(Me.charCodeAt(Ot/8)&255)<<24-Ot%32;return bt}function kt(Me){for(var bt="",Ot=0;Ot>5]>>>24-Ot%32&255);return bt}function Zt(Me,bt){return Me>>>bt|Me<<32-bt}function Er(Me,bt){return Me>>>bt}function xr(Me,bt,Ot){return Me&bt^~Me&Ot}function Kr(Me,bt,Ot){return Me&bt^Me&Ot^bt&Ot}function Mi(Me){return Zt(Me,2)^Zt(Me,13)^Zt(Me,22)}function Wi(Me){return Zt(Me,6)^Zt(Me,11)^Zt(Me,25)}function dn(Me){return Zt(Me,7)^Zt(Me,18)^Er(Me,3)}function wn(Me){return Zt(Me,17)^Zt(Me,19)^Er(Me,10)}var On=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Yi(Me,bt){var Ot=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Lr=new Array(64),Vr,Or,Nr,vi,Ni,qi,Si,Vn,Qi,ji,oi,Tr;for(Me[bt>>5]|=128<<24-bt%32,Me[(bt+64>>9<<4)+15]=bt,Qi=0;Qi>16)+(bt>>16)+(Ot>>16);return Lr<<16|Ot&65535}function an(Me){return Array.prototype.slice.call(Me)}function Fi(Me){return an(Me).join("")}function ta(Me){var bt=Me&&Me.cache,Ot=0,Lr=[],Vr=[],Or=[];function Nr(oi,Tr){var Zr=Tr&&Tr.stable;if(!Zr){for(var yi=0;yi0&&(oi.push(Ii,"="),oi.push.apply(oi,an(arguments)),oi.push(";")),Ii}return e(Tr,{def:yi,toString:function(){return Fi([Zr.length>0?"var "+Zr.join(",")+";":"",Fi(oi)])}})}function Ni(){var oi=vi(),Tr=vi(),Zr=oi.toString,yi=Tr.toString;function Ii(ui,nn){Tr(ui,nn,"=",oi.def(ui,nn),";")}return e(function(){oi.apply(oi,an(arguments))},{def:oi.def,entry:oi,exit:Tr,save:Ii,set:function(ui,nn,Xi){Ii(ui,nn),oi(ui,nn,"=",Xi,";")},toString:function(){return Zr()+yi()}})}function qi(){var oi=Fi(arguments),Tr=Ni(),Zr=Ni(),yi=Tr.toString,Ii=Zr.toString;return e(Tr,{then:function(){return Tr.apply(Tr,an(arguments)),this},else:function(){return Zr.apply(Zr,an(arguments)),this},toString:function(){var ui=Ii();return ui&&(ui="else{"+ui+"}"),Fi(["if(",oi,"){",yi(),"}",ui])}})}var Si=vi(),Vn={};function Qi(oi,Tr){var Zr=[];function yi(){var qn="a"+Zr.length;return Zr.push(qn),qn}Tr=Tr||0;for(var Ii=0;Ii2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,c=Tx.mallocFloat(this.count*2),f=0,h=0;f1?r.align[ge]:r.align[0]:r.align;if(typeof ie=="number")return ie;switch(ie){case"right":case"end":return-Ce;case"center":case"centre":case"middle":return-Ce*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ce,ge){var ie=(r.font[ge]||r.font[0]).metrics,Se=0;return Se+=ie.bottom*.5,typeof Ce=="number"?Se+=Ce-ie.baseline:Se+=-ie[Ce],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=_K(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var Z=t.color.length;G=Tx.mallocUint8(Z);for(var j=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ae){var _e=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(_e);for(var Ee=0;Ee1?this.counts[Ee]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ee]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ee*4,Ee*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ee]:this.opacity,baseline:this.baselineOffset[Ee]!=null?this.baselineOffset[Ee]:this.baselineOffset[0],align:this.align?this.alignOffset[Ee]!=null?this.alignOffset[Ee]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ee]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ee*2,Ee*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xc.prototype.destroy=function(){};xc.prototype.kerning=!0;xc.prototype.position={constant:new Float32Array(2)};xc.prototype.translate=null;xc.prototype.scale=null;xc.prototype.font=null;xc.prototype.text="";xc.prototype.positionOffset=[0,0];xc.prototype.opacity=1;xc.prototype.color=new Uint8Array([0,0,0,255]);xc.prototype.alignOffset=[0,0];xc.maxAtlasSize=1024;xc.atlasCanvas=document.createElement("canvas");xc.atlasContext=xc.atlasCanvas.getContext("2d",{alpha:!1});xc.baseFontSize=64;xc.fonts={};function yVt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}VBe.exports=xc});var HBe=ye((xK,bK)=>{(function(e,t){typeof xK=="object"&&typeof bK!="undefined"?bK.exports=t():e.createREGL=t()})(xK,(function(){"use strict";var e=function(Me,bt){for(var Ot=Object.keys(bt),Lr=0;Lr1&&bt===Ot&&(bt==='"'||bt==="'"))return['"'+o(Me.substr(1,Me.length-2))+'"'];var Lr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Me);if(Lr)return s(Me.substr(0,Lr.index)).concat(s(Lr[1])).concat(s(Me.substr(Lr.index+Lr[0].length)));var Vr=Me.split(".");if(Vr.length===1)return['"'+o(Me)+'"'];for(var Or=[],Nr=0;Nr65535)<<4,Me>>>=bt,Ot=(Me>255)<<3,Me>>>=Ot,bt|=Ot,Ot=(Me>15)<<2,Me>>>=Ot,bt|=Ot,Ot=(Me>3)<<1,Me>>>=Ot,bt|=Ot,bt|Me>>1}function N(){var Me=S(8,function(){return[]});function bt(Or){var Nr=Z(Or),vi=Me[j(Nr)>>2];return vi.length>0?vi.pop():new ArrayBuffer(Nr)}function Ot(Or){Me[j(Or.byteLength)>>2].push(Or)}function Lr(Or,Nr){var vi=null;switch(Or){case g:vi=new Int8Array(bt(Nr),0,Nr);break;case P:vi=new Uint8Array(bt(Nr),0,Nr);break;case E:vi=new Int16Array(bt(2*Nr),0,Nr);break;case z:vi=new Uint16Array(bt(2*Nr),0,Nr);break;case q:vi=new Int32Array(bt(4*Nr),0,Nr);break;case V:vi=new Uint32Array(bt(4*Nr),0,Nr);break;case G:vi=new Float32Array(bt(4*Nr),0,Nr);break;default:return null}return vi.length!==Nr?vi.subarray(0,Nr):vi}function Vr(Or){Ot(Or.buffer)}return{alloc:bt,free:Ot,allocType:Lr,freeType:Vr}}var H=N();H.zero=N();var re=3408,ae=3410,_e=3411,Ee=3412,Ce=3413,ge=3414,ie=3415,Se=33901,ke=33902,be=3379,Be=3386,Le=34921,me=36347,Pe=36348,ce=35661,He=35660,lt=34930,mt=36349,Ht=34076,at=34024,ct=7936,ar=7937,Vt=7938,rr=35724,tt=34047,je=36063,Ue=34852,Ae=3553,rt=34067,St=34069,Tt=33984,dt=6408,Et=5126,pt=5121,jt=36160,or=36053,mr=36064,Ar=16384,ei=function(Me,bt){var Ot=1;bt.ext_texture_filter_anisotropic&&(Ot=Me.getParameter(tt));var Lr=1,Vr=1;bt.webgl_draw_buffers&&(Lr=Me.getParameter(Ue),Vr=Me.getParameter(je));var Or=!!bt.oes_texture_float;if(Or){var Nr=Me.createTexture();Me.bindTexture(Ae,Nr),Me.texImage2D(Ae,0,dt,1,1,0,dt,Et,null);var vi=Me.createFramebuffer();if(Me.bindFramebuffer(jt,vi),Me.framebufferTexture2D(jt,mr,Ae,Nr,0),Me.bindTexture(Ae,null),Me.checkFramebufferStatus(jt)!==or)Or=!1;else{Me.viewport(0,0,1,1),Me.clearColor(1,0,0,1),Me.clear(Ar);var Ni=H.allocType(Et,4);Me.readPixels(0,0,1,1,dt,Et,Ni),Me.getError()?Or=!1:(Me.deleteFramebuffer(vi),Me.deleteTexture(Nr),Or=Ni[0]===1),H.freeType(Ni)}}var qi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Si=!0;if(!qi){var Vn=Me.createTexture(),Qi=H.allocType(pt,36);Me.activeTexture(Tt),Me.bindTexture(rt,Vn),Me.texImage2D(St,0,dt,3,3,0,dt,pt,Qi),H.freeType(Qi),Me.bindTexture(rt,null),Me.deleteTexture(Vn),Si=!Me.getError()}return{colorBits:[Me.getParameter(ae),Me.getParameter(_e),Me.getParameter(Ee),Me.getParameter(Ce)],depthBits:Me.getParameter(ge),stencilBits:Me.getParameter(ie),subpixelBits:Me.getParameter(re),extensions:Object.keys(bt).filter(function(Wi){return!!bt[Wi]}),maxAnisotropic:Ot,maxDrawbuffers:Lr,maxColorAttachments:Vr,pointSizeDims:Me.getParameter(Se),lineWidthDims:Me.getParameter(ke),maxViewportDims:Me.getParameter(Be),maxCombinedTextureUnits:Me.getParameter(ce),maxCubeMapSize:Me.getParameter(Ht),maxRenderbufferSize:Me.getParameter(at),maxTextureUnits:Me.getParameter(lt),maxTextureSize:Me.getParameter(be),maxAttributes:Me.getParameter(Le),maxVertexUniforms:Me.getParameter(me),maxVertexTextureUnits:Me.getParameter(He),maxVaryingVectors:Me.getParameter(Pe),maxFragmentUniforms:Me.getParameter(mt),glsl:Me.getParameter(rr),renderer:Me.getParameter(ar),vendor:Me.getParameter(ct),version:Me.getParameter(Vt),readFloat:Or,npotTextureCube:Si}},qr=function(Me){return Me instanceof Uint8Array||Me instanceof Uint16Array||Me instanceof Uint32Array||Me instanceof Int8Array||Me instanceof Int16Array||Me instanceof Int32Array||Me instanceof Float32Array||Me instanceof Float64Array||Me instanceof Uint8ClampedArray};function jr(Me){return!!Me&&typeof Me=="object"&&Array.isArray(Me.shape)&&Array.isArray(Me.stride)&&typeof Me.offset=="number"&&Me.shape.length===Me.stride.length&&(Array.isArray(Me.data)||qr(Me.data))}var gt=function(Me){return Object.keys(Me).map(function(bt){return Me[bt]})},Ge={shape:Kt,flatten:At};function Je(Me,bt,Ot){for(var Lr=0;Lr0){var qn;if(Array.isArray(Zr[0])){Zi=Vi(Zr);for(var fi=1,si=1;si0){if(typeof fi[0]=="number"){var Ui=H.allocType(ui.dtype,fi.length);wr(Ui,fi),Zi(Ui,mn),H.freeType(Ui)}else if(Array.isArray(fi[0])||qr(fi[0])){Ji=Vi(fi);var Bi=Qn(fi,Ji,ui.dtype);Zi(Bi,mn),H.freeType(Bi)}}}else if(jr(fi)){Ji=fi.shape;var pn=fi.stride,Nn=0,aa=0,Ki=0,Cn=0;Ji.length===1?(Nn=Ji[0],aa=1,Ki=pn[0],Cn=0):Ji.length===2&&(Nn=Ji[0],aa=Ji[1],Ki=pn[0],Cn=pn[1]);var ia=Array.isArray(fi.data)?ui.dtype:ir(fi.data),sa=H.allocType(ia,Nn*aa);Xr(sa,fi.data,Nn,aa,Ki,Cn,fi.offset),Zi(sa,mn),H.freeType(sa)}return nn}return yi||nn(Tr),nn._reglType="buffer",nn._buffer=ui,nn.subdata=qn,Ot.profile&&(nn.stats=ui.stats),nn.destroy=function(){Qi(ui)},nn}function oi(){gt(Or).forEach(function(Tr){Tr.buffer=Me.createBuffer(),Me.bindBuffer(Tr.type,Tr.buffer),Me.bufferData(Tr.type,Tr.persistentData||Tr.byteLength,Tr.usage)})}return Ot.profile&&(bt.getTotalBufferSize=function(){var Tr=0;return Object.keys(Or).forEach(function(Zr){Tr+=Or[Zr].stats.size}),Tr}),{create:Wi,createStream:Ni,destroyStream:qi,clear:function(){gt(Or).forEach(Qi),vi.forEach(Qi)},getBuffer:function(Tr){return Tr&&Tr._buffer instanceof Nr?Tr._buffer:null},restore:oi,_initBuffer:Vn}}var $r=0,Ri=0,Hi=1,en=1,fn=4,yn=4,Mn={points:$r,point:Ri,lines:Hi,line:en,triangles:fn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,ua=1,ma=4,Wa=5120,za=5121,Xo=5122,da=5123,jn=5124,Ha=5125,vo=34963,Gn=35040,Ct=35044;function Sr(Me,bt,Ot,Lr){var Vr={},Or=0,Nr={uint8:za,uint16:da};bt.oes_element_index_uint&&(Nr.uint32=Ha);function vi(oi){this.id=Or++,Vr[this.id]=this,this.buffer=oi,this.primType=ma,this.vertCount=0,this.type=0}vi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function qi(oi){var Tr=Ni.pop();return Tr||(Tr=new vi(Ot.create(null,vo,!0,!1)._buffer)),Vn(Tr,oi,Gn,-1,-1,0,0),Tr}function Si(oi){Ni.push(oi)}function Vn(oi,Tr,Zr,yi,Ii,ui,nn){oi.buffer.bind();var Zi;if(Tr){var qn=nn;!nn&&(!qr(Tr)||jr(Tr)&&!qr(Tr.data))&&(qn=bt.oes_element_index_uint?Ha:da),Ot._initBuffer(oi.buffer,Tr,Zr,qn,3)}else Me.bufferData(vo,ui,Zr),oi.buffer.dtype=Zi||za,oi.buffer.usage=Zr,oi.buffer.dimension=3,oi.buffer.byteLength=ui;if(Zi=nn,!nn){switch(oi.buffer.dtype){case za:case Wa:Zi=za;break;case da:case Xo:Zi=da;break;case Ha:case jn:Zi=Ha;break;default:}oi.buffer.dtype=Zi}oi.type=Zi;var fi=Ii;fi<0&&(fi=oi.buffer.byteLength,Zi===da?fi>>=1:Zi===Ha&&(fi>>=2)),oi.vertCount=fi;var si=yi;if(yi<0){si=ma;var mn=oi.buffer.dimension;mn===1&&(si=Ba),mn===2&&(si=ua),mn===3&&(si=ma)}oi.primType=si}function Qi(oi){Lr.elementsCount--,delete Vr[oi.id],oi.buffer.destroy(),oi.buffer=null}function Wi(oi,Tr){var Zr=Ot.create(null,vo,!0),yi=new vi(Zr._buffer);Lr.elementsCount++;function Ii(ui){if(!ui)Zr(),yi.primType=ma,yi.vertCount=0,yi.type=za;else if(typeof ui=="number")Zr(ui),yi.primType=ma,yi.vertCount=ui|0,yi.type=za;else{var nn=null,Zi=Ct,qn=-1,fi=-1,si=0,mn=0;Array.isArray(ui)||qr(ui)||jr(ui)?nn=ui:("data"in ui&&(nn=ui.data),"usage"in ui&&(Zi=Hn[ui.usage]),"primitive"in ui&&(qn=Mn[ui.primitive]),"count"in ui&&(fi=ui.count|0),"type"in ui&&(mn=Nr[ui.type]),"length"in ui?si=ui.length|0:(si=fi,mn===da||mn===Xo?si*=2:(mn===Ha||mn===jn)&&(si*=4))),Vn(yi,nn,Zi,qn,fi,si,mn)}return Ii}return Ii(oi),Ii._reglType="elements",Ii._elements=yi,Ii.subdata=function(ui,nn){return Zr.subdata(ui,nn),Ii},Ii.destroy=function(){Qi(yi)},Ii}return{create:Wi,createStream:qi,destroyStream:Si,getElements:function(oi){return typeof oi=="function"&&oi._elements instanceof vi?oi._elements:null},clear:function(){gt(Vr).forEach(Qi)}}}var Jr=new Float32Array(1),hi=new Uint32Array(Jr.buffer),hn=5123;function Sn(Me){for(var bt=H.allocType(hn,Me.length),Ot=0;Ot>>31<<15,Or=(Lr<<1>>>24)-127,Nr=Lr>>13&1023;if(Or<-24)bt[Ot]=Vr;else if(Or<-14){var vi=-14-Or;bt[Ot]=Vr+(Nr+1024>>vi)}else Or>15?bt[Ot]=Vr+31744:bt[Ot]=Vr+(Or+15<<10)+Nr}return bt}function En(Me){return Array.isArray(Me)||qr(Me)}var ki=34467,_n=3553,ya=34067,ea=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,ko=32854,Ds=32855,Fs=36194,ll=32819,ul=32820,Fl=33635,us=34042,rl=6402,As=34041,cl=35904,Ks=35906,zs=36193,Io=33776,ls=33777,Yl=33778,Su=33779,nc=35986,bs=35987,Rn=34798,_a=35840,Vu=35841,zl=35842,xo=35843,Kl=36196,Ns=5121,Hl=5123,ac=5125,oa=5126,qo=10242,Oo=10243,ql=10497,Pc=33071,Do=33648,nf=10240,Vf=10241,pl=9728,Zc=9729,Jl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,jh=4353,Lf=4354,cs=34046,af=3317,Gf=37440,$l=37441,fl=37443,lc=37444,Fu=33984,Es=[Jl,yu,qs,oc],Hs=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[rl]=1,Go[As]=Go[Lo]=2,Go[No]=Go[cl]=3,Go[Ma]=Go[Ks]=4;function ps(Me){return"[object "+Me+"]"}var uc=ps("HTMLCanvasElement"),bl=ps("OffscreenCanvas"),Gu=ps("CanvasRenderingContext2D"),Os=ps("ImageBitmap"),od=ps("HTMLImageElement"),Po=ps("HTMLVideoElement"),sd=Object.keys(Qt).concat([uc,bl,Gu,Os,od,Po]),Ko=[];Ko[Ns]=1,Ko[oa]=4,Ko[zs]=2,Ko[Hl]=2,Ko[ac]=4;var Pa=[];Pa[ko]=2,Pa[Ds]=2,Pa[Fs]=2,Pa[As]=4,Pa[Io]=.5,Pa[ls]=.5,Pa[Yl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[bs]=1,Pa[Rn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[zl]=.5,Pa[xo]=.25,Pa[Kl]=.5;function of(Me){return Array.isArray(Me)&&(Me.length===0||typeof Me[0]=="number")}function Hu(Me){if(!Array.isArray(Me))return!1;var bt=Me.length;return!(bt===0||!En(Me[0]))}function wl(Me){return Object.prototype.toString.call(Me)}function Hf(Me){return wl(Me)===uc}function Ic(Me){return wl(Me)===bl}function yf(Me){return wl(Me)===Gu}function Ol(Me){return wl(Me)===Os}function Ah(Me){return wl(Me)===od}function Qf(Me){return wl(Me)===Po}function _f(Me){if(!Me)return!1;var bt=wl(Me);return sd.indexOf(bt)>=0?!0:of(Me)||Hu(Me)||jr(Me)}function Yc(Me){return Qt[Object.prototype.toString.call(Me)]|0}function eh(Me,bt){var Ot=bt.length;switch(Me.type){case Ns:case Hl:case ac:case oa:var Lr=H.allocType(Me.type,Ot);Lr.set(bt),Me.data=Lr;break;case zs:Me.data=Sn(bt);break;default:}}function th(Me,bt){return H.allocType(Me.type===zs?oa:Me.type,bt)}function ju(Me,bt){Me.type===zs?(Me.data=Sn(bt),H.freeType(bt)):Me.data=bt}function jf(Me,bt,Ot,Lr,Vr,Or){for(var Nr=Me.width,vi=Me.height,Ni=Me.channels,qi=Nr*vi*Ni,Si=th(Me,qi),Vn=0,Qi=0;Qi=1;)vi+=Nr*Ni*Ni,Ni/=2;return vi}else return Nr*Ot*Lr}function sf(Me,bt,Ot,Lr,Vr,Or,Nr){var vi={"don't care":sc,"dont care":sc,nice:Lf,fast:jh},Ni={repeat:ql,clamp:Pc,mirror:Do},qi={nearest:pl,linear:Zc},Si=e({mipmap:oc,"nearest mipmap nearest":Jl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},qi),Vn={none:0,browser:lc},Qi={uint8:Ns,rgba4:ll,rgb565:Fl,"rgb5 a1":ul},Wi={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:ko,"rgb5 a1":Ds,rgb565:Fs},oi={};bt.ext_srgb&&(Wi.srgb=cl,Wi.srgba=Ks),bt.oes_texture_float&&(Qi.float32=Qi.float=oa),bt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=zs),bt.webgl_depth_texture&&(e(Wi,{depth:rl,"depth stencil":As}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":us})),bt.webgl_compressed_texture_s3tc&&e(oi,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":ls,"rgba s3tc dxt3":Yl,"rgba s3tc dxt5":Su}),bt.webgl_compressed_texture_atc&&e(oi,{"rgb atc":nc,"rgba atc explicit alpha":bs,"rgba atc interpolated alpha":Rn}),bt.webgl_compressed_texture_pvrtc&&e(oi,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":zl,"rgba pvrtc 2bppv1":xo}),bt.webgl_compressed_texture_etc1&&(oi["rgb etc1"]=Kl);var Tr=Array.prototype.slice.call(Me.getParameter(ki));Object.keys(oi).forEach(function(ne){var we=oi[ne];Tr.indexOf(we)>=0&&(Wi[ne]=we)});var Zr=Object.keys(Wi);Ot.textureFormats=Zr;var yi=[];Object.keys(Wi).forEach(function(ne){var we=Wi[ne];yi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ui=[];Object.keys(qi).forEach(function(ne){var we=qi[ne];ui[we]=ne});var nn=[];Object.keys(Si).forEach(function(ne){var we=Si[ne];nn[we]=ne});var Zi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Zi[we]=ne});var qn=Zr.reduce(function(ne,we){var Oe=Wi[we];return Oe===po||Oe===_o||Oe===po||Oe===Lo||Oe===rl||Oe===As||bt.ext_srgb&&(Oe===cl||Oe===Ks)?ne[Oe]=Oe:Oe===Ds||we.indexOf("rgba")>=0?ne[Oe]=Ma:ne[Oe]=No,ne},{});function fi(){this.internalformat=Ma,this.format=Ma,this.type=Ns,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function si(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Vn[we.colorSpace]),"type"in we){var Oe=we.type;ne.type=Qi[Oe]}var ht=ne.width,Yt=ne.height,cr=ne.channels,Nt=!1;"shape"in we?(ht=we.shape[0],Yt=we.shape[1],we.shape.length===3&&(cr=we.shape[2],Nt=!0)):("radius"in we&&(ht=Yt=we.radius),"width"in we&&(ht=we.width),"height"in we&&(Yt=we.height),"channels"in we&&(cr=we.channels,Nt=!0)),ne.width=ht|0,ne.height=Yt|0,ne.channels=cr|0;var Ne=!1;if("format"in we){var $e=we.format,st=ne.internalformat=Wi[$e];ne.format=qn[st],$e in Qi&&("type"in we||(ne.type=Qi[$e])),$e in oi&&(ne.compressed=!0),Ne=!0}!Nt&&Ne?ne.channels=Go[ne.format]:Nt&&!Ne&&ne.channels!==Hs[ne.format]&&(ne.format=ne.internalformat=Hs[ne.channels])}}function Ji(ne){Me.pixelStorei(Gf,ne.flipY),Me.pixelStorei($l,ne.premultiplyAlpha),Me.pixelStorei(fl,ne.colorSpace),Me.pixelStorei(af,ne.unpackAlignment)}function Ui(){fi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Oe=null;if(_f(we)?Oe=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),_f(we.data)&&(Oe=we.data)),we.copy){var ht=Vr.viewportWidth,Yt=Vr.viewportHeight;ne.width=ne.width||ht-ne.xOffset,ne.height=ne.height||Yt-ne.yOffset,ne.needsCopy=!0}else if(!Oe)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(qr(Oe))ne.channels=ne.channels||4,ne.data=Oe,!("type"in we)&&ne.type===Ns&&(ne.type=Yc(Oe));else if(of(Oe))ne.channels=ne.channels||4,eh(ne,Oe),ne.alignment=1,ne.needsFree=!0;else if(jr(Oe)){var cr=Oe.data;!Array.isArray(cr)&&ne.type===Ns&&(ne.type=Yc(cr));var Nt=Oe.shape,Ne=Oe.stride,$e,st,It,Bt,Ft,Ut;Nt.length===3?(It=Nt[2],Ut=Ne[2]):(It=1,Ut=1),$e=Nt[0],st=Nt[1],Bt=Ne[0],Ft=Ne[1],ne.alignment=1,ne.width=$e,ne.height=st,ne.channels=It,ne.format=ne.internalformat=Hs[It],ne.needsFree=!0,jf(ne,cr,Bt,Ft,Ut,Oe.offset)}else if(Hf(Oe)||Ic(Oe)||yf(Oe))Hf(Oe)||Ic(Oe)?ne.element=Oe:ne.element=Oe.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Ol(Oe))ne.element=Oe,ne.width=Oe.width,ne.height=Oe.height,ne.channels=4;else if(Ah(Oe))ne.element=Oe,ne.width=Oe.naturalWidth,ne.height=Oe.naturalHeight,ne.channels=4;else if(Qf(Oe))ne.element=Oe,ne.width=Oe.videoWidth,ne.height=Oe.videoHeight,ne.channels=4;else if(Hu(Oe)){var zt=ne.width||Oe[0].length,_t=ne.height||Oe.length,Dt=ne.channels;En(Oe[0][0])?Dt=Dt||Oe[0][0].length:Dt=Dt||1;for(var vt=Ge.shape(Oe),lr=1,_r=0;_r>=Yt,Oe.height>>=Yt,Bi(Oe,ht[Yt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ht=we.mag;ne.magFilter=qi[ht]}var Yt=ne.wrapS,cr=ne.wrapT;if("wrap"in we){var Nt=we.wrap;typeof Nt=="string"?Yt=cr=Ni[Nt]:Array.isArray(Nt)&&(Yt=Ni[Nt[0]],cr=Ni[Nt[1]])}else{if("wrapS"in we){var Ne=we.wrapS;Yt=Ni[Ne]}if("wrapT"in we){var $e=we.wrapT;cr=Ni[$e]}}if(ne.wrapS=Yt,ne.wrapT=cr,"anisotropic"in we){var st=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var It=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=vi[we.mipmap],ne.genMipmaps=!0,It=!0;break;case"boolean":It=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,It=!0;break;default:}It&&!("min"in we)&&(ne.minFilter=Jl)}}function nl(ne,we){Me.texParameteri(we,Vf,ne.minFilter),Me.texParameteri(we,nf,ne.magFilter),Me.texParameteri(we,qo,ne.wrapS),Me.texParameteri(we,Oo,ne.wrapT),bt.ext_texture_filter_anisotropic&&Me.texParameteri(we,cs,ne.anisotropic),ne.genMipmaps&&(Me.hint(Cf,ne.mipmapHint),Me.generateMipmap(we))}var Ul=0,ss={},Vs=Ot.maxTextureUnits,Ys=Array(Vs).map(function(){return null});function wa(ne){fi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Ul++,this.refCount=1,this.target=ne,this.texture=Me.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Nr.profile&&(this.stats={size:0})}function al(ne){Me.activeTexture(Fu),Me.bindTexture(ne.target,ne.texture)}function io(){var ne=Ys[0];ne?Me.bindTexture(ne.target,ne.texture):Me.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Oe=ne.unit,ht=ne.target;Oe>=0&&(Me.activeTexture(Fu+Oe),Me.bindTexture(ht,null),Ys[Oe]=null),Me.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ss[ne.id],Or.textureCount--}e(wa.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Oe=0;Oe0)continue;ht.unit=-1}Ys[Oe]=ne,we=Oe;break}we>=Vs,Nr.profile&&Or.maxTextureUnits>Ft)-It,Ut.height=Ut.height||(Oe.height>>Ft)-Bt,al(Oe),Nn(Ut,_n,It,Bt,Ft),io(),Cn(Ut),ht}function cr(Nt,Ne){var $e=Nt|0,st=Ne|0||$e;if($e===Oe.width&&st===Oe.height)return ht;ht.width=Oe.width=$e,ht.height=Oe.height=st,al(Oe);for(var It=0;Oe.mipmask>>It;++It){var Bt=$e>>It,Ft=st>>It;if(!Bt||!Ft)break;Me.texImage2D(_n,It,Oe.format,Bt,Ft,0,Oe.format,Oe.type,null)}return io(),Nr.profile&&(Oe.stats.size=cc(Oe.internalformat,Oe.type,$e,st,!1,!1)),ht}return ht(ne,we),ht.subimage=Yt,ht.resize=cr,ht._reglType="texture2d",ht._texture=Oe,Nr.profile&&(ht.stats=Oe.stats),ht.destroy=function(){Oe.decRef()},ht}function J(ne,we,Oe,ht,Yt,cr){var Nt=new wa(ya);ss[Nt.id]=Nt,Or.cubeCount++;var Ne=new Array(6);function $e(Bt,Ft,Ut,zt,_t,Dt){var vt,lr=Nt.texInfo;for(zo.call(lr),vt=0;vt<6;++vt)Ne[vt]=Ga();if(typeof Bt=="number"||!Bt){var _r=Bt|0||1;for(vt=0;vt<6;++vt)sa(Ne[vt],_r,_r)}else if(typeof Bt=="object")if(Ft)ba(Ne[0],Bt),ba(Ne[1],Ft),ba(Ne[2],Ut),ba(Ne[3],zt),ba(Ne[4],_t),ba(Ne[5],Dt);else if(Qs(lr,Bt),mn(Nt,Bt),"faces"in Bt){var Br=Bt.faces;for(vt=0;vt<6;++vt)si(Ne[vt],Nt),ba(Ne[vt],Br[vt])}else for(vt=0;vt<6;++vt)ba(Ne[vt],Bt);for(si(Nt,Ne[0]),lr.genMipmaps?Nt.mipmask=(Ne[0].width<<1)-1:Nt.mipmask=Ne[0].mipmask,Nt.internalformat=Ne[0].internalformat,$e.width=Ne[0].width,$e.height=Ne[0].height,al(Nt),vt=0;vt<6;++vt)is(Ne[vt],ea+vt);for(nl(lr,ya),io(),Nr.profile&&(Nt.stats.size=cc(Nt.internalformat,Nt.type,$e.width,$e.height,lr.genMipmaps,!0)),$e.format=yi[Nt.internalformat],$e.type=Ii[Nt.type],$e.mag=ui[lr.magFilter],$e.min=nn[lr.minFilter],$e.wrapS=Zi[lr.wrapS],$e.wrapT=Zi[lr.wrapT],vt=0;vt<6;++vt)El(Ne[vt]);return $e}function st(Bt,Ft,Ut,zt,_t){var Dt=Ut|0,vt=zt|0,lr=_t|0,_r=Ki();return si(_r,Nt),_r.width=0,_r.height=0,Bi(_r,Ft),_r.width=_r.width||(Nt.width>>lr)-Dt,_r.height=_r.height||(Nt.height>>lr)-vt,al(Nt),Nn(_r,ea+Bt,Dt,vt,lr),io(),Cn(_r),$e}function It(Bt){var Ft=Bt|0;if(Ft!==Nt.width){$e.width=Nt.width=Ft,$e.height=Nt.height=Ft,al(Nt);for(var Ut=0;Ut<6;++Ut)for(var zt=0;Nt.mipmask>>zt;++zt)Me.texImage2D(ea+Ut,zt,Nt.format,Ft>>zt,Ft>>zt,0,Nt.format,Nt.type,null);return io(),Nr.profile&&(Nt.stats.size=cc(Nt.internalformat,Nt.type,$e.width,$e.height,!1,!0)),$e}}return $e(ne,we,Oe,ht,Yt,cr),$e.subimage=st,$e.resize=It,$e._reglType="textureCube",$e._texture=Nt,Nr.profile&&($e.stats=Nt.stats),$e.destroy=function(){Nt.decRef()},$e}function O(){for(var ne=0;ne>ht,Oe.height>>ht,0,Oe.internalformat,Oe.type,null);else for(var Yt=0;Yt<6;++Yt)Me.texImage2D(ea+Yt,ht,Oe.internalformat,Oe.width>>ht,Oe.height>>ht,0,Oe.internalformat,Oe.type,null);nl(Oe.texInfo,Oe.target)})}function de(){for(var ne=0;ne=0?El=!0:Ni.indexOf(zo)>=0&&(El=!1))),("depthTexture"in wa||"depthStencilTexture"in wa)&&(Ys=!!(wa.depthTexture||wa.depthStencilTexture)),"depth"in wa&&(typeof wa.depth=="boolean"?is=wa.depth:(Ul=wa.depth,Zs=!1)),"stencil"in wa&&(typeof wa.stencil=="boolean"?Zs=wa.stencil:(ss=wa.stencil,is=!1)),"depthStencil"in wa&&(typeof wa.depthStencil=="boolean"?is=Zs=wa.depthStencil:(Vs=wa.depthStencil,is=!1,Zs=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Ga))io=Ga.map(oi);else if(Ga)io=[oi(Ga)];else for(io=new Array(nl),ia=0;ia0&&(Cn.depth=Bi[0].depth,Cn.stencil=Bi[0].stencil,Cn.depthStencil=Bi[0].depthStencil),Bi[Ki]?Bi[Ki](Cn):Bi[Ki]=si(Cn)}return e(pn,{width:ia,height:ia,color:zo})}function Nn(aa){var Ki,Cn=aa|0;if(Cn===pn.width)return pn;var ia=pn.color;for(Ki=0;Ki=ia.byteLength?sa.subdata(ia):(sa.destroy(),si.buffers[aa]=null)),si.buffers[aa]||(sa=si.buffers[aa]=Vr.create(Ki,If,!1,!0)),Cn.buffer=Vr.getBuffer(sa),Cn.size=Cn.buffer.dimension|0,Cn.normalized=!1,Cn.type=Cn.buffer.dtype,Cn.offset=0,Cn.stride=0,Cn.divisor=0,Cn.state=1,pn[aa]=1}else Vr.getBuffer(Ki)?(Cn.buffer=Vr.getBuffer(Ki),Cn.size=Cn.buffer.dimension|0,Cn.normalized=!1,Cn.type=Cn.buffer.dtype,Cn.offset=0,Cn.stride=0,Cn.divisor=0,Cn.state=1):Vr.getBuffer(Ki.buffer)?(Cn.buffer=Vr.getBuffer(Ki.buffer),Cn.size=(+Ki.size||Cn.buffer.dimension)|0,Cn.normalized=!!Ki.normalized||!1,"type"in Ki?Cn.type=un[Ki.type]:Cn.type=Cn.buffer.dtype,Cn.offset=(Ki.offset||0)|0,Cn.stride=(Ki.stride||0)|0,Cn.divisor=(Ki.divisor||0)|0,Cn.state=1):"x"in Ki&&(Cn.x=+Ki.x||0,Cn.y=+Ki.y||0,Cn.z=+Ki.z||0,Cn.w=+Ki.w||0,Cn.state=2)}for(var ba=0;ba1)for(var Ji=0;JiTr&&(Tr=Zr.stats.uniformsCount)}),Tr},Ot.getMaxAttributesCount=function(){var Tr=0;return Si.forEach(function(Zr){Zr.stats.attributesCount>Tr&&(Tr=Zr.stats.attributesCount)}),Tr});function oi(){Vr={},Or={};for(var Tr=0;Tr16&&(Ot=Yi(Ot,Me.length*8));for(var Lr=Array(16),Vr=Array(16),Or=0;Or<16;Or++)Lr[Or]=Ot[Or]^909522486,Vr[Or]=Ot[Or]^1549556828;var Nr=Yi(Lr.concat(Bc(bt)),512+bt.length*8);return kt(Yi(Vr.concat(Nr),768))}function vu(Me){for(var bt=ah?"0123456789ABCDEF":"0123456789abcdef",Ot="",Lr,Vr=0;Vr>>4&15)+bt.charAt(Lr&15);return Ot}function Oc(Me){for(var bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ot="",Lr=Me.length,Vr=0;VrMe.length*8?Ot+=Zu:Ot+=bt.charAt(Or>>>6*(3-Nr)&63);return Ot}function ff(Me,bt){var Ot=bt.length,Lr=Array(),Vr,Or,Nr,vi,Ni=Array(Math.ceil(Me.length/2));for(Vr=0;Vr0;){for(vi=Array(),Nr=0,Vr=0;Vr0||Or>0)&&(vi[vi.length]=Or);Lr[Lr.length]=Nr,Ni=vi}var qi="";for(Vr=Lr.length-1;Vr>=0;Vr--)qi+=bt.charAt(Lr[Vr]);var Si=Math.ceil(Me.length*8/(Math.log(bt.length)/Math.log(2)));for(Vr=qi.length;Vr>>6&31,128|Lr&63):Lr<=65535?bt+=String.fromCharCode(224|Lr>>>12&15,128|Lr>>>6&63,128|Lr&63):Lr<=2097151&&(bt+=String.fromCharCode(240|Lr>>>18&7,128|Lr>>>12&63,128|Lr>>>6&63,128|Lr&63));return bt}function Bc(Me){for(var bt=Array(Me.length>>2),Ot=0;Ot>5]|=(Me.charCodeAt(Ot/8)&255)<<24-Ot%32;return bt}function kt(Me){for(var bt="",Ot=0;Ot>5]>>>24-Ot%32&255);return bt}function Zt(Me,bt){return Me>>>bt|Me<<32-bt}function Er(Me,bt){return Me>>>bt}function xr(Me,bt,Ot){return Me&bt^~Me&Ot}function Kr(Me,bt,Ot){return Me&bt^Me&Ot^bt&Ot}function Mi(Me){return Zt(Me,2)^Zt(Me,13)^Zt(Me,22)}function Xi(Me){return Zt(Me,6)^Zt(Me,11)^Zt(Me,25)}function dn(Me){return Zt(Me,7)^Zt(Me,18)^Er(Me,3)}function wn(Me){return Zt(Me,17)^Zt(Me,19)^Er(Me,10)}var On=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Yi(Me,bt){var Ot=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Lr=new Array(64),Vr,Or,Nr,vi,Ni,qi,Si,Vn,Qi,Wi,oi,Tr;for(Me[bt>>5]|=128<<24-bt%32,Me[(bt+64>>9<<4)+15]=bt,Qi=0;Qi>16)+(bt>>16)+(Ot>>16);return Lr<<16|Ot&65535}function an(Me){return Array.prototype.slice.call(Me)}function Fi(Me){return an(Me).join("")}function ta(Me){var bt=Me&&Me.cache,Ot=0,Lr=[],Vr=[],Or=[];function Nr(oi,Tr){var Zr=Tr&&Tr.stable;if(!Zr){for(var yi=0;yi0&&(oi.push(Ii,"="),oi.push.apply(oi,an(arguments)),oi.push(";")),Ii}return e(Tr,{def:yi,toString:function(){return Fi([Zr.length>0?"var "+Zr.join(",")+";":"",Fi(oi)])}})}function Ni(){var oi=vi(),Tr=vi(),Zr=oi.toString,yi=Tr.toString;function Ii(ui,nn){Tr(ui,nn,"=",oi.def(ui,nn),";")}return e(function(){oi.apply(oi,an(arguments))},{def:oi.def,entry:oi,exit:Tr,save:Ii,set:function(ui,nn,Zi){Ii(ui,nn),oi(ui,nn,"=",Zi,";")},toString:function(){return Zr()+yi()}})}function qi(){var oi=Fi(arguments),Tr=Ni(),Zr=Ni(),yi=Tr.toString,Ii=Zr.toString;return e(Tr,{then:function(){return Tr.apply(Tr,an(arguments)),this},else:function(){return Zr.apply(Zr,an(arguments)),this},toString:function(){var ui=Ii();return ui&&(ui="else{"+ui+"}"),Fi(["if(",oi,"){",yi(),"}",ui])}})}var Si=vi(),Vn={};function Qi(oi,Tr){var Zr=[];function yi(){var qn="a"+Zr.length;return Zr.push(qn),qn}Tr=Tr||0;for(var Ii=0;Ii":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},di={cw:Te,ccw:qe};function Li(Me){return Array.isArray(Me)||qr(Me)||jr(Me)}function Ti(Me){return Me.sort(function(bt,Ot){return bt===ee?-1:Ot===ee?1:bt=1,Lr>=2,bt)}else if(Ot===Zo){var Vr=Me.data;return new Qr(Vr.thisDep,Vr.contextDep,Vr.propDep,bt)}else{if(Ot===Ss)return new Qr(!1,!1,!1,bt);if(Ot===as){for(var Or=!1,Nr=!1,vi=!1,Ni=0;Ni=1&&(Nr=!0),Si>=2&&(vi=!0)}else qi.type===Zo&&(Or=Or||qi.data.thisDep,Nr=Nr||qi.data.contextDep,vi=vi||qi.data.propDep)}return new Qr(Or,Nr,vi,bt)}else return new Qr(Ot===bo,Ot===Ka,Ot===Dn,bt)}}var na=new Qr(!1,!1,!1,function(){});function Ea(Me,bt,Ot,Lr,Vr,Or,Nr,vi,Ni,qi,Si,Vn,Qi,ji,oi,Tr){var Zr=qi.Record,yi={add:32774,subtract:32778,"reverse subtract":32779};Ot.ext_blend_minmax&&(yi.min=Ve,yi.max=Ye);var Ii=Ot.angle_instanced_arrays,ui=Ot.webgl_draw_buffers,nn=Ot.oes_vertex_array_object,Xi={dirty:!0,profile:Tr.profile},qn={},fi=[],si={},mn={};function Ji(Ne){return Ne.replace(".","_")}function Ui(Ne,$e,st){var It=Ji(Ne);fi.push(Ne),qn[It]=Xi[It]=!!st,si[It]=$e}function Bi(Ne,$e,st){var It=Ji(Ne);fi.push(Ne),Array.isArray(st)?(Xi[It]=st.slice(),qn[It]=st.slice()):Xi[It]=qn[It]=st,mn[It]=$e}function pn(Ne){return!!isNaN(Ne)}Ui(ws,Ci),Ui(Ho,ri),Bi(ml,"blendColor",[0,0,0,0]),Bi(Ws,"blendEquationSeparate",[pr,pr]),Bi(Ls,"blendFuncSeparate",[dr,Xt,dr,Xt]),Ui(va,sn,!0),Bi(no,"depthFunc",Ur),Bi(ys,"depthRange",[0,1]),Bi(rs,"depthMask",!0),Bi(Ql,Ql,[!0,!0,!0,!0]),Ui(Cu,Hr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,qe),Bi(pu,pu,1),Ui(Uc,Yn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Va,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,cn),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Pt,0,-1]),Bi(ue,"stencilOpSeparate",[X,ot,ot,ot]),Bi(w,"stencilOpSeparate",[se,ot,ot,ot]),Ui(B,Ln),Bi(Q,"scissor",[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]),Bi(ee,ee,[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]);var Nn={gl:Me,context:Qi,strings:bt,next:qn,current:Xi,draw:Vn,elements:Or,buffer:Vr,shader:Si,attributes:qi.state,vao:qi,uniforms:Ni,framebuffer:vi,extensions:Ot,timer:ji,isBufferArgs:Li},aa={primTypes:Mn,compareFuncs:Wr,blendFuncs:xi,blendEquations:yi,stencilOps:ii,glTypes:un,orientationType:di};ui&&(aa.backBuffer=[se],aa.drawBuffer=S(Lr.maxDrawbuffers,function(Ne){return Ne===0?[0]:S(Ne,function($e){return gi+$e})}));var Ki=0;function Cn(){var Ne=ta({cache:oi}),$e=Ne.link,st=Ne.global;Ne.id=Ki++,Ne.batchId="0";var It=$e(Nn),Bt=Ne.shared={props:"a0"};Object.keys(Nn).forEach(function(Dt){Bt[Dt]=st.def(It,".",Dt)});var Ft=Ne.next={},Ut=Ne.current={};Object.keys(mn).forEach(function(Dt){Array.isArray(Xi[Dt])&&(Ft[Dt]=st.def(Bt.next,".",Dt),Ut[Dt]=st.def(Bt.current,".",Dt))});var zt=Ne.constants={};Object.keys(aa).forEach(function(Dt){zt[Dt]=st.def(JSON.stringify(aa[Dt]))}),Ne.invoke=function(Dt,vt){switch(vt.type){case Zn:var lr=["this",Bt.context,Bt.props,Ne.batchId];return Dt.def($e(vt.data),".call(",lr.slice(0,Math.max(vt.data.length+1,4)),")");case Dn:return Dt.def(Bt.props,vt.data);case Ka:return Dt.def(Bt.context,vt.data);case bo:return Dt.def("this",vt.data);case Zo:return vt.data.append(Ne,Dt),vt.data.ref;case Ss:return vt.data.toString();case as:return vt.data.map(function(_r){return Ne.invoke(Dt,_r)})}},Ne.attribCache={};var _t={};return Ne.scopeAttrib=function(Dt){var vt=bt.id(Dt);if(vt in _t)return _t[vt];var lr=qi.scope[vt];lr||(lr=qi.scope[vt]=new Zr);var _r=_t[vt]=$e(lr);return _r},Ne}function ia(Ne){var $e=Ne.static,st=Ne.dynamic,It;if(le in $e){var Bt=!!$e[le];It=kn(function(Ut,zt){return Bt}),It.enable=Bt}else if(le in st){var Ft=st[le];It=Bn(Ft,function(Ut,zt){return Ut.invoke(zt,Ft)})}return It}function sa(Ne,$e){var st=Ne.static,It=Ne.dynamic;if(Fe in st){var Bt=st[Fe];return Bt?(Bt=vi.getFramebuffer(Bt),kn(function(Ut,zt){var _t=Ut.link(Bt),Dt=Ut.shared;zt.set(Dt.framebuffer,".next",_t);var vt=Dt.context;return zt.set(vt,"."+ze,_t+".width"),zt.set(vt,"."+Qe,_t+".height"),_t})):kn(function(Ut,zt){var _t=Ut.shared;zt.set(_t.framebuffer,".next","null");var Dt=_t.context;return zt.set(Dt,"."+ze,Dt+"."+Wt),zt.set(Dt,"."+Qe,Dt+"."+nr),"null"})}else if(Fe in It){var Ft=It[Fe];return Bn(Ft,function(Ut,zt){var _t=Ut.invoke(zt,Ft),Dt=Ut.shared,vt=Dt.framebuffer,lr=zt.def(vt,".getFramebuffer(",_t,")");zt.set(vt,".next",lr);var _r=Dt.context;return zt.set(_r,"."+ze,lr+"?"+lr+".width:"+_r+"."+Wt),zt.set(_r,"."+Qe,lr+"?"+lr+".height:"+_r+"."+nr),lr})}else return null}function ba(Ne,$e,st){var It=Ne.static,Bt=Ne.dynamic;function Ft(_t){if(_t in It){var Dt=It[_t],vt=!0,lr=Dt.x|0,_r=Dt.y|0,Br,Di;return"width"in Dt?Br=Dt.width|0:vt=!1,"height"in Dt?Di=Dt.height|0:vt=!1,new Qr(!vt&&$e&&$e.thisDep,!vt&&$e&&$e.contextDep,!vt&&$e&&$e.propDep,function(gn,tn){var Ei=gn.shared.context,Oi=Br;"width"in Dt||(Oi=tn.def(Ei,".",ze,"-",lr));var Gi=Di;return"height"in Dt||(Gi=tn.def(Ei,".",Qe,"-",_r)),[lr,_r,Oi,Gi]})}else if(_t in Bt){var ci=Bt[_t],bi=Bn(ci,function(gn,tn){var Ei=gn.invoke(tn,ci),Oi=gn.shared.context,Gi=tn.def(Ei,".x|0"),on=tn.def(Ei,".y|0"),zn=tn.def('"width" in ',Ei,"?",Ei,".width|0:","(",Oi,".",ze,"-",Gi,")"),Ja=tn.def('"height" in ',Ei,"?",Ei,".height|0:","(",Oi,".",Qe,"-",on,")");return[Gi,on,zn,Ja]});return $e&&(bi.thisDep=bi.thisDep||$e.thisDep,bi.contextDep=bi.contextDep||$e.contextDep,bi.propDep=bi.propDep||$e.propDep),bi}else return $e?new Qr($e.thisDep,$e.contextDep,$e.propDep,function(gn,tn){var Ei=gn.shared.context;return[0,0,tn.def(Ei,".",ze),tn.def(Ei,".",Qe)]}):null}var Ut=Ft(ee);if(Ut){var zt=Ut;Ut=new Qr(Ut.thisDep,Ut.contextDep,Ut.propDep,function(_t,Dt){var vt=zt.append(_t,Dt),lr=_t.shared.context;return Dt.set(lr,"."+Xe,vt[2]),Dt.set(lr,"."+nt,vt[3]),vt})}return{viewport:Ut,scissor_box:Ft(Q)}}function is(Ne,$e){var st=Ne.static,It=typeof st[ut]=="string"&&typeof st[Ze]=="string";if(It){if(Object.keys($e.dynamic).length>0)return null;var Bt=$e.static,Ft=Object.keys(Bt);if(Ft.length>0&&typeof Bt[Ft[0]]=="number"){for(var Ut=[],zt=0;zt"+Gi+"?"+vt+".constant["+Gi+"]:0;"}).join(""),"}}else{","if(",Br,"(",vt,".buffer)){",gn,"=",Di,".createStream(",br,",",vt,".buffer);","}else{",gn,"=",Di,".getBuffer(",vt,".buffer);","}",tn,'="type" in ',vt,"?",_r.glTypes,"[",vt,".type]:",gn,".dtype;",ci.normalized,"=!!",vt,".normalized;");function Ei(Oi){Dt(ci[Oi],"=",vt,".",Oi,"|0;")}return Ei("size"),Ei("offset"),Ei("stride"),Ei("divisor"),Dt("}}"),Dt.exit("if(",ci.isStream,"){",Di,".destroyStream(",gn,");","}"),ci}Bt[Ft]=Bn(Ut,zt)}),Bt}function al(Ne){var $e=Ne.static,st=Ne.dynamic,It={};return Object.keys($e).forEach(function(Bt){var Ft=$e[Bt];It[Bt]=kn(function(Ut,zt){return typeof Ft=="number"||typeof Ft=="boolean"?""+Ft:Ut.link(Ft)})}),Object.keys(st).forEach(function(Bt){var Ft=st[Bt];It[Bt]=Bn(Ft,function(Ut,zt){return Ut.invoke(zt,Ft)})}),It}function Vl(Ne,$e,st,It,Bt){var Ft=Ne.static,Ut=Ne.dynamic,zt=is(Ne,$e),_t=sa(Ne,Bt),Dt=ba(Ne,_t,Bt),vt=Ga(Ne,Bt),lr=Ml(Ne,Bt),_r=Zs(Ne,Bt,zt);function Br(Ei){var Oi=Dt[Ei];Oi&&(lr[Ei]=Oi)}Br(ee),Br(Ji(Q));var Di=Object.keys(lr).length>0,ci={framebuffer:_t,draw:vt,shader:_r,state:lr,dirty:Di,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(ci.profile=ia(Ne,Bt),ci.uniforms=zo(st,Bt),ci.drawVAO=ci.scopeVAO=vt.vao,!ci.drawVAO&&_r.program&&!zt&&Ot.angle_instanced_arrays&&vt.static.elements){var bi=!0,gn=_r.program.attributes.map(function(Ei){var Oi=$e.static[Ei];return bi=bi&&!!Oi,Oi});if(bi&&gn.length>0){var tn=qi.getVAO(qi.createVAO({attributes:gn,elements:vt.static.elements}));ci.drawVAO=new Qr(null,null,null,function(Ei,Oi){return Ei.link(tn)}),ci.useVAO=!0}}return zt?ci.useVAO=!0:ci.attributes=Qs($e,Bt),ci.context=al(It,Bt),ci}function ss(Ne,$e,st){var It=Ne.shared,Bt=It.context,Ft=Ne.scope();Object.keys(st).forEach(function(Ut){$e.save(Bt,"."+Ut);var zt=st[Ut],_t=zt.append(Ne,$e);Array.isArray(_t)?Ft(Bt,".",Ut,"=[",_t.join(),"];"):Ft(Bt,".",Ut,"=",_t,";")}),$e(Ft)}function Vs(Ne,$e,st,It){var Bt=Ne.shared,Ft=Bt.gl,Ut=Bt.framebuffer,zt;ui&&(zt=$e.def(Bt.extensions,".webgl_draw_buffers"));var _t=Ne.constants,Dt=_t.drawBuffer,vt=_t.backBuffer,lr;st?lr=st.append(Ne,$e):lr=$e.def(Ut,".next"),It||$e("if(",lr,"!==",Ut,".cur){"),$e("if(",lr,"){",Ft,".bindFramebuffer(",zr,",",lr,".framebuffer);"),ui&&$e(zt,".drawBuffersWEBGL(",Dt,"[",lr,".colorAttachments.length]);"),$e("}else{",Ft,".bindFramebuffer(",zr,",null);"),ui&&$e(zt,".drawBuffersWEBGL(",vt,");"),$e("}",Ut,".cur=",lr,";"),It||$e("}")}function Ys(Ne,$e,st){var It=Ne.shared,Bt=It.gl,Ft=Ne.current,Ut=Ne.next,zt=It.current,_t=It.next,Dt=Ne.cond(zt,".dirty");fi.forEach(function(vt){var lr=Ji(vt);if(!(lr in st.state)){var _r,Br;if(lr in Ut){_r=Ut[lr],Br=Ft[lr];var Di=S(Xi[lr].length,function(bi){return Dt.def(_r,"[",bi,"]")});Dt(Ne.cond(Di.map(function(bi,gn){return bi+"!=="+Br+"["+gn+"]"}).join("||")).then(Bt,".",mn[lr],"(",Di,");",Di.map(function(bi,gn){return Br+"["+gn+"]="+bi}).join(";"),";"))}else{_r=Dt.def(_t,".",lr);var ci=Ne.cond(_r,"!==",zt,".",lr);Dt(ci),lr in si?ci(Ne.cond(_r).then(Bt,".enable(",si[lr],");").else(Bt,".disable(",si[lr],");"),zt,".",lr,"=",_r,";"):ci(Bt,".",mn[lr],"(",_r,");",zt,".",lr,"=",_r,";")}}}),Object.keys(st.state).length===0&&Dt(zt,".dirty=false;"),$e(Dt)}function wa(Ne,$e,st,It){var Bt=Ne.shared,Ft=Ne.current,Ut=Bt.current,zt=Bt.gl,_t;Ti(Object.keys(st)).forEach(function(Dt){var vt=st[Dt];if(!(It&&!It(vt))){var lr=vt.append(Ne,$e);if(si[Dt]){var _r=si[Dt];Pn(vt)?(_t=Ne.link(lr,{stable:!0}),$e(Ne.cond(_t).then(zt,".enable(",_r,");").else(zt,".disable(",_r,");")),$e(Ut,".",Dt,"=",_t,";")):($e(Ne.cond(lr).then(zt,".enable(",_r,");").else(zt,".disable(",_r,");")),$e(Ut,".",Dt,"=",lr,";"))}else if(En(lr)){var Br=Ft[Dt];$e(zt,".",mn[Dt],"(",lr,");",lr.map(function(Di,ci){return Br+"["+ci+"]="+Di}).join(";"),";")}else Pn(vt)?(_t=Ne.link(lr,{stable:!0}),$e(zt,".",mn[Dt],"(",_t,");",Ut,".",Dt,"=",_t,";")):$e(zt,".",mn[Dt],"(",lr,");",Ut,".",Dt,"=",lr,";")}})}function ol(Ne,$e){Ii&&(Ne.instancing=$e.def(Ne.shared.extensions,".angle_instanced_arrays"))}function io(Ne,$e,st,It,Bt){var Ft=Ne.shared,Ut=Ne.stats,zt=Ft.current,_t=Ft.timer,Dt=st.profile;function vt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var lr,_r;function Br(Ei){lr=$e.def(),Ei(lr,"=",vt(),";"),typeof Bt=="string"?Ei(Ut,".count+=",Bt,";"):Ei(Ut,".count++;"),ji&&(It?(_r=$e.def(),Ei(_r,"=",_t,".getNumPendingQueries();")):Ei(_t,".beginQuery(",Ut,");"))}function Di(Ei){Ei(Ut,".cpuTime+=",vt(),"-",lr,";"),ji&&(It?Ei(_t,".pushScopeStats(",_r,",",_t,".getNumPendingQueries(),",Ut,");"):Ei(_t,".endQuery();"))}function ci(Ei){var Oi=$e.def(zt,".profile");$e(zt,".profile=",Ei,";"),$e.exit(zt,".profile=",Oi,";")}var bi;if(Dt){if(Pn(Dt)){Dt.enable?(Br($e),Di($e.exit),ci("true")):ci("false");return}bi=Dt.append(Ne,$e),ci(bi)}else bi=$e.def(zt,".profile");var gn=Ne.block();Br(gn),$e("if(",bi,"){",gn,"}");var tn=Ne.block();Di(tn),$e.exit("if(",bi,"){",tn,"}")}function Y(Ne,$e,st,It,Bt){var Ft=Ne.shared;function Ut(_t){switch(_t){case Co:case Ps:case hl:return 2;case Qa:case Ts:case Ul:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function zt(_t,Dt,vt){var lr=Ft.gl,_r=$e.def(_t,".location"),Br=$e.def(Ft.attributes,"[",_r,"]"),Di=vt.state,ci=vt.buffer,bi=[vt.x,vt.y,vt.z,vt.w],gn=["buffer","normalized","offset","stride"];function tn(){$e("if(!",Br,".buffer){",lr,".enableVertexAttribArray(",_r,");}");var Oi=vt.type,Gi;if(vt.size?Gi=$e.def(vt.size,"||",Dt):Gi=Dt,$e("if(",Br,".type!==",Oi,"||",Br,".size!==",Gi,"||",gn.map(function(zn){return Br+"."+zn+"!=="+vt[zn]}).join("||"),"){",lr,".bindBuffer(",br,",",ci,".buffer);",lr,".vertexAttribPointer(",[_r,Gi,Oi,vt.normalized,vt.stride,vt.offset],");",Br,".type=",Oi,";",Br,".size=",Gi,";",gn.map(function(zn){return Br+"."+zn+"="+vt[zn]+";"}).join(""),"}"),Ii){var on=vt.divisor;$e("if(",Br,".divisor!==",on,"){",Ne.instancing,".vertexAttribDivisorANGLE(",[_r,on],");",Br,".divisor=",on,";}")}}function Ei(){$e("if(",Br,".buffer){",lr,".disableVertexAttribArray(",_r,");",Br,".buffer=null;","}if(",Ca.map(function(Oi,Gi){return Br+"."+Oi+"!=="+bi[Gi]}).join("||"),"){",lr,".vertexAttrib4f(",_r,",",bi,");",Ca.map(function(Oi,Gi){return Br+"."+Oi+"="+bi[Gi]+";"}).join(""),"}")}Di===La?tn():Di===Ua?Ei():($e("if(",Di,"===",La,"){"),tn(),$e("}else{"),Ei(),$e("}"))}It.forEach(function(_t){var Dt=_t.name,vt=st.attributes[Dt],lr;if(vt){if(!Bt(vt))return;lr=vt.append(Ne,$e)}else{if(!Bt(na))return;var _r=Ne.scopeAttrib(Dt);lr={},Object.keys(new Zr).forEach(function(Br){lr[Br]=$e.def(_r,".",Br)})}zt(Ne.link(_t),Ut(_t.info.type),lr)})}function D(Ne,$e,st,It,Bt,Ft){for(var Ut=Ne.shared,zt=Ut.gl,_t,Dt=0;Dt1){for(var co=[],ts=[],so=0;so>1)",ci],");")}function on(){st(bi,".drawArraysInstancedANGLE(",[_r,Br,Di,ci],");")}vt&&vt!=="null"?tn?Gi():(st("if(",vt,"){"),Gi(),st("}else{"),on(),st("}")):on()}function Oi(){function Gi(){st(Ft+".drawElements("+[_r,Di,gn,Br+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){st(Ft+".drawArrays("+[_r,Br,Di]+");")}vt&&vt!=="null"?tn?Gi():(st("if(",vt,"){"),Gi(),st("}else{"),on(),st("}")):on()}Ii&&(typeof ci!="number"||ci>=0)?typeof ci=="string"?(st("if(",ci,">0){"),Ei(),st("}else if(",ci,"<0){"),Oi(),st("}")):Ei():Oi()}function O(Ne,$e,st,It,Bt){var Ft=Cn(),Ut=Ft.proc("body",Bt);return Ii&&(Ft.instancing=Ut.def(Ft.shared.extensions,".angle_instanced_arrays")),Ne(Ft,Ut,st,It),Ft.compile().body}function K(Ne,$e,st,It){ol(Ne,$e),st.useVAO?st.drawVAO?$e(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,$e),");"):$e(Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"):($e(Ne.shared.vao,".setVAO(null);"),Y(Ne,$e,st,It.attributes,function(){return!0})),D(Ne,$e,st,It.uniforms,function(){return!0},!1),J(Ne,$e,$e,st)}function de(Ne,$e){var st=Ne.proc("draw",1);ol(Ne,st),ss(Ne,st,$e.context),Vs(Ne,st,$e.framebuffer),Ys(Ne,st,$e),wa(Ne,st,$e.state),io(Ne,st,$e,!1,!0);var It=$e.shader.progVar.append(Ne,st);if(st(Ne.shared.gl,".useProgram(",It,".program);"),$e.shader.program)K(Ne,st,$e,$e.shader.program);else{st(Ne.shared.vao,".setVAO(null);");var Bt=Ne.global.def("{}"),Ft=st.def(It,".id"),Ut=st.def(Bt,"[",Ft,"]");st(Ne.cond(Ut).then(Ut,".call(this,a0);").else(Ut,"=",Bt,"[",Ft,"]=",Ne.link(function(zt){return O(K,Ne,$e,zt,1)}),"(",It,");",Ut,".call(this,a0);"))}Object.keys($e.state).length>0&&st(Ne.shared.current,".dirty=true;"),Ne.shared.vao&&st(Ne.shared.vao,".setVAO(null);")}function ne(Ne,$e,st,It){Ne.batchId="a1",ol(Ne,$e);function Bt(){return!0}Y(Ne,$e,st,It.attributes,Bt),D(Ne,$e,st,It.uniforms,Bt,!1),J(Ne,$e,$e,st)}function we(Ne,$e,st,It){ol(Ne,$e);var Bt=st.contextDep,Ft=$e.def(),Ut="a0",zt="a1",_t=$e.def();Ne.shared.props=_t,Ne.batchId=Ft;var Dt=Ne.scope(),vt=Ne.scope();$e(Dt.entry,"for(",Ft,"=0;",Ft,"<",zt,";++",Ft,"){",_t,"=",Ut,"[",Ft,"];",vt,"}",Dt.exit);function lr(gn){return gn.contextDep&&Bt||gn.propDep}function _r(gn){return!lr(gn)}if(st.needsContext&&ss(Ne,vt,st.context),st.needsFramebuffer&&Vs(Ne,vt,st.framebuffer),wa(Ne,vt,st.state,lr),st.profile&&lr(st.profile)&&io(Ne,vt,st,!1,!0),It)st.useVAO?st.drawVAO?lr(st.drawVAO)?vt(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,vt),");"):Dt(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,Dt),");"):Dt(Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"):(Dt(Ne.shared.vao,".setVAO(null);"),Y(Ne,Dt,st,It.attributes,_r),Y(Ne,vt,st,It.attributes,lr)),D(Ne,Dt,st,It.uniforms,_r,!1),D(Ne,vt,st,It.uniforms,lr,!0),J(Ne,Dt,vt,st);else{var Br=Ne.global.def("{}"),Di=st.shader.progVar.append(Ne,vt),ci=vt.def(Di,".id"),bi=vt.def(Br,"[",ci,"]");vt(Ne.shared.gl,".useProgram(",Di,".program);","if(!",bi,"){",bi,"=",Br,"[",ci,"]=",Ne.link(function(gn){return O(ne,Ne,st,gn,2)}),"(",Di,");}",bi,".call(this,a0[",Ft,"],",Ft,");")}}function Oe(Ne,$e){var st=Ne.proc("batch",2);Ne.batchId="0",ol(Ne,st);var It=!1,Bt=!0;Object.keys($e.context).forEach(function(Br){It=It||$e.context[Br].propDep}),It||(ss(Ne,st,$e.context),Bt=!1);var Ft=$e.framebuffer,Ut=!1;Ft?(Ft.propDep?It=Ut=!0:Ft.contextDep&&It&&(Ut=!0),Ut||Vs(Ne,st,Ft)):Vs(Ne,st,null),$e.state.viewport&&$e.state.viewport.propDep&&(It=!0);function zt(Br){return Br.contextDep&&It||Br.propDep}Ys(Ne,st,$e),wa(Ne,st,$e.state,function(Br){return!zt(Br)}),(!$e.profile||!zt($e.profile))&&io(Ne,st,$e,!1,"a1"),$e.contextDep=It,$e.needsContext=Bt,$e.needsFramebuffer=Ut;var _t=$e.shader.progVar;if(_t.contextDep&&It||_t.propDep)we(Ne,st,$e,null);else{var Dt=_t.append(Ne,st);if(st(Ne.shared.gl,".useProgram(",Dt,".program);"),$e.shader.program)we(Ne,st,$e,$e.shader.program);else{st(Ne.shared.vao,".setVAO(null);");var vt=Ne.global.def("{}"),lr=st.def(Dt,".id"),_r=st.def(vt,"[",lr,"]");st(Ne.cond(_r).then(_r,".call(this,a0,a1);").else(_r,"=",vt,"[",lr,"]=",Ne.link(function(Br){return O(we,Ne,$e,Br,2)}),"(",Dt,");",_r,".call(this,a0,a1);"))}}Object.keys($e.state).length>0&&st(Ne.shared.current,".dirty=true;"),Ne.shared.vao&&st(Ne.shared.vao,".setVAO(null);")}function ht(Ne,$e){var st=Ne.proc("scope",3);Ne.batchId="a2";var It=Ne.shared,Bt=It.current;if(ss(Ne,st,$e.context),$e.framebuffer&&$e.framebuffer.append(Ne,st),Ti(Object.keys($e.state)).forEach(function(zt){var _t=$e.state[zt],Dt=_t.append(Ne,st);En(Dt)?Dt.forEach(function(vt,lr){pn(vt)?st.set(Ne.next[zt],"["+lr+"]",vt):st.set(Ne.next[zt],"["+lr+"]",Ne.link(vt,{stable:!0}))}):Pn(_t)?st.set(It.next,"."+zt,Ne.link(Dt,{stable:!0})):st.set(It.next,"."+zt,Dt)}),io(Ne,st,$e,!0,!0),[Mt,yr,$t,Cr,Jt].forEach(function(zt){var _t=$e.draw[zt];if(_t){var Dt=_t.append(Ne,st);pn(Dt)?st.set(It.draw,"."+zt,Dt):st.set(It.draw,"."+zt,Ne.link(Dt),{stable:!0})}}),Object.keys($e.uniforms).forEach(function(zt){var _t=$e.uniforms[zt].append(Ne,st);Array.isArray(_t)&&(_t="["+_t.map(function(Dt){return pn(Dt)?Dt:Ne.link(Dt,{stable:!0})})+"]"),st.set(It.uniforms,"["+Ne.link(bt.id(zt),{stable:!0})+"]",_t)}),Object.keys($e.attributes).forEach(function(zt){var _t=$e.attributes[zt].append(Ne,st),Dt=Ne.scopeAttrib(zt);Object.keys(new Zr).forEach(function(vt){st.set(Dt,"."+vt,_t[vt])})}),$e.scopeVAO){var Ft=$e.scopeVAO.append(Ne,st);pn(Ft)?st.set(It.vao,".targetVAO",Ft):st.set(It.vao,".targetVAO",Ne.link(Ft,{stable:!0}))}function Ut(zt){var _t=$e.shader[zt];if(_t){var Dt=_t.append(Ne,st);pn(Dt)?st.set(It.shader,"."+zt,Dt):st.set(It.shader,"."+zt,Ne.link(Dt,{stable:!0}))}}Ut(Ze),Ut(ut),Object.keys($e.state).length>0&&(st(Bt,".dirty=true;"),st.exit(Bt,".dirty=true;")),st("a1(",Ne.shared.context,",a0,",Ne.batchId,");")}function Yt(Ne){if(!(typeof Ne!="object"||En(Ne))){for(var $e=Object.keys(Ne),st=0;st<$e.length;++st)if(h.isDynamic(Ne[$e[st]]))return!0;return!1}}function cr(Ne,$e,st){var It=$e.static[st];if(!It||!Yt(It))return;var Bt=Ne.global,Ft=Object.keys(It),Ut=!1,zt=!1,_t=!1,Dt=Ne.global.def("{}");Ft.forEach(function(lr){var _r=It[lr];if(h.isDynamic(_r)){typeof _r=="function"&&(_r=It[lr]=h.unbox(_r));var Br=Bn(_r,null);Ut=Ut||Br.thisDep,_t=_t||Br.propDep,zt=zt||Br.contextDep}else{switch(Bt(Dt,".",lr,"="),typeof _r){case"number":Bt(_r);break;case"string":Bt('"',_r,'"');break;case"object":Array.isArray(_r)&&Bt("[",_r.join(),"]");break;default:Bt(Ne.link(_r));break}Bt(";")}});function vt(lr,_r){Ft.forEach(function(Br){var Di=It[Br];if(h.isDynamic(Di)){var ci=lr.invoke(_r,Di);_r(Dt,".",Br,"=",ci,";")}})}$e.dynamic[st]=new h.DynamicVariable(Zo,{thisDep:Ut,contextDep:zt,propDep:_t,ref:Dt,append:vt}),delete $e.static[st]}function Nt(Ne,$e,st,It,Bt){var Ft=Cn();Ft.stats=Ft.link(Bt),Object.keys($e.static).forEach(function(zt){cr(Ft,$e,zt)}),fr.forEach(function(zt){cr(Ft,Ne,zt)});var Ut=Vl(Ne,$e,st,It,Ft);return Ut.shader.program&&(Ut.shader.program.attributes.sort(function(zt,_t){return zt.name<_t.name?-1:1}),Ut.shader.program.uniforms.sort(function(zt,_t){return zt.name<_t.name?-1:1})),de(Ft,Ut),ht(Ft,Ut),Oe(Ft,Ut),e(Ft.compile(),{destroy:function(){Ut.shader.program.destroy()}})}return{next:qn,current:Xi,procs:function(){var Ne=Cn(),$e=Ne.proc("poll"),st=Ne.proc("refresh"),It=Ne.block();$e(It),st(It);var Bt=Ne.shared,Ft=Bt.gl,Ut=Bt.next,zt=Bt.current;It(zt,".dirty=false;"),Vs(Ne,$e),Vs(Ne,st,null,!0);var _t;Ii&&(_t=Ne.link(Ii)),Ot.oes_vertex_array_object&&st(Ne.link(Ot.oes_vertex_array_object),".bindVertexArrayOES(null);");var Dt=st.def(Bt.attributes),vt=st.def(0),lr=Ne.cond(vt,".buffer");lr.then(Ft,".enableVertexAttribArray(i);",Ft,".bindBuffer(",br,",",vt,".buffer.buffer);",Ft,".vertexAttribPointer(i,",vt,".size,",vt,".type,",vt,".normalized,",vt,".stride,",vt,".offset);").else(Ft,".disableVertexAttribArray(i);",Ft,".vertexAttrib4f(i,",vt,".x,",vt,".y,",vt,".z,",vt,".w);",vt,".buffer=null;");var _r=Ne.link(Lr.maxAttributes,{stable:!0});return st("for(var i=0;i<",_r,";++i){",vt,"=",Dt,"[i];",lr,"}"),Ii&&st("for(var i=0;i<",_r,";++i){",_t,".vertexAttribDivisorANGLE(i,",Dt,"[i].divisor);","}"),st(Ne.shared.vao,".currentVAO=null;",Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"),Object.keys(si).forEach(function(Br){var Di=si[Br],ci=It.def(Ut,".",Br),bi=Ne.block();bi("if(",ci,"){",Ft,".enable(",Di,")}else{",Ft,".disable(",Di,")}",zt,".",Br,"=",ci,";"),st(bi),$e("if(",ci,"!==",zt,".",Br,"){",bi,"}")}),Object.keys(mn).forEach(function(Br){var Di=mn[Br],ci=Xi[Br],bi,gn,tn=Ne.block();if(tn(Ft,".",Di,"("),En(ci)){var Ei=ci.length;bi=Ne.global.def(Ut,".",Br),gn=Ne.global.def(zt,".",Br),tn(S(Ei,function(Oi){return bi+"["+Oi+"]"}),");",S(Ei,function(Oi){return gn+"["+Oi+"]="+bi+"["+Oi+"];"}).join("")),$e("if(",S(Ei,function(Oi){return bi+"["+Oi+"]!=="+gn+"["+Oi+"]"}).join("||"),"){",tn,"}")}else bi=It.def(Ut,".",Br),gn=It.def(zt,".",Br),tn(bi,");",zt,".",Br,"=",bi,";"),$e("if(",bi,"!==",gn,"){",tn,"}");st(tn)}),Ne.compile()}(),compile:Nt}}function Ia(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var yo=34918,Da=34919,go=35007,Is=function(Me,bt){if(!bt.ext_disjoint_timer_query)return null;var Ot=[];function Lr(){return Ot.pop()||bt.ext_disjoint_timer_query.createQueryEXT()}function Vr(yi){Ot.push(yi)}var Or=[];function Nr(yi){var Ii=Lr();bt.ext_disjoint_timer_query.beginQueryEXT(go,Ii),Or.push(Ii),ji(Or.length-1,Or.length,yi)}function vi(){bt.ext_disjoint_timer_query.endQueryEXT(go)}function Ni(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var qi=[];function Si(){return qi.pop()||new Ni}function Vn(yi){qi.push(yi)}var Qi=[];function ji(yi,Ii,ui){var nn=Si();nn.startQueryIndex=yi,nn.endQueryIndex=Ii,nn.sum=0,nn.stats=ui,Qi.push(nn)}var oi=[],Tr=[];function Zr(){var yi,Ii,ui=Or.length;if(ui!==0){Tr.length=Math.max(Tr.length,ui+1),oi.length=Math.max(oi.length,ui+1),oi[0]=0,Tr[0]=0;var nn=0;for(yi=0,Ii=0;Ii=0;--O){var K=Nn[O];K&&K(oi,null,0)}Ot.flush(),Si&&Si.update()}function ba(){!ia&&Nn.length>0&&(ia=d.next(sa))}function is(){ia&&(d.cancel(sa),ia=null)}function Zs(O){O.preventDefault(),Vr=!0,is(),aa.forEach(function(K){K()})}function Ga(O){Ot.getError(),Vr=!1,Or.restore(),qn.restore(),Ii.restore(),fi.restore(),si.restore(),mn.restore(),nn.restore(),Si&&Si.restore(),Ji.procs.refresh(),ba(),Ki.forEach(function(K){K()})}pn&&(pn.addEventListener(Fo,Zs,!1),pn.addEventListener(Uo,Ga,!1));function Ml(){Nn.length=0,is(),pn&&(pn.removeEventListener(Fo,Zs),pn.removeEventListener(Uo,Ga)),qn.clear(),mn.clear(),si.clear(),nn.clear(),fi.clear(),ui.clear(),Ii.clear(),Si&&Si.clear(),Cn.forEach(function(O){O()})}function zo(O){function K(Ft){var Ut=e({},Ft);delete Ut.uniforms,delete Ut.attributes,delete Ut.context,delete Ut.vao,"stencil"in Ut&&Ut.stencil.op&&(Ut.stencil.opBack=Ut.stencil.opFront=Ut.stencil.op,delete Ut.stencil.op);function zt(_t){if(_t in Ut){var Dt=Ut[_t];delete Ut[_t],Object.keys(Dt).forEach(function(vt){Ut[_t+"."+vt]=Dt[vt]})}}return zt("blend"),zt("depth"),zt("cull"),zt("stencil"),zt("polygonOffset"),zt("scissor"),zt("sample"),"vao"in Ft&&(Ut.vao=Ft.vao),Ut}function de(Ft,Ut){var zt={},_t={};return Object.keys(Ft).forEach(function(Dt){var vt=Ft[Dt];if(h.isDynamic(vt)){_t[Dt]=h.unbox(vt,Dt);return}else if(Ut&&Array.isArray(vt)){for(var lr=0;lr0)return Ne.call(this,It(Ft|0),Ft|0)}else if(Array.isArray(Ft)){if(Ft.length)return Ne.call(this,Ft,Ft.length)}else return Nt.call(this,Ft)}return e(Bt,{stats:Yt,destroy:function(){cr.destroy()}})}var Qs=mn.setFBO=zo({framebuffer:h.define.call(null,$s,"framebuffer")});function al(O,K){var de=0;Ji.procs.poll();var ne=K.color;ne&&(Ot.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Ms),"depth"in K&&(Ot.clearDepth(+K.depth),de|=Xs),"stencil"in K&&(Ot.clearStencil(K.stencil|0),de|=Un),Ot.clear(de)}function Vl(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)Qs(e({framebuffer:O.framebuffer.faces[K]},O),al);else Qs(O,al);else al(null,O)}function ss(O){Nn.push(O);function K(){var de=dl(Nn,O);function ne(){var we=dl(Nn,ne);Nn[we]=Nn[Nn.length-1],Nn.length-=1,Nn.length<=0&&is()}Nn[de]=ne}return ba(),{cancel:K}}function Vs(){var O=Bi.viewport,K=Bi.scissor_box;O[0]=O[1]=K[0]=K[1]=0,oi.viewportWidth=oi.framebufferWidth=oi.drawingBufferWidth=O[2]=K[2]=Ot.drawingBufferWidth,oi.viewportHeight=oi.framebufferHeight=oi.drawingBufferHeight=O[3]=K[3]=Ot.drawingBufferHeight}function Ys(){oi.tick+=1,oi.time=ol(),Vs(),Ji.procs.poll()}function wa(){fi.refresh(),Vs(),Ji.procs.refresh(),Si&&Si.update()}function ol(){return(v()-Vn)/1e3}wa();function io(O,K){var de;switch(O){case"frame":return ss(K);case"lost":de=aa;break;case"restore":de=Ki;break;case"destroy":de=Cn;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:Ml,_gl:Ot,_refresh:wa,poll:function(){Ys(),Si&&Si.update()},now:ol,stats:vi,getCachedCode:Y,preloadCachedCode:D});return bt.onDone(null,J),J}return Sc})});var Iz=ye((z_r,NBe)=>{"use strict";var rVt=qX(),iVt=BBe();NBe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=iVt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||rVt({container:i._glcontainer.node()}),a}});var bK=ye((xK,jBe)=>{"use strict";var UBe=xY(),VBe=JY(),nVt=COe(),GBe=OBe(),_K=Pr(),aVt=Cg().selectMode,oVt=Iz(),sVt=Ru(),lVt=EU(),uVt=gY().styleTextSelection,HBe={};function cVt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,l=i.b*n,u=i.r*n,c=i.t*n,f=i.w*n,h=i.h*n;return[s+t.domain[0]*f,l+r.domain[0]*h,a-u-(1-t.domain[1])*f,o-c-(1-r.domain[1])*h]}var xK=jBe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=oVt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],HBe);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if(lVt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=nVt(h)),a.line2d===!0&&(a.line2d=VBe(h)),a.scatter2d===!0&&(a.scatter2d=UBe(h)),a.fill2d===!0&&(a.fill2d=VBe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var d=f-a.glText.length;for(l=0;lie&&(isNaN(H[ae])||isNaN(H[ae+1]));)ae-=2;N.positions=H.slice(ie,ae+2)}return N}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=_K.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(N,H){var ie=n[H];if(!(!N||!ie||!ie[0]||!ie[0].trace)){var ae=ie[0],_e=ae.trace,Ee=ae.t,Ce=a.lineOptions[H],ge,re,Se=[];_e._ownfill&&Se.push(H),_e._nexttrace&&Se.push(H+1),Se.length&&(a.fillOrder[H]=Se);var ke=[],be=Ce&&Ce.positions||Ee.positions,Be,Le;if(_e.fill==="tozeroy"){for(Be=0;BeBe&&isNaN(be[Le+1]);)Le-=2;be[Be+1]!==0&&(ke=[be[Be],0]),ke=ke.concat(be.slice(Be,Le+2)),be[Le+1]!==0&&(ke=ke.concat([be[Le],0]))}else if(_e.fill==="tozerox"){for(Be=0;BeBe&&isNaN(be[Le]);)Le-=2;be[Be]!==0&&(ke=[0,be[Be+1]]),ke=ke.concat(be.slice(Be,Le+2)),be[Le]!==0&&(ke=ke.concat([0,be[Le+1]]))}else if(_e.fill==="toself"||_e.fill==="tonext"){for(ke=[],ge=0,N.splitNull=!0,re=0;re-1;for(let[N]of n)if(N){var T=N.trace,L=N.t,x=L.index,C=T._length,S=L.x,g=L.y;if(T.selectedpoints||k||M){if(k||(k=!0),T.selectedpoints){var P=a.selectBatch[x]=_K.selIndices2selPoints(T),E={};for(u=0;u{"use strict";var WBe=c7e();WBe.plot=bK();XBe.exports=WBe});var KBe=ye((O_r,YBe)=>{"use strict";YBe.exports=ZBe()});var wK=ye((B_r,eNe)=>{"use strict";var fVt=pf(),QBe=Tu(),JBe=vf().axisHoverFormat,{hovertemplateAttrs:hVt,templatefallbackAttrs:dVt}=Ll(),qk=mk(),vVt=Rh().idRegex,pVt=vl().templatedArray,b5=Ao().extendFlat,d1=fVt.marker,gVt=d1.line,mVt=b5(QBe("marker.line",{editTypeOverride:"calc"}),{width:b5({},gVt.width,{editType:"calc"}),editType:"calc"}),Rz=b5(QBe("marker"),{symbol:d1.symbol,angle:d1.angle,size:b5({},d1.size,{editType:"markerSize"}),sizeref:d1.sizeref,sizemin:d1.sizemin,sizemode:d1.sizemode,opacity:d1.opacity,colorbar:d1.colorbar,line:mVt,editType:"calc"});Rz.color.editType=Rz.cmin.editType=Rz.cmax.editType="style";function $Be(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:vVt[e],editType:"plot"}}}eNe.exports={dimensions:pVt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:b5({},qk.text,{}),hovertext:b5({},qk.hovertext,{}),hovertemplate:hVt(),hovertemplatefallback:dVt(),xhoverformat:JBe("x"),yhoverformat:JBe("y"),marker:Rz,xaxes:$Be("x"),yaxes:$Be("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:qk.selected.marker,editType:"calc"},unselected:{marker:qk.unselected.marker,editType:"calc"},opacity:qk.opacity}});var Dz=ye((N_r,tNe)=>{"use strict";tNe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var TK=Pr(),yVt=Kd(),rNe=wK(),_Vt=Ru(),xVt=$p(),bVt=Dz(),wVt=ZF().isOpenSymbol;iNe.exports=function(t,r,n,i){function a(d,v){return TK.coerce(t,r,rNe,d,v)}var o=yVt(t,r,{name:"dimensions",handleItemDefaults:TVt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=bVt(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),xVt(t,r,n,i,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var f=wVt(r.marker.symbol),h=_Vt.isBubble(r);a("marker.line.width",f||h?1:0),AVt(t,r,i,a),TK.coerceSelectionMarkerOpacity(r,a)};function TVt(e,t){function r(i,a){return TK.coerce(e,t,rNe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function AVt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,c,f=new Array(a),h=new Array(a);for(u=0;uc&&o||u{"use strict";var aNe=Pr();oNe.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[i]=aNe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||aNe.extendFlat(l,o),l}});var cNe=ye((G_r,uNe)=>{"use strict";var AK=Pr(),Fz=df(),SVt=O0().calcMarkerSize,MVt=O0().calcAxisExpansion,EVt=z0(),lNe=lw().markerSelection,kVt=lw().markerStyle,CVt=sNe(),LVt=fs().BADNUM,PVt=gx().TOO_MANY_POINTS;uNe.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,d;function v(M,T){for(var L=M.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),x=0;xPVt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=SVt(r,i),c=0;c{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?Ok.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Ok.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(Ok.exports=function(){return Date.now()-r},r=Date.now()):(Ok.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(fNe)});var vNe=ye((H_r,Oz)=>{var IVt=hNe(),v1=window,zz=["moz","webkit"],T5="AnimationFrame",A5=v1["request"+T5],Bk=v1["cancel"+T5]||v1["cancelRequest"+T5];for(w5=0;!A5&&w5{pNe.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var RVt=xY(),DVt=ty(),FVt=nw(),mNe=vNe(),zVt=gNe(),MK=l5(),qVt=aw();_Ne.exports=Sx;function Sx(e,t){if(!(this instanceof Sx))return new Sx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=RVt(e),this.canvas=this.scatter.canvas}Sx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=mNe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,mNe(()=>{this.dirty=!1})),this)};Sx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&m{t[a+s]=n})}this.scatter.draw(...t)}return this};Sx.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function OVt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function Bz(e,t,r){let n,i,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(n=f[0],a=f[2],i=f[1],o=f[3]):f.length?(n=i=f[0],a=o=f[1]):(n=f.x,i=f.y,a=f.x+f.width,o=f.y+f.height),h.length>2?(s=h[0],u=h[2],l=h[1],c=h[3]):h.length?(s=l=h[0],u=c=h[1]):(s=h.x,l=h.y,u=h.x+h.width,c=h.y+h.height),[s,i,u,o]}function yNe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=MK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var wNe=ye((X_r,bNe)=>{"use strict";var BVt=xNe(),EK=Pr(),Nz=df(),NVt=Cg().selectMode;bNe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,E=NVt(c)||!!i.selectedpoints||P,z=!0;if(E){var q=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var V=i.selectedpoints,G={};for(d=0;d{"use strict";TNe.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var ANe=kK(),VVt=XF().calcHover,SNe=ho().getFromId,GVt=Ao().extendFlat;function HVt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=MNe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=GVt({},e),f=0;f{"use strict";var INe=Pr(),CNe=INe.pushUnique,LNe=Ru(),PNe=kK();RNe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!LNe.hasMarkers(i)&&!LNe.hasText(i);if(i.visible!==!0||f)return c;var h=PNe.getDimIndex(i,l),d=PNe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],m=a.ypx[d],b=s[h],p=s[d],k=(t.scene.selectBatch||[]).slice(),M=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var FNe=Pr(),jVt=z0(),WVt=lw().markerStyle;zNe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){jVt(t,n),FNe.extendFlat(i.matrixOptions,WVt(t,n));var a=FNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var BNe=ye(($_r,ONe)=>{"use strict";var XVt=Oa(),ZVt=xV();ONe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:wK(),supplyDefaults:nNe(),colorbar:Qd(),calc:cNe(),plot:wNe(),hoverPoints:kNe().hoverPoints,selectPoints:DNe(),editStyle:qNe(),meta:{}};XVt.register(ZVt)});var jNe=ye((Q_r,HNe)=>{"use strict";var YVt=JY(),KVt=Oa(),JVt=Iz(),$Vt=Id().getModuleCalcData,Mx=mh(),NNe=df().getFromId,UNe=ho().shouldShowZeroLine,VNe="splom",GNe={};function QVt(e){var t=e._fullLayout,r=KVt.getModule(VNe),n=$Vt(e.calcdata,r)[0],i=JVt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],GNe);i&&(t._hasOnlyLargeSploms&&CK(e),r.plot(e,{},n))}function eGt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&CK(e);for(var n=0;n{"use strict";var WNe=BNe();WNe.basePlotModule=jNe(),XNe.exports=WNe});var KNe=ye((txr,YNe)=>{"use strict";YNe.exports=ZNe()});var IK=ye((rxr,JNe)=>{"use strict";var nGt=Tu(),LK=Rd(),PK=ec(),aGt=Cc().attributes,Uz=Ao().extendFlat,oGt=vl().templatedArray;JNe.exports={domain:aGt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:PK({editType:"plot"}),tickfont:PK({autoShadowDflt:!0,editType:"plot"}),rangefont:PK({editType:"plot"}),dimensions:oGt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Uz({},LK.tickvals,{editType:"plot"}),ticktext:Uz({},LK.ticktext,{editType:"plot"}),tickformat:Uz({},LK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:Uz({editType:"calc"},nGt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Nk=ye((ixr,$Ne)=>{"use strict";$Ne.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var ny=ye((nxr,eUe)=>{"use strict";var sGt=YS();function QNe(e){return[e]}eUe.exports={keyFun:function(e){return e.key},repeat:QNe,descend:sGt,wrap:QNe,unwrap:function(e){return e[0]}}});var FK=ye((axr,fUe)=>{"use strict";var Th=Nk(),im=qa(),lGt=ny().keyFun,Vz=ny().repeat,S5=Pr().sorterAsc,uGt=Pr().strTranslate,tUe=Th.bar.snapRatio;function rUe(e,t){return e*(1-tUe)+t*tUe}var iUe=Th.bar.snapClose;function cGt(e,t){return e*(1-iUe)+t*iUe}function Hz(e,t,r,n){if(fGt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;i*c=t[r][0]&&e<=t[r][1])return!0;return!1}function hGt(e){e.attr("x",-Th.bar.captureWidth/2).attr("width",Th.bar.captureWidth)}function dGt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function vGt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=nUe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function aUe(){im.select(document.body).style("cursor",null)}function DK(e){e.attr("stroke-dasharray",vGt)}function Gz(e,t){var r=im.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(Th.bar.snapDuration).each("end",t):r;DK(n)}function oUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=nUe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){c=o;break}else if(f=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=c,isNaN(i)&&(isNaN(f)||isNaN(h)?i=isNaN(f)?h:f:i=t-u[f][1]=k[0]&&p<=k[1]){a.clickableOrdinalRange=k;break}}}return a}function gGt(e,t){im.event.sourceEvent.stopPropagation();var r=t.height-im.mouse(e)[1]-2*Th.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=oUe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-Th.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function sUe(e,t){im.event.sourceEvent.stopPropagation();var r=t.height-im.mouse(e)[1]-2*Th.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(S5),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),Gz(e.parentNode)}function mGt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(lUe(e,t),sUe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=im.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,aUe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&RK(r)):RK(r),i.brushCallback(t),Gz(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(u?[i.newExtent]:[]),i.extent.length||RK(r),i.brushCallback(t),u?Gz(e.parentNode,s):(s(),Gz(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function lUe(e,t){var r=t.height-im.mouse(e)[1]-2*Th.verticalPadding,n=oUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),im.select(document.body).style("cursor",i)}function yGt(e){e.on("mousemove",function(t){im.event.preventDefault(),t.parent.inBrushDrag||lUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||aUe()}).call(im.behavior.drag().on("dragstart",function(t){gGt(this,t)}).on("drag",function(t){sUe(this,t)}).on("dragend",function(t){mGt(this,t)}))}function uUe(e,t){return e[0]-t[0]}function _Gt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(Vz);i.enter().append("rect").classed("background",!0).call(hGt).call(dGt).style("pointer-events",n?"none":"auto").attr("transform",uGt(0,Th.verticalPadding)),i.call(yGt).attr("height",function(s){return s.height-Th.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Vz);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-Th.bar.width/2).attr("stroke-width",Th.bar.width+Th.bar.strokeWidth).attr("stroke",t).attr("opacity",Th.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(DK);var o=e.selectAll(".highlight").data(Vz);o.enter().append("line").classed("highlight",!0).attr("x",-Th.bar.width/2).attr("stroke-width",Th.bar.width-Th.bar.strokeWidth).attr("stroke",Th.bar.fillColor).attr("opacity",Th.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(DK)}function xGt(e,t,r){var n=e.selectAll("."+Th.cn.axisBrush).data(Vz,lGt);n.enter().append("g").classed(Th.cn.axisBrush,!0),_Gt(n,t,r)}function bGt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function RK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function wGt(e){return function(r){var n=r.brush,i=bGt(n),a=i.slice();n.filter.set(a),e()}}function cUe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function TGt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(S5)}).sort(uUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=cUe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function AGt(e,t,r,n,i,a){var o=TGt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:wGt(i),brushEndCallback:a}}}function SGt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(S5)}),t.multiselect?e=cUe(e.sort(uUe)):e=[e[0]]):e=[e.sort(S5)],t.tickvals){var r=t.tickvals.slice().sort(S5);if(e=e.map(function(n){var i=[Hz(0,r,n[0],[]),Hz(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}fUe.exports={makeBrush:AGt,ensureAxisBrush:xGt,cleanRanges:SGt}});var vUe=ye((oxr,dUe)=>{"use strict";var Ex=Pr(),MGt=pv().hasColorscale,EGt=td(),kGt=Cc().defaults,CGt=Kd(),LGt=ho(),hUe=IK(),PGt=FK(),zK=Nk().maxDimensionCount,IGt=Dz();function RGt(e,t,r,n,i){var a=i("line.color",r);if(MGt(e,"line")&&Ex.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),EGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function DGt(e,t,r,n){function i(u,c){return Ex.coerce(e,t,hUe.dimensions,u,c)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},LGt.setConvert(t._ax,n.layout),i("multiselect");var l=i("constraintrange");l&&(t.constraintrange=PGt.cleanRanges(l,t))}}dUe.exports=function(t,r,n,i){function a(c,f){return Ex.coerce(t,r,hUe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>zK&&(Ex.log("parcoords traces support up to "+zK+" dimensions at the moment"),o.splice(zK));var s=CGt(t,r,{name:"dimensions",layout:i,handleItemDefaults:DGt}),l=RGt(t,r,n,i,a);kGt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),IGt(r,s,"values",l);var u=Ex.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});Ex.coerceFont(a,"labelfont",u),Ex.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),Ex.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var gUe=ye((sxr,pUe)=>{"use strict";var FGt=Pr().isArrayOrTypedArray,qK=tc(),zGt=ny().wrap;pUe.exports=function(t,r){var n,i;return qK.hasColorscale(r,"line")&&FGt(r.line.color)?(n=r.line.color,i=qK.extractOpts(r.line).colorscale,qK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=qGt(r._length),i=[[0,r.line.color],[1,r.line.color]]),zGt({lineColor:n,cscale:i})};function qGt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),OK.default[e])r=OK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];i=l.replace(/a$/,"");var u=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(mUe[h]!==void 0)return mUe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((f=(c=e.match(/([a-z])/ig))==null?void 0:c.join(""))==null?void 0:f.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var OK,yUe,mUe,_Ue=gu(()=>{OK=ktt(AX(),1),yUe=OGt,mUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Uk,BK=gu(()=>{Uk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var jz,xUe=gu(()=>{BK();jz={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}};Uk.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,l,u;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]}});var wUe={};yee(wUe,{default:()=>bUe});function bUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=yUe(e);if(!i.space)return[];let a=i.space[0]==="h"?jz.min:Uk.min,o=i.space[0]==="h"?jz.max:Uk.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=jz.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var TUe=gu(()=>{_Ue();BK();xUe()});var NK=ye(Wz=>{"use strict";var BGt=Pr().isTypedArray;Wz.convertTypedArray=function(e){return BGt(e)?Array.prototype.slice.call(e):e};Wz.isOrdinal=function(e){return!!e.tickvals};Wz.isVisible=function(e){return e.visible||!("visible"in e)}});var RUe=ye((gxr,IUe)=>{"use strict";var NGt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` -`),UGt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),Vk=Nk().maxDimensionCount,CUe=Pr(),AUe=1e-6,Xz=2048,VGt=new Uint8Array(4),SUe=new Uint8Array(4),MUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function GGt(e){e.read({x:0,y:0,width:1,height:1,data:VGt})}function LUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function HGt(e,t,r,n,i,a){var o=a.key;function s(l){var u=Math.min(n,i-l*n);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],LUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*n,t(a),l*n+u>>8*t)%256/255}function XGt(e,t,r){for(var n=new Array(e*(Vk+4)),i=0,a=0;aZ&&(Z=S[z].dim1.canvasX,V=z);E===0&&LUe(i,0,0,u.canvasWidth,u.canvasHeight);var j=M(r);for(z=0;z{"use strict";var Bd=qa(),p1=Pr(),VK=p1.isArrayOrTypedArray,BUe=p1.numberFormat,NUe=(TUe(),gb(wUe)).default,UUe=ho(),$Gt=p1.strRotate,ay=p1.strTranslate,QGt=Zl(),Zz=So(),DUe=tc(),jK=ny(),ig=jK.keyFun,oy=jK.repeat,VUe=jK.unwrap,M5=NK(),Dl=Nk(),GUe=FK(),eHt=RUe();function FUe(e,t,r){return p1.aggNums(e,null,t,r)}function HUe(e,t){return WK(FUe(Math.min,e,t),FUe(Math.max,e,t))}function Yz(e){var t=e.range;return t?WK(t[0],t[1]):HUe(e.values,e._length)}function WK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function tHt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function rHt(e,t,r,n,i){var a=Yz(r);return n?Bd.scale.ordinal().domain(n.map(tHt(BUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Bd.scale.linear().domain(a).range([e-t,t])}function iHt(e,t){return Bd.scale.linear().range([t,e-t])}function nHt(e,t){return Bd.scale.linear().domain(Yz(e)).range([t,1-t])}function aHt(e){if(e.tickvals){var t=Yz(e);return Bd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function oHt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=NUe(a[1]);return Bd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Bd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function HK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function sHt(e,t,r){var n=VUe(t),i=n.trace,a=M5.convertTypedArray(n.lineColor),o=i.line,s={color:NUe(i.unselected.line.color),opacity:i.unselected.line.opacity},l=DUe.extractOpts(o),u=l.reversescale?DUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,m=i.labelfont,b=i.tickfont,p=i.rangefont,k=p1.extendDeepNoArrays({},o,{color:a.map(Bd.scale.linear().domain(Yz({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:Dl.blockLineCount,canvasOverdrag:Dl.overdrag*Dl.canvasPixelRatio}),M=Math.floor(h*(c.x[1]-c.x[0])),T=Math.floor(e.height*(c.y[1]-c.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},x=M,C=T;return{key:r,colCount:f.filter(M5.isVisible).length,dimensions:f,tickDistance:Dl.tickDistance,unitToColor:oHt(u),lines:k,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:m,tickFont:b,rangeFont:p,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:L,canvasWidth:x*Dl.canvasPixelRatio+2*k.canvasOverdrag,canvasHeight:C*Dl.canvasPixelRatio,width:x,height:C,canvasPixelRatio:Dl.canvasPixelRatio}}function lHt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},l=Dl.verticalPadding/i,u=iHt(i,Dl.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(M5.isVisible).map(function(h,d){var v=nHt(h,l),m=f[h.label];f[h.label]=(m||0)+1;var b=h.label+(m?"__"+m:""),p=h.constraintrange,k=p&&p.length;k&&!VK(p[0])&&(p=[p]);var M=k?p.map(function(q){return q.map(v)}):[[-1/0,1/0]],T=function(){var q=c;q.focusLayer&&q.focusLayer.render(q.panels,!0);var V=HK(q);!e.contextShown()&&V?(q.contextLayer&&q.contextLayer.render(q.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(q.contextLayer&&q.contextLayer.render(q.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var x=h.tickvals,C;function S(q,V){return{val:q,text:C[V]}}function g(q,V){return q.val-V.val}if(VK(x)&&x.length){p1.isTypedArray(x)&&(x=Array.from(x)),C=h.ticktext,!VK(C)||!C.length?C=x.map(BUe(h.tickformat)):C.length>x.length?C=C.slice(0,x.length):x.length>C.length&&(x=x.slice(0,C.length));for(var P=1;P=V||N>=G)return;var H=z.lineLayer.readPixel(j,G-1-N),ie=H[3]!==0,ae=ie?H[2]+256*(H[1]+256*H[0]):null,_e={x:j,y:N,clientX:q.clientX,clientY:q.clientY,dataIndex:z.model.key,curveNumber:ae};ae!==v&&(ie?i.hover(_e):i.unhover&&i.unhover(_e),v=ae)}}),d.style("opacity",function(z){return z.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Dl.cn.parcoords).data(h,ig);b.exit().remove(),b.enter().append("g").classed(Dl.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(z){return ay(z.model.translateX,z.model.translateY)});var p=b.selectAll("."+Dl.cn.parcoordsControlView).data(oy,ig);p.enter().append("g").classed(Dl.cn.parcoordsControlView,!0),p.attr("transform",function(z){return ay(z.model.pad.l,z.model.pad.t)});var k=p.selectAll("."+Dl.cn.yAxis).data(function(z){return z.dimensions},ig);k.enter().append("g").classed(Dl.cn.yAxis,!0),p.each(function(z){GK(k,z,u)}),d.each(function(z){if(z.viewModel){!z.lineLayer||i?z.lineLayer=eHt(this,z):z.lineLayer.update(z),(z.key||z.key===0)&&(z.viewModel[z.key]=z.lineLayer);var q=!z.context||i;z.lineLayer.render(z.viewModel.panels,q)}}),k.attr("transform",function(z){return ay(z.xScale(z.xIndex),0)}),k.call(Bd.behavior.drag().origin(function(z){return z}).on("drag",function(z){var q=z.parent;f.linePickActive(!1),z.x=Math.max(-Dl.overdrag,Math.min(z.model.width+Dl.overdrag,Bd.event.x)),z.canvasX=z.x*z.model.canvasPixelRatio,k.sort(function(V,G){return V.x-G.x}).each(function(V,G){V.xIndex=G,V.x=z===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),GK(k,q,u),k.filter(function(V){return Math.abs(z.xIndex-V.xIndex)!==0}).attr("transform",function(V){return ay(V.xScale(V.xIndex),0)}),Bd.select(this).attr("transform",ay(z.x,0)),k.each(function(V,G,Z){Z===z.parent.key&&(q.dimensions[G]=V)}),q.contextLayer&&q.contextLayer.render(q.panels,!1,!HK(q)),q.focusLayer.render&&q.focusLayer.render(q.panels)}).on("dragend",function(z){var q=z.parent;z.x=z.xScale(z.xIndex),z.canvasX=z.x*z.model.canvasPixelRatio,GK(k,q,u),Bd.select(this).attr("transform",function(V){return ay(V.x,0)}),q.contextLayer&&q.contextLayer.render(q.panels,!1,!HK(q)),q.focusLayer&&q.focusLayer.render(q.panels),q.pickLayer&&q.pickLayer.render(q.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(q.key,q.dimensions.map(function(V){return V.crossfilterDimensionIndex}))})),k.exit().remove();var M=k.selectAll("."+Dl.cn.axisOverlays).data(oy,ig);M.enter().append("g").classed(Dl.cn.axisOverlays,!0),M.selectAll("."+Dl.cn.axis).remove();var T=M.selectAll("."+Dl.cn.axis).data(oy,ig);T.enter().append("g").classed(Dl.cn.axis,!0),T.each(function(z){var q=z.model.height/z.model.tickDistance,V=z.domainScale,G=V.domain();Bd.select(this).call(Bd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(q,z.tickFormat).tickValues(z.ordinal?G:null).tickFormat(function(Z){return M5.isOrdinal(z)?Z:jUe(z.model.dimensions[z.visibleIndex],Z)}).scale(V)),Zz.font(T.selectAll("text"),z.model.tickFont)}),T.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),T.selectAll("text").style("cursor","default");var L=M.selectAll("."+Dl.cn.axisHeading).data(oy,ig);L.enter().append("g").classed(Dl.cn.axisHeading,!0);var x=L.selectAll("."+Dl.cn.axisTitle).data(oy,ig);x.enter().append("text").classed(Dl.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(z){return z.label}).each(function(z){var q=Bd.select(this);Zz.font(q,z.model.labelFont),QGt.convertToTspans(q,t)}).attr("transform",function(z){var q=qUe(z.model.labelAngle,z.model.labelSide),V=Dl.axisTitleOffset;return(q.dir>0?"":ay(0,2*V+z.model.height))+$Gt(q.degrees)+ay(-V*q.dx,-V*q.dy)}).attr("text-anchor",function(z){var q=qUe(z.model.labelAngle,z.model.labelSide),V=Math.abs(q.dx),G=Math.abs(q.dy);return 2*V>G?q.dir*q.dx<0?"start":"end":"middle"});var C=M.selectAll("."+Dl.cn.axisExtent).data(oy,ig);C.enter().append("g").classed(Dl.cn.axisExtent,!0);var S=C.selectAll("."+Dl.cn.axisExtentTop).data(oy,ig);S.enter().append("g").classed(Dl.cn.axisExtentTop,!0),S.attr("transform",ay(0,-Dl.axisExtentOffset));var g=S.selectAll("."+Dl.cn.axisExtentTopText).data(oy,ig);g.enter().append("text").classed(Dl.cn.axisExtentTopText,!0).call(zUe),g.text(function(z){return OUe(z,!0)}).each(function(z){Zz.font(Bd.select(this),z.model.rangeFont)});var P=C.selectAll("."+Dl.cn.axisExtentBottom).data(oy,ig);P.enter().append("g").classed(Dl.cn.axisExtentBottom,!0),P.attr("transform",function(z){return ay(0,z.model.height+Dl.axisExtentOffset)});var E=P.selectAll("."+Dl.cn.axisExtentBottomText).data(oy,ig);E.enter().append("text").classed(Dl.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(zUe),E.text(function(z){return OUe(z,!1)}).each(function(z){Zz.font(Bd.select(this),z.model.rangeFont)}),GUe.ensureAxisBrush(M,c,t)}});var ZK=ye((XK,JUe)=>{"use strict";var fHt=XUe(),hHt=Iz(),ZUe=NK().isVisible,KUe={};function YUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function dHt(e,t){return function(n,i){return YUe(e,t,n)-YUe(e,t,i)}}var XK=JUe.exports=function(t,r){var n=t._fullLayout,i=hHt(t,[],KUe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,m){var b=v[0].trace;s[m]=b.index;var p=l[m]=b.index;a[m]=t.data[p].dimensions,o[m]=t.data[p].dimensions.slice()});var c=function(v,m,b){var p=o[v][m],k=b.map(function(S){return S.slice()}),M="dimensions["+m+"].constraintrange",T=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(T[M]===void 0){var L=p.constraintrange;T[M]=L||null}var x=t._fullData[s[v]].dimensions[m];k.length?(k.length===1&&(k=k[0]),p.constraintrange=k,x.constraintrange=k.slice(),k=[k]):(delete p.constraintrange,delete x.constraintrange,k=null);var C={};C[M]=k,t.emit("plotly_restyle",[C,[l[v]]])},f=function(v){t.emit("plotly_hover",v)},h=function(v){t.emit("plotly_unhover",v)},d=function(v,m){var b=dHt(m,o[v].filter(ZUe));a[v].sort(b),o[v].filter(function(p){return!ZUe(p)}).sort(function(p){return o[v].indexOf(p)}).forEach(function(p){a[v].splice(a[v].indexOf(p),1),a[v].splice(o[v].indexOf(p),0,p)}),t.emit("plotly_restyle",[{dimensions:[a[v]]},[l[v]]])};fHt(t,r,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:c,hover:f,unhover:h,axesMoved:d})}};XK.reglPrecompiled=KUe});var QUe=ye(Gk=>{"use strict";var $Ue=qa(),vHt=Id().getModuleCalcData,pHt=ZK(),gHt=Wp();Gk.name="parcoords";Gk.plot=function(e){var t=vHt(e.calcdata,"parcoords")[0];t.length&&pHt(e,t)};Gk.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};Gk.toSVG=function(e){var t=e._fullLayout._glimages,r=$Ue.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:gHt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){$Ue.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var tVe=ye((_xr,eVe)=>{"use strict";eVe.exports={attributes:IK(),supplyDefaults:vUe(),calc:gUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:QUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var nVe=ye((xxr,iVe)=>{"use strict";var rVe=tVe();rVe.plot=ZK();iVe.exports=rVe});var oVe=ye((bxr,aVe)=>{"use strict";aVe.exports=nVe()});var YK=ye((wxr,fVe)=>{"use strict";var lVe=Ao().extendFlat,mHt=Gl(),sVe=ec(),yHt=Tu(),{hovertemplateAttrs:uVe,templatefallbackAttrs:cVe}=Ll(),_Ht=Cc().attributes,xHt=lVe({editType:"calc"},yHt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:uVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:cVe({editType:"plot"})});fVe.exports={domain:_Ht({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:lVe({},mHt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:uVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:cVe({editType:"plot"}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:sVe({editType:"calc"}),tickfont:sVe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:xHt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var vVe=ye((Txr,dVe)=>{"use strict";var E5=Pr(),bHt=pv().hasColorscale,wHt=td(),THt=Cc().defaults,AHt=Kd(),hVe=YK(),SHt=Dz(),MHt=Yd().isTypedArraySpec;function EHt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate"),i("line.hovertemplatefallback");var a=i("line.color",n.colorway[0]);if(bHt(e,"line")&&E5.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),wHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function kHt(e,t){function r(u,c){return E5.coerce(e,t,hVe.dimensions,u,c)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=E5.isArrayOrTypedArray(a)&&a.length>0||MHt(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}dVe.exports=function(t,r,n,i){function a(u,c){return E5.coerce(t,r,hVe,u,c)}var o=AHt(t,r,{name:"dimensions",handleItemDefaults:kHt}),s=EHt(t,r,n,i,a);THt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),SHt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;E5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),E5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var gVe=ye((Axr,pVe)=>{"use strict";var CHt=ny().wrap,LHt=pv().hasColorscale,PHt=gv(),IHt=iO(),RHt=So(),Hk=Pr(),DHt=Eo();pVe.exports=function(t,r){var n=Hk.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(g){var P;if(g.categoryorder==="trace")P=null;else if(g.categoryorder==="array")P=g.categoryarray;else{P=IHt(g.values);for(var E=!0,z=0;z=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var SVe=ye((Sxr,AVe)=>{"use strict";var Fl=qa(),jHt=(j2(),gb(H2)).interpolateNumber,WHt=YP(),Xk=ef(),kx=Pr(),jk=kx.strTranslate,mVe=So(),KK=fd(),XHt=Zl();function ZHt(e,t,r,n){var i=t._context.staticPlot,a=e.map(ujt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,g1),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(k){return jk(k.x,k.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(k){return k.paths},g1);c.attr("fill",function(k){return k.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(k){return k.model.color}).attr("fill-opacity",0);QK(f),c.attr("d",function(k){return k.svgD}),f.empty()||c.sort(JK),c.exit().remove(),c.on("mouseover",YHt).on("mouseout",KHt).on("click",JHt),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(k){return k.dimensions},g1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(k){return jk(k.x,0)}),d.exit().remove();var v=d.selectAll("g.category").data(function(k){return k.categories},g1),m=v.enter().append("g").attr("class","category");v.attr("transform",function(k){return jk(0,k.y)}),m.append("rect").attr("class","catrect").attr("pointer-events","none"),v.select("rect.catrect").attr("fill","none").attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),_Ve(m);var b=v.selectAll("rect.bandrect").data(function(k){return k.bands},g1);b.each(function(){kx.raiseToTop(this)}),b.attr("fill",function(k){return k.color});var p=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(k){return k.color}).attr("fill-opacity",0);b.attr("fill",function(k){return k.color}).attr("width",function(k){return k.width}).attr("height",function(k){return k.height}).attr("y",function(k){return k.y}).attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":k.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),tJ(p),b.exit().remove(),m.append("text").attr("class","catlabel").attr("pointer-events","none"),v.select("text.catlabel").attr("text-anchor",function(k){return Wk(k)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(k){return Wk(k)?k.width+5:-5}).attr("y",function(k){return k.height/2}).text(function(k){return k.model.categoryLabel}).each(function(k){mVe.font(Fl.select(this),k.parcatsViewModel.categorylabelfont),XHt.convertToTspans(Fl.select(this),t)}),m.append("text").attr("class","dimlabel"),v.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(k){return k.width/2}).attr("y",-5).text(function(k,M){return M===0?k.parcatsViewModel.model.dimensions[k.model.dimensionInd].dimensionLabel:null}).each(function(k){mVe.font(Fl.select(this),k.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",njt).on("mouseout",ajt),v.exit().remove(),d.call(Fl.behavior.drag().origin(function(k){return{x:k.x,y:0}}).on("dragstart",ojt).on("drag",sjt).on("dragend",ljt)),s.each(function(k){k.traceSelection=Fl.select(this),k.pathSelection=Fl.select(this).selectAll("g.paths").selectAll("path.path"),k.dimensionSelection=Fl.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}AVe.exports=function(e,t,r,n){ZHt(r,e,n,t)};function g1(e){return e.key}function Wk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function JK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),x=Fl.mouse(i)[0];Xk.loneHover({trace:a,x:v-s.left+l.left,y:m-s.top+l.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:x1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var v=s.model.count,m=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:m,probabilityLabel:b.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",p.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&k.push(["P("+p.categoryLabel+"):",p.probabilityLabel].join(" "));var M=k.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:M,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:p,eventData:[{data:c._input,fullData:c,count:v,category:m,probability:b}]}}function rjt(e,t,r){var n=[];return Fl.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(xVe(e,t,i))}),n}function ijt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Fl.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=a.y+a.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var v=s.model.categoryLabel,m=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var p=s.model.count,k=0;l.pathSelection.each(function(P){P.model.color===o.color&&(k+=P.model.count)});var M=b/m,T=b/k,L=b/p,x={countLabel:b,categoryLabel:v,probabilityLabel:M.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(C.push("P(color \u2229 "+v+"): "+x.probabilityLabel),C.push("P("+v+" | color): "+T.toFixed(3)),C.push("P(color | "+v+"): "+L.toFixed(3)));var S=C.join("
"),g=KK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:S,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:x,eventData:[{data:c._input,fullData:c,category:v,count:m,probability:M,categorycount:p,colorcount:k,bandcolorcount:b}]}}function njt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Fl.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(tjt(o),iJ(o,"plotly_hover",Fl.event)):(ejt(o),rJ(o,"plotly_hover",Fl.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=xVe(r,i,o):a==="color"?s=ijt(r,i,o):a==="dimension"&&(s=rjt(r,i,o)),s&&Xk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function ajt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(QK(t.pathSelection),_Ve(t.dimensionSelection.selectAll("g.category")),tJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Xk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(JK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?iJ(n,"plotly_unhover",Fl.event):rJ(n,"plotly_unhover",Fl.event)}}function ojt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Fl.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Fl.mouse(this)[0],n=Fl.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,kx.raiseToTop(this.parentNode),Fl.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yc.y+c.height/2&&(a.model.displayInd=c.model.displayInd,c.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Fl.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];f!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}aJ(e.parcatsViewModel),nJ(e.parcatsViewModel),TVe(e.parcatsViewModel),wVe(e.parcatsViewModel)}}function ljt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Fl.select(this).selectAll("text").attr("font-weight","normal");var t={},r=bVe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var v=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+v+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?iJ(e.potentialClickBand,"plotly_click",Fl.event.sourceEvent):rJ(e.potentialClickBand,"plotly_click",Fl.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var c=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];c.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,aJ(e.parcatsViewModel),nJ(e.parcatsViewModel);var f=Fl.transition().duration(300).ease("cubic-in-out");f.each(function(){TVe(e.parcatsViewModel,!0),wVe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&WHt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function bVe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;l--)u+="C"+o[l]+","+(t[l+1]+n)+" "+a[l]+","+(t[l]+n)+" "+(e[l]+r[l])+","+(t[l]+n),u+="l-"+r[l]+",0 ";return u+="Z",u}function nJ(e){var t=e.dimensions,r=e.model,n=t.map(function(q){return q.categories.map(function(V){return V.y})}),i=e.model.dimensions.map(function(q){return q.categories.map(function(V){return V.displayInd})}),a=e.model.dimensions.map(function(q){return q.displayInd}),o=e.dimensions.map(function(q){return q.model.dimensionInd}),s=t.map(function(q){return q.x}),l=t.map(function(q){return q.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(q){var V=q.categoryInds.map(function(Z,j){return i[j][Z]}),G=o.map(function(Z){return V[Z]});return G}u.sort(function(q,V){var G=f(q),Z=f(V);return e.sortpaths==="backward"&&(G.reverse(),Z.reverse()),G.push(q.valueInds[0]),Z.push(V.valueInds[0]),e.bundlecolors&&(G.unshift(q.rawColor),Z.unshift(V.rawColor)),GZ?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(q){return q.height}).reduce(function(q,V){return q+V}),m=0;m0?p=v*(b.count/d):p=0;for(var k=new Array(n.length),M=0;M1?o=(e.width-2*r-n)/(i-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,d=t.count,v=e.height-h*(c-1),m,b,p,k,M,T=(c-f)*h/2,L=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(L.sort(function(x,C){return x.displayInd-C.displayInd}),M=0;M0?m=b.count/d*v:m=0,p={key:b.valueInds[0],model:b,width:n,height:m,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+m+h,u.push(p);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:n,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var oJ=ye((Mxr,MVe)=>{"use strict";var fjt=SVe();MVe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;fjt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var kVe=ye(Jz=>{"use strict";var hjt=Id().getModuleCalcData,djt=oJ(),EVe="parcats";Jz.name=EVe;Jz.plot=function(e,t,r,n){var i=hjt(e.calcdata,EVe);if(i.length){var a=i[0];djt(e,a,r,n)}};Jz.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var LVe=ye((kxr,CVe)=>{"use strict";CVe.exports={attributes:YK(),supplyDefaults:vVe(),calc:gVe(),plot:oJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:kVe(),categories:["noOpacity"],meta:{}}});var IVe=ye((Cxr,PVe)=>{"use strict";PVe.exports=LVe()});var m1=ye((Lxr,BVe)=>{"use strict";var vjt=t_(),RVe="1.13.4",qVe='\xA9
OpenStreetMap contributors',DVe=['\xA9 Carto',qVe].join(" "),FVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),pjt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),OVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:qVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:DVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:DVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:FVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:FVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:pjt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},zVe=vjt(OVe);BVe.exports={requiredVersion:RVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:OVe,styleValuesNonMapbox:zVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+RVe+"."].join(` +`),Zr;if(bt&&(Zr=qc(Tr),bt[Zr]))return bt[Zr].apply(null,Vr);var yi=Function.apply(null,Lr.concat(Tr));return bt&&(bt[Zr]=yi),yi.apply(null,Vr)}return{global:Si,link:Nr,block:vi,proc:Qi,scope:Ni,cond:qi,compile:Wi}}var Ca="xyzw".split(""),Ra=5121,La=1,Ua=2,Zn=0,Dn=1,Ka=2,bo=3,Zo=4,Ss=5,as=6,ws="dither",Ho="blend.enable",ml="blend.color",Ws="blend.equation",Ls="blend.func",va="depth.enable",no="depth.func",ys="depth.range",rs="depth.mask",Ql="colorMask",Cu="cull.enable",Yu="cull.face",Nc="frontFace",pu="lineWidth",Uc="polygonOffset.enable",xu="polygonOffset.offset",Ac="sample.alpha",Va="sample.enable",oo="sample.coverage",Vc="stencil.enable",hc="stencil.mask",Ku="stencil.func",ue="stencil.opFront",w="stencil.opBack",B="scissor.enable",Q="scissor.box",ee="viewport",le="profile",Fe="framebuffer",Ze="vert",ut="frag",Mt="elements",Jt="primitive",$t="count",yr="offset",Cr="instances",ve="vao",xe="Width",Ie="Height",ze=Fe+xe,Qe=Fe+Ie,Xe=ee+xe,nt=ee+Ie,qt="drawingBuffer",Wt=qt+xe,nr=qt+Ie,fr=[Ls,Ws,Ku,ue,w,oo,ee,Q,xu],br=34962,Fr=34963,Hr=2884,ri=3042,Ci=3024,cn=2960,sn=2929,Ln=3089,Kn=32823,Aa=32926,fa=32928,$a=5126,Co=35664,Qa=35665,mo=35666,Bo=5124,Ps=35667,Ts=35668,wo=35669,To=35670,hl=35671,Nl=35672,Lu=35673,au=35674,Js=35675,eu=35676,dc=35678,Al=35680,Sl=4,X=1028,se=1029,Te=2304,qe=2305,Ve=32775,Ye=32776,Pt=519,ot=7680,Xt=0,dr=1,pr=32774,Ur=513,zr=36160,gi=36064,xi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Wr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},di={cw:Te,ccw:qe};function Li(Me){return Array.isArray(Me)||qr(Me)||jr(Me)}function Ti(Me){return Me.sort(function(bt,Ot){return bt===ee?-1:Ot===ee?1:bt=1,Lr>=2,bt)}else if(Ot===Zo){var Vr=Me.data;return new Qr(Vr.thisDep,Vr.contextDep,Vr.propDep,bt)}else{if(Ot===Ss)return new Qr(!1,!1,!1,bt);if(Ot===as){for(var Or=!1,Nr=!1,vi=!1,Ni=0;Ni=1&&(Nr=!0),Si>=2&&(vi=!0)}else qi.type===Zo&&(Or=Or||qi.data.thisDep,Nr=Nr||qi.data.contextDep,vi=vi||qi.data.propDep)}return new Qr(Or,Nr,vi,bt)}else return new Qr(Ot===bo,Ot===Ka,Ot===Dn,bt)}}var na=new Qr(!1,!1,!1,function(){});function Ea(Me,bt,Ot,Lr,Vr,Or,Nr,vi,Ni,qi,Si,Vn,Qi,Wi,oi,Tr){var Zr=qi.Record,yi={add:32774,subtract:32778,"reverse subtract":32779};Ot.ext_blend_minmax&&(yi.min=Ve,yi.max=Ye);var Ii=Ot.angle_instanced_arrays,ui=Ot.webgl_draw_buffers,nn=Ot.oes_vertex_array_object,Zi={dirty:!0,profile:Tr.profile},qn={},fi=[],si={},mn={};function Ji(Ne){return Ne.replace(".","_")}function Ui(Ne,$e,st){var It=Ji(Ne);fi.push(Ne),qn[It]=Zi[It]=!!st,si[It]=$e}function Bi(Ne,$e,st){var It=Ji(Ne);fi.push(Ne),Array.isArray(st)?(Zi[It]=st.slice(),qn[It]=st.slice()):Zi[It]=qn[It]=st,mn[It]=$e}function pn(Ne){return!!isNaN(Ne)}Ui(ws,Ci),Ui(Ho,ri),Bi(ml,"blendColor",[0,0,0,0]),Bi(Ws,"blendEquationSeparate",[pr,pr]),Bi(Ls,"blendFuncSeparate",[dr,Xt,dr,Xt]),Ui(va,sn,!0),Bi(no,"depthFunc",Ur),Bi(ys,"depthRange",[0,1]),Bi(rs,"depthMask",!0),Bi(Ql,Ql,[!0,!0,!0,!0]),Ui(Cu,Hr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,qe),Bi(pu,pu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Va,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,cn),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Pt,0,-1]),Bi(ue,"stencilOpSeparate",[X,ot,ot,ot]),Bi(w,"stencilOpSeparate",[se,ot,ot,ot]),Ui(B,Ln),Bi(Q,"scissor",[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]),Bi(ee,ee,[0,0,Me.drawingBufferWidth,Me.drawingBufferHeight]);var Nn={gl:Me,context:Qi,strings:bt,next:qn,current:Zi,draw:Vn,elements:Or,buffer:Vr,shader:Si,attributes:qi.state,vao:qi,uniforms:Ni,framebuffer:vi,extensions:Ot,timer:Wi,isBufferArgs:Li},aa={primTypes:Mn,compareFuncs:Wr,blendFuncs:xi,blendEquations:yi,stencilOps:ii,glTypes:un,orientationType:di};ui&&(aa.backBuffer=[se],aa.drawBuffer=S(Lr.maxDrawbuffers,function(Ne){return Ne===0?[0]:S(Ne,function($e){return gi+$e})}));var Ki=0;function Cn(){var Ne=ta({cache:oi}),$e=Ne.link,st=Ne.global;Ne.id=Ki++,Ne.batchId="0";var It=$e(Nn),Bt=Ne.shared={props:"a0"};Object.keys(Nn).forEach(function(Dt){Bt[Dt]=st.def(It,".",Dt)});var Ft=Ne.next={},Ut=Ne.current={};Object.keys(mn).forEach(function(Dt){Array.isArray(Zi[Dt])&&(Ft[Dt]=st.def(Bt.next,".",Dt),Ut[Dt]=st.def(Bt.current,".",Dt))});var zt=Ne.constants={};Object.keys(aa).forEach(function(Dt){zt[Dt]=st.def(JSON.stringify(aa[Dt]))}),Ne.invoke=function(Dt,vt){switch(vt.type){case Zn:var lr=["this",Bt.context,Bt.props,Ne.batchId];return Dt.def($e(vt.data),".call(",lr.slice(0,Math.max(vt.data.length+1,4)),")");case Dn:return Dt.def(Bt.props,vt.data);case Ka:return Dt.def(Bt.context,vt.data);case bo:return Dt.def("this",vt.data);case Zo:return vt.data.append(Ne,Dt),vt.data.ref;case Ss:return vt.data.toString();case as:return vt.data.map(function(_r){return Ne.invoke(Dt,_r)})}},Ne.attribCache={};var _t={};return Ne.scopeAttrib=function(Dt){var vt=bt.id(Dt);if(vt in _t)return _t[vt];var lr=qi.scope[vt];lr||(lr=qi.scope[vt]=new Zr);var _r=_t[vt]=$e(lr);return _r},Ne}function ia(Ne){var $e=Ne.static,st=Ne.dynamic,It;if(le in $e){var Bt=!!$e[le];It=kn(function(Ut,zt){return Bt}),It.enable=Bt}else if(le in st){var Ft=st[le];It=Bn(Ft,function(Ut,zt){return Ut.invoke(zt,Ft)})}return It}function sa(Ne,$e){var st=Ne.static,It=Ne.dynamic;if(Fe in st){var Bt=st[Fe];return Bt?(Bt=vi.getFramebuffer(Bt),kn(function(Ut,zt){var _t=Ut.link(Bt),Dt=Ut.shared;zt.set(Dt.framebuffer,".next",_t);var vt=Dt.context;return zt.set(vt,"."+ze,_t+".width"),zt.set(vt,"."+Qe,_t+".height"),_t})):kn(function(Ut,zt){var _t=Ut.shared;zt.set(_t.framebuffer,".next","null");var Dt=_t.context;return zt.set(Dt,"."+ze,Dt+"."+Wt),zt.set(Dt,"."+Qe,Dt+"."+nr),"null"})}else if(Fe in It){var Ft=It[Fe];return Bn(Ft,function(Ut,zt){var _t=Ut.invoke(zt,Ft),Dt=Ut.shared,vt=Dt.framebuffer,lr=zt.def(vt,".getFramebuffer(",_t,")");zt.set(vt,".next",lr);var _r=Dt.context;return zt.set(_r,"."+ze,lr+"?"+lr+".width:"+_r+"."+Wt),zt.set(_r,"."+Qe,lr+"?"+lr+".height:"+_r+"."+nr),lr})}else return null}function ba(Ne,$e,st){var It=Ne.static,Bt=Ne.dynamic;function Ft(_t){if(_t in It){var Dt=It[_t],vt=!0,lr=Dt.x|0,_r=Dt.y|0,Br,Di;return"width"in Dt?Br=Dt.width|0:vt=!1,"height"in Dt?Di=Dt.height|0:vt=!1,new Qr(!vt&&$e&&$e.thisDep,!vt&&$e&&$e.contextDep,!vt&&$e&&$e.propDep,function(gn,tn){var Ei=gn.shared.context,Oi=Br;"width"in Dt||(Oi=tn.def(Ei,".",ze,"-",lr));var Gi=Di;return"height"in Dt||(Gi=tn.def(Ei,".",Qe,"-",_r)),[lr,_r,Oi,Gi]})}else if(_t in Bt){var ci=Bt[_t],bi=Bn(ci,function(gn,tn){var Ei=gn.invoke(tn,ci),Oi=gn.shared.context,Gi=tn.def(Ei,".x|0"),on=tn.def(Ei,".y|0"),zn=tn.def('"width" in ',Ei,"?",Ei,".width|0:","(",Oi,".",ze,"-",Gi,")"),Ja=tn.def('"height" in ',Ei,"?",Ei,".height|0:","(",Oi,".",Qe,"-",on,")");return[Gi,on,zn,Ja]});return $e&&(bi.thisDep=bi.thisDep||$e.thisDep,bi.contextDep=bi.contextDep||$e.contextDep,bi.propDep=bi.propDep||$e.propDep),bi}else return $e?new Qr($e.thisDep,$e.contextDep,$e.propDep,function(gn,tn){var Ei=gn.shared.context;return[0,0,tn.def(Ei,".",ze),tn.def(Ei,".",Qe)]}):null}var Ut=Ft(ee);if(Ut){var zt=Ut;Ut=new Qr(Ut.thisDep,Ut.contextDep,Ut.propDep,function(_t,Dt){var vt=zt.append(_t,Dt),lr=_t.shared.context;return Dt.set(lr,"."+Xe,vt[2]),Dt.set(lr,"."+nt,vt[3]),vt})}return{viewport:Ut,scissor_box:Ft(Q)}}function is(Ne,$e){var st=Ne.static,It=typeof st[ut]=="string"&&typeof st[Ze]=="string";if(It){if(Object.keys($e.dynamic).length>0)return null;var Bt=$e.static,Ft=Object.keys(Bt);if(Ft.length>0&&typeof Bt[Ft[0]]=="number"){for(var Ut=[],zt=0;zt"+Gi+"?"+vt+".constant["+Gi+"]:0;"}).join(""),"}}else{","if(",Br,"(",vt,".buffer)){",gn,"=",Di,".createStream(",br,",",vt,".buffer);","}else{",gn,"=",Di,".getBuffer(",vt,".buffer);","}",tn,'="type" in ',vt,"?",_r.glTypes,"[",vt,".type]:",gn,".dtype;",ci.normalized,"=!!",vt,".normalized;");function Ei(Oi){Dt(ci[Oi],"=",vt,".",Oi,"|0;")}return Ei("size"),Ei("offset"),Ei("stride"),Ei("divisor"),Dt("}}"),Dt.exit("if(",ci.isStream,"){",Di,".destroyStream(",gn,");","}"),ci}Bt[Ft]=Bn(Ut,zt)}),Bt}function nl(Ne){var $e=Ne.static,st=Ne.dynamic,It={};return Object.keys($e).forEach(function(Bt){var Ft=$e[Bt];It[Bt]=kn(function(Ut,zt){return typeof Ft=="number"||typeof Ft=="boolean"?""+Ft:Ut.link(Ft)})}),Object.keys(st).forEach(function(Bt){var Ft=st[Bt];It[Bt]=Bn(Ft,function(Ut,zt){return Ut.invoke(zt,Ft)})}),It}function Ul(Ne,$e,st,It,Bt){var Ft=Ne.static,Ut=Ne.dynamic,zt=is(Ne,$e),_t=sa(Ne,Bt),Dt=ba(Ne,_t,Bt),vt=Ga(Ne,Bt),lr=El(Ne,Bt),_r=Zs(Ne,Bt,zt);function Br(Ei){var Oi=Dt[Ei];Oi&&(lr[Ei]=Oi)}Br(ee),Br(Ji(Q));var Di=Object.keys(lr).length>0,ci={framebuffer:_t,draw:vt,shader:_r,state:lr,dirty:Di,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(ci.profile=ia(Ne,Bt),ci.uniforms=zo(st,Bt),ci.drawVAO=ci.scopeVAO=vt.vao,!ci.drawVAO&&_r.program&&!zt&&Ot.angle_instanced_arrays&&vt.static.elements){var bi=!0,gn=_r.program.attributes.map(function(Ei){var Oi=$e.static[Ei];return bi=bi&&!!Oi,Oi});if(bi&&gn.length>0){var tn=qi.getVAO(qi.createVAO({attributes:gn,elements:vt.static.elements}));ci.drawVAO=new Qr(null,null,null,function(Ei,Oi){return Ei.link(tn)}),ci.useVAO=!0}}return zt?ci.useVAO=!0:ci.attributes=Qs($e,Bt),ci.context=nl(It,Bt),ci}function ss(Ne,$e,st){var It=Ne.shared,Bt=It.context,Ft=Ne.scope();Object.keys(st).forEach(function(Ut){$e.save(Bt,"."+Ut);var zt=st[Ut],_t=zt.append(Ne,$e);Array.isArray(_t)?Ft(Bt,".",Ut,"=[",_t.join(),"];"):Ft(Bt,".",Ut,"=",_t,";")}),$e(Ft)}function Vs(Ne,$e,st,It){var Bt=Ne.shared,Ft=Bt.gl,Ut=Bt.framebuffer,zt;ui&&(zt=$e.def(Bt.extensions,".webgl_draw_buffers"));var _t=Ne.constants,Dt=_t.drawBuffer,vt=_t.backBuffer,lr;st?lr=st.append(Ne,$e):lr=$e.def(Ut,".next"),It||$e("if(",lr,"!==",Ut,".cur){"),$e("if(",lr,"){",Ft,".bindFramebuffer(",zr,",",lr,".framebuffer);"),ui&&$e(zt,".drawBuffersWEBGL(",Dt,"[",lr,".colorAttachments.length]);"),$e("}else{",Ft,".bindFramebuffer(",zr,",null);"),ui&&$e(zt,".drawBuffersWEBGL(",vt,");"),$e("}",Ut,".cur=",lr,";"),It||$e("}")}function Ys(Ne,$e,st){var It=Ne.shared,Bt=It.gl,Ft=Ne.current,Ut=Ne.next,zt=It.current,_t=It.next,Dt=Ne.cond(zt,".dirty");fi.forEach(function(vt){var lr=Ji(vt);if(!(lr in st.state)){var _r,Br;if(lr in Ut){_r=Ut[lr],Br=Ft[lr];var Di=S(Zi[lr].length,function(bi){return Dt.def(_r,"[",bi,"]")});Dt(Ne.cond(Di.map(function(bi,gn){return bi+"!=="+Br+"["+gn+"]"}).join("||")).then(Bt,".",mn[lr],"(",Di,");",Di.map(function(bi,gn){return Br+"["+gn+"]="+bi}).join(";"),";"))}else{_r=Dt.def(_t,".",lr);var ci=Ne.cond(_r,"!==",zt,".",lr);Dt(ci),lr in si?ci(Ne.cond(_r).then(Bt,".enable(",si[lr],");").else(Bt,".disable(",si[lr],");"),zt,".",lr,"=",_r,";"):ci(Bt,".",mn[lr],"(",_r,");",zt,".",lr,"=",_r,";")}}}),Object.keys(st.state).length===0&&Dt(zt,".dirty=false;"),$e(Dt)}function wa(Ne,$e,st,It){var Bt=Ne.shared,Ft=Ne.current,Ut=Bt.current,zt=Bt.gl,_t;Ti(Object.keys(st)).forEach(function(Dt){var vt=st[Dt];if(!(It&&!It(vt))){var lr=vt.append(Ne,$e);if(si[Dt]){var _r=si[Dt];Pn(vt)?(_t=Ne.link(lr,{stable:!0}),$e(Ne.cond(_t).then(zt,".enable(",_r,");").else(zt,".disable(",_r,");")),$e(Ut,".",Dt,"=",_t,";")):($e(Ne.cond(lr).then(zt,".enable(",_r,");").else(zt,".disable(",_r,");")),$e(Ut,".",Dt,"=",lr,";"))}else if(En(lr)){var Br=Ft[Dt];$e(zt,".",mn[Dt],"(",lr,");",lr.map(function(Di,ci){return Br+"["+ci+"]="+Di}).join(";"),";")}else Pn(vt)?(_t=Ne.link(lr,{stable:!0}),$e(zt,".",mn[Dt],"(",_t,");",Ut,".",Dt,"=",_t,";")):$e(zt,".",mn[Dt],"(",lr,");",Ut,".",Dt,"=",lr,";")}})}function al(Ne,$e){Ii&&(Ne.instancing=$e.def(Ne.shared.extensions,".angle_instanced_arrays"))}function io(Ne,$e,st,It,Bt){var Ft=Ne.shared,Ut=Ne.stats,zt=Ft.current,_t=Ft.timer,Dt=st.profile;function vt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var lr,_r;function Br(Ei){lr=$e.def(),Ei(lr,"=",vt(),";"),typeof Bt=="string"?Ei(Ut,".count+=",Bt,";"):Ei(Ut,".count++;"),Wi&&(It?(_r=$e.def(),Ei(_r,"=",_t,".getNumPendingQueries();")):Ei(_t,".beginQuery(",Ut,");"))}function Di(Ei){Ei(Ut,".cpuTime+=",vt(),"-",lr,";"),Wi&&(It?Ei(_t,".pushScopeStats(",_r,",",_t,".getNumPendingQueries(),",Ut,");"):Ei(_t,".endQuery();"))}function ci(Ei){var Oi=$e.def(zt,".profile");$e(zt,".profile=",Ei,";"),$e.exit(zt,".profile=",Oi,";")}var bi;if(Dt){if(Pn(Dt)){Dt.enable?(Br($e),Di($e.exit),ci("true")):ci("false");return}bi=Dt.append(Ne,$e),ci(bi)}else bi=$e.def(zt,".profile");var gn=Ne.block();Br(gn),$e("if(",bi,"){",gn,"}");var tn=Ne.block();Di(tn),$e.exit("if(",bi,"){",tn,"}")}function Y(Ne,$e,st,It,Bt){var Ft=Ne.shared;function Ut(_t){switch(_t){case Co:case Ps:case hl:return 2;case Qa:case Ts:case Nl:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function zt(_t,Dt,vt){var lr=Ft.gl,_r=$e.def(_t,".location"),Br=$e.def(Ft.attributes,"[",_r,"]"),Di=vt.state,ci=vt.buffer,bi=[vt.x,vt.y,vt.z,vt.w],gn=["buffer","normalized","offset","stride"];function tn(){$e("if(!",Br,".buffer){",lr,".enableVertexAttribArray(",_r,");}");var Oi=vt.type,Gi;if(vt.size?Gi=$e.def(vt.size,"||",Dt):Gi=Dt,$e("if(",Br,".type!==",Oi,"||",Br,".size!==",Gi,"||",gn.map(function(zn){return Br+"."+zn+"!=="+vt[zn]}).join("||"),"){",lr,".bindBuffer(",br,",",ci,".buffer);",lr,".vertexAttribPointer(",[_r,Gi,Oi,vt.normalized,vt.stride,vt.offset],");",Br,".type=",Oi,";",Br,".size=",Gi,";",gn.map(function(zn){return Br+"."+zn+"="+vt[zn]+";"}).join(""),"}"),Ii){var on=vt.divisor;$e("if(",Br,".divisor!==",on,"){",Ne.instancing,".vertexAttribDivisorANGLE(",[_r,on],");",Br,".divisor=",on,";}")}}function Ei(){$e("if(",Br,".buffer){",lr,".disableVertexAttribArray(",_r,");",Br,".buffer=null;","}if(",Ca.map(function(Oi,Gi){return Br+"."+Oi+"!=="+bi[Gi]}).join("||"),"){",lr,".vertexAttrib4f(",_r,",",bi,");",Ca.map(function(Oi,Gi){return Br+"."+Oi+"="+bi[Gi]+";"}).join(""),"}")}Di===La?tn():Di===Ua?Ei():($e("if(",Di,"===",La,"){"),tn(),$e("}else{"),Ei(),$e("}"))}It.forEach(function(_t){var Dt=_t.name,vt=st.attributes[Dt],lr;if(vt){if(!Bt(vt))return;lr=vt.append(Ne,$e)}else{if(!Bt(na))return;var _r=Ne.scopeAttrib(Dt);lr={},Object.keys(new Zr).forEach(function(Br){lr[Br]=$e.def(_r,".",Br)})}zt(Ne.link(_t),Ut(_t.info.type),lr)})}function D(Ne,$e,st,It,Bt,Ft){for(var Ut=Ne.shared,zt=Ut.gl,_t,Dt=0;Dt1){for(var co=[],ts=[],so=0;so>1)",ci],");")}function on(){st(bi,".drawArraysInstancedANGLE(",[_r,Br,Di,ci],");")}vt&&vt!=="null"?tn?Gi():(st("if(",vt,"){"),Gi(),st("}else{"),on(),st("}")):on()}function Oi(){function Gi(){st(Ft+".drawElements("+[_r,Di,gn,Br+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){st(Ft+".drawArrays("+[_r,Br,Di]+");")}vt&&vt!=="null"?tn?Gi():(st("if(",vt,"){"),Gi(),st("}else{"),on(),st("}")):on()}Ii&&(typeof ci!="number"||ci>=0)?typeof ci=="string"?(st("if(",ci,">0){"),Ei(),st("}else if(",ci,"<0){"),Oi(),st("}")):Ei():Oi()}function O(Ne,$e,st,It,Bt){var Ft=Cn(),Ut=Ft.proc("body",Bt);return Ii&&(Ft.instancing=Ut.def(Ft.shared.extensions,".angle_instanced_arrays")),Ne(Ft,Ut,st,It),Ft.compile().body}function K(Ne,$e,st,It){al(Ne,$e),st.useVAO?st.drawVAO?$e(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,$e),");"):$e(Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"):($e(Ne.shared.vao,".setVAO(null);"),Y(Ne,$e,st,It.attributes,function(){return!0})),D(Ne,$e,st,It.uniforms,function(){return!0},!1),J(Ne,$e,$e,st)}function de(Ne,$e){var st=Ne.proc("draw",1);al(Ne,st),ss(Ne,st,$e.context),Vs(Ne,st,$e.framebuffer),Ys(Ne,st,$e),wa(Ne,st,$e.state),io(Ne,st,$e,!1,!0);var It=$e.shader.progVar.append(Ne,st);if(st(Ne.shared.gl,".useProgram(",It,".program);"),$e.shader.program)K(Ne,st,$e,$e.shader.program);else{st(Ne.shared.vao,".setVAO(null);");var Bt=Ne.global.def("{}"),Ft=st.def(It,".id"),Ut=st.def(Bt,"[",Ft,"]");st(Ne.cond(Ut).then(Ut,".call(this,a0);").else(Ut,"=",Bt,"[",Ft,"]=",Ne.link(function(zt){return O(K,Ne,$e,zt,1)}),"(",It,");",Ut,".call(this,a0);"))}Object.keys($e.state).length>0&&st(Ne.shared.current,".dirty=true;"),Ne.shared.vao&&st(Ne.shared.vao,".setVAO(null);")}function ne(Ne,$e,st,It){Ne.batchId="a1",al(Ne,$e);function Bt(){return!0}Y(Ne,$e,st,It.attributes,Bt),D(Ne,$e,st,It.uniforms,Bt,!1),J(Ne,$e,$e,st)}function we(Ne,$e,st,It){al(Ne,$e);var Bt=st.contextDep,Ft=$e.def(),Ut="a0",zt="a1",_t=$e.def();Ne.shared.props=_t,Ne.batchId=Ft;var Dt=Ne.scope(),vt=Ne.scope();$e(Dt.entry,"for(",Ft,"=0;",Ft,"<",zt,";++",Ft,"){",_t,"=",Ut,"[",Ft,"];",vt,"}",Dt.exit);function lr(gn){return gn.contextDep&&Bt||gn.propDep}function _r(gn){return!lr(gn)}if(st.needsContext&&ss(Ne,vt,st.context),st.needsFramebuffer&&Vs(Ne,vt,st.framebuffer),wa(Ne,vt,st.state,lr),st.profile&&lr(st.profile)&&io(Ne,vt,st,!1,!0),It)st.useVAO?st.drawVAO?lr(st.drawVAO)?vt(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,vt),");"):Dt(Ne.shared.vao,".setVAO(",st.drawVAO.append(Ne,Dt),");"):Dt(Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"):(Dt(Ne.shared.vao,".setVAO(null);"),Y(Ne,Dt,st,It.attributes,_r),Y(Ne,vt,st,It.attributes,lr)),D(Ne,Dt,st,It.uniforms,_r,!1),D(Ne,vt,st,It.uniforms,lr,!0),J(Ne,Dt,vt,st);else{var Br=Ne.global.def("{}"),Di=st.shader.progVar.append(Ne,vt),ci=vt.def(Di,".id"),bi=vt.def(Br,"[",ci,"]");vt(Ne.shared.gl,".useProgram(",Di,".program);","if(!",bi,"){",bi,"=",Br,"[",ci,"]=",Ne.link(function(gn){return O(ne,Ne,st,gn,2)}),"(",Di,");}",bi,".call(this,a0[",Ft,"],",Ft,");")}}function Oe(Ne,$e){var st=Ne.proc("batch",2);Ne.batchId="0",al(Ne,st);var It=!1,Bt=!0;Object.keys($e.context).forEach(function(Br){It=It||$e.context[Br].propDep}),It||(ss(Ne,st,$e.context),Bt=!1);var Ft=$e.framebuffer,Ut=!1;Ft?(Ft.propDep?It=Ut=!0:Ft.contextDep&&It&&(Ut=!0),Ut||Vs(Ne,st,Ft)):Vs(Ne,st,null),$e.state.viewport&&$e.state.viewport.propDep&&(It=!0);function zt(Br){return Br.contextDep&&It||Br.propDep}Ys(Ne,st,$e),wa(Ne,st,$e.state,function(Br){return!zt(Br)}),(!$e.profile||!zt($e.profile))&&io(Ne,st,$e,!1,"a1"),$e.contextDep=It,$e.needsContext=Bt,$e.needsFramebuffer=Ut;var _t=$e.shader.progVar;if(_t.contextDep&&It||_t.propDep)we(Ne,st,$e,null);else{var Dt=_t.append(Ne,st);if(st(Ne.shared.gl,".useProgram(",Dt,".program);"),$e.shader.program)we(Ne,st,$e,$e.shader.program);else{st(Ne.shared.vao,".setVAO(null);");var vt=Ne.global.def("{}"),lr=st.def(Dt,".id"),_r=st.def(vt,"[",lr,"]");st(Ne.cond(_r).then(_r,".call(this,a0,a1);").else(_r,"=",vt,"[",lr,"]=",Ne.link(function(Br){return O(we,Ne,$e,Br,2)}),"(",Dt,");",_r,".call(this,a0,a1);"))}}Object.keys($e.state).length>0&&st(Ne.shared.current,".dirty=true;"),Ne.shared.vao&&st(Ne.shared.vao,".setVAO(null);")}function ht(Ne,$e){var st=Ne.proc("scope",3);Ne.batchId="a2";var It=Ne.shared,Bt=It.current;if(ss(Ne,st,$e.context),$e.framebuffer&&$e.framebuffer.append(Ne,st),Ti(Object.keys($e.state)).forEach(function(zt){var _t=$e.state[zt],Dt=_t.append(Ne,st);En(Dt)?Dt.forEach(function(vt,lr){pn(vt)?st.set(Ne.next[zt],"["+lr+"]",vt):st.set(Ne.next[zt],"["+lr+"]",Ne.link(vt,{stable:!0}))}):Pn(_t)?st.set(It.next,"."+zt,Ne.link(Dt,{stable:!0})):st.set(It.next,"."+zt,Dt)}),io(Ne,st,$e,!0,!0),[Mt,yr,$t,Cr,Jt].forEach(function(zt){var _t=$e.draw[zt];if(_t){var Dt=_t.append(Ne,st);pn(Dt)?st.set(It.draw,"."+zt,Dt):st.set(It.draw,"."+zt,Ne.link(Dt),{stable:!0})}}),Object.keys($e.uniforms).forEach(function(zt){var _t=$e.uniforms[zt].append(Ne,st);Array.isArray(_t)&&(_t="["+_t.map(function(Dt){return pn(Dt)?Dt:Ne.link(Dt,{stable:!0})})+"]"),st.set(It.uniforms,"["+Ne.link(bt.id(zt),{stable:!0})+"]",_t)}),Object.keys($e.attributes).forEach(function(zt){var _t=$e.attributes[zt].append(Ne,st),Dt=Ne.scopeAttrib(zt);Object.keys(new Zr).forEach(function(vt){st.set(Dt,"."+vt,_t[vt])})}),$e.scopeVAO){var Ft=$e.scopeVAO.append(Ne,st);pn(Ft)?st.set(It.vao,".targetVAO",Ft):st.set(It.vao,".targetVAO",Ne.link(Ft,{stable:!0}))}function Ut(zt){var _t=$e.shader[zt];if(_t){var Dt=_t.append(Ne,st);pn(Dt)?st.set(It.shader,"."+zt,Dt):st.set(It.shader,"."+zt,Ne.link(Dt,{stable:!0}))}}Ut(Ze),Ut(ut),Object.keys($e.state).length>0&&(st(Bt,".dirty=true;"),st.exit(Bt,".dirty=true;")),st("a1(",Ne.shared.context,",a0,",Ne.batchId,");")}function Yt(Ne){if(!(typeof Ne!="object"||En(Ne))){for(var $e=Object.keys(Ne),st=0;st<$e.length;++st)if(h.isDynamic(Ne[$e[st]]))return!0;return!1}}function cr(Ne,$e,st){var It=$e.static[st];if(!It||!Yt(It))return;var Bt=Ne.global,Ft=Object.keys(It),Ut=!1,zt=!1,_t=!1,Dt=Ne.global.def("{}");Ft.forEach(function(lr){var _r=It[lr];if(h.isDynamic(_r)){typeof _r=="function"&&(_r=It[lr]=h.unbox(_r));var Br=Bn(_r,null);Ut=Ut||Br.thisDep,_t=_t||Br.propDep,zt=zt||Br.contextDep}else{switch(Bt(Dt,".",lr,"="),typeof _r){case"number":Bt(_r);break;case"string":Bt('"',_r,'"');break;case"object":Array.isArray(_r)&&Bt("[",_r.join(),"]");break;default:Bt(Ne.link(_r));break}Bt(";")}});function vt(lr,_r){Ft.forEach(function(Br){var Di=It[Br];if(h.isDynamic(Di)){var ci=lr.invoke(_r,Di);_r(Dt,".",Br,"=",ci,";")}})}$e.dynamic[st]=new h.DynamicVariable(Zo,{thisDep:Ut,contextDep:zt,propDep:_t,ref:Dt,append:vt}),delete $e.static[st]}function Nt(Ne,$e,st,It,Bt){var Ft=Cn();Ft.stats=Ft.link(Bt),Object.keys($e.static).forEach(function(zt){cr(Ft,$e,zt)}),fr.forEach(function(zt){cr(Ft,Ne,zt)});var Ut=Ul(Ne,$e,st,It,Ft);return Ut.shader.program&&(Ut.shader.program.attributes.sort(function(zt,_t){return zt.name<_t.name?-1:1}),Ut.shader.program.uniforms.sort(function(zt,_t){return zt.name<_t.name?-1:1})),de(Ft,Ut),ht(Ft,Ut),Oe(Ft,Ut),e(Ft.compile(),{destroy:function(){Ut.shader.program.destroy()}})}return{next:qn,current:Zi,procs:(function(){var Ne=Cn(),$e=Ne.proc("poll"),st=Ne.proc("refresh"),It=Ne.block();$e(It),st(It);var Bt=Ne.shared,Ft=Bt.gl,Ut=Bt.next,zt=Bt.current;It(zt,".dirty=false;"),Vs(Ne,$e),Vs(Ne,st,null,!0);var _t;Ii&&(_t=Ne.link(Ii)),Ot.oes_vertex_array_object&&st(Ne.link(Ot.oes_vertex_array_object),".bindVertexArrayOES(null);");var Dt=st.def(Bt.attributes),vt=st.def(0),lr=Ne.cond(vt,".buffer");lr.then(Ft,".enableVertexAttribArray(i);",Ft,".bindBuffer(",br,",",vt,".buffer.buffer);",Ft,".vertexAttribPointer(i,",vt,".size,",vt,".type,",vt,".normalized,",vt,".stride,",vt,".offset);").else(Ft,".disableVertexAttribArray(i);",Ft,".vertexAttrib4f(i,",vt,".x,",vt,".y,",vt,".z,",vt,".w);",vt,".buffer=null;");var _r=Ne.link(Lr.maxAttributes,{stable:!0});return st("for(var i=0;i<",_r,";++i){",vt,"=",Dt,"[i];",lr,"}"),Ii&&st("for(var i=0;i<",_r,";++i){",_t,".vertexAttribDivisorANGLE(i,",Dt,"[i].divisor);","}"),st(Ne.shared.vao,".currentVAO=null;",Ne.shared.vao,".setVAO(",Ne.shared.vao,".targetVAO);"),Object.keys(si).forEach(function(Br){var Di=si[Br],ci=It.def(Ut,".",Br),bi=Ne.block();bi("if(",ci,"){",Ft,".enable(",Di,")}else{",Ft,".disable(",Di,")}",zt,".",Br,"=",ci,";"),st(bi),$e("if(",ci,"!==",zt,".",Br,"){",bi,"}")}),Object.keys(mn).forEach(function(Br){var Di=mn[Br],ci=Zi[Br],bi,gn,tn=Ne.block();if(tn(Ft,".",Di,"("),En(ci)){var Ei=ci.length;bi=Ne.global.def(Ut,".",Br),gn=Ne.global.def(zt,".",Br),tn(S(Ei,function(Oi){return bi+"["+Oi+"]"}),");",S(Ei,function(Oi){return gn+"["+Oi+"]="+bi+"["+Oi+"];"}).join("")),$e("if(",S(Ei,function(Oi){return bi+"["+Oi+"]!=="+gn+"["+Oi+"]"}).join("||"),"){",tn,"}")}else bi=It.def(Ut,".",Br),gn=It.def(zt,".",Br),tn(bi,");",zt,".",Br,"=",bi,";"),$e("if(",bi,"!==",gn,"){",tn,"}");st(tn)}),Ne.compile()})(),compile:Nt}}function Ia(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var yo=34918,Da=34919,go=35007,Is=function(Me,bt){if(!bt.ext_disjoint_timer_query)return null;var Ot=[];function Lr(){return Ot.pop()||bt.ext_disjoint_timer_query.createQueryEXT()}function Vr(yi){Ot.push(yi)}var Or=[];function Nr(yi){var Ii=Lr();bt.ext_disjoint_timer_query.beginQueryEXT(go,Ii),Or.push(Ii),Wi(Or.length-1,Or.length,yi)}function vi(){bt.ext_disjoint_timer_query.endQueryEXT(go)}function Ni(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var qi=[];function Si(){return qi.pop()||new Ni}function Vn(yi){qi.push(yi)}var Qi=[];function Wi(yi,Ii,ui){var nn=Si();nn.startQueryIndex=yi,nn.endQueryIndex=Ii,nn.sum=0,nn.stats=ui,Qi.push(nn)}var oi=[],Tr=[];function Zr(){var yi,Ii,ui=Or.length;if(ui!==0){Tr.length=Math.max(Tr.length,ui+1),oi.length=Math.max(oi.length,ui+1),oi[0]=0,Tr[0]=0;var nn=0;for(yi=0,Ii=0;Ii=0;--O){var K=Nn[O];K&&K(oi,null,0)}Ot.flush(),Si&&Si.update()}function ba(){!ia&&Nn.length>0&&(ia=d.next(sa))}function is(){ia&&(d.cancel(sa),ia=null)}function Zs(O){O.preventDefault(),Vr=!0,is(),aa.forEach(function(K){K()})}function Ga(O){Ot.getError(),Vr=!1,Or.restore(),qn.restore(),Ii.restore(),fi.restore(),si.restore(),mn.restore(),nn.restore(),Si&&Si.restore(),Ji.procs.refresh(),ba(),Ki.forEach(function(K){K()})}pn&&(pn.addEventListener(Fo,Zs,!1),pn.addEventListener(Uo,Ga,!1));function El(){Nn.length=0,is(),pn&&(pn.removeEventListener(Fo,Zs),pn.removeEventListener(Uo,Ga)),qn.clear(),mn.clear(),si.clear(),nn.clear(),fi.clear(),ui.clear(),Ii.clear(),Si&&Si.clear(),Cn.forEach(function(O){O()})}function zo(O){function K(Ft){var Ut=e({},Ft);delete Ut.uniforms,delete Ut.attributes,delete Ut.context,delete Ut.vao,"stencil"in Ut&&Ut.stencil.op&&(Ut.stencil.opBack=Ut.stencil.opFront=Ut.stencil.op,delete Ut.stencil.op);function zt(_t){if(_t in Ut){var Dt=Ut[_t];delete Ut[_t],Object.keys(Dt).forEach(function(vt){Ut[_t+"."+vt]=Dt[vt]})}}return zt("blend"),zt("depth"),zt("cull"),zt("stencil"),zt("polygonOffset"),zt("scissor"),zt("sample"),"vao"in Ft&&(Ut.vao=Ft.vao),Ut}function de(Ft,Ut){var zt={},_t={};return Object.keys(Ft).forEach(function(Dt){var vt=Ft[Dt];if(h.isDynamic(vt)){_t[Dt]=h.unbox(vt,Dt);return}else if(Ut&&Array.isArray(vt)){for(var lr=0;lr0)return Ne.call(this,It(Ft|0),Ft|0)}else if(Array.isArray(Ft)){if(Ft.length)return Ne.call(this,Ft,Ft.length)}else return Nt.call(this,Ft)}return e(Bt,{stats:Yt,destroy:function(){cr.destroy()}})}var Qs=mn.setFBO=zo({framebuffer:h.define.call(null,$s,"framebuffer")});function nl(O,K){var de=0;Ji.procs.poll();var ne=K.color;ne&&(Ot.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Ms),"depth"in K&&(Ot.clearDepth(+K.depth),de|=Xs),"stencil"in K&&(Ot.clearStencil(K.stencil|0),de|=Un),Ot.clear(de)}function Ul(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)Qs(e({framebuffer:O.framebuffer.faces[K]},O),nl);else Qs(O,nl);else nl(null,O)}function ss(O){Nn.push(O);function K(){var de=dl(Nn,O);function ne(){var we=dl(Nn,ne);Nn[we]=Nn[Nn.length-1],Nn.length-=1,Nn.length<=0&&is()}Nn[de]=ne}return ba(),{cancel:K}}function Vs(){var O=Bi.viewport,K=Bi.scissor_box;O[0]=O[1]=K[0]=K[1]=0,oi.viewportWidth=oi.framebufferWidth=oi.drawingBufferWidth=O[2]=K[2]=Ot.drawingBufferWidth,oi.viewportHeight=oi.framebufferHeight=oi.drawingBufferHeight=O[3]=K[3]=Ot.drawingBufferHeight}function Ys(){oi.tick+=1,oi.time=al(),Vs(),Ji.procs.poll()}function wa(){fi.refresh(),Vs(),Ji.procs.refresh(),Si&&Si.update()}function al(){return(v()-Vn)/1e3}wa();function io(O,K){var de;switch(O){case"frame":return ss(K);case"lost":de=aa;break;case"restore":de=Ki;break;case"destroy":de=Cn;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:El,_gl:Ot,_refresh:wa,poll:function(){Ys(),Si&&Si.update()},now:al,stats:vi,getCachedCode:Y,preloadCachedCode:D});return bt.onDone(null,J),J}return Sc}))});var Dz=ye((exr,jBe)=>{"use strict";var _Vt=BX(),xVt=HBe();jBe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=xVt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||_Vt({container:i._glcontainer.node()}),a}});var AK=ye((TK,KBe)=>{"use strict";var WBe=TY(),XBe=eK(),bVt=DOe(),ZBe=GBe(),wK=Pr(),wVt=Cg().selectMode,TVt=Dz(),AVt=Ru(),SVt=CU(),MVt=_Y().styleTextSelection,YBe={};function EVt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,l=i.b*n,u=i.r*n,c=i.t*n,f=i.w*n,h=i.h*n;return[s+t.domain[0]*f,l+r.domain[0]*h,a-u-(1-t.domain[1])*f,o-c-(1-r.domain[1])*h]}var TK=KBe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=TVt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],YBe);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if(SVt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=bVt(h)),a.line2d===!0&&(a.line2d=XBe(h)),a.scatter2d===!0&&(a.scatter2d=WBe(h)),a.fill2d===!0&&(a.fill2d=XBe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var d=f-a.glText.length;for(l=0;lre&&(isNaN(H[ae])||isNaN(H[ae+1]));)ae-=2;N.positions=H.slice(re,ae+2)}return N}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]).map(function(N){return N||{positions:[],errors:[]}});a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=wK.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(N,H){var re=n[H];if(!(!N||!re||!re[0]||!re[0].trace)){var ae=re[0],_e=ae.trace,Ee=ae.t,Ce=a.lineOptions[H],ge,ie,Se=[];_e._ownfill&&Se.push(H),_e._nexttrace&&Se.push(H+1),Se.length&&(a.fillOrder[H]=Se);var ke=[],be=Ce&&Ce.positions||Ee.positions,Be,Le;if(_e.fill==="tozeroy"){for(Be=0;BeBe&&isNaN(be[Le+1]);)Le-=2;be[Be+1]!==0&&(ke=[be[Be],0]),ke=ke.concat(be.slice(Be,Le+2)),be[Le+1]!==0&&(ke=ke.concat([be[Le],0]))}else if(_e.fill==="tozerox"){for(Be=0;BeBe&&isNaN(be[Le]);)Le-=2;be[Be]!==0&&(ke=[0,be[Be+1]]),ke=ke.concat(be.slice(Be,Le+2)),be[Le]!==0&&(ke=ke.concat([0,be[Le+1]]))}else if(_e.fill==="toself"||_e.fill==="tonext"){for(ke=[],ge=0,N.splitNull=!0,ie=0;ie-1;for(let[N]of n)if(N){var T=N.trace,L=N.t,x=L.index,C=T._length,S=L.x,g=L.y;if(T.selectedpoints||k||M){if(k||(k=!0),T.selectedpoints){var P=a.selectBatch[x]=wK.selIndices2selPoints(T),E={};for(u=0;u{"use strict";var JBe=p7e();JBe.plot=AK();$Be.exports=JBe});var tNe=ye((rxr,eNe)=>{"use strict";eNe.exports=QBe()});var SK=ye((ixr,aNe)=>{"use strict";var kVt=pf(),nNe=Tu(),rNe=vf().axisHoverFormat,{hovertemplateAttrs:CVt,templatefallbackAttrs:LVt}=Pl(),Bk=_k(),PVt=Rh().idRegex,IVt=vl().templatedArray,T5=Ao().extendFlat,v1=kVt.marker,RVt=v1.line,DVt=T5(nNe("marker.line",{editTypeOverride:"calc"}),{width:T5({},RVt.width,{editType:"calc"}),editType:"calc"}),Fz=T5(nNe("marker"),{symbol:v1.symbol,angle:v1.angle,size:T5({},v1.size,{editType:"markerSize"}),sizeref:v1.sizeref,sizemin:v1.sizemin,sizemode:v1.sizemode,opacity:v1.opacity,colorbar:v1.colorbar,line:DVt,editType:"calc"});Fz.color.editType=Fz.cmin.editType=Fz.cmax.editType="style";function iNe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:PVt[e],editType:"plot"}}}aNe.exports={dimensions:IVt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:T5({},Bk.text,{}),hovertext:T5({},Bk.hovertext,{}),hovertemplate:CVt(),hovertemplatefallback:LVt(),xhoverformat:rNe("x"),yhoverformat:rNe("y"),marker:Fz,xaxes:iNe("x"),yaxes:iNe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:Bk.selected.marker,editType:"calc"},unselected:{marker:Bk.unselected.marker,editType:"calc"},opacity:Bk.opacity}});var zz=ye((nxr,oNe)=>{"use strict";oNe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var MK=Pr(),FVt=Kd(),sNe=SK(),zVt=Ru(),qVt=$p(),OVt=zz(),BVt=KF().isOpenSymbol;lNe.exports=function(t,r,n,i){function a(d,v){return MK.coerce(t,r,sNe,d,v)}var o=FVt(t,r,{name:"dimensions",handleItemDefaults:NVt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=OVt(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),qVt(t,r,n,i,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var f=BVt(r.marker.symbol),h=zVt.isBubble(r);a("marker.line.width",f||h?1:0),UVt(t,r,i,a),MK.coerceSelectionMarkerOpacity(r,a)};function NVt(e,t){function r(i,a){return MK.coerce(e,t,sNe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function UVt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,c,f=new Array(a),h=new Array(a);for(u=0;uc&&o||u{"use strict";var cNe=Pr();fNe.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[i]=cNe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||cNe.extendFlat(l,o),l}});var pNe=ye((sxr,vNe)=>{"use strict";var EK=Pr(),qz=df(),VVt=O0().calcMarkerSize,GVt=O0().calcAxisExpansion,HVt=z0(),dNe=cw().markerSelection,jVt=cw().markerStyle,WVt=hNe(),XVt=fs().BADNUM,ZVt=gx().TOO_MANY_POINTS;vNe.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,d;function v(M,T){for(var L=M.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),x=0;xZVt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=VVt(r,i),c=0;c{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?Nk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Nk.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(Nk.exports=function(){return Date.now()-r},r=Date.now()):(Nk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(gNe)});var _Ne=ye((lxr,Nz)=>{var YVt=mNe(),p1=window,Oz=["moz","webkit"],S5="AnimationFrame",M5=p1["request"+S5],Uk=p1["cancel"+S5]||p1["cancelRequest"+S5];for(A5=0;!M5&&A5{xNe.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var KVt=TY(),JVt=ry(),$Vt=ow(),wNe=_Ne(),QVt=bNe(),CK=c5(),eGt=sw();ANe.exports=Sx;function Sx(e,t){if(!(this instanceof Sx))return new Sx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=KVt(e),this.canvas=this.scatter.canvas}Sx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=wNe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,wNe(()=>{this.dirty=!1})),this)};Sx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&m{t[a+s]=n})}this.scatter.draw(...t)}return this};Sx.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function tGt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function Uz(e,t,r){let n,i,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(n=f[0],a=f[2],i=f[1],o=f[3]):f.length?(n=i=f[0],a=o=f[1]):(n=f.x,i=f.y,a=f.x+f.width,o=f.y+f.height),h.length>2?(s=h[0],u=h[2],l=h[1],c=h[3]):h.length?(s=l=h[0],u=c=h[1]):(s=h.x,l=h.y,u=h.x+h.width,c=h.y+h.height),[s,i,u,o]}function TNe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=CK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var ENe=ye((fxr,MNe)=>{"use strict";var rGt=SNe(),LK=Pr(),Vz=df(),iGt=Cg().selectMode;MNe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,E=iGt(c)||!!i.selectedpoints||P,z=!0;if(E){var q=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var V=i.selectedpoints,G={};for(d=0;d{"use strict";kNe.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var CNe=PK(),aGt=YF().calcHover,LNe=ho().getFromId,oGt=Ao().extendFlat;function sGt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=PNe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=oGt({},e),f=0;f{"use strict";var qNe=Pr(),DNe=qNe.pushUnique,FNe=Ru(),zNe=PK();ONe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!FNe.hasMarkers(i)&&!FNe.hasText(i);if(i.visible!==!0||f)return c;var h=zNe.getDimIndex(i,l),d=zNe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],m=a.ypx[d],b=s[h],p=s[d],k=(t.scene.selectBatch||[]).slice(),M=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var NNe=Pr(),lGt=z0(),uGt=cw().markerStyle;UNe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){lGt(t,n),NNe.extendFlat(i.matrixOptions,uGt(t,n));var a=NNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var HNe=ye((gxr,GNe)=>{"use strict";var cGt=Oa(),fGt=wV();GNe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:SK(),supplyDefaults:uNe(),colorbar:Qd(),calc:pNe(),plot:ENe(),hoverPoints:RNe().hoverPoints,selectPoints:BNe(),editStyle:VNe(),meta:{}};cGt.register(fGt)});var KNe=ye((mxr,YNe)=>{"use strict";var hGt=eK(),dGt=Oa(),vGt=Dz(),pGt=Id().getModuleCalcData,Mx=mh(),jNe=df().getFromId,WNe=ho().shouldShowZeroLine,XNe="splom",ZNe={};function gGt(e){var t=e._fullLayout,r=dGt.getModule(XNe),n=pGt(e.calcdata,r)[0],i=vGt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],ZNe);i&&(t._hasOnlyLargeSploms&&IK(e),r.plot(e,{},n))}function mGt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&IK(e);for(var n=0;n{"use strict";var JNe=HNe();JNe.basePlotModule=KNe(),$Ne.exports=JNe});var tUe=ye((_xr,eUe)=>{"use strict";eUe.exports=QNe()});var FK=ye((xxr,rUe)=>{"use strict";var bGt=Tu(),RK=Rd(),DK=ec(),wGt=Cc().attributes,Gz=Ao().extendFlat,TGt=vl().templatedArray;rUe.exports={domain:wGt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:DK({editType:"plot"}),tickfont:DK({autoShadowDflt:!0,editType:"plot"}),rangefont:DK({editType:"plot"}),dimensions:TGt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Gz({},RK.tickvals,{editType:"plot"}),ticktext:Gz({},RK.ticktext,{editType:"plot"}),tickformat:Gz({},RK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:Gz({editType:"calc"},bGt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Vk=ye((bxr,iUe)=>{"use strict";iUe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var ay=ye((wxr,aUe)=>{"use strict";var AGt=$S();function nUe(e){return[e]}aUe.exports={keyFun:function(e){return e.key},repeat:nUe,descend:AGt,wrap:nUe,unwrap:function(e){return e[0]}}});var OK=ye((Txr,gUe)=>{"use strict";var Th=Vk(),im=Fa(),SGt=ay().keyFun,Hz=ay().repeat,E5=Pr().sorterAsc,MGt=Pr().strTranslate,oUe=Th.bar.snapRatio;function sUe(e,t){return e*(1-oUe)+t*oUe}var lUe=Th.bar.snapClose;function EGt(e,t){return e*(1-lUe)+t*lUe}function Wz(e,t,r,n){if(kGt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;i*c=t[r][0]&&e<=t[r][1])return!0;return!1}function CGt(e){e.attr("x",-Th.bar.captureWidth/2).attr("width",Th.bar.captureWidth)}function LGt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function PGt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=uUe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function cUe(){im.select(document.body).style("cursor",null)}function qK(e){e.attr("stroke-dasharray",PGt)}function jz(e,t){var r=im.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(Th.bar.snapDuration).each("end",t):r;qK(n)}function fUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=uUe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){c=o;break}else if(f=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=c,isNaN(i)&&(isNaN(f)||isNaN(h)?i=isNaN(f)?h:f:i=t-u[f][1]=k[0]&&p<=k[1]){a.clickableOrdinalRange=k;break}}}return a}function RGt(e,t){im.event.sourceEvent.stopPropagation();var r=t.height-im.mouse(e)[1]-2*Th.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=fUe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-Th.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function hUe(e,t){im.event.sourceEvent.stopPropagation();var r=t.height-im.mouse(e)[1]-2*Th.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(E5),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),jz(e.parentNode)}function DGt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(dUe(e,t),hUe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=im.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,cUe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&zK(r)):zK(r),i.brushCallback(t),jz(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(u?[i.newExtent]:[]),i.extent.length||zK(r),i.brushCallback(t),u?jz(e.parentNode,s):(s(),jz(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function dUe(e,t){var r=t.height-im.mouse(e)[1]-2*Th.verticalPadding,n=fUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),im.select(document.body).style("cursor",i)}function FGt(e){e.on("mousemove",function(t){im.event.preventDefault(),t.parent.inBrushDrag||dUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||cUe()}).call(im.behavior.drag().on("dragstart",function(t){RGt(this,t)}).on("drag",function(t){hUe(this,t)}).on("dragend",function(t){DGt(this,t)}))}function vUe(e,t){return e[0]-t[0]}function zGt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(Hz);i.enter().append("rect").classed("background",!0).call(CGt).call(LGt).style("pointer-events",n?"none":"auto").attr("transform",MGt(0,Th.verticalPadding)),i.call(FGt).attr("height",function(s){return s.height-Th.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Hz);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-Th.bar.width/2).attr("stroke-width",Th.bar.width+Th.bar.strokeWidth).attr("stroke",t).attr("opacity",Th.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(qK);var o=e.selectAll(".highlight").data(Hz);o.enter().append("line").classed("highlight",!0).attr("x",-Th.bar.width/2).attr("stroke-width",Th.bar.width-Th.bar.strokeWidth).attr("stroke",Th.bar.fillColor).attr("opacity",Th.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(qK)}function qGt(e,t,r){var n=e.selectAll("."+Th.cn.axisBrush).data(Hz,SGt);n.enter().append("g").classed(Th.cn.axisBrush,!0),zGt(n,t,r)}function OGt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function zK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function BGt(e){return function(r){var n=r.brush,i=OGt(n),a=i.slice();n.filter.set(a),e()}}function pUe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function NGt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(E5)}).sort(vUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=pUe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function UGt(e,t,r,n,i,a){var o=NGt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:BGt(i),brushEndCallback:a}}}function VGt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(E5)}),t.multiselect?e=pUe(e.sort(vUe)):e=[e[0]]):e=[e.sort(E5)],t.tickvals){var r=t.tickvals.slice().sort(E5);if(e=e.map(function(n){var i=[Wz(0,r,n[0],[]),Wz(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}gUe.exports={makeBrush:UGt,ensureAxisBrush:qGt,cleanRanges:VGt}});var _Ue=ye((Axr,yUe)=>{"use strict";var Ex=Pr(),GGt=pv().hasColorscale,HGt=td(),jGt=Cc().defaults,WGt=Kd(),XGt=ho(),mUe=FK(),ZGt=OK(),BK=Vk().maxDimensionCount,YGt=zz();function KGt(e,t,r,n,i){var a=i("line.color",r);if(GGt(e,"line")&&Ex.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),HGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function JGt(e,t,r,n){function i(u,c){return Ex.coerce(e,t,mUe.dimensions,u,c)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},XGt.setConvert(t._ax,n.layout),i("multiselect");var l=i("constraintrange");l&&(t.constraintrange=ZGt.cleanRanges(l,t))}}yUe.exports=function(t,r,n,i){function a(c,f){return Ex.coerce(t,r,mUe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>BK&&(Ex.log("parcoords traces support up to "+BK+" dimensions at the moment"),o.splice(BK));var s=WGt(t,r,{name:"dimensions",layout:i,handleItemDefaults:JGt}),l=KGt(t,r,n,i,a);jGt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),YGt(r,s,"values",l);var u=Ex.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});Ex.coerceFont(a,"labelfont",u),Ex.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),Ex.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var bUe=ye((Sxr,xUe)=>{"use strict";var $Gt=Pr().isArrayOrTypedArray,NK=tc(),QGt=ay().wrap;xUe.exports=function(t,r){var n,i;return NK.hasColorscale(r,"line")&&$Gt(r.line.color)?(n=r.line.color,i=NK.extractOpts(r.line).colorscale,NK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=eHt(r._length),i=[[0,r.line.color],[1,r.line.color]]),QGt({lineColor:n,cscale:i})};function eHt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),UK.default[e])r=UK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];i=l.replace(/a$/,"");var u=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(wUe[h]!==void 0)return wUe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((f=(c=e.match(/([a-z])/ig))==null?void 0:c.join(""))==null?void 0:f.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var UK,TUe,wUe,AUe=gu(()=>{UK=Rtt(MX(),1),TUe=tHt,wUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Gk,VK=gu(()=>{Gk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var Xz,SUe=gu(()=>{VK();Xz={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}};Gk.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,l,u;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]}});var EUe={};bee(EUe,{default:()=>MUe});function MUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=TUe(e);if(!i.space)return[];let a=i.space[0]==="h"?Xz.min:Gk.min,o=i.space[0]==="h"?Xz.max:Gk.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=Xz.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var kUe=gu(()=>{AUe();VK();SUe()});var GK=ye(Zz=>{"use strict";var rHt=Pr().isTypedArray;Zz.convertTypedArray=function(e){return rHt(e)?Array.prototype.slice.call(e):e};Zz.isOrdinal=function(e){return!!e.tickvals};Zz.isVisible=function(e){return e.visible||!("visible"in e)}});var OUe=ye((Dxr,qUe)=>{"use strict";var iHt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),nHt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),Hk=Vk().maxDimensionCount,DUe=Pr(),CUe=1e-6,Yz=2048,aHt=new Uint8Array(4),LUe=new Uint8Array(4),PUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function oHt(e){e.read({x:0,y:0,width:1,height:1,data:aHt})}function FUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function sHt(e,t,r,n,i,a){var o=a.key;function s(l){var u=Math.min(n,i-l*n);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],FUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*n,t(a),l*n+u>>8*t)%256/255}function cHt(e,t,r){for(var n=new Array(e*(Hk+4)),i=0,a=0;aZ&&(Z=S[z].dim1.canvasX,V=z);E===0&&FUe(i,0,0,u.canvasWidth,u.canvasHeight);var j=M(r);for(z=0;z{"use strict";var Bd=Fa(),g1=Pr(),jK=g1.isArrayOrTypedArray,HUe=g1.numberFormat,jUe=(kUe(),gb(EUe)).default,WUe=ho(),pHt=g1.strRotate,oy=g1.strTranslate,gHt=Zl(),Kz=So(),BUe=tc(),ZK=ay(),ig=ZK.keyFun,sy=ZK.repeat,XUe=ZK.unwrap,k5=GK(),Rl=Vk(),ZUe=OK(),mHt=OUe();function NUe(e,t,r){return g1.aggNums(e,null,t,r)}function YUe(e,t){return YK(NUe(Math.min,e,t),NUe(Math.max,e,t))}function Jz(e){var t=e.range;return t?YK(t[0],t[1]):YUe(e.values,e._length)}function YK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function yHt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function _Ht(e,t,r,n,i){var a=Jz(r);return n?Bd.scale.ordinal().domain(n.map(yHt(HUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Bd.scale.linear().domain(a).range([e-t,t])}function xHt(e,t){return Bd.scale.linear().range([t,e-t])}function bHt(e,t){return Bd.scale.linear().domain(Jz(e)).range([t,1-t])}function wHt(e){if(e.tickvals){var t=Jz(e);return Bd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function THt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=jUe(a[1]);return Bd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Bd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function XK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function AHt(e,t,r){var n=XUe(t),i=n.trace,a=k5.convertTypedArray(n.lineColor),o=i.line,s={color:jUe(i.unselected.line.color),opacity:i.unselected.line.opacity},l=BUe.extractOpts(o),u=l.reversescale?BUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,m=i.labelfont,b=i.tickfont,p=i.rangefont,k=g1.extendDeepNoArrays({},o,{color:a.map(Bd.scale.linear().domain(Jz({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:Rl.blockLineCount,canvasOverdrag:Rl.overdrag*Rl.canvasPixelRatio}),M=Math.floor(h*(c.x[1]-c.x[0])),T=Math.floor(e.height*(c.y[1]-c.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},x=M,C=T;return{key:r,colCount:f.filter(k5.isVisible).length,dimensions:f,tickDistance:Rl.tickDistance,unitToColor:THt(u),lines:k,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:m,tickFont:b,rangeFont:p,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:L,canvasWidth:x*Rl.canvasPixelRatio+2*k.canvasOverdrag,canvasHeight:C*Rl.canvasPixelRatio,width:x,height:C,canvasPixelRatio:Rl.canvasPixelRatio}}function SHt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},l=Rl.verticalPadding/i,u=xHt(i,Rl.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(k5.isVisible).map(function(h,d){var v=bHt(h,l),m=f[h.label];f[h.label]=(m||0)+1;var b=h.label+(m?"__"+m:""),p=h.constraintrange,k=p&&p.length;k&&!jK(p[0])&&(p=[p]);var M=k?p.map(function(q){return q.map(v)}):[[-1/0,1/0]],T=function(){var q=c;q.focusLayer&&q.focusLayer.render(q.panels,!0);var V=XK(q);!e.contextShown()&&V?(q.contextLayer&&q.contextLayer.render(q.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(q.contextLayer&&q.contextLayer.render(q.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var x=h.tickvals,C;function S(q,V){return{val:q,text:C[V]}}function g(q,V){return q.val-V.val}if(jK(x)&&x.length){g1.isTypedArray(x)&&(x=Array.from(x)),C=h.ticktext,!jK(C)||!C.length?C=x.map(HUe(h.tickformat)):C.length>x.length?C=C.slice(0,x.length):x.length>C.length&&(x=x.slice(0,C.length));for(var P=1;P=V||N>=G)return;var H=z.lineLayer.readPixel(j,G-1-N),re=H[3]!==0,ae=re?H[2]+256*(H[1]+256*H[0]):null,_e={x:j,y:N,clientX:q.clientX,clientY:q.clientY,dataIndex:z.model.key,curveNumber:ae};ae!==v&&(re?i.hover(_e):i.unhover&&i.unhover(_e),v=ae)}}),d.style("opacity",function(z){return z.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Rl.cn.parcoords).data(h,ig);b.exit().remove(),b.enter().append("g").classed(Rl.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(z){return oy(z.model.translateX,z.model.translateY)});var p=b.selectAll("."+Rl.cn.parcoordsControlView).data(sy,ig);p.enter().append("g").classed(Rl.cn.parcoordsControlView,!0),p.attr("transform",function(z){return oy(z.model.pad.l,z.model.pad.t)});var k=p.selectAll("."+Rl.cn.yAxis).data(function(z){return z.dimensions},ig);k.enter().append("g").classed(Rl.cn.yAxis,!0),p.each(function(z){WK(k,z,u)}),d.each(function(z){if(z.viewModel){!z.lineLayer||i?z.lineLayer=mHt(this,z):z.lineLayer.update(z),(z.key||z.key===0)&&(z.viewModel[z.key]=z.lineLayer);var q=!z.context||i;z.lineLayer.render(z.viewModel.panels,q)}}),k.attr("transform",function(z){return oy(z.xScale(z.xIndex),0)}),k.call(Bd.behavior.drag().origin(function(z){return z}).on("drag",function(z){var q=z.parent;f.linePickActive(!1),z.x=Math.max(-Rl.overdrag,Math.min(z.model.width+Rl.overdrag,Bd.event.x)),z.canvasX=z.x*z.model.canvasPixelRatio,k.sort(function(V,G){return V.x-G.x}).each(function(V,G){V.xIndex=G,V.x=z===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),WK(k,q,u),k.filter(function(V){return Math.abs(z.xIndex-V.xIndex)!==0}).attr("transform",function(V){return oy(V.xScale(V.xIndex),0)}),Bd.select(this).attr("transform",oy(z.x,0)),k.each(function(V,G,Z){Z===z.parent.key&&(q.dimensions[G]=V)}),q.contextLayer&&q.contextLayer.render(q.panels,!1,!XK(q)),q.focusLayer.render&&q.focusLayer.render(q.panels)}).on("dragend",function(z){var q=z.parent;z.x=z.xScale(z.xIndex),z.canvasX=z.x*z.model.canvasPixelRatio,WK(k,q,u),Bd.select(this).attr("transform",function(V){return oy(V.x,0)}),q.contextLayer&&q.contextLayer.render(q.panels,!1,!XK(q)),q.focusLayer&&q.focusLayer.render(q.panels),q.pickLayer&&q.pickLayer.render(q.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(q.key,q.dimensions.map(function(V){return V.crossfilterDimensionIndex}))})),k.exit().remove();var M=k.selectAll("."+Rl.cn.axisOverlays).data(sy,ig);M.enter().append("g").classed(Rl.cn.axisOverlays,!0),M.selectAll("."+Rl.cn.axis).remove();var T=M.selectAll("."+Rl.cn.axis).data(sy,ig);T.enter().append("g").classed(Rl.cn.axis,!0),T.each(function(z){var q=z.model.height/z.model.tickDistance,V=z.domainScale,G=V.domain();Bd.select(this).call(Bd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(q,z.tickFormat).tickValues(z.ordinal?G:null).tickFormat(function(Z){return k5.isOrdinal(z)?Z:KUe(z.model.dimensions[z.visibleIndex],Z)}).scale(V)),Kz.font(T.selectAll("text"),z.model.tickFont)}),T.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),T.selectAll("text").style("cursor","default");var L=M.selectAll("."+Rl.cn.axisHeading).data(sy,ig);L.enter().append("g").classed(Rl.cn.axisHeading,!0);var x=L.selectAll("."+Rl.cn.axisTitle).data(sy,ig);x.enter().append("text").classed(Rl.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(z){return z.label}).each(function(z){var q=Bd.select(this);Kz.font(q,z.model.labelFont),gHt.convertToTspans(q,t)}).attr("transform",function(z){var q=VUe(z.model.labelAngle,z.model.labelSide),V=Rl.axisTitleOffset;return(q.dir>0?"":oy(0,2*V+z.model.height))+pHt(q.degrees)+oy(-V*q.dx,-V*q.dy)}).attr("text-anchor",function(z){var q=VUe(z.model.labelAngle,z.model.labelSide),V=Math.abs(q.dx),G=Math.abs(q.dy);return 2*V>G?q.dir*q.dx<0?"start":"end":"middle"});var C=M.selectAll("."+Rl.cn.axisExtent).data(sy,ig);C.enter().append("g").classed(Rl.cn.axisExtent,!0);var S=C.selectAll("."+Rl.cn.axisExtentTop).data(sy,ig);S.enter().append("g").classed(Rl.cn.axisExtentTop,!0),S.attr("transform",oy(0,-Rl.axisExtentOffset));var g=S.selectAll("."+Rl.cn.axisExtentTopText).data(sy,ig);g.enter().append("text").classed(Rl.cn.axisExtentTopText,!0).call(UUe),g.text(function(z){return GUe(z,!0)}).each(function(z){Kz.font(Bd.select(this),z.model.rangeFont)});var P=C.selectAll("."+Rl.cn.axisExtentBottom).data(sy,ig);P.enter().append("g").classed(Rl.cn.axisExtentBottom,!0),P.attr("transform",function(z){return oy(0,z.model.height+Rl.axisExtentOffset)});var E=P.selectAll("."+Rl.cn.axisExtentBottomText).data(sy,ig);E.enter().append("text").classed(Rl.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(UUe),E.text(function(z){return GUe(z,!1)}).each(function(z){Kz.font(Bd.select(this),z.model.rangeFont)}),ZUe.ensureAxisBrush(M,c,t)}});var JK=ye((KK,rVe)=>{"use strict";var kHt=$Ue(),CHt=Dz(),QUe=GK().isVisible,tVe={};function eVe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function LHt(e,t){return function(n,i){return eVe(e,t,n)-eVe(e,t,i)}}var KK=rVe.exports=function(t,r){var n=t._fullLayout,i=CHt(t,[],tVe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,m){var b=v[0].trace;s[m]=b.index;var p=l[m]=b.index;a[m]=t.data[p].dimensions,o[m]=t.data[p].dimensions.slice()});var c=function(v,m,b){var p=o[v][m],k=b.map(function(S){return S.slice()}),M="dimensions["+m+"].constraintrange",T=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(T[M]===void 0){var L=p.constraintrange;T[M]=L||null}var x=t._fullData[s[v]].dimensions[m];k.length?(k.length===1&&(k=k[0]),p.constraintrange=k,x.constraintrange=k.slice(),k=[k]):(delete p.constraintrange,delete x.constraintrange,k=null);var C={};C[M]=k,t.emit("plotly_restyle",[C,[l[v]]])},f=function(v){t.emit("plotly_hover",v)},h=function(v){t.emit("plotly_unhover",v)},d=function(v,m){var b=LHt(m,o[v].filter(QUe));a[v].sort(b),o[v].filter(function(p){return!QUe(p)}).sort(function(p){return o[v].indexOf(p)}).forEach(function(p){a[v].splice(a[v].indexOf(p),1),a[v].splice(o[v].indexOf(p),0,p)}),t.emit("plotly_restyle",[{dimensions:[a[v]]},[l[v]]])};kHt(t,r,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:c,hover:f,unhover:h,axesMoved:d})}};KK.reglPrecompiled=tVe});var nVe=ye(jk=>{"use strict";var iVe=Fa(),PHt=Id().getModuleCalcData,IHt=JK(),RHt=Wp();jk.name="parcoords";jk.plot=function(e){var t=PHt(e.calcdata,"parcoords")[0];t.length&&IHt(e,t)};jk.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};jk.toSVG=function(e){var t=e._fullLayout._glimages,r=iVe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:RHt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){iVe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var oVe=ye((qxr,aVe)=>{"use strict";aVe.exports={attributes:FK(),supplyDefaults:_Ue(),calc:bUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:nVe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var uVe=ye((Oxr,lVe)=>{"use strict";var sVe=oVe();sVe.plot=JK();lVe.exports=sVe});var fVe=ye((Bxr,cVe)=>{"use strict";cVe.exports=uVe()});var $K=ye((Nxr,gVe)=>{"use strict";var dVe=Ao().extendFlat,DHt=Vl(),hVe=ec(),FHt=Tu(),{hovertemplateAttrs:vVe,templatefallbackAttrs:pVe}=Pl(),zHt=Cc().attributes,qHt=dVe({editType:"calc"},FHt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:vVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:pVe({editType:"plot"})});gVe.exports={domain:zHt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:dVe({},DHt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:vVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:pVe({editType:"plot"}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:hVe({editType:"calc"}),tickfont:hVe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:qHt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var _Ve=ye((Uxr,yVe)=>{"use strict";var C5=Pr(),OHt=pv().hasColorscale,BHt=td(),NHt=Cc().defaults,UHt=Kd(),mVe=$K(),VHt=zz(),GHt=Yd().isTypedArraySpec;function HHt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate"),i("line.hovertemplatefallback");var a=i("line.color",n.colorway[0]);if(OHt(e,"line")&&C5.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),BHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function jHt(e,t){function r(u,c){return C5.coerce(e,t,mVe.dimensions,u,c)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=C5.isArrayOrTypedArray(a)&&a.length>0||GHt(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}yVe.exports=function(t,r,n,i){function a(u,c){return C5.coerce(t,r,mVe,u,c)}var o=UHt(t,r,{name:"dimensions",handleItemDefaults:jHt}),s=HHt(t,r,n,i,a);NHt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),VHt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;C5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),C5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var bVe=ye((Vxr,xVe)=>{"use strict";var WHt=ay().wrap,XHt=pv().hasColorscale,ZHt=gv(),YHt=aO(),KHt=So(),Wk=Pr(),JHt=Eo();xVe.exports=function(t,r){var n=Wk.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(g){var P;if(g.categoryorder==="trace")P=null;else if(g.categoryorder==="array")P=g.categoryarray;else{P=YHt(g.values);for(var E=!0,z=0;z=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var LVe=ye((Gxr,CVe)=>{"use strict";var Dl=Fa(),ljt=(W2(),gb(j2)).interpolateNumber,ujt=JP(),Yk=ef(),kx=Pr(),Xk=kx.strTranslate,wVe=So(),QK=fd(),cjt=Zl();function fjt(e,t,r,n){var i=t._context.staticPlot,a=e.map(Mjt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,m1),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(k){return Xk(k.x,k.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(k){return k.paths},m1);c.attr("fill",function(k){return k.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(k){return k.model.color}).attr("fill-opacity",0);rJ(f),c.attr("d",function(k){return k.svgD}),f.empty()||c.sort(eJ),c.exit().remove(),c.on("mouseover",hjt).on("mouseout",djt).on("click",vjt),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(k){return k.dimensions},m1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(k){return Xk(k.x,0)}),d.exit().remove();var v=d.selectAll("g.category").data(function(k){return k.categories},m1),m=v.enter().append("g").attr("class","category");v.attr("transform",function(k){return Xk(0,k.y)}),m.append("rect").attr("class","catrect").attr("pointer-events","none"),v.select("rect.catrect").attr("fill","none").attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),AVe(m);var b=v.selectAll("rect.bandrect").data(function(k){return k.bands},m1);b.each(function(){kx.raiseToTop(this)}),b.attr("fill",function(k){return k.color});var p=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(k){return k.color}).attr("fill-opacity",0);b.attr("fill",function(k){return k.color}).attr("width",function(k){return k.width}).attr("height",function(k){return k.height}).attr("y",function(k){return k.y}).attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":k.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),nJ(p),b.exit().remove(),m.append("text").attr("class","catlabel").attr("pointer-events","none"),v.select("text.catlabel").attr("text-anchor",function(k){return Zk(k)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(k){return Zk(k)?k.width+5:-5}).attr("y",function(k){return k.height/2}).text(function(k){return k.model.categoryLabel}).each(function(k){wVe.font(Dl.select(this),k.parcatsViewModel.categorylabelfont),cjt.convertToTspans(Dl.select(this),t)}),m.append("text").attr("class","dimlabel"),v.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(k){return k.width/2}).attr("y",-5).text(function(k,M){return M===0?k.parcatsViewModel.model.dimensions[k.model.dimensionInd].dimensionLabel:null}).each(function(k){wVe.font(Dl.select(this),k.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",bjt).on("mouseout",wjt),v.exit().remove(),d.call(Dl.behavior.drag().origin(function(k){return{x:k.x,y:0}}).on("dragstart",Tjt).on("drag",Ajt).on("dragend",Sjt)),s.each(function(k){k.traceSelection=Dl.select(this),k.pathSelection=Dl.select(this).selectAll("g.paths").selectAll("path.path"),k.dimensionSelection=Dl.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}CVe.exports=function(e,t,r,n){fjt(r,e,n,t)};function m1(e){return e.key}function Zk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function eJ(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),x=Dl.mouse(i)[0];Yk.loneHover({trace:a,x:v-s.left+l.left,y:m-s.top+l.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:x1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var v=s.model.count,m=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:m,probabilityLabel:b.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",p.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&k.push(["P("+p.categoryLabel+"):",p.probabilityLabel].join(" "));var M=k.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:M,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:p,eventData:[{data:c._input,fullData:c,count:v,category:m,probability:b}]}}function _jt(e,t,r){var n=[];return Dl.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(SVe(e,t,i))}),n}function xjt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Dl.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=a.y+a.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var v=s.model.categoryLabel,m=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var p=s.model.count,k=0;l.pathSelection.each(function(P){P.model.color===o.color&&(k+=P.model.count)});var M=b/m,T=b/k,L=b/p,x={countLabel:b,categoryLabel:v,probabilityLabel:M.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(C.push("P(color \u2229 "+v+"): "+x.probabilityLabel),C.push("P("+v+" | color): "+T.toFixed(3)),C.push("P(color | "+v+"): "+L.toFixed(3)));var S=C.join("
"),g=QK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:S,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:x,eventData:[{data:c._input,fullData:c,category:v,count:m,probability:M,categorycount:p,colorcount:k,bandcolorcount:b}]}}function bjt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Dl.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(yjt(o),oJ(o,"plotly_hover",Dl.event)):(mjt(o),aJ(o,"plotly_hover",Dl.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=SVe(r,i,o):a==="color"?s=xjt(r,i,o):a==="dimension"&&(s=_jt(r,i,o)),s&&Yk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function wjt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(rJ(t.pathSelection),AVe(t.dimensionSelection.selectAll("g.category")),nJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Yk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(eJ),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?oJ(n,"plotly_unhover",Dl.event):aJ(n,"plotly_unhover",Dl.event)}}function Tjt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Dl.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Dl.mouse(this)[0],n=Dl.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,kx.raiseToTop(this.parentNode),Dl.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yc.y+c.height/2&&(a.model.displayInd=c.model.displayInd,c.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Dl.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];f!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}lJ(e.parcatsViewModel),sJ(e.parcatsViewModel),kVe(e.parcatsViewModel),EVe(e.parcatsViewModel)}}function Sjt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Dl.select(this).selectAll("text").attr("font-weight","normal");var t={},r=MVe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var v=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+v+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?oJ(e.potentialClickBand,"plotly_click",Dl.event.sourceEvent):aJ(e.potentialClickBand,"plotly_click",Dl.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var c=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];c.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,lJ(e.parcatsViewModel),sJ(e.parcatsViewModel);var f=Dl.transition().duration(300).ease("cubic-in-out");f.each(function(){kVe(e.parcatsViewModel,!0),EVe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&ujt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function MVe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;l--)u+="C"+o[l]+","+(t[l+1]+n)+" "+a[l]+","+(t[l]+n)+" "+(e[l]+r[l])+","+(t[l]+n),u+="l-"+r[l]+",0 ";return u+="Z",u}function sJ(e){var t=e.dimensions,r=e.model,n=t.map(function(q){return q.categories.map(function(V){return V.y})}),i=e.model.dimensions.map(function(q){return q.categories.map(function(V){return V.displayInd})}),a=e.model.dimensions.map(function(q){return q.displayInd}),o=e.dimensions.map(function(q){return q.model.dimensionInd}),s=t.map(function(q){return q.x}),l=t.map(function(q){return q.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(q){var V=q.categoryInds.map(function(Z,j){return i[j][Z]}),G=o.map(function(Z){return V[Z]});return G}u.sort(function(q,V){var G=f(q),Z=f(V);return e.sortpaths==="backward"&&(G.reverse(),Z.reverse()),G.push(q.valueInds[0]),Z.push(V.valueInds[0]),e.bundlecolors&&(G.unshift(q.rawColor),Z.unshift(V.rawColor)),GZ?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(q){return q.height}).reduce(function(q,V){return q+V}),m=0;m0?p=v*(b.count/d):p=0;for(var k=new Array(n.length),M=0;M1?o=(e.width-2*r-n)/(i-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,d=t.count,v=e.height-h*(c-1),m,b,p,k,M,T=(c-f)*h/2,L=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(L.sort(function(x,C){return x.displayInd-C.displayInd}),M=0;M0?m=b.count/d*v:m=0,p={key:b.valueInds[0],model:b,width:n,height:m,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+m+h,u.push(p);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:n,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var uJ=ye((Hxr,PVe)=>{"use strict";var kjt=LVe();PVe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;kjt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var RVe=ye(Qz=>{"use strict";var Cjt=Id().getModuleCalcData,Ljt=uJ(),IVe="parcats";Qz.name=IVe;Qz.plot=function(e,t,r,n){var i=Cjt(e.calcdata,IVe);if(i.length){var a=i[0];Ljt(e,a,r,n)}};Qz.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var FVe=ye((Wxr,DVe)=>{"use strict";DVe.exports={attributes:$K(),supplyDefaults:_Ve(),calc:bVe(),plot:uJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:RVe(),categories:["noOpacity"],meta:{}}});var qVe=ye((Xxr,zVe)=>{"use strict";zVe.exports=FVe()});var y1=ye((Zxr,HVe)=>{"use strict";var Pjt=r_(),OVe="1.13.4",VVe='\xA9 OpenStreetMap contributors',BVe=['\xA9 Carto',VVe].join(" "),NVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),Ijt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),GVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:VVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:BVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:BVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:NVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:NVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:Ijt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},UVe=Pjt(GVe);HVe.exports={requiredVersion:OVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:GVe,styleValuesNonMapbox:UVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+OVe+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",zVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",UVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var Yk=ye((Pxr,GVe)=>{"use strict";var NVe=Pr(),UVe=ka().defaultLine,gjt=Cc().attributes,mjt=ec(),yjt=pf().textposition,_jt=mc().overrideAll,xjt=vl().templatedArray,sJ=m1(),VVe=mjt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});VVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var bjt=GVe.exports=_jt({_arrayAttrRegexps:[NVe.counterRegex("mapbox",".layers",!0)],domain:gjt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:sJ.styleValuesMapbox.concat(sJ.styleValuesNonMapbox),dflt:sJ.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:xjt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:UVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:UVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:VVe,textposition:NVe.extendFlat({},yjt,{arrayOk:!1})}})},"plot","from-root");bjt.uirevision={valType:"any",editType:"none"}});var $z=ye((Ixr,XVe)=>{"use strict";var{hovertemplateAttrs:wjt,texttemplateAttrs:Tjt,templatefallbackAttrs:HVe}=Ll(),Ajt=Pg(),Kk=tw(),k5=pf(),jVe=Yk(),Sjt=Gl(),Mjt=Tu(),dw=Ao().extendFlat,Ejt=mc().overrideAll,kjt=Yk(),WVe=Kk.line,C5=Kk.marker;XVe.exports=Ejt({lon:Kk.lon,lat:Kk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:dw({},kjt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:dw({},C5.opacity,{dflt:1})},mode:dw({},k5.mode,{dflt:"markers"}),text:dw({},k5.text,{}),texttemplate:Tjt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:HVe({editType:"plot"}),hovertext:dw({},k5.hovertext,{}),line:{color:WVe.color,width:WVe.width},connectgaps:k5.connectgaps,marker:dw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:C5.opacity,size:C5.size,sizeref:C5.sizeref,sizemin:C5.sizemin,sizemode:C5.sizemode},Mjt("marker")),fill:Kk.fill,fillcolor:Ajt(),textfont:jVe.layers.symbol.textfont,textposition:jVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:k5.selected.marker},unselected:{marker:k5.unselected.marker},hoverinfo:dw({},Sjt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:wjt(),hovertemplatefallback:HVe()},"calc","nested")});var lJ=ye((Rxr,ZVe)=>{"use strict";var Cjt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];ZVe.exports={isSupportedFont:function(e){return Cjt.indexOf(e)!==-1}}});var JVe=ye((Dxr,KVe)=>{"use strict";var Jk=Pr(),uJ=Ru(),Ljt=$p(),Pjt=D0(),Ijt=F0(),Rjt=Fg(),YVe=$z(),Djt=lJ().isSupportedFont;KVe.exports=function(t,r,n,i){function a(p,k){return Jk.coerce(t,r,YVe,p,k)}function o(p,k){return Jk.coerce2(t,r,YVe,p,k)}var s=Fjt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),uJ.hasMarkers(r)){Ljt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(Jk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),Jk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}uJ.hasLines(r)&&(Pjt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,m=a("cluster.enabled",v);if(m||uJ.hasText(r)){var b=i.font.family;Ijt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Djt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&Rjt(t,r,n,a),Jk.coerceSelectionMarkerOpacity(r,a)};function Fjt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var cJ=ye((Fxr,QVe)=>{"use strict";var $Ve=ho();QVe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=$Ve.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=$Ve.tickText(o,o.c2l(s[1]),!0).text,i}});var fJ=ye((zxr,tGe)=>{"use strict";var eGe=Pr();tGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=eGe.isArrayOrTypedArray(r)?eGe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var sGe=ye((qxr,oGe)=>{"use strict";var nGe=Eo(),ov=Pr(),zjt=fs().BADNUM,e7=fx(),rGe=tc(),qjt=So(),Ojt=B3(),t7=Ru(),Bjt=lJ().isSupportedFont,Njt=fJ(),Ujt=ip().appendArrayPointValue,Vjt=Zl().NEWLINES,Gjt=Zl().BR_TAG_ALL;oGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=t7.hasLines(n),s=t7.hasMarkers(n),l=t7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=Qz("fill"),d=Qz("line"),v=Qz("circle"),m=Qz("symbol"),b={fill:h,line:d,circle:v,symbol:m};if(!i)return b;var p;if((a||o)&&(p=e7.calcTraceToLineCoords(r)),a&&(h.geojson=e7.makePolygon(p),h.layout.visibility="visible",ov.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=e7.makeLine(p),d.layout.visibility="visible",ov.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var k=Hjt(r);v.geojson=k.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":dJ(n.cluster.color,n.cluster.step),"circle-radius":dJ(n.cluster.size,n.cluster.step),"circle-opacity":dJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":iGe(n),"text-size":12}}),ov.extendFlat(v.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(m.geojson=jjt(r,t),ov.extendFlat(m.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(ov.extendFlat(m.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&ov.extendFlat(m.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),m.layout["icon-allow-overlap"]=n.marker.allowoverlap,ov.extendFlat(m.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var M=(n.marker||{}).size,T=Njt(n.textposition,M);ov.extendFlat(m.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":iGe(n)}),ov.extendFlat(m.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Qz(e){return{type:e,geojson:e7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function Hjt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=ov.isArrayOrTypedArray(r.color),a=ov.isArrayOrTypedArray(r.size),o=ov.isArrayOrTypedArray(r.opacity),s;function l(M){return t.opacity*M}function u(M){return M/2}var c;i&&(rGe.hasColorscale(t,"marker")?c=rGe.makeColorScaleFuncFromTrace(r):c=ov.identity);var f;a&&(f=Ojt(t));var h;o&&(h=function(M){var T=nGe(M)?+ov.constrain(M,0,1):0;return l(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),Bjt(s)||(s=r);var l=s.split(", ");return l}});var fGe=ye((Oxr,cGe)=>{"use strict";var Wjt=Pr(),lGe=sGe(),L5=m1().traceLayerPrefix,ng={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function uGe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:L5+t+"-fill",line:L5+t+"-line",circle:L5+t+"-circle",symbol:L5+t+"-symbol",cluster:L5+t+"-cluster",clusterCount:L5+t+"-cluster-count"},this.below=null}var $k=uGe.prototype;$k.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&Wjt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};$k.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};$k.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=T[L];i.removeLayer(u.layerIds[x])}M||i.removeSource(u.sourceIds.circle)}function h(M){for(var T=ng.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(u.layerIds[x]),M||i.removeSource(u.sourceIds[x])}}function v(M){l?f(M):d(M)}function m(M){s?c(M):h(M)}function b(){for(var M=s?ng.cluster:ng.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};cGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new uGe(t,n.uid,i,a),s=lGe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var Xjt=ef(),vJ=Pr(),Zjt=yT(),Yjt=vJ.fillText,Kjt=fs().BADNUM,Jjt=m1().traceLayerPrefix;function $jt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=Jjt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function m(S){var g=S.lonlat;if(g[0]===Kjt||c&&l.indexOf(S.i+1)===-1)return 1/0;var P=vJ.modHalf(g[0],360),E=g[1],z=s.project([P,E]),q=z.x-a.c2p([v,E]),V=z.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(q*q+V*V)-G,1-3/G)}if(Xjt.getClosest(n,m,e),e.index!==!1){var b=n[e.index],p=b.lonlat,k=[vJ.modHalf(p[0],360)+d,p[1]],M=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=M-L,e.x1=M+L,e.y0=T-L,e.y1=T+L;var x={};x[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,x);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=Zjt(i,b),e.extraText=hGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function hGe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&Yjt(t,e,u),u.join("
")}dGe.exports={hoverPoints:$jt,getExtraText:hGe}});var pGe=ye((Nxr,vGe)=>{"use strict";vGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var mGe=ye((Uxr,gGe)=>{"use strict";var Qjt=Pr(),eWt=Ru(),tWt=fs().BADNUM;gGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!eWt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof pJ=="object"&&typeof gJ!="undefined"?gJ.exports=t():(e=e||self,e.mapboxgl=t())})(pJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(y,_){return _={exports:{}},y(_,_.exports),_.exports}var o="1.13.4",s=l;function l(y,_,I,U){this.cx=3*y,this.bx=3*(I-y)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*_,this.by=3*(U-_)-this.cy,this.ay=1-this.cy-this.by,this.p1x=y,this.p1y=U,this.p2x=I,this.p2y=U}l.prototype.sampleCurveX=function(y){return((this.ax*y+this.bx)*y+this.cx)*y},l.prototype.sampleCurveY=function(y){return((this.ay*y+this.by)*y+this.cy)*y},l.prototype.sampleCurveDerivativeX=function(y){return(3*this.ax*y+2*this.bx)*y+this.cx},l.prototype.solveCurveX=function(y,_){typeof _=="undefined"&&(_=1e-6);var I,U,$,oe,he;for($=y,he=0;he<8;he++){if(oe=this.sampleCurveX($)-y,Math.abs(oe)<_)return $;var De=this.sampleCurveDerivativeX($);if(Math.abs(De)<1e-6)break;$=$-oe/De}if(I=0,U=1,$=y,$U)return U;for(;Ioe?I=$:U=$,$=(U-I)*.5+I}return $},l.prototype.solve=function(y,_){return this.sampleCurveY(this.solveCurveX(y,_))};var u=c;function c(y,_){this.x=y,this.y=_}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(y){return this.clone()._add(y)},sub:function(y){return this.clone()._sub(y)},multByPoint:function(y){return this.clone()._multByPoint(y)},divByPoint:function(y){return this.clone()._divByPoint(y)},mult:function(y){return this.clone()._mult(y)},div:function(y){return this.clone()._div(y)},rotate:function(y){return this.clone()._rotate(y)},rotateAround:function(y,_){return this.clone()._rotateAround(y,_)},matMult:function(y){return this.clone()._matMult(y)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(y){return this.x===y.x&&this.y===y.y},dist:function(y){return Math.sqrt(this.distSqr(y))},distSqr:function(y){var _=y.x-this.x,I=y.y-this.y;return _*_+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(y){return Math.atan2(this.y-y.y,this.x-y.x)},angleWith:function(y){return this.angleWithSep(y.x,y.y)},angleWithSep:function(y,_){return Math.atan2(this.x*_-this.y*y,this.x*y+this.y*_)},_matMult:function(y){var _=y[0]*this.x+y[1]*this.y,I=y[2]*this.x+y[3]*this.y;return this.x=_,this.y=I,this},_add:function(y){return this.x+=y.x,this.y+=y.y,this},_sub:function(y){return this.x-=y.x,this.y-=y.y,this},_mult:function(y){return this.x*=y,this.y*=y,this},_div:function(y){return this.x/=y,this.y/=y,this},_multByPoint:function(y){return this.x*=y.x,this.y*=y.y,this},_divByPoint:function(y){return this.x/=y.x,this.y/=y.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var y=this.y;return this.y=this.x,this.x=-y,this},_rotate:function(y){var _=Math.cos(y),I=Math.sin(y),U=_*this.x-I*this.y,$=I*this.x+_*this.y;return this.x=U,this.y=$,this},_rotateAround:function(y,_){var I=Math.cos(y),U=Math.sin(y),$=_.x+I*(this.x-_.x)-U*(this.y-_.y),oe=_.y+U*(this.x-_.x)+I*(this.y-_.y);return this.x=$,this.y=oe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(y){return y instanceof c?y:Array.isArray(y)?new c(y[0],y[1]):y};var f=typeof self!="undefined"?self:{};function h(y,_){if(Array.isArray(y)){if(!Array.isArray(_)||y.length!==_.length)return!1;for(var I=0;I=1)return 1;var _=y*y,I=_*y;return 4*(y<.5?I:3*(y-_)+I-.75)}function m(y,_,I,U){var $=new s(y,_,I,U);return function(oe){return $.solve(oe)}}var b=m(.25,.1,.25,1);function p(y,_,I){return Math.min(I,Math.max(_,y))}function k(y,_,I){var U=I-_,$=((y-_)%U+U)%U+_;return $===_?I:$}function M(y,_,I){if(!y.length)return I(null,[]);var U=y.length,$=new Array(y.length),oe=null;y.forEach(function(he,De){_(he,function(it,yt){it&&(oe=it),$[De]=yt,--U===0&&I(oe,$)})})}function T(y){var _=[];for(var I in y)_.push(y[I]);return _}function L(y,_){var I=[];for(var U in y)U in _||I.push(U);return I}function x(y){for(var _=[],I=arguments.length-1;I-- >0;)_[I]=arguments[I+1];for(var U=0,$=_;U<$.length;U+=1){var oe=$[U];for(var he in oe)y[he]=oe[he]}return y}function C(y,_){for(var I={},U=0;U<_.length;U++){var $=_[U];$ in y&&(I[$]=y[$])}return I}var S=1;function g(){return S++}function P(){function y(_){return _?(_^Math.random()*16>>_/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,y)}return y()}function E(y){return y<=1?1:Math.pow(2,Math.ceil(Math.log(y)/Math.LN2))}function z(y){return y?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(y):!1}function q(y,_){y.forEach(function(I){_[I]&&(_[I]=_[I].bind(_))})}function V(y,_){return y.indexOf(_,y.length-_.length)!==-1}function G(y,_,I){var U={};for(var $ in y)U[$]=_.call(I||this,y[$],$,y);return U}function Z(y,_,I){var U={};for(var $ in y)_.call(I||this,y[$],$,y)&&(U[$]=y[$]);return U}function j(y){return Array.isArray(y)?y.map(j):typeof y=="object"&&y?G(y,j):y}function N(y,_){for(var I=0;I=0)return!0;return!1}var H={};function ie(y){H[y]||(typeof console!="undefined"&&console.warn(y),H[y]=!0)}function ae(y,_,I){return(I.y-y.y)*(_.x-y.x)>(_.y-y.y)*(I.x-y.x)}function _e(y){for(var _=0,I=0,U=y.length,$=U-1,oe=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(y.replace(_,function($,oe,he,De){var it=he||De;return I[oe]=it?it.toLowerCase():!0,""}),I["max-age"]){var U=parseInt(I["max-age"],10);isNaN(U)?delete I["max-age"]:I["max-age"]=U}return I}var re=null;function Se(y){if(re==null){var _=y.navigator?y.navigator.userAgent:null;re=!!y.safari||!!(_&&(/\b(iPad|iPhone|iPod)\b/.test(_)||_.match("Safari")&&!_.match("Chrome")))}return re}function ke(y){try{var _=f[y];return _.setItem("_mapbox_test_",1),_.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function be(y){return f.btoa(encodeURIComponent(y).replace(/%([0-9A-F]{2})/g,function(_,I){return String.fromCharCode(+("0x"+I))}))}function Be(y){return decodeURIComponent(f.atob(y).split("").map(function(_){return"%"+("00"+_.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Le=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),me=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,Pe=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,ce,He,lt={now:Le,frame:function(_){var I=me(_);return{cancel:function(){return Pe(I)}}},getImageData:function(_,I){I===void 0&&(I=0);var U=f.document.createElement("canvas"),$=U.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return U.width=_.width,U.height=_.height,$.drawImage(_,0,0,_.width,_.height),$.getImageData(-I,-I,_.width+2*I,_.height+2*I)},resolveURL:function(_){return ce||(ce=f.document.createElement("a")),ce.href=_,ce.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(He==null&&(He=f.matchMedia("(prefers-reduced-motion: reduce)")),He.matches):!1}},mt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Ht={supported:!1,testSupport:rr},at,ct=!1,ar,Vt=!1;f.document&&(ar=f.document.createElement("img"),ar.onload=function(){at&&tt(at),at=null,Vt=!0},ar.onerror=function(){ct=!0,at=null},ar.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function rr(y){ct||!ar||(Vt?tt(y):at=y)}function tt(y){var _=y.createTexture();y.bindTexture(y.TEXTURE_2D,_);try{if(y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,ar),y.isContextLost())return;Ht.supported=!0}catch(I){}y.deleteTexture(_),ct=!0}var je="01";function Ue(){for(var y="1",_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",U=0;U<10;U++)I+=_[Math.floor(Math.random()*62)];var $=12*60*60*1e3,oe=[y,je,I].join(""),he=Date.now()+$;return{token:oe,tokenExpiresAt:he}}var Ae=function(_,I){this._transformRequestFn=_,this._customAccessToken=I,this._createSkuToken()};Ae.prototype._createSkuToken=function(){var _=Ue();this._skuToken=_.token,this._skuTokenExpiresAt=_.tokenExpiresAt},Ae.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ae.prototype.transformRequest=function(_,I){return this._transformRequestFn?this._transformRequestFn(_,I)||{url:_}:{url:_}},Ae.prototype.normalizeStyleURL=function(_,I){if(!rt(_))return _;var U=jt(_);return U.path="/styles/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Ae.prototype.normalizeGlyphsURL=function(_,I){if(!rt(_))return _;var U=jt(_);return U.path="/fonts/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Ae.prototype.normalizeSourceURL=function(_,I){if(!rt(_))return _;var U=jt(_);return U.path="/v4/"+U.authority+".json",U.params.push("secure"),this._makeAPIURL(U,this._customAccessToken||I)},Ae.prototype.normalizeSpriteURL=function(_,I,U,$){var oe=jt(_);return rt(_)?(oe.path="/styles/v1"+oe.path+"/sprite"+I+U,this._makeAPIURL(oe,this._customAccessToken||$)):(oe.path+=""+I+U,or(oe))},Ae.prototype.normalizeTileURL=function(_,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),_&&!rt(_))return _;var U=jt(_),$=/(\.(png|jpg)\d*)(?=$)/,oe=/^.+\/v4\//,he=lt.devicePixelRatio>=2||I===512?"@2x":"",De=Ht.supported?".webp":"$1";U.path=U.path.replace($,""+he+De),U.path=U.path.replace(oe,"/"),U.path="/v4"+U.path;var it=this._customAccessToken||Et(U.params)||mt.ACCESS_TOKEN;return mt.REQUIRE_ACCESS_TOKEN&&it&&this._skuToken&&U.params.push("sku="+this._skuToken),this._makeAPIURL(U,it)},Ae.prototype.canonicalizeTileURL=function(_,I){var U="/v4/",$=/\.[\w]+$/,oe=jt(_);if(!oe.path.match(/(^\/v4\/)/)||!oe.path.match($))return _;var he="mapbox://tiles/";he+=oe.path.replace(U,"");var De=oe.params;return I&&(De=De.filter(function(it){return!it.match(/^access_token=/)})),De.length&&(he+="?"+De.join("&")),he},Ae.prototype.canonicalizeTileset=function(_,I){for(var U=I?rt(I):!1,$=[],oe=0,he=_.tiles||[];oe=0&&_.params.splice(oe,1)}if($.path!=="/"&&(_.path=""+$.path+_.path),!mt.REQUIRE_ACCESS_TOKEN)return or(_);if(I=I||mt.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+U);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+U);return _.params=_.params.filter(function(he){return he.indexOf("access_token")===-1}),_.params.push("access_token="+I),or(_)};function rt(y){return y.indexOf("mapbox:")===0}var St=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Tt(y){return St.test(y)}function dt(y){return y.indexOf("sku=")>0&&Tt(y)}function Et(y){for(var _=0,I=y;_=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){ie("Unable to write to LocalStorage")}},ei.prototype.processRequests=function(_){},ei.prototype.postEvent=function(_,I,U,$){var oe=this;if(mt.EVENTS_URL){var he=jt(mt.EVENTS_URL);he.params.push("access_token="+($||mt.ACCESS_TOKEN||""));var De={event:this.type,created:new Date(_).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:je,userId:this.anonId},it=I?x(De,I):De,yt={url:or(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([it])};this.pendingRequest=$r(yt,function(Lt){oe.pendingRequest=null,U(Lt),oe.saveEventData(),oe.processRequests($)})}},ei.prototype.queueRequest=function(_,I){this.queue.push(_),this.processRequests(I)};var qr=function(y){function _(){y.call(this,"map.load"),this.success={},this.skuToken=""}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.postMapLoadEvent=function(U,$,oe,he){this.skuToken=oe,(mt.EVENTS_URL&&he||mt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(De){return rt(De)||Tt(De)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},_.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var oe=this.queue.shift(),he=oe.id,De=oe.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),z(this.anonId)||(this.anonId=P()),this.postEvent(De,{skuToken:this.skuToken},function(it){it||he&&($.success[he]=!0)},U))}},_}(ei),jr=function(y){function _(I){y.call(this,"appUserTurnstile"),this._customAccessToken=I}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.postTurnstileEvent=function(U,$){mt.EVENTS_URL&&mt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(oe){return rt(oe)||Tt(oe)})&&this.queueRequest(Date.now(),$)},_.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var oe=Ar(mt.ACCESS_TOKEN),he=oe?oe.u:mt.ACCESS_TOKEN,De=he!==this.eventData.tokenU;z(this.anonId)||(this.anonId=P(),De=!0);var it=this.queue.shift();if(this.eventData.lastSuccess){var yt=new Date(this.eventData.lastSuccess),Lt=new Date(it),sr=(it-this.eventData.lastSuccess)/(24*60*60*1e3);De=De||sr>=1||sr<-1||yt.getDate()!==Lt.getDate()}else De=!0;if(!De)return this.processRequests();this.postEvent(it,{"enabled.telemetry":!1},function(gr){gr||($.eventData.lastSuccess=it,$.eventData.tokenU=he)},U)}},_}(ei),gt=new jr,Ge=gt.postTurnstileEvent.bind(gt),Je=new qr,We=Je.postMapLoadEvent.bind(Je),et="mapbox-tiles",xt=500,At=50,Kt=1e3*60*7,Qt;function Mr(){f.caches&&!Qt&&(Qt=f.caches.open(et))}var Gr;function Ir(y,_){if(Gr===void 0)try{new Response(new ReadableStream),Gr=!0}catch(I){Gr=!1}Gr?_(y.body):y.blob().then(_)}function Yr(y,_,I){if(Mr(),!!Qt){var U={status:_.status,statusText:_.statusText,headers:new f.Headers};_.headers.forEach(function(he,De){return U.headers.set(De,he)});var $=ge(_.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&U.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var oe=new Date(U.headers.get("Expires")).getTime()-I;oeDate.now()&&!I["no-cache"]}var mi=1/0;function un(y){mi++,mi>At&&(y.getActor().send("enforceCacheSizeLimit",xt),mi=0)}function Fn(y){Mr(),Qt&&Qt.then(function(_){_.keys().then(function(I){for(var U=0;U=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(y.type==="json")try{$=JSON.parse(I.response)}catch(oe){return _(oe)}_(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else _(new Jn(I.statusText,I.status,y.url))},I.send(y.body),{cancel:function(){return I.abort()}}}var wr=function(y,_){if(!wt(y.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return tr(y,_);if(Ce()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",y,_,void 0,I)}}return ir(y,_)},Xr=function(y,_){return wr(x(y,{type:"json"}),_)},ti=function(y,_){return wr(x(y,{type:"arrayBuffer"}),_)},$r=function(y,_){return wr(x(y,{method:"POST"}),_)};function Ri(y){var _=f.document.createElement("a");return _.href=y,_.protocol===f.document.location.protocol&&_.host===f.document.location.host}var Zi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function en(y,_,I,U){var $=new f.Image,oe=f.URL;$.onload=function(){_(null,$),oe.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=Zi})},$.onerror=function(){return _(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var he=new f.Blob([new Uint8Array(y)],{type:"image/png"});$.cacheControl=I,$.expires=U,$.src=y.byteLength?oe.createObjectURL(he):Zi}function fn(y,_){var I=new f.Blob([new Uint8Array(y)],{type:"image/png"});f.createImageBitmap(I).then(function(U){_(null,U)}).catch(function(U){_(new Error("Could not load image because of "+U.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var yn,Mn,Ba=function(){yn=[],Mn=0};Ba();var ua=function(y,_){if(Ht.supported&&(y.headers||(y.headers={}),y.headers.accept="image/webp,*/*"),Mn>=mt.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:y,callback:_,cancelled:!1,cancel:function(){this.cancelled=!0}};return yn.push(I),I}Mn++;var U=!1,$=function(){if(!U)for(U=!0,Mn--;yn.length&&Mn0||this._oneTimeListeners&&this._oneTimeListeners[_]&&this._oneTimeListeners[_].length>0||this._eventedParent&&this._eventedParent.listens(_)},jn.prototype.setEventedParent=function(_,I){return this._eventedParent=_,this._eventedParentData=I,this};var Ha=8,vo={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},Gn={"*":{type:"source"}},Ct=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Sr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Jr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},hi={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},hn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Sn={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},En={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ki={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},_n=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],ya={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ea={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ma={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},_o={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},No={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},po={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Lo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ko={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ds={type:"array",value:"*"},Fs={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ll={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},ul={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},zl={type:"array",value:"*",minimum:1},us={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},il=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],As={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},cl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Ks={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},zs={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Io={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},ls={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Yl={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Su={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},nc={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},bs={"*":{type:"string"}},Rn={$version:Ha,$root:vo,sources:Gn,source:Ct,source_vector:Sr,source_raster:Jr,source_raster_dem:hi,source_geojson:hn,source_video:Sn,source_image:En,layer:ki,layout:_n,layout_background:ya,layout_fill:ea,layout_circle:Ma,layout_heatmap:_o,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:No,layout_symbol:po,layout_raster:Lo,layout_hillshade:ko,filter:Ds,filter_operator:Fs,geometry_type:ll,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:ul,expression:zl,light:us,paint:il,paint_fill:As,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:cl,paint_circle:Ks,paint_heatmap:zs,paint_symbol:Io,paint_raster:ls,paint_hillshade:Yl,paint_background:Su,transition:nc,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:bs},_a=function(_,I,U,$){this.message=(_?_+": ":"")+U,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Vu(y){var _=y.key,I=y.value;return I?[new _a(_,I,"constants have been deprecated as of v8")]:[]}function ql(y){for(var _=[],I=arguments.length-1;I-- >0;)_[I]=arguments[I+1];for(var U=0,$=_;U<$.length;U+=1){var oe=$[U];for(var he in oe)y[he]=oe[he]}return y}function xo(y){return y instanceof Number||y instanceof String||y instanceof Boolean?y.valueOf():y}function Kl(y){if(Array.isArray(y))return y.map(Kl);if(y instanceof Object&&!(y instanceof Number||y instanceof String||y instanceof Boolean)){var _={};for(var I in y)_[I]=Kl(y[I]);return _}return xo(y)}var Ns=function(y){function _(I,U){y.call(this,U),this.message=U,this.key=I}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_}(Error),Hl=function(_,I){I===void 0&&(I=[]),this.parent=_,this.bindings={};for(var U=0,$=I;U<$.length;U+=1){var oe=$[U],he=oe[0],De=oe[1];this.bindings[he]=De}};Hl.prototype.concat=function(_){return new Hl(this,_)},Hl.prototype.get=function(_){if(this.bindings[_])return this.bindings[_];if(this.parent)return this.parent.get(_);throw new Error(_+" not found in scope.")},Hl.prototype.has=function(_){return this.bindings[_]?!0:this.parent?this.parent.has(_):!1};var ac={kind:"null"},oa={kind:"number"},qo={kind:"string"},Oo={kind:"boolean"},Ol={kind:"color"},Pc={kind:"object"},Do={kind:"value"},nf={kind:"error"},Vf={kind:"collator"},pl={kind:"formatted"},Zc={kind:"resolvedImage"};function Jl(y,_){return{kind:"array",itemType:y,N:_}}function qs(y){if(y.kind==="array"){var _=qs(y.itemType);return typeof y.N=="number"?"array<"+_+", "+y.N+">":y.itemType.kind==="value"?"array":"array<"+_+">"}else return y.kind}var yu=[ac,oa,qo,Oo,Ol,pl,Pc,Jl(Do),Zc];function oc(y,_){if(_.kind==="error")return null;if(y.kind==="array"){if(_.kind==="array"&&(_.N===0&&_.itemType.kind==="value"||!oc(y.itemType,_.itemType))&&(typeof y.N!="number"||y.N===_.N))return null}else{if(y.kind===_.kind)return null;if(y.kind==="value")for(var I=0,U=yu;I255?255:yt}function $(yt){return yt<0?0:yt>1?1:yt}function oe(yt){return yt[yt.length-1]==="%"?U(parseFloat(yt)/100*255):U(parseInt(yt))}function he(yt){return yt[yt.length-1]==="%"?$(parseFloat(yt)/100):$(parseFloat(yt))}function De(yt,Lt,sr){return sr<0?sr+=1:sr>1&&(sr-=1),sr*6<1?yt+(Lt-yt)*sr*6:sr*2<1?Lt:sr*3<2?yt+(Lt-yt)*(2/3-sr)*6:yt}function it(yt){var Lt=yt.replace(/ /g,"").toLowerCase();if(Lt in I)return I[Lt].slice();if(Lt[0]==="#"){if(Lt.length===4){var sr=parseInt(Lt.substr(1),16);return sr>=0&&sr<=4095?[(sr&3840)>>4|(sr&3840)>>8,sr&240|(sr&240)>>4,sr&15|(sr&15)<<4,1]:null}else if(Lt.length===7){var sr=parseInt(Lt.substr(1),16);return sr>=0&&sr<=16777215?[(sr&16711680)>>16,(sr&65280)>>8,sr&255,1]:null}return null}var gr=Lt.indexOf("("),hr=Lt.indexOf(")");if(gr!==-1&&hr+1===Lt.length){var Rr=Lt.substr(0,gr),ni=Lt.substr(gr+1,hr-(gr+1)).split(","),Hi=1;switch(Rr){case"rgba":if(ni.length!==4)return null;Hi=he(ni.pop());case"rgb":return ni.length!==3?null:[oe(ni[0]),oe(ni[1]),oe(ni[2]),Hi];case"hsla":if(ni.length!==4)return null;Hi=he(ni.pop());case"hsl":if(ni.length!==3)return null;var wi=(parseFloat(ni[0])%360+360)%360/360,bn=he(ni[1]),rn=he(ni[2]),xn=rn<=.5?rn*(bn+1):rn+bn-rn*bn,In=rn*2-xn;return[U(De(In,xn,wi+1/3)*255),U(De(In,xn,wi)*255),U(De(In,xn,wi-1/3)*255),Hi];default:return null}}return null}try{_.parseCSSColor=it}catch(yt){}}),Lf=jh.parseCSSColor,cs=function(_,I,U,$){$===void 0&&($=1),this.r=_,this.g=I,this.b=U,this.a=$};cs.parse=function(_){if(_){if(_ instanceof cs)return _;if(typeof _=="string"){var I=Lf(_);if(I)return new cs(I[0]/255*I[3],I[1]/255*I[3],I[2]/255*I[3],I[3])}}},cs.prototype.toString=function(){var _=this.toArray(),I=_[0],U=_[1],$=_[2],oe=_[3];return"rgba("+Math.round(I)+","+Math.round(U)+","+Math.round($)+","+oe+")"},cs.prototype.toArray=function(){var _=this,I=_.r,U=_.g,$=_.b,oe=_.a;return oe===0?[0,0,0,0]:[I*255/oe,U*255/oe,$*255/oe,oe]},cs.black=new cs(0,0,0,1),cs.white=new cs(1,1,1,1),cs.transparent=new cs(0,0,0,0),cs.red=new cs(1,0,0,1);var af=function(_,I,U){_?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=U,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};af.prototype.compare=function(_,I){return this.collator.compare(_,I)},af.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Gf=function(_,I,U,$,oe){this.text=_,this.image=I,this.scale=U,this.fontStack=$,this.textColor=oe},$l=function(_){this.sections=_};$l.fromString=function(_){return new $l([new Gf(_,null,null,null,null)])},$l.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(_){return _.text.length!==0||_.image&&_.image.name.length!==0})},$l.factory=function(_){return _ instanceof $l?_:$l.fromString(_)},$l.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(_){return _.text}).join("")},$l.prototype.serialize=function(){for(var _=["format"],I=0,U=this.sections;I=0&&y<=255&&typeof _=="number"&&_>=0&&_<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof U=="number"?[y,_,I,U]:[y,_,I];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof U=="undefined"||typeof U=="number"&&U>=0&&U<=1?null:"Invalid rgba value ["+[y,_,I,U].join(", ")+"]: 'a' must be between 0 and 1."}function Fu(y){if(y===null)return!0;if(typeof y=="string")return!0;if(typeof y=="boolean")return!0;if(typeof y=="number")return!0;if(y instanceof cs)return!0;if(y instanceof af)return!0;if(y instanceof $l)return!0;if(y instanceof fl)return!0;if(Array.isArray(y)){for(var _=0,I=y;_2){var De=_[1];if(typeof De!="string"||!(De in uc)||De==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=uc[De],U++}else he=Do;var it;if(_.length>3){if(_[2]!==null&&(typeof _[2]!="number"||_[2]<0||_[2]!==Math.floor(_[2])))return I.error('The length argument to "array" must be a positive integer literal',2);it=_[2],U++}$=Jl(he,it)}else $=uc[oe];for(var yt=[];U<_.length;U++){var Lt=I.parse(_[U],U,Do);if(!Lt)return null;yt.push(Lt)}return new xl($,yt)},xl.prototype.evaluate=function(_){for(var I=0;I1)&&I.push($)}}return I.concat(this.args.map(function(oe){return oe.serialize()}))};var Gu=function(_){this.type=pl,this.sections=_};Gu.parse=function(_,I){if(_.length<2)return I.error("Expected at least one argument.");var U=_[1];if(!Array.isArray(U)&&typeof U=="object")return I.error("First argument must be an image or text section.");for(var $=[],oe=!1,he=1;he<=_.length-1;++he){var De=_[he];if(oe&&typeof De=="object"&&!Array.isArray(De)){oe=!1;var it=null;if(De["font-scale"]&&(it=I.parse(De["font-scale"],1,oa),!it))return null;var yt=null;if(De["text-font"]&&(yt=I.parse(De["text-font"],1,Jl(qo)),!yt))return null;var Lt=null;if(De["text-color"]&&(Lt=I.parse(De["text-color"],1,Ol),!Lt))return null;var sr=$[$.length-1];sr.scale=it,sr.font=yt,sr.textColor=Lt}else{var gr=I.parse(_[he],1,Do);if(!gr)return null;var hr=gr.type.kind;if(hr!=="string"&&hr!=="value"&&hr!=="null"&&hr!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");oe=!0,$.push({content:gr,scale:null,font:null,textColor:null})}}return new Gu($)},Gu.prototype.evaluate=function(_){var I=function(U){var $=U.content.evaluate(_);return Es($)===Zc?new Gf("",$,null,null,null):new Gf(Hs($),null,U.scale?U.scale.evaluate(_):null,U.font?U.font.evaluate(_).join(","):null,U.textColor?U.textColor.evaluate(_):null)};return new $l(this.sections.map(I))},Gu.prototype.eachChild=function(_){for(var I=0,U=this.sections;I-1),U},Os.prototype.eachChild=function(_){_(this.input)},Os.prototype.outputDefined=function(){return!1},Os.prototype.serialize=function(){return["image",this.input.serialize()]};var od={"to-boolean":Oo,"to-color":Ol,"to-number":oa,"to-string":qo},Po=function(_,I){this.type=_,this.args=I};Po.parse=function(_,I){if(_.length<2)return I.error("Expected at least one argument.");var U=_[0];if((U==="to-boolean"||U==="to-string")&&_.length!==2)return I.error("Expected one argument.");for(var $=od[U],oe=[],he=1;he<_.length;he++){var De=I.parse(_[he],he,Do);if(!De)return null;oe.push(De)}return new Po($,oe)},Po.prototype.evaluate=function(_){if(this.type.kind==="boolean")return!!this.args[0].evaluate(_);if(this.type.kind==="color"){for(var I,U,$=0,oe=this.args;$4?U="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":U=lc(I[0],I[1],I[2],I[3]),!U))return new cs(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new ps(U||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var it=null,yt=0,Lt=this.args;yt=_[2]||y[1]<=_[1]||y[3]>=_[3])}function Ah(y,_){var I=Ic(y[0]),U=yf(y[1]),$=Math.pow(2,_.z);return[Math.round(I*$*bl),Math.round(U*$*bl)]}function Qf(y,_,I){var U=y[0]-_[0],$=y[1]-_[1],oe=y[0]-I[0],he=y[1]-I[1];return U*he-oe*$===0&&U*oe<=0&&$*he<=0}function _f(y,_,I){return _[1]>y[1]!=I[1]>y[1]&&y[0]<(I[0]-_[0])*(y[1]-_[1])/(I[1]-_[1])+_[0]}function Yc(y,_){for(var I=!1,U=0,$=_.length;U<$;U++)for(var oe=_[U],he=0,De=oe.length;he0&&sr<0||Lt<0&&sr>0}function jf(y,_,I,U){var $=[_[0]-y[0],_[1]-y[1]],oe=[U[0]-I[0],U[1]-I[1]];return th(oe,$)===0?!1:!!(ju(y,_,I,U)&&ju(I,U,y,_))}function cc(y,_,I){for(var U=0,$=I;U<$.length;U+=1)for(var oe=$[U],he=0;heI[2]){var $=U*.5,oe=y[0]-I[0]>$?-U:I[0]-y[0]>$?U:0;oe===0&&(oe=y[0]-I[2]>$?-U:I[2]-y[0]>$?U:0),y[0]+=oe}Hf(_,y)}function Wf(y){y[0]=y[1]=1/0,y[2]=y[3]=-1/0}function Wh(y,_,I,U){for(var $=Math.pow(2,U.z)*bl,oe=[U.x*bl,U.y*bl],he=[],De=0,it=y;De=0)return!1;var I=!0;return y.eachChild(function(U){I&&!Eu(U,_)&&(I=!1)}),I}var Dc=function(_,I){this.type=I.type,this.name=_,this.boundExpression=I};Dc.parse=function(_,I){if(_.length!==2||typeof _[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var U=_[1];return I.scope.has(U)?new Dc(U,I.scope.get(U)):I.error('Unknown variable "'+U+'". Make sure "'+U+'" has been bound in an enclosing "let" expression before using it.',1)},Dc.prototype.evaluate=function(_){return this.boundExpression.evaluate(_)},Dc.prototype.eachChild=function(){},Dc.prototype.outputDefined=function(){return!1},Dc.prototype.serialize=function(){return["var",this.name]};var ks=function(_,I,U,$,oe){I===void 0&&(I=[]),$===void 0&&($=new Hl),oe===void 0&&(oe=[]),this.registry=_,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=oe,this.expectedType=U};ks.prototype.parse=function(_,I,U,$,oe){return oe===void 0&&(oe={}),I?this.concat(I,U,$)._parse(_,oe):this._parse(_,oe)},ks.prototype._parse=function(_,I){(_===null||typeof _=="string"||typeof _=="boolean"||typeof _=="number")&&(_=["literal",_]);function U(Lt,sr,gr){return gr==="assert"?new xl(sr,[Lt]):gr==="coerce"?new Po(sr,[Lt]):Lt}if(Array.isArray(_)){if(_.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=_[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var oe=this.registry[$];if(oe){var he=oe.parse(_,this);if(!he)return null;if(this.expectedType){var De=this.expectedType,it=he.type;if((De.kind==="string"||De.kind==="number"||De.kind==="boolean"||De.kind==="object"||De.kind==="array")&&it.kind==="value")he=U(he,De,I.typeAnnotation||"assert");else if((De.kind==="color"||De.kind==="formatted"||De.kind==="resolvedImage")&&(it.kind==="value"||it.kind==="string"))he=U(he,De,I.typeAnnotation||"coerce");else if(this.checkSubtype(De,it))return null}if(!(he instanceof Go)&&he.type.kind!=="resolvedImage"&&bc(he)){var yt=new Ko;try{he=new Go(he.type,he.evaluate(yt))}catch(Lt){return this.error(Lt.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof _=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof _=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof _+" instead.")},ks.prototype.concat=function(_,I,U){var $=typeof _=="number"?this.path.concat(_):this.path,oe=U?this.scope.concat(U):this.scope;return new ks(this.registry,$,I||null,oe,this.errors)},ks.prototype.error=function(_){for(var I=[],U=arguments.length-1;U-- >0;)I[U]=arguments[U+1];var $=""+this.key+I.map(function(oe){return"["+oe+"]"}).join("");this.errors.push(new Ns($,_))},ks.prototype.checkSubtype=function(_,I){var U=oc(_,I);return U&&this.error(U),U};function bc(y){if(y instanceof Dc)return bc(y.boundExpression);if(y instanceof Pa&&y.name==="error")return!1;if(y instanceof Hu)return!1;if(y instanceof Mu)return!1;var _=y instanceof Po||y instanceof xl,I=!0;return y.eachChild(function(U){_?I=I&&bc(U):I=I&&U instanceof Go}),I?ih(y)&&Eu(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function hu(y,_){for(var I=y.length-1,U=0,$=I,oe=0,he,De;U<=$;)if(oe=Math.floor((U+$)/2),he=y[oe],De=y[oe+1],he<=_){if(oe===I||__)$=oe-1;else throw new ps("Input is not a number.");return 0}var _u=function(_,I,U){this.type=_,this.input=I,this.labels=[],this.outputs=[];for(var $=0,oe=U;$=De)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',yt);var sr=I.parse(it,Lt,oe);if(!sr)return null;oe=oe||sr.type,$.push([De,sr])}return new _u(oe,U,$)},_u.prototype.evaluate=function(_){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(_);var $=this.input.evaluate(_);if($<=I[0])return U[0].evaluate(_);var oe=I.length;if($>=I[oe-1])return U[oe-1].evaluate(_);var he=hu(I,$);return U[he].evaluate(_)},_u.prototype.eachChild=function(_){_(this.input);for(var I=0,U=this.outputs;I0&&_.push(this.labels[I]),_.push(this.outputs[I].serialize());return _};function nl(y,_,I){return y*(1-I)+_*I}function nh(y,_,I){return new cs(nl(y.r,_.r,I),nl(y.g,_.g,I),nl(y.b,_.b,I),nl(y.a,_.a,I))}function Mh(y,_,I){return y.map(function(U,$){return nl(U,_[$],I)})}var zu=Object.freeze({__proto__:null,number:nl,color:nh,array:Mh}),Fc=.95047,wc=1,bd=1.08883,xf=4/29,Pf=6/29,qu=3*Pf*Pf,bf=Pf*Pf*Pf,jl=Math.PI/180,uf=180/Math.PI;function Xh(y){return y>bf?Math.pow(y,1/3):y/qu+xf}function If(y){return y>Pf?y*y*y:qu*(y-xf)}function Cs(y){return 255*(y<=.0031308?12.92*y:1.055*Math.pow(y,1/2.4)-.055)}function du(y){return y/=255,y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function ku(y){var _=du(y.r),I=du(y.g),U=du(y.b),$=Xh((.4124564*_+.3575761*I+.1804375*U)/Fc),oe=Xh((.2126729*_+.7151522*I+.072175*U)/wc),he=Xh((.0193339*_+.119192*I+.9503041*U)/bd);return{l:116*oe-16,a:500*($-oe),b:200*(oe-he),alpha:y.a}}function Xf(y){var _=(y.l+16)/116,I=isNaN(y.a)?_:_+y.a/500,U=isNaN(y.b)?_:_-y.b/200;return _=wc*If(_),I=Fc*If(I),U=bd*If(U),new cs(Cs(3.2404542*I-1.5371385*_-.4985314*U),Cs(-.969266*I+1.8760108*_+.041556*U),Cs(.0556434*I-.2040259*_+1.0572252*U),y.alpha)}function Us(y,_,I){return{l:nl(y.l,_.l,I),a:nl(y.a,_.a,I),b:nl(y.b,_.b,I),alpha:nl(y.alpha,_.alpha,I)}}function wf(y){var _=ku(y),I=_.l,U=_.a,$=_.b,oe=Math.atan2($,U)*uf;return{h:oe<0?oe+360:oe,c:Math.sqrt(U*U+$*$),l:I,alpha:y.a}}function zc(y){var _=y.h*jl,I=y.c,U=y.l;return Xf({l:U,a:Math.cos(_)*I,b:Math.sin(_)*I,alpha:y.alpha})}function Wu(y,_,I){var U=_-y;return y+I*(U>180||U<-180?U-360*Math.round(U/360):U)}function Rf(y,_,I){return{h:Wu(y.h,_.h,I),c:nl(y.c,_.c,I),l:nl(y.l,_.l,I),alpha:nl(y.alpha,_.alpha,I)}}var Xu={forward:ku,reverse:Xf,interpolate:Us},cf={forward:wf,reverse:zc,interpolate:Rf},Zf=Object.freeze({__proto__:null,lab:Xu,hcl:cf}),Wl=function(_,I,U,$,oe){this.type=_,this.operator=I,this.interpolation=U,this.input=$,this.labels=[],this.outputs=[];for(var he=0,De=oe;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:it}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(_.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if((_.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(oe=I.parse(oe,2,oa),!oe)return null;var yt=[],Lt=null;U==="interpolate-hcl"||U==="interpolate-lab"?Lt=Ol:I.expectedType&&I.expectedType.kind!=="value"&&(Lt=I.expectedType);for(var sr=0;sr=gr)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Rr);var Hi=I.parse(hr,ni,Lt);if(!Hi)return null;Lt=Lt||Hi.type,yt.push([gr,Hi])}return Lt.kind!=="number"&&Lt.kind!=="color"&&!(Lt.kind==="array"&&Lt.itemType.kind==="number"&&typeof Lt.N=="number")?I.error("Type "+qs(Lt)+" is not interpolatable."):new Wl(Lt,U,$,oe,yt)},Wl.prototype.evaluate=function(_){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(_);var $=this.input.evaluate(_);if($<=I[0])return U[0].evaluate(_);var oe=I.length;if($>=I[oe-1])return U[oe-1].evaluate(_);var he=hu(I,$),De=I[he],it=I[he+1],yt=Wl.interpolationFactor(this.interpolation,$,De,it),Lt=U[he].evaluate(_),sr=U[he+1].evaluate(_);return this.operator==="interpolate"?zu[this.type.kind.toLowerCase()](Lt,sr,yt):this.operator==="interpolate-hcl"?cf.reverse(cf.interpolate(cf.forward(Lt),cf.forward(sr),yt)):Xu.reverse(Xu.interpolate(Xu.forward(Lt),Xu.forward(sr),yt))},Wl.prototype.eachChild=function(_){_(this.input);for(var I=0,U=this.outputs;I=U.length)throw new ps("Array index out of bounds: "+I+" > "+(U.length-1)+".");if(I!==Math.floor(I))throw new ps("Array index must be an integer, but found "+I+" instead.");return U[I]},Tc.prototype.eachChild=function(_){_(this.index),_(this.input)},Tc.prototype.outputDefined=function(){return!1},Tc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var wl=function(_,I){this.type=Oo,this.needle=_,this.haystack=I};wl.parse=function(_,I){if(_.length!==3)return I.error("Expected 2 arguments, but found "+(_.length-1)+" instead.");var U=I.parse(_[1],1,Do),$=I.parse(_[2],2,Do);return!U||!$?null:Cf(U.type,[Oo,qo,oa,ac,Do])?new wl(U,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead")},wl.prototype.evaluate=function(_){var I=this.needle.evaluate(_),U=this.haystack.evaluate(_);if(!U)return!1;if(!sc(I,["boolean","string","number","null"]))throw new ps("Expected first argument to be of type boolean, string, number or null, but found "+qs(Es(I))+" instead.");if(!sc(U,["string","array"]))throw new ps("Expected second argument to be of type array or string, but found "+qs(Es(U))+" instead.");return U.indexOf(I)>=0},wl.prototype.eachChild=function(_){_(this.needle),_(this.haystack)},wl.prototype.outputDefined=function(){return!0},wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var vu=function(_,I,U){this.type=oa,this.needle=_,this.haystack=I,this.fromIndex=U};vu.parse=function(_,I){if(_.length<=2||_.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var U=I.parse(_[1],1,Do),$=I.parse(_[2],2,Do);if(!U||!$)return null;if(!Cf(U.type,[Oo,qo,oa,ac,Do]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead");if(_.length===4){var oe=I.parse(_[3],3,oa);return oe?new vu(U,$,oe):null}else return new vu(U,$)},vu.prototype.evaluate=function(_){var I=this.needle.evaluate(_),U=this.haystack.evaluate(_);if(!sc(I,["boolean","string","number","null"]))throw new ps("Expected first argument to be of type boolean, string, number or null, but found "+qs(Es(I))+" instead.");if(!sc(U,["string","array"]))throw new ps("Expected second argument to be of type array or string, but found "+qs(Es(U))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(_);return U.indexOf(I,$)}return U.indexOf(I)},vu.prototype.eachChild=function(_){_(this.needle),_(this.haystack),this.fromIndex&&_(this.fromIndex)},vu.prototype.outputDefined=function(){return!1},vu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var _=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),_]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Oc=function(_,I,U,$,oe,he){this.inputType=_,this.type=I,this.input=U,this.cases=$,this.outputs=oe,this.otherwise=he};Oc.parse=function(_,I){if(_.length<5)return I.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if(_.length%2!==1)return I.error("Expected an even number of arguments.");var U,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var oe={},he=[],De=2;De<_.length-1;De+=2){var it=_[De],yt=_[De+1];Array.isArray(it)||(it=[it]);var Lt=I.concat(De);if(it.length===0)return Lt.error("Expected at least one branch label.");for(var sr=0,gr=it;srNumber.MAX_SAFE_INTEGER)return Lt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof hr=="number"&&Math.floor(hr)!==hr)return Lt.error("Numeric branch labels must be integer values.");if(!U)U=Es(hr);else if(Lt.checkSubtype(U,Es(hr)))return null;if(typeof oe[String(hr)]!="undefined")return Lt.error("Branch labels must be unique.");oe[String(hr)]=he.length}var Rr=I.parse(yt,De,$);if(!Rr)return null;$=$||Rr.type,he.push(Rr)}var ni=I.parse(_[1],1,Do);if(!ni)return null;var Hi=I.parse(_[_.length-1],_.length-1,$);return!Hi||ni.type.kind!=="value"&&I.concat(1).checkSubtype(U,ni.type)?null:new Oc(U,$,ni,oe,he,Hi)},Oc.prototype.evaluate=function(_){var I=this.input.evaluate(_),U=Es(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return U.evaluate(_)},Oc.prototype.eachChild=function(_){_(this.input),this.outputs.forEach(_),_(this.otherwise)},Oc.prototype.outputDefined=function(){return this.outputs.every(function(_){return _.outputDefined()})&&this.otherwise.outputDefined()},Oc.prototype.serialize=function(){for(var _=this,I=["match",this.input.serialize()],U=Object.keys(this.cases).sort(),$=[],oe={},he=0,De=U;he=5)return I.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var U=I.parse(_[1],1,Do),$=I.parse(_[2],2,oa);if(!U||!$)return null;if(!Cf(U.type,[Jl(Do),qo,Do]))return I.error("Expected first argument to be of type array or string, but found "+qs(U.type)+" instead");if(_.length===4){var oe=I.parse(_[3],3,oa);return oe?new fc(U.type,U,$,oe):null}else return new fc(U.type,U,$)},fc.prototype.evaluate=function(_){var I=this.input.evaluate(_),U=this.beginIndex.evaluate(_);if(!sc(I,["string","array"]))throw new ps("Expected first argument to be of type array or string, but found "+qs(Es(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(_);return I.slice(U,$)}return I.slice(U)},fc.prototype.eachChild=function(_){_(this.input),_(this.beginIndex),this.endIndex&&_(this.endIndex)},fc.prototype.outputDefined=function(){return!1},fc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var _=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),_]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bc(y,_){return y==="=="||y==="!="?_.kind==="boolean"||_.kind==="string"||_.kind==="number"||_.kind==="null"||_.kind==="value":_.kind==="string"||_.kind==="number"||_.kind==="value"}function kt(y,_,I){return _===I}function Zt(y,_,I){return _!==I}function Er(y,_,I){return _I}function Kr(y,_,I){return _<=I}function Mi(y,_,I){return _>=I}function Wi(y,_,I,U){return U.compare(_,I)===0}function dn(y,_,I,U){return!Wi(y,_,I,U)}function wn(y,_,I,U){return U.compare(_,I)<0}function On(y,_,I,U){return U.compare(_,I)>0}function Yi(y,_,I,U){return U.compare(_,I)<=0}function $i(y,_,I,U){return U.compare(_,I)>=0}function an(y,_,I){var U=y!=="=="&&y!=="!=";return function(){function $(oe,he,De){this.type=Oo,this.lhs=oe,this.rhs=he,this.collator=De,this.hasUntypedArgument=oe.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,De){if(he.length!==3&&he.length!==4)return De.error("Expected two or three arguments.");var it=he[0],yt=De.parse(he[1],1,Do);if(!yt)return null;if(!Bc(it,yt.type))return De.concat(1).error('"'+it+`" comparisons are not supported for type '`+qs(yt.type)+"'.");var Lt=De.parse(he[2],2,Do);if(!Lt)return null;if(!Bc(it,Lt.type))return De.concat(2).error('"'+it+`" comparisons are not supported for type '`+qs(Lt.type)+"'.");if(yt.type.kind!==Lt.type.kind&&yt.type.kind!=="value"&&Lt.type.kind!=="value")return De.error("Cannot compare types '"+qs(yt.type)+"' and '"+qs(Lt.type)+"'.");U&&(yt.type.kind==="value"&&Lt.type.kind!=="value"?yt=new xl(Lt.type,[yt]):yt.type.kind!=="value"&&Lt.type.kind==="value"&&(Lt=new xl(yt.type,[Lt])));var sr=null;if(he.length===4){if(yt.type.kind!=="string"&&Lt.type.kind!=="string"&&yt.type.kind!=="value"&&Lt.type.kind!=="value")return De.error("Cannot use collator to compare non-string types.");if(sr=De.parse(he[3],3,Vf),!sr)return null}return new $(yt,Lt,sr)},$.prototype.evaluate=function(he){var De=this.lhs.evaluate(he),it=this.rhs.evaluate(he);if(U&&this.hasUntypedArgument){var yt=Es(De),Lt=Es(it);if(yt.kind!==Lt.kind||!(yt.kind==="string"||yt.kind==="number"))throw new ps('Expected arguments for "'+y+'" to be (string, string) or (number, number), but found ('+yt.kind+", "+Lt.kind+") instead.")}if(this.collator&&!U&&this.hasUntypedArgument){var sr=Es(De),gr=Es(it);if(sr.kind!=="string"||gr.kind!=="string")return _(he,De,it)}return this.collator?I(he,De,it,this.collator.evaluate(he)):_(he,De,it)},$.prototype.eachChild=function(he){he(this.lhs),he(this.rhs),this.collator&&he(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var he=[y];return this.eachChild(function(De){he.push(De.serialize())}),he},$}()}var Fi=an("==",kt,Wi),ta=an("!=",Zt,dn),Ca=an("<",Er,wn),Ra=an(">",xr,On),La=an("<=",Kr,Yi),Ua=an(">=",Mi,$i),Zn=function(_,I,U,$,oe){this.type=qo,this.number=_,this.locale=I,this.currency=U,this.minFractionDigits=$,this.maxFractionDigits=oe};Zn.parse=function(_,I){if(_.length!==3)return I.error("Expected two arguments.");var U=I.parse(_[1],1,oa);if(!U)return null;var $=_[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var oe=null;if($.locale&&(oe=I.parse($.locale,1,qo),!oe))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,qo),!he))return null;var De=null;if($["min-fraction-digits"]&&(De=I.parse($["min-fraction-digits"],1,oa),!De))return null;var it=null;return $["max-fraction-digits"]&&(it=I.parse($["max-fraction-digits"],1,oa),!it)?null:new Zn(U,oe,he,De,it)},Zn.prototype.evaluate=function(_){return new Intl.NumberFormat(this.locale?this.locale.evaluate(_):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(_):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(_):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(_):void 0}).format(this.number.evaluate(_))},Zn.prototype.eachChild=function(_){_(this.number),this.locale&&_(this.locale),this.currency&&_(this.currency),this.minFractionDigits&&_(this.minFractionDigits),this.maxFractionDigits&&_(this.maxFractionDigits)},Zn.prototype.outputDefined=function(){return!1},Zn.prototype.serialize=function(){var _={};return this.locale&&(_.locale=this.locale.serialize()),this.currency&&(_.currency=this.currency.serialize()),this.minFractionDigits&&(_["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(_["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),_]};var Dn=function(_){this.type=oa,this.input=_};Dn.parse=function(_,I){if(_.length!==2)return I.error("Expected 1 argument, but found "+(_.length-1)+" instead.");var U=I.parse(_[1],1);return U?U.type.kind!=="array"&&U.type.kind!=="string"&&U.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+qs(U.type)+" instead."):new Dn(U):null},Dn.prototype.evaluate=function(_){var I=this.input.evaluate(_);if(typeof I=="string")return I.length;if(Array.isArray(I))return I.length;throw new ps("Expected value to be of type string or array, but found "+qs(Es(I))+" instead.")},Dn.prototype.eachChild=function(_){_(this.input)},Dn.prototype.outputDefined=function(){return!1},Dn.prototype.serialize=function(){var _=["length"];return this.eachChild(function(I){_.push(I.serialize())}),_};var Ka={"==":Fi,"!=":ta,">":Ra,"<":Ca,">=":Ua,"<=":La,array:xl,at:Tc,boolean:xl,case:ff,coalesce:Zu,collator:Hu,format:Gu,image:Os,in:wl,"index-of":vu,interpolate:Wl,"interpolate-hcl":Wl,"interpolate-lab":Wl,length:Dn,let:qc,literal:Go,match:Oc,number:xl,"number-format":Zn,object:xl,slice:fc,step:_u,string:xl,"to-boolean":Po,"to-color":Po,"to-number":Po,"to-string":Po,var:Dc,within:Mu};function bo(y,_){var I=_[0],U=_[1],$=_[2],oe=_[3];I=I.evaluate(y),U=U.evaluate(y),$=$.evaluate(y);var he=oe?oe.evaluate(y):1,De=lc(I,U,$,he);if(De)throw new ps(De);return new cs(I/255*he,U/255*he,$/255*he,he)}function Zo(y,_){return y in _}function Ss(y,_){var I=_[y];return typeof I=="undefined"?null:I}function as(y,_,I,U){for(;I<=U;){var $=I+U>>1;if(_[$]===y)return!0;_[$]>y?U=$-1:I=$+1}return!1}function ws(y){return{type:y}}Pa.register(Ka,{error:[nf,[qo],function(y,_){var I=_[0];throw new ps(I.evaluate(y))}],typeof:[qo,[Do],function(y,_){var I=_[0];return qs(Es(I.evaluate(y)))}],"to-rgba":[Jl(oa,4),[Ol],function(y,_){var I=_[0];return I.evaluate(y).toArray()}],rgb:[Ol,[oa,oa,oa],bo],rgba:[Ol,[oa,oa,oa,oa],bo],has:{type:Oo,overloads:[[[qo],function(y,_){var I=_[0];return Zo(I.evaluate(y),y.properties())}],[[qo,Pc],function(y,_){var I=_[0],U=_[1];return Zo(I.evaluate(y),U.evaluate(y))}]]},get:{type:Do,overloads:[[[qo],function(y,_){var I=_[0];return Ss(I.evaluate(y),y.properties())}],[[qo,Pc],function(y,_){var I=_[0],U=_[1];return Ss(I.evaluate(y),U.evaluate(y))}]]},"feature-state":[Do,[qo],function(y,_){var I=_[0];return Ss(I.evaluate(y),y.featureState||{})}],properties:[Pc,[],function(y){return y.properties()}],"geometry-type":[qo,[],function(y){return y.geometryType()}],id:[Do,[],function(y){return y.id()}],zoom:[oa,[],function(y){return y.globals.zoom}],"heatmap-density":[oa,[],function(y){return y.globals.heatmapDensity||0}],"line-progress":[oa,[],function(y){return y.globals.lineProgress||0}],accumulated:[Do,[],function(y){return y.globals.accumulated===void 0?null:y.globals.accumulated}],"+":[oa,ws(oa),function(y,_){for(var I=0,U=0,$=_;U<$.length;U+=1){var oe=$[U];I+=oe.evaluate(y)}return I}],"*":[oa,ws(oa),function(y,_){for(var I=1,U=0,$=_;U<$.length;U+=1){var oe=$[U];I*=oe.evaluate(y)}return I}],"-":{type:oa,overloads:[[[oa,oa],function(y,_){var I=_[0],U=_[1];return I.evaluate(y)-U.evaluate(y)}],[[oa],function(y,_){var I=_[0];return-I.evaluate(y)}]]},"/":[oa,[oa,oa],function(y,_){var I=_[0],U=_[1];return I.evaluate(y)/U.evaluate(y)}],"%":[oa,[oa,oa],function(y,_){var I=_[0],U=_[1];return I.evaluate(y)%U.evaluate(y)}],ln2:[oa,[],function(){return Math.LN2}],pi:[oa,[],function(){return Math.PI}],e:[oa,[],function(){return Math.E}],"^":[oa,[oa,oa],function(y,_){var I=_[0],U=_[1];return Math.pow(I.evaluate(y),U.evaluate(y))}],sqrt:[oa,[oa],function(y,_){var I=_[0];return Math.sqrt(I.evaluate(y))}],log10:[oa,[oa],function(y,_){var I=_[0];return Math.log(I.evaluate(y))/Math.LN10}],ln:[oa,[oa],function(y,_){var I=_[0];return Math.log(I.evaluate(y))}],log2:[oa,[oa],function(y,_){var I=_[0];return Math.log(I.evaluate(y))/Math.LN2}],sin:[oa,[oa],function(y,_){var I=_[0];return Math.sin(I.evaluate(y))}],cos:[oa,[oa],function(y,_){var I=_[0];return Math.cos(I.evaluate(y))}],tan:[oa,[oa],function(y,_){var I=_[0];return Math.tan(I.evaluate(y))}],asin:[oa,[oa],function(y,_){var I=_[0];return Math.asin(I.evaluate(y))}],acos:[oa,[oa],function(y,_){var I=_[0];return Math.acos(I.evaluate(y))}],atan:[oa,[oa],function(y,_){var I=_[0];return Math.atan(I.evaluate(y))}],min:[oa,ws(oa),function(y,_){return Math.min.apply(Math,_.map(function(I){return I.evaluate(y)}))}],max:[oa,ws(oa),function(y,_){return Math.max.apply(Math,_.map(function(I){return I.evaluate(y)}))}],abs:[oa,[oa],function(y,_){var I=_[0];return Math.abs(I.evaluate(y))}],round:[oa,[oa],function(y,_){var I=_[0],U=I.evaluate(y);return U<0?-Math.round(-U):Math.round(U)}],floor:[oa,[oa],function(y,_){var I=_[0];return Math.floor(I.evaluate(y))}],ceil:[oa,[oa],function(y,_){var I=_[0];return Math.ceil(I.evaluate(y))}],"filter-==":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1];return y.properties()[I.value]===U.value}],"filter-id-==":[Oo,[Do],function(y,_){var I=_[0];return y.id()===I.value}],"filter-type-==":[Oo,[qo],function(y,_){var I=_[0];return y.geometryType()===I.value}],"filter-<":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1],$=y.properties()[I.value],oe=U.value;return typeof $==typeof oe&&$":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1],$=y.properties()[I.value],oe=U.value;return typeof $==typeof oe&&$>oe}],"filter-id->":[Oo,[Do],function(y,_){var I=_[0],U=y.id(),$=I.value;return typeof U==typeof $&&U>$}],"filter-<=":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1],$=y.properties()[I.value],oe=U.value;return typeof $==typeof oe&&$<=oe}],"filter-id-<=":[Oo,[Do],function(y,_){var I=_[0],U=y.id(),$=I.value;return typeof U==typeof $&&U<=$}],"filter->=":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1],$=y.properties()[I.value],oe=U.value;return typeof $==typeof oe&&$>=oe}],"filter-id->=":[Oo,[Do],function(y,_){var I=_[0],U=y.id(),$=I.value;return typeof U==typeof $&&U>=$}],"filter-has":[Oo,[Do],function(y,_){var I=_[0];return I.value in y.properties()}],"filter-has-id":[Oo,[],function(y){return y.id()!==null&&y.id()!==void 0}],"filter-type-in":[Oo,[Jl(qo)],function(y,_){var I=_[0];return I.value.indexOf(y.geometryType())>=0}],"filter-id-in":[Oo,[Jl(Do)],function(y,_){var I=_[0];return I.value.indexOf(y.id())>=0}],"filter-in-small":[Oo,[qo,Jl(Do)],function(y,_){var I=_[0],U=_[1];return U.value.indexOf(y.properties()[I.value])>=0}],"filter-in-large":[Oo,[qo,Jl(Do)],function(y,_){var I=_[0],U=_[1];return as(y.properties()[I.value],U.value,0,U.value.length-1)}],all:{type:Oo,overloads:[[[Oo,Oo],function(y,_){var I=_[0],U=_[1];return I.evaluate(y)&&U.evaluate(y)}],[ws(Oo),function(y,_){for(var I=0,U=_;I-1}function va(y){return!!y.expression&&y.expression.interpolated}function no(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":y===null?"null":typeof y}function ys(y){return typeof y=="object"&&y!==null&&!Array.isArray(y)}function rs(y){return y}function Ql(y,_){var I=_.type==="color",U=y.stops&&typeof y.stops[0][0]=="object",$=U||y.property!==void 0,oe=U||!$,he=y.type||(va(_)?"exponential":"interval");if(I&&(y=ql({},y),y.stops&&(y.stops=y.stops.map(function(ha){return[ha[0],cs.parse(ha[1])]})),y.default?y.default=cs.parse(y.default):y.default=cs.parse(_.default)),y.colorSpace&&y.colorSpace!=="rgb"&&!Zf[y.colorSpace])throw new Error("Unknown color space: "+y.colorSpace);var De,it,yt;if(he==="exponential")De=pu;else if(he==="interval")De=Nc;else if(he==="categorical"){De=Yu,it=Object.create(null);for(var Lt=0,sr=y.stops;Lt=y.stops[U-1][0])return y.stops[U-1][1];var $=hu(y.stops.map(function(oe){return oe[0]}),I);return y.stops[$][1]}function pu(y,_,I){var U=y.base!==void 0?y.base:1;if(no(I)!=="number")return Cu(y.default,_.default);var $=y.stops.length;if($===1||I<=y.stops[0][0])return y.stops[0][1];if(I>=y.stops[$-1][0])return y.stops[$-1][1];var oe=hu(y.stops.map(function(sr){return sr[0]}),I),he=xu(I,U,y.stops[oe][0],y.stops[oe+1][0]),De=y.stops[oe][1],it=y.stops[oe+1][1],yt=zu[_.type]||rs;if(y.colorSpace&&y.colorSpace!=="rgb"){var Lt=Zf[y.colorSpace];yt=function(sr,gr){return Lt.reverse(Lt.interpolate(Lt.forward(sr),Lt.forward(gr),he))}}return typeof De.evaluate=="function"?{evaluate:function(){for(var gr=[],hr=arguments.length;hr--;)gr[hr]=arguments[hr];var Rr=De.evaluate.apply(void 0,gr),ni=it.evaluate.apply(void 0,gr);if(!(Rr===void 0||ni===void 0))return yt(Rr,ni,he)}}:yt(De,it,he)}function Uc(y,_,I){return _.type==="color"?I=cs.parse(I):_.type==="formatted"?I=$l.fromString(I.toString()):_.type==="resolvedImage"?I=fl.fromString(I.toString()):no(I)!==_.type&&(_.type!=="enum"||!_.values[I])&&(I=void 0),Cu(I,y.default,_.default)}function xu(y,_,I,U){var $=U-I,oe=y-I;return $===0?0:_===1?oe/$:(Math.pow(_,oe)-1)/(Math.pow(_,$)-1)}var Ac=function(_,I){this.expression=_,this._warningHistory={},this._evaluator=new Ko,this._defaultValue=I?ee(I):null,this._enumValues=I&&I.type==="enum"?I.values:null};Ac.prototype.evaluateWithoutErrorHandling=function(_,I,U,$,oe,he){return this._evaluator.globals=_,this._evaluator.feature=I,this._evaluator.featureState=U,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Ac.prototype.evaluate=function(_,I,U,$,oe,he){this._evaluator.globals=_,this._evaluator.feature=I||null,this._evaluator.featureState=U||null,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=he||null;try{var De=this.expression.evaluate(this._evaluator);if(De==null||typeof De=="number"&&De!==De)return this._defaultValue;if(this._enumValues&&!(De in this._enumValues))throw new ps("Expected value to be one of "+Object.keys(this._enumValues).map(function(it){return JSON.stringify(it)}).join(", ")+", but found "+JSON.stringify(De)+" instead.");return De}catch(it){return this._warningHistory[it.message]||(this._warningHistory[it.message]=!0,typeof console!="undefined"&&console.warn(it.message)),this._defaultValue}};function Va(y){return Array.isArray(y)&&y.length>0&&typeof y[0]=="string"&&y[0]in Ka}function oo(y,_){var I=new ks(Ka,[],_?Q(_):void 0),U=I.parse(y,void 0,void 0,void 0,_&&_.type==="string"?{typeAnnotation:"coerce"}:void 0);return U?Ho(new Ac(U,_)):ml(I.errors)}var Vc=function(_,I){this.kind=_,this._styleExpression=I,this.isStateDependent=_!=="constant"&&!js(I.expression)};Vc.prototype.evaluateWithoutErrorHandling=function(_,I,U,$,oe,he){return this._styleExpression.evaluateWithoutErrorHandling(_,I,U,$,oe,he)},Vc.prototype.evaluate=function(_,I,U,$,oe,he){return this._styleExpression.evaluate(_,I,U,$,oe,he)};var hc=function(_,I,U,$){this.kind=_,this.zoomStops=U,this._styleExpression=I,this.isStateDependent=_!=="camera"&&!js(I.expression),this.interpolationType=$};hc.prototype.evaluateWithoutErrorHandling=function(_,I,U,$,oe,he){return this._styleExpression.evaluateWithoutErrorHandling(_,I,U,$,oe,he)},hc.prototype.evaluate=function(_,I,U,$,oe,he){return this._styleExpression.evaluate(_,I,U,$,oe,he)},hc.prototype.interpolationFactor=function(_,I,U){return this.interpolationType?Wl.interpolationFactor(this.interpolationType,_,I,U):0};function Ku(y,_){if(y=oo(y,_),y.result==="error")return y;var I=y.value.expression,U=ih(I);if(!U&&!Ws(_))return ml([new Ns("","data expressions not supported")]);var $=Eu(I,["zoom"]);if(!$&&!Ls(_))return ml([new Ns("","zoom expressions not supported")]);var oe=B(I);if(!oe&&!$)return ml([new Ns("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(oe instanceof Ns)return ml([oe]);if(oe instanceof Wl&&!va(_))return ml([new Ns("",'"interpolate" expressions cannot be used with this property')]);if(!oe)return Ho(U?new Vc("constant",y.value):new Vc("source",y.value));var he=oe instanceof Wl?oe.interpolation:void 0;return Ho(U?new hc("camera",y.value,oe.labels,he):new hc("composite",y.value,oe.labels,he))}var ue=function(_,I){this._parameters=_,this._specification=I,ql(this,Ql(this._parameters,this._specification))};ue.deserialize=function(_){return new ue(_._parameters,_._specification)},ue.serialize=function(_){return{_parameters:_._parameters,_specification:_._specification}};function w(y,_){if(ys(y))return new ue(y,_);if(Va(y)){var I=Ku(y,_);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var U=y;return typeof y=="string"&&_.type==="color"&&(U=cs.parse(y)),{kind:"constant",evaluate:function(){return U}}}}function B(y){var _=null;if(y instanceof qc)_=B(y.result);else if(y instanceof Zu)for(var I=0,U=y.args;IU.maximum?[new _a(_,I,I+" is greater than the maximum value "+U.maximum)]:[]}function ut(y){var _=y.valueSpec,I=xo(y.value.type),U,$={},oe,he,De=I!=="categorical"&&y.value.property===void 0,it=!De,yt=no(y.value.stops)==="array"&&no(y.value.stops[0])==="array"&&no(y.value.stops[0][0])==="object",Lt=le({key:y.key,value:y.value,valueSpec:y.styleSpec.function,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:sr,default:Rr}});return I==="identity"&&De&&Lt.push(new _a(y.key,y.value,'missing required property "property"')),I!=="identity"&&!y.value.stops&&Lt.push(new _a(y.key,y.value,'missing required property "stops"')),I==="exponential"&&y.valueSpec.expression&&!va(y.valueSpec)&&Lt.push(new _a(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(it&&!Ws(y.valueSpec)?Lt.push(new _a(y.key,y.value,"property functions not supported")):De&&!Ls(y.valueSpec)&&Lt.push(new _a(y.key,y.value,"zoom functions not supported"))),(I==="categorical"||yt)&&y.value.property===void 0&&Lt.push(new _a(y.key,y.value,'"property" property is required')),Lt;function sr(ni){if(I==="identity")return[new _a(ni.key,ni.value,'identity function may not have a "stops" property')];var Hi=[],wi=ni.value;return Hi=Hi.concat(Fe({key:ni.key,value:wi,valueSpec:ni.valueSpec,style:ni.style,styleSpec:ni.styleSpec,arrayElementValidator:gr})),no(wi)==="array"&&wi.length===0&&Hi.push(new _a(ni.key,wi,"array must have at least one stop")),Hi}function gr(ni){var Hi=[],wi=ni.value,bn=ni.key;if(no(wi)!=="array")return[new _a(bn,wi,"array expected, "+no(wi)+" found")];if(wi.length!==2)return[new _a(bn,wi,"array length 2 expected, length "+wi.length+" found")];if(yt){if(no(wi[0])!=="object")return[new _a(bn,wi,"object expected, "+no(wi[0])+" found")];if(wi[0].zoom===void 0)return[new _a(bn,wi,"object stop key must have zoom")];if(wi[0].value===void 0)return[new _a(bn,wi,"object stop key must have value")];if(he&&he>xo(wi[0].zoom))return[new _a(bn,wi[0].zoom,"stop zoom values must appear in ascending order")];xo(wi[0].zoom)!==he&&(he=xo(wi[0].zoom),oe=void 0,$={}),Hi=Hi.concat(le({key:bn+"[0]",value:wi[0],valueSpec:{zoom:{}},style:ni.style,styleSpec:ni.styleSpec,objectElementValidators:{zoom:Ze,value:hr}}))}else Hi=Hi.concat(hr({key:bn+"[0]",value:wi[0],valueSpec:{},style:ni.style,styleSpec:ni.styleSpec},wi));return Va(Kl(wi[1]))?Hi.concat([new _a(bn+"[1]",wi[1],"expressions are not allowed in function stops.")]):Hi.concat(Qa({key:bn+"[1]",value:wi[1],valueSpec:_,style:ni.style,styleSpec:ni.styleSpec}))}function hr(ni,Hi){var wi=no(ni.value),bn=xo(ni.value),rn=ni.value!==null?ni.value:Hi;if(!U)U=wi;else if(wi!==U)return[new _a(ni.key,rn,wi+" stop domain type must match previous stop domain type "+U)];if(wi!=="number"&&wi!=="string"&&wi!=="boolean")return[new _a(ni.key,rn,"stop domain value must be a number, string, or boolean")];if(wi!=="number"&&I!=="categorical"){var xn="number expected, "+wi+" found";return Ws(_)&&I===void 0&&(xn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new _a(ni.key,rn,xn)]}return I==="categorical"&&wi==="number"&&(!isFinite(bn)||Math.floor(bn)!==bn)?[new _a(ni.key,rn,"integer expected, found "+bn)]:I!=="categorical"&&wi==="number"&&oe!==void 0&&bn=2&&y[1]!=="$id"&&y[1]!=="$type";case"in":return y.length>=3&&(typeof y[1]!="string"||Array.isArray(y[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return y.length!==3||Array.isArray(y[1])||Array.isArray(y[2]);case"any":case"all":for(var _=0,I=y.slice(1);__?1:0}function ze(y){if(!Array.isArray(y))return!1;if(y[0]==="within")return!0;for(var _=1;_"||_==="<="||_===">="?Xe(y[1],y[2],_):_==="any"?nt(y.slice(1)):_==="all"?["all"].concat(y.slice(1).map(Qe)):_==="none"?["all"].concat(y.slice(1).map(Qe).map(nr)):_==="in"?qt(y[1],y.slice(2)):_==="!in"?nr(qt(y[1],y.slice(2))):_==="has"?Wt(y[1]):_==="!has"?nr(Wt(y[1])):_==="within"?y:!0;return I}function Xe(y,_,I){switch(y){case"$type":return["filter-type-"+I,_];case"$id":return["filter-id-"+I,_];default:return["filter-"+I,y,_]}}function nt(y){return["any"].concat(y.map(Qe))}function qt(y,_){if(_.length===0)return!1;switch(y){case"$type":return["filter-type-in",["literal",_]];case"$id":return["filter-id-in",["literal",_]];default:return _.length>200&&!_.some(function(I){return typeof I!=typeof _[0]})?["filter-in-large",y,["literal",_.sort(Ie)]]:["filter-in-small",y,["literal",_]]}}function Wt(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function nr(y){return["!",y]}function fr(y){return Cr(Kl(y.value))?Mt(ql({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):br(y)}function br(y){var _=y.value,I=y.key;if(no(_)!=="array")return[new _a(I,_,"array expected, "+no(_)+" found")];var U=y.styleSpec,$,oe=[];if(_.length<1)return[new _a(I,_,"filter array must have at least 1 element")];switch(oe=oe.concat(yr({key:I+"[0]",value:_[0],valueSpec:U.filter_operator,style:y.style,styleSpec:y.styleSpec})),xo(_[0])){case"<":case"<=":case">":case">=":_.length>=2&&xo(_[1])==="$type"&&oe.push(new _a(I,_,'"$type" cannot be use with operator "'+_[0]+'"'));case"==":case"!=":_.length!==3&&oe.push(new _a(I,_,'filter array for operator "'+_[0]+'" must have 3 elements'));case"in":case"!in":_.length>=2&&($=no(_[1]),$!=="string"&&oe.push(new _a(I+"[1]",_[1],"string expected, "+$+" found")));for(var he=2;he<_.length;he++)$=no(_[he]),xo(_[1])==="$type"?oe=oe.concat(yr({key:I+"["+he+"]",value:_[he],valueSpec:U.geometry_type,style:y.style,styleSpec:y.styleSpec})):$!=="string"&&$!=="number"&&$!=="boolean"&&oe.push(new _a(I+"["+he+"]",_[he],"string, number, or boolean expected, "+$+" found"));break;case"any":case"all":case"none":for(var De=1;De<_.length;De++)oe=oe.concat(br({key:I+"["+De+"]",value:_[De],style:y.style,styleSpec:y.styleSpec}));break;case"has":case"!has":$=no(_[1]),_.length!==2?oe.push(new _a(I,_,'filter array for "'+_[0]+'" operator must have 2 elements')):$!=="string"&&oe.push(new _a(I+"[1]",_[1],"string expected, "+$+" found"));break;case"within":$=no(_[1]),_.length!==2?oe.push(new _a(I,_,'filter array for "'+_[0]+'" operator must have 2 elements')):$!=="object"&&oe.push(new _a(I+"[1]",_[1],"object expected, "+$+" found"));break}return oe}function Fr(y,_){var I=y.key,U=y.style,$=y.styleSpec,oe=y.value,he=y.objectKey,De=$[_+"_"+y.layerType];if(!De)return[];var it=he.match(/^(.*)-transition$/);if(_==="paint"&&it&&De[it[1]]&&De[it[1]].transition)return Qa({key:I,value:oe,valueSpec:$.transition,style:U,styleSpec:$});var yt=y.valueSpec||De[he];if(!yt)return[new _a(I,oe,'unknown property "'+he+'"')];var Lt;if(no(oe)==="string"&&Ws(yt)&&!yt.tokens&&(Lt=/^{([^}]+)}$/.exec(oe)))return[new _a(I,oe,'"'+he+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(Lt[1])+" }`.")];var sr=[];return y.layerType==="symbol"&&(he==="text-field"&&U&&!U.glyphs&&sr.push(new _a(I,oe,'use of "text-field" requires a style "glyphs" property')),he==="text-font"&&ys(Kl(oe))&&xo(oe.type)==="identity"&&sr.push(new _a(I,oe,'"text-font" does not support identity functions'))),sr.concat(Qa({key:y.key,value:oe,valueSpec:yt,style:U,styleSpec:$,expressionContext:"property",propertyType:_,propertyKey:he}))}function Hr(y){return Fr(y,"paint")}function ri(y){return Fr(y,"layout")}function Ci(y){var _=[],I=y.value,U=y.key,$=y.style,oe=y.styleSpec;!I.type&&!I.ref&&_.push(new _a(U,I,'either "type" or "ref" is required'));var he=xo(I.type),De=xo(I.ref);if(I.id)for(var it=xo(I.id),yt=0;yt=Lt[hr+0]&&U>=Lt[hr+1])?(he[gr]=!0,oe.push(yt[gr])):he[gr]=!1}}},eu.prototype._forEachCell=function(y,_,I,U,$,oe,he,De){for(var it=this._convertToCellCoord(y),yt=this._convertToCellCoord(_),Lt=this._convertToCellCoord(I),sr=this._convertToCellCoord(U),gr=it;gr<=Lt;gr++)for(var hr=yt;hr<=sr;hr++){var Rr=this.d*hr+gr;if(!(De&&!De(this._convertFromCellCoord(gr),this._convertFromCellCoord(hr),this._convertFromCellCoord(gr+1),this._convertFromCellCoord(hr+1)))&&$.call(this,y,_,I,U,Rr,oe,he,De))return}},eu.prototype._convertFromCellCoord=function(y){return(y-this.padding)/this.scale},eu.prototype._convertToCellCoord=function(y){return Math.max(0,Math.min(this.d-1,Math.floor(y*this.scale)+this.padding))},eu.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var y=this.cells,_=Js+this.cells.length+1+1,I=0,U=0;U=0)){var sr=y[Lt];yt[Lt]=Al[it].shallow.indexOf(Lt)>=0?sr:Ve(sr,_)}y instanceof Error&&(yt.message=y.message)}if(yt.$name)throw new Error("$name property is reserved for worker serialization logic.");return it!=="Object"&&(yt.$name=it),yt}throw new Error("can't serialize object of type "+typeof y)}function Ye(y){if(y==null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||y instanceof Boolean||y instanceof Number||y instanceof String||y instanceof Date||y instanceof RegExp||Te(y)||qe(y)||ArrayBuffer.isView(y)||y instanceof dc)return y;if(Array.isArray(y))return y.map(Ye);if(typeof y=="object"){var _=y.$name||"Object",I=Al[_],U=I.klass;if(!U)throw new Error("can't deserialize unregistered class "+_);if(U.deserialize)return U.deserialize(y);for(var $=Object.create(U.prototype),oe=0,he=Object.keys(y);oe=0?it:Ye(it)}}return $}throw new Error("can't deserialize object of type "+typeof y)}var Pt=function(){this.first=!0};Pt.prototype.update=function(_,I){var U=Math.floor(_);return this.first?(this.first=!1,this.lastIntegerZoom=U,this.lastIntegerZoomTime=0,this.lastZoom=_,this.lastFloorZoom=U,!0):(this.lastFloorZoom>U?(this.lastIntegerZoom=U+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&y<=255},Arabic:function(y){return y>=1536&&y<=1791},"Arabic Supplement":function(y){return y>=1872&&y<=1919},"Arabic Extended-A":function(y){return y>=2208&&y<=2303},"Hangul Jamo":function(y){return y>=4352&&y<=4607},"Unified Canadian Aboriginal Syllabics":function(y){return y>=5120&&y<=5759},Khmer:function(y){return y>=6016&&y<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(y){return y>=6320&&y<=6399},"General Punctuation":function(y){return y>=8192&&y<=8303},"Letterlike Symbols":function(y){return y>=8448&&y<=8527},"Number Forms":function(y){return y>=8528&&y<=8591},"Miscellaneous Technical":function(y){return y>=8960&&y<=9215},"Control Pictures":function(y){return y>=9216&&y<=9279},"Optical Character Recognition":function(y){return y>=9280&&y<=9311},"Enclosed Alphanumerics":function(y){return y>=9312&&y<=9471},"Geometric Shapes":function(y){return y>=9632&&y<=9727},"Miscellaneous Symbols":function(y){return y>=9728&&y<=9983},"Miscellaneous Symbols and Arrows":function(y){return y>=11008&&y<=11263},"CJK Radicals Supplement":function(y){return y>=11904&&y<=12031},"Kangxi Radicals":function(y){return y>=12032&&y<=12255},"Ideographic Description Characters":function(y){return y>=12272&&y<=12287},"CJK Symbols and Punctuation":function(y){return y>=12288&&y<=12351},Hiragana:function(y){return y>=12352&&y<=12447},Katakana:function(y){return y>=12448&&y<=12543},Bopomofo:function(y){return y>=12544&&y<=12591},"Hangul Compatibility Jamo":function(y){return y>=12592&&y<=12687},Kanbun:function(y){return y>=12688&&y<=12703},"Bopomofo Extended":function(y){return y>=12704&&y<=12735},"CJK Strokes":function(y){return y>=12736&&y<=12783},"Katakana Phonetic Extensions":function(y){return y>=12784&&y<=12799},"Enclosed CJK Letters and Months":function(y){return y>=12800&&y<=13055},"CJK Compatibility":function(y){return y>=13056&&y<=13311},"CJK Unified Ideographs Extension A":function(y){return y>=13312&&y<=19903},"Yijing Hexagram Symbols":function(y){return y>=19904&&y<=19967},"CJK Unified Ideographs":function(y){return y>=19968&&y<=40959},"Yi Syllables":function(y){return y>=40960&&y<=42127},"Yi Radicals":function(y){return y>=42128&&y<=42191},"Hangul Jamo Extended-A":function(y){return y>=43360&&y<=43391},"Hangul Syllables":function(y){return y>=44032&&y<=55215},"Hangul Jamo Extended-B":function(y){return y>=55216&&y<=55295},"Private Use Area":function(y){return y>=57344&&y<=63743},"CJK Compatibility Ideographs":function(y){return y>=63744&&y<=64255},"Arabic Presentation Forms-A":function(y){return y>=64336&&y<=65023},"Vertical Forms":function(y){return y>=65040&&y<=65055},"CJK Compatibility Forms":function(y){return y>=65072&&y<=65103},"Small Form Variants":function(y){return y>=65104&&y<=65135},"Arabic Presentation Forms-B":function(y){return y>=65136&&y<=65279},"Halfwidth and Fullwidth Forms":function(y){return y>=65280&&y<=65519}};function Xt(y){for(var _=0,I=y;_=65097&&y<=65103)||ot["CJK Compatibility Ideographs"](y)||ot["CJK Compatibility"](y)||ot["CJK Radicals Supplement"](y)||ot["CJK Strokes"](y)||ot["CJK Symbols and Punctuation"](y)&&!(y>=12296&&y<=12305)&&!(y>=12308&&y<=12319)&&y!==12336||ot["CJK Unified Ideographs Extension A"](y)||ot["CJK Unified Ideographs"](y)||ot["Enclosed CJK Letters and Months"](y)||ot["Hangul Compatibility Jamo"](y)||ot["Hangul Jamo Extended-A"](y)||ot["Hangul Jamo Extended-B"](y)||ot["Hangul Jamo"](y)||ot["Hangul Syllables"](y)||ot.Hiragana(y)||ot["Ideographic Description Characters"](y)||ot.Kanbun(y)||ot["Kangxi Radicals"](y)||ot["Katakana Phonetic Extensions"](y)||ot.Katakana(y)&&y!==12540||ot["Halfwidth and Fullwidth Forms"](y)&&y!==65288&&y!==65289&&y!==65293&&!(y>=65306&&y<=65310)&&y!==65339&&y!==65341&&y!==65343&&!(y>=65371&&y<=65503)&&y!==65507&&!(y>=65512&&y<=65519)||ot["Small Form Variants"](y)&&!(y>=65112&&y<=65118)&&!(y>=65123&&y<=65126)||ot["Unified Canadian Aboriginal Syllabics"](y)||ot["Unified Canadian Aboriginal Syllabics Extended"](y)||ot["Vertical Forms"](y)||ot["Yijing Hexagram Symbols"](y)||ot["Yi Syllables"](y)||ot["Yi Radicals"](y))}function gi(y){return!!(ot["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||ot["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||ot["Letterlike Symbols"](y)||ot["Number Forms"](y)||ot["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||ot["Control Pictures"](y)&&y!==9251||ot["Optical Character Recognition"](y)||ot["Enclosed Alphanumerics"](y)||ot["Geometric Shapes"](y)||ot["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||ot["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||ot["CJK Symbols and Punctuation"](y)||ot.Katakana(y)||ot["Private Use Area"](y)||ot["CJK Compatibility Forms"](y)||ot["Small Form Variants"](y)||ot["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}function xi(y){return!(zr(y)||gi(y))}function Wr(y){return ot.Arabic(y)||ot["Arabic Supplement"](y)||ot["Arabic Extended-A"](y)||ot["Arabic Presentation Forms-A"](y)||ot["Arabic Presentation Forms-B"](y)}function ii(y){return y>=1424&&y<=2303||ot["Arabic Presentation Forms-A"](y)||ot["Arabic Presentation Forms-B"](y)}function di(y,_){return!(!_&&ii(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||ot.Khmer(y))}function Li(y){for(var _=0,I=y;_-1&&(kn=Qr.error),Pn&&Pn(y)};function Ea(){Ia.fire(new Xo("pluginStateChange",{pluginStatus:kn,pluginURL:Bn}))}var Ia=new jn,yo=function(){return kn},Da=function(y){return y({pluginStatus:kn,pluginURL:Bn}),Ia.on("pluginStateChange",y),y},go=function(y,_,I){if(I===void 0&&(I=!1),kn===Qr.deferred||kn===Qr.loading||kn===Qr.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Bn=lt.resolveURL(y),kn=Qr.deferred,Pn=_,Ea(),I||Is()},Is=function(){if(kn!==Qr.deferred||!Bn)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");kn=Qr.loading,Ea(),Bn&&ti({url:Bn},function(y){y?na(y):(kn=Qr.loaded,Ea())})},Ms={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return kn===Qr.loaded||Ms.applyArabicShaping!=null},isLoading:function(){return kn===Qr.loading},setState:function(_){kn=_.pluginStatus,Bn=_.pluginURL},isParsed:function(){return Ms.applyArabicShaping!=null&&Ms.processBidirectionalText!=null&&Ms.processStyledBidirectionalText!=null},getPluginURL:function(){return Bn}},Xs=function(){!Ms.isLoading()&&!Ms.isLoaded()&&yo()==="deferred"&&Is()},Un=function(_,I){this.zoom=_,I?(this.now=I.now,this.fadeDuration=I.fadeDuration,this.zoomHistory=I.zoomHistory,this.transition=I.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Pt,this.transition={})};Un.prototype.isSupportedScript=function(_){return Ti(_,Ms.isLoaded())},Un.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Un.prototype.getCrossfadeParameters=function(){var _=this.zoom,I=_-Math.floor(_),U=this.crossFadingFactor();return _>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*U}:{fromScale:.5,toScale:1,t:1-(1-U)*I}};var ja=function(_,I){this.property=_,this.value=I,this.expression=w(I===void 0?_.specification.default:I,_.specification)};ja.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},ja.prototype.possiblyEvaluate=function(_,I,U){return this.property.possiblyEvaluate(this,_,I,U)};var Fo=function(_){this.property=_,this.value=new ja(_,void 0)};Fo.prototype.transitioned=function(_,I){return new $s(this.property,this.value,I,x({},_.transition,this.transition),_.now)},Fo.prototype.untransitioned=function(){return new $s(this.property,this.value,null,{},0)};var Uo=function(_){this._properties=_,this._values=Object.create(_.defaultTransitionablePropertyValues)};Uo.prototype.getValue=function(_){return j(this._values[_].value.value)},Uo.prototype.setValue=function(_,I){this._values.hasOwnProperty(_)||(this._values[_]=new Fo(this._values[_].property)),this._values[_].value=new ja(this._values[_].property,I===null?void 0:j(I))},Uo.prototype.getTransition=function(_){return j(this._values[_].transition)},Uo.prototype.setTransition=function(_,I){this._values.hasOwnProperty(_)||(this._values[_]=new Fo(this._values[_].property)),this._values[_].transition=j(I)||void 0},Uo.prototype.serialize=function(){for(var _={},I=0,U=Object.keys(this._values);Ithis.end)return this.prior=null,oe;if(this.value.isDataDriven())return this.prior=null,oe;if($he.zoomHistory.lastIntegerZoom?{from:U,to:$}:{from:oe,to:$}},_.prototype.interpolate=function(U){return U},_}(bt),Lr=function(_){this.specification=_};Lr.prototype.possiblyEvaluate=function(_,I,U,$){if(_.value!==void 0)if(_.expression.kind==="constant"){var oe=_.expression.evaluate(I,null,{},U,$);return this._calculate(oe,oe,oe,I)}else return this._calculate(_.expression.evaluate(new Un(Math.floor(I.zoom-1),I)),_.expression.evaluate(new Un(Math.floor(I.zoom),I)),_.expression.evaluate(new Un(Math.floor(I.zoom+1),I)),I)},Lr.prototype._calculate=function(_,I,U,$){var oe=$.zoom;return oe>$.zoomHistory.lastIntegerZoom?{from:_,to:I}:{from:U,to:I}},Lr.prototype.interpolate=function(_){return _};var Vr=function(_){this.specification=_};Vr.prototype.possiblyEvaluate=function(_,I,U,$){return!!_.expression.evaluate(I,null,{},U,$)},Vr.prototype.interpolate=function(){return!1};var Or=function(_){this.properties=_,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in _){var U=_[I];U.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new ja(U,void 0),oe=this.defaultTransitionablePropertyValues[I]=new Fo(U);this.defaultTransitioningPropertyValues[I]=oe.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};X("DataDrivenProperty",bt),X("DataConstantProperty",Me),X("CrossFadedDataDrivenProperty",Ot),X("CrossFadedProperty",Lr),X("ColorRampProperty",Vr);var Nr="-transition",vi=function(y){function _(I,U){if(y.call(this),this.id=I.id,this.type=I.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},I.type!=="custom"&&(I=I,this.metadata=I.metadata,this.minzoom=I.minzoom,this.maxzoom=I.maxzoom,I.type!=="background"&&(this.source=I.source,this.sourceLayer=I["source-layer"],this.filter=I.filter),U.layout&&(this._unevaluatedLayout=new bu(U.layout)),U.paint)){this._transitionablePaint=new Uo(U.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var oe in I.layout)this.setLayoutProperty(oe,I.layout[oe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Sc(U.paint)}}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},_.prototype.getLayoutProperty=function(U){return U==="visibility"?this.visibility:this._unevaluatedLayout.getValue(U)},_.prototype.setLayoutProperty=function(U,$,oe){if(oe===void 0&&(oe={}),$!=null){var he="layers."+this.id+".layout."+U;if(this._validate(Ul,he,U,$,oe))return}if(U==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(U,$)},_.prototype.getPaintProperty=function(U){return V(U,Nr)?this._transitionablePaint.getTransition(U.slice(0,-Nr.length)):this._transitionablePaint.getValue(U)},_.prototype.setPaintProperty=function(U,$,oe){if(oe===void 0&&(oe={}),$!=null){var he="layers."+this.id+".paint."+U;if(this._validate(hl,he,U,$,oe))return!1}if(V(U,Nr))return this._transitionablePaint.setTransition(U.slice(0,-Nr.length),$||void 0),!1;var De=this._transitionablePaint._values[U],it=De.property.specification["property-type"]==="cross-faded-data-driven",yt=De.value.isDataDriven(),Lt=De.value;this._transitionablePaint.setValue(U,$),this._handleSpecialPaintPropertyUpdate(U);var sr=this._transitionablePaint._values[U].value,gr=sr.isDataDriven();return gr||yt||it||this._handleOverridablePaintPropertyUpdate(U,Lt,sr)},_.prototype._handleSpecialPaintPropertyUpdate=function(U){},_.prototype._handleOverridablePaintPropertyUpdate=function(U,$,oe){return!1},_.prototype.isHidden=function(U){return this.minzoom&&U=this.maxzoom?!0:this.visibility==="none"},_.prototype.updateTransitions=function(U){this._transitioningPaint=this._transitionablePaint.transitioned(U,this._transitioningPaint)},_.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},_.prototype.recalculate=function(U,$){U.getCrossfadeParameters&&(this._crossfadeParameters=U.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(U,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(U,void 0,$)},_.prototype.serialize=function(){var U={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(U.layout=U.layout||{},U.layout.visibility=this.visibility),Z(U,function($,oe){return $!==void 0&&!(oe==="layout"&&!Object.keys($).length)&&!(oe==="paint"&&!Object.keys($).length)})},_.prototype._validate=function(U,$,oe,he,De){return De===void 0&&(De={}),De&&De.validate===!1?!1:Lu(this,U.call(wo,{key:$,layerType:this.type,objectKey:oe,value:he,styleSpec:Rn,style:{glyphs:!0,sprite:!0}}))},_.prototype.is3D=function(){return!1},_.prototype.isTileClipped=function(){return!1},_.prototype.hasOffscreenPass=function(){return!1},_.prototype.resize=function(){},_.prototype.isStateDependent=function(){for(var U in this.paint._values){var $=this.paint.get(U);if(!(!($ instanceof dl)||!Ws($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},_}(jn),Ni={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},qi=function(_,I){this._structArray=_,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Si=128,Vn=5,Qi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Qi.serialize=function(_,I){return _._trim(),I&&(_.isTransferred=!0,I.push(_.arrayBuffer)),{length:_.length,arrayBuffer:_.arrayBuffer}},Qi.deserialize=function(_){var I=Object.create(this.prototype);return I.arrayBuffer=_.arrayBuffer,I.length=_.length,I.capacity=_.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},Qi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Qi.prototype.clear=function(){this.length=0},Qi.prototype.resize=function(_){this.reserve(_),this.length=_},Qi.prototype.reserve=function(_){if(_>this.capacity){this.capacity=Math.max(_,Math.floor(this.capacity*Vn),Si),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},Qi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ji(y,_){_===void 0&&(_=1);var I=0,U=0,$=y.map(function(he){var De=oi(he.type),it=I=Tr(I,Math.max(_,De)),yt=he.components||1;return U=Math.max(U,De),I+=De*yt,{name:he.name,type:he.type,components:yt,offset:it}}),oe=Tr(I,Math.max(U,_));return{members:$,size:oe,alignment:_}}function oi(y){return Ni[y].BYTES_PER_ELEMENT}function Tr(y,_){return Math.ceil(y/_)*_}var Zr=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,U,$)},_.prototype.emplace=function(U,$,oe){var he=U*2;return this.int16[he+0]=$,this.int16[he+1]=oe,U},_}(Qi);Zr.prototype.bytesPerElement=4,X("StructArrayLayout2i4",Zr);var yi=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he){var De=this.length;return this.resize(De+1),this.emplace(De,U,$,oe,he)},_.prototype.emplace=function(U,$,oe,he,De){var it=U*4;return this.int16[it+0]=$,this.int16[it+1]=oe,this.int16[it+2]=he,this.int16[it+3]=De,U},_}(Qi);yi.prototype.bytesPerElement=8,X("StructArrayLayout4i8",yi);var Ii=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it){var yt=this.length;return this.resize(yt+1),this.emplace(yt,U,$,oe,he,De,it)},_.prototype.emplace=function(U,$,oe,he,De,it,yt){var Lt=U*6;return this.int16[Lt+0]=$,this.int16[Lt+1]=oe,this.int16[Lt+2]=he,this.int16[Lt+3]=De,this.int16[Lt+4]=it,this.int16[Lt+5]=yt,U},_}(Qi);Ii.prototype.bytesPerElement=12,X("StructArrayLayout2i4i12",Ii);var ui=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it){var yt=this.length;return this.resize(yt+1),this.emplace(yt,U,$,oe,he,De,it)},_.prototype.emplace=function(U,$,oe,he,De,it,yt){var Lt=U*4,sr=U*8;return this.int16[Lt+0]=$,this.int16[Lt+1]=oe,this.uint8[sr+4]=he,this.uint8[sr+5]=De,this.uint8[sr+6]=it,this.uint8[sr+7]=yt,U},_}(Qi);ui.prototype.bytesPerElement=8,X("StructArrayLayout2i4ub8",ui);var nn=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,U,$)},_.prototype.emplace=function(U,$,oe){var he=U*2;return this.float32[he+0]=$,this.float32[he+1]=oe,U},_}(Qi);nn.prototype.bytesPerElement=8,X("StructArrayLayout2f8",nn);var Xi=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr,gr){var hr=this.length;return this.resize(hr+1),this.emplace(hr,U,$,oe,he,De,it,yt,Lt,sr,gr)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr){var Rr=U*10;return this.uint16[Rr+0]=$,this.uint16[Rr+1]=oe,this.uint16[Rr+2]=he,this.uint16[Rr+3]=De,this.uint16[Rr+4]=it,this.uint16[Rr+5]=yt,this.uint16[Rr+6]=Lt,this.uint16[Rr+7]=sr,this.uint16[Rr+8]=gr,this.uint16[Rr+9]=hr,U},_}(Qi);Xi.prototype.bytesPerElement=20,X("StructArrayLayout10ui20",Xi);var qn=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr){var ni=this.length;return this.resize(ni+1),this.emplace(ni,U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni){var Hi=U*12;return this.int16[Hi+0]=$,this.int16[Hi+1]=oe,this.int16[Hi+2]=he,this.int16[Hi+3]=De,this.uint16[Hi+4]=it,this.uint16[Hi+5]=yt,this.uint16[Hi+6]=Lt,this.uint16[Hi+7]=sr,this.int16[Hi+8]=gr,this.int16[Hi+9]=hr,this.int16[Hi+10]=Rr,this.int16[Hi+11]=ni,U},_}(Qi);qn.prototype.bytesPerElement=24,X("StructArrayLayout4i4ui4i24",qn);var fi=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,oe)},_.prototype.emplace=function(U,$,oe,he){var De=U*3;return this.float32[De+0]=$,this.float32[De+1]=oe,this.float32[De+2]=he,U},_}(Qi);fi.prototype.bytesPerElement=12,X("StructArrayLayout3f12",fi);var si=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},_.prototype.emplace=function(U,$){var oe=U*1;return this.uint32[oe+0]=$,U},_}(Qi);si.prototype.bytesPerElement=4,X("StructArrayLayout1ul4",si);var mn=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr){var gr=this.length;return this.resize(gr+1),this.emplace(gr,U,$,oe,he,De,it,yt,Lt,sr)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr){var hr=U*10,Rr=U*5;return this.int16[hr+0]=$,this.int16[hr+1]=oe,this.int16[hr+2]=he,this.int16[hr+3]=De,this.int16[hr+4]=it,this.int16[hr+5]=yt,this.uint32[Rr+3]=Lt,this.uint16[hr+8]=sr,this.uint16[hr+9]=gr,U},_}(Qi);mn.prototype.bytesPerElement=20,X("StructArrayLayout6i1ul2ui20",mn);var Ji=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it){var yt=this.length;return this.resize(yt+1),this.emplace(yt,U,$,oe,he,De,it)},_.prototype.emplace=function(U,$,oe,he,De,it,yt){var Lt=U*6;return this.int16[Lt+0]=$,this.int16[Lt+1]=oe,this.int16[Lt+2]=he,this.int16[Lt+3]=De,this.int16[Lt+4]=it,this.int16[Lt+5]=yt,U},_}(Qi);Ji.prototype.bytesPerElement=12,X("StructArrayLayout2i2i2i12",Ji);var Ui=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De){var it=this.length;return this.resize(it+1),this.emplace(it,U,$,oe,he,De)},_.prototype.emplace=function(U,$,oe,he,De,it){var yt=U*4,Lt=U*8;return this.float32[yt+0]=$,this.float32[yt+1]=oe,this.float32[yt+2]=he,this.int16[Lt+6]=De,this.int16[Lt+7]=it,U},_}(Qi);Ui.prototype.bytesPerElement=16,X("StructArrayLayout2f1f2i16",Ui);var Bi=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he){var De=this.length;return this.resize(De+1),this.emplace(De,U,$,oe,he)},_.prototype.emplace=function(U,$,oe,he,De){var it=U*12,yt=U*3;return this.uint8[it+0]=$,this.uint8[it+1]=oe,this.float32[yt+1]=he,this.float32[yt+2]=De,U},_}(Qi);Bi.prototype.bytesPerElement=12,X("StructArrayLayout2ub2f12",Bi);var pn=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,oe)},_.prototype.emplace=function(U,$,oe,he){var De=U*3;return this.uint16[De+0]=$,this.uint16[De+1]=oe,this.uint16[De+2]=he,U},_}(Qi);pn.prototype.bytesPerElement=6,X("StructArrayLayout3ui6",pn);var Nn=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,Hi,wi,bn,rn){var xn=this.length;return this.resize(xn+1),this.emplace(xn,U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,Hi,wi,bn,rn)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,Hi,wi,bn,rn,xn){var In=U*24,Xn=U*12,ga=U*48;return this.int16[In+0]=$,this.int16[In+1]=oe,this.uint16[In+2]=he,this.uint16[In+3]=De,this.uint32[Xn+2]=it,this.uint32[Xn+3]=yt,this.uint32[Xn+4]=Lt,this.uint16[In+10]=sr,this.uint16[In+11]=gr,this.uint16[In+12]=hr,this.float32[Xn+7]=Rr,this.float32[Xn+8]=ni,this.uint8[ga+36]=Hi,this.uint8[ga+37]=wi,this.uint8[ga+38]=bn,this.uint32[Xn+10]=rn,this.int16[In+22]=xn,U},_}(Qi);Nn.prototype.bytesPerElement=48,X("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Nn);var aa=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,Hi,wi,bn,rn,xn,In,Xn,ga,ha,eo,za,Za,Jo,to,ao){var _s=this.length;return this.resize(_s+1),this.emplace(_s,U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,Hi,wi,bn,rn,xn,In,Xn,ga,ha,eo,za,Za,Jo,to,ao)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,Hi,wi,bn,rn,xn,In,Xn,ga,ha,eo,za,Za,Jo,to,ao,_s){var jo=U*34,El=U*17;return this.int16[jo+0]=$,this.int16[jo+1]=oe,this.int16[jo+2]=he,this.int16[jo+3]=De,this.int16[jo+4]=it,this.int16[jo+5]=yt,this.int16[jo+6]=Lt,this.int16[jo+7]=sr,this.uint16[jo+8]=gr,this.uint16[jo+9]=hr,this.uint16[jo+10]=Rr,this.uint16[jo+11]=ni,this.uint16[jo+12]=Hi,this.uint16[jo+13]=wi,this.uint16[jo+14]=bn,this.uint16[jo+15]=rn,this.uint16[jo+16]=xn,this.uint16[jo+17]=In,this.uint16[jo+18]=Xn,this.uint16[jo+19]=ga,this.uint16[jo+20]=ha,this.uint16[jo+21]=eo,this.uint16[jo+22]=za,this.uint32[El+12]=Za,this.float32[El+13]=Jo,this.float32[El+14]=to,this.float32[El+15]=ao,this.float32[El+16]=_s,U},_}(Qi);aa.prototype.bytesPerElement=68,X("StructArrayLayout8i15ui1ul4f68",aa);var Ki=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},_.prototype.emplace=function(U,$){var oe=U*1;return this.float32[oe+0]=$,U},_}(Qi);Ki.prototype.bytesPerElement=4,X("StructArrayLayout1f4",Ki);var Cn=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,oe)},_.prototype.emplace=function(U,$,oe,he){var De=U*3;return this.int16[De+0]=$,this.int16[De+1]=oe,this.int16[De+2]=he,U},_}(Qi);Cn.prototype.bytesPerElement=6,X("StructArrayLayout3i6",Cn);var ia=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,oe)},_.prototype.emplace=function(U,$,oe,he){var De=U*2,it=U*4;return this.uint32[De+0]=$,this.uint16[it+2]=oe,this.uint16[it+3]=he,U},_}(Qi);ia.prototype.bytesPerElement=8,X("StructArrayLayout1ul2ui8",ia);var sa=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,U,$)},_.prototype.emplace=function(U,$,oe){var he=U*2;return this.uint16[he+0]=$,this.uint16[he+1]=oe,U},_}(Qi);sa.prototype.bytesPerElement=4,X("StructArrayLayout2ui4",sa);var ba=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},_.prototype.emplace=function(U,$){var oe=U*1;return this.uint16[oe+0]=$,U},_}(Qi);ba.prototype.bytesPerElement=2,X("StructArrayLayout1ui2",ba);var is=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he){var De=this.length;return this.resize(De+1),this.emplace(De,U,$,oe,he)},_.prototype.emplace=function(U,$,oe,he,De){var it=U*4;return this.float32[it+0]=$,this.float32[it+1]=oe,this.float32[it+2]=he,this.float32[it+3]=De,U},_}(Qi);is.prototype.bytesPerElement=16,X("StructArrayLayout4f16",is);var Zs=function(y){function _(){y.apply(this,arguments)}y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_;var I={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return I.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},I.x1.get=function(){return this._structArray.int16[this._pos2+2]},I.y1.get=function(){return this._structArray.int16[this._pos2+3]},I.x2.get=function(){return this._structArray.int16[this._pos2+4]},I.y2.get=function(){return this._structArray.int16[this._pos2+5]},I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.anchorPoint.get=function(){return new u(this.anchorPointX,this.anchorPointY)},Object.defineProperties(_.prototype,I),_}(qi);Zs.prototype.size=20;var Ga=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.get=function(U){return new Zs(this,U)},_}(mn);X("CollisionBoxArray",Ga);var Ml=function(y){function _(){y.apply(this,arguments)}y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},I.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},I.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},I.segment.get=function(){return this._structArray.uint16[this._pos2+10]},I.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},I.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},I.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},I.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},I.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},I.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},I.placedOrientation.set=function(U){this._structArray.uint8[this._pos1+37]=U},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(U){this._structArray.uint8[this._pos1+38]=U},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+10]=U},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(_.prototype,I),_}(qi);Ml.prototype.size=48;var zo=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.get=function(U){return new Ml(this,U)},_}(Nn);X("PlacedSymbolArray",zo);var Qs=function(y){function _(){y.apply(this,arguments)}y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},I.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},I.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},I.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},I.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},I.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},I.key.get=function(){return this._structArray.uint16[this._pos2+8]},I.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},I.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},I.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},I.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},I.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},I.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},I.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},I.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},I.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},I.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},I.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},I.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},I.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+12]=U},I.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},I.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},I.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},I.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(_.prototype,I),_}(qi);Qs.prototype.size=68;var al=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.get=function(U){return new Qs(this,U)},_}(aa);X("SymbolInstanceArray",al);var Vl=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.getoffsetX=function(U){return this.float32[U*1+0]},_}(Ki);X("GlyphOffsetArray",Vl);var ss=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.getx=function(U){return this.int16[U*3+0]},_.prototype.gety=function(U){return this.int16[U*3+1]},_.prototype.gettileUnitDistanceFromAnchor=function(U){return this.int16[U*3+2]},_}(Cn);X("SymbolLineVertexArray",ss);var Vs=function(y){function _(){y.apply(this,arguments)}y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_;var I={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(_.prototype,I),_}(qi);Vs.prototype.size=8;var Ys=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.get=function(U){return new Vs(this,U)},_}(ia);X("FeatureIndexArray",Ys);var wa=ji([{name:"a_pos",components:2,type:"Int16"}],4),ol=wa.members,io=function(_){_===void 0&&(_=[]),this.segments=_};io.prototype.prepareSegment=function(_,I,U,$){var oe=this.segments[this.segments.length-1];return _>io.MAX_VERTEX_ARRAY_LENGTH&&ie("Max vertices per segment is "+io.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+_),(!oe||oe.vertexLength+_>io.MAX_VERTEX_ARRAY_LENGTH||oe.sortKey!==$)&&(oe={vertexOffset:I.length,primitiveOffset:U.length,vertexLength:0,primitiveLength:0},$!==void 0&&(oe.sortKey=$),this.segments.push(oe)),oe},io.prototype.get=function(){return this.segments},io.prototype.destroy=function(){for(var _=0,I=this.segments;_>>16)*it&65535)<<16)&4294967295,Lt=Lt<<15|Lt>>>17,Lt=(Lt&65535)*yt+(((Lt>>>16)*yt&65535)<<16)&4294967295,he^=Lt,he=he<<13|he>>>19,De=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(De&65535)+27492+(((De>>>16)+58964&65535)<<16);switch(Lt=0,$){case 3:Lt^=(I.charCodeAt(sr+2)&255)<<16;case 2:Lt^=(I.charCodeAt(sr+1)&255)<<8;case 1:Lt^=I.charCodeAt(sr)&255,Lt=(Lt&65535)*it+(((Lt>>>16)*it&65535)<<16)&4294967295,Lt=Lt<<15|Lt>>>17,Lt=(Lt&65535)*yt+(((Lt>>>16)*yt&65535)<<16)&4294967295,he^=Lt}return he^=I.length,he^=he>>>16,he=(he&65535)*2246822507+(((he>>>16)*2246822507&65535)<<16)&4294967295,he^=he>>>13,he=(he&65535)*3266489909+(((he>>>16)*3266489909&65535)<<16)&4294967295,he^=he>>>16,he>>>0}y.exports=_}),O=a(function(y){function _(I,U){for(var $=I.length,oe=U^$,he=0,De;$>=4;)De=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,De=(De&65535)*1540483477+(((De>>>16)*1540483477&65535)<<16),De^=De>>>24,De=(De&65535)*1540483477+(((De>>>16)*1540483477&65535)<<16),oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)^De,$-=4,++he;switch($){case 3:oe^=(I.charCodeAt(he+2)&255)<<16;case 2:oe^=(I.charCodeAt(he+1)&255)<<8;case 1:oe^=I.charCodeAt(he)&255,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)}return oe^=oe>>>13,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16),oe^=oe>>>15,oe>>>0}y.exports=_}),K=J,de=J,ne=O;K.murmur3=de,K.murmur2=ne;var we=function(){this.ids=[],this.positions=[],this.indexed=!1};we.prototype.add=function(_,I,U,$){this.ids.push(ht(_)),this.positions.push(I,U,$)},we.prototype.getPositions=function(_){for(var I=ht(_),U=0,$=this.ids.length-1;U<$;){var oe=U+$>>1;this.ids[oe]>=I?$=oe:U=oe+1}for(var he=[];this.ids[U]===I;){var De=this.positions[3*U],it=this.positions[3*U+1],yt=this.positions[3*U+2];he.push({index:De,start:it,end:yt}),U++}return he},we.serialize=function(_,I){var U=new Float64Array(_.ids),$=new Uint32Array(_.positions);return Yt(U,$,0,U.length-1),I&&I.push(U.buffer,$.buffer),{ids:U,positions:$}},we.deserialize=function(_){var I=new we;return I.ids=_.ids,I.positions=_.positions,I.indexed=!0,I};var Oe=Math.pow(2,53)-1;function ht(y){var _=+y;return!isNaN(_)&&_<=Oe?_:K(String(y))}function Yt(y,_,I,U){for(;I>1],oe=I-1,he=U+1;;){do oe++;while(y[oe]<$);do he--;while(y[he]>$);if(oe>=he)break;cr(y,oe,he),cr(_,3*oe,3*he),cr(_,3*oe+1,3*he+1),cr(_,3*oe+2,3*he+2)}he-Ihe.x+1||ithe.y+1)&&ie("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function Ja(y,_){return{type:y.type,id:y.id,properties:y.properties,geometry:_?zn(y):[]}}function co(y,_,I,U,$){y.emplaceBack(_*2+(U+1)/2,I*2+($+1)/2)}var ts=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new Zr,this.indexArray=new pn,this.segments=new io,this.programConfigurations=new ci(_.layers,_.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};ts.prototype.populate=function(_,I,U){var $=this.layers[0],oe=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var De=0,it=_;De=Ei||gr<0||gr>=Ei)){var hr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,_.sortKey),Rr=hr.vertexLength;co(this.layoutVertexArray,sr,gr,-1,-1),co(this.layoutVertexArray,sr,gr,1,-1),co(this.layoutVertexArray,sr,gr,1,1),co(this.layoutVertexArray,sr,gr,-1,1),this.indexArray.emplaceBack(Rr,Rr+1,Rr+2),this.indexArray.emplaceBack(Rr,Rr+3,Rr+2),hr.vertexLength+=4,hr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,_,U,{},$)},X("CircleBucket",ts,{omit:["layers"]});function so(y,_){for(var I=0;I=3){for(var oe=0;oe<$.length;oe++)if(Td(y,$[oe]))return!0}if(Cv(y,$,I))return!0}return!1}function Cv(y,_,I){if(y.length>1){if(Lv(y,_))return!0;for(var U=0;U<_.length;U++)if(Kv(_[U],y,I))return!0}for(var $=0;$1?y.distSqr(I):y.distSqr(I.sub(_)._mult($)._add(_))}function gp(y,_){for(var I=!1,U,$,oe,he=0;he_.y!=oe.y>_.y&&_.x<(oe.x-$.x)*(_.y-$.y)/(oe.y-$.y)+$.x&&(I=!I)}return I}function Td(y,_){for(var I=!1,U=0,$=y.length-1;U_.y!=he.y>_.y&&_.x<(he.x-oe.x)*(_.y-oe.y)/(he.y-oe.y)+oe.x&&(I=!I)}return I}function mp(y,_,I,U,$){for(var oe=0,he=y;oe=De.x&&$>=De.y)return!0}var it=[new u(_,I),new u(_,$),new u(U,$),new u(U,I)];if(y.length>2)for(var yt=0,Lt=it;yt$.x&&_.x>$.x||y.y$.y&&_.y>$.y)return!1;var oe=ae(y,_,I[0]);return oe!==ae(y,_,I[1])||oe!==ae(y,_,I[2])||oe!==ae(y,_,I[3])}function Ad(y,_,I){var U=_.paint.get(y).value;return U.kind==="constant"?U.value:I.programConfigurations.get(_.id).getMaxValue(y)}function Pv(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function Jv(y,_,I,U,$){if(!_[0]&&!_[1])return y;var oe=u.convert(_)._mult($);I==="viewport"&&oe._rotate(-U);for(var he=[],De=0;De0&&(oe=1/Math.sqrt(oe)),y[0]=_[0]*oe,y[1]=_[1]*oe,y[2]=_[2]*oe,y}function H9(y,_){return y[0]*_[0]+y[1]*_[1]+y[2]*_[2]}function j9(y,_,I){var U=_[0],$=_[1],oe=_[2],he=I[0],De=I[1],it=I[2];return y[0]=$*it-oe*De,y[1]=oe*he-U*it,y[2]=U*De-$*he,y}function W9(y,_,I){var U=_[0],$=_[1],oe=_[2];return y[0]=U*I[0]+$*I[3]+oe*I[6],y[1]=U*I[1]+$*I[4]+oe*I[7],y[2]=U*I[2]+$*I[5]+oe*I[8],y}var X9=um,OQ=function(){var y=lm();return function(_,I,U,$,oe,he){var De,it;for(I||(I=3),U||(U=0),$?it=Math.min($*I+U,_.length):it=_.length,De=U;Dey.width||$.height>y.height||I.x>y.width-$.width||I.y>y.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>_.width||$.height>_.height||U.x>_.width-$.width||U.y>_.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=y.data,De=_.data,it=0;it<$.height;it++)for(var yt=((I.y+it)*y.width+I.x)*oe,Lt=((U.y+it)*_.width+U.x)*oe,sr=0;sr<$.width*oe;sr++)De[Lt+sr]=he[yt+sr];return _}var Dv=function(_,I){Md(this,_,1,I)};Dv.prototype.resize=function(_){Uw(this,_,1)},Dv.prototype.clone=function(){return new Dv({width:this.width,height:this.height},new Uint8Array(this.data))},Dv.copy=function(_,I,U,$,oe){Vw(_,I,U,$,oe,1)};var Eh=function(_,I){Md(this,_,4,I)};Eh.prototype.resize=function(_){Uw(this,_,4)},Eh.prototype.replace=function(_,I){I?this.data.set(_):_ instanceof Uint8ClampedArray?this.data=new Uint8Array(_.buffer):this.data=_},Eh.prototype.clone=function(){return new Eh({width:this.width,height:this.height},new Uint8Array(this.data))},Eh.copy=function(_,I,U,$,oe){Vw(_,I,U,$,oe,4)},X("AlphaImage",Dv),X("RGBAImage",Eh);var Qx=new Or({"heatmap-radius":new bt(Rn.paint_heatmap["heatmap-radius"]),"heatmap-weight":new bt(Rn.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Me(Rn.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Vr(Rn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Me(Rn.paint_heatmap["heatmap-opacity"])}),P1={paint:Qx};function eb(y){var _={},I=y.resolution||256,U=y.clips?y.clips.length:1,$=y.image||new Eh({width:I,height:U}),oe=function(bn,rn,xn){_[y.evaluationKey]=xn;var In=y.expression.evaluate(_);$.data[bn+rn+0]=Math.floor(In.r*255/In.a),$.data[bn+rn+1]=Math.floor(In.g*255/In.a),$.data[bn+rn+2]=Math.floor(In.b*255/In.a),$.data[bn+rn+3]=Math.floor(In.a*255)};if(y.clips)for(var yt=0,Lt=0;yt80*I){De=yt=y[0],it=Lt=y[1];for(var Rr=I;Rr<$;Rr+=I)sr=y[Rr],gr=y[Rr+1],sryt&&(yt=sr),gr>Lt&&(Lt=gr);hr=Math.max(yt-De,Lt-it),hr=hr!==0?1/hr:0}return tb(oe,he,I,De,it,hr),he}function jw(y,_,I,U,$){var oe,he;if($===yS(y,_,I,U)>0)for(oe=_;oe=_;oe-=U)he=zC(oe,y[oe],y[oe+1],he);return he&&ib(he,he.next)&&(ob(he),he=he.next),he}function cm(y,_){if(!y)return y;_||(_=y);var I=y,U;do if(U=!1,!I.steiner&&(ib(I,I.next)||Tf(I.prev,I,I.next)===0)){if(ob(I),I=_=I.prev,I===I.next)break;U=!0}else I=I.next;while(U||I!==_);return _}function tb(y,_,I,U,$,oe,he){if(y){!he&&oe&&Ww(y,U,$,oe);for(var De=y,it,yt;y.prev!==y.next;){if(it=y.prev,yt=y.next,oe?RC(y,U,$,oe):IC(y)){_.push(it.i/I),_.push(y.i/I),_.push(yt.i/I),ob(y),y=yt.next,De=yt.next;continue}if(y=yt,y===De){he?he===1?(y=rb(cm(y),_,I),tb(y,_,I,U,$,oe,2)):he===2&&v0(y,_,I,U,$,oe):tb(cm(y),_,I,U,$,oe,1);break}}}}function IC(y){var _=y.prev,I=y,U=y.next;if(Tf(_,I,U)>=0)return!1;for(var $=y.next.next;$!==y.prev;){if(hm(_.x,_.y,I.x,I.y,U.x,U.y,$.x,$.y)&&Tf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function RC(y,_,I,U){var $=y.prev,oe=y,he=y.next;if(Tf($,oe,he)>=0)return!1;for(var De=$.xoe.x?$.x>he.x?$.x:he.x:oe.x>he.x?oe.x:he.x,Lt=$.y>oe.y?$.y>he.y?$.y:he.y:oe.y>he.y?oe.y:he.y,sr=vS(De,it,_,I,U),gr=vS(yt,Lt,_,I,U),hr=y.prevZ,Rr=y.nextZ;hr&&hr.z>=sr&&Rr&&Rr.z<=gr;){if(hr!==y.prev&&hr!==y.next&&hm($.x,$.y,oe.x,oe.y,he.x,he.y,hr.x,hr.y)&&Tf(hr.prev,hr,hr.next)>=0||(hr=hr.prevZ,Rr!==y.prev&&Rr!==y.next&&hm($.x,$.y,oe.x,oe.y,he.x,he.y,Rr.x,Rr.y)&&Tf(Rr.prev,Rr,Rr.next)>=0))return!1;Rr=Rr.nextZ}for(;hr&&hr.z>=sr;){if(hr!==y.prev&&hr!==y.next&&hm($.x,$.y,oe.x,oe.y,he.x,he.y,hr.x,hr.y)&&Tf(hr.prev,hr,hr.next)>=0)return!1;hr=hr.prevZ}for(;Rr&&Rr.z<=gr;){if(Rr!==y.prev&&Rr!==y.next&&hm($.x,$.y,oe.x,oe.y,he.x,he.y,Rr.x,Rr.y)&&Tf(Rr.prev,Rr,Rr.next)>=0)return!1;Rr=Rr.nextZ}return!0}function rb(y,_,I){var U=y;do{var $=U.prev,oe=U.next.next;!ib($,oe)&&Xw($,U,U.next,oe)&&ab($,oe)&&ab(oe,$)&&(_.push($.i/I),_.push(U.i/I),_.push(oe.i/I),ob(U),ob(U.next),U=y=oe),U=U.next}while(U!==y);return cm(U)}function v0(y,_,I,U,$,oe){var he=y;do{for(var De=he.next.next;De!==he.prev;){if(he.i!==De.i&&R1(he,De)){var it=gS(he,De);he=cm(he,he.next),it=cm(it,it.next),tb(he,_,I,U,$,oe),tb(it,_,I,U,$,oe);return}De=De.next}he=he.next}while(he!==y)}function fm(y,_,I,U){var $=[],oe,he,De,it,yt;for(oe=0,he=_.length;oe=I.next.y&&I.next.y!==I.y){var De=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(De<=U&&De>oe){if(oe=De,De===U){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=yt&&U!==I.x&&hm($he.x||I.x===he.x&&rq(he,I)))&&(he=I,sr=gr)),I=I.next;while(I!==it);return he}function rq(y,_){return Tf(y.prev,y,_.prev)<0&&Tf(_.next,y,y.next)<0}function Ww(y,_,I,U){var $=y;do $.z===null&&($.z=vS($.x,$.y,_,I,U)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==y);$.prevZ.nextZ=null,$.prevZ=null,dS($)}function dS(y){var _,I,U,$,oe,he,De,it,yt=1;do{for(I=y,y=null,oe=null,he=0;I;){for(he++,U=I,De=0,_=0;_0||it>0&&U;)De!==0&&(it===0||!U||I.z<=U.z)?($=I,I=I.nextZ,De--):($=U,U=U.nextZ,it--),oe?oe.nextZ=$:y=$,$.prevZ=oe,oe=$;I=U}oe.nextZ=null,yt*=2}while(he>1);return y}function vS(y,_,I,U,$){return y=32767*(y-I)*$,_=32767*(_-U)*$,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,_=(_|_<<8)&16711935,_=(_|_<<4)&252645135,_=(_|_<<2)&858993459,_=(_|_<<1)&1431655765,y|_<<1}function pS(y){var _=y,I=y;do(_.x=0&&(y-he)*(U-De)-(I-he)*(_-De)>=0&&(I-he)*(oe-De)-($-he)*(U-De)>=0}function R1(y,_){return y.next.i!==_.i&&y.prev.i!==_.i&&!FC(y,_)&&(ab(y,_)&&ab(_,y)&&iq(y,_)&&(Tf(y.prev,y,_.prev)||Tf(y,_.prev,_))||ib(y,_)&&Tf(y.prev,y,y.next)>0&&Tf(_.prev,_,_.next)>0)}function Tf(y,_,I){return(_.y-y.y)*(I.x-_.x)-(_.x-y.x)*(I.y-_.y)}function ib(y,_){return y.x===_.x&&y.y===_.y}function Xw(y,_,I,U){var $=my(Tf(y,_,I)),oe=my(Tf(y,_,U)),he=my(Tf(I,U,y)),De=my(Tf(I,U,_));return!!($!==oe&&he!==De||$===0&&nb(y,I,_)||oe===0&&nb(y,U,_)||he===0&&nb(I,y,U)||De===0&&nb(I,_,U))}function nb(y,_,I){return _.x<=Math.max(y.x,I.x)&&_.x>=Math.min(y.x,I.x)&&_.y<=Math.max(y.y,I.y)&&_.y>=Math.min(y.y,I.y)}function my(y){return y>0?1:y<0?-1:0}function FC(y,_){var I=y;do{if(I.i!==y.i&&I.next.i!==y.i&&I.i!==_.i&&I.next.i!==_.i&&Xw(I,I.next,y,_))return!0;I=I.next}while(I!==y);return!1}function ab(y,_){return Tf(y.prev,y,y.next)<0?Tf(y,_,y.next)>=0&&Tf(y,y.prev,_)>=0:Tf(y,_,y.prev)<0||Tf(y,y.next,_)<0}function iq(y,_){var I=y,U=!1,$=(y.x+_.x)/2,oe=(y.y+_.y)/2;do I.y>oe!=I.next.y>oe&&I.next.y!==I.y&&$<(I.next.x-I.x)*(oe-I.y)/(I.next.y-I.y)+I.x&&(U=!U),I=I.next;while(I!==y);return U}function gS(y,_){var I=new mS(y.i,y.x,y.y),U=new mS(_.i,_.x,_.y),$=y.next,oe=_.prev;return y.next=_,_.prev=y,I.next=$,$.prev=I,U.next=I,I.prev=U,oe.next=U,U.prev=oe,U}function zC(y,_,I,U){var $=new mS(y,_,I);return U?($.next=U.next,$.prev=U,U.next.prev=$,U.next=$):($.prev=$,$.next=$),$}function ob(y){y.next.prev=y.prev,y.prev.next=y.next,y.prevZ&&(y.prevZ.nextZ=y.nextZ),y.nextZ&&(y.nextZ.prevZ=y.prevZ)}function mS(y,_,I){this.i=y,this.x=_,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}I1.deviation=function(y,_,I,U){var $=_&&_.length,oe=$?_[0]*I:y.length,he=Math.abs(yS(y,0,oe,I));if($)for(var De=0,it=_.length;De0&&(U+=y[$-1].length,I.holes.push(U))}return I},Hw.default=PC;function _S(y,_,I,U,$){pg(y,_,I||0,U||y.length-1,$||qC)}function pg(y,_,I,U,$){for(;U>I;){if(U-I>600){var oe=U-I+1,he=_-I+1,De=Math.log(oe),it=.5*Math.exp(2*De/3),yt=.5*Math.sqrt(De*it*(oe-it)/oe)*(he-oe/2<0?-1:1),Lt=Math.max(I,Math.floor(_-he*it/oe+yt)),sr=Math.min(U,Math.floor(_+(oe-he)*it/oe+yt));pg(y,_,Lt,sr,$)}var gr=y[_],hr=I,Rr=U;for(D1(y,I,_),$(y[U],gr)>0&&D1(y,I,U);hr0;)Rr--}$(y[I],gr)===0?D1(y,I,Rr):(Rr++,D1(y,Rr,U)),Rr<=_&&(I=Rr+1),_<=Rr&&(U=Rr-1)}}function D1(y,_,I){var U=y[_];y[_]=y[I],y[I]=U}function qC(y,_){return y<_?-1:y>_?1:0}function Zw(y,_){var I=y.length;if(I<=1)return[y];for(var U=[],$,oe,he=0;he1)for(var it=0;it>3}if(U--,I===1||I===2)$+=y.readSVarint(),oe+=y.readSVarint(),I===1&&(De&&he.push(De),De=[]),De.push(new u($,oe));else if(I===7)De&&De.push(De[0].clone());else throw new Error("unknown command "+I)}return De&&he.push(De),he},yy.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var _=y.readVarint()+y.pos,I=1,U=0,$=0,oe=0,he=1/0,De=-1/0,it=1/0,yt=-1/0;y.pos<_;){if(U<=0){var Lt=y.readVarint();I=Lt&7,U=Lt>>3}if(U--,I===1||I===2)$+=y.readSVarint(),oe+=y.readSVarint(),$De&&(De=$),oeyt&&(yt=oe);else if(I!==7)throw new Error("unknown command "+I)}return[he,it,De,yt]},yy.prototype.toGeoJSON=function(y,_,I){var U=this.extent*Math.pow(2,I),$=this.extent*y,oe=this.extent*_,he=this.loadGeometry(),De=yy.types[this.type],it,yt;function Lt(hr){for(var Rr=0;Rr>3;_=U===1?y.readString():U===2?y.readFloat():U===3?y.readDouble():U===4?y.readVarint64():U===5?y.readVarint():U===6?y.readSVarint():U===7?y.readBoolean():null}return _}wS.prototype.feature=function(y){if(y<0||y>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[y];var _=this._pbf.readVarint()+this._pbf.pos;return new bS(this._pbf,_,this.extent,this._keys,this._values)};var XC=aq;function aq(y,_){this.layers=y.readFields(oq,{},_)}function oq(y,_,I){if(y===3){var U=new gg(I,I.readVarint()+I.pos);U.length&&(_[U.name]=U)}}var ZC=XC,F1=bS,YC=gg,mg={VectorTile:ZC,VectorTileFeature:F1,VectorTileLayer:YC},KC=mg.VectorTileFeature.types,Kw=500,z1=Math.pow(2,13);function dm(y,_,I,U,$,oe,he,De){y.emplaceBack(_,I,Math.floor(U*z1)*2+he,$*z1*2,oe*z1*2,Math.round(De))}var Vp=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new Ii,this.indexArray=new pn,this.programConfigurations=new ci(_.layers,_.zoom),this.segments=new io,this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};Vp.prototype.populate=function(_,I,U){this.features=[],this.hasPattern=Yw("fill-extrusion",this.layers,I);for(var $=0,oe=_;$=1){var xn=Hi[bn-1];if(!sq(rn,xn)){hr.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(hr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var In=rn.sub(xn)._perp()._unit(),Xn=xn.dist(rn);wi+Xn>32768&&(wi=0),dm(this.layoutVertexArray,rn.x,rn.y,In.x,In.y,0,0,wi),dm(this.layoutVertexArray,rn.x,rn.y,In.x,In.y,0,1,wi),wi+=Xn,dm(this.layoutVertexArray,xn.x,xn.y,In.x,In.y,0,0,wi),dm(this.layoutVertexArray,xn.x,xn.y,In.x,In.y,0,1,wi);var ga=hr.vertexLength;this.indexArray.emplaceBack(ga,ga+2,ga+1),this.indexArray.emplaceBack(ga+1,ga+2,ga+3),hr.vertexLength+=4,hr.primitiveLength+=2}}}}if(hr.vertexLength+yt>io.MAX_VERTEX_ARRAY_LENGTH&&(hr=this.segments.prepareSegment(yt,this.layoutVertexArray,this.indexArray)),KC[_.type]==="Polygon"){for(var ha=[],eo=[],za=hr.vertexLength,Za=0,Jo=it;ZaEi)||y.y===_.y&&(y.y<0||y.y>Ei)}function lq(y){return y.every(function(_){return _.x<0})||y.every(function(_){return _.x>Ei})||y.every(function(_){return _.y<0})||y.every(function(_){return _.y>Ei})}var q1=new Or({"fill-extrusion-opacity":new Me(Rn["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new bt(Rn["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Me(Rn["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Me(Rn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ot(Rn["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new bt(Rn["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new bt(Rn["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Me(Rn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ld={paint:q1},vm=function(y){function _(I){y.call(this,I,ld)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.createBucket=function(U){return new Vp(U)},_.prototype.queryRadius=function(){return Pv(this.paint.get("fill-extrusion-translate"))},_.prototype.is3D=function(){return!0},_.prototype.queryIntersectsFeature=function(U,$,oe,he,De,it,yt,Lt){var sr=Jv(U,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),it.angle,yt),gr=this.paint.get("fill-extrusion-height").evaluate($,oe),hr=this.paint.get("fill-extrusion-base").evaluate($,oe),Rr=uq(sr,Lt,it,0),ni=AS(he,hr,gr,Lt),Hi=ni[0],wi=ni[1];return JC(Hi,wi,Rr)},_}(vi);function _y(y,_){return y.x*_.x+y.y*_.y}function TS(y,_){if(y.length===1){for(var I=0,U=_[I++],$;!$||U.equals($);)if($=_[I++],!$)return 1/0;for(;I<_.length;I++){var oe=_[I],he=y[0],De=$.sub(U),it=oe.sub(U),yt=he.sub(U),Lt=_y(De,De),sr=_y(De,it),gr=_y(it,it),hr=_y(yt,De),Rr=_y(yt,it),ni=Lt*gr-sr*sr,Hi=(gr*hr-sr*Rr)/ni,wi=(Lt*Rr-sr*hr)/ni,bn=1-Hi-wi,rn=U.z*bn+$.z*Hi+oe.z*wi;if(isFinite(rn))return rn}return 1/0}else{for(var xn=1/0,In=0,Xn=_;In=2&&_[yt-1].equals(_[yt-2]);)yt--;for(var Lt=0;Lt0;if(ha&&bn>Lt){var za=hr.dist(Rr);if(za>2*sr){var Za=hr.sub(hr.sub(Rr)._mult(sr/za)._round());this.updateDistance(Rr,Za),this.addCurrentVertex(Za,Hi,0,0,gr),Rr=Za}}var Jo=Rr&&ni,to=Jo?U:it?"butt":$;if(Jo&&to==="round"&&(Xnoe&&(to="bevel"),to==="bevel"&&(Xn>2&&(to="flipbevel"),Xn100)rn=wi.mult(-1);else{var ao=Xn*Hi.add(wi).mag()/Hi.sub(wi).mag();rn._perp()._mult(ao*(eo?-1:1))}this.addCurrentVertex(hr,rn,0,0,gr),this.addCurrentVertex(hr,rn.mult(-1),0,0,gr)}else if(to==="bevel"||to==="fakeround"){var _s=-Math.sqrt(Xn*Xn-1),jo=eo?_s:0,El=eo?0:_s;if(Rr&&this.addCurrentVertex(hr,Hi,jo,El,gr),to==="fakeround")for(var Iu=Math.round(ga*180/Math.PI/MS),kl=1;kl2*sr){var ch=hr.add(ni.sub(hr)._mult(sr/$h)._round());this.updateDistance(hr,ch),this.addCurrentVertex(ch,wi,0,0,gr),hr=ch}}}}},sh.prototype.addCurrentVertex=function(_,I,U,$,oe,he){he===void 0&&(he=!1);var De=I.x+I.y*U,it=I.y-I.x*U,yt=-I.x+I.y*$,Lt=-I.y-I.x*$;this.addHalfVertex(_,De,it,he,!1,U,oe),this.addHalfVertex(_,yt,Lt,he,!0,-$,oe),this.distance>fb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(_,I,U,$,oe,he))},sh.prototype.addHalfVertex=function(_,I,U,$,oe,he,De){var it=_.x,yt=_.y,Lt=this.lineClips?this.scaledDistance*(fb-1):this.scaledDistance,sr=Lt*$w;if(this.layoutVertexArray.emplaceBack((it<<1)+($?1:0),(yt<<1)+(oe?1:0),Math.round(Jw*I)+128,Math.round(Jw*U)+128,(he===0?0:he<0?-1:1)+1|(sr&63)<<2,sr>>6),this.lineClips){var gr=this.scaledDistance-this.lineClips.start,hr=this.lineClips.end-this.lineClips.start,Rr=gr/hr;this.layoutVertexArray2.emplaceBack(Rr,this.lineClipsArray.length)}var ni=De.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ni),De.primitiveLength++),oe?this.e2=ni:this.e1=ni},sh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},sh.prototype.updateDistance=function(_,I){this.distance+=_.dist(I),this.updateScaledDistance()},X("LineBucket",sh,{omit:["layers","patternFeatures"]});var ES=new Or({"line-cap":new Me(Rn.layout_line["line-cap"]),"line-join":new bt(Rn.layout_line["line-join"]),"line-miter-limit":new Me(Rn.layout_line["line-miter-limit"]),"line-round-limit":new Me(Rn.layout_line["line-round-limit"]),"line-sort-key":new bt(Rn.layout_line["line-sort-key"])}),kS=new Or({"line-opacity":new bt(Rn.paint_line["line-opacity"]),"line-color":new bt(Rn.paint_line["line-color"]),"line-translate":new Me(Rn.paint_line["line-translate"]),"line-translate-anchor":new Me(Rn.paint_line["line-translate-anchor"]),"line-width":new bt(Rn.paint_line["line-width"]),"line-gap-width":new bt(Rn.paint_line["line-gap-width"]),"line-offset":new bt(Rn.paint_line["line-offset"]),"line-blur":new bt(Rn.paint_line["line-blur"]),"line-dasharray":new Lr(Rn.paint_line["line-dasharray"]),"line-pattern":new Ot(Rn.paint_line["line-pattern"]),"line-gradient":new Vr(Rn.paint_line["line-gradient"])}),Qw={paint:kS,layout:ES},fq=function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.possiblyEvaluate=function(U,$){return $=new Un(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),y.prototype.possiblyEvaluate.call(this,U,$)},_.prototype.evaluate=function(U,$,oe,he){return $=x({},$,{zoom:Math.floor($.zoom)}),y.prototype.evaluate.call(this,U,$,oe,he)},_}(bt),R=new fq(Qw.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var A=function(y){function _(I){y.call(this,I,Qw),this.gradientVersion=0}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._handleSpecialPaintPropertyUpdate=function(U){if(U==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof _u,this.gradientVersion=(this.gradientVersion+1)%d}},_.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},_.prototype.recalculate=function(U,$){y.prototype.recalculate.call(this,U,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,U)},_.prototype.createBucket=function(U){return new sh(U)},_.prototype.queryRadius=function(U){var $=U,oe=F(Ad("line-width",this,$),Ad("line-gap-width",this,$)),he=Ad("line-offset",this,$);return oe/2+Math.abs(he)+Pv(this.paint.get("line-translate"))},_.prototype.queryIntersectsFeature=function(U,$,oe,he,De,it,yt){var Lt=Jv(U,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),it.angle,yt),sr=yt/2*F(this.paint.get("line-width").evaluate($,oe),this.paint.get("line-gap-width").evaluate($,oe)),gr=this.paint.get("line-offset").evaluate($,oe);return gr&&(he=W(he,gr*yt)),ou(Lt,he,sr)},_.prototype.isTileClipped=function(){return!0},_}(vi);function F(y,_){return _>0?_+2*y:y}function W(y,_){for(var I=[],U=new u(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function ln(y){for(var _="",I=0;I>1,Lt=-7,sr=I?$-1:0,gr=I?-1:1,hr=y[_+sr];for(sr+=gr,oe=hr&(1<<-Lt)-1,hr>>=-Lt,Lt+=De;Lt>0;oe=oe*256+y[_+sr],sr+=gr,Lt-=8);for(he=oe&(1<<-Lt)-1,oe>>=-Lt,Lt+=U;Lt>0;he=he*256+y[_+sr],sr+=gr,Lt-=8);if(oe===0)oe=1-yt;else{if(oe===it)return he?NaN:(hr?-1:1)*(1/0);he=he+Math.pow(2,U),oe=oe-yt}return(hr?-1:1)*he*Math.pow(2,oe-U)},ro=function(y,_,I,U,$,oe){var he,De,it,yt=oe*8-$-1,Lt=(1<>1,gr=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,hr=U?0:oe-1,Rr=U?1:-1,ni=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(De=isNaN(_)?1:0,he=Lt):(he=Math.floor(Math.log(_)/Math.LN2),_*(it=Math.pow(2,-he))<1&&(he--,it*=2),he+sr>=1?_+=gr/it:_+=gr*Math.pow(2,1-sr),_*it>=2&&(he++,it/=2),he+sr>=Lt?(De=0,he=Lt):he+sr>=1?(De=(_*it-1)*Math.pow(2,$),he=he+sr):(De=_*Math.pow(2,sr-1)*Math.pow(2,$),he=0));$>=8;y[I+hr]=De&255,hr+=Rr,De/=256,$-=8);for(he=he<<$|De,yt+=$;yt>0;y[I+hr]=he&255,hr+=Rr,he/=256,yt-=8);y[I+hr-Rr]|=ni*128},Vo={read:pa,write:ro},Xa=la;function la(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||0),this.pos=0,this.type=0,this.length=this.buf.length}la.Varint=0,la.Fixed64=1,la.Bytes=2,la.Fixed32=5;var Mo=65536*65536,fo=1/Mo,lo=12,Wn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");la.prototype={destroy:function(){this.buf=null},readFields:function(y,_,I){for(I=I||this.length;this.pos>3,oe=this.pos;this.type=U&7,y($,_,this),this.pos===oe&&this.skip(U)}return _},readMessage:function(y,_){return this.readFields(y,_,this.readVarint()+this.pos)},readFixed32:function(){var y=Yh(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=Fv(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=Yh(this.buf,this.pos)+Yh(this.buf,this.pos+4)*Mo;return this.pos+=8,y},readSFixed64:function(){var y=Yh(this.buf,this.pos)+Fv(this.buf,this.pos+4)*Mo;return this.pos+=8,y},readFloat:function(){var y=Vo.read(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=Vo.read(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var _=this.buf,I,U;return U=_[this.pos++],I=U&127,U<128||(U=_[this.pos++],I|=(U&127)<<7,U<128)||(U=_[this.pos++],I|=(U&127)<<14,U<128)||(U=_[this.pos++],I|=(U&127)<<21,U<128)?I:(U=_[this.pos],I|=(U&15)<<28,Ro(I,y,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var y=this.readVarint();return y%2===1?(y+1)/-2:y/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var y=this.readVarint()+this.pos,_=this.pos;return this.pos=y,y-_>=lo&&Wn?ru(this.buf,_,y):uv(this.buf,_,y)},readBytes:function(){var y=this.readVarint()+this.pos,_=this.buf.subarray(this.pos,y);return this.pos=y,_},readPackedVarint:function(y,_){if(this.type!==la.Bytes)return y.push(this.readVarint(_));var I=uo(this);for(y=y||[];this.pos127;);else if(_===la.Bytes)this.pos=this.readVarint()+this.pos;else if(_===la.Fixed32)this.pos+=4;else if(_===la.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+_)},writeTag:function(y,_){this.writeVarint(y<<3|_)},realloc:function(y){for(var _=this.length||16;_268435455||y<0){Ju(y,this);return}this.realloc(4),this.buf[this.pos++]=y&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=y>>>7&127)))},writeSVarint:function(y){this.writeVarint(y<0?-y*2-1:y*2)},writeBoolean:function(y){this.writeVarint(!!y)},writeString:function(y){y=String(y),this.realloc(y.length*4),this.pos++;var _=this.pos;this.pos=pc(this.buf,y,this.pos);var I=this.pos-_;I>=128&&Qv(_,I,this),this.pos=_-1,this.writeVarint(I),this.pos+=I},writeFloat:function(y){this.realloc(4),Vo.write(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),Vo.write(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var _=y.length;this.writeVarint(_),this.realloc(_);for(var I=0;I<_;I++)this.buf[this.pos++]=y[I]},writeRawMessage:function(y,_){this.pos++;var I=this.pos;y(_,this);var U=this.pos-I;U>=128&&Qv(I,U,this),this.pos=I-1,this.writeVarint(U),this.pos+=U},writeMessage:function(y,_,I){this.writeTag(y,la.Bytes),this.writeRawMessage(_,I)},writePackedVarint:function(y,_){_.length&&this.writeMessage(y,ud,_)},writePackedSVarint:function(y,_){_.length&&this.writeMessage(y,Ch,_)},writePackedBoolean:function(y,_){_.length&&this.writeMessage(y,jd,_)},writePackedFloat:function(y,_){_.length&&this.writeMessage(y,Gd,_)},writePackedDouble:function(y,_){_.length&&this.writeMessage(y,Hd,_)},writePackedFixed32:function(y,_){_.length&&this.writeMessage(y,Af,_)},writePackedSFixed32:function(y,_){_.length&&this.writeMessage(y,Lh,_)},writePackedFixed64:function(y,_){_.length&&this.writeMessage(y,Ed,_)},writePackedSFixed64:function(y,_){_.length&&this.writeMessage(y,cd,_)},writeBytesField:function(y,_){this.writeTag(y,la.Bytes),this.writeBytes(_)},writeFixed32Field:function(y,_){this.writeTag(y,la.Fixed32),this.writeFixed32(_)},writeSFixed32Field:function(y,_){this.writeTag(y,la.Fixed32),this.writeSFixed32(_)},writeFixed64Field:function(y,_){this.writeTag(y,la.Fixed64),this.writeFixed64(_)},writeSFixed64Field:function(y,_){this.writeTag(y,la.Fixed64),this.writeSFixed64(_)},writeVarintField:function(y,_){this.writeTag(y,la.Varint),this.writeVarint(_)},writeSVarintField:function(y,_){this.writeTag(y,la.Varint),this.writeSVarint(_)},writeStringField:function(y,_){this.writeTag(y,la.Bytes),this.writeString(_)},writeFloatField:function(y,_){this.writeTag(y,la.Fixed32),this.writeFloat(_)},writeDoubleField:function(y,_){this.writeTag(y,la.Fixed64),this.writeDouble(_)},writeBooleanField:function(y,_){this.writeVarintField(y,!!_)}};function Ro(y,_,I){var U=I.buf,$,oe;if(oe=U[I.pos++],$=(oe&112)>>4,oe<128||(oe=U[I.pos++],$|=(oe&127)<<3,oe<128)||(oe=U[I.pos++],$|=(oe&127)<<10,oe<128)||(oe=U[I.pos++],$|=(oe&127)<<17,oe<128)||(oe=U[I.pos++],$|=(oe&127)<<24,oe<128)||(oe=U[I.pos++],$|=(oe&1)<<31,oe<128))return $o(y,$,_);throw new Error("Expected varint not more than 10 bytes")}function uo(y){return y.type===la.Bytes?y.readVarint()+y.pos:y.pos+1}function $o(y,_,I){return I?_*4294967296+(y>>>0):(_>>>0)*4294967296+(y>>>0)}function Ju(y,_){var I,U;if(y>=0?(I=y%4294967296|0,U=y/4294967296|0):(I=~(-y%4294967296),U=~(-y/4294967296),I^4294967295?I=I+1|0:(I=0,U=U+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");_.realloc(10),Ou(I,U,_),kh(U,_)}function Ou(y,_,I){I.buf[I.pos++]=y&127|128,y>>>=7,I.buf[I.pos++]=y&127|128,y>>>=7,I.buf[I.pos++]=y&127|128,y>>>=7,I.buf[I.pos++]=y&127|128,y>>>=7,I.buf[I.pos]=y&127}function kh(y,_){var I=(y&7)<<4;_.buf[_.pos++]|=I|((y>>>=3)?128:0),y&&(_.buf[_.pos++]=y&127|((y>>>=7)?128:0),y&&(_.buf[_.pos++]=y&127|((y>>>=7)?128:0),y&&(_.buf[_.pos++]=y&127|((y>>>=7)?128:0),y&&(_.buf[_.pos++]=y&127|((y>>>=7)?128:0),y&&(_.buf[_.pos++]=y&127)))))}function Qv(y,_,I){var U=_<=16383?1:_<=2097151?2:_<=268435455?3:Math.floor(Math.log(_)/(Math.LN2*7));I.realloc(U);for(var $=I.pos-1;$>=y;$--)I.buf[$+U]=I.buf[$]}function ud(y,_){for(var I=0;I>>8,y[I+2]=_>>>16,y[I+3]=_>>>24}function Fv(y,_){return(y[_]|y[_+1]<<8|y[_+2]<<16)+(y[_+3]<<24)}function uv(y,_,I){for(var U="",$=_;$239?4:oe>223?3:oe>191?2:1;if($+De>I)break;var it,yt,Lt;De===1?oe<128&&(he=oe):De===2?(it=y[$+1],(it&192)===128&&(he=(oe&31)<<6|it&63,he<=127&&(he=null))):De===3?(it=y[$+1],yt=y[$+2],(it&192)===128&&(yt&192)===128&&(he=(oe&15)<<12|(it&63)<<6|yt&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):De===4&&(it=y[$+1],yt=y[$+2],Lt=y[$+3],(it&192)===128&&(yt&192)===128&&(Lt&192)===128&&(he=(oe&15)<<18|(it&63)<<12|(yt&63)<<6|Lt&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,De=1):he>65535&&(he-=65536,U+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),U+=String.fromCharCode(he),$+=De}return U}function ru(y,_,I){return Wn.decode(y.subarray(_,I))}function pc(y,_,I){for(var U=0,$,oe;U<_.length;U++){if($=_.charCodeAt(U),$>55295&&$<57344)if(oe)if($<56320){y[I++]=239,y[I++]=191,y[I++]=189,oe=$;continue}else $=oe-55296<<10|$-56320|65536,oe=null;else{$>56319||U+1===_.length?(y[I++]=239,y[I++]=191,y[I++]=189):oe=$;continue}else oe&&(y[I++]=239,y[I++]=191,y[I++]=189,oe=null);$<128?y[I++]=$:($<2048?y[I++]=$>>6|192:($<65536?y[I++]=$>>12|224:(y[I++]=$>>18|240,y[I++]=$>>12&63|128),y[I++]=$>>6&63|128),y[I++]=$&63|128)}return I}var $u=3;function zv(y,_,I){y===1&&I.readMessage(hf,_)}function hf(y,_,I){if(y===3){var U=I.readMessage(O1,{}),$=U.id,oe=U.bitmap,he=U.width,De=U.height,it=U.left,yt=U.top,Lt=U.advance;_.push({id:$,bitmap:new Dv({width:he+2*$u,height:De+2*$u},oe),metrics:{width:he,height:De,left:it,top:yt,advance:Lt}})}}function O1(y,_,I){y===1?_.id=I.readVarint():y===2?_.bitmap=I.readBytes():y===3?_.width=I.readVarint():y===4?_.height=I.readVarint():y===5?_.left=I.readSVarint():y===6?_.top=I.readSVarint():y===7&&(_.advance=I.readVarint())}function p0(y){return new Xa(y).readFields(zv,[])}var Gp=$u;function ep(y){for(var _=0,I=0,U=0,$=y;U<$.length;U+=1){var oe=$[U];_+=oe.w*oe.h,I=Math.max(I,oe.w)}y.sort(function(Hi,wi){return wi.h-Hi.h});for(var he=Math.max(Math.ceil(Math.sqrt(_/.95)),I),De=[{x:0,y:0,w:he,h:1/0}],it=0,yt=0,Lt=0,sr=y;Lt=0;hr--){var Rr=De[hr];if(!(gr.w>Rr.w||gr.h>Rr.h)){if(gr.x=Rr.x,gr.y=Rr.y,yt=Math.max(yt,gr.y+gr.h),it=Math.max(it,gr.x+gr.w),gr.w===Rr.w&&gr.h===Rr.h){var ni=De.pop();hr=0&&$>=_&&m0[this.text.charCodeAt($)];$--)U--;this.text=this.text.substring(_,U),this.sectionIndex=this.sectionIndex.slice(_,U)},Kh.prototype.substring=function(_,I){var U=new Kh;return U.text=this.text.substring(_,I),U.sectionIndex=this.sectionIndex.slice(_,I),U.sections=this.sections,U},Kh.prototype.toString=function(){return this.text},Kh.prototype.getMaxScale=function(){var _=this;return this.sectionIndex.reduce(function(I,U){return Math.max(I,_.sections[U].scale)},0)},Kh.prototype.addTextSection=function(_,I){this.text+=_.text,this.sections.push(xy.forText(_.scale,_.fontStack||I));for(var U=this.sections.length-1,$=0;$<_.text.length;++$)this.sectionIndex.push(U)},Kh.prototype.addImageSection=function(_){var I=_.image?_.image.name:"";if(I.length===0){ie("Can't add FormattedSection with an empty image.");return}var U=this.getNextImageSectionCharCode();if(!U){ie("Reached maximum number of images "+(g0-e3+2));return}this.text+=String.fromCharCode(U),this.sections.push(xy.forImage(I)),this.sectionIndex.push(this.sections.length-1)},Kh.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=g0?null:++this.imageSectionID:(this.imageSectionID=e3,this.imageSectionID)};function hq(y,_){for(var I=[],U=y.text,$=0,oe=0,he=_;oe=0,Lt=0,sr=0;sr0&&ch>eo&&(eo=ch)}else{var Cl=I[Za.fontStack],yl=Cl&&Cl[to];if(yl&&yl.rect)jo=yl.rect,_s=yl.metrics;else{var Qu=_[Za.fontStack],gc=Qu&&Qu[to];if(!gc)continue;_s=gc.metrics}ao=(In-Za.scale)*Tn}kl?(y.verticalizable=!0,ha.push({glyph:to,imageName:El,x:gr,y:hr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Jo,metrics:_s,rect:jo}),gr+=Iu*Za.scale+yt):(ha.push({glyph:to,imageName:El,x:gr,y:hr+ao,vertical:kl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Jo,metrics:_s,rect:jo}),gr+=_s.advance*Za.scale+yt)}if(ha.length!==0){var Xd=gr-yt;Rr=Math.max(Xd,Rr),gq(ha,0,ha.length-1,Hi,eo)}gr=0;var Zd=oe*In+eo;ga.lineOffset=Math.max(eo,Xn),hr+=Zd,ni=Math.max(Zd,ni),++wi}var Qh=hr-B1,hv=LS(he),dv=hv.horizontalAlign,Ph=hv.verticalAlign;kd(y.positionedLines,Hi,dv,Ph,Rr,ni,oe,Qh,$.length),y.top+=-Ph*Qh,y.bottom=y.top+Qh,y.left+=-dv*Rr,y.right=y.left+Rr}function gq(y,_,I,U,$){if(!(!U&&!$))for(var oe=y[I],he=oe.metrics.advance*oe.scale,De=(y[I].x+he)*U,it=_;it<=I;it++)y[it].x-=De,y[it].y+=$}function kd(y,_,I,U,$,oe,he,De,it){var yt=(_-I)*$,Lt=0;oe!==he?Lt=-De*U-B1:Lt=(-U*it+.5)*he;for(var sr=0,gr=y;sr-I/2;){if(he--,he<0)return!1;De-=y[he].dist(oe),oe=y[he]}De+=y[he].dist(y[he+1]),he++;for(var it=[],yt=0;DeU;)yt-=it.shift().angleDelta;if(yt>$)return!1;he++,De+=sr.dist(gr)}return!0}function GQ(y){for(var _=0,I=0;Iyt){var Rr=(yt-it)/hr,ni=nl(sr.x,gr.x,Rr),Hi=nl(sr.y,gr.y,Rr),wi=new Wd(ni,Hi,gr.angleTo(sr),Lt);return wi._round(),!he||VQ(y,wi,De,he,_)?wi:void 0}it+=hr}}function Bet(y,_,I,U,$,oe,he,De,it){var yt=HQ(U,oe,he),Lt=jQ(U,$),sr=Lt*he,gr=y[0].x===0||y[0].x===it||y[0].y===0||y[0].y===it;_-sr<_/4&&(_=sr+_/4);var hr=oe*2,Rr=gr?_/2*De%_:(Lt/2+hr)*he*De%_;return WQ(y,Rr,_,yt,I,sr,gr,!1,it)}function WQ(y,_,I,U,$,oe,he,De,it){for(var yt=oe/2,Lt=GQ(y),sr=0,gr=_-I,hr=[],Rr=0;Rr=0&&xn=0&&In=0&&gr+yt<=Lt){var Xn=new Wd(xn,In,bn,Rr);Xn._round(),(!U||VQ(y,Xn,oe,U,$))&&hr.push(Xn)}}sr+=wi}return!De&&!hr.length&&!he&&(hr=WQ(y,sr/2,I,U,$,oe,he,!0,it)),hr}function XQ(y,_,I,U,$){for(var oe=[],he=0;he=U&&sr.x>=U)&&(Lt.x>=U?Lt=new u(U,Lt.y+(sr.y-Lt.y)*((U-Lt.x)/(sr.x-Lt.x)))._round():sr.x>=U&&(sr=new u(U,Lt.y+(sr.y-Lt.y)*((U-Lt.x)/(sr.x-Lt.x)))._round()),!(Lt.y>=$&&sr.y>=$)&&(Lt.y>=$?Lt=new u(Lt.x+(sr.x-Lt.x)*(($-Lt.y)/(sr.y-Lt.y)),$)._round():sr.y>=$&&(sr=new u(Lt.x+(sr.x-Lt.x)*(($-Lt.y)/(sr.y-Lt.y)),$)._round()),(!it||!Lt.equals(it[it.length-1]))&&(it=[Lt],oe.push(it)),it.push(sr)))))}return oe}var i3=Gc;function ZQ(y,_,I,U){var $=[],oe=y.image,he=oe.pixelRatio,De=oe.paddedRect.w-2*i3,it=oe.paddedRect.h-2*i3,yt=y.right-y.left,Lt=y.bottom-y.top,sr=oe.stretchX||[[0,De]],gr=oe.stretchY||[[0,it]],hr=function(Cl,yl){return Cl+yl[1]-yl[0]},Rr=sr.reduce(hr,0),ni=gr.reduce(hr,0),Hi=De-Rr,wi=it-ni,bn=0,rn=Rr,xn=0,In=ni,Xn=0,ga=Hi,ha=0,eo=wi;if(oe.content&&U){var za=oe.content;bn=a6(sr,0,za[0]),xn=a6(gr,0,za[1]),rn=a6(sr,za[0],za[2]),In=a6(gr,za[1],za[3]),Xn=za[0]-bn,ha=za[1]-xn,ga=za[2]-za[0]-rn,eo=za[3]-za[1]-In}var Za=function(Cl,yl,Qu,gc){var Sf=o6(Cl.stretch-bn,rn,yt,y.left),Ff=s6(Cl.fixed-Xn,ga,Cl.stretch,Rr),$h=o6(yl.stretch-xn,In,Lt,y.top),ch=s6(yl.fixed-ha,eo,yl.stretch,ni),Xd=o6(Qu.stretch-bn,rn,yt,y.left),Zd=s6(Qu.fixed-Xn,ga,Qu.stretch,Rr),Qh=o6(gc.stretch-xn,In,Lt,y.top),hv=s6(gc.fixed-ha,eo,gc.stretch,ni),dv=new u(Sf,$h),Ph=new u(Xd,$h),vv=new u(Xd,Qh),bp=new u(Sf,Qh),Ty=new u(Ff/he,ch/he),V1=new u(Zd/he,hv/he),G1=_*Math.PI/180;if(G1){var H1=Math.sin(G1),f3=Math.cos(G1),y0=[f3,-H1,H1,f3];dv._matMult(y0),Ph._matMult(y0),bp._matMult(y0),vv._matMult(y0)}var d6=Cl.stretch+Cl.fixed,Aq=Qu.stretch+Qu.fixed,v6=yl.stretch+yl.fixed,Sq=gc.stretch+gc.fixed,Hp={x:oe.paddedRect.x+i3+d6,y:oe.paddedRect.y+i3+v6,w:Aq-d6,h:Sq-v6},h3=ga/he/yt,p6=eo/he/Lt;return{tl:dv,tr:Ph,bl:bp,br:vv,tex:Hp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Ty,pixelOffsetBR:V1,minFontScaleX:h3,minFontScaleY:p6,isSDF:I}};if(!U||!oe.stretchX&&!oe.stretchY)$.push(Za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:De+1},{fixed:0,stretch:it+1}));else for(var Jo=YQ(sr,Hi,Rr),to=YQ(gr,wi,ni),ao=0;ao0&&(Rr=Math.max(10,Rr),this.circleDiameter=Rr)}else{var ni=he.top*De-it,Hi=he.bottom*De+it,wi=he.left*De-it,bn=he.right*De+it,rn=he.collisionPadding;if(rn&&(wi-=rn[0]*De,ni-=rn[1]*De,bn+=rn[2]*De,Hi+=rn[3]*De),Lt){var xn=new u(wi,ni),In=new u(bn,ni),Xn=new u(wi,Hi),ga=new u(bn,Hi),ha=Lt*Math.PI/180;xn._rotate(ha),In._rotate(ha),Xn._rotate(ha),ga._rotate(ha),wi=Math.min(xn.x,In.x,Xn.x,ga.x),bn=Math.max(xn.x,In.x,Xn.x,ga.x),ni=Math.min(xn.y,In.y,Xn.y,ga.y),Hi=Math.max(xn.y,In.y,Xn.y,ga.y)}_.emplaceBack(I.x,I.y,wi,ni,bn,Hi,U,$,oe)}this.boxEndIndex=_.length},n3=function(_,I){if(_===void 0&&(_=[]),I===void 0&&(I=Uet),this.data=_,this.length=this.data.length,this.compare=I,this.length>0)for(var U=(this.length>>1)-1;U>=0;U--)this._down(U)};n3.prototype.push=function(_){this.data.push(_),this.length++,this._up(this.length-1)},n3.prototype.pop=function(){if(this.length!==0){var _=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),_}},n3.prototype.peek=function(){return this.data[0]},n3.prototype._up=function(_){for(var I=this,U=I.data,$=I.compare,oe=U[_];_>0;){var he=_-1>>1,De=U[he];if($(oe,De)>=0)break;U[_]=De,_=he}U[_]=oe},n3.prototype._down=function(_){for(var I=this,U=I.data,$=I.compare,oe=this.length>>1,he=U[_];_=0)break;U[_]=it,_=De}U[_]=he};function Uet(y,_){return y<_?-1:y>_?1:0}function Vet(y,_,I){_===void 0&&(_=1),I===void 0&&(I=!1);for(var U=1/0,$=1/0,oe=-1/0,he=-1/0,De=y[0],it=0;itoe)&&(oe=yt.x),(!it||yt.y>he)&&(he=yt.y)}var Lt=oe-U,sr=he-$,gr=Math.min(Lt,sr),hr=gr/2,Rr=new n3([],Get);if(gr===0)return new u(U,$);for(var ni=U;niwi.d||!wi.d)&&(wi=rn,I&&console.log("found best %d after %d probes",Math.round(1e4*rn.d)/1e4,bn)),!(rn.max-wi.d<=_)&&(hr=rn.h/2,Rr.push(new a3(rn.p.x-hr,rn.p.y-hr,hr,y)),Rr.push(new a3(rn.p.x+hr,rn.p.y-hr,hr,y)),Rr.push(new a3(rn.p.x-hr,rn.p.y+hr,hr,y)),Rr.push(new a3(rn.p.x+hr,rn.p.y+hr,hr,y)),bn+=4)}return I&&(console.log("num probes: "+bn),console.log("best distance: "+wi.d)),wi.p}function Get(y,_){return _.max-y.max}function a3(y,_,I,U){this.p=new u(y,_),this.h=I,this.d=Het(this.p,U),this.max=this.d+this.h*Math.SQRT2}function Het(y,_){for(var I=!1,U=1/0,$=0;$<_.length;$++)for(var oe=_[$],he=0,De=oe.length,it=De-1;hey.y!=Lt.y>y.y&&y.x<(Lt.x-yt.x)*(y.y-yt.y)/(Lt.y-yt.y)+yt.x&&(I=!I),U=Math.min(U,hg(y,yt,Lt))}return(I?1:-1)*Math.sqrt(U)}function jet(y){for(var _=0,I=0,U=0,$=y[0],oe=0,he=$.length,De=he-1;oe=Ei||y0.y<0||y0.y>=Ei||Zet(y,y0,f3,I,U,$,to,y.layers[0],y.collisionBoxArray,_.index,_.sourceLayerIndex,y.index,wi,In,ha,it,rn,Xn,eo,hr,_,oe,yt,Lt,he)};if(za==="line")for(var _s=0,jo=XQ(_.geometry,0,0,Ei,Ei);_s1){var $h=Oet(Ff,ga,I.vertical||Rr,U,ni,bn);$h&&ao(Ff,$h)}}else if(_.type==="Polygon")for(var ch=0,Xd=Zw(_.geometry,0);chN1&&ie(y.layerIds[0]+': Value for "text-size" is >= '+PS+'. Reduce your "text-size".')):Hi.kind==="composite"&&(wi=[Cd*hr.compositeTextSizes[0].evaluate(he,{},Rr),Cd*hr.compositeTextSizes[1].evaluate(he,{},Rr)],(wi[0]>N1||wi[1]>N1)&&ie(y.layerIds[0]+': Value for "text-size" is >= '+PS+'. Reduce your "text-size".')),y.addSymbols(y.text,ni,wi,De,oe,he,yt,_,it.lineStartIndex,it.lineLength,gr,Rr);for(var bn=0,rn=Lt;bnN1&&ie(y.layerIds[0]+': Value for "icon-size" is >= '+PS+'. Reduce your "icon-size".')):dv.kind==="composite"&&(Ph=[Cd*In.compositeIconSizes[0].evaluate(xn,{},ga),Cd*In.compositeIconSizes[1].evaluate(xn,{},ga)],(Ph[0]>N1||Ph[1]>N1)&&ie(y.layerIds[0]+': Value for "icon-size" is >= '+PS+'. Reduce your "icon-size".')),y.addSymbols(y.icon,Qh,Ph,rn,bn,xn,!1,_,za.lineStartIndex,za.lineLength,-1,ga),kl=y.icon.placedSymbolArray.length-1,hv&&(jo=hv.length*4,y.addSymbols(y.icon,hv,Ph,rn,bn,xn,cv.vertical,_,za.lineStartIndex,za.lineLength,-1,ga),Cl=y.icon.placedSymbolArray.length-1)}for(var vv in U.horizontal){var bp=U.horizontal[vv];if(!Za){Qu=K(bp.text);var Ty=De.layout.get("text-rotate").evaluate(xn,{},ga);Za=new l6(it,_,yt,Lt,sr,bp,gr,hr,Rr,Ty)}var V1=bp.positionedLines.length===1;if(El+=JQ(y,_,bp,oe,De,Rr,xn,ni,za,U.vertical?cv.horizontal:cv.horizontalOnly,V1?Object.keys(U.horizontal):[vv],yl,kl,In,ga),V1)break}U.vertical&&(Iu+=JQ(y,_,U.vertical,oe,De,Rr,xn,ni,za,cv.vertical,["vertical"],yl,Cl,In,ga));var G1=Za?Za.boxStartIndex:y.collisionBoxArray.length,H1=Za?Za.boxEndIndex:y.collisionBoxArray.length,f3=to?to.boxStartIndex:y.collisionBoxArray.length,y0=to?to.boxEndIndex:y.collisionBoxArray.length,d6=Jo?Jo.boxStartIndex:y.collisionBoxArray.length,Aq=Jo?Jo.boxEndIndex:y.collisionBoxArray.length,v6=ao?ao.boxStartIndex:y.collisionBoxArray.length,Sq=ao?ao.boxEndIndex:y.collisionBoxArray.length,Hp=-1,h3=function(DS,vee){return DS&&DS.circleDiameter?Math.max(DS.circleDiameter,vee):vee};Hp=h3(Za,Hp),Hp=h3(to,Hp),Hp=h3(Jo,Hp),Hp=h3(ao,Hp);var p6=Hp>-1?1:0;p6&&(Hp*=ha/Tn),y.glyphOffsetArray.length>=Pu.MAX_GLYPHS&&ie("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),xn.sortKey!==void 0&&y.addToSortKeyRanges(y.symbolInstances.length,xn.sortKey),y.symbolInstances.emplaceBack(_.x,_.y,yl.right>=0?yl.right:-1,yl.center>=0?yl.center:-1,yl.left>=0?yl.left:-1,yl.vertical||-1,kl,Cl,Qu,G1,H1,f3,y0,d6,Aq,v6,Sq,yt,El,Iu,_s,jo,p6,0,gr,gc,Sf,Hp)}function Yet(y,_,I,U){var $=y.compareText;if(!(_ in $))$[_]=[];else for(var oe=$[_],he=oe.length-1;he>=0;he--)if(U.dist(oe[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),Lt=it.value.kind!=="constant"||!!it.value.value||Object.keys(it.parameters).length>0,sr=oe.get("symbol-sort-key");if(this.features=[],!(!yt&&!Lt)){for(var gr=I.iconDependencies,hr=I.glyphDependencies,Rr=I.availableImages,ni=new Un(this.zoom),Hi=0,wi=_;Hi=0;for(var Iu=0,kl=eo.sections;Iu=0;it--)he[it]={x:I[it].x,y:I[it].y,tileUnitDistanceFromAnchor:oe},it>0&&(oe+=I[it-1].dist(I[it]));for(var yt=0;yt0},Pu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Pu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Pu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Pu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Pu.prototype.addIndicesForPlacedSymbol=function(_,I){for(var U=_.placedSymbolArray.get(I),$=U.vertexStartIndex+U.numGlyphs*4,oe=U.vertexStartIndex;oe<$;oe+=4)_.indexArray.emplaceBack(oe,oe+1,oe+2),_.indexArray.emplaceBack(oe+1,oe+2,oe+3)},Pu.prototype.getSortedSymbolIndexes=function(_){if(this.sortedAngle===_&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(_),U=Math.cos(_),$=[],oe=[],he=[],De=0;De1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(_),this.sortedAngle=_,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var U=0,$=this.symbolInstanceIndexes;U<$.length;U+=1){var oe=$[U],he=this.symbolInstances.get(oe);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(De,it,yt){De>=0&&yt.indexOf(De)===it&&I.addIndicesForPlacedSymbol(I.text,De)}),he.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,he.verticalPlacedTextSymbolIndex),he.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.placedIconSymbolIndex),he.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},X("SymbolBucket",Pu,{omit:["layers","collisionBoxArray","features","compareText"]}),Pu.MAX_GLYPHS=65535,Pu.addDynamicAttributes=_q;function Qet(y,_){return _.replace(/{([^{}]+)}/g,function(I,U){return U in y?String(y[U]):""})}var ett=new Or({"symbol-placement":new Me(Rn.layout_symbol["symbol-placement"]),"symbol-spacing":new Me(Rn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Me(Rn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new bt(Rn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Me(Rn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Me(Rn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Me(Rn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Me(Rn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Me(Rn.layout_symbol["icon-rotation-alignment"]),"icon-size":new bt(Rn.layout_symbol["icon-size"]),"icon-text-fit":new Me(Rn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Me(Rn.layout_symbol["icon-text-fit-padding"]),"icon-image":new bt(Rn.layout_symbol["icon-image"]),"icon-rotate":new bt(Rn.layout_symbol["icon-rotate"]),"icon-padding":new Me(Rn.layout_symbol["icon-padding"]),"icon-keep-upright":new Me(Rn.layout_symbol["icon-keep-upright"]),"icon-offset":new bt(Rn.layout_symbol["icon-offset"]),"icon-anchor":new bt(Rn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Me(Rn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Me(Rn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Me(Rn.layout_symbol["text-rotation-alignment"]),"text-field":new bt(Rn.layout_symbol["text-field"]),"text-font":new bt(Rn.layout_symbol["text-font"]),"text-size":new bt(Rn.layout_symbol["text-size"]),"text-max-width":new bt(Rn.layout_symbol["text-max-width"]),"text-line-height":new Me(Rn.layout_symbol["text-line-height"]),"text-letter-spacing":new bt(Rn.layout_symbol["text-letter-spacing"]),"text-justify":new bt(Rn.layout_symbol["text-justify"]),"text-radial-offset":new bt(Rn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Me(Rn.layout_symbol["text-variable-anchor"]),"text-anchor":new bt(Rn.layout_symbol["text-anchor"]),"text-max-angle":new Me(Rn.layout_symbol["text-max-angle"]),"text-writing-mode":new Me(Rn.layout_symbol["text-writing-mode"]),"text-rotate":new bt(Rn.layout_symbol["text-rotate"]),"text-padding":new Me(Rn.layout_symbol["text-padding"]),"text-keep-upright":new Me(Rn.layout_symbol["text-keep-upright"]),"text-transform":new bt(Rn.layout_symbol["text-transform"]),"text-offset":new bt(Rn.layout_symbol["text-offset"]),"text-allow-overlap":new Me(Rn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Me(Rn.layout_symbol["text-ignore-placement"]),"text-optional":new Me(Rn.layout_symbol["text-optional"])}),ttt=new Or({"icon-opacity":new bt(Rn.paint_symbol["icon-opacity"]),"icon-color":new bt(Rn.paint_symbol["icon-color"]),"icon-halo-color":new bt(Rn.paint_symbol["icon-halo-color"]),"icon-halo-width":new bt(Rn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new bt(Rn.paint_symbol["icon-halo-blur"]),"icon-translate":new Me(Rn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Me(Rn.paint_symbol["icon-translate-anchor"]),"text-opacity":new bt(Rn.paint_symbol["text-opacity"]),"text-color":new bt(Rn.paint_symbol["text-color"],{runtimeType:Ol,getOverride:function(y){return y.textColor},hasOverride:function(y){return!!y.textColor}}),"text-halo-color":new bt(Rn.paint_symbol["text-halo-color"]),"text-halo-width":new bt(Rn.paint_symbol["text-halo-width"]),"text-halo-blur":new bt(Rn.paint_symbol["text-halo-blur"]),"text-translate":new Me(Rn.paint_symbol["text-translate"]),"text-translate-anchor":new Me(Rn.paint_symbol["text-translate-anchor"])}),xq={paint:ttt,layout:ett},l3=function(_){this.type=_.property.overrides?_.property.overrides.runtimeType:ac,this.defaultValue=_};l3.prototype.evaluate=function(_){if(_.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(_.formattedSection))return I.getOverride(_.formattedSection)}return _.feature&&_.featureState?this.defaultValue.evaluate(_.feature,_.featureState):this.defaultValue.property.specification.default},l3.prototype.eachChild=function(_){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;_(I._styleExpression.expression)}},l3.prototype.outputDefined=function(){return!1},l3.prototype.serialize=function(){return null},X("FormatSectionOverride",l3,{omit:["defaultValue"]});var rtt=function(y){function _(I){y.call(this,I,xq)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.recalculate=function(U,$){if(y.prototype.recalculate.call(this,U,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var oe=this.layout.get("text-writing-mode");if(oe){for(var he=[],De=0,it=oe;De",targetMapId:$,sourceMapId:he.mapId})}}},u3.prototype.receive=function(_){var I=_.data,U=I.id;if(U&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[U];var $=this.cancelCallbacks[U];delete this.cancelCallbacks[U],$&&$()}else Ce()||I.mustQueue?(this.tasks[U]=I,this.taskQueue.push(U),this.invoker.trigger()):this.processTask(U,I)},u3.prototype.process=function(){if(this.taskQueue.length){var _=this.taskQueue.shift(),I=this.tasks[_];delete this.tasks[_],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(_,I)}},u3.prototype.processTask=function(_,I){var U=this;if(I.type===""){var $=this.callbacks[_];delete this.callbacks[_],$&&(I.error?$(Ye(I.error)):$(null,Ye(I.data)))}else{var oe=!1,he=Se(this.globalScope)?void 0:[],De=I.hasCallback?function(gr,hr){oe=!0,delete U.cancelCallbacks[_],U.target.postMessage({id:_,type:"",sourceMapId:U.mapId,error:gr?Ve(gr):null,data:Ve(hr,he)},he)}:function(gr){oe=!0},it=null,yt=Ye(I.data);if(this.parent[I.type])it=this.parent[I.type](I.sourceMapId,yt,De);else if(this.parent.getWorkerSource){var Lt=I.type.split("."),sr=this.parent.getWorkerSource(I.sourceMapId,Lt[0],yt.source);it=sr[Lt[1]](yt,De)}else De(new Error("Could not find function "+I.type));!oe&&it&&it.cancel&&(this.cancelCallbacks[_]=it.cancel)}},u3.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function dtt(y,_,I){_=Math.pow(2,I)-_-1;var U=iee(y*256,_*256,I),$=iee((y+1)*256,(_+1)*256,I);return U[0]+","+U[1]+","+$[0]+","+$[1]}function iee(y,_,I){var U=2*Math.PI*6378137/256/Math.pow(2,I),$=y*U-2*Math.PI*6378137/2,oe=_*U-2*Math.PI*6378137/2;return[$,oe]}var lh=function(_,I){_&&(I?this.setSouthWest(_).setNorthEast(I):_.length===4?this.setSouthWest([_[0],_[1]]).setNorthEast([_[2],_[3]]):this.setSouthWest(_[0]).setNorthEast(_[1]))};lh.prototype.setNorthEast=function(_){return this._ne=_ instanceof Hc?new Hc(_.lng,_.lat):Hc.convert(_),this},lh.prototype.setSouthWest=function(_){return this._sw=_ instanceof Hc?new Hc(_.lng,_.lat):Hc.convert(_),this},lh.prototype.extend=function(_){var I=this._sw,U=this._ne,$,oe;if(_ instanceof Hc)$=_,oe=_;else if(_ instanceof lh){if($=_._sw,oe=_._ne,!$||!oe)return this}else{if(Array.isArray(_))if(_.length===4||_.every(Array.isArray)){var he=_;return this.extend(lh.convert(he))}else{var De=_;return this.extend(Hc.convert(De))}return this}return!I&&!U?(this._sw=new Hc($.lng,$.lat),this._ne=new Hc(oe.lng,oe.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),U.lng=Math.max(oe.lng,U.lng),U.lat=Math.max(oe.lat,U.lat)),this},lh.prototype.getCenter=function(){return new Hc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lh.prototype.getSouthWest=function(){return this._sw},lh.prototype.getNorthEast=function(){return this._ne},lh.prototype.getNorthWest=function(){return new Hc(this.getWest(),this.getNorth())},lh.prototype.getSouthEast=function(){return new Hc(this.getEast(),this.getSouth())},lh.prototype.getWest=function(){return this._sw.lng},lh.prototype.getSouth=function(){return this._sw.lat},lh.prototype.getEast=function(){return this._ne.lng},lh.prototype.getNorth=function(){return this._ne.lat},lh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lh.prototype.contains=function(_){var I=Hc.convert(_),U=I.lng,$=I.lat,oe=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=U&&U<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=U&&U>=this._ne.lng),oe&&he},lh.convert=function(_){return!_||_ instanceof lh?_:new lh(_)};var nee=63710088e-1,Hc=function(_,I){if(isNaN(_)||isNaN(I))throw new Error("Invalid LngLat object: ("+_+", "+I+")");if(this.lng=+_,this.lat=+I,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Hc.prototype.wrap=function(){return new Hc(k(this.lng,-180,180),this.lat)},Hc.prototype.toArray=function(){return[this.lng,this.lat]},Hc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Hc.prototype.distanceTo=function(_){var I=Math.PI/180,U=this.lat*I,$=_.lat*I,oe=Math.sin(U)*Math.sin($)+Math.cos(U)*Math.cos($)*Math.cos((_.lng-this.lng)*I),he=nee*Math.acos(Math.min(oe,1));return he},Hc.prototype.toBounds=function(_){_===void 0&&(_=0);var I=40075017,U=360*_/I,$=U/Math.cos(Math.PI/180*this.lat);return new lh(new Hc(this.lng-$,this.lat-U),new Hc(this.lng+$,this.lat+U))},Hc.convert=function(_){if(_ instanceof Hc)return _;if(Array.isArray(_)&&(_.length===2||_.length===3))return new Hc(Number(_[0]),Number(_[1]));if(!Array.isArray(_)&&typeof _=="object"&&_!==null)return new Hc(Number("lng"in _?_.lng:_.lon),Number(_.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var aee=2*Math.PI*nee;function oee(y){return aee*Math.cos(y*Math.PI/180)}function see(y){return(180+y)/360}function lee(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function uee(y,_){return y/oee(_)}function vtt(y){return y*360-180}function wq(y){var _=180-y*360;return 360/Math.PI*Math.atan(Math.exp(_*Math.PI/180))-90}function ptt(y,_){return y*oee(wq(_))}function gtt(y){return 1/Math.cos(y*Math.PI/180)}var vb=function(_,I,U){U===void 0&&(U=0),this.x=+_,this.y=+I,this.z=+U};vb.fromLngLat=function(_,I){I===void 0&&(I=0);var U=Hc.convert(_);return new vb(see(U.lng),lee(U.lat),uee(I,U.lat))},vb.prototype.toLngLat=function(){return new Hc(vtt(this.x),wq(this.y))},vb.prototype.toAltitude=function(){return ptt(this.z,this.y)},vb.prototype.meterInMercatorCoordinateUnits=function(){return 1/aee*gtt(wq(this.y))};var pb=function(_,I,U){this.z=_,this.x=I,this.y=U,this.key=RS(0,_,_,I,U)};pb.prototype.equals=function(_){return this.z===_.z&&this.x===_.x&&this.y===_.y},pb.prototype.url=function(_,I){var U=dtt(this.x,this.y,this.z),$=mtt(this.z,this.x,this.y);return _[(this.x+this.y)%_.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(I==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",U)},pb.prototype.getTilePoint=function(_){var I=Math.pow(2,this.z);return new u((_.x*I-this.x)*Ei,(_.y*I-this.y)*Ei)},pb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var cee=function(_,I){this.wrap=_,this.canonical=I,this.key=RS(_,I.z,I.z,I.x,I.y)},uh=function(_,I,U,$,oe){this.overscaledZ=_,this.wrap=I,this.canonical=new pb(U,+$,+oe),this.key=RS(I,_,U,$,oe)};uh.prototype.equals=function(_){return this.overscaledZ===_.overscaledZ&&this.wrap===_.wrap&&this.canonical.equals(_.canonical)},uh.prototype.scaledTo=function(_){var I=this.canonical.z-_;return _>this.canonical.z?new uh(_,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uh(_,this.wrap,_,this.canonical.x>>I,this.canonical.y>>I)},uh.prototype.calculateScaledKey=function(_,I){var U=this.canonical.z-_;return _>this.canonical.z?RS(this.wrap*+I,_,this.canonical.z,this.canonical.x,this.canonical.y):RS(this.wrap*+I,_,_,this.canonical.x>>U,this.canonical.y>>U)},uh.prototype.isChildOf=function(_){if(_.wrap!==this.wrap)return!1;var I=this.canonical.z-_.canonical.z;return _.overscaledZ===0||_.overscaledZ>I&&_.canonical.y===this.canonical.y>>I},uh.prototype.children=function(_){if(this.overscaledZ>=_)return[new uh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,U=this.canonical.x*2,$=this.canonical.y*2;return[new uh(I,this.wrap,I,U,$),new uh(I,this.wrap,I,U+1,$),new uh(I,this.wrap,I,U,$+1),new uh(I,this.wrap,I,U+1,$+1)]},uh.prototype.isLessThan=function(_){return this.wrap<_.wrap?!0:this.wrap>_.wrap?!1:this.overscaledZ<_.overscaledZ?!0:this.overscaledZ>_.overscaledZ?!1:this.canonical.x<_.canonical.x?!0:this.canonical.x>_.canonical.x?!1:this.canonical.y<_.canonical.y},uh.prototype.wrapped=function(){return new uh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},uh.prototype.unwrapTo=function(_){return new uh(this.overscaledZ,_,this.canonical.z,this.canonical.x,this.canonical.y)},uh.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},uh.prototype.toUnwrapped=function(){return new cee(this.wrap,this.canonical)},uh.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},uh.prototype.getTilePoint=function(_){return this.canonical.getTilePoint(new vb(_.x-this.wrap,_.y))};function RS(y,_,I,U,$){y*=2,y<0&&(y=y*-1-1);var oe=1<0;oe--)$=1<=this.dim+1||I<-1||I>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(I+1)*this.stride+(_+1)},by.prototype._unpackMapbox=function(_,I,U){return(_*256*256+I*256+U)/10-1e4},by.prototype._unpackTerrarium=function(_,I,U){return _*256+I+U/256-32768},by.prototype.getPixels=function(){return new Eh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},by.prototype.backfillBorder=function(_,I,U){if(this.dim!==_.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,oe=I*this.dim+this.dim,he=U*this.dim,De=U*this.dim+this.dim;switch(I){case-1:$=oe-1;break;case 1:oe=$+1;break}switch(U){case-1:he=De-1;break;case 1:De=he+1;break}for(var it=-I*this.dim,yt=-U*this.dim,Lt=he;Lt=0&&sr[3]>=0&&it.insert(De,sr[0],sr[1],sr[2],sr[3])}},wy.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new mg.VectorTile(new Xa(this.rawTileData)).layers,this.sourceLayerCoder=new f6(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},wy.prototype.query=function(_,I,U,$){var oe=this;this.loadVTLayers();for(var he=_.params||{},De=Ei/_.tileSize/_.scale,it=xe(he.filter),yt=_.queryGeometry,Lt=_.queryPadding*De,sr=hee(yt),gr=this.grid.query(sr.minX-Lt,sr.minY-Lt,sr.maxX+Lt,sr.maxY+Lt),hr=hee(_.cameraQueryGeometry),Rr=this.grid3D.query(hr.minX-Lt,hr.minY-Lt,hr.maxX+Lt,hr.maxY+Lt,function(Xn,ga,ha,eo){return mp(_.cameraQueryGeometry,Xn-Lt,ga-Lt,ha+Lt,eo+Lt)}),ni=0,Hi=Rr;ni$)oe=!1;else if(!I)oe=!0;else if(this.expirationTime=Ha.maxzoom)&&Ha.visibility!=="none"){h(jn,this.zoom,ir);var vo=Zi[Ha.id]=Ha.createBucket({index:Ri.bucketLayerIDs.length,layers:jn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ba,sourceID:this.source});vo.populate(ua,en,this.tileID.canonical),Ri.bucketLayerIDs.push(jn.map(function(ki){return ki.id}))}}}}var Gn,Ct,Sr,Jr,hi=i.mapObject(en.glyphDependencies,function(ki){return Object.keys(ki).map(Number)});Object.keys(hi).length?wr.send("getGlyphs",{uid:this.uid,stacks:hi},function(ki,_n){Gn||(Gn=ki,Ct=_n,En.call(ti))}):Ct={};var hn=Object.keys(en.iconDependencies);hn.length?wr.send("getImages",{icons:hn,source:this.source,tileID:this.tileID,type:"icons"},function(ki,_n){Gn||(Gn=ki,Sr=_n,En.call(ti))}):Sr={};var Sn=Object.keys(en.patternDependencies);Sn.length?wr.send("getImages",{icons:Sn,source:this.source,tileID:this.tileID,type:"patterns"},function(ki,_n){Gn||(Gn=ki,Jr=_n,En.call(ti))}):Jr={},En.call(this);function En(){if(Gn)return Xr(Gn);if(Ct&&Sr&&Jr){var ki=new c(Ct),_n=new i.ImageAtlas(Sr,Jr);for(var ya in Zi){var ea=Zi[ya];ea instanceof i.SymbolBucket?(h(ea.layers,this.zoom,ir),i.performSymbolLayout(ea,Ct,ki.positions,Sr,_n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):ea.hasPattern&&(ea instanceof i.LineBucket||ea instanceof i.FillBucket||ea instanceof i.FillExtrusionBucket)&&(h(ea.layers,this.zoom,ir),ea.addFeatures(en,this.tileID.canonical,_n.patternPositions))}this.status="done",Xr(null,{buckets:i.values(Zi).filter(function(Ma){return!Ma.isEmpty()}),featureIndex:Ri,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ki.image,imageAtlas:_n,glyphMap:this.returnDependencies?Ct:null,iconMap:this.returnDependencies?Sr:null,glyphPositions:this.returnDependencies?ki.positions:null})}}};function h(Gt,wt,tr){for(var ir=new i.EvaluationParameters(wt),wr=0,Xr=Gt;wr=0!=!!wt&&Gt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(wt){this._feature=wt,this.extent=i.EXTENT,this.type=wt.type,this.properties=wt.tags,"id"in wt&&!isNaN(wt.id)&&(this.id=parseInt(wt.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var wt=[],tr=0,ir=this._feature.geometry;tr>31}function Ce(Gt,wt){for(var tr=Gt.loadGeometry(),ir=Gt.type,wr=0,Xr=0,ti=tr.length,$r=0;$r>1;Se(Gt,wt,ti,ir,wr,Xr%2),re(Gt,wt,tr,ir,ti-1,Xr+1),re(Gt,wt,tr,ti+1,wr,Xr+1)}}function Se(Gt,wt,tr,ir,wr,Xr){for(;wr>ir;){if(wr-ir>600){var ti=wr-ir+1,$r=tr-ir+1,Ri=Math.log(ti),Zi=.5*Math.exp(2*Ri/3),en=.5*Math.sqrt(Ri*Zi*(ti-Zi)/ti)*($r-ti/2<0?-1:1),fn=Math.max(ir,Math.floor(tr-$r*Zi/ti+en)),yn=Math.min(wr,Math.floor(tr+(ti-$r)*Zi/ti+en));Se(Gt,wt,tr,fn,yn,Xr)}var Mn=wt[2*tr+Xr],Ba=ir,ua=wr;for(ke(Gt,wt,ir,tr),wt[2*wr+Xr]>Mn&&ke(Gt,wt,ir,wr);BaMn;)ua--}wt[2*ir+Xr]===Mn?ke(Gt,wt,ir,ua):(ua++,ke(Gt,wt,ua,wr)),ua<=tr&&(ir=ua+1),tr<=ua&&(wr=ua-1)}}function ke(Gt,wt,tr,ir){be(Gt,tr,ir),be(wt,2*tr,2*ir),be(wt,2*tr+1,2*ir+1)}function be(Gt,wt,tr){var ir=Gt[wt];Gt[wt]=Gt[tr],Gt[tr]=ir}function Be(Gt,wt,tr,ir,wr,Xr,ti){for(var $r=[0,Gt.length-1,0],Ri=[],Zi,en;$r.length;){var fn=$r.pop(),yn=$r.pop(),Mn=$r.pop();if(yn-Mn<=ti){for(var Ba=Mn;Ba<=yn;Ba++)Zi=wt[2*Ba],en=wt[2*Ba+1],Zi>=tr&&Zi<=wr&&en>=ir&&en<=Xr&&Ri.push(Gt[Ba]);continue}var ua=Math.floor((Mn+yn)/2);Zi=wt[2*ua],en=wt[2*ua+1],Zi>=tr&&Zi<=wr&&en>=ir&&en<=Xr&&Ri.push(Gt[ua]);var ma=(fn+1)%2;(fn===0?tr<=Zi:ir<=en)&&($r.push(Mn),$r.push(ua-1),$r.push(ma)),(fn===0?wr>=Zi:Xr>=en)&&($r.push(ua+1),$r.push(yn),$r.push(ma))}return Ri}function Le(Gt,wt,tr,ir,wr,Xr){for(var ti=[0,Gt.length-1,0],$r=[],Ri=wr*wr;ti.length;){var Zi=ti.pop(),en=ti.pop(),fn=ti.pop();if(en-fn<=Xr){for(var yn=fn;yn<=en;yn++)me(wt[2*yn],wt[2*yn+1],tr,ir)<=Ri&&$r.push(Gt[yn]);continue}var Mn=Math.floor((fn+en)/2),Ba=wt[2*Mn],ua=wt[2*Mn+1];me(Ba,ua,tr,ir)<=Ri&&$r.push(Gt[Mn]);var ma=(Zi+1)%2;(Zi===0?tr-wr<=Ba:ir-wr<=ua)&&(ti.push(fn),ti.push(Mn-1),ti.push(ma)),(Zi===0?tr+wr>=Ba:ir+wr>=ua)&&(ti.push(Mn+1),ti.push(en),ti.push(ma))}return $r}function me(Gt,wt,tr,ir){var wr=Gt-tr,Xr=wt-ir;return wr*wr+Xr*Xr}var Pe=function(Gt){return Gt[0]},ce=function(Gt){return Gt[1]},He=function(wt,tr,ir,wr,Xr){tr===void 0&&(tr=Pe),ir===void 0&&(ir=ce),wr===void 0&&(wr=64),Xr===void 0&&(Xr=Float64Array),this.nodeSize=wr,this.points=wt;for(var ti=wt.length<65536?Uint16Array:Uint32Array,$r=this.ids=new ti(wt.length),Ri=this.coords=new Xr(wt.length*2),Zi=0;Zi=wr;en--){var fn=+Date.now();Ri=this._cluster(Ri,en),this.trees[en]=new He(Ri,Ae,rt,ti,Float32Array),ir&&console.log("z%d: %d clusters in %dms",en,Ri.length,+Date.now()-fn)}return ir&&console.timeEnd("total time"),this},mt.prototype.getClusters=function(wt,tr){var ir=((wt[0]+180)%360+360)%360-180,wr=Math.max(-90,Math.min(90,wt[1])),Xr=wt[2]===180?180:((wt[2]+180)%360+360)%360-180,ti=Math.max(-90,Math.min(90,wt[3]));if(wt[2]-wt[0]>=360)ir=-180,Xr=180;else if(ir>Xr){var $r=this.getClusters([ir,wr,180,ti],tr),Ri=this.getClusters([-180,wr,Xr,ti],tr);return $r.concat(Ri)}for(var Zi=this.trees[this._limitZoom(tr)],en=Zi.range(Vt(ir),rr(ti),Vt(Xr),rr(wr)),fn=[],yn=0,Mn=en;yntr&&(ua+=Xo.numPoints||1)}if(ua>=Ri){for(var da=fn.x*Ba,jn=fn.y*Ba,Ha=$r&&Ba>1?this._map(fn,!0):null,vo=(en<<5)+(tr+1)+this.points.length,Gn=0,Ct=Mn;Gn1)for(var hn=0,Sn=Mn;hn>5},mt.prototype._getOriginZoom=function(wt){return(wt-this.points.length)%32},mt.prototype._map=function(wt,tr){if(wt.numPoints)return tr?Ue({},wt.properties):wt.properties;var ir=this.points[wt.index].properties,wr=this.options.map(ir);return tr&&wr===ir?Ue({},wr):wr};function Ht(Gt,wt,tr,ir,wr){return{x:Gt,y:wt,zoom:1/0,id:tr,parentId:-1,numPoints:ir,properties:wr}}function at(Gt,wt){var tr=Gt.geometry.coordinates,ir=tr[0],wr=tr[1];return{x:Vt(ir),y:rr(wr),zoom:1/0,index:wt,parentId:-1}}function ct(Gt){return{type:"Feature",id:Gt.id,properties:ar(Gt),geometry:{type:"Point",coordinates:[tt(Gt.x),je(Gt.y)]}}}function ar(Gt){var wt=Gt.numPoints,tr=wt>=1e4?Math.round(wt/1e3)+"k":wt>=1e3?Math.round(wt/100)/10+"k":wt;return Ue(Ue({},Gt.properties),{cluster:!0,cluster_id:Gt.id,point_count:wt,point_count_abbreviated:tr})}function Vt(Gt){return Gt/360+.5}function rr(Gt){var wt=Math.sin(Gt*Math.PI/180),tr=.5-.25*Math.log((1+wt)/(1-wt))/Math.PI;return tr<0?0:tr>1?1:tr}function tt(Gt){return(Gt-.5)*360}function je(Gt){var wt=(180-Gt*360)*Math.PI/180;return 360*Math.atan(Math.exp(wt))/Math.PI-90}function Ue(Gt,wt){for(var tr in wt)Gt[tr]=wt[tr];return Gt}function Ae(Gt){return Gt.x}function rt(Gt){return Gt.y}function St(Gt,wt,tr,ir){for(var wr=ir,Xr=tr-wt>>1,ti=tr-wt,$r,Ri=Gt[wt],Zi=Gt[wt+1],en=Gt[tr],fn=Gt[tr+1],yn=wt+3;ynwr)$r=yn,wr=Mn;else if(Mn===wr){var Ba=Math.abs(yn-Xr);Bair&&($r-wt>3&&St(Gt,wt,$r,ir),Gt[$r+2]=wr,tr-$r>3&&St(Gt,$r,tr,ir))}function Tt(Gt,wt,tr,ir,wr,Xr){var ti=wr-tr,$r=Xr-ir;if(ti!==0||$r!==0){var Ri=((Gt-tr)*ti+(wt-ir)*$r)/(ti*ti+$r*$r);Ri>1?(tr=wr,ir=Xr):Ri>0&&(tr+=ti*Ri,ir+=$r*Ri)}return ti=Gt-tr,$r=wt-ir,ti*ti+$r*$r}function dt(Gt,wt,tr,ir){var wr={id:typeof Gt=="undefined"?null:Gt,type:wt,geometry:tr,tags:ir,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Et(wr),wr}function Et(Gt){var wt=Gt.geometry,tr=Gt.type;if(tr==="Point"||tr==="MultiPoint"||tr==="LineString")pt(Gt,wt);else if(tr==="Polygon"||tr==="MultiLineString")for(var ir=0;ir0&&(ir?ti+=(wr*Zi-Ri*Xr)/2:ti+=Math.sqrt(Math.pow(Ri-wr,2)+Math.pow(Zi-Xr,2))),wr=Ri,Xr=Zi}var en=wt.length-3;wt[2]=1,St(wt,0,en,tr),wt[en+2]=1,wt.size=Math.abs(ti),wt.start=0,wt.end=wt.size}function ei(Gt,wt,tr,ir){for(var wr=0;wr1?1:tr}function gt(Gt,wt,tr,ir,wr,Xr,ti,$r){if(tr/=wt,ir/=wt,Xr>=tr&&ti=ir)return null;for(var Ri=[],Zi=0;Zi=tr&&Ba=ir)continue;var ua=[];if(yn==="Point"||yn==="MultiPoint")Ge(fn,ua,tr,ir,wr);else if(yn==="LineString")Je(fn,ua,tr,ir,wr,!1,$r.lineMetrics);else if(yn==="MultiLineString")et(fn,ua,tr,ir,wr,!1);else if(yn==="Polygon")et(fn,ua,tr,ir,wr,!0);else if(yn==="MultiPolygon")for(var ma=0;ma=tr&&ti<=ir&&(wt.push(Gt[Xr]),wt.push(Gt[Xr+1]),wt.push(Gt[Xr+2]))}}function Je(Gt,wt,tr,ir,wr,Xr,ti){for(var $r=We(Gt),Ri=wr===0?At:Kt,Zi=Gt.start,en,fn,yn=0;yntr&&(fn=Ri($r,Mn,Ba,ma,Wa,tr),ti&&($r.start=Zi+en*fn)):Fa>ir?Xo=tr&&(fn=Ri($r,Mn,Ba,ma,Wa,tr),da=!0),Xo>ir&&Fa<=ir&&(fn=Ri($r,Mn,Ba,ma,Wa,ir),da=!0),!Xr&&da&&(ti&&($r.end=Zi+en*fn),wt.push($r),$r=We(Gt)),ti&&(Zi+=en)}var jn=Gt.length-3;Mn=Gt[jn],Ba=Gt[jn+1],ua=Gt[jn+2],Fa=wr===0?Mn:Ba,Fa>=tr&&Fa<=ir&&xt($r,Mn,Ba,ua),jn=$r.length-3,Xr&&jn>=3&&($r[jn]!==$r[0]||$r[jn+1]!==$r[1])&&xt($r,$r[0],$r[1],$r[2]),$r.length&&wt.push($r)}function We(Gt){var wt=[];return wt.size=Gt.size,wt.start=Gt.start,wt.end=Gt.end,wt}function et(Gt,wt,tr,ir,wr,Xr){for(var ti=0;titi.maxX&&(ti.maxX=en),fn>ti.maxY&&(ti.maxY=fn)}return ti}function Pi(Gt,wt,tr,ir){var wr=wt.geometry,Xr=wt.type,ti=[];if(Xr==="Point"||Xr==="MultiPoint")for(var $r=0;$r0&&wt.size<(wr?ti:ir)){tr.numPoints+=wt.length/3;return}for(var $r=[],Ri=0;Riti)&&(tr.numSimplified++,$r.push(wt[Ri]),$r.push(wt[Ri+1])),tr.numPoints++;wr&&mi($r,Xr),Gt.push($r)}function mi(Gt,wt){for(var tr=0,ir=0,wr=Gt.length,Xr=wr-2;ir0===wt)for(ir=0,wr=Gt.length;ir24)throw new Error("maxZoom should be in the 0-24 range");if(wt.promoteId&&wt.generateId)throw new Error("promoteId and generateId cannot be used together.");var ir=jt(Gt,wt);this.tiles={},this.tileCoords=[],tr&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",wt.indexMaxZoom,wt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ir=Qt(ir,wt),ir.length&&this.splitTile(ir,0,0,0),tr&&(ir.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Fn.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Fn.prototype.splitTile=function(Gt,wt,tr,ir,wr,Xr,ti){for(var $r=[Gt,wt,tr,ir],Ri=this.options,Zi=Ri.debug;$r.length;){ir=$r.pop(),tr=$r.pop(),wt=$r.pop(),Gt=$r.pop();var en=1<1&&console.time("creation"),yn=this.tiles[fn]=_i(Gt,wt,tr,ir,Ri),this.tileCoords.push({z:wt,x:tr,y:ir}),Zi)){Zi>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",wt,tr,ir,yn.numFeatures,yn.numPoints,yn.numSimplified),console.timeEnd("creation"));var Mn="z"+wt;this.stats[Mn]=(this.stats[Mn]||0)+1,this.total++}if(yn.source=Gt,wr){if(wt===Ri.maxZoom||wt===wr)continue;var Ba=1<1&&console.time("clipping");var ua=.5*Ri.buffer/Ri.extent,ma=.5-ua,Wa=.5+ua,Fa=1+ua,Xo,da,jn,Ha,vo,Gn;Xo=da=jn=Ha=null,vo=gt(Gt,en,tr-ua,tr+Wa,0,yn.minX,yn.maxX,Ri),Gn=gt(Gt,en,tr+ma,tr+Fa,0,yn.minX,yn.maxX,Ri),Gt=null,vo&&(Xo=gt(vo,en,ir-ua,ir+Wa,1,yn.minY,yn.maxY,Ri),da=gt(vo,en,ir+ma,ir+Fa,1,yn.minY,yn.maxY,Ri),vo=null),Gn&&(jn=gt(Gn,en,ir-ua,ir+Wa,1,yn.minY,yn.maxY,Ri),Ha=gt(Gn,en,ir+ma,ir+Fa,1,yn.minY,yn.maxY,Ri),Gn=null),Zi>1&&console.timeEnd("clipping"),$r.push(Xo||[],wt+1,tr*2,ir*2),$r.push(da||[],wt+1,tr*2,ir*2+1),$r.push(jn||[],wt+1,tr*2+1,ir*2),$r.push(Ha||[],wt+1,tr*2+1,ir*2+1)}}},Fn.prototype.getTile=function(Gt,wt,tr){var ir=this.options,wr=ir.extent,Xr=ir.debug;if(Gt<0||Gt>24)return null;var ti=1<1&&console.log("drilling down to z%d-%d-%d",Gt,wt,tr);for(var Ri=Gt,Zi=wt,en=tr,fn;!fn&&Ri>0;)Ri--,Zi=Math.floor(Zi/2),en=Math.floor(en/2),fn=this.tiles[An(Ri,Zi,en)];return!fn||!fn.source?null:(Xr>1&&console.log("found parent tile z%d-%d-%d",Ri,Zi,en),Xr>1&&console.time("drilling down"),this.splitTile(fn.source,Ri,Zi,en,Gt,wt,tr),Xr>1&&console.timeEnd("drilling down"),this.tiles[$r]?Ir(this.tiles[$r],wr):null)};function An(Gt,wt,tr){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function m(Y,D,J){var O,K,de,ne=i.browser.devicePixelRatio>1?"@2x":"",we=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(Yt,cr){we=null,de||(de=Yt,O=cr,ht())}),Oe=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(Yt,cr){Oe=null,de||(de=Yt,K=cr,ht())});function ht(){if(de)J(de);else if(O&&K){var Yt=i.browser.getImageData(K),cr={};for(var Nt in O){var Ne=O[Nt],$e=Ne.width,st=Ne.height,It=Ne.x,Bt=Ne.y,Ft=Ne.sdf,Ut=Ne.pixelRatio,zt=Ne.stretchX,_t=Ne.stretchY,Dt=Ne.content,vt=new i.RGBAImage({width:$e,height:st});i.RGBAImage.copy(Yt,vt,{x:It,y:Bt},{x:0,y:0},{width:$e,height:st}),cr[Nt]={data:vt,pixelRatio:Ut,sdf:Ft,stretchX:zt,stretchY:_t,content:Dt}}J(null,cr)}}return{cancel:function(){we&&(we.cancel(),we=null),Oe&&(Oe.cancel(),Oe=null)}}}function b(Y){var D=Y.userImage;if(D&&D.render){var J=D.render();if(J)return Y.data.replace(new Uint8Array(D.data.buffer)),!0}return!1}var p=1,k=function(Y){function D(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.isLoaded=function(){return this.loaded},D.prototype.setLoaded=function(O){if(this.loaded!==O&&(this.loaded=O,O)){for(var K=0,de=this.requestors;K=0?1.2:1))}C.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var D=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),O=0;O65535){Yt(new Error("glyphs > 65535 not supported"));return}if(Ne.ranges[st]){Yt(null,{stack:cr,id:Nt,glyph:$e});return}var It=Ne.requests[st];It||(It=Ne.requests[st]=[],P.loadGlyphRange(cr,st,O.url,O.requestManager,function(Bt,Ft){if(Ft){for(var Ut in Ft)O._doesCharSupportLocalGlyph(+Ut)||(Ne.glyphs[+Ut]=Ft[+Ut]);Ne.ranges[st]=!0}for(var zt=0,_t=It;zt<_t.length;zt+=1){var Dt=_t[zt];Dt(Bt,Ft)}delete Ne.requests[st]})),It.push(function(Bt,Ft){Bt?Yt(Bt):Ft&&Yt(null,{stack:cr,id:Nt,glyph:Ft[Nt]||null})})},function(ht,Yt){if(ht)J(ht);else if(Yt){for(var cr={},Nt=0,Ne=Yt;Nt1&&(ht=D[++Oe]);var cr=Math.abs(Yt-ht.left),Nt=Math.abs(Yt-ht.right),Ne=Math.min(cr,Nt),$e=void 0,st=de/O*(K+1);if(ht.isDash){var It=K-Math.abs(st);$e=Math.sqrt(Ne*Ne+It*It)}else $e=K-Math.sqrt(Ne*Ne+st*st);this.data[we+Yt]=Math.max(0,Math.min(255,$e+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var O=D[J],K=D[J+1];O.zeroLength?D.splice(J,1):K&&K.isDash===O.isDash&&(K.left=O.left,D.splice(J,1))}var de=D[0],ne=D[D.length-1];de.isDash===ne.isDash&&(de.left=ne.left-this.width,ne.right=de.right+this.width);for(var we=this.width*this.nextRow,Oe=0,ht=D[Oe],Yt=0;Yt1&&(ht=D[++Oe]);var cr=Math.abs(Yt-ht.left),Nt=Math.abs(Yt-ht.right),Ne=Math.min(cr,Nt),$e=ht.isDash?Ne:-Ne;this.data[we+Yt]=Math.max(0,Math.min(255,$e+128))}},G.prototype.addDash=function(D,J){var O=J?7:0,K=2*O+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var de=0,ne=0;ne=O.minX&&D.x=O.minY&&D.y0&&(Yt[new i.OverscaledTileID(O.overscaledZ,we,K.z,ne,K.y-1).key]={backfilled:!1},Yt[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},Yt[new i.OverscaledTileID(O.overscaledZ,ht,K.z,Oe,K.y-1).key]={backfilled:!1}),K.y+10&&(de.resourceTiming=O._resourceTiming,O._resourceTiming=[]),O.fire(new i.Event("data",de))})},D.prototype.onAdd=function(O){this.map=O,this.load()},D.prototype.setData=function(O){var K=this;return this._data=O,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(de){if(de){K.fire(new i.ErrorEvent(de));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},D.prototype.getClusterExpansionZoom=function(O,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:O,source:this.id},K),this},D.prototype.getClusterChildren=function(O,K){return this.actor.send("geojson.getClusterChildren",{clusterId:O,source:this.id},K),this},D.prototype.getClusterLeaves=function(O,K,de,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:O,limit:K,offset:de},ne),this},D.prototype._updateWorkerData=function(O){var K=this;this._loaded=!1;var de=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(de.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),de.request.collectResourceTiming=this._collectResourceTiming):de.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",de,function(we,Oe){K._removed||Oe&&Oe.abandoned||(K._loaded=!0,Oe&&Oe.resourceTiming&&Oe.resourceTiming[K.id]&&(K._resourceTiming=Oe.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:de.source},null),O(we))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(O,K){var de=this,ne=O.actor?"reloadTile":"loadTile";O.actor=this.actor;var we={type:this.type,uid:O.uid,tileID:O.tileID,zoom:O.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};O.request=this.actor.send(ne,we,function(Oe,ht){return delete O.request,O.unloadVectorData(),O.aborted?K(null):Oe?K(Oe):(O.loadVectorData(ht,de.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(O){O.request&&(O.request.cancel(),delete O.request),O.aborted=!0},D.prototype.unloadTile=function(O){O.unloadVectorData(),this.actor.send("removeTile",{uid:O.uid,type:this.type,source:this.id})},D.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},D.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},D.prototype.hasTransition=function(){return!1},D}(i.Evented),Ee=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ce=function(Y){function D(J,O,K,de){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=O.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=O}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(O,K){var de=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,we){de._loaded=!0,ne?de.fire(new i.ErrorEvent(ne)):we&&(de.image=we,O&&(de.coordinates=O),K&&K(),de._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(O){var K=this;return!this.image||!O.url?this:(this.options.url=O.url,this.load(O.coordinates,function(){K.texture=null}),this)},D.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},D.prototype.onAdd=function(O){this.map=O,this.load()},D.prototype.setCoordinates=function(O){var K=this;this.coordinates=O;var de=O.map(i.MercatorCoordinate.fromLngLat);this.tileID=ge(de),this.minzoom=this.maxzoom=this.tileID.z;var ne=de.map(function(we){return K.tileID.getTilePoint(we)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Ee.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(O,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.loadTile=function(O,K){this.tileID&&this.tileID.equals(O.tileID.canonical)?(this.tiles[String(O.tileID.wrap)]=O,O.buckets={},K(null)):(O.state="errored",K(null))},D.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return!1},D}(i.Evented);function ge(Y){for(var D=1/0,J=1/0,O=-1/0,K=-1/0,de=0,ne=Y;deK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=O}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(O){this.map||(this.map=O,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Ee.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(O,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this.video&&!this.video.paused},D}(Ce),Se=function(Y){function D(J,O,K,de){Y.call(this,J,O,K,de),O.coordinates?(!Array.isArray(O.coordinates)||O.coordinates.length!==4||O.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(we){return typeof we!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),O.animate&&typeof O.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),O.canvas?typeof O.canvas!="string"&&!(O.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=O,this.animate=O.animate!==void 0?O.animate:!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},D.prototype.getCanvas=function(){return this.canvas},D.prototype.onAdd=function(O){this.map=O,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var O=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,O=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,O=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,de=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Ee.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(O||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,de.RGBA,{premultiply:!0});for(var ne in this.tiles){var we=this.tiles[ne];we.state!=="loaded"&&(we.state="loaded",we.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this._playing},D.prototype._hasInvalidDimensions=function(){for(var O=0,K=[this.canvas.width,this.canvas.height];Othis.max){var we=this._getAndRemoveByKey(this.order[0]);we&&this.onRemove(we)}return this},at.prototype.has=function(D){return D.wrapped().key in this.data},at.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},at.prototype._getAndRemoveByKey=function(D){var J=this.data[D].shift();return J.timeout&&clearTimeout(J.timeout),this.data[D].length===0&&delete this.data[D],this.order.splice(this.order.indexOf(D),1),J.value},at.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},at.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},at.prototype.remove=function(D,J){if(!this.has(D))return this;var O=D.wrapped().key,K=J===void 0?0:this.data[O].indexOf(J),de=this.data[O][K];return this.data[O].splice(K,1),de.timeout&&clearTimeout(de.timeout),this.data[O].length===0&&delete this.data[O],this.onRemove(de.value),this.order.splice(this.order.indexOf(O),1),this},at.prototype.setMaxSize=function(D){for(this.max=D;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},at.prototype.filter=function(D){var J=[];for(var O in this.data)for(var K=0,de=this.data[O];K1||(Math.abs(cr)>1&&(Math.abs(cr+Ne)===1?cr+=Ne:Math.abs(cr-Ne)===1&&(cr-=Ne)),!(!Yt.dem||!ht.dem)&&(ht.dem.backfillBorder(Yt.dem,cr,Nt),ht.neighboringTiles&&ht.neighboringTiles[$e]&&(ht.neighboringTiles[$e].backfilled=!0)))}},D.prototype.getTile=function(O){return this.getTileByID(O.key)},D.prototype.getTileByID=function(O){return this._tiles[O]},D.prototype._retainLoadedChildren=function(O,K,de,ne){for(var we in this._tiles){var Oe=this._tiles[we];if(!(ne[we]||!Oe.hasData()||Oe.tileID.overscaledZ<=K||Oe.tileID.overscaledZ>de)){for(var ht=Oe.tileID;Oe&&Oe.tileID.overscaledZ>K+1;){var Yt=Oe.tileID.scaledTo(Oe.tileID.overscaledZ-1);Oe=this._tiles[Yt.key],Oe&&Oe.hasData()&&(ht=Yt)}for(var cr=ht;cr.overscaledZ>K;)if(cr=cr.scaledTo(cr.overscaledZ-1),O[cr.key]){ne[ht.key]=ht;break}}}},D.prototype.findLoadedParent=function(O,K){if(O.key in this._loadedParentTiles){var de=this._loadedParentTiles[O.key];return de&&de.tileID.overscaledZ>=K?de:null}for(var ne=O.overscaledZ-1;ne>=K;ne--){var we=O.scaledTo(ne),Oe=this._getLoadedTile(we);if(Oe)return Oe}},D.prototype._getLoadedTile=function(O){var K=this._tiles[O.key];if(K&&K.hasData())return K;var de=this._cache.getByKey(O.wrapped().key);return de},D.prototype.updateCacheSize=function(O){var K=Math.ceil(O.width/this._source.tileSize)+1,de=Math.ceil(O.height/this._source.tileSize)+1,ne=K*de,we=5,Oe=Math.floor(ne*we),ht=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Oe):Oe;this._cache.setMaxSize(ht)},D.prototype.handleWrapJump=function(O){var K=this._prevLng===void 0?O:this._prevLng,de=O-K,ne=de/360,we=Math.round(ne);if(this._prevLng=O,we){var Oe={};for(var ht in this._tiles){var Yt=this._tiles[ht];Yt.tileID=Yt.tileID.unwrapTo(Yt.tileID.wrap+we),Oe[Yt.tileID.key]=Yt}this._tiles=Oe;for(var cr in this._timers)clearTimeout(this._timers[cr]),delete this._timers[cr];for(var Nt in this._tiles){var Ne=this._tiles[Nt];this._setTileReloadTimer(Nt,Ne)}}},D.prototype.update=function(O){var K=this;if(this.transform=O,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(O),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var de;this.used?this._source.tileID?de=O.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Br){return new i.OverscaledTileID(Br.canonical.z,Br.wrap,Br.canonical.z,Br.canonical.x,Br.canonical.y)}):(de=O.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(de=de.filter(function(Br){return K._source.hasTile(Br)}))):de=[];var ne=O.coveringZoomLevel(this._source),we=Math.max(ne-D.maxOverzooming,this._source.minzoom),Oe=Math.max(ne+D.maxUnderzooming,this._source.minzoom),ht=this._updateRetainedTiles(de,ne);if(Ri(this._source.type)){for(var Yt={},cr={},Nt=Object.keys(ht),Ne=0,$e=Nt;Ne<$e.length;Ne+=1){var st=$e[Ne],It=ht[st],Bt=this._tiles[st];if(!(!Bt||Bt.fadeEndTime&&Bt.fadeEndTime<=i.browser.now())){var Ft=this.findLoadedParent(It,we);Ft&&(this._addTile(Ft.tileID),Yt[Ft.tileID.key]=Ft.tileID),cr[st]=It}}this._retainLoadedChildren(cr,ne,Oe,ht);for(var Ut in Yt)ht[Ut]||(this._coveredTiles[Ut]=!0,ht[Ut]=Yt[Ut])}for(var zt in ht)this._tiles[zt].clearFadeHold();for(var _t=i.keysDifference(this._tiles,ht),Dt=0,vt=_t;Dtthis._source.maxzoom){var Ft=It.children(this._source.maxzoom)[0],Ut=this.getTile(Ft);if(Ut&&Ut.hasData()){de[Ft.key]=Ft;continue}}else{var zt=It.children(this._source.maxzoom);if(de[zt[0].key]&&de[zt[1].key]&&de[zt[2].key]&&de[zt[3].key])continue}for(var _t=Bt.wasRequested(),Dt=It.overscaledZ-1;Dt>=we;--Dt){var vt=It.scaledTo(Dt);if(ne[vt.key]||(ne[vt.key]=!0,Bt=this.getTile(vt),!Bt&&_t&&(Bt=this._addTile(vt)),Bt&&(de[vt.key]=vt,_t=Bt.wasRequested(),Bt.hasData())))break}}}return de},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var O in this._tiles){for(var K=[],de=void 0,ne=this._tiles[O].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){de=this._loadedParentTiles[ne.key];break}K.push(ne.key);var we=ne.scaledTo(ne.overscaledZ-1);if(de=this._getLoadedTile(we),de)break;ne=we}for(var Oe=0,ht=K;Oe0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},D.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var O in this._tiles)this._removeTile(O);this._cache.reset()},D.prototype.tilesIn=function(O,K,de){var ne=this,we=[],Oe=this.transform;if(!Oe)return we;for(var ht=de?Oe.getCameraQueryGeometry(O):O,Yt=O.map(function(Dt){return Oe.pointCoordinate(Dt)}),cr=ht.map(function(Dt){return Oe.pointCoordinate(Dt)}),Nt=this.getIds(),Ne=1/0,$e=1/0,st=-1/0,It=-1/0,Bt=0,Ft=cr;Bt=0&&Di[1].y+Br>=0){var ci=Yt.map(function(gn){return lr.getTilePoint(gn)}),bi=cr.map(function(gn){return lr.getTilePoint(gn)});we.push({tile:vt,tileID:lr,queryGeometry:ci,cameraQueryGeometry:bi,scale:_r})}}},_t=0;_t=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(O,K,de){O=O||"_geojsonTileLayer",this._state.updateState(O,K,de)},D.prototype.removeFeatureState=function(O,K,de){O=O||"_geojsonTileLayer",this._state.removeFeatureState(O,K,de)},D.prototype.getFeatureState=function(O,K){return O=O||"_geojsonTileLayer",this._state.getState(O,K)},D.prototype.setDependencies=function(O,K,de){var ne=this._tiles[O];ne&&ne.setDependencies(K,de)},D.prototype.reloadTilesForDependencies=function(O,K){for(var de in this._tiles){var ne=this._tiles[de];ne.hasDependency(O,K)&&this._reloadTile(de,"reloading")}this._cache.filter(function(we){return!we.hasDependency(O,K)})},D}(i.Evented);ti.maxOverzooming=10,ti.maxUnderzooming=3;function $r(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),O=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||O-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function Ri(Y){return Y==="raster"||Y==="image"||Y==="video"}function Zi(){return new i.window.Worker(io.workerUrl)}var en="mapboxgl_preloaded_worker_pool",fn=function(){this.active={}};fn.prototype.acquire=function(D){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/we:0;return this.points[de].mult(1-Oe).add(this.points[J].mult(Oe))};var ki=function(D,J,O){var K=this.boxCells=[],de=this.circleCells=[];this.xCellCount=Math.ceil(D/O),this.yCellCount=Math.ceil(J/O);for(var ne=0;nethis.width||K<0||J>this.height)return de?!1:[];var we=[];if(D<=0&&J<=0&&this.width<=O&&this.height<=K){if(de)return!0;for(var Oe=0;Oe0:we}},ki.prototype._queryCircle=function(D,J,O,K,de){var ne=D-O,we=D+O,Oe=J-O,ht=J+O;if(we<0||ne>this.width||ht<0||Oe>this.height)return K?!1:[];var Yt=[],cr={hitTest:K,circle:{x:D,y:J,radius:O},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Oe,we,ht,this._queryCellCircle,Yt,cr,de),K?Yt.length>0:Yt},ki.prototype.query=function(D,J,O,K,de){return this._query(D,J,O,K,!1,de)},ki.prototype.hitTest=function(D,J,O,K,de){return this._query(D,J,O,K,!0,de)},ki.prototype.hitTestCircle=function(D,J,O,K){return this._queryCircle(D,J,O,!0,K)},ki.prototype._queryCell=function(D,J,O,K,de,ne,we,Oe){var ht=we.seenUids,Yt=this.boxCells[de];if(Yt!==null)for(var cr=this.bboxes,Nt=0,Ne=Yt;Nt=cr[st+0]&&K>=cr[st+1]&&(!Oe||Oe(this.boxKeys[$e]))){if(we.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[$e],x1:cr[st],y1:cr[st+1],x2:cr[st+2],y2:cr[st+3]})}}}var It=this.circleCells[de];if(It!==null)for(var Bt=this.circles,Ft=0,Ut=It;Ftwe*we+Oe*Oe},ki.prototype._circleAndRectCollide=function(D,J,O,K,de,ne,we){var Oe=(ne-K)/2,ht=Math.abs(D-(K+Oe));if(ht>Oe+O)return!1;var Yt=(we-de)/2,cr=Math.abs(J-(de+Yt));if(cr>Yt+O)return!1;if(ht<=Oe||cr<=Yt)return!0;var Nt=ht-Oe,Ne=cr-Yt;return Nt*Nt+Ne*Ne<=O*O};function _n(Y,D,J,O,K){var de=i.create();return D?(i.scale(de,de,[1/K,1/K,1]),J||i.rotateZ(de,de,O.angle)):i.multiply(de,O.labelPlaneMatrix,Y),de}function ya(Y,D,J,O,K){if(D){var de=i.clone(Y);return i.scale(de,de,[K,K,1]),J||i.rotateZ(de,de,-O.angle),de}else return O.glCoordMatrix}function ea(Y,D){var J=[Y.x,Y.y,0,1];zl(J,J,D);var O=J[3];return{point:new i.Point(J[0]/O,J[1]/O),signedDistanceFromCamera:O}}function Ma(Y,D){return .5+.5*(Y/D)}function _o(Y,D){var J=Y[0]/Y[3],O=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&O>=-D[1]&&O<=D[1];return K}function No(Y,D,J,O,K,de,ne,we){var Oe=O?Y.textSizeData:Y.iconSizeData,ht=i.evaluateSizeForZoom(Oe,J.transform.zoom),Yt=[256/J.width*2+1,256/J.height*2+1],cr=O?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;cr.clear();for(var Nt=Y.lineVertexArray,Ne=O?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,$e=J.transform.width/J.transform.height,st=!1,It=0;Itde)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function ko(Y,D,J,O,K,de,ne,we,Oe,ht,Yt,cr,Nt,Ne){var $e=D/24,st=Y.lineOffsetX*$e,It=Y.lineOffsetY*$e,Bt;if(Y.numGlyphs>1){var Ft=Y.glyphStartIndex+Y.numGlyphs,Ut=Y.lineStartIndex,zt=Y.lineStartIndex+Y.lineLength,_t=po($e,we,st,It,J,Yt,cr,Y,Oe,de,Nt);if(!_t)return{notEnoughRoom:!0};var Dt=ea(_t.first.point,ne).point,vt=ea(_t.last.point,ne).point;if(O&&!J){var lr=Lo(Y.writingMode,Dt,vt,Ne);if(lr)return lr}Bt=[_t.first];for(var _r=Y.glyphStartIndex+1;_r0?bi.point:Ds(cr,ci,Br,1,K),tn=Lo(Y.writingMode,Br,gn,Ne);if(tn)return tn}var Ei=Fs($e*we.getoffsetX(Y.glyphStartIndex),st,It,J,Yt,cr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Oe,de,Nt);if(!Ei)return{notEnoughRoom:!0};Bt=[Ei]}for(var Oi=0,Gi=Bt;Oi0?1:-1,$e=0;O&&(Ne*=-1,$e=Math.PI),Ne<0&&($e+=Math.PI);for(var st=Ne>0?we+ne:we+ne+1,It=K,Bt=K,Ft=0,Ut=0,zt=Math.abs(Nt),_t=[];Ft+Ut<=zt;){if(st+=Ne,st=Oe)return null;if(Bt=It,_t.push(It),It=cr[st],It===void 0){var Dt=new i.Point(ht.getx(st),ht.gety(st)),vt=ea(Dt,Yt);if(vt.signedDistanceFromCamera>0)It=cr[st]=vt.point;else{var lr=st-Ne,_r=Ft===0?de:new i.Point(ht.getx(lr),ht.gety(lr));It=Ds(_r,Dt,Bt,zt-Ft+1,Yt)}}Ft+=Ut,Ut=Bt.dist(It)}var Br=(zt-Ft)/Ut,Di=It.sub(Bt),ci=Di.mult(Br)._add(Bt);ci._add(Di._unit()._perp()._mult(J*Ne));var bi=$e+Math.atan2(It.y-Bt.y,It.x-Bt.x);return _t.push(ci),{point:ci,angle:bi,path:_t}}var ll=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ul(Y,D){for(var J=0;J=1;on--)Gi.push(Ei.path[on]);for(var zn=1;zn0){for(var so=Gi[0].clone(),Yo=Gi[0].clone(),ms=1;ms=bi.x&&Yo.x<=gn.x&&so.y>=bi.y&&Yo.y<=gn.y?ts=[Gi]:Yo.xgn.x||Yo.ygn.y?ts=[]:ts=i.clipLine([Gi],bi.x,bi.y,gn.x,gn.y)}for(var ou=0,Cv=ts;ou=this.screenRightBoundary||Kthis.screenBottomBoundary},il.prototype.isInsideGrid=function(D,J,O,K){return O>=0&&D=0&&J0){var zt;return this.prevPlacement&&this.prevPlacement.variableOffsets[Nt.crossTileID]&&this.prevPlacement.placements[Nt.crossTileID]&&this.prevPlacement.placements[Nt.crossTileID].text&&(zt=this.prevPlacement.variableOffsets[Nt.crossTileID].anchor),this.variableOffsets[Nt.crossTileID]={textOffset:It,width:O,height:K,anchor:D,textBoxScale:de,prevAnchor:zt},this.markUsedJustification(Ne,D,Nt,$e),Ne.allowVerticalPlacement&&(this.markUsedOrientation(Ne,$e,Nt),this.placedOrientations[Nt.crossTileID]=$e),{shift:Bt,placedGlyphBoxes:Ft}}},bs.prototype.placeLayerBucketPart=function(D,J,O){var K=this,de=D.parameters,ne=de.bucket,we=de.layout,Oe=de.posMatrix,ht=de.textLabelPlaneMatrix,Yt=de.labelToScreenMatrix,cr=de.textPixelRatio,Nt=de.holdingForFade,Ne=de.collisionBoxArray,$e=de.partiallyEvaluatedTextSize,st=de.collisionGroup,It=we.get("text-optional"),Bt=we.get("icon-optional"),Ft=we.get("text-allow-overlap"),Ut=we.get("icon-allow-overlap"),zt=we.get("text-rotation-alignment")==="map",_t=we.get("text-pitch-alignment")==="map",Dt=we.get("icon-text-fit")!=="none",vt=we.get("symbol-z-order")==="viewport-y",lr=Ft&&(Ut||!ne.hasIconData()||Bt),_r=Ut&&(Ft||!ne.hasTextData()||It);!ne.collisionArrays&&Ne&&ne.deserializeCollisionBoxes(Ne);var Br=function(Ei,Oi){if(!J[Ei.crossTileID]){if(Nt){K.placements[Ei.crossTileID]=new zs(!1,!1,!1);return}var Gi=!1,on=!1,zn=!0,Ja=null,co={box:null,offscreen:null},ts={box:null,offscreen:null},so=null,Yo=null,ms=null,ou=0,Cv=0,Lv=0;Oi.textFeatureIndex?ou=Oi.textFeatureIndex:Ei.useRuntimeCollisionCircles&&(ou=Ei.featureIndex),Oi.verticalTextFeatureIndex&&(Cv=Oi.verticalTextFeatureIndex);var wd=Oi.textBox;if(wd){var Kv=function(vc){var tu=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!vc&&K.prevPlacement){var Sd=K.prevPlacement.placedOrientations[Ei.crossTileID];Sd&&(K.placedOrientations[Ei.crossTileID]=Sd,tu=Sd,K.markUsedOrientation(ne,tu,Ei))}return tu},hg=function(vc,tu){if(ne.allowVerticalPlacement&&Ei.numVerticalGlyphVertices>0&&Oi.verticalTextBox)for(var Sd=0,py=ne.writingModes;Sd0&&(Vd=Vd.filter(function(vc){return vc!==Ad.anchor}),Vd.unshift(Ad.anchor))}var Pv=function(vc,tu,Sd){for(var py=vc.x2-vc.x1,L1=vc.y2-vc.y1,wu=Ei.textBoxScale,Kx=Dt&&!Ut?tu:null,lm={box:[],offscreen:!1},Bw=Ft?Vd.length*2:Vd.length,Rv=0;Rv=Vd.length,Jx=K.attemptAnchorPlacement(um,vc,py,L1,wu,zt,_t,cr,Oe,st,Nw,Ei,ne,Sd,Kx);if(Jx&&(lm=Jx.placedGlyphBoxes,lm&&lm.box&&lm.box.length)){Gi=!0,Ja=Jx.shift;break}}return lm},Jv=function(){return Pv(wd,Oi.iconBox,i.WritingMode.horizontal)},Iv=function(){var vc=Oi.verticalTextBox,tu=co&&co.box&&co.box.length;return ne.allowVerticalPlacement&&!tu&&Ei.numVerticalGlyphVertices>0&&vc?Pv(vc,Oi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};hg(Jv,Iv),co&&(Gi=co.box,zn=co.offscreen);var hy=Kv(co&&co.box);if(!Gi&&K.prevPlacement){var dg=K.prevPlacement.variableOffsets[Ei.crossTileID];dg&&(K.variableOffsets[Ei.crossTileID]=dg,K.markUsedJustification(ne,dg.anchor,Ei,hy))}}else{var gp=function(vc,tu){var Sd=K.collisionIndex.placeCollisionBox(vc,Ft,cr,Oe,st.predicate);return Sd&&Sd.box&&Sd.box.length&&(K.markUsedOrientation(ne,tu,Ei),K.placedOrientations[Ei.crossTileID]=tu),Sd},Td=function(){return gp(wd,i.WritingMode.horizontal)},mp=function(){var vc=Oi.verticalTextBox;return ne.allowVerticalPlacement&&Ei.numVerticalGlyphVertices>0&&vc?gp(vc,i.WritingMode.vertical):{box:null,offscreen:null}};hg(Td,mp),Kv(co&&co.box&&co.box.length)}}if(so=co,Gi=so&&so.box&&so.box.length>0,zn=so&&so.offscreen,Ei.useRuntimeCollisionCircles){var oh=ne.text.placedSymbolArray.get(Ei.centerJustifiedTextSymbolIndex),vg=i.evaluateSizeForFeature(ne.textSizeData,$e,oh),dy=we.get("text-padding"),Zh=Ei.collisionCircleDiameter;Yo=K.collisionIndex.placeCollisionCircles(Ft,oh,ne.lineVertexArray,ne.glyphOffsetArray,vg,Oe,ht,Yt,O,_t,st.predicate,Zh,dy),Gi=Ft||Yo.circles.length>0&&!Yo.collisionDetected,zn=zn&&Yo.offscreen}if(Oi.iconFeatureIndex&&(Lv=Oi.iconFeatureIndex),Oi.iconBox){var am=function(vc){var tu=Dt&&Ja?nc(vc,Ja.x,Ja.y,zt,_t,K.transform.angle):vc;return K.collisionIndex.placeCollisionBox(tu,Ut,cr,Oe,st.predicate)};ts&&ts.box&&ts.box.length&&Oi.verticalIconBox?(ms=am(Oi.verticalIconBox),on=ms.box.length>0):(ms=am(Oi.iconBox),on=ms.box.length>0),zn=zn&&ms.offscreen}var k1=It||Ei.numHorizontalGlyphVertices===0&&Ei.numVerticalGlyphVertices===0,C1=Bt||Ei.numIconVertices===0;if(!k1&&!C1?on=Gi=on&&Gi:C1?k1||(on=on&&Gi):Gi=on&&Gi,Gi&&so&&so.box&&(ts&&ts.box&&Cv?K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,Cv,st.ID):K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,st.ID)),on&&ms&&K.collisionIndex.insertCollisionBox(ms.box,we.get("icon-ignore-placement"),ne.bucketInstanceId,Lv,st.ID),Yo&&(Gi&&K.collisionIndex.insertCollisionCircles(Yo.circles,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,st.ID),O)){var vy=ne.bucketInstanceId,om=K.collisionCircleArrays[vy];om===void 0&&(om=K.collisionCircleArrays[vy]=new Io);for(var sm=0;sm=0;--ci){var bi=Di[ci];Br(ne.symbolInstances.get(bi),ne.collisionArrays[bi])}else for(var gn=D.symbolInstanceStart;gn=0&&(ne>=0&&Yt!==ne?D.text.placedSymbolArray.get(Yt).crossTileID=0:D.text.placedSymbolArray.get(Yt).crossTileID=O.crossTileID)}},bs.prototype.markUsedOrientation=function(D,J,O){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,de=J===i.WritingMode.vertical?J:0,ne=[O.leftJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.rightJustifiedTextSymbolIndex],we=0,Oe=ne;we0||_t>0,Br=Ut.numIconVertices>0,Di=K.placedOrientations[Ut.crossTileID],ci=Di===i.WritingMode.vertical,bi=Di===i.WritingMode.horizontal||Di===i.WritingMode.horizontalOnly;if(_r){var gn=ac(lr.text),tn=ci?oa:gn;$e(D.text,zt,tn);var Ei=bi?oa:gn;$e(D.text,_t,Ei);var Oi=lr.text.isHidden();[Ut.rightJustifiedTextSymbolIndex,Ut.centerJustifiedTextSymbolIndex,Ut.leftJustifiedTextSymbolIndex].forEach(function(Lv){Lv>=0&&(D.text.placedSymbolArray.get(Lv).hidden=Oi||ci?1:0)}),Ut.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(Ut.verticalPlacedTextSymbolIndex).hidden=Oi||bi?1:0);var Gi=K.variableOffsets[Ut.crossTileID];Gi&&K.markUsedJustification(D,Gi.anchor,Ut,Di);var on=K.placedOrientations[Ut.crossTileID];on&&(K.markUsedJustification(D,"left",Ut,on),K.markUsedOrientation(D,on,Ut))}if(Br){var zn=ac(lr.icon),Ja=!(Nt&&Ut.verticalPlacedIconSymbolIndex&&ci);if(Ut.placedIconSymbolIndex>=0){var co=Ja?zn:oa;$e(D.icon,Ut.numIconVertices,co),D.icon.placedSymbolArray.get(Ut.placedIconSymbolIndex).hidden=lr.icon.isHidden()}if(Ut.verticalPlacedIconSymbolIndex>=0){var ts=Ja?oa:zn;$e(D.icon,Ut.numVerticalIconVertices,ts),D.icon.placedSymbolArray.get(Ut.verticalPlacedIconSymbolIndex).hidden=lr.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var so=D.collisionArrays[Ft];if(so){var Yo=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var ms=!0;if(ht){var ou=K.variableOffsets[Dt];ou?(Yo=Su(ou.anchor,ou.width,ou.height,ou.textOffset,ou.textBoxScale),Yt&&Yo._rotate(cr?K.transform.angle:-K.transform.angle)):ms=!1}so.textBox&&Rn(D.textCollisionBox.collisionVertexArray,lr.text.placed,!ms||ci,Yo.x,Yo.y),so.verticalTextBox&&Rn(D.textCollisionBox.collisionVertexArray,lr.text.placed,!ms||bi,Yo.x,Yo.y)}var Cv=!!(!bi&&so.verticalIconBox);so.iconBox&&Rn(D.iconCollisionBox.collisionVertexArray,lr.icon.placed,Cv,Nt?Yo.x:0,Nt?Yo.y:0),so.verticalIconBox&&Rn(D.iconCollisionBox.collisionVertexArray,lr.icon.placed,!Cv,Nt?Yo.x:0,Nt?Yo.y:0)}}},It=0;ItD},bs.prototype.setStale=function(){this.stale=!0};function Rn(Y,D,J,O,K){Y.emplaceBack(D?1:0,J?1:0,O||0,K||0),Y.emplaceBack(D?1:0,J?1:0,O||0,K||0),Y.emplaceBack(D?1:0,J?1:0,O||0,K||0),Y.emplaceBack(D?1:0,J?1:0,O||0,K||0)}var _a=Math.pow(2,25),Vu=Math.pow(2,24),ql=Math.pow(2,17),xo=Math.pow(2,16),Kl=Math.pow(2,9),Ns=Math.pow(2,8),Hl=Math.pow(2,1);function ac(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var D=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*_a+D*Vu+J*ql+D*xo+J*Kl+D*Ns+J*Hl+D}var oa=0,qo=function(D){this._sortAcrossTiles=D.layout.get("symbol-z-order")!=="viewport-y"&&D.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};qo.prototype.continuePlacement=function(D,J,O,K,de){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var we=D[this._currentPlacementIndex],Oe=J[we],ht=this.placement.collisionIndex.transform.zoom;if(Oe.type==="symbol"&&(!Oe.minzoom||Oe.minzoom<=ht)&&(!Oe.maxzoom||Oe.maxzoom>ht)){this._inProgressLayer||(this._inProgressLayer=new qo(Oe));var Yt=this._inProgressLayer.continuePlacement(O[Oe.source],this.placement,this._showCollisionBoxes,Oe,ne);if(Yt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Oo.prototype.commit=function(D){return this.placement.commit(D),this.placement};var Ol=512/i.EXTENT/2,Pc=function(D,J,O){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=O;for(var K=0;KD.overscaledZ)for(var ht in Oe){var Yt=Oe[ht];Yt.tileID.isChildOf(D)&&Yt.findMatches(J.symbolInstances,D,ne)}else{var cr=D.scaledTo(Number(we)),Nt=Oe[cr.key];Nt&&Nt.findMatches(J.symbolInstances,D,ne)}}for(var Ne=0;Ne0)throw new Error("Unimplemented: "+ne.map(function(we){return we.command}).join(", ")+".");return de.forEach(function(we){we.command!=="setTransition"&&K[we.command].apply(K,we.args)}),this.stylesheet=O,!0},D.prototype.addImage=function(O,K){if(this.getImage(O))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(O,K),this._afterImageUpdated(O)},D.prototype.updateImage=function(O,K){this.imageManager.updateImage(O,K)},D.prototype.getImage=function(O){return this.imageManager.getImage(O)},D.prototype.removeImage=function(O){if(!this.getImage(O))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(O),this._afterImageUpdated(O)},D.prototype._afterImageUpdated=function(O){this._availableImages=this.imageManager.listImages(),this._changedImages[O]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},D.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},D.prototype.addSource=function(O,K,de){var ne=this;if(de===void 0&&(de={}),this._checkLoaded(),this.sourceCaches[O]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var we=["vector","raster","geojson","video","image"],Oe=we.indexOf(K.type)>=0;if(!(Oe&&this._validate(i.validateStyle.source,"sources."+O,K,null,de))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var ht=this.sourceCaches[O]=new ti(O,K,this.dispatcher);ht.style=this,ht.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:ht.serialize(),sourceId:O}}),ht.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(O){if(this._checkLoaded(),this.sourceCaches[O]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===O)return this.fire(new i.ErrorEvent(new Error('Source "'+O+'" cannot be removed while layer "'+K+'" is using it.')));var de=this.sourceCaches[O];delete this.sourceCaches[O],delete this._updatedSources[O],de.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:O})),de.setEventedParent(null),de.clearTiles(),de.onRemove&&de.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(O,K){this._checkLoaded();var de=this.sourceCaches[O].getSource();de.setData(K),this._changed=!0},D.prototype.getSource=function(O){return this.sourceCaches[O]&&this.sourceCaches[O].getSource()},D.prototype.addLayer=function(O,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=O.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var we;if(O.type==="custom"){if(pl(this,i.validateCustomStyleLayer(O)))return;we=i.createStyleLayer(O)}else{if(typeof O.source=="object"&&(this.addSource(ne,O.source),O=i.clone$1(O),O=i.extend(O,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,O,{arrayIndex:-1},de))return;we=i.createStyleLayer(O),this._validateLayer(we),we.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[we.id]=we.serialize()}var Oe=K?this._order.indexOf(K):this._order.length;if(K&&Oe===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Oe,0,ne),this._layerOrderChanged=!0,this._layers[ne]=we,this._removedLayers[ne]&&we.source&&we.type!=="custom"){var ht=this._removedLayers[ne];delete this._removedLayers[ne],ht.type!==we.type?this._updatedSources[we.source]="clear":(this._updatedSources[we.source]="reload",this.sourceCaches[we.source].pause())}this._updateLayer(we),we.onAdd&&we.onAdd(this.map)},D.prototype.moveLayer=function(O,K){this._checkLoaded(),this._changed=!0;var de=this._layers[O];if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be moved.")));return}if(O!==K){var ne=this._order.indexOf(O);this._order.splice(ne,1);var we=K?this._order.indexOf(K):this._order.length;if(K&&we===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(we,0,O),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(O){this._checkLoaded();var K=this._layers[O];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var de=this._order.indexOf(O);this._order.splice(de,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[O]=K,delete this._layers[O],delete this._serializedLayers[O],delete this._updatedLayers[O],delete this._updatedPaintProps[O],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(O){return this._layers[O]},D.prototype.hasLayer=function(O){return O in this._layers},D.prototype.setLayerZoomRange=function(O,K,de){this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===de||(K!=null&&(ne.minzoom=K),de!=null&&(ne.maxzoom=de),this._updateLayer(ne))},D.prototype.setFilter=function(O,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,de)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},D.prototype.getFilter=function(O){return i.clone$1(this.getLayer(O).filter)},D.prototype.setLayoutProperty=function(O,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(O);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(we.getLayoutProperty(K),de)||(we.setLayoutProperty(K,de,ne),this._updateLayer(we))},D.prototype.getLayoutProperty=function(O,K){var de=this.getLayer(O);if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style.")));return}return de.getLayoutProperty(K)},D.prototype.setPaintProperty=function(O,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(O);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(we.getPaintProperty(K),de)){var Oe=we.setPaintProperty(K,de,ne);Oe&&this._updateLayer(we),this._changed=!0,this._updatedPaintProps[O]=!0}},D.prototype.getPaintProperty=function(O,K){return this.getLayer(O).getPaintProperty(K)},D.prototype.setFeatureState=function(O,K){this._checkLoaded();var de=O.source,ne=O.sourceLayer,we=this.sourceCaches[de];if(we===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var Oe=we.getSource().type;if(Oe==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Oe==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),we.setFeatureState(ne,O.id,K)},D.prototype.removeFeatureState=function(O,K){this._checkLoaded();var de=O.source,ne=this.sourceCaches[de];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var we=ne.getSource().type,Oe=we==="vector"?O.sourceLayer:void 0;if(we==="vector"&&!Oe){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof O.id!="string"&&typeof O.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Oe,O.id,K)},D.prototype.getFeatureState=function(O){this._checkLoaded();var K=O.source,de=O.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var we=ne.getSource().type;if(we==="vector"&&!de){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(de,O.id)},D.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},D.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(O){return O.serialize()}),layers:this._serializeLayers(this._order)},function(O){return O!==void 0})},D.prototype._updateLayer=function(O){this._updatedLayers[O.id]=!0,O.source&&!this._updatedSources[O.source]&&this.sourceCaches[O.source].getSource().type!=="raster"&&(this._updatedSources[O.source]="reload",this.sourceCaches[O.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(O){for(var K=this,de=function(bi){return K._layers[bi].type==="fill-extrusion"},ne={},we=[],Oe=this._order.length-1;Oe>=0;Oe--){var ht=this._order[Oe];if(de(ht)){ne[ht]=Oe;for(var Yt=0,cr=O;Yt=0;Ft--){var Ut=this._order[Ft];if(de(Ut))for(var zt=we.length-1;zt>=0;zt--){var _t=we[zt].feature;if(ne[_t.layer.id] .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var Jk=ye((Yxr,ZVe)=>{"use strict";var jVe=Pr(),WVe=ka().defaultLine,Rjt=Cc().attributes,Djt=ec(),Fjt=pf().textposition,zjt=mc().overrideAll,qjt=vl().templatedArray,cJ=y1(),XVe=Djt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});XVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Ojt=ZVe.exports=zjt({_arrayAttrRegexps:[jVe.counterRegex("mapbox",".layers",!0)],domain:Rjt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:cJ.styleValuesMapbox.concat(cJ.styleValuesNonMapbox),dflt:cJ.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:qjt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:WVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:WVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:XVe,textposition:jVe.extendFlat({},Fjt,{arrayOk:!1})}})},"plot","from-root");Ojt.uirevision={valType:"any",editType:"none"}});var e7=ye((Kxr,$Ve)=>{"use strict";var{hovertemplateAttrs:Bjt,texttemplateAttrs:Njt,templatefallbackAttrs:YVe}=Pl(),Ujt=Pg(),$k=rw(),L5=pf(),KVe=Jk(),Vjt=Vl(),Gjt=Tu(),pw=Ao().extendFlat,Hjt=mc().overrideAll,jjt=Jk(),JVe=$k.line,P5=$k.marker;$Ve.exports=Hjt({lon:$k.lon,lat:$k.lat,cluster:{enabled:{valType:"boolean"},maxzoom:pw({},jjt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:pw({},P5.opacity,{dflt:1})},mode:pw({},L5.mode,{dflt:"markers"}),text:pw({},L5.text,{}),texttemplate:Njt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:YVe({editType:"plot"}),hovertext:pw({},L5.hovertext,{}),line:{color:JVe.color,width:JVe.width},connectgaps:L5.connectgaps,marker:pw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:P5.opacity,size:P5.size,sizeref:P5.sizeref,sizemin:P5.sizemin,sizemode:P5.sizemode},Gjt("marker")),fill:$k.fill,fillcolor:Ujt(),textfont:KVe.layers.symbol.textfont,textposition:KVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:L5.selected.marker},unselected:{marker:L5.unselected.marker},hoverinfo:pw({},Vjt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Bjt(),hovertemplatefallback:YVe()},"calc","nested")});var fJ=ye((Jxr,QVe)=>{"use strict";var Wjt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];QVe.exports={isSupportedFont:function(e){return Wjt.indexOf(e)!==-1}}});var rGe=ye(($xr,tGe)=>{"use strict";var Qk=Pr(),hJ=Ru(),Xjt=$p(),Zjt=D0(),Yjt=F0(),Kjt=Fg(),eGe=e7(),Jjt=fJ().isSupportedFont;tGe.exports=function(t,r,n,i){function a(p,k){return Qk.coerce(t,r,eGe,p,k)}function o(p,k){return Qk.coerce2(t,r,eGe,p,k)}var s=$jt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),hJ.hasMarkers(r)){Xjt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(Qk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),Qk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}hJ.hasLines(r)&&(Zjt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,m=a("cluster.enabled",v);if(m||hJ.hasText(r)){var b=i.font.family;Yjt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Jjt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&Kjt(t,r,n,a),Qk.coerceSelectionMarkerOpacity(r,a)};function $jt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var dJ=ye((Qxr,nGe)=>{"use strict";var iGe=ho();nGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=iGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=iGe.tickText(o,o.c2l(s[1]),!0).text,i}});var vJ=ye((ebr,oGe)=>{"use strict";var aGe=Pr();oGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=aGe.isArrayOrTypedArray(r)?aGe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var hGe=ye((tbr,fGe)=>{"use strict";var uGe=Eo(),ov=Pr(),Qjt=fs().BADNUM,r7=hx(),sGe=tc(),eWt=So(),tWt=U3(),i7=Ru(),rWt=fJ().isSupportedFont,iWt=vJ(),nWt=ip().appendArrayPointValue,aWt=Zl().NEWLINES,oWt=Zl().BR_TAG_ALL;fGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=i7.hasLines(n),s=i7.hasMarkers(n),l=i7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=t7("fill"),d=t7("line"),v=t7("circle"),m=t7("symbol"),b={fill:h,line:d,circle:v,symbol:m};if(!i)return b;var p;if((a||o)&&(p=r7.calcTraceToLineCoords(r)),a&&(h.geojson=r7.makePolygon(p),h.layout.visibility="visible",ov.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=r7.makeLine(p),d.layout.visibility="visible",ov.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var k=sWt(r);v.geojson=k.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":gJ(n.cluster.color,n.cluster.step),"circle-radius":gJ(n.cluster.size,n.cluster.step),"circle-opacity":gJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":lGe(n),"text-size":12}}),ov.extendFlat(v.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(m.geojson=lWt(r,t),ov.extendFlat(m.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(ov.extendFlat(m.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&ov.extendFlat(m.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),m.layout["icon-allow-overlap"]=n.marker.allowoverlap,ov.extendFlat(m.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var M=(n.marker||{}).size,T=iWt(n.textposition,M);ov.extendFlat(m.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":lGe(n)}),ov.extendFlat(m.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function t7(e){return{type:e,geojson:r7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function sWt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=ov.isArrayOrTypedArray(r.color),a=ov.isArrayOrTypedArray(r.size),o=ov.isArrayOrTypedArray(r.opacity),s;function l(M){return t.opacity*M}function u(M){return M/2}var c;i&&(sGe.hasColorscale(t,"marker")?c=sGe.makeColorScaleFuncFromTrace(r):c=ov.identity);var f;a&&(f=tWt(t));var h;o&&(h=function(M){var T=uGe(M)?+ov.constrain(M,0,1):0;return l(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),rWt(s)||(s=r);var l=s.split(", ");return l}});var gGe=ye((rbr,pGe)=>{"use strict";var uWt=Pr(),dGe=hGe(),I5=y1().traceLayerPrefix,ng={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function vGe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:I5+t+"-fill",line:I5+t+"-line",circle:I5+t+"-circle",symbol:I5+t+"-symbol",cluster:I5+t+"-cluster",clusterCount:I5+t+"-cluster-count"},this.below=null}var eC=vGe.prototype;eC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&uWt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};eC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};eC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=T[L];i.removeLayer(u.layerIds[x])}M||i.removeSource(u.sourceIds.circle)}function h(M){for(var T=ng.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(u.layerIds[x]),M||i.removeSource(u.sourceIds[x])}}function v(M){l?f(M):d(M)}function m(M){s?c(M):h(M)}function b(){for(var M=s?ng.cluster:ng.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};pGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new vGe(t,n.uid,i,a),s=dGe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var cWt=ef(),mJ=Pr(),fWt=xT(),hWt=mJ.fillText,dWt=fs().BADNUM,vWt=y1().traceLayerPrefix;function pWt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=vWt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function m(S){var g=S.lonlat;if(g[0]===dWt||c&&l.indexOf(S.i+1)===-1)return 1/0;var P=mJ.modHalf(g[0],360),E=g[1],z=s.project([P,E]),q=z.x-a.c2p([v,E]),V=z.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(q*q+V*V)-G,1-3/G)}if(cWt.getClosest(n,m,e),e.index!==!1){var b=n[e.index],p=b.lonlat,k=[mJ.modHalf(p[0],360)+d,p[1]],M=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=M-L,e.x1=M+L,e.y0=T-L,e.y1=T+L;var x={};x[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,x);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=fWt(i,b),e.extraText=mGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function mGe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&hWt(t,e,u),u.join("
")}yGe.exports={hoverPoints:pWt,getExtraText:mGe}});var xGe=ye((nbr,_Ge)=>{"use strict";_Ge.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var wGe=ye((abr,bGe)=>{"use strict";var gWt=Pr(),mWt=Ru(),yWt=fs().BADNUM;bGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!mWt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof yJ=="object"&&typeof _J!="undefined"?_J.exports=t():(e=e||self,e.mapboxgl=t())})(yJ,(function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(y,_){return _={exports:{}},y(_,_.exports),_.exports}var o="1.13.4",s=l;function l(y,_,I,U){this.cx=3*y,this.bx=3*(I-y)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*_,this.by=3*(U-_)-this.cy,this.ay=1-this.cy-this.by,this.p1x=y,this.p1y=U,this.p2x=I,this.p2y=U}l.prototype.sampleCurveX=function(y){return((this.ax*y+this.bx)*y+this.cx)*y},l.prototype.sampleCurveY=function(y){return((this.ay*y+this.by)*y+this.cy)*y},l.prototype.sampleCurveDerivativeX=function(y){return(3*this.ax*y+2*this.bx)*y+this.cx},l.prototype.solveCurveX=function(y,_){typeof _=="undefined"&&(_=1e-6);var I,U,$,oe,he;for($=y,he=0;he<8;he++){if(oe=this.sampleCurveX($)-y,Math.abs(oe)<_)return $;var De=this.sampleCurveDerivativeX($);if(Math.abs(De)<1e-6)break;$=$-oe/De}if(I=0,U=1,$=y,$U)return U;for(;Ioe?I=$:U=$,$=(U-I)*.5+I}return $},l.prototype.solve=function(y,_){return this.sampleCurveY(this.solveCurveX(y,_))};var u=c;function c(y,_){this.x=y,this.y=_}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(y){return this.clone()._add(y)},sub:function(y){return this.clone()._sub(y)},multByPoint:function(y){return this.clone()._multByPoint(y)},divByPoint:function(y){return this.clone()._divByPoint(y)},mult:function(y){return this.clone()._mult(y)},div:function(y){return this.clone()._div(y)},rotate:function(y){return this.clone()._rotate(y)},rotateAround:function(y,_){return this.clone()._rotateAround(y,_)},matMult:function(y){return this.clone()._matMult(y)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(y){return this.x===y.x&&this.y===y.y},dist:function(y){return Math.sqrt(this.distSqr(y))},distSqr:function(y){var _=y.x-this.x,I=y.y-this.y;return _*_+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(y){return Math.atan2(this.y-y.y,this.x-y.x)},angleWith:function(y){return this.angleWithSep(y.x,y.y)},angleWithSep:function(y,_){return Math.atan2(this.x*_-this.y*y,this.x*y+this.y*_)},_matMult:function(y){var _=y[0]*this.x+y[1]*this.y,I=y[2]*this.x+y[3]*this.y;return this.x=_,this.y=I,this},_add:function(y){return this.x+=y.x,this.y+=y.y,this},_sub:function(y){return this.x-=y.x,this.y-=y.y,this},_mult:function(y){return this.x*=y,this.y*=y,this},_div:function(y){return this.x/=y,this.y/=y,this},_multByPoint:function(y){return this.x*=y.x,this.y*=y.y,this},_divByPoint:function(y){return this.x/=y.x,this.y/=y.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var y=this.y;return this.y=this.x,this.x=-y,this},_rotate:function(y){var _=Math.cos(y),I=Math.sin(y),U=_*this.x-I*this.y,$=I*this.x+_*this.y;return this.x=U,this.y=$,this},_rotateAround:function(y,_){var I=Math.cos(y),U=Math.sin(y),$=_.x+I*(this.x-_.x)-U*(this.y-_.y),oe=_.y+U*(this.x-_.x)+I*(this.y-_.y);return this.x=$,this.y=oe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(y){return y instanceof c?y:Array.isArray(y)?new c(y[0],y[1]):y};var f=typeof self!="undefined"?self:{};function h(y,_){if(Array.isArray(y)){if(!Array.isArray(_)||y.length!==_.length)return!1;for(var I=0;I=1)return 1;var _=y*y,I=_*y;return 4*(y<.5?I:3*(y-_)+I-.75)}function m(y,_,I,U){var $=new s(y,_,I,U);return function(oe){return $.solve(oe)}}var b=m(.25,.1,.25,1);function p(y,_,I){return Math.min(I,Math.max(_,y))}function k(y,_,I){var U=I-_,$=((y-_)%U+U)%U+_;return $===_?I:$}function M(y,_,I){if(!y.length)return I(null,[]);var U=y.length,$=new Array(y.length),oe=null;y.forEach(function(he,De){_(he,function(it,yt){it&&(oe=it),$[De]=yt,--U===0&&I(oe,$)})})}function T(y){var _=[];for(var I in y)_.push(y[I]);return _}function L(y,_){var I=[];for(var U in y)U in _||I.push(U);return I}function x(y){for(var _=[],I=arguments.length-1;I-- >0;)_[I]=arguments[I+1];for(var U=0,$=_;U<$.length;U+=1){var oe=$[U];for(var he in oe)y[he]=oe[he]}return y}function C(y,_){for(var I={},U=0;U<_.length;U++){var $=_[U];$ in y&&(I[$]=y[$])}return I}var S=1;function g(){return S++}function P(){function y(_){return _?(_^Math.random()*16>>_/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,y)}return y()}function E(y){return y<=1?1:Math.pow(2,Math.ceil(Math.log(y)/Math.LN2))}function z(y){return y?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(y):!1}function q(y,_){y.forEach(function(I){_[I]&&(_[I]=_[I].bind(_))})}function V(y,_){return y.indexOf(_,y.length-_.length)!==-1}function G(y,_,I){var U={};for(var $ in y)U[$]=_.call(I||this,y[$],$,y);return U}function Z(y,_,I){var U={};for(var $ in y)_.call(I||this,y[$],$,y)&&(U[$]=y[$]);return U}function j(y){return Array.isArray(y)?y.map(j):typeof y=="object"&&y?G(y,j):y}function N(y,_){for(var I=0;I=0)return!0;return!1}var H={};function re(y){H[y]||(typeof console!="undefined"&&console.warn(y),H[y]=!0)}function ae(y,_,I){return(I.y-y.y)*(_.x-y.x)>(_.y-y.y)*(I.x-y.x)}function _e(y){for(var _=0,I=0,U=y.length,$=U-1,oe=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(y.replace(_,function($,oe,he,De){var it=he||De;return I[oe]=it?it.toLowerCase():!0,""}),I["max-age"]){var U=parseInt(I["max-age"],10);isNaN(U)?delete I["max-age"]:I["max-age"]=U}return I}var ie=null;function Se(y){if(ie==null){var _=y.navigator?y.navigator.userAgent:null;ie=!!y.safari||!!(_&&(/\b(iPad|iPhone|iPod)\b/.test(_)||_.match("Safari")&&!_.match("Chrome")))}return ie}function ke(y){try{var _=f[y];return _.setItem("_mapbox_test_",1),_.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function be(y){return f.btoa(encodeURIComponent(y).replace(/%([0-9A-F]{2})/g,function(_,I){return String.fromCharCode(+("0x"+I))}))}function Be(y){return decodeURIComponent(f.atob(y).split("").map(function(_){return"%"+("00"+_.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Le=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),me=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,Pe=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,ce,He,lt={now:Le,frame:function(_){var I=me(_);return{cancel:function(){return Pe(I)}}},getImageData:function(_,I){I===void 0&&(I=0);var U=f.document.createElement("canvas"),$=U.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return U.width=_.width,U.height=_.height,$.drawImage(_,0,0,_.width,_.height),$.getImageData(-I,-I,_.width+2*I,_.height+2*I)},resolveURL:function(_){return ce||(ce=f.document.createElement("a")),ce.href=_,ce.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(He==null&&(He=f.matchMedia("(prefers-reduced-motion: reduce)")),He.matches):!1}},mt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Ht={supported:!1,testSupport:rr},at,ct=!1,ar,Vt=!1;f.document&&(ar=f.document.createElement("img"),ar.onload=function(){at&&tt(at),at=null,Vt=!0},ar.onerror=function(){ct=!0,at=null},ar.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function rr(y){ct||!ar||(Vt?tt(y):at=y)}function tt(y){var _=y.createTexture();y.bindTexture(y.TEXTURE_2D,_);try{if(y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,ar),y.isContextLost())return;Ht.supported=!0}catch(I){}y.deleteTexture(_),ct=!0}var je="01";function Ue(){for(var y="1",_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",U=0;U<10;U++)I+=_[Math.floor(Math.random()*62)];var $=720*60*1e3,oe=[y,je,I].join(""),he=Date.now()+$;return{token:oe,tokenExpiresAt:he}}var Ae=function(_,I){this._transformRequestFn=_,this._customAccessToken=I,this._createSkuToken()};Ae.prototype._createSkuToken=function(){var _=Ue();this._skuToken=_.token,this._skuTokenExpiresAt=_.tokenExpiresAt},Ae.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ae.prototype.transformRequest=function(_,I){return this._transformRequestFn?this._transformRequestFn(_,I)||{url:_}:{url:_}},Ae.prototype.normalizeStyleURL=function(_,I){if(!rt(_))return _;var U=jt(_);return U.path="/styles/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Ae.prototype.normalizeGlyphsURL=function(_,I){if(!rt(_))return _;var U=jt(_);return U.path="/fonts/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Ae.prototype.normalizeSourceURL=function(_,I){if(!rt(_))return _;var U=jt(_);return U.path="/v4/"+U.authority+".json",U.params.push("secure"),this._makeAPIURL(U,this._customAccessToken||I)},Ae.prototype.normalizeSpriteURL=function(_,I,U,$){var oe=jt(_);return rt(_)?(oe.path="/styles/v1"+oe.path+"/sprite"+I+U,this._makeAPIURL(oe,this._customAccessToken||$)):(oe.path+=""+I+U,or(oe))},Ae.prototype.normalizeTileURL=function(_,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),_&&!rt(_))return _;var U=jt(_),$=/(\.(png|jpg)\d*)(?=$)/,oe=/^.+\/v4\//,he=lt.devicePixelRatio>=2||I===512?"@2x":"",De=Ht.supported?".webp":"$1";U.path=U.path.replace($,""+he+De),U.path=U.path.replace(oe,"/"),U.path="/v4"+U.path;var it=this._customAccessToken||Et(U.params)||mt.ACCESS_TOKEN;return mt.REQUIRE_ACCESS_TOKEN&&it&&this._skuToken&&U.params.push("sku="+this._skuToken),this._makeAPIURL(U,it)},Ae.prototype.canonicalizeTileURL=function(_,I){var U="/v4/",$=/\.[\w]+$/,oe=jt(_);if(!oe.path.match(/(^\/v4\/)/)||!oe.path.match($))return _;var he="mapbox://tiles/";he+=oe.path.replace(U,"");var De=oe.params;return I&&(De=De.filter(function(it){return!it.match(/^access_token=/)})),De.length&&(he+="?"+De.join("&")),he},Ae.prototype.canonicalizeTileset=function(_,I){for(var U=I?rt(I):!1,$=[],oe=0,he=_.tiles||[];oe=0&&_.params.splice(oe,1)}if($.path!=="/"&&(_.path=""+$.path+_.path),!mt.REQUIRE_ACCESS_TOKEN)return or(_);if(I=I||mt.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+U);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+U);return _.params=_.params.filter(function(he){return he.indexOf("access_token")===-1}),_.params.push("access_token="+I),or(_)};function rt(y){return y.indexOf("mapbox:")===0}var St=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Tt(y){return St.test(y)}function dt(y){return y.indexOf("sku=")>0&&Tt(y)}function Et(y){for(var _=0,I=y;_=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},ei.prototype.processRequests=function(_){},ei.prototype.postEvent=function(_,I,U,$){var oe=this;if(mt.EVENTS_URL){var he=jt(mt.EVENTS_URL);he.params.push("access_token="+($||mt.ACCESS_TOKEN||""));var De={event:this.type,created:new Date(_).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:je,userId:this.anonId},it=I?x(De,I):De,yt={url:or(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([it])};this.pendingRequest=$r(yt,function(Lt){oe.pendingRequest=null,U(Lt),oe.saveEventData(),oe.processRequests($)})}},ei.prototype.queueRequest=function(_,I){this.queue.push(_),this.processRequests(I)};var qr=(function(y){function _(){y.call(this,"map.load"),this.success={},this.skuToken=""}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.postMapLoadEvent=function(U,$,oe,he){this.skuToken=oe,(mt.EVENTS_URL&&he||mt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(De){return rt(De)||Tt(De)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},_.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var oe=this.queue.shift(),he=oe.id,De=oe.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),z(this.anonId)||(this.anonId=P()),this.postEvent(De,{skuToken:this.skuToken},function(it){it||he&&($.success[he]=!0)},U))}},_})(ei),jr=(function(y){function _(I){y.call(this,"appUserTurnstile"),this._customAccessToken=I}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.postTurnstileEvent=function(U,$){mt.EVENTS_URL&&mt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(oe){return rt(oe)||Tt(oe)})&&this.queueRequest(Date.now(),$)},_.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var oe=Ar(mt.ACCESS_TOKEN),he=oe?oe.u:mt.ACCESS_TOKEN,De=he!==this.eventData.tokenU;z(this.anonId)||(this.anonId=P(),De=!0);var it=this.queue.shift();if(this.eventData.lastSuccess){var yt=new Date(this.eventData.lastSuccess),Lt=new Date(it),sr=(it-this.eventData.lastSuccess)/(1440*60*1e3);De=De||sr>=1||sr<-1||yt.getDate()!==Lt.getDate()}else De=!0;if(!De)return this.processRequests();this.postEvent(it,{"enabled.telemetry":!1},function(gr){gr||($.eventData.lastSuccess=it,$.eventData.tokenU=he)},U)}},_})(ei),gt=new jr,Ge=gt.postTurnstileEvent.bind(gt),Je=new qr,We=Je.postMapLoadEvent.bind(Je),et="mapbox-tiles",xt=500,At=50,Kt=1e3*60*7,Qt;function Mr(){f.caches&&!Qt&&(Qt=f.caches.open(et))}var Gr;function Ir(y,_){if(Gr===void 0)try{new Response(new ReadableStream),Gr=!0}catch(I){Gr=!1}Gr?_(y.body):y.blob().then(_)}function Yr(y,_,I){if(Mr(),!!Qt){var U={status:_.status,statusText:_.statusText,headers:new f.Headers};_.headers.forEach(function(he,De){return U.headers.set(De,he)});var $=ge(_.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&U.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var oe=new Date(U.headers.get("Expires")).getTime()-I;oeDate.now()&&!I["no-cache"]}var mi=1/0;function un(y){mi++,mi>At&&(y.getActor().send("enforceCacheSizeLimit",xt),mi=0)}function Fn(y){Mr(),Qt&&Qt.then(function(_){_.keys().then(function(I){for(var U=0;U=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(y.type==="json")try{$=JSON.parse(I.response)}catch(oe){return _(oe)}_(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else _(new Yn(I.statusText,I.status,y.url))},I.send(y.body),{cancel:function(){return I.abort()}}}var wr=function(y,_){if(!wt(y.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return tr(y,_);if(Ce()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",y,_,void 0,I)}}return ir(y,_)},Xr=function(y,_){return wr(x(y,{type:"json"}),_)},ti=function(y,_){return wr(x(y,{type:"arrayBuffer"}),_)},$r=function(y,_){return wr(x(y,{method:"POST"}),_)};function Ri(y){var _=f.document.createElement("a");return _.href=y,_.protocol===f.document.location.protocol&&_.host===f.document.location.host}var Hi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function en(y,_,I,U){var $=new f.Image,oe=f.URL;$.onload=function(){_(null,$),oe.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=Hi})},$.onerror=function(){return _(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var he=new f.Blob([new Uint8Array(y)],{type:"image/png"});$.cacheControl=I,$.expires=U,$.src=y.byteLength?oe.createObjectURL(he):Hi}function fn(y,_){var I=new f.Blob([new Uint8Array(y)],{type:"image/png"});f.createImageBitmap(I).then(function(U){_(null,U)}).catch(function(U){_(new Error("Could not load image because of "+U.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var yn,Mn,Ba=function(){yn=[],Mn=0};Ba();var ua=function(y,_){if(Ht.supported&&(y.headers||(y.headers={}),y.headers.accept="image/webp,*/*"),Mn>=mt.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:y,callback:_,cancelled:!1,cancel:function(){this.cancelled=!0}};return yn.push(I),I}Mn++;var U=!1,$=function(){if(!U)for(U=!0,Mn--;yn.length&&Mn0||this._oneTimeListeners&&this._oneTimeListeners[_]&&this._oneTimeListeners[_].length>0||this._eventedParent&&this._eventedParent.listens(_)},jn.prototype.setEventedParent=function(_,I){return this._eventedParent=_,this._eventedParentData=I,this};var Ha=8,vo={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},Gn={"*":{type:"source"}},Ct=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Sr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Jr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},hi={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},hn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Sn={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},En={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ki={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},_n=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],ya={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ea={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ma={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},_o={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},No={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},po={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Lo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ko={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ds={type:"array",value:"*"},Fs={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ll={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},ul={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Fl={type:"array",value:"*",minimum:1},us={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},rl=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],As={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},cl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Ks={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},zs={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Io={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},ls={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Yl={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Su={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},nc={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},bs={"*":{type:"string"}},Rn={$version:Ha,$root:vo,sources:Gn,source:Ct,source_vector:Sr,source_raster:Jr,source_raster_dem:hi,source_geojson:hn,source_video:Sn,source_image:En,layer:ki,layout:_n,layout_background:ya,layout_fill:ea,layout_circle:Ma,layout_heatmap:_o,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:No,layout_symbol:po,layout_raster:Lo,layout_hillshade:ko,filter:Ds,filter_operator:Fs,geometry_type:ll,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:ul,expression:Fl,light:us,paint:rl,paint_fill:As,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:cl,paint_circle:Ks,paint_heatmap:zs,paint_symbol:Io,paint_raster:ls,paint_hillshade:Yl,paint_background:Su,transition:nc,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:bs},_a=function(_,I,U,$){this.message=(_?_+": ":"")+U,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Vu(y){var _=y.key,I=y.value;return I?[new _a(_,I,"constants have been deprecated as of v8")]:[]}function zl(y){for(var _=[],I=arguments.length-1;I-- >0;)_[I]=arguments[I+1];for(var U=0,$=_;U<$.length;U+=1){var oe=$[U];for(var he in oe)y[he]=oe[he]}return y}function xo(y){return y instanceof Number||y instanceof String||y instanceof Boolean?y.valueOf():y}function Kl(y){if(Array.isArray(y))return y.map(Kl);if(y instanceof Object&&!(y instanceof Number||y instanceof String||y instanceof Boolean)){var _={};for(var I in y)_[I]=Kl(y[I]);return _}return xo(y)}var Ns=(function(y){function _(I,U){y.call(this,U),this.message=U,this.key=I}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_})(Error),Hl=function(_,I){I===void 0&&(I=[]),this.parent=_,this.bindings={};for(var U=0,$=I;U<$.length;U+=1){var oe=$[U],he=oe[0],De=oe[1];this.bindings[he]=De}};Hl.prototype.concat=function(_){return new Hl(this,_)},Hl.prototype.get=function(_){if(this.bindings[_])return this.bindings[_];if(this.parent)return this.parent.get(_);throw new Error(_+" not found in scope.")},Hl.prototype.has=function(_){return this.bindings[_]?!0:this.parent?this.parent.has(_):!1};var ac={kind:"null"},oa={kind:"number"},qo={kind:"string"},Oo={kind:"boolean"},ql={kind:"color"},Pc={kind:"object"},Do={kind:"value"},nf={kind:"error"},Vf={kind:"collator"},pl={kind:"formatted"},Zc={kind:"resolvedImage"};function Jl(y,_){return{kind:"array",itemType:y,N:_}}function qs(y){if(y.kind==="array"){var _=qs(y.itemType);return typeof y.N=="number"?"array<"+_+", "+y.N+">":y.itemType.kind==="value"?"array":"array<"+_+">"}else return y.kind}var yu=[ac,oa,qo,Oo,ql,pl,Pc,Jl(Do),Zc];function oc(y,_){if(_.kind==="error")return null;if(y.kind==="array"){if(_.kind==="array"&&(_.N===0&&_.itemType.kind==="value"||!oc(y.itemType,_.itemType))&&(typeof y.N!="number"||y.N===_.N))return null}else{if(y.kind===_.kind)return null;if(y.kind==="value")for(var I=0,U=yu;I255?255:yt}function $(yt){return yt<0?0:yt>1?1:yt}function oe(yt){return yt[yt.length-1]==="%"?U(parseFloat(yt)/100*255):U(parseInt(yt))}function he(yt){return yt[yt.length-1]==="%"?$(parseFloat(yt)/100):$(parseFloat(yt))}function De(yt,Lt,sr){return sr<0?sr+=1:sr>1&&(sr-=1),sr*6<1?yt+(Lt-yt)*sr*6:sr*2<1?Lt:sr*3<2?yt+(Lt-yt)*(2/3-sr)*6:yt}function it(yt){var Lt=yt.replace(/ /g,"").toLowerCase();if(Lt in I)return I[Lt].slice();if(Lt[0]==="#"){if(Lt.length===4){var sr=parseInt(Lt.substr(1),16);return sr>=0&&sr<=4095?[(sr&3840)>>4|(sr&3840)>>8,sr&240|(sr&240)>>4,sr&15|(sr&15)<<4,1]:null}else if(Lt.length===7){var sr=parseInt(Lt.substr(1),16);return sr>=0&&sr<=16777215?[(sr&16711680)>>16,(sr&65280)>>8,sr&255,1]:null}return null}var gr=Lt.indexOf("("),hr=Lt.indexOf(")");if(gr!==-1&&hr+1===Lt.length){var Rr=Lt.substr(0,gr),ni=Lt.substr(gr+1,hr-(gr+1)).split(","),ji=1;switch(Rr){case"rgba":if(ni.length!==4)return null;ji=he(ni.pop());case"rgb":return ni.length!==3?null:[oe(ni[0]),oe(ni[1]),oe(ni[2]),ji];case"hsla":if(ni.length!==4)return null;ji=he(ni.pop());case"hsl":if(ni.length!==3)return null;var wi=(parseFloat(ni[0])%360+360)%360/360,bn=he(ni[1]),rn=he(ni[2]),xn=rn<=.5?rn*(bn+1):rn+bn-rn*bn,In=rn*2-xn;return[U(De(In,xn,wi+1/3)*255),U(De(In,xn,wi)*255),U(De(In,xn,wi-1/3)*255),ji];default:return null}}return null}try{_.parseCSSColor=it}catch(yt){}}),Lf=jh.parseCSSColor,cs=function(_,I,U,$){$===void 0&&($=1),this.r=_,this.g=I,this.b=U,this.a=$};cs.parse=function(_){if(_){if(_ instanceof cs)return _;if(typeof _=="string"){var I=Lf(_);if(I)return new cs(I[0]/255*I[3],I[1]/255*I[3],I[2]/255*I[3],I[3])}}},cs.prototype.toString=function(){var _=this.toArray(),I=_[0],U=_[1],$=_[2],oe=_[3];return"rgba("+Math.round(I)+","+Math.round(U)+","+Math.round($)+","+oe+")"},cs.prototype.toArray=function(){var _=this,I=_.r,U=_.g,$=_.b,oe=_.a;return oe===0?[0,0,0,0]:[I*255/oe,U*255/oe,$*255/oe,oe]},cs.black=new cs(0,0,0,1),cs.white=new cs(1,1,1,1),cs.transparent=new cs(0,0,0,0),cs.red=new cs(1,0,0,1);var af=function(_,I,U){_?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=U,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};af.prototype.compare=function(_,I){return this.collator.compare(_,I)},af.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Gf=function(_,I,U,$,oe){this.text=_,this.image=I,this.scale=U,this.fontStack=$,this.textColor=oe},$l=function(_){this.sections=_};$l.fromString=function(_){return new $l([new Gf(_,null,null,null,null)])},$l.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(_){return _.text.length!==0||_.image&&_.image.name.length!==0})},$l.factory=function(_){return _ instanceof $l?_:$l.fromString(_)},$l.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(_){return _.text}).join("")},$l.prototype.serialize=function(){for(var _=["format"],I=0,U=this.sections;I=0&&y<=255&&typeof _=="number"&&_>=0&&_<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof U=="number"?[y,_,I,U]:[y,_,I];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof U=="undefined"||typeof U=="number"&&U>=0&&U<=1?null:"Invalid rgba value ["+[y,_,I,U].join(", ")+"]: 'a' must be between 0 and 1."}function Fu(y){if(y===null)return!0;if(typeof y=="string")return!0;if(typeof y=="boolean")return!0;if(typeof y=="number")return!0;if(y instanceof cs)return!0;if(y instanceof af)return!0;if(y instanceof $l)return!0;if(y instanceof fl)return!0;if(Array.isArray(y)){for(var _=0,I=y;_2){var De=_[1];if(typeof De!="string"||!(De in uc)||De==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=uc[De],U++}else he=Do;var it;if(_.length>3){if(_[2]!==null&&(typeof _[2]!="number"||_[2]<0||_[2]!==Math.floor(_[2])))return I.error('The length argument to "array" must be a positive integer literal',2);it=_[2],U++}$=Jl(he,it)}else $=uc[oe];for(var yt=[];U<_.length;U++){var Lt=I.parse(_[U],U,Do);if(!Lt)return null;yt.push(Lt)}return new bl($,yt)},bl.prototype.evaluate=function(_){for(var I=0;I1)&&I.push($)}}return I.concat(this.args.map(function(oe){return oe.serialize()}))};var Gu=function(_){this.type=pl,this.sections=_};Gu.parse=function(_,I){if(_.length<2)return I.error("Expected at least one argument.");var U=_[1];if(!Array.isArray(U)&&typeof U=="object")return I.error("First argument must be an image or text section.");for(var $=[],oe=!1,he=1;he<=_.length-1;++he){var De=_[he];if(oe&&typeof De=="object"&&!Array.isArray(De)){oe=!1;var it=null;if(De["font-scale"]&&(it=I.parse(De["font-scale"],1,oa),!it))return null;var yt=null;if(De["text-font"]&&(yt=I.parse(De["text-font"],1,Jl(qo)),!yt))return null;var Lt=null;if(De["text-color"]&&(Lt=I.parse(De["text-color"],1,ql),!Lt))return null;var sr=$[$.length-1];sr.scale=it,sr.font=yt,sr.textColor=Lt}else{var gr=I.parse(_[he],1,Do);if(!gr)return null;var hr=gr.type.kind;if(hr!=="string"&&hr!=="value"&&hr!=="null"&&hr!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");oe=!0,$.push({content:gr,scale:null,font:null,textColor:null})}}return new Gu($)},Gu.prototype.evaluate=function(_){var I=function(U){var $=U.content.evaluate(_);return Es($)===Zc?new Gf("",$,null,null,null):new Gf(Hs($),null,U.scale?U.scale.evaluate(_):null,U.font?U.font.evaluate(_).join(","):null,U.textColor?U.textColor.evaluate(_):null)};return new $l(this.sections.map(I))},Gu.prototype.eachChild=function(_){for(var I=0,U=this.sections;I-1),U},Os.prototype.eachChild=function(_){_(this.input)},Os.prototype.outputDefined=function(){return!1},Os.prototype.serialize=function(){return["image",this.input.serialize()]};var od={"to-boolean":Oo,"to-color":ql,"to-number":oa,"to-string":qo},Po=function(_,I){this.type=_,this.args=I};Po.parse=function(_,I){if(_.length<2)return I.error("Expected at least one argument.");var U=_[0];if((U==="to-boolean"||U==="to-string")&&_.length!==2)return I.error("Expected one argument.");for(var $=od[U],oe=[],he=1;he<_.length;he++){var De=I.parse(_[he],he,Do);if(!De)return null;oe.push(De)}return new Po($,oe)},Po.prototype.evaluate=function(_){if(this.type.kind==="boolean")return!!this.args[0].evaluate(_);if(this.type.kind==="color"){for(var I,U,$=0,oe=this.args;$4?U="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":U=lc(I[0],I[1],I[2],I[3]),!U))return new cs(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new ps(U||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var it=null,yt=0,Lt=this.args;yt=_[2]||y[1]<=_[1]||y[3]>=_[3])}function Ah(y,_){var I=Ic(y[0]),U=yf(y[1]),$=Math.pow(2,_.z);return[Math.round(I*$*wl),Math.round(U*$*wl)]}function Qf(y,_,I){var U=y[0]-_[0],$=y[1]-_[1],oe=y[0]-I[0],he=y[1]-I[1];return U*he-oe*$===0&&U*oe<=0&&$*he<=0}function _f(y,_,I){return _[1]>y[1]!=I[1]>y[1]&&y[0]<(I[0]-_[0])*(y[1]-_[1])/(I[1]-_[1])+_[0]}function Yc(y,_){for(var I=!1,U=0,$=_.length;U<$;U++)for(var oe=_[U],he=0,De=oe.length;he0&&sr<0||Lt<0&&sr>0}function jf(y,_,I,U){var $=[_[0]-y[0],_[1]-y[1]],oe=[U[0]-I[0],U[1]-I[1]];return th(oe,$)===0?!1:!!(ju(y,_,I,U)&&ju(I,U,y,_))}function cc(y,_,I){for(var U=0,$=I;U<$.length;U+=1)for(var oe=$[U],he=0;heI[2]){var $=U*.5,oe=y[0]-I[0]>$?-U:I[0]-y[0]>$?U:0;oe===0&&(oe=y[0]-I[2]>$?-U:I[2]-y[0]>$?U:0),y[0]+=oe}Hf(_,y)}function Wf(y){y[0]=y[1]=1/0,y[2]=y[3]=-1/0}function Wh(y,_,I,U){for(var $=Math.pow(2,U.z)*wl,oe=[U.x*wl,U.y*wl],he=[],De=0,it=y;De=0)return!1;var I=!0;return y.eachChild(function(U){I&&!Eu(U,_)&&(I=!1)}),I}var Dc=function(_,I){this.type=I.type,this.name=_,this.boundExpression=I};Dc.parse=function(_,I){if(_.length!==2||typeof _[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var U=_[1];return I.scope.has(U)?new Dc(U,I.scope.get(U)):I.error('Unknown variable "'+U+'". Make sure "'+U+'" has been bound in an enclosing "let" expression before using it.',1)},Dc.prototype.evaluate=function(_){return this.boundExpression.evaluate(_)},Dc.prototype.eachChild=function(){},Dc.prototype.outputDefined=function(){return!1},Dc.prototype.serialize=function(){return["var",this.name]};var ks=function(_,I,U,$,oe){I===void 0&&(I=[]),$===void 0&&($=new Hl),oe===void 0&&(oe=[]),this.registry=_,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=oe,this.expectedType=U};ks.prototype.parse=function(_,I,U,$,oe){return oe===void 0&&(oe={}),I?this.concat(I,U,$)._parse(_,oe):this._parse(_,oe)},ks.prototype._parse=function(_,I){(_===null||typeof _=="string"||typeof _=="boolean"||typeof _=="number")&&(_=["literal",_]);function U(Lt,sr,gr){return gr==="assert"?new bl(sr,[Lt]):gr==="coerce"?new Po(sr,[Lt]):Lt}if(Array.isArray(_)){if(_.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=_[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var oe=this.registry[$];if(oe){var he=oe.parse(_,this);if(!he)return null;if(this.expectedType){var De=this.expectedType,it=he.type;if((De.kind==="string"||De.kind==="number"||De.kind==="boolean"||De.kind==="object"||De.kind==="array")&&it.kind==="value")he=U(he,De,I.typeAnnotation||"assert");else if((De.kind==="color"||De.kind==="formatted"||De.kind==="resolvedImage")&&(it.kind==="value"||it.kind==="string"))he=U(he,De,I.typeAnnotation||"coerce");else if(this.checkSubtype(De,it))return null}if(!(he instanceof Go)&&he.type.kind!=="resolvedImage"&&bc(he)){var yt=new Ko;try{he=new Go(he.type,he.evaluate(yt))}catch(Lt){return this.error(Lt.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof _=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof _=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof _+" instead.")},ks.prototype.concat=function(_,I,U){var $=typeof _=="number"?this.path.concat(_):this.path,oe=U?this.scope.concat(U):this.scope;return new ks(this.registry,$,I||null,oe,this.errors)},ks.prototype.error=function(_){for(var I=[],U=arguments.length-1;U-- >0;)I[U]=arguments[U+1];var $=""+this.key+I.map(function(oe){return"["+oe+"]"}).join("");this.errors.push(new Ns($,_))},ks.prototype.checkSubtype=function(_,I){var U=oc(_,I);return U&&this.error(U),U};function bc(y){if(y instanceof Dc)return bc(y.boundExpression);if(y instanceof Pa&&y.name==="error")return!1;if(y instanceof Hu)return!1;if(y instanceof Mu)return!1;var _=y instanceof Po||y instanceof bl,I=!0;return y.eachChild(function(U){_?I=I&&bc(U):I=I&&U instanceof Go}),I?ih(y)&&Eu(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function hu(y,_){for(var I=y.length-1,U=0,$=I,oe=0,he,De;U<=$;)if(oe=Math.floor((U+$)/2),he=y[oe],De=y[oe+1],he<=_){if(oe===I||__)$=oe-1;else throw new ps("Input is not a number.");return 0}var _u=function(_,I,U){this.type=_,this.input=I,this.labels=[],this.outputs=[];for(var $=0,oe=U;$=De)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',yt);var sr=I.parse(it,Lt,oe);if(!sr)return null;oe=oe||sr.type,$.push([De,sr])}return new _u(oe,U,$)},_u.prototype.evaluate=function(_){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(_);var $=this.input.evaluate(_);if($<=I[0])return U[0].evaluate(_);var oe=I.length;if($>=I[oe-1])return U[oe-1].evaluate(_);var he=hu(I,$);return U[he].evaluate(_)},_u.prototype.eachChild=function(_){_(this.input);for(var I=0,U=this.outputs;I0&&_.push(this.labels[I]),_.push(this.outputs[I].serialize());return _};function il(y,_,I){return y*(1-I)+_*I}function nh(y,_,I){return new cs(il(y.r,_.r,I),il(y.g,_.g,I),il(y.b,_.b,I),il(y.a,_.a,I))}function Mh(y,_,I){return y.map(function(U,$){return il(U,_[$],I)})}var zu=Object.freeze({__proto__:null,number:il,color:nh,array:Mh}),Fc=.95047,wc=1,bd=1.08883,xf=4/29,Pf=6/29,qu=3*Pf*Pf,bf=Pf*Pf*Pf,jl=Math.PI/180,uf=180/Math.PI;function Xh(y){return y>bf?Math.pow(y,1/3):y/qu+xf}function If(y){return y>Pf?y*y*y:qu*(y-xf)}function Cs(y){return 255*(y<=.0031308?12.92*y:1.055*Math.pow(y,1/2.4)-.055)}function du(y){return y/=255,y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function ku(y){var _=du(y.r),I=du(y.g),U=du(y.b),$=Xh((.4124564*_+.3575761*I+.1804375*U)/Fc),oe=Xh((.2126729*_+.7151522*I+.072175*U)/wc),he=Xh((.0193339*_+.119192*I+.9503041*U)/bd);return{l:116*oe-16,a:500*($-oe),b:200*(oe-he),alpha:y.a}}function Xf(y){var _=(y.l+16)/116,I=isNaN(y.a)?_:_+y.a/500,U=isNaN(y.b)?_:_-y.b/200;return _=wc*If(_),I=Fc*If(I),U=bd*If(U),new cs(Cs(3.2404542*I-1.5371385*_-.4985314*U),Cs(-.969266*I+1.8760108*_+.041556*U),Cs(.0556434*I-.2040259*_+1.0572252*U),y.alpha)}function Us(y,_,I){return{l:il(y.l,_.l,I),a:il(y.a,_.a,I),b:il(y.b,_.b,I),alpha:il(y.alpha,_.alpha,I)}}function wf(y){var _=ku(y),I=_.l,U=_.a,$=_.b,oe=Math.atan2($,U)*uf;return{h:oe<0?oe+360:oe,c:Math.sqrt(U*U+$*$),l:I,alpha:y.a}}function zc(y){var _=y.h*jl,I=y.c,U=y.l;return Xf({l:U,a:Math.cos(_)*I,b:Math.sin(_)*I,alpha:y.alpha})}function Wu(y,_,I){var U=_-y;return y+I*(U>180||U<-180?U-360*Math.round(U/360):U)}function Rf(y,_,I){return{h:Wu(y.h,_.h,I),c:il(y.c,_.c,I),l:il(y.l,_.l,I),alpha:il(y.alpha,_.alpha,I)}}var Xu={forward:ku,reverse:Xf,interpolate:Us},cf={forward:wf,reverse:zc,interpolate:Rf},Zf=Object.freeze({__proto__:null,lab:Xu,hcl:cf}),Wl=function(_,I,U,$,oe){this.type=_,this.operator=I,this.interpolation=U,this.input=$,this.labels=[],this.outputs=[];for(var he=0,De=oe;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:it}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(_.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if((_.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(oe=I.parse(oe,2,oa),!oe)return null;var yt=[],Lt=null;U==="interpolate-hcl"||U==="interpolate-lab"?Lt=ql:I.expectedType&&I.expectedType.kind!=="value"&&(Lt=I.expectedType);for(var sr=0;sr=gr)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Rr);var ji=I.parse(hr,ni,Lt);if(!ji)return null;Lt=Lt||ji.type,yt.push([gr,ji])}return Lt.kind!=="number"&&Lt.kind!=="color"&&!(Lt.kind==="array"&&Lt.itemType.kind==="number"&&typeof Lt.N=="number")?I.error("Type "+qs(Lt)+" is not interpolatable."):new Wl(Lt,U,$,oe,yt)},Wl.prototype.evaluate=function(_){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(_);var $=this.input.evaluate(_);if($<=I[0])return U[0].evaluate(_);var oe=I.length;if($>=I[oe-1])return U[oe-1].evaluate(_);var he=hu(I,$),De=I[he],it=I[he+1],yt=Wl.interpolationFactor(this.interpolation,$,De,it),Lt=U[he].evaluate(_),sr=U[he+1].evaluate(_);return this.operator==="interpolate"?zu[this.type.kind.toLowerCase()](Lt,sr,yt):this.operator==="interpolate-hcl"?cf.reverse(cf.interpolate(cf.forward(Lt),cf.forward(sr),yt)):Xu.reverse(Xu.interpolate(Xu.forward(Lt),Xu.forward(sr),yt))},Wl.prototype.eachChild=function(_){_(this.input);for(var I=0,U=this.outputs;I=U.length)throw new ps("Array index out of bounds: "+I+" > "+(U.length-1)+".");if(I!==Math.floor(I))throw new ps("Array index must be an integer, but found "+I+" instead.");return U[I]},Tc.prototype.eachChild=function(_){_(this.index),_(this.input)},Tc.prototype.outputDefined=function(){return!1},Tc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Tl=function(_,I){this.type=Oo,this.needle=_,this.haystack=I};Tl.parse=function(_,I){if(_.length!==3)return I.error("Expected 2 arguments, but found "+(_.length-1)+" instead.");var U=I.parse(_[1],1,Do),$=I.parse(_[2],2,Do);return!U||!$?null:Cf(U.type,[Oo,qo,oa,ac,Do])?new Tl(U,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead")},Tl.prototype.evaluate=function(_){var I=this.needle.evaluate(_),U=this.haystack.evaluate(_);if(!U)return!1;if(!sc(I,["boolean","string","number","null"]))throw new ps("Expected first argument to be of type boolean, string, number or null, but found "+qs(Es(I))+" instead.");if(!sc(U,["string","array"]))throw new ps("Expected second argument to be of type array or string, but found "+qs(Es(U))+" instead.");return U.indexOf(I)>=0},Tl.prototype.eachChild=function(_){_(this.needle),_(this.haystack)},Tl.prototype.outputDefined=function(){return!0},Tl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var vu=function(_,I,U){this.type=oa,this.needle=_,this.haystack=I,this.fromIndex=U};vu.parse=function(_,I){if(_.length<=2||_.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var U=I.parse(_[1],1,Do),$=I.parse(_[2],2,Do);if(!U||!$)return null;if(!Cf(U.type,[Oo,qo,oa,ac,Do]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead");if(_.length===4){var oe=I.parse(_[3],3,oa);return oe?new vu(U,$,oe):null}else return new vu(U,$)},vu.prototype.evaluate=function(_){var I=this.needle.evaluate(_),U=this.haystack.evaluate(_);if(!sc(I,["boolean","string","number","null"]))throw new ps("Expected first argument to be of type boolean, string, number or null, but found "+qs(Es(I))+" instead.");if(!sc(U,["string","array"]))throw new ps("Expected second argument to be of type array or string, but found "+qs(Es(U))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(_);return U.indexOf(I,$)}return U.indexOf(I)},vu.prototype.eachChild=function(_){_(this.needle),_(this.haystack),this.fromIndex&&_(this.fromIndex)},vu.prototype.outputDefined=function(){return!1},vu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var _=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),_]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Oc=function(_,I,U,$,oe,he){this.inputType=_,this.type=I,this.input=U,this.cases=$,this.outputs=oe,this.otherwise=he};Oc.parse=function(_,I){if(_.length<5)return I.error("Expected at least 4 arguments, but found only "+(_.length-1)+".");if(_.length%2!==1)return I.error("Expected an even number of arguments.");var U,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var oe={},he=[],De=2;De<_.length-1;De+=2){var it=_[De],yt=_[De+1];Array.isArray(it)||(it=[it]);var Lt=I.concat(De);if(it.length===0)return Lt.error("Expected at least one branch label.");for(var sr=0,gr=it;srNumber.MAX_SAFE_INTEGER)return Lt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof hr=="number"&&Math.floor(hr)!==hr)return Lt.error("Numeric branch labels must be integer values.");if(!U)U=Es(hr);else if(Lt.checkSubtype(U,Es(hr)))return null;if(typeof oe[String(hr)]!="undefined")return Lt.error("Branch labels must be unique.");oe[String(hr)]=he.length}var Rr=I.parse(yt,De,$);if(!Rr)return null;$=$||Rr.type,he.push(Rr)}var ni=I.parse(_[1],1,Do);if(!ni)return null;var ji=I.parse(_[_.length-1],_.length-1,$);return!ji||ni.type.kind!=="value"&&I.concat(1).checkSubtype(U,ni.type)?null:new Oc(U,$,ni,oe,he,ji)},Oc.prototype.evaluate=function(_){var I=this.input.evaluate(_),U=Es(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return U.evaluate(_)},Oc.prototype.eachChild=function(_){_(this.input),this.outputs.forEach(_),_(this.otherwise)},Oc.prototype.outputDefined=function(){return this.outputs.every(function(_){return _.outputDefined()})&&this.otherwise.outputDefined()},Oc.prototype.serialize=function(){for(var _=this,I=["match",this.input.serialize()],U=Object.keys(this.cases).sort(),$=[],oe={},he=0,De=U;he=5)return I.error("Expected 3 or 4 arguments, but found "+(_.length-1)+" instead.");var U=I.parse(_[1],1,Do),$=I.parse(_[2],2,oa);if(!U||!$)return null;if(!Cf(U.type,[Jl(Do),qo,Do]))return I.error("Expected first argument to be of type array or string, but found "+qs(U.type)+" instead");if(_.length===4){var oe=I.parse(_[3],3,oa);return oe?new fc(U.type,U,$,oe):null}else return new fc(U.type,U,$)},fc.prototype.evaluate=function(_){var I=this.input.evaluate(_),U=this.beginIndex.evaluate(_);if(!sc(I,["string","array"]))throw new ps("Expected first argument to be of type array or string, but found "+qs(Es(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(_);return I.slice(U,$)}return I.slice(U)},fc.prototype.eachChild=function(_){_(this.input),_(this.beginIndex),this.endIndex&&_(this.endIndex)},fc.prototype.outputDefined=function(){return!1},fc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var _=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),_]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bc(y,_){return y==="=="||y==="!="?_.kind==="boolean"||_.kind==="string"||_.kind==="number"||_.kind==="null"||_.kind==="value":_.kind==="string"||_.kind==="number"||_.kind==="value"}function kt(y,_,I){return _===I}function Zt(y,_,I){return _!==I}function Er(y,_,I){return _I}function Kr(y,_,I){return _<=I}function Mi(y,_,I){return _>=I}function Xi(y,_,I,U){return U.compare(_,I)===0}function dn(y,_,I,U){return!Xi(y,_,I,U)}function wn(y,_,I,U){return U.compare(_,I)<0}function On(y,_,I,U){return U.compare(_,I)>0}function Yi(y,_,I,U){return U.compare(_,I)<=0}function $i(y,_,I,U){return U.compare(_,I)>=0}function an(y,_,I){var U=y!=="=="&&y!=="!=";return(function(){function $(oe,he,De){this.type=Oo,this.lhs=oe,this.rhs=he,this.collator=De,this.hasUntypedArgument=oe.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,De){if(he.length!==3&&he.length!==4)return De.error("Expected two or three arguments.");var it=he[0],yt=De.parse(he[1],1,Do);if(!yt)return null;if(!Bc(it,yt.type))return De.concat(1).error('"'+it+`" comparisons are not supported for type '`+qs(yt.type)+"'.");var Lt=De.parse(he[2],2,Do);if(!Lt)return null;if(!Bc(it,Lt.type))return De.concat(2).error('"'+it+`" comparisons are not supported for type '`+qs(Lt.type)+"'.");if(yt.type.kind!==Lt.type.kind&&yt.type.kind!=="value"&&Lt.type.kind!=="value")return De.error("Cannot compare types '"+qs(yt.type)+"' and '"+qs(Lt.type)+"'.");U&&(yt.type.kind==="value"&&Lt.type.kind!=="value"?yt=new bl(Lt.type,[yt]):yt.type.kind!=="value"&&Lt.type.kind==="value"&&(Lt=new bl(yt.type,[Lt])));var sr=null;if(he.length===4){if(yt.type.kind!=="string"&&Lt.type.kind!=="string"&&yt.type.kind!=="value"&&Lt.type.kind!=="value")return De.error("Cannot use collator to compare non-string types.");if(sr=De.parse(he[3],3,Vf),!sr)return null}return new $(yt,Lt,sr)},$.prototype.evaluate=function(he){var De=this.lhs.evaluate(he),it=this.rhs.evaluate(he);if(U&&this.hasUntypedArgument){var yt=Es(De),Lt=Es(it);if(yt.kind!==Lt.kind||!(yt.kind==="string"||yt.kind==="number"))throw new ps('Expected arguments for "'+y+'" to be (string, string) or (number, number), but found ('+yt.kind+", "+Lt.kind+") instead.")}if(this.collator&&!U&&this.hasUntypedArgument){var sr=Es(De),gr=Es(it);if(sr.kind!=="string"||gr.kind!=="string")return _(he,De,it)}return this.collator?I(he,De,it,this.collator.evaluate(he)):_(he,De,it)},$.prototype.eachChild=function(he){he(this.lhs),he(this.rhs),this.collator&&he(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var he=[y];return this.eachChild(function(De){he.push(De.serialize())}),he},$})()}var Fi=an("==",kt,Xi),ta=an("!=",Zt,dn),Ca=an("<",Er,wn),Ra=an(">",xr,On),La=an("<=",Kr,Yi),Ua=an(">=",Mi,$i),Zn=function(_,I,U,$,oe){this.type=qo,this.number=_,this.locale=I,this.currency=U,this.minFractionDigits=$,this.maxFractionDigits=oe};Zn.parse=function(_,I){if(_.length!==3)return I.error("Expected two arguments.");var U=I.parse(_[1],1,oa);if(!U)return null;var $=_[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var oe=null;if($.locale&&(oe=I.parse($.locale,1,qo),!oe))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,qo),!he))return null;var De=null;if($["min-fraction-digits"]&&(De=I.parse($["min-fraction-digits"],1,oa),!De))return null;var it=null;return $["max-fraction-digits"]&&(it=I.parse($["max-fraction-digits"],1,oa),!it)?null:new Zn(U,oe,he,De,it)},Zn.prototype.evaluate=function(_){return new Intl.NumberFormat(this.locale?this.locale.evaluate(_):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(_):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(_):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(_):void 0}).format(this.number.evaluate(_))},Zn.prototype.eachChild=function(_){_(this.number),this.locale&&_(this.locale),this.currency&&_(this.currency),this.minFractionDigits&&_(this.minFractionDigits),this.maxFractionDigits&&_(this.maxFractionDigits)},Zn.prototype.outputDefined=function(){return!1},Zn.prototype.serialize=function(){var _={};return this.locale&&(_.locale=this.locale.serialize()),this.currency&&(_.currency=this.currency.serialize()),this.minFractionDigits&&(_["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(_["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),_]};var Dn=function(_){this.type=oa,this.input=_};Dn.parse=function(_,I){if(_.length!==2)return I.error("Expected 1 argument, but found "+(_.length-1)+" instead.");var U=I.parse(_[1],1);return U?U.type.kind!=="array"&&U.type.kind!=="string"&&U.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+qs(U.type)+" instead."):new Dn(U):null},Dn.prototype.evaluate=function(_){var I=this.input.evaluate(_);if(typeof I=="string")return I.length;if(Array.isArray(I))return I.length;throw new ps("Expected value to be of type string or array, but found "+qs(Es(I))+" instead.")},Dn.prototype.eachChild=function(_){_(this.input)},Dn.prototype.outputDefined=function(){return!1},Dn.prototype.serialize=function(){var _=["length"];return this.eachChild(function(I){_.push(I.serialize())}),_};var Ka={"==":Fi,"!=":ta,">":Ra,"<":Ca,">=":Ua,"<=":La,array:bl,at:Tc,boolean:bl,case:ff,coalesce:Zu,collator:Hu,format:Gu,image:Os,in:Tl,"index-of":vu,interpolate:Wl,"interpolate-hcl":Wl,"interpolate-lab":Wl,length:Dn,let:qc,literal:Go,match:Oc,number:bl,"number-format":Zn,object:bl,slice:fc,step:_u,string:bl,"to-boolean":Po,"to-color":Po,"to-number":Po,"to-string":Po,var:Dc,within:Mu};function bo(y,_){var I=_[0],U=_[1],$=_[2],oe=_[3];I=I.evaluate(y),U=U.evaluate(y),$=$.evaluate(y);var he=oe?oe.evaluate(y):1,De=lc(I,U,$,he);if(De)throw new ps(De);return new cs(I/255*he,U/255*he,$/255*he,he)}function Zo(y,_){return y in _}function Ss(y,_){var I=_[y];return typeof I=="undefined"?null:I}function as(y,_,I,U){for(;I<=U;){var $=I+U>>1;if(_[$]===y)return!0;_[$]>y?U=$-1:I=$+1}return!1}function ws(y){return{type:y}}Pa.register(Ka,{error:[nf,[qo],function(y,_){var I=_[0];throw new ps(I.evaluate(y))}],typeof:[qo,[Do],function(y,_){var I=_[0];return qs(Es(I.evaluate(y)))}],"to-rgba":[Jl(oa,4),[ql],function(y,_){var I=_[0];return I.evaluate(y).toArray()}],rgb:[ql,[oa,oa,oa],bo],rgba:[ql,[oa,oa,oa,oa],bo],has:{type:Oo,overloads:[[[qo],function(y,_){var I=_[0];return Zo(I.evaluate(y),y.properties())}],[[qo,Pc],function(y,_){var I=_[0],U=_[1];return Zo(I.evaluate(y),U.evaluate(y))}]]},get:{type:Do,overloads:[[[qo],function(y,_){var I=_[0];return Ss(I.evaluate(y),y.properties())}],[[qo,Pc],function(y,_){var I=_[0],U=_[1];return Ss(I.evaluate(y),U.evaluate(y))}]]},"feature-state":[Do,[qo],function(y,_){var I=_[0];return Ss(I.evaluate(y),y.featureState||{})}],properties:[Pc,[],function(y){return y.properties()}],"geometry-type":[qo,[],function(y){return y.geometryType()}],id:[Do,[],function(y){return y.id()}],zoom:[oa,[],function(y){return y.globals.zoom}],"heatmap-density":[oa,[],function(y){return y.globals.heatmapDensity||0}],"line-progress":[oa,[],function(y){return y.globals.lineProgress||0}],accumulated:[Do,[],function(y){return y.globals.accumulated===void 0?null:y.globals.accumulated}],"+":[oa,ws(oa),function(y,_){for(var I=0,U=0,$=_;U<$.length;U+=1){var oe=$[U];I+=oe.evaluate(y)}return I}],"*":[oa,ws(oa),function(y,_){for(var I=1,U=0,$=_;U<$.length;U+=1){var oe=$[U];I*=oe.evaluate(y)}return I}],"-":{type:oa,overloads:[[[oa,oa],function(y,_){var I=_[0],U=_[1];return I.evaluate(y)-U.evaluate(y)}],[[oa],function(y,_){var I=_[0];return-I.evaluate(y)}]]},"/":[oa,[oa,oa],function(y,_){var I=_[0],U=_[1];return I.evaluate(y)/U.evaluate(y)}],"%":[oa,[oa,oa],function(y,_){var I=_[0],U=_[1];return I.evaluate(y)%U.evaluate(y)}],ln2:[oa,[],function(){return Math.LN2}],pi:[oa,[],function(){return Math.PI}],e:[oa,[],function(){return Math.E}],"^":[oa,[oa,oa],function(y,_){var I=_[0],U=_[1];return Math.pow(I.evaluate(y),U.evaluate(y))}],sqrt:[oa,[oa],function(y,_){var I=_[0];return Math.sqrt(I.evaluate(y))}],log10:[oa,[oa],function(y,_){var I=_[0];return Math.log(I.evaluate(y))/Math.LN10}],ln:[oa,[oa],function(y,_){var I=_[0];return Math.log(I.evaluate(y))}],log2:[oa,[oa],function(y,_){var I=_[0];return Math.log(I.evaluate(y))/Math.LN2}],sin:[oa,[oa],function(y,_){var I=_[0];return Math.sin(I.evaluate(y))}],cos:[oa,[oa],function(y,_){var I=_[0];return Math.cos(I.evaluate(y))}],tan:[oa,[oa],function(y,_){var I=_[0];return Math.tan(I.evaluate(y))}],asin:[oa,[oa],function(y,_){var I=_[0];return Math.asin(I.evaluate(y))}],acos:[oa,[oa],function(y,_){var I=_[0];return Math.acos(I.evaluate(y))}],atan:[oa,[oa],function(y,_){var I=_[0];return Math.atan(I.evaluate(y))}],min:[oa,ws(oa),function(y,_){return Math.min.apply(Math,_.map(function(I){return I.evaluate(y)}))}],max:[oa,ws(oa),function(y,_){return Math.max.apply(Math,_.map(function(I){return I.evaluate(y)}))}],abs:[oa,[oa],function(y,_){var I=_[0];return Math.abs(I.evaluate(y))}],round:[oa,[oa],function(y,_){var I=_[0],U=I.evaluate(y);return U<0?-Math.round(-U):Math.round(U)}],floor:[oa,[oa],function(y,_){var I=_[0];return Math.floor(I.evaluate(y))}],ceil:[oa,[oa],function(y,_){var I=_[0];return Math.ceil(I.evaluate(y))}],"filter-==":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1];return y.properties()[I.value]===U.value}],"filter-id-==":[Oo,[Do],function(y,_){var I=_[0];return y.id()===I.value}],"filter-type-==":[Oo,[qo],function(y,_){var I=_[0];return y.geometryType()===I.value}],"filter-<":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1],$=y.properties()[I.value],oe=U.value;return typeof $==typeof oe&&$":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1],$=y.properties()[I.value],oe=U.value;return typeof $==typeof oe&&$>oe}],"filter-id->":[Oo,[Do],function(y,_){var I=_[0],U=y.id(),$=I.value;return typeof U==typeof $&&U>$}],"filter-<=":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1],$=y.properties()[I.value],oe=U.value;return typeof $==typeof oe&&$<=oe}],"filter-id-<=":[Oo,[Do],function(y,_){var I=_[0],U=y.id(),$=I.value;return typeof U==typeof $&&U<=$}],"filter->=":[Oo,[qo,Do],function(y,_){var I=_[0],U=_[1],$=y.properties()[I.value],oe=U.value;return typeof $==typeof oe&&$>=oe}],"filter-id->=":[Oo,[Do],function(y,_){var I=_[0],U=y.id(),$=I.value;return typeof U==typeof $&&U>=$}],"filter-has":[Oo,[Do],function(y,_){var I=_[0];return I.value in y.properties()}],"filter-has-id":[Oo,[],function(y){return y.id()!==null&&y.id()!==void 0}],"filter-type-in":[Oo,[Jl(qo)],function(y,_){var I=_[0];return I.value.indexOf(y.geometryType())>=0}],"filter-id-in":[Oo,[Jl(Do)],function(y,_){var I=_[0];return I.value.indexOf(y.id())>=0}],"filter-in-small":[Oo,[qo,Jl(Do)],function(y,_){var I=_[0],U=_[1];return U.value.indexOf(y.properties()[I.value])>=0}],"filter-in-large":[Oo,[qo,Jl(Do)],function(y,_){var I=_[0],U=_[1];return as(y.properties()[I.value],U.value,0,U.value.length-1)}],all:{type:Oo,overloads:[[[Oo,Oo],function(y,_){var I=_[0],U=_[1];return I.evaluate(y)&&U.evaluate(y)}],[ws(Oo),function(y,_){for(var I=0,U=_;I-1}function va(y){return!!y.expression&&y.expression.interpolated}function no(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":y===null?"null":typeof y}function ys(y){return typeof y=="object"&&y!==null&&!Array.isArray(y)}function rs(y){return y}function Ql(y,_){var I=_.type==="color",U=y.stops&&typeof y.stops[0][0]=="object",$=U||y.property!==void 0,oe=U||!$,he=y.type||(va(_)?"exponential":"interval");if(I&&(y=zl({},y),y.stops&&(y.stops=y.stops.map(function(ha){return[ha[0],cs.parse(ha[1])]})),y.default?y.default=cs.parse(y.default):y.default=cs.parse(_.default)),y.colorSpace&&y.colorSpace!=="rgb"&&!Zf[y.colorSpace])throw new Error("Unknown color space: "+y.colorSpace);var De,it,yt;if(he==="exponential")De=pu;else if(he==="interval")De=Nc;else if(he==="categorical"){De=Yu,it=Object.create(null);for(var Lt=0,sr=y.stops;Lt=y.stops[U-1][0])return y.stops[U-1][1];var $=hu(y.stops.map(function(oe){return oe[0]}),I);return y.stops[$][1]}function pu(y,_,I){var U=y.base!==void 0?y.base:1;if(no(I)!=="number")return Cu(y.default,_.default);var $=y.stops.length;if($===1||I<=y.stops[0][0])return y.stops[0][1];if(I>=y.stops[$-1][0])return y.stops[$-1][1];var oe=hu(y.stops.map(function(sr){return sr[0]}),I),he=xu(I,U,y.stops[oe][0],y.stops[oe+1][0]),De=y.stops[oe][1],it=y.stops[oe+1][1],yt=zu[_.type]||rs;if(y.colorSpace&&y.colorSpace!=="rgb"){var Lt=Zf[y.colorSpace];yt=function(sr,gr){return Lt.reverse(Lt.interpolate(Lt.forward(sr),Lt.forward(gr),he))}}return typeof De.evaluate=="function"?{evaluate:function(){for(var gr=[],hr=arguments.length;hr--;)gr[hr]=arguments[hr];var Rr=De.evaluate.apply(void 0,gr),ni=it.evaluate.apply(void 0,gr);if(!(Rr===void 0||ni===void 0))return yt(Rr,ni,he)}}:yt(De,it,he)}function Uc(y,_,I){return _.type==="color"?I=cs.parse(I):_.type==="formatted"?I=$l.fromString(I.toString()):_.type==="resolvedImage"?I=fl.fromString(I.toString()):no(I)!==_.type&&(_.type!=="enum"||!_.values[I])&&(I=void 0),Cu(I,y.default,_.default)}function xu(y,_,I,U){var $=U-I,oe=y-I;return $===0?0:_===1?oe/$:(Math.pow(_,oe)-1)/(Math.pow(_,$)-1)}var Ac=function(_,I){this.expression=_,this._warningHistory={},this._evaluator=new Ko,this._defaultValue=I?ee(I):null,this._enumValues=I&&I.type==="enum"?I.values:null};Ac.prototype.evaluateWithoutErrorHandling=function(_,I,U,$,oe,he){return this._evaluator.globals=_,this._evaluator.feature=I,this._evaluator.featureState=U,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Ac.prototype.evaluate=function(_,I,U,$,oe,he){this._evaluator.globals=_,this._evaluator.feature=I||null,this._evaluator.featureState=U||null,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=he||null;try{var De=this.expression.evaluate(this._evaluator);if(De==null||typeof De=="number"&&De!==De)return this._defaultValue;if(this._enumValues&&!(De in this._enumValues))throw new ps("Expected value to be one of "+Object.keys(this._enumValues).map(function(it){return JSON.stringify(it)}).join(", ")+", but found "+JSON.stringify(De)+" instead.");return De}catch(it){return this._warningHistory[it.message]||(this._warningHistory[it.message]=!0,typeof console!="undefined"&&console.warn(it.message)),this._defaultValue}};function Va(y){return Array.isArray(y)&&y.length>0&&typeof y[0]=="string"&&y[0]in Ka}function oo(y,_){var I=new ks(Ka,[],_?Q(_):void 0),U=I.parse(y,void 0,void 0,void 0,_&&_.type==="string"?{typeAnnotation:"coerce"}:void 0);return U?Ho(new Ac(U,_)):ml(I.errors)}var Vc=function(_,I){this.kind=_,this._styleExpression=I,this.isStateDependent=_!=="constant"&&!js(I.expression)};Vc.prototype.evaluateWithoutErrorHandling=function(_,I,U,$,oe,he){return this._styleExpression.evaluateWithoutErrorHandling(_,I,U,$,oe,he)},Vc.prototype.evaluate=function(_,I,U,$,oe,he){return this._styleExpression.evaluate(_,I,U,$,oe,he)};var hc=function(_,I,U,$){this.kind=_,this.zoomStops=U,this._styleExpression=I,this.isStateDependent=_!=="camera"&&!js(I.expression),this.interpolationType=$};hc.prototype.evaluateWithoutErrorHandling=function(_,I,U,$,oe,he){return this._styleExpression.evaluateWithoutErrorHandling(_,I,U,$,oe,he)},hc.prototype.evaluate=function(_,I,U,$,oe,he){return this._styleExpression.evaluate(_,I,U,$,oe,he)},hc.prototype.interpolationFactor=function(_,I,U){return this.interpolationType?Wl.interpolationFactor(this.interpolationType,_,I,U):0};function Ku(y,_){if(y=oo(y,_),y.result==="error")return y;var I=y.value.expression,U=ih(I);if(!U&&!Ws(_))return ml([new Ns("","data expressions not supported")]);var $=Eu(I,["zoom"]);if(!$&&!Ls(_))return ml([new Ns("","zoom expressions not supported")]);var oe=B(I);if(!oe&&!$)return ml([new Ns("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(oe instanceof Ns)return ml([oe]);if(oe instanceof Wl&&!va(_))return ml([new Ns("",'"interpolate" expressions cannot be used with this property')]);if(!oe)return Ho(U?new Vc("constant",y.value):new Vc("source",y.value));var he=oe instanceof Wl?oe.interpolation:void 0;return Ho(U?new hc("camera",y.value,oe.labels,he):new hc("composite",y.value,oe.labels,he))}var ue=function(_,I){this._parameters=_,this._specification=I,zl(this,Ql(this._parameters,this._specification))};ue.deserialize=function(_){return new ue(_._parameters,_._specification)},ue.serialize=function(_){return{_parameters:_._parameters,_specification:_._specification}};function w(y,_){if(ys(y))return new ue(y,_);if(Va(y)){var I=Ku(y,_);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var U=y;return typeof y=="string"&&_.type==="color"&&(U=cs.parse(y)),{kind:"constant",evaluate:function(){return U}}}}function B(y){var _=null;if(y instanceof qc)_=B(y.result);else if(y instanceof Zu)for(var I=0,U=y.args;IU.maximum?[new _a(_,I,I+" is greater than the maximum value "+U.maximum)]:[]}function ut(y){var _=y.valueSpec,I=xo(y.value.type),U,$={},oe,he,De=I!=="categorical"&&y.value.property===void 0,it=!De,yt=no(y.value.stops)==="array"&&no(y.value.stops[0])==="array"&&no(y.value.stops[0][0])==="object",Lt=le({key:y.key,value:y.value,valueSpec:y.styleSpec.function,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:sr,default:Rr}});return I==="identity"&&De&&Lt.push(new _a(y.key,y.value,'missing required property "property"')),I!=="identity"&&!y.value.stops&&Lt.push(new _a(y.key,y.value,'missing required property "stops"')),I==="exponential"&&y.valueSpec.expression&&!va(y.valueSpec)&&Lt.push(new _a(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(it&&!Ws(y.valueSpec)?Lt.push(new _a(y.key,y.value,"property functions not supported")):De&&!Ls(y.valueSpec)&&Lt.push(new _a(y.key,y.value,"zoom functions not supported"))),(I==="categorical"||yt)&&y.value.property===void 0&&Lt.push(new _a(y.key,y.value,'"property" property is required')),Lt;function sr(ni){if(I==="identity")return[new _a(ni.key,ni.value,'identity function may not have a "stops" property')];var ji=[],wi=ni.value;return ji=ji.concat(Fe({key:ni.key,value:wi,valueSpec:ni.valueSpec,style:ni.style,styleSpec:ni.styleSpec,arrayElementValidator:gr})),no(wi)==="array"&&wi.length===0&&ji.push(new _a(ni.key,wi,"array must have at least one stop")),ji}function gr(ni){var ji=[],wi=ni.value,bn=ni.key;if(no(wi)!=="array")return[new _a(bn,wi,"array expected, "+no(wi)+" found")];if(wi.length!==2)return[new _a(bn,wi,"array length 2 expected, length "+wi.length+" found")];if(yt){if(no(wi[0])!=="object")return[new _a(bn,wi,"object expected, "+no(wi[0])+" found")];if(wi[0].zoom===void 0)return[new _a(bn,wi,"object stop key must have zoom")];if(wi[0].value===void 0)return[new _a(bn,wi,"object stop key must have value")];if(he&&he>xo(wi[0].zoom))return[new _a(bn,wi[0].zoom,"stop zoom values must appear in ascending order")];xo(wi[0].zoom)!==he&&(he=xo(wi[0].zoom),oe=void 0,$={}),ji=ji.concat(le({key:bn+"[0]",value:wi[0],valueSpec:{zoom:{}},style:ni.style,styleSpec:ni.styleSpec,objectElementValidators:{zoom:Ze,value:hr}}))}else ji=ji.concat(hr({key:bn+"[0]",value:wi[0],valueSpec:{},style:ni.style,styleSpec:ni.styleSpec},wi));return Va(Kl(wi[1]))?ji.concat([new _a(bn+"[1]",wi[1],"expressions are not allowed in function stops.")]):ji.concat(Qa({key:bn+"[1]",value:wi[1],valueSpec:_,style:ni.style,styleSpec:ni.styleSpec}))}function hr(ni,ji){var wi=no(ni.value),bn=xo(ni.value),rn=ni.value!==null?ni.value:ji;if(!U)U=wi;else if(wi!==U)return[new _a(ni.key,rn,wi+" stop domain type must match previous stop domain type "+U)];if(wi!=="number"&&wi!=="string"&&wi!=="boolean")return[new _a(ni.key,rn,"stop domain value must be a number, string, or boolean")];if(wi!=="number"&&I!=="categorical"){var xn="number expected, "+wi+" found";return Ws(_)&&I===void 0&&(xn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new _a(ni.key,rn,xn)]}return I==="categorical"&&wi==="number"&&(!isFinite(bn)||Math.floor(bn)!==bn)?[new _a(ni.key,rn,"integer expected, found "+bn)]:I!=="categorical"&&wi==="number"&&oe!==void 0&&bn=2&&y[1]!=="$id"&&y[1]!=="$type";case"in":return y.length>=3&&(typeof y[1]!="string"||Array.isArray(y[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return y.length!==3||Array.isArray(y[1])||Array.isArray(y[2]);case"any":case"all":for(var _=0,I=y.slice(1);__?1:0}function ze(y){if(!Array.isArray(y))return!1;if(y[0]==="within")return!0;for(var _=1;_"||_==="<="||_===">="?Xe(y[1],y[2],_):_==="any"?nt(y.slice(1)):_==="all"?["all"].concat(y.slice(1).map(Qe)):_==="none"?["all"].concat(y.slice(1).map(Qe).map(nr)):_==="in"?qt(y[1],y.slice(2)):_==="!in"?nr(qt(y[1],y.slice(2))):_==="has"?Wt(y[1]):_==="!has"?nr(Wt(y[1])):_==="within"?y:!0;return I}function Xe(y,_,I){switch(y){case"$type":return["filter-type-"+I,_];case"$id":return["filter-id-"+I,_];default:return["filter-"+I,y,_]}}function nt(y){return["any"].concat(y.map(Qe))}function qt(y,_){if(_.length===0)return!1;switch(y){case"$type":return["filter-type-in",["literal",_]];case"$id":return["filter-id-in",["literal",_]];default:return _.length>200&&!_.some(function(I){return typeof I!=typeof _[0]})?["filter-in-large",y,["literal",_.sort(Ie)]]:["filter-in-small",y,["literal",_]]}}function Wt(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function nr(y){return["!",y]}function fr(y){return Cr(Kl(y.value))?Mt(zl({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):br(y)}function br(y){var _=y.value,I=y.key;if(no(_)!=="array")return[new _a(I,_,"array expected, "+no(_)+" found")];var U=y.styleSpec,$,oe=[];if(_.length<1)return[new _a(I,_,"filter array must have at least 1 element")];switch(oe=oe.concat(yr({key:I+"[0]",value:_[0],valueSpec:U.filter_operator,style:y.style,styleSpec:y.styleSpec})),xo(_[0])){case"<":case"<=":case">":case">=":_.length>=2&&xo(_[1])==="$type"&&oe.push(new _a(I,_,'"$type" cannot be use with operator "'+_[0]+'"'));case"==":case"!=":_.length!==3&&oe.push(new _a(I,_,'filter array for operator "'+_[0]+'" must have 3 elements'));case"in":case"!in":_.length>=2&&($=no(_[1]),$!=="string"&&oe.push(new _a(I+"[1]",_[1],"string expected, "+$+" found")));for(var he=2;he<_.length;he++)$=no(_[he]),xo(_[1])==="$type"?oe=oe.concat(yr({key:I+"["+he+"]",value:_[he],valueSpec:U.geometry_type,style:y.style,styleSpec:y.styleSpec})):$!=="string"&&$!=="number"&&$!=="boolean"&&oe.push(new _a(I+"["+he+"]",_[he],"string, number, or boolean expected, "+$+" found"));break;case"any":case"all":case"none":for(var De=1;De<_.length;De++)oe=oe.concat(br({key:I+"["+De+"]",value:_[De],style:y.style,styleSpec:y.styleSpec}));break;case"has":case"!has":$=no(_[1]),_.length!==2?oe.push(new _a(I,_,'filter array for "'+_[0]+'" operator must have 2 elements')):$!=="string"&&oe.push(new _a(I+"[1]",_[1],"string expected, "+$+" found"));break;case"within":$=no(_[1]),_.length!==2?oe.push(new _a(I,_,'filter array for "'+_[0]+'" operator must have 2 elements')):$!=="object"&&oe.push(new _a(I+"[1]",_[1],"object expected, "+$+" found"));break}return oe}function Fr(y,_){var I=y.key,U=y.style,$=y.styleSpec,oe=y.value,he=y.objectKey,De=$[_+"_"+y.layerType];if(!De)return[];var it=he.match(/^(.*)-transition$/);if(_==="paint"&&it&&De[it[1]]&&De[it[1]].transition)return Qa({key:I,value:oe,valueSpec:$.transition,style:U,styleSpec:$});var yt=y.valueSpec||De[he];if(!yt)return[new _a(I,oe,'unknown property "'+he+'"')];var Lt;if(no(oe)==="string"&&Ws(yt)&&!yt.tokens&&(Lt=/^{([^}]+)}$/.exec(oe)))return[new _a(I,oe,'"'+he+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(Lt[1])+" }`.")];var sr=[];return y.layerType==="symbol"&&(he==="text-field"&&U&&!U.glyphs&&sr.push(new _a(I,oe,'use of "text-field" requires a style "glyphs" property')),he==="text-font"&&ys(Kl(oe))&&xo(oe.type)==="identity"&&sr.push(new _a(I,oe,'"text-font" does not support identity functions'))),sr.concat(Qa({key:y.key,value:oe,valueSpec:yt,style:U,styleSpec:$,expressionContext:"property",propertyType:_,propertyKey:he}))}function Hr(y){return Fr(y,"paint")}function ri(y){return Fr(y,"layout")}function Ci(y){var _=[],I=y.value,U=y.key,$=y.style,oe=y.styleSpec;!I.type&&!I.ref&&_.push(new _a(U,I,'either "type" or "ref" is required'));var he=xo(I.type),De=xo(I.ref);if(I.id)for(var it=xo(I.id),yt=0;yt=Lt[hr+0]&&U>=Lt[hr+1])?(he[gr]=!0,oe.push(yt[gr])):he[gr]=!1}}},eu.prototype._forEachCell=function(y,_,I,U,$,oe,he,De){for(var it=this._convertToCellCoord(y),yt=this._convertToCellCoord(_),Lt=this._convertToCellCoord(I),sr=this._convertToCellCoord(U),gr=it;gr<=Lt;gr++)for(var hr=yt;hr<=sr;hr++){var Rr=this.d*hr+gr;if(!(De&&!De(this._convertFromCellCoord(gr),this._convertFromCellCoord(hr),this._convertFromCellCoord(gr+1),this._convertFromCellCoord(hr+1)))&&$.call(this,y,_,I,U,Rr,oe,he,De))return}},eu.prototype._convertFromCellCoord=function(y){return(y-this.padding)/this.scale},eu.prototype._convertToCellCoord=function(y){return Math.max(0,Math.min(this.d-1,Math.floor(y*this.scale)+this.padding))},eu.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var y=this.cells,_=Js+this.cells.length+1+1,I=0,U=0;U=0)){var sr=y[Lt];yt[Lt]=Sl[it].shallow.indexOf(Lt)>=0?sr:Ve(sr,_)}y instanceof Error&&(yt.message=y.message)}if(yt.$name)throw new Error("$name property is reserved for worker serialization logic.");return it!=="Object"&&(yt.$name=it),yt}throw new Error("can't serialize object of type "+typeof y)}function Ye(y){if(y==null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||y instanceof Boolean||y instanceof Number||y instanceof String||y instanceof Date||y instanceof RegExp||Te(y)||qe(y)||ArrayBuffer.isView(y)||y instanceof dc)return y;if(Array.isArray(y))return y.map(Ye);if(typeof y=="object"){var _=y.$name||"Object",I=Sl[_],U=I.klass;if(!U)throw new Error("can't deserialize unregistered class "+_);if(U.deserialize)return U.deserialize(y);for(var $=Object.create(U.prototype),oe=0,he=Object.keys(y);oe=0?it:Ye(it)}}return $}throw new Error("can't deserialize object of type "+typeof y)}var Pt=function(){this.first=!0};Pt.prototype.update=function(_,I){var U=Math.floor(_);return this.first?(this.first=!1,this.lastIntegerZoom=U,this.lastIntegerZoomTime=0,this.lastZoom=_,this.lastFloorZoom=U,!0):(this.lastFloorZoom>U?(this.lastIntegerZoom=U+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&y<=255},Arabic:function(y){return y>=1536&&y<=1791},"Arabic Supplement":function(y){return y>=1872&&y<=1919},"Arabic Extended-A":function(y){return y>=2208&&y<=2303},"Hangul Jamo":function(y){return y>=4352&&y<=4607},"Unified Canadian Aboriginal Syllabics":function(y){return y>=5120&&y<=5759},Khmer:function(y){return y>=6016&&y<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(y){return y>=6320&&y<=6399},"General Punctuation":function(y){return y>=8192&&y<=8303},"Letterlike Symbols":function(y){return y>=8448&&y<=8527},"Number Forms":function(y){return y>=8528&&y<=8591},"Miscellaneous Technical":function(y){return y>=8960&&y<=9215},"Control Pictures":function(y){return y>=9216&&y<=9279},"Optical Character Recognition":function(y){return y>=9280&&y<=9311},"Enclosed Alphanumerics":function(y){return y>=9312&&y<=9471},"Geometric Shapes":function(y){return y>=9632&&y<=9727},"Miscellaneous Symbols":function(y){return y>=9728&&y<=9983},"Miscellaneous Symbols and Arrows":function(y){return y>=11008&&y<=11263},"CJK Radicals Supplement":function(y){return y>=11904&&y<=12031},"Kangxi Radicals":function(y){return y>=12032&&y<=12255},"Ideographic Description Characters":function(y){return y>=12272&&y<=12287},"CJK Symbols and Punctuation":function(y){return y>=12288&&y<=12351},Hiragana:function(y){return y>=12352&&y<=12447},Katakana:function(y){return y>=12448&&y<=12543},Bopomofo:function(y){return y>=12544&&y<=12591},"Hangul Compatibility Jamo":function(y){return y>=12592&&y<=12687},Kanbun:function(y){return y>=12688&&y<=12703},"Bopomofo Extended":function(y){return y>=12704&&y<=12735},"CJK Strokes":function(y){return y>=12736&&y<=12783},"Katakana Phonetic Extensions":function(y){return y>=12784&&y<=12799},"Enclosed CJK Letters and Months":function(y){return y>=12800&&y<=13055},"CJK Compatibility":function(y){return y>=13056&&y<=13311},"CJK Unified Ideographs Extension A":function(y){return y>=13312&&y<=19903},"Yijing Hexagram Symbols":function(y){return y>=19904&&y<=19967},"CJK Unified Ideographs":function(y){return y>=19968&&y<=40959},"Yi Syllables":function(y){return y>=40960&&y<=42127},"Yi Radicals":function(y){return y>=42128&&y<=42191},"Hangul Jamo Extended-A":function(y){return y>=43360&&y<=43391},"Hangul Syllables":function(y){return y>=44032&&y<=55215},"Hangul Jamo Extended-B":function(y){return y>=55216&&y<=55295},"Private Use Area":function(y){return y>=57344&&y<=63743},"CJK Compatibility Ideographs":function(y){return y>=63744&&y<=64255},"Arabic Presentation Forms-A":function(y){return y>=64336&&y<=65023},"Vertical Forms":function(y){return y>=65040&&y<=65055},"CJK Compatibility Forms":function(y){return y>=65072&&y<=65103},"Small Form Variants":function(y){return y>=65104&&y<=65135},"Arabic Presentation Forms-B":function(y){return y>=65136&&y<=65279},"Halfwidth and Fullwidth Forms":function(y){return y>=65280&&y<=65519}};function Xt(y){for(var _=0,I=y;_=65097&&y<=65103)||ot["CJK Compatibility Ideographs"](y)||ot["CJK Compatibility"](y)||ot["CJK Radicals Supplement"](y)||ot["CJK Strokes"](y)||ot["CJK Symbols and Punctuation"](y)&&!(y>=12296&&y<=12305)&&!(y>=12308&&y<=12319)&&y!==12336||ot["CJK Unified Ideographs Extension A"](y)||ot["CJK Unified Ideographs"](y)||ot["Enclosed CJK Letters and Months"](y)||ot["Hangul Compatibility Jamo"](y)||ot["Hangul Jamo Extended-A"](y)||ot["Hangul Jamo Extended-B"](y)||ot["Hangul Jamo"](y)||ot["Hangul Syllables"](y)||ot.Hiragana(y)||ot["Ideographic Description Characters"](y)||ot.Kanbun(y)||ot["Kangxi Radicals"](y)||ot["Katakana Phonetic Extensions"](y)||ot.Katakana(y)&&y!==12540||ot["Halfwidth and Fullwidth Forms"](y)&&y!==65288&&y!==65289&&y!==65293&&!(y>=65306&&y<=65310)&&y!==65339&&y!==65341&&y!==65343&&!(y>=65371&&y<=65503)&&y!==65507&&!(y>=65512&&y<=65519)||ot["Small Form Variants"](y)&&!(y>=65112&&y<=65118)&&!(y>=65123&&y<=65126)||ot["Unified Canadian Aboriginal Syllabics"](y)||ot["Unified Canadian Aboriginal Syllabics Extended"](y)||ot["Vertical Forms"](y)||ot["Yijing Hexagram Symbols"](y)||ot["Yi Syllables"](y)||ot["Yi Radicals"](y))}function gi(y){return!!(ot["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||ot["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||ot["Letterlike Symbols"](y)||ot["Number Forms"](y)||ot["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||ot["Control Pictures"](y)&&y!==9251||ot["Optical Character Recognition"](y)||ot["Enclosed Alphanumerics"](y)||ot["Geometric Shapes"](y)||ot["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||ot["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||ot["CJK Symbols and Punctuation"](y)||ot.Katakana(y)||ot["Private Use Area"](y)||ot["CJK Compatibility Forms"](y)||ot["Small Form Variants"](y)||ot["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}function xi(y){return!(zr(y)||gi(y))}function Wr(y){return ot.Arabic(y)||ot["Arabic Supplement"](y)||ot["Arabic Extended-A"](y)||ot["Arabic Presentation Forms-A"](y)||ot["Arabic Presentation Forms-B"](y)}function ii(y){return y>=1424&&y<=2303||ot["Arabic Presentation Forms-A"](y)||ot["Arabic Presentation Forms-B"](y)}function di(y,_){return!(!_&&ii(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||ot.Khmer(y))}function Li(y){for(var _=0,I=y;_-1&&(kn=Qr.error),Pn&&Pn(y)};function Ea(){Ia.fire(new Xo("pluginStateChange",{pluginStatus:kn,pluginURL:Bn}))}var Ia=new jn,yo=function(){return kn},Da=function(y){return y({pluginStatus:kn,pluginURL:Bn}),Ia.on("pluginStateChange",y),y},go=function(y,_,I){if(I===void 0&&(I=!1),kn===Qr.deferred||kn===Qr.loading||kn===Qr.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Bn=lt.resolveURL(y),kn=Qr.deferred,Pn=_,Ea(),I||Is()},Is=function(){if(kn!==Qr.deferred||!Bn)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");kn=Qr.loading,Ea(),Bn&&ti({url:Bn},function(y){y?na(y):(kn=Qr.loaded,Ea())})},Ms={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return kn===Qr.loaded||Ms.applyArabicShaping!=null},isLoading:function(){return kn===Qr.loading},setState:function(_){kn=_.pluginStatus,Bn=_.pluginURL},isParsed:function(){return Ms.applyArabicShaping!=null&&Ms.processBidirectionalText!=null&&Ms.processStyledBidirectionalText!=null},getPluginURL:function(){return Bn}},Xs=function(){!Ms.isLoading()&&!Ms.isLoaded()&&yo()==="deferred"&&Is()},Un=function(_,I){this.zoom=_,I?(this.now=I.now,this.fadeDuration=I.fadeDuration,this.zoomHistory=I.zoomHistory,this.transition=I.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Pt,this.transition={})};Un.prototype.isSupportedScript=function(_){return Ti(_,Ms.isLoaded())},Un.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Un.prototype.getCrossfadeParameters=function(){var _=this.zoom,I=_-Math.floor(_),U=this.crossFadingFactor();return _>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*U}:{fromScale:.5,toScale:1,t:1-(1-U)*I}};var ja=function(_,I){this.property=_,this.value=I,this.expression=w(I===void 0?_.specification.default:I,_.specification)};ja.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},ja.prototype.possiblyEvaluate=function(_,I,U){return this.property.possiblyEvaluate(this,_,I,U)};var Fo=function(_){this.property=_,this.value=new ja(_,void 0)};Fo.prototype.transitioned=function(_,I){return new $s(this.property,this.value,I,x({},_.transition,this.transition),_.now)},Fo.prototype.untransitioned=function(){return new $s(this.property,this.value,null,{},0)};var Uo=function(_){this._properties=_,this._values=Object.create(_.defaultTransitionablePropertyValues)};Uo.prototype.getValue=function(_){return j(this._values[_].value.value)},Uo.prototype.setValue=function(_,I){this._values.hasOwnProperty(_)||(this._values[_]=new Fo(this._values[_].property)),this._values[_].value=new ja(this._values[_].property,I===null?void 0:j(I))},Uo.prototype.getTransition=function(_){return j(this._values[_].transition)},Uo.prototype.setTransition=function(_,I){this._values.hasOwnProperty(_)||(this._values[_]=new Fo(this._values[_].property)),this._values[_].transition=j(I)||void 0},Uo.prototype.serialize=function(){for(var _={},I=0,U=Object.keys(this._values);Ithis.end)return this.prior=null,oe;if(this.value.isDataDriven())return this.prior=null,oe;if($he.zoomHistory.lastIntegerZoom?{from:U,to:$}:{from:oe,to:$}},_.prototype.interpolate=function(U){return U},_})(bt),Lr=function(_){this.specification=_};Lr.prototype.possiblyEvaluate=function(_,I,U,$){if(_.value!==void 0)if(_.expression.kind==="constant"){var oe=_.expression.evaluate(I,null,{},U,$);return this._calculate(oe,oe,oe,I)}else return this._calculate(_.expression.evaluate(new Un(Math.floor(I.zoom-1),I)),_.expression.evaluate(new Un(Math.floor(I.zoom),I)),_.expression.evaluate(new Un(Math.floor(I.zoom+1),I)),I)},Lr.prototype._calculate=function(_,I,U,$){var oe=$.zoom;return oe>$.zoomHistory.lastIntegerZoom?{from:_,to:I}:{from:U,to:I}},Lr.prototype.interpolate=function(_){return _};var Vr=function(_){this.specification=_};Vr.prototype.possiblyEvaluate=function(_,I,U,$){return!!_.expression.evaluate(I,null,{},U,$)},Vr.prototype.interpolate=function(){return!1};var Or=function(_){this.properties=_,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in _){var U=_[I];U.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new ja(U,void 0),oe=this.defaultTransitionablePropertyValues[I]=new Fo(U);this.defaultTransitioningPropertyValues[I]=oe.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};X("DataDrivenProperty",bt),X("DataConstantProperty",Me),X("CrossFadedDataDrivenProperty",Ot),X("CrossFadedProperty",Lr),X("ColorRampProperty",Vr);var Nr="-transition",vi=(function(y){function _(I,U){if(y.call(this),this.id=I.id,this.type=I.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},I.type!=="custom"&&(I=I,this.metadata=I.metadata,this.minzoom=I.minzoom,this.maxzoom=I.maxzoom,I.type!=="background"&&(this.source=I.source,this.sourceLayer=I["source-layer"],this.filter=I.filter),U.layout&&(this._unevaluatedLayout=new bu(U.layout)),U.paint)){this._transitionablePaint=new Uo(U.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var oe in I.layout)this.setLayoutProperty(oe,I.layout[oe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Sc(U.paint)}}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},_.prototype.getLayoutProperty=function(U){return U==="visibility"?this.visibility:this._unevaluatedLayout.getValue(U)},_.prototype.setLayoutProperty=function(U,$,oe){if(oe===void 0&&(oe={}),$!=null){var he="layers."+this.id+".layout."+U;if(this._validate(Nl,he,U,$,oe))return}if(U==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(U,$)},_.prototype.getPaintProperty=function(U){return V(U,Nr)?this._transitionablePaint.getTransition(U.slice(0,-Nr.length)):this._transitionablePaint.getValue(U)},_.prototype.setPaintProperty=function(U,$,oe){if(oe===void 0&&(oe={}),$!=null){var he="layers."+this.id+".paint."+U;if(this._validate(hl,he,U,$,oe))return!1}if(V(U,Nr))return this._transitionablePaint.setTransition(U.slice(0,-Nr.length),$||void 0),!1;var De=this._transitionablePaint._values[U],it=De.property.specification["property-type"]==="cross-faded-data-driven",yt=De.value.isDataDriven(),Lt=De.value;this._transitionablePaint.setValue(U,$),this._handleSpecialPaintPropertyUpdate(U);var sr=this._transitionablePaint._values[U].value,gr=sr.isDataDriven();return gr||yt||it||this._handleOverridablePaintPropertyUpdate(U,Lt,sr)},_.prototype._handleSpecialPaintPropertyUpdate=function(U){},_.prototype._handleOverridablePaintPropertyUpdate=function(U,$,oe){return!1},_.prototype.isHidden=function(U){return this.minzoom&&U=this.maxzoom?!0:this.visibility==="none"},_.prototype.updateTransitions=function(U){this._transitioningPaint=this._transitionablePaint.transitioned(U,this._transitioningPaint)},_.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},_.prototype.recalculate=function(U,$){U.getCrossfadeParameters&&(this._crossfadeParameters=U.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(U,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(U,void 0,$)},_.prototype.serialize=function(){var U={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(U.layout=U.layout||{},U.layout.visibility=this.visibility),Z(U,function($,oe){return $!==void 0&&!(oe==="layout"&&!Object.keys($).length)&&!(oe==="paint"&&!Object.keys($).length)})},_.prototype._validate=function(U,$,oe,he,De){return De===void 0&&(De={}),De&&De.validate===!1?!1:Lu(this,U.call(wo,{key:$,layerType:this.type,objectKey:oe,value:he,styleSpec:Rn,style:{glyphs:!0,sprite:!0}}))},_.prototype.is3D=function(){return!1},_.prototype.isTileClipped=function(){return!1},_.prototype.hasOffscreenPass=function(){return!1},_.prototype.resize=function(){},_.prototype.isStateDependent=function(){for(var U in this.paint._values){var $=this.paint.get(U);if(!(!($ instanceof dl)||!Ws($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},_})(jn),Ni={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},qi=function(_,I){this._structArray=_,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Si=128,Vn=5,Qi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Qi.serialize=function(_,I){return _._trim(),I&&(_.isTransferred=!0,I.push(_.arrayBuffer)),{length:_.length,arrayBuffer:_.arrayBuffer}},Qi.deserialize=function(_){var I=Object.create(this.prototype);return I.arrayBuffer=_.arrayBuffer,I.length=_.length,I.capacity=_.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},Qi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Qi.prototype.clear=function(){this.length=0},Qi.prototype.resize=function(_){this.reserve(_),this.length=_},Qi.prototype.reserve=function(_){if(_>this.capacity){this.capacity=Math.max(_,Math.floor(this.capacity*Vn),Si),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},Qi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Wi(y,_){_===void 0&&(_=1);var I=0,U=0,$=y.map(function(he){var De=oi(he.type),it=I=Tr(I,Math.max(_,De)),yt=he.components||1;return U=Math.max(U,De),I+=De*yt,{name:he.name,type:he.type,components:yt,offset:it}}),oe=Tr(I,Math.max(U,_));return{members:$,size:oe,alignment:_}}function oi(y){return Ni[y].BYTES_PER_ELEMENT}function Tr(y,_){return Math.ceil(y/_)*_}var Zr=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,U,$)},_.prototype.emplace=function(U,$,oe){var he=U*2;return this.int16[he+0]=$,this.int16[he+1]=oe,U},_})(Qi);Zr.prototype.bytesPerElement=4,X("StructArrayLayout2i4",Zr);var yi=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he){var De=this.length;return this.resize(De+1),this.emplace(De,U,$,oe,he)},_.prototype.emplace=function(U,$,oe,he,De){var it=U*4;return this.int16[it+0]=$,this.int16[it+1]=oe,this.int16[it+2]=he,this.int16[it+3]=De,U},_})(Qi);yi.prototype.bytesPerElement=8,X("StructArrayLayout4i8",yi);var Ii=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it){var yt=this.length;return this.resize(yt+1),this.emplace(yt,U,$,oe,he,De,it)},_.prototype.emplace=function(U,$,oe,he,De,it,yt){var Lt=U*6;return this.int16[Lt+0]=$,this.int16[Lt+1]=oe,this.int16[Lt+2]=he,this.int16[Lt+3]=De,this.int16[Lt+4]=it,this.int16[Lt+5]=yt,U},_})(Qi);Ii.prototype.bytesPerElement=12,X("StructArrayLayout2i4i12",Ii);var ui=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it){var yt=this.length;return this.resize(yt+1),this.emplace(yt,U,$,oe,he,De,it)},_.prototype.emplace=function(U,$,oe,he,De,it,yt){var Lt=U*4,sr=U*8;return this.int16[Lt+0]=$,this.int16[Lt+1]=oe,this.uint8[sr+4]=he,this.uint8[sr+5]=De,this.uint8[sr+6]=it,this.uint8[sr+7]=yt,U},_})(Qi);ui.prototype.bytesPerElement=8,X("StructArrayLayout2i4ub8",ui);var nn=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,U,$)},_.prototype.emplace=function(U,$,oe){var he=U*2;return this.float32[he+0]=$,this.float32[he+1]=oe,U},_})(Qi);nn.prototype.bytesPerElement=8,X("StructArrayLayout2f8",nn);var Zi=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr,gr){var hr=this.length;return this.resize(hr+1),this.emplace(hr,U,$,oe,he,De,it,yt,Lt,sr,gr)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr){var Rr=U*10;return this.uint16[Rr+0]=$,this.uint16[Rr+1]=oe,this.uint16[Rr+2]=he,this.uint16[Rr+3]=De,this.uint16[Rr+4]=it,this.uint16[Rr+5]=yt,this.uint16[Rr+6]=Lt,this.uint16[Rr+7]=sr,this.uint16[Rr+8]=gr,this.uint16[Rr+9]=hr,U},_})(Qi);Zi.prototype.bytesPerElement=20,X("StructArrayLayout10ui20",Zi);var qn=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr){var ni=this.length;return this.resize(ni+1),this.emplace(ni,U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni){var ji=U*12;return this.int16[ji+0]=$,this.int16[ji+1]=oe,this.int16[ji+2]=he,this.int16[ji+3]=De,this.uint16[ji+4]=it,this.uint16[ji+5]=yt,this.uint16[ji+6]=Lt,this.uint16[ji+7]=sr,this.int16[ji+8]=gr,this.int16[ji+9]=hr,this.int16[ji+10]=Rr,this.int16[ji+11]=ni,U},_})(Qi);qn.prototype.bytesPerElement=24,X("StructArrayLayout4i4ui4i24",qn);var fi=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,oe)},_.prototype.emplace=function(U,$,oe,he){var De=U*3;return this.float32[De+0]=$,this.float32[De+1]=oe,this.float32[De+2]=he,U},_})(Qi);fi.prototype.bytesPerElement=12,X("StructArrayLayout3f12",fi);var si=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},_.prototype.emplace=function(U,$){var oe=U*1;return this.uint32[oe+0]=$,U},_})(Qi);si.prototype.bytesPerElement=4,X("StructArrayLayout1ul4",si);var mn=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr){var gr=this.length;return this.resize(gr+1),this.emplace(gr,U,$,oe,he,De,it,yt,Lt,sr)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr){var hr=U*10,Rr=U*5;return this.int16[hr+0]=$,this.int16[hr+1]=oe,this.int16[hr+2]=he,this.int16[hr+3]=De,this.int16[hr+4]=it,this.int16[hr+5]=yt,this.uint32[Rr+3]=Lt,this.uint16[hr+8]=sr,this.uint16[hr+9]=gr,U},_})(Qi);mn.prototype.bytesPerElement=20,X("StructArrayLayout6i1ul2ui20",mn);var Ji=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it){var yt=this.length;return this.resize(yt+1),this.emplace(yt,U,$,oe,he,De,it)},_.prototype.emplace=function(U,$,oe,he,De,it,yt){var Lt=U*6;return this.int16[Lt+0]=$,this.int16[Lt+1]=oe,this.int16[Lt+2]=he,this.int16[Lt+3]=De,this.int16[Lt+4]=it,this.int16[Lt+5]=yt,U},_})(Qi);Ji.prototype.bytesPerElement=12,X("StructArrayLayout2i2i2i12",Ji);var Ui=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De){var it=this.length;return this.resize(it+1),this.emplace(it,U,$,oe,he,De)},_.prototype.emplace=function(U,$,oe,he,De,it){var yt=U*4,Lt=U*8;return this.float32[yt+0]=$,this.float32[yt+1]=oe,this.float32[yt+2]=he,this.int16[Lt+6]=De,this.int16[Lt+7]=it,U},_})(Qi);Ui.prototype.bytesPerElement=16,X("StructArrayLayout2f1f2i16",Ui);var Bi=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he){var De=this.length;return this.resize(De+1),this.emplace(De,U,$,oe,he)},_.prototype.emplace=function(U,$,oe,he,De){var it=U*12,yt=U*3;return this.uint8[it+0]=$,this.uint8[it+1]=oe,this.float32[yt+1]=he,this.float32[yt+2]=De,U},_})(Qi);Bi.prototype.bytesPerElement=12,X("StructArrayLayout2ub2f12",Bi);var pn=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,oe)},_.prototype.emplace=function(U,$,oe,he){var De=U*3;return this.uint16[De+0]=$,this.uint16[De+1]=oe,this.uint16[De+2]=he,U},_})(Qi);pn.prototype.bytesPerElement=6,X("StructArrayLayout3ui6",pn);var Nn=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,ji,wi,bn,rn){var xn=this.length;return this.resize(xn+1),this.emplace(xn,U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,ji,wi,bn,rn)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,ji,wi,bn,rn,xn){var In=U*24,Xn=U*12,ga=U*48;return this.int16[In+0]=$,this.int16[In+1]=oe,this.uint16[In+2]=he,this.uint16[In+3]=De,this.uint32[Xn+2]=it,this.uint32[Xn+3]=yt,this.uint32[Xn+4]=Lt,this.uint16[In+10]=sr,this.uint16[In+11]=gr,this.uint16[In+12]=hr,this.float32[Xn+7]=Rr,this.float32[Xn+8]=ni,this.uint8[ga+36]=ji,this.uint8[ga+37]=wi,this.uint8[ga+38]=bn,this.uint32[Xn+10]=rn,this.int16[In+22]=xn,U},_})(Qi);Nn.prototype.bytesPerElement=48,X("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Nn);var aa=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,ji,wi,bn,rn,xn,In,Xn,ga,ha,eo,qa,Za,Jo,to,ao){var _s=this.length;return this.resize(_s+1),this.emplace(_s,U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,ji,wi,bn,rn,xn,In,Xn,ga,ha,eo,qa,Za,Jo,to,ao)},_.prototype.emplace=function(U,$,oe,he,De,it,yt,Lt,sr,gr,hr,Rr,ni,ji,wi,bn,rn,xn,In,Xn,ga,ha,eo,qa,Za,Jo,to,ao,_s){var jo=U*34,kl=U*17;return this.int16[jo+0]=$,this.int16[jo+1]=oe,this.int16[jo+2]=he,this.int16[jo+3]=De,this.int16[jo+4]=it,this.int16[jo+5]=yt,this.int16[jo+6]=Lt,this.int16[jo+7]=sr,this.uint16[jo+8]=gr,this.uint16[jo+9]=hr,this.uint16[jo+10]=Rr,this.uint16[jo+11]=ni,this.uint16[jo+12]=ji,this.uint16[jo+13]=wi,this.uint16[jo+14]=bn,this.uint16[jo+15]=rn,this.uint16[jo+16]=xn,this.uint16[jo+17]=In,this.uint16[jo+18]=Xn,this.uint16[jo+19]=ga,this.uint16[jo+20]=ha,this.uint16[jo+21]=eo,this.uint16[jo+22]=qa,this.uint32[kl+12]=Za,this.float32[kl+13]=Jo,this.float32[kl+14]=to,this.float32[kl+15]=ao,this.float32[kl+16]=_s,U},_})(Qi);aa.prototype.bytesPerElement=68,X("StructArrayLayout8i15ui1ul4f68",aa);var Ki=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},_.prototype.emplace=function(U,$){var oe=U*1;return this.float32[oe+0]=$,U},_})(Qi);Ki.prototype.bytesPerElement=4,X("StructArrayLayout1f4",Ki);var Cn=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,oe)},_.prototype.emplace=function(U,$,oe,he){var De=U*3;return this.int16[De+0]=$,this.int16[De+1]=oe,this.int16[De+2]=he,U},_})(Qi);Cn.prototype.bytesPerElement=6,X("StructArrayLayout3i6",Cn);var ia=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,oe)},_.prototype.emplace=function(U,$,oe,he){var De=U*2,it=U*4;return this.uint32[De+0]=$,this.uint16[it+2]=oe,this.uint16[it+3]=he,U},_})(Qi);ia.prototype.bytesPerElement=8,X("StructArrayLayout1ul2ui8",ia);var sa=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,U,$)},_.prototype.emplace=function(U,$,oe){var he=U*2;return this.uint16[he+0]=$,this.uint16[he+1]=oe,U},_})(Qi);sa.prototype.bytesPerElement=4,X("StructArrayLayout2ui4",sa);var ba=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},_.prototype.emplace=function(U,$){var oe=U*1;return this.uint16[oe+0]=$,U},_})(Qi);ba.prototype.bytesPerElement=2,X("StructArrayLayout1ui2",ba);var is=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},_.prototype.emplaceBack=function(U,$,oe,he){var De=this.length;return this.resize(De+1),this.emplace(De,U,$,oe,he)},_.prototype.emplace=function(U,$,oe,he,De){var it=U*4;return this.float32[it+0]=$,this.float32[it+1]=oe,this.float32[it+2]=he,this.float32[it+3]=De,U},_})(Qi);is.prototype.bytesPerElement=16,X("StructArrayLayout4f16",is);var Zs=(function(y){function _(){y.apply(this,arguments)}y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_;var I={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return I.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},I.x1.get=function(){return this._structArray.int16[this._pos2+2]},I.y1.get=function(){return this._structArray.int16[this._pos2+3]},I.x2.get=function(){return this._structArray.int16[this._pos2+4]},I.y2.get=function(){return this._structArray.int16[this._pos2+5]},I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.anchorPoint.get=function(){return new u(this.anchorPointX,this.anchorPointY)},Object.defineProperties(_.prototype,I),_})(qi);Zs.prototype.size=20;var Ga=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.get=function(U){return new Zs(this,U)},_})(mn);X("CollisionBoxArray",Ga);var El=(function(y){function _(){y.apply(this,arguments)}y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},I.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},I.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},I.segment.get=function(){return this._structArray.uint16[this._pos2+10]},I.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},I.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},I.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},I.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},I.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},I.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},I.placedOrientation.set=function(U){this._structArray.uint8[this._pos1+37]=U},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(U){this._structArray.uint8[this._pos1+38]=U},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+10]=U},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(_.prototype,I),_})(qi);El.prototype.size=48;var zo=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.get=function(U){return new El(this,U)},_})(Nn);X("PlacedSymbolArray",zo);var Qs=(function(y){function _(){y.apply(this,arguments)}y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},I.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},I.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},I.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},I.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},I.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},I.key.get=function(){return this._structArray.uint16[this._pos2+8]},I.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},I.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},I.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},I.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},I.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},I.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},I.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},I.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},I.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},I.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},I.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},I.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},I.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+12]=U},I.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},I.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},I.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},I.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(_.prototype,I),_})(qi);Qs.prototype.size=68;var nl=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.get=function(U){return new Qs(this,U)},_})(aa);X("SymbolInstanceArray",nl);var Ul=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.getoffsetX=function(U){return this.float32[U*1+0]},_})(Ki);X("GlyphOffsetArray",Ul);var ss=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.getx=function(U){return this.int16[U*3+0]},_.prototype.gety=function(U){return this.int16[U*3+1]},_.prototype.gettileUnitDistanceFromAnchor=function(U){return this.int16[U*3+2]},_})(Cn);X("SymbolLineVertexArray",ss);var Vs=(function(y){function _(){y.apply(this,arguments)}y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_;var I={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(_.prototype,I),_})(qi);Vs.prototype.size=8;var Ys=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.get=function(U){return new Vs(this,U)},_})(ia);X("FeatureIndexArray",Ys);var wa=Wi([{name:"a_pos",components:2,type:"Int16"}],4),al=wa.members,io=function(_){_===void 0&&(_=[]),this.segments=_};io.prototype.prepareSegment=function(_,I,U,$){var oe=this.segments[this.segments.length-1];return _>io.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+io.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+_),(!oe||oe.vertexLength+_>io.MAX_VERTEX_ARRAY_LENGTH||oe.sortKey!==$)&&(oe={vertexOffset:I.length,primitiveOffset:U.length,vertexLength:0,primitiveLength:0},$!==void 0&&(oe.sortKey=$),this.segments.push(oe)),oe},io.prototype.get=function(){return this.segments},io.prototype.destroy=function(){for(var _=0,I=this.segments;_>>16)*it&65535)<<16)&4294967295,Lt=Lt<<15|Lt>>>17,Lt=(Lt&65535)*yt+(((Lt>>>16)*yt&65535)<<16)&4294967295,he^=Lt,he=he<<13|he>>>19,De=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(De&65535)+27492+(((De>>>16)+58964&65535)<<16);switch(Lt=0,$){case 3:Lt^=(I.charCodeAt(sr+2)&255)<<16;case 2:Lt^=(I.charCodeAt(sr+1)&255)<<8;case 1:Lt^=I.charCodeAt(sr)&255,Lt=(Lt&65535)*it+(((Lt>>>16)*it&65535)<<16)&4294967295,Lt=Lt<<15|Lt>>>17,Lt=(Lt&65535)*yt+(((Lt>>>16)*yt&65535)<<16)&4294967295,he^=Lt}return he^=I.length,he^=he>>>16,he=(he&65535)*2246822507+(((he>>>16)*2246822507&65535)<<16)&4294967295,he^=he>>>13,he=(he&65535)*3266489909+(((he>>>16)*3266489909&65535)<<16)&4294967295,he^=he>>>16,he>>>0}y.exports=_}),O=a(function(y){function _(I,U){for(var $=I.length,oe=U^$,he=0,De;$>=4;)De=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,De=(De&65535)*1540483477+(((De>>>16)*1540483477&65535)<<16),De^=De>>>24,De=(De&65535)*1540483477+(((De>>>16)*1540483477&65535)<<16),oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)^De,$-=4,++he;switch($){case 3:oe^=(I.charCodeAt(he+2)&255)<<16;case 2:oe^=(I.charCodeAt(he+1)&255)<<8;case 1:oe^=I.charCodeAt(he)&255,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)}return oe^=oe>>>13,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16),oe^=oe>>>15,oe>>>0}y.exports=_}),K=J,de=J,ne=O;K.murmur3=de,K.murmur2=ne;var we=function(){this.ids=[],this.positions=[],this.indexed=!1};we.prototype.add=function(_,I,U,$){this.ids.push(ht(_)),this.positions.push(I,U,$)},we.prototype.getPositions=function(_){for(var I=ht(_),U=0,$=this.ids.length-1;U<$;){var oe=U+$>>1;this.ids[oe]>=I?$=oe:U=oe+1}for(var he=[];this.ids[U]===I;){var De=this.positions[3*U],it=this.positions[3*U+1],yt=this.positions[3*U+2];he.push({index:De,start:it,end:yt}),U++}return he},we.serialize=function(_,I){var U=new Float64Array(_.ids),$=new Uint32Array(_.positions);return Yt(U,$,0,U.length-1),I&&I.push(U.buffer,$.buffer),{ids:U,positions:$}},we.deserialize=function(_){var I=new we;return I.ids=_.ids,I.positions=_.positions,I.indexed=!0,I};var Oe=Math.pow(2,53)-1;function ht(y){var _=+y;return!isNaN(_)&&_<=Oe?_:K(String(y))}function Yt(y,_,I,U){for(;I>1],oe=I-1,he=U+1;;){do oe++;while(y[oe]<$);do he--;while(y[he]>$);if(oe>=he)break;cr(y,oe,he),cr(_,3*oe,3*he),cr(_,3*oe+1,3*he+1),cr(_,3*oe+2,3*he+2)}he-Ihe.x+1||ithe.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function Ja(y,_){return{type:y.type,id:y.id,properties:y.properties,geometry:_?zn(y):[]}}function co(y,_,I,U,$){y.emplaceBack(_*2+(U+1)/2,I*2+($+1)/2)}var ts=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new Zr,this.indexArray=new pn,this.segments=new io,this.programConfigurations=new ci(_.layers,_.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};ts.prototype.populate=function(_,I,U){var $=this.layers[0],oe=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var De=0,it=_;De=Ei||gr<0||gr>=Ei)){var hr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,_.sortKey),Rr=hr.vertexLength;co(this.layoutVertexArray,sr,gr,-1,-1),co(this.layoutVertexArray,sr,gr,1,-1),co(this.layoutVertexArray,sr,gr,1,1),co(this.layoutVertexArray,sr,gr,-1,1),this.indexArray.emplaceBack(Rr,Rr+1,Rr+2),this.indexArray.emplaceBack(Rr,Rr+3,Rr+2),hr.vertexLength+=4,hr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,_,U,{},$)},X("CircleBucket",ts,{omit:["layers"]});function so(y,_){for(var I=0;I=3){for(var oe=0;oe<$.length;oe++)if(Td(y,$[oe]))return!0}if(Cv(y,$,I))return!0}return!1}function Cv(y,_,I){if(y.length>1){if(Lv(y,_))return!0;for(var U=0;U<_.length;U++)if(Kv(_[U],y,I))return!0}for(var $=0;$1?y.distSqr(I):y.distSqr(I.sub(_)._mult($)._add(_))}function gp(y,_){for(var I=!1,U,$,oe,he=0;he_.y!=oe.y>_.y&&_.x<(oe.x-$.x)*(_.y-$.y)/(oe.y-$.y)+$.x&&(I=!I)}return I}function Td(y,_){for(var I=!1,U=0,$=y.length-1;U_.y!=he.y>_.y&&_.x<(he.x-oe.x)*(_.y-oe.y)/(he.y-oe.y)+oe.x&&(I=!I)}return I}function mp(y,_,I,U,$){for(var oe=0,he=y;oe=De.x&&$>=De.y)return!0}var it=[new u(_,I),new u(_,$),new u(U,$),new u(U,I)];if(y.length>2)for(var yt=0,Lt=it;yt$.x&&_.x>$.x||y.y$.y&&_.y>$.y)return!1;var oe=ae(y,_,I[0]);return oe!==ae(y,_,I[1])||oe!==ae(y,_,I[2])||oe!==ae(y,_,I[3])}function Ad(y,_,I){var U=_.paint.get(y).value;return U.kind==="constant"?U.value:I.programConfigurations.get(_.id).getMaxValue(y)}function Pv(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function Jv(y,_,I,U,$){if(!_[0]&&!_[1])return y;var oe=u.convert(_)._mult($);I==="viewport"&&oe._rotate(-U);for(var he=[],De=0;De0&&(oe=1/Math.sqrt(oe)),y[0]=_[0]*oe,y[1]=_[1]*oe,y[2]=_[2]*oe,y}function W9(y,_){return y[0]*_[0]+y[1]*_[1]+y[2]*_[2]}function X9(y,_,I){var U=_[0],$=_[1],oe=_[2],he=I[0],De=I[1],it=I[2];return y[0]=$*it-oe*De,y[1]=oe*he-U*it,y[2]=U*De-$*he,y}function Z9(y,_,I){var U=_[0],$=_[1],oe=_[2];return y[0]=U*I[0]+$*I[3]+oe*I[6],y[1]=U*I[1]+$*I[4]+oe*I[7],y[2]=U*I[2]+$*I[5]+oe*I[8],y}var Y9=um,UQ=(function(){var y=lm();return function(_,I,U,$,oe,he){var De,it;for(I||(I=3),U||(U=0),$?it=Math.min($*I+U,_.length):it=_.length,De=U;Dey.width||$.height>y.height||I.x>y.width-$.width||I.y>y.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>_.width||$.height>_.height||U.x>_.width-$.width||U.y>_.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=y.data,De=_.data,it=0;it<$.height;it++)for(var yt=((I.y+it)*y.width+I.x)*oe,Lt=((U.y+it)*_.width+U.x)*oe,sr=0;sr<$.width*oe;sr++)De[Lt+sr]=he[yt+sr];return _}var Dv=function(_,I){Md(this,_,1,I)};Dv.prototype.resize=function(_){Gw(this,_,1)},Dv.prototype.clone=function(){return new Dv({width:this.width,height:this.height},new Uint8Array(this.data))},Dv.copy=function(_,I,U,$,oe){Hw(_,I,U,$,oe,1)};var Eh=function(_,I){Md(this,_,4,I)};Eh.prototype.resize=function(_){Gw(this,_,4)},Eh.prototype.replace=function(_,I){I?this.data.set(_):_ instanceof Uint8ClampedArray?this.data=new Uint8Array(_.buffer):this.data=_},Eh.prototype.clone=function(){return new Eh({width:this.width,height:this.height},new Uint8Array(this.data))},Eh.copy=function(_,I,U,$,oe){Hw(_,I,U,$,oe,4)},X("AlphaImage",Dv),X("RGBAImage",Eh);var Qx=new Or({"heatmap-radius":new bt(Rn.paint_heatmap["heatmap-radius"]),"heatmap-weight":new bt(Rn.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Me(Rn.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Vr(Rn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Me(Rn.paint_heatmap["heatmap-opacity"])}),I1={paint:Qx};function eb(y){var _={},I=y.resolution||256,U=y.clips?y.clips.length:1,$=y.image||new Eh({width:I,height:U}),oe=function(bn,rn,xn){_[y.evaluationKey]=xn;var In=y.expression.evaluate(_);$.data[bn+rn+0]=Math.floor(In.r*255/In.a),$.data[bn+rn+1]=Math.floor(In.g*255/In.a),$.data[bn+rn+2]=Math.floor(In.b*255/In.a),$.data[bn+rn+3]=Math.floor(In.a*255)};if(y.clips)for(var yt=0,Lt=0;yt80*I){De=yt=y[0],it=Lt=y[1];for(var Rr=I;Rr<$;Rr+=I)sr=y[Rr],gr=y[Rr+1],sryt&&(yt=sr),gr>Lt&&(Lt=gr);hr=Math.max(yt-De,Lt-it),hr=hr!==0?1/hr:0}return tb(oe,he,I,De,it,hr),he}function Xw(y,_,I,U,$){var oe,he;if($===xS(y,_,I,U)>0)for(oe=_;oe=_;oe-=U)he=OC(oe,y[oe],y[oe+1],he);return he&&ib(he,he.next)&&(ob(he),he=he.next),he}function cm(y,_){if(!y)return y;_||(_=y);var I=y,U;do if(U=!1,!I.steiner&&(ib(I,I.next)||Tf(I.prev,I,I.next)===0)){if(ob(I),I=_=I.prev,I===I.next)break;U=!0}else I=I.next;while(U||I!==_);return _}function tb(y,_,I,U,$,oe,he){if(y){!he&&oe&&Zw(y,U,$,oe);for(var De=y,it,yt;y.prev!==y.next;){if(it=y.prev,yt=y.next,oe?FC(y,U,$,oe):DC(y)){_.push(it.i/I),_.push(y.i/I),_.push(yt.i/I),ob(y),y=yt.next,De=yt.next;continue}if(y=yt,y===De){he?he===1?(y=rb(cm(y),_,I),tb(y,_,I,U,$,oe,2)):he===2&&v0(y,_,I,U,$,oe):tb(cm(y),_,I,U,$,oe,1);break}}}}function DC(y){var _=y.prev,I=y,U=y.next;if(Tf(_,I,U)>=0)return!1;for(var $=y.next.next;$!==y.prev;){if(hm(_.x,_.y,I.x,I.y,U.x,U.y,$.x,$.y)&&Tf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function FC(y,_,I,U){var $=y.prev,oe=y,he=y.next;if(Tf($,oe,he)>=0)return!1;for(var De=$.xoe.x?$.x>he.x?$.x:he.x:oe.x>he.x?oe.x:he.x,Lt=$.y>oe.y?$.y>he.y?$.y:he.y:oe.y>he.y?oe.y:he.y,sr=gS(De,it,_,I,U),gr=gS(yt,Lt,_,I,U),hr=y.prevZ,Rr=y.nextZ;hr&&hr.z>=sr&&Rr&&Rr.z<=gr;){if(hr!==y.prev&&hr!==y.next&&hm($.x,$.y,oe.x,oe.y,he.x,he.y,hr.x,hr.y)&&Tf(hr.prev,hr,hr.next)>=0||(hr=hr.prevZ,Rr!==y.prev&&Rr!==y.next&&hm($.x,$.y,oe.x,oe.y,he.x,he.y,Rr.x,Rr.y)&&Tf(Rr.prev,Rr,Rr.next)>=0))return!1;Rr=Rr.nextZ}for(;hr&&hr.z>=sr;){if(hr!==y.prev&&hr!==y.next&&hm($.x,$.y,oe.x,oe.y,he.x,he.y,hr.x,hr.y)&&Tf(hr.prev,hr,hr.next)>=0)return!1;hr=hr.prevZ}for(;Rr&&Rr.z<=gr;){if(Rr!==y.prev&&Rr!==y.next&&hm($.x,$.y,oe.x,oe.y,he.x,he.y,Rr.x,Rr.y)&&Tf(Rr.prev,Rr,Rr.next)>=0)return!1;Rr=Rr.nextZ}return!0}function rb(y,_,I){var U=y;do{var $=U.prev,oe=U.next.next;!ib($,oe)&&Yw($,U,U.next,oe)&&ab($,oe)&&ab(oe,$)&&(_.push($.i/I),_.push(U.i/I),_.push(oe.i/I),ob(U),ob(U.next),U=y=oe),U=U.next}while(U!==y);return cm(U)}function v0(y,_,I,U,$,oe){var he=y;do{for(var De=he.next.next;De!==he.prev;){if(he.i!==De.i&&D1(he,De)){var it=yS(he,De);he=cm(he,he.next),it=cm(it,it.next),tb(he,_,I,U,$,oe),tb(it,_,I,U,$,oe);return}De=De.next}he=he.next}while(he!==y)}function fm(y,_,I,U){var $=[],oe,he,De,it,yt;for(oe=0,he=_.length;oe=I.next.y&&I.next.y!==I.y){var De=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(De<=U&&De>oe){if(oe=De,De===U){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=yt&&U!==I.x&&hm($he.x||I.x===he.x&&nq(he,I)))&&(he=I,sr=gr)),I=I.next;while(I!==it);return he}function nq(y,_){return Tf(y.prev,y,_.prev)<0&&Tf(_.next,y,y.next)<0}function Zw(y,_,I,U){var $=y;do $.z===null&&($.z=gS($.x,$.y,_,I,U)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==y);$.prevZ.nextZ=null,$.prevZ=null,pS($)}function pS(y){var _,I,U,$,oe,he,De,it,yt=1;do{for(I=y,y=null,oe=null,he=0;I;){for(he++,U=I,De=0,_=0;_0||it>0&&U;)De!==0&&(it===0||!U||I.z<=U.z)?($=I,I=I.nextZ,De--):($=U,U=U.nextZ,it--),oe?oe.nextZ=$:y=$,$.prevZ=oe,oe=$;I=U}oe.nextZ=null,yt*=2}while(he>1);return y}function gS(y,_,I,U,$){return y=32767*(y-I)*$,_=32767*(_-U)*$,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,_=(_|_<<8)&16711935,_=(_|_<<4)&252645135,_=(_|_<<2)&858993459,_=(_|_<<1)&1431655765,y|_<<1}function mS(y){var _=y,I=y;do(_.x=0&&(y-he)*(U-De)-(I-he)*(_-De)>=0&&(I-he)*(oe-De)-($-he)*(U-De)>=0}function D1(y,_){return y.next.i!==_.i&&y.prev.i!==_.i&&!qC(y,_)&&(ab(y,_)&&ab(_,y)&&aq(y,_)&&(Tf(y.prev,y,_.prev)||Tf(y,_.prev,_))||ib(y,_)&&Tf(y.prev,y,y.next)>0&&Tf(_.prev,_,_.next)>0)}function Tf(y,_,I){return(_.y-y.y)*(I.x-_.x)-(_.x-y.x)*(I.y-_.y)}function ib(y,_){return y.x===_.x&&y.y===_.y}function Yw(y,_,I,U){var $=yy(Tf(y,_,I)),oe=yy(Tf(y,_,U)),he=yy(Tf(I,U,y)),De=yy(Tf(I,U,_));return!!($!==oe&&he!==De||$===0&&nb(y,I,_)||oe===0&&nb(y,U,_)||he===0&&nb(I,y,U)||De===0&&nb(I,_,U))}function nb(y,_,I){return _.x<=Math.max(y.x,I.x)&&_.x>=Math.min(y.x,I.x)&&_.y<=Math.max(y.y,I.y)&&_.y>=Math.min(y.y,I.y)}function yy(y){return y>0?1:y<0?-1:0}function qC(y,_){var I=y;do{if(I.i!==y.i&&I.next.i!==y.i&&I.i!==_.i&&I.next.i!==_.i&&Yw(I,I.next,y,_))return!0;I=I.next}while(I!==y);return!1}function ab(y,_){return Tf(y.prev,y,y.next)<0?Tf(y,_,y.next)>=0&&Tf(y,y.prev,_)>=0:Tf(y,_,y.prev)<0||Tf(y,y.next,_)<0}function aq(y,_){var I=y,U=!1,$=(y.x+_.x)/2,oe=(y.y+_.y)/2;do I.y>oe!=I.next.y>oe&&I.next.y!==I.y&&$<(I.next.x-I.x)*(oe-I.y)/(I.next.y-I.y)+I.x&&(U=!U),I=I.next;while(I!==y);return U}function yS(y,_){var I=new _S(y.i,y.x,y.y),U=new _S(_.i,_.x,_.y),$=y.next,oe=_.prev;return y.next=_,_.prev=y,I.next=$,$.prev=I,U.next=I,I.prev=U,oe.next=U,U.prev=oe,U}function OC(y,_,I,U){var $=new _S(y,_,I);return U?($.next=U.next,$.prev=U,U.next.prev=$,U.next=$):($.prev=$,$.next=$),$}function ob(y){y.next.prev=y.prev,y.prev.next=y.next,y.prevZ&&(y.prevZ.nextZ=y.nextZ),y.nextZ&&(y.nextZ.prevZ=y.prevZ)}function _S(y,_,I){this.i=y,this.x=_,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}R1.deviation=function(y,_,I,U){var $=_&&_.length,oe=$?_[0]*I:y.length,he=Math.abs(xS(y,0,oe,I));if($)for(var De=0,it=_.length;De0&&(U+=y[$-1].length,I.holes.push(U))}return I},Ww.default=RC;function bS(y,_,I,U,$){pg(y,_,I||0,U||y.length-1,$||BC)}function pg(y,_,I,U,$){for(;U>I;){if(U-I>600){var oe=U-I+1,he=_-I+1,De=Math.log(oe),it=.5*Math.exp(2*De/3),yt=.5*Math.sqrt(De*it*(oe-it)/oe)*(he-oe/2<0?-1:1),Lt=Math.max(I,Math.floor(_-he*it/oe+yt)),sr=Math.min(U,Math.floor(_+(oe-he)*it/oe+yt));pg(y,_,Lt,sr,$)}var gr=y[_],hr=I,Rr=U;for(F1(y,I,_),$(y[U],gr)>0&&F1(y,I,U);hr0;)Rr--}$(y[I],gr)===0?F1(y,I,Rr):(Rr++,F1(y,Rr,U)),Rr<=_&&(I=Rr+1),_<=Rr&&(U=Rr-1)}}function F1(y,_,I){var U=y[_];y[_]=y[I],y[I]=U}function BC(y,_){return y<_?-1:y>_?1:0}function Kw(y,_){var I=y.length;if(I<=1)return[y];for(var U=[],$,oe,he=0;he1)for(var it=0;it>3}if(U--,I===1||I===2)$+=y.readSVarint(),oe+=y.readSVarint(),I===1&&(De&&he.push(De),De=[]),De.push(new u($,oe));else if(I===7)De&&De.push(De[0].clone());else throw new Error("unknown command "+I)}return De&&he.push(De),he},_y.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var _=y.readVarint()+y.pos,I=1,U=0,$=0,oe=0,he=1/0,De=-1/0,it=1/0,yt=-1/0;y.pos<_;){if(U<=0){var Lt=y.readVarint();I=Lt&7,U=Lt>>3}if(U--,I===1||I===2)$+=y.readSVarint(),oe+=y.readSVarint(),$De&&(De=$),oeyt&&(yt=oe);else if(I!==7)throw new Error("unknown command "+I)}return[he,it,De,yt]},_y.prototype.toGeoJSON=function(y,_,I){var U=this.extent*Math.pow(2,I),$=this.extent*y,oe=this.extent*_,he=this.loadGeometry(),De=_y.types[this.type],it,yt;function Lt(hr){for(var Rr=0;Rr>3;_=U===1?y.readString():U===2?y.readFloat():U===3?y.readDouble():U===4?y.readVarint64():U===5?y.readVarint():U===6?y.readSVarint():U===7?y.readBoolean():null}return _}AS.prototype.feature=function(y){if(y<0||y>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[y];var _=this._pbf.readVarint()+this._pbf.pos;return new TS(this._pbf,_,this.extent,this._keys,this._values)};var YC=sq;function sq(y,_){this.layers=y.readFields(lq,{},_)}function lq(y,_,I){if(y===3){var U=new gg(I,I.readVarint()+I.pos);U.length&&(_[U.name]=U)}}var KC=YC,z1=TS,JC=gg,mg={VectorTile:KC,VectorTileFeature:z1,VectorTileLayer:JC},$C=mg.VectorTileFeature.types,$w=500,q1=Math.pow(2,13);function dm(y,_,I,U,$,oe,he,De){y.emplaceBack(_,I,Math.floor(U*q1)*2+he,$*q1*2,oe*q1*2,Math.round(De))}var Vp=function(_){this.zoom=_.zoom,this.overscaling=_.overscaling,this.layers=_.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=_.index,this.hasPattern=!1,this.layoutVertexArray=new Ii,this.indexArray=new pn,this.programConfigurations=new ci(_.layers,_.zoom),this.segments=new io,this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};Vp.prototype.populate=function(_,I,U){this.features=[],this.hasPattern=Jw("fill-extrusion",this.layers,I);for(var $=0,oe=_;$=1){var xn=ji[bn-1];if(!uq(rn,xn)){hr.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(hr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var In=rn.sub(xn)._perp()._unit(),Xn=xn.dist(rn);wi+Xn>32768&&(wi=0),dm(this.layoutVertexArray,rn.x,rn.y,In.x,In.y,0,0,wi),dm(this.layoutVertexArray,rn.x,rn.y,In.x,In.y,0,1,wi),wi+=Xn,dm(this.layoutVertexArray,xn.x,xn.y,In.x,In.y,0,0,wi),dm(this.layoutVertexArray,xn.x,xn.y,In.x,In.y,0,1,wi);var ga=hr.vertexLength;this.indexArray.emplaceBack(ga,ga+2,ga+1),this.indexArray.emplaceBack(ga+1,ga+2,ga+3),hr.vertexLength+=4,hr.primitiveLength+=2}}}}if(hr.vertexLength+yt>io.MAX_VERTEX_ARRAY_LENGTH&&(hr=this.segments.prepareSegment(yt,this.layoutVertexArray,this.indexArray)),$C[_.type]==="Polygon"){for(var ha=[],eo=[],qa=hr.vertexLength,Za=0,Jo=it;ZaEi)||y.y===_.y&&(y.y<0||y.y>Ei)}function cq(y){return y.every(function(_){return _.x<0})||y.every(function(_){return _.x>Ei})||y.every(function(_){return _.y<0})||y.every(function(_){return _.y>Ei})}var O1=new Or({"fill-extrusion-opacity":new Me(Rn["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new bt(Rn["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Me(Rn["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Me(Rn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ot(Rn["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new bt(Rn["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new bt(Rn["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Me(Rn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ld={paint:O1},vm=(function(y){function _(I){y.call(this,I,ld)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.createBucket=function(U){return new Vp(U)},_.prototype.queryRadius=function(){return Pv(this.paint.get("fill-extrusion-translate"))},_.prototype.is3D=function(){return!0},_.prototype.queryIntersectsFeature=function(U,$,oe,he,De,it,yt,Lt){var sr=Jv(U,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),it.angle,yt),gr=this.paint.get("fill-extrusion-height").evaluate($,oe),hr=this.paint.get("fill-extrusion-base").evaluate($,oe),Rr=fq(sr,Lt,it,0),ni=MS(he,hr,gr,Lt),ji=ni[0],wi=ni[1];return QC(ji,wi,Rr)},_})(vi);function xy(y,_){return y.x*_.x+y.y*_.y}function SS(y,_){if(y.length===1){for(var I=0,U=_[I++],$;!$||U.equals($);)if($=_[I++],!$)return 1/0;for(;I<_.length;I++){var oe=_[I],he=y[0],De=$.sub(U),it=oe.sub(U),yt=he.sub(U),Lt=xy(De,De),sr=xy(De,it),gr=xy(it,it),hr=xy(yt,De),Rr=xy(yt,it),ni=Lt*gr-sr*sr,ji=(gr*hr-sr*Rr)/ni,wi=(Lt*Rr-sr*hr)/ni,bn=1-ji-wi,rn=U.z*bn+$.z*ji+oe.z*wi;if(isFinite(rn))return rn}return 1/0}else{for(var xn=1/0,In=0,Xn=_;In=2&&_[yt-1].equals(_[yt-2]);)yt--;for(var Lt=0;Lt0;if(ha&&bn>Lt){var qa=hr.dist(Rr);if(qa>2*sr){var Za=hr.sub(hr.sub(Rr)._mult(sr/qa)._round());this.updateDistance(Rr,Za),this.addCurrentVertex(Za,ji,0,0,gr),Rr=Za}}var Jo=Rr&&ni,to=Jo?U:it?"butt":$;if(Jo&&to==="round"&&(Xnoe&&(to="bevel"),to==="bevel"&&(Xn>2&&(to="flipbevel"),Xn100)rn=wi.mult(-1);else{var ao=Xn*ji.add(wi).mag()/ji.sub(wi).mag();rn._perp()._mult(ao*(eo?-1:1))}this.addCurrentVertex(hr,rn,0,0,gr),this.addCurrentVertex(hr,rn.mult(-1),0,0,gr)}else if(to==="bevel"||to==="fakeround"){var _s=-Math.sqrt(Xn*Xn-1),jo=eo?_s:0,kl=eo?0:_s;if(Rr&&this.addCurrentVertex(hr,ji,jo,kl,gr),to==="fakeround")for(var Iu=Math.round(ga*180/Math.PI/kS),Cl=1;Cl2*sr){var ch=hr.add(ni.sub(hr)._mult(sr/$h)._round());this.updateDistance(hr,ch),this.addCurrentVertex(ch,wi,0,0,gr),hr=ch}}}}},sh.prototype.addCurrentVertex=function(_,I,U,$,oe,he){he===void 0&&(he=!1);var De=I.x+I.y*U,it=I.y-I.x*U,yt=-I.x+I.y*$,Lt=-I.y-I.x*$;this.addHalfVertex(_,De,it,he,!1,U,oe),this.addHalfVertex(_,yt,Lt,he,!0,-$,oe),this.distance>fb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(_,I,U,$,oe,he))},sh.prototype.addHalfVertex=function(_,I,U,$,oe,he,De){var it=_.x,yt=_.y,Lt=this.lineClips?this.scaledDistance*(fb-1):this.scaledDistance,sr=Lt*e3;if(this.layoutVertexArray.emplaceBack((it<<1)+($?1:0),(yt<<1)+(oe?1:0),Math.round(Qw*I)+128,Math.round(Qw*U)+128,(he===0?0:he<0?-1:1)+1|(sr&63)<<2,sr>>6),this.lineClips){var gr=this.scaledDistance-this.lineClips.start,hr=this.lineClips.end-this.lineClips.start,Rr=gr/hr;this.layoutVertexArray2.emplaceBack(Rr,this.lineClipsArray.length)}var ni=De.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ni),De.primitiveLength++),oe?this.e2=ni:this.e1=ni},sh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},sh.prototype.updateDistance=function(_,I){this.distance+=_.dist(I),this.updateScaledDistance()},X("LineBucket",sh,{omit:["layers","patternFeatures"]});var CS=new Or({"line-cap":new Me(Rn.layout_line["line-cap"]),"line-join":new bt(Rn.layout_line["line-join"]),"line-miter-limit":new Me(Rn.layout_line["line-miter-limit"]),"line-round-limit":new Me(Rn.layout_line["line-round-limit"]),"line-sort-key":new bt(Rn.layout_line["line-sort-key"])}),LS=new Or({"line-opacity":new bt(Rn.paint_line["line-opacity"]),"line-color":new bt(Rn.paint_line["line-color"]),"line-translate":new Me(Rn.paint_line["line-translate"]),"line-translate-anchor":new Me(Rn.paint_line["line-translate-anchor"]),"line-width":new bt(Rn.paint_line["line-width"]),"line-gap-width":new bt(Rn.paint_line["line-gap-width"]),"line-offset":new bt(Rn.paint_line["line-offset"]),"line-blur":new bt(Rn.paint_line["line-blur"]),"line-dasharray":new Lr(Rn.paint_line["line-dasharray"]),"line-pattern":new Ot(Rn.paint_line["line-pattern"]),"line-gradient":new Vr(Rn.paint_line["line-gradient"])}),t3={paint:LS,layout:CS},dq=(function(y){function _(){y.apply(this,arguments)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.possiblyEvaluate=function(U,$){return $=new Un(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),y.prototype.possiblyEvaluate.call(this,U,$)},_.prototype.evaluate=function(U,$,oe,he){return $=x({},$,{zoom:Math.floor($.zoom)}),y.prototype.evaluate.call(this,U,$,oe,he)},_})(bt),R=new dq(t3.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var A=(function(y){function _(I){y.call(this,I,t3),this.gradientVersion=0}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype._handleSpecialPaintPropertyUpdate=function(U){if(U==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof _u,this.gradientVersion=(this.gradientVersion+1)%d}},_.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},_.prototype.recalculate=function(U,$){y.prototype.recalculate.call(this,U,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,U)},_.prototype.createBucket=function(U){return new sh(U)},_.prototype.queryRadius=function(U){var $=U,oe=F(Ad("line-width",this,$),Ad("line-gap-width",this,$)),he=Ad("line-offset",this,$);return oe/2+Math.abs(he)+Pv(this.paint.get("line-translate"))},_.prototype.queryIntersectsFeature=function(U,$,oe,he,De,it,yt){var Lt=Jv(U,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),it.angle,yt),sr=yt/2*F(this.paint.get("line-width").evaluate($,oe),this.paint.get("line-gap-width").evaluate($,oe)),gr=this.paint.get("line-offset").evaluate($,oe);return gr&&(he=W(he,gr*yt)),ou(Lt,he,sr)},_.prototype.isTileClipped=function(){return!0},_})(vi);function F(y,_){return _>0?_+2*y:y}function W(y,_){for(var I=[],U=new u(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function ln(y){for(var _="",I=0;I>1,Lt=-7,sr=I?$-1:0,gr=I?-1:1,hr=y[_+sr];for(sr+=gr,oe=hr&(1<<-Lt)-1,hr>>=-Lt,Lt+=De;Lt>0;oe=oe*256+y[_+sr],sr+=gr,Lt-=8);for(he=oe&(1<<-Lt)-1,oe>>=-Lt,Lt+=U;Lt>0;he=he*256+y[_+sr],sr+=gr,Lt-=8);if(oe===0)oe=1-yt;else{if(oe===it)return he?NaN:(hr?-1:1)*(1/0);he=he+Math.pow(2,U),oe=oe-yt}return(hr?-1:1)*he*Math.pow(2,oe-U)},ro=function(y,_,I,U,$,oe){var he,De,it,yt=oe*8-$-1,Lt=(1<>1,gr=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,hr=U?0:oe-1,Rr=U?1:-1,ni=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(De=isNaN(_)?1:0,he=Lt):(he=Math.floor(Math.log(_)/Math.LN2),_*(it=Math.pow(2,-he))<1&&(he--,it*=2),he+sr>=1?_+=gr/it:_+=gr*Math.pow(2,1-sr),_*it>=2&&(he++,it/=2),he+sr>=Lt?(De=0,he=Lt):he+sr>=1?(De=(_*it-1)*Math.pow(2,$),he=he+sr):(De=_*Math.pow(2,sr-1)*Math.pow(2,$),he=0));$>=8;y[I+hr]=De&255,hr+=Rr,De/=256,$-=8);for(he=he<<$|De,yt+=$;yt>0;y[I+hr]=he&255,hr+=Rr,he/=256,yt-=8);y[I+hr-Rr]|=ni*128},Vo={read:pa,write:ro},Xa=la;function la(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||0),this.pos=0,this.type=0,this.length=this.buf.length}la.Varint=0,la.Fixed64=1,la.Bytes=2,la.Fixed32=5;var Mo=65536*65536,fo=1/Mo,lo=12,Wn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");la.prototype={destroy:function(){this.buf=null},readFields:function(y,_,I){for(I=I||this.length;this.pos>3,oe=this.pos;this.type=U&7,y($,_,this),this.pos===oe&&this.skip(U)}return _},readMessage:function(y,_){return this.readFields(y,_,this.readVarint()+this.pos)},readFixed32:function(){var y=Yh(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=Fv(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=Yh(this.buf,this.pos)+Yh(this.buf,this.pos+4)*Mo;return this.pos+=8,y},readSFixed64:function(){var y=Yh(this.buf,this.pos)+Fv(this.buf,this.pos+4)*Mo;return this.pos+=8,y},readFloat:function(){var y=Vo.read(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=Vo.read(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var _=this.buf,I,U;return U=_[this.pos++],I=U&127,U<128||(U=_[this.pos++],I|=(U&127)<<7,U<128)||(U=_[this.pos++],I|=(U&127)<<14,U<128)||(U=_[this.pos++],I|=(U&127)<<21,U<128)?I:(U=_[this.pos],I|=(U&15)<<28,Ro(I,y,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var y=this.readVarint();return y%2===1?(y+1)/-2:y/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var y=this.readVarint()+this.pos,_=this.pos;return this.pos=y,y-_>=lo&&Wn?ru(this.buf,_,y):uv(this.buf,_,y)},readBytes:function(){var y=this.readVarint()+this.pos,_=this.buf.subarray(this.pos,y);return this.pos=y,_},readPackedVarint:function(y,_){if(this.type!==la.Bytes)return y.push(this.readVarint(_));var I=uo(this);for(y=y||[];this.pos127;);else if(_===la.Bytes)this.pos=this.readVarint()+this.pos;else if(_===la.Fixed32)this.pos+=4;else if(_===la.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+_)},writeTag:function(y,_){this.writeVarint(y<<3|_)},realloc:function(y){for(var _=this.length||16;_268435455||y<0){Ju(y,this);return}this.realloc(4),this.buf[this.pos++]=y&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=y>>>7&127)))},writeSVarint:function(y){this.writeVarint(y<0?-y*2-1:y*2)},writeBoolean:function(y){this.writeVarint(!!y)},writeString:function(y){y=String(y),this.realloc(y.length*4),this.pos++;var _=this.pos;this.pos=pc(this.buf,y,this.pos);var I=this.pos-_;I>=128&&Qv(_,I,this),this.pos=_-1,this.writeVarint(I),this.pos+=I},writeFloat:function(y){this.realloc(4),Vo.write(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),Vo.write(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var _=y.length;this.writeVarint(_),this.realloc(_);for(var I=0;I<_;I++)this.buf[this.pos++]=y[I]},writeRawMessage:function(y,_){this.pos++;var I=this.pos;y(_,this);var U=this.pos-I;U>=128&&Qv(I,U,this),this.pos=I-1,this.writeVarint(U),this.pos+=U},writeMessage:function(y,_,I){this.writeTag(y,la.Bytes),this.writeRawMessage(_,I)},writePackedVarint:function(y,_){_.length&&this.writeMessage(y,ud,_)},writePackedSVarint:function(y,_){_.length&&this.writeMessage(y,Ch,_)},writePackedBoolean:function(y,_){_.length&&this.writeMessage(y,jd,_)},writePackedFloat:function(y,_){_.length&&this.writeMessage(y,Gd,_)},writePackedDouble:function(y,_){_.length&&this.writeMessage(y,Hd,_)},writePackedFixed32:function(y,_){_.length&&this.writeMessage(y,Af,_)},writePackedSFixed32:function(y,_){_.length&&this.writeMessage(y,Lh,_)},writePackedFixed64:function(y,_){_.length&&this.writeMessage(y,Ed,_)},writePackedSFixed64:function(y,_){_.length&&this.writeMessage(y,cd,_)},writeBytesField:function(y,_){this.writeTag(y,la.Bytes),this.writeBytes(_)},writeFixed32Field:function(y,_){this.writeTag(y,la.Fixed32),this.writeFixed32(_)},writeSFixed32Field:function(y,_){this.writeTag(y,la.Fixed32),this.writeSFixed32(_)},writeFixed64Field:function(y,_){this.writeTag(y,la.Fixed64),this.writeFixed64(_)},writeSFixed64Field:function(y,_){this.writeTag(y,la.Fixed64),this.writeSFixed64(_)},writeVarintField:function(y,_){this.writeTag(y,la.Varint),this.writeVarint(_)},writeSVarintField:function(y,_){this.writeTag(y,la.Varint),this.writeSVarint(_)},writeStringField:function(y,_){this.writeTag(y,la.Bytes),this.writeString(_)},writeFloatField:function(y,_){this.writeTag(y,la.Fixed32),this.writeFloat(_)},writeDoubleField:function(y,_){this.writeTag(y,la.Fixed64),this.writeDouble(_)},writeBooleanField:function(y,_){this.writeVarintField(y,!!_)}};function Ro(y,_,I){var U=I.buf,$,oe;if(oe=U[I.pos++],$=(oe&112)>>4,oe<128||(oe=U[I.pos++],$|=(oe&127)<<3,oe<128)||(oe=U[I.pos++],$|=(oe&127)<<10,oe<128)||(oe=U[I.pos++],$|=(oe&127)<<17,oe<128)||(oe=U[I.pos++],$|=(oe&127)<<24,oe<128)||(oe=U[I.pos++],$|=(oe&1)<<31,oe<128))return $o(y,$,_);throw new Error("Expected varint not more than 10 bytes")}function uo(y){return y.type===la.Bytes?y.readVarint()+y.pos:y.pos+1}function $o(y,_,I){return I?_*4294967296+(y>>>0):(_>>>0)*4294967296+(y>>>0)}function Ju(y,_){var I,U;if(y>=0?(I=y%4294967296|0,U=y/4294967296|0):(I=~(-y%4294967296),U=~(-y/4294967296),I^4294967295?I=I+1|0:(I=0,U=U+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");_.realloc(10),Ou(I,U,_),kh(U,_)}function Ou(y,_,I){I.buf[I.pos++]=y&127|128,y>>>=7,I.buf[I.pos++]=y&127|128,y>>>=7,I.buf[I.pos++]=y&127|128,y>>>=7,I.buf[I.pos++]=y&127|128,y>>>=7,I.buf[I.pos]=y&127}function kh(y,_){var I=(y&7)<<4;_.buf[_.pos++]|=I|((y>>>=3)?128:0),y&&(_.buf[_.pos++]=y&127|((y>>>=7)?128:0),y&&(_.buf[_.pos++]=y&127|((y>>>=7)?128:0),y&&(_.buf[_.pos++]=y&127|((y>>>=7)?128:0),y&&(_.buf[_.pos++]=y&127|((y>>>=7)?128:0),y&&(_.buf[_.pos++]=y&127)))))}function Qv(y,_,I){var U=_<=16383?1:_<=2097151?2:_<=268435455?3:Math.floor(Math.log(_)/(Math.LN2*7));I.realloc(U);for(var $=I.pos-1;$>=y;$--)I.buf[$+U]=I.buf[$]}function ud(y,_){for(var I=0;I>>8,y[I+2]=_>>>16,y[I+3]=_>>>24}function Fv(y,_){return(y[_]|y[_+1]<<8|y[_+2]<<16)+(y[_+3]<<24)}function uv(y,_,I){for(var U="",$=_;$239?4:oe>223?3:oe>191?2:1;if($+De>I)break;var it,yt,Lt;De===1?oe<128&&(he=oe):De===2?(it=y[$+1],(it&192)===128&&(he=(oe&31)<<6|it&63,he<=127&&(he=null))):De===3?(it=y[$+1],yt=y[$+2],(it&192)===128&&(yt&192)===128&&(he=(oe&15)<<12|(it&63)<<6|yt&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):De===4&&(it=y[$+1],yt=y[$+2],Lt=y[$+3],(it&192)===128&&(yt&192)===128&&(Lt&192)===128&&(he=(oe&15)<<18|(it&63)<<12|(yt&63)<<6|Lt&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,De=1):he>65535&&(he-=65536,U+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),U+=String.fromCharCode(he),$+=De}return U}function ru(y,_,I){return Wn.decode(y.subarray(_,I))}function pc(y,_,I){for(var U=0,$,oe;U<_.length;U++){if($=_.charCodeAt(U),$>55295&&$<57344)if(oe)if($<56320){y[I++]=239,y[I++]=191,y[I++]=189,oe=$;continue}else $=oe-55296<<10|$-56320|65536,oe=null;else{$>56319||U+1===_.length?(y[I++]=239,y[I++]=191,y[I++]=189):oe=$;continue}else oe&&(y[I++]=239,y[I++]=191,y[I++]=189,oe=null);$<128?y[I++]=$:($<2048?y[I++]=$>>6|192:($<65536?y[I++]=$>>12|224:(y[I++]=$>>18|240,y[I++]=$>>12&63|128),y[I++]=$>>6&63|128),y[I++]=$&63|128)}return I}var $u=3;function zv(y,_,I){y===1&&I.readMessage(hf,_)}function hf(y,_,I){if(y===3){var U=I.readMessage(B1,{}),$=U.id,oe=U.bitmap,he=U.width,De=U.height,it=U.left,yt=U.top,Lt=U.advance;_.push({id:$,bitmap:new Dv({width:he+2*$u,height:De+2*$u},oe),metrics:{width:he,height:De,left:it,top:yt,advance:Lt}})}}function B1(y,_,I){y===1?_.id=I.readVarint():y===2?_.bitmap=I.readBytes():y===3?_.width=I.readVarint():y===4?_.height=I.readVarint():y===5?_.left=I.readSVarint():y===6?_.top=I.readSVarint():y===7&&(_.advance=I.readVarint())}function p0(y){return new Xa(y).readFields(zv,[])}var Gp=$u;function ep(y){for(var _=0,I=0,U=0,$=y;U<$.length;U+=1){var oe=$[U];_+=oe.w*oe.h,I=Math.max(I,oe.w)}y.sort(function(ji,wi){return wi.h-ji.h});for(var he=Math.max(Math.ceil(Math.sqrt(_/.95)),I),De=[{x:0,y:0,w:he,h:1/0}],it=0,yt=0,Lt=0,sr=y;Lt=0;hr--){var Rr=De[hr];if(!(gr.w>Rr.w||gr.h>Rr.h)){if(gr.x=Rr.x,gr.y=Rr.y,yt=Math.max(yt,gr.y+gr.h),it=Math.max(it,gr.x+gr.w),gr.w===Rr.w&&gr.h===Rr.h){var ni=De.pop();hr=0&&$>=_&&m0[this.text.charCodeAt($)];$--)U--;this.text=this.text.substring(_,U),this.sectionIndex=this.sectionIndex.slice(_,U)},Kh.prototype.substring=function(_,I){var U=new Kh;return U.text=this.text.substring(_,I),U.sectionIndex=this.sectionIndex.slice(_,I),U.sections=this.sections,U},Kh.prototype.toString=function(){return this.text},Kh.prototype.getMaxScale=function(){var _=this;return this.sectionIndex.reduce(function(I,U){return Math.max(I,_.sections[U].scale)},0)},Kh.prototype.addTextSection=function(_,I){this.text+=_.text,this.sections.push(by.forText(_.scale,_.fontStack||I));for(var U=this.sections.length-1,$=0;$<_.text.length;++$)this.sectionIndex.push(U)},Kh.prototype.addImageSection=function(_){var I=_.image?_.image.name:"";if(I.length===0){re("Can't add FormattedSection with an empty image.");return}var U=this.getNextImageSectionCharCode();if(!U){re("Reached maximum number of images "+(g0-r3+2));return}this.text+=String.fromCharCode(U),this.sections.push(by.forImage(I)),this.sectionIndex.push(this.sections.length-1)},Kh.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=g0?null:++this.imageSectionID:(this.imageSectionID=r3,this.imageSectionID)};function vq(y,_){for(var I=[],U=y.text,$=0,oe=0,he=_;oe=0,Lt=0,sr=0;sr0&&ch>eo&&(eo=ch)}else{var Ll=I[Za.fontStack],yl=Ll&&Ll[to];if(yl&&yl.rect)jo=yl.rect,_s=yl.metrics;else{var Qu=_[Za.fontStack],gc=Qu&&Qu[to];if(!gc)continue;_s=gc.metrics}ao=(In-Za.scale)*Tn}Cl?(y.verticalizable=!0,ha.push({glyph:to,imageName:kl,x:gr,y:hr+ao,vertical:Cl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Jo,metrics:_s,rect:jo}),gr+=Iu*Za.scale+yt):(ha.push({glyph:to,imageName:kl,x:gr,y:hr+ao,vertical:Cl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Jo,metrics:_s,rect:jo}),gr+=_s.advance*Za.scale+yt)}if(ha.length!==0){var Xd=gr-yt;Rr=Math.max(Xd,Rr),yq(ha,0,ha.length-1,ji,eo)}gr=0;var Zd=oe*In+eo;ga.lineOffset=Math.max(eo,Xn),hr+=Zd,ni=Math.max(Zd,ni),++wi}var Qh=hr-N1,hv=IS(he),dv=hv.horizontalAlign,Ph=hv.verticalAlign;kd(y.positionedLines,ji,dv,Ph,Rr,ni,oe,Qh,$.length),y.top+=-Ph*Qh,y.bottom=y.top+Qh,y.left+=-dv*Rr,y.right=y.left+Rr}function yq(y,_,I,U,$){if(!(!U&&!$))for(var oe=y[I],he=oe.metrics.advance*oe.scale,De=(y[I].x+he)*U,it=_;it<=I;it++)y[it].x-=De,y[it].y+=$}function kd(y,_,I,U,$,oe,he,De,it){var yt=(_-I)*$,Lt=0;oe!==he?Lt=-De*U-N1:Lt=(-U*it+.5)*he;for(var sr=0,gr=y;sr-I/2;){if(he--,he<0)return!1;De-=y[he].dist(oe),oe=y[he]}De+=y[he].dist(y[he+1]),he++;for(var it=[],yt=0;DeU;)yt-=it.shift().angleDelta;if(yt>$)return!1;he++,De+=sr.dist(gr)}return!0}function WQ(y){for(var _=0,I=0;Iyt){var Rr=(yt-it)/hr,ni=il(sr.x,gr.x,Rr),ji=il(sr.y,gr.y,Rr),wi=new Wd(ni,ji,gr.angleTo(sr),Lt);return wi._round(),!he||jQ(y,wi,De,he,_)?wi:void 0}it+=hr}}function Het(y,_,I,U,$,oe,he,De,it){var yt=XQ(U,oe,he),Lt=ZQ(U,$),sr=Lt*he,gr=y[0].x===0||y[0].x===it||y[0].y===0||y[0].y===it;_-sr<_/4&&(_=sr+_/4);var hr=oe*2,Rr=gr?_/2*De%_:(Lt/2+hr)*he*De%_;return YQ(y,Rr,_,yt,I,sr,gr,!1,it)}function YQ(y,_,I,U,$,oe,he,De,it){for(var yt=oe/2,Lt=WQ(y),sr=0,gr=_-I,hr=[],Rr=0;Rr=0&&xn=0&&In=0&&gr+yt<=Lt){var Xn=new Wd(xn,In,bn,Rr);Xn._round(),(!U||jQ(y,Xn,oe,U,$))&&hr.push(Xn)}}sr+=wi}return!De&&!hr.length&&!he&&(hr=YQ(y,sr/2,I,U,$,oe,he,!0,it)),hr}function KQ(y,_,I,U,$){for(var oe=[],he=0;he=U&&sr.x>=U)&&(Lt.x>=U?Lt=new u(U,Lt.y+(sr.y-Lt.y)*((U-Lt.x)/(sr.x-Lt.x)))._round():sr.x>=U&&(sr=new u(U,Lt.y+(sr.y-Lt.y)*((U-Lt.x)/(sr.x-Lt.x)))._round()),!(Lt.y>=$&&sr.y>=$)&&(Lt.y>=$?Lt=new u(Lt.x+(sr.x-Lt.x)*(($-Lt.y)/(sr.y-Lt.y)),$)._round():sr.y>=$&&(sr=new u(Lt.x+(sr.x-Lt.x)*(($-Lt.y)/(sr.y-Lt.y)),$)._round()),(!it||!Lt.equals(it[it.length-1]))&&(it=[Lt],oe.push(it)),it.push(sr)))))}return oe}var a3=Gc;function JQ(y,_,I,U){var $=[],oe=y.image,he=oe.pixelRatio,De=oe.paddedRect.w-2*a3,it=oe.paddedRect.h-2*a3,yt=y.right-y.left,Lt=y.bottom-y.top,sr=oe.stretchX||[[0,De]],gr=oe.stretchY||[[0,it]],hr=function(Ll,yl){return Ll+yl[1]-yl[0]},Rr=sr.reduce(hr,0),ni=gr.reduce(hr,0),ji=De-Rr,wi=it-ni,bn=0,rn=Rr,xn=0,In=ni,Xn=0,ga=ji,ha=0,eo=wi;if(oe.content&&U){var qa=oe.content;bn=s6(sr,0,qa[0]),xn=s6(gr,0,qa[1]),rn=s6(sr,qa[0],qa[2]),In=s6(gr,qa[1],qa[3]),Xn=qa[0]-bn,ha=qa[1]-xn,ga=qa[2]-qa[0]-rn,eo=qa[3]-qa[1]-In}var Za=function(Ll,yl,Qu,gc){var Sf=l6(Ll.stretch-bn,rn,yt,y.left),Ff=u6(Ll.fixed-Xn,ga,Ll.stretch,Rr),$h=l6(yl.stretch-xn,In,Lt,y.top),ch=u6(yl.fixed-ha,eo,yl.stretch,ni),Xd=l6(Qu.stretch-bn,rn,yt,y.left),Zd=u6(Qu.fixed-Xn,ga,Qu.stretch,Rr),Qh=l6(gc.stretch-xn,In,Lt,y.top),hv=u6(gc.fixed-ha,eo,gc.stretch,ni),dv=new u(Sf,$h),Ph=new u(Xd,$h),vv=new u(Xd,Qh),bp=new u(Sf,Qh),Ay=new u(Ff/he,ch/he),G1=new u(Zd/he,hv/he),H1=_*Math.PI/180;if(H1){var j1=Math.sin(H1),d3=Math.cos(H1),y0=[d3,-j1,j1,d3];dv._matMult(y0),Ph._matMult(y0),bp._matMult(y0),vv._matMult(y0)}var p6=Ll.stretch+Ll.fixed,Mq=Qu.stretch+Qu.fixed,g6=yl.stretch+yl.fixed,Eq=gc.stretch+gc.fixed,Hp={x:oe.paddedRect.x+a3+p6,y:oe.paddedRect.y+a3+g6,w:Mq-p6,h:Eq-g6},v3=ga/he/yt,m6=eo/he/Lt;return{tl:dv,tr:Ph,bl:bp,br:vv,tex:Hp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Ay,pixelOffsetBR:G1,minFontScaleX:v3,minFontScaleY:m6,isSDF:I}};if(!U||!oe.stretchX&&!oe.stretchY)$.push(Za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:De+1},{fixed:0,stretch:it+1}));else for(var Jo=$Q(sr,ji,Rr),to=$Q(gr,wi,ni),ao=0;ao0&&(Rr=Math.max(10,Rr),this.circleDiameter=Rr)}else{var ni=he.top*De-it,ji=he.bottom*De+it,wi=he.left*De-it,bn=he.right*De+it,rn=he.collisionPadding;if(rn&&(wi-=rn[0]*De,ni-=rn[1]*De,bn+=rn[2]*De,ji+=rn[3]*De),Lt){var xn=new u(wi,ni),In=new u(bn,ni),Xn=new u(wi,ji),ga=new u(bn,ji),ha=Lt*Math.PI/180;xn._rotate(ha),In._rotate(ha),Xn._rotate(ha),ga._rotate(ha),wi=Math.min(xn.x,In.x,Xn.x,ga.x),bn=Math.max(xn.x,In.x,Xn.x,ga.x),ni=Math.min(xn.y,In.y,Xn.y,ga.y),ji=Math.max(xn.y,In.y,Xn.y,ga.y)}_.emplaceBack(I.x,I.y,wi,ni,bn,ji,U,$,oe)}this.boxEndIndex=_.length},o3=function(_,I){if(_===void 0&&(_=[]),I===void 0&&(I=Wet),this.data=_,this.length=this.data.length,this.compare=I,this.length>0)for(var U=(this.length>>1)-1;U>=0;U--)this._down(U)};o3.prototype.push=function(_){this.data.push(_),this.length++,this._up(this.length-1)},o3.prototype.pop=function(){if(this.length!==0){var _=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),_}},o3.prototype.peek=function(){return this.data[0]},o3.prototype._up=function(_){for(var I=this,U=I.data,$=I.compare,oe=U[_];_>0;){var he=_-1>>1,De=U[he];if($(oe,De)>=0)break;U[_]=De,_=he}U[_]=oe},o3.prototype._down=function(_){for(var I=this,U=I.data,$=I.compare,oe=this.length>>1,he=U[_];_=0)break;U[_]=it,_=De}U[_]=he};function Wet(y,_){return y<_?-1:y>_?1:0}function Xet(y,_,I){_===void 0&&(_=1),I===void 0&&(I=!1);for(var U=1/0,$=1/0,oe=-1/0,he=-1/0,De=y[0],it=0;itoe)&&(oe=yt.x),(!it||yt.y>he)&&(he=yt.y)}var Lt=oe-U,sr=he-$,gr=Math.min(Lt,sr),hr=gr/2,Rr=new o3([],Zet);if(gr===0)return new u(U,$);for(var ni=U;niwi.d||!wi.d)&&(wi=rn,I&&console.log("found best %d after %d probes",Math.round(1e4*rn.d)/1e4,bn)),!(rn.max-wi.d<=_)&&(hr=rn.h/2,Rr.push(new s3(rn.p.x-hr,rn.p.y-hr,hr,y)),Rr.push(new s3(rn.p.x+hr,rn.p.y-hr,hr,y)),Rr.push(new s3(rn.p.x-hr,rn.p.y+hr,hr,y)),Rr.push(new s3(rn.p.x+hr,rn.p.y+hr,hr,y)),bn+=4)}return I&&(console.log("num probes: "+bn),console.log("best distance: "+wi.d)),wi.p}function Zet(y,_){return _.max-y.max}function s3(y,_,I,U){this.p=new u(y,_),this.h=I,this.d=Yet(this.p,U),this.max=this.d+this.h*Math.SQRT2}function Yet(y,_){for(var I=!1,U=1/0,$=0;$<_.length;$++)for(var oe=_[$],he=0,De=oe.length,it=De-1;hey.y!=Lt.y>y.y&&y.x<(Lt.x-yt.x)*(y.y-yt.y)/(Lt.y-yt.y)+yt.x&&(I=!I),U=Math.min(U,hg(y,yt,Lt))}return(I?1:-1)*Math.sqrt(U)}function Ket(y){for(var _=0,I=0,U=0,$=y[0],oe=0,he=$.length,De=he-1;oe=Ei||y0.y<0||y0.y>=Ei||Qet(y,y0,d3,I,U,$,to,y.layers[0],y.collisionBoxArray,_.index,_.sourceLayerIndex,y.index,wi,In,ha,it,rn,Xn,eo,hr,_,oe,yt,Lt,he)};if(qa==="line")for(var _s=0,jo=KQ(_.geometry,0,0,Ei,Ei);_s1){var $h=Get(Ff,ga,I.vertical||Rr,U,ni,bn);$h&&ao(Ff,$h)}}else if(_.type==="Polygon")for(var ch=0,Xd=Kw(_.geometry,0);chU1&&re(y.layerIds[0]+': Value for "text-size" is >= '+RS+'. Reduce your "text-size".')):ji.kind==="composite"&&(wi=[Cd*hr.compositeTextSizes[0].evaluate(he,{},Rr),Cd*hr.compositeTextSizes[1].evaluate(he,{},Rr)],(wi[0]>U1||wi[1]>U1)&&re(y.layerIds[0]+': Value for "text-size" is >= '+RS+'. Reduce your "text-size".')),y.addSymbols(y.text,ni,wi,De,oe,he,yt,_,it.lineStartIndex,it.lineLength,gr,Rr);for(var bn=0,rn=Lt;bnU1&&re(y.layerIds[0]+': Value for "icon-size" is >= '+RS+'. Reduce your "icon-size".')):dv.kind==="composite"&&(Ph=[Cd*In.compositeIconSizes[0].evaluate(xn,{},ga),Cd*In.compositeIconSizes[1].evaluate(xn,{},ga)],(Ph[0]>U1||Ph[1]>U1)&&re(y.layerIds[0]+': Value for "icon-size" is >= '+RS+'. Reduce your "icon-size".')),y.addSymbols(y.icon,Qh,Ph,rn,bn,xn,!1,_,qa.lineStartIndex,qa.lineLength,-1,ga),Cl=y.icon.placedSymbolArray.length-1,hv&&(jo=hv.length*4,y.addSymbols(y.icon,hv,Ph,rn,bn,xn,cv.vertical,_,qa.lineStartIndex,qa.lineLength,-1,ga),Ll=y.icon.placedSymbolArray.length-1)}for(var vv in U.horizontal){var bp=U.horizontal[vv];if(!Za){Qu=K(bp.text);var Ay=De.layout.get("text-rotate").evaluate(xn,{},ga);Za=new c6(it,_,yt,Lt,sr,bp,gr,hr,Rr,Ay)}var G1=bp.positionedLines.length===1;if(kl+=eee(y,_,bp,oe,De,Rr,xn,ni,qa,U.vertical?cv.horizontal:cv.horizontalOnly,G1?Object.keys(U.horizontal):[vv],yl,Cl,In,ga),G1)break}U.vertical&&(Iu+=eee(y,_,U.vertical,oe,De,Rr,xn,ni,qa,cv.vertical,["vertical"],yl,Ll,In,ga));var H1=Za?Za.boxStartIndex:y.collisionBoxArray.length,j1=Za?Za.boxEndIndex:y.collisionBoxArray.length,d3=to?to.boxStartIndex:y.collisionBoxArray.length,y0=to?to.boxEndIndex:y.collisionBoxArray.length,p6=Jo?Jo.boxStartIndex:y.collisionBoxArray.length,Mq=Jo?Jo.boxEndIndex:y.collisionBoxArray.length,g6=ao?ao.boxStartIndex:y.collisionBoxArray.length,Eq=ao?ao.boxEndIndex:y.collisionBoxArray.length,Hp=-1,v3=function(zS,mee){return zS&&zS.circleDiameter?Math.max(zS.circleDiameter,mee):mee};Hp=v3(Za,Hp),Hp=v3(to,Hp),Hp=v3(Jo,Hp),Hp=v3(ao,Hp);var m6=Hp>-1?1:0;m6&&(Hp*=ha/Tn),y.glyphOffsetArray.length>=Pu.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),xn.sortKey!==void 0&&y.addToSortKeyRanges(y.symbolInstances.length,xn.sortKey),y.symbolInstances.emplaceBack(_.x,_.y,yl.right>=0?yl.right:-1,yl.center>=0?yl.center:-1,yl.left>=0?yl.left:-1,yl.vertical||-1,Cl,Ll,Qu,H1,j1,d3,y0,p6,Mq,g6,Eq,yt,kl,Iu,_s,jo,m6,0,gr,gc,Sf,Hp)}function ett(y,_,I,U){var $=y.compareText;if(!(_ in $))$[_]=[];else for(var oe=$[_],he=oe.length-1;he>=0;he--)if(U.dist(oe[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),Lt=it.value.kind!=="constant"||!!it.value.value||Object.keys(it.parameters).length>0,sr=oe.get("symbol-sort-key");if(this.features=[],!(!yt&&!Lt)){for(var gr=I.iconDependencies,hr=I.glyphDependencies,Rr=I.availableImages,ni=new Un(this.zoom),ji=0,wi=_;ji=0;for(var Iu=0,Cl=eo.sections;Iu=0;it--)he[it]={x:I[it].x,y:I[it].y,tileUnitDistanceFromAnchor:oe},it>0&&(oe+=I[it-1].dist(I[it]));for(var yt=0;yt0},Pu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Pu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Pu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Pu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Pu.prototype.addIndicesForPlacedSymbol=function(_,I){for(var U=_.placedSymbolArray.get(I),$=U.vertexStartIndex+U.numGlyphs*4,oe=U.vertexStartIndex;oe<$;oe+=4)_.indexArray.emplaceBack(oe,oe+1,oe+2),_.indexArray.emplaceBack(oe+1,oe+2,oe+3)},Pu.prototype.getSortedSymbolIndexes=function(_){if(this.sortedAngle===_&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(_),U=Math.cos(_),$=[],oe=[],he=[],De=0;De1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(_),this.sortedAngle=_,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var U=0,$=this.symbolInstanceIndexes;U<$.length;U+=1){var oe=$[U],he=this.symbolInstances.get(oe);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(De,it,yt){De>=0&&yt.indexOf(De)===it&&I.addIndicesForPlacedSymbol(I.text,De)}),he.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,he.verticalPlacedTextSymbolIndex),he.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.placedIconSymbolIndex),he.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},X("SymbolBucket",Pu,{omit:["layers","collisionBoxArray","features","compareText"]}),Pu.MAX_GLYPHS=65535,Pu.addDynamicAttributes=bq;function ntt(y,_){return _.replace(/{([^{}]+)}/g,function(I,U){return U in y?String(y[U]):""})}var att=new Or({"symbol-placement":new Me(Rn.layout_symbol["symbol-placement"]),"symbol-spacing":new Me(Rn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Me(Rn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new bt(Rn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Me(Rn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Me(Rn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Me(Rn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Me(Rn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Me(Rn.layout_symbol["icon-rotation-alignment"]),"icon-size":new bt(Rn.layout_symbol["icon-size"]),"icon-text-fit":new Me(Rn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Me(Rn.layout_symbol["icon-text-fit-padding"]),"icon-image":new bt(Rn.layout_symbol["icon-image"]),"icon-rotate":new bt(Rn.layout_symbol["icon-rotate"]),"icon-padding":new Me(Rn.layout_symbol["icon-padding"]),"icon-keep-upright":new Me(Rn.layout_symbol["icon-keep-upright"]),"icon-offset":new bt(Rn.layout_symbol["icon-offset"]),"icon-anchor":new bt(Rn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Me(Rn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Me(Rn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Me(Rn.layout_symbol["text-rotation-alignment"]),"text-field":new bt(Rn.layout_symbol["text-field"]),"text-font":new bt(Rn.layout_symbol["text-font"]),"text-size":new bt(Rn.layout_symbol["text-size"]),"text-max-width":new bt(Rn.layout_symbol["text-max-width"]),"text-line-height":new Me(Rn.layout_symbol["text-line-height"]),"text-letter-spacing":new bt(Rn.layout_symbol["text-letter-spacing"]),"text-justify":new bt(Rn.layout_symbol["text-justify"]),"text-radial-offset":new bt(Rn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Me(Rn.layout_symbol["text-variable-anchor"]),"text-anchor":new bt(Rn.layout_symbol["text-anchor"]),"text-max-angle":new Me(Rn.layout_symbol["text-max-angle"]),"text-writing-mode":new Me(Rn.layout_symbol["text-writing-mode"]),"text-rotate":new bt(Rn.layout_symbol["text-rotate"]),"text-padding":new Me(Rn.layout_symbol["text-padding"]),"text-keep-upright":new Me(Rn.layout_symbol["text-keep-upright"]),"text-transform":new bt(Rn.layout_symbol["text-transform"]),"text-offset":new bt(Rn.layout_symbol["text-offset"]),"text-allow-overlap":new Me(Rn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Me(Rn.layout_symbol["text-ignore-placement"]),"text-optional":new Me(Rn.layout_symbol["text-optional"])}),ott=new Or({"icon-opacity":new bt(Rn.paint_symbol["icon-opacity"]),"icon-color":new bt(Rn.paint_symbol["icon-color"]),"icon-halo-color":new bt(Rn.paint_symbol["icon-halo-color"]),"icon-halo-width":new bt(Rn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new bt(Rn.paint_symbol["icon-halo-blur"]),"icon-translate":new Me(Rn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Me(Rn.paint_symbol["icon-translate-anchor"]),"text-opacity":new bt(Rn.paint_symbol["text-opacity"]),"text-color":new bt(Rn.paint_symbol["text-color"],{runtimeType:ql,getOverride:function(y){return y.textColor},hasOverride:function(y){return!!y.textColor}}),"text-halo-color":new bt(Rn.paint_symbol["text-halo-color"]),"text-halo-width":new bt(Rn.paint_symbol["text-halo-width"]),"text-halo-blur":new bt(Rn.paint_symbol["text-halo-blur"]),"text-translate":new Me(Rn.paint_symbol["text-translate"]),"text-translate-anchor":new Me(Rn.paint_symbol["text-translate-anchor"])}),wq={paint:ott,layout:att},c3=function(_){this.type=_.property.overrides?_.property.overrides.runtimeType:ac,this.defaultValue=_};c3.prototype.evaluate=function(_){if(_.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(_.formattedSection))return I.getOverride(_.formattedSection)}return _.feature&&_.featureState?this.defaultValue.evaluate(_.feature,_.featureState):this.defaultValue.property.specification.default},c3.prototype.eachChild=function(_){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;_(I._styleExpression.expression)}},c3.prototype.outputDefined=function(){return!1},c3.prototype.serialize=function(){return null},X("FormatSectionOverride",c3,{omit:["defaultValue"]});var stt=(function(y){function _(I){y.call(this,I,wq)}return y&&(_.__proto__=y),_.prototype=Object.create(y&&y.prototype),_.prototype.constructor=_,_.prototype.recalculate=function(U,$){if(y.prototype.recalculate.call(this,U,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var oe=this.layout.get("text-writing-mode");if(oe){for(var he=[],De=0,it=oe;De",targetMapId:$,sourceMapId:he.mapId})}}},f3.prototype.receive=function(_){var I=_.data,U=I.id;if(U&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[U];var $=this.cancelCallbacks[U];delete this.cancelCallbacks[U],$&&$()}else Ce()||I.mustQueue?(this.tasks[U]=I,this.taskQueue.push(U),this.invoker.trigger()):this.processTask(U,I)},f3.prototype.process=function(){if(this.taskQueue.length){var _=this.taskQueue.shift(),I=this.tasks[_];delete this.tasks[_],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(_,I)}},f3.prototype.processTask=function(_,I){var U=this;if(I.type===""){var $=this.callbacks[_];delete this.callbacks[_],$&&(I.error?$(Ye(I.error)):$(null,Ye(I.data)))}else{var oe=!1,he=Se(this.globalScope)?void 0:[],De=I.hasCallback?function(gr,hr){oe=!0,delete U.cancelCallbacks[_],U.target.postMessage({id:_,type:"",sourceMapId:U.mapId,error:gr?Ve(gr):null,data:Ve(hr,he)},he)}:function(gr){oe=!0},it=null,yt=Ye(I.data);if(this.parent[I.type])it=this.parent[I.type](I.sourceMapId,yt,De);else if(this.parent.getWorkerSource){var Lt=I.type.split("."),sr=this.parent.getWorkerSource(I.sourceMapId,Lt[0],yt.source);it=sr[Lt[1]](yt,De)}else De(new Error("Could not find function "+I.type));!oe&&it&&it.cancel&&(this.cancelCallbacks[_]=it.cancel)}},f3.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function ytt(y,_,I){_=Math.pow(2,I)-_-1;var U=oee(y*256,_*256,I),$=oee((y+1)*256,(_+1)*256,I);return U[0]+","+U[1]+","+$[0]+","+$[1]}function oee(y,_,I){var U=2*Math.PI*6378137/256/Math.pow(2,I),$=y*U-2*Math.PI*6378137/2,oe=_*U-2*Math.PI*6378137/2;return[$,oe]}var lh=function(_,I){_&&(I?this.setSouthWest(_).setNorthEast(I):_.length===4?this.setSouthWest([_[0],_[1]]).setNorthEast([_[2],_[3]]):this.setSouthWest(_[0]).setNorthEast(_[1]))};lh.prototype.setNorthEast=function(_){return this._ne=_ instanceof Hc?new Hc(_.lng,_.lat):Hc.convert(_),this},lh.prototype.setSouthWest=function(_){return this._sw=_ instanceof Hc?new Hc(_.lng,_.lat):Hc.convert(_),this},lh.prototype.extend=function(_){var I=this._sw,U=this._ne,$,oe;if(_ instanceof Hc)$=_,oe=_;else if(_ instanceof lh){if($=_._sw,oe=_._ne,!$||!oe)return this}else{if(Array.isArray(_))if(_.length===4||_.every(Array.isArray)){var he=_;return this.extend(lh.convert(he))}else{var De=_;return this.extend(Hc.convert(De))}return this}return!I&&!U?(this._sw=new Hc($.lng,$.lat),this._ne=new Hc(oe.lng,oe.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),U.lng=Math.max(oe.lng,U.lng),U.lat=Math.max(oe.lat,U.lat)),this},lh.prototype.getCenter=function(){return new Hc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lh.prototype.getSouthWest=function(){return this._sw},lh.prototype.getNorthEast=function(){return this._ne},lh.prototype.getNorthWest=function(){return new Hc(this.getWest(),this.getNorth())},lh.prototype.getSouthEast=function(){return new Hc(this.getEast(),this.getSouth())},lh.prototype.getWest=function(){return this._sw.lng},lh.prototype.getSouth=function(){return this._sw.lat},lh.prototype.getEast=function(){return this._ne.lng},lh.prototype.getNorth=function(){return this._ne.lat},lh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lh.prototype.contains=function(_){var I=Hc.convert(_),U=I.lng,$=I.lat,oe=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=U&&U<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=U&&U>=this._ne.lng),oe&&he},lh.convert=function(_){return!_||_ instanceof lh?_:new lh(_)};var see=63710088e-1,Hc=function(_,I){if(isNaN(_)||isNaN(I))throw new Error("Invalid LngLat object: ("+_+", "+I+")");if(this.lng=+_,this.lat=+I,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Hc.prototype.wrap=function(){return new Hc(k(this.lng,-180,180),this.lat)},Hc.prototype.toArray=function(){return[this.lng,this.lat]},Hc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Hc.prototype.distanceTo=function(_){var I=Math.PI/180,U=this.lat*I,$=_.lat*I,oe=Math.sin(U)*Math.sin($)+Math.cos(U)*Math.cos($)*Math.cos((_.lng-this.lng)*I),he=see*Math.acos(Math.min(oe,1));return he},Hc.prototype.toBounds=function(_){_===void 0&&(_=0);var I=40075017,U=360*_/I,$=U/Math.cos(Math.PI/180*this.lat);return new lh(new Hc(this.lng-$,this.lat-U),new Hc(this.lng+$,this.lat+U))},Hc.convert=function(_){if(_ instanceof Hc)return _;if(Array.isArray(_)&&(_.length===2||_.length===3))return new Hc(Number(_[0]),Number(_[1]));if(!Array.isArray(_)&&typeof _=="object"&&_!==null)return new Hc(Number("lng"in _?_.lng:_.lon),Number(_.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var lee=2*Math.PI*see;function uee(y){return lee*Math.cos(y*Math.PI/180)}function cee(y){return(180+y)/360}function fee(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function hee(y,_){return y/uee(_)}function _tt(y){return y*360-180}function Aq(y){var _=180-y*360;return 360/Math.PI*Math.atan(Math.exp(_*Math.PI/180))-90}function xtt(y,_){return y*uee(Aq(_))}function btt(y){return 1/Math.cos(y*Math.PI/180)}var vb=function(_,I,U){U===void 0&&(U=0),this.x=+_,this.y=+I,this.z=+U};vb.fromLngLat=function(_,I){I===void 0&&(I=0);var U=Hc.convert(_);return new vb(cee(U.lng),fee(U.lat),hee(I,U.lat))},vb.prototype.toLngLat=function(){return new Hc(_tt(this.x),Aq(this.y))},vb.prototype.toAltitude=function(){return xtt(this.z,this.y)},vb.prototype.meterInMercatorCoordinateUnits=function(){return 1/lee*btt(Aq(this.y))};var pb=function(_,I,U){this.z=_,this.x=I,this.y=U,this.key=FS(0,_,_,I,U)};pb.prototype.equals=function(_){return this.z===_.z&&this.x===_.x&&this.y===_.y},pb.prototype.url=function(_,I){var U=ytt(this.x,this.y,this.z),$=wtt(this.z,this.x,this.y);return _[(this.x+this.y)%_.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(I==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",U)},pb.prototype.getTilePoint=function(_){var I=Math.pow(2,this.z);return new u((_.x*I-this.x)*Ei,(_.y*I-this.y)*Ei)},pb.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var dee=function(_,I){this.wrap=_,this.canonical=I,this.key=FS(_,I.z,I.z,I.x,I.y)},uh=function(_,I,U,$,oe){this.overscaledZ=_,this.wrap=I,this.canonical=new pb(U,+$,+oe),this.key=FS(I,_,U,$,oe)};uh.prototype.equals=function(_){return this.overscaledZ===_.overscaledZ&&this.wrap===_.wrap&&this.canonical.equals(_.canonical)},uh.prototype.scaledTo=function(_){var I=this.canonical.z-_;return _>this.canonical.z?new uh(_,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uh(_,this.wrap,_,this.canonical.x>>I,this.canonical.y>>I)},uh.prototype.calculateScaledKey=function(_,I){var U=this.canonical.z-_;return _>this.canonical.z?FS(this.wrap*+I,_,this.canonical.z,this.canonical.x,this.canonical.y):FS(this.wrap*+I,_,_,this.canonical.x>>U,this.canonical.y>>U)},uh.prototype.isChildOf=function(_){if(_.wrap!==this.wrap)return!1;var I=this.canonical.z-_.canonical.z;return _.overscaledZ===0||_.overscaledZ>I&&_.canonical.y===this.canonical.y>>I},uh.prototype.children=function(_){if(this.overscaledZ>=_)return[new uh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,U=this.canonical.x*2,$=this.canonical.y*2;return[new uh(I,this.wrap,I,U,$),new uh(I,this.wrap,I,U+1,$),new uh(I,this.wrap,I,U,$+1),new uh(I,this.wrap,I,U+1,$+1)]},uh.prototype.isLessThan=function(_){return this.wrap<_.wrap?!0:this.wrap>_.wrap?!1:this.overscaledZ<_.overscaledZ?!0:this.overscaledZ>_.overscaledZ?!1:this.canonical.x<_.canonical.x?!0:this.canonical.x>_.canonical.x?!1:this.canonical.y<_.canonical.y},uh.prototype.wrapped=function(){return new uh(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},uh.prototype.unwrapTo=function(_){return new uh(this.overscaledZ,_,this.canonical.z,this.canonical.x,this.canonical.y)},uh.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},uh.prototype.toUnwrapped=function(){return new dee(this.wrap,this.canonical)},uh.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},uh.prototype.getTilePoint=function(_){return this.canonical.getTilePoint(new vb(_.x-this.wrap,_.y))};function FS(y,_,I,U,$){y*=2,y<0&&(y=y*-1-1);var oe=1<0;oe--)$=1<=this.dim+1||I<-1||I>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(I+1)*this.stride+(_+1)},wy.prototype._unpackMapbox=function(_,I,U){return(_*256*256+I*256+U)/10-1e4},wy.prototype._unpackTerrarium=function(_,I,U){return _*256+I+U/256-32768},wy.prototype.getPixels=function(){return new Eh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},wy.prototype.backfillBorder=function(_,I,U){if(this.dim!==_.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,oe=I*this.dim+this.dim,he=U*this.dim,De=U*this.dim+this.dim;switch(I){case-1:$=oe-1;break;case 1:oe=$+1;break}switch(U){case-1:he=De-1;break;case 1:De=he+1;break}for(var it=-I*this.dim,yt=-U*this.dim,Lt=he;Lt=0&&sr[3]>=0&&it.insert(De,sr[0],sr[1],sr[2],sr[3])}},Ty.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new mg.VectorTile(new Xa(this.rawTileData)).layers,this.sourceLayerCoder=new d6(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Ty.prototype.query=function(_,I,U,$){var oe=this;this.loadVTLayers();for(var he=_.params||{},De=Ei/_.tileSize/_.scale,it=xe(he.filter),yt=_.queryGeometry,Lt=_.queryPadding*De,sr=pee(yt),gr=this.grid.query(sr.minX-Lt,sr.minY-Lt,sr.maxX+Lt,sr.maxY+Lt),hr=pee(_.cameraQueryGeometry),Rr=this.grid3D.query(hr.minX-Lt,hr.minY-Lt,hr.maxX+Lt,hr.maxY+Lt,function(Xn,ga,ha,eo){return mp(_.cameraQueryGeometry,Xn-Lt,ga-Lt,ha+Lt,eo+Lt)}),ni=0,ji=Rr;ni$)oe=!1;else if(!I)oe=!0;else if(this.expirationTime=Ha.maxzoom)&&Ha.visibility!=="none"){h(jn,this.zoom,ir);var vo=Hi[Ha.id]=Ha.createBucket({index:Ri.bucketLayerIDs.length,layers:jn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ba,sourceID:this.source});vo.populate(ua,en,this.tileID.canonical),Ri.bucketLayerIDs.push(jn.map(function(ki){return ki.id}))}}}}var Gn,Ct,Sr,Jr,hi=i.mapObject(en.glyphDependencies,function(ki){return Object.keys(ki).map(Number)});Object.keys(hi).length?wr.send("getGlyphs",{uid:this.uid,stacks:hi},function(ki,_n){Gn||(Gn=ki,Ct=_n,En.call(ti))}):Ct={};var hn=Object.keys(en.iconDependencies);hn.length?wr.send("getImages",{icons:hn,source:this.source,tileID:this.tileID,type:"icons"},function(ki,_n){Gn||(Gn=ki,Sr=_n,En.call(ti))}):Sr={};var Sn=Object.keys(en.patternDependencies);Sn.length?wr.send("getImages",{icons:Sn,source:this.source,tileID:this.tileID,type:"patterns"},function(ki,_n){Gn||(Gn=ki,Jr=_n,En.call(ti))}):Jr={},En.call(this);function En(){if(Gn)return Xr(Gn);if(Ct&&Sr&&Jr){var ki=new c(Ct),_n=new i.ImageAtlas(Sr,Jr);for(var ya in Hi){var ea=Hi[ya];ea instanceof i.SymbolBucket?(h(ea.layers,this.zoom,ir),i.performSymbolLayout(ea,Ct,ki.positions,Sr,_n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):ea.hasPattern&&(ea instanceof i.LineBucket||ea instanceof i.FillBucket||ea instanceof i.FillExtrusionBucket)&&(h(ea.layers,this.zoom,ir),ea.addFeatures(en,this.tileID.canonical,_n.patternPositions))}this.status="done",Xr(null,{buckets:i.values(Hi).filter(function(Ma){return!Ma.isEmpty()}),featureIndex:Ri,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ki.image,imageAtlas:_n,glyphMap:this.returnDependencies?Ct:null,iconMap:this.returnDependencies?Sr:null,glyphPositions:this.returnDependencies?ki.positions:null})}}};function h(Gt,wt,tr){for(var ir=new i.EvaluationParameters(wt),wr=0,Xr=Gt;wr=0!=!!wt&&Gt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(wt){this._feature=wt,this.extent=i.EXTENT,this.type=wt.type,this.properties=wt.tags,"id"in wt&&!isNaN(wt.id)&&(this.id=parseInt(wt.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var wt=[],tr=0,ir=this._feature.geometry;tr>31}function Ce(Gt,wt){for(var tr=Gt.loadGeometry(),ir=Gt.type,wr=0,Xr=0,ti=tr.length,$r=0;$r>1;Se(Gt,wt,ti,ir,wr,Xr%2),ie(Gt,wt,tr,ir,ti-1,Xr+1),ie(Gt,wt,tr,ti+1,wr,Xr+1)}}function Se(Gt,wt,tr,ir,wr,Xr){for(;wr>ir;){if(wr-ir>600){var ti=wr-ir+1,$r=tr-ir+1,Ri=Math.log(ti),Hi=.5*Math.exp(2*Ri/3),en=.5*Math.sqrt(Ri*Hi*(ti-Hi)/ti)*($r-ti/2<0?-1:1),fn=Math.max(ir,Math.floor(tr-$r*Hi/ti+en)),yn=Math.min(wr,Math.floor(tr+(ti-$r)*Hi/ti+en));Se(Gt,wt,tr,fn,yn,Xr)}var Mn=wt[2*tr+Xr],Ba=ir,ua=wr;for(ke(Gt,wt,ir,tr),wt[2*wr+Xr]>Mn&&ke(Gt,wt,ir,wr);BaMn;)ua--}wt[2*ir+Xr]===Mn?ke(Gt,wt,ir,ua):(ua++,ke(Gt,wt,ua,wr)),ua<=tr&&(ir=ua+1),tr<=ua&&(wr=ua-1)}}function ke(Gt,wt,tr,ir){be(Gt,tr,ir),be(wt,2*tr,2*ir),be(wt,2*tr+1,2*ir+1)}function be(Gt,wt,tr){var ir=Gt[wt];Gt[wt]=Gt[tr],Gt[tr]=ir}function Be(Gt,wt,tr,ir,wr,Xr,ti){for(var $r=[0,Gt.length-1,0],Ri=[],Hi,en;$r.length;){var fn=$r.pop(),yn=$r.pop(),Mn=$r.pop();if(yn-Mn<=ti){for(var Ba=Mn;Ba<=yn;Ba++)Hi=wt[2*Ba],en=wt[2*Ba+1],Hi>=tr&&Hi<=wr&&en>=ir&&en<=Xr&&Ri.push(Gt[Ba]);continue}var ua=Math.floor((Mn+yn)/2);Hi=wt[2*ua],en=wt[2*ua+1],Hi>=tr&&Hi<=wr&&en>=ir&&en<=Xr&&Ri.push(Gt[ua]);var ma=(fn+1)%2;(fn===0?tr<=Hi:ir<=en)&&($r.push(Mn),$r.push(ua-1),$r.push(ma)),(fn===0?wr>=Hi:Xr>=en)&&($r.push(ua+1),$r.push(yn),$r.push(ma))}return Ri}function Le(Gt,wt,tr,ir,wr,Xr){for(var ti=[0,Gt.length-1,0],$r=[],Ri=wr*wr;ti.length;){var Hi=ti.pop(),en=ti.pop(),fn=ti.pop();if(en-fn<=Xr){for(var yn=fn;yn<=en;yn++)me(wt[2*yn],wt[2*yn+1],tr,ir)<=Ri&&$r.push(Gt[yn]);continue}var Mn=Math.floor((fn+en)/2),Ba=wt[2*Mn],ua=wt[2*Mn+1];me(Ba,ua,tr,ir)<=Ri&&$r.push(Gt[Mn]);var ma=(Hi+1)%2;(Hi===0?tr-wr<=Ba:ir-wr<=ua)&&(ti.push(fn),ti.push(Mn-1),ti.push(ma)),(Hi===0?tr+wr>=Ba:ir+wr>=ua)&&(ti.push(Mn+1),ti.push(en),ti.push(ma))}return $r}function me(Gt,wt,tr,ir){var wr=Gt-tr,Xr=wt-ir;return wr*wr+Xr*Xr}var Pe=function(Gt){return Gt[0]},ce=function(Gt){return Gt[1]},He=function(wt,tr,ir,wr,Xr){tr===void 0&&(tr=Pe),ir===void 0&&(ir=ce),wr===void 0&&(wr=64),Xr===void 0&&(Xr=Float64Array),this.nodeSize=wr,this.points=wt;for(var ti=wt.length<65536?Uint16Array:Uint32Array,$r=this.ids=new ti(wt.length),Ri=this.coords=new Xr(wt.length*2),Hi=0;Hi=wr;en--){var fn=+Date.now();Ri=this._cluster(Ri,en),this.trees[en]=new He(Ri,Ae,rt,ti,Float32Array),ir&&console.log("z%d: %d clusters in %dms",en,Ri.length,+Date.now()-fn)}return ir&&console.timeEnd("total time"),this},mt.prototype.getClusters=function(wt,tr){var ir=((wt[0]+180)%360+360)%360-180,wr=Math.max(-90,Math.min(90,wt[1])),Xr=wt[2]===180?180:((wt[2]+180)%360+360)%360-180,ti=Math.max(-90,Math.min(90,wt[3]));if(wt[2]-wt[0]>=360)ir=-180,Xr=180;else if(ir>Xr){var $r=this.getClusters([ir,wr,180,ti],tr),Ri=this.getClusters([-180,wr,Xr,ti],tr);return $r.concat(Ri)}for(var Hi=this.trees[this._limitZoom(tr)],en=Hi.range(Vt(ir),rr(ti),Vt(Xr),rr(wr)),fn=[],yn=0,Mn=en;yntr&&(ua+=Xo.numPoints||1)}if(ua>=Ri){for(var da=fn.x*Ba,jn=fn.y*Ba,Ha=$r&&Ba>1?this._map(fn,!0):null,vo=(en<<5)+(tr+1)+this.points.length,Gn=0,Ct=Mn;Gn1)for(var hn=0,Sn=Mn;hn>5},mt.prototype._getOriginZoom=function(wt){return(wt-this.points.length)%32},mt.prototype._map=function(wt,tr){if(wt.numPoints)return tr?Ue({},wt.properties):wt.properties;var ir=this.points[wt.index].properties,wr=this.options.map(ir);return tr&&wr===ir?Ue({},wr):wr};function Ht(Gt,wt,tr,ir,wr){return{x:Gt,y:wt,zoom:1/0,id:tr,parentId:-1,numPoints:ir,properties:wr}}function at(Gt,wt){var tr=Gt.geometry.coordinates,ir=tr[0],wr=tr[1];return{x:Vt(ir),y:rr(wr),zoom:1/0,index:wt,parentId:-1}}function ct(Gt){return{type:"Feature",id:Gt.id,properties:ar(Gt),geometry:{type:"Point",coordinates:[tt(Gt.x),je(Gt.y)]}}}function ar(Gt){var wt=Gt.numPoints,tr=wt>=1e4?Math.round(wt/1e3)+"k":wt>=1e3?Math.round(wt/100)/10+"k":wt;return Ue(Ue({},Gt.properties),{cluster:!0,cluster_id:Gt.id,point_count:wt,point_count_abbreviated:tr})}function Vt(Gt){return Gt/360+.5}function rr(Gt){var wt=Math.sin(Gt*Math.PI/180),tr=.5-.25*Math.log((1+wt)/(1-wt))/Math.PI;return tr<0?0:tr>1?1:tr}function tt(Gt){return(Gt-.5)*360}function je(Gt){var wt=(180-Gt*360)*Math.PI/180;return 360*Math.atan(Math.exp(wt))/Math.PI-90}function Ue(Gt,wt){for(var tr in wt)Gt[tr]=wt[tr];return Gt}function Ae(Gt){return Gt.x}function rt(Gt){return Gt.y}function St(Gt,wt,tr,ir){for(var wr=ir,Xr=tr-wt>>1,ti=tr-wt,$r,Ri=Gt[wt],Hi=Gt[wt+1],en=Gt[tr],fn=Gt[tr+1],yn=wt+3;ynwr)$r=yn,wr=Mn;else if(Mn===wr){var Ba=Math.abs(yn-Xr);Bair&&($r-wt>3&&St(Gt,wt,$r,ir),Gt[$r+2]=wr,tr-$r>3&&St(Gt,$r,tr,ir))}function Tt(Gt,wt,tr,ir,wr,Xr){var ti=wr-tr,$r=Xr-ir;if(ti!==0||$r!==0){var Ri=((Gt-tr)*ti+(wt-ir)*$r)/(ti*ti+$r*$r);Ri>1?(tr=wr,ir=Xr):Ri>0&&(tr+=ti*Ri,ir+=$r*Ri)}return ti=Gt-tr,$r=wt-ir,ti*ti+$r*$r}function dt(Gt,wt,tr,ir){var wr={id:typeof Gt=="undefined"?null:Gt,type:wt,geometry:tr,tags:ir,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Et(wr),wr}function Et(Gt){var wt=Gt.geometry,tr=Gt.type;if(tr==="Point"||tr==="MultiPoint"||tr==="LineString")pt(Gt,wt);else if(tr==="Polygon"||tr==="MultiLineString")for(var ir=0;ir0&&(ir?ti+=(wr*Hi-Ri*Xr)/2:ti+=Math.sqrt(Math.pow(Ri-wr,2)+Math.pow(Hi-Xr,2))),wr=Ri,Xr=Hi}var en=wt.length-3;wt[2]=1,St(wt,0,en,tr),wt[en+2]=1,wt.size=Math.abs(ti),wt.start=0,wt.end=wt.size}function ei(Gt,wt,tr,ir){for(var wr=0;wr1?1:tr}function gt(Gt,wt,tr,ir,wr,Xr,ti,$r){if(tr/=wt,ir/=wt,Xr>=tr&&ti=ir)return null;for(var Ri=[],Hi=0;Hi=tr&&Ba=ir)continue;var ua=[];if(yn==="Point"||yn==="MultiPoint")Ge(fn,ua,tr,ir,wr);else if(yn==="LineString")Je(fn,ua,tr,ir,wr,!1,$r.lineMetrics);else if(yn==="MultiLineString")et(fn,ua,tr,ir,wr,!1);else if(yn==="Polygon")et(fn,ua,tr,ir,wr,!0);else if(yn==="MultiPolygon")for(var ma=0;ma=tr&&ti<=ir&&(wt.push(Gt[Xr]),wt.push(Gt[Xr+1]),wt.push(Gt[Xr+2]))}}function Je(Gt,wt,tr,ir,wr,Xr,ti){for(var $r=We(Gt),Ri=wr===0?At:Kt,Hi=Gt.start,en,fn,yn=0;yntr&&(fn=Ri($r,Mn,Ba,ma,Wa,tr),ti&&($r.start=Hi+en*fn)):za>ir?Xo=tr&&(fn=Ri($r,Mn,Ba,ma,Wa,tr),da=!0),Xo>ir&&za<=ir&&(fn=Ri($r,Mn,Ba,ma,Wa,ir),da=!0),!Xr&&da&&(ti&&($r.end=Hi+en*fn),wt.push($r),$r=We(Gt)),ti&&(Hi+=en)}var jn=Gt.length-3;Mn=Gt[jn],Ba=Gt[jn+1],ua=Gt[jn+2],za=wr===0?Mn:Ba,za>=tr&&za<=ir&&xt($r,Mn,Ba,ua),jn=$r.length-3,Xr&&jn>=3&&($r[jn]!==$r[0]||$r[jn+1]!==$r[1])&&xt($r,$r[0],$r[1],$r[2]),$r.length&&wt.push($r)}function We(Gt){var wt=[];return wt.size=Gt.size,wt.start=Gt.start,wt.end=Gt.end,wt}function et(Gt,wt,tr,ir,wr,Xr){for(var ti=0;titi.maxX&&(ti.maxX=en),fn>ti.maxY&&(ti.maxY=fn)}return ti}function Pi(Gt,wt,tr,ir){var wr=wt.geometry,Xr=wt.type,ti=[];if(Xr==="Point"||Xr==="MultiPoint")for(var $r=0;$r0&&wt.size<(wr?ti:ir)){tr.numPoints+=wt.length/3;return}for(var $r=[],Ri=0;Riti)&&(tr.numSimplified++,$r.push(wt[Ri]),$r.push(wt[Ri+1])),tr.numPoints++;wr&&mi($r,Xr),Gt.push($r)}function mi(Gt,wt){for(var tr=0,ir=0,wr=Gt.length,Xr=wr-2;ir0===wt)for(ir=0,wr=Gt.length;ir24)throw new Error("maxZoom should be in the 0-24 range");if(wt.promoteId&&wt.generateId)throw new Error("promoteId and generateId cannot be used together.");var ir=jt(Gt,wt);this.tiles={},this.tileCoords=[],tr&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",wt.indexMaxZoom,wt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ir=Qt(ir,wt),ir.length&&this.splitTile(ir,0,0,0),tr&&(ir.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Fn.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Fn.prototype.splitTile=function(Gt,wt,tr,ir,wr,Xr,ti){for(var $r=[Gt,wt,tr,ir],Ri=this.options,Hi=Ri.debug;$r.length;){ir=$r.pop(),tr=$r.pop(),wt=$r.pop(),Gt=$r.pop();var en=1<1&&console.time("creation"),yn=this.tiles[fn]=_i(Gt,wt,tr,ir,Ri),this.tileCoords.push({z:wt,x:tr,y:ir}),Hi)){Hi>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",wt,tr,ir,yn.numFeatures,yn.numPoints,yn.numSimplified),console.timeEnd("creation"));var Mn="z"+wt;this.stats[Mn]=(this.stats[Mn]||0)+1,this.total++}if(yn.source=Gt,wr){if(wt===Ri.maxZoom||wt===wr)continue;var Ba=1<1&&console.time("clipping");var ua=.5*Ri.buffer/Ri.extent,ma=.5-ua,Wa=.5+ua,za=1+ua,Xo,da,jn,Ha,vo,Gn;Xo=da=jn=Ha=null,vo=gt(Gt,en,tr-ua,tr+Wa,0,yn.minX,yn.maxX,Ri),Gn=gt(Gt,en,tr+ma,tr+za,0,yn.minX,yn.maxX,Ri),Gt=null,vo&&(Xo=gt(vo,en,ir-ua,ir+Wa,1,yn.minY,yn.maxY,Ri),da=gt(vo,en,ir+ma,ir+za,1,yn.minY,yn.maxY,Ri),vo=null),Gn&&(jn=gt(Gn,en,ir-ua,ir+Wa,1,yn.minY,yn.maxY,Ri),Ha=gt(Gn,en,ir+ma,ir+za,1,yn.minY,yn.maxY,Ri),Gn=null),Hi>1&&console.timeEnd("clipping"),$r.push(Xo||[],wt+1,tr*2,ir*2),$r.push(da||[],wt+1,tr*2,ir*2+1),$r.push(jn||[],wt+1,tr*2+1,ir*2),$r.push(Ha||[],wt+1,tr*2+1,ir*2+1)}}},Fn.prototype.getTile=function(Gt,wt,tr){var ir=this.options,wr=ir.extent,Xr=ir.debug;if(Gt<0||Gt>24)return null;var ti=1<1&&console.log("drilling down to z%d-%d-%d",Gt,wt,tr);for(var Ri=Gt,Hi=wt,en=tr,fn;!fn&&Ri>0;)Ri--,Hi=Math.floor(Hi/2),en=Math.floor(en/2),fn=this.tiles[An(Ri,Hi,en)];return!fn||!fn.source?null:(Xr>1&&console.log("found parent tile z%d-%d-%d",Ri,Hi,en),Xr>1&&console.time("drilling down"),this.splitTile(fn.source,Ri,Hi,en,Gt,wt,tr),Xr>1&&console.timeEnd("drilling down"),this.tiles[$r]?Ir(this.tiles[$r],wr):null)};function An(Gt,wt,tr){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function m(Y,D,J){var O,K,de,ne=i.browser.devicePixelRatio>1?"@2x":"",we=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(Yt,cr){we=null,de||(de=Yt,O=cr,ht())}),Oe=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(Yt,cr){Oe=null,de||(de=Yt,K=cr,ht())});function ht(){if(de)J(de);else if(O&&K){var Yt=i.browser.getImageData(K),cr={};for(var Nt in O){var Ne=O[Nt],$e=Ne.width,st=Ne.height,It=Ne.x,Bt=Ne.y,Ft=Ne.sdf,Ut=Ne.pixelRatio,zt=Ne.stretchX,_t=Ne.stretchY,Dt=Ne.content,vt=new i.RGBAImage({width:$e,height:st});i.RGBAImage.copy(Yt,vt,{x:It,y:Bt},{x:0,y:0},{width:$e,height:st}),cr[Nt]={data:vt,pixelRatio:Ut,sdf:Ft,stretchX:zt,stretchY:_t,content:Dt}}J(null,cr)}}return{cancel:function(){we&&(we.cancel(),we=null),Oe&&(Oe.cancel(),Oe=null)}}}function b(Y){var D=Y.userImage;if(D&&D.render){var J=D.render();if(J)return Y.data.replace(new Uint8Array(D.data.buffer)),!0}return!1}var p=1,k=(function(Y){function D(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.isLoaded=function(){return this.loaded},D.prototype.setLoaded=function(O){if(this.loaded!==O&&(this.loaded=O,O)){for(var K=0,de=this.requestors;K=0?1.2:1))}C.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var D=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),O=0;O65535){Yt(new Error("glyphs > 65535 not supported"));return}if(Ne.ranges[st]){Yt(null,{stack:cr,id:Nt,glyph:$e});return}var It=Ne.requests[st];It||(It=Ne.requests[st]=[],P.loadGlyphRange(cr,st,O.url,O.requestManager,function(Bt,Ft){if(Ft){for(var Ut in Ft)O._doesCharSupportLocalGlyph(+Ut)||(Ne.glyphs[+Ut]=Ft[+Ut]);Ne.ranges[st]=!0}for(var zt=0,_t=It;zt<_t.length;zt+=1){var Dt=_t[zt];Dt(Bt,Ft)}delete Ne.requests[st]})),It.push(function(Bt,Ft){Bt?Yt(Bt):Ft&&Yt(null,{stack:cr,id:Nt,glyph:Ft[Nt]||null})})},function(ht,Yt){if(ht)J(ht);else if(Yt){for(var cr={},Nt=0,Ne=Yt;Nt1&&(ht=D[++Oe]);var cr=Math.abs(Yt-ht.left),Nt=Math.abs(Yt-ht.right),Ne=Math.min(cr,Nt),$e=void 0,st=de/O*(K+1);if(ht.isDash){var It=K-Math.abs(st);$e=Math.sqrt(Ne*Ne+It*It)}else $e=K-Math.sqrt(Ne*Ne+st*st);this.data[we+Yt]=Math.max(0,Math.min(255,$e+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var O=D[J],K=D[J+1];O.zeroLength?D.splice(J,1):K&&K.isDash===O.isDash&&(K.left=O.left,D.splice(J,1))}var de=D[0],ne=D[D.length-1];de.isDash===ne.isDash&&(de.left=ne.left-this.width,ne.right=de.right+this.width);for(var we=this.width*this.nextRow,Oe=0,ht=D[Oe],Yt=0;Yt1&&(ht=D[++Oe]);var cr=Math.abs(Yt-ht.left),Nt=Math.abs(Yt-ht.right),Ne=Math.min(cr,Nt),$e=ht.isDash?Ne:-Ne;this.data[we+Yt]=Math.max(0,Math.min(255,$e+128))}},G.prototype.addDash=function(D,J){var O=J?7:0,K=2*O+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var de=0,ne=0;ne=O.minX&&D.x=O.minY&&D.y0&&(Yt[new i.OverscaledTileID(O.overscaledZ,we,K.z,ne,K.y-1).key]={backfilled:!1},Yt[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},Yt[new i.OverscaledTileID(O.overscaledZ,ht,K.z,Oe,K.y-1).key]={backfilled:!1}),K.y+10&&(de.resourceTiming=O._resourceTiming,O._resourceTiming=[]),O.fire(new i.Event("data",de))})},D.prototype.onAdd=function(O){this.map=O,this.load()},D.prototype.setData=function(O){var K=this;return this._data=O,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(de){if(de){K.fire(new i.ErrorEvent(de));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},D.prototype.getClusterExpansionZoom=function(O,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:O,source:this.id},K),this},D.prototype.getClusterChildren=function(O,K){return this.actor.send("geojson.getClusterChildren",{clusterId:O,source:this.id},K),this},D.prototype.getClusterLeaves=function(O,K,de,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:O,limit:K,offset:de},ne),this},D.prototype._updateWorkerData=function(O){var K=this;this._loaded=!1;var de=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(de.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),de.request.collectResourceTiming=this._collectResourceTiming):de.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",de,function(we,Oe){K._removed||Oe&&Oe.abandoned||(K._loaded=!0,Oe&&Oe.resourceTiming&&Oe.resourceTiming[K.id]&&(K._resourceTiming=Oe.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:de.source},null),O(we))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(O,K){var de=this,ne=O.actor?"reloadTile":"loadTile";O.actor=this.actor;var we={type:this.type,uid:O.uid,tileID:O.tileID,zoom:O.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};O.request=this.actor.send(ne,we,function(Oe,ht){return delete O.request,O.unloadVectorData(),O.aborted?K(null):Oe?K(Oe):(O.loadVectorData(ht,de.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(O){O.request&&(O.request.cancel(),delete O.request),O.aborted=!0},D.prototype.unloadTile=function(O){O.unloadVectorData(),this.actor.send("removeTile",{uid:O.uid,type:this.type,source:this.id})},D.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},D.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},D.prototype.hasTransition=function(){return!1},D})(i.Evented),Ee=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ce=(function(Y){function D(J,O,K,de){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=O.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=O}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(O,K){var de=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,we){de._loaded=!0,ne?de.fire(new i.ErrorEvent(ne)):we&&(de.image=we,O&&(de.coordinates=O),K&&K(),de._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(O){var K=this;return!this.image||!O.url?this:(this.options.url=O.url,this.load(O.coordinates,function(){K.texture=null}),this)},D.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},D.prototype.onAdd=function(O){this.map=O,this.load()},D.prototype.setCoordinates=function(O){var K=this;this.coordinates=O;var de=O.map(i.MercatorCoordinate.fromLngLat);this.tileID=ge(de),this.minzoom=this.maxzoom=this.tileID.z;var ne=de.map(function(we){return K.tileID.getTilePoint(we)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Ee.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(O,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.loadTile=function(O,K){this.tileID&&this.tileID.equals(O.tileID.canonical)?(this.tiles[String(O.tileID.wrap)]=O,O.buckets={},K(null)):(O.state="errored",K(null))},D.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return!1},D})(i.Evented);function ge(Y){for(var D=1/0,J=1/0,O=-1/0,K=-1/0,de=0,ne=Y;deK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=O}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(O){this.map||(this.map=O,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Ee.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(O,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this.video&&!this.video.paused},D})(Ce),Se=(function(Y){function D(J,O,K,de){Y.call(this,J,O,K,de),O.coordinates?(!Array.isArray(O.coordinates)||O.coordinates.length!==4||O.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(we){return typeof we!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),O.animate&&typeof O.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),O.canvas?typeof O.canvas!="string"&&!(O.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=O,this.animate=O.animate!==void 0?O.animate:!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},D.prototype.getCanvas=function(){return this.canvas},D.prototype.onAdd=function(O){this.map=O,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var O=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,O=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,O=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,de=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Ee.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(O||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,de.RGBA,{premultiply:!0});for(var ne in this.tiles){var we=this.tiles[ne];we.state!=="loaded"&&(we.state="loaded",we.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this._playing},D.prototype._hasInvalidDimensions=function(){for(var O=0,K=[this.canvas.width,this.canvas.height];Othis.max){var we=this._getAndRemoveByKey(this.order[0]);we&&this.onRemove(we)}return this},at.prototype.has=function(D){return D.wrapped().key in this.data},at.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},at.prototype._getAndRemoveByKey=function(D){var J=this.data[D].shift();return J.timeout&&clearTimeout(J.timeout),this.data[D].length===0&&delete this.data[D],this.order.splice(this.order.indexOf(D),1),J.value},at.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},at.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},at.prototype.remove=function(D,J){if(!this.has(D))return this;var O=D.wrapped().key,K=J===void 0?0:this.data[O].indexOf(J),de=this.data[O][K];return this.data[O].splice(K,1),de.timeout&&clearTimeout(de.timeout),this.data[O].length===0&&delete this.data[O],this.onRemove(de.value),this.order.splice(this.order.indexOf(O),1),this},at.prototype.setMaxSize=function(D){for(this.max=D;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},at.prototype.filter=function(D){var J=[];for(var O in this.data)for(var K=0,de=this.data[O];K1||(Math.abs(cr)>1&&(Math.abs(cr+Ne)===1?cr+=Ne:Math.abs(cr-Ne)===1&&(cr-=Ne)),!(!Yt.dem||!ht.dem)&&(ht.dem.backfillBorder(Yt.dem,cr,Nt),ht.neighboringTiles&&ht.neighboringTiles[$e]&&(ht.neighboringTiles[$e].backfilled=!0)))}},D.prototype.getTile=function(O){return this.getTileByID(O.key)},D.prototype.getTileByID=function(O){return this._tiles[O]},D.prototype._retainLoadedChildren=function(O,K,de,ne){for(var we in this._tiles){var Oe=this._tiles[we];if(!(ne[we]||!Oe.hasData()||Oe.tileID.overscaledZ<=K||Oe.tileID.overscaledZ>de)){for(var ht=Oe.tileID;Oe&&Oe.tileID.overscaledZ>K+1;){var Yt=Oe.tileID.scaledTo(Oe.tileID.overscaledZ-1);Oe=this._tiles[Yt.key],Oe&&Oe.hasData()&&(ht=Yt)}for(var cr=ht;cr.overscaledZ>K;)if(cr=cr.scaledTo(cr.overscaledZ-1),O[cr.key]){ne[ht.key]=ht;break}}}},D.prototype.findLoadedParent=function(O,K){if(O.key in this._loadedParentTiles){var de=this._loadedParentTiles[O.key];return de&&de.tileID.overscaledZ>=K?de:null}for(var ne=O.overscaledZ-1;ne>=K;ne--){var we=O.scaledTo(ne),Oe=this._getLoadedTile(we);if(Oe)return Oe}},D.prototype._getLoadedTile=function(O){var K=this._tiles[O.key];if(K&&K.hasData())return K;var de=this._cache.getByKey(O.wrapped().key);return de},D.prototype.updateCacheSize=function(O){var K=Math.ceil(O.width/this._source.tileSize)+1,de=Math.ceil(O.height/this._source.tileSize)+1,ne=K*de,we=5,Oe=Math.floor(ne*we),ht=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Oe):Oe;this._cache.setMaxSize(ht)},D.prototype.handleWrapJump=function(O){var K=this._prevLng===void 0?O:this._prevLng,de=O-K,ne=de/360,we=Math.round(ne);if(this._prevLng=O,we){var Oe={};for(var ht in this._tiles){var Yt=this._tiles[ht];Yt.tileID=Yt.tileID.unwrapTo(Yt.tileID.wrap+we),Oe[Yt.tileID.key]=Yt}this._tiles=Oe;for(var cr in this._timers)clearTimeout(this._timers[cr]),delete this._timers[cr];for(var Nt in this._tiles){var Ne=this._tiles[Nt];this._setTileReloadTimer(Nt,Ne)}}},D.prototype.update=function(O){var K=this;if(this.transform=O,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(O),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var de;this.used?this._source.tileID?de=O.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Br){return new i.OverscaledTileID(Br.canonical.z,Br.wrap,Br.canonical.z,Br.canonical.x,Br.canonical.y)}):(de=O.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(de=de.filter(function(Br){return K._source.hasTile(Br)}))):de=[];var ne=O.coveringZoomLevel(this._source),we=Math.max(ne-D.maxOverzooming,this._source.minzoom),Oe=Math.max(ne+D.maxUnderzooming,this._source.minzoom),ht=this._updateRetainedTiles(de,ne);if(Ri(this._source.type)){for(var Yt={},cr={},Nt=Object.keys(ht),Ne=0,$e=Nt;Ne<$e.length;Ne+=1){var st=$e[Ne],It=ht[st],Bt=this._tiles[st];if(!(!Bt||Bt.fadeEndTime&&Bt.fadeEndTime<=i.browser.now())){var Ft=this.findLoadedParent(It,we);Ft&&(this._addTile(Ft.tileID),Yt[Ft.tileID.key]=Ft.tileID),cr[st]=It}}this._retainLoadedChildren(cr,ne,Oe,ht);for(var Ut in Yt)ht[Ut]||(this._coveredTiles[Ut]=!0,ht[Ut]=Yt[Ut])}for(var zt in ht)this._tiles[zt].clearFadeHold();for(var _t=i.keysDifference(this._tiles,ht),Dt=0,vt=_t;Dtthis._source.maxzoom){var Ft=It.children(this._source.maxzoom)[0],Ut=this.getTile(Ft);if(Ut&&Ut.hasData()){de[Ft.key]=Ft;continue}}else{var zt=It.children(this._source.maxzoom);if(de[zt[0].key]&&de[zt[1].key]&&de[zt[2].key]&&de[zt[3].key])continue}for(var _t=Bt.wasRequested(),Dt=It.overscaledZ-1;Dt>=we;--Dt){var vt=It.scaledTo(Dt);if(ne[vt.key]||(ne[vt.key]=!0,Bt=this.getTile(vt),!Bt&&_t&&(Bt=this._addTile(vt)),Bt&&(de[vt.key]=vt,_t=Bt.wasRequested(),Bt.hasData())))break}}}return de},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var O in this._tiles){for(var K=[],de=void 0,ne=this._tiles[O].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){de=this._loadedParentTiles[ne.key];break}K.push(ne.key);var we=ne.scaledTo(ne.overscaledZ-1);if(de=this._getLoadedTile(we),de)break;ne=we}for(var Oe=0,ht=K;Oe0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},D.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var O in this._tiles)this._removeTile(O);this._cache.reset()},D.prototype.tilesIn=function(O,K,de){var ne=this,we=[],Oe=this.transform;if(!Oe)return we;for(var ht=de?Oe.getCameraQueryGeometry(O):O,Yt=O.map(function(Dt){return Oe.pointCoordinate(Dt)}),cr=ht.map(function(Dt){return Oe.pointCoordinate(Dt)}),Nt=this.getIds(),Ne=1/0,$e=1/0,st=-1/0,It=-1/0,Bt=0,Ft=cr;Bt=0&&Di[1].y+Br>=0){var ci=Yt.map(function(gn){return lr.getTilePoint(gn)}),bi=cr.map(function(gn){return lr.getTilePoint(gn)});we.push({tile:vt,tileID:lr,queryGeometry:ci,cameraQueryGeometry:bi,scale:_r})}}},_t=0;_t=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(O,K,de){O=O||"_geojsonTileLayer",this._state.updateState(O,K,de)},D.prototype.removeFeatureState=function(O,K,de){O=O||"_geojsonTileLayer",this._state.removeFeatureState(O,K,de)},D.prototype.getFeatureState=function(O,K){return O=O||"_geojsonTileLayer",this._state.getState(O,K)},D.prototype.setDependencies=function(O,K,de){var ne=this._tiles[O];ne&&ne.setDependencies(K,de)},D.prototype.reloadTilesForDependencies=function(O,K){for(var de in this._tiles){var ne=this._tiles[de];ne.hasDependency(O,K)&&this._reloadTile(de,"reloading")}this._cache.filter(function(we){return!we.hasDependency(O,K)})},D})(i.Evented);ti.maxOverzooming=10,ti.maxUnderzooming=3;function $r(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),O=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||O-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function Ri(Y){return Y==="raster"||Y==="image"||Y==="video"}function Hi(){return new i.window.Worker(io.workerUrl)}var en="mapboxgl_preloaded_worker_pool",fn=function(){this.active={}};fn.prototype.acquire=function(D){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/we:0;return this.points[de].mult(1-Oe).add(this.points[J].mult(Oe))};var ki=function(D,J,O){var K=this.boxCells=[],de=this.circleCells=[];this.xCellCount=Math.ceil(D/O),this.yCellCount=Math.ceil(J/O);for(var ne=0;nethis.width||K<0||J>this.height)return de?!1:[];var we=[];if(D<=0&&J<=0&&this.width<=O&&this.height<=K){if(de)return!0;for(var Oe=0;Oe0:we}},ki.prototype._queryCircle=function(D,J,O,K,de){var ne=D-O,we=D+O,Oe=J-O,ht=J+O;if(we<0||ne>this.width||ht<0||Oe>this.height)return K?!1:[];var Yt=[],cr={hitTest:K,circle:{x:D,y:J,radius:O},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Oe,we,ht,this._queryCellCircle,Yt,cr,de),K?Yt.length>0:Yt},ki.prototype.query=function(D,J,O,K,de){return this._query(D,J,O,K,!1,de)},ki.prototype.hitTest=function(D,J,O,K,de){return this._query(D,J,O,K,!0,de)},ki.prototype.hitTestCircle=function(D,J,O,K){return this._queryCircle(D,J,O,!0,K)},ki.prototype._queryCell=function(D,J,O,K,de,ne,we,Oe){var ht=we.seenUids,Yt=this.boxCells[de];if(Yt!==null)for(var cr=this.bboxes,Nt=0,Ne=Yt;Nt=cr[st+0]&&K>=cr[st+1]&&(!Oe||Oe(this.boxKeys[$e]))){if(we.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[$e],x1:cr[st],y1:cr[st+1],x2:cr[st+2],y2:cr[st+3]})}}}var It=this.circleCells[de];if(It!==null)for(var Bt=this.circles,Ft=0,Ut=It;Ftwe*we+Oe*Oe},ki.prototype._circleAndRectCollide=function(D,J,O,K,de,ne,we){var Oe=(ne-K)/2,ht=Math.abs(D-(K+Oe));if(ht>Oe+O)return!1;var Yt=(we-de)/2,cr=Math.abs(J-(de+Yt));if(cr>Yt+O)return!1;if(ht<=Oe||cr<=Yt)return!0;var Nt=ht-Oe,Ne=cr-Yt;return Nt*Nt+Ne*Ne<=O*O};function _n(Y,D,J,O,K){var de=i.create();return D?(i.scale(de,de,[1/K,1/K,1]),J||i.rotateZ(de,de,O.angle)):i.multiply(de,O.labelPlaneMatrix,Y),de}function ya(Y,D,J,O,K){if(D){var de=i.clone(Y);return i.scale(de,de,[K,K,1]),J||i.rotateZ(de,de,-O.angle),de}else return O.glCoordMatrix}function ea(Y,D){var J=[Y.x,Y.y,0,1];Fl(J,J,D);var O=J[3];return{point:new i.Point(J[0]/O,J[1]/O),signedDistanceFromCamera:O}}function Ma(Y,D){return .5+.5*(Y/D)}function _o(Y,D){var J=Y[0]/Y[3],O=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&O>=-D[1]&&O<=D[1];return K}function No(Y,D,J,O,K,de,ne,we){var Oe=O?Y.textSizeData:Y.iconSizeData,ht=i.evaluateSizeForZoom(Oe,J.transform.zoom),Yt=[256/J.width*2+1,256/J.height*2+1],cr=O?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;cr.clear();for(var Nt=Y.lineVertexArray,Ne=O?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,$e=J.transform.width/J.transform.height,st=!1,It=0;Itde)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function ko(Y,D,J,O,K,de,ne,we,Oe,ht,Yt,cr,Nt,Ne){var $e=D/24,st=Y.lineOffsetX*$e,It=Y.lineOffsetY*$e,Bt;if(Y.numGlyphs>1){var Ft=Y.glyphStartIndex+Y.numGlyphs,Ut=Y.lineStartIndex,zt=Y.lineStartIndex+Y.lineLength,_t=po($e,we,st,It,J,Yt,cr,Y,Oe,de,Nt);if(!_t)return{notEnoughRoom:!0};var Dt=ea(_t.first.point,ne).point,vt=ea(_t.last.point,ne).point;if(O&&!J){var lr=Lo(Y.writingMode,Dt,vt,Ne);if(lr)return lr}Bt=[_t.first];for(var _r=Y.glyphStartIndex+1;_r0?bi.point:Ds(cr,ci,Br,1,K),tn=Lo(Y.writingMode,Br,gn,Ne);if(tn)return tn}var Ei=Fs($e*we.getoffsetX(Y.glyphStartIndex),st,It,J,Yt,cr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Oe,de,Nt);if(!Ei)return{notEnoughRoom:!0};Bt=[Ei]}for(var Oi=0,Gi=Bt;Oi0?1:-1,$e=0;O&&(Ne*=-1,$e=Math.PI),Ne<0&&($e+=Math.PI);for(var st=Ne>0?we+ne:we+ne+1,It=K,Bt=K,Ft=0,Ut=0,zt=Math.abs(Nt),_t=[];Ft+Ut<=zt;){if(st+=Ne,st=Oe)return null;if(Bt=It,_t.push(It),It=cr[st],It===void 0){var Dt=new i.Point(ht.getx(st),ht.gety(st)),vt=ea(Dt,Yt);if(vt.signedDistanceFromCamera>0)It=cr[st]=vt.point;else{var lr=st-Ne,_r=Ft===0?de:new i.Point(ht.getx(lr),ht.gety(lr));It=Ds(_r,Dt,Bt,zt-Ft+1,Yt)}}Ft+=Ut,Ut=Bt.dist(It)}var Br=(zt-Ft)/Ut,Di=It.sub(Bt),ci=Di.mult(Br)._add(Bt);ci._add(Di._unit()._perp()._mult(J*Ne));var bi=$e+Math.atan2(It.y-Bt.y,It.x-Bt.x);return _t.push(ci),{point:ci,angle:bi,path:_t}}var ll=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ul(Y,D){for(var J=0;J=1;on--)Gi.push(Ei.path[on]);for(var zn=1;zn0){for(var so=Gi[0].clone(),Yo=Gi[0].clone(),ms=1;ms=bi.x&&Yo.x<=gn.x&&so.y>=bi.y&&Yo.y<=gn.y?ts=[Gi]:Yo.xgn.x||Yo.ygn.y?ts=[]:ts=i.clipLine([Gi],bi.x,bi.y,gn.x,gn.y)}for(var ou=0,Cv=ts;ou=this.screenRightBoundary||Kthis.screenBottomBoundary},rl.prototype.isInsideGrid=function(D,J,O,K){return O>=0&&D=0&&J0){var zt;return this.prevPlacement&&this.prevPlacement.variableOffsets[Nt.crossTileID]&&this.prevPlacement.placements[Nt.crossTileID]&&this.prevPlacement.placements[Nt.crossTileID].text&&(zt=this.prevPlacement.variableOffsets[Nt.crossTileID].anchor),this.variableOffsets[Nt.crossTileID]={textOffset:It,width:O,height:K,anchor:D,textBoxScale:de,prevAnchor:zt},this.markUsedJustification(Ne,D,Nt,$e),Ne.allowVerticalPlacement&&(this.markUsedOrientation(Ne,$e,Nt),this.placedOrientations[Nt.crossTileID]=$e),{shift:Bt,placedGlyphBoxes:Ft}}},bs.prototype.placeLayerBucketPart=function(D,J,O){var K=this,de=D.parameters,ne=de.bucket,we=de.layout,Oe=de.posMatrix,ht=de.textLabelPlaneMatrix,Yt=de.labelToScreenMatrix,cr=de.textPixelRatio,Nt=de.holdingForFade,Ne=de.collisionBoxArray,$e=de.partiallyEvaluatedTextSize,st=de.collisionGroup,It=we.get("text-optional"),Bt=we.get("icon-optional"),Ft=we.get("text-allow-overlap"),Ut=we.get("icon-allow-overlap"),zt=we.get("text-rotation-alignment")==="map",_t=we.get("text-pitch-alignment")==="map",Dt=we.get("icon-text-fit")!=="none",vt=we.get("symbol-z-order")==="viewport-y",lr=Ft&&(Ut||!ne.hasIconData()||Bt),_r=Ut&&(Ft||!ne.hasTextData()||It);!ne.collisionArrays&&Ne&&ne.deserializeCollisionBoxes(Ne);var Br=function(Ei,Oi){if(!J[Ei.crossTileID]){if(Nt){K.placements[Ei.crossTileID]=new zs(!1,!1,!1);return}var Gi=!1,on=!1,zn=!0,Ja=null,co={box:null,offscreen:null},ts={box:null,offscreen:null},so=null,Yo=null,ms=null,ou=0,Cv=0,Lv=0;Oi.textFeatureIndex?ou=Oi.textFeatureIndex:Ei.useRuntimeCollisionCircles&&(ou=Ei.featureIndex),Oi.verticalTextFeatureIndex&&(Cv=Oi.verticalTextFeatureIndex);var wd=Oi.textBox;if(wd){var Kv=function(vc){var tu=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!vc&&K.prevPlacement){var Sd=K.prevPlacement.placedOrientations[Ei.crossTileID];Sd&&(K.placedOrientations[Ei.crossTileID]=Sd,tu=Sd,K.markUsedOrientation(ne,tu,Ei))}return tu},hg=function(vc,tu){if(ne.allowVerticalPlacement&&Ei.numVerticalGlyphVertices>0&&Oi.verticalTextBox)for(var Sd=0,gy=ne.writingModes;Sd0&&(Vd=Vd.filter(function(vc){return vc!==Ad.anchor}),Vd.unshift(Ad.anchor))}var Pv=function(vc,tu,Sd){for(var gy=vc.x2-vc.x1,P1=vc.y2-vc.y1,wu=Ei.textBoxScale,Kx=Dt&&!Ut?tu:null,lm={box:[],offscreen:!1},Uw=Ft?Vd.length*2:Vd.length,Rv=0;Rv=Vd.length,Jx=K.attemptAnchorPlacement(um,vc,gy,P1,wu,zt,_t,cr,Oe,st,Vw,Ei,ne,Sd,Kx);if(Jx&&(lm=Jx.placedGlyphBoxes,lm&&lm.box&&lm.box.length)){Gi=!0,Ja=Jx.shift;break}}return lm},Jv=function(){return Pv(wd,Oi.iconBox,i.WritingMode.horizontal)},Iv=function(){var vc=Oi.verticalTextBox,tu=co&&co.box&&co.box.length;return ne.allowVerticalPlacement&&!tu&&Ei.numVerticalGlyphVertices>0&&vc?Pv(vc,Oi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};hg(Jv,Iv),co&&(Gi=co.box,zn=co.offscreen);var dy=Kv(co&&co.box);if(!Gi&&K.prevPlacement){var dg=K.prevPlacement.variableOffsets[Ei.crossTileID];dg&&(K.variableOffsets[Ei.crossTileID]=dg,K.markUsedJustification(ne,dg.anchor,Ei,dy))}}else{var gp=function(vc,tu){var Sd=K.collisionIndex.placeCollisionBox(vc,Ft,cr,Oe,st.predicate);return Sd&&Sd.box&&Sd.box.length&&(K.markUsedOrientation(ne,tu,Ei),K.placedOrientations[Ei.crossTileID]=tu),Sd},Td=function(){return gp(wd,i.WritingMode.horizontal)},mp=function(){var vc=Oi.verticalTextBox;return ne.allowVerticalPlacement&&Ei.numVerticalGlyphVertices>0&&vc?gp(vc,i.WritingMode.vertical):{box:null,offscreen:null}};hg(Td,mp),Kv(co&&co.box&&co.box.length)}}if(so=co,Gi=so&&so.box&&so.box.length>0,zn=so&&so.offscreen,Ei.useRuntimeCollisionCircles){var oh=ne.text.placedSymbolArray.get(Ei.centerJustifiedTextSymbolIndex),vg=i.evaluateSizeForFeature(ne.textSizeData,$e,oh),vy=we.get("text-padding"),Zh=Ei.collisionCircleDiameter;Yo=K.collisionIndex.placeCollisionCircles(Ft,oh,ne.lineVertexArray,ne.glyphOffsetArray,vg,Oe,ht,Yt,O,_t,st.predicate,Zh,vy),Gi=Ft||Yo.circles.length>0&&!Yo.collisionDetected,zn=zn&&Yo.offscreen}if(Oi.iconFeatureIndex&&(Lv=Oi.iconFeatureIndex),Oi.iconBox){var am=function(vc){var tu=Dt&&Ja?nc(vc,Ja.x,Ja.y,zt,_t,K.transform.angle):vc;return K.collisionIndex.placeCollisionBox(tu,Ut,cr,Oe,st.predicate)};ts&&ts.box&&ts.box.length&&Oi.verticalIconBox?(ms=am(Oi.verticalIconBox),on=ms.box.length>0):(ms=am(Oi.iconBox),on=ms.box.length>0),zn=zn&&ms.offscreen}var C1=It||Ei.numHorizontalGlyphVertices===0&&Ei.numVerticalGlyphVertices===0,L1=Bt||Ei.numIconVertices===0;if(!C1&&!L1?on=Gi=on&&Gi:L1?C1||(on=on&&Gi):Gi=on&&Gi,Gi&&so&&so.box&&(ts&&ts.box&&Cv?K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,Cv,st.ID):K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,st.ID)),on&&ms&&K.collisionIndex.insertCollisionBox(ms.box,we.get("icon-ignore-placement"),ne.bucketInstanceId,Lv,st.ID),Yo&&(Gi&&K.collisionIndex.insertCollisionCircles(Yo.circles,we.get("text-ignore-placement"),ne.bucketInstanceId,ou,st.ID),O)){var py=ne.bucketInstanceId,om=K.collisionCircleArrays[py];om===void 0&&(om=K.collisionCircleArrays[py]=new Io);for(var sm=0;sm=0;--ci){var bi=Di[ci];Br(ne.symbolInstances.get(bi),ne.collisionArrays[bi])}else for(var gn=D.symbolInstanceStart;gn=0&&(ne>=0&&Yt!==ne?D.text.placedSymbolArray.get(Yt).crossTileID=0:D.text.placedSymbolArray.get(Yt).crossTileID=O.crossTileID)}},bs.prototype.markUsedOrientation=function(D,J,O){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,de=J===i.WritingMode.vertical?J:0,ne=[O.leftJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.rightJustifiedTextSymbolIndex],we=0,Oe=ne;we0||_t>0,Br=Ut.numIconVertices>0,Di=K.placedOrientations[Ut.crossTileID],ci=Di===i.WritingMode.vertical,bi=Di===i.WritingMode.horizontal||Di===i.WritingMode.horizontalOnly;if(_r){var gn=ac(lr.text),tn=ci?oa:gn;$e(D.text,zt,tn);var Ei=bi?oa:gn;$e(D.text,_t,Ei);var Oi=lr.text.isHidden();[Ut.rightJustifiedTextSymbolIndex,Ut.centerJustifiedTextSymbolIndex,Ut.leftJustifiedTextSymbolIndex].forEach(function(Lv){Lv>=0&&(D.text.placedSymbolArray.get(Lv).hidden=Oi||ci?1:0)}),Ut.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(Ut.verticalPlacedTextSymbolIndex).hidden=Oi||bi?1:0);var Gi=K.variableOffsets[Ut.crossTileID];Gi&&K.markUsedJustification(D,Gi.anchor,Ut,Di);var on=K.placedOrientations[Ut.crossTileID];on&&(K.markUsedJustification(D,"left",Ut,on),K.markUsedOrientation(D,on,Ut))}if(Br){var zn=ac(lr.icon),Ja=!(Nt&&Ut.verticalPlacedIconSymbolIndex&&ci);if(Ut.placedIconSymbolIndex>=0){var co=Ja?zn:oa;$e(D.icon,Ut.numIconVertices,co),D.icon.placedSymbolArray.get(Ut.placedIconSymbolIndex).hidden=lr.icon.isHidden()}if(Ut.verticalPlacedIconSymbolIndex>=0){var ts=Ja?oa:zn;$e(D.icon,Ut.numVerticalIconVertices,ts),D.icon.placedSymbolArray.get(Ut.verticalPlacedIconSymbolIndex).hidden=lr.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var so=D.collisionArrays[Ft];if(so){var Yo=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var ms=!0;if(ht){var ou=K.variableOffsets[Dt];ou?(Yo=Su(ou.anchor,ou.width,ou.height,ou.textOffset,ou.textBoxScale),Yt&&Yo._rotate(cr?K.transform.angle:-K.transform.angle)):ms=!1}so.textBox&&Rn(D.textCollisionBox.collisionVertexArray,lr.text.placed,!ms||ci,Yo.x,Yo.y),so.verticalTextBox&&Rn(D.textCollisionBox.collisionVertexArray,lr.text.placed,!ms||bi,Yo.x,Yo.y)}var Cv=!!(!bi&&so.verticalIconBox);so.iconBox&&Rn(D.iconCollisionBox.collisionVertexArray,lr.icon.placed,Cv,Nt?Yo.x:0,Nt?Yo.y:0),so.verticalIconBox&&Rn(D.iconCollisionBox.collisionVertexArray,lr.icon.placed,!Cv,Nt?Yo.x:0,Nt?Yo.y:0)}}},It=0;ItD},bs.prototype.setStale=function(){this.stale=!0};function Rn(Y,D,J,O,K){Y.emplaceBack(D?1:0,J?1:0,O||0,K||0),Y.emplaceBack(D?1:0,J?1:0,O||0,K||0),Y.emplaceBack(D?1:0,J?1:0,O||0,K||0),Y.emplaceBack(D?1:0,J?1:0,O||0,K||0)}var _a=Math.pow(2,25),Vu=Math.pow(2,24),zl=Math.pow(2,17),xo=Math.pow(2,16),Kl=Math.pow(2,9),Ns=Math.pow(2,8),Hl=Math.pow(2,1);function ac(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var D=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*_a+D*Vu+J*zl+D*xo+J*Kl+D*Ns+J*Hl+D}var oa=0,qo=function(D){this._sortAcrossTiles=D.layout.get("symbol-z-order")!=="viewport-y"&&D.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};qo.prototype.continuePlacement=function(D,J,O,K,de){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var we=D[this._currentPlacementIndex],Oe=J[we],ht=this.placement.collisionIndex.transform.zoom;if(Oe.type==="symbol"&&(!Oe.minzoom||Oe.minzoom<=ht)&&(!Oe.maxzoom||Oe.maxzoom>ht)){this._inProgressLayer||(this._inProgressLayer=new qo(Oe));var Yt=this._inProgressLayer.continuePlacement(O[Oe.source],this.placement,this._showCollisionBoxes,Oe,ne);if(Yt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Oo.prototype.commit=function(D){return this.placement.commit(D),this.placement};var ql=512/i.EXTENT/2,Pc=function(D,J,O){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=O;for(var K=0;KD.overscaledZ)for(var ht in Oe){var Yt=Oe[ht];Yt.tileID.isChildOf(D)&&Yt.findMatches(J.symbolInstances,D,ne)}else{var cr=D.scaledTo(Number(we)),Nt=Oe[cr.key];Nt&&Nt.findMatches(J.symbolInstances,D,ne)}}for(var Ne=0;Ne0)throw new Error("Unimplemented: "+ne.map(function(we){return we.command}).join(", ")+".");return de.forEach(function(we){we.command!=="setTransition"&&K[we.command].apply(K,we.args)}),this.stylesheet=O,!0},D.prototype.addImage=function(O,K){if(this.getImage(O))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(O,K),this._afterImageUpdated(O)},D.prototype.updateImage=function(O,K){this.imageManager.updateImage(O,K)},D.prototype.getImage=function(O){return this.imageManager.getImage(O)},D.prototype.removeImage=function(O){if(!this.getImage(O))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(O),this._afterImageUpdated(O)},D.prototype._afterImageUpdated=function(O){this._availableImages=this.imageManager.listImages(),this._changedImages[O]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},D.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},D.prototype.addSource=function(O,K,de){var ne=this;if(de===void 0&&(de={}),this._checkLoaded(),this.sourceCaches[O]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var we=["vector","raster","geojson","video","image"],Oe=we.indexOf(K.type)>=0;if(!(Oe&&this._validate(i.validateStyle.source,"sources."+O,K,null,de))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var ht=this.sourceCaches[O]=new ti(O,K,this.dispatcher);ht.style=this,ht.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:ht.serialize(),sourceId:O}}),ht.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(O){if(this._checkLoaded(),this.sourceCaches[O]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===O)return this.fire(new i.ErrorEvent(new Error('Source "'+O+'" cannot be removed while layer "'+K+'" is using it.')));var de=this.sourceCaches[O];delete this.sourceCaches[O],delete this._updatedSources[O],de.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:O})),de.setEventedParent(null),de.clearTiles(),de.onRemove&&de.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(O,K){this._checkLoaded();var de=this.sourceCaches[O].getSource();de.setData(K),this._changed=!0},D.prototype.getSource=function(O){return this.sourceCaches[O]&&this.sourceCaches[O].getSource()},D.prototype.addLayer=function(O,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=O.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var we;if(O.type==="custom"){if(pl(this,i.validateCustomStyleLayer(O)))return;we=i.createStyleLayer(O)}else{if(typeof O.source=="object"&&(this.addSource(ne,O.source),O=i.clone$1(O),O=i.extend(O,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,O,{arrayIndex:-1},de))return;we=i.createStyleLayer(O),this._validateLayer(we),we.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[we.id]=we.serialize()}var Oe=K?this._order.indexOf(K):this._order.length;if(K&&Oe===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Oe,0,ne),this._layerOrderChanged=!0,this._layers[ne]=we,this._removedLayers[ne]&&we.source&&we.type!=="custom"){var ht=this._removedLayers[ne];delete this._removedLayers[ne],ht.type!==we.type?this._updatedSources[we.source]="clear":(this._updatedSources[we.source]="reload",this.sourceCaches[we.source].pause())}this._updateLayer(we),we.onAdd&&we.onAdd(this.map)},D.prototype.moveLayer=function(O,K){this._checkLoaded(),this._changed=!0;var de=this._layers[O];if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be moved.")));return}if(O!==K){var ne=this._order.indexOf(O);this._order.splice(ne,1);var we=K?this._order.indexOf(K):this._order.length;if(K&&we===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(we,0,O),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(O){this._checkLoaded();var K=this._layers[O];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var de=this._order.indexOf(O);this._order.splice(de,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[O]=K,delete this._layers[O],delete this._serializedLayers[O],delete this._updatedLayers[O],delete this._updatedPaintProps[O],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(O){return this._layers[O]},D.prototype.hasLayer=function(O){return O in this._layers},D.prototype.setLayerZoomRange=function(O,K,de){this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===de||(K!=null&&(ne.minzoom=K),de!=null&&(ne.maxzoom=de),this._updateLayer(ne))},D.prototype.setFilter=function(O,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,de)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},D.prototype.getFilter=function(O){return i.clone$1(this.getLayer(O).filter)},D.prototype.setLayoutProperty=function(O,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(O);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(we.getLayoutProperty(K),de)||(we.setLayoutProperty(K,de,ne),this._updateLayer(we))},D.prototype.getLayoutProperty=function(O,K){var de=this.getLayer(O);if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style.")));return}return de.getLayoutProperty(K)},D.prototype.setPaintProperty=function(O,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(O);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(we.getPaintProperty(K),de)){var Oe=we.setPaintProperty(K,de,ne);Oe&&this._updateLayer(we),this._changed=!0,this._updatedPaintProps[O]=!0}},D.prototype.getPaintProperty=function(O,K){return this.getLayer(O).getPaintProperty(K)},D.prototype.setFeatureState=function(O,K){this._checkLoaded();var de=O.source,ne=O.sourceLayer,we=this.sourceCaches[de];if(we===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var Oe=we.getSource().type;if(Oe==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Oe==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),we.setFeatureState(ne,O.id,K)},D.prototype.removeFeatureState=function(O,K){this._checkLoaded();var de=O.source,ne=this.sourceCaches[de];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var we=ne.getSource().type,Oe=we==="vector"?O.sourceLayer:void 0;if(we==="vector"&&!Oe){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof O.id!="string"&&typeof O.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Oe,O.id,K)},D.prototype.getFeatureState=function(O){this._checkLoaded();var K=O.source,de=O.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var we=ne.getSource().type;if(we==="vector"&&!de){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(de,O.id)},D.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},D.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(O){return O.serialize()}),layers:this._serializeLayers(this._order)},function(O){return O!==void 0})},D.prototype._updateLayer=function(O){this._updatedLayers[O.id]=!0,O.source&&!this._updatedSources[O.source]&&this.sourceCaches[O.source].getSource().type!=="raster"&&(this._updatedSources[O.source]="reload",this.sourceCaches[O.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(O){for(var K=this,de=function(bi){return K._layers[bi].type==="fill-extrusion"},ne={},we=[],Oe=this._order.length-1;Oe>=0;Oe--){var ht=this._order[Oe];if(de(ht)){ne[ht]=Oe;for(var Yt=0,cr=O;Yt=0;Ft--){var Ut=this._order[Ft];if(de(Ut))for(var zt=we.length-1;zt>=0;zt--){var _t=we[zt].feature;if(ne[_t.layer.id] 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`,Bl=`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`,Ol=`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -3014,7 +3014,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Nl=` +}`,Bl=` #define scale 0.015873016 #define LINE_DISTANCE_SCALE 2.0 attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; @@ -3160,7 +3160,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,js=Us(Cf,sc),Eu=Us(jh,Lf),Dc=Us(cs,af),ks=Us(Gf,$l),bc=Us(fl,lc),hu=Us(Fu,Es),_u=Us(Hs,Go),nl=Us(ps,uc),nh=Us(xl,Gu),Mh=Us(Os,od),zu=Us(Po,sd),Fc=Us(Ko,Pa),wc=Us(of,Hu),bd=Us(bl,Hf),xf=Us(Ic,yf),Pf=Us(Bl,Ah),qu=Us(Qf,_f),bf=Us(Yc,eh),jl=Us(th,ju),uf=Us(jf,cc),Xh=Us(sf,Nl),If=Us(Kc,Rc),Cs=Us(gs,Wf),du=Us(Wh,rh),ku=Us(lf,Sh),Xf=Us(Mu,ih);function Us(Y,D){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,O=D.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),de=D.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=de?de.concat(K):K,we={};return Y=Y.replace(J,function(Oe,ht,Yt,cr,Nt){return we[Nt]=!0,ht==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,js=Us(Cf,sc),Eu=Us(jh,Lf),Dc=Us(cs,af),ks=Us(Gf,$l),bc=Us(fl,lc),hu=Us(Fu,Es),_u=Us(Hs,Go),il=Us(ps,uc),nh=Us(bl,Gu),Mh=Us(Os,od),zu=Us(Po,sd),Fc=Us(Ko,Pa),wc=Us(of,Hu),bd=Us(wl,Hf),xf=Us(Ic,yf),Pf=Us(Ol,Ah),qu=Us(Qf,_f),bf=Us(Yc,eh),jl=Us(th,ju),uf=Us(jf,cc),Xh=Us(sf,Bl),If=Us(Kc,Rc),Cs=Us(gs,Wf),du=Us(Wh,rh),ku=Us(lf,Sh),Xf=Us(Mu,ih);function Us(Y,D){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,O=D.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),de=D.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=de?de.concat(K):K,we={};return Y=Y.replace(J,function(Oe,ht,Yt,cr,Nt){return we[Nt]=!0,ht==="define"?` #ifndef HAS_UNIFORM_u_`+Nt+` varying `+Yt+" "+cr+" "+Nt+`; #else @@ -3209,9 +3209,9 @@ uniform `+Yt+" "+cr+" u_"+Nt+`; #else `+Yt+" "+cr+" "+Nt+" = u_"+Nt+`; #endif -`}),{fragmentSource:Y,vertexSource:D,staticAttributes:O,staticUniforms:ne}}var wf=Object.freeze({__proto__:null,prelude:js,background:Eu,backgroundPattern:Dc,circle:ks,clippingMask:bc,heatmap:hu,heatmapTexture:_u,collisionBox:nl,collisionCircle:nh,debug:Mh,fill:zu,fillOutline:Fc,fillOutlinePattern:wc,fillPattern:bd,fillExtrusion:xf,fillExtrusionPattern:Pf,hillshadePrepare:qu,hillshade:bf,line:jl,lineGradient:uf,linePattern:Xh,lineSDF:If,raster:Cs,symbolIcon:du,symbolSDF:ku,symbolTextAndIcon:Xf}),zc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};zc.prototype.bind=function(D,J,O,K,de,ne,we,Oe){this.context=D;for(var ht=this.boundPaintVertexBuffers.length!==K.length,Yt=0;!ht&&Yt>16,we>>16],u_pixel_coord_lower:[ne&65535,we&65535]}}function cf(Y,D,J,O){var K=J.imageManager.getPattern(Y.from.toString()),de=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),we=ne.width,Oe=ne.height,ht=Math.pow(2,O.tileID.overscaledZ),Yt=O.tileSize*Math.pow(2,J.transform.tileZoom)/ht,cr=Yt*(O.tileID.canonical.x+O.tileID.wrap*ht),Nt=Yt*O.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:de.tl,u_pattern_br_b:de.br,u_texsize:[we,Oe],u_mix:D.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:de.displaySize,u_scale_a:D.fromScale,u_scale_b:D.toScale,u_tile_units_to_pixels:1/As(O,1,J.transform.tileZoom),u_pixel_coord_upper:[cr>>16,Nt>>16],u_pixel_coord_lower:[cr&65535,Nt&65535]}}var Zf=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,D.u_height_factor),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},ah=function(Y,D,J,O){var K=D.style.light,de=K.properties.get("position"),ne=[de.x,de.y,de.z],we=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(we,-D.transform.angle),i.transformMat3(ne,ne,we);var Oe=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Oe.r,Oe.g,Oe.b],u_vertical_gradient:+J,u_opacity:O}},Zu=function(Y,D,J,O,K,de,ne){return i.extend(ah(Y,D,J,O),Xu(de,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},qc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Tc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world)}},vu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},Oc=function(Y){return{u_matrix:Y}},ff=function(Y,D,J,O){return i.extend(Oc(Y),Xu(J,D,O))},fc=function(Y,D){return{u_matrix:Y,u_world:D}},Bc=function(Y,D,J,O,K){return i.extend(ff(Y,D,J,O),{u_world:K})},kt=function(Y,D){return{u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,D.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Zt=function(Y,D,J,O){var K=Y.transform,de,ne;if(O.paint.get("circle-pitch-alignment")==="map"){var we=As(J,1,K.zoom);de=!0,ne=[we,we]}else de=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(O.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,O.paint.get("circle-translate"),O.paint.get("circle-translate-anchor")),u_pitch_with_map:+de,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},Er=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,D.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,D.u_overscale_factor)}},xr=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,D.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,D.u_viewport_size)}},Kr=function(Y,D,J){var O=As(J,1,D.zoom),K=Math.pow(2,D.zoom-J.tileID.overscaledZ),de=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:D.cameraToCenterDistance,u_pixels_to_tile_units:O,u_extrude_scale:[D.pixelsToGLUnits[0]/(O*K),D.pixelsToGLUnits[1]/(O*K)],u_overscale_factor:de}},Mi=function(Y,D,J){return{u_matrix:Y,u_inv_matrix:D,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Wi=function(Y,D){return{u_color:new i.UniformColor(Y,D.u_color),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_overlay:new i.Uniform1i(Y,D.u_overlay),u_overlay_scale:new i.Uniform1f(Y,D.u_overlay_scale)}},dn=function(Y,D,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:D,u_overlay:0,u_overlay_scale:J}},wn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},On=function(Y){return{u_matrix:Y}},Yi=function(Y,D){return{u_extrude_scale:new i.Uniform1f(Y,D.u_extrude_scale),u_intensity:new i.Uniform1f(Y,D.u_intensity),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},$i=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_color_ramp:new i.Uniform1i(Y,D.u_color_ramp),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},an=function(Y,D,J,O){return{u_matrix:Y,u_extrude_scale:As(D,1,J),u_intensity:O}},Fi=function(Y,D,J,O){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var de=Y.context.gl;return{u_matrix:K,u_world:[de.drawingBufferWidth,de.drawingBufferHeight],u_image:J,u_color_ramp:O,u_opacity:D.paint.get("heatmap-opacity")}},ta=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_latrange:new i.Uniform2f(Y,D.u_latrange),u_light:new i.Uniform2f(Y,D.u_light),u_shadow:new i.UniformColor(Y,D.u_shadow),u_highlight:new i.UniformColor(Y,D.u_highlight),u_accent:new i.UniformColor(Y,D.u_accent)}},Ca=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_dimension:new i.Uniform2f(Y,D.u_dimension),u_zoom:new i.Uniform1f(Y,D.u_zoom),u_unpack:new i.Uniform4f(Y,D.u_unpack)}},Ra=function(Y,D,J){var O=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),de=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var we=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(D.tileID.toUnwrapped(),we),u_image:0,u_latrange:Ua(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:O,u_highlight:K,u_accent:de}},La=function(Y,D){var J=D.stride,O=i.create();return i.ortho(O,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(O,O,[0,-i.EXTENT,0]),{u_matrix:O,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function Ua(Y,D){var J=Math.pow(2,D.canonical.z),O=D.canonical.y;return[new i.MercatorCoordinate(0,O/J).toLngLat().lat,new i.MercatorCoordinate(0,(O+1)/J).toLngLat().lat]}var Zn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels)}},Dn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_image:new i.Uniform1i(Y,D.u_image),u_image_height:new i.Uniform1f(Y,D.u_image_height)}},Ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,D.u_image),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},bo=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,D.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,D.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,D.u_sdfgamma),u_image:new i.Uniform1i(Y,D.u_image),u_tex_y_a:new i.Uniform1f(Y,D.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,D.u_tex_y_b),u_mix:new i.Uniform1f(Y,D.u_mix)}},Zo=function(Y,D,J){var O=Y.transform;return{u_matrix:ml(Y,D,J),u_ratio:1/As(D,1,O.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/O.pixelsToGLUnits[0],1/O.pixelsToGLUnits[1]]}},Ss=function(Y,D,J,O){return i.extend(Zo(Y,D,J),{u_image:0,u_image_height:O})},as=function(Y,D,J,O){var K=Y.transform,de=Ho(D,K);return{u_matrix:ml(Y,D,J),u_texsize:D.imageAtlasTexture.size,u_ratio:1/As(D,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[de,O.fromScale,O.toScale],u_fade:O.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},ws=function(Y,D,J,O,K){var de=Y.transform,ne=Y.lineAtlas,we=Ho(D,de),Oe=J.layout.get("line-cap")==="round",ht=ne.getDash(O.from,Oe),Yt=ne.getDash(O.to,Oe),cr=ht.width*K.fromScale,Nt=Yt.width*K.toScale;return i.extend(Zo(Y,D,J),{u_patternscale_a:[we/cr,-ht.height/2],u_patternscale_b:[we/Nt,-Yt.height/2],u_sdfgamma:ne.width/(Math.min(cr,Nt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:ht.y,u_tex_y_b:Yt.y,u_mix:K.t})};function Ho(Y,D){return 1/As(Y,1,D.tileZoom)}function ml(Y,D,J){return Y.translatePosMatrix(D.tileID.posMatrix,D,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Ws=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_tl_parent:new i.Uniform2f(Y,D.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,D.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,D.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,D.u_fade_t),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image0:new i.Uniform1i(Y,D.u_image0),u_image1:new i.Uniform1i(Y,D.u_image1),u_brightness_low:new i.Uniform1f(Y,D.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,D.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,D.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,D.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,D.u_spin_weights)}},Ls=function(Y,D,J,O,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:O.mix,u_opacity:O.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:ys(K.paint.get("raster-saturation")),u_contrast_factor:no(K.paint.get("raster-contrast")),u_spin_weights:va(K.paint.get("raster-hue-rotate"))}};function va(Y){Y*=Math.PI/180;var D=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*D-J+1)/3,(Math.sqrt(3)*D-J+1)/3]}function no(Y){return Y>0?1/(1-Y):1+Y}function ys(Y){return Y>0?1-1/(1.001-Y):-Y}var rs=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture)}},Ql=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},Cu=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texsize_icon:new i.Uniform2f(Y,D.u_texsize_icon),u_texture:new i.Uniform1i(Y,D.u_texture),u_texture_icon:new i.Uniform1i(Y,D.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},Yu=function(Y,D,J,O,K,de,ne,we,Oe,ht){var Yt=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:D?D.uSizeT:0,u_size:D?D.uSize:0,u_camera_to_center_distance:Yt.cameraToCenterDistance,u_pitch:Yt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Yt.width/Yt.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:de,u_label_plane_matrix:ne,u_coord_matrix:we,u_is_text:+Oe,u_pitch_with_map:+O,u_texsize:ht,u_texture:0}},Nc=function(Y,D,J,O,K,de,ne,we,Oe,ht,Yt){var cr=K.transform;return i.extend(Yu(Y,D,J,O,K,de,ne,we,Oe,ht),{u_gamma_scale:O?Math.cos(cr._pitch)*cr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Yt})},pu=function(Y,D,J,O,K,de,ne,we,Oe,ht){return i.extend(Nc(Y,D,J,O,K,de,ne,we,!0,Oe,!0),{u_texsize_icon:ht,u_texture_icon:1})},Uc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_color:new i.UniformColor(Y,D.u_color)}},xu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image:new i.Uniform1i(Y,D.u_image),u_pattern_tl_a:new i.Uniform2f(Y,D.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,D.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,D.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,D.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_mix:new i.Uniform1f(Y,D.u_mix),u_pattern_size_a:new i.Uniform2f(Y,D.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,D.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,D.u_scale_a),u_scale_b:new i.Uniform1f(Y,D.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,D.u_tile_units_to_pixels)}},Ac=function(Y,D,J){return{u_matrix:Y,u_opacity:D,u_color:J}},Va=function(Y,D,J,O,K,de){return i.extend(cf(O,de,J,K),{u_matrix:Y,u_opacity:D})},oo={fillExtrusion:Zf,fillExtrusionPattern:Wl,fill:qc,fillPattern:Tc,fillOutline:wl,fillOutlinePattern:vu,circle:kt,collisionBox:Er,collisionCircle:xr,debug:Wi,clippingMask:wn,heatmap:Yi,heatmapTexture:$i,hillshade:ta,hillshadePrepare:Ca,line:Zn,lineGradient:Dn,linePattern:Ka,lineSDF:bo,raster:Ws,symbolIcon:rs,symbolSDF:Ql,symbolTextAndIcon:Cu,background:Uc,backgroundPattern:xu},Vc;function hc(Y,D,J,O,K,de,ne){for(var we=Y.context,Oe=we.gl,ht=Y.useProgram("collisionBox"),Yt=[],cr=0,Nt=0,Ne=0;Ne0){var zt=i.create(),_t=Bt;i.mul(zt,It.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(zt,zt,It.placementViewportMatrix),Yt.push({circleArray:Ut,circleOffset:Nt,transform:_t,invTransform:zt}),cr+=Ut.length/4,Nt=cr}Ft&&ht.draw(we,Oe.LINES,An.disabled,Vi.disabled,Y.colorModeForRenderPass(),wr.disabled,Kr(Bt,Y.transform,st),J.id,Ft.layoutVertexBuffer,Ft.indexBuffer,Ft.segments,null,Y.transform.zoom,null,null,Ft.collisionVertexBuffer)}}if(!(!ne||!Yt.length)){var Dt=Y.useProgram("collisionCircle"),vt=new i.StructArrayLayout2f1f2i16;vt.resize(cr*4),vt._trim();for(var lr=0,_r=0,Br=Yt;_r=0&&($e[It.associatedIconIndex]={shiftedAnchor:bi,angle:gn})}}if(Yt){Ne.clear();for(var Ei=Y.icon.placedSymbolArray,Oi=0;Oi0){var ne=i.browser.now(),we=(ne-Y.timeAdded)/de,Oe=D?(ne-D.timeAdded)/de:-1,ht=J.getSource(),Yt=K.coveringZoomLevel({tileSize:ht.tileSize,roundZoom:ht.roundZoom}),cr=!D||Math.abs(D.tileID.overscaledZ-Yt)>Math.abs(Y.tileID.overscaledZ-Yt),Nt=cr&&Y.refreshedUponExpiration?1:i.clamp(cr?we:1-Oe,0,1);return Y.refreshedUponExpiration&&we>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-Nt}:{opacity:Nt,mix:0}}else return{opacity:1,mix:0}}function nr(Y,D,J){var O=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var de=Y.context,ne=de.gl,we=Y.transform,Oe=we.tileSize,ht=J.paint.get("background-pattern");if(!Y.isPatternMissing(ht)){var Yt=!ht&&O.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Yt){var cr=Vi.disabled,Nt=Y.depthModeForSublayer(0,Yt==="opaque"?An.ReadWrite:An.ReadOnly),Ne=Y.colorModeForRenderPass(),$e=Y.useProgram(ht?"backgroundPattern":"background"),st=we.coveringTiles({tileSize:Oe});ht&&(de.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var It=J.getCrossfadeParameters(),Bt=0,Ft=st;Bt "+J.overscaledZ);var Bt=It+" "+Ne+"kb";$a(Y,Bt),ne.draw(O,K.TRIANGLES,we,Oe,wt.alphaBlended,wr.disabled,dn(de,i.Color.transparent,st),Yt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function $a(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,O=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(D,5,5),K.strokeText(D,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(O.LINEAR,O.CLAMP_TO_EDGE)}function Co(Y,D,J){var O=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var de=K.prerender;de&&(Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),de.call(K,O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),O.setStencilMode(Vi.disabled);var ne=K.renderingMode==="3d"?new An(Y.context.gl.LEQUAL,An.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,An.ReadOnly);O.setDepthMode(ne),K.render(O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState(),O.bindFramebuffer.set(null)}}var Qa={symbol:w,circle:ut,heatmap:Mt,line:Cr,fill:ve,"fill-extrusion":Ie,hillshade:Qe,raster:qt,background:nr,debug:Aa,custom:Co},mo=function(D,J){this.context=new Xr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=ti.maxUnderzooming+ti.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Vf,this.gpuTimers={}};mo.prototype.resize=function(D,J){if(this.width=D*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var O=0,K=this.style._order;O256&&this.clearStencil(),O.setColorMode(wt.disabled),O.setDepthMode(An.disabled);var de=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,we=J;ne256&&this.clearStencil();var D=this.nextStencilID++,J=this.context.gl;return new Vi({func:J.NOTEQUAL,mask:255},D,255,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilModeForClipping=function(D){var J=this.context.gl;return new Vi({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilConfigForOverlap=function(D){var J,O=this.context.gl,K=D.sort(function(ht,Yt){return Yt.overscaledZ-ht.overscaledZ}),de=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-de+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var we={},Oe=0;Oe=0;this.currentLayer--){var zt=this.style._layers[K[this.currentLayer]],_t=de[zt.source],Dt=Oe[zt.source];this._renderTileClippingMasks(zt,Dt),this.renderLayer(this,_t,zt,Dt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},mo.prototype.isPatternMissing=function(D){if(!D)return!1;if(!D.from||!D.to)return!0;var J=this.imageManager.getPattern(D.from.toString()),O=this.imageManager.getPattern(D.to.toString());return!J||!O},mo.prototype.useProgram=function(D,J){this.cache=this.cache||{};var O=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[O]||(this.cache[O]=new Rf(this.context,D,wf[D],J,oo[D],this._showOverdrawInspector)),this.cache[O]},mo.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},mo.prototype.setBaseState=function(){var D=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(D.FUNC_ADD)},mo.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var D=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,D.RGBA)}},mo.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Bo=function(D,J){this.points=D,this.planes=J};Bo.fromInvProjectionMatrix=function(D,J,O){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],de=Math.pow(2,O),ne=K.map(function(ht){return i.transformMat4([],ht,D)}).map(function(ht){return i.scale$1([],ht,1/ht[3]/J*de)}),we=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Oe=we.map(function(ht){var Yt=i.sub([],ne[ht[0]],ne[ht[1]]),cr=i.sub([],ne[ht[2]],ne[ht[1]]),Nt=i.normalize([],i.cross([],Yt,cr)),Ne=-i.dot(Nt,ne[ht[1]]);return Nt.concat(Ne)});return new Bo(ne,Oe)};var Ps=function(D,J){this.min=D,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Ps.prototype.quadrant=function(D){for(var J=[D%2===0,D<2],O=i.clone$2(this.min),K=i.clone$2(this.max),de=0;de=0;if(ne===0)return 0;ne!==J.length&&(O=!1)}if(O)return 2;for(var Oe=0;Oe<3;Oe++){for(var ht=Number.MAX_VALUE,Yt=-Number.MAX_VALUE,cr=0;crthis.max[Oe]-this.min[Oe])return 0}return 1};var Ts=function(D,J,O,K){if(D===void 0&&(D=0),J===void 0&&(J=0),O===void 0&&(O=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(O)||O<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=D,this.bottom=J,this.left=O,this.right=K};Ts.prototype.interpolate=function(D,J,O){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,O)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,O)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,O)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,O)),this},Ts.prototype.getCenter=function(D,J){var O=i.clamp((this.left+D-this.right)/2,0,D),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(O,K)},Ts.prototype.equals=function(D){return this.top===D.top&&this.bottom===D.bottom&&this.left===D.left&&this.right===D.right},Ts.prototype.clone=function(){return new Ts(this.top,this.bottom,this.left,this.right)},Ts.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wo=function(D,J,O,K,de){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=de===void 0?!0:de,this._minZoom=D||0,this._maxZoom=J||22,this._minPitch=O==null?0:O,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Ts,this._posMatrixCache={},this._alignedPosMatrixCache={}},To={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wo.prototype.clone=function(){var D=new wo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return D.tileSize=this.tileSize,D.latRange=this.latRange,D.width=this.width,D.height=this.height,D._center=this._center,D.zoom=this.zoom,D.angle=this.angle,D._fov=this._fov,D._pitch=this._pitch,D._unmodified=this._unmodified,D._edgeInsets=this._edgeInsets.clone(),D._calcMatrices(),D},To.minZoom.get=function(){return this._minZoom},To.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},To.maxZoom.get=function(){return this._maxZoom},To.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},To.minPitch.get=function(){return this._minPitch},To.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},To.maxPitch.get=function(){return this._maxPitch},To.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},To.renderWorldCopies.get=function(){return this._renderWorldCopies},To.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},To.worldSize.get=function(){return this.tileSize*this.scale},To.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},To.size.get=function(){return new i.Point(this.width,this.height)},To.bearing.get=function(){return-this.angle/Math.PI*180},To.bearing.set=function(Y){var D=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==D&&(this._unmodified=!1,this.angle=D,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},To.pitch.get=function(){return this._pitch/Math.PI*180},To.pitch.set=function(Y){var D=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==D&&(this._unmodified=!1,this._pitch=D,this._calcMatrices())},To.fov.get=function(){return this._fov/Math.PI*180},To.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},To.zoom.get=function(){return this._zoom},To.zoom.set=function(Y){var D=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==D&&(this._unmodified=!1,this._zoom=D,this.scale=this.zoomScale(D),this.tileZoom=Math.floor(D),this.zoomFraction=D-this.tileZoom,this._constrain(),this._calcMatrices())},To.center.get=function(){return this._center},To.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},To.padding.get=function(){return this._edgeInsets.toJSON()},To.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},To.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wo.prototype.isPaddingEqual=function(D){return this._edgeInsets.equals(D)},wo.prototype.interpolatePadding=function(D,J,O){this._unmodified=!1,this._edgeInsets.interpolate(D,J,O),this._constrain(),this._calcMatrices()},wo.prototype.coveringZoomLevel=function(D){var J=(D.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/D.tileSize));return Math.max(0,J)},wo.prototype.getVisibleUnwrappedCoordinates=function(D){var J=[new i.UnwrappedTileID(0,D)];if(this._renderWorldCopies)for(var O=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),de=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),we=Math.floor(Math.min(O.x,K.x,de.x,ne.x)),Oe=Math.floor(Math.max(O.x,K.x,de.x,ne.x)),ht=1,Yt=we-ht;Yt<=Oe+ht;Yt++)Yt!==0&&J.push(new i.UnwrappedTileID(Yt,D));return J},wo.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),O=J;if(D.minzoom!==void 0&&JD.maxzoom&&(J=D.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),de=Math.pow(2,J),ne=[de*K.x,de*K.y,0],we=Bo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Oe=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Oe=J);var ht=3,Yt=function(ci){return{aabb:new Ps([ci*de,0,0],[(ci+1)*de,de,0]),zoom:0,x:0,y:0,wrap:ci,fullyVisible:!1}},cr=[],Nt=[],Ne=J,$e=D.reparseOverscaled?O:J;if(this._renderWorldCopies)for(var st=1;st<=3;st++)cr.push(Yt(-st)),cr.push(Yt(st));for(cr.push(Yt(0));cr.length>0;){var It=cr.pop(),Bt=It.x,Ft=It.y,Ut=It.fullyVisible;if(!Ut){var zt=It.aabb.intersects(we);if(zt===0)continue;Ut=zt===2}var _t=It.aabb.distanceX(ne),Dt=It.aabb.distanceY(ne),vt=Math.max(Math.abs(_t),Math.abs(Dt)),lr=ht+(1<lr&&It.zoom>=Oe){Nt.push({tileID:new i.OverscaledTileID(It.zoom===Ne?$e:It.zoom,It.wrap,It.zoom,Bt,Ft),distanceSq:i.sqrLen([ne[0]-.5-Bt,ne[1]-.5-Ft])});continue}for(var _r=0;_r<4;_r++){var Br=(Bt<<1)+_r%2,Di=(Ft<<1)+(_r>>1);cr.push({aabb:It.aabb.quadrant(_r),zoom:It.zoom+1,x:Br,y:Di,wrap:It.wrap,fullyVisible:Ut})}}return Nt.sort(function(ci,bi){return ci.distanceSq-bi.distanceSq}).map(function(ci){return ci.tileID})},wo.prototype.resize=function(D,J){this.width=D,this.height=J,this.pixelsToGLUnits=[2/D,-2/J],this._constrain(),this._calcMatrices()},To.unmodified.get=function(){return this._unmodified},wo.prototype.zoomScale=function(D){return Math.pow(2,D)},wo.prototype.scaleZoom=function(D){return Math.log(D)/Math.LN2},wo.prototype.project=function(D){var J=i.clamp(D.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(D.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},wo.prototype.unproject=function(D){return new i.MercatorCoordinate(D.x/this.worldSize,D.y/this.worldSize).toLngLat()},To.point.get=function(){return this.project(this.center)},wo.prototype.setLocationAtPoint=function(D,J){var O=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),de=this.locationCoordinate(D),ne=new i.MercatorCoordinate(de.x-(O.x-K.x),de.y-(O.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},wo.prototype.locationPoint=function(D){return this.coordinatePoint(this.locationCoordinate(D))},wo.prototype.pointLocation=function(D){return this.coordinateLocation(this.pointCoordinate(D))},wo.prototype.locationCoordinate=function(D){return i.MercatorCoordinate.fromLngLat(D)},wo.prototype.coordinateLocation=function(D){return D.toLngLat()},wo.prototype.pointCoordinate=function(D){var J=0,O=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(O,O,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var de=O[3],ne=K[3],we=O[0]/de,Oe=K[0]/ne,ht=O[1]/de,Yt=K[1]/ne,cr=O[2]/de,Nt=K[2]/ne,Ne=cr===Nt?0:(J-cr)/(Nt-cr);return new i.MercatorCoordinate(i.number(we,Oe,Ne)/this.worldSize,i.number(ht,Yt,Ne)/this.worldSize)},wo.prototype.coordinatePoint=function(D){var J=[D.x*this.worldSize,D.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},wo.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},wo.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},wo.prototype.setMaxBounds=function(D){D?(this.lngRange=[D.getWest(),D.getEast()],this.latRange=[D.getSouth(),D.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wo.prototype.calculatePosMatrix=function(D,J){J===void 0&&(J=!1);var O=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[O])return K[O];var de=D.canonical,ne=this.worldSize/this.zoomScale(de.z),we=de.x+Math.pow(2,de.z)*D.wrap,Oe=i.identity(new Float64Array(16));return i.translate(Oe,Oe,[we*ne,de.y*ne,0]),i.scale(Oe,Oe,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Oe,J?this.alignedProjMatrix:this.projMatrix,Oe),K[O]=new Float32Array(Oe),K[O]},wo.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wo.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var D=-90,J=90,O=-180,K=180,de,ne,we,Oe,ht=this.size,Yt=this._unmodified;if(this.latRange){var cr=this.latRange;D=i.mercatorYfromLat(cr[1])*this.worldSize,J=i.mercatorYfromLat(cr[0])*this.worldSize,de=J-DJ&&(Oe=J-It)}if(this.lngRange){var Bt=Ne.x,Ft=ht.x/2;Bt-FtK&&(we=K-Ft)}(we!==void 0||Oe!==void 0)&&(this.center=this.unproject(new i.Point(we!==void 0?we:Ne.x,Oe!==void 0?Oe:Ne.y))),this._unmodified=Yt,this._constraining=!1}},wo.prototype._calcMatrices=function(){if(this.height){var D=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(D)*this.height;var O=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),de=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-O-K,.01,Math.PI-.01)),ne=this.point,we=ne.x,Oe=ne.y,ht=Math.cos(Math.PI/2-this._pitch)*de+this.cameraToCenterDistance,Yt=ht*1.01,cr=this.height/50,Nt=new Float64Array(16);i.perspective(Nt,this._fov,this.width/this.height,cr,Yt),Nt[8]=-J.x*2/this.width,Nt[9]=J.y*2/this.height,i.scale(Nt,Nt,[1,-1,1]),i.translate(Nt,Nt,[0,0,-this.cameraToCenterDistance]),i.rotateX(Nt,Nt,this._pitch),i.rotateZ(Nt,Nt,this.angle),i.translate(Nt,Nt,[-we,-Oe,0]),this.mercatorMatrix=i.scale([],Nt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(Nt,Nt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Nt,this.invProjMatrix=i.invert([],this.projMatrix);var Ne=this.width%2/2,$e=this.height%2/2,st=Math.cos(this.angle),It=Math.sin(this.angle),Bt=we-Math.round(we)+st*Ne+It*$e,Ft=Oe-Math.round(Oe)+st*$e+It*Ne,Ut=new Float64Array(Nt);if(i.translate(Ut,Ut,[Bt>.5?Bt-1:Bt,Ft>.5?Ft-1:Ft,0]),this.alignedProjMatrix=Ut,Nt=i.create(),i.scale(Nt,Nt,[this.width/2,-this.height/2,1]),i.translate(Nt,Nt,[1,-1,0]),this.labelPlaneMatrix=Nt,Nt=i.create(),i.scale(Nt,Nt,[1,-1,1]),i.translate(Nt,Nt,[-1,-1,0]),i.scale(Nt,Nt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Nt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Nt=i.invert(new Float64Array(16),this.pixelMatrix),!Nt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Nt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wo.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var D=this.pointCoordinate(new i.Point(0,0)),J=[D.x*this.worldSize,D.y*this.worldSize,0,1],O=i.transformMat4(J,J,this.pixelMatrix);return O[3]/this.cameraToCenterDistance},wo.prototype.getCameraPoint=function(){var D=this._pitch,J=Math.tan(D)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},wo.prototype.getCameraQueryGeometry=function(D){var J=this.getCameraPoint();if(D.length===1)return[D[0],J];for(var O=J.x,K=J.y,de=J.x,ne=J.y,we=0,Oe=D;we=3&&!D.some(function(O){return isNaN(O)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(D[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+D[2],+D[1]],zoom:+D[0],bearing:J,pitch:+(D[4]||0)}),!0}return!1},Ul.prototype._updateHashUnthrottled=function(){var D=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,D)}catch(J){}};var Lu={linearity:.3,easing:i.bezier(0,0,.3,1)},au=i.extend({deceleration:2500,maxSpeed:1400},Lu),Js=i.extend({deceleration:20,maxSpeed:1400},Lu),eu=i.extend({deceleration:1e3,maxSpeed:360},Lu),dc=i.extend({deceleration:1e3,maxSpeed:90},Lu),Tl=function(D){this._map=D,this.clear()};Tl.prototype.clear=function(){this._inertiaBuffer=[]},Tl.prototype.record=function(D){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:D})},Tl.prototype._drainInertiaBuffer=function(){for(var D=this._inertiaBuffer,J=i.browser.now(),O=160;D.length>0&&J-D[0].time>O;)D.shift()},Tl.prototype._onMoveEnd=function(D){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},O=0,K=this._inertiaBuffer;O=this._clickTolerance||this._map.fire(new se(D.type,this._map,D))},Ve.prototype.dblclick=function(D){return this._firePreventable(new se(D.type,this._map,D))},Ve.prototype.mouseover=function(D){this._map.fire(new se(D.type,this._map,D))},Ve.prototype.mouseout=function(D){this._map.fire(new se(D.type,this._map,D))},Ve.prototype.touchstart=function(D){return this._firePreventable(new Te(D.type,this._map,D))},Ve.prototype.touchmove=function(D){this._map.fire(new Te(D.type,this._map,D))},Ve.prototype.touchend=function(D){this._map.fire(new Te(D.type,this._map,D))},Ve.prototype.touchcancel=function(D){this._map.fire(new Te(D.type,this._map,D))},Ve.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},Ve.prototype.isEnabled=function(){return!0},Ve.prototype.isActive=function(){return!1},Ve.prototype.enable=function(){},Ve.prototype.disable=function(){};var Ye=function(D){this._map=D};Ye.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Ye.prototype.mousemove=function(D){this._map.fire(new se(D.type,this._map,D))},Ye.prototype.mousedown=function(){this._delayContextMenu=!0},Ye.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Ye.prototype.contextmenu=function(D){this._delayContextMenu?this._contextMenuEvent=D:this._map.fire(new se(D.type,this._map,D)),this._map.listens("contextmenu")&&D.preventDefault()},Ye.prototype.isEnabled=function(){return!0},Ye.prototype.isActive=function(){return!1},Ye.prototype.enable=function(){},Ye.prototype.disable=function(){};var Pt=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};Pt.prototype.isEnabled=function(){return!!this._enabled},Pt.prototype.isActive=function(){return!!this._active},Pt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Pt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Pt.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},Pt.prototype.mousemoveWindow=function(D,J){if(this._active){var O=J;if(!(this._lastPos.equals(O)||!this._box&&O.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),O.length===this.numTouches&&(this.centroid=Xt(J),this.touches=ot(O,J)))},zr.prototype.touchmove=function(D,J,O){if(!(this.aborted||!this.centroid)){var K=ot(O,J);for(var de in this.touches){var ne=this.touches[de],we=K[de];(!we||we.dist(ne)>Ur)&&(this.aborted=!0)}}},zr.prototype.touchend=function(D,J,O){if((!this.centroid||D.timeStamp-this.startTime>pr)&&(this.aborted=!0),O.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var gi=function(D){this.singleTap=new zr(D),this.numTaps=D.numTaps,this.reset()};gi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},gi.prototype.touchstart=function(D,J,O){this.singleTap.touchstart(D,J,O)},gi.prototype.touchmove=function(D,J,O){this.singleTap.touchmove(D,J,O)},gi.prototype.touchend=function(D,J,O){var K=this.singleTap.touchend(D,J,O);if(K){var de=D.timeStamp-this.lastTime0&&(this._active=!0);var K=ot(O,J),de=new i.Point(0,0),ne=new i.Point(0,0),we=0;for(var Oe in K){var ht=K[Oe],Yt=this._touches[Oe];Yt&&(de._add(ht),ne._add(ht.sub(Yt)),we++,K[Oe]=ht)}if(this._touches=K,!(weMath.abs(Y.x)}var Un=100,ja=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},D.prototype._start=function(O){this._lastPoints=O,Xs(O[0].sub(O[1]))&&(this._valid=!1)},D.prototype._move=function(O,K,de){var ne=O[0].sub(this._lastPoints[0]),we=O[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,we,de.timeStamp),!!this._valid){this._lastPoints=O,this._active=!0;var Oe=(ne.y+we.y)/2,ht=-.5;return{pitchDelta:Oe*ht}}},D.prototype.gestureBeginsVertically=function(O,K,de){if(this._valid!==void 0)return this._valid;var ne=2,we=O.mag()>=ne,Oe=K.mag()>=ne;if(!(!we&&!Oe)){if(!we||!Oe)return this._firstMove===void 0&&(this._firstMove=de),de-this._firstMove0==K.y>0;return Xs(O)&&Xs(K)&&ht}},D}(na),Fo={panStep:100,bearingStep:15,pitchStep:10},Uo=function(){var D=Fo;this._panStep=D.panStep,this._bearingStep=D.bearingStep,this._pitchStep=D.pitchStep,this._rotationDisabled=!1};Uo.prototype.reset=function(){this._active=!1},Uo.prototype.keydown=function(D){var J=this;if(!(D.altKey||D.ctrlKey||D.metaKey)){var O=0,K=0,de=0,ne=0,we=0;switch(D.keyCode){case 61:case 107:case 171:case 187:O=1;break;case 189:case 109:case 173:O=-1;break;case 37:D.shiftKey?K=-1:(D.preventDefault(),ne=-1);break;case 39:D.shiftKey?K=1:(D.preventDefault(),ne=1);break;case 38:D.shiftKey?de=1:(D.preventDefault(),we=-1);break;case 40:D.shiftKey?de=-1:(D.preventDefault(),we=1);break;default:return}return this._rotationDisabled&&(K=0,de=0),{cameraAnimation:function(Oe){var ht=Oe.getZoom();Oe.easeTo({duration:300,easeId:"keyboardHandler",easing:$s,zoom:O?Math.round(ht)+O*(D.shiftKey?2:1):ht,bearing:Oe.getBearing()+K*J._bearingStep,pitch:Oe.getPitch()+de*J._pitchStep,offset:[-ne*J._panStep,-we*J._panStep],center:Oe.getCenter()},{originalEvent:D})}}}},Uo.prototype.enable=function(){this._enabled=!0},Uo.prototype.disable=function(){this._enabled=!1,this.reset()},Uo.prototype.isEnabled=function(){return this._enabled},Uo.prototype.isActive=function(){return this._active},Uo.prototype.disableRotation=function(){this._rotationDisabled=!0},Uo.prototype.enableRotation=function(){this._rotationDisabled=!1};function $s(Y){return Y*(2-Y)}var Sl=4.000244140625,bu=1/100,dl=1/450,Sc=2,Me=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=bu,this._wheelZoomRate=dl,i.bindAll(["_onTimeout"],this)};Me.prototype.setZoomRate=function(D){this._defaultZoomRate=D},Me.prototype.setWheelZoomRate=function(D){this._wheelZoomRate=D},Me.prototype.isEnabled=function(){return!!this._enabled},Me.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Me.prototype.isZooming=function(){return!!this._zooming},Me.prototype.enable=function(D){this.isEnabled()||(this._enabled=!0,this._aroundCenter=D&&D.around==="center")},Me.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Me.prototype.wheel=function(D){if(this.isEnabled()){var J=D.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?D.deltaY*40:D.deltaY,O=i.browser.now(),K=O-(this._lastWheelEventTime||0);this._lastWheelEventTime=O,J!==0&&J%Sl===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,D)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),D.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=D,this._delta-=J,this._active||this._start(D)),D.preventDefault()}},Me.prototype._onTimeout=function(D){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(D)},Me.prototype._start=function(D){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,D);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Me.prototype.renderFrame=function(){var D=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var O=this._type==="wheel"&&Math.abs(this._delta)>Sl?this._wheelZoomRate:this._defaultZoomRate,K=Sc/(1+Math.exp(-Math.abs(this._delta*O)));this._delta<0&&K!==0&&(K=1/K);var de=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(de*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,we=this._startZoom,Oe=this._easing,ht=!1,Yt;if(this._type==="wheel"&&we&&Oe){var cr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),Nt=Oe(cr);Yt=i.number(we,ne,Nt),cr<1?this._frameId||(this._frameId=!0):ht=!0}else Yt=ne,ht=!0;return this._active=!0,ht&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ht,zoomDelta:Yt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Me.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var O=this._prevEase,K=(i.browser.now()-O.start)/O.duration,de=O.easing(K+.01)-O.easing(K),ne=.27/Math.sqrt(de*de+1e-4)*.01,we=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,we,.25,1)}return this._prevEase={start:i.browser.now(),duration:D,easing:J},J},Me.prototype.reset=function(){this._active=!1};var bt=function(D,J){this._clickZoom=D,this._tapZoom=J};bt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},bt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},bt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},bt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ot=function(){this.reset()};Ot.prototype.reset=function(){this._active=!1},Ot.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(O){O.easeTo({duration:300,zoom:O.getZoom()+(D.shiftKey?-1:1),around:O.unproject(J)},{originalEvent:D})}}},Ot.prototype.enable=function(){this._enabled=!0},Ot.prototype.disable=function(){this._enabled=!1,this.reset()},Ot.prototype.isEnabled=function(){return this._enabled},Ot.prototype.isActive=function(){return this._active};var Lr=function(){this._tap=new gi({numTouches:1,numTaps:1}),this.reset()};Lr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Lr.prototype.touchstart=function(D,J,O){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>dr&&this.reset(),this._tapTime?O.length>0&&(this._swipePoint=J[0],this._swipeTouch=O[0].identifier):this._tap.touchstart(D,J,O))},Lr.prototype.touchmove=function(D,J,O){if(!this._tapTime)this._tap.touchmove(D,J,O);else if(this._swipePoint){if(O[0].identifier!==this._swipeTouch)return;var K=J[0],de=K.y-this._swipePoint.y;return this._swipePoint=K,D.preventDefault(),this._active=!0,{zoomDelta:de/128}}},Lr.prototype.touchend=function(D,J,O){if(this._tapTime)this._swipePoint&&O.length===0&&this.reset();else{var K=this._tap.touchend(D,J,O);K&&(this._tapTime=D.timeStamp)}},Lr.prototype.touchcancel=function(){this.reset()},Lr.prototype.enable=function(){this._enabled=!0},Lr.prototype.disable=function(){this._enabled=!1,this.reset()},Lr.prototype.isEnabled=function(){return this._enabled},Lr.prototype.isActive=function(){return this._active};var Vr=function(D,J,O){this._el=D,this._mousePan=J,this._touchPan=O};Vr.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Vr.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Vr.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Vr.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Or=function(D,J,O){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=O};Or.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Or.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Or.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Or.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Nr=function(D,J,O,K){this._el=D,this._touchZoom=J,this._touchRotate=O,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};Nr.prototype.enable=function(D){this._touchZoom.enable(D),this._rotationDisabled||this._touchRotate.enable(D),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Nr.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Nr.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Nr.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Nr.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Nr.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var vi=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Ni=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D}(i.Event);function qi(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var Si=function(D,J){this._map=D,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Tl(D),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var O=this._el;this._listeners=[[O,"touchstart",{passive:!0}],[O,"touchmove",{passive:!1}],[O,"touchend",void 0],[O,"touchcancel",void 0],[O,"mousedown",void 0],[O,"mousemove",void 0],[O,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[O,"mouseover",void 0],[O,"mouseout",void 0],[O,"dblclick",void 0],[O,"click",void 0],[O,"keydown",{capture:!1}],[O,"keyup",void 0],[O,"wheel",{passive:!1}],[O,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,de=this._listeners;Kwe?Math.min(2,_t):Math.max(.5,_t),ci=Math.pow(Di,1-_r),bi=ne.unproject(Ut.add(zt.mult(_r*ci)).mult(Br));ne.setLocationAtPoint(ne.renderWorldCopies?bi.wrap():bi,It)}de._fireMoveEvents(K)},function(_r){de._afterEase(K,_r)},O),this},D.prototype._prepareEase=function(O,K,de){de===void 0&&(de={}),this._moving=!0,!K&&!de.moving&&this.fire(new i.Event("movestart",O)),this._zooming&&!de.zooming&&this.fire(new i.Event("zoomstart",O)),this._rotating&&!de.rotating&&this.fire(new i.Event("rotatestart",O)),this._pitching&&!de.pitching&&this.fire(new i.Event("pitchstart",O))},D.prototype._fireMoveEvents=function(O){this.fire(new i.Event("move",O)),this._zooming&&this.fire(new i.Event("zoom",O)),this._rotating&&this.fire(new i.Event("rotate",O)),this._pitching&&this.fire(new i.Event("pitch",O))},D.prototype._afterEase=function(O,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var de=this._zooming,ne=this._rotating,we=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,de&&this.fire(new i.Event("zoomend",O)),ne&&this.fire(new i.Event("rotateend",O)),we&&this.fire(new i.Event("pitchend",O)),this.fire(new i.Event("moveend",O))}},D.prototype.flyTo=function(O,K){var de=this;if(!O.essential&&i.browser.prefersReducedMotion){var ne=i.pick(O,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),O=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},O);var we=this.transform,Oe=this.getZoom(),ht=this.getBearing(),Yt=this.getPitch(),cr=this.getPadding(),Nt="zoom"in O?i.clamp(+O.zoom,we.minZoom,we.maxZoom):Oe,Ne="bearing"in O?this._normalizeBearing(O.bearing,ht):ht,$e="pitch"in O?+O.pitch:Yt,st="padding"in O?O.padding:we.padding,It=we.zoomScale(Nt-Oe),Bt=i.Point.convert(O.offset),Ft=we.centerPoint.add(Bt),Ut=we.pointLocation(Ft),zt=i.LngLat.convert(O.center||Ut);this._normalizeCenter(zt);var _t=we.project(Ut),Dt=we.project(zt).sub(_t),vt=O.curve,lr=Math.max(we.width,we.height),_r=lr/It,Br=Dt.mag();if("minZoom"in O){var Di=i.clamp(Math.min(O.minZoom,Oe,Nt),we.minZoom,we.maxZoom),ci=lr/we.zoomScale(Di-Oe);vt=Math.sqrt(ci/Br*2)}var bi=vt*vt;function gn(so){var Yo=(_r*_r-lr*lr+(so?-1:1)*bi*bi*Br*Br)/(2*(so?_r:lr)*bi*Br);return Math.log(Math.sqrt(Yo*Yo+1)-Yo)}function tn(so){return(Math.exp(so)-Math.exp(-so))/2}function Ei(so){return(Math.exp(so)+Math.exp(-so))/2}function Oi(so){return tn(so)/Ei(so)}var Gi=gn(0),on=function(so){return Ei(Gi)/Ei(Gi+vt*so)},zn=function(so){return lr*((Ei(Gi)*Oi(Gi+vt*so)-tn(Gi))/bi)/Br},Ja=(gn(1)-Gi)/vt;if(Math.abs(Br)<1e-6||!isFinite(Ja)){if(Math.abs(lr-_r)<1e-6)return this.easeTo(O,K);var co=_rO.maxDuration&&(O.duration=0),this._zooming=!0,this._rotating=ht!==Ne,this._pitching=$e!==Yt,this._padding=!we.isPaddingEqual(st),this._prepareEase(K,!1),this._ease(function(so){var Yo=so*Ja,ms=1/on(Yo);we.zoom=so===1?Nt:Oe+we.scaleZoom(ms),de._rotating&&(we.bearing=i.number(ht,Ne,so)),de._pitching&&(we.pitch=i.number(Yt,$e,so)),de._padding&&(we.interpolatePadding(cr,st,so),Ft=we.centerPoint.add(Bt));var ou=so===1?zt:we.unproject(_t.add(Dt.mult(zn(Yo))).mult(ms));we.setLocationAtPoint(we.renderWorldCopies?ou.wrap():ou,Ft),de._fireMoveEvents(K)},function(){return de._afterEase(K)},O),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(O,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var de=this._onEaseEnd;delete this._onEaseEnd,de.call(this,K)}if(!O){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(O,K,de){de.animate===!1||de.duration===0?(O(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=de,this._onEaseFrame=O,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var O=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(O)),O<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(O,K){O=i.wrap(O,-180,180);var de=Math.abs(O-K);return Math.abs(O-360-K)180?-360:de<-180?360:0}},D}(i.Evented),Qi=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Qi.prototype.getDefaultPosition=function(){return"bottom-right"},Qi.prototype.onAdd=function(D){var J=this.options&&this.options.compact;return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Qi.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Qi.prototype._setElementTitle=function(D,J){var O=this._map._getUIString("AttributionControl."+J);D.title=O,D.setAttribute("aria-label",O)},Qi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Qi.prototype._updateEditLink=function(){var D=this._editLink;D||(D=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(D){var O=J.reduce(function(K,de,ne){return de.value&&(K+=de.key+"="+de.value+(ne=0)return!1;return!0});var we=D.join(" | ");we!==this._attribHTML&&(this._attribHTML=we,D.length?(this._innerContainer.innerHTML=we,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Qi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ji=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};ji.prototype.onAdd=function(D){this._map=D,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ji.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ji.prototype.getDefaultPosition=function(){return"bottom-left"},ji.prototype._updateLogo=function(D){(!D||D.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ji.prototype._logoRequired=function(){if(this._map.style){var D=this._map.style.sourceCaches;for(var J in D){var O=D[J].getSource();if(O.mapbox_logo)return!0}return!1}},ji.prototype._updateCompact=function(){var D=this._container.children;if(D.length){var J=D[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var oi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};oi.prototype.add=function(D){var J=++this._id,O=this._queue;return O.push({callback:D,id:J,cancelled:!1}),J},oi.prototype.remove=function(D){for(var J=this._currentlyRunning,O=J?this._queue.concat(J):this._queue,K=0,de=O;KO.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(O.minPitch!=null&&O.maxPitch!=null&&O.minPitch>O.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(O.minPitch!=null&&O.minPitchqn)throw new Error("maxPitch must be less than or equal to "+qn);var de=new wo(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies);if(Y.call(this,de,O),this._interactive=O.interactive,this._maxTileCacheSize=O.maxTileCacheSize,this._failIfMajorPerformanceCaveat=O.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=O.preserveDrawingBuffer,this._antialias=O.antialias,this._trackResize=O.trackResize,this._bearingSnap=O.bearingSnap,this._refreshExpiredTiles=O.refreshExpiredTiles,this._fadeDuration=O.fadeDuration,this._crossSourceCollisions=O.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=O.collectResourceTiming,this._renderTaskQueue=new oi,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Tr,O.locale),this._clickTolerance=O.clickTolerance,this._requestManager=new i.RequestManager(O.transformRequest,O.accessToken),typeof O.container=="string"){if(this._container=i.window.document.getElementById(O.container),!this._container)throw new Error("Container '"+O.container+"' not found.")}else if(O.container instanceof yi)this._container=O.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(O.maxBounds&&this.setMaxBounds(O.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Si(this,O);var ne=typeof O.hash=="string"&&O.hash||void 0;this._hash=O.hash&&new Ul(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:O.center,zoom:O.zoom,bearing:O.bearing,pitch:O.pitch}),O.bounds&&(this.resize(),this.fitBounds(O.bounds,i.extend({},O.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=O.localIdeographFontFamily,O.style&&this.setStyle(O.style,{localIdeographFontFamily:O.localIdeographFontFamily}),O.attributionControl&&this.addControl(new Qi({customAttribution:O.customAttribution})),this.addControl(new ji,O.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(we){K._update(we.dataType==="style"),K.fire(new i.Event(we.dataType+"data",we))}),this.on("dataloading",function(we){K.fire(new i.Event(we.dataType+"dataloading",we))})}Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return D.prototype._getMapId=function(){return this._mapId},D.prototype.addControl=function(K,de){if(de===void 0&&(K.getDefaultPosition?de=K.getDefaultPosition():de="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var we=this._controlPositions[de];return de.indexOf("bottom")!==-1?we.insertBefore(ne,we.firstChild):we.appendChild(ne),this},D.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var de=this._controls.indexOf(K);return de>-1&&this._controls.splice(de,1),K.onRemove(this),this},D.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},D.prototype.resize=function(K){var de=this._containerDimensions(),ne=de[0],we=de[1];this._resizeCanvas(ne,we),this.transform.resize(ne,we),this.painter.resize(ne,we);var Oe=!this._moving;return Oe&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Oe&&this.fire(new i.Event("moveend",K)),this},D.prototype.getBounds=function(){return this.transform.getBounds()},D.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},D.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},D.prototype.setMinZoom=function(K){if(K=K==null?ui:K,K>=ui&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},D.prototype.getMaxZoom=function(){return this.transform.maxZoom},D.prototype.setMinPitch=function(K){if(K=K==null?Xi:K,K=Xi&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()qn)throw new Error("maxPitch must be less than or equal to "+qn);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},D.prototype.getMaxPitch=function(){return this.transform.maxPitch},D.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},D.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},D.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},D.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},D.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},D.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},D.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},D.prototype._createDelegatedListener=function(K,de,ne){var we=this,Oe;if(K==="mouseenter"||K==="mouseover"){var ht=!1,Yt=function(It){var Bt=we.getLayer(de)?we.queryRenderedFeatures(It.point,{layers:[de]}):[];Bt.length?ht||(ht=!0,ne.call(we,new se(K,we,It.originalEvent,{features:Bt}))):ht=!1},cr=function(){ht=!1};return{layer:de,listener:ne,delegates:{mousemove:Yt,mouseout:cr}}}else if(K==="mouseleave"||K==="mouseout"){var Nt=!1,Ne=function(It){var Bt=we.getLayer(de)?we.queryRenderedFeatures(It.point,{layers:[de]}):[];Bt.length?Nt=!0:Nt&&(Nt=!1,ne.call(we,new se(K,we,It.originalEvent)))},$e=function(It){Nt&&(Nt=!1,ne.call(we,new se(K,we,It.originalEvent)))};return{layer:de,listener:ne,delegates:{mousemove:Ne,mouseout:$e}}}else{var st=function(It){var Bt=we.getLayer(de)?we.queryRenderedFeatures(It.point,{layers:[de]}):[];Bt.length&&(It.features=Bt,ne.call(we,It),delete It.features)};return{layer:de,listener:ne,delegates:(Oe={},Oe[K]=st,Oe)}}},D.prototype.on=function(K,de,ne){if(ne===void 0)return Y.prototype.on.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(we);for(var Oe in we.delegates)this.on(Oe,we.delegates[Oe]);return this},D.prototype.once=function(K,de,ne){if(ne===void 0)return Y.prototype.once.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);for(var Oe in we.delegates)this.once(Oe,we.delegates[Oe]);return this},D.prototype.off=function(K,de,ne){var we=this;if(ne===void 0)return Y.prototype.off.call(this,K,de);var Oe=function(ht){for(var Yt=ht[K],cr=0;cr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var Nn={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function aa(Y,D,J){var O=Y.classList;for(var K in Nn)O.remove("mapboxgl-"+J+"-anchor-"+K);O.add("mapboxgl-"+J+"-anchor-"+D)}var Ki=function(Y){function D(J,O){if(Y.call(this),(J instanceof i.window.HTMLElement||O)&&(J=i.extend({element:J},O)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),de=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",de+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+de);var we=o.createNS("http://www.w3.org/2000/svg","g");we.setAttributeNS(null,"stroke","none"),we.setAttributeNS(null,"stroke-width","1"),we.setAttributeNS(null,"fill","none"),we.setAttributeNS(null,"fill-rule","evenodd");var Oe=o.createNS("http://www.w3.org/2000/svg","g");Oe.setAttributeNS(null,"fill-rule","nonzero");var ht=o.createNS("http://www.w3.org/2000/svg","g");ht.setAttributeNS(null,"transform","translate(3.0, 29.0)"),ht.setAttributeNS(null,"fill","#000000");for(var Yt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],cr=0,Nt=Yt;cr=K}this._isDragging&&(this._pos=O.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},D.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},D.prototype._addDragHandler=function(O){this._element.contains(O.originalEvent.target)&&(O.preventDefault(),this._positionDelta=O.point.sub(this._pos).add(this._offset),this._pointerdownPos=O.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},D.prototype.setDraggable=function(O){return this._draggable=!!O,this._map&&(O?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},D.prototype.isDraggable=function(){return this._draggable},D.prototype.setRotation=function(O){return this._rotation=O||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(O){return this._rotationAlignment=O||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(O){return this._pitchAlignment=O&&O!=="auto"?O:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D}(i.Evented),Cn={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ia;function sa(Y){ia!==void 0?Y(ia):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){ia=D.state!=="denied",Y(ia)}):(ia=!!i.window.navigator.geolocation,Y(ia))}var ba=0,is=!1,Zs=function(Y){function D(J){Y.call(this),this.options=i.extend({},Cn,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.onAdd=function(O){return this._map=O,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),sa(this._setupUI),this._container},D.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,ba=0,is=!1},D.prototype._isOutOfMapMaxBounds=function(O){var K=this._map.getMaxBounds(),de=O.coords;return K&&(de.longitudeK.getEast()||de.latitudeK.getNorth())},D.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},D.prototype._onSuccess=function(O){if(this._map){if(this._isOutOfMapMaxBounds(O)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",O)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=O,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(O),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(O),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",O)),this._finish()}},D.prototype._updateCamera=function(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude),de=O.coords.accuracy,ne=this._map.getBearing(),we=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(de),we,{geolocateSource:!0})},D.prototype._updateMarker=function(O){if(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=O.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var O=this._map._container.clientHeight/2,K=this._map.unproject([0,O]),de=this._map.unproject([1,O]),ne=K.distanceTo(de),we=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=we+"px",this._circleElement.style.height=we+"px"},D.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},D.prototype._onError=function(O){if(this._map){if(this.options.trackUserLocation)if(O.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(O.code===3&&is)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",O)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(O){var K=this;if(this._container.addEventListener("contextmenu",function(we){return we.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",O===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var de=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=de,this._geolocateButton.setAttribute("aria-label",de)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ki(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ki({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(we){var Oe=we.originalEvent&&we.originalEvent.type==="resize";!we.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Oe&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},D.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":ba--,is=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),ba++;var O;ba>1?(O={maximumAge:6e5,timeout:0},is=!0):(O=this.options.positionOptions,is=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,O)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},D.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},D}(i.Evented),Ga={maxWidth:100,unit:"metric"},Ml=function(D){this.options=i.extend({},Ga,D),i.bindAll(["_onMove","setUnit"],this)};Ml.prototype.getDefaultPosition=function(){return"bottom-left"},Ml.prototype._onMove=function(){zo(this._map,this._container,this.options)},Ml.prototype.onAdd=function(D){return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",D.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ml.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ml.prototype.setUnit=function(D){this.options.unit=D,zo(this._map,this._container,this.options)};function zo(Y,D,J){var O=J&&J.maxWidth||100,K=Y._container.clientHeight/2,de=Y.unproject([0,K]),ne=Y.unproject([O,K]),we=de.distanceTo(ne);if(J&&J.unit==="imperial"){var Oe=3.2808*we;if(Oe>5280){var ht=Oe/5280;Qs(D,O,ht,Y._getUIString("ScaleControl.Miles"))}else Qs(D,O,Oe,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Yt=we/1852;Qs(D,O,Yt,Y._getUIString("ScaleControl.NauticalMiles"))}else we>=1e3?Qs(D,O,we/1e3,Y._getUIString("ScaleControl.Kilometers")):Qs(D,O,we,Y._getUIString("ScaleControl.Meters"))}function Qs(Y,D,J,O){var K=Vl(J),de=K/J;Y.style.width=D*de+"px",Y.innerHTML=K+" "+O}function al(Y){var D=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*D)/D}function Vl(Y){var D=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/D;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:al(J),D*J}var ss=function(D){this._fullscreen=!1,D&&D.container&&(D.container instanceof i.window.HTMLElement?this._container=D.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};ss.prototype.onAdd=function(D){return this._map=D,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ss.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ss.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},ss.prototype._setupUI=function(){var D=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",D).setAttribute("aria-hidden",!0),D.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ss.prototype._updateTitle=function(){var D=this._getTitle();this._fullscreenButton.setAttribute("aria-label",D),this._fullscreenButton.title=D},ss.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ss.prototype._isFullscreen=function(){return this._fullscreen},ss.prototype._changeIcon=function(){var D=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;D===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ss.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Vs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ys=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),wa=function(Y){function D(J){Y.call(this),this.options=i.extend(Object.create(Vs),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.addTo=function(O){return this._map&&this.remove(),this._map=O,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},D.prototype.isOpen=function(){return!!this._map},D.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},D.prototype.getLngLat=function(){return this._lngLat},D.prototype.setLngLat=function(O){return this._lngLat=i.LngLat.convert(O),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},D.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},D.prototype.getElement=function(){return this._container},D.prototype.setText=function(O){return this.setDOMContent(i.window.document.createTextNode(O))},D.prototype.setHTML=function(O){var K=i.window.document.createDocumentFragment(),de=i.window.document.createElement("body"),ne;for(de.innerHTML=O;ne=de.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},D.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},D.prototype.setMaxWidth=function(O){return this.options.maxWidth=O,this._update(),this},D.prototype.setDOMContent=function(O){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(O),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(O){this._container&&this._container.classList.add(O)},D.prototype.removeClassName=function(O){this._container&&this._container.classList.remove(O)},D.prototype.setOffset=function(O){return this.options.offset=O,this._update(),this},D.prototype.toggleClassName=function(O){if(this._container)return this._container.classList.toggle(O)},D.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},D.prototype._onMouseUp=function(O){this._update(O.point)},D.prototype._onMouseMove=function(O){this._update(O.point)},D.prototype._onDrag=function(O){this._update(O.point)},D.prototype._update=function(O){var K=this,de=this._lngLat||this._trackPointer;if(!(!this._map||!de||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Ne){return K._container.classList.add(Ne)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=pn(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!O))){var ne=this._pos=this._trackPointer&&O?O:this._map.project(this._lngLat),we=this.options.anchor,Oe=ol(this.options.offset);if(!we){var ht=this._container.offsetWidth,Yt=this._container.offsetHeight,cr;ne.y+Oe.bottom.ythis._map.transform.height-Yt?cr=["bottom"]:cr=[],ne.xthis._map.transform.width-ht/2&&cr.push("right"),cr.length===0?we="bottom":we=cr.join("-")}var Nt=ne.add(Oe[we]).round();o.setTransform(this._container,Nn[we]+" translate("+Nt.x+"px,"+Nt.y+"px)"),aa(this._container,we,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var O=this._container.querySelector(Ys);O&&O.focus()}},D.prototype._onClose=function(){this.remove()},D}(i.Evented);function ol(Y){if(Y)if(typeof Y=="number"){var D=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(D,D),"top-right":new i.Point(-D,D),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(D,-D),"bottom-right":new i.Point(-D,-D),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return ol(new i.Point(0,0))}var io={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:si,NavigationControl:Ui,GeolocateControl:Zs,AttributionControl:Qi,ScaleControl:Ml,FullscreenControl:ss,Popup:wa,Marker:Ki,Style:yu,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:ua,clearPrewarmedResources:ma,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return fn.workerCount},set workerCount(Y){fn.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(D){i.clearTileCache(D)},workerUrl:""};return io}),r})});var wGe=ye((Vxr,bGe)=>{"use strict";var vw=Pr(),rWt=Zl().sanitizeHTML,iWt=fJ(),yGe=m1();function _Ge(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=yGe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ag=_Ge.prototype;ag.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=n7(t)};ag.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ag.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ag.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ag.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ag.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ag.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!n7(e)){var r=nWt(e);t.addSource(this.idSource,r)}};ag.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function xGe(e){var t={},r={};switch(e.type){case"circle":vw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":vw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":vw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=iWt(n.textposition,n.iconsize);vw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),vw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":vw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function nWt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=rWt(e.sourceattribution)),n}bGe.exports=function(t,r,n){var i=new _Ge(t,r);return i.update(n),i}});var PGe=ye((Gxr,LGe)=>{"use strict";var yJ=mJ(),_J=Pr(),MGe=dx(),TGe=Oa(),aWt=ho(),oWt=yv(),a7=ef(),EGe=Cg(),sWt=EGe.drawMode,lWt=EGe.selectMode,uWt=qf().prepSelect,cWt=qf().clearOutline,fWt=qf().clearSelectionsCache,hWt=qf().selectOnClick,Cx=m1(),dWt=wGe();function kGe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Gh=kGe.prototype;Gh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};Gh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=CGe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new yJ.Map({container:i.div,style:o.style,center:xJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new yJ.AttributionControl({compact:!0}));u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(f){u.once("load",f)})),c=c.concat(MGe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Gh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=CGe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(MGe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Gh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&hWt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&a7.click(n,l.originalEvent)}}};Gh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=_J.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),lWt(a)||sWt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){uWt(l,u,c,t.dragOptions,a)},oWt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Gh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Gh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var bJ=Pr(),vWt=q_(),pWt=Kd(),IGe=Yk();RGe.exports=function(t,r,n){vWt(t,r,n,{type:"mapbox",attributes:IGe,handleDefaults:gWt,partition:"y",accessToken:r._mapboxAccessToken})};function gWt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,pWt(e,t,{name:"layers",handleItemDefaults:mWt}),t._input=e}function mWt(e,t){function r(l,u){return bJ.coerce(e,t,IGe.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",bJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),bJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var o7=ye(Np=>{"use strict";var FGe=mJ(),nm=Pr(),wJ=nm.strTranslate,yWt=nm.strScale,_Wt=Id().getSubplotCalcData,xWt=Wp(),bWt=qa(),zGe=So(),wWt=Zl(),TWt=PGe(),Lx="mapbox",sy=Np.constants=m1();Np.name=Lx;Np.attr="subplot";Np.idRoot=Lx;Np.idRegex=Np.attrRegex=nm.counterRegex(Lx);var AWt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Np.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Np.layoutAttributes=Yk();Np.supplyLayoutDefaults=DGe();var qGe=!0;Np.plot=function(t){qGe&&(qGe=!1,nm.warn(AWt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[Lx];if(FGe.version!==sy.requiredVersion)throw new Error(sy.wrongVersionErrorMsg);var a=SWt(t,i);FGe.accessToken=a;for(var o=0;op/2){var k=d.split("|").join("
");m.text(k).attr("data-unformatted",k).call(wWt.convertToTspans,e),b=zGe.bBox(m.node())}m.attr("transform",wJ(-3,-b.height+8)),v.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var M=1;b.width+6>p&&(M=p/(b.width+6));var T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",wJ(T[0],T[1])+yWt(M))}};function SWt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,l=0;l1&&nm.warn(sy.multipleTokensErrorMsg),i[0]):(a.length&&nm.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function OGe(e){return typeof e=="string"&&(sy.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Np.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Lx],n=0;n{"use strict";var Wxr=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");BGe.exports={attributes:$z(),supplyDefaults:JVe(),colorbar:Qd(),formatLabels:cJ(),calc:bF(),plot:fGe(),hoverPoints:i7().hoverPoints,eventData:pGe(),selectPoints:mGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:o7(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var VGe=ye((Zxr,UGe)=>{"use strict";UGe.exports=NGe()});var TJ=ye((Yxr,GGe)=>{"use strict";var y1=o5(),MWt=Tu(),{hovertemplateAttrs:EWt,templatefallbackAttrs:kWt}=Ll(),CWt=Gl(),Px=Ao().extendFlat;GGe.exports=Px({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Px({},y1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:y1.text,hovertext:y1.hovertext,marker:{line:{color:Px({},y1.marker.line.color,{editType:"plot"}),width:Px({},y1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Px({},y1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Px({},y1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Px({},y1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:y1.hoverinfo,hovertemplate:EWt({},{keys:["properties"]}),hovertemplatefallback:kWt(),showlegend:Px({},CWt.showlegend,{dflt:!1})},MWt("",{cLetter:"z",editTypeOverride:"calc"}))});var jGe=ye((Kxr,HGe)=>{"use strict";var Qk=Pr(),LWt=td(),PWt=TJ();HGe.exports=function(t,r,n,i){function a(c,f){return Qk.coerce(t,r,PWt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!Qk.isArrayOrTypedArray(o)||!o.length||!Qk.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||Qk.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),LWt(t,r,i,a,{prefix:"",cLetter:"z"}),Qk.coerceSelectionMarkerOpacity(r,a)}});var AJ=ye((Jxr,ZGe)=>{"use strict";var IWt=Eo(),_1=Pr(),RWt=tc(),DWt=So(),FWt=fx().makeBlank,WGe=dx();function zWt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:FWt()};if(!r)return a;var o=WGe.extractTraceFeature(e);if(!o)return a;var s=RWt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;_1.isArrayOrTypedArray(l.opacity)&&(c=function(k){var M=k.mo;return IWt(M)?+_1.constrain(M,0,1):0});var f;_1.isArrayOrTypedArray(u.color)&&(f=function(k){return k.mlc});var h;_1.isArrayOrTypedArray(u.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var KGe=AJ().convert,qWt=AJ().convertOnSelect,YGe=m1().traceLayerPrefix;function JGe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",YGe+t+"-fill"],["line",YGe+t+"-line"]],this.below=null}var P5=JGe.prototype;P5.update=function(e){this._update(KGe(e)),e[0].trace._glTrace=this};P5.updateOnSelect=function(e){this._update(qWt(e))};P5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};P5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};$Ge.exports=function(t,r){var n=r[0].trace,i=new JGe(t,n.uid),a=i.sourceId,o=KGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var tHe=ye((ebr,eHe)=>{"use strict";var Qxr=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");eHe.exports={attributes:TJ(),supplyDefaults:jGe(),colorbar:D_(),calc:VF(),plot:QGe(),hoverPoints:HF(),eventData:jF(),selectPoints:WF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";rHe.exports=tHe()});var MJ=ye((rbr,aHe)=>{"use strict";var OWt=Tu(),{hovertemplateAttrs:BWt,templatefallbackAttrs:NWt}=Ll(),nHe=Gl(),s7=$z(),SJ=Ao().extendFlat;aHe.exports=SJ({lon:s7.lon,lat:s7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:s7.text,hovertext:s7.hovertext,hoverinfo:SJ({},nHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:BWt(),hovertemplatefallback:NWt(),showlegend:SJ({},nHe.showlegend,{dflt:!1})},OWt("",{cLetter:"z",editTypeOverride:"calc"}))});var sHe=ye((ibr,oHe)=>{"use strict";var UWt=Pr(),VWt=td(),GWt=MJ();oHe.exports=function(t,r,n,i){function a(u,c){return UWt.coerce(t,r,GWt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),VWt(t,r,i,a,{prefix:"",cLetter:"z"})}});var cHe=ye((nbr,uHe)=>{"use strict";var EJ=Eo(),HWt=Pr().isArrayOrTypedArray,kJ=fs().BADNUM,jWt=gv(),lHe=Pr()._;uHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=HWt(a)&&a.length,s=0;s{"use strict";var WWt=Eo(),CJ=Pr(),fHe=ka(),hHe=tc(),dHe=fs().BADNUM,XWt=fx().makeBlank;vHe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:XWt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=CJ.isArrayOrTypedArray(l)&&l.length,f=CJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=hHe.extractOpts(r),p=b.reversescale?hHe.flipScale(b.colorscale):b.colorscale,k=p[0][1],M=fHe.opacity(k)<1?k:fHe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,M];for(s=1;s{"use strict";var gHe=pHe(),ZWt=m1().traceLayerPrefix;function mHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",ZWt+t+"-heatmap"]],this.below=null}var l7=mHe.prototype;l7.update=function(e){var t=this.subplot,r=this.layerList,n=gHe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};l7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};yHe.exports=function(t,r){var n=r[0].trace,i=new mHe(t,n.uid),a=i.sourceId,o=gHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var bHe=ye((sbr,xHe)=>{"use strict";var YWt=ho(),KWt=i7().hoverPoints,JWt=i7().getExtraText;xHe.exports=function(t,r,n){var i=KWt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=YWt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=JWt(s,l,o[0].t.labels),[a]}}});var THe=ye((lbr,wHe)=>{"use strict";wHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var SHe=ye((cbr,AHe)=>{"use strict";var ubr=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");AHe.exports={attributes:MJ(),supplyDefaults:sHe(),colorbar:D_(),formatLabels:cJ(),calc:cHe(),plot:_He(),hoverPoints:bHe(),eventData:THe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";MHe.exports=SHe()});var CHe=ye((hbr,kHe)=>{kHe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} +`),_t=we.createShader(we.FRAGMENT_SHADER);if(we.isContextLost()){this.failedToCreate=!0;return}we.shaderSource(_t,Ut),we.compileShader(_t),we.attachShader(this.program,_t);var Dt=we.createShader(we.VERTEX_SHADER);if(we.isContextLost()){this.failedToCreate=!0;return}we.shaderSource(Dt,zt),we.compileShader(Dt),we.attachShader(this.program,Dt),this.attributes={};var vt={};this.numAttributes=Yt.length;for(var lr=0;lr>16,we>>16],u_pixel_coord_lower:[ne&65535,we&65535]}}function cf(Y,D,J,O){var K=J.imageManager.getPattern(Y.from.toString()),de=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),we=ne.width,Oe=ne.height,ht=Math.pow(2,O.tileID.overscaledZ),Yt=O.tileSize*Math.pow(2,J.transform.tileZoom)/ht,cr=Yt*(O.tileID.canonical.x+O.tileID.wrap*ht),Nt=Yt*O.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:de.tl,u_pattern_br_b:de.br,u_texsize:[we,Oe],u_mix:D.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:de.displaySize,u_scale_a:D.fromScale,u_scale_b:D.toScale,u_tile_units_to_pixels:1/As(O,1,J.transform.tileZoom),u_pixel_coord_upper:[cr>>16,Nt>>16],u_pixel_coord_lower:[cr&65535,Nt&65535]}}var Zf=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,D.u_height_factor),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},ah=function(Y,D,J,O){var K=D.style.light,de=K.properties.get("position"),ne=[de.x,de.y,de.z],we=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(we,-D.transform.angle),i.transformMat3(ne,ne,we);var Oe=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Oe.r,Oe.g,Oe.b],u_vertical_gradient:+J,u_opacity:O}},Zu=function(Y,D,J,O,K,de,ne){return i.extend(ah(Y,D,J,O),Xu(de,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},qc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Tc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},Tl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world)}},vu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},Oc=function(Y){return{u_matrix:Y}},ff=function(Y,D,J,O){return i.extend(Oc(Y),Xu(J,D,O))},fc=function(Y,D){return{u_matrix:Y,u_world:D}},Bc=function(Y,D,J,O,K){return i.extend(ff(Y,D,J,O),{u_world:K})},kt=function(Y,D){return{u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,D.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Zt=function(Y,D,J,O){var K=Y.transform,de,ne;if(O.paint.get("circle-pitch-alignment")==="map"){var we=As(J,1,K.zoom);de=!0,ne=[we,we]}else de=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(O.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,O.paint.get("circle-translate"),O.paint.get("circle-translate-anchor")),u_pitch_with_map:+de,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},Er=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,D.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,D.u_overscale_factor)}},xr=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,D.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,D.u_viewport_size)}},Kr=function(Y,D,J){var O=As(J,1,D.zoom),K=Math.pow(2,D.zoom-J.tileID.overscaledZ),de=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:D.cameraToCenterDistance,u_pixels_to_tile_units:O,u_extrude_scale:[D.pixelsToGLUnits[0]/(O*K),D.pixelsToGLUnits[1]/(O*K)],u_overscale_factor:de}},Mi=function(Y,D,J){return{u_matrix:Y,u_inv_matrix:D,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Xi=function(Y,D){return{u_color:new i.UniformColor(Y,D.u_color),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_overlay:new i.Uniform1i(Y,D.u_overlay),u_overlay_scale:new i.Uniform1f(Y,D.u_overlay_scale)}},dn=function(Y,D,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:D,u_overlay:0,u_overlay_scale:J}},wn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},On=function(Y){return{u_matrix:Y}},Yi=function(Y,D){return{u_extrude_scale:new i.Uniform1f(Y,D.u_extrude_scale),u_intensity:new i.Uniform1f(Y,D.u_intensity),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},$i=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_color_ramp:new i.Uniform1i(Y,D.u_color_ramp),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},an=function(Y,D,J,O){return{u_matrix:Y,u_extrude_scale:As(D,1,J),u_intensity:O}},Fi=function(Y,D,J,O){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var de=Y.context.gl;return{u_matrix:K,u_world:[de.drawingBufferWidth,de.drawingBufferHeight],u_image:J,u_color_ramp:O,u_opacity:D.paint.get("heatmap-opacity")}},ta=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_latrange:new i.Uniform2f(Y,D.u_latrange),u_light:new i.Uniform2f(Y,D.u_light),u_shadow:new i.UniformColor(Y,D.u_shadow),u_highlight:new i.UniformColor(Y,D.u_highlight),u_accent:new i.UniformColor(Y,D.u_accent)}},Ca=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_dimension:new i.Uniform2f(Y,D.u_dimension),u_zoom:new i.Uniform1f(Y,D.u_zoom),u_unpack:new i.Uniform4f(Y,D.u_unpack)}},Ra=function(Y,D,J){var O=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),de=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var we=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(D.tileID.toUnwrapped(),we),u_image:0,u_latrange:Ua(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:O,u_highlight:K,u_accent:de}},La=function(Y,D){var J=D.stride,O=i.create();return i.ortho(O,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(O,O,[0,-i.EXTENT,0]),{u_matrix:O,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function Ua(Y,D){var J=Math.pow(2,D.canonical.z),O=D.canonical.y;return[new i.MercatorCoordinate(0,O/J).toLngLat().lat,new i.MercatorCoordinate(0,(O+1)/J).toLngLat().lat]}var Zn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels)}},Dn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_image:new i.Uniform1i(Y,D.u_image),u_image_height:new i.Uniform1f(Y,D.u_image_height)}},Ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,D.u_image),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},bo=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,D.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,D.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,D.u_sdfgamma),u_image:new i.Uniform1i(Y,D.u_image),u_tex_y_a:new i.Uniform1f(Y,D.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,D.u_tex_y_b),u_mix:new i.Uniform1f(Y,D.u_mix)}},Zo=function(Y,D,J){var O=Y.transform;return{u_matrix:ml(Y,D,J),u_ratio:1/As(D,1,O.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/O.pixelsToGLUnits[0],1/O.pixelsToGLUnits[1]]}},Ss=function(Y,D,J,O){return i.extend(Zo(Y,D,J),{u_image:0,u_image_height:O})},as=function(Y,D,J,O){var K=Y.transform,de=Ho(D,K);return{u_matrix:ml(Y,D,J),u_texsize:D.imageAtlasTexture.size,u_ratio:1/As(D,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[de,O.fromScale,O.toScale],u_fade:O.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},ws=function(Y,D,J,O,K){var de=Y.transform,ne=Y.lineAtlas,we=Ho(D,de),Oe=J.layout.get("line-cap")==="round",ht=ne.getDash(O.from,Oe),Yt=ne.getDash(O.to,Oe),cr=ht.width*K.fromScale,Nt=Yt.width*K.toScale;return i.extend(Zo(Y,D,J),{u_patternscale_a:[we/cr,-ht.height/2],u_patternscale_b:[we/Nt,-Yt.height/2],u_sdfgamma:ne.width/(Math.min(cr,Nt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:ht.y,u_tex_y_b:Yt.y,u_mix:K.t})};function Ho(Y,D){return 1/As(Y,1,D.tileZoom)}function ml(Y,D,J){return Y.translatePosMatrix(D.tileID.posMatrix,D,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Ws=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_tl_parent:new i.Uniform2f(Y,D.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,D.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,D.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,D.u_fade_t),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image0:new i.Uniform1i(Y,D.u_image0),u_image1:new i.Uniform1i(Y,D.u_image1),u_brightness_low:new i.Uniform1f(Y,D.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,D.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,D.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,D.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,D.u_spin_weights)}},Ls=function(Y,D,J,O,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:O.mix,u_opacity:O.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:ys(K.paint.get("raster-saturation")),u_contrast_factor:no(K.paint.get("raster-contrast")),u_spin_weights:va(K.paint.get("raster-hue-rotate"))}};function va(Y){Y*=Math.PI/180;var D=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*D-J+1)/3,(Math.sqrt(3)*D-J+1)/3]}function no(Y){return Y>0?1/(1-Y):1+Y}function ys(Y){return Y>0?1-1/(1.001-Y):-Y}var rs=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture)}},Ql=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},Cu=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texsize_icon:new i.Uniform2f(Y,D.u_texsize_icon),u_texture:new i.Uniform1i(Y,D.u_texture),u_texture_icon:new i.Uniform1i(Y,D.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},Yu=function(Y,D,J,O,K,de,ne,we,Oe,ht){var Yt=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:D?D.uSizeT:0,u_size:D?D.uSize:0,u_camera_to_center_distance:Yt.cameraToCenterDistance,u_pitch:Yt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Yt.width/Yt.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:de,u_label_plane_matrix:ne,u_coord_matrix:we,u_is_text:+Oe,u_pitch_with_map:+O,u_texsize:ht,u_texture:0}},Nc=function(Y,D,J,O,K,de,ne,we,Oe,ht,Yt){var cr=K.transform;return i.extend(Yu(Y,D,J,O,K,de,ne,we,Oe,ht),{u_gamma_scale:O?Math.cos(cr._pitch)*cr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Yt})},pu=function(Y,D,J,O,K,de,ne,we,Oe,ht){return i.extend(Nc(Y,D,J,O,K,de,ne,we,!0,Oe,!0),{u_texsize_icon:ht,u_texture_icon:1})},Uc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_color:new i.UniformColor(Y,D.u_color)}},xu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image:new i.Uniform1i(Y,D.u_image),u_pattern_tl_a:new i.Uniform2f(Y,D.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,D.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,D.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,D.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_mix:new i.Uniform1f(Y,D.u_mix),u_pattern_size_a:new i.Uniform2f(Y,D.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,D.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,D.u_scale_a),u_scale_b:new i.Uniform1f(Y,D.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,D.u_tile_units_to_pixels)}},Ac=function(Y,D,J){return{u_matrix:Y,u_opacity:D,u_color:J}},Va=function(Y,D,J,O,K,de){return i.extend(cf(O,de,J,K),{u_matrix:Y,u_opacity:D})},oo={fillExtrusion:Zf,fillExtrusionPattern:Wl,fill:qc,fillPattern:Tc,fillOutline:Tl,fillOutlinePattern:vu,circle:kt,collisionBox:Er,collisionCircle:xr,debug:Xi,clippingMask:wn,heatmap:Yi,heatmapTexture:$i,hillshade:ta,hillshadePrepare:Ca,line:Zn,lineGradient:Dn,linePattern:Ka,lineSDF:bo,raster:Ws,symbolIcon:rs,symbolSDF:Ql,symbolTextAndIcon:Cu,background:Uc,backgroundPattern:xu},Vc;function hc(Y,D,J,O,K,de,ne){for(var we=Y.context,Oe=we.gl,ht=Y.useProgram("collisionBox"),Yt=[],cr=0,Nt=0,Ne=0;Ne0){var zt=i.create(),_t=Bt;i.mul(zt,It.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(zt,zt,It.placementViewportMatrix),Yt.push({circleArray:Ut,circleOffset:Nt,transform:_t,invTransform:zt}),cr+=Ut.length/4,Nt=cr}Ft&&ht.draw(we,Oe.LINES,An.disabled,Vi.disabled,Y.colorModeForRenderPass(),wr.disabled,Kr(Bt,Y.transform,st),J.id,Ft.layoutVertexBuffer,Ft.indexBuffer,Ft.segments,null,Y.transform.zoom,null,null,Ft.collisionVertexBuffer)}}if(!(!ne||!Yt.length)){var Dt=Y.useProgram("collisionCircle"),vt=new i.StructArrayLayout2f1f2i16;vt.resize(cr*4),vt._trim();for(var lr=0,_r=0,Br=Yt;_r=0&&($e[It.associatedIconIndex]={shiftedAnchor:bi,angle:gn})}}if(Yt){Ne.clear();for(var Ei=Y.icon.placedSymbolArray,Oi=0;Oi0){var ne=i.browser.now(),we=(ne-Y.timeAdded)/de,Oe=D?(ne-D.timeAdded)/de:-1,ht=J.getSource(),Yt=K.coveringZoomLevel({tileSize:ht.tileSize,roundZoom:ht.roundZoom}),cr=!D||Math.abs(D.tileID.overscaledZ-Yt)>Math.abs(Y.tileID.overscaledZ-Yt),Nt=cr&&Y.refreshedUponExpiration?1:i.clamp(cr?we:1-Oe,0,1);return Y.refreshedUponExpiration&&we>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-Nt}:{opacity:Nt,mix:0}}else return{opacity:1,mix:0}}function nr(Y,D,J){var O=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var de=Y.context,ne=de.gl,we=Y.transform,Oe=we.tileSize,ht=J.paint.get("background-pattern");if(!Y.isPatternMissing(ht)){var Yt=!ht&&O.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Yt){var cr=Vi.disabled,Nt=Y.depthModeForSublayer(0,Yt==="opaque"?An.ReadWrite:An.ReadOnly),Ne=Y.colorModeForRenderPass(),$e=Y.useProgram(ht?"backgroundPattern":"background"),st=we.coveringTiles({tileSize:Oe});ht&&(de.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var It=J.getCrossfadeParameters(),Bt=0,Ft=st;Bt "+J.overscaledZ);var Bt=It+" "+Ne+"kb";$a(Y,Bt),ne.draw(O,K.TRIANGLES,we,Oe,wt.alphaBlended,wr.disabled,dn(de,i.Color.transparent,st),Yt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function $a(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,O=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(D,5,5),K.strokeText(D,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(O.LINEAR,O.CLAMP_TO_EDGE)}function Co(Y,D,J){var O=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var de=K.prerender;de&&(Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),de.call(K,O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),O.setStencilMode(Vi.disabled);var ne=K.renderingMode==="3d"?new An(Y.context.gl.LEQUAL,An.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,An.ReadOnly);O.setDepthMode(ne),K.render(O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState(),O.bindFramebuffer.set(null)}}var Qa={symbol:w,circle:ut,heatmap:Mt,line:Cr,fill:ve,"fill-extrusion":Ie,hillshade:Qe,raster:qt,background:nr,debug:Aa,custom:Co},mo=function(D,J){this.context=new Xr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=ti.maxUnderzooming+ti.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Vf,this.gpuTimers={}};mo.prototype.resize=function(D,J){if(this.width=D*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var O=0,K=this.style._order;O256&&this.clearStencil(),O.setColorMode(wt.disabled),O.setDepthMode(An.disabled);var de=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,we=J;ne256&&this.clearStencil();var D=this.nextStencilID++,J=this.context.gl;return new Vi({func:J.NOTEQUAL,mask:255},D,255,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilModeForClipping=function(D){var J=this.context.gl;return new Vi({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilConfigForOverlap=function(D){var J,O=this.context.gl,K=D.sort(function(ht,Yt){return Yt.overscaledZ-ht.overscaledZ}),de=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-de+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var we={},Oe=0;Oe=0;this.currentLayer--){var zt=this.style._layers[K[this.currentLayer]],_t=de[zt.source],Dt=Oe[zt.source];this._renderTileClippingMasks(zt,Dt),this.renderLayer(this,_t,zt,Dt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},mo.prototype.isPatternMissing=function(D){if(!D)return!1;if(!D.from||!D.to)return!0;var J=this.imageManager.getPattern(D.from.toString()),O=this.imageManager.getPattern(D.to.toString());return!J||!O},mo.prototype.useProgram=function(D,J){this.cache=this.cache||{};var O=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[O]||(this.cache[O]=new Rf(this.context,D,wf[D],J,oo[D],this._showOverdrawInspector)),this.cache[O]},mo.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},mo.prototype.setBaseState=function(){var D=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(D.FUNC_ADD)},mo.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var D=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,D.RGBA)}},mo.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Bo=function(D,J){this.points=D,this.planes=J};Bo.fromInvProjectionMatrix=function(D,J,O){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],de=Math.pow(2,O),ne=K.map(function(ht){return i.transformMat4([],ht,D)}).map(function(ht){return i.scale$1([],ht,1/ht[3]/J*de)}),we=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Oe=we.map(function(ht){var Yt=i.sub([],ne[ht[0]],ne[ht[1]]),cr=i.sub([],ne[ht[2]],ne[ht[1]]),Nt=i.normalize([],i.cross([],Yt,cr)),Ne=-i.dot(Nt,ne[ht[1]]);return Nt.concat(Ne)});return new Bo(ne,Oe)};var Ps=function(D,J){this.min=D,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Ps.prototype.quadrant=function(D){for(var J=[D%2===0,D<2],O=i.clone$2(this.min),K=i.clone$2(this.max),de=0;de=0;if(ne===0)return 0;ne!==J.length&&(O=!1)}if(O)return 2;for(var Oe=0;Oe<3;Oe++){for(var ht=Number.MAX_VALUE,Yt=-Number.MAX_VALUE,cr=0;crthis.max[Oe]-this.min[Oe])return 0}return 1};var Ts=function(D,J,O,K){if(D===void 0&&(D=0),J===void 0&&(J=0),O===void 0&&(O=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(O)||O<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=D,this.bottom=J,this.left=O,this.right=K};Ts.prototype.interpolate=function(D,J,O){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,O)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,O)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,O)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,O)),this},Ts.prototype.getCenter=function(D,J){var O=i.clamp((this.left+D-this.right)/2,0,D),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(O,K)},Ts.prototype.equals=function(D){return this.top===D.top&&this.bottom===D.bottom&&this.left===D.left&&this.right===D.right},Ts.prototype.clone=function(){return new Ts(this.top,this.bottom,this.left,this.right)},Ts.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wo=function(D,J,O,K,de){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=de===void 0?!0:de,this._minZoom=D||0,this._maxZoom=J||22,this._minPitch=O==null?0:O,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Ts,this._posMatrixCache={},this._alignedPosMatrixCache={}},To={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wo.prototype.clone=function(){var D=new wo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return D.tileSize=this.tileSize,D.latRange=this.latRange,D.width=this.width,D.height=this.height,D._center=this._center,D.zoom=this.zoom,D.angle=this.angle,D._fov=this._fov,D._pitch=this._pitch,D._unmodified=this._unmodified,D._edgeInsets=this._edgeInsets.clone(),D._calcMatrices(),D},To.minZoom.get=function(){return this._minZoom},To.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},To.maxZoom.get=function(){return this._maxZoom},To.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},To.minPitch.get=function(){return this._minPitch},To.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},To.maxPitch.get=function(){return this._maxPitch},To.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},To.renderWorldCopies.get=function(){return this._renderWorldCopies},To.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},To.worldSize.get=function(){return this.tileSize*this.scale},To.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},To.size.get=function(){return new i.Point(this.width,this.height)},To.bearing.get=function(){return-this.angle/Math.PI*180},To.bearing.set=function(Y){var D=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==D&&(this._unmodified=!1,this.angle=D,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},To.pitch.get=function(){return this._pitch/Math.PI*180},To.pitch.set=function(Y){var D=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==D&&(this._unmodified=!1,this._pitch=D,this._calcMatrices())},To.fov.get=function(){return this._fov/Math.PI*180},To.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},To.zoom.get=function(){return this._zoom},To.zoom.set=function(Y){var D=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==D&&(this._unmodified=!1,this._zoom=D,this.scale=this.zoomScale(D),this.tileZoom=Math.floor(D),this.zoomFraction=D-this.tileZoom,this._constrain(),this._calcMatrices())},To.center.get=function(){return this._center},To.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},To.padding.get=function(){return this._edgeInsets.toJSON()},To.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},To.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wo.prototype.isPaddingEqual=function(D){return this._edgeInsets.equals(D)},wo.prototype.interpolatePadding=function(D,J,O){this._unmodified=!1,this._edgeInsets.interpolate(D,J,O),this._constrain(),this._calcMatrices()},wo.prototype.coveringZoomLevel=function(D){var J=(D.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/D.tileSize));return Math.max(0,J)},wo.prototype.getVisibleUnwrappedCoordinates=function(D){var J=[new i.UnwrappedTileID(0,D)];if(this._renderWorldCopies)for(var O=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),de=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),we=Math.floor(Math.min(O.x,K.x,de.x,ne.x)),Oe=Math.floor(Math.max(O.x,K.x,de.x,ne.x)),ht=1,Yt=we-ht;Yt<=Oe+ht;Yt++)Yt!==0&&J.push(new i.UnwrappedTileID(Yt,D));return J},wo.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),O=J;if(D.minzoom!==void 0&&JD.maxzoom&&(J=D.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),de=Math.pow(2,J),ne=[de*K.x,de*K.y,0],we=Bo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Oe=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Oe=J);var ht=3,Yt=function(ci){return{aabb:new Ps([ci*de,0,0],[(ci+1)*de,de,0]),zoom:0,x:0,y:0,wrap:ci,fullyVisible:!1}},cr=[],Nt=[],Ne=J,$e=D.reparseOverscaled?O:J;if(this._renderWorldCopies)for(var st=1;st<=3;st++)cr.push(Yt(-st)),cr.push(Yt(st));for(cr.push(Yt(0));cr.length>0;){var It=cr.pop(),Bt=It.x,Ft=It.y,Ut=It.fullyVisible;if(!Ut){var zt=It.aabb.intersects(we);if(zt===0)continue;Ut=zt===2}var _t=It.aabb.distanceX(ne),Dt=It.aabb.distanceY(ne),vt=Math.max(Math.abs(_t),Math.abs(Dt)),lr=ht+(1<lr&&It.zoom>=Oe){Nt.push({tileID:new i.OverscaledTileID(It.zoom===Ne?$e:It.zoom,It.wrap,It.zoom,Bt,Ft),distanceSq:i.sqrLen([ne[0]-.5-Bt,ne[1]-.5-Ft])});continue}for(var _r=0;_r<4;_r++){var Br=(Bt<<1)+_r%2,Di=(Ft<<1)+(_r>>1);cr.push({aabb:It.aabb.quadrant(_r),zoom:It.zoom+1,x:Br,y:Di,wrap:It.wrap,fullyVisible:Ut})}}return Nt.sort(function(ci,bi){return ci.distanceSq-bi.distanceSq}).map(function(ci){return ci.tileID})},wo.prototype.resize=function(D,J){this.width=D,this.height=J,this.pixelsToGLUnits=[2/D,-2/J],this._constrain(),this._calcMatrices()},To.unmodified.get=function(){return this._unmodified},wo.prototype.zoomScale=function(D){return Math.pow(2,D)},wo.prototype.scaleZoom=function(D){return Math.log(D)/Math.LN2},wo.prototype.project=function(D){var J=i.clamp(D.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(D.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},wo.prototype.unproject=function(D){return new i.MercatorCoordinate(D.x/this.worldSize,D.y/this.worldSize).toLngLat()},To.point.get=function(){return this.project(this.center)},wo.prototype.setLocationAtPoint=function(D,J){var O=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),de=this.locationCoordinate(D),ne=new i.MercatorCoordinate(de.x-(O.x-K.x),de.y-(O.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},wo.prototype.locationPoint=function(D){return this.coordinatePoint(this.locationCoordinate(D))},wo.prototype.pointLocation=function(D){return this.coordinateLocation(this.pointCoordinate(D))},wo.prototype.locationCoordinate=function(D){return i.MercatorCoordinate.fromLngLat(D)},wo.prototype.coordinateLocation=function(D){return D.toLngLat()},wo.prototype.pointCoordinate=function(D){var J=0,O=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(O,O,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var de=O[3],ne=K[3],we=O[0]/de,Oe=K[0]/ne,ht=O[1]/de,Yt=K[1]/ne,cr=O[2]/de,Nt=K[2]/ne,Ne=cr===Nt?0:(J-cr)/(Nt-cr);return new i.MercatorCoordinate(i.number(we,Oe,Ne)/this.worldSize,i.number(ht,Yt,Ne)/this.worldSize)},wo.prototype.coordinatePoint=function(D){var J=[D.x*this.worldSize,D.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},wo.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},wo.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},wo.prototype.setMaxBounds=function(D){D?(this.lngRange=[D.getWest(),D.getEast()],this.latRange=[D.getSouth(),D.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wo.prototype.calculatePosMatrix=function(D,J){J===void 0&&(J=!1);var O=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[O])return K[O];var de=D.canonical,ne=this.worldSize/this.zoomScale(de.z),we=de.x+Math.pow(2,de.z)*D.wrap,Oe=i.identity(new Float64Array(16));return i.translate(Oe,Oe,[we*ne,de.y*ne,0]),i.scale(Oe,Oe,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Oe,J?this.alignedProjMatrix:this.projMatrix,Oe),K[O]=new Float32Array(Oe),K[O]},wo.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wo.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var D=-90,J=90,O=-180,K=180,de,ne,we,Oe,ht=this.size,Yt=this._unmodified;if(this.latRange){var cr=this.latRange;D=i.mercatorYfromLat(cr[1])*this.worldSize,J=i.mercatorYfromLat(cr[0])*this.worldSize,de=J-DJ&&(Oe=J-It)}if(this.lngRange){var Bt=Ne.x,Ft=ht.x/2;Bt-FtK&&(we=K-Ft)}(we!==void 0||Oe!==void 0)&&(this.center=this.unproject(new i.Point(we!==void 0?we:Ne.x,Oe!==void 0?Oe:Ne.y))),this._unmodified=Yt,this._constraining=!1}},wo.prototype._calcMatrices=function(){if(this.height){var D=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(D)*this.height;var O=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),de=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-O-K,.01,Math.PI-.01)),ne=this.point,we=ne.x,Oe=ne.y,ht=Math.cos(Math.PI/2-this._pitch)*de+this.cameraToCenterDistance,Yt=ht*1.01,cr=this.height/50,Nt=new Float64Array(16);i.perspective(Nt,this._fov,this.width/this.height,cr,Yt),Nt[8]=-J.x*2/this.width,Nt[9]=J.y*2/this.height,i.scale(Nt,Nt,[1,-1,1]),i.translate(Nt,Nt,[0,0,-this.cameraToCenterDistance]),i.rotateX(Nt,Nt,this._pitch),i.rotateZ(Nt,Nt,this.angle),i.translate(Nt,Nt,[-we,-Oe,0]),this.mercatorMatrix=i.scale([],Nt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(Nt,Nt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Nt,this.invProjMatrix=i.invert([],this.projMatrix);var Ne=this.width%2/2,$e=this.height%2/2,st=Math.cos(this.angle),It=Math.sin(this.angle),Bt=we-Math.round(we)+st*Ne+It*$e,Ft=Oe-Math.round(Oe)+st*$e+It*Ne,Ut=new Float64Array(Nt);if(i.translate(Ut,Ut,[Bt>.5?Bt-1:Bt,Ft>.5?Ft-1:Ft,0]),this.alignedProjMatrix=Ut,Nt=i.create(),i.scale(Nt,Nt,[this.width/2,-this.height/2,1]),i.translate(Nt,Nt,[1,-1,0]),this.labelPlaneMatrix=Nt,Nt=i.create(),i.scale(Nt,Nt,[1,-1,1]),i.translate(Nt,Nt,[-1,-1,0]),i.scale(Nt,Nt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Nt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Nt=i.invert(new Float64Array(16),this.pixelMatrix),!Nt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Nt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wo.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var D=this.pointCoordinate(new i.Point(0,0)),J=[D.x*this.worldSize,D.y*this.worldSize,0,1],O=i.transformMat4(J,J,this.pixelMatrix);return O[3]/this.cameraToCenterDistance},wo.prototype.getCameraPoint=function(){var D=this._pitch,J=Math.tan(D)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},wo.prototype.getCameraQueryGeometry=function(D){var J=this.getCameraPoint();if(D.length===1)return[D[0],J];for(var O=J.x,K=J.y,de=J.x,ne=J.y,we=0,Oe=D;we=3&&!D.some(function(O){return isNaN(O)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(D[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+D[2],+D[1]],zoom:+D[0],bearing:J,pitch:+(D[4]||0)}),!0}return!1},Nl.prototype._updateHashUnthrottled=function(){var D=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,D)}catch(J){}};var Lu={linearity:.3,easing:i.bezier(0,0,.3,1)},au=i.extend({deceleration:2500,maxSpeed:1400},Lu),Js=i.extend({deceleration:20,maxSpeed:1400},Lu),eu=i.extend({deceleration:1e3,maxSpeed:360},Lu),dc=i.extend({deceleration:1e3,maxSpeed:90},Lu),Al=function(D){this._map=D,this.clear()};Al.prototype.clear=function(){this._inertiaBuffer=[]},Al.prototype.record=function(D){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:D})},Al.prototype._drainInertiaBuffer=function(){for(var D=this._inertiaBuffer,J=i.browser.now(),O=160;D.length>0&&J-D[0].time>O;)D.shift()},Al.prototype._onMoveEnd=function(D){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},O=0,K=this._inertiaBuffer;O=this._clickTolerance||this._map.fire(new se(D.type,this._map,D))},Ve.prototype.dblclick=function(D){return this._firePreventable(new se(D.type,this._map,D))},Ve.prototype.mouseover=function(D){this._map.fire(new se(D.type,this._map,D))},Ve.prototype.mouseout=function(D){this._map.fire(new se(D.type,this._map,D))},Ve.prototype.touchstart=function(D){return this._firePreventable(new Te(D.type,this._map,D))},Ve.prototype.touchmove=function(D){this._map.fire(new Te(D.type,this._map,D))},Ve.prototype.touchend=function(D){this._map.fire(new Te(D.type,this._map,D))},Ve.prototype.touchcancel=function(D){this._map.fire(new Te(D.type,this._map,D))},Ve.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},Ve.prototype.isEnabled=function(){return!0},Ve.prototype.isActive=function(){return!1},Ve.prototype.enable=function(){},Ve.prototype.disable=function(){};var Ye=function(D){this._map=D};Ye.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Ye.prototype.mousemove=function(D){this._map.fire(new se(D.type,this._map,D))},Ye.prototype.mousedown=function(){this._delayContextMenu=!0},Ye.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Ye.prototype.contextmenu=function(D){this._delayContextMenu?this._contextMenuEvent=D:this._map.fire(new se(D.type,this._map,D)),this._map.listens("contextmenu")&&D.preventDefault()},Ye.prototype.isEnabled=function(){return!0},Ye.prototype.isActive=function(){return!1},Ye.prototype.enable=function(){},Ye.prototype.disable=function(){};var Pt=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};Pt.prototype.isEnabled=function(){return!!this._enabled},Pt.prototype.isActive=function(){return!!this._active},Pt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Pt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Pt.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},Pt.prototype.mousemoveWindow=function(D,J){if(this._active){var O=J;if(!(this._lastPos.equals(O)||!this._box&&O.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),O.length===this.numTouches&&(this.centroid=Xt(J),this.touches=ot(O,J)))},zr.prototype.touchmove=function(D,J,O){if(!(this.aborted||!this.centroid)){var K=ot(O,J);for(var de in this.touches){var ne=this.touches[de],we=K[de];(!we||we.dist(ne)>Ur)&&(this.aborted=!0)}}},zr.prototype.touchend=function(D,J,O){if((!this.centroid||D.timeStamp-this.startTime>pr)&&(this.aborted=!0),O.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var gi=function(D){this.singleTap=new zr(D),this.numTaps=D.numTaps,this.reset()};gi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},gi.prototype.touchstart=function(D,J,O){this.singleTap.touchstart(D,J,O)},gi.prototype.touchmove=function(D,J,O){this.singleTap.touchmove(D,J,O)},gi.prototype.touchend=function(D,J,O){var K=this.singleTap.touchend(D,J,O);if(K){var de=D.timeStamp-this.lastTime0&&(this._active=!0);var K=ot(O,J),de=new i.Point(0,0),ne=new i.Point(0,0),we=0;for(var Oe in K){var ht=K[Oe],Yt=this._touches[Oe];Yt&&(de._add(ht),ne._add(ht.sub(Yt)),we++,K[Oe]=ht)}if(this._touches=K,!(weMath.abs(Y.x)}var Un=100,ja=(function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},D.prototype._start=function(O){this._lastPoints=O,Xs(O[0].sub(O[1]))&&(this._valid=!1)},D.prototype._move=function(O,K,de){var ne=O[0].sub(this._lastPoints[0]),we=O[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,we,de.timeStamp),!!this._valid){this._lastPoints=O,this._active=!0;var Oe=(ne.y+we.y)/2,ht=-.5;return{pitchDelta:Oe*ht}}},D.prototype.gestureBeginsVertically=function(O,K,de){if(this._valid!==void 0)return this._valid;var ne=2,we=O.mag()>=ne,Oe=K.mag()>=ne;if(!(!we&&!Oe)){if(!we||!Oe)return this._firstMove===void 0&&(this._firstMove=de),de-this._firstMove0==K.y>0;return Xs(O)&&Xs(K)&&ht}},D})(na),Fo={panStep:100,bearingStep:15,pitchStep:10},Uo=function(){var D=Fo;this._panStep=D.panStep,this._bearingStep=D.bearingStep,this._pitchStep=D.pitchStep,this._rotationDisabled=!1};Uo.prototype.reset=function(){this._active=!1},Uo.prototype.keydown=function(D){var J=this;if(!(D.altKey||D.ctrlKey||D.metaKey)){var O=0,K=0,de=0,ne=0,we=0;switch(D.keyCode){case 61:case 107:case 171:case 187:O=1;break;case 189:case 109:case 173:O=-1;break;case 37:D.shiftKey?K=-1:(D.preventDefault(),ne=-1);break;case 39:D.shiftKey?K=1:(D.preventDefault(),ne=1);break;case 38:D.shiftKey?de=1:(D.preventDefault(),we=-1);break;case 40:D.shiftKey?de=-1:(D.preventDefault(),we=1);break;default:return}return this._rotationDisabled&&(K=0,de=0),{cameraAnimation:function(Oe){var ht=Oe.getZoom();Oe.easeTo({duration:300,easeId:"keyboardHandler",easing:$s,zoom:O?Math.round(ht)+O*(D.shiftKey?2:1):ht,bearing:Oe.getBearing()+K*J._bearingStep,pitch:Oe.getPitch()+de*J._pitchStep,offset:[-ne*J._panStep,-we*J._panStep],center:Oe.getCenter()},{originalEvent:D})}}}},Uo.prototype.enable=function(){this._enabled=!0},Uo.prototype.disable=function(){this._enabled=!1,this.reset()},Uo.prototype.isEnabled=function(){return this._enabled},Uo.prototype.isActive=function(){return this._active},Uo.prototype.disableRotation=function(){this._rotationDisabled=!0},Uo.prototype.enableRotation=function(){this._rotationDisabled=!1};function $s(Y){return Y*(2-Y)}var Ml=4.000244140625,bu=1/100,dl=1/450,Sc=2,Me=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=bu,this._wheelZoomRate=dl,i.bindAll(["_onTimeout"],this)};Me.prototype.setZoomRate=function(D){this._defaultZoomRate=D},Me.prototype.setWheelZoomRate=function(D){this._wheelZoomRate=D},Me.prototype.isEnabled=function(){return!!this._enabled},Me.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Me.prototype.isZooming=function(){return!!this._zooming},Me.prototype.enable=function(D){this.isEnabled()||(this._enabled=!0,this._aroundCenter=D&&D.around==="center")},Me.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Me.prototype.wheel=function(D){if(this.isEnabled()){var J=D.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?D.deltaY*40:D.deltaY,O=i.browser.now(),K=O-(this._lastWheelEventTime||0);this._lastWheelEventTime=O,J!==0&&J%Ml===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,D)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),D.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=D,this._delta-=J,this._active||this._start(D)),D.preventDefault()}},Me.prototype._onTimeout=function(D){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(D)},Me.prototype._start=function(D){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,D);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Me.prototype.renderFrame=function(){var D=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var O=this._type==="wheel"&&Math.abs(this._delta)>Ml?this._wheelZoomRate:this._defaultZoomRate,K=Sc/(1+Math.exp(-Math.abs(this._delta*O)));this._delta<0&&K!==0&&(K=1/K);var de=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(de*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,we=this._startZoom,Oe=this._easing,ht=!1,Yt;if(this._type==="wheel"&&we&&Oe){var cr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),Nt=Oe(cr);Yt=i.number(we,ne,Nt),cr<1?this._frameId||(this._frameId=!0):ht=!0}else Yt=ne,ht=!0;return this._active=!0,ht&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ht,zoomDelta:Yt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Me.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var O=this._prevEase,K=(i.browser.now()-O.start)/O.duration,de=O.easing(K+.01)-O.easing(K),ne=.27/Math.sqrt(de*de+1e-4)*.01,we=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,we,.25,1)}return this._prevEase={start:i.browser.now(),duration:D,easing:J},J},Me.prototype.reset=function(){this._active=!1};var bt=function(D,J){this._clickZoom=D,this._tapZoom=J};bt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},bt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},bt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},bt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Ot=function(){this.reset()};Ot.prototype.reset=function(){this._active=!1},Ot.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(O){O.easeTo({duration:300,zoom:O.getZoom()+(D.shiftKey?-1:1),around:O.unproject(J)},{originalEvent:D})}}},Ot.prototype.enable=function(){this._enabled=!0},Ot.prototype.disable=function(){this._enabled=!1,this.reset()},Ot.prototype.isEnabled=function(){return this._enabled},Ot.prototype.isActive=function(){return this._active};var Lr=function(){this._tap=new gi({numTouches:1,numTaps:1}),this.reset()};Lr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Lr.prototype.touchstart=function(D,J,O){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>dr&&this.reset(),this._tapTime?O.length>0&&(this._swipePoint=J[0],this._swipeTouch=O[0].identifier):this._tap.touchstart(D,J,O))},Lr.prototype.touchmove=function(D,J,O){if(!this._tapTime)this._tap.touchmove(D,J,O);else if(this._swipePoint){if(O[0].identifier!==this._swipeTouch)return;var K=J[0],de=K.y-this._swipePoint.y;return this._swipePoint=K,D.preventDefault(),this._active=!0,{zoomDelta:de/128}}},Lr.prototype.touchend=function(D,J,O){if(this._tapTime)this._swipePoint&&O.length===0&&this.reset();else{var K=this._tap.touchend(D,J,O);K&&(this._tapTime=D.timeStamp)}},Lr.prototype.touchcancel=function(){this.reset()},Lr.prototype.enable=function(){this._enabled=!0},Lr.prototype.disable=function(){this._enabled=!1,this.reset()},Lr.prototype.isEnabled=function(){return this._enabled},Lr.prototype.isActive=function(){return this._active};var Vr=function(D,J,O){this._el=D,this._mousePan=J,this._touchPan=O};Vr.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Vr.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Vr.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Vr.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Or=function(D,J,O){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=O};Or.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Or.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Or.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Or.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Nr=function(D,J,O,K){this._el=D,this._touchZoom=J,this._touchRotate=O,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};Nr.prototype.enable=function(D){this._touchZoom.enable(D),this._rotationDisabled||this._touchRotate.enable(D),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Nr.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Nr.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Nr.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Nr.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Nr.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var vi=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Ni=(function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D})(i.Event);function qi(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var Si=function(D,J){this._map=D,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Al(D),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var O=this._el;this._listeners=[[O,"touchstart",{passive:!0}],[O,"touchmove",{passive:!1}],[O,"touchend",void 0],[O,"touchcancel",void 0],[O,"mousedown",void 0],[O,"mousemove",void 0],[O,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[O,"mouseover",void 0],[O,"mouseout",void 0],[O,"dblclick",void 0],[O,"click",void 0],[O,"keydown",{capture:!1}],[O,"keyup",void 0],[O,"wheel",{passive:!1}],[O,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,de=this._listeners;Kwe?Math.min(2,_t):Math.max(.5,_t),ci=Math.pow(Di,1-_r),bi=ne.unproject(Ut.add(zt.mult(_r*ci)).mult(Br));ne.setLocationAtPoint(ne.renderWorldCopies?bi.wrap():bi,It)}de._fireMoveEvents(K)},function(_r){de._afterEase(K,_r)},O),this},D.prototype._prepareEase=function(O,K,de){de===void 0&&(de={}),this._moving=!0,!K&&!de.moving&&this.fire(new i.Event("movestart",O)),this._zooming&&!de.zooming&&this.fire(new i.Event("zoomstart",O)),this._rotating&&!de.rotating&&this.fire(new i.Event("rotatestart",O)),this._pitching&&!de.pitching&&this.fire(new i.Event("pitchstart",O))},D.prototype._fireMoveEvents=function(O){this.fire(new i.Event("move",O)),this._zooming&&this.fire(new i.Event("zoom",O)),this._rotating&&this.fire(new i.Event("rotate",O)),this._pitching&&this.fire(new i.Event("pitch",O))},D.prototype._afterEase=function(O,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var de=this._zooming,ne=this._rotating,we=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,de&&this.fire(new i.Event("zoomend",O)),ne&&this.fire(new i.Event("rotateend",O)),we&&this.fire(new i.Event("pitchend",O)),this.fire(new i.Event("moveend",O))}},D.prototype.flyTo=function(O,K){var de=this;if(!O.essential&&i.browser.prefersReducedMotion){var ne=i.pick(O,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),O=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},O);var we=this.transform,Oe=this.getZoom(),ht=this.getBearing(),Yt=this.getPitch(),cr=this.getPadding(),Nt="zoom"in O?i.clamp(+O.zoom,we.minZoom,we.maxZoom):Oe,Ne="bearing"in O?this._normalizeBearing(O.bearing,ht):ht,$e="pitch"in O?+O.pitch:Yt,st="padding"in O?O.padding:we.padding,It=we.zoomScale(Nt-Oe),Bt=i.Point.convert(O.offset),Ft=we.centerPoint.add(Bt),Ut=we.pointLocation(Ft),zt=i.LngLat.convert(O.center||Ut);this._normalizeCenter(zt);var _t=we.project(Ut),Dt=we.project(zt).sub(_t),vt=O.curve,lr=Math.max(we.width,we.height),_r=lr/It,Br=Dt.mag();if("minZoom"in O){var Di=i.clamp(Math.min(O.minZoom,Oe,Nt),we.minZoom,we.maxZoom),ci=lr/we.zoomScale(Di-Oe);vt=Math.sqrt(ci/Br*2)}var bi=vt*vt;function gn(so){var Yo=(_r*_r-lr*lr+(so?-1:1)*bi*bi*Br*Br)/(2*(so?_r:lr)*bi*Br);return Math.log(Math.sqrt(Yo*Yo+1)-Yo)}function tn(so){return(Math.exp(so)-Math.exp(-so))/2}function Ei(so){return(Math.exp(so)+Math.exp(-so))/2}function Oi(so){return tn(so)/Ei(so)}var Gi=gn(0),on=function(so){return Ei(Gi)/Ei(Gi+vt*so)},zn=function(so){return lr*((Ei(Gi)*Oi(Gi+vt*so)-tn(Gi))/bi)/Br},Ja=(gn(1)-Gi)/vt;if(Math.abs(Br)<1e-6||!isFinite(Ja)){if(Math.abs(lr-_r)<1e-6)return this.easeTo(O,K);var co=_rO.maxDuration&&(O.duration=0),this._zooming=!0,this._rotating=ht!==Ne,this._pitching=$e!==Yt,this._padding=!we.isPaddingEqual(st),this._prepareEase(K,!1),this._ease(function(so){var Yo=so*Ja,ms=1/on(Yo);we.zoom=so===1?Nt:Oe+we.scaleZoom(ms),de._rotating&&(we.bearing=i.number(ht,Ne,so)),de._pitching&&(we.pitch=i.number(Yt,$e,so)),de._padding&&(we.interpolatePadding(cr,st,so),Ft=we.centerPoint.add(Bt));var ou=so===1?zt:we.unproject(_t.add(Dt.mult(zn(Yo))).mult(ms));we.setLocationAtPoint(we.renderWorldCopies?ou.wrap():ou,Ft),de._fireMoveEvents(K)},function(){return de._afterEase(K)},O),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(O,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var de=this._onEaseEnd;delete this._onEaseEnd,de.call(this,K)}if(!O){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(O,K,de){de.animate===!1||de.duration===0?(O(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=de,this._onEaseFrame=O,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var O=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(O)),O<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(O,K){O=i.wrap(O,-180,180);var de=Math.abs(O-K);return Math.abs(O-360-K)180?-360:de<-180?360:0}},D})(i.Evented),Qi=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Qi.prototype.getDefaultPosition=function(){return"bottom-right"},Qi.prototype.onAdd=function(D){var J=this.options&&this.options.compact;return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Qi.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Qi.prototype._setElementTitle=function(D,J){var O=this._map._getUIString("AttributionControl."+J);D.title=O,D.setAttribute("aria-label",O)},Qi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Qi.prototype._updateEditLink=function(){var D=this._editLink;D||(D=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(D){var O=J.reduce(function(K,de,ne){return de.value&&(K+=de.key+"="+de.value+(ne=0)return!1;return!0});var we=D.join(" | ");we!==this._attribHTML&&(this._attribHTML=we,D.length?(this._innerContainer.innerHTML=we,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Qi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Wi=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};Wi.prototype.onAdd=function(D){this._map=D,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Wi.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Wi.prototype.getDefaultPosition=function(){return"bottom-left"},Wi.prototype._updateLogo=function(D){(!D||D.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Wi.prototype._logoRequired=function(){if(this._map.style){var D=this._map.style.sourceCaches;for(var J in D){var O=D[J].getSource();if(O.mapbox_logo)return!0}return!1}},Wi.prototype._updateCompact=function(){var D=this._container.children;if(D.length){var J=D[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var oi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};oi.prototype.add=function(D){var J=++this._id,O=this._queue;return O.push({callback:D,id:J,cancelled:!1}),J},oi.prototype.remove=function(D){for(var J=this._currentlyRunning,O=J?this._queue.concat(J):this._queue,K=0,de=O;KO.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(O.minPitch!=null&&O.maxPitch!=null&&O.minPitch>O.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(O.minPitch!=null&&O.minPitchqn)throw new Error("maxPitch must be less than or equal to "+qn);var de=new wo(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies);if(Y.call(this,de,O),this._interactive=O.interactive,this._maxTileCacheSize=O.maxTileCacheSize,this._failIfMajorPerformanceCaveat=O.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=O.preserveDrawingBuffer,this._antialias=O.antialias,this._trackResize=O.trackResize,this._bearingSnap=O.bearingSnap,this._refreshExpiredTiles=O.refreshExpiredTiles,this._fadeDuration=O.fadeDuration,this._crossSourceCollisions=O.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=O.collectResourceTiming,this._renderTaskQueue=new oi,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Tr,O.locale),this._clickTolerance=O.clickTolerance,this._requestManager=new i.RequestManager(O.transformRequest,O.accessToken),typeof O.container=="string"){if(this._container=i.window.document.getElementById(O.container),!this._container)throw new Error("Container '"+O.container+"' not found.")}else if(O.container instanceof yi)this._container=O.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(O.maxBounds&&this.setMaxBounds(O.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Si(this,O);var ne=typeof O.hash=="string"&&O.hash||void 0;this._hash=O.hash&&new Nl(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:O.center,zoom:O.zoom,bearing:O.bearing,pitch:O.pitch}),O.bounds&&(this.resize(),this.fitBounds(O.bounds,i.extend({},O.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=O.localIdeographFontFamily,O.style&&this.setStyle(O.style,{localIdeographFontFamily:O.localIdeographFontFamily}),O.attributionControl&&this.addControl(new Qi({customAttribution:O.customAttribution})),this.addControl(new Wi,O.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(we){K._update(we.dataType==="style"),K.fire(new i.Event(we.dataType+"data",we))}),this.on("dataloading",function(we){K.fire(new i.Event(we.dataType+"dataloading",we))})}Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return D.prototype._getMapId=function(){return this._mapId},D.prototype.addControl=function(K,de){if(de===void 0&&(K.getDefaultPosition?de=K.getDefaultPosition():de="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var we=this._controlPositions[de];return de.indexOf("bottom")!==-1?we.insertBefore(ne,we.firstChild):we.appendChild(ne),this},D.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var de=this._controls.indexOf(K);return de>-1&&this._controls.splice(de,1),K.onRemove(this),this},D.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},D.prototype.resize=function(K){var de=this._containerDimensions(),ne=de[0],we=de[1];this._resizeCanvas(ne,we),this.transform.resize(ne,we),this.painter.resize(ne,we);var Oe=!this._moving;return Oe&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Oe&&this.fire(new i.Event("moveend",K)),this},D.prototype.getBounds=function(){return this.transform.getBounds()},D.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},D.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},D.prototype.setMinZoom=function(K){if(K=K==null?ui:K,K>=ui&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},D.prototype.getMaxZoom=function(){return this.transform.maxZoom},D.prototype.setMinPitch=function(K){if(K=K==null?Zi:K,K=Zi&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()qn)throw new Error("maxPitch must be less than or equal to "+qn);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},D.prototype.getMaxPitch=function(){return this.transform.maxPitch},D.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},D.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},D.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},D.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},D.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},D.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},D.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},D.prototype._createDelegatedListener=function(K,de,ne){var we=this,Oe;if(K==="mouseenter"||K==="mouseover"){var ht=!1,Yt=function(It){var Bt=we.getLayer(de)?we.queryRenderedFeatures(It.point,{layers:[de]}):[];Bt.length?ht||(ht=!0,ne.call(we,new se(K,we,It.originalEvent,{features:Bt}))):ht=!1},cr=function(){ht=!1};return{layer:de,listener:ne,delegates:{mousemove:Yt,mouseout:cr}}}else if(K==="mouseleave"||K==="mouseout"){var Nt=!1,Ne=function(It){var Bt=we.getLayer(de)?we.queryRenderedFeatures(It.point,{layers:[de]}):[];Bt.length?Nt=!0:Nt&&(Nt=!1,ne.call(we,new se(K,we,It.originalEvent)))},$e=function(It){Nt&&(Nt=!1,ne.call(we,new se(K,we,It.originalEvent)))};return{layer:de,listener:ne,delegates:{mousemove:Ne,mouseout:$e}}}else{var st=function(It){var Bt=we.getLayer(de)?we.queryRenderedFeatures(It.point,{layers:[de]}):[];Bt.length&&(It.features=Bt,ne.call(we,It),delete It.features)};return{layer:de,listener:ne,delegates:(Oe={},Oe[K]=st,Oe)}}},D.prototype.on=function(K,de,ne){if(ne===void 0)return Y.prototype.on.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(we);for(var Oe in we.delegates)this.on(Oe,we.delegates[Oe]);return this},D.prototype.once=function(K,de,ne){if(ne===void 0)return Y.prototype.once.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);for(var Oe in we.delegates)this.once(Oe,we.delegates[Oe]);return this},D.prototype.off=function(K,de,ne){var we=this;if(ne===void 0)return Y.prototype.off.call(this,K,de);var Oe=function(ht){for(var Yt=ht[K],cr=0;cr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var Nn={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function aa(Y,D,J){var O=Y.classList;for(var K in Nn)O.remove("mapboxgl-"+J+"-anchor-"+K);O.add("mapboxgl-"+J+"-anchor-"+D)}var Ki=(function(Y){function D(J,O){if(Y.call(this),(J instanceof i.window.HTMLElement||O)&&(J=i.extend({element:J},O)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),de=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",de+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+de);var we=o.createNS("http://www.w3.org/2000/svg","g");we.setAttributeNS(null,"stroke","none"),we.setAttributeNS(null,"stroke-width","1"),we.setAttributeNS(null,"fill","none"),we.setAttributeNS(null,"fill-rule","evenodd");var Oe=o.createNS("http://www.w3.org/2000/svg","g");Oe.setAttributeNS(null,"fill-rule","nonzero");var ht=o.createNS("http://www.w3.org/2000/svg","g");ht.setAttributeNS(null,"transform","translate(3.0, 29.0)"),ht.setAttributeNS(null,"fill","#000000");for(var Yt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],cr=0,Nt=Yt;cr=K}this._isDragging&&(this._pos=O.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},D.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},D.prototype._addDragHandler=function(O){this._element.contains(O.originalEvent.target)&&(O.preventDefault(),this._positionDelta=O.point.sub(this._pos).add(this._offset),this._pointerdownPos=O.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},D.prototype.setDraggable=function(O){return this._draggable=!!O,this._map&&(O?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},D.prototype.isDraggable=function(){return this._draggable},D.prototype.setRotation=function(O){return this._rotation=O||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(O){return this._rotationAlignment=O||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(O){return this._pitchAlignment=O&&O!=="auto"?O:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D})(i.Evented),Cn={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ia;function sa(Y){ia!==void 0?Y(ia):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){ia=D.state!=="denied",Y(ia)}):(ia=!!i.window.navigator.geolocation,Y(ia))}var ba=0,is=!1,Zs=(function(Y){function D(J){Y.call(this),this.options=i.extend({},Cn,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.onAdd=function(O){return this._map=O,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),sa(this._setupUI),this._container},D.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,ba=0,is=!1},D.prototype._isOutOfMapMaxBounds=function(O){var K=this._map.getMaxBounds(),de=O.coords;return K&&(de.longitudeK.getEast()||de.latitudeK.getNorth())},D.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},D.prototype._onSuccess=function(O){if(this._map){if(this._isOutOfMapMaxBounds(O)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",O)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=O,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(O),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(O),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",O)),this._finish()}},D.prototype._updateCamera=function(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude),de=O.coords.accuracy,ne=this._map.getBearing(),we=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(de),we,{geolocateSource:!0})},D.prototype._updateMarker=function(O){if(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=O.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var O=this._map._container.clientHeight/2,K=this._map.unproject([0,O]),de=this._map.unproject([1,O]),ne=K.distanceTo(de),we=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=we+"px",this._circleElement.style.height=we+"px"},D.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},D.prototype._onError=function(O){if(this._map){if(this.options.trackUserLocation)if(O.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(O.code===3&&is)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",O)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(O){var K=this;if(this._container.addEventListener("contextmenu",function(we){return we.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",O===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var de=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=de,this._geolocateButton.setAttribute("aria-label",de)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ki(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ki({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(we){var Oe=we.originalEvent&&we.originalEvent.type==="resize";!we.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Oe&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},D.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":ba--,is=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),ba++;var O;ba>1?(O={maximumAge:6e5,timeout:0},is=!0):(O=this.options.positionOptions,is=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,O)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},D.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},D})(i.Evented),Ga={maxWidth:100,unit:"metric"},El=function(D){this.options=i.extend({},Ga,D),i.bindAll(["_onMove","setUnit"],this)};El.prototype.getDefaultPosition=function(){return"bottom-left"},El.prototype._onMove=function(){zo(this._map,this._container,this.options)},El.prototype.onAdd=function(D){return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",D.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},El.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},El.prototype.setUnit=function(D){this.options.unit=D,zo(this._map,this._container,this.options)};function zo(Y,D,J){var O=J&&J.maxWidth||100,K=Y._container.clientHeight/2,de=Y.unproject([0,K]),ne=Y.unproject([O,K]),we=de.distanceTo(ne);if(J&&J.unit==="imperial"){var Oe=3.2808*we;if(Oe>5280){var ht=Oe/5280;Qs(D,O,ht,Y._getUIString("ScaleControl.Miles"))}else Qs(D,O,Oe,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Yt=we/1852;Qs(D,O,Yt,Y._getUIString("ScaleControl.NauticalMiles"))}else we>=1e3?Qs(D,O,we/1e3,Y._getUIString("ScaleControl.Kilometers")):Qs(D,O,we,Y._getUIString("ScaleControl.Meters"))}function Qs(Y,D,J,O){var K=Ul(J),de=K/J;Y.style.width=D*de+"px",Y.innerHTML=K+" "+O}function nl(Y){var D=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*D)/D}function Ul(Y){var D=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/D;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:nl(J),D*J}var ss=function(D){this._fullscreen=!1,D&&D.container&&(D.container instanceof i.window.HTMLElement?this._container=D.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};ss.prototype.onAdd=function(D){return this._map=D,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ss.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ss.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},ss.prototype._setupUI=function(){var D=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",D).setAttribute("aria-hidden",!0),D.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ss.prototype._updateTitle=function(){var D=this._getTitle();this._fullscreenButton.setAttribute("aria-label",D),this._fullscreenButton.title=D},ss.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ss.prototype._isFullscreen=function(){return this._fullscreen},ss.prototype._changeIcon=function(){var D=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;D===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ss.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Vs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ys=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),wa=(function(Y){function D(J){Y.call(this),this.options=i.extend(Object.create(Vs),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.addTo=function(O){return this._map&&this.remove(),this._map=O,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},D.prototype.isOpen=function(){return!!this._map},D.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},D.prototype.getLngLat=function(){return this._lngLat},D.prototype.setLngLat=function(O){return this._lngLat=i.LngLat.convert(O),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},D.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},D.prototype.getElement=function(){return this._container},D.prototype.setText=function(O){return this.setDOMContent(i.window.document.createTextNode(O))},D.prototype.setHTML=function(O){var K=i.window.document.createDocumentFragment(),de=i.window.document.createElement("body"),ne;for(de.innerHTML=O;ne=de.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},D.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},D.prototype.setMaxWidth=function(O){return this.options.maxWidth=O,this._update(),this},D.prototype.setDOMContent=function(O){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(O),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(O){this._container&&this._container.classList.add(O)},D.prototype.removeClassName=function(O){this._container&&this._container.classList.remove(O)},D.prototype.setOffset=function(O){return this.options.offset=O,this._update(),this},D.prototype.toggleClassName=function(O){if(this._container)return this._container.classList.toggle(O)},D.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},D.prototype._onMouseUp=function(O){this._update(O.point)},D.prototype._onMouseMove=function(O){this._update(O.point)},D.prototype._onDrag=function(O){this._update(O.point)},D.prototype._update=function(O){var K=this,de=this._lngLat||this._trackPointer;if(!(!this._map||!de||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Ne){return K._container.classList.add(Ne)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=pn(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!O))){var ne=this._pos=this._trackPointer&&O?O:this._map.project(this._lngLat),we=this.options.anchor,Oe=al(this.options.offset);if(!we){var ht=this._container.offsetWidth,Yt=this._container.offsetHeight,cr;ne.y+Oe.bottom.ythis._map.transform.height-Yt?cr=["bottom"]:cr=[],ne.xthis._map.transform.width-ht/2&&cr.push("right"),cr.length===0?we="bottom":we=cr.join("-")}var Nt=ne.add(Oe[we]).round();o.setTransform(this._container,Nn[we]+" translate("+Nt.x+"px,"+Nt.y+"px)"),aa(this._container,we,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var O=this._container.querySelector(Ys);O&&O.focus()}},D.prototype._onClose=function(){this.remove()},D})(i.Evented);function al(Y){if(Y)if(typeof Y=="number"){var D=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(D,D),"top-right":new i.Point(-D,D),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(D,-D),"bottom-right":new i.Point(-D,-D),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return al(new i.Point(0,0))}var io={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:si,NavigationControl:Ui,GeolocateControl:Zs,AttributionControl:Qi,ScaleControl:El,FullscreenControl:ss,Popup:wa,Marker:Ki,Style:yu,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:ua,clearPrewarmedResources:ma,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return fn.workerCount},set workerCount(Y){fn.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(D){i.clearTileCache(D)},workerUrl:""};return io}),r}))});var EGe=ye((obr,MGe)=>{"use strict";var gw=Pr(),_Wt=Zl().sanitizeHTML,xWt=vJ(),TGe=y1();function AGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=TGe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ag=AGe.prototype;ag.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=o7(t)};ag.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ag.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ag.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ag.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ag.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ag.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!o7(e)){var r=bWt(e);t.addSource(this.idSource,r)}};ag.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function SGe(e){var t={},r={};switch(e.type){case"circle":gw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":gw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":gw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=xWt(n.textposition,n.iconsize);gw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),gw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":gw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function bWt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=_Wt(e.sourceattribution)),n}MGe.exports=function(t,r,n){var i=new AGe(t,r);return i.update(n),i}});var zGe=ye((sbr,FGe)=>{"use strict";var bJ=xJ(),wJ=Pr(),PGe=ey(),kGe=Oa(),wWt=ho(),TWt=yv(),s7=ef(),IGe=Cg(),AWt=IGe.drawMode,SWt=IGe.selectMode,MWt=qf().prepSelect,EWt=qf().clearOutline,kWt=qf().clearSelectionsCache,CWt=qf().selectOnClick,Cx=y1(),LWt=EGe();function RGe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Gh=RGe.prototype;Gh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};Gh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=DGe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new bJ.Map({container:i.div,style:o.style,center:TJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new bJ.AttributionControl({compact:!0}));u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(f){u.once("load",f)})),c=c.concat(PGe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Gh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=DGe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(PGe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Gh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&CWt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&s7.click(n,l.originalEvent)}}};Gh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=wJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),SWt(a)||AWt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){MWt(l,u,c,t.dragOptions,a)},TWt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Gh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Gh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var AJ=Pr(),PWt=O_(),IWt=Kd(),qGe=Jk();OGe.exports=function(t,r,n){PWt(t,r,n,{type:"mapbox",attributes:qGe,handleDefaults:RWt,partition:"y",accessToken:r._mapboxAccessToken})};function RWt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,IWt(e,t,{name:"layers",handleItemDefaults:DWt}),t._input=e}function DWt(e,t){function r(l,u){return AJ.coerce(e,t,qGe.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",AJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),AJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var l7=ye(Np=>{"use strict";var NGe=xJ(),nm=Pr(),SJ=nm.strTranslate,FWt=nm.strScale,zWt=Id().getSubplotCalcData,qWt=Wp(),OWt=Fa(),UGe=So(),BWt=Zl(),NWt=zGe(),Lx="mapbox",ly=Np.constants=y1();Np.name=Lx;Np.attr="subplot";Np.idRoot=Lx;Np.idRegex=Np.attrRegex=nm.counterRegex(Lx);var UWt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Np.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Np.layoutAttributes=Jk();Np.supplyLayoutDefaults=BGe();var VGe=!0;Np.plot=function(t){VGe&&(VGe=!1,nm.warn(UWt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[Lx];if(NGe.version!==ly.requiredVersion)throw new Error(ly.wrongVersionErrorMsg);var a=VWt(t,i);NGe.accessToken=a;for(var o=0;op/2){var k=d.split("|").join("
");m.text(k).attr("data-unformatted",k).call(BWt.convertToTspans,e),b=UGe.bBox(m.node())}m.attr("transform",SJ(-3,-b.height+8)),v.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var M=1;b.width+6>p&&(M=p/(b.width+6));var T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",SJ(T[0],T[1])+FWt(M))}};function VWt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,l=0;l1&&nm.warn(ly.multipleTokensErrorMsg),i[0]):(a.length&&nm.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function GGe(e){return typeof e=="string"&&(ly.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Np.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Lx],n=0;n{"use strict";var cbr=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");HGe.exports={attributes:e7(),supplyDefaults:rGe(),colorbar:Qd(),formatLabels:dJ(),calc:TF(),plot:gGe(),hoverPoints:a7().hoverPoints,eventData:xGe(),selectPoints:wGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:l7(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var XGe=ye((hbr,WGe)=>{"use strict";WGe.exports=jGe()});var MJ=ye((dbr,ZGe)=>{"use strict";var _1=l5(),GWt=Tu(),{hovertemplateAttrs:HWt,templatefallbackAttrs:jWt}=Pl(),WWt=Vl(),Px=Ao().extendFlat;ZGe.exports=Px({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Px({},_1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:_1.text,hovertext:_1.hovertext,marker:{line:{color:Px({},_1.marker.line.color,{editType:"plot"}),width:Px({},_1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Px({},_1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Px({},_1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Px({},_1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:_1.hoverinfo,hovertemplate:HWt({},{keys:["properties"]}),hovertemplatefallback:jWt(),showlegend:Px({},WWt.showlegend,{dflt:!1})},GWt("",{cLetter:"z",editTypeOverride:"calc"}))});var KGe=ye((vbr,YGe)=>{"use strict";var tC=Pr(),XWt=td(),ZWt=MJ();YGe.exports=function(t,r,n,i){function a(c,f){return tC.coerce(t,r,ZWt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!tC.isArrayOrTypedArray(o)||!o.length||!tC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||tC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),XWt(t,r,i,a,{prefix:"",cLetter:"z"}),tC.coerceSelectionMarkerOpacity(r,a)}});var EJ=ye((pbr,QGe)=>{"use strict";var YWt=Eo(),x1=Pr(),KWt=tc(),JWt=So(),$Wt=hx().makeBlank,JGe=ey();function QWt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:$Wt()};if(!r)return a;var o=JGe.extractTraceFeature(e);if(!o)return a;var s=KWt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;x1.isArrayOrTypedArray(l.opacity)&&(c=function(k){var M=k.mo;return YWt(M)?+x1.constrain(M,0,1):0});var f;x1.isArrayOrTypedArray(u.color)&&(f=function(k){return k.mlc});var h;x1.isArrayOrTypedArray(u.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var tHe=EJ().convert,eXt=EJ().convertOnSelect,eHe=y1().traceLayerPrefix;function rHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",eHe+t+"-fill"],["line",eHe+t+"-line"]],this.below=null}var R5=rHe.prototype;R5.update=function(e){this._update(tHe(e)),e[0].trace._glTrace=this};R5.updateOnSelect=function(e){this._update(eXt(e))};R5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};R5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};iHe.exports=function(t,r){var n=r[0].trace,i=new rHe(t,n.uid),a=i.sourceId,o=tHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var oHe=ye((ybr,aHe)=>{"use strict";var mbr=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");aHe.exports={attributes:MJ(),supplyDefaults:KGe(),colorbar:F_(),calc:HF(),plot:nHe(),hoverPoints:WF(),eventData:XF(),selectPoints:ZF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";sHe.exports=oHe()});var CJ=ye((xbr,cHe)=>{"use strict";var tXt=Tu(),{hovertemplateAttrs:rXt,templatefallbackAttrs:iXt}=Pl(),uHe=Vl(),u7=e7(),kJ=Ao().extendFlat;cHe.exports=kJ({lon:u7.lon,lat:u7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:u7.text,hovertext:u7.hovertext,hoverinfo:kJ({},uHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:rXt(),hovertemplatefallback:iXt(),showlegend:kJ({},uHe.showlegend,{dflt:!1})},tXt("",{cLetter:"z",editTypeOverride:"calc"}))});var hHe=ye((bbr,fHe)=>{"use strict";var nXt=Pr(),aXt=td(),oXt=CJ();fHe.exports=function(t,r,n,i){function a(u,c){return nXt.coerce(t,r,oXt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),aXt(t,r,i,a,{prefix:"",cLetter:"z"})}});var pHe=ye((wbr,vHe)=>{"use strict";var LJ=Eo(),sXt=Pr().isArrayOrTypedArray,PJ=fs().BADNUM,lXt=gv(),dHe=Pr()._;vHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=sXt(a)&&a.length,s=0;s{"use strict";var uXt=Eo(),IJ=Pr(),gHe=ka(),mHe=tc(),yHe=fs().BADNUM,cXt=hx().makeBlank;_He.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:cXt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=IJ.isArrayOrTypedArray(l)&&l.length,f=IJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=mHe.extractOpts(r),p=b.reversescale?mHe.flipScale(b.colorscale):b.colorscale,k=p[0][1],M=gHe.opacity(k)<1?k:gHe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,M];for(s=1;s{"use strict";var bHe=xHe(),fXt=y1().traceLayerPrefix;function wHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",fXt+t+"-heatmap"]],this.below=null}var c7=wHe.prototype;c7.update=function(e){var t=this.subplot,r=this.layerList,n=bHe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};c7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};THe.exports=function(t,r){var n=r[0].trace,i=new wHe(t,n.uid),a=i.sourceId,o=bHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var MHe=ye((Sbr,SHe)=>{"use strict";var hXt=ho(),dXt=a7().hoverPoints,vXt=a7().getExtraText;SHe.exports=function(t,r,n){var i=dXt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=hXt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=vXt(s,l,o[0].t.labels),[a]}}});var kHe=ye((Mbr,EHe)=>{"use strict";EHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var LHe=ye((kbr,CHe)=>{"use strict";var Ebr=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");CHe.exports={attributes:CJ(),supplyDefaults:hHe(),colorbar:F_(),formatLabels:dJ(),calc:pHe(),plot:AHe(),hoverPoints:MHe(),eventData:kHe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";PHe.exports=LHe()});var DHe=ye((Lbr,RHe)=>{RHe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} {name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} @@ -3222,10 +3222,10 @@ uniform `+Yt+" "+cr+" u_"+Nt+`; {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} -{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var PHe=ye((dbr,LHe)=>{LHe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var Ix=ye((vbr,zHe)=>{"use strict";var $Wt=t_(),QWt=CHe(),eXt=PHe(),tXt='\xA9 OpenStreetMap contributors',IHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",RHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",u7="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",rXt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",iXt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",nXt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",FHe={basic:u7,streets:u7,outdoors:u7,light:IHe,dark:RHe,satellite:eXt,"satellite-streets":QWt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:tXt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":IHe,"carto-darkmatter":RHe,"carto-voyager":u7,"carto-positron-nolabels":rXt,"carto-darkmatter-nolabels":iXt,"carto-voyager-nolabels":nXt},DHe=$Wt(FHe);zHe.exports={styleValueDflt:"basic",stylesMap:FHe,styleValuesMap:DHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",DHe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error."}});var eC=ye((pbr,UHe)=>{"use strict";var qHe=Pr(),OHe=ka().defaultLine,aXt=Cc().attributes,oXt=ec(),sXt=pf().textposition,lXt=mc().overrideAll,uXt=vl().templatedArray,BHe=Ix(),NHe=oXt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});NHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var cXt=UHe.exports=lXt({_arrayAttrRegexps:[qHe.counterRegex("map",".layers",!0)],domain:aXt({name:"map"}),style:{valType:"any",values:BHe.styleValuesMap,dflt:BHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:uXt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:OHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:OHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:NHe,textposition:qHe.extendFlat({},sXt,{arrayOk:!1})}})},"plot","from-root");cXt.uirevision={valType:"any",editType:"none"}});var c7=ye((gbr,jHe)=>{"use strict";var{hovertemplateAttrs:fXt,texttemplateAttrs:hXt,templatefallbackAttrs:VHe}=Ll(),dXt=Pg(),tC=tw(),I5=pf(),GHe=eC(),vXt=Gl(),pXt=Tu(),pw=Ao().extendFlat,gXt=mc().overrideAll,mXt=eC(),HHe=tC.line,R5=tC.marker;jHe.exports=gXt({lon:tC.lon,lat:tC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:pw({},mXt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:pw({},R5.opacity,{dflt:1})},mode:pw({},I5.mode,{dflt:"markers"}),text:pw({},I5.text,{}),texttemplate:hXt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:VHe({editType:"plot"}),hovertext:pw({},I5.hovertext,{}),line:{color:HHe.color,width:HHe.width},connectgaps:I5.connectgaps,marker:pw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:R5.opacity,size:R5.size,sizeref:R5.sizeref,sizemin:R5.sizemin,sizemode:R5.sizemode},pXt("marker")),fill:tC.fill,fillcolor:dXt(),textfont:GHe.layers.symbol.textfont,textposition:GHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:I5.selected.marker},unselected:{marker:I5.unselected.marker},hoverinfo:pw({},vXt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:fXt(),hovertemplatefallback:VHe()},"calc","nested")});var LJ=ye((mbr,WHe)=>{"use strict";var yXt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];WHe.exports={isSupportedFont:function(e){return yXt.indexOf(e)!==-1}}});var YHe=ye((ybr,ZHe)=>{"use strict";var rC=Pr(),PJ=Ru(),_Xt=$p(),xXt=D0(),bXt=F0(),wXt=Fg(),XHe=c7(),TXt=LJ().isSupportedFont;ZHe.exports=function(t,r,n,i){function a(p,k){return rC.coerce(t,r,XHe,p,k)}function o(p,k){return rC.coerce2(t,r,XHe,p,k)}var s=AXt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),PJ.hasMarkers(r)){_Xt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(rC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),rC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}PJ.hasLines(r)&&(xXt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,m=a("cluster.enabled",v);if(m||PJ.hasText(r)){var b=i.font.family;bXt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:TXt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&wXt(t,r,n,a),rC.coerceSelectionMarkerOpacity(r,a)};function AXt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var IJ=ye((_br,JHe)=>{"use strict";var KHe=ho();JHe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=KHe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=KHe.tickText(o,o.c2l(s[1]),!0).text,i}});var RJ=ye((xbr,QHe)=>{"use strict";var $He=Pr();QHe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=$He.isArrayOrTypedArray(r)?$He.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var aje=ye((bbr,nje)=>{"use strict";var rje=Eo(),sv=Pr(),SXt=fs().BADNUM,h7=fx(),eje=tc(),MXt=So(),EXt=B3(),d7=Ru(),kXt=LJ().isSupportedFont,CXt=RJ(),LXt=ip().appendArrayPointValue,PXt=Zl().NEWLINES,IXt=Zl().BR_TAG_ALL;nje.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=d7.hasLines(n),s=d7.hasMarkers(n),l=d7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=f7("fill"),d=f7("line"),v=f7("circle"),m=f7("symbol"),b={fill:h,line:d,circle:v,symbol:m};if(!i)return b;var p;if((a||o)&&(p=h7.calcTraceToLineCoords(r)),a&&(h.geojson=h7.makePolygon(p),h.layout.visibility="visible",sv.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=h7.makeLine(p),d.layout.visibility="visible",sv.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var k=RXt(r);v.geojson=k.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":FJ(n.cluster.color,n.cluster.step),"circle-radius":FJ(n.cluster.size,n.cluster.step),"circle-opacity":FJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":tje(n),"text-size":12}}),sv.extendFlat(v.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(m.geojson=DXt(r,t),sv.extendFlat(m.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(sv.extendFlat(m.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&sv.extendFlat(m.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),m.layout["icon-allow-overlap"]=n.marker.allowoverlap,sv.extendFlat(m.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var M=(n.marker||{}).size,T=CXt(n.textposition,M);sv.extendFlat(m.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":tje(n)}),sv.extendFlat(m.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function f7(e){return{type:e,geojson:h7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function RXt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=sv.isArrayOrTypedArray(r.color),a=sv.isArrayOrTypedArray(r.size),o=sv.isArrayOrTypedArray(r.opacity),s;function l(M){return t.opacity*M}function u(M){return M/2}var c;i&&(eje.hasColorscale(t,"marker")?c=eje.makeColorScaleFuncFromTrace(r):c=sv.identity);var f;a&&(f=EXt(t));var h;o&&(h=function(M){var T=rje(M)?+sv.constrain(M,0,1):0;return l(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),kXt(s)||(s=r);var l=s.split(", ");return l}});var uje=ye((wbr,lje)=>{"use strict";var FXt=Pr(),oje=aje(),D5=Ix().traceLayerPrefix,og={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function sje(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:D5+t+"-fill",line:D5+t+"-line",circle:D5+t+"-circle",symbol:D5+t+"-symbol",cluster:D5+t+"-cluster",clusterCount:D5+t+"-cluster-count"},this.below=null}var iC=sje.prototype;iC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&FXt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};iC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};iC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=T[L];i.removeLayer(u.layerIds[x])}M||i.removeSource(u.sourceIds.circle)}function h(M){for(var T=og.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(u.layerIds[x]),M||i.removeSource(u.sourceIds[x])}}function v(M){l?f(M):d(M)}function m(M){s?c(M):h(M)}function b(){for(var M=s?og.cluster:og.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};lje.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new sje(t,n.uid,i,a),s=oje(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var zXt=ef(),zJ=Pr(),qXt=yT(),OXt=zJ.fillText,BXt=fs().BADNUM,NXt=Ix().traceLayerPrefix;function UXt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=NXt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function m(S){var g=S.lonlat;if(g[0]===BXt||c&&l.indexOf(S.i+1)===-1)return 1/0;var P=zJ.modHalf(g[0],360),E=g[1],z=s.project([P,E]),q=z.x-a.c2p([v,E]),V=z.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(q*q+V*V)-G,1-3/G)}if(zXt.getClosest(n,m,e),e.index!==!1){var b=n[e.index],p=b.lonlat,k=[zJ.modHalf(p[0],360)+d,p[1]],M=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=M-L,e.x1=M+L,e.y0=T-L,e.y1=T+L;var x={};x[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,x);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=qXt(i,b),e.extraText=cje(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function cje(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&OXt(t,e,u),u.join("
")}fje.exports={hoverPoints:UXt,getExtraText:cje}});var dje=ye((Abr,hje)=>{"use strict";hje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var pje=ye((Sbr,vje)=>{"use strict";var VXt=Pr(),GXt=Ru(),HXt=fs().BADNUM;vje.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!GXt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof qJ=="object"&&typeof OJ!="undefined"?OJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(qJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",l={};return t.shared(l),t.index(e,l),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(R,A,F,W){return new(F||(F=Promise))(function(te,fe){function pe(ft){try{Ke(W.next(ft))}catch(Rt){fe(Rt)}}function Re(ft){try{Ke(W.throw(ft))}catch(Rt){fe(Rt)}}function Ke(ft){var Rt;ft.done?te(ft.value):(Rt=ft.value,Rt instanceof F?Rt:new F(function(er){er(Rt)})).then(pe,Re)}Ke((W=W.apply(R,A||[])).next())})}function o(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}typeof SuppressedError=="function"&&SuppressedError;var s=l;function l(R,A){this.x=R,this.y=A}l.prototype={clone:function(){return new l(this.x,this.y)},add:function(R){return this.clone()._add(R)},sub:function(R){return this.clone()._sub(R)},multByPoint:function(R){return this.clone()._multByPoint(R)},divByPoint:function(R){return this.clone()._divByPoint(R)},mult:function(R){return this.clone()._mult(R)},div:function(R){return this.clone()._div(R)},rotate:function(R){return this.clone()._rotate(R)},rotateAround:function(R,A){return this.clone()._rotateAround(R,A)},matMult:function(R){return this.clone()._matMult(R)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(R){return this.x===R.x&&this.y===R.y},dist:function(R){return Math.sqrt(this.distSqr(R))},distSqr:function(R){var A=R.x-this.x,F=R.y-this.y;return A*A+F*F},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(R){return Math.atan2(this.y-R.y,this.x-R.x)},angleWith:function(R){return this.angleWithSep(R.x,R.y)},angleWithSep:function(R,A){return Math.atan2(this.x*A-this.y*R,this.x*R+this.y*A)},_matMult:function(R){var A=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=A,this},_add:function(R){return this.x+=R.x,this.y+=R.y,this},_sub:function(R){return this.x-=R.x,this.y-=R.y,this},_mult:function(R){return this.x*=R,this.y*=R,this},_div:function(R){return this.x/=R,this.y/=R,this},_multByPoint:function(R){return this.x*=R.x,this.y*=R.y,this},_divByPoint:function(R){return this.x/=R.x,this.y/=R.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var R=this.y;return this.y=this.x,this.x=-R,this},_rotate:function(R){var A=Math.cos(R),F=Math.sin(R),W=F*this.x+A*this.y;return this.x=A*this.x-F*this.y,this.y=W,this},_rotateAround:function(R,A){var F=Math.cos(R),W=Math.sin(R),te=A.y+W*(this.x-A.x)+F*(this.y-A.y);return this.x=A.x+F*(this.x-A.x)-W*(this.y-A.y),this.y=te,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},l.convert=function(R){return R instanceof l?R:Array.isArray(R)?new l(R[0],R[1]):R};var u=o(s),c=f;function f(R,A,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*A,this.by=3*(W-A)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=A,this.p2x=F,this.p2y=W}f.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,A){if(A===void 0&&(A=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:Re=F,F=.5*(Re-pe)+pe;return F},solve:function(R,A){return this.sampleCurveY(this.solveCurveX(R,A))}};var h=o(c);let d,v;function m(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,m())){let A=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(A){for(let W=0;W<5*5;W++){let te=4*W;A.fillStyle=`rgb(${te},${te+1},${te+2})`,A.fillRect(W%5,Math.floor(W/5),1,1)}let F=A.getImageData(0,0,5,5).data;for(let W=0;W<5*5*4;W++)if(W%4!=3&&F[W]!==W){v=!0;break}}}return v||!1}function p(R,A,F,W){let te=new h(R,A,F,W);return fe=>te.solve(fe)}let k=p(.25,.1,.25,1);function M(R,A,F){return Math.min(F,Math.max(A,R))}function T(R,A,F){let W=F-A,te=((R-A)%W+W)%W+A;return te===A?F:te}function L(R,...A){for(let F of A)for(let W in F)R[W]=F[W];return R}let x=1;function C(R,A,F){let W={};for(let te in R)W[te]=A.call(this,R[te],te,R);return W}function S(R,A,F){let W={};for(let te in R)A.call(this,R[te],te,R)&&(W[te]=R[te]);return W}function g(R){return Array.isArray(R)?R.map(g):typeof R=="object"&&R?C(R,g):R}let P={};function E(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function z(R,A,F){return(F.y-R.y)*(A.x-R.x)>(A.y-R.y)*(F.x-R.x)}function q(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let V=null;function G(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function j(R,A,F,W,te){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let fe=new VideoFrame(R,{timestamp:0});try{let pe=fe==null?void 0:fe.format;if(!pe||!pe.startsWith("BGR")&&!pe.startsWith("RGB"))throw new Error(`Unrecognized format ${pe}`);let Re=pe.startsWith("BGR"),Ke=new Uint8ClampedArray(W*te*4);if(yield fe.copyTo(Ke,function(ft,Rt,er,ur,vr){let kr=4*Math.max(-Rt,0),Dr=(Math.max(0,er)-er)*ur*4+kr,li=4*ur,pi=Math.max(0,Rt),vn=Math.max(0,er);return{rect:{x:pi,y:vn,width:Math.min(ft.width,Rt+ur)-pi,height:Math.min(ft.height,er+vr)-vn},layout:[{offset:Dr,stride:li}]}}(R,A,F,W,te)),Re)for(let ft=0;ftq(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(R,A){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let W=Ee(R.url);if(W)return W(R,A);if(q(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:Ce},A)}if(!(/^file:/.test(F=R.url)||/^file:/.test(re())&&!/^\w+:/.test(F))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(W,te){return a(this,void 0,void 0,function*(){let fe=new Request(W.url,{method:W.method||"GET",body:W.body,credentials:W.credentials,headers:W.headers,cache:W.cache,referrer:re(),signal:te.signal});W.type!=="json"||fe.headers.has("Accept")||fe.headers.set("Accept","application/json");let pe=yield fetch(fe);if(!pe.ok){let ft=yield pe.blob();throw new ge(pe.status,pe.statusText,W.url,ft)}let Re;Re=W.type==="arrayBuffer"||W.type==="image"?pe.arrayBuffer():W.type==="json"?pe.json():pe.text();let Ke=yield Re;if(te.signal.aborted)throw ae();return{data:Ke,cacheControl:pe.headers.get("Cache-Control"),expires:pe.headers.get("Expires")}})}(R,A);if(q(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:Ce},A)}var F;return function(W,te){return new Promise((fe,pe)=>{var Re;let Ke=new XMLHttpRequest;Ke.open(W.method||"GET",W.url,!0),W.type!=="arrayBuffer"&&W.type!=="image"||(Ke.responseType="arraybuffer");for(let ft in W.headers)Ke.setRequestHeader(ft,W.headers[ft]);W.type==="json"&&(Ke.responseType="text",!((Re=W.headers)===null||Re===void 0)&&Re.Accept||Ke.setRequestHeader("Accept","application/json")),Ke.withCredentials=W.credentials==="include",Ke.onerror=()=>{pe(new Error(Ke.statusText))},Ke.onload=()=>{if(!te.signal.aborted)if((Ke.status>=200&&Ke.status<300||Ke.status===0)&&Ke.response!==null){let ft=Ke.response;if(W.type==="json")try{ft=JSON.parse(Ke.response)}catch(Rt){return void pe(Rt)}fe({data:ft,cacheControl:Ke.getResponseHeader("Cache-Control"),expires:Ke.getResponseHeader("Expires")})}else{let ft=new Blob([Ke.response],{type:Ke.getResponseHeader("Content-Type")});pe(new ge(Ke.status,Ke.statusText,W.url,ft))}},te.signal.addEventListener("abort",()=>{Ke.abort(),pe(ae())}),Ke.send(W.body)})}(R,A)};function ke(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let A=new URL(R),F=window.location;return A.protocol===F.protocol&&A.host===F.host}function be(R,A,F){F[R]&&F[R].indexOf(A)!==-1||(F[R]=F[R]||[],F[R].push(A))}function Be(R,A,F){if(F&&F[R]){let W=F[R].indexOf(A);W!==-1&&F[R].splice(W,1)}}class Le{constructor(A,F={}){L(this,F),this.type=A}}class me extends Le{constructor(A,F={}){super("error",L({error:A},F))}}class Pe{on(A,F){return this._listeners=this._listeners||{},be(A,F,this._listeners),this}off(A,F){return Be(A,F,this._listeners),Be(A,F,this._oneTimeListeners),this}once(A,F){return F?(this._oneTimeListeners=this._oneTimeListeners||{},be(A,F,this._oneTimeListeners),this):new Promise(W=>this.once(A,W))}fire(A,F){typeof A=="string"&&(A=new Le(A,F||{}));let W=A.type;if(this.listens(W)){A.target=this;let te=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(let Re of te)Re.call(this,A);let fe=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(let Re of fe)Be(W,Re,this._oneTimeListeners),Re.call(this,A);let pe=this._eventedParent;pe&&(L(A,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),pe.fire(A))}else A instanceof me&&console.error(A.error);return this}listens(A){return this._listeners&&this._listeners[A]&&this._listeners[A].length>0||this._oneTimeListeners&&this._oneTimeListeners[A]&&this._oneTimeListeners[A].length>0||this._eventedParent&&this._eventedParent.listens(A)}setEventedParent(A,F){return this._eventedParent=A,this._eventedParentData=F,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let He=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function lt(R,A){let F={};for(let W in R)W!=="ref"&&(F[W]=R[W]);return He.forEach(W=>{W in A&&(F[W]=A[W])}),F}function mt(R,A){if(Array.isArray(R)){if(!Array.isArray(A)||R.length!==A.length)return!1;for(let F=0;F`:R.itemType.kind==="value"?"array":`array<${A}>`}return R.kind}let We=[Tt,dt,Et,pt,jt,ei,or,Ge(mr),qr,jr,gt];function et(R,A){if(A.kind==="error")return null;if(R.kind==="array"){if(A.kind==="array"&&(A.N===0&&A.itemType.kind==="value"||!et(R.itemType,A.itemType))&&(typeof R.N!="number"||R.N===A.N))return null}else{if(R.kind===A.kind)return null;if(R.kind==="value"){for(let F of We)if(!et(F,A))return null}}return`Expected ${Je(R)} but found ${Je(A)} instead.`}function xt(R,A){return A.some(F=>F.kind===R.kind)}function At(R,A){return A.some(F=>F==="null"?R===null:F==="array"?Array.isArray(R):F==="object"?R&&!Array.isArray(R)&&typeof R=="object":F===typeof R)}function Kt(R,A){return R.kind==="array"&&A.kind==="array"?R.itemType.kind===A.itemType.kind&&typeof R.N=="number":R.kind===A.kind}let Qt=.96422,Mr=.82521,Gr=4/29,Ir=6/29,Yr=3*Ir*Ir,_i=Ir*Ir*Ir,Pi=Math.PI/180,ai=180/Math.PI;function mi(R){return(R%=360)<0&&(R+=360),R}function un([R,A,F,W]){let te,fe,pe=An((.2225045*(R=Fn(R))+.7168786*(A=Fn(A))+.0606169*(F=Fn(F)))/1);R===A&&A===F?te=fe=pe:(te=An((.4360747*R+.3850649*A+.1430804*F)/Qt),fe=An((.0139322*R+.0971045*A+.7141733*F)/Mr));let Re=116*pe-16;return[Re<0?0:Re,500*(te-pe),200*(pe-fe),W]}function Fn(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function An(R){return R>_i?Math.pow(R,1/3):R/Yr+Gr}function Hn([R,A,F,W]){let te=(R+16)/116,fe=isNaN(A)?te:te+A/500,pe=isNaN(F)?te:te-F/200;return te=1*Vi(te),fe=Qt*Vi(fe),pe=Mr*Vi(pe),[Qn(3.1338561*fe-1.6168667*te-.4906146*pe),Qn(-.9787684*fe+1.9161415*te+.033454*pe),Qn(.0719453*fe-.2289914*te+1.4052427*pe),W]}function Qn(R){return(R=R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055)<0?0:R>1?1:R}function Vi(R){return R>Ir?R*R*R:Yr*(R-Gr)}function Kn(R){return parseInt(R.padEnd(2,R),16)/255}function Jn(R,A){return Gt(A?R/100:R,0,1)}function Gt(R,A,F){return Math.min(Math.max(A,R),F)}function wt(R){return!R.some(Number.isNaN)}let tr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class ir{constructor(A,F,W,te=1,fe=!0){this.r=A,this.g=F,this.b=W,this.a=te,fe||(this.r*=te,this.g*=te,this.b*=te,te||this.overwriteGetter("rgb",[A,F,W,te]))}static parse(A){if(A instanceof ir)return A;if(typeof A!="string")return;let F=function(W){if((W=W.toLowerCase().trim())==="transparent")return[0,0,0,0];let te=tr[W];if(te){let[pe,Re,Ke]=te;return[pe/255,Re/255,Ke/255,1]}if(W.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(W)){let pe=W.length<6?1:2,Re=1;return[Kn(W.slice(Re,Re+=pe)),Kn(W.slice(Re,Re+=pe)),Kn(W.slice(Re,Re+=pe)),Kn(W.slice(Re,Re+pe)||"ff")]}if(W.startsWith("rgb")){let pe=W.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(pe){let[Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn]=pe,zi=[Rt||" ",vr||" ",li].join("");if(zi===" "||zi===" /"||zi===",,"||zi===",,,"){let ln=[ft,ur,Dr].join(""),Tn=ln==="%%%"?100:ln===""?255:0;if(Tn){let pa=[Gt(+Ke/Tn,0,1),Gt(+er/Tn,0,1),Gt(+kr/Tn,0,1),pi?Jn(+pi,vn):1];if(wt(pa))return pa}}return}}let fe=W.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(fe){let[pe,Re,Ke,ft,Rt,er,ur,vr,kr]=fe,Dr=[Ke||" ",Rt||" ",ur].join("");if(Dr===" "||Dr===" /"||Dr===",,"||Dr===",,,"){let li=[+Re,Gt(+ft,0,100),Gt(+er,0,100),vr?Jn(+vr,kr):1];if(wt(li))return function([pi,vn,zi,ln]){function Tn(pa){let ro=(pa+pi/30)%12,Vo=vn*Math.min(zi,1-zi);return zi-Vo*Math.max(-1,Math.min(ro-3,9-ro,1))}return pi=mi(pi),vn/=100,zi/=100,[Tn(0),Tn(8),Tn(4),ln]}(li)}}}(A);return F?new ir(...F,!1):void 0}get rgb(){let{r:A,g:F,b:W,a:te}=this,fe=te||1/0;return this.overwriteGetter("rgb",[A/fe,F/fe,W/fe,te])}get hcl(){return this.overwriteGetter("hcl",function(A){let[F,W,te,fe]=un(A),pe=Math.sqrt(W*W+te*te);return[Math.round(1e4*pe)?mi(Math.atan2(te,W)*ai):NaN,pe,F,fe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",un(this.rgb))}overwriteGetter(A,F){return Object.defineProperty(this,A,{value:F}),F}toString(){let[A,F,W,te]=this.rgb;return`rgba(${[A,F,W].map(fe=>Math.round(255*fe)).join(",")},${te})`}}ir.black=new ir(0,0,0,1),ir.white=new ir(1,1,1,1),ir.transparent=new ir(0,0,0,0),ir.red=new ir(1,0,0,1);class wr{constructor(A,F,W){this.sensitivity=A?F?"variant":"case":F?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(A,F){return this.collator.compare(A,F)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Xr{constructor(A,F,W,te,fe){this.text=A,this.image=F,this.scale=W,this.fontStack=te,this.textColor=fe}}class ti{constructor(A){this.sections=A}static fromString(A){return new ti([new Xr(A,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(A=>A.text.length!==0||A.image&&A.image.name.length!==0)}static factory(A){return A instanceof ti?A:ti.fromString(A)}toString(){return this.sections.length===0?"":this.sections.map(A=>A.text).join("")}}class $r{constructor(A){this.values=A.slice()}static parse(A){if(A instanceof $r)return A;if(typeof A=="number")return new $r([A,A,A,A]);if(Array.isArray(A)&&!(A.length<1||A.length>4)){for(let F of A)if(typeof F!="number")return;switch(A.length){case 1:A=[A[0],A[0],A[0],A[0]];break;case 2:A=[A[0],A[1],A[0],A[1]];break;case 3:A=[A[0],A[1],A[2],A[1]]}return new $r(A)}}toString(){return JSON.stringify(this.values)}}let Ri=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Zi{constructor(A){this.values=A.slice()}static parse(A){if(A instanceof Zi)return A;if(Array.isArray(A)&&!(A.length<1)&&A.length%2==0){for(let F=0;F=0&&R<=255&&typeof A=="number"&&A>=0&&A<=255&&typeof F=="number"&&F>=0&&F<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:`Invalid rgba value [${[R,A,F,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof W=="number"?[R,A,F,W]:[R,A,F]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function yn(R){if(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number"||R instanceof ir||R instanceof wr||R instanceof ti||R instanceof $r||R instanceof Zi||R instanceof en)return!0;if(Array.isArray(R)){for(let A of R)if(!yn(A))return!1;return!0}if(typeof R=="object"){for(let A in R)if(!yn(R[A]))return!1;return!0}return!1}function Mn(R){if(R===null)return Tt;if(typeof R=="string")return Et;if(typeof R=="boolean")return pt;if(typeof R=="number")return dt;if(R instanceof ir)return jt;if(R instanceof wr)return Ar;if(R instanceof ti)return ei;if(R instanceof $r)return qr;if(R instanceof Zi)return gt;if(R instanceof en)return jr;if(Array.isArray(R)){let A=R.length,F;for(let W of R){let te=Mn(W);if(F){if(F===te)continue;F=mr;break}F=te}return Ge(F||mr,A)}return or}function Ba(R){let A=typeof R;return R===null?"":A==="string"||A==="number"||A==="boolean"?String(R):R instanceof ir||R instanceof ti||R instanceof $r||R instanceof Zi||R instanceof en?R.toString():JSON.stringify(R)}class ua{constructor(A,F){this.type=A,this.value=F}static parse(A,F){if(A.length!==2)return F.error(`'literal' expression requires exactly one argument, but found ${A.length-1} instead.`);if(!yn(A[1]))return F.error("invalid value");let W=A[1],te=Mn(W),fe=F.expectedType;return te.kind!=="array"||te.N!==0||!fe||fe.kind!=="array"||typeof fe.N=="number"&&fe.N!==0||(te=fe),new ua(te,W)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ma{constructor(A){this.name="ExpressionEvaluationError",this.message=A}toJSON(){return this.message}}let Wa={string:Et,number:dt,boolean:pt,object:or};class Fa{constructor(A,F){this.type=A,this.args=F}static parse(A,F){if(A.length<2)return F.error("Expected at least one argument.");let W,te=1,fe=A[0];if(fe==="array"){let Re,Ke;if(A.length>2){let ft=A[1];if(typeof ft!="string"||!(ft in Wa)||ft==="object")return F.error('The item type argument of "array" must be one of string, number, boolean',1);Re=Wa[ft],te++}else Re=mr;if(A.length>3){if(A[2]!==null&&(typeof A[2]!="number"||A[2]<0||A[2]!==Math.floor(A[2])))return F.error('The length argument to "array" must be a positive integer literal',2);Ke=A[2],te++}W=Ge(Re,Ke)}else{if(!Wa[fe])throw new Error(`Types doesn't contain name = ${fe}`);W=Wa[fe]}let pe=[];for(;teA.outputDefined())}}let Xo={"to-boolean":pt,"to-color":jt,"to-number":dt,"to-string":Et};class da{constructor(A,F){this.type=A,this.args=F}static parse(A,F){if(A.length<2)return F.error("Expected at least one argument.");let W=A[0];if(!Xo[W])throw new Error(`Can't parse ${W} as it is not part of the known types`);if((W==="to-boolean"||W==="to-string")&&A.length!==2)return F.error("Expected one argument.");let te=Xo[W],fe=[];for(let pe=1;pe4?`Invalid rbga value ${JSON.stringify(F)}: expected an array containing either three or four numeric values.`:fn(F[0],F[1],F[2],F[3]),!W))return new ir(F[0]/255,F[1]/255,F[2]/255,F[3])}throw new ma(W||`Could not parse color from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"padding":{let F;for(let W of this.args){F=W.evaluate(A);let te=$r.parse(F);if(te)return te}throw new ma(`Could not parse padding from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"variableAnchorOffsetCollection":{let F;for(let W of this.args){F=W.evaluate(A);let te=Zi.parse(F);if(te)return te}throw new ma(`Could not parse variableAnchorOffsetCollection from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"number":{let F=null;for(let W of this.args){if(F=W.evaluate(A),F===null)return 0;let te=Number(F);if(!isNaN(te))return te}throw new ma(`Could not convert ${JSON.stringify(F)} to number.`)}case"formatted":return ti.fromString(Ba(this.args[0].evaluate(A)));case"resolvedImage":return en.fromString(Ba(this.args[0].evaluate(A)));default:return Ba(this.args[0].evaluate(A))}}eachChild(A){this.args.forEach(A)}outputDefined(){return this.args.every(A=>A.outputDefined())}}let jn=["Unknown","Point","LineString","Polygon"];class Ha{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?jn[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(A){let F=this._parseColorCache[A];return F||(F=this._parseColorCache[A]=ir.parse(A)),F}}class vo{constructor(A,F,W=[],te,fe=new St,pe=[]){this.registry=A,this.path=W,this.key=W.map(Re=>`[${Re}]`).join(""),this.scope=fe,this.errors=pe,this.expectedType=te,this._isConstant=F}parse(A,F,W,te,fe={}){return F?this.concat(F,W,te)._parse(A,fe):this._parse(A,fe)}_parse(A,F){function W(te,fe,pe){return pe==="assert"?new Fa(fe,[te]):pe==="coerce"?new da(fe,[te]):te}if(A!==null&&typeof A!="string"&&typeof A!="boolean"&&typeof A!="number"||(A=["literal",A]),Array.isArray(A)){if(A.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let te=A[0];if(typeof te!="string")return this.error(`Expression name must be a string, but found ${typeof te} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let fe=this.registry[te];if(fe){let pe=fe.parse(A,this);if(!pe)return null;if(this.expectedType){let Re=this.expectedType,Ke=pe.type;if(Re.kind!=="string"&&Re.kind!=="number"&&Re.kind!=="boolean"&&Re.kind!=="object"&&Re.kind!=="array"||Ke.kind!=="value")if(Re.kind!=="color"&&Re.kind!=="formatted"&&Re.kind!=="resolvedImage"||Ke.kind!=="value"&&Ke.kind!=="string")if(Re.kind!=="padding"||Ke.kind!=="value"&&Ke.kind!=="number"&&Ke.kind!=="array")if(Re.kind!=="variableAnchorOffsetCollection"||Ke.kind!=="value"&&Ke.kind!=="array"){if(this.checkSubtype(Re,Ke))return null}else pe=W(pe,Re,F.typeAnnotation||"coerce");else pe=W(pe,Re,F.typeAnnotation||"coerce");else pe=W(pe,Re,F.typeAnnotation||"coerce");else pe=W(pe,Re,F.typeAnnotation||"assert")}if(!(pe instanceof ua)&&pe.type.kind!=="resolvedImage"&&this._isConstant(pe)){let Re=new Ha;try{pe=new ua(pe.type,pe.evaluate(Re))}catch(Ke){return this.error(Ke.message),null}}return pe}return this.error(`Unknown expression "${te}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(A===void 0?"'undefined' value invalid. Use null instead.":typeof A=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof A} instead.`)}concat(A,F,W){let te=typeof A=="number"?this.path.concat(A):this.path,fe=W?this.scope.concat(W):this.scope;return new vo(this.registry,this._isConstant,te,F||null,fe,this.errors)}error(A,...F){let W=`${this.key}${F.map(te=>`[${te}]`).join("")}`;this.errors.push(new rt(W,A))}checkSubtype(A,F){let W=et(A,F);return W&&this.error(W),W}}class Gn{constructor(A,F){this.type=F.type,this.bindings=[].concat(A),this.result=F}evaluate(A){return this.result.evaluate(A)}eachChild(A){for(let F of this.bindings)A(F[1]);A(this.result)}static parse(A,F){if(A.length<4)return F.error(`Expected at least 3 arguments, but found ${A.length-1} instead.`);let W=[];for(let fe=1;fe=W.length)throw new ma(`Array index out of bounds: ${F} > ${W.length-1}.`);if(F!==Math.floor(F))throw new ma(`Array index must be an integer, but found ${F} instead.`);return W[F]}eachChild(A){A(this.index),A(this.input)}outputDefined(){return!1}}class Jr{constructor(A,F){this.type=pt,this.needle=A,this.haystack=F}static parse(A,F){if(A.length!==3)return F.error(`Expected 2 arguments, but found ${A.length-1} instead.`);let W=F.parse(A[1],1,mr),te=F.parse(A[2],2,mr);return W&&te?xt(W.type,[pt,Et,dt,Tt,mr])?new Jr(W,te):F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`):null}evaluate(A){let F=this.needle.evaluate(A),W=this.haystack.evaluate(A);if(!W)return!1;if(!At(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);if(!At(W,["string","array"]))throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`);return W.indexOf(F)>=0}eachChild(A){A(this.needle),A(this.haystack)}outputDefined(){return!0}}class hi{constructor(A,F,W){this.type=dt,this.needle=A,this.haystack=F,this.fromIndex=W}static parse(A,F){if(A.length<=2||A.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${A.length-1} instead.`);let W=F.parse(A[1],1,mr),te=F.parse(A[2],2,mr);if(!W||!te)return null;if(!xt(W.type,[pt,Et,dt,Tt,mr]))return F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`);if(A.length===4){let fe=F.parse(A[3],3,dt);return fe?new hi(W,te,fe):null}return new hi(W,te)}evaluate(A){let F=this.needle.evaluate(A),W=this.haystack.evaluate(A);if(!At(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);let te;if(this.fromIndex&&(te=this.fromIndex.evaluate(A)),At(W,["string"])){let fe=W.indexOf(F,te);return fe===-1?-1:[...W.slice(0,fe)].length}if(At(W,["array"]))return W.indexOf(F,te);throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`)}eachChild(A){A(this.needle),A(this.haystack),this.fromIndex&&A(this.fromIndex)}outputDefined(){return!1}}class hn{constructor(A,F,W,te,fe,pe){this.inputType=A,this.type=F,this.input=W,this.cases=te,this.outputs=fe,this.otherwise=pe}static parse(A,F){if(A.length<5)return F.error(`Expected at least 4 arguments, but found only ${A.length-1}.`);if(A.length%2!=1)return F.error("Expected an even number of arguments.");let W,te;F.expectedType&&F.expectedType.kind!=="value"&&(te=F.expectedType);let fe={},pe=[];for(let ft=2;ftNumber.MAX_SAFE_INTEGER)return ur.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof kr=="number"&&Math.floor(kr)!==kr)return ur.error("Numeric branch labels must be integer values.");if(W){if(ur.checkSubtype(W,Mn(kr)))return null}else W=Mn(kr);if(fe[String(kr)]!==void 0)return ur.error("Branch labels must be unique.");fe[String(kr)]=pe.length}let vr=F.parse(er,ft,te);if(!vr)return null;te=te||vr.type,pe.push(vr)}let Re=F.parse(A[1],1,mr);if(!Re)return null;let Ke=F.parse(A[A.length-1],A.length-1,te);return Ke?Re.type.kind!=="value"&&F.concat(1).checkSubtype(W,Re.type)?null:new hn(W,te,Re,fe,pe,Ke):null}evaluate(A){let F=this.input.evaluate(A);return(Mn(F)===this.inputType&&this.outputs[this.cases[F]]||this.otherwise).evaluate(A)}eachChild(A){A(this.input),this.outputs.forEach(A),A(this.otherwise)}outputDefined(){return this.outputs.every(A=>A.outputDefined())&&this.otherwise.outputDefined()}}class Sn{constructor(A,F,W){this.type=A,this.branches=F,this.otherwise=W}static parse(A,F){if(A.length<4)return F.error(`Expected at least 3 arguments, but found only ${A.length-1}.`);if(A.length%2!=0)return F.error("Expected an odd number of arguments.");let W;F.expectedType&&F.expectedType.kind!=="value"&&(W=F.expectedType);let te=[];for(let pe=1;peF.outputDefined())&&this.otherwise.outputDefined()}}class En{constructor(A,F,W,te){this.type=A,this.input=F,this.beginIndex=W,this.endIndex=te}static parse(A,F){if(A.length<=2||A.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${A.length-1} instead.`);let W=F.parse(A[1],1,mr),te=F.parse(A[2],2,dt);if(!W||!te)return null;if(!xt(W.type,[Ge(mr),Et,mr]))return F.error(`Expected first argument to be of type array or string, but found ${Je(W.type)} instead`);if(A.length===4){let fe=F.parse(A[3],3,dt);return fe?new En(W.type,W,te,fe):null}return new En(W.type,W,te)}evaluate(A){let F=this.input.evaluate(A),W=this.beginIndex.evaluate(A),te;if(this.endIndex&&(te=this.endIndex.evaluate(A)),At(F,["string"]))return[...F].slice(W,te).join("");if(At(F,["array"]))return F.slice(W,te);throw new ma(`Expected first argument to be of type array or string, but found ${Je(Mn(F))} instead.`)}eachChild(A){A(this.input),A(this.beginIndex),this.endIndex&&A(this.endIndex)}outputDefined(){return!1}}function ki(R,A){let F=R.length-1,W,te,fe=0,pe=F,Re=0;for(;fe<=pe;)if(Re=Math.floor((fe+pe)/2),W=R[Re],te=R[Re+1],W<=A){if(Re===F||AA))throw new ma("Input is not a number.");pe=Re-1}return 0}class _n{constructor(A,F,W){this.type=A,this.input=F,this.labels=[],this.outputs=[];for(let[te,fe]of W)this.labels.push(te),this.outputs.push(fe)}static parse(A,F){if(A.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${A.length-1}.`);if((A.length-1)%2!=0)return F.error("Expected an even number of arguments.");let W=F.parse(A[1],1,dt);if(!W)return null;let te=[],fe=null;F.expectedType&&F.expectedType.kind!=="value"&&(fe=F.expectedType);for(let pe=1;pe=Re)return F.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',ft);let er=F.parse(Ke,Rt,fe);if(!er)return null;fe=fe||er.type,te.push([Re,er])}return new _n(fe,W,te)}evaluate(A){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(A);let te=this.input.evaluate(A);if(te<=F[0])return W[0].evaluate(A);let fe=F.length;return te>=F[fe-1]?W[fe-1].evaluate(A):W[ki(F,te)].evaluate(A)}eachChild(A){A(this.input);for(let F of this.outputs)A(F)}outputDefined(){return this.outputs.every(A=>A.outputDefined())}}function ya(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var ea=Ma;function Ma(R,A,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*A,this.by=3*(W-A)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=A,this.p2x=F,this.p2y=W}Ma.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,A){if(A===void 0&&(A=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:Re=F,F=.5*(Re-pe)+pe;return F},solve:function(R,A){return this.sampleCurveY(this.solveCurveX(R,A))}};var _o=ya(ea);function No(R,A,F){return R+F*(A-R)}function po(R,A,F){return R.map((W,te)=>No(W,A[te],F))}let Lo={number:No,color:function(R,A,F,W="rgb"){switch(W){case"rgb":{let[te,fe,pe,Re]=po(R.rgb,A.rgb,F);return new ir(te,fe,pe,Re,!1)}case"hcl":{let[te,fe,pe,Re]=R.hcl,[Ke,ft,Rt,er]=A.hcl,ur,vr;if(isNaN(te)||isNaN(Ke))isNaN(te)?isNaN(Ke)?ur=NaN:(ur=Ke,pe!==1&&pe!==0||(vr=ft)):(ur=te,Rt!==1&&Rt!==0||(vr=fe));else{let vn=Ke-te;Ke>te&&vn>180?vn-=360:Ke180&&(vn+=360),ur=te+F*vn}let[kr,Dr,li,pi]=function([vn,zi,ln,Tn]){return vn=isNaN(vn)?0:vn*Pi,Hn([ln,Math.cos(vn)*zi,Math.sin(vn)*zi,Tn])}([ur,vr!=null?vr:No(fe,ft,F),No(pe,Rt,F),No(Re,er,F)]);return new ir(kr,Dr,li,pi,!1)}case"lab":{let[te,fe,pe,Re]=Hn(po(R.lab,A.lab,F));return new ir(te,fe,pe,Re,!1)}}},array:po,padding:function(R,A,F){return new $r(po(R.values,A.values,F))},variableAnchorOffsetCollection:function(R,A,F){let W=R.values,te=A.values;if(W.length!==te.length)throw new ma(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${A.toString()}`);let fe=[];for(let pe=0;petypeof Rt!="number"||Rt<0||Rt>1))return F.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);te={name:"cubic-bezier",controlPoints:ft}}}if(A.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${A.length-1}.`);if((A.length-1)%2!=0)return F.error("Expected an even number of arguments.");if(fe=F.parse(fe,2,dt),!fe)return null;let Re=[],Ke=null;W==="interpolate-hcl"||W==="interpolate-lab"?Ke=jt:F.expectedType&&F.expectedType.kind!=="value"&&(Ke=F.expectedType);for(let ft=0;ft=Rt)return F.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ur);let kr=F.parse(er,vr,Ke);if(!kr)return null;Ke=Ke||kr.type,Re.push([Rt,kr])}return Kt(Ke,dt)||Kt(Ke,jt)||Kt(Ke,qr)||Kt(Ke,gt)||Kt(Ke,Ge(dt))?new ko(Ke,W,te,fe,Re):F.error(`Type ${Je(Ke)} is not interpolatable.`)}evaluate(A){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(A);let te=this.input.evaluate(A);if(te<=F[0])return W[0].evaluate(A);let fe=F.length;if(te>=F[fe-1])return W[fe-1].evaluate(A);let pe=ki(F,te),Re=ko.interpolationFactor(this.interpolation,te,F[pe],F[pe+1]),Ke=W[pe].evaluate(A),ft=W[pe+1].evaluate(A);switch(this.operator){case"interpolate":return Lo[this.type.kind](Ke,ft,Re);case"interpolate-hcl":return Lo.color(Ke,ft,Re,"hcl");case"interpolate-lab":return Lo.color(Ke,ft,Re,"lab")}}eachChild(A){A(this.input);for(let F of this.outputs)A(F)}outputDefined(){return this.outputs.every(A=>A.outputDefined())}}function Ds(R,A,F,W){let te=W-F,fe=R-F;return te===0?0:A===1?fe/te:(Math.pow(A,fe)-1)/(Math.pow(A,te)-1)}class Fs{constructor(A,F){this.type=A,this.args=F}static parse(A,F){if(A.length<2)return F.error("Expectected at least one argument.");let W=null,te=F.expectedType;te&&te.kind!=="value"&&(W=te);let fe=[];for(let Re of A.slice(1)){let Ke=F.parse(Re,1+fe.length,W,void 0,{typeAnnotation:"omit"});if(!Ke)return null;W=W||Ke.type,fe.push(Ke)}if(!W)throw new Error("No output type");let pe=te&&fe.some(Re=>et(te,Re.type));return new Fs(pe?mr:W,fe)}evaluate(A){let F,W=null,te=0;for(let fe of this.args)if(te++,W=fe.evaluate(A),W&&W instanceof en&&!W.available&&(F||(F=W.name),W=null,te===this.args.length&&(W=F)),W!==null)break;return W}eachChild(A){this.args.forEach(A)}outputDefined(){return this.args.every(A=>A.outputDefined())}}function ll(R,A){return R==="=="||R==="!="?A.kind==="boolean"||A.kind==="string"||A.kind==="number"||A.kind==="null"||A.kind==="value":A.kind==="string"||A.kind==="number"||A.kind==="value"}function ul(R,A,F,W){return W.compare(A,F)===0}function zl(R,A,F){let W=R!=="=="&&R!=="!=";return class gje{constructor(fe,pe,Re){this.type=pt,this.lhs=fe,this.rhs=pe,this.collator=Re,this.hasUntypedArgument=fe.type.kind==="value"||pe.type.kind==="value"}static parse(fe,pe){if(fe.length!==3&&fe.length!==4)return pe.error("Expected two or three arguments.");let Re=fe[0],Ke=pe.parse(fe[1],1,mr);if(!Ke)return null;if(!ll(Re,Ke.type))return pe.concat(1).error(`"${Re}" comparisons are not supported for type '${Je(Ke.type)}'.`);let ft=pe.parse(fe[2],2,mr);if(!ft)return null;if(!ll(Re,ft.type))return pe.concat(2).error(`"${Re}" comparisons are not supported for type '${Je(ft.type)}'.`);if(Ke.type.kind!==ft.type.kind&&Ke.type.kind!=="value"&&ft.type.kind!=="value")return pe.error(`Cannot compare types '${Je(Ke.type)}' and '${Je(ft.type)}'.`);W&&(Ke.type.kind==="value"&&ft.type.kind!=="value"?Ke=new Fa(ft.type,[Ke]):Ke.type.kind!=="value"&&ft.type.kind==="value"&&(ft=new Fa(Ke.type,[ft])));let Rt=null;if(fe.length===4){if(Ke.type.kind!=="string"&&ft.type.kind!=="string"&&Ke.type.kind!=="value"&&ft.type.kind!=="value")return pe.error("Cannot use collator to compare non-string types.");if(Rt=pe.parse(fe[3],3,Ar),!Rt)return null}return new gje(Ke,ft,Rt)}evaluate(fe){let pe=this.lhs.evaluate(fe),Re=this.rhs.evaluate(fe);if(W&&this.hasUntypedArgument){let Ke=Mn(pe),ft=Mn(Re);if(Ke.kind!==ft.kind||Ke.kind!=="string"&&Ke.kind!=="number")throw new ma(`Expected arguments for "${R}" to be (string, string) or (number, number), but found (${Ke.kind}, ${ft.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){let Ke=Mn(pe),ft=Mn(Re);if(Ke.kind!=="string"||ft.kind!=="string")return A(fe,pe,Re)}return this.collator?F(fe,pe,Re,this.collator.evaluate(fe)):A(fe,pe,Re)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let us=zl("==",function(R,A,F){return A===F},ul),il=zl("!=",function(R,A,F){return A!==F},function(R,A,F,W){return!ul(0,A,F,W)}),As=zl("<",function(R,A,F){return A",function(R,A,F){return A>F},function(R,A,F,W){return W.compare(A,F)>0}),Ks=zl("<=",function(R,A,F){return A<=F},function(R,A,F,W){return W.compare(A,F)<=0}),zs=zl(">=",function(R,A,F){return A>=F},function(R,A,F,W){return W.compare(A,F)>=0});class Io{constructor(A,F,W){this.type=Ar,this.locale=W,this.caseSensitive=A,this.diacriticSensitive=F}static parse(A,F){if(A.length!==2)return F.error("Expected one argument.");let W=A[1];if(typeof W!="object"||Array.isArray(W))return F.error("Collator options argument must be an object.");let te=F.parse(W["case-sensitive"]!==void 0&&W["case-sensitive"],1,pt);if(!te)return null;let fe=F.parse(W["diacritic-sensitive"]!==void 0&&W["diacritic-sensitive"],1,pt);if(!fe)return null;let pe=null;return W.locale&&(pe=F.parse(W.locale,1,Et),!pe)?null:new Io(te,fe,pe)}evaluate(A){return new wr(this.caseSensitive.evaluate(A),this.diacriticSensitive.evaluate(A),this.locale?this.locale.evaluate(A):null)}eachChild(A){A(this.caseSensitive),A(this.diacriticSensitive),this.locale&&A(this.locale)}outputDefined(){return!1}}class ls{constructor(A,F,W,te,fe){this.type=Et,this.number=A,this.locale=F,this.currency=W,this.minFractionDigits=te,this.maxFractionDigits=fe}static parse(A,F){if(A.length!==3)return F.error("Expected two arguments.");let W=F.parse(A[1],1,dt);if(!W)return null;let te=A[2];if(typeof te!="object"||Array.isArray(te))return F.error("NumberFormat options argument must be an object.");let fe=null;if(te.locale&&(fe=F.parse(te.locale,1,Et),!fe))return null;let pe=null;if(te.currency&&(pe=F.parse(te.currency,1,Et),!pe))return null;let Re=null;if(te["min-fraction-digits"]&&(Re=F.parse(te["min-fraction-digits"],1,dt),!Re))return null;let Ke=null;return te["max-fraction-digits"]&&(Ke=F.parse(te["max-fraction-digits"],1,dt),!Ke)?null:new ls(W,fe,pe,Re,Ke)}evaluate(A){return new Intl.NumberFormat(this.locale?this.locale.evaluate(A):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(A):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(A):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(A):void 0}).format(this.number.evaluate(A))}eachChild(A){A(this.number),this.locale&&A(this.locale),this.currency&&A(this.currency),this.minFractionDigits&&A(this.minFractionDigits),this.maxFractionDigits&&A(this.maxFractionDigits)}outputDefined(){return!1}}class Yl{constructor(A){this.type=ei,this.sections=A}static parse(A,F){if(A.length<2)return F.error("Expected at least one argument.");let W=A[1];if(!Array.isArray(W)&&typeof W=="object")return F.error("First argument must be an image or text section.");let te=[],fe=!1;for(let pe=1;pe<=A.length-1;++pe){let Re=A[pe];if(fe&&typeof Re=="object"&&!Array.isArray(Re)){fe=!1;let Ke=null;if(Re["font-scale"]&&(Ke=F.parse(Re["font-scale"],1,dt),!Ke))return null;let ft=null;if(Re["text-font"]&&(ft=F.parse(Re["text-font"],1,Ge(Et)),!ft))return null;let Rt=null;if(Re["text-color"]&&(Rt=F.parse(Re["text-color"],1,jt),!Rt))return null;let er=te[te.length-1];er.scale=Ke,er.font=ft,er.textColor=Rt}else{let Ke=F.parse(A[pe],1,mr);if(!Ke)return null;let ft=Ke.type.kind;if(ft!=="string"&&ft!=="value"&&ft!=="null"&&ft!=="resolvedImage")return F.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");fe=!0,te.push({content:Ke,scale:null,font:null,textColor:null})}}return new Yl(te)}evaluate(A){return new ti(this.sections.map(F=>{let W=F.content.evaluate(A);return Mn(W)===jr?new Xr("",W,null,null,null):new Xr(Ba(W),null,F.scale?F.scale.evaluate(A):null,F.font?F.font.evaluate(A).join(","):null,F.textColor?F.textColor.evaluate(A):null)}))}eachChild(A){for(let F of this.sections)A(F.content),F.scale&&A(F.scale),F.font&&A(F.font),F.textColor&&A(F.textColor)}outputDefined(){return!1}}class Su{constructor(A){this.type=jr,this.input=A}static parse(A,F){if(A.length!==2)return F.error("Expected two arguments.");let W=F.parse(A[1],1,Et);return W?new Su(W):F.error("No image name provided.")}evaluate(A){let F=this.input.evaluate(A),W=en.fromString(F);return W&&A.availableImages&&(W.available=A.availableImages.indexOf(F)>-1),W}eachChild(A){A(this.input)}outputDefined(){return!1}}class nc{constructor(A){this.type=dt,this.input=A}static parse(A,F){if(A.length!==2)return F.error(`Expected 1 argument, but found ${A.length-1} instead.`);let W=F.parse(A[1],1);return W?W.type.kind!=="array"&&W.type.kind!=="string"&&W.type.kind!=="value"?F.error(`Expected argument of type string or array, but found ${Je(W.type)} instead.`):new nc(W):null}evaluate(A){let F=this.input.evaluate(A);if(typeof F=="string")return[...F].length;if(Array.isArray(F))return F.length;throw new ma(`Expected value to be of type string or array, but found ${Je(Mn(F))} instead.`)}eachChild(A){A(this.input)}outputDefined(){return!1}}let bs=8192;function Rn(R,A){let F=(180+R[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R[1]*Math.PI/360)))/360,te=Math.pow(2,A.z);return[Math.round(F*te*bs),Math.round(W*te*bs)]}function _a(R,A){let F=Math.pow(2,A.z);return[(te=(R[0]/bs+A.x)/F,360*te-180),(W=(R[1]/bs+A.y)/F,360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90)];var W,te}function Vu(R,A){R[0]=Math.min(R[0],A[0]),R[1]=Math.min(R[1],A[1]),R[2]=Math.max(R[2],A[0]),R[3]=Math.max(R[3],A[1])}function ql(R,A){return!(R[0]<=A[0]||R[2]>=A[2]||R[1]<=A[1]||R[3]>=A[3])}function xo(R,A,F){let W=R[0]-A[0],te=R[1]-A[1],fe=R[0]-F[0],pe=R[1]-F[1];return W*pe-fe*te==0&&W*fe<=0&&te*pe<=0}function Kl(R,A,F,W){return(te=[W[0]-F[0],W[1]-F[1]])[0]*(fe=[A[0]-R[0],A[1]-R[1]])[1]-te[1]*fe[0]!=0&&!(!Oo(R,A,F,W)||!Oo(F,W,R,A));var te,fe}function Ns(R,A,F){for(let W of F)for(let te=0;te(te=R)[1]!=(pe=Re[Ke+1])[1]>te[1]&&te[0]<(pe[0]-fe[0])*(te[1]-fe[1])/(pe[1]-fe[1])+fe[0]&&(W=!W)}var te,fe,pe;return W}function ac(R,A){for(let F of A)if(Hl(R,F))return!0;return!1}function oa(R,A){for(let F of R)if(!Hl(F,A))return!1;for(let F=0;F0&&Re<0||pe<0&&Re>0}function Ol(R,A,F){let W=[];for(let te=0;teF[2]){let te=.5*W,fe=R[0]-F[0]>te?-W:F[0]-R[0]>te?W:0;fe===0&&(fe=R[0]-F[2]>te?-W:F[2]-R[0]>te?W:0),R[0]+=fe}Vu(A,R)}function nf(R,A,F,W){let te=Math.pow(2,W.z)*bs,fe=[W.x*bs,W.y*bs],pe=[];for(let Re of R)for(let Ke of Re){let ft=[Ke.x+fe[0],Ke.y+fe[1]];Do(ft,A,F,te),pe.push(ft)}return pe}function Vf(R,A,F,W){let te=Math.pow(2,W.z)*bs,fe=[W.x*bs,W.y*bs],pe=[];for(let Ke of R){let ft=[];for(let Rt of Ke){let er=[Rt.x+fe[0],Rt.y+fe[1]];Vu(A,er),ft.push(er)}pe.push(ft)}if(A[2]-A[0]<=te/2){(Re=A)[0]=Re[1]=1/0,Re[2]=Re[3]=-1/0;for(let Ke of pe)for(let ft of Ke)Do(ft,A,F,te)}var Re;return pe}class pl{constructor(A,F){this.type=pt,this.geojson=A,this.geometries=F}static parse(A,F){if(A.length!==2)return F.error(`'within' expression requires exactly one argument, but found ${A.length-1} instead.`);if(yn(A[1])){let W=A[1];if(W.type==="FeatureCollection"){let te=[];for(let fe of W.features){let{type:pe,coordinates:Re}=fe.geometry;pe==="Polygon"&&te.push(Re),pe==="MultiPolygon"&&te.push(...Re)}if(te.length)return new pl(W,{type:"MultiPolygon",coordinates:te})}else if(W.type==="Feature"){let te=W.geometry.type;if(te==="Polygon"||te==="MultiPolygon")return new pl(W,W.geometry)}else if(W.type==="Polygon"||W.type==="MultiPolygon")return new pl(W,W)}return F.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(A){if(A.geometry()!=null&&A.canonicalID()!=null){if(A.geometryType()==="Point")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let Re=Ol(W.coordinates,fe,pe),Ke=nf(F.geometry(),te,fe,pe);if(!ql(te,fe))return!1;for(let ft of Ke)if(!Hl(ft,Re))return!1}if(W.type==="MultiPolygon"){let Re=Pc(W.coordinates,fe,pe),Ke=nf(F.geometry(),te,fe,pe);if(!ql(te,fe))return!1;for(let ft of Ke)if(!ac(ft,Re))return!1}return!0}(A,this.geometries);if(A.geometryType()==="LineString")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let Re=Ol(W.coordinates,fe,pe),Ke=Vf(F.geometry(),te,fe,pe);if(!ql(te,fe))return!1;for(let ft of Ke)if(!oa(ft,Re))return!1}if(W.type==="MultiPolygon"){let Re=Pc(W.coordinates,fe,pe),Ke=Vf(F.geometry(),te,fe,pe);if(!ql(te,fe))return!1;for(let ft of Ke)if(!qo(ft,Re))return!1}return!0}(A,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Zc=class{constructor(R=[],A=(F,W)=>FW?1:0){if(this.data=R,this.length=this.data.length,this.compare=A,this.length>0)for(let F=(this.length>>1)-1;F>=0;F--)this._down(F)}push(R){this.data.push(R),this._up(this.length++)}pop(){if(this.length===0)return;let R=this.data[0],A=this.data.pop();return--this.length>0&&(this.data[0]=A,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:A,compare:F}=this,W=A[R];for(;R>0;){let te=R-1>>1,fe=A[te];if(F(W,fe)>=0)break;A[R]=fe,R=te}A[R]=W}_down(R){let{data:A,compare:F}=this,W=this.length>>1,te=A[R];for(;R=0)break;A[R]=A[fe],R=fe}A[R]=te}};function Jl(R,A,F,W,te){qs(R,A,F,W||R.length-1,te||oc)}function qs(R,A,F,W,te){for(;W>F;){if(W-F>600){var fe=W-F+1,pe=A-F+1,Re=Math.log(fe),Ke=.5*Math.exp(2*Re/3),ft=.5*Math.sqrt(Re*Ke*(fe-Ke)/fe)*(pe-fe/2<0?-1:1);qs(R,A,Math.max(F,Math.floor(A-pe*Ke/fe+ft)),Math.min(W,Math.floor(A+(fe-pe)*Ke/fe+ft)),te)}var Rt=R[A],er=F,ur=W;for(yu(R,F,A),te(R[W],Rt)>0&&yu(R,F,W);er0;)ur--}te(R[F],Rt)===0?yu(R,F,ur):yu(R,++ur,W),ur<=A&&(F=ur+1),A<=ur&&(W=ur-1)}}function yu(R,A,F){var W=R[A];R[A]=R[F],R[F]=W}function oc(R,A){return RA?1:0}function Cf(R,A){if(R.length<=1)return[R];let F=[],W,te;for(let fe of R){let pe=jh(fe);pe!==0&&(fe.area=Math.abs(pe),te===void 0&&(te=pe<0),te===pe<0?(W&&F.push(W),W=[fe]):W.push(fe))}if(W&&F.push(W),A>1)for(let fe=0;fe1?(ft=A[Ke+1][0],Rt=A[Ke+1][1]):vr>0&&(ft+=er/this.kx*vr,Rt+=ur/this.ky*vr)),er=this.wrap(F[0]-ft)*this.kx,ur=(F[1]-Rt)*this.ky;let kr=er*er+ur*ur;kr180;)A-=360;return A}}function $l(R,A){return A[0]-R[0]}function fl(R){return R[1]-R[0]+1}function lc(R,A){return R[1]>=R[0]&&R[1]R[1])return[null,null];let F=fl(R);if(A){if(F===2)return[R,null];let te=Math.floor(F/2);return[[R[0],R[0]+te],[R[0]+te,R[1]]]}if(F===1)return[R,null];let W=Math.floor(F/2)-1;return[[R[0],R[0]+W],[R[0]+W+1,R[1]]]}function Es(R,A){if(!lc(A,R.length))return[1/0,1/0,-1/0,-1/0];let F=[1/0,1/0,-1/0,-1/0];for(let W=A[0];W<=A[1];++W)Vu(F,R[W]);return F}function Hs(R){let A=[1/0,1/0,-1/0,-1/0];for(let F of R)for(let W of F)Vu(A,W);return A}function Go(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function ps(R,A,F){if(!Go(R)||!Go(A))return NaN;let W=0,te=0;return R[2]A[2]&&(W=R[0]-A[2]),R[1]>A[3]&&(te=R[1]-A[3]),R[3]=W)return W;if(ql(te,fe)){if(sd(R,A))return 0}else if(sd(A,R))return 0;let pe=1/0;for(let Re of R)for(let Ke=0,ft=Re.length,Rt=ft-1;Ke0;){let Ke=pe.pop();if(Ke[0]>=fe)continue;let ft=Ke[1],Rt=A?50:100;if(fl(ft)<=Rt){if(!lc(ft,R.length))return NaN;if(A){let er=Po(R,ft,F,W);if(isNaN(er)||er===0)return er;fe=Math.min(fe,er)}else for(let er=ft[0];er<=ft[1];++er){let ur=od(R[er],F,W);if(fe=Math.min(fe,ur),fe===0)return 0}}else{let er=Fu(ft,A);Pa(pe,fe,W,R,Re,er[0]),Pa(pe,fe,W,R,Re,er[1])}}return fe}function bl(R,A,F,W,te,fe=1/0){let pe=Math.min(fe,te.distance(R[0],F[0]));if(pe===0)return pe;let Re=new Zc([[0,[0,R.length-1],[0,F.length-1]]],$l);for(;Re.length>0;){let Ke=Re.pop();if(Ke[0]>=pe)continue;let ft=Ke[1],Rt=Ke[2],er=A?50:100,ur=W?50:100;if(fl(ft)<=er&&fl(Rt)<=ur){if(!lc(ft,R.length)&&lc(Rt,F.length))return NaN;let vr;if(A&&W)vr=Gu(R,ft,F,Rt,te),pe=Math.min(pe,vr);else if(A&&!W){let kr=R.slice(ft[0],ft[1]+1);for(let Dr=Rt[0];Dr<=Rt[1];++Dr)if(vr=uc(F[Dr],kr,te),pe=Math.min(pe,vr),pe===0)return pe}else if(!A&&W){let kr=F.slice(Rt[0],Rt[1]+1);for(let Dr=ft[0];Dr<=ft[1];++Dr)if(vr=uc(R[Dr],kr,te),pe=Math.min(pe,vr),pe===0)return pe}else vr=Os(R,ft,F,Rt,te),pe=Math.min(pe,vr)}else{let vr=Fu(ft,A),kr=Fu(Rt,W);of(Re,pe,te,R,F,vr[0],kr[0]),of(Re,pe,te,R,F,vr[0],kr[1]),of(Re,pe,te,R,F,vr[1],kr[0]),of(Re,pe,te,R,F,vr[1],kr[1])}}return pe}function Hf(R){return R.type==="MultiPolygon"?R.coordinates.map(A=>({type:"Polygon",coordinates:A})):R.type==="MultiLineString"?R.coordinates.map(A=>({type:"LineString",coordinates:A})):R.type==="MultiPoint"?R.coordinates.map(A=>({type:"Point",coordinates:A})):[R]}class Ic{constructor(A,F){this.type=dt,this.geojson=A,this.geometries=F}static parse(A,F){if(A.length!==2)return F.error(`'distance' expression requires exactly one argument, but found ${A.length-1} instead.`);if(yn(A[1])){let W=A[1];if(W.type==="FeatureCollection")return new Ic(W,W.features.map(te=>Hf(te.geometry)).flat());if(W.type==="Feature")return new Ic(W,Hf(W.geometry));if("type"in W&&"coordinates"in W)return new Ic(W,Hf(W))}return F.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(A){if(A.geometry()!=null&&A.canonicalID()!=null){if(A.geometryType()==="Point")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Gf(fe[0][1]),Re=1/0;for(let Ke of W){switch(Ke.type){case"Point":Re=Math.min(Re,bl(fe,!1,[Ke.coordinates],!1,pe,Re));break;case"LineString":Re=Math.min(Re,bl(fe,!1,Ke.coordinates,!0,pe,Re));break;case"Polygon":Re=Math.min(Re,Hu(fe,!1,Ke.coordinates,pe,Re))}if(Re===0)return Re}return Re}(A,this.geometries);if(A.geometryType()==="LineString")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Gf(fe[0][1]),Re=1/0;for(let Ke of W){switch(Ke.type){case"Point":Re=Math.min(Re,bl(fe,!0,[Ke.coordinates],!1,pe,Re));break;case"LineString":Re=Math.min(Re,bl(fe,!0,Ke.coordinates,!0,pe,Re));break;case"Polygon":Re=Math.min(Re,Hu(fe,!0,Ke.coordinates,pe,Re))}if(Re===0)return Re}return Re}(A,this.geometries);if(A.geometryType()==="Polygon")return function(F,W){let te=F.geometry();if(te.length===0||te[0].length===0)return NaN;let fe=Cf(te,0).map(Ke=>Ke.map(ft=>ft.map(Rt=>_a([Rt.x,Rt.y],F.canonical)))),pe=new Gf(fe[0][0][0][1]),Re=1/0;for(let Ke of W)for(let ft of fe){switch(Ke.type){case"Point":Re=Math.min(Re,Hu([Ke.coordinates],!1,ft,pe,Re));break;case"LineString":Re=Math.min(Re,Hu(Ke.coordinates,!0,ft,pe,Re));break;case"Polygon":Re=Math.min(Re,Ko(ft,Ke.coordinates,pe,Re))}if(Re===0)return Re}return Re}(A,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let yf={"==":us,"!=":il,">":cl,"<":As,">=":zs,"<=":Ks,array:Fa,at:Sr,boolean:Fa,case:Sn,coalesce:Fs,collator:Io,format:Yl,image:Su,in:Jr,"index-of":hi,interpolate:ko,"interpolate-hcl":ko,"interpolate-lab":ko,length:nc,let:Gn,literal:ua,match:hn,number:Fa,"number-format":ls,object:Fa,slice:En,step:_n,string:Fa,"to-boolean":da,"to-color":da,"to-number":da,"to-string":da,var:Ct,within:pl,distance:Ic};class Bl{constructor(A,F,W,te){this.name=A,this.type=F,this._evaluate=W,this.args=te}evaluate(A){return this._evaluate(A,this.args)}eachChild(A){this.args.forEach(A)}outputDefined(){return!1}static parse(A,F){let W=A[0],te=Bl.definitions[W];if(!te)return F.error(`Unknown expression "${W}". If you wanted a literal array, use ["literal", [...]].`,0);let fe=Array.isArray(te)?te[0]:te.type,pe=Array.isArray(te)?[[te[1],te[2]]]:te.overloads,Re=pe.filter(([ft])=>!Array.isArray(ft)||ft.length===A.length-1),Ke=null;for(let[ft,Rt]of Re){Ke=new vo(F.registry,eh,F.path,null,F.scope);let er=[],ur=!1;for(let vr=1;vr{return ur=er,Array.isArray(ur)?`(${ur.map(Je).join(", ")})`:`(${Je(ur.type)}...)`;var ur}).join(" | "),Rt=[];for(let er=1;er{F=A?F&&eh(W):F&&W instanceof ua}),!!F&&th(R)&&jf(R,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function th(R){if(R instanceof Bl&&(R.name==="get"&&R.args.length===1||R.name==="feature-state"||R.name==="has"&&R.args.length===1||R.name==="properties"||R.name==="geometry-type"||R.name==="id"||/^filter-/.test(R.name))||R instanceof pl||R instanceof Ic)return!1;let A=!0;return R.eachChild(F=>{A&&!th(F)&&(A=!1)}),A}function ju(R){if(R instanceof Bl&&R.name==="feature-state")return!1;let A=!0;return R.eachChild(F=>{A&&!ju(F)&&(A=!1)}),A}function jf(R,A){if(R instanceof Bl&&A.indexOf(R.name)>=0)return!1;let F=!0;return R.eachChild(W=>{F&&!jf(W,A)&&(F=!1)}),F}function cc(R){return{result:"success",value:R}}function sf(R){return{result:"error",value:R}}function Nl(R){return R["property-type"]==="data-driven"||R["property-type"]==="cross-faded-data-driven"}function Kc(R){return!!R.expression&&R.expression.parameters.indexOf("zoom")>-1}function Rc(R){return!!R.expression&&R.expression.interpolated}function gs(R){return R instanceof Number?"number":R instanceof String?"string":R instanceof Boolean?"boolean":Array.isArray(R)?"array":R===null?"null":typeof R}function Wf(R){return typeof R=="object"&&R!==null&&!Array.isArray(R)}function Wh(R){return R}function rh(R,A){let F=A.type==="color",W=R.stops&&typeof R.stops[0][0]=="object",te=W||!(W||R.property!==void 0),fe=R.type||(Rc(A)?"exponential":"interval");if(F||A.type==="padding"){let Rt=F?ir.parse:$r.parse;(R=Ae({},R)).stops&&(R.stops=R.stops.map(er=>[er[0],Rt(er[1])])),R.default=Rt(R.default?R.default:A.default)}if(R.colorSpace&&(pe=R.colorSpace)!=="rgb"&&pe!=="hcl"&&pe!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var pe;let Re,Ke,ft;if(fe==="exponential")Re=ih;else if(fe==="interval")Re=Mu;else if(fe==="categorical"){Re=Sh,Ke=Object.create(null);for(let Rt of R.stops)Ke[Rt[0]]=Rt[1];ft=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);Re=js}if(W){let Rt={},er=[];for(let kr=0;krkr[0]),evaluate:({zoom:kr},Dr)=>ih({stops:ur,base:R.base},A,kr).evaluate(kr,Dr)}}if(te){let Rt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Rt,interpolationFactor:ko.interpolationFactor.bind(void 0,Rt),zoomStops:R.stops.map(er=>er[0]),evaluate:({zoom:er})=>Re(R,A,er,Ke,ft)}}return{kind:"source",evaluate(Rt,er){let ur=er&&er.properties?er.properties[R.property]:void 0;return ur===void 0?lf(R.default,A.default):Re(R,A,ur,Ke,ft)}}}function lf(R,A,F){return R!==void 0?R:A!==void 0?A:F!==void 0?F:void 0}function Sh(R,A,F,W,te){return lf(typeof F===te?W[F]:void 0,R.default,A.default)}function Mu(R,A,F){if(gs(F)!=="number")return lf(R.default,A.default);let W=R.stops.length;if(W===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[W-1][0])return R.stops[W-1][1];let te=ki(R.stops.map(fe=>fe[0]),F);return R.stops[te][1]}function ih(R,A,F){let W=R.base!==void 0?R.base:1;if(gs(F)!=="number")return lf(R.default,A.default);let te=R.stops.length;if(te===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[te-1][0])return R.stops[te-1][1];let fe=ki(R.stops.map(Rt=>Rt[0]),F),pe=function(Rt,er,ur,vr){let kr=vr-ur,Dr=Rt-ur;return kr===0?0:er===1?Dr/kr:(Math.pow(er,Dr)-1)/(Math.pow(er,kr)-1)}(F,W,R.stops[fe][0],R.stops[fe+1][0]),Re=R.stops[fe][1],Ke=R.stops[fe+1][1],ft=Lo[A.type]||Wh;return typeof Re.evaluate=="function"?{evaluate(...Rt){let er=Re.evaluate.apply(void 0,Rt),ur=Ke.evaluate.apply(void 0,Rt);if(er!==void 0&&ur!==void 0)return ft(er,ur,pe,R.colorSpace)}}:ft(Re,Ke,pe,R.colorSpace)}function js(R,A,F){switch(A.type){case"color":F=ir.parse(F);break;case"formatted":F=ti.fromString(F.toString());break;case"resolvedImage":F=en.fromString(F.toString());break;case"padding":F=$r.parse(F);break;default:gs(F)===A.type||A.type==="enum"&&A.values[F]||(F=void 0)}return lf(F,R.default,A.default)}Bl.register(yf,{error:[{kind:"error"},[Et],(R,[A])=>{throw new ma(A.evaluate(R))}],typeof:[Et,[mr],(R,[A])=>Je(Mn(A.evaluate(R)))],"to-rgba":[Ge(dt,4),[jt],(R,[A])=>{let[F,W,te,fe]=A.evaluate(R).rgb;return[255*F,255*W,255*te,fe]}],rgb:[jt,[dt,dt,dt],Ah],rgba:[jt,[dt,dt,dt,dt],Ah],has:{type:pt,overloads:[[[Et],(R,[A])=>Qf(A.evaluate(R),R.properties())],[[Et,or],(R,[A,F])=>Qf(A.evaluate(R),F.evaluate(R))]]},get:{type:mr,overloads:[[[Et],(R,[A])=>_f(A.evaluate(R),R.properties())],[[Et,or],(R,[A,F])=>_f(A.evaluate(R),F.evaluate(R))]]},"feature-state":[mr,[Et],(R,[A])=>_f(A.evaluate(R),R.featureState||{})],properties:[or,[],R=>R.properties()],"geometry-type":[Et,[],R=>R.geometryType()],id:[mr,[],R=>R.id()],zoom:[dt,[],R=>R.globals.zoom],"heatmap-density":[dt,[],R=>R.globals.heatmapDensity||0],"line-progress":[dt,[],R=>R.globals.lineProgress||0],accumulated:[mr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[dt,Yc(dt),(R,A)=>{let F=0;for(let W of A)F+=W.evaluate(R);return F}],"*":[dt,Yc(dt),(R,A)=>{let F=1;for(let W of A)F*=W.evaluate(R);return F}],"-":{type:dt,overloads:[[[dt,dt],(R,[A,F])=>A.evaluate(R)-F.evaluate(R)],[[dt],(R,[A])=>-A.evaluate(R)]]},"/":[dt,[dt,dt],(R,[A,F])=>A.evaluate(R)/F.evaluate(R)],"%":[dt,[dt,dt],(R,[A,F])=>A.evaluate(R)%F.evaluate(R)],ln2:[dt,[],()=>Math.LN2],pi:[dt,[],()=>Math.PI],e:[dt,[],()=>Math.E],"^":[dt,[dt,dt],(R,[A,F])=>Math.pow(A.evaluate(R),F.evaluate(R))],sqrt:[dt,[dt],(R,[A])=>Math.sqrt(A.evaluate(R))],log10:[dt,[dt],(R,[A])=>Math.log(A.evaluate(R))/Math.LN10],ln:[dt,[dt],(R,[A])=>Math.log(A.evaluate(R))],log2:[dt,[dt],(R,[A])=>Math.log(A.evaluate(R))/Math.LN2],sin:[dt,[dt],(R,[A])=>Math.sin(A.evaluate(R))],cos:[dt,[dt],(R,[A])=>Math.cos(A.evaluate(R))],tan:[dt,[dt],(R,[A])=>Math.tan(A.evaluate(R))],asin:[dt,[dt],(R,[A])=>Math.asin(A.evaluate(R))],acos:[dt,[dt],(R,[A])=>Math.acos(A.evaluate(R))],atan:[dt,[dt],(R,[A])=>Math.atan(A.evaluate(R))],min:[dt,Yc(dt),(R,A)=>Math.min(...A.map(F=>F.evaluate(R)))],max:[dt,Yc(dt),(R,A)=>Math.max(...A.map(F=>F.evaluate(R)))],abs:[dt,[dt],(R,[A])=>Math.abs(A.evaluate(R))],round:[dt,[dt],(R,[A])=>{let F=A.evaluate(R);return F<0?-Math.round(-F):Math.round(F)}],floor:[dt,[dt],(R,[A])=>Math.floor(A.evaluate(R))],ceil:[dt,[dt],(R,[A])=>Math.ceil(A.evaluate(R))],"filter-==":[pt,[Et,mr],(R,[A,F])=>R.properties()[A.value]===F.value],"filter-id-==":[pt,[mr],(R,[A])=>R.id()===A.value],"filter-type-==":[pt,[Et],(R,[A])=>R.geometryType()===A.value],"filter-<":[pt,[Et,mr],(R,[A,F])=>{let W=R.properties()[A.value],te=F.value;return typeof W==typeof te&&W{let F=R.id(),W=A.value;return typeof F==typeof W&&F":[pt,[Et,mr],(R,[A,F])=>{let W=R.properties()[A.value],te=F.value;return typeof W==typeof te&&W>te}],"filter-id->":[pt,[mr],(R,[A])=>{let F=R.id(),W=A.value;return typeof F==typeof W&&F>W}],"filter-<=":[pt,[Et,mr],(R,[A,F])=>{let W=R.properties()[A.value],te=F.value;return typeof W==typeof te&&W<=te}],"filter-id-<=":[pt,[mr],(R,[A])=>{let F=R.id(),W=A.value;return typeof F==typeof W&&F<=W}],"filter->=":[pt,[Et,mr],(R,[A,F])=>{let W=R.properties()[A.value],te=F.value;return typeof W==typeof te&&W>=te}],"filter-id->=":[pt,[mr],(R,[A])=>{let F=R.id(),W=A.value;return typeof F==typeof W&&F>=W}],"filter-has":[pt,[mr],(R,[A])=>A.value in R.properties()],"filter-has-id":[pt,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[pt,[Ge(Et)],(R,[A])=>A.value.indexOf(R.geometryType())>=0],"filter-id-in":[pt,[Ge(mr)],(R,[A])=>A.value.indexOf(R.id())>=0],"filter-in-small":[pt,[Et,Ge(mr)],(R,[A,F])=>F.value.indexOf(R.properties()[A.value])>=0],"filter-in-large":[pt,[Et,Ge(mr)],(R,[A,F])=>function(W,te,fe,pe){for(;fe<=pe;){let Re=fe+pe>>1;if(te[Re]===W)return!0;te[Re]>W?pe=Re-1:fe=Re+1}return!1}(R.properties()[A.value],F.value,0,F.value.length-1)],all:{type:pt,overloads:[[[pt,pt],(R,[A,F])=>A.evaluate(R)&&F.evaluate(R)],[Yc(pt),(R,A)=>{for(let F of A)if(!F.evaluate(R))return!1;return!0}]]},any:{type:pt,overloads:[[[pt,pt],(R,[A,F])=>A.evaluate(R)||F.evaluate(R)],[Yc(pt),(R,A)=>{for(let F of A)if(F.evaluate(R))return!0;return!1}]]},"!":[pt,[pt],(R,[A])=>!A.evaluate(R)],"is-supported-script":[pt,[Et],(R,[A])=>{let F=R.globals&&R.globals.isSupportedScript;return!F||F(A.evaluate(R))}],upcase:[Et,[Et],(R,[A])=>A.evaluate(R).toUpperCase()],downcase:[Et,[Et],(R,[A])=>A.evaluate(R).toLowerCase()],concat:[Et,Yc(mr),(R,A)=>A.map(F=>Ba(F.evaluate(R))).join("")],"resolved-locale":[Et,[Ar],(R,[A])=>A.evaluate(R).resolvedLocale()]});class Eu{constructor(A,F){var W;this.expression=A,this._warningHistory={},this._evaluator=new Ha,this._defaultValue=F?(W=F).type==="color"&&Wf(W.default)?new ir(0,0,0,0):W.type==="color"?ir.parse(W.default)||null:W.type==="padding"?$r.parse(W.default)||null:W.type==="variableAnchorOffsetCollection"?Zi.parse(W.default)||null:W.default===void 0?null:W.default:null,this._enumValues=F&&F.type==="enum"?F.values:null}evaluateWithoutErrorHandling(A,F,W,te,fe,pe){return this._evaluator.globals=A,this._evaluator.feature=F,this._evaluator.featureState=W,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe,this.expression.evaluate(this._evaluator)}evaluate(A,F,W,te,fe,pe){this._evaluator.globals=A,this._evaluator.feature=F||null,this._evaluator.featureState=W||null,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe||null;try{let Re=this.expression.evaluate(this._evaluator);if(Re==null||typeof Re=="number"&&Re!=Re)return this._defaultValue;if(this._enumValues&&!(Re in this._enumValues))throw new ma(`Expected value to be one of ${Object.keys(this._enumValues).map(Ke=>JSON.stringify(Ke)).join(", ")}, but found ${JSON.stringify(Re)} instead.`);return Re}catch(Re){return this._warningHistory[Re.message]||(this._warningHistory[Re.message]=!0,typeof console!="undefined"&&console.warn(Re.message)),this._defaultValue}}}function Dc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in yf}function ks(R,A){let F=new vo(yf,eh,[],A?function(te){let fe={color:jt,string:Et,number:dt,enum:Et,boolean:pt,formatted:ei,padding:qr,resolvedImage:jr,variableAnchorOffsetCollection:gt};return te.type==="array"?Ge(fe[te.value]||mr,te.length):fe[te.type]}(A):void 0),W=F.parse(R,void 0,void 0,void 0,A&&A.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?cc(new Eu(W,A)):sf(F.errors)}class bc{constructor(A,F){this.kind=A,this._styleExpression=F,this.isStateDependent=A!=="constant"&&!ju(F.expression)}evaluateWithoutErrorHandling(A,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(A,F,W,te,fe,pe)}evaluate(A,F,W,te,fe,pe){return this._styleExpression.evaluate(A,F,W,te,fe,pe)}}class hu{constructor(A,F,W,te){this.kind=A,this.zoomStops=W,this._styleExpression=F,this.isStateDependent=A!=="camera"&&!ju(F.expression),this.interpolationType=te}evaluateWithoutErrorHandling(A,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(A,F,W,te,fe,pe)}evaluate(A,F,W,te,fe,pe){return this._styleExpression.evaluate(A,F,W,te,fe,pe)}interpolationFactor(A,F,W){return this.interpolationType?ko.interpolationFactor(this.interpolationType,A,F,W):0}}function _u(R,A){let F=ks(R,A);if(F.result==="error")return F;let W=F.value.expression,te=th(W);if(!te&&!Nl(A))return sf([new rt("","data expressions not supported")]);let fe=jf(W,["zoom"]);if(!fe&&!Kc(A))return sf([new rt("","zoom expressions not supported")]);let pe=nh(W);return pe||fe?pe instanceof rt?sf([pe]):pe instanceof ko&&!Rc(A)?sf([new rt("",'"interpolate" expressions cannot be used with this property')]):cc(pe?new hu(te?"camera":"composite",F.value,pe.labels,pe instanceof ko?pe.interpolation:void 0):new bc(te?"constant":"source",F.value)):sf([new rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class nl{constructor(A,F){this._parameters=A,this._specification=F,Ae(this,rh(this._parameters,this._specification))}static deserialize(A){return new nl(A._parameters,A._specification)}static serialize(A){return{_parameters:A._parameters,_specification:A._specification}}}function nh(R){let A=null;if(R instanceof Gn)A=nh(R.result);else if(R instanceof Fs){for(let F of R.args)if(A=nh(F),A)break}else(R instanceof _n||R instanceof ko)&&R.input instanceof Bl&&R.input.name==="zoom"&&(A=R);return A instanceof rt||R.eachChild(F=>{let W=nh(F);W instanceof rt?A=W:!A&&W?A=new rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):A&&W&&A!==W&&(A=new rt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),A}function Mh(R){if(R===!0||R===!1)return!0;if(!Array.isArray(R)||R.length===0)return!1;switch(R[0]){case"has":return R.length>=2&&R[1]!=="$id"&&R[1]!=="$type";case"in":return R.length>=3&&(typeof R[1]!="string"||Array.isArray(R[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return R.length!==3||Array.isArray(R[1])||Array.isArray(R[2]);case"any":case"all":for(let A of R.slice(1))if(!Mh(A)&&typeof A!="boolean")return!1;return!0;default:return!0}}let zu={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Fc(R){if(R==null)return{filter:()=>!0,needGeometry:!1};Mh(R)||(R=xf(R));let A=ks(R,zu);if(A.result==="error")throw new Error(A.value.map(F=>`${F.key}: ${F.message}`).join(", "));return{filter:(F,W,te)=>A.value.evaluate(F,W,{},te),needGeometry:bd(R)}}function wc(R,A){return RA?1:0}function bd(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let A=1;A"||A==="<="||A===">="?Pf(R[1],R[2],A):A==="any"?(F=R.slice(1),["any"].concat(F.map(xf))):A==="all"?["all"].concat(R.slice(1).map(xf)):A==="none"?["all"].concat(R.slice(1).map(xf).map(jl)):A==="in"?qu(R[1],R.slice(2)):A==="!in"?jl(qu(R[1],R.slice(2))):A==="has"?bf(R[1]):A!=="!has"||jl(bf(R[1]));var F}function Pf(R,A,F){switch(R){case"$type":return[`filter-type-${F}`,A];case"$id":return[`filter-id-${F}`,A];default:return[`filter-${F}`,R,A]}}function qu(R,A){if(A.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",A]];case"$id":return["filter-id-in",["literal",A]];default:return A.length>200&&!A.some(F=>typeof F!=typeof A[0])?["filter-in-large",R,["literal",A.sort(wc)]]:["filter-in-small",R,["literal",A]]}}function bf(R){switch(R){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",R]}}function jl(R){return["!",R]}function uf(R){let A=typeof R;if(A==="number"||A==="boolean"||A==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let te="[";for(let fe of R)te+=`${uf(fe)},`;return`${te}]`}let F=Object.keys(R).sort(),W="{";for(let te=0;teW.maximum?[new Ue(A,F,`${F} is greater than the maximum value ${W.maximum}`)]:[]}function wf(R){let A=R.valueSpec,F=Cs(R.value.type),W,te,fe,pe={},Re=F!=="categorical"&&R.value.property===void 0,Ke=!Re,ft=gs(R.value.stops)==="array"&&gs(R.value.stops[0])==="array"&&gs(R.value.stops[0][0])==="object",Rt=ku({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(vr){if(F==="identity")return[new Ue(vr.key,vr.value,'identity function may not have a "stops" property')];let kr=[],Dr=vr.value;return kr=kr.concat(Xf({key:vr.key,value:Dr,valueSpec:vr.valueSpec,validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec,arrayElementValidator:er})),gs(Dr)==="array"&&Dr.length===0&&kr.push(new Ue(vr.key,Dr,"array must have at least one stop")),kr},default:function(vr){return vr.validateSpec({key:vr.key,value:vr.value,valueSpec:A,validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec})}}});return F==="identity"&&Re&&Rt.push(new Ue(R.key,R.value,'missing required property "property"')),F==="identity"||R.value.stops||Rt.push(new Ue(R.key,R.value,'missing required property "stops"')),F==="exponential"&&R.valueSpec.expression&&!Rc(R.valueSpec)&&Rt.push(new Ue(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(Ke&&!Nl(R.valueSpec)?Rt.push(new Ue(R.key,R.value,"property functions not supported")):Re&&!Kc(R.valueSpec)&&Rt.push(new Ue(R.key,R.value,"zoom functions not supported"))),F!=="categorical"&&!ft||R.value.property!==void 0||Rt.push(new Ue(R.key,R.value,'"property" property is required')),Rt;function er(vr){let kr=[],Dr=vr.value,li=vr.key;if(gs(Dr)!=="array")return[new Ue(li,Dr,`array expected, ${gs(Dr)} found`)];if(Dr.length!==2)return[new Ue(li,Dr,`array length 2 expected, length ${Dr.length} found`)];if(ft){if(gs(Dr[0])!=="object")return[new Ue(li,Dr,`object expected, ${gs(Dr[0])} found`)];if(Dr[0].zoom===void 0)return[new Ue(li,Dr,"object stop key must have zoom")];if(Dr[0].value===void 0)return[new Ue(li,Dr,"object stop key must have value")];if(fe&&fe>Cs(Dr[0].zoom))return[new Ue(li,Dr[0].zoom,"stop zoom values must appear in ascending order")];Cs(Dr[0].zoom)!==fe&&(fe=Cs(Dr[0].zoom),te=void 0,pe={}),kr=kr.concat(ku({key:`${li}[0]`,value:Dr[0],valueSpec:{zoom:{}},validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec,objectElementValidators:{zoom:Us,value:ur}}))}else kr=kr.concat(ur({key:`${li}[0]`,value:Dr[0],valueSpec:{},validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec},Dr));return Dc(du(Dr[1]))?kr.concat([new Ue(`${li}[1]`,Dr[1],"expressions are not allowed in function stops.")]):kr.concat(vr.validateSpec({key:`${li}[1]`,value:Dr[1],valueSpec:A,validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec}))}function ur(vr,kr){let Dr=gs(vr.value),li=Cs(vr.value),pi=vr.value!==null?vr.value:kr;if(W){if(Dr!==W)return[new Ue(vr.key,pi,`${Dr} stop domain type must match previous stop domain type ${W}`)]}else W=Dr;if(Dr!=="number"&&Dr!=="string"&&Dr!=="boolean")return[new Ue(vr.key,pi,"stop domain value must be a number, string, or boolean")];if(Dr!=="number"&&F!=="categorical"){let vn=`number expected, ${Dr} found`;return Nl(A)&&F===void 0&&(vn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ue(vr.key,pi,vn)]}return F!=="categorical"||Dr!=="number"||isFinite(li)&&Math.floor(li)===li?F!=="categorical"&&Dr==="number"&&te!==void 0&&linew Ue(`${R.key}${W.key}`,R.value,W.message));let F=A.value.expression||A.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!F.outputDefined())return[new Ue(R.key,R.value,`Invalid data expression for "${R.propertyKey}". Output values must be contained as literals within the expression.`)];if(R.expressionContext==="property"&&R.propertyType==="layout"&&!ju(F))return[new Ue(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!ju(F))return[new Ue(R.key,R.value,'"feature-state" data expressions are not supported with filters.')];if(R.expressionContext&&R.expressionContext.indexOf("cluster")===0){if(!jf(F,["zoom","feature-state"]))return[new Ue(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!th(F))return[new Ue(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wu(R){let A=R.key,F=R.value,W=R.valueSpec,te=[];return Array.isArray(W.values)?W.values.indexOf(Cs(F))===-1&&te.push(new Ue(A,F,`expected one of [${W.values.join(", ")}], ${JSON.stringify(F)} found`)):Object.keys(W.values).indexOf(Cs(F))===-1&&te.push(new Ue(A,F,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(F)} found`)),te}function Rf(R){return Mh(du(R.value))?zc(Ae({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xu(R)}function Xu(R){let A=R.value,F=R.key;if(gs(A)!=="array")return[new Ue(F,A,`array expected, ${gs(A)} found`)];let W=R.styleSpec,te,fe=[];if(A.length<1)return[new Ue(F,A,"filter array must have at least 1 element")];switch(fe=fe.concat(Wu({key:`${F}[0]`,value:A[0],valueSpec:W.filter_operator,style:R.style,styleSpec:R.styleSpec})),Cs(A[0])){case"<":case"<=":case">":case">=":A.length>=2&&Cs(A[1])==="$type"&&fe.push(new Ue(F,A,`"$type" cannot be use with operator "${A[0]}"`));case"==":case"!=":A.length!==3&&fe.push(new Ue(F,A,`filter array for operator "${A[0]}" must have 3 elements`));case"in":case"!in":A.length>=2&&(te=gs(A[1]),te!=="string"&&fe.push(new Ue(`${F}[1]`,A[1],`string expected, ${te} found`)));for(let pe=2;pe{ft in F&&A.push(new Ue(W,F[ft],`"${ft}" is prohibited for ref layers`))}),te.layers.forEach(ft=>{Cs(ft.id)===Re&&(Ke=ft)}),Ke?Ke.ref?A.push(new Ue(W,F.ref,"ref cannot reference another ref layer")):pe=Cs(Ke.type):A.push(new Ue(W,F.ref,`ref layer "${Re}" not found`))}else if(pe!=="background")if(F.source){let Ke=te.sources&&te.sources[F.source],ft=Ke&&Cs(Ke.type);Ke?ft==="vector"&&pe==="raster"?A.push(new Ue(W,F.source,`layer "${F.id}" requires a raster source`)):ft!=="raster-dem"&&pe==="hillshade"?A.push(new Ue(W,F.source,`layer "${F.id}" requires a raster-dem source`)):ft==="raster"&&pe!=="raster"?A.push(new Ue(W,F.source,`layer "${F.id}" requires a vector source`)):ft!=="vector"||F["source-layer"]?ft==="raster-dem"&&pe!=="hillshade"?A.push(new Ue(W,F.source,"raster-dem source can only be used with layer type 'hillshade'.")):pe!=="line"||!F.paint||!F.paint["line-gradient"]||ft==="geojson"&&Ke.lineMetrics||A.push(new Ue(W,F,`layer "${F.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new Ue(W,F,`layer "${F.id}" must specify a "source-layer"`)):A.push(new Ue(W,F.source,`source "${F.source}" not found`))}else A.push(new Ue(W,F,'missing required property "source"'));return A=A.concat(ku({key:W,value:F,valueSpec:fe.layer,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,objectElementValidators:{"*":()=>[],type:()=>R.validateSpec({key:`${W}.type`,value:F.type,valueSpec:fe.layer.type,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,object:F,objectKey:"type"}),filter:Rf,layout:Ke=>ku({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ft=>Wl(Ae({layerType:pe},ft))}}),paint:Ke=>ku({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ft=>Zf(Ae({layerType:pe},ft))}})}})),A}function Zu(R){let A=R.value,F=R.key,W=gs(A);return W!=="string"?[new Ue(F,A,`string expected, ${W} found`)]:[]}let qc={promoteId:function({key:R,value:A}){if(gs(A)==="string")return Zu({key:R,value:A});{let F=[];for(let W in A)F.push(...Zu({key:`${R}.${W}`,value:A[W]}));return F}}};function Tc(R){let A=R.value,F=R.key,W=R.styleSpec,te=R.style,fe=R.validateSpec;if(!A.type)return[new Ue(F,A,'"type" is required')];let pe=Cs(A.type),Re;switch(pe){case"vector":case"raster":return Re=ku({key:F,value:A,valueSpec:W[`source_${pe.replace("-","_")}`],style:R.style,styleSpec:W,objectElementValidators:qc,validateSpec:fe}),Re;case"raster-dem":return Re=function(Ke){var ft;let Rt=(ft=Ke.sourceName)!==null&&ft!==void 0?ft:"",er=Ke.value,ur=Ke.styleSpec,vr=ur.source_raster_dem,kr=Ke.style,Dr=[],li=gs(er);if(er===void 0)return Dr;if(li!=="object")return Dr.push(new Ue("source_raster_dem",er,`object expected, ${li} found`)),Dr;let pi=Cs(er.encoding)==="custom",vn=["redFactor","greenFactor","blueFactor","baseShift"],zi=Ke.value.encoding?`"${Ke.value.encoding}"`:"Default";for(let ln in er)!pi&&vn.includes(ln)?Dr.push(new Ue(ln,er[ln],`In "${Rt}": "${ln}" is only valid when "encoding" is set to "custom". ${zi} encoding found`)):vr[ln]?Dr=Dr.concat(Ke.validateSpec({key:ln,value:er[ln],valueSpec:vr[ln],validateSpec:Ke.validateSpec,style:kr,styleSpec:ur})):Dr.push(new Ue(ln,er[ln],`unknown property "${ln}"`));return Dr}({sourceName:F,value:A,style:R.style,styleSpec:W,validateSpec:fe}),Re;case"geojson":if(Re=ku({key:F,value:A,valueSpec:W.source_geojson,style:te,styleSpec:W,validateSpec:fe,objectElementValidators:qc}),A.cluster)for(let Ke in A.clusterProperties){let[ft,Rt]=A.clusterProperties[Ke],er=typeof ft=="string"?[ft,["accumulated"],["get",Ke]]:ft;Re.push(...zc({key:`${F}.${Ke}.map`,value:Rt,validateSpec:fe,expressionContext:"cluster-map"})),Re.push(...zc({key:`${F}.${Ke}.reduce`,value:er,validateSpec:fe,expressionContext:"cluster-reduce"}))}return Re;case"video":return ku({key:F,value:A,valueSpec:W.source_video,style:te,validateSpec:fe,styleSpec:W});case"image":return ku({key:F,value:A,valueSpec:W.source_image,style:te,validateSpec:fe,styleSpec:W});case"canvas":return[new Ue(F,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Wu({key:`${F}.type`,value:A.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:te,validateSpec:fe,styleSpec:W})}}function wl(R){let A=R.value,F=R.styleSpec,W=F.light,te=R.style,fe=[],pe=gs(A);if(A===void 0)return fe;if(pe!=="object")return fe=fe.concat([new Ue("light",A,`object expected, ${pe} found`)]),fe;for(let Re in A){let Ke=Re.match(/^(.*)-transition$/);fe=fe.concat(Ke&&W[Ke[1]]&&W[Ke[1]].transition?R.validateSpec({key:Re,value:A[Re],valueSpec:F.transition,validateSpec:R.validateSpec,style:te,styleSpec:F}):W[Re]?R.validateSpec({key:Re,value:A[Re],valueSpec:W[Re],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new Ue(Re,A[Re],`unknown property "${Re}"`)])}return fe}function vu(R){let A=R.value,F=R.styleSpec,W=F.sky,te=R.style,fe=gs(A);if(A===void 0)return[];if(fe!=="object")return[new Ue("sky",A,`object expected, ${fe} found`)];let pe=[];for(let Re in A)pe=pe.concat(W[Re]?R.validateSpec({key:Re,value:A[Re],valueSpec:W[Re],style:te,styleSpec:F}):[new Ue(Re,A[Re],`unknown property "${Re}"`)]);return pe}function Oc(R){let A=R.value,F=R.styleSpec,W=F.terrain,te=R.style,fe=[],pe=gs(A);if(A===void 0)return fe;if(pe!=="object")return fe=fe.concat([new Ue("terrain",A,`object expected, ${pe} found`)]),fe;for(let Re in A)fe=fe.concat(W[Re]?R.validateSpec({key:Re,value:A[Re],valueSpec:W[Re],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new Ue(Re,A[Re],`unknown property "${Re}"`)]);return fe}function ff(R){let A=[],F=R.value,W=R.key;if(Array.isArray(F)){let te=[],fe=[];for(let pe in F)F[pe].id&&te.includes(F[pe].id)&&A.push(new Ue(W,F,`all the sprites' ids must be unique, but ${F[pe].id} is duplicated`)),te.push(F[pe].id),F[pe].url&&fe.includes(F[pe].url)&&A.push(new Ue(W,F,`all the sprites' URLs must be unique, but ${F[pe].url} is duplicated`)),fe.push(F[pe].url),A=A.concat(ku({key:`${W}[${pe}]`,value:F[pe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return A}return Zu({key:W,value:F})}let fc={"*":()=>[],array:Xf,boolean:function(R){let A=R.value,F=R.key,W=gs(A);return W!=="boolean"?[new Ue(F,A,`boolean expected, ${W} found`)]:[]},number:Us,color:function(R){let A=R.key,F=R.value,W=gs(F);return W!=="string"?[new Ue(A,F,`color expected, ${W} found`)]:ir.parse(String(F))?[]:[new Ue(A,F,`color expected, "${F}" found`)]},constants:If,enum:Wu,filter:Rf,function:wf,layer:ah,object:ku,source:Tc,light:wl,sky:vu,terrain:Oc,projection:function(R){let A=R.value,F=R.styleSpec,W=F.projection,te=R.style,fe=gs(A);if(A===void 0)return[];if(fe!=="object")return[new Ue("projection",A,`object expected, ${fe} found`)];let pe=[];for(let Re in A)pe=pe.concat(W[Re]?R.validateSpec({key:Re,value:A[Re],valueSpec:W[Re],style:te,styleSpec:F}):[new Ue(Re,A[Re],`unknown property "${Re}"`)]);return pe},string:Zu,formatted:function(R){return Zu(R).length===0?[]:zc(R)},resolvedImage:function(R){return Zu(R).length===0?[]:zc(R)},padding:function(R){let A=R.key,F=R.value;if(gs(F)==="array"){if(F.length<1||F.length>4)return[new Ue(A,F,`padding requires 1 to 4 values; ${F.length} values found`)];let W={type:"number"},te=[];for(let fe=0;fe[]}})),R.constants&&(F=F.concat(If({key:"constants",value:R.constants,style:R,styleSpec:A,validateSpec:Bc}))),xr(F)}function Er(R){return function(A){return R(j1(_g({},A),{validateSpec:Bc}))}}function xr(R){return[].concat(R).sort((A,F)=>A.line-F.line)}function Kr(R){return function(...A){return xr(R.apply(this,A))}}Zt.source=Kr(Er(Tc)),Zt.sprite=Kr(Er(ff)),Zt.glyphs=Kr(Er(kt)),Zt.light=Kr(Er(wl)),Zt.sky=Kr(Er(vu)),Zt.terrain=Kr(Er(Oc)),Zt.layer=Kr(Er(ah)),Zt.filter=Kr(Er(Rf)),Zt.paintProperty=Kr(Er(Zf)),Zt.layoutProperty=Kr(Er(Wl));let Mi=Zt,Wi=Mi.light,dn=Mi.sky,wn=Mi.paintProperty,On=Mi.layoutProperty;function Yi(R,A){let F=!1;if(A&&A.length)for(let W of A)R.fire(new me(new Error(W.message))),F=!0;return F}class $i{constructor(A,F,W){let te=this.cells=[];if(A instanceof ArrayBuffer){this.arrayBuffer=A;let pe=new Int32Array(this.arrayBuffer);A=pe[0],this.d=(F=pe[1])+2*(W=pe[2]);for(let Ke=0;Ke=er[kr+0]&&te>=er[kr+1])?(Re[vr]=!0,pe.push(Rt[vr])):Re[vr]=!1}}}}_forEachCell(A,F,W,te,fe,pe,Re,Ke){let ft=this._convertToCellCoord(A),Rt=this._convertToCellCoord(F),er=this._convertToCellCoord(W),ur=this._convertToCellCoord(te);for(let vr=ft;vr<=er;vr++)for(let kr=Rt;kr<=ur;kr++){let Dr=this.d*kr+vr;if((!Ke||Ke(this._convertFromCellCoord(vr),this._convertFromCellCoord(kr),this._convertFromCellCoord(vr+1),this._convertFromCellCoord(kr+1)))&&fe.call(this,A,F,W,te,Dr,pe,Re,Ke))return}}_convertFromCellCoord(A){return(A-this.padding)/this.scale}_convertToCellCoord(A){return Math.max(0,Math.min(this.d-1,Math.floor(A*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let A=this.cells,F=3+this.cells.length+1+1,W=0;for(let pe=0;pe=0)continue;let pe=R[fe];te[fe]=an[F].shallow.indexOf(fe)>=0?pe:La(pe,A)}R instanceof Error&&(te.message=R.message)}if(te.$name)throw new Error("$name property is reserved for worker serialization logic.");return F!=="Object"&&(te.$name=F),te}function Ua(R){if(Ra(R))return R;if(Array.isArray(R))return R.map(Ua);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let A=Ca(R)||"Object";if(!an[A])throw new Error(`can't deserialize unregistered class ${A}`);let{klass:F}=an[A];if(!F)throw new Error(`can't deserialize unregistered class ${A}`);if(F.deserialize)return F.deserialize(R);let W=Object.create(F.prototype);for(let te of Object.keys(R)){if(te==="$name")continue;let fe=R[te];W[te]=an[A].shallow.indexOf(te)>=0?fe:Ua(fe)}return W}class Zn{constructor(){this.first=!0}update(A,F){let W=Math.floor(A);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=A,this.lastFloorZoom=W,!0):(this.lastFloorZoom>W?(this.lastIntegerZoom=W+1,this.lastIntegerZoomTime=F):this.lastFloorZoomR>=128&&R<=255,"Hangul Jamo":R=>R>=4352&&R<=4607,Khmer:R=>R>=6016&&R<=6143,"General Punctuation":R=>R>=8192&&R<=8303,"Letterlike Symbols":R=>R>=8448&&R<=8527,"Number Forms":R=>R>=8528&&R<=8591,"Miscellaneous Technical":R=>R>=8960&&R<=9215,"Control Pictures":R=>R>=9216&&R<=9279,"Optical Character Recognition":R=>R>=9280&&R<=9311,"Enclosed Alphanumerics":R=>R>=9312&&R<=9471,"Geometric Shapes":R=>R>=9632&&R<=9727,"Miscellaneous Symbols":R=>R>=9728&&R<=9983,"Miscellaneous Symbols and Arrows":R=>R>=11008&&R<=11263,"Ideographic Description Characters":R=>R>=12272&&R<=12287,"CJK Symbols and Punctuation":R=>R>=12288&&R<=12351,Katakana:R=>R>=12448&&R<=12543,Kanbun:R=>R>=12688&&R<=12703,"CJK Strokes":R=>R>=12736&&R<=12783,"Enclosed CJK Letters and Months":R=>R>=12800&&R<=13055,"CJK Compatibility":R=>R>=13056&&R<=13311,"Yijing Hexagram Symbols":R=>R>=19904&&R<=19967,"Private Use Area":R=>R>=57344&&R<=63743,"Vertical Forms":R=>R>=65040&&R<=65055,"CJK Compatibility Forms":R=>R>=65072&&R<=65103,"Small Form Variants":R=>R>=65104&&R<=65135,"Halfwidth and Fullwidth Forms":R=>R>=65280&&R<=65519};function Ka(R){for(let A of R)if(Ho(A.charCodeAt(0)))return!0;return!1}function bo(R){for(let A of R)if(!as(A.charCodeAt(0)))return!1;return!0}function Zo(R){let A=R.map(F=>{try{return new RegExp(`\\p{sc=${F}}`,"u").source}catch(W){return null}}).filter(F=>F);return new RegExp(A.join("|"),"u")}let Ss=Zo(["Arab","Dupl","Mong","Ougr","Syrc"]);function as(R){return!Ss.test(String.fromCodePoint(R))}let ws=Zo(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Ho(R){return!(R!==746&&R!==747&&(R<4352||!(Dn["CJK Compatibility Forms"](R)&&!(R>=65097&&R<=65103)||Dn["CJK Compatibility"](R)||Dn["CJK Strokes"](R)||!(!Dn["CJK Symbols and Punctuation"](R)||R>=12296&&R<=12305||R>=12308&&R<=12319||R===12336)||Dn["Enclosed CJK Letters and Months"](R)||Dn["Ideographic Description Characters"](R)||Dn.Kanbun(R)||Dn.Katakana(R)&&R!==12540||!(!Dn["Halfwidth and Fullwidth Forms"](R)||R===65288||R===65289||R===65293||R>=65306&&R<=65310||R===65339||R===65341||R===65343||R>=65371&&R<=65503||R===65507||R>=65512&&R<=65519)||!(!Dn["Small Form Variants"](R)||R>=65112&&R<=65118||R>=65123&&R<=65126)||Dn["Vertical Forms"](R)||Dn["Yijing Hexagram Symbols"](R)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(R))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(R))||ws.test(String.fromCodePoint(R)))))}function ml(R){return!(Ho(R)||function(A){return!!(Dn["Latin-1 Supplement"](A)&&(A===167||A===169||A===174||A===177||A===188||A===189||A===190||A===215||A===247)||Dn["General Punctuation"](A)&&(A===8214||A===8224||A===8225||A===8240||A===8241||A===8251||A===8252||A===8258||A===8263||A===8264||A===8265||A===8273)||Dn["Letterlike Symbols"](A)||Dn["Number Forms"](A)||Dn["Miscellaneous Technical"](A)&&(A>=8960&&A<=8967||A>=8972&&A<=8991||A>=8996&&A<=9e3||A===9003||A>=9085&&A<=9114||A>=9150&&A<=9165||A===9167||A>=9169&&A<=9179||A>=9186&&A<=9215)||Dn["Control Pictures"](A)&&A!==9251||Dn["Optical Character Recognition"](A)||Dn["Enclosed Alphanumerics"](A)||Dn["Geometric Shapes"](A)||Dn["Miscellaneous Symbols"](A)&&!(A>=9754&&A<=9759)||Dn["Miscellaneous Symbols and Arrows"](A)&&(A>=11026&&A<=11055||A>=11088&&A<=11097||A>=11192&&A<=11243)||Dn["CJK Symbols and Punctuation"](A)||Dn.Katakana(A)||Dn["Private Use Area"](A)||Dn["CJK Compatibility Forms"](A)||Dn["Small Form Variants"](A)||Dn["Halfwidth and Fullwidth Forms"](A)||A===8734||A===8756||A===8757||A>=9984&&A<=10087||A>=10102&&A<=10131||A===65532||A===65533)}(R))}let Ws=Zo(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ls(R){return Ws.test(String.fromCodePoint(R))}function va(R,A){return!(!A&&Ls(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||Dn.Khmer(R))}function no(R){for(let A of R)if(Ls(A.charCodeAt(0)))return!0;return!1}let ys=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(R){this.pluginStatus=R.pluginStatus,this.pluginURL=R.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(R){this.applyArabicShaping=R.applyArabicShaping,this.processBidirectionalText=R.processBidirectionalText,this.processStyledBidirectionalText=R.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class rs{constructor(A,F){this.zoom=A,F?(this.now=F.now,this.fadeDuration=F.fadeDuration,this.zoomHistory=F.zoomHistory,this.transition=F.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Zn,this.transition={})}isSupportedScript(A){return function(F,W){for(let te of F)if(!va(te.charCodeAt(0),W))return!1;return!0}(A,ys.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let A=this.zoom,F=A-Math.floor(A),W=this.crossFadingFactor();return A>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:F+(1-F)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*F}}}class Ql{constructor(A,F){this.property=A,this.value=F,this.expression=function(W,te){if(Wf(W))return new nl(W,te);if(Dc(W)){let fe=_u(W,te);if(fe.result==="error")throw new Error(fe.value.map(pe=>`${pe.key}: ${pe.message}`).join(", "));return fe.value}{let fe=W;return te.type==="color"&&typeof W=="string"?fe=ir.parse(W):te.type!=="padding"||typeof W!="number"&&!Array.isArray(W)?te.type==="variableAnchorOffsetCollection"&&Array.isArray(W)&&(fe=Zi.parse(W)):fe=$r.parse(W),{kind:"constant",evaluate:()=>fe}}}(F===void 0?A.specification.default:F,A.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(A,F,W){return this.property.possiblyEvaluate(this,A,F,W)}}class Cu{constructor(A){this.property=A,this.value=new Ql(A,void 0)}transitioned(A,F){return new Nc(this.property,this.value,F,L({},A.transition,this.transition),A.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Yu{constructor(A){this._properties=A,this._values=Object.create(A.defaultTransitionablePropertyValues)}getValue(A){return g(this._values[A].value.value)}setValue(A,F){Object.prototype.hasOwnProperty.call(this._values,A)||(this._values[A]=new Cu(this._values[A].property)),this._values[A].value=new Ql(this._values[A].property,F===null?void 0:g(F))}getTransition(A){return g(this._values[A].transition)}setTransition(A,F){Object.prototype.hasOwnProperty.call(this._values,A)||(this._values[A]=new Cu(this._values[A].property)),this._values[A].transition=g(F)||void 0}serialize(){let A={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(A[F]=W);let te=this.getTransition(F);te!==void 0&&(A[`${F}-transition`]=te)}return A}transitioned(A,F){let W=new pu(this._properties);for(let te of Object.keys(this._values))W._values[te]=this._values[te].transitioned(A,F._values[te]);return W}untransitioned(){let A=new pu(this._properties);for(let F of Object.keys(this._values))A._values[F]=this._values[F].untransitioned();return A}}class Nc{constructor(A,F,W,te,fe){this.property=A,this.value=F,this.begin=fe+te.delay||0,this.end=this.begin+te.duration||0,A.specification.transition&&(te.delay||te.duration)&&(this.prior=W)}possiblyEvaluate(A,F,W){let te=A.now||0,fe=this.value.possiblyEvaluate(A,F,W),pe=this.prior;if(pe){if(te>this.end)return this.prior=null,fe;if(this.value.isDataDriven())return this.prior=null,fe;if(te=1)return 1;let ft=Ke*Ke,Rt=ft*Ke;return 4*(Ke<.5?Rt:3*(Ke-ft)+Rt-.75)}(Re))}}return fe}}class pu{constructor(A){this._properties=A,this._values=Object.create(A.defaultTransitioningPropertyValues)}possiblyEvaluate(A,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(A,F,W);return te}hasTransition(){for(let A of Object.keys(this._values))if(this._values[A].prior)return!0;return!1}}class Uc{constructor(A){this._properties=A,this._values=Object.create(A.defaultPropertyValues)}hasValue(A){return this._values[A].value!==void 0}getValue(A){return g(this._values[A].value)}setValue(A,F){this._values[A]=new Ql(this._values[A].property,F===null?void 0:g(F))}serialize(){let A={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(A[F]=W)}return A}possiblyEvaluate(A,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(A,F,W);return te}}class xu{constructor(A,F,W){this.property=A,this.value=F,this.parameters=W}isConstant(){return this.value.kind==="constant"}constantOr(A){return this.value.kind==="constant"?this.value.value:A}evaluate(A,F,W,te){return this.property.evaluate(this.value,this.parameters,A,F,W,te)}}class Ac{constructor(A){this._properties=A,this._values=Object.create(A.defaultPossiblyEvaluatedValues)}get(A){return this._values[A]}}class Va{constructor(A){this.specification=A}possiblyEvaluate(A,F){if(A.isDataDriven())throw new Error("Value should not be data driven");return A.expression.evaluate(F)}interpolate(A,F,W){let te=Lo[this.specification.type];return te?te(A,F,W):A}}class oo{constructor(A,F){this.specification=A,this.overrides=F}possiblyEvaluate(A,F,W,te){return new xu(this,A.expression.kind==="constant"||A.expression.kind==="camera"?{kind:"constant",value:A.expression.evaluate(F,null,{},W,te)}:A.expression,F)}interpolate(A,F,W){if(A.value.kind!=="constant"||F.value.kind!=="constant")return A;if(A.value.value===void 0||F.value.value===void 0)return new xu(this,{kind:"constant",value:void 0},A.parameters);let te=Lo[this.specification.type];if(te){let fe=te(A.value.value,F.value.value,W);return new xu(this,{kind:"constant",value:fe},A.parameters)}return A}evaluate(A,F,W,te,fe,pe){return A.kind==="constant"?A.value:A.evaluate(F,W,te,fe,pe)}}class Vc extends oo{possiblyEvaluate(A,F,W,te){if(A.value===void 0)return new xu(this,{kind:"constant",value:void 0},F);if(A.expression.kind==="constant"){let fe=A.expression.evaluate(F,null,{},W,te),pe=A.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,Re=this._calculate(pe,pe,pe,F);return new xu(this,{kind:"constant",value:Re},F)}if(A.expression.kind==="camera"){let fe=this._calculate(A.expression.evaluate({zoom:F.zoom-1}),A.expression.evaluate({zoom:F.zoom}),A.expression.evaluate({zoom:F.zoom+1}),F);return new xu(this,{kind:"constant",value:fe},F)}return new xu(this,A.expression,F)}evaluate(A,F,W,te,fe,pe){if(A.kind==="source"){let Re=A.evaluate(F,W,te,fe,pe);return this._calculate(Re,Re,Re,F)}return A.kind==="composite"?this._calculate(A.evaluate({zoom:Math.floor(F.zoom)-1},W,te),A.evaluate({zoom:Math.floor(F.zoom)},W,te),A.evaluate({zoom:Math.floor(F.zoom)+1},W,te),F):A.value}_calculate(A,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:A,to:F}:{from:W,to:F}}interpolate(A){return A}}class hc{constructor(A){this.specification=A}possiblyEvaluate(A,F,W,te){if(A.value!==void 0){if(A.expression.kind==="constant"){let fe=A.expression.evaluate(F,null,{},W,te);return this._calculate(fe,fe,fe,F)}return this._calculate(A.expression.evaluate(new rs(Math.floor(F.zoom-1),F)),A.expression.evaluate(new rs(Math.floor(F.zoom),F)),A.expression.evaluate(new rs(Math.floor(F.zoom+1),F)),F)}}_calculate(A,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:A,to:F}:{from:W,to:F}}interpolate(A){return A}}class Ku{constructor(A){this.specification=A}possiblyEvaluate(A,F,W,te){return!!A.expression.evaluate(F,null,{},W,te)}interpolate(){return!1}}class ue{constructor(A){this.properties=A,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let F in A){let W=A[F];W.specification.overridable&&this.overridableProperties.push(F);let te=this.defaultPropertyValues[F]=new Ql(W,void 0),fe=this.defaultTransitionablePropertyValues[F]=new Cu(W);this.defaultTransitioningPropertyValues[F]=fe.untransitioned(),this.defaultPossiblyEvaluatedValues[F]=te.possiblyEvaluate({})}}}Fi("DataDrivenProperty",oo),Fi("DataConstantProperty",Va),Fi("CrossFadedDataDrivenProperty",Vc),Fi("CrossFadedProperty",hc),Fi("ColorRampProperty",Ku);let w="-transition";class B extends Pe{constructor(A,F){if(super(),this.id=A.id,this.type=A.type,this._featureFilter={filter:()=>!0,needGeometry:!1},A.type!=="custom"&&(this.metadata=A.metadata,this.minzoom=A.minzoom,this.maxzoom=A.maxzoom,A.type!=="background"&&(this.source=A.source,this.sourceLayer=A["source-layer"],this.filter=A.filter),F.layout&&(this._unevaluatedLayout=new Uc(F.layout)),F.paint)){this._transitionablePaint=new Yu(F.paint);for(let W in A.paint)this.setPaintProperty(W,A.paint[W],{validate:!1});for(let W in A.layout)this.setLayoutProperty(W,A.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ac(F.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(A){return A==="visibility"?this.visibility:this._unevaluatedLayout.getValue(A)}setLayoutProperty(A,F,W={}){F!=null&&this._validate(On,`layers.${this.id}.layout.${A}`,A,F,W)||(A!=="visibility"?this._unevaluatedLayout.setValue(A,F):this.visibility=F)}getPaintProperty(A){return A.endsWith(w)?this._transitionablePaint.getTransition(A.slice(0,-11)):this._transitionablePaint.getValue(A)}setPaintProperty(A,F,W={}){if(F!=null&&this._validate(wn,`layers.${this.id}.paint.${A}`,A,F,W))return!1;if(A.endsWith(w))return this._transitionablePaint.setTransition(A.slice(0,-11),F||void 0),!1;{let te=this._transitionablePaint._values[A],fe=te.property.specification["property-type"]==="cross-faded-data-driven",pe=te.value.isDataDriven(),Re=te.value;this._transitionablePaint.setValue(A,F),this._handleSpecialPaintPropertyUpdate(A);let Ke=this._transitionablePaint._values[A].value;return Ke.isDataDriven()||pe||fe||this._handleOverridablePaintPropertyUpdate(A,Re,Ke)}}_handleSpecialPaintPropertyUpdate(A){}_handleOverridablePaintPropertyUpdate(A,F,W){return!1}isHidden(A){return!!(this.minzoom&&A=this.maxzoom)||this.visibility==="none"}updateTransitions(A){this._transitioningPaint=this._transitionablePaint.transitioned(A,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(A,F){A.getCrossfadeParameters&&(this._crossfadeParameters=A.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(A,void 0,F)),this.paint=this._transitioningPaint.possiblyEvaluate(A,void 0,F)}serialize(){let A={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(A.layout=A.layout||{},A.layout.visibility=this.visibility),S(A,(F,W)=>!(F===void 0||W==="layout"&&!Object.keys(F).length||W==="paint"&&!Object.keys(F).length))}_validate(A,F,W,te,fe={}){return(!fe||fe.validate!==!1)&&Yi(this,A.call(Mi,{key:F,layerType:this.type,objectKey:W,value:te,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let A in this.paint._values){let F=this.paint.get(A);if(F instanceof xu&&Nl(F.property.specification)&&(F.value.kind==="source"||F.value.kind==="composite")&&F.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(A,F){this._structArray=A,this._pos1=F*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class le{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(A,F){return A._trim(),F&&(A.isTransferred=!0,F.push(A.arrayBuffer)),{length:A.length,arrayBuffer:A.arrayBuffer}}static deserialize(A){let F=Object.create(this.prototype);return F.arrayBuffer=A.arrayBuffer,F.length=A.length,F.capacity=A.arrayBuffer.byteLength/F.bytesPerElement,F._refreshViews(),F}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(A){this.reserve(A),this.length=A}reserve(A){if(A>this.capacity){this.capacity=Math.max(A,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let F=this.uint8;this._refreshViews(),F&&this.uint8.set(F)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Fe(R,A=1){let F=0,W=0;return{members:R.map(te=>{let fe=Q[te.type].BYTES_PER_ELEMENT,pe=F=Ze(F,Math.max(A,fe)),Re=te.components||1;return W=Math.max(W,fe),F+=fe*Re,{name:te.name,type:te.type,components:Re,offset:pe}}),size:Ze(F,Math.max(W,A)),alignment:A}}function Ze(R,A){return Math.ceil(R/A)*A}class ut extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F){let W=this.length;return this.resize(W+1),this.emplace(W,A,F)}emplace(A,F,W){let te=2*A;return this.int16[te+0]=F,this.int16[te+1]=W,A}}ut.prototype.bytesPerElement=4,Fi("StructArrayLayout2i4",ut);class Mt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=3*A;return this.int16[fe+0]=F,this.int16[fe+1]=W,this.int16[fe+2]=te,A}}Mt.prototype.bytesPerElement=6,Fi("StructArrayLayout3i6",Mt);class Jt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,A,F,W,te)}emplace(A,F,W,te,fe){let pe=4*A;return this.int16[pe+0]=F,this.int16[pe+1]=W,this.int16[pe+2]=te,this.int16[pe+3]=fe,A}}Jt.prototype.bytesPerElement=8,Fi("StructArrayLayout4i8",Jt);class $t extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe){let Re=this.length;return this.resize(Re+1),this.emplace(Re,A,F,W,te,fe,pe)}emplace(A,F,W,te,fe,pe,Re){let Ke=6*A;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=Re,A}}$t.prototype.bytesPerElement=12,Fi("StructArrayLayout2i4i12",$t);class yr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe){let Re=this.length;return this.resize(Re+1),this.emplace(Re,A,F,W,te,fe,pe)}emplace(A,F,W,te,fe,pe,Re){let Ke=4*A,ft=8*A;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.uint8[ft+4]=te,this.uint8[ft+5]=fe,this.uint8[ft+6]=pe,this.uint8[ft+7]=Re,A}}yr.prototype.bytesPerElement=8,Fi("StructArrayLayout2i4ub8",yr);class Cr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F){let W=this.length;return this.resize(W+1),this.emplace(W,A,F)}emplace(A,F,W){let te=2*A;return this.float32[te+0]=F,this.float32[te+1]=W,A}}Cr.prototype.bytesPerElement=8,Fi("StructArrayLayout2f8",Cr);class ve extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft,Rt){let er=this.length;return this.resize(er+1),this.emplace(er,A,F,W,te,fe,pe,Re,Ke,ft,Rt)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er){let ur=10*A;return this.uint16[ur+0]=F,this.uint16[ur+1]=W,this.uint16[ur+2]=te,this.uint16[ur+3]=fe,this.uint16[ur+4]=pe,this.uint16[ur+5]=Re,this.uint16[ur+6]=Ke,this.uint16[ur+7]=ft,this.uint16[ur+8]=Rt,this.uint16[ur+9]=er,A}}ve.prototype.bytesPerElement=20,Fi("StructArrayLayout10ui20",ve);class xe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur){let vr=this.length;return this.resize(vr+1),this.emplace(vr,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr){let kr=12*A;return this.int16[kr+0]=F,this.int16[kr+1]=W,this.int16[kr+2]=te,this.int16[kr+3]=fe,this.uint16[kr+4]=pe,this.uint16[kr+5]=Re,this.uint16[kr+6]=Ke,this.uint16[kr+7]=ft,this.int16[kr+8]=Rt,this.int16[kr+9]=er,this.int16[kr+10]=ur,this.int16[kr+11]=vr,A}}xe.prototype.bytesPerElement=24,Fi("StructArrayLayout4i4ui4i24",xe);class Ie extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=3*A;return this.float32[fe+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,A}}Ie.prototype.bytesPerElement=12,Fi("StructArrayLayout3f12",Ie);class ze extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(A){let F=this.length;return this.resize(F+1),this.emplace(F,A)}emplace(A,F){return this.uint32[1*A+0]=F,A}}ze.prototype.bytesPerElement=4,Fi("StructArrayLayout1ul4",ze);class Qe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft){let Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,A,F,W,te,fe,pe,Re,Ke,ft)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt){let er=10*A,ur=5*A;return this.int16[er+0]=F,this.int16[er+1]=W,this.int16[er+2]=te,this.int16[er+3]=fe,this.int16[er+4]=pe,this.int16[er+5]=Re,this.uint32[ur+3]=Ke,this.uint16[er+8]=ft,this.uint16[er+9]=Rt,A}}Qe.prototype.bytesPerElement=20,Fi("StructArrayLayout6i1ul2ui20",Qe);class Xe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe){let Re=this.length;return this.resize(Re+1),this.emplace(Re,A,F,W,te,fe,pe)}emplace(A,F,W,te,fe,pe,Re){let Ke=6*A;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=Re,A}}Xe.prototype.bytesPerElement=12,Fi("StructArrayLayout2i2i2i12",Xe);class nt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe){let pe=this.length;return this.resize(pe+1),this.emplace(pe,A,F,W,te,fe)}emplace(A,F,W,te,fe,pe){let Re=4*A,Ke=8*A;return this.float32[Re+0]=F,this.float32[Re+1]=W,this.float32[Re+2]=te,this.int16[Ke+6]=fe,this.int16[Ke+7]=pe,A}}nt.prototype.bytesPerElement=16,Fi("StructArrayLayout2f1f2i16",nt);class qt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe){let Re=this.length;return this.resize(Re+1),this.emplace(Re,A,F,W,te,fe,pe)}emplace(A,F,W,te,fe,pe,Re){let Ke=16*A,ft=4*A,Rt=8*A;return this.uint8[Ke+0]=F,this.uint8[Ke+1]=W,this.float32[ft+1]=te,this.float32[ft+2]=fe,this.int16[Rt+6]=pe,this.int16[Rt+7]=Re,A}}qt.prototype.bytesPerElement=16,Fi("StructArrayLayout2ub2f2i16",qt);class Wt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=3*A;return this.uint16[fe+0]=F,this.uint16[fe+1]=W,this.uint16[fe+2]=te,A}}Wt.prototype.bytesPerElement=6,Fi("StructArrayLayout3ui6",Wt);class nr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi){let vn=this.length;return this.resize(vn+1),this.emplace(vn,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn){let zi=24*A,ln=12*A,Tn=48*A;return this.int16[zi+0]=F,this.int16[zi+1]=W,this.uint16[zi+2]=te,this.uint16[zi+3]=fe,this.uint32[ln+2]=pe,this.uint32[ln+3]=Re,this.uint32[ln+4]=Ke,this.uint16[zi+10]=ft,this.uint16[zi+11]=Rt,this.uint16[zi+12]=er,this.float32[ln+7]=ur,this.float32[ln+8]=vr,this.uint8[Tn+36]=kr,this.uint8[Tn+37]=Dr,this.uint8[Tn+38]=li,this.uint32[ln+10]=pi,this.int16[zi+22]=vn,A}}nr.prototype.bytesPerElement=48,Fi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",nr);class fr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn,zi,ln,Tn,pa,ro,Vo,Xa,la,Mo,fo){let lo=this.length;return this.resize(lo+1),this.emplace(lo,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn,zi,ln,Tn,pa,ro,Vo,Xa,la,Mo,fo)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn,zi,ln,Tn,pa,ro,Vo,Xa,la,Mo,fo,lo){let Wn=32*A,Ro=16*A;return this.int16[Wn+0]=F,this.int16[Wn+1]=W,this.int16[Wn+2]=te,this.int16[Wn+3]=fe,this.int16[Wn+4]=pe,this.int16[Wn+5]=Re,this.int16[Wn+6]=Ke,this.int16[Wn+7]=ft,this.uint16[Wn+8]=Rt,this.uint16[Wn+9]=er,this.uint16[Wn+10]=ur,this.uint16[Wn+11]=vr,this.uint16[Wn+12]=kr,this.uint16[Wn+13]=Dr,this.uint16[Wn+14]=li,this.uint16[Wn+15]=pi,this.uint16[Wn+16]=vn,this.uint16[Wn+17]=zi,this.uint16[Wn+18]=ln,this.uint16[Wn+19]=Tn,this.uint16[Wn+20]=pa,this.uint16[Wn+21]=ro,this.uint16[Wn+22]=Vo,this.uint32[Ro+12]=Xa,this.float32[Ro+13]=la,this.float32[Ro+14]=Mo,this.uint16[Wn+30]=fo,this.uint16[Wn+31]=lo,A}}fr.prototype.bytesPerElement=64,Fi("StructArrayLayout8i15ui1ul2f2ui64",fr);class br extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A){let F=this.length;return this.resize(F+1),this.emplace(F,A)}emplace(A,F){return this.float32[1*A+0]=F,A}}br.prototype.bytesPerElement=4,Fi("StructArrayLayout1f4",br);class Fr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=3*A;return this.uint16[6*A+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,A}}Fr.prototype.bytesPerElement=12,Fi("StructArrayLayout1ui2f12",Fr);class Hr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=4*A;return this.uint32[2*A+0]=F,this.uint16[fe+2]=W,this.uint16[fe+3]=te,A}}Hr.prototype.bytesPerElement=8,Fi("StructArrayLayout1ul2ui8",Hr);class ri extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F){let W=this.length;return this.resize(W+1),this.emplace(W,A,F)}emplace(A,F,W){let te=2*A;return this.uint16[te+0]=F,this.uint16[te+1]=W,A}}ri.prototype.bytesPerElement=4,Fi("StructArrayLayout2ui4",ri);class Ci extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A){let F=this.length;return this.resize(F+1),this.emplace(F,A)}emplace(A,F){return this.uint16[1*A+0]=F,A}}Ci.prototype.bytesPerElement=2,Fi("StructArrayLayout1ui2",Ci);class cn extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,A,F,W,te)}emplace(A,F,W,te,fe){let pe=4*A;return this.float32[pe+0]=F,this.float32[pe+1]=W,this.float32[pe+2]=te,this.float32[pe+3]=fe,A}}cn.prototype.bytesPerElement=16,Fi("StructArrayLayout4f16",cn);class sn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new u(this.anchorPointX,this.anchorPointY)}}sn.prototype.size=20;class Ln extends Qe{get(A){return new sn(this,A)}}Fi("CollisionBoxArray",Ln);class Yn extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(A){this._structArray.uint8[this._pos1+37]=A}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(A){this._structArray.uint8[this._pos1+38]=A}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(A){this._structArray.uint32[this._pos4+10]=A}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Yn.prototype.size=48;class Aa extends nr{get(A){return new Yn(this,A)}}Fi("PlacedSymbolArray",Aa);class fa extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(A){this._structArray.uint32[this._pos4+12]=A}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}fa.prototype.size=64;class $a extends fr{get(A){return new fa(this,A)}}Fi("SymbolInstanceArray",$a);class Co extends br{getoffsetX(A){return this.float32[1*A+0]}}Fi("GlyphOffsetArray",Co);class Qa extends Mt{getx(A){return this.int16[3*A+0]}gety(A){return this.int16[3*A+1]}gettileUnitDistanceFromAnchor(A){return this.int16[3*A+2]}}Fi("SymbolLineVertexArray",Qa);class mo extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}mo.prototype.size=12;class Bo extends Fr{get(A){return new mo(this,A)}}Fi("TextAnchorOffsetArray",Bo);class Ps extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Ps.prototype.size=8;class Ts extends Hr{get(A){return new Ps(this,A)}}Fi("FeatureIndexArray",Ts);class wo extends ut{}class To extends ut{}class hl extends ut{}class Ul extends $t{}class Lu extends yr{}class au extends Cr{}class Js extends ve{}class eu extends xe{}class dc extends Ie{}class Tl extends ze{}class Al extends Xe{}class X extends qt{}class se extends Wt{}class Te extends ri{}let qe=Fe([{name:"a_pos",components:2,type:"Int16"}],4),{members:Ve}=qe;class Ye{constructor(A=[]){this.segments=A}prepareSegment(A,F,W,te){let fe=this.segments[this.segments.length-1];return A>Ye.MAX_VERTEX_ARRAY_LENGTH&&E(`Max vertices per segment is ${Ye.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${A}`),(!fe||fe.vertexLength+A>Ye.MAX_VERTEX_ARRAY_LENGTH||fe.sortKey!==te)&&(fe={vertexOffset:F.length,primitiveOffset:W.length,vertexLength:0,primitiveLength:0},te!==void 0&&(fe.sortKey=te),this.segments.push(fe)),fe}get(){return this.segments}destroy(){for(let A of this.segments)for(let F in A.vaos)A.vaos[F].destroy()}static simpleSegment(A,F,W,te){return new Ye([{vertexOffset:A,primitiveOffset:F,vertexLength:W,primitiveLength:te,vaos:{},sortKey:0}])}}function Pt(R,A){return 256*(R=M(Math.floor(R),0,255))+M(Math.floor(A),0,255)}Ye.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Fi("SegmentVector",Ye);let ot=Fe([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var Xt={exports:{}},dr={exports:{}};dr.exports=function(R,A){var F,W,te,fe,pe,Re,Ke,ft;for(W=R.length-(F=3&R.length),te=A,pe=3432918353,Re=461845907,ft=0;ft>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*Re+(((Ke>>>16)*Re&65535)<<16)&4294967295)<<13|te>>>19))+((5*(te>>>16)&65535)<<16)&4294967295))+((58964+(fe>>>16)&65535)<<16);switch(Ke=0,F){case 3:Ke^=(255&R.charCodeAt(ft+2))<<16;case 2:Ke^=(255&R.charCodeAt(ft+1))<<8;case 1:te^=Ke=(65535&(Ke=(Ke=(65535&(Ke^=255&R.charCodeAt(ft)))*pe+(((Ke>>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*Re+(((Ke>>>16)*Re&65535)<<16)&4294967295}return te^=R.length,te=2246822507*(65535&(te^=te>>>16))+((2246822507*(te>>>16)&65535)<<16)&4294967295,te=3266489909*(65535&(te^=te>>>13))+((3266489909*(te>>>16)&65535)<<16)&4294967295,(te^=te>>>16)>>>0};var pr=dr.exports,Ur={exports:{}};Ur.exports=function(R,A){for(var F,W=R.length,te=A^W,fe=0;W>=4;)F=1540483477*(65535&(F=255&R.charCodeAt(fe)|(255&R.charCodeAt(++fe))<<8|(255&R.charCodeAt(++fe))<<16|(255&R.charCodeAt(++fe))<<24))+((1540483477*(F>>>16)&65535)<<16),te=1540483477*(65535&te)+((1540483477*(te>>>16)&65535)<<16)^(F=1540483477*(65535&(F^=F>>>24))+((1540483477*(F>>>16)&65535)<<16)),W-=4,++fe;switch(W){case 3:te^=(255&R.charCodeAt(fe+2))<<16;case 2:te^=(255&R.charCodeAt(fe+1))<<8;case 1:te=1540483477*(65535&(te^=255&R.charCodeAt(fe)))+((1540483477*(te>>>16)&65535)<<16)}return te=1540483477*(65535&(te^=te>>>13))+((1540483477*(te>>>16)&65535)<<16),(te^=te>>>15)>>>0};var zr=pr,gi=Ur.exports;Xt.exports=zr,Xt.exports.murmur3=zr,Xt.exports.murmur2=gi;var xi=o(Xt.exports);class Wr{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(A,F,W,te){this.ids.push(ii(A)),this.positions.push(F,W,te)}getPositions(A){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let F=ii(A),W=0,te=this.ids.length-1;for(;W>1;this.ids[pe]>=F?te=pe:W=pe+1}let fe=[];for(;this.ids[W]===F;)fe.push({index:this.positions[3*W],start:this.positions[3*W+1],end:this.positions[3*W+2]}),W++;return fe}static serialize(A,F){let W=new Float64Array(A.ids),te=new Uint32Array(A.positions);return di(W,te,0,W.length-1),F&&F.push(W.buffer,te.buffer),{ids:W,positions:te}}static deserialize(A){let F=new Wr;return F.ids=A.ids,F.positions=A.positions,F.indexed=!0,F}}function ii(R){let A=+R;return!isNaN(A)&&A<=Number.MAX_SAFE_INTEGER?A:xi(String(R))}function di(R,A,F,W){for(;F>1],fe=F-1,pe=W+1;for(;;){do fe++;while(R[fe]te);if(fe>=pe)break;Li(R,fe,pe),Li(A,3*fe,3*pe),Li(A,3*fe+1,3*pe+1),Li(A,3*fe+2,3*pe+2)}pe-F`u_${te}`),this.type=W}setUniform(A,F,W){A.set(W.constantOr(this.value))}getBinding(A,F,W){return this.type==="color"?new kn(A,F):new Qr(A,F)}}class Ia{constructor(A,F){this.uniformNames=F.map(W=>`u_${W}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(A,F){this.pixelRatioFrom=F.pixelRatio,this.pixelRatioTo=A.pixelRatio,this.patternFrom=F.tlbr,this.patternTo=A.tlbr}setUniform(A,F,W,te){let fe=te==="u_pattern_to"?this.patternTo:te==="u_pattern_from"?this.patternFrom:te==="u_pixel_ratio_to"?this.pixelRatioTo:te==="u_pixel_ratio_from"?this.pixelRatioFrom:null;fe&&A.set(fe)}getBinding(A,F,W){return W.substr(0,9)==="u_pattern"?new Pn(A,F):new Qr(A,F)}}class yo{constructor(A,F,W,te){this.expression=A,this.type=W,this.maxValue=0,this.paintVertexAttributes=F.map(fe=>({name:`a_${fe}`,type:"Float32",components:W==="color"?2:1,offset:0})),this.paintVertexArray=new te}populatePaintArray(A,F,W,te,fe){let pe=this.paintVertexArray.length,Re=this.expression.evaluate(new rs(0),F,{},te,[],fe);this.paintVertexArray.resize(A),this._setPaintValue(pe,A,Re)}updatePaintArray(A,F,W,te){let fe=this.expression.evaluate({zoom:0},W,te);this._setPaintValue(A,F,fe)}_setPaintValue(A,F,W){if(this.type==="color"){let te=na(W);for(let fe=A;fe`u_${Re}_t`),this.type=W,this.useIntegerZoom=te,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=F.map(Re=>({name:`a_${Re}`,type:"Float32",components:W==="color"?4:2,offset:0})),this.paintVertexArray=new pe}populatePaintArray(A,F,W,te,fe){let pe=this.expression.evaluate(new rs(this.zoom),F,{},te,[],fe),Re=this.expression.evaluate(new rs(this.zoom+1),F,{},te,[],fe),Ke=this.paintVertexArray.length;this.paintVertexArray.resize(A),this._setPaintValue(Ke,A,pe,Re)}updatePaintArray(A,F,W,te){let fe=this.expression.evaluate({zoom:this.zoom},W,te),pe=this.expression.evaluate({zoom:this.zoom+1},W,te);this._setPaintValue(A,F,fe,pe)}_setPaintValue(A,F,W,te){if(this.type==="color"){let fe=na(W),pe=na(te);for(let Re=A;Re`#define HAS_UNIFORM_${te}`))}return A}getBinderAttributes(){let A=[];for(let F in this.binders){let W=this.binders[F];if(W instanceof yo||W instanceof Da)for(let te=0;te!0){this.programConfigurations={};for(let te of A)this.programConfigurations[te.id]=new Is(te,F,W);this.needsUpload=!1,this._featureMap=new Wr,this._bufferOffset=0}populatePaintArrays(A,F,W,te,fe,pe){for(let Re in this.programConfigurations)this.programConfigurations[Re].populatePaintArrays(A,F,te,fe,pe);F.id!==void 0&&this._featureMap.add(F.id,W,this._bufferOffset,A),this._bufferOffset=A,this.needsUpload=!0}updatePaintArrays(A,F,W,te){for(let fe of W)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(A,this._featureMap,F,fe,te)||this.needsUpload}get(A){return this.programConfigurations[A]}upload(A){if(this.needsUpload){for(let F in this.programConfigurations)this.programConfigurations[F].upload(A);this.needsUpload=!1}}destroy(){for(let A in this.programConfigurations)this.programConfigurations[A].destroy()}}function Xs(R,A){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[R]||[R.replace(`${A}-`,"").replace(/-/g,"_")]}function Un(R,A,F){let W={color:{source:Cr,composite:cn},number:{source:br,composite:Cr}},te=function(fe){return{"line-pattern":{source:Js,composite:Js},"fill-pattern":{source:Js,composite:Js},"fill-extrusion-pattern":{source:Js,composite:Js}}[fe]}(R);return te&&te[F]||W[A][F]}Fi("ConstantBinder",Ea),Fi("CrossFadedConstantBinder",Ia),Fi("SourceExpressionBinder",yo),Fi("CrossFadedCompositeBinder",go),Fi("CompositeExpressionBinder",Da),Fi("ProgramConfiguration",Is,{omit:["_buffers"]}),Fi("ProgramConfigurationSet",Ms);let ja=8192,Fo=Math.pow(2,14)-1,Uo=-Fo-1;function $s(R){let A=ja/R.extent,F=R.loadGeometry();for(let W=0;Wpe.x+1||Kepe.y+1)&&E("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return F}function Sl(R,A){return{type:R.type,id:R.id,properties:R.properties,geometry:A?$s(R):[]}}function bu(R,A,F,W,te){R.emplaceBack(2*A+(W+1)/2,2*F+(te+1)/2)}class dl{constructor(A){this.zoom=A.zoom,this.overscaling=A.overscaling,this.layers=A.layers,this.layerIds=this.layers.map(F=>F.id),this.index=A.index,this.hasPattern=!1,this.layoutVertexArray=new To,this.indexArray=new se,this.segments=new Ye,this.programConfigurations=new Ms(A.layers,A.zoom),this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(A,F,W){let te=this.layers[0],fe=[],pe=null,Re=!1;te.type==="circle"&&(pe=te.layout.get("circle-sort-key"),Re=!pe.isConstant());for(let{feature:Ke,id:ft,index:Rt,sourceLayerIndex:er}of A){let ur=this.layers[0]._featureFilter.needGeometry,vr=Sl(Ke,ur);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),vr,W))continue;let kr=Re?pe.evaluate(vr,{},W):void 0,Dr={id:ft,properties:Ke.properties,type:Ke.type,sourceLayerIndex:er,index:Rt,geometry:ur?vr.geometry:$s(Ke),patterns:{},sortKey:kr};fe.push(Dr)}Re&&fe.sort((Ke,ft)=>Ke.sortKey-ft.sortKey);for(let Ke of fe){let{geometry:ft,index:Rt,sourceLayerIndex:er}=Ke,ur=A[Rt].feature;this.addFeature(Ke,ft,Rt,W),F.featureIndex.insert(ur,ft,Rt,er,this.index)}}update(A,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(A,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(A){this.uploaded||(this.layoutVertexBuffer=A.createVertexBuffer(this.layoutVertexArray,Ve),this.indexBuffer=A.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(A),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(A,F,W,te){for(let fe of F)for(let pe of fe){let Re=pe.x,Ke=pe.y;if(Re<0||Re>=ja||Ke<0||Ke>=ja)continue;let ft=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,A.sortKey),Rt=ft.vertexLength;bu(this.layoutVertexArray,Re,Ke,-1,-1),bu(this.layoutVertexArray,Re,Ke,1,-1),bu(this.layoutVertexArray,Re,Ke,1,1),bu(this.layoutVertexArray,Re,Ke,-1,1),this.indexArray.emplaceBack(Rt,Rt+1,Rt+2),this.indexArray.emplaceBack(Rt,Rt+3,Rt+2),ft.vertexLength+=4,ft.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,A,W,{},te)}}function Sc(R,A){for(let F=0;F1){if(Lr(R,A))return!0;for(let W=0;W1?F:F.sub(A)._mult(te)._add(A))}function vi(R,A){let F,W,te,fe=!1;for(let pe=0;peA.y!=te.y>A.y&&A.x<(te.x-W.x)*(A.y-W.y)/(te.y-W.y)+W.x&&(fe=!fe)}return fe}function Ni(R,A){let F=!1;for(let W=0,te=R.length-1;WA.y!=pe.y>A.y&&A.x<(pe.x-fe.x)*(A.y-fe.y)/(pe.y-fe.y)+fe.x&&(F=!F)}return F}function qi(R,A,F){let W=F[0],te=F[2];if(R.xte.x&&A.x>te.x||R.yte.y&&A.y>te.y)return!1;let fe=z(R,A,F[0]);return fe!==z(R,A,F[1])||fe!==z(R,A,F[2])||fe!==z(R,A,F[3])}function Si(R,A,F){let W=A.paint.get(R).value;return W.kind==="constant"?W.value:F.programConfigurations.get(A.id).getMaxValue(R)}function Vn(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function Qi(R,A,F,W,te){if(!A[0]&&!A[1])return R;let fe=u.convert(A)._mult(te);F==="viewport"&&fe._rotate(-W);let pe=[];for(let Re=0;Resi(li,Dr))}(ft,Ke),vr=er?Rt*Re:Rt;for(let kr of te)for(let Dr of kr){let li=er?Dr:si(Dr,Ke),pi=vr,vn=qn([],[Dr.x,Dr.y,0,1],Ke);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?pi*=vn[3]/pe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(pi*=pe.cameraToCenterDistance/vn[3]),Me(ur,li,pi))return!0}return!1}}function si(R,A){let F=qn([],[R.x,R.y,0,1],A);return new u(F[0]/F[3],F[1]/F[3])}class mn extends dl{}let Ji;Fi("HeatmapBucket",mn,{omit:["layers"]});var Ui={get paint(){return Ji=Ji||new ue({"heatmap-radius":new oo(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new oo(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Va(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ku(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Va(ce.paint_heatmap["heatmap-opacity"])})}};function Bi(R,{width:A,height:F},W,te){if(te){if(te instanceof Uint8ClampedArray)te=new Uint8Array(te.buffer);else if(te.length!==A*F*W)throw new RangeError(`mismatched image size. expected: ${te.length} but got: ${A*F*W}`)}else te=new Uint8Array(A*F*W);return R.width=A,R.height=F,R.data=te,R}function pn(R,{width:A,height:F},W){if(A===R.width&&F===R.height)return;let te=Bi({},{width:A,height:F},W);Nn(R,te,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,A),height:Math.min(R.height,F)},W),R.width=A,R.height=F,R.data=te.data}function Nn(R,A,F,W,te,fe){if(te.width===0||te.height===0)return A;if(te.width>R.width||te.height>R.height||F.x>R.width-te.width||F.y>R.height-te.height)throw new RangeError("out of range source coordinates for image copy");if(te.width>A.width||te.height>A.height||W.x>A.width-te.width||W.y>A.height-te.height)throw new RangeError("out of range destination coordinates for image copy");let pe=R.data,Re=A.data;if(pe===Re)throw new Error("srcData equals dstData, so image is already copied");for(let Ke=0;Ke{A[R.evaluationKey]=Ke;let ft=R.expression.evaluate(A);te.data[pe+Re+0]=Math.floor(255*ft.r/ft.a),te.data[pe+Re+1]=Math.floor(255*ft.g/ft.a),te.data[pe+Re+2]=Math.floor(255*ft.b/ft.a),te.data[pe+Re+3]=Math.floor(255*ft.a)};if(R.clips)for(let pe=0,Re=0;pe80*F){Re=1/0,Ke=1/0;let Rt=-1/0,er=-1/0;for(let ur=F;urRt&&(Rt=vr),kr>er&&(er=kr)}ft=Math.max(Rt-Re,er-Ke),ft=ft!==0?32767/ft:0}return Vl(fe,pe,F,Re,Ke,ft,0),pe}function Qs(R,A,F,W,te){let fe;if(te===function(pe,Re,Ke,ft){let Rt=0;for(let er=Re,ur=Ke-ft;er0)for(let pe=A;pe=A;pe-=W)fe=Nt(pe/W|0,R[pe],R[pe+1],fe);return fe&&ne(fe,fe.next)&&(Ne(fe),fe=fe.next),fe}function al(R,A){if(!R)return R;A||(A=R);let F,W=R;do if(F=!1,W.steiner||!ne(W,W.next)&&de(W.prev,W,W.next)!==0)W=W.next;else{if(Ne(W),W=A=W.prev,W===W.next)break;F=!0}while(F||W!==A);return A}function Vl(R,A,F,W,te,fe,pe){if(!R)return;!pe&&fe&&function(Ke,ft,Rt,er){let ur=Ke;do ur.z===0&&(ur.z=D(ur.x,ur.y,ft,Rt,er)),ur.prevZ=ur.prev,ur.nextZ=ur.next,ur=ur.next;while(ur!==Ke);ur.prevZ.nextZ=null,ur.prevZ=null,function(vr){let kr,Dr=1;do{let li,pi=vr;vr=null;let vn=null;for(kr=0;pi;){kr++;let zi=pi,ln=0;for(let pa=0;pa0||Tn>0&&zi;)ln!==0&&(Tn===0||!zi||pi.z<=zi.z)?(li=pi,pi=pi.nextZ,ln--):(li=zi,zi=zi.nextZ,Tn--),vn?vn.nextZ=li:vr=li,li.prevZ=vn,vn=li;pi=zi}vn.nextZ=null,Dr*=2}while(kr>1)}(ur)}(R,W,te,fe);let Re=R;for(;R.prev!==R.next;){let Ke=R.prev,ft=R.next;if(fe?Vs(R,W,te,fe):ss(R))A.push(Ke.i,R.i,ft.i),Ne(R),R=ft.next,Re=ft.next;else if((R=ft)===Re){pe?pe===1?Vl(R=Ys(al(R),A),A,F,W,te,fe,2):pe===2&&wa(R,A,F,W,te,fe):Vl(al(R),A,F,W,te,fe,1);break}}}function ss(R){let A=R.prev,F=R,W=R.next;if(de(A,F,W)>=0)return!1;let te=A.x,fe=F.x,pe=W.x,Re=A.y,Ke=F.y,ft=W.y,Rt=tefe?te>pe?te:pe:fe>pe?fe:pe,vr=Re>Ke?Re>ft?Re:ft:Ke>ft?Ke:ft,kr=W.next;for(;kr!==A;){if(kr.x>=Rt&&kr.x<=ur&&kr.y>=er&&kr.y<=vr&&O(te,Re,fe,Ke,pe,ft,kr.x,kr.y)&&de(kr.prev,kr,kr.next)>=0)return!1;kr=kr.next}return!0}function Vs(R,A,F,W){let te=R.prev,fe=R,pe=R.next;if(de(te,fe,pe)>=0)return!1;let Re=te.x,Ke=fe.x,ft=pe.x,Rt=te.y,er=fe.y,ur=pe.y,vr=ReKe?Re>ft?Re:ft:Ke>ft?Ke:ft,li=Rt>er?Rt>ur?Rt:ur:er>ur?er:ur,pi=D(vr,kr,A,F,W),vn=D(Dr,li,A,F,W),zi=R.prevZ,ln=R.nextZ;for(;zi&&zi.z>=pi&&ln&&ln.z<=vn;){if(zi.x>=vr&&zi.x<=Dr&&zi.y>=kr&&zi.y<=li&&zi!==te&&zi!==pe&&O(Re,Rt,Ke,er,ft,ur,zi.x,zi.y)&&de(zi.prev,zi,zi.next)>=0||(zi=zi.prevZ,ln.x>=vr&&ln.x<=Dr&&ln.y>=kr&&ln.y<=li&&ln!==te&&ln!==pe&&O(Re,Rt,Ke,er,ft,ur,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0))return!1;ln=ln.nextZ}for(;zi&&zi.z>=pi;){if(zi.x>=vr&&zi.x<=Dr&&zi.y>=kr&&zi.y<=li&&zi!==te&&zi!==pe&&O(Re,Rt,Ke,er,ft,ur,zi.x,zi.y)&&de(zi.prev,zi,zi.next)>=0)return!1;zi=zi.prevZ}for(;ln&&ln.z<=vn;){if(ln.x>=vr&&ln.x<=Dr&&ln.y>=kr&&ln.y<=li&&ln!==te&&ln!==pe&&O(Re,Rt,Ke,er,ft,ur,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0)return!1;ln=ln.nextZ}return!0}function Ys(R,A){let F=R;do{let W=F.prev,te=F.next.next;!ne(W,te)&&we(W,F,F.next,te)&&Yt(W,te)&&Yt(te,W)&&(A.push(W.i,F.i,te.i),Ne(F),Ne(F.next),F=R=te),F=F.next}while(F!==R);return al(F)}function wa(R,A,F,W,te,fe){let pe=R;do{let Re=pe.next.next;for(;Re!==pe.prev;){if(pe.i!==Re.i&&K(pe,Re)){let Ke=cr(pe,Re);return pe=al(pe,pe.next),Ke=al(Ke,Ke.next),Vl(pe,A,F,W,te,fe,0),void Vl(Ke,A,F,W,te,fe,0)}Re=Re.next}pe=pe.next}while(pe!==R)}function ol(R,A){return R.x-A.x}function io(R,A){let F=function(te,fe){let pe=fe,Re=te.x,Ke=te.y,ft,Rt=-1/0;do{if(Ke<=pe.y&&Ke>=pe.next.y&&pe.next.y!==pe.y){let Dr=pe.x+(Ke-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if(Dr<=Re&&Dr>Rt&&(Rt=Dr,ft=pe.x=pe.x&&pe.x>=ur&&Re!==pe.x&&O(Keft.x||pe.x===ft.x&&Y(ft,pe)))&&(ft=pe,kr=Dr)}pe=pe.next}while(pe!==er);return ft}(R,A);if(!F)return A;let W=cr(F,R);return al(W,W.next),al(F,F.next)}function Y(R,A){return de(R.prev,R,A.prev)<0&&de(A.next,R,R.next)<0}function D(R,A,F,W,te){return(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=(R-F)*te|0)|R<<8))|R<<4))|R<<2))|R<<1))|(A=1431655765&((A=858993459&((A=252645135&((A=16711935&((A=(A-W)*te|0)|A<<8))|A<<4))|A<<2))|A<<1))<<1}function J(R){let A=R,F=R;do(A.x=(R-pe)*(fe-Re)&&(R-pe)*(W-Re)>=(F-pe)*(A-Re)&&(F-pe)*(fe-Re)>=(te-pe)*(W-Re)}function K(R,A){return R.next.i!==A.i&&R.prev.i!==A.i&&!function(F,W){let te=F;do{if(te.i!==F.i&&te.next.i!==F.i&&te.i!==W.i&&te.next.i!==W.i&&we(te,te.next,F,W))return!0;te=te.next}while(te!==F);return!1}(R,A)&&(Yt(R,A)&&Yt(A,R)&&function(F,W){let te=F,fe=!1,pe=(F.x+W.x)/2,Re=(F.y+W.y)/2;do te.y>Re!=te.next.y>Re&&te.next.y!==te.y&&pe<(te.next.x-te.x)*(Re-te.y)/(te.next.y-te.y)+te.x&&(fe=!fe),te=te.next;while(te!==F);return fe}(R,A)&&(de(R.prev,R,A.prev)||de(R,A.prev,A))||ne(R,A)&&de(R.prev,R,R.next)>0&&de(A.prev,A,A.next)>0)}function de(R,A,F){return(A.y-R.y)*(F.x-A.x)-(A.x-R.x)*(F.y-A.y)}function ne(R,A){return R.x===A.x&&R.y===A.y}function we(R,A,F,W){let te=ht(de(R,A,F)),fe=ht(de(R,A,W)),pe=ht(de(F,W,R)),Re=ht(de(F,W,A));return te!==fe&&pe!==Re||!(te!==0||!Oe(R,F,A))||!(fe!==0||!Oe(R,W,A))||!(pe!==0||!Oe(F,R,W))||!(Re!==0||!Oe(F,A,W))}function Oe(R,A,F){return A.x<=Math.max(R.x,F.x)&&A.x>=Math.min(R.x,F.x)&&A.y<=Math.max(R.y,F.y)&&A.y>=Math.min(R.y,F.y)}function ht(R){return R>0?1:R<0?-1:0}function Yt(R,A){return de(R.prev,R,R.next)<0?de(R,A,R.next)>=0&&de(R,R.prev,A)>=0:de(R,A,R.prev)<0||de(R,R.next,A)<0}function cr(R,A){let F=$e(R.i,R.x,R.y),W=$e(A.i,A.x,A.y),te=R.next,fe=A.prev;return R.next=A,A.prev=R,F.next=te,te.prev=F,W.next=F,F.prev=W,fe.next=W,W.prev=fe,W}function Nt(R,A,F,W){let te=$e(R,A,F);return W?(te.next=W.next,te.prev=W,W.next.prev=te,W.next=te):(te.prev=te,te.next=te),te}function Ne(R){R.next.prev=R.prev,R.prev.next=R.next,R.prevZ&&(R.prevZ.nextZ=R.nextZ),R.nextZ&&(R.nextZ.prevZ=R.prevZ)}function $e(R,A,F){return{i:R,x:A,y:F,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function st(R,A,F){let W=F.patternDependencies,te=!1;for(let fe of A){let pe=fe.paint.get(`${R}-pattern`);pe.isConstant()||(te=!0);let Re=pe.constantOr(null);Re&&(te=!0,W[Re.to]=!0,W[Re.from]=!0)}return te}function It(R,A,F,W,te){let fe=te.patternDependencies;for(let pe of A){let Re=pe.paint.get(`${R}-pattern`).value;if(Re.kind!=="constant"){let Ke=Re.evaluate({zoom:W-1},F,{},te.availableImages),ft=Re.evaluate({zoom:W},F,{},te.availableImages),Rt=Re.evaluate({zoom:W+1},F,{},te.availableImages);Ke=Ke&&Ke.name?Ke.name:Ke,ft=ft&&ft.name?ft.name:ft,Rt=Rt&&Rt.name?Rt.name:Rt,fe[Ke]=!0,fe[ft]=!0,fe[Rt]=!0,F.patterns[pe.id]={min:Ke,mid:ft,max:Rt}}}return F}class Bt{constructor(A){this.zoom=A.zoom,this.overscaling=A.overscaling,this.layers=A.layers,this.layerIds=this.layers.map(F=>F.id),this.index=A.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new hl,this.indexArray=new se,this.indexArray2=new Te,this.programConfigurations=new Ms(A.layers,A.zoom),this.segments=new Ye,this.segments2=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(A,F,W){this.hasPattern=st("fill",this.layers,F);let te=this.layers[0].layout.get("fill-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:Re,id:Ke,index:ft,sourceLayerIndex:Rt}of A){let er=this.layers[0]._featureFilter.needGeometry,ur=Sl(Re,er);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),ur,W))continue;let vr=fe?te.evaluate(ur,{},W,F.availableImages):void 0,kr={id:Ke,properties:Re.properties,type:Re.type,sourceLayerIndex:Rt,index:ft,geometry:er?ur.geometry:$s(Re),patterns:{},sortKey:vr};pe.push(kr)}fe&&pe.sort((Re,Ke)=>Re.sortKey-Ke.sortKey);for(let Re of pe){let{geometry:Ke,index:ft,sourceLayerIndex:Rt}=Re;if(this.hasPattern){let er=It("fill",this.layers,Re,this.zoom,F);this.patternFeatures.push(er)}else this.addFeature(Re,Ke,ft,W,{});F.featureIndex.insert(A[ft].feature,Ke,ft,Rt,this.index)}}update(A,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(A,F,this.stateDependentLayers,W)}addFeatures(A,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(A){this.uploaded||(this.layoutVertexBuffer=A.createVertexBuffer(this.layoutVertexArray,Ml),this.indexBuffer=A.createIndexBuffer(this.indexArray),this.indexBuffer2=A.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(A),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(A,F,W,te,fe){for(let pe of Cf(F,500)){let Re=0;for(let vr of pe)Re+=vr.length;let Ke=this.segments.prepareSegment(Re,this.layoutVertexArray,this.indexArray),ft=Ke.vertexLength,Rt=[],er=[];for(let vr of pe){if(vr.length===0)continue;vr!==pe[0]&&er.push(Rt.length/2);let kr=this.segments2.prepareSegment(vr.length,this.layoutVertexArray,this.indexArray2),Dr=kr.vertexLength;this.layoutVertexArray.emplaceBack(vr[0].x,vr[0].y),this.indexArray2.emplaceBack(Dr+vr.length-1,Dr),Rt.push(vr[0].x),Rt.push(vr[0].y);for(let li=1;li>3}if(te--,W===1||W===2)fe+=R.readSVarint(),pe+=R.readSVarint(),W===1&&(A&&Re.push(A),A=[]),A.push(new Br(fe,pe));else{if(W!==7)throw new Error("unknown command "+W);A&&A.push(A[0].clone())}}return A&&Re.push(A),Re},ci.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var A=R.readVarint()+R.pos,F=1,W=0,te=0,fe=0,pe=1/0,Re=-1/0,Ke=1/0,ft=-1/0;R.pos>3}if(W--,F===1||F===2)(te+=R.readSVarint())Re&&(Re=te),(fe+=R.readSVarint())ft&&(ft=fe);else if(F!==7)throw new Error("unknown command "+F)}return[pe,Ke,Re,ft]},ci.prototype.toGeoJSON=function(R,A,F){var W,te,fe=this.extent*Math.pow(2,F),pe=this.extent*R,Re=this.extent*A,Ke=this.loadGeometry(),ft=ci.types[this.type];function Rt(vr){for(var kr=0;kr>3;te=pe===1?W.readString():pe===2?W.readFloat():pe===3?W.readDouble():pe===4?W.readVarint64():pe===5?W.readVarint():pe===6?W.readSVarint():pe===7?W.readBoolean():null}return te}(F))}Oi.prototype.feature=function(R){if(R<0||R>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[R];var A=this._pbf.readVarint()+this._pbf.pos;return new tn(this._pbf,A,this.extent,this._keys,this._values)};var on=Ei;function zn(R,A,F){if(R===3){var W=new on(F,F.readVarint()+F.pos);W.length&&(A[W.name]=W)}}_r.VectorTile=function(R,A){this.layers=R.readFields(zn,{},A)},_r.VectorTileFeature=Di,_r.VectorTileLayer=Ei;let Ja=_r.VectorTileFeature.types,co=Math.pow(2,13);function ts(R,A,F,W,te,fe,pe,Re){R.emplaceBack(A,F,2*Math.floor(W*co)+pe,te*co*2,fe*co*2,Math.round(Re))}class so{constructor(A){this.zoom=A.zoom,this.overscaling=A.overscaling,this.layers=A.layers,this.layerIds=this.layers.map(F=>F.id),this.index=A.index,this.hasPattern=!1,this.layoutVertexArray=new Ul,this.centroidVertexArray=new wo,this.indexArray=new se,this.programConfigurations=new Ms(A.layers,A.zoom),this.segments=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(A,F,W){this.features=[],this.hasPattern=st("fill-extrusion",this.layers,F);for(let{feature:te,id:fe,index:pe,sourceLayerIndex:Re}of A){let Ke=this.layers[0]._featureFilter.needGeometry,ft=Sl(te,Ke);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),ft,W))continue;let Rt={id:fe,sourceLayerIndex:Re,index:pe,geometry:Ke?ft.geometry:$s(te),properties:te.properties,type:te.type,patterns:{}};this.hasPattern?this.features.push(It("fill-extrusion",this.layers,Rt,this.zoom,F)):this.addFeature(Rt,Rt.geometry,pe,W,{}),F.featureIndex.insert(te,Rt.geometry,pe,Re,this.index,!0)}}addFeatures(A,F,W){for(let te of this.features){let{geometry:fe}=te;this.addFeature(te,fe,te.index,F,W)}}update(A,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(A,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(A){this.uploaded||(this.layoutVertexBuffer=A.createVertexBuffer(this.layoutVertexArray,lr),this.centroidVertexBuffer=A.createVertexBuffer(this.centroidVertexArray,vt.members,!0),this.indexBuffer=A.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(A),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(A,F,W,te,fe){for(let pe of Cf(F,500)){let Re={x:0,y:0,vertexCount:0},Ke=0;for(let kr of pe)Ke+=kr.length;let ft=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let kr of pe){if(kr.length===0||ms(kr))continue;let Dr=0;for(let li=0;li=1){let vn=kr[li-1];if(!Yo(pi,vn)){ft.vertexLength+4>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ft=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let zi=pi.sub(vn)._perp()._unit(),ln=vn.dist(pi);Dr+ln>32768&&(Dr=0),ts(this.layoutVertexArray,pi.x,pi.y,zi.x,zi.y,0,0,Dr),ts(this.layoutVertexArray,pi.x,pi.y,zi.x,zi.y,0,1,Dr),Re.x+=2*pi.x,Re.y+=2*pi.y,Re.vertexCount+=2,Dr+=ln,ts(this.layoutVertexArray,vn.x,vn.y,zi.x,zi.y,0,0,Dr),ts(this.layoutVertexArray,vn.x,vn.y,zi.x,zi.y,0,1,Dr),Re.x+=2*vn.x,Re.y+=2*vn.y,Re.vertexCount+=2;let Tn=ft.vertexLength;this.indexArray.emplaceBack(Tn,Tn+2,Tn+1),this.indexArray.emplaceBack(Tn+1,Tn+2,Tn+3),ft.vertexLength+=4,ft.primitiveLength+=2}}}}if(ft.vertexLength+Ke>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ft=this.segments.prepareSegment(Ke,this.layoutVertexArray,this.indexArray)),Ja[A.type]!=="Polygon")continue;let Rt=[],er=[],ur=ft.vertexLength;for(let kr of pe)if(kr.length!==0){kr!==pe[0]&&er.push(Rt.length/2);for(let Dr=0;Drja)||R.y===A.y&&(R.y<0||R.y>ja)}function ms(R){return R.every(A=>A.x<0)||R.every(A=>A.x>ja)||R.every(A=>A.y<0)||R.every(A=>A.y>ja)}let ou;Fi("FillExtrusionBucket",so,{omit:["layers","features"]});var Cv={get paint(){return ou=ou||new ue({"fill-extrusion-opacity":new Va(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new oo(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Va(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Va(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Vc(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new oo(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new oo(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Va(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Lv extends B{constructor(A){super(A,Cv)}createBucket(A){return new so(A)}queryRadius(){return Vn(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(A,F,W,te,fe,pe,Re,Ke){let ft=Qi(A,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),pe.angle,Re),Rt=this.paint.get("fill-extrusion-height").evaluate(F,W),er=this.paint.get("fill-extrusion-base").evaluate(F,W),ur=function(kr,Dr,li,pi){let vn=[];for(let zi of kr){let ln=[zi.x,zi.y,0,1];qn(ln,ln,Dr),vn.push(new u(ln[0]/ln[3],ln[1]/ln[3]))}return vn}(ft,Ke),vr=function(kr,Dr,li,pi){let vn=[],zi=[],ln=pi[8]*Dr,Tn=pi[9]*Dr,pa=pi[10]*Dr,ro=pi[11]*Dr,Vo=pi[8]*li,Xa=pi[9]*li,la=pi[10]*li,Mo=pi[11]*li;for(let fo of kr){let lo=[],Wn=[];for(let Ro of fo){let uo=Ro.x,$o=Ro.y,Ju=pi[0]*uo+pi[4]*$o+pi[12],Ou=pi[1]*uo+pi[5]*$o+pi[13],kh=pi[2]*uo+pi[6]*$o+pi[14],Qv=pi[3]*uo+pi[7]*$o+pi[15],ud=kh+pa,Ch=Qv+ro,Gd=Ju+Vo,Hd=Ou+Xa,jd=kh+la,Af=Qv+Mo,Lh=new u((Ju+ln)/Ch,(Ou+Tn)/Ch);Lh.z=ud/Ch,lo.push(Lh);let Ed=new u(Gd/Af,Hd/Af);Ed.z=jd/Af,Wn.push(Ed)}vn.push(lo),zi.push(Wn)}return[vn,zi]}(te,er,Rt,Ke);return function(kr,Dr,li){let pi=1/0;bt(li,Dr)&&(pi=Kv(li,Dr[0]));for(let vn=0;vnF.id),this.index=A.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(F=>{this.gradients[F.id]={}}),this.layoutVertexArray=new Lu,this.layoutVertexArray2=new au,this.indexArray=new se,this.programConfigurations=new Ms(A.layers,A.zoom),this.segments=new Ye,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(A,F,W){this.hasPattern=st("line",this.layers,F);let te=this.layers[0].layout.get("line-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:Re,id:Ke,index:ft,sourceLayerIndex:Rt}of A){let er=this.layers[0]._featureFilter.needGeometry,ur=Sl(Re,er);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),ur,W))continue;let vr=fe?te.evaluate(ur,{},W):void 0,kr={id:Ke,properties:Re.properties,type:Re.type,sourceLayerIndex:Rt,index:ft,geometry:er?ur.geometry:$s(Re),patterns:{},sortKey:vr};pe.push(kr)}fe&&pe.sort((Re,Ke)=>Re.sortKey-Ke.sortKey);for(let Re of pe){let{geometry:Ke,index:ft,sourceLayerIndex:Rt}=Re;if(this.hasPattern){let er=It("line",this.layers,Re,this.zoom,F);this.patternFeatures.push(er)}else this.addFeature(Re,Ke,ft,W,{});F.featureIndex.insert(A[ft].feature,Ke,ft,Rt,this.index)}}update(A,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(A,F,this.stateDependentLayers,W)}addFeatures(A,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(A){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=A.createVertexBuffer(this.layoutVertexArray2,mp)),this.layoutVertexBuffer=A.createVertexBuffer(this.layoutVertexArray,gp),this.indexBuffer=A.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(A),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(A){if(A.properties&&Object.prototype.hasOwnProperty.call(A.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(A.properties,"mapbox_clip_end"))return{start:+A.properties.mapbox_clip_start,end:+A.properties.mapbox_clip_end}}addFeature(A,F,W,te,fe){let pe=this.layers[0].layout,Re=pe.get("line-join").evaluate(A,{}),Ke=pe.get("line-cap"),ft=pe.get("line-miter-limit"),Rt=pe.get("line-round-limit");this.lineClips=this.lineFeatureClips(A);for(let er of F)this.addLine(er,A,Re,Ke,ft,Rt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,A,W,fe,te)}addLine(A,F,W,te,fe,pe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let pi=0;pi=2&&A[Ke-1].equals(A[Ke-2]);)Ke--;let ft=0;for(;ft0;if(ro&&pi>ft){let Mo=ur.dist(vr);if(Mo>2*Rt){let fo=ur.sub(ur.sub(vr)._mult(Rt/Mo)._round());this.updateDistance(vr,fo),this.addCurrentVertex(fo,Dr,0,0,er),vr=fo}}let Xa=vr&&kr,la=Xa?W:Re?"butt":te;if(Xa&&la==="round"&&(Tnfe&&(la="bevel"),la==="bevel"&&(Tn>2&&(la="flipbevel"),Tn100)vn=li.mult(-1);else{let Mo=Tn*Dr.add(li).mag()/Dr.sub(li).mag();vn._perp()._mult(Mo*(Vo?-1:1))}this.addCurrentVertex(ur,vn,0,0,er),this.addCurrentVertex(ur,vn.mult(-1),0,0,er)}else if(la==="bevel"||la==="fakeround"){let Mo=-Math.sqrt(Tn*Tn-1),fo=Vo?Mo:0,lo=Vo?0:Mo;if(vr&&this.addCurrentVertex(ur,Dr,fo,lo,er),la==="fakeround"){let Wn=Math.round(180*pa/Math.PI/20);for(let Ro=1;Ro2*Rt){let fo=ur.add(kr.sub(ur)._mult(Rt/Mo)._round());this.updateDistance(ur,fo),this.addCurrentVertex(fo,li,0,0,er),ur=fo}}}}addCurrentVertex(A,F,W,te,fe,pe=!1){let Re=F.y*te-F.x,Ke=-F.y-F.x*te;this.addHalfVertex(A,F.x+F.y*W,F.y-F.x*W,pe,!1,W,fe),this.addHalfVertex(A,Re,Ke,pe,!0,-te,fe),this.distance>Pv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(A,F,W,te,fe,pe))}addHalfVertex({x:A,y:F},W,te,fe,pe,Re,Ke){let ft=.5*(this.lineClips?this.scaledDistance*(Pv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((A<<1)+(fe?1:0),(F<<1)+(pe?1:0),Math.round(63*W)+128,Math.round(63*te)+128,1+(Re===0?0:Re<0?-1:1)|(63&ft)<<2,ft>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Rt=Ke.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Rt),Ke.primitiveLength++),pe?this.e2=Rt:this.e1=Rt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(A,F){this.distance+=A.dist(F),this.updateScaledDistance()}}let Iv,hy;Fi("LineBucket",Jv,{omit:["layers","patternFeatures"]});var dg={get paint(){return hy=hy||new ue({"line-opacity":new oo(ce.paint_line["line-opacity"]),"line-color":new oo(ce.paint_line["line-color"]),"line-translate":new Va(ce.paint_line["line-translate"]),"line-translate-anchor":new Va(ce.paint_line["line-translate-anchor"]),"line-width":new oo(ce.paint_line["line-width"]),"line-gap-width":new oo(ce.paint_line["line-gap-width"]),"line-offset":new oo(ce.paint_line["line-offset"]),"line-blur":new oo(ce.paint_line["line-blur"]),"line-dasharray":new hc(ce.paint_line["line-dasharray"]),"line-pattern":new Vc(ce.paint_line["line-pattern"]),"line-gradient":new Ku(ce.paint_line["line-gradient"])})},get layout(){return Iv=Iv||new ue({"line-cap":new Va(ce.layout_line["line-cap"]),"line-join":new oo(ce.layout_line["line-join"]),"line-miter-limit":new Va(ce.layout_line["line-miter-limit"]),"line-round-limit":new Va(ce.layout_line["line-round-limit"]),"line-sort-key":new oo(ce.layout_line["line-sort-key"])})}};class oh extends oo{possiblyEvaluate(A,F){return F=new rs(Math.floor(F.zoom),{now:F.now,fadeDuration:F.fadeDuration,zoomHistory:F.zoomHistory,transition:F.transition}),super.possiblyEvaluate(A,F)}evaluate(A,F,W,te){return F=L({},F,{zoom:Math.floor(F.zoom)}),super.evaluate(A,F,W,te)}}let vg;class dy extends B{constructor(A){super(A,dg),this.gradientVersion=0,vg||(vg=new oh(dg.paint.properties["line-width"].specification),vg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(A){if(A==="line-gradient"){let F=this.gradientExpression();this.stepInterpolant=!!function(W){return W._styleExpression!==void 0}(F)&&F._styleExpression.expression instanceof _n,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(A,F){super.recalculate(A,F),this.paint._values["line-floorwidth"]=vg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,A)}createBucket(A){return new Jv(A)}queryRadius(A){let F=A,W=Zh(Si("line-width",this,F),Si("line-gap-width",this,F)),te=Si("line-offset",this,F);return W/2+Math.abs(te)+Vn(this.paint.get("line-translate"))}queryIntersectsFeature(A,F,W,te,fe,pe,Re){let Ke=Qi(A,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),pe.angle,Re),ft=Re/2*Zh(this.paint.get("line-width").evaluate(F,W),this.paint.get("line-gap-width").evaluate(F,W)),Rt=this.paint.get("line-offset").evaluate(F,W);return Rt&&(te=function(er,ur){let vr=[];for(let kr=0;kr=3){for(let li=0;li0?A+2*R:R}let am=Fe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),k1=Fe([{name:"a_projected_pos",components:3,type:"Float32"}],4);Fe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let C1=Fe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Fe([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let vy=Fe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),om=Fe([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function sm(R,A,F){return R.sections.forEach(W=>{W.text=function(te,fe,pe){let Re=fe.layout.get("text-transform").evaluate(pe,{});return Re==="uppercase"?te=te.toLocaleUpperCase():Re==="lowercase"&&(te=te.toLocaleLowerCase()),ys.applyArabicShaping&&(te=ys.applyArabicShaping(te)),te}(W.text,A,F)}),R}Fe([{name:"triangle",components:3,type:"Uint16"}]),Fe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Fe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Fe([{type:"Float32",name:"offsetX"}]),Fe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Fe([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let vc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var tu=24,Sd=wu,py=function(R,A,F,W,te){var fe,pe,Re=8*te-W-1,Ke=(1<>1,Rt=-7,er=F?te-1:0,ur=F?-1:1,vr=R[A+er];for(er+=ur,fe=vr&(1<<-Rt)-1,vr>>=-Rt,Rt+=Re;Rt>0;fe=256*fe+R[A+er],er+=ur,Rt-=8);for(pe=fe&(1<<-Rt)-1,fe>>=-Rt,Rt+=W;Rt>0;pe=256*pe+R[A+er],er+=ur,Rt-=8);if(fe===0)fe=1-ft;else{if(fe===Ke)return pe?NaN:1/0*(vr?-1:1);pe+=Math.pow(2,W),fe-=ft}return(vr?-1:1)*pe*Math.pow(2,fe-W)},L1=function(R,A,F,W,te,fe){var pe,Re,Ke,ft=8*fe-te-1,Rt=(1<>1,ur=te===23?Math.pow(2,-24)-Math.pow(2,-77):0,vr=W?0:fe-1,kr=W?1:-1,Dr=A<0||A===0&&1/A<0?1:0;for(A=Math.abs(A),isNaN(A)||A===1/0?(Re=isNaN(A)?1:0,pe=Rt):(pe=Math.floor(Math.log(A)/Math.LN2),A*(Ke=Math.pow(2,-pe))<1&&(pe--,Ke*=2),(A+=pe+er>=1?ur/Ke:ur*Math.pow(2,1-er))*Ke>=2&&(pe++,Ke/=2),pe+er>=Rt?(Re=0,pe=Rt):pe+er>=1?(Re=(A*Ke-1)*Math.pow(2,te),pe+=er):(Re=A*Math.pow(2,er-1)*Math.pow(2,te),pe=0));te>=8;R[F+vr]=255&Re,vr+=kr,Re/=256,te-=8);for(pe=pe<0;R[F+vr]=255&pe,vr+=kr,pe/=256,ft-=8);R[F+vr-kr]|=128*Dr};function wu(R){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(R)?R:new Uint8Array(R||0),this.pos=0,this.type=0,this.length=this.buf.length}wu.Varint=0,wu.Fixed64=1,wu.Bytes=2,wu.Fixed32=5;var Kx=4294967296,lm=1/Kx,Bw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Rv(R){return R.type===wu.Bytes?R.readVarint()+R.pos:R.pos+1}function um(R,A,F){return F?4294967296*A+(R>>>0):4294967296*(A>>>0)+(R>>>0)}function Nw(R,A,F){var W=A<=16383?1:A<=2097151?2:A<=268435455?3:Math.floor(Math.log(A)/(7*Math.LN2));F.realloc(W);for(var te=F.pos-1;te>=R;te--)F.buf[te+W]=F.buf[te]}function Jx(R,A){for(var F=0;F>>8,R[F+2]=A>>>16,R[F+3]=A>>>24}function MC(R,A){return(R[A]|R[A+1]<<8|R[A+2]<<16)+(R[A+3]<<24)}wu.prototype={destroy:function(){this.buf=null},readFields:function(R,A,F){for(F=F||this.length;this.pos>3,fe=this.pos;this.type=7&W,R(te,A,this),this.pos===fe&&this.skip(W)}return A},readMessage:function(R,A){return this.readFields(R,A,this.readVarint()+this.pos)},readFixed32:function(){var R=gy(this.buf,this.pos);return this.pos+=4,R},readSFixed32:function(){var R=MC(this.buf,this.pos);return this.pos+=4,R},readFixed64:function(){var R=gy(this.buf,this.pos)+gy(this.buf,this.pos+4)*Kx;return this.pos+=8,R},readSFixed64:function(){var R=gy(this.buf,this.pos)+MC(this.buf,this.pos+4)*Kx;return this.pos+=8,R},readFloat:function(){var R=py(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=py(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var A,F,W=this.buf;return A=127&(F=W[this.pos++]),F<128?A:(A|=(127&(F=W[this.pos++]))<<7,F<128?A:(A|=(127&(F=W[this.pos++]))<<14,F<128?A:(A|=(127&(F=W[this.pos++]))<<21,F<128?A:function(te,fe,pe){var Re,Ke,ft=pe.buf;if(Re=(112&(Ke=ft[pe.pos++]))>>4,Ke<128||(Re|=(127&(Ke=ft[pe.pos++]))<<3,Ke<128)||(Re|=(127&(Ke=ft[pe.pos++]))<<10,Ke<128)||(Re|=(127&(Ke=ft[pe.pos++]))<<17,Ke<128)||(Re|=(127&(Ke=ft[pe.pos++]))<<24,Ke<128)||(Re|=(1&(Ke=ft[pe.pos++]))<<31,Ke<128))return um(te,Re,fe);throw new Error("Expected varint not more than 10 bytes")}(A|=(15&(F=W[this.pos]))<<28,R,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var R=this.readVarint();return R%2==1?(R+1)/-2:R/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var R=this.readVarint()+this.pos,A=this.pos;return this.pos=R,R-A>=12&&Bw?function(F,W,te){return Bw.decode(F.subarray(W,te))}(this.buf,A,R):function(F,W,te){for(var fe="",pe=W;pe239?4:Rt>223?3:Rt>191?2:1;if(pe+ur>te)break;ur===1?Rt<128&&(er=Rt):ur===2?(192&(Re=F[pe+1]))==128&&(er=(31&Rt)<<6|63&Re)<=127&&(er=null):ur===3?(Ke=F[pe+2],(192&(Re=F[pe+1]))==128&&(192&Ke)==128&&((er=(15&Rt)<<12|(63&Re)<<6|63&Ke)<=2047||er>=55296&&er<=57343)&&(er=null)):ur===4&&(Ke=F[pe+2],ft=F[pe+3],(192&(Re=F[pe+1]))==128&&(192&Ke)==128&&(192&ft)==128&&((er=(15&Rt)<<18|(63&Re)<<12|(63&Ke)<<6|63&ft)<=65535||er>=1114112)&&(er=null)),er===null?(er=65533,ur=1):er>65535&&(er-=65536,fe+=String.fromCharCode(er>>>10&1023|55296),er=56320|1023&er),fe+=String.fromCharCode(er),pe+=ur}return fe}(this.buf,A,R)},readBytes:function(){var R=this.readVarint()+this.pos,A=this.buf.subarray(this.pos,R);return this.pos=R,A},readPackedVarint:function(R,A){if(this.type!==wu.Bytes)return R.push(this.readVarint(A));var F=Rv(this);for(R=R||[];this.pos127;);else if(A===wu.Bytes)this.pos=this.readVarint()+this.pos;else if(A===wu.Fixed32)this.pos+=4;else{if(A!==wu.Fixed64)throw new Error("Unimplemented type: "+A);this.pos+=8}},writeTag:function(R,A){this.writeVarint(R<<3|A)},realloc:function(R){for(var A=this.length||16;A268435455||R<0?function(A,F){var W,te;if(A>=0?(W=A%4294967296|0,te=A/4294967296|0):(te=~(-A/4294967296),4294967295^(W=~(-A%4294967296))?W=W+1|0:(W=0,te=te+1|0)),A>=18446744073709552e3||A<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),function(fe,pe,Re){Re.buf[Re.pos++]=127&fe|128,fe>>>=7,Re.buf[Re.pos++]=127&fe|128,fe>>>=7,Re.buf[Re.pos++]=127&fe|128,fe>>>=7,Re.buf[Re.pos++]=127&fe|128,Re.buf[Re.pos]=127&(fe>>>=7)}(W,0,F),function(fe,pe){var Re=(7&fe)<<4;pe.buf[pe.pos++]|=Re|((fe>>>=3)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe)))))}(te,F)}(R,this):(this.realloc(4),this.buf[this.pos++]=127&R|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=R>>>7&127))))},writeSVarint:function(R){this.writeVarint(R<0?2*-R-1:2*R)},writeBoolean:function(R){this.writeVarint(!!R)},writeString:function(R){R=String(R),this.realloc(4*R.length),this.pos++;var A=this.pos;this.pos=function(W,te,fe){for(var pe,Re,Ke=0;Ke55295&&pe<57344){if(!Re){pe>56319||Ke+1===te.length?(W[fe++]=239,W[fe++]=191,W[fe++]=189):Re=pe;continue}if(pe<56320){W[fe++]=239,W[fe++]=191,W[fe++]=189,Re=pe;continue}pe=Re-55296<<10|pe-56320|65536,Re=null}else Re&&(W[fe++]=239,W[fe++]=191,W[fe++]=189,Re=null);pe<128?W[fe++]=pe:(pe<2048?W[fe++]=pe>>6|192:(pe<65536?W[fe++]=pe>>12|224:(W[fe++]=pe>>18|240,W[fe++]=pe>>12&63|128),W[fe++]=pe>>6&63|128),W[fe++]=63&pe|128)}return fe}(this.buf,R,this.pos);var F=this.pos-A;F>=128&&Nw(A,F,this),this.pos=A-1,this.writeVarint(F),this.pos+=F},writeFloat:function(R){this.realloc(4),L1(this.buf,R,this.pos,!0,23,4),this.pos+=4},writeDouble:function(R){this.realloc(8),L1(this.buf,R,this.pos,!0,52,8),this.pos+=8},writeBytes:function(R){var A=R.length;this.writeVarint(A),this.realloc(A);for(var F=0;F=128&&Nw(F,W,this),this.pos=F-1,this.writeVarint(W),this.pos+=W},writeMessage:function(R,A,F){this.writeTag(R,wu.Bytes),this.writeRawMessage(A,F)},writePackedVarint:function(R,A){A.length&&this.writeMessage(R,Jx,A)},writePackedSVarint:function(R,A){A.length&&this.writeMessage(R,H9,A)},writePackedBoolean:function(R,A){A.length&&this.writeMessage(R,X9,A)},writePackedFloat:function(R,A){A.length&&this.writeMessage(R,j9,A)},writePackedDouble:function(R,A){A.length&&this.writeMessage(R,W9,A)},writePackedFixed32:function(R,A){A.length&&this.writeMessage(R,OQ,A)},writePackedSFixed32:function(R,A){A.length&&this.writeMessage(R,Z9,A)},writePackedFixed64:function(R,A){A.length&&this.writeMessage(R,Y9,A)},writePackedSFixed64:function(R,A){A.length&&this.writeMessage(R,K9,A)},writeBytesField:function(R,A){this.writeTag(R,wu.Bytes),this.writeBytes(A)},writeFixed32Field:function(R,A){this.writeTag(R,wu.Fixed32),this.writeFixed32(A)},writeSFixed32Field:function(R,A){this.writeTag(R,wu.Fixed32),this.writeSFixed32(A)},writeFixed64Field:function(R,A){this.writeTag(R,wu.Fixed64),this.writeFixed64(A)},writeSFixed64Field:function(R,A){this.writeTag(R,wu.Fixed64),this.writeSFixed64(A)},writeVarintField:function(R,A){this.writeTag(R,wu.Varint),this.writeVarint(A)},writeSVarintField:function(R,A){this.writeTag(R,wu.Varint),this.writeSVarint(A)},writeStringField:function(R,A){this.writeTag(R,wu.Bytes),this.writeString(A)},writeFloatField:function(R,A){this.writeTag(R,wu.Fixed32),this.writeFloat(A)},writeDoubleField:function(R,A){this.writeTag(R,wu.Fixed64),this.writeDouble(A)},writeBooleanField:function(R,A){this.writeVarintField(R,!!A)}};var uS=o(Sd);let cS=3;function BQ(R,A,F){R===1&&F.readMessage(J9,A)}function J9(R,A,F){if(R===3){let{id:W,bitmap:te,width:fe,height:pe,left:Re,top:Ke,advance:ft}=F.readMessage(EC,{});A.push({id:W,bitmap:new aa({width:fe+2*cS,height:pe+2*cS},te),metrics:{width:fe,height:pe,left:Re,top:Ke,advance:ft}})}}function EC(R,A,F){R===1?A.id=F.readVarint():R===2?A.bitmap=F.readBytes():R===3?A.width=F.readVarint():R===4?A.height=F.readVarint():R===5?A.left=F.readSVarint():R===6?A.top=F.readSVarint():R===7&&(A.advance=F.readVarint())}let kC=cS;function fS(R){let A=0,F=0;for(let pe of R)A+=pe.w*pe.h,F=Math.max(F,pe.w);R.sort((pe,Re)=>Re.h-pe.h);let W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(A/.95)),F),h:1/0}],te=0,fe=0;for(let pe of R)for(let Re=W.length-1;Re>=0;Re--){let Ke=W[Re];if(!(pe.w>Ke.w||pe.h>Ke.h)){if(pe.x=Ke.x,pe.y=Ke.y,fe=Math.max(fe,pe.y+pe.h),te=Math.max(te,pe.x+pe.w),pe.w===Ke.w&&pe.h===Ke.h){let ft=W.pop();Re=0&&W>=A&&Gw[this.text.charCodeAt(W)];W--)F--;this.text=this.text.substring(A,F),this.sectionIndex=this.sectionIndex.slice(A,F)}substring(A,F){let W=new P1;return W.text=this.text.substring(A,F),W.sectionIndex=this.sectionIndex.slice(A,F),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((A,F)=>Math.max(A,this.sections[F].scale),0)}addTextSection(A,F){this.text+=A.text,this.sections.push(Qx.forText(A.scale,A.fontStack||F));let W=this.sections.length-1;for(let te=0;te=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function eb(R,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr){let Dr=P1.fromFeature(R,te),li;er===i.ah.vertical&&Dr.verticalizePunctuation();let{processBidirectionalText:pi,processStyledBidirectionalText:vn}=ys;if(pi&&Dr.sections.length===1){li=[];let Tn=pi(Dr.toString(),I1(Dr,ft,fe,A,W,vr));for(let pa of Tn){let ro=new P1;ro.text=pa,ro.sections=Dr.sections;for(let Vo=0;Vo0&&tp>Df&&(Df=tp)}else{let Gc=ro[ru.fontStack],Yf=Gc&&Gc[$u];if(Yf&&Yf.rect)O1=Yf.rect,hf=Yf.metrics;else{let tp=pa[ru.fontStack],yg=tp&&tp[$u];if(!yg)continue;hf=yg.metrics}zv=(Lh-ru.scale)*tu}ep?(Tn.verticalizable=!0,Yh.push({glyph:$u,imageName:p0,x:$o,y:Ju+zv,vertical:ep,scale:ru.scale,fontStack:ru.fontStack,sectionIndex:pc,metrics:hf,rect:O1}),$o+=Gp*ru.scale+Wn):(Yh.push({glyph:$u,imageName:p0,x:$o,y:Ju+zv,vertical:ep,scale:ru.scale,fontStack:ru.fontStack,sectionIndex:pc,metrics:hf,rect:O1}),$o+=hf.advance*ru.scale+Wn)}Yh.length!==0&&(Ou=Math.max($o-Wn,Ou),cm(Yh,0,Yh.length-1,Qv,Df)),$o=0;let Fv=la*Lh+Df;cd.lineOffset=Math.max(Df,Ed),Ju+=Fv,kh=Math.max(Fv,kh),++ud}var Ch;let Gd=Ju-Eh,{horizontalAlign:Hd,verticalAlign:jd}=jw(Mo);(function(Af,Lh,Ed,cd,Yh,Df,Fv,uv,ru){let pc=(Lh-Ed)*Yh,$u=0;$u=Df!==Fv?-uv*cd-Eh:(-cd*ru+.5)*Fv;for(let zv of Af)for(let hf of zv.positionedGlyphs)hf.x+=pc,hf.y+=$u})(Tn.positionedLines,Qv,Hd,jd,Ou,kh,la,Gd,Xa.length),Tn.top+=-jd*Gd,Tn.bottom=Tn.top+Gd,Tn.left+=-Hd*Ou,Tn.right=Tn.left+Ou}(ln,A,F,W,li,pe,Re,Ke,er,ft,ur,kr),!function(Tn){for(let pa of Tn)if(pa.positionedGlyphs.length!==0)return!1;return!0}(zi)&&ln}let Gw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},$9={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Q9={40:!0};function CC(R,A,F,W,te,fe){if(A.imageName){let pe=W[A.imageName];return pe?pe.displaySize[0]*A.scale*tu/fe+te:0}{let pe=F[A.fontStack],Re=pe&&pe[R];return Re?Re.metrics.advance*A.scale+te:0}}function LC(R,A,F,W){let te=Math.pow(R-A,2);return W?R=0,ft=0;for(let er=0;erft){let Rt=Math.ceil(fe/ft);te*=Rt/pe,pe=Rt}return{x1:W,y1:te,x2:W+fe,y2:te+pe}}function RC(R,A,F,W,te,fe){let pe=R.image,Re;if(pe.content){let li=pe.content,pi=pe.pixelRatio||1;Re=[li[0]/pi,li[1]/pi,pe.displaySize[0]-li[2]/pi,pe.displaySize[1]-li[3]/pi]}let Ke=A.left*fe,ft=A.right*fe,Rt,er,ur,vr;F==="width"||F==="both"?(vr=te[0]+Ke-W[3],er=te[0]+ft+W[1]):(vr=te[0]+(Ke+ft-pe.displaySize[0])/2,er=vr+pe.displaySize[0]);let kr=A.top*fe,Dr=A.bottom*fe;return F==="height"||F==="both"?(Rt=te[1]+kr-W[0],ur=te[1]+Dr+W[2]):(Rt=te[1]+(kr+Dr-pe.displaySize[1])/2,ur=Rt+pe.displaySize[1]),{image:pe,top:Rt,right:er,bottom:ur,left:vr,collisionPadding:Re}}let rb=255,v0=128,fm=rb*v0;function DC(R,A){let{expression:F}=A;if(F.kind==="constant")return{kind:"constant",layoutSize:F.evaluate(new rs(R+1))};if(F.kind==="source")return{kind:"source"};{let{zoomStops:W,interpolationType:te}=F,fe=0;for(;fepe.id),this.index=A.index,this.pixelRatio=A.pixelRatio,this.sourceLayerIndex=A.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ii([]),this.placementViewportMatrix=Ii([]);let F=this.layers[0]._unevaluatedLayout._values;this.textSizeData=DC(this.zoom,F["text-size"]),this.iconSizeData=DC(this.zoom,F["icon-size"]);let W=this.layers[0].layout,te=W.get("symbol-sort-key"),fe=W.get("symbol-z-order");this.canOverlap=hS(W,"text-overlap","text-allow-overlap")!=="never"||hS(W,"icon-overlap","icon-allow-overlap")!=="never"||W.get("text-ignore-placement")||W.get("icon-ignore-placement"),this.sortFeaturesByKey=fe!=="viewport-y"&&!te.isConstant(),this.sortFeaturesByY=(fe==="viewport-y"||fe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,W.get("symbol-placement")==="point"&&(this.writingModes=W.get("text-writing-mode").map(pe=>i.ah[pe])),this.stateDependentLayerIds=this.layers.filter(pe=>pe.isStateDependent()).map(pe=>pe.id),this.sourceID=A.sourceID}createArrays(){this.text=new pS(new Ms(this.layers,this.zoom,A=>/^text/.test(A))),this.icon=new pS(new Ms(this.layers,this.zoom,A=>/^icon/.test(A))),this.glyphOffsetArray=new Co,this.lineVertexArray=new Qa,this.symbolInstances=new $a,this.textAnchorOffsets=new Bo}calculateGlyphDependencies(A,F,W,te,fe){for(let pe=0;pe0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),Rt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,er=fe.get("symbol-sort-key");if(this.features=[],!ft&&!Rt)return;let ur=F.iconDependencies,vr=F.glyphDependencies,kr=F.availableImages,Dr=new rs(this.zoom);for(let{feature:li,id:pi,index:vn,sourceLayerIndex:zi}of A){let ln=te._featureFilter.needGeometry,Tn=Sl(li,ln);if(!te._featureFilter.filter(Dr,Tn,W))continue;let pa,ro;if(ln||(Tn.geometry=$s(li)),ft){let Xa=te.getValueAndResolveTokens("text-field",Tn,W,kr),la=ti.factory(Xa),Mo=this.hasRTLText=this.hasRTLText||vS(la);(!Mo||ys.getRTLTextPluginStatus()==="unavailable"||Mo&&ys.isParsed())&&(pa=sm(la,te,Tn))}if(Rt){let Xa=te.getValueAndResolveTokens("icon-image",Tn,W,kr);ro=Xa instanceof en?Xa:en.fromString(Xa)}if(!pa&&!ro)continue;let Vo=this.sortFeaturesByKey?er.evaluate(Tn,{},W):void 0;if(this.features.push({id:pi,text:pa,icon:ro,index:vn,sourceLayerIndex:zi,geometry:Tn.geometry,properties:li.properties,type:tq[li.type],sortKey:Vo}),ro&&(ur[ro.name]=!0),pa){let Xa=pe.evaluate(Tn,{},W).join(","),la=fe.get("text-rotation-alignment")!=="viewport"&&fe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Mo of pa.sections)if(Mo.image)ur[Mo.image.name]=!0;else{let fo=Ka(pa.toString()),lo=Mo.fontStack||Xa,Wn=vr[lo]=vr[lo]||{};this.calculateGlyphDependencies(Mo.text,Wn,la,this.allowVerticalPlacement,fo)}}}fe.get("symbol-placement")==="line"&&(this.features=function(li){let pi={},vn={},zi=[],ln=0;function Tn(Xa){zi.push(li[Xa]),ln++}function pa(Xa,la,Mo){let fo=vn[Xa];return delete vn[Xa],vn[la]=fo,zi[fo].geometry[0].pop(),zi[fo].geometry[0]=zi[fo].geometry[0].concat(Mo[0]),fo}function ro(Xa,la,Mo){let fo=pi[la];return delete pi[la],pi[Xa]=fo,zi[fo].geometry[0].shift(),zi[fo].geometry[0]=Mo[0].concat(zi[fo].geometry[0]),fo}function Vo(Xa,la,Mo){let fo=Mo?la[0][la[0].length-1]:la[0][0];return`${Xa}:${fo.x}:${fo.y}`}for(let Xa=0;XaXa.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((li,pi)=>li.sortKey-pi.sortKey)}update(A,F,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(A,F,this.layers,W),this.icon.programConfigurations.updatePaintArrays(A,F,this.layers,W))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(A){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(A),this.iconCollisionBox.upload(A)),this.text.upload(A,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(A,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(A,F){let W=this.lineVertexArray.length;if(A.segment!==void 0){let te=A.dist(F[A.segment+1]),fe=A.dist(F[A.segment]),pe={};for(let Re=A.segment+1;Re=0;Re--)pe[Re]={x:F[Re].x,y:F[Re].y,tileUnitDistanceFromAnchor:fe},Re>0&&(fe+=F[Re-1].dist(F[Re]));for(let Re=0;Re0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(A,F){let W=A.placedSymbolArray.get(F),te=W.vertexStartIndex+4*W.numGlyphs;for(let fe=W.vertexStartIndex;fete[Re]-te[Ke]||fe[Ke]-fe[Re]),pe}addToSortKeyRanges(A,F){let W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===F?W.symbolInstanceEnd=A+1:this.sortKeyRanges.push({sortKey:F,symbolInstanceStart:A,symbolInstanceEnd:A+1})}sortFeatures(A){if(this.sortFeaturesByY&&this.sortedAngle!==A&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(A),this.sortedAngle=A,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let F of this.symbolInstanceIndexes){let W=this.symbolInstances.get(F);this.featureSortOrder.push(W.featureIndex),[W.rightJustifiedTextSymbolIndex,W.centerJustifiedTextSymbolIndex,W.leftJustifiedTextSymbolIndex].forEach((te,fe,pe)=>{te>=0&&pe.indexOf(te)===fe&&this.addIndicesForPlacedSymbol(this.text,te)}),W.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,W.verticalPlacedTextSymbolIndex),W.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.placedIconSymbolIndex),W.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Tf,ib;Fi("SymbolBucket",R1,{omit:["layers","collisionBoxArray","features","compareText"]}),R1.MAX_GLYPHS=65535,R1.addDynamicAttributes=dS;var Xw={get paint(){return ib=ib||new ue({"icon-opacity":new oo(ce.paint_symbol["icon-opacity"]),"icon-color":new oo(ce.paint_symbol["icon-color"]),"icon-halo-color":new oo(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new oo(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new oo(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new Va(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Va(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new oo(ce.paint_symbol["text-opacity"]),"text-color":new oo(ce.paint_symbol["text-color"],{runtimeType:jt,getOverride:R=>R.textColor,hasOverride:R=>!!R.textColor}),"text-halo-color":new oo(ce.paint_symbol["text-halo-color"]),"text-halo-width":new oo(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new oo(ce.paint_symbol["text-halo-blur"]),"text-translate":new Va(ce.paint_symbol["text-translate"]),"text-translate-anchor":new Va(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Tf=Tf||new ue({"symbol-placement":new Va(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Va(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Va(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new oo(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Va(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Va(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Va(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Va(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Va(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Va(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new oo(ce.layout_symbol["icon-size"]),"icon-text-fit":new Va(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Va(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new oo(ce.layout_symbol["icon-image"]),"icon-rotate":new oo(ce.layout_symbol["icon-rotate"]),"icon-padding":new oo(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new Va(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new oo(ce.layout_symbol["icon-offset"]),"icon-anchor":new oo(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Va(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Va(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Va(ce.layout_symbol["text-rotation-alignment"]),"text-field":new oo(ce.layout_symbol["text-field"]),"text-font":new oo(ce.layout_symbol["text-font"]),"text-size":new oo(ce.layout_symbol["text-size"]),"text-max-width":new oo(ce.layout_symbol["text-max-width"]),"text-line-height":new Va(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new oo(ce.layout_symbol["text-letter-spacing"]),"text-justify":new oo(ce.layout_symbol["text-justify"]),"text-radial-offset":new oo(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Va(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new oo(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new oo(ce.layout_symbol["text-anchor"]),"text-max-angle":new Va(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Va(ce.layout_symbol["text-writing-mode"]),"text-rotate":new oo(ce.layout_symbol["text-rotate"]),"text-padding":new Va(ce.layout_symbol["text-padding"]),"text-keep-upright":new Va(ce.layout_symbol["text-keep-upright"]),"text-transform":new oo(ce.layout_symbol["text-transform"]),"text-offset":new oo(ce.layout_symbol["text-offset"]),"text-allow-overlap":new Va(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new Va(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new Va(ce.layout_symbol["text-ignore-placement"]),"text-optional":new Va(ce.layout_symbol["text-optional"])})}};class nb{constructor(A){if(A.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=A.property.overrides?A.property.overrides.runtimeType:Tt,this.defaultValue=A}evaluate(A){if(A.formattedSection){let F=this.defaultValue.property.overrides;if(F&&F.hasOverride(A.formattedSection))return F.getOverride(A.formattedSection)}return A.feature&&A.featureState?this.defaultValue.evaluate(A.feature,A.featureState):this.defaultValue.property.specification.default}eachChild(A){this.defaultValue.isConstant()||A(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Fi("FormatSectionOverride",nb,{omit:["defaultValue"]});class my extends B{constructor(A){super(A,Xw)}recalculate(A,F){if(super.recalculate(A,F),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let W=this.layout.get("text-writing-mode");if(W){let te=[];for(let fe of W)te.indexOf(fe)<0&&te.push(fe);this.layout._values["text-writing-mode"]=te}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(A,F,W,te){let fe=this.layout.get(A).evaluate(F,{},W,te),pe=this._unevaluatedLayout._values[A];return pe.isDataDriven()||Dc(pe.value)||!fe?fe:function(Re,Ke){return Ke.replace(/{([^{}]+)}/g,(ft,Rt)=>Re&&Rt in Re?String(Re[Rt]):"")}(F.properties,fe)}createBucket(A){return new R1(A)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let A of Xw.paint.overridableProperties){if(!my.hasPaintOverride(this.layout,A))continue;let F=this.paint.get(A),W=new nb(F),te=new Eu(W,F.property.specification),fe=null;fe=F.value.kind==="constant"||F.value.kind==="source"?new bc("source",te):new hu("composite",te,F.value.zoomStops),this.paint._values[A]=new xu(F.property,fe,F.parameters)}}_handleOverridablePaintPropertyUpdate(A,F,W){return!(!this.layout||F.isDataDriven()||W.isDataDriven())&&my.hasPaintOverride(this.layout,A)}static hasPaintOverride(A,F){let W=A.get("text-field"),te=Xw.paint.properties[F],fe=!1,pe=Re=>{for(let Ke of Re)if(te.overrides&&te.overrides.hasOverride(Ke))return void(fe=!0)};if(W.value.kind==="constant"&&W.value.value instanceof ti)pe(W.value.value.sections);else if(W.value.kind==="source"){let Re=ft=>{fe||(ft instanceof ua&&Mn(ft.value)===ei?pe(ft.value.sections):ft instanceof Yl?pe(ft.sections):ft.eachChild(Re))},Ke=W.value;Ke._styleExpression&&Re(Ke._styleExpression.expression)}return fe}}let FC;var ab={get paint(){return FC=FC||new ue({"background-color":new Va(ce.paint_background["background-color"]),"background-pattern":new hc(ce.paint_background["background-pattern"]),"background-opacity":new Va(ce.paint_background["background-opacity"])})}};class iq extends B{constructor(A){super(A,ab)}}let gS;var zC={get paint(){return gS=gS||new ue({"raster-opacity":new Va(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Va(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Va(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Va(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Va(ce.paint_raster["raster-saturation"]),"raster-contrast":new Va(ce.paint_raster["raster-contrast"]),"raster-resampling":new Va(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Va(ce.paint_raster["raster-fade-duration"])})}};class ob extends B{constructor(A){super(A,zC)}}class mS extends B{constructor(A){super(A,{}),this.onAdd=F=>{this.implementation.onAdd&&this.implementation.onAdd(F,F.painter.context.gl)},this.onRemove=F=>{this.implementation.onRemove&&this.implementation.onRemove(F,F.painter.context.gl)},this.implementation=A}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class yS{constructor(A){this._methodToThrottle=A,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let _S=63710088e-1;class pg{constructor(A,F){if(isNaN(A)||isNaN(F))throw new Error(`Invalid LngLat object: (${A}, ${F})`);if(this.lng=+A,this.lat=+F,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new pg(T(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(A){let F=Math.PI/180,W=this.lat*F,te=A.lat*F,fe=Math.sin(W)*Math.sin(te)+Math.cos(W)*Math.cos(te)*Math.cos((A.lng-this.lng)*F);return _S*Math.acos(Math.min(fe,1))}static convert(A){if(A instanceof pg)return A;if(Array.isArray(A)&&(A.length===2||A.length===3))return new pg(Number(A[0]),Number(A[1]));if(!Array.isArray(A)&&typeof A=="object"&&A!==null)return new pg(Number("lng"in A?A.lng:A.lon),Number(A.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let D1=2*Math.PI*_S;function qC(R){return D1*Math.cos(R*Math.PI/180)}function Zw(R){return(180+R)/360}function OC(R){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R*Math.PI/360)))/360}function Yw(R,A){return R/qC(A)}function sb(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class lb{constructor(A,F,W=0){this.x=+A,this.y=+F,this.z=+W}static fromLngLat(A,F=0){let W=pg.convert(A);return new lb(Zw(W.lng),OC(W.lat),Yw(F,W.lat))}toLngLat(){return new pg(360*this.x-180,sb(this.y))}toAltitude(){return this.z*qC(sb(this.y))}meterInMercatorCoordinateUnits(){return 1/D1*(A=sb(this.y),1/Math.cos(A*Math.PI/180));var A}}function yp(R,A,F){var W=2*Math.PI*6378137/256/Math.pow(2,F);return[R*W-2*Math.PI*6378137/2,A*W-2*Math.PI*6378137/2]}class xS{constructor(A,F,W){if(!function(te,fe,pe){return!(te<0||te>25||pe<0||pe>=Math.pow(2,te)||fe<0||fe>=Math.pow(2,te))}(A,F,W))throw new Error(`x=${F}, y=${W}, z=${A} outside of bounds. 0<=x<${Math.pow(2,A)}, 0<=y<${Math.pow(2,A)} 0<=z<=25 `);this.z=A,this.x=F,this.y=W,this.key=ub(0,A,A,F,W)}equals(A){return this.z===A.z&&this.x===A.x&&this.y===A.y}url(A,F,W){let te=(pe=this.y,Re=this.z,Ke=yp(256*(fe=this.x),256*(pe=Math.pow(2,Re)-pe-1),Re),ft=yp(256*(fe+1),256*(pe+1),Re),Ke[0]+","+Ke[1]+","+ft[0]+","+ft[1]);var fe,pe,Re,Ke,ft;let Rt=function(er,ur,vr){let kr,Dr="";for(let li=er;li>0;li--)kr=1<1?"@2x":"").replace(/{quadkey}/g,Rt).replace(/{bbox-epsg-3857}/g,te)}isChildOf(A){let F=this.z-A.z;return F>0&&A.x===this.x>>F&&A.y===this.y>>F}getTilePoint(A){let F=Math.pow(2,this.z);return new u((A.x*F-this.x)*ja,(A.y*F-this.y)*ja)}toString(){return`${this.z}/${this.x}/${this.y}`}}class BC{constructor(A,F){this.wrap=A,this.canonical=F,this.key=ub(A,F.z,F.z,F.x,F.y)}}class $v{constructor(A,F,W,te,fe){if(A= z; overscaledZ = ${A}; z = ${W}`);this.overscaledZ=A,this.wrap=F,this.canonical=new xS(W,+te,+fe),this.key=ub(F,A,W,te,fe)}clone(){return new $v(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(A){return this.overscaledZ===A.overscaledZ&&this.wrap===A.wrap&&this.canonical.equals(A.canonical)}scaledTo(A){if(A>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${A}; overscaledZ = ${this.overscaledZ}`);let F=this.canonical.z-A;return A>this.canonical.z?new $v(A,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $v(A,this.wrap,A,this.canonical.x>>F,this.canonical.y>>F)}calculateScaledKey(A,F){if(A>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${A}; overscaledZ = ${this.overscaledZ}`);let W=this.canonical.z-A;return A>this.canonical.z?ub(this.wrap*+F,A,this.canonical.z,this.canonical.x,this.canonical.y):ub(this.wrap*+F,A,A,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(A){if(A.wrap!==this.wrap)return!1;let F=this.canonical.z-A.canonical.z;return A.overscaledZ===0||A.overscaledZ>F&&A.canonical.y===this.canonical.y>>F}children(A){if(this.overscaledZ>=A)return[new $v(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let F=this.canonical.z+1,W=2*this.canonical.x,te=2*this.canonical.y;return[new $v(F,this.wrap,F,W,te),new $v(F,this.wrap,F,W+1,te),new $v(F,this.wrap,F,W,te+1),new $v(F,this.wrap,F,W+1,te+1)]}isLessThan(A){return this.wrapA.wrap)&&(this.overscaledZA.overscaledZ)&&(this.canonical.xA.canonical.x)&&this.canonical.ythis.max&&(this.max=er),er=this.dim+1||F<-1||F>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(F+1)*this.stride+(A+1)}unpack(A,F,W){return A*this.redFactor+F*this.greenFactor+W*this.blueFactor-this.baseShift}getPixels(){return new Ki({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(A,F,W){if(this.dim!==A.dim)throw new Error("dem dimension mismatch");let te=F*this.dim,fe=F*this.dim+this.dim,pe=W*this.dim,Re=W*this.dim+this.dim;switch(F){case-1:te=fe-1;break;case 1:fe=te+1}switch(W){case-1:pe=Re-1;break;case 1:Re=pe+1}let Ke=-F*this.dim,ft=-W*this.dim;for(let Rt=pe;Rt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${A} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[A]}}class bS{constructor(A,F,W,te,fe){this.type="Feature",this._vectorTileFeature=A,A._z=F,A._x=W,A._y=te,this.properties=A.properties,this.id=fe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(A){this._geometry=A}toJSON(){let A={geometry:this.geometry};for(let F in this)F!=="_geometry"&&F!=="_vectorTileFeature"&&(A[F]=this[F]);return A}}class yy{constructor(A,F){this.tileID=A,this.x=A.canonical.x,this.y=A.canonical.y,this.z=A.canonical.z,this.grid=new $i(ja,16,0),this.grid3D=new $i(ja,16,0),this.featureIndexArray=new Ts,this.promoteId=F}insert(A,F,W,te,fe,pe){let Re=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,te,fe);let Ke=pe?this.grid3D:this.grid;for(let ft=0;ft=0&&er[3]>=0&&Ke.insert(Re,er[0],er[1],er[2],er[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new _r.VectorTile(new uS(this.rawTileData)).layers,this.sourceLayerCoder=new UC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(A,F,W,te){this.loadVTLayers();let fe=A.params||{},pe=ja/A.tileSize/A.scale,Re=Fc(fe.filter),Ke=A.queryGeometry,ft=A.queryPadding*pe,Rt=GC(Ke),er=this.grid.query(Rt.minX-ft,Rt.minY-ft,Rt.maxX+ft,Rt.maxY+ft),ur=GC(A.cameraQueryGeometry),vr=this.grid3D.query(ur.minX-ft,ur.minY-ft,ur.maxX+ft,ur.maxY+ft,(li,pi,vn,zi)=>function(ln,Tn,pa,ro,Vo){for(let la of ln)if(Tn<=la.x&&pa<=la.y&&ro>=la.x&&Vo>=la.y)return!0;let Xa=[new u(Tn,pa),new u(Tn,Vo),new u(ro,Vo),new u(ro,pa)];if(ln.length>2){for(let la of Xa)if(Ni(ln,la))return!0}for(let la=0;la(zi||(zi=$s(ln)),Tn.queryIntersectsFeature(Ke,ln,pa,zi,this.z,A.transform,pe,A.pixelPosMatrix)))}return kr}loadMatchingFeature(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er){let ur=this.bucketLayerIDs[F];if(pe&&!function(li,pi){for(let vn=0;vn=0)return!0;return!1}(pe,ur))return;let vr=this.sourceLayerCoder.decode(W),kr=this.vtLayers[vr].feature(te);if(fe.needGeometry){let li=Sl(kr,!0);if(!fe.filter(new rs(this.tileID.overscaledZ),li,this.tileID.canonical))return}else if(!fe.filter(new rs(this.tileID.overscaledZ),kr))return;let Dr=this.getId(kr,vr);for(let li=0;li{let Re=A instanceof Ac?A.get(pe):null;return Re&&Re.evaluate?Re.evaluate(F,W,te):Re})}function GC(R){let A=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)A=Math.min(A,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return{minX:A,minY:F,maxX:W,maxY:te}}function nq(R,A){return A-R}function HC(R,A,F,W,te){let fe=[];for(let pe=0;pe=W&&er.x>=W||(Rt.x>=W?Rt=new u(W,Rt.y+(W-Rt.x)/(er.x-Rt.x)*(er.y-Rt.y))._round():er.x>=W&&(er=new u(W,Rt.y+(W-Rt.x)/(er.x-Rt.x)*(er.y-Rt.y))._round()),Rt.y>=te&&er.y>=te||(Rt.y>=te?Rt=new u(Rt.x+(te-Rt.y)/(er.y-Rt.y)*(er.x-Rt.x),te)._round():er.y>=te&&(er=new u(Rt.x+(te-Rt.y)/(er.y-Rt.y)*(er.x-Rt.x),te)._round()),Ke&&Rt.equals(Ke[Ke.length-1])||(Ke=[Rt],fe.push(Ke)),Ke.push(er)))))}}return fe}Fi("FeatureIndex",yy,{omit:["rawTileData","sourceLayerCoder"]});class gg extends u{constructor(A,F,W,te){super(A,F),this.angle=W,te!==void 0&&(this.segment=te)}clone(){return new gg(this.x,this.y,this.angle,this.segment)}}function wS(R,A,F,W,te){if(A.segment===void 0||F===0)return!0;let fe=A,pe=A.segment+1,Re=0;for(;Re>-F/2;){if(pe--,pe<0)return!1;Re-=R[pe].dist(fe),fe=R[pe]}Re+=R[pe].dist(R[pe+1]),pe++;let Ke=[],ft=0;for(;ReW;)ft-=Ke.shift().angleDelta;if(ft>te)return!1;pe++,Re+=Rt.dist(er)}return!0}function jC(R){let A=0;for(let F=0;Fft){let kr=(ft-Ke)/vr,Dr=Lo.number(er.x,ur.x,kr),li=Lo.number(er.y,ur.y,kr),pi=new gg(Dr,li,ur.angleTo(er),Rt);return pi._round(),!pe||wS(R,pi,Re,pe,A)?pi:void 0}Ke+=vr}}function oq(R,A,F,W,te,fe,pe,Re,Ke){let ft=WC(W,fe,pe),Rt=XC(W,te),er=Rt*pe,ur=R[0].x===0||R[0].x===Ke||R[0].y===0||R[0].y===Ke;return A-er=0&&ln=0&&Tn=0&&ur+ft<=Rt){let pa=new gg(ln,Tn,vn,kr);pa._round(),W&&!wS(R,pa,fe,W,te)||vr.push(pa)}}er+=pi}return Re||vr.length||pe||(vr=ZC(R,er/2,F,W,te,fe,pe,!0,Ke)),vr}Fi("Anchor",gg);let F1=Md;function YC(R,A,F,W){let te=[],fe=R.image,pe=fe.pixelRatio,Re=fe.paddedRect.w-2*F1,Ke=fe.paddedRect.h-2*F1,ft={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Rt=fe.stretchX||[[0,Re]],er=fe.stretchY||[[0,Ke]],ur=(Wn,Ro)=>Wn+Ro[1]-Ro[0],vr=Rt.reduce(ur,0),kr=er.reduce(ur,0),Dr=Re-vr,li=Ke-kr,pi=0,vn=vr,zi=0,ln=kr,Tn=0,pa=Dr,ro=0,Vo=li;if(fe.content&&W){let Wn=fe.content,Ro=Wn[2]-Wn[0],uo=Wn[3]-Wn[1];(fe.textFitWidth||fe.textFitHeight)&&(ft=IC(R)),pi=mg(Rt,0,Wn[0]),zi=mg(er,0,Wn[1]),vn=mg(Rt,Wn[0],Wn[2]),ln=mg(er,Wn[1],Wn[3]),Tn=Wn[0]-pi,ro=Wn[1]-zi,pa=Ro-vn,Vo=uo-ln}let Xa=ft.x1,la=ft.y1,Mo=ft.x2-Xa,fo=ft.y2-la,lo=(Wn,Ro,uo,$o)=>{let Ju=Kw(Wn.stretch-pi,vn,Mo,Xa),Ou=z1(Wn.fixed-Tn,pa,Wn.stretch,vr),kh=Kw(Ro.stretch-zi,ln,fo,la),Qv=z1(Ro.fixed-ro,Vo,Ro.stretch,kr),ud=Kw(uo.stretch-pi,vn,Mo,Xa),Ch=z1(uo.fixed-Tn,pa,uo.stretch,vr),Gd=Kw($o.stretch-zi,ln,fo,la),Hd=z1($o.fixed-ro,Vo,$o.stretch,kr),jd=new u(Ju,kh),Af=new u(ud,kh),Lh=new u(ud,Gd),Ed=new u(Ju,Gd),cd=new u(Ou/pe,Qv/pe),Yh=new u(Ch/pe,Hd/pe),Df=A*Math.PI/180;if(Df){let ru=Math.sin(Df),pc=Math.cos(Df),$u=[pc,-ru,ru,pc];jd._matMult($u),Af._matMult($u),Ed._matMult($u),Lh._matMult($u)}let Fv=Wn.stretch+Wn.fixed,uv=Ro.stretch+Ro.fixed;return{tl:jd,tr:Af,bl:Ed,br:Lh,tex:{x:fe.paddedRect.x+F1+Fv,y:fe.paddedRect.y+F1+uv,w:uo.stretch+uo.fixed-Fv,h:$o.stretch+$o.fixed-uv},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:cd,pixelOffsetBR:Yh,minFontScaleX:pa/pe/Mo,minFontScaleY:Vo/pe/fo,isSDF:F}};if(W&&(fe.stretchX||fe.stretchY)){let Wn=KC(Rt,Dr,vr),Ro=KC(er,li,kr);for(let uo=0;uo0&&(Dr=Math.max(10,Dr),this.circleDiameter=Dr)}else{let ur=!((er=pe.image)===null||er===void 0)&&er.content&&(pe.image.textFitWidth||pe.image.textFitHeight)?IC(pe):{x1:pe.left,y1:pe.top,x2:pe.right,y2:pe.bottom};ur.y1=ur.y1*Re-Ke[0],ur.y2=ur.y2*Re+Ke[2],ur.x1=ur.x1*Re-Ke[3],ur.x2=ur.x2*Re+Ke[1];let vr=pe.collisionPadding;if(vr&&(ur.x1-=vr[0]*Re,ur.y1-=vr[1]*Re,ur.x2+=vr[2]*Re,ur.y2+=vr[3]*Re),Rt){let kr=new u(ur.x1,ur.y1),Dr=new u(ur.x2,ur.y1),li=new u(ur.x1,ur.y2),pi=new u(ur.x2,ur.y2),vn=Rt*Math.PI/180;kr._rotate(vn),Dr._rotate(vn),li._rotate(vn),pi._rotate(vn),ur.x1=Math.min(kr.x,Dr.x,li.x,pi.x),ur.x2=Math.max(kr.x,Dr.x,li.x,pi.x),ur.y1=Math.min(kr.y,Dr.y,li.y,pi.y),ur.y2=Math.max(kr.y,Dr.y,li.y,pi.y)}A.emplaceBack(F.x,F.y,ur.x1,ur.y1,ur.x2,ur.y2,W,te,fe)}this.boxEndIndex=A.length}}class Vp{constructor(A=[],F=(W,te)=>Wte?1:0){if(this.data=A,this.length=this.data.length,this.compare=F,this.length>0)for(let W=(this.length>>1)-1;W>=0;W--)this._down(W)}push(A){this.data.push(A),this._up(this.length++)}pop(){if(this.length===0)return;let A=this.data[0],F=this.data.pop();return--this.length>0&&(this.data[0]=F,this._down(0)),A}peek(){return this.data[0]}_up(A){let{data:F,compare:W}=this,te=F[A];for(;A>0;){let fe=A-1>>1,pe=F[fe];if(W(te,pe)>=0)break;F[A]=pe,A=fe}F[A]=te}_down(A){let{data:F,compare:W}=this,te=this.length>>1,fe=F[A];for(;A=0)break;F[A]=F[pe],A=pe}F[A]=fe}}function sq(R,A=1,F=!1){let W=1/0,te=1/0,fe=-1/0,pe=-1/0,Re=R[0];for(let vr=0;vrfe)&&(fe=kr.x),(!vr||kr.y>pe)&&(pe=kr.y)}let Ke=Math.min(fe-W,pe-te),ft=Ke/2,Rt=new Vp([],lq);if(Ke===0)return new u(W,te);for(let vr=W;vrer.d||!er.d)&&(er=vr,F&&console.log("found best %d after %d probes",Math.round(1e4*vr.d)/1e4,ur)),vr.max-er.d<=A||(ft=vr.h/2,Rt.push(new q1(vr.p.x-ft,vr.p.y-ft,ft,R)),Rt.push(new q1(vr.p.x+ft,vr.p.y-ft,ft,R)),Rt.push(new q1(vr.p.x-ft,vr.p.y+ft,ft,R)),Rt.push(new q1(vr.p.x+ft,vr.p.y+ft,ft,R)),ur+=4)}return F&&(console.log(`num probes: ${ur}`),console.log(`best distance: ${er.d}`)),er.p}function lq(R,A){return A.max-R.max}function q1(R,A,F,W){this.p=new u(R,A),this.h=F,this.d=function(te,fe){let pe=!1,Re=1/0;for(let Ke=0;Kete.y!=kr.y>te.y&&te.x<(kr.x-vr.x)*(te.y-vr.y)/(kr.y-vr.y)+vr.x&&(pe=!pe),Re=Math.min(Re,Nr(te,vr,kr))}}return(pe?1:-1)*Math.sqrt(Re)}(this.p,W),this.max=this.d+this.h*Math.SQRT2}var ld;i.aq=void 0,(ld=i.aq||(i.aq={}))[ld.center=1]="center",ld[ld.left=2]="left",ld[ld.right=3]="right",ld[ld.top=4]="top",ld[ld.bottom=5]="bottom",ld[ld["top-left"]=6]="top-left",ld[ld["top-right"]=7]="top-right",ld[ld["bottom-left"]=8]="bottom-left",ld[ld["bottom-right"]=9]="bottom-right";let vm=7,_y=Number.POSITIVE_INFINITY;function TS(R,A){return A[1]!==_y?function(F,W,te){let fe=0,pe=0;switch(W=Math.abs(W),te=Math.abs(te),F){case"top-right":case"top-left":case"top":pe=te-vm;break;case"bottom-right":case"bottom-left":case"bottom":pe=-te+vm}switch(F){case"top-right":case"bottom-right":case"right":fe=-W;break;case"top-left":case"bottom-left":case"left":fe=W}return[fe,pe]}(R,A[0],A[1]):function(F,W){let te=0,fe=0;W<0&&(W=0);let pe=W/Math.SQRT2;switch(F){case"top-right":case"top-left":fe=pe-vm;break;case"bottom-right":case"bottom-left":fe=-pe+vm;break;case"bottom":fe=-W+vm;break;case"top":fe=W-vm}switch(F){case"top-right":case"bottom-right":te=-pe;break;case"top-left":case"bottom-left":te=pe;break;case"left":te=W;break;case"right":te=-W}return[te,fe]}(R,A[0])}function JC(R,A,F){var W;let te=R.layout,fe=(W=te.get("text-variable-anchor-offset"))===null||W===void 0?void 0:W.evaluate(A,{},F);if(fe){let Re=fe.values,Ke=[];for(let ft=0;ftur*tu);Rt.startsWith("top")?er[1]-=vm:Rt.startsWith("bottom")&&(er[1]+=vm),Ke[ft+1]=er}return new Zi(Ke)}let pe=te.get("text-variable-anchor");if(pe){let Re;Re=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[te.get("text-radial-offset").evaluate(A,{},F)*tu,_y]:te.get("text-offset").evaluate(A,{},F).map(ft=>ft*tu);let Ke=[];for(let ft of pe)Ke.push(ft,TS(ft,Re));return new Zi(Ke)}return null}function AS(R){switch(R){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function uq(R,A,F,W,te,fe,pe,Re,Ke,ft,Rt){let er=fe.textMaxSize.evaluate(A,{});er===void 0&&(er=pe);let ur=R.layers[0].layout,vr=ur.get("icon-offset").evaluate(A,{},Rt),kr=QC(F.horizontal),Dr=pe/24,li=R.tilePixelRatio*Dr,pi=R.tilePixelRatio*er/24,vn=R.tilePixelRatio*Re,zi=R.tilePixelRatio*ur.get("symbol-spacing"),ln=ur.get("text-padding")*R.tilePixelRatio,Tn=function(Wn,Ro,uo,$o=1){let Ju=Wn.get("icon-padding").evaluate(Ro,{},uo),Ou=Ju&&Ju.values;return[Ou[0]*$o,Ou[1]*$o,Ou[2]*$o,Ou[3]*$o]}(ur,A,Rt,R.tilePixelRatio),pa=ur.get("text-max-angle")/180*Math.PI,ro=ur.get("text-rotation-alignment")!=="viewport"&&ur.get("symbol-placement")!=="point",Vo=ur.get("icon-rotation-alignment")==="map"&&ur.get("symbol-placement")!=="point",Xa=ur.get("symbol-placement"),la=zi/2,Mo=ur.get("icon-text-fit"),fo;W&&Mo!=="none"&&(R.allowVerticalPlacement&&F.vertical&&(fo=RC(W,F.vertical,Mo,ur.get("icon-text-fit-padding"),vr,Dr)),kr&&(W=RC(W,kr,Mo,ur.get("icon-text-fit-padding"),vr,Dr)));let lo=(Wn,Ro)=>{Ro.x<0||Ro.x>=ja||Ro.y<0||Ro.y>=ja||function(uo,$o,Ju,Ou,kh,Qv,ud,Ch,Gd,Hd,jd,Af,Lh,Ed,cd,Yh,Df,Fv,uv,ru,pc,$u,zv,hf,O1){let p0=uo.addToLineVertexArray($o,Ju),Gp,ep,Gc,Yf,tp=0,yg=0,cv=0,B1=0,CS=-1,e3=-1,g0={},xy=xi("");if(uo.allowVerticalPlacement&&Ou.vertical){let kd=Ch.layout.get("text-rotate").evaluate(pc,{},hf)+90;Gc=new dm(Gd,$o,Hd,jd,Af,Ou.vertical,Lh,Ed,cd,kd),ud&&(Yf=new dm(Gd,$o,Hd,jd,Af,ud,Df,Fv,cd,kd))}if(kh){let kd=Ch.layout.get("icon-rotate").evaluate(pc,{}),rp=Ch.layout.get("icon-text-fit")!=="none",pm=YC(kh,kd,zv,rp),Wd=ud?YC(ud,kd,zv,rp):void 0;ep=new dm(Gd,$o,Hd,jd,Af,kh,Df,Fv,!1,kd),tp=4*pm.length;let Cd=uo.iconSizeData,xp=null;Cd.kind==="source"?(xp=[v0*Ch.layout.get("icon-size").evaluate(pc,{})],xp[0]>fm&&E(`${uo.layerIds[0]}: Value for "icon-size" is >= ${rb}. Reduce your "icon-size".`)):Cd.kind==="composite"&&(xp=[v0*$u.compositeIconSizes[0].evaluate(pc,{},hf),v0*$u.compositeIconSizes[1].evaluate(pc,{},hf)],(xp[0]>fm||xp[1]>fm)&&E(`${uo.layerIds[0]}: Value for "icon-size" is >= ${rb}. Reduce your "icon-size".`)),uo.addSymbols(uo.icon,pm,xp,ru,uv,pc,i.ah.none,$o,p0.lineStartIndex,p0.lineLength,-1,hf),CS=uo.icon.placedSymbolArray.length-1,Wd&&(yg=4*Wd.length,uo.addSymbols(uo.icon,Wd,xp,ru,uv,pc,i.ah.vertical,$o,p0.lineStartIndex,p0.lineLength,-1,hf),e3=uo.icon.placedSymbolArray.length-1)}let Kh=Object.keys(Ou.horizontal);for(let kd of Kh){let rp=Ou.horizontal[kd];if(!Gp){xy=xi(rp.text);let Wd=Ch.layout.get("text-rotate").evaluate(pc,{},hf);Gp=new dm(Gd,$o,Hd,jd,Af,rp,Lh,Ed,cd,Wd)}let pm=rp.positionedLines.length===1;if(cv+=$C(uo,$o,rp,Qv,Ch,cd,pc,Yh,p0,Ou.vertical?i.ah.horizontal:i.ah.horizontalOnly,pm?Kh:[kd],g0,CS,$u,hf),pm)break}Ou.vertical&&(B1+=$C(uo,$o,Ou.vertical,Qv,Ch,cd,pc,Yh,p0,i.ah.vertical,["vertical"],g0,e3,$u,hf));let hq=Gp?Gp.boxStartIndex:uo.collisionBoxArray.length,t3=Gp?Gp.boxEndIndex:uo.collisionBoxArray.length,m0=Gc?Gc.boxStartIndex:uo.collisionBoxArray.length,fv=Gc?Gc.boxEndIndex:uo.collisionBoxArray.length,i6=ep?ep.boxStartIndex:uo.collisionBoxArray.length,dq=ep?ep.boxEndIndex:uo.collisionBoxArray.length,n6=Yf?Yf.boxStartIndex:uo.collisionBoxArray.length,vq=Yf?Yf.boxEndIndex:uo.collisionBoxArray.length,_p=-1,hb=(kd,rp)=>kd&&kd.circleDiameter?Math.max(kd.circleDiameter,rp):rp;_p=hb(Gp,_p),_p=hb(Gc,_p),_p=hb(ep,_p),_p=hb(Yf,_p);let r3=_p>-1?1:0;r3&&(_p*=O1/tu),uo.glyphOffsetArray.length>=R1.MAX_GLYPHS&&E("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),pc.sortKey!==void 0&&uo.addToSortKeyRanges(uo.symbolInstances.length,pc.sortKey);let LS=JC(Ch,pc,hf),[pq,gq]=function(kd,rp){let pm=kd.length,Wd=rp==null?void 0:rp.values;if((Wd==null?void 0:Wd.length)>0)for(let Cd=0;Cd=0?g0.right:-1,g0.center>=0?g0.center:-1,g0.left>=0?g0.left:-1,g0.vertical||-1,CS,e3,xy,hq,t3,m0,fv,i6,dq,n6,vq,Hd,cv,B1,tp,yg,r3,0,Lh,_p,pq,gq)}(R,Ro,Wn,F,W,te,fo,R.layers[0],R.collisionBoxArray,A.index,A.sourceLayerIndex,R.index,li,[ln,ln,ln,ln],ro,Ke,vn,Tn,Vo,vr,A,fe,ft,Rt,pe)};if(Xa==="line")for(let Wn of HC(A.geometry,0,0,ja,ja)){let Ro=oq(Wn,zi,pa,F.vertical||kr,W,24,pi,R.overscaling,ja);for(let uo of Ro)kr&&cq(R,kr.text,la,uo)||lo(Wn,uo)}else if(Xa==="line-center"){for(let Wn of A.geometry)if(Wn.length>1){let Ro=aq(Wn,pa,F.vertical||kr,W,24,pi);Ro&&lo(Wn,Ro)}}else if(A.type==="Polygon")for(let Wn of Cf(A.geometry,0)){let Ro=sq(Wn,16);lo(Wn[0],new gg(Ro.x,Ro.y,0))}else if(A.type==="LineString")for(let Wn of A.geometry)lo(Wn,new gg(Wn[0].x,Wn[0].y,0));else if(A.type==="Point")for(let Wn of A.geometry)for(let Ro of Wn)lo([Ro],new gg(Ro.x,Ro.y,0))}function $C(R,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr){let Dr=function(vn,zi,ln,Tn,pa,ro,Vo,Xa){let la=Tn.layout.get("text-rotate").evaluate(ro,{})*Math.PI/180,Mo=[];for(let fo of zi.positionedLines)for(let lo of fo.positionedGlyphs){if(!lo.rect)continue;let Wn=lo.rect||{},Ro=kC+1,uo=!0,$o=1,Ju=0,Ou=(pa||Xa)&&lo.vertical,kh=lo.metrics.advance*lo.scale/2;if(Xa&&zi.verticalizable&&(Ju=fo.lineOffset/2-(lo.imageName?-(tu-lo.metrics.width*lo.scale)/2:(lo.scale-1)*tu)),lo.imageName){let ru=Vo[lo.imageName];uo=ru.sdf,$o=ru.pixelRatio,Ro=Md/$o}let Qv=pa?[lo.x+kh,lo.y]:[0,0],ud=pa?[0,0]:[lo.x+kh+ln[0],lo.y+ln[1]-Ju],Ch=[0,0];Ou&&(Ch=ud,ud=[0,0]);let Gd=lo.metrics.isDoubleResolution?2:1,Hd=(lo.metrics.left-Ro)*lo.scale-kh+ud[0],jd=(-lo.metrics.top-Ro)*lo.scale+ud[1],Af=Hd+Wn.w/Gd*lo.scale/$o,Lh=jd+Wn.h/Gd*lo.scale/$o,Ed=new u(Hd,jd),cd=new u(Af,jd),Yh=new u(Hd,Lh),Df=new u(Af,Lh);if(Ou){let ru=new u(-kh,kh-Eh),pc=-Math.PI/2,$u=tu/2-kh,zv=new u(5-Eh-$u,-(lo.imageName?$u:0)),hf=new u(...Ch);Ed._rotateAround(pc,ru)._add(zv)._add(hf),cd._rotateAround(pc,ru)._add(zv)._add(hf),Yh._rotateAround(pc,ru)._add(zv)._add(hf),Df._rotateAround(pc,ru)._add(zv)._add(hf)}if(la){let ru=Math.sin(la),pc=Math.cos(la),$u=[pc,-ru,ru,pc];Ed._matMult($u),cd._matMult($u),Yh._matMult($u),Df._matMult($u)}let Fv=new u(0,0),uv=new u(0,0);Mo.push({tl:Ed,tr:cd,bl:Yh,br:Df,tex:Wn,writingMode:zi.writingMode,glyphOffset:Qv,sectionIndex:lo.sectionIndex,isSDF:uo,pixelOffsetTL:Fv,pixelOffsetBR:uv,minFontScaleX:0,minFontScaleY:0})}return Mo}(0,F,Re,te,fe,pe,W,R.allowVerticalPlacement),li=R.textSizeData,pi=null;li.kind==="source"?(pi=[v0*te.layout.get("text-size").evaluate(pe,{})],pi[0]>fm&&E(`${R.layerIds[0]}: Value for "text-size" is >= ${rb}. Reduce your "text-size".`)):li.kind==="composite"&&(pi=[v0*vr.compositeTextSizes[0].evaluate(pe,{},kr),v0*vr.compositeTextSizes[1].evaluate(pe,{},kr)],(pi[0]>fm||pi[1]>fm)&&E(`${R.layerIds[0]}: Value for "text-size" is >= ${rb}. Reduce your "text-size".`)),R.addSymbols(R.text,Dr,pi,Re,fe,pe,ft,A,Ke.lineStartIndex,Ke.lineLength,ur,kr);for(let vn of Rt)er[vn]=R.text.placedSymbolArray.length-1;return 4*Dr.length}function QC(R){for(let A in R)return R[A];return null}function cq(R,A,F,W){let te=R.compareText;if(A in te){let fe=te[A];for(let pe=fe.length-1;pe>=0;pe--)if(W.dist(fe[pe])>4;if(te!==1)throw new Error(`Got v${te} data when expected v1.`);let fe=e6[15&W];if(!fe)throw new Error("Unrecognized array type.");let[pe]=new Uint16Array(A,2,1),[Re]=new Uint32Array(A,4,1);return new SS(Re,pe,fe,A)}constructor(A,F=64,W=Float64Array,te){if(isNaN(A)||A<0)throw new Error(`Unpexpected numItems value: ${A}.`);this.numItems=+A,this.nodeSize=Math.min(Math.max(+F,2),65535),this.ArrayType=W,this.IndexArrayType=A<65536?Uint16Array:Uint32Array;let fe=e6.indexOf(this.ArrayType),pe=2*A*this.ArrayType.BYTES_PER_ELEMENT,Re=A*this.IndexArrayType.BYTES_PER_ELEMENT,Ke=(8-Re%8)%8;if(fe<0)throw new Error(`Unexpected typed array class: ${W}.`);te&&te instanceof ArrayBuffer?(this.data=te,this.ids=new this.IndexArrayType(this.data,8,A),this.coords=new this.ArrayType(this.data,8+Re+Ke,2*A),this._pos=2*A,this._finished=!0):(this.data=new ArrayBuffer(8+pe+Re+Ke),this.ids=new this.IndexArrayType(this.data,8,A),this.coords=new this.ArrayType(this.data,8+Re+Ke,2*A),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+fe]),new Uint16Array(this.data,2,1)[0]=F,new Uint32Array(this.data,4,1)[0]=A)}add(A,F){let W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=A,this.coords[this._pos++]=F,W}finish(){let A=this._pos>>1;if(A!==this.numItems)throw new Error(`Added ${A} items when expected ${this.numItems}.`);return Jw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(A,F,W,te){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:pe,nodeSize:Re}=this,Ke=[0,fe.length-1,0],ft=[];for(;Ke.length;){let Rt=Ke.pop()||0,er=Ke.pop()||0,ur=Ke.pop()||0;if(er-ur<=Re){for(let li=ur;li<=er;li++){let pi=pe[2*li],vn=pe[2*li+1];pi>=A&&pi<=W&&vn>=F&&vn<=te&&ft.push(fe[li])}continue}let vr=ur+er>>1,kr=pe[2*vr],Dr=pe[2*vr+1];kr>=A&&kr<=W&&Dr>=F&&Dr<=te&&ft.push(fe[vr]),(Rt===0?A<=kr:F<=Dr)&&(Ke.push(ur),Ke.push(vr-1),Ke.push(1-Rt)),(Rt===0?W>=kr:te>=Dr)&&(Ke.push(vr+1),Ke.push(er),Ke.push(1-Rt))}return ft}within(A,F,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:te,coords:fe,nodeSize:pe}=this,Re=[0,te.length-1,0],Ke=[],ft=W*W;for(;Re.length;){let Rt=Re.pop()||0,er=Re.pop()||0,ur=Re.pop()||0;if(er-ur<=pe){for(let li=ur;li<=er;li++)r6(fe[2*li],fe[2*li+1],A,F)<=ft&&Ke.push(te[li]);continue}let vr=ur+er>>1,kr=fe[2*vr],Dr=fe[2*vr+1];r6(kr,Dr,A,F)<=ft&&Ke.push(te[vr]),(Rt===0?A-W<=kr:F-W<=Dr)&&(Re.push(ur),Re.push(vr-1),Re.push(1-Rt)),(Rt===0?A+W>=kr:F+W>=Dr)&&(Re.push(vr+1),Re.push(er),Re.push(1-Rt))}return Ke}}function Jw(R,A,F,W,te,fe){if(te-W<=F)return;let pe=W+te>>1;t6(R,A,pe,W,te,fe),Jw(R,A,F,W,pe-1,1-fe),Jw(R,A,F,pe+1,te,1-fe)}function t6(R,A,F,W,te,fe){for(;te>W;){if(te-W>600){let ft=te-W+1,Rt=F-W+1,er=Math.log(ft),ur=.5*Math.exp(2*er/3),vr=.5*Math.sqrt(er*ur*(ft-ur)/ft)*(Rt-ft/2<0?-1:1);t6(R,A,F,Math.max(W,Math.floor(F-Rt*ur/ft+vr)),Math.min(te,Math.floor(F+(ft-Rt)*ur/ft+vr)),fe)}let pe=A[2*F+fe],Re=W,Ke=te;for(cb(R,A,W,F),A[2*te+fe]>pe&&cb(R,A,W,te);Repe;)Ke--}A[2*W+fe]===pe?cb(R,A,W,Ke):(Ke++,cb(R,A,Ke,te)),Ke<=F&&(W=Ke+1),F<=Ke&&(te=Ke-1)}}function cb(R,A,F,W){MS(R,F,W),MS(A,2*F,2*W),MS(A,2*F+1,2*W+1)}function MS(R,A,F){let W=R[A];R[A]=R[F],R[F]=W}function r6(R,A,F,W){let te=R-F,fe=A-W;return te*te+fe*fe}var $w;i.bg=void 0,($w=i.bg||(i.bg={})).create="create",$w.load="load",$w.fullLoad="fullLoad";let fb=null,sh=[],ES=1e3/60,kS="loadTime",Qw="fullLoadTime",fq={mark(R){performance.mark(R)},frame(R){let A=R;fb!=null&&sh.push(A-fb),fb=A},clearMetrics(){fb=null,sh=[],performance.clearMeasures(kS),performance.clearMeasures(Qw);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(kS,i.bg.create,i.bg.load),performance.measure(Qw,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(kS)[0].duration,A=performance.getEntriesByName(Qw)[0].duration,F=sh.length,W=1/(sh.reduce((fe,pe)=>fe+pe,0)/F/1e3),te=sh.filter(fe=>fe>ES).reduce((fe,pe)=>fe+(pe-ES)/ES,0);return{loadTime:R,fullLoadTime:A,fps:W,percentDroppedFrames:te/(F+te)*100,totalFrames:F}}};i.$=class extends Jt{},i.A=yi,i.B=dn,i.C=function(R){if(V==null){let A=R.navigator?R.navigator.userAgent:null;V=!!R.safari||!(!A||!(/\b(iPad|iPhone|iPod)\b/.test(A)||A.match("Safari")&&!A.match("Chrome")))}return V},i.D=Va,i.E=Pe,i.F=class{constructor(R,A){this.target=R,this.mapId=A,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new yS(()=>this.process()),this.subscription=function(F,W,te,fe){return F.addEventListener(W,te,!1),{unsubscribe:()=>{F.removeEventListener(W,te,!1)}}}(this.target,"message",F=>this.receive(F)),this.globalScope=q(self)?R:window}registerMessageHandler(R,A){this.messageHandlers[R]=A}sendAsync(R,A){return new Promise((F,W)=>{let te=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[te]={resolve:F,reject:W},A&&A.signal.addEventListener("abort",()=>{delete this.resolveRejects[te];let Re={id:te,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(Re)},{once:!0});let fe=[],pe=Object.assign(Object.assign({},R),{id:te,sourceMapId:this.mapId,origin:location.origin,data:La(R.data,fe)});this.target.postMessage(pe,{transfer:fe})})}receive(R){let A=R.data,F=A.id;if(!(A.origin!=="file://"&&location.origin!=="file://"&&A.origin!=="resource://android"&&location.origin!=="resource://android"&&A.origin!==location.origin||A.targetMapId&&this.mapId!==A.targetMapId)){if(A.type===""){delete this.tasks[F];let W=this.abortControllers[F];return delete this.abortControllers[F],void(W&&W.abort())}if(q(self)||A.mustQueue)return this.tasks[F]=A,this.taskQueue.push(F),void this.invoker.trigger();this.processTask(F,A)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),A=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),A&&this.processTask(R,A)}processTask(R,A){return a(this,void 0,void 0,function*(){if(A.type===""){let te=this.resolveRejects[R];return delete this.resolveRejects[R],te?void(A.error?te.reject(Ua(A.error)):te.resolve(Ua(A.data))):void 0}if(!this.messageHandlers[A.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${A.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let F=Ua(A.data),W=new AbortController;this.abortControllers[R]=W;try{let te=yield this.messageHandlers[A.type](A.sourceMapId,F,W);this.completeTask(R,null,te)}catch(te){this.completeTask(R,te)}})}completeTask(R,A,F){let W=[];delete this.abortControllers[R];let te={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:A?La(A):null,data:La(F,W)};this.target.postMessage(te,{transfer:W})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Ce,i.H=function(){var R=new yi(16);return yi!=Float32Array&&(R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=0,R[12]=0,R[13]=0,R[14]=0),R[0]=1,R[5]=1,R[10]=1,R[15]=1,R},i.I=Uw,i.J=function(R,A,F){var W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr=F[0],li=F[1],pi=F[2];return A===R?(R[12]=A[0]*Dr+A[4]*li+A[8]*pi+A[12],R[13]=A[1]*Dr+A[5]*li+A[9]*pi+A[13],R[14]=A[2]*Dr+A[6]*li+A[10]*pi+A[14],R[15]=A[3]*Dr+A[7]*li+A[11]*pi+A[15]):(te=A[1],fe=A[2],pe=A[3],Re=A[4],Ke=A[5],ft=A[6],Rt=A[7],er=A[8],ur=A[9],vr=A[10],kr=A[11],R[0]=W=A[0],R[1]=te,R[2]=fe,R[3]=pe,R[4]=Re,R[5]=Ke,R[6]=ft,R[7]=Rt,R[8]=er,R[9]=ur,R[10]=vr,R[11]=kr,R[12]=W*Dr+Re*li+er*pi+A[12],R[13]=te*Dr+Ke*li+ur*pi+A[13],R[14]=fe*Dr+ft*li+vr*pi+A[14],R[15]=pe*Dr+Rt*li+kr*pi+A[15]),R},i.K=function(R,A,F){var W=F[0],te=F[1],fe=F[2];return R[0]=A[0]*W,R[1]=A[1]*W,R[2]=A[2]*W,R[3]=A[3]*W,R[4]=A[4]*te,R[5]=A[5]*te,R[6]=A[6]*te,R[7]=A[7]*te,R[8]=A[8]*fe,R[9]=A[9]*fe,R[10]=A[10]*fe,R[11]=A[11]*fe,R[12]=A[12],R[13]=A[13],R[14]=A[14],R[15]=A[15],R},i.L=ui,i.M=function(R,A){let F={};for(let W=0;W{let A=window.document.createElement("video");return A.muted=!0,new Promise(F=>{A.onloadstart=()=>{F(A)};for(let W of R){let te=window.document.createElement("source");ke(W)||(A.crossOrigin="Anonymous"),te.src=W,A.appendChild(te)}})},i.a4=function(){return x++},i.a5=Ln,i.a6=R1,i.a7=Fc,i.a8=Sl,i.a9=bS,i.aA=function(R){if(R.type==="custom")return new mS(R);switch(R.type){case"background":return new iq(R);case"circle":return new fi(R);case"fill":return new _t(R);case"fill-extrusion":return new Lv(R);case"heatmap":return new sa(R);case"hillshade":return new Zs(R);case"line":return new dy(R);case"raster":return new ob(R);case"symbol":return new my(R)}},i.aB=g,i.aC=function(R,A){if(!R)return[{command:"setStyle",args:[A]}];let F=[];try{if(!mt(R.version,A.version))return[{command:"setStyle",args:[A]}];mt(R.center,A.center)||F.push({command:"setCenter",args:[A.center]}),mt(R.zoom,A.zoom)||F.push({command:"setZoom",args:[A.zoom]}),mt(R.bearing,A.bearing)||F.push({command:"setBearing",args:[A.bearing]}),mt(R.pitch,A.pitch)||F.push({command:"setPitch",args:[A.pitch]}),mt(R.sprite,A.sprite)||F.push({command:"setSprite",args:[A.sprite]}),mt(R.glyphs,A.glyphs)||F.push({command:"setGlyphs",args:[A.glyphs]}),mt(R.transition,A.transition)||F.push({command:"setTransition",args:[A.transition]}),mt(R.light,A.light)||F.push({command:"setLight",args:[A.light]}),mt(R.terrain,A.terrain)||F.push({command:"setTerrain",args:[A.terrain]}),mt(R.sky,A.sky)||F.push({command:"setSky",args:[A.sky]}),mt(R.projection,A.projection)||F.push({command:"setProjection",args:[A.projection]});let W={},te=[];(function(pe,Re,Ke,ft){let Rt;for(Rt in Re=Re||{},pe=pe||{})Object.prototype.hasOwnProperty.call(pe,Rt)&&(Object.prototype.hasOwnProperty.call(Re,Rt)||ct(Rt,Ke,ft));for(Rt in Re)Object.prototype.hasOwnProperty.call(Re,Rt)&&(Object.prototype.hasOwnProperty.call(pe,Rt)?mt(pe[Rt],Re[Rt])||(pe[Rt].type==="geojson"&&Re[Rt].type==="geojson"&&Vt(pe,Re,Rt)?Ht(Ke,{command:"setGeoJSONSourceData",args:[Rt,Re[Rt].data]}):ar(Rt,Re,Ke,ft)):at(Rt,Re,Ke))})(R.sources,A.sources,te,W);let fe=[];R.layers&&R.layers.forEach(pe=>{"source"in pe&&W[pe.source]?F.push({command:"removeLayer",args:[pe.id]}):fe.push(pe)}),F=F.concat(te),function(pe,Re,Ke){Re=Re||[];let ft=(pe=pe||[]).map(tt),Rt=Re.map(tt),er=pe.reduce(je,{}),ur=Re.reduce(je,{}),vr=ft.slice(),kr=Object.create(null),Dr,li,pi,vn,zi;for(let ln=0,Tn=0;ln@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(F,W,te,fe)=>{let pe=te||fe;return A[W]=!pe||pe.toLowerCase(),""}),A["max-age"]){let F=parseInt(A["max-age"],10);isNaN(F)?delete A["max-age"]:A["max-age"]=F}return A},i.ab=function(R,A){let F=[];for(let W in R)W in A||F.push(W);return F},i.ac=M,i.ad=function(R,A,F){var W=Math.sin(F),te=Math.cos(F),fe=A[0],pe=A[1],Re=A[2],Ke=A[3],ft=A[4],Rt=A[5],er=A[6],ur=A[7];return A!==R&&(R[8]=A[8],R[9]=A[9],R[10]=A[10],R[11]=A[11],R[12]=A[12],R[13]=A[13],R[14]=A[14],R[15]=A[15]),R[0]=fe*te+ft*W,R[1]=pe*te+Rt*W,R[2]=Re*te+er*W,R[3]=Ke*te+ur*W,R[4]=ft*te-fe*W,R[5]=Rt*te-pe*W,R[6]=er*te-Re*W,R[7]=ur*te-Ke*W,R},i.ae=function(R){var A=new yi(16);return A[0]=R[0],A[1]=R[1],A[2]=R[2],A[3]=R[3],A[4]=R[4],A[5]=R[5],A[6]=R[6],A[7]=R[7],A[8]=R[8],A[9]=R[9],A[10]=R[10],A[11]=R[11],A[12]=R[12],A[13]=R[13],A[14]=R[14],A[15]=R[15],A},i.af=qn,i.ag=function(R,A){let F=0,W=0;if(R.kind==="constant")W=R.layoutSize;else if(R.kind!=="source"){let{interpolationType:te,minZoom:fe,maxZoom:pe}=R,Re=te?M(ko.interpolationFactor(te,A,fe,pe),0,1):0;R.kind==="camera"?W=Lo.number(R.minSize,R.maxSize,Re):F=Re}return{uSizeT:F,uSize:W}},i.ai=function(R,{uSize:A,uSizeT:F},{lowerSize:W,upperSize:te}){return R.kind==="source"?W/v0:R.kind==="composite"?Lo.number(W/v0,te/v0,F):A},i.aj=dS,i.ak=function(R,A,F,W){let te=A.y-R.y,fe=A.x-R.x,pe=W.y-F.y,Re=W.x-F.x,Ke=pe*fe-Re*te;if(Ke===0)return null;let ft=(Re*(R.y-F.y)-pe*(R.x-F.x))/Ke;return new u(R.x+ft*fe,R.y+ft*te)},i.al=HC,i.am=Sc,i.an=Ii,i.ao=function(R){let A=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)A=Math.min(A,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return[A,F,W,te]},i.ap=tu,i.ar=hS,i.as=function(R,A){var F=A[0],W=A[1],te=A[2],fe=A[3],pe=A[4],Re=A[5],Ke=A[6],ft=A[7],Rt=A[8],er=A[9],ur=A[10],vr=A[11],kr=A[12],Dr=A[13],li=A[14],pi=A[15],vn=F*Re-W*pe,zi=F*Ke-te*pe,ln=F*ft-fe*pe,Tn=W*Ke-te*Re,pa=W*ft-fe*Re,ro=te*ft-fe*Ke,Vo=Rt*Dr-er*kr,Xa=Rt*li-ur*kr,la=Rt*pi-vr*kr,Mo=er*li-ur*Dr,fo=er*pi-vr*Dr,lo=ur*pi-vr*li,Wn=vn*lo-zi*fo+ln*Mo+Tn*la-pa*Xa+ro*Vo;return Wn?(R[0]=(Re*lo-Ke*fo+ft*Mo)*(Wn=1/Wn),R[1]=(te*fo-W*lo-fe*Mo)*Wn,R[2]=(Dr*ro-li*pa+pi*Tn)*Wn,R[3]=(ur*pa-er*ro-vr*Tn)*Wn,R[4]=(Ke*la-pe*lo-ft*Xa)*Wn,R[5]=(F*lo-te*la+fe*Xa)*Wn,R[6]=(li*ln-kr*ro-pi*zi)*Wn,R[7]=(Rt*ro-ur*ln+vr*zi)*Wn,R[8]=(pe*fo-Re*la+ft*Vo)*Wn,R[9]=(W*la-F*fo-fe*Vo)*Wn,R[10]=(kr*pa-Dr*ln+pi*vn)*Wn,R[11]=(er*ln-Rt*pa-vr*vn)*Wn,R[12]=(Re*Xa-pe*Mo-Ke*Vo)*Wn,R[13]=(F*Mo-W*Xa+te*Vo)*Wn,R[14]=(Dr*zi-kr*Tn-li*vn)*Wn,R[15]=(Rt*Tn-er*zi+ur*vn)*Wn,R):null},i.at=AS,i.au=jw,i.av=SS,i.aw=function(){let R={},A=ce.$version;for(let F in ce.$root){let W=ce.$root[F];if(W.required){let te=null;te=F==="version"?A:W.type==="array"?[]:{},te!=null&&(R[F]=te)}}return R},i.ax=Zn,i.ay=re,i.az=function(R){R=R.slice();let A=Object.create(null);for(let F=0;F25||W<0||W>=1||F<0||F>=1)},i.bc=function(R,A){return R[0]=A[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=A[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=A[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends Mt{},i.be=_S,i.bf=fq,i.bh=ge,i.bi=function(R,A){_e.REGISTERED_PROTOCOLS[R]=A},i.bj=function(R){delete _e.REGISTERED_PROTOCOLS[R]},i.bk=function(R,A){let F={};for(let te=0;telo*tu)}let Xa=pe?"center":F.get("text-justify").evaluate(ft,{},R.canonical),la=F.get("symbol-placement")==="point"?F.get("text-max-width").evaluate(ft,{},R.canonical)*tu:1/0,Mo=()=>{R.bucket.allowVerticalPlacement&&Ka(ln)&&(kr.vertical=eb(Dr,R.glyphMap,R.glyphPositions,R.imagePositions,Rt,la,fe,ro,"left",pa,pi,i.ah.vertical,!0,ur,er))};if(!pe&&Vo){let fo=new Set;if(Xa==="auto")for(let Wn=0;Wna(void 0,void 0,void 0,function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let A=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(A)}catch(F){throw new Error(`Could not load image because of ${F.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=R=>new Promise((A,F)=>{let W=new Image;W.onload=()=>{A(W),URL.revokeObjectURL(W.src),W.onload=null,window.requestAnimationFrame(()=>{W.src=Z})},W.onerror=()=>F(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let te=new Blob([new Uint8Array(R)],{type:"image/png"});W.src=R.byteLength?URL.createObjectURL(te):Z}),i.g=Ee,i.h=(R,A)=>Se(L(R,{type:"json"}),A),i.i=q,i.j=me,i.k=Le,i.l=(R,A)=>Se(L(R,{type:"arrayBuffer"}),A),i.m=Se,i.n=function(R){return new uS(R).readFields(BQ,[])},i.o=aa,i.p=fS,i.q=ue,i.r=Wi,i.s=ke,i.t=Yi,i.u=Mi,i.v=ce,i.w=E,i.x=function([R,A,F]){return A+=90,A*=Math.PI/180,F*=Math.PI/180,{x:R*Math.cos(A)*Math.sin(F),y:R*Math.sin(A)*Math.sin(F),z:R*Math.cos(F)}},i.y=Lo,i.z=rs}),r("worker",["./shared"],function(i){"use strict";class a{constructor(Ge){this.keyCache={},Ge&&this.replace(Ge)}replace(Ge){this._layerConfigs={},this._layers={},this.update(Ge,[])}update(Ge,Je){for(let et of Ge){this._layerConfigs[et.id]=et;let xt=this._layers[et.id]=i.aA(et);xt._featureFilter=i.a7(xt.filter),this.keyCache[et.id]&&delete this.keyCache[et.id]}for(let et of Je)delete this.keyCache[et],delete this._layerConfigs[et],delete this._layers[et];this.familiesBySource={};let We=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let et of We){let xt=et.map(Ir=>this._layers[Ir.id]),At=xt[0];if(At.visibility==="none")continue;let Kt=At.source||"",Qt=this.familiesBySource[Kt];Qt||(Qt=this.familiesBySource[Kt]={});let Mr=At.sourceLayer||"_geojsonTileLayer",Gr=Qt[Mr];Gr||(Gr=Qt[Mr]=[]),Gr.push(xt)}}}class o{constructor(Ge){let Je={},We=[];for(let Kt in Ge){let Qt=Ge[Kt],Mr=Je[Kt]={};for(let Gr in Qt){let Ir=Qt[+Gr];if(!Ir||Ir.bitmap.width===0||Ir.bitmap.height===0)continue;let Yr={x:0,y:0,w:Ir.bitmap.width+2,h:Ir.bitmap.height+2};We.push(Yr),Mr[Gr]={rect:Yr,metrics:Ir.metrics}}}let{w:et,h:xt}=i.p(We),At=new i.o({width:et||1,height:xt||1});for(let Kt in Ge){let Qt=Ge[Kt];for(let Mr in Qt){let Gr=Qt[+Mr];if(!Gr||Gr.bitmap.width===0||Gr.bitmap.height===0)continue;let Ir=Je[Kt][Mr].rect;i.o.copy(Gr.bitmap,At,{x:0,y:0},{x:Ir.x+1,y:Ir.y+1},Gr.bitmap)}}this.image=At,this.positions=Je}}i.bl("GlyphAtlas",o);class s{constructor(Ge){this.tileID=new i.S(Ge.tileID.overscaledZ,Ge.tileID.wrap,Ge.tileID.canonical.z,Ge.tileID.canonical.x,Ge.tileID.canonical.y),this.uid=Ge.uid,this.zoom=Ge.zoom,this.pixelRatio=Ge.pixelRatio,this.tileSize=Ge.tileSize,this.source=Ge.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Ge.showCollisionBoxes,this.collectResourceTiming=!!Ge.collectResourceTiming,this.returnDependencies=!!Ge.returnDependencies,this.promoteId=Ge.promoteId,this.inFlightDependencies=[]}parse(Ge,Je,We,et){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=Ge,this.collisionBoxArray=new i.a5;let xt=new i.bm(Object.keys(Ge.layers).sort()),At=new i.bn(this.tileID,this.promoteId);At.bucketLayerIDs=[];let Kt={},Qt={featureIndex:At,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:We},Mr=Je.familiesBySource[this.source];for(let Qn in Mr){let Vi=Ge.layers[Qn];if(!Vi)continue;Vi.version===1&&i.w(`Vector tile source "${this.source}" layer "${Qn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let Kn=xt.encode(Qn),Jn=[];for(let Gt=0;Gt=wt.maxzoom||wt.visibility!=="none"&&(l(Gt,this.zoom,We),(Kt[wt.id]=wt.createBucket({index:At.bucketLayerIDs.length,layers:Gt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Kn,sourceID:this.source})).populate(Jn,Qt,this.tileID.canonical),At.bucketLayerIDs.push(Gt.map(tr=>tr.id)))}}let Gr=i.aF(Qt.glyphDependencies,Qn=>Object.keys(Qn).map(Number));this.inFlightDependencies.forEach(Qn=>Qn==null?void 0:Qn.abort()),this.inFlightDependencies=[];let Ir=Promise.resolve({});if(Object.keys(Gr).length){let Qn=new AbortController;this.inFlightDependencies.push(Qn),Ir=et.sendAsync({type:"GG",data:{stacks:Gr,source:this.source,tileID:this.tileID,type:"glyphs"}},Qn)}let Yr=Object.keys(Qt.iconDependencies),_i=Promise.resolve({});if(Yr.length){let Qn=new AbortController;this.inFlightDependencies.push(Qn),_i=et.sendAsync({type:"GI",data:{icons:Yr,source:this.source,tileID:this.tileID,type:"icons"}},Qn)}let Pi=Object.keys(Qt.patternDependencies),ai=Promise.resolve({});if(Pi.length){let Qn=new AbortController;this.inFlightDependencies.push(Qn),ai=et.sendAsync({type:"GI",data:{icons:Pi,source:this.source,tileID:this.tileID,type:"patterns"}},Qn)}let[mi,un,Fn]=yield Promise.all([Ir,_i,ai]),An=new o(mi),Hn=new i.bo(un,Fn);for(let Qn in Kt){let Vi=Kt[Qn];Vi instanceof i.a6?(l(Vi.layers,this.zoom,We),i.bp({bucket:Vi,glyphMap:mi,glyphPositions:An.positions,imageMap:un,imagePositions:Hn.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):Vi.hasPattern&&(Vi instanceof i.bq||Vi instanceof i.br||Vi instanceof i.bs)&&(l(Vi.layers,this.zoom,We),Vi.addFeatures(Qt,this.tileID.canonical,Hn.patternPositions))}return this.status="done",{buckets:Object.values(Kt).filter(Qn=>!Qn.isEmpty()),featureIndex:At,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:An.image,imageAtlas:Hn,glyphMap:this.returnDependencies?mi:null,iconMap:this.returnDependencies?un:null,glyphPositions:this.returnDependencies?An.positions:null}})}}function l(gt,Ge,Je){let We=new i.z(Ge);for(let et of gt)et.recalculate(We,Je)}class u{constructor(Ge,Je,We){this.actor=Ge,this.layerIndex=Je,this.availableImages=We,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Ge,Je){return i._(this,void 0,void 0,function*(){let We=yield i.l(Ge.request,Je);try{return{vectorTile:new i.bt.VectorTile(new i.bu(We.data)),rawData:We.data,cacheControl:We.cacheControl,expires:We.expires}}catch(et){let xt=new Uint8Array(We.data),At=`Unable to parse the tile at ${Ge.request.url}, `;throw At+=xt[0]===31&&xt[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${et.message}`,new Error(At)}})}loadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid,We=!!(Ge&&Ge.request&&Ge.request.collectResourceTiming)&&new i.bv(Ge.request),et=new s(Ge);this.loading[Je]=et;let xt=new AbortController;et.abort=xt;try{let At=yield this.loadVectorTile(Ge,xt);if(delete this.loading[Je],!At)return null;let Kt=At.rawData,Qt={};At.expires&&(Qt.expires=At.expires),At.cacheControl&&(Qt.cacheControl=At.cacheControl);let Mr={};if(We){let Ir=We.finish();Ir&&(Mr.resourceTiming=JSON.parse(JSON.stringify(Ir)))}et.vectorTile=At.vectorTile;let Gr=et.parse(At.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Je]=et,this.fetching[Je]={rawTileData:Kt,cacheControl:Qt,resourceTiming:Mr};try{let Ir=yield Gr;return i.e({rawTileData:Kt.slice(0)},Ir,Qt,Mr)}finally{delete this.fetching[Je]}}catch(At){throw delete this.loading[Je],et.status="done",this.loaded[Je]=et,At}})}reloadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid;if(!this.loaded||!this.loaded[Je])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let We=this.loaded[Je];if(We.showCollisionBoxes=Ge.showCollisionBoxes,We.status==="parsing"){let et=yield We.parse(We.vectorTile,this.layerIndex,this.availableImages,this.actor),xt;if(this.fetching[Je]){let{rawTileData:At,cacheControl:Kt,resourceTiming:Qt}=this.fetching[Je];delete this.fetching[Je],xt=i.e({rawTileData:At.slice(0)},et,Kt,Qt)}else xt=et;return xt}if(We.status==="done"&&We.vectorTile)return We.parse(We.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(Ge){return i._(this,void 0,void 0,function*(){let Je=this.loading,We=Ge.uid;Je&&Je[We]&&Je[We].abort&&(Je[We].abort.abort(),delete Je[We])})}removeTile(Ge){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[Ge.uid]&&delete this.loaded[Ge.uid]})}}class c{constructor(){this.loaded={}}loadTile(Ge){return i._(this,void 0,void 0,function*(){let{uid:Je,encoding:We,rawImageData:et,redFactor:xt,greenFactor:At,blueFactor:Kt,baseShift:Qt}=Ge,Mr=et.width+2,Gr=et.height+2,Ir=i.b(et)?new i.R({width:Mr,height:Gr},yield i.bw(et,-1,-1,Mr,Gr)):et,Yr=new i.bx(Je,Ir,We,xt,At,Kt,Qt);return this.loaded=this.loaded||{},this.loaded[Je]=Yr,Yr})}removeTile(Ge){let Je=this.loaded,We=Ge.uid;Je&&Je[We]&&delete Je[We]}}function f(gt,Ge){if(gt.length!==0){h(gt[0],Ge);for(var Je=1;Je=Math.abs(Kt)?Je-Qt+Kt:Kt-Qt+Je,Je=Qt}Je+We>=0!=!!Ge&>.reverse()}var d=i.by(function gt(Ge,Je){var We,et=Ge&&Ge.type;if(et==="FeatureCollection")for(We=0;We>31}function q(gt,Ge){for(var Je=gt.loadGeometry(),We=gt.type,et=0,xt=0,At=Je.length,Kt=0;Ktgt},j=Math.fround||(N=new Float32Array(1),gt=>(N[0]=+gt,N[0]));var N;let H=3,ie=5,ae=6;class _e{constructor(Ge){this.options=Object.assign(Object.create(Z),Ge),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Ge){let{log:Je,minZoom:We,maxZoom:et}=this.options;Je&&console.time("total time");let xt=`prepare ${Ge.length} points`;Je&&console.time(xt),this.points=Ge;let At=[];for(let Qt=0;Qt=We;Qt--){let Mr=+Date.now();Kt=this.trees[Qt]=this._createTree(this._cluster(Kt,Qt)),Je&&console.log("z%d: %d clusters in %dms",Qt,Kt.numItems,+Date.now()-Mr)}return Je&&console.timeEnd("total time"),this}getClusters(Ge,Je){let We=((Ge[0]+180)%360+360)%360-180,et=Math.max(-90,Math.min(90,Ge[1])),xt=Ge[2]===180?180:((Ge[2]+180)%360+360)%360-180,At=Math.max(-90,Math.min(90,Ge[3]));if(Ge[2]-Ge[0]>=360)We=-180,xt=180;else if(We>xt){let Ir=this.getClusters([We,et,180,At],Je),Yr=this.getClusters([-180,et,xt,At],Je);return Ir.concat(Yr)}let Kt=this.trees[this._limitZoom(Je)],Qt=Kt.range(ge(We),re(At),ge(xt),re(et)),Mr=Kt.data,Gr=[];for(let Ir of Qt){let Yr=this.stride*Ir;Gr.push(Mr[Yr+ie]>1?Ee(Mr,Yr,this.clusterProps):this.points[Mr[Yr+H]])}return Gr}getChildren(Ge){let Je=this._getOriginId(Ge),We=this._getOriginZoom(Ge),et="No cluster with the specified id.",xt=this.trees[We];if(!xt)throw new Error(et);let At=xt.data;if(Je*this.stride>=At.length)throw new Error(et);let Kt=this.options.radius/(this.options.extent*Math.pow(2,We-1)),Qt=xt.within(At[Je*this.stride],At[Je*this.stride+1],Kt),Mr=[];for(let Gr of Qt){let Ir=Gr*this.stride;At[Ir+4]===Ge&&Mr.push(At[Ir+ie]>1?Ee(At,Ir,this.clusterProps):this.points[At[Ir+H]])}if(Mr.length===0)throw new Error(et);return Mr}getLeaves(Ge,Je,We){let et=[];return this._appendLeaves(et,Ge,Je=Je||10,We=We||0,0),et}getTile(Ge,Je,We){let et=this.trees[this._limitZoom(Ge)],xt=Math.pow(2,Ge),{extent:At,radius:Kt}=this.options,Qt=Kt/At,Mr=(We-Qt)/xt,Gr=(We+1+Qt)/xt,Ir={features:[]};return this._addTileFeatures(et.range((Je-Qt)/xt,Mr,(Je+1+Qt)/xt,Gr),et.data,Je,We,xt,Ir),Je===0&&this._addTileFeatures(et.range(1-Qt/xt,Mr,1,Gr),et.data,xt,We,xt,Ir),Je===xt-1&&this._addTileFeatures(et.range(0,Mr,Qt/xt,Gr),et.data,-1,We,xt,Ir),Ir.features.length?Ir:null}getClusterExpansionZoom(Ge){let Je=this._getOriginZoom(Ge)-1;for(;Je<=this.options.maxZoom;){let We=this.getChildren(Ge);if(Je++,We.length!==1)break;Ge=We[0].properties.cluster_id}return Je}_appendLeaves(Ge,Je,We,et,xt){let At=this.getChildren(Je);for(let Kt of At){let Qt=Kt.properties;if(Qt&&Qt.cluster?xt+Qt.point_count<=et?xt+=Qt.point_count:xt=this._appendLeaves(Ge,Qt.cluster_id,We,et,xt):xt1,Gr,Ir,Yr;if(Mr)Gr=Ce(Je,Qt,this.clusterProps),Ir=Je[Qt],Yr=Je[Qt+1];else{let ai=this.points[Je[Qt+H]];Gr=ai.properties;let[mi,un]=ai.geometry.coordinates;Ir=ge(mi),Yr=re(un)}let _i={type:1,geometry:[[Math.round(this.options.extent*(Ir*xt-We)),Math.round(this.options.extent*(Yr*xt-et))]],tags:Gr},Pi;Pi=Mr||this.options.generateId?Je[Qt+H]:this.points[Je[Qt+H]].id,Pi!==void 0&&(_i.id=Pi),At.features.push(_i)}}_limitZoom(Ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ge),this.options.maxZoom+1))}_cluster(Ge,Je){let{radius:We,extent:et,reduce:xt,minPoints:At}=this.options,Kt=We/(et*Math.pow(2,Je)),Qt=Ge.data,Mr=[],Gr=this.stride;for(let Ir=0;IrJe&&(mi+=Qt[Fn+ie])}if(mi>ai&&mi>=At){let un,Fn=Yr*ai,An=_i*ai,Hn=-1,Qn=((Ir/Gr|0)<<5)+(Je+1)+this.points.length;for(let Vi of Pi){let Kn=Vi*Gr;if(Qt[Kn+2]<=Je)continue;Qt[Kn+2]=Je;let Jn=Qt[Kn+ie];Fn+=Qt[Kn]*Jn,An+=Qt[Kn+1]*Jn,Qt[Kn+4]=Qn,xt&&(un||(un=this._map(Qt,Ir,!0),Hn=this.clusterProps.length,this.clusterProps.push(un)),xt(un,this._map(Qt,Kn)))}Qt[Ir+4]=Qn,Mr.push(Fn/mi,An/mi,1/0,Qn,-1,mi),xt&&Mr.push(Hn)}else{for(let un=0;un1)for(let un of Pi){let Fn=un*Gr;if(!(Qt[Fn+2]<=Je)){Qt[Fn+2]=Je;for(let An=0;An>5}_getOriginZoom(Ge){return(Ge-this.points.length)%32}_map(Ge,Je,We){if(Ge[Je+ie]>1){let At=this.clusterProps[Ge[Je+ae]];return We?Object.assign({},At):At}let et=this.points[Ge[Je+H]].properties,xt=this.options.map(et);return We&&xt===et?Object.assign({},xt):xt}}function Ee(gt,Ge,Je){return{type:"Feature",id:gt[Ge+H],properties:Ce(gt,Ge,Je),geometry:{type:"Point",coordinates:[(We=gt[Ge],360*(We-.5)),Se(gt[Ge+1])]}};var We}function Ce(gt,Ge,Je){let We=gt[Ge+ie],et=We>=1e4?`${Math.round(We/1e3)}k`:We>=1e3?Math.round(We/100)/10+"k":We,xt=gt[Ge+ae],At=xt===-1?{}:Object.assign({},Je[xt]);return Object.assign(At,{cluster:!0,cluster_id:gt[Ge+H],point_count:We,point_count_abbreviated:et})}function ge(gt){return gt/360+.5}function re(gt){let Ge=Math.sin(gt*Math.PI/180),Je=.5-.25*Math.log((1+Ge)/(1-Ge))/Math.PI;return Je<0?0:Je>1?1:Je}function Se(gt){let Ge=(180-360*gt)*Math.PI/180;return 360*Math.atan(Math.exp(Ge))/Math.PI-90}function ke(gt,Ge,Je,We){let et=We,xt=Ge+(Je-Ge>>1),At,Kt=Je-Ge,Qt=gt[Ge],Mr=gt[Ge+1],Gr=gt[Je],Ir=gt[Je+1];for(let Yr=Ge+3;Yret)At=Yr,et=_i;else if(_i===et){let Pi=Math.abs(Yr-xt);PiWe&&(At-Ge>3&&ke(gt,Ge,At,We),gt[At+2]=et,Je-At>3&&ke(gt,At,Je,We))}function be(gt,Ge,Je,We,et,xt){let At=et-Je,Kt=xt-We;if(At!==0||Kt!==0){let Qt=((gt-Je)*At+(Ge-We)*Kt)/(At*At+Kt*Kt);Qt>1?(Je=et,We=xt):Qt>0&&(Je+=At*Qt,We+=Kt*Qt)}return At=gt-Je,Kt=Ge-We,At*At+Kt*Kt}function Be(gt,Ge,Je,We){let et={id:gt==null?null:gt,type:Ge,geometry:Je,tags:We,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Ge==="Point"||Ge==="MultiPoint"||Ge==="LineString")Le(et,Je);else if(Ge==="Polygon")Le(et,Je[0]);else if(Ge==="MultiLineString")for(let xt of Je)Le(et,xt);else if(Ge==="MultiPolygon")for(let xt of Je)Le(et,xt[0]);return et}function Le(gt,Ge){for(let Je=0;Je0&&(At+=We?(et*Gr-Mr*xt)/2:Math.sqrt(Math.pow(Mr-et,2)+Math.pow(Gr-xt,2))),et=Mr,xt=Gr}let Kt=Ge.length-3;Ge[2]=1,ke(Ge,0,Kt,Je),Ge[Kt+2]=1,Ge.size=Math.abs(At),Ge.start=0,Ge.end=Ge.size}function He(gt,Ge,Je,We){for(let et=0;et1?1:Je}function Ht(gt,Ge,Je,We,et,xt,At,Kt){if(We/=Ge,xt>=(Je/=Ge)&&At=We)return null;let Qt=[];for(let Mr of gt){let Gr=Mr.geometry,Ir=Mr.type,Yr=et===0?Mr.minX:Mr.minY,_i=et===0?Mr.maxX:Mr.maxY;if(Yr>=Je&&_i=We)continue;let Pi=[];if(Ir==="Point"||Ir==="MultiPoint")at(Gr,Pi,Je,We,et);else if(Ir==="LineString")ct(Gr,Pi,Je,We,et,!1,Kt.lineMetrics);else if(Ir==="MultiLineString")Vt(Gr,Pi,Je,We,et,!1);else if(Ir==="Polygon")Vt(Gr,Pi,Je,We,et,!0);else if(Ir==="MultiPolygon")for(let ai of Gr){let mi=[];Vt(ai,mi,Je,We,et,!0),mi.length&&Pi.push(mi)}if(Pi.length){if(Kt.lineMetrics&&Ir==="LineString"){for(let ai of Pi)Qt.push(Be(Mr.id,Ir,ai,Mr.tags));continue}Ir!=="LineString"&&Ir!=="MultiLineString"||(Pi.length===1?(Ir="LineString",Pi=Pi[0]):Ir="MultiLineString"),Ir!=="Point"&&Ir!=="MultiPoint"||(Ir=Pi.length===3?"Point":"MultiPoint"),Qt.push(Be(Mr.id,Ir,Pi,Mr.tags))}}return Qt.length?Qt:null}function at(gt,Ge,Je,We,et){for(let xt=0;xt=Je&&At<=We&&rr(Ge,gt[xt],gt[xt+1],gt[xt+2])}}function ct(gt,Ge,Je,We,et,xt,At){let Kt=ar(gt),Qt=et===0?tt:je,Mr,Gr,Ir=gt.start;for(let mi=0;miJe&&(Gr=Qt(Kt,un,Fn,Hn,Qn,Je),At&&(Kt.start=Ir+Mr*Gr)):Vi>We?Kn=Je&&(Gr=Qt(Kt,un,Fn,Hn,Qn,Je),Jn=!0),Kn>We&&Vi<=We&&(Gr=Qt(Kt,un,Fn,Hn,Qn,We),Jn=!0),!xt&&Jn&&(At&&(Kt.end=Ir+Mr*Gr),Ge.push(Kt),Kt=ar(gt)),At&&(Ir+=Mr)}let Yr=gt.length-3,_i=gt[Yr],Pi=gt[Yr+1],ai=et===0?_i:Pi;ai>=Je&&ai<=We&&rr(Kt,_i,Pi,gt[Yr+2]),Yr=Kt.length-3,xt&&Yr>=3&&(Kt[Yr]!==Kt[0]||Kt[Yr+1]!==Kt[1])&&rr(Kt,Kt[0],Kt[1],Kt[2]),Kt.length&&Ge.push(Kt)}function ar(gt){let Ge=[];return Ge.size=gt.size,Ge.start=gt.start,Ge.end=gt.end,Ge}function Vt(gt,Ge,Je,We,et,xt){for(let At of gt)ct(At,Ge,Je,We,et,xt,!1)}function rr(gt,Ge,Je,We){gt.push(Ge,Je,We)}function tt(gt,Ge,Je,We,et,xt){let At=(xt-Ge)/(We-Ge);return rr(gt,xt,Je+(et-Je)*At,1),At}function je(gt,Ge,Je,We,et,xt){let At=(xt-Je)/(et-Je);return rr(gt,Ge+(We-Ge)*At,xt,1),At}function Ue(gt,Ge){let Je=[];for(let We=0;We0&&Ge.size<(et?At:We))return void(Je.numPoints+=Ge.length/3);let Kt=[];for(let Qt=0;QtAt)&&(Je.numSimplified++,Kt.push(Ge[Qt],Ge[Qt+1])),Je.numPoints++;et&&function(Qt,Mr){let Gr=0;for(let Ir=0,Yr=Qt.length,_i=Yr-2;Ir0===Mr)for(let Ir=0,Yr=Qt.length;Ir24)throw new Error("maxZoom should be in the 0-24 range");if(Je.promoteId&&Je.generateId)throw new Error("promoteId and generateId cannot be used together.");let et=function(xt,At){let Kt=[];if(xt.type==="FeatureCollection")for(let Qt=0;Qt1&&console.time("creation"),_i=this.tiles[Yr]=Tt(Ge,Je,We,et,Mr),this.tileCoords.push({z:Je,x:We,y:et}),Gr)){Gr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Je,We,et,_i.numFeatures,_i.numPoints,_i.numSimplified),console.timeEnd("creation"));let Jn=`z${Je}`;this.stats[Jn]=(this.stats[Jn]||0)+1,this.total++}if(_i.source=Ge,xt==null){if(Je===Mr.indexMaxZoom||_i.numPoints<=Mr.indexMaxPoints)continue}else{if(Je===Mr.maxZoom||Je===xt)continue;if(xt!=null){let Jn=xt-Je;if(We!==At>>Jn||et!==Kt>>Jn)continue}}if(_i.source=null,Ge.length===0)continue;Gr>1&&console.time("clipping");let Pi=.5*Mr.buffer/Mr.extent,ai=.5-Pi,mi=.5+Pi,un=1+Pi,Fn=null,An=null,Hn=null,Qn=null,Vi=Ht(Ge,Ir,We-Pi,We+mi,0,_i.minX,_i.maxX,Mr),Kn=Ht(Ge,Ir,We+ai,We+un,0,_i.minX,_i.maxX,Mr);Ge=null,Vi&&(Fn=Ht(Vi,Ir,et-Pi,et+mi,1,_i.minY,_i.maxY,Mr),An=Ht(Vi,Ir,et+ai,et+un,1,_i.minY,_i.maxY,Mr),Vi=null),Kn&&(Hn=Ht(Kn,Ir,et-Pi,et+mi,1,_i.minY,_i.maxY,Mr),Qn=Ht(Kn,Ir,et+ai,et+un,1,_i.minY,_i.maxY,Mr),Kn=null),Gr>1&&console.timeEnd("clipping"),Qt.push(Fn||[],Je+1,2*We,2*et),Qt.push(An||[],Je+1,2*We,2*et+1),Qt.push(Hn||[],Je+1,2*We+1,2*et),Qt.push(Qn||[],Je+1,2*We+1,2*et+1)}}getTile(Ge,Je,We){Ge=+Ge,Je=+Je,We=+We;let et=this.options,{extent:xt,debug:At}=et;if(Ge<0||Ge>24)return null;let Kt=1<1&&console.log("drilling down to z%d-%d-%d",Ge,Je,We);let Mr,Gr=Ge,Ir=Je,Yr=We;for(;!Mr&&Gr>0;)Gr--,Ir>>=1,Yr>>=1,Mr=this.tiles[or(Gr,Ir,Yr)];return Mr&&Mr.source?(At>1&&(console.log("found parent tile z%d-%d-%d",Gr,Ir,Yr),console.time("drilling down")),this.splitTile(Mr.source,Gr,Ir,Yr,Ge,Je,We),At>1&&console.timeEnd("drilling down"),this.tiles[Qt]?rt(this.tiles[Qt],xt):null):null}}function or(gt,Ge,Je){return 32*((1<{Ir.properties=_i;let Pi={};for(let ai of Yr)Pi[ai]=Qt[ai].evaluate(Gr,Ir);return Pi},At.reduce=(_i,Pi)=>{Ir.properties=Pi;for(let ai of Yr)Gr.accumulated=_i[ai],_i[ai]=Mr[ai].evaluate(Gr,Ir)},At}(Ge)).load((yield this._pendingData).features):(et=yield this._pendingData,new jt(et,Ge.geojsonVtOptions)),this.loaded={};let xt={};if(We){let At=We.finish();At&&(xt.resourceTiming={},xt.resourceTiming[Ge.source]=JSON.parse(JSON.stringify(At)))}return xt}catch(xt){if(delete this._pendingRequest,i.bB(xt))return{abandoned:!0};throw xt}var et})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(Ge){let Je=this.loaded;return Je&&Je[Ge.uid]?super.reloadTile(Ge):this.loadTile(Ge)}loadAndProcessGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let We=yield this.loadGeoJSON(Ge,Je);if(delete this._pendingRequest,typeof We!="object")throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(d(We,!0),Ge.filter){let et=i.bC(Ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(et.result==="error")throw new Error(et.value.map(At=>`${At.key}: ${At.message}`).join(", "));We={type:"FeatureCollection",features:We.features.filter(At=>et.value.evaluate({zoom:0},At))}}return We})}loadGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let{promoteId:We}=Ge;if(Ge.request){let et=yield i.h(Ge.request,Je);return this._dataUpdateable=Ar(et.data,We)?ei(et.data,We):void 0,et.data}if(typeof Ge.data=="string")try{let et=JSON.parse(Ge.data);return this._dataUpdateable=Ar(et,We)?ei(et,We):void 0,et}catch(et){throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`)}if(!Ge.dataDiff)throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${Ge.source}`);return function(et,xt,At){var Kt,Qt,Mr,Gr;if(xt.removeAll&&et.clear(),xt.remove)for(let Ir of xt.remove)et.delete(Ir);if(xt.add)for(let Ir of xt.add){let Yr=mr(Ir,At);Yr!=null&&et.set(Yr,Ir)}if(xt.update)for(let Ir of xt.update){let Yr=et.get(Ir.id);if(Yr==null)continue;let _i=!Ir.removeAllProperties&&(((Kt=Ir.removeProperties)===null||Kt===void 0?void 0:Kt.length)>0||((Qt=Ir.addOrUpdateProperties)===null||Qt===void 0?void 0:Qt.length)>0);if((Ir.newGeometry||Ir.removeAllProperties||_i)&&(Yr=Object.assign({},Yr),et.set(Ir.id,Yr),_i&&(Yr.properties=Object.assign({},Yr.properties))),Ir.newGeometry&&(Yr.geometry=Ir.newGeometry),Ir.removeAllProperties)Yr.properties={};else if(((Mr=Ir.removeProperties)===null||Mr===void 0?void 0:Mr.length)>0)for(let Pi of Ir.removeProperties)Object.prototype.hasOwnProperty.call(Yr.properties,Pi)&&delete Yr.properties[Pi];if(((Gr=Ir.addOrUpdateProperties)===null||Gr===void 0?void 0:Gr.length)>0)for(let{key:Pi,value:ai}of Ir.addOrUpdateProperties)Yr.properties[Pi]=ai}}(this._dataUpdateable,Ge.dataDiff,We),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(Ge){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(Ge){return this._geoJSONIndex.getClusterExpansionZoom(Ge.clusterId)}getClusterChildren(Ge){return this._geoJSONIndex.getChildren(Ge.clusterId)}getClusterLeaves(Ge){return this._geoJSONIndex.getLeaves(Ge.clusterId,Ge.limit,Ge.offset)}}class jr{constructor(Ge){this.self=Ge,this.actor=new i.F(Ge),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Je,We)=>{if(this.externalWorkerSourceTypes[Je])throw new Error(`Worker source with name "${Je}" already registered.`);this.externalWorkerSourceTypes[Je]=We},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Je=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Je)},this.actor.registerMessageHandler("LDT",(Je,We)=>this._getDEMWorkerSource(Je,We.source).loadTile(We)),this.actor.registerMessageHandler("RDT",(Je,We)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Je,We.source).removeTile(We)})),this.actor.registerMessageHandler("GCEZ",(Je,We)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,We.type,We.source).getClusterExpansionZoom(We)})),this.actor.registerMessageHandler("GCC",(Je,We)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,We.type,We.source).getClusterChildren(We)})),this.actor.registerMessageHandler("GCL",(Je,We)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,We.type,We.source).getClusterLeaves(We)})),this.actor.registerMessageHandler("LD",(Je,We)=>this._getWorkerSource(Je,We.type,We.source).loadData(We)),this.actor.registerMessageHandler("GD",(Je,We)=>this._getWorkerSource(Je,We.type,We.source).getData()),this.actor.registerMessageHandler("LT",(Je,We)=>this._getWorkerSource(Je,We.type,We.source).loadTile(We)),this.actor.registerMessageHandler("RT",(Je,We)=>this._getWorkerSource(Je,We.type,We.source).reloadTile(We)),this.actor.registerMessageHandler("AT",(Je,We)=>this._getWorkerSource(Je,We.type,We.source).abortTile(We)),this.actor.registerMessageHandler("RMT",(Je,We)=>this._getWorkerSource(Je,We.type,We.source).removeTile(We)),this.actor.registerMessageHandler("RS",(Je,We)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Je]||!this.workerSources[Je][We.type]||!this.workerSources[Je][We.type][We.source])return;let et=this.workerSources[Je][We.type][We.source];delete this.workerSources[Je][We.type][We.source],et.removeSource!==void 0&&et.removeSource(We)})),this.actor.registerMessageHandler("RM",Je=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Je],delete this.availableImages[Je],delete this.workerSources[Je],delete this.demWorkerSources[Je]})),this.actor.registerMessageHandler("SR",(Je,We)=>i._(this,void 0,void 0,function*(){this.referrer=We})),this.actor.registerMessageHandler("SRPS",(Je,We)=>this._syncRTLPluginState(Je,We)),this.actor.registerMessageHandler("IS",(Je,We)=>i._(this,void 0,void 0,function*(){this.self.importScripts(We)})),this.actor.registerMessageHandler("SI",(Je,We)=>this._setImages(Je,We)),this.actor.registerMessageHandler("UL",(Je,We)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).update(We.layers,We.removedIds)})),this.actor.registerMessageHandler("SL",(Je,We)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).replace(We)}))}_setImages(Ge,Je){return i._(this,void 0,void 0,function*(){this.availableImages[Ge]=Je;for(let We in this.workerSources[Ge]){let et=this.workerSources[Ge][We];for(let xt in et)et[xt].availableImages=Je}})}_syncRTLPluginState(Ge,Je){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Je.pluginStatus!=="loading")return i.bD.setState(Je),Je;let We=Je.pluginURL;if(this.self.importScripts(We),i.bD.isParsed()){let et={pluginStatus:"loaded",pluginURL:We};return i.bD.setState(et),et}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${We}`)})}_getAvailableImages(Ge){let Je=this.availableImages[Ge];return Je||(Je=[]),Je}_getLayerIndex(Ge){let Je=this.layerIndexes[Ge];return Je||(Je=this.layerIndexes[Ge]=new a),Je}_getWorkerSource(Ge,Je,We){if(this.workerSources[Ge]||(this.workerSources[Ge]={}),this.workerSources[Ge][Je]||(this.workerSources[Ge][Je]={}),!this.workerSources[Ge][Je][We]){let et={sendAsync:(xt,At)=>(xt.targetMapId=Ge,this.actor.sendAsync(xt,At))};switch(Je){case"vector":this.workerSources[Ge][Je][We]=new u(et,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;case"geojson":this.workerSources[Ge][Je][We]=new qr(et,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;default:this.workerSources[Ge][Je][We]=new this.externalWorkerSourceTypes[Je](et,this._getLayerIndex(Ge),this._getAvailableImages(Ge))}}return this.workerSources[Ge][Je][We]}_getDEMWorkerSource(Ge,Je){return this.demWorkerSources[Ge]||(this.demWorkerSources[Ge]={}),this.demWorkerSources[Ge][Je]||(this.demWorkerSources[Ge][Je]=new c),this.demWorkerSources[Ge][Je]}}return i.i(self)&&(self.worker=new jr(self)),jr}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,l,u={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise((w,B)=>{let Q=requestAnimationFrame(w);ue.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),B(a.c())})}),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),B=w.getContext("2d",{willReadFrequently:!0});if(!B)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,B.drawImage(ue,0,0,ue.width,ue.height),B},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l==null&&(l=matchMedia("(prefers-reduced-motion: reduce)")),l.matches)}};class c{static testProp(w){if(!c.docStyle)return w[0];for(let B=0;B{window.removeEventListener("click",c.suppressClickInternal,!0)},0)}static getScale(w){let B=w.getBoundingClientRect();return{x:B.width/w.offsetWidth||1,y:B.height/w.offsetHeight||1,boundingClientRect:B}}static getPoint(w,B,Q){let ee=B.boundingClientRect;return new a.P((Q.clientX-ee.left)/B.x-w.clientLeft,(Q.clientY-ee.top)/B.y-w.clientTop)}static mousePos(w,B){let Q=c.getScale(w);return c.getPoint(w,Q,B)}static touchPos(w,B){let Q=[],ee=c.getScale(w);for(let le=0;le{h&&b(h),h=null,m=!0},d.onerror=()=>{v=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ue){let w,B,Q,ee;ue.resetRequestQueue=()=>{w=[],B=0,Q=0,ee={}},ue.addThrottleControl=ut=>{let Mt=Q++;return ee[Mt]=ut,Mt},ue.removeThrottleControl=ut=>{delete ee[ut],Fe()},ue.getImage=(ut,Mt,Jt=!0)=>new Promise(($t,yr)=>{f.supported&&(ut.headers||(ut.headers={}),ut.headers.accept="image/webp,*/*"),a.e(ut,{type:"image"}),w.push({abortController:Mt,requestParameters:ut,supportImageRefresh:Jt,state:"queued",onError:Cr=>{yr(Cr)},onSuccess:Cr=>{$t(Cr)}}),Fe()});let le=ut=>a._(this,void 0,void 0,function*(){ut.state="running";let{requestParameters:Mt,supportImageRefresh:Jt,onError:$t,onSuccess:yr,abortController:Cr}=ut,ve=Jt===!1&&!a.i(self)&&!a.g(Mt.url)&&(!Mt.headers||Object.keys(Mt.headers).reduce((ze,Qe)=>ze&&Qe==="accept",!0));B++;let xe=ve?Ze(Mt,Cr):a.m(Mt,Cr);try{let ze=yield xe;delete ut.abortController,ut.state="completed",ze.data instanceof HTMLImageElement||a.b(ze.data)?yr(ze):ze.data&&yr({data:yield(Ie=ze.data,typeof createImageBitmap=="function"?a.d(Ie):a.f(Ie)),cacheControl:ze.cacheControl,expires:ze.expires})}catch(ze){delete ut.abortController,$t(ze)}finally{B--,Fe()}var Ie}),Fe=()=>{let ut=(()=>{for(let Mt of Object.keys(ee))if(ee[Mt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Mt=B;Mt0;Mt++){let Jt=w.shift();Jt.abortController.signal.aborted?Mt--:le(Jt)}},Ze=(ut,Mt)=>new Promise((Jt,$t)=>{let yr=new Image,Cr=ut.url,ve=ut.credentials;ve&&ve==="include"?yr.crossOrigin="use-credentials":(ve&&ve==="same-origin"||!a.s(Cr))&&(yr.crossOrigin="anonymous"),Mt.signal.addEventListener("abort",()=>{yr.src="",$t(a.c())}),yr.fetchPriority="high",yr.onload=()=>{yr.onerror=yr.onload=null,Jt({data:yr})},yr.onerror=()=>{yr.onerror=yr.onload=null,Mt.signal.aborted||$t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},yr.src=Cr})}(p||(p={})),p.resetRequestQueue();class k{constructor(w){this._transformRequestFn=w}transformRequest(w,B){return this._transformRequestFn&&this._transformRequestFn(w,B)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function M(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var T,L=function(ue,w,B){return ue[0]=w[0]-B[0],ue[1]=w[1]-B[1],ue[2]=w[2]-B[2],ue};T=new a.A(3),a.A!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0);var x=function(ue){var w=ue[0],B=ue[1];return w*w+B*B};function C(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let B=[];for(let{id:Q,url:ee}of ue){let le=`${Q}${ee}`;B.indexOf(le)===-1&&(B.push(le),w.push({id:Q,url:ee}))}}return w}function S(ue,w,B){let Q=ue.split("?");return Q[0]+=`${w}${B}`,Q.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class g{constructor(w,B,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(B,ee)}update(w,B,Q){let{width:ee,height:le}=w,Fe=!(this.size&&this.size[0]===ee&&this.size[1]===le||Q),{context:Ze}=this,{gl:ut}=Ze;if(this.useMipmap=!!(B&&B.useMipmap),ut.bindTexture(ut.TEXTURE_2D,this.texture),Ze.pixelStoreUnpackFlipY.set(!1),Ze.pixelStoreUnpack.set(1),Ze.pixelStoreUnpackPremultiplyAlpha.set(this.format===ut.RGBA&&(!B||B.premultiply!==!1)),Fe)this.size=[ee,le],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ut.texImage2D(ut.TEXTURE_2D,0,this.format,this.format,ut.UNSIGNED_BYTE,w):ut.texImage2D(ut.TEXTURE_2D,0,this.format,ee,le,0,this.format,ut.UNSIGNED_BYTE,w.data);else{let{x:Mt,y:Jt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ut.texSubImage2D(ut.TEXTURE_2D,0,Mt,Jt,ut.RGBA,ut.UNSIGNED_BYTE,w):ut.texSubImage2D(ut.TEXTURE_2D,0,Mt,Jt,ee,le,ut.RGBA,ut.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&ut.generateMipmap(ut.TEXTURE_2D)}bind(w,B,Q){let{context:ee}=this,{gl:le}=ee;le.bindTexture(le.TEXTURE_2D,this.texture),Q!==le.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=le.LINEAR),w!==this.filter&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,w),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,Q||w),this.filter=w),B!==this.wrap&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,B),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,B),this.wrap=B)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class E extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:B,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(B));this.requestors=[]}}getImage(w){let B=this.images[w];if(B&&!B.data&&B.spriteData){let Q=B.spriteData;B.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),B.spriteData=null}return B}addImage(w,B){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,B)&&(this.images[w]=B)}_validate(w,B){let Q=!0,ee=B.data||B.spriteData;return this._validateStretch(B.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(B.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(B.content,B)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,B){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let le of w)this.images[le]||(ee=!1);this.isLoaded()||ee?B(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:B})})}_getImagesForIds(w){let B={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?B[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return B}getPixelSize(){let{width:w,height:B}=this.atlasImage;return{width:w,height:B}}getPattern(w){let B=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(B&&B.position.version===Q.version)return B.position;if(B)B.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},le=new a.I(ee,Q);this.patterns[w]={bin:ee,position:le}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let B=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new g(w,this.atlasImage,B.RGBA),this.atlasTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let le in this.patterns)w.push(this.patterns[le].bin);let{w:B,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:B||1,height:Q||1});for(let le in this.patterns){let{bin:Fe}=this.patterns[le],Ze=Fe.x+1,ut=Fe.y+1,Mt=this.getImage(le).data,Jt=Mt.width,$t=Mt.height;a.R.copy(Mt,ee,{x:0,y:0},{x:Ze,y:ut},{width:Jt,height:$t}),a.R.copy(Mt,ee,{x:0,y:$t-1},{x:Ze,y:ut-1},{width:Jt,height:1}),a.R.copy(Mt,ee,{x:0,y:0},{x:Ze,y:ut+$t},{width:Jt,height:1}),a.R.copy(Mt,ee,{x:Jt-1,y:0},{x:Ze-1,y:ut},{width:1,height:$t}),a.R.copy(Mt,ee,{x:0,y:0},{x:Ze+Jt,y:ut},{width:1,height:$t})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let B of w){if(this.callbackDispatchedThisFrame[B])continue;this.callbackDispatchedThisFrame[B]=!0;let Q=this.getImage(B);Q||a.w(`Image with ID: "${B}" was not found`),P(Q)&&this.updateImage(B,Q)}}}let z=1e20;function q(ue,w,B,Q,ee,le,Fe,Ze,ut){for(let Mt=w;Mt-1);ut++,le[ut]=Ze,Fe[ut]=Mt,Fe[ut+1]=z}for(let Ze=0,ut=0;Ze65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[le])return{stack:w,id:B,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[le]){let Ze=G.loadGlyphRange(w,le,this.url,this.requestManager);Q.requests[le]=Ze}let Fe=yield Q.requests[le];for(let Ze in Fe)this._doesCharSupportLocalGlyph(+Ze)||(Q.glyphs[+Ze]=Fe[+Ze]);return Q.ranges[le]=!0,{stack:w,id:B,glyph:Fe[B]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,B,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let le=w.tinySDF;if(!le){let Ze="400";/bold/i.test(B)?Ze="900":/medium/i.test(B)?Ze="500":/light/i.test(B)&&(Ze="200"),le=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:Ze})}let Fe=le.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Fe.width||60,height:Fe.height||60},Fe.data),metrics:{width:Fe.glyphWidth/2||24,height:Fe.glyphHeight/2||24,left:Fe.glyphLeft/2+.5||0,top:Fe.glyphTop/2-27.5||-8,advance:Fe.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(ue,w,B,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,le=ee+255,Fe=Q.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${ee}-${le}`),"Glyphs"),Ze=yield a.l(Fe,new AbortController);if(!Ze||!Ze.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${le}`);let ut={};for(let Mt of a.n(Ze.data))ut[Mt.id]=Mt;return ut})},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:le="normal",fontStyle:Fe="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=B;let Ze=this.size=ue+4*w,ut=this._createCanvas(Ze),Mt=this.ctx=ut.getContext("2d",{willReadFrequently:!0});Mt.font=`${Fe} ${le} ${ue}px ${ee}`,Mt.textBaseline="alphabetic",Mt.textAlign="left",Mt.fillStyle="black",this.gridOuter=new Float64Array(Ze*Ze),this.gridInner=new Float64Array(Ze*Ze),this.f=new Float64Array(Ze),this.z=new Float64Array(Ze+1),this.v=new Uint16Array(Ze)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:B,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:le}=this.ctx.measureText(ue),Fe=Math.ceil(B),Ze=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-ee))),ut=Math.min(this.size-this.buffer,Fe+Math.ceil(Q)),Mt=Ze+2*this.buffer,Jt=ut+2*this.buffer,$t=Math.max(Mt*Jt,0),yr=new Uint8ClampedArray($t),Cr={data:yr,width:Mt,height:Jt,glyphWidth:Ze,glyphHeight:ut,glyphTop:Fe,glyphLeft:0,glyphAdvance:w};if(Ze===0||ut===0)return Cr;let{ctx:ve,buffer:xe,gridInner:Ie,gridOuter:ze}=this;ve.clearRect(xe,xe,Ze,ut),ve.fillText(ue,xe,xe+Fe);let Qe=ve.getImageData(xe,xe,Ze,ut);ze.fill(z,0,$t),Ie.fill(0,0,$t);for(let Xe=0;Xe0?nr*nr:0,Ie[Wt]=nr<0?nr*nr:0}}q(ze,0,0,Mt,Jt,Mt,this.f,this.v,this.z),q(Ie,xe,xe,Ze,ut,Mt,this.f,this.v,this.z);for(let Xe=0;Xe<$t;Xe++){let nt=Math.sqrt(ze[Xe])-Math.sqrt(Ie[Xe]);yr[Xe]=Math.round(255-255*(nt/this.radius+this.cutoff))}return Cr}};class Z{constructor(){this.specification=a.v.light.position}possiblyEvaluate(w,B){return a.x(w.expression.evaluate(B))}interpolate(w,B,Q){return{x:a.y.number(w.x,B.x,Q),y:a.y.number(w.y,B.y,Q),z:a.y.number(w.z,B.z,Q)}}}let j;class N extends a.E{constructor(w){super(),j=j||new a.q({anchor:new a.D(a.v.light.anchor),position:new Z,color:new a.D(a.v.light.color),intensity:new a.D(a.v.light.intensity)}),this._transitionable=new a.T(j),this.setLight(w),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(w,B={}){if(!this._validate(a.r,w,B))for(let Q in w){let ee=w[Q];Q.endsWith("-transition")?this._transitionable.setTransition(Q.slice(0,-11),ee):this._transitionable.setValue(Q,ee)}}updateTransitions(w){this._transitioning=this._transitionable.transitioned(w,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(w){this.properties=this._transitioning.possiblyEvaluate(w)}_validate(w,B,Q){return(!Q||Q.validate!==!1)&&a.t(this,w.call(a.u,{value:B,style:{glyphs:!0,sprite:!0},styleSpec:a.v}))}}let H=new a.q({"sky-color":new a.D(a.v.sky["sky-color"]),"horizon-color":new a.D(a.v.sky["horizon-color"]),"fog-color":new a.D(a.v.sky["fog-color"]),"fog-ground-blend":new a.D(a.v.sky["fog-ground-blend"]),"horizon-fog-blend":new a.D(a.v.sky["horizon-fog-blend"]),"sky-horizon-blend":new a.D(a.v.sky["sky-horizon-blend"]),"atmosphere-blend":new a.D(a.v.sky["atmosphere-blend"])});class ie extends a.E{constructor(w){super(),this._transitionable=new a.T(H),this.setSky(w),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new a.z(0))}setSky(w,B={}){if(!this._validate(a.B,w,B)){w||(w={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0});for(let Q in w){let ee=w[Q];Q.endsWith("-transition")?this._transitionable.setTransition(Q.slice(0,-11),ee):this._transitionable.setValue(Q,ee)}}}getSky(){return this._transitionable.serialize()}updateTransitions(w){this._transitioning=this._transitionable.transitioned(w,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(w){this.properties=this._transitioning.possiblyEvaluate(w)}_validate(w,B,Q={}){return(Q==null?void 0:Q.validate)!==!1&&a.t(this,w.call(a.u,a.e({value:B,style:{glyphs:!0,sprite:!0},styleSpec:a.v})))}calculateFogBlendOpacity(w){return w<60?0:w<70?(w-60)/10:1}}class ae{constructor(w,B){this.width=w,this.height=B,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(w,B){let Q=w.join(",")+String(B);return this.dashEntry[Q]||(this.dashEntry[Q]=this.addDash(w,B)),this.dashEntry[Q]}getDashRanges(w,B,Q){let ee=[],le=w.length%2==1?-w[w.length-1]*Q:0,Fe=w[0]*Q,Ze=!0;ee.push({left:le,right:Fe,isDash:Ze,zeroLength:w[0]===0});let ut=w[0];for(let Mt=1;Mt1&&(ut=w[++Ze]);let Jt=Math.abs(Mt-ut.left),$t=Math.abs(Mt-ut.right),yr=Math.min(Jt,$t),Cr,ve=le/Q*(ee+1);if(ut.isDash){let xe=ee-Math.abs(ve);Cr=Math.sqrt(yr*yr+xe*xe)}else Cr=ee-Math.sqrt(yr*yr+ve*ve);this.data[Fe+Mt]=Math.max(0,Math.min(255,Cr+128))}}}addRegularDash(w){for(let Ze=w.length-1;Ze>=0;--Ze){let ut=w[Ze],Mt=w[Ze+1];ut.zeroLength?w.splice(Ze,1):Mt&&Mt.isDash===ut.isDash&&(Mt.left=ut.left,w.splice(Ze,1))}let B=w[0],Q=w[w.length-1];B.isDash===Q.isDash&&(B.left=Q.left-this.width,Q.right=B.right+this.width);let ee=this.width*this.nextRow,le=0,Fe=w[le];for(let Ze=0;Ze1&&(Fe=w[++le]);let ut=Math.abs(Ze-Fe.left),Mt=Math.abs(Ze-Fe.right),Jt=Math.min(ut,Mt);this.data[ee+Ze]=Math.max(0,Math.min(255,(Fe.isDash?Jt:-Jt)+128))}}addDash(w,B){let Q=B?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let le=0;for(let Ze=0;Ze{B.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[_e]}numActive(){return Object.keys(this.active).length}}let Ce=Math.floor(u.hardwareConcurrency/2),ge,re;function Se(){return ge||(ge=new Ee),ge}Ee.workerCount=a.C(globalThis)?Math.max(Math.min(Ce,3),1):1;class ke{constructor(w,B){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=B;let Q=this.workerPool.acquire(B);for(let ee=0;ee{B.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,B){for(let Q of this.actors)Q.registerMessageHandler(w,B)}}function be(){return re||(re=new ke(Se(),a.G),re.registerMessageHandler("GR",(ue,w,B)=>a.m(w,B))),re}function Be(ue,w){let B=a.H();return a.J(B,B,[1,1,0]),a.K(B,B,[.5*ue.width,.5*ue.height,1]),a.L(B,B,ue.calculatePosMatrix(w.toUnwrapped()))}function Le(ue,w,B,Q,ee,le){let Fe=function($t,yr,Cr){if($t)for(let ve of $t){let xe=yr[ve];if(xe&&xe.source===Cr&&xe.type==="fill-extrusion")return!0}else for(let ve in yr){let xe=yr[ve];if(xe.source===Cr&&xe.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,ue.id),Ze=le.maxPitchScaleFactor(),ut=ue.tilesIn(Q,Ze,Fe);ut.sort(me);let Mt=[];for(let $t of ut)Mt.push({wrappedTileID:$t.tileID.wrapped().key,queryResults:$t.tile.queryRenderedFeatures(w,B,ue._state,$t.queryGeometry,$t.cameraQueryGeometry,$t.scale,ee,le,Ze,Be(ue.transform,$t.tileID))});let Jt=function($t){let yr={},Cr={};for(let ve of $t){let xe=ve.queryResults,Ie=ve.wrappedTileID,ze=Cr[Ie]=Cr[Ie]||{};for(let Qe in xe){let Xe=xe[Qe],nt=ze[Qe]=ze[Qe]||{},qt=yr[Qe]=yr[Qe]||[];for(let Wt of Xe)nt[Wt.featureIndex]||(nt[Wt.featureIndex]=!0,qt.push(Wt))}}return yr}(Mt);for(let $t in Jt)Jt[$t].forEach(yr=>{let Cr=yr.feature,ve=ue.getFeatureState(Cr.layer["source-layer"],Cr.id);Cr.source=Cr.layer.source,Cr.layer["source-layer"]&&(Cr.sourceLayer=Cr.layer["source-layer"]),Cr.state=ve});return Jt}function me(ue,w){let B=ue.tileID,Q=w.tileID;return B.overscaledZ-Q.overscaledZ||B.canonical.y-Q.canonical.y||B.wrap-Q.wrap||B.canonical.x-Q.canonical.x}function Pe(ue,w,B){return a._(this,void 0,void 0,function*(){let Q=ue;if(ue.url?Q=(yield a.h(w.transformRequest(ue.url,"Source"),B)).data:yield u.frameAsync(B),!Q)return null;let ee=a.M(a.e(Q,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(le=>le.id)),ee})}class ce{constructor(w,B){w&&(B?this.setSouthWest(w).setNorthEast(B):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let B=this._sw,Q=this._ne,ee,le;if(w instanceof a.N)ee=w,le=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,le=w._ne,!ee||!le)return this}return B||Q?(B.lng=Math.min(ee.lng,B.lng),B.lat=Math.min(ee.lat,B.lat),Q.lng=Math.max(le.lng,Q.lng),Q.lat=Math.max(le.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(le.lng,le.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:B,lat:Q}=a.N.convert(w),ee=this._sw.lng<=B&&B<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=B&&B>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,B=0){let Q=360*B/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),B=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>B.lng?new a.N(B.lng+360,B.lat):B)}}class He{constructor(w,B,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=B||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let B=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*B),ee=Math.floor(a.Q(this.bounds.getNorth())*B),le=Math.ceil(a.O(this.bounds.getEast())*B),Fe=Math.ceil(a.Q(this.bounds.getSouth())*B);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(B,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((le,Fe)=>{w.reloadPromise={resolve:le,reject:Fe}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let le=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,le)}catch(le){if(delete w.abortController,w.aborted)return;if(le&&le.status!==404)throw le;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,B){if(B&&B.resourceTiming&&(w.resourceTiming=B.resourceTiming),B&&this.map._refreshExpiredTiles&&w.setExpiryData(B),w.loadVectorData(B,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class mt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},B),a.e(this,a.M(B,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Pe(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new He(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield p.getImage(this.map._requestManager.transformRequest(B,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,le=ee.gl,Fe=Q.data;w.texture=this.map.painter.getTileTexture(Fe.width),w.texture?w.texture.update(Fe,{useMipmap:!0}):(w.texture=new g(ee,Fe,le.RGBA,{useMipmap:!0}),w.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE,le.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Ht extends mt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},B),this.encoding=B.encoding||"mapbox",this.redFactor=B.redFactor,this.greenFactor=B.greenFactor,this.blueFactor=B.blueFactor,this.baseShift=B.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(B,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield p.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let le=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Fe=a.b(le)&&a.U()?le:yield this.readImageNow(le),Ze={type:this.type,uid:w.uid,source:this.id,rawImageData:Fe,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let ut=yield w.actor.sendAsync({type:"LDT",data:Ze});w.dem=ut,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let B=w.width+2,Q=w.height+2;try{return new a.R({width:B,height:Q},yield a.W(w,-1,-1,B,Q))}catch(ee){}}return u.getImageData(w,1)})}_getNeighboringTiles(w){let B=w.canonical,Q=Math.pow(2,B.z),ee=(B.x-1+Q)%Q,le=B.x===0?w.wrap-1:w.wrap,Fe=(B.x+1+Q)%Q,Ze=B.x+1===Q?w.wrap+1:w.wrap,ut={};return ut[new a.S(w.overscaledZ,le,B.z,ee,B.y).key]={backfilled:!1},ut[new a.S(w.overscaledZ,Ze,B.z,Fe,B.y).key]={backfilled:!1},B.y>0&&(ut[new a.S(w.overscaledZ,le,B.z,ee,B.y-1).key]={backfilled:!1},ut[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},ut[new a.S(w.overscaledZ,Ze,B.z,Fe,B.y-1).key]={backfilled:!1}),B.y+10&&a.e(le,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:B,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,B==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var ct=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class ar extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=B}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let B=yield p.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,B&&B.data&&(this.image=B.data,w&&(this.coordinates=w),this._finishLoading())}catch(B){this._request=null,this._loaded=!0,this.fire(new a.j(B))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let B=w.map(a.Z.fromLngLat);this.tileID=function(ee){let le=1/0,Fe=1/0,Ze=-1/0,ut=-1/0;for(let yr of ee)le=Math.min(le,yr.x),Fe=Math.min(Fe,yr.y),Ze=Math.max(Ze,yr.x),ut=Math.max(ut,yr.y);let Mt=Math.max(Ze-le,ut-Fe),Jt=Math.max(0,Math.floor(-Math.log(Mt)/Math.LN2)),$t=Math.pow(2,Jt);return new a.a1(Jt,Math.floor((le+Ze)/2*$t),Math.floor((Fe+ut)/2*$t))}(B),this.minzoom=this.maxzoom=this.tileID.z;let Q=B.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,ct.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new g(w,this.image,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Vt extends ar{constructor(w,B,Q,ee){super(w,B,Q,ee),this.roundZoom=!0,this.type="video",this.options=B}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let B of w.urls)this.urls.push(this.map._requestManager.transformRequest(B,"Source").url);try{let B=yield a.a3(this.urls);if(this._loaded=!0,!B)return;this.video=B,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(B){this.fire(new a.j(B))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let B=this.video.seekable;wB.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${B.start(0)} and ${B.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,ct.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE),B.texSubImage2D(B.TEXTURE_2D,0,0,0,B.RGBA,B.UNSIGNED_BYTE,this.video)):(this.texture=new g(w,this.video,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class rr extends ar{constructor(w,B,Q,ee){super(w,B,Q,ee),B.coordinates?Array.isArray(B.coordinates)&&B.coordinates.length===4&&!B.coordinates.some(le=>!Array.isArray(le)||le.length!==2||le.some(Fe=>typeof Fe!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas=="string"||B.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate===void 0||B.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let B=this.map.painter.context,Q=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,ct.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new g(B,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let le in this.tiles){let Fe=this.tiles[le];Fe.state!=="loaded"&&(Fe.state="loaded",Fe.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let tt={},je=ue=>{switch(ue){case"geojson":return at;case"image":return ar;case"raster":return mt;case"raster-dem":return Ht;case"vector":return lt;case"video":return Vt;case"canvas":return rr}return tt[ue]},Ue="RTLPluginLoaded";class Ae extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=be()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(B=>{throw this.status="error",B})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(B,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=u.resolveURL(B),!this.url)throw new Error(`requested url ${B} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(Ue))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let rt=null;function St(){return rt||(rt=new Ae),rt}class Tt{constructor(w,B){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=B,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let B=w+this.timeAdded;Ble.getLayer(Mt)).filter(Boolean);if(ut.length!==0){Ze.layers=ut,Ze.stateDependentLayerIds&&(Ze.stateDependentLayers=Ze.stateDependentLayerIds.map(Mt=>ut.filter(Jt=>Jt.id===Mt)[0]));for(let Mt of ut)Fe[Mt.id]=Ze}}return Fe}(w.buckets,B.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;le.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6&&le.hasRTLText){this.hasRTLText=!0,St().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let le=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,B.style.getLayer(ee).queryRadius(le))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let B=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new g(w,this.imageAtlas.image,B.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new g(w,this.glyphAtlasImage,B.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:le,scale:Fe,tileSize:this.tileSize,pixelPosMatrix:Jt,transform:ut,params:Ze,queryPadding:this.queryPadding*Mt},w,B,Q):{}}querySourceFeatures(w,B){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),le=B&&B.sourceLayer?B.sourceLayer:"",Fe=ee._geojsonTileLayer||ee[le];if(!Fe)return;let Ze=a.a7(B&&B.filter),{z:ut,x:Mt,y:Jt}=this.tileID.canonical,$t={z:ut,x:Mt,y:Jt};for(let yr=0;yrQ)ee=!1;else if(B)if(this.expirationTime{this.remove(w,le)},Q)),this.data[ee].push(le),this.order.push(ee),this.order.length>this.max){let Fe=this._getAndRemoveByKey(this.order[0]);Fe&&this.onRemove(Fe)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let B=this.data[w].shift();return B.timeout&&clearTimeout(B.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),B.value}getByKey(w){let B=this.data[w];return B?B[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,B){if(!this.has(w))return this;let Q=w.wrapped().key,ee=B===void 0?0:this.data[Q].indexOf(B),le=this.data[Q][ee];return this.data[Q].splice(ee,1),le.timeout&&clearTimeout(le.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(le.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let B=this._getAndRemoveByKey(this.order[0]);B&&this.onRemove(B)}return this}filter(w){let B=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||B.push(ee);for(let Q of B)this.remove(Q.value.tileID,Q)}}class Et{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,B,Q){let ee=String(B);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let le in this.state[w])le!==ee&&(this.deletedStates[w][le]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let le in this.state[w][ee])Q[le]||(this.deletedStates[w][ee][le]=null)}else for(let le in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][le]===null&&delete this.deletedStates[w][ee][le]}removeFeatureState(w,B,Q){if(this.deletedStates[w]===null)return;let ee=String(B);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&B!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(B!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,B){let Q=String(B),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let le=this.deletedStates[w][B];if(le===null)return{};for(let Fe in le)delete ee[Fe]}return ee}initializeTileState(w,B){w.setFeatureState(this.state,B)}coalesceChanges(w,B){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let le={};for(let Fe in this.stateChanges[ee])this.state[ee][Fe]||(this.state[ee][Fe]={}),a.e(this.state[ee][Fe],this.stateChanges[ee][Fe]),le[Fe]=this.state[ee][Fe];Q[ee]=le}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let le={};if(this.deletedStates[ee]===null)for(let Fe in this.state[ee])le[Fe]={},this.state[ee][Fe]={};else for(let Fe in this.deletedStates[ee]){if(this.deletedStates[ee][Fe]===null)this.state[ee][Fe]={};else for(let Ze of Object.keys(this.deletedStates[ee][Fe]))delete this.state[ee][Fe][Ze];le[Fe]=this.state[ee][Fe]}Q[ee]=Q[ee]||{},a.e(Q[ee],le)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,B)}}class pt extends a.E{constructor(w,B,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,le,Fe,Ze)=>{let ut=new(je(le.type))(ee,le,Fe,Ze);if(ut.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${ut.id}`);return ut})(w,B,Q,this),this._tiles={},this._cache=new dt(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Et,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let B=this._tiles[w];if(B.state!=="loaded"&&B.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,B,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,B,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let B in this._tiles){let Q=this._tiles[B];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort(jt).map(w=>w.key)}getRenderableIds(w){let B=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&B.push(this._tiles[Q]);return w?B.sort((Q,ee)=>{let le=Q.tileID,Fe=ee.tileID,Ze=new a.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle),ut=new a.P(Fe.canonical.x,Fe.canonical.y)._rotate(this.transform.angle);return le.overscaledZ-Fe.overscaledZ||ut.y-Ze.y||ut.x-Ze.x}).map(Q=>Q.tileID.key):B.map(Q=>Q.tileID).sort(jt).map(Q=>Q.key)}hasRenderableParent(w){let B=this.findLoadedParent(w,0);return!!B&&this._isIdRenderable(B.tileID.key)}_isIdRenderable(w,B){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(B||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,B){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=B),yield this._loadTile(Q,w,B))})}_tileLoaded(w,B,Q){w.timeAdded=u.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(B,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let B=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(Fe)>1&&(Math.abs(Fe+ut)===1?Fe+=ut:Math.abs(Fe-ut)===1&&(Fe-=ut)),le.dem&&ee.dem&&(ee.dem.backfillBorder(le.dem,Fe,Ze),ee.neighboringTiles&&ee.neighboringTiles[Mt]&&(ee.neighboringTiles[Mt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,B,Q,ee){for(let le in this._tiles){let Fe=this._tiles[le];if(ee[le]||!Fe.hasData()||Fe.tileID.overscaledZ<=B||Fe.tileID.overscaledZ>Q)continue;let Ze=Fe.tileID;for(;Fe&&Fe.tileID.overscaledZ>B+1;){let Mt=Fe.tileID.scaledTo(Fe.tileID.overscaledZ-1);Fe=this._tiles[Mt.key],Fe&&Fe.hasData()&&(Ze=Mt)}let ut=Ze;for(;ut.overscaledZ>B;)if(ut=ut.scaledTo(ut.overscaledZ-1),w[ut.key]){ee[Ze.key]=Ze;break}}}findLoadedParent(w,B){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=B?Q:null}for(let Q=w.overscaledZ-1;Q>=B;Q--){let ee=w.scaledTo(Q),le=this._getLoadedTile(ee);if(le)return le}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let B=this._tiles[w.key];return B&&B.hasData()?B:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let B=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(B*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),le=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(le)}handleWrapJump(w){let B=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,B){let Q={};for(let ee in this._tiles){let le=this._tiles[ee];le.tileID=le.tileID.unwrapTo(le.tileID.wrap+B),Q[le.tileID.key]=le}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,B,Q,ee,le,Fe){let Ze={},ut={},Mt=Object.keys(w),Jt=u.now();for(let $t of Mt){let yr=w[$t],Cr=this._tiles[$t];if(!Cr||Cr.fadeEndTime!==0&&Cr.fadeEndTime<=Jt)continue;let ve=this.findLoadedParent(yr,B),xe=this.findLoadedSibling(yr),Ie=ve||xe||null;Ie&&(this._addTile(Ie.tileID),Ze[Ie.tileID.key]=Ie.tileID),ut[$t]=yr}this._retainLoadedChildren(ut,ee,Q,w);for(let $t in Ze)w[$t]||(this._coveredTiles[$t]=!0,w[$t]=Ze[$t]);if(Fe){let $t={},yr={};for(let Cr of le)this._tiles[Cr.key].hasData()?$t[Cr.key]=Cr:yr[Cr.key]=Cr;for(let Cr in yr){let ve=yr[Cr].children(this._source.maxzoom);this._tiles[ve[0].key]&&this._tiles[ve[1].key]&&this._tiles[ve[2].key]&&this._tiles[ve[3].key]&&($t[ve[0].key]=w[ve[0].key]=ve[0],$t[ve[1].key]=w[ve[1].key]=ve[1],$t[ve[2].key]=w[ve[2].key]=ve[2],$t[ve[3].key]=w[ve[3].key]=ve[3],delete yr[Cr])}for(let Cr in yr){let ve=yr[Cr],xe=this.findLoadedParent(ve,this._source.minzoom),Ie=this.findLoadedSibling(ve),ze=xe||Ie||null;if(ze){$t[ze.tileID.key]=w[ze.tileID.key]=ze.tileID;for(let Qe in $t)$t[Qe].isChildOf(ze.tileID)&&delete $t[Qe]}}for(let Cr in this._tiles)$t[Cr]||(this._coveredTiles[Cr]=!0)}}update(w,B){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=B,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(Jt=>new a.S(Jt.canonical.z,Jt.wrap,Jt.canonical.z,Jt.canonical.x,Jt.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:B}),this._source.hasTile&&(Q=Q.filter(Jt=>this._source.hasTile(Jt)))):Q=[];let ee=w.coveringZoomLevel(this._source),le=Math.max(ee-pt.maxOverzooming,this._source.minzoom),Fe=Math.max(ee+pt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Jt={};for(let $t of Q)if($t.canonical.z>this._source.minzoom){let yr=$t.scaledTo($t.canonical.z-1);Jt[yr.key]=yr;let Cr=$t.scaledTo(Math.max(this._source.minzoom,Math.min($t.canonical.z,5)));Jt[Cr.key]=Cr}Q=Q.concat(Object.values(Jt))}let Ze=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,Ze&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let ut=this._updateRetainedTiles(Q,ee);or(this._source.type)&&this._updateCoveredAndRetainedTiles(ut,le,Fe,ee,Q,B);for(let Jt in ut)this._tiles[Jt].clearFadeHold();let Mt=a.ab(this._tiles,ut);for(let Jt of Mt){let $t=this._tiles[Jt];$t.hasSymbolBuckets&&!$t.holdingForFade()?$t.setHoldDuration(this.map._fadeDuration):$t.hasSymbolBuckets&&!$t.symbolFadeFinished()||this._removeTile(Jt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,B){var Q;let ee={},le={},Fe=Math.max(B-pt.maxOverzooming,this._source.minzoom),Ze=Math.max(B+pt.maxUnderzooming,this._source.minzoom),ut={};for(let Mt of w){let Jt=this._addTile(Mt);ee[Mt.key]=Mt,Jt.hasData()||Bthis._source.maxzoom){let yr=Mt.children(this._source.maxzoom)[0],Cr=this.getTile(yr);if(Cr&&Cr.hasData()){ee[yr.key]=yr;continue}}else{let yr=Mt.children(this._source.maxzoom);if(ee[yr[0].key]&&ee[yr[1].key]&&ee[yr[2].key]&&ee[yr[3].key])continue}let $t=Jt.wasRequested();for(let yr=Mt.overscaledZ-1;yr>=Fe;--yr){let Cr=Mt.scaledTo(yr);if(le[Cr.key])break;if(le[Cr.key]=!0,Jt=this.getTile(Cr),!Jt&&$t&&(Jt=this._addTile(Cr)),Jt){let ve=Jt.hasData();if((ve||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||$t)&&(ee[Cr.key]=Cr),$t=Jt.wasRequested(),ve)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let B=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}B.push(ee.key);let le=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(le),Q)break;ee=le}for(let le of B)this._loadedParentTiles[le]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let B=this._tiles[w].tileID,Q=this._getLoadedTile(B);this._loadedSiblingTiles[B.key]=Q}}_addTile(w){let B=this._tiles[w.key];if(B)return B;B=this._cache.getAndRemove(w),B&&(this._setTileReloadTimer(w.key,B),B.tileID=w,this._state.initializeTileState(B,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,B)));let Q=B;return B||(B=new Tt(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(B,w.key,B.state)),B.uses++,this._tiles[w.key]=B,Q||this._source.fire(new a.k("dataloading",{tile:B,coord:B.tileID,dataType:"source"})),B}_setTileReloadTimer(w,B){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=B.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let B=this._tiles[w];B&&(B.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),B.uses>0||(B.hasData()&&B.state!=="reloading"?this._cache.add(B.tileID,B,B.getExpiryTimeout()):(B.aborted=!0,this._abortTile(B),this._unloadTile(B))))}_dataHandler(w){let B=w.sourceDataType;w.dataType==="source"&&B==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&B==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,B,Q){let ee=[],le=this.transform;if(!le)return ee;let Fe=Q?le.getCameraQueryGeometry(w):w,Ze=w.map(ve=>le.pointCoordinate(ve,this.terrain)),ut=Fe.map(ve=>le.pointCoordinate(ve,this.terrain)),Mt=this.getIds(),Jt=1/0,$t=1/0,yr=-1/0,Cr=-1/0;for(let ve of ut)Jt=Math.min(Jt,ve.x),$t=Math.min($t,ve.y),yr=Math.max(yr,ve.x),Cr=Math.max(Cr,ve.y);for(let ve=0;ve=0&&Xe[1].y+Qe>=0){let nt=Ze.map(Wt=>Ie.getTilePoint(Wt)),qt=ut.map(Wt=>Ie.getTilePoint(Wt));ee.push({tile:xe,tileID:Ie,queryGeometry:nt,cameraQueryGeometry:qt,scale:ze})}}return ee}getVisibleCoordinates(w){let B=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of B)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return B}hasTransition(){if(this._source.hasTransition())return!0;if(or(this._source.type)){let w=u.now();for(let B in this._tiles)if(this._tiles[B].fadeEndTime>=w)return!0}return!1}setFeatureState(w,B,Q){this._state.updateState(w=w||"_geojsonTileLayer",B,Q)}removeFeatureState(w,B,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",B,Q)}getFeatureState(w,B){return this._state.getState(w=w||"_geojsonTileLayer",B)}setDependencies(w,B,Q){let ee=this._tiles[w];ee&&ee.setDependencies(B,Q)}reloadTilesForDependencies(w,B){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,B)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,B))}}function jt(ue,w){let B=Math.abs(2*ue.wrap)-+(ue.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||Q-B||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function or(ue){return ue==="raster"||ue==="image"||ue==="video"}pt.maxOverzooming=10,pt.maxUnderzooming=3;class mr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Fe)/Ze:0;return this.points[le].mult(1-ut).add(this.points[B].mult(ut))}}function Ar(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class ei{constructor(w,B,Q){let ee=this.boxCells=[],le=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(B/Q);for(let Fe=0;Fethis.width||ee<0||B>this.height)return[];let ut=[];if(w<=0&&B<=0&&this.width<=Q&&this.height<=ee){if(le)return[{key:null,x1:w,y1:B,x2:Q,y2:ee}];for(let Mt=0;Mt0}hitTestCircle(w,B,Q,ee,le){let Fe=w-Q,Ze=w+Q,ut=B-Q,Mt=B+Q;if(Ze<0||Fe>this.width||Mt<0||ut>this.height)return!1;let Jt=[];return this._forEachCell(Fe,ut,Ze,Mt,this._queryCellCircle,Jt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:B,radius:Q},seenUids:{box:{},circle:{}}},le),Jt.length>0}_queryCell(w,B,Q,ee,le,Fe,Ze,ut){let{seenUids:Mt,hitTest:Jt,overlapMode:$t}=Ze,yr=this.boxCells[le];if(yr!==null){let ve=this.bboxes;for(let xe of yr)if(!Mt.box[xe]){Mt.box[xe]=!0;let Ie=4*xe,ze=this.boxKeys[xe];if(w<=ve[Ie+2]&&B<=ve[Ie+3]&&Q>=ve[Ie+0]&&ee>=ve[Ie+1]&&(!ut||ut(ze))&&(!Jt||!Ar($t,ze.overlapMode))&&(Fe.push({key:ze,x1:ve[Ie],y1:ve[Ie+1],x2:ve[Ie+2],y2:ve[Ie+3]}),Jt))return!0}}let Cr=this.circleCells[le];if(Cr!==null){let ve=this.circles;for(let xe of Cr)if(!Mt.circle[xe]){Mt.circle[xe]=!0;let Ie=3*xe,ze=this.circleKeys[xe];if(this._circleAndRectCollide(ve[Ie],ve[Ie+1],ve[Ie+2],w,B,Q,ee)&&(!ut||ut(ze))&&(!Jt||!Ar($t,ze.overlapMode))){let Qe=ve[Ie],Xe=ve[Ie+1],nt=ve[Ie+2];if(Fe.push({key:ze,x1:Qe-nt,y1:Xe-nt,x2:Qe+nt,y2:Xe+nt}),Jt)return!0}}}return!1}_queryCellCircle(w,B,Q,ee,le,Fe,Ze,ut){let{circle:Mt,seenUids:Jt,overlapMode:$t}=Ze,yr=this.boxCells[le];if(yr!==null){let ve=this.bboxes;for(let xe of yr)if(!Jt.box[xe]){Jt.box[xe]=!0;let Ie=4*xe,ze=this.boxKeys[xe];if(this._circleAndRectCollide(Mt.x,Mt.y,Mt.radius,ve[Ie+0],ve[Ie+1],ve[Ie+2],ve[Ie+3])&&(!ut||ut(ze))&&!Ar($t,ze.overlapMode))return Fe.push(!0),!0}}let Cr=this.circleCells[le];if(Cr!==null){let ve=this.circles;for(let xe of Cr)if(!Jt.circle[xe]){Jt.circle[xe]=!0;let Ie=3*xe,ze=this.circleKeys[xe];if(this._circlesCollide(ve[Ie],ve[Ie+1],ve[Ie+2],Mt.x,Mt.y,Mt.radius)&&(!ut||ut(ze))&&!Ar($t,ze.overlapMode))return Fe.push(!0),!0}}}_forEachCell(w,B,Q,ee,le,Fe,Ze,ut){let Mt=this._convertToXCellCoord(w),Jt=this._convertToYCellCoord(B),$t=this._convertToXCellCoord(Q),yr=this._convertToYCellCoord(ee);for(let Cr=Mt;Cr<=$t;Cr++)for(let ve=Jt;ve<=yr;ve++)if(le.call(this,w,B,Q,ee,this.xCellCount*ve+Cr,Fe,Ze,ut))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,B,Q,ee,le,Fe){let Ze=ee-w,ut=le-B,Mt=Q+Fe;return Mt*Mt>Ze*Ze+ut*ut}_circleAndRectCollide(w,B,Q,ee,le,Fe,Ze){let ut=(Fe-ee)/2,Mt=Math.abs(w-(ee+ut));if(Mt>ut+Q)return!1;let Jt=(Ze-le)/2,$t=Math.abs(B-(le+Jt));if($t>Jt+Q)return!1;if(Mt<=ut||$t<=Jt)return!0;let yr=Mt-ut,Cr=$t-Jt;return yr*yr+Cr*Cr<=Q*Q}}function qr(ue,w,B,Q,ee){let le=a.H();return w?(a.K(le,le,[1/ee,1/ee,1]),B||a.ad(le,le,Q.angle)):a.L(le,Q.labelPlaneMatrix,ue),le}function jr(ue,w,B,Q,ee){if(w){let le=a.ae(ue);return a.K(le,le,[ee,ee,1]),B||a.ad(le,le,-Q.angle),le}return Q.glCoordMatrix}function gt(ue,w,B,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,B)):(ee=[ue,w,0,1],ai(ee,ee,B));let le=ee[3];return{point:new a.P(ee[0]/le,ee[1]/le),signedDistanceFromCamera:le,isOccluded:!1}}function Ge(ue,w){return .5+ue/w*.5}function Je(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function We(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr,ve){let xe=Q?ue.textSizeData:ue.iconSizeData,Ie=a.ag(xe,B.transform.zoom),ze=[256/B.width*2+1,256/B.height*2+1],Qe=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;Qe.clear();let Xe=ue.lineVertexArray,nt=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,qt=B.transform.width/B.transform.height,Wt=!1;for(let nr=0;nrMath.abs(B.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function At(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt){let $t=B/24,yr=w.lineOffsetX*$t,Cr=w.lineOffsetY*$t,ve;if(w.numGlyphs>1){let xe=w.glyphStartIndex+w.numGlyphs,Ie=w.lineStartIndex,ze=w.lineStartIndex+w.lineLength,Qe=et($t,Ze,yr,Cr,Q,w,Jt,ue);if(!Qe)return{notEnoughRoom:!0};let Xe=gt(Qe.first.point.x,Qe.first.point.y,Fe,ue.getElevation).point,nt=gt(Qe.last.point.x,Qe.last.point.y,Fe,ue.getElevation).point;if(ee&&!Q){let qt=xt(w.writingMode,Xe,nt,Mt);if(qt)return qt}ve=[Qe.first];for(let qt=w.glyphStartIndex+1;qt0?Xe.point:function(Wt,nr,fr,br,Fr,Hr){return Kt(Wt,nr,fr,1,Fr,Hr)}(ue.tileAnchorPoint,Qe,Ie,0,le,ue),qt=xt(w.writingMode,Ie,nt,Mt);if(qt)return qt}let xe=Yr($t*Ze.getoffsetX(w.glyphStartIndex),yr,Cr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Jt);if(!xe||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};ve=[xe]}for(let xe of ve)a.aj(ut,xe.point,xe.angle);return{}}function Kt(ue,w,B,Q,ee,le){let Fe=ue.add(ue.sub(w)._unit()),Ze=ee!==void 0?gt(Fe.x,Fe.y,ee,le.getElevation).point:Mr(Fe.x,Fe.y,le).point,ut=B.sub(Ze);return B.add(ut._mult(Q/ut.mag()))}function Qt(ue,w,B){let Q=w.projectionCache;if(Q.projections[ue])return Q.projections[ue];let ee=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),le=Mr(ee.x,ee.y,w);if(le.signedDistanceFromCamera>0)return Q.projections[ue]=le.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||le.isOccluded,le.point;let Fe=ue-B.direction;return function(Ze,ut,Mt,Jt,$t){return Kt(Ze,ut,Mt,Jt,void 0,$t)}(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Fe),w.lineVertexArray.gety(Fe)),ee,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function Mr(ue,w,B){let Q=ue+B.translation[0],ee=w+B.translation[1],le;return!B.pitchWithMap&&B.projection.useSpecialProjectionForSymbols?(le=B.projection.projectTileCoordinates(Q,ee,B.unwrappedTileID,B.getElevation),le.point.x=(.5*le.point.x+.5)*B.width,le.point.y=(.5*-le.point.y+.5)*B.height):(le=gt(Q,ee,B.labelPlaneMatrix,B.getElevation),le.isOccluded=!1),le}function Gr(ue,w,B){return ue._unit()._perp()._mult(w*B)}function Ir(ue,w,B,Q,ee,le,Fe,Ze,ut){if(Ze.projectionCache.offsets[ue])return Ze.projectionCache.offsets[ue];let Mt=B.add(w);if(ue+ut.direction=ee)return Ze.projectionCache.offsets[ue]=Mt,Mt;let Jt=Qt(ue+ut.direction,Ze,ut),$t=Gr(Jt.sub(B),Fe,ut.direction),yr=B.add($t),Cr=Jt.add($t);return Ze.projectionCache.offsets[ue]=a.ak(le,Mt,yr,Cr)||Mt,Ze.projectionCache.offsets[ue]}function Yr(ue,w,B,Q,ee,le,Fe,Ze,ut){let Mt=Q?ue-w:ue+w,Jt=Mt>0?1:-1,$t=0;Q&&(Jt*=-1,$t=Math.PI),Jt<0&&($t+=Math.PI);let yr,Cr=Jt>0?le+ee:le+ee+1;Ze.projectionCache.cachedAnchorPoint?yr=Ze.projectionCache.cachedAnchorPoint:(yr=Mr(Ze.tileAnchorPoint.x,Ze.tileAnchorPoint.y,Ze).point,Ze.projectionCache.cachedAnchorPoint=yr);let ve,xe,Ie=yr,ze=yr,Qe=0,Xe=0,nt=Math.abs(Mt),qt=[],Wt;for(;Qe+Xe<=nt;){if(Cr+=Jt,Cr=Fe)return null;Qe+=Xe,ze=Ie,xe=ve;let br={absOffsetX:nt,direction:Jt,distanceFromAnchor:Qe,previousVertex:ze};if(Ie=Qt(Cr,Ze,br),B===0)qt.push(ze),Wt=Ie.sub(ze);else{let Fr,Hr=Ie.sub(ze);Fr=Hr.mag()===0?Gr(Qt(Cr+Jt,Ze,br).sub(Ie),B,Jt):Gr(Hr,B,Jt),xe||(xe=ze.add(Fr)),ve=Ir(Cr,Fr,Ie,le,Fe,xe,B,Ze,br),qt.push(xe),Wt=ve.sub(xe)}Xe=Wt.mag()}let nr=Wt._mult((nt-Qe)/Xe)._add(xe||ze),fr=$t+Math.atan2(Ie.y-ze.y,Ie.x-ze.x);return qt.push(nr),{point:nr,angle:ut?fr:0,path:qt}}let _i=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Pi(ue,w){for(let B=0;B=1;fa--)Ln.push(cn.path[fa]);for(let fa=1;fa$a.signedDistanceFromCamera<=0)?[]:fa.map($a=>$a.point)}let Aa=[];if(Ln.length>0){let fa=Ln[0].clone(),$a=Ln[0].clone();for(let Co=1;Co=Hr.x&&$a.x<=ri.x&&fa.y>=Hr.y&&$a.y<=ri.y?[Ln]:$a.xri.x||$a.yri.y?[]:a.al([Ln],Hr.x,Hr.y,ri.x,ri.y)}for(let fa of Aa){Ci.reset(fa,.25*Fr);let $a=0;$a=Ci.length<=.5*Fr?1:Math.ceil(Ci.paddedLength/Yn)+1;for(let Co=0;Co<$a;Co++){let Qa=Co/Math.max($a-1,1),mo=Ci.lerp(Qa),Bo=mo.x+mi,Ps=mo.y+mi;ze.push(Bo,Ps,Fr,0);let Ts=Bo-Fr,wo=Ps-Fr,To=Bo+Fr,hl=Ps+Fr;if(br=br&&this.isOffscreen(Ts,wo,To,hl),fr=fr||this.isInsideGrid(Ts,wo,To,hl),w!=="always"&&this.grid.hitTestCircle(Bo,Ps,Fr,w,yr)&&(nr=!0,!Jt))return{circles:[],offscreen:!1,collisionDetected:nr}}}}return{circles:!Jt&&nr||!fr||Xegt(ee.x,ee.y,Q,B.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let B=[],Q=1/0,ee=1/0,le=-1/0,Fe=-1/0;for(let Jt of w){let $t=new a.P(Jt.x+mi,Jt.y+mi);Q=Math.min(Q,$t.x),ee=Math.min(ee,$t.y),le=Math.max(le,$t.x),Fe=Math.max(Fe,$t.y),B.push($t)}let Ze=this.grid.query(Q,ee,le,Fe).concat(this.ignoredGrid.query(Q,ee,le,Fe)),ut={},Mt={};for(let Jt of Ze){let $t=Jt.key;if(ut[$t.bucketInstanceId]===void 0&&(ut[$t.bucketInstanceId]={}),ut[$t.bucketInstanceId][$t.featureIndex])continue;let yr=[new a.P(Jt.x1,Jt.y1),new a.P(Jt.x2,Jt.y1),new a.P(Jt.x2,Jt.y2),new a.P(Jt.x1,Jt.y2)];a.am(B,yr)&&(ut[$t.bucketInstanceId][$t.featureIndex]=!0,Mt[$t.bucketInstanceId]===void 0&&(Mt[$t.bucketInstanceId]=[]),Mt[$t.bucketInstanceId].push($t.featureIndex))}return Mt}insertCollisionBox(w,B,Q,ee,le,Fe){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:le,collisionGroupID:Fe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,Q,ee,le,Fe){let Ze=Q?this.ignoredGrid:this.grid,ut={bucketInstanceId:ee,featureIndex:le,collisionGroupID:Fe,overlapMode:B};for(let Mt=0;Mt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,B,Q,ee){return Q>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(Q,Fr.x,Fr.y,ee,Mt));fr=br.some(Fr=>!Fr.isOccluded),nr=br.map(Fr=>Fr.point)}else fr=!0;return{box:a.ao(nr),allPointsOccluded:!fr}}}function Fn(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class An{constructor(w,B,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?B:-B))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class Hn{constructor(w,B,Q,ee,le){this.text=new An(w?w.text:null,B,Q,le),this.icon=new An(w?w.icon:null,B,ee,le)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Qn{constructor(w,B,Q){this.text=w,this.icon=B,this.skipFade=Q}}class Vi{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class Kn{constructor(w,B,Q,ee,le){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=le}}class Jn{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let B=++this.maxGroupID;this.collisionGroups[w]={ID:B,predicate:Q=>Q.collisionGroupID===B}}return this.collisionGroups[w]}}function Gt(ue,w,B,Q,ee){let{horizontalAlign:le,verticalAlign:Fe}=a.au(ue);return new a.P(-(le-.5)*w+Q[0]*ee,-(Fe-.5)*B+Q[1]*ee)}class wt{constructor(w,B,Q,ee,le,Fe){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new un(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new Jn(le),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Fe,Fe&&(Fe.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let B=this.terrain;return B?(Q,ee)=>B.getElevation(w,Q,ee):null}getBucketParts(w,B,Q,ee){let le=Q.getBucket(B),Fe=Q.latestFeatureIndex;if(!le||!Fe||B.id!==le.layerIds[0])return;let Ze=Q.collisionBoxArray,ut=le.layers[0].layout,Mt=le.layers[0].paint,Jt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),$t=Q.tileSize/a.X,yr=Q.tileID.toUnwrapped(),Cr=this.transform.calculatePosMatrix(yr),ve=ut.get("text-pitch-alignment")==="map",xe=ut.get("text-rotation-alignment")==="map",Ie=Fn(Q,1,this.transform.zoom),ze=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Mt.get("text-translate"),Mt.get("text-translate-anchor")),Qe=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Mt.get("icon-translate"),Mt.get("icon-translate-anchor")),Xe=qr(Cr,ve,xe,this.transform,Ie),nt=null;if(ve){let Wt=jr(Cr,ve,xe,this.transform,Ie);nt=a.L([],this.transform.labelPlaneMatrix,Wt)}this.retainedQueryData[le.bucketInstanceId]=new Kn(le.bucketInstanceId,Fe,le.sourceLayerIndex,le.index,Q.tileID);let qt={bucket:le,layout:ut,translationText:ze,translationIcon:Qe,posMatrix:Cr,unwrappedTileID:yr,textLabelPlaneMatrix:Xe,labelToScreenMatrix:nt,scale:Jt,textPixelRatio:$t,holdingForFade:Q.holdingForFade(),collisionBoxArray:Ze,partiallyEvaluatedTextSize:a.ag(le.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(le.sourceID)};if(ee)for(let Wt of le.sortKeyRanges){let{sortKey:nr,symbolInstanceStart:fr,symbolInstanceEnd:br}=Wt;w.push({sortKey:nr,symbolInstanceStart:fr,symbolInstanceEnd:br,parameters:qt})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:le.symbolInstances.length,parameters:qt})}attemptAnchorPlacement(w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr,ve,xe,Ie,ze,Qe,Xe){let nt=a.aq[w.textAnchor],qt=[w.textOffset0,w.textOffset1],Wt=Gt(nt,Q,ee,qt,le),nr=this.collisionIndex.placeCollisionBox(B,yr,ut,Mt,Jt,Ze,Fe,Ie,$t.predicate,Xe,Wt);if((!Qe||this.collisionIndex.placeCollisionBox(Qe,yr,ut,Mt,Jt,Ze,Fe,ze,$t.predicate,Xe,Wt).placeable)&&nr.placeable){let fr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Cr.crossTileID]&&this.prevPlacement.placements[Cr.crossTileID]&&this.prevPlacement.placements[Cr.crossTileID].text&&(fr=this.prevPlacement.variableOffsets[Cr.crossTileID].anchor),Cr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Cr.crossTileID]={textOffset:qt,width:Q,height:ee,anchor:nt,textBoxScale:le,prevAnchor:fr},this.markUsedJustification(ve,nt,Cr,xe),ve.allowVerticalPlacement&&(this.markUsedOrientation(ve,xe,Cr),this.placedOrientations[Cr.crossTileID]=xe),{shift:Wt,placedGlyphBoxes:nr}}}placeLayerBucketPart(w,B,Q){let{bucket:ee,layout:le,translationText:Fe,translationIcon:Ze,posMatrix:ut,unwrappedTileID:Mt,textLabelPlaneMatrix:Jt,labelToScreenMatrix:$t,textPixelRatio:yr,holdingForFade:Cr,collisionBoxArray:ve,partiallyEvaluatedTextSize:xe,collisionGroup:Ie}=w.parameters,ze=le.get("text-optional"),Qe=le.get("icon-optional"),Xe=a.ar(le,"text-overlap","text-allow-overlap"),nt=Xe==="always",qt=a.ar(le,"icon-overlap","icon-allow-overlap"),Wt=qt==="always",nr=le.get("text-rotation-alignment")==="map",fr=le.get("text-pitch-alignment")==="map",br=le.get("icon-text-fit")!=="none",Fr=le.get("symbol-z-order")==="viewport-y",Hr=nt&&(Wt||!ee.hasIconData()||Qe),ri=Wt&&(nt||!ee.hasTextData()||ze);!ee.collisionArrays&&ve&&ee.deserializeCollisionBoxes(ve);let Ci=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),cn=(sn,Ln,Yn)=>{var Aa,fa;if(B[sn.crossTileID])return;if(Cr)return void(this.placements[sn.crossTileID]=new Qn(!1,!1,!1));let $a=!1,Co=!1,Qa=!0,mo=null,Bo={box:null,placeable:!1,offscreen:null},Ps={box:null,placeable:!1,offscreen:null},Ts=null,wo=null,To=null,hl=0,Ul=0,Lu=0;Ln.textFeatureIndex?hl=Ln.textFeatureIndex:sn.useRuntimeCollisionCircles&&(hl=sn.featureIndex),Ln.verticalTextFeatureIndex&&(Ul=Ln.verticalTextFeatureIndex);let au=Ln.textBox;if(au){let Tl=Te=>{let qe=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Te&&this.prevPlacement){let Ve=this.prevPlacement.placedOrientations[sn.crossTileID];Ve&&(this.placedOrientations[sn.crossTileID]=Ve,qe=Ve,this.markUsedOrientation(ee,qe,sn))}return qe},Al=(Te,qe)=>{if(ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&Ln.verticalTextBox){for(let Ve of ee.writingModes)if(Ve===a.ah.vertical?(Bo=qe(),Ps=Bo):Bo=Te(),Bo&&Bo.placeable)break}else Bo=Te()},X=sn.textAnchorOffsetStartIndex,se=sn.textAnchorOffsetEndIndex;if(se===X){let Te=(qe,Ve)=>{let Ye=this.collisionIndex.placeCollisionBox(qe,Xe,yr,ut,Mt,fr,nr,Fe,Ie.predicate,Ci);return Ye&&Ye.placeable&&(this.markUsedOrientation(ee,Ve,sn),this.placedOrientations[sn.crossTileID]=Ve),Ye};Al(()=>Te(au,a.ah.horizontal),()=>{let qe=Ln.verticalTextBox;return ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&qe?Te(qe,a.ah.vertical):{box:null,offscreen:null}}),Tl(Bo&&Bo.placeable)}else{let Te=a.aq[(fa=(Aa=this.prevPlacement)===null||Aa===void 0?void 0:Aa.variableOffsets[sn.crossTileID])===null||fa===void 0?void 0:fa.anchor],qe=(Ye,Pt,ot)=>{let Xt=Ye.x2-Ye.x1,dr=Ye.y2-Ye.y1,pr=sn.textBoxScale,Ur=br&&qt==="never"?Pt:null,zr=null,gi=Xe==="never"?1:2,xi="never";Te&&gi++;for(let Wr=0;Wrqe(au,Ln.iconBox,a.ah.horizontal),()=>{let Ye=Ln.verticalTextBox;return ee.allowVerticalPlacement&&(!Bo||!Bo.placeable)&&sn.numVerticalGlyphVertices>0&&Ye?qe(Ye,Ln.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Bo&&($a=Bo.placeable,Qa=Bo.offscreen);let Ve=Tl(Bo&&Bo.placeable);if(!$a&&this.prevPlacement){let Ye=this.prevPlacement.variableOffsets[sn.crossTileID];Ye&&(this.variableOffsets[sn.crossTileID]=Ye,this.markUsedJustification(ee,Ye.anchor,sn,Ve))}}}if(Ts=Bo,$a=Ts&&Ts.placeable,Qa=Ts&&Ts.offscreen,sn.useRuntimeCollisionCircles){let Tl=ee.text.placedSymbolArray.get(sn.centerJustifiedTextSymbolIndex),Al=a.ai(ee.textSizeData,xe,Tl),X=le.get("text-padding");wo=this.collisionIndex.placeCollisionCircles(Xe,Tl,ee.lineVertexArray,ee.glyphOffsetArray,Al,ut,Mt,Jt,$t,Q,fr,Ie.predicate,sn.collisionCircleDiameter,X,Fe,Ci),wo.circles.length&&wo.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),$a=nt||wo.circles.length>0&&!wo.collisionDetected,Qa=Qa&&wo.offscreen}if(Ln.iconFeatureIndex&&(Lu=Ln.iconFeatureIndex),Ln.iconBox){let Tl=Al=>this.collisionIndex.placeCollisionBox(Al,qt,yr,ut,Mt,fr,nr,Ze,Ie.predicate,Ci,br&&mo?mo:void 0);Ps&&Ps.placeable&&Ln.verticalIconBox?(To=Tl(Ln.verticalIconBox),Co=To.placeable):(To=Tl(Ln.iconBox),Co=To.placeable),Qa=Qa&&To.offscreen}let Js=ze||sn.numHorizontalGlyphVertices===0&&sn.numVerticalGlyphVertices===0,eu=Qe||sn.numIconVertices===0;Js||eu?eu?Js||(Co=Co&&$a):$a=Co&&$a:Co=$a=Co&&$a;let dc=Co&&To.placeable;if($a&&Ts.placeable&&this.collisionIndex.insertCollisionBox(Ts.box,Xe,le.get("text-ignore-placement"),ee.bucketInstanceId,Ps&&Ps.placeable&&Ul?Ul:hl,Ie.ID),dc&&this.collisionIndex.insertCollisionBox(To.box,qt,le.get("icon-ignore-placement"),ee.bucketInstanceId,Lu,Ie.ID),wo&&$a&&this.collisionIndex.insertCollisionCircles(wo.circles,Xe,le.get("text-ignore-placement"),ee.bucketInstanceId,hl,Ie.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Yn,Ln,Ts,To,wo),sn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[sn.crossTileID]=new Qn($a||Hr,Co||ri,Qa||ee.justReloaded),B[sn.crossTileID]=!0};if(Fr){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let sn=ee.getSortedSymbolIndexes(this.transform.angle);for(let Ln=sn.length-1;Ln>=0;--Ln){let Yn=sn[Ln];cn(ee.symbolInstances.get(Yn),ee.collisionArrays[Yn],Yn)}}else for(let sn=w.symbolInstanceStart;sn=0&&(w.text.placedSymbolArray.get(Ze).crossTileID=le>=0&&Ze!==le?0:Q.crossTileID)}markUsedOrientation(w,B,Q){let ee=B===a.ah.horizontal||B===a.ah.horizontalOnly?B:0,le=B===a.ah.vertical?B:0,Fe=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let Ze of Fe)w.text.placedSymbolArray.get(Ze).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=le)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let B=this.prevPlacement,Q=!1;this.prevZoomAdjustment=B?B.zoomAdjustment(this.transform.zoom):0;let ee=B?B.symbolFadeChange(w):1,le=B?B.opacities:{},Fe=B?B.variableOffsets:{},Ze=B?B.placedOrientations:{};for(let ut in this.placements){let Mt=this.placements[ut],Jt=le[ut];Jt?(this.opacities[ut]=new Hn(Jt,ee,Mt.text,Mt.icon),Q=Q||Mt.text!==Jt.text.placed||Mt.icon!==Jt.icon.placed):(this.opacities[ut]=new Hn(null,ee,Mt.text,Mt.icon,Mt.skipFade),Q=Q||Mt.text||Mt.icon)}for(let ut in le){let Mt=le[ut];if(!this.opacities[ut]){let Jt=new Hn(Mt,ee,!1,!1);Jt.isHidden()||(this.opacities[ut]=Jt,Q=Q||Mt.text.placed||Mt.icon.placed)}}for(let ut in Fe)this.variableOffsets[ut]||!this.opacities[ut]||this.opacities[ut].isHidden()||(this.variableOffsets[ut]=Fe[ut]);for(let ut in Ze)this.placedOrientations[ut]||!this.opacities[ut]||this.opacities[ut].isHidden()||(this.placedOrientations[ut]=Ze[ut]);if(B&&B.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=B?B.lastPlacementChangeTime:w)}updateLayerOpacities(w,B){let Q={};for(let ee of B){let le=ee.getBucket(w);le&&ee.latestFeatureIndex&&w.id===le.layerIds[0]&&this.updateBucketOpacities(le,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,B,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let le=w.layers[0],Fe=le.layout,Ze=new Hn(null,0,!1,!1,!0),ut=Fe.get("text-allow-overlap"),Mt=Fe.get("icon-allow-overlap"),Jt=le._unevaluatedLayout.hasValue("text-variable-anchor")||le._unevaluatedLayout.hasValue("text-variable-anchor-offset"),$t=Fe.get("text-rotation-alignment")==="map",yr=Fe.get("text-pitch-alignment")==="map",Cr=Fe.get("icon-text-fit")!=="none",ve=new Hn(null,0,ut&&(Mt||!w.hasIconData()||Fe.get("icon-optional")),Mt&&(ut||!w.hasTextData()||Fe.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let xe=(ze,Qe,Xe)=>{for(let nt=0;nt0,fr=this.placedOrientations[Qe.crossTileID],br=fr===a.ah.vertical,Fr=fr===a.ah.horizontal||fr===a.ah.horizontalOnly;if(Xe>0||nt>0){let ri=en(Wt.text);xe(w.text,Xe,br?fn:ri),xe(w.text,nt,Fr?fn:ri);let Ci=Wt.text.isHidden();[Qe.rightJustifiedTextSymbolIndex,Qe.centerJustifiedTextSymbolIndex,Qe.leftJustifiedTextSymbolIndex].forEach(Ln=>{Ln>=0&&(w.text.placedSymbolArray.get(Ln).hidden=Ci||br?1:0)}),Qe.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(Qe.verticalPlacedTextSymbolIndex).hidden=Ci||Fr?1:0);let cn=this.variableOffsets[Qe.crossTileID];cn&&this.markUsedJustification(w,cn.anchor,Qe,fr);let sn=this.placedOrientations[Qe.crossTileID];sn&&(this.markUsedJustification(w,"left",Qe,sn),this.markUsedOrientation(w,sn,Qe))}if(nr){let ri=en(Wt.icon),Ci=!(Cr&&Qe.verticalPlacedIconSymbolIndex&&br);Qe.placedIconSymbolIndex>=0&&(xe(w.icon,Qe.numIconVertices,Ci?ri:fn),w.icon.placedSymbolArray.get(Qe.placedIconSymbolIndex).hidden=Wt.icon.isHidden()),Qe.verticalPlacedIconSymbolIndex>=0&&(xe(w.icon,Qe.numVerticalIconVertices,Ci?fn:ri),w.icon.placedSymbolArray.get(Qe.verticalPlacedIconSymbolIndex).hidden=Wt.icon.isHidden())}let Hr=Ie&&Ie.has(ze)?Ie.get(ze):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let ri=w.collisionArrays[ze];if(ri){let Ci=new a.P(0,0);if(ri.textBox||ri.verticalTextBox){let cn=!0;if(Jt){let sn=this.variableOffsets[qt];sn?(Ci=Gt(sn.anchor,sn.width,sn.height,sn.textOffset,sn.textBoxScale),$t&&Ci._rotate(yr?this.transform.angle:-this.transform.angle)):cn=!1}if(ri.textBox||ri.verticalTextBox){let sn;ri.textBox&&(sn=br),ri.verticalTextBox&&(sn=Fr),tr(w.textCollisionBox.collisionVertexArray,Wt.text.placed,!cn||sn,Hr.text,Ci.x,Ci.y)}}if(ri.iconBox||ri.verticalIconBox){let cn=!!(!Fr&&ri.verticalIconBox),sn;ri.iconBox&&(sn=cn),ri.verticalIconBox&&(sn=!cn),tr(w.iconCollisionBox.collisionVertexArray,Wt.icon.placed,sn,Hr.icon,Cr?Ci.x:0,Cr?Ci.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let ze=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=ze.invProjMatrix,w.placementViewportMatrix=ze.viewportMatrix,w.collisionCircleArray=ze.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function tr(ue,w,B,Q,ee,le){Q&&Q.length!==0||(Q=[0,0,0,0]);let Fe=Q[0]-mi,Ze=Q[1]-mi,ut=Q[2]-mi,Mt=Q[3]-mi;ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,Fe,Ze),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ut,Ze),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ut,Mt),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,Fe,Mt)}let ir=Math.pow(2,25),wr=Math.pow(2,24),Xr=Math.pow(2,17),ti=Math.pow(2,16),$r=Math.pow(2,9),Ri=Math.pow(2,8),Zi=Math.pow(2,1);function en(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,B=Math.floor(127*ue.opacity);return B*ir+w*wr+B*Xr+w*ti+B*$r+w*Ri+B*Zi+w}let fn=0;function yn(){return{isOccluded:(ue,w,B)=>!1,getPitchedTextCorrection:(ue,w,B)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,B,Q){throw new Error("Not implemented.")},translatePosition:(ue,w,B,Q)=>function(ee,le,Fe,Ze,ut=!1){if(!Fe[0]&&!Fe[1])return[0,0];let Mt=ut?Ze==="map"?ee.angle:0:Ze==="viewport"?-ee.angle:0;if(Mt){let Jt=Math.sin(Mt),$t=Math.cos(Mt);Fe=[Fe[0]*$t-Fe[1]*Jt,Fe[0]*Jt+Fe[1]*$t]}return[ut?Fe[0]:Fn(le,Fe[0],ee.zoom),ut?Fe[1]:Fn(le,Fe[1],ee.zoom)]}(ue,w,B,Q),getCircleRadiusCorrection:ue=>1}}class Mn{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,B,Q,ee,le){let Fe=this._bucketParts;for(;this._currentTileIndexZe.sortKey-ut.sortKey));this._currentPartIndex!this._forceFullPlacement&&u.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Fe=B[w[this._currentPlacementIndex]],Ze=this.placement.collisionIndex.transform.zoom;if(Fe.type==="symbol"&&(!Fe.minzoom||Fe.minzoom<=Ze)&&(!Fe.maxzoom||Fe.maxzoom>Ze)){if(this._inProgressLayer||(this._inProgressLayer=new Mn(Fe)),this._inProgressLayer.continuePlacement(Q[Fe.source],this.placement,this._showCollisionBoxes,Fe,le))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let ua=512/a.X/2;class ma{constructor(w,B,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let le=0;le({x:Math.floor(ut.anchorX*ua),y:Math.floor(ut.anchorY*ua)})),crossTileIDs:Fe.map(ut=>ut.crossTileID)};if(Ze.positions.length>128){let ut=new a.av(Ze.positions.length,16,Uint16Array);for(let{x:Mt,y:Jt}of Ze.positions)ut.add(Mt,Jt);ut.finish(),delete Ze.positions,Ze.index=ut}this._symbolsByKey[le]=Ze}}getScaledCoordinates(w,B){let{x:Q,y:ee,z:le}=this.tileID.canonical,{x:Fe,y:Ze,z:ut}=B.canonical,Mt=ua/Math.pow(2,ut-le),Jt=(Ze*a.X+w.anchorY)*Mt,$t=ee*a.X*ua;return{x:Math.floor((Fe*a.X+w.anchorX)*Mt-Q*a.X*ua),y:Math.floor(Jt-$t)}}findMatches(w,B,Q){let ee=this.tileID.canonical.zw)}}class Wa{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Fa{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let B=Math.round((w-this.lng)/360);if(B!==0)for(let Q in this.indexes){let ee=this.indexes[Q],le={};for(let Fe in ee){let Ze=ee[Fe];Ze.tileID=Ze.tileID.unwrapTo(Ze.tileID.wrap+B),le[Ze.tileID.key]=Ze}this.indexes[Q]=le}this.lng=w}addBucket(w,B,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===B.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let le=0;lew.overscaledZ)for(let Ze in Fe){let ut=Fe[Ze];ut.tileID.isChildOf(w)&&ut.findMatches(B.symbolInstances,w,ee)}else{let Ze=Fe[w.scaledTo(Number(le)).key];Ze&&Ze.findMatches(B.symbolInstances,w,ee)}}for(let le=0;le{B[Q]=!0});for(let Q in this.layerIndexes)B[Q]||delete this.layerIndexes[Q]}}let da=(ue,w)=>a.t(ue,w&&w.filter(B=>B.identifier!=="source.canvas")),jn=a.aw();class Ha extends a.E{constructor(w,B={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new ke(Se(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new E,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new Xo,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),St().on(Ue,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let le=ee.getSource();if(le&&le.vectorLayerIds)for(let Fe in this._layers){let Ze=this._layers[Fe];Ze.source===le.id&&this._validateLayer(Ze)}})}loadURL(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),B.validate=typeof B.validate!="boolean"||B.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let le=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(Fe=>{this._loadStyleRequest=null,this._load(Fe.data,B,Q)}).catch(Fe=>{this._loadStyleRequest=null,Fe&&!le.signal.aborted&&this.fire(new a.j(Fe))})}loadJSON(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,B.validate=B.validate!==!1,this._load(w,B,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(jn,{validate:!1})}_load(w,B,Q){var ee;let le=B.transformStyle?B.transformStyle(Q,w):w;if(!B.validate||!da(this,a.u(le))){this._loaded=!0,this.stylesheet=le;for(let Fe in le.sources)this.addSource(Fe,le.sources[Fe],{validate:!1});le.sprite?this._loadSprite(le.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(le.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new ie(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(B=>B.id),this._layers={},this._serializedLayers=null;for(let B of w){let Q=a.aA(B);Q.setEventedParent(this,{layer:{id:B.id}}),this._layers[B.id]=Q}}_loadSprite(w,B=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(le,Fe,Ze,ut){return a._(this,void 0,void 0,function*(){let Mt=C(le),Jt=Ze>1?"@2x":"",$t={},yr={};for(let{id:Cr,url:ve}of Mt){let xe=Fe.transformRequest(S(ve,Jt,".json"),"SpriteJSON");$t[Cr]=a.h(xe,ut);let Ie=Fe.transformRequest(S(ve,Jt,".png"),"SpriteImage");yr[Cr]=p.getImage(Ie,ut)}return yield Promise.all([...Object.values($t),...Object.values(yr)]),function(Cr,ve){return a._(this,void 0,void 0,function*(){let xe={};for(let Ie in Cr){xe[Ie]={};let ze=u.getImageCanvasContext((yield ve[Ie]).data),Qe=(yield Cr[Ie]).data;for(let Xe in Qe){let{width:nt,height:qt,x:Wt,y:nr,sdf:fr,pixelRatio:br,stretchX:Fr,stretchY:Hr,content:ri,textFitWidth:Ci,textFitHeight:cn}=Qe[Xe];xe[Ie][Xe]={data:null,pixelRatio:br,sdf:fr,stretchX:Fr,stretchY:Hr,content:ri,textFitWidth:Ci,textFitHeight:cn,spriteData:{width:nt,height:qt,x:Wt,y:nr,context:ze}}}}return xe})}($t,yr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(le=>{if(this._spriteRequest=null,le)for(let Fe in le){this._spritesImagesIds[Fe]=[];let Ze=this._spritesImagesIds[Fe]?this._spritesImagesIds[Fe].filter(ut=>!(ut in le)):[];for(let ut of Ze)this.imageManager.removeImage(ut),this._changedImages[ut]=!0;for(let ut in le[Fe]){let Mt=Fe==="default"?ut:`${Fe}:${ut}`;this._spritesImagesIds[Fe].push(Mt),Mt in this.imageManager.images?this.imageManager.updateImage(Mt,le[Fe][ut],!1):this.imageManager.addImage(Mt,le[Fe][ut]),B&&(this._changedImages[Mt]=!0)}}}).catch(le=>{this._spriteRequest=null,ee=le,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),B&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let B=this.sourceCaches[w.source];if(!B)return;let Q=w.sourceLayer;if(!Q)return;let ee=B.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,B=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(B?a.aB(Q):Q);let ee=[];for(let le of w)if(Q[le]){let Fe=B?a.aB(Q[le]):Q[le];ee.push(Fe)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let B=Object.keys(this._layers);for(let Q of B){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let B=this._changed;if(B){let ee=Object.keys(this._updatedLayers),le=Object.keys(this._removedLayers);(ee.length||le.length)&&this._updateWorkerLayers(ee,le);for(let Fe in this._updatedSources){let Ze=this._updatedSources[Fe];if(Ze==="reload")this._reloadSource(Fe);else{if(Ze!=="clear")throw new Error(`Invalid action ${Ze}`);this._clearSource(Fe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Fe in this._updatedPaintProps)this._layers[Fe].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let le=this.sourceCaches[ee];Q[ee]=le.used,le.used=!1}for(let ee of this._order){let le=this._layers[ee];le.recalculate(w,this._availableImages),!le.isHidden(w.zoom)&&le.source&&(this.sourceCaches[le.source].used=!0)}for(let ee in Q){let le=this.sourceCaches[ee];!!Q[ee]!=!!le.used&&le.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,B&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let B in this.sourceCaches)this.sourceCaches[B].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,B){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:B})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,B={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=B.transformStyle?B.transformStyle(ee,w):w,((Q=B.validate)===null||Q===void 0||Q)&&da(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let le=a.aC(ee,w),Fe=this._getOperationsToPerform(le);if(Fe.unimplemented.length>0)throw new Error(`Unimplemented: ${Fe.unimplemented.join(", ")}.`);if(Fe.operations.length===0)return!1;for(let Ze of Fe.operations)Ze();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let B=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":B.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":B.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":B.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":B.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":B.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":B.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":B.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":B.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":B.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":B.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":B.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":B.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":B.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":B.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":B.push(()=>{});break;default:Q.push(ee.command)}return{operations:B,unimplemented:Q}}addImage(w,B){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,B),this._afterImageUpdated(w)}updateImage(w,B){this.imageManager.updateImage(w,B)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,B,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!B.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(B).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(B.type)>=0&&this._validate(a.u.source,`sources.${w}`,B,null,Q))return;this.map&&this.map._collectResourceTiming&&(B.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new pt(w,B,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let B=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],B.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),B.setEventedParent(null),B.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,B){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(B),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,B,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let le;if(w.type==="custom"){if(da(this,a.aD(w)))return;le=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;le=a.aA(w),this._validateLayer(le),le.setEventedParent(this,{layer:{id:ee}})}let Fe=B?this._order.indexOf(B):this._order.length;if(B&&Fe===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${B}".`)));else{if(this._order.splice(Fe,0,ee),this._layerOrderChanged=!0,this._layers[ee]=le,this._removedLayers[ee]&&le.source&&le.type!=="custom"){let Ze=this._removedLayers[ee];delete this._removedLayers[ee],Ze.type!==le.type?this._updatedSources[le.source]="clear":(this._updatedSources[le.source]="reload",this.sourceCaches[le.source].pause())}this._updateLayer(le),le.onAdd&&le.onAdd(this.map)}}moveLayer(w,B){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===B)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=B?this._order.indexOf(B):this._order.length;B&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${B}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let B=this._layers[w];if(!B)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));B.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=B,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],B.onRemove&&B.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,B,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===B&&ee.maxzoom===Q||(B!=null&&(ee.minzoom=B),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,B,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,B))return B==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,B,null,Q)||(ee.filter=a.aB(B),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getLayoutProperty(B),Q)||(le.setLayoutProperty(B,Q,ee),this._updateLayer(le)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,B){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(B);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getPaintProperty(B),Q)||(le.setPaintProperty(B,Q,ee)&&this._updateLayer(le),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,B){return this.getLayer(w).getPaintProperty(B)}setFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,le=this.sourceCaches[Q];if(le===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Fe=le.getSource().type;Fe==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Fe!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),le.setFeatureState(ee,w.id,B)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let le=ee.getSource().type,Fe=le==="vector"?w.sourceLayer:void 0;le!=="vector"||Fe?B&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(Fe,w.id,B):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let B=w.source,Q=w.sourceLayer,ee=this.sourceCaches[B];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${B}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,le=>le.serialize()),B=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:B,terrain:Q},le=>le!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let B=Fe=>this._layers[Fe].type==="fill-extrusion",Q={},ee=[];for(let Fe=this._order.length-1;Fe>=0;Fe--){let Ze=this._order[Fe];if(B(Ze)){Q[Ze]=Fe;for(let ut of w){let Mt=ut[Ze];if(Mt)for(let Jt of Mt)ee.push(Jt)}}}ee.sort((Fe,Ze)=>Ze.intersectionZ-Fe.intersectionZ);let le=[];for(let Fe=this._order.length-1;Fe>=0;Fe--){let Ze=this._order[Fe];if(B(Ze))for(let ut=ee.length-1;ut>=0;ut--){let Mt=ee[ut].feature;if(Q[Mt.layer.id]{let fr=ze.featureSortOrder;if(fr){let br=fr.indexOf(Wt.featureIndex);return fr.indexOf(nr.featureIndex)-br}return nr.featureIndex-Wt.featureIndex});for(let Wt of qt)nt.push(Wt)}}for(let ze in ve)ve[ze].forEach(Qe=>{let Xe=Qe.feature,nt=Mt[Ze[ze].source].getFeatureState(Xe.layer["source-layer"],Xe.id);Xe.source=Xe.layer.source,Xe.layer["source-layer"]&&(Xe.sourceLayer=Xe.layer["source-layer"]),Xe.state=nt});return ve}(this._layers,Fe,this.sourceCaches,w,B,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(le)}querySourceFeatures(w,B){B&&B.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",B.filter,null,B);let Q=this.sourceCaches[w];return Q?function(ee,le){let Fe=ee.getRenderableIds().map(Mt=>ee.getTileByID(Mt)),Ze=[],ut={};for(let Mt=0;Mtyr.getTileByID(Cr)).sort((Cr,ve)=>ve.tileID.overscaledZ-Cr.tileID.overscaledZ||(Cr.tileID.isLessThan(ve.tileID)?-1:1))}let $t=this.crossTileSymbolIndex.addLayer(Jt,ut[Jt.source],w.center.lng);Fe=Fe||$t}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((le=le||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(u.now(),w.zoom))&&(this.pauseablePlacement=new Ba(w,this.map.terrain,this._order,le,B,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,ut),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Ze=!0),Fe&&this.pauseablePlacement.placement.setStale()),Ze||Fe)for(let Mt of this._order){let Jt=this._layers[Mt];Jt.type==="symbol"&&this.placement.updateLayerOpacities(Jt,ut[Jt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(u.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(B.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,B.icons),Q})}getGlyphs(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(B.stacks),ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,B={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,B)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,B,Q={},ee){this._checkLoaded();let le=[{id:w,url:B}],Fe=[...C(this.stylesheet.sprite),...le];this._validate(a.u.sprite,"sprite",Fe,null,Q)||(this.stylesheet.sprite=Fe,this._loadSprite(le,!0,ee))}removeSprite(w){this._checkLoaded();let B=C(this.stylesheet.sprite);if(B.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;B.splice(B.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=B.length>0?B:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return C(this.stylesheet.sprite)}setSprite(w,B={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,B)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var vo=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Gn={prelude:Ct(`#ifdef GL_ES +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var zHe=ye((Pbr,FHe)=>{FHe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var Ix=ye((Ibr,UHe)=>{"use strict";var pXt=r_(),gXt=DHe(),mXt=zHe(),yXt='\xA9 OpenStreetMap contributors',qHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",OHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",f7="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",_Xt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",xXt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",bXt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",NHe={basic:f7,streets:f7,outdoors:f7,light:qHe,dark:OHe,satellite:mXt,"satellite-streets":gXt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:yXt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":qHe,"carto-darkmatter":OHe,"carto-voyager":f7,"carto-positron-nolabels":_Xt,"carto-darkmatter-nolabels":xXt,"carto-voyager-nolabels":bXt},BHe=pXt(NHe);UHe.exports={styleValueDflt:"basic",stylesMap:NHe,styleValuesMap:BHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",BHe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}});var rC=ye((Rbr,WHe)=>{"use strict";var VHe=Pr(),GHe=ka().defaultLine,wXt=Cc().attributes,TXt=ec(),AXt=pf().textposition,SXt=mc().overrideAll,MXt=vl().templatedArray,HHe=Ix(),jHe=TXt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});jHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var EXt=WHe.exports=SXt({_arrayAttrRegexps:[VHe.counterRegex("map",".layers",!0)],domain:wXt({name:"map"}),style:{valType:"any",values:HHe.styleValuesMap,dflt:HHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:MXt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:GHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:GHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:jHe,textposition:VHe.extendFlat({},AXt,{arrayOk:!1})}})},"plot","from-root");EXt.uirevision={valType:"any",editType:"none"}});var h7=ye((Dbr,KHe)=>{"use strict";var{hovertemplateAttrs:kXt,texttemplateAttrs:CXt,templatefallbackAttrs:XHe}=Pl(),LXt=Pg(),iC=rw(),D5=pf(),ZHe=rC(),PXt=Vl(),IXt=Tu(),mw=Ao().extendFlat,RXt=mc().overrideAll,DXt=rC(),YHe=iC.line,F5=iC.marker;KHe.exports=RXt({lon:iC.lon,lat:iC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:mw({},DXt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:mw({},F5.opacity,{dflt:1})},mode:mw({},D5.mode,{dflt:"markers"}),text:mw({},D5.text,{}),texttemplate:CXt({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:XHe({editType:"plot"}),hovertext:mw({},D5.hovertext,{}),line:{color:YHe.color,width:YHe.width},connectgaps:D5.connectgaps,marker:mw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:F5.opacity,size:F5.size,sizeref:F5.sizeref,sizemin:F5.sizemin,sizemode:F5.sizemode},IXt("marker")),fill:iC.fill,fillcolor:LXt(),textfont:ZHe.layers.symbol.textfont,textposition:ZHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:D5.selected.marker},unselected:{marker:D5.unselected.marker},hoverinfo:mw({},PXt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:kXt(),hovertemplatefallback:XHe()},"calc","nested")});var RJ=ye((Fbr,JHe)=>{"use strict";var FXt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];JHe.exports={isSupportedFont:function(e){return FXt.indexOf(e)!==-1}}});var eje=ye((zbr,QHe)=>{"use strict";var nC=Pr(),DJ=Ru(),zXt=$p(),qXt=D0(),OXt=F0(),BXt=Fg(),$He=h7(),NXt=RJ().isSupportedFont;QHe.exports=function(t,r,n,i){function a(p,k){return nC.coerce(t,r,$He,p,k)}function o(p,k){return nC.coerce2(t,r,$He,p,k)}var s=UXt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),DJ.hasMarkers(r)){zXt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(nC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),nC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}DJ.hasLines(r)&&(qXt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,m=a("cluster.enabled",v);if(m||DJ.hasText(r)){var b=i.font.family;OXt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:NXt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&BXt(t,r,n,a),nC.coerceSelectionMarkerOpacity(r,a)};function UXt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var FJ=ye((qbr,rje)=>{"use strict";var tje=ho();rje.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=tje.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=tje.tickText(o,o.c2l(s[1]),!0).text,i}});var zJ=ye((Obr,nje)=>{"use strict";var ije=Pr();nje.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=ije.isArrayOrTypedArray(r)?ije.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var cje=ye((Bbr,uje)=>{"use strict";var sje=Eo(),sv=Pr(),VXt=fs().BADNUM,v7=hx(),aje=tc(),GXt=So(),HXt=U3(),p7=Ru(),jXt=RJ().isSupportedFont,WXt=zJ(),XXt=ip().appendArrayPointValue,ZXt=Zl().NEWLINES,YXt=Zl().BR_TAG_ALL;uje.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=p7.hasLines(n),s=p7.hasMarkers(n),l=p7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=d7("fill"),d=d7("line"),v=d7("circle"),m=d7("symbol"),b={fill:h,line:d,circle:v,symbol:m};if(!i)return b;var p;if((a||o)&&(p=v7.calcTraceToLineCoords(r)),a&&(h.geojson=v7.makePolygon(p),h.layout.visibility="visible",sv.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=v7.makeLine(p),d.layout.visibility="visible",sv.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var k=KXt(r);v.geojson=k.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":OJ(n.cluster.color,n.cluster.step),"circle-radius":OJ(n.cluster.size,n.cluster.step),"circle-opacity":OJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":oje(n),"text-size":12}}),sv.extendFlat(v.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(m.geojson=JXt(r,t),sv.extendFlat(m.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(sv.extendFlat(m.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&sv.extendFlat(m.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),m.layout["icon-allow-overlap"]=n.marker.allowoverlap,sv.extendFlat(m.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var M=(n.marker||{}).size,T=WXt(n.textposition,M);sv.extendFlat(m.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":oje(n)}),sv.extendFlat(m.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function d7(e){return{type:e,geojson:v7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function KXt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=sv.isArrayOrTypedArray(r.color),a=sv.isArrayOrTypedArray(r.size),o=sv.isArrayOrTypedArray(r.opacity),s;function l(M){return t.opacity*M}function u(M){return M/2}var c;i&&(aje.hasColorscale(t,"marker")?c=aje.makeColorScaleFuncFromTrace(r):c=sv.identity);var f;a&&(f=HXt(t));var h;o&&(h=function(M){var T=sje(M)?+sv.constrain(M,0,1):0;return l(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),jXt(s)||(s=r);var l=s.split(", ");return l}});var vje=ye((Nbr,dje)=>{"use strict";var $Xt=Pr(),fje=cje(),z5=Ix().traceLayerPrefix,og={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function hje(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:z5+t+"-fill",line:z5+t+"-line",circle:z5+t+"-circle",symbol:z5+t+"-symbol",cluster:z5+t+"-cluster",clusterCount:z5+t+"-cluster-count"},this.below=null}var aC=hje.prototype;aC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&$Xt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};aC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};aC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=T[L];i.removeLayer(u.layerIds[x])}M||i.removeSource(u.sourceIds.circle)}function h(M){for(var T=og.nonCluster,L=0;L=0;L--){var x=T[L];i.removeLayer(u.layerIds[x]),M||i.removeSource(u.sourceIds[x])}}function v(M){l?f(M):d(M)}function m(M){s?c(M):h(M)}function b(){for(var M=s?og.cluster:og.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};dje.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new hje(t,n.uid,i,a),s=fje(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var QXt=ef(),BJ=Pr(),eZt=xT(),tZt=BJ.fillText,rZt=fs().BADNUM,iZt=Ix().traceLayerPrefix;function nZt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=iZt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function m(S){var g=S.lonlat;if(g[0]===rZt||c&&l.indexOf(S.i+1)===-1)return 1/0;var P=BJ.modHalf(g[0],360),E=g[1],z=s.project([P,E]),q=z.x-a.c2p([v,E]),V=z.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(q*q+V*V)-G,1-3/G)}if(QXt.getClosest(n,m,e),e.index!==!1){var b=n[e.index],p=b.lonlat,k=[BJ.modHalf(p[0],360)+d,p[1]],M=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=M-L,e.x1=M+L,e.y0=T-L,e.y1=T+L;var x={};x[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,x);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=eZt(i,b),e.extraText=pje(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function pje(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&tZt(t,e,u),u.join("
")}gje.exports={hoverPoints:nZt,getExtraText:pje}});var yje=ye((Vbr,mje)=>{"use strict";mje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var xje=ye((Gbr,_je)=>{"use strict";var aZt=Pr(),oZt=Ru(),sZt=fs().BADNUM;_je.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!oZt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof NJ=="object"&&typeof UJ!="undefined"?UJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(NJ,(function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",l={};return t.shared(l),t.index(e,l),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],(function(i){"use strict";function a(R,A,F,W){return new(F||(F=Promise))((function(te,fe){function pe(ft){try{Ke(W.next(ft))}catch(Rt){fe(Rt)}}function Re(ft){try{Ke(W.throw(ft))}catch(Rt){fe(Rt)}}function Ke(ft){var Rt;ft.done?te(ft.value):(Rt=ft.value,Rt instanceof F?Rt:new F((function(er){er(Rt)}))).then(pe,Re)}Ke((W=W.apply(R,A||[])).next())}))}function o(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}typeof SuppressedError=="function"&&SuppressedError;var s=l;function l(R,A){this.x=R,this.y=A}l.prototype={clone:function(){return new l(this.x,this.y)},add:function(R){return this.clone()._add(R)},sub:function(R){return this.clone()._sub(R)},multByPoint:function(R){return this.clone()._multByPoint(R)},divByPoint:function(R){return this.clone()._divByPoint(R)},mult:function(R){return this.clone()._mult(R)},div:function(R){return this.clone()._div(R)},rotate:function(R){return this.clone()._rotate(R)},rotateAround:function(R,A){return this.clone()._rotateAround(R,A)},matMult:function(R){return this.clone()._matMult(R)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(R){return this.x===R.x&&this.y===R.y},dist:function(R){return Math.sqrt(this.distSqr(R))},distSqr:function(R){var A=R.x-this.x,F=R.y-this.y;return A*A+F*F},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(R){return Math.atan2(this.y-R.y,this.x-R.x)},angleWith:function(R){return this.angleWithSep(R.x,R.y)},angleWithSep:function(R,A){return Math.atan2(this.x*A-this.y*R,this.x*R+this.y*A)},_matMult:function(R){var A=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=A,this},_add:function(R){return this.x+=R.x,this.y+=R.y,this},_sub:function(R){return this.x-=R.x,this.y-=R.y,this},_mult:function(R){return this.x*=R,this.y*=R,this},_div:function(R){return this.x/=R,this.y/=R,this},_multByPoint:function(R){return this.x*=R.x,this.y*=R.y,this},_divByPoint:function(R){return this.x/=R.x,this.y/=R.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var R=this.y;return this.y=this.x,this.x=-R,this},_rotate:function(R){var A=Math.cos(R),F=Math.sin(R),W=F*this.x+A*this.y;return this.x=A*this.x-F*this.y,this.y=W,this},_rotateAround:function(R,A){var F=Math.cos(R),W=Math.sin(R),te=A.y+W*(this.x-A.x)+F*(this.y-A.y);return this.x=A.x+F*(this.x-A.x)-W*(this.y-A.y),this.y=te,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},l.convert=function(R){return R instanceof l?R:Array.isArray(R)?new l(R[0],R[1]):R};var u=o(s),c=f;function f(R,A,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*A,this.by=3*(W-A)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=A,this.p2x=F,this.p2y=W}f.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,A){if(A===void 0&&(A=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:Re=F,F=.5*(Re-pe)+pe;return F},solve:function(R,A){return this.sampleCurveY(this.solveCurveX(R,A))}};var h=o(c);let d,v;function m(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,m())){let A=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(A){for(let W=0;W<25;W++){let te=4*W;A.fillStyle=`rgb(${te},${te+1},${te+2})`,A.fillRect(W%5,Math.floor(W/5),1,1)}let F=A.getImageData(0,0,5,5).data;for(let W=0;W<100;W++)if(W%4!=3&&F[W]!==W){v=!0;break}}}return v||!1}function p(R,A,F,W){let te=new h(R,A,F,W);return fe=>te.solve(fe)}let k=p(.25,.1,.25,1);function M(R,A,F){return Math.min(F,Math.max(A,R))}function T(R,A,F){let W=F-A,te=((R-A)%W+W)%W+A;return te===A?F:te}function L(R,...A){for(let F of A)for(let W in F)R[W]=F[W];return R}let x=1;function C(R,A,F){let W={};for(let te in R)W[te]=A.call(this,R[te],te,R);return W}function S(R,A,F){let W={};for(let te in R)A.call(this,R[te],te,R)&&(W[te]=R[te]);return W}function g(R){return Array.isArray(R)?R.map(g):typeof R=="object"&&R?C(R,g):R}let P={};function E(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function z(R,A,F){return(F.y-R.y)*(A.x-R.x)>(A.y-R.y)*(F.x-R.x)}function q(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let V=null;function G(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function j(R,A,F,W,te){return a(this,void 0,void 0,(function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let fe=new VideoFrame(R,{timestamp:0});try{let pe=fe==null?void 0:fe.format;if(!pe||!pe.startsWith("BGR")&&!pe.startsWith("RGB"))throw new Error(`Unrecognized format ${pe}`);let Re=pe.startsWith("BGR"),Ke=new Uint8ClampedArray(W*te*4);if(yield fe.copyTo(Ke,(function(ft,Rt,er,ur,vr){let kr=4*Math.max(-Rt,0),Dr=(Math.max(0,er)-er)*ur*4+kr,li=4*ur,pi=Math.max(0,Rt),vn=Math.max(0,er);return{rect:{x:pi,y:vn,width:Math.min(ft.width,Rt+ur)-pi,height:Math.min(ft.height,er+vr)-vn},layout:[{offset:Dr,stride:li}]}})(R,A,F,W,te)),Re)for(let ft=0;ftq(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(R,A){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let W=Ee(R.url);if(W)return W(R,A);if(q(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:Ce},A)}if(!(/^file:/.test(F=R.url)||/^file:/.test(ie())&&!/^\w+:/.test(F))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return(function(W,te){return a(this,void 0,void 0,(function*(){let fe=new Request(W.url,{method:W.method||"GET",body:W.body,credentials:W.credentials,headers:W.headers,cache:W.cache,referrer:ie(),signal:te.signal});W.type!=="json"||fe.headers.has("Accept")||fe.headers.set("Accept","application/json");let pe=yield fetch(fe);if(!pe.ok){let ft=yield pe.blob();throw new ge(pe.status,pe.statusText,W.url,ft)}let Re;Re=W.type==="arrayBuffer"||W.type==="image"?pe.arrayBuffer():W.type==="json"?pe.json():pe.text();let Ke=yield Re;if(te.signal.aborted)throw ae();return{data:Ke,cacheControl:pe.headers.get("Cache-Control"),expires:pe.headers.get("Expires")}}))})(R,A);if(q(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:Ce},A)}var F;return(function(W,te){return new Promise(((fe,pe)=>{var Re;let Ke=new XMLHttpRequest;Ke.open(W.method||"GET",W.url,!0),W.type!=="arrayBuffer"&&W.type!=="image"||(Ke.responseType="arraybuffer");for(let ft in W.headers)Ke.setRequestHeader(ft,W.headers[ft]);W.type==="json"&&(Ke.responseType="text",!((Re=W.headers)===null||Re===void 0)&&Re.Accept||Ke.setRequestHeader("Accept","application/json")),Ke.withCredentials=W.credentials==="include",Ke.onerror=()=>{pe(new Error(Ke.statusText))},Ke.onload=()=>{if(!te.signal.aborted)if((Ke.status>=200&&Ke.status<300||Ke.status===0)&&Ke.response!==null){let ft=Ke.response;if(W.type==="json")try{ft=JSON.parse(Ke.response)}catch(Rt){return void pe(Rt)}fe({data:ft,cacheControl:Ke.getResponseHeader("Cache-Control"),expires:Ke.getResponseHeader("Expires")})}else{let ft=new Blob([Ke.response],{type:Ke.getResponseHeader("Content-Type")});pe(new ge(Ke.status,Ke.statusText,W.url,ft))}},te.signal.addEventListener("abort",(()=>{Ke.abort(),pe(ae())})),Ke.send(W.body)}))})(R,A)};function ke(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let A=new URL(R),F=window.location;return A.protocol===F.protocol&&A.host===F.host}function be(R,A,F){F[R]&&F[R].indexOf(A)!==-1||(F[R]=F[R]||[],F[R].push(A))}function Be(R,A,F){if(F&&F[R]){let W=F[R].indexOf(A);W!==-1&&F[R].splice(W,1)}}class Le{constructor(A,F={}){L(this,F),this.type=A}}class me extends Le{constructor(A,F={}){super("error",L({error:A},F))}}class Pe{on(A,F){return this._listeners=this._listeners||{},be(A,F,this._listeners),this}off(A,F){return Be(A,F,this._listeners),Be(A,F,this._oneTimeListeners),this}once(A,F){return F?(this._oneTimeListeners=this._oneTimeListeners||{},be(A,F,this._oneTimeListeners),this):new Promise((W=>this.once(A,W)))}fire(A,F){typeof A=="string"&&(A=new Le(A,F||{}));let W=A.type;if(this.listens(W)){A.target=this;let te=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(let Re of te)Re.call(this,A);let fe=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(let Re of fe)Be(W,Re,this._oneTimeListeners),Re.call(this,A);let pe=this._eventedParent;pe&&(L(A,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),pe.fire(A))}else A instanceof me&&console.error(A.error);return this}listens(A){return this._listeners&&this._listeners[A]&&this._listeners[A].length>0||this._oneTimeListeners&&this._oneTimeListeners[A]&&this._oneTimeListeners[A].length>0||this._eventedParent&&this._eventedParent.listens(A)}setEventedParent(A,F){return this._eventedParent=A,this._eventedParentData=F,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let He=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function lt(R,A){let F={};for(let W in R)W!=="ref"&&(F[W]=R[W]);return He.forEach((W=>{W in A&&(F[W]=A[W])})),F}function mt(R,A){if(Array.isArray(R)){if(!Array.isArray(A)||R.length!==A.length)return!1;for(let F=0;F`:R.itemType.kind==="value"?"array":`array<${A}>`}return R.kind}let We=[Tt,dt,Et,pt,jt,ei,or,Ge(mr),qr,jr,gt];function et(R,A){if(A.kind==="error")return null;if(R.kind==="array"){if(A.kind==="array"&&(A.N===0&&A.itemType.kind==="value"||!et(R.itemType,A.itemType))&&(typeof R.N!="number"||R.N===A.N))return null}else{if(R.kind===A.kind)return null;if(R.kind==="value"){for(let F of We)if(!et(F,A))return null}}return`Expected ${Je(R)} but found ${Je(A)} instead.`}function xt(R,A){return A.some((F=>F.kind===R.kind))}function At(R,A){return A.some((F=>F==="null"?R===null:F==="array"?Array.isArray(R):F==="object"?R&&!Array.isArray(R)&&typeof R=="object":F===typeof R))}function Kt(R,A){return R.kind==="array"&&A.kind==="array"?R.itemType.kind===A.itemType.kind&&typeof R.N=="number":R.kind===A.kind}let Qt=.96422,Mr=.82521,Gr=4/29,Ir=6/29,Yr=3*Ir*Ir,_i=Ir*Ir*Ir,Pi=Math.PI/180,ai=180/Math.PI;function mi(R){return(R%=360)<0&&(R+=360),R}function un([R,A,F,W]){let te,fe,pe=An((.2225045*(R=Fn(R))+.7168786*(A=Fn(A))+.0606169*(F=Fn(F)))/1);R===A&&A===F?te=fe=pe:(te=An((.4360747*R+.3850649*A+.1430804*F)/Qt),fe=An((.0139322*R+.0971045*A+.7141733*F)/Mr));let Re=116*pe-16;return[Re<0?0:Re,500*(te-pe),200*(pe-fe),W]}function Fn(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function An(R){return R>_i?Math.pow(R,1/3):R/Yr+Gr}function Hn([R,A,F,W]){let te=(R+16)/116,fe=isNaN(A)?te:te+A/500,pe=isNaN(F)?te:te-F/200;return te=1*Vi(te),fe=Qt*Vi(fe),pe=Mr*Vi(pe),[Qn(3.1338561*fe-1.6168667*te-.4906146*pe),Qn(-.9787684*fe+1.9161415*te+.033454*pe),Qn(.0719453*fe-.2289914*te+1.4052427*pe),W]}function Qn(R){return(R=R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055)<0?0:R>1?1:R}function Vi(R){return R>Ir?R*R*R:Yr*(R-Gr)}function Jn(R){return parseInt(R.padEnd(2,R),16)/255}function Yn(R,A){return Gt(A?R/100:R,0,1)}function Gt(R,A,F){return Math.min(Math.max(A,R),F)}function wt(R){return!R.some(Number.isNaN)}let tr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class ir{constructor(A,F,W,te=1,fe=!0){this.r=A,this.g=F,this.b=W,this.a=te,fe||(this.r*=te,this.g*=te,this.b*=te,te||this.overwriteGetter("rgb",[A,F,W,te]))}static parse(A){if(A instanceof ir)return A;if(typeof A!="string")return;let F=(function(W){if((W=W.toLowerCase().trim())==="transparent")return[0,0,0,0];let te=tr[W];if(te){let[pe,Re,Ke]=te;return[pe/255,Re/255,Ke/255,1]}if(W.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(W)){let pe=W.length<6?1:2,Re=1;return[Jn(W.slice(Re,Re+=pe)),Jn(W.slice(Re,Re+=pe)),Jn(W.slice(Re,Re+=pe)),Jn(W.slice(Re,Re+pe)||"ff")]}if(W.startsWith("rgb")){let pe=W.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(pe){let[Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn]=pe,zi=[Rt||" ",vr||" ",li].join("");if(zi===" "||zi===" /"||zi===",,"||zi===",,,"){let ln=[ft,ur,Dr].join(""),Tn=ln==="%%%"?100:ln===""?255:0;if(Tn){let pa=[Gt(+Ke/Tn,0,1),Gt(+er/Tn,0,1),Gt(+kr/Tn,0,1),pi?Yn(+pi,vn):1];if(wt(pa))return pa}}return}}let fe=W.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(fe){let[pe,Re,Ke,ft,Rt,er,ur,vr,kr]=fe,Dr=[Ke||" ",Rt||" ",ur].join("");if(Dr===" "||Dr===" /"||Dr===",,"||Dr===",,,"){let li=[+Re,Gt(+ft,0,100),Gt(+er,0,100),vr?Yn(+vr,kr):1];if(wt(li))return(function([pi,vn,zi,ln]){function Tn(pa){let ro=(pa+pi/30)%12,Vo=vn*Math.min(zi,1-zi);return zi-Vo*Math.max(-1,Math.min(ro-3,9-ro,1))}return pi=mi(pi),vn/=100,zi/=100,[Tn(0),Tn(8),Tn(4),ln]})(li)}}})(A);return F?new ir(...F,!1):void 0}get rgb(){let{r:A,g:F,b:W,a:te}=this,fe=te||1/0;return this.overwriteGetter("rgb",[A/fe,F/fe,W/fe,te])}get hcl(){return this.overwriteGetter("hcl",(function(A){let[F,W,te,fe]=un(A),pe=Math.sqrt(W*W+te*te);return[Math.round(1e4*pe)?mi(Math.atan2(te,W)*ai):NaN,pe,F,fe]})(this.rgb))}get lab(){return this.overwriteGetter("lab",un(this.rgb))}overwriteGetter(A,F){return Object.defineProperty(this,A,{value:F}),F}toString(){let[A,F,W,te]=this.rgb;return`rgba(${[A,F,W].map((fe=>Math.round(255*fe))).join(",")},${te})`}}ir.black=new ir(0,0,0,1),ir.white=new ir(1,1,1,1),ir.transparent=new ir(0,0,0,0),ir.red=new ir(1,0,0,1);class wr{constructor(A,F,W){this.sensitivity=A?F?"variant":"case":F?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(A,F){return this.collator.compare(A,F)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Xr{constructor(A,F,W,te,fe){this.text=A,this.image=F,this.scale=W,this.fontStack=te,this.textColor=fe}}class ti{constructor(A){this.sections=A}static fromString(A){return new ti([new Xr(A,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some((A=>A.text.length!==0||A.image&&A.image.name.length!==0))}static factory(A){return A instanceof ti?A:ti.fromString(A)}toString(){return this.sections.length===0?"":this.sections.map((A=>A.text)).join("")}}class $r{constructor(A){this.values=A.slice()}static parse(A){if(A instanceof $r)return A;if(typeof A=="number")return new $r([A,A,A,A]);if(Array.isArray(A)&&!(A.length<1||A.length>4)){for(let F of A)if(typeof F!="number")return;switch(A.length){case 1:A=[A[0],A[0],A[0],A[0]];break;case 2:A=[A[0],A[1],A[0],A[1]];break;case 3:A=[A[0],A[1],A[2],A[1]]}return new $r(A)}}toString(){return JSON.stringify(this.values)}}let Ri=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Hi{constructor(A){this.values=A.slice()}static parse(A){if(A instanceof Hi)return A;if(Array.isArray(A)&&!(A.length<1)&&A.length%2==0){for(let F=0;F=0&&R<=255&&typeof A=="number"&&A>=0&&A<=255&&typeof F=="number"&&F>=0&&F<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:`Invalid rgba value [${[R,A,F,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof W=="number"?[R,A,F,W]:[R,A,F]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function yn(R){if(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number"||R instanceof ir||R instanceof wr||R instanceof ti||R instanceof $r||R instanceof Hi||R instanceof en)return!0;if(Array.isArray(R)){for(let A of R)if(!yn(A))return!1;return!0}if(typeof R=="object"){for(let A in R)if(!yn(R[A]))return!1;return!0}return!1}function Mn(R){if(R===null)return Tt;if(typeof R=="string")return Et;if(typeof R=="boolean")return pt;if(typeof R=="number")return dt;if(R instanceof ir)return jt;if(R instanceof wr)return Ar;if(R instanceof ti)return ei;if(R instanceof $r)return qr;if(R instanceof Hi)return gt;if(R instanceof en)return jr;if(Array.isArray(R)){let A=R.length,F;for(let W of R){let te=Mn(W);if(F){if(F===te)continue;F=mr;break}F=te}return Ge(F||mr,A)}return or}function Ba(R){let A=typeof R;return R===null?"":A==="string"||A==="number"||A==="boolean"?String(R):R instanceof ir||R instanceof ti||R instanceof $r||R instanceof Hi||R instanceof en?R.toString():JSON.stringify(R)}class ua{constructor(A,F){this.type=A,this.value=F}static parse(A,F){if(A.length!==2)return F.error(`'literal' expression requires exactly one argument, but found ${A.length-1} instead.`);if(!yn(A[1]))return F.error("invalid value");let W=A[1],te=Mn(W),fe=F.expectedType;return te.kind!=="array"||te.N!==0||!fe||fe.kind!=="array"||typeof fe.N=="number"&&fe.N!==0||(te=fe),new ua(te,W)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ma{constructor(A){this.name="ExpressionEvaluationError",this.message=A}toJSON(){return this.message}}let Wa={string:Et,number:dt,boolean:pt,object:or};class za{constructor(A,F){this.type=A,this.args=F}static parse(A,F){if(A.length<2)return F.error("Expected at least one argument.");let W,te=1,fe=A[0];if(fe==="array"){let Re,Ke;if(A.length>2){let ft=A[1];if(typeof ft!="string"||!(ft in Wa)||ft==="object")return F.error('The item type argument of "array" must be one of string, number, boolean',1);Re=Wa[ft],te++}else Re=mr;if(A.length>3){if(A[2]!==null&&(typeof A[2]!="number"||A[2]<0||A[2]!==Math.floor(A[2])))return F.error('The length argument to "array" must be a positive integer literal',2);Ke=A[2],te++}W=Ge(Re,Ke)}else{if(!Wa[fe])throw new Error(`Types doesn't contain name = ${fe}`);W=Wa[fe]}let pe=[];for(;teA.outputDefined()))}}let Xo={"to-boolean":pt,"to-color":jt,"to-number":dt,"to-string":Et};class da{constructor(A,F){this.type=A,this.args=F}static parse(A,F){if(A.length<2)return F.error("Expected at least one argument.");let W=A[0];if(!Xo[W])throw new Error(`Can't parse ${W} as it is not part of the known types`);if((W==="to-boolean"||W==="to-string")&&A.length!==2)return F.error("Expected one argument.");let te=Xo[W],fe=[];for(let pe=1;pe4?`Invalid rbga value ${JSON.stringify(F)}: expected an array containing either three or four numeric values.`:fn(F[0],F[1],F[2],F[3]),!W))return new ir(F[0]/255,F[1]/255,F[2]/255,F[3])}throw new ma(W||`Could not parse color from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"padding":{let F;for(let W of this.args){F=W.evaluate(A);let te=$r.parse(F);if(te)return te}throw new ma(`Could not parse padding from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"variableAnchorOffsetCollection":{let F;for(let W of this.args){F=W.evaluate(A);let te=Hi.parse(F);if(te)return te}throw new ma(`Could not parse variableAnchorOffsetCollection from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"number":{let F=null;for(let W of this.args){if(F=W.evaluate(A),F===null)return 0;let te=Number(F);if(!isNaN(te))return te}throw new ma(`Could not convert ${JSON.stringify(F)} to number.`)}case"formatted":return ti.fromString(Ba(this.args[0].evaluate(A)));case"resolvedImage":return en.fromString(Ba(this.args[0].evaluate(A)));default:return Ba(this.args[0].evaluate(A))}}eachChild(A){this.args.forEach(A)}outputDefined(){return this.args.every((A=>A.outputDefined()))}}let jn=["Unknown","Point","LineString","Polygon"];class Ha{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?jn[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(A){let F=this._parseColorCache[A];return F||(F=this._parseColorCache[A]=ir.parse(A)),F}}class vo{constructor(A,F,W=[],te,fe=new St,pe=[]){this.registry=A,this.path=W,this.key=W.map((Re=>`[${Re}]`)).join(""),this.scope=fe,this.errors=pe,this.expectedType=te,this._isConstant=F}parse(A,F,W,te,fe={}){return F?this.concat(F,W,te)._parse(A,fe):this._parse(A,fe)}_parse(A,F){function W(te,fe,pe){return pe==="assert"?new za(fe,[te]):pe==="coerce"?new da(fe,[te]):te}if(A!==null&&typeof A!="string"&&typeof A!="boolean"&&typeof A!="number"||(A=["literal",A]),Array.isArray(A)){if(A.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let te=A[0];if(typeof te!="string")return this.error(`Expression name must be a string, but found ${typeof te} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let fe=this.registry[te];if(fe){let pe=fe.parse(A,this);if(!pe)return null;if(this.expectedType){let Re=this.expectedType,Ke=pe.type;if(Re.kind!=="string"&&Re.kind!=="number"&&Re.kind!=="boolean"&&Re.kind!=="object"&&Re.kind!=="array"||Ke.kind!=="value")if(Re.kind!=="color"&&Re.kind!=="formatted"&&Re.kind!=="resolvedImage"||Ke.kind!=="value"&&Ke.kind!=="string")if(Re.kind!=="padding"||Ke.kind!=="value"&&Ke.kind!=="number"&&Ke.kind!=="array")if(Re.kind!=="variableAnchorOffsetCollection"||Ke.kind!=="value"&&Ke.kind!=="array"){if(this.checkSubtype(Re,Ke))return null}else pe=W(pe,Re,F.typeAnnotation||"coerce");else pe=W(pe,Re,F.typeAnnotation||"coerce");else pe=W(pe,Re,F.typeAnnotation||"coerce");else pe=W(pe,Re,F.typeAnnotation||"assert")}if(!(pe instanceof ua)&&pe.type.kind!=="resolvedImage"&&this._isConstant(pe)){let Re=new Ha;try{pe=new ua(pe.type,pe.evaluate(Re))}catch(Ke){return this.error(Ke.message),null}}return pe}return this.error(`Unknown expression "${te}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(A===void 0?"'undefined' value invalid. Use null instead.":typeof A=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof A} instead.`)}concat(A,F,W){let te=typeof A=="number"?this.path.concat(A):this.path,fe=W?this.scope.concat(W):this.scope;return new vo(this.registry,this._isConstant,te,F||null,fe,this.errors)}error(A,...F){let W=`${this.key}${F.map((te=>`[${te}]`)).join("")}`;this.errors.push(new rt(W,A))}checkSubtype(A,F){let W=et(A,F);return W&&this.error(W),W}}class Gn{constructor(A,F){this.type=F.type,this.bindings=[].concat(A),this.result=F}evaluate(A){return this.result.evaluate(A)}eachChild(A){for(let F of this.bindings)A(F[1]);A(this.result)}static parse(A,F){if(A.length<4)return F.error(`Expected at least 3 arguments, but found ${A.length-1} instead.`);let W=[];for(let fe=1;fe=W.length)throw new ma(`Array index out of bounds: ${F} > ${W.length-1}.`);if(F!==Math.floor(F))throw new ma(`Array index must be an integer, but found ${F} instead.`);return W[F]}eachChild(A){A(this.index),A(this.input)}outputDefined(){return!1}}class Jr{constructor(A,F){this.type=pt,this.needle=A,this.haystack=F}static parse(A,F){if(A.length!==3)return F.error(`Expected 2 arguments, but found ${A.length-1} instead.`);let W=F.parse(A[1],1,mr),te=F.parse(A[2],2,mr);return W&&te?xt(W.type,[pt,Et,dt,Tt,mr])?new Jr(W,te):F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`):null}evaluate(A){let F=this.needle.evaluate(A),W=this.haystack.evaluate(A);if(!W)return!1;if(!At(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);if(!At(W,["string","array"]))throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`);return W.indexOf(F)>=0}eachChild(A){A(this.needle),A(this.haystack)}outputDefined(){return!0}}class hi{constructor(A,F,W){this.type=dt,this.needle=A,this.haystack=F,this.fromIndex=W}static parse(A,F){if(A.length<=2||A.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${A.length-1} instead.`);let W=F.parse(A[1],1,mr),te=F.parse(A[2],2,mr);if(!W||!te)return null;if(!xt(W.type,[pt,Et,dt,Tt,mr]))return F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`);if(A.length===4){let fe=F.parse(A[3],3,dt);return fe?new hi(W,te,fe):null}return new hi(W,te)}evaluate(A){let F=this.needle.evaluate(A),W=this.haystack.evaluate(A);if(!At(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);let te;if(this.fromIndex&&(te=this.fromIndex.evaluate(A)),At(W,["string"])){let fe=W.indexOf(F,te);return fe===-1?-1:[...W.slice(0,fe)].length}if(At(W,["array"]))return W.indexOf(F,te);throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`)}eachChild(A){A(this.needle),A(this.haystack),this.fromIndex&&A(this.fromIndex)}outputDefined(){return!1}}class hn{constructor(A,F,W,te,fe,pe){this.inputType=A,this.type=F,this.input=W,this.cases=te,this.outputs=fe,this.otherwise=pe}static parse(A,F){if(A.length<5)return F.error(`Expected at least 4 arguments, but found only ${A.length-1}.`);if(A.length%2!=1)return F.error("Expected an even number of arguments.");let W,te;F.expectedType&&F.expectedType.kind!=="value"&&(te=F.expectedType);let fe={},pe=[];for(let ft=2;ftNumber.MAX_SAFE_INTEGER)return ur.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof kr=="number"&&Math.floor(kr)!==kr)return ur.error("Numeric branch labels must be integer values.");if(W){if(ur.checkSubtype(W,Mn(kr)))return null}else W=Mn(kr);if(fe[String(kr)]!==void 0)return ur.error("Branch labels must be unique.");fe[String(kr)]=pe.length}let vr=F.parse(er,ft,te);if(!vr)return null;te=te||vr.type,pe.push(vr)}let Re=F.parse(A[1],1,mr);if(!Re)return null;let Ke=F.parse(A[A.length-1],A.length-1,te);return Ke?Re.type.kind!=="value"&&F.concat(1).checkSubtype(W,Re.type)?null:new hn(W,te,Re,fe,pe,Ke):null}evaluate(A){let F=this.input.evaluate(A);return(Mn(F)===this.inputType&&this.outputs[this.cases[F]]||this.otherwise).evaluate(A)}eachChild(A){A(this.input),this.outputs.forEach(A),A(this.otherwise)}outputDefined(){return this.outputs.every((A=>A.outputDefined()))&&this.otherwise.outputDefined()}}class Sn{constructor(A,F,W){this.type=A,this.branches=F,this.otherwise=W}static parse(A,F){if(A.length<4)return F.error(`Expected at least 3 arguments, but found only ${A.length-1}.`);if(A.length%2!=0)return F.error("Expected an odd number of arguments.");let W;F.expectedType&&F.expectedType.kind!=="value"&&(W=F.expectedType);let te=[];for(let pe=1;peF.outputDefined()))&&this.otherwise.outputDefined()}}class En{constructor(A,F,W,te){this.type=A,this.input=F,this.beginIndex=W,this.endIndex=te}static parse(A,F){if(A.length<=2||A.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${A.length-1} instead.`);let W=F.parse(A[1],1,mr),te=F.parse(A[2],2,dt);if(!W||!te)return null;if(!xt(W.type,[Ge(mr),Et,mr]))return F.error(`Expected first argument to be of type array or string, but found ${Je(W.type)} instead`);if(A.length===4){let fe=F.parse(A[3],3,dt);return fe?new En(W.type,W,te,fe):null}return new En(W.type,W,te)}evaluate(A){let F=this.input.evaluate(A),W=this.beginIndex.evaluate(A),te;if(this.endIndex&&(te=this.endIndex.evaluate(A)),At(F,["string"]))return[...F].slice(W,te).join("");if(At(F,["array"]))return F.slice(W,te);throw new ma(`Expected first argument to be of type array or string, but found ${Je(Mn(F))} instead.`)}eachChild(A){A(this.input),A(this.beginIndex),this.endIndex&&A(this.endIndex)}outputDefined(){return!1}}function ki(R,A){let F=R.length-1,W,te,fe=0,pe=F,Re=0;for(;fe<=pe;)if(Re=Math.floor((fe+pe)/2),W=R[Re],te=R[Re+1],W<=A){if(Re===F||AA))throw new ma("Input is not a number.");pe=Re-1}return 0}class _n{constructor(A,F,W){this.type=A,this.input=F,this.labels=[],this.outputs=[];for(let[te,fe]of W)this.labels.push(te),this.outputs.push(fe)}static parse(A,F){if(A.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${A.length-1}.`);if((A.length-1)%2!=0)return F.error("Expected an even number of arguments.");let W=F.parse(A[1],1,dt);if(!W)return null;let te=[],fe=null;F.expectedType&&F.expectedType.kind!=="value"&&(fe=F.expectedType);for(let pe=1;pe=Re)return F.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',ft);let er=F.parse(Ke,Rt,fe);if(!er)return null;fe=fe||er.type,te.push([Re,er])}return new _n(fe,W,te)}evaluate(A){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(A);let te=this.input.evaluate(A);if(te<=F[0])return W[0].evaluate(A);let fe=F.length;return te>=F[fe-1]?W[fe-1].evaluate(A):W[ki(F,te)].evaluate(A)}eachChild(A){A(this.input);for(let F of this.outputs)A(F)}outputDefined(){return this.outputs.every((A=>A.outputDefined()))}}function ya(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var ea=Ma;function Ma(R,A,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*A,this.by=3*(W-A)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=A,this.p2x=F,this.p2y=W}Ma.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,A){if(A===void 0&&(A=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:Re=F,F=.5*(Re-pe)+pe;return F},solve:function(R,A){return this.sampleCurveY(this.solveCurveX(R,A))}};var _o=ya(ea);function No(R,A,F){return R+F*(A-R)}function po(R,A,F){return R.map(((W,te)=>No(W,A[te],F)))}let Lo={number:No,color:function(R,A,F,W="rgb"){switch(W){case"rgb":{let[te,fe,pe,Re]=po(R.rgb,A.rgb,F);return new ir(te,fe,pe,Re,!1)}case"hcl":{let[te,fe,pe,Re]=R.hcl,[Ke,ft,Rt,er]=A.hcl,ur,vr;if(isNaN(te)||isNaN(Ke))isNaN(te)?isNaN(Ke)?ur=NaN:(ur=Ke,pe!==1&&pe!==0||(vr=ft)):(ur=te,Rt!==1&&Rt!==0||(vr=fe));else{let vn=Ke-te;Ke>te&&vn>180?vn-=360:Ke180&&(vn+=360),ur=te+F*vn}let[kr,Dr,li,pi]=(function([vn,zi,ln,Tn]){return vn=isNaN(vn)?0:vn*Pi,Hn([ln,Math.cos(vn)*zi,Math.sin(vn)*zi,Tn])})([ur,vr!=null?vr:No(fe,ft,F),No(pe,Rt,F),No(Re,er,F)]);return new ir(kr,Dr,li,pi,!1)}case"lab":{let[te,fe,pe,Re]=Hn(po(R.lab,A.lab,F));return new ir(te,fe,pe,Re,!1)}}},array:po,padding:function(R,A,F){return new $r(po(R.values,A.values,F))},variableAnchorOffsetCollection:function(R,A,F){let W=R.values,te=A.values;if(W.length!==te.length)throw new ma(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${A.toString()}`);let fe=[];for(let pe=0;petypeof Rt!="number"||Rt<0||Rt>1)))return F.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);te={name:"cubic-bezier",controlPoints:ft}}}if(A.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${A.length-1}.`);if((A.length-1)%2!=0)return F.error("Expected an even number of arguments.");if(fe=F.parse(fe,2,dt),!fe)return null;let Re=[],Ke=null;W==="interpolate-hcl"||W==="interpolate-lab"?Ke=jt:F.expectedType&&F.expectedType.kind!=="value"&&(Ke=F.expectedType);for(let ft=0;ft=Rt)return F.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ur);let kr=F.parse(er,vr,Ke);if(!kr)return null;Ke=Ke||kr.type,Re.push([Rt,kr])}return Kt(Ke,dt)||Kt(Ke,jt)||Kt(Ke,qr)||Kt(Ke,gt)||Kt(Ke,Ge(dt))?new ko(Ke,W,te,fe,Re):F.error(`Type ${Je(Ke)} is not interpolatable.`)}evaluate(A){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(A);let te=this.input.evaluate(A);if(te<=F[0])return W[0].evaluate(A);let fe=F.length;if(te>=F[fe-1])return W[fe-1].evaluate(A);let pe=ki(F,te),Re=ko.interpolationFactor(this.interpolation,te,F[pe],F[pe+1]),Ke=W[pe].evaluate(A),ft=W[pe+1].evaluate(A);switch(this.operator){case"interpolate":return Lo[this.type.kind](Ke,ft,Re);case"interpolate-hcl":return Lo.color(Ke,ft,Re,"hcl");case"interpolate-lab":return Lo.color(Ke,ft,Re,"lab")}}eachChild(A){A(this.input);for(let F of this.outputs)A(F)}outputDefined(){return this.outputs.every((A=>A.outputDefined()))}}function Ds(R,A,F,W){let te=W-F,fe=R-F;return te===0?0:A===1?fe/te:(Math.pow(A,fe)-1)/(Math.pow(A,te)-1)}class Fs{constructor(A,F){this.type=A,this.args=F}static parse(A,F){if(A.length<2)return F.error("Expectected at least one argument.");let W=null,te=F.expectedType;te&&te.kind!=="value"&&(W=te);let fe=[];for(let Re of A.slice(1)){let Ke=F.parse(Re,1+fe.length,W,void 0,{typeAnnotation:"omit"});if(!Ke)return null;W=W||Ke.type,fe.push(Ke)}if(!W)throw new Error("No output type");let pe=te&&fe.some((Re=>et(te,Re.type)));return new Fs(pe?mr:W,fe)}evaluate(A){let F,W=null,te=0;for(let fe of this.args)if(te++,W=fe.evaluate(A),W&&W instanceof en&&!W.available&&(F||(F=W.name),W=null,te===this.args.length&&(W=F)),W!==null)break;return W}eachChild(A){this.args.forEach(A)}outputDefined(){return this.args.every((A=>A.outputDefined()))}}function ll(R,A){return R==="=="||R==="!="?A.kind==="boolean"||A.kind==="string"||A.kind==="number"||A.kind==="null"||A.kind==="value":A.kind==="string"||A.kind==="number"||A.kind==="value"}function ul(R,A,F,W){return W.compare(A,F)===0}function Fl(R,A,F){let W=R!=="=="&&R!=="!=";return class bje{constructor(fe,pe,Re){this.type=pt,this.lhs=fe,this.rhs=pe,this.collator=Re,this.hasUntypedArgument=fe.type.kind==="value"||pe.type.kind==="value"}static parse(fe,pe){if(fe.length!==3&&fe.length!==4)return pe.error("Expected two or three arguments.");let Re=fe[0],Ke=pe.parse(fe[1],1,mr);if(!Ke)return null;if(!ll(Re,Ke.type))return pe.concat(1).error(`"${Re}" comparisons are not supported for type '${Je(Ke.type)}'.`);let ft=pe.parse(fe[2],2,mr);if(!ft)return null;if(!ll(Re,ft.type))return pe.concat(2).error(`"${Re}" comparisons are not supported for type '${Je(ft.type)}'.`);if(Ke.type.kind!==ft.type.kind&&Ke.type.kind!=="value"&&ft.type.kind!=="value")return pe.error(`Cannot compare types '${Je(Ke.type)}' and '${Je(ft.type)}'.`);W&&(Ke.type.kind==="value"&&ft.type.kind!=="value"?Ke=new za(ft.type,[Ke]):Ke.type.kind!=="value"&&ft.type.kind==="value"&&(ft=new za(Ke.type,[ft])));let Rt=null;if(fe.length===4){if(Ke.type.kind!=="string"&&ft.type.kind!=="string"&&Ke.type.kind!=="value"&&ft.type.kind!=="value")return pe.error("Cannot use collator to compare non-string types.");if(Rt=pe.parse(fe[3],3,Ar),!Rt)return null}return new bje(Ke,ft,Rt)}evaluate(fe){let pe=this.lhs.evaluate(fe),Re=this.rhs.evaluate(fe);if(W&&this.hasUntypedArgument){let Ke=Mn(pe),ft=Mn(Re);if(Ke.kind!==ft.kind||Ke.kind!=="string"&&Ke.kind!=="number")throw new ma(`Expected arguments for "${R}" to be (string, string) or (number, number), but found (${Ke.kind}, ${ft.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){let Ke=Mn(pe),ft=Mn(Re);if(Ke.kind!=="string"||ft.kind!=="string")return A(fe,pe,Re)}return this.collator?F(fe,pe,Re,this.collator.evaluate(fe)):A(fe,pe,Re)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let us=Fl("==",(function(R,A,F){return A===F}),ul),rl=Fl("!=",(function(R,A,F){return A!==F}),(function(R,A,F,W){return!ul(0,A,F,W)})),As=Fl("<",(function(R,A,F){return A",(function(R,A,F){return A>F}),(function(R,A,F,W){return W.compare(A,F)>0})),Ks=Fl("<=",(function(R,A,F){return A<=F}),(function(R,A,F,W){return W.compare(A,F)<=0})),zs=Fl(">=",(function(R,A,F){return A>=F}),(function(R,A,F,W){return W.compare(A,F)>=0}));class Io{constructor(A,F,W){this.type=Ar,this.locale=W,this.caseSensitive=A,this.diacriticSensitive=F}static parse(A,F){if(A.length!==2)return F.error("Expected one argument.");let W=A[1];if(typeof W!="object"||Array.isArray(W))return F.error("Collator options argument must be an object.");let te=F.parse(W["case-sensitive"]!==void 0&&W["case-sensitive"],1,pt);if(!te)return null;let fe=F.parse(W["diacritic-sensitive"]!==void 0&&W["diacritic-sensitive"],1,pt);if(!fe)return null;let pe=null;return W.locale&&(pe=F.parse(W.locale,1,Et),!pe)?null:new Io(te,fe,pe)}evaluate(A){return new wr(this.caseSensitive.evaluate(A),this.diacriticSensitive.evaluate(A),this.locale?this.locale.evaluate(A):null)}eachChild(A){A(this.caseSensitive),A(this.diacriticSensitive),this.locale&&A(this.locale)}outputDefined(){return!1}}class ls{constructor(A,F,W,te,fe){this.type=Et,this.number=A,this.locale=F,this.currency=W,this.minFractionDigits=te,this.maxFractionDigits=fe}static parse(A,F){if(A.length!==3)return F.error("Expected two arguments.");let W=F.parse(A[1],1,dt);if(!W)return null;let te=A[2];if(typeof te!="object"||Array.isArray(te))return F.error("NumberFormat options argument must be an object.");let fe=null;if(te.locale&&(fe=F.parse(te.locale,1,Et),!fe))return null;let pe=null;if(te.currency&&(pe=F.parse(te.currency,1,Et),!pe))return null;let Re=null;if(te["min-fraction-digits"]&&(Re=F.parse(te["min-fraction-digits"],1,dt),!Re))return null;let Ke=null;return te["max-fraction-digits"]&&(Ke=F.parse(te["max-fraction-digits"],1,dt),!Ke)?null:new ls(W,fe,pe,Re,Ke)}evaluate(A){return new Intl.NumberFormat(this.locale?this.locale.evaluate(A):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(A):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(A):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(A):void 0}).format(this.number.evaluate(A))}eachChild(A){A(this.number),this.locale&&A(this.locale),this.currency&&A(this.currency),this.minFractionDigits&&A(this.minFractionDigits),this.maxFractionDigits&&A(this.maxFractionDigits)}outputDefined(){return!1}}class Yl{constructor(A){this.type=ei,this.sections=A}static parse(A,F){if(A.length<2)return F.error("Expected at least one argument.");let W=A[1];if(!Array.isArray(W)&&typeof W=="object")return F.error("First argument must be an image or text section.");let te=[],fe=!1;for(let pe=1;pe<=A.length-1;++pe){let Re=A[pe];if(fe&&typeof Re=="object"&&!Array.isArray(Re)){fe=!1;let Ke=null;if(Re["font-scale"]&&(Ke=F.parse(Re["font-scale"],1,dt),!Ke))return null;let ft=null;if(Re["text-font"]&&(ft=F.parse(Re["text-font"],1,Ge(Et)),!ft))return null;let Rt=null;if(Re["text-color"]&&(Rt=F.parse(Re["text-color"],1,jt),!Rt))return null;let er=te[te.length-1];er.scale=Ke,er.font=ft,er.textColor=Rt}else{let Ke=F.parse(A[pe],1,mr);if(!Ke)return null;let ft=Ke.type.kind;if(ft!=="string"&&ft!=="value"&&ft!=="null"&&ft!=="resolvedImage")return F.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");fe=!0,te.push({content:Ke,scale:null,font:null,textColor:null})}}return new Yl(te)}evaluate(A){return new ti(this.sections.map((F=>{let W=F.content.evaluate(A);return Mn(W)===jr?new Xr("",W,null,null,null):new Xr(Ba(W),null,F.scale?F.scale.evaluate(A):null,F.font?F.font.evaluate(A).join(","):null,F.textColor?F.textColor.evaluate(A):null)})))}eachChild(A){for(let F of this.sections)A(F.content),F.scale&&A(F.scale),F.font&&A(F.font),F.textColor&&A(F.textColor)}outputDefined(){return!1}}class Su{constructor(A){this.type=jr,this.input=A}static parse(A,F){if(A.length!==2)return F.error("Expected two arguments.");let W=F.parse(A[1],1,Et);return W?new Su(W):F.error("No image name provided.")}evaluate(A){let F=this.input.evaluate(A),W=en.fromString(F);return W&&A.availableImages&&(W.available=A.availableImages.indexOf(F)>-1),W}eachChild(A){A(this.input)}outputDefined(){return!1}}class nc{constructor(A){this.type=dt,this.input=A}static parse(A,F){if(A.length!==2)return F.error(`Expected 1 argument, but found ${A.length-1} instead.`);let W=F.parse(A[1],1);return W?W.type.kind!=="array"&&W.type.kind!=="string"&&W.type.kind!=="value"?F.error(`Expected argument of type string or array, but found ${Je(W.type)} instead.`):new nc(W):null}evaluate(A){let F=this.input.evaluate(A);if(typeof F=="string")return[...F].length;if(Array.isArray(F))return F.length;throw new ma(`Expected value to be of type string or array, but found ${Je(Mn(F))} instead.`)}eachChild(A){A(this.input)}outputDefined(){return!1}}let bs=8192;function Rn(R,A){let F=(180+R[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R[1]*Math.PI/360)))/360,te=Math.pow(2,A.z);return[Math.round(F*te*bs),Math.round(W*te*bs)]}function _a(R,A){let F=Math.pow(2,A.z);return[(te=(R[0]/bs+A.x)/F,360*te-180),(W=(R[1]/bs+A.y)/F,360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90)];var W,te}function Vu(R,A){R[0]=Math.min(R[0],A[0]),R[1]=Math.min(R[1],A[1]),R[2]=Math.max(R[2],A[0]),R[3]=Math.max(R[3],A[1])}function zl(R,A){return!(R[0]<=A[0]||R[2]>=A[2]||R[1]<=A[1]||R[3]>=A[3])}function xo(R,A,F){let W=R[0]-A[0],te=R[1]-A[1],fe=R[0]-F[0],pe=R[1]-F[1];return W*pe-fe*te==0&&W*fe<=0&&te*pe<=0}function Kl(R,A,F,W){return(te=[W[0]-F[0],W[1]-F[1]])[0]*(fe=[A[0]-R[0],A[1]-R[1]])[1]-te[1]*fe[0]!=0&&!(!Oo(R,A,F,W)||!Oo(F,W,R,A));var te,fe}function Ns(R,A,F){for(let W of F)for(let te=0;te(te=R)[1]!=(pe=Re[Ke+1])[1]>te[1]&&te[0]<(pe[0]-fe[0])*(te[1]-fe[1])/(pe[1]-fe[1])+fe[0]&&(W=!W)}var te,fe,pe;return W}function ac(R,A){for(let F of A)if(Hl(R,F))return!0;return!1}function oa(R,A){for(let F of R)if(!Hl(F,A))return!1;for(let F=0;F0&&Re<0||pe<0&&Re>0}function ql(R,A,F){let W=[];for(let te=0;teF[2]){let te=.5*W,fe=R[0]-F[0]>te?-W:F[0]-R[0]>te?W:0;fe===0&&(fe=R[0]-F[2]>te?-W:F[2]-R[0]>te?W:0),R[0]+=fe}Vu(A,R)}function nf(R,A,F,W){let te=Math.pow(2,W.z)*bs,fe=[W.x*bs,W.y*bs],pe=[];for(let Re of R)for(let Ke of Re){let ft=[Ke.x+fe[0],Ke.y+fe[1]];Do(ft,A,F,te),pe.push(ft)}return pe}function Vf(R,A,F,W){let te=Math.pow(2,W.z)*bs,fe=[W.x*bs,W.y*bs],pe=[];for(let Ke of R){let ft=[];for(let Rt of Ke){let er=[Rt.x+fe[0],Rt.y+fe[1]];Vu(A,er),ft.push(er)}pe.push(ft)}if(A[2]-A[0]<=te/2){(Re=A)[0]=Re[1]=1/0,Re[2]=Re[3]=-1/0;for(let Ke of pe)for(let ft of Ke)Do(ft,A,F,te)}var Re;return pe}class pl{constructor(A,F){this.type=pt,this.geojson=A,this.geometries=F}static parse(A,F){if(A.length!==2)return F.error(`'within' expression requires exactly one argument, but found ${A.length-1} instead.`);if(yn(A[1])){let W=A[1];if(W.type==="FeatureCollection"){let te=[];for(let fe of W.features){let{type:pe,coordinates:Re}=fe.geometry;pe==="Polygon"&&te.push(Re),pe==="MultiPolygon"&&te.push(...Re)}if(te.length)return new pl(W,{type:"MultiPolygon",coordinates:te})}else if(W.type==="Feature"){let te=W.geometry.type;if(te==="Polygon"||te==="MultiPolygon")return new pl(W,W.geometry)}else if(W.type==="Polygon"||W.type==="MultiPolygon")return new pl(W,W)}return F.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(A){if(A.geometry()!=null&&A.canonicalID()!=null){if(A.geometryType()==="Point")return(function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let Re=ql(W.coordinates,fe,pe),Ke=nf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ft of Ke)if(!Hl(ft,Re))return!1}if(W.type==="MultiPolygon"){let Re=Pc(W.coordinates,fe,pe),Ke=nf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ft of Ke)if(!ac(ft,Re))return!1}return!0})(A,this.geometries);if(A.geometryType()==="LineString")return(function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let Re=ql(W.coordinates,fe,pe),Ke=Vf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ft of Ke)if(!oa(ft,Re))return!1}if(W.type==="MultiPolygon"){let Re=Pc(W.coordinates,fe,pe),Ke=Vf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ft of Ke)if(!qo(ft,Re))return!1}return!0})(A,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Zc=class{constructor(R=[],A=((F,W)=>FW?1:0)){if(this.data=R,this.length=this.data.length,this.compare=A,this.length>0)for(let F=(this.length>>1)-1;F>=0;F--)this._down(F)}push(R){this.data.push(R),this._up(this.length++)}pop(){if(this.length===0)return;let R=this.data[0],A=this.data.pop();return--this.length>0&&(this.data[0]=A,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:A,compare:F}=this,W=A[R];for(;R>0;){let te=R-1>>1,fe=A[te];if(F(W,fe)>=0)break;A[R]=fe,R=te}A[R]=W}_down(R){let{data:A,compare:F}=this,W=this.length>>1,te=A[R];for(;R=0)break;A[R]=A[fe],R=fe}A[R]=te}};function Jl(R,A,F,W,te){qs(R,A,F,W||R.length-1,te||oc)}function qs(R,A,F,W,te){for(;W>F;){if(W-F>600){var fe=W-F+1,pe=A-F+1,Re=Math.log(fe),Ke=.5*Math.exp(2*Re/3),ft=.5*Math.sqrt(Re*Ke*(fe-Ke)/fe)*(pe-fe/2<0?-1:1);qs(R,A,Math.max(F,Math.floor(A-pe*Ke/fe+ft)),Math.min(W,Math.floor(A+(fe-pe)*Ke/fe+ft)),te)}var Rt=R[A],er=F,ur=W;for(yu(R,F,A),te(R[W],Rt)>0&&yu(R,F,W);er0;)ur--}te(R[F],Rt)===0?yu(R,F,ur):yu(R,++ur,W),ur<=A&&(F=ur+1),A<=ur&&(W=ur-1)}}function yu(R,A,F){var W=R[A];R[A]=R[F],R[F]=W}function oc(R,A){return RA?1:0}function Cf(R,A){if(R.length<=1)return[R];let F=[],W,te;for(let fe of R){let pe=jh(fe);pe!==0&&(fe.area=Math.abs(pe),te===void 0&&(te=pe<0),te===pe<0?(W&&F.push(W),W=[fe]):W.push(fe))}if(W&&F.push(W),A>1)for(let fe=0;fe1?(ft=A[Ke+1][0],Rt=A[Ke+1][1]):vr>0&&(ft+=er/this.kx*vr,Rt+=ur/this.ky*vr)),er=this.wrap(F[0]-ft)*this.kx,ur=(F[1]-Rt)*this.ky;let kr=er*er+ur*ur;kr180;)A-=360;return A}}function $l(R,A){return A[0]-R[0]}function fl(R){return R[1]-R[0]+1}function lc(R,A){return R[1]>=R[0]&&R[1]R[1])return[null,null];let F=fl(R);if(A){if(F===2)return[R,null];let te=Math.floor(F/2);return[[R[0],R[0]+te],[R[0]+te,R[1]]]}if(F===1)return[R,null];let W=Math.floor(F/2)-1;return[[R[0],R[0]+W],[R[0]+W+1,R[1]]]}function Es(R,A){if(!lc(A,R.length))return[1/0,1/0,-1/0,-1/0];let F=[1/0,1/0,-1/0,-1/0];for(let W=A[0];W<=A[1];++W)Vu(F,R[W]);return F}function Hs(R){let A=[1/0,1/0,-1/0,-1/0];for(let F of R)for(let W of F)Vu(A,W);return A}function Go(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function ps(R,A,F){if(!Go(R)||!Go(A))return NaN;let W=0,te=0;return R[2]A[2]&&(W=R[0]-A[2]),R[1]>A[3]&&(te=R[1]-A[3]),R[3]=W)return W;if(zl(te,fe)){if(sd(R,A))return 0}else if(sd(A,R))return 0;let pe=1/0;for(let Re of R)for(let Ke=0,ft=Re.length,Rt=ft-1;Ke0;){let Ke=pe.pop();if(Ke[0]>=fe)continue;let ft=Ke[1],Rt=A?50:100;if(fl(ft)<=Rt){if(!lc(ft,R.length))return NaN;if(A){let er=Po(R,ft,F,W);if(isNaN(er)||er===0)return er;fe=Math.min(fe,er)}else for(let er=ft[0];er<=ft[1];++er){let ur=od(R[er],F,W);if(fe=Math.min(fe,ur),fe===0)return 0}}else{let er=Fu(ft,A);Pa(pe,fe,W,R,Re,er[0]),Pa(pe,fe,W,R,Re,er[1])}}return fe}function wl(R,A,F,W,te,fe=1/0){let pe=Math.min(fe,te.distance(R[0],F[0]));if(pe===0)return pe;let Re=new Zc([[0,[0,R.length-1],[0,F.length-1]]],$l);for(;Re.length>0;){let Ke=Re.pop();if(Ke[0]>=pe)continue;let ft=Ke[1],Rt=Ke[2],er=A?50:100,ur=W?50:100;if(fl(ft)<=er&&fl(Rt)<=ur){if(!lc(ft,R.length)&&lc(Rt,F.length))return NaN;let vr;if(A&&W)vr=Gu(R,ft,F,Rt,te),pe=Math.min(pe,vr);else if(A&&!W){let kr=R.slice(ft[0],ft[1]+1);for(let Dr=Rt[0];Dr<=Rt[1];++Dr)if(vr=uc(F[Dr],kr,te),pe=Math.min(pe,vr),pe===0)return pe}else if(!A&&W){let kr=F.slice(Rt[0],Rt[1]+1);for(let Dr=ft[0];Dr<=ft[1];++Dr)if(vr=uc(R[Dr],kr,te),pe=Math.min(pe,vr),pe===0)return pe}else vr=Os(R,ft,F,Rt,te),pe=Math.min(pe,vr)}else{let vr=Fu(ft,A),kr=Fu(Rt,W);of(Re,pe,te,R,F,vr[0],kr[0]),of(Re,pe,te,R,F,vr[0],kr[1]),of(Re,pe,te,R,F,vr[1],kr[0]),of(Re,pe,te,R,F,vr[1],kr[1])}}return pe}function Hf(R){return R.type==="MultiPolygon"?R.coordinates.map((A=>({type:"Polygon",coordinates:A}))):R.type==="MultiLineString"?R.coordinates.map((A=>({type:"LineString",coordinates:A}))):R.type==="MultiPoint"?R.coordinates.map((A=>({type:"Point",coordinates:A}))):[R]}class Ic{constructor(A,F){this.type=dt,this.geojson=A,this.geometries=F}static parse(A,F){if(A.length!==2)return F.error(`'distance' expression requires exactly one argument, but found ${A.length-1} instead.`);if(yn(A[1])){let W=A[1];if(W.type==="FeatureCollection")return new Ic(W,W.features.map((te=>Hf(te.geometry))).flat());if(W.type==="Feature")return new Ic(W,Hf(W.geometry));if("type"in W&&"coordinates"in W)return new Ic(W,Hf(W))}return F.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(A){if(A.geometry()!=null&&A.canonicalID()!=null){if(A.geometryType()==="Point")return(function(F,W){let te=F.geometry(),fe=te.flat().map((Ke=>_a([Ke.x,Ke.y],F.canonical)));if(te.length===0)return NaN;let pe=new Gf(fe[0][1]),Re=1/0;for(let Ke of W){switch(Ke.type){case"Point":Re=Math.min(Re,wl(fe,!1,[Ke.coordinates],!1,pe,Re));break;case"LineString":Re=Math.min(Re,wl(fe,!1,Ke.coordinates,!0,pe,Re));break;case"Polygon":Re=Math.min(Re,Hu(fe,!1,Ke.coordinates,pe,Re))}if(Re===0)return Re}return Re})(A,this.geometries);if(A.geometryType()==="LineString")return(function(F,W){let te=F.geometry(),fe=te.flat().map((Ke=>_a([Ke.x,Ke.y],F.canonical)));if(te.length===0)return NaN;let pe=new Gf(fe[0][1]),Re=1/0;for(let Ke of W){switch(Ke.type){case"Point":Re=Math.min(Re,wl(fe,!0,[Ke.coordinates],!1,pe,Re));break;case"LineString":Re=Math.min(Re,wl(fe,!0,Ke.coordinates,!0,pe,Re));break;case"Polygon":Re=Math.min(Re,Hu(fe,!0,Ke.coordinates,pe,Re))}if(Re===0)return Re}return Re})(A,this.geometries);if(A.geometryType()==="Polygon")return(function(F,W){let te=F.geometry();if(te.length===0||te[0].length===0)return NaN;let fe=Cf(te,0).map((Ke=>Ke.map((ft=>ft.map((Rt=>_a([Rt.x,Rt.y],F.canonical))))))),pe=new Gf(fe[0][0][0][1]),Re=1/0;for(let Ke of W)for(let ft of fe){switch(Ke.type){case"Point":Re=Math.min(Re,Hu([Ke.coordinates],!1,ft,pe,Re));break;case"LineString":Re=Math.min(Re,Hu(Ke.coordinates,!0,ft,pe,Re));break;case"Polygon":Re=Math.min(Re,Ko(ft,Ke.coordinates,pe,Re))}if(Re===0)return Re}return Re})(A,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let yf={"==":us,"!=":rl,">":cl,"<":As,">=":zs,"<=":Ks,array:za,at:Sr,boolean:za,case:Sn,coalesce:Fs,collator:Io,format:Yl,image:Su,in:Jr,"index-of":hi,interpolate:ko,"interpolate-hcl":ko,"interpolate-lab":ko,length:nc,let:Gn,literal:ua,match:hn,number:za,"number-format":ls,object:za,slice:En,step:_n,string:za,"to-boolean":da,"to-color":da,"to-number":da,"to-string":da,var:Ct,within:pl,distance:Ic};class Ol{constructor(A,F,W,te){this.name=A,this.type=F,this._evaluate=W,this.args=te}evaluate(A){return this._evaluate(A,this.args)}eachChild(A){this.args.forEach(A)}outputDefined(){return!1}static parse(A,F){let W=A[0],te=Ol.definitions[W];if(!te)return F.error(`Unknown expression "${W}". If you wanted a literal array, use ["literal", [...]].`,0);let fe=Array.isArray(te)?te[0]:te.type,pe=Array.isArray(te)?[[te[1],te[2]]]:te.overloads,Re=pe.filter((([ft])=>!Array.isArray(ft)||ft.length===A.length-1)),Ke=null;for(let[ft,Rt]of Re){Ke=new vo(F.registry,eh,F.path,null,F.scope);let er=[],ur=!1;for(let vr=1;vr{return ur=er,Array.isArray(ur)?`(${ur.map(Je).join(", ")})`:`(${Je(ur.type)}...)`;var ur})).join(" | "),Rt=[];for(let er=1;er{F=A?F&&eh(W):F&&W instanceof ua})),!!F&&th(R)&&jf(R,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function th(R){if(R instanceof Ol&&(R.name==="get"&&R.args.length===1||R.name==="feature-state"||R.name==="has"&&R.args.length===1||R.name==="properties"||R.name==="geometry-type"||R.name==="id"||/^filter-/.test(R.name))||R instanceof pl||R instanceof Ic)return!1;let A=!0;return R.eachChild((F=>{A&&!th(F)&&(A=!1)})),A}function ju(R){if(R instanceof Ol&&R.name==="feature-state")return!1;let A=!0;return R.eachChild((F=>{A&&!ju(F)&&(A=!1)})),A}function jf(R,A){if(R instanceof Ol&&A.indexOf(R.name)>=0)return!1;let F=!0;return R.eachChild((W=>{F&&!jf(W,A)&&(F=!1)})),F}function cc(R){return{result:"success",value:R}}function sf(R){return{result:"error",value:R}}function Bl(R){return R["property-type"]==="data-driven"||R["property-type"]==="cross-faded-data-driven"}function Kc(R){return!!R.expression&&R.expression.parameters.indexOf("zoom")>-1}function Rc(R){return!!R.expression&&R.expression.interpolated}function gs(R){return R instanceof Number?"number":R instanceof String?"string":R instanceof Boolean?"boolean":Array.isArray(R)?"array":R===null?"null":typeof R}function Wf(R){return typeof R=="object"&&R!==null&&!Array.isArray(R)}function Wh(R){return R}function rh(R,A){let F=A.type==="color",W=R.stops&&typeof R.stops[0][0]=="object",te=W||!(W||R.property!==void 0),fe=R.type||(Rc(A)?"exponential":"interval");if(F||A.type==="padding"){let Rt=F?ir.parse:$r.parse;(R=Ae({},R)).stops&&(R.stops=R.stops.map((er=>[er[0],Rt(er[1])]))),R.default=Rt(R.default?R.default:A.default)}if(R.colorSpace&&(pe=R.colorSpace)!=="rgb"&&pe!=="hcl"&&pe!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var pe;let Re,Ke,ft;if(fe==="exponential")Re=ih;else if(fe==="interval")Re=Mu;else if(fe==="categorical"){Re=Sh,Ke=Object.create(null);for(let Rt of R.stops)Ke[Rt[0]]=Rt[1];ft=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);Re=js}if(W){let Rt={},er=[];for(let kr=0;krkr[0])),evaluate:({zoom:kr},Dr)=>ih({stops:ur,base:R.base},A,kr).evaluate(kr,Dr)}}if(te){let Rt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Rt,interpolationFactor:ko.interpolationFactor.bind(void 0,Rt),zoomStops:R.stops.map((er=>er[0])),evaluate:({zoom:er})=>Re(R,A,er,Ke,ft)}}return{kind:"source",evaluate(Rt,er){let ur=er&&er.properties?er.properties[R.property]:void 0;return ur===void 0?lf(R.default,A.default):Re(R,A,ur,Ke,ft)}}}function lf(R,A,F){return R!==void 0?R:A!==void 0?A:F!==void 0?F:void 0}function Sh(R,A,F,W,te){return lf(typeof F===te?W[F]:void 0,R.default,A.default)}function Mu(R,A,F){if(gs(F)!=="number")return lf(R.default,A.default);let W=R.stops.length;if(W===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[W-1][0])return R.stops[W-1][1];let te=ki(R.stops.map((fe=>fe[0])),F);return R.stops[te][1]}function ih(R,A,F){let W=R.base!==void 0?R.base:1;if(gs(F)!=="number")return lf(R.default,A.default);let te=R.stops.length;if(te===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[te-1][0])return R.stops[te-1][1];let fe=ki(R.stops.map((Rt=>Rt[0])),F),pe=(function(Rt,er,ur,vr){let kr=vr-ur,Dr=Rt-ur;return kr===0?0:er===1?Dr/kr:(Math.pow(er,Dr)-1)/(Math.pow(er,kr)-1)})(F,W,R.stops[fe][0],R.stops[fe+1][0]),Re=R.stops[fe][1],Ke=R.stops[fe+1][1],ft=Lo[A.type]||Wh;return typeof Re.evaluate=="function"?{evaluate(...Rt){let er=Re.evaluate.apply(void 0,Rt),ur=Ke.evaluate.apply(void 0,Rt);if(er!==void 0&&ur!==void 0)return ft(er,ur,pe,R.colorSpace)}}:ft(Re,Ke,pe,R.colorSpace)}function js(R,A,F){switch(A.type){case"color":F=ir.parse(F);break;case"formatted":F=ti.fromString(F.toString());break;case"resolvedImage":F=en.fromString(F.toString());break;case"padding":F=$r.parse(F);break;default:gs(F)===A.type||A.type==="enum"&&A.values[F]||(F=void 0)}return lf(F,R.default,A.default)}Ol.register(yf,{error:[{kind:"error"},[Et],(R,[A])=>{throw new ma(A.evaluate(R))}],typeof:[Et,[mr],(R,[A])=>Je(Mn(A.evaluate(R)))],"to-rgba":[Ge(dt,4),[jt],(R,[A])=>{let[F,W,te,fe]=A.evaluate(R).rgb;return[255*F,255*W,255*te,fe]}],rgb:[jt,[dt,dt,dt],Ah],rgba:[jt,[dt,dt,dt,dt],Ah],has:{type:pt,overloads:[[[Et],(R,[A])=>Qf(A.evaluate(R),R.properties())],[[Et,or],(R,[A,F])=>Qf(A.evaluate(R),F.evaluate(R))]]},get:{type:mr,overloads:[[[Et],(R,[A])=>_f(A.evaluate(R),R.properties())],[[Et,or],(R,[A,F])=>_f(A.evaluate(R),F.evaluate(R))]]},"feature-state":[mr,[Et],(R,[A])=>_f(A.evaluate(R),R.featureState||{})],properties:[or,[],R=>R.properties()],"geometry-type":[Et,[],R=>R.geometryType()],id:[mr,[],R=>R.id()],zoom:[dt,[],R=>R.globals.zoom],"heatmap-density":[dt,[],R=>R.globals.heatmapDensity||0],"line-progress":[dt,[],R=>R.globals.lineProgress||0],accumulated:[mr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[dt,Yc(dt),(R,A)=>{let F=0;for(let W of A)F+=W.evaluate(R);return F}],"*":[dt,Yc(dt),(R,A)=>{let F=1;for(let W of A)F*=W.evaluate(R);return F}],"-":{type:dt,overloads:[[[dt,dt],(R,[A,F])=>A.evaluate(R)-F.evaluate(R)],[[dt],(R,[A])=>-A.evaluate(R)]]},"/":[dt,[dt,dt],(R,[A,F])=>A.evaluate(R)/F.evaluate(R)],"%":[dt,[dt,dt],(R,[A,F])=>A.evaluate(R)%F.evaluate(R)],ln2:[dt,[],()=>Math.LN2],pi:[dt,[],()=>Math.PI],e:[dt,[],()=>Math.E],"^":[dt,[dt,dt],(R,[A,F])=>Math.pow(A.evaluate(R),F.evaluate(R))],sqrt:[dt,[dt],(R,[A])=>Math.sqrt(A.evaluate(R))],log10:[dt,[dt],(R,[A])=>Math.log(A.evaluate(R))/Math.LN10],ln:[dt,[dt],(R,[A])=>Math.log(A.evaluate(R))],log2:[dt,[dt],(R,[A])=>Math.log(A.evaluate(R))/Math.LN2],sin:[dt,[dt],(R,[A])=>Math.sin(A.evaluate(R))],cos:[dt,[dt],(R,[A])=>Math.cos(A.evaluate(R))],tan:[dt,[dt],(R,[A])=>Math.tan(A.evaluate(R))],asin:[dt,[dt],(R,[A])=>Math.asin(A.evaluate(R))],acos:[dt,[dt],(R,[A])=>Math.acos(A.evaluate(R))],atan:[dt,[dt],(R,[A])=>Math.atan(A.evaluate(R))],min:[dt,Yc(dt),(R,A)=>Math.min(...A.map((F=>F.evaluate(R))))],max:[dt,Yc(dt),(R,A)=>Math.max(...A.map((F=>F.evaluate(R))))],abs:[dt,[dt],(R,[A])=>Math.abs(A.evaluate(R))],round:[dt,[dt],(R,[A])=>{let F=A.evaluate(R);return F<0?-Math.round(-F):Math.round(F)}],floor:[dt,[dt],(R,[A])=>Math.floor(A.evaluate(R))],ceil:[dt,[dt],(R,[A])=>Math.ceil(A.evaluate(R))],"filter-==":[pt,[Et,mr],(R,[A,F])=>R.properties()[A.value]===F.value],"filter-id-==":[pt,[mr],(R,[A])=>R.id()===A.value],"filter-type-==":[pt,[Et],(R,[A])=>R.geometryType()===A.value],"filter-<":[pt,[Et,mr],(R,[A,F])=>{let W=R.properties()[A.value],te=F.value;return typeof W==typeof te&&W{let F=R.id(),W=A.value;return typeof F==typeof W&&F":[pt,[Et,mr],(R,[A,F])=>{let W=R.properties()[A.value],te=F.value;return typeof W==typeof te&&W>te}],"filter-id->":[pt,[mr],(R,[A])=>{let F=R.id(),W=A.value;return typeof F==typeof W&&F>W}],"filter-<=":[pt,[Et,mr],(R,[A,F])=>{let W=R.properties()[A.value],te=F.value;return typeof W==typeof te&&W<=te}],"filter-id-<=":[pt,[mr],(R,[A])=>{let F=R.id(),W=A.value;return typeof F==typeof W&&F<=W}],"filter->=":[pt,[Et,mr],(R,[A,F])=>{let W=R.properties()[A.value],te=F.value;return typeof W==typeof te&&W>=te}],"filter-id->=":[pt,[mr],(R,[A])=>{let F=R.id(),W=A.value;return typeof F==typeof W&&F>=W}],"filter-has":[pt,[mr],(R,[A])=>A.value in R.properties()],"filter-has-id":[pt,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[pt,[Ge(Et)],(R,[A])=>A.value.indexOf(R.geometryType())>=0],"filter-id-in":[pt,[Ge(mr)],(R,[A])=>A.value.indexOf(R.id())>=0],"filter-in-small":[pt,[Et,Ge(mr)],(R,[A,F])=>F.value.indexOf(R.properties()[A.value])>=0],"filter-in-large":[pt,[Et,Ge(mr)],(R,[A,F])=>(function(W,te,fe,pe){for(;fe<=pe;){let Re=fe+pe>>1;if(te[Re]===W)return!0;te[Re]>W?pe=Re-1:fe=Re+1}return!1})(R.properties()[A.value],F.value,0,F.value.length-1)],all:{type:pt,overloads:[[[pt,pt],(R,[A,F])=>A.evaluate(R)&&F.evaluate(R)],[Yc(pt),(R,A)=>{for(let F of A)if(!F.evaluate(R))return!1;return!0}]]},any:{type:pt,overloads:[[[pt,pt],(R,[A,F])=>A.evaluate(R)||F.evaluate(R)],[Yc(pt),(R,A)=>{for(let F of A)if(F.evaluate(R))return!0;return!1}]]},"!":[pt,[pt],(R,[A])=>!A.evaluate(R)],"is-supported-script":[pt,[Et],(R,[A])=>{let F=R.globals&&R.globals.isSupportedScript;return!F||F(A.evaluate(R))}],upcase:[Et,[Et],(R,[A])=>A.evaluate(R).toUpperCase()],downcase:[Et,[Et],(R,[A])=>A.evaluate(R).toLowerCase()],concat:[Et,Yc(mr),(R,A)=>A.map((F=>Ba(F.evaluate(R)))).join("")],"resolved-locale":[Et,[Ar],(R,[A])=>A.evaluate(R).resolvedLocale()]});class Eu{constructor(A,F){var W;this.expression=A,this._warningHistory={},this._evaluator=new Ha,this._defaultValue=F?(W=F).type==="color"&&Wf(W.default)?new ir(0,0,0,0):W.type==="color"?ir.parse(W.default)||null:W.type==="padding"?$r.parse(W.default)||null:W.type==="variableAnchorOffsetCollection"?Hi.parse(W.default)||null:W.default===void 0?null:W.default:null,this._enumValues=F&&F.type==="enum"?F.values:null}evaluateWithoutErrorHandling(A,F,W,te,fe,pe){return this._evaluator.globals=A,this._evaluator.feature=F,this._evaluator.featureState=W,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe,this.expression.evaluate(this._evaluator)}evaluate(A,F,W,te,fe,pe){this._evaluator.globals=A,this._evaluator.feature=F||null,this._evaluator.featureState=W||null,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe||null;try{let Re=this.expression.evaluate(this._evaluator);if(Re==null||typeof Re=="number"&&Re!=Re)return this._defaultValue;if(this._enumValues&&!(Re in this._enumValues))throw new ma(`Expected value to be one of ${Object.keys(this._enumValues).map((Ke=>JSON.stringify(Ke))).join(", ")}, but found ${JSON.stringify(Re)} instead.`);return Re}catch(Re){return this._warningHistory[Re.message]||(this._warningHistory[Re.message]=!0,typeof console!="undefined"&&console.warn(Re.message)),this._defaultValue}}}function Dc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in yf}function ks(R,A){let F=new vo(yf,eh,[],A?(function(te){let fe={color:jt,string:Et,number:dt,enum:Et,boolean:pt,formatted:ei,padding:qr,resolvedImage:jr,variableAnchorOffsetCollection:gt};return te.type==="array"?Ge(fe[te.value]||mr,te.length):fe[te.type]})(A):void 0),W=F.parse(R,void 0,void 0,void 0,A&&A.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?cc(new Eu(W,A)):sf(F.errors)}class bc{constructor(A,F){this.kind=A,this._styleExpression=F,this.isStateDependent=A!=="constant"&&!ju(F.expression)}evaluateWithoutErrorHandling(A,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(A,F,W,te,fe,pe)}evaluate(A,F,W,te,fe,pe){return this._styleExpression.evaluate(A,F,W,te,fe,pe)}}class hu{constructor(A,F,W,te){this.kind=A,this.zoomStops=W,this._styleExpression=F,this.isStateDependent=A!=="camera"&&!ju(F.expression),this.interpolationType=te}evaluateWithoutErrorHandling(A,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(A,F,W,te,fe,pe)}evaluate(A,F,W,te,fe,pe){return this._styleExpression.evaluate(A,F,W,te,fe,pe)}interpolationFactor(A,F,W){return this.interpolationType?ko.interpolationFactor(this.interpolationType,A,F,W):0}}function _u(R,A){let F=ks(R,A);if(F.result==="error")return F;let W=F.value.expression,te=th(W);if(!te&&!Bl(A))return sf([new rt("","data expressions not supported")]);let fe=jf(W,["zoom"]);if(!fe&&!Kc(A))return sf([new rt("","zoom expressions not supported")]);let pe=nh(W);return pe||fe?pe instanceof rt?sf([pe]):pe instanceof ko&&!Rc(A)?sf([new rt("",'"interpolate" expressions cannot be used with this property')]):cc(pe?new hu(te?"camera":"composite",F.value,pe.labels,pe instanceof ko?pe.interpolation:void 0):new bc(te?"constant":"source",F.value)):sf([new rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class il{constructor(A,F){this._parameters=A,this._specification=F,Ae(this,rh(this._parameters,this._specification))}static deserialize(A){return new il(A._parameters,A._specification)}static serialize(A){return{_parameters:A._parameters,_specification:A._specification}}}function nh(R){let A=null;if(R instanceof Gn)A=nh(R.result);else if(R instanceof Fs){for(let F of R.args)if(A=nh(F),A)break}else(R instanceof _n||R instanceof ko)&&R.input instanceof Ol&&R.input.name==="zoom"&&(A=R);return A instanceof rt||R.eachChild((F=>{let W=nh(F);W instanceof rt?A=W:!A&&W?A=new rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):A&&W&&A!==W&&(A=new rt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),A}function Mh(R){if(R===!0||R===!1)return!0;if(!Array.isArray(R)||R.length===0)return!1;switch(R[0]){case"has":return R.length>=2&&R[1]!=="$id"&&R[1]!=="$type";case"in":return R.length>=3&&(typeof R[1]!="string"||Array.isArray(R[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return R.length!==3||Array.isArray(R[1])||Array.isArray(R[2]);case"any":case"all":for(let A of R.slice(1))if(!Mh(A)&&typeof A!="boolean")return!1;return!0;default:return!0}}let zu={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Fc(R){if(R==null)return{filter:()=>!0,needGeometry:!1};Mh(R)||(R=xf(R));let A=ks(R,zu);if(A.result==="error")throw new Error(A.value.map((F=>`${F.key}: ${F.message}`)).join(", "));return{filter:(F,W,te)=>A.value.evaluate(F,W,{},te),needGeometry:bd(R)}}function wc(R,A){return RA?1:0}function bd(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let A=1;A"||A==="<="||A===">="?Pf(R[1],R[2],A):A==="any"?(F=R.slice(1),["any"].concat(F.map(xf))):A==="all"?["all"].concat(R.slice(1).map(xf)):A==="none"?["all"].concat(R.slice(1).map(xf).map(jl)):A==="in"?qu(R[1],R.slice(2)):A==="!in"?jl(qu(R[1],R.slice(2))):A==="has"?bf(R[1]):A!=="!has"||jl(bf(R[1]));var F}function Pf(R,A,F){switch(R){case"$type":return[`filter-type-${F}`,A];case"$id":return[`filter-id-${F}`,A];default:return[`filter-${F}`,R,A]}}function qu(R,A){if(A.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",A]];case"$id":return["filter-id-in",["literal",A]];default:return A.length>200&&!A.some((F=>typeof F!=typeof A[0]))?["filter-in-large",R,["literal",A.sort(wc)]]:["filter-in-small",R,["literal",A]]}}function bf(R){switch(R){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",R]}}function jl(R){return["!",R]}function uf(R){let A=typeof R;if(A==="number"||A==="boolean"||A==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let te="[";for(let fe of R)te+=`${uf(fe)},`;return`${te}]`}let F=Object.keys(R).sort(),W="{";for(let te=0;teW.maximum?[new Ue(A,F,`${F} is greater than the maximum value ${W.maximum}`)]:[]}function wf(R){let A=R.valueSpec,F=Cs(R.value.type),W,te,fe,pe={},Re=F!=="categorical"&&R.value.property===void 0,Ke=!Re,ft=gs(R.value.stops)==="array"&&gs(R.value.stops[0])==="array"&&gs(R.value.stops[0][0])==="object",Rt=ku({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(vr){if(F==="identity")return[new Ue(vr.key,vr.value,'identity function may not have a "stops" property')];let kr=[],Dr=vr.value;return kr=kr.concat(Xf({key:vr.key,value:Dr,valueSpec:vr.valueSpec,validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec,arrayElementValidator:er})),gs(Dr)==="array"&&Dr.length===0&&kr.push(new Ue(vr.key,Dr,"array must have at least one stop")),kr},default:function(vr){return vr.validateSpec({key:vr.key,value:vr.value,valueSpec:A,validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec})}}});return F==="identity"&&Re&&Rt.push(new Ue(R.key,R.value,'missing required property "property"')),F==="identity"||R.value.stops||Rt.push(new Ue(R.key,R.value,'missing required property "stops"')),F==="exponential"&&R.valueSpec.expression&&!Rc(R.valueSpec)&&Rt.push(new Ue(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(Ke&&!Bl(R.valueSpec)?Rt.push(new Ue(R.key,R.value,"property functions not supported")):Re&&!Kc(R.valueSpec)&&Rt.push(new Ue(R.key,R.value,"zoom functions not supported"))),F!=="categorical"&&!ft||R.value.property!==void 0||Rt.push(new Ue(R.key,R.value,'"property" property is required')),Rt;function er(vr){let kr=[],Dr=vr.value,li=vr.key;if(gs(Dr)!=="array")return[new Ue(li,Dr,`array expected, ${gs(Dr)} found`)];if(Dr.length!==2)return[new Ue(li,Dr,`array length 2 expected, length ${Dr.length} found`)];if(ft){if(gs(Dr[0])!=="object")return[new Ue(li,Dr,`object expected, ${gs(Dr[0])} found`)];if(Dr[0].zoom===void 0)return[new Ue(li,Dr,"object stop key must have zoom")];if(Dr[0].value===void 0)return[new Ue(li,Dr,"object stop key must have value")];if(fe&&fe>Cs(Dr[0].zoom))return[new Ue(li,Dr[0].zoom,"stop zoom values must appear in ascending order")];Cs(Dr[0].zoom)!==fe&&(fe=Cs(Dr[0].zoom),te=void 0,pe={}),kr=kr.concat(ku({key:`${li}[0]`,value:Dr[0],valueSpec:{zoom:{}},validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec,objectElementValidators:{zoom:Us,value:ur}}))}else kr=kr.concat(ur({key:`${li}[0]`,value:Dr[0],valueSpec:{},validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec},Dr));return Dc(du(Dr[1]))?kr.concat([new Ue(`${li}[1]`,Dr[1],"expressions are not allowed in function stops.")]):kr.concat(vr.validateSpec({key:`${li}[1]`,value:Dr[1],valueSpec:A,validateSpec:vr.validateSpec,style:vr.style,styleSpec:vr.styleSpec}))}function ur(vr,kr){let Dr=gs(vr.value),li=Cs(vr.value),pi=vr.value!==null?vr.value:kr;if(W){if(Dr!==W)return[new Ue(vr.key,pi,`${Dr} stop domain type must match previous stop domain type ${W}`)]}else W=Dr;if(Dr!=="number"&&Dr!=="string"&&Dr!=="boolean")return[new Ue(vr.key,pi,"stop domain value must be a number, string, or boolean")];if(Dr!=="number"&&F!=="categorical"){let vn=`number expected, ${Dr} found`;return Bl(A)&&F===void 0&&(vn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ue(vr.key,pi,vn)]}return F!=="categorical"||Dr!=="number"||isFinite(li)&&Math.floor(li)===li?F!=="categorical"&&Dr==="number"&&te!==void 0&&linew Ue(`${R.key}${W.key}`,R.value,W.message)));let F=A.value.expression||A.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!F.outputDefined())return[new Ue(R.key,R.value,`Invalid data expression for "${R.propertyKey}". Output values must be contained as literals within the expression.`)];if(R.expressionContext==="property"&&R.propertyType==="layout"&&!ju(F))return[new Ue(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!ju(F))return[new Ue(R.key,R.value,'"feature-state" data expressions are not supported with filters.')];if(R.expressionContext&&R.expressionContext.indexOf("cluster")===0){if(!jf(F,["zoom","feature-state"]))return[new Ue(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!th(F))return[new Ue(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wu(R){let A=R.key,F=R.value,W=R.valueSpec,te=[];return Array.isArray(W.values)?W.values.indexOf(Cs(F))===-1&&te.push(new Ue(A,F,`expected one of [${W.values.join(", ")}], ${JSON.stringify(F)} found`)):Object.keys(W.values).indexOf(Cs(F))===-1&&te.push(new Ue(A,F,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(F)} found`)),te}function Rf(R){return Mh(du(R.value))?zc(Ae({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xu(R)}function Xu(R){let A=R.value,F=R.key;if(gs(A)!=="array")return[new Ue(F,A,`array expected, ${gs(A)} found`)];let W=R.styleSpec,te,fe=[];if(A.length<1)return[new Ue(F,A,"filter array must have at least 1 element")];switch(fe=fe.concat(Wu({key:`${F}[0]`,value:A[0],valueSpec:W.filter_operator,style:R.style,styleSpec:R.styleSpec})),Cs(A[0])){case"<":case"<=":case">":case">=":A.length>=2&&Cs(A[1])==="$type"&&fe.push(new Ue(F,A,`"$type" cannot be use with operator "${A[0]}"`));case"==":case"!=":A.length!==3&&fe.push(new Ue(F,A,`filter array for operator "${A[0]}" must have 3 elements`));case"in":case"!in":A.length>=2&&(te=gs(A[1]),te!=="string"&&fe.push(new Ue(`${F}[1]`,A[1],`string expected, ${te} found`)));for(let pe=2;pe{ft in F&&A.push(new Ue(W,F[ft],`"${ft}" is prohibited for ref layers`))})),te.layers.forEach((ft=>{Cs(ft.id)===Re&&(Ke=ft)})),Ke?Ke.ref?A.push(new Ue(W,F.ref,"ref cannot reference another ref layer")):pe=Cs(Ke.type):A.push(new Ue(W,F.ref,`ref layer "${Re}" not found`))}else if(pe!=="background")if(F.source){let Ke=te.sources&&te.sources[F.source],ft=Ke&&Cs(Ke.type);Ke?ft==="vector"&&pe==="raster"?A.push(new Ue(W,F.source,`layer "${F.id}" requires a raster source`)):ft!=="raster-dem"&&pe==="hillshade"?A.push(new Ue(W,F.source,`layer "${F.id}" requires a raster-dem source`)):ft==="raster"&&pe!=="raster"?A.push(new Ue(W,F.source,`layer "${F.id}" requires a vector source`)):ft!=="vector"||F["source-layer"]?ft==="raster-dem"&&pe!=="hillshade"?A.push(new Ue(W,F.source,"raster-dem source can only be used with layer type 'hillshade'.")):pe!=="line"||!F.paint||!F.paint["line-gradient"]||ft==="geojson"&&Ke.lineMetrics||A.push(new Ue(W,F,`layer "${F.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new Ue(W,F,`layer "${F.id}" must specify a "source-layer"`)):A.push(new Ue(W,F.source,`source "${F.source}" not found`))}else A.push(new Ue(W,F,'missing required property "source"'));return A=A.concat(ku({key:W,value:F,valueSpec:fe.layer,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,objectElementValidators:{"*":()=>[],type:()=>R.validateSpec({key:`${W}.type`,value:F.type,valueSpec:fe.layer.type,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,object:F,objectKey:"type"}),filter:Rf,layout:Ke=>ku({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ft=>Wl(Ae({layerType:pe},ft))}}),paint:Ke=>ku({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ft=>Zf(Ae({layerType:pe},ft))}})}})),A}function Zu(R){let A=R.value,F=R.key,W=gs(A);return W!=="string"?[new Ue(F,A,`string expected, ${W} found`)]:[]}let qc={promoteId:function({key:R,value:A}){if(gs(A)==="string")return Zu({key:R,value:A});{let F=[];for(let W in A)F.push(...Zu({key:`${R}.${W}`,value:A[W]}));return F}}};function Tc(R){let A=R.value,F=R.key,W=R.styleSpec,te=R.style,fe=R.validateSpec;if(!A.type)return[new Ue(F,A,'"type" is required')];let pe=Cs(A.type),Re;switch(pe){case"vector":case"raster":return Re=ku({key:F,value:A,valueSpec:W[`source_${pe.replace("-","_")}`],style:R.style,styleSpec:W,objectElementValidators:qc,validateSpec:fe}),Re;case"raster-dem":return Re=(function(Ke){var ft;let Rt=(ft=Ke.sourceName)!==null&&ft!==void 0?ft:"",er=Ke.value,ur=Ke.styleSpec,vr=ur.source_raster_dem,kr=Ke.style,Dr=[],li=gs(er);if(er===void 0)return Dr;if(li!=="object")return Dr.push(new Ue("source_raster_dem",er,`object expected, ${li} found`)),Dr;let pi=Cs(er.encoding)==="custom",vn=["redFactor","greenFactor","blueFactor","baseShift"],zi=Ke.value.encoding?`"${Ke.value.encoding}"`:"Default";for(let ln in er)!pi&&vn.includes(ln)?Dr.push(new Ue(ln,er[ln],`In "${Rt}": "${ln}" is only valid when "encoding" is set to "custom". ${zi} encoding found`)):vr[ln]?Dr=Dr.concat(Ke.validateSpec({key:ln,value:er[ln],valueSpec:vr[ln],validateSpec:Ke.validateSpec,style:kr,styleSpec:ur})):Dr.push(new Ue(ln,er[ln],`unknown property "${ln}"`));return Dr})({sourceName:F,value:A,style:R.style,styleSpec:W,validateSpec:fe}),Re;case"geojson":if(Re=ku({key:F,value:A,valueSpec:W.source_geojson,style:te,styleSpec:W,validateSpec:fe,objectElementValidators:qc}),A.cluster)for(let Ke in A.clusterProperties){let[ft,Rt]=A.clusterProperties[Ke],er=typeof ft=="string"?[ft,["accumulated"],["get",Ke]]:ft;Re.push(...zc({key:`${F}.${Ke}.map`,value:Rt,validateSpec:fe,expressionContext:"cluster-map"})),Re.push(...zc({key:`${F}.${Ke}.reduce`,value:er,validateSpec:fe,expressionContext:"cluster-reduce"}))}return Re;case"video":return ku({key:F,value:A,valueSpec:W.source_video,style:te,validateSpec:fe,styleSpec:W});case"image":return ku({key:F,value:A,valueSpec:W.source_image,style:te,validateSpec:fe,styleSpec:W});case"canvas":return[new Ue(F,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Wu({key:`${F}.type`,value:A.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:te,validateSpec:fe,styleSpec:W})}}function Tl(R){let A=R.value,F=R.styleSpec,W=F.light,te=R.style,fe=[],pe=gs(A);if(A===void 0)return fe;if(pe!=="object")return fe=fe.concat([new Ue("light",A,`object expected, ${pe} found`)]),fe;for(let Re in A){let Ke=Re.match(/^(.*)-transition$/);fe=fe.concat(Ke&&W[Ke[1]]&&W[Ke[1]].transition?R.validateSpec({key:Re,value:A[Re],valueSpec:F.transition,validateSpec:R.validateSpec,style:te,styleSpec:F}):W[Re]?R.validateSpec({key:Re,value:A[Re],valueSpec:W[Re],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new Ue(Re,A[Re],`unknown property "${Re}"`)])}return fe}function vu(R){let A=R.value,F=R.styleSpec,W=F.sky,te=R.style,fe=gs(A);if(A===void 0)return[];if(fe!=="object")return[new Ue("sky",A,`object expected, ${fe} found`)];let pe=[];for(let Re in A)pe=pe.concat(W[Re]?R.validateSpec({key:Re,value:A[Re],valueSpec:W[Re],style:te,styleSpec:F}):[new Ue(Re,A[Re],`unknown property "${Re}"`)]);return pe}function Oc(R){let A=R.value,F=R.styleSpec,W=F.terrain,te=R.style,fe=[],pe=gs(A);if(A===void 0)return fe;if(pe!=="object")return fe=fe.concat([new Ue("terrain",A,`object expected, ${pe} found`)]),fe;for(let Re in A)fe=fe.concat(W[Re]?R.validateSpec({key:Re,value:A[Re],valueSpec:W[Re],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new Ue(Re,A[Re],`unknown property "${Re}"`)]);return fe}function ff(R){let A=[],F=R.value,W=R.key;if(Array.isArray(F)){let te=[],fe=[];for(let pe in F)F[pe].id&&te.includes(F[pe].id)&&A.push(new Ue(W,F,`all the sprites' ids must be unique, but ${F[pe].id} is duplicated`)),te.push(F[pe].id),F[pe].url&&fe.includes(F[pe].url)&&A.push(new Ue(W,F,`all the sprites' URLs must be unique, but ${F[pe].url} is duplicated`)),fe.push(F[pe].url),A=A.concat(ku({key:`${W}[${pe}]`,value:F[pe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return A}return Zu({key:W,value:F})}let fc={"*":()=>[],array:Xf,boolean:function(R){let A=R.value,F=R.key,W=gs(A);return W!=="boolean"?[new Ue(F,A,`boolean expected, ${W} found`)]:[]},number:Us,color:function(R){let A=R.key,F=R.value,W=gs(F);return W!=="string"?[new Ue(A,F,`color expected, ${W} found`)]:ir.parse(String(F))?[]:[new Ue(A,F,`color expected, "${F}" found`)]},constants:If,enum:Wu,filter:Rf,function:wf,layer:ah,object:ku,source:Tc,light:Tl,sky:vu,terrain:Oc,projection:function(R){let A=R.value,F=R.styleSpec,W=F.projection,te=R.style,fe=gs(A);if(A===void 0)return[];if(fe!=="object")return[new Ue("projection",A,`object expected, ${fe} found`)];let pe=[];for(let Re in A)pe=pe.concat(W[Re]?R.validateSpec({key:Re,value:A[Re],valueSpec:W[Re],style:te,styleSpec:F}):[new Ue(Re,A[Re],`unknown property "${Re}"`)]);return pe},string:Zu,formatted:function(R){return Zu(R).length===0?[]:zc(R)},resolvedImage:function(R){return Zu(R).length===0?[]:zc(R)},padding:function(R){let A=R.key,F=R.value;if(gs(F)==="array"){if(F.length<1||F.length>4)return[new Ue(A,F,`padding requires 1 to 4 values; ${F.length} values found`)];let W={type:"number"},te=[];for(let fe=0;fe[]}})),R.constants&&(F=F.concat(If({key:"constants",value:R.constants,style:R,styleSpec:A,validateSpec:Bc}))),xr(F)}function Er(R){return function(A){return R(W1(_g({},A),{validateSpec:Bc}))}}function xr(R){return[].concat(R).sort(((A,F)=>A.line-F.line))}function Kr(R){return function(...A){return xr(R.apply(this,A))}}Zt.source=Kr(Er(Tc)),Zt.sprite=Kr(Er(ff)),Zt.glyphs=Kr(Er(kt)),Zt.light=Kr(Er(Tl)),Zt.sky=Kr(Er(vu)),Zt.terrain=Kr(Er(Oc)),Zt.layer=Kr(Er(ah)),Zt.filter=Kr(Er(Rf)),Zt.paintProperty=Kr(Er(Zf)),Zt.layoutProperty=Kr(Er(Wl));let Mi=Zt,Xi=Mi.light,dn=Mi.sky,wn=Mi.paintProperty,On=Mi.layoutProperty;function Yi(R,A){let F=!1;if(A&&A.length)for(let W of A)R.fire(new me(new Error(W.message))),F=!0;return F}class $i{constructor(A,F,W){let te=this.cells=[];if(A instanceof ArrayBuffer){this.arrayBuffer=A;let pe=new Int32Array(this.arrayBuffer);A=pe[0],this.d=(F=pe[1])+2*(W=pe[2]);for(let Ke=0;Ke=er[kr+0]&&te>=er[kr+1])?(Re[vr]=!0,pe.push(Rt[vr])):Re[vr]=!1}}}}_forEachCell(A,F,W,te,fe,pe,Re,Ke){let ft=this._convertToCellCoord(A),Rt=this._convertToCellCoord(F),er=this._convertToCellCoord(W),ur=this._convertToCellCoord(te);for(let vr=ft;vr<=er;vr++)for(let kr=Rt;kr<=ur;kr++){let Dr=this.d*kr+vr;if((!Ke||Ke(this._convertFromCellCoord(vr),this._convertFromCellCoord(kr),this._convertFromCellCoord(vr+1),this._convertFromCellCoord(kr+1)))&&fe.call(this,A,F,W,te,Dr,pe,Re,Ke))return}}_convertFromCellCoord(A){return(A-this.padding)/this.scale}_convertToCellCoord(A){return Math.max(0,Math.min(this.d-1,Math.floor(A*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let A=this.cells,F=3+this.cells.length+1+1,W=0;for(let pe=0;pe=0)continue;let pe=R[fe];te[fe]=an[F].shallow.indexOf(fe)>=0?pe:La(pe,A)}R instanceof Error&&(te.message=R.message)}if(te.$name)throw new Error("$name property is reserved for worker serialization logic.");return F!=="Object"&&(te.$name=F),te}function Ua(R){if(Ra(R))return R;if(Array.isArray(R))return R.map(Ua);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let A=Ca(R)||"Object";if(!an[A])throw new Error(`can't deserialize unregistered class ${A}`);let{klass:F}=an[A];if(!F)throw new Error(`can't deserialize unregistered class ${A}`);if(F.deserialize)return F.deserialize(R);let W=Object.create(F.prototype);for(let te of Object.keys(R)){if(te==="$name")continue;let fe=R[te];W[te]=an[A].shallow.indexOf(te)>=0?fe:Ua(fe)}return W}class Zn{constructor(){this.first=!0}update(A,F){let W=Math.floor(A);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=A,this.lastFloorZoom=W,!0):(this.lastFloorZoom>W?(this.lastIntegerZoom=W+1,this.lastIntegerZoomTime=F):this.lastFloorZoomR>=128&&R<=255,"Hangul Jamo":R=>R>=4352&&R<=4607,Khmer:R=>R>=6016&&R<=6143,"General Punctuation":R=>R>=8192&&R<=8303,"Letterlike Symbols":R=>R>=8448&&R<=8527,"Number Forms":R=>R>=8528&&R<=8591,"Miscellaneous Technical":R=>R>=8960&&R<=9215,"Control Pictures":R=>R>=9216&&R<=9279,"Optical Character Recognition":R=>R>=9280&&R<=9311,"Enclosed Alphanumerics":R=>R>=9312&&R<=9471,"Geometric Shapes":R=>R>=9632&&R<=9727,"Miscellaneous Symbols":R=>R>=9728&&R<=9983,"Miscellaneous Symbols and Arrows":R=>R>=11008&&R<=11263,"Ideographic Description Characters":R=>R>=12272&&R<=12287,"CJK Symbols and Punctuation":R=>R>=12288&&R<=12351,Katakana:R=>R>=12448&&R<=12543,Kanbun:R=>R>=12688&&R<=12703,"CJK Strokes":R=>R>=12736&&R<=12783,"Enclosed CJK Letters and Months":R=>R>=12800&&R<=13055,"CJK Compatibility":R=>R>=13056&&R<=13311,"Yijing Hexagram Symbols":R=>R>=19904&&R<=19967,"Private Use Area":R=>R>=57344&&R<=63743,"Vertical Forms":R=>R>=65040&&R<=65055,"CJK Compatibility Forms":R=>R>=65072&&R<=65103,"Small Form Variants":R=>R>=65104&&R<=65135,"Halfwidth and Fullwidth Forms":R=>R>=65280&&R<=65519};function Ka(R){for(let A of R)if(Ho(A.charCodeAt(0)))return!0;return!1}function bo(R){for(let A of R)if(!as(A.charCodeAt(0)))return!1;return!0}function Zo(R){let A=R.map((F=>{try{return new RegExp(`\\p{sc=${F}}`,"u").source}catch(W){return null}})).filter((F=>F));return new RegExp(A.join("|"),"u")}let Ss=Zo(["Arab","Dupl","Mong","Ougr","Syrc"]);function as(R){return!Ss.test(String.fromCodePoint(R))}let ws=Zo(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Ho(R){return!(R!==746&&R!==747&&(R<4352||!(Dn["CJK Compatibility Forms"](R)&&!(R>=65097&&R<=65103)||Dn["CJK Compatibility"](R)||Dn["CJK Strokes"](R)||!(!Dn["CJK Symbols and Punctuation"](R)||R>=12296&&R<=12305||R>=12308&&R<=12319||R===12336)||Dn["Enclosed CJK Letters and Months"](R)||Dn["Ideographic Description Characters"](R)||Dn.Kanbun(R)||Dn.Katakana(R)&&R!==12540||!(!Dn["Halfwidth and Fullwidth Forms"](R)||R===65288||R===65289||R===65293||R>=65306&&R<=65310||R===65339||R===65341||R===65343||R>=65371&&R<=65503||R===65507||R>=65512&&R<=65519)||!(!Dn["Small Form Variants"](R)||R>=65112&&R<=65118||R>=65123&&R<=65126)||Dn["Vertical Forms"](R)||Dn["Yijing Hexagram Symbols"](R)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(R))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(R))||ws.test(String.fromCodePoint(R)))))}function ml(R){return!(Ho(R)||(function(A){return!!(Dn["Latin-1 Supplement"](A)&&(A===167||A===169||A===174||A===177||A===188||A===189||A===190||A===215||A===247)||Dn["General Punctuation"](A)&&(A===8214||A===8224||A===8225||A===8240||A===8241||A===8251||A===8252||A===8258||A===8263||A===8264||A===8265||A===8273)||Dn["Letterlike Symbols"](A)||Dn["Number Forms"](A)||Dn["Miscellaneous Technical"](A)&&(A>=8960&&A<=8967||A>=8972&&A<=8991||A>=8996&&A<=9e3||A===9003||A>=9085&&A<=9114||A>=9150&&A<=9165||A===9167||A>=9169&&A<=9179||A>=9186&&A<=9215)||Dn["Control Pictures"](A)&&A!==9251||Dn["Optical Character Recognition"](A)||Dn["Enclosed Alphanumerics"](A)||Dn["Geometric Shapes"](A)||Dn["Miscellaneous Symbols"](A)&&!(A>=9754&&A<=9759)||Dn["Miscellaneous Symbols and Arrows"](A)&&(A>=11026&&A<=11055||A>=11088&&A<=11097||A>=11192&&A<=11243)||Dn["CJK Symbols and Punctuation"](A)||Dn.Katakana(A)||Dn["Private Use Area"](A)||Dn["CJK Compatibility Forms"](A)||Dn["Small Form Variants"](A)||Dn["Halfwidth and Fullwidth Forms"](A)||A===8734||A===8756||A===8757||A>=9984&&A<=10087||A>=10102&&A<=10131||A===65532||A===65533)})(R))}let Ws=Zo(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ls(R){return Ws.test(String.fromCodePoint(R))}function va(R,A){return!(!A&&Ls(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||Dn.Khmer(R))}function no(R){for(let A of R)if(Ls(A.charCodeAt(0)))return!0;return!1}let ys=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(R){this.pluginStatus=R.pluginStatus,this.pluginURL=R.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(R){this.applyArabicShaping=R.applyArabicShaping,this.processBidirectionalText=R.processBidirectionalText,this.processStyledBidirectionalText=R.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class rs{constructor(A,F){this.zoom=A,F?(this.now=F.now,this.fadeDuration=F.fadeDuration,this.zoomHistory=F.zoomHistory,this.transition=F.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Zn,this.transition={})}isSupportedScript(A){return(function(F,W){for(let te of F)if(!va(te.charCodeAt(0),W))return!1;return!0})(A,ys.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let A=this.zoom,F=A-Math.floor(A),W=this.crossFadingFactor();return A>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:F+(1-F)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*F}}}class Ql{constructor(A,F){this.property=A,this.value=F,this.expression=(function(W,te){if(Wf(W))return new il(W,te);if(Dc(W)){let fe=_u(W,te);if(fe.result==="error")throw new Error(fe.value.map((pe=>`${pe.key}: ${pe.message}`)).join(", "));return fe.value}{let fe=W;return te.type==="color"&&typeof W=="string"?fe=ir.parse(W):te.type!=="padding"||typeof W!="number"&&!Array.isArray(W)?te.type==="variableAnchorOffsetCollection"&&Array.isArray(W)&&(fe=Hi.parse(W)):fe=$r.parse(W),{kind:"constant",evaluate:()=>fe}}})(F===void 0?A.specification.default:F,A.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(A,F,W){return this.property.possiblyEvaluate(this,A,F,W)}}class Cu{constructor(A){this.property=A,this.value=new Ql(A,void 0)}transitioned(A,F){return new Nc(this.property,this.value,F,L({},A.transition,this.transition),A.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Yu{constructor(A){this._properties=A,this._values=Object.create(A.defaultTransitionablePropertyValues)}getValue(A){return g(this._values[A].value.value)}setValue(A,F){Object.prototype.hasOwnProperty.call(this._values,A)||(this._values[A]=new Cu(this._values[A].property)),this._values[A].value=new Ql(this._values[A].property,F===null?void 0:g(F))}getTransition(A){return g(this._values[A].transition)}setTransition(A,F){Object.prototype.hasOwnProperty.call(this._values,A)||(this._values[A]=new Cu(this._values[A].property)),this._values[A].transition=g(F)||void 0}serialize(){let A={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(A[F]=W);let te=this.getTransition(F);te!==void 0&&(A[`${F}-transition`]=te)}return A}transitioned(A,F){let W=new pu(this._properties);for(let te of Object.keys(this._values))W._values[te]=this._values[te].transitioned(A,F._values[te]);return W}untransitioned(){let A=new pu(this._properties);for(let F of Object.keys(this._values))A._values[F]=this._values[F].untransitioned();return A}}class Nc{constructor(A,F,W,te,fe){this.property=A,this.value=F,this.begin=fe+te.delay||0,this.end=this.begin+te.duration||0,A.specification.transition&&(te.delay||te.duration)&&(this.prior=W)}possiblyEvaluate(A,F,W){let te=A.now||0,fe=this.value.possiblyEvaluate(A,F,W),pe=this.prior;if(pe){if(te>this.end)return this.prior=null,fe;if(this.value.isDataDriven())return this.prior=null,fe;if(te=1)return 1;let ft=Ke*Ke,Rt=ft*Ke;return 4*(Ke<.5?Rt:3*(Ke-ft)+Rt-.75)})(Re))}}return fe}}class pu{constructor(A){this._properties=A,this._values=Object.create(A.defaultTransitioningPropertyValues)}possiblyEvaluate(A,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(A,F,W);return te}hasTransition(){for(let A of Object.keys(this._values))if(this._values[A].prior)return!0;return!1}}class Uc{constructor(A){this._properties=A,this._values=Object.create(A.defaultPropertyValues)}hasValue(A){return this._values[A].value!==void 0}getValue(A){return g(this._values[A].value)}setValue(A,F){this._values[A]=new Ql(this._values[A].property,F===null?void 0:g(F))}serialize(){let A={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(A[F]=W)}return A}possiblyEvaluate(A,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(A,F,W);return te}}class xu{constructor(A,F,W){this.property=A,this.value=F,this.parameters=W}isConstant(){return this.value.kind==="constant"}constantOr(A){return this.value.kind==="constant"?this.value.value:A}evaluate(A,F,W,te){return this.property.evaluate(this.value,this.parameters,A,F,W,te)}}class Ac{constructor(A){this._properties=A,this._values=Object.create(A.defaultPossiblyEvaluatedValues)}get(A){return this._values[A]}}class Va{constructor(A){this.specification=A}possiblyEvaluate(A,F){if(A.isDataDriven())throw new Error("Value should not be data driven");return A.expression.evaluate(F)}interpolate(A,F,W){let te=Lo[this.specification.type];return te?te(A,F,W):A}}class oo{constructor(A,F){this.specification=A,this.overrides=F}possiblyEvaluate(A,F,W,te){return new xu(this,A.expression.kind==="constant"||A.expression.kind==="camera"?{kind:"constant",value:A.expression.evaluate(F,null,{},W,te)}:A.expression,F)}interpolate(A,F,W){if(A.value.kind!=="constant"||F.value.kind!=="constant")return A;if(A.value.value===void 0||F.value.value===void 0)return new xu(this,{kind:"constant",value:void 0},A.parameters);let te=Lo[this.specification.type];if(te){let fe=te(A.value.value,F.value.value,W);return new xu(this,{kind:"constant",value:fe},A.parameters)}return A}evaluate(A,F,W,te,fe,pe){return A.kind==="constant"?A.value:A.evaluate(F,W,te,fe,pe)}}class Vc extends oo{possiblyEvaluate(A,F,W,te){if(A.value===void 0)return new xu(this,{kind:"constant",value:void 0},F);if(A.expression.kind==="constant"){let fe=A.expression.evaluate(F,null,{},W,te),pe=A.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,Re=this._calculate(pe,pe,pe,F);return new xu(this,{kind:"constant",value:Re},F)}if(A.expression.kind==="camera"){let fe=this._calculate(A.expression.evaluate({zoom:F.zoom-1}),A.expression.evaluate({zoom:F.zoom}),A.expression.evaluate({zoom:F.zoom+1}),F);return new xu(this,{kind:"constant",value:fe},F)}return new xu(this,A.expression,F)}evaluate(A,F,W,te,fe,pe){if(A.kind==="source"){let Re=A.evaluate(F,W,te,fe,pe);return this._calculate(Re,Re,Re,F)}return A.kind==="composite"?this._calculate(A.evaluate({zoom:Math.floor(F.zoom)-1},W,te),A.evaluate({zoom:Math.floor(F.zoom)},W,te),A.evaluate({zoom:Math.floor(F.zoom)+1},W,te),F):A.value}_calculate(A,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:A,to:F}:{from:W,to:F}}interpolate(A){return A}}class hc{constructor(A){this.specification=A}possiblyEvaluate(A,F,W,te){if(A.value!==void 0){if(A.expression.kind==="constant"){let fe=A.expression.evaluate(F,null,{},W,te);return this._calculate(fe,fe,fe,F)}return this._calculate(A.expression.evaluate(new rs(Math.floor(F.zoom-1),F)),A.expression.evaluate(new rs(Math.floor(F.zoom),F)),A.expression.evaluate(new rs(Math.floor(F.zoom+1),F)),F)}}_calculate(A,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:A,to:F}:{from:W,to:F}}interpolate(A){return A}}class Ku{constructor(A){this.specification=A}possiblyEvaluate(A,F,W,te){return!!A.expression.evaluate(F,null,{},W,te)}interpolate(){return!1}}class ue{constructor(A){this.properties=A,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let F in A){let W=A[F];W.specification.overridable&&this.overridableProperties.push(F);let te=this.defaultPropertyValues[F]=new Ql(W,void 0),fe=this.defaultTransitionablePropertyValues[F]=new Cu(W);this.defaultTransitioningPropertyValues[F]=fe.untransitioned(),this.defaultPossiblyEvaluatedValues[F]=te.possiblyEvaluate({})}}}Fi("DataDrivenProperty",oo),Fi("DataConstantProperty",Va),Fi("CrossFadedDataDrivenProperty",Vc),Fi("CrossFadedProperty",hc),Fi("ColorRampProperty",Ku);let w="-transition";class B extends Pe{constructor(A,F){if(super(),this.id=A.id,this.type=A.type,this._featureFilter={filter:()=>!0,needGeometry:!1},A.type!=="custom"&&(this.metadata=A.metadata,this.minzoom=A.minzoom,this.maxzoom=A.maxzoom,A.type!=="background"&&(this.source=A.source,this.sourceLayer=A["source-layer"],this.filter=A.filter),F.layout&&(this._unevaluatedLayout=new Uc(F.layout)),F.paint)){this._transitionablePaint=new Yu(F.paint);for(let W in A.paint)this.setPaintProperty(W,A.paint[W],{validate:!1});for(let W in A.layout)this.setLayoutProperty(W,A.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ac(F.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(A){return A==="visibility"?this.visibility:this._unevaluatedLayout.getValue(A)}setLayoutProperty(A,F,W={}){F!=null&&this._validate(On,`layers.${this.id}.layout.${A}`,A,F,W)||(A!=="visibility"?this._unevaluatedLayout.setValue(A,F):this.visibility=F)}getPaintProperty(A){return A.endsWith(w)?this._transitionablePaint.getTransition(A.slice(0,-11)):this._transitionablePaint.getValue(A)}setPaintProperty(A,F,W={}){if(F!=null&&this._validate(wn,`layers.${this.id}.paint.${A}`,A,F,W))return!1;if(A.endsWith(w))return this._transitionablePaint.setTransition(A.slice(0,-11),F||void 0),!1;{let te=this._transitionablePaint._values[A],fe=te.property.specification["property-type"]==="cross-faded-data-driven",pe=te.value.isDataDriven(),Re=te.value;this._transitionablePaint.setValue(A,F),this._handleSpecialPaintPropertyUpdate(A);let Ke=this._transitionablePaint._values[A].value;return Ke.isDataDriven()||pe||fe||this._handleOverridablePaintPropertyUpdate(A,Re,Ke)}}_handleSpecialPaintPropertyUpdate(A){}_handleOverridablePaintPropertyUpdate(A,F,W){return!1}isHidden(A){return!!(this.minzoom&&A=this.maxzoom)||this.visibility==="none"}updateTransitions(A){this._transitioningPaint=this._transitionablePaint.transitioned(A,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(A,F){A.getCrossfadeParameters&&(this._crossfadeParameters=A.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(A,void 0,F)),this.paint=this._transitioningPaint.possiblyEvaluate(A,void 0,F)}serialize(){let A={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(A.layout=A.layout||{},A.layout.visibility=this.visibility),S(A,((F,W)=>!(F===void 0||W==="layout"&&!Object.keys(F).length||W==="paint"&&!Object.keys(F).length)))}_validate(A,F,W,te,fe={}){return(!fe||fe.validate!==!1)&&Yi(this,A.call(Mi,{key:F,layerType:this.type,objectKey:W,value:te,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let A in this.paint._values){let F=this.paint.get(A);if(F instanceof xu&&Bl(F.property.specification)&&(F.value.kind==="source"||F.value.kind==="composite")&&F.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(A,F){this._structArray=A,this._pos1=F*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class le{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(A,F){return A._trim(),F&&(A.isTransferred=!0,F.push(A.arrayBuffer)),{length:A.length,arrayBuffer:A.arrayBuffer}}static deserialize(A){let F=Object.create(this.prototype);return F.arrayBuffer=A.arrayBuffer,F.length=A.length,F.capacity=A.arrayBuffer.byteLength/F.bytesPerElement,F._refreshViews(),F}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(A){this.reserve(A),this.length=A}reserve(A){if(A>this.capacity){this.capacity=Math.max(A,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let F=this.uint8;this._refreshViews(),F&&this.uint8.set(F)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Fe(R,A=1){let F=0,W=0;return{members:R.map((te=>{let fe=Q[te.type].BYTES_PER_ELEMENT,pe=F=Ze(F,Math.max(A,fe)),Re=te.components||1;return W=Math.max(W,fe),F+=fe*Re,{name:te.name,type:te.type,components:Re,offset:pe}})),size:Ze(F,Math.max(W,A)),alignment:A}}function Ze(R,A){return Math.ceil(R/A)*A}class ut extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F){let W=this.length;return this.resize(W+1),this.emplace(W,A,F)}emplace(A,F,W){let te=2*A;return this.int16[te+0]=F,this.int16[te+1]=W,A}}ut.prototype.bytesPerElement=4,Fi("StructArrayLayout2i4",ut);class Mt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=3*A;return this.int16[fe+0]=F,this.int16[fe+1]=W,this.int16[fe+2]=te,A}}Mt.prototype.bytesPerElement=6,Fi("StructArrayLayout3i6",Mt);class Jt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,A,F,W,te)}emplace(A,F,W,te,fe){let pe=4*A;return this.int16[pe+0]=F,this.int16[pe+1]=W,this.int16[pe+2]=te,this.int16[pe+3]=fe,A}}Jt.prototype.bytesPerElement=8,Fi("StructArrayLayout4i8",Jt);class $t extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe){let Re=this.length;return this.resize(Re+1),this.emplace(Re,A,F,W,te,fe,pe)}emplace(A,F,W,te,fe,pe,Re){let Ke=6*A;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=Re,A}}$t.prototype.bytesPerElement=12,Fi("StructArrayLayout2i4i12",$t);class yr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe){let Re=this.length;return this.resize(Re+1),this.emplace(Re,A,F,W,te,fe,pe)}emplace(A,F,W,te,fe,pe,Re){let Ke=4*A,ft=8*A;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.uint8[ft+4]=te,this.uint8[ft+5]=fe,this.uint8[ft+6]=pe,this.uint8[ft+7]=Re,A}}yr.prototype.bytesPerElement=8,Fi("StructArrayLayout2i4ub8",yr);class Cr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F){let W=this.length;return this.resize(W+1),this.emplace(W,A,F)}emplace(A,F,W){let te=2*A;return this.float32[te+0]=F,this.float32[te+1]=W,A}}Cr.prototype.bytesPerElement=8,Fi("StructArrayLayout2f8",Cr);class ve extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft,Rt){let er=this.length;return this.resize(er+1),this.emplace(er,A,F,W,te,fe,pe,Re,Ke,ft,Rt)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er){let ur=10*A;return this.uint16[ur+0]=F,this.uint16[ur+1]=W,this.uint16[ur+2]=te,this.uint16[ur+3]=fe,this.uint16[ur+4]=pe,this.uint16[ur+5]=Re,this.uint16[ur+6]=Ke,this.uint16[ur+7]=ft,this.uint16[ur+8]=Rt,this.uint16[ur+9]=er,A}}ve.prototype.bytesPerElement=20,Fi("StructArrayLayout10ui20",ve);class xe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur){let vr=this.length;return this.resize(vr+1),this.emplace(vr,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr){let kr=12*A;return this.int16[kr+0]=F,this.int16[kr+1]=W,this.int16[kr+2]=te,this.int16[kr+3]=fe,this.uint16[kr+4]=pe,this.uint16[kr+5]=Re,this.uint16[kr+6]=Ke,this.uint16[kr+7]=ft,this.int16[kr+8]=Rt,this.int16[kr+9]=er,this.int16[kr+10]=ur,this.int16[kr+11]=vr,A}}xe.prototype.bytesPerElement=24,Fi("StructArrayLayout4i4ui4i24",xe);class Ie extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=3*A;return this.float32[fe+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,A}}Ie.prototype.bytesPerElement=12,Fi("StructArrayLayout3f12",Ie);class ze extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(A){let F=this.length;return this.resize(F+1),this.emplace(F,A)}emplace(A,F){return this.uint32[1*A+0]=F,A}}ze.prototype.bytesPerElement=4,Fi("StructArrayLayout1ul4",ze);class Qe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft){let Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,A,F,W,te,fe,pe,Re,Ke,ft)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt){let er=10*A,ur=5*A;return this.int16[er+0]=F,this.int16[er+1]=W,this.int16[er+2]=te,this.int16[er+3]=fe,this.int16[er+4]=pe,this.int16[er+5]=Re,this.uint32[ur+3]=Ke,this.uint16[er+8]=ft,this.uint16[er+9]=Rt,A}}Qe.prototype.bytesPerElement=20,Fi("StructArrayLayout6i1ul2ui20",Qe);class Xe extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe){let Re=this.length;return this.resize(Re+1),this.emplace(Re,A,F,W,te,fe,pe)}emplace(A,F,W,te,fe,pe,Re){let Ke=6*A;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=Re,A}}Xe.prototype.bytesPerElement=12,Fi("StructArrayLayout2i2i2i12",Xe);class nt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe){let pe=this.length;return this.resize(pe+1),this.emplace(pe,A,F,W,te,fe)}emplace(A,F,W,te,fe,pe){let Re=4*A,Ke=8*A;return this.float32[Re+0]=F,this.float32[Re+1]=W,this.float32[Re+2]=te,this.int16[Ke+6]=fe,this.int16[Ke+7]=pe,A}}nt.prototype.bytesPerElement=16,Fi("StructArrayLayout2f1f2i16",nt);class qt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe){let Re=this.length;return this.resize(Re+1),this.emplace(Re,A,F,W,te,fe,pe)}emplace(A,F,W,te,fe,pe,Re){let Ke=16*A,ft=4*A,Rt=8*A;return this.uint8[Ke+0]=F,this.uint8[Ke+1]=W,this.float32[ft+1]=te,this.float32[ft+2]=fe,this.int16[Rt+6]=pe,this.int16[Rt+7]=Re,A}}qt.prototype.bytesPerElement=16,Fi("StructArrayLayout2ub2f2i16",qt);class Wt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=3*A;return this.uint16[fe+0]=F,this.uint16[fe+1]=W,this.uint16[fe+2]=te,A}}Wt.prototype.bytesPerElement=6,Fi("StructArrayLayout3ui6",Wt);class nr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi){let vn=this.length;return this.resize(vn+1),this.emplace(vn,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn){let zi=24*A,ln=12*A,Tn=48*A;return this.int16[zi+0]=F,this.int16[zi+1]=W,this.uint16[zi+2]=te,this.uint16[zi+3]=fe,this.uint32[ln+2]=pe,this.uint32[ln+3]=Re,this.uint32[ln+4]=Ke,this.uint16[zi+10]=ft,this.uint16[zi+11]=Rt,this.uint16[zi+12]=er,this.float32[ln+7]=ur,this.float32[ln+8]=vr,this.uint8[Tn+36]=kr,this.uint8[Tn+37]=Dr,this.uint8[Tn+38]=li,this.uint32[ln+10]=pi,this.int16[zi+22]=vn,A}}nr.prototype.bytesPerElement=48,Fi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",nr);class fr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn,zi,ln,Tn,pa,ro,Vo,Xa,la,Mo,fo){let lo=this.length;return this.resize(lo+1),this.emplace(lo,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn,zi,ln,Tn,pa,ro,Vo,Xa,la,Mo,fo)}emplace(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr,li,pi,vn,zi,ln,Tn,pa,ro,Vo,Xa,la,Mo,fo,lo){let Wn=32*A,Ro=16*A;return this.int16[Wn+0]=F,this.int16[Wn+1]=W,this.int16[Wn+2]=te,this.int16[Wn+3]=fe,this.int16[Wn+4]=pe,this.int16[Wn+5]=Re,this.int16[Wn+6]=Ke,this.int16[Wn+7]=ft,this.uint16[Wn+8]=Rt,this.uint16[Wn+9]=er,this.uint16[Wn+10]=ur,this.uint16[Wn+11]=vr,this.uint16[Wn+12]=kr,this.uint16[Wn+13]=Dr,this.uint16[Wn+14]=li,this.uint16[Wn+15]=pi,this.uint16[Wn+16]=vn,this.uint16[Wn+17]=zi,this.uint16[Wn+18]=ln,this.uint16[Wn+19]=Tn,this.uint16[Wn+20]=pa,this.uint16[Wn+21]=ro,this.uint16[Wn+22]=Vo,this.uint32[Ro+12]=Xa,this.float32[Ro+13]=la,this.float32[Ro+14]=Mo,this.uint16[Wn+30]=fo,this.uint16[Wn+31]=lo,A}}fr.prototype.bytesPerElement=64,Fi("StructArrayLayout8i15ui1ul2f2ui64",fr);class br extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A){let F=this.length;return this.resize(F+1),this.emplace(F,A)}emplace(A,F){return this.float32[1*A+0]=F,A}}br.prototype.bytesPerElement=4,Fi("StructArrayLayout1f4",br);class Fr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=3*A;return this.uint16[6*A+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,A}}Fr.prototype.bytesPerElement=12,Fi("StructArrayLayout1ui2f12",Fr);class Hr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,A,F,W)}emplace(A,F,W,te){let fe=4*A;return this.uint32[2*A+0]=F,this.uint16[fe+2]=W,this.uint16[fe+3]=te,A}}Hr.prototype.bytesPerElement=8,Fi("StructArrayLayout1ul2ui8",Hr);class ri extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A,F){let W=this.length;return this.resize(W+1),this.emplace(W,A,F)}emplace(A,F,W){let te=2*A;return this.uint16[te+0]=F,this.uint16[te+1]=W,A}}ri.prototype.bytesPerElement=4,Fi("StructArrayLayout2ui4",ri);class Ci extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(A){let F=this.length;return this.resize(F+1),this.emplace(F,A)}emplace(A,F){return this.uint16[1*A+0]=F,A}}Ci.prototype.bytesPerElement=2,Fi("StructArrayLayout1ui2",Ci);class cn extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(A,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,A,F,W,te)}emplace(A,F,W,te,fe){let pe=4*A;return this.float32[pe+0]=F,this.float32[pe+1]=W,this.float32[pe+2]=te,this.float32[pe+3]=fe,A}}cn.prototype.bytesPerElement=16,Fi("StructArrayLayout4f16",cn);class sn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new u(this.anchorPointX,this.anchorPointY)}}sn.prototype.size=20;class Ln extends Qe{get(A){return new sn(this,A)}}Fi("CollisionBoxArray",Ln);class Kn extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(A){this._structArray.uint8[this._pos1+37]=A}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(A){this._structArray.uint8[this._pos1+38]=A}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(A){this._structArray.uint32[this._pos4+10]=A}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Kn.prototype.size=48;class Aa extends nr{get(A){return new Kn(this,A)}}Fi("PlacedSymbolArray",Aa);class fa extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(A){this._structArray.uint32[this._pos4+12]=A}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}fa.prototype.size=64;class $a extends fr{get(A){return new fa(this,A)}}Fi("SymbolInstanceArray",$a);class Co extends br{getoffsetX(A){return this.float32[1*A+0]}}Fi("GlyphOffsetArray",Co);class Qa extends Mt{getx(A){return this.int16[3*A+0]}gety(A){return this.int16[3*A+1]}gettileUnitDistanceFromAnchor(A){return this.int16[3*A+2]}}Fi("SymbolLineVertexArray",Qa);class mo extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}mo.prototype.size=12;class Bo extends Fr{get(A){return new mo(this,A)}}Fi("TextAnchorOffsetArray",Bo);class Ps extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Ps.prototype.size=8;class Ts extends Hr{get(A){return new Ps(this,A)}}Fi("FeatureIndexArray",Ts);class wo extends ut{}class To extends ut{}class hl extends ut{}class Nl extends $t{}class Lu extends yr{}class au extends Cr{}class Js extends ve{}class eu extends xe{}class dc extends Ie{}class Al extends ze{}class Sl extends Xe{}class X extends qt{}class se extends Wt{}class Te extends ri{}let qe=Fe([{name:"a_pos",components:2,type:"Int16"}],4),{members:Ve}=qe;class Ye{constructor(A=[]){this.segments=A}prepareSegment(A,F,W,te){let fe=this.segments[this.segments.length-1];return A>Ye.MAX_VERTEX_ARRAY_LENGTH&&E(`Max vertices per segment is ${Ye.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${A}`),(!fe||fe.vertexLength+A>Ye.MAX_VERTEX_ARRAY_LENGTH||fe.sortKey!==te)&&(fe={vertexOffset:F.length,primitiveOffset:W.length,vertexLength:0,primitiveLength:0},te!==void 0&&(fe.sortKey=te),this.segments.push(fe)),fe}get(){return this.segments}destroy(){for(let A of this.segments)for(let F in A.vaos)A.vaos[F].destroy()}static simpleSegment(A,F,W,te){return new Ye([{vertexOffset:A,primitiveOffset:F,vertexLength:W,primitiveLength:te,vaos:{},sortKey:0}])}}function Pt(R,A){return 256*(R=M(Math.floor(R),0,255))+M(Math.floor(A),0,255)}Ye.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Fi("SegmentVector",Ye);let ot=Fe([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var Xt={exports:{}},dr={exports:{}};dr.exports=function(R,A){var F,W,te,fe,pe,Re,Ke,ft;for(W=R.length-(F=3&R.length),te=A,pe=3432918353,Re=461845907,ft=0;ft>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*Re+(((Ke>>>16)*Re&65535)<<16)&4294967295)<<13|te>>>19))+((5*(te>>>16)&65535)<<16)&4294967295))+((58964+(fe>>>16)&65535)<<16);switch(Ke=0,F){case 3:Ke^=(255&R.charCodeAt(ft+2))<<16;case 2:Ke^=(255&R.charCodeAt(ft+1))<<8;case 1:te^=Ke=(65535&(Ke=(Ke=(65535&(Ke^=255&R.charCodeAt(ft)))*pe+(((Ke>>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*Re+(((Ke>>>16)*Re&65535)<<16)&4294967295}return te^=R.length,te=2246822507*(65535&(te^=te>>>16))+((2246822507*(te>>>16)&65535)<<16)&4294967295,te=3266489909*(65535&(te^=te>>>13))+((3266489909*(te>>>16)&65535)<<16)&4294967295,(te^=te>>>16)>>>0};var pr=dr.exports,Ur={exports:{}};Ur.exports=function(R,A){for(var F,W=R.length,te=A^W,fe=0;W>=4;)F=1540483477*(65535&(F=255&R.charCodeAt(fe)|(255&R.charCodeAt(++fe))<<8|(255&R.charCodeAt(++fe))<<16|(255&R.charCodeAt(++fe))<<24))+((1540483477*(F>>>16)&65535)<<16),te=1540483477*(65535&te)+((1540483477*(te>>>16)&65535)<<16)^(F=1540483477*(65535&(F^=F>>>24))+((1540483477*(F>>>16)&65535)<<16)),W-=4,++fe;switch(W){case 3:te^=(255&R.charCodeAt(fe+2))<<16;case 2:te^=(255&R.charCodeAt(fe+1))<<8;case 1:te=1540483477*(65535&(te^=255&R.charCodeAt(fe)))+((1540483477*(te>>>16)&65535)<<16)}return te=1540483477*(65535&(te^=te>>>13))+((1540483477*(te>>>16)&65535)<<16),(te^=te>>>15)>>>0};var zr=pr,gi=Ur.exports;Xt.exports=zr,Xt.exports.murmur3=zr,Xt.exports.murmur2=gi;var xi=o(Xt.exports);class Wr{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(A,F,W,te){this.ids.push(ii(A)),this.positions.push(F,W,te)}getPositions(A){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let F=ii(A),W=0,te=this.ids.length-1;for(;W>1;this.ids[pe]>=F?te=pe:W=pe+1}let fe=[];for(;this.ids[W]===F;)fe.push({index:this.positions[3*W],start:this.positions[3*W+1],end:this.positions[3*W+2]}),W++;return fe}static serialize(A,F){let W=new Float64Array(A.ids),te=new Uint32Array(A.positions);return di(W,te,0,W.length-1),F&&F.push(W.buffer,te.buffer),{ids:W,positions:te}}static deserialize(A){let F=new Wr;return F.ids=A.ids,F.positions=A.positions,F.indexed=!0,F}}function ii(R){let A=+R;return!isNaN(A)&&A<=Number.MAX_SAFE_INTEGER?A:xi(String(R))}function di(R,A,F,W){for(;F>1],fe=F-1,pe=W+1;for(;;){do fe++;while(R[fe]te);if(fe>=pe)break;Li(R,fe,pe),Li(A,3*fe,3*pe),Li(A,3*fe+1,3*pe+1),Li(A,3*fe+2,3*pe+2)}pe-F`u_${te}`)),this.type=W}setUniform(A,F,W){A.set(W.constantOr(this.value))}getBinding(A,F,W){return this.type==="color"?new kn(A,F):new Qr(A,F)}}class Ia{constructor(A,F){this.uniformNames=F.map((W=>`u_${W}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(A,F){this.pixelRatioFrom=F.pixelRatio,this.pixelRatioTo=A.pixelRatio,this.patternFrom=F.tlbr,this.patternTo=A.tlbr}setUniform(A,F,W,te){let fe=te==="u_pattern_to"?this.patternTo:te==="u_pattern_from"?this.patternFrom:te==="u_pixel_ratio_to"?this.pixelRatioTo:te==="u_pixel_ratio_from"?this.pixelRatioFrom:null;fe&&A.set(fe)}getBinding(A,F,W){return W.substr(0,9)==="u_pattern"?new Pn(A,F):new Qr(A,F)}}class yo{constructor(A,F,W,te){this.expression=A,this.type=W,this.maxValue=0,this.paintVertexAttributes=F.map((fe=>({name:`a_${fe}`,type:"Float32",components:W==="color"?2:1,offset:0}))),this.paintVertexArray=new te}populatePaintArray(A,F,W,te,fe){let pe=this.paintVertexArray.length,Re=this.expression.evaluate(new rs(0),F,{},te,[],fe);this.paintVertexArray.resize(A),this._setPaintValue(pe,A,Re)}updatePaintArray(A,F,W,te){let fe=this.expression.evaluate({zoom:0},W,te);this._setPaintValue(A,F,fe)}_setPaintValue(A,F,W){if(this.type==="color"){let te=na(W);for(let fe=A;fe`u_${Re}_t`)),this.type=W,this.useIntegerZoom=te,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=F.map((Re=>({name:`a_${Re}`,type:"Float32",components:W==="color"?4:2,offset:0}))),this.paintVertexArray=new pe}populatePaintArray(A,F,W,te,fe){let pe=this.expression.evaluate(new rs(this.zoom),F,{},te,[],fe),Re=this.expression.evaluate(new rs(this.zoom+1),F,{},te,[],fe),Ke=this.paintVertexArray.length;this.paintVertexArray.resize(A),this._setPaintValue(Ke,A,pe,Re)}updatePaintArray(A,F,W,te){let fe=this.expression.evaluate({zoom:this.zoom},W,te),pe=this.expression.evaluate({zoom:this.zoom+1},W,te);this._setPaintValue(A,F,fe,pe)}_setPaintValue(A,F,W,te){if(this.type==="color"){let fe=na(W),pe=na(te);for(let Re=A;Re`#define HAS_UNIFORM_${te}`)))}return A}getBinderAttributes(){let A=[];for(let F in this.binders){let W=this.binders[F];if(W instanceof yo||W instanceof Da)for(let te=0;te!0)){this.programConfigurations={};for(let te of A)this.programConfigurations[te.id]=new Is(te,F,W);this.needsUpload=!1,this._featureMap=new Wr,this._bufferOffset=0}populatePaintArrays(A,F,W,te,fe,pe){for(let Re in this.programConfigurations)this.programConfigurations[Re].populatePaintArrays(A,F,te,fe,pe);F.id!==void 0&&this._featureMap.add(F.id,W,this._bufferOffset,A),this._bufferOffset=A,this.needsUpload=!0}updatePaintArrays(A,F,W,te){for(let fe of W)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(A,this._featureMap,F,fe,te)||this.needsUpload}get(A){return this.programConfigurations[A]}upload(A){if(this.needsUpload){for(let F in this.programConfigurations)this.programConfigurations[F].upload(A);this.needsUpload=!1}}destroy(){for(let A in this.programConfigurations)this.programConfigurations[A].destroy()}}function Xs(R,A){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[R]||[R.replace(`${A}-`,"").replace(/-/g,"_")]}function Un(R,A,F){let W={color:{source:Cr,composite:cn},number:{source:br,composite:Cr}},te=(function(fe){return{"line-pattern":{source:Js,composite:Js},"fill-pattern":{source:Js,composite:Js},"fill-extrusion-pattern":{source:Js,composite:Js}}[fe]})(R);return te&&te[F]||W[A][F]}Fi("ConstantBinder",Ea),Fi("CrossFadedConstantBinder",Ia),Fi("SourceExpressionBinder",yo),Fi("CrossFadedCompositeBinder",go),Fi("CompositeExpressionBinder",Da),Fi("ProgramConfiguration",Is,{omit:["_buffers"]}),Fi("ProgramConfigurationSet",Ms);let ja=8192,Fo=Math.pow(2,14)-1,Uo=-Fo-1;function $s(R){let A=ja/R.extent,F=R.loadGeometry();for(let W=0;Wpe.x+1||Kepe.y+1)&&E("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return F}function Ml(R,A){return{type:R.type,id:R.id,properties:R.properties,geometry:A?$s(R):[]}}function bu(R,A,F,W,te){R.emplaceBack(2*A+(W+1)/2,2*F+(te+1)/2)}class dl{constructor(A){this.zoom=A.zoom,this.overscaling=A.overscaling,this.layers=A.layers,this.layerIds=this.layers.map((F=>F.id)),this.index=A.index,this.hasPattern=!1,this.layoutVertexArray=new To,this.indexArray=new se,this.segments=new Ye,this.programConfigurations=new Ms(A.layers,A.zoom),this.stateDependentLayerIds=this.layers.filter((F=>F.isStateDependent())).map((F=>F.id))}populate(A,F,W){let te=this.layers[0],fe=[],pe=null,Re=!1;te.type==="circle"&&(pe=te.layout.get("circle-sort-key"),Re=!pe.isConstant());for(let{feature:Ke,id:ft,index:Rt,sourceLayerIndex:er}of A){let ur=this.layers[0]._featureFilter.needGeometry,vr=Ml(Ke,ur);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),vr,W))continue;let kr=Re?pe.evaluate(vr,{},W):void 0,Dr={id:ft,properties:Ke.properties,type:Ke.type,sourceLayerIndex:er,index:Rt,geometry:ur?vr.geometry:$s(Ke),patterns:{},sortKey:kr};fe.push(Dr)}Re&&fe.sort(((Ke,ft)=>Ke.sortKey-ft.sortKey));for(let Ke of fe){let{geometry:ft,index:Rt,sourceLayerIndex:er}=Ke,ur=A[Rt].feature;this.addFeature(Ke,ft,Rt,W),F.featureIndex.insert(ur,ft,Rt,er,this.index)}}update(A,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(A,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(A){this.uploaded||(this.layoutVertexBuffer=A.createVertexBuffer(this.layoutVertexArray,Ve),this.indexBuffer=A.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(A),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(A,F,W,te){for(let fe of F)for(let pe of fe){let Re=pe.x,Ke=pe.y;if(Re<0||Re>=ja||Ke<0||Ke>=ja)continue;let ft=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,A.sortKey),Rt=ft.vertexLength;bu(this.layoutVertexArray,Re,Ke,-1,-1),bu(this.layoutVertexArray,Re,Ke,1,-1),bu(this.layoutVertexArray,Re,Ke,1,1),bu(this.layoutVertexArray,Re,Ke,-1,1),this.indexArray.emplaceBack(Rt,Rt+1,Rt+2),this.indexArray.emplaceBack(Rt,Rt+3,Rt+2),ft.vertexLength+=4,ft.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,A,W,{},te)}}function Sc(R,A){for(let F=0;F1){if(Lr(R,A))return!0;for(let W=0;W1?F:F.sub(A)._mult(te)._add(A))}function vi(R,A){let F,W,te,fe=!1;for(let pe=0;peA.y!=te.y>A.y&&A.x<(te.x-W.x)*(A.y-W.y)/(te.y-W.y)+W.x&&(fe=!fe)}return fe}function Ni(R,A){let F=!1;for(let W=0,te=R.length-1;WA.y!=pe.y>A.y&&A.x<(pe.x-fe.x)*(A.y-fe.y)/(pe.y-fe.y)+fe.x&&(F=!F)}return F}function qi(R,A,F){let W=F[0],te=F[2];if(R.xte.x&&A.x>te.x||R.yte.y&&A.y>te.y)return!1;let fe=z(R,A,F[0]);return fe!==z(R,A,F[1])||fe!==z(R,A,F[2])||fe!==z(R,A,F[3])}function Si(R,A,F){let W=A.paint.get(R).value;return W.kind==="constant"?W.value:F.programConfigurations.get(A.id).getMaxValue(R)}function Vn(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function Qi(R,A,F,W,te){if(!A[0]&&!A[1])return R;let fe=u.convert(A)._mult(te);F==="viewport"&&fe._rotate(-W);let pe=[];for(let Re=0;Resi(li,Dr)))})(ft,Ke),vr=er?Rt*Re:Rt;for(let kr of te)for(let Dr of kr){let li=er?Dr:si(Dr,Ke),pi=vr,vn=qn([],[Dr.x,Dr.y,0,1],Ke);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?pi*=vn[3]/pe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(pi*=pe.cameraToCenterDistance/vn[3]),Me(ur,li,pi))return!0}return!1}}function si(R,A){let F=qn([],[R.x,R.y,0,1],A);return new u(F[0]/F[3],F[1]/F[3])}class mn extends dl{}let Ji;Fi("HeatmapBucket",mn,{omit:["layers"]});var Ui={get paint(){return Ji=Ji||new ue({"heatmap-radius":new oo(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new oo(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Va(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ku(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Va(ce.paint_heatmap["heatmap-opacity"])})}};function Bi(R,{width:A,height:F},W,te){if(te){if(te instanceof Uint8ClampedArray)te=new Uint8Array(te.buffer);else if(te.length!==A*F*W)throw new RangeError(`mismatched image size. expected: ${te.length} but got: ${A*F*W}`)}else te=new Uint8Array(A*F*W);return R.width=A,R.height=F,R.data=te,R}function pn(R,{width:A,height:F},W){if(A===R.width&&F===R.height)return;let te=Bi({},{width:A,height:F},W);Nn(R,te,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,A),height:Math.min(R.height,F)},W),R.width=A,R.height=F,R.data=te.data}function Nn(R,A,F,W,te,fe){if(te.width===0||te.height===0)return A;if(te.width>R.width||te.height>R.height||F.x>R.width-te.width||F.y>R.height-te.height)throw new RangeError("out of range source coordinates for image copy");if(te.width>A.width||te.height>A.height||W.x>A.width-te.width||W.y>A.height-te.height)throw new RangeError("out of range destination coordinates for image copy");let pe=R.data,Re=A.data;if(pe===Re)throw new Error("srcData equals dstData, so image is already copied");for(let Ke=0;Ke{A[R.evaluationKey]=Ke;let ft=R.expression.evaluate(A);te.data[pe+Re+0]=Math.floor(255*ft.r/ft.a),te.data[pe+Re+1]=Math.floor(255*ft.g/ft.a),te.data[pe+Re+2]=Math.floor(255*ft.b/ft.a),te.data[pe+Re+3]=Math.floor(255*ft.a)};if(R.clips)for(let pe=0,Re=0;pe80*F){Re=1/0,Ke=1/0;let Rt=-1/0,er=-1/0;for(let ur=F;urRt&&(Rt=vr),kr>er&&(er=kr)}ft=Math.max(Rt-Re,er-Ke),ft=ft!==0?32767/ft:0}return Ul(fe,pe,F,Re,Ke,ft,0),pe}function Qs(R,A,F,W,te){let fe;if(te===(function(pe,Re,Ke,ft){let Rt=0;for(let er=Re,ur=Ke-ft;er0)for(let pe=A;pe=A;pe-=W)fe=Nt(pe/W|0,R[pe],R[pe+1],fe);return fe&&ne(fe,fe.next)&&(Ne(fe),fe=fe.next),fe}function nl(R,A){if(!R)return R;A||(A=R);let F,W=R;do if(F=!1,W.steiner||!ne(W,W.next)&&de(W.prev,W,W.next)!==0)W=W.next;else{if(Ne(W),W=A=W.prev,W===W.next)break;F=!0}while(F||W!==A);return A}function Ul(R,A,F,W,te,fe,pe){if(!R)return;!pe&&fe&&(function(Ke,ft,Rt,er){let ur=Ke;do ur.z===0&&(ur.z=D(ur.x,ur.y,ft,Rt,er)),ur.prevZ=ur.prev,ur.nextZ=ur.next,ur=ur.next;while(ur!==Ke);ur.prevZ.nextZ=null,ur.prevZ=null,(function(vr){let kr,Dr=1;do{let li,pi=vr;vr=null;let vn=null;for(kr=0;pi;){kr++;let zi=pi,ln=0;for(let pa=0;pa0||Tn>0&&zi;)ln!==0&&(Tn===0||!zi||pi.z<=zi.z)?(li=pi,pi=pi.nextZ,ln--):(li=zi,zi=zi.nextZ,Tn--),vn?vn.nextZ=li:vr=li,li.prevZ=vn,vn=li;pi=zi}vn.nextZ=null,Dr*=2}while(kr>1)})(ur)})(R,W,te,fe);let Re=R;for(;R.prev!==R.next;){let Ke=R.prev,ft=R.next;if(fe?Vs(R,W,te,fe):ss(R))A.push(Ke.i,R.i,ft.i),Ne(R),R=ft.next,Re=ft.next;else if((R=ft)===Re){pe?pe===1?Ul(R=Ys(nl(R),A),A,F,W,te,fe,2):pe===2&&wa(R,A,F,W,te,fe):Ul(nl(R),A,F,W,te,fe,1);break}}}function ss(R){let A=R.prev,F=R,W=R.next;if(de(A,F,W)>=0)return!1;let te=A.x,fe=F.x,pe=W.x,Re=A.y,Ke=F.y,ft=W.y,Rt=tefe?te>pe?te:pe:fe>pe?fe:pe,vr=Re>Ke?Re>ft?Re:ft:Ke>ft?Ke:ft,kr=W.next;for(;kr!==A;){if(kr.x>=Rt&&kr.x<=ur&&kr.y>=er&&kr.y<=vr&&O(te,Re,fe,Ke,pe,ft,kr.x,kr.y)&&de(kr.prev,kr,kr.next)>=0)return!1;kr=kr.next}return!0}function Vs(R,A,F,W){let te=R.prev,fe=R,pe=R.next;if(de(te,fe,pe)>=0)return!1;let Re=te.x,Ke=fe.x,ft=pe.x,Rt=te.y,er=fe.y,ur=pe.y,vr=ReKe?Re>ft?Re:ft:Ke>ft?Ke:ft,li=Rt>er?Rt>ur?Rt:ur:er>ur?er:ur,pi=D(vr,kr,A,F,W),vn=D(Dr,li,A,F,W),zi=R.prevZ,ln=R.nextZ;for(;zi&&zi.z>=pi&&ln&&ln.z<=vn;){if(zi.x>=vr&&zi.x<=Dr&&zi.y>=kr&&zi.y<=li&&zi!==te&&zi!==pe&&O(Re,Rt,Ke,er,ft,ur,zi.x,zi.y)&&de(zi.prev,zi,zi.next)>=0||(zi=zi.prevZ,ln.x>=vr&&ln.x<=Dr&&ln.y>=kr&&ln.y<=li&&ln!==te&&ln!==pe&&O(Re,Rt,Ke,er,ft,ur,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0))return!1;ln=ln.nextZ}for(;zi&&zi.z>=pi;){if(zi.x>=vr&&zi.x<=Dr&&zi.y>=kr&&zi.y<=li&&zi!==te&&zi!==pe&&O(Re,Rt,Ke,er,ft,ur,zi.x,zi.y)&&de(zi.prev,zi,zi.next)>=0)return!1;zi=zi.prevZ}for(;ln&&ln.z<=vn;){if(ln.x>=vr&&ln.x<=Dr&&ln.y>=kr&&ln.y<=li&&ln!==te&&ln!==pe&&O(Re,Rt,Ke,er,ft,ur,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0)return!1;ln=ln.nextZ}return!0}function Ys(R,A){let F=R;do{let W=F.prev,te=F.next.next;!ne(W,te)&&we(W,F,F.next,te)&&Yt(W,te)&&Yt(te,W)&&(A.push(W.i,F.i,te.i),Ne(F),Ne(F.next),F=R=te),F=F.next}while(F!==R);return nl(F)}function wa(R,A,F,W,te,fe){let pe=R;do{let Re=pe.next.next;for(;Re!==pe.prev;){if(pe.i!==Re.i&&K(pe,Re)){let Ke=cr(pe,Re);return pe=nl(pe,pe.next),Ke=nl(Ke,Ke.next),Ul(pe,A,F,W,te,fe,0),void Ul(Ke,A,F,W,te,fe,0)}Re=Re.next}pe=pe.next}while(pe!==R)}function al(R,A){return R.x-A.x}function io(R,A){let F=(function(te,fe){let pe=fe,Re=te.x,Ke=te.y,ft,Rt=-1/0;do{if(Ke<=pe.y&&Ke>=pe.next.y&&pe.next.y!==pe.y){let Dr=pe.x+(Ke-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if(Dr<=Re&&Dr>Rt&&(Rt=Dr,ft=pe.x=pe.x&&pe.x>=ur&&Re!==pe.x&&O(Keft.x||pe.x===ft.x&&Y(ft,pe)))&&(ft=pe,kr=Dr)}pe=pe.next}while(pe!==er);return ft})(R,A);if(!F)return A;let W=cr(F,R);return nl(W,W.next),nl(F,F.next)}function Y(R,A){return de(R.prev,R,A.prev)<0&&de(A.next,R,R.next)<0}function D(R,A,F,W,te){return(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=(R-F)*te|0)|R<<8))|R<<4))|R<<2))|R<<1))|(A=1431655765&((A=858993459&((A=252645135&((A=16711935&((A=(A-W)*te|0)|A<<8))|A<<4))|A<<2))|A<<1))<<1}function J(R){let A=R,F=R;do(A.x=(R-pe)*(fe-Re)&&(R-pe)*(W-Re)>=(F-pe)*(A-Re)&&(F-pe)*(fe-Re)>=(te-pe)*(W-Re)}function K(R,A){return R.next.i!==A.i&&R.prev.i!==A.i&&!(function(F,W){let te=F;do{if(te.i!==F.i&&te.next.i!==F.i&&te.i!==W.i&&te.next.i!==W.i&&we(te,te.next,F,W))return!0;te=te.next}while(te!==F);return!1})(R,A)&&(Yt(R,A)&&Yt(A,R)&&(function(F,W){let te=F,fe=!1,pe=(F.x+W.x)/2,Re=(F.y+W.y)/2;do te.y>Re!=te.next.y>Re&&te.next.y!==te.y&&pe<(te.next.x-te.x)*(Re-te.y)/(te.next.y-te.y)+te.x&&(fe=!fe),te=te.next;while(te!==F);return fe})(R,A)&&(de(R.prev,R,A.prev)||de(R,A.prev,A))||ne(R,A)&&de(R.prev,R,R.next)>0&&de(A.prev,A,A.next)>0)}function de(R,A,F){return(A.y-R.y)*(F.x-A.x)-(A.x-R.x)*(F.y-A.y)}function ne(R,A){return R.x===A.x&&R.y===A.y}function we(R,A,F,W){let te=ht(de(R,A,F)),fe=ht(de(R,A,W)),pe=ht(de(F,W,R)),Re=ht(de(F,W,A));return te!==fe&&pe!==Re||!(te!==0||!Oe(R,F,A))||!(fe!==0||!Oe(R,W,A))||!(pe!==0||!Oe(F,R,W))||!(Re!==0||!Oe(F,A,W))}function Oe(R,A,F){return A.x<=Math.max(R.x,F.x)&&A.x>=Math.min(R.x,F.x)&&A.y<=Math.max(R.y,F.y)&&A.y>=Math.min(R.y,F.y)}function ht(R){return R>0?1:R<0?-1:0}function Yt(R,A){return de(R.prev,R,R.next)<0?de(R,A,R.next)>=0&&de(R,R.prev,A)>=0:de(R,A,R.prev)<0||de(R,R.next,A)<0}function cr(R,A){let F=$e(R.i,R.x,R.y),W=$e(A.i,A.x,A.y),te=R.next,fe=A.prev;return R.next=A,A.prev=R,F.next=te,te.prev=F,W.next=F,F.prev=W,fe.next=W,W.prev=fe,W}function Nt(R,A,F,W){let te=$e(R,A,F);return W?(te.next=W.next,te.prev=W,W.next.prev=te,W.next=te):(te.prev=te,te.next=te),te}function Ne(R){R.next.prev=R.prev,R.prev.next=R.next,R.prevZ&&(R.prevZ.nextZ=R.nextZ),R.nextZ&&(R.nextZ.prevZ=R.prevZ)}function $e(R,A,F){return{i:R,x:A,y:F,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function st(R,A,F){let W=F.patternDependencies,te=!1;for(let fe of A){let pe=fe.paint.get(`${R}-pattern`);pe.isConstant()||(te=!0);let Re=pe.constantOr(null);Re&&(te=!0,W[Re.to]=!0,W[Re.from]=!0)}return te}function It(R,A,F,W,te){let fe=te.patternDependencies;for(let pe of A){let Re=pe.paint.get(`${R}-pattern`).value;if(Re.kind!=="constant"){let Ke=Re.evaluate({zoom:W-1},F,{},te.availableImages),ft=Re.evaluate({zoom:W},F,{},te.availableImages),Rt=Re.evaluate({zoom:W+1},F,{},te.availableImages);Ke=Ke&&Ke.name?Ke.name:Ke,ft=ft&&ft.name?ft.name:ft,Rt=Rt&&Rt.name?Rt.name:Rt,fe[Ke]=!0,fe[ft]=!0,fe[Rt]=!0,F.patterns[pe.id]={min:Ke,mid:ft,max:Rt}}}return F}class Bt{constructor(A){this.zoom=A.zoom,this.overscaling=A.overscaling,this.layers=A.layers,this.layerIds=this.layers.map((F=>F.id)),this.index=A.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new hl,this.indexArray=new se,this.indexArray2=new Te,this.programConfigurations=new Ms(A.layers,A.zoom),this.segments=new Ye,this.segments2=new Ye,this.stateDependentLayerIds=this.layers.filter((F=>F.isStateDependent())).map((F=>F.id))}populate(A,F,W){this.hasPattern=st("fill",this.layers,F);let te=this.layers[0].layout.get("fill-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:Re,id:Ke,index:ft,sourceLayerIndex:Rt}of A){let er=this.layers[0]._featureFilter.needGeometry,ur=Ml(Re,er);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),ur,W))continue;let vr=fe?te.evaluate(ur,{},W,F.availableImages):void 0,kr={id:Ke,properties:Re.properties,type:Re.type,sourceLayerIndex:Rt,index:ft,geometry:er?ur.geometry:$s(Re),patterns:{},sortKey:vr};pe.push(kr)}fe&&pe.sort(((Re,Ke)=>Re.sortKey-Ke.sortKey));for(let Re of pe){let{geometry:Ke,index:ft,sourceLayerIndex:Rt}=Re;if(this.hasPattern){let er=It("fill",this.layers,Re,this.zoom,F);this.patternFeatures.push(er)}else this.addFeature(Re,Ke,ft,W,{});F.featureIndex.insert(A[ft].feature,Ke,ft,Rt,this.index)}}update(A,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(A,F,this.stateDependentLayers,W)}addFeatures(A,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(A){this.uploaded||(this.layoutVertexBuffer=A.createVertexBuffer(this.layoutVertexArray,El),this.indexBuffer=A.createIndexBuffer(this.indexArray),this.indexBuffer2=A.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(A),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(A,F,W,te,fe){for(let pe of Cf(F,500)){let Re=0;for(let vr of pe)Re+=vr.length;let Ke=this.segments.prepareSegment(Re,this.layoutVertexArray,this.indexArray),ft=Ke.vertexLength,Rt=[],er=[];for(let vr of pe){if(vr.length===0)continue;vr!==pe[0]&&er.push(Rt.length/2);let kr=this.segments2.prepareSegment(vr.length,this.layoutVertexArray,this.indexArray2),Dr=kr.vertexLength;this.layoutVertexArray.emplaceBack(vr[0].x,vr[0].y),this.indexArray2.emplaceBack(Dr+vr.length-1,Dr),Rt.push(vr[0].x),Rt.push(vr[0].y);for(let li=1;li>3}if(te--,W===1||W===2)fe+=R.readSVarint(),pe+=R.readSVarint(),W===1&&(A&&Re.push(A),A=[]),A.push(new Br(fe,pe));else{if(W!==7)throw new Error("unknown command "+W);A&&A.push(A[0].clone())}}return A&&Re.push(A),Re},ci.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var A=R.readVarint()+R.pos,F=1,W=0,te=0,fe=0,pe=1/0,Re=-1/0,Ke=1/0,ft=-1/0;R.pos>3}if(W--,F===1||F===2)(te+=R.readSVarint())Re&&(Re=te),(fe+=R.readSVarint())ft&&(ft=fe);else if(F!==7)throw new Error("unknown command "+F)}return[pe,Ke,Re,ft]},ci.prototype.toGeoJSON=function(R,A,F){var W,te,fe=this.extent*Math.pow(2,F),pe=this.extent*R,Re=this.extent*A,Ke=this.loadGeometry(),ft=ci.types[this.type];function Rt(vr){for(var kr=0;kr>3;te=pe===1?W.readString():pe===2?W.readFloat():pe===3?W.readDouble():pe===4?W.readVarint64():pe===5?W.readVarint():pe===6?W.readSVarint():pe===7?W.readBoolean():null}return te})(F))}Oi.prototype.feature=function(R){if(R<0||R>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[R];var A=this._pbf.readVarint()+this._pbf.pos;return new tn(this._pbf,A,this.extent,this._keys,this._values)};var on=Ei;function zn(R,A,F){if(R===3){var W=new on(F,F.readVarint()+F.pos);W.length&&(A[W.name]=W)}}_r.VectorTile=function(R,A){this.layers=R.readFields(zn,{},A)},_r.VectorTileFeature=Di,_r.VectorTileLayer=Ei;let Ja=_r.VectorTileFeature.types,co=Math.pow(2,13);function ts(R,A,F,W,te,fe,pe,Re){R.emplaceBack(A,F,2*Math.floor(W*co)+pe,te*co*2,fe*co*2,Math.round(Re))}class so{constructor(A){this.zoom=A.zoom,this.overscaling=A.overscaling,this.layers=A.layers,this.layerIds=this.layers.map((F=>F.id)),this.index=A.index,this.hasPattern=!1,this.layoutVertexArray=new Nl,this.centroidVertexArray=new wo,this.indexArray=new se,this.programConfigurations=new Ms(A.layers,A.zoom),this.segments=new Ye,this.stateDependentLayerIds=this.layers.filter((F=>F.isStateDependent())).map((F=>F.id))}populate(A,F,W){this.features=[],this.hasPattern=st("fill-extrusion",this.layers,F);for(let{feature:te,id:fe,index:pe,sourceLayerIndex:Re}of A){let Ke=this.layers[0]._featureFilter.needGeometry,ft=Ml(te,Ke);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),ft,W))continue;let Rt={id:fe,sourceLayerIndex:Re,index:pe,geometry:Ke?ft.geometry:$s(te),properties:te.properties,type:te.type,patterns:{}};this.hasPattern?this.features.push(It("fill-extrusion",this.layers,Rt,this.zoom,F)):this.addFeature(Rt,Rt.geometry,pe,W,{}),F.featureIndex.insert(te,Rt.geometry,pe,Re,this.index,!0)}}addFeatures(A,F,W){for(let te of this.features){let{geometry:fe}=te;this.addFeature(te,fe,te.index,F,W)}}update(A,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(A,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(A){this.uploaded||(this.layoutVertexBuffer=A.createVertexBuffer(this.layoutVertexArray,lr),this.centroidVertexBuffer=A.createVertexBuffer(this.centroidVertexArray,vt.members,!0),this.indexBuffer=A.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(A),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(A,F,W,te,fe){for(let pe of Cf(F,500)){let Re={x:0,y:0,vertexCount:0},Ke=0;for(let kr of pe)Ke+=kr.length;let ft=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let kr of pe){if(kr.length===0||ms(kr))continue;let Dr=0;for(let li=0;li=1){let vn=kr[li-1];if(!Yo(pi,vn)){ft.vertexLength+4>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ft=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let zi=pi.sub(vn)._perp()._unit(),ln=vn.dist(pi);Dr+ln>32768&&(Dr=0),ts(this.layoutVertexArray,pi.x,pi.y,zi.x,zi.y,0,0,Dr),ts(this.layoutVertexArray,pi.x,pi.y,zi.x,zi.y,0,1,Dr),Re.x+=2*pi.x,Re.y+=2*pi.y,Re.vertexCount+=2,Dr+=ln,ts(this.layoutVertexArray,vn.x,vn.y,zi.x,zi.y,0,0,Dr),ts(this.layoutVertexArray,vn.x,vn.y,zi.x,zi.y,0,1,Dr),Re.x+=2*vn.x,Re.y+=2*vn.y,Re.vertexCount+=2;let Tn=ft.vertexLength;this.indexArray.emplaceBack(Tn,Tn+2,Tn+1),this.indexArray.emplaceBack(Tn+1,Tn+2,Tn+3),ft.vertexLength+=4,ft.primitiveLength+=2}}}}if(ft.vertexLength+Ke>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ft=this.segments.prepareSegment(Ke,this.layoutVertexArray,this.indexArray)),Ja[A.type]!=="Polygon")continue;let Rt=[],er=[],ur=ft.vertexLength;for(let kr of pe)if(kr.length!==0){kr!==pe[0]&&er.push(Rt.length/2);for(let Dr=0;Drja)||R.y===A.y&&(R.y<0||R.y>ja)}function ms(R){return R.every((A=>A.x<0))||R.every((A=>A.x>ja))||R.every((A=>A.y<0))||R.every((A=>A.y>ja))}let ou;Fi("FillExtrusionBucket",so,{omit:["layers","features"]});var Cv={get paint(){return ou=ou||new ue({"fill-extrusion-opacity":new Va(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new oo(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Va(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Va(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Vc(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new oo(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new oo(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Va(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Lv extends B{constructor(A){super(A,Cv)}createBucket(A){return new so(A)}queryRadius(){return Vn(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(A,F,W,te,fe,pe,Re,Ke){let ft=Qi(A,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),pe.angle,Re),Rt=this.paint.get("fill-extrusion-height").evaluate(F,W),er=this.paint.get("fill-extrusion-base").evaluate(F,W),ur=(function(kr,Dr,li,pi){let vn=[];for(let zi of kr){let ln=[zi.x,zi.y,0,1];qn(ln,ln,Dr),vn.push(new u(ln[0]/ln[3],ln[1]/ln[3]))}return vn})(ft,Ke),vr=(function(kr,Dr,li,pi){let vn=[],zi=[],ln=pi[8]*Dr,Tn=pi[9]*Dr,pa=pi[10]*Dr,ro=pi[11]*Dr,Vo=pi[8]*li,Xa=pi[9]*li,la=pi[10]*li,Mo=pi[11]*li;for(let fo of kr){let lo=[],Wn=[];for(let Ro of fo){let uo=Ro.x,$o=Ro.y,Ju=pi[0]*uo+pi[4]*$o+pi[12],Ou=pi[1]*uo+pi[5]*$o+pi[13],kh=pi[2]*uo+pi[6]*$o+pi[14],Qv=pi[3]*uo+pi[7]*$o+pi[15],ud=kh+pa,Ch=Qv+ro,Gd=Ju+Vo,Hd=Ou+Xa,jd=kh+la,Af=Qv+Mo,Lh=new u((Ju+ln)/Ch,(Ou+Tn)/Ch);Lh.z=ud/Ch,lo.push(Lh);let Ed=new u(Gd/Af,Hd/Af);Ed.z=jd/Af,Wn.push(Ed)}vn.push(lo),zi.push(Wn)}return[vn,zi]})(te,er,Rt,Ke);return(function(kr,Dr,li){let pi=1/0;bt(li,Dr)&&(pi=Kv(li,Dr[0]));for(let vn=0;vnF.id)),this.index=A.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((F=>{this.gradients[F.id]={}})),this.layoutVertexArray=new Lu,this.layoutVertexArray2=new au,this.indexArray=new se,this.programConfigurations=new Ms(A.layers,A.zoom),this.segments=new Ye,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((F=>F.isStateDependent())).map((F=>F.id))}populate(A,F,W){this.hasPattern=st("line",this.layers,F);let te=this.layers[0].layout.get("line-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:Re,id:Ke,index:ft,sourceLayerIndex:Rt}of A){let er=this.layers[0]._featureFilter.needGeometry,ur=Ml(Re,er);if(!this.layers[0]._featureFilter.filter(new rs(this.zoom),ur,W))continue;let vr=fe?te.evaluate(ur,{},W):void 0,kr={id:Ke,properties:Re.properties,type:Re.type,sourceLayerIndex:Rt,index:ft,geometry:er?ur.geometry:$s(Re),patterns:{},sortKey:vr};pe.push(kr)}fe&&pe.sort(((Re,Ke)=>Re.sortKey-Ke.sortKey));for(let Re of pe){let{geometry:Ke,index:ft,sourceLayerIndex:Rt}=Re;if(this.hasPattern){let er=It("line",this.layers,Re,this.zoom,F);this.patternFeatures.push(er)}else this.addFeature(Re,Ke,ft,W,{});F.featureIndex.insert(A[ft].feature,Ke,ft,Rt,this.index)}}update(A,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(A,F,this.stateDependentLayers,W)}addFeatures(A,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(A){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=A.createVertexBuffer(this.layoutVertexArray2,mp)),this.layoutVertexBuffer=A.createVertexBuffer(this.layoutVertexArray,gp),this.indexBuffer=A.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(A),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(A){if(A.properties&&Object.prototype.hasOwnProperty.call(A.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(A.properties,"mapbox_clip_end"))return{start:+A.properties.mapbox_clip_start,end:+A.properties.mapbox_clip_end}}addFeature(A,F,W,te,fe){let pe=this.layers[0].layout,Re=pe.get("line-join").evaluate(A,{}),Ke=pe.get("line-cap"),ft=pe.get("line-miter-limit"),Rt=pe.get("line-round-limit");this.lineClips=this.lineFeatureClips(A);for(let er of F)this.addLine(er,A,Re,Ke,ft,Rt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,A,W,fe,te)}addLine(A,F,W,te,fe,pe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let pi=0;pi=2&&A[Ke-1].equals(A[Ke-2]);)Ke--;let ft=0;for(;ft0;if(ro&&pi>ft){let Mo=ur.dist(vr);if(Mo>2*Rt){let fo=ur.sub(ur.sub(vr)._mult(Rt/Mo)._round());this.updateDistance(vr,fo),this.addCurrentVertex(fo,Dr,0,0,er),vr=fo}}let Xa=vr&&kr,la=Xa?W:Re?"butt":te;if(Xa&&la==="round"&&(Tnfe&&(la="bevel"),la==="bevel"&&(Tn>2&&(la="flipbevel"),Tn100)vn=li.mult(-1);else{let Mo=Tn*Dr.add(li).mag()/Dr.sub(li).mag();vn._perp()._mult(Mo*(Vo?-1:1))}this.addCurrentVertex(ur,vn,0,0,er),this.addCurrentVertex(ur,vn.mult(-1),0,0,er)}else if(la==="bevel"||la==="fakeround"){let Mo=-Math.sqrt(Tn*Tn-1),fo=Vo?Mo:0,lo=Vo?0:Mo;if(vr&&this.addCurrentVertex(ur,Dr,fo,lo,er),la==="fakeround"){let Wn=Math.round(180*pa/Math.PI/20);for(let Ro=1;Ro2*Rt){let fo=ur.add(kr.sub(ur)._mult(Rt/Mo)._round());this.updateDistance(ur,fo),this.addCurrentVertex(fo,li,0,0,er),ur=fo}}}}addCurrentVertex(A,F,W,te,fe,pe=!1){let Re=F.y*te-F.x,Ke=-F.y-F.x*te;this.addHalfVertex(A,F.x+F.y*W,F.y-F.x*W,pe,!1,W,fe),this.addHalfVertex(A,Re,Ke,pe,!0,-te,fe),this.distance>Pv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(A,F,W,te,fe,pe))}addHalfVertex({x:A,y:F},W,te,fe,pe,Re,Ke){let ft=.5*(this.lineClips?this.scaledDistance*(Pv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((A<<1)+(fe?1:0),(F<<1)+(pe?1:0),Math.round(63*W)+128,Math.round(63*te)+128,1+(Re===0?0:Re<0?-1:1)|(63&ft)<<2,ft>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Rt=Ke.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Rt),Ke.primitiveLength++),pe?this.e2=Rt:this.e1=Rt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(A,F){this.distance+=A.dist(F),this.updateScaledDistance()}}let Iv,dy;Fi("LineBucket",Jv,{omit:["layers","patternFeatures"]});var dg={get paint(){return dy=dy||new ue({"line-opacity":new oo(ce.paint_line["line-opacity"]),"line-color":new oo(ce.paint_line["line-color"]),"line-translate":new Va(ce.paint_line["line-translate"]),"line-translate-anchor":new Va(ce.paint_line["line-translate-anchor"]),"line-width":new oo(ce.paint_line["line-width"]),"line-gap-width":new oo(ce.paint_line["line-gap-width"]),"line-offset":new oo(ce.paint_line["line-offset"]),"line-blur":new oo(ce.paint_line["line-blur"]),"line-dasharray":new hc(ce.paint_line["line-dasharray"]),"line-pattern":new Vc(ce.paint_line["line-pattern"]),"line-gradient":new Ku(ce.paint_line["line-gradient"])})},get layout(){return Iv=Iv||new ue({"line-cap":new Va(ce.layout_line["line-cap"]),"line-join":new oo(ce.layout_line["line-join"]),"line-miter-limit":new Va(ce.layout_line["line-miter-limit"]),"line-round-limit":new Va(ce.layout_line["line-round-limit"]),"line-sort-key":new oo(ce.layout_line["line-sort-key"])})}};class oh extends oo{possiblyEvaluate(A,F){return F=new rs(Math.floor(F.zoom),{now:F.now,fadeDuration:F.fadeDuration,zoomHistory:F.zoomHistory,transition:F.transition}),super.possiblyEvaluate(A,F)}evaluate(A,F,W,te){return F=L({},F,{zoom:Math.floor(F.zoom)}),super.evaluate(A,F,W,te)}}let vg;class vy extends B{constructor(A){super(A,dg),this.gradientVersion=0,vg||(vg=new oh(dg.paint.properties["line-width"].specification),vg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(A){if(A==="line-gradient"){let F=this.gradientExpression();this.stepInterpolant=!!(function(W){return W._styleExpression!==void 0})(F)&&F._styleExpression.expression instanceof _n,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(A,F){super.recalculate(A,F),this.paint._values["line-floorwidth"]=vg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,A)}createBucket(A){return new Jv(A)}queryRadius(A){let F=A,W=Zh(Si("line-width",this,F),Si("line-gap-width",this,F)),te=Si("line-offset",this,F);return W/2+Math.abs(te)+Vn(this.paint.get("line-translate"))}queryIntersectsFeature(A,F,W,te,fe,pe,Re){let Ke=Qi(A,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),pe.angle,Re),ft=Re/2*Zh(this.paint.get("line-width").evaluate(F,W),this.paint.get("line-gap-width").evaluate(F,W)),Rt=this.paint.get("line-offset").evaluate(F,W);return Rt&&(te=(function(er,ur){let vr=[];for(let kr=0;kr=3){for(let li=0;li0?A+2*R:R}let am=Fe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),C1=Fe([{name:"a_projected_pos",components:3,type:"Float32"}],4);Fe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let L1=Fe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Fe([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let py=Fe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),om=Fe([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function sm(R,A,F){return R.sections.forEach((W=>{W.text=(function(te,fe,pe){let Re=fe.layout.get("text-transform").evaluate(pe,{});return Re==="uppercase"?te=te.toLocaleUpperCase():Re==="lowercase"&&(te=te.toLocaleLowerCase()),ys.applyArabicShaping&&(te=ys.applyArabicShaping(te)),te})(W.text,A,F)})),R}Fe([{name:"triangle",components:3,type:"Uint16"}]),Fe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Fe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Fe([{type:"Float32",name:"offsetX"}]),Fe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Fe([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let vc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var tu=24,Sd=wu,gy=function(R,A,F,W,te){var fe,pe,Re=8*te-W-1,Ke=(1<>1,Rt=-7,er=F?te-1:0,ur=F?-1:1,vr=R[A+er];for(er+=ur,fe=vr&(1<<-Rt)-1,vr>>=-Rt,Rt+=Re;Rt>0;fe=256*fe+R[A+er],er+=ur,Rt-=8);for(pe=fe&(1<<-Rt)-1,fe>>=-Rt,Rt+=W;Rt>0;pe=256*pe+R[A+er],er+=ur,Rt-=8);if(fe===0)fe=1-ft;else{if(fe===Ke)return pe?NaN:1/0*(vr?-1:1);pe+=Math.pow(2,W),fe-=ft}return(vr?-1:1)*pe*Math.pow(2,fe-W)},P1=function(R,A,F,W,te,fe){var pe,Re,Ke,ft=8*fe-te-1,Rt=(1<>1,ur=te===23?Math.pow(2,-24)-Math.pow(2,-77):0,vr=W?0:fe-1,kr=W?1:-1,Dr=A<0||A===0&&1/A<0?1:0;for(A=Math.abs(A),isNaN(A)||A===1/0?(Re=isNaN(A)?1:0,pe=Rt):(pe=Math.floor(Math.log(A)/Math.LN2),A*(Ke=Math.pow(2,-pe))<1&&(pe--,Ke*=2),(A+=pe+er>=1?ur/Ke:ur*Math.pow(2,1-er))*Ke>=2&&(pe++,Ke/=2),pe+er>=Rt?(Re=0,pe=Rt):pe+er>=1?(Re=(A*Ke-1)*Math.pow(2,te),pe+=er):(Re=A*Math.pow(2,er-1)*Math.pow(2,te),pe=0));te>=8;R[F+vr]=255&Re,vr+=kr,Re/=256,te-=8);for(pe=pe<0;R[F+vr]=255&pe,vr+=kr,pe/=256,ft-=8);R[F+vr-kr]|=128*Dr};function wu(R){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(R)?R:new Uint8Array(R||0),this.pos=0,this.type=0,this.length=this.buf.length}wu.Varint=0,wu.Fixed64=1,wu.Bytes=2,wu.Fixed32=5;var Kx=4294967296,lm=1/Kx,Uw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Rv(R){return R.type===wu.Bytes?R.readVarint()+R.pos:R.pos+1}function um(R,A,F){return F?4294967296*A+(R>>>0):4294967296*(A>>>0)+(R>>>0)}function Vw(R,A,F){var W=A<=16383?1:A<=2097151?2:A<=268435455?3:Math.floor(Math.log(A)/(7*Math.LN2));F.realloc(W);for(var te=F.pos-1;te>=R;te--)F.buf[te+W]=F.buf[te]}function Jx(R,A){for(var F=0;F>>8,R[F+2]=A>>>16,R[F+3]=A>>>24}function kC(R,A){return(R[A]|R[A+1]<<8|R[A+2]<<16)+(R[A+3]<<24)}wu.prototype={destroy:function(){this.buf=null},readFields:function(R,A,F){for(F=F||this.length;this.pos>3,fe=this.pos;this.type=7&W,R(te,A,this),this.pos===fe&&this.skip(W)}return A},readMessage:function(R,A){return this.readFields(R,A,this.readVarint()+this.pos)},readFixed32:function(){var R=my(this.buf,this.pos);return this.pos+=4,R},readSFixed32:function(){var R=kC(this.buf,this.pos);return this.pos+=4,R},readFixed64:function(){var R=my(this.buf,this.pos)+my(this.buf,this.pos+4)*Kx;return this.pos+=8,R},readSFixed64:function(){var R=my(this.buf,this.pos)+kC(this.buf,this.pos+4)*Kx;return this.pos+=8,R},readFloat:function(){var R=gy(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=gy(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var A,F,W=this.buf;return A=127&(F=W[this.pos++]),F<128?A:(A|=(127&(F=W[this.pos++]))<<7,F<128?A:(A|=(127&(F=W[this.pos++]))<<14,F<128?A:(A|=(127&(F=W[this.pos++]))<<21,F<128?A:(function(te,fe,pe){var Re,Ke,ft=pe.buf;if(Re=(112&(Ke=ft[pe.pos++]))>>4,Ke<128||(Re|=(127&(Ke=ft[pe.pos++]))<<3,Ke<128)||(Re|=(127&(Ke=ft[pe.pos++]))<<10,Ke<128)||(Re|=(127&(Ke=ft[pe.pos++]))<<17,Ke<128)||(Re|=(127&(Ke=ft[pe.pos++]))<<24,Ke<128)||(Re|=(1&(Ke=ft[pe.pos++]))<<31,Ke<128))return um(te,Re,fe);throw new Error("Expected varint not more than 10 bytes")})(A|=(15&(F=W[this.pos]))<<28,R,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var R=this.readVarint();return R%2==1?(R+1)/-2:R/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var R=this.readVarint()+this.pos,A=this.pos;return this.pos=R,R-A>=12&&Uw?(function(F,W,te){return Uw.decode(F.subarray(W,te))})(this.buf,A,R):(function(F,W,te){for(var fe="",pe=W;pe239?4:Rt>223?3:Rt>191?2:1;if(pe+ur>te)break;ur===1?Rt<128&&(er=Rt):ur===2?(192&(Re=F[pe+1]))==128&&(er=(31&Rt)<<6|63&Re)<=127&&(er=null):ur===3?(Ke=F[pe+2],(192&(Re=F[pe+1]))==128&&(192&Ke)==128&&((er=(15&Rt)<<12|(63&Re)<<6|63&Ke)<=2047||er>=55296&&er<=57343)&&(er=null)):ur===4&&(Ke=F[pe+2],ft=F[pe+3],(192&(Re=F[pe+1]))==128&&(192&Ke)==128&&(192&ft)==128&&((er=(15&Rt)<<18|(63&Re)<<12|(63&Ke)<<6|63&ft)<=65535||er>=1114112)&&(er=null)),er===null?(er=65533,ur=1):er>65535&&(er-=65536,fe+=String.fromCharCode(er>>>10&1023|55296),er=56320|1023&er),fe+=String.fromCharCode(er),pe+=ur}return fe})(this.buf,A,R)},readBytes:function(){var R=this.readVarint()+this.pos,A=this.buf.subarray(this.pos,R);return this.pos=R,A},readPackedVarint:function(R,A){if(this.type!==wu.Bytes)return R.push(this.readVarint(A));var F=Rv(this);for(R=R||[];this.pos127;);else if(A===wu.Bytes)this.pos=this.readVarint()+this.pos;else if(A===wu.Fixed32)this.pos+=4;else{if(A!==wu.Fixed64)throw new Error("Unimplemented type: "+A);this.pos+=8}},writeTag:function(R,A){this.writeVarint(R<<3|A)},realloc:function(R){for(var A=this.length||16;A268435455||R<0?(function(A,F){var W,te;if(A>=0?(W=A%4294967296|0,te=A/4294967296|0):(te=~(-A/4294967296),4294967295^(W=~(-A%4294967296))?W=W+1|0:(W=0,te=te+1|0)),A>=18446744073709552e3||A<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),(function(fe,pe,Re){Re.buf[Re.pos++]=127&fe|128,fe>>>=7,Re.buf[Re.pos++]=127&fe|128,fe>>>=7,Re.buf[Re.pos++]=127&fe|128,fe>>>=7,Re.buf[Re.pos++]=127&fe|128,Re.buf[Re.pos]=127&(fe>>>=7)})(W,0,F),(function(fe,pe){var Re=(7&fe)<<4;pe.buf[pe.pos++]|=Re|((fe>>>=3)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe)))))})(te,F)})(R,this):(this.realloc(4),this.buf[this.pos++]=127&R|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=R>>>7&127))))},writeSVarint:function(R){this.writeVarint(R<0?2*-R-1:2*R)},writeBoolean:function(R){this.writeVarint(!!R)},writeString:function(R){R=String(R),this.realloc(4*R.length),this.pos++;var A=this.pos;this.pos=(function(W,te,fe){for(var pe,Re,Ke=0;Ke55295&&pe<57344){if(!Re){pe>56319||Ke+1===te.length?(W[fe++]=239,W[fe++]=191,W[fe++]=189):Re=pe;continue}if(pe<56320){W[fe++]=239,W[fe++]=191,W[fe++]=189,Re=pe;continue}pe=Re-55296<<10|pe-56320|65536,Re=null}else Re&&(W[fe++]=239,W[fe++]=191,W[fe++]=189,Re=null);pe<128?W[fe++]=pe:(pe<2048?W[fe++]=pe>>6|192:(pe<65536?W[fe++]=pe>>12|224:(W[fe++]=pe>>18|240,W[fe++]=pe>>12&63|128),W[fe++]=pe>>6&63|128),W[fe++]=63&pe|128)}return fe})(this.buf,R,this.pos);var F=this.pos-A;F>=128&&Vw(A,F,this),this.pos=A-1,this.writeVarint(F),this.pos+=F},writeFloat:function(R){this.realloc(4),P1(this.buf,R,this.pos,!0,23,4),this.pos+=4},writeDouble:function(R){this.realloc(8),P1(this.buf,R,this.pos,!0,52,8),this.pos+=8},writeBytes:function(R){var A=R.length;this.writeVarint(A),this.realloc(A);for(var F=0;F=128&&Vw(F,W,this),this.pos=F-1,this.writeVarint(W),this.pos+=W},writeMessage:function(R,A,F){this.writeTag(R,wu.Bytes),this.writeRawMessage(A,F)},writePackedVarint:function(R,A){A.length&&this.writeMessage(R,Jx,A)},writePackedSVarint:function(R,A){A.length&&this.writeMessage(R,W9,A)},writePackedBoolean:function(R,A){A.length&&this.writeMessage(R,Y9,A)},writePackedFloat:function(R,A){A.length&&this.writeMessage(R,X9,A)},writePackedDouble:function(R,A){A.length&&this.writeMessage(R,Z9,A)},writePackedFixed32:function(R,A){A.length&&this.writeMessage(R,UQ,A)},writePackedSFixed32:function(R,A){A.length&&this.writeMessage(R,K9,A)},writePackedFixed64:function(R,A){A.length&&this.writeMessage(R,J9,A)},writePackedSFixed64:function(R,A){A.length&&this.writeMessage(R,$9,A)},writeBytesField:function(R,A){this.writeTag(R,wu.Bytes),this.writeBytes(A)},writeFixed32Field:function(R,A){this.writeTag(R,wu.Fixed32),this.writeFixed32(A)},writeSFixed32Field:function(R,A){this.writeTag(R,wu.Fixed32),this.writeSFixed32(A)},writeFixed64Field:function(R,A){this.writeTag(R,wu.Fixed64),this.writeFixed64(A)},writeSFixed64Field:function(R,A){this.writeTag(R,wu.Fixed64),this.writeSFixed64(A)},writeVarintField:function(R,A){this.writeTag(R,wu.Varint),this.writeVarint(A)},writeSVarintField:function(R,A){this.writeTag(R,wu.Varint),this.writeSVarint(A)},writeStringField:function(R,A){this.writeTag(R,wu.Bytes),this.writeString(A)},writeFloatField:function(R,A){this.writeTag(R,wu.Fixed32),this.writeFloat(A)},writeDoubleField:function(R,A){this.writeTag(R,wu.Fixed64),this.writeDouble(A)},writeBooleanField:function(R,A){this.writeVarintField(R,!!A)}};var fS=o(Sd);let hS=3;function VQ(R,A,F){R===1&&F.readMessage(Q9,A)}function Q9(R,A,F){if(R===3){let{id:W,bitmap:te,width:fe,height:pe,left:Re,top:Ke,advance:ft}=F.readMessage(CC,{});A.push({id:W,bitmap:new aa({width:fe+2*hS,height:pe+2*hS},te),metrics:{width:fe,height:pe,left:Re,top:Ke,advance:ft}})}}function CC(R,A,F){R===1?A.id=F.readVarint():R===2?A.bitmap=F.readBytes():R===3?A.width=F.readVarint():R===4?A.height=F.readVarint():R===5?A.left=F.readSVarint():R===6?A.top=F.readSVarint():R===7&&(A.advance=F.readVarint())}let LC=hS;function dS(R){let A=0,F=0;for(let pe of R)A+=pe.w*pe.h,F=Math.max(F,pe.w);R.sort(((pe,Re)=>Re.h-pe.h));let W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(A/.95)),F),h:1/0}],te=0,fe=0;for(let pe of R)for(let Re=W.length-1;Re>=0;Re--){let Ke=W[Re];if(!(pe.w>Ke.w||pe.h>Ke.h)){if(pe.x=Ke.x,pe.y=Ke.y,fe=Math.max(fe,pe.y+pe.h),te=Math.max(te,pe.x+pe.w),pe.w===Ke.w&&pe.h===Ke.h){let ft=W.pop();Re=0&&W>=A&&jw[this.text.charCodeAt(W)];W--)F--;this.text=this.text.substring(A,F),this.sectionIndex=this.sectionIndex.slice(A,F)}substring(A,F){let W=new I1;return W.text=this.text.substring(A,F),W.sectionIndex=this.sectionIndex.slice(A,F),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((A,F)=>Math.max(A,this.sections[F].scale)),0)}addTextSection(A,F){this.text+=A.text,this.sections.push(Qx.forText(A.scale,A.fontStack||F));let W=this.sections.length-1;for(let te=0;te=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function eb(R,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr){let Dr=I1.fromFeature(R,te),li;er===i.ah.vertical&&Dr.verticalizePunctuation();let{processBidirectionalText:pi,processStyledBidirectionalText:vn}=ys;if(pi&&Dr.sections.length===1){li=[];let Tn=pi(Dr.toString(),R1(Dr,ft,fe,A,W,vr));for(let pa of Tn){let ro=new I1;ro.text=pa,ro.sections=Dr.sections;for(let Vo=0;Vo0&&tp>Df&&(Df=tp)}else{let Gc=ro[ru.fontStack],Yf=Gc&&Gc[$u];if(Yf&&Yf.rect)B1=Yf.rect,hf=Yf.metrics;else{let tp=pa[ru.fontStack],yg=tp&&tp[$u];if(!yg)continue;hf=yg.metrics}zv=(Lh-ru.scale)*tu}ep?(Tn.verticalizable=!0,Yh.push({glyph:$u,imageName:p0,x:$o,y:Ju+zv,vertical:ep,scale:ru.scale,fontStack:ru.fontStack,sectionIndex:pc,metrics:hf,rect:B1}),$o+=Gp*ru.scale+Wn):(Yh.push({glyph:$u,imageName:p0,x:$o,y:Ju+zv,vertical:ep,scale:ru.scale,fontStack:ru.fontStack,sectionIndex:pc,metrics:hf,rect:B1}),$o+=hf.advance*ru.scale+Wn)}Yh.length!==0&&(Ou=Math.max($o-Wn,Ou),cm(Yh,0,Yh.length-1,Qv,Df)),$o=0;let Fv=la*Lh+Df;cd.lineOffset=Math.max(Df,Ed),Ju+=Fv,kh=Math.max(Fv,kh),++ud}var Ch;let Gd=Ju-Eh,{horizontalAlign:Hd,verticalAlign:jd}=Xw(Mo);(function(Af,Lh,Ed,cd,Yh,Df,Fv,uv,ru){let pc=(Lh-Ed)*Yh,$u=0;$u=Df!==Fv?-uv*cd-Eh:(-cd*ru+.5)*Fv;for(let zv of Af)for(let hf of zv.positionedGlyphs)hf.x+=pc,hf.y+=$u})(Tn.positionedLines,Qv,Hd,jd,Ou,kh,la,Gd,Xa.length),Tn.top+=-jd*Gd,Tn.bottom=Tn.top+Gd,Tn.left+=-Hd*Ou,Tn.right=Tn.left+Ou})(ln,A,F,W,li,pe,Re,Ke,er,ft,ur,kr),!(function(Tn){for(let pa of Tn)if(pa.positionedGlyphs.length!==0)return!1;return!0})(zi)&&ln}let jw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},eq={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},tq={40:!0};function PC(R,A,F,W,te,fe){if(A.imageName){let pe=W[A.imageName];return pe?pe.displaySize[0]*A.scale*tu/fe+te:0}{let pe=F[A.fontStack],Re=pe&&pe[R];return Re?Re.metrics.advance*A.scale+te:0}}function IC(R,A,F,W){let te=Math.pow(R-A,2);return W?R=0,ft=0;for(let er=0;erft){let Rt=Math.ceil(fe/ft);te*=Rt/pe,pe=Rt}return{x1:W,y1:te,x2:W+fe,y2:te+pe}}function FC(R,A,F,W,te,fe){let pe=R.image,Re;if(pe.content){let li=pe.content,pi=pe.pixelRatio||1;Re=[li[0]/pi,li[1]/pi,pe.displaySize[0]-li[2]/pi,pe.displaySize[1]-li[3]/pi]}let Ke=A.left*fe,ft=A.right*fe,Rt,er,ur,vr;F==="width"||F==="both"?(vr=te[0]+Ke-W[3],er=te[0]+ft+W[1]):(vr=te[0]+(Ke+ft-pe.displaySize[0])/2,er=vr+pe.displaySize[0]);let kr=A.top*fe,Dr=A.bottom*fe;return F==="height"||F==="both"?(Rt=te[1]+kr-W[0],ur=te[1]+Dr+W[2]):(Rt=te[1]+(kr+Dr-pe.displaySize[1])/2,ur=Rt+pe.displaySize[1]),{image:pe,top:Rt,right:er,bottom:ur,left:vr,collisionPadding:Re}}let rb=255,v0=128,fm=rb*v0;function zC(R,A){let{expression:F}=A;if(F.kind==="constant")return{kind:"constant",layoutSize:F.evaluate(new rs(R+1))};if(F.kind==="source")return{kind:"source"};{let{zoomStops:W,interpolationType:te}=F,fe=0;for(;fepe.id)),this.index=A.index,this.pixelRatio=A.pixelRatio,this.sourceLayerIndex=A.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ii([]),this.placementViewportMatrix=Ii([]);let F=this.layers[0]._unevaluatedLayout._values;this.textSizeData=zC(this.zoom,F["text-size"]),this.iconSizeData=zC(this.zoom,F["icon-size"]);let W=this.layers[0].layout,te=W.get("symbol-sort-key"),fe=W.get("symbol-z-order");this.canOverlap=vS(W,"text-overlap","text-allow-overlap")!=="never"||vS(W,"icon-overlap","icon-allow-overlap")!=="never"||W.get("text-ignore-placement")||W.get("icon-ignore-placement"),this.sortFeaturesByKey=fe!=="viewport-y"&&!te.isConstant(),this.sortFeaturesByY=(fe==="viewport-y"||fe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,W.get("symbol-placement")==="point"&&(this.writingModes=W.get("text-writing-mode").map((pe=>i.ah[pe]))),this.stateDependentLayerIds=this.layers.filter((pe=>pe.isStateDependent())).map((pe=>pe.id)),this.sourceID=A.sourceID}createArrays(){this.text=new mS(new Ms(this.layers,this.zoom,(A=>/^text/.test(A)))),this.icon=new mS(new Ms(this.layers,this.zoom,(A=>/^icon/.test(A)))),this.glyphOffsetArray=new Co,this.lineVertexArray=new Qa,this.symbolInstances=new $a,this.textAnchorOffsets=new Bo}calculateGlyphDependencies(A,F,W,te,fe){for(let pe=0;pe0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),Rt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,er=fe.get("symbol-sort-key");if(this.features=[],!ft&&!Rt)return;let ur=F.iconDependencies,vr=F.glyphDependencies,kr=F.availableImages,Dr=new rs(this.zoom);for(let{feature:li,id:pi,index:vn,sourceLayerIndex:zi}of A){let ln=te._featureFilter.needGeometry,Tn=Ml(li,ln);if(!te._featureFilter.filter(Dr,Tn,W))continue;let pa,ro;if(ln||(Tn.geometry=$s(li)),ft){let Xa=te.getValueAndResolveTokens("text-field",Tn,W,kr),la=ti.factory(Xa),Mo=this.hasRTLText=this.hasRTLText||gS(la);(!Mo||ys.getRTLTextPluginStatus()==="unavailable"||Mo&&ys.isParsed())&&(pa=sm(la,te,Tn))}if(Rt){let Xa=te.getValueAndResolveTokens("icon-image",Tn,W,kr);ro=Xa instanceof en?Xa:en.fromString(Xa)}if(!pa&&!ro)continue;let Vo=this.sortFeaturesByKey?er.evaluate(Tn,{},W):void 0;if(this.features.push({id:pi,text:pa,icon:ro,index:vn,sourceLayerIndex:zi,geometry:Tn.geometry,properties:li.properties,type:iq[li.type],sortKey:Vo}),ro&&(ur[ro.name]=!0),pa){let Xa=pe.evaluate(Tn,{},W).join(","),la=fe.get("text-rotation-alignment")!=="viewport"&&fe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Mo of pa.sections)if(Mo.image)ur[Mo.image.name]=!0;else{let fo=Ka(pa.toString()),lo=Mo.fontStack||Xa,Wn=vr[lo]=vr[lo]||{};this.calculateGlyphDependencies(Mo.text,Wn,la,this.allowVerticalPlacement,fo)}}}fe.get("symbol-placement")==="line"&&(this.features=(function(li){let pi={},vn={},zi=[],ln=0;function Tn(Xa){zi.push(li[Xa]),ln++}function pa(Xa,la,Mo){let fo=vn[Xa];return delete vn[Xa],vn[la]=fo,zi[fo].geometry[0].pop(),zi[fo].geometry[0]=zi[fo].geometry[0].concat(Mo[0]),fo}function ro(Xa,la,Mo){let fo=pi[la];return delete pi[la],pi[Xa]=fo,zi[fo].geometry[0].shift(),zi[fo].geometry[0]=Mo[0].concat(zi[fo].geometry[0]),fo}function Vo(Xa,la,Mo){let fo=Mo?la[0][la[0].length-1]:la[0][0];return`${Xa}:${fo.x}:${fo.y}`}for(let Xa=0;XaXa.geometry))})(this.features)),this.sortFeaturesByKey&&this.features.sort(((li,pi)=>li.sortKey-pi.sortKey))}update(A,F,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(A,F,this.layers,W),this.icon.programConfigurations.updatePaintArrays(A,F,this.layers,W))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(A){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(A),this.iconCollisionBox.upload(A)),this.text.upload(A,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(A,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(A,F){let W=this.lineVertexArray.length;if(A.segment!==void 0){let te=A.dist(F[A.segment+1]),fe=A.dist(F[A.segment]),pe={};for(let Re=A.segment+1;Re=0;Re--)pe[Re]={x:F[Re].x,y:F[Re].y,tileUnitDistanceFromAnchor:fe},Re>0&&(fe+=F[Re-1].dist(F[Re]));for(let Re=0;Re0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(A,F){let W=A.placedSymbolArray.get(F),te=W.vertexStartIndex+4*W.numGlyphs;for(let fe=W.vertexStartIndex;fete[Re]-te[Ke]||fe[Ke]-fe[Re])),pe}addToSortKeyRanges(A,F){let W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===F?W.symbolInstanceEnd=A+1:this.sortKeyRanges.push({sortKey:F,symbolInstanceStart:A,symbolInstanceEnd:A+1})}sortFeatures(A){if(this.sortFeaturesByY&&this.sortedAngle!==A&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(A),this.sortedAngle=A,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let F of this.symbolInstanceIndexes){let W=this.symbolInstances.get(F);this.featureSortOrder.push(W.featureIndex),[W.rightJustifiedTextSymbolIndex,W.centerJustifiedTextSymbolIndex,W.leftJustifiedTextSymbolIndex].forEach(((te,fe,pe)=>{te>=0&&pe.indexOf(te)===fe&&this.addIndicesForPlacedSymbol(this.text,te)})),W.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,W.verticalPlacedTextSymbolIndex),W.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.placedIconSymbolIndex),W.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Tf,ib;Fi("SymbolBucket",D1,{omit:["layers","collisionBoxArray","features","compareText"]}),D1.MAX_GLYPHS=65535,D1.addDynamicAttributes=pS;var Yw={get paint(){return ib=ib||new ue({"icon-opacity":new oo(ce.paint_symbol["icon-opacity"]),"icon-color":new oo(ce.paint_symbol["icon-color"]),"icon-halo-color":new oo(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new oo(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new oo(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new Va(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Va(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new oo(ce.paint_symbol["text-opacity"]),"text-color":new oo(ce.paint_symbol["text-color"],{runtimeType:jt,getOverride:R=>R.textColor,hasOverride:R=>!!R.textColor}),"text-halo-color":new oo(ce.paint_symbol["text-halo-color"]),"text-halo-width":new oo(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new oo(ce.paint_symbol["text-halo-blur"]),"text-translate":new Va(ce.paint_symbol["text-translate"]),"text-translate-anchor":new Va(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Tf=Tf||new ue({"symbol-placement":new Va(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Va(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Va(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new oo(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Va(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Va(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Va(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Va(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Va(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Va(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new oo(ce.layout_symbol["icon-size"]),"icon-text-fit":new Va(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Va(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new oo(ce.layout_symbol["icon-image"]),"icon-rotate":new oo(ce.layout_symbol["icon-rotate"]),"icon-padding":new oo(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new Va(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new oo(ce.layout_symbol["icon-offset"]),"icon-anchor":new oo(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Va(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Va(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Va(ce.layout_symbol["text-rotation-alignment"]),"text-field":new oo(ce.layout_symbol["text-field"]),"text-font":new oo(ce.layout_symbol["text-font"]),"text-size":new oo(ce.layout_symbol["text-size"]),"text-max-width":new oo(ce.layout_symbol["text-max-width"]),"text-line-height":new Va(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new oo(ce.layout_symbol["text-letter-spacing"]),"text-justify":new oo(ce.layout_symbol["text-justify"]),"text-radial-offset":new oo(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Va(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new oo(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new oo(ce.layout_symbol["text-anchor"]),"text-max-angle":new Va(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Va(ce.layout_symbol["text-writing-mode"]),"text-rotate":new oo(ce.layout_symbol["text-rotate"]),"text-padding":new Va(ce.layout_symbol["text-padding"]),"text-keep-upright":new Va(ce.layout_symbol["text-keep-upright"]),"text-transform":new oo(ce.layout_symbol["text-transform"]),"text-offset":new oo(ce.layout_symbol["text-offset"]),"text-allow-overlap":new Va(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new Va(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new Va(ce.layout_symbol["text-ignore-placement"]),"text-optional":new Va(ce.layout_symbol["text-optional"])})}};class nb{constructor(A){if(A.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=A.property.overrides?A.property.overrides.runtimeType:Tt,this.defaultValue=A}evaluate(A){if(A.formattedSection){let F=this.defaultValue.property.overrides;if(F&&F.hasOverride(A.formattedSection))return F.getOverride(A.formattedSection)}return A.feature&&A.featureState?this.defaultValue.evaluate(A.feature,A.featureState):this.defaultValue.property.specification.default}eachChild(A){this.defaultValue.isConstant()||A(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Fi("FormatSectionOverride",nb,{omit:["defaultValue"]});class yy extends B{constructor(A){super(A,Yw)}recalculate(A,F){if(super.recalculate(A,F),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let W=this.layout.get("text-writing-mode");if(W){let te=[];for(let fe of W)te.indexOf(fe)<0&&te.push(fe);this.layout._values["text-writing-mode"]=te}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(A,F,W,te){let fe=this.layout.get(A).evaluate(F,{},W,te),pe=this._unevaluatedLayout._values[A];return pe.isDataDriven()||Dc(pe.value)||!fe?fe:(function(Re,Ke){return Ke.replace(/{([^{}]+)}/g,((ft,Rt)=>Re&&Rt in Re?String(Re[Rt]):""))})(F.properties,fe)}createBucket(A){return new D1(A)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let A of Yw.paint.overridableProperties){if(!yy.hasPaintOverride(this.layout,A))continue;let F=this.paint.get(A),W=new nb(F),te=new Eu(W,F.property.specification),fe=null;fe=F.value.kind==="constant"||F.value.kind==="source"?new bc("source",te):new hu("composite",te,F.value.zoomStops),this.paint._values[A]=new xu(F.property,fe,F.parameters)}}_handleOverridablePaintPropertyUpdate(A,F,W){return!(!this.layout||F.isDataDriven()||W.isDataDriven())&&yy.hasPaintOverride(this.layout,A)}static hasPaintOverride(A,F){let W=A.get("text-field"),te=Yw.paint.properties[F],fe=!1,pe=Re=>{for(let Ke of Re)if(te.overrides&&te.overrides.hasOverride(Ke))return void(fe=!0)};if(W.value.kind==="constant"&&W.value.value instanceof ti)pe(W.value.value.sections);else if(W.value.kind==="source"){let Re=ft=>{fe||(ft instanceof ua&&Mn(ft.value)===ei?pe(ft.value.sections):ft instanceof Yl?pe(ft.sections):ft.eachChild(Re))},Ke=W.value;Ke._styleExpression&&Re(Ke._styleExpression.expression)}return fe}}let qC;var ab={get paint(){return qC=qC||new ue({"background-color":new Va(ce.paint_background["background-color"]),"background-pattern":new hc(ce.paint_background["background-pattern"]),"background-opacity":new Va(ce.paint_background["background-opacity"])})}};class aq extends B{constructor(A){super(A,ab)}}let yS;var OC={get paint(){return yS=yS||new ue({"raster-opacity":new Va(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Va(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Va(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Va(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Va(ce.paint_raster["raster-saturation"]),"raster-contrast":new Va(ce.paint_raster["raster-contrast"]),"raster-resampling":new Va(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Va(ce.paint_raster["raster-fade-duration"])})}};class ob extends B{constructor(A){super(A,OC)}}class _S extends B{constructor(A){super(A,{}),this.onAdd=F=>{this.implementation.onAdd&&this.implementation.onAdd(F,F.painter.context.gl)},this.onRemove=F=>{this.implementation.onRemove&&this.implementation.onRemove(F,F.painter.context.gl)},this.implementation=A}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class xS{constructor(A){this._methodToThrottle=A,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._methodToThrottle()}),0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let bS=63710088e-1;class pg{constructor(A,F){if(isNaN(A)||isNaN(F))throw new Error(`Invalid LngLat object: (${A}, ${F})`);if(this.lng=+A,this.lat=+F,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new pg(T(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(A){let F=Math.PI/180,W=this.lat*F,te=A.lat*F,fe=Math.sin(W)*Math.sin(te)+Math.cos(W)*Math.cos(te)*Math.cos((A.lng-this.lng)*F);return bS*Math.acos(Math.min(fe,1))}static convert(A){if(A instanceof pg)return A;if(Array.isArray(A)&&(A.length===2||A.length===3))return new pg(Number(A[0]),Number(A[1]));if(!Array.isArray(A)&&typeof A=="object"&&A!==null)return new pg(Number("lng"in A?A.lng:A.lon),Number(A.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let F1=2*Math.PI*bS;function BC(R){return F1*Math.cos(R*Math.PI/180)}function Kw(R){return(180+R)/360}function NC(R){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R*Math.PI/360)))/360}function Jw(R,A){return R/BC(A)}function sb(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class lb{constructor(A,F,W=0){this.x=+A,this.y=+F,this.z=+W}static fromLngLat(A,F=0){let W=pg.convert(A);return new lb(Kw(W.lng),NC(W.lat),Jw(F,W.lat))}toLngLat(){return new pg(360*this.x-180,sb(this.y))}toAltitude(){return this.z*BC(sb(this.y))}meterInMercatorCoordinateUnits(){return 1/F1*(A=sb(this.y),1/Math.cos(A*Math.PI/180));var A}}function yp(R,A,F){var W=2*Math.PI*6378137/256/Math.pow(2,F);return[R*W-2*Math.PI*6378137/2,A*W-2*Math.PI*6378137/2]}class wS{constructor(A,F,W){if(!(function(te,fe,pe){return!(te<0||te>25||pe<0||pe>=Math.pow(2,te)||fe<0||fe>=Math.pow(2,te))})(A,F,W))throw new Error(`x=${F}, y=${W}, z=${A} outside of bounds. 0<=x<${Math.pow(2,A)}, 0<=y<${Math.pow(2,A)} 0<=z<=25 `);this.z=A,this.x=F,this.y=W,this.key=ub(0,A,A,F,W)}equals(A){return this.z===A.z&&this.x===A.x&&this.y===A.y}url(A,F,W){let te=(pe=this.y,Re=this.z,Ke=yp(256*(fe=this.x),256*(pe=Math.pow(2,Re)-pe-1),Re),ft=yp(256*(fe+1),256*(pe+1),Re),Ke[0]+","+Ke[1]+","+ft[0]+","+ft[1]);var fe,pe,Re,Ke,ft;let Rt=(function(er,ur,vr){let kr,Dr="";for(let li=er;li>0;li--)kr=1<1?"@2x":"").replace(/{quadkey}/g,Rt).replace(/{bbox-epsg-3857}/g,te)}isChildOf(A){let F=this.z-A.z;return F>0&&A.x===this.x>>F&&A.y===this.y>>F}getTilePoint(A){let F=Math.pow(2,this.z);return new u((A.x*F-this.x)*ja,(A.y*F-this.y)*ja)}toString(){return`${this.z}/${this.x}/${this.y}`}}class UC{constructor(A,F){this.wrap=A,this.canonical=F,this.key=ub(A,F.z,F.z,F.x,F.y)}}class $v{constructor(A,F,W,te,fe){if(A= z; overscaledZ = ${A}; z = ${W}`);this.overscaledZ=A,this.wrap=F,this.canonical=new wS(W,+te,+fe),this.key=ub(F,A,W,te,fe)}clone(){return new $v(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(A){return this.overscaledZ===A.overscaledZ&&this.wrap===A.wrap&&this.canonical.equals(A.canonical)}scaledTo(A){if(A>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${A}; overscaledZ = ${this.overscaledZ}`);let F=this.canonical.z-A;return A>this.canonical.z?new $v(A,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new $v(A,this.wrap,A,this.canonical.x>>F,this.canonical.y>>F)}calculateScaledKey(A,F){if(A>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${A}; overscaledZ = ${this.overscaledZ}`);let W=this.canonical.z-A;return A>this.canonical.z?ub(this.wrap*+F,A,this.canonical.z,this.canonical.x,this.canonical.y):ub(this.wrap*+F,A,A,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(A){if(A.wrap!==this.wrap)return!1;let F=this.canonical.z-A.canonical.z;return A.overscaledZ===0||A.overscaledZ>F&&A.canonical.y===this.canonical.y>>F}children(A){if(this.overscaledZ>=A)return[new $v(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let F=this.canonical.z+1,W=2*this.canonical.x,te=2*this.canonical.y;return[new $v(F,this.wrap,F,W,te),new $v(F,this.wrap,F,W+1,te),new $v(F,this.wrap,F,W,te+1),new $v(F,this.wrap,F,W+1,te+1)]}isLessThan(A){return this.wrapA.wrap)&&(this.overscaledZA.overscaledZ)&&(this.canonical.xA.canonical.x)&&this.canonical.ythis.max&&(this.max=er),er=this.dim+1||F<-1||F>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(F+1)*this.stride+(A+1)}unpack(A,F,W){return A*this.redFactor+F*this.greenFactor+W*this.blueFactor-this.baseShift}getPixels(){return new Ki({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(A,F,W){if(this.dim!==A.dim)throw new Error("dem dimension mismatch");let te=F*this.dim,fe=F*this.dim+this.dim,pe=W*this.dim,Re=W*this.dim+this.dim;switch(F){case-1:te=fe-1;break;case 1:fe=te+1}switch(W){case-1:pe=Re-1;break;case 1:Re=pe+1}let Ke=-F*this.dim,ft=-W*this.dim;for(let Rt=pe;Rt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${A} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[A]}}class TS{constructor(A,F,W,te,fe){this.type="Feature",this._vectorTileFeature=A,A._z=F,A._x=W,A._y=te,this.properties=A.properties,this.id=fe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(A){this._geometry=A}toJSON(){let A={geometry:this.geometry};for(let F in this)F!=="_geometry"&&F!=="_vectorTileFeature"&&(A[F]=this[F]);return A}}class _y{constructor(A,F){this.tileID=A,this.x=A.canonical.x,this.y=A.canonical.y,this.z=A.canonical.z,this.grid=new $i(ja,16,0),this.grid3D=new $i(ja,16,0),this.featureIndexArray=new Ts,this.promoteId=F}insert(A,F,W,te,fe,pe){let Re=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,te,fe);let Ke=pe?this.grid3D:this.grid;for(let ft=0;ft=0&&er[3]>=0&&Ke.insert(Re,er[0],er[1],er[2],er[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new _r.VectorTile(new fS(this.rawTileData)).layers,this.sourceLayerCoder=new GC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(A,F,W,te){this.loadVTLayers();let fe=A.params||{},pe=ja/A.tileSize/A.scale,Re=Fc(fe.filter),Ke=A.queryGeometry,ft=A.queryPadding*pe,Rt=jC(Ke),er=this.grid.query(Rt.minX-ft,Rt.minY-ft,Rt.maxX+ft,Rt.maxY+ft),ur=jC(A.cameraQueryGeometry),vr=this.grid3D.query(ur.minX-ft,ur.minY-ft,ur.maxX+ft,ur.maxY+ft,((li,pi,vn,zi)=>(function(ln,Tn,pa,ro,Vo){for(let la of ln)if(Tn<=la.x&&pa<=la.y&&ro>=la.x&&Vo>=la.y)return!0;let Xa=[new u(Tn,pa),new u(Tn,Vo),new u(ro,Vo),new u(ro,pa)];if(ln.length>2){for(let la of Xa)if(Ni(ln,la))return!0}for(let la=0;la(zi||(zi=$s(ln)),Tn.queryIntersectsFeature(Ke,ln,pa,zi,this.z,A.transform,pe,A.pixelPosMatrix))))}return kr}loadMatchingFeature(A,F,W,te,fe,pe,Re,Ke,ft,Rt,er){let ur=this.bucketLayerIDs[F];if(pe&&!(function(li,pi){for(let vn=0;vn=0)return!0;return!1})(pe,ur))return;let vr=this.sourceLayerCoder.decode(W),kr=this.vtLayers[vr].feature(te);if(fe.needGeometry){let li=Ml(kr,!0);if(!fe.filter(new rs(this.tileID.overscaledZ),li,this.tileID.canonical))return}else if(!fe.filter(new rs(this.tileID.overscaledZ),kr))return;let Dr=this.getId(kr,vr);for(let li=0;li{let Re=A instanceof Ac?A.get(pe):null;return Re&&Re.evaluate?Re.evaluate(F,W,te):Re}))}function jC(R){let A=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)A=Math.min(A,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return{minX:A,minY:F,maxX:W,maxY:te}}function oq(R,A){return A-R}function WC(R,A,F,W,te){let fe=[];for(let pe=0;pe=W&&er.x>=W||(Rt.x>=W?Rt=new u(W,Rt.y+(W-Rt.x)/(er.x-Rt.x)*(er.y-Rt.y))._round():er.x>=W&&(er=new u(W,Rt.y+(W-Rt.x)/(er.x-Rt.x)*(er.y-Rt.y))._round()),Rt.y>=te&&er.y>=te||(Rt.y>=te?Rt=new u(Rt.x+(te-Rt.y)/(er.y-Rt.y)*(er.x-Rt.x),te)._round():er.y>=te&&(er=new u(Rt.x+(te-Rt.y)/(er.y-Rt.y)*(er.x-Rt.x),te)._round()),Ke&&Rt.equals(Ke[Ke.length-1])||(Ke=[Rt],fe.push(Ke)),Ke.push(er)))))}}return fe}Fi("FeatureIndex",_y,{omit:["rawTileData","sourceLayerCoder"]});class gg extends u{constructor(A,F,W,te){super(A,F),this.angle=W,te!==void 0&&(this.segment=te)}clone(){return new gg(this.x,this.y,this.angle,this.segment)}}function AS(R,A,F,W,te){if(A.segment===void 0||F===0)return!0;let fe=A,pe=A.segment+1,Re=0;for(;Re>-F/2;){if(pe--,pe<0)return!1;Re-=R[pe].dist(fe),fe=R[pe]}Re+=R[pe].dist(R[pe+1]),pe++;let Ke=[],ft=0;for(;ReW;)ft-=Ke.shift().angleDelta;if(ft>te)return!1;pe++,Re+=Rt.dist(er)}return!0}function XC(R){let A=0;for(let F=0;Fft){let kr=(ft-Ke)/vr,Dr=Lo.number(er.x,ur.x,kr),li=Lo.number(er.y,ur.y,kr),pi=new gg(Dr,li,ur.angleTo(er),Rt);return pi._round(),!pe||AS(R,pi,Re,pe,A)?pi:void 0}Ke+=vr}}function lq(R,A,F,W,te,fe,pe,Re,Ke){let ft=ZC(W,fe,pe),Rt=YC(W,te),er=Rt*pe,ur=R[0].x===0||R[0].x===Ke||R[0].y===0||R[0].y===Ke;return A-er=0&&ln=0&&Tn=0&&ur+ft<=Rt){let pa=new gg(ln,Tn,vn,kr);pa._round(),W&&!AS(R,pa,fe,W,te)||vr.push(pa)}}er+=pi}return Re||vr.length||pe||(vr=KC(R,er/2,F,W,te,fe,pe,!0,Ke)),vr}Fi("Anchor",gg);let z1=Md;function JC(R,A,F,W){let te=[],fe=R.image,pe=fe.pixelRatio,Re=fe.paddedRect.w-2*z1,Ke=fe.paddedRect.h-2*z1,ft={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Rt=fe.stretchX||[[0,Re]],er=fe.stretchY||[[0,Ke]],ur=(Wn,Ro)=>Wn+Ro[1]-Ro[0],vr=Rt.reduce(ur,0),kr=er.reduce(ur,0),Dr=Re-vr,li=Ke-kr,pi=0,vn=vr,zi=0,ln=kr,Tn=0,pa=Dr,ro=0,Vo=li;if(fe.content&&W){let Wn=fe.content,Ro=Wn[2]-Wn[0],uo=Wn[3]-Wn[1];(fe.textFitWidth||fe.textFitHeight)&&(ft=DC(R)),pi=mg(Rt,0,Wn[0]),zi=mg(er,0,Wn[1]),vn=mg(Rt,Wn[0],Wn[2]),ln=mg(er,Wn[1],Wn[3]),Tn=Wn[0]-pi,ro=Wn[1]-zi,pa=Ro-vn,Vo=uo-ln}let Xa=ft.x1,la=ft.y1,Mo=ft.x2-Xa,fo=ft.y2-la,lo=(Wn,Ro,uo,$o)=>{let Ju=$w(Wn.stretch-pi,vn,Mo,Xa),Ou=q1(Wn.fixed-Tn,pa,Wn.stretch,vr),kh=$w(Ro.stretch-zi,ln,fo,la),Qv=q1(Ro.fixed-ro,Vo,Ro.stretch,kr),ud=$w(uo.stretch-pi,vn,Mo,Xa),Ch=q1(uo.fixed-Tn,pa,uo.stretch,vr),Gd=$w($o.stretch-zi,ln,fo,la),Hd=q1($o.fixed-ro,Vo,$o.stretch,kr),jd=new u(Ju,kh),Af=new u(ud,kh),Lh=new u(ud,Gd),Ed=new u(Ju,Gd),cd=new u(Ou/pe,Qv/pe),Yh=new u(Ch/pe,Hd/pe),Df=A*Math.PI/180;if(Df){let ru=Math.sin(Df),pc=Math.cos(Df),$u=[pc,-ru,ru,pc];jd._matMult($u),Af._matMult($u),Ed._matMult($u),Lh._matMult($u)}let Fv=Wn.stretch+Wn.fixed,uv=Ro.stretch+Ro.fixed;return{tl:jd,tr:Af,bl:Ed,br:Lh,tex:{x:fe.paddedRect.x+z1+Fv,y:fe.paddedRect.y+z1+uv,w:uo.stretch+uo.fixed-Fv,h:$o.stretch+$o.fixed-uv},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:cd,pixelOffsetBR:Yh,minFontScaleX:pa/pe/Mo,minFontScaleY:Vo/pe/fo,isSDF:F}};if(W&&(fe.stretchX||fe.stretchY)){let Wn=$C(Rt,Dr,vr),Ro=$C(er,li,kr);for(let uo=0;uo0&&(Dr=Math.max(10,Dr),this.circleDiameter=Dr)}else{let ur=!((er=pe.image)===null||er===void 0)&&er.content&&(pe.image.textFitWidth||pe.image.textFitHeight)?DC(pe):{x1:pe.left,y1:pe.top,x2:pe.right,y2:pe.bottom};ur.y1=ur.y1*Re-Ke[0],ur.y2=ur.y2*Re+Ke[2],ur.x1=ur.x1*Re-Ke[3],ur.x2=ur.x2*Re+Ke[1];let vr=pe.collisionPadding;if(vr&&(ur.x1-=vr[0]*Re,ur.y1-=vr[1]*Re,ur.x2+=vr[2]*Re,ur.y2+=vr[3]*Re),Rt){let kr=new u(ur.x1,ur.y1),Dr=new u(ur.x2,ur.y1),li=new u(ur.x1,ur.y2),pi=new u(ur.x2,ur.y2),vn=Rt*Math.PI/180;kr._rotate(vn),Dr._rotate(vn),li._rotate(vn),pi._rotate(vn),ur.x1=Math.min(kr.x,Dr.x,li.x,pi.x),ur.x2=Math.max(kr.x,Dr.x,li.x,pi.x),ur.y1=Math.min(kr.y,Dr.y,li.y,pi.y),ur.y2=Math.max(kr.y,Dr.y,li.y,pi.y)}A.emplaceBack(F.x,F.y,ur.x1,ur.y1,ur.x2,ur.y2,W,te,fe)}this.boxEndIndex=A.length}}class Vp{constructor(A=[],F=((W,te)=>Wte?1:0)){if(this.data=A,this.length=this.data.length,this.compare=F,this.length>0)for(let W=(this.length>>1)-1;W>=0;W--)this._down(W)}push(A){this.data.push(A),this._up(this.length++)}pop(){if(this.length===0)return;let A=this.data[0],F=this.data.pop();return--this.length>0&&(this.data[0]=F,this._down(0)),A}peek(){return this.data[0]}_up(A){let{data:F,compare:W}=this,te=F[A];for(;A>0;){let fe=A-1>>1,pe=F[fe];if(W(te,pe)>=0)break;F[A]=pe,A=fe}F[A]=te}_down(A){let{data:F,compare:W}=this,te=this.length>>1,fe=F[A];for(;A=0)break;F[A]=F[pe],A=pe}F[A]=fe}}function uq(R,A=1,F=!1){let W=1/0,te=1/0,fe=-1/0,pe=-1/0,Re=R[0];for(let vr=0;vrfe)&&(fe=kr.x),(!vr||kr.y>pe)&&(pe=kr.y)}let Ke=Math.min(fe-W,pe-te),ft=Ke/2,Rt=new Vp([],cq);if(Ke===0)return new u(W,te);for(let vr=W;vrer.d||!er.d)&&(er=vr,F&&console.log("found best %d after %d probes",Math.round(1e4*vr.d)/1e4,ur)),vr.max-er.d<=A||(ft=vr.h/2,Rt.push(new O1(vr.p.x-ft,vr.p.y-ft,ft,R)),Rt.push(new O1(vr.p.x+ft,vr.p.y-ft,ft,R)),Rt.push(new O1(vr.p.x-ft,vr.p.y+ft,ft,R)),Rt.push(new O1(vr.p.x+ft,vr.p.y+ft,ft,R)),ur+=4)}return F&&(console.log(`num probes: ${ur}`),console.log(`best distance: ${er.d}`)),er.p}function cq(R,A){return A.max-R.max}function O1(R,A,F,W){this.p=new u(R,A),this.h=F,this.d=(function(te,fe){let pe=!1,Re=1/0;for(let Ke=0;Kete.y!=kr.y>te.y&&te.x<(kr.x-vr.x)*(te.y-vr.y)/(kr.y-vr.y)+vr.x&&(pe=!pe),Re=Math.min(Re,Nr(te,vr,kr))}}return(pe?1:-1)*Math.sqrt(Re)})(this.p,W),this.max=this.d+this.h*Math.SQRT2}var ld;i.aq=void 0,(ld=i.aq||(i.aq={}))[ld.center=1]="center",ld[ld.left=2]="left",ld[ld.right=3]="right",ld[ld.top=4]="top",ld[ld.bottom=5]="bottom",ld[ld["top-left"]=6]="top-left",ld[ld["top-right"]=7]="top-right",ld[ld["bottom-left"]=8]="bottom-left",ld[ld["bottom-right"]=9]="bottom-right";let vm=7,xy=Number.POSITIVE_INFINITY;function SS(R,A){return A[1]!==xy?(function(F,W,te){let fe=0,pe=0;switch(W=Math.abs(W),te=Math.abs(te),F){case"top-right":case"top-left":case"top":pe=te-vm;break;case"bottom-right":case"bottom-left":case"bottom":pe=-te+vm}switch(F){case"top-right":case"bottom-right":case"right":fe=-W;break;case"top-left":case"bottom-left":case"left":fe=W}return[fe,pe]})(R,A[0],A[1]):(function(F,W){let te=0,fe=0;W<0&&(W=0);let pe=W/Math.SQRT2;switch(F){case"top-right":case"top-left":fe=pe-vm;break;case"bottom-right":case"bottom-left":fe=-pe+vm;break;case"bottom":fe=-W+vm;break;case"top":fe=W-vm}switch(F){case"top-right":case"bottom-right":te=-pe;break;case"top-left":case"bottom-left":te=pe;break;case"left":te=W;break;case"right":te=-W}return[te,fe]})(R,A[0])}function QC(R,A,F){var W;let te=R.layout,fe=(W=te.get("text-variable-anchor-offset"))===null||W===void 0?void 0:W.evaluate(A,{},F);if(fe){let Re=fe.values,Ke=[];for(let ft=0;ftur*tu));Rt.startsWith("top")?er[1]-=vm:Rt.startsWith("bottom")&&(er[1]+=vm),Ke[ft+1]=er}return new Hi(Ke)}let pe=te.get("text-variable-anchor");if(pe){let Re;Re=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[te.get("text-radial-offset").evaluate(A,{},F)*tu,xy]:te.get("text-offset").evaluate(A,{},F).map((ft=>ft*tu));let Ke=[];for(let ft of pe)Ke.push(ft,SS(ft,Re));return new Hi(Ke)}return null}function MS(R){switch(R){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function fq(R,A,F,W,te,fe,pe,Re,Ke,ft,Rt){let er=fe.textMaxSize.evaluate(A,{});er===void 0&&(er=pe);let ur=R.layers[0].layout,vr=ur.get("icon-offset").evaluate(A,{},Rt),kr=t6(F.horizontal),Dr=pe/24,li=R.tilePixelRatio*Dr,pi=R.tilePixelRatio*er/24,vn=R.tilePixelRatio*Re,zi=R.tilePixelRatio*ur.get("symbol-spacing"),ln=ur.get("text-padding")*R.tilePixelRatio,Tn=(function(Wn,Ro,uo,$o=1){let Ju=Wn.get("icon-padding").evaluate(Ro,{},uo),Ou=Ju&&Ju.values;return[Ou[0]*$o,Ou[1]*$o,Ou[2]*$o,Ou[3]*$o]})(ur,A,Rt,R.tilePixelRatio),pa=ur.get("text-max-angle")/180*Math.PI,ro=ur.get("text-rotation-alignment")!=="viewport"&&ur.get("symbol-placement")!=="point",Vo=ur.get("icon-rotation-alignment")==="map"&&ur.get("symbol-placement")!=="point",Xa=ur.get("symbol-placement"),la=zi/2,Mo=ur.get("icon-text-fit"),fo;W&&Mo!=="none"&&(R.allowVerticalPlacement&&F.vertical&&(fo=FC(W,F.vertical,Mo,ur.get("icon-text-fit-padding"),vr,Dr)),kr&&(W=FC(W,kr,Mo,ur.get("icon-text-fit-padding"),vr,Dr)));let lo=(Wn,Ro)=>{Ro.x<0||Ro.x>=ja||Ro.y<0||Ro.y>=ja||(function(uo,$o,Ju,Ou,kh,Qv,ud,Ch,Gd,Hd,jd,Af,Lh,Ed,cd,Yh,Df,Fv,uv,ru,pc,$u,zv,hf,B1){let p0=uo.addToLineVertexArray($o,Ju),Gp,ep,Gc,Yf,tp=0,yg=0,cv=0,N1=0,PS=-1,r3=-1,g0={},by=xi("");if(uo.allowVerticalPlacement&&Ou.vertical){let kd=Ch.layout.get("text-rotate").evaluate(pc,{},hf)+90;Gc=new dm(Gd,$o,Hd,jd,Af,Ou.vertical,Lh,Ed,cd,kd),ud&&(Yf=new dm(Gd,$o,Hd,jd,Af,ud,Df,Fv,cd,kd))}if(kh){let kd=Ch.layout.get("icon-rotate").evaluate(pc,{}),rp=Ch.layout.get("icon-text-fit")!=="none",pm=JC(kh,kd,zv,rp),Wd=ud?JC(ud,kd,zv,rp):void 0;ep=new dm(Gd,$o,Hd,jd,Af,kh,Df,Fv,!1,kd),tp=4*pm.length;let Cd=uo.iconSizeData,xp=null;Cd.kind==="source"?(xp=[v0*Ch.layout.get("icon-size").evaluate(pc,{})],xp[0]>fm&&E(`${uo.layerIds[0]}: Value for "icon-size" is >= ${rb}. Reduce your "icon-size".`)):Cd.kind==="composite"&&(xp=[v0*$u.compositeIconSizes[0].evaluate(pc,{},hf),v0*$u.compositeIconSizes[1].evaluate(pc,{},hf)],(xp[0]>fm||xp[1]>fm)&&E(`${uo.layerIds[0]}: Value for "icon-size" is >= ${rb}. Reduce your "icon-size".`)),uo.addSymbols(uo.icon,pm,xp,ru,uv,pc,i.ah.none,$o,p0.lineStartIndex,p0.lineLength,-1,hf),PS=uo.icon.placedSymbolArray.length-1,Wd&&(yg=4*Wd.length,uo.addSymbols(uo.icon,Wd,xp,ru,uv,pc,i.ah.vertical,$o,p0.lineStartIndex,p0.lineLength,-1,hf),r3=uo.icon.placedSymbolArray.length-1)}let Kh=Object.keys(Ou.horizontal);for(let kd of Kh){let rp=Ou.horizontal[kd];if(!Gp){by=xi(rp.text);let Wd=Ch.layout.get("text-rotate").evaluate(pc,{},hf);Gp=new dm(Gd,$o,Hd,jd,Af,rp,Lh,Ed,cd,Wd)}let pm=rp.positionedLines.length===1;if(cv+=e6(uo,$o,rp,Qv,Ch,cd,pc,Yh,p0,Ou.vertical?i.ah.horizontal:i.ah.horizontalOnly,pm?Kh:[kd],g0,PS,$u,hf),pm)break}Ou.vertical&&(N1+=e6(uo,$o,Ou.vertical,Qv,Ch,cd,pc,Yh,p0,i.ah.vertical,["vertical"],g0,r3,$u,hf));let vq=Gp?Gp.boxStartIndex:uo.collisionBoxArray.length,i3=Gp?Gp.boxEndIndex:uo.collisionBoxArray.length,m0=Gc?Gc.boxStartIndex:uo.collisionBoxArray.length,fv=Gc?Gc.boxEndIndex:uo.collisionBoxArray.length,a6=ep?ep.boxStartIndex:uo.collisionBoxArray.length,pq=ep?ep.boxEndIndex:uo.collisionBoxArray.length,o6=Yf?Yf.boxStartIndex:uo.collisionBoxArray.length,gq=Yf?Yf.boxEndIndex:uo.collisionBoxArray.length,_p=-1,hb=(kd,rp)=>kd&&kd.circleDiameter?Math.max(kd.circleDiameter,rp):rp;_p=hb(Gp,_p),_p=hb(Gc,_p),_p=hb(ep,_p),_p=hb(Yf,_p);let n3=_p>-1?1:0;n3&&(_p*=B1/tu),uo.glyphOffsetArray.length>=D1.MAX_GLYPHS&&E("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),pc.sortKey!==void 0&&uo.addToSortKeyRanges(uo.symbolInstances.length,pc.sortKey);let IS=QC(Ch,pc,hf),[mq,yq]=(function(kd,rp){let pm=kd.length,Wd=rp==null?void 0:rp.values;if((Wd==null?void 0:Wd.length)>0)for(let Cd=0;Cd=0?g0.right:-1,g0.center>=0?g0.center:-1,g0.left>=0?g0.left:-1,g0.vertical||-1,PS,r3,by,vq,i3,m0,fv,a6,pq,o6,gq,Hd,cv,N1,tp,yg,n3,0,Lh,_p,mq,yq)})(R,Ro,Wn,F,W,te,fo,R.layers[0],R.collisionBoxArray,A.index,A.sourceLayerIndex,R.index,li,[ln,ln,ln,ln],ro,Ke,vn,Tn,Vo,vr,A,fe,ft,Rt,pe)};if(Xa==="line")for(let Wn of WC(A.geometry,0,0,ja,ja)){let Ro=lq(Wn,zi,pa,F.vertical||kr,W,24,pi,R.overscaling,ja);for(let uo of Ro)kr&&hq(R,kr.text,la,uo)||lo(Wn,uo)}else if(Xa==="line-center"){for(let Wn of A.geometry)if(Wn.length>1){let Ro=sq(Wn,pa,F.vertical||kr,W,24,pi);Ro&&lo(Wn,Ro)}}else if(A.type==="Polygon")for(let Wn of Cf(A.geometry,0)){let Ro=uq(Wn,16);lo(Wn[0],new gg(Ro.x,Ro.y,0))}else if(A.type==="LineString")for(let Wn of A.geometry)lo(Wn,new gg(Wn[0].x,Wn[0].y,0));else if(A.type==="Point")for(let Wn of A.geometry)for(let Ro of Wn)lo([Ro],new gg(Ro.x,Ro.y,0))}function e6(R,A,F,W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr){let Dr=(function(vn,zi,ln,Tn,pa,ro,Vo,Xa){let la=Tn.layout.get("text-rotate").evaluate(ro,{})*Math.PI/180,Mo=[];for(let fo of zi.positionedLines)for(let lo of fo.positionedGlyphs){if(!lo.rect)continue;let Wn=lo.rect||{},Ro=LC+1,uo=!0,$o=1,Ju=0,Ou=(pa||Xa)&&lo.vertical,kh=lo.metrics.advance*lo.scale/2;if(Xa&&zi.verticalizable&&(Ju=fo.lineOffset/2-(lo.imageName?-(tu-lo.metrics.width*lo.scale)/2:(lo.scale-1)*tu)),lo.imageName){let ru=Vo[lo.imageName];uo=ru.sdf,$o=ru.pixelRatio,Ro=Md/$o}let Qv=pa?[lo.x+kh,lo.y]:[0,0],ud=pa?[0,0]:[lo.x+kh+ln[0],lo.y+ln[1]-Ju],Ch=[0,0];Ou&&(Ch=ud,ud=[0,0]);let Gd=lo.metrics.isDoubleResolution?2:1,Hd=(lo.metrics.left-Ro)*lo.scale-kh+ud[0],jd=(-lo.metrics.top-Ro)*lo.scale+ud[1],Af=Hd+Wn.w/Gd*lo.scale/$o,Lh=jd+Wn.h/Gd*lo.scale/$o,Ed=new u(Hd,jd),cd=new u(Af,jd),Yh=new u(Hd,Lh),Df=new u(Af,Lh);if(Ou){let ru=new u(-kh,kh-Eh),pc=-Math.PI/2,$u=tu/2-kh,zv=new u(5-Eh-$u,-(lo.imageName?$u:0)),hf=new u(...Ch);Ed._rotateAround(pc,ru)._add(zv)._add(hf),cd._rotateAround(pc,ru)._add(zv)._add(hf),Yh._rotateAround(pc,ru)._add(zv)._add(hf),Df._rotateAround(pc,ru)._add(zv)._add(hf)}if(la){let ru=Math.sin(la),pc=Math.cos(la),$u=[pc,-ru,ru,pc];Ed._matMult($u),cd._matMult($u),Yh._matMult($u),Df._matMult($u)}let Fv=new u(0,0),uv=new u(0,0);Mo.push({tl:Ed,tr:cd,bl:Yh,br:Df,tex:Wn,writingMode:zi.writingMode,glyphOffset:Qv,sectionIndex:lo.sectionIndex,isSDF:uo,pixelOffsetTL:Fv,pixelOffsetBR:uv,minFontScaleX:0,minFontScaleY:0})}return Mo})(0,F,Re,te,fe,pe,W,R.allowVerticalPlacement),li=R.textSizeData,pi=null;li.kind==="source"?(pi=[v0*te.layout.get("text-size").evaluate(pe,{})],pi[0]>fm&&E(`${R.layerIds[0]}: Value for "text-size" is >= ${rb}. Reduce your "text-size".`)):li.kind==="composite"&&(pi=[v0*vr.compositeTextSizes[0].evaluate(pe,{},kr),v0*vr.compositeTextSizes[1].evaluate(pe,{},kr)],(pi[0]>fm||pi[1]>fm)&&E(`${R.layerIds[0]}: Value for "text-size" is >= ${rb}. Reduce your "text-size".`)),R.addSymbols(R.text,Dr,pi,Re,fe,pe,ft,A,Ke.lineStartIndex,Ke.lineLength,ur,kr);for(let vn of Rt)er[vn]=R.text.placedSymbolArray.length-1;return 4*Dr.length}function t6(R){for(let A in R)return R[A];return null}function hq(R,A,F,W){let te=R.compareText;if(A in te){let fe=te[A];for(let pe=fe.length-1;pe>=0;pe--)if(W.dist(fe[pe])>4;if(te!==1)throw new Error(`Got v${te} data when expected v1.`);let fe=r6[15&W];if(!fe)throw new Error("Unrecognized array type.");let[pe]=new Uint16Array(A,2,1),[Re]=new Uint32Array(A,4,1);return new ES(Re,pe,fe,A)}constructor(A,F=64,W=Float64Array,te){if(isNaN(A)||A<0)throw new Error(`Unpexpected numItems value: ${A}.`);this.numItems=+A,this.nodeSize=Math.min(Math.max(+F,2),65535),this.ArrayType=W,this.IndexArrayType=A<65536?Uint16Array:Uint32Array;let fe=r6.indexOf(this.ArrayType),pe=2*A*this.ArrayType.BYTES_PER_ELEMENT,Re=A*this.IndexArrayType.BYTES_PER_ELEMENT,Ke=(8-Re%8)%8;if(fe<0)throw new Error(`Unexpected typed array class: ${W}.`);te&&te instanceof ArrayBuffer?(this.data=te,this.ids=new this.IndexArrayType(this.data,8,A),this.coords=new this.ArrayType(this.data,8+Re+Ke,2*A),this._pos=2*A,this._finished=!0):(this.data=new ArrayBuffer(8+pe+Re+Ke),this.ids=new this.IndexArrayType(this.data,8,A),this.coords=new this.ArrayType(this.data,8+Re+Ke,2*A),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+fe]),new Uint16Array(this.data,2,1)[0]=F,new Uint32Array(this.data,4,1)[0]=A)}add(A,F){let W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=A,this.coords[this._pos++]=F,W}finish(){let A=this._pos>>1;if(A!==this.numItems)throw new Error(`Added ${A} items when expected ${this.numItems}.`);return Qw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(A,F,W,te){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:pe,nodeSize:Re}=this,Ke=[0,fe.length-1,0],ft=[];for(;Ke.length;){let Rt=Ke.pop()||0,er=Ke.pop()||0,ur=Ke.pop()||0;if(er-ur<=Re){for(let li=ur;li<=er;li++){let pi=pe[2*li],vn=pe[2*li+1];pi>=A&&pi<=W&&vn>=F&&vn<=te&&ft.push(fe[li])}continue}let vr=ur+er>>1,kr=pe[2*vr],Dr=pe[2*vr+1];kr>=A&&kr<=W&&Dr>=F&&Dr<=te&&ft.push(fe[vr]),(Rt===0?A<=kr:F<=Dr)&&(Ke.push(ur),Ke.push(vr-1),Ke.push(1-Rt)),(Rt===0?W>=kr:te>=Dr)&&(Ke.push(vr+1),Ke.push(er),Ke.push(1-Rt))}return ft}within(A,F,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:te,coords:fe,nodeSize:pe}=this,Re=[0,te.length-1,0],Ke=[],ft=W*W;for(;Re.length;){let Rt=Re.pop()||0,er=Re.pop()||0,ur=Re.pop()||0;if(er-ur<=pe){for(let li=ur;li<=er;li++)n6(fe[2*li],fe[2*li+1],A,F)<=ft&&Ke.push(te[li]);continue}let vr=ur+er>>1,kr=fe[2*vr],Dr=fe[2*vr+1];n6(kr,Dr,A,F)<=ft&&Ke.push(te[vr]),(Rt===0?A-W<=kr:F-W<=Dr)&&(Re.push(ur),Re.push(vr-1),Re.push(1-Rt)),(Rt===0?A+W>=kr:F+W>=Dr)&&(Re.push(vr+1),Re.push(er),Re.push(1-Rt))}return Ke}}function Qw(R,A,F,W,te,fe){if(te-W<=F)return;let pe=W+te>>1;i6(R,A,pe,W,te,fe),Qw(R,A,F,W,pe-1,1-fe),Qw(R,A,F,pe+1,te,1-fe)}function i6(R,A,F,W,te,fe){for(;te>W;){if(te-W>600){let ft=te-W+1,Rt=F-W+1,er=Math.log(ft),ur=.5*Math.exp(2*er/3),vr=.5*Math.sqrt(er*ur*(ft-ur)/ft)*(Rt-ft/2<0?-1:1);i6(R,A,F,Math.max(W,Math.floor(F-Rt*ur/ft+vr)),Math.min(te,Math.floor(F+(ft-Rt)*ur/ft+vr)),fe)}let pe=A[2*F+fe],Re=W,Ke=te;for(cb(R,A,W,F),A[2*te+fe]>pe&&cb(R,A,W,te);Repe;)Ke--}A[2*W+fe]===pe?cb(R,A,W,Ke):(Ke++,cb(R,A,Ke,te)),Ke<=F&&(W=Ke+1),F<=Ke&&(te=Ke-1)}}function cb(R,A,F,W){kS(R,F,W),kS(A,2*F,2*W),kS(A,2*F+1,2*W+1)}function kS(R,A,F){let W=R[A];R[A]=R[F],R[F]=W}function n6(R,A,F,W){let te=R-F,fe=A-W;return te*te+fe*fe}var e3;i.bg=void 0,(e3=i.bg||(i.bg={})).create="create",e3.load="load",e3.fullLoad="fullLoad";let fb=null,sh=[],CS=1e3/60,LS="loadTime",t3="fullLoadTime",dq={mark(R){performance.mark(R)},frame(R){let A=R;fb!=null&&sh.push(A-fb),fb=A},clearMetrics(){fb=null,sh=[],performance.clearMeasures(LS),performance.clearMeasures(t3);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(LS,i.bg.create,i.bg.load),performance.measure(t3,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(LS)[0].duration,A=performance.getEntriesByName(t3)[0].duration,F=sh.length,W=1/(sh.reduce(((fe,pe)=>fe+pe),0)/F/1e3),te=sh.filter((fe=>fe>CS)).reduce(((fe,pe)=>fe+(pe-CS)/CS),0);return{loadTime:R,fullLoadTime:A,fps:W,percentDroppedFrames:te/(F+te)*100,totalFrames:F}}};i.$=class extends Jt{},i.A=yi,i.B=dn,i.C=function(R){if(V==null){let A=R.navigator?R.navigator.userAgent:null;V=!!R.safari||!(!A||!(/\b(iPad|iPhone|iPod)\b/.test(A)||A.match("Safari")&&!A.match("Chrome")))}return V},i.D=Va,i.E=Pe,i.F=class{constructor(R,A){this.target=R,this.mapId=A,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new xS((()=>this.process())),this.subscription=(function(F,W,te,fe){return F.addEventListener(W,te,!1),{unsubscribe:()=>{F.removeEventListener(W,te,!1)}}})(this.target,"message",(F=>this.receive(F))),this.globalScope=q(self)?R:window}registerMessageHandler(R,A){this.messageHandlers[R]=A}sendAsync(R,A){return new Promise(((F,W)=>{let te=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[te]={resolve:F,reject:W},A&&A.signal.addEventListener("abort",(()=>{delete this.resolveRejects[te];let Re={id:te,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(Re)}),{once:!0});let fe=[],pe=Object.assign(Object.assign({},R),{id:te,sourceMapId:this.mapId,origin:location.origin,data:La(R.data,fe)});this.target.postMessage(pe,{transfer:fe})}))}receive(R){let A=R.data,F=A.id;if(!(A.origin!=="file://"&&location.origin!=="file://"&&A.origin!=="resource://android"&&location.origin!=="resource://android"&&A.origin!==location.origin||A.targetMapId&&this.mapId!==A.targetMapId)){if(A.type===""){delete this.tasks[F];let W=this.abortControllers[F];return delete this.abortControllers[F],void(W&&W.abort())}if(q(self)||A.mustQueue)return this.tasks[F]=A,this.taskQueue.push(F),void this.invoker.trigger();this.processTask(F,A)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),A=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),A&&this.processTask(R,A)}processTask(R,A){return a(this,void 0,void 0,(function*(){if(A.type===""){let te=this.resolveRejects[R];return delete this.resolveRejects[R],te?void(A.error?te.reject(Ua(A.error)):te.resolve(Ua(A.data))):void 0}if(!this.messageHandlers[A.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${A.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let F=Ua(A.data),W=new AbortController;this.abortControllers[R]=W;try{let te=yield this.messageHandlers[A.type](A.sourceMapId,F,W);this.completeTask(R,null,te)}catch(te){this.completeTask(R,te)}}))}completeTask(R,A,F){let W=[];delete this.abortControllers[R];let te={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:A?La(A):null,data:La(F,W)};this.target.postMessage(te,{transfer:W})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Ce,i.H=function(){var R=new yi(16);return yi!=Float32Array&&(R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=0,R[12]=0,R[13]=0,R[14]=0),R[0]=1,R[5]=1,R[10]=1,R[15]=1,R},i.I=Gw,i.J=function(R,A,F){var W,te,fe,pe,Re,Ke,ft,Rt,er,ur,vr,kr,Dr=F[0],li=F[1],pi=F[2];return A===R?(R[12]=A[0]*Dr+A[4]*li+A[8]*pi+A[12],R[13]=A[1]*Dr+A[5]*li+A[9]*pi+A[13],R[14]=A[2]*Dr+A[6]*li+A[10]*pi+A[14],R[15]=A[3]*Dr+A[7]*li+A[11]*pi+A[15]):(te=A[1],fe=A[2],pe=A[3],Re=A[4],Ke=A[5],ft=A[6],Rt=A[7],er=A[8],ur=A[9],vr=A[10],kr=A[11],R[0]=W=A[0],R[1]=te,R[2]=fe,R[3]=pe,R[4]=Re,R[5]=Ke,R[6]=ft,R[7]=Rt,R[8]=er,R[9]=ur,R[10]=vr,R[11]=kr,R[12]=W*Dr+Re*li+er*pi+A[12],R[13]=te*Dr+Ke*li+ur*pi+A[13],R[14]=fe*Dr+ft*li+vr*pi+A[14],R[15]=pe*Dr+Rt*li+kr*pi+A[15]),R},i.K=function(R,A,F){var W=F[0],te=F[1],fe=F[2];return R[0]=A[0]*W,R[1]=A[1]*W,R[2]=A[2]*W,R[3]=A[3]*W,R[4]=A[4]*te,R[5]=A[5]*te,R[6]=A[6]*te,R[7]=A[7]*te,R[8]=A[8]*fe,R[9]=A[9]*fe,R[10]=A[10]*fe,R[11]=A[11]*fe,R[12]=A[12],R[13]=A[13],R[14]=A[14],R[15]=A[15],R},i.L=ui,i.M=function(R,A){let F={};for(let W=0;W{let A=window.document.createElement("video");return A.muted=!0,new Promise((F=>{A.onloadstart=()=>{F(A)};for(let W of R){let te=window.document.createElement("source");ke(W)||(A.crossOrigin="Anonymous"),te.src=W,A.appendChild(te)}}))},i.a4=function(){return x++},i.a5=Ln,i.a6=D1,i.a7=Fc,i.a8=Ml,i.a9=TS,i.aA=function(R){if(R.type==="custom")return new _S(R);switch(R.type){case"background":return new aq(R);case"circle":return new fi(R);case"fill":return new _t(R);case"fill-extrusion":return new Lv(R);case"heatmap":return new sa(R);case"hillshade":return new Zs(R);case"line":return new vy(R);case"raster":return new ob(R);case"symbol":return new yy(R)}},i.aB=g,i.aC=function(R,A){if(!R)return[{command:"setStyle",args:[A]}];let F=[];try{if(!mt(R.version,A.version))return[{command:"setStyle",args:[A]}];mt(R.center,A.center)||F.push({command:"setCenter",args:[A.center]}),mt(R.zoom,A.zoom)||F.push({command:"setZoom",args:[A.zoom]}),mt(R.bearing,A.bearing)||F.push({command:"setBearing",args:[A.bearing]}),mt(R.pitch,A.pitch)||F.push({command:"setPitch",args:[A.pitch]}),mt(R.sprite,A.sprite)||F.push({command:"setSprite",args:[A.sprite]}),mt(R.glyphs,A.glyphs)||F.push({command:"setGlyphs",args:[A.glyphs]}),mt(R.transition,A.transition)||F.push({command:"setTransition",args:[A.transition]}),mt(R.light,A.light)||F.push({command:"setLight",args:[A.light]}),mt(R.terrain,A.terrain)||F.push({command:"setTerrain",args:[A.terrain]}),mt(R.sky,A.sky)||F.push({command:"setSky",args:[A.sky]}),mt(R.projection,A.projection)||F.push({command:"setProjection",args:[A.projection]});let W={},te=[];(function(pe,Re,Ke,ft){let Rt;for(Rt in Re=Re||{},pe=pe||{})Object.prototype.hasOwnProperty.call(pe,Rt)&&(Object.prototype.hasOwnProperty.call(Re,Rt)||ct(Rt,Ke,ft));for(Rt in Re)Object.prototype.hasOwnProperty.call(Re,Rt)&&(Object.prototype.hasOwnProperty.call(pe,Rt)?mt(pe[Rt],Re[Rt])||(pe[Rt].type==="geojson"&&Re[Rt].type==="geojson"&&Vt(pe,Re,Rt)?Ht(Ke,{command:"setGeoJSONSourceData",args:[Rt,Re[Rt].data]}):ar(Rt,Re,Ke,ft)):at(Rt,Re,Ke))})(R.sources,A.sources,te,W);let fe=[];R.layers&&R.layers.forEach((pe=>{"source"in pe&&W[pe.source]?F.push({command:"removeLayer",args:[pe.id]}):fe.push(pe)})),F=F.concat(te),(function(pe,Re,Ke){Re=Re||[];let ft=(pe=pe||[]).map(tt),Rt=Re.map(tt),er=pe.reduce(je,{}),ur=Re.reduce(je,{}),vr=ft.slice(),kr=Object.create(null),Dr,li,pi,vn,zi;for(let ln=0,Tn=0;ln@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((F,W,te,fe)=>{let pe=te||fe;return A[W]=!pe||pe.toLowerCase(),""})),A["max-age"]){let F=parseInt(A["max-age"],10);isNaN(F)?delete A["max-age"]:A["max-age"]=F}return A},i.ab=function(R,A){let F=[];for(let W in R)W in A||F.push(W);return F},i.ac=M,i.ad=function(R,A,F){var W=Math.sin(F),te=Math.cos(F),fe=A[0],pe=A[1],Re=A[2],Ke=A[3],ft=A[4],Rt=A[5],er=A[6],ur=A[7];return A!==R&&(R[8]=A[8],R[9]=A[9],R[10]=A[10],R[11]=A[11],R[12]=A[12],R[13]=A[13],R[14]=A[14],R[15]=A[15]),R[0]=fe*te+ft*W,R[1]=pe*te+Rt*W,R[2]=Re*te+er*W,R[3]=Ke*te+ur*W,R[4]=ft*te-fe*W,R[5]=Rt*te-pe*W,R[6]=er*te-Re*W,R[7]=ur*te-Ke*W,R},i.ae=function(R){var A=new yi(16);return A[0]=R[0],A[1]=R[1],A[2]=R[2],A[3]=R[3],A[4]=R[4],A[5]=R[5],A[6]=R[6],A[7]=R[7],A[8]=R[8],A[9]=R[9],A[10]=R[10],A[11]=R[11],A[12]=R[12],A[13]=R[13],A[14]=R[14],A[15]=R[15],A},i.af=qn,i.ag=function(R,A){let F=0,W=0;if(R.kind==="constant")W=R.layoutSize;else if(R.kind!=="source"){let{interpolationType:te,minZoom:fe,maxZoom:pe}=R,Re=te?M(ko.interpolationFactor(te,A,fe,pe),0,1):0;R.kind==="camera"?W=Lo.number(R.minSize,R.maxSize,Re):F=Re}return{uSizeT:F,uSize:W}},i.ai=function(R,{uSize:A,uSizeT:F},{lowerSize:W,upperSize:te}){return R.kind==="source"?W/v0:R.kind==="composite"?Lo.number(W/v0,te/v0,F):A},i.aj=pS,i.ak=function(R,A,F,W){let te=A.y-R.y,fe=A.x-R.x,pe=W.y-F.y,Re=W.x-F.x,Ke=pe*fe-Re*te;if(Ke===0)return null;let ft=(Re*(R.y-F.y)-pe*(R.x-F.x))/Ke;return new u(R.x+ft*fe,R.y+ft*te)},i.al=WC,i.am=Sc,i.an=Ii,i.ao=function(R){let A=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)A=Math.min(A,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return[A,F,W,te]},i.ap=tu,i.ar=vS,i.as=function(R,A){var F=A[0],W=A[1],te=A[2],fe=A[3],pe=A[4],Re=A[5],Ke=A[6],ft=A[7],Rt=A[8],er=A[9],ur=A[10],vr=A[11],kr=A[12],Dr=A[13],li=A[14],pi=A[15],vn=F*Re-W*pe,zi=F*Ke-te*pe,ln=F*ft-fe*pe,Tn=W*Ke-te*Re,pa=W*ft-fe*Re,ro=te*ft-fe*Ke,Vo=Rt*Dr-er*kr,Xa=Rt*li-ur*kr,la=Rt*pi-vr*kr,Mo=er*li-ur*Dr,fo=er*pi-vr*Dr,lo=ur*pi-vr*li,Wn=vn*lo-zi*fo+ln*Mo+Tn*la-pa*Xa+ro*Vo;return Wn?(R[0]=(Re*lo-Ke*fo+ft*Mo)*(Wn=1/Wn),R[1]=(te*fo-W*lo-fe*Mo)*Wn,R[2]=(Dr*ro-li*pa+pi*Tn)*Wn,R[3]=(ur*pa-er*ro-vr*Tn)*Wn,R[4]=(Ke*la-pe*lo-ft*Xa)*Wn,R[5]=(F*lo-te*la+fe*Xa)*Wn,R[6]=(li*ln-kr*ro-pi*zi)*Wn,R[7]=(Rt*ro-ur*ln+vr*zi)*Wn,R[8]=(pe*fo-Re*la+ft*Vo)*Wn,R[9]=(W*la-F*fo-fe*Vo)*Wn,R[10]=(kr*pa-Dr*ln+pi*vn)*Wn,R[11]=(er*ln-Rt*pa-vr*vn)*Wn,R[12]=(Re*Xa-pe*Mo-Ke*Vo)*Wn,R[13]=(F*Mo-W*Xa+te*Vo)*Wn,R[14]=(Dr*zi-kr*Tn-li*vn)*Wn,R[15]=(Rt*Tn-er*zi+ur*vn)*Wn,R):null},i.at=MS,i.au=Xw,i.av=ES,i.aw=function(){let R={},A=ce.$version;for(let F in ce.$root){let W=ce.$root[F];if(W.required){let te=null;te=F==="version"?A:W.type==="array"?[]:{},te!=null&&(R[F]=te)}}return R},i.ax=Zn,i.ay=ie,i.az=function(R){R=R.slice();let A=Object.create(null);for(let F=0;F25||W<0||W>=1||F<0||F>=1)},i.bc=function(R,A){return R[0]=A[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=A[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=A[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends Mt{},i.be=bS,i.bf=dq,i.bh=ge,i.bi=function(R,A){_e.REGISTERED_PROTOCOLS[R]=A},i.bj=function(R){delete _e.REGISTERED_PROTOCOLS[R]},i.bk=function(R,A){let F={};for(let te=0;telo*tu))}let Xa=pe?"center":F.get("text-justify").evaluate(ft,{},R.canonical),la=F.get("symbol-placement")==="point"?F.get("text-max-width").evaluate(ft,{},R.canonical)*tu:1/0,Mo=()=>{R.bucket.allowVerticalPlacement&&Ka(ln)&&(kr.vertical=eb(Dr,R.glyphMap,R.glyphPositions,R.imagePositions,Rt,la,fe,ro,"left",pa,pi,i.ah.vertical,!0,ur,er))};if(!pe&&Vo){let fo=new Set;if(Xa==="auto")for(let Wn=0;Wna(void 0,void 0,void 0,(function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let A=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(A)}catch(F){throw new Error(`Could not load image because of ${F.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}})),i.e=L,i.f=R=>new Promise(((A,F)=>{let W=new Image;W.onload=()=>{A(W),URL.revokeObjectURL(W.src),W.onload=null,window.requestAnimationFrame((()=>{W.src=Z}))},W.onerror=()=>F(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let te=new Blob([new Uint8Array(R)],{type:"image/png"});W.src=R.byteLength?URL.createObjectURL(te):Z})),i.g=Ee,i.h=(R,A)=>Se(L(R,{type:"json"}),A),i.i=q,i.j=me,i.k=Le,i.l=(R,A)=>Se(L(R,{type:"arrayBuffer"}),A),i.m=Se,i.n=function(R){return new fS(R).readFields(VQ,[])},i.o=aa,i.p=dS,i.q=ue,i.r=Xi,i.s=ke,i.t=Yi,i.u=Mi,i.v=ce,i.w=E,i.x=function([R,A,F]){return A+=90,A*=Math.PI/180,F*=Math.PI/180,{x:R*Math.cos(A)*Math.sin(F),y:R*Math.sin(A)*Math.sin(F),z:R*Math.cos(F)}},i.y=Lo,i.z=rs})),r("worker",["./shared"],(function(i){"use strict";class a{constructor(Ge){this.keyCache={},Ge&&this.replace(Ge)}replace(Ge){this._layerConfigs={},this._layers={},this.update(Ge,[])}update(Ge,Je){for(let et of Ge){this._layerConfigs[et.id]=et;let xt=this._layers[et.id]=i.aA(et);xt._featureFilter=i.a7(xt.filter),this.keyCache[et.id]&&delete this.keyCache[et.id]}for(let et of Je)delete this.keyCache[et],delete this._layerConfigs[et],delete this._layers[et];this.familiesBySource={};let We=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let et of We){let xt=et.map((Ir=>this._layers[Ir.id])),At=xt[0];if(At.visibility==="none")continue;let Kt=At.source||"",Qt=this.familiesBySource[Kt];Qt||(Qt=this.familiesBySource[Kt]={});let Mr=At.sourceLayer||"_geojsonTileLayer",Gr=Qt[Mr];Gr||(Gr=Qt[Mr]=[]),Gr.push(xt)}}}class o{constructor(Ge){let Je={},We=[];for(let Kt in Ge){let Qt=Ge[Kt],Mr=Je[Kt]={};for(let Gr in Qt){let Ir=Qt[+Gr];if(!Ir||Ir.bitmap.width===0||Ir.bitmap.height===0)continue;let Yr={x:0,y:0,w:Ir.bitmap.width+2,h:Ir.bitmap.height+2};We.push(Yr),Mr[Gr]={rect:Yr,metrics:Ir.metrics}}}let{w:et,h:xt}=i.p(We),At=new i.o({width:et||1,height:xt||1});for(let Kt in Ge){let Qt=Ge[Kt];for(let Mr in Qt){let Gr=Qt[+Mr];if(!Gr||Gr.bitmap.width===0||Gr.bitmap.height===0)continue;let Ir=Je[Kt][Mr].rect;i.o.copy(Gr.bitmap,At,{x:0,y:0},{x:Ir.x+1,y:Ir.y+1},Gr.bitmap)}}this.image=At,this.positions=Je}}i.bl("GlyphAtlas",o);class s{constructor(Ge){this.tileID=new i.S(Ge.tileID.overscaledZ,Ge.tileID.wrap,Ge.tileID.canonical.z,Ge.tileID.canonical.x,Ge.tileID.canonical.y),this.uid=Ge.uid,this.zoom=Ge.zoom,this.pixelRatio=Ge.pixelRatio,this.tileSize=Ge.tileSize,this.source=Ge.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Ge.showCollisionBoxes,this.collectResourceTiming=!!Ge.collectResourceTiming,this.returnDependencies=!!Ge.returnDependencies,this.promoteId=Ge.promoteId,this.inFlightDependencies=[]}parse(Ge,Je,We,et){return i._(this,void 0,void 0,(function*(){this.status="parsing",this.data=Ge,this.collisionBoxArray=new i.a5;let xt=new i.bm(Object.keys(Ge.layers).sort()),At=new i.bn(this.tileID,this.promoteId);At.bucketLayerIDs=[];let Kt={},Qt={featureIndex:At,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:We},Mr=Je.familiesBySource[this.source];for(let Qn in Mr){let Vi=Ge.layers[Qn];if(!Vi)continue;Vi.version===1&&i.w(`Vector tile source "${this.source}" layer "${Qn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let Jn=xt.encode(Qn),Yn=[];for(let Gt=0;Gt=wt.maxzoom||wt.visibility!=="none"&&(l(Gt,this.zoom,We),(Kt[wt.id]=wt.createBucket({index:At.bucketLayerIDs.length,layers:Gt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Jn,sourceID:this.source})).populate(Yn,Qt,this.tileID.canonical),At.bucketLayerIDs.push(Gt.map((tr=>tr.id))))}}let Gr=i.aF(Qt.glyphDependencies,(Qn=>Object.keys(Qn).map(Number)));this.inFlightDependencies.forEach((Qn=>Qn==null?void 0:Qn.abort())),this.inFlightDependencies=[];let Ir=Promise.resolve({});if(Object.keys(Gr).length){let Qn=new AbortController;this.inFlightDependencies.push(Qn),Ir=et.sendAsync({type:"GG",data:{stacks:Gr,source:this.source,tileID:this.tileID,type:"glyphs"}},Qn)}let Yr=Object.keys(Qt.iconDependencies),_i=Promise.resolve({});if(Yr.length){let Qn=new AbortController;this.inFlightDependencies.push(Qn),_i=et.sendAsync({type:"GI",data:{icons:Yr,source:this.source,tileID:this.tileID,type:"icons"}},Qn)}let Pi=Object.keys(Qt.patternDependencies),ai=Promise.resolve({});if(Pi.length){let Qn=new AbortController;this.inFlightDependencies.push(Qn),ai=et.sendAsync({type:"GI",data:{icons:Pi,source:this.source,tileID:this.tileID,type:"patterns"}},Qn)}let[mi,un,Fn]=yield Promise.all([Ir,_i,ai]),An=new o(mi),Hn=new i.bo(un,Fn);for(let Qn in Kt){let Vi=Kt[Qn];Vi instanceof i.a6?(l(Vi.layers,this.zoom,We),i.bp({bucket:Vi,glyphMap:mi,glyphPositions:An.positions,imageMap:un,imagePositions:Hn.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):Vi.hasPattern&&(Vi instanceof i.bq||Vi instanceof i.br||Vi instanceof i.bs)&&(l(Vi.layers,this.zoom,We),Vi.addFeatures(Qt,this.tileID.canonical,Hn.patternPositions))}return this.status="done",{buckets:Object.values(Kt).filter((Qn=>!Qn.isEmpty())),featureIndex:At,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:An.image,imageAtlas:Hn,glyphMap:this.returnDependencies?mi:null,iconMap:this.returnDependencies?un:null,glyphPositions:this.returnDependencies?An.positions:null}}))}}function l(gt,Ge,Je){let We=new i.z(Ge);for(let et of gt)et.recalculate(We,Je)}class u{constructor(Ge,Je,We){this.actor=Ge,this.layerIndex=Je,this.availableImages=We,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Ge,Je){return i._(this,void 0,void 0,(function*(){let We=yield i.l(Ge.request,Je);try{return{vectorTile:new i.bt.VectorTile(new i.bu(We.data)),rawData:We.data,cacheControl:We.cacheControl,expires:We.expires}}catch(et){let xt=new Uint8Array(We.data),At=`Unable to parse the tile at ${Ge.request.url}, `;throw At+=xt[0]===31&&xt[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${et.message}`,new Error(At)}}))}loadTile(Ge){return i._(this,void 0,void 0,(function*(){let Je=Ge.uid,We=!!(Ge&&Ge.request&&Ge.request.collectResourceTiming)&&new i.bv(Ge.request),et=new s(Ge);this.loading[Je]=et;let xt=new AbortController;et.abort=xt;try{let At=yield this.loadVectorTile(Ge,xt);if(delete this.loading[Je],!At)return null;let Kt=At.rawData,Qt={};At.expires&&(Qt.expires=At.expires),At.cacheControl&&(Qt.cacheControl=At.cacheControl);let Mr={};if(We){let Ir=We.finish();Ir&&(Mr.resourceTiming=JSON.parse(JSON.stringify(Ir)))}et.vectorTile=At.vectorTile;let Gr=et.parse(At.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Je]=et,this.fetching[Je]={rawTileData:Kt,cacheControl:Qt,resourceTiming:Mr};try{let Ir=yield Gr;return i.e({rawTileData:Kt.slice(0)},Ir,Qt,Mr)}finally{delete this.fetching[Je]}}catch(At){throw delete this.loading[Je],et.status="done",this.loaded[Je]=et,At}}))}reloadTile(Ge){return i._(this,void 0,void 0,(function*(){let Je=Ge.uid;if(!this.loaded||!this.loaded[Je])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let We=this.loaded[Je];if(We.showCollisionBoxes=Ge.showCollisionBoxes,We.status==="parsing"){let et=yield We.parse(We.vectorTile,this.layerIndex,this.availableImages,this.actor),xt;if(this.fetching[Je]){let{rawTileData:At,cacheControl:Kt,resourceTiming:Qt}=this.fetching[Je];delete this.fetching[Je],xt=i.e({rawTileData:At.slice(0)},et,Kt,Qt)}else xt=et;return xt}if(We.status==="done"&&We.vectorTile)return We.parse(We.vectorTile,this.layerIndex,this.availableImages,this.actor)}))}abortTile(Ge){return i._(this,void 0,void 0,(function*(){let Je=this.loading,We=Ge.uid;Je&&Je[We]&&Je[We].abort&&(Je[We].abort.abort(),delete Je[We])}))}removeTile(Ge){return i._(this,void 0,void 0,(function*(){this.loaded&&this.loaded[Ge.uid]&&delete this.loaded[Ge.uid]}))}}class c{constructor(){this.loaded={}}loadTile(Ge){return i._(this,void 0,void 0,(function*(){let{uid:Je,encoding:We,rawImageData:et,redFactor:xt,greenFactor:At,blueFactor:Kt,baseShift:Qt}=Ge,Mr=et.width+2,Gr=et.height+2,Ir=i.b(et)?new i.R({width:Mr,height:Gr},yield i.bw(et,-1,-1,Mr,Gr)):et,Yr=new i.bx(Je,Ir,We,xt,At,Kt,Qt);return this.loaded=this.loaded||{},this.loaded[Je]=Yr,Yr}))}removeTile(Ge){let Je=this.loaded,We=Ge.uid;Je&&Je[We]&&delete Je[We]}}function f(gt,Ge){if(gt.length!==0){h(gt[0],Ge);for(var Je=1;Je=Math.abs(Kt)?Je-Qt+Kt:Kt-Qt+Je,Je=Qt}Je+We>=0!=!!Ge&>.reverse()}var d=i.by((function gt(Ge,Je){var We,et=Ge&&Ge.type;if(et==="FeatureCollection")for(We=0;We>31}function q(gt,Ge){for(var Je=gt.loadGeometry(),We=gt.type,et=0,xt=0,At=Je.length,Kt=0;Ktgt},j=Math.fround||(N=new Float32Array(1),gt=>(N[0]=+gt,N[0]));var N;let H=3,re=5,ae=6;class _e{constructor(Ge){this.options=Object.assign(Object.create(Z),Ge),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Ge){let{log:Je,minZoom:We,maxZoom:et}=this.options;Je&&console.time("total time");let xt=`prepare ${Ge.length} points`;Je&&console.time(xt),this.points=Ge;let At=[];for(let Qt=0;Qt=We;Qt--){let Mr=+Date.now();Kt=this.trees[Qt]=this._createTree(this._cluster(Kt,Qt)),Je&&console.log("z%d: %d clusters in %dms",Qt,Kt.numItems,+Date.now()-Mr)}return Je&&console.timeEnd("total time"),this}getClusters(Ge,Je){let We=((Ge[0]+180)%360+360)%360-180,et=Math.max(-90,Math.min(90,Ge[1])),xt=Ge[2]===180?180:((Ge[2]+180)%360+360)%360-180,At=Math.max(-90,Math.min(90,Ge[3]));if(Ge[2]-Ge[0]>=360)We=-180,xt=180;else if(We>xt){let Ir=this.getClusters([We,et,180,At],Je),Yr=this.getClusters([-180,et,xt,At],Je);return Ir.concat(Yr)}let Kt=this.trees[this._limitZoom(Je)],Qt=Kt.range(ge(We),ie(At),ge(xt),ie(et)),Mr=Kt.data,Gr=[];for(let Ir of Qt){let Yr=this.stride*Ir;Gr.push(Mr[Yr+re]>1?Ee(Mr,Yr,this.clusterProps):this.points[Mr[Yr+H]])}return Gr}getChildren(Ge){let Je=this._getOriginId(Ge),We=this._getOriginZoom(Ge),et="No cluster with the specified id.",xt=this.trees[We];if(!xt)throw new Error(et);let At=xt.data;if(Je*this.stride>=At.length)throw new Error(et);let Kt=this.options.radius/(this.options.extent*Math.pow(2,We-1)),Qt=xt.within(At[Je*this.stride],At[Je*this.stride+1],Kt),Mr=[];for(let Gr of Qt){let Ir=Gr*this.stride;At[Ir+4]===Ge&&Mr.push(At[Ir+re]>1?Ee(At,Ir,this.clusterProps):this.points[At[Ir+H]])}if(Mr.length===0)throw new Error(et);return Mr}getLeaves(Ge,Je,We){let et=[];return this._appendLeaves(et,Ge,Je=Je||10,We=We||0,0),et}getTile(Ge,Je,We){let et=this.trees[this._limitZoom(Ge)],xt=Math.pow(2,Ge),{extent:At,radius:Kt}=this.options,Qt=Kt/At,Mr=(We-Qt)/xt,Gr=(We+1+Qt)/xt,Ir={features:[]};return this._addTileFeatures(et.range((Je-Qt)/xt,Mr,(Je+1+Qt)/xt,Gr),et.data,Je,We,xt,Ir),Je===0&&this._addTileFeatures(et.range(1-Qt/xt,Mr,1,Gr),et.data,xt,We,xt,Ir),Je===xt-1&&this._addTileFeatures(et.range(0,Mr,Qt/xt,Gr),et.data,-1,We,xt,Ir),Ir.features.length?Ir:null}getClusterExpansionZoom(Ge){let Je=this._getOriginZoom(Ge)-1;for(;Je<=this.options.maxZoom;){let We=this.getChildren(Ge);if(Je++,We.length!==1)break;Ge=We[0].properties.cluster_id}return Je}_appendLeaves(Ge,Je,We,et,xt){let At=this.getChildren(Je);for(let Kt of At){let Qt=Kt.properties;if(Qt&&Qt.cluster?xt+Qt.point_count<=et?xt+=Qt.point_count:xt=this._appendLeaves(Ge,Qt.cluster_id,We,et,xt):xt1,Gr,Ir,Yr;if(Mr)Gr=Ce(Je,Qt,this.clusterProps),Ir=Je[Qt],Yr=Je[Qt+1];else{let ai=this.points[Je[Qt+H]];Gr=ai.properties;let[mi,un]=ai.geometry.coordinates;Ir=ge(mi),Yr=ie(un)}let _i={type:1,geometry:[[Math.round(this.options.extent*(Ir*xt-We)),Math.round(this.options.extent*(Yr*xt-et))]],tags:Gr},Pi;Pi=Mr||this.options.generateId?Je[Qt+H]:this.points[Je[Qt+H]].id,Pi!==void 0&&(_i.id=Pi),At.features.push(_i)}}_limitZoom(Ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ge),this.options.maxZoom+1))}_cluster(Ge,Je){let{radius:We,extent:et,reduce:xt,minPoints:At}=this.options,Kt=We/(et*Math.pow(2,Je)),Qt=Ge.data,Mr=[],Gr=this.stride;for(let Ir=0;IrJe&&(mi+=Qt[Fn+re])}if(mi>ai&&mi>=At){let un,Fn=Yr*ai,An=_i*ai,Hn=-1,Qn=((Ir/Gr|0)<<5)+(Je+1)+this.points.length;for(let Vi of Pi){let Jn=Vi*Gr;if(Qt[Jn+2]<=Je)continue;Qt[Jn+2]=Je;let Yn=Qt[Jn+re];Fn+=Qt[Jn]*Yn,An+=Qt[Jn+1]*Yn,Qt[Jn+4]=Qn,xt&&(un||(un=this._map(Qt,Ir,!0),Hn=this.clusterProps.length,this.clusterProps.push(un)),xt(un,this._map(Qt,Jn)))}Qt[Ir+4]=Qn,Mr.push(Fn/mi,An/mi,1/0,Qn,-1,mi),xt&&Mr.push(Hn)}else{for(let un=0;un1)for(let un of Pi){let Fn=un*Gr;if(!(Qt[Fn+2]<=Je)){Qt[Fn+2]=Je;for(let An=0;An>5}_getOriginZoom(Ge){return(Ge-this.points.length)%32}_map(Ge,Je,We){if(Ge[Je+re]>1){let At=this.clusterProps[Ge[Je+ae]];return We?Object.assign({},At):At}let et=this.points[Ge[Je+H]].properties,xt=this.options.map(et);return We&&xt===et?Object.assign({},xt):xt}}function Ee(gt,Ge,Je){return{type:"Feature",id:gt[Ge+H],properties:Ce(gt,Ge,Je),geometry:{type:"Point",coordinates:[(We=gt[Ge],360*(We-.5)),Se(gt[Ge+1])]}};var We}function Ce(gt,Ge,Je){let We=gt[Ge+re],et=We>=1e4?`${Math.round(We/1e3)}k`:We>=1e3?Math.round(We/100)/10+"k":We,xt=gt[Ge+ae],At=xt===-1?{}:Object.assign({},Je[xt]);return Object.assign(At,{cluster:!0,cluster_id:gt[Ge+H],point_count:We,point_count_abbreviated:et})}function ge(gt){return gt/360+.5}function ie(gt){let Ge=Math.sin(gt*Math.PI/180),Je=.5-.25*Math.log((1+Ge)/(1-Ge))/Math.PI;return Je<0?0:Je>1?1:Je}function Se(gt){let Ge=(180-360*gt)*Math.PI/180;return 360*Math.atan(Math.exp(Ge))/Math.PI-90}function ke(gt,Ge,Je,We){let et=We,xt=Ge+(Je-Ge>>1),At,Kt=Je-Ge,Qt=gt[Ge],Mr=gt[Ge+1],Gr=gt[Je],Ir=gt[Je+1];for(let Yr=Ge+3;Yret)At=Yr,et=_i;else if(_i===et){let Pi=Math.abs(Yr-xt);PiWe&&(At-Ge>3&&ke(gt,Ge,At,We),gt[At+2]=et,Je-At>3&&ke(gt,At,Je,We))}function be(gt,Ge,Je,We,et,xt){let At=et-Je,Kt=xt-We;if(At!==0||Kt!==0){let Qt=((gt-Je)*At+(Ge-We)*Kt)/(At*At+Kt*Kt);Qt>1?(Je=et,We=xt):Qt>0&&(Je+=At*Qt,We+=Kt*Qt)}return At=gt-Je,Kt=Ge-We,At*At+Kt*Kt}function Be(gt,Ge,Je,We){let et={id:gt==null?null:gt,type:Ge,geometry:Je,tags:We,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Ge==="Point"||Ge==="MultiPoint"||Ge==="LineString")Le(et,Je);else if(Ge==="Polygon")Le(et,Je[0]);else if(Ge==="MultiLineString")for(let xt of Je)Le(et,xt);else if(Ge==="MultiPolygon")for(let xt of Je)Le(et,xt[0]);return et}function Le(gt,Ge){for(let Je=0;Je0&&(At+=We?(et*Gr-Mr*xt)/2:Math.sqrt(Math.pow(Mr-et,2)+Math.pow(Gr-xt,2))),et=Mr,xt=Gr}let Kt=Ge.length-3;Ge[2]=1,ke(Ge,0,Kt,Je),Ge[Kt+2]=1,Ge.size=Math.abs(At),Ge.start=0,Ge.end=Ge.size}function He(gt,Ge,Je,We){for(let et=0;et1?1:Je}function Ht(gt,Ge,Je,We,et,xt,At,Kt){if(We/=Ge,xt>=(Je/=Ge)&&At=We)return null;let Qt=[];for(let Mr of gt){let Gr=Mr.geometry,Ir=Mr.type,Yr=et===0?Mr.minX:Mr.minY,_i=et===0?Mr.maxX:Mr.maxY;if(Yr>=Je&&_i=We)continue;let Pi=[];if(Ir==="Point"||Ir==="MultiPoint")at(Gr,Pi,Je,We,et);else if(Ir==="LineString")ct(Gr,Pi,Je,We,et,!1,Kt.lineMetrics);else if(Ir==="MultiLineString")Vt(Gr,Pi,Je,We,et,!1);else if(Ir==="Polygon")Vt(Gr,Pi,Je,We,et,!0);else if(Ir==="MultiPolygon")for(let ai of Gr){let mi=[];Vt(ai,mi,Je,We,et,!0),mi.length&&Pi.push(mi)}if(Pi.length){if(Kt.lineMetrics&&Ir==="LineString"){for(let ai of Pi)Qt.push(Be(Mr.id,Ir,ai,Mr.tags));continue}Ir!=="LineString"&&Ir!=="MultiLineString"||(Pi.length===1?(Ir="LineString",Pi=Pi[0]):Ir="MultiLineString"),Ir!=="Point"&&Ir!=="MultiPoint"||(Ir=Pi.length===3?"Point":"MultiPoint"),Qt.push(Be(Mr.id,Ir,Pi,Mr.tags))}}return Qt.length?Qt:null}function at(gt,Ge,Je,We,et){for(let xt=0;xt=Je&&At<=We&&rr(Ge,gt[xt],gt[xt+1],gt[xt+2])}}function ct(gt,Ge,Je,We,et,xt,At){let Kt=ar(gt),Qt=et===0?tt:je,Mr,Gr,Ir=gt.start;for(let mi=0;miJe&&(Gr=Qt(Kt,un,Fn,Hn,Qn,Je),At&&(Kt.start=Ir+Mr*Gr)):Vi>We?Jn=Je&&(Gr=Qt(Kt,un,Fn,Hn,Qn,Je),Yn=!0),Jn>We&&Vi<=We&&(Gr=Qt(Kt,un,Fn,Hn,Qn,We),Yn=!0),!xt&&Yn&&(At&&(Kt.end=Ir+Mr*Gr),Ge.push(Kt),Kt=ar(gt)),At&&(Ir+=Mr)}let Yr=gt.length-3,_i=gt[Yr],Pi=gt[Yr+1],ai=et===0?_i:Pi;ai>=Je&&ai<=We&&rr(Kt,_i,Pi,gt[Yr+2]),Yr=Kt.length-3,xt&&Yr>=3&&(Kt[Yr]!==Kt[0]||Kt[Yr+1]!==Kt[1])&&rr(Kt,Kt[0],Kt[1],Kt[2]),Kt.length&&Ge.push(Kt)}function ar(gt){let Ge=[];return Ge.size=gt.size,Ge.start=gt.start,Ge.end=gt.end,Ge}function Vt(gt,Ge,Je,We,et,xt){for(let At of gt)ct(At,Ge,Je,We,et,xt,!1)}function rr(gt,Ge,Je,We){gt.push(Ge,Je,We)}function tt(gt,Ge,Je,We,et,xt){let At=(xt-Ge)/(We-Ge);return rr(gt,xt,Je+(et-Je)*At,1),At}function je(gt,Ge,Je,We,et,xt){let At=(xt-Je)/(et-Je);return rr(gt,Ge+(We-Ge)*At,xt,1),At}function Ue(gt,Ge){let Je=[];for(let We=0;We0&&Ge.size<(et?At:We))return void(Je.numPoints+=Ge.length/3);let Kt=[];for(let Qt=0;QtAt)&&(Je.numSimplified++,Kt.push(Ge[Qt],Ge[Qt+1])),Je.numPoints++;et&&(function(Qt,Mr){let Gr=0;for(let Ir=0,Yr=Qt.length,_i=Yr-2;Ir0===Mr)for(let Ir=0,Yr=Qt.length;Ir24)throw new Error("maxZoom should be in the 0-24 range");if(Je.promoteId&&Je.generateId)throw new Error("promoteId and generateId cannot be used together.");let et=(function(xt,At){let Kt=[];if(xt.type==="FeatureCollection")for(let Qt=0;Qt1&&console.time("creation"),_i=this.tiles[Yr]=Tt(Ge,Je,We,et,Mr),this.tileCoords.push({z:Je,x:We,y:et}),Gr)){Gr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Je,We,et,_i.numFeatures,_i.numPoints,_i.numSimplified),console.timeEnd("creation"));let Yn=`z${Je}`;this.stats[Yn]=(this.stats[Yn]||0)+1,this.total++}if(_i.source=Ge,xt==null){if(Je===Mr.indexMaxZoom||_i.numPoints<=Mr.indexMaxPoints)continue}else{if(Je===Mr.maxZoom||Je===xt)continue;if(xt!=null){let Yn=xt-Je;if(We!==At>>Yn||et!==Kt>>Yn)continue}}if(_i.source=null,Ge.length===0)continue;Gr>1&&console.time("clipping");let Pi=.5*Mr.buffer/Mr.extent,ai=.5-Pi,mi=.5+Pi,un=1+Pi,Fn=null,An=null,Hn=null,Qn=null,Vi=Ht(Ge,Ir,We-Pi,We+mi,0,_i.minX,_i.maxX,Mr),Jn=Ht(Ge,Ir,We+ai,We+un,0,_i.minX,_i.maxX,Mr);Ge=null,Vi&&(Fn=Ht(Vi,Ir,et-Pi,et+mi,1,_i.minY,_i.maxY,Mr),An=Ht(Vi,Ir,et+ai,et+un,1,_i.minY,_i.maxY,Mr),Vi=null),Jn&&(Hn=Ht(Jn,Ir,et-Pi,et+mi,1,_i.minY,_i.maxY,Mr),Qn=Ht(Jn,Ir,et+ai,et+un,1,_i.minY,_i.maxY,Mr),Jn=null),Gr>1&&console.timeEnd("clipping"),Qt.push(Fn||[],Je+1,2*We,2*et),Qt.push(An||[],Je+1,2*We,2*et+1),Qt.push(Hn||[],Je+1,2*We+1,2*et),Qt.push(Qn||[],Je+1,2*We+1,2*et+1)}}getTile(Ge,Je,We){Ge=+Ge,Je=+Je,We=+We;let et=this.options,{extent:xt,debug:At}=et;if(Ge<0||Ge>24)return null;let Kt=1<1&&console.log("drilling down to z%d-%d-%d",Ge,Je,We);let Mr,Gr=Ge,Ir=Je,Yr=We;for(;!Mr&&Gr>0;)Gr--,Ir>>=1,Yr>>=1,Mr=this.tiles[or(Gr,Ir,Yr)];return Mr&&Mr.source?(At>1&&(console.log("found parent tile z%d-%d-%d",Gr,Ir,Yr),console.time("drilling down")),this.splitTile(Mr.source,Gr,Ir,Yr,Ge,Je,We),At>1&&console.timeEnd("drilling down"),this.tiles[Qt]?rt(this.tiles[Qt],xt):null):null}}function or(gt,Ge,Je){return 32*((1<{Ir.properties=_i;let Pi={};for(let ai of Yr)Pi[ai]=Qt[ai].evaluate(Gr,Ir);return Pi},At.reduce=(_i,Pi)=>{Ir.properties=Pi;for(let ai of Yr)Gr.accumulated=_i[ai],_i[ai]=Mr[ai].evaluate(Gr,Ir)},At})(Ge)).load((yield this._pendingData).features):(et=yield this._pendingData,new jt(et,Ge.geojsonVtOptions)),this.loaded={};let xt={};if(We){let At=We.finish();At&&(xt.resourceTiming={},xt.resourceTiming[Ge.source]=JSON.parse(JSON.stringify(At)))}return xt}catch(xt){if(delete this._pendingRequest,i.bB(xt))return{abandoned:!0};throw xt}var et}))}getData(){return i._(this,void 0,void 0,(function*(){return this._pendingData}))}reloadTile(Ge){let Je=this.loaded;return Je&&Je[Ge.uid]?super.reloadTile(Ge):this.loadTile(Ge)}loadAndProcessGeoJSON(Ge,Je){return i._(this,void 0,void 0,(function*(){let We=yield this.loadGeoJSON(Ge,Je);if(delete this._pendingRequest,typeof We!="object")throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(d(We,!0),Ge.filter){let et=i.bC(Ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(et.result==="error")throw new Error(et.value.map((At=>`${At.key}: ${At.message}`)).join(", "));We={type:"FeatureCollection",features:We.features.filter((At=>et.value.evaluate({zoom:0},At)))}}return We}))}loadGeoJSON(Ge,Je){return i._(this,void 0,void 0,(function*(){let{promoteId:We}=Ge;if(Ge.request){let et=yield i.h(Ge.request,Je);return this._dataUpdateable=Ar(et.data,We)?ei(et.data,We):void 0,et.data}if(typeof Ge.data=="string")try{let et=JSON.parse(Ge.data);return this._dataUpdateable=Ar(et,We)?ei(et,We):void 0,et}catch(et){throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`)}if(!Ge.dataDiff)throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${Ge.source}`);return(function(et,xt,At){var Kt,Qt,Mr,Gr;if(xt.removeAll&&et.clear(),xt.remove)for(let Ir of xt.remove)et.delete(Ir);if(xt.add)for(let Ir of xt.add){let Yr=mr(Ir,At);Yr!=null&&et.set(Yr,Ir)}if(xt.update)for(let Ir of xt.update){let Yr=et.get(Ir.id);if(Yr==null)continue;let _i=!Ir.removeAllProperties&&(((Kt=Ir.removeProperties)===null||Kt===void 0?void 0:Kt.length)>0||((Qt=Ir.addOrUpdateProperties)===null||Qt===void 0?void 0:Qt.length)>0);if((Ir.newGeometry||Ir.removeAllProperties||_i)&&(Yr=Object.assign({},Yr),et.set(Ir.id,Yr),_i&&(Yr.properties=Object.assign({},Yr.properties))),Ir.newGeometry&&(Yr.geometry=Ir.newGeometry),Ir.removeAllProperties)Yr.properties={};else if(((Mr=Ir.removeProperties)===null||Mr===void 0?void 0:Mr.length)>0)for(let Pi of Ir.removeProperties)Object.prototype.hasOwnProperty.call(Yr.properties,Pi)&&delete Yr.properties[Pi];if(((Gr=Ir.addOrUpdateProperties)===null||Gr===void 0?void 0:Gr.length)>0)for(let{key:Pi,value:ai}of Ir.addOrUpdateProperties)Yr.properties[Pi]=ai}})(this._dataUpdateable,Ge.dataDiff,We),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}}))}removeSource(Ge){return i._(this,void 0,void 0,(function*(){this._pendingRequest&&this._pendingRequest.abort()}))}getClusterExpansionZoom(Ge){return this._geoJSONIndex.getClusterExpansionZoom(Ge.clusterId)}getClusterChildren(Ge){return this._geoJSONIndex.getChildren(Ge.clusterId)}getClusterLeaves(Ge){return this._geoJSONIndex.getLeaves(Ge.clusterId,Ge.limit,Ge.offset)}}class jr{constructor(Ge){this.self=Ge,this.actor=new i.F(Ge),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Je,We)=>{if(this.externalWorkerSourceTypes[Je])throw new Error(`Worker source with name "${Je}" already registered.`);this.externalWorkerSourceTypes[Je]=We},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Je=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Je)},this.actor.registerMessageHandler("LDT",((Je,We)=>this._getDEMWorkerSource(Je,We.source).loadTile(We))),this.actor.registerMessageHandler("RDT",((Je,We)=>i._(this,void 0,void 0,(function*(){this._getDEMWorkerSource(Je,We.source).removeTile(We)})))),this.actor.registerMessageHandler("GCEZ",((Je,We)=>i._(this,void 0,void 0,(function*(){return this._getWorkerSource(Je,We.type,We.source).getClusterExpansionZoom(We)})))),this.actor.registerMessageHandler("GCC",((Je,We)=>i._(this,void 0,void 0,(function*(){return this._getWorkerSource(Je,We.type,We.source).getClusterChildren(We)})))),this.actor.registerMessageHandler("GCL",((Je,We)=>i._(this,void 0,void 0,(function*(){return this._getWorkerSource(Je,We.type,We.source).getClusterLeaves(We)})))),this.actor.registerMessageHandler("LD",((Je,We)=>this._getWorkerSource(Je,We.type,We.source).loadData(We))),this.actor.registerMessageHandler("GD",((Je,We)=>this._getWorkerSource(Je,We.type,We.source).getData())),this.actor.registerMessageHandler("LT",((Je,We)=>this._getWorkerSource(Je,We.type,We.source).loadTile(We))),this.actor.registerMessageHandler("RT",((Je,We)=>this._getWorkerSource(Je,We.type,We.source).reloadTile(We))),this.actor.registerMessageHandler("AT",((Je,We)=>this._getWorkerSource(Je,We.type,We.source).abortTile(We))),this.actor.registerMessageHandler("RMT",((Je,We)=>this._getWorkerSource(Je,We.type,We.source).removeTile(We))),this.actor.registerMessageHandler("RS",((Je,We)=>i._(this,void 0,void 0,(function*(){if(!this.workerSources[Je]||!this.workerSources[Je][We.type]||!this.workerSources[Je][We.type][We.source])return;let et=this.workerSources[Je][We.type][We.source];delete this.workerSources[Je][We.type][We.source],et.removeSource!==void 0&&et.removeSource(We)})))),this.actor.registerMessageHandler("RM",(Je=>i._(this,void 0,void 0,(function*(){delete this.layerIndexes[Je],delete this.availableImages[Je],delete this.workerSources[Je],delete this.demWorkerSources[Je]})))),this.actor.registerMessageHandler("SR",((Je,We)=>i._(this,void 0,void 0,(function*(){this.referrer=We})))),this.actor.registerMessageHandler("SRPS",((Je,We)=>this._syncRTLPluginState(Je,We))),this.actor.registerMessageHandler("IS",((Je,We)=>i._(this,void 0,void 0,(function*(){this.self.importScripts(We)})))),this.actor.registerMessageHandler("SI",((Je,We)=>this._setImages(Je,We))),this.actor.registerMessageHandler("UL",((Je,We)=>i._(this,void 0,void 0,(function*(){this._getLayerIndex(Je).update(We.layers,We.removedIds)})))),this.actor.registerMessageHandler("SL",((Je,We)=>i._(this,void 0,void 0,(function*(){this._getLayerIndex(Je).replace(We)}))))}_setImages(Ge,Je){return i._(this,void 0,void 0,(function*(){this.availableImages[Ge]=Je;for(let We in this.workerSources[Ge]){let et=this.workerSources[Ge][We];for(let xt in et)et[xt].availableImages=Je}}))}_syncRTLPluginState(Ge,Je){return i._(this,void 0,void 0,(function*(){if(i.bD.isParsed())return i.bD.getState();if(Je.pluginStatus!=="loading")return i.bD.setState(Je),Je;let We=Je.pluginURL;if(this.self.importScripts(We),i.bD.isParsed()){let et={pluginStatus:"loaded",pluginURL:We};return i.bD.setState(et),et}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${We}`)}))}_getAvailableImages(Ge){let Je=this.availableImages[Ge];return Je||(Je=[]),Je}_getLayerIndex(Ge){let Je=this.layerIndexes[Ge];return Je||(Je=this.layerIndexes[Ge]=new a),Je}_getWorkerSource(Ge,Je,We){if(this.workerSources[Ge]||(this.workerSources[Ge]={}),this.workerSources[Ge][Je]||(this.workerSources[Ge][Je]={}),!this.workerSources[Ge][Je][We]){let et={sendAsync:(xt,At)=>(xt.targetMapId=Ge,this.actor.sendAsync(xt,At))};switch(Je){case"vector":this.workerSources[Ge][Je][We]=new u(et,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;case"geojson":this.workerSources[Ge][Je][We]=new qr(et,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;default:this.workerSources[Ge][Je][We]=new this.externalWorkerSourceTypes[Je](et,this._getLayerIndex(Ge),this._getAvailableImages(Ge))}}return this.workerSources[Ge][Je][We]}_getDEMWorkerSource(Ge,Je){return this.demWorkerSources[Ge]||(this.demWorkerSources[Ge]={}),this.demWorkerSources[Ge][Je]||(this.demWorkerSources[Ge][Je]=new c),this.demWorkerSources[Ge][Je]}}return i.i(self)&&(self.worker=new jr(self)),jr})),r("index",["exports","./shared"],(function(i,a){"use strict";var o="4.7.1";let s,l,u={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise(((w,B)=>{let Q=requestAnimationFrame(w);ue.signal.addEventListener("abort",(()=>{cancelAnimationFrame(Q),B(a.c())}))})),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),B=w.getContext("2d",{willReadFrequently:!0});if(!B)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,B.drawImage(ue,0,0,ue.width,ue.height),B},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l==null&&(l=matchMedia("(prefers-reduced-motion: reduce)")),l.matches)}};class c{static testProp(w){if(!c.docStyle)return w[0];for(let B=0;B{window.removeEventListener("click",c.suppressClickInternal,!0)}),0)}static getScale(w){let B=w.getBoundingClientRect();return{x:B.width/w.offsetWidth||1,y:B.height/w.offsetHeight||1,boundingClientRect:B}}static getPoint(w,B,Q){let ee=B.boundingClientRect;return new a.P((Q.clientX-ee.left)/B.x-w.clientLeft,(Q.clientY-ee.top)/B.y-w.clientTop)}static mousePos(w,B){let Q=c.getScale(w);return c.getPoint(w,Q,B)}static touchPos(w,B){let Q=[],ee=c.getScale(w);for(let le=0;le{h&&b(h),h=null,m=!0},d.onerror=()=>{v=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),(function(ue){let w,B,Q,ee;ue.resetRequestQueue=()=>{w=[],B=0,Q=0,ee={}},ue.addThrottleControl=ut=>{let Mt=Q++;return ee[Mt]=ut,Mt},ue.removeThrottleControl=ut=>{delete ee[ut],Fe()},ue.getImage=(ut,Mt,Jt=!0)=>new Promise((($t,yr)=>{f.supported&&(ut.headers||(ut.headers={}),ut.headers.accept="image/webp,*/*"),a.e(ut,{type:"image"}),w.push({abortController:Mt,requestParameters:ut,supportImageRefresh:Jt,state:"queued",onError:Cr=>{yr(Cr)},onSuccess:Cr=>{$t(Cr)}}),Fe()}));let le=ut=>a._(this,void 0,void 0,(function*(){ut.state="running";let{requestParameters:Mt,supportImageRefresh:Jt,onError:$t,onSuccess:yr,abortController:Cr}=ut,ve=Jt===!1&&!a.i(self)&&!a.g(Mt.url)&&(!Mt.headers||Object.keys(Mt.headers).reduce(((ze,Qe)=>ze&&Qe==="accept"),!0));B++;let xe=ve?Ze(Mt,Cr):a.m(Mt,Cr);try{let ze=yield xe;delete ut.abortController,ut.state="completed",ze.data instanceof HTMLImageElement||a.b(ze.data)?yr(ze):ze.data&&yr({data:yield(Ie=ze.data,typeof createImageBitmap=="function"?a.d(Ie):a.f(Ie)),cacheControl:ze.cacheControl,expires:ze.expires})}catch(ze){delete ut.abortController,$t(ze)}finally{B--,Fe()}var Ie})),Fe=()=>{let ut=(()=>{for(let Mt of Object.keys(ee))if(ee[Mt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Mt=B;Mt0;Mt++){let Jt=w.shift();Jt.abortController.signal.aborted?Mt--:le(Jt)}},Ze=(ut,Mt)=>new Promise(((Jt,$t)=>{let yr=new Image,Cr=ut.url,ve=ut.credentials;ve&&ve==="include"?yr.crossOrigin="use-credentials":(ve&&ve==="same-origin"||!a.s(Cr))&&(yr.crossOrigin="anonymous"),Mt.signal.addEventListener("abort",(()=>{yr.src="",$t(a.c())})),yr.fetchPriority="high",yr.onload=()=>{yr.onerror=yr.onload=null,Jt({data:yr})},yr.onerror=()=>{yr.onerror=yr.onload=null,Mt.signal.aborted||$t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},yr.src=Cr}))})(p||(p={})),p.resetRequestQueue();class k{constructor(w){this._transformRequestFn=w}transformRequest(w,B){return this._transformRequestFn&&this._transformRequestFn(w,B)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function M(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var T,L=function(ue,w,B){return ue[0]=w[0]-B[0],ue[1]=w[1]-B[1],ue[2]=w[2]-B[2],ue};T=new a.A(3),a.A!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0);var x=function(ue){var w=ue[0],B=ue[1];return w*w+B*B};function C(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let B=[];for(let{id:Q,url:ee}of ue){let le=`${Q}${ee}`;B.indexOf(le)===-1&&(B.push(le),w.push({id:Q,url:ee}))}}return w}function S(ue,w,B){let Q=ue.split("?");return Q[0]+=`${w}${B}`,Q.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class g{constructor(w,B,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(B,ee)}update(w,B,Q){let{width:ee,height:le}=w,Fe=!(this.size&&this.size[0]===ee&&this.size[1]===le||Q),{context:Ze}=this,{gl:ut}=Ze;if(this.useMipmap=!!(B&&B.useMipmap),ut.bindTexture(ut.TEXTURE_2D,this.texture),Ze.pixelStoreUnpackFlipY.set(!1),Ze.pixelStoreUnpack.set(1),Ze.pixelStoreUnpackPremultiplyAlpha.set(this.format===ut.RGBA&&(!B||B.premultiply!==!1)),Fe)this.size=[ee,le],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ut.texImage2D(ut.TEXTURE_2D,0,this.format,this.format,ut.UNSIGNED_BYTE,w):ut.texImage2D(ut.TEXTURE_2D,0,this.format,ee,le,0,this.format,ut.UNSIGNED_BYTE,w.data);else{let{x:Mt,y:Jt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ut.texSubImage2D(ut.TEXTURE_2D,0,Mt,Jt,ut.RGBA,ut.UNSIGNED_BYTE,w):ut.texSubImage2D(ut.TEXTURE_2D,0,Mt,Jt,ee,le,ut.RGBA,ut.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&ut.generateMipmap(ut.TEXTURE_2D)}bind(w,B,Q){let{context:ee}=this,{gl:le}=ee;le.bindTexture(le.TEXTURE_2D,this.texture),Q!==le.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=le.LINEAR),w!==this.filter&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,w),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,Q||w),this.filter=w),B!==this.wrap&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,B),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,B),this.wrap=B)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class E extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:B,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(B));this.requestors=[]}}getImage(w){let B=this.images[w];if(B&&!B.data&&B.spriteData){let Q=B.spriteData;B.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),B.spriteData=null}return B}addImage(w,B){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,B)&&(this.images[w]=B)}_validate(w,B){let Q=!0,ee=B.data||B.spriteData;return this._validateStretch(B.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(B.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(B.content,B)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,B){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let le of w)this.images[le]||(ee=!1);this.isLoaded()||ee?B(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:B})}))}_getImagesForIds(w){let B={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?B[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return B}getPixelSize(){let{width:w,height:B}=this.atlasImage;return{width:w,height:B}}getPattern(w){let B=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(B&&B.position.version===Q.version)return B.position;if(B)B.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},le=new a.I(ee,Q);this.patterns[w]={bin:ee,position:le}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let B=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new g(w,this.atlasImage,B.RGBA),this.atlasTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let le in this.patterns)w.push(this.patterns[le].bin);let{w:B,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:B||1,height:Q||1});for(let le in this.patterns){let{bin:Fe}=this.patterns[le],Ze=Fe.x+1,ut=Fe.y+1,Mt=this.getImage(le).data,Jt=Mt.width,$t=Mt.height;a.R.copy(Mt,ee,{x:0,y:0},{x:Ze,y:ut},{width:Jt,height:$t}),a.R.copy(Mt,ee,{x:0,y:$t-1},{x:Ze,y:ut-1},{width:Jt,height:1}),a.R.copy(Mt,ee,{x:0,y:0},{x:Ze,y:ut+$t},{width:Jt,height:1}),a.R.copy(Mt,ee,{x:Jt-1,y:0},{x:Ze-1,y:ut},{width:1,height:$t}),a.R.copy(Mt,ee,{x:0,y:0},{x:Ze+Jt,y:ut},{width:1,height:$t})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let B of w){if(this.callbackDispatchedThisFrame[B])continue;this.callbackDispatchedThisFrame[B]=!0;let Q=this.getImage(B);Q||a.w(`Image with ID: "${B}" was not found`),P(Q)&&this.updateImage(B,Q)}}}let z=1e20;function q(ue,w,B,Q,ee,le,Fe,Ze,ut){for(let Mt=w;Mt-1);ut++,le[ut]=Ze,Fe[ut]=Mt,Fe[ut+1]=z}for(let Ze=0,ut=0;Ze65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[le])return{stack:w,id:B,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[le]){let Ze=G.loadGlyphRange(w,le,this.url,this.requestManager);Q.requests[le]=Ze}let Fe=yield Q.requests[le];for(let Ze in Fe)this._doesCharSupportLocalGlyph(+Ze)||(Q.glyphs[+Ze]=Fe[+Ze]);return Q.ranges[le]=!0,{stack:w,id:B,glyph:Fe[B]||null}}))}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,B,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let le=w.tinySDF;if(!le){let Ze="400";/bold/i.test(B)?Ze="900":/medium/i.test(B)?Ze="500":/light/i.test(B)&&(Ze="200"),le=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:Ze})}let Fe=le.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Fe.width||60,height:Fe.height||60},Fe.data),metrics:{width:Fe.glyphWidth/2||24,height:Fe.glyphHeight/2||24,left:Fe.glyphLeft/2+.5||0,top:Fe.glyphTop/2-27.5||-8,advance:Fe.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(ue,w,B,Q){return a._(this,void 0,void 0,(function*(){let ee=256*w,le=ee+255,Fe=Q.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${ee}-${le}`),"Glyphs"),Ze=yield a.l(Fe,new AbortController);if(!Ze||!Ze.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${le}`);let ut={};for(let Mt of a.n(Ze.data))ut[Mt.id]=Mt;return ut}))},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:le="normal",fontStyle:Fe="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=B;let Ze=this.size=ue+4*w,ut=this._createCanvas(Ze),Mt=this.ctx=ut.getContext("2d",{willReadFrequently:!0});Mt.font=`${Fe} ${le} ${ue}px ${ee}`,Mt.textBaseline="alphabetic",Mt.textAlign="left",Mt.fillStyle="black",this.gridOuter=new Float64Array(Ze*Ze),this.gridInner=new Float64Array(Ze*Ze),this.f=new Float64Array(Ze),this.z=new Float64Array(Ze+1),this.v=new Uint16Array(Ze)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:B,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:le}=this.ctx.measureText(ue),Fe=Math.ceil(B),Ze=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-ee))),ut=Math.min(this.size-this.buffer,Fe+Math.ceil(Q)),Mt=Ze+2*this.buffer,Jt=ut+2*this.buffer,$t=Math.max(Mt*Jt,0),yr=new Uint8ClampedArray($t),Cr={data:yr,width:Mt,height:Jt,glyphWidth:Ze,glyphHeight:ut,glyphTop:Fe,glyphLeft:0,glyphAdvance:w};if(Ze===0||ut===0)return Cr;let{ctx:ve,buffer:xe,gridInner:Ie,gridOuter:ze}=this;ve.clearRect(xe,xe,Ze,ut),ve.fillText(ue,xe,xe+Fe);let Qe=ve.getImageData(xe,xe,Ze,ut);ze.fill(z,0,$t),Ie.fill(0,0,$t);for(let Xe=0;Xe0?nr*nr:0,Ie[Wt]=nr<0?nr*nr:0}}q(ze,0,0,Mt,Jt,Mt,this.f,this.v,this.z),q(Ie,xe,xe,Ze,ut,Mt,this.f,this.v,this.z);for(let Xe=0;Xe<$t;Xe++){let nt=Math.sqrt(ze[Xe])-Math.sqrt(Ie[Xe]);yr[Xe]=Math.round(255-255*(nt/this.radius+this.cutoff))}return Cr}};class Z{constructor(){this.specification=a.v.light.position}possiblyEvaluate(w,B){return a.x(w.expression.evaluate(B))}interpolate(w,B,Q){return{x:a.y.number(w.x,B.x,Q),y:a.y.number(w.y,B.y,Q),z:a.y.number(w.z,B.z,Q)}}}let j;class N extends a.E{constructor(w){super(),j=j||new a.q({anchor:new a.D(a.v.light.anchor),position:new Z,color:new a.D(a.v.light.color),intensity:new a.D(a.v.light.intensity)}),this._transitionable=new a.T(j),this.setLight(w),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(w,B={}){if(!this._validate(a.r,w,B))for(let Q in w){let ee=w[Q];Q.endsWith("-transition")?this._transitionable.setTransition(Q.slice(0,-11),ee):this._transitionable.setValue(Q,ee)}}updateTransitions(w){this._transitioning=this._transitionable.transitioned(w,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(w){this.properties=this._transitioning.possiblyEvaluate(w)}_validate(w,B,Q){return(!Q||Q.validate!==!1)&&a.t(this,w.call(a.u,{value:B,style:{glyphs:!0,sprite:!0},styleSpec:a.v}))}}let H=new a.q({"sky-color":new a.D(a.v.sky["sky-color"]),"horizon-color":new a.D(a.v.sky["horizon-color"]),"fog-color":new a.D(a.v.sky["fog-color"]),"fog-ground-blend":new a.D(a.v.sky["fog-ground-blend"]),"horizon-fog-blend":new a.D(a.v.sky["horizon-fog-blend"]),"sky-horizon-blend":new a.D(a.v.sky["sky-horizon-blend"]),"atmosphere-blend":new a.D(a.v.sky["atmosphere-blend"])});class re extends a.E{constructor(w){super(),this._transitionable=new a.T(H),this.setSky(w),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new a.z(0))}setSky(w,B={}){if(!this._validate(a.B,w,B)){w||(w={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0});for(let Q in w){let ee=w[Q];Q.endsWith("-transition")?this._transitionable.setTransition(Q.slice(0,-11),ee):this._transitionable.setValue(Q,ee)}}}getSky(){return this._transitionable.serialize()}updateTransitions(w){this._transitioning=this._transitionable.transitioned(w,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(w){this.properties=this._transitioning.possiblyEvaluate(w)}_validate(w,B,Q={}){return(Q==null?void 0:Q.validate)!==!1&&a.t(this,w.call(a.u,a.e({value:B,style:{glyphs:!0,sprite:!0},styleSpec:a.v})))}calculateFogBlendOpacity(w){return w<60?0:w<70?(w-60)/10:1}}class ae{constructor(w,B){this.width=w,this.height=B,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(w,B){let Q=w.join(",")+String(B);return this.dashEntry[Q]||(this.dashEntry[Q]=this.addDash(w,B)),this.dashEntry[Q]}getDashRanges(w,B,Q){let ee=[],le=w.length%2==1?-w[w.length-1]*Q:0,Fe=w[0]*Q,Ze=!0;ee.push({left:le,right:Fe,isDash:Ze,zeroLength:w[0]===0});let ut=w[0];for(let Mt=1;Mt1&&(ut=w[++Ze]);let Jt=Math.abs(Mt-ut.left),$t=Math.abs(Mt-ut.right),yr=Math.min(Jt,$t),Cr,ve=le/Q*(ee+1);if(ut.isDash){let xe=ee-Math.abs(ve);Cr=Math.sqrt(yr*yr+xe*xe)}else Cr=ee-Math.sqrt(yr*yr+ve*ve);this.data[Fe+Mt]=Math.max(0,Math.min(255,Cr+128))}}}addRegularDash(w){for(let Ze=w.length-1;Ze>=0;--Ze){let ut=w[Ze],Mt=w[Ze+1];ut.zeroLength?w.splice(Ze,1):Mt&&Mt.isDash===ut.isDash&&(Mt.left=ut.left,w.splice(Ze,1))}let B=w[0],Q=w[w.length-1];B.isDash===Q.isDash&&(B.left=Q.left-this.width,Q.right=B.right+this.width);let ee=this.width*this.nextRow,le=0,Fe=w[le];for(let Ze=0;Ze1&&(Fe=w[++le]);let ut=Math.abs(Ze-Fe.left),Mt=Math.abs(Ze-Fe.right),Jt=Math.min(ut,Mt);this.data[ee+Ze]=Math.max(0,Math.min(255,(Fe.isDash?Jt:-Jt)+128))}}addDash(w,B){let Q=B?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let le=0;for(let Ze=0;Ze{B.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[_e]}numActive(){return Object.keys(this.active).length}}let Ce=Math.floor(u.hardwareConcurrency/2),ge,ie;function Se(){return ge||(ge=new Ee),ge}Ee.workerCount=a.C(globalThis)?Math.max(Math.min(Ce,3),1):1;class ke{constructor(w,B){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=B;let Q=this.workerPool.acquire(B);for(let ee=0;ee{B.remove()})),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,B){for(let Q of this.actors)Q.registerMessageHandler(w,B)}}function be(){return ie||(ie=new ke(Se(),a.G),ie.registerMessageHandler("GR",((ue,w,B)=>a.m(w,B)))),ie}function Be(ue,w){let B=a.H();return a.J(B,B,[1,1,0]),a.K(B,B,[.5*ue.width,.5*ue.height,1]),a.L(B,B,ue.calculatePosMatrix(w.toUnwrapped()))}function Le(ue,w,B,Q,ee,le){let Fe=(function($t,yr,Cr){if($t)for(let ve of $t){let xe=yr[ve];if(xe&&xe.source===Cr&&xe.type==="fill-extrusion")return!0}else for(let ve in yr){let xe=yr[ve];if(xe.source===Cr&&xe.type==="fill-extrusion")return!0}return!1})(ee&&ee.layers,w,ue.id),Ze=le.maxPitchScaleFactor(),ut=ue.tilesIn(Q,Ze,Fe);ut.sort(me);let Mt=[];for(let $t of ut)Mt.push({wrappedTileID:$t.tileID.wrapped().key,queryResults:$t.tile.queryRenderedFeatures(w,B,ue._state,$t.queryGeometry,$t.cameraQueryGeometry,$t.scale,ee,le,Ze,Be(ue.transform,$t.tileID))});let Jt=(function($t){let yr={},Cr={};for(let ve of $t){let xe=ve.queryResults,Ie=ve.wrappedTileID,ze=Cr[Ie]=Cr[Ie]||{};for(let Qe in xe){let Xe=xe[Qe],nt=ze[Qe]=ze[Qe]||{},qt=yr[Qe]=yr[Qe]||[];for(let Wt of Xe)nt[Wt.featureIndex]||(nt[Wt.featureIndex]=!0,qt.push(Wt))}}return yr})(Mt);for(let $t in Jt)Jt[$t].forEach((yr=>{let Cr=yr.feature,ve=ue.getFeatureState(Cr.layer["source-layer"],Cr.id);Cr.source=Cr.layer.source,Cr.layer["source-layer"]&&(Cr.sourceLayer=Cr.layer["source-layer"]),Cr.state=ve}));return Jt}function me(ue,w){let B=ue.tileID,Q=w.tileID;return B.overscaledZ-Q.overscaledZ||B.canonical.y-Q.canonical.y||B.wrap-Q.wrap||B.canonical.x-Q.canonical.x}function Pe(ue,w,B){return a._(this,void 0,void 0,(function*(){let Q=ue;if(ue.url?Q=(yield a.h(w.transformRequest(ue.url,"Source"),B)).data:yield u.frameAsync(B),!Q)return null;let ee=a.M(a.e(Q,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map((le=>le.id))),ee}))}class ce{constructor(w,B){w&&(B?this.setSouthWest(w).setNorthEast(B):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let B=this._sw,Q=this._ne,ee,le;if(w instanceof a.N)ee=w,le=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,le=w._ne,!ee||!le)return this}return B||Q?(B.lng=Math.min(ee.lng,B.lng),B.lat=Math.min(ee.lat,B.lat),Q.lng=Math.max(le.lng,Q.lng),Q.lat=Math.max(le.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(le.lng,le.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:B,lat:Q}=a.N.convert(w),ee=this._sw.lng<=B&&B<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=B&&B>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,B=0){let Q=360*B/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),B=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>B.lng?new a.N(B.lng+360,B.lat):B)}}class He{constructor(w,B,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=B||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let B=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*B),ee=Math.floor(a.Q(this.bounds.getNorth())*B),le=Math.ceil(a.O(this.bounds.getEast())*B),Fe=Math.ceil(a.Q(this.bounds.getSouth())*B);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w})),this}setUrl(w){return this.setSourceProperty((()=>{this.url=w,this._options.url=w})),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,(function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(B,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise(((le,Fe)=>{w.reloadPromise={resolve:le,reject:Fe}}))}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let le=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,le)}catch(le){if(delete w.abortController,w.aborted)return;if(le&&le.status!==404)throw le;this._afterTileLoadWorkerResponse(w,null)}}))}_afterTileLoadWorkerResponse(w,B){if(B&&B.resourceTiming&&(w.resourceTiming=B.resourceTiming),B&&this.map._refreshExpiredTiles&&w.setExpiryData(B),w.loadVectorData(B,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,(function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))}))}unloadTile(w){return a._(this,void 0,void 0,(function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))}))}hasTransition(){return!1}}class mt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},B),a.e(this,a.M(B,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,(function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Pe(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new He(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}}))}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty((()=>{this._options.tiles=w})),this}setUrl(w){return this.setSourceProperty((()=>{this.url=w,this._options.url=w})),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,(function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield p.getImage(this.map._requestManager.transformRequest(B,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,le=ee.gl,Fe=Q.data;w.texture=this.map.painter.getTileTexture(Fe.width),w.texture?w.texture.update(Fe,{useMipmap:!0}):(w.texture=new g(ee,Fe,le.RGBA,{useMipmap:!0}),w.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE,le.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}}))}abortTile(w){return a._(this,void 0,void 0,(function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)}))}unloadTile(w){return a._(this,void 0,void 0,(function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)}))}hasTransition(){return!1}}class Ht extends mt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},B),this.encoding=B.encoding||"mapbox",this.redFactor=B.redFactor,this.greenFactor=B.greenFactor,this.blueFactor=B.blueFactor,this.baseShift=B.baseShift}loadTile(w){return a._(this,void 0,void 0,(function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(B,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield p.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let le=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Fe=a.b(le)&&a.U()?le:yield this.readImageNow(le),Ze={type:this.type,uid:w.uid,source:this.id,rawImageData:Fe,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let ut=yield w.actor.sendAsync({type:"LDT",data:Ze});w.dem=ut,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}}))}readImageNow(w){return a._(this,void 0,void 0,(function*(){if(typeof VideoFrame!="undefined"&&a.V()){let B=w.width+2,Q=w.height+2;try{return new a.R({width:B,height:Q},yield a.W(w,-1,-1,B,Q))}catch(ee){}}return u.getImageData(w,1)}))}_getNeighboringTiles(w){let B=w.canonical,Q=Math.pow(2,B.z),ee=(B.x-1+Q)%Q,le=B.x===0?w.wrap-1:w.wrap,Fe=(B.x+1+Q)%Q,Ze=B.x+1===Q?w.wrap+1:w.wrap,ut={};return ut[new a.S(w.overscaledZ,le,B.z,ee,B.y).key]={backfilled:!1},ut[new a.S(w.overscaledZ,Ze,B.z,Fe,B.y).key]={backfilled:!1},B.y>0&&(ut[new a.S(w.overscaledZ,le,B.z,ee,B.y-1).key]={backfilled:!1},ut[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},ut[new a.S(w.overscaledZ,Ze,B.z,Fe,B.y-1).key]={backfilled:!1}),B.y+10&&a.e(le,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}}))}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,(function*(){let B=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:B,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,B==="RT")}))}abortTile(w){return a._(this,void 0,void 0,(function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0}))}unloadTile(w){return a._(this,void 0,void 0,(function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})}))}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var ct=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class ar extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=B}load(w){return a._(this,void 0,void 0,(function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let B=yield p.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,B&&B.data&&(this.image=B.data,w&&(this.coordinates=w),this._finishLoading())}catch(B){this._request=null,this._loaded=!0,this.fire(new a.j(B))}}))}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally((()=>{this.texture=null})),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let B=w.map(a.Z.fromLngLat);this.tileID=(function(ee){let le=1/0,Fe=1/0,Ze=-1/0,ut=-1/0;for(let yr of ee)le=Math.min(le,yr.x),Fe=Math.min(Fe,yr.y),Ze=Math.max(Ze,yr.x),ut=Math.max(ut,yr.y);let Mt=Math.max(Ze-le,ut-Fe),Jt=Math.max(0,Math.floor(-Math.log(Mt)/Math.LN2)),$t=Math.pow(2,Jt);return new a.a1(Jt,Math.floor((le+Ze)/2*$t),Math.floor((Fe+ut)/2*$t))})(B),this.minzoom=this.maxzoom=this.tileID.z;let Q=B.map((ee=>this.tileID.getTilePoint(ee)._round()));return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,ct.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new g(w,this.image,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,(function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"}))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Vt extends ar{constructor(w,B,Q,ee){super(w,B,Q,ee),this.roundZoom=!0,this.type="video",this.options=B}load(){return a._(this,void 0,void 0,(function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let B of w.urls)this.urls.push(this.map._requestManager.transformRequest(B,"Source").url);try{let B=yield a.a3(this.urls);if(this._loaded=!0,!B)return;this.video=B,this.video.loop=!0,this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading()}catch(B){this.fire(new a.j(B))}}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let B=this.video.seekable;wB.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${B.start(0)} and ${B.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,ct.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE),B.texSubImage2D(B.TEXTURE_2D,0,0,0,B.RGBA,B.UNSIGNED_BYTE,this.video)):(this.texture=new g(w,this.video,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class rr extends ar{constructor(w,B,Q,ee){super(w,B,Q,ee),B.coordinates?Array.isArray(B.coordinates)&&B.coordinates.length===4&&!B.coordinates.some((le=>!Array.isArray(le)||le.length!==2||le.some((Fe=>typeof Fe!="number"))))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas=="string"||B.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate===void 0||B.animate}load(){return a._(this,void 0,void 0,(function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}))}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let B=this.map.painter.context,Q=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,ct.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new g(B,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let le in this.tiles){let Fe=this.tiles[le];Fe.state!=="loaded"&&(Fe.state="loaded",Fe.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let tt={},je=ue=>{switch(ue){case"geojson":return at;case"image":return ar;case"raster":return mt;case"raster-dem":return Ht;case"vector":return lt;case"video":return Vt;case"canvas":return rr}return tt[ue]},Ue="RTLPluginLoaded";class Ae extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=be()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch((B=>{throw this.status="error",B}))}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,(function*(B,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=u.resolveURL(B),!this.url)throw new Error(`requested url ${B} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()}))}_requestImport(){return a._(this,void 0,void 0,(function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(Ue))}))}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let rt=null;function St(){return rt||(rt=new Ae),rt}class Tt{constructor(w,B){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=B,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let B=w+this.timeAdded;Ble.getLayer(Mt))).filter(Boolean);if(ut.length!==0){Ze.layers=ut,Ze.stateDependentLayerIds&&(Ze.stateDependentLayers=Ze.stateDependentLayerIds.map((Mt=>ut.filter((Jt=>Jt.id===Mt))[0])));for(let Mt of ut)Fe[Mt.id]=Ze}}return Fe})(w.buckets,B.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;le.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6&&le.hasRTLText){this.hasRTLText=!0,St().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let le=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,B.style.getLayer(ee).queryRadius(le))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let B=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new g(w,this.imageAtlas.image,B.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new g(w,this.glyphAtlasImage,B.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:le,scale:Fe,tileSize:this.tileSize,pixelPosMatrix:Jt,transform:ut,params:Ze,queryPadding:this.queryPadding*Mt},w,B,Q):{}}querySourceFeatures(w,B){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),le=B&&B.sourceLayer?B.sourceLayer:"",Fe=ee._geojsonTileLayer||ee[le];if(!Fe)return;let Ze=a.a7(B&&B.filter),{z:ut,x:Mt,y:Jt}=this.tileID.canonical,$t={z:ut,x:Mt,y:Jt};for(let yr=0;yrQ)ee=!1;else if(B)if(this.expirationTime{this.remove(w,le)}),Q)),this.data[ee].push(le),this.order.push(ee),this.order.length>this.max){let Fe=this._getAndRemoveByKey(this.order[0]);Fe&&this.onRemove(Fe)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let B=this.data[w].shift();return B.timeout&&clearTimeout(B.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),B.value}getByKey(w){let B=this.data[w];return B?B[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,B){if(!this.has(w))return this;let Q=w.wrapped().key,ee=B===void 0?0:this.data[Q].indexOf(B),le=this.data[Q][ee];return this.data[Q].splice(ee,1),le.timeout&&clearTimeout(le.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(le.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let B=this._getAndRemoveByKey(this.order[0]);B&&this.onRemove(B)}return this}filter(w){let B=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||B.push(ee);for(let Q of B)this.remove(Q.value.tileID,Q)}}class Et{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,B,Q){let ee=String(B);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let le in this.state[w])le!==ee&&(this.deletedStates[w][le]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let le in this.state[w][ee])Q[le]||(this.deletedStates[w][ee][le]=null)}else for(let le in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][le]===null&&delete this.deletedStates[w][ee][le]}removeFeatureState(w,B,Q){if(this.deletedStates[w]===null)return;let ee=String(B);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&B!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(B!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,B){let Q=String(B),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let le=this.deletedStates[w][B];if(le===null)return{};for(let Fe in le)delete ee[Fe]}return ee}initializeTileState(w,B){w.setFeatureState(this.state,B)}coalesceChanges(w,B){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let le={};for(let Fe in this.stateChanges[ee])this.state[ee][Fe]||(this.state[ee][Fe]={}),a.e(this.state[ee][Fe],this.stateChanges[ee][Fe]),le[Fe]=this.state[ee][Fe];Q[ee]=le}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let le={};if(this.deletedStates[ee]===null)for(let Fe in this.state[ee])le[Fe]={},this.state[ee][Fe]={};else for(let Fe in this.deletedStates[ee]){if(this.deletedStates[ee][Fe]===null)this.state[ee][Fe]={};else for(let Ze of Object.keys(this.deletedStates[ee][Fe]))delete this.state[ee][Fe][Ze];le[Fe]=this.state[ee][Fe]}Q[ee]=Q[ee]||{},a.e(Q[ee],le)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,B)}}class pt extends a.E{constructor(w,B,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",(ee=>this._dataHandler(ee))),this.on("dataloading",(()=>{this._sourceErrored=!1})),this.on("error",(()=>{this._sourceErrored=this._source.loaded()})),this._source=((ee,le,Fe,Ze)=>{let ut=new(je(le.type))(ee,le,Fe,Ze);if(ut.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${ut.id}`);return ut})(w,B,Q,this),this._tiles={},this._cache=new dt(0,(ee=>this._unloadTile(ee))),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Et,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let B=this._tiles[w];if(B.state!=="loaded"&&B.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,B,Q){return a._(this,void 0,void 0,(function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,B,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}}))}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let B in this._tiles){let Q=this._tiles[B];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map((w=>w.tileID)).sort(jt).map((w=>w.key))}getRenderableIds(w){let B=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&B.push(this._tiles[Q]);return w?B.sort(((Q,ee)=>{let le=Q.tileID,Fe=ee.tileID,Ze=new a.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle),ut=new a.P(Fe.canonical.x,Fe.canonical.y)._rotate(this.transform.angle);return le.overscaledZ-Fe.overscaledZ||ut.y-Ze.y||ut.x-Ze.x})).map((Q=>Q.tileID.key)):B.map((Q=>Q.tileID)).sort(jt).map((Q=>Q.key))}hasRenderableParent(w){let B=this.findLoadedParent(w,0);return!!B&&this._isIdRenderable(B.tileID.key)}_isIdRenderable(w,B){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(B||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,B){return a._(this,void 0,void 0,(function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=B),yield this._loadTile(Q,w,B))}))}_tileLoaded(w,B,Q){w.timeAdded=u.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(B,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let B=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(Fe)>1&&(Math.abs(Fe+ut)===1?Fe+=ut:Math.abs(Fe-ut)===1&&(Fe-=ut)),le.dem&&ee.dem&&(ee.dem.backfillBorder(le.dem,Fe,Ze),ee.neighboringTiles&&ee.neighboringTiles[Mt]&&(ee.neighboringTiles[Mt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,B,Q,ee){for(let le in this._tiles){let Fe=this._tiles[le];if(ee[le]||!Fe.hasData()||Fe.tileID.overscaledZ<=B||Fe.tileID.overscaledZ>Q)continue;let Ze=Fe.tileID;for(;Fe&&Fe.tileID.overscaledZ>B+1;){let Mt=Fe.tileID.scaledTo(Fe.tileID.overscaledZ-1);Fe=this._tiles[Mt.key],Fe&&Fe.hasData()&&(Ze=Mt)}let ut=Ze;for(;ut.overscaledZ>B;)if(ut=ut.scaledTo(ut.overscaledZ-1),w[ut.key]){ee[Ze.key]=Ze;break}}}findLoadedParent(w,B){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=B?Q:null}for(let Q=w.overscaledZ-1;Q>=B;Q--){let ee=w.scaledTo(Q),le=this._getLoadedTile(ee);if(le)return le}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let B=this._tiles[w.key];return B&&B.hasData()?B:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let B=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(B*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),le=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(le)}handleWrapJump(w){let B=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,B){let Q={};for(let ee in this._tiles){let le=this._tiles[ee];le.tileID=le.tileID.unwrapTo(le.tileID.wrap+B),Q[le.tileID.key]=le}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,B,Q,ee,le,Fe){let Ze={},ut={},Mt=Object.keys(w),Jt=u.now();for(let $t of Mt){let yr=w[$t],Cr=this._tiles[$t];if(!Cr||Cr.fadeEndTime!==0&&Cr.fadeEndTime<=Jt)continue;let ve=this.findLoadedParent(yr,B),xe=this.findLoadedSibling(yr),Ie=ve||xe||null;Ie&&(this._addTile(Ie.tileID),Ze[Ie.tileID.key]=Ie.tileID),ut[$t]=yr}this._retainLoadedChildren(ut,ee,Q,w);for(let $t in Ze)w[$t]||(this._coveredTiles[$t]=!0,w[$t]=Ze[$t]);if(Fe){let $t={},yr={};for(let Cr of le)this._tiles[Cr.key].hasData()?$t[Cr.key]=Cr:yr[Cr.key]=Cr;for(let Cr in yr){let ve=yr[Cr].children(this._source.maxzoom);this._tiles[ve[0].key]&&this._tiles[ve[1].key]&&this._tiles[ve[2].key]&&this._tiles[ve[3].key]&&($t[ve[0].key]=w[ve[0].key]=ve[0],$t[ve[1].key]=w[ve[1].key]=ve[1],$t[ve[2].key]=w[ve[2].key]=ve[2],$t[ve[3].key]=w[ve[3].key]=ve[3],delete yr[Cr])}for(let Cr in yr){let ve=yr[Cr],xe=this.findLoadedParent(ve,this._source.minzoom),Ie=this.findLoadedSibling(ve),ze=xe||Ie||null;if(ze){$t[ze.tileID.key]=w[ze.tileID.key]=ze.tileID;for(let Qe in $t)$t[Qe].isChildOf(ze.tileID)&&delete $t[Qe]}}for(let Cr in this._tiles)$t[Cr]||(this._coveredTiles[Cr]=!0)}}update(w,B){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=B,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map((Jt=>new a.S(Jt.canonical.z,Jt.wrap,Jt.canonical.z,Jt.canonical.x,Jt.canonical.y))):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:B}),this._source.hasTile&&(Q=Q.filter((Jt=>this._source.hasTile(Jt))))):Q=[];let ee=w.coveringZoomLevel(this._source),le=Math.max(ee-pt.maxOverzooming,this._source.minzoom),Fe=Math.max(ee+pt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Jt={};for(let $t of Q)if($t.canonical.z>this._source.minzoom){let yr=$t.scaledTo($t.canonical.z-1);Jt[yr.key]=yr;let Cr=$t.scaledTo(Math.max(this._source.minzoom,Math.min($t.canonical.z,5)));Jt[Cr.key]=Cr}Q=Q.concat(Object.values(Jt))}let Ze=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,Ze&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let ut=this._updateRetainedTiles(Q,ee);or(this._source.type)&&this._updateCoveredAndRetainedTiles(ut,le,Fe,ee,Q,B);for(let Jt in ut)this._tiles[Jt].clearFadeHold();let Mt=a.ab(this._tiles,ut);for(let Jt of Mt){let $t=this._tiles[Jt];$t.hasSymbolBuckets&&!$t.holdingForFade()?$t.setHoldDuration(this.map._fadeDuration):$t.hasSymbolBuckets&&!$t.symbolFadeFinished()||this._removeTile(Jt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,B){var Q;let ee={},le={},Fe=Math.max(B-pt.maxOverzooming,this._source.minzoom),Ze=Math.max(B+pt.maxUnderzooming,this._source.minzoom),ut={};for(let Mt of w){let Jt=this._addTile(Mt);ee[Mt.key]=Mt,Jt.hasData()||Bthis._source.maxzoom){let yr=Mt.children(this._source.maxzoom)[0],Cr=this.getTile(yr);if(Cr&&Cr.hasData()){ee[yr.key]=yr;continue}}else{let yr=Mt.children(this._source.maxzoom);if(ee[yr[0].key]&&ee[yr[1].key]&&ee[yr[2].key]&&ee[yr[3].key])continue}let $t=Jt.wasRequested();for(let yr=Mt.overscaledZ-1;yr>=Fe;--yr){let Cr=Mt.scaledTo(yr);if(le[Cr.key])break;if(le[Cr.key]=!0,Jt=this.getTile(Cr),!Jt&&$t&&(Jt=this._addTile(Cr)),Jt){let ve=Jt.hasData();if((ve||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||$t)&&(ee[Cr.key]=Cr),$t=Jt.wasRequested(),ve)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let B=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}B.push(ee.key);let le=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(le),Q)break;ee=le}for(let le of B)this._loadedParentTiles[le]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let B=this._tiles[w].tileID,Q=this._getLoadedTile(B);this._loadedSiblingTiles[B.key]=Q}}_addTile(w){let B=this._tiles[w.key];if(B)return B;B=this._cache.getAndRemove(w),B&&(this._setTileReloadTimer(w.key,B),B.tileID=w,this._state.initializeTileState(B,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,B)));let Q=B;return B||(B=new Tt(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(B,w.key,B.state)),B.uses++,this._tiles[w.key]=B,Q||this._source.fire(new a.k("dataloading",{tile:B,coord:B.tileID,dataType:"source"})),B}_setTileReloadTimer(w,B){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=B.getExpiryTimeout();Q&&(this._timers[w]=setTimeout((()=>{this._reloadTile(w,"expired"),delete this._timers[w]}),Q))}_removeTile(w){let B=this._tiles[w];B&&(B.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),B.uses>0||(B.hasData()&&B.state!=="reloading"?this._cache.add(B.tileID,B,B.getExpiryTimeout()):(B.aborted=!0,this._abortTile(B),this._unloadTile(B))))}_dataHandler(w){let B=w.sourceDataType;w.dataType==="source"&&B==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&B==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,B,Q){let ee=[],le=this.transform;if(!le)return ee;let Fe=Q?le.getCameraQueryGeometry(w):w,Ze=w.map((ve=>le.pointCoordinate(ve,this.terrain))),ut=Fe.map((ve=>le.pointCoordinate(ve,this.terrain))),Mt=this.getIds(),Jt=1/0,$t=1/0,yr=-1/0,Cr=-1/0;for(let ve of ut)Jt=Math.min(Jt,ve.x),$t=Math.min($t,ve.y),yr=Math.max(yr,ve.x),Cr=Math.max(Cr,ve.y);for(let ve=0;ve=0&&Xe[1].y+Qe>=0){let nt=Ze.map((Wt=>Ie.getTilePoint(Wt))),qt=ut.map((Wt=>Ie.getTilePoint(Wt)));ee.push({tile:xe,tileID:Ie,queryGeometry:nt,cameraQueryGeometry:qt,scale:ze})}}return ee}getVisibleCoordinates(w){let B=this.getRenderableIds(w).map((Q=>this._tiles[Q].tileID));for(let Q of B)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return B}hasTransition(){if(this._source.hasTransition())return!0;if(or(this._source.type)){let w=u.now();for(let B in this._tiles)if(this._tiles[B].fadeEndTime>=w)return!0}return!1}setFeatureState(w,B,Q){this._state.updateState(w=w||"_geojsonTileLayer",B,Q)}removeFeatureState(w,B,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",B,Q)}getFeatureState(w,B){return this._state.getState(w=w||"_geojsonTileLayer",B)}setDependencies(w,B,Q){let ee=this._tiles[w];ee&&ee.setDependencies(B,Q)}reloadTilesForDependencies(w,B){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,B)&&this._reloadTile(Q,"reloading");this._cache.filter((Q=>!Q.hasDependency(w,B)))}}function jt(ue,w){let B=Math.abs(2*ue.wrap)-+(ue.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||Q-B||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function or(ue){return ue==="raster"||ue==="image"||ue==="video"}pt.maxOverzooming=10,pt.maxUnderzooming=3;class mr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Fe)/Ze:0;return this.points[le].mult(1-ut).add(this.points[B].mult(ut))}}function Ar(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class ei{constructor(w,B,Q){let ee=this.boxCells=[],le=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(B/Q);for(let Fe=0;Fethis.width||ee<0||B>this.height)return[];let ut=[];if(w<=0&&B<=0&&this.width<=Q&&this.height<=ee){if(le)return[{key:null,x1:w,y1:B,x2:Q,y2:ee}];for(let Mt=0;Mt0}hitTestCircle(w,B,Q,ee,le){let Fe=w-Q,Ze=w+Q,ut=B-Q,Mt=B+Q;if(Ze<0||Fe>this.width||Mt<0||ut>this.height)return!1;let Jt=[];return this._forEachCell(Fe,ut,Ze,Mt,this._queryCellCircle,Jt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:B,radius:Q},seenUids:{box:{},circle:{}}},le),Jt.length>0}_queryCell(w,B,Q,ee,le,Fe,Ze,ut){let{seenUids:Mt,hitTest:Jt,overlapMode:$t}=Ze,yr=this.boxCells[le];if(yr!==null){let ve=this.bboxes;for(let xe of yr)if(!Mt.box[xe]){Mt.box[xe]=!0;let Ie=4*xe,ze=this.boxKeys[xe];if(w<=ve[Ie+2]&&B<=ve[Ie+3]&&Q>=ve[Ie+0]&&ee>=ve[Ie+1]&&(!ut||ut(ze))&&(!Jt||!Ar($t,ze.overlapMode))&&(Fe.push({key:ze,x1:ve[Ie],y1:ve[Ie+1],x2:ve[Ie+2],y2:ve[Ie+3]}),Jt))return!0}}let Cr=this.circleCells[le];if(Cr!==null){let ve=this.circles;for(let xe of Cr)if(!Mt.circle[xe]){Mt.circle[xe]=!0;let Ie=3*xe,ze=this.circleKeys[xe];if(this._circleAndRectCollide(ve[Ie],ve[Ie+1],ve[Ie+2],w,B,Q,ee)&&(!ut||ut(ze))&&(!Jt||!Ar($t,ze.overlapMode))){let Qe=ve[Ie],Xe=ve[Ie+1],nt=ve[Ie+2];if(Fe.push({key:ze,x1:Qe-nt,y1:Xe-nt,x2:Qe+nt,y2:Xe+nt}),Jt)return!0}}}return!1}_queryCellCircle(w,B,Q,ee,le,Fe,Ze,ut){let{circle:Mt,seenUids:Jt,overlapMode:$t}=Ze,yr=this.boxCells[le];if(yr!==null){let ve=this.bboxes;for(let xe of yr)if(!Jt.box[xe]){Jt.box[xe]=!0;let Ie=4*xe,ze=this.boxKeys[xe];if(this._circleAndRectCollide(Mt.x,Mt.y,Mt.radius,ve[Ie+0],ve[Ie+1],ve[Ie+2],ve[Ie+3])&&(!ut||ut(ze))&&!Ar($t,ze.overlapMode))return Fe.push(!0),!0}}let Cr=this.circleCells[le];if(Cr!==null){let ve=this.circles;for(let xe of Cr)if(!Jt.circle[xe]){Jt.circle[xe]=!0;let Ie=3*xe,ze=this.circleKeys[xe];if(this._circlesCollide(ve[Ie],ve[Ie+1],ve[Ie+2],Mt.x,Mt.y,Mt.radius)&&(!ut||ut(ze))&&!Ar($t,ze.overlapMode))return Fe.push(!0),!0}}}_forEachCell(w,B,Q,ee,le,Fe,Ze,ut){let Mt=this._convertToXCellCoord(w),Jt=this._convertToYCellCoord(B),$t=this._convertToXCellCoord(Q),yr=this._convertToYCellCoord(ee);for(let Cr=Mt;Cr<=$t;Cr++)for(let ve=Jt;ve<=yr;ve++)if(le.call(this,w,B,Q,ee,this.xCellCount*ve+Cr,Fe,Ze,ut))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,B,Q,ee,le,Fe){let Ze=ee-w,ut=le-B,Mt=Q+Fe;return Mt*Mt>Ze*Ze+ut*ut}_circleAndRectCollide(w,B,Q,ee,le,Fe,Ze){let ut=(Fe-ee)/2,Mt=Math.abs(w-(ee+ut));if(Mt>ut+Q)return!1;let Jt=(Ze-le)/2,$t=Math.abs(B-(le+Jt));if($t>Jt+Q)return!1;if(Mt<=ut||$t<=Jt)return!0;let yr=Mt-ut,Cr=$t-Jt;return yr*yr+Cr*Cr<=Q*Q}}function qr(ue,w,B,Q,ee){let le=a.H();return w?(a.K(le,le,[1/ee,1/ee,1]),B||a.ad(le,le,Q.angle)):a.L(le,Q.labelPlaneMatrix,ue),le}function jr(ue,w,B,Q,ee){if(w){let le=a.ae(ue);return a.K(le,le,[ee,ee,1]),B||a.ad(le,le,-Q.angle),le}return Q.glCoordMatrix}function gt(ue,w,B,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,B)):(ee=[ue,w,0,1],ai(ee,ee,B));let le=ee[3];return{point:new a.P(ee[0]/le,ee[1]/le),signedDistanceFromCamera:le,isOccluded:!1}}function Ge(ue,w){return .5+ue/w*.5}function Je(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function We(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr,ve){let xe=Q?ue.textSizeData:ue.iconSizeData,Ie=a.ag(xe,B.transform.zoom),ze=[256/B.width*2+1,256/B.height*2+1],Qe=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;Qe.clear();let Xe=ue.lineVertexArray,nt=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,qt=B.transform.width/B.transform.height,Wt=!1;for(let nr=0;nrMath.abs(B.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function At(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt){let $t=B/24,yr=w.lineOffsetX*$t,Cr=w.lineOffsetY*$t,ve;if(w.numGlyphs>1){let xe=w.glyphStartIndex+w.numGlyphs,Ie=w.lineStartIndex,ze=w.lineStartIndex+w.lineLength,Qe=et($t,Ze,yr,Cr,Q,w,Jt,ue);if(!Qe)return{notEnoughRoom:!0};let Xe=gt(Qe.first.point.x,Qe.first.point.y,Fe,ue.getElevation).point,nt=gt(Qe.last.point.x,Qe.last.point.y,Fe,ue.getElevation).point;if(ee&&!Q){let qt=xt(w.writingMode,Xe,nt,Mt);if(qt)return qt}ve=[Qe.first];for(let qt=w.glyphStartIndex+1;qt0?Xe.point:(function(Wt,nr,fr,br,Fr,Hr){return Kt(Wt,nr,fr,1,Fr,Hr)})(ue.tileAnchorPoint,Qe,Ie,0,le,ue),qt=xt(w.writingMode,Ie,nt,Mt);if(qt)return qt}let xe=Yr($t*Ze.getoffsetX(w.glyphStartIndex),yr,Cr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Jt);if(!xe||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};ve=[xe]}for(let xe of ve)a.aj(ut,xe.point,xe.angle);return{}}function Kt(ue,w,B,Q,ee,le){let Fe=ue.add(ue.sub(w)._unit()),Ze=ee!==void 0?gt(Fe.x,Fe.y,ee,le.getElevation).point:Mr(Fe.x,Fe.y,le).point,ut=B.sub(Ze);return B.add(ut._mult(Q/ut.mag()))}function Qt(ue,w,B){let Q=w.projectionCache;if(Q.projections[ue])return Q.projections[ue];let ee=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),le=Mr(ee.x,ee.y,w);if(le.signedDistanceFromCamera>0)return Q.projections[ue]=le.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||le.isOccluded,le.point;let Fe=ue-B.direction;return(function(Ze,ut,Mt,Jt,$t){return Kt(Ze,ut,Mt,Jt,void 0,$t)})(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Fe),w.lineVertexArray.gety(Fe)),ee,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function Mr(ue,w,B){let Q=ue+B.translation[0],ee=w+B.translation[1],le;return!B.pitchWithMap&&B.projection.useSpecialProjectionForSymbols?(le=B.projection.projectTileCoordinates(Q,ee,B.unwrappedTileID,B.getElevation),le.point.x=(.5*le.point.x+.5)*B.width,le.point.y=(.5*-le.point.y+.5)*B.height):(le=gt(Q,ee,B.labelPlaneMatrix,B.getElevation),le.isOccluded=!1),le}function Gr(ue,w,B){return ue._unit()._perp()._mult(w*B)}function Ir(ue,w,B,Q,ee,le,Fe,Ze,ut){if(Ze.projectionCache.offsets[ue])return Ze.projectionCache.offsets[ue];let Mt=B.add(w);if(ue+ut.direction=ee)return Ze.projectionCache.offsets[ue]=Mt,Mt;let Jt=Qt(ue+ut.direction,Ze,ut),$t=Gr(Jt.sub(B),Fe,ut.direction),yr=B.add($t),Cr=Jt.add($t);return Ze.projectionCache.offsets[ue]=a.ak(le,Mt,yr,Cr)||Mt,Ze.projectionCache.offsets[ue]}function Yr(ue,w,B,Q,ee,le,Fe,Ze,ut){let Mt=Q?ue-w:ue+w,Jt=Mt>0?1:-1,$t=0;Q&&(Jt*=-1,$t=Math.PI),Jt<0&&($t+=Math.PI);let yr,Cr=Jt>0?le+ee:le+ee+1;Ze.projectionCache.cachedAnchorPoint?yr=Ze.projectionCache.cachedAnchorPoint:(yr=Mr(Ze.tileAnchorPoint.x,Ze.tileAnchorPoint.y,Ze).point,Ze.projectionCache.cachedAnchorPoint=yr);let ve,xe,Ie=yr,ze=yr,Qe=0,Xe=0,nt=Math.abs(Mt),qt=[],Wt;for(;Qe+Xe<=nt;){if(Cr+=Jt,Cr=Fe)return null;Qe+=Xe,ze=Ie,xe=ve;let br={absOffsetX:nt,direction:Jt,distanceFromAnchor:Qe,previousVertex:ze};if(Ie=Qt(Cr,Ze,br),B===0)qt.push(ze),Wt=Ie.sub(ze);else{let Fr,Hr=Ie.sub(ze);Fr=Hr.mag()===0?Gr(Qt(Cr+Jt,Ze,br).sub(Ie),B,Jt):Gr(Hr,B,Jt),xe||(xe=ze.add(Fr)),ve=Ir(Cr,Fr,Ie,le,Fe,xe,B,Ze,br),qt.push(xe),Wt=ve.sub(xe)}Xe=Wt.mag()}let nr=Wt._mult((nt-Qe)/Xe)._add(xe||ze),fr=$t+Math.atan2(Ie.y-ze.y,Ie.x-ze.x);return qt.push(nr),{point:nr,angle:ut?fr:0,path:qt}}let _i=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Pi(ue,w){for(let B=0;B=1;fa--)Ln.push(cn.path[fa]);for(let fa=1;fa$a.signedDistanceFromCamera<=0))?[]:fa.map(($a=>$a.point))}let Aa=[];if(Ln.length>0){let fa=Ln[0].clone(),$a=Ln[0].clone();for(let Co=1;Co=Hr.x&&$a.x<=ri.x&&fa.y>=Hr.y&&$a.y<=ri.y?[Ln]:$a.xri.x||$a.yri.y?[]:a.al([Ln],Hr.x,Hr.y,ri.x,ri.y)}for(let fa of Aa){Ci.reset(fa,.25*Fr);let $a=0;$a=Ci.length<=.5*Fr?1:Math.ceil(Ci.paddedLength/Kn)+1;for(let Co=0;Co<$a;Co++){let Qa=Co/Math.max($a-1,1),mo=Ci.lerp(Qa),Bo=mo.x+mi,Ps=mo.y+mi;ze.push(Bo,Ps,Fr,0);let Ts=Bo-Fr,wo=Ps-Fr,To=Bo+Fr,hl=Ps+Fr;if(br=br&&this.isOffscreen(Ts,wo,To,hl),fr=fr||this.isInsideGrid(Ts,wo,To,hl),w!=="always"&&this.grid.hitTestCircle(Bo,Ps,Fr,w,yr)&&(nr=!0,!Jt))return{circles:[],offscreen:!1,collisionDetected:nr}}}}return{circles:!Jt&&nr||!fr||Xegt(ee.x,ee.y,Q,B.getElevation)))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let B=[],Q=1/0,ee=1/0,le=-1/0,Fe=-1/0;for(let Jt of w){let $t=new a.P(Jt.x+mi,Jt.y+mi);Q=Math.min(Q,$t.x),ee=Math.min(ee,$t.y),le=Math.max(le,$t.x),Fe=Math.max(Fe,$t.y),B.push($t)}let Ze=this.grid.query(Q,ee,le,Fe).concat(this.ignoredGrid.query(Q,ee,le,Fe)),ut={},Mt={};for(let Jt of Ze){let $t=Jt.key;if(ut[$t.bucketInstanceId]===void 0&&(ut[$t.bucketInstanceId]={}),ut[$t.bucketInstanceId][$t.featureIndex])continue;let yr=[new a.P(Jt.x1,Jt.y1),new a.P(Jt.x2,Jt.y1),new a.P(Jt.x2,Jt.y2),new a.P(Jt.x1,Jt.y2)];a.am(B,yr)&&(ut[$t.bucketInstanceId][$t.featureIndex]=!0,Mt[$t.bucketInstanceId]===void 0&&(Mt[$t.bucketInstanceId]=[]),Mt[$t.bucketInstanceId].push($t.featureIndex))}return Mt}insertCollisionBox(w,B,Q,ee,le,Fe){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:le,collisionGroupID:Fe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,Q,ee,le,Fe){let Ze=Q?this.ignoredGrid:this.grid,ut={bucketInstanceId:ee,featureIndex:le,collisionGroupID:Fe,overlapMode:B};for(let Mt=0;Mt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,B,Q,ee){return Q>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(Q,Fr.x,Fr.y,ee,Mt)));fr=br.some((Fr=>!Fr.isOccluded)),nr=br.map((Fr=>Fr.point))}else fr=!0;return{box:a.ao(nr),allPointsOccluded:!fr}}}function Fn(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class An{constructor(w,B,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?B:-B))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class Hn{constructor(w,B,Q,ee,le){this.text=new An(w?w.text:null,B,Q,le),this.icon=new An(w?w.icon:null,B,ee,le)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Qn{constructor(w,B,Q){this.text=w,this.icon=B,this.skipFade=Q}}class Vi{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class Jn{constructor(w,B,Q,ee,le){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=le}}class Yn{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let B=++this.maxGroupID;this.collisionGroups[w]={ID:B,predicate:Q=>Q.collisionGroupID===B}}return this.collisionGroups[w]}}function Gt(ue,w,B,Q,ee){let{horizontalAlign:le,verticalAlign:Fe}=a.au(ue);return new a.P(-(le-.5)*w+Q[0]*ee,-(Fe-.5)*B+Q[1]*ee)}class wt{constructor(w,B,Q,ee,le,Fe){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new un(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new Yn(le),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Fe,Fe&&(Fe.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let B=this.terrain;return B?(Q,ee)=>B.getElevation(w,Q,ee):null}getBucketParts(w,B,Q,ee){let le=Q.getBucket(B),Fe=Q.latestFeatureIndex;if(!le||!Fe||B.id!==le.layerIds[0])return;let Ze=Q.collisionBoxArray,ut=le.layers[0].layout,Mt=le.layers[0].paint,Jt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),$t=Q.tileSize/a.X,yr=Q.tileID.toUnwrapped(),Cr=this.transform.calculatePosMatrix(yr),ve=ut.get("text-pitch-alignment")==="map",xe=ut.get("text-rotation-alignment")==="map",Ie=Fn(Q,1,this.transform.zoom),ze=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Mt.get("text-translate"),Mt.get("text-translate-anchor")),Qe=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Mt.get("icon-translate"),Mt.get("icon-translate-anchor")),Xe=qr(Cr,ve,xe,this.transform,Ie),nt=null;if(ve){let Wt=jr(Cr,ve,xe,this.transform,Ie);nt=a.L([],this.transform.labelPlaneMatrix,Wt)}this.retainedQueryData[le.bucketInstanceId]=new Jn(le.bucketInstanceId,Fe,le.sourceLayerIndex,le.index,Q.tileID);let qt={bucket:le,layout:ut,translationText:ze,translationIcon:Qe,posMatrix:Cr,unwrappedTileID:yr,textLabelPlaneMatrix:Xe,labelToScreenMatrix:nt,scale:Jt,textPixelRatio:$t,holdingForFade:Q.holdingForFade(),collisionBoxArray:Ze,partiallyEvaluatedTextSize:a.ag(le.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(le.sourceID)};if(ee)for(let Wt of le.sortKeyRanges){let{sortKey:nr,symbolInstanceStart:fr,symbolInstanceEnd:br}=Wt;w.push({sortKey:nr,symbolInstanceStart:fr,symbolInstanceEnd:br,parameters:qt})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:le.symbolInstances.length,parameters:qt})}attemptAnchorPlacement(w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr,ve,xe,Ie,ze,Qe,Xe){let nt=a.aq[w.textAnchor],qt=[w.textOffset0,w.textOffset1],Wt=Gt(nt,Q,ee,qt,le),nr=this.collisionIndex.placeCollisionBox(B,yr,ut,Mt,Jt,Ze,Fe,Ie,$t.predicate,Xe,Wt);if((!Qe||this.collisionIndex.placeCollisionBox(Qe,yr,ut,Mt,Jt,Ze,Fe,ze,$t.predicate,Xe,Wt).placeable)&&nr.placeable){let fr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Cr.crossTileID]&&this.prevPlacement.placements[Cr.crossTileID]&&this.prevPlacement.placements[Cr.crossTileID].text&&(fr=this.prevPlacement.variableOffsets[Cr.crossTileID].anchor),Cr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Cr.crossTileID]={textOffset:qt,width:Q,height:ee,anchor:nt,textBoxScale:le,prevAnchor:fr},this.markUsedJustification(ve,nt,Cr,xe),ve.allowVerticalPlacement&&(this.markUsedOrientation(ve,xe,Cr),this.placedOrientations[Cr.crossTileID]=xe),{shift:Wt,placedGlyphBoxes:nr}}}placeLayerBucketPart(w,B,Q){let{bucket:ee,layout:le,translationText:Fe,translationIcon:Ze,posMatrix:ut,unwrappedTileID:Mt,textLabelPlaneMatrix:Jt,labelToScreenMatrix:$t,textPixelRatio:yr,holdingForFade:Cr,collisionBoxArray:ve,partiallyEvaluatedTextSize:xe,collisionGroup:Ie}=w.parameters,ze=le.get("text-optional"),Qe=le.get("icon-optional"),Xe=a.ar(le,"text-overlap","text-allow-overlap"),nt=Xe==="always",qt=a.ar(le,"icon-overlap","icon-allow-overlap"),Wt=qt==="always",nr=le.get("text-rotation-alignment")==="map",fr=le.get("text-pitch-alignment")==="map",br=le.get("icon-text-fit")!=="none",Fr=le.get("symbol-z-order")==="viewport-y",Hr=nt&&(Wt||!ee.hasIconData()||Qe),ri=Wt&&(nt||!ee.hasTextData()||ze);!ee.collisionArrays&&ve&&ee.deserializeCollisionBoxes(ve);let Ci=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),cn=(sn,Ln,Kn)=>{var Aa,fa;if(B[sn.crossTileID])return;if(Cr)return void(this.placements[sn.crossTileID]=new Qn(!1,!1,!1));let $a=!1,Co=!1,Qa=!0,mo=null,Bo={box:null,placeable:!1,offscreen:null},Ps={box:null,placeable:!1,offscreen:null},Ts=null,wo=null,To=null,hl=0,Nl=0,Lu=0;Ln.textFeatureIndex?hl=Ln.textFeatureIndex:sn.useRuntimeCollisionCircles&&(hl=sn.featureIndex),Ln.verticalTextFeatureIndex&&(Nl=Ln.verticalTextFeatureIndex);let au=Ln.textBox;if(au){let Al=Te=>{let qe=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Te&&this.prevPlacement){let Ve=this.prevPlacement.placedOrientations[sn.crossTileID];Ve&&(this.placedOrientations[sn.crossTileID]=Ve,qe=Ve,this.markUsedOrientation(ee,qe,sn))}return qe},Sl=(Te,qe)=>{if(ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&Ln.verticalTextBox){for(let Ve of ee.writingModes)if(Ve===a.ah.vertical?(Bo=qe(),Ps=Bo):Bo=Te(),Bo&&Bo.placeable)break}else Bo=Te()},X=sn.textAnchorOffsetStartIndex,se=sn.textAnchorOffsetEndIndex;if(se===X){let Te=(qe,Ve)=>{let Ye=this.collisionIndex.placeCollisionBox(qe,Xe,yr,ut,Mt,fr,nr,Fe,Ie.predicate,Ci);return Ye&&Ye.placeable&&(this.markUsedOrientation(ee,Ve,sn),this.placedOrientations[sn.crossTileID]=Ve),Ye};Sl((()=>Te(au,a.ah.horizontal)),(()=>{let qe=Ln.verticalTextBox;return ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&qe?Te(qe,a.ah.vertical):{box:null,offscreen:null}})),Al(Bo&&Bo.placeable)}else{let Te=a.aq[(fa=(Aa=this.prevPlacement)===null||Aa===void 0?void 0:Aa.variableOffsets[sn.crossTileID])===null||fa===void 0?void 0:fa.anchor],qe=(Ye,Pt,ot)=>{let Xt=Ye.x2-Ye.x1,dr=Ye.y2-Ye.y1,pr=sn.textBoxScale,Ur=br&&qt==="never"?Pt:null,zr=null,gi=Xe==="never"?1:2,xi="never";Te&&gi++;for(let Wr=0;Wrqe(au,Ln.iconBox,a.ah.horizontal)),(()=>{let Ye=Ln.verticalTextBox;return ee.allowVerticalPlacement&&(!Bo||!Bo.placeable)&&sn.numVerticalGlyphVertices>0&&Ye?qe(Ye,Ln.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}})),Bo&&($a=Bo.placeable,Qa=Bo.offscreen);let Ve=Al(Bo&&Bo.placeable);if(!$a&&this.prevPlacement){let Ye=this.prevPlacement.variableOffsets[sn.crossTileID];Ye&&(this.variableOffsets[sn.crossTileID]=Ye,this.markUsedJustification(ee,Ye.anchor,sn,Ve))}}}if(Ts=Bo,$a=Ts&&Ts.placeable,Qa=Ts&&Ts.offscreen,sn.useRuntimeCollisionCircles){let Al=ee.text.placedSymbolArray.get(sn.centerJustifiedTextSymbolIndex),Sl=a.ai(ee.textSizeData,xe,Al),X=le.get("text-padding");wo=this.collisionIndex.placeCollisionCircles(Xe,Al,ee.lineVertexArray,ee.glyphOffsetArray,Sl,ut,Mt,Jt,$t,Q,fr,Ie.predicate,sn.collisionCircleDiameter,X,Fe,Ci),wo.circles.length&&wo.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),$a=nt||wo.circles.length>0&&!wo.collisionDetected,Qa=Qa&&wo.offscreen}if(Ln.iconFeatureIndex&&(Lu=Ln.iconFeatureIndex),Ln.iconBox){let Al=Sl=>this.collisionIndex.placeCollisionBox(Sl,qt,yr,ut,Mt,fr,nr,Ze,Ie.predicate,Ci,br&&mo?mo:void 0);Ps&&Ps.placeable&&Ln.verticalIconBox?(To=Al(Ln.verticalIconBox),Co=To.placeable):(To=Al(Ln.iconBox),Co=To.placeable),Qa=Qa&&To.offscreen}let Js=ze||sn.numHorizontalGlyphVertices===0&&sn.numVerticalGlyphVertices===0,eu=Qe||sn.numIconVertices===0;Js||eu?eu?Js||(Co=Co&&$a):$a=Co&&$a:Co=$a=Co&&$a;let dc=Co&&To.placeable;if($a&&Ts.placeable&&this.collisionIndex.insertCollisionBox(Ts.box,Xe,le.get("text-ignore-placement"),ee.bucketInstanceId,Ps&&Ps.placeable&&Nl?Nl:hl,Ie.ID),dc&&this.collisionIndex.insertCollisionBox(To.box,qt,le.get("icon-ignore-placement"),ee.bucketInstanceId,Lu,Ie.ID),wo&&$a&&this.collisionIndex.insertCollisionCircles(wo.circles,Xe,le.get("text-ignore-placement"),ee.bucketInstanceId,hl,Ie.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Kn,Ln,Ts,To,wo),sn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[sn.crossTileID]=new Qn($a||Hr,Co||ri,Qa||ee.justReloaded),B[sn.crossTileID]=!0};if(Fr){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let sn=ee.getSortedSymbolIndexes(this.transform.angle);for(let Ln=sn.length-1;Ln>=0;--Ln){let Kn=sn[Ln];cn(ee.symbolInstances.get(Kn),ee.collisionArrays[Kn],Kn)}}else for(let sn=w.symbolInstanceStart;sn=0&&(w.text.placedSymbolArray.get(Ze).crossTileID=le>=0&&Ze!==le?0:Q.crossTileID)}markUsedOrientation(w,B,Q){let ee=B===a.ah.horizontal||B===a.ah.horizontalOnly?B:0,le=B===a.ah.vertical?B:0,Fe=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let Ze of Fe)w.text.placedSymbolArray.get(Ze).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=le)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let B=this.prevPlacement,Q=!1;this.prevZoomAdjustment=B?B.zoomAdjustment(this.transform.zoom):0;let ee=B?B.symbolFadeChange(w):1,le=B?B.opacities:{},Fe=B?B.variableOffsets:{},Ze=B?B.placedOrientations:{};for(let ut in this.placements){let Mt=this.placements[ut],Jt=le[ut];Jt?(this.opacities[ut]=new Hn(Jt,ee,Mt.text,Mt.icon),Q=Q||Mt.text!==Jt.text.placed||Mt.icon!==Jt.icon.placed):(this.opacities[ut]=new Hn(null,ee,Mt.text,Mt.icon,Mt.skipFade),Q=Q||Mt.text||Mt.icon)}for(let ut in le){let Mt=le[ut];if(!this.opacities[ut]){let Jt=new Hn(Mt,ee,!1,!1);Jt.isHidden()||(this.opacities[ut]=Jt,Q=Q||Mt.text.placed||Mt.icon.placed)}}for(let ut in Fe)this.variableOffsets[ut]||!this.opacities[ut]||this.opacities[ut].isHidden()||(this.variableOffsets[ut]=Fe[ut]);for(let ut in Ze)this.placedOrientations[ut]||!this.opacities[ut]||this.opacities[ut].isHidden()||(this.placedOrientations[ut]=Ze[ut]);if(B&&B.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=B?B.lastPlacementChangeTime:w)}updateLayerOpacities(w,B){let Q={};for(let ee of B){let le=ee.getBucket(w);le&&ee.latestFeatureIndex&&w.id===le.layerIds[0]&&this.updateBucketOpacities(le,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,B,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let le=w.layers[0],Fe=le.layout,Ze=new Hn(null,0,!1,!1,!0),ut=Fe.get("text-allow-overlap"),Mt=Fe.get("icon-allow-overlap"),Jt=le._unevaluatedLayout.hasValue("text-variable-anchor")||le._unevaluatedLayout.hasValue("text-variable-anchor-offset"),$t=Fe.get("text-rotation-alignment")==="map",yr=Fe.get("text-pitch-alignment")==="map",Cr=Fe.get("icon-text-fit")!=="none",ve=new Hn(null,0,ut&&(Mt||!w.hasIconData()||Fe.get("icon-optional")),Mt&&(ut||!w.hasTextData()||Fe.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let xe=(ze,Qe,Xe)=>{for(let nt=0;nt0,fr=this.placedOrientations[Qe.crossTileID],br=fr===a.ah.vertical,Fr=fr===a.ah.horizontal||fr===a.ah.horizontalOnly;if(Xe>0||nt>0){let ri=en(Wt.text);xe(w.text,Xe,br?fn:ri),xe(w.text,nt,Fr?fn:ri);let Ci=Wt.text.isHidden();[Qe.rightJustifiedTextSymbolIndex,Qe.centerJustifiedTextSymbolIndex,Qe.leftJustifiedTextSymbolIndex].forEach((Ln=>{Ln>=0&&(w.text.placedSymbolArray.get(Ln).hidden=Ci||br?1:0)})),Qe.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(Qe.verticalPlacedTextSymbolIndex).hidden=Ci||Fr?1:0);let cn=this.variableOffsets[Qe.crossTileID];cn&&this.markUsedJustification(w,cn.anchor,Qe,fr);let sn=this.placedOrientations[Qe.crossTileID];sn&&(this.markUsedJustification(w,"left",Qe,sn),this.markUsedOrientation(w,sn,Qe))}if(nr){let ri=en(Wt.icon),Ci=!(Cr&&Qe.verticalPlacedIconSymbolIndex&&br);Qe.placedIconSymbolIndex>=0&&(xe(w.icon,Qe.numIconVertices,Ci?ri:fn),w.icon.placedSymbolArray.get(Qe.placedIconSymbolIndex).hidden=Wt.icon.isHidden()),Qe.verticalPlacedIconSymbolIndex>=0&&(xe(w.icon,Qe.numVerticalIconVertices,Ci?fn:ri),w.icon.placedSymbolArray.get(Qe.verticalPlacedIconSymbolIndex).hidden=Wt.icon.isHidden())}let Hr=Ie&&Ie.has(ze)?Ie.get(ze):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let ri=w.collisionArrays[ze];if(ri){let Ci=new a.P(0,0);if(ri.textBox||ri.verticalTextBox){let cn=!0;if(Jt){let sn=this.variableOffsets[qt];sn?(Ci=Gt(sn.anchor,sn.width,sn.height,sn.textOffset,sn.textBoxScale),$t&&Ci._rotate(yr?this.transform.angle:-this.transform.angle)):cn=!1}if(ri.textBox||ri.verticalTextBox){let sn;ri.textBox&&(sn=br),ri.verticalTextBox&&(sn=Fr),tr(w.textCollisionBox.collisionVertexArray,Wt.text.placed,!cn||sn,Hr.text,Ci.x,Ci.y)}}if(ri.iconBox||ri.verticalIconBox){let cn=!!(!Fr&&ri.verticalIconBox),sn;ri.iconBox&&(sn=cn),ri.verticalIconBox&&(sn=!cn),tr(w.iconCollisionBox.collisionVertexArray,Wt.icon.placed,sn,Hr.icon,Cr?Ci.x:0,Cr?Ci.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let ze=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=ze.invProjMatrix,w.placementViewportMatrix=ze.viewportMatrix,w.collisionCircleArray=ze.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function tr(ue,w,B,Q,ee,le){Q&&Q.length!==0||(Q=[0,0,0,0]);let Fe=Q[0]-mi,Ze=Q[1]-mi,ut=Q[2]-mi,Mt=Q[3]-mi;ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,Fe,Ze),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ut,Ze),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ut,Mt),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,Fe,Mt)}let ir=Math.pow(2,25),wr=Math.pow(2,24),Xr=Math.pow(2,17),ti=Math.pow(2,16),$r=Math.pow(2,9),Ri=Math.pow(2,8),Hi=Math.pow(2,1);function en(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,B=Math.floor(127*ue.opacity);return B*ir+w*wr+B*Xr+w*ti+B*$r+w*Ri+B*Hi+w}let fn=0;function yn(){return{isOccluded:(ue,w,B)=>!1,getPitchedTextCorrection:(ue,w,B)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,B,Q){throw new Error("Not implemented.")},translatePosition:(ue,w,B,Q)=>(function(ee,le,Fe,Ze,ut=!1){if(!Fe[0]&&!Fe[1])return[0,0];let Mt=ut?Ze==="map"?ee.angle:0:Ze==="viewport"?-ee.angle:0;if(Mt){let Jt=Math.sin(Mt),$t=Math.cos(Mt);Fe=[Fe[0]*$t-Fe[1]*Jt,Fe[0]*Jt+Fe[1]*$t]}return[ut?Fe[0]:Fn(le,Fe[0],ee.zoom),ut?Fe[1]:Fn(le,Fe[1],ee.zoom)]})(ue,w,B,Q),getCircleRadiusCorrection:ue=>1}}class Mn{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,B,Q,ee,le){let Fe=this._bucketParts;for(;this._currentTileIndexZe.sortKey-ut.sortKey)));this._currentPartIndex!this._forceFullPlacement&&u.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Fe=B[w[this._currentPlacementIndex]],Ze=this.placement.collisionIndex.transform.zoom;if(Fe.type==="symbol"&&(!Fe.minzoom||Fe.minzoom<=Ze)&&(!Fe.maxzoom||Fe.maxzoom>Ze)){if(this._inProgressLayer||(this._inProgressLayer=new Mn(Fe)),this._inProgressLayer.continuePlacement(Q[Fe.source],this.placement,this._showCollisionBoxes,Fe,le))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let ua=512/a.X/2;class ma{constructor(w,B,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let le=0;le({x:Math.floor(ut.anchorX*ua),y:Math.floor(ut.anchorY*ua)}))),crossTileIDs:Fe.map((ut=>ut.crossTileID))};if(Ze.positions.length>128){let ut=new a.av(Ze.positions.length,16,Uint16Array);for(let{x:Mt,y:Jt}of Ze.positions)ut.add(Mt,Jt);ut.finish(),delete Ze.positions,Ze.index=ut}this._symbolsByKey[le]=Ze}}getScaledCoordinates(w,B){let{x:Q,y:ee,z:le}=this.tileID.canonical,{x:Fe,y:Ze,z:ut}=B.canonical,Mt=ua/Math.pow(2,ut-le),Jt=(Ze*a.X+w.anchorY)*Mt,$t=ee*a.X*ua;return{x:Math.floor((Fe*a.X+w.anchorX)*Mt-Q*a.X*ua),y:Math.floor(Jt-$t)}}findMatches(w,B,Q){let ee=this.tileID.canonical.zw))}}class Wa{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class za{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let B=Math.round((w-this.lng)/360);if(B!==0)for(let Q in this.indexes){let ee=this.indexes[Q],le={};for(let Fe in ee){let Ze=ee[Fe];Ze.tileID=Ze.tileID.unwrapTo(Ze.tileID.wrap+B),le[Ze.tileID.key]=Ze}this.indexes[Q]=le}this.lng=w}addBucket(w,B,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===B.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let le=0;lew.overscaledZ)for(let Ze in Fe){let ut=Fe[Ze];ut.tileID.isChildOf(w)&&ut.findMatches(B.symbolInstances,w,ee)}else{let Ze=Fe[w.scaledTo(Number(le)).key];Ze&&Ze.findMatches(B.symbolInstances,w,ee)}}for(let le=0;le{B[Q]=!0}));for(let Q in this.layerIndexes)B[Q]||delete this.layerIndexes[Q]}}let da=(ue,w)=>a.t(ue,w&&w.filter((B=>B.identifier!=="source.canvas"))),jn=a.aw();class Ha extends a.E{constructor(w,B={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new ke(Se(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",((Q,ee)=>this.getGlyphs(Q,ee))),this.dispatcher.registerMessageHandler("GI",((Q,ee)=>this.getImages(Q,ee))),this.imageManager=new E,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new Xo,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),St().on(Ue,this._rtlPluginLoaded),this.on("data",(Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let le=ee.getSource();if(le&&le.vectorLayerIds)for(let Fe in this._layers){let Ze=this._layers[Fe];Ze.source===le.id&&this._validateLayer(Ze)}}))}loadURL(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),B.validate=typeof B.validate!="boolean"||B.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let le=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then((Fe=>{this._loadStyleRequest=null,this._load(Fe.data,B,Q)})).catch((Fe=>{this._loadStyleRequest=null,Fe&&!le.signal.aborted&&this.fire(new a.j(Fe))}))}loadJSON(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then((()=>{this._frameRequest=null,B.validate=B.validate!==!1,this._load(w,B,Q)})).catch((()=>{}))}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(jn,{validate:!1})}_load(w,B,Q){var ee;let le=B.transformStyle?B.transformStyle(Q,w):w;if(!B.validate||!da(this,a.u(le))){this._loaded=!0,this.stylesheet=le;for(let Fe in le.sources)this.addSource(Fe,le.sources[Fe],{validate:!1});le.sprite?this._loadSprite(le.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(le.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map((B=>B.id)),this._layers={},this._serializedLayers=null;for(let B of w){let Q=a.aA(B);Q.setEventedParent(this,{layer:{id:B.id}}),this._layers[B.id]=Q}}_loadSprite(w,B=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,(function(le,Fe,Ze,ut){return a._(this,void 0,void 0,(function*(){let Mt=C(le),Jt=Ze>1?"@2x":"",$t={},yr={};for(let{id:Cr,url:ve}of Mt){let xe=Fe.transformRequest(S(ve,Jt,".json"),"SpriteJSON");$t[Cr]=a.h(xe,ut);let Ie=Fe.transformRequest(S(ve,Jt,".png"),"SpriteImage");yr[Cr]=p.getImage(Ie,ut)}return yield Promise.all([...Object.values($t),...Object.values(yr)]),(function(Cr,ve){return a._(this,void 0,void 0,(function*(){let xe={};for(let Ie in Cr){xe[Ie]={};let ze=u.getImageCanvasContext((yield ve[Ie]).data),Qe=(yield Cr[Ie]).data;for(let Xe in Qe){let{width:nt,height:qt,x:Wt,y:nr,sdf:fr,pixelRatio:br,stretchX:Fr,stretchY:Hr,content:ri,textFitWidth:Ci,textFitHeight:cn}=Qe[Xe];xe[Ie][Xe]={data:null,pixelRatio:br,sdf:fr,stretchX:Fr,stretchY:Hr,content:ri,textFitWidth:Ci,textFitHeight:cn,spriteData:{width:nt,height:qt,x:Wt,y:nr,context:ze}}}}return xe}))})($t,yr)}))})(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then((le=>{if(this._spriteRequest=null,le)for(let Fe in le){this._spritesImagesIds[Fe]=[];let Ze=this._spritesImagesIds[Fe]?this._spritesImagesIds[Fe].filter((ut=>!(ut in le))):[];for(let ut of Ze)this.imageManager.removeImage(ut),this._changedImages[ut]=!0;for(let ut in le[Fe]){let Mt=Fe==="default"?ut:`${Fe}:${ut}`;this._spritesImagesIds[Fe].push(Mt),Mt in this.imageManager.images?this.imageManager.updateImage(Mt,le[Fe][ut],!1):this.imageManager.addImage(Mt,le[Fe][ut]),B&&(this._changedImages[Mt]=!0)}}})).catch((le=>{this._spriteRequest=null,ee=le,this.fire(new a.j(ee))})).finally((()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),B&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)}))}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let B=this.sourceCaches[w.source];if(!B)return;let Q=w.sourceLayer;if(!Q)return;let ee=B.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,B=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(B?a.aB(Q):Q);let ee=[];for(let le of w)if(Q[le]){let Fe=B?a.aB(Q[le]):Q[le];ee.push(Fe)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let B=Object.keys(this._layers);for(let Q of B){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let B=this._changed;if(B){let ee=Object.keys(this._updatedLayers),le=Object.keys(this._removedLayers);(ee.length||le.length)&&this._updateWorkerLayers(ee,le);for(let Fe in this._updatedSources){let Ze=this._updatedSources[Fe];if(Ze==="reload")this._reloadSource(Fe);else{if(Ze!=="clear")throw new Error(`Invalid action ${Ze}`);this._clearSource(Fe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Fe in this._updatedPaintProps)this._layers[Fe].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let le=this.sourceCaches[ee];Q[ee]=le.used,le.used=!1}for(let ee of this._order){let le=this._layers[ee];le.recalculate(w,this._availableImages),!le.isHidden(w.zoom)&&le.source&&(this.sourceCaches[le.source].used=!0)}for(let ee in Q){let le=this.sourceCaches[ee];!!Q[ee]!=!!le.used&&le.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,B&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let B in this.sourceCaches)this.sourceCaches[B].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,B){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:B})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,B={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=B.transformStyle?B.transformStyle(ee,w):w,((Q=B.validate)===null||Q===void 0||Q)&&da(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let le=a.aC(ee,w),Fe=this._getOperationsToPerform(le);if(Fe.unimplemented.length>0)throw new Error(`Unimplemented: ${Fe.unimplemented.join(", ")}.`);if(Fe.operations.length===0)return!1;for(let Ze of Fe.operations)Ze();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let B=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":B.push((()=>this.addLayer.apply(this,ee.args)));break;case"removeLayer":B.push((()=>this.removeLayer.apply(this,ee.args)));break;case"setPaintProperty":B.push((()=>this.setPaintProperty.apply(this,ee.args)));break;case"setLayoutProperty":B.push((()=>this.setLayoutProperty.apply(this,ee.args)));break;case"setFilter":B.push((()=>this.setFilter.apply(this,ee.args)));break;case"addSource":B.push((()=>this.addSource.apply(this,ee.args)));break;case"removeSource":B.push((()=>this.removeSource.apply(this,ee.args)));break;case"setLayerZoomRange":B.push((()=>this.setLayerZoomRange.apply(this,ee.args)));break;case"setLight":B.push((()=>this.setLight.apply(this,ee.args)));break;case"setGeoJSONSourceData":B.push((()=>this.setGeoJSONSourceData.apply(this,ee.args)));break;case"setGlyphs":B.push((()=>this.setGlyphs.apply(this,ee.args)));break;case"setSprite":B.push((()=>this.setSprite.apply(this,ee.args)));break;case"setSky":B.push((()=>this.setSky.apply(this,ee.args)));break;case"setTerrain":B.push((()=>this.map.setTerrain.apply(this,ee.args)));break;case"setTransition":B.push((()=>{}));break;default:Q.push(ee.command)}return{operations:B,unimplemented:Q}}addImage(w,B){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,B),this._afterImageUpdated(w)}updateImage(w,B){this.imageManager.updateImage(w,B)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,B,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!B.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(B).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(B.type)>=0&&this._validate(a.u.source,`sources.${w}`,B,null,Q))return;this.map&&this.map._collectResourceTiming&&(B.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new pt(w,B,this.dispatcher);ee.style=this,ee.setEventedParent(this,(()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w}))),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let B=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],B.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),B.setEventedParent(null),B.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,B){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(B),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,B,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let le;if(w.type==="custom"){if(da(this,a.aD(w)))return;le=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;le=a.aA(w),this._validateLayer(le),le.setEventedParent(this,{layer:{id:ee}})}let Fe=B?this._order.indexOf(B):this._order.length;if(B&&Fe===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${B}".`)));else{if(this._order.splice(Fe,0,ee),this._layerOrderChanged=!0,this._layers[ee]=le,this._removedLayers[ee]&&le.source&&le.type!=="custom"){let Ze=this._removedLayers[ee];delete this._removedLayers[ee],Ze.type!==le.type?this._updatedSources[le.source]="clear":(this._updatedSources[le.source]="reload",this.sourceCaches[le.source].pause())}this._updateLayer(le),le.onAdd&&le.onAdd(this.map)}}moveLayer(w,B){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===B)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=B?this._order.indexOf(B):this._order.length;B&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${B}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let B=this._layers[w];if(!B)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));B.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=B,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],B.onRemove&&B.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,B,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===B&&ee.maxzoom===Q||(B!=null&&(ee.minzoom=B),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,B,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,B))return B==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,B,null,Q)||(ee.filter=a.aB(B),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getLayoutProperty(B),Q)||(le.setLayoutProperty(B,Q,ee),this._updateLayer(le)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,B){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(B);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getPaintProperty(B),Q)||(le.setPaintProperty(B,Q,ee)&&this._updateLayer(le),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,B){return this.getLayer(w).getPaintProperty(B)}setFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,le=this.sourceCaches[Q];if(le===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Fe=le.getSource().type;Fe==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Fe!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),le.setFeatureState(ee,w.id,B)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let le=ee.getSource().type,Fe=le==="vector"?w.sourceLayer:void 0;le!=="vector"||Fe?B&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(Fe,w.id,B):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let B=w.source,Q=w.sourceLayer,ee=this.sourceCaches[B];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${B}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,(le=>le.serialize())),B=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:B,terrain:Q},(le=>le!==void 0))}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let B=Fe=>this._layers[Fe].type==="fill-extrusion",Q={},ee=[];for(let Fe=this._order.length-1;Fe>=0;Fe--){let Ze=this._order[Fe];if(B(Ze)){Q[Ze]=Fe;for(let ut of w){let Mt=ut[Ze];if(Mt)for(let Jt of Mt)ee.push(Jt)}}}ee.sort(((Fe,Ze)=>Ze.intersectionZ-Fe.intersectionZ));let le=[];for(let Fe=this._order.length-1;Fe>=0;Fe--){let Ze=this._order[Fe];if(B(Ze))for(let ut=ee.length-1;ut>=0;ut--){let Mt=ee[ut].feature;if(Q[Mt.layer.id]{let fr=ze.featureSortOrder;if(fr){let br=fr.indexOf(Wt.featureIndex);return fr.indexOf(nr.featureIndex)-br}return nr.featureIndex-Wt.featureIndex}));for(let Wt of qt)nt.push(Wt)}}for(let ze in ve)ve[ze].forEach((Qe=>{let Xe=Qe.feature,nt=Mt[Ze[ze].source].getFeatureState(Xe.layer["source-layer"],Xe.id);Xe.source=Xe.layer.source,Xe.layer["source-layer"]&&(Xe.sourceLayer=Xe.layer["source-layer"]),Xe.state=nt}));return ve})(this._layers,Fe,this.sourceCaches,w,B,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(le)}querySourceFeatures(w,B){B&&B.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",B.filter,null,B);let Q=this.sourceCaches[w];return Q?(function(ee,le){let Fe=ee.getRenderableIds().map((Mt=>ee.getTileByID(Mt))),Ze=[],ut={};for(let Mt=0;Mtyr.getTileByID(Cr))).sort(((Cr,ve)=>ve.tileID.overscaledZ-Cr.tileID.overscaledZ||(Cr.tileID.isLessThan(ve.tileID)?-1:1)))}let $t=this.crossTileSymbolIndex.addLayer(Jt,ut[Jt.source],w.center.lng);Fe=Fe||$t}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((le=le||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(u.now(),w.zoom))&&(this.pauseablePlacement=new Ba(w,this.map.terrain,this._order,le,B,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,ut),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Ze=!0),Fe&&this.pauseablePlacement.placement.setStale()),Ze||Fe)for(let Mt of this._order){let Jt=this._layers[Mt];Jt.type==="symbol"&&this.placement.updateLayerOpacities(Jt,ut[Jt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(u.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,B){return a._(this,void 0,void 0,(function*(){let Q=yield this.imageManager.getImages(B.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,B.icons),Q}))}getGlyphs(w,B){return a._(this,void 0,void 0,(function*(){let Q=yield this.glyphManager.getGlyphs(B.stacks),ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,[""]),Q}))}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,B={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,B)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,B,Q={},ee){this._checkLoaded();let le=[{id:w,url:B}],Fe=[...C(this.stylesheet.sprite),...le];this._validate(a.u.sprite,"sprite",Fe,null,Q)||(this.stylesheet.sprite=Fe,this._loadSprite(le,!0,ee))}removeSprite(w){this._checkLoaded();let B=C(this.stylesheet.sprite);if(B.find((Q=>Q.id===w))){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;B.splice(B.findIndex((Q=>Q.id===w)),1),this.stylesheet.sprite=B.length>0?B:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return C(this.stylesheet.sprite)}setSprite(w,B={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,B)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var vo=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Gn={prelude:Ct(`#ifdef GL_ES precision mediump float; #else #if !defined(lowp) @@ -3749,7 +3749,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Ct("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Ct("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Ct("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:Ct("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Ct(ue,w){let B=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Q=w.match(/attribute ([\w]+) ([\w]+)/g),ee=ue.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),le=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Fe=le?le.concat(ee):ee,Ze={};return{fragmentSource:ue=ue.replace(B,(ut,Mt,Jt,$t,yr)=>(Ze[yr]=!0,Mt==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Ct("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Ct("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Ct("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:Ct("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Ct(ue,w){let B=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Q=w.match(/attribute ([\w]+) ([\w]+)/g),ee=ue.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),le=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Fe=le?le.concat(ee):ee,Ze={};return{fragmentSource:ue=ue.replace(B,((ut,Mt,Jt,$t,yr)=>(Ze[yr]=!0,Mt==="define"?` #ifndef HAS_UNIFORM_u_${yr} varying ${Jt} ${$t} ${yr}; #else @@ -3759,7 +3759,7 @@ uniform ${Jt} ${$t} u_${yr}; #ifdef HAS_UNIFORM_u_${yr} ${Jt} ${$t} ${yr} = u_${yr}; #endif -`)),vertexSource:w=w.replace(B,(ut,Mt,Jt,$t,yr)=>{let Cr=$t==="float"?"vec2":"vec4",ve=yr.match(/color/)?"color":Cr;return Ze[yr]?Mt==="define"?` +`))),vertexSource:w=w.replace(B,((ut,Mt,Jt,$t,yr)=>{let Cr=$t==="float"?"vec2":"vec4",ve=yr.match(/color/)?"color":Cr;return Ze[yr]?Mt==="define"?` #ifndef HAS_UNIFORM_u_${yr} uniform lowp float u_${yr}_t; attribute ${Jt} ${Cr} a_${yr}; @@ -3798,9 +3798,9 @@ uniform ${Jt} ${$t} u_${yr}; #else ${Jt} ${$t} ${yr} = u_${yr}; #endif -`}),staticAttributes:Q,staticUniforms:Fe}}class Sr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(w,B,Q,ee,le,Fe,Ze,ut,Mt){this.context=w;let Jt=this.boundPaintVertexBuffers.length!==ee.length;for(let $t=0;!Jt&&$t({u_matrix:ue,u_texture:0,u_ele_delta:w,u_fog_matrix:B,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function hi(ue){let w=[];for(let B=0;B({u_matrix:ue,u_texture:0,u_ele_delta:w,u_fog_matrix:B,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function hi(ue){let w=[];for(let B=0;B({u_depth:new a.aH(Wt,nr.u_depth),u_terrain:new a.aH(Wt,nr.u_terrain),u_terrain_dim:new a.aI(Wt,nr.u_terrain_dim),u_terrain_matrix:new a.aJ(Wt,nr.u_terrain_matrix),u_terrain_unpack:new a.aK(Wt,nr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(Wt,nr.u_terrain_exaggeration)}))(w,qt),this.binderUniforms=Q?Q.getUniforms(w,qt):[]}draw(w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr,ve,xe,Ie,ze,Qe){let Xe=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(le),w.setCullFace(Fe),ut){w.activeTexture.set(Xe.TEXTURE2),Xe.bindTexture(Xe.TEXTURE_2D,ut.depthTexture),w.activeTexture.set(Xe.TEXTURE3),Xe.bindTexture(Xe.TEXTURE_2D,ut.texture);for(let qt in this.terrainUniforms)this.terrainUniforms[qt].set(ut[qt])}for(let qt in this.fixedUniforms)this.fixedUniforms[qt].set(Ze[qt]);xe&&xe.setUniforms(w,this.binderUniforms,Cr,{zoom:ve});let nt=0;switch(B){case Xe.LINES:nt=2;break;case Xe.TRIANGLES:nt=3;break;case Xe.LINE_STRIP:nt=1}for(let qt of yr.get()){let Wt=qt.vaos||(qt.vaos={});(Wt[Mt]||(Wt[Mt]=new Sr)).bind(w,this,Jt,xe?xe.getPaintVertexBuffers():[],$t,qt.vertexOffset,Ie,ze,Qe),Xe.drawElements(B,qt.primitiveLength*nt,Xe.UNSIGNED_SHORT,qt.primitiveOffset*nt*2)}}}function Sn(ue,w,B){let Q=1/Fn(B,1,w.transform.tileZoom),ee=Math.pow(2,B.tileID.overscaledZ),le=B.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Fe=le*(B.tileID.canonical.x+B.tileID.wrap*ee),Ze=le*B.tileID.canonical.y;return{u_image:0,u_texsize:B.imageAtlasTexture.size,u_scale:[Q,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[Fe>>16,Ze>>16],u_pixel_coord_lower:[65535&Fe,65535&Ze]}}let En=(ue,w,B,Q)=>{let ee=w.style.light,le=ee.properties.get("position"),Fe=[le.x,le.y,le.z],Ze=function(){var Mt=new a.A(9);return a.A!=Float32Array&&(Mt[1]=0,Mt[2]=0,Mt[3]=0,Mt[5]=0,Mt[6]=0,Mt[7]=0),Mt[0]=1,Mt[4]=1,Mt[8]=1,Mt}();ee.properties.get("anchor")==="viewport"&&function(Mt,Jt){var $t=Math.sin(Jt),yr=Math.cos(Jt);Mt[0]=yr,Mt[1]=$t,Mt[2]=0,Mt[3]=-$t,Mt[4]=yr,Mt[5]=0,Mt[6]=0,Mt[7]=0,Mt[8]=1}(Ze,-w.transform.angle),function(Mt,Jt,$t){var yr=Jt[0],Cr=Jt[1],ve=Jt[2];Mt[0]=yr*$t[0]+Cr*$t[3]+ve*$t[6],Mt[1]=yr*$t[1]+Cr*$t[4]+ve*$t[7],Mt[2]=yr*$t[2]+Cr*$t[5]+ve*$t[8]}(Fe,Fe,Ze);let ut=ee.properties.get("color");return{u_matrix:ue,u_lightpos:Fe,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[ut.r,ut.g,ut.b],u_vertical_gradient:+B,u_opacity:Q}},ki=(ue,w,B,Q,ee,le,Fe)=>a.e(En(ue,w,B,Q),Sn(le,w,Fe),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Fe.tileSize/8}),_n=ue=>({u_matrix:ue}),ya=(ue,w,B,Q)=>a.e(_n(ue),Sn(B,w,Q)),ea=(ue,w)=>({u_matrix:ue,u_world:w}),Ma=(ue,w,B,Q,ee)=>a.e(ya(ue,w,B,Q),{u_world:ee}),_o=(ue,w,B,Q)=>{let ee=ue.transform,le,Fe;if(Q.paint.get("circle-pitch-alignment")==="map"){let Ze=Fn(B,1,ee.zoom);le=!0,Fe=[Ze,Ze]}else le=!1,Fe=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,B,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+le,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:Fe}},No=(ue,w,B)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:B.cameraToCenterDistance,u_viewport_size:[B.width,B.height]}),po=(ue,w,B=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:B}),Lo=ue=>({u_matrix:ue}),ko=(ue,w,B,Q)=>({u_matrix:ue,u_extrude_scale:Fn(w,1,B),u_intensity:Q}),Ds=(ue,w,B,Q)=>{let ee=a.H();a.aP(ee,0,ue.width,ue.height,0,0,1);let le=ue.context.gl;return{u_matrix:ee,u_world:[le.drawingBufferWidth,le.drawingBufferHeight],u_image:B,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Fs(ue,w){let B=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/B).toLngLat().lat,new a.Z(0,(Q+1)/B).toLngLat().lat]}let ll=(ue,w,B,Q)=>{let ee=ue.transform;return{u_matrix:As(ue,w,B,Q),u_ratio:1/Fn(w,1,ee.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},ul=(ue,w,B,Q,ee)=>a.e(ll(ue,w,B,ee),{u_image:0,u_image_height:Q}),zl=(ue,w,B,Q,ee)=>{let le=ue.transform,Fe=il(w,le);return{u_matrix:As(ue,w,B,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Fn(w,1,le.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[Fe,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/le.pixelsToGLUnits[0],1/le.pixelsToGLUnits[1]]}},us=(ue,w,B,Q,ee,le)=>{let Fe=ue.lineAtlas,Ze=il(w,ue.transform),ut=B.layout.get("line-cap")==="round",Mt=Fe.getDash(Q.from,ut),Jt=Fe.getDash(Q.to,ut),$t=Mt.width*ee.fromScale,yr=Jt.width*ee.toScale;return a.e(ll(ue,w,B,le),{u_patternscale_a:[Ze/$t,-Mt.height/2],u_patternscale_b:[Ze/yr,-Jt.height/2],u_sdfgamma:Fe.width/(256*Math.min($t,yr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Mt.y,u_tex_y_b:Jt.y,u_mix:ee.t})};function il(ue,w){return 1/Fn(ue,1,w.tileZoom)}function As(ue,w,B,Q){return ue.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,B.paint.get("line-translate"),B.paint.get("line-translate-anchor"))}let cl=(ue,w,B,Q,ee)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:B,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(Fe=ee.paint.get("raster-saturation"),Fe>0?1-1/(1.001-Fe):-Fe),u_contrast_factor:(le=ee.paint.get("raster-contrast"),le>0?1/(1-le):1+le),u_spin_weights:Ks(ee.paint.get("raster-hue-rotate"))};var le,Fe};function Ks(ue){ue*=Math.PI/180;let w=Math.sin(ue),B=Math.cos(ue);return[(2*B+1)/3,(-Math.sqrt(3)*w-B+1)/3,(Math.sqrt(3)*w-B+1)/3]}let zs=(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr)=>{let ve=Fe.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:ve.cameraToCenterDistance,u_pitch:ve.pitch/360*2*Math.PI,u_rotate_symbol:+B,u_aspect_ratio:ve.width/ve.height,u_fade_change:Fe.options.fadeDuration?Fe.symbolFadeChange:1,u_matrix:Ze,u_label_plane_matrix:ut,u_coord_matrix:Mt,u_is_text:+$t,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:le,u_texsize:yr,u_texture:0,u_translation:Jt,u_pitched_scale:Cr}},Io=(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr,ve)=>{let xe=Fe.transform;return a.e(zs(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,ve),{u_gamma_scale:Q?Math.cos(xe._pitch)*xe.cameraToCenterDistance:1,u_device_pixel_ratio:Fe.pixelRatio,u_is_halo:+Cr})},ls=(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr)=>a.e(Io(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,!0,$t,!0,Cr),{u_texsize_icon:yr,u_texture_icon:1}),Yl=(ue,w,B)=>({u_matrix:ue,u_opacity:w,u_color:B}),Su=(ue,w,B,Q,ee,le)=>a.e(function(Fe,Ze,ut,Mt){let Jt=ut.imageManager.getPattern(Fe.from.toString()),$t=ut.imageManager.getPattern(Fe.to.toString()),{width:yr,height:Cr}=ut.imageManager.getPixelSize(),ve=Math.pow(2,Mt.tileID.overscaledZ),xe=Mt.tileSize*Math.pow(2,ut.transform.tileZoom)/ve,Ie=xe*(Mt.tileID.canonical.x+Mt.tileID.wrap*ve),ze=xe*Mt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Jt.tl,u_pattern_br_a:Jt.br,u_pattern_tl_b:$t.tl,u_pattern_br_b:$t.br,u_texsize:[yr,Cr],u_mix:Ze.t,u_pattern_size_a:Jt.displaySize,u_pattern_size_b:$t.displaySize,u_scale_a:Ze.fromScale,u_scale_b:Ze.toScale,u_tile_units_to_pixels:1/Fn(Mt,1,ut.transform.tileZoom),u_pixel_coord_upper:[Ie>>16,ze>>16],u_pixel_coord_lower:[65535&Ie,65535&ze]}}(Q,le,B,ee),{u_matrix:ue,u_opacity:w}),nc={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class bs{constructor(w,B,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let B=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),B.bufferSubData(B.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Rn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class _a{constructor(w,B,Q,ee){this.length=B.length,this.attributes=Q,this.itemSize=B.bytesPerElement,this.dynamicDraw=ee,this.context=w;let le=w.gl;this.buffer=le.createBuffer(),w.bindVertexBuffer.set(this.buffer),le.bufferData(le.ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?le.DYNAMIC_DRAW:le.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let B=this.context.gl;this.bind(),B.bufferSubData(B.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,B){for(let Q=0;Q0){let Wt=a.H();a.aQ(Wt,Xe.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(Wt,Wt,Xe.placementViewportMatrix),ut.push({circleArray:qt,circleOffset:Jt,transform:Qe.posMatrix,invTransform:Wt,coord:Qe}),Mt+=qt.length/4,Jt=Mt}nt&&Ze.draw(le,Fe.LINES,Po.disabled,Ko.disabled,ue.colorModeForRenderPass(),Pa.disabled,{u_matrix:Qe.posMatrix,u_pixel_extrude_scale:[1/($t=ue.transform).width,1/$t.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(Qe),B.id,nt.layoutVertexBuffer,nt.indexBuffer,nt.segments,null,ue.transform.zoom,null,null,nt.collisionVertexBuffer)}var $t;if(!ee||!ut.length)return;let yr=ue.useProgram("collisionCircle"),Cr=new a.aR;Cr.resize(4*Mt),Cr._trim();let ve=0;for(let ze of ut)for(let Qe=0;Qe=0&&(ze[Xe.associatedIconIndex]={shiftedAnchor:Yn,angle:Aa})}else Pi(Xe.numGlyphs,xe)}if(Mt){Ie.clear();let Qe=ue.icon.placedSymbolArray;for(let Xe=0;Xeue.style.map.terrain.getElevation(Hr,ot,Xt):null,Pt=B.layout.get("text-rotation-alignment")==="map";We(Ci,Hr.posMatrix,ue,ee,Ul,au,ze,Mt,Pt,xe,Hr.toUnwrapped(),ve.width,ve.height,Js,Ye)}let Tl=Hr.posMatrix,Al=ee&&fr||dc,X=Qe||Al?bl:Ul,se=Lu,Te=Ln&&B.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,qe;qe=Ln?Ci.iconsInText?ls(Yn.kind,$a,Xe,ze,Qe,Al,ue,Tl,X,se,Js,Qa,Ts,Fr):Io(Yn.kind,$a,Xe,ze,Qe,Al,ue,Tl,X,se,Js,ee,Qa,!0,Fr):zs(Yn.kind,$a,Xe,ze,Qe,Al,ue,Tl,X,se,Js,ee,Qa,Fr);let Ve={program:fa,buffers:cn,uniformValues:qe,atlasTexture:mo,atlasTextureIcon:wo,atlasInterpolation:Bo,atlasInterpolationIcon:Ps,isSDF:Ln,hasHalo:Te};if(qt&&Ci.canOverlap){Wt=!0;let Ye=cn.segments.get();for(let Pt of Ye)br.push({segments:new a.a0([Pt]),sortKey:Pt.sortKey,state:Ve,terrainData:Co})}else br.push({segments:cn.segments,sortKey:0,state:Ve,terrainData:Co})}Wt&&br.sort((Hr,ri)=>Hr.sortKey-ri.sortKey);for(let Hr of br){let ri=Hr.state;if(yr.activeTexture.set(Cr.TEXTURE0),ri.atlasTexture.bind(ri.atlasInterpolation,Cr.CLAMP_TO_EDGE),ri.atlasTextureIcon&&(yr.activeTexture.set(Cr.TEXTURE1),ri.atlasTextureIcon&&ri.atlasTextureIcon.bind(ri.atlasInterpolationIcon,Cr.CLAMP_TO_EDGE)),ri.isSDF){let Ci=ri.uniformValues;ri.hasHalo&&(Ci.u_is_halo=1,Qf(ri.buffers,Hr.segments,B,ue,ri.program,nr,Jt,$t,Ci,Hr.terrainData)),Ci.u_is_halo=0}Qf(ri.buffers,Hr.segments,B,ue,ri.program,nr,Jt,$t,ri.uniformValues,Hr.terrainData)}}function Qf(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt){let Jt=Q.context;ee.draw(Jt,Jt.gl.TRIANGLES,le,Fe,Ze,Pa.disabled,ut,Mt,B.id,ue.layoutVertexBuffer,ue.indexBuffer,w,B.paint,Q.transform.zoom,ue.programConfigurations.get(B.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function _f(ue,w,B,Q){let ee=ue.context,le=ee.gl,Fe=Ko.disabled,Ze=new Os([le.ONE,le.ONE],a.aM.transparent,[!0,!0,!0,!0]),ut=w.getBucket(B);if(!ut)return;let Mt=Q.key,Jt=B.heatmapFbos.get(Mt);Jt||(Jt=eh(ee,w.tileSize,w.tileSize),B.heatmapFbos.set(Mt,Jt)),ee.bindFramebuffer.set(Jt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let $t=ut.programConfigurations.get(B.id),yr=ue.useProgram("heatmap",$t),Cr=ue.style.map.terrain.getTerrainData(Q);yr.draw(ee,le.TRIANGLES,Po.disabled,Fe,Ze,Pa.disabled,ko(Q.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Cr,B.id,ut.layoutVertexBuffer,ut.indexBuffer,ut.segments,B.paint,ue.transform.zoom,$t)}function Yc(ue,w,B){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let le=th(Q,w),Fe=B.key,Ze=w.heatmapFbos.get(Fe);Ze&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Ze.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),le.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,Po.disabled,Ko.disabled,ue.colorModeForRenderPass(),Pa.disabled,Ds(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),Ze.destroy(),w.heatmapFbos.delete(Fe))}function eh(ue,w,B){var Q,ee;let le=ue.gl,Fe=le.createTexture();le.bindTexture(le.TEXTURE_2D,Fe),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,le.LINEAR),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,le.LINEAR);let Ze=(Q=ue.HALF_FLOAT)!==null&&Q!==void 0?Q:le.UNSIGNED_BYTE,ut=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:le.RGBA;le.texImage2D(le.TEXTURE_2D,0,ut,w,B,0,le.RGBA,Ze,null);let Mt=ue.createFramebuffer(w,B,!1,!1);return Mt.colorAttachment.set(Fe),Mt}function th(ue,w){return w.colorRampTexture||(w.colorRampTexture=new g(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function ju(ue,w,B,Q,ee){if(!B||!Q||!Q.imageAtlas)return;let le=Q.imageAtlas.patternPositions,Fe=le[B.to.toString()],Ze=le[B.from.toString()];if(!Fe&&Ze&&(Fe=Ze),!Ze&&Fe&&(Ze=Fe),!Fe||!Ze){let ut=ee.getPaintProperty(w);Fe=le[ut],Ze=le[ut]}Fe&&Ze&&ue.setConstantPatternPositions(Fe,Ze)}function jf(ue,w,B,Q,ee,le,Fe){let Ze=ue.context.gl,ut="fill-pattern",Mt=B.paint.get(ut),Jt=Mt&&Mt.constantOr(1),$t=B.getCrossfadeParameters(),yr,Cr,ve,xe,Ie;Fe?(Cr=Jt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",yr=Ze.LINES):(Cr=Jt?"fillPattern":"fill",yr=Ze.TRIANGLES);let ze=Mt.constantOr(null);for(let Qe of Q){let Xe=w.getTile(Qe);if(Jt&&!Xe.patternsLoaded())continue;let nt=Xe.getBucket(B);if(!nt)continue;let qt=nt.programConfigurations.get(B.id),Wt=ue.useProgram(Cr,qt),nr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(Qe);Jt&&(ue.context.activeTexture.set(Ze.TEXTURE0),Xe.imageAtlasTexture.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),qt.updatePaintBuffers($t)),ju(qt,ut,ze,Xe,B);let fr=nr?Qe:null,br=ue.translatePosMatrix(fr?fr.posMatrix:Qe.posMatrix,Xe,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(Fe){xe=nt.indexBuffer2,Ie=nt.segments2;let Fr=[Ze.drawingBufferWidth,Ze.drawingBufferHeight];ve=Cr==="fillOutlinePattern"&&Jt?Ma(br,ue,$t,Xe,Fr):ea(br,Fr)}else xe=nt.indexBuffer,Ie=nt.segments,ve=Jt?ya(br,ue,$t,Xe):_n(br);Wt.draw(ue.context,yr,ee,ue.stencilModeForClipping(Qe),le,Pa.disabled,ve,nr,B.id,nt.layoutVertexBuffer,xe,Ie,B.paint,ue.transform.zoom,qt)}}function cc(ue,w,B,Q,ee,le,Fe){let Ze=ue.context,ut=Ze.gl,Mt="fill-extrusion-pattern",Jt=B.paint.get(Mt),$t=Jt.constantOr(1),yr=B.getCrossfadeParameters(),Cr=B.paint.get("fill-extrusion-opacity"),ve=Jt.constantOr(null);for(let xe of Q){let Ie=w.getTile(xe),ze=Ie.getBucket(B);if(!ze)continue;let Qe=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(xe),Xe=ze.programConfigurations.get(B.id),nt=ue.useProgram($t?"fillExtrusionPattern":"fillExtrusion",Xe);$t&&(ue.context.activeTexture.set(ut.TEXTURE0),Ie.imageAtlasTexture.bind(ut.LINEAR,ut.CLAMP_TO_EDGE),Xe.updatePaintBuffers(yr)),ju(Xe,Mt,ve,Ie,B);let qt=ue.translatePosMatrix(xe.posMatrix,Ie,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),Wt=B.paint.get("fill-extrusion-vertical-gradient"),nr=$t?ki(qt,ue,Wt,Cr,xe,yr,Ie):En(qt,ue,Wt,Cr);nt.draw(Ze,Ze.gl.TRIANGLES,ee,le,Fe,Pa.backCCW,nr,Qe,B.id,ze.layoutVertexBuffer,ze.indexBuffer,ze.segments,B.paint,ue.transform.zoom,Xe,ue.style.map.terrain&&ze.centroidVertexBuffer)}}function sf(ue,w,B,Q,ee,le,Fe){let Ze=ue.context,ut=Ze.gl,Mt=B.fbo;if(!Mt)return;let Jt=ue.useProgram("hillshade"),$t=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Ze.activeTexture.set(ut.TEXTURE0),ut.bindTexture(ut.TEXTURE_2D,Mt.colorAttachment.get()),Jt.draw(Ze,ut.TRIANGLES,ee,le,Fe,Pa.disabled,((yr,Cr,ve,xe)=>{let Ie=ve.paint.get("hillshade-shadow-color"),ze=ve.paint.get("hillshade-highlight-color"),Qe=ve.paint.get("hillshade-accent-color"),Xe=ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(Xe-=yr.transform.angle);let nt=!yr.options.moving;return{u_matrix:xe?xe.posMatrix:yr.transform.calculatePosMatrix(Cr.tileID.toUnwrapped(),nt),u_image:0,u_latrange:Fs(0,Cr.tileID),u_light:[ve.paint.get("hillshade-exaggeration"),Xe],u_shadow:Ie,u_highlight:ze,u_accent:Qe}})(ue,B,Q,$t?w:null),$t,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Nl(ue,w,B,Q,ee,le){let Fe=ue.context,Ze=Fe.gl,ut=w.dem;if(ut&&ut.data){let Mt=ut.dim,Jt=ut.stride,$t=ut.getPixels();if(Fe.activeTexture.set(Ze.TEXTURE1),Fe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Jt),w.demTexture){let Cr=w.demTexture;Cr.update($t,{premultiply:!1}),Cr.bind(Ze.NEAREST,Ze.CLAMP_TO_EDGE)}else w.demTexture=new g(Fe,$t,Ze.RGBA,{premultiply:!1}),w.demTexture.bind(Ze.NEAREST,Ze.CLAMP_TO_EDGE);Fe.activeTexture.set(Ze.TEXTURE0);let yr=w.fbo;if(!yr){let Cr=new g(Fe,{width:Mt,height:Mt,data:null},Ze.RGBA);Cr.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),yr=w.fbo=Fe.createFramebuffer(Mt,Mt,!0,!1),yr.colorAttachment.set(Cr.texture)}Fe.bindFramebuffer.set(yr.framebuffer),Fe.viewport.set([0,0,Mt,Mt]),ue.useProgram("hillshadePrepare").draw(Fe,Ze.TRIANGLES,Q,ee,le,Pa.disabled,((Cr,ve)=>{let xe=ve.stride,Ie=a.H();return a.aP(Ie,0,a.X,-a.X,0,0,1),a.J(Ie,Ie,[0,-a.X,0]),{u_matrix:Ie,u_image:1,u_dimension:[xe,xe],u_zoom:Cr.overscaledZ,u_unpack:ve.getUnpackVector()}})(w.tileID,ut),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Kc(ue,w,B,Q,ee,le){let Fe=Q.paint.get("raster-fade-duration");if(!le&&Fe>0){let Ze=u.now(),ut=(Ze-ue.timeAdded)/Fe,Mt=w?(Ze-w.timeAdded)/Fe:-1,Jt=B.getSource(),$t=ee.coveringZoomLevel({tileSize:Jt.tileSize,roundZoom:Jt.roundZoom}),yr=!w||Math.abs(w.tileID.overscaledZ-$t)>Math.abs(ue.tileID.overscaledZ-$t),Cr=yr&&ue.refreshedUponExpiration?1:a.ac(yr?ut:1-Mt,0,1);return ue.refreshedUponExpiration&&ut>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Cr}:{opacity:Cr,mix:0}}return{opacity:1,mix:0}}let Rc=new a.aM(1,0,0,1),gs=new a.aM(0,1,0,1),Wf=new a.aM(0,0,1,1),Wh=new a.aM(1,0,1,1),rh=new a.aM(0,1,1,1);function lf(ue,w,B,Q){Mu(ue,0,w+B/2,ue.transform.width,B,Q)}function Sh(ue,w,B,Q){Mu(ue,w-B/2,0,B,ue.transform.height,Q)}function Mu(ue,w,B,Q,ee,le){let Fe=ue.context,Ze=Fe.gl;Ze.enable(Ze.SCISSOR_TEST),Ze.scissor(w*ue.pixelRatio,B*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),Fe.clear({color:le}),Ze.disable(Ze.SCISSOR_TEST)}function ih(ue,w,B){let Q=ue.context,ee=Q.gl,le=B.posMatrix,Fe=ue.useProgram("debug"),Ze=Po.disabled,ut=Ko.disabled,Mt=ue.colorModeForRenderPass(),Jt="$debug",$t=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);Q.activeTexture.set(ee.TEXTURE0);let yr=w.getTileByID(B.key).latestRawTileData,Cr=Math.floor((yr&&yr.byteLength||0)/1024),ve=w.getTile(B).tileSize,xe=512/Math.min(ve,512)*(B.overscaledZ/ue.transform.zoom)*.5,Ie=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Ie+=` => ${B.overscaledZ}`),function(ze,Qe){ze.initDebugOverlayCanvas();let Xe=ze.debugOverlayCanvas,nt=ze.context.gl,qt=ze.debugOverlayCanvas.getContext("2d");qt.clearRect(0,0,Xe.width,Xe.height),qt.shadowColor="white",qt.shadowBlur=2,qt.lineWidth=1.5,qt.strokeStyle="white",qt.textBaseline="top",qt.font="bold 36px Open Sans, sans-serif",qt.fillText(Qe,5,5),qt.strokeText(Qe,5,5),ze.debugOverlayTexture.update(Xe),ze.debugOverlayTexture.bind(nt.LINEAR,nt.CLAMP_TO_EDGE)}(ue,`${Ie} ${Cr}kB`),Fe.draw(Q,ee.TRIANGLES,Ze,ut,Os.alphaBlended,Pa.disabled,po(le,a.aM.transparent,xe),null,Jt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),Fe.draw(Q,ee.LINE_STRIP,Ze,ut,Mt,Pa.disabled,po(le,a.aM.red),$t,Jt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function js(ue,w,B){let Q=ue.context,ee=Q.gl,le=ue.colorModeForRenderPass(),Fe=new Po(ee.LEQUAL,Po.ReadWrite,ue.depthRangeFor3D),Ze=ue.useProgram("terrain"),ut=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Mt of B){let Jt=ue.renderToTexture.getTexture(Mt),$t=w.getTerrainData(Mt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Jt.texture);let yr=ue.transform.calculatePosMatrix(Mt.tileID.toUnwrapped()),Cr=w.getMeshFrameDelta(ue.transform.zoom),ve=ue.transform.calculateFogMatrix(Mt.tileID.toUnwrapped()),xe=Jr(yr,Cr,ve,ue.style.sky,ue.transform.pitch);Ze.draw(Q,ee.TRIANGLES,Fe,Ko.disabled,le,Pa.backCCW,xe,$t,"terrain",ut.vertexBuffer,ut.indexBuffer,ut.segments)}}class Eu{constructor(w,B,Q){this.vertexBuffer=w,this.indexBuffer=B,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Dc{constructor(w,B){this.context=new od(w),this.transform=B,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=pt.maxUnderzooming+pt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Xo}resize(w,B,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(B*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,B=new a.aX;B.emplaceBack(0,0),B.emplaceBack(a.X,0),B.emplaceBack(0,a.X),B.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(B,vo.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,vo.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,ct.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let le=new a.aX;le.emplaceBack(0,0),le.emplaceBack(1,0),le.emplaceBack(0,1),le.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(le,vo.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let Fe=new a.aZ;Fe.emplaceBack(0),Fe.emplaceBack(1),Fe.emplaceBack(3),Fe.emplaceBack(2),Fe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Fe);let Ze=new a.aY;Ze.emplaceBack(0,1,2),Ze.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Ze);let ut=this.context.gl;this.stencilClearMode=new Ko({func:ut.ALWAYS,mask:0},0,255,ut.ZERO,ut.ZERO,ut.ZERO)}clearStencil(){let w=this.context,B=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[B.drawingBufferWidth,B.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,B.TRIANGLES,Po.disabled,this.stencilClearMode,Os.disabled,Pa.disabled,Lo(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,B){if(this.currentStencilSource===w.source||!w.isTileClipped()||!B||!B.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+B.length>256&&this.clearStencil(),Q.setColorMode(Os.disabled),Q.setDepthMode(Po.disabled);let le=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Fe of B){let Ze=this._tileClippingMaskIDs[Fe.key]=this.nextStencilID++,ut=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Fe);le.draw(Q,ee.TRIANGLES,Po.disabled,new Ko({func:ee.ALWAYS,mask:0},Ze,255,ee.KEEP,ee.KEEP,ee.REPLACE),Os.disabled,Pa.disabled,Lo(Fe.posMatrix),ut,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,B=this.context.gl;return new Ko({func:B.NOTEQUAL,mask:255},w,255,B.KEEP,B.KEEP,B.REPLACE)}stencilModeForClipping(w){let B=this.context.gl;return new Ko({func:B.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,B.KEEP,B.KEEP,B.REPLACE)}stencilConfigForOverlap(w){let B=this.context.gl,Q=w.sort((Fe,Ze)=>Ze.overscaledZ-Fe.overscaledZ),ee=Q[Q.length-1].overscaledZ,le=Q[0].overscaledZ-ee+1;if(le>1){this.currentStencilSource=void 0,this.nextStencilID+le>256&&this.clearStencil();let Fe={};for(let Ze=0;Ze({u_sky_color:ze.properties.get("sky-color"),u_horizon_color:ze.properties.get("horizon-color"),u_horizon:(Qe.height/2+Qe.getHorizon())*Xe,u_sky_horizon_blend:ze.properties.get("sky-horizon-blend")*Qe.height/2*Xe}))(Mt,ut.style.map.transform,ut.pixelRatio),Cr=new Po($t.LEQUAL,Po.ReadWrite,[0,1]),ve=Ko.disabled,xe=ut.colorModeForRenderPass(),Ie=ut.useProgram("sky");if(!Mt.mesh){let ze=new a.aX;ze.emplaceBack(-1,-1),ze.emplaceBack(1,-1),ze.emplaceBack(1,1),ze.emplaceBack(-1,1);let Qe=new a.aY;Qe.emplaceBack(0,1,2),Qe.emplaceBack(0,2,3),Mt.mesh=new Eu(Jt.createVertexBuffer(ze,vo.members),Jt.createIndexBuffer(Qe),a.a0.simpleSegment(0,0,ze.length,Qe.length))}Ie.draw(Jt,$t.TRIANGLES,Cr,ve,xe,Pa.disabled,yr,void 0,"sky",Mt.mesh.vertexBuffer,Mt.mesh.indexBuffer,Mt.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=B.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let ut=this.style._layers[Q[this.currentLayer]],Mt=ee[ut.source],Jt=le[ut.source];this._renderTileClippingMasks(ut,Jt),this.renderLayer(this,Mt,ut,Jt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerIe.source&&!Ie.isHidden(Jt)?[Mt.sourceCaches[Ie.source]]:[]),Cr=yr.filter(Ie=>Ie.getSource().type==="vector"),ve=yr.filter(Ie=>Ie.getSource().type!=="vector"),xe=Ie=>{(!$t||$t.getSource().maxzoomxe(Ie)),$t||ve.forEach(Ie=>xe(Ie)),$t}(this.style,this.transform.zoom);ut&&function(Mt,Jt,$t){for(let yr=0;yr<$t.length;yr++)ih(Mt,Jt,$t[yr])}(this,ut,ut.getVisibleCoordinates())}this.options.showPadding&&function(ut){let Mt=ut.transform.padding;lf(ut,ut.transform.height-(Mt.top||0),3,Rc),lf(ut,Mt.bottom||0,3,gs),Sh(ut,Mt.left||0,3,Wf),Sh(ut,ut.transform.width-(Mt.right||0),3,Wh);let Jt=ut.transform.centerPoint;(function($t,yr,Cr,ve){Mu($t,yr-1,Cr-10,2,20,ve),Mu($t,yr-10,Cr-1,20,2,ve)})(ut,Jt.x,ut.transform.height-Jt.y,rh)}(this),this.context.setDefault()}maybeDrawDepthAndCoords(w){if(!this.style||!this.style.map||!this.style.map.terrain)return;let B=this.terrainFacilitator.matrix,Q=this.transform.modelViewProjectionMatrix,ee=this.terrainFacilitator.dirty;ee||(ee=w?!a.a_(B,Q):!a.a$(B,Q)),ee||(ee=this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length>0),ee&&(a.b0(B,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(le,Fe){let Ze=le.context,ut=Ze.gl,Mt=Os.unblended,Jt=new Po(ut.LEQUAL,Po.ReadWrite,[0,1]),$t=Fe.getTerrainMesh(),yr=Fe.sourceCache.getRenderableTiles(),Cr=le.useProgram("terrainDepth");Ze.bindFramebuffer.set(Fe.getFramebuffer("depth").framebuffer),Ze.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Ze.clear({color:a.aM.transparent,depth:1});for(let ve of yr){let xe=Fe.getTerrainData(ve.tileID),Ie={u_matrix:le.transform.calculatePosMatrix(ve.tileID.toUnwrapped()),u_ele_delta:Fe.getMeshFrameDelta(le.transform.zoom)};Cr.draw(Ze,ut.TRIANGLES,Jt,Ko.disabled,Mt,Pa.backCCW,Ie,xe,"terrain",$t.vertexBuffer,$t.indexBuffer,$t.segments)}Ze.bindFramebuffer.set(null),Ze.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain),function(le,Fe){let Ze=le.context,ut=Ze.gl,Mt=Os.unblended,Jt=new Po(ut.LEQUAL,Po.ReadWrite,[0,1]),$t=Fe.getTerrainMesh(),yr=Fe.getCoordsTexture(),Cr=Fe.sourceCache.getRenderableTiles(),ve=le.useProgram("terrainCoords");Ze.bindFramebuffer.set(Fe.getFramebuffer("coords").framebuffer),Ze.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Ze.clear({color:a.aM.transparent,depth:1}),Fe.coordsIndex=[];for(let xe of Cr){let Ie=Fe.getTerrainData(xe.tileID);Ze.activeTexture.set(ut.TEXTURE0),ut.bindTexture(ut.TEXTURE_2D,yr.texture);let ze={u_matrix:le.transform.calculatePosMatrix(xe.tileID.toUnwrapped()),u_terrain_coords_id:(255-Fe.coordsIndex.length)/255,u_texture:0,u_ele_delta:Fe.getMeshFrameDelta(le.transform.zoom)};ve.draw(Ze,ut.TRIANGLES,Jt,Ko.disabled,Mt,Pa.backCCW,ze,Ie,"terrain",$t.vertexBuffer,$t.indexBuffer,$t.segments),Fe.coordsIndex.push(xe.tileID.key)}Ze.bindFramebuffer.set(null),Ze.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain))}renderLayer(w,B,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(le,Fe,Ze,ut,Mt){if(le.renderPass!=="translucent")return;let Jt=Ko.disabled,$t=le.colorModeForRenderPass();(Ze._unevaluatedLayout.hasValue("text-variable-anchor")||Ze._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(yr,Cr,ve,xe,Ie,ze,Qe,Xe,nt){let qt=Cr.transform,Wt=yn(),nr=Ie==="map",fr=ze==="map";for(let br of yr){let Fr=xe.getTile(br),Hr=Fr.getBucket(ve);if(!Hr||!Hr.text||!Hr.text.segments.get().length)continue;let ri=a.ag(Hr.textSizeData,qt.zoom),Ci=Fn(Fr,1,Cr.transform.zoom),cn=qr(br.posMatrix,fr,nr,Cr.transform,Ci),sn=ve.layout.get("icon-text-fit")!=="none"&&Hr.hasIconData();if(ri){let Ln=Math.pow(2,qt.zoom-Fr.tileID.overscaledZ),Yn=Cr.style.map.terrain?(fa,$a)=>Cr.style.map.terrain.getElevation(br,fa,$a):null,Aa=Wt.translatePosition(qt,Fr,Qe,Xe);yf(Hr,nr,fr,nt,qt,cn,br.posMatrix,Ln,ri,sn,Wt,Aa,br.toUnwrapped(),Yn)}}}(ut,le,Ze,Fe,Ze.layout.get("text-rotation-alignment"),Ze.layout.get("text-pitch-alignment"),Ze.paint.get("text-translate"),Ze.paint.get("text-translate-anchor"),Mt),Ze.paint.get("icon-opacity").constantOr(1)!==0&&Ah(le,Fe,Ze,ut,!1,Ze.paint.get("icon-translate"),Ze.paint.get("icon-translate-anchor"),Ze.layout.get("icon-rotation-alignment"),Ze.layout.get("icon-pitch-alignment"),Ze.layout.get("icon-keep-upright"),Jt,$t),Ze.paint.get("text-opacity").constantOr(1)!==0&&Ah(le,Fe,Ze,ut,!0,Ze.paint.get("text-translate"),Ze.paint.get("text-translate-anchor"),Ze.layout.get("text-rotation-alignment"),Ze.layout.get("text-pitch-alignment"),Ze.layout.get("text-keep-upright"),Jt,$t),Fe.map.showCollisionBoxes&&(Hu(le,Fe,Ze,ut,!0),Hu(le,Fe,Ze,ut,!1))})(w,B,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(le,Fe,Ze,ut){if(le.renderPass!=="translucent")return;let Mt=Ze.paint.get("circle-opacity"),Jt=Ze.paint.get("circle-stroke-width"),$t=Ze.paint.get("circle-stroke-opacity"),yr=!Ze.layout.get("circle-sort-key").isConstant();if(Mt.constantOr(1)===0&&(Jt.constantOr(1)===0||$t.constantOr(1)===0))return;let Cr=le.context,ve=Cr.gl,xe=le.depthModeForSublayer(0,Po.ReadOnly),Ie=Ko.disabled,ze=le.colorModeForRenderPass(),Qe=[];for(let Xe=0;XeXe.sortKey-nt.sortKey);for(let Xe of Qe){let{programConfiguration:nt,program:qt,layoutVertexBuffer:Wt,indexBuffer:nr,uniformValues:fr,terrainData:br}=Xe.state;qt.draw(Cr,ve.TRIANGLES,xe,Ie,ze,Pa.disabled,fr,br,Ze.id,Wt,nr,Xe.segments,Ze.paint,le.transform.zoom,nt)}})(w,B,Q,ee);break;case"heatmap":(function(le,Fe,Ze,ut){if(Ze.paint.get("heatmap-opacity")===0)return;let Mt=le.context;if(le.style.map.terrain){for(let Jt of ut){let $t=Fe.getTile(Jt);Fe.hasRenderableParent(Jt)||(le.renderPass==="offscreen"?_f(le,$t,Ze,Jt):le.renderPass==="translucent"&&Yc(le,Ze,Jt))}Mt.viewport.set([0,0,le.width,le.height])}else le.renderPass==="offscreen"?function(Jt,$t,yr,Cr){let ve=Jt.context,xe=ve.gl,Ie=Ko.disabled,ze=new Os([xe.ONE,xe.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(Qe,Xe,nt){let qt=Qe.gl;Qe.activeTexture.set(qt.TEXTURE1),Qe.viewport.set([0,0,Xe.width/4,Xe.height/4]);let Wt=nt.heatmapFbos.get(a.aU);Wt?(qt.bindTexture(qt.TEXTURE_2D,Wt.colorAttachment.get()),Qe.bindFramebuffer.set(Wt.framebuffer)):(Wt=eh(Qe,Xe.width/4,Xe.height/4),nt.heatmapFbos.set(a.aU,Wt))})(ve,Jt,yr),ve.clear({color:a.aM.transparent});for(let Qe=0;Qe20&&Jt.texParameterf(Jt.TEXTURE_2D,Mt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Mt.extTextureFilterAnisotropicMax);let Hr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(Qe),ri=Hr?Qe:null,Ci=ri?ri.posMatrix:le.transform.calculatePosMatrix(Qe.toUnwrapped(),ze),cn=cl(Ci,br||[0,0],fr||1,nr,Ze);$t instanceof ar?yr.draw(Mt,Jt.TRIANGLES,Xe,Ko.disabled,Cr,Pa.disabled,cn,Hr,Ze.id,$t.boundsBuffer,le.quadTriangleIndexBuffer,$t.boundsSegments):yr.draw(Mt,Jt.TRIANGLES,Xe,ve[Qe.overscaledZ],Cr,Pa.disabled,cn,Hr,Ze.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}})(w,B,Q,ee);break;case"background":(function(le,Fe,Ze,ut){let Mt=Ze.paint.get("background-color"),Jt=Ze.paint.get("background-opacity");if(Jt===0)return;let $t=le.context,yr=$t.gl,Cr=le.transform,ve=Cr.tileSize,xe=Ze.paint.get("background-pattern");if(le.isPatternMissing(xe))return;let Ie=!xe&&Mt.a===1&&Jt===1&&le.opaquePassEnabledForLayer()?"opaque":"translucent";if(le.renderPass!==Ie)return;let ze=Ko.disabled,Qe=le.depthModeForSublayer(0,Ie==="opaque"?Po.ReadWrite:Po.ReadOnly),Xe=le.colorModeForRenderPass(),nt=le.useProgram(xe?"backgroundPattern":"background"),qt=ut||Cr.coveringTiles({tileSize:ve,terrain:le.style.map.terrain});xe&&($t.activeTexture.set(yr.TEXTURE0),le.imageManager.bind(le.context));let Wt=Ze.getCrossfadeParameters();for(let nr of qt){let fr=ut?nr.posMatrix:le.transform.calculatePosMatrix(nr.toUnwrapped()),br=xe?Su(fr,Jt,le,xe,{tileID:nr,tileSize:ve},Wt):Yl(fr,Jt,Mt),Fr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(nr);nt.draw($t,yr.TRIANGLES,Qe,ze,Xe,Pa.disabled,br,Fr,Ze.id,le.tileExtentBuffer,le.quadTriangleIndexBuffer,le.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(le,Fe,Ze){let ut=le.context,Mt=Ze.implementation;if(le.renderPass==="offscreen"){let Jt=Mt.prerender;Jt&&(le.setCustomLayerDefaults(),ut.setColorMode(le.colorModeForRenderPass()),Jt.call(Mt,ut.gl,le.transform.customLayerMatrix()),ut.setDirty(),le.setBaseState())}else if(le.renderPass==="translucent"){le.setCustomLayerDefaults(),ut.setColorMode(le.colorModeForRenderPass()),ut.setStencilMode(Ko.disabled);let Jt=Mt.renderingMode==="3d"?new Po(le.context.gl.LEQUAL,Po.ReadWrite,le.depthRangeFor3D):le.depthModeForSublayer(0,Po.ReadOnly);ut.setDepthMode(Jt),Mt.render(ut.gl,le.transform.customLayerMatrix(),{farZ:le.transform.farZ,nearZ:le.transform.nearZ,fov:le.transform._fov,modelViewProjectionMatrix:le.transform.modelViewProjectionMatrix,projectionMatrix:le.transform.projectionMatrix}),ut.setDirty(),le.setBaseState(),ut.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,B,Q,ee,le){if(!Q[0]&&!Q[1])return w;let Fe=le?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Fe){let Mt=Math.sin(Fe),Jt=Math.cos(Fe);Q=[Q[0]*Jt-Q[1]*Mt,Q[0]*Mt+Q[1]*Jt]}let Ze=[le?Q[0]:Fn(B,Q[0],this.transform.zoom),le?Q[1]:Fn(B,Q[1],this.transform.zoom),0],ut=new Float32Array(16);return a.J(ut,w,Ze),ut}saveTileTexture(w){let B=this._tileTextures[w.size[0]];B?B.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let B=this._tileTextures[w];return B&&B.length>0?B.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let B=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!B||!Q}useProgram(w,B){this.cache=this.cache||{};let Q=w+(B?B.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new hn(this.context,Gn[w],B,nc[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new g(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:B}=this.context.gl;return this.width!==w||this.height!==B}}class ks{constructor(w,B){this.points=w,this.planes=B}static fromInvProjectionMatrix(w,B,Q){let ee=Math.pow(2,Q),le=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(Ze=>{let ut=1/(Ze=a.af([],Ze,w))[3]/B*ee;return a.b1(Ze,Ze,[ut,ut,1/Ze[3],ut])}),Fe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Ze=>{let ut=function(yr,Cr){var ve=Cr[0],xe=Cr[1],Ie=Cr[2],ze=ve*ve+xe*xe+Ie*Ie;return ze>0&&(ze=1/Math.sqrt(ze)),yr[0]=Cr[0]*ze,yr[1]=Cr[1]*ze,yr[2]=Cr[2]*ze,yr}([],function(yr,Cr,ve){var xe=Cr[0],Ie=Cr[1],ze=Cr[2],Qe=ve[0],Xe=ve[1],nt=ve[2];return yr[0]=Ie*nt-ze*Xe,yr[1]=ze*Qe-xe*nt,yr[2]=xe*Xe-Ie*Qe,yr}([],L([],le[Ze[0]],le[Ze[1]]),L([],le[Ze[2]],le[Ze[1]]))),Mt=-((Jt=ut)[0]*($t=le[Ze[1]])[0]+Jt[1]*$t[1]+Jt[2]*$t[2]);var Jt,$t;return ut.concat(Mt)});return new ks(le,Fe)}}class bc{constructor(w,B){this.min=w,this.max=B,this.center=function(Q,ee,le){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,le){return Q[0]=ee[0]+le[0],Q[1]=ee[1]+le[1],Q[2]=ee[2]+le[2],Q}([],this.min,this.max))}quadrant(w){let B=[w%2==0,w<2],Q=M(this.min),ee=M(this.max);for(let le=0;le=0&&Fe++;if(Fe===0)return 0;Fe!==B.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let le=Number.MAX_VALUE,Fe=-Number.MAX_VALUE;for(let Ze=0;Zethis.max[ee]-this.min[ee])return 0}return 1}}class hu{constructor(w=0,B=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(B)||B<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=B,this.left=Q,this.right=ee}interpolate(w,B,Q){return B.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,B.top,Q)),B.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,B.bottom,Q)),B.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,B.left,Q)),B.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,B.right,Q)),this}getCenter(w,B){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+B-this.bottom)/2,0,B);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new hu(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let _u=85.051129;class nl{constructor(w,B,Q,ee,le){this.tileSize=512,this._renderWorldCopies=le===void 0||!!le,this._minZoom=w||0,this._maxZoom=B||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new hu,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new nl(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let B=-a.b3(w,-180,180)*Math.PI/180;this.angle!==B&&(this._unmodified=!1,this.angle=B,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,le){var Fe=ee[0],Ze=ee[1],ut=ee[2],Mt=ee[3],Jt=Math.sin(le),$t=Math.cos(le);Q[0]=Fe*$t+ut*Jt,Q[1]=Ze*$t+Mt*Jt,Q[2]=Fe*-Jt+ut*$t,Q[3]=Ze*-Jt+Mt*$t}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let B=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==B&&(this._unmodified=!1,this._pitch=B,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let B=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==B&&(this._unmodified=!1,this._zoom=B,this.tileZoom=Math.max(0,Math.floor(B)),this.scale=this.zoomScale(B),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,B,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,B,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let B=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,B)}getVisibleUnwrappedCoordinates(w){let B=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),le=this.pointCoordinate(new a.P(this.width,this.height)),Fe=this.pointCoordinate(new a.P(0,this.height)),Ze=Math.floor(Math.min(Q.x,ee.x,le.x,Fe.x)),ut=Math.floor(Math.max(Q.x,ee.x,le.x,Fe.x)),Mt=1;for(let Jt=Ze-Mt;Jt<=ut+Mt;Jt++)Jt!==0&&B.push(new a.b4(Jt,w))}return B}coveringTiles(w){var B,Q;let ee=this.coveringZoomLevel(w),le=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Fe=this.pointCoordinate(this.getCameraPoint()),Ze=a.Z.fromLngLat(this.center),ut=Math.pow(2,ee),Mt=[ut*Fe.x,ut*Fe.y,0],Jt=[ut*Ze.x,ut*Ze.y,0],$t=ks.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),yr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(yr=ee);let Cr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,ve=Xe=>({aabb:new bc([Xe*ut,0,0],[(Xe+1)*ut,ut,0]),zoom:0,x:0,y:0,wrap:Xe,fullyVisible:!1}),xe=[],Ie=[],ze=ee,Qe=w.reparseOverscaled?le:ee;if(this._renderWorldCopies)for(let Xe=1;Xe<=3;Xe++)xe.push(ve(-Xe)),xe.push(ve(Xe));for(xe.push(ve(0));xe.length>0;){let Xe=xe.pop(),nt=Xe.x,qt=Xe.y,Wt=Xe.fullyVisible;if(!Wt){let Hr=Xe.aabb.intersects($t);if(Hr===0)continue;Wt=Hr===2}let nr=w.terrain?Mt:Jt,fr=Xe.aabb.distanceX(nr),br=Xe.aabb.distanceY(nr),Fr=Math.max(Math.abs(fr),Math.abs(br));if(Xe.zoom===ze||Fr>Cr+(1<=yr){let Hr=ze-Xe.zoom,ri=Mt[0]-.5-(nt<>1),cn=Xe.zoom+1,sn=Xe.aabb.quadrant(Hr);if(w.terrain){let Ln=new a.S(cn,Xe.wrap,cn,ri,Ci),Yn=w.terrain.getMinMaxElevation(Ln),Aa=(B=Yn.minElevation)!==null&&B!==void 0?B:this.elevation,fa=(Q=Yn.maxElevation)!==null&&Q!==void 0?Q:this.elevation;sn=new bc([sn.min[0],sn.min[1],Aa],[sn.max[0],sn.max[1],fa])}xe.push({aabb:sn,zoom:cn,x:ri,y:Ci,wrap:Xe.wrap,fullyVisible:Wt})}}return Ie.sort((Xe,nt)=>Xe.distanceSq-nt.distanceSq).map(Xe=>Xe.tileID)}resize(w,B){this.width=w,this.height=B,this.pixelsToGLUnits=[2/w,-2/B],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let B=a.ac(w.lat,-85.051129,_u);return new a.P(a.O(w.lng)*this.worldSize,a.Q(B)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let B=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),le=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-le))return;let Fe=Q+B-le,Ze=Math.cos(this._pitch)*this.cameraToCenterDistance/Fe/a.b5(1,ee.lat),ut=this.scaleZoom(Ze/this.tileSize);this._elevation=le,this._center=ee,this.zoom=ut}setLocationAtPoint(w,B){let Q=this.pointCoordinate(B),ee=this.pointCoordinate(this.centerPoint),le=this.locationCoordinate(w),Fe=new a.Z(le.x-(Q.x-ee.x),le.y-(Q.y-ee.y));this.center=this.coordinateLocation(Fe),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,B){return B?this.coordinatePoint(this.locationCoordinate(w),B.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,B){return this.coordinateLocation(this.pointCoordinate(w,B))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,B){if(B){let yr=B.pointCoordinate(w);if(yr!=null)return yr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let le=Q[3],Fe=ee[3],Ze=Q[1]/le,ut=ee[1]/Fe,Mt=Q[2]/le,Jt=ee[2]/Fe,$t=Mt===Jt?0:(0-Mt)/(Jt-Mt);return new a.Z(a.y.number(Q[0]/le,ee[0]/Fe,$t)/this.worldSize,a.y.number(Ze,ut,$t)/this.worldSize)}coordinatePoint(w,B=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,B,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,_u])}calculateTileMatrix(w){let B=w.canonical,Q=this.worldSize/this.zoomScale(B.z),ee=B.x+Math.pow(2,B.z)*w.wrap,le=a.an(new Float64Array(16));return a.J(le,le,[ee*Q,B.y*Q,0]),a.K(le,le,[Q/a.X,Q/a.X,1]),le}calculatePosMatrix(w,B=!1){let Q=w.key,ee=B?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let le=this.calculateTileMatrix(w);return a.L(le,B?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,le),ee[Q]=new Float32Array(le),ee[Q]}calculateFogMatrix(w){let B=w.key,Q=this._fogMatrixCache;if(Q[B])return Q[B];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[B]=new Float32Array(ee),Q[B]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,B){B=a.ac(+B,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:B},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let Xe=179.9999999999;ee=[-Xe,Xe]}let le=this.tileSize*this.zoomScale(Q.zoom),Fe=0,Ze=le,ut=0,Mt=le,Jt=0,$t=0,{x:yr,y:Cr}=this.size;if(this.latRange){let Xe=this.latRange;Fe=a.Q(Xe[1])*le,Ze=a.Q(Xe[0])*le,Ze-FeZe&&(ze=Ze-Xe)}if(ee){let Xe=(ut+Mt)/2,nt=ve;this._renderWorldCopies&&(nt=a.b3(ve,Xe-le/2,Xe+le/2));let qt=yr/2;nt-qtMt&&(Ie=Mt-qt)}if(Ie!==void 0||ze!==void 0){let Xe=new a.P(Ie!=null?Ie:ve,ze!=null?ze:xe);Q.center=this.unproject.call({worldSize:le},Xe).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:B,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=B,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,B=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let le=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Fe=Math.min(this.elevation,this.minElevationForCurrentTile),Ze=le-Fe*this._pixelPerMeter/Math.cos(this._pitch),ut=Fe<0?Ze:le,Mt=Math.PI/2+this._pitch,Jt=this._fov*(.5+w.y/this.height),$t=Math.sin(Jt)*ut/Math.sin(a.ac(Math.PI-Mt-Jt,.01,Math.PI-.01)),yr=this.getHorizon(),Cr=2*Math.atan(yr/this.cameraToCenterDistance)*(.5+w.y/(2*yr)),ve=Math.sin(Cr)*ut/Math.sin(a.ac(Math.PI-Mt-Cr,.01,Math.PI-.01)),xe=Math.min($t,ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*xe+ut),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-B,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,le,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-B,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let Ie=this.width%2/2,ze=this.height%2/2,Qe=Math.cos(this.angle),Xe=Math.sin(this.angle),nt=B-Math.round(B)+Qe*Ie+Xe*ze,qt=Q-Math.round(Q)+Qe*ze+Xe*Ie,Wt=new Float64Array(ee);if(a.J(Wt,Wt,[nt>.5?nt-1:nt,qt>.5?qt-1:qt,0]),this.alignedModelViewProjectionMatrix=Wt,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),B=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(B,B,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let B=this.getCameraPoint();if(w.length===1)return[w[0],B];{let Q=B.x,ee=B.y,le=B.x,Fe=B.y;for(let Ze of w)Q=Math.min(Q,Ze.x),ee=Math.min(ee,Ze.y),le=Math.max(le,Ze.x),Fe=Math.max(Fe,Ze.y);return[new a.P(Q,ee),new a.P(le,ee),new a.P(le,Fe),new a.P(Q,Fe),new a.P(Q,ee)]}}lngLatToCameraDepth(w,B){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,B,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function nh(ue,w){let B,Q=!1,ee=null,le=null,Fe=()=>{ee=null,Q&&(ue.apply(le,B),ee=setTimeout(Fe,w),Q=!1)};return(...Ze)=>(Q=!0,le=this,B=Ze,ee||Fe(),ee)}class Mh{constructor(w){this._getCurrentHash=()=>{let B=window.location.hash.replace("#","");if(this._hashName){let Q;return B.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return B.split("/")},this._onHashChange=()=>{let B=this._getCurrentHash();if(B.length>=3&&!B.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(B[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+B[2],+B[1]],zoom:+B[0],bearing:Q,pitch:+(B[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let B=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,B)},this._removeHash=()=>{let B=this._getCurrentHash();if(B.length===0)return;let Q=B.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let le=window.location.hash.replace(ee,"");le.startsWith("#&")?le=le.slice(0,1)+le.slice(2):le==="#"&&(le="");let Fe=window.location.href.replace(/(#.+)?$/,le);Fe=Fe.replace("&&","&"),window.history.replaceState(window.history.state,null,Fe)},this._updateHash=nh(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let B=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),le=Math.pow(10,ee),Fe=Math.round(B.lng*le)/le,Ze=Math.round(B.lat*le)/le,ut=this._map.getBearing(),Mt=this._map.getPitch(),Jt="";if(Jt+=w?`/${Fe}/${Ze}/${Q}`:`${Q}/${Ze}/${Fe}`,(ut||Mt)&&(Jt+="/"+Math.round(10*ut)/10),Mt&&(Jt+=`/${Math.round(Mt)}`),this._hashName){let $t=this._hashName,yr=!1,Cr=window.location.hash.slice(1).split("&").map(ve=>{let xe=ve.split("=")[0];return xe===$t?(yr=!0,`${xe}=${Jt}`):ve}).filter(ve=>ve);return yr||Cr.push(`${$t}=${Jt}`),`#${Cr.join("&")}`}return`#${Jt}`}}let zu={linearity:.3,easing:a.b8(0,0,.3,1)},Fc=a.e({deceleration:2500,maxSpeed:1400},zu),wc=a.e({deceleration:20,maxSpeed:1400},zu),bd=a.e({deceleration:1e3,maxSpeed:360},zu),xf=a.e({deceleration:1e3,maxSpeed:90},zu);class Pf{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:u.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,B=u.now();for(;w.length>0&&B-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let B={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:le}of this._inertiaBuffer)B.zoom+=le.zoomDelta||0,B.bearing+=le.bearingDelta||0,B.pitch+=le.pitchDelta||0,le.panDelta&&B.pan._add(le.panDelta),le.around&&(B.around=le.around),le.pinchAround&&(B.pinchAround=le.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(B.pan.mag()){let le=bf(B.pan.mag(),Q,a.e({},Fc,w||{}));ee.offset=B.pan.mult(le.amount/B.pan.mag()),ee.center=this._map.transform.center,qu(ee,le)}if(B.zoom){let le=bf(B.zoom,Q,wc);ee.zoom=this._map.transform.zoom+le.amount,qu(ee,le)}if(B.bearing){let le=bf(B.bearing,Q,bd);ee.bearing=this._map.transform.bearing+a.ac(le.amount,-179,179),qu(ee,le)}if(B.pitch){let le=bf(B.pitch,Q,xf);ee.pitch=this._map.transform.pitch+le.amount,qu(ee,le)}if(ee.zoom||ee.bearing){let le=B.pinchAround===void 0?B.around:B.pinchAround;ee.around=le?this._map.unproject(le):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function qu(ue,w){(!ue.duration||ue.durationB.unproject(ut)),Ze=le.reduce((ut,Mt,Jt,$t)=>ut.add(Mt.div($t.length)),new a.P(0,0));super(w,{points:le,point:Ze,lngLats:Fe,lngLat:B.unproject(Ze),originalEvent:Q}),this._defaultPrevented=!1}}class Xh extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,B,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class If{constructor(w,B){this._map=w,this._clickTolerance=B.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new Xh(w.type,this._map,w))}mousedown(w,B){return this._mousedownPos=B,this._firePreventable(new jl(w.type,this._map,w))}mouseup(w){this._map.fire(new jl(w.type,this._map,w))}click(w,B){this._mousedownPos&&this._mousedownPos.dist(B)>=this._clickTolerance||this._map.fire(new jl(w.type,this._map,w))}dblclick(w){return this._firePreventable(new jl(w.type,this._map,w))}mouseover(w){this._map.fire(new jl(w.type,this._map,w))}mouseout(w){this._map.fire(new jl(w.type,this._map,w))}touchstart(w){return this._firePreventable(new uf(w.type,this._map,w))}touchmove(w){this._map.fire(new uf(w.type,this._map,w))}touchend(w){this._map.fire(new uf(w.type,this._map,w))}touchcancel(w){this._map.fire(new uf(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Cs{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new jl(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new jl(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class du{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class ku{constructor(w,B){this._map=w,this._tr=new du(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=B.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,B){this.isEnabled()&&w.shiftKey&&w.button===0&&(c.disableDrag(),this._startPos=this._lastPos=B,this._active=!0)}mousemoveWindow(w,B){if(!this._active)return;let Q=B;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)le.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(c.remove(this._box),this._box=null),c.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,B){return this._map.fire(new a.k(w,{originalEvent:B}))}}function Xf(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let B={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let le=new a.P(0,0);for(let Fe of ee)le._add(Fe);return le.div(ee.length)}(B),this.touches=Xf(Q,B)))}touchmove(w,B,Q){if(this.aborted||!this.centroid)return;let ee=Xf(Q,B);for(let le in this.touches){let Fe=ee[le];(!Fe||Fe.dist(this.touches[le])>30)&&(this.aborted=!0)}}touchend(w,B,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class wf{constructor(w){this.singleTap=new Us(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,B,Q){this.singleTap.touchstart(w,B,Q)}touchmove(w,B,Q){this.singleTap.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this.singleTap.touchend(w,B,Q);if(ee){let le=w.timeStamp-this.lastTime<500,Fe=!this.lastTap||this.lastTap.dist(ee)<30;if(le&&Fe||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class zc{constructor(w){this._tr=new du(w),this._zoomIn=new wf({numTouches:1,numTaps:2}),this._zoomOut=new wf({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,B,Q){this._zoomIn.touchstart(w,B,Q),this._zoomOut.touchstart(w,B,Q)}touchmove(w,B,Q){this._zoomIn.touchmove(w,B,Q),this._zoomOut.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this._zoomIn.touchend(w,B,Q),le=this._zoomOut.touchend(w,B,Q),Fe=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ze=>Ze.easeTo({duration:300,zoom:Fe.zoom+1,around:Fe.unproject(ee)},{originalEvent:w})}):le?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Ze=>Ze.easeTo({duration:300,zoom:Fe.zoom-1,around:Fe.unproject(le)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Wu{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let B=this._moveFunction(...w);if(B.bearingDelta||B.pitchDelta||B.around||B.panDelta)return this._active=!0,B}dragStart(w,B){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=B.length?B[0]:B,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,B){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=B.length?B[0]:B;return!this._moved&&ee.dist(Q){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Wl=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:B=.8})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({bearingDelta:(le.x-ee.x)*B}),moveStateManager:Q,enable:ue,assignEvents:Zf})},ah=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:B=-.5})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({pitchDelta:(le.y-ee.y)*B}),moveStateManager:Q,enable:ue,assignEvents:Zf})};class Zu{constructor(w,B){this._clickTolerance=w.clickTolerance||1,this._map=B,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,B,Q){return this._calculateTransform(w,B,Q)}touchmove(w,B,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,B,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,B,Q){this._calculateTransform(w,B,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,B,Q){Q.length>0&&(this._active=!0);let ee=Xf(Q,B),le=new a.P(0,0),Fe=new a.P(0,0),Ze=0;for(let Mt in ee){let Jt=ee[Mt],$t=this._touches[Mt];$t&&(le._add(Jt),Fe._add(Jt.sub($t)),Ze++,ee[Mt]=Jt)}if(this._touches=ee,this._shouldBePrevented(Ze)||!Fe.mag())return;let ut=Fe.div(Ze);return this._sum._add(ut),this._sum.mag()Math.abs(ue.x)}class Bc extends qc{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,B,Q){super.touchstart(w,B,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,fc(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,B,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),le=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,le,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+le.y)/2*-.5}):void 0}gestureBeginsVertically(w,B,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,le=B.mag()>=2;if(!ee&&!le)return;if(!ee||!le)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let Fe=w.y>0==B.y>0;return fc(w)&&fc(B)&&Fe}}let kt={panStep:100,bearingStep:15,pitchStep:10};class Zt{constructor(w){this._tr=new du(w);let B=kt;this._panStep=B.panStep,this._bearingStep=B.bearingStep,this._pitchStep=B.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let B=0,Q=0,ee=0,le=0,Fe=0;switch(w.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),le=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),le=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),Fe=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Fe=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:Ze=>{let ut=this._tr;Ze.easeTo({duration:300,easeId:"keyboardHandler",easing:Er,zoom:B?Math.round(ut.zoom)+B*(w.shiftKey?2:1):ut.zoom,bearing:ut.bearing+Q*this._bearingStep,pitch:ut.pitch+ee*this._pitchStep,offset:[-le*this._panStep,-Fe*this._panStep],center:ut.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Er(ue){return ue*(2-ue)}let xr=4.000244140625;class Kr{constructor(w,B){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new du(w),this._triggerRenderFrame=B,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let B=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=u.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,B!==0&&B%xr==0?this._type="wheel":B!==0&&Math.abs(B)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=B,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*B)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,B+=this._lastValue)),w.shiftKey&&B&&(B/=4),this._type&&(this._lastWheelEvent=w,this._delta-=B,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let B=c.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=B.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(B)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let ut=this._type==="wheel"&&Math.abs(this._delta)>xr?this._wheelZoomRate:this._defaultZoomRate,Mt=2/(1+Math.exp(-Math.abs(this._delta*ut)));this._delta<0&&Mt!==0&&(Mt=1/Mt);let Jt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Jt*Mt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let B=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,le,Fe=!1,Ze=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&Ze){let ut=Math.min(Ze/200,1),Mt=ee(ut);le=a.y.number(Q,B,Mt),ut<1?this._frameId||(this._frameId=!0):Fe=!0}else le=B,Fe=!0;return this._active=!0,Fe&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Fe,zoomDelta:le-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let B=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(u.now()-Q.start)/Q.duration,le=Q.easing(ee+.01)-Q.easing(ee),Fe=.27/Math.sqrt(le*le+1e-4)*.01,Ze=Math.sqrt(.0729-Fe*Fe);B=a.b8(Fe,Ze,.25,1)}return this._prevEase={start:u.now(),duration:w,easing:B},B}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Mi{constructor(w,B){this._clickZoom=w,this._tapZoom=B}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Wi{constructor(w){this._tr=new du(w),this.reset()}reset(){this._active=!1}dblclick(w,B){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(B)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class dn{constructor(){this._tap=new wf({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,B,Q){if(!this._swipePoint)if(this._tapTime){let ee=B[0],le=w.timeStamp-this._tapTime<500,Fe=this._tapPoint.dist(ee)<30;le&&Fe?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,B,Q)}touchmove(w,B,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=B[0],le=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:le/128}}}else this._tap.touchmove(w,B,Q)}touchend(w,B,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,B,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class wn{constructor(w,B,Q){this._el=w,this._mousePan=B,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class On{constructor(w,B,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=B,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Yi{constructor(w,B,Q,ee){this._el=w,this._touchZoom=B,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class $i{constructor(w,B){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=B,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=c.create("div","maplibregl-cooperative-gesture-screen",w);let B=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(B=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=B,this._container.appendChild(ee);let le=document.createElement("div");le.className="maplibregl-mobile-message",le.textContent=Q,this._container.appendChild(le),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(c.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,B){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:B})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let an=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Fi extends a.k{}function ta(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class Ca{constructor(w,B){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,le)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Fe=ee.type==="renderFrame"?void 0:ee,Ze={needsRenderFrame:!1},ut={},Mt={},Jt=ee.touches,$t=Jt?this._getMapTouches(Jt):void 0,yr=$t?c.touchPos(this._map.getCanvas(),$t):c.mousePos(this._map.getCanvas(),ee);for(let{handlerName:xe,handler:Ie,allowed:ze}of this._handlers){if(!Ie.isEnabled())continue;let Qe;this._blockedByActive(Mt,ze,xe)?Ie.reset():Ie[le||ee.type]&&(Qe=Ie[le||ee.type](ee,yr,$t),this.mergeHandlerResult(Ze,ut,Qe,xe,Fe),Qe&&Qe.needsRenderFrame&&this._triggerRenderFrame()),(Qe||Ie.isActive())&&(Mt[xe]=Ie)}let Cr={};for(let xe in this._previousActiveHandlers)Mt[xe]||(Cr[xe]=Fe);this._previousActiveHandlers=Mt,(Object.keys(Cr).length||ta(Ze))&&(this._changes.push([Ze,ut,Cr]),this._triggerRenderFrame()),(Object.keys(Mt).length||ta(Ze))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:ve}=Ze;ve&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],ve(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Pf(w),this._bearingSnap=B.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(B);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,le,Fe]of this._listeners)c.addEventListener(ee,le,ee===document?this.handleWindowEvent:this.handleEvent,Fe)}destroy(){for(let[w,B,Q]of this._listeners)c.removeEventListener(w,B,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let B=this._map,Q=B.getCanvasContainer();this._add("mapEvent",new If(B,w));let ee=B.boxZoom=new ku(B,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let le=B.cooperativeGestures=new $i(B,w.cooperativeGestures);this._add("cooperativeGestures",le),w.cooperativeGestures&&le.enable();let Fe=new zc(B),Ze=new Wi(B);B.doubleClickZoom=new Mi(Ze,Fe),this._add("tapZoom",Fe),this._add("clickZoom",Ze),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let ut=new dn;this._add("tapDragZoom",ut);let Mt=B.touchPitch=new Bc(B);this._add("touchPitch",Mt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Jt=Wl(w),$t=ah(w);B.dragRotate=new On(w,Jt,$t),this._add("mouseRotate",Jt,["mousePitch"]),this._add("mousePitch",$t,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let yr=(({enable:Qe,clickTolerance:Xe})=>{let nt=new Xu({checkCorrectEvent:qt=>c.mouseButton(qt)===0&&!qt.ctrlKey});return new Wu({clickTolerance:Xe,move:(qt,Wt)=>({around:Wt,panDelta:Wt.sub(qt)}),activateOnStart:!0,moveStateManager:nt,enable:Qe,assignEvents:Zf})})(w),Cr=new Zu(w,B);B.dragPan=new wn(Q,yr,Cr),this._add("mousePan",yr),this._add("touchPan",Cr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let ve=new ff,xe=new vu;B.touchZoomRotate=new Yi(Q,xe,ve,ut),this._add("touchRotate",ve,["touchPan","touchZoom"]),this._add("touchZoom",xe,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Ie=B.scrollZoom=new Kr(B,()=>this._triggerRenderFrame());this._add("scrollZoom",Ie,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let ze=B.keyboard=new Zt(B);this._add("keyboard",ze),w.interactive&&w.keyboard&&B.keyboard.enable(),this._add("blockableMapEvent",new Cs(B))}_add(w,B,Q){this._handlers.push({handlerName:w,handler:B,allowed:Q}),this._handlersById[w]=B}stop(w){if(!this._updatingCamera){for(let{handler:B}of this._handlers)B.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!an(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,B,Q){for(let ee in w)if(ee!==Q&&(!B||B.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let B=[];for(let Q of w)this._el.contains(Q.target)&&B.push(Q);return B}mergeHandlerResult(w,B,Q,ee,le){if(!Q)return;a.e(w,Q);let Fe={handlerName:ee,originalEvent:Q.originalEvent||le};Q.zoomDelta!==void 0&&(B.zoom=Fe),Q.panDelta!==void 0&&(B.drag=Fe),Q.pitchDelta!==void 0&&(B.pitch=Fe),Q.bearingDelta!==void 0&&(B.rotate=Fe)}_applyChanges(){let w={},B={},Q={};for(let[ee,le,Fe]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(B,le),a.e(Q,Fe);this._updateMapTransform(w,B,Q),this._changes=[]}_updateMapTransform(w,B,Q){let ee=this._map,le=ee._getTransformForUpdate(),Fe=ee.terrain;if(!(ta(w)||Fe&&this._terrainMovement))return this._fireEvents(B,Q,!0);let{panDelta:Ze,zoomDelta:ut,bearingDelta:Mt,pitchDelta:Jt,around:$t,pinchAround:yr}=w;yr!==void 0&&($t=yr),ee._stop(!0),$t=$t||ee.transform.centerPoint;let Cr=le.pointLocation(Ze?$t.sub(Ze):$t);Mt&&(le.bearing+=Mt),Jt&&(le.pitch+=Jt),ut&&(le.zoom+=ut),Fe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?le.center=le.pointLocation(le.centerPoint.sub(Ze)):le.setLocationAtPoint(Cr,$t):(this._terrainMovement=!0,this._map._elevationFreeze=!0,le.setLocationAtPoint(Cr,$t)):le.setLocationAtPoint(Cr,$t),ee._applyUpdatedTransform(le),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,Q,!0)}_fireEvents(w,B,Q){let ee=an(this._eventsInProgress),le=an(w),Fe={};for(let $t in w){let{originalEvent:yr}=w[$t];this._eventsInProgress[$t]||(Fe[`${$t}start`]=yr),this._eventsInProgress[$t]=w[$t]}!ee&&le&&this._fireEvent("movestart",le.originalEvent);for(let $t in Fe)this._fireEvent($t,Fe[$t]);le&&this._fireEvent("move",le.originalEvent);for(let $t in w){let{originalEvent:yr}=w[$t];this._fireEvent($t,yr)}let Ze={},ut;for(let $t in this._eventsInProgress){let{handlerName:yr,originalEvent:Cr}=this._eventsInProgress[$t];this._handlersById[yr].isActive()||(delete this._eventsInProgress[$t],ut=B[yr]||Cr,Ze[`${$t}end`]=ut)}for(let $t in Ze)this._fireEvent($t,Ze[$t]);let Mt=an(this._eventsInProgress),Jt=(ee||le)&&!Mt;if(Jt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let $t=this._map._getTransformForUpdate();$t.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform($t)}if(Q&&Jt){this._updatingCamera=!0;let $t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),yr=Cr=>Cr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Fi("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Ra extends a.E{constructor(w,B){super(),this._renderFrameCallback=()=>{let Q=Math.min((u.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=B.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,B){return this.jumpTo({center:w},B)}panBy(w,B,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},B),Q)}panTo(w,B,Q){return this.easeTo(a.e({center:w},B),Q)}getZoom(){return this.transform.zoom}setZoom(w,B){return this.jumpTo({zoom:w},B),this}zoomTo(w,B,Q){return this.easeTo(a.e({zoom:w},B),Q)}zoomIn(w,B){return this.zoomTo(this.getZoom()+1,w,B),this}zoomOut(w,B){return this.zoomTo(this.getZoom()-1,w,B),this}getBearing(){return this.transform.bearing}setBearing(w,B){return this.jumpTo({bearing:w},B),this}getPadding(){return this.transform.padding}setPadding(w,B){return this.jumpTo({padding:w},B),this}rotateTo(w,B,Q){return this.easeTo(a.e({bearing:w},B),Q)}resetNorth(w,B){return this.rotateTo(0,a.e({duration:1e3},w),B),this}resetNorthPitch(w,B){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),B),this}snapToNorth(w,B){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(le,Ie,nr)),this._rotating&&(ee.bearing=a.y.number(Fe,Mt,nr)),this._pitching&&(ee.pitch=a.y.number(Ze,Jt,nr)),this._padding&&(ee.interpolatePadding(ut,$t,nr),Cr=ee.centerPoint.add(yr)),this.terrain&&!w.freezeElevation&&this._updateElevation(nr),nt)ee.setLocationAtPoint(nt,qt);else{let fr=ee.zoomScale(ee.zoom-le),br=Ie>le?Math.min(2,Xe):Math.max(.5,Xe),Fr=Math.pow(br,1-nr),Hr=ee.unproject(ze.add(Qe.mult(nr*Fr)).mult(fr));ee.setLocationAtPoint(ee.renderWorldCopies?Hr.wrap():Hr,Cr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},nr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,nr)},w),this}_prepareEase(w,B,Q={}){this._moving=!0,B||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let B=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&B!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(B-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=B}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let B=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(B.lngLat,w.zoom);if(B.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&B.push(ee=>this.transformCameraUpdate(ee)),!B.length)return;let Q=w.clone();for(let ee of B){let le=Q.clone(),{center:Fe,zoom:Ze,pitch:ut,bearing:Mt,elevation:Jt}=ee(le);Fe&&(le.center=Fe),Ze!==void 0&&(le.zoom=Ze),ut!==void 0&&(le.pitch=ut),Mt!==void 0&&(le.bearing=Mt),Jt!==void 0&&(le.elevation=Jt),Q.apply(le)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,B){if(this._easeId&&B&&this._easeId===B)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),le&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,B){var Q;if(!w.essential&&u.prefersReducedMotion){let Ln=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ln,B)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),le=ee.zoom,Fe=ee.bearing,Ze=ee.pitch,ut=ee.padding,Mt="bearing"in w?this._normalizeBearing(w.bearing,Fe):Fe,Jt="pitch"in w?+w.pitch:Ze,$t="padding"in w?w.padding:ee.padding,yr=a.P.convert(w.offset),Cr=ee.centerPoint.add(yr),ve=ee.pointLocation(Cr),{center:xe,zoom:Ie}=ee.getConstrained(a.N.convert(w.center||ve),(Q=w.zoom)!==null&&Q!==void 0?Q:le);this._normalizeCenter(xe,ee);let ze=ee.zoomScale(Ie-le),Qe=ee.project(ve),Xe=ee.project(xe).sub(Qe),nt=w.curve,qt=Math.max(ee.width,ee.height),Wt=qt/ze,nr=Xe.mag();if("minZoom"in w){let Ln=a.ac(Math.min(w.minZoom,le,Ie),ee.minZoom,ee.maxZoom),Yn=qt/ee.zoomScale(Ln-le);nt=Math.sqrt(Yn/nr*2)}let fr=nt*nt;function br(Ln){let Yn=(Wt*Wt-qt*qt+(Ln?-1:1)*fr*fr*nr*nr)/(2*(Ln?Wt:qt)*fr*nr);return Math.log(Math.sqrt(Yn*Yn+1)-Yn)}function Fr(Ln){return(Math.exp(Ln)-Math.exp(-Ln))/2}function Hr(Ln){return(Math.exp(Ln)+Math.exp(-Ln))/2}let ri=br(!1),Ci=function(Ln){return Hr(ri)/Hr(ri+nt*Ln)},cn=function(Ln){return qt*((Hr(ri)*(Fr(Yn=ri+nt*Ln)/Hr(Yn))-Fr(ri))/fr)/nr;var Yn},sn=(br(!0)-ri)/nt;if(Math.abs(nr)<1e-6||!isFinite(sn)){if(Math.abs(qt-Wt)<1e-6)return this.easeTo(w,B);let Ln=Wt0,Ci=Yn=>Math.exp(Ln*nt*Yn)}return w.duration="duration"in w?+w.duration:1e3*sn/("screenSpeed"in w?+w.screenSpeed/nt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Fe!==Mt,this._pitching=Jt!==Ze,this._padding=!ee.isPaddingEqual($t),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(xe),this._ease(Ln=>{let Yn=Ln*sn,Aa=1/Ci(Yn);ee.zoom=Ln===1?Ie:le+ee.scaleZoom(Aa),this._rotating&&(ee.bearing=a.y.number(Fe,Mt,Ln)),this._pitching&&(ee.pitch=a.y.number(Ze,Jt,Ln)),this._padding&&(ee.interpolatePadding(ut,$t,Ln),Cr=ee.centerPoint.add(yr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ln);let fa=Ln===1?xe:ee.unproject(Qe.add(Xe.mult(cn(Yn))).mult(Aa));ee.setLocationAtPoint(ee.renderWorldCopies?fa.wrap():fa,Cr),this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,B){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,B)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,B,Q){Q.animate===!1||Q.duration===0?(w(1),B()):(this._easeStart=u.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=B,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,B){w=a.b3(w,-180,180);let Q=Math.abs(w-B);return Math.abs(w-360-B)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let La={compact:!0,customAttribution:'MapLibre'};class Ua{constructor(w=La){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=B=>{!B||B.sourceDataType!=="metadata"&&B.sourceDataType!=="visibility"&&B.dataType!=="style"&&B.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=c.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=c.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=c.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){c.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,B){let Q=this._map._getUIString(`AttributionControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let B=this._map.style.sourceCaches;for(let ee in B){let le=B[ee];if(le.used||le.usedForTerrain){let Fe=le.getSource();Fe.attribution&&w.indexOf(Fe.attribution)<0&&w.push(Fe.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,le)=>ee.length-le.length),w=w.filter((ee,le)=>{for(let Fe=le+1;Fe=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Zn{constructor(w={}){this._updateCompact=()=>{let B=this._container.children;if(B.length){let Q=B[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=c.create("div","maplibregl-ctrl");let B=c.create("a","maplibregl-ctrl-logo");return B.target="_blank",B.rel="noopener nofollow",B.href="https://maplibre.org/",B.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),B.setAttribute("rel","noopener nofollow"),this._container.appendChild(B),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){c.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class Dn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let B=++this._id;return this._queue.push({callback:w,id:B,cancelled:!1}),B}remove(w){let B=this._currentlyRunning,Q=B?this._queue.concat(B):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let B=this._currentlyRunning=this._queue;this._queue=[];for(let Q of B)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ka=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class bo extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,B){this.sourceCache.update(w,B),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:B}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new Tt(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let B in this._tiles){let Q=this._tiles[B];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let B={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16),a.aP(le.posMatrix,0,a.X,0,a.X,0,1),B[Q]=le}else if(ee.canonical.isChildOf(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let Fe=ee.canonical.z-w.canonical.z,Ze=ee.canonical.x-(ee.canonical.x>>Fe<>Fe<>Fe;a.aP(le.posMatrix,0,Mt,0,Mt,0,1),a.J(le.posMatrix,le.posMatrix,[-Ze*Mt,-ut*Mt,0]),B[Q]=le}else if(w.canonical.isChildOf(ee.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let Fe=w.canonical.z-ee.canonical.z,Ze=w.canonical.x-(w.canonical.x>>Fe<>Fe<>Fe;a.aP(le.posMatrix,0,a.X,0,a.X,0,1),a.J(le.posMatrix,le.posMatrix,[Ze*Mt,ut*Mt,0]),a.K(le.posMatrix,le.posMatrix,[1/2**Fe,1/2**Fe,0]),B[Q]=le}}return B}getSourceTile(w,B){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!le||!le.dem);)le=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return le}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(B=>B.timeAdded>=w)}}class Zo{constructor(w,B,Q){this.painter=w,this.sourceCache=new bo(B),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,B,Q,ee=a.X){var le;if(!(B>=0&&B=0&&Qw.canonical.z&&(w.canonical.z>=ee?le=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Fe=w.canonical.x-(w.canonical.x>>le<>le<>8<<4|le>>8,B[Fe+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(B.buffer)),ee=new g(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let B=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,le=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Fe=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),Ze=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(le,Ze-Fe-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null);let ut=B[0]+(B[2]>>4<<8),Mt=B[1]+((15&B[2])<<8),Jt=this.coordsIndex[255-B[3]],$t=Jt&&this.sourceCache.getTileByID(Jt);if(!$t)return null;let yr=this._coordsTextureSize,Cr=(1<<$t.tileID.canonical.z)*yr;return new a.Z(($t.tileID.canonical.x*yr+ut)/Cr+$t.tileID.wrap,($t.tileID.canonical.y*yr+Mt)/Cr,this.getElevation($t.tileID,ut,Mt,yr))}depthAtPoint(w){let B=new Uint8Array(4),Q=this.painter.context,ee=Q.gl;return Q.bindFramebuffer.set(this.getFramebuffer("depth").framebuffer),ee.readPixels(w.x,this.painter.height/devicePixelRatio-w.y-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null),(B[0]/16777216+B[1]/65536+B[2]/256+B[3])/256}getTerrainMesh(){if(this._mesh)return this._mesh;let w=this.painter.context,B=new a.bd,Q=new a.aY,ee=this.meshSize,le=a.X/ee,Fe=ee*ee;for(let $t=0;$t<=ee;$t++)for(let yr=0;yr<=ee;yr++)B.emplaceBack(yr*le,$t*le,0);for(let $t=0;$tw.id!==B),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let B of this._recentlyUsed)if(!this._objects[B].inUse)return this._objects[B];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let as={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class ws{constructor(w,B){this.painter=w,this.terrain=B,this.pool=new Ss(w.context,30,B.sourceCache.tileSize*B.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,B){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(B)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let le of ee){let Fe=this.terrain.sourceCache.getTerrainCoords(le);for(let Ze in Fe)this._coordsDescendingInv[Q][Ze]||(this._coordsDescendingInv[Q][Ze]=[]),this._coordsDescendingInv[Q][Ze].push(Fe[Ze])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],le=ee.source;if(as[ee.type]&&!this._coordsDescendingInvStr[le]){this._coordsDescendingInvStr[le]={};for(let Fe in this._coordsDescendingInv[le])this._coordsDescendingInvStr[le][Fe]=this._coordsDescendingInv[le][Fe].map(Ze=>Ze.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let le=this._coordsDescendingInvStr[ee][Q.tileID.key];le&&le!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let B=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(as[B]&&(this._prevType&&as[this._prevType]||this._stacks.push([]),this._prevType=B,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(as[this._prevType]||as[B]&&ee){this._prevType=B;let le=this._stacks.length-1,Fe=this._stacks[le]||[];for(let Ze of this._renderableTiles){if(this.pool.isFull()&&(js(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Ze),Ze.rtt[le]){let Mt=this.pool.getObjectForId(Ze.rtt[le].id);if(Mt.stamp===Ze.rtt[le].stamp){this.pool.useObject(Mt);continue}}let ut=this.pool.getOrCreateFreeObject();this.pool.useObject(ut),this.pool.stampObject(ut),Ze.rtt[le]={id:ut.id,stamp:ut.stamp},Q.context.bindFramebuffer.set(ut.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Mt=0;Mt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},va={showCompass:!0,showZoom:!0,visualizePitch:!1};class no{constructor(w,B,Q=!1){this.mousedown=Fe=>{this.startMouse(a.e({},Fe,{ctrlKey:!0,preventDefault:()=>Fe.preventDefault()}),c.mousePos(this.element,Fe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Fe=>{this.moveMouse(Fe,c.mousePos(this.element,Fe))},this.mouseup=Fe=>{this.mouseRotate.dragEnd(Fe),this.mousePitch&&this.mousePitch.dragEnd(Fe),this.offTemp()},this.touchstart=Fe=>{Fe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,Fe.targetTouches)[0],this.startTouch(Fe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=Fe=>{Fe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,Fe.targetTouches)[0],this.moveTouch(Fe,this._lastPos))},this.touchend=Fe=>{Fe.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),le=w.dragRotate._mousePitch.getClickTolerance();this.element=B,this.mouseRotate=Wl({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Fe,clickTolerance:Ze,bearingDegreesPerPixelMoved:ut=.8})=>{let Mt=new cf;return new Wu({clickTolerance:Ze,move:(Jt,$t)=>({bearingDelta:($t.x-Jt.x)*ut}),moveStateManager:Mt,enable:Fe,assignEvents:Ls})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=ah({clickTolerance:le,enable:!0}),this.touchPitch=(({enable:Fe,clickTolerance:Ze,pitchDegreesPerPixelMoved:ut=-.5})=>{let Mt=new cf;return new Wu({clickTolerance:Ze,move:(Jt,$t)=>({pitchDelta:($t.y-Jt.y)*ut}),moveStateManager:Mt,enable:Fe,assignEvents:Ls})})({clickTolerance:le,enable:!0})),c.addEventListener(B,"mousedown",this.mousedown),c.addEventListener(B,"touchstart",this.touchstart,{passive:!1}),c.addEventListener(B,"touchcancel",this.reset)}startMouse(w,B){this.mouseRotate.dragStart(w,B),this.mousePitch&&this.mousePitch.dragStart(w,B),c.disableDrag()}startTouch(w,B){this.touchRotate.dragStart(w,B),this.touchPitch&&this.touchPitch.dragStart(w,B),c.disableDrag()}moveMouse(w,B){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:le}=this.mousePitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}moveTouch(w,B){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:le}=this.touchPitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}off(){let w=this.element;c.removeEventListener(w,"mousedown",this.mousedown),c.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend),c.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){c.enableDrag(),c.removeEventListener(window,"mousemove",this.mousemove),c.removeEventListener(window,"mouseup",this.mouseup),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend)}}let ys;function rs(ue,w,B){let Q=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let ee=new a.N(ue.lng-360,ue.lat),le=new a.N(ue.lng+360,ue.lat),Fe=B.locationPoint(ue).distSqr(w);B.locationPoint(ee).distSqr(w)180;){let ee=B.locationPoint(ue);if(ee.x>=0&&ee.y>=0&&ee.x<=B.width&&ee.y<=B.height)break;ue.lng>B.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==Q.lng&&B.locationPoint(ue).y>B.height/2-B.getHorizon()?ue:Q}let Ql={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Cu(ue,w,B){let Q=ue.classList;for(let ee in Ql)Q.remove(`maplibregl-${B}-anchor-${ee}`);Q.add(`maplibregl-${B}-anchor-${w}`)}class Yu extends a.E{constructor(w){if(super(),this._onKeyPress=B=>{let Q=B.code,ee=B.charCode||B.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=B=>{let Q=B.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=B=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((B==null?void 0:B.type)==="terrain"||(B==null?void 0:B.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?rs(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let le="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?le=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(le=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Fe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Fe="rotateX(0deg)":this._pitchAlignment==="map"&&(Fe=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||B&&B.type!=="moveend"||(this._pos=this._pos.round()),c.setTransform(this._element,`${Ql[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Fe} ${le}`),u.frameAsync(new AbortController).then(()=>{this._updateOpacity(B&&B.type==="moveend")}).catch(()=>{})},this._onMove=B=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=B.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=B.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=B=>{this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=c.create("div");let B=c.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;B.setAttributeNS(null,"display","block"),B.setAttributeNS(null,"height",`${Q}px`),B.setAttributeNS(null,"width",`${ee}px`),B.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let le=c.createNS("http://www.w3.org/2000/svg","g");le.setAttributeNS(null,"stroke","none"),le.setAttributeNS(null,"stroke-width","1"),le.setAttributeNS(null,"fill","none"),le.setAttributeNS(null,"fill-rule","evenodd");let Fe=c.createNS("http://www.w3.org/2000/svg","g");Fe.setAttributeNS(null,"fill-rule","nonzero");let Ze=c.createNS("http://www.w3.org/2000/svg","g");Ze.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ze.setAttributeNS(null,"fill","#000000");let ut=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let ze of ut){let Qe=c.createNS("http://www.w3.org/2000/svg","ellipse");Qe.setAttributeNS(null,"opacity","0.04"),Qe.setAttributeNS(null,"cx","10.5"),Qe.setAttributeNS(null,"cy","5.80029008"),Qe.setAttributeNS(null,"rx",ze.rx),Qe.setAttributeNS(null,"ry",ze.ry),Ze.appendChild(Qe)}let Mt=c.createNS("http://www.w3.org/2000/svg","g");Mt.setAttributeNS(null,"fill",this._color);let Jt=c.createNS("http://www.w3.org/2000/svg","path");Jt.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Mt.appendChild(Jt);let $t=c.createNS("http://www.w3.org/2000/svg","g");$t.setAttributeNS(null,"opacity","0.25"),$t.setAttributeNS(null,"fill","#000000");let yr=c.createNS("http://www.w3.org/2000/svg","path");yr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),$t.appendChild(yr);let Cr=c.createNS("http://www.w3.org/2000/svg","g");Cr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Cr.setAttributeNS(null,"fill","#FFFFFF");let ve=c.createNS("http://www.w3.org/2000/svg","g");ve.setAttributeNS(null,"transform","translate(8.0, 8.0)");let xe=c.createNS("http://www.w3.org/2000/svg","circle");xe.setAttributeNS(null,"fill","#000000"),xe.setAttributeNS(null,"opacity","0.25"),xe.setAttributeNS(null,"cx","5.5"),xe.setAttributeNS(null,"cy","5.5"),xe.setAttributeNS(null,"r","5.4999962");let Ie=c.createNS("http://www.w3.org/2000/svg","circle");Ie.setAttributeNS(null,"fill","#FFFFFF"),Ie.setAttributeNS(null,"cx","5.5"),Ie.setAttributeNS(null,"cy","5.5"),Ie.setAttributeNS(null,"r","5.4999962"),ve.appendChild(xe),ve.appendChild(Ie),Fe.appendChild(Ze),Fe.appendChild(Mt),Fe.appendChild($t),Fe.appendChild(Cr),Fe.appendChild(ve),B.appendChild(Fe),B.setAttributeNS(null,"height",Q*this._scale+"px"),B.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(B),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",B=>{B.preventDefault()}),this._element.addEventListener("mousedown",B=>{B.preventDefault()}),Cu(this._element,this._anchor,"marker"),w&&w.className)for(let B of w.className.split(" "))this._element.classList.add(B);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),c.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var B,Q;if(!(!((B=this._map)===null||B===void 0)&&B.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,le=ee.terrain.depthAtPoint(this._pos),Fe=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Fe)-le<.006)return void(this._element.style.opacity=this._opacity);let Ze=-this._offset.y/ee.transform._pixelPerMeter,ut=Math.sin(ee.getPitch()*Math.PI/180)*Ze,Mt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Jt=ee.transform.lngLatToCameraDepth(this._lngLat,Fe+ut)-Mt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Jt&&this._popup.remove(),this._element.style.opacity=Jt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,B){return w===void 0&&B===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),B!==void 0&&(this._opacityWhenCovered=B),this._map&&this._updateOpacity(!0),this}}let Nc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},pu=0,Uc=!1,xu={maxWidth:100,unit:"metric"};function Ac(ue,w,B){let Q=B&&B.maxWidth||100,ee=ue._container.clientHeight/2,le=ue.unproject([0,ee]),Fe=ue.unproject([Q,ee]),Ze=le.distanceTo(Fe);if(B&&B.unit==="imperial"){let ut=3.2808*Ze;ut>5280?Va(w,Q,ut/5280,ue._getUIString("ScaleControl.Miles")):Va(w,Q,ut,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Va(w,Q,Ze/1852,ue._getUIString("ScaleControl.NauticalMiles")):Ze>=1e3?Va(w,Q,Ze/1e3,ue._getUIString("ScaleControl.Kilometers")):Va(w,Q,Ze,ue._getUIString("ScaleControl.Meters"))}function Va(ue,w,B,Q){let ee=function(le){let Fe=Math.pow(10,`${Math.floor(le)}`.length-1),Ze=le/Fe;return Ze=Ze>=10?10:Ze>=5?5:Ze>=3?3:Ze>=2?2:Ze>=1?1:function(ut){let Mt=Math.pow(10,Math.ceil(-Math.log(ut)/Math.LN10));return Math.round(ut*Mt)/Mt}(Ze),Fe*Ze}(B);ue.style.width=w*(ee/B)+"px",ue.innerHTML=`${ee} ${Q}`}let oo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Vc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function hc(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return hc(new a.P(0,0))}let Ku=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=Ua,i.BoxZoomHandler=ku,i.CanvasSource=rr,i.CooperativeGesturesHandler=$i,i.DoubleClickZoomHandler=Mi,i.DragPanHandler=wn,i.DragRotateHandler=On,i.EdgeInsets=hu,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let B=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=B==null?void 0:B.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)B=B.shadowRoot.fullscreenElement;B===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){c.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=c.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);c.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=at,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let B=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),le=a.e({bearing:ee},this.options.fitBoundsOptions),Fe=ce.fromLngLat(B,Q);this._map.fitBounds(Fe,le,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let B=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(B).addTo(this._map),this._userLocationDotMarker.setLngLat(B).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Uc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=c.create("button","maplibregl-ctrl-geolocate",this._container),c.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}else{let B=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=c.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Yu({element:this._dotElement}),this._circleElement=c.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yu({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",B=>{B.geolocateSource||this._watchState!=="ACTIVE_LOCK"||B.originalEvent&&B.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},Nc,ue)}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(ys!==void 0&&!w)return ys;if(window.navigator.permissions===void 0)return ys=!!window.navigator.geolocation,ys;try{ys=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(B){ys=!!window.navigator.geolocation}return ys})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),c.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,pu=0,Uc=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),B=ue.coords;return w&&(B.longitudew.getEast()||B.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),B=ue.getNorthEast(),Q=w.distanceTo(B),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":pu--,Uc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),pu++,pu>1?(ue={maximumAge:6e5,timeout:0},Uc=!0):(ue=this.options.positionOptions,Uc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=Mh,i.ImageSource=ar,i.KeyboardHandler=Zt,i.LngLatBounds=ce,i.LogoControl=Zn,i.Map=class extends Ra{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Ws),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new nl(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new Dn,this._controls=[],this._mapId=a.a4(),this._contextLost=B=>{B.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:B}))},this._contextRestored=B=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:B}))},this._onMapScroll=B=>{if(B.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Ho),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=p.addThrottleControl(()=>this.isMoving()),this._requestManager=new k(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let B=!1,Q=nh(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{B?Q(ee):B=!0}),this._resizeObserver.observe(this._container)}this.handlers=new Ca(this,w),this._hash=w.hash&&new Mh(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new Ua(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new Zn,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",B=>{this._update(B.dataType==="style"),this.fire(new a.k(`${B.dataType}data`,B))}),this.on("dataloading",B=>{this.fire(new a.k(`${B.dataType}dataloading`,B))}),this.on("dataabort",B=>{this.fire(new a.k("sourcedataabort",B))})}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let B=ue.onAdd(this);this._controls.push(ue);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(B,Q.firstChild):Q.appendChild(B),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,B,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(B,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,B,Q)}resize(ue){var w;let B=this._containerDimensions(),Q=B[0],ee=B[1],le=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,le),this.painter.resize(Q,ee,le),this.painter.overLimit()){let Ze=this.painter.context.gl;this._maxCanvasSize=[Ze.drawingBufferWidth,Ze.drawingBufferHeight];let ut=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,ut),this.painter.resize(Q,ee,ut)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Fe=!this._moving;return Fe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),Fe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),le=ue*ee,Fe=w*ee;return Math.min(le>B?B/le:1,Fe>Q?Q/Fe:1)*ee}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(ce.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,B){if(ue==="mouseenter"||ue==="mouseover"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:le=>{let Fe=w.filter(ut=>this.getLayer(ut)),Ze=Fe.length!==0?this.queryRenderedFeatures(le.point,{layers:Fe}):[];Ze.length?Q||(Q=!0,B.call(this,new jl(ue,this,le.originalEvent,{features:Ze}))):Q=!1},mouseout:()=>{Q=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:Fe=>{let Ze=w.filter(ut=>this.getLayer(ut));(Ze.length!==0?this.queryRenderedFeatures(Fe.point,{layers:Ze}):[]).length?Q=!0:Q&&(Q=!1,B.call(this,new jl(ue,this,Fe.originalEvent)))},mouseout:Fe=>{Q&&(Q=!1,B.call(this,new jl(ue,this,Fe.originalEvent)))}}}}{let Q=ee=>{let le=w.filter(Ze=>this.getLayer(Ze)),Fe=le.length!==0?this.queryRenderedFeatures(ee.point,{layers:le}):[];Fe.length&&(ee.features=Fe,B.call(this,ee),delete ee.features)};return{layers:w,listener:B,delegates:{[ue]:Q}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,B){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let Q=this._delegatedListeners[ue];for(let ee=0;eew.includes(Fe))){for(let Fe in le.delegates)this.off(Fe,le.delegates[Fe]);return void Q.splice(ee,1)}}}on(ue,w,B){if(B===void 0)return super.on(ue,w);let Q=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,B);this._saveDelegatedListener(ue,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(ue,w,B){if(B===void 0)return super.once(ue,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(ue,Q,B);for(let le in ee.delegates){let Fe=ee.delegates[le];ee.delegates[le]=(...Ze)=>{this._removeDelegatedListener(ue,Q,B),Fe(...Ze)}}this._saveDelegatedListener(ue,ee);for(let le in ee.delegates)this.once(le,ee.delegates[le]);return this}off(ue,w,B){return B===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,B),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let B,Q=ue instanceof a.P||Array.isArray(ue),ee=Q?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:ue)||{},ee instanceof a.P||typeof ee[0]=="number")B=[a.P.convert(ee)];else{let le=a.P.convert(ee[0]),Fe=a.P.convert(ee[1]);B=[le,new a.P(Fe.x,le.y),Fe,new a.P(le.x,Fe.y),le]}return this.style.queryRenderedFeatures(B,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ue,w));let B=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new Ha(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,B):this.style.loadJSON(ue,w,B),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Ha(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let B=this._requestManager.transformRequest(ue,"Style");a.h(B,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(B){a.w(`Unable to perform style diff: ${B.message||B.error||B}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let B in this.style._layers){let Q=this.style._layers[B];Q.type==="hillshade"&&Q.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Zo(this.painter,w,ue),this.painter.renderToTexture=new ws(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=B=>{B.dataType==="style"?this.terrain.sourceCache.freeRtt():B.dataType==="source"&&B.tile&&(B.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(B.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let B=ue[w]._tiles;for(let Q in B){let ee=B[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,B={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:le,stretchY:Fe,content:Ze,textFitWidth:ut,textFitHeight:Mt}=B;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:Jt,height:$t,data:yr}=w,Cr=w;return this.style.addImage(ue,{data:new a.R({width:Jt,height:$t},new Uint8Array(yr)),pixelRatio:Q,stretchX:le,stretchY:Fe,content:Ze,textFitWidth:ut,textFitHeight:Mt,sdf:ee,version:0,userImage:Cr}),Cr.onAdd&&Cr.onAdd(this,ue),this}}{let{width:Jt,height:$t,data:yr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Jt,height:$t},yr),pixelRatio:Q,stretchX:le,stretchY:Fe,content:Ze,textFitWidth:ut,textFitHeight:Mt,sdf:ee,version:0})}}updateImage(ue,w){let B=this.style.getImage(ue);if(!B)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?u.getImageData(w):w,{width:ee,height:le,data:Fe}=Q;if(ee===void 0||le===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==B.data.width||le!==B.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let Ze=!(w instanceof HTMLImageElement||a.b(w));return B.data.replace(Fe,Ze),this.style.updateImage(ue,B),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return p.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,B){return this.style.setLayerZoomRange(ue,w,B),this._update(!0)}setFilter(ue,w,B={}){return this.style.setFilter(ue,w,B),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,B,Q={}){return this.style.setPaintProperty(ue,w,B,Q),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,B,Q={}){return this.style.setLayoutProperty(ue,w,B,Q),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,B={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,B,Q=>{Q||this._update(!0)}),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,B=>{B||this._update(!0)}),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=c.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=c.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let B=this._containerDimensions(),Q=this._getClampedPixelRatio(B[0],B[1]);this._resizeCanvas(B[0],B[1],Q);let ee=this._controlContainer=c.create("div","maplibregl-control-container",ue),le=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Fe=>{le[Fe]=c.create("div",`maplibregl-ctrl-${Fe} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,B){this._canvas.width=Math.floor(B*ue),this._canvas.height=Math.floor(B*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:ue},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let B=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!B){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Dc(B,this.transform),f.testSupport(B)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let B=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,le=u.now();this.style.zoomHistory.update(ee,le);let Fe=new a.z(ee,{now:le,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Ze=Fe.crossFadingFactor();Ze===1&&Ze===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Ze),this.style.update(Fe)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||B)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let B of this._controls)B.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),p.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),c.remove(this._canvasContainer),c.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return ml}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=jl,i.MapTouchEvent=uf,i.MapWheelEvent=Xh,i.Marker=Yu,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),B=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=B,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",B.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,B)=>{let Q=this._map._getUIString(`NavigationControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},va,ue),this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=c.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new no(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){c.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let B=c.create("button",ue,this._container);return B.type="button",B.addEventListener("click",w),B}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&c.remove(this._content),this._container&&(c.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var B;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=c.create("div","maplibregl-popup",this._map.getContainer()),this._tip=c.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let Ze of this.options.className.split(" "))this._container.classList.add(Ze);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?rs(this._lngLat,this._flatPos,this._map.transform):(B=this._lngLat)===null||B===void 0?void 0:B.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,le=hc(this.options.offset);if(!ee){let Ze=this._container.offsetWidth,ut=this._container.offsetHeight,Mt;Mt=Q.y+le.bottom.ythis._map.transform.height-ut?["bottom"]:[],Q.xthis._map.transform.width-Ze/2&&Mt.push("right"),ee=Mt.length===0?"bottom":Mt.join("-")}let Fe=Q.add(le[ee]);this.options.subpixelPositioning||(Fe=Fe.round()),c.setTransform(this._container,`${Ql[ee]} translate(${Fe.x}px,${Fe.y}px)`),Cu(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(oo),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),B=document.createElement("body"),Q;for(B.innerHTML=ue;Q=B.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=c.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=c.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let ue=this._container.querySelector(Vc);ue&&ue.focus()}},i.RasterDEMTileSource=Ht,i.RasterTileSource=mt,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Ac(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ac(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},xu),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){c.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Kr,i.Style=Ha,i.TerrainControl=class{constructor(ue){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ue}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=c.create("button","maplibregl-ctrl-terrain",this._container),c.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){c.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bc,i.TwoFingersTouchRotateHandler=ff,i.TwoFingersTouchZoomHandler=vu,i.TwoFingersTouchZoomRotateHandler=Yi,i.VectorTileSource=lt,i.VideoSource=Vt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(je(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,Q)=>{tt[B]=Q})(ue,w)}),i.clearPrewarmedResources=function(){let ue=ge;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(_e),ge=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return St().getRTLTextPluginStatus()},i.getVersion=function(){return Ku},i.getWorkerCount=function(){return Ee.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return be().broadcast("IS",ue)},i.prewarm=function(){Se().acquire(_e)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return St().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Ee.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}});var n=e;return n})});var wje=ye((Kbr,bje)=>{"use strict";var gw=Pr(),jXt=Zl().sanitizeHTML,WXt=RJ(),yje=Ix();function _je(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=yje.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var sg=_je.prototype;sg.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=g7(t)};sg.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};sg.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};sg.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};sg.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};sg.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};sg.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!g7(e)){var r=XXt(e);t.addSource(this.idSource,r)}};sg.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function xje(e){var t={},r={};switch(e.type){case"circle":gw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":gw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":gw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=WXt(n.textposition,n.iconsize);gw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),gw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":gw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function XXt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=jXt(e.sourceattribution)),n}bje.exports=function(t,r,n){var i=new _je(t,r);return i.update(n),i}});var Lje=ye((Jbr,Cje)=>{"use strict";var BJ=mje(),NJ=Pr(),Sje=dx(),Tje=Oa(),ZXt=ho(),YXt=yv(),m7=ef(),Mje=Cg(),KXt=Mje.drawMode,JXt=Mje.selectMode,$Xt=qf().prepSelect,QXt=qf().clearOutline,eZt=qf().clearSelectionsCache,tZt=qf().selectOnClick,mw=Ix(),rZt=wje();function Eje(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Hh=Eje.prototype;Hh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Hh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=kje(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new BJ.Map({container:i.div,style:o.style,center:UJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new BJ.AttributionControl({compact:!0})),c={};u.on("styleimagemissing",function(h){var d=h.id;if(!c[d]&&d.includes("-15")){c[d]=!0;var v=new Image(15,15);v.onload=function(){u.addImage(d,v)},v.crossOrigin="Anonymous",v.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),u.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(h){u.once("load",h)})),f=f.concat(Sje.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=kje(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(Sje.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&tZt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&m7.click(n,l.originalEvent)}}};Hh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=NJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),JXt(a)||KXt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){$Xt(l,u,c,t.dragOptions,a)},YXt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Hh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Hh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var VJ=Pr(),nZt=q_(),aZt=Kd(),Pje=eC();Ije.exports=function(t,r,n){nZt(t,r,n,{type:"map",attributes:Pje,handleDefaults:oZt,partition:"y"})};function oZt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,aZt(e,t,{name:"layers",handleItemDefaults:sZt}),t._input=e}function sZt(e,t){function r(l,u){return VJ.coerce(e,t,Pje.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",VJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),VJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var _7=ye(u0=>{"use strict";var y7=Pr(),Dje=y7.strTranslate,lZt=y7.strScale,uZt=Id().getSubplotCalcData,cZt=Wp(),fZt=qa(),Fje=So(),hZt=Zl(),dZt=Lje(),Rx="map";u0.name=Rx;u0.attr="subplot";u0.idRoot=Rx;u0.idRegex=u0.attrRegex=y7.counterRegex(Rx);u0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};u0.layoutAttributes=eC();u0.supplyLayoutDefaults=Rje();u0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Rx],a=0;am/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(hZt.convertToTspans,e),v=Fje.bBox(d.node())}d.attr("transform",Dje(-3,-v.height+8)),h.insert("rect",".static-attribution").attr({x:-v.width-6,y:-v.height-3,width:v.width+6,height:v.height+3,fill:"rgba(255, 255, 255, 0.75)"});var p=1;v.width+6>m&&(p=m/(v.width+6));var k=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",Dje(k[0],k[1])+lZt(p))}};u0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Rx],n=0;n{"use strict";zje.exports={attributes:c7(),supplyDefaults:YHe(),colorbar:Qd(),formatLabels:IJ(),calc:bF(),plot:uje(),hoverPoints:p7().hoverPoints,eventData:dje(),selectPoints:pje(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:_7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var Bje=ye((t2r,Oje)=>{"use strict";Oje.exports=qje()});var GJ=ye((r2r,Nje)=>{"use strict";var x1=o5(),vZt=Tu(),{hovertemplateAttrs:pZt,templatefallbackAttrs:gZt}=Ll(),mZt=Gl(),Dx=Ao().extendFlat;Nje.exports=Dx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Dx({},x1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:x1.text,hovertext:x1.hovertext,marker:{line:{color:Dx({},x1.marker.line.color,{editType:"plot"}),width:Dx({},x1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Dx({},x1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Dx({},x1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Dx({},x1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:x1.hoverinfo,hovertemplate:pZt({},{keys:["properties"]}),hovertemplatefallback:gZt(),showlegend:Dx({},mZt.showlegend,{dflt:!1})},vZt("",{cLetter:"z",editTypeOverride:"calc"}))});var Vje=ye((i2r,Uje)=>{"use strict";var nC=Pr(),yZt=td(),_Zt=GJ();Uje.exports=function(t,r,n,i){function a(c,f){return nC.coerce(t,r,_Zt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!nC.isArrayOrTypedArray(o)||!o.length||!nC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||nC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),yZt(t,r,i,a,{prefix:"",cLetter:"z"}),nC.coerceSelectionMarkerOpacity(r,a)}});var HJ=ye((n2r,jje)=>{"use strict";var xZt=Eo(),b1=Pr(),bZt=tc(),wZt=So(),TZt=fx().makeBlank,Gje=dx();function AZt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:TZt()};if(!r)return a;var o=Gje.extractTraceFeature(e);if(!o)return a;var s=bZt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;b1.isArrayOrTypedArray(l.opacity)&&(c=function(k){var M=k.mo;return xZt(M)?+b1.constrain(M,0,1):0});var f;b1.isArrayOrTypedArray(u.color)&&(f=function(k){return k.mlc});var h;b1.isArrayOrTypedArray(u.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var Xje=HJ().convert,SZt=HJ().convertOnSelect,Wje=Ix().traceLayerPrefix;function Zje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Wje+t+"-fill"],["line",Wje+t+"-line"]],this.below=null}var F5=Zje.prototype;F5.update=function(e){this._update(Xje(e)),e[0].trace._glTrace=this};F5.updateOnSelect=function(e){this._update(SZt(e))};F5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};F5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Yje.exports=function(t,r){var n=r[0].trace,i=new Zje(t,n.uid),a=i.sourceId,o=Xje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var $je=ye((o2r,Jje)=>{"use strict";Jje.exports={attributes:GJ(),supplyDefaults:Vje(),colorbar:D_(),calc:VF(),plot:Kje(),hoverPoints:HF(),eventData:jF(),selectPoints:WF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";Qje.exports=$je()});var WJ=ye((l2r,rWe)=>{"use strict";var MZt=Tu(),{hovertemplateAttrs:EZt,templatefallbackAttrs:kZt}=Ll(),tWe=Gl(),x7=c7(),jJ=Ao().extendFlat;rWe.exports=jJ({lon:x7.lon,lat:x7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:x7.text,hovertext:x7.hovertext,hoverinfo:jJ({},tWe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:EZt(),hovertemplatefallback:kZt(),showlegend:jJ({},tWe.showlegend,{dflt:!1})},MZt("",{cLetter:"z",editTypeOverride:"calc"}))});var nWe=ye((u2r,iWe)=>{"use strict";var CZt=Pr(),LZt=td(),PZt=WJ();iWe.exports=function(t,r,n,i){function a(u,c){return CZt.coerce(t,r,PZt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),LZt(t,r,i,a,{prefix:"",cLetter:"z"})}});var sWe=ye((c2r,oWe)=>{"use strict";var XJ=Eo(),IZt=Pr().isArrayOrTypedArray,ZJ=fs().BADNUM,RZt=gv(),aWe=Pr()._;oWe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=IZt(a)&&a.length,s=0;s{"use strict";var DZt=Eo(),YJ=Pr(),lWe=ka(),uWe=tc(),cWe=fs().BADNUM,FZt=fx().makeBlank;fWe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:FZt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=YJ.isArrayOrTypedArray(l)&&l.length,f=YJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=uWe.extractOpts(r),p=b.reversescale?uWe.flipScale(b.colorscale):b.colorscale,k=p[0][1],M=lWe.opacity(k)<1?k:lWe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,M];for(s=1;s{"use strict";var dWe=hWe(),zZt=Ix().traceLayerPrefix;function vWe(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",zZt+t+"-heatmap"]],this.below=null}var b7=vWe.prototype;b7.update=function(e){var t=this.subplot,r=this.layerList,n=dWe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};b7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};pWe.exports=function(t,r){var n=r[0].trace,i=new vWe(t,n.uid),a=i.sourceId,o=dWe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var yWe=ye((d2r,mWe)=>{"use strict";var qZt=ho(),OZt=p7().hoverPoints,BZt=p7().getExtraText;mWe.exports=function(t,r,n){var i=OZt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=qZt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=BZt(s,l,o[0].t.labels),[a]}}});var xWe=ye((v2r,_We)=>{"use strict";_We.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var wWe=ye((p2r,bWe)=>{"use strict";bWe.exports={attributes:WJ(),supplyDefaults:nWe(),colorbar:D_(),formatLabels:IJ(),calc:sWe(),plot:gWe(),hoverPoints:yWe(),eventData:xWe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";TWe.exports=wWe()});var JJ=ye((y2r,CWe)=>{"use strict";var NZt=ec(),UZt=Gl(),SWe=Ih(),KJ=g3(),VZt=Cc().attributes,{hovertemplateAttrs:MWe,templatefallbackAttrs:EWe}=Ll(),GZt=Tu(),HZt=vl().templatedArray,jZt=vf().descriptionOnlyNumbers,kWe=Ao().extendFlat,WZt=mc().overrideAll,m2r=CWe.exports=WZt({hoverinfo:kWe({},UZt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:KJ.hoverlabel,domain:VZt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:jZt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:NZt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:SWe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:KJ.hoverlabel,hovertemplate:MWe({},{keys:["value","label"]}),hovertemplatefallback:EWe(),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:SWe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:KJ.hoverlabel,hovertemplate:MWe({},{keys:["value","label"]}),hovertemplatefallback:EWe(),colorscales:HZt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:kWe(GZt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var DWe=ye((_2r,RWe)=>{"use strict";var z5=Pr(),w7=JJ(),XZt=ka(),LWe=fd(),ZZt=Cc().defaults,PWe=xM(),IWe=vl(),YZt=Kd();RWe.exports=function(t,r,n,i){function a(T,L){return z5.coerce(t,r,w7,T,L)}var o=z5.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=IWe.newContainer(r,"node");function u(T,L){return z5.coerce(s,l,w7.node,T,L)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),PWe(s,l,u,o),u("hovertemplate"),u("align");var c=i.colorway,f=function(T){return c[T%c.length]};u("color",l.label.map(function(T,L){return XZt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=IWe.newContainer(r,"link");function v(T,L){return z5.coerce(h,d,w7.link,T,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),PWe(h,d,v,o),v("hovertemplate");var m=LWe(i.paper_bgcolor).getLuminance()<.333,b=m?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function k(T){var L=LWe(T);if(!L.isValid())return T;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=m?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(k):k(p)),v("customdata"),YZt(h,d,{name:"colorscales",handleItemDefaults:KZt}),ZZt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var M;l.x.length&&l.y.length&&(M="freeform"),a("arrangement",M),z5.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function KZt(e,t){function r(n,i){return z5.coerce(e,t,w7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var $J=ye((x2r,FWe)=>{"use strict";FWe.exports=JZt;function JZt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){b=k[k.length-1];var M=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=T}else{if(n[b]===r[b]){for(var x=[],C=[],S=0,T=p.length-1;T>=0;--T){var g=p[T];if(i[g]=!1,x.push(g),C.push(s[g]),S+=s[g].length,o[g]=c.length,g===b){p.length=T;break}}c.push(x);for(var P=new Array(S),T=0;T{"use strict";var $Zt=$J(),q5=Pr(),QZt=ny().wrap,aC=q5.isArrayOrTypedArray,zWe=q5.isIndex,qWe=tc();function eYt(e){var t=e.node,r=e.link,n=[],i=aC(r.color),a=aC(r.hovercolor),o=aC(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cv&&(v=r.source[c]),r.target[c]>v&&(v=r.target[c]);var m=v+1;e.node._count=m;var b,p=e.node.groups,k={};for(c=0;c0&&zWe(S,m)&&zWe(g,m)&&!(k.hasOwnProperty(S)&&k.hasOwnProperty(g)&&k[S]===k[g])){k.hasOwnProperty(g)&&(g=k[g]),k.hasOwnProperty(S)&&(S=k[S]),S=+S,g=+g,s[S]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var E=null;P&&l.hasOwnProperty(P)&&(E=l[P]),n.push({pointNumber:c,label:P,color:i?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:E,source:S,target:g,value:+C}),x.source.push(S),x.target.push(g)}}var z=m+p.length,q=aC(t.color),V=aC(t.customdata),G=[];for(c=0;cm-1,childrenNodes:[],pointNumber:c,label:Z,color:q?t.color[c]:t.color,customdata:V?t.customdata[c]:t.customdata})}var j=!1;return tYt(z,x.source,x.target)&&(j=!0),{circular:j,links:n,nodes:G,groups:p,groupLookup:k}}function tYt(e,t,r){for(var n=q5.init2dArray(e,0),i=0;i1})}OWe.exports=function(t,r){var n=eYt(r);return QZt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var UWe=ye((T7,NWe)=>{(function(e,t){typeof T7=="object"&&typeof NWe!="undefined"?t(T7):(e=e||self,t(e.d3=e.d3||{}))})(T7,function(e){"use strict";function t(C){var S=+this._x.call(null,C),g=+this._y.call(null,C);return r(this.cover(S,g),S,g,C)}function r(C,S,g,P){if(isNaN(S)||isNaN(g))return C;var E,z=C._root,q={data:P},V=C._x0,G=C._y0,Z=C._x1,j=C._y1,N,H,ie,ae,_e,Ee,Ce,ge;if(!z)return C._root=q,C;for(;z.length;)if((_e=S>=(N=(V+Z)/2))?V=N:Z=N,(Ee=g>=(H=(G+j)/2))?G=H:j=H,E=z,!(z=z[Ce=Ee<<1|_e]))return E[Ce]=q,C;if(ie=+C._x.call(null,z.data),ae=+C._y.call(null,z.data),S===ie&&g===ae)return q.next=z,E?E[Ce]=q:C._root=q,C;do E=E?E[Ce]=new Array(4):C._root=new Array(4),(_e=S>=(N=(V+Z)/2))?V=N:Z=N,(Ee=g>=(H=(G+j)/2))?G=H:j=H;while((Ce=Ee<<1|_e)===(ge=(ae>=H)<<1|ie>=N));return E[ge]=z,E[Ce]=q,C}function n(C){var S,g,P=C.length,E,z,q=new Array(P),V=new Array(P),G=1/0,Z=1/0,j=-1/0,N=-1/0;for(g=0;gj&&(j=E),zN&&(N=z));if(G>j||Z>N)return this;for(this.cover(G,Z).cover(j,N),g=0;gC||C>=E||P>S||S>=z;)switch(Z=(Sj||(V=ae.y0)>N||(G=ae.x1)=Ce)<<1|C>=Ee)&&(ae=H[H.length-1],H[H.length-1]=H[H.length-1-_e],H[H.length-1-_e]=ae)}else{var ge=C-+this._x.call(null,ie.data),re=S-+this._y.call(null,ie.data),Se=ge*ge+re*re;if(Se=(H=(q+G)/2))?q=H:G=H,(_e=N>=(ie=(V+Z)/2))?V=ie:Z=ie,S=g,!(g=g[Ee=_e<<1|ae]))return this;if(!g.length)break;(S[Ee+1&3]||S[Ee+2&3]||S[Ee+3&3])&&(P=S,Ce=Ee)}for(;g.data!==C;)if(E=g,!(g=g.next))return this;return(z=g.next)&&delete g.next,E?(z?E.next=z:delete E.next,this):S?(z?S[Ee]=z:delete S[Ee],(g=S[0]||S[1]||S[2]||S[3])&&g===(S[3]||S[2]||S[1]||S[0])&&!g.length&&(P?P[Ce]=g:this._root=g),this):(this._root=z,this)}function c(C){for(var S=0,g=C.length;S{(function(e,t){t(typeof A7=="object"&&typeof VWe!="undefined"?A7:e.d3=e.d3||{})})(A7,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(m){return t+m in this},get:function(m){return this[t+m]},set:function(m,b){return this[t+m]=b,this},remove:function(m){var b=t+m;return b in this&&delete this[b]},clear:function(){for(var m in this)m[0]===t&&delete this[m]},keys:function(){var m=[];for(var b in this)b[0]===t&&m.push(b.slice(1));return m},values:function(){var m=[];for(var b in this)b[0]===t&&m.push(this[b]);return m},entries:function(){var m=[];for(var b in this)b[0]===t&&m.push({key:b.slice(1),value:this[b]});return m},size:function(){var m=0;for(var b in this)b[0]===t&&++m;return m},empty:function(){for(var m in this)if(m[0]===t)return!1;return!0},each:function(m){for(var b in this)b[0]===t&&m(this[b],b.slice(1),this)}};function n(m,b){var p=new r;if(m instanceof r)m.each(function(x,C){p.set(C,x)});else if(Array.isArray(m)){var k=-1,M=m.length,T;if(b==null)for(;++k=m.length)return p!=null&&x.sort(p),k!=null?k(x):x;for(var P=-1,E=x.length,z=m[C++],q,V,G=n(),Z,j=S();++Pm.length)return x;var S,g=b[C-1];return k!=null&&C>=m.length?S=x.entries():(S=[],x.each(function(P,E){S.push({key:E,values:L(P,C)})})),g!=null?S.sort(function(P,E){return g(P.key,E.key)}):S}return M={object:function(x){return T(x,0,a,o)},map:function(x){return T(x,0,s,l)},entries:function(x){return L(T(x,0,s,l),0)},key:function(x){return m.push(x),M},sortKeys:function(x){return b[m.length-1]=x,M},sortValues:function(x){return p=x,M},rollup:function(x){return k=x,M}}}function a(){return{}}function o(m,b,p){m[b]=p}function s(){return n()}function l(m,b,p){m.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(m){return m+="",this[t+m]=m,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(m,b){var p=new u;if(m instanceof u)m.each(function(T){p.add(T)});else if(m){var k=-1,M=m.length;if(b==null)for(;++k{(function(e,t){typeof M7=="object"&&typeof GWe!="undefined"?t(M7):(e=e||self,t(e.d3=e.d3||{}))})(M7,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},c;s=0&&(c=u.slice(f+1),u=u.slice(0,f)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}n.prototype=r.prototype={constructor:n,on:function(s,l){var u=this._,c=i(s+"",u),f,h=-1,d=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof E7=="object"&&typeof jWe!="undefined"?t(E7):(e=e||self,t(e.d3=e.d3||{}))})(E7,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};function h(){return l||(f(d),l=c.now()+u)}function d(){l=0}function v(){this._call=this._time=this._next=null}v.prototype=m.prototype={constructor:v,restart:function(C,S,g){if(typeof C!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(S==null?0:+S),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=C,this._time=g,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};function m(C,S,g){var P=new v;return P.restart(C,S,g),P}function b(){h(),++t;for(var C=a,S;C;)(S=l-C._time)>=0&&C._call.call(null,S),C=C._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,M(),l=0}}function k(){var C=c.now(),S=C-s;S>i&&(u-=S,s=C)}function M(){for(var C,S=a,g,P=1/0;S;)S._call?(P>S._time&&(P=S._time),C=S,S=S._next):(g=S._next,S._next=null,S=C?C._next=g:a=g);o=C,T(P)}function T(C){if(!t){r&&(r=clearTimeout(r));var S=C-l;S>24?(C<1/0&&(r=setTimeout(p,C-c.now()-u)),n&&(n=clearInterval(n))):(n||(s=c.now(),n=setInterval(k,i)),t=1,f(p))}}function L(C,S,g){var P=new v;return S=S==null?0:+S,P.restart(function(E){P.stop(),C(E+S)},S,g),P}function x(C,S,g){var P=new v,E=S;return S==null?(P.restart(C,S,g),P):(S=+S,g=g==null?h():+g,P.restart(function z(q){q+=E,P.restart(z,E+=S,g),C(q)},S,g),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=m,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var ZWe=ye((k7,XWe)=>{(function(e,t){typeof k7=="object"&&typeof XWe!="undefined"?t(k7,UWe(),S7(),HWe(),WWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(k7,function(e,t,r,n,i){"use strict";function a(C,S){var g;C==null&&(C=0),S==null&&(S=0);function P(){var E,z=g.length,q,V=0,G=0;for(E=0;EN.index){var Pe=H-Be.x-Be.vx,ce=ie-Be.y-Be.vy,He=Pe*Pe+ce*ce;HeH+me||keie+me||beG.r&&(G.r=G[Z].r)}function V(){if(S){var G,Z=S.length,j;for(g=new Array(Z),G=0;G1?(_e==null?V.remove(ae):V.set(ae,ie(_e)),S):V.get(ae)},find:function(ae,_e,Ee){var Ce=0,ge=C.length,re,Se,ke,be,Be;for(Ee==null?Ee=1/0:Ee*=Ee,Ce=0;Ce1?(Z.on(ae,_e),S):Z.on(ae)}}}function M(){var C,S,g,P=o(-30),E,z=1,q=1/0,V=.81;function G(H){var ie,ae=C.length,_e=t.quadtree(C,v,m).visitAfter(j);for(g=H,ie=0;ie=q)return;(H.data!==S||H.next)&&(Ee===0&&(Ee=s(),re+=Ee*Ee),Ce===0&&(Ce=s(),re+=Ce*Ce),re{(function(e,t){typeof C7=="object"&&typeof YWe!="undefined"?t(C7):(e=e||self,t(e.d3=e.d3||{}))})(C7,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,f,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+f)+","+(this._y1=+h)},arcTo:function(s,l,u,c,f){s=+s,l=+l,u=+u,c=+c,f=+f;var h=this._x1,d=this._y1,v=u-s,m=c-l,b=h-s,p=d-l,k=b*b+p*p;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(k>n)if(!(Math.abs(p*v-m*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var M=u-h,T=c-d,L=v*v+m*m,x=M*M+T*T,C=Math.sqrt(L),S=Math.sqrt(k),g=f*Math.tan((t-Math.acos((L+k-x)/(2*C*S)))/2),P=g/S,E=g/C;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*M>b*T)+","+(this._x1=s+E*v)+","+(this._y1=l+E*m)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(c),v=u*Math.sin(c),m=s+d,b=l+v,p=1^h,k=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+m+","+b:(Math.abs(this._x1-m)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+m+","+b),u&&(k<0&&(k=k%r+r),k>i?this._+="A"+u+","+u+",0,1,"+p+","+(s-d)+","+(l-v)+"A"+u+","+u+",0,1,"+p+","+(this._x1=m)+","+(this._y1=b):k>n&&(this._+="A"+u+","+u+",0,"+ +(k>=t)+","+p+","+(this._x1=s+u*Math.cos(f))+","+(this._y1=l+u*Math.sin(f))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var QJ=ye((L7,JWe)=>{(function(e,t){typeof L7=="object"&&typeof JWe!="undefined"?t(L7,KWe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(L7,function(e,t){"use strict";function r(Ct){return function(){return Ct}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,d=2*f;function v(Ct){return Ct>1?0:Ct<-1?f:Math.acos(Ct)}function m(Ct){return Ct>=1?h:Ct<=-1?-h:Math.asin(Ct)}function b(Ct){return Ct.innerRadius}function p(Ct){return Ct.outerRadius}function k(Ct){return Ct.startAngle}function M(Ct){return Ct.endAngle}function T(Ct){return Ct&&Ct.padAngle}function L(Ct,Sr,Jr,hi,hn,Sn,En,ki){var _n=Jr-Ct,ya=hi-Sr,ea=En-hn,Ma=ki-Sn,_o=Ma*_n-ea*ya;if(!(_o*_oYl*Yl+Su*Su&&(As=Ks,cl=zs),{cx:As,cy:cl,x01:-ea,y01:-Ma,x11:As*(hn/zl-1),y11:cl*(hn/zl-1)}}function C(){var Ct=b,Sr=p,Jr=r(0),hi=null,hn=k,Sn=M,En=T,ki=null;function _n(){var ya,ea,Ma=+Ct.apply(this,arguments),_o=+Sr.apply(this,arguments),No=hn.apply(this,arguments)-h,po=Sn.apply(this,arguments)-h,Lo=n(po-No),ko=po>No;if(ki||(ki=ya=t.path()),_oc))ki.moveTo(0,0);else if(Lo>d-c)ki.moveTo(_o*a(No),_o*l(No)),ki.arc(0,0,_o,No,po,!ko),Ma>c&&(ki.moveTo(Ma*a(po),Ma*l(po)),ki.arc(0,0,Ma,po,No,ko));else{var Ds=No,Fs=po,ll=No,ul=po,zl=Lo,us=Lo,il=En.apply(this,arguments)/2,As=il>c&&(hi?+hi.apply(this,arguments):u(Ma*Ma+_o*_o)),cl=s(n(_o-Ma)/2,+Jr.apply(this,arguments)),Ks=cl,zs=cl,Io,ls;if(As>c){var Yl=m(As/Ma*l(il)),Su=m(As/_o*l(il));(zl-=Yl*2)>c?(Yl*=ko?1:-1,ll+=Yl,ul-=Yl):(zl=0,ll=ul=(No+po)/2),(us-=Su*2)>c?(Su*=ko?1:-1,Ds+=Su,Fs-=Su):(us=0,Ds=Fs=(No+po)/2)}var nc=_o*a(Ds),bs=_o*l(Ds),Rn=Ma*a(ul),_a=Ma*l(ul);if(cl>c){var Vu=_o*a(Fs),ql=_o*l(Fs),xo=Ma*a(ll),Kl=Ma*l(ll),Ns;if(Loc?zs>c?(Io=x(xo,Kl,nc,bs,_o,zs,ko),ls=x(Vu,ql,Rn,_a,_o,zs,ko),ki.moveTo(Io.cx+Io.x01,Io.cy+Io.y01),zsc)||!(zl>c)?ki.lineTo(Rn,_a):Ks>c?(Io=x(Rn,_a,Vu,ql,Ma,-Ks,ko),ls=x(nc,bs,xo,Kl,Ma,-Ks,ko),ki.lineTo(Io.cx+Io.x01,Io.cy+Io.y01),Ks=_o;--No)ki.point(Fs[No],ll[No]);ki.lineEnd(),ki.areaEnd()}ko&&(Fs[Ma]=+Ct(Lo,Ma,ea),ll[Ma]=+Jr(Lo,Ma,ea),ki.point(Sr?+Sr(Lo,Ma,ea):Fs[Ma],hi?+hi(Lo,Ma,ea):ll[Ma]))}if(Ds)return ki=null,Ds+""||null}function ya(){return z().defined(hn).curve(En).context(Sn)}return _n.x=function(ea){return arguments.length?(Ct=typeof ea=="function"?ea:r(+ea),Sr=null,_n):Ct},_n.x0=function(ea){return arguments.length?(Ct=typeof ea=="function"?ea:r(+ea),_n):Ct},_n.x1=function(ea){return arguments.length?(Sr=ea==null?null:typeof ea=="function"?ea:r(+ea),_n):Sr},_n.y=function(ea){return arguments.length?(Jr=typeof ea=="function"?ea:r(+ea),hi=null,_n):Jr},_n.y0=function(ea){return arguments.length?(Jr=typeof ea=="function"?ea:r(+ea),_n):Jr},_n.y1=function(ea){return arguments.length?(hi=ea==null?null:typeof ea=="function"?ea:r(+ea),_n):hi},_n.lineX0=_n.lineY0=function(){return ya().x(Ct).y(Jr)},_n.lineY1=function(){return ya().x(Ct).y(hi)},_n.lineX1=function(){return ya().x(Sr).y(Jr)},_n.defined=function(ea){return arguments.length?(hn=typeof ea=="function"?ea:r(!!ea),_n):hn},_n.curve=function(ea){return arguments.length?(En=ea,Sn!=null&&(ki=En(Sn)),_n):En},_n.context=function(ea){return arguments.length?(ea==null?Sn=ki=null:ki=En(Sn=ea),_n):Sn},_n}function V(Ct,Sr){return SrCt?1:Sr>=Ct?0:NaN}function G(Ct){return Ct}function Z(){var Ct=G,Sr=V,Jr=null,hi=r(0),hn=r(d),Sn=r(0);function En(ki){var _n,ya=ki.length,ea,Ma,_o=0,No=new Array(ya),po=new Array(ya),Lo=+hi.apply(this,arguments),ko=Math.min(d,Math.max(-d,hn.apply(this,arguments)-Lo)),Ds,Fs=Math.min(Math.abs(ko)/ya,Sn.apply(this,arguments)),ll=Fs*(ko<0?-1:1),ul;for(_n=0;_n0&&(_o+=ul);for(Sr!=null?No.sort(function(zl,us){return Sr(po[zl],po[us])}):Jr!=null&&No.sort(function(zl,us){return Jr(ki[zl],ki[us])}),_n=0,Ma=_o?(ko-ya*ll)/_o:0;_n0?ul*Ma:0)+ll,po[ea]={data:ki[ea],index:_n,value:ul,startAngle:Lo,endAngle:Ds,padAngle:Fs};return po}return En.value=function(ki){return arguments.length?(Ct=typeof ki=="function"?ki:r(+ki),En):Ct},En.sortValues=function(ki){return arguments.length?(Sr=ki,Jr=null,En):Sr},En.sort=function(ki){return arguments.length?(Jr=ki,Sr=null,En):Jr},En.startAngle=function(ki){return arguments.length?(hi=typeof ki=="function"?ki:r(+ki),En):hi},En.endAngle=function(ki){return arguments.length?(hn=typeof ki=="function"?ki:r(+ki),En):hn},En.padAngle=function(ki){return arguments.length?(Sn=typeof ki=="function"?ki:r(+ki),En):Sn},En}var j=H(g);function N(Ct){this._curve=Ct}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(Ct,Sr){this._curve.point(Sr*Math.sin(Ct),Sr*-Math.cos(Ct))}};function H(Ct){function Sr(Jr){return new N(Ct(Jr))}return Sr._curve=Ct,Sr}function ie(Ct){var Sr=Ct.curve;return Ct.angle=Ct.x,delete Ct.x,Ct.radius=Ct.y,delete Ct.y,Ct.curve=function(Jr){return arguments.length?Sr(H(Jr)):Sr()._curve},Ct}function ae(){return ie(z().curve(j))}function _e(){var Ct=q().curve(j),Sr=Ct.curve,Jr=Ct.lineX0,hi=Ct.lineX1,hn=Ct.lineY0,Sn=Ct.lineY1;return Ct.angle=Ct.x,delete Ct.x,Ct.startAngle=Ct.x0,delete Ct.x0,Ct.endAngle=Ct.x1,delete Ct.x1,Ct.radius=Ct.y,delete Ct.y,Ct.innerRadius=Ct.y0,delete Ct.y0,Ct.outerRadius=Ct.y1,delete Ct.y1,Ct.lineStartAngle=function(){return ie(Jr())},delete Ct.lineX0,Ct.lineEndAngle=function(){return ie(hi())},delete Ct.lineX1,Ct.lineInnerRadius=function(){return ie(hn())},delete Ct.lineY0,Ct.lineOuterRadius=function(){return ie(Sn())},delete Ct.lineY1,Ct.curve=function(En){return arguments.length?Sr(H(En)):Sr()._curve},Ct}function Ee(Ct,Sr){return[(Sr=+Sr)*Math.cos(Ct-=Math.PI/2),Sr*Math.sin(Ct)]}var Ce=Array.prototype.slice;function ge(Ct){return Ct.source}function re(Ct){return Ct.target}function Se(Ct){var Sr=ge,Jr=re,hi=P,hn=E,Sn=null;function En(){var ki,_n=Ce.call(arguments),ya=Sr.apply(this,_n),ea=Jr.apply(this,_n);if(Sn||(Sn=ki=t.path()),Ct(Sn,+hi.apply(this,(_n[0]=ya,_n)),+hn.apply(this,_n),+hi.apply(this,(_n[0]=ea,_n)),+hn.apply(this,_n)),ki)return Sn=null,ki+""||null}return En.source=function(ki){return arguments.length?(Sr=ki,En):Sr},En.target=function(ki){return arguments.length?(Jr=ki,En):Jr},En.x=function(ki){return arguments.length?(hi=typeof ki=="function"?ki:r(+ki),En):hi},En.y=function(ki){return arguments.length?(hn=typeof ki=="function"?ki:r(+ki),En):hn},En.context=function(ki){return arguments.length?(Sn=ki==null?null:ki,En):Sn},En}function ke(Ct,Sr,Jr,hi,hn){Ct.moveTo(Sr,Jr),Ct.bezierCurveTo(Sr=(Sr+hi)/2,Jr,Sr,hn,hi,hn)}function be(Ct,Sr,Jr,hi,hn){Ct.moveTo(Sr,Jr),Ct.bezierCurveTo(Sr,Jr=(Jr+hn)/2,hi,Jr,hi,hn)}function Be(Ct,Sr,Jr,hi,hn){var Sn=Ee(Sr,Jr),En=Ee(Sr,Jr=(Jr+hn)/2),ki=Ee(hi,Jr),_n=Ee(hi,hn);Ct.moveTo(Sn[0],Sn[1]),Ct.bezierCurveTo(En[0],En[1],ki[0],ki[1],_n[0],_n[1])}function Le(){return Se(ke)}function me(){return Se(be)}function Pe(){var Ct=Se(Be);return Ct.angle=Ct.x,delete Ct.x,Ct.radius=Ct.y,delete Ct.y,Ct}var ce={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr/f);Ct.moveTo(Jr,0),Ct.arc(0,0,Jr,0,d)}},He={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr/5)/2;Ct.moveTo(-3*Jr,-Jr),Ct.lineTo(-Jr,-Jr),Ct.lineTo(-Jr,-3*Jr),Ct.lineTo(Jr,-3*Jr),Ct.lineTo(Jr,-Jr),Ct.lineTo(3*Jr,-Jr),Ct.lineTo(3*Jr,Jr),Ct.lineTo(Jr,Jr),Ct.lineTo(Jr,3*Jr),Ct.lineTo(-Jr,3*Jr),Ct.lineTo(-Jr,Jr),Ct.lineTo(-3*Jr,Jr),Ct.closePath()}},lt=Math.sqrt(1/3),mt=lt*2,Ht={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr/mt),hi=Jr*lt;Ct.moveTo(0,-Jr),Ct.lineTo(hi,0),Ct.lineTo(0,Jr),Ct.lineTo(-hi,0),Ct.closePath()}},at=.8908130915292852,ct=Math.sin(f/10)/Math.sin(7*f/10),ar=Math.sin(d/10)*ct,Vt=-Math.cos(d/10)*ct,rr={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr*at),hi=ar*Jr,hn=Vt*Jr;Ct.moveTo(0,-Jr),Ct.lineTo(hi,hn);for(var Sn=1;Sn<5;++Sn){var En=d*Sn/5,ki=Math.cos(En),_n=Math.sin(En);Ct.lineTo(_n*Jr,-ki*Jr),Ct.lineTo(ki*hi-_n*hn,_n*hi+ki*hn)}Ct.closePath()}},tt={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr),hi=-Jr/2;Ct.rect(hi,hi,Jr,Jr)}},je=Math.sqrt(3),Ue={draw:function(Ct,Sr){var Jr=-Math.sqrt(Sr/(je*3));Ct.moveTo(0,Jr*2),Ct.lineTo(-je*Jr,-Jr),Ct.lineTo(je*Jr,-Jr),Ct.closePath()}},Ae=-.5,rt=Math.sqrt(3)/2,St=1/Math.sqrt(12),Tt=(St/2+1)*3,dt={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr/Tt),hi=Jr/2,hn=Jr*St,Sn=hi,En=Jr*St+Jr,ki=-Sn,_n=En;Ct.moveTo(hi,hn),Ct.lineTo(Sn,En),Ct.lineTo(ki,_n),Ct.lineTo(Ae*hi-rt*hn,rt*hi+Ae*hn),Ct.lineTo(Ae*Sn-rt*En,rt*Sn+Ae*En),Ct.lineTo(Ae*ki-rt*_n,rt*ki+Ae*_n),Ct.lineTo(Ae*hi+rt*hn,Ae*hn-rt*hi),Ct.lineTo(Ae*Sn+rt*En,Ae*En-rt*Sn),Ct.lineTo(Ae*ki+rt*_n,Ae*_n-rt*ki),Ct.closePath()}},Et=[ce,He,Ht,tt,rr,Ue,dt];function pt(){var Ct=r(ce),Sr=r(64),Jr=null;function hi(){var hn;if(Jr||(Jr=hn=t.path()),Ct.apply(this,arguments).draw(Jr,+Sr.apply(this,arguments)),hn)return Jr=null,hn+""||null}return hi.type=function(hn){return arguments.length?(Ct=typeof hn=="function"?hn:r(hn),hi):Ct},hi.size=function(hn){return arguments.length?(Sr=typeof hn=="function"?hn:r(+hn),hi):Sr},hi.context=function(hn){return arguments.length?(Jr=hn==null?null:hn,hi):Jr},hi}function jt(){}function or(Ct,Sr,Jr){Ct._context.bezierCurveTo((2*Ct._x0+Ct._x1)/3,(2*Ct._y0+Ct._y1)/3,(Ct._x0+2*Ct._x1)/3,(Ct._y0+2*Ct._y1)/3,(Ct._x0+4*Ct._x1+Sr)/6,(Ct._y0+4*Ct._y1+Jr)/6)}function mr(Ct){this._context=Ct}mr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:or(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:or(this,Ct,Sr);break}this._x0=this._x1,this._x1=Ct,this._y0=this._y1,this._y1=Sr}};function Ar(Ct){return new mr(Ct)}function ei(Ct){this._context=Ct}ei.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._x2=Ct,this._y2=Sr;break;case 1:this._point=2,this._x3=Ct,this._y3=Sr;break;case 2:this._point=3,this._x4=Ct,this._y4=Sr,this._context.moveTo((this._x0+4*this._x1+Ct)/6,(this._y0+4*this._y1+Sr)/6);break;default:or(this,Ct,Sr);break}this._x0=this._x1,this._x1=Ct,this._y0=this._y1,this._y1=Sr}};function qr(Ct){return new ei(Ct)}function jr(Ct){this._context=Ct}jr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Jr=(this._x0+4*this._x1+Ct)/6,hi=(this._y0+4*this._y1+Sr)/6;this._line?this._context.lineTo(Jr,hi):this._context.moveTo(Jr,hi);break;case 3:this._point=4;default:or(this,Ct,Sr);break}this._x0=this._x1,this._x1=Ct,this._y0=this._y1,this._y1=Sr}};function gt(Ct){return new jr(Ct)}function Ge(Ct,Sr){this._basis=new mr(Ct),this._beta=Sr}Ge.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var Ct=this._x,Sr=this._y,Jr=Ct.length-1;if(Jr>0)for(var hi=Ct[0],hn=Sr[0],Sn=Ct[Jr]-hi,En=Sr[Jr]-hn,ki=-1,_n;++ki<=Jr;)_n=ki/Jr,this._basis.point(this._beta*Ct[ki]+(1-this._beta)*(hi+_n*Sn),this._beta*Sr[ki]+(1-this._beta)*(hn+_n*En));this._x=this._y=null,this._basis.lineEnd()},point:function(Ct,Sr){this._x.push(+Ct),this._y.push(+Sr)}};var Je=function Ct(Sr){function Jr(hi){return Sr===1?new mr(hi):new Ge(hi,Sr)}return Jr.beta=function(hi){return Ct(+hi)},Jr}(.85);function We(Ct,Sr,Jr){Ct._context.bezierCurveTo(Ct._x1+Ct._k*(Ct._x2-Ct._x0),Ct._y1+Ct._k*(Ct._y2-Ct._y0),Ct._x2+Ct._k*(Ct._x1-Sr),Ct._y2+Ct._k*(Ct._y1-Jr),Ct._x2,Ct._y2)}function et(Ct,Sr){this._context=Ct,this._k=(1-Sr)/6}et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:We(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2,this._x1=Ct,this._y1=Sr;break;case 2:this._point=3;default:We(this,Ct,Sr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var xt=function Ct(Sr){function Jr(hi){return new et(hi,Sr)}return Jr.tension=function(hi){return Ct(+hi)},Jr}(0);function At(Ct,Sr){this._context=Ct,this._k=(1-Sr)/6}At.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._x3=Ct,this._y3=Sr;break;case 1:this._point=2,this._context.moveTo(this._x4=Ct,this._y4=Sr);break;case 2:this._point=3,this._x5=Ct,this._y5=Sr;break;default:We(this,Ct,Sr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var Kt=function Ct(Sr){function Jr(hi){return new At(hi,Sr)}return Jr.tension=function(hi){return Ct(+hi)},Jr}(0);function Qt(Ct,Sr){this._context=Ct,this._k=(1-Sr)/6}Qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:We(this,Ct,Sr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var Mr=function Ct(Sr){function Jr(hi){return new Qt(hi,Sr)}return Jr.tension=function(hi){return Ct(+hi)},Jr}(0);function Gr(Ct,Sr,Jr){var hi=Ct._x1,hn=Ct._y1,Sn=Ct._x2,En=Ct._y2;if(Ct._l01_a>c){var ki=2*Ct._l01_2a+3*Ct._l01_a*Ct._l12_a+Ct._l12_2a,_n=3*Ct._l01_a*(Ct._l01_a+Ct._l12_a);hi=(hi*ki-Ct._x0*Ct._l12_2a+Ct._x2*Ct._l01_2a)/_n,hn=(hn*ki-Ct._y0*Ct._l12_2a+Ct._y2*Ct._l01_2a)/_n}if(Ct._l23_a>c){var ya=2*Ct._l23_2a+3*Ct._l23_a*Ct._l12_a+Ct._l12_2a,ea=3*Ct._l23_a*(Ct._l23_a+Ct._l12_a);Sn=(Sn*ya+Ct._x1*Ct._l23_2a-Sr*Ct._l12_2a)/ea,En=(En*ya+Ct._y1*Ct._l23_2a-Jr*Ct._l12_2a)/ea}Ct._context.bezierCurveTo(hi,hn,Sn,En,Ct._x2,Ct._y2)}function Ir(Ct,Sr){this._context=Ct,this._alpha=Sr}Ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){if(Ct=+Ct,Sr=+Sr,this._point){var Jr=this._x2-Ct,hi=this._y2-Sr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+hi*hi,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2;break;case 2:this._point=3;default:Gr(this,Ct,Sr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var Yr=function Ct(Sr){function Jr(hi){return Sr?new Ir(hi,Sr):new et(hi,0)}return Jr.alpha=function(hi){return Ct(+hi)},Jr}(.5);function _i(Ct,Sr){this._context=Ct,this._alpha=Sr}_i.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Ct,Sr){if(Ct=+Ct,Sr=+Sr,this._point){var Jr=this._x2-Ct,hi=this._y2-Sr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+hi*hi,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=Ct,this._y3=Sr;break;case 1:this._point=2,this._context.moveTo(this._x4=Ct,this._y4=Sr);break;case 2:this._point=3,this._x5=Ct,this._y5=Sr;break;default:Gr(this,Ct,Sr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var Pi=function Ct(Sr){function Jr(hi){return Sr?new _i(hi,Sr):new At(hi,0)}return Jr.alpha=function(hi){return Ct(+hi)},Jr}(.5);function ai(Ct,Sr){this._context=Ct,this._alpha=Sr}ai.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){if(Ct=+Ct,Sr=+Sr,this._point){var Jr=this._x2-Ct,hi=this._y2-Sr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+hi*hi,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Gr(this,Ct,Sr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var mi=function Ct(Sr){function Jr(hi){return Sr?new ai(hi,Sr):new Qt(hi,0)}return Jr.alpha=function(hi){return Ct(+hi)},Jr}(.5);function un(Ct){this._context=Ct}un.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(Ct,Sr){Ct=+Ct,Sr=+Sr,this._point?this._context.lineTo(Ct,Sr):(this._point=1,this._context.moveTo(Ct,Sr))}};function Fn(Ct){return new un(Ct)}function An(Ct){return Ct<0?-1:1}function Hn(Ct,Sr,Jr){var hi=Ct._x1-Ct._x0,hn=Sr-Ct._x1,Sn=(Ct._y1-Ct._y0)/(hi||hn<0&&-0),En=(Jr-Ct._y1)/(hn||hi<0&&-0),ki=(Sn*hn+En*hi)/(hi+hn);return(An(Sn)+An(En))*Math.min(Math.abs(Sn),Math.abs(En),.5*Math.abs(ki))||0}function Qn(Ct,Sr){var Jr=Ct._x1-Ct._x0;return Jr?(3*(Ct._y1-Ct._y0)/Jr-Sr)/2:Sr}function Vi(Ct,Sr,Jr){var hi=Ct._x0,hn=Ct._y0,Sn=Ct._x1,En=Ct._y1,ki=(Sn-hi)/3;Ct._context.bezierCurveTo(hi+ki,hn+ki*Sr,Sn-ki,En-ki*Jr,Sn,En)}function Kn(Ct){this._context=Ct}Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Vi(this,this._t0,Qn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){var Jr=NaN;if(Ct=+Ct,Sr=+Sr,!(Ct===this._x1&&Sr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2;break;case 2:this._point=3,Vi(this,Qn(this,Jr=Hn(this,Ct,Sr)),Jr);break;default:Vi(this,this._t0,Jr=Hn(this,Ct,Sr));break}this._x0=this._x1,this._x1=Ct,this._y0=this._y1,this._y1=Sr,this._t0=Jr}}};function Jn(Ct){this._context=new Gt(Ct)}(Jn.prototype=Object.create(Kn.prototype)).point=function(Ct,Sr){Kn.prototype.point.call(this,Sr,Ct)};function Gt(Ct){this._context=Ct}Gt.prototype={moveTo:function(Ct,Sr){this._context.moveTo(Sr,Ct)},closePath:function(){this._context.closePath()},lineTo:function(Ct,Sr){this._context.lineTo(Sr,Ct)},bezierCurveTo:function(Ct,Sr,Jr,hi,hn,Sn){this._context.bezierCurveTo(Sr,Ct,hi,Jr,Sn,hn)}};function wt(Ct){return new Kn(Ct)}function tr(Ct){return new Jn(Ct)}function ir(Ct){this._context=Ct}ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var Ct=this._x,Sr=this._y,Jr=Ct.length;if(Jr)if(this._line?this._context.lineTo(Ct[0],Sr[0]):this._context.moveTo(Ct[0],Sr[0]),Jr===2)this._context.lineTo(Ct[1],Sr[1]);else for(var hi=wr(Ct),hn=wr(Sr),Sn=0,En=1;En=0;--Sr)hn[Sr]=(En[Sr]-hn[Sr+1])/Sn[Sr];for(Sn[Jr-1]=(Ct[Jr]+hn[Jr-1])/2,Sr=0;Sr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Sr),this._context.lineTo(Ct,Sr);else{var Jr=this._x*(1-this._t)+Ct*this._t;this._context.lineTo(Jr,this._y),this._context.lineTo(Jr,Sr)}break}}this._x=Ct,this._y=Sr}};function $r(Ct){return new ti(Ct,.5)}function Ri(Ct){return new ti(Ct,0)}function Zi(Ct){return new ti(Ct,1)}function en(Ct,Sr){if((En=Ct.length)>1)for(var Jr=1,hi,hn,Sn=Ct[Sr[0]],En,ki=Sn.length;Jr=0;)Jr[Sr]=Sr;return Jr}function yn(Ct,Sr){return Ct[Sr]}function Mn(){var Ct=r([]),Sr=fn,Jr=en,hi=yn;function hn(Sn){var En=Ct.apply(this,arguments),ki,_n=Sn.length,ya=En.length,ea=new Array(ya),Ma;for(ki=0;ki0){for(var Jr,hi,hn=0,Sn=Ct[0].length,En;hn0)for(var Jr,hi=0,hn,Sn,En,ki,_n,ya=Ct[Sr[0]].length;hi0?(hn[0]=En,hn[1]=En+=Sn):Sn<0?(hn[1]=ki,hn[0]=ki+=Sn):(hn[0]=0,hn[1]=Sn)}function ma(Ct,Sr){if((hn=Ct.length)>0){for(var Jr=0,hi=Ct[Sr[0]],hn,Sn=hi.length;Jr0)||!((Sn=(hn=Ct[Sr[0]]).length)>0))){for(var Jr=0,hi=1,hn,Sn,En;hiSn&&(Sn=hn,Jr=Sr);return Jr}function da(Ct){var Sr=Ct.map(jn);return fn(Ct).sort(function(Jr,hi){return Sr[Jr]-Sr[hi]})}function jn(Ct){for(var Sr=0,Jr=-1,hi=Ct.length,hn;++Jr{(function(e,t){typeof P7=="object"&&typeof $We!="undefined"?t(P7,dk(),S7(),QJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(P7,function(e,t,r,n){"use strict";function i(g){return g.target.depth}function a(g){return g.depth}function o(g,P){return P-1-g.height}function s(g,P){return g.sourceLinks.length?g.depth:P-1}function l(g){return g.targetLinks.length?g.depth:g.sourceLinks.length?t.min(g.sourceLinks,i)-1:0}function u(g){return function(){return g}}function c(g,P){return h(g.source,P.source)||g.index-P.index}function f(g,P){return h(g.target,P.target)||g.index-P.index}function h(g,P){return g.y0-P.y0}function d(g){return g.value}function v(g){return(g.y0+g.y1)/2}function m(g){return v(g.source)*g.value}function b(g){return v(g.target)*g.value}function p(g){return g.index}function k(g){return g.nodes}function M(g){return g.links}function T(g,P){var E=g.get(P);if(!E)throw new Error("missing: "+P);return E}var L=function(){var g=0,P=0,E=1,z=1,q=24,V=8,G=p,Z=s,j=k,N=M,H=32,ie=2/3;function ae(){var Se={nodes:j.apply(null,arguments),links:N.apply(null,arguments)};return _e(Se),Ee(Se),Ce(Se),ge(Se,H),re(Se),Se}ae.update=function(Se){return re(Se),Se},ae.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:u(Se),ae):G},ae.nodeAlign=function(Se){return arguments.length?(Z=typeof Se=="function"?Se:u(Se),ae):Z},ae.nodeWidth=function(Se){return arguments.length?(q=+Se,ae):q},ae.nodePadding=function(Se){return arguments.length?(V=+Se,ae):V},ae.nodes=function(Se){return arguments.length?(j=typeof Se=="function"?Se:u(Se),ae):j},ae.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:u(Se),ae):N},ae.size=function(Se){return arguments.length?(g=P=0,E=+Se[0],z=+Se[1],ae):[E-g,z-P]},ae.extent=function(Se){return arguments.length?(g=+Se[0][0],E=+Se[1][0],P=+Se[0][1],z=+Se[1][1],ae):[[g,P],[E,z]]},ae.iterations=function(Se){return arguments.length?(H=+Se,ae):H};function _e(Se){Se.nodes.forEach(function(be,Be){be.index=Be,be.sourceLinks=[],be.targetLinks=[]});var ke=r.map(Se.nodes,G);Se.links.forEach(function(be,Be){be.index=Be;var Le=be.source,me=be.target;typeof Le!="object"&&(Le=be.source=T(ke,Le)),typeof me!="object"&&(me=be.target=T(ke,me)),Le.sourceLinks.push(be),me.targetLinks.push(be)})}function Ee(Se){Se.nodes.forEach(function(ke){ke.value=Math.max(t.sum(ke.sourceLinks,d),t.sum(ke.targetLinks,d))})}function Ce(Se){var ke,be,Be;for(ke=Se.nodes,be=[],Be=0;ke.length;++Be,ke=be,be=[])ke.forEach(function(me){me.depth=Be,me.sourceLinks.forEach(function(Pe){be.indexOf(Pe.target)<0&&be.push(Pe.target)})});for(ke=Se.nodes,be=[],Be=0;ke.length;++Be,ke=be,be=[])ke.forEach(function(me){me.height=Be,me.targetLinks.forEach(function(Pe){be.indexOf(Pe.source)<0&&be.push(Pe.source)})});var Le=(E-g-q)/(Be-1);Se.nodes.forEach(function(me){me.x1=(me.x0=g+Math.max(0,Math.min(Be-1,Math.floor(Z.call(null,me,Be))))*Le)+q})}function ge(Se){var ke=r.nest().key(function(He){return He.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(He){return He.values});Le(),ce();for(var be=1,Be=H;Be>0;--Be)Pe(be*=.99),ce(),me(be),ce();function Le(){var He=t.max(ke,function(Ht){return Ht.length}),lt=ie*(z-P)/(He-1);V>lt&&(V=lt);var mt=t.min(ke,function(Ht){return(z-P-(Ht.length-1)*V)/t.sum(Ht,d)});ke.forEach(function(Ht){Ht.forEach(function(at,ct){at.y1=(at.y0=ct)+at.value*mt})}),Se.links.forEach(function(Ht){Ht.width=Ht.value*mt})}function me(He){ke.forEach(function(lt){lt.forEach(function(mt){if(mt.targetLinks.length){var Ht=(t.sum(mt.targetLinks,m)/t.sum(mt.targetLinks,d)-v(mt))*He;mt.y0+=Ht,mt.y1+=Ht}})})}function Pe(He){ke.slice().reverse().forEach(function(lt){lt.forEach(function(mt){if(mt.sourceLinks.length){var Ht=(t.sum(mt.sourceLinks,b)/t.sum(mt.sourceLinks,d)-v(mt))*He;mt.y0+=Ht,mt.y1+=Ht}})})}function ce(){ke.forEach(function(He){var lt,mt,Ht=P,at=He.length,ct;for(He.sort(h),ct=0;ct0&&(lt.y0+=mt,lt.y1+=mt),Ht=lt.y1+V;if(mt=Ht-V-z,mt>0)for(Ht=lt.y0-=mt,lt.y1-=mt,ct=at-2;ct>=0;--ct)lt=He[ct],mt=lt.y1+V-Ht,mt>0&&(lt.y0-=mt,lt.y1-=mt),Ht=lt.y0})}}function re(Se){Se.nodes.forEach(function(ke){ke.sourceLinks.sort(f),ke.targetLinks.sort(c)}),Se.nodes.forEach(function(ke){var be=ke.y0,Be=be;ke.sourceLinks.forEach(function(Le){Le.y0=be+Le.width/2,be+=Le.width}),ke.targetLinks.forEach(function(Le){Le.y1=Be+Le.width/2,Be+=Le.width})})}return ae};function x(g){return[g.source.x1,g.y0]}function C(g){return[g.target.x0,g.y1]}var S=function(){return n.linkHorizontal().source(x).target(C)};e.sankey=L,e.sankeyCenter=l,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=S,Object.defineProperty(e,"__esModule",{value:!0})})});var tXe=ye((w2r,eXe)=>{var rYt=$J();eXe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(M){a[M]=!1,o.hasOwnProperty(M)&&Object.keys(o[M]).forEach(function(T){delete o[M][T],a[T]&&u(T)})}function c(M){var T=!1;i.push(M),a[M]=!0;var L,x;for(L=0;L=M})}function d(M){h(M);for(var T=t,L=rYt(T),x=L.components.filter(function(q){return q.length>1}),C=1/0,S,g=0;g{(function(e,t){typeof I7=="object"&&typeof rXe!="undefined"?t(I7,dk(),S7(),QJ(),tXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(I7,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(at){return at.target.depth}function o(at){return at.depth}function s(at,ct){return ct-1-at.height}function l(at,ct){return at.sourceLinks.length?at.depth:ct-1}function u(at){return at.targetLinks.length?at.depth:at.sourceLinks.length?t.min(at.sourceLinks,a)-1:0}function c(at){return function(){return at}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(at){return typeof at}:function(at){return at&&typeof Symbol=="function"&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at};function h(at,ct){return v(at.source,ct.source)||at.index-ct.index}function d(at,ct){return v(at.target,ct.target)||at.index-ct.index}function v(at,ct){return at.partOfCycle===ct.partOfCycle?at.y0-ct.y0:at.circularLinkType==="top"||ct.circularLinkType==="bottom"?-1:1}function m(at){return at.value}function b(at){return(at.y0+at.y1)/2}function p(at){return b(at.source)}function k(at){return b(at.target)}function M(at){return at.index}function T(at){return at.nodes}function L(at){return at.links}function x(at,ct){var ar=at.get(ct);if(!ar)throw new Error("missing: "+ct);return ar}function C(at,ct){return ct(at)}var S=25,g=10,P=.3;function E(){var at=0,ct=0,ar=1,Vt=1,rr=24,tt,je=M,Ue=l,Ae=T,rt=L,St=32,Tt=2,dt,Et=null;function pt(){var gt={nodes:Ae.apply(null,arguments),links:rt.apply(null,arguments)};jt(gt),z(gt,je,Et),or(gt),ei(gt),q(gt,je),qr(gt,St,je),jr(gt);for(var Ge=4,Je=0;Je0?Ge+S+g:Ge,Je=Je>0?Je+S+g:Je,We=We>0?We+S+g:We,et=et>0?et+S+g:et,{top:Ge,bottom:Je,left:et,right:We}}function Ar(gt,Ge){var Je=t.max(gt.nodes,function(Mr){return Mr.column}),We=ar-at,et=Vt-ct,xt=We+Ge.right+Ge.left,At=et+Ge.top+Ge.bottom,Kt=We/xt,Qt=et/At;return at=at*Kt+Ge.left,ar=Ge.right==0?ar:ar*Kt,ct=ct*Qt+Ge.top,Vt=Vt*Qt,gt.nodes.forEach(function(Mr){Mr.x0=at+Mr.column*((ar-at-rr)/Je),Mr.x1=Mr.x0+rr}),Qt}function ei(gt){var Ge,Je,We;for(Ge=gt.nodes,Je=[],We=0;Ge.length;++We,Ge=Je,Je=[])Ge.forEach(function(et){et.depth=We,et.sourceLinks.forEach(function(xt){Je.indexOf(xt.target)<0&&!xt.circular&&Je.push(xt.target)})});for(Ge=gt.nodes,Je=[],We=0;Ge.length;++We,Ge=Je,Je=[])Ge.forEach(function(et){et.height=We,et.targetLinks.forEach(function(xt){Je.indexOf(xt.source)<0&&!xt.circular&&Je.push(xt.source)})});gt.nodes.forEach(function(et){et.column=Math.floor(Ue.call(null,et,We))})}function qr(gt,Ge,Je){var We=r.nest().key(function(Mr){return Mr.column}).sortKeys(t.ascending).entries(gt.nodes).map(function(Mr){return Mr.values});At(Je),Qt();for(var et=1,xt=Ge;xt>0;--xt)Kt(et*=.99,Je),Qt();function At(Mr){if(dt){var Gr=1/0;We.forEach(function(Pi){var ai=Vt*dt/(Pi.length+1);Gr=ai0))if(Pi==0&&_i==1)mi=ai.y1-ai.y0,ai.y0=Vt/2-mi/2,ai.y1=Vt/2+mi/2;else if(Pi==Ir-1&&_i==1)mi=ai.y1-ai.y0,ai.y0=Vt/2-mi/2,ai.y1=Vt/2+mi/2;else{var un=0,Fn=t.mean(ai.sourceLinks,k),An=t.mean(ai.targetLinks,p);Fn&&An?un=(Fn+An)/2:un=Fn||An;var Hn=(un-b(ai))*Mr;ai.y0+=Hn,ai.y1+=Hn}})})}function Qt(){We.forEach(function(Mr){var Gr,Ir,Yr=ct,_i=Mr.length,Pi;for(Mr.sort(v),Pi=0;Pi<_i;++Pi)Gr=Mr[Pi],Ir=Yr-Gr.y0,Ir>0&&(Gr.y0+=Ir,Gr.y1+=Ir),Yr=Gr.y1+tt;if(Ir=Yr-tt-Vt,Ir>0)for(Yr=Gr.y0-=Ir,Gr.y1-=Ir,Pi=_i-2;Pi>=0;--Pi)Gr=Mr[Pi],Ir=Gr.y1+tt-Yr,Ir>0&&(Gr.y0-=Ir,Gr.y1-=Ir),Yr=Gr.y0})}}function jr(gt){gt.nodes.forEach(function(Ge){Ge.sourceLinks.sort(d),Ge.targetLinks.sort(h)}),gt.nodes.forEach(function(Ge){var Je=Ge.y0,We=Je,et=Ge.y1,xt=et;Ge.sourceLinks.forEach(function(At){At.circular?(At.y0=et-At.width/2,et=et-At.width):(At.y0=Je+At.width/2,Je+=At.width)}),Ge.targetLinks.forEach(function(At){At.circular?(At.y1=xt-At.width/2,xt=xt-At.width):(At.y1=We+At.width/2,We+=At.width)})})}return pt}function z(at,ct,ar){var Vt=0;if(ar===null){for(var rr=[],tt=0;ttct.source.column)}function Z(at,ct){var ar=0;at.sourceLinks.forEach(function(rr){ar=rr.circular&&!mt(rr,ct)?ar+1:ar});var Vt=0;return at.targetLinks.forEach(function(rr){Vt=rr.circular&&!mt(rr,ct)?Vt+1:Vt}),ar+Vt}function j(at){var ct=at.source.sourceLinks,ar=0;ct.forEach(function(tt){ar=tt.circular?ar+1:ar});var Vt=at.target.targetLinks,rr=0;return Vt.forEach(function(tt){rr=tt.circular?rr+1:rr}),!(ar>1||rr>1)}function N(at,ct,ar){return at.sort(ae),at.forEach(function(Vt,rr){var tt=0;if(mt(Vt,ar)&&j(Vt))Vt.circularPathData.verticalBuffer=tt+Vt.width/2;else{var je=0;for(je;jett?Ue:tt}Vt.circularPathData.verticalBuffer=tt+Vt.width/2}}),at}function H(at,ct,ar,Vt){var rr=5,tt=t.min(at.links,function(Ae){return Ae.source.y0});at.links.forEach(function(Ae){Ae.circular&&(Ae.circularPathData={})});var je=at.links.filter(function(Ae){return Ae.circularLinkType=="top"});N(je,ct,Vt);var Ue=at.links.filter(function(Ae){return Ae.circularLinkType=="bottom"});N(Ue,ct,Vt),at.links.forEach(function(Ae){if(Ae.circular){if(Ae.circularPathData.arcRadius=Ae.width+g,Ae.circularPathData.leftNodeBuffer=rr,Ae.circularPathData.rightNodeBuffer=rr,Ae.circularPathData.sourceWidth=Ae.source.x1-Ae.source.x0,Ae.circularPathData.sourceX=Ae.source.x0+Ae.circularPathData.sourceWidth,Ae.circularPathData.targetX=Ae.target.x0,Ae.circularPathData.sourceY=Ae.y0,Ae.circularPathData.targetY=Ae.y1,mt(Ae,Vt)&&j(Ae))Ae.circularPathData.leftSmallArcRadius=g+Ae.width/2,Ae.circularPathData.leftLargeArcRadius=g+Ae.width/2,Ae.circularPathData.rightSmallArcRadius=g+Ae.width/2,Ae.circularPathData.rightLargeArcRadius=g+Ae.width/2,Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Ae.source.y1+S+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Ae.source.y0-S-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius);else{var rt=Ae.source.column,St=Ae.circularLinkType,Tt=at.links.filter(function(pt){return pt.source.column==rt&&pt.circularLinkType==St});Ae.circularLinkType=="bottom"?Tt.sort(Ee):Tt.sort(_e);var dt=0;Tt.forEach(function(pt,jt){pt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.leftSmallArcRadius=g+Ae.width/2+dt,Ae.circularPathData.leftLargeArcRadius=g+Ae.width/2+jt*ct+dt),dt=dt+pt.width}),rt=Ae.target.column,Tt=at.links.filter(function(pt){return pt.target.column==rt&&pt.circularLinkType==St}),Ae.circularLinkType=="bottom"?Tt.sort(ge):Tt.sort(Ce),dt=0,Tt.forEach(function(pt,jt){pt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.rightSmallArcRadius=g+Ae.width/2+dt,Ae.circularPathData.rightLargeArcRadius=g+Ae.width/2+jt*ct+dt),dt=dt+pt.width}),Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Math.max(ar,Ae.source.y1,Ae.target.y1)+S+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=tt-S-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius)}Ae.circularPathData.leftInnerExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightInnerExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightNodeBuffer,Ae.circularPathData.leftFullExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftLargeArcRadius+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightFullExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightLargeArcRadius-Ae.circularPathData.rightNodeBuffer}if(Ae.circular)Ae.path=ie(Ae);else{var Et=n.linkHorizontal().source(function(pt){var jt=pt.source.x0+(pt.source.x1-pt.source.x0),or=pt.y0;return[jt,or]}).target(function(pt){var jt=pt.target.x0,or=pt.y1;return[jt,or]});Ae.path=Et(Ae)}})}function ie(at){var ct="";return at.circularLinkType=="top"?ct="M"+at.circularPathData.sourceX+" "+at.circularPathData.sourceY+" L"+at.circularPathData.leftInnerExtent+" "+at.circularPathData.sourceY+" A"+at.circularPathData.leftLargeArcRadius+" "+at.circularPathData.leftSmallArcRadius+" 0 0 0 "+at.circularPathData.leftFullExtent+" "+(at.circularPathData.sourceY-at.circularPathData.leftSmallArcRadius)+" L"+at.circularPathData.leftFullExtent+" "+at.circularPathData.verticalLeftInnerExtent+" A"+at.circularPathData.leftLargeArcRadius+" "+at.circularPathData.leftLargeArcRadius+" 0 0 0 "+at.circularPathData.leftInnerExtent+" "+at.circularPathData.verticalFullExtent+" L"+at.circularPathData.rightInnerExtent+" "+at.circularPathData.verticalFullExtent+" A"+at.circularPathData.rightLargeArcRadius+" "+at.circularPathData.rightLargeArcRadius+" 0 0 0 "+at.circularPathData.rightFullExtent+" "+at.circularPathData.verticalRightInnerExtent+" L"+at.circularPathData.rightFullExtent+" "+(at.circularPathData.targetY-at.circularPathData.rightSmallArcRadius)+" A"+at.circularPathData.rightLargeArcRadius+" "+at.circularPathData.rightSmallArcRadius+" 0 0 0 "+at.circularPathData.rightInnerExtent+" "+at.circularPathData.targetY+" L"+at.circularPathData.targetX+" "+at.circularPathData.targetY:ct="M"+at.circularPathData.sourceX+" "+at.circularPathData.sourceY+" L"+at.circularPathData.leftInnerExtent+" "+at.circularPathData.sourceY+" A"+at.circularPathData.leftLargeArcRadius+" "+at.circularPathData.leftSmallArcRadius+" 0 0 1 "+at.circularPathData.leftFullExtent+" "+(at.circularPathData.sourceY+at.circularPathData.leftSmallArcRadius)+" L"+at.circularPathData.leftFullExtent+" "+at.circularPathData.verticalLeftInnerExtent+" A"+at.circularPathData.leftLargeArcRadius+" "+at.circularPathData.leftLargeArcRadius+" 0 0 1 "+at.circularPathData.leftInnerExtent+" "+at.circularPathData.verticalFullExtent+" L"+at.circularPathData.rightInnerExtent+" "+at.circularPathData.verticalFullExtent+" A"+at.circularPathData.rightLargeArcRadius+" "+at.circularPathData.rightLargeArcRadius+" 0 0 1 "+at.circularPathData.rightFullExtent+" "+at.circularPathData.verticalRightInnerExtent+" L"+at.circularPathData.rightFullExtent+" "+(at.circularPathData.targetY+at.circularPathData.rightSmallArcRadius)+" A"+at.circularPathData.rightLargeArcRadius+" "+at.circularPathData.rightSmallArcRadius+" 0 0 1 "+at.circularPathData.rightInnerExtent+" "+at.circularPathData.targetY+" L"+at.circularPathData.targetX+" "+at.circularPathData.targetY,ct}function ae(at,ct){return re(at)==re(ct)?at.circularLinkType=="bottom"?Ee(at,ct):_e(at,ct):re(ct)-re(at)}function _e(at,ct){return at.y0-ct.y0}function Ee(at,ct){return ct.y0-at.y0}function Ce(at,ct){return at.y1-ct.y1}function ge(at,ct){return ct.y1-at.y1}function re(at){return at.target.column-at.source.column}function Se(at){return at.target.x0-at.source.x1}function ke(at,ct){var ar=V(at),Vt=Se(ct)/Math.tan(ar),rr=lt(at)=="up"?at.y1+Vt:at.y1-Vt;return rr}function be(at,ct){var ar=V(at),Vt=Se(ct)/Math.tan(ar),rr=lt(at)=="up"?at.y1-Vt:at.y1+Vt;return rr}function Be(at,ct,ar,Vt){at.links.forEach(function(rr){if(!rr.circular&&rr.target.column-rr.source.column>1){var tt=rr.source.column+1,je=rr.target.column-1,Ue=1,Ae=je-tt+1;for(Ue=1;tt<=je;tt++,Ue++)at.nodes.forEach(function(rt){if(rt.column==tt){var St=Ue/(Ae+1),Tt=Math.pow(1-St,3),dt=3*St*Math.pow(1-St,2),Et=3*Math.pow(St,2)*(1-St),pt=Math.pow(St,3),jt=Tt*rr.y0+dt*rr.y0+Et*rr.y1+pt*rr.y1,or=jt-rr.width/2,mr=jt+rr.width/2,Ar;or>rt.y0&&orrt.y0&&mrrt.y1&&me(ei,Ar,ct,ar)})):orrt.y1&&(Ar=mr-rt.y0+10,rt=me(rt,Ar,ct,ar),at.nodes.forEach(function(ei){C(ei,Vt)==C(rt,Vt)||ei.column!=rt.column||ei.y0rt.y1&&me(ei,Ar,ct,ar)}))}})}})}function Le(at,ct){return at.y0>ct.y0&&at.y0ct.y0&&at.y1ct.y1}function me(at,ct,ar,Vt){return at.y0+ct>=ar&&at.y1+ct<=Vt&&(at.y0=at.y0+ct,at.y1=at.y1+ct,at.targetLinks.forEach(function(rr){rr.y1=rr.y1+ct}),at.sourceLinks.forEach(function(rr){rr.y0=rr.y0+ct})),at}function Pe(at,ct,ar,Vt){at.nodes.forEach(function(rr){Vt&&rr.y+(rr.y1-rr.y0)>ct&&(rr.y=rr.y-(rr.y+(rr.y1-rr.y0)-ct));var tt=at.links.filter(function(Ae){return C(Ae.source,ar)==C(rr,ar)}),je=tt.length;je>1&&tt.sort(function(Ae,rt){if(!Ae.circular&&!rt.circular){if(Ae.target.column==rt.target.column)return Ae.y1-rt.y1;if(He(Ae,rt)){if(Ae.target.column>rt.target.column){var St=be(rt,Ae);return Ae.y1-St}if(rt.target.column>Ae.target.column){var Tt=be(Ae,rt);return Tt-rt.y1}}else return Ae.y1-rt.y1}if(Ae.circular&&!rt.circular)return Ae.circularLinkType=="top"?-1:1;if(rt.circular&&!Ae.circular)return rt.circularLinkType=="top"?1:-1;if(Ae.circular&&rt.circular)return Ae.circularLinkType===rt.circularLinkType&&Ae.circularLinkType=="top"?Ae.target.column===rt.target.column?Ae.target.y1-rt.target.y1:rt.target.column-Ae.target.column:Ae.circularLinkType===rt.circularLinkType&&Ae.circularLinkType=="bottom"?Ae.target.column===rt.target.column?rt.target.y1-Ae.target.y1:Ae.target.column-rt.target.column:Ae.circularLinkType=="top"?-1:1});var Ue=rr.y0;tt.forEach(function(Ae){Ae.y0=Ue+Ae.width/2,Ue=Ue+Ae.width}),tt.forEach(function(Ae,rt){if(Ae.circularLinkType=="bottom"){var St=rt+1,Tt=0;for(St;St1&&rr.sort(function(Ue,Ae){if(!Ue.circular&&!Ae.circular){if(Ue.source.column==Ae.source.column)return Ue.y0-Ae.y0;if(He(Ue,Ae)){if(Ae.source.column0?"up":"down"}function mt(at,ct){return C(at.source,ct)==C(at.target,ct)}function Ht(at,ct,ar){var Vt=at.nodes,rr=at.links,tt=!1,je=!1;if(rr.forEach(function(dt){dt.circularLinkType=="top"?tt=!0:dt.circularLinkType=="bottom"&&(je=!0)}),tt==!1||je==!1){var Ue=t.min(Vt,function(dt){return dt.y0}),Ae=t.max(Vt,function(dt){return dt.y1}),rt=Ae-Ue,St=ar-ct,Tt=St/rt;Vt.forEach(function(dt){var Et=(dt.y1-dt.y0)*Tt;dt.y0=(dt.y0-Ue)*Tt,dt.y1=dt.y0+Et}),rr.forEach(function(dt){dt.y0=(dt.y0-Ue)*Tt,dt.y1=(dt.y1-Ue)*Tt,dt.width=dt.width*Tt})}}e.sankeyCircular=E,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})})});var e$=ye((T2r,nXe)=>{"use strict";nXe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var mXe=ye((A2r,gXe)=>{"use strict";var aXe=ZWe(),iYt=(j2(),gb(H2)).interpolateNumber,O5=qa(),oC=QWe(),nYt=iXe(),Nu=e$(),B5=fd(),yw=ka(),aYt=So(),w1=Pr(),i$=w1.strTranslate,oYt=w1.strRotate,n$=ny(),sC=n$.keyFun,R7=n$.repeat,fXe=n$.unwrap,oXe=Zl(),sYt=Oa(),hXe=Dh(),lYt=hXe.CAP_SHIFT,uYt=hXe.LINE_SPACING,cYt=3;function fYt(e,t,r){var n=fXe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,l=i.node.thickness,u={justify:oC.sankeyJustify,left:oC.sankeyLeft,right:oC.sankeyRight,center:oC.sankeyCenter}[i.node.align],c=e.width*(a.x[1]-a.x[0]),f=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,v=n.circular,m;v?m=nYt.sankeyCircular().circularLinkGap(0):m=oC.sankey(),m.iterations(Nu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(V){return V.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=m();m.nodePadding()=N||(j=N-Z.y0,j>1e-6&&(Z.y0+=j,Z.y1+=j)),N=Z.y1+s})}function P(V){var G=V.map(function(_e,Ee){return{x0:_e.x0,index:Ee}}).sort(function(_e,Ee){return _e.x0-Ee.x0}),Z=[],j=-1,N,H=-1/0,ie;for(p=0;pH+l&&(j+=1,N=ae.x0),H=ae.x0,Z[j]||(Z[j]=[]),Z[j].push(ae),ie=N-ae.x0,ae.x0+=ie,ae.x1+=ie}return Z}if(i.node.x.length&&i.node.y.length){for(p=0;p0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function a$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return dYt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=iYt(a,o),l=s(e),u=s(1-e),c=r.link.y0-r.link.width/2,f=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,v="M"+a+","+c,m="C"+l+","+c+" "+u+","+h+" "+o+","+h,b="C"+u+","+d+" "+l+","+f+" "+a+","+f,p=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return p+="L"+o+","+d,v+m+p+b+"Z"}return t}function vYt(e,t){var r=B5(t.color),n=Nu.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=w1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:yw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function r$(e){e.attr("transform",function(t){return i$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function pYt(e){e.call(r$)}function dXe(e,t){e.call(pYt),t.attr("d",a$())}function sXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function t$(e){return e.link.width>1||e.linkLineWidth>0}function lXe(e){var t=i$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function uXe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function gYt(e,t,r,n){var i=O5.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(w1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),w1.raiseToTop(this),a.interactionState.dragInProgress=a.node,cXe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):mYt(e,o,a,n),yYt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=O5.event.x,s=O5.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),cXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),dXe(e.filter(pXe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,vXe(r,i)}})}function _Yt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function vXe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zv=qa(),s$=Pr(),D7=s$.numberFormat,TYt=mXe(),N5=ef(),AYt=ka(),Fx=e$().cn,lC=s$._;function yXe(e){return e!==""}function U5(e,t){return e.filter(function(r){return r.key===t.traceId})}function _Xe(e,t){Zv.select(e).select("path").style("fill-opacity",t),Zv.select(e).select("rect").style("fill-opacity",t)}function xXe(e){Zv.select(e).select("text.name").style("fill","black")}function bXe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function wXe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function TXe(e,t,r){t&&r&&U5(r,t).selectAll("."+Fx.sankeyLink).filter(bXe(t)).call(AXe.bind(0,t,r,!1))}function o$(e,t,r){t&&r&&U5(r,t).selectAll("."+Fx.sankeyLink).filter(bXe(t)).call(SXe.bind(0,t,r,!1))}function AXe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&U5(t,e).selectAll("."+Fx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&U5(t,e).selectAll("."+Fx.sankeyNode).filter(wXe(e)).call(TXe)}function SXe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&U5(t,e).selectAll("."+Fx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&U5(t,e).selectAll(Fx.sankeyNode).filter(wXe(e)).call(o$)}function kf(e,t){var r=e.hoverlabel||{},n=s$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}MXe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:kf(C,"bgcolor")||AYt.addOpacity(z.color,1),borderColor:kf(C,"bordercolor"),fontFamily:kf(C,"font.family"),fontSize:kf(C,"font.size"),fontColor:kf(C,"font.color"),fontWeight:kf(C,"font.weight"),fontStyle:kf(C,"font.style"),fontVariant:kf(C,"font.variant"),fontTextcase:kf(C,"font.textcase"),fontLineposition:kf(C,"font.lineposition"),fontShadow:kf(C,"font.shadow"),nameLength:kf(C,"namelength"),textAlign:kf(C,"align"),idealAlign:Zv.event.x"),color:kf(C,"bgcolor")||x.tinyColorHue,borderColor:kf(C,"bordercolor"),fontFamily:kf(C,"font.family"),fontSize:kf(C,"font.size"),fontColor:kf(C,"font.color"),fontWeight:kf(C,"font.weight"),fontStyle:kf(C,"font.style"),fontVariant:kf(C,"font.variant"),fontTextcase:kf(C,"font.textcase"),fontLineposition:kf(C,"font.lineposition"),fontShadow:kf(C,"font.shadow"),nameLength:kf(C,"namelength"),textAlign:kf(C,"align"),idealAlign:"left",hovertemplate:C.hovertemplate,hovertemplateLabels:V,eventData:[x.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});_Xe(j,.85),xXe(j)}}},T=function(L,x,C){t._fullLayout.hovermode!==!1&&(Zv.select(L).call(o$,x,C),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zv.event,points:[x.node]})),N5.loneUnhover(n._hoverlayer.node()))};TYt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:m,unhover:b,select:l},nodeEvents:{hover:k,follow:M,unhover:T,select:p}})}});var EXe=ye(_w=>{"use strict";var SYt=mc().overrideAll,MYt=Id().getModuleCalcData,EYt=l$(),kYt=W1(),CYt=Eg(),LYt=yv(),PYt=qf().prepSelect,u$=Pr(),IYt=Oa(),F7="sankey";_w.name=F7;_w.baseLayoutAttrOverrides=SYt({hoverlabel:kYt.hoverlabel},"plot","nested");_w.plot=function(e){var t=MYt(e.calcdata,F7)[0];EYt(e,t),_w.updateFx(e)};_w.clean=function(e,t,r,n){var i=n._has&&n._has(F7),a=t._has&&t._has(F7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};_w.updateFx=function(e){for(var t=0;t{"use strict";kXe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";LXe.exports={attributes:JJ(),supplyDefaults:DWe(),calc:BWe(),plot:l$(),moduleType:"trace",name:"sankey",basePlotModule:EXe(),selectPoints:CXe(),categories:["noOpacity"],meta:{}}});var RXe=ye((C2r,IXe)=>{"use strict";IXe.exports=PXe()});var FXe=ye(V5=>{"use strict";var DXe=Mc();V5.name="indicator";V5.plot=function(e,t,r,n){DXe.plotBasePlot(V5.name,e,t,r,n)};V5.clean=function(e,t,r,n){DXe.cleanBasePlot(V5.name,e,t,r,n)}});var f$=ye((P2r,UXe)=>{"use strict";var zx=Ao().extendFlat,qXe=Ao().extendDeep,DYt=mc().overrideAll,OXe=ec(),BXe=Ih(),FYt=Cc().attributes,Nf=Rd(),zYt=vl().templatedArray,z7=QT(),zXe=vf().descriptionOnlyNumbers,c$=OXe({editType:"plot",colorEditType:"plot"}),uC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:BXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},NXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},qYt=zYt("step",qXe({},uC,{range:NXe}));UXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:FYt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:zx({},c$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:zXe("value")},font:zx({},c$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:zXe("value")},increasing:{symbol:{valType:"string",dflt:z7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:z7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:z7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:z7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:zx({},c$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:qXe({},uC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:BXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:DYt({range:NXe,visible:zx({},Nf.visible,{dflt:!0}),tickmode:Nf.minor.tickmode,nticks:Nf.nticks,tick0:Nf.tick0,dtick:Nf.dtick,tickvals:Nf.tickvals,ticktext:Nf.ticktext,ticks:zx({},Nf.ticks,{dflt:"outside"}),ticklen:Nf.ticklen,tickwidth:Nf.tickwidth,tickcolor:Nf.tickcolor,ticklabelstep:Nf.ticklabelstep,showticklabels:Nf.showticklabels,labelalias:Nf.labelalias,tickfont:OXe({}),tickangle:Nf.tickangle,tickformat:Nf.tickformat,tickformatstops:Nf.tickformatstops,tickprefix:Nf.tickprefix,showtickprefix:Nf.showtickprefix,ticksuffix:Nf.ticksuffix,showticksuffix:Nf.showticksuffix,separatethousands:Nf.separatethousands,exponentformat:Nf.exponentformat,minexponent:Nf.minexponent,showexponent:Nf.showexponent,editType:"plot"},"plot"),steps:qYt,threshold:{line:{color:zx({},uC.line.color,{}),width:zx({},uC.line.width,{dflt:1}),editType:"plot"},thickness:zx({},uC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var h$=ye((I2r,VXe)=>{"use strict";VXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var jXe=ye((R2r,HXe)=>{"use strict";var ly=Pr(),O7=f$(),OYt=Cc().defaults,GXe=vl(),BYt=Kd(),q7=h$(),NYt=Pb(),UYt=q3(),VYt=s_(),GYt=l_();function HYt(e,t,r,n){function i(x,C){return ly.coerce(e,t,O7,x,C)}OYt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var l=ly.extendFlat({},n.font);l.size=void 0,ly.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=q7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=ly.extendFlat({},n.font);c.size=void 0,ly.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||q7.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=ly.extendFlat({},n.font);f.size=.25*(s||u||q7.defaultNumberFontSize),ly.coerceFont(i,"title.font",f),i("title.text");var h,d,v,m;function b(x,C){return ly.coerce(h,d,O7.gauge,x,C)}function p(x,C){return ly.coerce(v,m,O7.gauge.axis,x,C)}if(t._hasGauge){h=e.gauge,h||(h={}),d=GXe.newContainer(t,"gauge"),b("shape");var k=t._isBullet=t.gauge.shape==="bullet";k||i("title.align","center");var M=t._isAngular=t.gauge.shape==="angular";M||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var T=q7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),BYt(h,d,{name:"steps",handleItemDefaults:jYt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),m=GXe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};NYt(v,m,p,"linear"),GYt(v,m,p,"linear",L),VYt(v,m,p,"linear",L),UYt(v,m,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function jYt(e,t){function r(n,i){return ly.coerce(e,t,O7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}HXe.exports={supplyDefaults:HYt}});var XXe=ye((D2r,WXe)=>{"use strict";function WYt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}WXe.exports={calc:WYt}});var QXe=ye((F2r,$Xe)=>{"use strict";var Aw=qa(),XYt=(j2(),gb(H2)).interpolate,ZXe=(j2(),gb(H2)).interpolateNumber,qx=Pr(),ZYt=qx.strScale,fC=qx.strTranslate,YYt=qx.rad2deg,KYt=Dh().MID_SHIFT,Tw=So(),xw=h$(),N7=Zl(),lv=ho(),JYt=h4(),$Yt=vI(),QYt=Rd(),G5=ka(),d$={left:"start",center:"middle",right:"end"},bw={left:0,center:.5,right:1},YXe=/[yzafpnµmkMGTPEZY]/;function hC(e){return e&&e.duration>0}$Xe.exports=function(t,r,n,i){var a=t._fullLayout,o;hC(n)&&i&&(o=i()),qx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=Aw.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,m={w:a._size.w*(v.x[1]-v.x[0]),h:a._size.h*(v.y[1]-v.y[0]),l:a._size.l+a._size.w*v.x[0],r:a._size.r+a._size.w*(1-v.x[1]),t:a._size.t+a._size.h*(1-v.y[1]),b:a._size.b+a._size.h*v.y[0]},b=m.l+m.w/2,p=m.t+m.h/2,k=Math.min(m.w/2,m.h),M=xw.innerRadius*k,T,L,x,C=u.align||"center";if(L=p,!f)T=m.l+bw[C]*m.w,x=function(j){return KXe(j,m.w,m.h)};else if(h&&(T=b,L=p+k/2,x=function(j){return nKt(j,.9*M)}),d){var S=xw.bulletPadding,g=1-xw.bulletNumberDomainSize+S;T=m.l+(g+(1-g)*bw[C])*m.w,x=function(j){return KXe(j,(xw.bulletNumberDomainSize-S)*m.w,m.h)}}rKt(t,c,s,{numbersX:T,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,E;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},E={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var z=c.selectAll("g.angular").data(h?s:[]);z.exit().remove();var q=c.selectAll("g.angularaxis").data(h?s:[]);q.exit().remove(),h&&tKt(t,c,s,{radius:k,innerRadius:M,gauge:z,layer:q,size:m,gaugeBg:P,gaugeOutline:E,transitionOpts:n,onComplete:o});var V=c.selectAll("g.bullet").data(d?s:[]);V.exit().remove();var G=c.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&eKt(t,c,s,{gauge:V,layer:G,size:m,gaugeBg:P,gaugeOutline:E,transitionOpts:n,onComplete:o});var Z=c.selectAll("text.title").data(s);Z.exit().remove(),Z.enter().append("text").classed("title",!0),Z.attr("text-anchor",function(){return d?d$.right:d$[u.title.align]}).text(u.title.text).call(Tw.font,u.title.font).call(N7.convertToTspans,t),Z.attr("transform",function(){var j=m.l+m.w*bw[u.title.align],N,H=xw.titlePadding,ie=Tw.bBox(Z.node());if(f){if(h)if(u.gauge.axis.visible){var ae=Tw.bBox(q.node());N=ae.top-H-ie.bottom}else N=m.t+m.h/2-k/2-ie.bottom-H;d&&(N=L-(ie.top+ie.bottom)/2,j=m.l-xw.bulletPadding*m.w)}else N=u._numbersTop-H-ie.bottom;return fC(j,N)})})};function eKt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,l=n.gaugeOutline,u=n.size,c=i.domain,f=n.transitionOpts,h=n.onComplete,d,v,m,b,p;a.enter().append("g").classed("bullet",!0),a.attr("transform",fC(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var k=u.h,M=i.gauge.bar.thickness*k,T=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-xw.bulletNumberDomainSize:1);d=cC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),v=lv.calcTicks(d),m=lv.makeTransTickFn(d),b=lv.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(lv.drawTicks(e,d,{vals:d.ticks==="inside"?lv.clipEnds(d,v):v,layer:o,path:lv.makeTickPath(d,p,b),transFn:m}),lv.drawLabels(e,d,{vals:v,layer:o,transFn:m,labelFns:lv.makeLabelFns(d,p)}));function x(q){q.attr("width",function(V){return Math.max(0,d.c2p(V.range[1])-d.c2p(V.range[0]))}).attr("x",function(V){return d.c2p(V.range[0])}).attr("y",function(V){return .5*(1-V.thickness)*k}).attr("height",function(V){return V.thickness*k})}var C=[s].concat(i.gauge.steps),S=a.selectAll("g.bg-bullet").data(C);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(x).call(ww),S.exit().remove();var g=a.selectAll("g.value-bullet").data([i.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",M).attr("y",(k-M)/2).call(ww),hC(f)?g.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),E=a.selectAll("g.threshold-bullet").data(P);E.enter().append("g").classed("threshold-bullet",!0).append("line"),E.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*k).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*k).call(G5.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),E.exit().remove();var z=a.selectAll("g.gauge-outline").data([l]);z.enter().append("g").classed("gauge-outline",!0).append("rect"),z.select("rect").call(x).call(ww),z.exit().remove()}function tKt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,l=n.gaugeBg,u=n.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=n.gauge,h=n.layer,d=n.transitionOpts,v=n.onComplete,m=Math.PI/2;function b(_e){var Ee=i.gauge.axis.range[0],Ce=i.gauge.axis.range[1],ge=(_e-Ee)/(Ce-Ee)*Math.PI-m;return ge<-m?-m:ge>m?m:ge}function p(_e){return Aw.svg.arc().innerRadius((s+o)/2-_e/2*(o-s)).outerRadius((s+o)/2+_e/2*(o-s)).startAngle(-m)}function k(_e){_e.attr("d",function(Ee){return p(Ee.thickness).startAngle(b(Ee.range[0])).endAngle(b(Ee.range[1]))()})}var M,T,L,x;f.enter().append("g").classed("angular",!0),f.attr("transform",fC(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),M=cC(e,i.gauge.axis),M.type="linear",M.range=i.gauge.axis.range,M._id="xangularaxis",M.ticklabeloverflow="allow",M.setScale();var C=function(_e){return(M.range[0]-_e.x)/(M.range[1]-M.range[0])*Math.PI+Math.PI},S={},g=lv.makeLabelFns(M,0),P=g.labelStandoff;S.xFn=function(_e){var Ee=C(_e);return Math.cos(Ee)*P},S.yFn=function(_e){var Ee=C(_e),Ce=Math.sin(Ee)>0?.2:1;return-Math.sin(Ee)*(P+_e.fontSize*Ce)+Math.abs(Math.cos(Ee))*(_e.fontSize*KYt)},S.anchorFn=function(_e){var Ee=C(_e),Ce=Math.cos(Ee);return Math.abs(Ce)<.1?"middle":Ce>0?"start":"end"},S.heightFn=function(_e,Ee,Ce){var ge=C(_e);return-.5*(1+Math.sin(ge))*Ce};var E=function(_e){return fC(c[0]+o*Math.cos(_e),c[1]-o*Math.sin(_e))};L=function(_e){return E(C(_e))};var z=function(_e){var Ee=C(_e);return E(Ee)+"rotate("+-YYt(Ee)+")"};if(T=lv.calcTicks(M),x=lv.getTickSigns(M)[2],M.visible){x=M.ticks==="inside"?-1:1;var q=(M.linewidth||1)/2;lv.drawTicks(e,M,{vals:T,layer:h,path:"M"+x*q+",0h"+x*M.ticklen,transFn:z}),lv.drawLabels(e,M,{vals:T,layer:h,transFn:L,labelFns:S})}var V=[l].concat(i.gauge.steps),G=f.selectAll("g.bg-arc").data(V);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(k).call(ww),G.exit().remove();var Z=p(i.gauge.bar.thickness),j=f.selectAll("g.value-arc").data([i.gauge.bar]);j.enter().append("g").classed("value-arc",!0).append("path");var N=j.select("path");hC(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attrTween("d",iKt(Z,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?Z.endAngle(b(r[0].y)):"M0,0Z"),N.call(ww),j.exit().remove(),V=[];var H=i.gauge.threshold.value;(H||H===0)&&V.push({range:[H,H],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var ie=f.selectAll("g.threshold-arc").data(V);ie.enter().append("g").classed("threshold-arc",!0).append("path"),ie.select("path").call(k).call(ww),ie.exit().remove();var ae=f.selectAll("g.gauge-outline").data([u]);ae.enter().append("g").classed("gauge-outline",!0).append("path"),ae.select("path").call(k).call(ww),ae.exit().remove()}function rKt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=d$[s],u=n.transitionOpts,c=n.onComplete,f=qx.ensureSingle(t,"g","numbers"),h,d,v,m=[];i._hasNumber&&m.push("number"),i._hasDelta&&(m.push("delta"),i.delta.position==="left"&&m.reverse());var b=f.selectAll("text").data(m);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(E){return E}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(E,z,q,V){if(E.match("s")&&q>=0!=V>=0&&!z(q).slice(-1).match(YXe)&&!z(V).slice(-1).match(YXe)){var G=E.slice().replace("s","f").replace(/\d+/,function(j){return parseInt(j)-1}),Z=cC(e,{tickformat:G});return function(j){return Math.abs(j)<1?lv.tickText(Z,j).text:z(j)}}else return z}function k(){var E=cC(e,{tickformat:i.number.valueformat},i._range);E.setScale(),lv.prepTicks(E);var z=function(j){return lv.tickText(E,j).text},q=i.number.suffix,V=i.number.prefix,G=f.select("text.number");function Z(){var j=typeof r[0].y=="number"?V+z(r[0].y)+q:"-";G.text(j).call(Tw.font,i.number.font).call(N7.convertToTspans,e)}return hC(u)?G.transition().duration(u.duration).ease(u.easing).each("end",function(){Z(),c&&c()}).each("interrupt",function(){Z(),c&&c()}).attrTween("text",function(){var j=Aw.select(this),N=ZXe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var H=p(i.number.valueformat,z,r[0].lastY,r[0].y);return function(ie){j.text(V+H(N(ie))+q)}}):Z(),h=JXe(V+z(r[0].y)+q,i.number.font,l,e),G}function M(){var E=cC(e,{tickformat:i.delta.valueformat},i._range);E.setScale(),lv.prepTicks(E);var z=function(ie){return lv.tickText(E,ie).text},q=i.delta.suffix,V=i.delta.prefix,G=function(ie){var ae=i.delta.relative?ie.relativeDelta:ie.delta;return ae},Z=function(ie,ae){return ie===0||typeof ie!="number"||isNaN(ie)?"-":(ie>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+V+ae(ie)+q},j=function(ie){return ie.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=f.select("text.delta");N.call(Tw.font,i.delta.font).call(G5.fill,j({delta:i._deltaLastValue}));function H(){N.text(Z(G(r[0]),z)).call(G5.fill,j(r[0])).call(N7.convertToTspans,e)}return hC(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var ie=Aw.select(this),ae=G(r[0]),_e=i._deltaLastValue,Ee=p(i.delta.valueformat,z,_e,ae),Ce=ZXe(_e,ae);return i._deltaLastValue=ae,function(ge){ie.text(Z(Ce(ge),Ee)),ie.call(G5.fill,j({delta:Ce(ge)}))}}).each("end",function(){H(),c&&c()}).each("interrupt",function(){H(),c&&c()}):H(),d=JXe(Z(G(r[0]),z),i.delta.font,l,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=M(),T+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,T+=i.delta.increasing.symbol+i.delta.decreasing.symbol,v=d),i._hasNumber&&(k(),T+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,v=h),i._hasDelta&&i._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],C=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(S=B7(i,"deltaPos",0,-1*(h.width*bw[i.align]+d.width*(1-bw[i.align])+P),T,Math.min),g=x[1]-C[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(S=B7(i,"deltaPos",0,h.width*(1-bw[i.align])+d.width*bw[i.align]+P,T,Math.max),g=x[1]-C[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(S=null,g=d.height,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(S=null,g=h.top,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:S,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var E=n.numbersScaler(v);T+=E[2];var z=B7(i,"numbersScale",1,E[0],T,Math.min),q;i._scaleNumbers||(z=1),i._isAngular?q=o-z*v.bottom:q=o-z*(v.top+v.bottom)/2,i._numbersTop=z*v.top+q;var V=v[s];s==="center"&&(V=(v.left+v.right)/2);var G=a-z*V;return G=B7(i,"numbersTranslate",0,G,T,Math.max),fC(G,q)+ZYt(z)})}function ww(e){e.each(function(t){G5.stroke(Aw.select(this),t.line.color)}).each(function(t){G5.fill(Aw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function iKt(e,t,r){return function(){var n=XYt(t,r);return function(i){return e.endAngle(n(i))()}}}function cC(e,t,r){var n=e._fullLayout,i=qx.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return qx.coerce(i,a,QYt,l,u)}return JYt(i,a,s,o,n),$Yt(i,a,s,o),a}function KXe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function nKt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function JXe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=Aw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(N7.convertToTspans,n).call(Tw.font,t),Tw.bBox(a.node())}function B7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=qx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var tZe=ye((z2r,eZe)=>{"use strict";eZe.exports={moduleType:"trace",name:"indicator",basePlotModule:FXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:f$(),supplyDefaults:jXe().supplyDefaults,calc:XXe().calc,plot:QXe(),meta:{}}});var iZe=ye((q2r,rZe)=>{"use strict";rZe.exports=tZe()});var v$=ye((B2r,sZe)=>{"use strict";var nZe=Qb(),U7=Ao().extendFlat,aKt=mc().overrideAll,aZe=ec(),oKt=Cc().attributes,oZe=vf().descriptionOnlyNumbers,O2r=sZe.exports=aKt({domain:oKt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:oZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:U7({},nZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:U7({},aZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:oZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:U7({},nZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:U7({},aZe({arrayOk:!0}))}},"calc","from-root")});var uZe=ye((N2r,lZe)=>{"use strict";var p$=Pr(),sKt=v$(),lKt=Cc().defaults;function uKt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(l,u){return l-u}),o=i.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var cKt=ny().wrap;cZe.exports=function(){return cKt({})}});var g$=ye((V2r,hZe)=>{"use strict";hZe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var bZe=ye((G2r,xZe)=>{"use strict";var dZe=g$(),y$=Ao().extendFlat,fKt=Eo(),hKt=Yd().isTypedArray,V7=Yd().isArrayOrTypedArray;xZe.exports=function(t,r){var n=m$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=m$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=m$(a));var o=a.concat(i(n).map(function(){return _Ze((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),c=r.header.values.length?o[0].map(function(){return r.header.height}):[dZe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(vZe,0),d=u-h,v=d+dZe.uplift,m=mZe(f,v),b=mZe(c,h),p=gZe(b,[]),k=gZe(m,p),M={},T=r._fullInput.columnorder;V7(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var E=V7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return fKt(E)?Number(E):1}),x=L.reduce(vZe,0);L=L.map(function(g){return g/x*l});var C=Math.max(_$(r.header.line.width),_$(r.cells.line.width)),S={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:C,height:u,columnOrder:T,groupHeight:u,rowBlocks:k,headerRowBlocks:p,scrollY:0,cells:y$({},r.cells,{values:n}),headerCells:y$({},r.header,{values:o}),gdColumns:o.map(function(g){return g[0]}),gdColumnsOriginalOrder:o.map(function(g){return g[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(g,P){var E=M[g];M[g]=(E||0)+1;var z=g+"__"+M[g];return{key:z,label:g,specIndex:P,xIndex:T[P],xScale:pZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return S.columns.forEach(function(g){g.calcdata=S,g.x=pZe(g)}),S};function _$(e){if(V7(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=yZe(),i+=a,s=u+1,a=0);return r}function yZe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var wZe=ye(x$=>{"use strict";var G7=Ao().extendFlat;x$.splitToPanels=function(e){var t=[0,0],r=G7({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:G7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=G7({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=G7({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};x$.splitToCells=function(e){var t=dKt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function dKt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var L$=ye((j2r,RZe)=>{"use strict";var Ya=g$(),rf=qa(),b$=Pr(),vKt=b$.numberFormat,Uu=ny(),w$=So(),pKt=Zl(),gKt=Pr().raiseToTop,lg=Pr().strTranslate,mKt=Pr().cancelTransition,yKt=bZe(),CZe=wZe(),TZe=ka();RZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+Ya.cn.table).data(r.map(function(k){var M=Uu.unwrap(k),T=M.trace;return yKt(t,T)}),Uu.keyFun);i.exit().remove(),i.enter().append("g").classed(Ya.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(k){return k.width+k.size.l+k.size.r}).attr("height",function(k){return k.height+k.size.t+k.size.b}).attr("transform",function(k){return lg(k.translateX,k.translateY)});var a=i.selectAll("."+Ya.cn.tableControlView).data(Uu.repeat,Uu.keyFun),o=a.enter().append("g").classed(Ya.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(k){a.filter(function(M){return k===M}).call(dC,t)}).on(s,function(k){if(!k.scrollbarState.wheeling){k.scrollbarState.wheeling=!0;var M=k.scrollY+rf.event.deltaY,T=j7(t,a,null,M)(k);T||(rf.event.stopPropagation(),rf.event.preventDefault()),k.scrollbarState.wheeling=!1}}).call(dC,t,!0)}a.attr("transform",function(k){return lg(k.size.l,k.size.t)});var l=a.selectAll("."+Ya.cn.scrollBackground).data(Uu.repeat,Uu.keyFun);l.enter().append("rect").classed(Ya.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),a.each(function(k){w$.setClipUrl(rf.select(this),AZe(t,k),t)});var u=a.selectAll("."+Ya.cn.yColumn).data(function(k){return k.columns},Uu.keyFun);u.enter().append("g").classed(Ya.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(k){return lg(k.x,0)}),n&&u.call(rf.behavior.drag().origin(function(k){var M=rf.select(this);return EZe(M,k,-Ya.uplift),gKt(this),k.calcdata.columnDragInProgress=!0,dC(a.filter(function(T){return k.calcdata.key===T.key}),t),k}).on("drag",function(k){var M=rf.select(this),T=function(C){return(k===C?rf.event.x:C.x)+C.columnWidth/2};k.x=Math.max(-Ya.overdrag,Math.min(k.calcdata.width+Ya.overdrag-k.columnWidth,rf.event.x));var L=LZe(u).filter(function(C){return C.calcdata.key===k.calcdata.key}),x=L.sort(function(C,S){return T(C)-T(S)});x.forEach(function(C,S){C.xIndex=S,C.x=k===C?C.x:C.xScale(C)}),u.filter(function(C){return k!==C}).transition().ease(Ya.transitionEase).duration(Ya.transitionDuration).attr("transform",function(C){return lg(C.x,0)}),M.call(mKt).attr("transform",lg(k.x,-Ya.uplift))}).on("dragend",function(k){var M=rf.select(this),T=k.calcdata;k.x=k.xScale(k),k.calcdata.columnDragInProgress=!1,EZe(M,k,0),kKt(t,T,T.columns.map(function(L){return L.xIndex}))})),u.each(function(k){w$.setClipUrl(rf.select(this),SZe(t,k),t)});var c=u.selectAll("."+Ya.cn.columnBlock).data(CZe.splitToPanels,Uu.keyFun);c.enter().append("g").classed(Ya.cn.columnBlock,!0).attr("id",function(k){return k.key}),c.style("cursor",function(k){return k.dragHandle?"ew-resize":k.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(CKt),h=c.filter(E$);n&&h.call(rf.behavior.drag().origin(function(k){return rf.event.stopPropagation(),k}).on("drag",j7(t,a,-1)).on("dragend",function(){})),T$(t,a,f,c),T$(t,a,h,c);var d=a.selectAll("."+Ya.cn.scrollAreaClip).data(Uu.repeat,Uu.keyFun);d.enter().append("clipPath").classed(Ya.cn.scrollAreaClip,!0).attr("id",function(k){return AZe(t,k)});var v=d.selectAll("."+Ya.cn.scrollAreaClipRect).data(Uu.repeat,Uu.keyFun);v.enter().append("rect").classed(Ya.cn.scrollAreaClipRect,!0).attr("x",-Ya.overdrag).attr("y",-Ya.uplift).attr("fill","none"),v.attr("width",function(k){return k.width+2*Ya.overdrag}).attr("height",function(k){return k.height+Ya.uplift});var m=u.selectAll("."+Ya.cn.columnBoundary).data(Uu.repeat,Uu.keyFun);m.enter().append("g").classed(Ya.cn.columnBoundary,!0);var b=u.selectAll("."+Ya.cn.columnBoundaryClippath).data(Uu.repeat,Uu.keyFun);b.enter().append("clipPath").classed(Ya.cn.columnBoundaryClippath,!0),b.attr("id",function(k){return SZe(t,k)});var p=b.selectAll("."+Ya.cn.columnBoundaryRect).data(Uu.repeat,Uu.keyFun);p.enter().append("rect").classed(Ya.cn.columnBoundaryRect,!0).attr("fill","none"),p.attr("width",function(k){return k.columnWidth+2*H7(k)}).attr("height",function(k){return k.calcdata.height+2*H7(k)+Ya.uplift}).attr("x",function(k){return-H7(k)}).attr("y",function(k){return-H7(k)}),k$(null,h,a)};function H7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function AZe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function SZe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function LZe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function dC(e,t,r){function n(u){var c=u.rowBlocks;return S$(c,c.length-1)+(c.length?W7(c[c.length-1],1/0):1)}var i=e.selectAll("."+Ya.cn.scrollbarKit).data(Uu.repeat,Uu.keyFun);i.enter().append("g").classed(Ya.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(u){var c=u.scrollbarState;c.totalHeight=n(u),c.scrollableAreaHeight=u.groupHeight-A$(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,Ya.goldenRatio*Ya.scrollbarWidth),c.barWiggleRoom=c.currentlyVisibleHeight-c.barLength,c.wiggleRoom=Math.max(0,c.totalHeight-c.scrollableAreaHeight),c.topY=c.barWiggleRoom===0?0:u.scrollY/c.wiggleRoom*c.barWiggleRoom,c.bottomY=c.topY+c.barLength,c.dragMultiplier=c.wiggleRoom/c.barWiggleRoom}).attr("transform",function(u){var c=u.width+Ya.scrollbarWidth/2+Ya.scrollbarOffset;return lg(c,A$(u))});var a=i.selectAll("."+Ya.cn.scrollbar).data(Uu.repeat,Uu.keyFun);a.enter().append("g").classed(Ya.cn.scrollbar,!0);var o=a.selectAll("."+Ya.cn.scrollbarSlider).data(Uu.repeat,Uu.keyFun);o.enter().append("g").classed(Ya.cn.scrollbarSlider,!0),o.attr("transform",function(u){return lg(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+Ya.cn.scrollbarGlyph).data(Uu.repeat,Uu.keyFun);s.enter().append("line").classed(Ya.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",Ya.scrollbarWidth).attr("stroke-linecap","round").attr("y1",Ya.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-Ya.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(Ya.scrollbarHideDelay).duration(Ya.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+Ya.cn.scrollbarCaptureZone).data(Uu.repeat,Uu.keyFun);l.enter().append("line").classed(Ya.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",Ya.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=rf.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=rf.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||j7(t,e,null,v(d-h.barLength/2))(u)}).call(rf.behavior.drag().origin(function(u){return rf.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",j7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function T$(e,t,r,n){var i=_Kt(r),a=xKt(i);AKt(a);var o=bKt(a);MKt(o);var s=TKt(a),l=wKt(s);SKt(l),PZe(l,t,n,e),C$(a)}function _Kt(e){var t=e.selectAll("."+Ya.cn.columnCells).data(Uu.repeat,Uu.keyFun);return t.enter().append("g").classed(Ya.cn.columnCells,!0),t.exit().remove(),t}function xKt(e){var t=e.selectAll("."+Ya.cn.columnCell).data(CZe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.columnCell,!0),t.exit().remove(),t}function bKt(e){var t=e.selectAll("."+Ya.cn.cellRect).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(Ya.cn.cellRect,!0),t}function wKt(e){var t=e.selectAll("."+Ya.cn.cellText).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(Ya.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){rf.event.stopPropagation()}),t}function TKt(e){var t=e.selectAll("."+Ya.cn.cellTextHolder).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function AKt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Yv(n.size,i,r),color:Yv(n.color,i,r),family:Yv(n.family,i,r),weight:Yv(n.weight,i,r),style:Yv(n.style,i,r),variant:Yv(n.variant,i,r),textcase:Yv(n.textcase,i,r),lineposition:Yv(n.lineposition,i,r),shadow:Yv(n.shadow,i,r)};t.rowNumber=t.key,t.align=Yv(t.calcdata.cells.align,i,r),t.cellBorderWidth=Yv(t.calcdata.cells.line.width,i,r),t.font=a})}function SKt(e){e.each(function(t){w$.font(rf.select(this),t.font)})}function MKt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=rf.select(this);TZe.stroke(r,Yv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),TZe.fill(r,Yv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function PZe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;i.mayHaveMarkup=l&&s.match(/[<&>]/);var f=EKt(s);i.latex=f;var h=f?"":Yv(i.calcdata.cells.prefix,a,o)||"",d=f?"":Yv(i.calcdata.cells.suffix,a,o)||"",v=f?null:Yv(i.calcdata.cells.format,a,o)||null,m=h+(v?vKt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=MZe(m)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?MZe(m):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var k=Ya.wrapSplitCharacter===" "?m.replace(/i&&n.push(a),i+=l}return n}function k$(e,t,r){var n=LZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=S$(i,i.length),s=n.calcdata.groupHeight-A$(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=LKt(i,l,s);u.length===1&&(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(c,f){c.page=u[f],c.scrollY=l}),t.attr("transform",function(c){var f=S$(c.rowBlocks,c.page)-c.scrollY;return lg(0,f)}),e&&(kZe(e,r,t,u,n.prevPages,n,0),kZe(e,r,t,u,n.prevPages,n,1),dC(r,e))}}function j7(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(f){return o.key===f.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=n===void 0?o.scrollY+l*rf.event.dy:n;var c=s.selectAll("."+Ya.cn.yColumn).selectAll("."+Ya.cn.columnBlock).filter(E$);return k$(e,c,s),o.scrollY===u}}function kZe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&n[c]!==i[c]});T$(e,t,l,r),i[o]=n[o]}))}function PKt(e,t,r,n){return function(){var a=rf.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(m,b){s[b].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,d=0,v=o.column.columnWidth-2*Ya.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,d+h>v&&(o.value+=c.join(Ya.wrapSpacer)+Ya.lineBreaker,c=[],d=0),c.push(f.text),d+=h;d&&(o.value+=c.join(Ya.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),PZe(a.select("."+Ya.cn.cellText),r,e,n),rf.select(t.parentNode.parentNode).call(C$)}}function IKt(e,t,r,n,i){return function(){if(!i.settledY){var o=rf.select(t.parentNode),s=M$(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*Ya.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+Ya.cn.columnCell).call(C$),k$(null,e.filter(E$),0),dC(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,m=v.getBoundingClientRect(),b=rf.select(d.parentNode).select("."+Ya.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),k=b.top-m.top+(p?p.matrix.f:Ya.cellPad);return lg(IZe(i,rf.select(d.parentNode).select("."+Ya.cn.cellTextHolder).node().getBoundingClientRect().width),k)}),i.settledY=!0}}}function IZe(e,t){switch(e.align){case"left":return Ya.cellPad;case"right":return e.column.columnWidth-(t||0)-Ya.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return Ya.cellPad}}function C$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+W7(s,1/0)},0),n=M$(t),i=W7(n,t.key),a=i+r;return lg(0,a)}).selectAll("."+Ya.cn.cellRect).attr("height",function(t){return DKt(M$(t),t.key).rowHeight})}function S$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=RKt(e[n]);return r}function W7(e,t){for(var r=0,n=0;n{"use strict";var FKt=Id().getModuleCalcData,zKt=L$(),X7="table";Z7.name=X7;Z7.plot=function(e){var t=FKt(e.calcdata,X7)[0];t.length&&zKt(e,t)};Z7.clean=function(e,t,r,n){var i=n._has&&n._has(X7),a=t._has&&t._has(X7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var zZe=ye((X2r,FZe)=>{"use strict";FZe.exports={attributes:v$(),supplyDefaults:uZe(),calc:fZe(),plot:L$(),moduleType:"trace",name:"table",basePlotModule:DZe(),categories:["noOpacity"],meta:{}}});var OZe=ye((Z2r,qZe)=>{"use strict";qZe.exports=zZe()});var GZe=ye((Y2r,VZe)=>{"use strict";var BZe=ec(),NZe=Ih(),P$=Rd(),qKt=vf().descriptionWithDates,OKt=mc().overrideAll,UZe=Pd().dash,I$=Ao().extendFlat;VZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:BZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:P$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:I$({},P$.labelalias,{editType:"calc"}),tickfont:BZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:qKt("tick label")},tickformatstops:OKt(P$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:NZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:I$({},UZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:I$({},UZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:NZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var K7=ye((K2r,WZe)=>{"use strict";var BKt=ec(),HZe=GZe(),jZe=Ih(),Y7=BKt({editType:"calc"}),NKt=pf().zorder;Y7.family.dflt='"Open Sans", verdana, arial, sans-serif';Y7.size.dflt=12;Y7.color.dflt=jZe.defaultLine;WZe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:HZe,baxis:HZe,font:Y7,color:{valType:"color",dflt:jZe.defaultLine,editType:"plot"},zorder:NKt}});var YZe=ye((J2r,ZZe)=>{"use strict";var XZe=Pr().isArray1D;ZZe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||XZe(i))&&(!s||XZe(o))){var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var $Ze=ye(($2r,JZe)=>{"use strict";var UKt=K7(),KZe=ka().addOpacity,VKt=Oa(),vC=Pr(),GKt=Pb(),HKt=s_(),jKt=l_(),WKt=fI(),XKt=xm(),ZKt=H3();JZe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=UKt[i+"axis"];function s(g,P){return vC.coerce(t,r,o,g,P)}function l(g,P){return vC.coerce2(t,r,o,g,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var u=s("type");if(u==="-"&&(n.data&&YKt(r,n.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,u==="date"){var c=VKt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}XKt(r,n.fullLayout),r.c2p=vC.identity;var f=s("color",n.dfltColor),h=f===t.color?f:a.color,d=s("title.text");d&&(vC.coerceFont(s,"title.font",a,{overrideDflt:{size:vC.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var v=s("autorange",!r.isValidRange(t.range));v&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),GKt(t,r,s,u),jKt(t,r,s,u,n),HKt(t,r,s,u,n),WKt(t,r,s,{data:n.data,dataAttr:i});var m=l("gridcolor",KZe(f,.3)),b=l("gridwidth"),p=l("griddash"),k=s("showgrid");k||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var M=l("startlinecolor",f),T=l("startlinewidth",b),L=s("startline",r.showgrid||!!M||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",f),C=l("endlinewidth",b),S=s("endline",r.showgrid||!!x||!!C);return S||(delete r.endlinecolor,delete r.endlinewidth),k?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",KZe(m,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function YKt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=ZKt(t,a,{autotypenumbers:e.autotypenumbers})}}});var eYe=ye((Q2r,QZe)=>{"use strict";var KKt=$Ze(),JKt=vl();QZe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),$Kt(t,r,n,a)};function $Kt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=JKt.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};KKt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var iYe=ye((ewr,rYe)=>{"use strict";var tYe=Pr(),QKt=YZe(),eJt=eYe(),tJt=K7(),rJt=Ih();rYe.exports=function(t,r,n,i){function a(l,u){return tYe.coerce(t,r,tJt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",rJt.defaultLine);if(tYe.coerceFont(a,"font",i.font),a("carpet"),eJt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=QKt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var R$=ye((twr,nYe)=>{"use strict";var iJt=Pr().isArrayOrTypedArray;nYe.exports=function(t,r,n){var i;for(iJt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";aYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";oYe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(n),u=1,c=1;if(o){var f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,d)}var v=Math.atan2(l,s)*180/Math.PI;return v<-90?(v+=180,u=-u):v>90&&(v-=180,u=-u),{angle:v,flip:u,p:t.c2p(i,r,n),offsetMultplier:c}}});var pYe=ye((nwr,vYe)=>{"use strict";var e9=qa(),J7=So(),$7=R$(),cYe=D$(),pC=sYe(),F$=Zl(),Up=Pr(),fYe=Up.strRotate,Q7=Up.strTranslate,hYe=Dh();vYe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Up.makeTraceGroups(i,n,"trace").each(function(c){var f=e9.select(this),h=c[0],d=h.trace,v=d.aaxis,m=d.baxis,b=Up.ensureSingle(f,"g","minorlayer"),p=Up.ensureSingle(f,"g","majorlayer"),k=Up.ensureSingle(f,"g","boundarylayer"),M=Up.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),H5(o,s,p,v,"a",v._gridlines,!0,a),H5(o,s,p,m,"b",m._gridlines,!0,a),H5(o,s,b,v,"a",v._minorgridlines,!0,a),H5(o,s,b,m,"b",m._minorgridlines,!0,a),H5(o,s,k,v,"a-boundary",v._boundarylines,a),H5(o,s,k,m,"b-boundary",m._boundarylines,a);var T=lYe(t,o,s,d,h,M,v._labels,"a-label"),L=lYe(t,o,s,d,h,M,m._labels,"b-label");aJt(t,M,d,h,o,s,T,L),nJt(d,h,u,o,s)})};function nJt(e,t,r,n,i){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=Up.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(J7.font,f.font).text(f.text).call(F$.convertToTspans,e),p=J7.bBox(this);b.attr("transform",Q7(d.p[0],d.p[1])+fYe(d.angle)+Q7(f.axis.labelpadding*m,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function aJt(e,t,r,n,i,a,o,s){var l,u,c,f,h=Up.aggNums(Math.min,null,r.a),d=Up.aggNums(Math.max,null,r.a),v=Up.aggNums(Math.min,null,r.b),m=Up.aggNums(Math.max,null,r.b);l=.5*(h+d),u=v,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&Up.extendFlat(o,pC(r,i,a,c,r.dxydb_rough(l,u))),uYe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+m),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&Up.extendFlat(s,pC(r,i,a,c,r.dxyda_rough(l,u))),uYe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var dYe=hYe.LINE_SPACING,oJt=(1-hYe.MID_SHIFT)/dYe+1;function uYe(e,t,r,n,i,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),d=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var v=pC(r,s,l,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var m=o.title.font.size;d+=m+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,k=p>90&&p<270,M=e9.select(this);M.text(o.title.text).call(F$.convertToTspans,e),k&&(d=(-F$.lineCount(M)+oJt)*dYe*m-d),M.attr("transform",Q7(v.p[0],v.p[1])+fYe(v.angle)+Q7(0,d)).attr("text-anchor","middle").call(J7.font,o.title.font)}),h.exit().remove()}});var mYe=ye((awr,gYe)=>{"use strict";var t9=Pr().isArrayOrTypedArray;gYe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=t9(e)?e.length:e,f=t9(t)?t.length:t,h=t9(e)?e:null,d=t9(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(f-1));var v,m=1/0,b=-1/0;for(i=0;i{"use strict";var yYe=Pr().isArrayOrTypedArray;xYe.exports=function(e){return _Ye(e,0)};function _Ye(e,t){if(!yYe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var sJt=ho(),Ox=Ao().extendFlat;wYe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,m,b,p,k=t["_"+r],M=t[r+"axis"],T=M._gridlines=[],L=M._minorgridlines=[],x=M._boundarylines=[],C=t["_"+n],S=t[n+"axis"];M.tickmode==="array"&&(M.tickvals=k.slice());var g=t._xctrl,P=t._yctrl,E=g[0].length,z=g.length,q=t._a.length,V=t._b.length;sJt.prepTicks(M),M.tickmode==="array"&&delete M.tickvals;var G=M.smoothing?3:1;function Z(N){var H,ie,ae,_e,Ee,Ce,ge,re,Se,ke,be,Be,Le=[],me=[],Pe={};if(r==="b")for(ie=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(V-2,ie))),_e=ie-ae,Pe.length=V,Pe.crossLength=q,Pe.xy=function(ce){return t.evalxy([],ce,ie)},Pe.dxy=function(ce,He){return t.dxydi([],ce,ae,He,_e)},H=0;H0&&(Se=t.dxydi([],H-1,ae,0,_e),Le.push(Ee[0]+Se[0]/3),me.push(Ee[1]+Se[1]/3),ke=t.dxydi([],H-1,ae,1,_e),Le.push(re[0]-ke[0]/3),me.push(re[1]-ke[1]/3)),Le.push(re[0]),me.push(re[1]),Ee=re;else for(H=t.a2i(N),Ce=Math.floor(Math.max(0,Math.min(q-2,H))),ge=H-Ce,Pe.length=q,Pe.crossLength=V,Pe.xy=function(ce){return t.evalxy([],H,ce)},Pe.dxy=function(ce,He){return t.dxydj([],Ce,ce,ge,He)},ie=0;ie0&&(be=t.dxydj([],Ce,ie-1,ge,0),Le.push(Ee[0]+be[0]/3),me.push(Ee[1]+be[1]/3),Be=t.dxydj([],Ce,ie-1,ge,1),Le.push(re[0]-Be[0]/3),me.push(re[1]-Be[1]/3)),Le.push(re[0]),me.push(re[1]),Ee=re;return Pe.axisLetter=r,Pe.axis=M,Pe.crossAxis=S,Pe.value=N,Pe.constvar=n,Pe.index=f,Pe.x=Le,Pe.y=me,Pe.smoothing=S.smoothing,Pe}function j(N){var H,ie,ae,_e,Ee,Ce=[],ge=[],re={};if(re.length=k.length,re.crossLength=C.length,r==="b")for(ae=Math.max(0,Math.min(V-2,N)),Ee=Math.min(1,Math.max(0,N-ae)),re.xy=function(Se){return t.evalxy([],Se,N)},re.dxy=function(Se,ke){return t.dxydi([],Se,ae,ke,Ee)},H=0;Hk.length-1)&&T.push(Ox(j(a),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(f=u;fk.length-1)&&!(v<0||v>k.length-1))for(m=k[o],b=k[v],i=0;ik[k.length-1])&&L.push(Ox(Z(d),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash})));M.startline&&x.push(Ox(j(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&x.push(Ox(j(k.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((k[k.length-1]-M.tick0)/M.dtick*(1+s)),Math.ceil((k[0]-M.tick0)/M.dtick/(1+s))].sort(function(N,H){return N-H}),u=l[0],c=l[1],f=u;f<=c;f++)h=M.tick0+M.dtick*f,T.push(Ox(Z(h),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(f=u-1;fk[k.length-1])&&L.push(Ox(Z(d),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash}));M.startline&&x.push(Ox(Z(k[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&x.push(Ox(Z(k[k.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}});var EYe=ye((lwr,MYe)=>{"use strict";var AYe=ho(),SYe=Ao().extendFlat;MYe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";kYe.exports=function(t,r,n,i){var a,o,s,l=[],u=!!n.smoothing,c=!!i.smoothing,f=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=f;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][f],s[a]=r[a][f];for(l.push({x:o,y:s,bicubic:c}),a=f,o=[],s=[];a>=0;a--)o[f-a]=t[h][a],s[f-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:c}),l}});var PYe=ye((cwr,LYe)=>{"use strict";var lJt=Pr();LYe.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(ae,_e){var Ee=0,Ce,ge=0;return ae>0&&(Ce=t[_e][ae-1])!==void 0&&(ge++,Ee+=Ce),ae0&&(Ce=t[_e-1][ae])!==void 0&&(ge++,Ee+=Ce),_e0&&a0&&iS);return lJt.log("Smoother converged to",g,"after",E,"iterations"),t}});var RYe=ye((fwr,IYe)=>{"use strict";IYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var zYe=ye((hwr,FYe)=>{"use strict";var DYe=.5;FYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],l=n[1]-r[1],u=Math.pow(a*a+o*o,DYe/2),c=Math.pow(s*s+l*l,DYe/2),f=(c*c*a-u*u*s)*i,h=(c*c*o-u*u*l)*i,d=c*(u+c)*3,v=u*(u+c)*3;return[[r[0]+(d&&f/d),r[1]+(d&&h/d)],[r[0]-(v&&f/v),r[1]-(v&&h/v)]]}});var OYe=ye((dwr,qYe)=>{"use strict";var z$=zYe(),r9=Pr().ensureArray;function j5(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}qYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,m,b,p=n[0].length,k=n.length,M=a?3*p-2:p,T=o?3*k-2:k;for(t=r9(t,T),r=r9(r,T),u=0;u{"use strict";BYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,l,u){s||(s=[]);var c,f,h,d,v,m,b=Math.max(0,Math.min(Math.floor(l),a)),p=Math.max(0,Math.min(Math.floor(u),o)),k=Math.max(0,Math.min(1,l-b)),M=Math.max(0,Math.min(1,u-p));b*=3,p*=3;var T=k*k,L=T*k,x=1-k,C=x*x,S=C*x,g=M*M,P=g*M,E=1-M,z=E*E,q=z*E;for(m=0;m{"use strict";UYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,m=1-o,b=m*m,p=m*o*2,k=-3*b,M=3*(b-p),T=3*(p-v),L=3*v,x=s*s,C=x*s,S=1-s,g=S*S,P=g*S;for(d=0;d{"use strict";GYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,m=v*o,b=1-o,p=b*b,k=p*b,M=s*s,T=1-s,L=T*T,x=T*s*2,C=-3*L,S=3*(L-x),g=3*(x-M),P=3*M;for(d=0;d{"use strict";var jYe=RYe(),WYe=V6().findBin,uJt=OYe(),cJt=NYe(),fJt=VYe(),hJt=HYe();XYe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[i-1],c=n[0],f=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],v=h*jYe.RELATIVE_CULL_TOLERANCE,m=d*jYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=m,f+=m,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,k=uJt(t._xctrl,t._yctrl,b,p,o.smoothing,s.smoothing);t._xctrl=k[0],t._yctrl=k[1],t.evalxy=cJt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=fJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=hJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var p=Math.max(0,Math.floor(b[0]),i-2),k=b[0]-p;return(1-k)*r[p]+k*r[p+1]},t.j2b=function(b){var p=Math.max(0,Math.floor(b[1]),i-2),k=b[1]-p;return(1-k)*n[p]+k*n[p+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var p=Math.max(0,Math.min(WYe(b,r),i-2)),k=r[p],M=r[p+1];return Math.max(0,Math.min(i-1,p+(b-k)/(M-k)))},t.b2j=function(b){var p=Math.max(0,Math.min(WYe(b,n),a-2)),k=n[p],M=n[p+1];return Math.max(0,Math.min(a-1,p+(b-k)/(M-k)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,p){return t.evalxy([],b,p)},t.ab2xy=function(b,p,k){if(!k&&(br[i-1]|pn[a-1]))return[!1,!1];var M=t.a2i(b),T=t.b2j(p),L=t.evalxy([],M,T);if(k){var x=0,C=0,S=[],g,P,E,z;br[i-1]?(g=i-2,P=1,x=(b-r[i-1])/(r[i-1]-r[i-2])):(g=Math.max(0,Math.min(i-2,Math.floor(M))),P=M-g),pn[a-1]?(E=a-2,z=1,C=(p-n[a-1])/(n[a-1]-n[a-2])):(E=Math.max(0,Math.min(a-2,Math.floor(T))),z=T-E),x&&(t.dxydi(S,g,E,P,z),L[0]+=S[0]*x,L[1]+=S[1]*x),C&&(t.dxydj(S,g,E,P,z),L[0]+=S[0]*C,L[1]+=S[1]*C)}return L},t.c2p=function(b,p,k){return[p.c2p(b[0]),k.c2p(b[1])]},t.p2x=function(b,p,k){return[p.p2c(b[0]),k.p2c(b[1])]},t.dadi=function(b){var p=Math.max(0,Math.min(r.length-2,b));return r[p+1]-r[p]},t.dbdj=function(b){var p=Math.max(0,Math.min(n.length-2,b));return n[p+1]-n[p]},t.dxyda=function(b,p,k,M){var T=t.dxydi(null,b,p,k,M),L=t.dadi(b,k);return[T[0]/L,T[1]/L]},t.dxydb=function(b,p,k,M){var T=t.dxydj(null,b,p,k,M),L=t.dbdj(p,M);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,p,k){var M=h*(k||.1),T=t.ab2xy(b+M,p,!0),L=t.ab2xy(b-M,p,!0);return[(T[0]-L[0])*.5/M,(T[1]-L[1])*.5/M]},t.dxydb_rough=function(b,p,k){var M=d*(k||.1),T=t.ab2xy(b,p+M,!0),L=t.ab2xy(b,p-M,!0);return[(T[0]-L[0])*.5/M,(T[1]-L[1])*.5/M]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var rKe=ye((ywr,tKe)=>{"use strict";var i9=ho(),YYe=Pr().isArray1D,dJt=mYe(),KYe=bYe(),JYe=TYe(),$Ye=EYe(),vJt=CYe(),QYe=c8(),eKe=PYe(),pJt=l8(),gJt=ZYe();tKe.exports=function(t,r){var n=i9.getFromId(t,r.xaxis),i=i9.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&YYe(s)&&u.push("x"),l&&YYe(l)&&u.push("y"),u.length&&pJt(r,a,o,"a","b",u);var c=r._a=r._a||r.a,f=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?c.length:c,v=o.cheatertype==="index"?f.length:f;s=dJt(d,v,r.cheaterslope)}r._x=s=QYe(s),r._y=l=QYe(l),eKe(s,c,f),eKe(l,c,f),gJt(r),r.setScale();var m=KYe(s),b=KYe(l),p=.5*(m[1]-m[0]),k=.5*(m[1]+m[0]),M=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return m=[k-p*L,k+p*L],b=[T-M*L,T+M*L],r._extremes[n._id]=i9.findExtremes(n,m,{padded:!0}),r._extremes[i._id]=i9.findExtremes(i,b,{padded:!0}),JYe(r,"a","b"),JYe(r,"b","a"),$Ye(r,a),$Ye(r,o),h.clipsegments=vJt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var nKe=ye((_wr,iKe)=>{"use strict";iKe.exports={attributes:K7(),supplyDefaults:iYe(),plot:pYe(),calc:rKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:mh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var oKe=ye((xwr,aKe)=>{"use strict";aKe.exports=nKe()});var q$=ye((bwr,cKe)=>{"use strict";var mJt=Pg(),c0=pf(),yJt=Gl(),{hovertemplateAttrs:_Jt,texttemplateAttrs:xJt,templatefallbackAttrs:sKe}=Ll(),lKe=Tu(),Bx=Ao().extendFlat,ug=c0.marker,W5=c0.line,uKe=ug.line;cKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Bx({},c0.mode,{dflt:"markers"}),text:Bx({},c0.text,{}),texttemplate:xJt({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:sKe({editType:"plot"}),hovertext:Bx({},c0.hovertext,{}),line:{color:W5.color,width:W5.width,dash:W5.dash,backoff:W5.backoff,shape:Bx({},W5.shape,{values:["linear","spline"]}),smoothing:W5.smoothing,editType:"calc"},connectgaps:c0.connectgaps,fill:Bx({},c0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:mJt(),marker:Bx({symbol:ug.symbol,opacity:ug.opacity,maxdisplayed:ug.maxdisplayed,angle:ug.angle,angleref:ug.angleref,standoff:ug.standoff,size:ug.size,sizeref:ug.sizeref,sizemin:ug.sizemin,sizemode:ug.sizemode,line:Bx({width:uKe.width,dash:uKe.dash,editType:"calc"},lKe("marker.line")),gradient:ug.gradient,editType:"calc"},lKe("marker")),textfont:c0.textfont,textposition:c0.textposition,selected:c0.selected,unselected:c0.unselected,hoverinfo:Bx({},yJt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:c0.hoveron,hovertemplate:_Jt(),hovertemplatefallback:sKe(),zorder:c0.zorder}});var vKe=ye((wwr,dKe)=>{"use strict";var fKe=Pr(),bJt=Pm(),X5=Ru(),wJt=$p(),TJt=D0(),hKe=uT(),AJt=F0(),SJt=Fg(),MJt=q$();dKe.exports=function(t,r,n,i){function a(h,d){return fKe.coerce(t,r,MJt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext");var u=l{"use strict";pKe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=i.evalxy([],o,l,s,u);return n.yLabel=c[1].toFixed(3),n}});var n9=ye((Awr,mKe)=>{"use strict";mKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var yKe=Eo(),EJt=z0(),kJt=Dm(),CJt=q0(),LJt=O0().calcMarkerSize,PJt=n9();_Ke.exports=function(t,r){var n=r._carpetTrace=PJt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(i=0;i{"use strict";var IJt=pT(),bKe=ho(),RJt=So();wKe.exports=function(t,r,n,i){var a,o,s,l=n[0][0].carpet,u=bKe.getFromId(t,l.xaxis||"x"),c=bKe.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var DJt=_T(),FJt=Pr().fillText;AKe.exports=function(t,r,n,i){var a=DJt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,v=h._module.formatLabels(f,h);o.yLabel=v.yLabel,delete o.text;var m=[];function b(M,T){var L;M.labelprefix&&M.labelprefix.length>0?L=M.labelprefix.replace(/ = $/,""):L=M._hovertitle,m.push(L+": "+T.toFixed(3)+M.labelsuffix)}if(!h.hovertemplate){var p=f.hi||h.hoverinfo,k=p.split("+");k.indexOf("all")!==-1&&(k=["a","b","text"]),k.indexOf("a")!==-1&&b(d.aaxis,f.a),k.indexOf("b")!==-1&&b(d.baxis,f.b),m.push("y: "+o.yLabel),k.indexOf("text")!==-1&&FJt(f,h,m),o.extraText=m.join("
")}return a}});var EKe=ye((kwr,MKe)=>{"use strict";MKe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var CKe=ye((Cwr,kKe)=>{"use strict";kKe.exports={attributes:q$(),supplyDefaults:vKe(),colorbar:Qd(),formatLabels:gKe(),calc:xKe(),plot:TKe(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:SKe(),selectPoints:xT(),eventData:EKe(),moduleType:"trace",name:"scattercarpet",basePlotModule:mh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var PKe=ye((Lwr,LKe)=>{"use strict";LKe.exports=CKe()});var O$=ye((Pwr,IKe)=>{"use strict";var cg=qT(),T1=O4(),zJt=Tu(),qJt=Ao().extendFlat,uy=T1.contours;IKe.exports=qJt({carpet:{valType:"string",editType:"calc"},z:cg.z,a:cg.x,a0:cg.x0,da:cg.dx,b:cg.y,b0:cg.y0,db:cg.dy,text:cg.text,hovertext:cg.hovertext,transpose:cg.transpose,atype:cg.xtype,btype:cg.ytype,fillcolor:T1.fillcolor,autocontour:T1.autocontour,ncontours:T1.ncontours,contours:{type:uy.type,start:uy.start,end:uy.end,size:uy.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:uy.showlines,showlabels:uy.showlabels,labelfont:uy.labelfont,labelformat:uy.labelformat,operation:uy.operation,value:uy.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:T1.line.color,width:T1.line.width,dash:T1.line.dash,smoothing:T1.line.smoothing,editType:"plot"},zorder:T1.zorder},zJt("",{cLetter:"z",autoColorDflt:!1}))});var B$=ye((Iwr,FKe)=>{"use strict";var RKe=Pr(),OJt=a8(),DKe=O$(),BJt=FG(),NJt=C8(),UJt=L8();FKe.exports=function(t,r,n,i){function a(u,c){return RKe.coerce(t,r,DKe,u,c)}function o(u){return RKe.coerce2(t,r,DKe,u)}if(a("carpet"),t.a&&t.b){var s=OJt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?BJt(t,r,a,i,n,{hasHover:!1}):(NJt(t,r,a,o),UJt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var BKe=ye((Rwr,OKe)=>{"use strict";var VJt=gv(),zKe=Pr(),GJt=l8(),HJt=c8(),jJt=f8(),WJt=h8(),qKe=nG(),XJt=B$(),ZJt=n9(),YJt=TG();OKe.exports=function(t,r){var n=r._carpetTrace=ZJt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),XJt(a,r,r._defaultColor,t._fullLayout)}var o=KJt(t,r);return YJt(r,r._z),o}};function KJt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,l,u,c,f;n._minDtick=0,i._minDtick=0,zKe.isArray1D(t.z)&&GJt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],l=l?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=HJt(t._z||t.z,t.transpose),t._emptypoints=WJt(f),jJt(f,t._emptypoints);var h=zKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=qKe(t,d,o,s,h,n),m=t.ytype==="scaled"?"":l,b=qKe(t,m,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&VJt(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var UKe=ye((Dwr,NKe)=>{"use strict";var JJt=Pr().isArrayOrTypedArray;NKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,m,b,p=JJt(r)?"a":"b",k=p==="a"?e.aaxis:e.baxis,M=k.smoothing,T=p==="a"?e.a2i:e.b2j,L=p==="a"?r:n,x=p==="a"?n:r,C=p==="a"?t.a.length:t.b.length,S=p==="a"?t.b.length:t.a.length,g=Math.floor(p==="a"?e.b2j(x):e.a2i(x)),P=p==="a"?function(_e){return e.evalxy([],_e,g)}:function(_e){return e.evalxy([],g,_e)};M&&(o=Math.max(0,Math.min(S-2,g)),s=g-o,a=p==="a"?function(_e,Ee){return e.dxydi([],_e,o,Ee,s)}:function(_e,Ee){return e.dxydj([],o,_e,s,Ee)});var E=T(L[0]),z=T(L[1]),q=E0?Math.floor:Math.ceil,Z=q>0?Math.ceil:Math.floor,j=q>0?Math.min:Math.max,N=q>0?Math.max:Math.min,H=G(E+V),ie=Z(z-V);c=P(E);var ae=[[c]];for(i=H;i*q{"use strict";var o9=qa(),s9=R$(),WKe=D$(),gC=So(),A1=Pr(),$Jt=SG(),QJt=MG(),Sw=R8(),a9=N4(),e$t=LG(),t$t=CG(),r$t=PG(),i$t=n9(),VKe=UKe();XKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;A1.makeTraceGroups(i,n,"contour").each(function(s){var l=o9.select(this),u=s[0],c=u.trace,f=c._carpetTrace=i$t(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,m=c.contours,b=t$t(m,r,u),p=m.type==="constraint",k=m._operation,M=p?k==="="?"lines":"fill":m.coloring;function T(G){var Z=f.ab2xy(G[0],G[1],!0);return[a.c2p(Z[0]),o.c2p(Z[1])]}var L=[[d[0],v[v.length-1]],[d[d.length-1],v[v.length-1]],[d[d.length-1],v[0]],[d[0],v[0]]];$Jt(b);var x=(d[d.length-1]-d[0])*1e-8,C=(v[v.length-1]-v[0])*1e-8;QJt(b,x,C);var S=b;m.type==="constraint"&&(S=e$t(b,k)),n$t(b,T);var g,P,E,z,q=[];for(z=h.clipsegments.length-1;z>=0;z--)g=h.clipsegments[z],P=s9([],g.x,a.c2p),E=s9([],g.y,o.c2p),P.reverse(),E.reverse(),q.push(WKe(P,E,g.bicubic));var V="M"+q.join("L")+"Z";s$t(l,h.clipsegments,a,o,p,M),l$t(c,l,a,o,S,L,T,f,h,M,V),a$t(l,b,t,u,m,r,f),gC.setClipUrl(l,f._clipPathId,t)})};function n$t(e,t){var r,n,i,a,o,s,l,u,c;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function GKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function HKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function jKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function s$t(e,t,r,n,i,a){var o,s,l,u,c=A1.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!i?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(d=P,m=b):Math.abs(h[1]-d[1])=0&&(d=P,m=b):A1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(m>=0)break;u+=S(h,d),h=d}if(m===t.edgepaths.length){A1.log("unclosed perimeter path");break}l=m,f=c.indexOf(l)===-1,f&&(l=c[0],u+=S(h,d)+"Z",h=null)}for(l=0;l{"use strict";YKe.exports={attributes:O$(),supplyDefaults:B$(),colorbar:z8(),calc:BKe(),plot:ZKe(),style:F8(),moduleType:"trace",name:"contourcarpet",basePlotModule:mh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var $Ke=ye((qwr,JKe)=>{"use strict";JKe.exports=KKe()});var u9=ye((Owr,iJe)=>{"use strict";var l9=Pr().extendFlat,mC=pf(),QKe=vf().axisHoverFormat,{hovertemplateAttrs:c$t,templatefallbackAttrs:f$t}=Ll(),tJe=Pd().dash,h$t=g3(),rJe=QT(),d$t=rJe.INCREASING.COLOR,v$t=rJe.DECREASING.COLOR,N$=mC.line;function eJe(e){return{line:{color:l9({},N$.color,{dflt:e}),width:N$.width,dash:tJe,editType:"style"},editType:"style"}}iJe.exports={xperiod:mC.xperiod,xperiod0:mC.xperiod0,xperiodalignment:mC.xperiodalignment,xhoverformat:QKe("x"),yhoverformat:QKe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:l9({},N$.width,{}),dash:l9({},tJe,{}),editType:"style"},increasing:eJe(d$t),decreasing:eJe(v$t),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:c$t({},{keys:["open","high","low","close"]}),hovertemplatefallback:f$t(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:l9({},h$t.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:mC.zorder}});var U$=ye((Bwr,nJe)=>{"use strict";var p$t=Oa(),g$t=Pr();nJe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),l=n("low"),u=n("close");n("hoverlabel.split");var c=p$t.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],i),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,g$t.minRowLength(a))),r._length=f,f}}});var sJe=ye((Nwr,oJe)=>{"use strict";var m$t=Pr(),y$t=U$(),_$t=Dg(),x$t=u9();oJe.exports=function(t,r,n,i){function a(s,l){return m$t.coerce(t,r,x$t,s,l)}var o=y$t(t,r,a,i);if(!o){r.visible=!1;return}_$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),aJe(t,r,a,"increasing"),aJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function aJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var V$=ye((Uwr,uJe)=>{"use strict";var Z5=Pr(),c9=Z5._,f9=ho(),b$t=zg(),yC=fs().BADNUM;function w$t(e,t){var r=f9.getFromId(e,t.xaxis),n=f9.getFromId(e,t.yaxis),i=A$t(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=lJe(e,t,o,s,n,T$t);return t._extremes[r._id]=f9.findExtremes(r,s,{vpad:a/2}),l.length?(Z5.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function T$t(e,t,r,n){return{o:e,h:t,l:r,c:n}}function lJe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),l=i.makeCalcdata(t,"low"),u=i.makeCalcdata(t,"close"),c=Z5.isArrayOrTypedArray(t.text),f=Z5.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,m=[],b=0;bd):h=L>k,d=L;var x=a(k,M,T,L);x.pos=p,x.yc=(k+L)/2,x.i=b,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[T,M],v&&(x.orig_p=r[b]),c&&(x.tx=t.text[b]),f&&(x.htx=t.hovertext[b]),m.push(x)}else m.push({pos:p,empty:!0})}return t._extremes[i._id]=f9.findExtremes(i,Z5.concat(l,s),{padded:!0}),m.length&&(m[0].t={labels:{open:c9(e,"open:")+" ",high:c9(e,"high:")+" ",low:c9(e,"low:")+" ",close:c9(e,"close:")+" "}}),m}function A$t(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var S$t=qa(),cJe=Pr();fJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;cJe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=S$t.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var d=f.tickLen,v=u.selectAll("path").data(cJe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(m){if(m.empty)return"M0,0Z";var b=o.c2p(m.pos-d,!0),p=o.c2p(m.pos+d,!0),k=s?(b+p)/2:o.c2p(m.pos,!0),M=a.c2p(m.o,!0),T=a.c2p(m.h,!0),L=a.c2p(m.l,!0),x=a.c2p(m.c,!0);return"M"+b+","+M+"H"+k+"M"+k+","+T+"V"+L+"M"+p+","+x+"H"+k})})}});var vJe=ye((Gwr,dJe)=>{"use strict";var G$=qa(),M$t=So(),E$t=ka();dJe.exports=function(t,r,n){var i=n||G$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;G$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;G$.select(this).style("fill","none").call(E$t.stroke,l.color).call(M$t.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var j$=ye((Hwr,_Je)=>{"use strict";var H$=ho(),k$t=Pr(),h9=ef(),C$t=ka(),L$t=Pr().fillText,pJe=QT(),P$t={increasing:pJe.INCREASING.SYMBOL,decreasing:pJe.DECREASING.SYMBOL};function I$t(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?mJe(e,t,r,n):yJe(e,t,r,n)}function gJe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,d=s.bPos||0,v=function(P){return P.pos+d-t},m=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,m/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function k(P){var E=v(P);return h9.inbox(E-b,E+b,f)}function M(P){var E=P[u],z=P[c];return E===z||h9.inbox(E-r,z-r,f)}function T(P){return(k(P)+M(P))/2}var L=h9.getDistanceFunction(n,k,M,T);if(h9.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var C=x.dir,S=o[C],g=S.line.color;return C$t.opacity(g)&&S.line.width?e.color=g:e.color=S.fillcolor,e.x0=a.c2p(x.pos+d-m,!0),e.x1=a.c2p(x.pos+d+m,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=T(x)*h/f,e.xSpike=a.c2p(x.pos,!0),e}function mJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=gJe(e,t,r,n);if(!u)return[];var c=i[u.index],f=c.hi||o.hoverinfo||"";if(f==="none"||f==="skip")return[];for(var h=["high","open","close","low"],d={},v=0;v"+s.labels[m]+H$.hoverLabelText(a,b,o.yhoverformat)):(k=k$t.extendFlat({},u),k.y0=k.y1=p,k.yLabelVal=b,k.yLabel=s.labels[m]+H$.hoverLabelText(a,b,o.yhoverformat),k.name="",l.push(k),d[b]=k)}return l}function yJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=gJe(e,t,r,n);if(!l)return[];var u=l.index,c=i[u],f=l.index=c.i,h=c.dir;function d(T){return s.labels[T]+H$.hoverLabelText(a,o[T][f],o.yhoverformat)}var v=c.hi||o.hoverinfo||"",m=v.split("+"),b=v==="all",p=b||m.indexOf("y")!==-1,k=b||m.indexOf("text")!==-1,M=p?[d("open"),d("high"),d("low"),d("close")+" "+P$t[h]]:[];return k&&L$t(c,o,M),l.extraText=M.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}_Je.exports={hoverPoints:I$t,hoverSplit:mJe,hoverOnPoints:yJe}});var W$=ye((jwr,xJe)=>{"use strict";xJe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";bJe.exports={moduleType:"trace",name:"ohlc",basePlotModule:mh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:u9(),supplyDefaults:sJe(),calc:V$().calc,plot:hJe(),style:vJe(),hoverPoints:j$().hoverPoints,selectPoints:W$()}});var AJe=ye((Xwr,TJe)=>{"use strict";TJe.exports=wJe()});var Z$=ye((Zwr,EJe)=>{"use strict";var X$=Pr().extendFlat,SJe=vf().axisHoverFormat,vp=u9(),Y5=C4();function MJe(e){return{line:{color:X$({},Y5.line.color,{dflt:e}),width:Y5.line.width,editType:"style"},fillcolor:Y5.fillcolor,editType:"style"}}EJe.exports={xperiod:vp.xperiod,xperiod0:vp.xperiod0,xperiodalignment:vp.xperiodalignment,xhoverformat:SJe("x"),yhoverformat:SJe("y"),x:vp.x,open:vp.open,high:vp.high,low:vp.low,close:vp.close,line:{width:X$({},Y5.line.width,{}),editType:"style"},increasing:MJe(vp.increasing.line.color.dflt),decreasing:MJe(vp.decreasing.line.color.dflt),text:vp.text,hovertext:vp.hovertext,hovertemplate:vp.hovertemplate,hovertemplatefallback:vp.hovertemplatefallback,whiskerwidth:X$({},Y5.whiskerwidth,{dflt:0}),hoverlabel:vp.hoverlabel,zorder:Y5.zorder}});var LJe=ye((Ywr,CJe)=>{"use strict";var R$t=Pr(),D$t=ka(),F$t=U$(),z$t=Dg(),q$t=Z$();CJe.exports=function(t,r,n,i){function a(s,l){return R$t.coerce(t,r,q$t,s,l)}var o=F$t(t,r,a,i);if(!o){r.visible=!1;return}z$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),kJe(t,r,a,"increasing"),kJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function kJe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",D$t.addOpacity(i,.5))}});var DJe=ye((Kwr,RJe)=>{"use strict";var PJe=Pr(),IJe=ho(),O$t=zg(),B$t=V$().calcCommon;RJe.exports=function(e,t){var r=e._fullLayout,n=IJe.getFromId(e,t.xaxis),i=IJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=O$t(t,n,"x",a).vals,s=B$t(e,t,a,o,i,N$t);return s.length?(PJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:PJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function N$t(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var zJe=ye((Jwr,FJe)=>{"use strict";FJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:mh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:Z$(),layoutAttributes:L4(),supplyLayoutDefaults:QI().supplyLayoutDefaults,crossTraceCalc:t8().crossTraceCalc,supplyDefaults:LJe(),calc:DJe(),plot:r8().plot,layerName:"boxlayer",style:i8().style,hoverPoints:j$().hoverPoints,selectPoints:W$()}});var OJe=ye(($wr,qJe)=>{"use strict";qJe.exports=zJe()});var K$=ye((Qwr,BJe)=>{"use strict";var v9=Pr(),U$t=xm(),d9=v9.deg2rad,Y$=v9.rad2deg;BJe.exports=function(t,r,n){switch(U$t(t,n),t._id){case"x":case"radialaxis":V$t(t,r);break;case"angularaxis":j$t(t,r);break}};function V$t(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,l=n>i?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-n;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+n-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function G$t(e,t){return t==="degrees"?d9(e):e}function H$t(e,t){return t==="degrees"?Y$(e):e}function j$t(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return G$t(n(a),o)},e.c2d=function(a,o){return i(H$t(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(b){return e.d2c(b,a.thetaunit)};if(s)for(u=new Array(l),c=0;c{"use strict";NJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var m9=ye((t3r,jJe)=>{"use strict";var Mw=Pr(),UJe=zM().tester,J$=Mw.findIndexOfMin,GJe=Mw.isAngleInsideSector,W$t=Mw.angleDelta,VJe=Mw.angleDist;function X$t(e,t,r,n,i){if(!GJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=J$(t,r),i=Mw.mod(n+1,t.length);return[t[n],t[i]]}function g9(e){return Math.abs(e)>1e-10?e:0}function $$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function WJe(e){return e<0?-1:e>0?1:0}function J5(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function $5(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function XJe(e,t){return t*e.radius}function tQt(e,t,r,n){var i=$5(e,J5([r,t])),a=i[0],o=i[1],s=$5(e,J5([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=XJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function rQt(e,t,r,n){var i=XJe(e,1/(t+1)),a=$5(e,J5([t,r])),o=a[0],s=a[1],l=$5(e,J5([t,n])),u=l[0],c=l[1];if(WJe(r)!==WJe(n)){var f=$5(e,J5([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var Ew=qa(),iQt=fd(),Cw=Oa(),Xc=Pr(),cy=Xc.strRotate,xd=Xc.strTranslate,eQ=ka(),_C=So(),nQt=Mc(),pp=ho(),aQt=xm(),oQt=K$(),sQt=Mg().doAutoRange,S1=XN(),x9=yv(),YJe=ef(),lQt=qb(),uQt=qf().prepSelect,cQt=qf().selectOnClick,tQ=qf().clearOutline,KJe=Eg(),JJe=wM(),$Je=LM().redrawReglTraces,fQt=Dh().MID_SHIFT,Nx=p9(),M1=m9(),b9=Q$(),y9=b9.smith,hQt=b9.reactanceArc,dQt=b9.resistanceArc,_9=b9.smithTransform,vQt=Xc._,QJe=Xc.mod,Ux=Xc.deg2rad,kw=Xc.rad2deg;function e$e(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Nd=e$e.prototype;i$e.exports=function(t,r,n){return new e$e(t,r,n)};Nd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(p=u,k=u*b,L=(c-k)/i.h/2,M=[s[0],s[1]],T=[l[0]+L,l[1]-L]):(p=c/b,k=c,L=(u-p)/i.w/2,M=[s[0]+L,s[1]-L],T=[l[0],l[1]]),r.xLength2=p,r.yLength2=k,r.xDomain2=M,r.yDomain2=T;var x=r.xOffset2=i.l+i.w*M[0],C=r.yOffset2=i.t+i.h*(1-T[1]),S=r.radius=p/d,g=r.innerRadius=r.getHole(t)*S,P=r.cx=x-S*h[0],E=r.cy=C+S*h[3],z=r.cxx=P-x,q=r.cyy=E-C,V=a.side,G;V==="counterclockwise"?(G=V,V="top"):V==="clockwise"&&(G=V,V="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:V,_trueSide:G,domain:[g/i.w,S/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:M}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:T});var Z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",Z).attr("transform",xd(z,q)),n.frontplot.attr("transform",xd(x,C)).call(_C.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",Z).attr("transform",xd(P,E)).call(eQ.fill,t.bgcolor)};Nd.mockAxis=function(e,t,r,n){var i=Xc.extendFlat({},r,n);return oQt(i,t,e),i};Nd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Xc.extendFlat({type:"linear"},r);aQt(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=n.sectorBBox,u=s[a],c=n.radialAxis._rl,f=(c[1]-c[0])/(1-n.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!i?function(l){return n.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Nd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);sQt(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var l=i.r2l(i.maxallowed);i._rl[0]90&&c<=270&&(f.tickangle=180);var v=d?function(S){var g=_9(r,y9([S.x,0]));return xd(g[0]-s,g[1]-l)}:function(S){return xd(f.l2p(S.x)+o,0)},m=d?function(S){return dQt(r,S.x,-1/0,1/0)}:function(S){return r.pathArc(f.r2p(S.x)+o)},b=t$e(u);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){f.setScale();var p=0,k=d?(f.tickvals||[]).filter(function(S){return S>=0}).map(function(S){return pp.tickText(f,S,!0,!1)}):pp.calcTicks(f),M=d?k:pp.clipEnds(f,k),T=pp.getTickSigns(f)[2];d&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(T=-T),f.ticks==="top"&&f.side==="top"&&(p=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(p=f.ticklen)),pp.drawTicks(n,f,{vals:k,layer:i["radial-axis"],path:pp.makeTickPath(f,0,T),transFn:v,crisp:!1}),pp.drawGrid(n,f,{vals:M,layer:i["radial-grid"],path:m,transFn:Xc.noop,crisp:!1}),pp.drawLabels(n,f,{vals:k,layer:i["radial-axis"],transFn:v,labelFns:pp.makeLabelFns(f,p)})}var L=r.radialAxisAngle=r.vangles?kw(r$e(Ux(u.angle),r.vangles)):u.angle,x=xd(s,l),C=x+cy(-L);xC(i["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:C}),xC(i["radial-grid"],h&&u.showgrid,{transform:d?"":x}),xC(i["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:C}).attr("stroke-width",u.linewidth).call(eQ.stroke,u.linecolor)};Nd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(t),u=n.id+"title",c=0;if(l.title){var f=_C.bBox(n.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;c=d==="top"?h:d==="counterclockwise"?-(f+h*.4):f+h*.8}var v=r!==void 0?r:n.radialAxisAngle,m=Ux(v),b=Math.cos(m),p=Math.sin(m),k=o+a/2*b+c*p,M=s-a/2*p+c*b;n.layers["radial-axis-title"]=lQt.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title.text",placeholder:vQt(i,"Click to enter radial axis title"),attributes:{x:k,y:M,"text-anchor":"middle"},transform:{rotate:-v}})}};Nd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),c=r.angularAxis,f=r.isSmith;f||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),c.setGeometry(),c.setScale());var h=f?function(g){var P=_9(r,y9([0,g.x]));return Math.atan2(P[0]-s,P[1]-l)-Math.PI/2}:function(g){return c.t2g(g.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=kw(c.tick0),c.dtick=kw(c.dtick));var d=function(g){return xd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=_9(r,y9([0,g.x]));return xd(P[0],P[1])}:function(g){return d(h(g))},m=f?function(g){var P=_9(r,y9([0,g.x])),E=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return xd(P[0],P[1])+cy(-kw(E))}:function(g){var P=h(g);return d(P)+cy(-kw(P))},b=f?function(g){return hQt(r,g.x,0,1/0)}:function(g){var P=h(g),E=Math.cos(P),z=Math.sin(P);return"M"+[s+o*E,l-o*z]+"L"+[s+a*E,l-a*z]},p=pp.makeLabelFns(c,0),k=p.labelStandoff,M={};M.xFn=function(g){var P=h(g);return Math.cos(P)*k},M.yFn=function(g){var P=h(g),E=Math.sin(P)>0?.2:1;return-Math.sin(P)*(k+g.fontSize*E)+Math.abs(Math.cos(P))*(g.fontSize*fQt)},M.anchorFn=function(g){var P=h(g),E=Math.cos(P);return Math.abs(E)<.1?"middle":E>0?"start":"end"},M.heightFn=function(g,P,E){var z=h(g);return-.5*(1+Math.sin(z))*E};var T=t$e(u);r.angularTickLayout!==T&&(i["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=T);var L=f?[1/0].concat(c.tickvals||[]).map(function(g){return pp.tickText(c,g,!0,!1)}):pp.calcTicks(c);f&&(L[0].text="\u221E",L[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=L.map(h),Xc.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,c.type==="category"&&(L=L.filter(function(g){return Xc.isAngleInsideSector(h(g),r.sectorInRad)})),c.visible){var C=c.ticks==="inside"?-1:1,S=(c.linewidth||1)/2;pp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+C*S+",0h"+C*c.ticklen,transFn:m,crisp:!1}),pp.drawGrid(n,c,{vals:L,layer:i["angular-grid"],path:b,transFn:Xc.noop,crisp:!1}),pp.drawLabels(n,c,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:v,labelFns:M})}xC(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:xd(s,l)}).attr("stroke-width",u.linewidth).call(eQ.stroke,u.linecolor)};Nd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Nd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Nx.MINZOOM,s=Nx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,m=t.vangles,b=t.radialAxis,p=M1.clampTiny,k=M1.findXYatLength,M=M1.findEnclosingVertexAngles,T=Nx.cornerHalfWidth,L=Nx.cornerLen/2,x,C,S=S1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");Ew.select(S).attr("d",t.pathSubplot()).attr("transform",xd(c,f)),S.onmousemove=function(ce){YJe.hover(n,ce,t.id),n._fullLayout._lasthover=S,n._fullLayout._hoversubplot=t.id},S.onmouseout=function(ce){n._dragging||x9.unhover(n,ce)};var g={element:S,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,E,z,q,V,G,Z,j,N;function H(ce,He){return Math.sqrt(ce*ce+He*He)}function ie(ce,He){return H(ce-h,He-d)}function ae(ce,He){return Math.atan2(d-He,ce-h)}function _e(ce,He){return[ce*Math.cos(He),ce*Math.sin(-He)]}function Ee(ce,He){if(ce===0)return t.pathSector(2*T);var lt=L/ce,mt=He-lt,Ht=He+lt,at=Math.max(0,Math.min(ce,l)),ct=at-T,ar=at+T;return"M"+_e(ct,mt)+"A"+[ct,ct]+" 0,0,0 "+_e(ct,Ht)+"L"+_e(ar,Ht)+"A"+[ar,ar]+" 0,0,1 "+_e(ar,mt)+"Z"}function Ce(ce,He,lt){if(ce===0)return t.pathSector(2*T);var mt=_e(ce,He),Ht=_e(ce,lt),at=p((mt[0]+Ht[0])/2),ct=p((mt[1]+Ht[1])/2),ar,Vt;if(at&&ct){var rr=ct/at,tt=-1/rr,je=k(T,rr,at,ct);ar=k(L,tt,je[0][0],je[0][1]),Vt=k(L,tt,je[1][0],je[1][1])}else{var Ue,Ae;ct?(Ue=L,Ae=T):(Ue=T,Ae=L),ar=[[at-Ue,ct-Ae],[at+Ue,ct-Ae]],Vt=[[at-Ue,ct+Ae],[at+Ue,ct+Ae]]}return"M"+ar.join("L")+"L"+Vt.reverse().join("L")+"Z"}function ge(){z=null,q=null,V=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];Z=iQt(ce.bgcolor).getLuminance(),j=S1.makeZoombox(a,Z,c,f,V),j.attr("fill-rule","evenodd"),N=S1.makeCorners(a,c,f),tQ(n)}function re(ce,He){return He=Math.max(Math.min(He,l),u),ceo?(ce-1&&ce===1&&cQt(He,n,[t.xaxis],[t.yaxis],t.id,g),lt.indexOf("event")>-1&&YJe.click(n,He,t.id)}g.prepFn=function(ce,He,lt){var mt=n._fullLayout.dragmode,Ht=S.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var at=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,C=n._fullLayout._invScaleY;var ct=Xc.apply3DTransform(at)(He-Ht.left,lt-Ht.top);if(P=ct[0],E=ct[1],m){var ar=M1.findPolygonOffset(l,v[0],v[1],m);P+=h+ar[0],E+=d+ar[1]}switch(mt){case"zoom":g.clickFn=Pe,r||(m?g.moveFn=Be:g.moveFn=ke,g.doneFn=Le,ge(ce,He,lt));break;case"select":case"lasso":uQt(ce,He,lt,g,mt);break}},x9.init(g)};Nd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,l=n.cx,u=n.cy,c=n.radialAxis,f=Nx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Ux(n.radialAxisAngle),v=c._rl,m=v[0],b=v[1],p=v[r],k=.75*(v[1]-v[0])/(1-n.getHole(t))/o,M,T,L;r?(M=l+(o+h)*Math.cos(d),T=u-(o+h)*Math.sin(d),L="radialdrag"):(M=l+(s-h)*Math.cos(d),T=u-(s-h)*Math.sin(d),L="radialdrag-inner");var x=S1.makeRectDragger(a,L,"crosshair",-h,-h,f,f),C={element:x,gd:i};e.dragmode===!1&&(C.dragmode=!1),xC(Ew.select(x),c.visible&&s0!=(r?P>m:P=90||i>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),i<=180&&a>=180||i>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),i<=270&&a>=270||i>270&&a>=630?f=-1:s>=0&&u>=0?f=0:f=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[c,f,h,d]}function r$e(e,t){var r=function(i){return Xc.angleDist(e,i)},n=Xc.findIndexOfMin(t,r);return t[n]}function xC(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var iQ=ye((n3r,u$e)=>{"use strict";var gQt=Ih(),os=Rd(),mQt=Cc().attributes,f0=Pr().extendFlat,n$e=mc().overrideAll,a$e=n$e({color:os.color,showline:f0({},os.showline,{dflt:!0}),linecolor:os.linecolor,linewidth:os.linewidth,showgrid:f0({},os.showgrid,{dflt:!0}),gridcolor:os.gridcolor,gridwidth:os.gridwidth,griddash:os.griddash},"plot","from-root"),o$e=n$e({tickmode:os.minor.tickmode,nticks:os.nticks,tick0:os.tick0,dtick:os.dtick,tickvals:os.tickvals,ticktext:os.ticktext,ticks:os.ticks,ticklen:os.ticklen,tickwidth:os.tickwidth,tickcolor:os.tickcolor,ticklabelstep:os.ticklabelstep,showticklabels:os.showticklabels,labelalias:os.labelalias,minorloglabels:os.minorloglabels,showtickprefix:os.showtickprefix,tickprefix:os.tickprefix,showticksuffix:os.showticksuffix,ticksuffix:os.ticksuffix,showexponent:os.showexponent,exponentformat:os.exponentformat,minexponent:os.minexponent,separatethousands:os.separatethousands,tickfont:os.tickfont,tickangle:os.tickangle,tickformat:os.tickformat,tickformatstops:os.tickformatstops,layer:os.layer},"plot","from-root"),s$e={visible:f0({},os.visible,{dflt:!0}),type:f0({},os.type,{values:["-","linear","log","date","category"]}),autotypenumbers:os.autotypenumbers,autorangeoptions:{minallowed:os.autorangeoptions.minallowed,maxallowed:os.autorangeoptions.maxallowed,clipmin:os.autorangeoptions.clipmin,clipmax:os.autorangeoptions.clipmax,include:os.autorangeoptions.include,editType:"plot"},autorange:f0({},os.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:f0({},os.minallowed,{editType:"plot"}),maxallowed:f0({},os.maxallowed,{editType:"plot"}),range:f0({},os.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:os.categoryorder,categoryarray:os.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:os.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:f0({},os.title.text,{editType:"plot",dflt:""}),font:f0({},os.title.font,{editType:"plot"}),editType:"plot"},hoverformat:os.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(s$e,a$e,o$e);var l$e={visible:f0({},os.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:os.autotypenumbers,categoryorder:os.categoryorder,categoryarray:os.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:os.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(l$e,a$e,o$e);u$e.exports={domain:mQt({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:gQt.background},radialaxis:s$e,angularaxis:l$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var d$e=ye((a3r,h$e)=>{"use strict";var w9=Pr(),yQt=ka(),_Qt=vl(),xQt=q_(),bQt=Id().getSubplotData,wQt=Pb(),TQt=q3(),AQt=s_(),SQt=l_(),MQt=fI(),EQt=c4(),kQt=SB(),CQt=H3(),f$e=iQ(),LQt=K$(),T9=p9(),c$e=T9.axisNames;function PQt(e,t,r,n){var i=r("bgcolor");n.bgColor=yQt.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=bQt(n.fullData,T9.name,n.id),s=n.layoutOut,l;function u(j,N){return r(l+"."+j,N)}for(var c=0;c{"use strict";var RQt=Id().getSubplotCalcData,DQt=Pr().counterRegex,FQt=rQ(),p$e=p9(),g$e=p$e.attr,Lw=p$e.name,v$e=DQt(Lw),m$e={};m$e[g$e]={valType:"subplotid",dflt:Lw,editType:"calc"};function zQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Lw],i=0;i{"use strict";var{hovertemplateAttrs:OQt,texttemplateAttrs:BQt,templatefallbackAttrs:_$e}=Ll(),S9=Ao().extendFlat,NQt=Pg(),h0=pf(),UQt=Gl(),Q5=h0.line;x$e.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:BQt({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:_$e({editType:"plot"}),hovertext:h0.hovertext,line:{color:Q5.color,width:Q5.width,dash:Q5.dash,backoff:Q5.backoff,shape:S9({},Q5.shape,{values:["linear","spline"]}),smoothing:Q5.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:S9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:S9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:NQt(),hoverinfo:S9({},UQt.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:OQt(),hovertemplatefallback:_$e(),selected:h0.selected,unselected:h0.unselected}});var E9=ye((l3r,T$e)=>{"use strict";var M9=Pr(),eS=Ru(),VQt=$p(),GQt=D0(),b$e=uT(),HQt=F0(),jQt=Fg(),WQt=Pm().PTS_LINESONLY,XQt=bC();function ZQt(e,t,r,n){function i(s,l){return M9.coerce(e,t,XQt,s,l)}var a=w$e(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var YQt=Pr(),A$e=ho();S$e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);i.rLabel=A$e.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?YQt.rad2deg(t.theta):t.theta;return i.thetaLabel=A$e.tickText(s,u,!0).text,i}});var k$e=ye((c3r,E$e)=>{"use strict";var M$e=Eo(),KQt=fs().BADNUM,JQt=ho(),$Qt=z0(),QQt=Dm(),eer=q0(),ter=O0().calcMarkerSize;E$e.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var rer=pT(),C$e=fs().BADNUM;L$e.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,c=0;c{"use strict";var ier=_T();function ner(e,t,r,n){var i=ier(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,I$e(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function I$e(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(i,n.rLabel),f.indexOf("theta")!==-1&&c(a,n.thetaLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}R$e.exports={hoverPoints:ner,makeHoverPointText:I$e}});var F$e=ye((d3r,D$e)=>{"use strict";D$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:A9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:bC(),supplyDefaults:E9().supplyDefaults,colorbar:Qd(),formatLabels:k9(),calc:k$e(),plot:P$e(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:C9().hoverPoints,selectPoints:xT(),meta:{}}});var q$e=ye((v3r,z$e)=>{"use strict";z$e.exports=F$e()});var nQ=ye((m3r,B$e)=>{"use strict";var O$e=bC(),{cliponaxis:p3r,hoveron:g3r}=O$e,aer=mee(O$e,["cliponaxis","hoveron"]),{connectgaps:oer,line:{color:ser,dash:ler,width:uer},fill:cer,fillcolor:fer,marker:her,textfont:der,textposition:ver}=mk();B$e.exports=j1(_g({},aer),{connectgaps:oer,fill:cer,fillcolor:fer,line:{color:ser,dash:ler,editType:"calc",width:uer},marker:her,textfont:der,textposition:ver})});var V$e=ye((_3r,U$e)=>{"use strict";var N$e=Pr(),aQ=Ru(),per=E9().handleRThetaDefaults,ger=$p(),mer=D0(),yer=F0(),_er=Fg(),xer=Pm().PTS_LINESONLY,ber=nQ();U$e.exports=function(t,r,n,i){function a(s,l){return N$e.coerce(t,r,ber,s,l)}var o=per(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var wer=k9();G$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),wer(t,r,n)}});var W$e=ye((b3r,j$e)=>{"use strict";var Ter=z0(),Aer=O0().calcMarkerSize,Ser=lw(),Mer=ho(),Eer=gx().TOO_MANY_POINTS;j$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var ker=XF(),Cer=C9().makeHoverPointText;function Ler(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=ker.hoverPoints(e,t,r,n);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var c=e.subplot,f=u.cd[u.index],h=u.trace;if(f.r=o[u.index],f.theta=s[u.index],!!c.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,Cer(f,h,c,u),l}}X$e.exports={hoverPoints:Ler}});var K$e=ye((T3r,Y$e)=>{"use strict";Y$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:A9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:nQ(),supplyDefaults:V$e(),colorbar:Qd(),formatLabels:H$e(),calc:W$e(),hoverPoints:Z$e().hoverPoints,selectPoints:mY(),meta:{}}});var J$e=ye((A3r,oQ)=>{"use strict";var Per=KF(),Ier=Eo(),Rer=bK(),Der=vY(),L9=lw(),P9=Pr(),Fer=gx().TOO_MANY_POINTS,zer={};oQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Der(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,c=l.t,f=u._length,h=c.r,d=c.theta,v=c.opts,m,b=h.slice(),p=d.slice();for(m=0;m=Fer&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=k),v.line&&k.length>1&&P9.extendFlat(v.line,L9.linePositions(t,u,k)),v.text&&(P9.extendFlat(v.text,{positions:k},L9.textPosition(t,u,v.text,v.marker)),P9.extendFlat(v.textSel,{positions:k},L9.textPosition(t,u,v.text,v.markerSel)),P9.extendFlat(v.textUnsel,{positions:k},L9.textPosition(t,u,v.text,v.markerUnsel))),v.fill&&!o.fill2d&&(o.fill2d=!0),v.marker&&!o.scatter2d&&(o.scatter2d=!0),v.line&&!o.line2d&&(o.line2d=!0),v.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(v.line),o.fillOptions.push(v.fill),o.markerOptions.push(v.marker),o.markerSelectedOptions.push(v.markerSel),o.markerUnselectedOptions.push(v.markerUnsel),o.textOptions.push(v.text),o.textSelectedOptions.push(v.textSel),o.textUnselectedOptions.push(v.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=M,c.y=T,c.rawx=M,c.rawy=T,c.r=h,c.theta=d,c.positions=k,c._scene=o,c.index=o.count,o.count++}}),Rer(t,r,n)}};oQ.exports.reglPrecompiled=zer});var eQe=ye((S3r,Q$e)=>{"use strict";var $$e=K$e();$$e.plot=J$e();Q$e.exports=$$e});var rQe=ye((M3r,tQe)=>{"use strict";tQe.exports=eQe()});var sQ=ye((E3r,iQe)=>{"use strict";var{hovertemplateAttrs:qer,templatefallbackAttrs:Oer}=Ll(),tS=Ao().extendFlat,Vx=bC(),Gx=qm();iQe.exports={r:Vx.r,theta:Vx.theta,r0:Vx.r0,dr:Vx.dr,theta0:Vx.theta0,dtheta:Vx.dtheta,thetaunit:Vx.thetaunit,base:tS({},Gx.base,{}),offset:tS({},Gx.offset,{}),width:tS({},Gx.width,{}),text:tS({},Gx.text,{}),hovertext:tS({},Gx.hovertext,{}),marker:Ber(),hoverinfo:Vx.hoverinfo,hovertemplate:qer(),hovertemplatefallback:Oer(),selected:Gx.selected,unselected:Gx.unselected};function Ber(){var e=tS({},Gx.marker);return delete e.cornerradius,e}});var lQ=ye((k3r,nQe)=>{"use strict";nQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var sQe=ye((C3r,oQe)=>{"use strict";var aQe=Pr(),Ner=E9().handleRThetaDefaults,Uer=XI(),Ver=sQ();oQe.exports=function(t,r,n,i){function a(s,l){return aQe.coerce(t,r,Ver,s,l)}var o=Ner(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),Uer(t,r,a,n,i),aQe.coerceSelectionMarkerOpacity(r,a)}});var uQe=ye((L3r,lQe)=>{"use strict";var Ger=Pr(),Her=lQ();lQe.exports=function(e,t,r){var n={},i;function a(l,u){return Ger.coerce(e[i]||{},t[i],Her,l,u)}for(var o=0;o{"use strict";var cQe=pv().hasColorscale,fQe=gv(),jer=Pr().isArrayOrTypedArray,Wer=S4(),Xer=i2().setGroupPositions,Zer=q0(),Yer=Oa().traceIs,Ker=Pr().extendFlat;function Jer(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),c=o,f=s,h=0;h{"use strict";var dQe=qa(),I9=Eo(),rS=Pr(),Qer=So(),cQ=m9();vQe.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=etr(r),c=r.layers.frontplot.select("g.barlayer");rS.makeTraceGroups(c,n,"trace bars").each(function(){var f=dQe.select(this),h=rS.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(rS.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(v){var m=dQe.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),k=v.thetag0=l.c2g(v.p0),M=v.thetag1=l.c2g(v.p1),T;if(!I9(b)||!I9(p)||!I9(k)||!I9(M)||b===p||k===M)T="M0,0Z";else{var L=s.c2g(v.s1),x=(k+M)/2;v.ct=[a.c2p(L*Math.cos(x)),o.c2p(L*Math.sin(x))],T=u(b,p,k,M)}rS.ensureSingle(m,"path").attr("d",T)}),Qer.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function etr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;rS.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=cQ.findEnclosingVertexAngles(s,e.vangles)[0],c=cQ.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return cQ.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return rS.pathAnnulus(n,i,a,o,t,r)}}});var mQe=ye((R3r,gQe)=>{"use strict";var ttr=ef(),fQ=Pr(),rtr=RT().getTraceColor,itr=fQ.fillText,ntr=C9().makeHoverPointText,atr=m9().isPtInsidePolygon;gQe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?atr:fQ.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),v=Math.atan2(n,r);s.range[0]>s.range[1]&&(v+=Math.PI);var m=function(M){return c(d,v,[M.rp0,M.rp1],[M.thetag0,M.thetag1],u)?f+Math.min(1,Math.abs(M.thetag1-M.thetag0)/h)-1+(M.rp1-d)/(M.rp1-M.rp0)-1:1/0};if(ttr.getClosest(i,m,t),t.index!==!1){var b=t.index,p=i[b];t.x0=t.x1=p.ct[0],t.y0=t.y1=p.ct[1];var k=fQ.extendFlat({},p,{r:p.s,theta:p.p});return itr(p,a,t),ntr(k,a,o,t),t.hovertemplate=a.hovertemplate,t.color=rtr(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var _Qe=ye((D3r,yQe)=>{"use strict";yQe.exports={moduleType:"trace",name:"barpolar",basePlotModule:A9(),categories:["polar","bar","showLegend"],attributes:sQ(),layoutAttributes:lQ(),supplyDefaults:sQe(),supplyLayoutDefaults:uQe(),calc:uQ().calc,crossTraceCalc:uQ().crossTraceCalc,plot:pQe(),colorbar:Qd(),formatLabels:k9(),style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:mQe(),selectPoints:DT(),meta:{}}});var bQe=ye((F3r,xQe)=>{"use strict";xQe.exports=_Qe()});var hQ=ye((z3r,wQe)=>{"use strict";wQe.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var dQ=ye((q3r,MQe)=>{"use strict";var otr=Ih(),Uf=Rd(),str=Cc().attributes,Hx=Pr().extendFlat,TQe=mc().overrideAll,AQe=TQe({color:Uf.color,showline:Hx({},Uf.showline,{dflt:!0}),linecolor:Uf.linecolor,linewidth:Uf.linewidth,showgrid:Hx({},Uf.showgrid,{dflt:!0}),gridcolor:Uf.gridcolor,gridwidth:Uf.gridwidth,griddash:Uf.griddash},"plot","from-root"),SQe=TQe({ticklen:Uf.ticklen,tickwidth:Hx({},Uf.tickwidth,{dflt:2}),tickcolor:Uf.tickcolor,showticklabels:Uf.showticklabels,labelalias:Uf.labelalias,showtickprefix:Uf.showtickprefix,tickprefix:Uf.tickprefix,showticksuffix:Uf.showticksuffix,ticksuffix:Uf.ticksuffix,tickfont:Uf.tickfont,tickformat:Uf.tickformat,hoverformat:Uf.hoverformat,layer:Uf.layer},"plot","from-root"),ltr=Hx({visible:Hx({},Uf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Hx({},Uf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},AQe,SQe),utr=Hx({visible:Hx({},Uf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Uf.ticks,editType:"calc"},AQe,SQe);MQe.exports={domain:str({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:otr.background},realaxis:ltr,imaginaryaxis:utr,editType:"calc"}});var CQe=ye((O3r,kQe)=>{"use strict";var iS=Pr(),ctr=ka(),ftr=vl(),htr=q_(),dtr=Id().getSubplotData,vtr=l_(),ptr=s_(),gtr=c4(),mtr=xm(),nS=dQ(),vQ=hQ(),EQe=vQ.axisNames,ytr=xtr(function(e){return iS.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function _tr(e,t,r,n){var i=r("bgcolor");n.bgColor=ctr.combine(i,n.paper_bgcolor);var a=dtr(n.fullData,vQ.name,n.id),o=n.layoutOut,s;function l(L,x){return r(s+"."+L,x)}for(var u=0;u{"use strict";var btr=Id().getSubplotCalcData,wtr=Pr().counterRegex,Ttr=rQ(),PQe=hQ(),IQe=PQe.attr,Pw=PQe.name,LQe=wtr(Pw),RQe={};RQe[IQe]={valType:"subplotid",dflt:Pw,editType:"calc"};function Atr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Pw],i=0;i{"use strict";var{hovertemplateAttrs:Mtr,texttemplateAttrs:Etr,templatefallbackAttrs:zQe}=Ll(),R9=Ao().extendFlat,ktr=Pg(),d0=pf(),Ctr=Gl(),aS=d0.line;qQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:Etr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:zQe({editType:"plot"}),hovertext:d0.hovertext,line:{color:aS.color,width:aS.width,dash:aS.dash,backoff:aS.backoff,shape:R9({},aS.shape,{values:["linear","spline"]}),smoothing:aS.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:R9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:R9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:ktr(),hoverinfo:R9({},Ctr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:Mtr(),hovertemplatefallback:zQe(),selected:d0.selected,unselected:d0.unselected}});var NQe=ye((U3r,BQe)=>{"use strict";var D9=Pr(),oS=Ru(),Ltr=$p(),Ptr=D0(),OQe=uT(),Itr=F0(),Rtr=Fg(),Dtr=Pm().PTS_LINESONLY,Ftr=pQ();BQe.exports=function(t,r,n,i){function a(l,u){return D9.coerce(t,r,Ftr,l,u)}var o=ztr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var UQe=ho();VQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=UQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=UQe.tickText(a.angularAxis,t.imag,!0).text,i}});var WQe=ye((G3r,jQe)=>{"use strict";var HQe=Eo(),qtr=fs().BADNUM,Otr=z0(),Btr=Dm(),Ntr=q0(),Utr=O0().calcMarkerSize;jQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var Vtr=pT(),XQe=fs().BADNUM,Gtr=Q$(),Htr=Gtr.smith;ZQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var jtr=_T();function Wtr(e,t,r,n){var i=jtr(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,KQe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function KQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(i,n.realLabel),f.indexOf("imag")!==-1&&c(a,n.imagLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}JQe.exports={hoverPoints:Wtr,makeHoverPointText:KQe}});var eet=ye((W3r,QQe)=>{"use strict";QQe.exports={moduleType:"trace",name:"scattersmith",basePlotModule:FQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:pQ(),supplyDefaults:NQe(),colorbar:Qd(),formatLabels:GQe(),calc:WQe(),plot:YQe(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:$Qe().hoverPoints,selectPoints:xT(),meta:{}}});var ret=ye((X3r,tet)=>{"use strict";tet.exports=eet()});var kv=ye((Z3r,net)=>{var z9=Nh();function iet(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}z9(iet.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function gQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function F9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}z9(gQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Gs.local.differentCalendars||Gs.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+F9(Math.abs(this.year()),4)+"-"+F9(this.month(),2)+"-"+F9(this.day(),2)}});function mQ(){this.shortYearCutoff="+10"}z9(mQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new gQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Gs.local.invalidYear||Gs.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Gs.local.invalidYear||Gs.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+F9(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Gs.local.invalidYear||Gs.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Gs.local.invalidMonth||Gs.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Gs.local.invalidMonth||Gs.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Gs.local.invalidYear||Gs.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(c){for(;of-1+c.minMonth;)a++,o-=f,f=c.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Gs=net.exports=new iet;Gs.cdate=gQ;Gs.baseCalendar=mQ;Gs.calendars.gregorian=yQ});var aet=ye(()=>{var _Q=Nh(),Ud=kv();_Q(Ud.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ud.local=Ud.regionalOptions[""];_Q(Ud.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});_Q(Ud.baseCalendar.prototype,{UNIX_EPOCH:Ud.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ud.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Ud.local.invalidFormat||Ud.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(T,L){for(var x=1;M+x1},c=function(T,L,x,C){var S=""+L;if(u(T,C))for(;S.length1},k=function(z,q){var V=p(z,q),G=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(z)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),j=t.substring(S).match(Z);if(!j)throw(Ud.local.missingNumberAt||Ud.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=j[0].length,parseInt(j[0],10)},M=this,T=function(){if(typeof s=="function"){p("m");var z=s.call(M,t.substring(S));return S+=z.length,z}return k("m")},L=function(z,q,V,G){for(var Z=p(z,G)?V:q,j=0;j-1){h=1,d=v;for(var E=this.daysInMonth(f,h);d>E;E=this.daysInMonth(f,h))h++,d-=E}return c>-1?this.fromJD(c):this.newDate(f,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(f){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var oet=ye(()=>{var jx=kv(),Xtr=Nh(),xQ=jx.instance();function q9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q9.prototype=new jx.baseCalendar;Xtr(q9.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(Ytr);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(Ktr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(Jtr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw jx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw jx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,jx.local.invalidyear),i=Xx[n-Xx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=xQ.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Wx[e-Wx[0]],n=r>>13,i=n?12:11;if(t>i)throw jx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,jx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Qtr(e,a,r,i);return xQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=xQ.fromJD(e),r=$tr(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(Ztr),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(q9.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),f=a&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);f!==u&&s.month(f)}return s}});var Ztr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Ytr=/^\d?\d[iI]?/m,Ktr=/^闰?十?[一二三四五六七八九]?月/m,Jtr=/^闰?十?[一二三四五六七八九]?/m;jx.calendars.chinese=q9;var Wx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Xx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function $tr(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var u=Xx[i.year-Xx[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=Xx[a.year-Xx[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,m=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-m)/(24*3600*1e3));var p=Wx[a.year-Wx[0]],k;for(k=0;k<13;k++){var M=p&1<<12-k?30:29;if(v>13;return!T||k=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof n=="object"?(c=!1,a=n):(c=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=Wx[o.year-Wx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var m=0;m>9&4095,M=p>>5&15,T=p&31,L=new Date(k,M-1,T+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var set=ye(()=>{var Iw=kv(),err=Nh();function bQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bQ.prototype=new Iw.baseCalendar;err(bQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Iw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Iw.local.invalidYear||Iw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Iw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,Iw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});Iw.calendars.coptic=bQ});var uet=ye(()=>{var E1=kv(),trr=Nh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new E1.baseCalendar;trr(wQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,E1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,E1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,E1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,E1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,E1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,E1.local.invalidDate);return{century:rrr[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,E1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var rrr={20:"Fruitbat",21:"Anchovy"};E1.calendars.discworld=wQ});var cet=ye(()=>{var Rw=kv(),irr=Nh();function TQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TQ.prototype=new Rw.baseCalendar;irr(TQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Rw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rw.local.invalidYear||Rw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Rw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,Rw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});Rw.calendars.ethiopian=TQ});var fet=ye(()=>{var Zx=kv(),nrr=Nh();function AQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AQ.prototype=new Zx.baseCalendar;nrr(AQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,O9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Zx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&O9(this.daysInYear(e),10)===5?30:t===9&&O9(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Zx.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Zx.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function O9(e,t){return e-t*Math.floor(e/t)}Zx.calendars.hebrew=AQ});var het=ye(()=>{var wC=kv(),arr=Nh();function SQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SQ.prototype=new wC.baseCalendar;arr(SQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,wC.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,wC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,wC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});wC.calendars.islamic=SQ});var det=ye(()=>{var TC=kv(),orr=Nh();function MQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MQ.prototype=new TC.baseCalendar;orr(MQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,TC.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,TC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,TC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});TC.calendars.julian=MQ});var pet=ye(()=>{var fg=kv(),srr=Nh();function kQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kQ.prototype=new fg.baseCalendar;srr(kQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,fg.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fg.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fg.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,fg.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fg.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,fg.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,fg.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,fg.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,fg.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=EQ(e+8+17*20,365);return[Math.floor(t/20)+1,EQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[vet(e+20,20),vet(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,fg.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function EQ(e,t){return e-t*Math.floor(e/t)}function vet(e,t){return EQ(e-1,t)+1}fg.calendars.mayan=kQ});var met=ye(()=>{var Dw=kv(),lrr=Nh();function CQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CQ.prototype=new Dw.baseCalendar;var get=Dw.instance("gregorian");lrr(CQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Dw.local.invalidYear||Dw.regionalOptions[""].invalidYear);return get.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Dw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Dw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});Dw.calendars.nanakshahi=CQ});var yet=ye(()=>{var Fw=kv(),urr=Nh();function LQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LQ.prototype=new Fw.baseCalendar;urr(LQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Fw.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Fw.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,Fw.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=Fw.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=Fw.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var sS=kv(),crr=Nh();function N9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function B9(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}N9.prototype=new sS.baseCalendar;crr(N9.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,sS.local.invalidYear);return B9(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,sS.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,sS.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,B9(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});sS.calendars.persian=N9;sS.calendars.jalali=N9});var xet=ye(()=>{var zw=kv(),frr=Nh(),U9=zw.instance();function PQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PQ.prototype=new zw.baseCalendar;frr(PQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,zw.local.invalidYear),r=this._t2gYear(t.year());return U9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,zw.local.invalidYear),i=this._t2gYear(n.year());return U9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,zw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,zw.local.invalidDate),i=this._t2gYear(n.year());return U9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=U9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});zw.calendars.taiwan=PQ});var bet=ye(()=>{var qw=kv(),hrr=Nh(),V9=qw.instance();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new qw.baseCalendar;hrr(IQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,qw.local.invalidYear),r=this._t2gYear(t.year());return V9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,qw.local.invalidYear),i=this._t2gYear(n.year());return V9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,qw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,qw.local.invalidDate),i=this._t2gYear(n.year());return V9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=V9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});qw.calendars.thai=IQ});var wet=ye(()=>{var Ow=kv(),drr=Nh();function RQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RQ.prototype=new Ow.baseCalendar;drr(RQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ow.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Ow.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Yx[i]-Yx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Ow.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Yx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,l=t-Yx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=Ow.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Ow.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Ow.calendars.ummalqura=RQ;var Yx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Aet=ye((STr,Tet)=>{"use strict";Tet.exports=kv();aet();oet();set();uet();cet();fet();het();det();pet();met();yet();_et();xet();bet();wet()});var Iet=ye((MTr,Pet)=>{"use strict";var Eet=Aet(),AC=Pr(),ket=fs(),vrr=ket.EPOCHJD,prr=ket.ONEDAY,zQ={valType:"enumerated",values:AC.sortObjectKeys(Eet.calendars),editType:"calc",dflt:"gregorian"},Cet=function(e,t,r,n){var i={};return i[r]=zQ,AC.coerce(e,t,i,r,n)},grr=function(e,t,r,n){for(var i=0;i{"use strict";Ret.exports=Iet()});var wrr=ye((kTr,zet)=>{var Fet=fye();Fet.register([d1e(),e_e(),vxe(),Fxe(),Yxe(),jbe(),n2e(),W2e(),bwe(),i3e(),H3e(),rke(),jke(),z6e(),ALe(),tPe(),SPe(),KIe(),p8e(),R8e(),j8e(),aRe(),xRe(),zRe(),dFe(),RFe(),KBe(),KNe(),oVe(),IVe(),VGe(),iHe(),EHe(),Bje(),eWe(),AWe(),RXe(),iZe(),OZe(),oKe(),PKe(),$Ke(),AJe(),OJe(),q$e(),rQe(),bQe(),ret(),Det()]);zet.exports=Fet});return wrr();})(); +`),Xe=Ze.createShader(Ze.FRAGMENT_SHADER);if(Ze.isContextLost())return void(this.failedToCreate=!0);if(Ze.shaderSource(Xe,ze),Ze.compileShader(Xe),!Ze.getShaderParameter(Xe,Ze.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${Ze.getShaderInfoLog(Xe)}`);Ze.attachShader(this.program,Xe);let nt=Ze.createShader(Ze.VERTEX_SHADER);if(Ze.isContextLost())return void(this.failedToCreate=!0);if(Ze.shaderSource(nt,Qe),Ze.compileShader(nt),!Ze.getShaderParameter(nt,Ze.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Ze.getShaderInfoLog(nt)}`);Ze.attachShader(this.program,nt),this.attributes={};let qt={};this.numAttributes=Jt.length;for(let Wt=0;Wt({u_depth:new a.aH(Wt,nr.u_depth),u_terrain:new a.aH(Wt,nr.u_terrain),u_terrain_dim:new a.aI(Wt,nr.u_terrain_dim),u_terrain_matrix:new a.aJ(Wt,nr.u_terrain_matrix),u_terrain_unpack:new a.aK(Wt,nr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(Wt,nr.u_terrain_exaggeration)}))(w,qt),this.binderUniforms=Q?Q.getUniforms(w,qt):[]}draw(w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr,ve,xe,Ie,ze,Qe){let Xe=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(le),w.setCullFace(Fe),ut){w.activeTexture.set(Xe.TEXTURE2),Xe.bindTexture(Xe.TEXTURE_2D,ut.depthTexture),w.activeTexture.set(Xe.TEXTURE3),Xe.bindTexture(Xe.TEXTURE_2D,ut.texture);for(let qt in this.terrainUniforms)this.terrainUniforms[qt].set(ut[qt])}for(let qt in this.fixedUniforms)this.fixedUniforms[qt].set(Ze[qt]);xe&&xe.setUniforms(w,this.binderUniforms,Cr,{zoom:ve});let nt=0;switch(B){case Xe.LINES:nt=2;break;case Xe.TRIANGLES:nt=3;break;case Xe.LINE_STRIP:nt=1}for(let qt of yr.get()){let Wt=qt.vaos||(qt.vaos={});(Wt[Mt]||(Wt[Mt]=new Sr)).bind(w,this,Jt,xe?xe.getPaintVertexBuffers():[],$t,qt.vertexOffset,Ie,ze,Qe),Xe.drawElements(B,qt.primitiveLength*nt,Xe.UNSIGNED_SHORT,qt.primitiveOffset*nt*2)}}}function Sn(ue,w,B){let Q=1/Fn(B,1,w.transform.tileZoom),ee=Math.pow(2,B.tileID.overscaledZ),le=B.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Fe=le*(B.tileID.canonical.x+B.tileID.wrap*ee),Ze=le*B.tileID.canonical.y;return{u_image:0,u_texsize:B.imageAtlasTexture.size,u_scale:[Q,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[Fe>>16,Ze>>16],u_pixel_coord_lower:[65535&Fe,65535&Ze]}}let En=(ue,w,B,Q)=>{let ee=w.style.light,le=ee.properties.get("position"),Fe=[le.x,le.y,le.z],Ze=(function(){var Mt=new a.A(9);return a.A!=Float32Array&&(Mt[1]=0,Mt[2]=0,Mt[3]=0,Mt[5]=0,Mt[6]=0,Mt[7]=0),Mt[0]=1,Mt[4]=1,Mt[8]=1,Mt})();ee.properties.get("anchor")==="viewport"&&(function(Mt,Jt){var $t=Math.sin(Jt),yr=Math.cos(Jt);Mt[0]=yr,Mt[1]=$t,Mt[2]=0,Mt[3]=-$t,Mt[4]=yr,Mt[5]=0,Mt[6]=0,Mt[7]=0,Mt[8]=1})(Ze,-w.transform.angle),(function(Mt,Jt,$t){var yr=Jt[0],Cr=Jt[1],ve=Jt[2];Mt[0]=yr*$t[0]+Cr*$t[3]+ve*$t[6],Mt[1]=yr*$t[1]+Cr*$t[4]+ve*$t[7],Mt[2]=yr*$t[2]+Cr*$t[5]+ve*$t[8]})(Fe,Fe,Ze);let ut=ee.properties.get("color");return{u_matrix:ue,u_lightpos:Fe,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[ut.r,ut.g,ut.b],u_vertical_gradient:+B,u_opacity:Q}},ki=(ue,w,B,Q,ee,le,Fe)=>a.e(En(ue,w,B,Q),Sn(le,w,Fe),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Fe.tileSize/8}),_n=ue=>({u_matrix:ue}),ya=(ue,w,B,Q)=>a.e(_n(ue),Sn(B,w,Q)),ea=(ue,w)=>({u_matrix:ue,u_world:w}),Ma=(ue,w,B,Q,ee)=>a.e(ya(ue,w,B,Q),{u_world:ee}),_o=(ue,w,B,Q)=>{let ee=ue.transform,le,Fe;if(Q.paint.get("circle-pitch-alignment")==="map"){let Ze=Fn(B,1,ee.zoom);le=!0,Fe=[Ze,Ze]}else le=!1,Fe=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,B,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+le,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:Fe}},No=(ue,w,B)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:B.cameraToCenterDistance,u_viewport_size:[B.width,B.height]}),po=(ue,w,B=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:B}),Lo=ue=>({u_matrix:ue}),ko=(ue,w,B,Q)=>({u_matrix:ue,u_extrude_scale:Fn(w,1,B),u_intensity:Q}),Ds=(ue,w,B,Q)=>{let ee=a.H();a.aP(ee,0,ue.width,ue.height,0,0,1);let le=ue.context.gl;return{u_matrix:ee,u_world:[le.drawingBufferWidth,le.drawingBufferHeight],u_image:B,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Fs(ue,w){let B=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/B).toLngLat().lat,new a.Z(0,(Q+1)/B).toLngLat().lat]}let ll=(ue,w,B,Q)=>{let ee=ue.transform;return{u_matrix:As(ue,w,B,Q),u_ratio:1/Fn(w,1,ee.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},ul=(ue,w,B,Q,ee)=>a.e(ll(ue,w,B,ee),{u_image:0,u_image_height:Q}),Fl=(ue,w,B,Q,ee)=>{let le=ue.transform,Fe=rl(w,le);return{u_matrix:As(ue,w,B,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Fn(w,1,le.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[Fe,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/le.pixelsToGLUnits[0],1/le.pixelsToGLUnits[1]]}},us=(ue,w,B,Q,ee,le)=>{let Fe=ue.lineAtlas,Ze=rl(w,ue.transform),ut=B.layout.get("line-cap")==="round",Mt=Fe.getDash(Q.from,ut),Jt=Fe.getDash(Q.to,ut),$t=Mt.width*ee.fromScale,yr=Jt.width*ee.toScale;return a.e(ll(ue,w,B,le),{u_patternscale_a:[Ze/$t,-Mt.height/2],u_patternscale_b:[Ze/yr,-Jt.height/2],u_sdfgamma:Fe.width/(256*Math.min($t,yr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Mt.y,u_tex_y_b:Jt.y,u_mix:ee.t})};function rl(ue,w){return 1/Fn(ue,1,w.tileZoom)}function As(ue,w,B,Q){return ue.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,B.paint.get("line-translate"),B.paint.get("line-translate-anchor"))}let cl=(ue,w,B,Q,ee)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:B,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(Fe=ee.paint.get("raster-saturation"),Fe>0?1-1/(1.001-Fe):-Fe),u_contrast_factor:(le=ee.paint.get("raster-contrast"),le>0?1/(1-le):1+le),u_spin_weights:Ks(ee.paint.get("raster-hue-rotate"))};var le,Fe};function Ks(ue){ue*=Math.PI/180;let w=Math.sin(ue),B=Math.cos(ue);return[(2*B+1)/3,(-Math.sqrt(3)*w-B+1)/3,(Math.sqrt(3)*w-B+1)/3]}let zs=(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr)=>{let ve=Fe.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:ve.cameraToCenterDistance,u_pitch:ve.pitch/360*2*Math.PI,u_rotate_symbol:+B,u_aspect_ratio:ve.width/ve.height,u_fade_change:Fe.options.fadeDuration?Fe.symbolFadeChange:1,u_matrix:Ze,u_label_plane_matrix:ut,u_coord_matrix:Mt,u_is_text:+$t,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:le,u_texsize:yr,u_texture:0,u_translation:Jt,u_pitched_scale:Cr}},Io=(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr,ve)=>{let xe=Fe.transform;return a.e(zs(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,ve),{u_gamma_scale:Q?Math.cos(xe._pitch)*xe.cameraToCenterDistance:1,u_device_pixel_ratio:Fe.pixelRatio,u_is_halo:+Cr})},ls=(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,$t,yr,Cr)=>a.e(Io(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt,Jt,!0,$t,!0,Cr),{u_texsize_icon:yr,u_texture_icon:1}),Yl=(ue,w,B)=>({u_matrix:ue,u_opacity:w,u_color:B}),Su=(ue,w,B,Q,ee,le)=>a.e((function(Fe,Ze,ut,Mt){let Jt=ut.imageManager.getPattern(Fe.from.toString()),$t=ut.imageManager.getPattern(Fe.to.toString()),{width:yr,height:Cr}=ut.imageManager.getPixelSize(),ve=Math.pow(2,Mt.tileID.overscaledZ),xe=Mt.tileSize*Math.pow(2,ut.transform.tileZoom)/ve,Ie=xe*(Mt.tileID.canonical.x+Mt.tileID.wrap*ve),ze=xe*Mt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Jt.tl,u_pattern_br_a:Jt.br,u_pattern_tl_b:$t.tl,u_pattern_br_b:$t.br,u_texsize:[yr,Cr],u_mix:Ze.t,u_pattern_size_a:Jt.displaySize,u_pattern_size_b:$t.displaySize,u_scale_a:Ze.fromScale,u_scale_b:Ze.toScale,u_tile_units_to_pixels:1/Fn(Mt,1,ut.transform.tileZoom),u_pixel_coord_upper:[Ie>>16,ze>>16],u_pixel_coord_lower:[65535&Ie,65535&ze]}})(Q,le,B,ee),{u_matrix:ue,u_opacity:w}),nc={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class bs{constructor(w,B,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let B=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),B.bufferSubData(B.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Rn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class _a{constructor(w,B,Q,ee){this.length=B.length,this.attributes=Q,this.itemSize=B.bytesPerElement,this.dynamicDraw=ee,this.context=w;let le=w.gl;this.buffer=le.createBuffer(),w.bindVertexBuffer.set(this.buffer),le.bufferData(le.ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?le.DYNAMIC_DRAW:le.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let B=this.context.gl;this.bind(),B.bufferSubData(B.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,B){for(let Q=0;Q0){let Wt=a.H();a.aQ(Wt,Xe.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(Wt,Wt,Xe.placementViewportMatrix),ut.push({circleArray:qt,circleOffset:Jt,transform:Qe.posMatrix,invTransform:Wt,coord:Qe}),Mt+=qt.length/4,Jt=Mt}nt&&Ze.draw(le,Fe.LINES,Po.disabled,Ko.disabled,ue.colorModeForRenderPass(),Pa.disabled,{u_matrix:Qe.posMatrix,u_pixel_extrude_scale:[1/($t=ue.transform).width,1/$t.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(Qe),B.id,nt.layoutVertexBuffer,nt.indexBuffer,nt.segments,null,ue.transform.zoom,null,null,nt.collisionVertexBuffer)}var $t;if(!ee||!ut.length)return;let yr=ue.useProgram("collisionCircle"),Cr=new a.aR;Cr.resize(4*Mt),Cr._trim();let ve=0;for(let ze of ut)for(let Qe=0;Qe=0&&(ze[Xe.associatedIconIndex]={shiftedAnchor:Kn,angle:Aa})}else Pi(Xe.numGlyphs,xe)}if(Mt){Ie.clear();let Qe=ue.icon.placedSymbolArray;for(let Xe=0;Xeue.style.map.terrain.getElevation(Hr,ot,Xt):null,Pt=B.layout.get("text-rotation-alignment")==="map";We(Ci,Hr.posMatrix,ue,ee,Nl,au,ze,Mt,Pt,xe,Hr.toUnwrapped(),ve.width,ve.height,Js,Ye)}let Al=Hr.posMatrix,Sl=ee&&fr||dc,X=Qe||Sl?wl:Nl,se=Lu,Te=Ln&&B.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,qe;qe=Ln?Ci.iconsInText?ls(Kn.kind,$a,Xe,ze,Qe,Sl,ue,Al,X,se,Js,Qa,Ts,Fr):Io(Kn.kind,$a,Xe,ze,Qe,Sl,ue,Al,X,se,Js,ee,Qa,!0,Fr):zs(Kn.kind,$a,Xe,ze,Qe,Sl,ue,Al,X,se,Js,ee,Qa,Fr);let Ve={program:fa,buffers:cn,uniformValues:qe,atlasTexture:mo,atlasTextureIcon:wo,atlasInterpolation:Bo,atlasInterpolationIcon:Ps,isSDF:Ln,hasHalo:Te};if(qt&&Ci.canOverlap){Wt=!0;let Ye=cn.segments.get();for(let Pt of Ye)br.push({segments:new a.a0([Pt]),sortKey:Pt.sortKey,state:Ve,terrainData:Co})}else br.push({segments:cn.segments,sortKey:0,state:Ve,terrainData:Co})}Wt&&br.sort(((Hr,ri)=>Hr.sortKey-ri.sortKey));for(let Hr of br){let ri=Hr.state;if(yr.activeTexture.set(Cr.TEXTURE0),ri.atlasTexture.bind(ri.atlasInterpolation,Cr.CLAMP_TO_EDGE),ri.atlasTextureIcon&&(yr.activeTexture.set(Cr.TEXTURE1),ri.atlasTextureIcon&&ri.atlasTextureIcon.bind(ri.atlasInterpolationIcon,Cr.CLAMP_TO_EDGE)),ri.isSDF){let Ci=ri.uniformValues;ri.hasHalo&&(Ci.u_is_halo=1,Qf(ri.buffers,Hr.segments,B,ue,ri.program,nr,Jt,$t,Ci,Hr.terrainData)),Ci.u_is_halo=0}Qf(ri.buffers,Hr.segments,B,ue,ri.program,nr,Jt,$t,ri.uniformValues,Hr.terrainData)}}function Qf(ue,w,B,Q,ee,le,Fe,Ze,ut,Mt){let Jt=Q.context;ee.draw(Jt,Jt.gl.TRIANGLES,le,Fe,Ze,Pa.disabled,ut,Mt,B.id,ue.layoutVertexBuffer,ue.indexBuffer,w,B.paint,Q.transform.zoom,ue.programConfigurations.get(B.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function _f(ue,w,B,Q){let ee=ue.context,le=ee.gl,Fe=Ko.disabled,Ze=new Os([le.ONE,le.ONE],a.aM.transparent,[!0,!0,!0,!0]),ut=w.getBucket(B);if(!ut)return;let Mt=Q.key,Jt=B.heatmapFbos.get(Mt);Jt||(Jt=eh(ee,w.tileSize,w.tileSize),B.heatmapFbos.set(Mt,Jt)),ee.bindFramebuffer.set(Jt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let $t=ut.programConfigurations.get(B.id),yr=ue.useProgram("heatmap",$t),Cr=ue.style.map.terrain.getTerrainData(Q);yr.draw(ee,le.TRIANGLES,Po.disabled,Fe,Ze,Pa.disabled,ko(Q.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Cr,B.id,ut.layoutVertexBuffer,ut.indexBuffer,ut.segments,B.paint,ue.transform.zoom,$t)}function Yc(ue,w,B){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let le=th(Q,w),Fe=B.key,Ze=w.heatmapFbos.get(Fe);Ze&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Ze.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),le.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,Po.disabled,Ko.disabled,ue.colorModeForRenderPass(),Pa.disabled,Ds(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),Ze.destroy(),w.heatmapFbos.delete(Fe))}function eh(ue,w,B){var Q,ee;let le=ue.gl,Fe=le.createTexture();le.bindTexture(le.TEXTURE_2D,Fe),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,le.LINEAR),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,le.LINEAR);let Ze=(Q=ue.HALF_FLOAT)!==null&&Q!==void 0?Q:le.UNSIGNED_BYTE,ut=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:le.RGBA;le.texImage2D(le.TEXTURE_2D,0,ut,w,B,0,le.RGBA,Ze,null);let Mt=ue.createFramebuffer(w,B,!1,!1);return Mt.colorAttachment.set(Fe),Mt}function th(ue,w){return w.colorRampTexture||(w.colorRampTexture=new g(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function ju(ue,w,B,Q,ee){if(!B||!Q||!Q.imageAtlas)return;let le=Q.imageAtlas.patternPositions,Fe=le[B.to.toString()],Ze=le[B.from.toString()];if(!Fe&&Ze&&(Fe=Ze),!Ze&&Fe&&(Ze=Fe),!Fe||!Ze){let ut=ee.getPaintProperty(w);Fe=le[ut],Ze=le[ut]}Fe&&Ze&&ue.setConstantPatternPositions(Fe,Ze)}function jf(ue,w,B,Q,ee,le,Fe){let Ze=ue.context.gl,ut="fill-pattern",Mt=B.paint.get(ut),Jt=Mt&&Mt.constantOr(1),$t=B.getCrossfadeParameters(),yr,Cr,ve,xe,Ie;Fe?(Cr=Jt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",yr=Ze.LINES):(Cr=Jt?"fillPattern":"fill",yr=Ze.TRIANGLES);let ze=Mt.constantOr(null);for(let Qe of Q){let Xe=w.getTile(Qe);if(Jt&&!Xe.patternsLoaded())continue;let nt=Xe.getBucket(B);if(!nt)continue;let qt=nt.programConfigurations.get(B.id),Wt=ue.useProgram(Cr,qt),nr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(Qe);Jt&&(ue.context.activeTexture.set(Ze.TEXTURE0),Xe.imageAtlasTexture.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),qt.updatePaintBuffers($t)),ju(qt,ut,ze,Xe,B);let fr=nr?Qe:null,br=ue.translatePosMatrix(fr?fr.posMatrix:Qe.posMatrix,Xe,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(Fe){xe=nt.indexBuffer2,Ie=nt.segments2;let Fr=[Ze.drawingBufferWidth,Ze.drawingBufferHeight];ve=Cr==="fillOutlinePattern"&&Jt?Ma(br,ue,$t,Xe,Fr):ea(br,Fr)}else xe=nt.indexBuffer,Ie=nt.segments,ve=Jt?ya(br,ue,$t,Xe):_n(br);Wt.draw(ue.context,yr,ee,ue.stencilModeForClipping(Qe),le,Pa.disabled,ve,nr,B.id,nt.layoutVertexBuffer,xe,Ie,B.paint,ue.transform.zoom,qt)}}function cc(ue,w,B,Q,ee,le,Fe){let Ze=ue.context,ut=Ze.gl,Mt="fill-extrusion-pattern",Jt=B.paint.get(Mt),$t=Jt.constantOr(1),yr=B.getCrossfadeParameters(),Cr=B.paint.get("fill-extrusion-opacity"),ve=Jt.constantOr(null);for(let xe of Q){let Ie=w.getTile(xe),ze=Ie.getBucket(B);if(!ze)continue;let Qe=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(xe),Xe=ze.programConfigurations.get(B.id),nt=ue.useProgram($t?"fillExtrusionPattern":"fillExtrusion",Xe);$t&&(ue.context.activeTexture.set(ut.TEXTURE0),Ie.imageAtlasTexture.bind(ut.LINEAR,ut.CLAMP_TO_EDGE),Xe.updatePaintBuffers(yr)),ju(Xe,Mt,ve,Ie,B);let qt=ue.translatePosMatrix(xe.posMatrix,Ie,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),Wt=B.paint.get("fill-extrusion-vertical-gradient"),nr=$t?ki(qt,ue,Wt,Cr,xe,yr,Ie):En(qt,ue,Wt,Cr);nt.draw(Ze,Ze.gl.TRIANGLES,ee,le,Fe,Pa.backCCW,nr,Qe,B.id,ze.layoutVertexBuffer,ze.indexBuffer,ze.segments,B.paint,ue.transform.zoom,Xe,ue.style.map.terrain&&ze.centroidVertexBuffer)}}function sf(ue,w,B,Q,ee,le,Fe){let Ze=ue.context,ut=Ze.gl,Mt=B.fbo;if(!Mt)return;let Jt=ue.useProgram("hillshade"),$t=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Ze.activeTexture.set(ut.TEXTURE0),ut.bindTexture(ut.TEXTURE_2D,Mt.colorAttachment.get()),Jt.draw(Ze,ut.TRIANGLES,ee,le,Fe,Pa.disabled,((yr,Cr,ve,xe)=>{let Ie=ve.paint.get("hillshade-shadow-color"),ze=ve.paint.get("hillshade-highlight-color"),Qe=ve.paint.get("hillshade-accent-color"),Xe=ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(Xe-=yr.transform.angle);let nt=!yr.options.moving;return{u_matrix:xe?xe.posMatrix:yr.transform.calculatePosMatrix(Cr.tileID.toUnwrapped(),nt),u_image:0,u_latrange:Fs(0,Cr.tileID),u_light:[ve.paint.get("hillshade-exaggeration"),Xe],u_shadow:Ie,u_highlight:ze,u_accent:Qe}})(ue,B,Q,$t?w:null),$t,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Bl(ue,w,B,Q,ee,le){let Fe=ue.context,Ze=Fe.gl,ut=w.dem;if(ut&&ut.data){let Mt=ut.dim,Jt=ut.stride,$t=ut.getPixels();if(Fe.activeTexture.set(Ze.TEXTURE1),Fe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Jt),w.demTexture){let Cr=w.demTexture;Cr.update($t,{premultiply:!1}),Cr.bind(Ze.NEAREST,Ze.CLAMP_TO_EDGE)}else w.demTexture=new g(Fe,$t,Ze.RGBA,{premultiply:!1}),w.demTexture.bind(Ze.NEAREST,Ze.CLAMP_TO_EDGE);Fe.activeTexture.set(Ze.TEXTURE0);let yr=w.fbo;if(!yr){let Cr=new g(Fe,{width:Mt,height:Mt,data:null},Ze.RGBA);Cr.bind(Ze.LINEAR,Ze.CLAMP_TO_EDGE),yr=w.fbo=Fe.createFramebuffer(Mt,Mt,!0,!1),yr.colorAttachment.set(Cr.texture)}Fe.bindFramebuffer.set(yr.framebuffer),Fe.viewport.set([0,0,Mt,Mt]),ue.useProgram("hillshadePrepare").draw(Fe,Ze.TRIANGLES,Q,ee,le,Pa.disabled,((Cr,ve)=>{let xe=ve.stride,Ie=a.H();return a.aP(Ie,0,a.X,-a.X,0,0,1),a.J(Ie,Ie,[0,-a.X,0]),{u_matrix:Ie,u_image:1,u_dimension:[xe,xe],u_zoom:Cr.overscaledZ,u_unpack:ve.getUnpackVector()}})(w.tileID,ut),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Kc(ue,w,B,Q,ee,le){let Fe=Q.paint.get("raster-fade-duration");if(!le&&Fe>0){let Ze=u.now(),ut=(Ze-ue.timeAdded)/Fe,Mt=w?(Ze-w.timeAdded)/Fe:-1,Jt=B.getSource(),$t=ee.coveringZoomLevel({tileSize:Jt.tileSize,roundZoom:Jt.roundZoom}),yr=!w||Math.abs(w.tileID.overscaledZ-$t)>Math.abs(ue.tileID.overscaledZ-$t),Cr=yr&&ue.refreshedUponExpiration?1:a.ac(yr?ut:1-Mt,0,1);return ue.refreshedUponExpiration&&ut>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Cr}:{opacity:Cr,mix:0}}return{opacity:1,mix:0}}let Rc=new a.aM(1,0,0,1),gs=new a.aM(0,1,0,1),Wf=new a.aM(0,0,1,1),Wh=new a.aM(1,0,1,1),rh=new a.aM(0,1,1,1);function lf(ue,w,B,Q){Mu(ue,0,w+B/2,ue.transform.width,B,Q)}function Sh(ue,w,B,Q){Mu(ue,w-B/2,0,B,ue.transform.height,Q)}function Mu(ue,w,B,Q,ee,le){let Fe=ue.context,Ze=Fe.gl;Ze.enable(Ze.SCISSOR_TEST),Ze.scissor(w*ue.pixelRatio,B*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),Fe.clear({color:le}),Ze.disable(Ze.SCISSOR_TEST)}function ih(ue,w,B){let Q=ue.context,ee=Q.gl,le=B.posMatrix,Fe=ue.useProgram("debug"),Ze=Po.disabled,ut=Ko.disabled,Mt=ue.colorModeForRenderPass(),Jt="$debug",$t=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);Q.activeTexture.set(ee.TEXTURE0);let yr=w.getTileByID(B.key).latestRawTileData,Cr=Math.floor((yr&&yr.byteLength||0)/1024),ve=w.getTile(B).tileSize,xe=512/Math.min(ve,512)*(B.overscaledZ/ue.transform.zoom)*.5,Ie=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Ie+=` => ${B.overscaledZ}`),(function(ze,Qe){ze.initDebugOverlayCanvas();let Xe=ze.debugOverlayCanvas,nt=ze.context.gl,qt=ze.debugOverlayCanvas.getContext("2d");qt.clearRect(0,0,Xe.width,Xe.height),qt.shadowColor="white",qt.shadowBlur=2,qt.lineWidth=1.5,qt.strokeStyle="white",qt.textBaseline="top",qt.font="bold 36px Open Sans, sans-serif",qt.fillText(Qe,5,5),qt.strokeText(Qe,5,5),ze.debugOverlayTexture.update(Xe),ze.debugOverlayTexture.bind(nt.LINEAR,nt.CLAMP_TO_EDGE)})(ue,`${Ie} ${Cr}kB`),Fe.draw(Q,ee.TRIANGLES,Ze,ut,Os.alphaBlended,Pa.disabled,po(le,a.aM.transparent,xe),null,Jt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),Fe.draw(Q,ee.LINE_STRIP,Ze,ut,Mt,Pa.disabled,po(le,a.aM.red),$t,Jt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function js(ue,w,B){let Q=ue.context,ee=Q.gl,le=ue.colorModeForRenderPass(),Fe=new Po(ee.LEQUAL,Po.ReadWrite,ue.depthRangeFor3D),Ze=ue.useProgram("terrain"),ut=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Mt of B){let Jt=ue.renderToTexture.getTexture(Mt),$t=w.getTerrainData(Mt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Jt.texture);let yr=ue.transform.calculatePosMatrix(Mt.tileID.toUnwrapped()),Cr=w.getMeshFrameDelta(ue.transform.zoom),ve=ue.transform.calculateFogMatrix(Mt.tileID.toUnwrapped()),xe=Jr(yr,Cr,ve,ue.style.sky,ue.transform.pitch);Ze.draw(Q,ee.TRIANGLES,Fe,Ko.disabled,le,Pa.backCCW,xe,$t,"terrain",ut.vertexBuffer,ut.indexBuffer,ut.segments)}}class Eu{constructor(w,B,Q){this.vertexBuffer=w,this.indexBuffer=B,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Dc{constructor(w,B){this.context=new od(w),this.transform=B,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=pt.maxUnderzooming+pt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Xo}resize(w,B,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(B*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,B=new a.aX;B.emplaceBack(0,0),B.emplaceBack(a.X,0),B.emplaceBack(0,a.X),B.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(B,vo.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,vo.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,ct.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let le=new a.aX;le.emplaceBack(0,0),le.emplaceBack(1,0),le.emplaceBack(0,1),le.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(le,vo.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let Fe=new a.aZ;Fe.emplaceBack(0),Fe.emplaceBack(1),Fe.emplaceBack(3),Fe.emplaceBack(2),Fe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Fe);let Ze=new a.aY;Ze.emplaceBack(0,1,2),Ze.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Ze);let ut=this.context.gl;this.stencilClearMode=new Ko({func:ut.ALWAYS,mask:0},0,255,ut.ZERO,ut.ZERO,ut.ZERO)}clearStencil(){let w=this.context,B=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[B.drawingBufferWidth,B.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,B.TRIANGLES,Po.disabled,this.stencilClearMode,Os.disabled,Pa.disabled,Lo(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,B){if(this.currentStencilSource===w.source||!w.isTileClipped()||!B||!B.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+B.length>256&&this.clearStencil(),Q.setColorMode(Os.disabled),Q.setDepthMode(Po.disabled);let le=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Fe of B){let Ze=this._tileClippingMaskIDs[Fe.key]=this.nextStencilID++,ut=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Fe);le.draw(Q,ee.TRIANGLES,Po.disabled,new Ko({func:ee.ALWAYS,mask:0},Ze,255,ee.KEEP,ee.KEEP,ee.REPLACE),Os.disabled,Pa.disabled,Lo(Fe.posMatrix),ut,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,B=this.context.gl;return new Ko({func:B.NOTEQUAL,mask:255},w,255,B.KEEP,B.KEEP,B.REPLACE)}stencilModeForClipping(w){let B=this.context.gl;return new Ko({func:B.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,B.KEEP,B.KEEP,B.REPLACE)}stencilConfigForOverlap(w){let B=this.context.gl,Q=w.sort(((Fe,Ze)=>Ze.overscaledZ-Fe.overscaledZ)),ee=Q[Q.length-1].overscaledZ,le=Q[0].overscaledZ-ee+1;if(le>1){this.currentStencilSource=void 0,this.nextStencilID+le>256&&this.clearStencil();let Fe={};for(let Ze=0;Ze({u_sky_color:ze.properties.get("sky-color"),u_horizon_color:ze.properties.get("horizon-color"),u_horizon:(Qe.height/2+Qe.getHorizon())*Xe,u_sky_horizon_blend:ze.properties.get("sky-horizon-blend")*Qe.height/2*Xe}))(Mt,ut.style.map.transform,ut.pixelRatio),Cr=new Po($t.LEQUAL,Po.ReadWrite,[0,1]),ve=Ko.disabled,xe=ut.colorModeForRenderPass(),Ie=ut.useProgram("sky");if(!Mt.mesh){let ze=new a.aX;ze.emplaceBack(-1,-1),ze.emplaceBack(1,-1),ze.emplaceBack(1,1),ze.emplaceBack(-1,1);let Qe=new a.aY;Qe.emplaceBack(0,1,2),Qe.emplaceBack(0,2,3),Mt.mesh=new Eu(Jt.createVertexBuffer(ze,vo.members),Jt.createIndexBuffer(Qe),a.a0.simpleSegment(0,0,ze.length,Qe.length))}Ie.draw(Jt,$t.TRIANGLES,Cr,ve,xe,Pa.disabled,yr,void 0,"sky",Mt.mesh.vertexBuffer,Mt.mesh.indexBuffer,Mt.mesh.segments)})(this,this.style.sky),this._showOverdrawInspector=B.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let ut=this.style._layers[Q[this.currentLayer]],Mt=ee[ut.source],Jt=le[ut.source];this._renderTileClippingMasks(ut,Jt),this.renderLayer(this,Mt,ut,Jt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerIe.source&&!Ie.isHidden(Jt)?[Mt.sourceCaches[Ie.source]]:[])),Cr=yr.filter((Ie=>Ie.getSource().type==="vector")),ve=yr.filter((Ie=>Ie.getSource().type!=="vector")),xe=Ie=>{(!$t||$t.getSource().maxzoomxe(Ie))),$t||ve.forEach((Ie=>xe(Ie))),$t})(this.style,this.transform.zoom);ut&&(function(Mt,Jt,$t){for(let yr=0;yr<$t.length;yr++)ih(Mt,Jt,$t[yr])})(this,ut,ut.getVisibleCoordinates())}this.options.showPadding&&(function(ut){let Mt=ut.transform.padding;lf(ut,ut.transform.height-(Mt.top||0),3,Rc),lf(ut,Mt.bottom||0,3,gs),Sh(ut,Mt.left||0,3,Wf),Sh(ut,ut.transform.width-(Mt.right||0),3,Wh);let Jt=ut.transform.centerPoint;(function($t,yr,Cr,ve){Mu($t,yr-1,Cr-10,2,20,ve),Mu($t,yr-10,Cr-1,20,2,ve)})(ut,Jt.x,ut.transform.height-Jt.y,rh)})(this),this.context.setDefault()}maybeDrawDepthAndCoords(w){if(!this.style||!this.style.map||!this.style.map.terrain)return;let B=this.terrainFacilitator.matrix,Q=this.transform.modelViewProjectionMatrix,ee=this.terrainFacilitator.dirty;ee||(ee=w?!a.a_(B,Q):!a.a$(B,Q)),ee||(ee=this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime).length>0),ee&&(a.b0(B,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,(function(le,Fe){let Ze=le.context,ut=Ze.gl,Mt=Os.unblended,Jt=new Po(ut.LEQUAL,Po.ReadWrite,[0,1]),$t=Fe.getTerrainMesh(),yr=Fe.sourceCache.getRenderableTiles(),Cr=le.useProgram("terrainDepth");Ze.bindFramebuffer.set(Fe.getFramebuffer("depth").framebuffer),Ze.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Ze.clear({color:a.aM.transparent,depth:1});for(let ve of yr){let xe=Fe.getTerrainData(ve.tileID),Ie={u_matrix:le.transform.calculatePosMatrix(ve.tileID.toUnwrapped()),u_ele_delta:Fe.getMeshFrameDelta(le.transform.zoom)};Cr.draw(Ze,ut.TRIANGLES,Jt,Ko.disabled,Mt,Pa.backCCW,Ie,xe,"terrain",$t.vertexBuffer,$t.indexBuffer,$t.segments)}Ze.bindFramebuffer.set(null),Ze.viewport.set([0,0,le.width,le.height])})(this,this.style.map.terrain),(function(le,Fe){let Ze=le.context,ut=Ze.gl,Mt=Os.unblended,Jt=new Po(ut.LEQUAL,Po.ReadWrite,[0,1]),$t=Fe.getTerrainMesh(),yr=Fe.getCoordsTexture(),Cr=Fe.sourceCache.getRenderableTiles(),ve=le.useProgram("terrainCoords");Ze.bindFramebuffer.set(Fe.getFramebuffer("coords").framebuffer),Ze.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Ze.clear({color:a.aM.transparent,depth:1}),Fe.coordsIndex=[];for(let xe of Cr){let Ie=Fe.getTerrainData(xe.tileID);Ze.activeTexture.set(ut.TEXTURE0),ut.bindTexture(ut.TEXTURE_2D,yr.texture);let ze={u_matrix:le.transform.calculatePosMatrix(xe.tileID.toUnwrapped()),u_terrain_coords_id:(255-Fe.coordsIndex.length)/255,u_texture:0,u_ele_delta:Fe.getMeshFrameDelta(le.transform.zoom)};ve.draw(Ze,ut.TRIANGLES,Jt,Ko.disabled,Mt,Pa.backCCW,ze,Ie,"terrain",$t.vertexBuffer,$t.indexBuffer,$t.segments),Fe.coordsIndex.push(xe.tileID.key)}Ze.bindFramebuffer.set(null),Ze.viewport.set([0,0,le.width,le.height])})(this,this.style.map.terrain))}renderLayer(w,B,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(le,Fe,Ze,ut,Mt){if(le.renderPass!=="translucent")return;let Jt=Ko.disabled,$t=le.colorModeForRenderPass();(Ze._unevaluatedLayout.hasValue("text-variable-anchor")||Ze._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&(function(yr,Cr,ve,xe,Ie,ze,Qe,Xe,nt){let qt=Cr.transform,Wt=yn(),nr=Ie==="map",fr=ze==="map";for(let br of yr){let Fr=xe.getTile(br),Hr=Fr.getBucket(ve);if(!Hr||!Hr.text||!Hr.text.segments.get().length)continue;let ri=a.ag(Hr.textSizeData,qt.zoom),Ci=Fn(Fr,1,Cr.transform.zoom),cn=qr(br.posMatrix,fr,nr,Cr.transform,Ci),sn=ve.layout.get("icon-text-fit")!=="none"&&Hr.hasIconData();if(ri){let Ln=Math.pow(2,qt.zoom-Fr.tileID.overscaledZ),Kn=Cr.style.map.terrain?(fa,$a)=>Cr.style.map.terrain.getElevation(br,fa,$a):null,Aa=Wt.translatePosition(qt,Fr,Qe,Xe);yf(Hr,nr,fr,nt,qt,cn,br.posMatrix,Ln,ri,sn,Wt,Aa,br.toUnwrapped(),Kn)}}})(ut,le,Ze,Fe,Ze.layout.get("text-rotation-alignment"),Ze.layout.get("text-pitch-alignment"),Ze.paint.get("text-translate"),Ze.paint.get("text-translate-anchor"),Mt),Ze.paint.get("icon-opacity").constantOr(1)!==0&&Ah(le,Fe,Ze,ut,!1,Ze.paint.get("icon-translate"),Ze.paint.get("icon-translate-anchor"),Ze.layout.get("icon-rotation-alignment"),Ze.layout.get("icon-pitch-alignment"),Ze.layout.get("icon-keep-upright"),Jt,$t),Ze.paint.get("text-opacity").constantOr(1)!==0&&Ah(le,Fe,Ze,ut,!0,Ze.paint.get("text-translate"),Ze.paint.get("text-translate-anchor"),Ze.layout.get("text-rotation-alignment"),Ze.layout.get("text-pitch-alignment"),Ze.layout.get("text-keep-upright"),Jt,$t),Fe.map.showCollisionBoxes&&(Hu(le,Fe,Ze,ut,!0),Hu(le,Fe,Ze,ut,!1))})(w,B,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(le,Fe,Ze,ut){if(le.renderPass!=="translucent")return;let Mt=Ze.paint.get("circle-opacity"),Jt=Ze.paint.get("circle-stroke-width"),$t=Ze.paint.get("circle-stroke-opacity"),yr=!Ze.layout.get("circle-sort-key").isConstant();if(Mt.constantOr(1)===0&&(Jt.constantOr(1)===0||$t.constantOr(1)===0))return;let Cr=le.context,ve=Cr.gl,xe=le.depthModeForSublayer(0,Po.ReadOnly),Ie=Ko.disabled,ze=le.colorModeForRenderPass(),Qe=[];for(let Xe=0;XeXe.sortKey-nt.sortKey));for(let Xe of Qe){let{programConfiguration:nt,program:qt,layoutVertexBuffer:Wt,indexBuffer:nr,uniformValues:fr,terrainData:br}=Xe.state;qt.draw(Cr,ve.TRIANGLES,xe,Ie,ze,Pa.disabled,fr,br,Ze.id,Wt,nr,Xe.segments,Ze.paint,le.transform.zoom,nt)}})(w,B,Q,ee);break;case"heatmap":(function(le,Fe,Ze,ut){if(Ze.paint.get("heatmap-opacity")===0)return;let Mt=le.context;if(le.style.map.terrain){for(let Jt of ut){let $t=Fe.getTile(Jt);Fe.hasRenderableParent(Jt)||(le.renderPass==="offscreen"?_f(le,$t,Ze,Jt):le.renderPass==="translucent"&&Yc(le,Ze,Jt))}Mt.viewport.set([0,0,le.width,le.height])}else le.renderPass==="offscreen"?(function(Jt,$t,yr,Cr){let ve=Jt.context,xe=ve.gl,Ie=Ko.disabled,ze=new Os([xe.ONE,xe.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(Qe,Xe,nt){let qt=Qe.gl;Qe.activeTexture.set(qt.TEXTURE1),Qe.viewport.set([0,0,Xe.width/4,Xe.height/4]);let Wt=nt.heatmapFbos.get(a.aU);Wt?(qt.bindTexture(qt.TEXTURE_2D,Wt.colorAttachment.get()),Qe.bindFramebuffer.set(Wt.framebuffer)):(Wt=eh(Qe,Xe.width/4,Xe.height/4),nt.heatmapFbos.set(a.aU,Wt))})(ve,Jt,yr),ve.clear({color:a.aM.transparent});for(let Qe=0;Qe20&&Jt.texParameterf(Jt.TEXTURE_2D,Mt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Mt.extTextureFilterAnisotropicMax);let Hr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(Qe),ri=Hr?Qe:null,Ci=ri?ri.posMatrix:le.transform.calculatePosMatrix(Qe.toUnwrapped(),ze),cn=cl(Ci,br||[0,0],fr||1,nr,Ze);$t instanceof ar?yr.draw(Mt,Jt.TRIANGLES,Xe,Ko.disabled,Cr,Pa.disabled,cn,Hr,Ze.id,$t.boundsBuffer,le.quadTriangleIndexBuffer,$t.boundsSegments):yr.draw(Mt,Jt.TRIANGLES,Xe,ve[Qe.overscaledZ],Cr,Pa.disabled,cn,Hr,Ze.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}})(w,B,Q,ee);break;case"background":(function(le,Fe,Ze,ut){let Mt=Ze.paint.get("background-color"),Jt=Ze.paint.get("background-opacity");if(Jt===0)return;let $t=le.context,yr=$t.gl,Cr=le.transform,ve=Cr.tileSize,xe=Ze.paint.get("background-pattern");if(le.isPatternMissing(xe))return;let Ie=!xe&&Mt.a===1&&Jt===1&&le.opaquePassEnabledForLayer()?"opaque":"translucent";if(le.renderPass!==Ie)return;let ze=Ko.disabled,Qe=le.depthModeForSublayer(0,Ie==="opaque"?Po.ReadWrite:Po.ReadOnly),Xe=le.colorModeForRenderPass(),nt=le.useProgram(xe?"backgroundPattern":"background"),qt=ut||Cr.coveringTiles({tileSize:ve,terrain:le.style.map.terrain});xe&&($t.activeTexture.set(yr.TEXTURE0),le.imageManager.bind(le.context));let Wt=Ze.getCrossfadeParameters();for(let nr of qt){let fr=ut?nr.posMatrix:le.transform.calculatePosMatrix(nr.toUnwrapped()),br=xe?Su(fr,Jt,le,xe,{tileID:nr,tileSize:ve},Wt):Yl(fr,Jt,Mt),Fr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(nr);nt.draw($t,yr.TRIANGLES,Qe,ze,Xe,Pa.disabled,br,Fr,Ze.id,le.tileExtentBuffer,le.quadTriangleIndexBuffer,le.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(le,Fe,Ze){let ut=le.context,Mt=Ze.implementation;if(le.renderPass==="offscreen"){let Jt=Mt.prerender;Jt&&(le.setCustomLayerDefaults(),ut.setColorMode(le.colorModeForRenderPass()),Jt.call(Mt,ut.gl,le.transform.customLayerMatrix()),ut.setDirty(),le.setBaseState())}else if(le.renderPass==="translucent"){le.setCustomLayerDefaults(),ut.setColorMode(le.colorModeForRenderPass()),ut.setStencilMode(Ko.disabled);let Jt=Mt.renderingMode==="3d"?new Po(le.context.gl.LEQUAL,Po.ReadWrite,le.depthRangeFor3D):le.depthModeForSublayer(0,Po.ReadOnly);ut.setDepthMode(Jt),Mt.render(ut.gl,le.transform.customLayerMatrix(),{farZ:le.transform.farZ,nearZ:le.transform.nearZ,fov:le.transform._fov,modelViewProjectionMatrix:le.transform.modelViewProjectionMatrix,projectionMatrix:le.transform.projectionMatrix}),ut.setDirty(),le.setBaseState(),ut.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,B,Q,ee,le){if(!Q[0]&&!Q[1])return w;let Fe=le?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Fe){let Mt=Math.sin(Fe),Jt=Math.cos(Fe);Q=[Q[0]*Jt-Q[1]*Mt,Q[0]*Mt+Q[1]*Jt]}let Ze=[le?Q[0]:Fn(B,Q[0],this.transform.zoom),le?Q[1]:Fn(B,Q[1],this.transform.zoom),0],ut=new Float32Array(16);return a.J(ut,w,Ze),ut}saveTileTexture(w){let B=this._tileTextures[w.size[0]];B?B.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let B=this._tileTextures[w];return B&&B.length>0?B.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let B=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!B||!Q}useProgram(w,B){this.cache=this.cache||{};let Q=w+(B?B.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new hn(this.context,Gn[w],B,nc[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new g(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:B}=this.context.gl;return this.width!==w||this.height!==B}}class ks{constructor(w,B){this.points=w,this.planes=B}static fromInvProjectionMatrix(w,B,Q){let ee=Math.pow(2,Q),le=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((Ze=>{let ut=1/(Ze=a.af([],Ze,w))[3]/B*ee;return a.b1(Ze,Ze,[ut,ut,1/Ze[3],ut])})),Fe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((Ze=>{let ut=(function(yr,Cr){var ve=Cr[0],xe=Cr[1],Ie=Cr[2],ze=ve*ve+xe*xe+Ie*Ie;return ze>0&&(ze=1/Math.sqrt(ze)),yr[0]=Cr[0]*ze,yr[1]=Cr[1]*ze,yr[2]=Cr[2]*ze,yr})([],(function(yr,Cr,ve){var xe=Cr[0],Ie=Cr[1],ze=Cr[2],Qe=ve[0],Xe=ve[1],nt=ve[2];return yr[0]=Ie*nt-ze*Xe,yr[1]=ze*Qe-xe*nt,yr[2]=xe*Xe-Ie*Qe,yr})([],L([],le[Ze[0]],le[Ze[1]]),L([],le[Ze[2]],le[Ze[1]]))),Mt=-((Jt=ut)[0]*($t=le[Ze[1]])[0]+Jt[1]*$t[1]+Jt[2]*$t[2]);var Jt,$t;return ut.concat(Mt)}));return new ks(le,Fe)}}class bc{constructor(w,B){this.min=w,this.max=B,this.center=(function(Q,ee,le){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q})([],(function(Q,ee,le){return Q[0]=ee[0]+le[0],Q[1]=ee[1]+le[1],Q[2]=ee[2]+le[2],Q})([],this.min,this.max))}quadrant(w){let B=[w%2==0,w<2],Q=M(this.min),ee=M(this.max);for(let le=0;le=0&&Fe++;if(Fe===0)return 0;Fe!==B.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let le=Number.MAX_VALUE,Fe=-Number.MAX_VALUE;for(let Ze=0;Zethis.max[ee]-this.min[ee])return 0}return 1}}class hu{constructor(w=0,B=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(B)||B<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=B,this.left=Q,this.right=ee}interpolate(w,B,Q){return B.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,B.top,Q)),B.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,B.bottom,Q)),B.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,B.left,Q)),B.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,B.right,Q)),this}getCenter(w,B){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+B-this.bottom)/2,0,B);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new hu(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let _u=85.051129;class il{constructor(w,B,Q,ee,le){this.tileSize=512,this._renderWorldCopies=le===void 0||!!le,this._minZoom=w||0,this._maxZoom=B||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new hu,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new il(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let B=-a.b3(w,-180,180)*Math.PI/180;this.angle!==B&&(this._unmodified=!1,this.angle=B,this._calcMatrices(),this.rotationMatrix=(function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q})(),(function(Q,ee,le){var Fe=ee[0],Ze=ee[1],ut=ee[2],Mt=ee[3],Jt=Math.sin(le),$t=Math.cos(le);Q[0]=Fe*$t+ut*Jt,Q[1]=Ze*$t+Mt*Jt,Q[2]=Fe*-Jt+ut*$t,Q[3]=Ze*-Jt+Mt*$t})(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let B=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==B&&(this._unmodified=!1,this._pitch=B,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let B=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==B&&(this._unmodified=!1,this._zoom=B,this.tileZoom=Math.max(0,Math.floor(B)),this.scale=this.zoomScale(B),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,B,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,B,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let B=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,B)}getVisibleUnwrappedCoordinates(w){let B=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),le=this.pointCoordinate(new a.P(this.width,this.height)),Fe=this.pointCoordinate(new a.P(0,this.height)),Ze=Math.floor(Math.min(Q.x,ee.x,le.x,Fe.x)),ut=Math.floor(Math.max(Q.x,ee.x,le.x,Fe.x)),Mt=1;for(let Jt=Ze-Mt;Jt<=ut+Mt;Jt++)Jt!==0&&B.push(new a.b4(Jt,w))}return B}coveringTiles(w){var B,Q;let ee=this.coveringZoomLevel(w),le=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Fe=this.pointCoordinate(this.getCameraPoint()),Ze=a.Z.fromLngLat(this.center),ut=Math.pow(2,ee),Mt=[ut*Fe.x,ut*Fe.y,0],Jt=[ut*Ze.x,ut*Ze.y,0],$t=ks.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),yr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(yr=ee);let Cr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,ve=Xe=>({aabb:new bc([Xe*ut,0,0],[(Xe+1)*ut,ut,0]),zoom:0,x:0,y:0,wrap:Xe,fullyVisible:!1}),xe=[],Ie=[],ze=ee,Qe=w.reparseOverscaled?le:ee;if(this._renderWorldCopies)for(let Xe=1;Xe<=3;Xe++)xe.push(ve(-Xe)),xe.push(ve(Xe));for(xe.push(ve(0));xe.length>0;){let Xe=xe.pop(),nt=Xe.x,qt=Xe.y,Wt=Xe.fullyVisible;if(!Wt){let Hr=Xe.aabb.intersects($t);if(Hr===0)continue;Wt=Hr===2}let nr=w.terrain?Mt:Jt,fr=Xe.aabb.distanceX(nr),br=Xe.aabb.distanceY(nr),Fr=Math.max(Math.abs(fr),Math.abs(br));if(Xe.zoom===ze||Fr>Cr+(1<=yr){let Hr=ze-Xe.zoom,ri=Mt[0]-.5-(nt<>1),cn=Xe.zoom+1,sn=Xe.aabb.quadrant(Hr);if(w.terrain){let Ln=new a.S(cn,Xe.wrap,cn,ri,Ci),Kn=w.terrain.getMinMaxElevation(Ln),Aa=(B=Kn.minElevation)!==null&&B!==void 0?B:this.elevation,fa=(Q=Kn.maxElevation)!==null&&Q!==void 0?Q:this.elevation;sn=new bc([sn.min[0],sn.min[1],Aa],[sn.max[0],sn.max[1],fa])}xe.push({aabb:sn,zoom:cn,x:ri,y:Ci,wrap:Xe.wrap,fullyVisible:Wt})}}return Ie.sort(((Xe,nt)=>Xe.distanceSq-nt.distanceSq)).map((Xe=>Xe.tileID))}resize(w,B){this.width=w,this.height=B,this.pixelsToGLUnits=[2/w,-2/B],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let B=a.ac(w.lat,-85.051129,_u);return new a.P(a.O(w.lng)*this.worldSize,a.Q(B)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let B=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),le=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-le))return;let Fe=Q+B-le,Ze=Math.cos(this._pitch)*this.cameraToCenterDistance/Fe/a.b5(1,ee.lat),ut=this.scaleZoom(Ze/this.tileSize);this._elevation=le,this._center=ee,this.zoom=ut}setLocationAtPoint(w,B){let Q=this.pointCoordinate(B),ee=this.pointCoordinate(this.centerPoint),le=this.locationCoordinate(w),Fe=new a.Z(le.x-(Q.x-ee.x),le.y-(Q.y-ee.y));this.center=this.coordinateLocation(Fe),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,B){return B?this.coordinatePoint(this.locationCoordinate(w),B.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,B){return this.coordinateLocation(this.pointCoordinate(w,B))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,B){if(B){let yr=B.pointCoordinate(w);if(yr!=null)return yr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let le=Q[3],Fe=ee[3],Ze=Q[1]/le,ut=ee[1]/Fe,Mt=Q[2]/le,Jt=ee[2]/Fe,$t=Mt===Jt?0:(0-Mt)/(Jt-Mt);return new a.Z(a.y.number(Q[0]/le,ee[0]/Fe,$t)/this.worldSize,a.y.number(Ze,ut,$t)/this.worldSize)}coordinatePoint(w,B=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,B,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,_u])}calculateTileMatrix(w){let B=w.canonical,Q=this.worldSize/this.zoomScale(B.z),ee=B.x+Math.pow(2,B.z)*w.wrap,le=a.an(new Float64Array(16));return a.J(le,le,[ee*Q,B.y*Q,0]),a.K(le,le,[Q/a.X,Q/a.X,1]),le}calculatePosMatrix(w,B=!1){let Q=w.key,ee=B?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let le=this.calculateTileMatrix(w);return a.L(le,B?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,le),ee[Q]=new Float32Array(le),ee[Q]}calculateFogMatrix(w){let B=w.key,Q=this._fogMatrixCache;if(Q[B])return Q[B];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[B]=new Float32Array(ee),Q[B]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,B){B=a.ac(+B,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:B},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let Xe=179.9999999999;ee=[-Xe,Xe]}let le=this.tileSize*this.zoomScale(Q.zoom),Fe=0,Ze=le,ut=0,Mt=le,Jt=0,$t=0,{x:yr,y:Cr}=this.size;if(this.latRange){let Xe=this.latRange;Fe=a.Q(Xe[1])*le,Ze=a.Q(Xe[0])*le,Ze-FeZe&&(ze=Ze-Xe)}if(ee){let Xe=(ut+Mt)/2,nt=ve;this._renderWorldCopies&&(nt=a.b3(ve,Xe-le/2,Xe+le/2));let qt=yr/2;nt-qtMt&&(Ie=Mt-qt)}if(Ie!==void 0||ze!==void 0){let Xe=new a.P(Ie!=null?Ie:ve,ze!=null?ze:xe);Q.center=this.unproject.call({worldSize:le},Xe).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:B,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=B,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,B=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let le=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Fe=Math.min(this.elevation,this.minElevationForCurrentTile),Ze=le-Fe*this._pixelPerMeter/Math.cos(this._pitch),ut=Fe<0?Ze:le,Mt=Math.PI/2+this._pitch,Jt=this._fov*(.5+w.y/this.height),$t=Math.sin(Jt)*ut/Math.sin(a.ac(Math.PI-Mt-Jt,.01,Math.PI-.01)),yr=this.getHorizon(),Cr=2*Math.atan(yr/this.cameraToCenterDistance)*(.5+w.y/(2*yr)),ve=Math.sin(Cr)*ut/Math.sin(a.ac(Math.PI-Mt-Cr,.01,Math.PI-.01)),xe=Math.min($t,ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*xe+ut),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-B,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,le,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-B,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let Ie=this.width%2/2,ze=this.height%2/2,Qe=Math.cos(this.angle),Xe=Math.sin(this.angle),nt=B-Math.round(B)+Qe*Ie+Xe*ze,qt=Q-Math.round(Q)+Qe*ze+Xe*Ie,Wt=new Float64Array(ee);if(a.J(Wt,Wt,[nt>.5?nt-1:nt,qt>.5?qt-1:qt,0]),this.alignedModelViewProjectionMatrix=Wt,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),B=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(B,B,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let B=this.getCameraPoint();if(w.length===1)return[w[0],B];{let Q=B.x,ee=B.y,le=B.x,Fe=B.y;for(let Ze of w)Q=Math.min(Q,Ze.x),ee=Math.min(ee,Ze.y),le=Math.max(le,Ze.x),Fe=Math.max(Fe,Ze.y);return[new a.P(Q,ee),new a.P(le,ee),new a.P(le,Fe),new a.P(Q,Fe),new a.P(Q,ee)]}}lngLatToCameraDepth(w,B){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,B,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function nh(ue,w){let B,Q=!1,ee=null,le=null,Fe=()=>{ee=null,Q&&(ue.apply(le,B),ee=setTimeout(Fe,w),Q=!1)};return(...Ze)=>(Q=!0,le=this,B=Ze,ee||Fe(),ee)}class Mh{constructor(w){this._getCurrentHash=()=>{let B=window.location.hash.replace("#","");if(this._hashName){let Q;return B.split("&").map((ee=>ee.split("="))).forEach((ee=>{ee[0]===this._hashName&&(Q=ee)})),(Q&&Q[1]||"").split("/")}return B.split("/")},this._onHashChange=()=>{let B=this._getCurrentHash();if(B.length>=3&&!B.some((Q=>isNaN(Q)))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(B[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+B[2],+B[1]],zoom:+B[0],bearing:Q,pitch:+(B[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let B=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,B)},this._removeHash=()=>{let B=this._getCurrentHash();if(B.length===0)return;let Q=B.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let le=window.location.hash.replace(ee,"");le.startsWith("#&")?le=le.slice(0,1)+le.slice(2):le==="#"&&(le="");let Fe=window.location.href.replace(/(#.+)?$/,le);Fe=Fe.replace("&&","&"),window.history.replaceState(window.history.state,null,Fe)},this._updateHash=nh(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let B=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),le=Math.pow(10,ee),Fe=Math.round(B.lng*le)/le,Ze=Math.round(B.lat*le)/le,ut=this._map.getBearing(),Mt=this._map.getPitch(),Jt="";if(Jt+=w?`/${Fe}/${Ze}/${Q}`:`${Q}/${Ze}/${Fe}`,(ut||Mt)&&(Jt+="/"+Math.round(10*ut)/10),Mt&&(Jt+=`/${Math.round(Mt)}`),this._hashName){let $t=this._hashName,yr=!1,Cr=window.location.hash.slice(1).split("&").map((ve=>{let xe=ve.split("=")[0];return xe===$t?(yr=!0,`${xe}=${Jt}`):ve})).filter((ve=>ve));return yr||Cr.push(`${$t}=${Jt}`),`#${Cr.join("&")}`}return`#${Jt}`}}let zu={linearity:.3,easing:a.b8(0,0,.3,1)},Fc=a.e({deceleration:2500,maxSpeed:1400},zu),wc=a.e({deceleration:20,maxSpeed:1400},zu),bd=a.e({deceleration:1e3,maxSpeed:360},zu),xf=a.e({deceleration:1e3,maxSpeed:90},zu);class Pf{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:u.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,B=u.now();for(;w.length>0&&B-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let B={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:le}of this._inertiaBuffer)B.zoom+=le.zoomDelta||0,B.bearing+=le.bearingDelta||0,B.pitch+=le.pitchDelta||0,le.panDelta&&B.pan._add(le.panDelta),le.around&&(B.around=le.around),le.pinchAround&&(B.pinchAround=le.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(B.pan.mag()){let le=bf(B.pan.mag(),Q,a.e({},Fc,w||{}));ee.offset=B.pan.mult(le.amount/B.pan.mag()),ee.center=this._map.transform.center,qu(ee,le)}if(B.zoom){let le=bf(B.zoom,Q,wc);ee.zoom=this._map.transform.zoom+le.amount,qu(ee,le)}if(B.bearing){let le=bf(B.bearing,Q,bd);ee.bearing=this._map.transform.bearing+a.ac(le.amount,-179,179),qu(ee,le)}if(B.pitch){let le=bf(B.pitch,Q,xf);ee.pitch=this._map.transform.pitch+le.amount,qu(ee,le)}if(ee.zoom||ee.bearing){let le=B.pinchAround===void 0?B.around:B.pinchAround;ee.around=le?this._map.unproject(le):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function qu(ue,w){(!ue.duration||ue.durationB.unproject(ut))),Ze=le.reduce(((ut,Mt,Jt,$t)=>ut.add(Mt.div($t.length))),new a.P(0,0));super(w,{points:le,point:Ze,lngLats:Fe,lngLat:B.unproject(Ze),originalEvent:Q}),this._defaultPrevented=!1}}class Xh extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,B,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class If{constructor(w,B){this._map=w,this._clickTolerance=B.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new Xh(w.type,this._map,w))}mousedown(w,B){return this._mousedownPos=B,this._firePreventable(new jl(w.type,this._map,w))}mouseup(w){this._map.fire(new jl(w.type,this._map,w))}click(w,B){this._mousedownPos&&this._mousedownPos.dist(B)>=this._clickTolerance||this._map.fire(new jl(w.type,this._map,w))}dblclick(w){return this._firePreventable(new jl(w.type,this._map,w))}mouseover(w){this._map.fire(new jl(w.type,this._map,w))}mouseout(w){this._map.fire(new jl(w.type,this._map,w))}touchstart(w){return this._firePreventable(new uf(w.type,this._map,w))}touchmove(w){this._map.fire(new uf(w.type,this._map,w))}touchend(w){this._map.fire(new uf(w.type,this._map,w))}touchcancel(w){this._map.fire(new uf(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Cs{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new jl(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new jl(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class du{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class ku{constructor(w,B){this._map=w,this._tr=new du(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=B.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,B){this.isEnabled()&&w.shiftKey&&w.button===0&&(c.disableDrag(),this._startPos=this._lastPos=B,this._active=!0)}mousemoveWindow(w,B){if(!this._active)return;let Q=B;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)le.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(c.remove(this._box),this._box=null),c.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,B){return this._map.fire(new a.k(w,{originalEvent:B}))}}function Xf(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let B={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=(function(ee){let le=new a.P(0,0);for(let Fe of ee)le._add(Fe);return le.div(ee.length)})(B),this.touches=Xf(Q,B)))}touchmove(w,B,Q){if(this.aborted||!this.centroid)return;let ee=Xf(Q,B);for(let le in this.touches){let Fe=ee[le];(!Fe||Fe.dist(this.touches[le])>30)&&(this.aborted=!0)}}touchend(w,B,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class wf{constructor(w){this.singleTap=new Us(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,B,Q){this.singleTap.touchstart(w,B,Q)}touchmove(w,B,Q){this.singleTap.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this.singleTap.touchend(w,B,Q);if(ee){let le=w.timeStamp-this.lastTime<500,Fe=!this.lastTap||this.lastTap.dist(ee)<30;if(le&&Fe||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class zc{constructor(w){this._tr=new du(w),this._zoomIn=new wf({numTouches:1,numTaps:2}),this._zoomOut=new wf({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,B,Q){this._zoomIn.touchstart(w,B,Q),this._zoomOut.touchstart(w,B,Q)}touchmove(w,B,Q){this._zoomIn.touchmove(w,B,Q),this._zoomOut.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this._zoomIn.touchend(w,B,Q),le=this._zoomOut.touchend(w,B,Q),Fe=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:Ze=>Ze.easeTo({duration:300,zoom:Fe.zoom+1,around:Fe.unproject(ee)},{originalEvent:w})}):le?(this._active=!0,w.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:Ze=>Ze.easeTo({duration:300,zoom:Fe.zoom-1,around:Fe.unproject(le)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Wu{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let B=this._moveFunction(...w);if(B.bearingDelta||B.pitchDelta||B.around||B.panDelta)return this._active=!0,B}dragStart(w,B){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=B.length?B[0]:B,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,B){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=B.length?B[0]:B;return!this._moved&&ee.dist(Q){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Wl=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:B=.8})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({bearingDelta:(le.x-ee.x)*B}),moveStateManager:Q,enable:ue,assignEvents:Zf})},ah=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:B=-.5})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({pitchDelta:(le.y-ee.y)*B}),moveStateManager:Q,enable:ue,assignEvents:Zf})};class Zu{constructor(w,B){this._clickTolerance=w.clickTolerance||1,this._map=B,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,B,Q){return this._calculateTransform(w,B,Q)}touchmove(w,B,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,B,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,B,Q){this._calculateTransform(w,B,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,B,Q){Q.length>0&&(this._active=!0);let ee=Xf(Q,B),le=new a.P(0,0),Fe=new a.P(0,0),Ze=0;for(let Mt in ee){let Jt=ee[Mt],$t=this._touches[Mt];$t&&(le._add(Jt),Fe._add(Jt.sub($t)),Ze++,ee[Mt]=Jt)}if(this._touches=ee,this._shouldBePrevented(Ze)||!Fe.mag())return;let ut=Fe.div(Ze);return this._sum._add(ut),this._sum.mag()Math.abs(ue.x)}class Bc extends qc{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,B,Q){super.touchstart(w,B,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,fc(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,B,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),le=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,le,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+le.y)/2*-.5}):void 0}gestureBeginsVertically(w,B,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,le=B.mag()>=2;if(!ee&&!le)return;if(!ee||!le)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let Fe=w.y>0==B.y>0;return fc(w)&&fc(B)&&Fe}}let kt={panStep:100,bearingStep:15,pitchStep:10};class Zt{constructor(w){this._tr=new du(w);let B=kt;this._panStep=B.panStep,this._bearingStep=B.bearingStep,this._pitchStep=B.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let B=0,Q=0,ee=0,le=0,Fe=0;switch(w.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),le=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),le=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),Fe=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Fe=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:Ze=>{let ut=this._tr;Ze.easeTo({duration:300,easeId:"keyboardHandler",easing:Er,zoom:B?Math.round(ut.zoom)+B*(w.shiftKey?2:1):ut.zoom,bearing:ut.bearing+Q*this._bearingStep,pitch:ut.pitch+ee*this._pitchStep,offset:[-le*this._panStep,-Fe*this._panStep],center:ut.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Er(ue){return ue*(2-ue)}let xr=4.000244140625;class Kr{constructor(w,B){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new du(w),this._triggerRenderFrame=B,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let B=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=u.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,B!==0&&B%xr==0?this._type="wheel":B!==0&&Math.abs(B)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=B,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*B)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,B+=this._lastValue)),w.shiftKey&&B&&(B/=4),this._type&&(this._lastWheelEvent=w,this._delta-=B,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let B=c.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=B.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(B)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let ut=this._type==="wheel"&&Math.abs(this._delta)>xr?this._wheelZoomRate:this._defaultZoomRate,Mt=2/(1+Math.exp(-Math.abs(this._delta*ut)));this._delta<0&&Mt!==0&&(Mt=1/Mt);let Jt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Jt*Mt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let B=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,le,Fe=!1,Ze=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&Ze){let ut=Math.min(Ze/200,1),Mt=ee(ut);le=a.y.number(Q,B,Mt),ut<1?this._frameId||(this._frameId=!0):Fe=!0}else le=B,Fe=!0;return this._active=!0,Fe&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!Fe,zoomDelta:le-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let B=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(u.now()-Q.start)/Q.duration,le=Q.easing(ee+.01)-Q.easing(ee),Fe=.27/Math.sqrt(le*le+1e-4)*.01,Ze=Math.sqrt(.0729-Fe*Fe);B=a.b8(Fe,Ze,.25,1)}return this._prevEase={start:u.now(),duration:w,easing:B},B}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Mi{constructor(w,B){this._clickZoom=w,this._tapZoom=B}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Xi{constructor(w){this._tr=new du(w),this.reset()}reset(){this._active=!1}dblclick(w,B){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(B)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class dn{constructor(){this._tap=new wf({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,B,Q){if(!this._swipePoint)if(this._tapTime){let ee=B[0],le=w.timeStamp-this._tapTime<500,Fe=this._tapPoint.dist(ee)<30;le&&Fe?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,B,Q)}touchmove(w,B,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=B[0],le=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:le/128}}}else this._tap.touchmove(w,B,Q)}touchend(w,B,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,B,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class wn{constructor(w,B,Q){this._el=w,this._mousePan=B,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class On{constructor(w,B,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=B,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Yi{constructor(w,B,Q,ee){this._el=w,this._touchZoom=B,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class $i{constructor(w,B){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=B,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=c.create("div","maplibregl-cooperative-gesture-screen",w);let B=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(B=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=B,this._container.appendChild(ee);let le=document.createElement("div");le.className="maplibregl-mobile-message",le.textContent=Q,this._container.appendChild(le),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(c.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,B){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:B})),this._container.classList.add("maplibregl-show"),setTimeout((()=>{this._container.classList.remove("maplibregl-show")}),100))}}let an=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Fi extends a.k{}function ta(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class Ca{constructor(w,B){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,le)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Fe=ee.type==="renderFrame"?void 0:ee,Ze={needsRenderFrame:!1},ut={},Mt={},Jt=ee.touches,$t=Jt?this._getMapTouches(Jt):void 0,yr=$t?c.touchPos(this._map.getCanvas(),$t):c.mousePos(this._map.getCanvas(),ee);for(let{handlerName:xe,handler:Ie,allowed:ze}of this._handlers){if(!Ie.isEnabled())continue;let Qe;this._blockedByActive(Mt,ze,xe)?Ie.reset():Ie[le||ee.type]&&(Qe=Ie[le||ee.type](ee,yr,$t),this.mergeHandlerResult(Ze,ut,Qe,xe,Fe),Qe&&Qe.needsRenderFrame&&this._triggerRenderFrame()),(Qe||Ie.isActive())&&(Mt[xe]=Ie)}let Cr={};for(let xe in this._previousActiveHandlers)Mt[xe]||(Cr[xe]=Fe);this._previousActiveHandlers=Mt,(Object.keys(Cr).length||ta(Ze))&&(this._changes.push([Ze,ut,Cr]),this._triggerRenderFrame()),(Object.keys(Mt).length||ta(Ze))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:ve}=Ze;ve&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],ve(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Pf(w),this._bearingSnap=B.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(B);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,le,Fe]of this._listeners)c.addEventListener(ee,le,ee===document?this.handleWindowEvent:this.handleEvent,Fe)}destroy(){for(let[w,B,Q]of this._listeners)c.removeEventListener(w,B,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let B=this._map,Q=B.getCanvasContainer();this._add("mapEvent",new If(B,w));let ee=B.boxZoom=new ku(B,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let le=B.cooperativeGestures=new $i(B,w.cooperativeGestures);this._add("cooperativeGestures",le),w.cooperativeGestures&&le.enable();let Fe=new zc(B),Ze=new Xi(B);B.doubleClickZoom=new Mi(Ze,Fe),this._add("tapZoom",Fe),this._add("clickZoom",Ze),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let ut=new dn;this._add("tapDragZoom",ut);let Mt=B.touchPitch=new Bc(B);this._add("touchPitch",Mt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Jt=Wl(w),$t=ah(w);B.dragRotate=new On(w,Jt,$t),this._add("mouseRotate",Jt,["mousePitch"]),this._add("mousePitch",$t,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let yr=(({enable:Qe,clickTolerance:Xe})=>{let nt=new Xu({checkCorrectEvent:qt=>c.mouseButton(qt)===0&&!qt.ctrlKey});return new Wu({clickTolerance:Xe,move:(qt,Wt)=>({around:Wt,panDelta:Wt.sub(qt)}),activateOnStart:!0,moveStateManager:nt,enable:Qe,assignEvents:Zf})})(w),Cr=new Zu(w,B);B.dragPan=new wn(Q,yr,Cr),this._add("mousePan",yr),this._add("touchPan",Cr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let ve=new ff,xe=new vu;B.touchZoomRotate=new Yi(Q,xe,ve,ut),this._add("touchRotate",ve,["touchPan","touchZoom"]),this._add("touchZoom",xe,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Ie=B.scrollZoom=new Kr(B,(()=>this._triggerRenderFrame()));this._add("scrollZoom",Ie,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let ze=B.keyboard=new Zt(B);this._add("keyboard",ze),w.interactive&&w.keyboard&&B.keyboard.enable(),this._add("blockableMapEvent",new Cs(B))}_add(w,B,Q){this._handlers.push({handlerName:w,handler:B,allowed:Q}),this._handlersById[w]=B}stop(w){if(!this._updatingCamera){for(let{handler:B}of this._handlers)B.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!an(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,B,Q){for(let ee in w)if(ee!==Q&&(!B||B.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let B=[];for(let Q of w)this._el.contains(Q.target)&&B.push(Q);return B}mergeHandlerResult(w,B,Q,ee,le){if(!Q)return;a.e(w,Q);let Fe={handlerName:ee,originalEvent:Q.originalEvent||le};Q.zoomDelta!==void 0&&(B.zoom=Fe),Q.panDelta!==void 0&&(B.drag=Fe),Q.pitchDelta!==void 0&&(B.pitch=Fe),Q.bearingDelta!==void 0&&(B.rotate=Fe)}_applyChanges(){let w={},B={},Q={};for(let[ee,le,Fe]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(B,le),a.e(Q,Fe);this._updateMapTransform(w,B,Q),this._changes=[]}_updateMapTransform(w,B,Q){let ee=this._map,le=ee._getTransformForUpdate(),Fe=ee.terrain;if(!(ta(w)||Fe&&this._terrainMovement))return this._fireEvents(B,Q,!0);let{panDelta:Ze,zoomDelta:ut,bearingDelta:Mt,pitchDelta:Jt,around:$t,pinchAround:yr}=w;yr!==void 0&&($t=yr),ee._stop(!0),$t=$t||ee.transform.centerPoint;let Cr=le.pointLocation(Ze?$t.sub(Ze):$t);Mt&&(le.bearing+=Mt),Jt&&(le.pitch+=Jt),ut&&(le.zoom+=ut),Fe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?le.center=le.pointLocation(le.centerPoint.sub(Ze)):le.setLocationAtPoint(Cr,$t):(this._terrainMovement=!0,this._map._elevationFreeze=!0,le.setLocationAtPoint(Cr,$t)):le.setLocationAtPoint(Cr,$t),ee._applyUpdatedTransform(le),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,Q,!0)}_fireEvents(w,B,Q){let ee=an(this._eventsInProgress),le=an(w),Fe={};for(let $t in w){let{originalEvent:yr}=w[$t];this._eventsInProgress[$t]||(Fe[`${$t}start`]=yr),this._eventsInProgress[$t]=w[$t]}!ee&&le&&this._fireEvent("movestart",le.originalEvent);for(let $t in Fe)this._fireEvent($t,Fe[$t]);le&&this._fireEvent("move",le.originalEvent);for(let $t in w){let{originalEvent:yr}=w[$t];this._fireEvent($t,yr)}let Ze={},ut;for(let $t in this._eventsInProgress){let{handlerName:yr,originalEvent:Cr}=this._eventsInProgress[$t];this._handlersById[yr].isActive()||(delete this._eventsInProgress[$t],ut=B[yr]||Cr,Ze[`${$t}end`]=ut)}for(let $t in Ze)this._fireEvent($t,Ze[$t]);let Mt=an(this._eventsInProgress),Jt=(ee||le)&&!Mt;if(Jt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let $t=this._map._getTransformForUpdate();$t.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform($t)}if(Q&&Jt){this._updatingCamera=!0;let $t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),yr=Cr=>Cr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Fi("renderFrame",{timeStamp:w})),this._applyChanges()}))}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Ra extends a.E{constructor(w,B){super(),this._renderFrameCallback=()=>{let Q=Math.min((u.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=B.bearingSnap,this.on("moveend",(()=>{delete this._requestedCameraState}))}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,B){return this.jumpTo({center:w},B)}panBy(w,B,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},B),Q)}panTo(w,B,Q){return this.easeTo(a.e({center:w},B),Q)}getZoom(){return this.transform.zoom}setZoom(w,B){return this.jumpTo({zoom:w},B),this}zoomTo(w,B,Q){return this.easeTo(a.e({zoom:w},B),Q)}zoomIn(w,B){return this.zoomTo(this.getZoom()+1,w,B),this}zoomOut(w,B){return this.zoomTo(this.getZoom()-1,w,B),this}getBearing(){return this.transform.bearing}setBearing(w,B){return this.jumpTo({bearing:w},B),this}getPadding(){return this.transform.padding}setPadding(w,B){return this.jumpTo({padding:w},B),this}rotateTo(w,B,Q){return this.easeTo(a.e({bearing:w},B),Q)}resetNorth(w,B){return this.rotateTo(0,a.e({duration:1e3},w),B),this}resetNorthPitch(w,B){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),B),this}snapToNorth(w,B){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(le,Ie,nr)),this._rotating&&(ee.bearing=a.y.number(Fe,Mt,nr)),this._pitching&&(ee.pitch=a.y.number(Ze,Jt,nr)),this._padding&&(ee.interpolatePadding(ut,$t,nr),Cr=ee.centerPoint.add(yr)),this.terrain&&!w.freezeElevation&&this._updateElevation(nr),nt)ee.setLocationAtPoint(nt,qt);else{let fr=ee.zoomScale(ee.zoom-le),br=Ie>le?Math.min(2,Xe):Math.max(.5,Xe),Fr=Math.pow(br,1-nr),Hr=ee.unproject(ze.add(Qe.mult(nr*Fr)).mult(fr));ee.setLocationAtPoint(ee.renderWorldCopies?Hr.wrap():Hr,Cr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(B)}),(nr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,nr)}),w),this}_prepareEase(w,B,Q={}){this._moving=!0,B||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let B=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&B!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(B-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=B}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let B=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(B.lngLat,w.zoom);if(B.altitudethis._elevateCameraIfInsideTerrain(ee))),this.transformCameraUpdate&&B.push((ee=>this.transformCameraUpdate(ee))),!B.length)return;let Q=w.clone();for(let ee of B){let le=Q.clone(),{center:Fe,zoom:Ze,pitch:ut,bearing:Mt,elevation:Jt}=ee(le);Fe&&(le.center=Fe),Ze!==void 0&&(le.zoom=Ze),ut!==void 0&&(le.pitch=ut),Mt!==void 0&&(le.bearing=Mt),Jt!==void 0&&(le.elevation=Jt),Q.apply(le)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,B){if(this._easeId&&B&&this._easeId===B)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),le&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,B){var Q;if(!w.essential&&u.prefersReducedMotion){let Ln=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ln,B)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),le=ee.zoom,Fe=ee.bearing,Ze=ee.pitch,ut=ee.padding,Mt="bearing"in w?this._normalizeBearing(w.bearing,Fe):Fe,Jt="pitch"in w?+w.pitch:Ze,$t="padding"in w?w.padding:ee.padding,yr=a.P.convert(w.offset),Cr=ee.centerPoint.add(yr),ve=ee.pointLocation(Cr),{center:xe,zoom:Ie}=ee.getConstrained(a.N.convert(w.center||ve),(Q=w.zoom)!==null&&Q!==void 0?Q:le);this._normalizeCenter(xe,ee);let ze=ee.zoomScale(Ie-le),Qe=ee.project(ve),Xe=ee.project(xe).sub(Qe),nt=w.curve,qt=Math.max(ee.width,ee.height),Wt=qt/ze,nr=Xe.mag();if("minZoom"in w){let Ln=a.ac(Math.min(w.minZoom,le,Ie),ee.minZoom,ee.maxZoom),Kn=qt/ee.zoomScale(Ln-le);nt=Math.sqrt(Kn/nr*2)}let fr=nt*nt;function br(Ln){let Kn=(Wt*Wt-qt*qt+(Ln?-1:1)*fr*fr*nr*nr)/(2*(Ln?Wt:qt)*fr*nr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Fr(Ln){return(Math.exp(Ln)-Math.exp(-Ln))/2}function Hr(Ln){return(Math.exp(Ln)+Math.exp(-Ln))/2}let ri=br(!1),Ci=function(Ln){return Hr(ri)/Hr(ri+nt*Ln)},cn=function(Ln){return qt*((Hr(ri)*(Fr(Kn=ri+nt*Ln)/Hr(Kn))-Fr(ri))/fr)/nr;var Kn},sn=(br(!0)-ri)/nt;if(Math.abs(nr)<1e-6||!isFinite(sn)){if(Math.abs(qt-Wt)<1e-6)return this.easeTo(w,B);let Ln=Wt0,Ci=Kn=>Math.exp(Ln*nt*Kn)}return w.duration="duration"in w?+w.duration:1e3*sn/("screenSpeed"in w?+w.screenSpeed/nt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Fe!==Mt,this._pitching=Jt!==Ze,this._padding=!ee.isPaddingEqual($t),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(xe),this._ease((Ln=>{let Kn=Ln*sn,Aa=1/Ci(Kn);ee.zoom=Ln===1?Ie:le+ee.scaleZoom(Aa),this._rotating&&(ee.bearing=a.y.number(Fe,Mt,Ln)),this._pitching&&(ee.pitch=a.y.number(Ze,Jt,Ln)),this._padding&&(ee.interpolatePadding(ut,$t,Ln),Cr=ee.centerPoint.add(yr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ln);let fa=Ln===1?xe:ee.unproject(Qe.add(Xe.mult(cn(Kn))).mult(Aa));ee.setLocationAtPoint(ee.renderWorldCopies?fa.wrap():fa,Cr),this._applyUpdatedTransform(ee),this._fireMoveEvents(B)}),(()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B)}),w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,B){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,B)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,B,Q){Q.animate===!1||Q.duration===0?(w(1),B()):(this._easeStart=u.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=B,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,B){w=a.b3(w,-180,180);let Q=Math.abs(w-B);return Math.abs(w-360-B)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let La={compact:!0,customAttribution:'
MapLibre'};class Ua{constructor(w=La){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=B=>{!B||B.sourceDataType!=="metadata"&&B.sourceDataType!=="visibility"&&B.dataType!=="style"&&B.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=c.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=c.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=c.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){c.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,B){let Q=this._map._getUIString(`AttributionControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map((ee=>typeof ee!="string"?"":ee))):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let B=this._map.style.sourceCaches;for(let ee in B){let le=B[ee];if(le.used||le.usedForTerrain){let Fe=le.getSource();Fe.attribution&&w.indexOf(Fe.attribution)<0&&w.push(Fe.attribution)}}w=w.filter((ee=>String(ee).trim())),w.sort(((ee,le)=>ee.length-le.length)),w=w.filter(((ee,le)=>{for(let Fe=le+1;Fe=0)return!1;return!0}));let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Zn{constructor(w={}){this._updateCompact=()=>{let B=this._container.children;if(B.length){let Q=B[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=c.create("div","maplibregl-ctrl");let B=c.create("a","maplibregl-ctrl-logo");return B.target="_blank",B.rel="noopener nofollow",B.href="https://maplibre.org/",B.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),B.setAttribute("rel","noopener nofollow"),this._container.appendChild(B),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){c.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class Dn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let B=++this._id;return this._queue.push({callback:w,id:B,cancelled:!1}),B}remove(w){let B=this._currentlyRunning,Q=B?this._queue.concat(B):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let B=this._currentlyRunning=this._queue;this._queue=[];for(let Q of B)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ka=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class bo extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,B){this.sourceCache.update(w,B),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:B}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new Tt(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let B in this._tiles){let Q=this._tiles[B];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map((w=>this.getTileByID(w)))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let B={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16),a.aP(le.posMatrix,0,a.X,0,a.X,0,1),B[Q]=le}else if(ee.canonical.isChildOf(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let Fe=ee.canonical.z-w.canonical.z,Ze=ee.canonical.x-(ee.canonical.x>>Fe<>Fe<>Fe;a.aP(le.posMatrix,0,Mt,0,Mt,0,1),a.J(le.posMatrix,le.posMatrix,[-Ze*Mt,-ut*Mt,0]),B[Q]=le}else if(w.canonical.isChildOf(ee.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let Fe=w.canonical.z-ee.canonical.z,Ze=w.canonical.x-(w.canonical.x>>Fe<>Fe<>Fe;a.aP(le.posMatrix,0,a.X,0,a.X,0,1),a.J(le.posMatrix,le.posMatrix,[Ze*Mt,ut*Mt,0]),a.K(le.posMatrix,le.posMatrix,[1/2**Fe,1/2**Fe,0]),B[Q]=le}}return B}getSourceTile(w,B){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!le||!le.dem);)le=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return le}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter((B=>B.timeAdded>=w))}}class Zo{constructor(w,B,Q){this.painter=w,this.sourceCache=new bo(B),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,B,Q,ee=a.X){var le;if(!(B>=0&&B=0&&Qw.canonical.z&&(w.canonical.z>=ee?le=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Fe=w.canonical.x-(w.canonical.x>>le<>le<>8<<4|le>>8,B[Fe+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(B.buffer)),ee=new g(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let B=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,le=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Fe=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),Ze=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(le,Ze-Fe-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null);let ut=B[0]+(B[2]>>4<<8),Mt=B[1]+((15&B[2])<<8),Jt=this.coordsIndex[255-B[3]],$t=Jt&&this.sourceCache.getTileByID(Jt);if(!$t)return null;let yr=this._coordsTextureSize,Cr=(1<<$t.tileID.canonical.z)*yr;return new a.Z(($t.tileID.canonical.x*yr+ut)/Cr+$t.tileID.wrap,($t.tileID.canonical.y*yr+Mt)/Cr,this.getElevation($t.tileID,ut,Mt,yr))}depthAtPoint(w){let B=new Uint8Array(4),Q=this.painter.context,ee=Q.gl;return Q.bindFramebuffer.set(this.getFramebuffer("depth").framebuffer),ee.readPixels(w.x,this.painter.height/devicePixelRatio-w.y-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null),(B[0]/16777216+B[1]/65536+B[2]/256+B[3])/256}getTerrainMesh(){if(this._mesh)return this._mesh;let w=this.painter.context,B=new a.bd,Q=new a.aY,ee=this.meshSize,le=a.X/ee,Fe=ee*ee;for(let $t=0;$t<=ee;$t++)for(let yr=0;yr<=ee;yr++)B.emplaceBack(yr*le,$t*le,0);for(let $t=0;$tw.id!==B)),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let B of this._recentlyUsed)if(!this._objects[B].inUse)return this._objects[B];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse))===!1}}let as={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class ws{constructor(w,B){this.painter=w,this.terrain=B,this.pool=new Ss(w.context,30,B.sourceCache.tileSize*B.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,B){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter((Q=>!w._layers[Q].isHidden(B))),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let le of ee){let Fe=this.terrain.sourceCache.getTerrainCoords(le);for(let Ze in Fe)this._coordsDescendingInv[Q][Ze]||(this._coordsDescendingInv[Q][Ze]=[]),this._coordsDescendingInv[Q][Ze].push(Fe[Ze])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],le=ee.source;if(as[ee.type]&&!this._coordsDescendingInvStr[le]){this._coordsDescendingInvStr[le]={};for(let Fe in this._coordsDescendingInv[le])this._coordsDescendingInvStr[le][Fe]=this._coordsDescendingInv[le][Fe].map((Ze=>Ze.key)).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let le=this._coordsDescendingInvStr[ee][Q.tileID.key];le&&le!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let B=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(as[B]&&(this._prevType&&as[this._prevType]||this._stacks.push([]),this._prevType=B,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(as[this._prevType]||as[B]&&ee){this._prevType=B;let le=this._stacks.length-1,Fe=this._stacks[le]||[];for(let Ze of this._renderableTiles){if(this.pool.isFull()&&(js(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Ze),Ze.rtt[le]){let Mt=this.pool.getObjectForId(Ze.rtt[le].id);if(Mt.stamp===Ze.rtt[le].stamp){this.pool.useObject(Mt);continue}}let ut=this.pool.getOrCreateFreeObject();this.pool.useObject(ut),this.pool.stampObject(ut),Ze.rtt[le]={id:ut.id,stamp:ut.stamp},Q.context.bindFramebuffer.set(ut.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Mt=0;Mt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},va={showCompass:!0,showZoom:!0,visualizePitch:!1};class no{constructor(w,B,Q=!1){this.mousedown=Fe=>{this.startMouse(a.e({},Fe,{ctrlKey:!0,preventDefault:()=>Fe.preventDefault()}),c.mousePos(this.element,Fe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Fe=>{this.moveMouse(Fe,c.mousePos(this.element,Fe))},this.mouseup=Fe=>{this.mouseRotate.dragEnd(Fe),this.mousePitch&&this.mousePitch.dragEnd(Fe),this.offTemp()},this.touchstart=Fe=>{Fe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,Fe.targetTouches)[0],this.startTouch(Fe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=Fe=>{Fe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,Fe.targetTouches)[0],this.moveTouch(Fe,this._lastPos))},this.touchend=Fe=>{Fe.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),le=w.dragRotate._mousePitch.getClickTolerance();this.element=B,this.mouseRotate=Wl({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Fe,clickTolerance:Ze,bearingDegreesPerPixelMoved:ut=.8})=>{let Mt=new cf;return new Wu({clickTolerance:Ze,move:(Jt,$t)=>({bearingDelta:($t.x-Jt.x)*ut}),moveStateManager:Mt,enable:Fe,assignEvents:Ls})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=ah({clickTolerance:le,enable:!0}),this.touchPitch=(({enable:Fe,clickTolerance:Ze,pitchDegreesPerPixelMoved:ut=-.5})=>{let Mt=new cf;return new Wu({clickTolerance:Ze,move:(Jt,$t)=>({pitchDelta:($t.y-Jt.y)*ut}),moveStateManager:Mt,enable:Fe,assignEvents:Ls})})({clickTolerance:le,enable:!0})),c.addEventListener(B,"mousedown",this.mousedown),c.addEventListener(B,"touchstart",this.touchstart,{passive:!1}),c.addEventListener(B,"touchcancel",this.reset)}startMouse(w,B){this.mouseRotate.dragStart(w,B),this.mousePitch&&this.mousePitch.dragStart(w,B),c.disableDrag()}startTouch(w,B){this.touchRotate.dragStart(w,B),this.touchPitch&&this.touchPitch.dragStart(w,B),c.disableDrag()}moveMouse(w,B){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:le}=this.mousePitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}moveTouch(w,B){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:le}=this.touchPitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}off(){let w=this.element;c.removeEventListener(w,"mousedown",this.mousedown),c.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend),c.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){c.enableDrag(),c.removeEventListener(window,"mousemove",this.mousemove),c.removeEventListener(window,"mouseup",this.mouseup),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend)}}let ys;function rs(ue,w,B){let Q=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let ee=new a.N(ue.lng-360,ue.lat),le=new a.N(ue.lng+360,ue.lat),Fe=B.locationPoint(ue).distSqr(w);B.locationPoint(ee).distSqr(w)180;){let ee=B.locationPoint(ue);if(ee.x>=0&&ee.y>=0&&ee.x<=B.width&&ee.y<=B.height)break;ue.lng>B.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==Q.lng&&B.locationPoint(ue).y>B.height/2-B.getHorizon()?ue:Q}let Ql={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Cu(ue,w,B){let Q=ue.classList;for(let ee in Ql)Q.remove(`maplibregl-${B}-anchor-${ee}`);Q.add(`maplibregl-${B}-anchor-${w}`)}class Yu extends a.E{constructor(w){if(super(),this._onKeyPress=B=>{let Q=B.code,ee=B.charCode||B.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=B=>{let Q=B.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=B=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((B==null?void 0:B.type)==="terrain"||(B==null?void 0:B.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?rs(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let le="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?le=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(le=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Fe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Fe="rotateX(0deg)":this._pitchAlignment==="map"&&(Fe=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||B&&B.type!=="moveend"||(this._pos=this._pos.round()),c.setTransform(this._element,`${Ql[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Fe} ${le}`),u.frameAsync(new AbortController).then((()=>{this._updateOpacity(B&&B.type==="moveend")})).catch((()=>{}))},this._onMove=B=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=B.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=B.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=B=>{this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=c.create("div");let B=c.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;B.setAttributeNS(null,"display","block"),B.setAttributeNS(null,"height",`${Q}px`),B.setAttributeNS(null,"width",`${ee}px`),B.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let le=c.createNS("http://www.w3.org/2000/svg","g");le.setAttributeNS(null,"stroke","none"),le.setAttributeNS(null,"stroke-width","1"),le.setAttributeNS(null,"fill","none"),le.setAttributeNS(null,"fill-rule","evenodd");let Fe=c.createNS("http://www.w3.org/2000/svg","g");Fe.setAttributeNS(null,"fill-rule","nonzero");let Ze=c.createNS("http://www.w3.org/2000/svg","g");Ze.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ze.setAttributeNS(null,"fill","#000000");let ut=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let ze of ut){let Qe=c.createNS("http://www.w3.org/2000/svg","ellipse");Qe.setAttributeNS(null,"opacity","0.04"),Qe.setAttributeNS(null,"cx","10.5"),Qe.setAttributeNS(null,"cy","5.80029008"),Qe.setAttributeNS(null,"rx",ze.rx),Qe.setAttributeNS(null,"ry",ze.ry),Ze.appendChild(Qe)}let Mt=c.createNS("http://www.w3.org/2000/svg","g");Mt.setAttributeNS(null,"fill",this._color);let Jt=c.createNS("http://www.w3.org/2000/svg","path");Jt.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Mt.appendChild(Jt);let $t=c.createNS("http://www.w3.org/2000/svg","g");$t.setAttributeNS(null,"opacity","0.25"),$t.setAttributeNS(null,"fill","#000000");let yr=c.createNS("http://www.w3.org/2000/svg","path");yr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),$t.appendChild(yr);let Cr=c.createNS("http://www.w3.org/2000/svg","g");Cr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Cr.setAttributeNS(null,"fill","#FFFFFF");let ve=c.createNS("http://www.w3.org/2000/svg","g");ve.setAttributeNS(null,"transform","translate(8.0, 8.0)");let xe=c.createNS("http://www.w3.org/2000/svg","circle");xe.setAttributeNS(null,"fill","#000000"),xe.setAttributeNS(null,"opacity","0.25"),xe.setAttributeNS(null,"cx","5.5"),xe.setAttributeNS(null,"cy","5.5"),xe.setAttributeNS(null,"r","5.4999962");let Ie=c.createNS("http://www.w3.org/2000/svg","circle");Ie.setAttributeNS(null,"fill","#FFFFFF"),Ie.setAttributeNS(null,"cx","5.5"),Ie.setAttributeNS(null,"cy","5.5"),Ie.setAttributeNS(null,"r","5.4999962"),ve.appendChild(xe),ve.appendChild(Ie),Fe.appendChild(Ze),Fe.appendChild(Mt),Fe.appendChild($t),Fe.appendChild(Cr),Fe.appendChild(ve),B.appendChild(Fe),B.setAttributeNS(null,"height",Q*this._scale+"px"),B.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(B),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",(B=>{B.preventDefault()})),this._element.addEventListener("mousedown",(B=>{B.preventDefault()})),Cu(this._element,this._anchor,"marker"),w&&w.className)for(let B of w.className.split(" "))this._element.classList.add(B);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),c.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var B,Q;if(!(!((B=this._map)===null||B===void 0)&&B.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout((()=>{this._opacityTimeout=null}),100)}let ee=this._map,le=ee.terrain.depthAtPoint(this._pos),Fe=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Fe)-le<.006)return void(this._element.style.opacity=this._opacity);let Ze=-this._offset.y/ee.transform._pixelPerMeter,ut=Math.sin(ee.getPitch()*Math.PI/180)*Ze,Mt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Jt=ee.transform.lngLatToCameraDepth(this._lngLat,Fe+ut)-Mt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Jt&&this._popup.remove(),this._element.style.opacity=Jt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,B){return w===void 0&&B===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),B!==void 0&&(this._opacityWhenCovered=B),this._map&&this._updateOpacity(!0),this}}let Nc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},pu=0,Uc=!1,xu={maxWidth:100,unit:"metric"};function Ac(ue,w,B){let Q=B&&B.maxWidth||100,ee=ue._container.clientHeight/2,le=ue.unproject([0,ee]),Fe=ue.unproject([Q,ee]),Ze=le.distanceTo(Fe);if(B&&B.unit==="imperial"){let ut=3.2808*Ze;ut>5280?Va(w,Q,ut/5280,ue._getUIString("ScaleControl.Miles")):Va(w,Q,ut,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Va(w,Q,Ze/1852,ue._getUIString("ScaleControl.NauticalMiles")):Ze>=1e3?Va(w,Q,Ze/1e3,ue._getUIString("ScaleControl.Kilometers")):Va(w,Q,Ze,ue._getUIString("ScaleControl.Meters"))}function Va(ue,w,B,Q){let ee=(function(le){let Fe=Math.pow(10,`${Math.floor(le)}`.length-1),Ze=le/Fe;return Ze=Ze>=10?10:Ze>=5?5:Ze>=3?3:Ze>=2?2:Ze>=1?1:(function(ut){let Mt=Math.pow(10,Math.ceil(-Math.log(ut)/Math.LN10));return Math.round(ut*Mt)/Mt})(Ze),Fe*Ze})(B);ue.style.width=w*(ee/B)+"px",ue.innerHTML=`${ee} ${Q}`}let oo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Vc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function hc(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return hc(new a.P(0,0))}let Ku=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=Ua,i.BoxZoomHandler=ku,i.CanvasSource=rr,i.CooperativeGesturesHandler=$i,i.DoubleClickZoomHandler=Mi,i.DragPanHandler=wn,i.DragRotateHandler=On,i.EdgeInsets=hu,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let B=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=B==null?void 0:B.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)B=B.shadowRoot.fullscreenElement;B===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){c.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=c.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);c.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=at,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let B=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),le=a.e({bearing:ee},this.options.fitBoundsOptions),Fe=ce.fromLngLat(B,Q);this._map.fitBounds(Fe,le,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let B=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(B).addTo(this._map),this._userLocationDotMarker.setLngLat(B).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Uc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",(w=>w.preventDefault())),this._geolocateButton=c.create("button","maplibregl-ctrl-geolocate",this._container),c.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}else{let B=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=c.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Yu({element:this._dotElement}),this._circleElement=c.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yu({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",(()=>this.trigger())),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(B=>{B.geolocateSource||this._watchState!=="ACTIVE_LOCK"||B.originalEvent&&B.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))}))}},this.options=a.e({},Nc,ue)}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),(function(){return a._(this,arguments,void 0,(function*(w=!1){if(ys!==void 0&&!w)return ys;if(window.navigator.permissions===void 0)return ys=!!window.navigator.geolocation,ys;try{ys=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(B){ys=!!window.navigator.geolocation}return ys}))})().then((w=>this._finishSetupUI(w))),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),c.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,pu=0,Uc=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),B=ue.coords;return w&&(B.longitudew.getEast()||B.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),B=ue.getNorthEast(),Q=w.distanceTo(B),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":pu--,Uc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),pu++,pu>1?(ue={maximumAge:6e5,timeout:0},Uc=!0):(ue=this.options.positionOptions,Uc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=Mh,i.ImageSource=ar,i.KeyboardHandler=Zt,i.LngLatBounds=ce,i.LogoControl=Zn,i.Map=class extends Ra{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Ws),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new il(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new Dn,this._controls=[],this._mapId=a.a4(),this._contextLost=B=>{B.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:B}))},this._contextRestored=B=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:B}))},this._onMapScroll=B=>{if(B.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Ho),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=p.addThrottleControl((()=>this.isMoving())),this._requestManager=new k(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",(()=>this._update(!1))).on("moveend",(()=>this._update(!1))).on("zoom",(()=>this._update(!0))).on("terrain",(()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)})).once("idle",(()=>{this._idleTriggered=!0})),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let B=!1,Q=nh((ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())}),50);this._resizeObserver=new ResizeObserver((ee=>{B?Q(ee):B=!0})),this._resizeObserver.observe(this._container)}this.handlers=new Ca(this,w),this._hash=w.hash&&new Mh(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new Ua(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new Zn,w.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)})),this.on("data",(B=>{this._update(B.dataType==="style"),this.fire(new a.k(`${B.dataType}data`,B))})),this.on("dataloading",(B=>{this.fire(new a.k(`${B.dataType}dataloading`,B))})),this.on("dataabort",(B=>{this.fire(new a.k("sourcedataabort",B))}))}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let B=ue.onAdd(this);this._controls.push(ue);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(B,Q.firstChild):Q.appendChild(B),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,B,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(B,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,B,Q)}resize(ue){var w;let B=this._containerDimensions(),Q=B[0],ee=B[1],le=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,le),this.painter.resize(Q,ee,le),this.painter.overLimit()){let Ze=this.painter.context.gl;this._maxCanvasSize=[Ze.drawingBufferWidth,Ze.drawingBufferHeight];let ut=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,ut),this.painter.resize(Q,ee,ut)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Fe=!this._moving;return Fe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),Fe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),le=ue*ee,Fe=w*ee;return Math.min(le>B?B/le:1,Fe>Q?Q/Fe:1)*ee}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(ce.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,B){if(ue==="mouseenter"||ue==="mouseover"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:le=>{let Fe=w.filter((ut=>this.getLayer(ut))),Ze=Fe.length!==0?this.queryRenderedFeatures(le.point,{layers:Fe}):[];Ze.length?Q||(Q=!0,B.call(this,new jl(ue,this,le.originalEvent,{features:Ze}))):Q=!1},mouseout:()=>{Q=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:Fe=>{let Ze=w.filter((ut=>this.getLayer(ut)));(Ze.length!==0?this.queryRenderedFeatures(Fe.point,{layers:Ze}):[]).length?Q=!0:Q&&(Q=!1,B.call(this,new jl(ue,this,Fe.originalEvent)))},mouseout:Fe=>{Q&&(Q=!1,B.call(this,new jl(ue,this,Fe.originalEvent)))}}}}{let Q=ee=>{let le=w.filter((Ze=>this.getLayer(Ze))),Fe=le.length!==0?this.queryRenderedFeatures(ee.point,{layers:le}):[];Fe.length&&(ee.features=Fe,B.call(this,ee),delete ee.features)};return{layers:w,listener:B,delegates:{[ue]:Q}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,B){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let Q=this._delegatedListeners[ue];for(let ee=0;eew.includes(Fe)))){for(let Fe in le.delegates)this.off(Fe,le.delegates[Fe]);return void Q.splice(ee,1)}}}on(ue,w,B){if(B===void 0)return super.on(ue,w);let Q=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,B);this._saveDelegatedListener(ue,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(ue,w,B){if(B===void 0)return super.once(ue,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(ue,Q,B);for(let le in ee.delegates){let Fe=ee.delegates[le];ee.delegates[le]=(...Ze)=>{this._removeDelegatedListener(ue,Q,B),Fe(...Ze)}}this._saveDelegatedListener(ue,ee);for(let le in ee.delegates)this.once(le,ee.delegates[le]);return this}off(ue,w,B){return B===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,B),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let B,Q=ue instanceof a.P||Array.isArray(ue),ee=Q?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:ue)||{},ee instanceof a.P||typeof ee[0]=="number")B=[a.P.convert(ee)];else{let le=a.P.convert(ee[0]),Fe=a.P.convert(ee[1]);B=[le,new a.P(Fe.x,le.y),Fe,new a.P(le.x,Fe.y),le]}return this.style.queryRenderedFeatures(B,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",(()=>this._updateStyle(ue,w)));let B=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new Ha(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,B):this.style.loadJSON(ue,w,B),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Ha(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let B=this._requestManager.transformRequest(ue,"Style");a.h(B,new AbortController).then((Q=>{this._updateDiff(Q.data,w)})).catch((Q=>{Q&&this.fire(new a.j(Q))}))}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(B){a.w(`Unable to perform style diff: ${B.message||B.error||B}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let B in this.style._layers){let Q=this.style._layers[B];Q.type==="hillshade"&&Q.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Zo(this.painter,w,ue),this.painter.renderToTexture=new ws(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=B=>{B.dataType==="style"?this.terrain.sourceCache.freeRtt():B.dataType==="source"&&B.tile&&(B.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(B.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let B=ue[w]._tiles;for(let Q in B){let ee=B[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,B={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:le,stretchY:Fe,content:Ze,textFitWidth:ut,textFitHeight:Mt}=B;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:Jt,height:$t,data:yr}=w,Cr=w;return this.style.addImage(ue,{data:new a.R({width:Jt,height:$t},new Uint8Array(yr)),pixelRatio:Q,stretchX:le,stretchY:Fe,content:Ze,textFitWidth:ut,textFitHeight:Mt,sdf:ee,version:0,userImage:Cr}),Cr.onAdd&&Cr.onAdd(this,ue),this}}{let{width:Jt,height:$t,data:yr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Jt,height:$t},yr),pixelRatio:Q,stretchX:le,stretchY:Fe,content:Ze,textFitWidth:ut,textFitHeight:Mt,sdf:ee,version:0})}}updateImage(ue,w){let B=this.style.getImage(ue);if(!B)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?u.getImageData(w):w,{width:ee,height:le,data:Fe}=Q;if(ee===void 0||le===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==B.data.width||le!==B.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let Ze=!(w instanceof HTMLImageElement||a.b(w));return B.data.replace(Fe,Ze),this.style.updateImage(ue,B),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return p.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,B){return this.style.setLayerZoomRange(ue,w,B),this._update(!0)}setFilter(ue,w,B={}){return this.style.setFilter(ue,w,B),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,B,Q={}){return this.style.setPaintProperty(ue,w,B,Q),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,B,Q={}){return this.style.setLayoutProperty(ue,w,B,Q),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,B={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,B,(Q=>{Q||this._update(!0)})),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,(B=>{B||this._update(!0)})),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=c.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=c.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let B=this._containerDimensions(),Q=this._getClampedPixelRatio(B[0],B[1]);this._resizeCanvas(B[0],B[1],Q);let ee=this._controlContainer=c.create("div","maplibregl-control-container",ue),le=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((Fe=>{le[Fe]=c.create("div",`maplibregl-ctrl-${Fe} `,ee)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,B){this._canvas.width=Math.floor(B*ue),this._canvas.height=Math.floor(B*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",(Q=>{w={requestedAttributes:ue},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)}),{once:!0});let B=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!B){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Dc(B,this.transform),f.testSupport(B)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let B=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,le=u.now();this.style.zoomHistory.update(ee,le);let Fe=new a.z(ee,{now:le,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Ze=Fe.crossFadingFactor();Ze===1&&Ze===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Ze),this.style.update(Fe)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||B)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let B of this._controls)B.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),p.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),c.remove(this._canvasContainer),c.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then((ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)})).catch((()=>{})))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return ml}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=jl,i.MapTouchEvent=uf,i.MapWheelEvent=Xh,i.Marker=Yu,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),B=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=B,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",B.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,B)=>{let Q=this._map._getUIString(`NavigationControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},va,ue),this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",(w=>w.preventDefault())),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",(w=>this._map.zoomIn({},{originalEvent:w}))),c.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",(w=>this._map.zoomOut({},{originalEvent:w}))),c.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",(w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})})),this._compassIcon=c.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new no(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){c.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let B=c.create("button",ue,this._container);return B.type="button",B.addEventListener("click",w),B}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&c.remove(this._content),this._container&&(c.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var B;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=c.create("div","maplibregl-popup",this._map.getContainer()),this._tip=c.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let Ze of this.options.className.split(" "))this._container.classList.add(Ze);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?rs(this._lngLat,this._flatPos,this._map.transform):(B=this._lngLat)===null||B===void 0?void 0:B.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,le=hc(this.options.offset);if(!ee){let Ze=this._container.offsetWidth,ut=this._container.offsetHeight,Mt;Mt=Q.y+le.bottom.ythis._map.transform.height-ut?["bottom"]:[],Q.xthis._map.transform.width-Ze/2&&Mt.push("right"),ee=Mt.length===0?"bottom":Mt.join("-")}let Fe=Q.add(le[ee]);this.options.subpixelPositioning||(Fe=Fe.round()),c.setTransform(this._container,`${Ql[ee]} translate(${Fe.x}px,${Fe.y}px)`),Cu(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(oo),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),B=document.createElement("body"),Q;for(B.innerHTML=ue;Q=B.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=c.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=c.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let ue=this._container.querySelector(Vc);ue&&ue.focus()}},i.RasterDEMTileSource=Ht,i.RasterTileSource=mt,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Ac(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ac(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},xu),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){c.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Kr,i.Style=Ha,i.TerrainControl=class{constructor(ue){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ue}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=c.create("button","maplibregl-ctrl-terrain",this._container),c.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){c.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bc,i.TwoFingersTouchRotateHandler=ff,i.TwoFingersTouchZoomHandler=vu,i.TwoFingersTouchZoomRotateHandler=Yi,i.VectorTileSource=lt,i.VideoSource=Vt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,(function*(){if(je(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,Q)=>{tt[B]=Q})(ue,w)})),i.clearPrewarmedResources=function(){let ue=ge;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(_e),ge=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return St().getRTLTextPluginStatus()},i.getVersion=function(){return Ku},i.getWorkerCount=function(){return Ee.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return be().broadcast("IS",ue)},i.prewarm=function(){Se().acquire(_e)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return St().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Ee.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}}));var n=e;return n}))});var Eje=ye((v2r,Mje)=>{"use strict";var yw=Pr(),lZt=Zl().sanitizeHTML,uZt=zJ(),Tje=Ix();function Aje(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=Tje.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var sg=Aje.prototype;sg.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=y7(t)};sg.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};sg.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};sg.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};sg.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};sg.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};sg.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!y7(e)){var r=cZt(e);t.addSource(this.idSource,r)}};sg.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function Sje(e){var t={},r={};switch(e.type){case"circle":yw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":yw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":yw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=uZt(n.textposition,n.iconsize);yw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),yw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":yw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function cZt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=lZt(e.sourceattribution)),n}Mje.exports=function(t,r,n){var i=new Aje(t,r);return i.update(n),i}});var Fje=ye((p2r,Dje)=>{"use strict";var VJ=wje(),GJ=Pr(),Lje=ey(),kje=Oa(),fZt=ho(),hZt=yv(),_7=ef(),Pje=Cg(),dZt=Pje.drawMode,vZt=Pje.selectMode,pZt=qf().prepSelect,gZt=qf().clearOutline,mZt=qf().clearSelectionsCache,yZt=qf().selectOnClick,_w=Ix(),_Zt=Eje();function Ije(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Hh=Ije.prototype;Hh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Hh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=Rje(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new VJ.Map({container:i.div,style:o.style,center:HJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new VJ.AttributionControl({compact:!0})),c={};u.on("styleimagemissing",function(h){var d=h.id;if(!c[d]&&d.includes("-15")){c[d]=!0;var v=new Image(15,15);v.onload=function(){u.addImage(d,v)},v.crossOrigin="Anonymous",v.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),u.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(h){u.once("load",h)})),f=f.concat(Lje.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=Rje(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(Lje.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&yZt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&_7.click(n,l.originalEvent)}}};Hh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=GJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),vZt(a)||dZt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){pZt(l,u,c,t.dragOptions,a)},hZt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Hh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Hh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var jJ=Pr(),bZt=O_(),wZt=Kd(),zje=rC();qje.exports=function(t,r,n){bZt(t,r,n,{type:"map",attributes:zje,handleDefaults:TZt,partition:"y"})};function TZt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,wZt(e,t,{name:"layers",handleItemDefaults:AZt}),t._input=e}function AZt(e,t){function r(l,u){return jJ.coerce(e,t,zje.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",jJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),jJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var b7=ye(u0=>{"use strict";var x7=Pr(),Bje=x7.strTranslate,SZt=x7.strScale,MZt=Id().getSubplotCalcData,EZt=Wp(),kZt=Fa(),Nje=So(),CZt=Zl(),LZt=Fje(),Rx="map";u0.name=Rx;u0.attr="subplot";u0.idRoot=Rx;u0.idRegex=u0.attrRegex=x7.counterRegex(Rx);u0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};u0.layoutAttributes=rC();u0.supplyLayoutDefaults=Oje();u0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Rx],a=0;am/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(CZt.convertToTspans,e),v=Nje.bBox(d.node())}d.attr("transform",Bje(-3,-v.height+8)),h.insert("rect",".static-attribution").attr({x:-v.width-6,y:-v.height-3,width:v.width+6,height:v.height+3,fill:"rgba(255, 255, 255, 0.75)"});var p=1;v.width+6>m&&(p=m/(v.width+6));var k=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",Bje(k[0],k[1])+SZt(p))}};u0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Rx],n=0;n{"use strict";Uje.exports={attributes:h7(),supplyDefaults:eje(),colorbar:Qd(),formatLabels:FJ(),calc:TF(),plot:vje(),hoverPoints:m7().hoverPoints,eventData:yje(),selectPoints:xje(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:b7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var Hje=ye((_2r,Gje)=>{"use strict";Gje.exports=Vje()});var WJ=ye((x2r,jje)=>{"use strict";var b1=l5(),PZt=Tu(),{hovertemplateAttrs:IZt,templatefallbackAttrs:RZt}=Pl(),DZt=Vl(),Dx=Ao().extendFlat;jje.exports=Dx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Dx({},b1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:b1.text,hovertext:b1.hovertext,marker:{line:{color:Dx({},b1.marker.line.color,{editType:"plot"}),width:Dx({},b1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Dx({},b1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Dx({},b1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Dx({},b1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:b1.hoverinfo,hovertemplate:IZt({},{keys:["properties"]}),hovertemplatefallback:RZt(),showlegend:Dx({},DZt.showlegend,{dflt:!1})},PZt("",{cLetter:"z",editTypeOverride:"calc"}))});var Xje=ye((b2r,Wje)=>{"use strict";var oC=Pr(),FZt=td(),zZt=WJ();Wje.exports=function(t,r,n,i){function a(c,f){return oC.coerce(t,r,zZt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!oC.isArrayOrTypedArray(o)||!o.length||!oC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||oC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),FZt(t,r,i,a,{prefix:"",cLetter:"z"}),oC.coerceSelectionMarkerOpacity(r,a)}});var XJ=ye((w2r,Kje)=>{"use strict";var qZt=Eo(),w1=Pr(),OZt=tc(),BZt=So(),NZt=hx().makeBlank,Zje=ey();function UZt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:NZt()};if(!r)return a;var o=Zje.extractTraceFeature(e);if(!o)return a;var s=OZt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;w1.isArrayOrTypedArray(l.opacity)&&(c=function(k){var M=k.mo;return qZt(M)?+w1.constrain(M,0,1):0});var f;w1.isArrayOrTypedArray(u.color)&&(f=function(k){return k.mlc});var h;w1.isArrayOrTypedArray(u.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var $je=XJ().convert,VZt=XJ().convertOnSelect,Jje=Ix().traceLayerPrefix;function Qje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Jje+t+"-fill"],["line",Jje+t+"-line"]],this.below=null}var q5=Qje.prototype;q5.update=function(e){this._update($je(e)),e[0].trace._glTrace=this};q5.updateOnSelect=function(e){this._update(VZt(e))};q5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};q5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};eWe.exports=function(t,r){var n=r[0].trace,i=new Qje(t,n.uid),a=i.sourceId,o=$je(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var iWe=ye((A2r,rWe)=>{"use strict";rWe.exports={attributes:WJ(),supplyDefaults:Xje(),colorbar:F_(),calc:HF(),plot:tWe(),hoverPoints:WF(),eventData:XF(),selectPoints:ZF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";nWe.exports=iWe()});var YJ=ye((M2r,sWe)=>{"use strict";var GZt=Tu(),{hovertemplateAttrs:HZt,templatefallbackAttrs:jZt}=Pl(),oWe=Vl(),w7=h7(),ZJ=Ao().extendFlat;sWe.exports=ZJ({lon:w7.lon,lat:w7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:w7.text,hovertext:w7.hovertext,hoverinfo:ZJ({},oWe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:HZt(),hovertemplatefallback:jZt(),showlegend:ZJ({},oWe.showlegend,{dflt:!1})},GZt("",{cLetter:"z",editTypeOverride:"calc"}))});var uWe=ye((E2r,lWe)=>{"use strict";var WZt=Pr(),XZt=td(),ZZt=YJ();lWe.exports=function(t,r,n,i){function a(u,c){return WZt.coerce(t,r,ZZt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),XZt(t,r,i,a,{prefix:"",cLetter:"z"})}});var hWe=ye((k2r,fWe)=>{"use strict";var KJ=Eo(),YZt=Pr().isArrayOrTypedArray,JJ=fs().BADNUM,KZt=gv(),cWe=Pr()._;fWe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=YZt(a)&&a.length,s=0;s{"use strict";var JZt=Eo(),$J=Pr(),dWe=ka(),vWe=tc(),pWe=fs().BADNUM,$Zt=hx().makeBlank;gWe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:$Zt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=$J.isArrayOrTypedArray(l)&&l.length,f=$J.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=vWe.extractOpts(r),p=b.reversescale?vWe.flipScale(b.colorscale):b.colorscale,k=p[0][1],M=dWe.opacity(k)<1?k:dWe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,M];for(s=1;s{"use strict";var yWe=mWe(),QZt=Ix().traceLayerPrefix;function _We(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",QZt+t+"-heatmap"]],this.below=null}var T7=_We.prototype;T7.update=function(e){var t=this.subplot,r=this.layerList,n=yWe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};T7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};xWe.exports=function(t,r){var n=r[0].trace,i=new _We(t,n.uid),a=i.sourceId,o=yWe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var TWe=ye((P2r,wWe)=>{"use strict";var eYt=ho(),tYt=m7().hoverPoints,rYt=m7().getExtraText;wWe.exports=function(t,r,n){var i=tYt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=eYt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=rYt(s,l,o[0].t.labels),[a]}}});var SWe=ye((I2r,AWe)=>{"use strict";AWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var EWe=ye((R2r,MWe)=>{"use strict";MWe.exports={attributes:YJ(),supplyDefaults:uWe(),colorbar:F_(),formatLabels:FJ(),calc:hWe(),plot:bWe(),hoverPoints:TWe(),eventData:SWe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";kWe.exports=EWe()});var e$=ye((z2r,DWe)=>{"use strict";var iYt=ec(),nYt=Vl(),LWe=Ih(),QJ=y3(),aYt=Cc().attributes,{hovertemplateAttrs:PWe,templatefallbackAttrs:IWe}=Pl(),oYt=Tu(),sYt=vl().templatedArray,lYt=vf().descriptionOnlyNumbers,RWe=Ao().extendFlat,uYt=mc().overrideAll,F2r=DWe.exports=uYt({hoverinfo:RWe({},nYt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:QJ.hoverlabel,domain:aYt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:lYt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:iYt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:LWe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:QJ.hoverlabel,hovertemplate:PWe({},{keys:["value","label"]}),hovertemplatefallback:IWe(),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:LWe.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:QJ.hoverlabel,hovertemplate:PWe({},{keys:["value","label"]}),hovertemplatefallback:IWe(),colorscales:sYt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:RWe(oYt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var BWe=ye((q2r,OWe)=>{"use strict";var O5=Pr(),A7=e$(),cYt=ka(),FWe=fd(),fYt=Cc().defaults,zWe=TM(),qWe=vl(),hYt=Kd();OWe.exports=function(t,r,n,i){function a(T,L){return O5.coerce(t,r,A7,T,L)}var o=O5.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=qWe.newContainer(r,"node");function u(T,L){return O5.coerce(s,l,A7.node,T,L)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),zWe(s,l,u,o),u("hovertemplate"),u("align");var c=i.colorway,f=function(T){return c[T%c.length]};u("color",l.label.map(function(T,L){return cYt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=qWe.newContainer(r,"link");function v(T,L){return O5.coerce(h,d,A7.link,T,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),zWe(h,d,v,o),v("hovertemplate");var m=FWe(i.paper_bgcolor).getLuminance()<.333,b=m?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function k(T){var L=FWe(T);if(!L.isValid())return T;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=m?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(k):k(p)),v("customdata"),hYt(h,d,{name:"colorscales",handleItemDefaults:dYt}),fYt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var M;l.x.length&&l.y.length&&(M="freeform"),a("arrangement",M),O5.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function dYt(e,t){function r(n,i){return O5.coerce(e,t,A7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var t$=ye((O2r,NWe)=>{"use strict";NWe.exports=vYt;function vYt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){b=k[k.length-1];var M=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=T}else{if(n[b]===r[b]){for(var x=[],C=[],S=0,T=p.length-1;T>=0;--T){var g=p[T];if(i[g]=!1,x.push(g),C.push(s[g]),S+=s[g].length,o[g]=c.length,g===b){p.length=T;break}}c.push(x);for(var P=new Array(S),T=0;T{"use strict";var pYt=t$(),B5=Pr(),gYt=ay().wrap,sC=B5.isArrayOrTypedArray,UWe=B5.isIndex,VWe=tc();function mYt(e){var t=e.node,r=e.link,n=[],i=sC(r.color),a=sC(r.hovercolor),o=sC(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cv&&(v=r.source[c]),r.target[c]>v&&(v=r.target[c]);var m=v+1;e.node._count=m;var b,p=e.node.groups,k={};for(c=0;c0&&UWe(S,m)&&UWe(g,m)&&!(k.hasOwnProperty(S)&&k.hasOwnProperty(g)&&k[S]===k[g])){k.hasOwnProperty(g)&&(g=k[g]),k.hasOwnProperty(S)&&(S=k[S]),S=+S,g=+g,s[S]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var E=null;P&&l.hasOwnProperty(P)&&(E=l[P]),n.push({pointNumber:c,label:P,color:i?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:E,source:S,target:g,value:+C}),x.source.push(S),x.target.push(g)}}var z=m+p.length,q=sC(t.color),V=sC(t.customdata),G=[];for(c=0;cm-1,childrenNodes:[],pointNumber:c,label:Z,color:q?t.color[c]:t.color,customdata:V?t.customdata[c]:t.customdata})}var j=!1;return yYt(z,x.source,x.target)&&(j=!0),{circular:j,links:n,nodes:G,groups:p,groupLookup:k}}function yYt(e,t,r){for(var n=B5.init2dArray(e,0),i=0;i1})}GWe.exports=function(t,r){var n=mYt(r);return gYt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var WWe=ye((S7,jWe)=>{(function(e,t){typeof S7=="object"&&typeof jWe!="undefined"?t(S7):(e=e||self,t(e.d3=e.d3||{}))})(S7,function(e){"use strict";function t(C){var S=+this._x.call(null,C),g=+this._y.call(null,C);return r(this.cover(S,g),S,g,C)}function r(C,S,g,P){if(isNaN(S)||isNaN(g))return C;var E,z=C._root,q={data:P},V=C._x0,G=C._y0,Z=C._x1,j=C._y1,N,H,re,ae,_e,Ee,Ce,ge;if(!z)return C._root=q,C;for(;z.length;)if((_e=S>=(N=(V+Z)/2))?V=N:Z=N,(Ee=g>=(H=(G+j)/2))?G=H:j=H,E=z,!(z=z[Ce=Ee<<1|_e]))return E[Ce]=q,C;if(re=+C._x.call(null,z.data),ae=+C._y.call(null,z.data),S===re&&g===ae)return q.next=z,E?E[Ce]=q:C._root=q,C;do E=E?E[Ce]=new Array(4):C._root=new Array(4),(_e=S>=(N=(V+Z)/2))?V=N:Z=N,(Ee=g>=(H=(G+j)/2))?G=H:j=H;while((Ce=Ee<<1|_e)===(ge=(ae>=H)<<1|re>=N));return E[ge]=z,E[Ce]=q,C}function n(C){var S,g,P=C.length,E,z,q=new Array(P),V=new Array(P),G=1/0,Z=1/0,j=-1/0,N=-1/0;for(g=0;gj&&(j=E),zN&&(N=z));if(G>j||Z>N)return this;for(this.cover(G,Z).cover(j,N),g=0;gC||C>=E||P>S||S>=z;)switch(Z=(Sj||(V=ae.y0)>N||(G=ae.x1)=Ce)<<1|C>=Ee)&&(ae=H[H.length-1],H[H.length-1]=H[H.length-1-_e],H[H.length-1-_e]=ae)}else{var ge=C-+this._x.call(null,re.data),ie=S-+this._y.call(null,re.data),Se=ge*ge+ie*ie;if(Se=(H=(q+G)/2))?q=H:G=H,(_e=N>=(re=(V+Z)/2))?V=re:Z=re,S=g,!(g=g[Ee=_e<<1|ae]))return this;if(!g.length)break;(S[Ee+1&3]||S[Ee+2&3]||S[Ee+3&3])&&(P=S,Ce=Ee)}for(;g.data!==C;)if(E=g,!(g=g.next))return this;return(z=g.next)&&delete g.next,E?(z?E.next=z:delete E.next,this):S?(z?S[Ee]=z:delete S[Ee],(g=S[0]||S[1]||S[2]||S[3])&&g===(S[3]||S[2]||S[1]||S[0])&&!g.length&&(P?P[Ce]=g:this._root=g),this):(this._root=z,this)}function c(C){for(var S=0,g=C.length;S{(function(e,t){t(typeof M7=="object"&&typeof XWe!="undefined"?M7:e.d3=e.d3||{})})(M7,(function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(m){return t+m in this},get:function(m){return this[t+m]},set:function(m,b){return this[t+m]=b,this},remove:function(m){var b=t+m;return b in this&&delete this[b]},clear:function(){for(var m in this)m[0]===t&&delete this[m]},keys:function(){var m=[];for(var b in this)b[0]===t&&m.push(b.slice(1));return m},values:function(){var m=[];for(var b in this)b[0]===t&&m.push(this[b]);return m},entries:function(){var m=[];for(var b in this)b[0]===t&&m.push({key:b.slice(1),value:this[b]});return m},size:function(){var m=0;for(var b in this)b[0]===t&&++m;return m},empty:function(){for(var m in this)if(m[0]===t)return!1;return!0},each:function(m){for(var b in this)b[0]===t&&m(this[b],b.slice(1),this)}};function n(m,b){var p=new r;if(m instanceof r)m.each(function(x,C){p.set(C,x)});else if(Array.isArray(m)){var k=-1,M=m.length,T;if(b==null)for(;++k=m.length)return p!=null&&x.sort(p),k!=null?k(x):x;for(var P=-1,E=x.length,z=m[C++],q,V,G=n(),Z,j=S();++Pm.length)return x;var S,g=b[C-1];return k!=null&&C>=m.length?S=x.entries():(S=[],x.each(function(P,E){S.push({key:E,values:L(P,C)})})),g!=null?S.sort(function(P,E){return g(P.key,E.key)}):S}return M={object:function(x){return T(x,0,a,o)},map:function(x){return T(x,0,s,l)},entries:function(x){return L(T(x,0,s,l),0)},key:function(x){return m.push(x),M},sortKeys:function(x){return b[m.length-1]=x,M},sortValues:function(x){return p=x,M},rollup:function(x){return k=x,M}}}function a(){return{}}function o(m,b,p){m[b]=p}function s(){return n()}function l(m,b,p){m.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(m){return m+="",this[t+m]=m,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(m,b){var p=new u;if(m instanceof u)m.each(function(T){p.add(T)});else if(m){var k=-1,M=m.length;if(b==null)for(;++k{(function(e,t){typeof k7=="object"&&typeof ZWe!="undefined"?t(k7):(e=e||self,t(e.d3=e.d3||{}))})(k7,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},c;s=0&&(c=u.slice(f+1),u=u.slice(0,f)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}n.prototype=r.prototype={constructor:n,on:function(s,l){var u=this._,c=i(s+"",u),f,h=-1,d=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof C7=="object"&&typeof KWe!="undefined"?t(C7):(e=e||self,t(e.d3=e.d3||{}))})(C7,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};function h(){return l||(f(d),l=c.now()+u)}function d(){l=0}function v(){this._call=this._time=this._next=null}v.prototype=m.prototype={constructor:v,restart:function(C,S,g){if(typeof C!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(S==null?0:+S),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=C,this._time=g,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};function m(C,S,g){var P=new v;return P.restart(C,S,g),P}function b(){h(),++t;for(var C=a,S;C;)(S=l-C._time)>=0&&C._call.call(null,S),C=C._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,M(),l=0}}function k(){var C=c.now(),S=C-s;S>i&&(u-=S,s=C)}function M(){for(var C,S=a,g,P=1/0;S;)S._call?(P>S._time&&(P=S._time),C=S,S=S._next):(g=S._next,S._next=null,S=C?C._next=g:a=g);o=C,T(P)}function T(C){if(!t){r&&(r=clearTimeout(r));var S=C-l;S>24?(C<1/0&&(r=setTimeout(p,C-c.now()-u)),n&&(n=clearInterval(n))):(n||(s=c.now(),n=setInterval(k,i)),t=1,f(p))}}function L(C,S,g){var P=new v;return S=S==null?0:+S,P.restart(function(E){P.stop(),C(E+S)},S,g),P}function x(C,S,g){var P=new v,E=S;return S==null?(P.restart(C,S,g),P):(S=+S,g=g==null?h():+g,P.restart(function z(q){q+=E,P.restart(z,E+=S,g),C(q)},S,g),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=m,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var QWe=ye((L7,$We)=>{(function(e,t){typeof L7=="object"&&typeof $We!="undefined"?t(L7,WWe(),E7(),YWe(),JWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(L7,(function(e,t,r,n,i){"use strict";function a(C,S){var g;C==null&&(C=0),S==null&&(S=0);function P(){var E,z=g.length,q,V=0,G=0;for(E=0;EN.index){var Pe=H-Be.x-Be.vx,ce=re-Be.y-Be.vy,He=Pe*Pe+ce*ce;HeH+me||kere+me||beG.r&&(G.r=G[Z].r)}function V(){if(S){var G,Z=S.length,j;for(g=new Array(Z),G=0;G1?(_e==null?V.remove(ae):V.set(ae,re(_e)),S):V.get(ae)},find:function(ae,_e,Ee){var Ce=0,ge=C.length,ie,Se,ke,be,Be;for(Ee==null?Ee=1/0:Ee*=Ee,Ce=0;Ce1?(Z.on(ae,_e),S):Z.on(ae)}}}function M(){var C,S,g,P=o(-30),E,z=1,q=1/0,V=.81;function G(H){var re,ae=C.length,_e=t.quadtree(C,v,m).visitAfter(j);for(g=H,re=0;re=q)return;(H.data!==S||H.next)&&(Ee===0&&(Ee=s(),ie+=Ee*Ee),Ce===0&&(Ce=s(),ie+=Ce*Ce),ie{(function(e,t){typeof P7=="object"&&typeof eXe!="undefined"?t(P7):(e=e||self,t(e.d3=e.d3||{}))})(P7,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,f,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+f)+","+(this._y1=+h)},arcTo:function(s,l,u,c,f){s=+s,l=+l,u=+u,c=+c,f=+f;var h=this._x1,d=this._y1,v=u-s,m=c-l,b=h-s,p=d-l,k=b*b+p*p;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(k>n)if(!(Math.abs(p*v-m*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var M=u-h,T=c-d,L=v*v+m*m,x=M*M+T*T,C=Math.sqrt(L),S=Math.sqrt(k),g=f*Math.tan((t-Math.acos((L+k-x)/(2*C*S)))/2),P=g/S,E=g/C;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*M>b*T)+","+(this._x1=s+E*v)+","+(this._y1=l+E*m)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(c),v=u*Math.sin(c),m=s+d,b=l+v,p=1^h,k=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+m+","+b:(Math.abs(this._x1-m)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+m+","+b),u&&(k<0&&(k=k%r+r),k>i?this._+="A"+u+","+u+",0,1,"+p+","+(s-d)+","+(l-v)+"A"+u+","+u+",0,1,"+p+","+(this._x1=m)+","+(this._y1=b):k>n&&(this._+="A"+u+","+u+",0,"+ +(k>=t)+","+p+","+(this._x1=s+u*Math.cos(f))+","+(this._y1=l+u*Math.sin(f))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var r$=ye((I7,rXe)=>{(function(e,t){typeof I7=="object"&&typeof rXe!="undefined"?t(I7,tXe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(I7,function(e,t){"use strict";function r(Ct){return function(){return Ct}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,d=2*f;function v(Ct){return Ct>1?0:Ct<-1?f:Math.acos(Ct)}function m(Ct){return Ct>=1?h:Ct<=-1?-h:Math.asin(Ct)}function b(Ct){return Ct.innerRadius}function p(Ct){return Ct.outerRadius}function k(Ct){return Ct.startAngle}function M(Ct){return Ct.endAngle}function T(Ct){return Ct&&Ct.padAngle}function L(Ct,Sr,Jr,hi,hn,Sn,En,ki){var _n=Jr-Ct,ya=hi-Sr,ea=En-hn,Ma=ki-Sn,_o=Ma*_n-ea*ya;if(!(_o*_oYl*Yl+Su*Su&&(As=Ks,cl=zs),{cx:As,cy:cl,x01:-ea,y01:-Ma,x11:As*(hn/Fl-1),y11:cl*(hn/Fl-1)}}function C(){var Ct=b,Sr=p,Jr=r(0),hi=null,hn=k,Sn=M,En=T,ki=null;function _n(){var ya,ea,Ma=+Ct.apply(this,arguments),_o=+Sr.apply(this,arguments),No=hn.apply(this,arguments)-h,po=Sn.apply(this,arguments)-h,Lo=n(po-No),ko=po>No;if(ki||(ki=ya=t.path()),_oc))ki.moveTo(0,0);else if(Lo>d-c)ki.moveTo(_o*a(No),_o*l(No)),ki.arc(0,0,_o,No,po,!ko),Ma>c&&(ki.moveTo(Ma*a(po),Ma*l(po)),ki.arc(0,0,Ma,po,No,ko));else{var Ds=No,Fs=po,ll=No,ul=po,Fl=Lo,us=Lo,rl=En.apply(this,arguments)/2,As=rl>c&&(hi?+hi.apply(this,arguments):u(Ma*Ma+_o*_o)),cl=s(n(_o-Ma)/2,+Jr.apply(this,arguments)),Ks=cl,zs=cl,Io,ls;if(As>c){var Yl=m(As/Ma*l(rl)),Su=m(As/_o*l(rl));(Fl-=Yl*2)>c?(Yl*=ko?1:-1,ll+=Yl,ul-=Yl):(Fl=0,ll=ul=(No+po)/2),(us-=Su*2)>c?(Su*=ko?1:-1,Ds+=Su,Fs-=Su):(us=0,Ds=Fs=(No+po)/2)}var nc=_o*a(Ds),bs=_o*l(Ds),Rn=Ma*a(ul),_a=Ma*l(ul);if(cl>c){var Vu=_o*a(Fs),zl=_o*l(Fs),xo=Ma*a(ll),Kl=Ma*l(ll),Ns;if(Loc?zs>c?(Io=x(xo,Kl,nc,bs,_o,zs,ko),ls=x(Vu,zl,Rn,_a,_o,zs,ko),ki.moveTo(Io.cx+Io.x01,Io.cy+Io.y01),zsc)||!(Fl>c)?ki.lineTo(Rn,_a):Ks>c?(Io=x(Rn,_a,Vu,zl,Ma,-Ks,ko),ls=x(nc,bs,xo,Kl,Ma,-Ks,ko),ki.lineTo(Io.cx+Io.x01,Io.cy+Io.y01),Ks=_o;--No)ki.point(Fs[No],ll[No]);ki.lineEnd(),ki.areaEnd()}ko&&(Fs[Ma]=+Ct(Lo,Ma,ea),ll[Ma]=+Jr(Lo,Ma,ea),ki.point(Sr?+Sr(Lo,Ma,ea):Fs[Ma],hi?+hi(Lo,Ma,ea):ll[Ma]))}if(Ds)return ki=null,Ds+""||null}function ya(){return z().defined(hn).curve(En).context(Sn)}return _n.x=function(ea){return arguments.length?(Ct=typeof ea=="function"?ea:r(+ea),Sr=null,_n):Ct},_n.x0=function(ea){return arguments.length?(Ct=typeof ea=="function"?ea:r(+ea),_n):Ct},_n.x1=function(ea){return arguments.length?(Sr=ea==null?null:typeof ea=="function"?ea:r(+ea),_n):Sr},_n.y=function(ea){return arguments.length?(Jr=typeof ea=="function"?ea:r(+ea),hi=null,_n):Jr},_n.y0=function(ea){return arguments.length?(Jr=typeof ea=="function"?ea:r(+ea),_n):Jr},_n.y1=function(ea){return arguments.length?(hi=ea==null?null:typeof ea=="function"?ea:r(+ea),_n):hi},_n.lineX0=_n.lineY0=function(){return ya().x(Ct).y(Jr)},_n.lineY1=function(){return ya().x(Ct).y(hi)},_n.lineX1=function(){return ya().x(Sr).y(Jr)},_n.defined=function(ea){return arguments.length?(hn=typeof ea=="function"?ea:r(!!ea),_n):hn},_n.curve=function(ea){return arguments.length?(En=ea,Sn!=null&&(ki=En(Sn)),_n):En},_n.context=function(ea){return arguments.length?(ea==null?Sn=ki=null:ki=En(Sn=ea),_n):Sn},_n}function V(Ct,Sr){return SrCt?1:Sr>=Ct?0:NaN}function G(Ct){return Ct}function Z(){var Ct=G,Sr=V,Jr=null,hi=r(0),hn=r(d),Sn=r(0);function En(ki){var _n,ya=ki.length,ea,Ma,_o=0,No=new Array(ya),po=new Array(ya),Lo=+hi.apply(this,arguments),ko=Math.min(d,Math.max(-d,hn.apply(this,arguments)-Lo)),Ds,Fs=Math.min(Math.abs(ko)/ya,Sn.apply(this,arguments)),ll=Fs*(ko<0?-1:1),ul;for(_n=0;_n0&&(_o+=ul);for(Sr!=null?No.sort(function(Fl,us){return Sr(po[Fl],po[us])}):Jr!=null&&No.sort(function(Fl,us){return Jr(ki[Fl],ki[us])}),_n=0,Ma=_o?(ko-ya*ll)/_o:0;_n0?ul*Ma:0)+ll,po[ea]={data:ki[ea],index:_n,value:ul,startAngle:Lo,endAngle:Ds,padAngle:Fs};return po}return En.value=function(ki){return arguments.length?(Ct=typeof ki=="function"?ki:r(+ki),En):Ct},En.sortValues=function(ki){return arguments.length?(Sr=ki,Jr=null,En):Sr},En.sort=function(ki){return arguments.length?(Jr=ki,Sr=null,En):Jr},En.startAngle=function(ki){return arguments.length?(hi=typeof ki=="function"?ki:r(+ki),En):hi},En.endAngle=function(ki){return arguments.length?(hn=typeof ki=="function"?ki:r(+ki),En):hn},En.padAngle=function(ki){return arguments.length?(Sn=typeof ki=="function"?ki:r(+ki),En):Sn},En}var j=H(g);function N(Ct){this._curve=Ct}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(Ct,Sr){this._curve.point(Sr*Math.sin(Ct),Sr*-Math.cos(Ct))}};function H(Ct){function Sr(Jr){return new N(Ct(Jr))}return Sr._curve=Ct,Sr}function re(Ct){var Sr=Ct.curve;return Ct.angle=Ct.x,delete Ct.x,Ct.radius=Ct.y,delete Ct.y,Ct.curve=function(Jr){return arguments.length?Sr(H(Jr)):Sr()._curve},Ct}function ae(){return re(z().curve(j))}function _e(){var Ct=q().curve(j),Sr=Ct.curve,Jr=Ct.lineX0,hi=Ct.lineX1,hn=Ct.lineY0,Sn=Ct.lineY1;return Ct.angle=Ct.x,delete Ct.x,Ct.startAngle=Ct.x0,delete Ct.x0,Ct.endAngle=Ct.x1,delete Ct.x1,Ct.radius=Ct.y,delete Ct.y,Ct.innerRadius=Ct.y0,delete Ct.y0,Ct.outerRadius=Ct.y1,delete Ct.y1,Ct.lineStartAngle=function(){return re(Jr())},delete Ct.lineX0,Ct.lineEndAngle=function(){return re(hi())},delete Ct.lineX1,Ct.lineInnerRadius=function(){return re(hn())},delete Ct.lineY0,Ct.lineOuterRadius=function(){return re(Sn())},delete Ct.lineY1,Ct.curve=function(En){return arguments.length?Sr(H(En)):Sr()._curve},Ct}function Ee(Ct,Sr){return[(Sr=+Sr)*Math.cos(Ct-=Math.PI/2),Sr*Math.sin(Ct)]}var Ce=Array.prototype.slice;function ge(Ct){return Ct.source}function ie(Ct){return Ct.target}function Se(Ct){var Sr=ge,Jr=ie,hi=P,hn=E,Sn=null;function En(){var ki,_n=Ce.call(arguments),ya=Sr.apply(this,_n),ea=Jr.apply(this,_n);if(Sn||(Sn=ki=t.path()),Ct(Sn,+hi.apply(this,(_n[0]=ya,_n)),+hn.apply(this,_n),+hi.apply(this,(_n[0]=ea,_n)),+hn.apply(this,_n)),ki)return Sn=null,ki+""||null}return En.source=function(ki){return arguments.length?(Sr=ki,En):Sr},En.target=function(ki){return arguments.length?(Jr=ki,En):Jr},En.x=function(ki){return arguments.length?(hi=typeof ki=="function"?ki:r(+ki),En):hi},En.y=function(ki){return arguments.length?(hn=typeof ki=="function"?ki:r(+ki),En):hn},En.context=function(ki){return arguments.length?(Sn=ki==null?null:ki,En):Sn},En}function ke(Ct,Sr,Jr,hi,hn){Ct.moveTo(Sr,Jr),Ct.bezierCurveTo(Sr=(Sr+hi)/2,Jr,Sr,hn,hi,hn)}function be(Ct,Sr,Jr,hi,hn){Ct.moveTo(Sr,Jr),Ct.bezierCurveTo(Sr,Jr=(Jr+hn)/2,hi,Jr,hi,hn)}function Be(Ct,Sr,Jr,hi,hn){var Sn=Ee(Sr,Jr),En=Ee(Sr,Jr=(Jr+hn)/2),ki=Ee(hi,Jr),_n=Ee(hi,hn);Ct.moveTo(Sn[0],Sn[1]),Ct.bezierCurveTo(En[0],En[1],ki[0],ki[1],_n[0],_n[1])}function Le(){return Se(ke)}function me(){return Se(be)}function Pe(){var Ct=Se(Be);return Ct.angle=Ct.x,delete Ct.x,Ct.radius=Ct.y,delete Ct.y,Ct}var ce={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr/f);Ct.moveTo(Jr,0),Ct.arc(0,0,Jr,0,d)}},He={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr/5)/2;Ct.moveTo(-3*Jr,-Jr),Ct.lineTo(-Jr,-Jr),Ct.lineTo(-Jr,-3*Jr),Ct.lineTo(Jr,-3*Jr),Ct.lineTo(Jr,-Jr),Ct.lineTo(3*Jr,-Jr),Ct.lineTo(3*Jr,Jr),Ct.lineTo(Jr,Jr),Ct.lineTo(Jr,3*Jr),Ct.lineTo(-Jr,3*Jr),Ct.lineTo(-Jr,Jr),Ct.lineTo(-3*Jr,Jr),Ct.closePath()}},lt=Math.sqrt(1/3),mt=lt*2,Ht={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr/mt),hi=Jr*lt;Ct.moveTo(0,-Jr),Ct.lineTo(hi,0),Ct.lineTo(0,Jr),Ct.lineTo(-hi,0),Ct.closePath()}},at=.8908130915292852,ct=Math.sin(f/10)/Math.sin(7*f/10),ar=Math.sin(d/10)*ct,Vt=-Math.cos(d/10)*ct,rr={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr*at),hi=ar*Jr,hn=Vt*Jr;Ct.moveTo(0,-Jr),Ct.lineTo(hi,hn);for(var Sn=1;Sn<5;++Sn){var En=d*Sn/5,ki=Math.cos(En),_n=Math.sin(En);Ct.lineTo(_n*Jr,-ki*Jr),Ct.lineTo(ki*hi-_n*hn,_n*hi+ki*hn)}Ct.closePath()}},tt={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr),hi=-Jr/2;Ct.rect(hi,hi,Jr,Jr)}},je=Math.sqrt(3),Ue={draw:function(Ct,Sr){var Jr=-Math.sqrt(Sr/(je*3));Ct.moveTo(0,Jr*2),Ct.lineTo(-je*Jr,-Jr),Ct.lineTo(je*Jr,-Jr),Ct.closePath()}},Ae=-.5,rt=Math.sqrt(3)/2,St=1/Math.sqrt(12),Tt=(St/2+1)*3,dt={draw:function(Ct,Sr){var Jr=Math.sqrt(Sr/Tt),hi=Jr/2,hn=Jr*St,Sn=hi,En=Jr*St+Jr,ki=-Sn,_n=En;Ct.moveTo(hi,hn),Ct.lineTo(Sn,En),Ct.lineTo(ki,_n),Ct.lineTo(Ae*hi-rt*hn,rt*hi+Ae*hn),Ct.lineTo(Ae*Sn-rt*En,rt*Sn+Ae*En),Ct.lineTo(Ae*ki-rt*_n,rt*ki+Ae*_n),Ct.lineTo(Ae*hi+rt*hn,Ae*hn-rt*hi),Ct.lineTo(Ae*Sn+rt*En,Ae*En-rt*Sn),Ct.lineTo(Ae*ki+rt*_n,Ae*_n-rt*ki),Ct.closePath()}},Et=[ce,He,Ht,tt,rr,Ue,dt];function pt(){var Ct=r(ce),Sr=r(64),Jr=null;function hi(){var hn;if(Jr||(Jr=hn=t.path()),Ct.apply(this,arguments).draw(Jr,+Sr.apply(this,arguments)),hn)return Jr=null,hn+""||null}return hi.type=function(hn){return arguments.length?(Ct=typeof hn=="function"?hn:r(hn),hi):Ct},hi.size=function(hn){return arguments.length?(Sr=typeof hn=="function"?hn:r(+hn),hi):Sr},hi.context=function(hn){return arguments.length?(Jr=hn==null?null:hn,hi):Jr},hi}function jt(){}function or(Ct,Sr,Jr){Ct._context.bezierCurveTo((2*Ct._x0+Ct._x1)/3,(2*Ct._y0+Ct._y1)/3,(Ct._x0+2*Ct._x1)/3,(Ct._y0+2*Ct._y1)/3,(Ct._x0+4*Ct._x1+Sr)/6,(Ct._y0+4*Ct._y1+Jr)/6)}function mr(Ct){this._context=Ct}mr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:or(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:or(this,Ct,Sr);break}this._x0=this._x1,this._x1=Ct,this._y0=this._y1,this._y1=Sr}};function Ar(Ct){return new mr(Ct)}function ei(Ct){this._context=Ct}ei.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._x2=Ct,this._y2=Sr;break;case 1:this._point=2,this._x3=Ct,this._y3=Sr;break;case 2:this._point=3,this._x4=Ct,this._y4=Sr,this._context.moveTo((this._x0+4*this._x1+Ct)/6,(this._y0+4*this._y1+Sr)/6);break;default:or(this,Ct,Sr);break}this._x0=this._x1,this._x1=Ct,this._y0=this._y1,this._y1=Sr}};function qr(Ct){return new ei(Ct)}function jr(Ct){this._context=Ct}jr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Jr=(this._x0+4*this._x1+Ct)/6,hi=(this._y0+4*this._y1+Sr)/6;this._line?this._context.lineTo(Jr,hi):this._context.moveTo(Jr,hi);break;case 3:this._point=4;default:or(this,Ct,Sr);break}this._x0=this._x1,this._x1=Ct,this._y0=this._y1,this._y1=Sr}};function gt(Ct){return new jr(Ct)}function Ge(Ct,Sr){this._basis=new mr(Ct),this._beta=Sr}Ge.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var Ct=this._x,Sr=this._y,Jr=Ct.length-1;if(Jr>0)for(var hi=Ct[0],hn=Sr[0],Sn=Ct[Jr]-hi,En=Sr[Jr]-hn,ki=-1,_n;++ki<=Jr;)_n=ki/Jr,this._basis.point(this._beta*Ct[ki]+(1-this._beta)*(hi+_n*Sn),this._beta*Sr[ki]+(1-this._beta)*(hn+_n*En));this._x=this._y=null,this._basis.lineEnd()},point:function(Ct,Sr){this._x.push(+Ct),this._y.push(+Sr)}};var Je=(function Ct(Sr){function Jr(hi){return Sr===1?new mr(hi):new Ge(hi,Sr)}return Jr.beta=function(hi){return Ct(+hi)},Jr})(.85);function We(Ct,Sr,Jr){Ct._context.bezierCurveTo(Ct._x1+Ct._k*(Ct._x2-Ct._x0),Ct._y1+Ct._k*(Ct._y2-Ct._y0),Ct._x2+Ct._k*(Ct._x1-Sr),Ct._y2+Ct._k*(Ct._y1-Jr),Ct._x2,Ct._y2)}function et(Ct,Sr){this._context=Ct,this._k=(1-Sr)/6}et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:We(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2,this._x1=Ct,this._y1=Sr;break;case 2:this._point=3;default:We(this,Ct,Sr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var xt=(function Ct(Sr){function Jr(hi){return new et(hi,Sr)}return Jr.tension=function(hi){return Ct(+hi)},Jr})(0);function At(Ct,Sr){this._context=Ct,this._k=(1-Sr)/6}At.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._x3=Ct,this._y3=Sr;break;case 1:this._point=2,this._context.moveTo(this._x4=Ct,this._y4=Sr);break;case 2:this._point=3,this._x5=Ct,this._y5=Sr;break;default:We(this,Ct,Sr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var Kt=(function Ct(Sr){function Jr(hi){return new At(hi,Sr)}return Jr.tension=function(hi){return Ct(+hi)},Jr})(0);function Qt(Ct,Sr){this._context=Ct,this._k=(1-Sr)/6}Qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:We(this,Ct,Sr);break}this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var Mr=(function Ct(Sr){function Jr(hi){return new Qt(hi,Sr)}return Jr.tension=function(hi){return Ct(+hi)},Jr})(0);function Gr(Ct,Sr,Jr){var hi=Ct._x1,hn=Ct._y1,Sn=Ct._x2,En=Ct._y2;if(Ct._l01_a>c){var ki=2*Ct._l01_2a+3*Ct._l01_a*Ct._l12_a+Ct._l12_2a,_n=3*Ct._l01_a*(Ct._l01_a+Ct._l12_a);hi=(hi*ki-Ct._x0*Ct._l12_2a+Ct._x2*Ct._l01_2a)/_n,hn=(hn*ki-Ct._y0*Ct._l12_2a+Ct._y2*Ct._l01_2a)/_n}if(Ct._l23_a>c){var ya=2*Ct._l23_2a+3*Ct._l23_a*Ct._l12_a+Ct._l12_2a,ea=3*Ct._l23_a*(Ct._l23_a+Ct._l12_a);Sn=(Sn*ya+Ct._x1*Ct._l23_2a-Sr*Ct._l12_2a)/ea,En=(En*ya+Ct._y1*Ct._l23_2a-Jr*Ct._l12_2a)/ea}Ct._context.bezierCurveTo(hi,hn,Sn,En,Ct._x2,Ct._y2)}function Ir(Ct,Sr){this._context=Ct,this._alpha=Sr}Ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){if(Ct=+Ct,Sr=+Sr,this._point){var Jr=this._x2-Ct,hi=this._y2-Sr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+hi*hi,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2;break;case 2:this._point=3;default:Gr(this,Ct,Sr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var Yr=(function Ct(Sr){function Jr(hi){return Sr?new Ir(hi,Sr):new et(hi,0)}return Jr.alpha=function(hi){return Ct(+hi)},Jr})(.5);function _i(Ct,Sr){this._context=Ct,this._alpha=Sr}_i.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Ct,Sr){if(Ct=+Ct,Sr=+Sr,this._point){var Jr=this._x2-Ct,hi=this._y2-Sr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+hi*hi,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=Ct,this._y3=Sr;break;case 1:this._point=2,this._context.moveTo(this._x4=Ct,this._y4=Sr);break;case 2:this._point=3,this._x5=Ct,this._y5=Sr;break;default:Gr(this,Ct,Sr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var Pi=(function Ct(Sr){function Jr(hi){return Sr?new _i(hi,Sr):new At(hi,0)}return Jr.alpha=function(hi){return Ct(+hi)},Jr})(.5);function ai(Ct,Sr){this._context=Ct,this._alpha=Sr}ai.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){if(Ct=+Ct,Sr=+Sr,this._point){var Jr=this._x2-Ct,hi=this._y2-Sr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Jr*Jr+hi*hi,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Gr(this,Ct,Sr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Ct,this._y0=this._y1,this._y1=this._y2,this._y2=Sr}};var mi=(function Ct(Sr){function Jr(hi){return Sr?new ai(hi,Sr):new Qt(hi,0)}return Jr.alpha=function(hi){return Ct(+hi)},Jr})(.5);function un(Ct){this._context=Ct}un.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(Ct,Sr){Ct=+Ct,Sr=+Sr,this._point?this._context.lineTo(Ct,Sr):(this._point=1,this._context.moveTo(Ct,Sr))}};function Fn(Ct){return new un(Ct)}function An(Ct){return Ct<0?-1:1}function Hn(Ct,Sr,Jr){var hi=Ct._x1-Ct._x0,hn=Sr-Ct._x1,Sn=(Ct._y1-Ct._y0)/(hi||hn<0&&-0),En=(Jr-Ct._y1)/(hn||hi<0&&-0),ki=(Sn*hn+En*hi)/(hi+hn);return(An(Sn)+An(En))*Math.min(Math.abs(Sn),Math.abs(En),.5*Math.abs(ki))||0}function Qn(Ct,Sr){var Jr=Ct._x1-Ct._x0;return Jr?(3*(Ct._y1-Ct._y0)/Jr-Sr)/2:Sr}function Vi(Ct,Sr,Jr){var hi=Ct._x0,hn=Ct._y0,Sn=Ct._x1,En=Ct._y1,ki=(Sn-hi)/3;Ct._context.bezierCurveTo(hi+ki,hn+ki*Sr,Sn-ki,En-ki*Jr,Sn,En)}function Jn(Ct){this._context=Ct}Jn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Vi(this,this._t0,Qn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Ct,Sr){var Jr=NaN;if(Ct=+Ct,Sr=+Sr,!(Ct===this._x1&&Sr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2;break;case 2:this._point=3,Vi(this,Qn(this,Jr=Hn(this,Ct,Sr)),Jr);break;default:Vi(this,this._t0,Jr=Hn(this,Ct,Sr));break}this._x0=this._x1,this._x1=Ct,this._y0=this._y1,this._y1=Sr,this._t0=Jr}}};function Yn(Ct){this._context=new Gt(Ct)}(Yn.prototype=Object.create(Jn.prototype)).point=function(Ct,Sr){Jn.prototype.point.call(this,Sr,Ct)};function Gt(Ct){this._context=Ct}Gt.prototype={moveTo:function(Ct,Sr){this._context.moveTo(Sr,Ct)},closePath:function(){this._context.closePath()},lineTo:function(Ct,Sr){this._context.lineTo(Sr,Ct)},bezierCurveTo:function(Ct,Sr,Jr,hi,hn,Sn){this._context.bezierCurveTo(Sr,Ct,hi,Jr,Sn,hn)}};function wt(Ct){return new Jn(Ct)}function tr(Ct){return new Yn(Ct)}function ir(Ct){this._context=Ct}ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var Ct=this._x,Sr=this._y,Jr=Ct.length;if(Jr)if(this._line?this._context.lineTo(Ct[0],Sr[0]):this._context.moveTo(Ct[0],Sr[0]),Jr===2)this._context.lineTo(Ct[1],Sr[1]);else for(var hi=wr(Ct),hn=wr(Sr),Sn=0,En=1;En=0;--Sr)hn[Sr]=(En[Sr]-hn[Sr+1])/Sn[Sr];for(Sn[Jr-1]=(Ct[Jr]+hn[Jr-1])/2,Sr=0;Sr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(Ct,Sr){switch(Ct=+Ct,Sr=+Sr,this._point){case 0:this._point=1,this._line?this._context.lineTo(Ct,Sr):this._context.moveTo(Ct,Sr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Sr),this._context.lineTo(Ct,Sr);else{var Jr=this._x*(1-this._t)+Ct*this._t;this._context.lineTo(Jr,this._y),this._context.lineTo(Jr,Sr)}break}}this._x=Ct,this._y=Sr}};function $r(Ct){return new ti(Ct,.5)}function Ri(Ct){return new ti(Ct,0)}function Hi(Ct){return new ti(Ct,1)}function en(Ct,Sr){if((En=Ct.length)>1)for(var Jr=1,hi,hn,Sn=Ct[Sr[0]],En,ki=Sn.length;Jr=0;)Jr[Sr]=Sr;return Jr}function yn(Ct,Sr){return Ct[Sr]}function Mn(){var Ct=r([]),Sr=fn,Jr=en,hi=yn;function hn(Sn){var En=Ct.apply(this,arguments),ki,_n=Sn.length,ya=En.length,ea=new Array(ya),Ma;for(ki=0;ki0){for(var Jr,hi,hn=0,Sn=Ct[0].length,En;hn0)for(var Jr,hi=0,hn,Sn,En,ki,_n,ya=Ct[Sr[0]].length;hi0?(hn[0]=En,hn[1]=En+=Sn):Sn<0?(hn[1]=ki,hn[0]=ki+=Sn):(hn[0]=0,hn[1]=Sn)}function ma(Ct,Sr){if((hn=Ct.length)>0){for(var Jr=0,hi=Ct[Sr[0]],hn,Sn=hi.length;Jr0)||!((Sn=(hn=Ct[Sr[0]]).length)>0))){for(var Jr=0,hi=1,hn,Sn,En;hiSn&&(Sn=hn,Jr=Sr);return Jr}function da(Ct){var Sr=Ct.map(jn);return fn(Ct).sort(function(Jr,hi){return Sr[Jr]-Sr[hi]})}function jn(Ct){for(var Sr=0,Jr=-1,hi=Ct.length,hn;++Jr{(function(e,t){typeof R7=="object"&&typeof iXe!="undefined"?t(R7,gk(),E7(),r$()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(R7,(function(e,t,r,n){"use strict";function i(g){return g.target.depth}function a(g){return g.depth}function o(g,P){return P-1-g.height}function s(g,P){return g.sourceLinks.length?g.depth:P-1}function l(g){return g.targetLinks.length?g.depth:g.sourceLinks.length?t.min(g.sourceLinks,i)-1:0}function u(g){return function(){return g}}function c(g,P){return h(g.source,P.source)||g.index-P.index}function f(g,P){return h(g.target,P.target)||g.index-P.index}function h(g,P){return g.y0-P.y0}function d(g){return g.value}function v(g){return(g.y0+g.y1)/2}function m(g){return v(g.source)*g.value}function b(g){return v(g.target)*g.value}function p(g){return g.index}function k(g){return g.nodes}function M(g){return g.links}function T(g,P){var E=g.get(P);if(!E)throw new Error("missing: "+P);return E}var L=function(){var g=0,P=0,E=1,z=1,q=24,V=8,G=p,Z=s,j=k,N=M,H=32,re=2/3;function ae(){var Se={nodes:j.apply(null,arguments),links:N.apply(null,arguments)};return _e(Se),Ee(Se),Ce(Se),ge(Se,H),ie(Se),Se}ae.update=function(Se){return ie(Se),Se},ae.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:u(Se),ae):G},ae.nodeAlign=function(Se){return arguments.length?(Z=typeof Se=="function"?Se:u(Se),ae):Z},ae.nodeWidth=function(Se){return arguments.length?(q=+Se,ae):q},ae.nodePadding=function(Se){return arguments.length?(V=+Se,ae):V},ae.nodes=function(Se){return arguments.length?(j=typeof Se=="function"?Se:u(Se),ae):j},ae.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:u(Se),ae):N},ae.size=function(Se){return arguments.length?(g=P=0,E=+Se[0],z=+Se[1],ae):[E-g,z-P]},ae.extent=function(Se){return arguments.length?(g=+Se[0][0],E=+Se[1][0],P=+Se[0][1],z=+Se[1][1],ae):[[g,P],[E,z]]},ae.iterations=function(Se){return arguments.length?(H=+Se,ae):H};function _e(Se){Se.nodes.forEach(function(be,Be){be.index=Be,be.sourceLinks=[],be.targetLinks=[]});var ke=r.map(Se.nodes,G);Se.links.forEach(function(be,Be){be.index=Be;var Le=be.source,me=be.target;typeof Le!="object"&&(Le=be.source=T(ke,Le)),typeof me!="object"&&(me=be.target=T(ke,me)),Le.sourceLinks.push(be),me.targetLinks.push(be)})}function Ee(Se){Se.nodes.forEach(function(ke){ke.value=Math.max(t.sum(ke.sourceLinks,d),t.sum(ke.targetLinks,d))})}function Ce(Se){var ke,be,Be;for(ke=Se.nodes,be=[],Be=0;ke.length;++Be,ke=be,be=[])ke.forEach(function(me){me.depth=Be,me.sourceLinks.forEach(function(Pe){be.indexOf(Pe.target)<0&&be.push(Pe.target)})});for(ke=Se.nodes,be=[],Be=0;ke.length;++Be,ke=be,be=[])ke.forEach(function(me){me.height=Be,me.targetLinks.forEach(function(Pe){be.indexOf(Pe.source)<0&&be.push(Pe.source)})});var Le=(E-g-q)/(Be-1);Se.nodes.forEach(function(me){me.x1=(me.x0=g+Math.max(0,Math.min(Be-1,Math.floor(Z.call(null,me,Be))))*Le)+q})}function ge(Se){var ke=r.nest().key(function(He){return He.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(He){return He.values});Le(),ce();for(var be=1,Be=H;Be>0;--Be)Pe(be*=.99),ce(),me(be),ce();function Le(){var He=t.max(ke,function(Ht){return Ht.length}),lt=re*(z-P)/(He-1);V>lt&&(V=lt);var mt=t.min(ke,function(Ht){return(z-P-(Ht.length-1)*V)/t.sum(Ht,d)});ke.forEach(function(Ht){Ht.forEach(function(at,ct){at.y1=(at.y0=ct)+at.value*mt})}),Se.links.forEach(function(Ht){Ht.width=Ht.value*mt})}function me(He){ke.forEach(function(lt){lt.forEach(function(mt){if(mt.targetLinks.length){var Ht=(t.sum(mt.targetLinks,m)/t.sum(mt.targetLinks,d)-v(mt))*He;mt.y0+=Ht,mt.y1+=Ht}})})}function Pe(He){ke.slice().reverse().forEach(function(lt){lt.forEach(function(mt){if(mt.sourceLinks.length){var Ht=(t.sum(mt.sourceLinks,b)/t.sum(mt.sourceLinks,d)-v(mt))*He;mt.y0+=Ht,mt.y1+=Ht}})})}function ce(){ke.forEach(function(He){var lt,mt,Ht=P,at=He.length,ct;for(He.sort(h),ct=0;ct0&&(lt.y0+=mt,lt.y1+=mt),Ht=lt.y1+V;if(mt=Ht-V-z,mt>0)for(Ht=lt.y0-=mt,lt.y1-=mt,ct=at-2;ct>=0;--ct)lt=He[ct],mt=lt.y1+V-Ht,mt>0&&(lt.y0-=mt,lt.y1-=mt),Ht=lt.y0})}}function ie(Se){Se.nodes.forEach(function(ke){ke.sourceLinks.sort(f),ke.targetLinks.sort(c)}),Se.nodes.forEach(function(ke){var be=ke.y0,Be=be;ke.sourceLinks.forEach(function(Le){Le.y0=be+Le.width/2,be+=Le.width}),ke.targetLinks.forEach(function(Le){Le.y1=Be+Le.width/2,Be+=Le.width})})}return ae};function x(g){return[g.source.x1,g.y0]}function C(g){return[g.target.x0,g.y1]}var S=function(){return n.linkHorizontal().source(x).target(C)};e.sankey=L,e.sankeyCenter=l,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=S,Object.defineProperty(e,"__esModule",{value:!0})}))});var oXe=ye((N2r,aXe)=>{var _Yt=t$();aXe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(M){a[M]=!1,o.hasOwnProperty(M)&&Object.keys(o[M]).forEach(function(T){delete o[M][T],a[T]&&u(T)})}function c(M){var T=!1;i.push(M),a[M]=!0;var L,x;for(L=0;L=M})}function d(M){h(M);for(var T=t,L=_Yt(T),x=L.components.filter(function(q){return q.length>1}),C=1/0,S,g=0;g{(function(e,t){typeof D7=="object"&&typeof sXe!="undefined"?t(D7,gk(),E7(),r$(),oXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(D7,(function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(at){return at.target.depth}function o(at){return at.depth}function s(at,ct){return ct-1-at.height}function l(at,ct){return at.sourceLinks.length?at.depth:ct-1}function u(at){return at.targetLinks.length?at.depth:at.sourceLinks.length?t.min(at.sourceLinks,a)-1:0}function c(at){return function(){return at}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(at){return typeof at}:function(at){return at&&typeof Symbol=="function"&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at};function h(at,ct){return v(at.source,ct.source)||at.index-ct.index}function d(at,ct){return v(at.target,ct.target)||at.index-ct.index}function v(at,ct){return at.partOfCycle===ct.partOfCycle?at.y0-ct.y0:at.circularLinkType==="top"||ct.circularLinkType==="bottom"?-1:1}function m(at){return at.value}function b(at){return(at.y0+at.y1)/2}function p(at){return b(at.source)}function k(at){return b(at.target)}function M(at){return at.index}function T(at){return at.nodes}function L(at){return at.links}function x(at,ct){var ar=at.get(ct);if(!ar)throw new Error("missing: "+ct);return ar}function C(at,ct){return ct(at)}var S=25,g=10,P=.3;function E(){var at=0,ct=0,ar=1,Vt=1,rr=24,tt,je=M,Ue=l,Ae=T,rt=L,St=32,Tt=2,dt,Et=null;function pt(){var gt={nodes:Ae.apply(null,arguments),links:rt.apply(null,arguments)};jt(gt),z(gt,je,Et),or(gt),ei(gt),q(gt,je),qr(gt,St,je),jr(gt);for(var Ge=4,Je=0;Je0?Ge+S+g:Ge,Je=Je>0?Je+S+g:Je,We=We>0?We+S+g:We,et=et>0?et+S+g:et,{top:Ge,bottom:Je,left:et,right:We}}function Ar(gt,Ge){var Je=t.max(gt.nodes,function(Mr){return Mr.column}),We=ar-at,et=Vt-ct,xt=We+Ge.right+Ge.left,At=et+Ge.top+Ge.bottom,Kt=We/xt,Qt=et/At;return at=at*Kt+Ge.left,ar=Ge.right==0?ar:ar*Kt,ct=ct*Qt+Ge.top,Vt=Vt*Qt,gt.nodes.forEach(function(Mr){Mr.x0=at+Mr.column*((ar-at-rr)/Je),Mr.x1=Mr.x0+rr}),Qt}function ei(gt){var Ge,Je,We;for(Ge=gt.nodes,Je=[],We=0;Ge.length;++We,Ge=Je,Je=[])Ge.forEach(function(et){et.depth=We,et.sourceLinks.forEach(function(xt){Je.indexOf(xt.target)<0&&!xt.circular&&Je.push(xt.target)})});for(Ge=gt.nodes,Je=[],We=0;Ge.length;++We,Ge=Je,Je=[])Ge.forEach(function(et){et.height=We,et.targetLinks.forEach(function(xt){Je.indexOf(xt.source)<0&&!xt.circular&&Je.push(xt.source)})});gt.nodes.forEach(function(et){et.column=Math.floor(Ue.call(null,et,We))})}function qr(gt,Ge,Je){var We=r.nest().key(function(Mr){return Mr.column}).sortKeys(t.ascending).entries(gt.nodes).map(function(Mr){return Mr.values});At(Je),Qt();for(var et=1,xt=Ge;xt>0;--xt)Kt(et*=.99,Je),Qt();function At(Mr){if(dt){var Gr=1/0;We.forEach(function(Pi){var ai=Vt*dt/(Pi.length+1);Gr=ai0))if(Pi==0&&_i==1)mi=ai.y1-ai.y0,ai.y0=Vt/2-mi/2,ai.y1=Vt/2+mi/2;else if(Pi==Ir-1&&_i==1)mi=ai.y1-ai.y0,ai.y0=Vt/2-mi/2,ai.y1=Vt/2+mi/2;else{var un=0,Fn=t.mean(ai.sourceLinks,k),An=t.mean(ai.targetLinks,p);Fn&&An?un=(Fn+An)/2:un=Fn||An;var Hn=(un-b(ai))*Mr;ai.y0+=Hn,ai.y1+=Hn}})})}function Qt(){We.forEach(function(Mr){var Gr,Ir,Yr=ct,_i=Mr.length,Pi;for(Mr.sort(v),Pi=0;Pi<_i;++Pi)Gr=Mr[Pi],Ir=Yr-Gr.y0,Ir>0&&(Gr.y0+=Ir,Gr.y1+=Ir),Yr=Gr.y1+tt;if(Ir=Yr-tt-Vt,Ir>0)for(Yr=Gr.y0-=Ir,Gr.y1-=Ir,Pi=_i-2;Pi>=0;--Pi)Gr=Mr[Pi],Ir=Gr.y1+tt-Yr,Ir>0&&(Gr.y0-=Ir,Gr.y1-=Ir),Yr=Gr.y0})}}function jr(gt){gt.nodes.forEach(function(Ge){Ge.sourceLinks.sort(d),Ge.targetLinks.sort(h)}),gt.nodes.forEach(function(Ge){var Je=Ge.y0,We=Je,et=Ge.y1,xt=et;Ge.sourceLinks.forEach(function(At){At.circular?(At.y0=et-At.width/2,et=et-At.width):(At.y0=Je+At.width/2,Je+=At.width)}),Ge.targetLinks.forEach(function(At){At.circular?(At.y1=xt-At.width/2,xt=xt-At.width):(At.y1=We+At.width/2,We+=At.width)})})}return pt}function z(at,ct,ar){var Vt=0;if(ar===null){for(var rr=[],tt=0;ttct.source.column)}function Z(at,ct){var ar=0;at.sourceLinks.forEach(function(rr){ar=rr.circular&&!mt(rr,ct)?ar+1:ar});var Vt=0;return at.targetLinks.forEach(function(rr){Vt=rr.circular&&!mt(rr,ct)?Vt+1:Vt}),ar+Vt}function j(at){var ct=at.source.sourceLinks,ar=0;ct.forEach(function(tt){ar=tt.circular?ar+1:ar});var Vt=at.target.targetLinks,rr=0;return Vt.forEach(function(tt){rr=tt.circular?rr+1:rr}),!(ar>1||rr>1)}function N(at,ct,ar){return at.sort(ae),at.forEach(function(Vt,rr){var tt=0;if(mt(Vt,ar)&&j(Vt))Vt.circularPathData.verticalBuffer=tt+Vt.width/2;else{var je=0;for(je;jett?Ue:tt}Vt.circularPathData.verticalBuffer=tt+Vt.width/2}}),at}function H(at,ct,ar,Vt){var rr=5,tt=t.min(at.links,function(Ae){return Ae.source.y0});at.links.forEach(function(Ae){Ae.circular&&(Ae.circularPathData={})});var je=at.links.filter(function(Ae){return Ae.circularLinkType=="top"});N(je,ct,Vt);var Ue=at.links.filter(function(Ae){return Ae.circularLinkType=="bottom"});N(Ue,ct,Vt),at.links.forEach(function(Ae){if(Ae.circular){if(Ae.circularPathData.arcRadius=Ae.width+g,Ae.circularPathData.leftNodeBuffer=rr,Ae.circularPathData.rightNodeBuffer=rr,Ae.circularPathData.sourceWidth=Ae.source.x1-Ae.source.x0,Ae.circularPathData.sourceX=Ae.source.x0+Ae.circularPathData.sourceWidth,Ae.circularPathData.targetX=Ae.target.x0,Ae.circularPathData.sourceY=Ae.y0,Ae.circularPathData.targetY=Ae.y1,mt(Ae,Vt)&&j(Ae))Ae.circularPathData.leftSmallArcRadius=g+Ae.width/2,Ae.circularPathData.leftLargeArcRadius=g+Ae.width/2,Ae.circularPathData.rightSmallArcRadius=g+Ae.width/2,Ae.circularPathData.rightLargeArcRadius=g+Ae.width/2,Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Ae.source.y1+S+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Ae.source.y0-S-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius);else{var rt=Ae.source.column,St=Ae.circularLinkType,Tt=at.links.filter(function(pt){return pt.source.column==rt&&pt.circularLinkType==St});Ae.circularLinkType=="bottom"?Tt.sort(Ee):Tt.sort(_e);var dt=0;Tt.forEach(function(pt,jt){pt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.leftSmallArcRadius=g+Ae.width/2+dt,Ae.circularPathData.leftLargeArcRadius=g+Ae.width/2+jt*ct+dt),dt=dt+pt.width}),rt=Ae.target.column,Tt=at.links.filter(function(pt){return pt.target.column==rt&&pt.circularLinkType==St}),Ae.circularLinkType=="bottom"?Tt.sort(ge):Tt.sort(Ce),dt=0,Tt.forEach(function(pt,jt){pt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.rightSmallArcRadius=g+Ae.width/2+dt,Ae.circularPathData.rightLargeArcRadius=g+Ae.width/2+jt*ct+dt),dt=dt+pt.width}),Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Math.max(ar,Ae.source.y1,Ae.target.y1)+S+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=tt-S-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius)}Ae.circularPathData.leftInnerExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightInnerExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightNodeBuffer,Ae.circularPathData.leftFullExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftLargeArcRadius+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightFullExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightLargeArcRadius-Ae.circularPathData.rightNodeBuffer}if(Ae.circular)Ae.path=re(Ae);else{var Et=n.linkHorizontal().source(function(pt){var jt=pt.source.x0+(pt.source.x1-pt.source.x0),or=pt.y0;return[jt,or]}).target(function(pt){var jt=pt.target.x0,or=pt.y1;return[jt,or]});Ae.path=Et(Ae)}})}function re(at){var ct="";return at.circularLinkType=="top"?ct="M"+at.circularPathData.sourceX+" "+at.circularPathData.sourceY+" L"+at.circularPathData.leftInnerExtent+" "+at.circularPathData.sourceY+" A"+at.circularPathData.leftLargeArcRadius+" "+at.circularPathData.leftSmallArcRadius+" 0 0 0 "+at.circularPathData.leftFullExtent+" "+(at.circularPathData.sourceY-at.circularPathData.leftSmallArcRadius)+" L"+at.circularPathData.leftFullExtent+" "+at.circularPathData.verticalLeftInnerExtent+" A"+at.circularPathData.leftLargeArcRadius+" "+at.circularPathData.leftLargeArcRadius+" 0 0 0 "+at.circularPathData.leftInnerExtent+" "+at.circularPathData.verticalFullExtent+" L"+at.circularPathData.rightInnerExtent+" "+at.circularPathData.verticalFullExtent+" A"+at.circularPathData.rightLargeArcRadius+" "+at.circularPathData.rightLargeArcRadius+" 0 0 0 "+at.circularPathData.rightFullExtent+" "+at.circularPathData.verticalRightInnerExtent+" L"+at.circularPathData.rightFullExtent+" "+(at.circularPathData.targetY-at.circularPathData.rightSmallArcRadius)+" A"+at.circularPathData.rightLargeArcRadius+" "+at.circularPathData.rightSmallArcRadius+" 0 0 0 "+at.circularPathData.rightInnerExtent+" "+at.circularPathData.targetY+" L"+at.circularPathData.targetX+" "+at.circularPathData.targetY:ct="M"+at.circularPathData.sourceX+" "+at.circularPathData.sourceY+" L"+at.circularPathData.leftInnerExtent+" "+at.circularPathData.sourceY+" A"+at.circularPathData.leftLargeArcRadius+" "+at.circularPathData.leftSmallArcRadius+" 0 0 1 "+at.circularPathData.leftFullExtent+" "+(at.circularPathData.sourceY+at.circularPathData.leftSmallArcRadius)+" L"+at.circularPathData.leftFullExtent+" "+at.circularPathData.verticalLeftInnerExtent+" A"+at.circularPathData.leftLargeArcRadius+" "+at.circularPathData.leftLargeArcRadius+" 0 0 1 "+at.circularPathData.leftInnerExtent+" "+at.circularPathData.verticalFullExtent+" L"+at.circularPathData.rightInnerExtent+" "+at.circularPathData.verticalFullExtent+" A"+at.circularPathData.rightLargeArcRadius+" "+at.circularPathData.rightLargeArcRadius+" 0 0 1 "+at.circularPathData.rightFullExtent+" "+at.circularPathData.verticalRightInnerExtent+" L"+at.circularPathData.rightFullExtent+" "+(at.circularPathData.targetY+at.circularPathData.rightSmallArcRadius)+" A"+at.circularPathData.rightLargeArcRadius+" "+at.circularPathData.rightSmallArcRadius+" 0 0 1 "+at.circularPathData.rightInnerExtent+" "+at.circularPathData.targetY+" L"+at.circularPathData.targetX+" "+at.circularPathData.targetY,ct}function ae(at,ct){return ie(at)==ie(ct)?at.circularLinkType=="bottom"?Ee(at,ct):_e(at,ct):ie(ct)-ie(at)}function _e(at,ct){return at.y0-ct.y0}function Ee(at,ct){return ct.y0-at.y0}function Ce(at,ct){return at.y1-ct.y1}function ge(at,ct){return ct.y1-at.y1}function ie(at){return at.target.column-at.source.column}function Se(at){return at.target.x0-at.source.x1}function ke(at,ct){var ar=V(at),Vt=Se(ct)/Math.tan(ar),rr=lt(at)=="up"?at.y1+Vt:at.y1-Vt;return rr}function be(at,ct){var ar=V(at),Vt=Se(ct)/Math.tan(ar),rr=lt(at)=="up"?at.y1-Vt:at.y1+Vt;return rr}function Be(at,ct,ar,Vt){at.links.forEach(function(rr){if(!rr.circular&&rr.target.column-rr.source.column>1){var tt=rr.source.column+1,je=rr.target.column-1,Ue=1,Ae=je-tt+1;for(Ue=1;tt<=je;tt++,Ue++)at.nodes.forEach(function(rt){if(rt.column==tt){var St=Ue/(Ae+1),Tt=Math.pow(1-St,3),dt=3*St*Math.pow(1-St,2),Et=3*Math.pow(St,2)*(1-St),pt=Math.pow(St,3),jt=Tt*rr.y0+dt*rr.y0+Et*rr.y1+pt*rr.y1,or=jt-rr.width/2,mr=jt+rr.width/2,Ar;or>rt.y0&&orrt.y0&&mrrt.y1&&me(ei,Ar,ct,ar)})):orrt.y1&&(Ar=mr-rt.y0+10,rt=me(rt,Ar,ct,ar),at.nodes.forEach(function(ei){C(ei,Vt)==C(rt,Vt)||ei.column!=rt.column||ei.y0rt.y1&&me(ei,Ar,ct,ar)}))}})}})}function Le(at,ct){return at.y0>ct.y0&&at.y0ct.y0&&at.y1ct.y1}function me(at,ct,ar,Vt){return at.y0+ct>=ar&&at.y1+ct<=Vt&&(at.y0=at.y0+ct,at.y1=at.y1+ct,at.targetLinks.forEach(function(rr){rr.y1=rr.y1+ct}),at.sourceLinks.forEach(function(rr){rr.y0=rr.y0+ct})),at}function Pe(at,ct,ar,Vt){at.nodes.forEach(function(rr){Vt&&rr.y+(rr.y1-rr.y0)>ct&&(rr.y=rr.y-(rr.y+(rr.y1-rr.y0)-ct));var tt=at.links.filter(function(Ae){return C(Ae.source,ar)==C(rr,ar)}),je=tt.length;je>1&&tt.sort(function(Ae,rt){if(!Ae.circular&&!rt.circular){if(Ae.target.column==rt.target.column)return Ae.y1-rt.y1;if(He(Ae,rt)){if(Ae.target.column>rt.target.column){var St=be(rt,Ae);return Ae.y1-St}if(rt.target.column>Ae.target.column){var Tt=be(Ae,rt);return Tt-rt.y1}}else return Ae.y1-rt.y1}if(Ae.circular&&!rt.circular)return Ae.circularLinkType=="top"?-1:1;if(rt.circular&&!Ae.circular)return rt.circularLinkType=="top"?1:-1;if(Ae.circular&&rt.circular)return Ae.circularLinkType===rt.circularLinkType&&Ae.circularLinkType=="top"?Ae.target.column===rt.target.column?Ae.target.y1-rt.target.y1:rt.target.column-Ae.target.column:Ae.circularLinkType===rt.circularLinkType&&Ae.circularLinkType=="bottom"?Ae.target.column===rt.target.column?rt.target.y1-Ae.target.y1:Ae.target.column-rt.target.column:Ae.circularLinkType=="top"?-1:1});var Ue=rr.y0;tt.forEach(function(Ae){Ae.y0=Ue+Ae.width/2,Ue=Ue+Ae.width}),tt.forEach(function(Ae,rt){if(Ae.circularLinkType=="bottom"){var St=rt+1,Tt=0;for(St;St1&&rr.sort(function(Ue,Ae){if(!Ue.circular&&!Ae.circular){if(Ue.source.column==Ae.source.column)return Ue.y0-Ae.y0;if(He(Ue,Ae)){if(Ae.source.column0?"up":"down"}function mt(at,ct){return C(at.source,ct)==C(at.target,ct)}function Ht(at,ct,ar){var Vt=at.nodes,rr=at.links,tt=!1,je=!1;if(rr.forEach(function(dt){dt.circularLinkType=="top"?tt=!0:dt.circularLinkType=="bottom"&&(je=!0)}),tt==!1||je==!1){var Ue=t.min(Vt,function(dt){return dt.y0}),Ae=t.max(Vt,function(dt){return dt.y1}),rt=Ae-Ue,St=ar-ct,Tt=St/rt;Vt.forEach(function(dt){var Et=(dt.y1-dt.y0)*Tt;dt.y0=(dt.y0-Ue)*Tt,dt.y1=dt.y0+Et}),rr.forEach(function(dt){dt.y0=(dt.y0-Ue)*Tt,dt.y1=(dt.y1-Ue)*Tt,dt.width=dt.width*Tt})}}e.sankeyCircular=E,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})}))});var i$=ye((U2r,uXe)=>{"use strict";uXe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var wXe=ye((V2r,bXe)=>{"use strict";var cXe=QWe(),xYt=(W2(),gb(j2)).interpolateNumber,N5=Fa(),lC=nXe(),bYt=lXe(),Nu=i$(),U5=fd(),xw=ka(),wYt=So(),T1=Pr(),o$=T1.strTranslate,TYt=T1.strRotate,s$=ay(),uC=s$.keyFun,F7=s$.repeat,gXe=s$.unwrap,fXe=Zl(),AYt=Oa(),mXe=Dh(),SYt=mXe.CAP_SHIFT,MYt=mXe.LINE_SPACING,EYt=3;function kYt(e,t,r){var n=gXe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,l=i.node.thickness,u={justify:lC.sankeyJustify,left:lC.sankeyLeft,right:lC.sankeyRight,center:lC.sankeyCenter}[i.node.align],c=e.width*(a.x[1]-a.x[0]),f=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,v=n.circular,m;v?m=bYt.sankeyCircular().circularLinkGap(0):m=lC.sankey(),m.iterations(Nu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(V){return V.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=m();m.nodePadding()=N||(j=N-Z.y0,j>1e-6&&(Z.y0+=j,Z.y1+=j)),N=Z.y1+s})}function P(V){var G=V.map(function(_e,Ee){return{x0:_e.x0,index:Ee}}).sort(function(_e,Ee){return _e.x0-Ee.x0}),Z=[],j=-1,N,H=-1/0,re;for(p=0;pH+l&&(j+=1,N=ae.x0),H=ae.x0,Z[j]||(Z[j]=[]),Z[j].push(ae),re=N-ae.x0,ae.x0+=re,ae.x1+=re}return Z}if(i.node.x.length&&i.node.y.length){for(p=0;p0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function l$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return LYt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=xYt(a,o),l=s(e),u=s(1-e),c=r.link.y0-r.link.width/2,f=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,v="M"+a+","+c,m="C"+l+","+c+" "+u+","+h+" "+o+","+h,b="C"+u+","+d+" "+l+","+f+" "+a+","+f,p=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return p+="L"+o+","+d,v+m+p+b+"Z"}return t}function PYt(e,t){var r=U5(t.color),n=Nu.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=T1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:xw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function a$(e){e.attr("transform",function(t){return o$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function IYt(e){e.call(a$)}function yXe(e,t){e.call(IYt),t.attr("d",l$())}function hXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function n$(e){return e.link.width>1||e.linkLineWidth>0}function dXe(e){var t=o$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function vXe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function RYt(e,t,r,n){var i=N5.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(T1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),T1.raiseToTop(this),a.interactionState.dragInProgress=a.node,pXe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):DYt(e,o,a,n),FYt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=N5.event.x,s=N5.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),pXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),yXe(e.filter(xXe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,_Xe(r,i)}})}function zYt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function _Xe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Zv=Fa(),c$=Pr(),z7=c$.numberFormat,NYt=wXe(),V5=ef(),UYt=ka(),Fx=i$().cn,cC=c$._;function TXe(e){return e!==""}function G5(e,t){return e.filter(function(r){return r.key===t.traceId})}function AXe(e,t){Zv.select(e).select("path").style("fill-opacity",t),Zv.select(e).select("rect").style("fill-opacity",t)}function SXe(e){Zv.select(e).select("text.name").style("fill","black")}function MXe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function EXe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function kXe(e,t,r){t&&r&&G5(r,t).selectAll("."+Fx.sankeyLink).filter(MXe(t)).call(CXe.bind(0,t,r,!1))}function u$(e,t,r){t&&r&&G5(r,t).selectAll("."+Fx.sankeyLink).filter(MXe(t)).call(LXe.bind(0,t,r,!1))}function CXe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&G5(t,e).selectAll("."+Fx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&G5(t,e).selectAll("."+Fx.sankeyNode).filter(EXe(e)).call(kXe)}function LXe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&G5(t,e).selectAll("."+Fx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&G5(t,e).selectAll(Fx.sankeyNode).filter(EXe(e)).call(u$)}function kf(e,t){var r=e.hoverlabel||{},n=c$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}PXe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:kf(C,"bgcolor")||UYt.addOpacity(z.color,1),borderColor:kf(C,"bordercolor"),fontFamily:kf(C,"font.family"),fontSize:kf(C,"font.size"),fontColor:kf(C,"font.color"),fontWeight:kf(C,"font.weight"),fontStyle:kf(C,"font.style"),fontVariant:kf(C,"font.variant"),fontTextcase:kf(C,"font.textcase"),fontLineposition:kf(C,"font.lineposition"),fontShadow:kf(C,"font.shadow"),nameLength:kf(C,"namelength"),textAlign:kf(C,"align"),idealAlign:Zv.event.x"),color:kf(C,"bgcolor")||x.tinyColorHue,borderColor:kf(C,"bordercolor"),fontFamily:kf(C,"font.family"),fontSize:kf(C,"font.size"),fontColor:kf(C,"font.color"),fontWeight:kf(C,"font.weight"),fontStyle:kf(C,"font.style"),fontVariant:kf(C,"font.variant"),fontTextcase:kf(C,"font.textcase"),fontLineposition:kf(C,"font.lineposition"),fontShadow:kf(C,"font.shadow"),nameLength:kf(C,"namelength"),textAlign:kf(C,"align"),idealAlign:"left",hovertemplate:C.hovertemplate,hovertemplateLabels:V,eventData:[x.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});AXe(j,.85),SXe(j)}}},T=function(L,x,C){t._fullLayout.hovermode!==!1&&(Zv.select(L).call(u$,x,C),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Zv.event,points:[x.node]})),V5.loneUnhover(n._hoverlayer.node()))};NYt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:m,unhover:b,select:l},nodeEvents:{hover:k,follow:M,unhover:T,select:p}})}});var IXe=ye(bw=>{"use strict";var VYt=mc().overrideAll,GYt=Id().getModuleCalcData,HYt=f$(),jYt=X1(),WYt=Eg(),XYt=yv(),ZYt=qf().prepSelect,h$=Pr(),YYt=Oa(),q7="sankey";bw.name=q7;bw.baseLayoutAttrOverrides=VYt({hoverlabel:jYt.hoverlabel},"plot","nested");bw.plot=function(e){var t=GYt(e.calcdata,q7)[0];HYt(e,t),bw.updateFx(e)};bw.clean=function(e,t,r,n){var i=n._has&&n._has(q7),a=t._has&&t._has(q7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};bw.updateFx=function(e){for(var t=0;t{"use strict";RXe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";FXe.exports={attributes:e$(),supplyDefaults:BWe(),calc:HWe(),plot:f$(),moduleType:"trace",name:"sankey",basePlotModule:IXe(),selectPoints:DXe(),categories:["noOpacity"],meta:{}}});var OXe=ye((X2r,qXe)=>{"use strict";qXe.exports=zXe()});var NXe=ye(H5=>{"use strict";var BXe=Mc();H5.name="indicator";H5.plot=function(e,t,r,n){BXe.plotBasePlot(H5.name,e,t,r,n)};H5.clean=function(e,t,r,n){BXe.cleanBasePlot(H5.name,e,t,r,n)}});var v$=ye((Y2r,WXe)=>{"use strict";var zx=Ao().extendFlat,VXe=Ao().extendDeep,JYt=mc().overrideAll,GXe=ec(),HXe=Ih(),$Yt=Cc().attributes,Nf=Rd(),QYt=vl().templatedArray,O7=tA(),UXe=vf().descriptionOnlyNumbers,d$=GXe({editType:"plot",colorEditType:"plot"}),fC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:HXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},jXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},eKt=QYt("step",VXe({},fC,{range:jXe}));WXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:$Yt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:zx({},d$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:UXe("value")},font:zx({},d$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:UXe("value")},increasing:{symbol:{valType:"string",dflt:O7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:O7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:O7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:O7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:zx({},d$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:VXe({},fC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:HXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:JYt({range:jXe,visible:zx({},Nf.visible,{dflt:!0}),tickmode:Nf.minor.tickmode,nticks:Nf.nticks,tick0:Nf.tick0,dtick:Nf.dtick,tickvals:Nf.tickvals,ticktext:Nf.ticktext,ticks:zx({},Nf.ticks,{dflt:"outside"}),ticklen:Nf.ticklen,tickwidth:Nf.tickwidth,tickcolor:Nf.tickcolor,ticklabelstep:Nf.ticklabelstep,showticklabels:Nf.showticklabels,labelalias:Nf.labelalias,tickfont:GXe({}),tickangle:Nf.tickangle,tickformat:Nf.tickformat,tickformatstops:Nf.tickformatstops,tickprefix:Nf.tickprefix,showtickprefix:Nf.showtickprefix,ticksuffix:Nf.ticksuffix,showticksuffix:Nf.showticksuffix,separatethousands:Nf.separatethousands,exponentformat:Nf.exponentformat,minexponent:Nf.minexponent,showexponent:Nf.showexponent,editType:"plot"},"plot"),steps:eKt,threshold:{line:{color:zx({},fC.line.color,{}),width:zx({},fC.line.width,{dflt:1}),editType:"plot"},thickness:zx({},fC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var p$=ye((K2r,XXe)=>{"use strict";XXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var KXe=ye((J2r,YXe)=>{"use strict";var uy=Pr(),N7=v$(),tKt=Cc().defaults,ZXe=vl(),rKt=Kd(),B7=p$(),iKt=Pb(),nKt=B3(),aKt=l_(),oKt=u_();function sKt(e,t,r,n){function i(x,C){return uy.coerce(e,t,N7,x,C)}tKt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var l=uy.extendFlat({},n.font);l.size=void 0,uy.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=B7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=uy.extendFlat({},n.font);c.size=void 0,uy.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||B7.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=uy.extendFlat({},n.font);f.size=.25*(s||u||B7.defaultNumberFontSize),uy.coerceFont(i,"title.font",f),i("title.text");var h,d,v,m;function b(x,C){return uy.coerce(h,d,N7.gauge,x,C)}function p(x,C){return uy.coerce(v,m,N7.gauge.axis,x,C)}if(t._hasGauge){h=e.gauge,h||(h={}),d=ZXe.newContainer(t,"gauge"),b("shape");var k=t._isBullet=t.gauge.shape==="bullet";k||i("title.align","center");var M=t._isAngular=t.gauge.shape==="angular";M||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var T=B7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),rKt(h,d,{name:"steps",handleItemDefaults:lKt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),m=ZXe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};iKt(v,m,p,"linear"),oKt(v,m,p,"linear",L),aKt(v,m,p,"linear",L),nKt(v,m,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function lKt(e,t){function r(n,i){return uy.coerce(e,t,N7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}YXe.exports={supplyDefaults:sKt}});var $Xe=ye(($2r,JXe)=>{"use strict";function uKt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}JXe.exports={calc:uKt}});var nZe=ye((Q2r,iZe)=>{"use strict";var Mw=Fa(),cKt=(W2(),gb(j2)).interpolate,QXe=(W2(),gb(j2)).interpolateNumber,qx=Pr(),fKt=qx.strScale,dC=qx.strTranslate,hKt=qx.rad2deg,dKt=Dh().MID_SHIFT,Sw=So(),ww=p$(),V7=Zl(),lv=ho(),vKt=v4(),pKt=gI(),gKt=Rd(),j5=ka(),g$={left:"start",center:"middle",right:"end"},Tw={left:0,center:.5,right:1},eZe=/[yzafpnµmkMGTPEZY]/;function vC(e){return e&&e.duration>0}iZe.exports=function(t,r,n,i){var a=t._fullLayout,o;vC(n)&&i&&(o=i()),qx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=Mw.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,m={w:a._size.w*(v.x[1]-v.x[0]),h:a._size.h*(v.y[1]-v.y[0]),l:a._size.l+a._size.w*v.x[0],r:a._size.r+a._size.w*(1-v.x[1]),t:a._size.t+a._size.h*(1-v.y[1]),b:a._size.b+a._size.h*v.y[0]},b=m.l+m.w/2,p=m.t+m.h/2,k=Math.min(m.w/2,m.h),M=ww.innerRadius*k,T,L,x,C=u.align||"center";if(L=p,!f)T=m.l+Tw[C]*m.w,x=function(j){return tZe(j,m.w,m.h)};else if(h&&(T=b,L=p+k/2,x=function(j){return bKt(j,.9*M)}),d){var S=ww.bulletPadding,g=1-ww.bulletNumberDomainSize+S;T=m.l+(g+(1-g)*Tw[C])*m.w,x=function(j){return tZe(j,(ww.bulletNumberDomainSize-S)*m.w,m.h)}}_Kt(t,c,s,{numbersX:T,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,E;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},E={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var z=c.selectAll("g.angular").data(h?s:[]);z.exit().remove();var q=c.selectAll("g.angularaxis").data(h?s:[]);q.exit().remove(),h&&yKt(t,c,s,{radius:k,innerRadius:M,gauge:z,layer:q,size:m,gaugeBg:P,gaugeOutline:E,transitionOpts:n,onComplete:o});var V=c.selectAll("g.bullet").data(d?s:[]);V.exit().remove();var G=c.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&mKt(t,c,s,{gauge:V,layer:G,size:m,gaugeBg:P,gaugeOutline:E,transitionOpts:n,onComplete:o});var Z=c.selectAll("text.title").data(s);Z.exit().remove(),Z.enter().append("text").classed("title",!0),Z.attr("text-anchor",function(){return d?g$.right:g$[u.title.align]}).text(u.title.text).call(Sw.font,u.title.font).call(V7.convertToTspans,t),Z.attr("transform",function(){var j=m.l+m.w*Tw[u.title.align],N,H=ww.titlePadding,re=Sw.bBox(Z.node());if(f){if(h)if(u.gauge.axis.visible){var ae=Sw.bBox(q.node());N=ae.top-H-re.bottom}else N=m.t+m.h/2-k/2-re.bottom-H;d&&(N=L-(re.top+re.bottom)/2,j=m.l-ww.bulletPadding*m.w)}else N=u._numbersTop-H-re.bottom;return dC(j,N)})})};function mKt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,l=n.gaugeOutline,u=n.size,c=i.domain,f=n.transitionOpts,h=n.onComplete,d,v,m,b,p;a.enter().append("g").classed("bullet",!0),a.attr("transform",dC(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var k=u.h,M=i.gauge.bar.thickness*k,T=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-ww.bulletNumberDomainSize:1);d=hC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),v=lv.calcTicks(d),m=lv.makeTransTickFn(d),b=lv.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(lv.drawTicks(e,d,{vals:d.ticks==="inside"?lv.clipEnds(d,v):v,layer:o,path:lv.makeTickPath(d,p,b),transFn:m}),lv.drawLabels(e,d,{vals:v,layer:o,transFn:m,labelFns:lv.makeLabelFns(d,p)}));function x(q){q.attr("width",function(V){return Math.max(0,d.c2p(V.range[1])-d.c2p(V.range[0]))}).attr("x",function(V){return d.c2p(V.range[0])}).attr("y",function(V){return .5*(1-V.thickness)*k}).attr("height",function(V){return V.thickness*k})}var C=[s].concat(i.gauge.steps),S=a.selectAll("g.bg-bullet").data(C);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(x).call(Aw),S.exit().remove();var g=a.selectAll("g.value-bullet").data([i.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",M).attr("y",(k-M)/2).call(Aw),vC(f)?g.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),E=a.selectAll("g.threshold-bullet").data(P);E.enter().append("g").classed("threshold-bullet",!0).append("line"),E.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*k).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*k).call(j5.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),E.exit().remove();var z=a.selectAll("g.gauge-outline").data([l]);z.enter().append("g").classed("gauge-outline",!0).append("rect"),z.select("rect").call(x).call(Aw),z.exit().remove()}function yKt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,l=n.gaugeBg,u=n.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=n.gauge,h=n.layer,d=n.transitionOpts,v=n.onComplete,m=Math.PI/2;function b(_e){var Ee=i.gauge.axis.range[0],Ce=i.gauge.axis.range[1],ge=(_e-Ee)/(Ce-Ee)*Math.PI-m;return ge<-m?-m:ge>m?m:ge}function p(_e){return Mw.svg.arc().innerRadius((s+o)/2-_e/2*(o-s)).outerRadius((s+o)/2+_e/2*(o-s)).startAngle(-m)}function k(_e){_e.attr("d",function(Ee){return p(Ee.thickness).startAngle(b(Ee.range[0])).endAngle(b(Ee.range[1]))()})}var M,T,L,x;f.enter().append("g").classed("angular",!0),f.attr("transform",dC(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),M=hC(e,i.gauge.axis),M.type="linear",M.range=i.gauge.axis.range,M._id="xangularaxis",M.ticklabeloverflow="allow",M.setScale();var C=function(_e){return(M.range[0]-_e.x)/(M.range[1]-M.range[0])*Math.PI+Math.PI},S={},g=lv.makeLabelFns(M,0),P=g.labelStandoff;S.xFn=function(_e){var Ee=C(_e);return Math.cos(Ee)*P},S.yFn=function(_e){var Ee=C(_e),Ce=Math.sin(Ee)>0?.2:1;return-Math.sin(Ee)*(P+_e.fontSize*Ce)+Math.abs(Math.cos(Ee))*(_e.fontSize*dKt)},S.anchorFn=function(_e){var Ee=C(_e),Ce=Math.cos(Ee);return Math.abs(Ce)<.1?"middle":Ce>0?"start":"end"},S.heightFn=function(_e,Ee,Ce){var ge=C(_e);return-.5*(1+Math.sin(ge))*Ce};var E=function(_e){return dC(c[0]+o*Math.cos(_e),c[1]-o*Math.sin(_e))};L=function(_e){return E(C(_e))};var z=function(_e){var Ee=C(_e);return E(Ee)+"rotate("+-hKt(Ee)+")"};if(T=lv.calcTicks(M),x=lv.getTickSigns(M)[2],M.visible){x=M.ticks==="inside"?-1:1;var q=(M.linewidth||1)/2;lv.drawTicks(e,M,{vals:T,layer:h,path:"M"+x*q+",0h"+x*M.ticklen,transFn:z}),lv.drawLabels(e,M,{vals:T,layer:h,transFn:L,labelFns:S})}var V=[l].concat(i.gauge.steps),G=f.selectAll("g.bg-arc").data(V);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(k).call(Aw),G.exit().remove();var Z=p(i.gauge.bar.thickness),j=f.selectAll("g.value-arc").data([i.gauge.bar]);j.enter().append("g").classed("value-arc",!0).append("path");var N=j.select("path");vC(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attrTween("d",xKt(Z,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?Z.endAngle(b(r[0].y)):"M0,0Z"),N.call(Aw),j.exit().remove(),V=[];var H=i.gauge.threshold.value;(H||H===0)&&V.push({range:[H,H],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=f.selectAll("g.threshold-arc").data(V);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(k).call(Aw),re.exit().remove();var ae=f.selectAll("g.gauge-outline").data([u]);ae.enter().append("g").classed("gauge-outline",!0).append("path"),ae.select("path").call(k).call(Aw),ae.exit().remove()}function _Kt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=g$[s],u=n.transitionOpts,c=n.onComplete,f=qx.ensureSingle(t,"g","numbers"),h,d,v,m=[];i._hasNumber&&m.push("number"),i._hasDelta&&(m.push("delta"),i.delta.position==="left"&&m.reverse());var b=f.selectAll("text").data(m);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(E){return E}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(E,z,q,V){if(E.match("s")&&q>=0!=V>=0&&!z(q).slice(-1).match(eZe)&&!z(V).slice(-1).match(eZe)){var G=E.slice().replace("s","f").replace(/\d+/,function(j){return parseInt(j)-1}),Z=hC(e,{tickformat:G});return function(j){return Math.abs(j)<1?lv.tickText(Z,j).text:z(j)}}else return z}function k(){var E=hC(e,{tickformat:i.number.valueformat},i._range);E.setScale(),lv.prepTicks(E);var z=function(j){return lv.tickText(E,j).text},q=i.number.suffix,V=i.number.prefix,G=f.select("text.number");function Z(){var j=typeof r[0].y=="number"?V+z(r[0].y)+q:"-";G.text(j).call(Sw.font,i.number.font).call(V7.convertToTspans,e)}return vC(u)?G.transition().duration(u.duration).ease(u.easing).each("end",function(){Z(),c&&c()}).each("interrupt",function(){Z(),c&&c()}).attrTween("text",function(){var j=Mw.select(this),N=QXe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var H=p(i.number.valueformat,z,r[0].lastY,r[0].y);return function(re){j.text(V+H(N(re))+q)}}):Z(),h=rZe(V+z(r[0].y)+q,i.number.font,l,e),G}function M(){var E=hC(e,{tickformat:i.delta.valueformat},i._range);E.setScale(),lv.prepTicks(E);var z=function(re){return lv.tickText(E,re).text},q=i.delta.suffix,V=i.delta.prefix,G=function(re){var ae=i.delta.relative?re.relativeDelta:re.delta;return ae},Z=function(re,ae){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+V+ae(re)+q},j=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=f.select("text.delta");N.call(Sw.font,i.delta.font).call(j5.fill,j({delta:i._deltaLastValue}));function H(){N.text(Z(G(r[0]),z)).call(j5.fill,j(r[0])).call(V7.convertToTspans,e)}return vC(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var re=Mw.select(this),ae=G(r[0]),_e=i._deltaLastValue,Ee=p(i.delta.valueformat,z,_e,ae),Ce=QXe(_e,ae);return i._deltaLastValue=ae,function(ge){re.text(Z(Ce(ge),Ee)),re.call(j5.fill,j({delta:Ce(ge)}))}}).each("end",function(){H(),c&&c()}).each("interrupt",function(){H(),c&&c()}):H(),d=rZe(Z(G(r[0]),z),i.delta.font,l,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=M(),T+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,T+=i.delta.increasing.symbol+i.delta.decreasing.symbol,v=d),i._hasNumber&&(k(),T+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,v=h),i._hasDelta&&i._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],C=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(S=U7(i,"deltaPos",0,-1*(h.width*Tw[i.align]+d.width*(1-Tw[i.align])+P),T,Math.min),g=x[1]-C[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(S=U7(i,"deltaPos",0,h.width*(1-Tw[i.align])+d.width*Tw[i.align]+P,T,Math.max),g=x[1]-C[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(S=null,g=d.height,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(S=null,g=h.top,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:S,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var E=n.numbersScaler(v);T+=E[2];var z=U7(i,"numbersScale",1,E[0],T,Math.min),q;i._scaleNumbers||(z=1),i._isAngular?q=o-z*v.bottom:q=o-z*(v.top+v.bottom)/2,i._numbersTop=z*v.top+q;var V=v[s];s==="center"&&(V=(v.left+v.right)/2);var G=a-z*V;return G=U7(i,"numbersTranslate",0,G,T,Math.max),dC(G,q)+fKt(z)})}function Aw(e){e.each(function(t){j5.stroke(Mw.select(this),t.line.color)}).each(function(t){j5.fill(Mw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function xKt(e,t,r){return function(){var n=cKt(t,r);return function(i){return e.endAngle(n(i))()}}}function hC(e,t,r){var n=e._fullLayout,i=qx.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return qx.coerce(i,a,gKt,l,u)}return vKt(i,a,s,o,n),pKt(i,a,s,o),a}function tZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function bKt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function rZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=Mw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(V7.convertToTspans,n).call(Sw.font,t),Sw.bBox(a.node())}function U7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=qx.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var oZe=ye((ewr,aZe)=>{"use strict";aZe.exports={moduleType:"trace",name:"indicator",basePlotModule:NXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:v$(),supplyDefaults:KXe().supplyDefaults,calc:$Xe().calc,plot:nZe(),meta:{}}});var lZe=ye((twr,sZe)=>{"use strict";sZe.exports=oZe()});var m$=ye((iwr,hZe)=>{"use strict";var uZe=Qb(),G7=Ao().extendFlat,wKt=mc().overrideAll,cZe=ec(),TKt=Cc().attributes,fZe=vf().descriptionOnlyNumbers,rwr=hZe.exports=wKt({domain:TKt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:fZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:G7({},uZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:G7({},cZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:fZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:G7({},uZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:G7({},cZe({arrayOk:!0}))}},"calc","from-root")});var vZe=ye((nwr,dZe)=>{"use strict";var y$=Pr(),AKt=m$(),SKt=Cc().defaults;function MKt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(l,u){return l-u}),o=i.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var EKt=ay().wrap;pZe.exports=function(){return EKt({})}});var _$=ye((owr,mZe)=>{"use strict";mZe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var MZe=ye((swr,SZe)=>{"use strict";var yZe=_$(),b$=Ao().extendFlat,kKt=Eo(),CKt=Yd().isTypedArray,H7=Yd().isArrayOrTypedArray;SZe.exports=function(t,r){var n=x$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=x$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=x$(a));var o=a.concat(i(n).map(function(){return AZe((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),c=r.header.values.length?o[0].map(function(){return r.header.height}):[yZe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(_Ze,0),d=u-h,v=d+yZe.uplift,m=wZe(f,v),b=wZe(c,h),p=bZe(b,[]),k=bZe(m,p),M={},T=r._fullInput.columnorder;H7(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var E=H7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return kKt(E)?Number(E):1}),x=L.reduce(_Ze,0);L=L.map(function(g){return g/x*l});var C=Math.max(w$(r.header.line.width),w$(r.cells.line.width)),S={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:C,height:u,columnOrder:T,groupHeight:u,rowBlocks:k,headerRowBlocks:p,scrollY:0,cells:b$({},r.cells,{values:n}),headerCells:b$({},r.header,{values:o}),gdColumns:o.map(function(g){return g[0]}),gdColumnsOriginalOrder:o.map(function(g){return g[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(g,P){var E=M[g];M[g]=(E||0)+1;var z=g+"__"+M[g];return{key:z,label:g,specIndex:P,xIndex:T[P],xScale:xZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return S.columns.forEach(function(g){g.calcdata=S,g.x=xZe(g)}),S};function w$(e){if(H7(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=TZe(),i+=a,s=u+1,a=0);return r}function TZe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var EZe=ye(T$=>{"use strict";var j7=Ao().extendFlat;T$.splitToPanels=function(e){var t=[0,0],r=j7({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:j7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=j7({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=j7({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};T$.splitToCells=function(e){var t=LKt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function LKt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var R$=ye((uwr,OZe)=>{"use strict";var Ya=_$(),rf=Fa(),A$=Pr(),PKt=A$.numberFormat,Uu=ay(),S$=So(),IKt=Zl(),RKt=Pr().raiseToTop,lg=Pr().strTranslate,DKt=Pr().cancelTransition,FKt=MZe(),DZe=EZe(),kZe=ka();OZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+Ya.cn.table).data(r.map(function(k){var M=Uu.unwrap(k),T=M.trace;return FKt(t,T)}),Uu.keyFun);i.exit().remove(),i.enter().append("g").classed(Ya.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(k){return k.width+k.size.l+k.size.r}).attr("height",function(k){return k.height+k.size.t+k.size.b}).attr("transform",function(k){return lg(k.translateX,k.translateY)});var a=i.selectAll("."+Ya.cn.tableControlView).data(Uu.repeat,Uu.keyFun),o=a.enter().append("g").classed(Ya.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(k){a.filter(function(M){return k===M}).call(pC,t)}).on(s,function(k){if(!k.scrollbarState.wheeling){k.scrollbarState.wheeling=!0;var M=k.scrollY+rf.event.deltaY,T=X7(t,a,null,M)(k);T||(rf.event.stopPropagation(),rf.event.preventDefault()),k.scrollbarState.wheeling=!1}}).call(pC,t,!0)}a.attr("transform",function(k){return lg(k.size.l,k.size.t)});var l=a.selectAll("."+Ya.cn.scrollBackground).data(Uu.repeat,Uu.keyFun);l.enter().append("rect").classed(Ya.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),a.each(function(k){S$.setClipUrl(rf.select(this),CZe(t,k),t)});var u=a.selectAll("."+Ya.cn.yColumn).data(function(k){return k.columns},Uu.keyFun);u.enter().append("g").classed(Ya.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(k){return lg(k.x,0)}),n&&u.call(rf.behavior.drag().origin(function(k){var M=rf.select(this);return IZe(M,k,-Ya.uplift),RKt(this),k.calcdata.columnDragInProgress=!0,pC(a.filter(function(T){return k.calcdata.key===T.key}),t),k}).on("drag",function(k){var M=rf.select(this),T=function(C){return(k===C?rf.event.x:C.x)+C.columnWidth/2};k.x=Math.max(-Ya.overdrag,Math.min(k.calcdata.width+Ya.overdrag-k.columnWidth,rf.event.x));var L=FZe(u).filter(function(C){return C.calcdata.key===k.calcdata.key}),x=L.sort(function(C,S){return T(C)-T(S)});x.forEach(function(C,S){C.xIndex=S,C.x=k===C?C.x:C.xScale(C)}),u.filter(function(C){return k!==C}).transition().ease(Ya.transitionEase).duration(Ya.transitionDuration).attr("transform",function(C){return lg(C.x,0)}),M.call(DKt).attr("transform",lg(k.x,-Ya.uplift))}).on("dragend",function(k){var M=rf.select(this),T=k.calcdata;k.x=k.xScale(k),k.calcdata.columnDragInProgress=!1,IZe(M,k,0),jKt(t,T,T.columns.map(function(L){return L.xIndex}))})),u.each(function(k){S$.setClipUrl(rf.select(this),LZe(t,k),t)});var c=u.selectAll("."+Ya.cn.columnBlock).data(DZe.splitToPanels,Uu.keyFun);c.enter().append("g").classed(Ya.cn.columnBlock,!0).attr("id",function(k){return k.key}),c.style("cursor",function(k){return k.dragHandle?"ew-resize":k.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(WKt),h=c.filter(L$);n&&h.call(rf.behavior.drag().origin(function(k){return rf.event.stopPropagation(),k}).on("drag",X7(t,a,-1)).on("dragend",function(){})),M$(t,a,f,c),M$(t,a,h,c);var d=a.selectAll("."+Ya.cn.scrollAreaClip).data(Uu.repeat,Uu.keyFun);d.enter().append("clipPath").classed(Ya.cn.scrollAreaClip,!0).attr("id",function(k){return CZe(t,k)});var v=d.selectAll("."+Ya.cn.scrollAreaClipRect).data(Uu.repeat,Uu.keyFun);v.enter().append("rect").classed(Ya.cn.scrollAreaClipRect,!0).attr("x",-Ya.overdrag).attr("y",-Ya.uplift).attr("fill","none"),v.attr("width",function(k){return k.width+2*Ya.overdrag}).attr("height",function(k){return k.height+Ya.uplift});var m=u.selectAll("."+Ya.cn.columnBoundary).data(Uu.repeat,Uu.keyFun);m.enter().append("g").classed(Ya.cn.columnBoundary,!0);var b=u.selectAll("."+Ya.cn.columnBoundaryClippath).data(Uu.repeat,Uu.keyFun);b.enter().append("clipPath").classed(Ya.cn.columnBoundaryClippath,!0),b.attr("id",function(k){return LZe(t,k)});var p=b.selectAll("."+Ya.cn.columnBoundaryRect).data(Uu.repeat,Uu.keyFun);p.enter().append("rect").classed(Ya.cn.columnBoundaryRect,!0).attr("fill","none"),p.attr("width",function(k){return k.columnWidth+2*W7(k)}).attr("height",function(k){return k.calcdata.height+2*W7(k)+Ya.uplift}).attr("x",function(k){return-W7(k)}).attr("y",function(k){return-W7(k)}),P$(null,h,a)};function W7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function CZe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function LZe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function FZe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function pC(e,t,r){function n(u){var c=u.rowBlocks;return k$(c,c.length-1)+(c.length?Z7(c[c.length-1],1/0):1)}var i=e.selectAll("."+Ya.cn.scrollbarKit).data(Uu.repeat,Uu.keyFun);i.enter().append("g").classed(Ya.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(u){var c=u.scrollbarState;c.totalHeight=n(u),c.scrollableAreaHeight=u.groupHeight-E$(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,Ya.goldenRatio*Ya.scrollbarWidth),c.barWiggleRoom=c.currentlyVisibleHeight-c.barLength,c.wiggleRoom=Math.max(0,c.totalHeight-c.scrollableAreaHeight),c.topY=c.barWiggleRoom===0?0:u.scrollY/c.wiggleRoom*c.barWiggleRoom,c.bottomY=c.topY+c.barLength,c.dragMultiplier=c.wiggleRoom/c.barWiggleRoom}).attr("transform",function(u){var c=u.width+Ya.scrollbarWidth/2+Ya.scrollbarOffset;return lg(c,E$(u))});var a=i.selectAll("."+Ya.cn.scrollbar).data(Uu.repeat,Uu.keyFun);a.enter().append("g").classed(Ya.cn.scrollbar,!0);var o=a.selectAll("."+Ya.cn.scrollbarSlider).data(Uu.repeat,Uu.keyFun);o.enter().append("g").classed(Ya.cn.scrollbarSlider,!0),o.attr("transform",function(u){return lg(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+Ya.cn.scrollbarGlyph).data(Uu.repeat,Uu.keyFun);s.enter().append("line").classed(Ya.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",Ya.scrollbarWidth).attr("stroke-linecap","round").attr("y1",Ya.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-Ya.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(Ya.scrollbarHideDelay).duration(Ya.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+Ya.cn.scrollbarCaptureZone).data(Uu.repeat,Uu.keyFun);l.enter().append("line").classed(Ya.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",Ya.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=rf.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=rf.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||X7(t,e,null,v(d-h.barLength/2))(u)}).call(rf.behavior.drag().origin(function(u){return rf.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",X7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function M$(e,t,r,n){var i=zKt(r),a=qKt(i);UKt(a);var o=OKt(a);GKt(o);var s=NKt(a),l=BKt(s);VKt(l),zZe(l,t,n,e),I$(a)}function zKt(e){var t=e.selectAll("."+Ya.cn.columnCells).data(Uu.repeat,Uu.keyFun);return t.enter().append("g").classed(Ya.cn.columnCells,!0),t.exit().remove(),t}function qKt(e){var t=e.selectAll("."+Ya.cn.columnCell).data(DZe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.columnCell,!0),t.exit().remove(),t}function OKt(e){var t=e.selectAll("."+Ya.cn.cellRect).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(Ya.cn.cellRect,!0),t}function BKt(e){var t=e.selectAll("."+Ya.cn.cellText).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(Ya.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){rf.event.stopPropagation()}),t}function NKt(e){var t=e.selectAll("."+Ya.cn.cellTextHolder).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function UKt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Yv(n.size,i,r),color:Yv(n.color,i,r),family:Yv(n.family,i,r),weight:Yv(n.weight,i,r),style:Yv(n.style,i,r),variant:Yv(n.variant,i,r),textcase:Yv(n.textcase,i,r),lineposition:Yv(n.lineposition,i,r),shadow:Yv(n.shadow,i,r)};t.rowNumber=t.key,t.align=Yv(t.calcdata.cells.align,i,r),t.cellBorderWidth=Yv(t.calcdata.cells.line.width,i,r),t.font=a})}function VKt(e){e.each(function(t){S$.font(rf.select(this),t.font)})}function GKt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=rf.select(this);kZe.stroke(r,Yv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),kZe.fill(r,Yv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function zZe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;i.mayHaveMarkup=l&&s.match(/[<&>]/);var f=HKt(s);i.latex=f;var h=f?"":Yv(i.calcdata.cells.prefix,a,o)||"",d=f?"":Yv(i.calcdata.cells.suffix,a,o)||"",v=f?null:Yv(i.calcdata.cells.format,a,o)||null,m=h+(v?PKt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=PZe(m)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?PZe(m):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var k=Ya.wrapSplitCharacter===" "?m.replace(/i&&n.push(a),i+=l}return n}function P$(e,t,r){var n=FZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=k$(i,i.length),s=n.calcdata.groupHeight-E$(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=XKt(i,l,s);u.length===1&&(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(c,f){c.page=u[f],c.scrollY=l}),t.attr("transform",function(c){var f=k$(c.rowBlocks,c.page)-c.scrollY;return lg(0,f)}),e&&(RZe(e,r,t,u,n.prevPages,n,0),RZe(e,r,t,u,n.prevPages,n,1),pC(r,e))}}function X7(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(f){return o.key===f.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=n===void 0?o.scrollY+l*rf.event.dy:n;var c=s.selectAll("."+Ya.cn.yColumn).selectAll("."+Ya.cn.columnBlock).filter(L$);return P$(e,c,s),o.scrollY===u}}function RZe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&n[c]!==i[c]});M$(e,t,l,r),i[o]=n[o]}))}function ZKt(e,t,r,n){return function(){var a=rf.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(m,b){s[b].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,d=0,v=o.column.columnWidth-2*Ya.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,d+h>v&&(o.value+=c.join(Ya.wrapSpacer)+Ya.lineBreaker,c=[],d=0),c.push(f.text),d+=h;d&&(o.value+=c.join(Ya.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),zZe(a.select("."+Ya.cn.cellText),r,e,n),rf.select(t.parentNode.parentNode).call(I$)}}function YKt(e,t,r,n,i){return function(){if(!i.settledY){var o=rf.select(t.parentNode),s=C$(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*Ya.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+Ya.cn.columnCell).call(I$),P$(null,e.filter(L$),0),pC(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,m=v.getBoundingClientRect(),b=rf.select(d.parentNode).select("."+Ya.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),k=b.top-m.top+(p?p.matrix.f:Ya.cellPad);return lg(qZe(i,rf.select(d.parentNode).select("."+Ya.cn.cellTextHolder).node().getBoundingClientRect().width),k)}),i.settledY=!0}}}function qZe(e,t){switch(e.align){case"left":return Ya.cellPad;case"right":return e.column.columnWidth-(t||0)-Ya.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return Ya.cellPad}}function I$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+Z7(s,1/0)},0),n=C$(t),i=Z7(n,t.key),a=i+r;return lg(0,a)}).selectAll("."+Ya.cn.cellRect).attr("height",function(t){return JKt(C$(t),t.key).rowHeight})}function k$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=KKt(e[n]);return r}function Z7(e,t){for(var r=0,n=0;n{"use strict";var $Kt=Id().getModuleCalcData,QKt=R$(),Y7="table";K7.name=Y7;K7.plot=function(e){var t=$Kt(e.calcdata,Y7)[0];t.length&&QKt(e,t)};K7.clean=function(e,t,r,n){var i=n._has&&n._has(Y7),a=t._has&&t._has(Y7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var UZe=ye((fwr,NZe)=>{"use strict";NZe.exports={attributes:m$(),supplyDefaults:vZe(),calc:gZe(),plot:R$(),moduleType:"trace",name:"table",basePlotModule:BZe(),categories:["noOpacity"],meta:{}}});var GZe=ye((hwr,VZe)=>{"use strict";VZe.exports=UZe()});var ZZe=ye((dwr,XZe)=>{"use strict";var HZe=ec(),jZe=Ih(),D$=Rd(),eJt=vf().descriptionWithDates,tJt=mc().overrideAll,WZe=Pd().dash,F$=Ao().extendFlat;XZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:HZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:D$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:F$({},D$.labelalias,{editType:"calc"}),tickfont:HZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:eJt("tick label")},tickformatstops:tJt(D$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:jZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:F$({},WZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:F$({},WZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:jZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var $7=ye((vwr,JZe)=>{"use strict";var rJt=ec(),YZe=ZZe(),KZe=Ih(),J7=rJt({editType:"calc"}),iJt=pf().zorder;J7.family.dflt='"Open Sans", verdana, arial, sans-serif';J7.size.dflt=12;J7.color.dflt=KZe.defaultLine;JZe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:YZe,baxis:YZe,font:J7,color:{valType:"color",dflt:KZe.defaultLine,editType:"plot"},zorder:iJt}});var eYe=ye((pwr,QZe)=>{"use strict";var $Ze=Pr().isArray1D;QZe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||$Ze(i))&&(!s||$Ze(o))){var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var iYe=ye((gwr,rYe)=>{"use strict";var nJt=$7(),tYe=ka().addOpacity,aJt=Oa(),gC=Pr(),oJt=Pb(),sJt=l_(),lJt=u_(),uJt=dI(),cJt=xm(),fJt=W3();rYe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=nJt[i+"axis"];function s(g,P){return gC.coerce(t,r,o,g,P)}function l(g,P){return gC.coerce2(t,r,o,g,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var u=s("type");if(u==="-"&&(n.data&&hJt(r,n.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,u==="date"){var c=aJt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}cJt(r,n.fullLayout),r.c2p=gC.identity;var f=s("color",n.dfltColor),h=f===t.color?f:a.color,d=s("title.text");d&&(gC.coerceFont(s,"title.font",a,{overrideDflt:{size:gC.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var v=s("autorange",!r.isValidRange(t.range));v&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),oJt(t,r,s,u),lJt(t,r,s,u,n),sJt(t,r,s,u,n),uJt(t,r,s,{data:n.data,dataAttr:i});var m=l("gridcolor",tYe(f,.3)),b=l("gridwidth"),p=l("griddash"),k=s("showgrid");k||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var M=l("startlinecolor",f),T=l("startlinewidth",b),L=s("startline",r.showgrid||!!M||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",f),C=l("endlinewidth",b),S=s("endline",r.showgrid||!!x||!!C);return S||(delete r.endlinecolor,delete r.endlinewidth),k?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",tYe(m,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function hJt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=fJt(t,a,{autotypenumbers:e.autotypenumbers})}}});var aYe=ye((mwr,nYe)=>{"use strict";var dJt=iYe(),vJt=vl();nYe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),pJt(t,r,n,a)};function pJt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=vJt.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};dJt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var lYe=ye((ywr,sYe)=>{"use strict";var oYe=Pr(),gJt=eYe(),mJt=aYe(),yJt=$7(),_Jt=Ih();sYe.exports=function(t,r,n,i){function a(l,u){return oYe.coerce(t,r,yJt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",_Jt.defaultLine);if(oYe.coerceFont(a,"font",i.font),a("carpet"),mJt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=gJt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var z$=ye((_wr,uYe)=>{"use strict";var xJt=Pr().isArrayOrTypedArray;uYe.exports=function(t,r,n){var i;for(xJt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";cYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";fYe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(n),u=1,c=1;if(o){var f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,d)}var v=Math.atan2(l,s)*180/Math.PI;return v<-90?(v+=180,u=-u):v>90&&(v-=180,u=-u),{angle:v,flip:u,p:t.c2p(i,r,n),offsetMultplier:c}}});var xYe=ye((wwr,_Ye)=>{"use strict";var r9=Fa(),Q7=So(),e9=z$(),pYe=q$(),mC=hYe(),O$=Zl(),Up=Pr(),gYe=Up.strRotate,t9=Up.strTranslate,mYe=Dh();_Ye.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Up.makeTraceGroups(i,n,"trace").each(function(c){var f=r9.select(this),h=c[0],d=h.trace,v=d.aaxis,m=d.baxis,b=Up.ensureSingle(f,"g","minorlayer"),p=Up.ensureSingle(f,"g","majorlayer"),k=Up.ensureSingle(f,"g","boundarylayer"),M=Up.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),W5(o,s,p,v,"a",v._gridlines,!0,a),W5(o,s,p,m,"b",m._gridlines,!0,a),W5(o,s,b,v,"a",v._minorgridlines,!0,a),W5(o,s,b,m,"b",m._minorgridlines,!0,a),W5(o,s,k,v,"a-boundary",v._boundarylines,a),W5(o,s,k,m,"b-boundary",m._boundarylines,a);var T=dYe(t,o,s,d,h,M,v._labels,"a-label"),L=dYe(t,o,s,d,h,M,m._labels,"b-label");wJt(t,M,d,h,o,s,T,L),bJt(d,h,u,o,s)})};function bJt(e,t,r,n,i){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=Up.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(Q7.font,f.font).text(f.text).call(O$.convertToTspans,e),p=Q7.bBox(this);b.attr("transform",t9(d.p[0],d.p[1])+gYe(d.angle)+t9(f.axis.labelpadding*m,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function wJt(e,t,r,n,i,a,o,s){var l,u,c,f,h=Up.aggNums(Math.min,null,r.a),d=Up.aggNums(Math.max,null,r.a),v=Up.aggNums(Math.min,null,r.b),m=Up.aggNums(Math.max,null,r.b);l=.5*(h+d),u=v,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&Up.extendFlat(o,mC(r,i,a,c,r.dxydb_rough(l,u))),vYe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+m),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&Up.extendFlat(s,mC(r,i,a,c,r.dxyda_rough(l,u))),vYe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var yYe=mYe.LINE_SPACING,TJt=(1-mYe.MID_SHIFT)/yYe+1;function vYe(e,t,r,n,i,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),d=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var v=mC(r,s,l,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var m=o.title.font.size;d+=m+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,k=p>90&&p<270,M=r9.select(this);M.text(o.title.text).call(O$.convertToTspans,e),k&&(d=(-O$.lineCount(M)+TJt)*yYe*m-d),M.attr("transform",t9(v.p[0],v.p[1])+gYe(v.angle)+t9(0,d)).attr("text-anchor","middle").call(Q7.font,o.title.font)}),h.exit().remove()}});var wYe=ye((Twr,bYe)=>{"use strict";var i9=Pr().isArrayOrTypedArray;bYe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=i9(e)?e.length:e,f=i9(t)?t.length:t,h=i9(e)?e:null,d=i9(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(f-1));var v,m=1/0,b=-1/0;for(i=0;i{"use strict";var TYe=Pr().isArrayOrTypedArray;SYe.exports=function(e){return AYe(e,0)};function AYe(e,t){if(!TYe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var AJt=ho(),Ox=Ao().extendFlat;EYe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,m,b,p,k=t["_"+r],M=t[r+"axis"],T=M._gridlines=[],L=M._minorgridlines=[],x=M._boundarylines=[],C=t["_"+n],S=t[n+"axis"];M.tickmode==="array"&&(M.tickvals=k.slice());var g=t._xctrl,P=t._yctrl,E=g[0].length,z=g.length,q=t._a.length,V=t._b.length;AJt.prepTicks(M),M.tickmode==="array"&&delete M.tickvals;var G=M.smoothing?3:1;function Z(N){var H,re,ae,_e,Ee,Ce,ge,ie,Se,ke,be,Be,Le=[],me=[],Pe={};if(r==="b")for(re=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(V-2,re))),_e=re-ae,Pe.length=V,Pe.crossLength=q,Pe.xy=function(ce){return t.evalxy([],ce,re)},Pe.dxy=function(ce,He){return t.dxydi([],ce,ae,He,_e)},H=0;H0&&(Se=t.dxydi([],H-1,ae,0,_e),Le.push(Ee[0]+Se[0]/3),me.push(Ee[1]+Se[1]/3),ke=t.dxydi([],H-1,ae,1,_e),Le.push(ie[0]-ke[0]/3),me.push(ie[1]-ke[1]/3)),Le.push(ie[0]),me.push(ie[1]),Ee=ie;else for(H=t.a2i(N),Ce=Math.floor(Math.max(0,Math.min(q-2,H))),ge=H-Ce,Pe.length=q,Pe.crossLength=V,Pe.xy=function(ce){return t.evalxy([],H,ce)},Pe.dxy=function(ce,He){return t.dxydj([],Ce,ce,ge,He)},re=0;re0&&(be=t.dxydj([],Ce,re-1,ge,0),Le.push(Ee[0]+be[0]/3),me.push(Ee[1]+be[1]/3),Be=t.dxydj([],Ce,re-1,ge,1),Le.push(ie[0]-Be[0]/3),me.push(ie[1]-Be[1]/3)),Le.push(ie[0]),me.push(ie[1]),Ee=ie;return Pe.axisLetter=r,Pe.axis=M,Pe.crossAxis=S,Pe.value=N,Pe.constvar=n,Pe.index=f,Pe.x=Le,Pe.y=me,Pe.smoothing=S.smoothing,Pe}function j(N){var H,re,ae,_e,Ee,Ce=[],ge=[],ie={};if(ie.length=k.length,ie.crossLength=C.length,r==="b")for(ae=Math.max(0,Math.min(V-2,N)),Ee=Math.min(1,Math.max(0,N-ae)),ie.xy=function(Se){return t.evalxy([],Se,N)},ie.dxy=function(Se,ke){return t.dxydi([],Se,ae,ke,Ee)},H=0;Hk.length-1)&&T.push(Ox(j(a),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(f=u;fk.length-1)&&!(v<0||v>k.length-1))for(m=k[o],b=k[v],i=0;ik[k.length-1])&&L.push(Ox(Z(d),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash})));M.startline&&x.push(Ox(j(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&x.push(Ox(j(k.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((k[k.length-1]-M.tick0)/M.dtick*(1+s)),Math.ceil((k[0]-M.tick0)/M.dtick/(1+s))].sort(function(N,H){return N-H}),u=l[0],c=l[1],f=u;f<=c;f++)h=M.tick0+M.dtick*f,T.push(Ox(Z(h),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(f=u-1;fk[k.length-1])&&L.push(Ox(Z(d),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash}));M.startline&&x.push(Ox(Z(k[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&x.push(Ox(Z(k[k.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}});var IYe=ye((Mwr,PYe)=>{"use strict";var CYe=ho(),LYe=Ao().extendFlat;PYe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";RYe.exports=function(t,r,n,i){var a,o,s,l=[],u=!!n.smoothing,c=!!i.smoothing,f=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=f;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][f],s[a]=r[a][f];for(l.push({x:o,y:s,bicubic:c}),a=f,o=[],s=[];a>=0;a--)o[f-a]=t[h][a],s[f-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:c}),l}});var zYe=ye((kwr,FYe)=>{"use strict";var SJt=Pr();FYe.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(ae,_e){var Ee=0,Ce,ge=0;return ae>0&&(Ce=t[_e][ae-1])!==void 0&&(ge++,Ee+=Ce),ae0&&(Ce=t[_e-1][ae])!==void 0&&(ge++,Ee+=Ce),_e0&&a0&&iS);return SJt.log("Smoother converged to",g,"after",E,"iterations"),t}});var OYe=ye((Cwr,qYe)=>{"use strict";qYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var UYe=ye((Lwr,NYe)=>{"use strict";var BYe=.5;NYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],l=n[1]-r[1],u=Math.pow(a*a+o*o,BYe/2),c=Math.pow(s*s+l*l,BYe/2),f=(c*c*a-u*u*s)*i,h=(c*c*o-u*u*l)*i,d=c*(u+c)*3,v=u*(u+c)*3;return[[r[0]+(d&&f/d),r[1]+(d&&h/d)],[r[0]-(v&&f/v),r[1]-(v&&h/v)]]}});var GYe=ye((Pwr,VYe)=>{"use strict";var B$=UYe(),n9=Pr().ensureArray;function X5(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}VYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,m,b,p=n[0].length,k=n.length,M=a?3*p-2:p,T=o?3*k-2:k;for(t=n9(t,T),r=n9(r,T),u=0;u{"use strict";HYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,l,u){s||(s=[]);var c,f,h,d,v,m,b=Math.max(0,Math.min(Math.floor(l),a)),p=Math.max(0,Math.min(Math.floor(u),o)),k=Math.max(0,Math.min(1,l-b)),M=Math.max(0,Math.min(1,u-p));b*=3,p*=3;var T=k*k,L=T*k,x=1-k,C=x*x,S=C*x,g=M*M,P=g*M,E=1-M,z=E*E,q=z*E;for(m=0;m{"use strict";WYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,m=1-o,b=m*m,p=m*o*2,k=-3*b,M=3*(b-p),T=3*(p-v),L=3*v,x=s*s,C=x*s,S=1-s,g=S*S,P=g*S;for(d=0;d{"use strict";ZYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,m=v*o,b=1-o,p=b*b,k=p*b,M=s*s,T=1-s,L=T*T,x=T*s*2,C=-3*L,S=3*(L-x),g=3*(x-M),P=3*M;for(d=0;d{"use strict";var KYe=OYe(),JYe=G6().findBin,MJt=GYe(),EJt=jYe(),kJt=XYe(),CJt=YYe();$Ye.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[i-1],c=n[0],f=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],v=h*KYe.RELATIVE_CULL_TOLERANCE,m=d*KYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=m,f+=m,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,k=MJt(t._xctrl,t._yctrl,b,p,o.smoothing,s.smoothing);t._xctrl=k[0],t._yctrl=k[1],t.evalxy=EJt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=kJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=CJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var p=Math.max(0,Math.floor(b[0]),i-2),k=b[0]-p;return(1-k)*r[p]+k*r[p+1]},t.j2b=function(b){var p=Math.max(0,Math.floor(b[1]),i-2),k=b[1]-p;return(1-k)*n[p]+k*n[p+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var p=Math.max(0,Math.min(JYe(b,r),i-2)),k=r[p],M=r[p+1];return Math.max(0,Math.min(i-1,p+(b-k)/(M-k)))},t.b2j=function(b){var p=Math.max(0,Math.min(JYe(b,n),a-2)),k=n[p],M=n[p+1];return Math.max(0,Math.min(a-1,p+(b-k)/(M-k)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,p){return t.evalxy([],b,p)},t.ab2xy=function(b,p,k){if(!k&&(br[i-1]|pn[a-1]))return[!1,!1];var M=t.a2i(b),T=t.b2j(p),L=t.evalxy([],M,T);if(k){var x=0,C=0,S=[],g,P,E,z;br[i-1]?(g=i-2,P=1,x=(b-r[i-1])/(r[i-1]-r[i-2])):(g=Math.max(0,Math.min(i-2,Math.floor(M))),P=M-g),pn[a-1]?(E=a-2,z=1,C=(p-n[a-1])/(n[a-1]-n[a-2])):(E=Math.max(0,Math.min(a-2,Math.floor(T))),z=T-E),x&&(t.dxydi(S,g,E,P,z),L[0]+=S[0]*x,L[1]+=S[1]*x),C&&(t.dxydj(S,g,E,P,z),L[0]+=S[0]*C,L[1]+=S[1]*C)}return L},t.c2p=function(b,p,k){return[p.c2p(b[0]),k.c2p(b[1])]},t.p2x=function(b,p,k){return[p.p2c(b[0]),k.p2c(b[1])]},t.dadi=function(b){var p=Math.max(0,Math.min(r.length-2,b));return r[p+1]-r[p]},t.dbdj=function(b){var p=Math.max(0,Math.min(n.length-2,b));return n[p+1]-n[p]},t.dxyda=function(b,p,k,M){var T=t.dxydi(null,b,p,k,M),L=t.dadi(b,k);return[T[0]/L,T[1]/L]},t.dxydb=function(b,p,k,M){var T=t.dxydj(null,b,p,k,M),L=t.dbdj(p,M);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,p,k){var M=h*(k||.1),T=t.ab2xy(b+M,p,!0),L=t.ab2xy(b-M,p,!0);return[(T[0]-L[0])*.5/M,(T[1]-L[1])*.5/M]},t.dxydb_rough=function(b,p,k){var M=d*(k||.1),T=t.ab2xy(b,p+M,!0),L=t.ab2xy(b,p-M,!0);return[(T[0]-L[0])*.5/M,(T[1]-L[1])*.5/M]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var sKe=ye((zwr,oKe)=>{"use strict";var a9=ho(),eKe=Pr().isArray1D,LJt=wYe(),tKe=MYe(),rKe=kYe(),iKe=IYe(),PJt=DYe(),nKe=h8(),aKe=zYe(),IJt=c8(),RJt=QYe();oKe.exports=function(t,r){var n=a9.getFromId(t,r.xaxis),i=a9.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&eKe(s)&&u.push("x"),l&&eKe(l)&&u.push("y"),u.length&&IJt(r,a,o,"a","b",u);var c=r._a=r._a||r.a,f=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?c.length:c,v=o.cheatertype==="index"?f.length:f;s=LJt(d,v,r.cheaterslope)}r._x=s=nKe(s),r._y=l=nKe(l),aKe(s,c,f),aKe(l,c,f),RJt(r),r.setScale();var m=tKe(s),b=tKe(l),p=.5*(m[1]-m[0]),k=.5*(m[1]+m[0]),M=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return m=[k-p*L,k+p*L],b=[T-M*L,T+M*L],r._extremes[n._id]=a9.findExtremes(n,m,{padded:!0}),r._extremes[i._id]=a9.findExtremes(i,b,{padded:!0}),rKe(r,"a","b"),rKe(r,"b","a"),iKe(r,a),iKe(r,o),h.clipsegments=PJt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var uKe=ye((qwr,lKe)=>{"use strict";lKe.exports={attributes:$7(),supplyDefaults:lYe(),plot:xYe(),calc:sKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:mh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var fKe=ye((Owr,cKe)=>{"use strict";cKe.exports=uKe()});var N$=ye((Bwr,pKe)=>{"use strict";var DJt=Pg(),c0=pf(),FJt=Vl(),{hovertemplateAttrs:zJt,texttemplateAttrs:qJt,templatefallbackAttrs:hKe}=Pl(),dKe=Tu(),Bx=Ao().extendFlat,ug=c0.marker,Z5=c0.line,vKe=ug.line;pKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Bx({},c0.mode,{dflt:"markers"}),text:Bx({},c0.text,{}),texttemplate:qJt({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:hKe({editType:"plot"}),hovertext:Bx({},c0.hovertext,{}),line:{color:Z5.color,width:Z5.width,dash:Z5.dash,backoff:Z5.backoff,shape:Bx({},Z5.shape,{values:["linear","spline"]}),smoothing:Z5.smoothing,editType:"calc"},connectgaps:c0.connectgaps,fill:Bx({},c0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:DJt(),marker:Bx({symbol:ug.symbol,opacity:ug.opacity,maxdisplayed:ug.maxdisplayed,angle:ug.angle,angleref:ug.angleref,standoff:ug.standoff,size:ug.size,sizeref:ug.sizeref,sizemin:ug.sizemin,sizemode:ug.sizemode,line:Bx({width:vKe.width,dash:vKe.dash,editType:"calc"},dKe("marker.line")),gradient:ug.gradient,editType:"calc"},dKe("marker")),textfont:c0.textfont,textposition:c0.textposition,selected:c0.selected,unselected:c0.unselected,hoverinfo:Bx({},FJt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:c0.hoveron,hovertemplate:zJt(),hovertemplatefallback:hKe(),zorder:c0.zorder}});var _Ke=ye((Nwr,yKe)=>{"use strict";var gKe=Pr(),OJt=Pm(),Y5=Ru(),BJt=$p(),NJt=D0(),mKe=fT(),UJt=F0(),VJt=Fg(),GJt=N$();yKe.exports=function(t,r,n,i){function a(h,d){return gKe.coerce(t,r,GJt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext");var u=l{"use strict";xKe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=i.evalxy([],o,l,s,u);return n.yLabel=c[1].toFixed(3),n}});var o9=ye((Vwr,wKe)=>{"use strict";wKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var TKe=Eo(),HJt=z0(),jJt=Dm(),WJt=q0(),XJt=O0().calcMarkerSize,ZJt=o9();AKe.exports=function(t,r){var n=r._carpetTrace=ZJt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(i=0;i{"use strict";var YJt=mT(),MKe=ho(),KJt=So();EKe.exports=function(t,r,n,i){var a,o,s,l=n[0][0].carpet,u=MKe.getFromId(t,l.xaxis||"x"),c=MKe.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var JJt=bT(),$Jt=Pr().fillText;CKe.exports=function(t,r,n,i){var a=JJt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,v=h._module.formatLabels(f,h);o.yLabel=v.yLabel,delete o.text;var m=[];function b(M,T){var L;M.labelprefix&&M.labelprefix.length>0?L=M.labelprefix.replace(/ = $/,""):L=M._hovertitle,m.push(L+": "+T.toFixed(3)+M.labelsuffix)}if(!h.hovertemplate){var p=f.hi||h.hoverinfo,k=p.split("+");k.indexOf("all")!==-1&&(k=["a","b","text"]),k.indexOf("a")!==-1&&b(d.aaxis,f.a),k.indexOf("b")!==-1&&b(d.baxis,f.b),m.push("y: "+o.yLabel),k.indexOf("text")!==-1&&$Jt(f,h,m),o.extraText=m.join("
")}return a}});var IKe=ye((Wwr,PKe)=>{"use strict";PKe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var DKe=ye((Xwr,RKe)=>{"use strict";RKe.exports={attributes:N$(),supplyDefaults:_Ke(),colorbar:Qd(),formatLabels:bKe(),calc:SKe(),plot:kKe(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:LKe(),selectPoints:wT(),eventData:IKe(),moduleType:"trace",name:"scattercarpet",basePlotModule:mh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var zKe=ye((Zwr,FKe)=>{"use strict";FKe.exports=DKe()});var U$=ye((Ywr,qKe)=>{"use strict";var cg=BT(),A1=N4(),QJt=Tu(),e$t=Ao().extendFlat,cy=A1.contours;qKe.exports=e$t({carpet:{valType:"string",editType:"calc"},z:cg.z,a:cg.x,a0:cg.x0,da:cg.dx,b:cg.y,b0:cg.y0,db:cg.dy,text:cg.text,hovertext:cg.hovertext,transpose:cg.transpose,atype:cg.xtype,btype:cg.ytype,fillcolor:A1.fillcolor,autocontour:A1.autocontour,ncontours:A1.ncontours,contours:{type:cy.type,start:cy.start,end:cy.end,size:cy.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:cy.showlines,showlabels:cy.showlabels,labelfont:cy.labelfont,labelformat:cy.labelformat,operation:cy.operation,value:cy.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:A1.line.color,width:A1.line.width,dash:A1.line.dash,smoothing:A1.line.smoothing,editType:"plot"},zorder:A1.zorder},QJt("",{cLetter:"z",autoColorDflt:!1}))});var V$=ye((Kwr,NKe)=>{"use strict";var OKe=Pr(),t$t=s8(),BKe=U$(),r$t=qG(),i$t=P8(),n$t=I8();NKe.exports=function(t,r,n,i){function a(u,c){return OKe.coerce(t,r,BKe,u,c)}function o(u){return OKe.coerce2(t,r,BKe,u)}if(a("carpet"),t.a&&t.b){var s=t$t(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?r$t(t,r,a,i,n,{hasHover:!1}):(i$t(t,r,a,o),n$t(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var HKe=ye((Jwr,GKe)=>{"use strict";var a$t=gv(),UKe=Pr(),o$t=c8(),s$t=h8(),l$t=d8(),u$t=v8(),VKe=oG(),c$t=V$(),f$t=o9(),h$t=SG();GKe.exports=function(t,r){var n=r._carpetTrace=f$t(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),c$t(a,r,r._defaultColor,t._fullLayout)}var o=d$t(t,r);return h$t(r,r._z),o}};function d$t(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,l,u,c,f;n._minDtick=0,i._minDtick=0,UKe.isArray1D(t.z)&&o$t(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],l=l?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=s$t(t._z||t.z,t.transpose),t._emptypoints=u$t(f),l$t(f,t._emptypoints);var h=UKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=VKe(t,d,o,s,h,n),m=t.ytype==="scaled"?"":l,b=VKe(t,m,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&a$t(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var WKe=ye(($wr,jKe)=>{"use strict";var v$t=Pr().isArrayOrTypedArray;jKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,m,b,p=v$t(r)?"a":"b",k=p==="a"?e.aaxis:e.baxis,M=k.smoothing,T=p==="a"?e.a2i:e.b2j,L=p==="a"?r:n,x=p==="a"?n:r,C=p==="a"?t.a.length:t.b.length,S=p==="a"?t.b.length:t.a.length,g=Math.floor(p==="a"?e.b2j(x):e.a2i(x)),P=p==="a"?function(_e){return e.evalxy([],_e,g)}:function(_e){return e.evalxy([],g,_e)};M&&(o=Math.max(0,Math.min(S-2,g)),s=g-o,a=p==="a"?function(_e,Ee){return e.dxydi([],_e,o,Ee,s)}:function(_e,Ee){return e.dxydj([],o,_e,s,Ee)});var E=T(L[0]),z=T(L[1]),q=E0?Math.floor:Math.ceil,Z=q>0?Math.ceil:Math.floor,j=q>0?Math.min:Math.max,N=q>0?Math.max:Math.min,H=G(E+V),re=Z(z-V);c=P(E);var ae=[[c]];for(i=H;i*q{"use strict";var l9=Fa(),u9=z$(),JKe=q$(),yC=So(),S1=Pr(),p$t=EG(),g$t=kG(),Ew=F8(),s9=V4(),m$t=IG(),y$t=PG(),_$t=RG(),x$t=o9(),XKe=WKe();$Ke.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;S1.makeTraceGroups(i,n,"contour").each(function(s){var l=l9.select(this),u=s[0],c=u.trace,f=c._carpetTrace=x$t(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,m=c.contours,b=y$t(m,r,u),p=m.type==="constraint",k=m._operation,M=p?k==="="?"lines":"fill":m.coloring;function T(G){var Z=f.ab2xy(G[0],G[1],!0);return[a.c2p(Z[0]),o.c2p(Z[1])]}var L=[[d[0],v[v.length-1]],[d[d.length-1],v[v.length-1]],[d[d.length-1],v[0]],[d[0],v[0]]];p$t(b);var x=(d[d.length-1]-d[0])*1e-8,C=(v[v.length-1]-v[0])*1e-8;g$t(b,x,C);var S=b;m.type==="constraint"&&(S=m$t(b,k)),b$t(b,T);var g,P,E,z,q=[];for(z=h.clipsegments.length-1;z>=0;z--)g=h.clipsegments[z],P=u9([],g.x,a.c2p),E=u9([],g.y,o.c2p),P.reverse(),E.reverse(),q.push(JKe(P,E,g.bicubic));var V="M"+q.join("L")+"Z";A$t(l,h.clipsegments,a,o,p,M),S$t(c,l,a,o,S,L,T,f,h,M,V),w$t(l,b,t,u,m,r,f),yC.setClipUrl(l,f._clipPathId,t)})};function b$t(e,t){var r,n,i,a,o,s,l,u,c;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function ZKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function YKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function KKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function A$t(e,t,r,n,i,a){var o,s,l,u,c=S1.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!i?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(d=P,m=b):Math.abs(h[1]-d[1])=0&&(d=P,m=b):S1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(m>=0)break;u+=S(h,d),h=d}if(m===t.edgepaths.length){S1.log("unclosed perimeter path");break}l=m,f=c.indexOf(l)===-1,f&&(l=c[0],u+=S(h,d)+"Z",h=null)}for(l=0;l{"use strict";eJe.exports={attributes:U$(),supplyDefaults:V$(),colorbar:O8(),calc:HKe(),plot:QKe(),style:q8(),moduleType:"trace",name:"contourcarpet",basePlotModule:mh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var iJe=ye((t3r,rJe)=>{"use strict";rJe.exports=tJe()});var f9=ye((r3r,lJe)=>{"use strict";var c9=Pr().extendFlat,_C=pf(),nJe=vf().axisHoverFormat,{hovertemplateAttrs:E$t,templatefallbackAttrs:k$t}=Pl(),oJe=Pd().dash,C$t=y3(),sJe=tA(),L$t=sJe.INCREASING.COLOR,P$t=sJe.DECREASING.COLOR,G$=_C.line;function aJe(e){return{line:{color:c9({},G$.color,{dflt:e}),width:G$.width,dash:oJe,editType:"style"},editType:"style"}}lJe.exports={xperiod:_C.xperiod,xperiod0:_C.xperiod0,xperiodalignment:_C.xperiodalignment,xhoverformat:nJe("x"),yhoverformat:nJe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:c9({},G$.width,{}),dash:c9({},oJe,{}),editType:"style"},increasing:aJe(L$t),decreasing:aJe(P$t),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:E$t({},{keys:["open","high","low","close"]}),hovertemplatefallback:k$t(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:c9({},C$t.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:_C.zorder}});var H$=ye((i3r,uJe)=>{"use strict";var I$t=Oa(),R$t=Pr();uJe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),l=n("low"),u=n("close");n("hoverlabel.split");var c=I$t.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],i),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,R$t.minRowLength(a))),r._length=f,f}}});var hJe=ye((n3r,fJe)=>{"use strict";var D$t=Pr(),F$t=H$(),z$t=Dg(),q$t=f9();fJe.exports=function(t,r,n,i){function a(s,l){return D$t.coerce(t,r,q$t,s,l)}var o=F$t(t,r,a,i);if(!o){r.visible=!1;return}z$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),cJe(t,r,a,"increasing"),cJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function cJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var j$=ye((a3r,vJe)=>{"use strict";var K5=Pr(),h9=K5._,d9=ho(),O$t=zg(),xC=fs().BADNUM;function B$t(e,t){var r=d9.getFromId(e,t.xaxis),n=d9.getFromId(e,t.yaxis),i=U$t(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=dJe(e,t,o,s,n,N$t);return t._extremes[r._id]=d9.findExtremes(r,s,{vpad:a/2}),l.length?(K5.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function N$t(e,t,r,n){return{o:e,h:t,l:r,c:n}}function dJe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),l=i.makeCalcdata(t,"low"),u=i.makeCalcdata(t,"close"),c=K5.isArrayOrTypedArray(t.text),f=K5.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,m=[],b=0;bd):h=L>k,d=L;var x=a(k,M,T,L);x.pos=p,x.yc=(k+L)/2,x.i=b,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[T,M],v&&(x.orig_p=r[b]),c&&(x.tx=t.text[b]),f&&(x.htx=t.hovertext[b]),m.push(x)}else m.push({pos:p,empty:!0})}return t._extremes[i._id]=d9.findExtremes(i,K5.concat(l,s),{padded:!0}),m.length&&(m[0].t={labels:{open:h9(e,"open:")+" ",high:h9(e,"high:")+" ",low:h9(e,"low:")+" ",close:h9(e,"close:")+" "}}),m}function U$t(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var V$t=Fa(),pJe=Pr();gJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;pJe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=V$t.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var d=f.tickLen,v=u.selectAll("path").data(pJe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(m){if(m.empty)return"M0,0Z";var b=o.c2p(m.pos-d,!0),p=o.c2p(m.pos+d,!0),k=s?(b+p)/2:o.c2p(m.pos,!0),M=a.c2p(m.o,!0),T=a.c2p(m.h,!0),L=a.c2p(m.l,!0),x=a.c2p(m.c,!0);return"M"+b+","+M+"H"+k+"M"+k+","+T+"V"+L+"M"+p+","+x+"H"+k})})}});var _Je=ye((s3r,yJe)=>{"use strict";var W$=Fa(),G$t=So(),H$t=ka();yJe.exports=function(t,r,n){var i=n||W$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;W$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;W$.select(this).style("fill","none").call(H$t.stroke,l.color).call(G$t.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var Z$=ye((l3r,AJe)=>{"use strict";var X$=ho(),j$t=Pr(),v9=ef(),W$t=ka(),X$t=Pr().fillText,xJe=tA(),Z$t={increasing:xJe.INCREASING.SYMBOL,decreasing:xJe.DECREASING.SYMBOL};function Y$t(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?wJe(e,t,r,n):TJe(e,t,r,n)}function bJe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,d=s.bPos||0,v=function(P){return P.pos+d-t},m=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,m/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function k(P){var E=v(P);return v9.inbox(E-b,E+b,f)}function M(P){var E=P[u],z=P[c];return E===z||v9.inbox(E-r,z-r,f)}function T(P){return(k(P)+M(P))/2}var L=v9.getDistanceFunction(n,k,M,T);if(v9.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var C=x.dir,S=o[C],g=S.line.color;return W$t.opacity(g)&&S.line.width?e.color=g:e.color=S.fillcolor,e.x0=a.c2p(x.pos+d-m,!0),e.x1=a.c2p(x.pos+d+m,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=T(x)*h/f,e.xSpike=a.c2p(x.pos,!0),e}function wJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=bJe(e,t,r,n);if(!u)return[];var c=i[u.index],f=c.hi||o.hoverinfo||"";if(f==="none"||f==="skip")return[];for(var h=["high","open","close","low"],d={},v=0;v"+s.labels[m]+X$.hoverLabelText(a,b,o.yhoverformat)):(k=j$t.extendFlat({},u),k.y0=k.y1=p,k.yLabelVal=b,k.yLabel=s.labels[m]+X$.hoverLabelText(a,b,o.yhoverformat),k.name="",l.push(k),d[b]=k)}return l}function TJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=bJe(e,t,r,n);if(!l)return[];var u=l.index,c=i[u],f=l.index=c.i,h=c.dir;function d(T){return s.labels[T]+X$.hoverLabelText(a,o[T][f],o.yhoverformat)}var v=c.hi||o.hoverinfo||"",m=v.split("+"),b=v==="all",p=b||m.indexOf("y")!==-1,k=b||m.indexOf("text")!==-1,M=p?[d("open"),d("high"),d("low"),d("close")+" "+Z$t[h]]:[];return k&&X$t(c,o,M),l.extraText=M.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}AJe.exports={hoverPoints:Y$t,hoverSplit:wJe,hoverOnPoints:TJe}});var Y$=ye((u3r,SJe)=>{"use strict";SJe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";MJe.exports={moduleType:"trace",name:"ohlc",basePlotModule:mh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:f9(),supplyDefaults:hJe(),calc:j$().calc,plot:mJe(),style:_Je(),hoverPoints:Z$().hoverPoints,selectPoints:Y$()}});var CJe=ye((f3r,kJe)=>{"use strict";kJe.exports=EJe()});var J$=ye((h3r,IJe)=>{"use strict";var K$=Pr().extendFlat,LJe=vf().axisHoverFormat,vp=f9(),J5=P4();function PJe(e){return{line:{color:K$({},J5.line.color,{dflt:e}),width:J5.line.width,editType:"style"},fillcolor:J5.fillcolor,editType:"style"}}IJe.exports={xperiod:vp.xperiod,xperiod0:vp.xperiod0,xperiodalignment:vp.xperiodalignment,xhoverformat:LJe("x"),yhoverformat:LJe("y"),x:vp.x,open:vp.open,high:vp.high,low:vp.low,close:vp.close,line:{width:K$({},J5.line.width,{}),editType:"style"},increasing:PJe(vp.increasing.line.color.dflt),decreasing:PJe(vp.decreasing.line.color.dflt),text:vp.text,hovertext:vp.hovertext,hovertemplate:vp.hovertemplate,hovertemplatefallback:vp.hovertemplatefallback,whiskerwidth:K$({},J5.whiskerwidth,{dflt:0}),hoverlabel:vp.hoverlabel,zorder:J5.zorder}});var FJe=ye((d3r,DJe)=>{"use strict";var K$t=Pr(),J$t=ka(),$$t=H$(),Q$t=Dg(),eQt=J$();DJe.exports=function(t,r,n,i){function a(s,l){return K$t.coerce(t,r,eQt,s,l)}var o=$$t(t,r,a,i);if(!o){r.visible=!1;return}Q$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),RJe(t,r,a,"increasing"),RJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function RJe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",J$t.addOpacity(i,.5))}});var BJe=ye((v3r,OJe)=>{"use strict";var zJe=Pr(),qJe=ho(),tQt=zg(),rQt=j$().calcCommon;OJe.exports=function(e,t){var r=e._fullLayout,n=qJe.getFromId(e,t.xaxis),i=qJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=tQt(t,n,"x",a).vals,s=rQt(e,t,a,o,i,iQt);return s.length?(zJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:zJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function iQt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var UJe=ye((p3r,NJe)=>{"use strict";NJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:mh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:J$(),layoutAttributes:I4(),supplyLayoutDefaults:t8().supplyLayoutDefaults,crossTraceCalc:i8().crossTraceCalc,supplyDefaults:FJe(),calc:BJe(),plot:n8().plot,layerName:"boxlayer",style:a8().style,hoverPoints:Z$().hoverPoints,selectPoints:Y$()}});var GJe=ye((g3r,VJe)=>{"use strict";VJe.exports=UJe()});var Q$=ye((m3r,HJe)=>{"use strict";var g9=Pr(),nQt=xm(),p9=g9.deg2rad,$$=g9.rad2deg;HJe.exports=function(t,r,n){switch(nQt(t,n),t._id){case"x":case"radialaxis":aQt(t,r);break;case"angularaxis":lQt(t,r);break}};function aQt(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,l=n>i?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-n;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+n-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function oQt(e,t){return t==="degrees"?p9(e):e}function sQt(e,t){return t==="degrees"?$$(e):e}function lQt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return oQt(n(a),o)},e.c2d=function(a,o){return i(sQt(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(b){return e.d2c(b,a.thetaunit)};if(s)for(u=new Array(l),c=0;c{"use strict";jJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var _9=ye((_3r,KJe)=>{"use strict";var kw=Pr(),WJe=BM().tester,eQ=kw.findIndexOfMin,ZJe=kw.isAngleInsideSector,uQt=kw.angleDelta,XJe=kw.angleDist;function cQt(e,t,r,n,i){if(!ZJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=eQ(t,r),i=kw.mod(n+1,t.length);return[t[n],t[i]]}function y9(e){return Math.abs(e)>1e-10?e:0}function tQ(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function JJe(e){return e<0?-1:e>0?1:0}function Q5(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function eS(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function $Je(e,t){return t*e.radius}function yQt(e,t,r,n){var i=eS(e,Q5([r,t])),a=i[0],o=i[1],s=eS(e,Q5([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=$Je(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function _Qt(e,t,r,n){var i=$Je(e,1/(t+1)),a=eS(e,Q5([t,r])),o=a[0],s=a[1],l=eS(e,Q5([t,n])),u=l[0],c=l[1];if(JJe(r)!==JJe(n)){var f=eS(e,Q5([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var Cw=Fa(),xQt=fd(),Pw=Oa(),Xc=Pr(),fy=Xc.strRotate,xd=Xc.strTranslate,iQ=ka(),bC=So(),bQt=Mc(),pp=ho(),wQt=xm(),TQt=Q$(),AQt=Mg().doAutoRange,M1=YN(),w9=yv(),e$e=ef(),SQt=qb(),MQt=qf().prepSelect,EQt=qf().selectOnClick,nQ=qf().clearOutline,t$e=Eg(),r$e=SM(),i$e=RM().redrawReglTraces,kQt=Dh().MID_SHIFT,Nx=m9(),E1=_9(),T9=rQ(),x9=T9.smith,CQt=T9.reactanceArc,LQt=T9.resistanceArc,b9=T9.smithTransform,PQt=Xc._,n$e=Xc.mod,Ux=Xc.deg2rad,Lw=Xc.rad2deg;function a$e(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Nd=a$e.prototype;l$e.exports=function(t,r,n){return new a$e(t,r,n)};Nd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(p=u,k=u*b,L=(c-k)/i.h/2,M=[s[0],s[1]],T=[l[0]+L,l[1]-L]):(p=c/b,k=c,L=(u-p)/i.w/2,M=[s[0]+L,s[1]-L],T=[l[0],l[1]]),r.xLength2=p,r.yLength2=k,r.xDomain2=M,r.yDomain2=T;var x=r.xOffset2=i.l+i.w*M[0],C=r.yOffset2=i.t+i.h*(1-T[1]),S=r.radius=p/d,g=r.innerRadius=r.getHole(t)*S,P=r.cx=x-S*h[0],E=r.cy=C+S*h[3],z=r.cxx=P-x,q=r.cyy=E-C,V=a.side,G;V==="counterclockwise"?(G=V,V="top"):V==="clockwise"&&(G=V,V="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:V,_trueSide:G,domain:[g/i.w,S/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:M}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:T});var Z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",Z).attr("transform",xd(z,q)),n.frontplot.attr("transform",xd(x,C)).call(bC.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",Z).attr("transform",xd(P,E)).call(iQ.fill,t.bgcolor)};Nd.mockAxis=function(e,t,r,n){var i=Xc.extendFlat({},r,n);return TQt(i,t,e),i};Nd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Xc.extendFlat({type:"linear"},r);wQt(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=n.sectorBBox,u=s[a],c=n.radialAxis._rl,f=(c[1]-c[0])/(1-n.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!i?function(l){return n.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Nd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);AQt(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var l=i.r2l(i.maxallowed);i._rl[0]90&&c<=270&&(f.tickangle=180);var v=d?function(S){var g=b9(r,x9([S.x,0]));return xd(g[0]-s,g[1]-l)}:function(S){return xd(f.l2p(S.x)+o,0)},m=d?function(S){return LQt(r,S.x,-1/0,1/0)}:function(S){return r.pathArc(f.r2p(S.x)+o)},b=o$e(u);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){f.setScale();var p=0,k=d?(f.tickvals||[]).filter(function(S){return S>=0}).map(function(S){return pp.tickText(f,S,!0,!1)}):pp.calcTicks(f),M=d?k:pp.clipEnds(f,k),T=pp.getTickSigns(f)[2];d&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(T=-T),f.ticks==="top"&&f.side==="top"&&(p=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(p=f.ticklen)),pp.drawTicks(n,f,{vals:k,layer:i["radial-axis"],path:pp.makeTickPath(f,0,T),transFn:v,crisp:!1}),pp.drawGrid(n,f,{vals:M,layer:i["radial-grid"],path:m,transFn:Xc.noop,crisp:!1}),pp.drawLabels(n,f,{vals:k,layer:i["radial-axis"],transFn:v,labelFns:pp.makeLabelFns(f,p)})}var L=r.radialAxisAngle=r.vangles?Lw(s$e(Ux(u.angle),r.vangles)):u.angle,x=xd(s,l),C=x+fy(-L);wC(i["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:C}),wC(i["radial-grid"],h&&u.showgrid,{transform:d?"":x}),wC(i["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:C}).attr("stroke-width",u.linewidth).call(iQ.stroke,u.linecolor)};Nd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(t),u=n.id+"title",c=0;if(l.title){var f=bC.bBox(n.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;c=d==="top"?h:d==="counterclockwise"?-(f+h*.4):f+h*.8}var v=r!==void 0?r:n.radialAxisAngle,m=Ux(v),b=Math.cos(m),p=Math.sin(m),k=o+a/2*b+c*p,M=s-a/2*p+c*b;n.layers["radial-axis-title"]=SQt.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title.text",placeholder:PQt(i,"Click to enter radial axis title"),attributes:{x:k,y:M,"text-anchor":"middle"},transform:{rotate:-v}})}};Nd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),c=r.angularAxis,f=r.isSmith;f||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),c.setGeometry(),c.setScale());var h=f?function(g){var P=b9(r,x9([0,g.x]));return Math.atan2(P[0]-s,P[1]-l)-Math.PI/2}:function(g){return c.t2g(g.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=Lw(c.tick0),c.dtick=Lw(c.dtick));var d=function(g){return xd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=b9(r,x9([0,g.x]));return xd(P[0],P[1])}:function(g){return d(h(g))},m=f?function(g){var P=b9(r,x9([0,g.x])),E=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return xd(P[0],P[1])+fy(-Lw(E))}:function(g){var P=h(g);return d(P)+fy(-Lw(P))},b=f?function(g){return CQt(r,g.x,0,1/0)}:function(g){var P=h(g),E=Math.cos(P),z=Math.sin(P);return"M"+[s+o*E,l-o*z]+"L"+[s+a*E,l-a*z]},p=pp.makeLabelFns(c,0),k=p.labelStandoff,M={};M.xFn=function(g){var P=h(g);return Math.cos(P)*k},M.yFn=function(g){var P=h(g),E=Math.sin(P)>0?.2:1;return-Math.sin(P)*(k+g.fontSize*E)+Math.abs(Math.cos(P))*(g.fontSize*kQt)},M.anchorFn=function(g){var P=h(g),E=Math.cos(P);return Math.abs(E)<.1?"middle":E>0?"start":"end"},M.heightFn=function(g,P,E){var z=h(g);return-.5*(1+Math.sin(z))*E};var T=o$e(u);r.angularTickLayout!==T&&(i["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=T);var L=f?[1/0].concat(c.tickvals||[]).map(function(g){return pp.tickText(c,g,!0,!1)}):pp.calcTicks(c);f&&(L[0].text="\u221E",L[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=L.map(h),Xc.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,c.type==="category"&&(L=L.filter(function(g){return Xc.isAngleInsideSector(h(g),r.sectorInRad)})),c.visible){var C=c.ticks==="inside"?-1:1,S=(c.linewidth||1)/2;pp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+C*S+",0h"+C*c.ticklen,transFn:m,crisp:!1}),pp.drawGrid(n,c,{vals:L,layer:i["angular-grid"],path:b,transFn:Xc.noop,crisp:!1}),pp.drawLabels(n,c,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:v,labelFns:M})}wC(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:xd(s,l)}).attr("stroke-width",u.linewidth).call(iQ.stroke,u.linecolor)};Nd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Nd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Nx.MINZOOM,s=Nx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,m=t.vangles,b=t.radialAxis,p=E1.clampTiny,k=E1.findXYatLength,M=E1.findEnclosingVertexAngles,T=Nx.cornerHalfWidth,L=Nx.cornerLen/2,x,C,S=M1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");Cw.select(S).attr("d",t.pathSubplot()).attr("transform",xd(c,f)),S.onmousemove=function(ce){e$e.hover(n,ce,t.id),n._fullLayout._lasthover=S,n._fullLayout._hoversubplot=t.id},S.onmouseout=function(ce){n._dragging||w9.unhover(n,ce)};var g={element:S,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,E,z,q,V,G,Z,j,N;function H(ce,He){return Math.sqrt(ce*ce+He*He)}function re(ce,He){return H(ce-h,He-d)}function ae(ce,He){return Math.atan2(d-He,ce-h)}function _e(ce,He){return[ce*Math.cos(He),ce*Math.sin(-He)]}function Ee(ce,He){if(ce===0)return t.pathSector(2*T);var lt=L/ce,mt=He-lt,Ht=He+lt,at=Math.max(0,Math.min(ce,l)),ct=at-T,ar=at+T;return"M"+_e(ct,mt)+"A"+[ct,ct]+" 0,0,0 "+_e(ct,Ht)+"L"+_e(ar,Ht)+"A"+[ar,ar]+" 0,0,1 "+_e(ar,mt)+"Z"}function Ce(ce,He,lt){if(ce===0)return t.pathSector(2*T);var mt=_e(ce,He),Ht=_e(ce,lt),at=p((mt[0]+Ht[0])/2),ct=p((mt[1]+Ht[1])/2),ar,Vt;if(at&&ct){var rr=ct/at,tt=-1/rr,je=k(T,rr,at,ct);ar=k(L,tt,je[0][0],je[0][1]),Vt=k(L,tt,je[1][0],je[1][1])}else{var Ue,Ae;ct?(Ue=L,Ae=T):(Ue=T,Ae=L),ar=[[at-Ue,ct-Ae],[at+Ue,ct-Ae]],Vt=[[at-Ue,ct+Ae],[at+Ue,ct+Ae]]}return"M"+ar.join("L")+"L"+Vt.reverse().join("L")+"Z"}function ge(){z=null,q=null,V=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];Z=xQt(ce.bgcolor).getLuminance(),j=M1.makeZoombox(a,Z,c,f,V),j.attr("fill-rule","evenodd"),N=M1.makeCorners(a,c,f),nQ(n)}function ie(ce,He){return He=Math.max(Math.min(He,l),u),ceo?(ce-1&&ce===1&&EQt(He,n,[t.xaxis],[t.yaxis],t.id,g),lt.indexOf("event")>-1&&e$e.click(n,He,t.id)}g.prepFn=function(ce,He,lt){var mt=n._fullLayout.dragmode,Ht=S.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var at=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,C=n._fullLayout._invScaleY;var ct=Xc.apply3DTransform(at)(He-Ht.left,lt-Ht.top);if(P=ct[0],E=ct[1],m){var ar=E1.findPolygonOffset(l,v[0],v[1],m);P+=h+ar[0],E+=d+ar[1]}switch(mt){case"zoom":g.clickFn=Pe,r||(m?g.moveFn=Be:g.moveFn=ke,g.doneFn=Le,ge(ce,He,lt));break;case"select":case"lasso":MQt(ce,He,lt,g,mt);break}},w9.init(g)};Nd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,l=n.cx,u=n.cy,c=n.radialAxis,f=Nx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Ux(n.radialAxisAngle),v=c._rl,m=v[0],b=v[1],p=v[r],k=.75*(v[1]-v[0])/(1-n.getHole(t))/o,M,T,L;r?(M=l+(o+h)*Math.cos(d),T=u-(o+h)*Math.sin(d),L="radialdrag"):(M=l+(s-h)*Math.cos(d),T=u-(s-h)*Math.sin(d),L="radialdrag-inner");var x=M1.makeRectDragger(a,L,"crosshair",-h,-h,f,f),C={element:x,gd:i};e.dragmode===!1&&(C.dragmode=!1),wC(Cw.select(x),c.visible&&s0!=(r?P>m:P=90||i>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),i<=180&&a>=180||i>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),i<=270&&a>=270||i>270&&a>=630?f=-1:s>=0&&u>=0?f=0:f=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[c,f,h,d]}function s$e(e,t){var r=function(i){return Xc.angleDist(e,i)},n=Xc.findIndexOfMin(t,r);return t[n]}function wC(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var oQ=ye((w3r,v$e)=>{"use strict";var RQt=Ih(),os=Rd(),DQt=Cc().attributes,f0=Pr().extendFlat,u$e=mc().overrideAll,c$e=u$e({color:os.color,showline:f0({},os.showline,{dflt:!0}),linecolor:os.linecolor,linewidth:os.linewidth,showgrid:f0({},os.showgrid,{dflt:!0}),gridcolor:os.gridcolor,gridwidth:os.gridwidth,griddash:os.griddash},"plot","from-root"),f$e=u$e({tickmode:os.minor.tickmode,nticks:os.nticks,tick0:os.tick0,dtick:os.dtick,tickvals:os.tickvals,ticktext:os.ticktext,ticks:os.ticks,ticklen:os.ticklen,tickwidth:os.tickwidth,tickcolor:os.tickcolor,ticklabelstep:os.ticklabelstep,showticklabels:os.showticklabels,labelalias:os.labelalias,minorloglabels:os.minorloglabels,showtickprefix:os.showtickprefix,tickprefix:os.tickprefix,showticksuffix:os.showticksuffix,ticksuffix:os.ticksuffix,showexponent:os.showexponent,exponentformat:os.exponentformat,minexponent:os.minexponent,separatethousands:os.separatethousands,tickfont:os.tickfont,tickangle:os.tickangle,tickformat:os.tickformat,tickformatstops:os.tickformatstops,layer:os.layer},"plot","from-root"),h$e={visible:f0({},os.visible,{dflt:!0}),type:f0({},os.type,{values:["-","linear","log","date","category"]}),autotypenumbers:os.autotypenumbers,autorangeoptions:{minallowed:os.autorangeoptions.minallowed,maxallowed:os.autorangeoptions.maxallowed,clipmin:os.autorangeoptions.clipmin,clipmax:os.autorangeoptions.clipmax,include:os.autorangeoptions.include,editType:"plot"},autorange:f0({},os.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:f0({},os.minallowed,{editType:"plot"}),maxallowed:f0({},os.maxallowed,{editType:"plot"}),range:f0({},os.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:os.categoryorder,categoryarray:os.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:os.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:f0({},os.title.text,{editType:"plot",dflt:""}),font:f0({},os.title.font,{editType:"plot"}),editType:"plot"},hoverformat:os.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(h$e,c$e,f$e);var d$e={visible:f0({},os.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:os.autotypenumbers,categoryorder:os.categoryorder,categoryarray:os.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:os.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(d$e,c$e,f$e);v$e.exports={domain:DQt({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:RQt.background},radialaxis:h$e,angularaxis:d$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var y$e=ye((T3r,m$e)=>{"use strict";var A9=Pr(),FQt=ka(),zQt=vl(),qQt=O_(),OQt=Id().getSubplotData,BQt=Pb(),NQt=B3(),UQt=l_(),VQt=u_(),GQt=dI(),HQt=h4(),jQt=EB(),WQt=W3(),g$e=oQ(),XQt=Q$(),S9=m9(),p$e=S9.axisNames;function ZQt(e,t,r,n){var i=r("bgcolor");n.bgColor=FQt.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=OQt(n.fullData,S9.name,n.id),s=n.layoutOut,l;function u(j,N){return r(l+"."+j,N)}for(var c=0;c{"use strict";var KQt=Id().getSubplotCalcData,JQt=Pr().counterRegex,$Qt=aQ(),x$e=m9(),b$e=x$e.attr,Iw=x$e.name,_$e=JQt(Iw),w$e={};w$e[b$e]={valType:"subplotid",dflt:Iw,editType:"calc"};function QQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Iw],i=0;i{"use strict";var{hovertemplateAttrs:ter,texttemplateAttrs:rer,templatefallbackAttrs:A$e}=Pl(),E9=Ao().extendFlat,ier=Pg(),h0=pf(),ner=Vl(),tS=h0.line;S$e.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:rer({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:A$e({editType:"plot"}),hovertext:h0.hovertext,line:{color:tS.color,width:tS.width,dash:tS.dash,backoff:tS.backoff,shape:E9({},tS.shape,{values:["linear","spline"]}),smoothing:tS.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:E9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:E9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:ier(),hoverinfo:E9({},ner.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:ter(),hovertemplatefallback:A$e(),selected:h0.selected,unselected:h0.unselected}});var C9=ye((M3r,k$e)=>{"use strict";var k9=Pr(),rS=Ru(),aer=$p(),oer=D0(),M$e=fT(),ser=F0(),ler=Fg(),uer=Pm().PTS_LINESONLY,cer=TC();function fer(e,t,r,n){function i(s,l){return k9.coerce(e,t,cer,s,l)}var a=E$e(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var her=Pr(),C$e=ho();L$e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);i.rLabel=C$e.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?her.rad2deg(t.theta):t.theta;return i.thetaLabel=C$e.tickText(s,u,!0).text,i}});var R$e=ye((k3r,I$e)=>{"use strict";var P$e=Eo(),der=fs().BADNUM,ver=ho(),per=z0(),ger=Dm(),mer=q0(),yer=O0().calcMarkerSize;I$e.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var _er=mT(),D$e=fs().BADNUM;F$e.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,c=0;c{"use strict";var xer=bT();function ber(e,t,r,n){var i=xer(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,q$e(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function q$e(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(i,n.rLabel),f.indexOf("theta")!==-1&&c(a,n.thetaLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}O$e.exports={hoverPoints:ber,makeHoverPointText:q$e}});var N$e=ye((P3r,B$e)=>{"use strict";B$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:M9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:TC(),supplyDefaults:C9().supplyDefaults,colorbar:Qd(),formatLabels:L9(),calc:R$e(),plot:z$e(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:P9().hoverPoints,selectPoints:wT(),meta:{}}});var V$e=ye((I3r,U$e)=>{"use strict";U$e.exports=N$e()});var sQ=ye((F3r,H$e)=>{"use strict";var G$e=TC(),{cliponaxis:R3r,hoveron:D3r}=G$e,wer=xee(G$e,["cliponaxis","hoveron"]),{connectgaps:Ter,line:{color:Aer,dash:Ser,width:Mer},fill:Eer,fillcolor:ker,marker:Cer,textfont:Ler,textposition:Per}=_k();H$e.exports=W1(_g({},wer),{connectgaps:Ter,fill:Eer,fillcolor:ker,line:{color:Aer,dash:Ser,editType:"calc",width:Mer},marker:Cer,textfont:Ler,textposition:Per})});var X$e=ye((q3r,W$e)=>{"use strict";var j$e=Pr(),lQ=Ru(),Ier=C9().handleRThetaDefaults,Rer=$p(),Der=D0(),Fer=F0(),zer=Fg(),qer=Pm().PTS_LINESONLY,Oer=sQ();W$e.exports=function(t,r,n,i){function a(s,l){return j$e.coerce(t,r,Oer,s,l)}var o=Ier(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var Ber=L9();Z$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),Ber(t,r,n)}});var J$e=ye((B3r,K$e)=>{"use strict";var Ner=z0(),Uer=O0().calcMarkerSize,Ver=cw(),Ger=ho(),Her=gx().TOO_MANY_POINTS;K$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var jer=YF(),Wer=P9().makeHoverPointText;function Xer(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=jer.hoverPoints(e,t,r,n);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var c=e.subplot,f=u.cd[u.index],h=u.trace;if(f.r=o[u.index],f.theta=s[u.index],!!c.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,Wer(f,h,c,u),l}}$$e.exports={hoverPoints:Xer}});var tQe=ye((U3r,eQe)=>{"use strict";eQe.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:M9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:sQ(),supplyDefaults:X$e(),colorbar:Qd(),formatLabels:Y$e(),calc:J$e(),hoverPoints:Q$e().hoverPoints,selectPoints:xY(),meta:{}}});var rQe=ye((V3r,uQ)=>{"use strict";var Zer=$F(),Yer=Eo(),Ker=AK(),Jer=mY(),I9=cw(),R9=Pr(),$er=gx().TOO_MANY_POINTS,Qer={};uQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Jer(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,c=l.t,f=u._length,h=c.r,d=c.theta,v=c.opts,m,b=h.slice(),p=d.slice();for(m=0;m=$er&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=k),v.line&&k.length>1&&R9.extendFlat(v.line,I9.linePositions(t,u,k)),v.text&&(R9.extendFlat(v.text,{positions:k},I9.textPosition(t,u,v.text,v.marker)),R9.extendFlat(v.textSel,{positions:k},I9.textPosition(t,u,v.text,v.markerSel)),R9.extendFlat(v.textUnsel,{positions:k},I9.textPosition(t,u,v.text,v.markerUnsel))),v.fill&&!o.fill2d&&(o.fill2d=!0),v.marker&&!o.scatter2d&&(o.scatter2d=!0),v.line&&!o.line2d&&(o.line2d=!0),v.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(v.line),o.fillOptions.push(v.fill),o.markerOptions.push(v.marker),o.markerSelectedOptions.push(v.markerSel),o.markerUnselectedOptions.push(v.markerUnsel),o.textOptions.push(v.text),o.textSelectedOptions.push(v.textSel),o.textUnselectedOptions.push(v.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=M,c.y=T,c.rawx=M,c.rawy=T,c.r=h,c.theta=d,c.positions=k,c._scene=o,c.index=o.count,o.count++}}),Ker(t,r,n)}};uQ.exports.reglPrecompiled=Qer});var aQe=ye((G3r,nQe)=>{"use strict";var iQe=tQe();iQe.plot=rQe();nQe.exports=iQe});var sQe=ye((H3r,oQe)=>{"use strict";oQe.exports=aQe()});var cQ=ye((j3r,lQe)=>{"use strict";var{hovertemplateAttrs:etr,templatefallbackAttrs:ttr}=Pl(),iS=Ao().extendFlat,Vx=TC(),Gx=qm();lQe.exports={r:Vx.r,theta:Vx.theta,r0:Vx.r0,dr:Vx.dr,theta0:Vx.theta0,dtheta:Vx.dtheta,thetaunit:Vx.thetaunit,base:iS({},Gx.base,{}),offset:iS({},Gx.offset,{}),width:iS({},Gx.width,{}),text:iS({},Gx.text,{}),hovertext:iS({},Gx.hovertext,{}),marker:rtr(),hoverinfo:Vx.hoverinfo,hovertemplate:etr(),hovertemplatefallback:ttr(),selected:Gx.selected,unselected:Gx.unselected};function rtr(){var e=iS({},Gx.marker);return delete e.cornerradius,e}});var fQ=ye((W3r,uQe)=>{"use strict";uQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var hQe=ye((X3r,fQe)=>{"use strict";var cQe=Pr(),itr=C9().handleRThetaDefaults,ntr=YI(),atr=cQ();fQe.exports=function(t,r,n,i){function a(s,l){return cQe.coerce(t,r,atr,s,l)}var o=itr(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),ntr(t,r,a,n,i),cQe.coerceSelectionMarkerOpacity(r,a)}});var vQe=ye((Z3r,dQe)=>{"use strict";var otr=Pr(),str=fQ();dQe.exports=function(e,t,r){var n={},i;function a(l,u){return otr.coerce(e[i]||{},t[i],str,l,u)}for(var o=0;o{"use strict";var pQe=pv().hasColorscale,gQe=gv(),ltr=Pr().isArrayOrTypedArray,utr=E4(),ctr=n2().setGroupPositions,ftr=q0(),htr=Oa().traceIs,dtr=Pr().extendFlat;function vtr(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),c=o,f=s,h=0;h{"use strict";var yQe=Fa(),D9=Eo(),nS=Pr(),gtr=So(),dQ=_9();_Qe.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=mtr(r),c=r.layers.frontplot.select("g.barlayer");nS.makeTraceGroups(c,n,"trace bars").each(function(){var f=yQe.select(this),h=nS.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(nS.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(v){var m=yQe.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),k=v.thetag0=l.c2g(v.p0),M=v.thetag1=l.c2g(v.p1),T;if(!D9(b)||!D9(p)||!D9(k)||!D9(M)||b===p||k===M)T="M0,0Z";else{var L=s.c2g(v.s1),x=(k+M)/2;v.ct=[a.c2p(L*Math.cos(x)),o.c2p(L*Math.sin(x))],T=u(b,p,k,M)}nS.ensureSingle(m,"path").attr("d",T)}),gtr.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function mtr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;nS.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=dQ.findEnclosingVertexAngles(s,e.vangles)[0],c=dQ.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return dQ.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return nS.pathAnnulus(n,i,a,o,t,r)}}});var wQe=ye((J3r,bQe)=>{"use strict";var ytr=ef(),vQ=Pr(),_tr=FT().getTraceColor,xtr=vQ.fillText,btr=P9().makeHoverPointText,wtr=_9().isPtInsidePolygon;bQe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?wtr:vQ.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),v=Math.atan2(n,r);s.range[0]>s.range[1]&&(v+=Math.PI);var m=function(M){return c(d,v,[M.rp0,M.rp1],[M.thetag0,M.thetag1],u)?f+Math.min(1,Math.abs(M.thetag1-M.thetag0)/h)-1+(M.rp1-d)/(M.rp1-M.rp0)-1:1/0};if(ytr.getClosest(i,m,t),t.index!==!1){var b=t.index,p=i[b];t.x0=t.x1=p.ct[0],t.y0=t.y1=p.ct[1];var k=vQ.extendFlat({},p,{r:p.s,theta:p.p});return xtr(p,a,t),btr(k,a,o,t),t.hovertemplate=a.hovertemplate,t.color=_tr(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var AQe=ye(($3r,TQe)=>{"use strict";TQe.exports={moduleType:"trace",name:"barpolar",basePlotModule:M9(),categories:["polar","bar","showLegend"],attributes:cQ(),layoutAttributes:fQ(),supplyDefaults:hQe(),supplyLayoutDefaults:vQe(),calc:hQ().calc,crossTraceCalc:hQ().crossTraceCalc,plot:xQe(),colorbar:Qd(),formatLabels:L9(),style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:wQe(),selectPoints:zT(),meta:{}}});var MQe=ye((Q3r,SQe)=>{"use strict";SQe.exports=AQe()});var pQ=ye((eTr,EQe)=>{"use strict";EQe.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var gQ=ye((tTr,PQe)=>{"use strict";var Ttr=Ih(),Uf=Rd(),Atr=Cc().attributes,Hx=Pr().extendFlat,kQe=mc().overrideAll,CQe=kQe({color:Uf.color,showline:Hx({},Uf.showline,{dflt:!0}),linecolor:Uf.linecolor,linewidth:Uf.linewidth,showgrid:Hx({},Uf.showgrid,{dflt:!0}),gridcolor:Uf.gridcolor,gridwidth:Uf.gridwidth,griddash:Uf.griddash},"plot","from-root"),LQe=kQe({ticklen:Uf.ticklen,tickwidth:Hx({},Uf.tickwidth,{dflt:2}),tickcolor:Uf.tickcolor,showticklabels:Uf.showticklabels,labelalias:Uf.labelalias,showtickprefix:Uf.showtickprefix,tickprefix:Uf.tickprefix,showticksuffix:Uf.showticksuffix,ticksuffix:Uf.ticksuffix,tickfont:Uf.tickfont,tickformat:Uf.tickformat,hoverformat:Uf.hoverformat,layer:Uf.layer},"plot","from-root"),Str=Hx({visible:Hx({},Uf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Hx({},Uf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},CQe,LQe),Mtr=Hx({visible:Hx({},Uf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Uf.ticks,editType:"calc"},CQe,LQe);PQe.exports={domain:Atr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:Ttr.background},realaxis:Str,imaginaryaxis:Mtr,editType:"calc"}});var DQe=ye((rTr,RQe)=>{"use strict";var aS=Pr(),Etr=ka(),ktr=vl(),Ctr=O_(),Ltr=Id().getSubplotData,Ptr=u_(),Itr=l_(),Rtr=h4(),Dtr=xm(),oS=gQ(),mQ=pQ(),IQe=mQ.axisNames,Ftr=qtr(function(e){return aS.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function ztr(e,t,r,n){var i=r("bgcolor");n.bgColor=Etr.combine(i,n.paper_bgcolor);var a=Ltr(n.fullData,mQ.name,n.id),o=n.layoutOut,s;function l(L,x){return r(s+"."+L,x)}for(var u=0;u{"use strict";var Otr=Id().getSubplotCalcData,Btr=Pr().counterRegex,Ntr=aQ(),zQe=pQ(),qQe=zQe.attr,Rw=zQe.name,FQe=Btr(Rw),OQe={};OQe[qQe]={valType:"subplotid",dflt:Rw,editType:"calc"};function Utr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Rw],i=0;i{"use strict";var{hovertemplateAttrs:Gtr,texttemplateAttrs:Htr,templatefallbackAttrs:UQe}=Pl(),F9=Ao().extendFlat,jtr=Pg(),d0=pf(),Wtr=Vl(),sS=d0.line;VQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:Htr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:UQe({editType:"plot"}),hovertext:d0.hovertext,line:{color:sS.color,width:sS.width,dash:sS.dash,backoff:sS.backoff,shape:F9({},sS.shape,{values:["linear","spline"]}),smoothing:sS.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:F9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:F9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:jtr(),hoverinfo:F9({},Wtr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:Gtr(),hovertemplatefallback:UQe(),selected:d0.selected,unselected:d0.unselected}});var jQe=ye((aTr,HQe)=>{"use strict";var z9=Pr(),lS=Ru(),Xtr=$p(),Ztr=D0(),GQe=fT(),Ytr=F0(),Ktr=Fg(),Jtr=Pm().PTS_LINESONLY,$tr=yQ();HQe.exports=function(t,r,n,i){function a(l,u){return z9.coerce(t,r,$tr,l,u)}var o=Qtr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var WQe=ho();XQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=WQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=WQe.tickText(a.angularAxis,t.imag,!0).text,i}});var JQe=ye((sTr,KQe)=>{"use strict";var YQe=Eo(),err=fs().BADNUM,trr=z0(),rrr=Dm(),irr=q0(),nrr=O0().calcMarkerSize;KQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var arr=mT(),$Qe=fs().BADNUM,orr=rQ(),srr=orr.smith;QQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var lrr=bT();function urr(e,t,r,n){var i=lrr(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,tet(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function tet(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(i,n.realLabel),f.indexOf("imag")!==-1&&c(a,n.imagLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}ret.exports={hoverPoints:urr,makeHoverPointText:tet}});var aet=ye((cTr,net)=>{"use strict";net.exports={moduleType:"trace",name:"scattersmith",basePlotModule:NQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:yQ(),supplyDefaults:jQe(),colorbar:Qd(),formatLabels:ZQe(),calc:JQe(),plot:eet(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:iet().hoverPoints,selectPoints:wT(),meta:{}}});var set=ye((fTr,oet)=>{"use strict";oet.exports=aet()});var kv=ye((hTr,cet)=>{var O9=Nh();function uet(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}O9(uet.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function _Q(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function q9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}O9(_Q.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Gs.local.differentCalendars||Gs.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+q9(Math.abs(this.year()),4)+"-"+q9(this.month(),2)+"-"+q9(this.day(),2)}});function xQ(){this.shortYearCutoff="+10"}O9(xQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new _Q(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Gs.local.invalidYear||Gs.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Gs.local.invalidYear||Gs.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+q9(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Gs.local.invalidYear||Gs.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Gs.local.invalidMonth||Gs.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Gs.local.invalidMonth||Gs.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Gs.local.invalidYear||Gs.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(c){for(;of-1+c.minMonth;)a++,o-=f,f=c.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Gs.local.invalidDate||Gs.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Gs=cet.exports=new uet;Gs.cdate=_Q;Gs.baseCalendar=xQ;Gs.calendars.gregorian=bQ});var fet=ye(()=>{var wQ=Nh(),Ud=kv();wQ(Ud.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ud.local=Ud.regionalOptions[""];wQ(Ud.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});wQ(Ud.baseCalendar.prototype,{UNIX_EPOCH:Ud.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Ud.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Ud.local.invalidFormat||Ud.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(T,L){for(var x=1;M+x1},c=function(T,L,x,C){var S=""+L;if(u(T,C))for(;S.length1},k=function(z,q){var V=p(z,q),G=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(z)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),j=t.substring(S).match(Z);if(!j)throw(Ud.local.missingNumberAt||Ud.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=j[0].length,parseInt(j[0],10)},M=this,T=function(){if(typeof s=="function"){p("m");var z=s.call(M,t.substring(S));return S+=z.length,z}return k("m")},L=function(z,q,V,G){for(var Z=p(z,G)?V:q,j=0;j-1){h=1,d=v;for(var E=this.daysInMonth(f,h);d>E;E=this.daysInMonth(f,h))h++,d-=E}return c>-1?this.fromJD(c):this.newDate(f,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(f){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var het=ye(()=>{var jx=kv(),crr=Nh(),TQ=jx.instance();function B9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}B9.prototype=new jx.baseCalendar;crr(B9.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(hrr);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(drr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(vrr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw jx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw jx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,jx.local.invalidyear),i=Xx[n-Xx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=TQ.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Wx[e-Wx[0]],n=r>>13,i=n?12:11;if(t>i)throw jx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,jx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=grr(e,a,r,i);return TQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=TQ.fromJD(e),r=prr(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(frr),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(B9.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),f=a&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);f!==u&&s.month(f)}return s}});var frr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,hrr=/^\d?\d[iI]?/m,drr=/^闰?十?[一二三四五六七八九]?月/m,vrr=/^闰?十?[一二三四五六七八九]?/m;jx.calendars.chinese=B9;var Wx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Xx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function prr(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var u=Xx[i.year-Xx[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=Xx[a.year-Xx[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,m=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-m)/(24*3600*1e3));var p=Wx[a.year-Wx[0]],k;for(k=0;k<13;k++){var M=p&1<<12-k?30:29;if(v>13;return!T||k=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof n=="object"?(c=!1,a=n):(c=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=Wx[o.year-Wx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var m=0;m>9&4095,M=p>>5&15,T=p&31,L=new Date(k,M-1,T+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var det=ye(()=>{var Dw=kv(),mrr=Nh();function AQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AQ.prototype=new Dw.baseCalendar;mrr(AQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Dw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dw.local.invalidYear||Dw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Dw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,Dw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});Dw.calendars.coptic=AQ});var vet=ye(()=>{var k1=kv(),yrr=Nh();function SQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SQ.prototype=new k1.baseCalendar;yrr(SQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,k1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,k1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,k1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,k1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,k1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,k1.local.invalidDate);return{century:_rr[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,k1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var _rr={20:"Fruitbat",21:"Anchovy"};k1.calendars.discworld=SQ});var pet=ye(()=>{var Fw=kv(),xrr=Nh();function MQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MQ.prototype=new Fw.baseCalendar;xrr(MQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Fw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fw.local.invalidYear||Fw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Fw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,Fw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});Fw.calendars.ethiopian=MQ});var get=ye(()=>{var Zx=kv(),brr=Nh();function EQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EQ.prototype=new Zx.baseCalendar;brr(EQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,N9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Zx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&N9(this.daysInYear(e),10)===5?30:t===9&&N9(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Zx.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Zx.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function N9(e,t){return e-t*Math.floor(e/t)}Zx.calendars.hebrew=EQ});var met=ye(()=>{var AC=kv(),wrr=Nh();function kQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kQ.prototype=new AC.baseCalendar;wrr(kQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,AC.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,AC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,AC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});AC.calendars.islamic=kQ});var yet=ye(()=>{var SC=kv(),Trr=Nh();function CQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CQ.prototype=new SC.baseCalendar;Trr(CQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,SC.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,SC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,SC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});SC.calendars.julian=CQ});var xet=ye(()=>{var fg=kv(),Arr=Nh();function PQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PQ.prototype=new fg.baseCalendar;Arr(PQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,fg.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fg.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fg.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,fg.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fg.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,fg.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,fg.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,fg.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,fg.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=LQ(e+8+340,365);return[Math.floor(t/20)+1,LQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[_et(e+20,20),_et(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,fg.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function LQ(e,t){return e-t*Math.floor(e/t)}function _et(e,t){return LQ(e-1,t)+1}fg.calendars.mayan=PQ});var wet=ye(()=>{var zw=kv(),Srr=Nh();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new zw.baseCalendar;var bet=zw.instance("gregorian");Srr(IQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,zw.local.invalidYear||zw.regionalOptions[""].invalidYear);return bet.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,zw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,zw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});zw.calendars.nanakshahi=IQ});var Tet=ye(()=>{var qw=kv(),Mrr=Nh();function RQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RQ.prototype=new qw.baseCalendar;Mrr(RQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,qw.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,qw.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,qw.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=qw.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=qw.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var uS=kv(),Err=Nh();function V9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function U9(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}V9.prototype=new uS.baseCalendar;Err(V9.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,uS.local.invalidYear);return U9(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,uS.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,uS.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,U9(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});uS.calendars.persian=V9;uS.calendars.jalali=V9});var Met=ye(()=>{var Ow=kv(),krr=Nh(),G9=Ow.instance();function DQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DQ.prototype=new Ow.baseCalendar;krr(DQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Ow.local.invalidYear),r=this._t2gYear(t.year());return G9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Ow.local.invalidYear),i=this._t2gYear(n.year());return G9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Ow.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Ow.local.invalidDate),i=this._t2gYear(n.year());return G9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=G9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Ow.calendars.taiwan=DQ});var Eet=ye(()=>{var Bw=kv(),Crr=Nh(),H9=Bw.instance();function FQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FQ.prototype=new Bw.baseCalendar;Crr(FQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Bw.local.invalidYear),r=this._t2gYear(t.year());return H9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Bw.local.invalidYear),i=this._t2gYear(n.year());return H9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Bw.local.invalidDate),i=this._t2gYear(n.year());return H9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=H9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Bw.calendars.thai=FQ});var ket=ye(()=>{var Nw=kv(),Lrr=Nh();function zQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zQ.prototype=new Nw.baseCalendar;Lrr(zQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Nw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Nw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Yx[i]-Yx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Nw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Yx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,l=t-Yx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=Nw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Nw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Nw.calendars.ummalqura=zQ;var Yx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Let=ye((GTr,Cet)=>{"use strict";Cet.exports=kv();fet();het();det();vet();pet();get();met();yet();xet();wet();Tet();Aet();Met();Eet();ket()});var qet=ye((HTr,zet)=>{"use strict";var Iet=Let(),MC=Pr(),Ret=fs(),Prr=Ret.EPOCHJD,Irr=Ret.ONEDAY,BQ={valType:"enumerated",values:MC.sortObjectKeys(Iet.calendars),editType:"calc",dflt:"gregorian"},Det=function(e,t,r,n){var i={};return i[r]=BQ,MC.coerce(e,t,i,r,n)},Rrr=function(e,t,r,n){for(var i=0;i{"use strict";Oet.exports=qet()});var Brr=ye((WTr,Uet)=>{var Net=pye();Net.register([m1e(),n_e(),yxe(),Bxe(),Qxe(),Ybe(),l2e(),K2e(),Swe(),s3e(),Z3e(),oke(),Yke(),N6e(),kLe(),aPe(),CPe(),e8e(),_8e(),q8e(),Y8e(),uRe(),ARe(),NRe(),yFe(),OFe(),tNe(),tUe(),fVe(),qVe(),XGe(),lHe(),IHe(),Hje(),aWe(),CWe(),OXe(),lZe(),GZe(),fKe(),zKe(),iJe(),CJe(),GJe(),V$e(),sQe(),MQe(),set(),Bet()]);Uet.exports=Net});return Brr();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/translation-keys.txt b/dist/translation-keys.txt index c81b436c062..90fc29b3630 100644 --- a/dist/translation-keys.txt +++ b/dist/translation-keys.txt @@ -1,46 +1,49 @@ -Autoscale // components/modebar/buttons.js:203 -Box Select // components/modebar/buttons.js:111 -Click to enter Colorscale title // plots/plots.js:318 +Autoscale // components/modebar/buttons.js:217 +Box Select // components/modebar/buttons.js:125 +Cancel // components/modebar/cloud_confirm.js:60 +Click to enter Colorscale title // plots/plots.js:328 Click to enter Component A title // plots/ternary/ternary.js:379 Click to enter Component B title // plots/ternary/ternary.js:389 Click to enter Component C title // plots/ternary/ternary.js:399 -Click to enter Plot subtitle // plots/plots.js:315 -Click to enter Plot title // plots/plots.js:314 -Click to enter X axis title // plots/plots.js:316 -Click to enter Y axis title // plots/plots.js:317 +Click to enter Plot subtitle // plots/plots.js:325 +Click to enter Plot title // plots/plots.js:324 +Click to enter X axis title // plots/plots.js:326 +Click to enter Y axis title // plots/plots.js:327 Click to enter radial axis title // plots/polar/polar.js:593 -Compare data on hover // components/modebar/buttons.js:234 +Compare data on hover // components/modebar/buttons.js:248 Double-click on legend to isolate one trace // components/legend/handle_click.js:38 Double-click to zoom back out // plots/ternary/ternary.js:681 -Download plot // components/modebar/buttons.js:45 -Download plot as a PNG // components/modebar/buttons.js:44 -Draw circle // components/modebar/buttons.js:166 -Draw closed freeform // components/modebar/buttons.js:130 -Draw line // components/modebar/buttons.js:148 -Draw open freeform // components/modebar/buttons.js:139 -Draw rectangle // components/modebar/buttons.js:157 -Edit in Chart Studio // components/modebar/buttons.js:72 -Erase active shape // components/modebar/buttons.js:175 -Lasso Select // components/modebar/buttons.js:121 -Orbital rotation // components/modebar/buttons.js:344 -Pan // components/modebar/buttons.js:101 +Download plot // components/modebar/buttons.js:46 +Download plot as a PNG // components/modebar/buttons.js:45 +Draw circle // components/modebar/buttons.js:180 +Draw closed freeform // components/modebar/buttons.js:144 +Draw line // components/modebar/buttons.js:162 +Draw open freeform // components/modebar/buttons.js:153 +Draw rectangle // components/modebar/buttons.js:171 +Erase active shape // components/modebar/buttons.js:189 +Lasso Select // components/modebar/buttons.js:135 +Orbital rotation // components/modebar/buttons.js:358 +Pan // components/modebar/buttons.js:115 Produced with Plotly.js // components/modebar/modebar.js:329 -Reset // components/modebar/buttons.js:517 -Reset axes // components/modebar/buttons.js:213 -Reset camera to default // components/modebar/buttons.js:383 -Reset camera to last save // components/modebar/buttons.js:392 -Reset view // components/modebar/buttons.js:589 -Reset views // components/modebar/buttons.js:627 -Show closest data on hover // components/modebar/buttons.js:223 -Snapshot succeeded // components/modebar/buttons.js:62 -Sorry, there was a problem downloading your snapshot! // components/modebar/buttons.js:65 -Taking snapshot - this may take a few seconds // components/modebar/buttons.js:52 -Toggle Spike Lines // components/modebar/buttons.js:647 -Toggle show closest data on hover // components/modebar/buttons.js:442 -Turntable rotation // components/modebar/buttons.js:353 -Zoom // components/modebar/buttons.js:91 -Zoom in // components/modebar/buttons.js:183 -Zoom out // components/modebar/buttons.js:193 +Reset // components/modebar/buttons.js:531 +Reset axes // components/modebar/buttons.js:227 +Reset camera to default // components/modebar/buttons.js:397 +Reset camera to last save // components/modebar/buttons.js:406 +Reset view // components/modebar/buttons.js:603 +Reset views // components/modebar/buttons.js:641 +Share // components/modebar/cloud_confirm.js:66 +Share with Plotly Cloud // components/modebar/cloud_confirm.js:33 +Show closest data on hover // components/modebar/buttons.js:237 +Snapshot succeeded // components/modebar/buttons.js:63 +Sorry, there was a problem downloading your snapshot! // components/modebar/buttons.js:66 +Taking snapshot - this may take a few seconds // components/modebar/buttons.js:53 +This chart and its data will be sent to // components/modebar/cloud_confirm.js:37 +Toggle Spike Lines // components/modebar/buttons.js:661 +Toggle show closest data on hover // components/modebar/buttons.js:456 +Turntable rotation // components/modebar/buttons.js:367 +Zoom // components/modebar/buttons.js:105 +Zoom in // components/modebar/buttons.js:197 +Zoom out // components/modebar/buttons.js:207 close: // traces/ohlc/calc.js:108 concentration: // traces/sankey/plot.js:176 high: // traces/ohlc/calc.js:106 @@ -55,12 +58,12 @@ mean ± σ: // traces/box/calc.js:2 mean: // traces/box/calc.js:292 median: // traces/box/calc.js:285 min: // traces/box/calc.js:286 -new text // plots/plots.js:319 +new text // plots/plots.js:329 open: // traces/ohlc/calc.js:105 outgoing flow count: // traces/sankey/plot.js:178 q1: // traces/box/calc.js:287 q3: // traces/box/calc.js:288 source: // traces/sankey/plot.js:174 target: // traces/sankey/plot.js:175 -trace // plots/plots.js:321 +trace // plots/plots.js:331 upper fence: // traces/box/calc.js:294 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index d0e448eea45..769b0d58108 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plotly.js", - "version": "3.6.0", + "version": "3.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "plotly.js", - "version": "3.6.0", + "version": "3.7.0", "license": "MIT", "dependencies": { "@plotly/d3": "3.8.2", diff --git a/package.json b/package.json index 1f4a9fd62c1..bb8437b9f64 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotly.js", - "version": "3.6.0", + "version": "3.7.0", "description": "The open source javascript graphing library that powers plotly", "license": "MIT", "main": "./lib/index.js", diff --git a/src/version.js b/src/version.js index acfd110b78e..67b6e4a497c 100644 --- a/src/version.js +++ b/src/version.js @@ -1,4 +1,4 @@ 'use strict'; // package version injected by `npm run preprocess` -exports.version = '3.6.0'; +exports.version = '3.7.0';